PageSourceSearch

https://chat.marley.ai/33587.0d9e7453c1f58ca9bf75.js

js marley.ai collected 2026-10-05 15:41:29 UTC 14,678 bytes, 3 lines download raw bytes

1/*! For license information please see 33587.0d9e7453c1f58ca9bf75.js.LICENSE.txt */
2"use strict";(self.webpackChunkmarley_chat_client=self.webpackChunkmarley_chat_client||[]).push([[33587],{54538(e,t,s){var a=s(16522),o=(s(96540),s(71468)),r=s(59746),n=s(45262),i=s(59863),c=s(48405);const d=e=>{const t=(0,a.c)(4),s=(0,o.wA)(),{invalidateQueueQueries:d}=(0,i.HN)();let l;return t[0]!==s||t[1]!==d||t[2]!==e?(l=async t=>{await(0,n.N_)(e,r.WP,s,c.X)(t),d()},t[0]=s,t[1]=d,t[2]=e,t[3]=l):l=t[3],l};s.d(t,["S",0,d])},53760(e,t,s){var a=s(58156),o=s.n(a),r=s(96540),n=s(5556),i=s.n(n),c=s(71468),d=s(22022),l=s(12944),h=s(59746),u=s(63971),p=s(37874),y=s(26298),m=s(74848);const f={selectedId:"marley"};class g extends r.Component{constructor(e){super(e),this.state=f}handleSubmit(){const{item:e,sendSurvey:t,operatorId:s}=this.props;s&&"unassigned"!==s&&t(e)}render(){const{insuredId:e,toggleConfirmation:t,t:s}=this.props,a={all:{className:"confirmationButton submitConfirmation"},preRequest:{type:"primary",onClick:()=>{e&&this.handleSubmit()},text:s("common:send")},requesting:{type:"secondary",onClick:()=>{},text:s("common:sending")}},o={all:{className:"confirmationButton closeConfirmation"},preRequest:{type:"default",text:s("common:cancel")},requesting:{type:"default",text:s("common:cancel")}};return(0,m.jsx)(p.A,{className:"send-survey-confirmation",id:"survey",title:s("sendSurveyTitle"),successText:s("surveySent"),open:()=>{e&&this.handleSubmit(),this.setState(f),t({id:"survey",isOpen:!1})},openButtonStates:a,cancelButtonStates:o,children:s("sendSurveyBody")})}}g.propTypes={sendSurvey:i().func.isRequired,item:i().shape({}).isRequired,insuredId:i().string.isRequired,operatorId:i().string.isRequired,toggleConfirmation:i().func.isRequired,t:i().func.isRequired};const k=(0,c.Ng)((e,t)=>{const s="case"===t.id?"job":t.id,a=o()(e,"ui.requests.sendSurvey",{}),r=o()(e,"ui.confirmationIsOpen.survey.selectedId"),n=o()(e,`${(0,y.td)(s)}.listById.${r}`,{});return{item:n,insuredId:o()(n,"customer.id"),accountId:o()(n,"accountId"),jobId:o()(n,"jobId")||o()(n,"id"),operatorId:o()(n,"operatorIds.0"),process:a}},{sendSurvey:h.tI,toggleConfirmation:u.Ip})((0,d.CI)([l.CU.CONFIRMATION_MODALS,l.CU.COMMON])(g));s.d(t,["A",0,k])},86651(e,t,s){var a=s(56170),o=s.n(a),r=s(2404),n=s.n(r),i=s(58156),c=s.n(i),d=(s(18111),s(22489),s(7588),s(96540)),l=s(14644),h=s(71468),u=s(78101),p=s(74848);const y=(0,l.Zz)((0,h.Ng)((e,t)=>{const s=t.type?t.type.stateLocation():"jobs";return{loadedItems:c()(e,`${s}.list`,[]),loadedItemsById:c()(e,`${s}.listById`,{}),auth:c()(e,"auth")}},{lazyLoadWithPostRequest:u.Wt}),(e,t)=>class extends d.Component{state={offset:0,...c()(t,"defaultSort",{column:null,order:null}),disableInitialFetch:c()(t,"disableInitialFetch",!1),query:c()(t,"query"),showAllUsers:t?.showAllUsers&&"users"===t?.listLocation,hasNextPage:!0,isFetching:!1};componentDidUpdate(e){const{hasNextPage:t}=this.state;t&&e.loadedItems!==this.props.loadedItems&&this.props.loadedItems.length<32&&this.setState({hasNextPage:!1})}componentDidMount(){this.state.disableInitialFetch||this.getData()}UNSAFE_componentWillReceiveProps(e){if(!n()(this.props.sort,e.sort)||!n()(this.props.filter,e.filter)){const{column:t,order:s}=c()(e,"sort",{}),{filter:a}=e;this.setState({column:Array.isArray(t)?o()(t):t,order:s,offset:0,filter:a,hasNextPage:!0,isFetching:!1},()=>this.getData())}}modifyQuery=(e,t=null,s=null)=>{const{query:a}=this.state,o={...a,...e};Object.keys(o).forEach(e=>{null!==o[e]&&void 0!==o[e]||delete o[e]}),this.setState({offset:0,order:t,column:s,query:o,hasNextPage:!0,isFetching:!1},this.getData)};getData=e=>{const{offset:s,column:a,order:o,filter:r,query:n}=this.state,{type:i,noLimit:d}=t;let l=d?{offset:s,...n,order:o}:{offset:s,limit:32,...n,order:o};if(a&&(l={...l,sort:a,order:o}),Object.keys(l).forEach(e=>{null===l[e]&&delete l[e]}),i&&this.props.lazyLoadWithPostRequest)return this.props.lazyLoadWithPostRequest(i,{...l,...!this.state.showAllUsers&&{active:!0}},c()(t,"listLocation"),e,!1,r)};increaseDataSet=e=>{const{loadedItems:t}=this.props,{hasNextPage:s,isFetching:a}=this.state;if(!s||t.length<32||a)return;const{offset:o}=this.state;this.setState({offset:o+32,isFetching:!0},()=>{const t=this.getData(t=>{const s=Array.isArray(t)&&t.length>=32;this.setState({hasNextPage:s,isFetching:!1}),e&&e(t)});t&&"function"==typeof t.catch&&t.catch(()=>{this.setState({isFetching:!1})})})};render(){const{hasNextPage:s}=this.state;return(0,p.jsx)(e,{...this.props,getData:this.getData,config:t,modifyQuery:this.modifyQuery,increaseDataSet:this.increaseDataSet,hasNextPage:s})}});s.d(t,["A",0,y])},12146(e,t,s){s(44114),s(18111),s(22489),s(18237),s(17642),s(58004),s(33853),s(45876),s(32475),s(15024),s(31698),s(27254),s(7036);var a=s(16522),o=s(96540),r=s(58567);const n=e=>{const t=(0,a.c)(15);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=new Map,t[0]=s):s=t[0];const[n,d]=(0,o.useState)(s);let l;t[1]!==e?(l=e?.reduce(i,[])||[],t[1]=e,t[2]=l):l=t[2];const h=l;let u,p;t[3]!==h||t[4]!==n?(u=new Set(h?.filter(e=>void 0!==e&&!n.has(e))||[]),t[3]=h,t[4]=n,t[5]=u):u=t[5],t[6]!==u?(p={ids:[...u]},t[6]=u,t[7]=p):p=t[7];const y=(0,r.$w)(p),{data:m,isLoading:f}=y;let g;t[8]!==m?.pages?(g=()=>{const e=m?.pages?.reduce(c,[])||[],t=new Map;for(let s=0;s<e.length;s+=1,s){const a=e[s];t.set(a?.id,a)}d(e=>{const s=new Map(e);return t.forEach((e,t)=>s.set(t,e)),s})},t[8]=m?.pages,t[9]=g):g=t[9];const k=m?.pages;let A,I;return t[10]!==k?(A=[k],t[10]=k,t[11]=A):A=t[11],(0,o.useEffect)(g,A),t[12]!==f||t[13]!==n?(I={selectedOperatorsMap:n,isLoadingPreSelectedOperators:f},t[12]=f,t[13]=n,t[14]=I):I=t[14],I};function i(e,t){const s=t?.assignedOperator?.id||t?.primaryContactId,a=t?.secondaryOperatorIds||[];return s&&e.push(s),e.push(...a),e}
2function c(e,t){const s=t.operators||[];return e.push(...s),e}s.d(t,["A",0,n])},99674(e,t,s){var a=s(16522),o=s(38221),r=s.n(o),n=s(96540),i=s(71468),c=s(61973),d=s(78101);const l=e=>{const t=(0,a.c)(13),s=(0,c.Zp)(),o=(0,i.wA)(),[l,h]=(0,n.useState)(""),[u,p]=(0,n.useState)(!0);let y,m,f;return t[0]!==o||t[1]!==u||t[2]!==l||t[3]!==e?(y=()=>{const t=r()(()=>{o((0,d.J8)({filter:l,type:e}))},500);return u?(p(!1),l&&""!==l&&t()):t(),()=>{t.cancel()}},t[0]=o,t[1]=u,t[2]=l,t[3]=e,t[4]=y):y=t[4],t[5]!==o||t[6]!==s||t[7]!==u||t[8]!==l||t[9]!==e?(m=[l,s,o,u,e],t[5]=o,t[6]=s,t[7]=u,t[8]=l,t[9]=e,t[10]=m):m=t[10],(0,n.useEffect)(y,m),t[11]!==l?(f=[l,h],t[11]=l,t[12]=f):f=t[12],f};s.d(t,["A",0,l])},43440(e,t,s){s.d(t,{A:()=>l});s(18111),s(22489),s(92078),s(42877),s(79859),s(5287);var a=s(58156),o=s.n(a),r=(s(20116),s(7588),s(61701),s(79715));const n=e=>{const t=o()(e,"form")&&o()(e,"form.isEdit")&&!o()(e,"requestCompleted"),s=o()(e,"form")&&o()(e.form,"isCreate")&&!o()(e,"requestCompleted"),a=o()(e,"form")&&o()(e.form,"readonly");let r=null;return t?r="edit":s?r="create":a&&(r="view"),{form:{...o()(e,"form",{}),isEditing:t,isCreating:s,isViewing:a,mode:r}}},i=e=>({loadingItem:o()(e,"loadingItem"),loadedItem:o()(e,"loadedItem")}),c=(e=[])=>e.filter(e=>e.role===r._d&&!e.archived).map(e=>({id:e.id,label:e.name})),d=(e={},t=[],s="")=>t.map(t=>({...t,claimant:t.customer,chatId:o()(e,`jobs.chatIdsByJobId.${t.id}`,"")})).filter(e=>s?e.type===s?e:null:e).sort((e,t)=>new Date(t.createdAt)-new Date(e.createdAt)),l=e=>{const t=e?.jobs?.list||[],s=e?.jobs,a=e?.ui?.filter?.case,o={column:"createdAt",order:"DESC"},r=d(e,t,"POLICY"),l=d(e,t,"CLAIM"),h=d(e,t);return{...i(e),...n(e.jobs),authId:e?.auth?.user?._id,activeQueueId:e?.ui?.activeQueueId||"myOpen",requests:e?.ui?.requests?.reassignjob||{},policyForm:e.policies?{...n(e.policies)}:{},policies:r,claims:l,claimForm:e.claims?{...n(e.claims)}:{},jobs:h,job:s,sortId:o&&o.column,sort:o,filter:a,token:e?.auth?.token||"",users:e?.users?.listById||{},confirmationIsOpen:e?.ui?.confirmationIsOpen||{},operators:c(e?.users?.list||[]),ownerOrganization:e?.auth?.user?.ownerOrganization,permissions:e?.auth?.permissions}}},77957(e,t,s){var a=s(76080),o=s(79504),r=s(47055),n=s(48981),i=s(56969),c=s(26198),d=s(2360),l=s(35370),h=Array,u=o([].push);e.exports=function(e,t,s,o){for(var p,y,m,f=n(e),g=r(f),k=a(t,s),A=d(null),I=c(g),x=0;I>x;x++)m=g[x],(y=i(k(m,x,f)))in A?u(A[y],m):A[y]=[m];if(o&&(p=o(f))!==h)for(y in A)A[y]=l(p,A[y]);return A}},46058(e,t,s){var a=s(46518),o=s(77957),r=s(6469);a({target:"Array",proto:!0},{group:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),r("group")},21951(e,t,s){const a=(0,s(98244).A)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);s.d(t,["A",0,a])},694(e,t,s){const a=(0,s(98244).A)("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]);s.d(t,["A",0,a])},85973(e,t,s){const a=(0,s(98244).A)("briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);s.d(t,["A",0,a])},50775(e,t,s){const a=(0,s(98244).A)("car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);s.d(t,["A",0,a])},41134(e,t,s){const a=(0,s(98244).A)("check-check",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);s.d(t,["A",0,a])},70885(e,t,s){const a=(0,s(98244).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);s.d(t,["A",0,a])},85824(e,t,s){const a=(0,s(98244).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);
2s.d(t,["A",0,a])},32188(e,t,s){const a=(0,s(98244).A)("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);s.d(t,["A",0,a])},30166(e,t,s){const a=(0,s(98244).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);s.d(t,["A",0,a])},11956(e,t,s){const a=(0,s(98244).A)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);s.d(t,["A",0,a])},60857(e,t,s){const a=(0,s(98244).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);s.d(t,["A",0,a])},93224(e,t,s){const a=(0,s(98244).A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);s.d(t,["A",0,a])},40799(e,t,s){const a=(0,s(98244).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);s.d(t,["A",0,a])},50861(e,t,s){const a=(0,s(98244).A)("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);s.d(t,["A",0,a])},42800(e,t,s){const a=(0,s(98244).A)("shield-ellipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]]);s.d(t,["A",0,a])},6769(e,t,s){const a=(0,s(98244).A)("shield-plus",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M9 12h6",key:"1c52cq"}],["path",{d:"M12 9v6",key:"199k2o"}]]);s.d(t,["A",0,a])},80900(e,t,s){const a=(0,s(98244).A)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);s.d(t,["A",0,a])},63626(e,t,s){const a=(0,s(98244).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);s.d(t,["A",0,a])},22500(e,t,s){const a=(0,s(98244).A)("wheat",[["path",{d:"M2 22 16 8",key:"60hf96"}],["path",{d:"M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1rdhi6"}],["path",{d:"M7.47 8.53 9 7l1.53 1.53a3.5 3.5 0 0 1 0 4.94L9 15l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1sdzmb"}],["path",{d:"M11.47 4.53 13 3l1.53 1.53a3.5 3.5 0 0 1 0 4.94L13 11l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"eoatbi"}],["path",{d:"M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z",key:"19rau1"}],["path",{d:"M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"tc8ph9"}],["path",{d:"M15.47 13.47 17 15l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"2m8kc5"}],["path",{d:"M19.47 9.47 21 11l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L13 11l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"vex3ng"}]]);s.d(t,["A",0,a])},24733(e,t,s){s.d(t,{H:()=>o});var a=s(96540);function o({isRowLoaded:e,loadMoreRows:t,minimumBatchSize:s=10,rowCount:o,threshold:r=15}){const n=(0,a.useMemo)(()=>new Set,[e,t]),i=(0,a.useCallback)(t=>!!e(t)||n.has(t),[e,n]);return(0,a.useCallback)(({startIndex:e,stopIndex:a})=>{const c=function({isRowLoaded:e,minimumBatchSize:t,rowCount:s,startIndex:a,stopIndex:o}){const r=[];let n=-1,i=-1;for(let t=a;t<=o;t++)e(t)?i>=0&&(r.push({startIndex:n,stopIndex:i}),n=i=-1):(i=t,n<0&&(n=t));if(i>=0){const a=Math.min(Math.max(i,n+t-1),s-1);for(let t=i+1;t<=a&&!e(t);t++)i=t;r.push({startIndex:n,stopIndex:i})}if(r.length){const s=r[0];for(;s.stopIndex-s.startIndex+1<t&&s.startIndex>0;){const t=s.startIndex-1;if(e(t))break;s.startIndex=t}}return r}({isRowLoaded:i,minimumBatchSize:s,rowCount:o,startIndex:Math.max(0,e-r),stopIndex:Math.min(o-1,a+r)});for(let e=0;e<c.length;e+=2){const{startIndex:s,stopIndex:a}=c[e];for(let e=s;e<=a;e++)n.add(e);t(s,a)}},[i,t,s,n,o,r])}}}]);
3//# sourceMappingURL=33587.0d9e7453c1f58ca9bf75.js.map

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.