1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[348],{348:(U,f,l)=>{l.r(f),l.d(f,{ZapierPageModule:()=>k});var m=l(6895),h=l(4006),s=l(12),Z=l(4821),p=l(5861),g=l(8746),_=l(7715),y=l(5041),t=l(1571),b=l(958),x=l(529),P=l(6111),v=l(4219);function T(o,c){if(1&o&&(t.TgZ(0,"p")(1,"ion-label",19),t._uU(2),t.qZA()()),2&o){const n=t.oxw().$implicit;t.xp6(2),t.hij("",n.ZAP_NAME," (add and update Contact)")}}function C(o,c){if(1&o&&(t.TgZ(0,"p")(1,"ion-label",19),t._uU(2),t.qZA()()),2&o){const n=t.oxw().$implicit;t.xp6(2),t.hij("",n.ZAP_NAME," (add Contact)")}}function w(o,c){if(1&o&&(t.TgZ(0,"p")(1,"ion-label",19),t._uU(2),t.qZA()()),2&o){const n=t.oxw().$implicit;t.xp6(2),t.hij("",n.ZAP_NAME," (update Contact)")}}function A(o,c){if(1&o){const n=t.EpF();t.TgZ(0,"ion-list",12)(1,"ion-card",13)(2,"ion-row")(3,"ion-col",5),t.YNc(4,T,3,1,"p",14),t.YNc(5,C,3,1,"p",14),t.YNc(6,w,3,1,"p",14),t.TgZ(7,"ion-item",15)(8,"ion-input",16),t.NdJ("ngModelChange",function(a){const i=t.CHM(n).$implicit;return t.KtG(i.TARGET_URL=a)}),t.qZA()()(),t.TgZ(9,"ion-col",8)(10,"div",9)(11,"ion-button",10),t.NdJ("click",function(){const r=t.CHM(n).$implicit,i=t.oxw();return t.KtG(i.sendSample(r.TARGET_URL))}),t._uU(12,"Send Sample"),t.qZA(),t.TgZ(13,"ion-icon",17),t.NdJ("click",function(){const r=t.CHM(n).$implicit,i=t.oxw();return t.KtG(i.deleteZap(r.ZAP_ID))}),t.qZA(),t._UZ(14,"br")(15,"br"),t.TgZ(16,"ion-label",18),t._uU(17),t.qZA()()()()()()}if(2&o){const n=c.$implicit;t.xp6(4),t.Q6J("ngIf","AU"==n.ZAP_TYPE),t.xp6(1),t.Q6J("ngIf","A"==n.ZAP_TYPE),t.xp6(1),t.Q6J("ngIf","U"==n.ZAP_TYPE),t.xp6(2),t.Q6J("ngModel",n.TARGET_URL),t.xp6(9),t.hij(" created on ",n.CREATED_TIME,"")}}const M=[{path:"",component:(()=>{var o;class c{constructor(e,a,r,i,u,d,O,E,N){this.navctrl=e,this.http=a,this.loadctrl=r,this.globals=i,this.toastctrl=u,this.appcom=d,this.constant=O,this.alertctrl=E,this.modalctrl=N,this.type=[],this.zapurl="https://www.myblindco.com/Zap/V1/openApi.php?run=Customers"}ngOnInit(){}ionViewDidEnter(){this.c_id=this.constant.getCompanyId(),this.user_name=this.constant.getUsername(),this.generateApiKey(),this.displayZap()}back(){this.navctrl.back()}generateApiKey(){var e=this;return(0,p.Z)(function*(){const a=yield e.loadctrl.create({message:"Loading.."});yield a.present(),e.http.post(e.globals.url+"ctrl_zap.php?run=generateApiKey",JSON.stringify({companyid:e.c_id,deviceType:e.constant.platform}),{headers:e.globals.header,withCredentials:!0}).pipe((0,g.x)(()=>{a.dismiss(),("success"==e.status||"failure"==e.status)&&(e.status="")})).subscribe(i=>{e.status=i.status,"success"==e.status&&(e.zapkey=i.message.ZAP_API_KEY)})})()}displayZap(){var e=this;return(0,p.Z)(function*(){const a=yield e.loadctrl.create({message:"Loading.."});yield a.present();let r={companyid:e.c_id,username:e.user_name,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,deviceType:e.constant.platform};e.http.post(e.globals.url+"ctrl_zap.php?run=displayZapDetails",JSON.stringify(r),{headers:e.globals.header,withCredentials:!0}).pipe((0,g.x)(()=>{a.dismiss(),"success"==e.status?e.status="":"failure"==e.status&&(e.status="",e.erroralert(e.message))})).subscribe(i=>{e.status=i.status,"success"==e.status?e.displayzapdetails=i.message:"logout"==i.status?(e.showalert(i.message),e.appcom.clearValue()):"failure"==e.status&&e.erroralert(i.message)})})()}showalert(e){var a=this;return(0,p.Z)(function*(){yield(yield a.alertctrl.create({message:e,buttons:[{text:"Ok"}]})).present()})()}addtriggger(e){var a=this;return(0,p.Z)(function*(){const r=yield a.modalctrl.create({component:_.i,componentProps:{page:"zapier",data:e}});yield r.present(),r.onDidDismiss().then(i=>{a.ionViewDidEnter()})})()}sendSample(e){var a=this;return(0,p.Z)(function*(){var r=e;const i=yield a.loadctrl.create({message:"Loading.."});yield i.present(),a.http.post(a.globals.url+"ctrl_zap.php?run=sendSampleToZapier",JSON.stringify({companyid:a.c_id,zap_url:r,deviceType:a.constant.platform}),{headers:a.globals.header,withCredentials:!0}).pipe((0,g.x)(()=>{i.dismiss(),"success"==a.status?a.status="":"failure"==a.status&&(a.status="",a.erroralert(a.message))})).subscribe(d=>{a.status=d.status,"success"==a.status?(a.message=d.message,a.showtoast(a.message),a.ionViewDidEnter()):"logout"==d.status&&(a.showalert(d.message),a.appcom.clearValue())})})()}deleteZap(e){var a=this;return(0,p.Z)(function*(){var r=e;const i=yield a.loadctrl.create({message:"Loading.."});yield i.present(),a.http.post(a.globals.url+"ctrl_zap.php?run=deleteZapDetails",JSON.stringify({companyid:a.c_id,zap_id:r,deviceType:a.constant.platform}),{headers:a.globals.header,withCredentials:!0}).pipe((0,g.x)(()=>
1{i.dismiss(),"success"==a.status?a.status="":"failure"==a.status&&(a.status="",a.erroralert(a.message))})).subscribe(d=>{a.status=d.status,"success"==a.status?(a.message=d.message,a.showtoast(a.message),a.ionViewDidEnter()):"logout"==d.status&&(a.showalert(d.message),a.appcom.clearValue())})})()}copyclipboardzapkey(){var e=document.createElement("textarea");e.value=this.zapkey,document.body.appendChild(e),e.select(),document.execCommand("copy")}copyclipboardzapurl(){var e=document.createElement("textarea");e.value=this.zapurl,document.body.appendChild(e),e.select(),document.execCommand("copy")}erroralert(e){var a=this;return(0,p.Z)(function*(){yield(yield a.alertctrl.create({message:e,buttons:[{text:"Ok"}]})).present()})()}showtoast(e){var a=this;return(0,p.Z)(function*(){yield(yield a.toastctrl.create({message:e,duration:1500})).present()})()}}return(o=c).\u0275fac=function(e){return new(e||o)(t.Y36(b.SH),t.Y36(x.eN),t.Y36(s.HT),t.Y36(P.x),t.Y36(s.yF),t.Y36(y.y),t.Y36(v.s),t.Y36(s.Br),t.Y36(s.IN))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-zapier"]],decls:25,vars:1,consts:[["mode","ios","color","primary",1,"titlewidth"],["slot","start","name","arrow-back",1,"cursor",2,"font-size","32px",3,"click"],[1,"card"],[1,"lebel"],[1,"innercard","border"],[2,"min-width","200px"],[2,"font-weight","bold"],[1,"zaiperlabel"],["size","4",2,"min-width","200px"],[1,"aligncenter"],[1,"capitalize",2,"margin-top","9px","font-weight","bold",3,"click"],["style","background-color: white ;",4,"ngFor","ngForOf"],[2,"background-color","white"],[1,"innercard1"],[4,"ngIf"],[1,"itemcolor"],["aria-label","","mode","md","id","datas.ZAP_ID",1,"itemcolor","border",3,"ngModel","ngModelChange"],["ios","ios-trash","md","md-trash",1,"cursor","trash","itemcolor",3,"click"],[2,"color","black"],[2,"font-weight","bold","color","black"]],template:function(e,a){1&e&&(t.TgZ(0,"ion-header")(1,"ion-toolbar",0)(2,"ion-icon",1),t.NdJ("click",function(){return a.back()}),t.qZA(),t.TgZ(3,"ion-title"),t._uU(4,"Zapier Integration"),t.qZA()()(),t.TgZ(5,"ion-content")(6,"ion-grid")(7,"ion-row")(8,"ion-card",2)(9,"ion-row")(10,"ion-label",3),t._uU(11," Zapier allows you to connect MyBlindco to thousands of other platforms such as Google Sheets and Pipedrive to build a fully customized management system for your business. "),t.qZA()(),t.TgZ(12,"ion-card",4)(13,"ion-row")(14,"ion-col",5)(15,"ion-label",6),t._uU(16," Send Contact from other Platforms "),t.qZA(),t._UZ(17,"br"),t.TgZ(18,"ion-label",7),t._uU(19," Use WebHook Triggers to send newly added, or updated Customer info from MyBlindco to other platforms. "),t.qZA()(),t.TgZ(20,"ion-col",8)(21,"div",9)(22,"ion-button",10),t.NdJ("click",function(){return a.addtriggger(a.data)}),t._uU(23,"Add Trigger"),t.qZA()()()()(),t.YNc(24,A,18,5,"ion-list",11),t.qZA()()()()),2&e&&(t.xp6(24),t.Q6J("ngForOf",a.displayzapdetails))},dependencies:[m.sg,m.O5,h.JJ,h.On,s.YG,s.PM,s.wI,s.W2,s.jY,s.Gu,s.gu,s.pK,s.Ie,s.Q$,s.q_,s.Nd,s.wd,s.sr,s.j9],styles:[".card[_ngcontent-%COMP%]{background:var(--ion-color-white)!important;border:none!important;padding:20px!important;box-shadow:none!important;width:1000px}.itemcolor[_ngcontent-%COMP%]{--background: var(--ion-color-white) !important}.innercard[_ngcontent-%COMP%]{background:var(--ion-color-white)!important;border:none!important;padding:20px!important;box-shadow:none!important}.border[_ngcontent-%COMP%]{border:1px solid var(--ion-color-dark)!important;color:var(--ion-color-dark)!important;color:#000}.border1[_ngcontent-%COMP%]{border:1px solid var(--ion-color-dark)!important;color:var(--ion-color-dark)!important;padding:5px!important;font-size:31px}.lebel[_ngcontent-%COMP%]{color:#000;padding:15px;margin-top:-19px}.updatebtn[_ngcontent-%COMP%]{margin-right:20px;width:100px;height:38px;font-weight:700!important;--border-radius: 2px !important;font-size:14px!important}.aligncenter[_ngcontent-%COMP%]{text-align:center!important}ion-item[_ngcontent-%COMP%]{--border-width: 0 0 0px 0}.inputtext[_ngcontent-%COMP%]{border:1px solid var(--ion-color-dark)!important;color:var(--ion-color-dark)!important;background:lightgray;
1min-width:200px;font-weight:700}.zaiperlabel[_ngcontent-%COMP%]{color:#818181;font-family:avenir;font-weight:600;font-size:12px;letter-spacing:.5px;text-align:left;line-height:1.5em}.cursor[_ngcontent-%COMP%]{cursor:pointer!important}.trash[_ngcontent-%COMP%]{font-size:33px;padding:10px}.innercard1[_ngcontent-%COMP%]{background:#eeeeee;border:none!important;padding:20px!important;box-shadow:none!important}"]}),c})()}];let z=(()=>{var o;class c{}return(o=c).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[Z.Bz.forChild(M),Z.Bz]}),c})(),k=(()=>{var o;class c{}return(o=c).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[m.ez,h.u5,s.Pc,z]}),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.