"use strict";(this.webpackChunk_msteams_react_web_client=this.webpackChunk_msteams_react_web_client||[]).push([[542020],{864564:(e,n,i)=>{i.r(n),i.d(n,{SharedViewPinConfirmDialogRenderer:()=>T,default:()=>f});var a=i(957032),l=i(513432),o=i(535312),t=i(854005),c=i(616037),r=i(251596),s=i(566059),d=i(707212),g=i(109019),_=i(647780),h=i(696729),m=i(422458),u=i(155762),p=i(214568),C=i(536559),b=i(651766);const T=l.memo((({teamsCallId:e,onClose:n})=>{const i=(0,_.PO)(),{data:T}=(0,m.G)(["isTogetherModePinned"]),f=!!T?.call?.isTogetherModePinned,[k]=(0,u.n)(h.O,{ignoreResults:!0}),y=l.useCallback((()=>{n()}),[n]),Y=l.useCallback((async()=>{k({variables:{teamsCallId:e}}),y()}),[k,e,y]),{recordPanelAction:P}=(0,b.ib)();P({actionScenario:f?p.vB.pinTogetherMode:p.vB.unpinTogetherMode,actionScenarioType:p.DB.togetherMode,moduleName:p.Sn.togetherModePinToggle,moduleType:p.nR.button,actionGesture:p.Od.click,actionOutcome:p.nd.toggle});const w=l.useCallback((async()=>{y()}),[y]);return(0,a.Y)(o.l,{children:(0,a.Y)(t.E,{className:C.n,children:[(0,a.Y)(c.L,{children:i.stringTranslate("calling",f?"calling_together_mode_unpin_confirmation":"calling_together_mode_pin_confirmation")}),(0,a.Y)(r.C,{children:(0,a.Y)(d.E,{children:i.stringTranslate("calling",f?"calling_together_mode_unpin_confirmation_subhead":"calling_together_mode_pin_confirmation_subhead")})}),(0,a.Y)(s.i,{style:{justifyContent:"flex-end"},children:[(0,a.Y)(g.$,{onClick:w,children:i.stringTranslate("calling","calling_recording_consent_dialog_cancel")}),(0,a.Y)(g.$,{appearance:"primary",onClick:Y,children:i.stringTranslate("calling","calling_recording_consent_dialog_confirm")})]})]})})}));T.displayName="SharedViewPinConfirmDialogRenderer";const f=T}}]);
//# sourceMappingURL=https://local.teams.office.com/sourcemaps/hashed-assets/shared-view-pin-confirm-dialog-6747a640a2b0bd61.js.map