(window.webpackJsonp=window.webpackJsonp||[]).push([[86],{ivqc:function(n,t,l){"use strict";l.r(t);var u=l("CcnG"),e=l("XC8H"),r=l("2hxB"),o=l("ZZ/e"),i=l("zZ8w"),s=l("2uqJ"),a=function(){function n(n,t,l,u,e){this.settings=n,this.navCtrl=t,this.helper=l,this.activatedRoute=u,this.eventsService=e,this.urlShortcut="",this.ID="",this.shortcutData=[],this.nombre_opcion=""}return n.prototype.ngOnInit=function(){},n.prototype.ionViewWillEnter=function(){var n=this;this.listener=function(t){if(t.data){console.log(t.data);var l=!0;t.data.hasOwnProperty("action")&&(l=!("MOVE"===t.data.action)),n.eventsService.processEvent(t.data),l&&n.helper.displayToast(t.data,3e3)}n.navCtrl.pop()},window.addEventListener("message",this.listener,!1),this.activatedRoute.params.subscribe((function(t){n.ID=t.ID;var l="";for(var u in r.a.user.shortcuts)if(r.a.user.shortcuts.hasOwnProperty(u)&&r.a.user.shortcuts[u].idOpcionMenu===n.ID){n.shortcutData=r.a.user.shortcuts[u],l=r.a.user.shortcuts[u].url,n.nombre_opcion=r.a.user.shortcuts[u].nombre_opcion;break}var e=n.settings.currentSettings[n.settings.API_SERVER_URL],o=n.settings.currentSettings[n.settings.COD_EMPRESA],i=n.settings.currentSettings[n.settings.COD_RESTAURANTE],s=n.settings.currentSettings[n.settings.CENTRAL_ORDER_CLIENT_CODE];n.helper.getAlmacen(i).then((function(t){var u,a=r.a.user.nombre,c=r.a.user.password;console.log({shortcutURL:l}),(u=0===l.indexOf("http://")||0===l.indexOf("https://")?l:e+l).indexOf("?")>0?u+="&":u+="?",n.urlShortcut=u=u+"empresa="+o+"&restaurante="+i+"&cliente="+s+"&almacen="+t.almacen+"&in_ics_logistics=true&nombre_usuario="+a+"&password_usuario="+c}))}))},n.prototype.ionViewWillLeave=function(){window.removeEventListener("message",this.listener,!1)},n}(),c=function(){return function(){}}(),b=l("pMnS"),h=l("YYwF"),p=l("ZYjt"),v=l("oBZk"),d=l("ZYCi"),f=u.ub({encapsulation:0,styles:[[""]],data:{}});function w(n){return u.Sb(0,[u.Kb(0,h.a,[p.b]),(n()(),u.wb(1,0,null,null,11,"ion-header",[],null,null,null,v.mb,v.p)),u.vb(2,49152,null,0,o.E,[u.h,u.k,u.A],null,null),(n()(),u.wb(3,0,null,0,9,"ion-toolbar",[["class","ion-text-center"],["color","primary"]],null,null,null,v.Tb,v.W)),u.vb(4,49152,null,0,o.Fb,[u.h,u.k,u.A],{color:[0,"color"]},null),(n()(),u.wb(5,0,null,0,4,"ion-buttons",[["slot","start"]],null,null,null,v.ab,v.d)),u.vb(6,49152,null,0,o.o,[u.h,u.k,u.A],null,null),(n()(),u.wb(7,0,null,0,2,"ion-back-button",[],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==u.Ib(n,9).onClick(l)&&e),e}),v.Y,v.b)),u.vb(8,49152,null,0,o.j,[u.h,u.k,u.A],null,null),u.vb(9,16384,null,0,o.k,[[2,o.lb],o.Lb],null,null),(n()(),u.wb(10,0,null,0,2,"ion-title",[],null,null,null,v.Rb,v.U)),u.vb(11,49152,null,0,o.Db,[u.h,u.k,u.A],null,null),(n()(),u.Qb(12,0,["",""])),(n()(),u.wb(13,0,null,null,3,"ion-content",[],null,null,null,v.ib,v.l)),u.vb(14,49152,null,0,o.x,[u.h,u.k,u.A],null,null),(n()(),u.wb(15,0,null,0,1,"iframe",[["height","100%"],["width","100%"]],[[8,"src",5]],null,null,null,null)),u.Mb(16,1)],(function(n,t){n(t,4,0,"primary")}),(function(n,t){var l=t.component;n(t,12,0,l.nombre_opcion);var e=u.Rb(t,15,0,n(t,16,0,u.Ib(t,0),l.urlShortcut));n(t,15,0,e)}))}function g(n){return u.Sb(0,[(n()(),u.wb(0,0,null,null,1,"app-shorutcut",[],null,null,null,w,f)),u.vb(1,114688,null,0,a,[e.a,o.Lb,i.a,d.a,s.a],null,null)],(function(n,t){n(t,1,0)}),null)}var m=u.sb("app-shorutcut",a,g,{},{},[]),E=l("Ip0R"),G=l("gIcY"),S=l("iTUp"),k=l("A7o+");l.d(t,"ShortcutPageModuleNgFactory",(function(){return R}));var R=u.tb(c,[],(function(n){return u.Fb([u.Gb(512,u.j,u.db,[[8,[b.a,m]],[3,u.j],u.y]),u.Gb(4608,E.r,E.q,[u.v,[2,E.L]]),u.Gb(4608,G.p,G.p,[]),u.Gb(4608,o.c,o.c,[u.A,u.g]),u.Gb(4608,o.Kb,o.Kb,[o.c,u.j,u.r]),u.Gb(4608,o.Pb,o.Pb,[o.c,u.j,u.r]),u.Gb(1073742336,E.c,E.c,[]),u.Gb(1073742336,G.o,G.o,[]),u.Gb(1073742336,G.d,G.d,[]),u.Gb(1073742336,o.Hb,o.Hb,[]),u.Gb(1073742336,d.p,d.p,[[2,d.u],[2,d.n]]),u.Gb(1073742336,S.a,S.a,[]),u.Gb(1073742336,k.h,k.h,[]),u.Gb(1073742336,c,c,[]),u.Gb(1024,d.l,(function(){return[[{path:"",component:a}]]}),[])])}))}}]);