PageSourceSearch

https://www.fortodo.com/_next/static/chunks/app/page-eeb99fa5771f3e47.js

js fortodo.com collected 2026-10-09 22:57:59 UTC 292,775 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{32573:function(e,t,o){Promise.resolve().then(o.bind(o,90210))},90210:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return U}});var i=o(57437),n=o(2265);let r=[{target:'[data-tour="products-btn"]',title:"Products & Services",description:"Tap this icon to explore everything Fortodo offers — rides, deliveries, shopping, payments, and more.",position:"bottom"},{target:'[data-tour="dashboard-link"]',title:"Your Dashboard & Onboarding",description:"Go here first! Your Dashboard is where you set up your Presence — your identity on Fortodo. The onboarding wizard will guide you through it step by step.",position:"bottom"},{target:'[data-tour="left-panel-btn"]',title:"About Fortodo",description:"Learn about Fortodo, our mission, and how everything works. Also find How It Works, the Guide, and How Payouts Work.",position:"right"},{target:'[data-tour="right-panel-btn"]',title:"Help & Support",description:"Need help? Open a support request, browse FAQs, or contact our team directly from here.",position:"left"},{target:'[data-tour="user-btn"]',title:"Your Account Menu",description:"Access your profile, settings, money, presences, and sign out — all from this menu in the top right corner.",position:"bottom"}];function l(e){let{onComplete:t}
1=e,[o,l]=(0,n.useState)(0),[a,s]=(0,n.useState)(null),[d,c]=(0,n.useState)({top:0,left:0}),p=r[o],x=(0,n.useCallback)(()=>{let e=document.querySelector(p.target);if(!e)return;let t=e.getBoundingClientRect();s(t);let o=0,i=0;"bottom"===p.position?(o=t.bottom+12,i=t.left+t.width/2-150):"top"===p.position?(o=t.top-160-12,i=t.left+t.width/2-150):"right"===p.position?(o=t.top+t.height/2-80,i=t.right+12):(o=t.top+t.height/2-80,i=t.left-300-12),i=Math.max(10,Math.min(i,window.innerWidth-300-10)),c({top:o=Math.max(10,Math.min(o,window.innerHeight-160-10)),left:i})},[p]);(0,n.useEffect)(()=>(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);let g=()=>t();if(!a)return null;let h={x:a.left-8,y:a.top-8,w:a.width+16,h:a.height+16,r:8};return(0,i.jsxs)("div",{style:{position:"fixed",inset:0,zIndex:9999,pointerEvents:"none"},children:[(0,i.jsxs)("svg",{style:{position:"absolute",inset:0,width:"100%",height:"100%",pointerEvents:"auto"},onClick:g,children:[(0,i.jsx)("defs",{children:(0,i.jsxs)("mask",{id:"tour-mask",children:[(0,i.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,i.jsx)("rect",{x:h.x,y:h.y,width:h.w,height:h.h,rx:h.r,fill:"black"})]})}),(0,i.jsx)("rect",{width:"100%",height:"100%",fill:"rgba(0,0,0,0.6)",mask:"url(#tour-mask)"})]}),(0,i.jsx)("div",{style:{position:"absolute",left:h.x,top:h.y,width:h.w,height:h.h,borderRadius:h.r,border:"2px solid #4f8ef7",boxShadow:"0 0 0 3px rgba(79,142,247,0.3)",pointerEvents:"none"}}),(0,i.jsxs)("div",{style:{position:"absolute",top:d.top,left:d.left,width:300,backgroundColor:"#fff",borderRadius:12,padding:"16px",boxShadow:"0 8px 32px rgba(0,0,0,0.25)",pointerEvents:"auto",zIndex:1e4},children:[(0,i.jsxs)("div",{style:{fontSize:12,color:"#888",marginBottom:4},children:["Step ",o+1," of ",r.length]}),(0,i.jsx)("div",{style:{fontWeight:700,fontSize:15,marginBottom:8,color:"#1a1a2e"},children:p.title}),(0,i.jsx)("div",{style:{fontSize:13,color:"#444",lineHeight:1.5,marginBottom:14},children:p.description}),(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,i.jsx)("button",{onClick:g,style:{background:"none",border:"none",color:"#888",fontSize:13,cursor:"pointer",padding:0},children:"Skip tour"}),(0,i.jsx)("button",{onClick:()=>{o<r.length-1?l(e=>e+1):t()},style:{backgroundColor:"#4f8ef7",color:"#fff",border:"none",borderRadius:8,padding:"8px 20px",fontSize:13,fontWeight:600,cursor:"pointer"},children:o<r.length-1?"Next →":"Done ✓"})]})]})]})}var a=o(16463),s=o(31877),d=o(24018),c=o(74246),p=o(2035);class x{static getInstance(){return x.instance||(x.instance=new x),x.instance}async getToken(){try{let{CognitoAuthService:e}=await Promise.resolve().then(o.bind(o,24018));return await e.getAccessToken()}catch(e){return null}}async authHeaders(){let e=await this.getToken(),t={"Content-Type":"application/json"};return e&&(t.Authorization="Bearer ".concat(e)),t}async syncAllUserData(e,t){try{var o;console.log("\uD83D\uDD04 Starting comprehensive data sync for:",e);let i=await this.authHeaders(),n=await (0,p.S)("/api/presences?cognitoSub=".concat(t,"&email=").concat(encodeURIComponent(e)),{headers:i}),r=n.ok?await n.json():{presences:[]},l=await this.syncUserBalances(t),a=await this.syncUserServices(t),s=await this.syncUserPIN(t);return console.log("✅ Comprehensive sync complete:",{presences:(null===(o=r.presences)||void 0===o?void 0:o.length)||0,balances:l.length,services:a.length,pin:s?"synced":"default"}),{presences:r.presences||[],balances:l,services:a,pin:s||"1234",success:!0}}catch(e){return console.error("❌ Comprehensive sync failed:",e),{presences:[],balances:[],services:[],pin:"1234",success:!1}}}async syncUserBalances(e){try{let t=await this.authHeaders(),o=await (0,p.S)("/api/user-balance?cognitoSub=".concat(e),{headers:t});if(o.ok){let e=await o.json();return console.log("✅ Synced balances from API"),e.balances||[]}return[]}catch(e){return console.error("❌ Balance sync failed:",e),[]}}async syncUserServices(e){try{let t=await this.authHeaders(),o=await (0,p.S)("/api/user-services?cognitoSub=".concat(e),{headers:t});if(o.ok){let e=await o.json();return console.log("✅ Synced services from API"),e.services||[]}return[]}catch(e){return console.error("❌ Services sync failed:",e),[]}}async syncUserPIN(e){try{let t=await this.authHeaders(),o=await (0,p.S)("/api/user-pin?cognitoSub=".concat(e),{headers:t});if(o.ok){let e=await o.json();return console.log("✅ Synced PIN from API"),e.pin}return null}catch(e){return console.error("❌ PIN sync failed:",e),null}}}var g=o(11191),h=o(24891),u=o(70596),f=o(39406),m=o(12187),y=o(87094),b=o(26065),v=o(57818),j=o(10414);let w=(0,v.default)(()=>o.e(3388).then(o.bind(o,43388)),{loadableGenerated:{webpack:()=>[43388]},ssr:!1});
1function S(e){let{userBackground:t,bgOpacity:o=0,hideDoodle:r=!1}=e,[l,a]=(0,n.useState)(null),[s,d]=(0,n.useState)(null),[c,x]=(0,n.useState)(t||null);(0,n.useEffect)(()=>{void 0!==t?x(t):x((0,j.kE)())},[t]),(0,n.useEffect)(()=>{(0,p.S)("/api/config/doodle").then(e=>e.ok?e.json():null).then(e=>{if((null==e?void 0:e.effectDoodle)&&a(e.effectDoodle),(null==e?void 0:e.backgroundDoodle)&&d(e.backgroundDoodle),!(null==e?void 0:e.effectDoodle)&&!(null==e?void 0:e.backgroundDoodle)&&(null==e?void 0:e.doodle)){let t=e.doodle;["fireworks","confetti","snow","stars","interstellar"].includes(t.type)?a(t):d(t)}}).catch(()=>{})},[]);let g=window.innerWidth>=770,h=window.navigator.userAgent.includes("FortodoApp")||!0===window.__isNativeApp,u=((null==s?void 0:s.force)?s:null)||c||(r?null:s),f=r?null:(null==l?void 0:l.force)?l:c?null:l;return(0,n.useEffect)(()=>{if((null==u?void 0:u.type)!=="color"||!(null==u?void 0:u.themeMode))return;let e=document.body,t=u.themeMode+"-mode";return e.classList.add(t),()=>{e.classList.remove(t)}},[u]),(0,i.jsxs)(i.Fragment,{children:[function(e,t,o,n){var r;if(!e||k(e,o)||D(e,n)||"none"===e.type||"no-background"===e.type)return null;let l=null!==(r=e.zIndex)&&void 0!==r?r:-1;if("color"===e.type)return null;if("kids-gradient"===e.type)return(0,i.jsx)("div",{style:{position:"fixed",inset:0,zIndex:l,background:e.gradient,opacity:1-t,pointerEvents:"none"}});if(("image"===e.type||"custom"===e.type)&&(e.imageUrl||e.bgColor)){let o={position:"fixed",inset:0,zIndex:l,pointerEvents:"none",opacity:1-t};return(e.imageUrl&&(o.backgroundImage="url('".concat(e.imageUrl,"')"),o.backgroundRepeat=e.bgRepeat||"no-repeat",o.backgroundSize=e.bgSize||"cover",o.backgroundPosition=e.bgPosition||"center",o.backgroundAttachment=e.bgAttachment||"fixed"),e.bgColor&&(o.backgroundColor=e.bgColor),!1===e.showOnMobile)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"hidden md:block",style:o}),(0,i.jsx)("style",{children:"@media (max-width: 769px) { body { background: initial !important; } }"})]}):(0,i.jsx)("div",{style:o})}return null}(u,o,g,h),function(e,t,o){var n;if(!e||k(e,t)||D(e,o))return null;let r=null!==(n=e.zIndex)&&void 0!==n?n:9999;if("stars"===e.type)return(0,i.jsx)(w,{variant:"stars"});if("interstellar"===e.type)return(0,i.jsx)(w,{variant:"interstellar"});if("snow"===e.type)return(0,i.jsx)("style",{children:"\n        @keyframes snowfall-1 {\n          0% { transform: translateY(-10px); }\n          100% { transform: translateY(100vh); }\n        }\n        @keyframes snowfall-2 {\n          0% { transform: translateY(-10px); }\n          100% { transform: translateY(100vh); }\n        }\n        body::before, body::after {\n          content: '';\n          position: fixed;\n          top: 0; left: 0; right: 0; bottom: 0;\n          pointer-events: none;\n          z-index: ".concat(r,";\n        }\n        body::before {\n          background-image:\n            radial-gradient(3px 3px at 10% 20%, #a8d4f0, transparent),\n            radial-gradient(2px 2px at 25% 50%, #7ec8e3, transparent),\n            radial-gradient(3px 3px at 40% 10%, #b0d8ef, transparent),\n            radial-gradient(2px 2px at 55% 70%, #8ccde6, transparent),\n            radial-gradient(3px 3px at 70% 30%, #a0d0eb, transparent),\n            radial-gradient(2px 2px at 85% 60%, #7fc5e0, transparent),\n            radial-gradient(3px 3px at 15% 80%, #98cce8, transparent),\n            radial-gradient(2px 2px at 50% 40%, #89c9e4, transparent),\n            radial-gradient(3px 3px at 65% 90%, #a5d2ed, transparent),\n            radial-gradient(2px 2px at 80% 15%, #7dc3df, transparent),\n            radial-gradient(3px 3px at 35% 55%, #93cae5, transparent),\n            radial-gradient(2px 2px at 90% 75%, #86c7e2, transparent);\n          background-size: 300px 600px;\n          animation: snowfall-1 6s linear infinite;\n        }\n        body::after {\n          background-image:\n            radial-gradient(2px 2px at 5% 35%, #a2d1ec, transparent),\n            radial-gradient(3px 3px at 20% 65%, #7bc2de, transparent),\n            radial-gradient(2px 2px at 45% 25%, #9dcfe9, transparent),\n            radial-gradient(3px 3px at 60% 85%, #84c6e1, transparent),\n            radial-gradient(2px 2px at 75% 45%, #a8d4f0, transparent),\n            radial-gradient(3px 3px at 30% 95%, #90c9e4, transparent),\n            radial-gradient(2px 2px at 95% 55%, #7ec8e3, transparent),\n            radial-gradient(3px 3px at 12% 5%, #b0d8ef, transparent),\n            radial-gradient(2px 2px at 55% 15%, #8ccde6, transparent),\n            radial-gradient(3px 3px at 82% 35%, #a0d0eb, transparent);\n          background-size: 250px 500px;\n          animation: snowfall-2 9s linear infinite;\n        }\n      ")});if("confetti"===e.type){let e=["#ff6b6b","#feca57","#48dbfb","#ff9ff3","#54a0ff","#5f27cd","#01a3a4","#f368e0","#ff9f43","#00d2d3"],t=Array.from({length:60},(t,o)=>({id:o,color:e[o%e.length],left:"".concat(1.67*o%100,"%"),width:"".concat(6+o%5*2,"px"),height:"".concat(8+o%4*3,"px"),delay:"".concat(.18*o%6,"s"),duration:"".concat(4+o%5,"s"),drift:"".concat(-40+o%9*10,"px"),isRect:o%3!=0}));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{style:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",overflow:"hidden"},children:t.map(e=>(0,i.jsx)("div",{style:{position:"absolute",top:"-20px",left:e.left,width:e.width,height:e.height,backgroundColor:e.color,borderRadius:e.isRect?"2px":"50%",opacity:.85,animation:"confetti-piece-".concat(e.id%6," ").concat(e.duration," ").concat(e.delay," linear infinite")}},e.id))}),(0,i.jsx)("style",{children:"\n          ".concat([0,1,2,3,4,5].map(e=>{let t=[-50,-25,-10,10,30,55][e];return"@keyframes confetti-piece-".concat(e," {\n              0%   { transform: translateY(-20px) translateX(0px) rotate(0deg); opacity: 1; }\n              25%  { transform: translateY(25vh) translateX(").concat(.4*t,"px) rotate(180deg); opacity: 0.9; }\n              75%  { transform: translateY(75vh) translateX(").concat(t,"px) rotate(540deg); opacity: 0.6; }\n              100% { transform: translateY(105vh) translateX(").concat(1.2*t,"px) rotate(720deg); opacity: 0; }\n            }")}).join("\n"),"\n        ")})]})}if("fireworks"===e.type){let e=[{id:0,left:"12%",top:"18%",delay:"0s",cycle:"5.2s",color:"#ffd700"},{id:1,left:"35%",top:"25%",delay:"1.4s",cycle:"6.5s",color:"#ff4444"}
1,{id:2,left:"58%",top:"14%",delay:"2.8s",cycle:"4.9s",color:"#44aaff"},{id:3,left:"80%",top:"32%",delay:"0.6s",cycle:"7.1s",color:"#44ff88"},{id:4,left:"22%",top:"40%",delay:"3.5s",cycle:"5.8s",color:"#ff44ff"},{id:5,left:"50%",top:"20%",delay:"2.0s",cycle:"6.2s",color:"#ffffff"},{id:6,left:"70%",top:"45%",delay:"4.3s",cycle:"7.9s",color:"#ff8800"},{id:7,left:"88%",top:"22%",delay:"1.1s",cycle:"5.6s",color:"#00ffff"}],t=e.map((e,t)=>Array.from({length:24},(e,o)=>{let i=o/24*360+(7*o+11*t)%9-4,n=i*Math.PI/180,r=70+(13*o+7*t)%50;return{i:o,tx:Math.round(Math.cos(n)*r),ty:Math.round(Math.sin(n)*r),fall:30+(9*o+5*t)%60,rot:Math.round(i)}}));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{style:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",overflow:"hidden"},children:e.map((e,o)=>(0,i.jsx)("div",{style:{position:"absolute",left:e.left,top:e.top},children:t[o].map(t=>(0,i.jsx)("div",{style:{position:"absolute",top:"-1px",left:"-6px",width:"12px",height:"2px",borderRadius:"1px",background:"linear-gradient(90deg, transparent, ".concat(e.color,", #fff)"),boxShadow:"0 0 4px 1px ".concat(e.color),transformOrigin:"right center",animation:"fw-b".concat(e.id,"-s").concat(t.i," ").concat(e.cycle," ").concat(e.delay," ease-out infinite")}},t.i))},e.id))}),(0,i.jsx)("style",{children:"\n          ".concat(e.map((e,o)=>t[o].map(t=>"\n              @keyframes fw-b".concat(e.id,"-s").concat(t.i," {\n                0%   { transform: translate(0px, 0px) rotate(").concat(t.rot,"deg) scaleX(0.2); opacity: 0; }\n                42%  { transform: translate(0px, 0px) rotate(").concat(t.rot,"deg) scaleX(0.2); opacity: 0; }\n                48%  { transform: translate(0px, 0px) rotate(").concat(t.rot,"deg) scaleX(1.5); opacity: 1; }\n                72%  { transform: translate(").concat(t.tx,"px, ").concat(t.ty,"px) rotate(").concat(t.rot,"deg) scaleX(1); opacity: 0.9; }\n                100% { transform: translate(").concat(t.tx,"px, ").concat(t.ty+t.fall,"px) rotate(").concat(t.rot+15,"deg) scaleX(0.3); opacity: 0; }\n              }\n            ")).join("")).join(""),"\n        ")})]})}return null}(f,g,h)]})}function k(e,t){return(null==e?void 0:e.showOnMobile)===!1&&!t}function D(e,t){return(null==e?void 0:e.showOnApp)===!1&&t}function C(e){let{block:t}=e;if("spacer"===t.type)return(0,i.jsx)("div",{style:{height:t.spacerHeight||"24px"}});if("text"===t.type){let e={fontSize:t.fontSize||"16px",color:t.fontColor||"inherit",fontFamily:t.fontFamily||void 0,textAlign:t.textAlign||"left",fontWeight:t.fontWeight||void 0,fontStyle:t.fontStyle||void 0,lineHeight:1.6},o=(0,i.jsx)("div",{style:e,dangerouslySetInnerHTML:{__html:t.text||""}});return t.textLinkUrl?(0,i.jsx)("a",{href:t.textLinkUrl,target:"_top",style:{textDecoration:"none",display:"block"},children:o}):o}if("image"===t.type){let e={padding:t.imagePadding||"0px",textAlign:t.imageAlign||"left"},o=(0,i.jsx)("img",{src:t.imageUrl,alt:"",style:{width:t.imageWidth||"100%",height:t.imageHeight||"auto",borderRadius:t.imageBorderRadius||"0px",objectFit:t.imageObjectFit||"cover",display:"block",margin:"center"===t.imageAlign?"0 auto":"right"===t.imageAlign?"0 0 0 auto":"0",maxWidth:"100%"}}),n=t.imageLinkUrl?(0,i.jsx)("a",{href:t.imageLinkUrl,target:"_top",style:{display:"block"},children:o}):o;return(0,i.jsx)("div",{style:e,children:n})}if("button"===t.type)return(0,i.jsx)("div",{style:{textAlign:"center"},children:(0,i.jsx)("a",{href:t.linkUrl||"#",target:"_top",style:{display:"inline-block",padding:t.btnPadding||"10px 24px",backgroundColor:t.btnBgColor||"#0c9034",color:t.btnTextColor||"#fff",borderRadius:t.btnBorderRadius||"8px",fontSize:t.btnFontSize||"15px",fontWeight:600,textDecoration:"none",border:t.btnBorderWidth&&"0px"!==t.btnBorderWidth?t.btnBorderWidth+" solid "+(t.btnBorderColor||"#000000"):"none"},children:t.label||"Learn More"})});if("menu"===t.type){let e=(0,i.jsx)("svg",{focusable:"false",viewBox:"0 0 24 24",style:{width:"20px",height:"20px",fill:"currentColor",flexShrink:0},children:(0,i.jsx)("path",{d:"M6,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM6,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM6,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM16,6c0,1.1 0.9,2 2,2s2,-0.9 2,-2 -0.9,-2 -2,-2 -2,0.9 -2,2zM12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM18,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM18,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2z"})}),o=t.label||"Menu",n=t.textAlign||"left";return(0,i.jsx)("div",{style:{textAlign:n},children:(0,i.jsxs)("a",{href:"/?openProducts=1",target:"_top",style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"0",color:t.fontColor||"inherit",fontSize:t.fontSize||"16px",fontWeight:t.fontWeight||"500",textDecoration:"none",cursor:"pointer"},children:[o," ",e]})})}if("columns"===t.type){let e=[...t.col1Blocks||[]].sort((e,t)=>
1e.order-t.order),o=[...t.col2Blocks||[]].sort((e,t)=>e.order-t.order),n=e=>({position:"relative",flex:"1 1 200px",minWidth:0,display:"flex",flexDirection:"column",gap:(null==e?void 0:e.colGap)||"12px",...(null==e?void 0:e.col1BgColor)?{backgroundColor:e.col1BgColor}:{},...(null==e?void 0:e.col1Padding)?{padding:e.col1Padding}:{},...(null==e?void 0:e.col1BorderRadius)?{borderRadius:e.col1BorderRadius}:{},...(null==e?void 0:e.col1BorderWidth)&&"0px"!==e.col1BorderWidth?{border:e.col1BorderWidth+" solid "+(e.col1BorderColor||"#ccc")}:{}});return(0,i.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:t.colAlignItems||"flex-start",gap:t.colGap||"16px",width:"100%",boxSizing:"border-box"},children:[(0,i.jsx)("div",{style:{...n(t),flex:"".concat(t.col1Width||"1"," 1 200px"),...t.col1BgColor?{backgroundColor:t.col1BgColor}:{},...t.col1Padding?{padding:t.col1Padding}:{},...t.col1BorderRadius?{borderRadius:t.col1BorderRadius}:{},...t.col1BorderWidth&&"0px"!==t.col1BorderWidth?{border:t.col1BorderWidth+" solid "+(t.col1BorderColor||"#ccc")}:{}},children:e.map(e=>(0,i.jsx)(C,{block:e},e.id))}),(0,i.jsx)("div",{style:{...n(t),flex:"".concat(t.col2Width||"1"," 1 200px"),...t.col2BgColor?{backgroundColor:t.col2BgColor}:{},...t.col2Padding?{padding:t.col2Padding}:{},...t.col2BorderRadius?{borderRadius:t.col2BorderRadius}:{},...t.col2BorderWidth&&"0px"!==t.col2BorderWidth?{border:t.col2BorderWidth+" solid "+(t.col2BorderColor||"#ccc")}:{}},children:o.map(e=>(0,i.jsx)(C,{block:e},e.id))})]})}if("grid"===t.type){let e=t.gridCells||Array(8).fill([]),o=t.gridColWidths||["1fr","1fr"],n=t.gridRowHeights||["auto","auto","auto","auto"],r=t.gridGapX||"8px",l=t.gridGapY||"8px",a=e=>/^\d+$/.test(e.trim())?e.trim()+"fr":e.trim(),s=o.map(a).join(" "),d=n.map(a).join(" ");return(0,i.jsx)("div",{style:{display:"grid",gridTemplateColumns:s,gridTemplateRows:d,columnGap:r,rowGap:l,width:"100%",boxSizing:"border-box"},children:[0,1,2,3].map(t=>[0,1].map(o=>{let n=[...e[2*t+o]||[]].sort((e,t)=>e.order-t.order);return(0,i.jsx)("div",{style:{minWidth:0,overflow:"hidden"},children:n.map(e=>(0,i.jsx)(C,{block:e},e.id))},"".concat(t,"-").concat(o))}))})}return null}function I(e){var t,o;let{section:r}=e,l=(0,n.useRef)(null),a=window.innerWidth<770;if(a&&!1===r.showOnMobile||!a&&!1===r.showOnWeb)return null;let s={position:"relative",padding:r.padding||"24px",borderRadius:r.borderRadius||"0px",minHeight:a?r.mobileMinHeight||r.minHeight||"auto":r.minHeight||"auto",width:r.width||"100%",boxSizing:"border-box",...r.borderWidth&&"0px"!==r.borderWidth?{border:r.borderWidth+" solid "+(r.borderColor||"#cccccc")}:{},...r.marginLeft?{marginLeft:r.marginLeft}:{},...r.marginRight?{marginRight:r.marginRight}:{},...r.marginTop?{marginTop:r.marginTop}:{}};"color"===r.bgType&&r.bgColor&&(s.backgroundColor=r.bgColor),"gradient"===r.bgType&&(s.background="linear-gradient("+(null!==(t=r.bgGradientAngle)&&void 0!==t?t:135)+"deg, "+(r.bgGradientFrom||"#ffffff")+", "+(r.bgGradientTo||"#000000")+")");let d={position:"relative",zIndex:1,display:"flex",flexDirection:"column",gap:r.gap||"16px"},c=r.bgOverlayColor&&("image"===r.bgType||"video"===r.bgType)?{position:"absolute",inset:0,zIndex:0,backgroundColor:r.bgOverlayColor,opacity:null!==(o=r.bgOverlayOpacity)&&void 0!==o?o:.4,pointerEvents:"none"}:null;return(0,i.jsxs)("div",{style:s,children:[("image"===r.bgType||"video"===r.bgType||c)&&(0,i.jsxs)("div",{style:{position:"absolute",inset:0,zIndex:0,overflow:"hidden",borderRadius:r.borderRadius||"0px"},children:["image"===r.bgType&&r.bgImageUrl&&(0,i.jsx)("div",{style:{position:"absolute",inset:0,backgroundImage:"url('".concat(r.bgImageUrl,"')"),backgroundSize:r.bgSize||"cover",backgroundPosition:r.bgPosition||"center",backgroundRepeat:r.bgRepeat||"no-repeat",backgroundAttachment:a?"scroll":r.bgAttachment||void 0}}),"video"===r.bgType&&r.bgVideoUrl&&(0,i.jsx)("video",{ref:l,src:r.bgVideoUrl,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}}),c&&(0,i.jsx)("div",{style:{...c,position:"absolute",inset:0}})]}),(0,i.jsx)("div",{style:d,children:[...r.blocks].sort((e,t)=>
1e.order-t.order).map(e=>(0,i.jsx)(C,{block:e},e.id))})]})}function z(e){let{cityKey:t,cityReady:o}=e,[r,l]=(0,n.useState)([]),[a,s]=(0,n.useState)(!0);if((0,n.useEffect)(()=>{(0,p.S)("/api/config/sections").then(e=>e.ok?e.json():null).then(e=>{(null==e?void 0:e.sectionsEnabled)===!1&&s(!1),(null==e?void 0:e.sections)&&l(e.sections)}).catch(()=>{})},[]),(0,n.useEffect)(()=>{let e=r.find(e=>"theme"===e.bgType&&e.bgThemeMode);if(!e)return;let t=e.bgThemeMode+"-mode";return document.body.classList.add(t),()=>{document.body.classList.remove(t)}},[r]),!o)return null;let d=r.filter(e=>{if(!e.cities||!e.cities.trim())return!0;let o=e.cities.split(",").map(e=>e.trim().toLowerCase());if(o.includes("global"))return!0;if(o.includes("default"))return!t;if(!t)return!1;let i=t.toLowerCase();return o.some(e=>i.includes(e)||e.includes(i))});if(!a||0===d.length)return null;let c=new Map;d.forEach(e=>{c.has(e.rowIndex)||c.set(e.rowIndex,[]),c.get(e.rowIndex).push(e)});let x=Array.from(c.entries()).sort((e,t)=>{let[o]=e,[i]=t;return o-i});return(0,i.jsx)("div",{style:{marginTop:"24px",display:"flex",flexDirection:"column",gap:"16px"},children:x.map(e=>{var t,o,n,r;let[l,a]=e,s=(null===(t=a[0])||void 0===t?void 0:t.layout)==="split",d=(null===(o=a[0])||void 0===o?void 0:o.layout)==="quad";if(s||d){let e=a[0],t=null==e?void 0:e.rowBg,o=t&&t.bgType&&"none"!==t.bgType,d={position:"relative",display:"flex",flexWrap:"wrap",gap:(null==t?void 0:t.gap)||"16px",width:"100%",boxSizing:"border-box",padding:(null==t?void 0:t.padding)||"0px",borderRadius:(null==t?void 0:t.borderRadius)||"0px",minHeight:(null==t?void 0:t.minHeight)||"auto",...(null==t?void 0:t.marginTop)?{marginTop:t.marginTop}:{},...(null==t?void 0:t.borderWidth)&&"0px"!==t.borderWidth?{border:t.borderWidth+" solid "+(t.borderColor||"#ccc")}:{},...o&&"color"===t.bgType&&t.bgColor?{backgroundColor:t.bgColor}:{},...o&&"gradient"===t.bgType?{background:"linear-gradient("+(null!==(n=t.bgGradientAngle)&&void 0!==n?n:135)+"deg, "+(t.bgGradientFrom||"#fff")+", "+(t.bgGradientTo||"#000")+")"}:{}},c=s?[0,1].map(e=>a.find(t=>t.columnIndex===e)):[0,1,2,3].map(e=>a.find(t=>t.columnIndex===e)),p=s?"300px":"140px";return(0,i.jsxs)("div",{style:d,children:[o&&"image"===t.bgType&&t.bgImageUrl&&(0,i.jsx)("div",{style:{position:"absolute",inset:0,zIndex:0,overflow:"hidden",borderRadius:t.borderRadius||"0px",backgroundImage:"url('".concat(t.bgImageUrl,"')"),backgroundSize:"cover",backgroundPosition:"center"}}),o&&"video"===t.bgType&&t.bgVideoUrl&&(0,i.jsx)("video",{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:t.bgVideoUrl,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",zIndex:0}}),o&&t.bgOverlayColor&&("image"===t.bgType||"video"===t.bgType)&&(0,i.jsx)("div",{style:{position:"absolute",inset:0,zIndex:1,backgroundColor:t.bgOverlayColor,opacity:null!==(r=t.bgOverlayOpacity)&&void 0!==r?r:.4,pointerEvents:"none"}}),c.map((e,t)=>{var o,n;if(!e)return(0,i.jsx)("div",{style:{flex:"1 1 ".concat(p),minWidth:0}},t);let r=e.bgType&&"none"!==e.bgType,l={flex:"1 1 ".concat(p),minWidth:0,position:"relative",zIndex:2,display:"flex",flexDirection:"column",gap:e.gap||"16px",padding:e.padding||"0px",borderRadius:e.borderRadius||"0px",...e.borderWidth&&"0px"!==e.borderWidth?{border:e.borderWidth+" solid "+(e.borderColor||"#ccc")}:{},...r&&"color"===e.bgType&&e.bgColor?{backgroundColor:e.bgColor}:{},...r&&"gradient"===e.bgType?{background:"linear-gradient("+(null!==(o=e.bgGradientAngle)&&void 0!==o?o:135)+"deg, "+(e.bgGradientFrom||"#fff")+", "+(e.bgGradientTo||"#000")+")"}:{}};return(0,i.jsxs)("div",{style:l,children:[r&&"image"===e.bgType&&e.bgImageUrl&&(0,i.jsx)("div",{style:{position:"absolute",inset:0,zIndex:0,overflow:"hidden",borderRadius:e.borderRadius||"0px",backgroundImage:"url('".concat(e.bgImageUrl,"')"),backgroundSize:"cover",backgroundPosition:"center"}}),r&&"video"===e.bgType&&e.bgVideoUrl&&(0,i.jsx)("video",{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:e.bgVideoUrl,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",zIndex:0}}),e.bgOverlayColor&&("image"===e.bgType||"video"===e.bgType)&&(0,i.jsx)("div",{style:{position:"absolute",inset:0,zIndex:1,backgroundColor:e.bgOverlayColor,opacity:null!==(n=e.bgOverlayOpacity)&&void 0!==n?n:.4,pointerEvents:"none"}}),(0,i.jsx)("div",{style:{position:"relative",zIndex:2,display:"flex",flexDirection:"column",gap:e.gap||"16px"},children:[...e.blocks].sort((e,t)=>
1e.order-t.order).map(e=>(0,i.jsx)(C,{block:e},e.id))})]},t)})]},l)}return(0,i.jsx)("div",{style:{width:"100%",boxSizing:"border-box"},children:a.map(e=>(0,i.jsx)(I,{section:e},e.id))},l)})})}var B=o(57122);function T(){let{city:e,cityKey:t,setCityModalOpen:o}=(0,B.h)();return e&&"none"!==t?(0,i.jsx)("span",{onClick:()=>o(!0),style:{position:"relative",top:"10px",fontSize:"14px",letterSpacing:"0.5px",cursor:"pointer",whiteSpace:"nowrap"},children:e?"\uD83D\uDCCD ".concat(e):""}):null}function _(){let{cityModalOpen:e,setCityModalOpen:t,setCity:o}=(0,B.h)(),[r,l]=(0,n.useState)(""),[a,s]=(0,n.useState)([]),[d,c]=(0,n.useState)(!1),p=(0,n.useRef)(null);if(!e)return null;let x=e=>{if(l(e),p.current&&clearTimeout(p.current),!e.trim()){s([]);return}p.current=setTimeout(async()=>{c(!0);try{let t=await fetch("https://nominatim.openstreetmap.org/search?q=".concat(encodeURIComponent(e),"&format=json&addressdetails=1&limit=6"),{headers:{"Accept-Language":"en"}}),o=await t.json(),i=new Set,n=o.reduce((e,t)=>{var o,n,r,l,a;let s=(null===(o=t.address)||void 0===o?void 0:o.city)||(null===(n=t.address)||void 0===n?void 0:n.town)||(null===(r=t.address)||void 0===r?void 0:r.village)||(null===(l=t.address)||void 0===l?void 0:l.county)||(null===(a=t.display_name)||void 0===a?void 0:a.split(",")[0])||"",d=s.toLowerCase().trim();return s&&!i.has(d)&&(i.add(d),e.push({display:s,key:d})),e},[]);s(n)}catch(e){}c(!1)},400)},g=(e,t)=>{o(e,t),h()},h=()=>{t(!1),l(""),s([])};return(0,i.jsx)("div",{onClick:h,style:{position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.5)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center",padding:"16px"},children:(0,i.jsx)("div",{onClick:e=>e.stopPropagation(),style:{backgroundColor:"#fff",borderRadius:"12px",width:"100%",maxWidth:"420px",overflow:"hidden"},children:(0,i.jsxs)("div",{style:{padding:"24px"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16px"},children:[(0,i.jsx)("h2",{style:{fontSize:"18px",fontWeight:"700",color:"#111"},children:"Select Experience"}),(0,i.jsx)("button",{onClick:h,style:{background:"none",border:"none",cursor:"pointer",fontSize:"20px",color:"#666"},children:"✕"})]}
1),(0,i.jsx)("input",{autoFocus:!0,type:"text",value:r,onChange:e=>x(e.target.value),placeholder:"Search city or zip / postal code...",style:{width:"100%",padding:"10px 12px",border:"1px solid #ddd",borderRadius:"8px",fontSize:"14px",boxSizing:"border-box",outline:"none"}}),(0,i.jsxs)("div",{style:{marginTop:"8px",maxHeight:"240px",overflowY:"auto"},children:[d&&(0,i.jsx)("div",{style:{padding:"12px",textAlign:"center",color:"#888",fontSize:"13px"},children:"Searching..."}),!d&&a.map(e=>(0,i.jsxs)("button",{onClick:()=>g(e.display,e.key),style:{width:"100%",padding:"10px 12px",textAlign:"left",background:"none",border:"none",borderBottom:"1px solid #f0f0f0",cursor:"pointer",fontSize:"14px",color:"#111"},children:["\uD83D\uDCCD ",e.display]},e.key)),!d&&r&&0===a.length&&(0,i.jsx)("div",{style:{padding:"12px",textAlign:"center",color:"#888",fontSize:"13px"},children:"No results found"})]})]})})})}var E=o(77265);function R(){let[e,t]=(0,n.useState)(""),[o,r]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{let e=sessionStorage.getItem("fortodo-bg-snackbar");e&&(sessionStorage.removeItem("fortodo-bg-snackbar"),t(e),r(!0),setTimeout(()=>r(!1),5e3))},[]),o)?(0,i.jsxs)("div",{style:{position:"fixed",bottom:"130px",left:"50%",transform:"translateX(-50%)",maxWidth:"150px",
1width:"100%",backgroundColor:"#fff",color:"rgb(3, 45, 96)",textAlign:"center",borderRadius:"2px",border:"1px solid #002550",padding:"16px",zIndex:9999,fontFamily:"Verdana, Arial, Helvetica, sans-serif",fontSize:"12px",animation:"snackbarFadeIn 0.5s ease"},children:[e,(0,i.jsx)("style",{children:"\n        @keyframes snackbarFadeIn {\n          from { bottom: 0px; opacity: 0; }\n          to { bottom: 130px; opacity: 1; }\n        }\n      "})]}):null}function W(e){let{lb:t}=e,o=(t.rotatingLines||[]).filter(e=>e.trim()),[r,l]=n.useState(0),[a,s]=n.useState("in"),d=1e3*(t.rotatingHold||3);if(n.useEffect(()=>{let e;if(o.length)return e="in"===a?setTimeout(()=>s("hold"),600):"hold"===a?setTimeout(()=>s("out"),d):setTimeout(()=>{l(e=>(e+1)%o.length),s("in")},600),()=>clearTimeout(e)},[a,r,o.length,d]),!o.length)return null;let c=o[r].split(" "),p="hold"===a?1:0,x="in"===a?0:"out"===a?-12:0;return(0,i.jsx)("div",{style:{fontSize:t.fontSize||"32px",color:t.fontColor||"#ffffff",textAlign:t.textAlign||"left",fontWeight:t.fontWeight||"700",fontStyle:t.fontStyle||void 0,lineHeight:t.lineHeight||1.3,padding:t.blockPadding||void 0,marginTop:t.blockMarginTop||void 0,minHeight:"calc(".concat(t.fontSize||"32px"," * ").concat(t.lineHeight||1.3," * 2)"),overflow:"hidden"},children:(0,i.jsx)("span",{style:{display:"inline",transition:"opacity ".concat(600,"ms ease, transform ").concat(600,"ms ease"),opacity:p,transform:"translateY(".concat(x,"px)"),willChange:"opacity, transform"},children:c.map((e,t)=>(0,i.jsx)("span",{style:{display:"inline-block",opacity:"in"===a?1:p,transform:"in"===a?"translateY(0)":"translateY(".concat(x,"px)"),transition:"opacity ".concat(600,"ms ease ").concat(60*t,"ms, transform ").concat(600,"ms ease ").concat(60*t,"ms"),marginRight:t<c.length-1?"0.28em":0},children:e},t))})})}function A(e){var t,o;let{cfg:r,children:l}=e;if((0,n.useEffect)(()=>{if(!r||"theme"!==r.bgType||!r.bgThemeMode)return;let e=r.bgThemeMode+"-mode";return document.body.classList.add(e),()=>{document.body.classList.remove(e)}},[null==r?void 0:r.bgType,null==r?void 0:r.bgThemeMode]),!r)return(0,i.jsx)(i.Fragment,{children:l});let a=void 0!==r.marginLeft?r.marginLeft:void 0,s=void 0!==r.marginRight?r.marginRight:void 0,d={};return"color"===r.bgType&&r.bgColor&&(d.backgroundColor=r.bgColor),"gradient"===r.bgType&&(d.background="linear-gradient("+(null!==(t=r.bgGradientAngle)&&void 0!==t?t:135)+"deg, "+(r.bgGradientFrom||"#ffffff")+", "+(r.bgGradientTo||"#000000")+")"),(0,i.jsxs)("div",{style:{position:"relative",borderRadius:r.borderRadius||"0px",padding:r.padding||"0px",...void 0!==a?{marginLeft:a}:{},...void 0!==s?{marginRight:s}:{},...r.borderWidth&&"0px"!==r.borderWidth?{border:r.borderWidth+" solid "+(r.borderColor||"#cccccc")}:{},...d},children:["image"===r.bgType&&r.bgImageUrl&&(0,i.jsx)("div",{style:{position:"absolute",inset:0,zIndex:0,backgroundImage:"url("+r.bgImageUrl+")",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),"video"===r.bgType&&r.bgVideoUrl&&(0,i.jsx)("video",{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:r.bgVideoUrl,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",zIndex:0}}),("image"===r.bgType||"video"===r.bgType)&&r.bgOverlayColor&&(0,i.jsx)("div",{style:{position:"absolute",inset:0,zIndex:1,backgroundColor:r.bgOverlayColor,opacity:null!==(o=r.bgOverlayOpacity)&&void 0!==o?o:.4,pointerEvents:"none"}}),(0,i.jsx)("div",{style:{position:"relative",zIndex:2},children:l}),r.extraBlocks&&r.extraBlocks.length>0&&(0,i.jsx)("div",{style:{position:"relative",zIndex:2,display:"flex",flexDirection:"column",gap:"12px",padding:"0 16px 16px"},children:[...r.extraBlocks].sort((e,t)=>e.order-t.order).map(e=>{if("spacer"===e.type)return(0,i.jsx)("div",{style:{height:e.spacerHeight||"16px"}},e.id);if("text"===e.type){let t=(0,i.jsx)("div",{style:{fontSize:e.fontSize||"16px",color:e.fontColor||"inherit",textAlign:e.textAlign||"center",fontWeight:e.fontWeight||void 0,fontStyle:e.fontStyle||void 0,lineHeight:1.6},dangerouslySetInnerHTML:{__html:e.text||""}},e.id);return e.textLinkUrl?(0,i.jsx)("a",{href:e.textLinkUrl,target:"_top",style:{textDecoration:"none",display:"block"},children:t},e.id):t}if("image"===e.type){let t=(0,i.jsx)("img",{src:e.imageUrl,alt:"",style:{width:e.imageWidth||"100%",height:e.imageHeight||"auto",borderRadius:e.imageBorderRadius||"0px",display:"block",margin:"center"===e.imageAlign?"0 auto":"right"===e.imageAlign?"0 0 0 auto":"0",maxWidth:"100%"}},e.id);return e.imageLinkUrl?(0,i.jsx)("a",{href:e.imageLinkUrl,target:"_top",children:t},e.id):t}return"button"===e.type?(0,i.jsx)("div",{style:{textAlign:"center"},children:(0,i.jsx)("a",{href:e.linkUrl||"#",target:"_top",style:{display:"inline-block",padding:e.btnPadding||"10px 24px",backgroundColor:e.btnBgColor||"#0c9034",color:e.btnTextColor||"#fff",borderRadius:e.btnBorderRadius||"8px",fontSize:e.btnFontSize||"15px",fontWeight:600,textDecoration:"none",border:e.btnBorderWidth&&"0px"!==e.btnBorderWidth?e.btnBorderWidth+" solid "+(e.btnBorderColor||"#000000"):"none"},children:e.label||"Learn More"})},e.id):null})})]})}
1function F(){let[e,t]=(0,n.useState)(null);return((0,n.useEffect)(()=>{(0,p.S)("/api/config/homepage").then(e=>e.json()).then(e=>{var o;let i=e.config;t((null==i?void 0:null===(o=i.ecosystemBanner)||void 0===o?void 0:o.enabled)?i.ecosystemBanner:null)}).catch(()=>{})},[]),e)?(0,i.jsxs)("div",{style:{textAlign:"center"},children:[e.imageUrl&&"below"!==e.imagePosition&&(e.imageLinkUrl?(0,i.jsx)("a",{href:e.imageLinkUrl,target:"_top",children:(0,i.jsx)("img",{src:e.imageUrl,alt:"",style:{maxHeight:e.imageSize||"100px",maxWidth:e.imageWidth||"400px",borderRadius:e.imageBorderRadius||"0px",margin:"0 auto 8px",display:"block"}})}):(0,i.jsx)("img",{src:e.imageUrl,alt:"",style:{maxHeight:e.imageSize||"100px",maxWidth:e.imageWidth||"400px",borderRadius:e.imageBorderRadius||"0px",margin:"0 auto 8px",display:"block"}})),e.text&&(e.textLinkUrl?(0,i.jsx)("a",{href:e.textLinkUrl,target:"_top",style:{textDecoration:"none"},children:(0,i.jsxs)("p",{style:{fontSize:e.textSize||"16px",color:e.textColor||"#333",fontWeight:"bold"===e.textEffect?700:void 0,margin:0},children:[e.textIconUrl&&(0,i.jsx)("img",{src:e.textIconUrl,alt:"",style:{height:"14px",marginRight:"6px",marginTop:"-2px",display:"inline"}}),e.text]})}):(0,i.jsxs)("p",{style:{fontSize:e.textSize||"16px",color:e.textColor||"#333",fontWeight:"bold"===e.textEffect?700:void 0,margin:0},children:[e.textIconUrl&&(0,i.jsx)("img",{src:e.textIconUrl,alt:"",style:{height:"14px",marginRight:"6px",marginTop:"-2px",display:"inline"}}),e.text]})),e.linkText&&e.linkUrl&&"button"===e.linkStyle&&(0,i.jsx)("p",{style:{marginTop:"10px"},children:(0,i.jsx)("a",{href:e.linkUrl,target:"_top",style:{display:"inline-block",padding:"8px 20px",borderRadius:"20px",backgroundColor:e.linkBgColor||"#0c9034",color:e.linkTextColor||"#fff",textDecoration:"none",fontSize:"14px",fontWeight:500},children:e.linkText})}),e.linkText&&e.linkUrl&&"button"!==e.linkStyle&&(0,i.jsx)("p",{style:{marginTop:"6px"},children:(0,i.jsx)("a",{href:e.linkUrl,target:"_top",style:{color:e.textColor||"#4054a1",fontSize:e.textSize||"16px"},children:e.linkText})}),e.imageUrl&&"below"===e.imagePosition&&(e.imageLinkUrl?(0,i.jsx)("a",{href:e.imageLinkUrl,target:"_top",style:{display:"inline-block"},children:(0,i.jsx)("img",{src:e.imageUrl,alt:"",style:{maxHeight:e.imageSize||"100px",maxWidth:e.imageWidth||"400px",borderRadius:e.imageBorderRadius||"0px",margin:"8px auto 0",display:"block"}})}):(0,i.jsx)("img",{src:e.imageUrl,alt:"",style:{maxHeight:e.imageSize||"100px",maxWidth:e.imageWidth||"400px",borderRadius:e.imageBorderRadius||"0px",margin:"8px auto 0",display:"block"}}))]}):null}function L(e){var t;let{userInfo:o,currentPresence:r}=e,[l,a]=n.useState(!1),[d,c]=n.useState(""),[p,x]=n.useState(""),[g,h]=n.useState(null),[u,f]=n.useState(null),[m,y]=n.useState([]),[b,v]=n.useState([]),j=n.useRef(null),w=n.useRef(null),S=n.useRef(null),k=n.useRef(null);n.useEffect(()=>{l&&j.current&&!w.current&&(w.current=new window.mapkit.Map(j.current,{showsCompass:window.mapkit.FeatureVisibility.Hidden,showsMapTypeControl:!1}))},[l]),n.useEffect(()=>{if(!l||!w.current)return;let e=w.current;e.removeAnnotations(e.annotations),e.overlays&&e.removeOverlays(e.overlays);let t=[];g&&t.push(new window.mapkit.MarkerAnnotation(g.coordinate,{color:"#22c55e",title:"Pickup"})),u&&t.push(new window.mapkit.MarkerAnnotation(u.coordinate,{color:"#ef4444",title:"Drop-off"})),t.length&&e.showItems(t,{animate:!0,padding:new window.mapkit.Padding(40,30,40,30)}),g&&u&&new window.mapkit.Directions().route({origin:g.coordinate,destination:u.coordinate,transportType:window.mapkit.Directions.Transport.Automobile},(o,i)=>{var n;if(!o&&(null===(n=i.routes)||void 0===n?void 0:n.length)){let o=new window.mapkit.PolylineOverlay(i.routes[0].polyline.points,{style:new window.mapkit.Style({lineWidth:5,strokeColor:"#2563eb"})});e.addOverlay(o),e.showItems([...t,o],{animate:!0,padding:new window.mapkit.Padding(40,30,40,30)})}})},[l,g,u]);let D=(e,t)=>{if(!l||e.length<2){t([]);return}new window.mapkit.Search().autocomplete(e,(e,o)=>{var i;e||t((null===(i=o.results)||void 0===i?void 0:i.slice(0,5))||[])})},C=(e,t,o,i)=>{var n,r;let l=(null===(n=e.displayLines)||void 0===n?void 0:n.join(", "))||e.completionUrl||"";t(l),i([]),new window.mapkit.Search().search((null===(r=e.displayLines)||void 0===r?void 0:r.join(" "))||l,(e,t)=>{var i;!e&&(null===(i=t.places)||void 0===i?void 0:i.length)&&o(t.places[0])})};return(0,i.jsxs)("div",{style:{maxWidth:"480px",margin:"30px auto 0",padding:"0 16px"},children:[(0,i.jsx)(s.default,{src:"https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.js",
1strategy:"afterInteractive",onLoad:()=>{window.mapkit&&!window.mapkit._initialized&&(window.mapkit.init({authorizationCallback:e=>e("eyJraWQiOiJUOTJLRzg2VVBUIiwidHlwIjoiSldUIiwiYWxnIjoiRVMyNTYifQ.eyJpc3MiOiI1N1FYOE5YSzlEIiwiaWF0IjoxNzczNzk0ODk2LCJvcmlnaW4iOiIqLmZvcnRvZG8uY29tIn0.SMj41ZD3J0hKM_NgidA9DdMZwA4YSOFgpo7Tp3oNXYqVYXPxSI9NPOIl4Wdq5YlFxABj-XGnr-IyhvQmqpa3Aw")}),window.mapkit._initialized=!0),a(!0)}}),(0,i.jsxs)("div",{style:{background:"#fff",borderRadius:"16px",boxShadow:"0 2px 12px rgba(0,0,0,0.1)",padding:"20px",border:"1px solid #e5e7eb"},children:[(o||r)&&(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},children:[o&&(0,i.jsx)("span",{style:{fontSize:"13px",fontWeight:600,color:"#374151"},children:o.preferred_username||o.given_name||o.name||(null===(t=o.email)||void 0===t?void 0:t.split("@")[0])}),(null==r?void 0:r.country)&&(0,i.jsx)("span",{style:{fontSize:"12px",color:"#6b7280"},children:r.country})]}),(0,i.jsxs)("div",{style:{position:"relative",marginBottom:"0"},children:[(0,i.jsx)("div",{style:{position:"absolute",left:"14px",top:"50%",transform:"translateY(-50%)",width:"10px",height:"10px",borderRadius:"50%",border:"2px solid #22c55e",background:"#fff",zIndex:1}}),(0,i.jsx)("input",{value:d,onChange:e=>{c(e.target.value),h(null),S.current&&clearTimeout(S.current),S.current=setTimeout(()=>D(e.target.value,y),300)},placeholder:"Pickup location",style:{width:"100%",boxSizing:"border-box",padding:"14px 14px 14px 36px",border:"1px solid #e5e7eb",borderRadius:"12px 12px 0 0",fontSize:"15px",outline:"none",background:"#f9fafb"}}),m.length>0&&(0,i.jsx)("div",{style:{position:"absolute",top:"100%",left:0,right:0,background:"#fff",border:"1px solid #e5e7eb",borderRadius:"10px",boxShadow:"0 4px 12px rgba(0,0,0,0.1)",zIndex:50,marginTop:"2px"},children:m.map((e,t)=>{var o;return(0,i.jsxs)("button",{onMouseDown:t=>{t.preventDefault(),C(e,c,h,y)},style:{display:"block",width:"100%",textAlign:"left",padding:"10px 14px",background:"none",border:"none",cursor:"pointer",fontSize:"13px",color:"#111827",borderBottom:t<m.length-1?"1px solid #f3f4f6":"none"},children:["\uD83D\uDCCD ",(null===(o=e.displayLines)||void 0===o?void 0:o.join(", "))||e.completionUrl]},t)})})]}),(0,i.jsxs)("div",{style:{position:"relative"},children:[(0,i.jsx)("div",{style:{position:"absolute",left:"14px",top:"50%",transform:"translateY(-50%)",width:"10px",height:"10px",borderRadius:"2px",background:"#ef4444",zIndex:1}}),(0,i.jsx)("input",{value:p,onChange:e=>{x(e.target.value),f(null),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>D(e.target.value,v),300)},placeholder:"Where to?",style:{width:"100%",boxSizing:"border-box",padding:"14px 14px 14px 36px",border:"1px solid #e5e7eb",borderTop:"none",borderRadius:"0 0 12px 12px",fontSize:"15px",outline:"none",background:"#f9fafb"}}),b.length>0&&(0,i.jsx)("div",{style:{position:"absolute",top:"100%",left:0,right:0,background:"#fff",border:"1px solid #e5e7eb",borderRadius:"10px",boxShadow:"0 4px 12px rgba(0,0,0,0.1)",zIndex:50,marginTop:"2px"},children:b.map((e,t)=>{var o;return(0,i.jsxs)("button",{onMouseDown:t=>{t.preventDefault(),C(e,x,f,v)},style:{display:"block",width:"100%",textAlign:"left",padding:"10px 14px",background:"none",border:"none",cursor:"pointer",fontSize:"13px",color:"#111827",borderBottom:t<b.length-1?"1px solid #f3f4f6":"none"},children:["\uD83D\uDCCD ",(null===(o=e.displayLines)||void 0===o?void 0:o.join(", "))||e.completionUrl]},t)})})]}),(0,i.jsx)("div",{ref:j,style:{width:"100%",height:"180px",borderRadius:"12px",overflow:"hidden",border:"1px solid #e5e7eb",marginTop:"14px",display:g||u?"block":"none"}}),(0,i.jsx)("button",{onClick:()=>{let e=new URLSearchParams;d&&e.set("pickup",d),p&&e.set("dest",p),window.location.href="/rides".concat(e.toString()?"?"+e.toString():"")},style:{marginTop:"14px",width:"100%",padding:"14px",background:"#000",color:"#fff",border:"none",borderRadius:"12px",fontSize:"15px",fontWeight:700,cursor:"pointer"},children:"Request a Ride"}),(0,i.jsxs)("div",{style:{marginTop:"12px",display:"flex",justifyContent:"center",gap:"16px",fontSize:"12px"},children:[(0,i.jsx)("a",{href:"/rides",style:{color:"#4054a1"},children:"All ride options"}),(0,i.jsx)("a",{href:"/rides?tab=drive",style:{color:"#4054a1"},children:"Drive / Earn"}),(0,i.jsx)("a",{href:"/delivery",style:{color:"#4054a1"},children:"Delivery"})]})]})]})}function U(){var e,t,r,v,w,k,D,C,I,U,M,N,P,O,H,V,K,G;if("/"===window.location.pathname){let e=localStorage.getItem("fortodo-homePage");if(e&&"/"!==e&&e.startsWith("/"))return window.location.href=e,null}let{t:Y,language:q}=(0,y.Z)(),{city:J,cityKey:Z,cityReady:X,setCity:$}=(0,B.h)(),{currentPresence:Q,allPresences:ee,setCurrentPresence:et,setAllPresences:eo}=(0,g.t)(),{userType:ei,loadUserType:en}=(0,h.u)();(0,a.useRouter)();
1let[er,el]=(0,n.useState)(!0),[ea,es]=(0,n.useState)(!1),[ed,ec]=(0,n.useState)(!1),[ep,ex]=(0,n.useState)(null),[eg,eh]=(0,n.useState)(null),[eu,ef]=(0,n.useState)([]),[em,ey]=(0,n.useState)(""),[eb,ev]=(0,n.useState)(!1),[ej,ew]=(0,n.useState)([]),[eS,ek]=(0,n.useState)([]),[eD,eC]=(0,n.useState)([]),[eI,ez]=(0,n.useState)({balance:0,rewards:0}),[eB,eT]=(0,n.useState)([]),[e_,eE]=(0,n.useState)("1234"),[eR,eW]=(0,n.useState)(!1),[eA,eF]=(0,n.useState)(!1),[eL,eU]=(0,n.useState)("postEvents"),[eM,eN]=(0,n.useState)(!1),[eP,eO]=(0,n.useState)(!1),[eH,eV]=(0,n.useState)(!1),[eK,eG]=(0,n.useState)(!1),[eY,eq]=(0,n.useState)(!1),[eJ,eZ]=(0,n.useState)(!1),[eX,e$]=(0,n.useState)("Adult"),[eQ,e0]=(0,n.useState)(""),[e1,e2]=(0,n.useState)("Light"),[e3,e4]=(0,n.useState)("Default"),e6={None:{display:"None",key:"none"},Default:{display:"Default",key:""},Search:{display:"Search",key:"__product:search"},Transportation:{display:"Transportation",key:"__product:rides"},Detroit:{display:"Detroit",key:"detroit"},"New York":{display:"New York",key:"new york"},Paris:{display:"Paris",key:"paris"},"Silicon Valley":{display:"Silicon Valley",key:"palo alto"},"San Francisco":{display:"San Francisco",key:"san francisco"}},e5=e=>{let t=e6[e];void 0!==t&&$(t.display,t.key)};(0,n.useEffect)(()=>{if(!X)return;let e=Object.entries(e6).find(e=>{let[,t]=e;return t.key===Z});e?e4(e[0]):"none"===Z?e4("None"):Z&&J?e4(J):e4("Default")},[X,Z]);let[e8,e7]=(0,n.useState)(!1),[e9,te]=(0,n.useState)(""),[tt,to]=(0,n.useState)(!1),[ti,tn]=(0,n.useState)(!1),tr=(0,n.useRef)(null),tl=(0,n.useRef)(null),ta=e=>{tr.current&&clearTimeout(tr.current),tl.current&&clearTimeout(tl.current),te(e),to(!0),tl.current=setTimeout(()=>tn(!0),10),tr.current=setTimeout(()=>{tn(!1),tl.current=setTimeout(()=>to(!1),400)},3e3)},[ts,td]=(0,n.useState)(""),[tc,tp]=(0,n.useState)([]),[tx,tg]=(0,n.useState)(!1),th=(0,n.useRef)(null),tu=e=>{if(td(e),th.current&&clearTimeout(th.current),!e.trim()){tp([]);return}th.current=setTimeout(async()=>{tg(!0);try{let t=await fetch("https://nominatim.openstreetmap.org/search?q=".concat(encodeURIComponent(e),"&format=json&addressdetails=1&limit=6"),{headers:{"Accept-Language":"en"}}),o=await t.json(),i=new Set,n=o.reduce((e,t)=>{var o,n,r,l,a;let s=(null===(o=t.address)||void 0===o?void 0:o.city)||(null===(n=t.address)||void 0===n?void 0:n.town)||(null===(r=t.address)||void 0===r?void 0:r.village)||(null===(l=t.address)||void 0===l?void 0:l.county)||(null===(a=t.display_name)||void 0===a?void 0:a.split(",")[0])||"",d=s.toLowerCase().trim();return s&&!i.has(d)&&(i.add(d),e.push({display:s,key:d})),e},[]);tp(n)}catch(e){}tg(!1)},400)},[tf,tm]=(0,n.useState)(!1),[ty,tb]=(0,n.useState)(!1);(0,n.useEffect)(()=>(window.__setEcosystemOpen=tb,()=>{delete window.__setEcosystemOpen}),[tb]);let[tv,tj]=(0,n.useState)(!1),[tw,tS]=(0,n.useState)(!1),[tk,tD]=(0,n.useState)(!1),[tC,tI]=(0,n.useState)(0),[tz,tB]=(0,n.useState)(""),[tT,t_]=(0,n.useState)("Welcome"),[tE,tR]=(0,n.useState)(0),[tW,tA]=(0,n.useState)(0),[tF,tL]=(0,n.useState)(!1),[tU,tM]=(0,n.useState)(""),[tN,tP]=(0,n.useState)(0),[tO,tH]=(0,n.useState)(!1),[tV,tK]=(0,n.useState)(!1),[tG,tY]=(0,n.use
1State)(!1),[tq,tJ]=(0,n.useState)(0),[tZ,tX]=(0,n.useState)(0),[t$,tQ]=(0,n.useState)([]),[t0,t1]=(0,n.useState)([]),[t2,t3]=(0,n.useState)([]),[t4,t6]=(0,n.useState)(!1),[t5,t8]=(0,n.useState)(""),[t7,t9]=(0,n.useState)(0),[oe,ot]=(0,n.useState)(null),[oo,oi]=(0,n.useState)(null),[on,or]=(0,n.useState)(!1),[ol,oa]=(0,n.useState)(null),[os,od]=(0,n.useState)(()=>"true"===localStorage.getItem("ssi-tabbar-collapsed")||null===localStorage.getItem("ssi-tabbar-collapsed")),oc=(0,n.useRef)(null),[op,ox]=(0,n.useState)([]),[og,oh]=(0,n.useState)(!1),ou=(0,n.useRef)(null),[of,om]=(0,n.useState)([]),[oy,ob]=(0,n.useState)(new Set),[ov,oj]=(0,n.useState)([]),[ow,oS]=(0,n.useState)([]),[ok,oD]=(0,n.useState)(!1),[oC,oI]=(0,n.useState)(!1),[oz,oB]=(0,n.useState)(!1),[oT,o_]=(0,n.useState)(!1),[oE,oR]=(0,n.useState)(!1),[oW,oA]=(0,n.useState)(!1),[oF,oL]=(0,n.useState)(!1),[oU,oM]=(0,n.useState)(""),[oN,oP]=(0,n.useState)(!1),[oO,oH]=(0,n.useState)(null),[oV,oK]=(0,n.useState)(""),[oG,oY]=(0,n.useState)("identifier"),[oq,oJ]=(0,n.useState)(""),[oZ,oX]=(0,n.useState)(null),[o$,oQ]=(0,n.useState)(""),[o0,o1]=(0,n.useState)(""),[o2,o3]=(0,n.useState)(""),[o4,o6]=(0,n.useState)(!1),o5=async()=>{try{let{signInWithRedirect:e}=await o.e(6238).then(o.bind(o,16238));await e()}catch(e){window.location.reload()}},o8=async e=>{o6(!0);try{let{signIn:t}=await o.e(6238).then(o.bind(o,16238));await t({username:oq,options:{authFlowType:"USER_AUTH",preferredChallenge:"email_otp"===e?"EMAIL_OTP":"SMS_OTP"}})}catch(e){o3(e.message||"Failed to send code.")}finally{o6(!1)}},[o7,o9]=(0,n.useState)(!1),[ie,it]=(0,n.useState)(!1),[io,ii]=(0,n.useState)(!1),[ir,il]=(0,n.useState)(()=>"true"===localStorage.getItem("fortodo-hide-logo")),[ia,is]=(0,n.useState)(()=>"true"===localStorage.getItem("fortodo-hide-header-logo")),[id,ic]=(0,n.useState)(!1),[ip,ix]=(0,n.useState)(void 0),[ig,ih]=(0,n.useState)(()=>parseFloat(localStorage.getItem("fortodo-bg-opacity")||"0")),[iu,im]=(0,n.useState)(null),[iy,ib]=(0,n.useState)(!1),[iv,ij]=(0,n.useState)(null);(0,n.useEffect)(()=>{var e;let t=null==iu?void 0:null===(e=iu.countdownBanner)||void 0===e?void 0:e.eventDate,o=()=>{if(!t)return;let e=Math.max(0,new Date(t).getTime()-Date.now());ij({days:Math.floor(e/864e5),hours:Math.floor(e%864e5/36e5),mins:Math.floor(e%36e5/6e4),secs:Math.floor(e%6e4/1e3),expired:0===e})};o();let i=setInterval(o,1e3);return()=>clearInterval(i)},[null==iu?void 0:null===(e=iu.countdownBanner)||void 0===e?void 0:e.eventDate]),(0,n.useEffect)(()=>{ei&&e$(ei)},[ei]),(0,n.useEffect)(()=>{(0,p.S)("/api/config/homepage").then(e=>e.json()).then(e=>{e.config&&im(e.config)}).catch(()=>{}).finally(()=>ib(!0))},[]),(0,n.useEffect)(()=>{"true"===localStorage.getItem("fortodo-hide-tagline")&&oD(!0),"true"===localStorage.getItem("fortodo-keep-logo")&&oI(!0),"true"===localStorage.getItem("fortodo-hide-info-banner")&&oB(!0),"true"===localStorage.getItem("fortodo-hide-search")&&o_(!0),"true"===localStorage.getItem("fortodo-hide-alert-banner")&&oA(!0),"true"===localStorage.getItem("fortodo-hide-countdown-banner")&&oL(!0),"true"===localStorage.getItem("fortodo-hide-doodle")&&o9(!0),"true"===localStorage.getItem("fortodo-hide-order-status")&&it(!0),"true"===localStorage.getItem("fortodo-hide-sections")&&ii(!0),"true"===localStorage.getItem("fortodo-hide-logo")&&il(!0),"true"===localStorage.getItem("fortodo-hide-header-logo")&&is(!0);let e=localStorage.getItem("fortodo-user-background");if(e)try{ix(JSON.parse(e))}catch(e){}if(!(null==ep?void 0:ep.sub)){oD(!1),il(!1),oB(!1),o_(!1),oA(!1),oL(!1),o9(!1),it(!1),ii(!1),ic(!0);return}ic(!1),(0,p.S)("/api/user-preferences?userId=".concat(ep.sub)).then(e=>e.ok?e.json():null).then(e=>{if(null==e?void 0:e.preferences){if(null!=e.preferences.hideTagline&&(oD(e.preferences.hideTagline),localStorage.setItem("fortodo-hide-tagline",String(e.preferences.hideTagline))),null!=e.preferences.keepLogo&&(oI(e.preferences.keepLogo),localStorage.setItem("fortodo-keep-logo",String(e.preferences.keepLogo))),null!=e.preferences.hideInfoBanner&&(oB(e.preferences.hideInfoBanner),localStorage.setItem("fortodo-hide-info-banner",String(e.preferences.hideInfoBanner))),null!=e.preferences.hideSearch&&(o_(e.preferences.hideSearch),localStorage.setItem("fortodo-hide-search",String(e.preferences.hideSearch))),null!=e.preferences.hideAlertBanner&&(oA(e.preferences.hideAlertBanner),localStorage.setItem("fortodo-hide-alert-banner",String(e.preferences.hideAlertBanner))),null!=e.preferences.hideCountdownBanner&&(oL(e.preferences.hideCountdownBanner),localStorage.setItem("fortodo-hide-countdown-banner",String(e.preferences.hideCountdownBanner))),null!=e.preferences.hideDoodle&&(o9(e.preferences.hideDoodle),localStorage.setItem("fortodo-hide-doodle",String(e.preferences.hideDoodle))),null!=e.preferences.hideOrderStatus&&(it(e.preferences.hideOrderStatus),localStorage.setItem("fortodo-hide-order-status",String(e.preferences.hideOrderStatus))),null!=e.preferences.hideSections&&(ii(e.preferences.hideSections),localStorage.setItem("fortodo-hide-sections",String(e.preferences.hideSections))),null!=e.preferences.hideLogo&&(il(e.preferences.hideLogo),localStorage.setItem("fortodo-hide-logo",String(e.preferences.hideLogo))),null!=e.preferences.hideHeaderLogo&&(is(e.preferences.hideHeaderLogo),localStorage.setItem("fortodo-hide-header-logo",String(e.preferences.hideHeaderLogo))),e.preferences.theme&&((0,m.Dc)(e.preferences.theme),e2(e.preferences.theme)),e.preferences.language){let t=localStorage.getItem("fortodo-language");if(e.preferences.language!==t){localStorage.setItem("fortodo-language",e.preferences.language),document.cookie="fortodo-language=".concat(e.preferences.language,";domain=.fortodo.com;path=/;max-age=31536000;SameSite=Lax"),window.location.reload();return}}e.preferences.background&&"none"!==e.preferences.background&&"object"==typeof e.preferences.background&&e.preferences.background.type?(localStorage.setItem("fortodo-user-background",JSON.stringify(e.preferences.background)),ix(e.preferences.background)):(localStorage.removeItem("fortodo-user-background"),ix(null)),null!=e.preferences.bgOpacity&&(ih(e.preferences.bgOpacity),localStorage.setItem("fortodo-bg-opacity",String(e.preferences.bgOpacity)));let t=e.preferences.homePage;if(t&&"/"!==t&&t.startsWith("/")&&!t.includes("//")&&"/"===window.location.pathname){localStorage.setItem("fortodo-homePage",t),window.location.href=t;return}t&&"/"!==t||localStorage.removeItem("fortodo-homePage")}}).catch(()=>{}).finally(()=>ic(!0)),(0,p.S)("/api/custom-pages?userId=".concat(ep.sub)).then(e=>e.json()).then(e=>{var t;(null===(t=e.pages)||void 0===t?void 0:t.length)>0&&tM(e.pages[0].slug)}).catch(()=>{})},[null==ep?void 0:ep.sub]);let iw=async e=>{(null==ep?void 0:ep.sub)&&await (0,p.S)("/api/user-preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:ep.sub,preferences:e})}).catch(()=>{})}
1,[iS,ik]=(0,n.useState)(!0),iD=e=>e&&"Unknown"!==e&&"User"!==e&&""!==e?e.split(" ").map(e=>e.charAt(0)).join("").toUpperCase().substring(0,5):"url(https://www.fortodo.com/images/circled-avatars-in-circle.png)";(0,n.useEffect)(()=>{if(!eY&&!tG)return;let e=e=>{let t=e.target;t.closest("[data-dropdown-menu]")||t.closest("[data-dropdown-trigger]")||eq(!1),tY(!1)},t=setTimeout(()=>document.addEventListener("click",e),10);return()=>{clearTimeout(t),document.removeEventListener("click",e)}},[eY,tG]),(0,n.useEffect)(()=>{if(!og)return;let e=e=>{ou.current&&!ou.current.contains(e.target)&&oh(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[og]),(0,n.useEffect)(()=>{let e=(0,m.gh)();e2(e||"Light");let t=document.body;t.className=t.className.replace(/\b\w+-mode\b/g,"").trim(),e&&"Light"!==e&&t.classList.add(e+"-mode")},[]),(0,n.useEffect)(()=>{let e=()=>{let e=document.querySelector("#fortodologo img");e&&(e.style.width=window.scrollY>=15?"0px":"452px");let t=document.querySelector("#fortodologoname img"),o=document.querySelector("#logoicon img");t&&o&&(window.scrollY>=15?(t.style.height="0px",t.style.opacity="0",o.style.height="40px",o.style.width="40px"):(t.style.height="40px",t.style.opacity="1",o.style.height="0px",o.style.width="0px"));let i=document.querySelector("#logoicon-mobile img");i&&(window.scrollY>=15?(i.style.height="0px",i.style.width="0px"):(i.style.height="40px",i.style.width="40px"))},t=()=>{let e=window.scrollY>1;tj(t=>(t&&!e&&tb(!1),e))},o=()=>{tS(window.scrollY+window.innerHeight>=document.documentElement.scrollHeight-50)};return window.addEventListener("scroll",e),window.addEventListener("scroll",t),window.addEventListener("scroll",o),()=>{window.removeEventListener("scroll",e),window.removeEventListener("scroll",t),window.removeEventListener("scroll",o)}},[]),(0,n.useEffect)(()=>{"1"===new URLSearchParams(window.location.search).get("openProducts")&&(eZ(!0),window.history.replaceState({},"",window.location.pathname));let e=()=>eZ(!0);return document.addEventListener("openProductsMenu",e),()=>document.removeEventListener("openProductsMenu",e)},[]),(0,n.useEffect)(()=>{if(ea&&oC||(null==iu?void 0:iu.keepLogoVisible))return;let e=setTimeout(()=>ik(!1),5e3);return()=>clearTimeout(e)},[ea,oC,null==iu?void 0:iu.keepLogoVisible]),(0,n.useEffect)(()=>{if(ea)return;let e=new Date().getHours(),t=["Morning!","G'day mate","Hey"],o=["Afternoon!","Welcome back","Hey"],i=["Evening!","What a day","Friend"],n=[":)","Night","Hey!"];tB(e<12?t[Math.floor(Math.random()*t.length)]:e<17?o[Math.floor(Math.random()*o.length)]:e<20?i[Math.floor(Math.random()*i.length)]:n[Math.floor(Math.random()*n.length)]),t_("Welcome"),tI(0);let r=setTimeout(()=>tI(1),3500),l=setTimeout(()=>tI(2),6500);return()=>{clearTimeout(r),clearTimeout(l)}},[ea]),(0,n.useEffect)(()=>{(async()=>{try{let t=new URLSearchParams(window.location.search),o=t.get("code"),i=t.get("state");o&&i&&(console.log("\uD83D\uDD04 OAuth callback detected, processing..."),await new Promise(e=>setTimeout(e,3e3)),window.history.replaceState({},document.title,window.location.pathname));let n=localStorage.getItem("fortodo_user");if(n)try{let e=JSON.parse(n);if(e.authenticated&&e.email){console.log("✅ Found crossDomainAuth session:",e.email),es(!0),ex({username:e.username,email:e.email,name:e.name,sub:e.sub,preferred_username:e.username}),el(!1);return}}catch(e){console.log("Error parsing crossDomainAuth data:",e)}if(await d.CognitoAuthService.isAuthenticated()){let t=await d.CognitoAuthService.getCurrentUser();if(t){console.log("✅ User authenticated via Cognito:",t.email),es(!0),ex(t),el(!1);try{let o=await (0,p.S)("/api/user-preferences?userId=".concat(t.sub));if(o.ok){var e;let i=await o.json();(null===(e=i.preferences)||void 0===e?void 0:e.tourDone)?localStorage.setItem("tourDone_".concat(t.sub),"true"):setTimeout(()=>eV(!0),1e3)}else localStorage.getItem("tourDone_".concat(t.sub))||setTimeout(()=>eV(!0),1e3)}catch(e){localStorage.getItem("tourDone_".concat(t.sub))||setTimeout(()=>eV(!0),1e3)}ec(!0);return}}console.log("⚠️ User not authenticated"),ec(!0),el(!1)}catch(e){console.error("Error checking authentication:",e),el(!1)}})()},[]),(0,n.useEffect)(()=>{(null==ep?void 0:ep.email)&&iH()},[ep]);
1let[iC,iI]=(0,n.useState)(0);(0,n.useEffect)(()=>{if(!(null==ep?void 0:ep.sub))return;let e=null,t=()=>{e?(0,p.S)("/api/mail?participant=".concat(encodeURIComponent(e))).then(e=>e.json()).then(e=>iI(e.totalUnread||0)).catch(()=>{}):(0,p.S)("/api/lookup-user?userId=".concat(ep.sub)).then(e=>e.json()).then(t=>{(e=t.fortodo_email)&&(0,p.S)("/api/mail?participant=".concat(encodeURIComponent(e))).then(e=>e.json()).then(e=>iI(e.totalUnread||0)).catch(()=>{})}).catch(()=>{})};t();let o=setInterval(t,3e4);return()=>clearInterval(o)},[ep]),(0,n.useEffect)(()=>{(null==ep?void 0:ep.email)&&(iz(),iB(),(0,p.S)("https://cafes.fortodo.com/api/order-status?userId=".concat(ep.sub)).then(e=>e.ok?e.json():null).then(e=>{e&&tQ((e.orders||[]).filter(e=>"completed"!==(e.fulfillmentStatus||"pending")))}).catch(()=>{}),(0,p.S)("https://www.goodiesaisle.com/api/orders?userId=".concat(ep.sub)).then(e=>e.ok?e.json():null).then(e=>{if(e){let t=["ready","preparing","confirmed","pending"];t1((e.orders||[]).filter(e=>t.includes(e.status)))}}).catch(()=>{}),(0,p.S)("/api/delivery-orders?userId=".concat(ep.sub)).then(e=>e.ok?e.json():null).then(e=>{e&&t3(e.orders||[])}).catch(()=>{}))},[ep]),(0,n.useEffect)(()=>{(null==ep?void 0:ep.sub)&&Promise.all([(0,p.S)("/api/support-notifications?userId=".concat(ep.sub,"&type=guardian-watch")).then(e=>e.ok?e.json():null).catch(()=>null),(0,p.S)("/api/support-notifications?userId=".concat(ep.sub,"&type=guardian-active")).then(e=>e.ok?e.json():null).catch(()=>null)]).then(e=>{let[t,o]=e,i=((null==t?void 0:t.notifications)||[]).find(e=>!e.dismissed),n=((null==o?void 0:o.notifications)||[]).find(e=>!e.dismissed);oi(i||n||null)})},[null==ep?void 0:ep.sub]),(0,n.useEffect)(()=>{if(!(null==ep?void 0:ep.sub)||!(null==Q?void 0:Q.id))return;let e=setInterval(()=>{(0,p.S)("/api/cash-account?userId=".concat(ep.sub,"&presenceId=").concat(Q.id)).then(e=>e.ok?e.json():null).then(e=>{e&&tR(e.balance||0)}).catch(()=>{}),(0,p.S)("/api/user-billing?userId=".concat(ep.sub)).then(e=>e.ok?e.json():null).then(e=>{e&&tP(e.billBalance||0)}).catch(()=>{}),iR(ep.sub),iM(ep.sub),iL(ep.sub),iU(ep.sub),iW(ep.sub),iA(ep.sub),iF(ep.sub),Promise.all([(0,p.S)("/api/support-notifications?userId=".concat(ep.sub,"&type=guardian-watch")).then(e=>e.ok?e.json():null).catch(()=>null),(0,p.S)("/api/support-notifications?userId=".concat(ep.sub,"&type=guardian-active")).then(e=>e.ok?e.json():null).catch(()=>null)]).then(e=>{let[t,o]=e,i=((null==t?void 0:t.notifications)||[]).find(e=>!e.dismissed),n=((null==o?void 0:o.notifications)||[]).find(e=>!e.dismissed),r=i||n||null;r&&!oo&&"undefined"!=typeof Notification&&"granted"===Notification.permission&&new Notification(r.title,{body:r.message,icon:"/favicon.ico"}),oi(r)}),(0,p.S)("/api/notifications?userId=".concat(ep.sub),{headers:{"Content-Type":"application/json"}}).then(e=>e.ok?e.json():null).then(e=>{e&&ox(e.notifications||[])}).catch(()=>{}),(0,p.S)("https://cafes.fortodo.com/api/order-status?userId=".concat(ep.sub)).then(e=>e.ok?e.json():null).then(e=>{e&&tQ((e.orders||[]).filter(e=>"completed"!==(e.fulfillmentStatus||"pending")))}).catch(()=>{}),(0,p.S)("https://www.goodiesaisle.com/api/orders?userId=".concat(ep.sub)).then(e=>e.ok?e.json():null).then(e=>{if(e){let t=["ready","preparing","confirmed","pending"];t1((e.orders||[]).filter(e=>t.includes(e.status)))}}).catch(()=>{}),(0,p.S)("/api/delivery-orders?userId=".concat(ep.sub)).then(e=>e.ok?e.json():null).then(e=>{e&&t3(e.orders||[])}).catch(()=>{})},1e4);return()=>clearInterval(e)},[null==ep?void 0:ep.sub,null==Q?void 0:Q.id]),(0,n.useEffect)(()=>{if(0===tE&&0===tW||tW===tE)return;let e=tE-tW,t=0;tL(!0),setTimeout(()=>tL(!1),800);let o=setTimeout(()=>{let o=setInterval(()=>{if(++t>=30){clearInterval(o),tA(tE);return}tA(Math.round((tW+e*(1-Math.pow(1-t/30,3)))*100)/100)},25)},150);return()=>clearTimeout(o)},[tE]),(0,n.useEffect)(()=>{if(!oe||!t4)return;let e=()=>{let e=new Date(oe).getTime();t9(Math.max(0,Math.floor((Date.now()-e)/1e3)))};e();let t=setInterval(e,1e3);return()=>clearInterval(t)},[oe,t4]),(0,n.useEffect)(()=>{if(!(null==ep?void 0:ep.sub))return;let e=()=>{(0,p.S)("/api/config/alerts?userId=".concat(ep.sub,"&country=").concat(encodeURIComponent((null==Q?void 0:Q.country)||""),"&category=").concat(encodeURIComponent((null==Q?void 0:Q.type)||""))).then(e=>e.ok?e.json():[]).then(e=>om(Array.isArray(e)?e:[])).catch(()=>{})};e();let t=setInterval(e,6e4);return()=>clearInterval(t)},[null==ep?void 0:ep.sub,null==Q?void 0:Q.country]),(0,n.useEffect)(()=>
1{if(!ea)return;let e=()=>{(0,p.S)("/api/config/news-alerts").then(e=>e.ok?e.json():[]).then(e=>oj(Array.isArray(e)?e:[])).catch(()=>{})};e();let t=setInterval(e,6e4);return()=>clearInterval(t)},[ea]),(0,n.useEffect)(()=>{(0,p.S)("/api/config/guest-alerts").then(e=>e.ok?e.json():[]).then(e=>oS(Array.isArray(e)?e:[])).catch(()=>{})},[]),(0,n.useEffect)(()=>{let e="ssi-parallax-style";if(!document.getElementById(e)){let t=document.createElement("style");t.id=e,t.textContent="\n        .ssi-parallax-square { transition: opacity 1.5s ease, transform 1.5s ease; opacity: 0; transform: scale(1.2); overflow: hidden; }\n        .ssi-parallax-square.ssi-parallax-on { opacity: 1; transform: scale(1.0); }\n      ",document.head.appendChild(t)}let t=setTimeout(()=>{document.querySelectorAll(".ssi-parallax-wrap").forEach(e=>{let t=e.querySelector(".ssi-parallax-square");if(!t||t.classList.contains("ssi-parallax-on"))return;let o=e.__parallaxObserver;o&&o.disconnect();let i=new IntersectionObserver(e=>{e.forEach(e=>{let t=e.target.querySelector(".ssi-parallax-square");t&&e.isIntersecting&&t.classList.add("ssi-parallax-on")})},{rootMargin:window.innerWidth<770?"0px":"-400px 0px -400px 0px"});e.__parallaxObserver=i,i.observe(e);let n=e.getBoundingClientRect(),r=window.innerWidth<770?0:400;n.top<window.innerHeight-r&&n.bottom>r&&t.classList.add("ssi-parallax-on")})},200);return()=>clearTimeout(t)},[iu,ty]),(0,n.useEffect)(()=>{if("function"!=typeof window.autocomplete||void 0===window.various)return;let e=setTimeout(()=>{["search_form_input_homepage","search_form_input_icon","search_form_input_product"].forEach(e=>{let t=document.getElementById(e);t&&window.autocomplete(t,window.various)})},100);return()=>clearTimeout(e)},[ty,oE]);let iz=()=>{if(!(null==ep?void 0:ep.email))return;let e=localStorage.getItem("userPresences_".concat(ep.email));if(e){let t=JSON.parse(e);ef(t),eo(t)}let t=localStorage.getItem("lastPresencesResponse");if(t){let e=JSON.parse(t);if(e.presences&&e.presences.length>0){let t=localStorage.getItem("currentPresenceId_".concat((null==ep?void 0:ep.email)||"")),o=t&&e.presences.find(e=>e.id===t)||e.presences.find(e=>e.isDefault)||e.presences[0];ez({balance:parseFloat(o.balance)||0,rewards:parseInt(o.rewards)||0}),eT(o.services||[])}}},iB=async()=>{if(!(null==ep?void 0:ep.email)||!(null==ep?void 0:ep.sub))return;let e=!!(null==Q?void 0:Q.id);try{let t=await x.getInstance().syncAllUserData(ep.email,ep.sub);if(t.success){if(t.presences&&t.presences.length>0){let o=[...t.presences].sort((e,t)=>e.isDefault&&!t.isDefault?-1:!e.isDefault&&t.isDefault?1:0);if(ef(o),eo(o),!e){let e=localStorage.getItem("currentPresenceId_".concat((null==ep?void 0:ep.email)||"")),t=e&&o.find(t=>t.id===e)||o.find(e=>e.isDefault)||o[0];et(t),console.log("✅ Set current presence:",t.userName,t.country)}}await iT(ep.sub),await i_(ep.sub),await iE(ep.sub),await iR(ep.sub),await iM(ep.sub);let o=await d.CognitoAuthService.getAccessToken();o&&await en(ep.sub,o),console.log("✅ Comprehensive data sync completed")}else console.log("⚠️ Partial sync completed - some data may be missing")}catch(e){console.error("Error loading user data:",e)}},iT=async e=>{try{let o=await d.CognitoAuthService.getAccessToken(),i={"Content-Type":"application/json"};o&&(i.Authorization="Bearer ".concat(o));let n=await (0,p.S)("/api/presences?userId=".concat(e),{headers:i});if(n.ok){let o=await n.json();if(localStorage.setItem("lastPresencesResponse",JSON.stringify(o)),o.presences&&o.presences.length>0){var t;let i=localStorage.getItem("currentPresenceId_".concat((null==ep?void 0:ep.email)||"")),n=i&&o.presences.find(e=>e.id===i)||o.presences.find(e=>e.isDefault)||o.presences[0];ez({balance:parseFloat(n.balance)||0,rewards:parseInt(n.rewards)||0}),n.services&&Array.isArray(n.services)&&eT(n.services);let r=n.id||n.presenceId;e&&r&&(0,p.S)("/api/aggregate-earnings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e,presenceId:r})}).then(e=>e.ok?e.json():null).then(e=>{(null==e?void 0:e.balance)!=null&&ez({balance:e.balance,rewards:e.rewards||0})}).catch(()=>{}),console.log("✅ Default presence - Balance:",n.balance,"Rewards:",n.rewards,"Services:",(null===(t=n.services)||void 0===t?void 0:t.length)||0)}}}catch(e){console.error("Failed to load balance data:",e)}},i_=async e=>{try{let t=await d.CognitoAuthService.getAccessToken(),o={"Content-Type":"application/json"};t&&(o.Authorization="Bearer ".concat(t));let i=await (0,p.S)("/api/user-pin?cognitoSub=".concat(e),{headers:o});if(i.ok){let e=await i.json();eE(e.pin||"1234"),console.log("✅ PIN data loaded:",e.hasCustomPin?"Custom PIN":"Default PIN")}}catch(e){console.error("Failed to load PIN data:",e)}},iE=async(e,t)=>{try{let o=await d.CognitoAuthService.getAccessToken(),i={"Content-Type":"application/json"};o&&(i.Authorization="Bearer ".concat(o));let n=t||(null==Q?void 0:Q.id)||"";if(n){let t=await (0,p.S)("/api/cash-account?userId=".concat(e,"&presenceId=").concat(n),{headers:i});if(t.ok){let e=await t.json();tR(e.balance||0)}}let r=await (0,p.S)("/api/user-billing?userId=".concat(e),{headers:i});if(r.ok){let e=await r.json();tP(e.billBalance||0)}}catch(e){console.error("Failed to load cash/bill data:",e)}},iR=async e=>{try{let t=!1;for(let o of["delivery","driver","liaison","general","helper","finder","taskdoer"]){let i=await (0,p.S)("/api/active-doers?taskType=".concat(o,"&userId=").concat(e));if(i.ok&&(await i.json()).isActive){t=!0;break}}tH(t);try{let e=(null==Q?void 0:Q.country)||"",t=e?"/api/config/services/catalog?region=".concat(encodeURIComponent(e)):"/api/config/services/catalog",o=await fetch(t);if(o.ok){let e=await o.json();tK((e.services||[]).some(e=>"Forever"===e.name))}}catch(e){}}
1catch(e){console.error("Failed to load work status:",e)}},iW=async e=>{try{let t=await (0,p.S)("/api/reminders?userId=".concat(e,"&hours=24"));if(t.ok){let e=await t.json();ew(e.reminders||[])}}catch(e){}},iA=async e=>{try{let t=await (0,p.S)("/api/sentinel?userId=".concat(e,"&role=sentinel"));if(t.ok){let e=await t.json();ek((e.links||[]).filter(e=>e.activeRide))}}catch(e){}},iF=async e=>{try{let t=await (0,p.S)("/api/rides?userId=".concat(e));if(t.ok){let e=await t.json();if(e.rides&&e.rides.length>0){let t=Date.now()-108e5,o=e.rides.filter(e=>{let o=e.createdAt||e.requestTime;return o&&new Date(o).getTime()>=t}).slice(0,5).map(e=>{var t,o,i,n,r,l,a,s;let d=(null===(o=e.pickupLocation)||void 0===o?void 0:null===(t=o.address)||void 0===t?void 0:t.split(",")[0])||(null===(n=e.pickup)||void 0===n?void 0:null===(i=n.address)||void 0===i?void 0:i.split(",")[0])||"",c=(null===(l=e.dropoffLocation)||void 0===l?void 0:null===(r=l.address)||void 0===r?void 0:r.split(",")[0])||(null===(s=e.dropoff)||void 0===s?void 0:null===(a=s.address)||void 0===a?void 0:a.split(",")[0])||"",p=e.createdAt||e.requestTime;return{title:d&&c?"".concat(e.rideType," ride: ").concat(d," → ").concat(c):"".concat(e.rideType," ride"),time:p?new Date(p).toLocaleString():"",color:"completed"===e.status?"#22c55e":"cancelled"===e.status?"#ef4444":"#3b82f6",icon:"completed"===e.status?"✅":"cancelled"===e.status?"❌":"\uD83D\uDE97"}});eC(o)}}}catch(e){}},iL=async e=>{try{let o=await (0,p.S)("/api/cart?userId=".concat(e));if(o.ok){var t;let e=await o.json(),i=null!==(t=e.items)&&void 0!==t?t:[];tJ(i.reduce((e,t)=>e+(t.quantity||1),0))}}catch(e){}},iU=async e=>{try{let o=await (0,p.S)("/api/delivery-cart?userId=".concat(e));if(o.ok){var t;let e=await o.json(),i=null!==(t=e.items)&&void 0!==t?t:[];tX(i.reduce((e,t)=>e+(t.quantity||1),0))}}catch(e){}},iM=async e=>{try{let t=await d.CognitoAuthService.getAccessToken(),o={"Content-Type":"application/json"};t&&(o.Authorization="Bearer ".concat(t));let i=await (0,p.S)("/api/liaison-requests?userId=".concat(e,"&serviceType=Guardian&t=").concat(Date.now()),{headers:o});if(i.ok){let e=await i.json(),t=e.requests||e||[],o=(Array.isArray(t)?t:[]).find(e=>"Guardian"===e.serviceType&&"active"===e.status);if(o){t6(!0);let e=o.doerName||o.assignedDoerName||"";o.doerId?(t8(e||"Monitor"),o.startedAt&&ot(o.startedAt)):t8("")}else t6(!1),t8(""),ot(null),t9(0)}}catch(e){console.error("Failed to load guardian status:",e)}},iN=async e=>{if(null==ep?void 0:ep.sub)try{await (0,p.S)("/api/guardian-activate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:ep.sub,action:e?"activate":"deactivate",presenceId:null==Q?void 0:Q.id})}),e?await iM(ep.sub):(t6(!1),t8(""),ot(null),t9(0),oi(null))}catch(e){console.error("Guardian toggle error:",e)}},iP=e=>{let t=Math.floor(e/3600),o=Math.floor(e%3600/60),i=e%60;return t>0?"".concat(t,":").concat(String(o).padStart(2,"0"),":").concat(String(i).padStart(2,"0")):"".concat(o,":").concat(String(i).padStart(2,"0"))},iO=async()=>{try{await d.CognitoAuthService.signInWithSSO()}catch(e){console.error("❌ SSO sign-in error:",e),ey("SSO sign-in failed. Please try again.")}},iH=async()=>{if(!(null==ep?void 0:ep.email))return;let e=ep.email,t=!1,i=!!(null==Q?void 0:Q.id),n=localStorage.getItem("userPresences_".concat(e)),r=localStorage.getItem("currentPresenceId_".concat(e));if(n)try{let e=JSON.parse(n);if(e&&e.length>0){if(ef(e),!i){let t=e.find(e=>e.id===r)||e[0];et(t)}t=!0}}catch(e){console.error("Error parsing cached presences:",e)}if(null==ep?void 0:ep.sub)try{let o=await d.CognitoAuthService.getAccessToken(),n={"Content-Type":"application/json"};o&&(n.Authorization="Bearer ".concat(o));let r=await (0,p.S)("/api/presences?cognitoSub=".concat(ep.sub,"&email=").concat(encodeURIComponent(e||"")),{headers:n});if(r.ok){let o=await r.json();if(o.presences&&Array.isArray(o.presences)&&o.presences.length>0){if(console.log("\uD83D\uDCF1 Found ".concat(o.presences.length," presences from mobile app API")),ef(o.presences),!i){let t=localStorage.getItem("currentPresenceId_".concat((null==ep?void 0:ep.email)||"")),i=t&&o.presences.find(e=>e.id===t)||o.presences.find(e=>e.isDefault)||o.presences[0];et(i),localStorage.setItem("currentPresenceId_".concat(e),i.id)}localStorage.setItem("userPresences_".concat(e),JSON.stringify(o.presences)),t=!0}}}catch(e){console.error("❌ Error loading from mobile app API:",e)}if(ep&&eh(await c.DataService.getUserProfilePicture(ep)),!t)try{let{UnifiedStorage:t}=await o.e(6197).then(o.bind(o,26197)),n=await t.getUserData(e);if(n.presences&&Array.isArray(n.presences)&&n.presences.length>0){if(ef(n.presences),!i){let t=n.presences.find(e=>e.id===n.currentPresenceId)||n.presences[0];et(t),localStorage.setItem("currentPresenceId_".concat(e),t.id)}localStorage.setItem("userPresences_".concat(e),JSON.stringify(n.presences))}}catch(e){console.error("Error with fallback storage:",e)}},iV=async()=>{try{var e;localStorage.clear(),null===(e=document.getElementById("fortodo-hide-prefs"))||void 0===e||e.remove(),es(!1),ex(null),ef([]),et(null),await d.CognitoAuthService.signOut()}catch(e){console.error("Sign out error:",e),localStorage.clear(),window.location.href="https://www.fortodo.com/"}};(0,n.useEffect)(()=>{tD(window.innerWidth<770)},[]);let iK=iu||{},iG=!!iy&&!1!==iK.showLogo&&(tk?!1!==iK.showLogoOnMobile:!1!==iK.showLogoOnWeb),iY=!!iy&&!1!==iK.showTagline&&(tk?!1!==iK.showTaglineOnMobile:!1!==iK.showTaglineOnWeb),iq=!!iy&&!1!==iK.showSubtitle&&(tk?!1!==iK.showSubtitleOnMobile:!1!==iK.showSubtitleOnWeb),iJ=!!iy&&!1!==iK.showIconLogo&&(tk?!1!==iK.showIconLogoOnMobile:!1!==iK.showIconLogoOnWeb),iZ=!!iy&&!1!==iK.showSearch&&(tk?!1!==iK.showSearchOnMobile:!1!==iK.showSearchOnWeb),iX=iy&&(null===(t=iK.infoBanner)||void 0===t?void 0:t.enabled)&&(tk?!1!==iK.infoBanner.showOnMobile:!1!==iK.infoBanner.showOnWeb)?iK.infoBanner:null,i$=iy&&(null===(r=iK.line4Banner)||void 0===r?void 0:r.enabled)&&(tk?!1!==iK.line4Banner.showOnMobile:!1!==iK.line4Banner.showOnWeb)?iK.line4Banner:null,iQ=iy&&(null===(v=iK.alertBanner)||void 0===v?void 0:v.enabled)&&iK.alertBanner.headlineText&&(tk?!1!==iK.alertBanner.showOnMobile:!1!==iK.alertBanner.showOnWeb)?iK.alertBanner:null,i0=iy&&(null===(w=iK.countdownBanner)||void 0===w?void 0:w.enabled)&&iK.countdownBanner.eventName&&iK.countdownBanner.eventDate&&(tk?!1!==iK.countdownBanner.showOnMobile:!1!==iK.countdownBanner.showOnWeb)?iK.countdownBanner:null,i1=iy&&(null===(D=iK.infoBanner)||void 0===D?void 0:null===(k=D.liveTV)||void 0===k?void 0:k.enabled)&&(tk?!1!==iK.infoBanner.liveTV.showOnMobile:!1!==iK.infoBanner.liveTV.showOnWeb)?iK.infoBanner.liveTV:null,i2=iy&&(null===(C=iK.heroSection)||void 0===C?void 0:C.enabled)&&(tk?!1!==iK.heroSection.showOnMobile:!1!==iK.heroSection.showOnWeb)?iK.heroSection:null,i3=iy&&!0===iK.showGuestElementsToAll,i4=iy&&ed&&!ea&&(null===(I=iK.signInModuleVia)||void 0===I?void 0:I.enabled)&&(tk?!1!==iK.signInModuleVia.showOnMobile:!1!==iK.signInModuleVia.showOnWeb)?iK.signInModuleVia:null,i6=iy&&ed&&!ea&&(null===(U=iK.signInOrDivider)||void 0===U?void 0:U.enabled)&&(tk?!1!==iK.signInOrDivider.showOnMobile:!1!==iK.signInOrDivider.showOnWeb),i5=iy&&ed&&!ea&&(null===(M=iK.signInModule)||void 0===M?void 0:M.enabled)&&(tk?!1!==iK.signInModule.showOnMobile:!1!==iK.signInModule.showOnWeb)?iK.signInModule:null,i8=iy&&ed&&!ea&&(null===(N=iK.signInModuleMulti)||void 0===N?void 0:N.enabled)&&(tk?!1!==iK.signInModuleMulti.showOnMobile:!1!==iK.signInModuleMulti.showOnWeb)?iK.signInModuleMulti:null,i7=iy&&ed&&!ea&&(null===(P=iK.signInSocial)||void 0===P?void 0:P.enabled)&&(tk?!1!==iK.signInSocial.showOnMobile:!1!==iK.signInSocial.showOnWeb)?iK.signInSocial:null;return(0,i.jsxs)("div",{className:"",style:{width:"100%"}
1,children:[(0,i.jsx)(S,{userBackground:ip,bgOpacity:ig,hideDoodle:o7}),(0,i.jsx)(R,{}),(0,i.jsx)("header",{className:"fixed top-0 left-0 right-0 backdrop-blur-sm z-50",children:(0,i.jsx)("div",{className:"mx-auto",style:{position:"relative",paddingLeft:".5rem",right:"-.7rem"},children:(0,i.jsxs)("div",{className:"flex justify-between items-center h-16",children:[(0,i.jsxs)("div",{className:"flex items-center md:space-x-4",children:[!ia&&(0,i.jsx)("div",{className:"hidden md:block",children:(0,i.jsxs)("span",{className:"navigation-other",style:{marginTop:"50px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsx)("a",{id:"fortodologoname",href:"/",title:"Fortodo",target:"_top",style:{transition:"all 0.6s ease"},children:(0,i.jsx)("img",{src:"/images/logos/int/fortodo-logo-beta-452x70.png",alt:"Fortodo",style:{height:"40px",transition:"all 0.6s ease"}})}),(0,i.jsx)("a",{id:"logoicon",href:"https://www.fortodo.com",target:"_top",style:{transition:"all 0.6s ease",overflow:"hidden"},children:(0,i.jsx)("img",{src:"/images/logos/icon-logo.png",alt:"Fortodo",style:{height:"0px",width:"0px",transition:"all 0.6s ease"}})})]})}),!ia&&(0,i.jsx)("div",{className:"md:hidden",children:(0,i.jsx)("a",{id:"logoicon-mobile",href:"https://www.fortodo.com",target:"_top",style:{transition:"all 0.6s ease"},children:(0,i.jsx)("img",{src:"/images/logos/icon-logo.png",alt:"Fortodo",style:{height:"40px",width:"40px",transition:"all 0.6s ease"}})})})]}),(0,i.jsxs)("div",{className:"flex items-center space-x-6",children:[(0,i.jsxs)("nav",{style:{display:"flex",gap:"20px",flexWrap:"wrap",alignItems:"center",lineHeight:"1.2",justifyContent:"flex-end"},children:[ea&&(0,i.jsx)("a",{"data-tour":"dashboard-link",href:"/dashboard",className:"hover:text-blue-600 hidden md:inline",style:{fontSize:"14px"},children:"Dashboard"}),(0,i.jsx)("a",{href:"https://social.fortodo.com",className:"hover:text-blue-600",style:{fontSize:"14px"},children:Y("hp_social")}),(0,i.jsxs)("a",{href:"https://mail.fortodo.com",className:"hover:text-blue-600",style:{fontSize:"14px",display:"inline-flex",alignItems:"center",gap:"4px",position:"relative"},children:[Y("hp_mail"),iC>0&&(0,i.jsx)("span",{style:{backgroundColor:"#dc2626",color:"white",borderRadius:"999px",fontSize:"10px",fontWeight:"700",lineHeight:1,padding:"2px 5px",display:"inline-block",flexShrink:0},children:iC>99?"99+":iC})]}),tO&&(0,i.jsxs)("a",{href:"https://work.fortodo.com",target:"_top",style:{display:"inline-flex",alignItems:"center",gap:"4px",color:"#16a34a",fontSize:"14px",fontWeight:"600",textDecoration:"none",cursor:"pointer"},children:[(0,i.jsx)("span",{style:{width:"7px",height:"7px",borderRadius:"50%",backgroundColor:"#16a34a",display:"inline-block"}}),"Work"]}),(0,i.jsxs)("div",{style:{position:"relative",display:"inline-block"},children:[(0,i.jsxs)("button",{onClick:e=>{e.stopPropagation(),tY(!tG)},style:{display:"inline-flex",alignItems:"center",gap:"4px",fontSize:"14px",color:"inherit",background:"none",border:"none",cursor:"pointer",padding:0},children:[(0,i.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,i.jsx)("path",{d:"M12 21s7-4.35 7-11a7 7 0 10-14 0c0 6.65 7 11 7 11z"}),(0,i.jsx)("circle",{cx:"12",cy:"10",r:"2.5"})]}),"Locations"]}),tG&&(0,i.jsxs)("div",{style:{position:"absolute",right:"-93px",top:"28px",width:"220px",background:"white",border:"1px solid #e2e8f0",borderRadius:"12px",boxShadow:"0 8px 24px rgba(0,0,0,0.12)",zIndex:100,padding:"8px 0"},onClick:e=>e.stopPropagation(),children:[(0,i.jsx)("p",{style:{padding:"8px 14px",fontSize:"12px",fontWeight:"600",color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Choose Location"}),(0,i.jsxs)("a",{href:"https://cafes.fortodo.com",style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px 14px",textDecoration:"none",color:"#1e293b",borderRadius:"8px",margin:"0 4px",transition:"background 0.15s"},onMouseEnter:e=>e.currentTarget.style.background="#f1f5f9",onMouseLeave:e=>e.currentTarget.style.background="transparent",children:[(0,i.jsx)("img",{src:"/images/cafe-180x74.png",alt:"Cafes",style:{width:"36px",height:"24px",objectFit:"contain"}}),(0,i.jsx)("span",{style:{fontSize:"14px",fontWeight:"500"},children:"Cafes"})]}),(0,i.jsxs)("a",{href:"https://centers.fortodo.com",style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px 14px",textDecoration:"none",color:"#1e293b",borderRadius:"8px",margin:"0 4px",transition:"background 0.15s"},onMouseEnter:e=>e.currentTarget.style.background="#f1f5f9",onMouseLeave:e=>e.currentTarget.style.background="transparent",children:[(0,i.jsx)("img",{src:"/images/retail-130x60.png",alt:"Centers",style:{width:"36px",height:"24px",objectFit:"contain"}}),(0,i.jsx)("span",{style:{fontSize:"14px",fontWeight:"500"},children:"Centers"})]}),(0,i.jsxs)("a",{href:"https://store.fortodo.com",style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px 14px",textDecoration:"none",color:"#1e293b",borderRadius:"8px",margin:"0 4px",transition:"background 0.15s"},onMouseEnter:e=>e.currentTarget.style.background="#f1f5f9",onMouseLeave:e=>e.currentTarget.style.background="transparent",children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/products/detail/standinline885x4853.2.png",alt:"Store",style:{width:"36px",height:"24px",objectFit:"contain"}}),(0,i.jsx)("span",{style:{fontSize:"14px",fontWeight:"500"},children:Y("hp_store")})]}),(0,i.jsxs)("a",{href:"/marketplace",style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px 14px",textDecoration:"none",color:"#1e293b",borderRadius:"8px",margin:"0 4px",transition:"background 0.15s"},onMouseEnter:e=>e.currentTarget.style.background="#f1f5f9",onMouseLeave:e=>e.currentTarget.style.background="transparent",children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/products/detail/standinline885x4853.2.png",alt:"Marketplace",style:{width:"36px",height:"24px",objectFit:"contain"}}),(0,i.jsx)("span",{style:{fontSize:"14px",fontWeight:"500"},children:"Marketplace"})]}),(0,i.jsxs)("a",{href:"https://about.fortodo.com/locations",style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px 14px",textDecoration:"none",color:"#1e293b",borderRadius:"8px",margin:"0 4px",transition:"background 0.15s"},onMouseEnter:e=>e.currentTarget.style.background="#f1f5f9",onMouseLeave:e=>e.currentTarget.style.background="transparent",children:[(0,i.jsx)("img",{src:"/images/Icon-180-2-t.png",alt:"Store",style:{width:"24px",height:"24px",objectFit:"contain"}}),(0,i.jsx)("span",{style:{fontSize:"14px",fontWeight:"500",marginLeft:"12px"},children:"About Locations"})]})]})]}),tq>0&&(0,i.jsxs)("a",{href:"/cart",style:{display:"inline-flex",alignItems:"center",gap:"4px",textDecoration:"none",cursor:"pointer"},children:[(0,i.jsx)("img",{src:"/images/goodies-cart-w-goodies-bag-plain-50x50-trans-bg.png",alt:"",style:{width:"22px",height:"22px",objectFit:"contain"}}),(0,i.jsx)("span",{style:{color:"#2563eb",fontSize:"13px",fontWeight:"700"},children:tq})]}),tZ>0&&(0,i.jsxs)("a",{href:"/delivery",style:{display:"inline-flex",alignItems:"center",gap:"4px",textDecoration:"none",cursor:"pointer"},children:[(0,i.jsx)("img",{src:"/images/shopper-cart-full-45x-right.png",alt:"",style:{width:"18px",height:"18px",objectFit:"contain"}}),(0,i.jsx)("span",{style:{color:"#ea580c",fontSize:"13px",fontWeight:"700"},children:tZ})]})]}),ea?(0,i.jsxs)("div",{className:"relative",style:{position:"relative",right:"15px",top:"13px"},children:[(0,i.jsxs)("button",{"data-tour":"user-btn",onClick:()=>eq(!eY),"data-dropdown-trigger":!0,className:"flex items-center space-x-2 F9PbJd IJRrpb text-white px-4 py-2 rounded-full transition-colors",children:[(0,i.jsx)("span",{className:"md:block text-sm text-white",children:(null==Q?void 0:Q.userName)||(null==ep?void 0:ep.name)||(null==ep?void 0:ep.preferred_username)||(null==ep?void 0:ep.given_name)||""}),eg||(null==ep?void 0:ep.picture)?(0,i.jsx)("img",{src:eg||(null==ep?void 0:ep.picture)||"",alt:"Profile",className:"DcUvif usnm2 w-10 h-10 rounded-full"}):iD((null==ep?void 0:ep.name)||(null==ep?void 0:ep.email)||"User").startsWith("url(")?(0,i.jsx)("img",{src:"https://www.fortodo.com/images/circled-avatars-in-circle.png",alt:"Profile",className:"w-8 h-8 rounded-full"}):(0,i.jsx)("div",{className:"w-10 h-10 rounded-full bg-blue-600 flex items-center justify-center text-white text-sm font-medium",children:iD((null==ep?void 0:ep.name)||(null==ep?void 0:ep.email)||"")})]}),eY&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"fixed inset-0 z-[999]",style:{backgroundColor:"transparent"},onClick:()=>eq(!1)}),(0,i.jsxs)("div",{"data-dropdown-menu":!0,className:"absolute right-0 mt-2 z-[1000]",style:{width:"360px",maxWidth:"calc(100vw - 20px)",maxHeight:"calc(100vh - 80px)",overflowY:"auto",marginRight:"10px",backgroundColor:"#f9f9f9",borderRadius:"12px",boxShadow:"0 0 12px rgba(0,0,0,.3)",padding:"20px",border:"1px solid #ddd"},children:[(0,i.jsxs)("div",{style:{position:"absolute",top:"10px",left:"10px",display:"inline-flex",flexDirection:"column",alignItems:"flex-start",ga
1p:"8px",border:"1px solid #efefef",borderRadius:"12px",padding:"4px 14px",fontSize:"13px",color:"#666",zIndex:10},children:[(0,i.jsx)("span",{children:"Carts"}),tq>0&&(0,i.jsxs)("a",{href:"/cart",style:{display:"inline-flex",alignItems:"center",gap:"4px",textDecoration:"none",cursor:"pointer"},children:[(0,i.jsx)("img",{src:"https://shopping.fortodo.com/images/cart-bag-empty.png",alt:"",style:{width:"22px",height:"22px",objectFit:"contain"}}),(0,i.jsx)("span",{style:{color:"#2563eb",fontSize:"20px",fontWeight:"700"},children:tq})]}),tZ>0&&(0,i.jsxs)("a",{href:"/delivery",style:{display:"inline-flex",alignItems:"center",gap:"4px",textDecoration:"none",cursor:"pointer"},children:[(0,i.jsx)("img",{src:"/images/shopper-cart-full-45x-right.png",alt:"",style:{width:"22px",height:"22px",objectFit:"contain"}}),(0,i.jsx)("span",{style:{color:"#ea580c",fontSize:"20px",fontWeight:"700"},children:tZ})]})]}),(0,i.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),eq(!1)},style:{position:"absolute",top:"10px",right:"10px",background:"transparent",border:"1px solid #efefef",borderRadius:"20px",padding:"4px 14px",fontSize:"13px",cursor:"pointer",color:"#666",zIndex:10},children:Y("hp_close")}),(0,i.jsxs)("div",{style:{textAlign:"center",marginBottom:"15px"},children:[(0,i.jsx)("a",{href:"/profile",children:eg||(null==ep?void 0:ep.picture)?(0,i.jsx)("img",{src:eg||(null==ep?void 0:ep.picture)||"",alt:"Profile",style:{width:"120px",height:"120px",borderRadius:"50%",margin:"0 auto",border:"2px solid #2d610c",objectFit:"cover",cursor:"pointer"}}):(0,i.jsx)("div",{style:{width:"120px",height:"120px",borderRadius:"50%",margin:"0 auto",backgroundColor:"#667eea",display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",fontSize:"36px",fontWeight:"bold",cursor:"pointer"},children:iD((null==ep?void 0:ep.name)||(null==ep?void 0:ep.email)||"")})}),(0,i.jsx)("div",{style:{marginTop:"8px",fontWeight:"600",fontSize:"16px",color:"#333"},children:(null==Q?void 0:Q.userName)||(null==ep?void 0:ep.name)||(null==ep?void 0:ep.preferred_username)||"User"}),(0,i.jsxs)("a",{href:"https://www.fortodo.com/".concat(encodeURIComponent((null==Q?void 0:Q.handle)||(null==ep?void 0:ep.preferred_username)||"user")),target:"_top",style:{fontSize:"13px",color:"#16a34a",fontWeight:"600",textDecoration:"none"},children:["@",(null==Q?void 0:Q.handle)||(null==ep?void 0:ep.preferred_username)||"user"]}),(0,i.jsx)("div",{style:{fontSize:"13px",color:"#666"},children:null==ep?void 0:ep.email}),(null==Q?void 0:Q.handle)&&!Q.handle.startsWith("user")&&(0,i.jsx)("div",{style:{marginTop:"8px",display:"flex",justifyContent:"center",gap:"10px",flexWrap:"wrap"},children:(0,i.jsxs)("a",{href:"https://www.fortodo.com/".concat(encodeURIComponent(Q.handle)),target:"_top",style:{fontSize:"11px",color:"#2563eb",textDecoration:"none",padding:"3px 8px",backgroundColor:"#eff6ff",borderRadius:"12px"},children:["\uD83C\uDF10 fortodo.com/",Q.handle]})}),(null==Q?void 0:Q.handle)&&!Q.handle.startsWith("user")&&(0,i.jsx)("div",{style:{marginTop:"8px",display:"flex",justifyContent:"center",gap:"10px",flexWrap:"wrap"},children:(0,i.jsx)("a",{href:"https://www.worldinfobook.com/wiki/".concat(encodeURIComponent((Q.userName||Q.handle).replace(/\s+/g,"_"))),target:"_top",style:{fontSize:"11px",color:"#7c3aed",textDecoration:"none",padding:"3px 8px",backgroundColor:"#f5f3ff",borderRadius:"12px"},children:"\uD83D\uDCD6 worldinfobook.com"})}),(0,i.jsxs)("div",{style:{marginTop:"6px",display:"inline-flex",alignItems:"center",gap:"6px"},children:[(0,i.jsx)("span",{style:{fontSize:"12px",fontWeight:"600",color:"#333"},children:"Work"}),(0,i.jsx)("span",{style:{fontSize:"11px",fontWeight:"500",color:tO?"#16a34a":"#6b7280"},children:tO?"Active":"Inactive"}),(0,i.jsx)("span",{style:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:tO?"#16a34a":"#9ca3af",display:"inline-block"}}),(0,i.jsx)("a",{href:"/doer",style:{fontSize:"11px",fontWeight:"600",color:"#2563eb",textDecoration:"none",marginLeft:"4px"},children:"\uD83D\uDEE0️ Doer Panel"})]})]}),(0,i.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:"8px",marginBottom:"8px"},children:[(0,i.jsxs)("a",{href:"https://life.fortodo.com",target:"_top",style:{textAlign:"center",padding:"10px",backgroundColor:"#fff",borderRadius:"8px",textDecoration:"none",cursor:"pointer"},children:[(0,i.jsx)("div",{style:{fontSize:"11px",color:"#666"},children:"Revenue"}),(0,i.jsxs)("div",{style:{fontSize:"14px",fontWeight:"600",color:"#16a34a"}
1,children:["$",eI.balance.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]})]}),(0,i.jsxs)("a",{href:"https://www.bagofgoodies.com",target:"_top",style:{textAlign:"center",padding:"10px",backgroundColor:"#fff",borderRadius:"8px",textDecoration:"none",cursor:"pointer"},children:[(0,i.jsx)("div",{style:{fontSize:"11px",color:"#666"},children:"Rewards"}),(0,i.jsxs)("div",{style:{fontSize:"14px",fontWeight:"600",color:"#ca8a04"},children:[eI.rewards," pts"]})]}),(0,i.jsxs)("a",{href:"/presences",style:{textAlign:"center",padding:"10px",backgroundColor:"#fff",borderRadius:"8px",textDecoration:"none",cursor:"pointer"},children:[(0,i.jsx)("div",{style:{fontSize:"11px",color:"#666"},children:"Presences"}),(0,i.jsx)("div",{style:{fontSize:"14px",fontWeight:"600",color:"#2563eb"},children:eu.length})]})]}),(0,i.jsx)("div",{style:{marginBottom:"10px",textAlign:"center"},children:(0,i.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 12px",backgroundColor:"#f3f4f6",borderRadius:"16px",fontSize:"12px"},children:[(0,i.jsx)("span",{style:{color:"#666"},children:"Current Presence:"}),(0,i.jsx)("select",{value:(null==Q?void 0:Q.id)||"",onChange:e=>{let t=eu.find(t=>t.id===e.target.value);t&&(et(t),(null==ep?void 0:ep.email)&&localStorage.setItem("currentPresenceId_".concat(ep.email),t.id),(null==ep?void 0:ep.sub)&&iE(ep.sub,t.id))},style:{border:"none",backgroundColor:"transparent",fontSize:"12px",fontWeight:"600",color:"#2563eb",cursor:"pointer",outline:"none"},children:eu.filter((e,t,o)=>o.findIndex(t=>t.id===e.id)===t).map(e=>(0,i.jsx)("option",{value:e.id,children:e.country},e.id))})]})}),(0,i.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"8px",marginBottom:"15px"},children:[(0,i.jsxs)("a",{href:"/money",style:{textAlign:"center",padding:"10px",backgroundColor:tF?"#dbeafe":"#fff",borderRadius:"8px",transition:"background-color 0.3s",textDecoration:"none",cursor:"pointer"},children:[(0,i.jsx)("div",{style:{fontSize:"11px",color:"#666"},children:"Cash Balance"}),(0,i.jsx)("div",{style:{fontSize:"14px",fontWeight:"600",color:"#2563eb"},children:(()=>{let e=(null==Q?void 0:Q.country)||"",t=e.includes("United Kingdom")?"\xa3":e.includes("Canada")?"CA$":e.includes("Australia")?"A$":"$";return"".concat(t).concat(tW.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}))})()})]}),(0,i.jsxs)("a",{href:"/money?action=pay-bill",style:{textAlign:"center",padding:"10px",backgroundColor:"#fff",borderRadius:"8px",textDecoration:"none",cursor:"pointer"},children:[(0,i.jsx)("div",{style:{fontSize:"11px",color:"#666"},children:"Bill Due"}),(0,i.jsx)("div",{style:{fontSize:"14px",fontWeight:"600",color:tN>0?"#dc2626":"#16a34a"},children:tN>0?"$".concat(tN.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})):"No payment due"})]})]}),(0,i.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"6px",marginBottom:"12px"},children:[(0,i.jsx)("a",{href:"/dashboard",style:{display:"flex",alignItems:"center",gap:"6px",padding:"10px 10px",backgroundColor:"#fff",borderRadius:"8px",color:"#333",textDecoration:"none",fontSize:"13px",fontWeight:"600"},children:"\uD83D\uDCCA Dashboard"}),(0,i.jsxs)("a",{href:"https://money.fortodo.com",target:"_top",style:{display:"flex",alignItems:"center",gap:"6px",padding:"10px 10px",backgroundColor:"#fff",borderRadius:"8px",color:"#333",textDecoration:"none",fontSize:"13px",fontWeight:"600"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/Currency/money.png",alt:"",style:{width:"16px",height:"16px"}})," Money"]}),(0,i.jsx)("a",{href:"/profile",style:{display:"flex",alignItems:"center",gap:"6px",padding:"10px 10px",backgroundColor:"#fff",borderRadius:"8px",color:"#333",textDecoration:"none",fontSize:"13px",fontWeight:"600"},children:"\uD83D\uDC64 Profile"}),(0,i.jsx)("a",{href:"/my-orders",style:{display:"flex",alignItems:"center",gap:"6px",padding:"10px 10px",backgroundColor:"#fff",borderRadius:"8px",color:"#333",textDecoration:"none",fontSize:"13px",fontWeight:"600"},children:"\uD83D\uDCCB My Orders"}),(0,i.jsx)("a",{href:"/services",style:{display:"flex",alignItems:"center",gap:"6px",padding:"10px 10px",backgroundColor:"#fff",borderRadius:"8px",color:"#333",textDecoration:"none",fontSize:"13px",fontWeight:"600"},children:"\uD83D\uDCBC Services"}),(0,i.jsx)("a",{href:"/settings",style:{display:"flex",alignItems:"center",gap:"6px",padding:"10px 10px",backgroundColor:"#fff",borderRadius:"8px",color:"#333",textDecoration:"none",fontSize:"13px",fontWeight:"600"},children:"⚙️ Settings"}),(0,i.jsxs)("a",{href:"https://myaccount.fortodo.com",target:"_top",style:{display:"flex",alignItems:"center",gap:"6px",padding:"10px 10px",backgroundColor:"#fff",borderRadius:"8px",color:"#333",textDecoration:"none",fontSize:"13px",fontWeight:"600"},children:[(0,i.jsx)("img",{src:"/images/circled-avatars-in-circle.png",alt:"",style:{width:"16px",height:"16px",borderRadius:"50%"}})," My Account"]}),(0,i.jsxs)("a",{href:"https://app.fortodo.com",target:"_top",style:{display:"flex",alignItems:"center",gap:"6px",padding:"10px 10px",backgroundColor:"#fff",borderRadius:"8px",color:"#333",textDecoration:"none",fontSize:"13px",fontWeight:"600"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/fortodo-app/fortodo-app-iphone-14-2.png",alt:"",style:{width:"16px",height:"16px",borderRadius:"4px"}})," Fortodo App"]}),(0,i.jsxs)("a",{href:"https://www.fortodo.com",target:"_top",style:{display:"flex",alignItems:"center",gap:"6px",padding:"10px 10px",backgroundColor:"#fff",borderRadius:"8px",color:"#333",textDecoration:"none",fontSize:"13px",fontWeight:"600"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/logos/icon-logo.png",alt:"",style:{width:"16px",height:"16px"}})," Fortodo.com"]}),(0,i.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"6px",padding:"10px 10px",backgroundColor:"#fff",borderRadius:"8px",color:"#333",textDecoration:"none",fontSize:"13px",fontWeight:"600"},onClick:()=>{eZ(!0),setTimeout(()=>{var e;null===(e=document.getElementById(""))||void 0===e||e.scrollIntoView({behavior:"smooth"})},100)},children:[" ",(0,i.jsx)("img",{src:"https://www.fortodo.com/images/logos/icon-logo.png",alt:"",style:{width:"16px",height:"16px"}})," More"]})]}),(0,i.jsx)("div",{style:{textAlign:"center",marginBottom:"12px"},children:(0,i.jsx)("button",{onClick:iV,style:{background:"none",border:"none",color:"#dc2626",fontSize:"14px",cursor:"pointer",fontWeight:"600"},children:"Sign out"})}),(0,i.jsxs)("div",{style:{textAlign:"center",fontSize:"12px",color:"#666"},children:[(0,i.jsx)("span",{style:{cursor:"pointer"},onClick:()=>{eq(!1),eG(!0)},children:"Help / Support"}),(0,i.jsx)("span",{style:{padding:"0 10px"},children:"-"}),(0,i.jsx)("a",{href:"https://about.fortodo.com/legal",target:"_top",style:{color:"#666"},children:"Legal"}),(0,i.jsx)("span",{style:{padding:"0 10px"},children:"-"}),(0,i.jsx)("a",{href:"https://www.fortodo.com/@Fortodo",target:"_top",style:{color:"#666"},children:"@fortodo"})]}),(0,i.jsx)("div",{style:{marginTop:"10px",padding:"8px",backgroundColor:"#f5f5f7",borderRadius:"8px",fontSize:"11px",color:"#70757a",textAlign:"center"},children:(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:"10px",flexWrap:"wrap"},children:[(0,i.jsx)("a",{href:"//ads.fortodo.com/",target:"_top",style:{color:"#70757a"},children:"Advertising"}),(0,i.jsx)("a",{href:"//business.fortodo.com/",target:"_top",style:{color:"#70757a"},children:"Business"}),(0,i.jsx)("span",{style:{cursor:"pointer"},onClick:()=>{eq(!1),eO(!0)},children:"About"}),(0,i.jsx)("span",{children:"\xa9 For; to (do)"})]})}),(0,i.jsxs)("div",{style:{fontSize:"11px",color:"#666",marginTop:"8px",textAlign:"center"},children:["\uD83D\uDC64 ",(0,i.jsx)("strong",{children:ei})," \xa0|\xa0 \uD83C\uDF10 ",(0,i.jsx)("strong",{children:{en:"English",es:"Espa\xf1ol",fr:"Fran\xe7ais",zh:"中文",ja:"日本語",de:"Deutsch",hi:"हिन्दी",ar:"العربية",pt:"Portugu\xeas",ru:"Русский",ko:"한국어",it:"Italiano",pl:"Polski",nl:"Nederlands"}[q]||"English"})," \xa0|\xa0 \uD83C\uDFA8 ",(0,i.jsx)("strong",{children:e1})]})]})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"4px",marginTop:"4px"},children:[(0,i.jsx)(f.Z,{userId:(null==ep?void 0:ep.sub)||"",userName:(null==Q?void 0:Q.userName)||(null==ep?void 0:ep.name)||"",userEmail:(null==ep?void 0:ep.email)||""}),(0,i.jsxs)("div",{ref:ou,style:{position:"relative"},children:[(0,i.jsxs)("button",{onClick:()=>oh(!og),className:"relative bg-transparent p-1",title:"Notifications",style:{background:"none",border:"none",cursor:"pointer"},children:[(0,i.jsx)("svg",{style:{width:"22px",height:"20px"},fill:"none",stroke:"var(--text-primary, #374151)",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"})}),op.length>0&&(0,i.jsx)("span",{style:{position:"absolute",top:"-2px",right:"-2px",backgroundColor:"#ef4444",color:"#fff",fontSize:"10px",borderRadius:"50%",width:"16px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center"},children:op.length})]}),og&&(0,i.jsxs)("div",{style:{position:"absolute",right:"0",top:"100%",marginTop:"8px",width:"320px",maxWidth:"calc(100vw - 2rem)",backgroundColor:"#fff",borderRadius:"12px",boxShadow:"0 4px 20px rgba(0,0,0,0.15)",border:"1px solid #e5e7eb",zIndex:1e3,maxHeight:"400px",overflowY:"auto"},children:[(0,i.jsxs)("div",{style:{padding:"12px 16px",borderBottom:"1px solid #e5e7eb",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,i.jsx)("span",{style:{fontWeight:"600",fontSize:"14px"},children:"Notifications"}),op.length>0&&(0,i.jsx)("button",{onClick:async()=>{await (0,p.S)("/api/clear-notifications",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:null==ep?void 0:ep.sub,notificationIds:op.map(e=>e.id)})}),ox([])},style:{fontSize:"12px",color:"#dc2626",background:"none",border:"none",cursor:"pointer"},children:"Clear All"})]}),op.length>0?(0,i.jsx)("div",{children:op.map(e=>(0,i.jsxs)("div",{style:{padding:"12px 16px",borderBottom:"1px solid #f3f4f6"},children:[(0,i.jsx)("p",{style:{fontSize:"13px",fontWeight:"500",color:"#111827"},children:e.title}),(0,i.jsx)("p",{style:{fontSize:"12px",color:"#6b7280"},children:e.message}),(0,i.jsx)("p",{style:{fontSize:"11px",color:"#9ca3af",marginTop:"4px"}
1,children:new Date(e.timestamp).toLocaleString()})]},e.id))}):(0,i.jsx)("div",{style:{padding:"24px",textAlign:"center",color:"#6b7280",fontSize:"13px"},children:"No notifications"})]})]}),(0,i.jsx)("button",{"data-tour":"products-btn",onClick:()=>eZ(!eJ),style:{background:"none",border:"none",cursor:"pointer",padding:"5px"},title:"Products and Services",children:(0,i.jsx)("svg",{focusable:"false",viewBox:"0 0 24 24",style:{width:"24px",height:"24px",fill:"var(--text-primary, #374151)"},children:(0,i.jsx)("path",{d:"M6,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM6,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM6,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM16,6c0,1.1 0.9,2 2,2s2,-0.9 2,-2 -0.9,-2 -2,-2 -2,0.9 -2,2zM12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM18,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM18,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2z"})})})]})]}):(0,i.jsxs)("div",{style:{position:"relative",top:"13px",right:"15px"},children:[(0,i.jsxs)("button",{onClick:iO,className:"F9PbJd text-white rounded-full text-sm font-medium hover:text-blue-600",style:{paddingLeft:"10px",paddingRight:"0px",fontFamily:"Verdana,Arial,Helvetica,sans-serif",whiteSpace:"nowrap"},children:[(0,i.jsx)("span",{className:"topright-greeting ".concat(0===tC?"topright-show":"topright-hide"),children:tz}),(0,i.jsx)("span",{className:"topright-greeting ".concat(1===tC?"topright-show":"topright-hide"),children:tT}),(0,i.jsx)("span",{className:"topright-greeting ".concat(2===tC?"topright-show":"topright-hide"),children:"Sign in"}),(0,i.jsx)("div",{className:"Qjibbc"}),(0,i.jsx)("img",{alt:"",className:"DcUvif usnm2",width:40,height:40,src:"/images/circled-avatars-in-circle.png","data-deferred":"1","data-atf":"true","data-iml":"890",style:{border:"1px solid #2d610c",borderRadius:"50%"}})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"8px",marginTop:"4px"},children:[(0,i.jsx)("a",{href:"/signup",target:"_top",style:{fontSize:"14px",color:"#4054a1",textDecoration:"none",fontWeight:"500"},children:Y("hp_signUp")}),(0,i.jsx)("button",{onClick:()=>eZ(!eJ),style:{background:"none",border:"none",cursor:"pointer",padding:"5px"},title:"Products and Services",children:(0,i.jsx)("svg",{focusable:"false",viewBox:"0 0 24 24",style:{width:"24px",height:"24px",fill:"var(--text-primary, #374151)"},children:(0,i.jsx)("path",{d:"M6,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM6,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM6,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM16,6c0,1.1 0.9,2 2,2s2,-0.9 2,-2 -0.9,-2 -2,-2 -2,0.9 -2,2zM12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM18,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM18,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2z"})})})]})]})]})]})})}),(0,i.jsxs)("div",{className:"fixed top-16 left-0 right-0 flex justify-start",style:{paddingLeft:"15px",paddingTop:"2px",paddingBottom:"2px",gap:"15px",zIndex:48,opacity:tv?0:1,pointerEvents:tv?"none":"auto",transition:"opacity 0.2s ease"},children:[(0,i.jsxs)("a",{href:"https://about.fortodo.com/online/",target:"_top",className:"hover:text-blue-600",style:{fontSize:"14px",display:"flex",alignItems:"center",gap:"3px"},children:[(0,i.jsx)("img",{src:"/images/35/internet35.gif",alt:"",className:"hidden md:inline",style:{height:"15px",width:"15px"}})," ",Y("hp_online")]}),(0,i.jsxs)("a",{href:"https://about.fortodo.com/in-person/",target:"_top",className:"hover:text-blue-600",style:{fontSize:"14px",display:"flex",alignItems:"center",gap:"3px"},children:[(0,i.jsx)("img",{src:"/images/35/home-trans.png",alt:"",className:"hidden md:inline",style:{height:"15px",width:"15px"}})," ",Y("hp_inPerson")]}),(0,i.jsxs)("a",{href:"https://about.fortodo.com/by-phone",target:"_top",className:"hover:text-blue-600",style:{fontSize:"14px",display:"flex",alignItems:"center",gap:"3px"},children:[(0,i.jsx)("img",{src:"/images/35/phone.gif",alt:"",className:"hidden md:inline",style:{height:"15px",width:"15px"}})," ",Y("hp_byPhone")]})]}),ea&&(0,i.jsx)("div",{className:"lg:hidden relative top-20 left-0 right-0 z-40",style:{paddingTop:"10px",position:"relative"},children:(0,i.jsxs)("div",{className:"flex overflow-x-auto scrollbar-hide px-4 py-2 space-x-2",children:[(0,i.jsxs)("a",{href:"/",className:"flex-shrink-0 flex items-center px-3 py-2 text-sm rounded-lg font-medium whitespace-nowrap",style:{color:"var(--accent-text, #1d4ed8)"},children:[(0,i.jsx)("span",{className:"mr-2",children:"\uD83C\uDFE0"}),Y("home")]}),(0,i.jsxs)("a",{href:"/dashboard",className:"flex-shrink-0 flex items-center px-3 py-2 text-sm rounded-lg whitespace-nowrap",children:[(0,i.jsx)("span",{className:"mr-2",children:"\uD83D\uDCCA"}),"Dashboard"]}),(0,i.jsxs)("a",{href:tU?"/s/".concat(tU):"/s/edit",className:"flex-shrink-0 flex items-center px-3 py-2 text-sm rounded-lg whitespace-nowrap",children:[(0,i.jsx)("span",{className:"mr-2",children:"\uD83D\uDCC4"}),"My Pages"]})]})}),ea&&(0,i.jsx)("div",{className:"hidden lg:block lg:w-64 shadow-lg lg:fixed lg:h-full transition-transform duration-300 ".concat(eM?"translate-x-0":"-translate-x-64"),style:{to
1p:"64px",left:0,backgroundColor:"var(--bg-primary, #fff)"},children:(0,i.jsx)("div",{className:"p-4",children:(0,i.jsxs)("div",{className:"space-y-1",children:[(0,i.jsxs)("a",{href:"/",className:"w-full flex flex-col items-center px-3 py-2 text-sm rounded-lg bg-blue-100 text-blue-700 font-medium",children:[(0,i.jsx)("svg",{className:"w-6 h-6 mb-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),Y("home")]}),(0,i.jsxs)("a",{href:"/dashboard",className:"w-full flex flex-col items-center px-3 py-2 text-sm rounded-lg",style:{color:"var(--text-primary, #374151)"},children:[(0,i.jsx)("svg",{className:"w-6 h-6 mb-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})}),"Dashboard"]}),(0,i.jsxs)("a",{href:tU?"/s/".concat(tU):"/s/edit",className:"w-full flex flex-col items-center px-3 py-2 text-sm rounded-lg",style:{color:"var(--text-primary, #374151)"},children:[(0,i.jsx)("svg",{className:"w-6 h-6 mb-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),"My Pages"]})]})})}),ea&&(0,i.jsx)("button",{onClick:()=>eN(!eM),className:"hidden lg:block fixed left-0 z-50 bg-blue-600 text-white p-2 rounded-r-[0.95rem] shadow-lg hover:bg-blue-700 transition-all",style:{top:"7rem",transform:eM?"translateX(256px)":"translateX(0)"},children:(0,i.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:eM?(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"}):(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}),(0,i.jsx)("main",{className:"pt-16 lg:pt-16 transition-all duration-300 flex items-start justify-center ".concat(ea&&eM?"lg:ml-64":"lg:ml-0"),style:{minHeight:"calc(100vh - 104px)",paddingTop:tk&&ea?"60px":"116px",paddingLeft:"4px"},children:(0,i.jsxs)("div",{className:"w-full px-4",children:[!er&&!ea&&ow.length>0&&(0,i.jsxs)("div",{style:{margin:"12px auto -30px",display:"flex",flexWrap:"wrap",alignItems:"flex-start"},children:[ow.filter(e=>{if("footer-left"===e.placement)return!1;{let t=window.innerWidth<768;if(t&&!1===e.showOnMobile||!t&&!1===e.showOnWeb)return!1}return!0}).map(e=>{let t="relative"===e.cssPosition,o="right"===e.position?"auto":"center"===e.position?"auto":void 0,n="left"===e.position?"auto":"center"===e.position?"auto":void 0;return(0,i.jsx)("div",{style:{marginBottom:"6px",flex:t?"0 0 auto":"0 0 100%",textAlign:e.position||"left",marginLeft:t?o:void 0,marginRight:t?n:void 0,position:e.topOffset?"relative":void 0,top:e.topOffset?"".concat(e.topOffset,"px"):void 0,pointerEvents:e.topOffset?"none":void 0},children:(0,i.jsxs)("div",{style:{display:"inline-block",pointerEvents:"auto"},children:[e.message&&(0,i.jsx)("div",{style:{fontSize:"".concat(e.subtitleSize||11,"px"),color:e.subtitleColor||"#666",fontWeight:e.subtitleWeight||"400",marginBottom:"3px",textAlign:e.subtitleAlign||"center"},children:e.message}),(0,i.jsx)("div",{style:{textAlign:"center"},children:e.linkUrl?(0,i.jsx)("a",{href:e.linkUrl,className:"guest-alert-link",style:{display:"inline-block",textDecoration:"none",padding:"6px 14px",borderRadius:"".concat(e.borderRadius||8,"px"),backgroundColor:e.bgColor||"#1d4ed8",color:e.textColor||"#fff",fontSize:"".concat(e.fontSize||13,"px")},children:e.title}):(0,i.jsx)("span",{style:{display:"inline-block",padding:"6px 14px",borderRadius:"".concat(e.borderRadius||8,"px"),backgroundColor:e.bgColor||"#1d4ed8",color:e.textColor||"#fff",fontSize:"".concat(e.fontSize||13,"px")},children:e.title})}),e.linkText&&(0,i.jsx)("div",{style:{fontSize:"".concat(Math.max(Number(e.fontSize||13)-2,10),"px"),color:e.linkTextColor||"#666",marginTop:"3px",textAlign:e.linkTextAlign||"center"}
1,children:e.linkUrl?(0,i.jsx)("a",{href:e.linkUrl,style:{color:e.linkTextColor||"#666",textDecoration:!1!==e.linkTextUnderline?"underline":"none"},children:e.linkText}):e.linkText})]})},e.id)}),(0,i.jsx)("style",{children:".guest-alert-link:hover { opacity: 0.85; }"})]}),!ty&&"none"!==Z&&(0,i.jsx)(A,{cfg:i2,children:(0,i.jsxs)("div",{className:"text-center",style:{marginTop:er||ea||!(ow.length>0)?"20px":"10px",padding:"10px 10px"},children:[(0,i.jsx)("div",{id:"fortodologo",style:{textAlign:"center",marginBottom:"15px",marginTop:"20px",opacity:iS?1:0,maxHeight:iS?"200px":"0px",overflow:"hidden",transition:"opacity 0.6s ease, max-height 0.6s ease",display:!iG||ir||ea&&!id?"none":void 0},children:(0,i.jsx)("p",{style:{textAlign:"center"},children:(0,i.jsx)("a",{className:"fortodo",href:"https://www.fortodo.com/",children:(0,i.jsx)("img",{className:"ftd",src:"/images/logos/int/fortodo-logo-beta-452x70.png",alt:"For; to (do)",title:"For; to (do)",style:{width:"452px"}})})})}),(0,i.jsx)("span",{className:"gesans-tagline",style:{color:iK.taglineColor||"rgb(131, 94, 30)",fontFamily:"gesans-regular, sans-serif",fontSize:"clamp(32px, 5vw, 48px)",fontWeight:"bold",whiteSpace:"nowrap",display:!iY||ea&&!id||ea&&ok?"none":"inline"},children:iK.taglineText||Y("hp_tagline1")}),(0,i.jsx)("br",{style:{display:!iY||ea&&!id||ea&&ok?"none":"block"}}),(0,i.jsx)("span",{className:"gesans-tagline",style:{color:iK.tagline2Color||"rgb(131, 94, 30)",fontFamily:"gesans-regular, sans-serif",fontSize:"clamp(26px, 3.5v
1w, 28px)",display:!iY||ea&&!id||ea&&ok?"none":"inline"},children:iK.tagline2Text||Y("hp_tagline2")}),(0,i.jsx)("br",{style:{display:!iY||ea&&!id||ea&&ok?"none":"block"}}),(0,i.jsx)("img",{className:"mx-auto mt-4",src:"https://www.fortodo.com/images/logos/icon-logo.png",alt:"Fortodo",style:{width:"80px",display:!iJ||ea&&!id||ea&&ok?"none":"block"}}),iq&&(0,i.jsxs)("div",{style:{marginTop:"12px",display:"flex",flexDirection:"column",gap:"4px"},children:[(0,i.jsx)("p",{style:{margin:0,fontSize:"clamp(15px, 2.5vw, 18px)",color:"#555",fontStyle:"italic"},children:"Your personal assistant for everyday life."}),(0,i.jsx)("p",{style:{margin:0,fontSize:"clamp(13px, 2vw, 15px)",color:"#888"},children:"Search, order, connect, and get things done — all in one place."})]}),iX&&!oz&&(0,i.jsxs)("div",{style:{marginTop:"15px",textAlign:"center"},children:[i1&&"above"===i1.position&&(0,i.jsx)("div",{style:{maxWidth:"646px",margin:"0 auto 10px"},children:(0,i.jsx)(E.Z,{})}),(null===(O=iX.coverBanner)||void 0===O?void 0:O.enabled)&&iX.coverBanner.imageUrl&&(!iX.coverBanner.expiresAt||new Date(iX.coverBanner.expiresAt)>new Date)&&(iX.coverBanner.linkUrl?(0,i.jsx)("a",{href:iX.coverBanner.linkUrl,target:"_top",style:{display:"inline-block",marginBottom:"10px"},children:(0,i.jsx)("img",{src:iX.coverBanner.imageUrl,alt:"",style:{maxWidth:"646px",width:"100%",...!1!==iX.coverBanner.constrainHeight&&{height:"120px"},objectFit:"cover",display:"inline-block",borderRadius:"8px"}})}):(0,i.jsx)("img",{src:iX.coverBanner.imageUrl,alt:"",style:{maxWidth:"646px",width:"100%",...!1!==iX.coverBanner.constrainHeight&&{height:"120px"},objectFit:"cover",display:"inline-block",borderRadius:"8px",marginBottom:"10px"}})),i1&&"above"!==i1.position&&(0,i.jsx)("div",{style:{maxWidth:"646px",margin:"0 auto 10px"},children:(0,i.jsx)(E.Z,{})}),(null===(H=iX.line1)||void 0===H?void 0:H.enabled)&&iX.line1.text&&(iX.line1.linkUrl?(0,i.jsx)("div",{style:{textAlign:"center"},children:(0,i.jsx)("a",{href:iX.line1.linkUrl,target:"_top",style:{textDecoration:"none",display:"inline-block"},children:(0,i.jsxs)("p",{style:{fontSize:iX.line1.textSize||"16px",color:iX.line1.textColor||"var(--text-primary, #333)",fontFamily:iX.line1.textFont||void 0,fontWeight:"bold"===iX.line1.textEffect?700:void 0,fontStyle:"italic"===iX.line1.textEffect?"italic":void 0,textTransform:"uppercase"===iX.line1.textEffect?"uppercase":void 0,letterSpacing:"letter-spacing"===iX.line1.textEffect?"2px":void 0,textShadow:"glow"===iX.line1.textEffect?"0 0 10px currentColor":void 0,margin:"0 0 4px 0",...iX.line1.textBorder?{border:"1px solid ".concat(iX.line1.textBorderColor||"#0073bb"),backgroundColor:iX.line1.textBgColor||"#f1faff",padding:"10px 16px"}:{}},children:[iX.line1.textIconUrl&&(0,i.jsx)("img",{src:iX.line1.textIconUrl,alt:"",style:{height:"14px",marginRight:"6px",marginTop:"-2px",display:"inline"}}),iX.line1.text]})})}):(0,i.jsxs)("p",{style:{fontSize:iX.line1.textSize||"16px",color:iX.line1.textColor||"var(--text-primary, #333)",fontFamily:iX.line1.textFont||void 0,fontWeight:"bold"===iX.line1.textEffect?700:void 0,fontStyle:"italic"===iX.line1.textEffect?"italic":void 0,textTransform:"uppercase"===iX.line1.textEffect?"uppercase":void 0,letterSpacing:"letter-spacing"===iX.line1.textEffect?"2px":void 0,textShadow:"glow"===iX.line1.textEffect?"0 0 10px currentColor":void 0,margin:"0 0 4px 0",...iX.line1.textBorder?{border:"1px solid ".concat(iX.line1.textBorderColor||"#0073bb"),backgroundColor:iX.line1.textBgColor||"#f1faff",padding:"10px 16px"}:{}},children:[iX.line1.textIconUrl&&(0,i.jsx)("img",{src:iX.line1.textIconUrl,alt:"",style:{height:"14px",marginRight:"6px",marginTop:"-2px",display:"inline"}}),iX.line1.text]})),(null===(V=iX.line2)||void 0===V?void 0:V.enabled)&&iX.line2.text&&(iX.line2.linkUrl?(0,i.jsx)("div",{style:{textAlign:"center"},children:(0,i.jsx)("a",{href:iX.line2.linkUrl,target:"_top",style:{textDecoration:"none",display:"inline-block"},children:(0,i.jsxs)("p",{style:{fontSize:iX.line2.textSize||"16px",color:iX.line2.textColor||"var(--text-primary, #333)",fontFamily:iX.line2.textFont||void 0,fontWeight:"bold"===iX.line2.textEffe
1ct?700:void 0,fontStyle:"italic"===iX.line2.textEffect?"italic":void 0,textTransform:"uppercase"===iX.line2.textEffect?"uppercase":void 0,letterSpacing:"letter-spacing"===iX.line2.textEffect?"2px":void 0,textShadow:"glow"===iX.line2.textEffect?"0 0 10px currentColor":void 0,margin:"0 0 4px 0",...iX.line2.textBorder?{border:"1px solid ".concat(iX.line2.textBorderColor||"#0073bb"),backgroundColor:iX.line2.textBgColor||"#f1faff",padding:"10px 16px"}:{}},children:[iX.line2.textIconUrl&&(0,i.jsx)("img",{src:iX.line2.textIconUrl,alt:"",style:{height:"14px",marginRight:"6px",marginTop:"-2px",display:"inline"}}),iX.line2.text]})})}):(0,i.jsxs)("p",{style:{fontSize:iX.line2.textSize||"16px",color:iX.line2.textColor||"var(--text-primary, #333)",fontFamily:iX.line2.textFont||void 0,fontWeight:"bold"===iX.line2.textEffect?700:void 0,fontStyle:"italic"===iX.line2.textEffect?"italic":void 0,textTransform:"uppercase"===iX.line2.textEffect?"uppercase":void 0,letterSpacing:"letter-spacing"===iX.line2.textEffect?"2px":void 0,textShadow:"glow"===iX.line2.textEffect?"0 0 10px currentColor":void 0,margin:"0 0 4px 0",...iX.line2.textBorder?{border:"1px solid ".concat(iX.line2.textBorderColor||"#0073bb"),backgroundColor:iX.line2.textBgColor||"#f1faff",padding:"10px 16px"}:{}},children:[iX.line2.textIconUrl&&(0,i.jsx)("img",{src:iX.line2.textIconUrl,alt:"",style:{height:"14px",marginRight:"6px",marginTop:"-2px",display:"inline"}}),iX.line2.text]})),!1!==iX.line3Enabled&&(0,i.jsxs)(i.Fragment,{children:[iX.videoUrl&&"below"!==iX.videoPosition&&(0,i.jsx)("div",{style:{maxWidth:iX.videoWidth||iX.imageWidth||"400px",width:"100%",margin:"0 auto",paddingBottom:iX.videoPaddingBottom||"0px"},children:iX.videoLinkUrl?(0,i.jsx)("a",{href:iX.videoLinkUrl,target:"_top",children:(0,i.jsx)("video",{src:iX.videoUrl,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,controls:!0,style:{width:"100%",borderRadius:iX.videoBorderRadius||iX.imageBorderRadius||"0px"}})}):(0,i.jsx)("video",{src:iX.videoUrl,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,controls:!0,style:{width:"100%",borderRadius:iX.videoBorderRadius||iX.imageBorderRadius||"0px"}})}),iX.imageUrl&&"below"!==iX.imagePosition&&(iX.imageLinkUrl?(0,i.jsx)("a",{href:iX.imageLinkUrl,target:"_top",children:(0,i.jsx)("img",{src:iX.imageUrl,alt:"",style:{maxHeight:iX.imageSize||"100px",borderRadius:iX.imageBorderRadius||"0px",margin:"0 auto 8px",display:"block"}})}):(0,i.jsx)("img",{src:iX.imageUrl,alt:"",style:{maxHeight:iX.imageSize||"100px",borderRadius:iX.imageBorderRadius||"0px",margin:"0 auto 8px",display:"block"}})),iX.textLinkUrl?(0,i.jsx)("div",{style:{textAlign:"center"},children:(0,i.jsx)("a",{href:iX.textLinkUrl,target:"_top",style:{textDecoration:"none",display:"inline-block"},children:(0,i.jsxs)("p",{style:{fontSize:iX.textSize||"16px",color:iX.textColor||("banner"===iX.textEffect||iX.textBorder?"#333":"var(--text-primary, #333)"),fontFamily:iX.textFont||void 0,fontWeight:"bold"===iX.textEffect?700:void 0,fontStyle:"italic"===iX.textEffect?"italic":void 0,textTransform:"uppercase"===iX.textEffect?"uppercase":void 0,letterSpacing:"letter-spacing"===iX.textEffect?"2px":void 0,textShadow:"glow"===iX.textEffect?"0 0 10px currentColor":void 0,margin:0,..."banner"===iX.textEffect||iX.textBorder?{border:"1px solid ".concat(iX.textBorderColor||"#0073bb"),backgroundColor:iX.textBgColor||"#f1faff",borderRadius:iX.textBorderRadius||"0px",padding:"13px 20px",width:"350px",maxWidth:"100%",marginLeft:"auto",marginRight:"auto"}:{}},className:"typewriter"===iX.textEffect?"typewriter-effect":void 0,children:[iX.textIconUrl&&"after"!==iX.textIconPosition&&(iX.textIconLinkUrl?(0,i.jsx)("a",{href:iX.textIconLinkUrl,target:"_top",children:(0,i.jsx)("img",{src:iX.textIconUrl,alt:"",style:{height:"14px",marginRight:"6px",marginTop:"-2px",display:"inline"}})}):(0,i.jsx)("img",{src:iX.textIconUrl,alt:"",style:{height:"14px",marginRight:"6px",marginTop:"-2px",display:"inline"}})),iX.text,iX.textIconUrl&&"after"===iX.textIconPosition&&(iX.textIconLinkUrl?(0,i.jsx)("a",{href:iX.textIconLinkUrl,target:"_top",children:(0,i.jsx)("img",{src:iX.textIconUrl,alt:"",style:{height:"14px",marginLeft:"6px",marginTop:"-2px",display:"inline"}})}):(0,i.jsx)("img",{src:iX.textIconUrl,alt:"",style:{height:"14px",marginLeft:"6px",marginTop:"-2px",display:"inline"}}))]})})}):(0,i.jsxs)("p",{style:{fontSize:iX.textSize||"16px",color:iX.textColor||("banner"===iX.textEffe
1ct||iX.textBorder?"#333":"var(--text-primary, #333)"),fontFamily:iX.textFont||void 0,fontWeight:"bold"===iX.textEffect?700:void 0,fontStyle:"italic"===iX.textEffect?"italic":void 0,textTransform:"uppercase"===iX.textEffect?"uppercase":void 0,letterSpacing:"letter-spacing"===iX.textEffect?"2px":void 0,textShadow:"glow"===iX.textEffect?"0 0 10px currentColor":void 0,margin:0,..."banner"===iX.textEffect||iX.textBorder?{border:"1px solid ".concat(iX.textBorderColor||"#0073bb"),backgroundColor:iX.textBgColor||"#f1faff",borderRadius:iX.textBorderRadius||"0px",padding:"13px 20px",width:"350px",maxWidth:"100%",marginLeft:"auto",marginRight:"auto"}:{}},className:"typewriter"===iX.textEffect?"typewriter-effect":void 0,children:[iX.textIconUrl&&"after"!==iX.textIconPosition&&(iX.textIconLinkUrl?(0,i.jsx)("a",{href:iX.textIconLinkUrl,target:"_top",children:(0,i.jsx)("img",{src:iX.textIconUrl,alt:"",style:{height:"14px",marginRight:"6px",marginTop:"-2px",display:"inline"}})}):(0,i.jsx)("img",{src:iX.textIconUrl,alt:"",style:{height:"14px",marginRight:"6px",marginTop:"-2px",display:"inline"}})),iX.text,iX.textIconUrl&&"after"===iX.textIconPosition&&(iX.textIconLinkUrl?(0,i.jsx)("a",{href:iX.textIconLinkUrl,target:"_top",children:(0,i.jsx)("img",{src:iX.textIconUrl,alt:"",style:{height:"14px",marginLeft:"6px",marginTop:"-2px",display:"inline"}})}):(0,i.jsx)("img",{src:iX.textIconUrl,alt:"",style:{height:"14px",marginLeft:"6px",marginTop:"-2px",display:"inline"}})),iX.linkText&&iX.linkUrl&&"inline"===iX.linkStyle&&(0,i.jsxs)(i.Fragment,{children:[" ",(0,i.jsxs)("a",{href:iX.linkUrl,target:"_top",style:{color:"var(--link-color, #1a0dab)",textDecoration:"none"},children:[iX.linkText,iX.linkIconUrl&&(0,i.jsx)("img",{src:iX.linkIconUrl,alt:"",style:{height:"12px",marginLeft:"6px",marginTop:"-2px",display:"inline"}})]})]})]}),iX.linkText&&iX.linkUrl&&"block"===iX.linkStyle&&(0,i.jsx)("p",{style:{marginTop:"6px"},children:(0,i.jsxs)("a",{href:iX.linkUrl,target:"_top",style:{color:"var(--link-color, #1a0dab)",textDecoration:"none",fontSize:iX.textSize||"16px"},children:[iX.linkText,iX.linkIconUrl&&(0,i.jsx)("img",{src:iX.linkIconUrl,alt:"",style:{height:"12px",marginLeft:"6px",marginTop:"-2px",display:"inline"}})]})}),iX.linkText&&iX.linkUrl&&"button"===iX.linkStyle&&(0,i.jsx)("p",{style:{marginTop:"10px"},children:(0,i.jsxs)("a",{href:iX.linkUrl,target:"_top",style:{display:"inline-block",padding:"8px 20px",borderRadius:"20px",backgroundColor:iX.linkBgColor||"#0c9034",color:iX.linkTextColor||"#fff",textDecoration:"none",fontSize:"14px",fontWeight:500},children:[iX.linkText,iX.linkIconUrl&&(0,i.jsx)("img",{src:iX.linkIconUrl,alt:"",style:{height:"12px",marginLeft:"6px",marginTop:"-2px",display:"inline"}})]})}),iX.imageUrl&&"below"===iX.imagePosition&&(iX.imageLinkUrl?(0,i.jsx)("a",{href:iX.imageLinkUrl,target:"_top",style:{display:"inline-block"},children:(0,i.jsx)("img",{src:iX.imageUrl,alt:"",style:{maxHeight:iX.imageSize||"100px",borderRadius:iX.imageBorderRadius||"0px",margin:"8px auto 0",display:"block"}})}):(0,i.jsx)("img",{src:iX.imageUrl,alt:"",style:{maxHeight:iX.imageSize||"100px",borderRadius:iX.imageBorderRadius||"0px",margin:"8px auto 0",display:"block"}})),iX.videoUrl&&"below"===iX.videoPosition&&(0,i.jsx)("div",{style:{maxWidth:iX.videoWidth||iX.imageWidth||"400px",width:"100%",margin:"12px auto 0",paddingBottom:iX.videoPaddingBottom||"0px"},children:iX.videoLinkUrl?(0,i.jsx)("a",{href:iX.videoLinkUrl,target:"_top",children:(0,i.jsx)("video",{src:iX.videoUrl,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,controls:!0,style:{width:"100%",borderRadius:iX.videoBorderRadius||iX.imageBorderRadius||"0px"}})}):(0,i.jsx)("video",{src:iX.videoUrl,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,controls:!0,style:{width:"100%",borderRadius:iX.videoBorderRadius||iX.imageBorderRadius||"0px"}})}),"typewriter"===iX.textEffect&&(0,i.jsx)("style",{children:"\n                      .typewriter-effect {\n                        overflow: hidden;\n                        border-right: 2px solid;\n                        white-space: nowrap;\n                        animation: typing 3s steps(40) 1s forwards, blink-caret 0.75s step-end infinite;\n                        width: 0;\n                        display: inline-block;\n                        margin: 0 auto;\n                      }\n                      @keyframes typing { from { width: 0 } to { width: 100% } }\n                      @keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: currentColor } }\n                    "})]}),i$&&(0,i.jsxs)(i.Fragment,{children:[i$.videoUrl&&"below"!==i$.videoPosition&&(0,i.jsx)("div",{style:{maxWidth:i$.imageWidth||"400px",width:"100%",margin:"0 auto",paddingBottom:i$.videoPaddingBottom||"0px"},children:i$.videoLinkUrl&&"APP_STORE"!==i$.videoLinkUrl?(0,i.jsx)("a",{href:i$.videoLinkUrl,target:"_top",children:(0,i.jsx)("video",{src:i$.videoUrl,autoPlay:!0,muted:!0,loop:!0,playsInl
1ine:!0,controls:!0,style:{width:"100%",borderRadius:i$.imageBorderRadius||"0px"}})}):(0,i.jsx)("video",{src:i$.videoUrl,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,controls:!0,style:{width:"100%",borderRadius:i$.imageBorderRadius||"0px"}})}),i$.imageUrl&&"below"!==i$.imagePosition&&(i$.imageLinkUrl&&"APP_STORE"!==i$.imageLinkUrl?(0,i.jsx)("a",{href:i$.imageLinkUrl,target:"_top",children:(0,i.jsx)("img",{src:i$.imageUrl,alt:"",style:{maxHeight:i$.imageSize||"100px",maxWidth:i$.imageWidth||"400px",borderRadius:i$.imageBorderRadius||"0px",margin:"0 auto 8px",display:"block"}})}):(0,i.jsx)("img",{src:i$.imageUrl,alt:"",style:{maxHeight:i$.imageSize||"100px",maxWidth:i$.imageWidth||"400px",borderRadius:i$.imageBorderRadius||"0px",margin:"0 auto 8px",display:"block"}})),i$.text&&(i$.textLinkUrl&&"APP_STORE"!==i$.textLinkUrl?(0,i.jsx)("div",{style:{textAlign:"center"},children:(0,i.jsx)("a",{href:i$.textLinkUrl,target:"_top",style:{textDecoration:"none",display:"inline-block"},children:(0,i.jsxs)("p",{style:{fontSize:i$.textSize||"16px",color:i$.textColor||"#333",fontFamily:i$.textFont||void 0,fontWeight:"bold"===i$.textEffect?700:void 0,fontStyle:"italic"===i$.textEffect?"italic":void 0,textTransform:"uppercase"===i$.textEffect?"uppercase":void 0,letterSpacing:"letter-spacing"===i$.textEffect?"2px":void 0,textShadow:"glow"===i$.textEffect?"0 0 10px currentColor":void 0,margin:0,..."banner"===i$.textEffect||i$.textBorder?{border:"1px solid ".concat(i$.textBorderColor||"#0073bb"),backgroundColor:i$.textBgColor||"#f1faff",borderRadius:i$.textBorderRadius||"0px",padding:"13px 20px",width:"350px",maxWidth:"100%",marginLeft:"auto",marginRight:"auto"}:{}},children:[i$.textIconUrl&&"after"!==i$.textIconPosition&&(0,i.jsx)("img",{src:i$.textIconUrl,alt:"",style:{height:"14px",marginRight:"6px",marginTop:"-2px",display:"inline"}}),i$.text,i$.textIconUrl&&"after"===i$.textIconPosition&&(0,i.jsx)("img",{src:i$.textIconUrl,alt:"",style:{height:"14px",marginLeft:"6px",marginTop:"-2px",display:"inline"}})]})})}):(0,i.jsxs)("p",{style:{fontSize:i$.textSize||"16px",color:i$.textColor||"#333",fontFamily:i$.textFont||void 0,fontWeight:"bold"===i$.textEffect?700:void 0,fontStyle:"italic"===i$.textEffect?"italic":void 0,textTransform:"uppercase"===i$.textEffect?"uppercase":void 0,letterSpacing:"letter-spacing"===i$.textEffect?"2px":void 0,textShadow:"glow"===i$.textEffect?"0 0 10px currentColor":void 0,margin:0,..."banner"===i$.textEffect||i$.textBorder?{border:"1px solid ".concat(i$.textBorderColor||"#0073bb"),backgroundColor:i$.textBgColor||"#f1faff",borderRadius:i$.textBorderRadius||"0px",padding:"13px 20px",width:"350px",maxWidth:"100%",marginLeft:"auto",marginRight:"auto"}:{}},children:[i$.textIconUrl&&"after"!==i$.textIconPosition&&(0,i.jsx)("img",{src:i$.textIconUrl,alt:"",style:{height:"14px",marginRight:"6px",marginTop:"-2px",display:"inline"}}),i$.text,i$.textIconUrl&&"after"===i$.textIconPosition&&(0,i.jsx)("img",{src:i$.textIconUrl,alt:"",style:{height:"14px",marginLeft:"6px",marginTop:"-2px",display:"inline"}}),i$.linkText&&i$.linkUrl&&"APP_STORE"!==i$.linkUrl&&"inline"===i$.linkStyle&&(0,i.jsxs)(i.Fragment,{children:[" ",(0,i.jsxs)("a",{href:i$.linkUrl,target:"_top",style:{color:"var(--link-color, #1a0dab)",textDecoration:"none"},children:[i$.linkText,i$.linkIconUrl&&(0,i.jsx)("img",{src:i$.linkIconUrl,alt:"",style:{height:"12px",marginLeft:"6px",marginTop:"-2px",display:"inline"}})]})]})]})),i$.linkText&&i$.linkUrl&&"APP_STORE"!==i$.linkUrl&&"block"===i$.linkStyle&&(0,i.jsx)("p",{style:{marginTop:"6px"},children:(0,i.jsxs)("a",{href:i$.linkUrl,target:"_top",style:{color:"var(--link-color, #1a0dab)",textDecoration:"none",fontSize:i$.textSize||"16px"},children:[i$.linkText,i$.linkIconUrl&&(0,i.jsx)("img",{src:i$.linkIconUrl,alt:"",style:{height:"12px",marginLeft:"6px",marginTop:"-2px",display:"inline"}})]})}),i$.linkText&&i$.linkUrl&&"APP_STORE"!==i$.linkUrl&&"button"===i$.linkStyle&&(0,i.jsx)("p",{style:{marginTop:"10px"},children:(0,i.jsxs)("a",{href:i$.linkUrl,target:"_top",style:{display:"inline-block",padding:"8px 20px",borderRadius:"20px",backgroundColor:i$.linkBgColor||"#0c9034",color:i$.linkTextColor||"#fff",textDecoration:"none",fontSize:"14px",fontWeight:500},children:[i$.linkText,i$.linkIconUrl&&(0,i.jsx)("img",{src:i$.linkIconUrl,alt:"",style:{height:"12px",marginLeft:"6px",marginTop:"-2px",display:"inline"}})]})}),i$.imageUrl&&"below"===i$.imagePosition&&(i$.imageLinkUrl&&"APP_STORE"!==i$.imageLinkUrl?(0,i.jsx)("a",{href:i$.imageLinkUrl,target:"_top",style:{display:"inline-block"},children:(0,i.jsx)("img",{src:i$.imageUrl,alt:"",style:{maxHeight:i$.imageSize||"100px",maxWidth:i$.imageWidth||"400px",borderRadius:i$.imageBorderRadius||"0px",margin:"8px auto 0",display:"block"}})}):(0,i.jsx)("img",{src:i$.imageUrl,alt:"",style:{maxHeight:i$.imageSize||"100px",maxWidth:i$.imageWidth||"400px",borderRadius:i$.imageBorderRadius||"0px",margin:"8px auto 0",display:"block"}})),i$.videoUrl&&"below"===i$.videoPosition&&(0,i.jsx)("div",{style:{maxWidth:i$.imageWidth||"400px",width:"100%",margin:"12px auto 0",paddingBottom:i$.videoPaddingBottom||"0px"},children:i$.videoLinkUrl&&"APP_STORE"!==i$.videoLinkUrl?(0,i.jsx)("a",{href:i$.videoLinkUrl,target:"_top",children:(0,i.jsx)("video",{src:i$.videoUrl,autoPlay:!0,muted:!0,loop:!0,playsInl
1ine:!0,controls:!0,style:{width:"100%",borderRadius:i$.imageBorderRadius||"0px"}})}):(0,i.jsx)("video",{src:i$.videoUrl,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,controls:!0,style:{width:"100%",borderRadius:i$.imageBorderRadius||"0px"}})})]})]}),iQ&&!oW&&(0,i.jsxs)("div",{style:{display:"flex",borderRadius:iQ.borderRadius||"8px",overflow:"hidden",maxWidth:"600px",margin:"15px auto 0",border:"1px solid ".concat(iQ.borderColor||"rgba(0,0,0,0.1)")},children:[iQ.labelLinkUrl?(0,i.jsxs)("a",{href:iQ.labelLinkUrl,target:"_top",style:{background:iQ.labelBgColor||"#dc2626",padding:"8px 14px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minWidth:"80px",textDecoration:"none"},children:[(0,i.jsx)("span",{style:{color:iQ.labelTextColor||"#fff",fontWeight:700,fontSize:iQ.labelFontSize||iQ.fontSize||"13px",lineHeight:"1.2"},children:iQ.labelText||"Breaking"}),iQ.labelSubText&&(0,i.jsx)("span",{style:{color:iQ.labelTextColor||"#fff",fontSize:iQ.labelFontSize||iQ.fontSize||"13px",lineHeight:"1.2"},children:iQ.labelSubText})]}):(0,i.jsxs)("div",{style:{background:iQ.labelBgColor||"#dc2626",padding:"8px 14px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minWidth:"80px"},children:[(0,i.jsx)("span",{style:{color:iQ.labelTextColor||"#fff",fontWeight:700,fontSize:iQ.labelFontSize||iQ.fontSize||"13px",lineHeight:"1.2"},children:iQ.labelText||"Breaking"}),iQ.labelSubText&&(0,i.jsx)("span",{style:{color:iQ.labelTextColor||"#fff",fontSize:iQ.labelFontSize||iQ.fontSize||"13px",lineHeight:"1.2"},children:iQ.labelSubText})]}),iQ.contentLinkUrl?(0,i.jsxs)("a",{href:iQ.contentLinkUrl,target:"_top",style:{background:iQ.contentBgColor||"#dc2626",padding:"8px 14px",flex:1,display:"flex",flexDirection:"column",alignItems:"center"===iQ.headlineAlign?"center":"right"===iQ.headlineAlign?"flex-end":"flex-start",justifyContent:"center",borderLeft:"2px solid rgba(255,255,255,0.3)",marginLeft:"2px",textDecoration:"none"},children:[(0,i.jsx)("span",{style:{color:iQ.contentTextColor||"#fff",fontWeight:700,fontSize:iQ.contentFontSize||iQ.fontSize||"13px"},children:iQ.headlineText}),iQ.headlineSubText&&(0,i.jsx)("span",{style:{color:iQ.contentTextColor||"#fff",fontSize:iQ.contentFontSize||iQ.fontSize||"13px"},children:iQ.headlineSubText})]}):(0,i.jsxs)("div",{style:{background:iQ.contentBgColor||"#dc2626",padding:"8px 14px",flex:1,display:"flex",flexDirection:"column",alignItems:"center"===iQ.headlineAlign?"center":"right"===iQ.headlineAlign?"flex-end":"flex-start",justifyContent:"center",borderLeft:"2px solid rgba(255,255,255,0.3)",marginLeft:"2px"},children:[(0,i.jsx)("span",{style:{color:iQ.contentTextColor||"#fff",fontWeight:700,fontSize:iQ.contentFontSize||iQ.fontSize||"13px"},children:iQ.headlineText}),iQ.headlineSubText&&(0,i.jsx)("span",{style:{color:iQ.contentTextColor||"#fff",fontSize:iQ.contentFontSize||iQ.fontSize||"13px"},children:iQ.headlineSubText})]}),(iQ.middleEmoji||iQ.middleImageUrl)&&(iQ.middleLinkUrl?(0,i.jsx)("a",{href:iQ.middleLinkUrl,target:"_top",style:{background:iQ.middleBgColor||iQ.labelBgColor||"#dc2626",padding:"8px 14px",display:"flex",alignItems:"center",justifyContent:"center",minWidth:"80px",borderLeft:"2px solid rgba(255,255,255,0.3)",marginLeft:"2px",textDecoration:"none"},children:iQ.middleImageUrl?(0,i.jsx)("img",{src:iQ.middleImageUrl,alt:"",style:{height:"28px",width:"auto"},onError:e=>{e.target.style.display="none"}}):(0,i.jsx)("span",{style:{fontSize:"22px"},children:iQ.middleEmoji})}):(0,i.jsx)("div",{style:{background:iQ.middleBgColor||iQ.labelBgColor||"#dc2626",padding:"8px 14px",display:"flex",alignItems:"center",justifyContent:"center",minWidth:"80px",borderLeft:"2px solid rgba(255,255,255,0.3)",marginLeft:"2px"},children:iQ.middleImageUrl?(0,i.jsx)("img",{src:iQ.middleImageUrl,alt:"",style:{height:"28px",width:"auto"},onError:e=>{e.target.style.display="none"}}):(0,i.jsx)("span",{style:{fontSize:"22px"},children:iQ.middleEmoji})}))]}),i0&&!oF&&iv&&(()=>{let{days:e,hours:t,mins:o,secs:n,expired:r}=iv,l=!0===i0.clockBelow,a=(0,i.jsxs)("div",{style:{display:"flex",borderRadius:i0.borderRadius||"8px",overflow:"hidden",maxWidth:"600px",margin:"10px auto 0",border:"1px solid ".concat(i0.borderColor||"rgba(0,0,0,0.1)")},children:[!l&&(0,i.jsxs)("div",{style:{background:i0.countdownBgColor||"#1e3a8a",padding:"8px 14px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minWidth:"90px",width:"90px"},children:[(0,i.jsx)("span",{style:{color:i0.countdownTextColor||"#fff",fontWeight:700,fontSize:"10px",letterSpacing:"1px",opacity:.8},children:r?"LIVE NOW":"COUNTDOWN"}),r?(0,i.jsx)("span",{style:{color:i0.countdownTextColor||"#fff",fontWeight:700,fontSize:"13px"},children:"\uD83C\uDF89"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{style:{color:i0.countdownTextColor||"#fff",fontWeight:700,fontSize:"13px",fontFamily:i0.clockFontFamily||"monospace"},children:e>0?"".concat(e,"d ").concat(String(t).padStart(2,"0"),"h"):"".concat(String(t).padStart(2,"0"),"h ").concat(String(o).padStart(2,"0"),"m")}),(0,i.jsxs)("span",{style:{color:i0.countdownTextColor||"#fff",fontSize:"11px",fontFamily:i0.clockFontFamily||"monospace",opacity:.85},children:[String(o).padStart(2,"0"),"m ",String(n).padStart(2,"0"),"s"]})]})]}),(0,i.jsxs)("div",{style:{background:i0.bgColor||"#1d4ed8",padding:"8px 14px",flex:1,display:"flex",flexDirection:"column",justifyContent:"center",borderLeft:l?void 0:"2px solid rgba(255,255,255,0.2)"},children:[(0,i.jsx)("span",{style:{color:i0.contentTextColor||"#fff",fontWeight:700,fontSize:i0.contentFontSize||i0.fontSize||"13px",fontFamily:i0.contentFontFamily||"inherit"},children:i0.eventName}),i0.eventSubText&&(0,i.jsx)("span",{style:{color:i0.contentTextColor||"#fff",fontSize:i0.contentFontSize||i0.fontSize||"13px",fontFamily:i0.contentFontFamily||"inherit",opacity:.85},children:i0.eventSubText})]}),i0.emoji&&(0,i.jsx)("div",{style:{background:i0.emojiBgColor||i0.
1countdownBgColor||"#1e3a8a",padding:"8px 14px",display:"flex",alignItems:"center",justifyContent:"center",minWidth:"90px",width:"90px",borderLeft:"2px solid rgba(255,255,255,0.2)"},children:(0,i.jsx)("span",{style:{fontSize:"22px"},children:i0.emoji})})]}),s=l&&!r?(0,i.jsx)("div",{style:{maxWidth:"600px",margin:"6px auto 0",textAlign:"center"},children:(0,i.jsxs)("span",{style:{color:i0.countdownTextColor||"#1e3a8a",fontWeight:700,fontSize:"22px",fontFamily:i0.clockFontFamily||"monospace",letterSpacing:"2px"},children:[e>0?"".concat(e,"d "):"",String(t).padStart(2,"0"),"h ",String(o).padStart(2,"0"),"m ",String(n).padStart(2,"0"),"s"]})}):l&&r?(0,i.jsx)("div",{style:{maxWidth:"600px",margin:"6px auto 0",textAlign:"center"},children:(0,i.jsx)("span",{style:{color:i0.countdownTextColor||"#1e3a8a",fontWeight:700,fontSize:"22px"},children:"\uD83C\uDF89 LIVE NOW"})}):null,d=(0,i.jsxs)(i.Fragment,{children:[a,s]});return i0.linkUrl?(0,i.jsxs)("div",{style:{textAlign:"center"},children:[(0,i.jsx)("a",{href:i0.linkUrl,target:"_top",style:{textDecoration:"none",display:"inline-block"},children:a}),s]}):d})(),i4&&!oE&&!Z.startsWith("__product:")&&(0,i.jsx)("div",{style:{maxWidth:"360px",margin:"0px auto 0px",padding:"0px 0px"},children:(0,i.jsxs)("div",{style:{padding:"0px 0px"},children:[!1!==i4.showBadge&&(0,i.jsx)("img",{src:"/img/via-fortodo-badge.png",alt:"",style:{display:"block",margin:"0 auto 12px",height:"36px"}}),(0,i.jsx)("button",{onClick:iO,style:{width:"100%",background:"#0073bb",color:"#fff",fontWeight:700,fontSize:"15px",border:"none",borderRadius:"16px",padding:"12px",cursor:"pointer"},children:"Sign in via Fortodo"})]})}),i6&&!oE&&!Z.startsWith("__product:")&&(0,i.jsx)("div",{style:{maxWidth:"360px",margin:"0px auto 0px"},children:(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsx)("div",{style:{flex:"1 1 0%",height:"1px",backgroundColor:"rgb(229, 231, 235)"}}),(0,i.jsx)("span",{style:{fontSize:"23px",color:"rgb(156, 163, 175)"},children:"or"}),(0,i.jsx)("div",{style:{flex:"1 1 0%",height:"1px",backgroundColor:"rgb(229, 231, 235)"}})]})}),i5&&!oE&&!Z.startsWith("__product:")&&(0,i.jsxs)("div",{style:{maxWidth:"360px",margin:"0px auto 0px",padding:"8px 0"},children:[(0,i.jsx)("style",{children:"\n                    .sim-field { position: relative; margin-bottom: 4px; }\n                    .sim-field input { width: 100%; box-sizing: border-box; border: 1px solid #4D90FE; border-radius: 16px; padding: 18px 16px 6px; fontSize: 14px; outline: none; background: transparent; }\n                    .sim-field input:focus { border-color: #1a73e8; }\n                    .sim-field label { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #888; pointer-events: none; transition: all 0.18s ease; background: transparent; }\n                    .sim-field input:focus ~ label, .sim-field input:not(:placeholder-shown) ~ label { top: 8px; transform: none; font-size: 11px; color: #4D90FE; }\n                    .sim-btn { width: 100%; border: none; border-radius: 16px; padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; background: #0073bb; color: #fff; }\n                    .sim-btn:disabled { opacity: 0.7; }\n                  "}),i5.title&&(0,i.jsx)("h2",{style:{fontSize:"18px",fontWeight:700,marginBottom:"16px",textAlign:"center",color:"#111"},children:i5.title}),oO?(0,i.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),oM(""),oP(!0);try{let{confirmSignIn:e}=await o.e(6238).then(o.bind(o,16238));await e({challengeResponse:oV}),o5()}catch(e){oM(e.message||"Invalid code.")}finally{oP(!1)}},style:{display:"flex",flexDirection:"column",gap:"12px"},children:[(0,i.jsx)("p",{style:{fontSize:"13px",color:"#555",textAlign:"center",margin:0},children:"CONFIRM_SIGN_IN_WITH_SMS_CODE"===oO.type?"Enter the code sent to your phone.":"Enter your authenticator code."}),(0,i.jsxs)("div",{className:"sim-field",children:[(0,i.jsx)("input",{type:"text",value:oV,onChange:e=>oK(e.target.value),required:!0,placeholder:" "}),(0,i.jsx)("label",{children:"Verification code"})]}),oU&&(0,i.jsx)("p",{style:{color:"#dc2626",fontSize:"13px",margin:0},children:oU}),(0,i.jsx)("button",{type:"submit",disabled:oN,className:"sim-btn",children:oN?"Verifying...":"
1Verify"}),(0,i.jsx)("button",{type:"button",onClick:()=>{oH(null),oK(""),oM("")},style:{background:"none",border:"none",color:"#0073bb",fontSize:"13px",cursor:"pointer"},children:"← Back"})]}):(0,i.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),oM(""),oP(!0);let t=new FormData(e.currentTarget);try{var o,i,n,r;let e=await d.CognitoAuthService.signIn(t.get("identifier"),t.get("password"));e.requiresNewPassword?window.location.href="/signin":(null===(i=e.nextStep)||void 0===i?void 0:null===(o=i.signInStep)||void 0===o?void 0:o.includes("MFA"))||(null===(r=e.nextStep)||void 0===r?void 0:null===(n=r.signInStep)||void 0===n?void 0:n.includes("CONFIRM"))?oH({type:e.nextStep.signInStep,identifier:t.get("identifier")}):o5()}catch(e){oM(e.message||"Incorrect username or password.")}finally{oP(!1)}},style:{display:"flex",flexDirection:"column",gap:"12px"},children:[(0,i.jsxs)("div",{className:"sim-field",children:[(0,i.jsx)("input",{name:"identifier",type:"text",required:!0,placeholder:" "}),(0,i.jsx)("label",{children:"Username, Email, or Phone"})]}),(0,i.jsxs)("div",{className:"sim-field",children:[(0,i.jsx)("input",{name:"password",type:"password",required:!0,placeholder:" "}),(0,i.jsx)("label",{children:"Password"})]}),oU&&(0,i.jsx)("p",{style:{color:"#dc2626",fontSize:"13px",margin:0},children:oU}),(0,i.jsx)("button",{type:"submit",disabled:oN,className:"sim-btn",children:oN?"Signing in...":"Sign In"})]}),(0,i.jsx)("div",{style:{textAlign:"center",marginTop:"12px"},children:(0,i.jsx)("a",{href:"/signin",target:"_top",style:{fontSize:"13px",color:"#0073bb",textDecoration:"none"},children:"More sign in options"})})]}),i8&&!oE&&!Z.startsWith("__product:")&&(0,i.jsxs)("div",{style:{maxWidth:"360px",margin:"0px auto 0px",padding:"8px 0"},children:[(0,i.jsx)("style",{children:"\n                    .msim-field { position: relative; margin-bottom: 4px; }\n                    .msim-field input { width: 100%; box-sizing: border-box; border: 1px solid #4D90FE; border-radius: 16px; padding: 18px 16px 6px; font-size: 14px; outline: none; background: transparent; }\n                    .msim-field input:focus { border-color: #1a73e8; }\n                    .msim-field label { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #888; pointer-events: none; transition: all 0.18s ease; }\n                    .msim-field input:focus ~ label, .msim-field input:not(:placeholder-shown) ~ label { top: 8px; transform: none; font-size: 11px; color: #4D90FE; }\n                    .msim-btn { width: 100%; border: none; border-radius: 16px; padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; background: #0073bb; color: #fff; }\n                    .msim-btn:disabled { opacity: 0.7; }\n                    .msim-method { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #4D90FE; border-radius: 16px; cursor: pointer; background: #fff; width: 100%; box-sizing: border-box; font-size: 14px; font-weight: 500; color: #111; transition: background 0.15s; }\n                    .msim-method:hover { background: #f0f7ff; }\n                    .msim-method-icon { font-size: 20px; width: 28px; text-align: center; }\n                  "}),i8.title&&(0,i.jsx)("h2",{style:{fontSize:"18px",fontWeight:700,marginBottom:"16px",textAlign:"center",color:"#111"},children:i8.title}),"identifier"===oG&&(0,i.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),o3(""),oq.trim()&&oY("method")},style:{display:"flex",flexDirection:"column",gap:"12px"},children:[(0,i.jsxs)("div",{className:"msim-field",children:[(0,i.jsx)("input",{type:"text",value:oq,onChange:e=>oJ(e.target.value),required:!0,placeholder:" "}),(0,i.jsx)("label",{children:"Username, Email, or Phone"})]}),o2&&(0,i.jsx)("p",{style:{color:"#dc2626",fontSize:"13px",margin:0},children:o2}),(0,i.jsx)("button",{type:"submit",className:"msim-btn",children:"Continue"})]}),"method"===oG&&(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[(0,i.jsx)("p",{style:{fontSize:"13px",color:"#555",textAlign:"center",margin:"0 0 4px"},children:"Choose a sign-in method"}),(0,i.jsxs)("button",{className:"msim-method",onClick:async()=>{o3(""),o6(!0);try{let{signIn:e}=await o.e(6238).then(o.bind(o,16238));await e({username:oq,options:{authFlowType:"USER_AUTH",preferredChallenge:"WEB_AUTHN"}}),o5()}catch(e){o3(e.message||"Passkey sign-in failed.")}finally{o6(!1)}},children:[(0,i.jsx)("span",{className:"msim-method-icon",children:"\uD83D\uDD11"}
1),"Your phone or security key"]}),(0,i.jsxs)("button",{className:"msim-method",onClick:()=>{oX("email_otp"),oY("challenge"),o3(""),o8("email_otp")},children:[(0,i.jsx)("span",{className:"msim-method-icon",children:"✉️"}),"Email one-time password"]}),(0,i.jsxs)("button",{className:"msim-method",onClick:()=>{oX("sms_otp"),oY("challenge"),o3(""),o8("sms_otp")},children:[(0,i.jsx)("span",{className:"msim-method-icon",children:"\uD83D\uDCAC"}),"SMS one-time password"]}),(0,i.jsxs)("button",{className:"msim-method",onClick:()=>{oX("password"),oY("challenge"),o3("")},children:[(0,i.jsx)("span",{className:"msim-method-icon",children:"\uD83D\uDD12"}),"Password"]}),o2&&(0,i.jsx)("p",{style:{color:"#dc2626",fontSize:"13px",margin:0},children:o2}),(0,i.jsx)("button",{type:"button",onClick:()=>{oY("identifier"),o3("")},style:{background:"none",border:"none",color:"#0073bb",fontSize:"13px",cursor:"pointer",marginTop:"4px"},children:"← Back"})]}),"challenge"===oG&&(0,i.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),o3(""),o6(!0);try{if("password"===oZ){var t,i;let e=await d.CognitoAuthService.signIn(oq,o$);e.requiresNewPassword?window.location.href="/signin":e.requiresMFA||(null===(i=e.nextStep)||void 0===i?void 0:null===(t=i.signInStep)||void 0===t?void 0:t.includes("CONFIRM"))?(oX("sms_otp"),o1("")):o5()}else{let{confirmSignIn:e}=await o.e(6238).then(o.bind(o,16238));await e({challengeResponse:o0}),o5()}}catch(e){o3(e.message||"Sign-in failed.")}finally{o6(!1)}},style:{display:"flex",flexDirection:"column",gap:"12px"},children:["password"===oZ?(0,i.jsxs)("div",{className:"msim-field",children:[(0,i.jsx)("input",{type:"password",value:o$,onChange:e=>oQ(e.target.value),required:!0,placeholder:" "}),(0,i.jsx)("label",{children:"Password"})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{style:{fontSize:"13px",color:"#555",textAlign:"center",margin:0},children:"email_otp"===oZ?"Enter the code sent to your email.":"Enter the code sent to your phone."}),(0,i.jsxs)("div",{className:"msim-field",children:[(0,i.jsx)("input",{type:"text",value:o0,onChange:e=>o1(e.target.value),required:!0,placeholder:" "}),(0,i.jsx)("label",{children:"One-time code"})]})]}),o2&&(0,i.jsx)("p",{style:{color:"#dc2626",fontSize:"13px",margin:0},children:o2}),(0,i.jsx)("button",{type:"submit",disabled:o4,className:"msim-btn",children:o4?"Signing in...":"Sign In"}),(0,i.jsx)("button",{type:"button",onClick:()=>{oY("method"),o3(""),oQ(""),o1("")},style:{background:"none",border:"none",color:"#0073bb",fontSize:"13px",cursor:"pointer"},children:"← Back"})]}),(0,i.jsx)("div",{style:{textAlign:"center",marginTop:"12px"},children:(0,i.jsx)("a",{href:"/signin",target:"_top",style:{fontSize:"13px",color:"#0073bb",textDecoration:"none"},children:"More sign in options"})})]}),i7&&!oE&&!Z.startsWith("__product:")&&(()=>{var e,t,n,r;let l={};"color"===i7.leftBgType&&i7.leftBgColor&&(l.backgroundColor=i7.leftBgColor),"gradient"===i7.leftBgType&&(l.background="linear-gradient("+(null!==(e=i7.leftBgGradientAngle)&&void 0!==e?e:135)+"deg, "+(i7.leftBgGradientFrom||"#1C204C")+", "+(i7.leftBgGradientTo||"#4054a1")+")");let a=(0,i.jsxs)("div",{style:{padding:"32px 28px"},children:[(0,i.jsx)("style",{children:"\n                      .ssi-field { position: relative; margin-bottom: 4px; }\n                      .ssi-field input { width: 100%; box-sizing: border-box; border: 1px solid #4D90FE; border-radius: 16px; padding: 18px 16px 6px; font-size: 14px; outline: none; background: transparent; }\n                      .ssi-field input:focus { border-color: #1a73e8; }\n                      .ssi-field label { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #888; pointer-events: none; transition: all 0.18s ease; }\n                      .ssi-field input:focus ~ label, .ssi-field input:not(:placeholder-shown) ~ label { top: 8px; transform: none; font-size: 11px; color: #4D90FE; }\n                      .ssi-btn { width: 100%; border: none; border-radius: 16px; padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; background: #0073bb; color: #fff; }\n                      .ssi-btn:disabled { opacity: 0.7; }\n                      .ssi-method { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #4D90FE; border-radius: 16px; cursor: pointer; background: #fff; width: 100%; box-sizing: border-box; font-size: 14px; font-weight: 500; color: #111; transition: background 0.15s; }\n                      .ssi-method:hover { background: #f0f7ff; }\n                    "}),i7.title&&(0,i.jsx)("h2",{style:{fontSize:"20px",fontWeight:700,marginBottom:"20px",textAlign:"center",color:"#111"},children:i7.title}),"single"===i7.formType?oO?(0,i.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),oM(""),oP(!0);try{let{confirmSignIn:e}=await o.e(6238).then(o.bind(o,16238));await e({challengeResponse:oV}),o5()}catch(e){oM(e.message||"Invalid code.")}finally{oP(!1)}},style:{display:"flex",flexDirection:"column",gap:"12px"},children:[(0,i.jsx)("p",{style:{fontSize:"13px",color:"#555",textAlign:"center",margin:0},children:"CONFIRM_SIGN_IN_WITH_SMS_CODE"===oO.type?"Enter the code sent to your phone.":"Enter your authenticator code."}),(0,i.jsxs)("div",{className:"ssi-field",children:[(0,i.jsx)("input",{type:"text",value:oV,onChange:e=>oK(e.target.value),required:!0,placeholder:" "}),(0,i.jsx)("label",{children:"Verification code"})]}),oU&&(0,i.jsx)("p",{style:{color:"#dc2626",fontSize:"13px",margin:0},children:oU}),(0,i.jsx)("button",{type:"submit",disabled:oN,className:"ssi-btn",children:oN?"Verifying...":"
1Verify"}),(0,i.jsx)("button",{type:"button",onClick:()=>{oH(null),oK(""),oM("")},style:{background:"none",border:"none",color:"#0073bb",fontSize:"13px",cursor:"pointer"},children:"← Back"})]}):(0,i.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),oM(""),oP(!0);let t=new FormData(e.currentTarget);try{var o,i,n,r;let e=await d.CognitoAuthService.signIn(t.get("identifier"),t.get("password"));e.requiresNewPassword?window.location.href="/signin":(null===(i=e.nextStep)||void 0===i?void 0:null===(o=i.signInStep)||void 0===o?void 0:o.includes("MFA"))||(null===(r=e.nextStep)||void 0===r?void 0:null===(n=r.signInStep)||void 0===n?void 0:n.includes("CONFIRM"))?oH({type:e.nextStep.signInStep,identifier:t.get("identifier")}):o5()}catch(e){oM(e.message||"Incorrect username or password.")}finally{oP(!1)}},style:{display:"flex",flexDirection:"column",gap:"12px"},children:[(0,i.jsxs)("div",{className:"ssi-field",children:[(0,i.jsx)("input",{name:"identifier",type:"text",required:!0,placeholder:" "}),(0,i.jsx)("label",{children:"Username, Email, or Phone"})]}),(0,i.jsxs)("div",{className:"ssi-field",children:[(0,i.jsx)("input",{name:"password",type:"password",required:!0,placeholder:" "}),(0,i.jsx)("label",{children:"Password"})]}),oU&&(0,i.jsx)("p",{style:{color:"#dc2626",fontSize:"13px",margin:0},children:oU}),(0,i.jsx)("button",{type:"submit",disabled:oN,className:"ssi-btn",children:oN?"Signing in...":"Sign In"})]}):(0,i.jsxs)(i.Fragment,{children:["identifier"===oG&&(0,i.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),o3(""),oq.trim()&&oY("method")},style:{display:"flex",flexDirection:"column",gap:"12px"},children:[(0,i.jsxs)("div",{className:"ssi-field",children:[(0,i.jsx)("input",{type:"text",value:oq,onChange:e=>oJ(e.target.value),required:!0,placeholder:" "}),(0,i.jsx)("label",{children:"Username, Email, or Phone"})]}),o2&&(0,i.jsx)("p",{style:{color:"#dc2626",fontSize:"13px",margin:0},children:o2}),(0,i.jsx)("button",{type:"submit",className:"ssi-btn",children:"Continue"})]}),"method"===oG&&(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[(0,i.jsx)("p",{style:{fontSize:"13px",color:"#555",textAlign:"center",margin:"0 0 4px"},children:"Choose a sign-in method"}),(0,i.jsxs)("button",{className:"ssi-method",onClick:async()=>{o3(""),o6(!0);try{let{signIn:e}=await o.e(6238).then(o.bind(o,16238));await e({username:oq,options:{authFlowType:"USER_AUTH",preferredChallenge:"WEB_AUTHN"}}),o5()}catch(e){o3(e.message||"Passkey sign-in failed.")}finally{o6(!1)}},children:[(0,i.jsx)("span",{style:{fontSize:"20px",width:"28px",textAlign:"center"},children:"\uD83D\uDD11"}),"Your phone or security key"]}),(0,i.jsxs)("button",{className:"ssi-method",onClick:()=>{oX("email_otp"),oY("challenge"),o3(""),o8("email_otp")},children:[(0,i.jsx)("span",{style:{fontSize:"20px",width:"28px",textAlign:"center"},children:"✉️"}),"Email one-time password"]}),(0,i.jsxs)("button",{className:"ssi-method",onClick:()=>{oX("sms_otp"),oY("challenge"),o3(""),o8("sms_otp")},children:[(0,i.jsx)("span",{style:{fontSize:"20px",width:"28px",textAlign:"center"},children:"\uD83D\uDCAC"}),"SMS one-time password"]}),(0,i.jsxs)("button",{className:"ssi-method",onClick:()=>{oX("password"),oY("challenge"),o3("")},children:[(0,i.jsx)("span",{style:{fontSize:"20px",width:"28px",textAlign:"center"},children:"\uD83D\uDD12"}),"Password"]}),o2&&(0,i.jsx)("p",{style:{color:"#dc2626",fontSize:"13px",margin:0},children:o2}),(0,i.jsx)("button",{type:"button",onClick:()=>{oY("identifier"),o3("")},style:{background:"none",border:"none",color:"#0073bb",fontSize:"13px",cursor:"pointer",marginTop:"4px"},children:"← Back"})]}),"challenge"===oG&&(0,i.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),o3(""),o6(!0);try{if("password"===oZ){var t,i;let e=await d.CognitoAuthService.signIn(oq,o$);e.requiresNewPassword?window.location.href="/signin":e.requiresMFA||(null===(i=e.nextStep)||void 0===i?void 0:null===(t=i.signInStep)||void 0===t?void 0:t.includes("CONFIRM"))?(oX("sms_otp"),o1("")):o5()}else{let{confirmSignIn:e}=await o.e(6238).then(o.bind(o,16238));await e({challengeResponse:o0}
1),o5()}}catch(e){o3(e.message||"Sign-in failed.")}finally{o6(!1)}},style:{display:"flex",flexDirection:"column",gap:"12px"},children:["password"===oZ?(0,i.jsxs)("div",{className:"ssi-field",children:[(0,i.jsx)("input",{type:"password",value:o$,onChange:e=>oQ(e.target.value),required:!0,placeholder:" "}),(0,i.jsx)("label",{children:"Password"})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{style:{fontSize:"13px",color:"#555",textAlign:"center",margin:0},children:"email_otp"===oZ?"Enter the code sent to your email.":"Enter the code sent to your phone."}),(0,i.jsxs)("div",{className:"ssi-field",children:[(0,i.jsx)("input",{type:"text",value:o0,onChange:e=>o1(e.target.value),required:!0,placeholder:" "}),(0,i.jsx)("label",{children:"One-time code"})]})]}),o2&&(0,i.jsx)("p",{style:{color:"#dc2626",fontSize:"13px",margin:0},children:o2}),(0,i.jsx)("button",{type:"submit",disabled:o4,className:"ssi-btn",children:o4?"Signing in...":"Sign In"}),(0,i.jsx)("button",{type:"button",onClick:()=>{oY("method"),o3(""),oQ(""),o1("")},style:{background:"none",border:"none",color:"#0073bb",fontSize:"13px",cursor:"pointer"},children:"← Back"})]})]}),(0,i.jsx)("div",{style:{textAlign:"center",marginTop:"16px"},children:(0,i.jsx)("a",{href:"/signin",target:"_top",style:{fontSize:"13px",color:"#0073bb",textDecoration:"none"},children:"More sign in options"})})]}),s={};"color"===i7.rowBgType&&i7.rowBgColor&&(s.backgroundColor=i7.rowBgColor),"gradient"===i7.rowBgType&&(s.background="linear-gradient("+(null!==(t=i7.rowBgGradientAngle)&&void 0!==t?t:135)+"deg, "+(i7.rowBgGradientFrom||"#ffffff")+", "+(i7.rowBgGradientTo||"#e0e7ff")+")");let c=i7.tabs||[],p=i7.tabsCfg||{};return(0,i.jsxs)(i.Fragment,{children:[c.length>0&&(tk?!1!==i7.showTabRowOnMobile:!1!==i7.showTabRowOnWeb)&&(()=>{let e=p.mobileMode||"scroll",t={display:"flex",gap:p.gap||"0px",backgroundColor:p.bgColor||"transparent",padding:p.padding||"0px",borderBottom:p.borderBottom||"none",borderRadius:p.borderRadius||"0px",boxShadow:p.boxShadow||"none",marginTop:p.marginTop||"0px",marginBottom:p.marginBottom||"0px",marginLeft:p.marginLeft||"0px",marginRight:p.marginRight||"0px"},o=parseInt(p.ddColumns||"4",10)||4,n=p.ddMaxWidth||"1140px",r=e=>{let t=e.items||[];return t.length?(0,i.jsx)("div",{style:{width:"100%",maxWidth:n,margin:"0 auto",padding:"32px 24px",boxSizing:"border-box",display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(min(".concat(Math.floor(100/o),"%, 200px), 1fr))"),gap:"24px",alignItems:"start"},children:t.map(e=>(0,i.jsxs)("a",{href:e.url||"#",target:"_top",style:{display:"flex",flexDirection:"column",gap:"10px",textDecoration:"none",color:"inherit",borderRadius:"8px",padding:"8px",transition:"background 0.15s"},onMouseEnter:e=>e.currentTarget.style.backgroundColor=p.ddHoverBg||"#f3f4f6",onMouseLeave:e=>e.currentTarget.style.backgroundColor="transparent",children:[e.heroImageUrl&&(0,i.jsx)("img",{src:e.heroImageUrl,alt:"",style:{width:"100%",aspectRatio:"16/9",objectFit:e.heroImageObjectFit||"cover",borderRadius:"6px",display:"block"}}),e.iconUrl&&!e.heroImageUrl&&(0,i.jsx)("img",{src:e.iconUrl,alt:"",style:{width:"32px",height:"32px",objectFit:e.iconObjectFit||"contain"}}),(0,i.jsx)("div",{style:{fontWeight:600,fontSize:p.ddFontSize||"14px",color:p.ddColor||"#111"},children:e.label}),e.description&&(0,i.jsx)("div",{style:{fontSize:"12px",color:"#666",lineHeight:1.5},children:e.description}),e.btnLabel&&(0,i.jsx)("span",{style:{display:"inline-block",marginTop:"4px",padding:"6px 14px",backgroundColor:p.ddBtnBg||"#111",color:p.ddBtnColor||"#fff",borderRadius:"6px",fontSize:"12px",fontWeight:600,alignSelf:"flex-start"},children:e.btnLabel})]},e.id))}):null},l=c.map(e=>{let t=(e.items||[]).length>0,o=p.tabHoverBgColor||p.tabActiveBgColor||p.tabBgColor||"transparent",n=ol===e.id,r={padding:n?p.tabHoverPadding||p.tabPadding||"10px 18px":p.tabPadding||"10px 18px",fontSize:p.fontSize||"14px",fontWeight:p.fontWeight||"500",color:p.color||"#111",cursor:"pointer",whiteSpace:"nowrap",borderRadius:n?p.tabHoverBorderRadius||p.tabBorderRadius||"0px":p.tabBorderRadius||"0px",backgroundColor:n?o:p.tabBgColor||"transparent",display:"flex",alignItems:"center",gap:n&&p.tabHoverGap||"6px",marginTop:n&&p.tabHoverMarginTop||"0px",marginBottom:n&&p.tabHoverMarginBottom||"0px",marginLeft:n&&p.tabHoverMarginLeft||"0px",marginRight:n&&p.tabHoverMarginRight||"0px",userSelect:"none",textDecoration:"none"};return(0,i.jsx)("div",{style:{position:"relative",flexShrink:0},onMouseEnter:()=>oa(e.id),onMouseLeave:()=>{oa(null)},children:!t&&e.url?(0,i.jsx)("a",{href:e.url,target:"_top",style:r,children:e.label}):(0,i.jsxs)("div",{style:r,onClick:()=>oa(ol===e.id?null:e.id),children:[e.label,!0===e.showCaret&&t&&(0,i.jsx)("span",{style:{fontSize:"10px",o
1pacity:.5},children:"▾"})]})},e.id)}),a=c.filter(e=>(e.items||[]).length>0).map(e=>(0,i.jsxs)("div",{id:"ssi-mega-"+e.id,style:{display:ol===e.id?"block":"none",position:"absolute",top:"calc(100% + ".concat(p.ddMarginTop||"0px",")"),left:0,right:0,zIndex:1e3,backgroundColor:p.ddBgColor||p.bgColor||"#fff",boxShadow:p.ddBoxShadow||"none"},onMouseEnter:()=>oa(e.id),onMouseLeave:()=>oa(null),children:[(0,i.jsx)("div",{style:{position:"absolute",top:"-20px",left:0,right:0,height:"20px",background:"transparent"}}),r(e)]},e.id)),s=c.map(e=>(0,i.jsx)("div",{style:{flexShrink:0},children:(e.items||[]).length>0?(0,i.jsxs)("div",{style:{padding:p.tabPadding||"10px 18px",fontSize:p.fontSize||"14px",fontWeight:p.fontWeight||"500",color:p.color||"#111",cursor:"pointer",whiteSpace:"nowrap",borderRadius:p.tabBorderRadius||"0px",backgroundColor:p.tabBgColor||"transparent",display:"flex",alignItems:"center",gap:"6px",userSelect:"none"},onClick:()=>or("__panel"),children:[e.label,!0===e.showCaret&&(0,i.jsx)("span",{style:{fontSize:"10px",opacity:.5},children:"▾"})]}):(0,i.jsx)("a",{href:e.url||"#",target:"_top",style:{padding:p.tabPadding||"10px 18px",fontSize:p.fontSize||"14px",fontWeight:p.fontWeight||"500",color:p.color||"#111",cursor:"pointer",whiteSpace:"nowrap",borderRadius:p.tabBorderRadius||"0px",backgroundColor:p.tabBgColor||"transparent",display:"flex",alignItems:"center",gap:"6px",userSelect:"none",textDecoration:"none"},children:e.label})},e.id)),d="string"==typeof on&&"__panel"!==on?c.find(e=>e.id===on):null,x=p.ddBgColor||p.bgColor||"#fff",g=p.ddColor||p.color||"#111",h=on&&(0,i.jsxs)("div",{style:{position:"fixed",inset:0,zIndex:2e3,backgroundColor:x,overflowY:"auto",display:"flex",flexDirection:"column"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"18px 20px",borderBottom:"1px solid "+(p.ddBorderColor||"#e5e7eb"),flexShrink:0},children:[d?(0,i.jsxs)("button",{onClick:()=>or("__panel"),style:{background:"none",border:"none",cursor:"pointer",fontSize:"17px",color:g,padding:"0",display:"flex",alignItems:"center",gap:"6px",fontWeight:600},children:[(0,i.jsx)("span",{style:{fontSize:"20px",lineHeight:1},children:"←"})," ",d.label]}):(0,i.jsx)("span",{style:{fontSize:"17px",fontWeight:700,color:g},children:"Menu"}),(0,i.jsx)("button",{onClick:()=>or(!1),style:{background:"none",border:"none",cursor:"pointer",fontSize:"26px",lineHeight:1,color:g,padding:"0"},children:"✕"})]}),(0,i.jsx)("div",{style:{flex:1,overflowY:"auto",padding:"8px 0"},children:d?(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:(d.items||[]).map(e=>(0,i.jsxs)("a",{href:e.url||"#",target:"_top",style:{display:"flex",alignItems:"center",gap:"14px",padding:"14px 20px",fontSize:"16px",color:g,textDecoration:"none",borderBottom:"1px solid "+(p.ddBorderColor||"#e5e7eb")},children:[(e.heroImageUrl||e.iconUrl)&&(0,i.jsx)("img",{src:e.heroImageUrl||e.iconUrl,alt:"",style:{width:"44px",height:"44px",objectFit:"cover",borderRadius:"6px",flexShrink:0}}),(0,i.jsxs)("div",{style:{flex:1,minWidth:0,textAlign:"left"},children:[(0,i.jsx)("div",{style:{fontWeight:600,fontSize:"16px"},children:e.label}),e.description&&(0,i.jsx)("div",{style:{fontSize:"13px",color:"#888",marginTop:"3px"},children:e.description})]}),(0,i.jsx)("span",{style:{fontSize:"22px",opacity:.5,flexShrink:0},children:"›"})]},e.id))}):(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:c.map(e=>(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 20px",fontSize:"17px",fontWeight:600,color:g,cursor:"pointer",borderBottom:"1px solid "+(p.ddBorderColor||"#e5e7eb"),userSelect:"none"},onClick:()=>{(e.items||[]).length>0?or(e.id):e.url&&(window.location.href=e.url)},children:[(0,i.jsx)("span",{children:e.label}),(e.items||[]).length>0&&(0,i.jsx)("span",{style:{fontSize:"26px",opacity:.6},children:"›"})]},e.id))})})]});return tk?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{style:{...t,justifyContent:"space-between",alignItems:"center"},children:"panel"===e?(0,i.jsx)("button",{onClick:()=>or("__panel"),style:{background:"none",border:"none",cursor:"pointer",padding:"8px",fontSize:"22px",color:p.color||"#111"},children:"☰"}):(0,i.jsx)("div",{style:{display:"flex",gap:p.gap||"0px",overflowX:"auto",flex:1,scrollbarWidth:"none"},children:s})}),h]}):(0,i.jsxs)("div",{ref:oc,style:{position:"relative",overflow:"visible",marginLeft:"calc(-1 * (".concat(p.marginLeft||"0px",") - 4px)"),marginRight:"calc(-1 * (".concat(p.marginRight||"0px",") - 4px)"),marginBottom:os?"0":"8px",transition:"margin-bottom 0.35s ease"},children:[(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"relative",...os?{}:{backgroundColor:p.bgColor||"transparent",borderRadius:p.borderRadius||"0px",boxShadow:p.boxShadow||"none",borderBottom:p.borderBottom||"none"},transition:"all 0.35s ease"},children:[(0,i.jsx)("div",{style:{display:"flex",flexWrap:"nowrap",gap:p.gap||"0px",alignItems:"center",overflow:"visible",maxWidth:os?"0":"2000px",opacity:os?0:1,transition:"max-width 0.35s ease, opacity 0.25s ease",whiteSpace:"nowrap"},children:l}),(0,i.jsx)("button",{onClick:()=>{let e=!os;od(e),localStorage.setItem("ssi-tabbar-collapsed",String(e)),oa(null)},style:{position:"absolute",right:0,flexShrink:0,background:"none",border:"1px solid "+(p.ddBorderColor||"#e5e7eb"),borderRadius:"6px",cursor:"pointer",padding:"4px 10px",fontSize:"13px",color:p.color||"#666",lineHeight:1,whiteSpace:"nowrap",zIndex:10},children:os?(0,i.jsx)("span",{style:{display:"flex",alignItems:"center",gap:"5px"},children:"☰ Menu"}):(0,i.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"6px"},children:["Done! ",(0,i.jsx)("span",{style:{fontSize:"18px",lineHeight:1},children:"✕"})]})})]}),!os&&a]})})(),(0,i.jsxs)("div",{style:{position:"relative",display:(tk?!1!==i7.showRowBgOnMobile:!1!==i7.showRowBgOnWeb)?void 0:"none",...s,padding:i7.rowBgPadding||"0px",boxSizing:"border-box",borderRadius:i7.rowBgBorderRadius||"0px",minHeight:i7.rowBgMinHeight||"auto",marginTop:i7.rowBgMarginTop||"0px",marginBottom:i7.rowBgMarginBottom||"0px",marginLeft:i7.rowBgMarginLeft||"0px",marginRight:i7.rowBgMarginRight||"0px",...i7.rowBgBorderWidth&&"0px"!==i7.rowBgBorderWidth?{border:i7.rowBgBorderWidth+" solid "+(i7.rowBgBorderColor||"#cccccc")}:{}},children:["image"===i7.rowBgType&&i7.rowBgImageUrl&&(0,i.jsx)("div",{style:{position:"absolute",inset:0,zIndex:0,backgroundImage:"url("+i7.rowBgImageUrl+")",backgroundSize:"cover",backgroundPosition:"center",borderRadius:i7.rowBgBorderRadius||"0px"}}),"video"===i7.rowBgType&&i7.rowBgVideoUrl&&(0,i.jsx)("video",{autoPlay:!0,muted:!0,loop:!0,playsInl
1ine:!0,src:i7.rowBgVideoUrl,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",zIndex:0,borderRadius:i7.rowBgBorderRadius||"0px"}}),("image"===i7.rowBgType||"video"===i7.rowBgType)&&(0,i.jsx)("div",{style:{position:"absolute",inset:0,zIndex:1,backgroundColor:i7.rowBgOverlayColor||"#000000",opacity:null!==(n=i7.rowBgOverlayOpacity)&&void 0!==n?n:0,pointerEvents:"none",borderRadius:i7.rowBgBorderRadius||"0px"}}),(0,i.jsx)("div",{style:{position:"relative",zIndex:2,width:"100%",boxSizing:"border-box"},children:(0,i.jsx)("div",{style:{margin:"0 auto",maxWidth:i7.maxWidth||"1140px",boxSizing:"border-box"},children:(0,i.jsxs)("div",{style:{display:"flex",flexDirection:tk?"column":"row",gap:i7.gap||"0px",minHeight:i7.minHeight||"auto",position:"relative"},children:[(tk?!1!==i7.showLeftPanelOnMobile:!1!==i7.showLeftPanelOnWeb)&&(0,i.jsxs)("div",{style:{flex:"1 1 0%",position:"relative",minHeight:tk?"200px":"auto",borderRadius:i7.leftBorderRadius||"0px",...i7.leftBorderWidth&&"0px"!==i7.leftBorderWidth?{border:i7.leftBorderWidth+" solid "+(i7.leftBorderColor||"#cccccc")}:{},...l},children:["image"===i7.leftBgType&&i7.leftBgImageUrl&&(0,i.jsx)("div",{style:{position:"absolute",inset:0,backgroundImage:"url("+i7.leftBgImageUrl+")",backgroundSize:"cover",backgroundPosition:"center",zIndex:0}}),"video"===i7.leftBgType&&i7.leftBgVideoUrl&&(0,i.jsx)("video",{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:i7.leftBgVideoUrl,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",zIndex:0}}),("image"===i7.leftBgType||"video"===i7.leftBgType)&&i7.leftBgOverlayColor&&(0,i.jsx)("div",{style:{position:"absolute",inset:0,zIndex:1,backgroundColor:i7.leftBgOverlayColor,opacity:null!==(r=i7.leftBgOverlayOpacity)&&void 0!==r?r:.4,pointerEvents:"none"}}),(0,i.jsx)("div",{style:{position:"relative",zIndex:2,padding:i7.leftPadding||"40px 32px",display:"flex",flexDirection:tk?"column":"row",gap:i7.leftColGap||"16px",height:"100%",boxSizing:"border-box"},children:(tk?!1!==i7.showLeftColsOnMobile:!1!==i7.showLeftColsOnWeb)&&["leftCol1Blocks","leftCol2Blocks"].map(e=>(0,i.jsxs)("div",{style:{flex:"1 1 0%",minWidth:0,display:"flex",flexDirection:"column",gap:"12px"},children:[0===(i7[e]||[]).length&&"leftCol1Blocks"===e&&0===(i7.leftCol2Blocks||[]).length&&(0,i.jsx)("div",{style:{color:"rgba(255,255,255,0.4)",fontSize:"13px",textAlign:"center",margin:"auto"},children:"Configure left panel in admin"}),[...i7[e]||[]].sort((e,t)=>e.order-t.order).map(e=>{if(e.hidden)return null;if("spacer"===e.type)return(0,i.jsx)("div",{style:{height:e.spacerHeight||"16px",marginTop:e.blockMarginTop||void 0,padding:e.blockPadding||void 0}},e.id);if("text"===e.type){let t=(0,i.jsx)("div",{style:{fontSize:e.fontSize||"16px",color:e.fontColor||"#ffffff",textAlign:e.textAlign||"left",fontWeight:e.fontWeight||void 0,fontStyle:e.fontStyle||void 0,lineHeight:e.lineHeight||1.5,padding:e.blockPadding||void 0,marginTop:e.blockMarginTop||void 0},dangerouslySetInnerHTML:{__html:e.text||""}},e.id);return e.textLinkUrl?(0,i.jsx)("a",{href:e.textLinkUrl,target:"_top",style:{textDecoration:"none",display:"block"},children:t},e.id):t}if("rotating"===e.type)return(0,i.jsx)(W,{lb:e},e.id);if("image"===e.type){if(e.parallax&&e.imageUrl){let t=e.imageHeight||"320px",o=e.imageBorderRadius||"0px",n=(0,i.jsx)("div",{className:"ssi-parallax-wrap",style:{width:e.imageWidth||"100%",height:t,marginTop:e.blockMarginTop||void 0,boxSizing:"border-box"},children:(0,i.jsx)("div",{className:"ssi-parallax-square",style:{width:"100%",height:"100%",borderRadius:o,backgroundImage:"url(".concat(e.imageUrl,")"),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}})},e.id);return e.imageLinkUrl?(0,i.jsx)("a",{href:e.imageLinkUrl,target:"_top",style:{display:"block"},children:n},e.id):n}let t=(0,i.jsx)("img",{src:e.imageUrl,alt:"",style:{width:e.imageWidth||"100%",height:e.imageHeight||"auto",borderRadius:e.imageBorderRadius||"0px",objectFit:e.imageObjectFit||"cover",display:"block",margin:"center"===e.imageAlign?"0 auto":"right"===e.imageAlign?"0 0 0 auto":"0",maxWidth:"100%",padding:e.imagePadding||void 0,marginTop:e.blockMarginTop||void 0,boxSizing:"border-box"}},e.id);return e.imageLinkUrl?(0,i.jsx)("a",{href:e.imageLinkUrl,target:"_top",style:{display:"block",padding:e.blockPadding||void 0,marginTop:e.blockMarginTop||void 0},children:t},e.id):(0,i.jsx)("div",{style:{padding:e.blockPadding||void 0,marginTop:e.blockMarginTop||void 0},children:t},e.id)}return"button"===e.type?(0,i.jsx)("div",{style:{textAlign:"center",padding:e.blockPadding||void 0,marginTop:e.blockMarginTop||void 0},children:(0,i.jsx)("a",{href:e.linkUrl||"#",target:"_top",style:{display:"inline-block",padding:e.btnPadding||"10px 24px",backgroundColor:e.btnBgColor||"#0c9034",color:e.btnTextColor||"#fff",borderRadius:e.btnBorderRadius||"8px",fontSize:e.btnFontSize||"15px",fontWeight:600,textDecoration:"none",...e.btnBorderWidth&&"0px"!==e.btnBorderWidth?{border:e.btnBorderWidth+" solid "+(e.btnBorderColor||"#000000")}:{}},children:e.label||"Learn More"})},e.id):null})]},e))})]}),(tk?!1!==i7.showRightPanelOnMobile:!1!==i7.showRightPanelOnWeb)&&(0,i.jsxs)("div",{style:{flex:"0 0 auto",width:tk?"100%":i7.rightWidth||"380px",background:"#fff",boxSizing:"border-box",borderRadius:i7.rightBorderRadius||"0px",alignSelf:i7.rightVerticalAlign||"flex-start",marginTop:i7.rightMarginTop||"0px",marginBottom:i7.rightMarginBottom||"0px",marginLeft:i7.rightMarginLeft||"0px",marginRight:i7.rightMarginRight||"0px",padding:i7.rightPadding||"0px",...i7.rightBorderWidth&&"0px"!==i7.rightBorderWidth?{border:i7.rightBorderWidth+" solid "+(i7.rightBorderColor||"#e5e7eb")}:{},...!1!==i7.rightShadow?{boxShadow:"0 4px 24px rgba(0,0,0,0.13)"}:{}},children:[a,(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0 28px 20px",fontSize:"13px"},children:[(0,i.jsx)("a",{href:"/signup",target:"_top",style:{color:"#0073bb",textDecoration:"none",fontWeight:500},children:"Sign up"}),(0,i.jsx)("a",{href:"/signin?forgot=1",target:"_top",style:{color:"#0073bb",textDecoration:"none"},children:"Forgot password?"})]})]})]})})})]})]})}
1)(),(0,i.jsx)("div",{id:"search-omni",style:{marginTop:"30px",maxWidth:"600px",margin:"30px auto 0",borderRadius:"20px",display:iZ&&!oT?void 0:"none"},children:(0,i.jsxs)("div",{className:"info-carousel-bac",style:{textAlign:"center"},children:[(0,i.jsxs)("form",{id:"search_form_homepage",action:"https://search.fortodo.com",method:"GET",target:"_top",onSubmit:e=>{document.getElementById("search_form_input_homepage").value.trim()||e.preventDefault()},children:[(0,i.jsxs)("div",{className:"autocomplete",style:{position:"relative",display:"inline-block",width:"100%",maxWidth:"600px"},children:[(0,i.jsx)("textarea",{id:"search_form_input_homepage",name:"find",rows:2,placeholder:"",autoFocus:!0,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,onInput:e=>{let t=e.target.value.trim(),o=document.getElementById("search-icon-btn"),i=document.getElementById("search-submit-btn"),n=document.getElementById("search-clear-btn"),r=document.getElementById("search-voice-btn");t?(o&&(o.style.display="none"),i&&(i.style.display="grid"),n&&(n.style.display="grid"),r&&(r.style.display="none")):(o&&(o.style.display="grid"),i&&(i.style.display="none"),n&&(n.style.display="none"),r&&(r.style.display="grid"))},onKeyDown:e=>{"Enter"===e.key&&!e.shiftKey&&(e.preventDefault(),e.target.value.trim()&&document.getElementById("search_form_homepage").submit())},style:{width:"100%",height:"80px",minHeight:"80px",maxHeight:"80px",borderRadius:"24px",backgroundColor:"rgba(237, 237, 237, 0.13)",resize:"none",border:"1px solid #dadce0",boxShadow:"1px 1px 2px rgb(181, 176, 176) inset",overflow:"hidden",padding:"12px 80px 12px 16px",fontFamily:"inherit",fontSize:"26px",lineHeight:"1.4",outline:"none",textAlign:"left",color:"rgb(131, 94, 30)",caretColor:"rgb(131, 94, 30)"}}),(0,i.jsx)("button",{type:"submit",id:"search-icon-btn","aria-label":"Search",style:{position:"absolute",right:"13px",top:"2px",width:"28px",height:"28px",borderRadius:"50%",border:"1px solid #dadce0",background:"none",color:"#333",cursor:"pointer",display:"grid",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease"},children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:18,viewBox:"0 0 512 512",width:18,fill:"#333",children:(0,i.jsx)("path",{d:"M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"})})}),(0,i.jsx)("button",{type:"button",id:"search-clear-btn","aria-label":"Clear text",onClick:()=>{let e=document.getElementById("search_form_input_homepage");e.value="",e.focus(),e.dispatchEvent(new Event("input",{bubbles:!0}))},style:{position:"absolute",right:"13px",top:"2px",width:"24px",height:"28px",borderRadius:"50%",border:"none",background:"none",color:"#999",cursor:"pointer",display:"none",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease"},children:(0,i.jsx)("svg",{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:(0,i.jsx)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"#999",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,i.jsx)("button",{type:"button",id:"search-voice-btn","aria-label":"Voice search",title:"Search by voice",onClick:()=>{document.getElementById("search_form_input_homepage").focus()},style:{position:"absolute",right:"12px",bottom:"2px",width:"28px",height:"28px",borderRadius:"50%",border:"1px solid #dadce0",background:"none",color:"#666",cursor:"pointer",display:"grid",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease"},children:(0,i.jsxs)("svg",{width:18,height:18,viewBox:"0 0 24 24",fill:"#666",children:[(0,i.jsx)("path",{d:"M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z"}),(0,i.jsx)("path",{d:"M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z"})]})}),(0,i.jsx)("button",{type:"submit",id:"search-submit-btn","aria-label":"Submit search",style:{position:"absolute",right:"12px",bottom:"2px",width:"28px",height:"28px",borderRadius:"50%",border:"1px solid #dadce0",background:"none",color:"#333",cursor:"pointer",display:"none",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease"},children:(0,i.jsx)("svg",{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:(0,i.jsx)("path",{d:"M5 11L12 4M12 4L19 11M12 4V21",stroke:"#333",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,i.jsx)("button",{type:"button",id:"search-ai-btn","aria-label":"AI Search",title:"Search with AI",onClick:()=>{let e=document.getElementById("search_form_input_homepage").value.trim();window.location.href=e?"https://ai.fortodo.com?find=".concat(encodeURIComponent(e)):"https://ai.fortodo.com"},style:{position:"absolute",right:"48px",bottom:"2px",width:"28px",height:"28px",borderRadius:"50%",border:"1px solid #dadce0",background:"none",color:"#333",cursor:"pointer",display:"grid",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease"},children:(0,i.jsxs)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M12 2L13.5 8.5L20 10L13.5 11.5L12 18L10.5 11.5L4 10L10.5 8.5L12 2Z",fill:"#333"}),(0,i.jsx)("path",{d:"M19 3L19.5 5.5L22 6L19.5 6.5L19 9L18.5 6.5L16 6L18.5 5.5L19 3Z",fill:"#333"})]})})]}
1),(0,i.jsx)("div",{style:{marginTop:"15px"},children:(0,i.jsx)("input",{type:"submit",value:"Fortodo Search","aria-label":"Fortodo Search",style:{boxShadow:"0 1px 1px rgba(0,0,0,.1)",backgroundColor:"#f8f9fa",border:"1px solid #dadce0",borderRadius:"4px",color:"#3c4043",fontFamily:"arial,sans-serif",fontSize:"14px",padding:"0 16px",lineHeight:"27px",height:"36px",minWidth:"54px",textAlign:"center",cursor:"pointer"}})})]}),(0,i.jsxs)("div",{style:{marginTop:"15px"},children:[(0,i.jsx)("span",{style:{padding:"0",cursor:"default",color:"rgb(131, 94, 30)"},children:"Info:"})," ",(0,i.jsx)("span",{style:{color:"#615e5e"},children:Y("hp_searchInfo")})]}),(0,i.jsxs)("div",{style:{marginTop:"10px",display:"flex",justifyContent:"center",gap:"20px",fontSize:"13px"},children:[(0,i.jsx)("a",{href:"#",onClick:e=>{var t;e.preventDefault();let o=null===(t=document.getElementById("search_form_input_homepage"))||void 0===t?void 0:t.value.trim();window.location.href=o?"https://info.fortodo.com?find=".concat(encodeURIComponent(o)):"https://info.fortodo.com"},style:{color:"var(--text-secondary, #615e5e)"},children:Y("hp_info")}),(0,i.jsx)("a",{href:"#",onClick:e=>{var t;e.preventDefault();let o=null===(t=document.getElementById("search_form_input_homepage"))||void 0===t?void 0:t.value.trim();window.location.href=o?"https://search.fortodo.com?find=".concat(encodeURIComponent(o)):"https://search.fortodo.com"},style:{color:"var(--text-secondary, #615e5e)"},children:Y("search")}),(0,i.jsx)("a",{href:"#",onClick:e=>{var t;e.preventDefault();let o=null===(t=document.getElementById("search_form_input_homepage"))||void 0===t?void 0:t.value.trim();window.location.href=o?"https://ai.fortodo.com?find=".concat(encodeURIComponent(o)):"https://ai.fortodo.com"},style:{color:"var(--text-secondary, #615e5e)"},children:Y("hp_ai")}),(0,i.jsx)("a",{href:"#",onClick:e=>{var t;e.preventDefault();let o=null===(t=document.getElementById("search_form_input_homepage"))||void 0===t?void 0:t.value.trim();window.location.href=o?"https://www.worldinfobook.com/wiki/".concat(encodeURIComponent(o.replace(/\s+/g,"_"))):"https://www.worldinfobook.com"},style:{color:"var(--text-secondary, #615e5e)"},children:Y("hp_worldinfobook")})]})]})}),(0,i.jsx)("div",{id:"search-omni-icon",style:{marginTop:"30px",maxWidth:"600px",margin:"30px auto 0",borderRadius:"20px",display:oE?void 0:"none"},children:(0,i.jsxs)("div",{className:"info-carousel-bac",style:{textAlign:"center"},children:[(0,i.jsxs)("form",{id:"search_form_icon",action:"https://search.fortodo.com",method:"GET",target:"_top",onSubmit:e=>{document.getElementById("search_form_input_icon").value.trim()||e.preventDefault()},children:[(0,i.jsxs)("div",{className:"autocomplete",style:{position:"relative",display:"inline-block",width:"100%",maxWidth:"600px"},children:[(0,i.jsx)("textarea",{id:"search_form_input_icon",name:"find",rows:2,placeholder:"",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,onInput:e=>{let t=e.target.value.trim(),o=document.getElementById("search-icon-btn-i"),i=document.getElementById("search-submit-btn-i"),n=document.getElementById("search-clear-btn-i"),r=document.getElementById("search-voice-btn-i");t?(o&&(o.style.display="none"),i&&(i.style.display="grid"),n&&(n.style.display="grid"),r&&(r.style.display="none")):(o&&(o.style.display="grid"),i&&(i.style.display="none"),n&&(n.style.display="none"),r&&(r.style.display="grid"))},onKeyDown:e=>{"Enter"===e.key&&!e.shiftKey&&(e.preventDefault(),e.target.value.trim()&&document.getElementById("search_form_icon").submit())},style:{width:"100%",height:"80px",minHeight:"80px",maxHeight:"80px",borderRadius:"24px",backgroundColor:"rgba(237, 237, 237, 0.13)",resize:"none",border:"1px solid #dadce0",boxShadow:"1px 1px 2px rgb(181, 176, 176) inset",overflow:"hidden",padding:"12px 80px 12px 16px",fontFamily:"inherit",fontSize:"26px",lineHeight:"1.4",outline:"none",textAlign:"left",color:"rgb(131, 94, 30)",caretColor:"rgb(131, 94, 30)"}}),(0,i.jsx)("button",{type:"submit",id:"search-icon-btn-i","aria-label":"Search",style:{position:"absolute",right:"13px",top:"2px",width:"28px",height:"28px",borderRadius:"50%",border:"1px solid #dadce0",background:"none",color:"#333",cursor:"pointer",display:"grid",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease"},children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:18,viewBox:"0 0 512 512",width:18,fill:"#333",children:(0,i.jsx)("path",{d:"M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"})})}),(0,i.jsx)("button",{type:"button",id:"search-clear-btn-i","aria-label":"Clear text",onClick:()=>{let e=document.getElementById("search_form_input_icon");e.value="",e.focus(),e.dispatchEvent(new Event("input",{bubbles:!0}))},style:{position:"absolute",right:"13px",top:"2px",width:"24px",height:"28px",borderRadius:"50%",border:"none",background:"none",color:"#999",curs
1or:"pointer",display:"none",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease"},children:(0,i.jsx)("svg",{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:(0,i.jsx)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"#999",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,i.jsx)("button",{type:"button",id:"search-voice-btn-i","aria-label":"Voice search",title:"Search by voice",onClick:()=>{document.getElementById("search_form_input_icon").focus()},style:{position:"absolute",right:"12px",bottom:"2px",width:"28px",height:"28px",borderRadius:"50%",border:"1px solid #dadce0",background:"none",color:"#666",cursor:"pointer",display:"grid",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease"},children:(0,i.jsxs)("svg",{width:18,height:18,viewBox:"0 0 24 24",fill:"#666",children:[(0,i.jsx)("path",{d:"M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z"}),(0,i.jsx)("path",{d:"M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z"})]})}),(0,i.jsx)("button",{type:"submit",id:"search-submit-btn-i","aria-label":"Submit search",style:{position:"absolute",right:"12px",bottom:"2px",width:"28px",height:"28px",borderRadius:"50%",border:"1px solid #dadce0",background:"none",color:"#333",cursor:"pointer",display:"none",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease"},children:(0,i.jsx)("svg",{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:(0,i.jsx)("path",{d:"M5 11L12 4M12 4L19 11M12 4V21",stroke:"#333",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,i.jsx)("button",{type:"button",id:"search-ai-btn-i","aria-label":"AI Search",title:"Search with AI",onClick:()=>{let e=document.getElementById("search_form_input_icon").value.trim();window.location.href=e?"https://ai.fortodo.com?find=".concat(encodeURIComponent(e)):"https://ai.fortodo.com"},style:{position:"absolute",right:"48px",bottom:"2px",width:"28px",height:"28px",borderRadius:"50%",border:"1px solid #dadce0",background:"none",color:"#333",cursor:"pointer",display:"grid",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease"},children:(0,i.jsxs)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M12 2L13.5 8.5L20 10L13.5 11.5L12 18L10.5 11.5L4 10L10.5 8.5L12 2Z",fill:"#333"}),(0,i.jsx)("path",{d:"M19 3L19.5 5.5L22 6L19.5 6.5L19 9L18.5 6.5L16 6L18.5 5.5L19 3Z",fill:"#333"})]})})]}),(0,i.jsx)("div",{style:{marginTop:"15px"},children:(0,i.jsx)("input",{type:"submit",value:"Fortodo Search","aria-label":"Fortodo Search",style:{boxShadow:"0 1px 1px rgba(0,0,0,.1)",backgroundColor:"#f8f9fa",border:"1px solid #dadce0",borderRadius:"4px",color:"#3c4043",fontFamily:"arial,sans-serif",fontSize:"14px",padding:"0 16px",lineHeight:"27px",height:"36px",minWidth:"54px",textAlign:"center",cursor:"pointer"}})})]}),(0,i.jsxs)("div",{style:{marginTop:"15px"},children:[(0,i.jsx)("span",{style:{padding:"0",cursor:"default",color:"rgb(131, 94, 30)"},children:"Info:"})," ",(0,i.jsx)("span",{style:{color:"#615e5e"},children:Y("hp_searchInfo")})]}),(0,i.jsxs)("div",{style:{marginTop:"10px",display:"flex",justifyContent:"center",gap:"20px",fontSize:"13px"},children:[(0,i.jsx)("a",{href:"#",onClick:e=>{var t;e.preventDefault();let o=null===(t=document.getElementById("search_form_input_icon"))||void 0===t?void 0:t.value.trim();window.location.href=o?"https://info.fortodo.com?find=".concat(encodeURIComponent(o)):"https://info.fortodo.com"},style:{color:"var(--text-secondary, #615e5e)"},children:Y("hp_info")}),(0,i.jsx)("a",{href:"#",onClick:e=>{var t;e.preventDefault();let o=null===(t=document.getElementById("search_form_input_icon"))||void 0===t?void 0:t.value.trim();window.location.href=o?"https://search.fortodo.com?find=".concat(encodeURIComponent(o)):"https://search.fortodo.com"},style:{color:"var(--text-secondary, #615e5e)"},children:Y("search")}),(0,i.jsx)("a",{href:"#",onClick:e=>{var t;e.preventDefault();let o=null===(t=document.getElementById("search_form_input_icon"))||void 0===t?void 0:t.value.trim();window.location.href=o?"https://ai.fortodo.com?find=".concat(encodeURIComponent(o)):"https://ai.fortodo.com"},style:{color:"var(--text-secondary, #615e5e)"},children:Y("hp_ai")}),(0,i.jsx)("a",{href:"#",onClick:e=>{var t;e.preventDefault();let o=null===(t=document.getElementById("search_form_input_icon"))||void 0===t?void 0:t.value.trim();window.location.href=o?"https://www.worldinfobook.com/wiki/".concat(encodeURIComponent(o.replace(/\s+/g,"_"))):"https://www.worldinfobook.com"},style:{color:"var(--text-secondary, #615e5e)"},children:Y("hp_worldinfobook")})]})]})})]})}),ea&&oo&&(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px 14px",background:"#f5f3ff",border:"1px solid #ddd6fe",borderRadius:"12px",maxWidth:"700px",margin:"12px auto 12px",cursor:"pointer"},onClick:()=>{var e;let t=null===(e=oo.metadata)||void 0===e?void 0:e.sessionId;t&&window.open("/guardian-watch/".concat(t),"_blank")},children:[(0,i.jsx)("span",{style:{fontSize:"18px"},children:"guardian-watch"===oo.type?"\uD83D\uDC41":"\uD83D\uDEE1️"}),(0,i.jsxs)("div",{style:{flex:1},children:[(0,i.jsx)("div",{style:{fontSize:"13px",fontWeight:"600",color:"#6d28d9"},children:oo.title}),(0,i.jsx)("div",{style:{fontSize:"12px",color:"#7c3aed"},children:oo.message}),(null===(K=oo.metadata)||void 0===K?void 0:K.activatorName)&&"Someone"!==oo.metadata.activatorName&&(0,i.jsxs)("div",{style:{fontSize:"11px",color:"#8b5cf6",marginTop:"2px"},children:["From: ",oo.metadata.activatorName]})]}),(0,i.jsx)("span",{style:{fontSize:"11px",color:"#2563eb",fontWeight:600},children:"View →"})]}),ea&&!ie&&t0.length>0&&(()=>{let e=["ready","preparing","confirmed","pending"],t=t0.slice().sort((t,o)=>(-1===e.indexOf(t.status)?99:e.indexOf(t.status))-(-1===e.indexOf(o.status)?99:e.indexOf(o.status)))[0],o=t.status||"pending",n=t.items||[];return(0,i.jsxs)("a",{href:"/my-orders",className:"order-status-banner",style:{display:"block",maxWidth:"700px",margin:"12px auto 12px",padding:"10px 14px",background:"ready"===o?"#f0fdf4":"preparing"===o?"#fffbeb":"#fefce8",border:"1px solid ".concat("ready"===o?"#bbf7d0":"preparing"===o?"#fde68a":"#fef08a"),borderRadius:"12px",textDecoration:"none",color:"#1e293b"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:n.length>0?"6px":"0"},children:[(0,i.jsx)("span",{style:{fontSize:"16px"},children:"ready"===o?"\uD83D\uDCE6":"preparing"===o?"\uD83D\uDC68‍\uD83C\uDF73":"⏳"}),(0,i.jsx)("span",{style:{fontSize:"13px",fontWeight:"600"},children:"ready"===o?"Ready for Pickup":"preparing"===o?"Preparing your order":"Order placed"}),t0.length>1&&(0,i.jsxs)("span",{style:{fontSize:"11px",color:"#64748b",marginLeft:"2px"},children:["\xb7 ",t0.length," orders"]}),(0,i.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 20 20",fill:"#94a3b8",style:{marginLeft:"auto"},children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"})})]}),n.length>0&&(0,i.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px"},children:n.slice(0,3).map((e,t)=>(0,i.jsxs)("span",{style:{fontSize:"12px",padding:"3px 8px",background:"rgba(0,0,0,0.05)",borderRadius:"8px"},children:["\uD83D\uDECD️ ",e.title||"Item"]},t))})]})})(),ea&&!ie&&t2.length>0&&(()=>{let e=["delivering","picked_up","dispatched","assigned","confirmed","pending"],t=t2.slice().sort((t,o)=>(-1===e.indexOf(t.status)?99:e.indexOf(t.status))-(-1===e.indexOf(o.status)?99:e.indexOf(o.status)))[0],o=t.status||"confirmed",n=["delivering","picked_up","dispatched"].includes(o)?"\uD83D\uDEF5":"assigned"===o?"\uD83D\uDC64":"\uD83D\uDCE6",r="delivering"===o?"Out for Delivery":"picked_up"===o?"Order Picked Up":"dispatched"===o?"Doer Dispatched":"assigned"===o?"Doer Assigned":"Delivery Order Placed",l=["delivering","picked_up"].includes(o)?"#f0fdf4":"dispatched"===o||"assigned"===o?"#fffbeb":"#fefce8",a=["delivering","picked_up"].includes(o)?"#bbf7d0":"dispatched"===o||"assigned"===o?"#fde68a":"#fef08a",s=t.
1items||[];return(0,i.jsxs)("a",{href:"/delivery",className:"order-status-banner",style:{display:"block",maxWidth:"700px",margin:"12px auto 12px",padding:"10px 14px",background:l,border:"1px solid ".concat(a),borderRadius:"12px",textDecoration:"none",color:"#1e293b"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:s.length>0?"6px":"0"},children:[(0,i.jsx)("span",{style:{fontSize:"16px"},children:n}),(0,i.jsx)("span",{style:{fontSize:"13px",fontWeight:"600"},children:r}),t2.length>1&&(0,i.jsxs)("span",{style:{fontSize:"11px",color:"#64748b",marginLeft:"2px"},children:["\xb7 ",t2.length," orders"]}),(0,i.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 20 20",fill:"#94a3b8",style:{marginLeft:"auto"},children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"})})]}),s.length>0&&(0,i.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px"},children:s.slice(0,3).map((e,t)=>(0,i.jsxs)("span",{style:{fontSize:"12px",padding:"3px 8px",background:"rgba(0,0,0,0.05)",borderRadius:"8px"},children:["\uD83D\uDEF5 ",e.title||"Item"]},t))})]})})(),ea&&!ie&&t$.length>0&&t$.map((e,t)=>{let o=e.fulfillmentStatus||"pending",n={};try{n=JSON.parse(e.data||"{}")}catch(e){}let r=(n.amenities||[]).filter(e=>{var t,o,i;return!(null===(t=e.amenityId)||void 0===t?void 0:t.includes("sentinel"))&&!(null===(o=e.label)||void 0===o?void 0:o.toLowerCase().includes("sentinel"))&&!(null===(i=e.label)||void 0===i?void 0:i.toLowerCase().includes("guardian"))});if(0===r.length)return null;let l=(n.locationId||"").includes("center")?"https://centers.fortodo.com/order-status":"https://cafes.fortodo.com/order-status";return(0,i.jsxs)("a",{href:l,className:"order-status-banner",style:{display:"block",maxWidth:"700px",margin:"12px auto 12px",padding:"10px 14px",background:"ready"===o?"#f0fdf4":"preparing"===o?"#fff7ed":"#fefce8",border:"1px solid ".concat("ready"===o?"#bbf7d0":"preparing"===o?"#fed7aa":"#fde68a"),borderRadius:"12px",textDecoration:"none",color:"#1e293b"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:r.length>0?"6px":"0"},children:[(0,i.jsx)("span",{style:{fontSize:"16px"},children:"ready"===o?"✅":"preparing"===o?"\uD83D\uDC68\uD83C\uDF73":"⏳"}),(0,i.jsx)("span",{style:{fontSize:"13px",fontWeight:"600"},children:"ready"===o?"Ready for Pickup":"preparing"===o?"Preparing your order":"Order placed"}),(0,i.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 20 20",fill:"#94a3b8",style:{marginLeft:"auto"},children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"})})]}),r.length>0&&(0,i.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px"},children:r.map((e,t)=>(0,i.jsxs)("span",{style:{fontSize:"12px",padding:"3px 8px",background:"rgba(0,0,0,0.05)",borderRadius:"8px"},children:[e.emoji||"\uD83C\uDF81"," ",e.label||""]},t))})]},e.notificationId||t)}),ea&&ej.length>0&&(0,i.jsxs)("a",{href:"/events/calendar",style:{display:"block",maxWidth:"700px",margin:"12px auto 12px",padding:"10px 14px",background:"#f5f3ff",border:"1px solid #ddd6fe",borderRadius:"12px",textDecoration:"none",color:"#1e293b",position:"relative",zIndex:1},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:ej.length>1?"8px":"0"},children:[(0,i.jsx)("span",{style:{fontSize:"16px"},children:"⏰"}),(0,i.jsxs)("span",{style:{fontSize:"13px",fontWeight:"600",color:"#7c3aed"},children:["Reminders — ",ej.length," upcoming in 24h"]}),(0,i.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 20 20",fill:"#94a3b8",style:{marginLeft:"auto"},children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"})})]}),(0,i.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px"},children:ej.slice(0,3).map(e=>(0,i.jsxs)("span",{style:{fontSize:"12px",padding:"3px 10px",background:"#ede9fe",borderRadius:"8px",color:"#6d28d9"},children:[e.title||e.serviceType," \xb7 ",e.minutesUntil<60?"".concat(e.minutesUntil,"m"):"".concat(Math.round(e.minutesUntil/60),"h")," away"]},e.id))})]}),ea&&eS.length>0&&(0,i.jsxs)("div",{style:{maxWidth:"700px",margin:"12px auto 12px",padding:"10px 14px",background:"#f0fdf4",border:"1px solid #bbf7d0",borderRadius:"12px"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px"},children:[(0,i.jsx)("span",{style:{fontSize:"16px"},children:"\uD83D\uDEE1️"}),(0,i.jsx)("span",{style:{fontSize:"13px",fontWeight:"600",color:"#16a34a"},children:"Connected — Live Activity"})]}),(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:eS.map(e=>{var t;return(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 10px",background:"#fff",borderRadius:"8px",border:"1px solid #d1fae5"},children:[(0,i.jsx)("span",{style:{width:"8px",height:"8px",borderRadius:"50%",background:"#16a34a",display:"inline-block",flexShrink:0,boxShadow:"0 0 0 3px #bbf7d0",animation:"pulse 2s infinite"}}),(0,i.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,i.jsx)("div",{style:{fontSize:"13px",fontWeight:"600",color:"#111827"},children:e.label||"Ward"}),e.activeRide&&(0,i.jsxs)("div",{style:{fontSize:"11px",color:"#6b7280",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\uD83D\uDE97 ",e.activeRide.serviceType," \xb7 ",e.activeRide.location||"In progress"]})]}),(0,i.jsx)("span",{style:{fontSize:"11px",fontWeight:"600",padding:"2px 8px",borderRadius:"8px",background:"#dcfce7",color:"#16a34a"},children:(null===(t=e.activeRide)||void 0===t?void 0:t.status)||"active"})]},e.linkId)})}),(0,i.jsx)("style",{children:"@keyframes pulse { 0%,100%{box-shadow:0 0 0 3px #bbf7d0} 50%{box-shadow:0 0 0 6px #bbf7d0} }"})]}),ea&&of.filter(e=>!oy.has(e.id)).length>0&&(0,i.jsx)("div",{style:{maxWidth:"700px",margin:"12px auto 10px",padding:"0 10px"},children:of.filter(e=>!oy.has(e.id)).map(e=>{let t={info:"linear-gradient(135deg, #3b82f6, #06b6d4)",warning:"linear-gradient(135deg, #f97316, #eab308)",success:"linear-gradient(135deg, #22c55e, #10b981)",error:"linear-gradient(135deg, #ef4444, #ec4899)"};return(0,i.jsxs)("div",{style:{background:t[e.type]||t.info,borderRadius:"12px",padding:"12px 16px",marginBottom:"8px",display:"flex",alignItems:"center",gap:"12px"},children:[(0,i.jsx)("span",{style:{fontSize:"20px"},children:{info:"ℹ️",warning:"⚠️",success:"✅",error:"❌"}[e.type]||"\uD83D\uDCE2"}),(0,i.jsxs)("div",{style:{flex:1},children:[(0,i.jsx)("div",{style:{color:"#fff",fontWeight:"600",fontSize:"14px"},children:e.title}),(0,i.jsx)("div",{style:{color:"rgba(255,255,255,0.9)",fontSize:"12px"},children:e.message})]}),(0,i.jsx)("button",{onClick:()=>{ob(t=>new Set([...Array.from(t),e.id])),(0,p.S)("/api/clear-notifications",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:null==ep?void 0:ep.sub,notificationIds:[e.id]})}).catch(()=>{})},style:{background:"none",border:"none",color:"rgba(255,255,255,0.8)",fontSize:"18px",cursor:"pointer",padding:"4px"},children:"✕"})]},e.id)})}),ea&&ov.length>0&&(0,i.jsx)("div",{style:{maxWidth:"700px",margin:"12px auto 10px",padding:"0 10px"},children:ov.map(e=>(0,i.jsxs)("div",{style:{display:"flex",borderRadius:"8px",overflow:"hidden",marginBottom:"8px"},children:[(0,i.jsxs)("div",{style:{background:"#dc2626",padding:"8px 14px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minWidth:"80px"},children:[(0,i.jsx)("span",{style:{color:"#fff",fontWeight:"700",fontSize:"13px",lineHeight:"1.2"},children:"Breaking"}),(0,i.jsx)("span",{style:{color:"#fff",fontSize:"13px",lineHeight:"1.2"},children:"News"})]}),(0,i.jsx)("div",{style:{background:"#dc2626",padding:"8px 14px",flex:1,display:"flex",alignItems:"center",borderLeft:"1px solid rgba(255,255,255,0.2)"},children:(0,i.jsxs)("span",{style:{color:"#fff",fontWeight:"700",fontSize:"13px"},children:[e.title,e.message?" — ".concat(e.message):""]})})]},e.id))}),ea&&(eD.length>0||t4||oo)&&(0,i.jsxs)("div",{style:{maxWidth:"700px",margin:"12px auto 12px",padding:"16px",background:"rgba(0,0,0,0.05)",borderRadius:"14px"},children:[(0,i.jsx)("h3",{style:{fontSize:"16px",fontWeight:"600",marginBottom:"12px",color:"#111827"},children:"Recent Activity"}),t4&&(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px 12px",background:"#dcfce7",border:"1px solid #86efac",borderRadius:"10px",marginBottom:"10px"},children:[(0,i.jsx)("span",{style:{fontSize:"18px"},children:"\uD83D\uDEE1️"}),(0,i.jsxs)("div",{style:{flex:1},children:[(0,i.jsx)("div",{style:{fontSize:"13px",fontWeight:"600",color:"#166534",margin:0},children:"Guardian Active"}),(0,i.jsxs)("div",{style:{fontSize:"12px",color:"#15803d",margin:0},children:[t5?"Monitor: ".concat(t5):"Awaiting Monitor"," \xb7 ",iP(t7)]})]}),(0,i.jsx)("button",{onClick:()=>iN(!1),style:{fontSize:"11px",color:"#dc2626",fontWeight:600,background:"none",border:"none",cursor:"pointer"},children:"Stop"})]}),oo&&(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px 12px",background:"#f5f3ff",border:"1px solid #ddd6fe",borderRadius:"10px",marginBottom:"10px",cursor:"pointer"},onClick:()=>{var e;let t=null===(e=oo.metadata)||void 0===e?void 0:e.sessionId;t&&window.open("/guardian-watch/".concat(t),"_blank")},children:[(0,i.jsx)("span",{style:{fontSize:"18px"},children:"\uD83D\uDC41"}),(0,i.jsxs)("div",{style:{flex:1},children:[(0,i.jsx)("div",{style:{fontSize:"13px",fontWeight:"600",color:"#6d28d9",margin:0},children:oo.title}),(0,i.jsx)("div",{style:{fontSize:"12px",color:"#7c3aed",margin:0},children:oo.message}),(null===(G=oo.metadata)||void 0===G?void 0:G.activatorName)&&(0,i.jsxs)("div",{style:{fontSize:"11px",color:"#8b5cf6",marginTop:"2px"},children:["From: ",oo.metadata.activatorName]})]}),(0,i.jsx)("span",{style:{fontSize:"11px",color:"#2563eb",fontWeight:600},children:"View →"})]}),(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0"},children:eD.map((e,t)=>(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 12px",borderBottom:t<eD.length-1?"1px solid rgba(0,0,0,0.07)":"none"},children:[(0,i.jsx)("div",{style:{width:"36px",height:"36px",borderRadius:"50%",background:"".concat(e.color,"18"),display:"flex",alignItems:"center",justifyContent:"center",fontSize:"18px",flexShrink:0},children:e.icon}),(0,i.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,i.jsx)("div",{style:{fontSize:"15px",fontWeight:"500",color:"#111827",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.title}),(0,i.jsx)("div",{style:{fontSize:"13px",color:"#6b7280",marginTop:"2px"},children:e.time})]})]},t))})]}),(0,i.jsxs)("div",{id:"ecosystem-section",style:{marginTop:"40px",paddingBottom:"100px",display:ty?"block":"none"}
1,children:[(0,i.jsx)("div",{className:"footer__content__title-container",children:(0,i.jsx)("span",{className:"footer__content__title",style:{color:"rgb(131, 94, 30)"},children:"Our Ecosystem"})}),(0,i.jsx)("hr",{style:{maxWidth:"600px",margin:"0 auto 30px"}}),(0,i.jsxs)("div",{style:{position:"relative",borderRadius:"12px",padding:"20px",backdropFilter:"saturate(110%) blur(2px)",backgroundColor:"rgba(177, 184, 158, 0.81)"},children:[(0,i.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:"30px",margin:"0 auto",textAlign:"left"},children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{style:{fontSize:"14pt",fontWeight:"bold",color:"#333",marginBottom:"10px"},children:"For; to (do)"}),(0,i.jsx)("hr",{style:{marginBottom:"10px"}}),(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"6px",fontSize:"12pt"},children:[(0,i.jsx)("span",{style:{color:"#4054a1",cursor:"pointer"},onClick:()=>eO(!0),children:"About us, at a Glance"}),(0,i.jsx)("a",{href:"https://about.fortodo.com",target:"_top",style:{color:"#4054a1"},children:"Even More About Us"}),(0,i.jsx)("a",{href:"https://group.fortodo.com",target:"_top",style:{color:"#4054a1"},children:"Fortodo Group"}),(0,i.jsx)("a",{href:"https://group.fortodo.com/members",target:"_top",style:{color:"#4054a1"},children:"Group Members"}),(0,i.jsx)("a",{href:"https://group.fortodo.com/structure/fortodo-group-structure.pdf",target:"_top",style:{color:"#4054a1"},children:"Structure"}),(0,i.jsx)("a",{href:"https://investor.fortodo.com/",target:"_top",style:{color:"#4054a1"},children:"Investor Relations"}),(0,i.jsx)("a",{href:"https://www.birri.com/founder-statement/",target:"_top",style:{color:"#4054a1"},children:"Founder's Letter"}),(0,i.jsx)("a",{href:"https://developers.fortodo.com",target:"_top",style:{color:"#4054a1"},children:"For Developers"}),(0,i.jsx)("a",{href:"https://via.fortodo.com",target:"_top",style:{color:"#4054a1"},children:"Via Fortodo"}),(0,i.jsx)("a",{href:"/newsroom",target:"_top",style:{color:"#4054a1"},children:"Newsroom"}),(0,i.jsx)("a",{href:"https://about.fortodo.com/contact/",target:"_top",style:{color:"#4054a1"},children:"Contact Us"}),(0,i.jsx)("a",{href:"https://careers.fortodo.com/",target:"_top",style:{color:"#4054a1"},children:"Careers"}),(0,i.jsx)("a",{href:"https://corp.fortodo.com/press",target:"_top",style:{color:"#4054a1"},children:"Press"}),(0,i.jsx)("a",{href:"https://www2.fortodo.com/fortodo/events/events.aspx",target:"_top",style:{color:"#4054a1"},children:"Events"})]})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{style:{fontSize:"14pt",fontWeight:"bold",color:"#333",marginBottom:"10px"},children:"Initiatives & Responsibilities"}),(0,i.jsx)("hr",{style:{marginBottom:"10px"}}),(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"6px",fontSize:"12pt"},children:[(0,i.jsx)("a",{href:"https://www.fortodo.org",target:"_top",style:{color:"#4054a1"},children:"Fortodo.org"}),(0,i.jsx)("a",{href:"https://about.fortodo.com/sustainabledev/",target:"_top",style:{color:"#4054a1"},children:"Sustainability"}),(0,i.jsx)("a",{href:"https://2020-2022.fortodo.com/",target:"_top",style:{color:"#4054a1"},children:'"2022 - 2022" Initiative'}),(0,i.jsx)("a",{href:"https://2023-2025.fortodo.com/",target:"_top",style:{color:"#4054a1"},children:'"2023 - 2025" Initiative'}),(0,i.jsx)("a",{href:"https://about.fortodo.com/worldwide",target:"_top",style:{color:"#4054a1"},children:"Fortodo Locales"}),(0,i.jsx)(F,{})]})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{style:{fontSize:"14pt",fontWeight:"bold",color:"#333",marginBottom:"10px"},children:"Around Fortodo"}),(0,i.jsx)("hr",{style:{marginBottom:"10px"}}),(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"6px",fontSize:"12pt"},children:[(0,i.jsx)("a",{href:"https://www.fortodo.com",target:"_top",style:{color:"#4054a1"},children:"Online (Home)"}),(0,i.jsx)("a",{href:"https://about.fortodo.com/mobile/apps",target:"_top",style:{color:"#4054a1"},children:"Apps"}),(0,i.jsx)("a",{href:"https://about.fortodo.com/all",target:"_top",style:{color:"#4054a1"},children:"All"}),(0,i.jsx)("a",{href:"https://call.fortodo.com/",target:"_top",style:{color:"#4054a1"},children:"Call or Text us"}),(0,i.jsx)("a",{href:"https://centers.fortodo.com",target:"_top",style:{color:"#4054a1"},children:"Centers"}),(0,i.jsx)("a",{href:"https://about.fortodo.com/networks/",target:"_top",style:{color:"#4054a1"},children:"Networks"}),(0,i.jsx)("span",{style:{color:"#4054a1",cursor:"pointer"},onClick:()=>eG(!0),children:"Support"}),(0,i.jsx)("a",{href:"https://www.fortodo.com/Fortodo",target:"_top",style:{color:"#4054a1"},children:"@Fortodo"}),(0,i.jsx)("a",{href:"https://blog.fortodo.com",target:"_top",style:{color:"#4054a1"},children:"Our Blog"}),(0,i.jsx)("a",{href:"https://support.fortodo.com",target:"_top",style:{color:"#4054a1"},children:"Support Center"}),(0,i.jsx)("a",{href:"https://www.fortodo.com/Tap-to-Pay-on-iPhone/",target:"_top",style:{color:"#4054a1"},children:"Tap to Pay"}),(0,i.jsx)("a",{href:"https://www.fortodo.com/how-identity-works",target:"_top",style:{color:"#4054a1"},children:"Fortodo Verified"}),(0,i.jsx)("span",{style:{fontSize:"11pt",fontWeight:"bold",color:"#333",marginTop:"6px"},children:"Fortodo"}),(0,i.jsxs)("a",{href:"/forkids",style:{color:"rgb(22,163,74)",fontWeight:"600"},children:["\uD83E\uDDD2 ",Y("hp_kids")]}),(0,i.jsxs)("a",{href:"/forteens",style:{color:"rgb(124,58,237)",fontWeight:"600"},children:["\uD83E\uDDD1 ",Y("hp_teens")]}),(0,i.jsxs)("a",{href:"/foradults",style:{fontWeight:"600",textDecoration:"none"},children:["\uD83D\uDD1E ",(0,i.jsx)("span",{style:{color:"rgb(128,0,128)"},children:Y("hp_adults")})]}),(0,i.jsx)("a",{href:"/reserve-handle",style:{color:"#796a04"},children:"Get a Handle - Now"}),(0,i.jsx)("a",{href:"/reserve-verification",style:{color:"#7c3aed"},children:"Get Verified - Now"}),(0,i.jsx)("a",{href:"/how-payouts-work",style:{color:"#4054a1"},children:"How Payouts Work"}),(0,i.jsx)("a",{href:"/how-it-works",style:{color:"#4054a1"},children:"How Fortodo Works"}),(0,i.jsx)("a",{href:"/guide",style:{color:"#4054a1"},children:"How to... Guide"}),(0,i.jsx)("a",{href:"/setup",style:{color:"#0a6f2f",fontWeight:"600"},children:"\uD83D\uDCCB Set-up Steps"})]})]})]}),(0,i.jsxs)("div",{style:{marginTop:"30px",fontSize:"10pt",color:"#666",textAlign:"center"},children:["v2.1.0 | Est: 2017 | In Stealth: ",(0,i.jsx)("a",{href:"https://2020-2022.fortodo.com/",target:"_top",style:{color:"#4054a1"},children:"2020-2022"})," | ",(0,i.jsx)("a",{href:"https://2023-2025.fortodo.com/",target:"_top",style:{color:"#4054a1"},children:"2023-2025"})," | Status: ",(0,i.jsx)("a",{href:"https://myaccount.fortodo.com/",target:"_top",style:{color:"#4054a1"},children:"Out of Stealth - 2026"})]})]})]}),"__product:search"===Z&&!oE&&!(iZ&&!oT)&&(0,i.jsxs)("div",{style:{maxWidth:"600px",margin:"30px auto 0",padding:"0 16px"},children:[(0,i.jsxs)("div",{style:{textAlign:"center",marginBottom:"18px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/icons/search.png",alt:"Search",style:{height:"36px",width:"36px",objectFit:"contain"}}),(0,i.jsx)("span",{style:{fontSize:"22px",fontWeight:700},children:"Search"})]}),(0,i.jsxs)("div",{className:"info-carousel-bac",style:{textAlign:"center"},children:[(0,i.jsxs)("form",{action:"https://search.fortodo.com",method:"GET",target:"_top",onSubmit:e=>{let t=document.getElementById("search_form_input_product");(null==t?void 0:t.value.trim())||e.preventDefault()},children:[(0,i.jsxs)("div",{className:"autocomplete",style:{position:"relative",display:"inline-block",width:"100%"},children:[(0,i.jsx)("textarea",{id:"search_form_input_product",name:"find",rows:2,placeholder:"",autoFocus:!0,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,onInput:e=>{let t=e.target.value.trim(),o=document.getElementById("search-icon-btn-p"),i=document.getElementById("search-submit-btn-p"),n=document.getElementById("search-clear-btn-p"),r=document.getElementById("search-voice-btn-p");t?(o&&(o.style.display="none"),i&&(i.style.display="grid"),n&&(n.style.display="grid"),r&&(r.style.display="none")):(o&&(o.style.display="grid"),i&&(i.style.display="none"),n&&(n.style.display="none"),r&&(r.style.display="grid"))},onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey){var t;e.preventDefault();let o=e.target;o.value.trim()&&(null===(t=o.closest("form"))||void 0===t||t.submit())}},style:{width:"100%",height:"80px",minHeight:"80px",maxHeight:"80px",borderRadius:"24px",backgroundColor:"rgba(237,237,237,0.13)",resize:"none",border:"1px solid #dadce0",boxShadow:"1px 1px 2px rgb(181,176,176) inset",overflow:"hidden",padding:"12px 80px 12px 16px",fontFamily:"inherit",fontSize:"26px",lineHeight:"1.4",outline:"none",textAlign:"left",color:"rgb(131,94,30)",caretColor:"rgb(131,94,30)"}}),(0,i.jsx)("button",{type:"submit",id:"search-icon-btn-p","aria-label":"Search",style:{position:"absolute",right:"13px",top:"2px",width:"28px",height:"28px",borderRadius:"50%",border:"1px solid #dadce0",background:"none",color:"#333",cursor:"pointer",display:"grid",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease"},children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:18,viewBox:"0 0 512 512",width:18,fill:"#333",children:(0,i.jsx)("path",{d:"M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"})})}),(0,i.jsx)("button",{type:"button",id:"search-clear-btn-p","aria-label":"Clear",onClick:()=>{let e=document.getElementById("search_form_input_product");e.value="",e.focus(),e.dispatchEvent(new Event("input",{bubbles:!0}))},style:{position:"absolute",right:"13px",top:"2px",width:"24px",height:"28px",borderRadius:"50%",border:"none",background:"none",color:"#999",curs
1or:"pointer",display:"none",alignItems:"center",justifyContent:"center"},children:(0,i.jsx)("svg",{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:(0,i.jsx)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"#999",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,i.jsx)("button",{type:"button",id:"search-voice-btn-p","aria-label":"Voice",style:{position:"absolute",right:"12px",bottom:"2px",width:"28px",height:"28px",borderRadius:"50%",border:"1px solid #dadce0",background:"none",color:"#666",cursor:"pointer",display:"grid",alignItems:"center",justifyContent:"center"},children:(0,i.jsxs)("svg",{width:18,height:18,viewBox:"0 0 24 24",fill:"#666",children:[(0,i.jsx)("path",{d:"M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z"}),(0,i.jsx)("path",{d:"M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z"})]})}),(0,i.jsx)("button",{type:"submit",id:"search-submit-btn-p","aria-label":"Submit",style:{position:"absolute",right:"12px",bottom:"2px",width:"28px",height:"28px",borderRadius:"50%",border:"1px solid #dadce0",background:"none",color:"#333",cursor:"pointer",display:"none",alignItems:"center",justifyContent:"center"},children:(0,i.jsx)("svg",{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:(0,i.jsx)("path",{d:"M5 11L12 4M12 4L19 11M12 4V21",stroke:"#333",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,i.jsx)("button",{type:"button","aria-label":"AI Search",onClick:()=>{var e;let t=null===(e=document.getElementById("search_form_input_product"))||void 0===e?void 0:e.value.trim();window.location.href=t?"https://ai.fortodo.com?find=".concat(encodeURIComponent(t)):"https://ai.fortodo.com"},style:{position:"absolute",right:"48px",bottom:"2px",width:"28px",height:"28px",borderRadius:"50%",border:"1px solid #dadce0",background:"none",color:"#333",cursor:"pointer",display:"grid",alignItems:"center",justifyContent:"center"},children:(0,i.jsxs)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:[(0,i.jsx)("path",{d:"M12 2L13.5 8.5L20 10L13.5 11.5L12 18L10.5 11.5L4 10L10.5 8.5L12 2Z",fill:"#333"}),(0,i.jsx)("path",{d:"M19 3L19.5 5.5L22 6L19.5 6.5L19 9L18.5 6.5L16 6L18.5 5.5L19 3Z",fill:"#333"})]})})]}),(0,i.jsx)("div",{style:{marginTop:"15px"},children:(0,i.jsx)("input",{type:"submit",value:"Fortodo Search",style:{boxShadow:"0 1px 1px rgba(0,0,0,.1)",backgroundColor:"#f8f9fa",border:"1px solid #dadce0",borderRadius:"4px",color:"#3c4043",fontFamily:"arial,sans-serif",fontSize:"14px",padding:"0 16px",lineHeight:"27px",height:"36px",minWidth:"54px",cursor:"pointer"}})})]}),(0,i.jsxs)("div",{style:{marginTop:"15px"},children:[(0,i.jsx)("span",{style:{padding:"0",cursor:"default",color:"rgb(131, 94, 30)"},children:"Info:"})," ",(0,i.jsx)("span",{style:{color:"#615e5e"},children:Y("hp_searchInfo")})]}),(0,i.jsxs)("div",{style:{marginTop:"10px",display:"flex",justifyContent:"center",gap:"20px",fontSize:"13px"},children:[(0,i.jsx)("a",{href:"https://info.fortodo.com",style:{color:"var(--text-secondary, #615e5e)"},children:Y("hp_info")}),(0,i.jsx)("a",{href:"https://search.fortodo.com",style:{color:"var(--text-secondary, #615e5e)"},children:Y("search")}),(0,i.jsx)("a",{href:"https://ai.fortodo.com",style:{color:"var(--text-secondary, #615e5e)"},children:Y("hp_ai")}),(0,i.jsx)("a",{href:"https://www.worldinfobook.com",style:{color:"var(--text-secondary, #615e5e)"},children:Y("hp_worldinfobook")})]})]})]}),"__product:rides"===Z&&(0,i.jsxs)("div",{style:{maxWidth:"480px",margin:"30px auto 0",padding:"0 16px"},children:[(0,i.jsxs)("div",{style:{textAlign:"center",marginBottom:"18px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/cars.png",alt:"Transportation",style:{height:"36px",objectFit:"contain"}}),(0,i.jsx)("span",{style:{fontSize:"22px",fontWeight:700},children:"Transportation"})]}),(0,i.jsx)(L,{userInfo:ep,currentPresence:Q})]}),!er&&(!ea||id)&&(ea?i3&&!io:!io||i3)&&(!!ea||!ty)&&!oE&&!Z.startsWith("__product:")&&(0,i.jsx)(z,{cityKey:Z,cityReady:X})]})}),eJ&&(0,i.jsxs)("div",{className:"fixed inset-0 z-[70]",onClick:()=>eZ(!1),children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-black/30"}),(0,i.jsx)("div",{className:"absolute top-16 right-4 w-80 max-w-[90vw] max-h-[80vh] overflow-y-auto rounded-xl shadow-2xl",style:{backgroundColor:"#fff"},onClick:e=>e.stopPropagation(),children:(0,i.jsxs)("div",{style:{padding:"15px"},children:[(0,i.jsx)("button",{className:"md:hidden",onClick:()=>eZ(!1),style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"22px",cursor:"pointer",color:"#666",zIndex:10},children:"✕"}),(0,i.jsx)("div",{style:{textAlign:"center",borderBottom:"1px solid #e8eaed",paddingBottom:"10px",marginBottom:"15px"},children:(0,i.jsx)("img",{src:"https://www.fortodo.com/images/logos/int/fortodo-255x45.png",alt:"Fortodo",style:{height:"20px",margin:"0 auto"}})}),(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"2px",fontSize:"13px"},children:[(0,i.jsxs)("div",{style:{display:"flex",gap:"12px"}
1,children:[(0,i.jsxs)("span",{style:{position:"relative",cursor:"pointer",color:"Kid"===eX?"#e91e63":"#4054a1",fontWeight:"Kid"===eX?"700":"400"},onClick:()=>{if(!ea){e0("".concat(Y("hp_signInToView")," ").concat(Y("hp_kids")," ").concat(Y("hp_content")));return}if("Kid"===ei){e0("");return}e$("Kid"),e0("")},children:[(0,i.jsx)("img",{src:"/r1.g330.com/balloons56x60.png",alt:"",style:{position:"absolute",top:"-18px",left:"14px",height:"20px",animation:"balloonSway 2s ease-in-out infinite"}}),Y("hp_kids")]}),(0,i.jsx)("span",{style:{cursor:"pointer",color:"Teen"===eX?"#9c27b0":"#4054a1",fontWeight:"Teen"===eX?"700":"400"},onClick:()=>{if(!ea){e0("".concat(Y("hp_signInToView")," ").concat(Y("hp_teens")," ").concat(Y("hp_content")));return}if("Kid"===ei){e0("Ask a parent to switch");return}e$("Teen"),e0("")},children:Y("hp_teens")})]}),(0,i.jsxs)("div",{style:{display:"flex",gap:"12px"},children:[(0,i.jsx)("span",{style:{cursor:"pointer",color:ea&&"Adult"===eX?"#1976d2":"#4054a1",fontWeight:ea&&"Adult"===eX?"700":"400"},onClick:()=>{if(!ea){e0("".concat(Y("hp_signInToView")," ").concat(Y("hp_adults")," ").concat(Y("hp_content")));return}if("Kid"===ei){e0("Ask a parent to switch");return}e$("Adult"),e0("")},children:Y("hp_adults")}),(0,i.jsx)("span",{style:{cursor:"pointer",color:"Business"===eX?"#795548":"#4054a1",fontWeight:"Business"===eX?"700":"400"},onClick:()=>{if(!ea){e0("".concat(Y("hp_signInToView")," ").concat(Y("hp_business")," ").concat(Y("hp_content")));return}if("Kid"===ei){e0("Ask a parent to switch");return}e$("Business"),e0("")},children:Y("hp_business")})]})]}),(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:eQ?"4px":"12px",fontSize:"10px",color:"#999"},children:[(0,i.jsxs)("div",{style:{display:"flex",gap:"12px"},children:[(0,i.jsx)("span",{style:{minWidth:"30px",textAlign:"center"},children:"< 13"}),(0,i.jsx)("span",{children:"13 - 17"})]}),(0,i.jsxs)("div",{style:{display:"flex",gap:"12px"},children:[(0,i.jsx)("span",{style:{minWidth:"30px",textAlign:"center",paddingRight:"15px"},children:"17 +"}),(0,i.jsx)("span",{style:{minWidth:"30px",textAlign:"center",paddingRight:"20px"},children:"\xa0\xa0$$$"})]})]}),eQ&&(0,i.jsxs)("div",{style:{textAlign:"center",fontSize:"11px",color:"#dc2626",marginBottom:"10px"},children:[eQ," — ",(0,i.jsx)("a",{href:"/signin",style:{color:"#2563eb",textDecoration:"underline"},children:"Sign in"})]}),(0,i.jsx)("style",{children:"@keyframes balloonSway { 0%, 100% { transform: translateX(-50%) rotate(-5deg); } 50% { transform: translateX(-50%) rotate(5deg); } }"}),(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"center",gap:"15px",marginBottom:"15px",fontSize:"10pt"},children:[(0,i.jsx)("a",{href:"https://about.fortodo.com/products/",target:"_top",style:{color:"#4054a1"},children:"Products"}),(0,i.jsx)("a",{href:"/services",style:{color:"#4054a1"},children:Y("hp_services")}),(0,i.jsx)("a",{href:"https://about.fortodo.com/all",target:"_top",style:{color:"#4054a1"},children:Y("hp_more")}),(0,i.jsx)("span",{style:{color:"#4054a1",fontWeight:"bold",cursor:"pointer"},onClick:()=>{var e;null===(e=document.getElementById("set-mode-section"))||void 0===e||e.scrollIntoView({behavior:"smooth"})},children:Y("hp_setMode")})]}),(0,i.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px",marginBottom:"15px",fontSize:"11px",textAlign:"center"},children:[(0,i.jsx)("a",{href:"https://www.fortodo.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"0 0 calc(33.33% - 8px)",overflow:"hidden",opacity:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/logos/icon-logo.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"Fortodo"]})}),(0,i.jsx)("a",{href:ea?"https://myaccount.fortodo.com":"https://accounts.fortodo.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"Kid"===eX&&ea?"0 0 0":"0 0 calc(33.33% - 8px)",width:"Kid"===eX&&ea?"0":"auto",padding:"Kid"===eX&&ea?"0":void 0,overflow:"hidden",opacity:"Kid"===eX&&ea?0:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:ea&&eg?eg:"https://www.fortodo.com/images/circled-avatars-in-circle.png",alt:"",style:{height:"35px",width:"35px",margin:"0 auto",borderRadius:"50%",objectFit:"cover"}}),(0,i.jsx)("br",{}),ea?"My Account":"Accounts"]})}),(0,i.jsx)("a",{href:"https://app.fortodo.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"0 0 calc(33.33% - 8px)",overflow:"hidden",opacity:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/fortodo-app/fortodo-app-iphone-14-2.png",alt:"",style:{height:"35px",margin:"0 auto",borderRadius:"5px"}}),(0,i.jsx)("br",{}),"App"]})}),(0,i.jsx)("a",{href:"https://www.bagofgoodies.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"Kid"===eX&&ea?"0 0 0":"0 0 calc(33.33% - 8px)",width:"Kid"===eX&&ea?"0":"auto",padding:"Kid"===eX&&ea?"0":void 0,overflow:"hidden",opacity:"Kid"===eX&&ea?0:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/Bag-of-goodies/bagofgoodies-bag.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"Bag of goodies"]})}),(0,i.jsx)("a",{href:"https://www.browseon.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"Kid"===eX&&ea?"0 0 0":"0 0 calc(33.33% - 8px)",width:"Kid"===eX&&ea?"0":"auto",padding:"Kid"===eX&&ea?"0":void 0,overflow:"hidden",opacity:"Kid"===eX&&ea?0:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/sh
1ared/nscroll/cl/browseon.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"Browseon"]})}),(0,i.jsx)("a",{href:"https://www.doerservices.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"Kid"===eX&&ea?"0 0 0":"0 0 calc(33.33% - 8px)",width:"Kid"===eX&&ea?"0":"auto",padding:"Kid"===eX&&ea?"0":void 0,overflow:"hidden",opacity:"Kid"===eX&&ea?0:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"/images/icons/doerservices-doers.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"Doer Services"]})}),(0,i.jsx)("a",{href:"https://pay.fortodo.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"Kid"!==eX||ea?"0 0 calc(33.33% - 8px)":"0 0 0",width:"Kid"!==eX||ea?"auto":"0",padding:"Kid"!==eX||ea?void 0:"0",overflow:"hidden",opacity:"Kid"!==eX||ea?1:0},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/FPay/fortodopay.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"Pay"]})}),(0,i.jsx)("a",{href:"https://news.fortodo.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"Kid"!==eX||ea?"0 0 calc(33.33% - 8px)":"0 0 0",width:"Kid"!==eX||ea?"auto":"0",padding:"Kid"!==eX||ea?void 0:"0",overflow:"hidden",opacity:"Kid"!==eX||ea?1:0},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"/images/icons/news.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"News"]})}),(0,i.jsx)("a",{href:"https://search.fortodo.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"0 0 calc(33.33% - 8px)",overflow:"hidden",opacity:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"/images/icons/search.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"Search"]})}),(0,i.jsx)("a",{href:"https://mail.fortodo.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"0 0 calc(33.33% - 8px)",overflow:"hidden",opacity:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"https://email.fortodo.com/images/fortodomail.png",alt:"",style:{height:"65px",margin:"-5px 0px -25px 13px"}}),(0,i.jsx)("br",{}),"Mail"]})}),(0,i.jsx)("a",{href:"/reserve-it",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"0 0 calc(33.33% - 8px)",overflow:"hidden",opacity:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"/images/f-rate-review.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"Reserve It"]})}),(0,i.jsx)("button",{onClick:()=>{eF(!0),eU("postEvents")},style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"0 0 calc(33.33% - 8px)",overflow:"hidden",opacity:1,background:"none",border:"none",cursor:"pointer",textAlign:"center"},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"/images/fortodo-recommends.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"Post it"]})}),ea&&(0,i.jsx)("a",{href:"/events/calendar",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"0 0 calc(33.33% - 8px)",overflow:"hidden",opacity:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"/images/calendar.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"Calendar"]})}),ea&&(null==Q?void 0:Q.handle)&&!Q.handle.startsWith("user")&&"Kid"!==eX&&(0,i.jsx)("a",{href:"https://www.fortodo.com/s/".concat(Q.handle.charAt(0).toUpperCase()+Q.handle.slice(1).toLowerCase()),target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"0 0 calc(33.33% - 8px)"},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/web.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"My Sites"]})}),(0,i.jsx)("a",{href:ea&&(null==Q?void 0:Q.handle)&&!Q.handle.startsWith("user")?"https://www.worldinfobook.com/wiki/".concat(encodeURIComponent((Q.userName||Q.handle).replace(/\s+/g,"_"))):"https://www.worldinfobook.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"0 0 calc(33.33% - 8px)",overflow:"hidden",opacity:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/World-book.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),ea&&(null==Q?void 0:Q.handle)&&!Q.handle.startsWith("user")?"My Book":"World Info Book"]})}),tV&&(0,i.jsx)("a",{href:"https://www.fortodo.com/forever",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"0 0 calc(33.33% - 8px)",overflow:"hidden",opacity:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("svg",{viewBox:"-10 -5 140 70",width:"35",height:"35",xmlns:"http://www.w3.org/2000/svg",style:{display:"block",margin:"0 auto"},children:(0,i.jsx)("path",{d:"M60 30 C60 30 48 10 30 10 C13 10 0 19 0 30 C0 41 13 50 30 50 C48 50 60 30 60 30 Z M60 30 C60 30 72 10 90 10 C107 10 120 19 120 30 C120 41 107 50 90 50 C72 50 60 30 60 30 Z",fill:"none",stroke:"#7c3aed",strokeWidth:"8",strokeLinecap:"round"})}),"Forever"]})}),!ea&&(0,i.jsx)("a",{href:"/signin",className:"signin-more-btn",style:{flex:"0 0 calc(66.66% - 4px)",display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 16px",border:"1px solid #dadce0",borderRadius:"20px",background:"transparent",color:"#4054a1",fontSize:"14px",textDecoration:"none",cursor:"pointer",transition:"all 0.3s ease"},children:Y("hp_signInToSeeMore")}),(0,i.jsx)("style",{children:".signin-more-btn:hover { background-color: rgba(64, 84, 161, 0.06) !important; }"})]}),(0,i.jsx)("div",{style:{borderTop:"1px solid #e8eaed",paddingTop:"12px",marginBottom:"15px"},children:(0,i.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px",fontSize:"11px",textAlign:"center"},children:[(0,i.jsx)("a",{href:"https://life.fortodo.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"0 0 calc(33.33% - 8px)",overflow:"hidden",opacity:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"/images/users-avatar.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"Life"]})}),(0,i.jsx)("a",{href:"https://business.fortodo.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"0 0 calc(33.33% - 8px)",overflow:"hidden",opacity:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"/images/retail-130x60.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"Business"]})}),(0,i.jsx)("a",{href:"https://shopping.fortodo.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"Kid"===eX&&ea?"0 0 0":"0 0 calc(33.33% - 8px)",width:"Kid"===eX&&ea?"0":"auto",padding:"Kid"===eX&&ea?"0":void 0,overflow:"hidden",opacity:"Kid"===eX&&ea?0:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/cart-goodies-empty-30-off.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"Shopping"]})}),(0,i.jsx)("a",{href:"https://money.fortodo.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"Kid"===eX&&ea?"0 0 0":"0 0 calc(33.33% - 8px)",width:"Kid"===eX&&ea?"0":"auto",padding:"Kid"===eX&&ea?"0":void 0,overflow:"hidden",opacity:"Kid"===eX&&ea?0:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/Currency/money.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"Money"]})}),(0,i.jsx)("a",{href:"/trading",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"Kid"!==eX||ea?"0 0 calc(33.33% - 8px)":"0 0 0",width:"Kid"!==eX||ea?"auto":"0",padding:"Kid"!==eX||ea?void 0:"0",overflow:"hidden",opacity:"Kid"!==eX||ea?1:0},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/sh
1ared/35/services/finance.png",alt:"",style:{height:"35px",margin:"0 auto"},onError:e=>{e.target.src="https://www.fortodo.com/images/shared/35/services/finance.png"}}),(0,i.jsx)("br",{}),"Trading"]})}),(0,i.jsx)("a",{href:"/tv-audio",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"Kid"!==eX||ea?"0 0 calc(33.33% - 8px)":"0 0 0",width:"Kid"!==eX||ea?"auto":"0",padding:"Kid"!==eX||ea?void 0:"0",overflow:"hidden",opacity:"Kid"!==eX||ea?1:0},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/icons/browseon-icon-logo-924-644.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"TV / Audio"]})}),(0,i.jsx)("a",{href:"https://work.fortodo.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"0 0 calc(33.33% - 8px)",overflow:"hidden",opacity:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/shared/35/services/work.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"Work",tO?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("br",{}),(0,i.jsx)("span",{style:{fontSize:"9px",color:"#16a34a",fontWeight:"600"},children:"Active"})]}):""]})}),(0,i.jsx)("a",{href:"https://support.fortodo.com",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"0 0 calc(33.33% - 8px)",overflow:"hidden",opacity:1},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/35/businessicon-55x.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"Support"]})}),(0,i.jsx)("a",{href:"https://www.fortodo.com/travel/",target:"_top",style:{color:"#333",textDecoration:"none",transition:"all 0.6s ease",flex:"Kid"!==eX||ea?"0 0 calc(33.33% - 8px)":"0 0 0",width:"Kid"!==eX||ea?"auto":"0",padding:"Kid"!==eX||ea?void 0:"0",overflow:"hidden",opacity:"Kid"!==eX||ea?1:0},children:(0,i.jsxs)("div",{style:{padding:"8px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/plane-68x30.png",alt:"",style:{height:"35px",margin:"0 auto"}}),(0,i.jsx)("br",{}),"Travel"]})})]})}),(0,i.jsxs)("div",{id:"set-mode-section",style:{borderTop:"1px solid #e8eaed",paddingTop:"12px"},children:[(0,i.jsx)("p",{style:{fontSize:"13pt",fontWeight:700,marginBottom:"10px",color:"#333"},children:"Theme"}),(0,i.jsxs)("p",{style:{fontSize:"12pt",marginBottom:"8px",color:"#333"},children:[(0,i.jsx)("strong",{children:"Set Experience"})," — ",(0,i.jsx)("span",{style:{color:"#0c9034"},children:"Status:"})," ",(0,i.jsx)("span",{style:{fontWeight:600},children:e3})]}),(0,i.jsx)("p",{style:{fontSize:"11px",color:"#666",marginBottom:"6px"},children:"Products"}),(0,i.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"6px",marginBottom:"12px"},children:[{name:"Search",img:"https://www.fortodo.com/images/icons/search.png",desc:"Search on load"},{name:"Transportation",img:"https://www.fortodo.com/images/cars.png",desc:"Rides on load"}].map(e=>(0,i.jsxs)("button",{onClick:()=>{e5(e.name),ta("Experience: ".concat(e.name)),window.innerWidth<770&&eZ(!1)},style:{padding:"10px 8px",border:e3===e.name?"2px solid #0c9034":"1px solid #ccc",borderRadius:"8px",background:e3===e.name?"#f0fdf4":"#f8f9fa",cursor:"pointer",textAlign:"center",fontSize:"11px",fontWeight:600,color:"#333"},children:[(0,i.jsx)("img",{src:e.img,alt:e.name,style:{height:"28px",margin:"0 auto 4px",display:"block",objectFit:"contain"}}),e.name,(0,i.jsx)("div",{style:{fontSize:"9px",color:"#888",fontWeight:400},children:e.desc})]},e.name))}),(0,i.jsx)("p",{style:{fontSize:"11px",color:"#666",marginBottom:"6px"},children:"City / Location"}),(0,i.jsx)("input",{type:"text",value:ts,onChange:e=>tu(e.target.value),placeholder:"Search city...",style:{width:"100%",padding:"8px 10px",border:"1px solid #ddd",borderRadius:"6px",fontSize:"13px",boxSizing:"border-box",outline:"none",marginBottom:"6px"}}),tx&&(0,i.jsx)("div",{style:{padding:"6px",textAlign:"center",color:"#888",fontSize:"12px"},children:"Searching..."}),!tx&&tc.length>0&&(0,i.jsx)("div",{style:{marginBottom:"8px",maxHeight:"120px",overflowY:"auto",border:"1px solid #eee",borderRadius:"6px"},children:tc.map(e=>(0,i.jsxs)("button",{onClick:()=>{$(e.display,e.key),ta("Experience: ".concat(e.display)),td(""),tp([]),window.innerWidth<770&&eZ(!1)},style:{width:"100%",padding:"8px 10px",textAlign:"left",background:"none",border:"none",borderBottom:"1px solid #f0f
10f0",cursor:"pointer",fontSize:"13px",color:"#111"},children:["\uD83D\uDCCD ",e.display]},e.key))}),(0,i.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",marginBottom:"12px"},children:[{name:"None",img:null},{name:"Default",img:"https://www.fortodo.com/images/bac/cities/paris/fortodo-local%20centers-montage-headers.png"},{name:"Detroit",img:"https://www.fortodo.com/images/bac/cities/detroit/fortodo-local%20centers-montage-headers.png"},{name:"New York",img:"https://www.fortodo.com/images/bac/cities/newyork/fortodo-local%20centers-montage-headers.png"},{name:"Paris",img:"https://www.fortodo.com/images/bac/cities/paris/fortodo-local%20centers-montage-headers.png"},{name:"Silicon Valley",img:"https://www.fortodo.com/images/bac/cities/paloalto/fortodo-local%20centers-montage-headers.png"},{name:"San Francisco",img:"https://www.fortodo.com/images/bac/cities/sanfrancisco/fortodo-local%20centers-montage-headers.png"},{name:"More",img:null}].map(e=>(0,i.jsxs)("button",{onClick:t=>{t.stopPropagation(),"More"===e.name?e7(!0):(e5(e.name),ta("Experience: ".concat(e.name)),window.innerWidth<770&&eZ(!1))},style:{position:"relative",padding:0,border:e3===e.name?"2px solid #0c9034":"1px solid #ccc",borderRadius:"6px",overflow:"hidden",cursor:"pointer",height:"48px",backgroundColor:"#f0f0f0"},children:[e.img&&(0,i.jsx)("img",{src:e.img,alt:e.name,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}}),(0,i.jsx)("span",{style:{position:"relative",zIndex:1,fontSize:"10px",fontWeight:e.img?600:void 0,textShadow:e.img?"0 1px 3px rgba(0,0,0,0.8)":void 0,padding:"2px 4px",display:"block",textAlign:"center",lineHeight:"48px",backgroundColor:e.img?"rgba(0,0,0,0.3)":"transparent",color:e.img?"#fff":"#000"},children:e.name})]},e.name))}),(0,i.jsxs)("p",{style:{fontSize:"12pt",marginBottom:"8px",color:"#333"},children:[(0,i.jsx)("strong",{children:"Set Background"})," — ",(0,i.jsx)("span",{style:{color:"#0c9034"},children:"Status:"})," ",(0,i.jsx)("span",{style:{fontWeight:600},children:e1})]}),(0,i.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px"},children:m.np.map(e=>(0,i.jsx)("button",{onClick:()=>
1{(0,m.Dc)(e.name),e2(e.name),ta("Background: ".concat(e.name)),window.innerWidth<770&&eZ(!1),"None"===e.name?(ix(null),(null==ep?void 0:ep.sub)&&iw({theme:e.name,background:"none"})):(null==ep?void 0:ep.sub)&&iw({theme:e.name})},style:{padding:"8px 4px",border:e1===e.name?"2px solid #0c9034":"1px solid #ccc",borderRadius:"6px",backgroundColor:e.color,color:["Dark","Dim","Blue","Default","Red","Black","None"].includes(e.name)?"None"===e.name?"#000":"#fff":"#000",fontSize:"11px",cursor:"pointer"},children:e.name},e.name))}),ea&&(0,i.jsxs)("div",{style:{marginTop:"12px",borderTop:"1px solid #e8eaed",paddingTop:"12px"},children:[(0,i.jsx)(j.ZP,{onSave:async e=>{await iw({background:e||"none"})}}),(0,i.jsxs)("div",{style:{marginTop:"10px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsx)("label",{style:{fontSize:"12px",color:"#333",whiteSpace:"nowrap"},children:"Background Opacity:"}),(0,i.jsx)("input",{type:"range",min:"0",max:"0.9",step:"0.1",value:ig,onChange:e=>{let t=parseFloat(e.target.value);ih(t),localStorage.setItem("fortodo-bg-opacity",String(t)),(null==ep?void 0:ep.sub)&&iw({bgOpacity:t})},style:{flex:1,cursor:"pointer"}}),(0,i.jsxs)("span",{style:{fontSize:"11px",color:"#666",minWidth:"30px"},children:[Math.round(100*ig),"%"]})]}),(0,i.jsxs)("div",{style:{marginTop:"10px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsx)("input",{type:"checkbox",checked:ok,onChange:e=>{oD(e.target.checked),localStorage.setItem("fortodo-hide-tagline",String(e.target.checked)),iw({hideTagline:e.target.checked})}}),(0,i.jsx)("label",{style:{fontSize:"12px",color:"#333"},children:'Hide "From Search to Done" tagline'})]}),(0,i.jsxs)("div",{style:{marginTop:"6px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsx)("input",{type:"checkbox",checked:ia,onChange:e=>{is(e.target.checked),localStorage.setItem("fortodo-hide-header-logo",String(e.target.checked)),iw({hideHeaderLogo:e.target.checked})}}),(0,i.jsx)("label",{style:{fontSize:"12px",color:"#333"},children:"Hide Fortodo logo in the Header"})]}),(0,i.jsxs)("div",{style:{marginTop:"6px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsx)("input",{type:"checkbox",checked:oC,onChange:e=>{oI(e.target.checked),ik(!0),localStorage.setItem("fortodo-keep-logo",String(e.target.checked)),iw({keepLogo:e.target.checked})}}),(0,i.jsx)("label",{style:{fontSize:"12px",color:"#333"},children:"Keep Fortodo logo in the Body visible"})]}),(0,i.jsxs)("div",{style:{marginTop:"6px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsx)("input",{type:"checkbox",checked:ir,onChange:e=>{il(e.target.checked),localStorage.setItem("fortodo-hide-logo",String(e.target.checked)),iw({hideLogo:e.target.checked})}}),(0,i.jsx)("label",{style:{fontSize:"12px",color:"#333"},children:"Hide Fortodo logo in the Body"})]}),(0,i.jsxs)("div",{style:{marginTop:"6px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsx)("input",{type:"checkbox",checked:oT,onChange:e=>{o_(e.target.checked),localStorage.setItem("fortodo-hide-search",String(e.target.checked)),iw({hideSearch:e.target.checked})}}),(0,i.jsx)("label",{style:{fontSize:"12px",color:"#333"},children:"Hide Search"})]}),(0,i.jsxs)("div",{style:{marginTop:"6px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsx)("input",{type:"checkbox",checked:ie,onChange:e=>{it(e.target.checked),localStorage.setItem("fortodo-hide-order-status",String(e.target.checked)),iw({hideOrderStatus:e.target.checked})}}),(0,i.jsx)("label",{style:{fontSize:"12px",color:"#333"},children:"Hide Order Status"})]}),(0,i.jsxs)("div",{style:{marginTop:"6px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsx)("input",{type:"checkbox",checked:io,onChange:e=>{ii(e.target.checked),localStorage.setItem("fortodo-hide-sections",String(e.target.checked)),iw({hideSections:e.target.checked})}}),(0,i.jsx)("label",{style:{fontSize:"12px",color:"#333"},children:"Hide Page Sections"})]}),(0,i.jsxs)("div",{style:{marginTop:"6px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsx)("input",{type:"checkbox",checked:oz,onChange:e=>{oB(e.target.checked),localStorage.setItem("fortodo-hide-info-banner",String(e.target.checked)),iw({hideInfoBanner:e.target.checked})}}),(0,i.jsx)("label",{style:{fontSize:"12px",color:"#333"},children:"Hide Info Banner"})]}),(0,i.jsxs)("div",{style:{marginTop:"6px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsx)("input",{type:"checkbox",checked:oW,onChange:e=>{oA(e.target.checked),localStorage.setItem("fortodo-hide-alert-banner",String(e.target.checked)),iw({hideAlertBanner:e.target.checked})}}),(0,i.jsx)("label",{style:{fontSize:"12px",color:"#333"},children:"Hide Alert Banner"})]}),(0,i.jsxs)("div",{style:{marginTop:"6px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsx)("input",{type:"checkbox",checked:oF,onChange:e=>{oL(e.target.checked),localStorage.setItem("fortodo-hide-countdown-banner",String(e.target.checked)),iw({hideCountdownBanner:e.target.checked})}}),(0,i.jsx)("label",{style:{fontSize:"12px",color:"#333"},children:"Hide Countdown Banner"})]}),(0,i.jsxs)("div",{style:{marginTop:"6px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsx)("input",{type:"checkbox",checked:o7,onChange:e=>{o9(e.target.checked),localStorage.setItem("fortodo-hide-doodle",String(e.target.checked)),iw({hideDoodle:e.target.checked})}}),(0,i.jsx)("label",{style:{fontSize:"12px",color:"#333"},children:"Hide Doodle"})]}),(0,i.jsxs)("div",{style:{marginTop:"10px",paddingTop:"10px",borderTop:"1px solid #e8eaed"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"10px"},children:[(0,i.jsx)("span",{style:{fontSize:"12px",color:"#333"},children:"\uD83C\uDFE0 Homepage:"}),(0,i.jsxs)("select",{value:localStorage.getItem("fortodo-homePage")||"/",onChange:async e=>{let t=e.target.value;localStorage.setItem("fortodo-homePage",t),await iw({homePage:t})},style:{border:"1px solid #ddd",borderRadius:"6px",padding:"4px 8px",fontSize:"12px",color:"#333",cursor:"pointer"},children:[(0,i.jsx)("option",{value:"/",children:"Fortodo Home"}),tU&&(0,i.jsxs)("option",{value:"/s/".concat(tU),children:["My Page (/s/",tU,")"]}),(0,i.jsx)("option",{value:"/dashboard",children:"Dashboard"}),(0,i.jsx)("option",{value:"/presences",children:"Presences"}),(0,i.jsx)("option",{value:"/money",children:"Money"})]})]}),(0,i.jsxs)("div",{style:{marginTop:"10px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsx)("span",{style:{fontSize:"12px",color:"#333"},children:"\uD83C\uDF10 Language:"}),(0,i.jsx)("select",{value:q,onChange:async e=>{let t=e.target.value;localStorage.setItem("fortodo-language",t),document.cookie="fortodo-language=".concat(t,";domain=.fortodo.com;path=/;max-age=31536000;SameSite=Lax"),(null==ep?void 0:ep.sub)&&await (0,p.S)("/api/user-preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:ep.sub,preferences:{language:t}})}).catch(()=>{}),window.location.reload()},style:{border:"1px solid #ddd",borderRadius:"6px",padding:"4px 8px",fontSize:"12px",color:"#333",cursor:"pointer"},children:[{code:"en",name:"English"},{code:"es",name:"Espa\xf1ol"},{code:"fr",name:"Fran\xe7ais"},{code:"zh",name:"中文"},{code:"ja",name:"日本語"},{code:"de",name:"Deutsch"},{code:"hi",name:"हिन्दी"},{code:"ar",name:"العربية"},{code:"pt",name:"Portugu\xeas"},{code:"ru",name:"Русский"},{code:"ko",name:"한국어"},{code:"it",name:"Italiano"},{code:"pl",name:"Polski"},{code:"nl",name:"Nederlands"},{code:"tr",name:"T\xfcrk\xe7e"},{code:"th",name:"ไทย"},{code:"vi",name:"Tiếng Việt"},{code:"id",name:"Bahasa Indonesia"},{code:"uk",name:"Українська"},{code:"bn",name:"বাংলা"}].map(e=>(0,i.jsx)("option",{value:e.code,children:e.name},e.code))})]}),(0,i.jsx)("a",{href:"https://myaccount.fortodo.com/preferences",target:"_top",style:{fontSize:"12px",color:"#0c9034",textDecoration:"none",fontWeight:600},children:"⚙️ Manage All Preferences →"})]})]})]})]})})]}),!er&&!ea&&ow.filter(e=>{if("footer-left"!==e.placement||!1===e.isActive)return!1;{let t=window.innerWidth<768;if(t&&!1===e.showOnMobile||!t&&!1===e.showOnWeb)return!1}return!0}).length>0&&(0,i.jsx)("div",{style:{position:"fixed",bottom:"70px",left:"15px",zIndex:39,display:"flex",flexDirection:"column",gap:"6px",alignItems:"flex-start",opacity:tv||ty?0:1,pointerEvents:tv||ty?"none":"auto",transition:"opacity 0.3s ease"},children:ow.filter(e=>"footer-left"===e.placement&&!1!==e.isActive).map(e=>(0,i.jsxs)("div",{children:[e.message&&(0,i.jsx)("div",{style:{fontSize:"".concat(e.subtitleSize||11,"px"),color:e.subtitleColor||"#666",fontWeight:e.subtitleWeight||"400",marginBottom:"3px",textAlign:e.subt
1itleAlign||"left"},children:e.message}),e.linkUrl?(0,i.jsx)("a",{href:e.linkUrl,style:{display:"inline-block",textDecoration:"none",padding:"6px 14px",borderRadius:"".concat(e.borderRadius||8,"px"),backgroundColor:e.bgColor||"#1d4ed8",color:e.textColor||"#fff",fontSize:"".concat(e.fontSize||13,"px")},children:e.title}):(0,i.jsx)("span",{style:{display:"inline-block",padding:"6px 14px",borderRadius:"".concat(e.borderRadius||8,"px"),backgroundColor:e.bgColor||"#1d4ed8",color:e.textColor||"#fff",fontSize:"".concat(e.fontSize||13,"px")},children:e.title}),e.linkText&&(0,i.jsx)("div",{style:{fontSize:"".concat(Math.max(Number(e.fontSize||13)-2,10),"px"),color:e.linkTextColor||"#666",marginTop:"3px"},children:e.linkUrl?(0,i.jsx)("a",{href:e.linkUrl,style:{color:e.linkTextColor||"#666",textDecoration:!1!==e.linkTextUnderline?"underline":"none"},children:e.linkText}):e.linkText})]},e.id))}),!er&&!ea&&!tk&&(0,i.jsxs)("div",{style:{position:"fixed",bottom:"70px",left:"25px",zIndex:39,display:"flex",flexDirection:"column",gap:"6px",alignItems:"flex-start",opacity:tw?1:0,pointerEvents:tw?"auto":"none",transition:"opacity 0.3s ease"},children:[(0,i.jsxs)("a",{href:"/forkids",style:{fontSize:"12px",color:"rgb(22,163,74)",fontWeight:"600",textDecoration:"none"},children:["\uD83E\uDDD2 ",Y("hp_kids")]}),(0,i.jsxs)("a",{href:"/forteens",style:{fontSize:"12px",color:"rgb(124,58,237)",fontWeight:"600",textDecoration:"none"},children:["\uD83E\uDDD1 ",Y("hp_teens")]}),(0,i.jsxs)("a",{href:"/foradults",style:{fontSize:"12px",color:"rgb(128,0,128)",fontWeight:"600",textDecoration:"none"},children:["\uD83D\uDD1E ",Y("hp_adults")]})]}),!er&&(!ea||i3)&&(0,i.jsxs)("div",{style:{position:"absolute",top:ea?"105px":"170px",right:"10px",zIndex:39,display:"flex",alignItems:"center",gap:"20px"},children:[(0,i.jsx)(T,{}),!(iZ&&!oT)&&(0,i.jsx)("button",{onClick:()=>{oR(e=>!e),ii(e=>!e)},title:oE?"Hide Search":"Search",style:{position:"relative",top:"10px",background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,i.jsxs)("svg",{width:20,height:20,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,i.jsx)("circle",{cx:11,cy:11,r:8}),(0,i.jsx)("path",{d:"M21 21l-4.35-4.35"})]})}),(0,i.jsx)(b.i,{})]}),(0,i.jsx)("div",{style:{position:"fixed",bottom:"70px",right:"25px",zIndex:39},children:(0,i.jsx)("button",{onClick:()=>{let e=!ty;tb(e),e?setTimeout(()=>{var e;null===(e=document.getElementById("ecosystem-section"))||void 0===e||e.scrollIntoView({behavior:"smooth"})},100):window.scrollTo({top:0,behavior:"smooth"})},style:{width:"44px",height:"44px",borderRadius:"50%",border:"2px solid #999",backgroundColor:"rgba(255,255,255,0.95)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 2px 6px rgba(0,0,0,0.15)",transition:"opacity 0.3s ease, transform 0.3s ease",transform:ty?"rotate(180deg)":"rotate(0deg)",opacity:tv||ty?1:0,pointerEvents:tv||ty?"auto":"none"},title:"Our Ecosystem",children:(0,i.jsx)("svg",{width:22,height:22,viewBox:"0 0 24 24",fill:"none",stroke:"#333",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",children:(0,i.jsx)("path",{d:"M6 9l6 6 6-6"})})})}),(0,i.jsx)("div",{style:{position:"fixed",bottom:"70px",right:"25px",zIndex:39},children:(0,i.jsx)("button",{onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),style:{width:"44px",height:"44px",borderRadius:"50%",border:"2px solid #999",backgroundColor:"rgba(255,255,255,0.95)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 2px 6px rgba(0,0,0,0.15)",opacity:tv?1:0,pointerEvents:tv?"auto":"none",transition:"opacity 0.3s ease"},title:"Scroll to top",children:(0,i.jsx)("svg",{width:22,height:22,viewBox:"0 0 24 24",fill:"none",stroke:"#333",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",children:(0,i.jsx)("path",{d:"M18 15l-6-6-6 6"})})})}),!er&&(0,i.jsxs)("footer",{style:{position:"fixed",bottom:"0",left:"0",right:"0",padding:"8px 15px",backgroundColor:"#f5f5f7",boxShadow:"7px -5px 10px 0 rgba(0,0,0,.1)",zIndex:40,fontSize:"13px",fontFamily:"Verdana,Arial,Helvetica,sans-serif"},children:[(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[(0,i.jsx)("span",{style:{color:"#70757a",cursor:"pointer"},onClick:()=>{eZ(!0),setTimeout(()=>{var e;null===(e=document.getElementById("set-mode-section"))||void 0===e||e.scrollIntoView({behavior:"smooth"})},100)},children:Y("hp_theme")}),(0,i.jsx)("span",{className:"hidden md:inline",style:{color:"#0c9034"},children:Y("hp_status")}),(0,i.jsxs)("span",{style:{color:"#1C204C",cursor:"pointer"},onClick:()=>{eZ(!0),setTimeout(()=>{var e;null===(e=document.getElementById("set-mode-section"))||void 0===e||e.scrollIntoView({behavior:"smooth"})},100)},children:[e1," \uD83C\uDFA8"]}),"None"!==e3&&(0,i.jsxs)("span",{className:"hidden md:inline",style:{color:"#1C204C",cursor:"pointer"},onClick:()=>{eZ(!0),setTimeout(()=>{var e;null===(e=document.getElementById("set-mode-section"))||void 0===e||e.scrollIntoView({behavior:"smooth"})},100)},children:["- ",e3," \uD83D\uDCCD"]}),(0,i.jsx)("a",{href:"/how-it-works",className:"hidden md:inline",style:{color:"#70757a",textDecoration:"none"},children:"How Fortodo Works"})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"15p
1x"},children:[(0,i.jsx)("span",{style:{color:"#70757a",cursor:"pointer"},onClick:()=>eG(!0),children:Y("hp_helpSupport")}),(0,i.jsx)("a",{href:"https://about.fortodo.com/legal",target:"_top",style:{color:"#70757a"},children:Y("hp_legal")})]})]}),(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"4px"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"15px"},children:[(0,i.jsx)("a",{href:"//ads.fortodo.com/",target:"_top",style:{color:"#70757a"},children:Y("hp_advertising")}),(0,i.jsx)("a",{href:"//business.fortodo.com/",target:"_top",style:{color:"#70757a"},children:Y("hp_business")}),(0,i.jsx)("span",{style:{color:"#70757a",cursor:"pointer"},onClick:()=>eO(!0),children:Y("hp_about")}),(0,i.jsx)("span",{className:"hidden md:inline",style:{fontSize:"12px",color:"#6e6e73"},children:"\xa9 For; to (do)"})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsx)("a",{href:"//www.fortodo.com/fortodo",target:"_top",style:{color:"#70757a"},children:"@fortodo"}),(0,i.jsx)("a",{href:"https://www.fortodo.com/",target:"_top",children:(0,i.jsx)("img",{src:"https://www.fortodo.com/images/f-40x37.png",alt:"Fortodo",style:{height:"22px"}})}),(0,i.jsx)("a",{href:"https://www.birri.com",target:"_top",className:"hidden md:inline",children:(0,i.jsx)("img",{src:"/images/birri2.png",alt:"Birri",style:{height:"25px"}})}),(0,i.jsx)("a",{href:"https://www.birri.com",target:"_top",children:(0,i.jsx)("img",{src:"/images/logos/group-shield.png",alt:"Group",style:{height:"25px"}})})]})]})]}),!ea&&(0,i.jsx)("style",{children:"nav.fixed.bottom-0 { display: none !important; }"}),(0,i.jsx)("style",{children:"@media (max-width: 1023px) { .order-status-banner { margin-top: 28px !important; } }"}),e8&&(0,i.jsx)("div",{className:"fixed inset-0 z-[80]",style:{backgroundColor:"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:"16px"},onClick:()=>{e7(!1),td(""),tp([])},children:(0,i.jsxs)("div",{style:{backgroundColor:"#fff",borderRadius:"16px",width:"100%",maxWidth:"420px",maxHeight:"80vh",overflowY:"auto",padding:"20px"},onClick:e=>e.stopPropagation(),children:[(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px"},children:[(0,i.jsx)("h2",{style:{fontSize:"18px",fontWeight:700,color:"#111"},children:"Select Experience"}),(0,i.jsx)("button",{onClick:()=>{e7(!1),td(""),tp([])},style:{background:"none",border:"none",fontSize:"22px",cursor:"pointer",color:"#666"},children:"✕"})]}
1),(0,i.jsx)("input",{autoFocus:!0,type:"text",value:ts,onChange:e=>tu(e.target.value),placeholder:"Search city or zip / postal code...",style:{width:"100%",padding:"10px 12px",border:"1px solid #ddd",borderRadius:"8px",fontSize:"14px",boxSizing:"border-box",outline:"none",marginBottom:"10px"}}),tx&&(0,i.jsx)("div",{style:{padding:"8px",textAlign:"center",color:"#888",fontSize:"13px"},children:"Searching..."}),!tx&&tc.length>0&&(0,i.jsx)("div",{style:{marginBottom:"12px",border:"1px solid #eee",borderRadius:"8px",overflow:"hidden"},children:tc.map(e=>(0,i.jsxs)("button",{onClick:()=>{$(e.display,e.key),ta("Experience: ".concat(e.display)),e7(!1),td(""),tp([])},style:{width:"100%",padding:"10px 12px",textAlign:"left",background:"none",border:"none",borderBottom:"1px solid #f0f0f0",cursor:"pointer",fontSize:"14px",color:"#111"},children:["\uD83D\uDCCD ",e.display]},e.key))}),(0,i.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"10px"},children:[{name:"None",img:null,desc:"No experience set"},{name:"Default",img:"https://www.fortodo.com/images/bac/cities/paris/fortodo-local%20centers-montage-headers.png",desc:"Fortodo default"},{name:"Detroit",img:"https://www.fortodo.com/images/bac/cities/detroit/fortodo-local%20centers-montage-headers.png",desc:"Detroit, MI"},{name:"New York",img:"https://www.fortodo.com/images/bac/cities/newyork/fortodo-local%20centers-montage-headers.png",desc:"New York, NY"},{name:"Paris",img:"https://www.fortodo.com/images/bac/cities/paris/fortodo-local%20centers-montage-headers.png",desc:"Paris, France"},{name:"Silicon Valley",img:"https://www.fortodo.com/images/bac/cities/paloalto/fortodo-local%20centers-montage-headers.png",desc:"Palo Alto, CA"},{name:"San Francisco",img:"https://www.fortodo.com/images/bac/cities/sanfrancisco/fortodo-local%20centers-montage-headers.png",desc:"San Francisco, CA"}].map(e=>(0,i.jsxs)("button",{onClick:()=>{e5(e.name),ta("Experience: ".concat(e.name)),e7(!1)},style:{position:"relative",border:e3===e.name?"2px solid #0c9034":"1px solid #ccc",borderRadius:"10px",overflow:"hidden",cursor:"pointer",height:"80px",backgroundColor:"#f0f0f0",padding:0},children:[e.img&&(0,i.jsx)("img",{src:e.img,alt:e.name,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}}),(0,i.jsxs)("div",{style:{position:"relative",zIndex:1,height:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-end",padding:"6px 8px",background:e.img?"linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%)":"none"},children:[(0,i.jsx)("div",{style:{fontSize:"13px",fontWeight:600,color:e.img?"#fff":"#111",textShadow:e.img?"0 1px 3px rgba(0,0,0,0.8)":"none"},children:e.name}),(0,i.jsx)("div",{style:{fontSize:"11px",color:e.img?"rgba(255,255,255,0.85)":"#666",textShadow:e.img?"0 1px 2px rgba(0,0,0,0.8)":"none"},children:e.desc})]})]},e.name))})]})}),(0,i.jsxs)("div",{className:"fixed inset-0 z-[60] transition-opacity duration-300 ".concat(eP?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:()=>eO(!1),children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-black/30"}),(0,i.jsx)("div",{className:"absolute top-0 left-0 h-full w-80 max-w-[85vw] overflow-y-auto shadow-xl transition-transform duration-300 ".concat(eP?"translate-x-0":"-translate-x-full"),style:{backgroundColor:"#ffffff"},onClick:e=>e.stopPropagation(),children:(0,i.jsxs)("div",{style:{padding:"20px"},children:[(0,i.jsx)("button",{onClick:()=>eO(!1),style:{float:"right",fontSize:"24px",background:"none",border:"none",cursor:"pointer",color:"#dc2626"},children:"✕"}),(0,i.jsx)("img",{src:"https://www.fortodo.com/images/logos/int/fortodo-255x45.png",alt:"Fortodo",style:{marginLeft:"10px",marginBottom:"10px"}}),(0,i.jsx)("p",{style:{textAlign:"center",fontSize:"14px",color:"#666"},children:"Global"}),(0,i.jsxs)("div",{style:{textAlign:"center",padding:"10px"},children:[(0,i.jsx)("img",{src:"https://www.fortodo.com/images/logos/icon-logos/fortodo-pun-logo-1024x.png",alt:"Fortodo Logo",style:{width:"150px",margin:"0 auto"}}),(0,i.jsx)("p",{style:{fontSize:"10pt",color:"#666",marginTop:"5px"},children:"Fortodo Logo | Icon"})]}),(0,i.jsx)("table",{style:{width:"100%",fontSize:"10pt",marginTop:"10px",border:"1px solid #a2a9b1",borderSpacing:"3px",backgroundColor:"#f8f9fa"},children:(0,i.jsxs)("tbody",{children:[(0,i.jsxs)("tr",{children:[(0,i.jsxs)("td",{style:{padding:"5px",verticalAlign:"top",color:"#333"},children:["Headquarters",(0,i.jsx)("br",{}),"- None"]}),(0,i.jsxs)("td",{style:{padding:"5px",verticalAlign:"top",color:"#333"},children:["For; to (do) is",(0,i.jsx)("br",{}),"a Decentralized;",(0,i.jsx)("br",{}),"Remote-first Entity"]})]}),(0,i.jsxs)("tr",{children:[(0,i.jsxs)("td",{style:{padding:"5px",verticalAlign:"top",color:"#333"},children:[(0,i.jsx)("a",{href:"https://about.fortodo.com/names-and-logos",target:"_top",style:{color:"#4054a1"},children:"Name"}),(0,i.jsx)("br",{}),"{"," Logo ","}"]}),(0,i.jsxs)("td",{style:{padding:"5px",verticalAlign:"top",color:"#333"},children:["Fortodo",(0,i.jsx)("br",{}),"{"," For; to (do) ","}"]})]})]})}
1),(0,i.jsx)("div",{style:{textAlign:"center",marginTop:"15px"},children:(0,i.jsx)("a",{href:"https://about.fortodo.com/",target:"_top",style:{fontSize:"13pt",color:"#4054a1"},children:"About Fortodo"})}),(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"center",gap:"20px",marginTop:"15px",flexWrap:"wrap"},children:[(0,i.jsx)("a",{href:"https://about.fortodo.com/overview/",target:"_top",style:{fontSize:"12pt",color:"#4054a1"},children:"Overview"}),(0,i.jsx)("a",{href:"https://about.fortodo.com/outline/",target:"_top",style:{fontSize:"12pt",color:"#4054a1"},children:"Outline"}),(0,i.jsx)("a",{href:"https://about.fortodo.com/history/",target:"_top",style:{fontSize:"12pt",color:"#4054a1"},children:"History"})]}),(0,i.jsx)("div",{style:{textAlign:"center",marginTop:"20px"},children:(0,i.jsxs)("a",{href:"https://2023-2025.fortodo.com/",target:"_top",style:{fontSize:"12pt",color:"#4054a1"},children:['"2023 - 2025"',(0,i.jsx)("br",{}),"Initiative"]})}),(0,i.jsx)("div",{style:{textAlign:"center",marginTop:"15px"},children:(0,i.jsx)("a",{href:"/locations",target:"_top",style:{fontSize:"12pt",color:"#4054a1"},children:"Service Locations"})}),(0,i.jsxs)("div",{style:{marginTop:"20px",fontSize:"10pt",textAlign:"center",color:"#666"},children:["v2.1.0",(0,i.jsx)("br",{}),"Est: 2017",(0,i.jsx)("br",{}),"In Stealth: ",(0,i.jsx)("a",{href:"https://2020-2022.fortodo.com/",target:"_top",style:{color:"#4054a1"},children:"2020 - 2022"})," | ",(0,i.jsx)("a",{href:"https://2023-2025.fortodo.com/",target:"_top",style:{color:"#4054a1"},children:"2023 - 2025"}),(0,i.jsx)("br",{}),"Status: ",(0,i.jsx)("a",{href:"https://myaccount.fortodo.com/",target:"_top",style:{color:"#4054a1"},children:"Out of Stealth - 2026"})]}),(0,i.jsxs)("div",{style:{marginTop:"15px",textAlign:"center"},children:[(0,i.jsx)("a",{href:"/how-it-works",style:{fontSize:"11pt",color:"#4054a1"},children:"How Fortodo Works"}),(0,i.jsx)("br",{}),(0,i.jsx)("a",{href:"/guide",style:{fontSize:"11pt",color:"#4054a1"},children:"How to... Guide"}),(0,i.jsx)("br",{}),(0,i.jsx)("a",{href:"/how-payouts-work",style:{fontSize:"11pt",color:"#4054a1"},children:"How Payouts Work"}),(0,i.jsx)("br",{}),(0,i.jsx)("a",{href:"/setup",style:{fontSize:"11pt",color:"#0a6f2f",fontWeight:"600"},children:"\uD83D\uDCCB Set-up Steps"})]}),(0,i.jsxs)("div",{style:{marginTop:"20px",textAlign:"center",fontSize:"10pt"},children:[(0,i.jsx)("a",{href:"https://assistant.fortodo.com/",target:"_top",style:{color:"#4054a1"},children:"Assistant"}),"\xa0\xa0|\xa0\xa0",(0,i.jsx)("a",{href:"https://corp.fortodo.com/press",target:"_top",style:{color:"#4054a1"},children:"Press"}),"\xa0\xa0|\xa0\xa0",(0,i.jsx)("span",{style:{color:"#4054a1",cursor:"pointer"},onClick:()=>{eO(!1),eG(!0)},children:"Help / Support →"})]})]})})]}),(0,i.jsxs)("div",{className:"fixed inset-0 z-[60] transition-opacity duration-300 ".concat(eK?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:()=>eG(!1),children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-black/30"}),(0,i.jsx)("div",{className:"absolute top-0 right-0 h-full w-80 max-w-[85vw] overflow-y-auto shadow-xl transition-transform duration-300 ".concat(eK?"translate-x-0":"translate-x-full"),style:{backgroundColor:"#ffffff"},onClick:e=>e.stopPropagation(),children:(0,i.jsxs)("div",{style:{padding:"20px"},children:[(0,i.jsx)("button",{onClick:()=>eG(!1),style:{float:"right",fontSize:"24px",background:"none",border:"none",cursor:"pointer",color:"#dc2626"},children:"✕"}),(0,i.jsx)("img",{src:"https://www.fortodo.com/images/logos/int/fortodo-global-logo.png",alt:"Fortodo",style:{marginTop:"10px"}}),(0,i.jsxs)("div",{style:{marginTop:"20px"},children:[(0,i.jsx)("a",{href:"https://support.fortodo.com",target:"_top",style:{fontWeight:"bold",color:"#333"},children:"SUPPORT CENTER"}),(0,i.jsx)("img",{src:"/images/35/businessicon-55x.png",height:24,alt:"",style:{display:"inline",marginLeft:"5px",verticalAlign:"middle"}})]}),(0,i.jsx)("div",{style:{marginTop:"20px"},children:(0,i.jsx)("a",{href:"http://call.fortodo.com",target:"_top",style:{fontSize:"13pt",color:"#4054a1"},children:"Call"})}
1),(0,i.jsxs)("div",{style:{marginTop:"15px"},children:[(0,i.jsx)("p",{style:{fontSize:"11pt",color:"#835e1e",fontWeight:"bold"},children:"Asia / Pacific"}),(0,i.jsx)("a",{href:"tel:+61272294000",style:{color:"#4054a1"},children:"+61 (2) 72294000"})]}),(0,i.jsxs)("div",{style:{marginTop:"10px"},children:[(0,i.jsx)("p",{style:{fontSize:"11pt",color:"#835e1e",fontWeight:"bold"},children:"Africa / Europe"}),(0,i.jsx)("a",{href:"tel:+442045327400",style:{color:"#4054a1"},children:"+44 (20) 45327400"})]}),(0,i.jsxs)("div",{style:{marginTop:"10px"},children:[(0,i.jsx)("p",{style:{fontSize:"11pt",color:"#835e1e",fontWeight:"bold"},children:"Americas"}),(0,i.jsx)("a",{href:"tel:+16503678636",style:{color:"#4054a1"},children:"+1 (650) FORTODO"}),(0,i.jsxs)("p",{style:{fontSize:"10pt",color:"#835e1e"},children:["That's: ",(0,i.jsx)("a",{href:"tel:+16503678636",style:{color:"#4054a1"},children:"+1 (650) 367-8636"})]})]}),(0,i.jsxs)("div",{style:{marginTop:"20px",display:"flex",flexDirection:"column",gap:"12px"},children:[(0,i.jsx)("a",{href:"sms:16503678636",style:{color:"#4054a1",fontSize:"12pt"},children:"\uD83D\uDCAC Text (SMS)"}),(0,i.jsx)("a",{href:"mailto:[email protected]",style:{color:"#4054a1",fontSize:"12pt"},children:"✉️ Email: [email protected]"}),(0,i.jsx)("a",{href:"https://support.fortodo.com/hc/en-us/requests/new",target:"_top",style:{color:"#4054a1",fontSize:"12pt"},children:"\uD83C\uDF10 Online Form"})]}),(0,i.jsxs)("div",{style:{marginTop:"25px"},children:[(0,i.jsx)("p",{style:{fontWeight:"bold",color:"#333"},children:"Follow us on:"}),(0,i.jsxs)("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap",marginTop:"10px"},children:[(0,i.jsx)("a",{href:"https://www.fortodo.com/fortodo",target:"_top",children:(0,i.jsx)("img",{src:"https://www.fortodo.com/images/f-40x37.png",height:32,alt:"Fortodo"})}),(0,i.jsx)("a",{href:"https://www.browseon.com/fortodo",target:"_top",children:(0,i.jsx)("img",{src:"https://www.fortodo.com/images/shared/nscroll/cl/browseon.png",height:32,alt:"Browseon"})}),(0,i.jsx)("a",{href:"https://www.crunchbase.com/organization/for-to-do",target:"_top",children:(0,i.jsx)("img",{src:"https://www.fortodo.com/images/cl/crunchbase/cb-staff-logo-28x28.png",height:32,alt:"Crunchbase"})}),(0,i.jsx)("a",{href:"https://www.linkedin.com/company/Fortodo",target:"_top",children:(0,i.jsx)("img",{src:"https://www.fortodo.com/r1.g330.com/cl/linkedin/linkedin_32.png",height:32,alt:"LinkedIn"})}),(0,i.jsx)("a",{href:"https://www.pinterest.com/fortodo",target:"_top",children:(0,i.jsx)("svg",{style:{display:"block",color:"#e60023",fill:"currentColor"},height:32,width:32,viewBox:"0 0 24 24","aria-label":"Pinterest",role:"img",children:(0,i.jsx)("path",{d:"M0 12c0 5.123 3.211 9.497 7.73 11.218-.11-.937-.227-2.482.025-3.566.217-.932 1.401-5.938 1.401-5.938s-.357-.715-.357-1.774c0-1.66.962-2.9 2.161-2.9 1.02 0 1.512.765 1.512 1.682 0 1.025-.653 2.557-.99 3.978-.281 1.189.597 2.159 1.769 2.159 2.123 0 3.756-2.239 3.756-5.471 0-2.861-2.056-4.86-4.991-4.86-3.398 0-5.393 2.549-5.393 5.184 0 1.027.395 2.127.889 2.726a.36.36 0 0 1 .083.343c-.091.378-.293 1.189-.332 1.355-.053.218-.173.265-.4.159-1.492-.694-2.424-2.875-2.424-4.627 0-3.769 2.737-7.229 7.892-7.229 4.144 0 7.365 2.953 7.365 6.899 0 4.117-2.595 7.431-6.199 7.431-1.211 0-2.348-.63-2.738-1.373 0 0-.599 2.282-.744 2.84-.282 1.084-1.064 2.456-1.549 3.235C9.584 23.815 10.77 24 12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12"})})}),(0,i.jsx)("a",{href:"https://vk.com/fortodo",target:"_top",children:(0,i.jsx)("img",{src:"https://www.fortodo.com/images/social/vk.svg.png",width:32,height:32,alt:"VK",style:{width:"32px",height:"32px",objectFit:"contain"}})})]})]}),(0,i.jsxs)("div",{style:{marginTop:"20px"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"8px"},children:[(0,i.jsx)("span",{style:{fontSize:"24px",color:t4?"#16a34a":"#eab308"},children:"\uD83D\uDEE1️"}),(0,i.jsx)("span",{style:{fontSize:"14pt",fontWeight:"600",color:t4?"#2563eb":"#333"},children:"Guardian"}),(0,i.jsx)("button",{onClick:()=>iN(!t4),style:{position:"relative",width:"36px",height:"20px",borderRadius:"10px",border:"none",backgroundColor:t4?"#16a34a":"#d1d5db",curs
1or:"pointer",transition:"background-color 0.2s"},children:(0,i.jsx)("span",{style:{position:"absolute",top:"2px",left:t4?"18px":"2px",width:"16px",height:"16px",borderRadius:"50%",backgroundColor:"#fff",transition:"left 0.2s"}})}),(0,i.jsx)("a",{href:"/guardian",style:{fontSize:"10px",color:"#6b7280",textDecoration:"underline",whiteSpace:"nowrap"},children:"How it Works"})]}),t4&&(0,i.jsxs)("div",{style:{padding:"12px",backgroundColor:"#f0fdf4",borderRadius:"8px",border:"1px solid #bbf7d0"},children:[t5&&(0,i.jsx)("div",{style:{fontSize:"13px",fontWeight:"600",color:"#16a34a"},children:t5}),(0,i.jsx)("div",{style:{fontSize:"12px",fontFamily:"monospace",color:"#ea580c",marginTop:"4px"},children:iP(t7)})]}),!t4&&(0,i.jsx)("div",{style:{fontSize:"12px",color:"#6b7280"},children:"Tap switch to activate"})]}),(0,i.jsxs)("div",{style:{marginTop:"20px",textAlign:"center",fontSize:"10pt"},children:[(0,i.jsx)("span",{style:{color:"#4054a1",cursor:"pointer"},onClick:()=>{eG(!1),eO(!0)},children:"← About"}),"\xa0\xa0|\xa0\xa0",(0,i.jsx)("a",{href:"https://assistant.fortodo.com/",target:"_top",style:{color:"#4054a1"},children:"Assistant"}),"\xa0\xa0|\xa0\xa0",(0,i.jsx)("a",{href:"https://corp.fortodo.com/press",target:"_top",style:{color:"#4054a1"},children:"Press"})]})]})})]}),(0,i.jsx)("button",{"data-tour":"left-panel-btn",onClick:()=>eO(!0),className:"fixed top-1/2 left-0 z-50 bg-gray-800 text-white p-2 rounded-r-[0.95rem] shadow-lg hover:bg-gray-700 transition-all",style:{transform:"translateY(-50%)"},title:"About Fortodo",children:(0,i.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}),(0,i.jsx)("button",{"data-tour":"right-panel-btn",onClick:()=>eG(!0),className:"fixed top-1/2 right-0 z-50 bg-gray-800 text-white p-2 rounded-l-[0.95rem] shadow-lg hover:bg-gray-700 transition-all",style:{transform:"translateY(-50%)"},title:"Support",children:(0,i.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),eA&&(0,i.jsx)("div",{style:{position:"fixed",inset:0,zIndex:9999,background:"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:"20px"},onClick:()=>eF(!1),children:(0,i.jsxs)("div",{style:{background:"#fff",borderRadius:"20px",width:"100%",maxWidth:"520px",maxHeight:"85vh",display:"flex",flexDirection:"column",overflow:"hidden"},onClick:e=>e.stopPropagation(),children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 20px 0"},children:[(0,i.jsx)("span",{style:{fontSize:"18px",fontWeight:700},children:Y("hp_postIt")}),(0,i.jsx)("button",{onClick:()=>eF(!1),style:{background:"none",border:"none",fontSize:"22px",cursor:"pointer",color:"#666"},children:"✕"})]}),(0,i.jsx)("div",{style:{display:"flex",borderBottom:"1px solid #e8eaed",marginTop:"12px"},children:[["postEvents","\uD83D\uDCC5",Y("hp_postItPostEvents"),"#16a34a"],["createAds","\uD83D\uDCE3",Y("hp_postItCreateAds"),"#ea580c"],["personalAd","\uD83D\uDC64",Y("hp_postItPersonalAd"),"#9333ea"]].map(e=>{let[t,o,n,r]=e;return(0,i.jsxs)("button",{onClick:()=>eU(t),style:{flex:1,padding:"10px 4px",background:"none",border:"none",borderBottom:eL===t?"2px solid ".concat(r):"2px solid transparent",cursor:"pointer",color:eL===t?r:"#666",fontWeight:eL===t?700:400,fontSize:"13px"},children:[o," ",n]},t)})}),(0,i.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:"24px 24px 0"},children:["postEvents"===eL&&(0,i.jsxs)("div",{style:{textAlign:"center"},children:[(0,i.jsx)("div",{style:{fontSize:"48px",marginBottom:"12px"},children:"\uD83D\uDCC5"}),(0,i.jsx)("h3",{style:{fontWeight:700,fontSize:"20px",marginBottom:"10px"},children:Y("hp_postItPostEvents")}),(0,i.jsx)("p",{style:{color:"#555",marginBottom:"20px"},children:Y("hp_postItPostEventsDesc")}),(0,i.jsx)("ul",{style:{textAlign:"left",listStyle:"none",padding:0,display:"flex",flexDirection:"column",gap:"8px"},children:[Y("hp_postItBullet1Events"),Y("hp_postItBullet2Events"),Y("hp_postItBullet3Events")].map(e=>(0,i.jsxs)("li",{style:{display:"flex",gap:"8px",alignItems:"flex-start"},children:[(0,i.jsx)("span",{style:{color:"#16a34a"},children:"✓"}),e]},e))})]}),"createAds"===eL&&(0,i.jsxs)("div",{style:{textAlign:"center"},children:[(0,i.jsx)("div",{style:{fontSize:"48px",marginBottom:"12px"},children:"\uD83D\uDCE3"}),(0,i.jsx)("h3",{style:{fontWeight:700,fontSize:"20px",marginBottom:"10px"},children:Y("hp_postItCreateAds")}),(0,i.jsx)("p",{style:{color:"#555",marginBottom:"20px"},children:Y("hp_postItCreateAdsDesc")}),(0,i.jsx)("ul",{style:{textAlign:"left",listStyle:"none",padding:0,display:"flex",flexDirection:"column",gap:"8px"},children:[Y("hp_postItBullet1Ads"),Y("hp_postItBullet2Ads"),Y("hp_postItBullet3Ads"),Y("hp_postItBullet4Ads")].map(e=>(0,i.jsxs)("li",{style:{display:"flex",gap:"8px",alignItems:"flex-start"},children:[(0,i.jsx)("span",{style:{color:"#ea580c"},children:"✓"}),e]},e))})]}),"personalAd"===eL&&(0,i.jsxs)("div",{style:{textAlign:"center"},children:[(0,i.jsx)("div",{style:{fontSize:"48px",marginBottom:"12px"},children:"\uD83D\uDC64"}),(0,i.jsx)("h3",{style:{fontWeight:700,fontSize:"20px",marginBottom:"10px"},children:Y("hp_postItPersonalAd")}),(0,i.jsx)("p",{style:{color:"#555",marginBottom:"20px"},children:Y("hp_postItPersonalAdDesc")}),(0,i.jsx)("ul",{style:{textAlign:"left",listStyle:"none",padding:0,display:"flex",flexDirection:"column",gap:"8px"},children:[Y("hp_postItBullet1Personal"),Y("hp_postItBullet2Personal"),Y("hp_postItBullet3Personal")].map(e=>(0,i.jsxs)("li",{style:{display:"flex",gap:"8px",alignItems:"flex-start"},children:[(0,i.jsx)("span",{style:{color:"#9333ea"},children:"✓"}),e]},e))})]})]}),(0,i.jsx)("div",{style:{padding:"20px 24px"},children:(0,i.jsx)("a",{href:"postEvents"===eL?"/posted-events":"createAds"===eL?"https://ads.fortodo.com/create":"https://life.fortodo.com/posted-events",style:{display:"block",textAlign:"center",padding:"14px",borderRadius:"12px",fontWeight:700,fontSize:"15px",color:"#fff",textDecoration:"none",background:"postEvents"===eL?"#16a34a":"createAds"===eL?"#ea580c":"#9333ea"},children:"postEvents"===eL?Y("hp_postItPostEventsCta"):"createAds"===eL?Y("hp_postItCreateAdsCta"):Y("hp_postItPersonalAdCta")})})]})}),eR&&(0,i.jsx)(u.Z,{onClose:()=>eW(!1)}),(0,i.jsx)(s.default,{src:"/js/search.js",strategy:"afterInteractive"}),(0,i.jsx)(s.default,{src:"/js/searchquerykws.js",strategy:"lazyOnload"}),(0,i.jsx)(_,{}),tt&&(0,i.jsx)("div",{style:{position:"fixed",bottom:ti?"130px":"-80px",left:"20px",right:"auto",zIndex:1100,backgroundColor:"#fff",color:"rgb(3,45,96)",border:"1px solid #002550",borderRadius:"4px",padding:"12px 16px",fontSize:"13px",fontWeight:"600",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",maxWidth:"200px",textAlign:"center",pointerEvents:"none",transition:"bottom 0.4s ease"},children:e9}),eH&&(0,i.jsx)(l,{onComplete:()=>{eV(!1),(null==ep?void 0:ep.sub)&&(localStorage.setItem("tourDone_".concat(ep.sub),"true"),(0,p.S)("/api/user-preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:ep.sub,preferences:{tourDone:!0}})}).catch(()=>{}))}})]})}}
1,77265:function(e,t,o){"use strict";o.d(t,{Z:function(){return a}});var i=o(57437),n=o(2265);let r="https://c95991d60a0b.us-east-1.playback.live-video.net/api/video/v1/us-east-1.015146192029.channel.YTnLCTN99fjr.m3u8",l=[{time:"6:00 AM",title:"Fortodo Morning Brief",host:"Market open preview, top stories"},{time:"9:30 AM",title:"Opening Bell Live",host:"Real-time market open coverage"},{time:"12:00 PM",title:"Midday Markets",host:"Sector analysis, earnings recap"},{time:"4:00 PM",title:"Closing Bell",host:"Market close, after-hours movers"},{time:"6:00 PM",title:"Fortodo Tonight",host:"Global markets wrap, tomorrow preview"},{time:"8:00 PM",title:"Creator Spotlight",host:"Featured creator content"}];function a(){let e=(0,n.useRef)(null),[t,a]=(0,n.useState)(!1),[s,d]=(0,n.useState)(!1),[c,p]=(0,n.useState)(!0),[x,g]=(0,n.useState)(!1),[h,u]=(0,n.useState)("Fortodo Live"),[f,m]=(0,n.useState)("");return(0,n.useEffect)(()=>{if(!e.current)return;(async()=>{if(e.current.canPlayType("application/vnd.apple.mpegurl"))e.current.src=r,e.current.addEventListener("loadedmetadata",()=>{a(!0),e.current.play().catch(()=>{})}),e.current.addEventListener("error",()=>{a(!1),m("")});else{let t=(await o.e(2404).then(o.bind(o,13915))).default;if(t.isSupported()){let o=new t({lowLatencyMode:!0,liveSyncDurationCount:3,liveMaxLatencyDurationCount:6});o.loadSource(r),o.attachMedia(e.current),o.on(t.Events.MANIFEST_PARSED,()=>{a(!0),e.current.play().catch(()=>{})}),o.on(t.Events.ERROR,(e,t)=>{t.fatal&&(a(!1),m(""))})}}})();let t=new Date().getHours();t>=6&&t<9?u("Fortodo Morning Brief"):t>=9&&t<12?u("Opening Bell Live"):t>=12&&t<16?u("Midday Markets"):t>=16&&t<18?u("Closing Bell"):t>=18&&t<20?u("Fortodo Tonight"):t>=20&&t<23?u("Creator Spotlight"):u("Fortodo Live")},[]),(0,i.jsxs)("div",{className:"rounded-xl overflow-hidden",style:{background:"#0a0a0a",border:"1px solid #222"},children:[(0,i.jsxs)("div",{className:"relative",style:{aspectRatio:"16/9",background:"#000"},children:[(0,i.jsx)("video",{ref:e,className:"w-full h-full object-cover",autoPlay:!0,muted:!0,playsInline:!0}),!t&&(0,i.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center",style:{background:"linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%)"},children:[(0,i.jsx)("img",{src:"/images/icons/browseon-icon-logo-924-644.png",alt:"Fortodo TV",style:{width:"60px",marginBottom:"12px",objectFit:"cover"}}),(0,i.jsx)("img",{src:"/images/icons/browseon-logo.png",alt:"Browseon",style:{width:"180px",marginBottom:"8px"}}),(0,i.jsx)("p",{className:"text-gray-400 text-sm mt-1",children:"Off Air"}),(0,i.jsxs)("p",{className:"text-gray-500 text-xs mt-3",children:["Next: ",h]})]}),t&&(0,i.jsxs)("div",{className:"absolute top-3 left-3 flex items-center gap-2",children:[(0,i.jsx)("span",{className:"px-2 py-0.5 rounded text-xs font-bold text-white",style:{background:"#e11d48"},children:"● LIVE"}),(0,i.jsx)("span",{className:"text-white text-xs font-medium bg-black/60 px-2 py-0.5 rounded",children:h})]}),(0,i.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-3 flex items-center justify-between",style:{background:"linear-gradient(transparent, rgba(0,0,0,0.8))"},children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)("button",{onClick:()=>{e.current&&(e.current.paused?(e.current.play(),d(!0)):(e.current.pause(),d(!1)))},className:"text-white hover:text-gray-300",style:{background:"none",border:"none",cursor:"pointer",fontSize:"18px"},children:s?"⏸":"▶"}),(0,i.jsx)("button",{onClick:()=>{e.current&&(e.current.muted=!e.current.muted,p(e.current.muted))},className:"text-white hover:text-gray-300",style:{background:"none",border:"none",cursor:"pointer",fontSize:"16px"},children:c?"\uD83D\uDD07":"\uD83D\uDD0A"})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)("button",{onClick:()=>g(!x),className:"text-white text-xs px-2 py-1 rounded hover:bg-white/20",style:{background:"rgba(255,255,255,0.1)",border:"none",cursor:"pointer"},children:"Schedule"}),(0,i.jsx)("button",{onClick:()=>{e.current&&e.current.requestFullscreen()},className:"text-white text-xs px-2 py-1 rounded hover:bg-white/20",style:{background:"rgba(255,255,255,0.1)",border:"none",cursor:"pointer"},children:"⛶"})]})]})]}),(0,i.jsxs)("div",{className:"px-4 py-2 flex items-center justify-between",style:{background:"#111",borderTop:"1px solid #222"},children:[(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)("span",{className:"text-blue-400 text-xs font-bold",children:"FORTODO"}),(0,i.jsx)("span",{className:"text-gray-400 text-xs",children:"|"}),(0,i.jsx)("span",{className:"text-white text-xs",children:h})]}),(0,i.jsxs)("span",{className:"text-gray-500 text-xs",children:[new Date().toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",timeZone:"America/Ne
1w_York"})," ET"]})]}),x&&(0,i.jsxs)("div",{className:"px-4 py-3",style:{background:"#0f0f0f",borderTop:"1px solid #222"},children:[(0,i.jsx)("p",{className:"text-white text-xs font-bold mb-2",children:"TODAY'S SCHEDULE (ET)"}),(0,i.jsx)("div",{className:"space-y-1.5",children:l.map(e=>(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)("span",{className:"text-gray-500 text-xs w-16",children:e.time}),(0,i.jsx)("span",{className:"text-white text-xs font-medium",children:e.title}),(0,i.jsxs)("span",{className:"text-gray-500 text-xs hidden sm:inline",children:["— ",e.host]})]},e.time))})]})]})}},28434:function(e,t,o){"use strict";o.d(t,{Z:function(){return l}});var i=o(57437),n=o(2265),r=o(2035);function l(e){let{userId:t,email:o,name:l="User",className:a="",size:s="md",fallbackUrl:d,profileImageData:c}=e,[p,x]=(0,n.useState)(null),[g,h]=(0,n.useState)(!0),[u,f]=(0,n.useState)(!1),m={sm:"w-8 h-8 text-sm",md:"w-12 h-12 text-base",lg:"w-24 h-24 text-2xl",xl:"w-32 h-32 text-4xl"};return((0,n.useEffect)(()=>((async()=>{if(console.log("\uD83D\uDDBC️ ProfilePicture loading for:",{userId:t,email:o,name:l,hasProfileImageData:!!c}),c){if(console.log("✅ Using provided profileImageData"),c.startsWith("data:image")){x(c),h(!1);return}if(c.startsWith("s3://"))console.log("⚠️ S3 reference detected, fetching from API instead");else{x(c),h(!1);return}}if(!t&&!o){h(!1);return}try{if(h(!0),f(!1),t){let e=await (0,r.S)("/api/profile-picture/".concat(t));if(e.ok&&"not-found"!==e.headers.get("X-Profile-Picture")){let t=await e.blob(),o=URL.createObjectURL(t);x(o),h(!1);return}}if(o){let e=await (0,r.S)("/api/lookup-user?email=".concat(encodeURIComponent(o)));if(e.ok){let t=await e.json();if(t.userId){let e=await (0,r.S)("/api/profile-picture/".concat(t.userId));if(e.ok){let t=await e.blob(),o=URL.createObjectURL(t);x(o),h(!1);return}}}}f(!0)}catch(e){console.log("Error loading profile picture:",e),f(!0)}finally{h(!1)}})(),()=>{p&&p.startsWith("blob:")&&URL.revokeObjectURL(p)}),[t,o,c]),g)?(0,i.jsx)("div",{className:"".concat(m[s]," rounded-full bg-gray-300 animate-pulse ").concat(a)}):p&&!u?(0,i.jsx)("img",{src:p,alt:"".concat(l,"'s profile"),className:a?"".concat(a):"".concat(m[s]," rounded-full object-cover"),onError:()=>f(!0)}):d?(0,i.jsx)("img",{src:d,alt:"".concat(l,"'s profile"),className:a?"".concat(a):"".concat(m[s]," rounded-full object-cover"),onError:()=>f(!0)}):(0,i.jsx)("div",{className:a?"".concat(a):"".concat(m[s]," rounded-full bg-blue-600 flex items-center justify-center text-white font-medium"),children:l&&"Unknown"!==l&&"User"!==l&&"Fortodo User"!==l?l.split(" ").map(e=>e.charAt(0)).join("").toUpperCase().substring(0,2):"U"})}},57122:function(e,t,o){"use strict";o.d(t,{CityProvider:function(){return l},h:function(){return a}});var i=o(57437),n=o(2265);let r=(0,n.createContext)({city:"",cityKey:"",cityReady:!1,setCity:()=>{},cityModalOpen:!1,setCityModalOpen:()=>{}});function l(e){let{children:t}
1=e,[o,l]=(0,n.useState)(""),[a,s]=(0,n.useState)(""),[d,c]=(0,n.useState)(!1),[p,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=localStorage.getItem("fortodo-city");if(e)try{let{city:t,cityKey:o}=JSON.parse(e);l(t),s(o)}catch(e){}c(!0)},[]),(0,i.jsx)(r.Provider,{value:{city:o,cityKey:a,cityReady:d,setCity:(e,t)=>{l(e),s(t),localStorage.setItem("fortodo-city",JSON.stringify({city:e,cityKey:t}))},cityModalOpen:p,setCityModalOpen:x},children:t})}function a(){return(0,n.useContext)(r)}},26065:function(e,t,o){"use strict";o.d(t,{i:function(){return s}});var i=o(57437),n=o(2265),r=o(87094);let l={en:"English",es:"Espa\xf1ol",fr:"Fran\xe7ais",zh:"中文",ja:"日本語",de:"Deutsch",hi:"हिन्दी",ar:"العربية",bn:"বাংলা",pt:"Portugu\xeas",ru:"Русский",ko:"한국어",vi:"Tiếng Việt",tr:"T\xfcrk\xe7e",it:"Italiano",th:"ไทย",pl:"Polski",nl:"Nederlands",id:"Bahasa Indonesia",uk:"Українська",sw:"Kiswahili",tl:"Tagalog",fa:"فارسی",ro:"Rom\xe2nă",el:"Ελληνικά"},a={en:"EN",es:"ES",fr:"FR",zh:"ZH",ja:"JA",de:"DE",hi:"HI",ar:"AR",bn:"BN",pt:"PT",ru:"RU",ko:"KO",vi:"VI",tr:"TR",it:"IT",th:"TH",pl:"PL",nl:"NL",id:"ID",uk:"UK",sw:"SW",tl:"TL",fa:"FA",ro:"RO",el:"EL"},s=()=>{let{language:e,setLanguage:t}=(0,r.Z)(),[o,s]=(0,n.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("button",{onClick:()=>s(!0),className:"flex flex-col items-center py-2 px-3 bg-transparent",style:{color:"inherit"},children:[(0,i.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,i.jsx)("span",{className:"text-xs mt-1",children:a[e]})]}),o&&(0,i.jsx)("div",{className:"bg-black bg-opacity-50 flex items-center justify-center p-4",onClick:()=>s(!1),style:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:9999},children:(0,i.jsx)("div",{className:"bg-white rounded-xl w-full max-w-md mx-auto max-h-[80vh] overflow-hidden",onClick:e=>e.stopPropagation(),children:(0,i.jsxs)("div",{className:"p-6",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,i.jsx)("h2",{className:"text-xl font-bold text-gray-900",children:"Select Language"}),(0,i.jsx)("button",{onClick:()=>s(!1),className:"text-gray-500 hover:text-gray-700",children:(0,i.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,i.jsx)("div",{className:"overflow-y-auto max-h-[60vh]",children:(0,i.jsx)("div",{className:"grid grid-cols-1 gap-2",children:Object.entries(l).map(o=>{let[n,r]=o;return(0,i.jsx)("button",{onClick:()=>{t(n),s(!1)},className:"w-full p-3 text-left rounded-lg transition-colors ".concat(e===n?"bg-blue-600 text-white":"bg-gray-100 text-gray-900 hover:bg-gray-200"),children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)("span",{className:"font-medium",children:r}),e===n&&(0,i.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})]})},n)})})})]})})})]})}},47933:function(e,t,o){"use strict";o.d(t,{j:function(){return i}});
1class i{static getFlagEmoji(e){return({Afghanistan:"\uD83C\uDDE6\uD83C\uDDEB",Albania:"\uD83C\uDDE6\uD83C\uDDF1",Algeria:"\uD83C\uDDE9\uD83C\uDDFF",Argentina:"\uD83C\uDDE6\uD83C\uDDF7",Armenia:"\uD83C\uDDE6\uD83C\uDDF2",Australia:"\uD83C\uDDE6\uD83C\uDDFA",Austria:"\uD83C\uDDE6\uD83C\uDDF9",Azerbaijan:"\uD83C\uDDE6\uD83C\uDDFF",Bahrain:"\uD83C\uDDE7\uD83C\uDDED",Bangladesh:"\uD83C\uDDE7\uD83C\uDDE9",Belarus:"\uD83C\uDDE7\uD83C\uDDFE",Belgium:"\uD83C\uDDE7\uD83C\uDDEA",Bolivia:"\uD83C\uDDE7\uD83C\uDDF4",Brazil:"\uD83C\uDDE7\uD83C\uDDF7",Bulgaria:"\uD83C\uDDE7\uD83C\uDDEC",Cambodia:"\uD83C\uDDF0\uD83C\uDDED",Canada:"\uD83C\uDDE8\uD83C\uDDE6",Chile:"\uD83C\uDDE8\uD83C\uDDF1",China:"\uD83C\uDDE8\uD83C\uDDF3",Colombia:"\uD83C\uDDE8\uD83C\uDDF4",Croatia:"\uD83C\uDDED\uD83C\uDDF7","Czech Republic":"\uD83C\uDDE8\uD83C\uDDFF",Denmark:"\uD83C\uDDE9\uD83C\uDDF0",Ecuador:"\uD83C\uDDEA\uD83C\uDDE8",Egypt:"\uD83C\uDDEA\uD83C\uDDEC",Estonia:"\uD83C\uDDEA\uD83C\uDDEA",Finland:"\uD83C\uDDEB\uD83C\uDDEE",France:"\uD83C\uDDEB\uD83C\uDDF7",Georgia:"\uD83C\uDDEC\uD83C\uDDEA",Germany:"\uD83C\uDDE9\uD83C\uDDEA",Ghana:"\uD83C\uDDEC\uD83C\uDDED",Greece:"\uD83C\uDDEC\uD83C\uDDF7",Hungary:"\uD83C\uDDED\uD83C\uDDFA",Iceland:"\uD83C\uDDEE\uD83C\uDDF8",India:"\uD83C\uDDEE\uD83C\uDDF3",Indonesia:"\uD83C\uDDEE\uD83C\uDDE9",Iran:"\uD83C\uDDEE\uD83C\uDDF7",Iraq:"\uD83C\uDDEE\uD83C\uDDF6",Ireland:"\uD83C\uDDEE\uD83C\uDDEA",Israel:"\uD83C\uDDEE\uD83C\uDDF1",Italy:"\uD83C\uDDEE\uD83C\uDDF9",Japan:"\uD83C\uDDEF\uD83C\uDDF5",Jordan:"\uD83C\uDDEF\uD83C\uDDF4",Kazakhstan:"\uD83C\uDDF0\uD83C\uDDFF",Kenya:"\uD83C\uDDF0\uD83C\uDDEA",Kuwait:"\uD83C\uDDF0\uD83C\uDDFC",Latvia:"\uD83C\uDDF1\uD83C\uDDFB",Lebanon:"\uD83C\uDDF1\uD83C\uDDE7",Lithuania:"\uD83C\uDDF1\uD83C\uDDF9",Luxembourg:"\uD83C\uDDF1\uD83C\uDDFA",Malaysia:"\uD83C\uDDF2\uD83C\uDDFE",Mexico:"\uD83C\uDDF2\uD83C\uDDFD",Morocco:"\uD83C\uDDF2\uD83C\uDDE6",Netherlands:"\uD83C\uDDF3\uD83C\uDDF1","New Zealand":"\uD83C\uDDF3\uD83C\uDDFF",Norway:"\uD83C\uDDF3\uD83C\uDDF4",Pakistan:"\uD83C\uDDF5\uD83C\uDDF0",Peru:"\uD83C\uDDF5\uD83C\uDDEA",Philippines:"\uD83C\uDDF5\uD83C\uDDED",Poland:"\uD83C\uDDF5\uD83C\uDDF1",Portugal:"\uD83C\uDDF5\uD83C\uDDF9",Qatar:"\uD83C\uDDF6\uD83C\uDDE6",Romania:"\uD83C\uDDF7\uD83C\uDDF4",Russia:"\uD83C\uDDF7\uD83C\uDDFA","Saudi Arabia":"\uD83C\uDDF8\uD83C\uDDE6",Singapore:"\uD83C\uDDF8\uD83C\uDDEC",Slovakia:"\uD83C\uDDF8\uD83C\uDDF0",Slovenia:"\uD83C\uDDF8\uD83C\uDDEE","South Africa":"\uD83C\uDDFF\uD83C\uDDE6","South Korea":"\uD83C\uDDF0\uD83C\uDDF7",Spain:"\uD83C\uDDEA\uD83C\uDDF8",Sweden:"\uD83C\uDDF8\uD83C\uDDEA",Switzerland:"\uD83C\uDDE8\uD83C\uDDED",Thailand:"\uD83C\uDDF9\uD83C\uDDED",Turkey:"\uD83C\uDDF9\uD83C\uDDF7",Ukraine:"\uD83C\uDDFA\uD83C\uDDE6","United Arab Emirates":"\uD83C\uDDE6\uD83C\uDDEA","United Kingdom":"\uD83C\uDDEC\uD83C\uDDE7","United States":"\uD83C\uDDFA\uD83C\uDDF8",Uruguay:"\uD83C\uDDFA\uD83C\uDDFE",Venezuela:"\uD83C\uDDFB\uD83C\uDDEA",Vietnam:"\uD83C\uDDFB\uD83C\uDDF3",Mars:"\uD83D\uDD34","Space Station Explorer":"\uD83D\uDE80"})[e]||"\uD83C\uDF0D"}}i.allCountries=["Afghanistan","Albania","Algeria","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahrain","Bangladesh","Belarus","Belgium","Bolivia","Brazil","Bulgaria","Cambodia","Canada","Chile","China","Colombia","Croatia","Czech Republic","Denmark","Ecuador","Egypt","Estonia","Finland","France","Georgia","Germany","Ghana","Greece","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Japan","Jordan","Kazakhstan","Kenya","Kuwait","Latvia","Lebanon","Lithuania","Luxembourg","Malaysia","Mexico","Morocco","Netherlands","New Zealand","Norway","Pakistan","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Saudi Arabia","Singapore","Slovakia","Slovenia","South Africa","South Korea","Spain","Sweden","Switzerland","Thailand","Turkey","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Venezuela","Vietnam","Mars","Space Station Explorer"],i.spaceLocations=["Mars","Space Station Explorer"]}},function(e){e.O(0,[5552,9277,1054,4891,4,6082,5223,5887,7094,1191,2408,8222,2971,7023,1744],function(){return e(e.s=32573)}),_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.