1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1021],{778:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/overbooking/settings/mcp",function(){return i(46907)}])},46907:function(e,t,i){"use strict";i.r(t);var s=i(85893),a=i(9008),c=i.n(a),n=i(41664),l=i.n(n),r=i(67294),o=i(23302),d=i(94581),u=i(12515),m=i(82210),p=i(57946),x=i(60891),b=i(24482),h=i(84754),g=i(68186),j=i(37252),f=i(28194);let N=["setupCheck","nextWeeks","atRiskReservations","roomTypeRisk","recommendationWhy","latestReport","impact","accuracy","overrides","pmsActions"],w=["properties","timeline","reservations","reports","accuracy","overrides","pmsLogs"];function v(e){let{value:t,label:i,copiedLabel:a,compact:c=!1}=e,[n,l]=(0,r.useState)(!1),o=async()=>{try{await navigator.clipboard.writeText(t),l(!0),window.setTimeout(()=>l(!1),1800)}catch(e){console.error("Failed to copy MCP setup value:",e)}};return(0,s.jsxs)("button",{type:"button",onClick:o,className:"".concat(x.F3," ").concat(c?"px-3":"px-3.5"),children:[n?(0,s.jsx)(u.UgA,{className:"h-3.5 w-3.5 text-status-success-text"}):(0,s.jsx)(u.C3L,{className:"h-3.5 w-3.5"}),n?a:i]})}function y(e){let{title:t,value:i}=e,{t:a}=(0,j.b)();return(0,s.jsxs)("div",{className:"overflow-hidden rounded-control border border-brand-night-20/70 bg-ui-surface shadow-control",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-brand-night-20/50 bg-brand-warm-white/60 px-4 py-3",children:[(0,s.jsx)("p",{className:"text-ui-label font-semibold uppercase text-ui-text-muted",children:t}),(0,s.jsx)(v,{value:i,label:a("mcpSetup.actions.copy"),copiedLabel:a("mcpSetup.actions.copied"),compact:!0})]}),(0,s.jsx)("pre",{className:"overflow-x-auto whitespace-pre-wrap break-words px-4 py-4 text-ui-label font-semibold leading-6 text-ui-text",children:i})]})}function S(){let{t:e}=(0,j.b)(),t=[{label:e("mcpSetup.connection.fields.name"),value:f.uq},{label:e("mcpSetup.connection.fields.transport"),value:f.N_},{label:e("mcpSetup.connection.fields.url"),value:f.pk}];return(0,s.jsxs)(x.we,{children:[(0,s.jsx)(x.KA,{icon:(0,s.jsx)(u.eR7,{className:"h-5 w-5"}),title:e("mcpSetup.connection.title"),subtitle:e("mcpSetup.connection.eyebrow"),action:(0,s.jsx)(v,{value:f.pk,label:e("mcpSetup.actions.copyUrl"),copiedLabel:e("mcpSetup.actions.copied")})}),(0,s.jsx)("p",{className:"mb-5 max-w-reading text-ui-meta leading-6 text-ui-text-muted",children:e("mcpSetup.connection.subtitle")}),(0,s.jsx)("div",{className:"grid gap-3 lg:grid-cols-[minmax(0,0.8fr)_minmax(0,1fr)_minmax(0,1.5fr)]",children:t.map(e=>(0,s.jsxs)("div",{className:"rounded-control border border-ui-border bg-brand-night-20/10 p-4",children:[(0,s.jsx)("p",{className:"text-ui-label font-semibold uppercase text-ui-text-muted",children:e.label}),(0,s.jsx)("p",{className:"mt-2 break-words text-ui-meta font-semibold text-ui-text",children:e.value})]},e.label))})]})}function k(e){let{steps:t}=e;return(0,s.jsx)("ol",{className:"space-y-3",children:t.map((e,t)=>(0,s.jsxs)("li",{className:"flex gap-3 text-ui-meta leading-6 text-ui-text",children:[(0,s.jsx)("span",{className:"flex h-7 w-7 flex-none items-center justify-center rounded-full border border-brand-gold-40 bg-brand-gold-20/55 text-ui-label font-semibold tabular-nums text-ui-premium-text",children:t+1}),(0,s.jsx)("span",{children:e})]},e))})}function _(e){let{activeClient:t}=e,{t:i,tArray:a}=(0,j.b)(),c="codex"===t?u.cDN:u.IC0,n="codex mcp add ".concat(f.uq," --url ").concat(f.pk),l="codex mcp login ".concat(f.uq),r="[mcp_servers.".concat(f.uq,']\nurl = "').concat(f.pk,'"'),o="claude mcp add --transport http ".concat(f.uq," ").concat(f.pk),d="claude mcp login ".concat(f.uq);return(0,s.jsxs)(x.we,{children:[(0,s.jsx)(x.KA,{icon:(0,s.jsx)(c,{className:"h-5 w-5","aria-hidden":"true"}),title:i("mcpSetup.clients.".concat(t,".title")),subtitle:i("mcpSetup.clients.".concat(t,".eyebrow")),action:(0,s.jsxs)("span",{className:"inline-flex h-control-sm items-center gap-1.5 rounded-full border border-brand-night-20 bg-ui-surface px-3 text-ui-label font-semibold text-brand-deep shadow-control",children:[(0,s.jsx)(u.UIZ,{className:"h-3.5 w-3.5"}),i("mcpSetup.security.oauth")]})}),(0,s.jsx)("p",{className:"mb-5 max-w-2xl text-ui-meta leading-6 text-ui-text-muted",children:i("mcpSetup.clients.".concat(t,".subtitle"))}),(0,s.jsxs)("div",{className:"grid gap-6 lg:grid-cols-[minmax(0,0.9fr)_minmax(0,1.1fr)]",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"mb-3 text-ui-label font-semibold uppercase text-ui-text-muted",children:i("mcpSetup.sections.steps")}),(0,s.jsx)(k,{steps:a("mcpSetup.clients.".concat(t,".steps"))})]}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(y,{title:i("mcpSetup.clients.".concat(t,".addCommandLabel")),value:"codex"===t?n:o}),(0,s.jsx)(y,{title:i("mcpSetup.clients.shared.loginCommandLabel"),value:"codex"===t?l:d}),"codex"===t?(0,s.jsx)(y,{title:i("mcpSetup.clients.codex.configLabel"),value:r}):null,(0,s.jsx)("p",{className:"text-ui-label leading-5 text-ui-text-muted",children:i("mcpSetup.clients.".concat(t,".note"))})]})]})]})}function C(){let{t:e}=(0,j.b)();return(0,s.jsxs)(x.we,{children:[(0,s.jsx)(x.KA,{icon:(0,s.jsx)(u.bGz,{className:"h-5 w-5","aria-hidden":"true"}),title:e("mcpSetup.capabilities.title"),subtitle:e("mcpSetup.capabilities.eyebrow")}),(0,s.jsx)("p",{className:"mb-5 max-w-reading text-ui-meta leading-6 text-ui-text-muted",children:e("mcpSetup.capabilities.subtitle")}),(0,s.jsx)("div",{className:"grid gap-3 lg:grid-cols-2 xl:grid-cols-3",children:w.map(t=>(0,s.jsxs)("div",{className:"rounded-control border border-ui-border bg-brand-night-20/10 p-4",children:[(0,s.jsx)("p",{className:"text-ui-meta font-semibold text-ui-text",children:e("mcpSetup.capabilities.items.".concat(t,".title"))}),(0,s.jsx)("p",{className:"mt-1 text-ui-label leading-5 text-ui-text-muted",children:e("mcpSetup.capabilities.items.".concat(t,".body"))})]},t))})]})}function q(){let{t:e}=(0,j.b)();return(0,s.jsxs)(x.we,{children:[(0,s.jsx)(x.KA,{icon:(0,s.jsx)(u.IC0,{className:"h-5 w-5","aria-hidden":"true"}),title:e("mcpSetup.prompts.title"),subtitle:e("mcpSetup.prompts.eyebrow")}),(0,s.jsx)("p",{className:"mb-2 max-w-reading text-ui-meta leading-6 text-ui-text-muted",children:e("mcpSetup.prompts.subtitle")}),(0,s.jsx)("div",{className:"divide-y divide-ui-border",children:N.map(t=>{let i=e("mcpSetup.prompts.items.".concat(t,".prompt"));return(0,s.jsxs)("div",{className:"grid gap-4 py-4 lg:grid-cols-[minmax(0,0.65fr)_minmax(0,1fr)]",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-ui-meta font-semibold text-ui-text",children:e("mcpSetup.prompts.items.".concat(t,".title"))}),(0,s.jsx)("p",{className:"mt-1 text-ui-label leading-5 text-ui-text-muted",children:e("mcpSetup.prompts.items.".concat(t,".body"))})]}),(0,s.jsx)("div",{className:"rounded-control border border-brand-gold-20/70 bg-brand-warm-white/45 p-3",children:(0,s.jsxs)("div",{className:"mb-2 flex items-start justify-between gap-3",children:[(0,s.jsx)("p",{className:"text-ui-label leading-5 text-ui-text",children:i}),(0,s.jsx)(v,{value:i,label:e("mcpSetup.actions.copy"),copiedLabel:e("mcpSetup.actions.copied"),compact:!0})]})})]},t)})})]})}function E(){let{t:e}=(0,j.b)(),t=(0,o.J)(),[i,a]=(0,r.useState)("codex"),c=(0,r.useMemo)(()=>["codex","claude"],[]);return(0,s.jsxs)(b.i4,{children:[(0,s.jsx)(b.c7,{children:(0,s.jsxs)("div",{className:"mx-auto w-full max-w-6xl",children:[(0,s.jsx)(d.E.div,{initial:!t&&{opacity:0,y:16}
1,animate:{opacity:1,y:0},transition:{duration:t?0:.35,ease:h.c},className:"mb-7",children:(0,s.jsxs)(l(),{href:g.Z.overbooking.settings,className:"inline-flex items-center gap-2 rounded-control text-ui-meta font-semibold text-ui-text-muted outline-none transition-colors duration-ui hover:text-ui-premium-text focus-visible:ring-2 focus-visible:ring-brand-electric focus-visible:ring-offset-2",children:[(0,s.jsx)(u.Ao2,{className:"h-4 w-4"}),e("mcpSetup.actions.backToSettings")]})}),(0,s.jsxs)(d.E.section,{initial:!t&&{opacity:0,y:18},animate:{opacity:1,y:0},transition:{duration:t?0:.4,delay:t?0:.04,ease:h.c},className:"mb-8 grid gap-6 lg:grid-cols-[minmax(0,1fr)_340px] lg:items-end",children:[(0,s.jsx)(b.u9,{icon:(0,s.jsx)(u.Par,{className:"h-7 w-7"}),title:e("mcpSetup.header.title"),description:e("mcpSetup.header.subtitle"),children:(0,s.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,s.jsxs)("span",{className:"inline-flex h-control-sm items-center gap-1.5 rounded-full border border-brand-gold-40 bg-brand-gold-20/35 px-3 text-ui-label font-semibold text-ui-premium-text",children:[(0,s.jsx)(u.bfl,{className:"h-3.5 w-3.5"}),e("mcpSetup.security.readOnly")]}),(0,s.jsxs)("span",{className:"inline-flex h-control-sm items-center gap-1.5 rounded-full border border-brand-night-20 bg-ui-surface px-3 text-ui-label font-semibold text-brand-deep shadow-control",children:[(0,s.jsx)(u.eR7,{className:"h-3.5 w-3.5"}),e("mcpSetup.security.sameLogin")]})]})}),(0,s.jsxs)("div",{className:"overflow-hidden rounded-panel border border-brand-night-20/70 bg-ui-surface shadow-panel",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 border-b border-brand-night-20/50 bg-brand-warm-white/60 px-4 py-3.5",children:[(0,s.jsx)("span",{className:"flex h-10 w-10 flex-none items-center justify-center rounded-control border border-brand-night-20/70 bg-white/80 text-brand-deep shadow-control",children:(0,s.jsx)(u.Par,{size:20,"aria-hidden":"true"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-ui-label font-semibold uppercase text-ui-text-muted",children:e("mcpSetup.quickCard.eyebrow")}),(0,s.jsx)("p",{className:"text-ui-meta font-semibold text-ui-text",children:e("mcpSetup.quickCard.title")}),(0,s.jsx)("div",{className:"mt-1.5 h-0.5 w-7 rounded-full bg-brand-gold","aria-hidden":"true"})]})]}),(0,s.jsx)("div",{className:"p-4",children:(0,s.jsx)("p",{className:"text-ui-label leading-5 text-ui-text-muted",children:e("mcpSetup.quickCard.body")})})]})]}),(0,s.jsxs)(d.E.div,{initial:!t&&{opacity:0,y:18},animate:{opacity:1,y:0},transition:{duration:t?0:.4,delay:t?0:.08,ease:h.c},children:[(0,s.jsx)("div",{className:"mb-6 flex justify-center",children:(0,s.jsx)("div",{className:"grid w-full max-w-md grid-cols-2 rounded-control border border-brand-night-20 bg-ui-surface p-1 shadow-control",children:c.map(t=>(0,s.jsx)("button",{type:"button","aria-pressed":i===t,onClick:()=>a(t),className:"min-h-control rounded-control px-4 text-ui-meta font-semibold outline-none transition-[background-color,color,box-shadow] duration-ui ease-ui focus-visible:ring-2 focus-visible:ring-brand-electric focus-visible:ring-offset-2 ".concat(i===t?"bg-brand-night text-white shadow-control":"text-ui-text-muted hover:bg-brand-gold-20/35 hover:text-ui-premium-text"),children:e("mcpSetup.tabs.".concat(t))},t))})}),(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsx)(S,{}),(0,s.jsx)(d.E.div,{initial:!t&&{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:t?0:.22,ease:h.c},children:(0,s.jsx)(_,{activeClient:i})},i),(0,s.jsx)(C,{}),(0,s.jsx)(q,{})]})]})]})}),(0,s.jsx)(m.Z,{})]})}let L=()=>{let{t:e}=(0,j.b)();return(0,s.jsxs)(p.Z,{redirectPath:g.Z.overbooking.login,children:[(0,s.jsxs)(c(),{children:[(0,s.jsx)("title",{children:e("mcpSetup.head.title")}),(0,s.jsx)("meta",{name:"description",content:e("mcpSetup.head.description")})]}),(0,s.jsx)(E,{})]})};L.withNavBar=!0,t.default=L}},function(e){e.O(0,[6130,999,5675,200,7946,5686,2888,9774,179],function(){return e(e.s=778)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.