1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8448],{8448:(C,j,s)=>{s.d(j,{K:()=>N});var u=s(467),f=s(7586),R=s(352),D=s(8830),t=s(8699),h=s(1143),P=s(4576),G=s(7157),p=s(8974),m=s(9563),E=s(1277),M=s(177),x=s(4341),I=s(1605);function k(o,_){if(1&o&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&o){const e=t.XpG();t.R7$(1),t.SpI(" ",e.api.i18n(null==e.group_id?"groups.html::title::add"+(1==e.group.planned?"_event":""):"groups.html::title::update"+(1==e.group.planned?"_event":""))," ")}}function T(o,_){1&o&&(t.j41(0,"div",11),t.nrm(1,"i",12),t.k0s())}function c(o,_){if(1&o&&t.nrm(0,"img",38),2&o){const e=t.XpG(2);t.FS9("src",null!=e.group&&null!=e.group.image&&e.group.image.urls?null==e.group?null:e.group.image.urls.hd:"assets/no_image.jpg",t.B4B)}}function v(o,_){if(1&o&&(t.j41(0,"div",39),t.nrm(1,"i",40),t.j41(2,"div",41),t.EFF(3),t.k0s()()),2&o){const e=t.XpG(2);t.R7$(3),t.JRh(e.api.i18n("groups.html::albums::add"))}}function d(o,_){if(1&o){const e=t.RV6();t.j41(0,"ion-datetime",46),t.bIt("ngModelChange",function(a){t.eBV(e);const g=t.XpG(3);return t.Njj(g.group.event_start=a)}),t.k0s()}if(2&o){const e=t.XpG(3);t.Y8G("min",e.min_date)("max",e.max_date)("ngModel",e.group.event_start)("readonly",0==e.can_update_event.allowed)}}function l(o,_){if(1&o&&(t.j41(0,"div",21)(1,"label",22),t.EFF(2),t.k0s(),t.j41(3,"div",42),t.nrm(4,"ion-datetime-button",43),t.k0s(),t.j41(5,"ion-popover",44),t.DNE(6,d,1,4,"ng-template"),t.k0s(),t.j41(7,"div",45),t.EFF(8),t.k0s()()),2&o){const e=t.XpG(2);t.R7$(2),t.JRh(e.api.i18n("groups.html::label::event_start")),t.R7$(3),t.Y8G("keepContentsMounted",!0),t.R7$(3),t.SpI(" ",e.api.i18n("groups.html::messages::cant_update_event_"+e.can_update_event.status)," ")}}function r(o,_){if(1&o&&(t.j41(0,"ion-select-option",47),t.EFF(1),t.k0s()),2&o){const e=_.$implicit,i=t.XpG(3);t.FS9("value",e),t.R7$(1),t.SpI(" ",i.api.i18n("groups.html::durations::"+e)," ")}}function b(o,_){if(1&o){const e=t.RV6();t.j41(0,"div",21)(1,"label",22),t.EFF(2),t.k0s(),t.j41(3,"ion-select",25),t.bIt("ngModelChange",function(a){t.eBV(e);const g=t.XpG(2);return t.Njj(g.group.duration=a)}),t.DNE(4,r,2,2,"ion-select-option",32),t.k0s()()}if(2&o){const e=t.XpG(2);t.R7$(2),t.JRh(e.api.i18n("groups.html::label::duration")),t.R7$(1),t.Y8G("ngModel",e.group.duration),t.R7$(1),t.Y8G("ngForOf",e.api.configTree("groups").durations)}}function y(o,_){if(1&o){const e=t.RV6();t.j41(0,"app-map-static",48),t.bIt("click",function(){t.eBV(e);const a=t.XpG(2);return t.Njj(a.openPickgeoPage())}),t.k0s()}if(2&o){const e=t.XpG(2);t.Y8G("geo",e.group.geo)("zoom",15)("width",400)("height",100)}}function B(o,_){if(1&o){const e=t.RV6();t.j41(0,"div",21)(1,"label",22),t.EFF(2),t.k0s(),t.j41(3,"input",23),t.bIt("ngModelChange",function(a){t.eBV(e);const g=t.XpG(2);return t.Njj(g.group.address=a)}),t.k0s()()}if(2&o){const e=t.XpG(2);t.R7$(2),t.JRh(e.api.i18n("groups.html::label::address")),t.R7$(1),t.Y8G("ngModel",e.group.address)}}function F(o,_){if(1&o&&(t.j41(0,"ion-select-option",47),t.EFF(1),t.k0s()),2&o){const e=_.$implicit,i=t.XpG(2);t.FS9("value",e.code),t.R7$(1),t.SpI(" ",i.api.i18n("groups.html::tags::"+e.code)," ")}}function $(o,_){if(1&o){const e=t.RV6();t.j41(0,"div",21)(1,"label",22),t.EFF(2),t.k0s(),t.j41(3,"input",23),t.bIt("ngModelChange",function(a){t.eBV(e);const g=t.XpG(2);return t.Njj(g.group.url=a)}),t.k0s()()}if(2&o){const e=t.XpG(2);t.R7$(2),t.JRh(e.api.i18n("groups.html::label::url")),t.R7$(1),t.Y8G("ngModel",e.group.url)}}function O(o,_){if(1&o){const e=t.RV6();t.j41(0,"button",49),t.bIt("click",function(){t.eBV(e);const a=t.XpG(2);return t.Njj(a.deleteGroup())}),t.EFF(1),t.k0s()}if(2&o){const e=t.XpG(2);t.R7$(1),t.SpI(" ",e.api.i18n("groups.html::delete::button"+(1==e.group.planned?"_event":""))," ")}}function w(o,_){1&o&&t.nrm(0,"i",50)}function X(o,_){if(1&o&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&o){const e=t.XpG(2);t.R7$(1),t.JRh(e.api.i18n("groups.html::button::updating"))}}function U(o,_){if(1&o&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&o){const e=t.XpG(2);t.R7$(1),t.JRh(e.api.i18n("groups.html::button::update"))}}function Y(o,_){if(1&o){const e=t.RV6();t.j41(0,"div",13)(1,"div",14)(2,"div",8)(3,"div",15)(4,"div")(5,"div",16),t.bIt("click",function(){t.eBV(e);const a=t.XpG();return t.Njj(a.openStoragesPickerPage())}),t.DNE(6,c,1,1,"img",17),t.DNE(7,v,4,1,"div",18),t.k0s()(),t.j41(8,"div",19)(9,"div",20)(10,"div"),t.EFF(11),t.k0s()()(),t.j41(12,"div",21)(13,"label",22),t.EFF(14),t.k0s(),t.j41(15,"input",23),t.bIt("ngModelChange",function(a){t.eBV(e);
1const g=t.XpG();return t.Njj(g.group.name=a)}),t.k0s()(),t.DNE(16,l,9,3,"div",24),t.DNE(17,b,5,3,"div",24),t.j41(18,"div",21)(19,"label",22),t.EFF(20),t.k0s(),t.j41(21,"ion-select",25),t.bIt("ngModelChange",function(a){t.eBV(e);const g=t.XpG();return t.Njj(g.group.public=a)}),t.j41(22,"ion-select-option",26),t.EFF(23),t.k0s(),t.j41(24,"ion-select-option",27),t.EFF(25),t.k0s()()(),t.j41(26,"div",21)(27,"label",22),t.EFF(28),t.k0s(),t.j41(29,"ion-select",25),t.bIt("ngModelChange",function(a){t.eBV(e);const g=t.XpG();return t.Njj(g.group.hidden=a)}),t.j41(30,"ion-select-option",27),t.EFF(31),t.k0s(),t.j41(32,"ion-select-option",26),t.EFF(33),t.k0s()()(),t.j41(34,"div",21)(35,"label",22),t.EFF(36),t.k0s(),t.j41(37,"div",28),t.nrm(38,"ion-skeleton-text",29),t.DNE(39,y,1,4,"app-map-static",30),t.k0s()(),t.DNE(40,B,4,2,"div",24),t.j41(41,"div",21)(42,"label",22),t.EFF(43),t.k0s(),t.j41(44,"ion-select",31),t.bIt("ngModelChange",function(a){t.eBV(e);const g=t.XpG();return t.Njj(g.group.tags=a)}),t.DNE(45,F,2,2,"ion-select-option",32),t.k0s()(),t.j41(46,"div",21)(47,"label",22),t.EFF(48),t.k0s(),t.j41(49,"ion-textarea",33),t.bIt("ngModelChange",function(a){t.eBV(e);const g=t.XpG();return t.Njj(g.group.description=a)}),t.k0s()(),t.DNE(50,$,4,2,"div",24),t.j41(51,"div",34),t.DNE(52,O,2,1,"button",35),t.j41(53,"button",36),t.bIt("click",function(){t.eBV(e);const a=t.XpG();return t.Njj(a.save())}),t.DNE(54,w,1,0,"i",37),t.DNE(55,X,2,1,"span",4),t.DNE(56,U,2,1,"span",4),t.k0s()()()()()()}if(2&o){const e=t.XpG();t.R7$(4),t.ZvI("",1==e.group.planned?"col-6 col-lg-4":"col-12 col-lg-6"," mb-3"),t.R7$(1),t.ZvI("position-relative embed-responsive embed-responsive-",1==e.group.planned?"1":"3","by1 cursor-pointer h-100"),t.R7$(1),t.Y8G("ngIf",e.group),t.R7$(1),t.Y8G("ngIf",null==(null==e.group?null:e.group.image)),t.R7$(4),t.SpI(" ",e.api.i18n("groups.html::warning::create")," "),t.R7$(3),t.JRh(e.api.i18n("groups.html::label::name")),t.R7$(1),t.Y8G("ngModel",e.group.name),t.R7$(1),t.Y8G("ngIf",1==e.group.planned),t.R7$(1),t.Y8G("ngIf",1==e.group.planned),t.R7$(3),t.JRh(e.api.i18n("groups.html::label::public")),t.R7$(1),t.Y8G("ngModel",e.group.public),t.R7$(2),t.JRh(e.api.i18n("groups.html::public::yes")),t.R7$(2),t.JRh(e.api.i18n("groups.html::public::no")),t.R7$(3),t.JRh(e.api.i18n("groups.html::label::hidden")),t.R7$(1),t.Y8G("ngModel",e.group.hidden),t.R7$(2),t.JRh(e.api.i18n("groups.html::label::hidden_false")),t.R7$(2),t.JRh(e.api.i18n("groups.html::label::hidden_true")),t.R7$(3),t.JRh(e.api.i18n("groups.html::label::geo")),t.R7$(3),t.Y8G("ngIf",!e.loadingGeo),t.R7$(1),t.Y8G("ngIf",1==e.group.pro),t.R7$(3),t.JRh(e.api.i18n("groups.html::label::tags")),t.R7$(1),t.Y8G("ngModel",e.group.tags),t.R7$(1),t.Y8G("ngForOf",e.api.configTree("groups").tags),t.R7$(3),t.JRh(e.api.i18n("groups.html::label::description")),t.R7$(1),t.Y8G("ngModel",e.group.description),t.R7$(1),t.Y8G("ngIf",1==e.group.pro),t.R7$(2),t.Y8G("ngIf",null!=e.group_id),t.R7$(1),t.Y8G("disabled",e.saving||null==e.group.image),t.R7$(1),t.Y8G("ngIf",e.saving),t.R7$(1),t.Y8G("ngIf",e.saving),t.R7$(1),t.Y8G("ngIf",!e.saving)}}let N=(()=>{var o;class _{constructor(i,a,g,S,A,V,L,W){this.api=i,this.tls=a,this.nav=g,this.events=S,this.route=A,this.alt=V,this.mdl=L,this.router=W,this.startHandler=null,this.startHandlerSub=null,this.loading=!0,this.group={file_default:{public:{}},hidden:"0",image:null},this.weights=[],this.heights=[],this.days=[],this.months=[],this.years=[],this.saving=!1,this.validated_recently=!1,this.can_update_event={status:"default"},this.max_date=f().add(6,"M").format("YYYY-MM-DD"),this.min_date=f().format("YYYY-MM-DD"),this.loadingGeo=!1,this.group.parent_id=null,this.group.public="1",this.group.tags={},this.group.hidden="0",this.group.planned="0",this.group.geo=this.api.getUser().geo,this.group.event_start=f().format(),this.group.duration="1 hour",this.group.url="",this.group.ticket="",this.group.address="",this.group.deleted=0,this.group_id=this.route.snapshot.paramMap.get("group_id")?this.route.snapshot.paramMap.get("group_id"):this.api.getDataBetweenPages().group_id,this.api.getDataBetweenPages()&&this.api.getDataBetweenPages().group&&(this.group.parent_id=this.api.getDataBetweenPages().group._id,this.group.public=this.api.getDataBetweenPages().group.public.toString(),this.group.hidden=this.api.getDataBetweenPages().group.hidden.toString(),this.group.tags=this.api.getDataBetweenPages().group.tags,this.group.geo=this.api.getDataBetweenPages().group.geo,this.group.address=this.api.getDataBetweenPages().group.address,this.group.url=this.api.getDataBetweenPages().group.url,this.group.pro=this.api.getDataBetweenPages().group.pro,this.group.planned="1")}ngOnInit(){this.startHandler=i=>{this.start()},this.startHandlerSub=this.events.subscribe("api:checkin:obtained",this.startHandler),this.api._checkin.date&&this.start()}ngOnDestroy(){this.startHandlerSub.unsubscribe()}start(){"new"==this.group_id&&(this.group_id=null),null!=this.group_id?this.api.apiQuery({method:"group_update",group_id:this.group_id}).then(i=>{if(i.error>0)return this.apiError(i);this.group=i.group,this.group.planned=i.group.planned?i.group.planned.toString():"0",this.group.public=i.group.public?i.group.public.toString():"0",this.group.hidden=i.group.hidden?i.group.hidden.toString():"0",null!=this.group.pro&&!this.group.address&&(this.group.address=""),this.group.event_start=f.unix(this.group.event_start_ut).format(),this.can_update_event=i.can_update_event,this.loading=!1}
1).catch(i=>this.api.systemError(i)):this.loading=!1}openStoragesPickerPage(){var i=this;return(0,u.A)(function*(){const a=yield i.mdl.create({component:D.u,componentProps:{mode:"simple",type:"select",from:"group"}});a.onDidDismiss().then(g=>{g.data&&(i.group.image_uuid=g.data.files[0]._id,i.group.file_default.public=g.data.files[0],i.group.image=g.data.files[0])}),a.present()})()}openPickgeoPage(){var i=this;return(0,u.A)(function*(){i.loadingGeo=!0,i.api.setDataBetweenPages({from:"group",geo:i.group.geo});const a=yield i.mdl.create({component:R.E});return a.onDidDismiss().then(g=>{g.data?(i.group.geo=g.data.geo,i.loadingGeo=!1):i.loadingGeo=!1}),yield a.present()})()}save(){this.saving=!0;let i={_id:this.group._id,name:this.group.name,description:this.group.description,event_start_ut:f(this.group.event_start).unix(),duration:this.group.duration,geo:this.group.geo,hidden:Number(this.group.hidden),planned:Number(this.group.planned),public:Number(this.group.public),tags:this.group.tags,url:this.group.url};this.group.image_uuid&&(i.image_uuid=this.group.image_uuid),null!=this.group.parent_id&&(i.parent_id=this.group.parent_id),null!=this.group.pro&&(i.pro=this.group.pro),null!=this.group.pro&&(i.address=this.group.address),this.api.apiQuery({method:"group_update",action:1==this.group.deleted?"delete":"update",group_id:this.group_id,group:i}).then(a=>{if(a.error>0)return this.apiError(a);this.saving=!1,this.apiError(a),0==a.error&&(this.api.btSizeMore("lg")?this.mdl.dismiss({update:!0}):(this.nav.pop(),this.events.publish("group:group-update-page")))}).catch(a=>this.api.systemError(a))}deleteGroup(){var i=this;return(0,u.A)(function*(){const a=yield i.alt.create({message:i.api.i18n("groups.html::delete::description"+(1==i.group.planned?"_event":"")),buttons:[{text:i.api.i18n("app::button::cancel"),cssClass:"btn-block bg-cardbg text-cardtxt px-0"},{text:i.api.i18n("groups.html::delete::button"+(1==i.group.planned?"_event":"")),cssClass:"btn-block text-danger px-0",role:"delete"}]});a.onDidDismiss().then(g=>{"delete"==g.role&&(i.group.deleted=1,i.save())}),yield a.present()})()}apiError(i){"not_connected"===i.errcode?this.nav.navigateRoot("/home"):this.api.presentToast(i.errmsg),this.saving=!1,this.loading=!1}}return(o=_).\u0275fac=function(i){return new(i||o)(t.rXU(h.G),t.rXU(P.H),t.rXU(G.q9),t.rXU(m.H),t.rXU(E.nX),t.rXU(p.hG),t.rXU(p.W3),t.rXU(E.Ix))},o.\u0275cmp=t.VBU({type:o,selectors:[["app-groupupdate"]],decls:13,vars:6,consts:[[1,"bg-navbg","text-navtxt","w-100","d-flex","justify-content-between","py-1","m-0"],[1,"btn","btn-link","text-primary","shadow-none","py-0","d-lg-none",3,"click"],[1,"fa-2x","fa-regular","fa-angle-left"],[1,"p-2","pl-3","m-0","h5","text-truncate","w-100","flex-grow-1"],[4,"ngIf"],[1,"btn","btn-outline","text-navtxt","shadow-none","d-none","d-lg-block",3,"click"],[1,"fa-fw","fa-lg","fa-solid","fa-circle-xmark"],[1,"py-4","py-lg-5"],[1,"container"],["class","text-center my-5 py-5",4,"ngIf"],["class","row justify-content-center pb-4",4,"ngIf"],[1,"text-center","my-5","py-5"],[1,"fa-fw","fa-lg","fa-solid","fa-spinner-third","fa-spin","my-5"],[1,"row","justify-content-center","pb-4"],[1,"col-xl-11","col-xxl-9","px-0"],[1,"row","d-flex","justify-content-center"],[3,"click"],["class","embed-responsive-item obj-cover",3,"src",4,"ngIf"],["class","position-absolute tblr-bottom d-flex flex-column justify-content-center align-items-center text-primary p-2",4,"ngIf"],[1,"col-12","col-lg-6","mb-3"],[1,"bg-cardbg","text-cardtxt","text-center","h90","lh12","h-100","p-3","d-flex","justify-content-center","align-items-center"],[1,"col-12","form-group"],[1,"font-weight-bold"],["type","text",1,"form-control",3,"ngModel","ngModelChange"],["class","col-12 form-group",4,"ngIf"],["interface","alert","full","",1,"bg-white","text-dark","rounded",3,"ngModel","ngModelChange"],["value","1"],["value","0"],[1,"embed-responsive","embed-responsive-4by1"],["animated","",1,"embed-responsive-item","obj-cover","rounded","my-0"],[3,"geo","zoom","width","height","click",4,"ngIf"],["interface","alert","full","","multiple","true",1,"bg-white","text-dark","rounded",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["rows","4",1,"bg-white","text-dark","rounded","px-2",3,"ngModel","ngModelChange"],[1,"col-12","text-center","py-2"],["class","btn btn-outline-danger text-nowrap mx-2 px-3 shadow-none",3,"click",4,"ngIf"],[1,"btn","btn-primary","text-nowrap","mx-2","px-3","shadow-none",3,"disabled","click"],["class","fa-solid fa-spinner-third fa-spin mr-2",4,"ngIf"],[1,"embed-responsive-item","obj-cover",3,"src"],[1,"position-absolute","tblr-bottom","d-flex","flex-column","justify-content-center","align-items-center","text-primary","p-2"],[1,"fa-fw","fa-2x","fa-solid","fa-camera-alt","text-shadow","mb-2"],[1,"btn","btn-primary","shadow-lg","btn-sm"],[1,"bg-white","rounded","py-1"],["datetime","datetime"],[3,"keepContentsMounted"],[1,"h80","lh12","font-italic","mt-1"],["
1id","datetime","displayFormat","YYYY-MM-DD HH:mm","pickerFormat","YYYY-MMM-D HH:mm","minuteValues","0,15,30,45",1,"bg-white","text-dark","rounded",3,"min","max","ngModel","readonly","ngModelChange"],[3,"value"],[3,"geo","zoom","width","height","click"],[1,"btn","btn-outline-danger","text-nowrap","mx-2","px-3","shadow-none",3,"click"],[1,"fa-solid","fa-spinner-third","fa-spin","mr-2"]],template:function(i,a){1&i&&(t.j41(0,"ion-header")(1,"div",0)(2,"button",1),t.bIt("click",function(){return a.api.backButtonAction()}),t.nrm(3,"i",2),t.k0s(),t.j41(4,"div",3),t.DNE(5,k,2,1,"span",4),t.k0s(),t.j41(6,"button",5),t.bIt("click",function(){return a.mdl.dismiss()}),t.nrm(7,"i",6),t.k0s()()(),t.j41(8,"ion-content")(9,"div",7)(10,"div",8),t.DNE(11,T,2,0,"div",9),t.DNE(12,Y,57,35,"div",10),t.k0s()()()),2&i&&(t.R7$(5),t.Y8G("ngIf",!a.loading),t.R7$(3),t.HbH(a.api.btSizeMore("lg")?"border-left border-right border-bottom border-2 border-navbg":""),t.R7$(3),t.Y8G("ngIf",a.loading),t.R7$(1),t.Y8G("ngIf",!a.loading))},dependencies:[M.Sq,M.bT,x.me,x.BC,x.vS,p.W9,p.A9,p.K4,p.eU,p.Nm,p.Ip,p.ds,p.nc,p.CF,p.Je,p.Gw,I.s]}),_})()},352:(C,j,s)=>{s.d(j,{E:()=>T});var u=s(8244),n=s(8699),R=s(1143),D=s(7157),t=s(8974),h=s(1277),P=s(9245),G=s(177),p=s(4341);const m=["map"];function E(c,v){1&c&&(n.j41(0,"div",12),n.nrm(1,"i",13),n.k0s())}function M(c,v){1&c&&(n.j41(0,"span",14),n.nrm(1,"i",15),n.k0s())}function x(c,v){if(1&c){const d=n.RV6();n.j41(0,"div",16)(1,"div",17)(2,"input",18),n.bIt("ngModelChange",function(r){n.eBV(d);const b=n.XpG();return n.Njj(b.search=r)})("keyup.enter",function(){n.eBV(d);const r=n.XpG();return n.Njj(r.runSearch())}),n.k0s(),n.j41(3,"div",19)(4,"button",20),n.bIt("click",function(){n.eBV(d);const r=n.XpG();return n.Njj(r.runSearch())}),n.nrm(5,"i",21),n.k0s()()()()}if(2&c){const d=n.XpG();n.R7$(2),n.FS9("placeholder",d.api.i18n("app::search::label")),n.Y8G("ngModel",d.search)}}function I(c,v){if(1&c){const d=n.RV6();n.j41(0,"div",22)(1,"button",23),n.bIt("click",function(){n.eBV(d);const r=n.XpG();return n.Njj(r.setAuto())}),n.nrm(2,"i",24),n.k0s(),n.j41(3,"button",23),n.bIt("click",function(){n.eBV(d);const r=n.XpG();return n.Njj(r.increaseZoom(-1))}),n.nrm(4,"i",25),n.k0s(),n.j41(5,"button",23),n.bIt("click",function(){n.eBV(d);const r=n.XpG();return n.Njj(r.increaseZoom(1))}),n.nrm(6,"i",26),n.k0s()()}}function k(c,v){if(1&c){const d=n.RV6();n.j41(0,"div",27)(1,"div",28)(2,"button",29),n.bIt("click",function(){n.eBV(d);const r=n.XpG();return n.Njj(r.saveGeo())}),n.EFF(3),n.k0s()()()}if(2&c){const d=n.XpG();n.R7$(3),n.SpI(" ",d.api.i18n("page_pickgeo::button::save")," ")}}let T=(()=>{var c;class v{constructor(l,r,b,y,B){this.api=l,this.nav=r,this.route=b,this.mdl=y,this.http=B,this.geo={lat:0,lng:0},this.loading=!1,this.zoom=15}ngOnInit(){setTimeout(()=>{this.start()},500)}start(){this.geo=this.api.getGeo();let l=this.api.getDataBetweenPages();l.geo&&0!=l.geo.lat&&0!=l.geo.lng&&(this.geo=l.geo),this.initMap()}initMap(){this.leafletMap=u.map(this.map.nativeElement,{zoomControl:!1}).setView([this.geo.lat,this.geo.lng],this.zoom),u.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"\xa9 OpenStreetMap contributors"}).addTo(this.leafletMap),this.leafletMap.on("dragend",()=>{const l=this.leafletMap.getCenter();this.geo={lat:l.lat,lng:l.lng}})}setAuto(){this.leafletMap.setView([this.api.getGeo().lat,this.api.getGeo().lng],this.zoom=17),this.geo={lat:this.api.getGeo().lat,lng:this.api.getGeo().lng}}increaseZoom(l){this.zoom+l>18||this.zoom+l<0||(this.zoom+=l,this.leafletMap.setZoom(this.zoom))}saveGeo(){this.mdl.dismiss({geo:this.geo})}runSearch(){let l="https://eu1.locationiq.com/v1/search.php?key="+this.api.configTree("locationiq").key+"&q="+this.search+"&format=json";this.http.get(l).toPromise().then(r=>{this.leafletMap.setView([parseFloat(r[0].lat),parseFloat(r[0].lon)],this.zoom=16),this.geo={lat:parseFloat(r[0].lat),lng:parseFloat(r[0].lon)}})}}return(c=v).\u0275fac=function(l){return new(l||c)(n.rXU(R.G),n.rXU(D.q9),n.rXU(h.nX),n.rXU(t.W3),n.rXU(P.Qq))},c.\u0275cmp=n.VBU({type:c,selectors:[["app-pickgeo"]],viewQuery:function(l,r){if(1&l&&n.GBs(m,5),2&l){let b;n.mGM(b=n.lsd())&&(r.map=b.first)}},decls:16,vars:6,consts:[[1,"bg-navbg","text-navtxt","w-100","d-flex","justify-content-between","py-1","m-0"],[1,"p-2","pl-3","m-0","h5","text-truncate","w-100"],[1,"btn","btn-outline","text-navtxt","shadow-none",3,"click"],[1,"fa-fw","fa-lg","fa-solid","fa-circle-xmark"],["class","text-center mty-
15 py-5",4,"ngIf"],[1,"position-relative","h-100"],[1,"map","h-100",2,"min-height","400px","z-index","0"],["map",""],["class","position-absolute tblr-full d-flex justify-content-center align-items-center","style","pointer-events: none;",4,"ngIf"],["class","position-absolute tblr-top-left m-2 w-75",4,"ngIf"],["class","position-absolute tblr-top-right d-flex flex-column m-2",4,"ngIf"],["class","bg-navbg text-navtxt text-center border-top border-navtxt py-2",4,"ngIf"],[1,"text-center","mty-5","py-5"],[1,"fa-fw","fa-lg","fa-solid","fa-spinner-third","fa-spin","my-5"],[1,"position-absolute","tblr-full","d-flex","justify-content-center","align-items-center",2,"pointer-events","none"],[1,"fa-fw","fa-4x","fa-light","fa-location","text-primary"],[1,"position-absolute","tblr-top-left","m-2","w-75"],[1,"input-group"],["type","text",1,"form-control","col-8","col-lg-5",3,"placeholder","ngModel","ngModelChange","keyup.enter"],[1,"input-group-append"],["type","button",1,"btn","btn-primary","shadow-none",3,"click"],[1,"fas","fa-fw","fa-search"],[1,"position-absolute","tblr-top-right","d-flex","flex-column","m-2"],[1,"btn","btn-primary","shadow-none","mb-1",3,"click"],[1,"fa-fw","fa-regular","fa-location-crosshairs"],[1,"fa-fw","fa-regular","fa-search-minus"],[1,"fa-fw","fa-regular","fa-search-plus"],[1,"bg-navbg","text-navtxt","text-center","border-top","border-navtxt","py-2"],[1,"d-flex","justify-content-around","align-items-center"],[1,"btn","btn-primary","shadow-none",3,"click"]],template:function(l,r){1&l&&(n.j41(0,"ion-header")(1,"div",0)(2,"div",1),n.EFF(3),n.k0s(),n.j41(4,"button",2),n.bIt("click",function(){return r.mdl.dismiss()}),n.nrm(5,"i",3),n.k0s()()(),n.j41(6,"ion-content"),n.DNE(7,E,2,0,"div",4),n.j41(8,"div",5),n.nrm(9,"div",6,7),n.DNE(11,M,2,0,"span",8),n.DNE(12,x,6,2,"div",9),n.DNE(13,I,7,0,"div",10),n.k0s()(),n.j41(14,"ion-footer"),n.DNE(15,k,4,1,"div",11),n.k0s()),2&l&&(n.R7$(3),n.SpI(" ",r.loading?"\xa0":r.api.i18n("page_pickgeo::header::title")," "),n.R7$(4),n.Y8G("ngIf",r.loading),n.R7$(4),n.Y8G("ngIf",!r.loading),n.R7$(1),n.Y8G("ngIf",!r.loading),n.R7$(1),n.Y8G("ngIf",!r.loading),n.R7$(2),n.Y8G("ngIf",!r.loading))},dependencies:[G.bT,p.me,p.BC,p.vS,t.W9,t.M0,t.eU]}),v})()},1605:(C,j,s)=>{s.d(j,{s:()=>t});var u=s(8699),f=s(1143),n=s(177),R=s(8974);function D(h,P){1&h&&(u.j41(0,"span",4),u.nrm(1,"i",5),u.k0s())}let t=(()=>{var h;class P{constructor(p){this.api=p,this.geo=[],this.zoom=15,this.width=100,this.height=100,this.showPointer=!0,this.url=""}ngOnInit(){const p=this.geoURL(this.geo,this.zoom);this.url=p.url}geoURL(p,m){if(null==p||0==p.lat||0==p.lng)return{url:"/img/geo.jpg"};const E=Math.pow(2,m),M=p.lat*(Math.PI/180),x=Math.floor((p.lng+180)/360*E),I=Math.floor((1-Math.log(Math.tan(M)+1/Math.cos(M))/Math.PI)/2*E),k=["a","b","c"];return{url:`https://${k[Math.floor(Math.random()*k.length)]}.tile.openstreetmap.org/${m}/${x}/${I}.png`}}}return(h=P).\u0275fac=function(p){return new(p||h)(u.rXU(f.G))},h.\u0275cmp=u.VBU({type:h,selectors:[["app-map-static"]],inputs:{geo:"geo",zoom:"zoom",width:"width",height:"height",showPointer:"showPointer"},decls:5,vars:2,consts:[["animated","",1,"embed-responsive-item","obj-cover","rounded","my-0"],[1,"embed-responsive-item","obj-cover","rounded",3,"src"],[1,"position-absolute","tblr-bottom-right","bg-light","text-dark","px-1","h70","opacity-70"],["class","position-absolute tblr-full d-flex justify-content-center align-items-center","style","pointer-events: none;",4,"ngIf"],[1,"position-absolute","tblr-full","d-flex","justify-content-center","align-items-center",2,"pointer-events","none"],[1,"fal","fa-location","fa-2x","text-primary"]],template:function(p,m){1&p&&(u.nrm(0,"ion-skeleton-text",0)(1,"img",1),u.j41(2,"div",2),u.EFF(3," \xa9 OpenStreetMap contributors\n"),u.k0s(),u.DNE(4,D,2,0,"span",3)),2&p&&(u.R7$(1),u.FS9("src",m.api.transformURL(m.url),u.B4B),u.R7$(3),u.Y8G("ngIf",m.showPointer))},dependencies:[n.bT,R.ds]}),P})()}}]);
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.