PageSourceSearch

https://factor.com/5656.b3b3571298f89e5c.js

js factor.com collected 2026-10-04 04:05:59 UTC 12,822 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[5656],{48545(j,x,r){r.d(x,{b:()=>B});var _=r(85802),W=r(38601),O=r(1211),T=r(67374),g=r.n(T),f=r(43123);let M=(()=>{class s{static testBuildExternalCalendarUrl;static accessTestBuildExternalCalendarUrl(){return s.testBuildExternalCalendarUrl}static buildExternalCalendarUrl(t,i,c,l,d){d=(0,f.Z)(s.replaceTagCharsWithUnicode(d)),(t===O.oKl.Office365||t===O.oKl.Outlook)&&(d=d.replace(/\n/g,"<br>"));const u=s.getSanitizedData(i,c,d,s.replaceTagCharsWithUnicode(l));return t===O.oKl.Google?s.getGoogleCalendarUrl(u):(u.startDate=g()(i).format("YYYY-MM-DDTHH:mm:ss"),u.endDate=g()(c).format("YYYY-MM-DDTHH:mm:ss"),t===O.oKl.Outlook?s.getOutlookCalendarUrl(u):t===O.oKl.Office365?s.getOffice365CalendarUrl(u):(this.testBuildExternalCalendarUrl=u,""))}static buildIcsData(t,i,c,l){const d={startDate:s.toUniversalTime(t),endDate:s.toUniversalTime(i),description:l||"",title:c||"",location:""};return s.getIcsCalendar(d)}static buildIcsFile(t,i,c,l){const d={startDate:s.toUniversalTime(t),endDate:s.toUniversalTime(i),description:l||"",title:c||"",location:""},u=s.getIcsCalendar(d);return s.getIcsBlob(u)}static replaceTagCharsWithUnicode(t){return t.replaceAll("<","\u02c2").replaceAll(">","\u02c3")}static getSanitizedData(t,i,c,l){return{startDate:s.toUniversalTime(t),endDate:s.toUniversalTime(i),description:encodeURIComponent(c||""),title:encodeURIComponent(l||""),location:encodeURIComponent("")}}static getOutlookCalendarUrl(t){return s.getMicrosoftCalendarUrl(t,"https://outlook.live.com/calendar/0/action/compose?")}static getOffice365CalendarUrl(t){return s.getMicrosoftCalendarUrl(t,"https://outlook.office.com/calendar/0/action/compose?")}static getMicrosoftCalendarUrl(t,i){return i+="&subject="+t.title,i+="&startdt="+encodeURIComponent(t.startDate)+"&enddt="+encodeURIComponent(t.endDate),i+="&body="+t.description,(i+="&location="+t.location)+"&allday=false"}static getGoogleCalendarUrl(t){let i="https://www.google.com/calendar/render?action=TEMPLATE";return i+="&text="+t.title,i+="&dates="+t.startDate+"/"+t.endDate,i+="&details="+t.description,i+="&location="+t.location,i}static getIcsCalendar(t){return["BEGIN:VCALENDAR","VERSION:2.0","BEGIN:VEVENT","DTSTAMP:"+s.toUniversalTime(new Date),"UID:"+s.getUid(),"CLASS:PUBLIC","DESCRIPTION:"+s.formatIcsText(t.description,1e4),"DTSTART:"+t.startDate,"DTEND:"+t.endDate,"LOCATION:"+s.formatIcsText(t.location,64),"SUMMARY:"+s.formatIcsText(t.title,1e4),"TRANSP:TRANSPARENT","END:VEVENT","END:VCALENDAR","DTSTAMP:"+s.getTimeCreated(),"PRODID:webclient3cx"].join("\r\n")}static getMilitaryHours(t){return t%1==.5?`${Math.floor(t)}30`:`${Math.round(t)}00`}static getHoursDuration(t,i,c){const l=g()(t),d=g()(i);c&&(l.utcOffset(c),d.utcOffset(c));const u=g().duration(d.diff(l)).asHours();return this.getMilitaryHours(u)}static formatIcsText(t,i){return t?t=(t=t.replace(/\n/g,"\\n")).substring(0,i):""}static toUniversalTime(t,i){const c=g()(t);return i&&c.utcOffset(i),c.format("YYYYMMDDTHHmmss")}static getIcsBlob(t){return new Blob([t],{type:"application/octet-stream"})}static getUid(){return Math.random().toString(36).substring(2)}static getTimeCreated(){return g()().format("YYYYMMDDTHHmmss")}static isIOS(t){const{platform:i}=t.navigator;return!(typeof t.MSStream<"u")&&(!!/iPad|iPhone|iPod/.test(i)||"MacIntel"===i&&t.navigator.maxTouchPoints>1)}}return s})();var v=r(33971);let B=(()=>{class s{modalService=(0,_.WQX)(W.B);trimNameOfConference(t){return t.substring(0,80)}openExternalCalendar(t,i,c,l,d){if(t===O.oKl.Google||t===O.oKl.Office365||t===O.oKl.Outlook){const u=M.buildExternalCalendarUrl(t,i,c,l,d);(0,v.h1)(u)||(0,v.Pe)(u,this.modalService,"_i18n.PopupBeingBlocked","_i18n.OpenCalendar",{p1:{1:"Google Calendar",2:"Office365 Calendar",3:"Outlook Calendar"}[t]})}else if(t===O.oKl.IcsFile)if(M.isIOS(window)){const u=M.buildIcsData(i,c,l,d),U="data:text/calendar,"+encodeURIComponent(u);(0,v.Pe)(U,this.modalService,"_i18n.PressOkToAddMeeting","_i18n.AddMeetingToCalendar")}else{const u=M.buildIcsFile(i,c,l,d),U=window.URL.createObjectURL(u);(0,v.AE)(U,`${this.trimNameOfConference(l)}.ics`)}}static \u0275fac=function(i){return new(i||s)};static \u0275prov=_.jDH({token:s,factory:s.\u0275fac})}return s})()},65656(j,x,r){r.d(x,{j:()=>$,v:()=>z});var _=r(84572),W=r(28793),O=r(19724),T=r(7673),g=r(16444),f=r(85802),M=r(67374),v=r.n(M),B=r(38601),s=r(73042),L=r(65352),t=r(2693),i=r(1211),c=r(48545),l=r(51078),d=r(38278),u=r(99437),U=r(5964),I=r(96354),A=r(25558),N=r(96697),H=r(88141),S=r(53993),b=r(33971),y=r(11082);const $=2e3;let z=(()=>{class C{myPhoneService=(0,f.WQX)(g.gx);modalService=(0,f.WQX)(B.B);meetingListService=(0,f.WQX)(l.X);audioConferenceService=(0,f.WQX)(d.z);externalCalendarService=(0,f.WQX)(c.b);videoConferenceService=(0,f.WQX)(L.L);mode;getConferenceSchedule(e){const o=new i.VWt;return o.Id=e.ScheduleID,o.PinCode=e.PinCode,this.myPhoneService.get(o)}createOrUpdateConference(e){return e.IsVideoConference?this.createOrUpdateWebMeeting(e).pi
1pe((0,I.T)(o=>({isAudio:!1,id:o}))):this.createOrUpdateAudioConference(e).pipe((0,I.T)(o=>({isAudio:!0,id:o})))}createOrUpdateConferenceWithExternalCalendar(e){return this.createOrUpdateConference(e).pipe((0,A.n)(o=>this.meetingListService.allConferences$.pipe((0,I.T)(n=>n.find(a=>o.isAudio&&a.isAudio&&+a.audioConference.PinCode===o.id||!o.isAudio&&a.isWebMeeting&&a.audioConference.ScheduleID===o.id)),(0,U.p)(Boolean),(0,N.s)(1))),(0,A.n)(o=>{if(e.calendarType===i.oKl.Tcx)return(0,T.of)(o);const n=this.audioConferenceService.getScheduledConferenceDetailsObservable(o.audioConference.Id).pipe((0,I.T)(a=>o.isAudio?a.EmailBody:a.webMeetingScheduleState.EmailBody),(0,N.s)(1));return(0,_.z)([(0,O.H)(r.e(7261).then(r.bind(r,87893))),n]).pipe((0,H.M)(a=>{const[p,h]=a;this.externalCalendarService.openExternalCalendar(e.calendarType,e.StartDate,e.EndDate,e.NameOfConference,p.sanitizeEmailBody(h))}),(0,I.T)(a=>o))}),(0,N.s)(1))}createOrUpdateWebMeeting(e){const o=this.createOrUpdateVideoConferenceHelper(e,e.WebMeetingState);return this.videoConferenceService.updateScheduledVideoConferenceData(o)}createOrUpdateAudioConference(e){let o;if(e.IsNew)o=this.getTemplate();else{const n=new i.VWt;n.Id=e.ScheduleId,n.PinCode=e.PinCode,o=this.myPhoneService.get(n)}return o.pipe((0,S.E)(this.myPhoneService.myPhoneSession.pipe((0,N.s)(1))),(0,A.n)(n=>{const[a,p]=n,h=this.createOrUpdateAudioConferenceHelper(p.myInfo,a,e);return h.ExternalNumberOfConference=a.ExternalNumberOfConference||"",h.ConferencePIN=a.ConferencePIN,this.updateScheduledAudioConferenceData(h).pipe((0,I.T)(m=>+h.ConferencePIN))}))}getTemplate(){const e=new i.tHC;return this.myPhoneService.get(e).pipe((0,u.W)(o=>(this.modalService.error(o),(0,T.of)(!1))))}updateScheduledAudioConferenceData(e){return this.myPhoneService.get(e)}createOrUpdateVideoConferenceHelper(e,o){let n=o;void 0===n&&(n=new i.RL6,n.Participants=new i.Om9,n.Participants.Items=[]);const a=new i.RL6,p=v()(e.StartDate).utc().format(y.i$);a.StartAtUTC=n.StartAtUTC===p?a.StartAtUTC:p,a.Name=n.Name===e.NameOfConference?a.Name:e.NameOfConference,a.Description=n.Description===e.DescriptionOfConference?a.Description:e.DescriptionOfConference,a.Duration=n.Duration===e.Duration?a.Duration:e.Duration,a.HideParticipants=n.HideParticipants===e.HideNames?a.HideParticipants:e.HideNames,a.MeetingProfile=n.MeetingProfile===e.VideoConferenceProfileType.value?a.MeetingProfile:e.VideoConferenceProfileType.value,a.Id=e.Id,a.NeedOrganizer=n.NeedOrganizer===e.OrganizerConnectsFirst?a.NeedOrganizer:e.OrganizerConnectsFirst,a.CanChangeMedia=n.CanChangeMedia===e.AllowParticipantControl?a.CanChangeMedia:e.AllowParticipantControl;const R=`${e.ParticipantRightsAudio?"A":""}${e.ParticipantRightsVideo?"V":""}${e.ParticipantRightsChat?"T":""}`;return a.ParticipantsProperties=n.ParticipantsProperties===R?a.ParticipantsProperties:R,a.ForceModerator=n.ForceModerator===e.EveryoneIsAnOrganizer?a.ForceModerator:e.EveryoneIsAnOrganizer,a.DisableUserInteractions=!e.EnableAnnouncements,n.Participants.Items.forEach(D=>{-1===e.Participants.findIndex(P=>P.Email===D.Email)&&(D.Action=i.X2v.Deleted)}
1),e.Participants.forEach(D=>{let E;const P=n.Participants.Items.findIndex(X=>X.Email===D.Email);if(-1===P)E=new i.N7N,E.Action=i.X2v.Inserted,E.Email=D.Email;else{if(E=n.Participants.Items[P],E.ExtensionNumber===D.Number&&E.Name===D.Name)return;E.Action=i.X2v.Updated}D.IsExtension&&(E.ExtensionNumber=D.Number),E.Name=D.Name,E.ExtensionNumber===D.Number&&s.Q.isNullOrWhitespace(E.Name)&&(E.Name=b.TJ.substrEmailToName(E.Email)),n.Participants.Items.push(E)}),n.Participants.Items.filter(D=>void 0===D.Action).forEach(D=>{D.Action=i.X2v.NoUpdates}),a.CalendarType=e.calendarType,a.Participants=n.Participants,a}updateScheduledConferenceEmails(e,o){return this.getConferenceSchedule(e).pipe((0,A.n)(n=>{const a=n.Emails.split(",").filter(h=>!!h),p=o.filter(h=>!a.find(m=>m===h));return n.Emails=[...a,...p].join(","),this.updateScheduledAudioConferenceData(n)}))}forTestingcreateOrUpdateAudioConferenceHelper(e,o,n){return this.createOrUpdateAudioConferenceHelper(e,o,n)}createOrUpdateAudioConferenceHelper(e,o,n){const a=void 0!==n.Participants?n.Participants.filter(R=>R.Number!==e.Number):[],p=new t.J({Name:e.WmFriendlyName,Number:e.Number,IsExtension:""!==e.Number,Email:e.Email}),h=[...a,p],m=new i.Kf$;m.Id=n.IsNew?m.Id:n.ScheduleId,m.StartAtUTC=v()(n.StartDate).utc().format(y.i$);const K=n.Duration;if(m.EndAtUTC=v()(v()(m.StartAtUTC).add(K,"minutes")).format(y.i$),m.Name=n.NameOfConference,m.Description=n.DescriptionOfConference,m.DisableUserInteractions=!n.EnableAnnouncements,n.calendarType===i.oKl.Tcx){const R=h.filter(P=>P.IsExtension).map(P=>P.Number).join(","),D=a.filter(P=>!P.IsExtension&&!s.Q.isNullOrEmpty(P.Number)).map(P=>P.Number).join(","),E=h.filter(P=>!s.Q.isNullOrEmpty(P.Email)&&!P.IsExtension).map(P=>P.Email);n.StartNow&&E.push(p.Email),m.Emails=E.join(","),m.InternalParticipants=R,m.CallToExternalNumbers=D}else m.Emails="",m.InternalParticipants="",m.CallToExternalNumbers="";return m.ConferencePIN=n.PinCode,m.Moderators=o.Moderators,m.EmailBody=o.EmailBody,m.ExternalNumberOfConference=n.MainDidNumber,m.CalendarType=n.calendarType,m}stopPrivateConference(){}createConferenceScheduleTemplate(){const e=new i.tHC;return this.myPhoneService.get(e).pipe((0,u.W)(o=>(this.modalService.error(o),(0,T.of)(!1))))}sendDeleteActiveConferenceRequest(e,o=!0){const n=new i.Wyw;return n.method="delete",n.pin=e,n.hold="0",this.myPhoneService.get(n).pipe((0,u.W)(a=>(o&&this.modalService.error(a),(0,T.of)([]))))}sendDeleteScheduleConferenceRequest(e,o){const n=new i.Kf$;return n.Id=o,n.ConferencePIN=e,n.DeleteSchedule=!0,this.myPhoneService.get(n)}sendDeleteVideoConferenceRequest(e){const o=new i.RL6({Id:e.ScheduleID,Action:i.X2v.Deleted}),n=this.myPhoneService.get(o).pipe((0,u.W)(p=>(this.modalService.error(p.source&&p.source.ErrorType===i.tGV.ConferenceAccessDenied?"_i18n.OnlyOrganizerDeletesConference":p),(0,T.of)([])))),a=this.sendDeleteActiveConferenceRequest(e.PinCode,!e.IsScheduled);return(0,W.x)(n,a)}sendDeleteAudioConferenceRequest(e){const o=this.sendDeleteScheduleConferenceRequest(e.PinCode,e.ScheduleID).pipe((0,u.W)(()=>(0,T.of)(!0))),n=this.sendDeleteActiveConferenceRequest(e.PinCode,!e.IsScheduled);return(0,W.x)(o,n)}static \u0275fac=function(o){return new(o||C)};static \u0275prov=f.jDH({token:C,factory:C.\u0275fac})}return C})()},65352(j,x,r){r.d(x,{L:()=>L});var _=r(85802),W=r(68018),O=r(38601),T=r(33971),g=r(16444),f=r(1211),M=r(983),v=r(96354),B=r(25558),s=r(88141);let L=(()=>{class t{myPhoneService=(0,_.WQX)(g.gx);modalService=(0,_.WQX)(O.B);translate=(0,_.WQX)(W.c$);updateScheduledVideoConferenceData(c){return this.myPhoneService.get(c).pipe((0,v.T)(l=>l.Id))}addWebmeetingContact(c,l){if(!l.isEmail)return this.modalService.error("_i18n.Conference_Schedule_ErrorInvalidEmail"),M.w;const d=l.number,u=l.name===d?T.TJ.substrEmailToName(d):l.name;return this.myPhoneService.get(new f.VWt({Id:c.audioConference.ScheduleID,PinCode:c.audioConference.PinCode})).pipe((0,v.T)(I=>I.webMeetingScheduleState)).pipe((0,B.n)(I=>{if(!I)return M.w;const A=new f.RL6(I);A.Participants.Items??=[];const N=A.Participants.Items;return N.forEach(S=>S.Action=f.X2v.NoUpdates),A.Organizer&&A.Organizer.Email===d?this.translate.get("_i18n.ParticipantWithEmailAlreadyAddedAsOrganizer",{p1:d}).pipe((0,s.M)(S=>this.modalService.error(S))):-1!==N.findIndex(S=>S.Email===d)?this.translate.get("_i18n.ParticipantWithEmailAlreadyAdded",{p1:d}).pipe((0,s.M)(S=>this.modalService.error(S))):(N.push(new f.N7N({Action:f.X2v.Inserted,Email:d,Name:u})),this.updateScheduledVideoConferenceData(A))}))}static \u0275fac=function(l){return new(l||t)};static \u0275prov=_.jDH({token:t,factory:t.\u0275fac})}return t})()}}]);

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.