import{w as m,j as r}from"./jsx-runtime-CgWCn3gT.js";import{n as l,L as p,o as d}from"./legacy-shell-D4JdMu14.js";import{i as u}from"./modelRetire-D9cZQWKz.js";import{J as a,m as f,o as g}from"./seo-meta-Bpqygpx8.js";import R from"./index-BrtxOGMB.js";import{E as z}from"./error-page-Bt0s4Oe9.js";import"./i18nInstance-C_7vXBXC.js";import"./useTranslation-CksCcIr-.js";import"./index-ao6ir_VS.js";import"./preload-helper-BXl3LOEh.js";import"./ModelCard-Cbl5R8fS.js";import"./index-6B3tFNLA.js";import"./useVariants-DSpotrXM.js";import"./index-CcHKj0sM.js";import"./SearchOutlined-4CAPyJbl.js";import"./index-DKjRcP81.js";import"./styled-components.browser.esm-CQ4IZagM.js";import"./PricingPromotion-Cg1c_py4.js";import"./index-DNb1lEOy.js";import"./providerSeo-RwIhoovz.js";import"./installCanvasRenderer-LvCAX0tA.js";import"./seoDom-D06K2jw6.js";import"./index-NPPpTHXJ.js";import"./index-JBW8Yjgf.js";function c(t){return t?.seoPromotion?{...t.record,promotion:t.seoPromotion}:t?.record}function x(t){return t.replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f]/g,o=>"\\u"+o.charCodeAt(0).toString(16).padStart(4,"0"))}function G({data:t,error:o}){if(o?.status&&o.status>=500)return[{title:"Temporarily Unavailable"},{name:"robots",content:"noindex"}];if(o?.status===410)return[{title:"Model Retired"},{name:"robots",content:"noindex"}];if(o||!t?.record)return[{title:"Model Not Found"},{name:"robots",content:"noindex"}];const e=d(c(t)),i=u(t.record)?"noindex, follow":void 0;return[{title:e.title},{name:"description",content:e.description},{name:"keywords",content:e.keywords},{tagName:"link",rel:"canonical",href:e.canonical},...f(e.canonical),...g({title:e.title,description:e.socialDescription||e.description,url:e.canonical,image:e.ogImage,...i?{robots:i}:{}})]}const H=m(function({loaderData:o}){const{record:e}=o,i=o.versionRecords?.length?Object.fromEntries(o.versionRecords.map(s=>[s.model,s])):void 0,n=l(c(o),{memberRecords:i});return r.jsxs(p,{children:[r.jsx(R,{model:e.model,initialRecord:e,initialDevelopers:o.developers,initialRelatedModels:o.related,comparePeers:o.comparePeers,initialCanonView:o.canonView,mainRecord:o.mainRecord,versionRecords:o.versionRecords}),n&&r.jsx("script",{id:a,type:"application/ld+json",dangerouslySetInnerHTML:{__html:x(JSON.stringify(n))}})]})});export{z as ErrorBoundary,H as default,G as meta};
