PageSourceSearch

https://web.callyzer.co/6788.20088f9b11d71b03.js

js callyzer.co collected 2026-09-25 13:08:38 UTC 63,241 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcallyzer_ms_angular=self.webpackChunkcallyzer_ms_angular||[]).push([[6788,8423,8480,7239,4496,8140,9210,7359,4251,7941,5610,7667,3414],{56788:(K,w,g)=>{g.r(w),g.d(w,{FacebookConnectorConfigureModule:()=>B,MY_CUSTOM_FORMATS:()=>me});var r=g(36895),k=g(89383),q=g(21256),S=g(98937),c=g(24006),f=g(68423),P=g(85864),N=g(3056),I=g(88796),Z=g(94954),V=g(23277),x=g(6045),p=g(49472),M=g(9116),O=g(15861),T=g(32821),y=g(68178),e=g(94650),_=g(35842),U=g(79652),F=g(15031),v=g(80117),h=g(68609),u=g(89620),a=g(17938),d=g(32320);function m(l,t){1&l&&(e.TgZ(0,"strong",54),e._UZ(1,"i",55),e.qZA())}function L(l,t){if(1&l&&e._UZ(0,"span",56),2&l){const o=e.oxw(2);e.Q6J("innerHTML",o.warningMessage,e.oJD)}}function D(l,t){if(1&l){const o=e.EpF();e.TgZ(0,"div",49),e.YNc(1,m,2,0,"strong",50),e.YNc(2,L,1,1,"span",51),e.TgZ(3,"button",52),e.NdJ("click",function(){e.CHM(o);const n=e.oxw();return e.KtG(n.closeMessageAlert())}),e.TgZ(4,"span",53),e._uU(5,"\xd7"),e.qZA()()()}if(2&l){const o=e.oxw();e.xp6(1),e.Q6J("ngIf",o.warningMessage&&o.warningMessage.length>0),e.xp6(1),e.Q6J("ngIf",o.warningMessage&&o.warningMessage.length>0)}}function G(l,t){if(1&l&&(e.TgZ(0,"strong",54),e._UZ(1,"i",55),e._uU(2),e.qZA()),2&l){const o=e.oxw(2);e.xp6(2),e.hij(" ",o.error,"")}}function Q(l,t){if(1&l&&(e.TgZ(0,"strong"),e._uU(1),e.qZA()),2&l){const o=e.oxw(2);e.xp6(1),e.hij(" ",o.successMessage,"")}}const z=function(l,t){return{"alert-danger":l,"alert-success":t}};function W(l,t){if(1&l){const o=e.EpF();e.TgZ(0,"div",57),e.YNc(1,G,3,1,"strong",50),e.YNc(2,Q,2,1,"strong",58),e.TgZ(3,"button",52),e.NdJ("click",function(){e.CHM(o);const n=e.oxw();return e.KtG(n.closeMessageAlert())}),e.TgZ(4,"span",53),e._uU(5,"\xd7"),e.qZA()()()}if(2&l){const o=e.oxw();e.Q6J("ngClass",e.WLB(3,z,o.error&&o.error.length>0,o.successMessage&&o.successMessage.length>0)),e.xp6(1),e.Q6J("ngIf",o.error&&o.error.length>0),e.xp6(1),e.Q6J("ngIf",o.successMessage&&o.successMessage.length>0)}}function H(l,t){if(1&l&&(e.TgZ(0,"ng-option",59),e._uU(1),e.qZA()),2&l){const o=t.$implicit,i=e.oxw();e.Q6J("value",o)("disabled",i.disabledFormList.includes(o)),e.xp6(1),e.hij(" ",o," ")}}function j(l,t){1&l&&e._UZ(0,"i",62)}function X(l,t){if(1&l&&(e.TgZ(0,"span",60),e.YNc(1,j,1,0,"i",61),e.qZA()),2&l){const o=e.oxw();e.xp6(1),e.Q6J("ngIf",o.showLoaderForm)}}const C=function(l){return{"custom-disable":l}},Y=function(){return{standalone:!0}};function $(l,t){if(1&l){const o=e.EpF();e.TgZ(0,"div",12)(1,"div",13)(2,"label",63),e._uU(3),e.ALo(4,"translate"),e.ALo(5,"translate"),e.TgZ(6,"span",15),e._uU(7," *"),e.qZA()(),e.TgZ(8,"div",16)(9,"ng-multiselect-dropdown",64),e.NdJ("ngModelChange",function(n){e.CHM(o);const s=e.oxw();return e.KtG(s.devices=n)}),e.qZA()(),e.TgZ(10,"small"),e._UZ(11,"i",18),e._uU(12),e.ALo(13,"translate"),e.qZA()()()}if(2&l){const o=e.oxw();e.xp6(3),e.AsE("",e.lcZ(4,8,"Select")," ",e.lcZ(5,10,"Employee(s)"),""),e.xp6(5),e.Q6J("ngClass",e.VKq(14,C,o.viewPurchasePermission||o.viewAvailablePermission)),e.xp6(1),e.Q6J("settings",o.deviceSettings)("data",o.deviceList)("ngModel",o.devices)("ngModelOptions",e.DdM(16,Y)),e.xp6(3),e.hij(" ",""==o.devices||null==o.devices?"Please select any employee(s) to assign lead(s)":e.lcZ(13,12,"Lead(s) will be assigned to selected employee(s)"),"")}}function ee(l,t){if(1&l){const o=e.EpF();e.TgZ(0,"div",12)(1,"div",65)(2,"label",14),e._uU(3),e.ALo(4,"translate"),e.TgZ(5,"span",15),e._uU(6," *"),e.qZA()(),e.TgZ(7,"div",16)(8,"ng-multiselect-dropdown",64),e.NdJ("ngModelChange",function(n){e.CHM(o);const s=e.oxw();return e.KtG(s.deviceTags=n)}),e.qZA()(),e.TgZ(9,"small"),e._UZ(10,"i",18),e._uU(11),e.ALo(12,"translate"),e.qZA()()()}if(2&l){const o=e.oxw();e.xp6(3),e.hij("",e.lcZ(4,7,"Select")," Tag(s)"),e.xp6(4),e.Q6J("ngClass",e.VKq(11,C,o.viewPurchasePermission||o.viewAvailablePermission)),e.xp6(1),e.Q6J("settings",o.tagsSetting)("data",o.tagList)("ngModel",o.deviceTags)("ngModelOptions",e.DdM(13,Y)),e.xp6(3),e.hij(" ",""==o.deviceTags||null==o.deviceTags?"Select Employee Tag(s) from the list to assign lead(s)":e.lcZ(12,9,"Lead(s) will be assigned to selected Employee Tag(s)"),"")}}function oe(l,t){1&l&&(e.TgZ(0,"div",12),e._UZ(1,"div",22),e.qZA())}const E=function(l){return{"input-error":l}};function te(l,t){if(1&l){const o=e.EpF();e.TgZ(0,"div",12)(1,"div",13)(2,"label",14),e._uU(3),e.ALo(4,"translate"),e.TgZ(5,"span",15),e._uU(6," *"),e.qZA()(),e.TgZ(7,"div",66)(8,"ng-select",67),e.NdJ("change",function(n){e.CHM(o);const s=e.oxw();return e.KtG(s.onChangeleadTagsOption(n))}),e.ALo(9,"translate"),e.ALo(10,"translate"),e.qZA()(),e.TgZ(11,"small"),e._UZ(12,"i",18),e._uU(13),e.qZA()()()}if(2&l){const o=e.oxw();
1e.xp6(3),e.Oqu(e.lcZ(4,13,"Lead Tags Option")),e.xp6(4),e.Q6J("ngClass",e.VKq(19,C,o.viewPurchasePermission||o.viewAvailablePermission)),e.xp6(1),e.hYB("placeholder","",e.lcZ(9,15,"Select")," ",e.lcZ(10,17,"Lead Tags Option"),""),e.s9C("tooltip",null!=o.facebookintegrationForm.controls.leadTagsOption.errors&&o.facebookintegrationForm.controls.leadTagsOption.errors.required?"Lead Tags Option is required.":""),e.Q6J("items",o.assignToOptionList)("addTag",!0)("clearable",!1)("selectOnTab",!0)("searchable",!1)("ngClass",e.VKq(21,E,o.facebookintegrationForm.controls.leadTagsOption.touched&&o.facebookintegrationForm.controls.leadTagsOption.invalid))("isDisabled",!o.facebookintegrationForm.controls.leadTagsOption.touched||!o.facebookintegrationForm.controls.leadTagsOption.invalid),e.xp6(5),e.hij(" ",o.tooltipForLeadTagsOption,"")}}function ie(l,t){if(1&l&&(e.TgZ(0,"ng-option",68),e._uU(1),e.qZA()),2&l){const o=t.$implicit;e.Q6J("value",o),e.xp6(1),e.hij(" ",o," ")}}function ne(l,t){if(1&l){const o=e.EpF();e.TgZ(0,"button",70),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(2);return e.KtG(n.saveFacebookFormData(n.facebookintegrationForm.value))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&l){const o=e.oxw(2);e.Q6J("disabled",o.showLoader),e.xp6(1),e.Oqu(e.lcZ(2,2,"Save"))}}function se(l,t){if(1&l&&(e.TgZ(0,"span"),e.YNc(1,ne,3,4,"button",69),e.qZA()),2&l){const o=e.oxw();e.xp6(1),e.Q6J("ngIf",!o.isEdit)}}const ae=function(l,t){return{"input-error":l,"custom-disable":t}},re=function(l){return{"pointer-events-none custom-disable":l}},le=function(l){return{"pointer-events-none":l}},ce=function(){return["PER_ALL_ACCESS","PER_MANAGE_PURCHASED_CONNECTOR"]};class R{spinner;translate;commonService;customerPreferenceService;router;facebookService;route;layoutService;subscriptionService;devicesService;customerComponentService;leadService;preferenceType="Facebook";facebookConnectorList;leadConfig;fieldMapping;facebookAssignmentList;facebookDetailsList;managePermission;viewPermission;btnUpdateFacebookDisable;editFacebookForm;facebookOldData;isUpdateButton;isTestButton;newfacebook;testfacebookErrorMessage;isSuccessTest;testForEnable;testfacebookSuccessMessage;facebookList;isfacebooksAvailable;isfacebookAccess;facebookPage;pageId;customerId;facebookPageList;accountId;showLoader=!1;showLoaderForm=!1;formFieldsList=[];fieldTitleId;questions;responseLeadTag=[];addFormAvailable;warningMessage;prefilledFormName;formConfigId;disabledFormList=[];facebook="Facebook";customerComponentList;customerComponentFormFields;dynamicFormControl;isLeadModuleAvailable=!1;error;successMessage;notificationCode;notificationMesssage;isConfigureAccess;isEdit;formName;formId;pageAccessToken;pageName;facebookConnectorListData;isEditForm=!1;status;isMapOldCallsForLead;dateFormat;localTimeZone;upperCaseDateFormat;dateTimeFormat;durationFormat;selectedDropdownColumns=[];disabledDropdownItems=[];connectorsFieldMappingComponent;isRequiredFieldsEmpty=!1;showLeadTagsOption=!1;customerLeadStatusDtos;statusList=[];managePurchasePermission=!1;viewPurchasePermission=!1;manageAvailablePermission=!1;viewAvailablePermission=!1;assignLeadTo;assginToOptionList=[];constructor(t,o,i,n,s,b,A,ue,fe,he,be,_e){this.spinner=t,this.translate=o,this.commonService=i,this.customerPreferenceService=n,this.router=s,this.facebookService=b,this.route=A,this.layoutService=ue,this.subscriptionService=fe,this.devicesService=he,this.customerComponentService=be,this.leadService=_e,o.setDefaultLang(this.commonService.getLocalStorage(p.t.LANGUAGE))}tooltipForStrategy="Select any Assignment Strategy";tooltipForAssignToLead="Select to whom the lead(s) should be assigned.";autocompleteTagItems=[];tagList=[];deviceList=[];strategyList=[];strategyOrignalList=[];assignToOptionList=[];pageList=[];formList=[];leadOptionList;facebookFormList;devices;deviceTags;facebookintegrationForm;tagsSetting={};deviceSettings={};tooltipForAssignLeadToAllEmployeesList=[{strategy:"Assign to All Selected",tooltip:"Lead(s) will be assign to all the registered employees"},{strategy:"Round Robin",tooltip:"Lead(s) will be assigned in the sequence to the next employee(s)."},{strategy:"Minimum Leads",tooltip:"Lead(s) will be assigned to the employee who has the minimum leads compared to all other employees."},{strategy:"Random",tooltip:"Lead(s) will be assigned randomly between all employee(s)."}];tooltipForAssignLeadToSpecificEmployeesTagsList=[{strategy:"Assign to All Selected",tooltip:"Lead(s) will be assigned to all employees with the selected tag(s)."},{strategy:"Round Robin",tooltip:"Lead(s) will be assigned in sequence to the next employee(s) with the selected tag(s)."},{strategy:"Minimum Leads",tooltip:"Leads will be assigned to the employee with the minimum leads compared to other employee(s) with the selected tag(s)"},{strategy:"Random",tooltip:"Lead(s) will be assigned randomly between employee(s) with the selected tag(s)."}];tooltipForAssignLeadToSpecificEmployeesList=[{strategy:"Assign to All Selected",tooltip:" Lead(s) will be assigned to the selected employee(s)."},{strategy:"Round Robin",tooltip:"Lead(s) will be assigned in the sequence to the next selected employee(s)."},{strategy:"Minimum Leads",tooltip:"Lead(s) will be assigned to the employee who has the minimum leads compared to other selected employee(s)."},{strategy:"Random",tooltip:"Lead(s) will be assigned randomly between the selected employee(s)"}];isDeviceDisplay=!1;isDeviceTagsDisplay=!1;tooltipForLeadOption="If any lead(s) are found duplicate by number, selected option specify what to do with that duplicate lead data like (update/skip/overwrite)";tooltipForLeadOptionList=[{leadOption:"Ignore",tooltip:"If any lead is found duplicate by phone number, it will not update any lead data"},{leadOption:"Overwrite",tooltip:"If any lead is found duplicate by phone number, it will update all the data with new values"},{leadOption:"UpdateBlankOnly",tooltip:"If any lead is found duplicate by phone number, it will update only existing blank values with new values"}];tooltipForAssignToOption="If any lead(s) are found duplicate by number, it will add / update or skip assign employee(s) for existing duplicate lead based on selected option";tooltipForAssignToOpionList=[{assignToOption:"Ignore",tooltip:"If any lead is found duplicate by phone number, assigned employee(s) will remain same for that lead"},{assignToOption:"Overwrite",tooltip:"If any lead is found duplicate by phone number, old assigned employee(s) will remove and lead will be assign to new employee(s)"},{assignToOption:"Append",tooltip:"If any lead is found duplicate by phone number, it will keep the existing assigned employee(s) and also same lead will be assign to new employee(s)"}];tooltipForLeadTagsOption="If any lead(s) are found duplicate by number, it will add / update or skip lead tag for existing duplicate lead based on selected option";tooltipForLeadTagsOptionList=[{leadTagsOption:"Ignore",tooltip:"If a lead is found to be a duplicate based on phone number, the tag(s) will remain the same for that lead."},{leadTagsOption:"Overwrite",tooltip:"If a lead is found to be a duplicate based on phone number, the previously added tag(s) for that lead will be removed, and new tag(s) will be added."},{leadTagsOption:"Append",tooltip:"If a lead is found to be a duplicate based on phone number, it will retain the current tag(s) and additionally, new tag(s) will be added along with them."}];formFields=[{label:"First Name",key:"firstName"},{label:"Last Name",key:"lastName"},{label:"Phone Number",key:"number"},{label:"Alternate Phone Number",key:"secondaryNumber"}];ngOnInit(){var t=this;return(0,O.Z)(function*(){t.spinner.show("sp3"),t.route.params.subscribe(o=>{t.accountId=o.accountId,t.formId=o.formId,null!=t.formId||null!=t.formId?t.isEditForm=!0:t.isEditForm=!1}),t.dynamicFormControl=new c.cw({}),t.getLeadStatusForCustomer(),t.getAllCustomerComponents(),t.getSubscriptionDetail
1sByFeature(),t.initializeForm(),t.initializeDropdown(),t.getAllApplyStrategyList(),t.getAllStrategy(),t.getAllAssignToOption(),t.getAllLeadOption(),t.getDistinctTagsForAutoComplete(),yield t.getDeviceTagListWithLeadEnable(),t.getfacebookForms(),t.checkIfLeadModuleIsAvailable(),t.setFormat(),t.checkPermissions(),t.getDeviceTagListWithLeadEnable(),t.fetchDevicesAndConfigurationRelatedData()})()}initializeForm(){this.facebookintegrationForm=new c.cw({FacebookPage:new c.NI(null,[c.kI.required]),FacebookForm:new c.NI(null,[c.kI.required]),leadTags:new c.NI(null),strategy:new c.NI(null,[c.kI.required]),leadOption:new c.NI(null,[c.kI.required]),assignToOption:new c.NI(null,[c.kI.required]),leadTagsOption:new c.NI(null),leadStatus:new c.NI(null),firstName:new c.NI(null,[c.kI.required]),lastName:new c.NI(null),email:new c.NI(null),number:new c.NI(null,[c.kI.required]),secondaryNumber:new c.NI(null),assignLeadTo:new c.NI(null,[c.kI.required]),mapAvailableCallLogs:new c.NI(!0)}),this.formFields.forEach(t=>{this.facebookintegrationForm.controls[t.key].setValue("")})}setFormat(){this.localTimeZone=this.commonService.getLocalTimeZone(),this.dateFormat=this.commonService.getDateFormat(),this.upperCaseDateFormat=this.dateFormat.toUpperCase(),this.dateFormat=this.commonService.getTimeFormat(),this.dateTimeFormat=this.commonService.getDateTimeFormat(),this.durationFormat=this.commonService.getDurationFormat(),this.dateFormat=this.dateFormat+" "+this.dateFormat}getAllCustomerComponents(){this.customerComponentList=[],this.customerComponentService.getAllCustomerComponents().subscribe(t=>{null!=t.data?(this.customerComponentList=t.data,this.appendStaticFildsToCustomerComponentList(),this.generateDynamicFormControl()):this.customerComponentList=[]})}appendStaticFildsToCustomerComponentList(){for(let t=0;t<this.customerComponentList.length;t++)this.customerComponentFormFields=this.customerComponentList.map(o=>({label:o.label,key:o.modelName}));this.formFields=this.formFields.concat(this.customerComponentFormFields)}generateDynamicFormControl(){let t={};for(let i=0;i<this.formFields.length;i++)t[this.formFields[i].key]=new c.NI("");this.dynamicFormControl||(this.dynamicFormControl=new c.cw({}));var o=Object.assign({},this.facebookintegrationForm.controls,t);this.facebookintegrationForm=new c.cw(o)}getDistinctTagsForAutoComplete(){this.leadService.getDistinctTagList(!1).subscribe({next:t=>{this.autocompleteTagItems=t.data}})}onAddTag(t){if(this.closeMessageAlert(),t){if(t.value.length<100)if(new RegExp(p.t.LEADTAG_AND_DEVICETAG_PATTERN).test(t.value))this.commonService.scrollToTop(),this.error=this.translate.instant(p.t.ERROR_MESSAGE_FOR_LEADTAG_AND_DEVICETAG),this.facebookintegrationForm.controls.leadTags.setValue(this.facebookintegrationForm.controls.leadTags.value.filter(i=>i!=t.value));else{let i=this.facebookintegrationForm.controls.leadTags.value.filter(s=>s.toLowerCase()==t.value.toLowerCase());if(null!=i&&i.length>1){let s=this.facebookintegrationForm.controls.leadTags.value.filter(b=>b!=t.value);return this.facebookintegrationForm.controls.leadTags.setValue(s),void(this.error=this.translate.instant("Tag already exist"))}let n=this.autocompleteTagItems.filter(s=>s.toLowerCase()===t.value.toLowerCase());if(null!=n&&n.length>0){let s=this.facebookintegrationForm.controls.leadTags.value.filter(b=>b.toLowerCase()!=t.value.toLowerCase());s.push(n[0]),this.facebookintegrationForm.controls.leadTags.setValue(s)}}else this.commonService.scrollToTop(),this.error=this.translate.instant("Please provide tag name within 100 characters"),this.facebookintegrationForm.controls.leadTags.setValue(this.facebookintegrationForm.controls.leadTags.value.filter(i=>i!=t.value));this.showLeadTagsOption=!0,this.facebookintegrationForm.controls.leadTagsOption.setValidators([c.kI.required])}}deleteTag(t){(null==this.facebookintegrationForm.controls.leadTags.value||""==this.facebookintegrationForm.controls.leadTags.value)&&(this.showLeadTagsOption=!1,this.facebookintegrationForm.controls.leadTags.setValue(null),this.facebookintegrationForm.controls.leadTagsOption.setValue(null),this.facebookintegrationForm.controls.leadTagsOption.setValidators(null),this.facebookintegrationForm.controls.leadTagsOption.clearValidators(),this.facebookintegrationForm.controls.leadTagsOption.reset(),this.facebookintegrationForm.controls.leadTagsOption.markAsUntouched(),this.tooltipForLeadTagsOption="If any lead(s) are found duplicate by number, it will add / update or skip lead tag for existing duplicate lead based on selected option")}onChangeleadTagsOption(t){this.closeMessageAlert(),this.dynamicToolTipsForLeadTagsOption(t)}dynamicToolTipsForLeadTagsOption(t){this.tooltipForLeadTagsOption=this.tooltipForLeadTagsOptionList.filter(o=>t==o.leadTagsOption)[0].tooltip}
1getSubscriptionDetailsByFeature(){this.customerPreferenceService.getFetureSubscriptionDetails(this.facebook).subscribe(t=>{"Active"!=t.data.subscriptionStatus&&this.router.navigate(["/notAuthorized"])},t=>{})}setCustomerPreferenceInForm(){if(void 0!==this.facebookConnectorListData){this.formConfigId=this.facebookConnectorListData.id,this.facebookintegrationForm.controls.FacebookForm.setValue(this.facebookConnectorListData.formName),this.pageId=this.facebookConnectorListData.pageId,this.status=this.facebookConnectorListData.status,this.onChangePageEdit(this.facebookConnectorListData.pageId),this.prefilledFormName=this.facebookConnectorListData.formName;let t=this.facebookConnectorListData.leadConfig.ASSIGN_TO_OPTION;this.facebookintegrationForm.controls.assignToOption.setValue(t),this.dynamicToolTipsForAssignToOption(t);let o=this.facebookConnectorListData.leadConfig.LEAD_OPTION;this.facebookintegrationForm.controls.leadOption.setValue(o),this.dynamicToolTipsForLeadOption(o),this.facebookConnectorListData.leadConfig&&null!=this.facebookConnectorListData.leadConfig.ASSIGN_LEAD_TO&&null!=this.facebookConnectorListData.leadConfig.ASSIGN_LEAD_TO&&(this.facebookConnectorListData.leadConfig.ASSIGN_LEAD_TO===p.t.ALL_EMPLOYEES&&(this.strategyList=this.strategyList.filter(s=>"Assign to All Selected"!==s)),this.facebookintegrationForm.controls.assignLeadTo.setValue(this.facebookConnectorListData.leadConfig.ASSIGN_LEAD_TO),this.facebookConnectorListData.leadConfig.ASSIGN_LEAD_TO==p.t.SPECIFIC_TAGS?this.isDeviceTagsDisplay=!0:this.facebookConnectorListData.leadConfig.ASSIGN_LEAD_TO==p.t.SPECIFIC_EMPLOYEES&&(this.isDeviceDisplay=!0));let i=this.facebookConnectorListData.leadConfig.ASSIGNMENT_STRATEGY;"Assign to All"==i&&this.facebookConnectorListData.leadConfig.ASSIGN_LEAD_TO==p.t.ALL_EMPLOYEES?this.facebookintegrationForm.controls.strategy.setValue(null):"Assign to All Selected"==i&&this.facebookConnectorListData.leadConfig.ASSIGN_LEAD_TO==p.t.ALL_EMPLOYEES?(this.facebookintegrationForm.controls.strategy.setValue("Assign to All"),this.dynamicToolTipsForStrategy(i)):(this.facebookintegrationForm.controls.strategy.setValue(i),this.dynamicToolTipsForStrategy(i)),this.setDevicesOnEditTime(this.facebookConnectorListData.leadConfig);let n=this.facebookConnectorListData.leadConfig.LEAD_TAGS;if(Array.isArray(n)&&n.length>0&&""===n[0]?n=[]:(this.facebookintegrationForm.controls.leadTags.setValue(n),this.facebookintegrationForm.controls.leadTagsOption.setValidators([c.kI.required]),this.showLeadTagsOption=!0),""!=this.facebookConnectorListData.leadConfig.LEAD_TAGS_OPTION){let s=this.facebookConnectorListData.leadConfig.LEAD_TAGS_OPTION;this.facebookintegrationForm.controls.leadTagsOption.setValue(s),this.dynamicToolTipsForLeadTagsOption(s)}if(""!=this.facebookConnectorListData.leadConfig.LEAD_STATUS){let s=this.facebookConnectorListData.leadConfig.LEAD_STATUS;this.facebookintegrationForm.controls.leadStatus.setValue(s)}null!=this.facebookConnectorListData.leadConfig.IS_MAP_OLD_CALLS_FOR_LEAD&&(this.isMapOldCallsForLead=JSON.parse(this.facebookConnectorListData.leadConfig.IS_MAP_OLD_CALLS_FOR_LEAD),this.facebookintegrationForm.controls.mapAvailableCallLogs.setValue(this.isMapOldCallsForLead))}this.spinner.hide("sp3")}onChangeAssignToOption(t){this.closeMessageAlert(),this.dynamicToolTipsForAssignToOption(t)}onChangeLeadOption(t){this.closeMessageAlert(),this.dynamicToolTipsForLeadOption(t)}dynamicToolTipsForStrategy(t){let o=this.facebookintegrationForm.controls.assignLeadTo.value;null===t&&(this.tooltipForStrategy="Select any Assignment Strategy"),("Assign to All Selected"===t||"Round Robin"===t||"Minimum Leads"===t||"Random"===t)&&(o===p.t.ALL_EMPLOYEES?this.tooltipForStrategy=this.tooltipForAssignLeadToAllEmployeesList.filter(i=>t==i.strategy)[0].tooltip:o===p.t.SPECIFIC_TAGS?this.tooltipForStrategy=this.tooltipForAssignLeadToSpecificEmployeesTagsList.filter(i=>t==i.strategy)[0].tooltip:o===p.t.SPECIFIC_EMPLOYEES&&(this.tooltipForStrategy=this.tooltipForAssignLeadToSpecificEmployeesList.filter(i=>t==i.strategy)[0].tooltip))}dynamicToolTipsForAssignToOption(t){this.tooltipForAssignToOption=this.tooltipForAssignToOpionList.filter(o=>t==o.assignToOption)[0].tooltip}dynamicToolTipsForLeadOption(t){this.tooltipForLeadOption=this.tooltipForLeadOptionList.filter(o=>t==o.leadOption)[0].tooltip}onChangeStrategy(t){this.closeMessageAlert(),"Assign to All"===t?this.dynamicToolTipsForStrategy("Assign to All Selected"):this.dynamicToolTipsForStrategy(t)}clearFormList(){this.formList=null,this.facebookintegrationForm.controls.FacebookForm.setValue(null),this.facebookintegrationForm.controls.FacebookForm.markAsUntouched()}onChangePage(t){t=t.id,this.isEditForm||this.clearFormList(),this.showLoaderForm=!0,this.spinner.show("formSp");for(let i=0;i<this.facebookPageList.data.length;i++)if(this.facebookPageList.data[i].id===t){this.pageId=this.facebookPageList.data[i].id,this.pageName=this.facebookPageList.data[i].name,this.accountId=this.facebookPageList.data[i].accountId,this.formId=this.facebookPageList.data[i].formId;break}const o=this.pageId;this.getFormNameByPageId(o,this.accountId,this.formId)}getFormNameByPageId(t,o,i){var n=this;return(0,O.Z)(function*(){const s=yield n.facebookService.getFacebookFormData(t,o,i).toPromise();
1if(n.facebookFormList=s,s.data&&Array.isArray(s.data)){n.formList=s.data.map(A=>A.name),n.disabledFormList=s.data.filter(A=>"ACTIVE"!==A.status).map(A=>A.name);const b=n.facebookintegrationForm.controls.FacebookForm.value;n.isEditForm&&b&&!n.formList.includes(b)&&(n.facebookintegrationForm.controls.FacebookForm.setErrors({formNameMismatch:!0}),n.facebookintegrationForm.controls.FacebookForm.markAsTouched())}n.isEditForm&&n.setFormName(n.facebookConnectorListData.formName),n.showLoaderForm=!1,n.spinner.hide("formsp")})()}setFormName(t){this.connectorsFieldMappingComponent.clearAllFields();for(let o=0;o<this.facebookFormList.data.length;o++)this.facebookFormList.data[o].name===t&&(this.formId=this.facebookFormList.data[o].id,this.formName=this.facebookFormList.data[o].name);this.getFormFieldsByFormId(this.formId,this.formConfigId)}onChangeForm(t){this.connectorsFieldMappingComponent.clearAllFields();for(let o=0;o<this.facebookFormList.data.length;o++)this.facebookFormList.data[o].name===t&&(this.formId=this.facebookFormList.data[o].id,this.formName=this.facebookFormList.data[o].name);this.spinner.show("sp3"),this.getFormFieldsByFormId(this.formId,this.formConfigId)}getfacebookForms(){this.facebookService.getFacebookPageDetails(this.accountId,this.formId).subscribe(t=>{this.facebookPageList=t,t.data&&Array.isArray(t.data)&&(this.pageList=t.data)},t=>{this.error=t.error.message})}getFacebookPageByPageId(){return new Promise((t,o)=>{this.facebookService.getFacebookPageDetailsByPageId(this.accountId,this.pageId).subscribe(i=>{this.facebookPageList=i,i.data&&Array.isArray(i.data)&&(this.pageList=i.data),t(i)},i=>{this.error=i.error?.message||"Something went wrong",o(i)})})}getLeadStatusForCustomer(){this.leadService.leadStatusForLoginCustomer().subscribe(t=>{this.customerLeadStatusDtos=t.data;for(let o=0;o<this.customerLeadStatusDtos.length;o++)0==this.customerLeadStatusDtos[o].isReminderMandatory&&this.statusList.push(this.customerLeadStatusDtos[o].leadStatus)})}setDevicesOnEditTime(t){if(""!=t.DEVICE_TAGS&&null!=t.DEVICE_TAGS&&null!=t.DEVICE_TAGS){let o=t.DEVICE_TAGS.split(",");this.deviceTags=[],this.tagList.forEach(i=>{o.forEach(n=>{n==i&&this.deviceTags.push(i)})})}if(""!=t.DEVICES&&null!=t.DEVICES&&null!=t.DEVICES){let o=t.DEVICES.split(",");this.devices=[],this.deviceList.forEach(i=>{o.forEach(n=>{n==i.mobile&&this.devices.push(i)})})}}closeMessageAlert(){this.error="",this.successMessage="",this.warningMessage=""}clearSelectedDeviceAndTags(){this.deviceTags=[],this.devices=null,this.facebookintegrationForm.get("strategy").setValue(null),this.facebookintegrationForm.controls.strategy.markAsUntouched()}initializeDropdown(){this.deviceSettings={singleSelection:!1,idField:"mobile",textField:"deviceName",selectAllText:"Select All",unSelectAllText:"UnSelect All",itemsShowLimit:2,allowSearchFilter:!0,maxHeight:100},this.tagsSetting={singleSelection:!1,selectAllText:"Select All",unSelectAllText:"UnSelect All",itemsShowLimit:2,allowSearchFilter:!0,maxHeight:100}}getDeviceTagListWithLeadEnable(){this.devicesService.getDeviceTagListWithLeadEnable().subscribe(t=>{this.tagList=t.data},t=>{this.error=t.message||t.data,this.commonService.scrollToTop()})}fetchDevicesAndConfigurationRelatedData(){this.devicesService.getDeviceListWithLeadEnable().subscribe(t=>{this.deviceList=t.data,this.getFacebookConfigurationByCustomer(),this.spinner.hide("sp3")},t=>{this.spinner.hide("sp3"),this.error=t.message||t.data,this.commonService.scrollToTop()})}getAllStrategy(){this.customerPreferenceService.getAssignmentStragetyValues().subscribe(t=>{this.strategyList=t.data,this.strategyOrignalList=t.data})}getAllAssignToOption(){this.customerPreferenceService.getAssignToOptionValues().subscribe(t=>{this.assignToOptionList=t.data})}getAllLeadOption(){this.customerPreferenceService.getLeadOptionValues().subscribe(t=>{this.leadOptionList=t.data})}checkPermissions(){try{const t=this.commonService.getPermission();t.includes("PER_ALL_ACCESS")||t.includes("PER_MANAGE_PURCHASED_CONNECTOR")?this.managePurchasePermission=!0:(t.includes("PER_ALL_ACCESS")||!t.includes("PER_MANAGE_PURCHASED_CONNECTOR")&&t.includes("PER_VIEW_PURCHASED_CONNECTOR"))&&(this.viewPurchasePermission=!0),t.includes("PER_ALL_ACCESS")||t.includes("PER_MANAGE_AVAILABLE_CONNECTOR")?this.manageAvailablePermission=!0:(t.includes("PER_ALL_ACCESS")||!t.includes("PER_MANAGE_AVAILABLE_CONNECTOR")&&t.includes("PER_VIEW_AVAILABLE_CONNECTOR"))&&(this.viewAvailablePermission=!0)}catch{}}checkIfLeadModuleIsAvailable(){this.layoutService.checkIfLeadModuleAvailableForCustomer().subscribe(t=>{1==t.data?this.isLeadModuleAvailable=!0:this.isLeadModuleAvailable=!1})}checkIfLeadModuleIsAvailableAfterLeadFeatureSubscriptionExpired(){this.layoutService.checkIfLeadModuleAvailableForCustomerAfterSubscriptionExpired().subscribe(t=>{0==t.data?this.router.navigate(["/notAuthorized"]):!this.isLeadModuleAvailable&&!this.commonService.getCookie(p.t.IS_LEAD_NOTIFICATION_CLOSE)&&this.getNotificationMessageOnLeadSubscriptionExpired()})}getNotificationMessageOnLeadSubscriptionExpired(){this.layoutService.checkAndGetNotificationMessageOnLeadSubscriptionExpired().subscribe(t=>{null!=t&&(this.notificationCode=t.data,this.notificationMesssage=t.message)},t=>{})}saveFacebookFormData(t){var o=this;return(0,O.Z)(function*(){o.closeMessageAlert(),o.showLoader=!0,o.spinner.show("sp3");const i=o.connectorsFieldMappingComponent.getDynamicFormData();if(o.isRequiredFieldsEmpty=!1,!i.valid)return o.isRequiredFieldsEmpty=!0,o.error="Please fill out all mandatory fields",o.commonService.scrollToTop(),o.showLoader=!1,void o.spinner.hide("sp3");if(o.facebookintegrationForm.valid){let n=o.facebookintegrationForm.controls.assignLeadTo.value;if(n===p.t.SPECIFIC_TAGS&&(null==o.deviceTags||""==o.deviceTags))return o.error="Please Select Employee Tag(s)",o.commonService.scrollToTop(),o.showLoader=!1,void o.spinner.hide("sp3");if(n===p.t.SPECIFIC_EMPLOYEES&&(null==o.devices||""==o.devices))return o.error="Please Select Employee(s)",o.commonService.scrollToTop(),o.showLoader=!1,void o.spinner.hide("sp3");o.setFormDataForFacebook(),o.isLeadModuleAvailable?1==o.isEditForm?yield o.facebookService.updateFacebookConfigurationData(o.facebookConnectorList).subscribe(s=>{o.successMessage="FB & Insta Lead Capture account saved successfully.",o.spinner.hide("sp3"),o.commonService.scrollToTop(),setTimeout(()=>{o.showLoader=!1,o.router.navigateByUrl("/"+T.eX),o.closeMessageAlert()},3e3)},s=>{o.spinner.hide("sp3"),o.error=s.error.data||s.error.message,o.commonService.scrollToTop(),o.showLoader=!1}):yield o.facebookService.setFacebookConfigurationData(o.facebookConnectorList).subscribe(s=>{o.successMessage="FB & Insta Lead Capture account saved successfully.",o.spinner.hide("sp3"),o.commonService.scrollToTop(),setTimeout(()=>{o.showLoader=!1,o.router.navigateByUrl("/"+T.eX),o.closeMessageAlert()},3e3)},s=>{o.spinner.hide("sp3"),o.error=s.error.data||s.error.message,"No Available Forms to Add"==s.error.message&&(o.error="",o.warningMessage="&nbsp;You have reached the limit of forms available. Please <a class='theme-color' href='/help'><u>Contact support</u></a> to purchase more forms."),o.commonService.scrollToTop(),o.showLoader=!1}):(o.spinner.hide("sp3"),o.error=p.t.SUBSCRIPTION_EXPIRED_ERROR_MESSAGE,o.commonService.scrollToTop(),o.showLoader=!1)}else o.spinner.hide("sp3"),o.error="Please provide all mandaory values",o.commonService.scrollToTop(),o.showLoader=!1})()}setFormDataForFacebook(){this.spinner.show("sp3"),this.facebookConnectorList||(this.facebookConnectorList={}),this.facebookConnectorList.fieldMapping={},this.facebookConnectorList.customerId=this.customerId,this.facebookConnectorList.pageId=this.pageId,this.facebookConnectorList.pageName=this.pageName,this.facebookConnectorList.accountId=this.accountId,this.facebookConnectorList.formId=this.formId,this.getFormFieldsByFormId(this.formId,this.formConfigId),this.facebookConnectorList.formName=this.formName,null!=this.status||null!=this.status?this.facebookConnectorList.status=this.status:this.facebookConnectorList.status=!0,this.facebookConnectorList.id=this.formConfigId;const t=this.connectorsFieldMappingComponent.getDynamicFormData();if(this.formFields.forEach(o=>{const i=t.get(o.key)?.value||"";this.facebookConnectorList.fieldMapping[o.key]=i}),""==this.facebookConnectorList.fieldMapping.firstName&&""==this.facebookConnectorList.fieldMapping.number)return this.error="Please fill out all mandatory fields",this.commonService.scrollToTop(),this.showLoader=!1,void(this.isRequiredFieldsEmpty=!0);if(this.facebookConnectorList.leadConfig={},this.facebookConnectorList.leadConfig.IS_ENABLE_FEATURE=!0,this.facebookConnectorList.leadConfig.ASSIGN_LEAD_TO=this.facebookintegrationForm.controls.assignLeadTo.value,this.facebookConnectorList.leadConfig.ASSIGNMENT_STRATEGY=this.facebookintegrationForm.controls.strategy.value,this.facebookConnectorList.leadConfig.ASSIGN_TO_OPTION=this.facebookintegrationForm.controls.assignToOption.value,this.facebookConnectorList.leadConfig.LEAD_OPTION=this.facebookintegrationForm.controls.leadOption.value,this.facebookConnectorList.leadConfig.LEAD_TAGS=this.facebookintegrationForm.controls.leadTags.value,this.facebookConnectorList.leadConfig.LEAD_TAGS_OPTION=this.facebookintegrationForm.controls.leadTagsOption.value,this.facebookConnectorList.leadConfig.LEAD_STATUS=this.facebookintegrationForm.controls.leadStatus.value,this.facebookConnectorList.leadConfig.IS_MAP_OLD_CALLS_FOR_LEAD=this.facebookintegrationForm.controls.mapAvailableCallLogs.value,this.facebookConnectorList.leadConfig.FEATURE=this.preferenceType,null!=this.devices&&null!=this.devices&&""!=this.devices){let o=[];for(let i=0;i<this.devices.length;i++)o.push(this.devices[i].mobile);this.facebookConnectorList.leadConfig.DEVICES=o.join()}null!=this.deviceTags&&null!=this.deviceTags&&""!=this.deviceTags&&(this.facebookConnectorList.leadConfig.DEVICE_TAGS=this.deviceTags.join())}getFacebookConfigurationByCustomer(){this.layoutService.getCompanyProfile().subscribe({next:t=>{this.customerId=t.data.id,(null!=this.formId||null!=this.formId)&&this.setAddAndEditFacebookFormData(this.customerId)},error:t=>{this.error=t.error.message}})}cancel(){this.router.navigateByUrl("/"+T.eX)}setAddAndEditFacebookFormData(t){this.closeMessageAlert(),this.facebookService.getFacebookConfigurationDataByCustomerIdAndFormId(t,this.formId).subscribe(o=>{this.facebookConnectorListData=o,null!=this.facebookConnectorListData&&this.setCustomerPreferenceInForm()}),this.spinner.hide("sp3")}getFormFieldsByFormId(t,o){this.facebookService.getFormFieldsByFormId(t,this.pageId,this.accountId,o).subscribe(i=>{this.formFieldsList=i,this.questions=i.questions,this.isEditForm&&this.prefillFormFields(),this.spinner.hide("sp3")})}onDropdownChange(t,o){let i=this.selectedDropdownColumns.filter(s=>s.includes(";"+o+";"));if(null!=i&&i.length>0){let s=i[0].split(";");this.disabledDropdownItems.splice(this.disabledDropdownItems.indexOf(s[2]),1),this.selectedDropdownColumns=this.selectedDropdownColumns.filter(b=>b!=i[0])}""!=t&&(this.disabledDropdownItems.push(t),this.selectedDropdownColumns.push(";"+o+";"+t));const n=this.questions.find(s=>s.key===t);if(n){const s=this.formFields[o];this.facebookintegrationForm.get(s.key)?.setValue(n.key)}}prefillFormFields(){if(this.facebookConnectorListData.fieldMapping)for(let t in this.facebookConnectorListData.fieldMapping)if(this.facebookConnectorListData.fieldMapping[t]){const o=this.facebookConnectorListData.fieldMapping[t],i=this.questions.find(n=>n.key===o);i&&(this.connectorsFieldMappingComponent.dynamicForm.controls[t].setValue(i.key),this.connectorsFieldMappingComponent.onDropdownChange(i.key,this.formFields.findIndex(n=>n.key===t),this.questions))}}onChangeAssignLeadTo(t){this.facebookintegrationForm.get("assignLeadTo").setValue(t,{emitEvent:!1}),t===p.t.SPECIFIC_EMPLOYEES?(this.strategyList=this.strategyOrignalList,this.slectedAssignStrategyOnChangeAssignLeadTo(),this.isDeviceTagsDisplay=!1,this.isDeviceDisplay=!0):t===p.t.SPECIFIC_TAGS?(this.strategyList=this.strategyOrignalList,this.slectedAssignStrategyOnChangeAssignLeadTo(),this.isDeviceTagsDisplay=!0,this.isDeviceDisplay=!1):t===p.t.ALL_EMPLOYEES&&("Assign to All Selected"===this.facebookintegrationForm.get("strategy").value&&this.facebookintegrationForm.get("strategy").setValue("Assign to All",{emitEvent:!1}),this.strategyList=this.strategyList.filter(n=>"Assign to All Selected"!==n),this.isDeviceTagsDisplay=!1,this.isDeviceDisplay=!1),this.clearSelectedDeviceAndTags();let o=this.facebookintegrationForm.get("strategy").value;"Assign to All"===o?this.dynamicToolTipsForStrategy("Assign to All Selected"):this.dynamicToolTipsForStrategy(o)}getAllApplyStrategyList(){this.customerPreferenceService.getAllApplyStrategyList().subscribe({next:t=>{this.assginToOptionList=t.data}})}slectedAssignStrategyOnChangeAssignLeadTo(){let t=this.facebookintegrationForm.get("strategy").value,o=this.facebookintegrationForm.get("assignLeadTo").value;"Assign to All Selected"===t&&o===p.t.ALL_EMPLOYEES?this.facebookintegrationForm.get("strategy").setValue("Assign to All",{emitEvent:!1}):"Assign to All"===t?this.facebookintegrationForm.get("strategy").setValue("Assign to All Selected",{emitEvent:!1}):this.facebookintegrationForm.get("strategy").setValue(t,{emitEvent:!1})}onChangePageEdit(t){var o=this;return(0,O.Z)(function*(){o.isEditForm||o.clearFormList(),o.showLoaderForm=!0,o.spinner.show("formSp");const i=o.facebookPageList.data.find(n=>n.id===t);i&&(o.pageId=i.id,o.pageName=i.name,o.facebookintegrationForm.controls.FacebookPage.setValue(o.pageId),o.getFormNameByPageId(o.pageId,o.accountId,o.formId))})()}static \u0275fac=function(o){return new(o||R)(e.Y36(f.t2),e.Y36(k.sK),e.Y36(_.v),e.Y36(U.f),e.Y36(M.F0),e.Y36(x.L),e.Y36(M.gz),e.Y36(F.P),e.Y36(v.F),e.Y36(h.I),e.Y36(u.R),e.Y36(a.y))};static \u0275cmp=e.Xpm({type:R,selectors:[["app-facebook-configure"]],viewQuery:function(o,i){if(1&o&&e.Gf(y.r,5),2&o){let n;e.iGM(n=e.CRH())&&(i.connectorsFieldMappingComponent=n.first)}},decls:148,vars:196,consts:[[1,"content"],["class","alert alert-dismissible fade show alert-danger",4,"ngIf"],["class","alert alert-dismissible fade show","role","alert",3,"ngClass",4,"ngIf"],[1,"facebook-config-card","p-0"],[1,"facebook-config-card-header","mb-4"],[1,"table-responsive","manage-emp"],["bdOpacity","1","color","#000","name","sp3","type","ball-spin-clockwise","size","large",3,"fullScreen"],["id","tab-configure",1,"tab-pane","container-fluid","active"],[1,"row"],[1,"col-md-12"],[3,"formGroup"],[1,"lead_info"],[1,"col-xl-4","col-lg-4","col-md-6","col-sm-6"],[1,"form-group"],[1,"f_label","f_label--zIndex"],[1,"missed-text"],[1,"select_menu","mb-0",3,"ngClass"],["formControlName","FacebookPage","bindValue","id","bindLabel","name","containerClass","errorTooltip",3,"items","addTag","placeholder","clearable","selectOnTab","searchable","ngClass","isDisabled","tooltip","change"],[1,"las","la-info-circle"],["formControlName","FacebookForm","bindValue","id","bindLabel","name","containerClass","errorTooltip",3,"addTag","placeholder","clearable","selectOnTab","searchable","ngClass","isDisabled","tooltip","change"],[3,"value","disabled",4,"ngFor","ngForOf"],["class","custom-spinner",4,"ngIf"],[1,"w-100"],[1,"select_menu","mb-0"],["formControlName","assignLeadTo","bindLabel","name","bindValue","id","containerClass","errorTooltip",3,"items","clearable","searchable","placeholder","selectOnTab","ngClass","isDisabled","tooltip","change"],["class","col-xl-4 col-lg-4 col-md-6 col-sm-6",4,"ngIf"],["formControlName","strategy","bindValue","id","bindLabel","name","containerClass","errorTooltip",3,"items","addTag","placeholder","clearable","selectOnTab","searchable","ngClass","isDisabled","tooltip","change"],["formControlName","assignToOption","bindValue","id","bindLabel","name","containerClass","errorTooltip",3,"items","addTag","placeholder","clearable","selectOnTab","searchable","ngClass","isDisabled","tooltip","change"],["formControlName","leadOption","bindValue","id","bindLabel","name","containerClass","errorTooltip",3,"items","addTag","placeholder","clearable","selectOnTab","searchable","ngClass","isDisabled","tooltip","change"],[1,"col-xl-4","col-lg-4","col-md-6","col-sm-6","custom-tag-input-wrapper",3,"ngClass"],[2,"padding-top","5px"],["formControlName","leadTags",3,"addOnBlur","
1modelAsStrings","clearOnBlur","placeholder","disabled","onAdd","onRemove"],[3,"autocompleteItems","appendToBody"],[1,"tag-msg","small"],[1,"select_menu",3,"ngClass"],["formControlName","leadStatus","bindValue","id","bindLabel","name","id","number","data-live-search","false","data-hide-disabled","true",3,"placeholder","clearable","clearAllText","selectOnTab","searchable"],["value","","ng-disabled",""],[3,"value",4,"ngFor","ngForOf"],[1,"col-xl-4","col-lg-4","col-md-6","col-sm-6",3,"ngClass"],[1,"custom-control","custom-checkbox","d-flex","align-items-center"],["type","checkbox","id","isMapOldCallsForFacebook","formControlName","mapAvailableCallLogs",1,"custom-control-input"],["for","isMapOldCallsForFacebook",1,"custom-control-label","dt-cursor","pr-2",2,"font-weight","700","color","#3e3e47"],[1,"las","la-info-circle","mr-1"],[3,"connectorFields","sourceType"],[1,"row","mt-2"],[1,"lead_btn"],["id","prev_btn",1,"btn","btn-outline-theme","mr-3",3,"click"],["src","../../../assets/img/CaretLeft.svg"],[4,"ngxPermissionsOnly"],[1,"alert","alert-dismissible","fade","show","alert-danger"],["class","warning-message-icon",4,"ngIf"],[3,"innerHTML",4,"ngIf"],["type","button","data-dismiss","alert","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"warning-message-icon"],[1,"las","la-exclamation-triangle"],[3,"innerHTML"],["role","alert",1,"alert","alert-dismissible","fade","show",3,"ngClass"],[4,"ngIf"],[3,"value","disabled"],[1,"custom-spinner"],["class","las la-spinner la-spin",4,"ngIf"],[1,"las","la-spinner","la-spin"],[1,"f_label"],[3,"settings","data","ngModel","ngModelOptions","ngModelChange"],[1,"form-group","custom-indiamart-input-group"],["mb-0","",1,"select_menu",3,"ngClass"],["formControlName","leadTagsOption","bindValue","id","bindLabel","name","containerClass","errorTooltip",3,"items","addTag","placeholder","clearable","selectOnTab","searchable","ngClass","isDisabled","tooltip","change"],[3,"value"],["class","btn btn-theme",3,"disabled","click",4,"ngIf"],[1,"btn","btn-theme",3,"disabled","click"]],template:function(o,i){1&o&&(e.TgZ(0,"section",0),e.YNc(1,D,6,2,"div",1),e.YNc(2,W,6,6,"div",2),e.TgZ(3,"div",3)(4,"div",4)(5,"span"),e._uU(6," FB & Insta Lead Capture Form Configuration "),e.qZA()(),e.TgZ(7,"div",5),e._UZ(8,"ngx-spinner",6),e.qZA(),e.TgZ(9,"div",7)(10,"div",8)(11,"div",9)(12,"form",10)(13,"div",11)(14,"div",8)(15,"div",12)(16,"div",13)(17,"label",14),e._uU(18),e.ALo(19,"translate"),e.TgZ(20,"span",15),e._uU(21," *"),e.qZA()(),e.TgZ(22,"div",16)(23,"ng-select",17),e.NdJ("change",function(s){return i.onChangePage(s)}),e.ALo(24,"translate"),e.ALo(25,"translate"),e.qZA()(),e.TgZ(26,"small"),e._UZ(27,"i",18),e._uU(28," It can not be changed, once set"),e.qZA()()(),e.TgZ(29,"div",12)(30,"div",13)(31,"label",14),e._uU(32),e.ALo(33,"translate"),e.TgZ(34,"span",15),e._uU(35," *"),e.qZA()(),e.TgZ(36,"div",16)(37,"ng-select",19),e.NdJ("change",function(s){return i.onChangeForm(s)}),e.ALo(38,"translate"),e.ALo(39,"translate"),e.YNc(40,H,2,3,"ng-option",20),e.qZA(),e.YNc(41,X,2,1,"span",21),e.qZA()()(),e.TgZ(42,"div",12),e._UZ(43,"div",22),e.qZA(),e.TgZ(44,"div",12)(45,"div",13)(46,"label",14),e._uU(47),e.ALo(48,"translate"),e.TgZ(49,"span",15),e._uU(50," *"),e.qZA()(),e.TgZ(51,"div",23)(52,"ng-select",24),e.NdJ("change",function(s){return i.onChangeAssignLeadTo(s)}),e.ALo(53,"translate"),e.ALo(54,"translate"),e.ALo(55,"json"),e.qZA(),e.TgZ(56,"small"),e._UZ(57,"i",18),e._uU(58),e.qZA()()()(),e.YNc(59,$,14,17,"div",25),e.YNc(60,ee,13,14,"div",25),e.TgZ(61,"div",12)(62,"div",13)(63,"label",14),e._uU(64),e.ALo(65,"translate"),e.TgZ(66,"span",15),e._uU(67," *"),e.qZA()(),e.TgZ(68,"div",16)(69,"ng-select",26),e.NdJ("change",function(s){return i.onChangeStrategy(s)}),e.ALo(70,"translate"),e.ALo(71,"translate"),e.qZA()(),e.TgZ(72,"small"),e._UZ(73,"i",18),e._uU(74),e.qZA()()(),e.YNc(75,oe,2,0,"div",25),e.TgZ(76,"div",12)(77,"div",13)(78,"label",14),e._uU(79),e.ALo(80,"translate"),e.TgZ(81,"span",15),e._uU(82," *"),e.qZA()(),e.TgZ(83,"div",16)(84,"ng-select",27),e.NdJ("change",function(s){return i.onChangeAssignToOption(s)}),e.ALo(85,"translate"),e.ALo(86,"translate"),e.qZA()(),e.TgZ(87,"small"),e._UZ(88,"i",18),e._uU(89),e.qZA()()(),e.TgZ(90,"div",12)(91,"div",13)(92,"label",14),e._uU(93),e.ALo(94,"translate"),e.TgZ(95,"span",15),e._uU(96," *"),e.qZA()(),e.TgZ(97,"div",16)(98,"ng-select",28),e.NdJ("change",function(s){return i.onChangeLeadOption(s)}),e.ALo(99,"translate"),e.ALo(100,"translate"),e.qZA()(),e.TgZ(101,"small"),e._UZ(102,"i",18),e._uU(103),e.qZA()()(),e.TgZ(104,"div",29)(105,"div",13)(106,"label",14),e._uU(107),e.ALo(108,"translate"),e.qZA(),e.TgZ(109,"div",30)(110,"tag-input",31),e.NdJ("onAdd",function(s){return i.onAddTag(s)})("onRemove",function(s){return i.deleteTag(s)}),e._UZ(111,"tag-input-dropdown",32),e.qZA(),e.TgZ(112,"span",33),e._uU(113),e.ALo(114,"translate"),e.qZA()()()(),e.YNc(115,te,14,23,"div",25),e.TgZ(116,"div",12)(117,"div",13)(118,"label",14),e._uU(119),e.ALo(120,"translate"),e.qZA(),e.TgZ(121,"div",34)(122,"ng-select",35),e.ALo(123,"translate"),e.ALo(124,"translate"),e.ALo(125,"translate"),e.TgZ(126,"ng-option",36),e._uU(127),e.ALo(128,"translate"),e.qZA(),e.YNc(129,ie,2,2,"ng-option",37),e.qZA()()()(),e.TgZ(130,"div",38)(131,"div",13)(132,"div",39),e._UZ(133,"input",40),e.TgZ(134,"label",41),e._uU(135),e.ALo(136,"translate"),e.qZA()(),e.TgZ(137,"small"),e._UZ(138,"i",42),e._uU(139,"System will check all the existing call logs and if any call matches with lead's numbers then it will be mapped."),e.qZA()()()(),e._UZ(140,"app-connectors-field-mapping",43),e.TgZ(141,"div",44)(142,"div",45)(143,"button",46),e.NdJ("click",function(){return i.cancel()}),e._UZ(144,"img",47),e._uU(145),e.ALo(146,"translate"),e.qZA(),e.YNc(147,se,2,1,"span",48),e.qZA()()()()()()()()()),2&o&&(e.xp6(1),e.Q6J("ngIf",i.warningMessage&&i.warningMessage.length>0),e.xp6(1),e.Q6J("ngIf",i.error&&i.error.length>0||i.successMessage&&i.successMessage.length>0),e.xp6(6),e.Q6J("fullScreen",!1),e.xp6(4),e.Q6J("formGroup",i.facebookintegrationForm),e.xp6(6),e.Oqu(e.l
1cZ(19,110,"Select Page")),e.xp6(4),e.Q6J("ngClass",e.VKq(166,C,i.isEditForm)),e.xp6(1),e.hYB("placeholder","",e.lcZ(24,112,"Select")," ",e.lcZ(25,114,"Page"),""),e.s9C("tooltip",null!=i.facebookintegrationForm.controls.FacebookPage.errors&&i.facebookintegrationForm.controls.FacebookPage.errors.required?"Facebook Page is required.":""),e.Q6J("items",i.pageList)("addTag",!0)("clearable",!1)("selectOnTab",!0)("searchable",!1)("ngClass",e.VKq(168,E,i.facebookintegrationForm.controls.FacebookPage.touched&&i.facebookintegrationForm.controls.FacebookPage.invalid))("isDisabled",!i.facebookintegrationForm.controls.FacebookPage.touched||!i.facebookintegrationForm.controls.FacebookPage.invalid),e.xp6(9),e.Oqu(e.lcZ(33,116,"Select Form")),e.xp6(4),e.Q6J("ngClass",e.VKq(170,C,i.viewPurchasePermission||i.viewAvailablePermission)),e.xp6(1),e.hYB("placeholder","",e.lcZ(38,118,"Select")," ",e.lcZ(39,120,"Form"),""),e.s9C("tooltip",null!=i.facebookintegrationForm.controls.FacebookForm.errors&&i.facebookintegrationForm.controls.FacebookForm.errors.required?"Facebook Form is required.":null!=i.facebookintegrationForm.controls.FacebookForm.errors&&i.facebookintegrationForm.controls.FacebookForm.errors.formNameMismatch?"Facebook Form name has been changed.":""),e.Q6J("addTag",!0)("clearable",!1)("selectOnTab",!0)("searchable",!1)("ngClass",e.WLB(172,ae,i.facebookintegrationForm.controls.FacebookForm.touched&&(i.facebookintegrationForm.controls.FacebookForm.invalid||(null==i.facebookintegrationForm.controls.FacebookForm.errors?null:i.facebookintegrationForm.controls.FacebookForm.errors.formNameMismatch)),i.showLoaderForm))("isDisabled",i.showLoaderForm||!i.facebookintegrationForm.controls.FacebookForm.touched||!i.facebookintegrationForm.controls.FacebookForm.invalid),e.xp6(3),e.Q6J("ngForOf",i.formList),e.xp6(1),e.Q6J("ngIf",i.managePurchasePermission||i.manageAvailablePermission),e.xp6(6),e.Oqu(e.lcZ(48,122,"Assign Lead(s) To")),e.xp6(5),e.hYB("placeholder","",e.lcZ(53,124,"Select")," ",e.lcZ(54,126,"Assign Lead(s) To"),""),e.s9C("tooltip",null!=i.facebookintegrationForm.controls.assignLeadTo.errors&&i.facebookintegrationForm.controls.assignLeadTo.errors.required?"Assign Lead(s) To is required.":e.lcZ(55,128,i.facebookintegrationForm.controls.assignLeadTo.errors)),e.Q6J("items",i.assginToOptionList)("clearable",!1)("searchable",!1)("selectOnTab",!0)("ngClass",e.VKq(175,E,(null==i.facebookintegrationForm.controls.assignLeadTo?null:i.facebookintegrationForm.controls.assignLeadTo.touched)&&(null==i.facebookintegrationForm.controls.assignLeadTo?null:i.facebookintegrationForm.controls.assignLeadTo.invalid)))("isDisabled",!i.facebookintegrationForm.controls.assignLeadTo.touched||!i.facebookintegrationForm.controls.assignLeadTo.invalid),e.xp6(6),e.Oqu(i.tooltipForAssignToLead),e.xp6(1),e.Q6J("ngIf",i.isDeviceDisplay),e.xp6(1),e.Q6J("ngIf",i.isDeviceTagsDisplay),e.xp6(4),e.Oqu(e.lcZ(65,130,"Assignment Strategy")),e.xp6(4),e.Q6J("ngClass",e.VKq(177,C,i.viewPurchasePermission||i.viewAvailablePermission)),e.xp6(1),e.hYB("placeholder","",e.lcZ(70,132,"Select")," ",e.lcZ(71,134,"Assignment Strategy"),""),e.s9C("tooltip",null!=i.facebookintegrationForm.controls.strategy.errors&&i.facebookintegrationForm.controls.strategy.errors.required?"Assignment Strategy is required.":""),e.Q6J("items",i.strategyList)("addTag",!0)("clearable",!1)("selectOnTab",!0)("searchable",!1)("ngClass",e.VKq(179,E,i.facebookintegrationForm.controls.strategy.touched&&i.facebookintegrationForm.controls.strategy.invalid))("isDisabled",!i.facebookintegrationForm.controls.strategy.touched||!i.facebookintegrationForm.controls.strategy.invalid),e.xp6(5),e.hij(" ",i.tooltipForStrategy,""),e.xp6(1),e.Q6J("ngIf",!(i.isDeviceDisplay||i.isDeviceTagsDisplay)),e.xp6(4),e.Oqu(e.lcZ(80,136,"Assign To Option")),e.xp6(4),e.Q6J("ngClass",e.VKq(181,C,i.viewPurchasePermission||i.viewAvailablePermission)),e.xp6(1),e.hYB("placeholder","",e.lcZ(85,138,"Select")," ",e.lcZ(86,140,"Assign To Option"),""),e.s9C("tooltip",null!=i.facebookintegrationForm.controls.assignToOption.errors&&i.facebookintegrationForm.controls.assignToOption.errors.required?"Assign To Option is required.":""),e.Q6J("items",i.assignToOptionList)("addTag",!0)("clearable",!1)("selectOnTab",!0)("searchable",!1)("ngClass",e.VKq(183,E,i.facebookintegrationForm.controls.assignToOption.touched&&i.facebookintegrationForm.controls.assignToOption.invalid))("isDisabled",!i.facebookintegrationForm.controls.assignToOption.touched||!i.facebookintegrationForm.controls.assignToOption.invalid),e.xp6(
15),e.hij(" ",i.tooltipForAssignToOption,""),e.xp6(4),e.Oqu(e.lcZ(94,142,"Lead Option")),e.xp6(4),e.Q6J("ngClass",e.VKq(185,C,i.viewPurchasePermission||i.viewAvailablePermission)),e.xp6(1),e.hYB("placeholder","",e.lcZ(99,144,"Select")," ",e.lcZ(100,146,"Lead Option"),""),e.s9C("tooltip",null!=i.facebookintegrationForm.controls.leadOption.errors&&i.facebookintegrationForm.controls.leadOption.errors.required?"Lead Option is required.":""),e.Q6J("items",i.leadOptionList)("addTag",!0)("clearable",!1)("selectOnTab",!0)("searchable",!1)("ngClass",e.VKq(187,E,i.facebookintegrationForm.controls.leadOption.touched&&i.facebookintegrationForm.controls.leadOption.invalid))("isDisabled",!i.facebookintegrationForm.controls.leadOption.touched||!i.facebookintegrationForm.controls.leadOption.invalid),e.xp6(5),e.hij(" ",i.tooltipForLeadOption,""),e.xp6(1),e.Q6J("ngClass",e.VKq(189,re,i.viewPurchasePermission||i.viewAvailablePermission)),e.xp6(3),e.Oqu(e.lcZ(108,148,"Lead Tags")),e.xp6(3),e.Q6J("addOnBlur",!0)("modelAsStrings",!0)("clearOnBlur",!0)("placeholder","Add Tags & Hit Enter")("disabled",!i.viewPurchasePermission||i.viewAvailablePermission),e.xp6(1),e.Q6J("autocompleteItems",i.autocompleteTagItems)("appendToBody",!1),e.xp6(2),e.Oqu(e.lcZ(114,150,"Provide multiple tags separated by enter")),e.xp6(2),e.Q6J("ngIf",i.showLeadTagsOption),e.xp6(4),e.Oqu(e.lcZ(120,152,"Lead Status")),e.xp6(2),e.Q6J("ngClass",e.VKq(191,C,i.viewPurchasePermission||i.viewAvailablePermission)),e.xp6(1),e.cQ8("placeholder","",e.lcZ(123,154,"Select")," ",e.lcZ(124,156,"Lead")," ",e.lcZ(125,158,"Status"),""),e.Q6J("clearable",!1)("clearAllText","Your Custom Tooltip Text Here")("selectOnTab",!0)("searchable",!1),e.xp6(5),e.Oqu(e.l
1cZ(128,160,"Select Lead Status")),e.xp6(2),e.Q6J("ngForOf",i.statusList),e.xp6(1),e.Q6J("ngClass",e.VKq(193,le,i.viewPurchasePermission||i.viewAvailablePermission)),e.xp6(5),e.hij(" ",e.lcZ(136,162,"Map available call logs of leads"),""),e.xp6(5),e.Q6J("connectorFields",i.questions)("sourceType","FaceBook"),e.xp6(5),e.Oqu(e.lcZ(146,164,"Back")),e.xp6(2),e.Q6J("ngxPermissionsOnly",e.DdM(195,ce)))},dependencies:[r.mk,r.sg,r.O5,y.r,S.m7,S.zP,c._Y,c.Wl,c.JJ,c.JL,c.On,f.Ro,c.sg,c.u,N.OP,I.w9,I.jq,d.i9,Z.gE,r.Ts,k.X$],styles:[".facebook-config-card[_ngcontent-%COMP%]{border-radius:3px;box-shadow:0 0 7.5px #23739124;background-color:#fff;padding:24px}.facebook-config-card[_ngcontent-%COMP%]   .facebook-config-card-header[_ngcontent-%COMP%]{padding:12px 20px;border-bottom:1px solid #d4dae0;font-size:22px;color:#3e3e47;font-weight:700;line-height:1.2}.facebook-config-card[_ngcontent-%COMP%]   .facebook-config-nav[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{border:none;border-bottom:3px solid transparent;font-size:16px;line-height:16px;color:#787878;padding:18px 12px}.facebook-config-card[_ngcontent-%COMP%]   .facebook-config-nav[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]   .nav-link.active[_ngcontent-%COMP%]{border-bottom-color:orange;font-weight:700;color:#ffb64d;transition:all .2s}.disabled-option[_ngcontent-%COMP%]{color:#ccc}.pointer-events-none[_ngcontent-%COMP%]{pointer-events:none!important;cursor:not-allowed!important}.custom-disable[_ngcontent-%COMP%]{cursor:not-allowed}.custom-disable[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .custom-disable[_ngcontent-%COMP%]   .ng-select-container[_ngcontent-%COMP%], .custom-disable[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%], .custom-disable[_ngcontent-%COMP%]   .ng-select[_ngcontent-%COMP%]   .ng-select-container[_ngcontent-%COMP%], .custom-disable[_ngcontent-%COMP%]   .box-border[_ngcontent-%COMP%], .custom-disable[_ngcontent-%COMP%]   .access-token-formgroup[_ngcontent-%COMP%], .custom-disable[_ngcontent-%COMP%]   .switch[_ngcontent-%COMP%]{background-color:#f3efef!important;pointer-events:none!important}.custom-disable[_ngcontent-%COMP%]   .access-token-icon[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:not-allowed!important}.custom-disable.of_switch[_ngcontent-%COMP%]   .slider.round[_ngcontent-%COMP%]:before, .custom-disable.of_switch[_ngcontent-%COMP%]   .slider[_ngcontent-%COMP%]{cursor:not-allowed!important}.disable-bg-color[_ngcontent-%COMP%]{background-color:#f9d21e47!important}.la[_ngcontent-%COMP%], .las[_ngcontent-%COMP%]{color:orange}.select_menu[_ngcontent-%COMP%]{position:relative;cursor:pointer}.custom-spinner[_ngcontent-%COMP%]{position:absolute;top:50%;left:calc(100% - 50px);transform:translateY(-50%);z-index:999}.warning-message-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#c63131}.strategy-selection[_ngcontent-%COMP%]{display:flex;font-family:Arial,sans-serif;padding:10px 0}.strategy-label[_ngcontent-%COMP%]{font-weight:700;margin-right:15px;white-space:nowrap}.radio-group[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.radio-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-right:15px;cursor:pointer}input[type=radio][_ngcontent-%COMP%]{margin-right:5px}.strategy-selection[_ngcontent-%COMP%]   .madatory-field[_ngcontent-%COMP%]{color:red}.radio-group[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{accent-color:#2F2F39;cursor:pointer}.radio-group[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:not(:checked){background-color:#fff;border-color:#ccc}.radio-group[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked{background-color:#2f2f39;border-color:#2f2f39}.radio-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{cursor:pointer}.custom-tag-input-wrapper[_ngcontent-%COMP%]{position:relative;z-index:1032}.custom-tag-input-wrapper[_ngcontent-%COMP%]   .tag-input[_ngcontent-%COMP%], .custom-tag-input-wrapper[_ngcontent-%COMP%]   .tag-input-dropdown[_ngcontent-%COMP%]{z-index:1032!important;position:relative}.custom-control-label.fw-bold.text-custom-dark[_ngcontent-%COMP%]{font-weight:700!important;color:#212529!important}"]})}const de=[{path:"",component:R}],ge=M.Bz.forChild(de);var pe=g(10266),J=g(5032);const me={fullPickerInput:"DD MMM YYYY, HH:mm",parseInput:"LL LT",datePickerInput:"LL",timePickerInput:"LT",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"};class B{static \u0275fac=function(o){return new(o||B)};static \u0275mod=e.oAB({type:B});static \u0275inj=e.cJS({providers:[x.L,p.t],imports:[r.ez,J.x,S.vO,J.x,c.u5,f.ef,c.UX,P.n1,N.ZQ.forRoot(),I.A0,q.m,ge,Z.VI.forChild(),V.F,k.aw,pe.AV]})}},68423:(K,w,g)=>{g.d(w,{Ro:()=>v,ef:()=>h,t2:()=>_});var r=g(94650),k=g(61135),q=g(77579),S=g(39300),c=g(82722),f=g(37340),P=g(36895),N=g(11481);const I=["overlay"];function Z(u,a){1&u&&r._UZ(0,"div")}function V(u,a){if(1&u&&(r.TgZ(0,"div"),r.YNc(1,Z,1,0,"div",6),r.qZA()),2&u){const d=r.oxw(2);r.Tol(d.spinner.class),r.Udp("color",d.spinner.color),r.xp6(1),r.Q6J("ngForOf",d.spinner.divArray)}}
1function x(u,a){if(1&u&&(r._UZ(0,"div",7),r.ALo(1,"safeHtml")),2&u){const d=r.oxw(2);r.Q6J("innerHTML",r.lcZ(1,1,d.template),r.oJD)}}function p(u,a){if(1&u&&(r.TgZ(0,"div",1,2),r.YNc(2,V,2,5,"div",3),r.YNc(3,x,2,3,"div",4),r.TgZ(4,"div",5),r.Hsn(5),r.qZA()()),2&u){const d=r.oxw();r.Udp("background-color",d.spinner.bdColor)("z-index",d.spinner.zIndex)("position",d.spinner.fullScreen?"fixed":"absolute"),r.Q6J("@.disabled",d.disableAnimation)("@fadeIn","in"),r.xp6(2),r.Q6J("ngIf",!d.template),r.xp6(1),r.Q6J("ngIf",d.template),r.xp6(1),r.Udp("z-index",d.spinner.zIndex)}}const O={"ball-8bits":16,"ball-atom":4,"ball-beat":3,"ball-circus":5,"ball-climbing-dot":4,"ball-clip-rotate":1,"ball-clip-rotate-multiple":2,"ball-clip-rotate-pulse":2,"ball-elastic-dots":5,"ball-fall":3,"ball-fussion":4,"ball-grid-beat":9,"ball-grid-pulse":9,"ball-newton-cradle":4,"ball-pulse":3,"ball-pulse-rise":5,"ball-pulse-sync":3,"ball-rotate":1,"ball-running-dots":5,"ball-scale":1,"ball-scale-multiple":3,"ball-scale-pulse":2,"ball-scale-ripple":1,"ball-scale-ripple-multiple":3,"ball-spin":8,"ball-spin-clockwise":8,"ball-spin-clockwise-fade":8,"ball-spin-clockwise-fade-rotating":8,"ball-spin-fade":8,"ball-spin-fade-rotating":8,"ball-spin-rotate":2,"ball-square-clockwise-spin":8,"ball-square-spin":8,"ball-triangle-path":3,"ball-zig-zag":2,"ball-zig-zag-deflect":2,cog:1,"cube-transition":2,fire:3,"line-scale":5,"line-scale-party":5,"line-scale-pulse-out":5,"line-scale-pulse-out-rapid":5,"line-spin-clockwise-fade":8,"line-spin-clockwise-fade-rotating":8,"line-spin-fade":8,"line-spin-fade-rotating":8,pacman:6,"square-jelly-box":2,"square-loader":1,"square-spin":1,timer:1,"triangle-skew-spin":1},T_BD_COLOR="rgba(51,51,51,0.8)",T_SPINNER_COLOR="#fff",T_Z_INDEX=99999,y="primary";class e{constructor(a){Object.assign(this,a)}static create(a){return!a?.template&&(null==a?.type||0===a.type.length)&&console.warn('[ngx-spinner]: Property "type" is missed. Please, provide animation type to <ngx-spinner> component\n        and ensure css is added to angular.json file'),new e(a)}}class _{constructor(){this.spinnerObservable=new k.X(null)}getSpinner(a){return this.spinnerObservable.asObservable().pipe((0,S.h)(d=>d&&d.name===a))}show(a=y,d){return new Promise((m,L)=>{setTimeout(()=>{d&&Object.keys(d).length?(d.name=a,this.spinnerObservable.next(new e({...d,show:!0})),m(!0)):(this.spinnerObservable.next(new e({name:a,show:!0})),m(!0))},10)})}hide(a=y,d=10){return new Promise((m,L)=>{setTimeout(()=>{this.spinnerObservable.next(new e({name:a,show:!1})),m(!0)},d)})}}_.\u0275fac=function(a){return new(a||_)},_.\u0275prov=r.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"});const U=new r.OlP("NGX_SPINNER_CONFIG");class F{constructor(a){this._sanitizer=a}transform(a){if(a)return this._sanitizer.bypassSecurityTrustHtml(a)}}F.\u0275fac=function(a){return new(a||F)(r.Y36(N.H7,16))},F.\u0275pipe=r.Yjl({name:"safeHtml",type:F,pure:!0});class v{constructor(a,d,m,L){this.spinnerService=a,this.changeDetector=d,this.elementRef=m,this.globalConfig=L,this.disableAnimation=!1,this.spinner=new e,this.ngUnsubscribe=new q.x,this.setDefaultOptions=()=>{const{type:D}=this.globalConfig??{};this.spinner=e.create({name:this.name,bdColor:this.bdColor,size:this.size,color:this.color,type:this.type??D,fullScreen:this.fullScreen,divArray:this.divArray,divCount:this.divCount,show:this.show,zIndex:this.zIndex,template:this.template,showSpinner:this.showSpinner})},this.bdColor=T_BD_COLOR,this.zIndex=T_Z_INDEX,this.color=T_SPINNER_COLOR,this.size="large",this.fullScreen=!0,this.name=y,this.template=null,this.showSpinner=!1,this.divArray=[],this.divCount=0,this.show=!1}handleKeyboardEvent(a){this.spinnerDOM&&this.spinnerDOM.nativeElement&&(this.fullScreen||!this.fullScreen&&this.isSpinnerZone(a.target))&&(a.returnValue=!1,a.preventDefault())}initObservable(){this.spinnerService.getSpinner(this.name).pipe((0,c.R)(this.ngUnsubscribe)).subscribe(a=>{this.setDefaultOptions(),Object.assign(this.spinner,a),a.show&&this.onInputChange(),this.changeDetector.detectChanges()})}ngOnInit(){this.setDefaultOptions(),this.initObservable()}isSpinnerZone(a){return a===this.elementRef.nativeElement.parentElement||a.parentNode&&this.isSpinnerZone(a.parentNode)}ngOnChanges(a){for(const d in a)if(d){const m=a[d];if(m.isFirstChange())return;typeof m.currentValue<"u"&&m.currentValue!==m.previousValue&&""!==m.currentValue&&(this.spinner[d]=m.currentValue,"showSpinner"===d&&(m.currentValue?this.spinnerService.show(this.spinner.name,this.spinner):this.spinnerService.hide(this.spinner.name)),"name"===d&&this.initObservable())}}getClass(a,d){this.spinner.divCount=O[a],this.spinner.divArray=Array(this.spinner.divCount).fill(0).map((L,D)=>D);let m="";switch(d.toLowerCase()){case"small":m="la-sm";break;case"medium":m="la-2x";break;case"large":m="la-3x"}return"la-"+a+" "+m}onInputChange(){this.spinner.class=this.getClass(this.spinner.type,this.spinner.size)}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}v.\u0275fac=function(a){return new(a||v)(r.Y36(_),r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(U,8))},v.\u0275cmp=r.Xpm({type:v,selectors:[["ngx-spinner"]],viewQuery:function(a,d){if(1&a&&r.Gf(I,5),2&a){let m;r.iGM(m=r.CRH())&&(d.spinnerDOM=m.first)}},hostBindings:function(a,d){1&a&&r.NdJ("keydown",function(L){return d.handleKeyboardEvent(L)},!1,r.evT)},inputs:{bdColor:"bdColor",size:"size",color:"color",type:"type",fullScreen:"fullScreen",name:"name",zIndex:"zIndex",template:"template",showSpinner:"showSpinner",disableAnimation:"disableAnimation"},features:[r.TTD],ngContentSelectors:["*"],decls:1,vars:1,consts:[["class","ngx-spinner-overlay",3,"background-color","z-index","position",4,"ngIf"],[1,"ngx-spinner-overlay"],["overlay",""],[3,"class","color",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"loading-text"],[4,"ngFor","ngForOf"],[3,"innerHTML"]],template:function(a,d){1&a&&(r.F$t(),r.YNc(0,p,6,12,"div",0)),2&a&&r.Q6J("ngIf",d.spinner.show)},dependencies:[P.sg,P.O5,F],styles:[".ngx-spinner-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%}.ngx-spinner-overlay[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.loading-text){top:50%;left:50%;margin:0;position:absolute;transform:translate(-50%,-50%)}.loading-text[_ngcontent-%COMP%]{position:absolute;top:60%;left:50%;transform:translate(-50%,-60%)}"],data:{animation:[(0,f.X$)("fadeIn",[(0,f.SB)("in",(0,f.oB)({opacity:1})),(0,f.eR)(":enter",[(0,f.oB)({opacity:0}
1),(0,f.jt)(300)]),(0,f.eR)(":leave",(0,f.jt)(200,(0,f.oB)({opacity:0})))])]},changeDetection:0});class h{static forRoot(a){return{ngModule:h,providers:[{provide:U,useValue:a}]}}}h.\u0275fac=function(a){return new(a||h)},h.\u0275mod=r.oAB({type:h}),h.\u0275inj=r.cJS({imports:[P.ez]})}}]);

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.