{"version":3,"file":"ArticleSchema.Bo18fLig.mjs","names":["useState","__esmMin","init_ssg_sandbox_shims","_e","c","init_jsx_runtime","init_npm_react_18_3_1","ce","window","addPropertyControls","init_framer_CKT6jEEQ","ControlType","ArticleSchema","props","section","toDay","d","parsed","published","datePublished","modified","dateModified","base","pageUrl","setPageUrl","canonicalForSection","value","text","parts","canonical","title","url","slug","resolvedSlug","imageUrl","image","article","description","graph","json","init_ArticleSchema"],"sources":["https:/framerusercontent.com/modules/6lus5YhreDwnermDJxOT/2sG5DsklH7a7kHNqQnS7/ArticleSchema.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useState}from\"react\";/**\n * ArticleSchema: outputs BlogPosting + BreadcrumbList JSON-LD for one article.\n * Bind each property to the matching Blog Posts CMS field on the Articles template.\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ArticleSchema(props){const{title,description,slug,image,datePublished,dateModified}=props;const section=props.section===\"newsroom\"?\"newsroom\":\"articles\";const toDay=d=>{if(!d)return undefined;const parsed=new Date(String(d));return Number.isNaN(parsed.getTime())?undefined:parsed.toISOString().slice(0,10);};const published=toDay(datePublished);const modified=toDay(dateModified);const base=\"https://turbolaw.ai\";// Use the CMS page's canonical URL, and render article data on SSR even\n// when no dynamic slug is available.\nconst[pageUrl,setPageUrl]=useState(undefined);const canonicalForSection=value=>{if(typeof value!==\"string\"||!value.trim())return undefined;try{const text=String(value).trim();const candidate=new URL(text.startsWith(\"/\")||text.includes(\"://\")?text:`/${section}/${text}`,base);const parts=candidate.pathname.split(\"/\").filter(Boolean);if(parts.length!==2||parts[0]!==section||!/^[a-z0-9][a-z0-9._-]*$/i.test(parts[1]))return undefined;return`${base}/${section}/${parts[1]}`;}catch{return undefined;}};useEffect(()=>{const canonical=document.querySelector('link[rel=\"canonical\"]')?.getAttribute(\"href\");setPageUrl(canonicalForSection(canonical)||canonicalForSection(window.location.pathname));},[section,title]);const url=pageUrl||canonicalForSection(slug);const resolvedSlug=url?.split(\"/\").pop();if(!String(title||\"\").trim())return null;const imageUrl=typeof image===\"string\"?image:image?.src;const article={\"@type\":section===\"newsroom\"?\"NewsArticle\":\"BlogPosting\",headline:title||undefined,description:description||undefined,image:imageUrl||undefined,datePublished:published,dateModified:modified&&(!published||modified>=published)?modified:published,publisher:{\"@id\":`${base}/#organization`},inLanguage:\"en-US\"};if(url){article[\"@id\"]=`${url}#article`;article.mainEntityOfPage=url;}const graph=[article];if(url&&title){graph.push({\"@type\":\"BreadcrumbList\",itemListElement:[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:`${base}/`},{\"@type\":\"ListItem\",position:2,name:section===\"newsroom\"?\"Newsroom\":\"Articles\",item:`${base}/${section}`},{\"@type\":\"ListItem\",position:3,name:title,item:url}]});}if(resolvedSlug===\"social-inflation-case-valuation\"){graph.push({\"@type\":\"FAQPage\",mainEntity:[{\"@type\":\"Question\",name:\"Is social inflation the same as general economic inflation or CPI?\",acceptedAnswer:{\"@type\":\"Answer\",text:\"No. AM Best’s definition concerns claims-cost growth beyond general economic inflation associated with societal and legal trends. The public release does not isolate social inflation within its commercial auto payment trend or identify its economic comparator as CPI.\"}},{\"@type\":\"Question\",name:\"Can social inflation value one claim?\",acceptedAnswer:{\"@type\":\"Answer\",text:\"Not on its own. Aggregate information does not establish the individual claim’s facts. Use it to identify assumptions worth reviewing, then distinguish that exercise from changes supported by matter records.\"}},{\"@type\":\"Question\",name:\"Does every verdict trend apply locally?\",acceptedAnswer:{\"@type\":\"Answer\",text:\"Do not assume that it does. Check the source population, jurisdictional relevance, period, and selection limits. This article’s AM Best comparison concerns commercial auto liability loss payments, not a local verdict dataset.\"}},{\"@type\":\"Question\",name:\"What records can change a valuation assumption?\",acceptedAnswer:{\"@type\":\"Answer\",text:\"Start with the disputed input. Wage proof, medical-cost records, or documents resolving conflicting dates may warrant reconsideration of the relevant assumption. Explain what the record changes, what it leaves unresolved, and why the revision follows.\"}}]});}const json=JSON.stringify({\"@context\":\"https://schema.org\",\"@graph\":graph}).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",\"data-turbolaw-seo\":\"article\",dangerouslySetInnerHTML:{__html:json}});}addPropertyControls(ArticleSchema,{section:{type:ControlType.Enum,title:\"Section\",options:[\"articles\",\"newsroom\"],defaultValue:\"articles\"},title:{type:ControlType.String,title:\"Title\"},description:{type:ControlType.String,title:\"Excerpt\"},slug:{type:ControlType.String,title:\"Slug\"},image:{type:ControlType.ResponsiveImage,title:\"Cover Image\"},datePublished:{type:ControlType.String,title:\"Date\"},dateModified:{type:ControlType.Date,title:\"Last Updated\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArticleSchema\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ArticleSchema.map"],"mappings":"A,+LAKG,SAAwBY,EAAc,EAAM,CAAC,GAAK,CAAC,QAAM,cAAY,OAAK,QAAM,gBAAc,gBAAcC,EAAYC,EAAQD,EAAM,UAAU,WAAW,WAAW,WAAiBE,EAAM,GAAG,CAAC,GAAG,CAACC,EAAE,OAAiB,IAAMC,EAAO,IAAI,KAAK,OAAOD,CAAC,CAAC,EAAE,OAAO,OAAO,MAAMC,EAAO,QAAQ,CAAC,EAAE,IAAA,GAAUA,EAAO,YAAY,CAAC,CAAC,MAAM,EAAE,EAAE,CAAE,EAAQC,EAAUH,EAAMI,CAAa,EAAQC,EAASL,EAAMM,CAAY,EAAQC,EAAK,sBAE7Z,CAACC,EAAQC,GAAYxB,EAAS,IAAA,EAAS,EAAQyB,EAAoB,GAAO,CAAC,GAAG,OAAOC,GAAQ,UAAWA,EAAM,KAAK,EAAmB,GAAG,CAAC,IAAMC,EAAK,OAA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