PageSourceSearch

https://newpg.ru/7771.f67c8557ecab1a72.js

js newpg.ru collected 2026-10-06 06:26:39 UTC 13,905 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[7771],{37382(G,M,s){s.d(M,{F:()=>Z});var d=s(85802),h=s(43462),l=s(89417),g=s(56998),p=s(1211);function I(a){return"boolean"==typeof a?!a:null}function i(a){const u=Object.keys(a).reduce((e,r)=>{let c=a[r];return c&&"object"==typeof c&&(c=i(c)),c&&(e[r]=c),e},{});return Object.keys(u).length?u:null}function f(a,u,e){const{customMessage:r,customName:c,noAnswerTimeout:C,availableNoAnswerExternal:v,availableNoAnswerInternal:A,availableBusyExternal:m,availableBusyInternal:w,awayInternal:b,awayExternal:R}=a.controls;return i({CustomMessage:r.invalid,CustomName:c.invalid,...u&&{Available:{NoAnswerTimeout:C.invalid,NoAnswerExternal:v.invalid,NoAnswerInternal:(A.value?.sameAsAllCalls?v:A).invalid,BusyExternal:m.invalid,NotRegisteredExternal:m.invalid,BusyInternal:(w.value?.sameAsAllCalls?m:w).invalid,NotRegisteredInternal:(w.value?.sameAsAllCalls?m:w).invalid}},...e&&{Away:{InternalRule:b.invalid,ExternalRule:R.invalid}}})}var E=s(68018),x=s(98352),T=s(24708),_=s(65133),P=s(89079),H=s(19781),$=s(84460),Y=s(72788),J=s(58689),k=s(1191),F=s(8516),n=s(35547);function S(a,u){if(1&a&&n.nrm(0,"field-input",0),2&a){const e=n.XpG(2);n.Y8G("formControl",e.f.customName)("maxlength",128)("nullIsIndeterminate",e.partialEdit)}}function Q(a,u){if(1&a&&n.nrm(0,"app-icon",4),2&a){const e=n.XpG(3);n.Y8G("icon",e.Phone)}}function X(a,u){if(1&a&&n.nrm(0,"app-icon",4),2&a){const e=n.XpG(3);n.Y8G("icon",e.Ban)}}function L(a,u){if(1&a&&(n.j41(0,"fieldset")(1,"legend",3),n.nVh(2,Q,1,1,"app-icon",4),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"div",5)(6,"field-input-number",6),n.nrm(7,"val-errors",7),n.k0s()(),n.nrm(8,"app-forward-destination",8)(9,"app-forward-destination",9),n.k0s(),n.j41(10,"fieldset")(11,"legend",3),n.nVh(12,X,1,1,"app-icon",4),n.EFF(13),n.nI1(14,"translate"),n.k0s(),n.nrm(15,"app-forward-destination",10)(16,"app-forward-destination",11),n.k0s()),2&a){const e=n.XpG(2);n.R7$(2),n.vxM(e.isNewDesign()?2:-1),n.R7$(),n.SpI(" ",n.bMT(4,28,"_i18n.NoAnswer")," "),n.R7$(3),n.Y8G("inlineLabel",!e.partialEdit)("formControl",e.f.noAnswerTimeout)("nullIsIndeterminate",e.partialEdit)("min",1)("max",600),n.R7$(),n.Y8G("control",e.f.noAnswerTimeout),n.R7$(),n.Y8G("formControl",e.f.availableNoAnswerExternal)("partialEdit",e.partialEdit)("extensionInfo",e.extensionInfo)("showValidation",e.showValidation),n.R7$(),n.Y8G("formControl",e.f.availableNoAnswerInternal)("partialEdit",e.partialEdit)("extensionInfo",e.extensionInfo)("showSameAsAllCalls",!0)("showValidation",e.showValidation),n.R7$(3),n.vxM(e.isNewDesign()?12:-1),n.R7$(),n.SpI(" ",n.bMT(14,30,"_i18n.PhoneBusyOrNotReg")," "),n.R7$(2),n.Y8G("formControl",e.f.availableBusyExternal)("partialEdit",e.partialEdit)("extensionInfo",e.extensionInfo)("showValidation",e.showValidation),n.R7$(),n.Y8G("formControl",e.f.availableBusyInternal)("partialEdit",e.partialEdit)("extensionInfo",e.extensionInfo)("showSameAsAllCalls",!0)("showValidation",e.showValidation)}}function j(a,u){if(1&a&&(n.j41(0,"app-forward-destination",12),n.nrm(1,"field-checkbox",13),n.k0s(),n.j41(2,"app-forward-destination",14),n.nrm(3,"field-checkbox",13),n.k0s()),2&a){const e=n.XpG(2);n.Y8G("formControl",e.f.awayInternal)("partialEdit",e.partialEdit)("extensionInfo",e.extensionInfo)("showValidation",e.showValidation),n.R7$(),n.Y8G("formControl",e.f.sendToVMOOHInternal)("nullIsIndeterminate",e.partialEdit),n.R7$(),n.Y8G("formControl",e.f.awayExternal)("extensionInfo",e.extensionInfo)("partialEdit",e.partialEdit)("enableUse302",!0)("showValidation",e.showValidation),n.R7$(),n.Y8G("formControl",e.f.sendToVMOOHExternal)("nullIsIndeterminate",e.partialEdit)}}function U(a,u){if(1&a&&n.nrm(0,"field-checkbox",15)(1,"field-checkbox",16),2&a){const e=n.XpG(2);n.Y8G("description",e.isNewDesign()?"_i18n.RingMyMobileDescription":"")("switch",e.isNewDesign())("nullIsIndeterminate",e.partialEdit)("formControl",e.f.availableRingMyMobile),n.R7$(),n.Y8G("description",e.isNewDesign()?"_i18n.AcceptMultipleCallsDescription":"")("switch",e.isNewDesign())("nullIsIndeterminate",e.partialEdit)("formControl",e.f.availableAcceptMultipleCalls)}}function W(a,u){if(1&a&&n.nrm(0,"field-checkbox",17)(1,"field-checkbox",18),2&a){const e=n.XpG(2);n.Y8G("nullIsIndeterminate",e.partialEdit)("formControl",e.f.officeHoursAutoQueueLogOut),n.R7$(),n.Y8G("nullIsIndeterminate",e.partialEdit)("formControl",e.f.acceptRingGroupCalls)}}function z(a,u){if(1&a&&(n.nVh(0,S,1,3,"field-input",0),n.nrm(1,"field-input",1),n.nVh(2,L,17,32)(3,j,4,13),n.j41(4,"fieldset")(5,"legend"),n.EFF(6),n.nI1(7,"translate"),n.k0s(),n.nVh(8,U,2,8),n.nVh(9,W,2,4),n.nrm(10,"field-checkbox",2),n.k0s()),2&a){const e=n.XpG();n.vxM(e.isCustom?0:-1),n.R7$(),n.Y8G("formControl",e.f.customMessage)("maxlength",128)("nullIsIndeterminate",e.partialEdit),n.R7$(),n.vxM(e.isAvailable?2:e.isAway?3:-1),n.R7$(4),n.JRh(n.bMT(7,12,"_i18n.GeneralOptions")),n.R7$(2),n.vxM(e.isAvailable?8:-1),n.R7$(),n.vxM(e.showExtendedFields?9:-1),n.R7$(),n.Y8G("description",e.isNewDesign()?"_i18n.AllowPushNotificationsDescription":"")("switch",e.isNewDesign())("nullIsIndeterminate",e.partialEdit)("formControl",e.f.allowPushNotifications)}}let Z=(()=>{class a extends x.z{destroy$=(0,d.WQX)(d.abz);isNewDesign=(0,d.WQX)(J.T);extensionInfo;showValidation;showExtendedFields=!1;partialEdit=!1;form=new l.gE({customMessage:new l.MJ(null),customName:new l.MJ(null),noAnswerTimeout:new l.MJ(null),availableNoAnswerExternal:new l.MJ(null),availableNoAnswerInternal:new l.MJ(null),availableBusyExternal:new l.MJ(null),availableBusyInternal:new l.MJ(null),availableRingMyMobile:new l.MJ({value:null,disabled:!0}),availableAcceptMultipleCalls:new l.MJ(null),awayInternal:new l.MJ(null),awayExternal:new l.MJ(null),sendToVMOOHInternal:new l.MJ(null),sendToVMOOHExternal:new l.MJ(null),allowPushNotifications:new l.MJ(null),officeHoursAutoQueueLogOut:new l.MJ({value:null,disabled:!this.showExtendedFields}),acceptRingGroupCalls:new l.MJ({value:null,disabled:!this.showExtendedFields})});constructor(){super(),this.form.valueChanges.pipe((0,P.pQ)(this.destroy$)).subscribe(e=>{this.valueChanged(function t(a,u){const{customMessage:e,customName:r,noAnswerTimeout:c,availableNoAnswerExternal:C,availableNoAnswerInternal:v,availableBusyExternal:A,availableBusyInternal:m,availableRingMyMobile:w,availableAcceptMultipleCalls:b,awayInternal:R,awayExternal:N,allowPushNotifications:D,officeHoursAutoQueueLogOut:K,acceptRingGroupCalls:V,sendToVMOOHInternal:B,sendToVMOOHExternal:O}=u;return{Id:a.Id,Name:a.Name,CustomMessage:e&&e.trim(),CustomName:r&&r.trim(),BlockPush:void 0===D?void 0:I(D),OfficeHoursAutoQueueLogOut:K,DisableRingGroupCalls:void 0===V?void 0:I(V),...a.Available&&{Available:new p.MMH({NoAnswerTimeout:c??void 0,RingMyMobile:w??void 0,UsePhoneBusyStatus:b??void 0,NoAnswerExternal:C?.forwardDestination??void 0,NoAnswerAllCalls:v?.sameAsAllCalls,NoAnswerInternal:(v?.sameAsAllCalls?C:v)?.forwardDestination??void 0,BusyExternal:A?.forwardDestination??void 0,NotRegisteredExternal:A?.forwardDestination??void 0,BusyAllCalls:m?.sameAsAllCalls,NotRegisteredAllCalls:m?.sameAsAllCalls,BusyInternal:(m?.
1sameAsAllCalls?A:m)?.forwardDestination??void 0,NotRegisteredInternal:(m?.sameAsAllCalls?A:m)?.forwardDestination??void 0})},...a.Away&&{Away:new p.RYs({InternalRule:R?.forwardDestination??void 0,ExternalRule:N?.forwardDestination??void 0,AllHoursInternal:null==B?void 0:!B,AllHoursExternal:null==O?void 0:!O})}}}(this.value,{...e,availableRingMyMobile:this.f.availableRingMyMobile.value}))})}writeValue(e){super.writeValue(e),this.form.patchValue(function o(a,u){const{Available:e,Away:r,CustomName:c,CustomMessage:C,BlockPush:v,OfficeHoursAutoQueueLogOut:A,DisableRingGroupCalls:m}=a||{},w=!!u&&null;return{customMessage:C,customName:c,noAnswerTimeout:e?.NoAnswerTimeout??(u?null:20),availableNoAnswerExternal:e?{forwardDestination:e.NoAnswerExternal}:null,availableNoAnswerInternal:e?{forwardDestination:e.NoAnswerInternal,sameAsAllCalls:e.NoAnswerAllCalls??w}:null,availableBusyExternal:e?{forwardDestination:e.BusyExternal}:null,availableBusyInternal:e?{forwardDestination:e.BusyInternal,sameAsAllCalls:e.BusyAllCalls??w}:null,availableRingMyMobile:e?.RingMyMobile??w,availableAcceptMultipleCalls:e?.UsePhoneBusyStatus??w,awayInternal:r?{forwardDestination:r.InternalRule}:null,awayExternal:r?{forwardDestination:r.ExternalRule}:null,sendToVMOOHInternal:I(r?.AllHoursInternal),sendToVMOOHExternal:I(r?.AllHoursExternal),allowPushNotifications:I(v??w),officeHoursAutoQueueLogOut:A??w,acceptRingGroupCalls:I(m??w)}}(this.value,this.partialEdit),{emitEvent:!1})}get f(){return this.form.controls}get isCustom(){return this.value?.Name===h.SB.Custom1||this.value?.Name===h.SB.Custom2}get isAvailable(){return null!=this.value?.Available}get isAway(){return!this.value?.Available&&null!=this.value?.Away}ngOnChanges(e){e.extensionInfo&&(0,g.TZ)(this.f.availableRingMyMobile,!!this.extensionInfo?.MobileNumber),e.showValidation&&this.showValidation&&this.form.markAllAsTouched(),e.showExtendedFields&&((0,g.TZ)(this.f.officeHoursAutoQueueLogOut,this.showExtendedFields),(0,g.TZ)(this.f.acceptRingGroupCalls,this.showExtendedFields))}validate(){return this.form.updateValueAndValidity({emitEvent:!1}),f(this.form,this.isAvailable,this.isAway)}Phone=F.bcf;Ban=F.MAP;static \u0275fac=function(r){return new(r||a)};static \u0275cmp=n.VBU({type:a,selectors:[["app-forwarding-profile-editor"]],inputs:{extensionInfo:"extensionInfo",showValidation:"showValidation",showExtendedFields:"showExtendedFields",partialEdit:"partialEdit"},features:[n.Jv_([{provide:l.kq,multi:!0,useExisting:a},{provide:l.cz,multi:!0,useExisting:a}]),n.Vt3,n.OA$],decls:1,vars:1,consts:[["data-qa","custom-name","label","_i18n.CustomProfileName",3,"formControl","maxlength","nullIsIndeterminate"],["data-qa","custom-message","label","_i18n.CustomStatus",3,"formControl","maxlength","nullIsIndeterminate"],["data-qa","allow-push-notifications","label","_i18n.AllowPushNotifications",3,"description","switch","nullIsIndeterminate","formControl"],[1,"d-flex","align-items-center","gap-1"],[3,"icon"],[1,"row"],["data-qa","available-no-answer-timeout","label","_i18n.NoAnswerTimeout","units","_i18n.FwdInSeconds",1,"col-md-6",3,"inlineLabel","formControl","nullIsIndeterminate","min","max"],[3,"control"],["data-qa","available-no-answer-external","label","_i18n.ForwardToExternalCalls",3,"formControl","partialEdit","extensionInfo","showValidation"],["data-qa","available-no-answer-internal","label","_i18n.ForwardToInternalCalls",3,"formControl","partialEdit","extensionInfo","showSameAsAllCalls","showValidation"],["data-qa","available-busy-external","label","_i18n.ForwardToExternalCalls",3,"formControl","partialEdit","extensionInfo","showValidation"],["data-qa","available-busy-internal","label","_i18n.ForwardToInternalCalls",3,"formControl","partialEdit","extensionInfo","showSameAsAllCalls","showValidation"],["data-qa","away-internal","label","_i18n.ForwardToInternalCalls",3,"formControl","partialEdit","extensionInfo","showValidation"],["data-qa","send-to-vm-ooh","label","_i18n.SendToVMOOH",3,"formControl","nullIsIndeterminate"],["data-qa","away-external","label","_i18n.ForwardToExternalCalls",3,"formControl","extensionInfo","partialEdit","enableUse302","showValidation"],["data-qa","available-ring-my-mobile","label","_i18n.RingMyMobile",3,"de
1scription","switch","nullIsIndeterminate","formControl"],["data-qa","available-accept-multiple-calls","label","_i18n.AcceptMultipleCalls",3,"description","switch","nullIsIndeterminate","formControl"],["data-qa","log-out-from-queues","label","_i18n.LogOutFromQueues",3,"nullIsIndeterminate","formControl"],["data-qa","accept-calls-from-ring-groups","label","_i18n.AcceptCallsFromRingGroups",3,"nullIsIndeterminate","formControl"]],template:function(r,c){1&r&&n.nVh(0,z,11,14),2&r&&n.vxM(c.value&&c.extensionInfo?0:-1)},dependencies:[l.X1,l.BC,l.tU,l.l_,H.t,$.m,Y.B,T.N4,T.IH,_.b,k.R,E.D9],encapsulation:2,changeDetection:0})}return a})()},22114(G,M,s){s.d(M,{am:()=>g,qt:()=>I,w7:()=>y});var d=s(1211);function h(o,t){return!!o?.ToMyMobile||null!=o&&!!t&&o.Number===t&&(o.FwdType===d.Cvu.FD_External||o.FwdType===d.Cvu.FD_Rebound||o.FwdType===d.Cvu.FD_Deflect)}function l(o,t){return o&&o.ToMyMobile?new d.idX({FwdType:t?o.FwdType:d.Cvu.FD_Disconnect,Number:t}):o}function g(o,t){const{Available:i,Away:f,Exceptions:E}=o;return{...o,...i&&{Available:new d.MMH({...i,NoAnswerExternal:l(i.NoAnswerExternal,t),NoAnswerInternal:l(i.NoAnswerInternal,t),BusyExternal:l(i.BusyExternal,t),BusyInternal:l(i.BusyInternal,t),NotRegisteredExternal:l(i.NotRegisteredExternal,t),NotRegisteredInternal:l(i.NotRegisteredInternal,t)})},...f&&{Away:new d.RYs({...f,InternalRule:l(f.InternalRule,t),ExternalRule:l(f.ExternalRule,t)})},...E&&{Exceptions:new d.GCD({Exceptions:E?.Exceptions.map(x=>new d.I9Q({...x,Destination:l(x.Destination,t)}))})}}}function p(o,t){return o&&h(o,t)?Object.assign(new d.idX({FwdType:o.FwdType,Number:""}),{ToMyMobile:!0}):o}function I(o,t){const{Available:i,Away:f,Exceptions:E}=o;
1return new d.Fdx({...o,...i&&{Available:new d.MMH({...i,NoAnswerExternal:p(i.NoAnswerExternal,t),NoAnswerInternal:p(i.NoAnswerInternal,t),BusyExternal:p(i.BusyExternal,t),BusyInternal:p(i.BusyInternal,t),NotRegisteredExternal:p(i.NotRegisteredExternal,t),NotRegisteredInternal:p(i.NotRegisteredInternal,t)})},...f&&{Away:new d.RYs({...f,InternalRule:p(f.InternalRule,t),ExternalRule:p(f.ExternalRule,t)})},...E&&{Exceptions:new d.GCD({Exceptions:E.Exceptions.map(x=>new d.I9Q({...x,Destination:p(x.Destination,t)}))})}})}function y(o,t){const{Available:i,Away:f,Exceptions:E}=o;return[...i?[i.NoAnswerExternal,i.NoAnswerInternal,i.BusyExternal,i.BusyInternal,i.NotRegisteredExternal,i.NotRegisteredInternal]:[],...f?[f.InternalRule,f.ExternalRule]:[],...E?E.Exceptions.map(x=>x.Destination):[]].some(x=>h(x,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.