1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21792],{21792:(e,t,a)=>{a.r(t),a.d(t,{default:()=>c});var n=a(37876),s=a(14232);let i=[{id:"hospitality",label:"Hospitality",icon:"\uD83C\uDFE8",color:"from-cyan-500 to-blue-600",tenantExample:"Grand Plaza Hotel",legacy:[{name:"Opera PMS",type:"PMS",status:"ready",connectTime:"3 min",logo:"\uD83C\uDFDBï¸",fieldMap:{system:"Bookings",fields:[{xenosField:"booking.guestName",xenosLabel:"Guest Name",targetField:"GuestName",targetLabel:"Guest Name",confidence:98,confirmed:!1},{xenosField:"booking.checkIn",xenosLabel:"Check-In",targetField:"ArrivalDate",targetLabel:"Arrival Date",confidence:95,confirmed:!1},{xenosField:"booking.checkOut",xenosLabel:"Check-Out",targetField:"DepartureDate",targetLabel:"Departure Date",confidence:95,confirmed:!1},{xenosField:"booking.roomType",xenosLabel:"Room Type",targetField:"RoomType",targetLabel:"Room Type",confidence:99,confirmed:!1},{xenosField:"booking.rateCode",xenosLabel:"Rate Code",targetField:"RateCode",targetLabel:"Rate Code",confidence:97,confirmed:!1},{xenosField:"booking.adults",xenosLabel:"Adults",targetField:"Adults",targetLabel:"Adults",confidence:100,confirmed:!1},{xenosField:"booking.source",xenosLabel:"Channel",targetField:"SourceCode",targetLabel:"Source Code",confidence:88,confirmed:!1},{xenosField:"booking.status",xenosLabel:"Status",targetField:"ReservationStatus",targetLabel:"Reservation Status",confidence:92,confirmed:!1}]}},{name:"Cloudbeds",type:"Cloud PMS",status:"ready",connectTime:"2 min",logo:"âï¸"},{name:"Mews",type:"Cloud PMS",status:"ready",connectTime:"2 min",logo:"â¡"},{name:"Booking.com",type:"OTA",status:"connected",connectTime:"3 min",logo:"\uD83C\uDD71ï¸",fieldMap:{system:"Reservations",fields:[{xenosField:"reservation.guestName",xenosLabel:"Guest Name",targetField:"guest_name",targetLabel:"Guest Name",confidence:98,confirmed:!1},{xenosField:"reservation.checkIn",xenosLabel:"Check-In",targetField:"checkin",targetLabel:"Check-In",confidence:97,confirmed:!1},{xenosField:"reservation.checkOut",xenosLabel:"Check-Out",targetField:"checkout",targetLabel:"Check-Out",confidence:97,confirmed:!1},{xenosField:"reservation.totalPrice",xenosLabel:"Total Price",targetField:"total_amount",targetLabel:"Total Amount",confidence:95,confirmed:!1},{xenosField:"reservation.commission",xenosLabel:"Commission",targetField:"commission_amount",targetLabel:"Commission",confidence:96,confirmed:!1}]}},{name:"Expedia",type:"OTA",status:"ready",connectTime:"3 min",logo:"âï¸"},{name:"Travelport",type:"GDS",status:"available",connectTime:"5 min",logo:"\uD83C\uDF10"},{name:"Pegasus",type:"GDS",status:"available",connectTime:"5 min",logo:"\uD83C\uDF10"},{name:"Stripe",type:"Payments",status:"connected",connectTime:"1 min",logo:"\uD83D\uDCB3",fieldMap:{system:"Billing",fields:[{xenosField:"invoice.amount",xenosLabel:"Amount",targetField:"amount",targetLabel:"Amount",confidence:100,confirmed:!1},{xenosField:"invoice.currency",xenosLabel:"Currency",targetField:"currency",targetLabel:"Currency",confidence:100,confirmed:!1},{xenosField:"invoice.customerId",xenosLabel:"Customer ID",targetField:"customer",targetLabel:"Customer",confidence:95,confirmed:!1},{xenosField:"payment.method",xenosLabel:"Payment Method",targetField:"payment_method",targetLabel:"Payment Method",confidence:98,confirmed:!1},{xenosField:"payment.status",xenosLabel:"Status",targetField:"status",targetLabel:"Status",confidence:99,confirmed:!1}]}},{name:"HubSpot",type:"CRM",status:"ready",connectTime:"2 min",logo:"\uD83D\uDD36",fieldMap:{system:"Sales",fields:[{xenosField:"contact.firstName",xenosLabel:"First Name",targetField:"firstname",targetLabel:"First Name",confidence:99,confirmed:!1},{xenosField:"contact.lastName",xenosLabel:"Last Name",targetField:"lastname",targetLabel:"Last Name",confidence:99,confirmed:!1},{xenosField:"contact.email",xenosLabel:"Email",targetField:"email",targetLabel:"Email",confidence:100,confirmed:!1},{xenosField:"contact.phone",xenosLabel:"Phone",targetField:"phone",targetLabel:"Phone",confidence:100,confirmed:!1},{xenosField:"contact.company",xenosLabel:"Company",targetField:"company",targetLabel:"Company",confidence:98,confirmed:!1},{xenosField:"deal.value",xenosLabel:"Deal Value",targetField:"amount",targetLabel:"Amount",confidence:92,confirmed:!1},{xenosField:"deal.stage",xenosLabel:"Deal Stage",targetField:"dealstage",targetLabel:"Deal Stage",confidence:95,
1confirmed:!1},{xenosField:"deal.owner",xenosLabel:"Owner",targetField:"hubspot_owner_id",targetLabel:"Owner ID",confidence:85,confirmed:!1}]}}],knowledge:[{name:"Opera PMS API (SOAP/REST)",type:"api-docs",status:"trained"},{name:"Booking.com Rate Mapping",type:"field-mapping",status:"trained"},{name:"GDS Distribution Rules",type:"business-rules",status:"ready"},{name:"DIRS21 Field Reference",type:"field-mapping",status:"trained"},{name:"PCI-DSS Compliance",type:"compliance",status:"trained"},{name:"Channel Commission Rules",type:"business-rules",status:"trained"}],context:["Live bookings & arrivals","Room availability & rates","Guest profiles & preferences","Housekeeping status","Revenue & occupancy KPIs","Channel performance"],journey:[{stage:"Discovery",action:"Guest finds hotel via OTA or website",ariaKnows:"Source channel, search intent, price sensitivity"},{stage:"Booking",action:"Reservation created (voice, web, or agent)",ariaKnows:"Room type, dates, rate, special requests, payment"},{stage:"Pre-Arrival",action:"Confirmation + upsell offers sent",ariaKnows:"Preferences, allergies, bed side, past stays, loyalty tier"},{stage:"Check-In",action:"Guest arrives, room assigned",ariaKnows:"Welcome name, room ready status, VIP flags, companion info"},{stage:"In-Stay",action:"Spa, dining, concierge, housekeeping",ariaKnows:"Every service used, every request, satisfaction signals"},{stage:"Check-Out",action:"Bill settled, feedback collected",ariaKnows:"Total spend, rating, complaints, compliments"},{stage:"Post-Stay",action:"Thank you + re-engagement campaign",ariaKnows:"Lifetime value, return probability, next-best offer"}],replaces:[{tool:"Separate PMS",category:"Property Management"},{tool:"Channel Manager",category:"Distribution"},{tool:"Revenue Manager",category:"Pricing"},{tool:"Email Marketing Tool",category:"Marketing"},{tool:"Scheduling Software",category:"Staff Management"},{tool:"Accounting Software",category:"Finance"},{tool:"Guest Messaging App",category:"Communication"}]},{id:"healthcare",label:"Healthcare",icon:"\uD83C\uDFE5",color:"from-emerald-500 to-teal-600",tenantExample:"Metro Health Clinic",legacy:[{name:"Epic Systems",type:"EHR",status:"ready",connectTime:"5 min",logo:"\uD83C\uDFE5"},{name:"Cerner",type:"EHR",status:"ready",connectTime:"5 min",logo:"\uD83D\uDC8A"},{name:"Athenahealth",type:"Cloud PMS",status:"ready",connectTime:"3 min",logo:"âï¸"},{name:"DrChrono",type:"Cloud PMS",status:"available",connectTime:"3 min",logo:"â±ï¸"},{name:"Change Healthcare",type:"EDI/Claims",status:"ready",connectTime:"5 min",logo:"\uD83D\uDCCB"},{name:"Availity",type:"Portal",status:"ready",connectTime:"3 min",logo:"\uD83D\uDD17"},{name:"LabCorp",type:"Labs",status:"ready",connectTime:"3 min",logo:"\uD83D\uDD2C"},{name:"Quest Diagnostics",type:"Labs",status:"available",connectTime:"3 min",logo:"\uD83E\uDDEA"},{name:"Stripe",type:"Payments",status:"connected",connectTime:"1 min",logo:"\uD83D\uDCB3"}],knowledge:[{name:"HL7 FHIR R4 Standard",type:"api-docs",status:"trained"},{name:"Epic API + Patient Mapping",type:"field-mapping",status:"trained"},{name:"Insurance EDI Codes",type:"field-mapping",status:"ready"},{name:"HIPAA Compliance Rules",type:"compliance",status:"trained"},{name:"Lab Result Integration",type:"api-docs",status:"ready"},{name:"Claims Submission Rules",type:"business-rules",status:"trained"}],context:["Patient appointments","Lab results & orders","Insurance eligibility","Prescription tracking","Revenue cycle metrics","Compliance status"],journey:[{stage:"Referral",action:"Patient referred or finds clinic",ariaKnows:"Referring physician, insurance, chief complaint"},{stage:"Scheduling",action:"Appointment booked (voice or portal)",ariaKnows:"Provider preference, availability, urgency, insurance pre-auth"},{stage:"Pre-Visit",action:"Intake forms + insurance verified",ariaKnows:"Medical history, allergies, medications, eligibility status"},{stage:"Visit",action:"Encounter documented, labs ordered",ariaKnows:"Diagnosis, treatment plan, prescriptions, follow-up needed"},{stage:"Post-Visit",action:"Lab results + billing processed",ariaKnows:"Results, claim status, patient balance, satisfaction"},{stage:"Follow-Up",action:"Recall reminders + wellness campaigns",ariaKnows:"Care gaps, preventive screening due, lifetime health profile"}],replaces:[{tool:"Separate EHR Portal",category:"Records"}
1,{tool:"Scheduling Software",category:"Appointments"},{tool:"Billing System",category:"Revenue Cycle"},{tool:"Patient Messaging",category:"Communication"},{tool:"Insurance Verifier",category:"Eligibility"},{tool:"Marketing Platform",category:"Outreach"}]},{id:"automotive",label:"Automotive",icon:"\uD83D\uDE97",color:"from-orange-500 to-red-600",tenantExample:"Premium Auto Service",legacy:[{name:"Dealertrack",type:"DMS",status:"ready",connectTime:"3 min",logo:"\uD83C\uDFEA"},{name:"Reynolds & Reynolds",type:"DMS",status:"available",connectTime:"5 min",logo:"\uD83D\uDCCA"},{name:"Mitchell 1",type:"Estimating",status:"ready",connectTime:"3 min",logo:"\uD83D\uDD27"},{name:"Tekmetric",type:"Shop Mgmt",status:"ready",connectTime:"2 min",logo:"âï¸"},{name:"NAPA AutoCare",type:"Parts",status:"ready",connectTime:"2 min",logo:"\uD83D\uDD29"},{name:"AutoZone",type:"Parts",status:"available",connectTime:"2 min",logo:"\uD83C\uDFEC"},{name:"O'Reilly",type:"Parts",status:"available",connectTime:"2 min",logo:"\uD83D\uDD34"},{name:"NHTSA Recalls",type:"Safety",status:"connected",connectTime:"1 min",logo:"â ï¸"},{name:"Stripe",type:"Payments",status:"connected",connectTime:"1 min",logo:"\uD83D\uDCB3"}],knowledge:[{name:"Dealertrack DMS API",type:"api-docs",status:"trained"},{name:"VIN Decoder Reference",type:"field-mapping",status:"trained"},{name:"Parts Catalog Mapping",type:"field-mapping",status:"ready"},{name:"NHTSA Recall Database",type:"api-docs",status:"trained"},{name:"Service Workflow Rules",type:"business-rules",status:"trained"},{name:"Estimate Calculation",type:"business-rules",status:"ready"}],context:["Active service jobs","Parts inventory & orders","Customer vehicles","Appointment schedule","Revenue & margins","Recall alerts"],journey:[{stage:"First Visit",action:"Vehicle brought in for service",ariaKnows:"VIN, make/model/year, mileage, owner, warranty status"},{stage:"Diagnosis",action:"Inspection + estimate created",ariaKnows:"Issues found, parts needed, labor estimate, severity"},{stage:"Approval",action:"Customer approves repair",ariaKnows:"Approved amount, declined items, payment preference"},{stage:"Service",action:"Parts ordered + work performed",ariaKnows:"Parts used, technician, time spent, quality notes"},{stage:"Pickup",action:"Vehicle returned, payment collected",ariaKnows:"Final cost, satisfaction, warranty on work"},{stage:"Maintenance",action:"Recall alerts + service reminders",ariaKnows:"Service history, next due date, recall status, lifetime spend"}],replaces:[{tool:"Separate DMS",category:"Management"},{tool:"Parts Ordering System",category:"Supply Chain"},{tool:"Scheduling App",category:"Appointments"},{tool:"Estimating Software",category:"Quotes"},{tool:"Customer CRM",category:"Relationships"},{tool:"Accounting Software",category:"Finance"}]},{id:"real-estate",label:"Real Estate",icon:"\uD83C\uDFE0",color:"from-violet-500 to-purple-600",tenantExample:"Prime Properties Group",legacy:[{name:"RESO MLS",type:"MLS",status:"ready",connectTime:"3 min",logo:"\uD83C\uDFD8ï¸"},{name:"ShowingTime",type:"Showings",status:"ready",connectTime:"2 min",logo:"\uD83D\uDCC5"},{name:"Follow Up Boss",type:"CRM",status:"ready",connectTime:"2 min",logo:"\uD83D\uDC64"},{name:"kvCORE",type:"CRM",status:"available",connectTime:"3 min",logo:"\uD83D\uDD11"},{name:"ListHub",type:"Syndication",status:"ready",connectTime:"3 min",logo:"\uD83D\uDCE1"},{name:"Zillow/Trulia",type:"Portal",status:"ready",connectTime:"3 min",logo:"\uD83C\uDFE1"},{name:"Stripe",type:"Payments",status:"connected",connectTime:"1 min",logo:"\uD83D\uDCB3"}],knowledge:[{name:"RESO Data Dictionary 1.7+",type:"api-docs",status:"trained"},{name:"MLS Feed Specifications",type:"field-mapping",status:"trained"},{name:"Syndication Mapping",type:"field-mapping",status:"ready"},{name:"ShowingTime Scheduling API",type:"api-docs",status:"trained"},{name:"Fair Housing Compliance",type:"compliance",status:"trained"},{name:"Commission Calculation",type:"business-rules",status:"ready"}],context:["Active listings","Showing schedule","Lead pipeline","Offer status","Market comparables","Agent performance"],journey:[{stage:"Lead Capture",action:"Buyer/seller inquiry (web, call, referral)",ariaKnows:"Budget, location, property type, timeline, motivation"},{stage:"Discovery",action:"Showings scheduled, comparables pulled",ariaKnows:"Viewing history, reactions, price sensitivity, competing agents"},{stage:"Offer",action:"Offer submitted + negotiation",ariaKnows:"Offer amount, contingencies, financing, counteroffers"},{stage:"Under Contract",action:"Inspections, appraisal, title",ariaKnows:"Inspection issues, appraisal value, lender status, closing date"},{stage:"Closing",action:"Transaction completed",ariaKnows:"Final price, commission, closing costs, satisfaction"}
1,{stage:"Post-Close",action:"Move-in support + referral campaign",ariaKnows:"Lifetime value, referral probability, next move timeline"}],replaces:[{tool:"Separate MLS Portal",category:"Listings"},{tool:"CRM System",category:"Lead Management"},{tool:"Showing Scheduler",category:"Appointments"},{tool:"Marketing Platform",category:"Outreach"},{tool:"Transaction Manager",category:"Closings"},{tool:"Accounting Software",category:"Commission"}]},{id:"ecommerce",label:"E-Commerce",icon:"\uD83D\uDED2",color:"from-pink-500 to-rose-600",tenantExample:"Urban Style Boutique",legacy:[{name:"Shopify",type:"Platform",status:"ready",connectTime:"2 min",logo:"\uD83D\uDECDï¸"},{name:"WooCommerce",type:"Platform",status:"ready",connectTime:"3 min",logo:"\uD83D\uDD0C"},{name:"HubSpot",type:"CRM",status:"ready",connectTime:"2 min",logo:"\uD83D\uDD36"},{name:"Stripe",type:"Payments",status:"connected",connectTime:"1 min",logo:"\uD83D\uDCB3"},{name:"Rentals United",type:"Syndication",status:"available",connectTime:"3 min",logo:"\uD83D\uDCE6"}],knowledge:[{name:"Shopify Admin + Storefront API",type:"api-docs",status:"trained"},{name:"WooCommerce REST API",type:"api-docs",status:"trained"},{name:"Product/Inventory Schema",type:"field-mapping",status:"trained"},{name:"Order Lifecycle Rules",type:"business-rules",status:"ready"},{name:"GDPR Compliance",type:"compliance",status:"trained"}],context:["Orders & fulfillment","Inventory levels","Customer segments","Cart abandonment","Revenue & margins","Campaign performance"],journey:[{stage:"Browse",action:"Customer visits store",ariaKnows:"Traffic source, products viewed, time on site, device"},{stage:"Cart",action:"Items added to cart",ariaKnows:"Products, quantities, price sensitivity, abandonment risk"},{stage:"Purchase",action:"Order placed + payment",ariaKnows:"Order value, payment method, shipping preference, discount used"},{stage:"Fulfillment",action:"Shipped + delivered",ariaKnows:"Shipping speed, delivery status, tracking engagement"},{stage:"Post-Purchase",action:"Review + support + returns",ariaKnows:"Satisfaction, return rate, support tickets, product feedback"},{stage:"Retention",action:"Re-engagement + loyalty",ariaKnows:"Purchase frequency, CLV, next-best product, churn risk"}],replaces:[{tool:"Separate CRM",category:"Customers"},{tool:"Email Marketing Tool",category:"Campaigns"},{tool:"Inventory Manager",category:"Stock"},{tool:"Analytics Platform",category:"Insights"},{tool:"Helpdesk Software",category:"Support"}]},{id:"financial",label:"Financial",icon:"\uD83C\uDFE6",color:"from-amber-500 to-yellow-600",tenantExample:"Sovereign Wealth Advisory",legacy:[{name:"JP Morgan Custody",type:"Custodian",status:"ready",connectTime:"5 min",logo:"\uD83C\uDFE6"},{name:"iDenfy",type:"KYC",status:"ready",connectTime:"2 min",logo:"\uD83E\uDEAA"},{name:"Onfido",type:"KYC",status:"available",connectTime:"2 min",logo:"\uD83D\uDCF8"},{name:"Trulioo",type:"KYC/AML",status:"available",connectTime:"3 min",logo:"\uD83C\uDF0D"},{name:"Stripe",type:"Payments",status:"connected",connectTime:"1 min",logo:"\uD83D\uDCB3"},{name:"HubSpot",type:"CRM",status:"ready",connectTime:"2 min",logo:"\uD83D\uDD36"}],knowledge:[{name:"JP Morgan Custody API",type:"api-docs",status:"trained"},{name:"KYC/AML Verification Flow",type:"business-rules",status:"trained"},{name:"Identity Verification APIs",type:"api-docs",status:"trained"},{name:"SOC2 + PCI Compliance",type:"compliance",status:"trained"},{name:"Client Onboarding Rules",type:"business-rules",status:"ready"}],context:["Client portfolios","Compliance status","KYC verification queue","Transaction history","AUM & revenue","Risk alerts"],journey:[{stage:"Prospect",action:"Potential client inquiry",ariaKnows:"Net worth range, investment goals, risk tolerance, referral source"},{stage:"KYC/Onboarding",action:"Identity verified + accounts opened",ariaKnows:"ID verification status, AML clearance, tax residency, beneficiaries"},{stage:"Investment",action:"Portfolio constructed + funded",ariaKnows:"Asset allocation, risk profile, performance benchmarks, fee structure"},{stage:"Management",action:"Ongoing portfolio management",ariaKnows:"Returns, rebalancing needs, tax events, market exposure"},{stage:"Review",action:"Quarterly review + reporting",ariaKnows:"Performance vs benchmark, goal progress, satisfaction, concerns"},{stage:"Growth",action:"Upsell + referral generation",ariaKnows:"Wallet share, additional needs, referral network, lifetime AUM"}
1],replaces:[{tool:"Separate CRM",category:"Client Management"},{tool:"KYC Platform",category:"Compliance"},{tool:"Portfolio Tracker",category:"Investments"},{tool:"Document Manager",category:"Contracts"},{tool:"Billing System",category:"Invoicing"}]}];function o(e){let{status:t}=e,a={connected:{text:"Live",color:"text-green-400 bg-green-400/10"},ready:{text:"Ready",color:"text-cyan-400 bg-cyan-400/10"},available:{text:"Available",color:"text-zinc-400 bg-zinc-400/10"},trained:{text:"Trained",color:"text-green-400 bg-green-400/10"},pending:{text:"Pending",color:"text-zinc-400 bg-zinc-400/10"}},s=a[t]||a.pending;return(0,n.jsx)("span",{className:"text-[10px] font-medium px-1.5 py-0.5 rounded ".concat(s.color),children:s.text})}function r(e){let{integration:t,onBack:a}=e,i=t.fieldMap,[o,r]=(0,s.useState)(i.fields.map(e=>({...e}))),[c,l]=(0,s.useState)(!1),[d,m]=(0,s.useState)(!1),p=o.filter(e=>e.confirmed).length;return(0,n.jsxs)("div",{className:"h-full flex flex-col bg-zinc-950 text-white overflow-hidden",children:[(0,n.jsxs)("div",{className:"px-4 py-3 border-b border-zinc-800 flex-shrink-0",children:[(0,n.jsx)("button",{onClick:a,className:"text-[11px] text-cyan-400 hover:text-cyan-300 mb-1.5 flex items-center gap-1",children:"â Back to Integrations"}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"text-xl",children:t.logo}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"text-sm font-bold text-white",children:t.name}),(0,n.jsxs)("span",{className:"text-[10px] text-zinc-500",children:[t.type," \xb7 Field Mapping \xb7 Xenos ",i.system]})]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-3 mt-2",children:[(0,n.jsxs)("span",{className:"text-[10px] text-zinc-500",children:[o.length," fields"]}),(0,n.jsx)("span",{className:"text-[10px] text-zinc-700",children:"|"}),(0,n.jsxs)("span",{className:"text-[10px]",children:[(0,n.jsx)("span",{className:"text-green-400 font-semibold",children:p}),(0,n.jsx)("span",{className:"text-zinc-500",children:" confirmed"})]}),d&&(0,n.jsx)("span",{className:"text-[9px] px-1.5 py-0.5 rounded bg-green-500/20 text-green-400 border border-green-500/20 ml-auto",children:"Mapped"})]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2 px-4 py-1.5 border-b border-zinc-800/50 flex-shrink-0",children:[(0,n.jsxs)("span",{className:"text-[9px] uppercase tracking-widest text-cyan-400 font-bold flex-1",children:["Xenos \xb7 ",i.system]}),(0,n.jsx)("span",{className:"w-4"}),(0,n.jsx)("span",{className:"text-[9px] uppercase tracking-widest text-amber-400 font-bold flex-1",children:t.name}),(0,n.jsx)("span",{className:"w-10"})]}),(0,n.jsx)("div",{className:"flex-1 overflow-y-auto px-3 py-2 space-y-1",children:o.map((e,t)=>(0,n.jsxs)("div",{onClick:()=>!d&&void r(e=>e.map((e,a)=>a===t?{...e,confirmed:!e.confirmed}:e)),className:"flex items-center gap-2 px-2.5 py-2 rounded border cursor-pointer transition-all ".concat(e.confirmed?"bg-green-500/5 border-green-500/20 hover:bg-green-500/10":"bg-zinc-900/60 border-zinc-800/50 hover:bg-zinc-800/60"," ").concat(d?"cursor-default":""),children:[(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("div",{className:"text-xs font-medium text-zinc-200 truncate",children:e.xenosLabel}),(0,n.jsx)("div",{className:"text-[9px] text-zinc-600 font-mono truncate",children:e.xenosField})]}),(0,n.jsx)("span",{className:"text-xs flex-shrink-0 ".concat(e.confirmed?"text-green-400":"text-zinc-600"),children:"â"}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("div",{className:"text-xs font-medium text-zinc-200 truncate",children:e.targetLabel}),(0,n.jsx)("div",{className:"text-[9px] text-zinc-600 font-mono truncate",children:e.targetField})]}),(0,n.jsxs)("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[(0,n.jsxs)("span",{className:"text-[10px] font-mono ".concat(e.confidence>=95?"text-green-400":e.confidence>=85?"text-amber-400":"text-orange-400"),children:[e.confidence,"%"]}),(0,n.jsx)("div",{className:"w-4 h-4 rounded flex items-center justify-center border text-[10px] transition-all ".concat(e.confirmed?"bg-green-500 border-green-400 text-white":"bg-zinc-800 border-zinc-600"),children:e.confirmed&&"â"})]})]}
1,e.xenosField))}),(0,n.jsx)("div",{className:"px-4 py-2.5 border-t border-zinc-800 bg-zinc-900/50 flex-shrink-0",children:d?(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsxs)("div",{className:"text-[10px] text-green-400 font-medium",children:[o.length," fields mapped to Mantopus Knowledge"]}),(0,n.jsxs)("div",{className:"text-[9px] text-zinc-600 mt-0.5",children:["FACT cache updated \xb7 ",i.system," â ",t.name]})]}):c?(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:"flex-1 h-1 rounded-full bg-white/5 overflow-hidden",children:(0,n.jsx)("div",{className:"h-full rounded-full bg-gradient-to-r from-cyan-500 to-green-500 animate-pulse",style:{width:"100%"}})}),(0,n.jsx)("span",{className:"text-[10px] text-cyan-400 animate-pulse whitespace-nowrap",children:"Mapping..."})]}):(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("button",{onClick:function(){r(e=>e.map(e=>({...e,confirmed:!0})))},className:"text-[10px] px-2 py-1 rounded bg-white/5 text-zinc-400 hover:bg-white/10 border border-zinc-700 transition-colors",children:"Confirm All"}),(0,n.jsx)("div",{className:"flex-1"}),(0,n.jsxs)("span",{className:"text-[9px] text-zinc-600",children:[p,"/",o.length]}),(0,n.jsxs)("button",{onClick:function(){l(!0),setTimeout(()=>{l(!1),m(!0)},2e3)},disabled:0===p,className:"text-[11px] px-3 py-1 rounded font-semibold transition-all ".concat(p>0?"bg-gradient-to-r from-cyan-500 to-blue-600 text-white hover:from-cyan-400 hover:to-blue-500":"bg-zinc-800 text-zinc-600 cursor-not-allowed"),children:["MAP ",p]})]})})]})}function c(e){let{tenantName:t,currentIndustry:a,tenantId:c=""}
1=e,[l,d]=(0,s.useState)(i.find(e=>e.id===a)||i[0]),[m,p]=(0,s.useState)(!1),[x,g]=(0,s.useState)(null),[u,y]=(0,s.useState)(new Set),[f,h]=(0,s.useState)(null);async function b(e){g(e);try{let t=await fetch("/api/integrations/health?provider=".concat(encodeURIComponent(e),"&tenant_id=").concat(c));if(t.ok){let a=await t.json();if(null==a?void 0:a.connected){y(t=>new Set(t).add(e)),g(null);return}}}catch(e){}y(t=>new Set(t).add(e)),g(null)}let v=l.legacy.filter(e=>"connected"===e.status||u.has(e.name)).length,w=l.knowledge.filter(e=>"trained"===e.status).length,j=l.legacy.length;return f?(0,n.jsx)(r,{integration:f,onBack:()=>h(null)}):(0,n.jsxs)("div",{className:"h-full flex flex-col bg-zinc-950 text-white overflow-hidden",children:[(0,n.jsx)("div",{className:"px-4 py-3 bg-gradient-to-r ".concat(l.color," flex-shrink-0"),children:(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"text-lg font-bold text-white",children:"Integration Template"}),(0,n.jsx)("p",{className:"text-xs text-white/70",children:"One template. Every industry. Minutes, not days."})]}),(0,n.jsxs)("div",{className:"text-right",children:[(0,n.jsx)("div",{className:"text-2xl",children:l.icon}),(0,n.jsx)("div",{className:"text-[10px] text-white/60 mt-0.5",children:l.tenantExample})]})]})}),(0,n.jsx)("div",{className:"flex gap-1 px-3 py-2 border-b border-zinc-800 overflow-x-auto flex-shrink-0",children:i.map(e=>(0,n.jsxs)("button",{onClick:()=>{d(e),y(new Set),p(!1)},className:"flex items-center gap-1 px-2.5 py-1 rounded text-xs whitespace-nowrap transition-all ".concat(l.id===e.id?"bg-white/15 text-white font-medium":"text-zinc-500 hover:text-zinc-300 hover:bg-white/5"),children:[(0,n.jsx)("span",{children:e.icon}),(0,n.jsx)("span",{children:e.label})]},e.id))}),(0,n.jsxs)("div",{className:"flex gap-3 px-4 py-2.5 border-b border-zinc-800 flex-shrink-0",children:[(0,n.jsxs)("div",{className:"flex-1 text-center",children:[(0,n.jsxs)("div",{className:"text-lg font-bold text-green-400",children:[v,"/",j]}),(0,n.jsx)("div",{className:"text-[9px] text-zinc-500 uppercase tracking-wider",children:"Connected"})]}),(0,n.jsx)("div",{className:"w-px bg-zinc-800"}),(0,n.jsxs)("div",{className:"flex-1 text-center",children:[(0,n.jsxs)("div",{className:"text-lg font-bold text-cyan-400",children:[w,"/",l.knowledge.length]}),(0,n.jsx)("div",{className:"text-[9px] text-zinc-500 uppercase tracking-wider",children:"Knowledge"})]}),(0,n.jsx)("div",{className:"w-px bg-zinc-800"}),(0,n.jsxs)("div",{className:"flex-1 text-center",children:[(0,n.jsx)("div",{className:"text-lg font-bold text-green-400",children:l.context.length}),(0,n.jsx)("div",{className:"text-[9px] text-zinc-500 uppercase tracking-wider",children:"Context"})]}),(0,n.jsx)("div",{className:"w-px bg-zinc-800"}),(0,n.jsxs)("div",{className:"flex-1 text-center",children:[(0,n.jsx)("div",{className:"text-lg font-bold text-purple-400",children:l.journey.length}),(0,n.jsx)("div",{className:"text-[9px] text-zinc-500 uppercase tracking-wider",children:"Touchpoints"})]}),(0,n.jsx)("div",{className:"w-px bg-zinc-800"}),(0,n.jsxs)("div",{className:"flex-1 text-center",children:[(0,n.jsx)("div",{className:"text-lg font-bold text-amber-400",children:l.replaces.length}),(0,n.jsx)("div",{className:"text-[9px] text-zinc-500 uppercase tracking-wider",children:"Replaces"})]})]}),(0,n.jsxs)("div",{className:"flex-1 overflow-y-auto px-3 py-2 space-y-3",children:[(0,n.jsxs)("section",{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 mb-1.5",children:[(0,n.jsx)("span",{className:"text-[10px] font-bold text-orange-400 uppercase tracking-widest",children:"1. Legacy"}),(0,n.jsx)("span",{className:"text-[9px] text-zinc-600",children:"â Plug into what you already use"})]}),(0,n.jsx)("div",{className:"space-y-1",children:l.legacy.map(e=>{let t="connected"===e.status||u.has(e.name),a=x===e.name,s=!!e.fieldMap;return(0,n.jsxs)("div",{onClick:()=>s&&h(e),className:"flex items-center gap-2 px-2.5 py-1.5 rounded bg-zinc-900/60 border border-zinc-800/50 group transition-all ".concat(s?"cursor-pointer hover:bg-zinc-800/60 hover:border-cyan-500/20":""),children:[(0,n.jsx)("span",{className:"text-base w-6 text-center flex-shrink-0",children:e.logo}),(0,n.jsx)("div",{className:"flex-1 min-w-0",children:(0,n.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("span",{className:"text-xs font-medium text-zinc-200 truncate",children:e.name}),(0,n.jsx)("span",{className:"text-[9px] text-zinc-600",children:e.type}),s&&(0,n.jsx)("span",{className:"text-[8px] px-1 py-0.5 rounded bg-cyan-500/10 text-cyan-400/60 border border-cyan-500/10",children:"MAP"})]})}),(0,n.jsx)("span",{className:"text-[9px] text-zinc-600 flex-shrink-0",children:e.connectTime}),t?(0,n.jsx)(o,{status:"connected"}):a?(0,n.jsx)("span",{className:"text-[10px] text-cyan-400 animate-pulse",children:"Connecting..."}):(0,n.jsx)("button",{onClick:t=>{t.stopPropagation(),b(e.name)}
1,className:"text-[10px] px-2 py-0.5 rounded bg-cyan-500/20 text-cyan-400 hover:bg-cyan-500/30 transition-colors flex-shrink-0",children:"Connect"})]},e.name)})})]}),(0,n.jsxs)("section",{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 mb-1.5",children:[(0,n.jsx)("span",{className:"text-[10px] font-bold text-cyan-400 uppercase tracking-widest",children:"2. Knowledge"}),(0,n.jsx)("span",{className:"text-[9px] text-zinc-600",children:"â ARIA already knows the APIs"})]}),(0,n.jsx)("div",{className:"space-y-1",children:l.knowledge.map(e=>(0,n.jsxs)("div",{className:"flex items-center gap-2 px-2.5 py-1.5 rounded bg-zinc-900/60 border border-zinc-800/50",children:[(0,n.jsx)("span",{className:"text-base w-6 text-center flex-shrink-0",children:"api-docs"===e.type?"\uD83D\uDCC4":"field-mapping"===e.type?"\uD83D\uDD17":"compliance"===e.type?"\uD83D\uDEE1ï¸":"\uD83D\uDCCB"}),(0,n.jsx)("div",{className:"flex-1 min-w-0",children:(0,n.jsx)("span",{className:"text-xs text-zinc-300 truncate block",children:e.name})}),(0,n.jsx)("span",{className:"text-[9px] text-zinc-600 flex-shrink-0 capitalize",children:e.type.replace("-"," ")}),(0,n.jsx)(o,{status:e.status})]},e.name))})]}),(0,n.jsxs)("section",{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 mb-1.5",children:[(0,n.jsx)("span",{className:"text-[10px] font-bold text-green-400 uppercase tracking-widest",children:"3. Context"}),(0,n.jsx)("span",{className:"text-[9px] text-zinc-600",children:"â What ARIA sees in real-time"})]}),(0,n.jsx)("div",{className:"flex flex-wrap gap-1.5",children:l.context.map(e=>(0,n.jsx)("span",{className:"text-[11px] px-2 py-1 rounded bg-green-500/10 text-green-400 border border-green-500/20",children:e},e))})]}),(0,n.jsxs)("section",{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 mb-1.5",children:[(0,n.jsx)("span",{className:"text-[10px] font-bold text-purple-400 uppercase tracking-widest",children:"4. Client Journey"}),(0,n.jsx)("span",{className:"text-[9px] text-zinc-600",children:"â Every touchpoint, ARIA learns"})]}),(0,n.jsxs)("div",{className:"relative pl-4 space-y-0.5",children:[(0,n.jsx)("div",{className:"absolute left-[7px] top-2 bottom-2 w-px bg-gradient-to-b from-purple-500/60 via-purple-400/40 to-purple-500/10"}),l.journey.map((e,t)=>(0,n.jsxs)("div",{className:"relative flex gap-2.5 py-1.5",children:[(0,n.jsx)("div",{className:"absolute -left-4 top-2.5 w-2.5 h-2.5 rounded-full border-2 flex-shrink-0 ".concat(0===t?"bg-purple-400 border-purple-400":"bg-zinc-900 border-purple-500/50")}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,n.jsx)("span",{className:"text-[11px] font-semibold text-purple-300",children:e.stage}),(0,n.jsx)("span",{className:"text-[10px] text-zinc-500 truncate",children:e.action})]}),(0,n.jsxs)("div",{className:"text-[10px] text-zinc-400 mt-0.5",children:[(0,n.jsx)("span",{className:"text-purple-400/70",children:"ARIAN knows:"})," ",e.ariaKnows]})]})]},e.stage))]}),(0,n.jsx)("div",{className:"mt-2 px-2.5 py-1.5 rounded bg-purple-500/10 border border-purple-500/20",children:(0,n.jsx)("span",{className:"text-[10px] text-purple-300",children:"By post-stay, ARIAN knows enough to match services the client doesn't know they need â before they ask."})})]}),(0,n.jsxs)("section",{children:[(0,n.jsxs)("button",{onClick:()=>p(!m),className:"flex items-center gap-2 mb-1.5 w-full text-left",children:[(0,n.jsx)("span",{className:"text-[10px] font-bold text-amber-400 uppercase tracking-widest",children:"Why Xenos?"}),(0,n.jsxs)("span",{className:"text-[9px] text-zinc-600",children:["â Drop ",l.replaces.length," tools down to 1"]}),(0,n.jsx)("span",{className:"text-[9px] text-zinc-600 ml-auto",children:m?"â¼":"â¶"})]}),m&&(0,n.jsxs)("div",{className:"space-y-1",children:[l.replaces.map(e=>(0,n.jsxs)("div",{className:"flex items-center gap-2 px-2.5 py-1.5 rounded bg-zinc-900/60 border border-zinc-800/50",children:[(0,n.jsx)("span",{className:"text-base w-6 text-center text-red-400/60 flex-shrink-0",children:"â"}),(0,n.jsx)("div",{className:"flex-1 min-w-0",children:(0,n.jsx)("span",{className:"text-xs text-zinc-400 line-through truncate block",children:e.tool})}),(0,n.jsx)("span",{className:"text-[9px] text-amber-400/60",children:e.category}),(0,n.jsx)("span",{className:"text-[10px] text-amber-400 font-medium",children:"â Xenos"})]},e.tool)),(0,n.jsx)("div",{className:"mt-2 px-2.5 py-2 rounded bg-amber-500/10 border border-amber-500/20 text-center",children:(0,n.jsxs)("span",{className:"text-xs text-amber-400 font-medium",children:[l.replaces.length," tools â 1 platform. Same ARIA. Same template."]})})]})]})]}),(0,n.jsx)("div",{className:"px-4 py-2.5 border-t border-zinc-800 bg-zinc-900/50 flex-shrink-0",children:(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{className:"text-[10px] text-zinc-500",children:["FACT-powered \xb7 ",i.length," industries \xb7 50+ integrations"]}),(0,n.jsx)("div",{className:"text-[10px] text-zinc-600",children:"1 template \xd7 1,000 clients"})]})})]})}}}]);
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.