1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RoboticsNewsPage-CNozkMdE.js","assets/vendor-react-pTgRmW_L.js","assets/vendor-lucide-C9Vpy6qL.js","assets/ThisWeekPage-BQ7LzQwO.js","assets/TodayPage-DxNwa4oT.js","assets/TagPage-B5D6Je9U.js","assets/AuthorPage-CteZAGO3.js","assets/CompaniesIndexPage-BhGc9OZI.js","assets/CompanySectorPage-oPSqyqUj.js","assets/SectorMarketPage-lY3Y-iwn.js","assets/SectorTypePage-CgEo1Rcr.js","assets/SectorManufacturerPage-saLYfiAh.js","assets/SectorProductPage-QU6qNowV.js","assets/CompanyPortalRegister-BUwgWXNl.js","assets/CompanyPortalEdit-Co3xSfOz.js","assets/EventsPage-ClA9VK5B.js","assets/EventCard-DpBdJWHx.js","assets/EventDetailPage-C1IvzuFo.js","assets/EventTypePage-Bm1Dud90.js","assets/StartupsPage-C7qh6VG_.js","assets/WorldCupPage-CjxJAK2h.js","assets/ApiDocs-BsXp2Ade.js","assets/Advertise-DaYvDlPt.js","assets/DigitalPage-BK7ROk4R.js","assets/digitalServices-BWd4aRZ6.js","assets/DigitalServicePage-Bbe28KK-.js","assets/EventPartnership-jd4GCLky.js","assets/SocialLinks-oguK23Iq.js","assets/StocksPage-HT1TXcvO.js","assets/StockDetail-Co8w9wLa.js","assets/CompanyProfilePage-DSvlpGvV.js","assets/CompanyQuickLinks-BfmvVfWe.js","assets/EngineerDetailPage-
1Dntieeyb.js","assets/LegalPages-Dsmm8gxG.js","assets/LoginPage-C5ghMYqS.js","assets/RegisterPage-D3GIqFoS.js","assets/DashboardPage-CJ9pLOTD.js","assets/ProfilePage--5-N1paA.js","assets/EditProfilePage-BLAR50Wp.js","assets/CommunityFeedPage-6isZh6c7.js","assets/CreatePostPage-Jj6MOg6Y.js","assets/UserPostDetailPage-BdrxCJXB.js","assets/CreateSurveyPage-aATZdFs5.js","assets/UserSurveyDetailPage-DIr8-RqI.js","assets/ContactPage-yjxMKPTT.js","assets/CompanyProductPage-BCFyD-07.js","assets/ProductCategoryPage-CC8mgfnR.js","assets/SectorNewsPage-COOU75uk.js","assets/SitemapPage-Dn_CCRmb.js","assets/TagsIndexPage-Bw8D7Ijk.js","assets/SearchResultsPage-BAT9tsc9.js","assets/CompanySubPage-DxRvlmJv.js","assets/RobotPricesPage-BKJ87Czo.js","assets/NewsletterPage-DXwzVfen.js"])))=>i.map(i=>d[i]); 2import{r as l,j as e,R as mt,a as Qe,b as ps}from"./vendor-react-pTgRmW_L.js";import{S as Re,X as le,B as we,L as ot,C as _t,a as pe,E as ae,A as te,T as Et,U as Ve,b as Ze,c as hs,M as ue,d as Ne,e as xs,f as Ye,I as Gt,g as Kt,Y as Jt,F as Xt,h as xe,i as Qt,j as fs,k as Y,N as Ge,l as et,m as bs,R as Ke,n as Zt,o as ys,p as je,Z as Je,q as vs,r as Xe,s as Le,H as js,t as ks,P as ct,u as gt,v as pt,w as ws,W as Ns,x as Ps,y as Ss,z as zs,D as _s,G as Es,J as Cs,K as Ts,O as As,Q as Rs,V as Ct,_ as Ls,$ as es,a0 as ts,a1 as Ds,a2 as Is,a3 as $s,a4 as Os,a5 as Ms,a6 as Bs,a7 as ss,a8 as as,a9 as Fs,aa as Hs,ab as qs,ac as Ws,ad as Us,ae as Vs,af as Ys,ag as Gs,ah as Ks,ai as Js}from"./vendor-lucide-C9Vpy6qL.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const n of i)if(n.type==="childList")for(const c of n.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function a(i){const n={};return i.integrity&&(n.integrity=i.integrity),i.referrerPolicy&&(n.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?n.credentials="include":i.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function r(i){if(i.ep)return;i.ep=!0;const n=a(i);fetch(i.href,n)}})();const Xs="modulepreload",Qs=function(t){return"/"+t},Tt={},L=function(s,a,r){let i=Promise.resolve();if(a&&a.length>0){let c=function(m){return Promise.all(m.map(x=>Promise.resolve(x).then(j=>({status:"fulfilled",value:j}),j=>({status:"rejected",reason:j}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),b=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=c(a.map(m=>{if(m=Qs(m),m in Tt)return;Tt[m]=!0;const x=m.endsWith(".css"),j=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${j}`))return;const P=document.createElement("link");if(P.rel=x?"stylesheet":Xs,x||(P.as="script"),P.crossOrigin="",P.href=m,b&&P.setAttribute("nonce",b),document.head.appendChild(P),x)return new Promise((d,f)=>{P.addEventListener("load",d),P.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${m}`)))})}))}function n(c){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=c,window.dispatchEvent(o),!o.defaultPrevented)throw c}return i.then(c=>{for(const o of c||[])o.status==="rejected"&&n(o.reason);return s().catch(n)})},Zs={"register.errorAcceptPolicies":"Please accept the Terms of Service and Privacy Policy to continue.","register.errorFailed":"Registration failed.","register.welcomeAboard":"Welcome aboard!","register.accountCreated":"Your account has been created successfully.","register.newsletterSubscribed":"Newsletter subscribed","register.newsletterSubscribedDesc":"You'll receive the latest robotics & AI news weekly.","register.newsletterLater":"You can subscribe to our newsletter anytime from your dashboard.","register.goToDashboard":"Go to Dashboard","register.completeProfile":"Complete Your Profile","register.joinCommunity":"Join the Community","register.createFreeAccount":"Create your free account","register.fullName":"Full Name","register.fullNamePlaceholder":"John Doe","register.username":"Username","register.usernamePlaceholder":"johndoe","register.email":"Email","register.emailPlaceholder":"[email protected]","register.password":"Password","register.passwordPlaceholder":"Min. 8 characters","register.confirmPassword":"Confirm Password","register.confirmPasswordPlaceholder":"Repeat your password","register.subscribeNewsletter":"Subscribe to our newsletter","register.subscribeNewsletterDesc":"Get the latest robotics & AI news delivered weekly. Unsubscribe anytime.","register.agreeToThe":"I agree to the","register.termsOfService":"Terms of Service","register.and":"and","register.cookiePolicy":"Cookie Policy","register.readAndAccept":"I have read and accept the","register.privacyPolicy":"Privacy Policy","register.creatingAccount":"Creating account...","register.createAccount":"Create Account","register.or":"or","register.alreadyHaveAccount":"Already have an account?","register.signIn":"Sign in","dashboard.loading":"Loading...","dashboard.bookmarks":"Bookmarks","dashboard.myPosts":"My Posts","dashboard.mySurveys":"My Surveys","dashboard.welcome":"Welcome","dashboard.editProfile":"Edit Profile","dashboard.statPosts":"Posts","dashboard.statComments":"Comments","dashboard.statBookmarks":"Bookmarks","dashboard.newPost":"New Post","dashboard.newSurvey":"New Survey","dashboard.noBookmarks":"No bookmarks yet. Save articles you want to read later.","dashboard.comments":"comments","dashboard.noPosts":"You haven't posted anything yet.","dashboard.votes":"votes","dashboard.noSurveys":"You haven't created any surveys yet.","editProfile.errorFailed":"Failed to update.","editProfile.navBasic":"Basic Info","editProfile.navCompany":"Company","editProfile.navProfessional":"Professional","editProfile.navSocial":"Social Links","editProfile.navInterests":"Interests & Skills","editProfile.navPrivacy":"Privacy","editProfile.uploading":"Uploading...","editProfile.changeCover":"Change Cover","editProfile.savedSuccess":"Profile updated successfully!","editProfile.basicInformation":"Basic Information","editProfile.accountType":"Account Type","editProfile.personal":"Personal","editProfile.personalDesc":"Individual profile","editProfile.company":"Company","editProfile.companyDesc":"Organization profile","editProfile.fullName":"Full Name","editProfile.fullNamePlaceholder":"John Doe","editProfile.headline":"Headline","editProfile.headlinePlaceholderCompany":"Leading robotics innovation","editProfile.headlinePlaceholderPersonal":"Robotics Engineer | AI Enthusiast","editProfile.bio":"Bio","editProfile.bioPlaceholder":"Tell the community about yourself...","editProfile.location":"Location","editProfile.locationPlaceholder":"Istanbul, Turkey","editProfile.phone":"Phone","editProfile.companyDetails":"Company Details","editProfile.professionalInfo":"Professional Info","editProfile.companyName":"Company Name","editProfile.industry":"Industry","editProfile.selectIndustry":"Select industry","editProfile.companySize":"Company Size","editProfile.selectSize":"Select size","editProfile.employees":"employees","editProfile.foun
2dedYear":"Founded Year","editProfile.jobTitle":"Job Title","editProfile.jobTitlePlaceholder":"Senior Robotics Engineer","editProfile.companyLabel":"Company","editProfile.companyPlaceholder":"Where do you work?","editProfile.yearsExperience":"Years of Experience","editProfile.socialLinks":"Social & Links","editProfile.website":"Website","editProfile.linkedin":"LinkedIn","editProfile.twitter":"Twitter / X","editProfile.github":"GitHub","editProfile.interestsSkills":"Interests & Skills","editProfile.skills":"Skills","editProfile.skillsPlaceholder":"Python, ROS, Computer Vision, Machine Learning","editProfile.separateCommas":"Separate with commas","editProfile.interests":"Interests","editProfile.interestsPlaceholder":"Autonomous Driving, Humanoid Robots, AI Ethics","editProfile.privacy":"Privacy","editProfile.publicProfile":"Public Profile","editProfile.publicProfileDesc":"When enabled, anyone can see your profile and posts","editProfile.viewProfile":"View Profile","editProfile.saving":"Saving...","editProfile.saveChanges":"Save Changes","contact.
2inquiryGeneral":"General Inquiry","contact.inquiryPress":"Press Release Submission","contact.inquiryAdvertising":"Advertising / Media Placement","contact.inquiryEventCoverage":"Event Coverage Request","contact.inquiryPartnership":"Strategic Partnership","contact.errorRequired":"Please fill in your name, email and message.","contact.errorInvalidEmail":"Please enter a valid email address.","contact.errorSubmit":"Something went wrong sending your message. Please try again or email us directly.","contact.getInTouch":"Get in touch","contact.title":"Contact Us","contact.introBefore":"Have a story, a press release, a partnership idea or a question? Reach the team at","contact.introAfter":"â we read every message.","contact.emailLabel":"Email","contact.phoneLabel":"Phone","contact.officesLabel":"Offices","contact.successTitle":"Message sent","contact.successMessage":"Thanks for reaching out â we'll get back to you as soon as we can.","contact.sendAnother":"Send another message","contact.nameLabel":"Name *","contact.namePlaceholder":"Your name","contact.companyLabel":"Company / Organization","contact.companyPlaceholder":"Optional","contact.emailFieldLabel":"Email *","contact.inquiryTypeLabel":"Inquiry Type","contact.messageLabel":"Message *","contact.messagePlaceholder":"How can we help?","contact.sending":"Sendingâ¦","contact.sendMessage":"Send Message","contact.orEmailDirectly":"Or email us directly at","social.breadcrumb":"Follow Us","social.badge":"Stay Connected","social.heroTitle":"Follow Us
2Everywhere","social.heroSubtitle":"Join our growing community across all platforms. Get the latest robotics & AI news wherever you are.","social.followers":"followers","social.whyFollow":"Why Follow Us","social.whatYouGet":"What You'll Get","social.benefit1Title":"Breaking News","social.benefit1Desc":"Be the first to know about major developments in robotics & AI.","social.benefit2Title":"Expert Insights","social.benefit2Desc":"Interviews and analysis from industry leaders and researchers.","social.benefit3Title":"Exclusive Content","social.benefit3Desc":"Behind-the-scenes, demos, and content you won't find elsewhere.","social.benefit4Title":"Weekly Digest","social.benefit4Desc":"Curated newsletter with the week's most important stories.","sitemap.home":"Home","sitemap.title":"Sitemap","sitemap.eyebrow":"Explore the site","sitemap.loadError":"Couldn't load the sitemap. Please try again later.","sitemap.newsCategories":"News Categories","sitemap.companySectors":"Company Sectors","sitemap.marketAnalysis":"market analysis","sitemap.events":"Events","sitemap.byType":"By Type","sitemap.byTopic":"By Topic","sitemap.topicsTags":"Topics & Tags","sitemap.viewAllTags":"View all tags","sitemap.keyPages":"Key Pages","tags.breadcrumb":"Tags","tags.eyebrow":"Browse by topic","tags.title":"All Tags","tags.intro":"Every topic we cover, sized by how much we've written about it. Tap a tag to read its latest stories.","tags.empty":"No tags yet.","legal.home":"Home","legal.lastUpdated":"Last updated:","legal.privacyTitle":"Privacy Policy","legal.termsTitle":"Terms of Service","legal.cookiesTitle":"Cookie Policy","popular.title":"Popular","popular.subtitle":"Most read this week","popular.mostReadBadge":"#1 Most Read","hospital.title":"Healthcare & Robotics","hospital.subtitle":"Surgery, care tech & medical robots","engineers.title":"Engineers Directory","engineers.subtitle":"Leaders shaping robotics","events.title":"Upcoming Events","events.subtitle":"Robotics & AI conferences, expos, and meetups worldwide","events.online":"Online","events.ctaTitle":"Organizing an Event?","events.ctaDescription":"Partner with us for pre-event, live, and post-event media coverage.","events.ctaButton":"Become a Partner","solutions.eyebrow":"Partner with CTO","solutions.title":"MEDIA SOLUTIONS","solutions.requestMediaKit":"Request Media Kit","solutions.adEyebrow":"Exclusive Opportunity","solutions.adTitle":"Sponsor the Robotics Summit 2026","solutions.adDescription":"Reach the world's most innovative engineers and decision makers in person.","solutions.inquireNow":"Inquire Now","sponsors.title":"Our Sponsors","videos.title":"Videos","newsletterPopup.floatingCta":"Get Weekly Robotics News","newsletterPopup.successTitle":"You're In!","newsletterPopup.successMessage":"Welcome to the community. Check your inbox for a confirmation.","newsletterPopup.badge":"Free Newsletter","newsletterPopup.title":"The Week in Robotics & AI â in 5 Minutes","newsletterPopup.subtitle":"Join 10,000+ engineers, founders & investors who read our weekly briefing.","newsletterPopup.namePlaceholder":"Your name","newsletterPopup.emailPlaceholder":"[email protected]","newsletterPopup.submitButton":"Subscribe Free","newsletterPopup.trustNoSpam":"No spam","newsletterPopup.trustWeeklyDigest":"Weekly digest","newsletterPopup.trustUnsubscribe":"Unsubscribe anytime","surveyPopup.pollPill":"Poll","surveyPopup.quickPoll":"Quick Poll","surveyPopup.minimize":"Minimize","surveyPopup.thankYou":"Thank you!","surveyPopup.submitting":"Submitting...","surveyPopup.voteButton":"Vote","quickRead.summaryAriaLabel":"Quick read summary","quickRead.label":"Quick read","quickRead.dialogAriaLabel":"Article summary","quickRead.close":"Close","quickRead.noSummary":"Summary not available â open the full article to read it.","quickRead.readFull":"Read full article","bookmark.remove":"Remove bookmark","bookmark.add":"Bookmark this article","bookmark.saved":"Saved","bookmark.save":"Save","community.loading":"Loading...","community.title":"Community","community.subtitle":"Share your thoughts and engage with fellow robotics enthusiasts","community.newPoll":"New Poll","community.composerPlaceholder":"What's on your mind? Use @ to mention people","community.loadingPreview":"Loading preview...","community.addImages":"Add images (up to 10)","community.createPoll":"Create a poll","community.post":"Post","community.joinT
2itle":"Join the conversation","community.joinText":"Sign in to share posts, create polls, and engage with the community.","community.signIn":"Sign In","community.noPosts":"No posts yet","community.noPostsHint":"Be the first to share something with the community!","community.activePolls":"Active Polls","community.noActivePolls":"No active polls.","community.createFirstPoll":"Create the first one","community.guidelinesTitle":"Community Guidelines","community.guideline1":"Be respectful and constructive","community.guideline2":"Share knowledge about robotics & AI","community.guideline3":"No spam or self-promotion","community.guideline4":"Back your claims with sources","createPost.error":"Failed to create post.","createPost.back":"Back to Community","createPost.postingTo":"Posting to Community","createPost.titlePlaceholder":"Add a title...","createPost.addTitle":"Add a title (optional)","createPost.contentPlaceholder":"What's on your mind? Use @ to mention people...","createPost.addImage":"Add image","createPost.publish":"Publish","createSurvey.minOptionsError":"At least 2 options required.","createSurvey.error":"Failed to create survey.","createSurvey.back":"Back to Community","createSurvey.title":"Create a Poll","createSurvey.question":"Question","createSurvey.questionPlaceholder":"What would you like to ask?","createSurvey.description":"Description","createSurvey.optional":"(optional)","createSurvey.descriptionPlaceholder":"Add some context...","createSurvey.options":"Options","createSurvey.addOption":"Add option","createSurvey.allowMultiple":"Allow multiple selections","createSurvey.creating":"Creating...","createSurvey.submit":"Create Poll","advertise.statViews":"Monthly Views","advertise.statVisitors":"Unique Visitors","advertise.statCountries":"Countries","advertise.statArticles":"Articles / Month","advertise.statCLevel":"C-Level Readers","advertise.statEngagement":"Engagement Rate","advertise.formatSiteStoryName":"Site Story","advertise.formatSiteStoryDesc":"News-style sponsored content that naturally integrates your brand message while driving traffic to your site. Appears alongside editorial content.","advertise.formatPollName":"Sponsored Poll","advertise.formatPollDesc":"Interactive popup survey that asks users about your brand or product. Captures attention with instant engagement and collects valuable audience insights.","advertise.formatCategoryName":"Category Sponsorship","advertise.formatCategoryDesc":"Exclusive branding across an entire content category. Your logo, messaging, and links featured on every article within the category.","advertise.formatBannerName":"Ticker & Banner Ads","advertise.formatBannerDesc":"Fixed sponsor visual in the scrolling stock ticker on homepage plus premium banner placements across all pages. Maximum visibility.","advertise.formatArticleName":"Sponsored Article","advertise.formatArticleDesc":"Full-length editorial content published under your brand with SEO optimization, social distribution, and permanent placement on the site.","advertise.formatNewsletterName":"Newsletter Sponsorship","advertise.formatNewsletterDesc":"Exclusive placement in our weekly newsletter reaching 120K+ subscribers. Dedicated section with your branding, message, and CTA.","advertise.formatVideoName":"Video Brand Placement","advertise.formatVideoDesc":"In-video brand positioning, product mentions, and visual integrations within our video content reaching engineers and leaders worldwide.","advertise.formatCustomName":"Custom Partnership","advertise.formatCustomDesc":"Webinars, technical reviews, research reports, event sponsorships, and integrated multi-channel campaigns tailored to your objectives.","advertise.tagHighEngagement":"High Engagement","advertise.tagInteractive":"Interactive","advertise.tagExclusive":"Exclusive","advertise.tagHighVisibility":"High Visibility","advertise.tagSeoOptimized":"SEO Optimized","advertise.tagReach":"120K+ Reach","advertise.tagVideo":"Video","advertise.tagTailored":"Tailored","advertise.audienceEngineers":"Engineers & Developers","advertise.audienceCSuite":"C-Suite & Directors","advertise.audienceResearchers":"Researchers & Academics","advertise.audienceProductManagers":"Product Managers","advertise.audienceOther":"Other Professionals","advertise.brandFortune":"Fortune 500 companies","advertise.brandVC":"Leading VC firms","advertise.brandStartups":"Top robotics startups","advertise.brandUniversities":"Global universities","advertise.brandGovernment":"Government agencies","advertise.brandDefense":"Defense contractors","advertise.breadcrumbHome":"Home","advertise.breadcrumbAdvertise":"Advertise","advertise.badge":"Media Partnerships","advertise.heroTitleBefore":"Put Your Brand in Front of the","advertise.heroTitleHighlight":"Robotics Industry","advertise.heroSubtitle":"The Robotics Media is the leading intelligence hub for robotics, AI, and automation professionals. Connect with the decision-makers shaping the future of technology.","advertise.requestMediaKit":"Request Media Kit","advertise.viewSolutions":"View Solutions","advertise.solutionsEyebrow":"Solutions","advertise.solutionsT
2itle":"Advertising & Partnership Options","advertise.solutionsSubtitle":"Connect with our audience through a range of premium formats designed for maximum impact and measurable results.","advertise.getPricing":"Get Pricing","advertise.audienceEyebrow":"Who Reads Us","advertise.audienceTitle":"A Highly Qualified Audience","advertise.audienceSubtitle":"Our readership consists of senior engineers, C-level executives, researchers, and product leaders at the world's most innovative companies in robotics and AI.","advertise.trustedBy":"Trusted By Leaders In","advertise.eventCtaTitle":"Organizing a Robotics or AI Event?","advertise.eventCtaSubtitle":"Explore our dedicated event partnership packages for maximum visibility.","advertise.eventPartnerships":"Event Partnerships","advertise.getStarted":"Get Started","advertise.formTitle":"Let's Build Something Together","advertise.formSubtitle":"Tell us about your goals and our media team will create a customized proposal within 24 hours.","advertise.mediaInquiries":"Media Inquiries","advertise.partnerships":"Partnerships","advertise.thankYou":"Thank You!","advertise.thankYouMessage":"We've received your inquiry. Our media team will reach out within 24 hours with a customized proposal.","advertise.fullNameLabel":"Full Name *","advertise.fullNamePlaceholder":"John Smith","advertise.emailLabel":"Email *","advertise.companyLabel":"Company / Agency","advertise.companyPlaceholder":"Company Name","advertise.interestLabel":"What are you interested in?","advertise.optionAdvertising":"Advertising / Media Placement","advertise.optionSiteStory":"Site Story (Sponsored News)","advertise.optionPoll":"Sponsored Poll","advertise.optionCategory":"Category Sponsorship","advertise.optionBanner":"Ticker & Banner Ads","advertise.optionArticle":"Sponsored Article","advertise.optionNewsletter":"Newsletter Sponsorship","advertise.optionVideo":"Video Brand Placement","advertise.optionCustom":"Custom Partnership","advertise.optionMediaKit":"Media Kit Request","advertise.goalsLabel":"Tell us about your goals","advertise.goalsPlaceholder":"Target audience, campaign objectives, budget range, timeline...","advertise.sending":"Sending...","advertise.sendInquiry":"Send Inquiry","eventPartnership.pkgMediaName":"Media Partner","eventPartnership.tierEssential":"Essential","eventPartnership.pkgMediaFeat1":"Event listing on our Events page","eventPartnership.pkgMediaFeat2":"Social media announcement (1 post)","eventPartnership.pkgMediaFeat3":"Logo placement on Events section","eventPartnership.pkgMediaFeat4":"Event mention in weekly newsletter","eventPartnership.pkgMediaFeat5":"Post-event recap article","eventPartnership.pkgStrategicName":"Strategic Partner","eventPartnership.tierProfessional":"Professional","eventPartnership.pkgStrategicFeat1":"Everything in Media Partner","eventPartnership.pkgStrategicFeat2":"Dedicated pre-event featured article","eventPartnership.pkgStrategicFeat3":"Social media campaign (5+ posts)","eventPartnership.pkgStrategicFeat4":"Homepage banner during event week","eventPartnership.pkgStrategicFeat5":"Speaker/organizer interview article","eventPartnership.pkgStrategicFeat6":"Event category sponsorship","eventPartnership.pkgStrategicFeat7":"Newsletter dedicated section","eventPartnership.pkgStrategicFeat8":"Live event coverage thread","eventPartnership.pkgHeadlineName":"Headline Partner","eventPartnership.tierEnterprise":"Enterprise","eventPartnership.pkgHeadlineFeat1":"Everything in Strategic Partner","eventPartnership.pkgHeadlineFeat2":"Co-branded content series (3+ articles)","eventPartnership.pkgHeadlineFeat3":"Video interview production","eventPartnership.pkgHeadlineFeat4":"Dedicated landing page on our site","eventPartnership.pkgHeadlineFeat5":"Full social media takeover (event day)","eventPartnership.pkgHeadlineFeat6":"Exclusive newsletter sponsorship","eventPartnership.pkgHeadlineFeat7":"Post-event industry report co-authoring","eventPartnership.pkgHeadlineFeat8":"Year-round category sponsorship","eventPartnership.pkgHeadlineFeat9":"Priority placement on all channels","eventPartnership.pkgHeadlineFeat10":"Custom analytics & ROI dashboard","eventPartnership.ctaGetStarted":"Get Started","eventPartnership.ctaMostPopular":"Most Popular","eventPartnership.ctaContactUs":"Contact Us","eventPartnership.svcPreEventTitle":"Pre-Event Articles","eventPartnership.svcPreEventDesc":"Dedicated editorial coverage building anticipation. Speaker profiles, agenda highlights, and industry context pieces.","eventPartnership.svcVideoT
2itle":"Video Production","eventPartnership.svcVideoDesc":"Professional interview recordings with speakers, behind-the-scenes content, and event highlight reels.","eventPartnership.svcSocialTitle":"Social Amplification","eventPartnership.svcSocialDesc":"Multi-platform campaign across LinkedIn, X, and our channels reaching 500K+ robotics professionals.","eventPartnership.svcLiveTitle":"Live Coverage","eventPartnership.svcLiveDesc":"Real-time reporting from your event with live articles, social threads, and photo/video content.","eventPartnership.svcNewsletterTitle":"Newsletter Features","eventPartnership.svcNewsletterDesc":"Dedicated placement in our weekly newsletter reaching 120K+ subscribers in the robotics & AI industry.","eventPartnership.svcReportsTitle":"Post-Event Reports","eventPartnership.svcReportsDesc":"Comprehensive recap articles, key takeaway summaries, and industry impact analysis pieces.","eventPartnership.svcLandingTitle":"Dedicated Landing Page","eventPartnership.svcLandingDesc":"Custom-branded event page on our site with agenda, speakers, registration CTA, and related articles.","eventPartnership.svcAnalyticsTitle":"Analytics & Reporting","eventPartnership.svcAnalyticsDesc":"Detailed performance metrics: impressions, clicks, engagement rates, and audience demographics.","eventPartnership.statVisitors":"Monthly Visitors","eventPartnership.statCountries":"Countries","eventPartnership.statSocialReach":"Social Reach","eventPartnership.statNewsletterSubs":"Newsletter Subs","eventPartnership.breadcrumbHome":"Home","eventPartnership.breadcrumbAdvertise":"Advertise","eventPartnership.breadcrumbEvent":"Event Partnership","eventPartnership.badge":"Event Partnerships","eventPartnership.heroTitleBefore":"Amplify Your","eventPartnership.heroTitleHighlight":"Robotics & AI","eventPartnership.heroTitleAfter":"Event","eventPartnership.heroSubtitle":"From pre-event buzz to post-event impact analysis, we turn your event into a multi-week content campaign reaching the global robotics community.","eventPartnership.viewPackages":"View Packages","eventPartnership.contactUs":"Contact Us","eventPartnership.howItWorks":"How It Works","eventPartnership.howItWorksTitle":"Your Event, Our Audience","eventPartnership.step1Title":"Tell Us About Your Event","eventPartnership.step1Desc":"Share your event details, target audience, and partnership goals.","eventPartnership.step2Title":"We Craft a Plan","eventPartnership.step2Desc":"Our team designs a tailored media coverage and promotion strategy.","eventPartnership.step3Title":"We Amplify","eventPartnership.step3Desc":"Multi-channel promotion: articles, social media, newsletter, and more.","eventPartnership.step4Title":"Measure Impact","eventPartnership.step4Desc":"Detailed analytics on reach, engagement, and audience breakdown.","eventPartnership.whatWeOffer":"What We Offer","eventPartnership.whatWeOfferTitle":"Full-Spectrum Event Coverage","eventPartnership.whatWeOfferSubtitle":"Everything you need to maximize your event's visibility and impact in the robotics & AI community.","eventPartnership.packagesEyebrow":"Packages","eventPartnership.packagesTitle":"Choose Your Partnership Level","eventPartnership.packagesSubtitle":"Each package is customizable. Contact us to build a plan that matches your event's goals and audience.","eventPartnership.mostPopular":"Most Popular","eventPartnership.getStarted":"Get Started","eventPartnership.packagesNote":"All packages are customizable. Pricing depends on event size, duration, and scope of coverage.","eventPartnership.eventsCovered":"Events We've Covered","eventPartnership.formTitle":"Tell Us About Your Event","eventPartnership.formSubtitle":"Share your event details and we'll propose a tailored partnership plan within 48 hours.","eventPartnership.contactEventLabel":"Event Partnerships","eventPartnership.contactGeneralLabel":"General Inquiries","eventPartnership.earlyBirdTitle":"Early Bird Advantage","eventPartnership.earlyBirdDesc":"Contact us at least 4 weeks before your event for maximum coverage impact and the best partnership terms.","eventPartnership.thankYou":"Thank You!","eventPartnership.thankYouMessage":"We've received your event partnership inquiry. Our team will review and get back to you within 48 hours with a tailored proposal.","eventPartnership.nameLabel":"Your Name *","eventPartnership.namePlaceholder":"Jane Doe","eventPartnership.emailLabel":"Email *","eventPartnership.orgLabel":"Organization / Event Name *","eventPartnership.packageInterestLabel":"What package interests you?","eventPartnership.optionEvent":"Event Partnership","eventPartnership.optionMedia":"Media Partner Package","eventPartnership.optionStrategic":"Strategic Partner Package","eventPartnership.optionHeadline":"Headline Partner Package","eventPartnership.optionCustom":"Custom Partnership","eventPartnership.messageLabel":"Tell us about your event","eventPartnership.messagePlaceholder":"Event date, expected attendees, target audience, what kind of coverage you're looking for...","eventPartnership.sending":"Sending...","eventPartnership.submitInquiry":"Submit Event Partnership Inquiry","social.linkedinDesc":"Industry insights, company news, and professional networking. Our most active channel for robotics leaders.","social.linkedinCta":"Follow on LinkedIn","social.twitterDesc":"Breaking news, live event threads, and real-time industry commentary. Fast updates from the robotics world.","social.twitterCta":"Follow on X","social.youtubeDesc":"Robot demos, expert interviews, event highlights, and deep-dive technology explainers.","social.youtubeCta":"Subscribe on YouTube","social.instagramDesc":"Behind-the-scenes, visual stories, event coverage, and the lighter side of robotics & AI.","social.instagramCta":"Follow on Instagram","social.facebookDesc":"Community discussions, article sharing, and event announcements for the broader robotics audie
2nce.","social.facebookCta":"Like on Facebook","social.newsletterName":"Weekly Newsletter","social.newsletterDesc":"Curated weekly digest of the most important robotics & AI news delivered to your inbox every Friday.","social.newsletterCta":"Subscribe","social.rssName":"RSS Feed","social.rssDesc":"Add our RSS feed to your reader for real-time article updates. Perfect for staying on top of every story.","social.rssCta":"Get RSS Feed","legal.updatedDate":"March 30, 2026","legal.privacy.s1":"1. Information We Collect","legal.privacy.s2":"2. How We Use Your Information","legal.privacy.s3":"3. Information Sharing","legal.privacy.s4":"4. Data Security","legal.privacy.s5":"5. Your Rights","legal.privacy.s6":"6. Data Retention","legal.privacy.s7":"7. Children's Privacy","legal.privacy.s8":"8. Changes to This Policy","legal.privacy.s9":"9. Contact Us","legal.terms.s1":"1. Acceptance of Terms","legal.terms.s2":"2. User Accounts","legal.terms.s3":"3. User Content","legal.terms.s4":"4. Intellectual Property","legal.terms.s5":"5. Prohibited Activities","legal.terms.s6":"6. Termination","legal.terms.s7":"7. Disclaimer of Warranties","legal.terms.s8":"8. Limitation of Liability","legal.terms.s9":"9. Governing Law","legal.terms.s10":"10. Changes to Terms","legal.terms.s11":"11. Contact","legal.cookies.s1":"1. What Are Cookies","legal.cookies.s2":"2. How We Use Cookies","legal.cookies.s3":"3. Specific Cookies We Use","legal.cookies.colCookie":"Cookie","legal.cookies.colType":"Type","legal.cookies.colPurpose":"Purpose","legal.cookies.colDuration":"Duration","legal.cookies.s4":"4. Third-Party Cookies","legal.cookies.s5":"5. Managing Cookies","legal.cookies.s6":"6. Local Storage","legal.cookies.s7":"7. Changes to This Policy","legal.cookies.s8":"8. Contact","sitemap.thisWeekIn":"This week in {name}","sitemap.introBefore":"Every hub on","sitemap.introAfter":"in one place â news categories and their topics, company sectors, tags and events.","sitemap.sectorNoteBefore":"Each sector also has a","sitemap.sectorNoteAfter":"page at","events.countdown.happeningNow":"Happening Now","surveyPopup.voteCount":"{count} votes","surveyPopup.votesSoFar":"{count} votes so far","quickRead.minRead":"{count} min read","createPost.minRead":"~{count} min read","createSurvey.optionPlaceholder":"Option {number}","community.votesCount":"{count} votes","community.optionsCount":"{count} options"},ea={"register.errorAcceptPolicies":"Devam etmek için Hizmet Åartları'nı ve Gizlilik Politikası'nı kabul edin.","register.errorFailed":"Kayıt baÅarısız oldu.","register.welcomeAboard":"Aramıza hoÅ geldiniz!","register.accountCreated":"Hesabınız baÅarıyla oluÅturuldu.","register.newsletterSubscribed":"Bültene abone olundu","register.newsletterSubscribedDesc":"En güncel robotik ve yapay zeka haberlerini her hafta alacaksınız.","register.newsletterLater":"Bültenimize panelinizden istediÄiniz zaman abone olabilirsiniz.","register.goToDashboard":"Panele Git","register.completeProfile":"Profilinizi Tamamlayın","register.joinCommunity":"TopluluÄa Katılın","register.createFreeAccount":"Ãcretsiz hesabınızı oluÅturun","register.fullName":"Ad Soyad","register.fullNamePlaceholder":"Ahmet Yılmaz","register.username":"Kullanıcı Adı","register.usernamePlaceholder":"ahmetyilmaz","register.email":"E-posta","register.emailPlaceholder":"[email protected]","register.password":"Åifre","register.passwordPlaceholder":"En az 8 karakter","register.confirmPassword":"Åifreyi Onayla","register.confirmPasswordPlaceholder":"Åifrenizi tekrar girin","register.subscribeNewsletter":"Bültenimize abone olun","register.subscribeNewsletterDesc":"En güncel robotik ve yapay zeka haberlerini her hafta alın. İstediÄiniz zaman abonelikten çıkın.","register.agreeToThe":"Kabul ediyorum:","register.termsOfService":"Hizmet Åartları","register.and":"ve","register.cookiePolicy":"Ãerez Politikası","register.readAndAccept":"Okudum ve kabul ediyorum:","register.privacyPolicy":"Gizlilik Politikası","register.creatingAccount":"Hesap oluÅturuluyor...","register.createAccount":"Hesap OluÅtur","register.or":"veya","register.alreadyHaveAccount":"Zaten bir hesabınız var mı?","register.signIn":"GiriÅ yap","dashboard.loading":"Yükleniyor...","dashboard.bookmarks":"Yer İmleri","dashboard.myPosts":"Gönderilerim","dashboard.mySurveys":"Anketlerim","dashboard.welcome":"HoÅ geldiniz","dashboard.editProfile":"Profili Düzenle","dashboard.statPosts":"Gönderiler","dashboard.statComments":"Yorumlar","dashboard.statBookmarks":"Yer İmleri","dashboard.newPost":"Yeni Gönderi","dashboard.newSurvey":"Yeni Anket","dashboard.noBookmarks":"Henüz yer imi yok. Daha sonra okumak istediÄiniz makaleleri kaydedin.","dashboard.comments":"yorum","dashboard.noPosts":"Henüz hiçbir Åey paylaÅmadınız.","dashboard.votes":"oy","dashboard.noSurveys":"Henüz hiç anket oluÅturmadınız.","editProfile.errorFailed":"Güncelleme baÅarısız oldu.","editProfile.navBasic":"Temel Bilgiler","editProfile.navCompany":"Åirket","editProfile.navProfessional":"Profesyonel","editProfile.navSocial":"Sosyal BaÄlantılar","editProfile.navInterests":"İlgi Alanları ve Yetenekler","editProfile.navPrivacy":"Gizlilik","editProfile.uploading":"Yükleniyor...","editProfile.changeCover":"KapaÄı DeÄiÅtir","editProfile.savedSuccess":"Profil baÅarıyla güncellendi!","editProfile.basicInformation":"Temel Bilgiler","editProfile.accountType":"Hesap Türü","editProfile.personal":"Bireysel","editProfile.personalDesc":"Bireysel profil","editProfile.company":"Åirket","editProfile.companyDesc":"Kurumsal profil","editProfile.fullName":"Ad Soyad","editProfile.fullNamePlaceholder":"Ahmet Yılmaz","editProfile.headline":"BaÅlık","editProfile.headlinePlaceholderCompany":"Robotik inovasyonda öncü","editProfile.headlinePlaceholderPersonal":"Robotik Mühendisi | Yapay Zeka Meraklısı","editProfile.bio":"Hakkında","editProfile.bioPlaceholder":"TopluluÄa kendinizden bahsedin...","editProfile.location":"Konum","editProfile.locationPlaceholder":"İstanbul, Türkiye","editProfile.phone":"Telefon","editProfile.companyDetails":"Åirket Bilgileri","editProfile.professionalInfo":"Profesyonel Bilgiler","editProfile.companyName":"Åirket Adı","editProfile.industry":"Sektör","editProfile.selectIndustry":"Sektör seçin","editProfile.companySize":"Åirket BüyüklüÄü","editProfile.selectSize":"Büyüklük seçin","editProfile.employees":"çalıÅan","editProfile.foun
2dedYear":"KuruluÅ Yılı","editProfile.jobTitle":"Unvan","editProfile.jobTitlePlaceholder":"Kıdemli Robotik Mühendisi","editProfile.companyLabel":"Åirket","editProfile.companyPlaceholder":"Nerede çalıÅıyorsunuz?","editProfile.yearsExperience":"Deneyim Yılı","editProfile.socialLinks":"Sosyal ve BaÄlantılar","editProfile.website":"Web Sitesi","editProfile.linkedin":"LinkedIn","editProfile.twitter":"Twitter / X","editProfile.github":"GitHub","editProfile.interestsSkills":"İlgi Alanları ve Yetenekler","editProfile.skills":"Yetenekler","editProfile.skillsPlaceholder":"Python, ROS, Bilgisayarlı Görü, Makine ÃÄrenmesi","editProfile.separateCommas":"Virgülle ayırın","editProfile.interests":"İlgi Alanları","editProfile.interestsPlaceholder":"Otonom SürüÅ, İnsansı Robotlar, Yapay Zeka EtiÄi","editProfile.privacy":"Gizlilik","editProfile.publicProfile":"Herkese Açık Profil","editProfile.publicProfileDesc":"EtkinleÅtirildiÄinde herkes profilinizi ve gönderilerinizi görebilir","editProfile.viewProfile":"Profili Görüntüle","editProfile.saving":"Kaydediliyor...","editProfile.saveChanges":"DeÄiÅiklikleri Kaydet","contact.inquiryGeneral":"Genel Talep","contact.inquiryPress":"Basın Bülteni Gönderimi","contact.
2inquiryAdvertising":"Reklam / Medya YerleÅimi","contact.inquiryEventCoverage":"Etkinlik HaberciliÄi Talebi","contact.inquiryPartnership":"Stratejik İŠBirliÄi","contact.errorRequired":"Lütfen adınızı, e-postanızı ve mesajınızı doldurun.","contact.errorInvalidEmail":"Lütfen geçerli bir e-posta adresi girin.","contact.errorSubmit":"Mesajınız gönderilirken bir sorun oluÅtu. Lütfen tekrar deneyin veya doÄrudan bize e-posta gönderin.","contact.getInTouch":"İletiÅime Geçin","contact.title":"Bize UlaÅın","contact.introBefore":"Bir haberiniz, basın bülteniniz, iÅ birliÄi fikriniz ya da sorunuz mu var?","contact.introAfter":"ekibine ulaÅın; her mesajı okuyoruz.","contact.emailLabel":"E-posta","contact.phoneLabel":"Telefon","contact.officesLabel":"Ofisler","contact.successTitle":"Mesaj gönderildi","contact.successMessage":"Bize ulaÅtıÄınız için teÅekkürler; en kısa sürede size geri döneceÄiz.","contact.sendAnother":"BaÅka bir mesaj gönder","contact.nameLabel":"Ad *","contact.namePlaceholder":"Adınız","contact.companyLabel":"Åirket / Kurum","contact.companyPlaceholder":"İsteÄe baÄlı","contact.emailFieldLabel":"E-posta *","contact.inquiryTypeLabel":"Talep Türü","contact.messageLabel":"Mesaj *","contact.messagePlaceholder":"Size nasıl yardımcı olabiliriz?","contact.sending":"Gönderiliyorâ¦","contact.sendMessage":"Mesaj Gönder","contact.orEmailDirectly":"Ya da doÄrudan bize e-posta gönderin:","social.breadcrumb":"Bizi Takip Edin","social.badge":"BaÄlantıda Kalın","social.heroTitle":"Bizi Her Yerde Takip Edin","social.heroSubtitle":"Tüm platformlardaki büyüyen topluluÄumuza katılın. En güncel robotik ve yapay zekâ haberlerine nerede olursanız olun ulaÅın.","social.followers":"takipçi","social.whyFollow":"Neden Bizi Takip Etmelisiniz","social.whatYouGet":"Neler Elde Edeceksiniz","social.benefit1Title":"Son Dakika Haberleri","social.benefit1Desc":"Robotik ve yapay zekâdaki önemli geliÅmeleri ilk öÄrenen siz olun.","social.benefit2Title":"Uzman İçgörüleri","social.benefit2Desc":"Sektör liderleri ve araÅtırmacılarından röportajlar ve analizler.","social.benefit3Title":"Ãzel İçerik","social.benefit3Desc":"Kamera arkası, demolar ve baÅka hiçbir yerde bulamayacaÄınız içerikler.","social.benefit4Title":"Haftalık Ãzet","social.benefit4Desc":"Haftanın en önemli haberlerinden derlenmiÅ bülten.","sitemap.home":"Ana Sayfa","sitemap.title":"Site Haritası","sitemap.eyebrow":"Siteyi keÅfedin","sitemap.loadError":"Site haritası yüklenemedi. Lütfen daha sonra tekrar deneyin.","sitemap.newsCategories":"Haber Kategorileri","sitemap.companySectors":"Åirket Sektörleri","sitemap.marketAnalysis":"pazar analizi","sitemap.events":"Etkinlikler","sitemap.byType":"Türe Göre","sitemap.byTopic":"Konuya Göre","sitemap.topicsTags":"Konular ve Etiketler","sitemap.viewAllTags":"Tüm etiketleri görüntüle","sitemap.keyPages":"Ãnemli Sayfalar","tags.breadcrumb":"Etiketler","tags.eyebrow":"Konuya göre göz atın","tags.title":"Tüm Etiketler","tags.intro":"Ele aldıÄımız her konu, hakkında ne kadar yazdıÄımıza göre boyutlandırılmıÅtır. En son haberleri okumak için bir etikete dokunun.","tags.empty":"Henüz etiket yok.","legal.home":"Ana Sayfa","legal.lastUpdated":"Son güncelleme:","legal.privacyTitle":"Gizlilik Politikası","legal.termsTitle":"Hizmet KoÅulları","legal.cookiesTitle":"Ãerez Politikası","popular.title":"Popüler","popular.subtitle":"Bu hafta en çok okunanlar","popular.mostReadBadge":"#1 En Ãok Okunan","hospital.title":"SaÄlık ve Robotik","hospital.subtitle":"Cerrahi, bakım teknolojileri ve medikal robotlar","engineers.title":"Mühendis Rehberi","engineers.subtitle":"RobotiÄe yön veren liderler","events.title":"YaklaÅan Etkinlikler","events.subtitle":"Dünya genelinde robotik ve yapay zeka konferansları, fuarları ve buluÅmaları","events.online":"Ãevrim İçi","events.ctaTitle":"Bir Etkinlik mi Düzenliyorsunuz?","events.ctaDescription":"Etkinlik öncesi, canlı ve etkinlik sonrası medya kapsamı için bizimle iÅ birliÄi yapın.","events.ctaButton":"Partner Olun","solutions.eyebrow":"CTO ile İŠBirliÄi Yapın","solutions.title":"MEDYA ÃÃZÃMLERİ","solutions.requestMediaKit":"Medya Kiti İsteyin","solutions.adEyebrow":"Ãzel Fırsat","solutions.adTitle":"Robotik Zirvesi 2026'ya Sponsor Olun","solutions.adDescription":"Dünyanın en yenilikçi mühendislerine ve karar vericilerine yüz yüze ulaÅın.","solutions.inquireNow":"Hemen Bilgi Alın","sponsors.title":"Sponsorlarımız","videos.title":"Videolar","newsletterPopup.floatingCta":"Haftalık Robotik Haberlerini Alın","newsletterPopup.successTitle":"Kaydınız Alındı!","newsletterPopup.successMessage":"TopluluÄa hoÅ geldiniz. Onay için gelen kutunuzu kontrol edin.","newsletterPopup.badge":"Ãcretsiz Bülten","newsletterPopup.title":"Robotik ve Yap
2ay Zekâda Bu Hafta â 5 Dakikada","newsletterPopup.subtitle":"Haftalık bültenimizi okuyan 10.000'den fazla mühendis, giriÅimci ve yatırımcıya katılın.","newsletterPopup.namePlaceholder":"Adınız","newsletterPopup.emailPlaceholder":"[email protected]","newsletterPopup.submitButton":"Ãcretsiz Abone Ol","newsletterPopup.trustNoSpam":"Spam yok","newsletterPopup.trustWeeklyDigest":"Haftalık özet","newsletterPopup.trustUnsubscribe":"İstediÄiniz zaman abonelikten çıkın","surveyPopup.pollPill":"Anket","surveyPopup.quickPoll":"Hızlı Anket","surveyPopup.minimize":"Küçült","surveyPopup.thankYou":"TeÅekkürler!","surveyPopup.submitting":"Gönderiliyor...","surveyPopup.voteButton":"Oy Ver","quickRead.summaryAriaLabel":"Hızlı okuma özeti","quickRead.label":"Hızlı okuma","quickRead.dialogAriaLabel":"Makale özeti","quickRead.close":"Kapat","quickRead.noSummary":"Ãzet mevcut deÄil â okumak için makalenin tamamını açın.","quickRead.readFull":"Makalenin tamamını oku","bookmark.remove":"Yer imini kaldır","bookmark.add":"Bu makaleyi yer imlerine ekle","bookmark.saved":"Kaydedildi","bookmark.save":"Kaydet","community.loading":"Yükleniyor...","community.title":"Topluluk","community.subtitle":"DüÅüncelerinizi paylaÅın ve diÄer robotik tutkunlarıyla etkileÅime geçin","community.newPoll":"Yeni Anket","community.composerPlaceholder":"Aklınızdan ne geçiyor? Birinden bahsetmek için @ kullanın","community.loadingPreview":"Ãnizleme yükleniyor...","community.addImages":"Görsel ekle (en fazla 10)","community.createPoll":"Anket oluÅtur","community.post":"PaylaÅ","community.joinTitle":"Sohbete katılın","community.joinText":"Gönderi paylaÅmak, anket oluÅturmak ve toplulukla etkileÅime geçmek için giriÅ yapın.","community.signIn":"GiriÅ Yap","community.noPosts":"Henüz gönderi yok","community.noPostsHint":"Toplulukla bir Åeyler paylaÅan ilk kiÅi olun!","community.activePolls":"Aktif Anketler","community.noActivePolls":"Aktif anket yok.","community.createFirstPoll":"İlkini oluÅturun","community.guidelinesTitle":"Topluluk Kuralları","community.guideline1":"Saygılı ve yapıcı olun","community.guideline2":"Robotik ve yapay zeka hakkında bilgi paylaÅın","community.guideline3":"Spam veya kiÅisel tanıtım yapmayın","community.guideline4":"İddialarınızı kaynaklarla destekleyin","createPost.error":"Gönderi oluÅturulamadı.","createPost.back":"TopluluÄa Dön","createPost.postingTo":"Toplulukta paylaÅılıyor","createPost.titlePlaceholder":"Bir baÅlık ekleyin...","createPost.addTitle":"BaÅlık ekle (isteÄe baÄlı)","createPost.contentPlaceholder":"Aklınızdan ne geçiyor? Birinden bahsetmek için @ kullanın...","createPost.addImage":"Görsel ekle","createPost.publish":"Yayınla","createSurvey.minOptionsError":"En az 2 seçenek gereklidir.","createSurvey.error":"Anket oluÅturulamadı.","createSurvey.back":"TopluluÄa Dön","createSurvey.title":"Anket OluÅtur","createSurvey.question":"Soru","createSurvey.questionPlaceholder":"Ne sormak istersiniz?","createSurvey.description":"Açıklama","createSurvey.optional":"(isteÄe baÄlı)","createSurvey.descriptionPlaceholder":"Biraz baÄlam ekleyin...","createSurvey.options":"Seçenekler","createSurvey.addOption":"Seçenek ekle","createSurvey.allowMultiple":"Birden fazla seçime izin ver","createSurvey.creating":"OluÅturuluyor...","createSurvey.submit":"Anket OluÅtur","advertise.statViews":"Aylık Görüntülenme","advertise.statVisitors":"Tekil Ziyaretçi","advertise.statCountries":"Ãlke","advertise.statArticles":"Makale / Ay","advertise.statCLevel":"Ãst Düzey Yönetici Okur","advertise.statEngagement":"EtkileÅim Oranı","advertise.formatSiteStoryName":"Site Haberi","advertise.formatSiteStoryDesc":"Marka mesajınızı doÄal biçimde entegre ederken sitenize trafik yönlendiren haber tarzı sponsorlu içerik. Editöryel içeriklerin yanında yer alır.","advertise.formatPollName":"Sponsorlu Anket","advertise.formatPollDesc":"Kullanıcılara markanız veya ürününüz hakkında soru soran etkileÅimli açılır anket. Anında etkileÅimle dikkat çeker ve deÄerli kitle içgörüleri toplar.","advertise.formatCategoryName":"Kategori SponsorluÄu","advertise.formatCategoryDesc":"Tüm bir içerik kategorisi genelinde özel markalaÅma. Logonuz, mesajlarınız ve baÄlantılarınız kategorideki her makalede yer alır.","advertise.formatBannerName":"Åerit ve Banner Reklamlar","advertise.formatBannerDesc":"Ana sayfadaki kayan borsa Åeridinde sabit sponsor görseli ve tüm sayfalarda premium banner yerleÅimleri. Maksimum görünürlük.","advertise.formatArticleName":"Sponsorlu Makale","advertise.formatArticleDesc":"SEO optimizasyonu, sosyal medya daÄıtımı ve sitede kalıcı yerleÅimle markanız altında yayımlanan tam uzunlukta editöryel içerik.","advertise.formatNewsletterName":"Bülten SponsorluÄu","advertise.formatNewsletterDesc":"120 binden fazla aboneye ulaÅan haftalık bültenimizde özel yerleÅim. Markanız, mesajınız ve harekete geçirici mesajınız için ayrılmıŠbölüm.","advertise.formatVideoName":"Video Marka YerleÅimi","advertise.formatVideoDesc":"Dünya genelinde mühendislere ve liderlere ulaÅan video içeriklerimizde video içi marka konumlandırma, ürün anılması ve görsel entegrasyonlar.","advertise.formatCustomName":"Ãzel İŠBirliÄi","advertise.formatCustomDesc":"Hedeflerinize göre uyarlanmıŠweb seminerleri, teknik incelemeler, araÅtırma raporları, etkinlik sponsorlukları ve entegre çok kanallı kampanyalar.","advertise.tagHighEngagement":"Yüksek EtkileÅim","advertise.tagInteractive":"EtkileÅimli","advertise.tagExclusive":"Ãzel","advertise.tagHighVisibility":"Yüksek Görünürlük","advertise.tagSeoOptimized":"SEO Optimize","advertise.tagReach":"120B+ EriÅim","advertise.tagVideo":"Video","advertise.tagTailored":"Size Ãzel","advertise.audienceEngineers":"Mühendisler ve GeliÅtiriciler","advertise.audienceCSuite":"Ãst Düzey Yöneticiler ve Direktörler","advertise.audienceResearchers":"AraÅtırmacılar ve Akademisyenler","advertise.audienceProductManagers":"Ãrün Yöneticileri","advertise.audienceOther":"DiÄer Profesyoneller","advertise.brandFortune":"Fortune 500 Åirketleri","advertise.brandVC":"Ãnde gelen risk sermayesi firmaları","advertise.brandStartups":"Ãncü robotik giriÅimleri","advertise.brandUniversities":"Küresel üniversiteler","advertise.brandGovernment":"Kamu kurumları","advertise.brandDefense":"Savunma sanayii firmaları","advertise.breadcrumbHome":"Ana Sayfa","advertise.breadcrumbAdvertise":"Reklam Verin","advertise.badge":"Medya İŠBirlikleri","advertise.heroTitleBefore":"Markanızı","advertise.heroTitleHighlight":"Robotik Endüstrisinin Ãnüne Ãıkarın","advertise.heroSubtitle":"The Robotics Media; robotik, yapay zekâ ve otomasyon profesyonelleri için önde gelen bilgi merkezidir. Teknolojinin geleceÄini Åekillendiren karar vericilerle baÄ kurun.","advertise.requestMediaKit":"Medya Kiti İsteyin","advertise.viewSolutions":"Ãözümleri Görün","advertise.solutionsEyebrow":"Ãözümler","advertise.solutionsT
2itle":"Reklam ve İŠBirliÄi Seçenekleri","advertise.solutionsSubtitle":"Maksimum etki ve ölçülebilir sonuçlar için tasarlanmıŠçeÅitli premium formatlarla kitlemize ulaÅın.","advertise.getPricing":"Fiyat Alın","advertise.audienceEyebrow":"Bizi Kimler Okuyor","advertise.audienceTitle":"Son Derece Nitelikli Bir Kitle","advertise.audienceSubtitle":"Okur kitlemiz; robotik ve yapay zekâ alanındaki dünyanın en yenilikçi Åirketlerinde görev yapan kıdemli mühendisler, üst düzey yöneticiler, araÅtırmacılar ve ürün liderlerinden oluÅur.","advertise.trustedBy":"Lider KuruluÅların Güveniyle","advertise.eventCtaTitle":"Robotik veya Yapay Zekâ EtkinliÄi mi Düzenliyorsunuz?","advertise.eventCtaSubtitle":"Maksimum görünürlük için etkinliklere özel iÅ birliÄi paketlerimizi keÅfedin.","advertise.eventPartnerships":"Etkinlik İŠBirlikleri","advertise.getStarted":"BaÅlayın","advertise.formTitle":"Birlikte Bir Åeyler İnÅa Edelim","advertise.formSubtitle":"Hedeflerinizi bizimle paylaÅın, medya ekibimiz 24 saat içinde size özel bir teklif hazırlasın.","advertise.mediaInquiries":"Medya Talepleri","advertise.partnerships":"İŠBirlikleri","advertise.thankYou":"TeÅekkürler!","advertise.thankYouMessage":"Talebinizi aldık. Medya ekibimiz 24 saat içinde size özel bir teklifle ulaÅacak.","advertise.fullNameLabel":"Ad Soyad *","advertise.fullNamePlaceholder":"Ahmet Yılmaz","advertise.emailLabel":"E-posta *","advertise.companyLabel":"Åirket / Ajans","advertise.companyPlaceholder":"Åirket Adı","advertise.interestLabel":"Neyle ilgileniyorsunuz?","advertise.optionAdvertising":"Reklam / Medya YerleÅimi","advertise.optionSiteStory":"Site Haberi (Sponsorlu Haber)","advertise.optionPoll":"Sponsorlu Anket","advertise.optionCategory":"Kategori SponsorluÄu","advertise.optionBanner":"Åerit ve Banner Reklamlar","advertise.optionArticle":"Sponsorlu Makale","advertise.optionNewsletter":"Bülten SponsorluÄu","advertise.optionVideo":"Video Marka YerleÅimi","advertise.optionCustom":"Ãzel İŠBirliÄi","advertise.optionMediaKit":"Medya Kiti Talebi","advertise.goalsLabel":"Hedeflerinizi bizimle paylaÅın","advertise.goalsPlaceholder":"Hedef kitle, kampanya hedefleri, bütçe aralıÄı, zaman çizelgesi...","advertise.sending":"Gönderiliyor...","advertise.sendInquiry":"Talebi Gönder","eventPartnership.pkgMediaName":"Medya Partneri","eventPartnership.tierEssential":"Temel","eventPartnership.pkgMediaFeat1":"Etkinlikler sayfamızda etkinlik listesi","eventPartnership.pkgMediaFeat2":"Sosyal medya duyurusu (1 gönderi)","eventPartnership.pkgMediaFeat3":"Etkinlikler bölümünde logo yerleÅimi","eventPartnership.pkgMediaFeat4":"Haftalık bültende etkinlik anılması","eventPartnership.pkgMediaFeat5":"Etkinlik sonrası deÄerlendirme makalesi","eventPartnership.pkgStrategicName":"Stratejik Partner","eventPartnership.tierProfessional":"Profesyonel","eventPartnership.pkgStrategicFeat1":"Medya Partneri paketindeki her Åey","eventPartnership.pkgStrategicFeat2":"Etkinlik öncesi özel öne çıkan makale","eventPartnership.pkgStrategicFeat3":"Sosyal medya kampanyası (5+ gönderi)","eventPartnership.pkgStrategicFeat4":"Etkinlik haftası boyunca ana sayfa banner'ı","eventPartnership.pkgStrategicFeat5":"KonuÅmacı/organizatör röportaj makalesi","eventPartnership.pkgStrategicFeat6":"Etkinlik kategorisi sponsorluÄu","eventPartnership.pkgStrategicFeat7":"Bültende ayrılmıŠözel bölüm","eventPartnership.pkgStrategicFeat8":"Canlı etkinlik haberciliÄi akıÅı","eventPartnership.pkgHeadlineName":"Ana Partner","eventPartnership.tierEnterprise":"Kurumsal","eventPartnership.pkgHeadlineFeat1":"Stratejik Partner paketindeki her Åey","eventPartnership.pkgHeadlineFeat2":"Ortak markalı içerik serisi (3+ makale)","eventPartnership.pkgHeadlineFeat3":"Video röportaj prodüksiyonu","eventPartnership.pkgHeadlineFeat4":"Sitemizde özel açılıŠsayfası","eventPartnership.pkgHeadlineFeat5":"Tam sosyal medya devralma (etkinlik günü)","eventPartnership.pkgHeadlineFeat6":"Ãzel bülten sponsorluÄu","eventPartnership.pkgHeadlineFeat7":"Etkinlik sonrası sektör raporu ortak yazarlıÄı","eventPartnership.pkgHeadlineFeat8":"Yıl boyu kategori sponsorluÄu","eventPartnership.pkgHeadlineFeat9":"Tüm kanallarda öncelikli yerleÅim","eventPartnership.pkgHeadlineFeat10":"Ãzel analiz ve yatırım getirisi panosu","eventPartnership.ctaGetStarted":"BaÅlayın","eventPartnership.ctaMostPopular":"En Popüler","eventPartnership.ctaContactUs":"Bize UlaÅın","eventPartnership.svcPreEventTitle":"Etkinlik Ãncesi Makaleler","eventPartnership.svcPreEventDesc":"Beklenti oluÅturan özel editöryel haberler. KonuÅmacı profilleri, program öne çıkanları ve sektörel baÄlam içerikleri.","eventPartnership.svcVideoT
2itle":"Video Prodüksiyonu","eventPartnership.svcVideoDesc":"KonuÅmacılarla profesyonel röportaj kayıtları, kamera arkası içerikler ve etkinlik öne çıkan görüntüleri.","eventPartnership.svcSocialTitle":"Sosyal Medya YaygınlaÅtırma","eventPartnership.svcSocialDesc":"LinkedIn, X ve kanallarımız genelinde 500 binden fazla robotik profesyoneline ulaÅan çok platformlu kampanya.","eventPartnership.svcLiveTitle":"Canlı HaberleÅtirme","eventPartnership.svcLiveDesc":"EtkinliÄinizden canlı makaleler, sosyal medya akıÅları ve fotoÄraf/video içerikleriyle gerçek zamanlı haber yapımı.","eventPartnership.svcNewsletterTitle":"Bülten İçerikleri","eventPartnership.svcNewsletterDesc":"Robotik ve yapay zekâ sektöründe 120 binden fazla aboneye ulaÅan haftalık bültenimizde özel yerleÅim.","eventPartnership.svcReportsTitle":"Etkinlik Sonrası Raporlar","eventPartnership.svcReportsDesc":"Kapsamlı deÄerlendirme makaleleri, temel çıkarım özetleri ve sektörel etki analizi içerikleri.","eventPartnership.svcLandingTitle":"Ãzel AçılıŠSayfası","eventPartnership.svcLandingDesc":"Sitemizde program, konuÅmacılar, kayıt çaÄrısı ve ilgili makaleleri içeren özel markalı etkinlik sayfası.","eventPartnership.svcAnalyticsTitle":"Analiz ve Raporlama","eventPartnership.svcAnalyticsDesc":"Ayrıntılı performans ölçümleri: gösterimler, tıklamalar, etkileÅim oranları ve kitle demografisi.","eventPartnership.statVisitors":"Aylık Ziyaretçi","eventPartnership.statCountries":"Ãlke","eventPartnership.statSocialReach":"Sosyal EriÅim","eventPartnership.statNewsletterSubs":"Bülten Abonesi","eventPartnership.breadcrumbHome":"Ana Sayfa","eventPartnership.breadcrumbAdvertise":"Reklam Verin","eventPartnership.breadcrumbEvent":"Etkinlik İŠBirliÄi","eventPartnership.badge":"Etkinlik İŠBirlikleri","eventPartnership.heroTitleBefore":"Robotik ve Yapay Zekâ","eventPartnership.heroTitleHighlight":"EtkinliÄinizin","eventPartnership.heroTitleAfter":"Etkisini Artırın","eventPartnership.heroSubtitle":"Etkinlik öncesi heyecandan etkinlik sonrası etki analizine kadar, etkinliÄinizi küresel robotik topluluÄuna ulaÅan haftalarca süren bir içerik kampanyasına dönüÅtürürüz.","eventPartnership.viewPackages":"Paketleri Görün","eventPartnership.contactUs":"Bize UlaÅın","eventPartnership.howItWorks":"Nasıl ÃalıÅır","eventPartnership.howItWorksTitle":"Sizin EtkinliÄiniz, Bizim Kitlemiz","eventPartnership.step1Title":"EtkinliÄinizi Bize Anlatın","eventPartnership.step1Desc":"Etkinlik ayrıntılarınızı, hedef kitlenizi ve iÅ birliÄi hedeflerinizi paylaÅın.","eventPartnership.step2Title":"Bir Plan Hazırlarız","eventPartnership.step2Desc":"Ekibimiz size özel bir medya haberciliÄi ve tanıtım stratejisi tasarlar.","eventPartnership.step3Title":"YaygınlaÅtırırız","eventPartnership.step3Desc":"Ãok kanallı tanıtım: makaleler, sosyal medya, bülten ve daha fazlası.","eventPartnership.step4Title":"Etkiyi Ãlçeriz","eventPartnership.step4Desc":"EriÅim, etkileÅim ve kitle daÄılımına dair ayrıntılı analizler.","eventPartnership.whatWeOffer":"Neler Sunuyoruz","eventPartnership.whatWeOfferTitle":"Uçtan Uca Etkinlik HaberciliÄi","eventPartnership.whatWeOfferSubtitle":"EtkinliÄinizin robotik ve yapay zekâ topluluÄundaki görünürlüÄünü ve etkisini en üst düzeye çıkarmak için ihtiyacınız olan her Åey.","eventPartnership.packagesEyebrow":"Paketler","eventPartnership.packagesTitle":"İŠBirliÄi Seviyenizi Seçin","eventPartnership.packagesSubtitle":"Her paket özelleÅtirilebilir. EtkinliÄinizin hedeflerine ve kitlesine uygun bir plan oluÅturmak için bize ulaÅın.","eventPartnership.mostPopular":"En Popüler","eventPartnership.getStarted":"BaÅlayın","eventPartnership.packagesNote":"Tüm paketler özelleÅtirilebilir. Fiyatlandırma; etkinlik büyüklüÄüne, süresine ve haberleÅtirme kapsamına göre belirlenir.","eventPartnership.eventsCovered":"Haberini YaptıÄımız Etkinlikler","eventPartnership.formTitle":"EtkinliÄinizi Bize Anlatın","eventPartnership.formSubtitle":"Etkinlik ayrıntılarınızı payla
2Åın, 48 saat içinde size özel bir iÅ birliÄi planı önerelim.","eventPartnership.contactEventLabel":"Etkinlik İŠBirlikleri","eventPartnership.contactGeneralLabel":"Genel Talepler","eventPartnership.earlyBirdTitle":"Erken Rezervasyon Avantajı","eventPartnership.earlyBirdDesc":"Maksimum haber etkisi ve en iyi iÅ birliÄi koÅulları için etkinliÄinizden en az 4 hafta önce bize ulaÅın.","eventPartnership.thankYou":"TeÅekkürler!","eventPartnership.thankYouMessage":"Etkinlik iÅ birliÄi talebinizi aldık. Ekibimiz inceleyerek 48 saat içinde size özel bir teklifle geri dönecek.","eventPartnership.nameLabel":"Adınız *","eventPartnership.namePlaceholder":"AyÅe Yılmaz","eventPartnership.emailLabel":"E-posta *","eventPartnership.orgLabel":"Kurum / Etkinlik Adı *","eventPartnership.packageInterestLabel":"Hangi paket ilginizi çekiyor?","eventPartnership.optionEvent":"Etkinlik İŠBirliÄi","eventPartnership.optionMedia":"Medya Partneri Paketi","eventPartnership.optionStrategic":"Stratejik Partner Paketi","eventPartnership.optionHeadline":"Ana Partner Paketi","eventPartnership.optionCustom":"Ãzel İŠBirliÄi","eventPartnership.messageLabel":"EtkinliÄinizi bize anlatın","eventPartnership.messagePlaceholder":"Etkinlik tarihi, beklenen katılımcı sayısı, hedef kitle, ne tür bir haberleÅtirme aradıÄınız...","eventPartnership.sending":"Gönderiliyor...","eventPartnership.submitInquiry":"Etkinlik İŠBirliÄi Talebi Gönder","social.linkedinDesc":"Sektörel içgörüler, Åirket haberleri ve profesyonel aÄ kurma. Robotik liderleri için en aktif kanalımız.","social.linkedinCta":"LinkedIn'de Takip Edin","social.twitterDesc":"Son dakika haberleri, canlı etkinlik akıÅları ve gerçek zamanlı sektör yorumları. Robotik dünyasından hızlı güncellemeler.","social.twitterCta":"X'te Takip Edin","social.youtubeDesc":"Robot demoları, uzman röportajları, etkinlik öne çıkanları ve derinlemesine teknoloji anlatımları.","social.youtubeCta":"YouTube'da Abone Olun","social.instagramDesc":"Kamera arkası, görsel hikâyeler, etkinlik haberleri ve robotik ile yapay zekânın daha eÄlenceli yönü.","social.instagramCta":"Instagram'da Takip Edin","social.facebookDesc":"Daha geniÅ robotik kitlesi için topluluk tartıÅmaları, makale paylaÅımları ve etkinlik duyuruları.","social.facebookCta":"Facebook'ta BeÄenin","social.newsletterName":"Haftalık Bülten","social.newsletterDesc":"Her Cuma gelen kutunuza ulaÅan, en önemli robotik ve yapay zekâ haberlerinden derlenmiÅ haftalık özet.","social.newsletterCta":"Abone Olun","social.rssName":"RSS Beslemesi","social.rssDesc":"Gerçek zamanlı makale güncellemeleri için RSS beslememizi okuyucunuza ekleyin. Her haberden haberdar olmak için ideal.","social.rssCta":"RSS Beslemesini Alın","legal.updatedDate":"30 Mart 2026","legal.privacy.s1":"1. TopladıÄımız Bilgiler","legal.privacy.s2":"2. Bilgilerinizi Nasıl Kullanırız","legal.privacy.s3":"3. Bilgi PaylaÅımı","legal.privacy.s4":"4. Veri GüvenliÄi","legal.privacy.s5":"5. Haklarınız","legal.privacy.s6":"6. Veri Saklama","legal.privacy.s7":"7. Ãocukların GizliliÄi","legal.privacy.s8":"8. Bu Politikadaki DeÄiÅiklikler","legal.privacy.s9":"9. Bize UlaÅın","legal.terms.s1":"1. KoÅulların Kabulü","legal.terms.s2":"2. Kullanıcı Hesapları","legal.terms.s3":"3. Kullanıcı İçeriÄi","legal.terms.s4":"4. Fikri Mülkiyet","legal.terms.s5":"5. Yasaklı Faaliyetler","legal.terms.s6":"6. Fesih","legal.terms.s7":"7. Garanti Reddi","legal.terms.s8":"8. SorumluluÄun Sınırlandırılması","legal.terms.s9":"9. Geçerli Hukuk","legal.terms.s10":"10. KoÅullardaki DeÄiÅiklikler","legal.terms.s11":"11. İletiÅim","legal.cookies.s1":"1. Ãerezler Nedir","legal.cookies.s2":"2. Ãerezleri Nasıl Kullanırız","legal.cookies.s3":"3. KullandıÄımız Belirli Ãerezler","legal.cookies.colCookie":"Ãerez","legal.cookies.colType":"Tür","legal.cookies.colPurpose":"Amaç","legal.cookies.colDuration":"Süre","legal.cookies.s4":"4. Ãçüncü Taraf Ãerezleri","legal.cookies.s5":"5. Ãerezleri Yönetme","legal.cookies.s6":"6. Yerel Depolama","legal.cookies.s7":"7. Bu Politikadaki DeÄiÅiklikler","legal.cookies.s8":"8. İletiÅim","sitemap.thisWeekIn":"{name} kategorisinde bu hafta","sitemap.introBefore":"Tüm merkezler","sitemap.introAfter":"tek bir yerde â haber k
2ategorileri ve konuları, Åirket sektörleri, etiketler ve etkinlikler.","sitemap.sectorNoteBefore":"Her sektörün ayrıca bir","sitemap.sectorNoteAfter":"sayfası vardır:","events.countdown.happeningNow":"Åimdi BaÅlıyor","surveyPopup.voteCount":"{count} oy","surveyPopup.votesSoFar":"Åu ana kadar {count} oy","quickRead.minRead":"{count} dk okuma","createPost.minRead":"~{count} dk okuma","createSurvey.optionPlaceholder":"Seçenek {number}","community.votesCount":"{count} oy","community.optionsCount":"{count} seçenek"},ta={"lang.switch":"Language","lang.en":"English","lang.tr":"Türkçe","common.viewAll":"View all","common.seeAll":"See All","common.readArticle":"Read Article","common.readMore":"Read more","common.loadMore":"Load more","common.allNews":"All News â","common.search":"Search","common.subscribe":"Subscribe","common.home":"Home","common.companies":"Companies","common.endOfList":"You've reached the end","nav.searchPlaceholder":"Search articles...","nav.signIn":"Sign in","nav.dashboard":"Dashboard","nav.tagline":"The Global Voice of Robotics & AI","nav.advertise":"Advertise","nav.services":"TRM Digital","nav.community":"Community","nav.partnership":"Partnership","nav.contact":"Contact","menu.news":"News","menu.robotics-news":"Robotics News","menu.companies":"Companies","menu.startups":"Startups","menu.events":"Events","menu.stocks":"Stocks","menu.community":"Community","menu.videos":"Videos","menu.robotics":"Robotics","menu.humanoid-robots":"Humanoid Robots","menu.humanoid":"Humanoid","menu.industrial-robots":"Industrial Robots","menu.surgical-robotics":"Surgical Robotics","menu.medical-robotics":"Medical Robotics","menu.healthcare":"Healthcare","menu.drones":"Drones","menu.drones-uavs":"Drones & UAVs","menu.autonomous-vehicles":"Autonomous Vehicles","menu.autonomous":"Autonomous","menu.ai":"AI","menu.ai-technology":"AI & Technology","menu.artificial-intelligence":"Artificial Intelligence","menu.automation":"Automation","menu.defense":"Defense","menu.military-defense":"Military & Defense","menu.energy":"Energy","menu.engineering":"Engineering","menu.agritech":"AgriTech","menu.space":"Space","menu.world-cup":"World Cup","auth.signIn":"Sign In","auth.signOut":"Sign Out","user.dashboard":"Dashboard","user.myProfile":"My Profile","user.community":"Community","user.mySurveys":"My Surveys","login.welcome":"Welcome Back","login.subtitle":"Sign in to your account","login.email":"Email","login.password":"Password","login.passwordPlaceholder":"Your password","login.signingIn":"Signing in...","login.or":"or","login.noAccount":"Don't have an account?","login.createOne":"Create one","login.failed":"Login failed. Please check your credentials.","home.recentStories":"Recent Stories","home.startupRadar":"Startup Radar","home.exploreAll":"Explore All","search.companies":"Companies","search.sectors":"Sectors","search.products":"Robots & Products","search.news":"News","search.tags":"Tags","search.typeToSearch":"Type at least 2 characters to search","search.hint":"News, companies, sectors, tags & robots","search.noResults":"No results found","search.noResultsHint":"Try different keywords","search.searching":"Searching...","search.seeAll":'See all {n} results for "{q}"',"search.resultsPage.eyebrow":"Search results","prices.allRobots":"All robots","prices.pricedOnly":"Priced only","prices.lowest":"Lowest price","prices.average":"Average","prices.highest":"Highest","prices.models":"Models tracked","prices.allAvailability":"All availability","prices.disclaimer":'Prices are indicative, sourced from manufacturers and public reporting, and may change. "Price on request" indicates quote-only models. Always confirm current pricing with the manufacturer.',"prices.empty":"No robot prices listed yet.","prices.emptyHint":"Prices are added by our editors and will appear here.","home.latestNews":"Latest Robotics News","home.latestNewsSubtitle":"Breaking robot, AI & automation coverage from The Robotics Media","home.trending":"Trending in Robotics","home.trendingSubtitle":"Rising searches on Google · updated daily","digitalBanner.title":"Digital work for companies that build machines","digitalBanner.body":"TRM Digital is the studio arm of this newsroom. Websites, custom softw
2are, social, SEO, video and mobile apps â built for robotics manufacturers and integrators, and nobody else.","digitalBanner.cta":"See the studio","digitalBanner.web":"Website design","digitalBanner.software":"Software development","digitalBanner.social":"Social media","digitalBanner.seo":"SEO & content","digitalBanner.video":"Video & visuals","digitalBanner.apps":"Mobile apps","prices.eyebrow":"Robot Price Index","prices.faq":"Frequently asked questions","newsletter.eyebrow":"Weekly Newsletter","newsletter.title":"The week in robotics, in one email","newsletter.subtitle":"Join robotics professionals and enthusiasts getting the most important robot, AI and automation news every week â curated by The Robotics Media newsroom.","newsletter.namePlaceholder":"Your name (optional)","newsletter.emailPlaceholder":"[email protected]","newsletter.cta":"Subscribe â itâs free","newsletter.subscribing":"Subscribingâ¦","newsletter.noSpam":"No spam. Unsubscribe anytime.","newsletter.successTitle":"You're subscribed!","footer.company":"Company","footer.newsletter":"Newsletter","footer.advertise":"Advertise","footer.services":"TRM Digital","footer.events":"Events","footer.robotPrices":"Robot Prices","footer.privacy":"Privacy Policy","footer.terms":"Terms of Service","footer.cookies":"Cookie Policy","footer.sitemap":"Sitemap","footer.about":"About Us","footer.editorial":"Editorial Guidelines","footer.corrections":"Corrections","footer.categories":"Categories","footer.communityCol":"Community","footer.resources":"Resources","footer.communityFeed":"Community Feed","footer.createPost":"Create Post","footer.createPoll":"Create Poll","footer.myDashboard":"My Dashboard","footer.register":"Register","footer.allTags":"All Tags","footer.rssFeed":"RSS Feed","footer.mediaKit":"Media Kit","footer.contactUs":"Contact Us","footer.poweredBy":"Powered by","footer.aiJournalism":"AI-Driven Journalism","footer.aiJournalismDesc":"Content generated & curated with AI","footer.browseSector":"Browse by Sector","footer.fullSitemap":"Full sitemap","footer.allRights":"All rights reserved.","footer.privacyShort":"Privacy","footer.termsShort":"Terms","footer.cookiesShort":"Cookies","footer.operational":"All systems operational"},sa={"lang.switch":"Dil","lang.en":"English","lang.tr":"Türkçe","common.viewAll":"Tümünü gör","common.seeAll":"Tümü","common.readArticle":"Haberi Oku","common.readMore":"Devamını oku","common.loadMore":"Daha fazla yükle","common.allNews":"Tüm Haberler â","common.search":"Ara","common.subscribe":"Abone ol","common.home":"Anasayfa","common.companies":"Åirketler","common.endOfList":"Sona ulaÅtınız","nav.searchPlaceholder":"Haber ara...","nav.signIn":"GiriÅ yap","nav.dashboard":"Panel","nav.tagline":"Robotik ve Yapay Zekânın Küresel Sesi","nav.advertise":"Reklam","nav.services":"TRM Digital","nav.community":"Topluluk","nav.partnership":"İŠBirliÄi","nav.contact":"İletiÅim","menu.news":"Haberler","menu.robotics-news":"Robotik Haberleri","menu.companies":"Åirketler","menu.startups":"GiriÅimler","menu.events":"Etkinlikler","menu.stocks":"Borsa","menu.community":"Topluluk","menu.videos":"Videolar","menu.robotics":"Robotik","menu.humanoid-robots":"İnsansı Robotlar","menu.humanoid":"İnsansı","menu.industrial-robots":"Endüstriyel Robotlar","menu.surgical-robotics":"Cerrahi Robotik","menu.medical-robotics":"Medikal Robotik","menu.healthcare":"SaÄlık","menu.drones":"Dronlar","menu.drones-uavs":"Dronlar ve İHAâlar","menu.autonomous-vehicles":"Otonom Araçlar","menu.autonomous":"Otonom","menu.ai":"Yapay Zekâ","menu.ai-technology":"Yapay Zekâ ve Teknoloji","menu.artificial-intelligence":"Yapay Zekâ","menu.automation":"Otomasyon","menu.defense":"Savunma","menu.military-defense":"Askeri ve Savunma","menu.energy":"Enerji","menu.engineering":"Mühendislik","menu.agritech":"Tarım Teknolojisi","menu.space":"Uzay","menu.world-cup":"Dünya Kupası","auth.signIn":"GiriÅ Yap","auth.signOut":"ÃıkıŠYap","user.dashboard":"Panel","user.myProfile":"Profilim","user.community":"Topluluk","user.mySurveys":"Anketlerim","login.welcome":"Tekrar HoÅ Geldin","login.subtitle":"Hesabına giriÅ yap","login.email":"E-posta","login.password":"Åifre","login.passwordPlaceholder":"Åifreniz","login.signingIn":"GiriÅ yapılıyor...","login.or":"veya","login.noAccount":"Hesabın yok mu?","login.createOne":"Hesap oluÅtur","login.failed":"GiriÅ baÅarısız. Bilgilerinizi kontrol edin.","home.recentStories":"Son Yazılar","home.startupRadar":"GiriÅim Radarı","home.exploreAll":"Tümünü KeÅfet","search.companies":"Åirketler","search.sectors":"Sektörler","search.products":"Robotlar & Ãrünler","search.news":"Haberler","search.tags":"Etiketler","search.typeToSearch":"Aramak için en az 2 karakter yazın","search.hint":"Haberler, Åirketler, sektörler, etiketler & robotlar","search.noResults":"Sonuç bulunamadı","
2search.noResultsHint":"Farklı kelimeler deneyin","search.searching":"Aranıyor...","search.seeAll":'"{q}" için {n} sonucun tümünü gör',"search.resultsPage.eyebrow":"Arama sonuçları","prices.allRobots":"Tüm robotlar","prices.pricedOnly":"Sadece fiyatlı","prices.lowest":"En düÅük fiyat","prices.average":"Ortalama","prices.highest":"En yüksek","prices.models":"Takip edilen model","prices.allAvailability":"Tüm durumlar","prices.disclaimer":'Fiyatlar yaklaÅıktır; üreticiler ve kamuya açık kaynaklardan derlenir ve deÄiÅebilir. "Talep üzerine fiyat" yalnızca teklifle satılan modelleri belirtir. Güncel fiyatı her zaman üreticiyle teyit edin.',"prices.empty":"Henüz robot fiyatı eklenmedi.","prices.emptyHint":"Fiyatlar editörlerimiz tarafından eklenir ve burada görünür.","home.latestNews":"Son Robotik Haberleri","home.latestNewsSubtitle":"The Robotics Mediaâdan robot, yapay zekâ ve otomasyon haberleri","home.trending":"Robotikte Gündem","home.trendingSubtitle":"Googleâda yükselen aramalar · günlük güncellenir","digitalBanner.title":"Makine üreten Åirketler için dijital iÅler","digitalBanner.body":"TRM Digital, bu yayının stüdyo kolu. Web sitesi, özel yazılım, sosyal medya, SEO, video ve mobil uygulama â yalnızca robotik üreticileri ve entegratörler için.","digitalBanner.cta":"Stüdyoyu gör","digitalBanner.web":"Web sitesi tasarımı","digitalBanner.software":"Yazılım geliÅtirme","digitalBanner.social":"Sosyal medya","digitalBanner.seo":"SEO & içerik","digitalBanner.video":"Video & görsel","digitalBanner.apps":"Mobil uygulama","prices.eyebrow":"Robot Fiyat Endeksi","prices.faq":"Sıkça sorulan sorular","newsletter.eyebrow":"Haftalık Bülten","newsletter.title":"Haftanın robotik özeti, tek e-postada","newsletter.subt
2itle":"En önemli robot, yapay zekâ ve otomasyon haberlerini her hafta alın â The Robotics Media editör ekibi tarafından derlenir.","newsletter.namePlaceholder":"Adınız (opsiyonel)","newsletter.emailPlaceholder":"[email protected]","newsletter.cta":"Abone ol â ücretsiz","newsletter.subscribing":"Abone olunuyorâ¦","newsletter.noSpam":"Spam yok. İstediÄiniz zaman çıkabilirsiniz.","newsletter.successTitle":"Abone oldunuz!","footer.company":"Kurumsal","footer.newsletter":"Bülten","footer.advertise":"Reklam","footer.services":"TRM Digital","footer.events":"Etkinlikler","footer.robotPrices":"Robot Fiyatları","footer.privacy":"Gizlilik Politikası","footer.terms":"Kullanım Åartları","footer.cookies":"Ãerez Politikası","footer.sitemap":"Site Haritası","footer.about":"Hakkımızda","footer.editorial":"Editöryel İlkeler","footer.corrections":"Düzeltmeler","footer.categories":"Kategoriler","footer.communityCol":"Topluluk","footer.resources":"Kaynaklar","footer.communityFeed":"Topluluk AkıÅı","footer.createPost":"Gönderi OluÅtur","footer.createPoll":"Anket OluÅtur","footer.myDashboard":"Panelim","footer.register":"Kayıt Ol","footer.allTags":"Tüm Etiketler","footer.rssFeed":"RSS AkıÅı","footer.mediaKit":"Medya Kiti","footer.contactUs":"Bize UlaÅın","footer.poweredBy":"Destekleyen","footer.aiJournalism":"Yapay Zekâ Destekli Gazetecilik","footer.aiJournalismDesc":"İçerikler yapay zekâ ile üretilir ve derlenir","footer.browseSector":"Sektöre Göre Gözat","footer.fullSitemap":"Tüm site haritası","footer.allRights":"Tüm hakları saklıdır.","footer.privacyShort":"Gizlilik","footer.termsShort":"Åartlar","footer.cookiesShort":"Ãerezler","footer.operational":"Tüm sistemler çalıÅıyor"},At={en:{...ta,...Zs},tr:{...sa,...ea}},fe="en",aa=["en","tr"];function tt(t){for(const s of aa)if(s!==fe&&(t===`/${s}`||t.startsWith(`/${s}/`)))return{locale:s,path:t.slice(s.length+1)||"/"};return{locale:fe,path:t}}function dt(){return typeof window>"u"||window.location.pathname==="/tr"||window.location.pathname.startsWith("/tr/")?fe:tt(window.location.pathname).locale}function ht(t,s=dt()){if(/^https?:\/\//.test(t)||t.startsWith("#")||t.startsWith("mailto:"))return t;const{path:a}=tt(t);return s===fe?a:a==="/"?`/${s}`:`/${s}${a}`}const rs=l.createContext({locale:fe,t:t=>t,setLocale:()=>{}}),K=()=>l.useContext(rs),xt=()=>{const{t}=K();return s=>{if(!s)return s;const a="menu."+s.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),r=t(a);return r===a?s:r}},ra=({children:t})=>{const[s,a]=l.useState(dt());l.useEffect(()=>{try{localStorage.getItem("locale")==="tr"&&localStorage.removeItem("locale")}catch{}},[]),l.useEffect(()=>{const n=()=>a(dt());return window.addEventListener("popstate",n),()=>window.removeEventListener("popstate",n)},[]),l.useEffect(()=>{document.documentElement.lang=s;try{localStorage.setItem("locale",s)}catch{}},[s]);const r=(n,c)=>{var b,m;let o=((b=At[s])==null?void 0:b[n])??((m=At[fe])==null?void 0:m[n])??n;if(c)for(const[x,j]of Object.entries(c))o=o.replace(`{${x}}`,String(j));return o},i=n=>{if(n===s)return;const{path:c}=tt(window.location.pathname),o=ht(c,n)+window.location.search+window.location.hash;window.history.pushState({},"",o),window.dispatchEvent(new PopStateEvent("popstate")),a(n),window.scrollTo(0,0)};return e.jsx(rs.Provider,{value:{locale:s,t:r,setLocale:i},children:t})},A=({to:t,children:s,onClick:a,target:r,rel:i,scrollToTop:n=!0,...c})=>{const o=/^https?:\/\//.test(t)||r==="_blank",b=o?t:ht(t),m=x=>{a&&a(x),!o&&(x.defaultPrevented||x.metaKey||x.ctrlKey||x.shiftKey||x.altKey||x.button!==0||(x.preventDefault(),I(t),n&&window.scrollTo(0,0)))};return e.jsx("a",{href:b,onClick:m,target:r,rel:o?i||"noopener noreferrer":i,...c,children:s})},st="/api/v1";function na(){return typeof window>"u"?"en":window.location.pathname==="/tr"||window.location.pathname.startsWith("/tr/")?"tr":"en"}function ia(t){const s=na();return s==="en"?t:t+(t.includes("?")?"&":"?")+"lang="+s}async function V(t){const s=await fetch(`${st}${ia(t)}`,{headers:{Accept:"application/json"}});if(!s.ok)throw new Error(`API error: ${s.status}`);return s.json()}async function la(){return V("/homepage")}async function Rt(t){return V(`/articles/${t}`)}async function Xn(t){const s=await V(`/authors/${encodeURIComponent(t)}`),a=Lt(s),r=Lt((a==null?void 0:a.data)??a),i=(a==null?void 0:a.author)??(r==null?void 0:r.author)??r,n=(a==null?void 0:a.articles)??(r==null?void 0:r.articles)??[];return{author:i,articles:Array.isArray(n)?n.map(oa):[]}}function Lt(t){if(t&&typeof t=="object"&&"data"in t){const s=t.data;if(s&&typeof s=="object")return s}return t}function oa(t,s){const a=t&&typeof t=="object"?t:{};return{id:a.id??s+1,title:a.title??"",slug:a.slug??"",subtitle:a.subtitle??null,excerpt:a.excerpt??null,content:a.content??null,category:a.category??null,category_slug:a.category_slug??null,author:a.author??null,author_slug:a.author_slug??null,tags:a.tags??[],companies:a.companies,thumbnail:a.thumbnail??a.image??null,cover_image:a.cover_image??a.image??null,section:a.section??null,is_featured:a.is_featured??
2!1,is_trending:a.is_trending??!1,reading_time:a.reading_time??0,view_count:a.view_count??0,comments_count:a.comments_count??0,published_at:a.published_at??null,time_ago:a.time_ago??null,og_title:a.og_title??null,og_description:a.og_description??null,og_image:a.og_image??a.image??null}}async function ca(t,s=1,a){const r=a!=null&&a.days?`&days=${a.days}`:"";return V(`/categories/${t}?page=${s}${r}`)}async function Qn(t=1,s){const a=s!=null&&s.days?`&days=${s.days}`:"";return V(`/articles?per_page=18&page=${t}${a}`)}async function Zn(){return V("/company-sectors")}async function ei(t,s,a=1,r){const i=new URLSearchParams({page:String(a),per_page:"24"});return s&&i.set("country",s),r&&i.set("search",r),V(`/company-sectors/${t}?${i.toString()}`)}async function ti(t){return V(`/company-sectors/${t}/market`)}async function si(t,s=1){return V(`/company-sectors/${t}/news?page=${s}`)}async function ai(t,s){return V(`/company-sectors/${t}/market/types/${s}`)}async function ri(t,s,a){return V(`/company-sectors/${t}/market/types/${s}/companies/${a}`)}async function ni(t,s,a,r){return V(`/company-sectors/${t}/market/types/${s}/companies/${a}/products/${r}`)}async function ii(){return V("/tags")}async function li(){return V("/sitemap")}async function oi(t,s=1){return V(`/tags/${t}?page=${s}`)}async function ci(t,s){const a=new URLSearchParams;t&&a.set("type",t),s&&a.set("topic",s);const r=a.toString();return V(`/events${r?"?"+r:""}`)}async function di(t){return V(`/events/${t}`)}async function ui(t,s){return V(`/startups/${t}/products/${s}`)}async function mi(t){return V(`/product-categories/${t}`)}async function gi(){return V("/world-cup-2026")}async function pi(t){const s=t?Object.entries(t).filter(([,a])=>a).map(([a,r])=>`${a}=${r}`).join("&"):"";return V(`/startups${s?"?"+s:""}`)}async function hi(t){const s=await fetch(`${st}/contact`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)});if(!s.ok)throw new Error(`API error: ${s.status}`);return s.json()}async function da(t,s=5){return V(`/search?q=${encodeURIComponent(t)}&limit=${s}`)}async function ua(){return V("/trends/trending")}async function xi(t,s="today 12-m"){return V(`/trends/interest?q=${encodeURIComponent(t.join(","))}&date=${encodeURIComponent(s)}`)}async function fi(t={}){const s=new URLSearchParams(t).toString();return V(`/robot-prices${s?`?${s}`:""}`)}async function bi(t,s={}){const a=new URLSearchParams(s).toString();return V(`/robot-prices/${t}${a?`?${a}`:""}`)}async function yi(t,s,a="newsletter-page"){const r=await fetch(`${st}/newsletter/subscribe`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({email:t,name:s,source:a})}),i=await r.json().catch(()=>({}));if(!r.ok)throw new Error((i==null?void 0:i.message)||"Subscription failed");return i}async function vi(t){const s=await fetch(`${st}/startups/apply`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)}),a=await s.json().catch(()=>({}));if(!s.ok)throw new Error((a==null?void 0:a.message)||`API error: ${s.status}`);return a}async function ji(){return V("/stocks")}async function ki(t,s=1){return V(`/stocks/${t}?page=${s}`)}const Ee={query:"",articles:{items:[],total:0},companies:{items:[],total:0},sectors:{items:[],total:0},tags:{items:[],total:0},products:{items:[],total:0}},ma=({isOpen:t,onClose:s})=>{const{t:a}=K(),[r,i]=l.useState(""),[n,c]=l.useState(Ee),[o,b]=l.useState(!1),[m,x]=l.useState(!1),j=l.useRef(null),P=l.useRef(null);l.useEffect(()=>(t?(document.body.style.overflow="hidden",setTimeout(()=>{var h;return(h=j.current)==null?void 0:h.focus()},100)):(document.body.style.overflow="",i(""),c(Ee),x(!1)),()=>{document.body.style.overflow=""}),[t]),l.useEffect(()=>{const h=u=>{(u.metaKey||u.ctrlKey)&&u.key==="k"&&u.preventDefault(),u.key==="Escape"&&t&&s()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[t,s]);const d=l.useCallback(h=>{if(h.trim().length<2){c(Ee),x(!1);return}b(!0),da(h.trim(),5).then(u=>{c(u),x(!0)}).catch(()=>{c(Ee),x(!0)}).finally(()=>b(!1))},[]),f=h=>{i(h),P.current&&clearTimeout(P.current),P.current=setTimeout(()=>d(h),300)},g=h=>{s(),I(h)},k=()=>g(`/search?q=${encodeURIComponent(r.trim())}`);if(!t)return null;const C=n.articles.total+n.companies.total+n.sectors.total+n.tags.total+n.products.total;return mt.createPortal(e.jsxs("div",{style:{position:"fixed",inset:0,zIndex:9998},children:[e.jsx("div",{onClick:s,style:{position:"absolute",inset:0,background:"rgba(0,0,0,0.6)",backdropFilter:"blur(4px)"}}),e.jsxs("div",{style:{position:"relative",maxWidth:680,width:"95%",margin:"80px auto 0",background:"#fff",borderRadius:16,boxShadow:"0 25px 60px rgba(0,0,0,0.3)",maxHeight:"calc(100vh - 120px)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"16px 20px",borderBottom:"1px solid #e5e7eb"},children:[e.jsx(Re,{size:20,style:{color:"#9ca3af",flexShrink:0}}),e.jsx("input",{ref:j,type:"text",value:r,onChange:h=>f(h.target.value),placeholder:a("nav.searchPlaceholder"),style:{flex:1,border:"none",outline:"none",fontSize:16,fontWeight:500,color:"#111827",background:"transparent"}}),r&&e.jsx("button",{onClick:()=>{var h;i(""),c(Ee),x(!1),(h=j.current)==null||h.focus()},style:{background:"none",border:"none",cursor:"pointer",padding:4},children:e.jsx(le,{size:18,style:{color:"#9ca3af"}})}),e.jsx("button",{onClick:s,style:{background:"#f3f4f6",border:"none",borderRadius:6,padding:"4px 10px",fontSize:11,fontWeight:700,color:"#6b7280",cursor:"pointer"},children:"ESC"})]}),e.jsxs("div",{style:{flex:1,overflowY:"auto",padding:"8px 0"},children:[o&&e.jsx("div",{style:{textAlign:"center",padding:40,color:"#9ca3af",fontSize:14},children:a("search.searching")}),!o&&!m&&r.length<2&&e.jsxs("div",{style:{textAlign:"center",padding:40},children:[e.jsx(Re,{size:32,style:{color:"#d1d5db",margin:"0 auto 12px"}}),e.jsx("p",{style:{color:"#9ca3af",fontSize:14},children:a("search.typeToSearch")}),e.jsx("p",{style:{color:"#d1d5db",fontSize:12,marginTop:4},children:a("search.hint")})]}),!o&&m&&C===0&&e.jsxs("div",{style:{textAlign:"center",padding:40},children:[e.jsx("p",{style:{color:"#6b7280",fontSize:14,fontWeight:600},children:a("search.noResults")}),e.jsx("p",{style:{color:"#9ca3af",fontSize:13,marginTop:4},children:a("search.noResultsHint")})]}),!o&&m&&C>0&&e.jsxs(e.Fragment,{children:[e.jsx(Ce,{title:a("search.companies"),icon:e.jsx(we,{size:13}),total:n.companies.total,count:n.companies.items.length,onViewAll:k,children:n.companies.items.map(h=>e.jsx(at,{onClick:()=>g(`/company/${h.slug}`),img:h.logo,imgRound:!0,title:h.name,subtitle:h.short_description||h.country||h.sector||"",meta:h.articles_count>0?`${h.articles_count} article${h.articles_count!==1?"s":""}`:"",fallback:e.jsx(we,{size:18,style:{color:"#cbd5e1"}})},`c${h.id}`))}),e.jsx(Ce,{title:a("search.sectors"),icon:e.jsx(ot,{size:13}),total:n.sectors.total,count:n.sectors.items.length,onViewAll:k,children:n.sectors.items.map(h=>e.jsx(at,{onClick:()=>g(`/companies/${h.slug}`),title:h.name,subtitle:`${h.companies_count} compan${h.companies_count!==1?"ies":"y"}`,fallback:e.jsx(ot,{size:18,style:{color:"#cbd5e1"}})},`s${h.id}`))}),e.jsx(Ce,{title:a("search.products"),icon:e.jsx(_t,{size:13}),total:n.products.total,count:n.products.items.length,onViewAll:k,children:n.products.items.map(h=>{var u;return e.jsx(at,{onClick:()=>
2h.company&&g(`/company/${h.company.slug}/product/${h.slug}`),img:h.image,title:h.name,subtitle:[h.category,(u=h.company)==null?void 0:u.name].filter(Boolean).join(" · "),fallback:e.jsx(_t,{size:18,style:{color:"#cbd5e1"}})},`p${h.id}`)})}),e.jsx(Ce,{title:a("search.news"),icon:e.jsx(pe,{size:13}),total:n.articles.total,count:n.articles.items.length,onViewAll:k,children:n.articles.items.map(h=>e.jsxs("div",{onClick:()=>g(`/article/${h.slug}`),style:{display:"flex",gap:14,padding:"10px 20px",cursor:"pointer",transition:"background 0.15s"},onMouseEnter:u=>u.currentTarget.style.background="#f9fafb",onMouseLeave:u=>u.currentTarget.style.background="transparent",children:[h.thumbnail&&e.jsx("div",{style:{width:72,height:50,borderRadius:8,overflow:"hidden",flexShrink:0,background:"#f3f4f6"},children:e.jsx("img",{src:h.thumbnail.startsWith("http")?h.thumbnail:`/storage/${h.thumbnail}`,alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}})}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[h.category&&e.jsx("span",{style:{fontSize:10,fontWeight:800,color:"#007ab7",textTransform:"uppercase",letterSpacing:"0.05em"},children:h.category}),e.jsx("h4",{style:{fontSize:14,fontWeight:700,color:"#111827",lineHeight:1.3,margin:"2px 0 4px",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:h.title}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,fontSize:11,color:"#9ca3af"},children:[h.time_ago&&e.jsxs("span",{style:{display:"flex",alignItems:"center",gap:3},children:[e.jsx(pe,{size:10})," ",h.time_ago]}),h.view_count>=100&&e.jsxs("span",{style:{display:"flex",alignItems:"center",gap:3},children:[e.jsx(ae,{size:10})," ",h.view_count]})]})]}),e.jsx(te,{size:16,style:{color:"#d1d5db",flexShrink:0,alignSelf:"center"}})]},`a${h.id}`))}),n.tags.items.length>0&&e.jsx(Ce,{title:a("search.tags"),icon:e.jsx(Et,{size:13}),total:n.tags.total,count:n.tags.items.length,onViewAll:k,children:e.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8,padding:"6px 20px 12px"},children:n.tags.items.map(h=>e.jsxs("button",{onClick:()=>g(`/tag/${h.slug}`),style:{display:"inline-flex",alignItems:"center",gap:5,background:"#f3f4f6",border:"none",borderRadius:999,padding:"5px 12px",fontSize:12,fontWeight:600,color:"#374151",cursor:"pointer"},onMouseEnter:u=>u.currentTarget.style.background="#e5e7eb",onMouseLeave:u=>u.currentTarget.style.background="#f3f4f6",children:[e.jsx(Et,{size:11,style:{color:"#9ca3af"}})," ",h.name]},`t${h.id}`))})})]})]}),m&&C>0&&e.jsxs("button",{onClick:k,style:{padding:"12px 20px",width:"100%",fontSize:13,fontWeight:700,color:"#007ab7",textAlign:"center",background:"#fff",border:"none",borderTop:"1px solid #e5e7eb",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:6},children:[a("search.seeAll",{n:C,q:r.trim()})," ",e.jsx(te,{size:14})]})]})]}),document.body)},Ce=({title:t,icon:s,total:a,count:r,onViewAll:i,children:n})=>r===0?null:e.jsxs("div",{style:{paddingBottom:6},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 20px 4px"},children:[e.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6,fontSize:11,fontWeight:800,color:"#9ca3af",textTransform:"uppercase",letterSpacing:"0.06em"},children:[s," ",t," ",e.jsxs("span",{style:{color:"#cbd5e1"},children:["(",a,")"]})]}),a>r&&e.jsxs("button",{onClick:i,style:{background:"none",border:"none",cursor:"pointer",fontSize:11,fontWeight:700,color:"#007ab7",display:"inline-flex",alignItems:"center",gap:3},children:["View all ",e.jsx(te,{size:11})]})]}),n]}),at=({onClick:t,title:s,subtitle:a,meta:r,img:i,imgRound:n,fallback:c})=>e.jsxs("div",{onClick:t,style:{display:"flex",gap:12,alignItems:"center",padding:"8px 20px",cursor:"pointer",transition:"background 0.15s"},onMouseEnter:o=>o.currentTarget.style.background="#f9fafb",onMouseLeave:o=>o.currentTarget.style.background="transparent",children:[e.jsx("div",{style:{width:38,height:38,borderRadius:n?10:8,overflow:"hidden",flexShrink:0,background:"#f3f4f6",display:"flex",alignItems:"center",justifyContent:"center"},children:i?e.jsx("img",{src:i,alt:"",style:{width:"100%",height:"100%",objectFit:n?"contain":"cover"}}):c}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("h4",{style:{fontSize:13.5,fontWeight:700,color:"#111827",lineHeight:1.3,margin:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s}),a&&e.jsx("p",{style:{fontSize:11.5,color:"#9ca3af",margin:"1px 0 0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:a})]}),r&&e.jsx("span",{style:{fontSize:11,color:"#cbd5e1",flexShrink:0},children:r}),e.jsx(te,{size:15,style:{color:"#d1d5db",flexShrink:0}})]}),De="/api/v1";function ga(){const t=document.cookie.match(/XSRF-TOKEN=([^;
2]+)/);return t?decodeURIComponent(t[1]):null}async function ft(){await fetch("/sanctum/csrf-cookie",{credentials:"include"})}async function se(t,s={}){const a=await fetch(`${De}${t}`,{...s,credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json","X-XSRF-TOKEN":ga()||"",...s.headers}});if(!a.ok){const r=await a.json().catch(()=>({})),i=new Error(r.message||`API error: ${a.status}`);throw i.status=a.status,i.errors=r.errors,i}return a.json()}async function pa(t,s,a=!1){return await ft(),(await se("/auth/login",{method:"POST",body:JSON.stringify({email:t,password:s,remember:a})})).user}async function ha(t){return await ft(),(await se("/auth/register",{method:"POST",body:JSON.stringify(t)})).user}async function xa(t){return await ft(),(await se("/auth/google",{method:"POST",body:JSON.stringify({credential:t})})).user}async function fa(){await se("/auth/logout",{method:"POST"})}async function ba(){try{return(await se("/auth/me")).user}catch{return null}}async function ya(t){return(await se("/auth/profile",{method:"PUT",body:JSON.stringify(t)})).user}function bt(){const t=document.cookie.match(/XSRF-TOKEN=([^;]+)/);return t?decodeURIComponent(t[1]):""}async function wi(t){const s=new FormData;s.append("avatar",t);const a=await fetch(`${De}/auth/avatar`,{method:"POST",credentials:"include",headers:{Accept:"application/json","X-XSRF-TOKEN":bt()},body:s});if(!a.ok){const r=await a.json().catch(()=>({}));throw new Error(r.message||"Upload failed")}return(await a.json()).user}async function Ni(t){const s=new FormData;s.append("cover_image",t);const a=await fetch(`${De}/auth/cover`,{method:"POST",credentials:"include",headers:{Accept:"application/json","X-XSRF-TOKEN":bt()},body:s});if(!a.ok){const r=await a.json().catch(()=>({}));throw new Error(r.message||"Upload failed")}return(await a.json()).user}async function Pi(t=1){return se(`/bookmarks?page=${t}`)}async function va(t,s){return se("/bookmarks",{method:"POST",body:JSON.stringify({type:t,id:s})})}async function Si(t){return se("/follow",{method:"POST",body:JSON.stringify({username:t})})}async function zi(t,s,a,r){const i=new FormData;t&&i.append("title",t),i.append("content",s),r&&r.length>0?r.forEach(c=>i.append("images[]",c)):a&&i.append("image",a);const n=await fetch(`${De}/community/posts`,{method:"POST",credentials:"include",headers:{Accept:"application/json","X-XSRF-TOKEN":bt()},body:i});if(!n.ok){const c=await n.json().catch(()=>({}));throw new Error(c.message||"Failed")}return await n.json()}async function ja(t){const s=await fetch(`${De}/members/search?q=${encodeURIComponent(t)}`,{headers:{Accept:"application/json"}});return s.ok?(await s.json()).data:[]}async function ka(t){return se(`/community/posts/${t}`,{method:"DELETE"})}async function wa(t){return se(`/community/posts/${t}/like`,{method:"POST"})}async function Na(t,s,a){return se(`/community/posts/${t}/comments`,{method:"POST",body:JSON.stringify({content:s,parent_id:a})})}async function _i(t){return se("/community/surveys",{method:"POST",body:JSON.stringify(t)})}async function Ei(t,s){return se(`/community/surveys/${t}/vote`,{method:"POST",body:JSON.stringify({selected:s})})}async function Ci(t){return se(`/community/surveys/${t}`,{method:"DELETE"})}let ns=null,rt=!1,Ue=[];function ve(t){ns=t,Ue.forEach(s=>s(t))}function be(){const[t,s]=l.useState(ns),[a,r]=l.useState(!rt);l.useEffect(()=>(Ue.push(s),rt||(rt=!0,ba().then(m=>{ve(m),r(!1)})),()=>{Ue=Ue.filter(m=>m!==s)}),[]);const i=l.useCallback(async(m,x)=>{const j=await pa(m,x);return ve(j),j},[]),n=l.useCallback(async m=>{const x=await ha(m);return ve(x),x},[]),c=l.useCallback(async m=>{const x=await xa(m);return ve(x),x},[]),o=l.useCallback(async()=>{await fa(),ve(null)},[]),b=l.useCallback(async m=>{const x=await ya(m);return ve(x),x},[]);return{user:t,loading:a,isAuthenticated:!!t,login:i,register:n,loginWithGoogle:c,logout:o,updateProfile:b}}const Pa=()=>{const{t}=K(),{user:s,isAuthenticated:a,loading:r,logout:i}=be(),[n,c]=l.useState(!1),o=l.useRef(null);if(l.useEffect(()=>{const x=j=>{o.current&&!o.current.contains(j.target)&&c(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]),r)return null;if(!a)return e.jsxs("button",{onClick:()=>
2I("/login"),className:"flex items-center gap-2 bg-[#007ab7] text-white px-4 py-2 rounded-lg text-sm font-medium hover:bg-[#005f8d] transition-colors",children:[e.jsx(Ve,{size:16}),e.jsx("span",{className:"hidden sm:inline",children:t("auth.signIn")})]});const b=async()=>{c(!1),await i(),I("/")},m=(s==null?void 0:s.avatar)||`https://ui-avatars.com/api/?name=${encodeURIComponent((s==null?void 0:s.name)||"U")}&background=007ab7&color=fff&size=32`;return e.jsxs("div",{ref:o,className:"relative",children:[e.jsxs("button",{onClick:()=>c(!n),className:"flex items-center gap-2 hover:opacity-80 transition-opacity",children:[e.jsx("img",{src:m,alt:"",className:"w-8 h-8 rounded-full object-cover"}),e.jsx("span",{className:"hidden sm:inline text-sm font-medium text-gray-700 max-w-[100px] truncate",children:s==null?void 0:s.name}),e.jsx(Ze,{size:14,className:`text-gray-400 transition-transform ${n?"rotate-180":""}`})]}),n&&e.jsxs("div",{className:"absolute right-0 top-full mt-2 w-56 bg-white rounded-xl shadow-xl border border-gray-100 py-2 z-50",children:[e.jsxs("div",{className:"px-4 py-2 border-b border-gray-100",children:[e.jsx("p",{className:"font-medium text-sm truncate",children:s==null?void 0:s.name}),e.jsxs("p",{className:"text-xs text-gray-400 truncate",children:["@",s==null?void 0:s.username]})]}),e.jsx("div",{className:"py-1",children:[{icon:hs,label:t("user.dashboard"),path:"/dashboard"},{icon:Ve,label:t("user.myProfile"),path:`/member/${s==null?void 0:s.username}`},{icon:ue,label:t("user.community"),path:"/community"},{icon:Ne,label:t("user.mySurveys"),path:"/dashboard"}].map(({icon:x,label:j,path:P})=>e.jsxs("button",{onClick:()=>{c(!1),I(P)},className:"w-full flex items-center gap-3 px-4 py-2 text-sm text-gray-600 hover:bg-gray-50 transition-colors",children:[e.jsx(x,{size:16}),j]},j))}),e.jsx("div",{className:"border-t border-gray-100 pt-1",children:e.jsxs("button",{onClick:b,className:"w-full flex items-center gap-3 px-4 py-2 text-sm text-red-500 hover:bg-red-50 transition-colors",children:[e.jsx(xs,{size:16}),t("auth.signOut")]})})]})]})},ut={trophy:Qt},Dt=t=>t.toLowerCase().replace(/\s*&\s*/g,"-").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,""),ne=t=>{t&&(t.startsWith("/")?I(t):t.startsWith("#")?window.location.hash=t:I("/"+t))};function Sa(t,s){return t&&t.length?t:(s||[]).map(a=>({key:a.label,label:a.label,href:a.url||`/category/${Dt(a.label)}`,type:a.children&&a.children.length?"mega":"link",mega:Dt(a.label)}))}const za=({activeHash:t,menu:s,nav:a,settings:r,hotCategory:i,megaMenu:n})=>{const{t:c}=K(),o=xt(),b=Sa(a,s),[m,x]=l.useState(!1),[j,P]=l.useState(!1),[d,f]=l.useState(!1),[g,k]=l.useState(null),[C,h]=l.useState(null),u=l.useRef(null),w=l.useRef(null);l.useEffect(()=>{const p=()=>x(window.scrollY>10);return window.addEventListener("scroll",p),()=>window.removeEventListener("scroll",p)},[]),l.useEffect(()=>{h(null)},[g]);const S=p=>{u.current&&clearTimeout(u.current),k(p)},N=()=>{u.current=setTimeout(()=>k(null),300)},E=()=>k(null),$=[{Icon:Ye,href:r.social.linkedin||"#",label:"LinkedIn"},{Icon:Gt,href:r.social.instagram||"#",label:"Instagram"},{Icon:Kt,href:r.social.twitter||"#",label:"X / Twitter"},{Icon:Jt,href:r.social.youtube||"#",label:"YouTube"},{Icon:Xt,href:r.social.facebook||"#",label:"Facebook"}],M=p=>{const T=n==null?void 0:n[p.mega||""],O=(T==null?void 0:T.children)||[];return e.jsx("div",{className:"absolute left-0 right-0 top-full",style:{zIndex:60},onMouseEnter:()=>S(p.key),onMouseLeave:N,children:e.jsx("div",{className:"bg-white/95 backdrop-blur-xl shadow-[0_20px_60px_-15px_rgba(0,0,0,0.15)] border-t border-gray-100",children:e.jsx("div",{className:"max-w-[1440px] mx-auto px-8 py-7",children:e.jsxs("div",{className:"grid grid-cols-12 gap-10",children:[e.jsxs("div",{className:"col-span-3",children:[e.jsx("h3",{className:"text-[10px] font-extrabold uppercase tracking-[0.2em] text-gray-400 mb-4",children:"Explore"}),e.jsx("div",{className:"space-y-0.5",children:O.map(_=>e.jsxs("a",{href:`/category/${_.slug}`,onClick:U=>{U.preventDefault(),ne(`/category/${_.slug}`),E()},className:"flex items-center gap-3 px-3 py-2.5 rounded-lg text-[13px] text-gray-600 hover:bg-[#007ab7]/5 hover:text-[#007ab7] transition-all group",children:[e.jsx("span",{className:"w-1 h-1 rounded-full bg-gray-300 group-hover:bg-[#007ab7] group-hover:scale-150 transition-all"}),e.jsx("span",{className:"font-medium flex-1",children:o(_.name)}),_.articles_count>0&&e.jsx("span",{className:"text-[10px] font-semibold text-gray-300 bg-gray-100 group-hover:bg-[#007ab7]/10 group-hover:text-[#007ab7] px-2 py-0.5 rounded-full transition-colors",children:_.articles_count})]},_.slug))}),e.jsxs(A,{to:`/category/${p.mega}`,onClick:E,className:"inline-flex items-center gap-1.5 mt-5 ml-3 text-xs font-bold text-[#007ab7] hover:gap-2.5 transition-all",children:["View All ",o(p.label)," ",e.jsx(Y,{size:12})]})]}),e.jsxs("div",{className:"col-span-6",children:[e.jsxs("h3",{className:"text-[10px] font-extrabold uppercase tracking-[0.2em] text-gray-400 mb-4 flex items-center gap-2",children:[e.jsx(Ge,{size:12})," Latest"]}),T!=null&&T.latest_articles&&T.latest_articles.length>0?e.jsx("div",{className:"grid grid-cols-3 gap-5",children:T.latest_articles.map((_,
2U)=>e.jsxs(A,{to:`/article/${_.slug}`,onClick:E,className:"group cursor-pointer block text-inherit no-underline",children:[_.thumbnail&&e.jsx("div",{className:"aspect-[16/10] overflow-hidden rounded-xl mb-2.5 bg-gray-100 ring-1 ring-black/5",children:e.jsx("img",{src:_.thumbnail,alt:_.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),_.category&&e.jsx("span",{className:"text-[9px] font-bold uppercase tracking-wider text-[#007ab7]/70 mb-1 block",children:_.category}),e.jsx("h4",{className:"text-[13px] font-bold leading-snug line-clamp-2 text-gray-800 group-hover:text-[#007ab7] transition-colors",children:_.title})]},U))}):e.jsx("div",{className:"grid grid-cols-3 gap-4",children:O.slice(0,3).map(_=>e.jsx("a",{href:`/category/${_.slug}`,onClick:U=>{U.preventDefault(),ne(`/category/${_.slug}`),E()},className:"p-4 rounded-xl bg-gray-50 hover:bg-[#007ab7]/5 transition-colors ring-1 ring-black/5",children:e.jsx("span",{className:"text-sm font-bold",children:_.name})},_.slug))})]}),e.jsx("div",{className:"col-span-3",children:T!=null&&T.sponsor?e.jsx("a",{href:T.sponsor.url||"#",target:"_blank",rel:"noopener noreferrer sponsored",className:"block h-full rounded-2xl overflow-hidden ring-1 ring-black/5 hover:ring-[#007ab7]/30 hover:shadow-lg transition-all duration-300 group/sponsor",children:e.jsxs("div",{className:"bg-gradient-to-b from-gray-50 to-white p-5 h-full flex flex-col items-center justify-center text-center",children:[e.jsx("span",{className:"text-[8px] font-bold uppercase tracking-[0.25em] text-gray-300 mb-4",children:"Category Sponsor"}),T.sponsor.logo&&e.jsx("img",{src:T.sponsor.logo,alt:T.sponsor.name,className:"max-h-12 max-w-[140px] object-contain mb-4 group-hover/sponsor:scale-105 transition-transform duration-300"}),e.jsx("span",{className:"text-sm font-bold text-gray-800 mb-1",children:T.sponsor.name}),e.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] font-bold text-[#007ab7] opacity-0 group-hover/sponsor:opacity-100 transition-opacity mt-2",children:["Visit Website ",e.jsx(et,{size:10})]})]})}):e.jsxs("div",{className:"bg-gradient-to-br from-[#007ab7] to-[#005a8c] rounded-2xl p-5 h-full flex flex-col justify-between text-white overflow-hidden relative",children:[e.jsx("div",{className:"absolute -right-6 -top-6 w-24 h-24 bg-white/5 rounded-full"}),e.jsx("div",{className:"absolute -right-2 -bottom-8 w-32 h-32 bg-white/5 rounded-full"}),e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"text-[9px] font-bold uppercase tracking-[0.2em] text-white/50 block mb-2",children:"Advertise"}),e.jsxs("h4",{className:"text-sm font-bold mb-1.5",children:["Sponsor ",o(p.label)]}),e.jsxs("p",{className:"text-[11px] text-white/60 leading-relaxed",children:["Reach ",(T==null?void 0:T.articles_count)||"100","+ articles audience."]})]}),e.jsxs("a",{href:"/advertise",onClick:_=>{_.preventDefault(),ne("/advertise"),E()},className:"relative mt-4 inline-flex items-center gap-1.5 bg-white/15 hover:bg-white/25 self-start px-4 py-2 rounded-lg text-[11px] font-bold transition-colors",children:["Get Media Kit ",e.jsx(Y,{size:11})]})]})})]})})})})},F=(p,T)=>e.jsx("div",{className:"absolute left-0 right-0 top-full",style:{zIndex:60},onMouseEnter:()=>S(p.key),onMouseLeave:N,children:e.jsx("div",{className:"bg-white/95 backdrop-blur-xl shadow-[0_20px_60px_-15px_rgba(0,0,0,0.15)] border-t border-gray-100",children:e.jsx("div",{className:"max-w-[1440px] mx-auto px-8 py-7",children:T})})}),z=p=>p.href.replace("/category/",""),H=p=>{var G;const T=p.groups||[],O=T.flatMap(R=>R.links).filter(R=>R.href.startsWith("/category/")),_=T.flatMap(R=>R.links).filter(R=>!R.href.startsWith("/category/")),U=C&&O.some(R=>z(R)===C)?C:O[0]?z(O[0]):"",q=o(((G=O.find(R=>z(R)===U))==null?void 0:G.label)||p.label),W=n==null?void 0:n[U];return F(p,e.jsxs("div",{className:"grid grid-cols-12 gap-10",children:[e.jsxs("div",{className:"col-span-3 border-r border-gray-100 pr-6",children:[e.jsx("h3",{className:"text-[10px] font-extrabold uppercase tracking-[0.2em] text-gray-400 mb-4",children:"Categories"}),e.jsx("div",{className:"space-y-0.5",children:O.map(R=>{const Z=z(R),oe=Z===U;return e.jsxs("a",{href:R.href,onMouseEnter:()=>h(Z),onClick:he=>{he.preventDefault(),ne(R.href),E()},className:`flex items-center gap-3 px-3 py-2.5 rounded-lg text-[13px] transition-all group ${oe?"bg-[#007ab7]/5 text-[#007ab7]":"text-gray-600 hover:bg-gray-50"}`,children:[e.jsx("span",{className:`w-1 h-1 rounded-full transition-all ${oe?"bg-[#007ab7] scale-150":"bg-gray-300 group-hover:bg-[#007ab7]"}`}),e.jsx("span",{className:"font-medium flex-1",children:o(R.label)}),e.jsx(Y,{size:13,className:`transition-all ${oe?"text-[#007ab7] opacity-100":"opacity-0 group-hover:opacity-100 text-gray-300"}`})]},R.href)})}),_.length>0&&e.jsx("div",{className:"mt-4 pt-4 border-t border-gray-100 space-y-0.5",children:_.map(R=>e.jsxs("a",{href:R.href,onClick:Z=>{Z.preventDefault(),ne(R.href),E()},className:"flex items-center gap-2 px-3 py-2 rounded-lg text-[12px] font-semibold text-[#007ab7] hover:bg-[#007ab7]/5 transition-all",children:[o(R.label)," ",e.jsx(Y,{size:11})]},R.href+R.label))})]}),e.jsxs("div",{className:"col-span-9",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("h3",{className:"text-[10px] font-extrabold uppercase tracking-[0.2em] text-gray-400 flex items-center gap-2",children:[e.jsx(Ge,{size:12})," Latest in ",q]}),U&&e.jsxs(A,{to:`/category/${U}`,onClick:E,className:"inline-flex items-center gap-1 text-xs font-bold text-[#007ab7] hover:gap-2 transition-all",children:["View all ",e.jsx(Y,{size:12})]})]}),W!=null&&W.latest_articles&&W.latest_articles.length>0?e.jsx("div",{className:"grid grid-cols-3 gap-5",children:W.latest_articles.map((R,Z)=>e.jsxs(A,{to:`/article/${R.slug}`,onClick:E,className:"group cursor-pointer block text-inherit no-underline",children:[R.thumbnail&&e.jsx("div",{className:"aspect-[16/10] overflow-hidden rounded-xl mb-2.5 bg-gray-100 ring-1 ring-black/5",children:e.jsx("img",{src:R.thumbnail,alt:R.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),R.category&&e.jsx("span",{className:"text-[9px] font-bold uppercase tracking-wider text-[#007ab7]/70 mb-1 block",children:R.category}),e.jsx("h4",{className:"text-[13px] font-bold leading-snug line-clamp-2 text-gray-800 group-hover:text-[#007ab7] transition-colors",children:R.title})]},Z))}):!(W!=null&&W.children)||W.children.length===0?e.jsxs("div",{className:"flex items-center justify-center h-40 text-sm text-gray-300",children:["No articles yet in ",q]}):null,(W==null?void 0:W.children)&&W.children.length>0&&e.jsxs("div",{className:"mt-6 pt-5 border-t border-gray-100",children:[e.jsxs("h3",{className:"text-[10px] font-extrabold uppercase tracking-[0.2em] text-gray-400 mb-3 flex items-center gap-2",children:[e.jsx(ot,{size:12})," Topics in ",q]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:W.children.map(R=>e.jsxs("a",{href:`/category/${R.slug}`,onClick:Z=>{Z.preventDefault(),ne(`/category/${R.slug}`),E()},className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-gray-50 hover:bg-[#007ab7]/5 hover:text-[#007ab7] ring-1 ring-black/5 text-[12px] font-semibold text-gray-700 transition-colors",children:[R.name,R.articles_count>0&&e.jsx("span",{className:"text-[10px] font-bold text-gray-400",children:R.articles_count})]},R.slug))})]})]})]}))},X=p=>{const T=p.groups||[],O=T.length>=3?"grid-cols-3":T.length===2?"grid-cols-2":"grid-cols-1";return F(p,e.jsxs("div",{className:"grid grid-cols-12 gap-10",children:[e.jsx("div",{className:"col-span-9",children:e.jsx("div",{className:`grid gap-x-10 gap-y-2 ${O}`,children:T.map((_,U)=>e.jsxs("div",{children:[_.heading&&e.jsx("h3",{className:"text-[10px] font-extrabold uppercase tracking-[0.2em] text-gray-400 mb-4",children:_.heading}),e.jsx("div",{className:"space-y-0.5",children:_.links.map(q=>e.jsxs("a",{href:q.href,onClick:W=>{W.preventDefault(),ne(q.href),E()},className:"flex items-center gap-3 px-3 py-2.5 rounded-lg text-[13px] text-gray-600 hover:bg-[#007ab7]/5 hover:text-[#007ab7] transition-all group",children:[e.jsx("span",{className:"w-1 h-1 rounded-full bg-gray-300 group-hover:bg-[#007ab7] group-hover:scale-150 transition-all"}),e.jsx("span",{className:"font-medium flex-1",children:o(q.label)}),q.badge&&e.jsx("span",{className:"text-[10px] font-semibold text-gray-300 bg-gray-100 group-hover:bg-[#007ab7]/10 group-hover:text-[#007ab7] px-2 py-0.5 rounded-full transition-colors",children:q.badge})]},q.href+q.label))})]},U))})}),e.jsx("div",{className:"col-span-3",children:e.jsxs("div",{className:"bg-gradient-to-br from-[#007ab7] to-[#005a8c] rounded-2xl p-5 h-full flex flex-col justify-between text-white overflow-hidden relative",children:[e.jsx("div",{className:"absolute -right-6 -top-6 w-24 h-24 bg-white/5 rounded-full"}),e.jsx("div",{className:"absolute -right-2 -bottom-8 w-32 h-32 bg-white/5 rounded-full"}),e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"text-[9px] font-bold uppercase tracking-[0.2em] text-white/50 block mb-2",children:o(p.label)}),e.jsxs("h4",{className:"text-sm font-bold mb-1.5",children:["Explore ",o(p.label)]}),e.jsxs("p",{className:"text-[11px] text-white/60 leading-relaxed",children:["Browse everything in the ",o(p.label)," section."]})]}),e.jsxs("a",{href:p.href||"/",onClick:_=>{_.preventDefault(),ne(p.href||"/"),E()},className:"relative mt-4 inline-flex items-center gap-1.5 bg-white/15 hover:bg-white/25 self-start px-4 py-2 rounded-lg text-[11px] font-bold transition-colors",children:["View ",o(p.label)," ",e.jsx(Y,{size:11})]})]})})]}))},re=p=>{const T=(p.groups||[]).flatMap(_=>_.links),O=_=>{const U=_.toLowerCase();return U.includes("startup")?Ke:U.includes("compan")?we:Y};return e.jsx("div",{className:"absolute left-0 top-full",style:{zIndex:60},onMouseEnter:()=>S(p.key),onMouseLeave:N,children:e.jsx("div",{className:"mt-1 bg-white/97 backdrop-blur-xl shadow-[0_20px_60px_-15px_rgba(0,0,0,0.2)] border border-gray-100 rounded-2xl p-3 flex gap-3",children:T.map(_=>{const U=O(_.href);return e.jsxs("a",{href:_.href,onClick:q=>{q.preventDefault(),ne(_.href),E()},className:"w-48 flex flex-col gap-2 p-4 rounded-xl bg-gray-50 hover:bg-[#007ab7]/5 ring-1 ring-black/5 hover:ring-[#007ab7]/20 transition-all group",children:[e.jsx("span",{className:"w-9 h-9 rounded-lg bg-[#007ab7]/10 text-[#007ab7] flex items-center justify-center group-hover:bg-[#007ab7] group-hover:text-white transition-colors",children:e.jsx(U,{size:18})}),e.jsx("span",{className:"text-sm font-bold text-gray-900 group-hover:text-[#007ab7] transition-colors",children:o(_.label)}),_.desc&&e.jsx("span",{className:"text-[11px] text-gray-400 leading-snug",children:_.desc})]},_.href)})})})},Q=p=>{const T=(p.groups||[]).flatMap(O=>O.links);return F(p,e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-end justify-between mb-5",children:[e.jsxs("div",{children:[e.jsxs("h3",{className:"text-base font-montserrat font-bold text-gray-900 flex items-center gap-2",children:[e.jsx(Ne,{size:16,className:"text-[#007ab7]"})," Market Analysis by Sector"]}),e.jsx("p",{className:"text-xs text-gray-400 mt-0.5",children:"Size, forecast, key players & funding trends for each robotics sector"})]}),p.href&&e.jsxs(A,{to:p.href,onClick:E,className:"inline-flex items-center gap-1 text-xs font-bold text-[#007ab7] hover:gap-2 transition-all",children:["All sectors ",e.jsx(Y,{size:12})]})]}),e.jsx("div",{className:"grid grid-cols-4 gap-3",children:T.map(O=>e.jsxs("a",{href:O.href,onClick:_=>{_.preventDefault(),ne(O.href),E()},className:"group flex items-center gap-3 p-3.5 rounded-xl bg-gray-50 ring-1 ring-black/5 hover:bg-[#007ab7]/5 hover:ring-[#007ab7]/20 transition-all",children:[e.jsx("span",{className:"w-9 h-9 rounded-lg bg-[#007ab7]/10 text-[#007ab7] flex items-center justify-center flex-shrink-0 group-hover:bg-[#007ab7] group-hover:text-white transition-colors",children:e.jsx(Ne,{size:16})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"block text-[13px] font-bold text-gray-800 group-hover:text-[#007ab7] transition-colors truncate",children:o(O.label)}),e.jsxs("span",{className:"block text-[10px] text-gray-400 font-semibold inline-flex items-center gap-0.5",children:["Market report ",e.jsx(Y,{size:10})]})]})]},O.href))})]}))},ee=p=>p.layout==="cards"?re(p):p.layout==="grid"?Q(p):(p.groups||[]).some(O=>O.links.some(_=>
2_.href.startsWith("/category/")))?H(p):X(p);return e.jsxs("div",{className:"fixed top-0 left-0 right-0 z-50",children:[e.jsx("div",{className:"bg-gray-900 text-white",children:e.jsxs("div",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 flex items-center justify-between h-8 lg:h-9",children:[e.jsxs("div",{className:"flex items-center gap-3 lg:gap-4 text-[10px] lg:text-[11px] text-gray-400",children:[e.jsx("span",{className:"lg:hidden text-gray-300 font-medium italic",children:c("nav.tagline")}),e.jsxs("a",{href:`mailto:${r.contact.general||"[email protected]"}`,className:"hidden lg:flex items-center gap-1 hover:text-white transition-colors",children:[e.jsx(xe,{size:11}),e.jsx("span",{children:r.contact.general||"[email protected]"})]}),e.jsx("span",{className:"hidden lg:inline w-px h-3 bg-gray-700"}),e.jsx("span",{className:"hidden lg:inline",children:c("nav.tagline")}),e.jsx("span",{className:"hidden md:inline w-px h-3 bg-gray-700"}),e.jsx("a",{href:"/advertise",onClick:p=>{p.preventDefault(),I("/advertise")},className:"hidden md:inline hover:text-white transition-colors",children:c("nav.advertise")}),e.jsx("span",{className:"hidden md:inline w-px h-3 bg-gray-700"}),e.jsx("a",{href:"/digital",onClick:p=>{p.preventDefault(),I("/digital")},className:"hidden md:inline hover:text-white transition-colors",children:c("nav.services")}),e.jsx("span",{className:"hidden lg:inline w-px h-3 bg-gray-700"}),e.jsx("a",{href:"/community",onClick:p=>{p.preventDefault(),I("/community")},className:"hidden md:inline hover:text-white transition-colors",children:c("nav.community")}),e.jsx("span",{className:"hidden lg:inline w-px h-3 bg-gray-700"}),e.jsx("a",{href:"/contact",onClick:p=>{p.preventDefault(),I("/contact")},className:"hidden lg:inline hover:text-white transition-colors",children:c("nav.partnership")}),e.jsx("span",{className:"hidden lg:inline w-px h-3 bg-gray-700"}),e.jsx("a",{href:"/contact",onClick:p=>{p.preventDefault(),I("/contact")},className:"hidden lg:inline hover:text-white transition-colors",children:c("nav.contact")})]}),e.jsx("div",{className:"flex items-center gap-2 lg:gap-3",children:$.map(({Icon:p,href:T,label:O})=>e.jsx("a",{href:T,target:"_blank",rel:"noopener noreferrer","aria-label":O,className:"text-gray-400 hover:text-white transition-colors",children:e.jsx(p,{size:13})},O))})]})}),e.jsx("nav",{ref:w,className:`relative transition-all duration-300 ${m?"glass-nav py-1":"bg-white py-2 lg:py-3"}`,children:e.jsxs("div",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 flex items-center justify-between",children:[e.jsx(A,{to:"/",className:"flex items-center group cursor-pointer","aria-label":"Home",children:e.jsx("img",{src:r.logo_url||"/logo.png",alt:r.site_name||"The Robotics Media",className:"h-8 lg:h-11"})}),e.jsxs("div",{className:"hidden lg:flex items-center gap-7",children:[b.map(p=>{const T=p.type==="mega"||p.type==="panel",O=p.layout==="cards",_=g===p.key,U=i&&p.label.toLowerCase()===i.toLowerCase();return e.jsxs("div",{className:T&&!O?"static":"relative",onMouseEnter:()=>T&&S(p.key),onMouseLeave:N,children:[(()=>{const q=p.icon?ut[p.icon]:null,W="flex items-center gap-1.5 text-[11px] font-extrabold uppercase tracking-wider text-[#007ab7] bg-[#007ab7]/10 hover:bg-[#007ab7]/20 px-3 py-1.5 rounded-full transition-colors",G=`text-xs font-bold uppercase tracking-widest transition-colors flex items-center gap-1 py-2 ${t===p.href?"text-red-700":"text-gray-500 hover:text-black"}`;return e.jsxs("a",{href:p.href||"#",className:p.accent?W:G,onClick:R=>{R.preventDefault(),E(),ne(p.href)},children:[q&&e.jsx(q,{size:13}),e.jsxs("span",{className:"relative",children:[o(p.label),U&&e.jsxs("span",{className:"absolute -top-4 -right-8 flex items-center gap-0.5 bg-orange-500 text-white text-[8px] font-black uppercase px-1.5 py-0.5 rounded-full animate-pulse shadow-lg shadow-orange-500/30",children:[e.jsx("span",{className:"inline-block animate-bounce",children:"ð¥"}),"HOT"]})]}),T&&e.jsx(Ze,{size:12,className:`transition-transform duration-200 ${_?"rotate-180":""}`})]})})(),_&&p.type==="mega"&&M(p),_&&p.type==="panel"&&ee(p)]},p.key)}),e.jsx("div",{className:"h-6 w-[1px] bg-gray-200"}),e.jsx("button",{className:"text-gray-400 hover:text-red-700 transition-colors",onClick:()=>f(!0),children:e.jsx(Re,{size:20})}),e.jsx("div",{className:"h-6 w-[1px] bg-gray-200"}),e.jsx(Pa,{})]}),e.jsxs("div",{className:"flex items-center gap-3 lg:hidden",children:[e.jsxs("a",{href:r.social.linkedin||"#",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 bg-[#0A66C2] text-white text-[10px] font-bold px-2.5 py-1.5 rounded-full hover:bg-[#004182] transition-colors",children:[e.jsx(Ye,{size:12,fill:"white"}),e.jsx("span",{children:"Follow"})]}),e.jsx("button",{className:"text-black",onClick:()=>P(!j),children:j?e.jsx(le,{size:28}):e.jsx(fs,{size:28})})]})]})}),e.jsx(_a,{isOpen:j,onClose:()=>P(!1),items:b,settings:r,hotCategory:i,socialLinks:$,megaMenu:n,onSearchOpen:()=>{P(!1),f(!0)}}),e.jsx(ma,{isOpen:d,onClose:()=>f(!1)})]})},_a=({isOpen:t,onClose:s,items:a,settings:r,hotCategory:i,socialLinks:n,megaMenu:c,onSearchOpen:o})=>{const b=xt(),[m,x]=l.useState(null);l.useEffect(()=>(document.body.style.overflow=t?"hidden":"",()=>{document.body.style.overflow=""}),[t]);const j=d=>{ne(d),s()},P=[{label:"Companies",path:"/companies",Icon:we,tint:"bg-blue-50 text-blue-600"},{label:"Startups",path:"/startups",Icon:Ke,tint:"bg-violet-50 text-violet-600"},{label:"Events",path:"/events",Icon:Zt,tint:"bg-amber-50 text-amber-600"},{label:"This Week",path:"/robotics-news/this-week",Icon:Ge,tint:"bg-emerald-50 text-emerald-600"},{label:"World Cup",path:"/world-cup-2026",Icon:Qt,tint:"bg-rose-50 text-rose-600"},{label:"Sitemap",path:"/sitemap",Icon:ys,tint:"bg-cyan-50 text-cyan-600"}];return mt.createPortal(e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`lg:hidden fixed inset-0 bg-slate-950/50 backdrop-blur-md transition-opacity duration-300 ${t?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"}`,style:{zIndex:9998},onClick:s}),e.jsxs("div",{className:`lg:hidden fixed top-0 right-0 h-full w-[90%] max-w-[400px] bg-white shadow-[0_0_60px_rgba(0,0,0,0.25)] rounded-l-[28px] overflow-hidden transform transition-transform duration-[400ms] ${t?"translate-x-0":"translate-x-full"} flex flex-col`,style:{zIndex:9999,transitionTimingFunction:"cubic-bezier(0.22, 1, 0.36, 1)"},children:[e.jsxs("div",{className:"relative px-5 pt-5 pb-4 bg-gradient-to-br from-[#007ab7]/[0.06] via-white to-w
2hite border-b border-gray-100",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("img",{src:r.logo_url||"/logo.png",alt:r.site_name||"The Robotics Media",className:"h-8"}),e.jsx("button",{onClick:s,"aria-label":"Close menu",className:"w-10 h-10 rounded-full bg-white shadow-sm ring-1 ring-gray-100 flex items-center justify-center text-gray-500 active:scale-90 transition-transform",children:e.jsx(le,{size:20})})]}),e.jsxs("button",{onClick:()=>o==null?void 0:o(),className:"mt-4 w-full flex items-center gap-2.5 bg-gray-100/80 rounded-2xl px-4 py-3 text-left active:scale-[0.99] transition-transform",children:[e.jsx(Re,{size:17,className:"text-gray-400 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-gray-400",children:"Search robotics & AI newsâ¦"})]})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto overscroll-contain",children:[e.jsxs("div",{className:"px-5 pt-5",children:[e.jsxs("p",{className:"text-[10px] font-extrabold uppercase tracking-[0.18em] text-gray-300 mb-3 flex items-center gap-1.5",children:[e.jsx(bs,{size:12})," Jump to"]}),e.jsx("div",{className:"grid grid-cols-3 gap-2.5",children:P.map((d,f)=>e.jsxs("a",{href:d.path,onClick:g=>{g.preventDefault(),j(d.path)},className:"flex flex-col items-center justify-center gap-2 py-3.5 rounded-2xl bg-gray-50 ring-1 ring-black/[0.04] active:scale-95 transition-all",style:{transitionDelay:t?`${f*35}ms`:"0ms",transform:t?"none":"translateY(8px)",opacity:t?1:0},children:[e.jsx("span",{className:`w-10 h-10 rounded-xl flex items-center justify-center ${d.tint}`,children:e.jsx(d.Icon,{size:18})}),e.jsx("span",{className:"text-[11px] font-bold text-gray-600 leading-none text-center",children:b(d.label)})]},d.path))})]}),e.jsxs("nav",{className:"px-3 pt-5 pb-2",children:[e.jsx("p",{className:"px-2 text-[10px] font-extrabold uppercase tracking-[0.18em] text-gray-300 mb-1.5",children:"Explore"}),a.map((d,f)=>{var u;const g=m===d.key,k=i&&d.label.toLowerCase()===i.toLowerCase(),C=d.type==="mega"||d.type==="panel",h=d.type==="mega"?((u=c==null?void 0:c[d.mega||""])==null?void 0:u.children)||[]:[];return e.jsxs("div",{className:"mb-1",style:{transitionDelay:t?`${120+f*45}ms`:"0ms",transform:t?"none":"translateX(16px)",opacity:t?1:0,transition:"transform 400ms cubic-bezier(0.22,1,0.36,1), opacity 400ms"},children:[e.jsxs("div",{className:`flex items-center rounded-2xl transition-colors ${g?"bg-[#007ab7]/[0.05]":"active:bg-gray-50"}`,children:[e.jsxs("a",{href:d.href||"#",className:"flex items-center gap-3 flex-1 pl-2.5 pr-1 py-3",onClick:w=>{w.preventDefault(),C?g?j(d.href):x(d.key):j(d.href)},children:[e.jsx("span",{className:`w-9 h-9 rounded-xl flex items-center justify-center flex-shrink-0 ${d.accent?"bg-[#007ab7] text-white":g?"bg-[#007ab7]/10 text-[#007ab7]":"bg-gray-100 text-gray-500"}`,children:d.icon&&ut[d.icon]?Qe.createElement(ut[d.icon],{size:17}):e.jsx("span",{className:"text-[13px] font-extrabold",children:d.label.charAt(0)})}),e.jsx("span",{className:`text-[15px] font-bold ${d.accent?"text-[#007ab7]":"text-gray-800"}`,children:b(d.label)}),k&&e.jsx("span",{className:"bg-orange-500 text-white text-[9px] font-bold uppercase px-1.5 py-0.5 rounded-full leading-none",children:"HOT"})]}),C&&e.jsx("button",{onClick:()=>x(g?null:d.key),"aria-label":"Toggle submenu",className:"w-11 h-11 mr-1 rounded-xl flex items-center justify-center text-gray-400 active:bg-gray-100 transition-colors",children:e.jsx(Ze,{size:18,className:`transition-transform duration-300 ${g?"rotate-180 text-[#007ab7]":""}`})})]}),C&&e.jsx("div",{className:"grid transition-[grid-template-rows] duration-300 ease-out",style:{gridTemplateRows:g?"1fr":"0fr"},children:e.jsx("div",{className:"overflow-hidden",children:e.jsxs("div",{className:"pl-12 pr-2 pt-1.5 pb-2",children:[d.type==="mega"&&e.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[h.map(w=>e.jsx("a",{href:`/category/${w.slug}`,onClick:S=>{S.preventDefault(),j(`/category/${w.slug}`)},className:"px-3 py-1.5 rounded-full bg-gray-50 ring-1 ring-black/[0.04] text-[12.5px] font-medium text-gray-600 active:bg-[#007ab7]/5 active:text-[#007ab7] transition-colors",children:w.name},w.slug)),e.jsxs("a",{href:`/category/${d.mega}`,onClick:w=>{w.preventDefault(),j(`/category/${d.mega}`)},className:"px-3 py-1.5 rounded-full bg-[#007ab7]/10 text-[#007ab7] text-[12.5px] font-bold inline-flex items-center gap-1 active:bg-[#007ab7]/15 transition-colors",children:["All ",b(d.label)," ",e.jsx(Y,{size:12})]})]}),d.type==="panel"&&e.jsxs("div",{className:"space-y-3",children:[(d.groups||[]).map((w,S)=>e.jsxs("div",{children:[w.heading&&e.jsx("p",{className:"text-[10px] font-bold uppercase tracking-widest text-gray-300 mb-1.5",children:w.heading}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:w.links.map(N=>e.jsx("a",{href:N.href,onClick:E=>{E.preventDefault(),j(N.href)},className:"px-3 py-1.5 rounded-full bg-gray-50 ring-1 ring-black/[0.04] text-[12.5px] font-medium text-gray-600 active:bg-[#007ab7]/5 active:text-[#007ab7] transition-colors",children:b(N.label)},N.href+N.label))})]},S)),d.href&&e.jsxs("a",{href:d.href,onClick:w=>{w.preventDefault(),j(d.href)},className:"inline-flex items-center gap-1 text-xs font-bold text-[#007ab7]",children:["View ",b(d.label)," ",e.jsx(Y,{size:13})]})]})]})})})]},d.key)})]}),e.jsx(Ea,{onClose:s}),e.jsxs("div",{className:"px-5 py-4",children:[e.jsx("p",{className:"text-[10px] font-extrabold uppercase tracking-[0.18em] text-gray-300 mb-2.5",children:"More"}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:[{label:"All Tags",path:"/tags"},{label:"Community",path:"/community"},{label:"Advertise",path:"/advertise"},{label:"TRM Digital",path:"/digital"},{label:"Contact",path:"/contact"},{label:"API Docs",path:"/api/docs"}].map(d=>e.jsx("a",{href:d.path,onClick:f=>{f.preventDefault(),j(d.path)},className:"px-3 py-1.5 rounded-full bg-gray-50 ring-1 ring-black/[0.04] text-[12px] font-semibold text-gray-500 active:text-[#007ab7] transition-colors",children:b(d.label)},d.path))})]})]}),e.jsxs("div",{className:"border-t border-gray-100 px-5 pt-4 pb-[max(1rem,env(safe-area-inset-bottom))] bg-gradient-to-b from-white to-gray-50/50",children:[e.jsx("div",{className:"flex items-center justify-center gap-3 mb-3",children:n.map(({Icon:d,href:f,label:g})=>e.jsx("a",{href:f,target:"_blank",rel:"noopener noreferrer","aria-label":g,className:"w-10 h-10 rounded-full bg-gray-100 flex items-center justify-center text-gray-500 active:bg-[#007ab7] active:text-white transition-colors",children:e.jsx(d,{size:16})},g))}),e.jsxs("a",{href:`mailto:${r.contact.general||"[email protected]"}`,className:"flex items-center justify-center gap-1.5 text-xs text-gray-400 active:text-gray-600 transition-colors",children:[e.jsx(xe,{size:12}),r.contact.general||"[email protected]"]})]})]})]}),document.body)},Ea=({onClose:t})=>{const{user:s,isAuthenticated:a,logout:r}=be();if(!a)return e.jsx("div",{className:"px-5 py-4 border-t border-gray-100",children:e.jsxs("div",{className:"bg-gradient-to-r from-[#007ab7] to-[#005f8d] rounded-xl p-4 text-center",children:[e.jsx("p",{className:"text-white font-bold text-sm mb-1",children:"Join the Community"}),e.jsx("p",{className:"text-white/60 text-xs mb-4",children:"Share posts, follow experts, bookmark articles"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("a",{href:"/login",onClick:n=>{n.preventDefault(),I("/login"),t()},className:"flex-1 bg-white text-[#007ab7] py-2.5 rounded-lg text-xs font-bold text-center hover:bg-white/90 transition-colors",children:"Sign In"}),e.jsx("a",{href:"/register",onClick:n=>{n.preventDefault(),I("/register"),t()},className:"flex-1 bg-white/20 text-white py-2.5 rounded-lg text-xs font-bold text-center hover:bg-white/30 transition-colors border border-white/20",children:"Register"})]})]})});
2const i=(s==null?void 0:s.avatar)||`https://ui-avatars.com/api/?name=${encodeURIComponent((s==null?void 0:s.name)||"U")}&background=007ab7&color=fff&size=40`;return e.jsxs("div",{className:"px-5 py-4 border-t border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx("img",{src:i,alt:"",className:"w-10 h-10 rounded-full object-cover"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"font-bold text-sm text-gray-900 truncate",children:s==null?void 0:s.name}),e.jsxs("p",{className:"text-xs text-gray-400 truncate",children:["@",s==null?void 0:s.username]})]})]}),e.jsx("div",{className:"grid grid-cols-2 gap-2",children:[{label:"Dashboard",path:"/dashboard"},{label:"My Profile",path:`/member/${s==null?void 0:s.username}`},{label:"Edit Profile",path:"/profile/edit"},{label:"Bookmarks",path:"/dashboard"}].map(n=>e.jsx("a",{href:n.path,onClick:c=>{c.preventDefault(),I(n.path),t()},className:"text-xs text-gray-600 hover:text-[#007ab7] py-1.5 transition-colors",children:n.label},n.label))}),e.jsx("button",{onClick:async()=>{await r(),t(),I("/")},className:"w-full mt-3 py-2.5 text-xs font-bold text-red-500 bg-red-50 rounded-lg hover:bg-red-100 transition-colors",children:"Sign Out"})]})},Ca=()=>{const{t}=K(),[s,a]=l.useState(!1),[r,i]=l.useState(!1),[n,c]=l.useState(""),[o,b]=l.useState(""),[m,x]=l.useState(!1),[j,P]=l.useState(!1);l.useEffect(()=>{const g=localStorage.getItem("newsletter_dismissed");if(g==="subscribed"){i(!0);return}if(!g){let k=!1,C;const h=()=>{const N=document.documentElement.scrollHeight-window.innerHeight;return N<=0?0:window.scrollY/N},u=()=>{C&&window.clearTimeout(C),window.removeEventListener("scroll",S)},w=()=>{k||window.innerWidth<1024||(k=!0,u(),a(!0))},S=()=>{h()>=.5&&w()};return C=window.setTimeout(w,3e4),window.addEventListener("scroll",S,{passive:!0}),u}},[]);const d=()=>{a(!1),localStorage.setItem("newsletter_dismissed",Date.now().toString())},f=async g=>{g.preventDefault(),P(!0);try{await fetch("/api/v1/contact",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({name:o,email:n,inquiry_type:"Newsletter Subscription",message:"Subscribed via popup"})}),x(!0),i(!0),localStorage.setItem("newsletter_dismissed","subscribed"),setTimeout(()=>a(!1),3e3)}catch{}P(!1)};return r?null:e.jsxs(e.Fragment,{children:[!s&&e.jsx("button",{onClick:()=>a(!0),className:"fixed bottom-6 left-6 z-[90] group",children:e.jsxs("div",{className:"relative flex items-center",children:[e.jsx("div",{className:"w-12 h-12 bg-white rounded-full shadow-lg border border-gray-200 flex items-center justify-center group-hover:shadow-xl group-hover:scale-110 transition-all",children:e.jsx(xe,{size:20,className:"text-[#007ab7]"})}),e.jsx("div",{className:"ml-3 bg-white rounded-full shadow-lg border border-gray-200 px-4 py-2 hidden sm:block group-hover:shadow-xl transition-all",children:e.jsx("span",{className:"text-xs font-bold text-gray-800",children:t("newsletterPopup.floatingCta")})}),e.jsx("span",{className:"absolute -top-1 -right-1 w-3.5 h-3.5 bg-[#007ab7] rounded-full border-2 border-white",children:e.jsx("span",{className:"absolute inset-0 bg-[#007ab7] rounded-full animate-ping opacity-40"})})]})}),s&&e.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",style:{animation:"fadeIn 0.2s ease-out"},children:[e.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:d}),e.jsxs("div",{className:"relative w-full max-w-[420px] overflow-hidden rounded-3xl shadow-2xl",style:{animation:"slideUp 0.3s ease-out"},children:[e.jsx("style",{children:` 3 @keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } } 4 @keyframes slideUp { from { opacity: 0; transform: translateY(30px) } to { opacity: 1; transform: translateY(0) } } 5 `}),e.jsx("button",{onClick:d,className:"absolute top-4 right-4 z-10 w-8 h-8 bg-white/20 hover:bg-white/30 rounded-full flex items-center justify-center transition-colors",children:e.jsx(le,{size:16,className:"text-white"})}),m?e.jsxs("div",{className:"bg-white p-10 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-2xl flex items-center justify-center mx-auto mb-5",children:e.jsx(je,{size:28,className:"text-green-500"})}),e.jsx("h2",{className:"text-2xl font-montserrat font-bold text-gray-900 mb-2",children:t("newsletterPopup.successTitle")}),e.jsx("p",{className:"text-gray-500 text-sm",children:t("newsletterPopup.successMessage")})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"relative bg-[#007ab7] px-8 pt-8 pb-12 overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"radial-gradient(circle at 2px 2px, white 1px, transparent 0)",backgroundSize:"24px 24px"}}),e.jsx("div",{className:"absolute -top-20 -right-20 w-60 h-60 bg-white/10 rounded-full blur-3xl"}),e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 bg-white/15 rounded-full px-3 py-1 text-[10px] font-bold text-white/90 uppercase tracking-wider mb-4",children:[e.jsx(Je,{size:10})," ",t("newsletterPopup.badge")]}),e.jsx("h2",{className:"text-[22px] font-montserrat font-bold text-white leading-tight mb-2",children:t("newsletterPopup.title")}),e.jsx("p",{className:"text-white/60 text-sm leading-relaxed",children:t("newsletterPopup.subtitle")})]})]}),e.jsxs("div",{className:"bg-white px-8 pt-0 pb-8 -mt-4 relative",children:[e.jsx("div",{className:"bg-white rounded-2xl border border-gray-100 shadow-sm p-5 -mt-4 relative z-10",children:e.jsxs("form",{onSubmit:f,className:"space-y-3",children:[e.jsx("div",{children:e.jsx("input",{type:"text",placeholder:t("newsletterPopup.namePlaceholder"),value:o,onChange:g=>b(g.target.value),className:"w-full bg-gray-50 border border-gray-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-[#007ab7] focus:bg-white focus:ring-2 focus:ring-[#007ab7]/10 transition-all placeholder-gray-400"})}),e.jsx("div",{children:e.jsx("input",{type:"email",required:!0,placeholder:t("newsletterPopup.emailPlaceholder"),value:n,onChange:g=>c(g.target.value),className:"w-full bg-gray-50 border border-gray-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-[#007ab7] focus:bg-white focus:ring-2 focus:ring-[#007ab7]/10 transition-all placeholder-gray-400"})}),e.jsx("button",{type:"submit",disabled:j,className:"w-full bg-[#007ab7] text-white py-3.5 rounded-xl font-bold text-sm hover:bg-[#005f8d] transition-all disabled:opacity-50 flex items-center justify-center gap-2 shadow-md shadow-[#007ab7]/20",children:j?e.jsx("span",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}):e.jsxs(e.Fragment,{children:[t("newsletterPopup.submitButton")," ",e.jsx(te,{size:16})]})})]})}),e.jsxs("div",{className:"flex items-center justify-center gap-4 mt-4 text-[10px] text-gray-400",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(je,{size:10,
5className:"text-green-500"})," ",t("newsletterPopup.trustNoSpam")]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(je,{size:10,className:"text-green-500"})," ",t("newsletterPopup.trustWeeklyDigest")]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(je,{size:10,className:"text-green-500"})," ",t("newsletterPopup.trustUnsubscribe")]})]})]})]})]})]})]})},Ta=()=>{const{t}=K(),[s,a]=l.useState(null),[r,i]=l.useState(!1),[n,c]=l.useState(!1),[o,b]=l.useState([]),[m,x]=l.useState(!1),[j,P]=l.useState(null),[d,f]=l.useState(0),[g,k]=l.useState(!1);l.useEffect(()=>{(async()=>{try{const E=await(await fetch("/api/v1/surveys/active",{headers:{Accept:"application/json"}})).json();if(!E.survey)return;const $=E.survey,M=`survey_${$.id}`;if(localStorage.getItem(M)){localStorage.getItem(M)==="voted"&&(a($),P($.results),f($.total_votes),x(!0),setTimeout(()=>i(!0),$.delay_seconds*1e3));return}a($),setTimeout(()=>i(!0),$.delay_seconds*1e3)}catch{}})()},[]);const C=()=>{i(!1),s&&localStorage.setItem(`survey_${s.id}`,"dismissed")},h=S=>{m||(s!=null&&s.allow_multiple?b(N=>N.includes(S)?N.filter(E=>E!==S):[...N,S]):b([S]))},u=async()=>{if(!(!s||o.length===0||g)){k(!0);try{const N=await(await fetch(`/api/v1/surveys/${s.id}/vote`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({selected:o})})).json();N.results&&(P(N.results),f(N.total_votes)),x(!0),localStorage.setItem(`survey_${s.id}`,"voted")}catch{}k(!1)}};if(!r||!s)return null;const w=s.position!=="bottom-left";return n?e.jsxs("button",{onClick:()=>c(!1),className:`fixed bottom-6 ${w?"right-6":"left-6"} z-[90] bg-[#007ab7] text-white px-4 py-2.5 rounded-full shadow-lg hover:bg-[#005f8d] transition-all flex items-center gap-2 text-sm font-medium`,children:[e.jsx(Ne,{size:16}),e.jsx("span",{children:t("surveyPopup.pollPill")}),d>0&&e.jsx("span",{className:"bg-white/20 px-2 py-0.5 rounded-full text-xs",children:d})]}):e.jsxs("div",{className:"fixed bottom-6 left-3 right-3 sm:left-auto sm:right-6 sm:w-[340px] z-[90] bg-white rounded-2xl shadow-2xl overflow-hidden border border-gray-100",style:{animation:"slideUp 0.4s ease-out"},children:[e.jsx("style",{children:` 6 @keyframes slideUp { 7 from { opacity: 0; transform: translateY(20px); } 8 to { opacity: 1; transform: translateY(0); } 9 } 10 @keyframes growBar { 11 from { width: 0; } 12 } 13 `}),e.jsxs("div",{className:"bg-gradient-to-r from-[#007ab7] to-[#004d73] px-5 py-4 flex items-start justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 bg-white/20 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(Ne,{size:16,className:"text-white"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-white/60 text-[10px] uppercase tracking-wider font-semibold",children:t("surveyPopup.quickPoll")}),e.jsx("h3",{className:"text-white text-sm font-bold leading-tight mt-0.5",children:s.title})]})]}),e.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0 ml-2",children:[e.jsx("button",{onClick:()=>c(!0),className:"text-white/50 hover:text-white transition-colors p-0.5",title:t("surveyPopup.minimize"),children:e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:e.jsx("rect",{y:"11",width:"14",height:"2",rx:"1",fill:"currentColor"})})}),e.jsx("button",{onClick:C,className:"text-white/50 hover:text-white transition-colors p-0.5",children:e.jsx(le,{size:16})})]})]}),s.description&&!m&&e.jsx("p",{className:"px-5 pt-3 text-xs text-gray-500",children:s.description}),e.jsx("div",{className:"px-5 py-4",children:m&&j?e.jsxs("div",{className:"space-y-2.5",children:[j.map((S,N)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between text-xs mb-1",children:[e.jsx("span",{className:"font-medium text-gray-700",children:S.label}),e.jsxs("span",{className:"text-gray-400",children:[S.percent,"%"]})]}),e.jsx("div",{className:"w-full bg-gray-100 rounded-full h-2.5 overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full",style:{width:`${S.percent}%`,background:"linear-gradient(90deg, #007ab7, #004d73)",animation:"growBar 0.8s ease-out"}})})]},N)),e.jsxs("div",{className:"flex items-center gap-1.5 pt-1",children:[e.jsx(vs,{size:12,className:"text-green-500"}),e.jsxs("span",{className:"text-[11px] text-gray-400",children:[t("surveyPopup.voteCount",{count:d})," · ",t("surveyPopup.thankYou")]})]})]}):e.jsxs("div",{className:"space-y-2",children:[s.options.map((S,N)=>e.jsx("button",{onClick:()=>h(N),className:`w-full text-left px-4 py-2.5 rounded-xl border text-sm transition-all ${o.includes(N)?"border-[#007ab7] bg-[#007ab7]/5 text-[#007ab7] font-medium":"border-gray-200 hover:border-gray-300 text-gray-700"}`,children:e.jsxs("span",{className:"flex items-center gap-2.5",children:[e.jsx("span",{className:`w-4 h-4 rounded-${s.allow_multiple?"sm":"full"} border-2 flex items-center justify-center flex-shrink-0 ${o.includes(N)?"border-[#007ab7] bg-[#007ab7]":"border-gray-300"}
13`,children:o.includes(N)&&e.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"white",children:e.jsx("path",{d:"M1 4L3 6L7 2",stroke:"white",strokeWidth:"1.5",fill:"none"})})}),S]})},N)),e.jsx("button",{onClick:u,disabled:o.length===0||g,className:"w-full mt-2 bg-[#007ab7] text-white py-2.5 rounded-xl text-sm font-bold hover:bg-[#005f8d] transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:t(g?"surveyPopup.submitting":"surveyPopup.voteButton")}),s.total_votes>0&&e.jsx("p",{className:"text-[10px] text-gray-400 text-center",children:t("surveyPopup.votesSoFar",{count:s.total_votes})})]})}),s.sponsor&&e.jsx("div",{className:"px-5 py-2.5 bg-gray-50 border-t border-gray-100",children:s.sponsor.url?e.jsxs("a",{href:s.sponsor.url,target:"_blank",rel:"noopener noreferrer sponsored",className:"flex items-center gap-2 group",children:[e.jsx("span",{className:"text-[10px] text-gray-400",children:s.sponsor.label}),s.sponsor.logo?e.jsx("img",{src:s.sponsor.logo,alt:s.sponsor.name,className:"h-4 object-contain"}):e.jsx("span",{className:"text-xs font-semibold text-gray-600 group-hover:text-[#007ab7] transition-colors",children:s.sponsor.name}),e.jsx(et,{size:10,className:"text-gray-300 group-hover:text-[#007ab7] transition-colors"})]}):e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-[10px] text-gray-400",children:s.sponsor.label}),s.sponsor.logo?e.jsx("img",{src:s.sponsor.logo,alt:s.sponsor.name,className:"h-4 object-contain"}):e.jsx("span",{className:"text-xs font-semibold text-gray-600",children:s.sponsor.name})]})})]})},Aa=()=>{const[t,s]=l.useState(null),[a,r]=l.useState(!1),[i,n]=l.useState(!1);l.useEffect(()=>{if(sessionStorage.getItem("banner_dismissed"))return;const b=setTimeout(()=>{fetch("/api/v1/banner",{headers:{Accept:"application/json"}}).then(m=>m.json()).then(m=>{m.banner&&(s(m.banner),setTimeout(()=>n(!0),300))}).catch(()=>{})},3e4);return()=>clearTimeout(b)},[]);const c=()=>{n(!1),setTimeout(()=>r(!0),300),sessionStorage.setItem("banner_dismissed","1")},o=()=>{t&&fetch(`/api/v1/banner/${t.id}/click`,{method:"POST",headers:{Accept:"application/json"}}).catch(()=>{})};return a||!t?null:e.jsx("div",{className:`fixed bottom-0 left-0 right-0 z-[80] transition-transform duration-300 ease-out ${i?"translate-y-0":"translate-y-full"}`,children:e.jsx("div",{className:"px-4 pb-3",children:e.jsxs("div",{className:"max-w-[1000px] mx-auto bg-gray-50 border border-gray-200 rounded-2xl shadow-lg flex items-center gap-3 px-4 py-2",children:[t.sponsor_name&&e.jsx("span",{className:"hidden sm:inline-flex text-[9px] font-bold uppercase tracking-wider text-gray-400 bg-gray-100 px-2 py-1 rounded flex-shrink-0",children:"Ad"}),t.link_url?e.jsx("a",{href:t.link_url,target:"_blank",rel:"noopener noreferrer sponsored",onClick:o,className:"flex-1 flex items-center justify-center min-w-0",children:t.image?e.jsx("img",{src:t.image,alt:t.title,loading:"lazy",decoding:"async",className:"max-h-[60px] sm:max-h-[72px] w-auto object-contain"}):e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-sm font-bold text-gray-900",children:t.title}),t.sponsor_name&&e.jsxs("span",{className:"text-xs text-gray-400",children:["by ",t.sponsor_name]})]})}):e.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.image?e.jsx("img",{src:t.image,alt:t.title,loading:"lazy",decoding:"async",className:"max-h-[60px] sm:max-h-[72px] w-auto object-contain"}):e.jsx("span",{className:"text-sm font-bold text-gray-900",children:t.title})}),e.jsx("button",{onClick:c,className:"flex-shrink-0 w-7 h-7 flex items-center justify-center rounded-full bg-gray-100 text-gray-400 hover:bg-gray-200 hover:text-gray-600 transition-colors",title:"Close",children:e.jsx(le,{size:14})})]})})})},Ra=()=>(l.useEffect(()=>{const t=new Set,s=[];let a=null;const r=()=>{if(s.length===0)return;const o=[...s];s.length=0,fetch("/api/v1/track/impressions",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({article_ids:o,context:"feed"}),keepalive:!0}
13).catch(()=>{})},i=new IntersectionObserver(o=>{let b=!1;o.forEach(m=>{if(m.isIntersecting){const x=m.target.dataset.articleId;x&&!t.has(x)&&(t.add(x),s.push(Number(x)),b=!0)}}),b&&(a&&clearTimeout(a),a=setTimeout(r,2e3))},{threshold:.3}),n=()=>{document.querySelectorAll("[data-article-id]").forEach(o=>{t.has(o.getAttribute("data-article-id"))||i.observe(o)})};n();const c=setInterval(n,3e3);return()=>{i.disconnect(),clearInterval(c),r()}},[]),null),La=({data:t,sidebarBanner:s})=>{var _e;const{t:a}=K(),{latest:r,featured:i,featured_list:n,sidebar:c}=t,o=n.length>0?n:i?[i]:[],[b,m]=l.useState(0),[x,j]=l.useState(null),[P,d]=l.useState(!1),[f,g]=l.useState(0),[k,C]=l.useState(null),[h,u]=l.useState(0),[w,S]=l.useState(!1),N=l.useRef(null),E=l.useRef(null),$=l.useRef(null),M=l.useRef(null),F=l.useRef(null),[z,H]=l.useState(null),[X,re]=l.useState(0),Q=l.useRef(null),ee=l.useRef(!1),p=l.useRef(null),T=l.useRef(!0),O=l.useCallback((v,y)=>{if(P||v===f||o.length<=1)return;const B=y||(v>f?"left":"right");C(v),j(B),d(!0)},[P,f,o.length]),_=l.useCallback(()=>{const v=(f+1)%o.length;O(v,"left")},[f,o.length,O]),U=l.useCallback(()=>{const v=f>0?f-1:o.length-1;O(v,"right")},[f,o.length,O]),q=()=>{k!==null&&(g(k),m(k)),d(!1),j(null),C(null)},W=l.useCallback(()=>{if(!F.current)return;const v=F.current.offsetHeight;v>0&&H(y=>y&&y>=v?y:v)},[]);l.useLayoutEffect(()=>{W()},[f,(_e=o[f])==null?void 0:_e.id,W]),l.useEffect(()=>{const v=()=>{H(null),requestAnimationFrame(W)};return window.addEventListener("resize",v),()=>window.removeEventListener("resize",v)},[W]),l.useEffect(()=>{const v=M.current;if(!v)return;const y=B=>{$.current==="horizontal"&&B.preventDefault()};return v.addEventListener("touchmove",y,{passive:!1}),()=>v.removeEventListener("touchmove",y)},[]),l.useEffect(()=>{const v=p.current;if(!v)return;const y=new IntersectionObserver(([B])=>{T.current=B.isIntersecting},{threshold:.15});return y.observe(v),()=>y.disconnect()},[]),l.useEffect(()=>{if(o.length<=1)return;re(0);const v=6e3,y=50;let B=0;return Q.current&&clearInterval(Q.current),Q.current=setInterval(()=>{ee.current||!T.current||(B+=y,re(B/v*100),B>=v&&(B=0,re(0),_()))},y),()=>{Q.current&&clearInterval(Q.current)}},[o.length,_,f]);const G=v=>{P||o.length<=1||(N.current=v.touches[0].clientX,E.current=v.touches[0].clientY,$.current=null,S(!0))},R=v=>{if(N.current===null||E.current===null)return;const y=v.touches[0].clientX-N.current,B=v.touches[0].clientY-E.current;$.current===null&&(Math.abs(y)>10||Math.abs(B)>10)&&($.current=Math.abs(y)>Math.abs(B)?"horizontal":"vertical"),$.current==="horizontal"&&u(y)},Z=v=>{if(N.current===null)return;const y=N.current-v.changedTouches[0].clientX;if(N.current=null,E.current=null,S(!1),u(0),$.current!=="horizontal"){$.current=null;return}$.current=null,!(Math.abs(y)<50)&&(y>0?_():U())},oe=v=>{v===f||o.length<=1||O(v)},he=o[f]||i,Se=k!==null?o[k]:null,ze=v=>w&&v==="current"?{transform:`translateX(${h}px)`,transition:"none"}:P?v==="current"?{transform:`translateX(${x==="left"?"-100%":"100%"})`,transition:"transform 400ms ease-in-out"}:{transform:"translateX(0)",transition:"transform 400ms ease-in-out"}:v==="next"?{transform:"translateX(100%)",opacity:0}:{transform:"translateX(0)"},Ie=()=>x==="left"?"translateX(100%)":x==="right"?"translateX(-100%)":"translateX(100%)",ye=(v,y=!1)=>e.jsxs(A,{to:`/article/${v.slug}`,"data-article-id":v.id,className:"group cursor-pointer block text-inherit no-underline",children:[e.jsx("div",{className:"aspect-video overflow-hidden rounded-sm mb-6",children:e.jsx("img",{src:v.cover_image||v.thumbnail||"",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700",alt:v.title,loading:y?"eager":"lazy",decoding:"async",...y?{fetchPriority:"high"}:{},onLoad:W})}),e.jsxs("div",{className:"min-h-[180px] lg:min-h-[200px]",children:[e.jsx("span",{className:"category-link mb-3 block",children:v.category}),e.jsx("h2",{className:"text-xl lg:text-3xl font-montserrat font-bold leading-tight mb-4 group-hover:text-red-700 transition-colors line-clamp-3",children:v.title}),e.jsx("p",{className:"text-gray-600 leading-relaxed text-sm line-clamp-3",children:v.excerpt}),e.jsxs("div",{className:"flex items-center gap-4 mt-4 text-[11px] text-gray-400",children:[v.time_ago&&e.jsx("span",{children:v.time_ago}),v.view_count>=100&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ae,{size:12}),v.view_count]}),v.comments_count>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ue,{size:12}),v.comments_count]})]})]})]});return e.jsxs("section",{ref:p,id:"latest",className:"max-w-[1440px] mx-auto px-4 lg:px-6 py-6 lg:py-8",children:[e.jsxs("header",{className:"mb-6 lg:mb-8 flex items-end justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl lg:text-3xl font-montserrat font-extrabold text-gray-900 tracking-tight",children:e.jsx(A,{to:"/robotics-news",className:"text-inherit no-underline hover:text-red-700 transition-colors",children:a("home.latestNews")})}),e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:a("home.latestNewsSubtitle")})]}),e.jsx(A,{to:"/robotics-news",className:"hidden sm:inline-block flex-shrink-0 text-xs font-bold text-gray-400 hover:text-red-700 transition-colors uppercase tracking-wide",children:a("common.allNews")})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 lg:gap-10",children:[e.jsxs("div",{className:"hidden lg:block lg:col-span-3",children:[s&&e.jsxs("div",{className:"mb-6",children:[s.link_url?e.jsx("a",{href:s.link_url,target:"_blank",rel:"noopener noreferrer sponsored",onClick:()=>{fetch(`/api/v1/banner/${s.id}/click`,{method:"POST",headers:{Accept:"application/json"}}).catch(()=>{})},className:"block overflow-hidden rounded-xl hover:shadow-md transition-shadow duration-300",children:s.image?e.jsx("img",{src:s.image,alt:s.title,loading:"lazy",decoding:"async",className:"w-full h-auto object-cover"}):e.jsx("div",{className:"bg-gray-100 p-4 text-center",children:e.jsx("p",{className:"text-sm font-bold text-gray-800",children:s.title})})}):e.jsx("div",{className:"overflow-hidden rounded-xl",children:s.image?e.jsx("img",{src:s.image,alt:s.title,loading:"lazy",decoding:"async",className:"w-full h-auto object-cover"}):e.jsx("div",{className:"bg-gray-100 p-4 text-center",children:e.jsx("p",{className:"text-sm font-bold text-gray-800",children:s.title})})}),s.sponsor_name&&e.jsxs("span",{className:"text-[9px] uppercase tracking-wider text-gray-400 mt-1.5 block",children:["Ad · ",s.sponsor_name]})]}),e.jsxs("div",{className:"flex justify-between items-center mb-8 border-b border-gray-100 pb-2",children:[e.jsx("h2",{className:"text-sm font-extrabold tracking-[0.2em] text-gray-900 uppercase",children:"Robotics"}),e.jsx(A,{to:"/category/robotics",className:"text-xs font-bold text-gray-400 hover:text-red-700 transition-colors",children:"See All"})]}),e.jsx("div",{className:s?"space-y-6":"space-y-10",children:(s?r.slice(0,3):r).map((v,y)=>e.jsxs(A,{to:`/article/${v.slug}`,"data-article-id":v.id,className:"flex gap-6 group cursor-pointer text-inherit no-underline",children:[e.jsx("span",{className:"latest-number",children:y+1}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"category-link mb-2",children:v.category}),e.jsx("h3",{className:"text-sm font-bold leading-snug group-hover:text-red-700 transition-colors",children:v.title}),e.jsxs("div",{className:"flex items-center gap-3 mt-3",children:[e.jsx("span",{className:"timestamp",children:v.time_ago}),v.view_count>=100&&e.jsxs("span",{className:"flex items-center gap-1 text-[10px] text-gray-400",children:[e.jsx(ae,{size:10}),v.view_count]}),v.comments_count>0&&e.jsxs("span",{className:"flex items-center gap-1 text-[10px] text-gray-400",children:[e.jsx(ue,{size:10}),v.comments_count]})]})]})]},v.id))})]}),e.jsx("div",{className:"order-first lg:order-none lg:col-span-6 border-0 lg:border-x lg:border-gray-100 px-0 lg:px-8",onMouseEnter:()=>{ee.current=!0},onMouseLeave:()=>{ee.current=!1},children:he&&e.jsxs("div",{children:[e.jsxs("div",{ref:M,className:"relative overflow-hidden",style:z?{minHeight:z}:void 0,onTouchStart:G,onTouchMove:R,onTouchEnd:Z,children:[e.jsx("div",{ref:F,style:ze("current"),onTransitionEnd:q,children:ye(he,f===0)}),P&&Se&&e.jsx("div",{className:"absolute inset-0",style:{transform:Ie(),...ze("next")},children:ye(Se)}),w&&Math.abs(h)>10&&e.jsx("div",{className:"absolute inset-0",style:{transform:h<0?`translateX(${h+M.current.offsetWidth}px)`:`translateX(${h-M.current.offsetWidth}px)`,transition:"none"},children:ye(h<0?o[(f+1)%o.length]:o[f>0?f-1:o.length-1])})]}),o.length>1&&e.jsx("div",{className:"flex gap-2 mt-6 overflow-x-auto scrollbar-hide justify-center items-center h-[48px]",children:o.map((v,y)=>{const B=b===y;return e.jsxs("button",{onClick:()=>oe(y),className:`relative flex-shrink-0 w-[68px] h-[42px] rounded-lg overflow-hidden transition-all duration-400 ease-out ${B?"shadow-lg shadow-black/15 ring-2 ring-[#007ab7]":"opacity-45 hover:opacity-75 grayscale-[
1360%] hover:grayscale-0"}`,children:[e.jsx("img",{src:v.cover_image||v.thumbnail||"",alt:v.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover"}),B&&e.jsx("div",{className:"absolute inset-x-0 bottom-0 h-[2.5px] bg-black/20",children:e.jsx("div",{className:"h-full bg-gradient-to-r from-[#007ab7] to-cyan-400",style:{width:`${X}%`,transition:"none"}})})]},y)})})]})}),e.jsxs("div",{className:"lg:col-span-3",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-8 border-b border-gray-100 pb-2",children:[e.jsx("div",{className:"w-4 h-4 bg-red-700 flex items-center justify-center text-white text-[10px] font-bold",children:"+"}),e.jsx("h2",{className:"text-sm font-extrabold tracking-[0.2em] text-gray-900 uppercase flex-grow",children:"AI & Technology"}),e.jsx(A,{to:"/category/ai-technology",className:"text-xs font-bold text-gray-400 hover:text-red-700 transition-colors",children:"See All"})]}),e.jsx("div",{className:"space-y-4",children:c.map((v,y)=>e.jsx(A,{to:`/article/${v.slug}`,"data-article-id":v.id,className:"group cursor-pointer rounded-xl hover:bg-gray-50 transition-colors duration-200 overflow-hidden block text-inherit no-underline",children:y===0?e.jsxs("div",{children:[e.jsx("div",{className:"aspect-[16/9] overflow-hidden rounded-xl",children:e.jsx("img",{src:v.cover_image||v.thumbnail||"",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",alt:v.title,loading:"lazy",decoding:"async"})}),e.jsxs("div",{className:"pt-3 pb-2 px-1",children:[e.jsx("span",{className:"category-link text-[10px] mb-1.5 block",children:v.category}),e.jsx("h4",{className:"text-sm font-bold leading-snug group-hover:text-red-700 transition-colors",children:v.title}),e.jsxs("div",{className:"flex items-center gap-3 mt-2 text-[10px] text-gray-400",children:[v.time_ago&&e.jsx("span",{children:v.time_ago}),v.view_count>=100&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ae,{size:9}),v.view_count]})]})]})]}):e.jsxs("div",{className:"flex items-center gap-3 p-2",children:[e.jsx("div",{className:"w-[52px] h-[52px] flex-shrink-0 overflow-hidden rounded-lg",children:e.jsx("img",{src:v.thumbnail||"",className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-500",alt:v.title,loading:"lazy",decoding:"async"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("span",{className:"category-link text-[9px] mb-0.5 block",children:v.category}),e.jsx("h4",{className:"text-xs font-semibold leading-tight group-hover:text-red-700 transition-colors line-clamp-2",children:v.title}),e.jsxs("div",{className:"flex items-center gap-2 mt-1 text-[10px] text-gray-400",children:[v.time_ago&&e.jsx("span",{children:v.time_ago}),v.view_count>=100&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ae,{size:9}),v.view_count]})]})]})]})},v.id))})]})]})]})};let Ae=[],yt=null;function Da(t){yt=t,Ae.forEach(s=>s(t))}function $e(){yt=null,Ae.forEach(t=>t(null))}function Ia(){const[t,s]=l.useState(yt);return l.useEffect(()=>(Ae.push(s),()=>{Ae=Ae.filter(a=>a!==s)}),[]),t}const Pe=({article:t,variant:s="overlay"})=>{const{t:a}=K(),r=i=>{i.preventDefault(),i.stopPropagation(),Da(t)};return s==="inline"?e.jsxs("button",{onClick:r,"aria-label":a("quickRead.summaryAriaLabel"),className:"inline-flex items-center gap-1 text-[10px] font-bold text-[#007ab7] hover:underline",children:[e.jsx(Je,{size:11})," ",a("quickRead.label")]}):e.jsx("button",{onClick:r,"aria-label":a("quickRead.summaryAriaLabel"),title:a("quickRead.summaryAriaLabel"),className:"absolute top-3 right-3 z-20 w-8 h-8 rounded-full bg-white/90 backdrop-blur-sm shadow-md flex items-center justify-center text-gray-600 hover:bg-[#007ab7] hover:text-white transition-colors",children:e.jsx(Je,{size:15})})},$a=()=>{const{t}=K(),s=Ia();if(l.useEffect(()=>{if(!s)return;const i=n=>{n.key==="Escape"&&$e()};return document.body.style.overflow="hidden",window.addEventListener("keydown",i),()=>{document.body.style.overflow="",window.removeEventListener("keydown",i)}},[s]),!s)return null;const a=s.cover_image||s.thumbnail,r=()=>{const i=s.slug;$e(),I(`/article/${i}`)};return mt.createPortal(e.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-label":t("quickRead.dialogAriaLabel"),children:[e.jsx("div",{className:"absolute inset-0 bg-gray-900/60 backdrop-blur-sm",onClick:$e}),e.jsxs("div",{className:"relative bg-white rounded-2xl shadow-2xl w-full max-w-lg max-h-[90vh] overflow-y-auto",children:[a&&e.jsx("div",{className:"aspect-[16/9] overflow-hidden bg-gray-100",children:e.jsx("img",{src:a,alt:s.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover"})}),e.jsx("button",{onClick:$e,"aria-label":t("quickRead.close"),className:"absolute top-3 right-3 w-9 h-9 rounded-full bg-white/90 backdrop-blur-sm shadow text-gray-600 hover:bg-gray-100 flex items-center justify-center",children:e.jsx(le,{size:18})}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] font-bold uppercase tracking-wider text-[#007ab7] bg-[#007ab7]/10 px-2 py-0.5 rounded-full",children:[e.jsx(Je,{size:10})," ",t("quickRead.label")]}),s.category&&e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-gray-400",children:s.category})]}),e.jsx("h2",{className:"text-xl font-montserrat font-bold text-gray-900 leading-snug mb-3",children:s.title}),s.excerpt?e.jsx("p",{className:"text-[15px] text-gray-700 leading-relaxed mb-4",children:s.excerpt}):e.jsx("p",{className:"text-sm text-gray-400 italic mb-4",children:t("quickRead.noSummary")}
13),e.jsxs("div",{className:"flex items-center gap-4 text-[11px] text-gray-400 mb-5",children:[s.time_ago&&e.jsx("span",{children:s.time_ago}),s.reading_time>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(pe,{size:11}),t("quickRead.minRead",{count:s.reading_time})]}),s.view_count>=100&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ae,{size:11}),s.view_count.toLocaleString()]})]}),e.jsxs("button",{onClick:r,className:"w-full inline-flex items-center justify-center gap-2 bg-[#007ab7] text-white font-bold text-sm py-3 rounded-xl hover:bg-[#005f8d] transition-colors",children:[t("quickRead.readFull")," ",e.jsx(te,{size:16})]})]})]})]}),document.body)},Oa=({articles:t})=>{const{t:s}=K();if(!t||t.length===0)return null;const a=t[0],r=t.slice(1,5);return e.jsxs("section",{id:"popular",className:"max-w-[1440px] mx-auto px-4 lg:px-6 py-8 lg:py-12 border-t border-gray-100",children:[e.jsxs("div",{className:"flex justify-between items-end mb-8",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-9 h-9 bg-[#007ab7] rounded-xl flex items-center justify-center shadow-sm shadow-[#007ab7]/30",children:e.jsx(Xe,{size:17,className:"text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-extrabold tracking-[0.2em] text-gray-900 uppercase leading-none",children:s("popular.title")}),e.jsx("span",{className:"text-[11px] text-gray-400 font-medium",children:s("popular.subtitle")})]})]}),e.jsxs(A,{to:"/category/science",className:"group inline-flex items-center gap-1 text-xs font-bold text-gray-400 hover:text-[#007ab7] transition-colors",children:[s("common.seeAll")," ",e.jsx(Le,{size:13,className:"group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-transform"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6",children:[e.jsxs("div",{className:"lg:col-span-7 relative",children:[e.jsxs(A,{to:`/article/${a.slug}`,"data-article-id":a.id,className:"group cursor-pointer relative overflow-hidden rounded-2xl bg-gray-900 block text-inherit no-underline h-full",children:[e.jsx("img",{src:a.cover_image||a.thumbnail||"",alt:a.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover absolute inset-0 opacity-85 group-hover:scale-105 group-hover:opacity-75 transition-all duration-700"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-black/45 to-transparent"}),e.jsxs("div",{className:"relative flex flex-col justify-end h-full min-h-[340px] lg:min-h-[460px] p-7",children:[e.jsxs("div",{className:"absolute top-5 left-5 flex items-center gap-2",children:[e.jsx("span",{className:"w-9 h-9 bg-[#007ab7] rounded-full flex items-center justify-center text-white text-sm font-black shadow-lg ring-2 ring-white/20",children:"1"}),e.jsx("span",{className:"bg-white/10 backdrop-blur-md text-white text-[10px] font-bold uppercase tracking-wider px-3 py-1.5 rounded-full border border-white/10",children:s("popular.mostReadBadge")})]}),e.jsx("span",{className:"text-[#4db8e8] text-[11px] font-bold uppercase tracking-wider mb-2",children:a.category}),e.jsx("h3",{className:"text-white text-2xl lg:text-[28px] font-bold leading-tight mb-3 group-hover:text-[#4db8e8] transition-colors",children:a.title}),a.excerpt&&e.jsx("p",{className:"text-white/65 text-sm leading-relaxed line-clamp-2 mb-4 hidden lg:block max-w-xl",children:a.excerpt}),e.jsxs("div",{className:"flex items-center gap-4 text-white/50 text-[11px] font-medium",children:[a.time_ago&&e.jsx("span",{children:a.time_ago}),a.view_count>=100&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ae,{size:12}),a.view_count.toLocaleString()]}),a.comments_count>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ue,{size:12}),a.comments_count]})]})]})]}),e.jsx(Pe,{article:a})]}),e.jsx("div",{className:"lg:col-span-5 flex flex-col rounded-2xl border border-gray-100 bg-white divide-y divide-gray-100 overflow-hidden",children:r.map((i,n)=>e.jsxs(A,{to:`/article/${i.slug}`,"data-article-id":i.id,className:"group cursor-pointer flex items-center gap-4 p-3.5 hover:bg-gray-50 transition-colors flex-1 text-inherit no-underline",children:[e.jsx("span",{className:"flex-shrink-0 w-7 text-center font-montserrat text-2xl font-extrabold text-gray-200 group-hover:text-[#007ab7] transition-colors",children:n+2}),e.jsx("div",{className:"w-20 h-16 flex-shrink-0 overflow-hidden rounded-lg bg-gray-100",children:e.jsx("img",{src:i.cover_image||i.thumbnail||"",alt:i.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("span",{className:"text-[#007ab7] text-[9px] font-bold uppercase tracking-wider",children:i.category}),e.jsx("h4",{className:"text-[13px] font-bold leading-snug text-gray-900 group-hover:text-[#007ab7] transition-colors line-clamp-2 mt-0.5",children:i.title}),e.jsxs("div",{className:"flex items-center gap-3 mt-1.5 text-[10px] text-gray-400",children:[i.time_ago&&e.jsx("span",{children:i.time_ago}),i.view_count>=100&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ae,{size:10}
13),i.view_count.toLocaleString()]}),i.comments_count>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ue,{size:10}),i.comments_count]})]})]})]},i.id))})]})]})},It="#0B1D26",Oe="#F2C230",Ma=[{code:"TRM-WEB-01",slug:"robotics-website-design",key:"digitalBanner.web"},{code:"TRM-SFT-02",slug:"robotics-software-development",key:"digitalBanner.software"},{code:"TRM-SOC-03",slug:"robotics-social-media-management",key:"digitalBanner.social"},{code:"TRM-SEO-04",slug:"robotics-seo",key:"digitalBanner.seo"},{code:"TRM-VID-05",slug:"robotics-video-production",key:"digitalBanner.video"},{code:"TRM-APP-06",slug:"robotics-mobile-app-development",key:"digitalBanner.apps"}],Ba=()=>{const{t}=K();return e.jsx("section",{className:"trm-digital",style:{backgroundColor:It},"aria-labelledby":"trm-digital-banner-title",children:e.jsx("div",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 py-10 lg:py-14",children:e.jsxs("div",{className:"grid gap-8 lg:gap-14 lg:grid-cols-12 lg:items-center",children:[e.jsxs("div",{className:"lg:col-span-5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{"aria-hidden":!0,className:"block w-[3px] h-5",style:{backgroundColor:Oe}}),e.jsx("span",{className:"font-tech text-[10px] uppercase tracking-[0.18em]",style:{color:Oe},children:"TRM-DIGITAL"})]}),e.jsx("h2",{id:"trm-digital-banner-title",className:"font-display mt-4 text-3xl sm:text-4xl lg:text-[2.75rem] leading-[1.04] uppercase text-white",children:t("digitalBanner.title")}),e.jsx("p",{className:"mt-4 max-w-lg text-sm lg:text-[15px] leading-relaxed text-white/60",children:t("digitalBanner.body")}),e.jsxs(A,{to:"/digital",className:"group mt-6 inline-flex items-center gap-2 px-5 py-3 text-[13px] font-bold uppercase tracking-[0.12em] hover:brightness-110 transition-[filter]",style:{backgroundColor:Oe,color:It},children:[t("digitalBanner.cta"),e.jsx(te,{size:15,className:"transition-transform group-hover:translate-x-1"})]})]}),e.jsx("div",{className:"lg:col-span-7",children:e.jsx("div",{className:"grid grid-cols-2 xl:grid-cols-3 border-t border-l border-white/10",children:Ma.map(s=>e.jsxs(A,{to:`/digital/${s.slug}`,className:"group border-b border-r border-white/10 px-4 py-4 hover:bg-white/[0.04] transition-colors",children:[e.jsx("span",{className:"font-tech block text-[10px] tracking-[0.12em]",style:{color:Oe},children:s.code}),e.jsxs("span",{className:"mt-1.5 flex items-center justify-between gap-2 text-[13px] font-semibold text-white/85 group-hover:text-white",children:[t(s.key),e.jsx(Le,{size:14,className:"flex-shrink-0 text-white/25 transition-colors group-hover:text-white"})]})]},s.slug))})})]})})})},Fa=({articles:t})=>{const{t:s}=K();return t.length?e.jsxs("section",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 py-8 lg:py-12 border-t border-gray-100",children:[e.jsxs("div",{className:"flex justify-between items-center mb-6 lg:mb-8",children:[e.jsx("h2",{className:"text-sm font-extrabold tracking-[0.2em] text-gray-900 uppercase",children:s("home.recentStories")}),e.jsx(A,{to:"/category/robotics",className:"text-xs font-bold text-gray-400 hover:text-red-700 transition-colors",children:s("common.seeAll")})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:t.map(a=>e.jsxs("div",{className:"relative",children:[e.jsxs(A,{to:`/article/${a.slug}`,"data-article-id":a.id,className:"group cursor-pointer flex gap-4 text-inherit no-underline",children:[a.thumbnail&&e.jsx("div",{className:"w-28 h-24 lg:w-36 lg:h-28 flex-shrink-0 overflow-hidden rounded-lg bg-gray-100",children:e.jsx("img",{src:a.thumbnail,alt:a.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),e.jsxs("div",{className:"flex-1 flex flex-col justify-center min-w-0",children:[e.jsx("span",{className:"category-link text-[10px] mb-1",children:a.category}),e.jsx("h3",{className:"text-sm font-bold leading-snug group-hover:text-red-700 transition-colors line-clamp-2 mb-1",children:a.title}),e.jsxs("div",{className:"flex items-center gap-3 text-[11px] text-gray-400 mt-auto flex-wrap",children:[a.time_ago&&e.jsx("span",{children:a.time_ago}),a.reading_time>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(pe,{size:10}),a.reading_time," min"]}),a.view_count>=100&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ae,{size:10}),a.view_count]}),a.comments_count>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ue,{size:10}),a.comments_count]})]})]})]}),e.jsx(Pe,{article:a})]},a.id))})]}):null},Te="#e11d48",Ha=({articles:t})=>{const{t:s}=K();if(!t.length)return null;const a=t[0],r=t.slice(1,4),i=t.slice(4,8);return e.jsxs("section",{id:"hospital",className:"max-w-[1440px] mx-auto px-4 lg:px-6 py-8 lg:py-12 border-t border-gray-100",children:[e.jsxs("div",{className:"flex justify-between items-end mb-8",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl flex items-center justify-center",style:{background:Te,boxShadow:`0 4px 12px ${Te}40`},children:e.jsx(js,{size:17,className:"text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-extrabold tracking-[0.2em] text-gray-900 uppercase leading-none",children:s("hospital.title")}),e.jsx("span",{className:"text-[11px] text-gray-400 font-medium",children:s("hospital.subt
13itle")})]})]}),e.jsxs(A,{to:"/category/healthcare",className:"group inline-flex items-center gap-1 text-xs font-bold text-gray-400 transition-colors hover:text-[#e11d48]",children:[s("common.seeAll")," ",e.jsx(Le,{size:13,className:"group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-transform"})]})]}),e.jsxs("div",{className:"flex flex-col lg:flex-row gap-8 mb-8",children:[e.jsxs("div",{className:"lg:w-3/5 relative",children:[e.jsx(A,{to:`/article/${a.slug}`,"data-article-id":a.id,className:"group cursor-pointer block text-inherit no-underline",children:e.jsxs("div",{className:"relative aspect-[16/9] overflow-hidden rounded-2xl bg-gray-100",children:[e.jsx("img",{src:a.cover_image||a.thumbnail||"",alt:a.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/25 to-transparent"}),e.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-6",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-white text-[10px] font-bold uppercase tracking-wider px-3 py-1.5 rounded-full mb-3",style:{background:Te},children:[e.jsx(ks,{size:10}),a.category]}),e.jsx("h3",{className:"text-white text-2xl font-bold leading-snug",children:a.title}),a.excerpt&&e.jsx("p",{className:"text-white/70 text-sm mt-2 line-clamp-2 max-w-xl",children:a.excerpt}),e.jsxs("div",{className:"flex items-center gap-4 mt-3 text-[11px] text-white/55 font-medium",children:[a.time_ago&&e.jsx("span",{children:a.time_ago}),a.view_count>=100&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ae,{size:12}),a.view_count.toLocaleString()]}),a.comments_count>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ue,{size:12}),a.comments_count]})]})]})]})}),e.jsx(Pe,{article:a})]}),e.jsx("div",{className:"lg:w-2/5 flex flex-col justify-between",children:r.map(n=>e.jsxs(A,{to:`/article/${n.slug}`,"data-article-id":n.id,className:"flex gap-4 py-3.5 border-b border-gray-100 last:border-0 group cursor-pointer text-inherit no-underline",children:[e.jsx("div",{className:"w-28 h-20 flex-shrink-0 overflow-hidden rounded-lg bg-gray-100",children:e.jsx("img",{src:n.thumbnail||n.cover_image||"",alt:n.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),e.jsxs("div",{className:"flex-1 flex flex-col justify-center min-w-0",children:[e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wide mb-1",style:{color:Te},children:n.category}),e.jsx("h4",{className:"text-sm font-bold leading-tight line-clamp-2 transition-colors group-hover:text-[#e11d48]",children:n.title}),e.jsxs("div",{className:"flex items-center gap-3 text-[11px] text-gray-400 mt-1.5",children:[n.time_ago&&e.jsx("span",{children:n.time_ago}),n.view_count>=100&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ae,{size:10}),n.view_count.toLocaleString()]})]})]})]},n.id))})]}),i.length>0&&e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-
135",children:i.map(n=>e.jsxs("div",{className:"relative",children:[e.jsxs(A,{to:`/article/${n.slug}`,"data-article-id":n.id,className:"group cursor-pointer block rounded-xl border border-gray-100 hover:border-gray-200 hover:shadow-md transition-all overflow-hidden text-inherit no-underline",children:[e.jsx("div",{className:"aspect-[16/10] overflow-hidden bg-gray-100",children:e.jsx("img",{src:n.thumbnail||n.cover_image||"",alt:n.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),e.jsxs("div",{className:"p-3.5",children:[e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wide block mb-1.5",style:{color:Te},children:n.category}),e.jsx("h4",{className:"text-sm font-bold leading-tight line-clamp-2 transition-colors group-hover:text-[#e11d48]",children:n.title}),n.time_ago&&e.jsx("span",{className:"text-[11px] text-gray-400 mt-2 block",children:n.time_ago})]})]}),e.jsx(Pe,{article:n})]},n.id))})]})},qa=({videos:t})=>{const{t:s}=K();if(!t.length)return null;const a=t[0],r=t.slice(1,5);return e.jsxs("section",{id:"videos",className:"max-w-[1440px] mx-auto px-4 lg:px-6 py-8 lg:py-12 border-t border-gray-100",children:[e.jsxs("div",{className:"flex justify-between items-center mb-8",children:[e.jsx("h2",{className:"text-sm font-extrabold tracking-[0.2em] text-gray-900 uppercase",children:s("videos.title")}),e.jsx(A,{to:"/category/military-defense",className:"text-xs font-bold text-gray-400 hover:text-red-700 transition-colors",children:s("common.seeAll")})]}),e.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[e.jsxs("div",{className:"lg:w-1/2 group/card cursor-pointer",children:[e.jsxs("div",{className:"relative aspect-[16/10] overflow-hidden rounded-lg mb-4 bg-gray-100",children:[e.jsx("img",{src:a.imageUrl,alt:a.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover/card:scale-105 transition-transform duration-500"}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"w-14 h-14 bg-white/90 rounded-full flex items-center justify-center shadow-lg group-hover/card:scale-110 transition-transform",children:e.jsx(ct,{size:24,className:"text-gray-800 ml-1",fill:"currentColor"})})}),a.label&&e.jsx("div",{className:"absolute bottom-4 left-4",children:e.jsx("span",{className:"bg-gray-800/80 text-white text-xs font-extrabold uppercase tracking-wider px-3 py-1.5 rounded",children:a.label})})]}),e.jsx("h3",{className:"text-base font-bold leading-snug group-hover/card:text-red-700 transition-colors",children:a.title})]}),e.jsx("div",{className:"lg:w-1/2 grid grid-cols-2 gap-6",children:r.map(i=>e.jsxs("div",{className:"group/card cursor-pointer",children:[e.jsxs("div",{className:"relative aspect-[16/10] overflow-hidden rounded-lg mb-3 bg-gray-100",children:[e.jsx("img",{src:i.imageUrl,alt:i.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover/card:scale-105 transition-transform duration-500"}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"w-10 h-10 bg-white/90 rounded-full flex items-center justify-center shadow-lg group-hover/card:scale-110 transition-transform",children:e.jsx(ct,{size:16,className:"text-gray-800 ml-0.5",fill:"currentColor"})})}),i.label&&e.jsx("div",{className:"absolute bottom-3 left-3",children:e.jsx("span",{className:"bg-gray-800/80 text-white text-[10px] font-extrabold uppercase tracking-wider px-2 py-1 rounded",children:i.label})})]}),e.jsx("h3",{className:"text-sm font-bold leading-tight group-hover/card:text-red-700 transition-colors line-clamp-2",children:i.title})]},i.id))})]})]})},Wa=({engineers:t})=>{const{t:s}=K();return t!=null&&t.length?e.jsxs("section",{id:"engineers",className:"max-w-[1440px] mx-auto px-4 lg:px-6 py-8 lg:py-12 border-t border-gray-100",children:[e.jsxs("div",{className:"flex justify-between items-end mb-8",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-9 h-9 bg-[#007ab7] rounded-xl flex items-center justify-center shadow-sm shadow-[#007ab7]/30",children:e.jsx(gt,{size:17,className:"text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-extrabold tracking-[0.2em] text-gray-900 uppercase leading-none",children:s("engineers.title")}),e.jsx("span",{className:"text-[11px] text-gray-400 font-medium",children:s("engineers.subtitle")})]})]}),e.jsxs(A,{to:"/category/engineering",className:"group inline-flex items-center gap-1 text-xs font-bold text-gray-400 hover:text-[#007ab7] transition-colors",children:[s("common.seeAll")," ",e.jsx(Le,{size:13,className:"group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-transform"})]})]}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 ga
13p-5",children:t.map((a,r)=>e.jsxs(A,{to:`/engineer/${a.slug}`,className:"group relative flex flex-col items-center text-center rounded-2xl border border-gray-100 bg-white p-5 transition-all duration-300 hover:border-[#007ab7]/30 hover:shadow-lg hover:-translate-y-1 text-inherit no-underline",children:[e.jsx("span",{className:"absolute top-3 right-3 w-7 h-7 rounded-full bg-[#007ab7] text-white flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-300 shadow-md",children:e.jsx(Le,{size:13})}),e.jsxs("div",{className:"relative mb-4",children:[e.jsx("div",{className:"absolute -inset-1 rounded-full bg-gradient-to-tr from-[#007ab7] to-[#4db8e8] opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),e.jsx("div",{className:"relative w-20 h-20 lg:w-24 lg:h-24 rounded-full overflow-hidden bg-gradient-to-b from-sky-100 to-sky-200 ring-2 ring-white",children:e.jsx("img",{src:a.imageUrl,alt:a.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),a.flag&&e.jsx("span",{className:"absolute bottom-0 right-0 w-7 h-7 rounded-full bg-white shadow-md flex items-center justify-center text-sm ring-1 ring-gray-100",children:a.flag})]}),e.jsx("span",{className:"text-[#007ab7] text-[11px] font-semibold leading-tight mb-1 line-clamp-1 w-full",children:a.title}),e.jsx("h3",{className:"text-sm font-bold leading-tight text-gray-900 mb-2 line-clamp-2 group-hover:text-[#007ab7] transition-colors",children:a.name}),e.jsxs("div",{className:"mt-auto flex items-center justify-center gap-2 text-[11px] text-gray-400",children:[a.country&&e.jsx("span",{children:a.country}),a.country&&a.years&&e.jsx("span",{className:"w-1 h-1 rounded-full bg-gray-300"}),a.years&&e.jsx("span",{children:a.years})]})]},a.id||r))})]}):null},Ua=({sponsors:t})=>{const{t:s}=K();return t.length?e.jsxs("section",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 py-8 lg:py-12 border-t border-gray-100",children:[e.jsx("h2",{className:"text-sm font-extrabold tracking-[0.2em] text-gray-900 uppercase text-center mb-10",children:s("sponsors.title")}),e.jsx("div",{className:"flex flex-wrap items-center justify-center gap-8 lg:gap-14",children:t.map(a=>{const r=e.jsx("img",{src:a.logo||"",alt:a.name,loading:"lazy",decoding:"async",className:"h-10 lg:h-14 object-contain grayscale hover:grayscale-0 opacity-60 hover:opacity-100 transition-all duration-300"},a.id);return a.website_url?e.jsx("a",{href:a.website_url,target:"_blank",rel:"noopener noreferrer",title:a.name,children:r},a.id):e.jsx("div",{title:a.name,children:r},a.id)})})]}):null},$t={conference:{bg:"bg-blue-500",text:"text-white",ring:"ring-blue-500/20"},expo:{bg:"bg-purple-500",text:"text-white",ring:"ring-purple-500/20"},webinar:{bg:"bg-emerald-500",text:"text-white",ring:"ring-emerald-500/20"},workshop:{bg:"bg-amber-500",text:"text-white",ring:"ring-amber-500/20"},meetup:{bg:"bg-pink-500",text:"text-white",ring:"ring-pink-500/20"}},Ot=["from-[#003045] via-[#004d73] to-[#007ab7]","from-[#1e1b4b] via-[#312e81] to-[#4f46e5]","from-[#134e4a] via-[#115e59] to-[#0d9488]","from-[#451a03] via-[#78350f] to-[#d97706]"];function Va(t,s){const a=new Date(t),r={month:"short",day:"numeric",year:"numeric"};if(!s||t===s)return a.toLocaleDateString("en-US",r);const i=new Date(s);return a.getMonth()===i.getMonth()&&a.getFullYear()===i.getFullYear()?`${a.toLocaleDateString("en-US",{month:"short",day:"numeric"})} - ${i.getDate()}, ${i.getFullYear()}`:`${a.toLocaleDateString("en-US",r)} - ${i.toLocaleDateString("en-US",r)}`}function Ya(t){const s=new Date;s.setHours(0,0,0,0);const a=new Date(t);return a.setHours(0,0,0,0),Math.ceil((a.getTime()-s.getTime())/(1e3*60*60*24))}function Ga(t){const s=Ya(t);if(s<=0)return{value:"NOW",labelKey:"events.countdown.happening"};if(s===1)return{value:"1",labelKey:"events.countdown.dayLeft"};if(s<=7)return{value:`${s}`,labelKey:"events.countdown.daysLeft"};if(s<=60){const a=Math.ceil(s/7);return{value:`${a}`,labelKey:a===1?"events.countdown.weekLeft":"events.countdown.weeksLeft"}}return null}const Ka=({events:t})=>{const{t:s}=K();if(!t.length)return null;const a=l.useRef(null),[r,i]=l.useState(!1),[n,c]=l.useState(!0),o=()=>{const m=a.current;m&&(i(m.scrollLeft>10),c(m.scrollLeft<m.scrollWidth-m.clientWidth-10))};l.useEffect(()=>{const m=a.current;if(m)return m.addEventListener("scroll",o),o(),()=>m.removeEventListener("scroll",o)},[t]);const b=m=>{const x=a.current;x&&x.scrollBy({left:m==="left"?-340:340,behavior:"smooth"})};return e.jsxs("section",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 py-10 lg:py-14",children:[e.jsxs("div",{className:"flex justify-between items-end mb-8",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2.5 mb-2",children:[e.jsx("div",{className:"w-1 h-6 bg-[#007ab7] rounded-full"}),e.jsx("h2",{className:"text-sm font-extrabold tracking-[0.2em] text-gray-900 uppercase",children:s("events.title")})]}),e.jsx("p",{className:"text-xs text-gray-400 ml-3.5",children:s("events.subtitle")})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:()=>b("left"),disabled:!r,className:"w-9 h-9 rounded-full border border-gray-200 flex items-center justify-center text-gray-400 hover:text-gray-900 hover:border-gray-400 disabled:opacity-30 disabled:hover:border-gray-200 disabled:hover:text-gray-400 transition-all",children:e.jsx(pt,{size:16})}),e.jsx("button",{onClick:()=>b("right"),disabled:!n,className:"w-9 h-9 rounded-full border border-gray-200 flex items-center justify-center text-gray-400 hover:text-gray-900 hover:border-gray-400 disabled:opacity-30 disabled:hover:border-gray-200 disabled:hover:text-gray-400 transition-all",children:e.jsx(Y,{size:16})}),e.jsxs(A,{to:"/events",className:"hidden sm:inline-flex items-center gap-1.5 ml-2 text-xs font-bold text-[#007ab7] hover:text-[#005f8d] transition-colors",children:[s("common.viewAll")," ",e.jsx(te,{size:12})]})]})]}),e.jsxs("div",{ref:a,className:"flex gap-5 overflow-x-auto scrollbar-hide pb-2 snap-x snap-mandatory",style:{overscrollBehaviorX:"contain"},children:[t.map((m,x)=>e.jsx(Ja,{event:m,index:x},m.id)),e.jsxs(A,{to:"/event-partnership",className:"snap-start flex-shrink-0 w-[300px] lg:w-[320px] rounded-2xl border-2 border-dashed border-gray-200 hover:border-[#007ab7] flex flex-col items-center justify-center text-center p-8 cursor-pointer group transition-all hover:bg-[#007ab7]/5 text-inherit no-underline",children:[e.jsx("div",{className:"w-14 h-14 roun
13ded-2xl bg-[#007ab7]/10 flex items-center justify-center mb-4 group-hover:bg-[#007ab7]/20 transition-colors",children:e.jsx(ws,{size:24,className:"text-[#007ab7]"})}),e.jsx("h4",{className:"font-bold text-sm text-gray-800 mb-2",children:s("events.ctaTitle")}),e.jsx("p",{className:"text-xs text-gray-400 leading-relaxed mb-4",children:s("events.ctaDescription")}),e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-bold text-[#007ab7] group-hover:gap-2.5 transition-all",children:[s("events.ctaButton")," ",e.jsx(te,{size:12})]})]})]})]})},Ja=({event:t,index:s})=>{const{t:a}=K(),r=$t[t.type]||$t.conference,i=Ga(t.start_date),n=new Date(t.start_date),c=n.toLocaleDateString("en-US",{month:"short"}).toUpperCase(),o=n.getDate();return e.jsxs("div",{className:"snap-start flex-shrink-0 w-[300px] lg:w-[320px] rounded-2xl overflow-hidden bg-white border border-gray-100 hover:shadow-xl hover:border-transparent transition-all duration-300 cursor-pointer group flex flex-col",onClick:()=>t.website_url?window.open(t.website_url,"_blank"):I("/events"),children:[e.jsxs("div",{className:"relative h-[160px] overflow-hidden",children:[t.cover_image?e.jsx("img",{src:t.cover_image,alt:t.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-700"}):e.jsx("div",{className:`w-full h-full bg-gradient-to-br ${Ot[s%Ot.length]}`,children:e.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"radial-gradient(circle at 1px 1px, white 1px, transparent 0)",backgroundSize:"20px 20px"}})}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 to-transparent"}),e.jsxs("div",{className:"absolute top-3 left-3 bg-white rounded-xl px-2.5 py-1.5 text-center shadow-md",children:[e.jsx("div",{className:"text-[9px] font-extrabold text-[#007ab7] tracking-wider leading-none",children:c}),e.jsx("div",{className:"text-lg font-black text-gray-900 leading-none mt-0.5",children:o})]}),i&&e.jsxs("div",{className:"absolute top-3 right-3 bg-black/40 backdrop-blur-md rounded-full px-3 py-1.5 flex items-center gap-1.5",children:[e.jsx(pe,{size:10,className:"text-white/70"}),e.jsx("span",{className:"text-[10px] font-bold text-white",children:i.value==="NOW"?a("events.countdown.happeningNow"):`${i.value} ${a(i.labelKey)}`})]}),e.jsxs("div",{className:"absolute bottom-3 left-3 flex items-center gap-2",children:[e.jsx("span",{className:`text-[9px] font-bold uppercase tracking-wider px-2.5 py-1 rounded-full ${r.bg} ${r.text}`,children:t.type}),t.is_online&&e.jsxs("span",{className:"flex items-center gap-1 text-[9px] font-bold text-white bg-emerald-500/80 backdrop-blur-sm px-2 py-1 rounded-full",children:[e.jsx(Ns,{size:9})," ",a("events.online")]})]})]}),e.jsxs("div",{className:"p-5 flex-1 flex flex-col",children:[e.jsx("h3",{className:"font-bold text-[15px] text-gray-900 leading-snug mb-3 group-hover:text-[#007ab7] transition-colors line-clamp-2",children:t.title}),t.description&&e.jsx("p",{className:"text-xs text-gray-400 leading-relaxed mb-4 line-clamp-2",children:t.description}),e.jsxs("div",{className:"mt-auto space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500",children:[e.jsx(Ps,{size:12,className:"text-gray-400 flex-shrink-0"}),e.jsx("span",{children:Va(t.start_date,t.end_date)})]}),t.location&&e.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500",children:[e.jsx(Ss,{size:12,className:"text-gray-400 flex-shrink-0"}),e.jsx("span",{className:"truncate",children:t.location})]}),t.organizer&&e.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500",children:[e.jsx(we,{size:12,className:"text-gray-400 flex-shrink-0"}),e.jsx("span",{className:"truncate",children:t.organizer})]})]})]})]})},Xa={warehouse:"Logistics",surgical:"Medical",drone:"Drones",humanoid:"Humanoid","autonomous-vehicles":"Autonomous",agritech:"AgriTech",defense:"Defense",other:"Other"},Qa={"pre-seed":"text-gray-500",seed:"text-green-600","series-a":"text-blue-600","series-b":"text-purple-600","series-c":"text-orange-600",ipo:"text-red-600"},Za=({startups:t})=>{const{t:s}=K();return t.length?e.jsxs("section",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 py-8 lg:py-12 border-t border-gray-100",children:[e.jsxs("div",{className:"flex justify-between items-center mb-8",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-gradient-to-br from-purple-600 to-blue-500 rounded-lg flex items-center justify-center",children:e.jsx(Ke,{size:16,className:"text-white"})}),e.jsx("h2",{className:"text-sm font-extrabold tracking-[0.2em] text-gray-900 uppercase",children:s("home.startupRadar")})]}),e.jsx(A,{to:"/startups",className:"text-xs font-bold text-gray-400 hover:text-red-700 transition-colors",children:s("home.exploreAll")})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4",children:t.map(a=>e.jsxs(A,{to:a.slug?`/company/${a.slug}`:"/startups",className:"group cursor-pointer text-center p-4 rounded-xl border border-gray-100 hover:border-purple-200 hover:shadow-md transition-all block text-inherit no-underline",children:[a.logo?e.jsx("img",{src:a.logo,alt:a.name,loading:"lazy",decoding:"async",className:"h-10 mx-auto mb-3 object-contain"}):e.jsx("div",{className:"h-10 w-10 mx-auto mb-3 bg-gray-100 rounded-lg flex items-center justify-center",children:e.jsx(Ke,{size:16,className:"text-gray-400"})}),e.jsx("h4",{className:"text-xs font-bold mb-1.5 group-hover:text-purple-600 transition-colors truncate",children:a.name}),e.jsx("span",{className:"inline-block text-[9px] font-bold uppercase tracking-wider bg-gray-100 text-gray-600 px-2 py-0.5 rounded-full mb-2",children:Xa[a.sector]||a.sector}),e.jsxs("div",{className:"text-[10px] text-gray-400 space-y-0.5",children:[a.country&&e.jsx("div",{children:a.country}),a.funding_stage&&e.jsxs("div",{className:`font-bold uppercase ${Qa[a.funding_stage]||"text-gray-500"}`,children:[a.funding_stage.replace("-"," ")," ",a.funding_amount&&`· ${a.funding_amount}`]})]})]},a.id))})]}):null},er=()=>{const{t}=K(),[s,a]=l.useState([]);if(l.useEffect(()=>{let i=!0;return ua().then(n=>{i&&a(n.items||[])}).catch(()=>{}),()=>{i=!1}},[]),s.length===0)return null;const r=i=>/breakout/i.test(i);return e.jsxs("section",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 py-8 lg:py-12 border-t border-gray-100",children:[e.jsx("div",{className:"flex justify-between items-center mb-6",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-gradient-to-br from-orange-500 to-red-500 rounded-lg flex items-center justify-center",children:e.jsx(zs,{size:16,className:"text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-extrabold tracking-[0.2em] text-gray-900 uppercase",children:t("home.trending")}),e.jsx("p",{className:"text-[11px] text-gray-400 mt-0.5",children:t("home.trendingSubtitle")})]})]})}),e.jsx("div",{className:"flex flex-wrap gap-2.5",children:s.map(i=>e.jsxs("button",{onClick:()=>I(`/search?q=${encodeURIComponent(i.query)}`),title:`Search "${i.query}"`,className:"group inline-flex items-center gap-2 bg-white border border-gray-100 rounded-full pl-3 pr-3.5 py-2 hover:border-orange-300 hover:shadow-sm transition-all",children:[e.jsx(Re,{size:13,className:"text-gray-300 group-hover:text-orange-500 transition-colors"}),e.jsx("span",{className:"text-sm font-semibold text-gray-700 capitalize group-hover:text-gray-900",children:i.query}),r(i.value)?e.jsxs("span",{className:"inline-flex items-center gap-0.5 text-[10px] font-extrabold uppercase tracking-wide text-orange-600 bg-orange-50 rounded-full px-1.5 py-0.5",children:[e.jsx(Xe,{size:10})," Breakout"]}):e.jsxs("span",{className:"inline-flex items-center gap-0.5 text-[10px] font-bold text-green-600",children:[e.jsx(Xe,{size:10})," ",i.value]})]},i.query))})]})},tr=({solutions:t})=>{const{t:s}=K(),a=t;return e.jsx("section",{id:"solutions",className:"py-12 lg:py-24 bg-gray-50",children:e.jsxs("div",{className:"max-w-[1440px] mx-auto px-4 lg:px-6",children:[e.jsxs("div",{className:"mb-12",children:[e.jsx("h4",{className:"text-red-700 font-bold uppercase tracking-widest text-xs mb-2",children:s("solutions.eyebrow")}),e.jsx("h2",{className:"text-3xl font-montserrat font-bold",children:s("solutions.title")})]}),e.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:[a.map(r=>e.jsxs("div",{className:"p-8 bg-white border border-gray-200 rounded-lg hover:shadow-xl transition-all duration-300",children:[e.jsx("div",{className:"text-red-700 mb-6",children:r.icon==="Megaphone"?e.jsx(_s,{size:32}):e.jsx(Ge,{size:32})}),e.jsx("h3",{className:"text-lg font-bold mb-3",children:r.title}),e.jsx("p",{className:"text-gray-500 text-sm leading-relaxed mb-6",children:r.description}),e.jsxs("button",{className:"flex items-center gap-2 text-red-700 font-bold uppercase text-[10px] tracking-widest hover:gap-4 transition-all",children:[s("solutions.requestMediaKit")," ",e.jsx(te,{size:14})]})]},r.id)),e.jsxs("div",{className:"lg:col-span-2 bg-black rounded-lg p-8 flex flex-col justify-center items-center text-center relative overflow-hidden group",children:[e.jsx("div",{className:"absolute inset-0 opacity-20 bg-[url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80&w=800')] bg-cover"}),e.jsxs("div",{className:"relative z-10",children:[e.jsx("span",{className:"text-[10px] font-bold text-red-600 uppercase tracking-[0.3em] mb-4 block",children:s("solutions.adEyebrow")}),e.jsx("h3",{className:"text-2xl font-montserrat font-bold text-white mb-4",children:s("solutions.adTitle")}),e.jsx("p",{className:"text-gray-400 text-xs mb-6 max-w-sm",children:s("solutions.adDescription")}),e.jsx("button",{className:"bg-red-700 text-white px-6 py-3 rounded font-bold uppercase text-[10px] tracking-widest hover:bg-red-800 transition-colors",children:s("solutions.inquireNow")})]})]})]})]})})},sr=({settings:t})=>e.jsx("section",{id:"contact",className:"py-12 lg:py-24 bg-white",children:e.jsx("div",{className:"max-w-[1440px] mx-auto px-4 lg:px-6",children:e.jsxs("div",{className:"grid lg:grid-cols-12 gap-10 lg:gap-20",children:[e.jsxs("div",{className:"lg:col-span-5",children:[e.jsxs("h2",{className:"text-2xl lg:text-4xl font-montserrat font-bold mb-6 lg:mb-8 tracking-tighter uppercase",children:["REACH THE ",e.jsx("span",{className:"text-red-700",children:"NEWSROOM"})]}),e.jsx("p",{className:"text-gray-600 mb-10 leading-relaxed max-w-md",children:"Whether you're a PR agency, a robotics startup, or a global corporation, The Robotics Media is your partner in telling the story of the future."}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-6 p-6 border border-gray-100 rounded-lg hover:border-red-100 transition-colors group",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-red-50 flex items-center justify-center text-red-700",children:e.jsx(Es,{size:24})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-[10px] uppercase font-bold text-gray-400 tracking-widest",children:"Editorial Team"}),e.jsx("p",{className:"font-bold text-black",children:t.contact.editorial||"[email protected]"})]})]}),e.jsxs("div",{className:"flex items-center gap-6 p-6 border border-gray-100 rounded-lg hover:border-red-100 transition-colors group",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-red-50 flex items-center justify-center text-red-700",children:e.jsx(xe,{size:24})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-[10px] uppercase font-bold text-gray-400 tracking-widest",children:"Advertising & PR"}),e.jsx("p",{className:"font-bold text-black",children:t.contact.advertising||"[email protected]"})]})]})]})]}),e.jsx("div",{className:"lg:col-span-7",children:e.jsxs("form",{className:"bg-gray-50 p-10 rounded-lg border border-gray-100 space-y-6",onSubmit:s=>s.preventDefault(),children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-[10px] font-bold uppercase text-gray-500 tracking-widest",children:"Name"}),e.jsx("input",{type:"text",className:"w-full bg-white border border-gray-200 rounded px-4 py-3 text-sm focus:outline-none focus:border-red-700",placeholder:"Your Name"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-[10px] font-bold uppercase text-gray-500 tracking-widest",children:"Agency / Company"}),e.jsx("input",{type:"text",className:"w-full bg-white border border-gray-200 rounded px-4 py-3 text-sm focus:outline-none focus:border-red-700",placeholder:"Organization"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-[10px] font-bold uppercase text-gray-500 tracking-widest",children:"Inquiry Type"}),e.jsxs("select",{className:"w-full bg-white border border-gray-200 rounded px-4 py-3 text-sm focus:outline-none focus:border-red-700 appearance-none",children:[e.jsx("option",{children:"Press Release Submission"}),e.jsx("option",{children:"Advertising / Media Placement"}),e.jsx("option",{children:"Event Coverage Request"}),e.jsx("option",{children:"Strategic Partnership"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-[10px] font-bold uppercase text-gray-500 tracking-widest",children:"Message"}),e.jsx("textarea",{rows:4,className:"w-full bg-white border border-gray-200 rounded px-4 py-3 text-sm focus:outline-none focus:border-red-700",placeholder:"Tell us about your news..."})]}),e.jsx("button",{className:"w-full bg-red-700 text-white py-4 rounded font-bold uppercase tracking-widest hover:bg-red-800 transition-all",children:"Submit Inquiry"})]})})]})})}),Me={red:"bg-red-500",blue:"bg-[#007ab7]",green:"bg-green-500",orange:"bg-orange-500",purple:"bg-purple-500"},Be={red:"from-red-500 via-orange-500 to-yellow-500",blue:"from-[#007ab7] via-blue-500 to-cyan-400",green:"from-green-400 via-emerald-500 to-teal-500",orange:"from-orange-400 via-amber-500 to-yellow-500",purple:"from-purple-500 via-pink-500 to-rose-400"},ar=({data:t,linkedinUrl:s})=>{const{stories:a}=t,r=l.useRef(null),[i,n]=l.useState(null),[c,o]=l.useState(0),[b,m]=l.useState(0),[x,j]=l.useState(0),P=l.useRef(null),[d,f]=l.useState(!1),[g,k]=l.useState(!0),C=()=>{const z=r.current;z&&(f(z.scrollLeft>10),k(z.scrollLeft<z.scrollWidth-z.clientWidth-10))};l.useEffect(()=>{const z=r.current;if(z)return z.addEventListener("scroll",C),C(),()=>z.removeEventListener("scroll",C)},[a]);const h=z=>{const H=r.current;H&&H.scrollBy({left:z==="left"?-280:280,behavior:"smooth"})},u=z=>z.articles&&z.articles.length>
130?z.articles:[{id:0,title:z.title,slug:"",excerpt:z.description,thumbnail:z.thumbnail,cover_image:z.cover_image,author:null,time_ago:null,reading_time:0}];l.useEffect(()=>{if(!i)return;j(0);const z=5e3,H=50;let X=0;return P.current=setInterval(()=>{X+=H,j(X/z*100),X>=z&&N()},H),()=>{P.current&&clearInterval(P.current)}},[i,c,b]);const w=(z,H)=>{o(H),n(z),m(0),document.body.style.overflow="hidden"},S=()=>{n(null),j(0),m(0),document.body.style.overflow="",P.current&&clearInterval(P.current)};l.useEffect(()=>()=>{document.body.style.overflow=""},[]);const N=()=>{if(!i)return;const z=u(i);if(b<z.length-1)m(H=>H+1);else if(c<a.length-1){const H=c+1;o(H),n(a[H]),m(0)}else S()},E=()=>{if(i){if(b>0)m(z=>z-1);else if(c>0){const z=c-1,H=a[z];o(z),n(H),m(Math.max(0,u(H).length-1))}}},$=z=>z.badge_color&&Be[z.badge_color]?Be[z.badge_color]:z.source==="custom"?Be.red:Be.blue;if(a.length===0)return e.jsx("h1",{className:"sr-only",children:"Robotics News & AI Technology Coverage"});const M=i?u(i):[],F=M[b];return e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 pt-4 pb-2",children:[e.jsx("h1",{className:"sr-only",children:"Robotics News & AI Technology Coverage"}),e.jsxs("div",{className:"relative group/stories",children:[d&&e.jsx("button",{onClick:()=>h("left"),className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 w-8 h-8 bg-white shadow-lg rounded-full flex items-center justify-center text-gray-600 hover:text-gray-900 transition-all opacity-0 group-hover/stories:opacity-100",children:e.jsx(pt,{size:16})}),g&&e.jsx("button",{onClick:()=>h("right"),className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 w-8 h-8 bg-white shadow-lg rounded-full flex items-center justify-center text-gray-600 hover:text-gray-900 transition-all opacity-0 group-hover/stories:opacity-100",children:e.jsx(Y,{size:16})}),e.jsxs("div",{ref:r,className:"flex gap-4 overflow-x-auto scrollbar-hide py-3 snap-x snap-mandatory",style:{overscrollBehaviorX:"contain"},children:[a.map((z,H)=>e.jsx("button",{onClick:()=>w(z,H),className:"flex-shrink-0 snap-start group/item",children:e.jsxs("div",{className:"relative w-[100px]",children:[e.jsx("div",{className:`w-[76px] h-[76px] mx-auto rounded-full p-[3px] bg-gradient-to-br ${$(z)}`,children:e.jsx("div",{className:"w-full h-full rounded-full overflow-hidden bg-white p-[2px]",children:e.jsx("img",{src:z.thumbnail||"",alt:z.title,loading:"lazy",decoding:"async",className:"w-full h-full rounded-full object-cover group-hover/item:scale-110 transition-transform duration-300"})})}),z.badge_text&&e.jsx("div",{className:`absolute -top-1 left-1/2 -translate-x-1/2 ${Me[z.badge_color||"blue"]||Me.blue} text-white text-[8px] font-bold px-2 py-0.5 rounded-full whitespace-nowrap`,children:z.badge_text}),e.jsx("p",{className:"text-[10px] font-semibold text-gray-600 mt-2 text-center leading-tight line-clamp-2 px-1",children:z.category_name||z.title})]})},z.id)),e.jsx("a",{href:s||"https://www.linkedin.com/company/therobotics",target:"_blank",rel:"noopener noreferrer",className:"flex-shrink-0 snap-start group/item","aria-label":"Follow The Robotics Media on LinkedIn",children:e.jsxs("div",{className:"relative w-[100px]",children:[e.jsx("div",{className:"w-[76px] h-[76px] mx-auto rounded-full p-[3px] bg-gradient-to-br from-[#0A66C2] via-[#0e76d1] to-[#004182]",children:e.jsx("div",{className:"w-full h-full rounded-full bg-[#0A66C2] flex items-center justify-center border-2 border-white group-hover/item:scale-110 transition-transform duration-300",children:e.jsx(Ye,{size:32,className:"text-white",fill:"currentColor",strokeWidth:0})})}),e.jsx("div",{className:"absolute -top-1 left-1/2 -translate-x-1/2 bg-[#0A66C2] text-white text-[8px] font-bold px-2 py-0.5 rounded-full whitespace-nowrap",children:"FOLLOW"}),e.jsx("p",{className:"text-[10px] font-semibold text-gray-600 mt-2 text-center leading-tight line-clamp-2 px-1",children:"LinkedIn"})]})})]})]}),e.jsx("div",{className:"border-b border-gray-100 mt-2"})]}),i&&F&&e.jsx("div",{className:"fixed inset-0 z-[9999] bg-black/95 flex items-center justify-center",onClick:S,children:e.jsxs("div",{className:"relative w-full max-w-[420px] h-[90vh] max-h-[750px] bg-gray-900 rounded-2xl overflow-hidden",onClick:z=>z.stopPropagation(),children:[e.jsx("div",{className:"absolute top-0 left-0 right-0 z-20 flex gap-1 p-3",children:M.map((z,H)=>e.jsx("div",{className:"flex-1 h-[2px] bg-white/20 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full bg-white rounded-full transition-all duration-75 ease-linear",style:{width:H<b?"100%":H===b?`${x}%`:"0%"}})},H))}),e.jsxs("div",{className:"absolute top-7 left-4 z-20 flex items-center gap-2",children:[i.thumbnail&&e.jsx("img",{src:i.thumbnail,alt:"",loading:"lazy",decoding:"async",className:"w-8 h-8 rounded-full object-cover border-2 border-white/30"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-white text-xs font-bold leading-tight",children:i.category_name||i.title}),F.time_ago&&e.jsx("p",{className:"text-white/50 text-[10px]",children:F.time_ago})]})]}),e.jsx("button",{onClick:S,className:"absolute top-7 right-4 z-20 w-8 h-8 bg-black/40 rounded-full flex items-center justify-center text-white hover:bg-black/60 transition-colors",children:e.jsx(le,{size:16})}),e.jsx("img",{src:F.cover_image||F.thumbnail||i.cover_image||"",alt:F.title,loading:"eager",decoding:"async",fetchPriority:"high",className:"w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/10 to-black/40"}),e.jsxs("div",{className:"absolute inset-0 flex z-10",children:[e.jsx("div",{className:"w-1/3 h-full cursor-pointer",onClick:E}),e.jsx("div",{className:"w-1/3 h-full"}),e.jsx("div",{className:"w-1/3 h-full cursor-pointer",onClick:N})]}),e.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-6 z-20",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[i.category_name&&e.jsx("span",{className:"bg-white/20 backdrop-blur-sm text-white text-[10px] font-bold px-3 py-1 rounded-full uppercase tracking-wider",children:i.category_name}),i.badge_text&&e.jsx("span",{className:`${Me[i.badge_color||"blue"]||Me.blue} bg-opacity-80 backdrop-blur-sm text-white text-[10px] font-bold px-3 py-1 rounded-full`,children:i.badge_text})]}),e.jsx("h2",{className:"text-white text-lg font-bold leading-tight mb-2",children:F.title}),F.excerpt&&e.jsx("p",{className:"text-white/70 text-sm leading-relaxed line-clamp-2 mb-3",children:F.excerpt}),e.jsxs("div",{className:"flex items-center gap-3 text-white/50 text-xs mb-4",children:[F.author&&e.jsx("span",{children:F.author}),F.time_ago&&e.jsx("span",{children:F.time_ago}),F.reading_time>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(pe,{size:10})," ",F.reading_time," min"]})]}),F.slug?e.jsx("button",{onClick:()=>{S(),I(`/article/${F.slug}`)},className:"w-full bg-white text-gray-900 font-bold text-sm py-3 rounded-xl hover:bg-gray-100 transition-colors",children:"Read Article"}):i.link?e.jsx("button",{onClick:()=>{S(),i.link.startsWith("http")?window.open(i.link,"_blank"):I(i.link)},className:"w-full bg-white text-gray-900 font-bold text-sm py-3 rounded-xl hover:bg-gray-100 transition-colors",children:i.type==="category"?"View All Articles":"Learn More"}):null]})]})})]})},rr={"pre-seed":"Pre-Seed",seed:"Seed","series-a":"Series A","series-b":"Series B","series-c":"Series C","series-d":"Series D",grant:"Grant",debt:"Debt",ipo:"IPO",acquisition:"Acquisition",other:"Round"},nr=({items:t})=>{if(!t.length)return null;const s=[...t,...t,...t],a=t.length*5;return e.jsxs("div",{className:"bg-gray-900 overflow-hidden h-9 flex items-center relative",children:[e.jsx("style",{children:` 14 @keyframes funding-ticker-scroll { 15 0% { transform: translateX(0); } 16 100% { transform: translateX(-33.333%); } 17 } 18 .funding-ticker-track { 19 animation: funding-ticker-scroll ${a}s linear infinite; 20 } 21 .funding-ticker-track:hover { 22 animation-play-state: paused; 23 } 24 `}),e.jsxs("a",{href:"/companies",onClick:r=>{r.preventDefault(),I("/companies")},className:"flex-shrink-0 flex items-center gap-1.5 px-4 h-full bg-gray-800 hover:bg-gray-700 text-white text-[11px] font-bold uppercase tracking-wider cursor-pointer transition-colors z-10 border-r border-gray-700",children:[e.jsx(Cs,{size:13,className:"text-green-400"}),e.jsx("span",{className:"hidden sm:inline",children:"Funding"})]}),e.jsx("div",{className:"funding-ticker-track flex items-center whitespace-nowrap",children:s.map((r,i)=>
24e.jsxs("a",{href:r.company_slug?`/company/${r.company_slug}`:"/companies",onClick:n=>{n.preventDefault(),I(r.company_slug?`/company/${r.company_slug}`:"/companies")},className:"inline-flex items-center gap-2 px-5 text-xs cursor-pointer hover:bg-white/5 h-9 transition-colors",children:[e.jsx("span",{className:"font-bold text-white",children:r.company}),r.round_type&&e.jsx("span",{className:"text-gray-400",children:rr[r.round_type]||r.round_type}),e.jsx("span",{className:"text-green-400 font-mono font-bold",children:r.amount_display}),r.lead_investor&&e.jsx("span",{className:"text-gray-500 hidden md:inline",children:r.lead_investor}),r.year&&e.jsx("span",{className:"text-gray-600 hidden sm:inline",children:r.year}),e.jsx("span",{className:"text-gray-700 ml-2",children:"|"})]},i))})]})},ir=({settings:t,menu:s,sectors:a=[]})=>{var d,f;const{t:r}=K(),i=xt(),[n,c]=l.useState(""),[o,b]=l.useState(!1),[m,x]=l.useState(!1),j=async g=>{if(g.preventDefault(),!(!n||o)){b(!0);try{await fetch("/api/v1/contact",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({name:"",email:n,inquiry_type:"Newsletter Subscription",message:"Subscribed via footer"})}),x(!0),localStorage.setItem("newsletter_dismissed","subscribed")}catch{}b(!1)}},P=t.social||{};return e.jsxs("footer",{className:"bg-gray-950 text-white",children:[e.jsx("div",{className:"border-b border-white/10",children:e.jsx("div",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 py-10 lg:py-14",children:e.jsxs("div",{className:"flex flex-col lg:flex-row items-center justify-between gap-8",children:[e.jsxs("div",{className:"text-center lg:text-left",children:[e.jsx("h3",{className:"text-xl lg:text-2xl font-montserrat font-bold mb-2",children:"Stay Ahead in Robotics & AI"}),e.jsx("p",{className:"text-gray-400 text-sm",children:"Join 10,000+ professionals. Weekly insights delivered every Monday."})]}),m?e.jsxs("div",{className:"flex items-center gap-3 bg-green-500/10 border border-green-500/20 rounded-full px-6 py-3",children:[e.jsx(xe,{size:18,className:"text-green-400"}),e.jsx("span",{className:"text-green-400 text-sm font-medium",children:"You're subscribed!"})]}):e.jsxs("form",{onSubmit:j,className:"flex gap-2 w-full max-w-md",children:[e.jsx("input",{type:"email",required:!0,value:n,onChange:g=>c(g.target.value),placeholder:"Enter your email",className:"flex-1 bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-sm text-white placeholder-gray-500 focus:outline-none focus:border-[#007ab7] focus:bg-white/10 transition-all"}),e.jsx("button",{type:"submit",disabled:o,className:"bg-[#007ab7] text-white px-6 py-3 rounded-xl text-sm font-bold hover:bg-[#005f8d] transition-colors disabled:opacity-50 flex items-center gap-2 flex-shrink-0",children:o?"...":e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"hidden sm:inline",children:"Subscribe"})," ",e.jsx(te,{size:16})]})})]})]})})}),e.jsx("div",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 py-12 lg:py-16",children:e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-8 lg:gap-12",children:[e.jsxs("div",{className:"col-span-2",children:[e.jsx(A,{to:"/",className:"flex items-center gap-2 mb-5 cursor-pointer","aria-label":"Home",children:e.jsx("img",{src:t.logo_url||"/logo.png",alt:t.site_name,className:"h-8 brightness-0 invert"})}),e.jsx("p",{className:"text-gray-400 text-sm leading-relaxed mb-6 max-w-xs",children:t.footer_text||"The world's leading intelligence hub for robotics, AI, and automation media. Connecting visionaries with the global technology community."}),e.jsxs("div",{className:"space-y-3 mb-6",children:[((d=t.contact)==null?void 0:d.general)&&e.jsxs("a",{href:`mailto:${t.contact.general}`,className:"flex items-center gap-2.5 text-gray-400 text-xs hover:text-white transition-colors",children:[e.jsx(xe,{size:14})," ",t.contact.general]}),((f=t.contact)==null?void 0:f.editorial)&&e.jsxs("a",{href:`mailto:${t.contact.editorial}`,className:"flex items-center gap-2.5 text-gray-400 text-xs hover:text-white transition-colors",children:[e.jsx(xe,{size:14})," ",t.contact.editorial]})]}),e.jsx("div",{className:"flex gap-2",children:[{icon:Ye,url:P.linkedin,label:"LinkedIn"},{icon:Kt,url:P.twitter,label:"Twitter"},{icon:Jt,url:P.youtube,label:"YouTube"},{icon:Gt,url:P.instagram,label:"Instagram"},{icon:Xt,url:P.facebook,label:"Facebook"},{icon:Ts,url:"/feed.xml",label:"RSS"}].filter(g=>g.url).map(g=>e.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",title:g.label,className:"w-9 h-9 bg-white/5 border border-white/10 rounded-lg flex items-center justify-center text-gray-500 hover:text-white hover:bg-[#007ab7] hover:border-[#007ab7] transition-all",children:e.jsx(g.icon,{size:16})},g.label))})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-gray-500 mb-5",children:r("footer.categories")}),e.jsx("ul",{className:"space-y-3",children:s.main.filter(g=>{const k=g.label.toLowerCase();return k!=="contact"&&k!=="events"}).slice(0,7).map(g=>e.jsx("li",{children:e.jsxs("a",{href:`/category/${g.label.toLowerCase().replace(/[^a-z0-9]+/g,"-")}`,onClick:k=>{k.preventDefault(),I(`/category/${g.label.toLowerCase().replace(/[^a-z0-9]+/g,"-")}`)},className:"text-gray-400 text-sm hover:text-white transition-colors flex items-center gap-1.5 group",children:[e.jsx(Y,{size:12,className:"text-gray-600 group-hover:text-[#007ab7] transition-colors"}),i(g.label)]})},g.id))})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-gray-500 mb-5",children:r("footer.communityCol")}),e.jsx("ul",{className:"space-y-3",children:[{label:r("footer.communityFeed"),path:"/community"},{label:r("footer.createPost"),path:"/community/new-post"},{label:r("footer.createPoll"),path:"/community/new-survey"},{label:r("footer.myDashboard"),path:"/dashboard"},{label:r("auth.signIn"),path:"/login"},{label:r("footer.register"),path:"/register"}].map(g=>e.jsx("li",{children:e.jsxs("a",{href:g.path,onClick:k=>{k.preventDefault(),I(g.path)},className:"text-gray-400 text-sm hover:text-white transition-colors flex items-center gap-1.5 group",children:[e.jsx(Y,{size:12,className:"text-gray-600 group-hover:text-[#007ab7] transition-colors"}),g.label]})},g.path))})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-gray-500 mb-5",children:r("footer.company")}),e.jsx("ul",{className:"space-y-3",children:[{label:r("footer.about"),path:"/about"},{label:r("footer.advertise"),path:"/advertise"},{label:r("footer.services"),path:"/digital"},{label:r("common.companies"),path:"/startups"},{label:r("footer.robotPrices"),path:"/robot-prices"},{label:r("footer.events"),path:"/events"},{label:r("footer.newsletter"),path:"/newsletter"},{label:r("footer.editorial"),path:"/editorial-guidelines"},{label:r("footer.corrections"),path:"/corrections"},{label:r("footer.privacy"),path:"/privacy"},{label:r("footer.terms"),path:"/terms"},{label:r("footer.cookies"),path:"/cookies"}].map(g=>e.jsx("li",{children:e.jsxs("a",{href:g.path,onClick:k=>{k.preventDefault(),I(g.path)},className:"text-gray-400 text-sm hover:text-white transition-colors flex items-center gap-1.5 group",children:[e.jsx(Y,{size:12,className:"text-gray-600 group-hover:text-[#007ab7] transition-colors"}),g.label]})},g.path))})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-gray-500 mb-5",children:r("footer.resources")}),e.jsx("ul",{className:"space-y-3",children:[{label:r("footer.sitemap"),path:"/sitemap"},{label:r("footer.allTags"),path:"/tags"},{label:r("footer.rssFeed"),path:"/feed.xml",external:!0},{label:r("footer.mediaKit"),path:"/advertise"},{label:r("footer.contactUs"),path:"/contact"}].map(g=>e.jsx("li",{children:e.jsxs("a",{href:g.path,...g.external?{target:"_blank",rel:"noopener noreferrer"}:{},onClick:g.external?void 0:k=>{k.preventDefault(),I(g.path)},className:"text-gray-400 text-sm hover:text-white transition-colors flex items-center gap-1.5 group",children:[e.jsx(Y,{size:12,className:"text-gray-600 group-hover:text-[#007ab7] transition-colors"}
24),g.label,g.external&&e.jsx(et,{size:10,className:"text-gray-600"})]})},g.path))}),e.jsxs("div",{className:"mt-6 p-3 bg-white/5 border border-white/10 rounded-xl",children:[e.jsx("div",{className:"text-[10px] font-bold text-gray-500 uppercase tracking-wider mb-1",children:r("footer.poweredBy")}),e.jsx("div",{className:"text-sm font-bold text-white",children:r("footer.aiJournalism")}),e.jsx("div",{className:"text-[10px] text-gray-500 mt-1",children:r("footer.aiJournalismDesc")})]})]})]})}),a.length>0&&e.jsx("div",{className:"border-t border-white/10",children:e.jsxs("div",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 py-6",children:[e.jsxs("div",{className:"flex items-center justify-between gap-4 mb-4",children:[e.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-gray-500",children:r("footer.browseSector")}),e.jsxs(A,{to:"/sitemap",className:"text-[11px] font-bold text-gray-400 hover:text-white transition-colors flex items-center gap-1",children:[r("footer.fullSitemap")," ",e.jsx(Y,{size:11})]})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a.map(g=>e.jsx(A,{to:`/companies/${g.slug}`,className:"text-gray-400 text-xs hover:text-white bg-white/5 hover:bg-white/10 border border-white/10 rounded-full px-3 py-1.5 transition-colors",children:g.name},g.slug))})]})}),e.jsx("div",{className:"border-t border-white/10",children:e.jsx("div",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 py-6",children:e.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-4",children:[e.jsxs("p",{className:"text-gray-500 text-xs",children:["© ",new Date().getFullYear()," ",t.site_name||"The Robotics Media",". ",r("footer.allRights")]}),e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx("a",{href:"/privacy",onClick:g=>{g.preventDefault(),I("/privacy")},className:"text-gray-500 text-xs hover:text-white transition-colors",children:r("footer.privacyShort")}),e.jsx("a",{href:"/terms",onClick:g=>{g.preventDefault(),I("/terms")},className:"text-gray-500 text-xs hover:text-white transition-colors",children:r("footer.termsShort")}),e.jsx("a",{href:"/cookies",onClick:g=>{g.preventDefault(),I("/cookies")},className:"text-gray-500 text-xs hover:text-white transition-colors",children:r("footer.cookiesShort")}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-green-500 rounded-full animate-pulse"}),e.jsx("span",{className:"text-[10px] font-medium text-gray-500",children:r("footer.operational")})]})]})]})})})]})};function J(t,s,a="name"){let r=document.querySelector(`meta[${a}="${t}"]`);r||(r=document.createElement("meta"),r.setAttribute(a,t),document.head.appendChild(r)),r.setAttribute("content",s)}function lr(t,s){let a=document.querySelector(`link[rel="${t}"]`);a||(a=document.createElement("link"),a.setAttribute("rel",t),document.head.appendChild(a)),a.setAttribute("href",s)}function Fe(t,s){let a=document.querySelector(`link[rel="alternate"][hreflang="${t}"]`);a||(a=document.createElement("link"),a.setAttribute("rel","alternate"),a.setAttribute("hreflang",t),document.head.appendChild(a)),a.setAttribute("href",s)}function or(t){document.querySelectorAll("script[data-seo-jsonld]").forEach(a=>a.remove()),(Array.isArray(t)?t:[t]).forEach(a=>{const r=document.createElement("script");r.type="application/ld+json",r.setAttribute("data-seo-jsonld",""),r.textContent=JSON.stringify(a),document.head.appendChild(r)})}const ke="The Robotics Media",ie=typeof window<"u"?window.location.origin:"https://theroboticsmedia.com";function nt(t){return t===void 0?"":JSON.stringify(t,(s,a)=>a&&typeof a=="object"&&!Array.isArray(a)?Object.keys(a).sort().reduce((r,i)=>(r[i]=a[i],r),{}):a)}function is(t){return t.replace(/^\/tr(?=\/|$)/,"")||"/"}function vt(){return typeof window>"u"?"en":window.location.pathname==="/tr"||window.location.pathname.startsWith("/tr/")?"tr":"en"}function Mt(t,s){const a=is(t);return s==="en"?a:a==="/"?"/tr":`/tr${a}`}function cr(t){document.querySelectorAll(`link[rel="alternate"][hreflang="${t}"]`).forEach(s=>s.remove())}function dr(t){const s=typeof window<"u"?window.location.origin:ie,a=typeof window<"u"?`${s}${window.location.pathname}`:ie,r=new URL(t||a,s),i=vt(),n=r.origin===s?s:r.origin,c=is(r.pathname),o=`${r.search}${r.hash}`,b=`${n}${Mt(c,"en")}${o}`;return{canonical:`${n}${Mt(c,i)}${o}`,alternates:{en:b,default:b}}}function jt(t){const s=nt(t.tags),a=nt(t.jsonLd),r=nt(t.alternates),i=typeof window<"u"?window.location.pathname:"",n=!!(t.title||t.siteTitle||t.description||t.canonical||t.ogTitle||t.ogDescription||t.ogImage||t.jsonLd||t.robots||t.noindex||t.locale||t.alternates);l.useEffect(()=>{if(!n)return;const c=t.siteTitle||ke,o=t.title?`${t.title} | ${c}`:c,{canonical:b,alternates:m}=dr(t.canonical);document.title=o,document.querySelectorAll("meta[data-seo-tag]").forEach(j=>j.remove()),document.querySelectorAll("script[data-seo-jsonld]").forEach(j=>j.remove()),t.description&&J("description",t.description),t.author&&J("author",t.author),t.robots?J("robots",t.robots):t.noindex?J("robots","noindex, nofollow"):J("robots","index, follow, max-image-preview:large, max-snippet:-1"),J("og:title",t.ogTitle||t.title||ke,"property"),J("og:description",t.ogDescription||t.description||"","property"),J("og:type",t.ogType||"website","property"),J("og:site_name",c,"property"),J("og:url",b,"property"),t.ogImage&&J("og:image",t.ogImage,"property");const x=t.locale??vt();if(J("og:locale",x==="tr"?"tr_TR":"en_US","property"),document.documentElement.lang=x,J("twitter:card",t.ogImage?"summary_large_image":"summary"),J("twitter:title",t.ogTitle||t.title||ke),J("twitter:description",t.ogDescription||t.description||""),t.ogImage&&J("twitter:image",t.ogImage),t.publishedTime&&J("article:published_time",t.publishedTime,"property"),t.section&&J("article:section",t.section,"property"),t.tags&&t.tags.forEac
24h(j=>{const P=document.createElement("meta");P.setAttribute("property","article:tag"),P.setAttribute("content",j),P.setAttribute("data-seo-tag",""),document.head.appendChild(P)}),lr("canonical",b),t.alternates){for(const[j,P]of Object.entries(t.alternates))Fe(j,P);Fe("x-default",t.alternates.en??m.default)}else Fe("en",m.en),cr("tr"),Fe("x-default",m.default);return t.jsonLd&&or(t.jsonLd),()=>{document.querySelectorAll("meta[data-seo-tag]").forEach(j=>j.remove())}},[n,t.title,t.siteTitle,t.description,t.ogTitle,t.ogDescription,t.ogImage,t.ogType,t.canonical,t.author,t.publishedTime,t.section,t.noindex,t.robots,t.locale,r,s,a,i])}function ur(t,s){const a=s||`${ie}/article/${t.slug}`;return{"@context":"https://schema.org","@type":"NewsArticle",headline:t.title,description:t.excerpt||"",image:t.cover_image||t.thumbnail||"",datePublished:t.published_at||"",dateModified:t.updated_at||t.modified||t.published_at||"",author:{"@type":"Person",name:t.author||"The Robotics Media Editorial"},publisher:{"@type":"Organization",name:ke,logo:{"@type":"ImageObject",url:`${ie}/logo.png`}},mainEntityOfPage:{"@type":"WebPage","@id":a},isAccessibleForFree:!0,inLanguage:vt()==="tr"?"tr":"en",articleSection:t.category||"",wordCount:t.content?t.content.replace(/<[^>]*>/g,"").split(/\s+/).length:0,timeRequired:t.reading_time?`PT${t.reading_time}M`:void 0}}function mr(){return{"@context":"https://schema.org","@type":"NewsMediaOrganization",name:ke,url:ie,logo:`${ie}/logo.png`,description:"The latest robotics news and AI technology coverage â robot industry updates, humanoid robots and automation.",ethicsPolicy:`${ie}/editorial-guidelines`,correctionsPolicy:`${ie}/corrections`,masthead:`${ie}/about`,sameAs:["https://linkedin.com/company/drrobotics","https://twitter.com/drrobotics","https://youtube.com/@drrobotics","https://facebook.com/drrobotics","https://instagram.com/drrobotics"],contactPoint:{"@type":"ContactPoint",email:"[email protected]",contactType:"customer service"}}}function gr(){return{"@context":"https://schema.org","@type":"WebSite",name:ke,url:ie,potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:`${ie}/search?q={search_term_string}`},"query-input":"required name=search_term_string"}}}function ls(t){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:t.map((s,a)=>({"@type":"ListItem",position:a+1,name:s.name,item:s.url}))}}const Bt=({articleId:t,className:s=""})=>{const{t:a}=K(),{isAuthenticated:r}=be(),[i,n]=l.useState(!1),[c,o]=l.useState(!1);l.useEffect(()=>{r&&fetch("/api/v1/bookmarks",{headers:{Accept:"application/json"},credentials:"include"}).then(m=>m.json()).then(m=>{var j;const x=(j=m.data)==null?void 0:j.some(P=>{var d;return((d=P.article)==null?void 0:d.id)===t});n(!!x)}).catch(()=>{})},[t,r]);const b=async()=>{if(!r){I("/login");return}if(!c){o(!0);try{const m=await va("article",t);n(m.bookmarked)}catch{}o(!1)}};return e.jsxs("button",{onClick:b,disabled:c,className:`flex items-center gap-1.5 text-sm transition-colors ${i?"text-[#007ab7]":"text-gray-400 hover:text-[#007ab7]"} ${s}`,title:a(i?"bookmark.remove":"bookmark.add"),children:[i?e.jsx(As,{size:18}):e.jsx(Rs,{size:18}),e.jsx("span",{className:"hidden sm:inline",children:a(i?"bookmark.saved":"bookmark.save")})]})};function pr(){const t=document.cookie.match(/XSRF-TOKEN=([^;]+)/);return t?decodeURIComponent(t[1]):""}const hr=({articleId:t,articleSlug:s,initialLikes:a,initialDislikes:r})=>{const{isAuthenticated:i}=be(),[n,c]=l.useState(a),[o,b]=l.useState(r),[m,x]=l.useState(null),[j,P]=l.useState(!1),[d,f]=l.useState(!1),[g,k]=l.useState(!1),C=async u=>{if(!i){k(!0);return}if(!j){P(!0);try{const S=await(await fetch(`/api/v1/articles/${s}/react`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",Accept:"application/json","X-XSRF-TOKEN":pr()},body:JSON.stringify({type:u})})).json();c(S.likes),b(S.dislikes),x(S.user_reaction||null)}catch{}P(!1)}},h=()=>{const u=`${window.location.origin}/article/${s}`;navigator.clipboard.writeText(u),f(!0),setTimeout(()=>f(!1),2e3)};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsxs("button",{onClick:()=>C("like"),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium transition-all ${m==="like"?"bg-[#007ab7]/10 text-[#007ab7]":"text-gray-400 hover:bg-gray-100 hover:text-gray-600"}`,children:[e.jsx(Ct,{size:14,className:m==="like"?"fill-current":""}),n>0&&e.jsx("span",{children:n})]}),e.jsxs("button",{onClick:()=>C("dislike"),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium transition-all ${m==="dislike"?"bg-red-50 text-red-500":"text-gray-400 hover:bg-gray-100 hover:text-gray-600"}`,children:[e.jsx(Ls,{size:14,className:m==="dislike"?"fill-current":""}),o>0&&e.jsx("span",{children:o})]}),e.jsx("div",{className:"w-px h-4 bg-gray-200 mx-1"}),e.jsx("button",{onClick:h,className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium transition-all ${d?"bg-green-50 text-green-600":"text-gray-400 hover:bg-gray-100 hover:text-gray-600"}`,children:d?e.jsxs(e.Fragment,{children:[e.jsx(je,{size:14})," Copied!"]}):e.jsxs(e.Fragment,{children:[e.jsx(es,{size:14})," Copy Link"]})})]}),g&&e.jsxs("div",{className:"fixed inset-0 z-[150] flex items-center justify-center p-4",onClick:()=>k(!1),children:[e.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm"}),e.jsxs("div",{className:"relative bg-white rounded-2xl shadow-2xl max-w-sm w-full overflow-hidden",onClick:u=>u.stopPropagation(),children:[e.jsx("button",{onClick:()=>k(!1),className:"absolute top-3 right-3 text-gray-400 hover:text-gray-600",children:e.jsx(le,{size:18})}),e.jsxs("div",{className:"bg-gradient-to-br from-[#007ab7] to-[#004d73] px-6 py-8 text-center",children:[e.jsx("div",{className:"w-14 h-14 bg-white/20 rounded-2xl flex items-center justify-center mx-auto mb-4",children:e.jsx(Ct,{size:24,className:"text-white"})}),e.jsx("h2",{className:"text-xl font-montserrat font-bold text-white",children:"Join the Community"}),e.jsx("p",{className:"text-white/60 text-sm mt-1",children:"Sign in to like or dislike articles"})]}),e.jsxs("div",{className:"p-6 space-y-3",children:[e.jsx("button",{onClick:()=>{k(!1),I("/login")},className:"w-full bg-[#007ab7] text-white py-3 rounded-xl font-bold text-sm hover:bg-[#005f8d] transition-colors",children:"Sign In"}),e.jsx("button",{onClick:()=>{k(!1),I("/register")},className:"w-full border border-gray-200 text-gray-700 py-3 rounded-xl text-sm font-medium hover:bg-gray-50 transition-colors",children:"Create an Account"}),e.jsx("p",{className:"text-[10px] text-gray-400 text-center",children:"It's free and takes less than 30 seconds"})]})]})]})]})},xr=()=>{const[t,s]=l.useState(0);return l.useEffect(()=>{const a=()=>{const r=document.documentElement,i=r.scrollTop||document.body.scrollTop,n=r.scrollHeight-r.clientHeight;s(n>0?i/n*100:0)};return a(),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a)}},[]),e.jsx("div",{className:"fixed top-0 left-0 right-0 h-[3px] z-[60] bg-transparent pointer-events-none",children:e.jsx("div",{className:"h-full bg-gradient-to-r from-[#007ab7] to-cyan-400",style:{width:`${t}
24%`,transition:"width 80ms linear"}})})},os=l.createContext({active:null,start:()=>{},clear:()=>{}}),cs=()=>l.useContext(os),fr=({children:t})=>{const[s,a]=l.useState(null);return e.jsx(os.Provider,{value:{active:s,start:a,clear:()=>a(null)},children:t})},it=[.75,1,1.25,1.5];function Ft(t){const s=t.match(/[^.!?]+[.!?]+(\s|$)|[^.!?]+$/g)||[t],a=[];let r="";for(const i of s)(r+i).length>220&&r?(a.push(r.trim()),r=i):r+=i;return r.trim()&&a.push(r.trim()),a.filter(Boolean)}function Ht(t){const s=t.name.toLowerCase();let a=0;return t.lang.toLowerCase().startsWith("en")?(t.lang.toLowerCase()==="en-us"&&(a+=3),/natural|neural/.test(s)&&(a+=10),/google/.test(s)&&(a+=8),/\b(samantha|ava|allison|joanna|aria|jenny|guy)\b/.test(s)&&(a+=6),/\b(alex|daniel|karen|tessa)\b/.test(s)&&(a+=4),t.localService||(a+=2),/(compact|eloquence|fred|albert|zarvox|robot)/.test(s)&&(a-=8),a):-1}function br(t,s){if(t.dataset.ttsWrapped){t.querySelectorAll("span[data-tts-w]").forEach(r=>s.push(r));return}const a=r=>{Array.from(r.childNodes).forEach(i=>{if(i.nodeType===Node.TEXT_NODE){const n=i.textContent||"";if(!n.trim())return;const c=document.createDocumentFragment();for(const o of n.split(/(\s+)/)){if(o==="")continue;if(/^\s+$/.test(o)){c.appendChild(document.createTextNode(o));continue}const b=document.createElement("span");b.setAttribute("data-tts-w",""),b.textContent=o,s.push(b),c.appendChild(b)}r.replaceChild(c,i)}else i.nodeType===Node.ELEMENT_NODE&&i.tagName!=="SCRIPT"&&a(i)})};a(t),t.dataset.ttsWrapped="1"}const yr=({title:t,excerpt:s,slug:a,contentRef:r})=>{const i=typeof window<"u"&&"speechSynthesis"in window,n=cs(),[c,o]=l.useState([]),[b,m]=l.useState(null),[x,j]=l.useState("idle"),[P,d]=l.useState(1),[f,g]=l.useState(0),k=l.useRef([]),C=l.useRef(0),h=l.useRef(null),u=l.useRef(P);u.current=P;const w=l.useRef(null);w.current=b;const S=l.useRef(!1),N=l.useRef(null);l.useEffect(()=>{if(!i)return;const p=()=>{const T=window.speechSynthesis.getVoices().filter(O=>O.lang.toLowerCase().startsWith("en"));T.length&&(o(T),m(O=>{var U;if(O&&T.some(q=>q.voiceURI===O))return O;const _=localStorage.getItem("article-voice");return _&&T.some(q=>q.voiceURI===_)?_:((U=[...T].sort((q,W)=>Ht(W)-Ht(q))[0])==null?void 0:U.voiceURI)??null}))};return p(),window.speechSynthesis.onvoiceschanged=p,()=>{window.speechSynthesis.onvoiceschanged=null}},[i]),l.useEffect(()=>{const p=()=>{S.current=!0,N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{S.current=!1},4e3)};return window.addEventListener("wheel",p,{passive:!0}),window.addEventListener("touchmove",p,{passive:!0}),()=>{window.removeEventListener("wheel",p),window.removeEventListener("touchmove",p),N.current&&clearTimeout(N.current)}},[]),l.useEffect(()=>()=>{E()},[i]),l.useEffect(()=>{var p;i&&((p=n.active)==null?void 0:p.slug)===a&&window.speechSynthesis.speaking&&j(window.speechSynthesis.paused?"paused":"playing")},[i]);const E=()=>{h.current&&(h.current.classList.remove("tts-word"),h.current=null)},$=(p,T=!1)=>{h.current!==p&&(E(),p&&(p.classList.add("tts-word"),h.current=p,T&&!S.current&&p.scrollIntoView({behavior:"smooth",block:"center"})))},M=()=>{const p=[],T=[t,s||""].filter(Boolean).join(". ");Ft(T).forEach(_=>p.push({text:_,words:[]}));const O=r.current;return O&&Array.from(O.querySelectorAll("p, h2, h3, h4, li, blockquote")).forEach(U=>{const q=[];if(br(U,q),!q.length)return;const W=q.map(R=>R.textContent).join(" ");let G=0;Ft(W).forEach(R=>{const Z=R.split(/\s+/).filter(Boolean).length;p.push({text:R,words:q.slice(G,G+Z)}),G+=Z})}),p},F=()=>c.find(p=>p.voiceURI===w.current)||null,z=p=>{if(!i)return;window.speechSynthesis.cancel();const T=k.current,O=T.length,_=F(),U=q=>{if(q>=O){j("idle"),g(1),C.current=0,E(),n.clear();return}C.current=q,g(O?q/O:0);const W=T[q];W.words.length&&$(W.words[0],!0);const G=new SpeechSynthesisUtterance(W.text);_?(G.voice=_,G.lang=_.lang):G.lang="en-US",G.rate=u.current,G.pitch=1,G.onboundary=R=>{if(R.name&&R.name!=="word"||!W.words.length)return;const oe=W.text.slice(0,R.charIndex).split(/\s+/).filter(Boolean).length;$(W.words[Math.min(oe,W.words.length-1)]||null)}
24,G.onend=()=>{window.speechSynthesis.speaking||window.speechSynthesis.pending||U(q+1)},G.onerror=()=>U(q+1),window.speechSynthesis.speak(G)};U(p),j("playing")},H=()=>{if(x==="paused"){window.speechSynthesis.resume(),j("playing");return}k.current=M(),n.start({slug:a,title:t}),z(0)},X=()=>{window.speechSynthesis.pause(),j("paused")},re=()=>{window.speechSynthesis.cancel(),j("idle"),g(0),C.current=0,E(),n.clear()},Q=()=>{const p=it[(it.indexOf(P)+1)%it.length];d(p),x==="playing"&&setTimeout(()=>z(C.current),0)},ee=p=>{m(p),localStorage.setItem("article-voice",p),x==="playing"&&setTimeout(()=>z(C.current),0)};return i?e.jsxs("div",{className:"flex items-center gap-3 bg-gradient-to-r from-blue-50 to-cyan-50 border border-blue-100 rounded-xl px-4 py-3 mb-8 flex-wrap",children:[e.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-lg bg-[#007ab7] text-white flex items-center justify-center",children:e.jsx(ts,{size:18})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-xs font-bold text-gray-700",children:"Listen to this article"}),e.jsx("div",{className:"h-1 bg-blue-100 rounded-full mt-1.5 overflow-hidden",children:e.jsx("div",{className:"h-full bg-gradient-to-r from-[#007ab7] to-cyan-400 transition-all duration-500",style:{width:`${Math.round(f*100)}%`}})})]}),x==="playing"?e.jsx("button",{onClick:X,"aria-label":"Pause",className:"flex-shrink-0 w-9 h-9 rounded-full bg-[#007ab7] text-white flex items-center justify-center hover:bg-[#005f8d] transition-colors",children:e.jsx(Ds,{size:16})}):e.jsx("button",{onClick:H,"aria-label":"Play",className:"flex-shrink-0 w-9 h-9 rounded-full bg-[#007ab7] text-white flex items-center justify-center hover:bg-[#005f8d] transition-colors",children:e.jsx(ct,{size:16,className:"ml-0.5"})}),x!=="idle"&&e.jsx("button",{onClick:re,"aria-label":"Stop",className:"flex-shrink-0 w-8 h-8 rounded-full bg-white border border-gray-200 text-gray-500 flex items-center justify-center hover:text-red-600 hover:border-red-200 transition-colors",children:e.jsx(Is,{size:13})}),c.length>1&&e.jsx("select",{value:b??"",onChange:p=>ee(p.target.value),className:"flex-shrink-0 text-xs font-medium text-gray-600 bg-white border border-blue-100 rounded-full px-2.5 py-1.5 max-w-[140px] focus:outline-none focus:border-[#007ab7] cursor-pointer",title:"Choose voice",children:c.map(p=>e.jsx("option",{value:p.voiceURI,children:p.name.replace(/Google |Microsoft /i,"")},p.voiceURI))}),e.jsxs("button",{onClick:Q,className:"flex-shrink-0 text-xs font-bold text-[#007ab7] bg-white border border-blue-100 rounded-full px-2.5 py-1.5 hover:bg-blue-50 transition-colors min-w-[3rem]",children:[P,"Ã"]})]}):null};function vr(t){return Array.isArray(t.key_takeaways)?t.key_takeaways.filter(s=>typeof s=="string").map(s=>s.trim()).filter(Boolean):[]}function ds(t){return Array.isArray(t.faq)?t.faq.map(s=>({question:typeof(s==null?void 0:s.question)=="string"?s.question.trim():"",answer:typeof(s==null?void 0:s.answer)=="string"?s.answer.trim():""})).filter(s=>s.question&&s.answer):[]}function jr(t){return{"@context":"https://schema.org","@type":"FAQPage",mainEntity:t.map(s=>({"@type":"Question",name:s.question,acceptedAnswer:{"@type":"Answer",text:s.answer}}))}}function kr({articleSlug:t}){const[s,a]=l.useState([]),[r,i]=l.useState(""),[n,c]=l.useState(""),[o,b]=l.useState(""),[m,x]=l.useState(!1),[j,P]=l.useState(!1);l.useEffect(()=>{fetch(`/api/v1/articles/${t}/comments`,{headers:{Accept:"application/json"}}).then(f=>f.ok?f.json():[]).then(a).catch(()=>{})},[t]);const d=async f=>{if(f.preventDefault(),!(!r.trim()||!o.trim())){x(!0);try{(await fetch(`/api/v1/articles/${t}/comments`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({user_name:r,user_email:n,content:o})})).ok&&(P(!0),b(""),setTimeout(()=>P(!1),4e3))}catch{}x(!1)}};return e.jsxs("div",{children:[e.jsxs("h3",{className:"text-sm font-extrabold tracking-[0.2em] text-gray-900 uppercase mb-4 pb-2 border-b border-gray-100 flex items-center gap-2",children:[e.jsx(ss,{size:14}),"Comments ",s.length>0&&e.jsxs("span",{className:"text-xs font-normal text-gray-400",children:["(",s.length,")"]})]}),e.jsxs("form",{onSubmit:d,className:"mb-6 space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsx("input",{type:"text",required:!0,value:r,onChange:f=>i(f.target.value),placeholder:"Your name *",className:"w-full border border-gray-200 rounded-lg px-3 py-2 text-xs focus:outline-none focus:border-[#007ab7]"}),e.jsx("input",{type:"email",value:n,onChange:f=>c(f.target.value),placeholder:"Email (optional)",className:"w-full border border-gray-200 rounded-lg px-3 py-2 text-xs focus:outline-none focus:border-[#007ab7]"})]}),e.jsx("textarea",{required:!0,value:o,onChange:f=>b(f.target.value),placeholder:"Write your comment...",rows:3,className:"w-full border border-gray-200 rounded-lg px-3 py-2 text-xs focus:outline-none focus:border-[#007ab7] resize-none"}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("button",{type:"submit",disabled:m,className:"flex items-center gap-1.5 bg-[#007ab7] text-white px-4 py-2 rounded-lg text-xs font-bold hover:bg-[#005f8d] transition-colors disabled:opacity-50",children:[e.jsx(as,{size:12})," ",m?"Sending...":"Post Comment"]}),j&&e.jsx("span",{className:"text-xs text-green-600 font-medium",children:"Submitted for review!"})]})]}),s.length>0?e.jsx("div",{className:"space-y-4",children:s.map(f=>e.jsxs("div",{className:"bg-gray-50 rounded-lg p-3",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("div",{className:"w-7 h-7 bg-[#007ab7]/10 rounded-full flex items-center justify-center",children:e.jsx(Ve,{size:12,className:"text-[#007ab7]"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-xs font-bold text-gray-800",children:f.user_name}),e.jsx("span",{className:"text-[10px] text-gray-400 ml-2",children:f.created_at})]})]}),e.jsx("p",{className:"text-xs text-gray-600 leading-relaxed",children:f.content})]},f.id))}):e.jsx("p",{className:"text-xs text-gray-400 italic",children:"No comments yet. Be the first to share your thoughts!"})]})}function wr({enrichment:t}){if(!t)return null;const{companies:s,sector:a}=t;return(!s||s.length===0)&&!a?null:e.jsxs("div",{className:"mt-10 pt-8 border-t border-gray-100 space-y-6",children:[s&&s.length>0&&e.jsxs("div",{children:[e.jsxs("h2",{className:"text-sm font-extrabold tracking-[0.2em] text-gray-900 uppercase mb-4 flex items-center gap-2",children:[e.jsx(we,{size:15,className:"text-[#007ab7]"})," Companies in this story"]}),e.jsx("div",{className:"grid sm:grid-cols-2 gap-3",children:s.map(r=>e.jsxs(A,{to:`/company/${r.slug}`,className:"group flex items-center gap-3 bg-white border border-gray-100 rounded-xl p-3.5 hover:border-[#007ab7]/40 hover:shadow-sm transition-all text-inherit no-underline",children:[r.logo?e.jsx("img",{src:r.logo,alt:r.name,loading:"lazy",className:"w-11 h-11 rounded-lg object-contain bg-gray-50 border border-gray-100 flex-shrink-0"}):e.jsx("div",{className:"w-11 h-11 rounded-lg bg-[#007ab7]/10 text-[#007ab7] flex items-center justify-center font-bold flex-shrink-0",children:r.name.charAt(0)}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-sm font-bold text-gray-900 truncate group-hover:text-[#007ab7] transition-colors",children:r.name}),e.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-gray-400",children:[r.country&&e.jsx("span",{children:r.country}),r.founded_year&&e.jsxs("span",{children:["· est. ",r.founded_year]})]})]}),r.total_funding_display&&e.jsxs("div",{className:"text-right flex-shrink-0",children:[e.jsx("p",{className:"text-sm font-extrabold text-green-700 leading-none",children:r.total_funding_display}),e.jsx("p",{className:"text-[9px] text-green-600/70 font-semibold uppercase tracking-wide mt-0.5",children:"raised"})]})]},r.id))})]}),a&&e.jsxs("div",{className:"bg-gradient-to-br from-[#f0f7fb] to-white border border-blue-100 rounded-2xl p-5",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3",children:[e.jsxs("h2",{className:"text-sm font-extrabold tracking-[0.15em] text-gray-900 uppercase flex items-center gap-2",children:[e.jsx(Ne,{size:15,className:"text-[#007ab7]"})," ",a.name," Market"]}),e.jsxs(A,{to:`/companies/${a.slug}/market`,className:"text-xs font-bold text-[#007ab7] inline-flex items-center gap-1 hover:gap-1.5 transition-all whitespace-nowrap",children:["Full analysis ",e.jsx(Y,{size:12})]})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-lg font-extrabold text-gray-900 leading-none",children:a.company_count}),e.jsx("p",{className:"text-[10px] uppercase tracking-wider text-gray-400 mt-1",children:"companies"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-lg font-extrabold text-gray-900 leading-none",children:a.total_funding_display}),e.jsx("p",{className:"text-[10px] uppercase tracking-wider text-gray-400 mt-1",children:"tracked funding"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-lg font-extrabold text-gray-900 leading-none",children:a.investment_cagr!=null?`${a.investment_cagr}%`:"â"}),e.jsx("p",{className:"text-[10px] uppercase tracking-wider text-gray-400 mt-1",children:"funding CAGR"})]})]}),a.top_players&&a.top_players.length>0&&e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("span",{className:"text-[10px] font-bold uppercase tracking-wider text-gray-400 inline-flex items-center gap-1",children:[e.jsx(Xe,{size:11})," Top funded:"]}),a.top_players.map(r=>e.jsxs(A,{to:`/company/${r.slug}`,className:"text-xs font-medium text-gray-700 bg-white border border-gray-200 rounded-full px-2.5 py-1 hover:border-[#007ab7] hover:text-[#007ab7] transition-colors no-u
24nderline",children:[r.name," ",e.jsx("span",{className:"text-green-700 font-bold",children:r.total_display})]},r.slug))]})]})]})}function Nr({article:t,related:s,communityPosts:a,reactions:r,enrichment:i,isFirst:n}){var h;const c=l.useRef(null),[o,b]=l.useState([]);l.useEffect(()=>{if(!c.current)return;const u=c.current.querySelectorAll("h2"),w=[];u.forEach((S,N)=>{const E=(S.textContent||"").trim();if(!E)return;const $=E.toLowerCase().replace(/[^\w\s-]/g,"").trim().replace(/\s+/g,"-").slice(0,60),M=`h-${t.slug}-${N}-${$}`;S.id=M,w.push({id:M,text:E})}),b(w)},[t.content,t.slug]);const m=t.author||"The Robotics Media Editorial",x=`https://ui-avatars.com/api/?name=${encodeURIComponent(m)}&background=007ab7&color=fff&size=96&bold=true`,j=t.published_at?new Date(t.published_at):null,P=j?j.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):null,d=t.author_slug,f=vr(t),g=ds(t),k=`key-takeaways-${t.slug}`,C=`article-faq-${t.slug}`;return e.jsxs("article",{className:`max-w-[1440px] mx-auto px-6 ${n?"py-8":"py-12 border-t-4 border-gray-100"}`,children:[n&&e.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-400 mb-8",children:[e.jsx(A,{to:"/",className:"hover:text-red-700",children:"Home"}),e.jsx(Y,{size:12}),t.category&&e.jsxs(e.Fragment,{children:[e.jsx(A,{to:`/category/${t.category_slug}`,className:"hover:text-red-700",children:t.category}),e.jsx(Y,{size:12})]}),e.jsx("span",{className:"text-gray-600 truncate",children:t.title})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-12",children:[e.jsxs("div",{className:"lg:col-span-8",children:[t.category&&e.jsx(A,{to:`/category/${t.category_slug}`,className:"category-link mb-3 block hover:underline",children:t.category}),n?e.jsx("h1",{className:"text-3xl lg:text-4xl font-montserrat font-bold leading-tight mb-4",children:e.jsx("a",{href:`/article/${t.slug}`,onClick:u=>{u.preventDefault(),I(`/article/${t.slug}`)},className:"hover:text-red-700 transition-colors",children:t.title})}):e.jsx("h2",{className:"text-3xl lg:text-4xl font-montserrat font-bold leading-tight mb-4",children:e.jsx("a",{href:`/article/${t.slug}`,onClick:u=>{u.preventDefault(),I(`/article/${t.slug}`)},className:"hover:text-red-700 transition-colors",children:t.title})}),t.companies&&t.companies.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:t.companies.map(u=>e.jsxs("a",{href:`/company/${u.slug}`,onClick:w=>{w.preventDefault(),I(`/company/${u.slug}`)},className:"inline-flex items-center gap-2 bg-gray-50 border border-gray-200 rounded-full px-3 py-1.5 text-xs font-medium text-gray-700 hover:border-[#007ab7] hover:text-[#007ab7] transition-colors",children:[u.logo&&e.jsx("img",{src:u.logo,alt:"",loading:n?void 0:"lazy",className:"w-4 h-4 rounded object-contain"}),u.name]},u.id))}),e.jsxs("div",{className:"flex items-center gap-4 mb-8 pb-6 border-b border-gray-100",children:[e.jsx("img",{src:x,alt:m,loading:n?void 0:"lazy",className:"w-12 h-12 rounded-full flex-shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[d?e.jsx(A,{to:`/author/${d}`,className:"font-bold text-sm text-gray-900 hover:text-[#007ab7] transition-colors",children:m}):e.jsx("span",{className:"font-bold text-sm text-gray-900",children:m}),e.jsx("span",{className:"text-[9px] text-gray-400 font-extrabold uppercase tracking-wider",children:t.author?"Contributor":"Editorial"})]}),e.jsxs("div",{className:"flex items-center gap-3 text-xs text-gray-500 mt-1 flex-wrap",children:[t.published_at&&P&&e.jsx("time",{dateTime:t.published_at,children:P}),t.time_ago&&e.jsx("span",{className:"text-gray-400",children:t.time_ago}),t.reading_time>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(pe,{size:11}),t.reading_time," min read"]}),(t.view_count??0)>=100&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ae,{size:11}),(h=t.view_count)==null?void 0:h.toLocaleString()]})]})]}),e.jsx(Bt,{articleId:t.id})]}),(t.cover_image||t.thumbnail)&&e.jsx("div",{className:"aspect-video overflow-hidden rounded-lg mb-8",children:e.jsx("img",{src:t.cover_image||t.thumbnail||"",alt:t.title,loading:n?void 0:"lazy",className:"w-full h-full object-cover"})}),f.length>0&&e.jsxs("section",{"aria-labelledby":k,className:"bg-[#007ab7]/5 border border-[#007ab7]/20 border-l-4 rounded-xl p-5 mb-8 flex gap-4 items-start",children:[e.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-lg bg-[#007ab7] text-white flex items-center justify-center mt-0.5",children:e.jsx(Os,{size:18})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h2",{id:k,className:"text-[10px] font-extrabold uppercase tracking-[0.2em] text-[#007ab7] mb-3",children:"Key Takeaways"}),e.jsx("ul",{className:"space-y-2 text-base text-gray-800 leading-relaxed font-medium m-0 pl-5 list-disc marker:text-[#007ab7]",children:f.map((u,w)=>e.jsx("li",{children:u},`${t.slug}-takeaway-${w}`))})]})]}),e.jsx(yr,{title:t.title,excerpt:t.excerpt,slug:t.slug,contentRef:c}),e.jsx("div",{ref:c,className:"article-prose max-w-none",dangerouslySetInnerHTML:{__html:t.content||""}}),g.length>0&&e.jsxs("section",{"aria-labelledby":C,className:"mt-10 pt-8 border-t border-gray-100",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsx("h2",{id:C,className:"text-lg font-extrabold tracking-tight text-gray-900 mb-5",children:"Frequently Asked Questions"}),e.jsxs(A,{to:"/api/docs",title:"Bu içeriÄe APIâden eriÅin â GET /api/v1/articles/{slug} (faq alanı)",className:"flex items-center gap-1 text-[11px] font-bold uppercase tracking-wider text-gray-400 hover:text-[#007ab7] transition-colors flex-shrink-0",children:[e.jsx(Ms,{size:12}),"API"]})]}),e.jsx("div",{className:"space-y-3",children:g.map((u,w)=>e.jsxs("details",{className:"group bg-white border border-gray-100 rounded-xl p-4 open:border-[#007ab7]/30 open:bg-[#007ab7]/5 transition-colors",children:[e.jsxs("summary",{className:"cursor-pointer list-none text-sm font-bold text-gray-900 flex items-center justify-between gap-4",children:[e.jsx("span",{children:u.question}),e.jsx(Y,{size:16,className:"text-[#007ab7] flex-shrink-0 transition-transform group-open:rotate-90"})]}),e.jsx("p",{className:"mt-3 text-sm text-gray-600 leading-relaxed m-0",children:u.answer})]},`${t.slug}-faq-${w}`))})]}),e.jsxs("div",{className:"flex items-center justify-between mt-10 pt-6 border-t border-gray-100",children:[e.jsx(hr,{articleId:t.id,articleSlug:t.slug,initialLikes:(r==null?void 0:r.likes)||0,initialDislikes:(r==null?void 0:r.dislikes)||0}),e.jsx(Bt,{articleId:t.id})]}),t.tags&&t.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mt-10 pt-8 border-t border-gray-100",children:t.tags.map(u=>e.jsxs(A,{to:`/tag/${u.slug}`,className:"px-3 py-1 bg-gray-100 hover:bg-[#007ab7] hover:text-white text-xs font-bold text-gray-600 rounded-full uppercase tracking-wide transition-colors no-u
24nderline",children:["#",u.name]},u.slug))}),e.jsx(wr,{enrichment:i}),s&&s.length>0&&e.jsxs("div",{className:"mt-12 pt-8 border-t border-gray-100",children:[e.jsx("h2",{className:"text-lg font-extrabold tracking-tight text-gray-900 mb-5",children:"Related stories"}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-5",children:s.slice(0,6).map(u=>e.jsxs(A,{to:`/article/${u.slug}`,className:"group block text-inherit no-underline",children:[u.thumbnail&&e.jsx("div",{className:"aspect-[16/10] overflow-hidden rounded-lg mb-3 bg-gray-100 ring-1 ring-black/5",children:e.jsx("img",{src:u.thumbnail,alt:u.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),u.category&&e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-[#007ab7]/70 mb-1 block",children:u.category}),e.jsx("h3",{className:"text-sm font-bold leading-snug line-clamp-2 text-gray-800 group-hover:text-[#007ab7] transition-colors",children:u.title}),u.time_ago&&e.jsx("span",{className:"text-[11px] text-gray-400 mt-1.5 block",children:u.time_ago})]},u.id))})]})]}),e.jsx("div",{className:"lg:col-span-4",children:e.jsxs("div",{className:"sticky top-40 space-y-6 max-h-[calc(100vh-12rem)] overflow-y-auto pr-2",children:[o.length>=2&&e.jsxs("div",{children:[e.jsxs("h3",{className:"text-sm font-extrabold tracking-[0.2em] text-gray-900 uppercase mb-3 pb-2 border-b border-gray-100 flex items-center gap-2",children:[e.jsx(Bs,{size:14}),"In This Article"]}),e.jsx("ul",{className:"space-y-2.5",children:o.map((u,w)=>e.jsxs("li",{className:"flex gap-3",children:[e.jsx("span",{className:"text-[10px] font-bold text-gray-300 leading-snug mt-0.5",children:String(w+1).padStart(2,"0")}),e.jsx("a",{href:`#${u.id}`,onClick:S=>{var $;S.preventDefault();const N=($=c.current)==null?void 0:$.querySelectorAll("h2"),E=N&&N[w]||document.getElementById(u.id);if(E){const M=E.getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:M,behavior:"smooth"})}},className:"text-sm text-gray-600 hover:text-[#007ab7] leading-snug transition-colors block min-w-0 flex-1 cursor-pointer",children:u.text})]},u.id))})]}),e.jsx("h3",{className:"text-sm font-extrabold tracking-[0.2em] text-gray-900 uppercase pb-2 border-b border-gray-100",children:"Community Discussion"}),a&&a.length>0?e.jsx("div",{className:"space-y-4",children:a.map(u=>{var w,S,N,E,$;return e.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 hover:bg-gray-100/80 transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("img",{src:((w=u.author)==null?void 0:w.avatar)||`https://ui-avatars.com/api/?name=${encodeURIComponent(((S=u.author)==null?void 0:S.name)||"U")}&background=007ab7&color=fff&size=28`,alt:"",loading:"lazy",className:"w-6 h-6 rounded-full object-cover"}),e.jsx("span",{className:"text-xs font-semibold text-gray-900",children:(N=u.author)==null?void 0:N.name}),e.jsx("span",{className:"text-[10px] text-gray-400",children:u.time_ago})]}),e.jsx("a",{href:`/community/post/${u.slug}`,onClick:M=>{M.preventDefault(),I(`/community/post/${u.slug}`)},className:"text-sm text-gray-700 leading-relaxed line-clamp-3 hover:text-[#007ab7] transition-colors",children:(E=u.content)==null?void 0:E.replace(/https?:\/\/[^\s]+/g,"").trim()}),e.jsxs("div",{className:"flex items-center gap-3 mt-2 text-[10px] text-gray-400",children:[e.jsxs("span",{children:[u.likes_count||0," likes"]}),e.jsxs("span",{children:[u.comments_count||0," comments"]})]}),(($=u.recent_comments)==null?void 0:$.length)>0&&e.jsxs("div",{className:"mt-3 pt-3 border-t border-gray-200/60 space-y-2",children:[u.recent_comments.map(M=>{var F,z,H;return e.jsxs("div",{className:"flex gap-2",children:[e.jsx("img",{src:((F=M.author)==null?void 0:F.avatar)||`https://ui-avatars.com/api/?name=${encodeURIComponent(((z=M.author)==null?void 0:z.name)||"U")}&background=eee&color=666&size=20`,alt:"",loading:"lazy",className:"w-5 h-5 rounded-full object-cover flex-shrink-0 mt-0.5"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[10px] font-semibold text-gray-700",children:(H=M.author)==null?void 0:H.name}),e.jsx("p",{className:"text-[11px] text-gray-600 line-clamp-2 leading-snug",children:M.content})]})]},M.id)}),u.comments_count>3&&e.jsxs("a",{href:`/community/post/${u.slug}`,onClick:M=>{M.preventDefault(),I(`/community/post/${u.slug}`)},className:"text-[10px] text-[#007ab7] font-medium hover:underline block",children:["View all ",u.comments_count," comments"]})]})]},u.id)})}):e.jsxs("div",{className:"text-center py-8",children:[e.jsx(ss,{size:28,className:"text-gray-200 mx-auto mb-2"}),e.jsx("p",{className:"text-xs text-gray-400",children:"No community posts about this article yet."}),e.jsx("p",{className:"text-[10px] text-gray-300 mt-1",children:"Share this article in the community to start a discussion!"})]})]})})]}),e.jsx("div",{className:"max-w-3xl mx-auto px-6 mt-12 pt-10 border-t border-gray-100",children:e.jsx(kr,{articleSlug:t.slug})})]})}const Pr=({slug:t})=>{var h,u;const[s,a]=l.useState([]),[r,i]=l.useState(!0),[n,c]=l.useState(!1),[o,b]=l.useState(new Set),[m,x]=l.useState([]),j=l.useRef(null);l.useEffect(()=>{i(!0),a([]),b(new Set([t])),x([]),Rt(t).then(w=>
24{a([{article:w.article,related:w.related,community_posts:w.community_posts,reactions:w.reactions,enrichment:w.enrichment}]),x(w.related.filter(S=>S.slug!==t))}).catch(()=>a([])).finally(()=>i(!1))},[t]);const P=l.useCallback(async()=>{if(n||m.length===0)return;const w=m.find(S=>!o.has(S.slug));if(w){c(!0);try{const S=await Rt(w.slug);a(N=>[...N,{article:S.article,related:S.related,enrichment:S.enrichment}]),b(N=>new Set([...N,w.slug])),x(N=>{const E=new Set([...N.map(M=>M.slug),...o,w.slug]),$=S.related.filter(M=>!E.has(M.slug));return[...N.filter(M=>M.slug!==w.slug),...$]})}catch{}c(!1)}},[n,m,o]);l.useEffect(()=>{const w=j.current;if(!w)return;const S=new IntersectionObserver(([N])=>{N.isIntersecting&&P()},{rootMargin:"600px"});return S.observe(w),()=>S.disconnect()},[P]),l.useEffect(()=>{if(s.length<2)return;const w=()=>{const S=document.querySelectorAll("[data-article-slug]");let N=t;S.forEach($=>{$.getBoundingClientRect().top<300&&(N=$.getAttribute("data-article-slug")||t)});const E=window.location.pathname==="/tr"||window.location.pathname.startsWith("/tr/")?`/tr/article/${N}`:`/article/${N}`;window.location.pathname!==E&&window.history.replaceState({},"",E)};return window.addEventListener("scroll",w,{passive:!0}),()=>window.removeEventListener("scroll",w)},[s,t]);const d=((h=s[0])==null?void 0:h.article)??null,f=window.location.origin,g=window.location.pathname==="/tr"||window.location.pathname.startsWith("/tr/")?"/tr":"",k=d?`${f}${g}/article/${d.slug}`:"",C=d?ds(d):[];return jt(d?{title:d.meta_title||d.title,description:d.meta_description||d.excerpt||"",ogTitle:d.og_title||d.title,ogDescription:d.og_description||d.excerpt||"",ogImage:d.og_image||d.cover_image||d.thumbnail||"",ogType:"article",canonical:d.canonical_url||`${f}/article/${d.slug}`,author:d.author||void 0,publishedTime:d.published_at||void 0,section:d.category||void 0,tags:((u=d.tags)==null?void 0:u.map(w=>w.name))||void 0,jsonLd:[ur(d,k),...C.length>0?[jr(C)]:[],ls([{name:"Home",url:f},...d.category?[{name:d.category,url:`${f}/category/${d.category_slug}`}]:[],{name:d.title,url:k}])]}:{}),l.useEffect(()=>{const w=d==null?void 0:d.slug;if(!w)return;const S=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`;let N=0,E=0,$=null;const M=()=>{N+=1},F=()=>{$==null&&($=setInterval(M,1e3))},z=()=>{$!=null&&(clearInterval($),$=null)},H=()=>{const Q=document.querySelector("[data-article-slug]");if(!Q)return;const ee=Q.getBoundingClientRect().top+window.scrollY,p=Q.offsetHeight;if(p<=0)return;const T=(window.scrollY+window.innerHeight-ee)/p*100;E=Math.max(E,Math.min(100,Math.round(T)))},X=()=>{var ee;if(N<2)return;const Q={slug:w,session_id:S,dwell_seconds:N,max_scroll:E,completed:E>=85};try{const p=new Blob([JSON.stringify(Q)],{type:"application/json"});(ee=navigator.sendBeacon)==null||ee.call(navigator,"/api/v1/track/engagement",p)}catch{}},re=()=>{document.hidden?(z(),X()):F()};return F(),H(),window.addEventListener("scroll",H,{passive:!0}),document.addEventListener("visibilitychange",re),window.addEventListener("pagehide",X),()=>{z(),X(),window.removeEventListener("scroll",H),document.removeEventListener("visibilitychange",re),window.removeEventListener("pagehide",X)}},[d==null?void 0:d.slug]),r?e.jsx("div",{className:"max-w-[1440px] mx-auto px-6 py-12",children:e.jsxs("div",{className:"animate-pulse space-y-6",children:[e.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/4"}),e.jsx("div",{className:"h-8 bg-gray-200 rounded w-3/4"}),e.jsx("div",{className:"h-96 bg-gray-200 rounded"})]})}):s.length?e.jsxs("div",{children:[e.jsx(xr,{}),s.map((w,S)=>e.jsx("div",{"data-article-slug":w.article.slug,children:e.jsx(Nr,{article:w.article,related:w.related,communityPosts:w.community_posts,reactions:w.reactions,enrichment:w.enrichment,isFirst:S===0})},w.article.slug)),e.jsx("div",{ref:j,className:"h-1"}),n&&e.jsx("div",{className:"flex justify-center py-12",children:e.jsx("div",{className:"w-8 h-8 border-4 border-gray-200 border-t-[#007ab7] rounded-full animate-spin"})}),e.jsx("div",{className:"max-w-[1440px] mx-auto px-6 py-8",children:e.jsxs("button",{onClick:()=>I("/"),className:"flex items-center gap-2 text-sm font-bold text-gray-500 hover:text-red-700 transition-colors",children:[e.jsx($s,{size:16})," Back to Home"]})})]}):e.jsxs("div",{className:"max-w-[1440px] mx-auto px-6 py-24 text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Article not found"}),e.jsx("button",{onClick:()=>I("/"),className:"text-red-700 font-bold",children:"Go Home"})]})},qt=4,Sr=({items:t})=>{if(t.length===0)return null;const s=t[0],a=t.slice(1,1+qt),r=t.slice(1+qt),i=s.cover_image||s.thumbnail;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8 mb-12 pb-12 border-b border-gray-100",children:[e.jsxs("div",{className:"lg:col-span-2 relative",children:[e.jsxs(A,{to:`/article/${s.slug}`,"data-article-id":s.id,className:"group cursor-pointer block text-inherit no-underline",children:[i&&e.jsx("div",{className:"aspect-[16/9] overflow-hidden rounded-xl mb-5 bg-gray-100",children:e.jsx("img",{src:i,alt:s.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700"})}),e.jsx("span",{className:"category-link mb-2 block",children:s.category}),e.jsx("h2",{className:"text-2xl lg:text-3xl font-montserrat font-bold leading-tight mb-3 group-hover:text-red-700 transition-colors",children:s.title}),e.jsx("p",{className:"text-gray-500 leading-relaxed line-clamp-2 mb-3",children:s.excerpt}),e.jsxs("div",{className:"flex items-center gap-3 text-[11px] text-gray-400",children:[s.time_ago&&e.jsx("span",{children:s.time_ago}),s.reading_time>0&&e.jsxs("span",{children:["· ",s.reading_time," min read"]}),s.view_count>=100&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ae,{size:11}),s.view_count]})]})]}),i&&e.jsx(Pe,{article:s})]}),a.length>0&&e.jsx("div",{className:"flex flex-col divide-y divide-gray-100",children:a.map(n=>e.jsxs(A,{to:`/article/${n.slug}`,"data-article-id":n.id,className:"group cursor-pointer flex gap-4 py-4 first:pt-0 last:pb-0 text-inherit no-underline",children:[n.thumbnail&&e.jsx("div",{className:"w-24 h-20 flex-shrink-0 overflow-hidden rounded-lg bg-gray-100",children:e.jsx("img",{src:n.thumbnail,alt:n.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"category-link text-[9px] mb-1 block",children:n.category}),e.jsx("h3",{className:"text-sm font-bold leading-snug group-hover:text-red-700 transition-colors line-clamp-3",children:n.title}),n.time_ago&&e.jsx("span",{className:"text-[11px] text-gray-400 mt-1 block",children:n.time_ago})]})]},n.id))})]}),r.length>0&&e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-8 gap-y-10",children:r.map(n=>e.jsxs("div",{className:"relative",children:[e.jsxs(A,{to:`/article/${n.slug}`,"data-article-id":n.id,className:"group cursor-pointer block text-inherit no-underline",children:[n.thumbnail&&e.jsx("div",{className:"aspect-[16/10] overflow-hidden rounded-lg mb-4 bg-gray-100",children:e.jsx("img",{src:n.thumbnail,alt:n.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),e.jsx("span",{className:"category-link text-[10px] mb-2 block",children:n.category}),e.jsx("h3",{className:"text-base font-bold leading-snug group-hover:text-red-700 transition-colors line-clamp-2 mb-2",children:n.title}),e.jsx("p",{className:"text-gray-500 text-xs line-clamp-2 mb-2",children:n.excerpt}),e.jsxs("div",{className:"flex items-center gap-3 text-[11px] text-gray-400",children:[n.time_ago&&e.jsx("span",{children:n.time_ago}),n.view_count>=100&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ae,{size:10}),n.view_count]}),n.comments_count>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ue,{size:10}),n.comments_count]})]})]}),n.thumbnail&&e.jsx(Pe,{article:n})]},n.id))})]})};function zr(t,s=[]){const[a,r]=l.useState([]),[i,n]=l.useState(1),[c,o]=l.useState(0),[b,m]=l.useState(!0),[x,j]=l.useState(!1),[P,d]=l.useState(!1),f=l.useRef(1),g=l.useRef(1),k=l.useRef(!1),C=l.useRef(null),h=l.useRef(t);h.current=t,l.useEffect(()=>{let S=!1;return f.current=1,g.current=1,k.current=!0,m(!0),d(!1),r([]),h.current(1).then(N=>{S||(r(N.items),n(N.lastPage),g.current=N.lastPage,o(N.total))}).catch(()=>{S||d(!0)}).finally(()=>{S||(m(!1),k.current=!1)}),()=>{S=!0}},s);const u=l.useCallback(()=>
24{if(k.current||f.current>=g.current)return;const S=f.current+1;k.current=!0,j(!0),d(!1),h.current(S).then(N=>{f.current=S,r(E=>[...E,...N.items]),n(N.lastPage),g.current=N.lastPage}).catch(()=>d(!0)).finally(()=>{j(!1),k.current=!1})},[]);l.useEffect(()=>{const S=C.current;if(!S)return;const N=new IntersectionObserver(E=>{E[0].isIntersecting&&u()},{rootMargin:"600px 0px"});return N.observe(S),()=>N.disconnect()},[u,a.length]);const w=f.current<i;return{items:a,total:c,loading:b,loadingMore:x,error:P,hasMore:w,sentinelRef:C,loadMore:u}}const _r=({slug:t})=>{const[s,a]=l.useState(null),r=l.useCallback(k=>ca(t,k).then(C=>(k===1&&a(C.category),{items:C.articles,lastPage:C.pagination.last_page,total:C.pagination.total})),[t]),{items:i,total:n,loading:c,loadingMore:o,error:b,hasMore:m,sentinelRef:x,loadMore:j}=zr(r,[t]),P=window.location.origin,d=s?`${P}/category/${s.slug}`:"",f=s?s.meta_description||s.description||`Latest ${s.name} news, articles and analysis â ${n} stories tracking ${s.name} developments in robotics & AI on The Robotics Media.`:"",g=(s==null?void 0:s.faqs)??[];return jt(s?{title:s.meta_title||`${s.name} News & Articles`,description:f,ogType:"website",ogImage:s.image||void 0,canonical:d,jsonLd:[{"@context":"https://schema.org","@type":"CollectionPage",name:`${s.name} News`,description:f,url:d,...s.image?{image:s.image}:{},isPartOf:{"@type":"WebSite",name:"The Robotics Media",url:`${P}/`},...i.length>0?{mainEntity:{"@type":"ItemList",name:`Latest ${s.name} articles`,numberOfItems:n,itemListElement:i.slice(0,10).map((k,C)=>({"@type":"ListItem",position:C+1,url:`${P}/article/${k.slug}`,name:k.title}))}}:{}},...g.length>0?[{"@context":"https://schema.org","@type":"FAQPage",mainEntity:g.map(k=>({"@type":"Question",name:k.question,acceptedAnswer:{"@type":"Answer",text:k.answer}}))}]:[],ls([{name:"Home",url:P},...s.parent?[{name:s.parent.name,url:`${P}/category/${s.parent.slug}`}]:[],{name:s.name,url:d}])]}:{}),c&&!s?e.jsx("div",{className:"max-w-[1440px] mx-auto px-6 py-12",children:e.jsxs("div",{className:"animate-pulse space-y-6",children:[e.jsx("div",{className:"h-8 bg-gray-200 rounded w-1/3"}),e.jsx("div",{className:"grid grid-cols-3 gap-6",children:[1,2,3,4,5,6].map(k=>e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"h-48 bg-gray-200 rounded"}),e.jsx("div",{className:"h-4 bg-gray-200 rounded w-2/3"})]},k))})]})}):s?e.jsxs("div",{className:"max-w-[1440px] mx-auto px-6 py-8",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-400 mb-8",children:[e.jsx(A,{to:"/",className:"hover:text-red-700",children:"Home"}),e.jsx(Y,{size:12}),s.parent&&e.jsxs(e.Fragment,{children:[e.jsx(A,{to:`/category/${s.parent.slug}`,className:"hover:text-red-700",children:s.parent.name}),e.jsx(Y,{size:12})]}),e.jsx("span",{className:"text-gray-600",children:s.name})]}),s.image&&e.jsx("div",{className:"mb-8 rounded-2xl overflow-hidden border border-gray-100 aspect-[16/5] bg-gray-100",children:e.jsx("img",{src:s.image,alt:s.name,className:"w-full h-full object-cover"})}),e.jsx("div",{className:"mb-10 pb-8 border-b border-gray-100",children:e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-start lg:justify-between gap-6",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[e.jsx("h1",{className:"text-3xl font-montserrat font-bold uppercase tracking-tight mb-3",children:s.name}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(A,{to:`/category/${s.slug}/today`,className:"inline-flex items-center gap-1.5 bg-[#007ab7] text-white text-xs font-bold px-3.5 py-2 rounded-full hover:bg-[#005f8d] transition-colors no-underline normal-case",children:[e.jsx(Zt,{size:14})," Today"]}),e.jsxs(A,{to:`/category/${s.slug}/this-week`,className:"inline-flex items-center gap-1.5 bg-[#007ab7]/10 text-[#007ab7] text-xs font-bold px-3.5 py-2 rounded-full hover:bg-[#007ab7]/15 transition-colors no-underline normal-case",children:[e.jsx(Fs,{size:14})," This Week"]})]})]}),s.description&&e.jsx("p",{className:"text-gray-500 max-w-2xl",children:s.description}),s.children.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mt-4",children:s.children.map(k=>e.jsx(A,{to:`/category/${k.slug}`,className:"px-4 py-1.5 bg-gray-100 hover:bg-red-50 hover:text-red-700 text-xs font-bold rounded-full transition-colors uppercase tracking-wide",children:k.name},k.slug))})]}),s.sponsor&&e.jsxs("a",{href:s.sponsor.url||"#",target:"_blank",rel:"noopener noreferrer sponsored",className:"flex-shrink-0 flex items-center gap-4 px-5 py-3 rounded-xl bg-gray-50 ring-1 ring-black/5 hover:ring-[#007ab7]/20 hover:shadow-sm transition-all group",children:[s.sponsor.logo&&e.jsx("img",{src:s.sponsor.logo,alt:s.sponsor.name,className:"h-8 w-auto object-contain group-hover:scale-105 transition-transform"}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[8px] uppercase tracking-[0.2em] text-gray-400 block",children:"Sponsored by"}),e.jsx("span",{className:"text-sm font-bold text-gray-800",children:s.sponsor.name})]}),e.jsx(et,{size:14,className:"text-gray-300 group-hover:text-[#007ab7] transition-colors ml-1"})]})]})}),i.length===0?e.jsx("p",{className:"text-gray-400 text-center py-16",children:"No articles in this category yet."}):e.jsxs(e.Fragment,{children:[e.jsx(Sr,{items:i}),e.jsxs("div",{ref:x,className:"mt-10",children:[o&&e.jsx("div",{className:"flex justify-center py-6",children:e.jsx(Hs,{className:"animate-spin text-gray-300",size:28})}),b&&!o&&e.jsxs("div",{className:"text-center py-6",children:[e.jsx("p",{className:"text-gray-400 text-sm mb-2",children:"Couldn't load more articles."}),e.jsx("button",{onClick:j,className:"text-red-700 font-bold text-sm hover:underline",children:"Try again"})]}),!m&&!o&&!b&&n>0&&e.jsx("p",{className:"text-center text-gray-300 text-xs uppercase tracking-widest py-6",children:"You've reached the end"})]})]}),s.seo_body&&e.jsxs("section",{className:"mt-14 pt-10 border-t border-gray-100",children:[e.jsxs("h2",{className:"text-xl font-montserrat font-bold text-gray-900 mb-4",children:["About ",s.name]}),e.jsx("div",{className:"prose prose-sm sm:prose max-w-3xl text-gray-600 prose-headings:font-montserrat prose-headings:text-gray-900 prose-a:text-[#007ab7]",dangerouslySetInnerHTML:{__html:s.seo_body}})]}),g.length>0&&e.jsxs("section",{className:"mt-12 pt-10 border-t border-gray-100",children:[e.jsx("h2",{className:"text-xl font-montserrat font-bold text-gray-900 mb-5",children:"Frequently asked questions"}),e.jsx("div",{className:"space-y-3 max-w-3xl",children:g.map((k,C)=>e.jsxs("details",{className:"group rounded-xl border border-gray-100 bg-white p-4 open:sha
24dow-sm",children:[e.jsxs("summary",{className:"flex items-center justify-between gap-3 cursor-pointer list-none font-bold text-gray-900 text-sm",children:[k.question,e.jsx(Y,{size:16,className:"text-gray-400 transition-transform group-open:rotate-90 flex-shrink-0"})]}),e.jsx("p",{className:"mt-3 text-sm text-gray-600 leading-relaxed",children:k.answer})]},C))})]})]}):e.jsxs("div",{className:"max-w-[1440px] mx-auto px-6 py-24 text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Category not found"}),e.jsx("button",{onClick:()=>I("/"),className:"text-red-700 font-bold",children:"Go Home"})]})},Er=({sectors:t})=>!t||t.length===0?null:e.jsxs("section",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 py-8 lg:py-12",children:[e.jsxs("div",{className:"flex items-end justify-between mb-6",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl lg:text-3xl font-montserrat font-extrabold text-gray-900 tracking-tight",children:"Companies by Sector"}),e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Explore robotics & AI companies grouped by industry â funding, profiles & news"})]}),e.jsxs(A,{to:"/companies",className:"hidden sm:flex items-center gap-1 text-xs font-bold text-gray-400 hover:text-[#007ab7] transition-colors uppercase tracking-wide flex-shrink-0",children:["View all ",e.jsx(te,{size:12})]})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:t.map(s=>e.jsxs(A,{to:`/companies/${s.slug}`,className:"group relative block rounded-2xl overflow-hidden aspect-[4/3] text-inherit no-underline shadow-sm hover:shadow-xl transition-shadow duration-300",children:[s.image?e.jsx("img",{src:s.image,alt:s.name,loading:"lazy",decoding:"async",className:"absolute inset-0 w-full h-full object-cover group-hover:scale-110 transition-transform duration-700"}):e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-[#007ab7] to-cyan-700"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/35 to-black/10 group-hover:from-black/90 transition-colors"}),e.jsxs("div",{className:"absolute inset-0 p-4 flex flex-col justify-end",children:[s.icon&&e.jsx("span",{className:"absolute top-3 right-3 text-2xl drop-shadow",children:s.icon}),e.jsx("h3",{className:"text-white font-montserrat font-bold text-lg leading-tight drop-shadow-sm line-clamp-2 group-hover:text-cyan-200 transition-colors",children:s.name}),e.jsxs("div",{className:"flex items-center justify-between mt-1.5",children:[e.jsxs("span",{className:"text-[11px] font-bold text-white/80 uppercase tracking-wide",children:[s.companies_count," ",s.companies_count===1?"company":"companies"]}),e.jsx("span",{className:"w-6 h-6 rounded-full bg-white/15 backdrop-blur-sm flex items-center justify-center text-white opacity-0 group-hover:opacity-100 group-hover:translate-x-0 -translate-x-1 transition-all",children:e.jsx(te,{size:13})})]})]})]},s.id))}),e.jsx("div",{className:"sm:hidden mt-5 text-center",children:e.jsxs(A,{to:"/companies",className:"inline-flex items-center gap-1 text-xs font-bold text-[#007ab7] uppercase tracking-wide",children:["View all sectors ",e.jsx(te,{size:12})]})})]}),kt=[{key:"conference",label:"Conference",plural:"conferences",pluralLabel:"Conferences",color:"bg-blue-100 text-blue-700"},{key:"expo",label:"Expo",plural:"expos",pluralLabel:"Expos & Trade Shows",color:"bg-purple-100 text-purple-700"},{key:"summit",label:"Summit",plural:"summits",pluralLabel:"Summits",color:"bg-indigo-100 text-indigo-700"},{key:"workshop",label:"Workshop",plural:"workshops",pluralLabel:"Workshops",color:"bg-orange-100 text-orange-700"},{key:"hackathon",label:"Hackathon",plural:"hackathons",pluralLabel:"Hackathons",color:"bg-rose-100 text-rose-700"},{key:"webinar",label:"Webinar",plural:"webinars",pluralLabel:"Webinars",color:"bg-green-100 text-green-700"},{key:"awards",label:"Awards",plural:"awards",pluralLabel:"Awards",color:"bg-amber-100 text-amber-700"},{key:"meetup",label:"Meetup",plural:"meetups",pluralLabel:"Meetups",color:"bg-pink-100 text-pink-700"}],us=[{key:"robotics",label:"Robotics"},{key:"ai",label:"AI"},{key:"automation",label:"Automation"},{key:"humanoid",label:"Humanoid"},{key:"drones",label:"Drones & UAVs"},{key:"autonomous",label:"Autonomous Vehicles"},{key:"healthcare",label:"Healthcare Robotics"},{key:"defense",label:"Defense"}],Ti=Object.fromEntries(kt.map(t=>[t.key,t])),He=Object.fromEntries(kt.map(t=>[t.plural,t])),Ai=Object.fromEntries(kt.map(t=>[t.key,t.color])),Wt=Object.fromEntries(us.map(t=>[t.key,t]));function Cr(t){if(He[t])return{type:He[t]};if(Wt[t])return{topic:Wt[t]}
24;for(const s of us){const a=s.key+"-";if(t.startsWith(a)){const r=t.slice(a.length);if(He[r])return{topic:s,type:He[r]}}}return null}function Ri(t){return t.topic&&t.type?`${t.topic.label} ${t.type.pluralLabel}`:t.type?`Robotics & AI ${t.type.pluralLabel}`:t.topic?`${t.topic.label} Events`:"Events"}function Li(t,s){const a=new Date(t),r={month:"long",day:"numeric",year:"numeric"};if(!s||t===s)return a.toLocaleDateString("en-US",r);const i=new Date(s);return a.getMonth()===i.getMonth()&&a.getFullYear()===i.getFullYear()?`${a.toLocaleDateString("en-US",{month:"long",day:"numeric"})} - ${i.getDate()}, ${i.getFullYear()}`:`${a.toLocaleDateString("en-US",r)} - ${i.toLocaleDateString("en-US",r)}`}const Tr=()=>{const[t,s]=l.useState([]),[a,r]=l.useState(!0);return l.useEffect(()=>{fetch("/api/v1/members/active",{headers:{Accept:"application/json"}}).then(i=>i.json()).then(i=>s(i.data||[])).catch(()=>{}).finally(()=>r(!1))},[]),a||t.length===0?null:e.jsx("section",{className:"py-12 sm:py-16",children:e.jsxs("div",{className:"max-w-[1440px] mx-auto px-4 sm:px-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(gt,{size:18,className:"text-[#007ab7]"}),e.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-[#007ab7]",children:"Community"})]}),e.jsx("h2",{className:"text-2xl sm:text-3xl font-montserrat font-bold text-gray-900",children:"Most Active Members"})]}),e.jsx("a",{href:"/community",onClick:i=>{i.preventDefault(),I("/community")},className:"text-sm text-[#007ab7] font-medium hover:underline",children:"Join the community"})]}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-4",children:t.slice(0,6).map(i=>{const n=i.avatar||`https://ui-avatars.com/api/?name=${encodeURIComponent(i.name)}&background=007ab7&color=fff&size=80`;return e.jsxs("a",{href:`/member/${i.username}`,onClick:c=>{c.preventDefault(),I(`/member/${i.username}`)},className:"bg-white rounded-xl border border-gray-100 p-4 text-center hover:border-[#007ab7]/30 hover:shadow-md transition-all group",children:[e.jsx("img",{src:n,alt:"",className:"w-14 h-14 rounded-full mx-auto object-cover mb-3"}),e.jsx("h3",{className:"font-semibold text-sm text-gray-900 group-hover:text-[#007ab7] truncate",children:i.name}),e.jsxs("p",{className:"text-xs text-gray-400 truncate",children:["@",i.username]}),e.jsxs("div",{className:"flex items-center justify-center gap-3 mt-2 text-[10px] text-gray-400",children:[e.jsxs("span",{className:"flex items-center gap-0.5",children:[e.jsx(qs,{size:10}),i.posts_count]}),e.jsxs("span",{className:"flex items-center gap-0.5",children:[e.jsx(ue,{size:10}),i.comments_count]})]})]},i.username)})})]})})},Di=({value:t,onChange:s,placeholder:a,rows:r=3,maxLength:i,className:n=""})=>{const[c,o]=l.useState([]),[b,m]=l.useState(!1),[x,j]=l.useState(""),[P,d]=l.useState(0),f=l.useRef(null),g=l.useRef(),k=()=>{const u=f.current;u&&(u.style.height="auto",u.style.height=u.scrollHeight+"px")};l.useEffect(()=>{k()},[t]);const C=u=>{const w=u.target.value,S=u.target.selectionStart||0;s(w),d(S),k();const E=w.slice(0,S).match(/@(\w{1,30})$/);if(E){const $=E[1];j($),clearTimeout(g.current),g.current=setTimeout(async()=>{const M=await ja($);o(M),m(M.length>0)},250)}else m(!1),o([])},h=u=>{var $;const w=t.slice(0,P),S=t.slice(P),N=w.lastIndexOf("@"),E=w.slice(0,N)+`@${u} `+S;s(E),m(!1),o([]),($=f.current)==null||$.focus()};return l.useEffect(()=>()=>clearTimeout(g.current),[]),e.jsxs("div",{className:"relative",children:[e.jsx("textarea",{ref:f,value:t,onChange:C,placeholder:a,rows:1,maxLength:i,className:n+" overflow-hidden",style:{minHeight:r*24+"px"}}),b&&c.length>0&&e.jsx("div",{className:"absolute left-0 right-0 bottom-full mb-1 bg-white rounded-xl shadow-xl border border-gray-100 py-1 z-50 max-h-48 overflow-y-auto",children:c.map(u=>e.jsxs("button",{type:"button",onClick:()=>h(u.username),className:"w-full flex items-center gap-3 px-4 py-2 text-left hover:bg-gray-50 transition-colors",children:[e.jsx("img",{src:u.avatar||`https://ui-avatars.c
24om/api/?name=${encodeURIComponent(u.name)}&background=007ab7&color=fff&size=28`,alt:"",className:"w-7 h-7 rounded-full object-cover"}),e.jsxs("div",{children:[e.jsx("span",{className:"text-sm font-medium text-gray-900",children:u.name}),e.jsxs("span",{className:"text-xs text-gray-400 ml-1",children:["@",u.username]})]})]},u.username))})]})},lt=({text:t,className:s=""})=>{const a=t.split(/(@\w+)/g);return e.jsx("span",{className:s,children:a.map((r,i)=>{if(r.startsWith("@")&&r.length>1){const n=r.slice(1);return e.jsx("a",{href:`/member/${n}`,onClick:c=>{c.preventDefault(),c.stopPropagation(),I(`/member/${n}`)},className:"text-[#007ab7] font-medium hover:underline",children:r},i)}return e.jsx("span",{children:r},i)})})};function Ar(t){const s=t.match(/(https?:\/\/[^\s]+)/);return s?s[1]:null}async function Rr(t){try{const s=await fetch("/api/v1/link-preview",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({url:t})});if(!s.ok)return null;const a=await s.json();return a.type?a:null}catch{return null}}const Lr=({data:t,compact:s=!1})=>{var i;if(!t.type)return null;const a=n=>{var c;(c=t.url)!=null&&c.startsWith("/")&&(n.preventDefault(),I(t.url))},r=((i=t.url)!=null&&i.startsWith("/"),t.url);return s?e.jsxs("a",{href:r,onClick:a,className:"flex gap-3 bg-gray-50 rounded-xl border border-gray-200 p-3 hover:border-[#007ab7]/30 hover:bg-gray-50/80 transition-all group mt-2 max-w-full overflow-hidden",children:[t.image&&e.jsx("img",{src:t.image,alt:"",loading:"lazy",decoding:"async",className:"w-14 h-14 rounded-lg object-cover flex-shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0 overflow-hidden",children:[e.jsx("p",{className:"text-[10px] text-[#007ab7] font-medium",children:t.site_name||"Link"}),e.jsx("p",{className:"text-sm font-semibold text-gray-900 truncate group-hover:text-[#007ab7] transition-colors",children:t.title}),t.description&&e.jsx("p",{className:"text-xs text-gray-500 mt-0.5 truncate",children:t.description})]})]}):e.jsxs("a",{href:r,onClick:a,className:"flex bg-gray-50 rounded-xl border border-gray-200 overflow-hidden hover:border-[#007ab7]/30 hover:shadow-sm transition-all group mt-3 max-w-full",children:[t.image&&e.jsx("div",{className:"w-36 flex-shrink-0 overflow-hidden",children:e.jsx("img",{src:t.image,alt:"",loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover:scale-[1.03] transition-transform duration-300"})}),e.jsxs("div",{className:"p-3 flex-1 min-w-0 overflow-hidden",children:[e.jsx("p",{className:"text-[10px] text-[#007ab7] font-semibold uppercase tracking-wide",children:t.site_name||"Link"}),e.jsx("h4",{className:"text-sm font-bold text-gray-900 mt-0.5 group-hover:text-[#007ab7] transition-colors line-clamp-2",children:t.title}),t.description&&e.jsx("p",{className:"text-xs text-gray-500 mt-1 line-clamp-2",children:t.description}),e.jsxs("div",{className:"flex items-center gap-3 mt-1.5 text-[10px] text-gray-400",children:[t.author&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ve,{size:10}),t.author]}),t.reading_time&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(pe,{size:10}),t.reading_time," min"]})]})]})]})};function Dr(t){const[s,a]=l.useState(null),[r,i]=l.useState(!1),[n,c]=l.useState(null);return l.useEffect(()=>{const o=Ar(t);if(!o){a(null),c(null);return}if(o===n)return;const b=setTimeout(async()=>{c(o),i(!0);const m=await Rr(o);a(m),i(!1)},500);return()=>clearTimeout(b)},[t]),{preview:s,loading:r}}const Ir=({post:t,onRemove:s})=>{var R,Z,oe,he,Se,ze,Ie,ye,_e,v;const{user:a,isAuthenticated:r}=be(),[i,n]=l.useState(!1),[c,o]=l.useState(0),[b,m]=l.useState(!1),[x,j]=l.useState([]),[P,d]=l.useState(!1),[f,g]=l.useState(""),[k,C]=l.useState(!1),[h,u]=l.useState(t.comments_count||0),[w,S]=l.useState(!1),[N,E]=l.useState(t.likes_count||0),[$,M]=l.useState(!1),[F,z]=l.useState(!1),[H,X]=l.useState(!1),[re,Q]=l.useState(!1),ee=l.useRef(null),{preview:p}=Dr(t.content||""),T=(a==null?void 0:a.username)===((R=t.author)==null?void 0:R.username);l.useEffect(()=>{const y=B=>{ee.current&&!ee.current.contains(B.target)&&z(!1)};return F&&document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[F]);const O=(y,B)=>
24B||`https://ui-avatars.com/api/?name=${encodeURIComponent(y||"U")}&background=007ab7&color=fff&size=40`,_=async()=>{if(b){m(!1);return}if(m(!0),x.length===0){d(!0);try{const B=await(await fetch(`/api/v1/community/posts/${t.slug}`,{headers:{Accept:"application/json"}})).json();j(B.comments||[])}catch{}d(!1)}},U=async()=>{if(!(!f.trim()||k||!r)){C(!0);try{const y=await Na(t.id,f.trim());j(B=>[y.comment,...B]),g(""),u(B=>B+1)}catch{}C(!1)}},q=async()=>{if(!r){I("/login");return}if(!$){M(!0);try{const y=await wa(t.id);S(y.liked),E(y.likes_count)}catch{}M(!1)}},W=async()=>{if(confirm("Are you sure you want to delete this post?")){z(!1);try{await ka(t.id),Q(!0),s==null||s(t.id)}catch{}}},G=()=>{const y=`${window.location.origin}/community/post/${t.slug}`;navigator.share?navigator.share({title:t.title||"Post",url:y}).catch(()=>{}):navigator.clipboard.writeText(y),X(!0),setTimeout(()=>X(!1),2e3)};return re?null:e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"bg-white rounded-2xl border border-gray-100 overflow-hidden hover:shadow-md transition-shadow",children:[e.jsxs("div",{className:"flex items-center gap-3 px-4 pt-4",children:[e.jsx("a",{href:`/member/${(Z=t.author)==null?void 0:Z.username}`,onClick:y=>{var B;y.preventDefault(),I(`/member/${(B=t.author)==null?void 0:B.username}`)},children:e.jsx("img",{src:O((oe=t.author)==null?void 0:oe.name,(he=t.author)==null?void 0:he.avatar),alt:"",className:"w-10 h-10 rounded-full object-cover hover:ring-2 hover:ring-[#007ab7]/20 transition-all"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("a",{href:`/member/${(Se=t.author)==null?void 0:Se.username}`,onClick:y=>{var B;y.preventDefault(),I(`/member/${(B=t.author)==null?void 0:B.username}`)},className:"font-semibold text-sm text-gray-900 hover:text-[#007ab7] transition-colors",children:(ze=t.author)==null?void 0:ze.name}),e.jsxs("p",{className:"text-xs text-gray-400",children:["@",(Ie=t.author)==null?void 0:Ie.username," · ",t.time_ago]})]}),e.jsxs("div",{ref:ee,className:"relative",children:[e.jsx("button",{onClick:()=>z(!F),className:"p-1.5 text-gray-300 hover:text-gray-500 rounded-full hover:bg-gray-50 transition-colors",children:e.jsx(Ws,{size:18})}),F&&e.jsxs("div",{className:"absolute right-0 top-full mt-1 w-44 bg-white rounded-xl shadow-xl border border-gray-100 py-1 z-30",children:[e.jsxs("button",{onClick:G,className:"w-full flex items-center gap-2.5 px-4 py-2 text-sm text-gray-600 hover:bg-gray-50",children:[e.jsx(es,{size:14})," Copy link"]}),T&&e.jsxs("button",{onClick:W,className:"w-full flex items-center gap-2.5 px-4 py-2 text-sm text-red-500 hover:bg-red-50",children:[e.jsx(Us,{size:14})," Delete post"]}),!T&&e.jsxs("button",{className:"w-full flex items-center gap-2.5 px-4 py-2 text-sm text-gray-600 hover:bg-gray-50",children:[e.jsx(Vs,{size:14})," Report"]})]})]})]}),e.jsxs("div",{className:"px-4 py-3",children:[t.title&&e.jsx("h3",{className:"font-bold text-gray-900 mb-1.5 text-[15px]",children:t.title}),e.jsx("div",{className:"text-sm text-gray-700 leading-relaxed whitespace-pre-wrap",children:e.jsx(lt,{text:((ye=t.content)==null?void 0:ye.slice(0,400))+(((_e=t.content)==null?void 0:_e.length)>400?"...":"")})}),((v=t.content)==null?void 0:v.length)>400&&e.jsx("a",{href:`/community/post/${t.slug}`,onClick:y=>{y.preventDefault(),I(`/community/post/${t.slug}`)},className:"text-sm text-[#007ab7] font-medium mt-1 inline-block hover:underline",children:"Read more"})]}),p&&!t.image&&e.jsx("div",{className:"px-4 pb-1",children:e.jsx(Lr,{data:p})}),(()=>{var B;const y=((B=t.images)==null?void 0:B.length)>0?t.images:t.image?[t.image]:[];return y.length===0?null:y.length===1?e.jsx("div",{className:"px-4 pb-3",children:e.jsx("button",{onClick:()=>{o(0),n(!0)},className:"block overflow-hidden rounded-xl border border-gray-100 hover:border-gray-200 transition-colors",children:e.jsx("img",{src:y[0],alt:"",className:"w-48 h-48 object-cover hover:scale-[1.03] transition-transform duration-300"})})}):e.jsx("div",{className:"px-4 pb-3",children:e.jsx("div",{className:`grid gap-1.5 rounded-xl overflow-hidden border border-gray-100 ${y.length===2||y.length===3,"grid-cols-2"}`,children:y.slice(0,4).map((ce,me)=>e.jsxs("button",{onClick:()=>{o(me),n(!0)},className:`relative overflow-hidden bg-gray-100 ${y.length===3&&me===0?"row-span-2":""}`,children:[e.jsx("img",{src:ce,alt:"",className:`w-full object-cover hover:scale-105 transition-transform duration-300 ${y.length===2?"h-40":y.length===3&&me===0?"h-full min-h-[200px]":"h-28"}`}),me===3&&y.length>4&&e.jsx("div",{className:"absolute inset-0 bg-black/50 flex items-center justify-center",children:e.jsxs("span",{className:"text-white text-xl font-bold",children:["+",y.length-4]})})]},me))})})})(),e.jsxs("div",{className:"flex items-center border-t border-gray-50 px-2",children:[e.jsxs("button",{onClick:q,disabled:$,className:`flex-1 flex items-center justify-center gap-2 py-2.5 text-sm rounded-lg transition-all ${w?"text-red-500":"text-gray-400 hover:text-red-500 hover:bg-red-50/50"}`,children:[e.jsx(Ys,{size:16,className:w?"fill-current":""}),e.jsx("span",{children:N||""})]}),e.jsxs("button",{onClick:_,className:`flex-1 flex items-center justify-center gap-2 py-2.5 text-sm rounded-lg transition-colors ${b?"text-[#007ab7] bg-[#007ab7]/5":"text-gray-400 hover:text-[#007ab7] hover:bg-[#007ab7]/5"}`,children:[e.jsx(ue,{size:16}),e.jsx("span",{children:h||""}),b?e.jsx(Gs,{size:14}):e.jsx(Ze,{size:14})]}),e.jsx("button",{onClick:G,className:`flex-1 flex items-center justify-center gap-2 py-2.5 text-sm rounded-lg transition-colors ${H?"text-green-500 bg-green-50/50":"text-gray-400 hover:text-green-500 hover:bg-green-50/50"}`,children:H?e.jsxs(e.Fragment,{children:[e.jsx(je,{size:16})," ",e.jsx("span",{className:"text-xs",children:"Copied!"})]}):e.jsx(Ks,{size:16})})]}),b&&e.jsxs("div",{className:"border-t border-gray-100 bg-gray-50/50",children:[r&&a?e.jsxs("div",{className:"flex gap-2.5 p-4 border-b border-gray-100",children:[e.jsx("img",{src:O(a.name,a.avatar),alt:"",className:"w-8 h-8 rounded-full object-cover flex-shrink-0"}),e.jsxs("div",{className:"flex-1 flex gap-2",children:[e.jsx("input",{type:"text",value:f,onChange:y=>g(y.target.value),onKeyDown:y=>{y.key==="Enter"&&!y.shiftKey&&(y.preventDefault(),U())},placeholder:"Write a comment...",className:"flex-1 bg-white border border-gray-200 rounded-full px-4 py-2 text-sm focus:outline-none focus:border-[#007ab7] transition-colors"}),e.jsx("button",{onClick:U,disabled:!f.trim()||k,className:"w-9 h-9 flex items-center justify-center rounded-full bg-[#007ab7] text-white hover:bg-[#005f8d] disabled:opacity-40 transition-colors flex-shrink-0",children:k?e.jsx("span",{className:"w-3.5 h-3.5 border-2 border-white/30 border-t-white rounded-full animate-spin"}):e.jsx(as,{size:14})})]})]}):e.jsxs("div",{className:"p-4 border-b border-gray-100 text-center text-sm text-gray-500",children:[e.jsx("a",{href:"/login",onClick:y=>{y.preventDefault(),I("/login")},className:"text-[#007ab7] font-medium hover:underline",children:"Sign in"})," to comment"]}),e.jsx("div",{className:"max-h-80 overflow-y-auto",children:P?e.jsx("div",{className:"p-4 text-center text-sm text-gray-400",children:"Loading comments..."}):x.length===0?e.jsx("div",{className:"p-4 text-center text-sm text-gray-400",children:"No comments yet. Be the first!"}):e.jsx("div",{className:"divide-y divide-gray-100",children:x.map(y=>{var B,ce,me,wt,Nt,Pt;return e.jsx("div",{className:"px-4 py-3",children:e.jsxs("div",{className:"flex gap-2.5",children:[e.jsx("a",{href:`/member/${(B=y.author)==null?void 0:B.username}`,onClick:de=>{var ge;de.preventDefault(),I(`/member/${(ge=y.author)==null?void 0:ge.username}`)},children:e.jsx("img",{src:O((ce=y.author)==null?void 0:ce.name,(me=y.author)==null?void 0:me.avatar),alt:"",className:"w-7 h-7 rounded-full object-cover flex-shrink-0"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"bg-white rounded-xl px-3 py-2 border border-gray-100",children:[e.jsx("a",{href:`/member/${(wt=y.author)==null?void 0:wt.username}`,onClick:de=>{var ge;de.preventDefault(),I(`/member/${(ge=y.author)==null?void 0:ge.username}`)},className:"text-xs font-semibold text-gray-900 hover:text-[#007ab7]",children:(Nt=y.author)==null?void 0:Nt.name}),e.jsx("p",{className:"text-sm text-gray-700 mt-0.5",children:e.jsx(lt,{text:y.content})})]}),e.jsx("p",{className:"text-[10px] text-gray-400 mt-1 ml-3",children:y.time_ago}),((Pt=y.replies)==null?void 0:Pt.length)>0&&e.jsx("div",{className:"mt-2 ml-4 space-y-2",children:y.replies.map(de=>{var ge,St,zt;return e.jsxs("div",{className:"flex gap-2",children:[e.jsx("img",{src:O((ge=de.author)==null?void 0:ge.name,(St=de.author)==null?void 0:St.avatar),alt:"",className:"w-6 h-6 rounded-full object-cover flex-shrink-0"}),e.jsxs("div",{children:[e.jsxs("div",{className:"bg-white rounded-lg px-3 py-1.5 border border-gray-100",children:[e.jsx("span",{className:"text-xs font-semibold text-gray-900",children:(zt=de.author)==null?void 0:zt.name}),e.jsx("p",{className:"text-xs text-gray-700 mt-0.5",children:e.jsx(lt,{text:de.content})})]}),e.jsx("p",{className:"text-[10px] text-gray-400 mt-0.5 ml-3",children:de.time_ago})]})]},de.id)})})]})]})},y.id)})})})]})]}),i&&(()=>{var B;const y=((B=t.images)==null?void 0:B.length)>0?t.images:t.image?[t.image]:[];return y.length===0?null:e.jsxs("div",{className:"fixed inset-0 z-[200] bg-black/90 flex items-center justify-center p-4",onClick:()=>n(!1),children:[e.jsx("button",{className:"absolute top-4 right-4 text-white/70 hover:text-white p-2 z-10",children:e.jsx(le,{size:24})}),y.length>1&&e.jsxs("div",{className:"absolute top-5 left-1/2 -translate-x-1/2 bg-black/60 text-white text-sm px-4 py-1.5 rounded-full font-medium z-10",children:[c+1," / ",y.length]}),y.length>1&&c>0&&e.jsx("button",{onClick:ce=>{ce.stopPropagation(),o(c-1)},className:"absolute left-4 top-1/2 -translate-y-1/2 w-10 h-10 bg-white/10 hover:bg-white/20 rounded-full flex items-center justify-center text-white z-10",children:e.jsx(pt,{size:20})}),y.length>1&&c<y.length-1&&e.jsx("button",{onClick:ce=>{ce.stopPropagation(),o(c+1)},className:"absolute right-4 top-1/2 -translate-y-1/2 w-10 h-10 bg-white/10 hover:bg-white/20 rounded-full flex items-center justify-center text-white z-10",children:e.jsx(Y,{size:20})}),e.jsx("img",{src:y[c],alt:"",className:"max-w-full max-h-[90vh] object-contain rounded-lg",onClick:ce=>ce.stopPropagation()})]})})()]})},$r=()=>{const[t,s]=l.useState([]),[a,r]=l.useState(!0);return l.useEffect(()=>{fetch("/api/v1/community/posts?per_page=3",{headers:{Accept:"application/json"}}).then(i=>i.json()).then(i=>s((i.data||[]).slice(0,3))).catch(()=>{}).finally(()=>r(!1))},[]),a||t.length===0?null:e.jsx("section",{className:"py-12 sm:py-16 bg-gray-50/50",children:e.jsxs("div",{className:"max-w-[1440px] mx-auto px-4 sm:px-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(gt,{size:18,className:"text-[#007ab7]"}),e.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-[#007ab7]",children:"Community"})]}),e.jsx("h2",{className:"text-2xl sm:text-3xl font-montserrat font-bold text-gray-900",children:"What People Are Saying"}),e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Join the discussion â share your thoughts on the latest in robotics & AI"})]}),e.jsxs(A,{to:"/community",className:"hidden sm:flex items-center gap-2 text-sm text-[#007ab7] font-semibold hover:underline",children:["View all ",e.jsx(te,{size:16})]})]}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-5",children:t.map(i=>e.jsx(Ir,{post:i},i.id))}),e.jsx("div",{className:"mt-6 text-center sm:hidden",children:e.jsxs(A,{to:"/community",className:"inline-flex items-center gap-2 text-sm text-[#007ab7] font-semibold hover:underline",children:["View all posts ",e.jsx(te,{size:16})]})})]})})};let qe=null;function Or(t=!0){const[s,a]=l.useState(qe),[r,i]=l.useState(t&&!qe),[n,c]=l.useState(null);return l.useEffect(()=>{!t||qe||la().then(o=>{qe=o,a(o),i(!1)}).catch(o=>{c(o.message),i(!1)})},[t]),{data:s,loading:r,error:n}}const Mr=({route:t})=>{const{active:s,clear:a}=cs();if(!s||t.page==="article"&&t.slug===s.slug)return null;const i=()=>{typeof window<"u"&&"speechSynthesis"in window&&window.speechSynthesis.cancel(),a()};return e.jsxs("div",{className:"fixed bottom-5 right-5 z-[60] flex items-center gap-2 max-w-[92vw]",children:[e.jsxs("button",{onClick:()=>I(`/article/${s.slug}`),className:"flex items-center gap-2.5 bg-[#007ab7] text-white rounded-full pl-3 pr-4 py-2.5 shadow-lg shadow-black/20 hover:bg-[#005f8d] transition-colors",title:"Return to the article being read",children:[e.jsxs("span",{className:"relative flex-shrink-0 w-7 h-7 rounded-full bg-white/15 flex items-center justify-center",children:[e.jsx(ts,{size:15}),e.jsx("span",{className:"absolute -top-0.5 -right-0.5 w-2.5 h-2.5 bg-cyan-300 rounded-full animate-pulse"})]}),e.jsxs("span",{className:"text-left min-w-0",children:[e.jsx("span",{className:"block text-[10px] font-bold uppercase tracking-wider opacity-80 leading-none",children:"Now reading"}),e.jsx("span",{className:"block text-xs font-semibold truncate max-w-[180px] leading-tight mt-0.5",children:s.title})]})]}),e.jsx("button",{onClick:i,"aria-label":"Stop reading",className:"flex-shrink-0 w-9 h-9 rounded-full bg-white border border-gray-200 text-gray-500 flex items-center justify-center shadow-md hover:text-red-600 hover:border-red-200 transition-colors",children:e.jsx(le,{size:15})})]})};let We=null;function ms(){var t,s;return typeof window>"u"||(s=(t=window.google)==null?void 0:t.accounts)!=null&&s.id?Promise.resolve():We||(We=new Promise((a,r)=>{const i=document.createElement("script");i.src="https://accounts.google.com/gsi/client",i.async=!0,i.defer=!0,i.onload=()=>a(),i.onerror=()=>r(new Error("gsi-load-failed")),document.head.appendChild(i)}),We)}const Ii=({clientId:t,onSuccess:s,text:a="continue_with"})=>{const r=l.useRef(null),{loginWithGoogle:i}=be(),[n,c]=l.useState(null);return l.useEffect(()=>{if(!t)return;let o=!1;return ms().then(()=>
24{if(o||!r.current)return;const b=window.google;b.accounts.id.initialize({client_id:t,callback:async m=>{try{await i(m.credential),s==null||s()}catch(x){c((x==null?void 0:x.message)||"Google sign-in failed.")}}}),r.current.innerHTML="",b.accounts.id.renderButton(r.current,{theme:"outline",size:"large",text:a,shape:"pill",width:320,logo_alignment:"center"})}).catch(()=>c("Could not load Google sign-in.")),()=>{o=!0}},[t]),t?e.jsxs("div",{children:[e.jsx("div",{ref:r,className:"flex justify-center min-h-[44px]"}),n&&e.jsx("p",{className:"text-xs text-red-600 mt-2 text-center",children:n})]}):null},Br=({clientId:t})=>{const{isAuthenticated:s,loading:a,loginWithGoogle:r}=be();return l.useEffect(()=>{if(!t||a||s)return;let i=!1;return ms().then(()=>{if(i)return;const n=window.google;n.accounts.id.initialize({client_id:t,callback:async c=>{try{await r(c.credential)}catch{}},cancel_on_tap_outside:!1,auto_select:!1}),n.accounts.id.prompt()}).catch(()=>{}),()=>{i=!0}},[t,s,a]),null},Fr=({path:t})=>{const[s,a]=l.useState(null);return l.useEffect(()=>{let r=!0;return a(null),fetch(`/api/v1/admin/edit-link?path=${encodeURIComponent(t)}`,{credentials:"include",headers:{Accept:"application/json"}}).then(i=>i.ok?i.json():null).then(i=>{r&&i&&i.is_admin&&i.edit_url&&a({edit_url:i.edit_url,label:i.label||"Edit page"})}).catch(()=>{}),()=>{r=!1}},[t]),s?e.jsxs("a",{href:s.edit_url,target:"_blank",rel:"noopener noreferrer",title:s.label,className:"group fixed left-0 top-1/2 -translate-y-1/2 z-[9990] flex items-center gap-2 bg-[#007ab7] text-white shadow-lg rounded-r-xl pl-2.5 pr-3 py-3 hover:bg-[#005f8d] hover:pl-3 transition-all no-underline",style:{writingMode:"horizontal-tb"},children:[e.jsx(Js,{size:16,className:"flex-shrink-0"}),e.jsx("span",{className:"text-xs font-bold max-w-0 overflow-hidden whitespace-nowrap group-hover:max-w-[140px] transition-all duration-300",children:s.label})]}):null},Hr=/Failed to fetch dynamically imported module|Importing a module script failed|ChunkLoadError|error loading dynamically imported module/i;function Ut(){return`chunk-reload-${window.location.pathname}`}function qr(t){const s=t instanceof Error?t.message:String(t);return Hr.test(s)}class Vt extends Qe.Component{constructor(s){super(s),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){this.clearReloadFlagSoon()}componentWillUnmount(){this.clearFlagTimer&&clearTimeout(this.clearFlagTimer)}componentDidCatch(s){if(this.clearFlagTimer&&clearTimeout(this.clearFlagTimer),!!qr(s))try{const a=Ut();sessionStorage.getItem(a)||(sessionStorage.setItem(a,"1"),window.location.reload())}catch{}}clearReloadFlagSoon(){try{const s=Ut();this.clearFlagTimer=setTimeout(()=>{sessionStorage.removeItem(s)},15e3)}catch{}}render(){return this.state.hasError?e.jsx("main",{className:"min-h-[60vh] bg-white flex items-center justify-center px-6",children:e.jsxs("div",{className:"text-center max-w-md",children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-3",children:"Sayfa yuklenemedi"}),e.jsx("p",{className:"text-gray-500 mb-6",children:"Lutfen sayfayi yenileyin."}),e.jsx("button",{type:"button",onClick:()=>window.location.reload(),className:"inline-flex items-center justify-center rounded-md bg-[#007ab7] px-5 py-3 text-sm font-bold text-white hover:bg-[#005f8f] transition-colors",children:"Yenile"})]})}):this.props.children}}const Wr=(()=>{if(typeof window>"u")return!1;const{pathname:t,search:s,hash:a}=window.location;return t!=="/tr"&&!t.startsWith("/tr/")?!1:(window.location.replace(`${t.slice(3)||"/"}${s}${a}`),!0)})();function D(t,s){return l.lazy(async()=>({default:(await t())[s]}))}const Ur=D(()=>L(()=>import("./RoboticsNewsPage-CNozkMdE.js"),__vite__mapDeps([0,1,2])),"RoboticsNewsPage"),Vr=D(()=>L(()=>import("./ThisWeekPage-BQ7LzQwO.js"),__vite__mapDeps([3,1,2])),"ThisWeekPage"),Yr=D(()=>L(()=>import("./TodayPage-DxNwa4oT.js"),__vite__mapDeps([4,1,2])),"TodayPage"),Gr=D(()=>L(()=>import("./TagPage-B5D6Je9U.js"),__vite__mapDeps([5,1,2])),"TagPage"),Kr=D(()=>L(()=>import("./AuthorPage-CteZAGO3.js"),__vite__mapDeps([6,1,2])),"AuthorPage"),Jr=D(()=>L(()=>import("./CompaniesIndexPage-BhGc9OZI.js"),__vite__mapDeps([7,1,2])),"CompaniesIndexPage"),Xr=D(()=>L(()=>import("./CompanySectorPage-oPSqyqUj.js"),__vite__mapDeps([8,1,2])),"CompanySectorPage"),Qr=D(()=>L(()=>import("./SectorMarketPage-lY3Y-iwn.js"),__vite__mapDeps([9,1,2])),"SectorMarketPage"),Zr=D(()=>L(()=>import("./SectorTypePage-CgEo1Rcr.js"),__vite__mapDeps([10,1,2])),"SectorTypePage"),en=D(()=>L(()=>import("./SectorManufacturerPage-saLYfiAh.js"),__vite__mapDeps([11,1,2])),"SectorManufacturerPage"),tn=D(()=>L(()=>import("./SectorProductPage-QU6qNowV.js"),__vite__mapDeps([12,1,2])),"SectorProductPage"),sn=D(()=>L(()=>import("./CompanyPortalRegister-BUwgWXNl.js"),__vite__mapDeps([13,1,2])),"CompanyPortalRegister"),an=D(()=>L(()=>import("./CompanyPortalEdit-Co3xSfOz.js"),__vite__mapDeps([14,1,2])),"CompanyPortalEdit"),rn=D(()=>L(()=>
24import("./EventsPage-ClA9VK5B.js"),__vite__mapDeps([15,1,16,2])),"EventsPage"),nn=D(()=>L(()=>import("./EventDetailPage-C1IvzuFo.js"),__vite__mapDeps([17,1,2])),"EventDetailPage"),ln=D(()=>L(()=>import("./EventTypePage-Bm1Dud90.js"),__vite__mapDeps([18,1,16,2])),"EventLandingPage"),on=D(()=>L(()=>import("./StartupsPage-C7qh6VG_.js"),__vite__mapDeps([19,1,2])),"StartupsPage"),cn=D(()=>L(()=>import("./WorldCupPage-CjxJAK2h.js"),__vite__mapDeps([20,1,2])),"WorldCupPage"),dn=D(()=>L(()=>import("./ApiDocs-BsXp2Ade.js"),__vite__mapDeps([21,1,2])),"ApiDocs"),un=D(()=>L(()=>import("./Advertise-DaYvDlPt.js"),__vite__mapDeps([22,1,2])),"Advertise"),mn=D(()=>L(()=>import("./DigitalPage-BK7ROk4R.js"),__vite__mapDeps([23,1,24,2])),"DigitalPage"),gn=D(()=>L(()=>import("./DigitalServicePage-Bbe28KK-.js"),__vite__mapDeps([25,1,24,2])),"DigitalServicePage"),pn=D(()=>L(()=>import("./EventPartnership-jd4GCLky.js"),__vite__mapDeps([26,1,2])),"EventPartnership"),hn=D(()=>L(()=>import("./SocialLinks-oguK23Iq.js"),__vite__mapDeps([27,1,2])),"SocialLinks"),xn=D(()=>L(()=>import("./StocksPage-HT1TXcvO.js"),__vite__mapDeps([28,1,2])),"StocksPage"),fn=D(()=>L(()=>import("./StockDetail-Co8w9wLa.js"),__vite__mapDeps([29,1,2])),"StockDetail"),bn=D(()=>L(()=>import("./CompanyProfilePage-DSvlpGvV.js"),__vite__mapDeps([30,1,31,2])),"CompanyProfilePage"),yn=D(()=>L(()=>
24import("./EngineerDetailPage-Dntieeyb.js"),__vite__mapDeps([32,1,2])),"EngineerDetailPage"),vn=D(()=>L(()=>import("./LegalPages-Dsmm8gxG.js"),__vite__mapDeps([33,1,2])),"PrivacyPage"),jn=D(()=>L(()=>import("./LegalPages-Dsmm8gxG.js"),__vite__mapDeps([33,1,2])),"TermsPage"),kn=D(()=>L(()=>import("./LegalPages-Dsmm8gxG.js"),__vite__mapDeps([33,1,2])),"CookiesPage"),wn=D(()=>L(()=>import("./LegalPages-Dsmm8gxG.js"),__vite__mapDeps([33,1,2])),"AboutPage"),Nn=D(()=>L(()=>import("./LegalPages-Dsmm8gxG.js"),__vite__mapDeps([33,1,2])),"EditorialGuidelinesPage"),Pn=D(()=>L(()=>import("./LegalPages-Dsmm8gxG.js"),__vite__mapDeps([33,1,2])),"CorrectionsPage"),Sn=D(()=>L(()=>import("./LoginPage-C5ghMYqS.js"),__vite__mapDeps([34,1,2])),"LoginPage"),zn=D(()=>L(()=>import("./RegisterPage-D3GIqFoS.js"),__vite__mapDeps([35,1,2])),"RegisterPage"),_n=D(()=>L(()=>import("./DashboardPage-CJ9pLOTD.js"),__vite__mapDeps([36,1,2])),"DashboardPage"),En=D(()=>L(()=>import("./ProfilePage--5-N1paA.js"),__vite__mapDeps([37,1,2])),"ProfilePage"),Cn=D(()=>L(()=>import("./EditProfilePage-BLAR50Wp.js"),__vite__mapDeps([38,1,2])),"EditProfilePage"),Tn=D(()=>L(()=>import("./CommunityFeedPage-6isZh6c7.js"),__vite__mapDeps([39,1,2])),"CommunityFeedPage"),An=D(()=>L(()=>import("./CreatePostPage-Jj6MOg6Y.js"),__vite__mapDeps([40,1,2])),"CreatePostPage"),Rn=D(()=>L(()=>import("./UserPostDetailPage-BdrxCJXB.js"),__vite__mapDeps([41,1,2])),"UserPostDetailPage"),Ln=D(()=>L(()=>import("./CreateSurveyPage-aATZdFs5.js"),__vite__mapDeps([42,1,2])),"CreateSurveyPage"),Dn=D(()=>L(()=>import("./UserSurveyDetailPage-DIr8-RqI.js"),__vite__mapDeps([43,1,2])),"UserSurveyDetailPage"),In=D(()=>L(()=>import("./ContactPage-yjxMKPTT.js"),__vite__mapDeps([44,1,2])),"ContactPage"),$n=D(()=>L(()=>import("./CompanyProductPage-BCFyD-07.js"),__vite__mapDeps([45,1,2])),"CompanyProductPage"),On=D(()=>L(()=>import("./ProductCategoryPage-CC8mgfnR.js"),__vite__mapDeps([46,1,2])),"ProductCategoryPage"),Mn=D(()=>L(()=>import("./SectorNewsPage-COOU75uk.js"),__vite__mapDeps([47,1,2])),"SectorNewsPage"),Bn=D(()=>L(()=>import("./SitemapPage-Dn_CCRmb.js"),__vite__mapDeps([48,1,2])),"SitemapPage"),Fn=D(()=>L(()=>import("./TagsIndexPage-Bw8D7Ijk.js"),__vite__mapDeps([49,1,2])),"TagsIndexPage"),Hn=D(()=>L(()=>import("./SearchResultsPage-BAT9tsc9.js"),__vite__mapDeps([50,1,2])),"SearchResultsPage"),qn=D(()=>L(()=>import("./CompanySubPage-DxRvlmJv.js"),__vite__mapDeps([51,1,31,2])),"CompanySubPage"),Wn=D(()=>L(()=>import("./RobotPricesPage-BKJ87Czo.js"),__vite__mapDeps([52,1,2])),"RobotPricesPage"),Un=D(()=>L(()=>import("./NewsletterPage-DXwzVfen.js"),__vite__mapDeps([53,1,2])),"NewsletterPage");function Vn(t){if(t.length>1&&t.endsWith("/")&&(t=t.replace(/\/+$/,"")||"/"),t==="/search")return{page:"search"};if(t==="/newsletter")return{page:"newsletter"};if(t==="/robot-prices")return{page:"robot-prices"};if(t.startsWith("/robot-prices/"))return{page:"robot-prices",slug:t.replace("/robot-prices/","")};if(t==="/api/docs")return{page:"api-docs"};
24if(t==="/advertise")return{page:"advertise"};if(t==="/digital"||t==="/services")return{page:"digital",locale:"en"};if(t==="/dijital")return{page:"digital",locale:"tr"};if(t.startsWith("/digital/"))return{page:"digital-service",locale:"en",slug:t.replace("/digital/","")};if(t.startsWith("/dijital/"))return{page:"digital-service",locale:"tr",slug:t.replace("/dijital/","")};if(t==="/event-partnership")return{page:"event-partnership"};if(t==="/follow"||t==="/social")return{page:"social"};if(t==="/events")return{page:"events"};if(t.startsWith("/events/")){const n=t.replace("/events/","");return Cr(n)?{page:"events-landing",slug:n}:{page:"event-detail",slug:n}}if(t==="/startups")return{page:"startups"};if(t==="/robotics-news/today")return{page:"today"};if(t==="/robotics-news/this-week")return{page:"this-week"};if(t==="/robotics-news")return{page:"robotics-news"};if(t==="/world-cup-2026"||t==="/world-cup")return{page:"world-cup"};if(t==="/companies")return{page:"companies-index"};if(t.startsWith("/companies/")){const n=t.replace("/companies/","").split("/").filter(Boolean);if(n.length===5&&n[1]==="market")return{page:"sector-product",slug:n[0],type:n[2],company:n[3],product:n[4]};if(n.length===4&&n[1]==="market")return{page:"sector-manufacturer",slug:n[0],type:n[2],company:n[3]};if(n.length===3&&n[1]==="market")return{page:"sector-market-type",slug:n[0],type:n[2]};if(n.length===2&&n[1]==="market")return{page:"sector-market",slug:n[0]};if(n.length===2&&n[1]==="news")return{page:"sector-news",slug:n[0]};if(n.length>=2)return{page:"company-sector",slug:n[0],country:n[1]};if(n.length===1)return{page:"company-sector",slug:n[0]}}if(t==="/company-portal/register")return{page:"company-portal-register"};if(t==="/company-portal")return{page:"company-portal"};if(t==="/stocks")return{page:"stocks"};if(t.startsWith("/stocks/"))return{page:"stock-detail",slug:t.replace("/stocks/","")};if(t.startsWith("/article/"))return{page:"article",slug:t.replace("/article/","")};const s=t.match(/^\/category\/([^/]+)\/today$/);if(s)return{page:"today",slug:s[1]};const a=t.match(/^\/category\/([^/]+)\/this-week$/);if(a)return{page:"this-week",slug:a[1]};if(t.startsWith("/category/"))return{page:"category",slug:t.replace("/category/","")};if(t.startsWith("/tag/"))return{page:"tag",slug:t.replace("/tag/","")};if(t.startsWith("/author/"))return{page:"author",slug:t.replace("/author/","")};if(t==="/login")return{page:"login"};if(t==="/register")return{page:"register"};if(t==="/dashboard")return{page:"dashboard"};if(t==="/profile/edit")return{page:"edit-profile"};if(t==="/community")return{page:"community"};if(t==="/community/new-post")return{page:"create-post"};if(t==="/community/new-survey")return{page:"create-survey"};if(t.startsWith("/community/post/"))return{page:"user-post",slug:t.replace("/community/post/","")};if(t.startsWith("/community/survey/"))return{page:"user-survey",slug:t.replace("/community/survey/","")};if(t.startsWith("/member/"))return{page:"member-profile",slug:t.replace("/member/","")};const r=t.match(/^\/company\/([^/]+)\/product\/([^/]+)$/);if(r)return{page:"company-product",slug:r[1],product:r[2]};const i=t.match(/^\/company\/([^/]+)\/(news|robots|funding)$/);return i?{page:"company-sub",slug:i[1],type:i[2]}:t.startsWith("/products/")?{page:"product-category",slug:t.replace("/products/","")}:t.startsWith("/company/")?{page:"company-profile",slug:t.replace("/company/","")}:t.startsWith("/engineer/")?{page:"engineer-detail",slug:t.replace("/engineer/","")}:t==="/contact"?{page:"contact"}:t==="/sitemap"?{page:"sitemap"}:t==="/tags"?{page:"tags"}:t==="/privacy"?{page:"privacy"}:t==="/terms"?{page:"terms"}:t==="/cookies"?{page:"cookies"}:t==="/about"?{page:"about"}:t==="/editorial-guidelines"?{page:"editorial-guidelines"}:t==="/corrections"?{page:"corrections"}:{page:"home"}}function Yt(){return Vn(tt(window.location.pathname).path)}function I(t,s){t=ht(t);const a=t.match(/^(?:\/tr)?\/article\/(.+)$/);if(a)try{fetch("/api/v1/track/click",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({slug:a[1],variant:s==null?void 0:s.variant}),keepalive:!0}
24).catch(()=>{})}catch{}window.history.pushState({},"",t),window.dispatchEvent(new PopStateEvent("popstate"))}function Yn(){var b,m,x,j,P,d;if(Wr)return null;const[t,s]=l.useState(Yt()),[a,r]=l.useState(window.location.hash||"#home"),i=t.page==="digital"||t.page==="digital-service",{data:n,loading:c,error:o}=Or(!i);return l.useEffect(()=>{const f=()=>s(Yt()),g=()=>r(window.location.hash);return window.addEventListener("popstate",f),window.addEventListener("hashchange",g),()=>{window.removeEventListener("popstate",f),window.removeEventListener("hashchange",g)}},[]),l.useEffect(()=>{const f=window.location.hash;if(f&&f.length>1){const g=decodeURIComponent(f.slice(1));let k=0,C;const h=()=>{const u=document.getElementById(g);if(u){u.scrollIntoView({behavior:"smooth",block:"start"});return}k++<25&&(C=setTimeout(h,100))};return C=setTimeout(h,50),()=>clearTimeout(C)}window.scrollTo(0,0)},[t.page,t.slug,t.country,t.type,t.company,t.product]),Qe.useEffect(()=>{var C;if(!((C=n==null?void 0:n.settings)!=null&&C.favicon_url))return;const f=n.settings.favicon_url;let g=document.querySelector('link[rel="icon"]');g?g.href=f:(g=document.createElement("link"),g.rel="icon",g.href=f,document.head.appendChild(g));const k=document.querySelector('link[rel="apple-touch-icon"]');k&&(k.href=f)},[(b=n==null?void 0:n.settings)==null?void 0:b.favicon_url]),jt(t.page==="home"&&n?{siteTitle:n.settings.seo.meta_title,description:n.settings.seo.meta_description,ogType:"website",jsonLd:[mr(),gr()]}:{}),i?e.jsx(Vt,{children:e.jsx(l.Suspense,{fallback:e.jsx("div",{className:"min-h-screen bg-[#0B1D26]"}),children:t.page==="digital-service"&&t.slug?e.jsx(gn,{locale:t.locale??"en",slug:t.slug}):e.jsx(mn,{locale:t.locale??"en"})})}):c?e.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-12 h-12 border-4 border-gray-200 border-t-[#007ab7] rounded-full animate-spin mx-auto mb-4"}),e.jsx("p",{className:"text-gray-400 text-sm font-bold uppercase tracking-widest",children:"Loading..."})]})}):o?e.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:e.jsx("p",{className:"text-red-500",children:"Failed to load data. Please try again."})}):n?e.jsx(ra,{children:e.jsx(fr,{children:e.jsxs("div",{className:"min-h-screen bg-white overflow-x-hidden",children:[e.jsx(za,{activeHash:a,menu:n.menu.main,nav:n.nav,settings:n.settings,hotCategory:n.hot_category,megaMenu:n.mega_menu}),e.jsx(Vt,{children:e.jsxs(l.Suspense,{fallback:null,children:[t.page==="home"&&e.jsxs("main",{className:"pt-20 lg:pt-28",children:[((m=n.funding_ticker)==null?void 0:m.length)>0&&e.jsx(nr,{items:n.funding_ticker}),n.hero&&e.jsx(ar,{data:n.hero,linkedinUrl:(x=n.settings.social)==null?void 0:x.linkedin}),e.jsx(La,{data:n.news_feed,sidebarBanner:n.sidebar_banner}),e.jsx(er,{}),e.jsx(Ba,{}),e.jsx(Oa,{articles:n.popular}),e.jsx(Fa,{articles:n.recent}),((j=n.upcoming_events)==null?void 0:j.length)>0&&e.jsx(Ka,{events:n.upcoming_events}),e.jsx(Ha,{articles:n.hospital}),n.videos.length>0&&e.jsx(qa,{videos:n.videos}),n.engineers.length>0&&e.jsx(Wa,{engineers:n.engineers}),((P=n.startup_radar)==null?void 0:P.length)>0&&e.jsx(Za,{startups:n.startup_radar}
24),((d=n.company_sectors)==null?void 0:d.length)>0&&e.jsx(Er,{sectors:n.company_sectors}),n.sponsors.length>0&&e.jsx(Ua,{sponsors:n.sponsors}),e.jsx($r,{}),e.jsx(Tr,{}),e.jsx(tr,{solutions:n.solutions}),e.jsx(sr,{settings:n.settings})]}),t.page==="article"&&t.slug&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Pr,{slug:t.slug})}),t.page==="category"&&t.slug&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(_r,{slug:t.slug})}),t.page==="tag"&&t.slug&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Gr,{slug:t.slug})}),t.page==="author"&&t.slug&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Kr,{slug:t.slug})}),t.page==="robotics-news"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Ur,{})}),t.page==="today"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Yr,{categorySlug:t.slug})}),t.page==="this-week"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Vr,{categorySlug:t.slug})}),t.page==="world-cup"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(cn,{})}),t.page==="company-portal-register"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(sn,{})}),t.page==="company-portal"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(an,{})}),t.page==="companies-index"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Jr,{})}),t.page==="company-sector"&&t.slug&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Xr,{slug:t.slug,countrySlug:t.country})}),t.page==="sector-news"&&t.slug&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Mn,{slug:t.slug})}),t.page==="sector-market"&&t.slug&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Qr,{slug:t.slug})}),t.page==="sector-market-type"&&t.slug&&t.type&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Zr,{slug:t.slug,type:t.type})}),t.page==="sector-manufacturer"&&t.slug&&t.type&&t.company&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(en,{slug:t.slug,type:t.type,company:t.company})}),t.page==="sector-product"&&t.slug&&t.type&&t.company&&t.product&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(tn,{slug:t.slug,type:t.type,company:t.company,product:t.product})}),t.page==="events"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(rn,{})}),t.page==="events-landing"&&t.slug&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(ln,{slug:t.slug})}),t.page==="event-detail"&&t.slug&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(nn,{slug:t.slug})}),t.page==="startups"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(on,{})}),t.page==="advertise"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(un,{})}),t.page==="event-partnership"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(pn,{})}),t.page==="social"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(hn,{settings:n.settings})}),t.page==="stocks"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(xn,{})}),t.page==="stock-detail"&&t.slug&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(fn,{slug:t.slug})}),t.page==="api-docs"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(dn,{})}),t.page==="login"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Sn,{})}),t.page==="register"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(zn,{})}),t.page==="dashboard"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(_n,{})}),t.page==="edit-profile"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Cn,{})}),t.page==="member-profile"&&t.slug&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(En,{username:t.slug})}),t.page==="company-profile"&&t.slug&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(bn,{slug:t.slug})}),t.page==="company-sub"&&t.slug&&t.type&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(qn,{slug:t.slug,tab:t.type})}),t.page==="company-product"&&t.slug&&t.product&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx($n,{companySlug:t.slug,productSlug:t.product})}),t.page==="product-category"&&t.slug&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(On,{slug:t.slug})}),t.page==="engineer-detail"&&t.slug&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(yn,{slug:t.slug})}),t.page==="privacy"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(vn,{})}),t.page==="terms"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(jn,{})}),t.page==="cookies"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(kn,{})}),t.page==="about"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(wn,{})}),t.page==="editorial-guidelines"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Nn,{})}),t.page==="corrections"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Pn,{})}),t.page==="contact"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(In,{settings:n.settings})}),t.page==="sitemap"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Bn,{})}),t.page==="tags"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Fn,{})}),t.page==="search"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Hn,{query:new URLSearchParams(window.location.search).get("q")||""})}),t.page==="robot-prices"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Wn,{category:t.slug})}),t.page==="newsletter"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Un,{})}),t.page==="community"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Tn,{})}),t.page==="create-post"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(An,{})}),t.page==="user-post"&&t.slug&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Rn,{slug:t.slug})}),t.page==="create-survey"&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Ln,{})}),t.page==="user-survey"&&t.slug&&e.jsx("main",{className:"pt-20 lg:pt-28",children:e.jsx(Dn,{slug:t.slug})})]})}
24),e.jsx(ir,{settings:n.settings,menu:n.menu,sectors:n.company_sectors}),e.jsx(Ca,{}),e.jsx(Ta,{}),e.jsx(Aa,{}),e.jsx(Ra,{}),e.jsx(Mr,{route:t}),e.jsx(Br,{clientId:n.settings.google_client_id}),e.jsx($a,{}),e.jsx(Fr,{path:typeof window<"u"?window.location.pathname:""})]})})}):null}const gs=document.getElementById("root");if(!gs)throw new Error("Could not find root element to mount to");const Gn=ps.createRoot(gs);Gn.render(e.jsx(Qe.StrictMode,{children:e.jsx(Yn,{})}));export{mi as $,Sr as A,hi as B,ji as C,ki as D,us as E,xi as F,be as G,Or as H,Ii as I,Pi as J,ka as K,A as L,Ci as M,Di as N,zi as O,Ir as P,Si as Q,Ni as R,wi as S,Dr as T,Lr as U,lt as V,Na as W,_i as X,Ei as Y,mr as Z,ui as _,jt as a,si as a0,li as a1,ii as a2,da as a3,bi as a4,fi as a5,yi as a6,ca as b,K as c,ls as d,oi as e,Qn as f,Xn as g,Zn as h,ei as i,ti as j,ai as k,ri as l,ni as m,I as n,ci as o,kt as p,Ai as q,di as r,Cr as s,Ri as t,zr as u,Ti as v,Li as w,pi as x,vi as y,gi as z};
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.