1"use strict";(globalThis.webpackChunk_archive_intel_client_ui||=[]).push([[7840],{82381(e,s,a){a(50016);var t=a(90076);const n=()=>(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"40px",width:"100%"},children:[(0,t.jsx)("span",{style:{display:"inline-block",width:"8px",height:"8px",margin:"0 4px",borderRadius:"50%",background:"#b0b0b0",animation:"teams-dot-bounce 1s infinite",animationDelay:"0s"}}),(0,t.jsx)("span",{style:{display:"inline-block",width:"8px",height:"8px",margin:"0 4px",borderRadius:"50%",background:"#6e6e6e",animation:"teams-dot-bounce 1s infinite",animationDelay:"0.2s"}}),(0,t.jsx)("span",{style:{display:"inline-block",width:"8px",height:"8px",margin:"0 4px",borderRadius:"50%",background:"#333333",animation:"teams-dot-bounce 1s infinite",animationDelay:"0.4s"}}),(0,t.jsx)("style",{children:"\n @keyframes teams-dot-bounce {\n 0%, 80%, 100% { transform: scale(1); opacity: 0.7; }\n 40% { transform: scale(1.5); opacity: 1; }\n }\n "})]});a.d(s,["A",0,n])},55925(e,s,a){a.r(s),a.d(s,{default:()=>S});var t=a(50016),n=a(40763),i=a(40013),l=a(71521),r=a(75248),d=a(92658),c=a(76859),o=a(84351),m=a(39515),u=a(24944),h=a(16990),g=a(84474),A=a(14118),x=a(33031),v=a(2181),j=a(33598);var w=a(12213),k=a(35935),p=a(51746),b=a(9431),f=a(36412),y=a(90076);const S=e=>{var s;const a=(0,b.d4)(e=>e.tI.tenantId),S=(0,b.d4)(e=>e.aT.aT),N=(0,b.d4)(e=>e.uR.role);var C=(0,v.Zp)();const[F,I]=(0,t.useState)("BASIC_USER"!==N),[R,T]=(0,t.useState)(null),[E,L]=(0,t.useState)(""),[V,B]=(0,t.useState)(!1),[H,M]=(0,t.useState)({}),[_,D]=(0,t.useState)(""),[O,U]=(0,t.useState)(!1),P=()=>U(!1),[z,J]=(0,t.useState)(!1),K=()=>J(!1),[q,W]=(0,t.useState)([]),[Y,Z]=(0,t.useState)(!1),[$,G]=(0,t.useState)([]),[Q,X]=(0,t.useState)(0),ee=()=>Z(!1),[se,ae]=(0,t.useState)(!0),[te,ne]=(0,t.useState)(!1),[ie,le]=(0,t.useState)(!1),[re,de]=(0,t.useState)(!1),{register:ce,handleSubmit:oe,setValue:me,formState:{errors:ue},reset:he,watch:ge}=(0,k.mN)();(0,t.useEffect)(()=>{ie&&le(!1)},[H]),(0,t.useEffect)(()=>{re&&L(""),de(!1)},[re]),(0,t.useEffect)(()=>{var e,s=atob(null!==(e=localStorage.getItem("ucd"))&&void 0!==e?e:"");if("COMPLIANCE_OFFICER"===N)if(""===s||void 0===s)C("/access-denied");else{var a=JSON.parse(s);I(a.reviewLogs),ae(a.reviewLogs)}},[]);let Ae=ge();const[xe,ve]=(0,t.useState)(!1);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"page-contetn page-flagging page-zoom-review ",children:(0,y.jsx)("div",{className:"collapse-page",children:(0,y.jsxs)("div",{className:"data-container mt-5 pt-3",children:[(0,y.jsxs)(n.A,{className:"mb-3 align-items-center filter-row",children:[(0,y.jsx)(i.A,{lg:3,xxl:5,children:(0,y.jsx)(u.A,{Title:"Teams Chat Review"})}),(0,y.jsxs)(i.A,{lg:9,xxl:7,className:"d-flex justify-content-end gap-2",children:[(0,y.jsxs)(l.A,{className:"table-search-box",children:[(0,y.jsx)(l.A.Text,{id:"basic-addon1",children:(0,y.jsx)(h.IoSearchOutline,{className:"icon"})}),(0,y.jsx)(r.A.Control,{placeholder:"Search for anything",onKeyDown:e=>{"Enter"===e.key&&(L(e.currentTarget.value),H.keywords=e.currentTarget.value),""===e.currentTarget.value&&"Enter"===e.key&&(de(!0),Object.keys(H).length<=1&&M({}))},defaultValue:E},E)]}),se&&"BASIC_USER"!==N?(0,y.jsxs)("div",{className:"bg-white rounded px-3 d-flex text-nowrap gap-2 font-14 align-items-center",children:[(0,y.jsx)("span",{className:"mb-1",children:"Auto-mark"}),(0,y.jsx)(r.A.Check,{type:"switch",id:"custom-switch",label:"ON",className:"mb-",checked:F,onChange:()=>{I(!F)}})]}):"",(0,y.jsxs)(d.A,{style:0!==Q&&se?{}:{position:"relative",marginRight:"12px"},children:[(0,y.jsxs)(d.A.Toggle,{className:"btn-brand-light text-nowrap",id:"dropdown-basic",children:[" ",(0,y.jsx)(g.BsFunnel,{size:18})," Filter"]}),(0,y.jsxs)(d.A.Menu,{children:[(0,y.jsx)(d.A.Item,{onClick:()=>J(!0),children:"Custom Filter"}),"BASIC_USER"!==N?(0,y.jsx)(d.A.Item,{onClick:()=>ve(!0),children:"Saved Filter"}):""]})]}),Q>0&&se&&"BASIC_USER"!==N?(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(c.A,{className:"btn-brand-1 text-nowrap",onClick:()=>{me("markedAsView",!0),me("markedAsViewHead","Mark as reviewed"),me("markedAsFlagHead","No change"),me("markedAsFlag",void 0),0===q.length?w.oR.error("Please select posts for bulk review"):Z(!0)},children:"Bulk Review"})}):""]})]}),(0,y.jsx)("div",{className:"collapse-page",children:(0,y.jsx)("div",{className:"data-container",children:(0,y.jsx)(x.A,{viewObject:e=>{T(e),ne(!0)},automark:F,changedObject:V,keyWord:E,filterObject:H,clearFilterCallback:(e,s)=>{le(!0);let a={...H};"ALL"===e?(a={},de(!0),L("")):"Account"===e?(a.accounts=a.accounts.filter(e=>e.id!==s),a.accounts2=a.accounts2.filter(e=>e.id!==s)):"Date"===e?(a.startDate=void 0,a.endDate=void 0):"Percentage"===e?a.percentage=void 0:"Keyword"===e?(a.keywords="",L("")):"Flagged"===e?a.markedAsFlag=void 0:"Reviewed"===e?a.markedAsView=void 0:"Escalated"===e?a.escalateAndSend=void 0:"NotReviewed"===e?a.flaggedNotReviewed=void 0:"NotYetReviewed"===e?a.notReviewed=void 0:"sampleCount"===e?a.sampleCount=void 0:"userList"===e?a.userList=a.userList.filter(e=>e.id+e.label!==s):"groupList"===e?a.groupList=a.groupList.filter(e=>e.id+e.label!==s):a={...a,...s},M(a)},isActive:te,reviewTab:_,changeIsActive:(e,s)=>{s&&D(s),ne(e)},sendData:e=>{B(e)},sendBulkReviewList:e=>{W(e)},changeInList:$,totalCount:e=>{X(e)},resetChangeInList:e=>{G({})},loader:e=>{}})})})]})})}),(0,y.jsxs)(o.A,{show:O,onHide:P,placement:"end",children:[(0,y.jsx)(o.A.Header,{closeButton:!0,children:(0,y.jsx)(o.A.Title,{children:"Start Review"})}),(0,y.jsx)(o.A.Body,{children:(0,y.jsx)(j.A,{type:"TEAMS",reviewId:e=>{P(),C("/review/review-all/"+e)}})})]}),(0,y.jsx)(o.A,{show:z,onHide:K,placement:"end",children:(0,y.jsx)(A.A,{sendFilterData:e=>
1{e.keywords?L(e.keywords):L(""),"{}"==JSON.stringify(e)&&(de(!0),L("")),M(e),K()},filter:H})}),(0,y.jsxs)(o.A,{show:Y,onHide:ee,placement:"end",children:[(0,y.jsx)(o.A.Header,{closeButton:!0,children:(0,y.jsx)(o.A.Title,{children:"Bulk Review"})}),(0,y.jsx)(r.A,{className:"w-100 form-style h-100",name:"Verify",id:"Verify",onSubmit:oe(()=>{void 0===Ae.markedAsView&&void 0===Ae.escalateAndSend&&void 0===Ae.notes&&(Ae.markedAsView=!1,Ae.escalateAndSend=!1,Ae.notes="");const e={idList:q,markedAsView:Ae.markedAsView,escalateAndSend:!Ae.markedAsView&&Ae.escalateAndSend,notes:Ae.notes,socialType:"TEAMS"};return void 0!==Ae.markedAsFlag&&null!==Ae.markedAsFlag&&(e.markedAsFlag=Ae.markedAsFlag),p.A.addLoader("save-review-teams"),p.A.putAPI({action:"user-integration/teams/update-messages-bulk",body:e,isShowError:!0,access_token:S,t_id:a,connector:"teams"}).then(s=>{ee(),G(e),he(),B(!1),W([]),w.oR.success(null===s||void 0===s?void 0:s.message),p.A.removeLoader("save-review-teams")}).catch(e=>(p.A.removeLoader("save-review-teams"),ee(),e))}),children:(0,y.jsxs)(o.A.Body,{children:[(0,y.jsx)("div",{className:"px-3 mb-3",children:(0,y.jsxs)("div",{className:"d-flex gap-2 mb-1",children:[(0,y.jsx)("div",{children:(0,y.jsxs)(d.A,{className:"dropdown-toggle2",children:[(0,y.jsx)(d.A.Toggle,{id:"",variant:"",className:"bg-success-subtle dropdown-toggle2",children:(0,y.jsx)("span",{className:"font-16",style:{color:"Black"},children:Ae.markedAsViewHead})}),(0,y.jsxs)(d.A.Menu,{children:[(0,y.jsx)(d.A.Item,{onClick:()=>{me("markedAsView",!0),me("markedAsViewHead","Mark as reviewed")},children:"Mark as reviewed"}),(0,y.jsx)(d.A.Item,{onClick:()=>{me("markedAsView",!1),me("markedAsViewHead","Mark as unreviewed")},children:"Mark as unreviewed"})]})]})}),(0,y.jsx)("div",{children:(0,y.jsxs)(d.A,{className:"dropdown-toggle2",children:[(0,y.jsx)(d.A.Toggle,{id:"",variant:"",className:"bg-success-subtle dropdown-toggle2",children:(0,y.jsx)("span",{className:"font-16",style:{color:"Black"},children:null!==(s=Ae.markedAsFlagHead)&&void 0!==s?s:"No change"})}),(0,y.jsxs)(d.A.Menu,{children:[(0,y.jsx)(d.A.Item,{onClick:()=>{me("markedAsFlag",void 0),me("markedAsFlagHead","No change")},children:"No change"}),(0,y.jsx)(d.A.Item,{onClick:()=>{me("markedAsFlag",!0),me("markedAsFlagHead","Flag All")},children:"Flag All"}),(0,y.jsx)(d.A.Item,{onClick:()=>{me("markedAsFlag",!1),me("markedAsFlagHead","Unflag All")},children:"Unflag All"})]})]})})]})}),(0,y.jsx)("hr",{className:" border-secondary-subtle"}),(0,y.jsx)("div",{className:" form-style",children:(0,y.jsxs)("div",{className:"px-3",children:[(0,y.jsx)(m.A,{controlId:"Notes",label:"Notes",children:(0,y.jsx)(r.A.Control,{...ce("notes"),as:"textarea",placeholder:"Notes",style:{height:"100px"},value:Ae.notes?Ae.notes:""})}),(0,y.jsx)("div",{className:"mt-3",children:(0,y.jsx)(c.A,{type:"submit",className:"btn btn-brand-1 w-100",id:"save-review-teams",children:"Save"})})]})})]})})]}),(0,y.jsx)(o.A,{show:xe,onHide:()=>ve(!1),placement:"end",children:(0,y.jsx)(f.A,{sendData:e=>{e.keywords?L(e.keywords):L(""),M(e),ve(!1)},parentCallback:H,connectorType:"TEAMS"})})]})}},47440(e,s,a){var t=a(50016);const n=function(e,s){const a=(0,t.useRef)(!1),n=(0,t.useRef)(e);(0,t.useEffect)(()=>{if(n.current!==e&&(a.current=!1,n.current=e),a.current||void 0===e||null===e)return;const s=document.getElementById(`msg-${e}`);if(!s)return;const t=requestAnimationFrame(()=>{s.scrollIntoView({block:"center"}),a.current=!0});return()=>cancelAnimationFrame(t)},[e,s])};a.d(s,["A",0,n])}}]);
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.