1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0b9c311e-bc1c-55fa-9b5f-658cb0a6ec99")}catch(e){}}(); 3(self.webpackChunkclient=self.webpackChunkclient||[]).push([["446"],{71917(e,a,t){t.d(a,{MCSAudioCallUnavailableNotification:()=>T});var i=t(42062),l=t(81924),r=t(42618),n=t(20345),s=t(15782),o=t(31085);let d=(0,i.memo)(e=>{var{microphonePermissionStatus:a,onRequestAccessButtonClick:t}=e,i=["ios","android"].includes((0,r.operatingSystem)()),d=(0,s.A)("call/mcs/audio-call","request-microphone-access-button-title");return(0,o.jsxs)("div",{className:"call-audio-call-unavailable-notification__container",children:[(0,o.jsxs)("div",{className:"call-audio-call-unavailable-notification__instructionContainer",children:[(0,o.jsx)(l.LocalizedText,{href:"/call/mcs/audio-call#audio-call-unavailable-overlay-title",variant:"h1"}),(0,o.jsx)("p",{children:(0,o.jsx)(l.LocalizedText,{href:"/call/mcs/audio-call#audio-call-unavailable-microphone-enable-instruction-title",variant:"body-1"})}),(0,o.jsx)("p",{children:(0,o.jsx)(l.LocalizedText,{href:i?"/call/mcs/audio-call#audio-call-unavailable-microphone-enable-instruction-steps-mobile":"/call/mcs/audio-call#audio-call-unavailable-microphone-enable-instruction-steps-desktop"})})]}),(0,o.jsx)("img",{className:"call-audio-call-unavailable-notification__image",src:i?"/i/audio-call/chrome-mobile-microphone-instruction.png":"denied"===a?"/i/audio-call/chrome-desktop-microphone-instruction.png":"undetermined"===a?"/i/audio-call/chrome-desktop-microphone-prompt.png":void 0,alt:"microphone permission instructions"}),"undetermined"===a&&(0,o.jsx)("div",{className:"call-audio-call-unavailable-notification__buttonContainer",children:(0,o.jsx)(n.$,{variant:"primary",blockLevel:!0,title:d,onClick:t})})]})});var c=t(66691),u=t(65428),v=t(28280),h=t(43751),m=t(79760),p=t(85285),b=t(50262),f=t(91994),y=t(13462),g=t(39971),C=t(28138),I=t(79942),T=(0,i.memo)(()=>{var[e,a]=(0,i.useState)(void 0),t=(0,c.J2)(()=>u.K.shared().microphone.pipe((0,C.T)(e=>{var a;return null!=(a=null==e?void 0:e.permission)?a:"denied"})),[]),l=null!=e?e:t,r=(0,f.w)(),n=(0,c.uN)(()=>r?b.n.shared(r).acceptOffer():g.v.just(),[r]),s=(0,c.J2)(()=>y.T.shared().mcs.audioCall.availabilityOfferingTtl,[],0),T=(0,i.useCallback)(()=>{n&&(n(),h.Y.shared().get(m.A).actions.close("audio-call-unavailable-notification"),v.X.shared().notifyUser({type:p._.AudioCallAvailable,payload:{ttl:s}},p.A.Normal))},[n,s]),x=(0,c.uN)(()=>u.K.shared().requestAccessToMicrophone().toSingle().pipe((0,I.ex)(e=>a(e))),[]);return(0,i.useEffect)(()=>{"allowed"===l&&T()},[T,l]),l?(0,o.jsx)(d,{microphonePermissionStatus:l,onRequestAccessButtonClick:x}):null})},50262(e,a,t){t.d(a,{n:()=>z});var i=t(15526),l=t(89218),r=t(65428),n=t(17524),s=t(75841),o=t(56823),d=t(13462),c=t(63525),u=t(28138),v=t(15654),h=t(84190),m=t(65052),p=t(53940),b=t(56177),f=t(36580),y=t(39971),g=t(91885),C=t(77252),I=t(29109),T=t(66382),x=t(44999),w=t(78477),S=t(58731),A=t(79942),L="mcs-audio-call-availability-offering",j="last-shown-timestamp";class z extends l.D{constructor(e){super(),this.userId=e,this.canOffer=(0,n.z)([d.T.shared().mcs.audioCall.enabled,d.T.shared().mcs.audioCall.enabledByDefault,c.f.shared(this.userId).audioCallOnlyEnabled,c.f.shared(this.userId).state.pipe((0,u.T)(e=>e.available),(0,v.F)())]).pipe((0,h.n)(e=>{var[a,t,i,l]=e;return a&&t&&i&&l?d.T.shared().mcs.audioCall.availabilityOfferingDelay.pipe((0,h.n)(e=>(0,o.O)(e)),(0,h.n)(()=>r.K.shared().microphone.pipe((0,u.T)(e=>{var a;return null!=(a=null==e?void 0:e.permission)?a:"denied"}))),(0,v.F)(),(0,h.n)(e=>{var a=T.j.shared().chatAttendee.pipe((0,h.n)(e=>e?I.u.shared(this.userId).statusOfChatWith(e).pipe((0,u.T)(e=>!!e),(0,v.F)()):(0,s.of)(!1)));return(0,n.z)([C.J.shared(this.userId).callExists,a,x.l.shared().visible,w.y.shared().data.pipe((0,u.T)(e=>!!e)),this.offer.pipe((0,m.Z)(null))]).pipe((0,u.T)(e=>{var[a,t,i,l,r]=e;return a||t||i||l||r}),(0,p.p)(e=>!e),(0,b.s)(1),(0,h.n)(()=>{var a=(0,n.z)([d.T.shared().mcs.audioCall.lastShownAvailableNotificationThreshold,S.y.shared(L,this.userId).load(j)]).pipe((0,u.T)(e=>{var[a,t]=e;return(null!=t?t:-1/0)<Date.now()-a}));return"allowed"===e?a.pipe((0,u.T)(a=>!!a&&e)):(0,s.of)(e)}))})):(0,s.of)(!1)}),(0,v.F)(),(0,f.t)({refCount:!0,bufferSize:1}))}start(e){return this.offer.toSingle().pipe((0,A.Fg)(a=>a?y.v.just(g.Q.failure("offer-not-allowed")):"allowed"===e?S.y.shared(L,this.userId).store(j,Date.now()).pipe((0,A.vV)(()=>g.Q.success(e))):y.v.just(g.Q.success(e))))}}z.shared=(0,i.G)(e=>new z(e))},63525(e,a,t){t.d(a,{f:()=>T});
3var i=t(15526),l=t(17524),r=t(75841),n=t(48830),s=t(56607),o=t(13462),d=t(56379),c=t(84190),u=t(15654),v=t(36580),h=t(28138),m=t(14321),p=t(33702),b=t.n(p),f=t(12640);class y{constructor(e){this.userId=e}logAudioCallEnabledValueToggled(e){f._.shared(this.userId).logEvent("mcs-audio-call-settings-toggle",{enabled:e}).safeSubscribe()}}y.shared=(0,i.G)(e=>new y(e));var g=t(96333),C=t(55952),I={available:!1,enabled:!1};class T{constructor(e){this.userId=e,this.state=(0,l.z)([o.T.shared().mcs.enabled,o.T.shared().mcs.audioCall.enabled,d.M.shared(this.userId).initialized,m.f.shared(this.userId).userIsFeaturedMember]).pipe((0,c.n)(e=>e.every(e=>e)?new n.c(e=>{var a=a=>{e.next(a)},t=d.M.shared(this.userId).audioCallSettings;return t&&(e.next(t.getState()),t.addStateListener(a)),()=>{var e;null==(e=d.M.shared(this.userId).audioCallSettings)||e.removeStateListener(a)}}):(0,r.of)(I)),(0,u.F)(b()),(0,v.t)({refCount:!0,bufferSize:1})),this.audioCallOnlyEnabled=(0,l.z)([this.state,d.M.shared(this.userId).initialized.pipe((0,c.n)(e=>e?C.K.shared(this.userId).mcsId(this.userId).asObservable().pipe((0,c.n)(e=>e?g._.shared(this.userId).presence(e).pipe((0,h.T)(e=>{var a,t;return(null==e||null==(a=e.callAvailability)?void 0:a.video)!=="disabled"&&(null==e||null==(t=e.callAvailability)?void 0:t.audio)!=="disabled"}),(0,u.F)()):(0,r.of)(!1))):s.w))]).pipe((0,h.T)(e=>{var[a,t]=e;return a.available&&!t}),(0,u.F)(),(0,v.t)({refCount:!0,bufferSize:1}))}setEnabled(e){var a;null==(a=d.M.shared(this.userId).audioCallSettings)||a.setEnabled(e),y.shared(this.userId).logAudioCallEnabledValueToggled(e)}}T.shared=(0,i.G)(e=>new T(e))},44999(e,a,t){t.d(a,{l:()=>f});var i=t(15526),l=t(75841),r=t(48830),n=t(98153),s=t(50626),o=t(53940),d=t(65052),c=t(15654),u=t(36580),v=t(28138),h=t(43751),m=t(79760),p=t(38792),b=t.n(p);class f{constructor(){this.visible=(0,l.of)(!1),this.letterId=new r.c(e=>{var a=(a,t,i,l,r,n,s,o,d)=>{e.next({recipient:t,sender:i,id:l,presentAnswer:"present"===r,introductory:"introductory"===r,read:o,cta:d})},t=()=>{e.next(null)},i=h.Y.shared().get(m.A).store.rxState().pipe((0,s.J)(),(0,o.p)(e=>{var[a,t]=e;return(null==a?void 0:a.name)==="read-letter"&&(null==t?void 0:t.name)!==(null==a?void 0:a.name)})).safeSubscribe(t);return n.A.sync("event.communication.letter.selected",t).on("event.communication.read-letter.selected",a).on("event.communication.chat.selected",t).on("event.sidebar.closed",t).on("event.sidebar.chat.closed",t),()=>{i.unsubscribe(),n.A.removeListener("event.communication.letter.selected",t).removeListener("event.communication.read-letter.selected",a).removeListener("event.communication.chat.selected",t).removeListener("event.sidebar.closed",t).removeListener("event.sidebar.chat.closed",t)}}).pipe((0,d.Z)(null),(0,c.F)(b()),(0,u.t)({refCount:!0,bufferSize:1})),this.visible=this.letterId.pipe((0,v.T)(e=>!!e))}}f.shared=(0,i.G)(()=>new f)},78477(e,a,t){t.d(a,{y:()=>u});var i=t(98153),l=t(15526),r=t(48830),n=t(65052),s=t(15654),o=t(36580),d=t(38792),c=t.n(d);class u{constructor(){this.data=new r.c(e=>{var a=(a,t)=>{t&&("reading-letter"===t.source||"overlay-reading-letter"===t.source)&&t.data&&t.data.letterId?e.next({attendeeId:a,replyLetterId:t.data.letterId,source:t.source,letterCategory:"reply"}):e.next({attendeeId:a,replyLetterId:null,source:(null==t?void 0:t.source)==="recommendation"?"recommendation":null,letterCategory:(null==t?void 0:t.source)==="recommendation"?"by-recommendation":"new"})},t=()=>{e.next(null)};return i.A.sync("event.communication.letter.selected",a).on("event.overlay.letter.deactivated",t).on("event.communication.read-letter.selected",t).on("event.communication.chat.selected",t).on("event.sidebar.closed",t).on("event.sidebar.chat.closed",t),()=>{i.A.removeListener("event.communication.letter.selected",a).removeListener("event.overlay.letter.deactivated",t).removeListener("event.communication.read-letter.selected",t).removeListener("event.communication.chat.selected",t).removeListener("event.sidebar.closed",t).removeListener("event.sidebar.chat.closed",t)}}).pipe((0,n.Z)(null),(0,s.F)(c()),(0,o.t)({refCount:!0,bufferSize:1}))}}u.shared=(0,l.G)(()=>new u)}}]); 4//# sourceMappingURL=sourcemaps/dcb38cc46c1c0520.js.map 5//# debugId=0b9c311e-bc1c-55fa-9b5f-658cb0a6ec99
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.