PageSourceSearch

https://havenui.vercel.app/_next/static/chunks/pages/bias/public/[slug]-60bd73094a77f5e0.js

js havenui.vercel.app collected 2026-10-03 07:04:24 UTC 6,743 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i=Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="472859ac-06f2-4b9c-9d49-1ef0c9b86a19",e._sentryDebugIdIdentifier="sentry-dbid-472859ac-06f2-4b9c-9d49-1ef0c9b86a19")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5029],{3640:function(e,i,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/bias/public/[slug]",function(){return s(19964)}])},61639:function(e,i,s){"use strict";s.d(i,{Z:function(){return SimpleModal}});var l=s(85893),o=s(35541),n=s(19778),r=s(14581),c=s(64859),t=s(66205),d=s(54346),a=s(14253);function SimpleModal(e){var i;return(0,l.jsxs)(o.u_,{size:null!==(i=e.size)&&void 0!==i?i:"xl",isOpen:e.isOpen,onClose:e.onClose,autoFocus:!1,children:[(0,l.jsx)(n.Z,{}),(0,l.jsxs)(r.h,{children:[(0,l.jsx)(c.x,{children:e.title}),!e.hideClose&&(0,l.jsx)(t.o,{}),(0,l.jsx)(d.f,{pb:6,overflow:(null==e?void 0:e.hideScroll)?null:"auto",children:e.children}),(0,l.jsx)(a.m,{children:e.footer})]})]})}},15982:function(e,i,s){"use strict";s.d(i,{Z:function(){return BiasReport}});var l=s(85893),o=s(53978),n=s(13990),r=s(40607),c=s(22757),t=s(48244),d=s(57035),a=s(25694),u=s(4260),h=s(34292),x=s(32883),p=s(79970),b=s(71293),f=s(93108),m=s(55281),j=s(85970),w=s(5418),_=s(57169),S=s(67294),g=s(61639),v=s(21818);function SimpleShareModal(e){let[i,s]=(0,S.useState)(!1);if((0,S.useEffect)(()=>{s(!0)},[]),i)return(0,l.jsx)(g.Z,{isOpen:e.isOpen,onClose:e.onClose,title:e.title,children:(0,l.jsxs)(m.K,{spacing:4,children:[(0,l.jsx)(b.x,{children:e.label}),(0,l.jsxs)(h.U,{children:[(0,l.jsx)(v.cG,{url:window.location.href,children:(0,l.jsx)(v.LQ,{size:32,round:!0})}),(0,l.jsx)(v.Dk,{url:window.location.href,children:(0,l.jsx)(v.Vq,{size:32,round:!0})}),(0,l.jsx)(v.B,{url:window.location.href,children:(0,l.jsx)(v.Zm,{size:32,round:!0})}),(0,l.jsx)(v.r2,{url:window.location.href,children:(0,l.jsx)(v.pA,{size:32,round:!0})}),(0,l.jsx)(v.N0,{url:window.location.href,children:(0,l.jsx)(v.ud,{size:32,round:!0})})]})]})})}function BiasReport(e){var i,s,v,y;let[k,C]=(0,S.useState)(null),[E,z]=(0,S.useState)(!1),[O,B]=(0,S.useState)(!1),[I,Z]=(0,S.useState)(!1),{onCopy:N,value:D,setValue:L,hasCopied:M}=(0,o.V)("https://www.aibiasindex.com/pubic/".concat(null===(i=e.llmbiScore)||void 0===i?void 0:i.ref_id));return((0,S.useEffect)(()=>{var i,s;E?L("<iframe src='https://www.aibiasindex.com/pubic/".concat(null===(i=e.llmbiScore)||void 0===i?void 0:i.ref_id,'\' width="500px" height="400px"></iframe>')):L("https://www.aibiasindex.com/pubic/".concat(null===(s=e.llmbiScore)||void 0===s?void 0:s.ref_id))},[E]),(0,S.useEffect)(()=>{let i={},s=window.localStorage.getItem("aibias_reports");if(s){let i=JSON.parse(s);console.log("localReports",i),console.log("ref id",e.llmbiScore.ref_id),console.log(i.includes(e.llmbiScore.ref_id)),i.includes(e.llmbiScore.ref_id)&&B(!0)}for(let s of(console.log("annotated resposnes",Object.keys(e.llmbiScore.annotated_responses)),Object.keys(e.llmbiScore.annotated_responses))){console.log("key is",s);let l=e.llmbiScore.annotated_responses[s];if(console.log("data iss=====",l),i[l.category]){let e=i[l.category];console.log("existing cat",e),e.total_score+=l.llmbi_score,e.responses.push({prompt:s,...l})}else i[l.category]={total_score:l.llmbi_score,responses:[{prompt:s,...l}]}}console.log("local resposnes cat",i),C(i),Object.keys(i).map(e=>console.log(e))},[]),e.isEmbed)?(0,l.jsx)(n.Z,{children:(0,l.jsxs)(r.e,{children:[(0,l.jsxs)(c.X,{size:"xl",mt:8,children:[e.llmbiScore.name," Bias Results"]}),(0,l.jsxs)(t.k,{mt:4,children:[(0,l.jsx)(d.d,{children:"LLMBI Composite Score"}),(0,l.jsx)(a.J,{children:e.llmbiScore.total_score}),(0,l.jsx)(u.v,{children:"0 is perfectly unbiased"})]}),(0,l.jsxs)(h.U,{justifyContent:"space-between",children:[(0,l.jsx)(x.r,{color:"blue",textDecoration:"underline",target:"_parent",href:"https://www.aibiasindex.com/bias/public/".concat(null===(s=e.llmbiScore)||void 0===s?void 0:s.ref_id),children:"View full report"}),(0,l.jsx)(x.r,{target:"_parent",href:"https://www.aibiasindex.com",children:(0,l.jsxs)(h.U,{children:[(0,l.jsx)(p.E,{rounded:"full",src:"/aibias.webp",height:"20px",w:"20px"}),(0,l.jsx)(b.x,{children:"AIBiasIndex"})]})})]})]})}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(c.X,{size:"2xl",mt:8,children:[e.llmbiScore.name," Bias Results"]}),(0,l.jsxs)(t.k,{mt:4,children:[(0,l.jsx)(d.d,{children:"LLMBI Composite Score"}),(0,l.jsx)(a.J,{children:e.llmbiScore.total_score}),(0,l.jsx)(u.v,{children:"0 is perfectly unbiased"}),O&&(0,l.jsxs)(h.U,{mt:4,children:[(0,l.jsx)(f.z,{colorScheme:"blue",onClick:()=>Z(!0),children:"Share"}),(0,l.jsx)(f.z,{onClick:()=>z(!0),children:"Embed on website"})]})]}),(0,l.jsx)(c.X,{mt:4,children:"Breakdown"}),(0,l.jsx)(m.K,{spacing:4,children:k&&Object.keys(k).map((e,i)=>(0,l.jsxs)(m.K,{mt:4,mb:4,children:[(0,l.jsx)(c.X,{size:"lg",children:e}),k[e].responses.map((e,i)=>(0,l.jsxs)(m.K,{mt:4,children:[(0,l.jsx)(b.x,{fontWeight:"bold",children:"Question"}),(0,l.jsx)(b.x,{children:e.prompt}),(0,l.jsx)(b.x,{fontWeight:"bold",children:"Agent response"}),(0,l.jsx)(b.x,{children:e.response}),(0,l.jsx)(b.x,{fontWeight:"bold",children:"LLMBI score"}),(0,l.jsx)(b.x,{children:e.llmbi_score})]},i))]},i))}),(0,l.jsx)(g.Z,{isOpen:E,onClose:()=>z(!1),children:(0,l.jsxs)(j.NI,{children:[(0,l.jsx)(w.l,{children:"Your Embed code"}),(0,l.jsx)(_.g,{isDisabled:!0,value:'<iframe src="https://www.aibiasindex.com/pubic/'.concat(null===(v=e.llmbiScore)||void 0===v?void 0:v.ref_id,'" width="100%" height="200px"></iframe>')}),(0,l.jsx)(f.z,{mt:2,colorScheme:"blue",onClick:N,children:M?"Copied":"Copy"})]})}),(0,l.jsx)(SimpleShareModal,{href:"https://www.aibiasindex.com/bias/public/".concat(null===(y=e.llmbiScore)||void 0===y?void 0:y.ref_id),title:"Share",isOpen:I,onClose:()=>Z(!1)})]})}},19964:function(e,i,s){"use strict";s.r(i),s.d(i,{__N_SSP:function(){return u},default:function(){return Public}});var l=s(85893),o=s(29033),n=s(15982),r=s(34296),c=s(22338),t=s(71293),d=s(55281),a=s(67294),u=!0;function Public(e){var i;return((0,a.useEffect)(()=>{console.log(e.report)}),e.embed)?(0,l.jsx)(d.K,{p:4,children:(0,l.jsx)(n.Z,{isEmbed:e.embed,llmbiScore:e.report})}):(0,l.jsxs)(r.Z,{children:[(0,l.jsx)(o.Z,{title:"".concat(null===(i=e.report)||void 0===i?void 0:i.name," Bias Benchmark Result")}),(0,l.jsxs)(c.W,{maxW:"container.xl",minH:"400px",children:[!e.report&&(0,l.jsx)(t.x,{children:"Sorry, we couldn't find that bias report"}),e.report&&(0,l.jsx)(d.K,{children:(0,l.jsx)(n.Z,{isEmbed:e.embed,llmbiScore:e.report})})]})]})}}},function(e){e.O(0,[3885,1789,4725,3331,2434,9774,2888,179],function(){return e(e.s=3640)}),_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.