1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3864],{43864:($,y,t)=>{t.r(y),t.d(y,{BusinessTaxPageModule:()=>G});var P=t(91368),e=t(44716),v=t(83068),E=t(89192),I=t(91508),m=t(32116);const x=[{path:"",component:I.i},{path:"edit",loadChildren:()=>Promise.resolve().then(t.bind(t,40592)).then(u=>u.EditPageModule)}];let f=(()=>{class u{static \u0275fac=function(R){return new(R||u)};static \u0275mod=m.a4G({type:u});static \u0275inj=m.s3X({imports:[E.qQ.forChild(x),E.qQ]})}return u})();var d=t(87560),T=t(60338),b=t(48396),w=t(40592);let G=(()=>{class u{static \u0275fac=function(R){return new(R||u)};static \u0275mod=m.a4G({type:u});static \u0275inj=m.s3X({imports:[P.MD,e.y,v.wZ,f,b.S,T.W,d.l,w.EditPageModule]})}return u})()},91508:($,y,t)=>{t.d(y,{i:()=>h});var P=t(73448),e=t(32116),v=t(87264),E=t(77816),I=t(2132),m=t(72852),x=t(89192),f=t(91368),d=t(83068),T=t(44716),b=t(13204);function w(s,l){if(1&s){const n=e.KQA();e.I0R(0,"app-edit",2),e.qCj("edited",function(){e.usT(n);const o=e.GaO();return e.CGJ(o.edited())}),e.C$Y()}}function G(s,l){if(1&s){const n=e.KQA();e.I0R(0,"span",24),e.qCj("click",function(){e.usT(n);const o=e.GaO(2);return e.CGJ(o.userProvider.goTo("profile"))}),e.OEk(1,"Settings > "),e.C$Y()}}function u(s,l){if(1&s&&(e.I0R(0,"li",33)(1,"span"),e.OEk(2),e.C$Y()()),2&s){const n=l.$implicit;e.yG2(2),e.cNF(n)}}function Y(s,l){if(1&s){const n=e.KQA();e.I0R(0,"ion-col")(1,"div",25)(2,"ion-row")(3,"ion-col")(4,"ion-row")(5,"ion-col")(6,"h3",16),e.OEk(7," Services "),e.C$Y()(),e.I0R(8,"ion-col")(9,"ion-row",26)(10,"ion-col",27),e.qCj("click",function(){e.usT(n);const o=e.GaO(2);return e.CGJ(o.userProvider.goTo("profile/accounting-bookkeeping/edit"))}),e.wR5(11,"ion-icon",28),e.C$Y(),e.I0R(12,"ion-col",29),e.qCj("click",function(){e.usT(n);const o=e.GaO(2);return e.CGJ(o.userProvider.goTo("profile/accounting-bookkeeping/edit"))}),e.I0R(13,"span",30),e.OEk(14,"Edit"),e.C$Y()()()()(),e.I0R(15,"ion-row")(16,"ion-col")(17,"ul",31),e.yuY(18,u,3,1,"li",32),e.C$Y()()()()()()()}if(2&s){const n=e.GaO(2);e.yG2(18),e.E7m("ngForOf",n.serviceTags)}}function p(s,l){if(1&s){const n=e.KQA();e.I0R(0,"ion-row")(1,"ion-col",34)(2,"ion-item")(3,"ion-range",35),e.iHE("ngModelChange",function(o){e.usT(n);const C=e.GaO(2);return e.kNx(C.budget,o)||(C.budget=o),e.CGJ(o)}),e.C$Y()(),e.I0R(4,"ion-row",36)(5,"ion-col",37)(6,"h3",38),e.OEk(7),e.C$Y()(),e.I0R(8,"ion-col",39)(9,"h3",38),e.OEk(10),e.C$Y()()()()()}if(2&s){const n=e.GaO(2);e.yG2(3),e.OKB("ngModel",n.budget),e.yG2(4),e.oRS("$",n.budget,""),e.yG2(3),e.oRS(" Estimated Leads - ",(n.budget/35).toFixed(0)," ")}}function R(s,l){1&s&&(e.I0R(0,"span",40),e.OEk(1," I want as many leads as possible "),e.C$Y())}function B(s,l){1&s&&(e.I0R(0,"span",40),e.OEk(1," I want to buy leads until my budget is reached "),e.C$Y())}function k(s,l){if(1&s){const n=e.KQA();e.I0R(0,"section")(1,"li",49)(2,"span"),e.OEk(3),e.C$Y(),e.I0R(4,"ion-icon",50),e.qCj("click",function(){const C=e.usT(n).$implicit,A=e.GaO(3);return e.CGJ(A.addState(C))}),e.C$Y()()()}if(2&s){const n=l.$implicit;e.yG2(3),e.cNF(n.name)}}function c(s,l){if(1&s){const n=e.KQA();e.I0R(0,"li",52)(1,"span"),e.OEk(2),e.C$Y(),e.I0R(3,"ion-icon",53),e.qCj("click",function(){e.usT(n);const o=e.GaO().$implicit,C=e.GaO(3);return e.CGJ(C.removeState(o))}),e.C$Y()()}if(2&s){const n=e.GaO().$implicit;e.yG2(2),e.cNF(null==n?null:n.name)}}function M(s,l){if(1&s&&(e.I0R(0,"section"),e.yuY(1,c,4,1,"li",51),e.C$Y()),2&s){const n=l.$implicit;e.yG2(),e.E7m("ngIf",null==n?null:n.taget)}}function i(s,l){if(1&s){const n=e.KQA();e.I0R(0,"ion-row",11)(1,"ion-col")(2,"div",41)(3,"ion-row")(4,"ion-col")(5,"ion-row")(6,"ion-col")(7,"h3",16),e.OEk(8," Locations "),e.C$Y()(),e.I0R(9,"ion-col")(10,"ion-row",26)(11,"ion-col",42),e.qCj("click",function(){e.usT(n);const o=e.GaO(2);return e.CGJ(o.userProvider.goTo("profile/personal-tax/edit"))}),e.wR5(12,"ion-icon",28),e.C$Y(),e.I0R(13,"ion-col",43),e.qCj("click",function(){e.usT(n);const o=e.GaO(2);return e.CGJ(o.userProvider.goTo("profile/personal-tax/edit"))}),e.I0R(14,"span",30),e.OEk(15,"Edit"),e.C$Y()()()()(),e.I0R(16,"ion-row")(17,"ion-col")(18,"ul",44)(19,"li",45),e.OEk(20," Service Location "),e.C$Y(),e.I0R(21,"ul",46),e.yuY(22,k,5,1,"section",47),e.C$Y()()(),e.I0R(23,"ion-col")(24,"ul",44)(25,"li",45),e.OEk(26," Target Locations "),e.C$Y(),e.I0R(27,"ul",48),e.yuY(28,M,2,1,"section",47),e.C$Y()()()()()()()()()}if(2&s){const n=e.GaO(2);e.yG2(22),e.E7m("ngForOf",n.locations),e.yG2(6),e.E7m("ngForOf",n.locations)}}
1function g(s,l){1&s&&(e.I0R(0,"ion-row",11)(1,"ion-col",54)(2,"div",41)(3,"ion-row")(4,"ion-col")(5,"h3",16),e.OEk(6," Lead Preferences "),e.C$Y(),e.I0R(7,"div",40),e.OEk(8," Leads that match the preferences will be automatically purchased by you based on the preferences you've set below. "),e.C$Y()()()()(),e.I0R(9,"ion-col",54)(10,"div",41)(11,"ion-row")(12,"ion-col")(13,"h3",16),e.OEk(14,"Lead Time"),e.C$Y(),e.I0R(15,"div",40),e.OEk(16," You'll receive leads at all times of the day "),e.C$Y()()()()()())}function r(s,l){if(1&s){const n=e.KQA();e.I0R(0,"ion-grid",3)(1,"ion-row",4)(2,"ion-col")(3,"ion-row")(4,"ion-col",5)(5,"h1",6),e.yuY(6,G,2,0,"span",7),e.OEk(7," Business Tax Preparation "),e.C$Y()(),e.I0R(8,"ion-col",8)(9,"ion-button",9),e.qCj("click",function(){e.usT(n);const o=e.GaO();return e.CGJ(o.userProvider.closeTargeteModal(o.prevScreen))}),e.wR5(10,"ion-icon",10),e.C$Y()()()()(),e.I0R(11,"ion-row",11),e.yuY(12,Y,19,1,"ion-col",12),e.I0R(13,"ion-col")(14,"div",13)(15,"ion-row",14)(16,"ion-col",15)(17,"h3",16),e.OEk(18,"Weekly Budget"),e.C$Y()()(),e.yuY(19,p,11,3,"ion-row",12),e.I0R(20,"ion-row")(21,"ion-col")(22,"div",17)(23,"div")(24,"ion-checkbox",18),e.iHE("ngModelChange",function(o){e.usT(n);const C=e.GaO();return e.kNx(C.budgetToggle,o)||(C.budgetToggle=o),e.CGJ(o)}),e.C$Y()(),e.I0R(25,"div")(26,"div")(27,"span"),e.OEk(28,"Don't set a budget"),e.C$Y()(),e.I0R(29,"div"),e.yuY(30,R,2,0,"span",19)(31,B,2,0,"span",19),e.C$Y()()()()()()()(),e.yuY(32,i,29,2,"ion-row",20)(33,g,17,0,"ion-row",20),e.I0R(34,"ion-row")(35,"ion-col",21)(36,"ion-button",22),e.qCj("click",function(){e.usT(n);const o=e.GaO();return e.CGJ(o.userProvider.closeTargeteModal(o.prevScreen))}),e.OEk(37," Cancel "),e.C$Y()(),e.I0R(38,"ion-col",21)(39,"ion-button",23),e.qCj("click",function(){e.usT(n);const o=e.GaO();return e.CGJ(o.updateProfile())}),e.OEk(40," Save "),e.C$Y()()()()}if(2&s){const n=e.GaO();e.yG2(6),e.E7m("ngIf",!(null!=n.leadWatcher&&n.leadWatcher._proTarg)),e.yG2(6),e.E7m("ngIf",!(null!=n.leadWatcher&&n.leadWatcher._proTarg)),e.yG2(7),e.E7m("ngIf",!n.budgetToggle),e.yG2(5),e.OKB("ngModel",n.budgetToggle),e.yG2(6),e.E7m("ngIf",n.budgetToggle),e.yG2(),e.E7m("ngIf",!n.budgetToggle),e.yG2(),e.E7m("ngIf",!(null!=n.leadWatcher&&n.leadWatcher._proTarg)),e.yG2(),e.E7m("ngIf",!(null!=n.leadWatcher&&n.leadWatcher._proTarg)),e.yG2(6),e.E7m("disabled",n.submitSpinner)}}let h=(()=>{class s{firebaseApi;userProvider;util;leadWatcher;route;location;modalCtrl;completedQuestionnaire;serviceTags=[];budgetToggle=!1;budget=10;submitSpinner=!1;budgetSpent=0;locations=[];prevScreen="";constructor(n,a,o,C,A,O,K){this.firebaseApi=n,this.userProvider=a,this.util=o,this.leadWatcher=C,this.route=A,this.location=O,this.modalCtrl=K}ngOnInit(){var n=this;return(0,P.c)(function*(){n.prevScreen=n.route.snapshot.queryParams.p,n.init()})()}edited(){this.init()}init(){var n=this;return(0,P.c)(function*(){const a=yield n.firebaseApi.findOneById("questionnaire",n.userProvider.loggedInUser.questionnaireId);n.completedQuestionnaire=a?.storedAnswersJson?a.storedAnswersJson:[],n.getTags(n.completedQuestionnaire),n.getLocations(n.completedQuestionnaire),a?.businessSettings&&(n.budget=a.businessSettings.budgetAmt,n.budgetToggle=a.businessSettings.budget,n.budgetSpent=a.businessSettings.budgetSpent)})()}updateProfile(){var n=this;return(0,P.c)(function*(){try{n.submitSpinner=!0,yield n.firebaseApi.updateOne("questionnaire",n.userProvider.loggedInUser.questionnaireId,{"businessSettings.budget":n.budgetToggle,"businessSettings.budgetAmt":n.budget,storedAnswersJson:n.completedQuestionnaire?n.completedQuestionnaire:[]}),"dash"===n.prevScreen?n.location.back():yield n.modalCtrl.dismiss()}catch(a){n.util.createErrorAlert(null,"Could not update your settings -> "+a)}finally{n.submitSpinner=!1}})()}get budgetText(){switch(this.budgetToggle){case!0:return"I want leads that fit within my budget";case!1:return"I want all possible leads"}}getTags(n){this.serviceTags=[...function a(){const O=[];return n.find(_=>"question-5"===_.key)?.answers.forEach(_=>{!0===_.value&&O.push(_.name)}),O}(),...function o(){const O=[];return n.find(_=>
1"question-6"===_.key)?.answers.forEach(_=>{!0===_.value&&O.push(_.name)}),O}(),...function C(){return n.find(_=>"audit-protection"===_.key)?.answers.find(_=>"yes"===_.key&&!0===_.value)?["Offers Audit Protection"]:[]}(),...function A(){const O=[];return n.find(_=>"question-9"===_.key)?.answers.forEach(_=>{!0===_.value&&O.push(_.name)}),O}()]}getLocations(n){this.locations=[],n.find(o=>"question-2"===o.key)?.answers.forEach(o=>{!0===o.value&&this.locations.push(o)})}addState(n){const a=this.completedQuestionnaire[1].answers.findIndex(o=>o.key===n.key);a>=0&&(this.completedQuestionnaire[1].answers[a].taget=!0,this.getLocations(this.completedQuestionnaire))}removeState(n){const a=this.completedQuestionnaire[1].answers.findIndex(o=>o.key===n.key);a>=0&&(this.completedQuestionnaire[1].answers[a].taget=!1,this.getLocations(this.completedQuestionnaire))}static \u0275fac=function(a){return new(a||s)(e.GI1(v.H),e.GI1(E.e),e.GI1(I.e),e.GI1(m.c),e.GI1(x.gV),e.GI1(f.oB),e.GI1(d.qS))};static \u0275cmp=e.In1({type:s,selectors:[["app-business-tax"]],decls:3,vars:2,consts:[[3,"edited",4,"ngIf"],["fixed","","class","lead-set",4,"ngIf"],[3,"edited"],["fixed","",1,"lead-set"],[1,"secondaryrow","ion-justify-content-center","ion-align-items-center"],["sizeLg","6","sizeMd","6","size","12"],[1,"font-600","ion-text-left","breadcrumbs"],[3,"click",4,"ngIf"],["sizeLg","6","sizeMd","6","size","12",1,"ion-text-right"],["fill","clear",1,"cursor",3,"click"],["name","close-outline"],[1,"ion-justify-content-start","ion-align-items-center"],[4,"ngIf"],[1,"white-block","budget"],[1,"ion-align-items-center"],["size","12"],[1,"font-600","font-purple"],[1,"checkbox-container",2,"padding","0 1rem"],["color","primary",3,"ngModel","ngModelChange"],["class","disclaimer",4,"ngIf"],["class","ion-justify-content-start ion-align-items-center",4,"ngIf"],[1,"center"],[1,"btn-primary",2,"--background","red !important",3,"click"],[1,"btn-primary",3,"disabled","click"],[3,"click"],[1,"white-block","service"],[1,"ion-justify-content-end","ion-align-items-center"],["sizeMd","1","size","4",1,"ion-text-right","flex-center-xy",2,"cursor","pointer",3,"click"],["name","add-circle-outline"],["sizeMd","2","size","6",1,"ion-text-left",2,"cursor","pointer",3,"click"],["href","#",1,"font-purple","font-600"],[1,"service-tags","scroll-li"],["class","service-item yellow_box",4,"ngFor","ngForOf"],[1,"service-item","yellow_box"],["sizeLg","12","size","12",1,"ion-text-left"],["pin","","min","0","max","2000","step","10","color","tertiary",2,"padding","0 5px",3,"ngModel","ngModelChange"],[1,"ion-justify-content-left","ion-align-items-center",2,"padding","0 0.5rem"],[1,"ion-text-left","red"],[1,"font-600","f1-5"],[1,"ion-text-right","purple"],[1,"disclaimer"],[1,"white-block"],["sizeMd","1","size","4",1,"ion-text-right","flex-rowend",2,"cursor","pointer",3,"click"],["sizeMd","1","size","6",1,"ion-text-left",2,"cursor","pointer",3,"click"],[1,"padding-sm-0","list-sm-unstyled"],[1,"f1-1","bold-600"],[1,"service-tags","margin-left-3","margin-l-sm-0","scroll-li",2,"min-height","240px !important"],[4,"ngFor","ngForOf"],[1,"service-tags","margin-left-3","margin-l-sm-0","padding-sm-0","scroll-li",2,"min-height","240px !important"],[1,"service-item","yellow_box","flex-rowstart"],["color","success","name","add-circle",1,"li-icon",3,"click"],["class","service-item grey_box flex-rowstart",4,"ngIf"],[1,"service-item","grey_box","flex-rowstart"],["color","danger","name","remove-circle",1,"li-icon",3,"click"],["size","12","sizeMd","6","sizeLg","6"]],template:function(a,o){1&a&&(e.I0R(0,"ion-content"),e.yuY(1,w,1,0,"app-edit",0)(2,r,41,9,"ion-grid",1),e.C$Y()),2&a&&(e.yG2(),e.E7m("ngIf",o.leadWatcher._edit),e.yG2(),e.E7m("ngIf",!o.leadWatcher._edit))},dependencies:[f.ay,f.u_,T.ue,T._G,d.sn,d.ew,d.Kk,d._i,d.YP,d.Ko,d.Yb,d.EH,d.qo,d.UJ,d.qG,b.q],styles:[".service-tags[_ngcontent-%COMP%]{margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap}.service-tags[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;margin-right:10px;margin-bottom:10px}.checkbox-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}.checkbox-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin:inherit;margin-left:10px}ion-radio-group[_ngcontent-%COMP%]{display:flex}.radio-item[_ngcontent-%COMP%]{margin-right:40px;
1display:flex;align-items:center}.radio-item[_ngcontent-%COMP%] .radio-label[_ngcontent-%COMP%]{margin-left:20px}.radio-item[_ngcontent-%COMP%] .radio-label[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin:0}.row_accord[_ngcontent-%COMP%]{background-color:#fff;padding:20px;margin-top:40px;border-radius:10px;box-shadow:0 3px 6px #00000029}#icon-checkbox[_ngcontent-%COMP%]{padding:5px}.disclaimer[_ngcontent-%COMP%]{font-size:.9rem;color:gray}ion-toggle[_ngcontent-%COMP%]{padding:5px}#icon-add[_ngcontent-%COMP%]{height:20px;filter:grayscale(1)}.icon_margin[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:15px}.white-block[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:20px;background-color:#fff;padding:10px;min-height:100px}.budget[_ngcontent-%COMP%], .service[_ngcontent-%COMP%]{height:200px}.ion-icon[_ngcontent-%COMP%]{--color: #000!important}.font-orange[_ngcontent-%COMP%]{color:#ffa000}.font-purple[_ngcontent-%COMP%]{color:#000}.font-grey[_ngcontent-%COMP%]{color:#000;opacity:60%}.font-500[_ngcontent-%COMP%]{font-weight:500}.font-600[_ngcontent-%COMP%]{font-weight:600}h3[_ngcontent-%COMP%]{margin:0}h1[_ngcontent-%COMP%]{margin:2px auto;font-size:1.4rem}h2[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], span[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{margin:2px auto;padding:0}p[_ngcontent-%COMP%]{margin:0;color:#555}.underline[_ngcontent-%COMP%]{text-decoration:underline}hr[_ngcontent-%COMP%]{opacity:.6;width:90%;height:.5px;margin-right:auto;margin-left:auto;background-color:#707070}@media (max-width: 992px){.container[_ngcontent-%COMP%]{padding:20px}}@media (max-width: 499px){.service[_ngcontent-%COMP%], .budget[_ngcontent-%COMP%]{height:-moz-fit-content!important;height:fit-content!important}}"]})}return s})()},40592:($,y,t)=>{t.r(y),t.d(y,{EditPageModule:()=>Y});var P=t(91368),e=t(44716),v=t(83068),E=t(89192),I=t(13204),m=t(32116);const x=[{path:"",component:I.q}];let f=(()=>{class p{static \u0275fac=function(k){return new(k||p)};static \u0275mod=m.a4G({type:p});static \u0275inj=m.s3X({imports:[E.qQ.forChild(x),E.qQ]})}return p})();var d=t(48396),T=t(60338),b=t(87560),w=t(94756),G=t(9140),u=t(56964);let Y=(()=>{class p{static \u0275fac=function(k){return new(k||p)};static \u0275mod=m.a4G({type:p});static \u0275inj=m.s3X({imports:[P.MD,e.y,v.wZ,f,d.S,T.W,b.l,u.s,G.E,w.g]})}return p})()},13204:($,y,t)=>{t.d(y,{q:()=>k});var P=t(73448),e=t(32116),v=t(87264),E=t(77816),I=t(2132),m=t(72852),x=t(91368),f=t(83068),d=t(16368),T=t(67096),b=t(83956);function w(c,M){1&c&&(e.I0R(0,"span"),e.OEk(1,"Update"),e.C$Y())}function G(c,M){1&c&&e.wR5(0,"ion-spinner",14)}function u(c,M){if(1&c&&e.wR5(0,"app-input-text",24),2&c){const i=e.GaO().$implicit;e.E7m("question",i)}}function Y(c,M){if(1&c){const i=e.KQA();e.I0R(0,"app-select",25),e.qCj("selectOption",function(r){e.usT(i);const h=e.GaO(2);return e.CGJ(h.selectOption(r.question,r.key,r.subAnswerKey,r.child))}),e.C$Y()}if(2&c){const i=e.GaO().$implicit;e.E7m("align","left")("question",i)}}function p(c,M){if(1&c){const i=e.KQA();e.I0R(0,"app-select",26),e.qCj("selectOption",function(r){e.usT(i);const h=e.GaO(2);return e.CGJ(h.selectOption(r.question,r.key,r.subAnswerKey,r.child))}),e.C$Y()}if(2&c){const i=e.GaO().$implicit;e.E7m("question",i)}}function R(c,M){if(1&c){const i=e.KQA();e.I0R(0,"app-autocomplete",26),e.qCj("selectOption",function(r){e.usT(i);const h=e.GaO(2);return e.CGJ(h.selectOption(r.question,r.key))}),e.C$Y()}if(2&c){const i=e.GaO().$implicit;e.E7m("question",i)}}function B(c,M){if(1&c&&(e.I0R(0,"ion-row",15)(1,"ion-col",16)(2,"div",17)(3,"h6"),e.OEk(4),e.C$Y()(),e.I0R(5,"div",18)(6,"div",19),e.yuY(7,u,1,1,"app-input-text",20),e.I0R(8,"div",21),e.yuY(9,Y,1,2,"app-select",22),e.C$Y(),e.I0R(10,"div",21),e.yuY(11,p,1,1,"app-select",23),e.C$Y(),e.yuY(12,R,1,1,"app-autocomplete",23),e.C$Y()()()()),2&c){const i=M.$implicit;e.yG2(4),e.cNF(i.question),e.yG2(2),e.E7m("ngSwitch",i.formType),e.yG2(),e.E7m("ngSwitchCase","input-text"),e.yG2(2),e.E7m("ngSwitchCase","select-multiple"),e.yG2(2),e.E7m("ngSwitchCase","select-one"),e.yG2(),e.E7m("ngSwitchCase","autocomplete")}}let k=(()=>{class c{firebaseApi;userProvider;util;leadWatcher;edited=new e._w7;allQuestions;questions;submitSpinner=!1;constructor(i,g,r,h){this.firebaseApi=i,this.userProvider=g,this.util=r,this.leadWatcher=h}ngOnInit(){var i=this;return(0,P.c)(function*(){const g=yield i.firebaseApi.findOneById("questionnaire",i.userProvider.loggedInUser.questionnaireId);i.allQuestions=g.storedAnswersJson,i.questions=i.allQuestions.filter(r=>"question-5"===r.key||"question-6"===r.key||"audit-protection"===r.key||"question-9"===r.key||"question-2"===r.key)})()}
1selectOption(i,g,r,h){i.answers.forEach(l=>{l.key===g?h?l.subAnswers.forEach(n=>{n.key===r&&(n.value=!n.value)}):l.value=!l.value:"select-one"===i.formType&&(l.value=!1)});const s=this.allQuestions.findIndex(l=>l.key===i.key);this.allQuestions[s]=i}updateProfile(){var i=this;return(0,P.c)(function*(){try{i.submitSpinner=!0,yield i.firebaseApi.updateOne("questionnaire",i.userProvider.loggedInUser.questionnaireId,{storedAnswersJson:i.allQuestions}),i.leadWatcher._edit=!1,i.edited.emit({}),i.util.createErrorAlert(null,"Settings updated!")}catch(g){i.util.createErrorAlert(null,"Could not update your settings -> "+g)}finally{i.submitSpinner=!1}})()}goTo(i){this.util.navigateForward(i)}static \u0275fac=function(g){return new(g||c)(e.GI1(v.H),e.GI1(E.e),e.GI1(I.e),e.GI1(m.c))};static \u0275cmp=e.In1({type:c,selectors:[["app-edit"]],outputs:{edited:"edited"},decls:26,vars:4,consts:[["fixed","",1,"left-marg-70"],[1,"secondaryrow","ion-justify-content-center","ion-align-items-center"],["sizeXl","10","size","12",1,"breadcrumbs"],[1,"font-600","ion-text-left"],[3,"click"],["sizeXl","2","size","6",1,"ion-text-right"],[1,"custom-btn",3,"disabled","click"],[4,"ngIf"],["color","light","name","circles",4,"ngIf"],[1,"disclaimer"],[1,"white-block"],[1,"ion-justify-content-start","ion-align-items-center"],[1,"font-600","font-black"],["id","slide_1",4,"ngFor","ngForOf"],["color","light","name","circles"],["id","slide_1"],["sizeLg","12","size","12",1,"ion-text-center"],["id","questionHeader"],[1,"slide-inputs"],["id","inputs",3,"ngSwitch"],[3,"question",4,"ngSwitchCase"],[1,"w-350px"],[3,"align","question","selectOption",4,"ngSwitchCase"],[3,"question","selectOption",4,"ngSwitchCase"],[3,"question"],[3,"align","question","selectOption"],[3,"question","selectOption"]],template:function(g,r){1&g&&(e.I0R(0,"ion-content")(1,"ion-grid",0)(2,"ion-row",1)(3,"ion-col")(4,"ion-row")(5,"ion-col",2)(6,"h1",3)(7,"span",4),e.qCj("click",function(){return r.leadWatcher._edit=!1}),e.OEk(8,"Business Preparation"),e.C$Y(),e.OEk(9," > Edit "),e.C$Y()(),e.I0R(10,"ion-col",5)(11,"button",6),e.qCj("click",function(){return r.updateProfile()}),e.yuY(12,w,2,0,"span",7)(13,G,1,0,"ion-spinner",8),e.C$Y()()(),e.I0R(14,"ion-row")(15,"ion-col")(16,"span",9),e.OEk(17," Leads that match the preferences will be automatically purchased by you based on the preferences you\u2019ve set below. "),e.C$Y()()()()(),e.I0R(18,"ion-row")(19,"ion-col")(20,"div",10)(21,"ion-row",11)(22,"ion-col")(23,"h3",12),e.OEk(24,"Tax Options"),e.C$Y()()(),e.yuY(25,B,13,6,"ion-row",13),e.C$Y()()()()()),2&g&&(e.yG2(11),e.E7m("disabled",r.submitSpinner),e.yG2(),e.E7m("ngIf",!r.submitSpinner),e.yG2(),e.E7m("ngIf",r.submitSpinner),e.yG2(12),e.E7m("ngForOf",r.questions))},dependencies:[x.ay,x.u_,x.Ko,x.Wm,f.Kk,f._i,f.YP,f.qo,f.YA,d.E,T.Y,b.y],styles:["#questionHeader[_ngcontent-%COMP%]{margin:0}#questionHeader[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin:0;text-align:left;height:initial}#slide_1[_ngcontent-%COMP%]{margin-bottom:40px}.service-tags[_ngcontent-%COMP%]{margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap}.service-tags[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;margin-right:10px;margin-bottom:10px}.w-350px[_ngcontent-%COMP%]{width:350px}ion-content[_ngcontent-%COMP%]{--ion-background-color: #f0f2f8}ion-radio-group[_ngcontent-%COMP%]{display:flex}.radio-item[_ngcontent-%COMP%]{margin-right:40px;display:flex;align-items:center}.radio-item[_ngcontent-%COMP%] .radio-label[_ngcontent-%COMP%]{margin-left:20px}.radio-item[_ngcontent-%COMP%] .radio-label[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin:0}.row_accord[_ngcontent-%COMP%]{background-color:#fff;padding:20px;margin-top:40px;border-radius:10px;box-shadow:0 3px 6px #00000029}#icon-checkbox[_ngcontent-%COMP%]{padding:5px}.disclaimer[_ngcontent-%COMP%]{font-size:.9rem;color:gray}ion-toggle[_ngcontent-%COMP%]{padding:5px}#icon-add[_ngcontent-%COMP%]{height:20px}.icon_margin[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:15px}.white-block[_ngcontent-%COMP%]{border:1px solid #d3d3d3;background-color:#fff;padding:20px}.secondaryrow[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:10px}.font-orange[_ngcontent-%COMP%]{color:#ffa000}.font-purple[_ngcontent-%COMP%]{color:#6c63ff}.font-grey[_ngcontent-%COMP%]{color:#000;opacity:60%}.font-500[_ngcontent-%COMP%]{font-weight:500}.font-600[_ngcontent-%COMP%]{font-weight:600}h3[_ngcontent-%COMP%]{margin:0}h1[_ngcontent-%COMP%]{margin:2px auto;font-size:1.4rem}
1h2[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], span[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{margin:2px auto;padding:0}p[_ngcontent-%COMP%]{margin:0;color:#555}.underline[_ngcontent-%COMP%]{text-decoration:underline}hr[_ngcontent-%COMP%]{opacity:.6;width:90%;height:.5px;margin-right:auto;margin-left:auto;background-color:#707070}@media (max-width: 992px){.container[_ngcontent-%COMP%]{padding:20px}}"]})}return c})()}}]);
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.