1"use strict";(self.webpackChunksalezconnect=self.webpackChunksalezconnect||[]).push([["default-apps_salezconnect_src_app_features_settings_component_contact-settings_dialogs_contac-4b9488"],{81135:function(e,t,o){o.d(t,{g:function(){return n}});var r=o(30029),c=o(37716);let n=(()=>{class e{transform(e,t,o="",c=!1){if(!Array.isArray(e)||!(0,r.HD)(o)&&!(0,r.ui)(o)&&!(0,r.jn)(o))return e;const n=String(o).toLowerCase();return e.filter(e=>t.some(t=>{const o=(0,r.NS)(e,t),i=String(o).toLowerCase();return!(0,r.o8)(o)&&(c?n===i:!!~i.indexOf(n))}))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=c.Yjl({name:"filterBy",type:e,pure:!0}),e})()},30029:function(e,t,o){function r(e){return void 0===e}function c(e){return"string"==typeof e}function n(e){return"boolean"==typeof e}function i(e){return function(e){return"number"==typeof e}(e)&&isFinite(e)}function a(e,t){const o=t.split("."),c=o.shift();return o.reduce((e,t)=>r(e)||r(e[t])?void 0:e[t],e[c||""])}o.d(t,{o8:function(){return r},HD:function(){return c},jn:function(){return n},ui:function(){return i},NS:function(){return a}})},41805:function(e,t,o){o.d(t,{JV:function(){return R},YZ:function(){return T}});var r=o(64762),c=o(47661),n=o(33103),i=o(61322),a=o(83461),s=o(39985),d=o(26711),l=o(91009),f=o(23876),p=o(2582),g=o(37716),u=o(22238),b=o(76627),h=o(3679),C=o(91276),m=o(73078),Z=o(38583),A=o(81135);function v(e,t){if(1&e){const e=g.EpF();g.TgZ(0,"span",33),g.NdJ("click",function(){g.CHM(e);const t=g.oxw().$implicit,o=g.oxw().$implicit;return g.oxw().removeContactRecordProperties(t,o.groupName)}),g._uU(1,"Remove"),g.qZA()}}function P(e,t){if(1&e){const e=g.EpF();g.TgZ(0,"span",34),g.NdJ("click",function(){g.CHM(e);const t=g.oxw().$implicit,o=g.oxw().$implicit;return g.oxw().addContactRecordProperties(t,o.groupName)}),g._uU(1,"Add"),g.qZA()}}function y(e,t){if(1&e&&(g.ynx(0),g.TgZ(1,"li",30),g.TgZ(2,"label"),g._uU(3),g.qZA(),g.YNc(4,v,2,0,"span",31),g.YNc(5,P,2,0,"span",32),g.qZA(),g.BQk()),2&e){const e=t.$implicit;g.xp6(3),g.Oqu(e.label),g.xp6(1),g.Q6J("ngIf",e.isSelected),g.xp6(1),g.Q6J("ngIf",!e.isSelected)}}const x=function(){return["label"]};function S(e,t){if(1&e&&(g.ynx(0),g.TgZ(1,"p-accordionTab",29),g.TgZ(2,"ul"),g.YNc(3,y,6,3,"ng-container",13),g.ALo(4,"filterBy"),g.qZA(),g.qZA(),g.BQk()),2&e){const e=t.$implicit,o=g.oxw();g.xp6(1),g.s9C("header",e.groupLabel),g.Q6J("selected",e.groupName===o.selectedAccordian),g.xp6(2),g.Q6J("ngForOf",g.Dn7(4,3,e.groupValue,g.DdM(7,x),o.contactPropetySearchInput))}}function _(e,t){if(1&e){const e=g.EpF();g.TgZ(0,"div",35),g.TgZ(1,"div",15),g.TgZ(2,"div",36),g.TgZ(3,"div",37),g._UZ(4,"img",38),g.TgZ(5,"label"),g._uU(6),g.qZA(),g.TgZ(7,"i",39),g.NdJ("click",function(){const t=g.CHM(e).$implicit;return g.oxw().removeContactRecordProperties(t,"contact_information")}),g.qZA(),g.qZA(),g.qZA(),g.qZA(),g.qZA()}if(2&e){const e=t.$implicit;g.xp6(6),g.Oqu(e.label)}}const R="create";class T{constructor(e,t,o){this.contactRecordDialog=e,this.store=t,this.sharedService=o,this.selectedAccordian="contact_information",this.removableContactRecordPropertiesArray=[],this.allContactRecordPropertiesArray=[],this.selectedContactRecordProperty=[]}ngOnInit(){this.isSaveContactRecordSettingSubs=this.isSaveContactRecordSetting$.subscribe(e=>{if(e)switch(e){case l.MR:this.sharedService.openSnackBar(d.HE.CONTACT_MESSAGE.CONTACT_SETTINGS_UPDATE_SUCCESS,l.Ak,l.cx.SUCCESS),this.contactRecordDialog.close(l.MR);break;case l.ig:this.sharedService.openSnackBar(d.HE.CONTACT_MESSAGE.CONTACT_SETTINGS_UPDATE_FAILED,l.Ak,l.cx.ERROR)}}),this.getContactRecordPropertiesSubs=this.getContactRecordProperties$.subscribe(e=>{this.allContactRecordPropertiesArray=e}
1),this.getSelectedContactRecordPropetiesSubs=this.getSelectedContactRecordPropeties$.subscribe(e=>{this.removableContactRecordPropertiesArray=e.filter(e=>!0===e.isActive),this.selectedContactRecordProperty=e})}cancel(){this.contactRecordDialog.close(l.lz)}addContactRecordProperties(e,t){this.selectedAccordian=t,this.store.dispatch(new i.fk(e)),this.removableContactRecordPropertiesArray.push(e),this.selectedContactRecordProperty=[...this.removableContactRecordPropertiesArray]}removeContactRecordProperties(e,t){this.selectedAccordian=t,this.store.dispatch(new i.t_(e)),this.removableContactRecordPropertiesArray=this.removableContactRecordPropertiesArray.filter(t=>t.fieldId!==e.fieldId),this.selectedContactRecordProperty=[...this.removableContactRecordPropertiesArray]}changeOrderOfSelectedProperties(e){(0,a.bA)(this.removableContactRecordPropertiesArray,e.previousIndex,e.currentIndex)}saveContactRecordProperties(){const e=this.removableContactRecordPropertiesArray.map(e=>e.fieldId.toString());this.store.dispatch(new i.hR(e))}clearAllFields(){this.removableContactRecordPropertiesArray=[],this.store.dispatch(new i.y0),this.selectedContactRecordProperty=[...this.removableContactRecordPropertiesArray]}addCustomFields(){this.store.dispatch(new f.Fg([p.Jo.route])),this.contactRecordDialog.close()}ngOnDestroy(){this.getContactRecordPropertiesSubs&&this.getContactRecordPropertiesSubs.unsubscribe(),this.getSelectedContactRecordPropetiesSubs&&this.getSelectedContactRecordPropetiesSubs.unsubscribe(),this.isSaveContactRecordSettingSubs&&this.isSaveContactRecordSettingSubs.unsubscribe()}}T.\u0275fac=function(e){return new(e||T)(g.Y36(u.so),g.Y36(c.yh),g.Y36(s.F))},T.\u0275cmp=g.Xpm({type:T,selectors:[["app-contact-record-properties-dialog"]],decls:41,vars:5,consts:[[1,"columnDialog"],[1,"dialog-header"],[1,"text-primary-color","primary-font-family","text-body-xl","mb-0"],["type","button","aria-label","Close",1,"icon-button",3,"click"],[1,"content"],[1,"row"],[1,"col-6","col-md-6"],[1,"left-box"],[1,"searchBar"],["src","assets/images/icons/search-icon.svg","alt","Search"],["type","text","placeholder","Search by name",3,"ngModel","ngModelChange"],[1,"settings-filter-accordian",2,"height","290px"],[3,"multiple"],[4,"ngFor","ngForOf"],[1,"col-6","col-md-6",2,"margin-left","inherit","padding-bottom","10px"],[1,"col-12","col-md-12"],[1,"d-flex"],[1,"-heading-md-pf-style","text-body-xs","mb-0"],[1,"grey-lbl"],[2,"height","290px"],["cdkDropList","",3,"cdkDropListDropped"],["class","row","style","margin:0;","cdkDrag","",4,"ngFor","ngForOf"],[1,"action-button"],[1,"footer-left"],[1,"cp","_hide",3,"click"],[1,"cp",3,"click"],[1,"footer-right"],["type","button",1,"campaign-dialog-btn","campaign-dialog-btn--cancel",3,"click"],["type","button",1,"campaign-dialog-btn","campaign-dialog-btn--save",3,"click"],[3,"header","selected"],[1,"clearfix"],["class","utiLabels yellowLbl float-right",3,"click",4,"ngIf"],["class","utiLabels purpLbl float-right",3,"click",4,"ngIf"],[1,"utiLabels","yellowLbl","float-right",3,"click"],[1,"utiLabels","purpLbl","float-right",3,"click"],["cdkDrag","",1,"row",2,"margin","0"],[1,"draggableFields"],[1,"p-helper-clearfix","list"],["src","assets/images/ic_dragged.svg"],[1,"pi","pi-times",3,"click"]],template:function(e,t){1&e&&(g.TgZ(0,"div",0),g.TgZ(1,"div",1),g.TgZ(2,"h1",2),g._uU(3,"Contact Record Properties"),g.qZA(),g.TgZ(4,"button",3),g.NdJ("click",function(){return t.cancel()}),g.TgZ(5,"mat-icon"),g._uU(6,"close"),g.qZA(),g.qZA(),g.qZA(),g.TgZ(7,"div",4),g.TgZ(8,"div",5),g.TgZ(9,"div",6),g.TgZ(10,"div",7),g.TgZ(11,"div",8),g._UZ(12,"img",9),g.TgZ(13,"input",10),g.NdJ("ngModelChange",function(e){return t.contactPropetySearchInput=e}),g.qZA(),g.qZA(),g.TgZ(14,"div",11),g.TgZ(15,"ng-scrollbar"),g.TgZ(16,"p-accordion",12),g.YNc(17,S,5,8,"ng-container",13),g.qZA(),g.qZA(),g.qZA(),g.qZA(),g.qZA(),g.TgZ(18,"div",14),g.TgZ(19,"div",5),g.TgZ(20,"div",15),g.TgZ(21,"label",16),g.TgZ(22,"p",17),g._uU(23),g.qZA(),g.TgZ(24,"span",18),g._uU(25,"Number of fields selected"),g.qZA(),g.qZA(),g.qZA(),g.qZA(),g.TgZ(26,"div",19),g.TgZ(27,"ng-scrollbar"),g.TgZ(28,"div",20),g.NdJ("cdkDropListDropped",function(e){return t.changeOrderOfSelectedProperties(e)}),g.YNc(29,_,8,1,"div",21),g.qZA(),g.qZA(),g.qZA(),g.qZA(),g.qZA(),g.qZA(),g.TgZ(30,"div",22),g.TgZ(31,"div",23),g.TgZ(32,"label",24),g.NdJ("click",function(){return t.addCustomFields()}),g._uU(33,"+ ADD CUSTOM FIELD"),g.qZA(),g.TgZ(34,"label",25),g.
1NdJ("click",function(){return t.clearAllFields()}),g._uU(35,"CLEAR ALL FIELDS"),g.qZA(),g.qZA(),g.TgZ(36,"div",26),g.TgZ(37,"button",27),g.NdJ("click",function(){return t.cancel()}),g._uU(38,"Cancel"),g.qZA(),g.TgZ(39,"button",28),g.NdJ("click",function(){return t.saveContactRecordProperties()}),g._uU(40,"Save"),g.qZA(),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.xp6(13),g.Q6J("ngModel",t.contactPropetySearchInput),g.xp6(3),g.Q6J("multiple",!1),g.xp6(1),g.Q6J("ngForOf",t.allContactRecordPropertiesArray),g.xp6(6),g.hij(" ",t.selectedContactRecordProperty.length," "),g.xp6(6),g.Q6J("ngForOf",t.removableContactRecordPropertiesArray))},directives:[b.Hw,h.Fj,h.JJ,h.On,C.KC,m.UQ,Z.sg,a.Wj,m.US,Z.O5,a.Zt],pipes:[A.g],styles:['[_ngcontent-%COMP%]:root{--blue-subTitle: #99bbff;--blue-E8EEFD: #e8eefd;--tabBgColor: #e5e8ed;--color-ff6b6b: #ff6b6b;--color-f0f6ff: #f0f6ff;--color-cacdd6: #cacdd6;--color-f5f5f5: #f5f5f5;--color-eee: #eee;--color-ddd: #ddd;--color-b8d5ff: #b8d5ff;--color-4ecdc4: #4ecdc4;--color-f6f7f8: #f6f7f8;--color-d8dce3: #d8dce3;--color-f6d0d4: #f6d0d4;--color-e7f0f9: #e7f0f9;--color-c3cad6: #c3cad6;--color-d2d9ef: #d2d9ef;--color-c6d9ff: #c6d9ff;--color-D8DBE2: #d8dbe2;--color-CCDDFF: #ccddff;--color-6699ff: #6699ff;--color-9dcaff: #9dcaff;--color-seagreen: seagreen;--color-ca98f5: #ca98f5;--color-b3bcc9: #b3bcc9;--color-e8e8e8: #e8e8e8;--color-dae9ff: #dae9ff;--color-dcdfe7: #dcdfe7;--color-e7ebf2: #e7ebf2;--color-dbeaff: #dbeaff;--color-ecf4ff: #ecf4ff;--color-f9f9fb: #f9f9fb;--color-f8f9fa: #f8f9fa;--color-f8f8f8: #f8f8f8;--color-EBFFD7: #ebffd7;--color-f3f3f3: #f3f3f3;--color-f5f8ff: #f5f8ff;--color-f1f1f1: #f1f1f1;--color-E8EAEF: #e8eaef;--color-efeeea: #efeeea;--color-a0a8b9: #a0a8b9;--color-808fa5: #808fa5;--color-66666: #666666;--color-c5ccd8: #969fb2;--color-9AA1AF: #9aa1af;--color-6a7386: #6a7386;--color-999999: #999999;--color-333435: #333435;--color-ef9da7: #ef9da7;--color-e0c59a: #e0c59a;--color-f1b44c: #f1b44c;--color-5bc0de: #5bc0de;--color-eff2f7: #eff2f7;--color-74788d: #74788d}[_ngcontent-%COMP%]:root{--ss-background-default-shadow: 0 3px 8px 0 var(--ss-card-shadow-color);--ss-background-hoverd-shadow: 0 8px 22px 0 var(--ss-card-shadow-color)}.dialog-header[_ngcontent-%COMP%]{align-items:center;border-bottom:1px solid #e6edf5;display:flex;justify-content:space-between;margin:0;padding:16px 20px}.icon-button[_ngcontent-%COMP%]{align-items:center;background:transparent;border:0;border-radius:6px;cursor:pointer;display:inline-flex;height:28px;justify-content:center;padding:0;width:28px}.mat-icon[_ngcontent-%COMP%]{color:var(--ss-black-color);cursor:pointer;font-size:20px;height:20px;width:20px}.action-button[_ngcontent-%COMP%]{align-items:center;border-top:1px solid #e6edf5;display:flex;justify-content:space-between;margin-top:4px;padding:0 20px;min-height:56px}.action-button[_ngcontent-%COMP%] .footer-left[_ngcontent-%COMP%]{align-items:center;display:flex;grid-gap:16px;gap:16px}.action-button[_ngcontent-%COMP%] .footer-right[_ngcontent-%COMP%]{align-items:center;display:flex;grid-gap:10px;gap:10px}.action-button[_ngcontent-%COMP%] .footer-right[_ngcontent-%COMP%] .campaign-dialog-btn[_ngcontent-%COMP%]{background:transparent;border:1px solid transparent;border-radius:8px;cursor:pointer;font-family:inherit;font-size:14px;font-weight:600;height:44px;line-height:36px;margin:0;min-width:88px;outline:none;padding:0 16px;transition:background-color .3s,border-color .3s,color .3s}.action-button[_ngcontent-%COMP%] .footer-right[_ngcontent-%COMP%] .campaign-dialog-btn--cancel[_ngcontent-%COMP%]{background-color:#fff;border-color:#d5d7da;color:#414651}.action-button[_ngcontent-%COMP%] .footer-right[_ngcontent-%COMP%] .campaign-dialog-btn--cancel[_ngcontent-%COMP%]:hover{background-color:#f9fafb;border-color:#adb3bb}.action-button[_ngcontent-%COMP%] .footer-right[_ngcontent-%COMP%] .campaign-dialog-btn--save[_ngcontent-%COMP%]{background-color:var(--ss-primary-color);border-color:var(--ss-primary-color);color:var(--ss-white-color)}.action-button[_ngcontent-%COMP%] .footer-right[_ngcontent-%COMP%] .campaign-dialog-btn--save[_ngcontent-%COMP%]:hover{background-color:var(--ss-primary-hover-color);border-color:var(--ss-primary-hover-color)}.pi-times[_ngcontent-%COMP%]{font-size:17px!important;font-weight:600!important;font-family:inherit!important}.pi-times[_ngcontent-%COMP%]:before{content:"X"!important}']}),(0,r.gn)([(0,c.Ph)(n.S.getContactRecordProperties),(0,r.w6)("design:type",Object)],T.prototype,"getContactRecordProperties$",void 0),(0,r.gn)([(0,c.Ph)(n.S.getSelectedContactRecordPropeties),(0,r.w6)("design:type",Object)],T.prototype,"getSelectedContactRecordPropeties$",void 0),(0,r.gn)([(0,c.Ph)(n.S.isSaveContactRecordSetting),(0,r.w6)("design:type",Object)],T.prototype,"isSaveContactRecordSetting$",void 0)}}]);
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.