PageSourceSearch

https://platform.courtcorrect.com/js/7567.2a7ba4f699440eb864f2.js

js courtcorrect.com collected 2026-09-25 19:10:41 UTC 31,877 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcourtcorrect_platform=self.webpackChunkcourtcorrect_platform||[]).push([[7567],{42421(e,t,n){n.d(t,{B2:()=>b,Dp:()=>y,FN:()=>w,Fw:()=>p,Hs:()=>A,Ir:()=>a,Mn:()=>C,S1:()=>x,S6:()=>u,ZF:()=>D,dJ:()=>c,eL:()=>h,gd:()=>s,lJ:()=>k,lz:()=>l,nJ:()=>v,pS:()=>j,x0:()=>f,xd:()=>r});var o=n(78094),i=n(18824);const a=o.Ay.div.withConfig({componentId:"sc-19iq60u-0"})(["display:flex;flex-direction:column;margin-top:28px;margin-bottom:24px;background:#f7fcfa;border:2px solid #e4f6ed;border-radius:8px;@media ","{flex-direction:column;}@media ","{width:100%;}.clear-filters{font-size:14px;font-weight:400;color:rgb(0,131,71);cursor:pointer;width:fit-content;z-index:2;}"],i.A.w1440px,i.A.w800px),r=o.Ay.div.withConfig({componentId:"sc-19iq60u-1"})(["display:flex;justify-content:flex-end;margin:24px 24px -16px 0;gap:16px;align-items:center;"]),s=o.Ay.div.withConfig({componentId:"sc-19iq60u-2"})(["display:grid;grid-template-columns:repeat(4,1fr) 42px;gap:16px;padding:17px 24px 24px;.more-filters{grid-column:-2 / -1;display:flex;align-items:flex-start;margin-top:28px;}"]),l=o.Ay.div.withConfig({componentId:"sc-19iq60u-3"})(["width:calc(100% - 58px);box-sizing:border-box;display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:16px;justify-content:space-between;padding:17px 24px 24px 24px;margin-top:-16px;"]),d=({type:e})=>"search-bar"===e?(0,o.AH)(["position:relative;input{height:42px;padding-left:40px;border:1px solid #c9cccf;padding-right:",";}.search-icon{position:absolute;left:10px;top:52px;}button{position:absolute;top:48px;right:10px;width:80px;}"],e=>e.isSearchButton?"100px":"30px"):"custom-input"===e?(0,o.AH)(["position:relative;input{height:42px;border:1px solid #c9cccf;padding-right:",";}button{position:absolute;top:48px;right:10px;width:80px;}"],e=>e.isSearchButton?"100px":"30px"):"date-picker"===e?(0,o.AH)([".calendar_picker{width:100%;.calendar > div{top:90px;}input,fieldset{border-color:hsl(0,0%,80%) !important;}.Mui-focused{border:none !important;input{border:none !important;}fieldset{border-width:1px !important;}}.MuiFormControl-root{width:100%;}.MuiInputBase-root{margin-top:3px;height:42px;background:#fff;}input{width:100%;background:#fff;height:1.0075em;border-width:0px !important;font-size:14px;&::placeholder{font-weight:400 !important;font-size:14px;color:#6f7170;opacity:1;}&:hover{border:unset;}}}.calendar{width:100%;& > div{top:55px;width:575px !important;border-radius:4px;overflow:hidden;left:"," !important;right:",';.rdrStaticRanges{height:100%;justify-content:space-between;padding:16px;box-sizing:border-box;}.rdrDefinedRangesWrapper{width:290px !important;border-right:none !important;}& > div{width:100%;.rdrStaticRangeSelected{background-color:#e4f6ed !important;color:#008347 !important;font-family:"Inter";border-radius:4px;span{color:#008347 !important;}}.rdrStaticRange{border-bottom:none !important;font-size:14px !important;font-style:normal !important;font-weight:500 !important;line-height:20px !important;color:#6f7170 !important;font-family:"Inter";border-radius:4px;&:hover{background-color:transparent !important;color:#e4f6ed !important;span{background-color:#e4f6ed !important;color:#008347 !important;}}}& > .rdrDateRangePickerWrapper{width:100%;.rdrDateRangeWrapper{width:100%;box-shadow:none !important;}.rdrMonths{width:100%;.rdrMonth{width:95%;}}}}}}.filter-date{position:absolute;width:20px;bottom:14px;right:16px;z-index:9;color:var(--color-input-placeholder);&:hover{color:var(--color-input-value);cursor:pointer;}}'],e=>"left"===e.calendarPosition?"0":"unset",e=>"right"===e.calendarPosition&&"0"):void 0,c=o.Ay.div.withConfig({componentId:"sc-19iq60u-4"})(["position:relative;width:100%;.filter-x{position:absolute;right:37px;bottom:14px;width:20px;color:var(--color-input-placeholder);&:hover{color:var(--color-input-value);cursor:pointer;}@media ","{bottom:16px;}}.custom-filter-x{position:absolute;right:16px;top:54px;width:20px;color:var(--color-input-placeholder);&:hover{color:var(--color-input-value);cursor:pointer;}@media ","{bottom:16px;}}",""],i.A.w1046px,i.A.w1046px,d),p=o.Ay.div.withConfig({componentId:"sc-19iq60u-5"})(["display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px 16px;margin-bottom:24px;.edit-view{font-size:14px;font-weight:400;color:rgb(0,131,71);cursor:pointer;width:fit-content;}"]),x=o.Ay.div.withConfig({componentId:"sc-19iq60u-6"})(["display:flex;gap:16px;align-items:center;flex-wrap:wrap;.toggle-div{display:flex;align-items:center;gap:8px;}label{font-size:14px;font-weight:500;}p{font-size:14px;font-weight:400;color:#008347;cursor:pointer;}"]),h=o.Ay.div.withConfig({componentId:"sc-19iq60u-7"})(["background-color:#f7fcfa;display:flex;margin:0 0 20px;align-items:center;justify-content:center;border-radius:8px;height:46px;gap:5px;p{font-size:14px;margin-bottom:0;}.link{color:#2653c2;cursor:pointer;}"]),u=o.Ay.div.withConfig({componentId:"sc-19iq60u-8"})(["display:flex;align-items:center;margin-bottom:50px;@media ","{margin:40px 0;}button{margin-right:10px;}p{font-weight:400;font-size:14px;color:#6f7170;margin:0;cursor:pointer;}svg{color:#6f7170;margin-left:10px;margin-right:3px;margin-bottom:4px;cursor:pointer;}"],i.A.w1440px),g=({isDisabled:e,isSelected:t})=>e?(0,o.AH)(["border:1px solid #c9cccf;background:transparent;cursor:not-allowed;svg{path{fill:#c9cccf;}}"]):t?(0,o.AH)(["border:1px solid #26c281;background:#e4f6ed;cursor:pointer;svg{path{fill:#008347;}}"]):(0,o.AH)(["border:1px solid #c9cccf;background:#fff;cursor:pointer;svg{path{fill:#6f7170;}}"]),f=o.Ay.div.withConfig({componentId:"sc-19iq60u-9"})(["display:flex;justify-content:center;align-items:center;height:42px;min-width:42px;width:42px;border-radius:var(--input-text-border-radius);box-sizing:border-box;",""],g),m=({type:e})=>"Overdue"===e?(0,o.AH)(["color:#cf2d2d;background-color:#feccd1;font-weight:400;svg path{stroke:#cf2d2d;}"]):"Due"===e?(0,o.AH)(["color:#f9a825;background-color:#fff9c4;font-weight:400;svg path{stroke:#f9a825;}"]):(0,o.AH)(["color:#6f7170;font-weight:500;svg path{stroke:#6f7170;}"]),b=o.Ay.div.withConfig({componentId:"sc-19iq60u-10"})(["display:flex;align-items:center;gap:4px;border-radius:90px;padding:4px 10px 4px 6px;font-size:14px;white-space:nowrap;",""],m),w=o.Ay.button.withConfig({componentId:"sc-19iq60u-11"})(["position:relative;width:48px;height:48px;border:1px solid #d2d5d8;background:#fff;border-radius:4px;padding:0;display:flex;justify-content:center;align-items:center;cursor:pointer;color:#6f7170;"]),v=o.Ay.div.withConfig({componentId:"sc-19iq60u-12"})(["width:100%;margin:35px 0 0 0;display:flex;gap:24px;align-items:flex-end;justify-content:space-between;"]),y=o.Ay.div.withConfig({componentId:"sc-19iq60u-13"})(["margin-right:auto;p{font-weight:500;font-size:16px;color:#0f1310;margin:0;white-space:nowrap;}"]),C=o.Ay.div.withConfig({componentId:"sc-19iq60u-14"})(["margin-bottom:24px;"]),A=o.Ay.p.withConfig({componentId:"sc-19iq60u-15"})(["color:red !important;margin:0;"]),j=o.Ay.div.withConfig({componentId:"sc-19iq60u-16"})(["display:flex;align-items:center;gap:8px;&.noHandler{color:red;}"]),D=o.Ay.div.withConfig({componentId:"sc-19iq60u-17"})(["display:flex;align-items:center;gap:8px;"]),k=o.Ay.span.withConfig({componentId:"sc-19iq60u-18"})(["display:flex;height:20px;padding:2px 6px 2px 2px;align-items:center;gap:4px;border-radius:8px;width:fit-content;color:",";background:",";"],({$color:e})=>e,({$background:e})=>e)},64687(e,t,n){n.d(t,{t:()=>i});var o=n(96540);function i(){const e=(0,o.useRef)(null),t=(0,o.useRef)(null),n=(0,o.useRef)(!0),i=(0,o.useCallback)(e=>e.scrollHeight-e.scrollTop-e.clientHeight<=50,[50]),a=(0,o.useCallback)(()=>{n.current=!1},[]),r=(0,o.useCallback)(()=>{e.current&&n.current&&!i(e.current)&&(n.current=!1)},[i]),s=(0,o.useCallback)(t=>{const n=e.current;n&&n.scrollTo({top:n.scrollHeight,behavior:t})},[]),l=(0,o.useCallback)((e="smooth")=>{n.current&&s(e)},[s]),d=(0,o.useCallback)(e=>{n.current=!0,e&&s(e)},[s]);return{containerProps:{ref:e,onScroll:r,onWheel:a},bottomRef:t,scrollToBottom:l,enableAutoScroll:d}}}
1,43181(e,t,n){n.d(t,{W:()=>T});var o=n(96540),i=n(601),a=n(75737),r=n(69008),s=n(34164),l=n(74353),d=n.n(l),c=n(68567),p=n(97534),x=n(26451),h=n(56124),u=n(81810);const g={range:{},isSelected(e){const t=this.range();return(0,u.default)(e.startDate,t.startDate)&&(0,u.default)(e.endDate,t.endDate)}},f=e=>e?e.format("YYYY-MM-DD"):"",m=e=>!!e&&e.isValid();var b=n(30020),w=n(27827),v=n(36462),y=n(92998),C=n(66212),A=n(20543),j=n(19312),D=n(2118);const k={startOfWeek:(0,w.default)(new Date),endOfWeek:(0,v.default)(new Date),endOfTwoWeeks:(0,y.default)(new Date,-14),oneWeek:(0,y.default)(new Date,-7),endOfToday:(0,C.default)(new Date),startOfMonth:(0,A.default)(new Date),endOfMonth:(0,j.default)(new Date),endOfLastMonth:(0,j.default)((0,D.default)(new Date,-1)),monthBefore:(0,D.default)(new Date,-1),threeMonthsBefore:(0,D.default)(new Date,-3),sixMonthsBefore:(0,D.default)(new Date,-6),lastYear:(0,D.default)(new Date,-12)},S=[{label:"Last 7 days",range:()=>({startDate:k.oneWeek,endDate:k.endOfToday})},{label:"Last 2 weeks",range:()=>({startDate:k.endOfTwoWeeks,endDate:k.endOfToday})},{label:"Last month",range:()=>({startDate:k.monthBefore,endDate:k.endOfToday})},{label:"Last 3 months",range:()=>({startDate:k.threeMonthsBefore,endDate:k.endOfToday})},{label:"Last 6 months",range:()=>({startDate:k.sixMonthsBefore,endDate:k.endOfToday})},{label:"Last Year",range:()=>({startDate:k.lastYear,endDate:k.endOfToday})}].map(e=>({...g,...e}));var I=n(74848);const N=(0,o.memo)(e=>{const{ranges:t,onChange:n,minDate:o,maxDate:i}=e,[a]=t,r=a&&a.startDate===a.endDate;return(0,I.jsx)("div",{"data-testid":"dateRange",className:(0,s.$)("CSKZwLOr",r&&"Hzc1CnJD"),children:(0,I.jsx)(b.Ur,{editableDateInputs:!0,onChange:n,moveRangeOnFirstSelection:!1,ranges:t,fixedHeight:!0,showMonthAndYearPickers:!1,minDate:o,maxDate:i,staticRanges:S,inputRanges:[]})})}),z="WnEMONg_",R="UO2zUdml",T=(0,o.memo)(e=>{const{className:t,labelClassName:n,inputClassName:l,isDisabled:u=!1,isClearable:g=!0,label:b,error:w,startDate:v=null,endDate:y=null,onChange:C}=e,A=(0,o.useRef)(null),[j,D]=(0,o.useState)(!1),[k,S]=(0,o.useState)(!1),T=[v?d()(v):null,y?d()(y):null],M=()=>{if(A.current){const e=A.current.getBoundingClientRect();S(.5*window.innerWidth>e.left)}};(0,o.useEffect)(()=>(M(),window.addEventListener("resize",M),()=>{window.removeEventListener("resize",M)}),[]);const E=(0,o.useCallback)(e=>{m(e[0])&&m(e[1])&&C(f(e[0]),f(e[1]))},[C]),F=(0,o.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),u||D(e=>!e)},[u]),H=(0,o.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),u||C(null,null)},[u,C]),B=(0,o.useCallback)(e=>{u||D(e)},[u]),q=(0,o.useCallback)(e=>{const{startDate:t,endDate:n}=e.selection;if(t&&n){const e=d()(t),o=d()(n);m(e)&&m(o)&&C(f(e),f(o))}},[C]),O=Boolean(v||y),_=!!w||O&&(!m(T[0])||!m(T[1])),L={startDate:T[0]?.toDate()??new Date,endDate:T[1]?.toDate()??new Date,key:"selection"};return(0,I.jsxs)("div",{"data-testid":"inputDateRange",className:(0,s.$)("G9Fn8i8P",t),children:[b?(0,I.jsx)(x.J,{className:n,isDisabled:u,children:b}):null,(0,I.jsxs)(a.$,{dateAdapter:i.R,children:[(0,I.jsxs)("div",{className:"dia_A6cA",onClick:()=>B(!0),children:[(0,I.jsx)(r.C,{ref:A,disabled:u,value:T,format:"DD/MM/YYYY",minDate:d()("1900-01-01"),maxDate:d()("2100-12-31"),onChange:E,slotProps:{textField:{disabled:u,placeholder:"DD/MM/YYYY – DD/MM/YYYY",error:_,InputProps:{className:(0,s.$)("Ra2Ojloi",l),startAdornment:(0,I.jsx)("div",{"data-testid":"calendarBtn",className:(0,s.$)(z,u&&R),onClick:F,children:(0,I.jsx)(p.I,{name:"calendar",size:16})}),endAdornment:g&&(v||y)&&(0,I.jsx)("button",{"data-testid":"clearBtn","aria-label":"Clear input",type:"button",className:(0,s.$)(z,u&&R),onClick:H,children:(0,I.jsx)(p.I,{name:"cross-filled",size:16})})}}}}),j?(0,I.jsx)("div",{className:(0,s.$)("asAATeQ0",k&&"dXmuaxTG"),children:(0,I.jsx)(N,{ranges:[L],onChange:q,minDate:new Date(1900,0,1),maxDate:new Date(2100,11,31)})}):null]}),(0,I.jsx)(h.h,{isOpen:j,onClick:()=>B(!1)})]}),(0,I.jsx)(c.y,{children:w})]})})},61516(e,t,n){n.d(t,{R:()=>o.R});var o=n(50712)},67686(e,t,n){n.d(t,{A:()=>p});var o=n(30721),i=n(97534),a=n(78094),r=n(18824);const s=a.Ay.div.withConfig({componentId:"sc-kzy0bw-0"})(["position:relative;width:auto;h1{margin-bottom:24px;}@media ","{margin-left:0;width:100%;button{right:0px;}}"],r.A.w800px),l=a.Ay.p.withConfig({componentId:"sc-kzy0bw-1"})(["font:var(--font-l-regular);color:#6f7170 !important;margin-bottom:0 !important;"]),d=a.Ay.div.withConfig({componentId:"sc-kzy0bw-2"})(["display:flex;gap:10px;position:absolute;top:0;right:0;button{min-width:113px;}"]);var c=n(74848);
1const p=({title:e,subtitle:t,buttonText:n,secondaryButtonText:a,onButtonClick:r,onSecondaryButtonClick:p,containerStyle:x})=>(0,c.jsxs)(s,{style:x,children:[(0,c.jsx)("h1",{children:e}),t&&(0,c.jsx)(l,{children:t}),(0,c.jsxs)(d,{children:[a&&(0,c.jsx)(o.A,{variant:"white",text:a,onClick:p}),n&&(0,c.jsx)(o.A,{variant:"green",text:n,onClick:r,svgBefore:(0,c.jsx)(i.I,{name:"plus"})})]})]})},27822(e,t,n){n.d(t,{A:()=>i});var o=function(e){return e.ASSISTANT="assistant",e.USER="user",e}(o||{});const i=o},23968(e,t,n){n.d(t,{A:()=>i});var o=function(e){return e.GENERAL="General",e.FINANCE="Finance",e.FINANCE_IR="Finance_IR",e.HOUSING="Housing",e.DENTIST="Dentistry",e}(o||{});const i=o},50712(e,t,n){n.d(t,{R:()=>l});var o=n(99418),i=n(73557);var a=n(74848);const r=new i.A({html:!0,breaks:!0,linkify:!0}),s=r.renderer.rules.link_open||function(e,t,n,o,i){return i.renderToken(e,t,n)};r.renderer.rules.link_open=(e,t,n,o,i)=>{const a=e[t];return a.attrSet("target","_blank"),a.attrSet("rel","noopener noreferrer"),s(e,t,n,o,i)};const l=({content:e})=>{if(!e)return null;const t=e.replace(/{{([^{}]*)}}/g,'<span style="background-color:#FFD580">$1</span>').replace(/\[\[([^[\]]*)\]\]/g,'<span style="font-size:16px; font-weight: bold;">$1</span>'),n=r.render(t),i=o.A.sanitize(n,{USE_PROFILES:{html:!0},ADD_ATTR:["target","rel","style"]});return(0,a.jsx)("div",{"data-testid":"markdownText",className:"dHqnrXx6",dangerouslySetInnerHTML:{__html:i}})}},22074(e,t,n){n.d(t,{A:()=>g});var o=n(97534),i=n(78094);const a=i.Ay.div.withConfig({componentId:"sc-1g13ge-0"})(["display:flex;justify-content:center;margin-top:",";button{background-color:#fff;color:var(--color-button-text);border:1px solid #cfd0cf;border-radius:8px;color:#6f7170;height:30px;min-width:80px;font-family:system-ui;}"],e=>e.wrapperMarginTop),r=(0,i.AH)(["cursor:",";width:36px;height:36px;border:1px solid #8c9196;display:flex;justify-content:center;align-items:center;svg{opacity:",";}"],e=>!e.disabled&&"pointer",e=>e.disabled&&"0.5"),s=i.Ay.div.withConfig({componentId:"sc-1g13ge-1"})([""," border-radius:4px 0px 0px 4px;"],r),l=i.Ay.div.withConfig({componentId:"sc-1g13ge-2"})([""," border-radius:0px 4px 4px 0px;"],r),d=i.Ay.div.withConfig({componentId:"sc-1g13ge-3"})(["display:flex;align-items:center;margin:0 10px;"]),c=i.Ay.div.withConfig({componentId:"sc-1g13ge-4"})(["display:flex;align-items:center;justify-content:center;width:36px;height:36px;color:",';font-family:"Inter";margin:0 2px;&:hover{cursor:',";opacity:",";}"],e=>e.selected?"#26C281":"#6F7170",e=>!e.selected&&"pointer",e=>!e.selected&&"0.8");var p=n(74848);const x=i.Ay.svg.withConfig({componentId:"sc-1ocl124-0"})(["cursor:not-allowed;"]),h=()=>(0,p.jsxs)(x,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("path",{d:"M13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z",fill:"#6F7170"}),(0,p.jsx)("path",{d:"M9 12C9 12.5523 8.55228 13 8 13C7.44772 13 7 12.5523 7 12C7 11.4477 7.44772 11 8 11C8.55228 11 9 11.4477 9 12Z",fill:"#6F7170"}),(0,p.jsx)("path",{d:"M17 12C17 12.5523 16.5523 13 16 13C15.4477 13 15 12.5523 15 12C15 11.4477 15.4477 11 16 11C16.5523 11 17 11.4477 17 12Z",fill:"#6F7170"})]}),u="three_dots",g=({currentPage:e,setCurrentPage:t,pages:n,wrapperMarginTop:i="24px"})=>{const r=((e,t)=>{let n=!1;const o=[],i=n=>1===n||n===e||n>=t-2&&n<=t+2;for(let t=1;t<=e;t++)i(t)?(o.push(t),n=!1):n||(o.push(u),n=!0);return o}
1)(n,e);return n<=0?null:(0,p.jsxs)(a,{wrapperMarginTop:i,children:[(0,p.jsx)(s,{disabled:1===e,onClick:()=>1!==e&&t(e-1),children:(0,p.jsx)(o.I,{name:"chevron-left",size:20})}),(0,p.jsx)(d,{children:r.map((n,o)=>(0,p.jsx)(c,{selected:e===n,onClick:()=>![e,u].includes(n)&&t(n),children:n===u?(0,p.jsx)(h,{}):n},`pag_${o}`))}),(0,p.jsx)(l,{disabled:e===n,onClick:()=>e!==n&&t(e+1),children:(0,p.jsx)(o.I,{name:"chevron-right",size:20})})]})}},54178(e,t,n){n.d(t,{A:()=>A});var o=n(96540),i=n(3561),a=n(84166),r=n(30721),s=n(97168),l=n(23968),d=n(95093),c=n.n(d),p=n(61225),x=n(64687),h=n(61516),u=n(81342),g=n(14946),f=n(86928),m=n(31429),b=n(42289),w=n(27822),v=n(93896),y=n(74848);const C=({chatHistory:e,setChatHistory:t,dataset:n,scrollToBottom:s,enableAutoScroll:l})=>{const d=(0,p.wA)(),c=(0,o.useRef)(),[x,h]=(0,o.useState)(!1),g=(0,p.d4)(e=>e.params.quickSearchFosModal),C=a.A.CancelToken.source(),A=o=>{if((0,m.QI)(o))return d((0,u.nm)({message:"Please enter a question"}));l("auto"),h(!0),t([...e,{role:w.A.USER,content:o},{role:w.A.ASSISTANT,content:"AI is thinking..."}]),c.current.value="",(0,f.A)({url:"lexi/fos-qa",method:"POST",data:{unique_id:g.document_id,database:n,conversation:[...e,{role:w.A.USER,content:o}]},timeout:3e5,onDownloadProgress:n=>(0,b.z)(n,n=>{t([...e,{role:w.A.USER,content:o},{role:w.A.ASSISTANT,content:n}]),s("smooth")}),cancelToken:C.token}).then(({data:n})=>{Promise.resolve(n),t([...e,{role:w.A.USER,content:o},{role:w.A.ASSISTANT,content:n}])}).catch(()=>{t(e.slice(0,-1))}).finally(()=>h(!1))};(0,o.useEffect)(()=>()=>{C.cancel("Component unmounted")},[]);const j=(0,o.useCallback)(e=>{x||"Enter"===e.key&&(e.preventDefault(),A(c.current?.value?.trim()))},[x,A]);return(0,y.jsxs)(v.Hi,{children:[(0,y.jsxs)("div",{className:"inputContainer",children:[(0,y.jsx)(i.A,{ref:c,onInput:()=>c.current?.scrollIntoView({behavior:"smooth",block:"start"}),onKeyDown:j,placeholder:"Ask a question about this case in your own words"}),(0,y.jsx)(r.A,{text:"Ask",variant:"green",size:"small",onClick:()=>!x&&A(c.current?.value?.trim())})]}),(0,y.jsx)("div",{className:"suggestedQuestions",children:["Summarise what was decided and why","What kind of compensation was awarded?","What could have been done to prevent the dispute?"].map((e,t)=>(0,y.jsx)("div",{className:"question",onClick:()=>{c.current.value=e},children:e},`question-${t}`))})]})},A=()=>{const e=(0,p.wA)(),t=(0,p.d4)(e=>e.params.quickSearchFosModal),[n,i]=(0,o.useState)([]),a=(0,o.useRef)(),r=(0,p.d4)(e=>e.auth.user),{containerProps:d,bottomRef:u,scrollToBottom:f,enableAutoScroll:m}=(r.classification,l.A.DENTIST,r.classification,l.A.HOUSING,r.classification,l.A.FINANCE_IR,(0,x.t)()),b=r.classification===l.A.FINANCE?"Financial Ombudsman":r.classification===l.A.FINANCE_IR?"Irish Financial Ombudsman":null,A=e=>e.role===w.A.ASSISTANT?(0,y.jsx)("img",{src:"/img/lexi.svg",alt:"Lexi pic"}):r.photo?(0,y.jsx)("img",{src:r.photo,alt:"profile pic"}):`${r.first_name?.charAt(0)||""}${r.last_name?.charAt(0)||""}`;return(0,o.useEffect)(()=>{!t.meta&&i([])},[t]),t.meta?(0,y.jsx)(v.LH,{children:(0,y.jsx)(s.A,{...t,primary_action_click:()=>e((0,g.du)({quickSearchFosModal:{}})),primary_action_label:!b&&"Close",onClose:()=>e((0,g.du)({quickSearchFosModal:{}})),title:"Document Q&A",bottomComponentAlwaysVisible:()=>b&&(0,y.jsx)(C,{dataset:b,chatHistory:n,setChatHistory:i,scrollToBottom:f,enableAutoScroll:m}),ref:a,children:(0,y.jsxs)(v.DS,{...d,children:[(0,y.jsxs)("div",{className:"fosModalHeader",children:[(0,y.jsx)("a",{href:t.meta.url,target:"_blank",rel:"noreferrer",children:t.meta.name}),(0,y.jsx)(v.c4,{color:"green",margin:"0 0 16px 0",isDotted:!0,children:c()(t.meta.date).format("LL")})]}),(0,y.jsx)("section",{style:{fontSize:"14px",color:"#0F1310",textAlign:"justify",lineHeight:"150%",fontWeight:"400"},children:t.content.replaceAll("","")}),(0,y.jsxs)("div",{className:"case-info",children:[(0,y.jsxs)("section",{children:[(0,y.jsx)("div",{children:"Category"}),(0,y.jsx)("span",{children:t.meta.category})]}),(0,y.jsxs)("section",{children:[(0,y.jsx)("div",{children:"Decision"}),(0,y.jsx)("span",{children:t.meta.upheld?"Upheld":"Not upheld"})]}),(0,y.jsxs)("section",{children:[(0,y.jsx)("div",{children:"Company"}),(0,y.jsx)("span",{children:t.meta.company})]})]}),n.map((e,t)=>(0,y.jsxs)(o.Fragment,{children:[e.role===w.A.USER&&(0,y.jsx)("div",{className:"breakLine",style:t===n.length-1?{margin:"16px -16px"}:{}}),(0,y.jsxs)("div",{className:"messageContainer",children:[(0,y.jsx)("div",{className:"avatar",style:e.role===w.A.ASSISTANT?{backgroundColor:"transparent"}:{},children:A(e)}),(0,y.jsx)(h.R,{content:e.content})]})]})),(0,y.jsx)("div",{id:"chat-bottom",ref:u})]})})}):null}},93896(e,t,n){n.d(t,{AW:()=>a,DS:()=>s,Hi:()=>l,LH:()=>r,c4:()=>i});var o=n(78094);const i=o.Ay.div.withConfig({componentId:"sc-18ztu10-4"})(["display:flex;padding:4px 8px;align-items:flex-start;gap:10px;border-radius:90px;font-size:14px;width:max-content;margin:",";::before{content:",";}",""],({margin:e})=>e||"auto",({isDotted:e})=>e?"•":"",({color:e})=>{switch(e?.toLowerCase()){case"red":return"background-color: #FECCD1; color: #CF2D2D;";case"green":return"background-color: #BDE9D2; color: #008347;";case"blue":return"background-color: #C7D7E7; color: #2653C2;";case"yellow":return"background-color: #FFF9C4; color: #F9A825;";case"cyan":return"background-color: #BCDBDF; color: #3EBBCE;"}}),a=o.Ay.div.withConfig({componentId:"sc-18ztu10-5"})(["div.name{color:rgb(38,83,194);font-weight:600;line-height:20px;cursor:pointer;width:fit-content;margin-bottom:20px;}div.description{font-size:14px;color:#0f1310;text-align:justify;line-height:150%;max-width:600px;font-weight:400;}section.case-info{div{color:rgb(15,19,16);font-size:14px;font-weight:400;line-height:16px;margin:18px 0px 4px;}span{color:rgb(15,19,16);font-size:14px;font-weight:600;line-height:20px;margin-bottom:20px;}}"]),r=o.Ay.div.withConfig({componentId:"sc-18ztu10-6"})(["div.modalBody{max-width:645px;max-height:45vh;margin-top:-260px;div.content{max-height:45vh;background:white;}}"]),s=o.Ay.div.withConfig({componentId:"sc-18ztu10-7"})(["padding:8px 0;a{color:#2653c2;font-size:16px;font-weight:600;line-height:24px;
1cursor:pointer;}div.breakLine{height:1px;background-color:#e4e5e7;margin:16px 0;}div.messageContainer{display:flex;align-items:center;padding:16px 0;div.avatar{width:32px;height:32px;border-radius:50%;background-color:#26c281;color:white;font-size:14px;font-weight:400;display:flex;align-items:center;justify-content:center;margin-right:10px;align-self:baseline;flex:none;img{width:inherit;height:inherit;border-radius:inherit;}}div.message{white-space:pre-line;max-width:1000px;font-size:14px;font-weight:400;color:#0f1310;}}div.fosModalHeader{display:flex;align-items:baseline;justify-content:space-between;margin:0 4px;}section{padding:18px 4px;:not(:last-of-type){border-bottom:1px solid #e4e5e7;}}div.case-info{div{color:#0f1310;font-size:14px;font-weight:400;line-height:16px;}span{color:#0f1310;font-size:14px;font-weight:600;line-height:20px;margin-bottom:20px;}}"]),l=o.Ay.div.withConfig({componentId:"sc-18ztu10-8"})(['padding:24px 16px;div.inputContainer{border-radius:4px;border:1px solid #e4e5e7;display:flex;align-items:center;textarea{border:0;background:#fff;border-radius:4px;outline:none;flex:1;max-width:inherit;resize:none;height:20px;font-family:Inter,sans-serif;text-align:justify;padding:16px 5px 16px 16px;}button{display:flex;padding:8px 16px;margin-right:8px;:before{content:url("/img/arrow_up.svg");line-height:0;}}}div.suggestedQuestions{display:flex;flex-wrap:wrap;div.question{border-radius:4px;background:#e4f6ed;padding:4px 8px;gap:10px;color:#008347;font-size:14px;font-weight:500;line-height:20px;cursor:pointer;transition:background-color 200ms linear;white-space:nowrap;margin-top:16px;:not(:last-of-type){margin-right:5px;}:hover{background:#d1f6e3;}}}div.breakLine{height:1px;background-color:#e4e5e7;margin:16px 0;}'])},77567(e,t,n){n.r(t),n.d(t,{default:()=>E});var o=n(28723),i=n(96540),a=n(95312),r=n(95093),s=n.n(r),l=n(61225),d=n(97534),c=n(29577),p=n(98114),x=n(81342),h=n(14946),u=n(86928),g=n(22074),f=n(42512),m=n(67686),b=n(43181);var w=n(34164),v=n(74848);const y=({label:e,startDate:t,endDate:n,onChange:o,noTopPadding:i})=>(0,v.jsx)(b.W,{className:(0,w.$)("HNGkWoGd",i&&"qatrucHq"),labelClassName:"Cvmw7M1h",inputClassName:"hF3tFHBm",label:e,startDate:t,endDate:n,onChange:o});var C=n(42421),A=n(54178),j=n(78094);const D=j.Ay.div.withConfig({componentId:"sc-lv1193-0"})(['display:flex;margin-top:16px;div.dropdown{flex:1;}div.date-field{display:flex;flex:1;flex-direction:row;margin:0;}div.daterange-container{right:0;left:auto;top:60px;}div.calendar-container{display:flex;justify-content:space-around;align-items:center;border:1px solid #c9cccf;border-radius:4px;padding-right:16.5px;transition:all 100ms;:hover{border:1px solid #6f7170;}div[class*="MuiInputBase-root"]{padding:0;margin-right:10px;}input{max-height:14px;
1min-width:200px;font-size:14px;}fieldset{border:0;}button.rdrStaticRangeSelected > span{color:rgb(38,194,129);}}']),k=j.Ay.div.withConfig({componentId:"sc-lv1193-1"})(["display:flex;justify-content:flex-end;margin-top:16px;button{color:#008347;font-size:14px;font-weight:500;line-height:20px;cursor:pointer;background:none;border:none;:hover{text-decoration:underline;}}"]),S=j.Ay.div.withConfig({componentId:"sc-lv1193-2"})(["display:flex;margin-top:32px;padding:48px 0 12px 0;border-top:1px solid #e4e5e7;align-items:center;div.result-count{flex:1;flex-direction:column;p{margin:0;}p.header{color:#0f1310;font-size:16px;font-weight:600;line-height:24px;margin-bottom:6px;}p.subheader{color:#6f7170;font-size:12px;font-weight:400;line-height:16px;}}div.filters{display:flex;}div.dropdown{min-width:200px;}svg.filter-x{margin-bottom:4px;}"]),I=j.Ay.div.withConfig({componentId:"sc-lv1193-3"})(["padding-bottom:32px;border-bottom:1px solid #e4e5e7;div.date{color:#6f7170;font-size:12px;font-weight:600;line-height:16px;text-transform:uppercase;}div.title{margin:18px 0 8px 0;color:#008347;font-size:16px;font-weight:600;line-height:24px;cursor:pointer;width:max-content;:hover{text-decoration:underline;}}div.text{color:#6f7170;font-size:14px;font-weight:400;line-height:20px;}div.metadata{display:flex;margin-top:24px;p.header{color:#6f7170;font-size:12px;font-weight:400;line-height:16px;}p.value{color:#0f1310;font-size:14px;font-weight:600;line-height:20px;}div.meta{flex:1;}}"]),N=j.Ay.div.withConfig({componentId:"sc-lv1193-4"})(["transition:opacity 400ms ease-out;opacity:",";div.search-result{margin-top:32px;}"],({unmount:e})=>e?0:1),z=j.Ay.div.withConfig({componentId:"sc-lv1193-5"})(["margin-top:64px;button{width:248px;margin-left:14px;}"]),R=({containerStyles:e,disableClear:t,onChange:n,value:o,...r})=>{const[s,l]=(0,i.useState)(null);return(0,i.useEffect)(()=>{n&&n(s?.value)},[s]),(0,i.useEffect)(()=>{o||l(null)},[o]),(0,v.jsx)(C.dJ,{style:{display:"flex",flex:1,...e},children:(0,v.jsx)(a.A,{isClearable:s&&!t,...r,onChange:l,value:s})})},T=({item:e})=>{const t=(0,l.wA)();return(0,v.jsxs)(I,{className:"search-result",children:[(0,v.jsx)("div",{className:"date",children:s()(e.meta.date).format("MMM D Y")}),(0,v.jsx)("div",{className:"title",onClick:()=>t((0,h.du)({quickSearchFosModal:e})),children:e.meta.name}),(0,v.jsx)("div",{className:"text",children:e.content}),(0,v.jsxs)("div",{className:"metadata",children:[(0,v.jsxs)("div",{className:"meta",children:[(0,v.jsx)("p",{className:"header",children:"Category"}),(0,v.jsx)("p",{className:"value",children:e.meta.category})]}),(0,v.jsxs)("div",{className:"meta",children:[(0,v.jsx)("p",{className:"header",children:"Decision"}),(0,v.jsx)("p",{className:"value",children:e.meta.upheld?"Upheld":"Not upheld"})]}),(0,v.jsxs)("div",{className:"meta",children:[(0,v.jsx)("p",{className:"header",children:"Company"}),(0,v.jsx)("p",{className:"value",children:e.meta.company})]})]})]})},M=()=>{const[e,t]=(0,i.useState)([]),[n,o]=(0,i.useState)(!1),[a,r]=(0,i.useState)(20),[s,h]=(0,i.useState)([]),[b,w]=(0,i.useState)(!1),[C,j]=(0,i.useState)({}),[I,M]=(0,i.useState)(1),E=(0,l.wA)(),[F,H]=(0,i.useState)([]),[B,q]=(0,i.useState)(""),O=(t,n)=>{if(!e||0===e.length)return[];const o=new Set;e.forEach(e=>o.add(e.meta[t].toString()));const i=Array.from(o);return i.sort(),n?i.map(e=>({label:n[e],value:e})):i.map(e=>({label:e,value:e}))},_=()=>{const e=B.trim()||"";if(0===e.length)return E((0,x.nm)({message:"Search query cannot be empty."}));w(!0),u.A.post("search/regulatory-search",{query:e}).then(e=>{t(e.data?.cases)}).catch(()=>E((0,x.nm)({message:"Error while retrieving data"}))).finally(()=>w(!1))};return(0,i.useEffect)(()=>{(e||[]).length>0&&o(!0)},[e]),(0,i.useEffect)(()=>{H(s.slice(a*(I-1)).slice(0,a))},[I,s,a]),(0,i.useEffect)(()=>{const t=(e||[]).filter(e=>{if(C.category&&e.meta.category!==C.category)return!1;if(C.decision&&e.meta.upheld.toString()!==C.decision)return!1;if(C.company&&e.meta.company!==C.company)return!1;if(C.selectedStartDate){const t=new Date(e.meta.date),n=new Date(C.selectedStartDate);if(t.setHours(0,0,0,0),n.setHours(0,0,0,0),t.valueOf()<n.valueOf())return!1}if(C.selectedEndDate){const t=new Date(e.meta.date),n=new Date(C.selectedEndDate);if(t.setHours(0,0,0,0),n.setHours(0,0,0,0),t.valueOf()>n.valueOf())return!1}return!0});"date"===C.sortBy&&t.sort((e,t)=>
1{const n=new Date(e.meta.date),o=new Date(t.meta.date);return n<o?-1:n>o?1:0}).reverse(),h(t)},[C,e]),(0,i.useEffect)(()=>{M(1)},[C,a]),(0,v.jsxs)("div",{children:[b&&(0,v.jsx)(f.A,{}),(0,v.jsx)(A.A,{}),(0,v.jsx)(m.A,{containerStyle:{justifyItems:"center"},title:"AI-Powered Regulatory Search",subtitle:"Use the search engine to search for publications from courts and regulators."}),(0,v.jsxs)(z,{style:{display:"flex"},children:[(0,v.jsx)(c.S,{inputClassName:"jcNuo30n",placeholder:"Search",value:B,onChange:q,onKeyDown:e=>{"Enter"===e.key&&_()},extraContent:(0,v.jsx)(d.I,{name:"search",size:20,className:"aFcntN17"})}),(0,v.jsx)(p.$,{onClick:_,children:"Search"})]}),(0,v.jsxs)(N,{unmount:!n,children:[(0,v.jsxs)(D,{children:[(0,v.jsx)(R,{placeholder:"Category",isRedBorders:!1,options:O("category"),onChange:e=>j({...C,category:e}),value:C.category}),(0,v.jsx)(R,{placeholder:"Decision",isRedBorders:!1,options:O("upheld",{true:"Upheld",false:"Not upheld"}),containerStyles:{marginLeft:"16px"},onChange:e=>j({...C,decision:e}),value:C.decision}),(0,v.jsx)(R,{placeholder:"Company",isRedBorders:!1,options:O("company"),containerStyles:{margin:"0 16px"},onChange:e=>j({...C,company:e}),value:C.company}),(0,v.jsx)(y,{noTopPadding:!0,startDate:C.selectedStartDate,endDate:C.selectedEndDate,onChange:(e,t)=>
1j({...C,selectedStartDate:e,selectedEndDate:t})})]}),(0,v.jsx)(k,{children:(0,v.jsx)("button",{onClick:()=>j({}),children:"Clear filters"})}),(0,v.jsxs)(S,{children:[(0,v.jsxs)("div",{className:"result-count",children:[(0,v.jsx)("p",{className:"header",children:"Results"}),(0,v.jsx)("p",{className:"subheader",children:`Showing results 1-${a} of ${e?.length||0}`})]}),(0,v.jsxs)(D,{children:[(0,v.jsx)(R,{placeholder:"Results per page",isRedBorders:!1,onChange:e=>e&&r(e),options:[{label:"5",value:5},{label:"10",value:10},{label:"20",value:20},{label:"50",value:50},{label:"100",value:100}],disableClear:!0}),(0,v.jsx)(R,{placeholder:"Sort by",isRedBorders:!1,options:[{label:"Relevance",value:"relevance"},{label:"Date",value:"date"}],containerStyles:{marginLeft:"16px"},onChange:e=>j({...C,sortBy:e}),disableClear:!0})]})]}),F.map((e,t)=>(0,v.jsx)(T,{item:e},`result-${t}`)),(0,v.jsx)(g.A,{currentPage:I,setCurrentPage:e=>M(e),pages:Math.ceil(s.length/a)})]})]})},E=()=>(0,v.jsx)(o.A,{isSidebar:!0,children:(0,v.jsx)(M,{})})}}]);

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.