PageSourceSearch

https://www.orange.es/on/demandware.static/Sites-orange-Site/-/def…/compiledjs/myaddresComponent.js

js orange.es collected 2026-10-01 10:21:00 UTC 190,447 bytes, 2 lines download raw bytes

1/*! For license information please see myaddresComponent.js.LICENSE.txt */
2(()=>{var e={180:(e,t,a)=>{"use strict";var i=a(852),o=a(520);(()=>{const e={};return e.resourcesUrl=new URL(".","file:///home/jenkins/work/workspace/myaddressosp/geographicaddressjs-library-javascript-release/dist/geographicaladdressjs/geographicaladdressjs.esm.js").href,(0,i.p)(e)})().then((async e=>(await(0,o.g)(),(0,i.b)([["p-ba9bb4f5",[[0,"myaddress-component",{brand:[1025],origin:[1],coverage:[4],maxResults:[2,"max-results"],hiddenVertical:[4,"hiddenvertical"],environment:[513],showMap:[4,"showmap"],loadingComponent:[32],globalVivienda:[32],addressList:[32],previousPath:[32],currentPath:[32],selectedAddress:[32],modal:[32],noAlert:[32],renderiza:[32]}],[0,"guided-search",{address:[1040],showInfo:[1540,"show-info"],fromMap:[516,"from-map"],listaOrdenadaFiltros:[32],poblaciones:[32],sinNumero:[32],viasDisp:[32],portales:[32],tipoVia:[32],hideInicio:[32]}],[0,"fast-search",{brand:[1],globalVivienda:[1026,"global-vivienda"],guidedAddress:[16],previousPath:[1,"previous-path"],showTextoFormGuiadoFast:[32],gAddress:[32],googleAddressHasNumber:[32],portales:[32],prevNumber:[32],showSelects:[32],required:[32],isUsed:[32],cleanInput:[64],getIsUsed:[64],hideNoEncuentra:[64],manageAddress:[64]},[[0,"keydown","buscarConEnter"]],{gAddress:["changegAddress"]}],[0,"myaddress-map",{showMap:[4,"showmap"],direccion:[32],latitude:[32],longitude:[32],place:[32]}],[0,"address-detail",{brand:[1],googleInfo:[16],address:[16],hiddenVertical:[4,"hidden-vertical"],globalVivienda:[2,"global-vivienda"],showGoBack:[4,"show-go-back"],showGoToResults:[4,"show-go-to-results"],previousPath:[1,"previouspath"],showCrearVivienda:[32],renderiza:[32]}],[0,"auto-complete",{label:[513],name:[513],itemsAutoComplete:[1040],selected:[1537],disabled:[516],copyItems:[32],showSuggestions:[32],filterOptions:[32],clean:[64]},null,{disabled:["habilitaEscritura"],itemsAutoComplete:["showLi"]}],[0,"creacion-vivienda",{tipoPlanta:[32],vivienda:[32],codViaArvato17:[32],codViaGescal:[32],codViaArvato:[32],numero:[32],aclarador:[32],ptkm:[32],initData:[64],cleanData:[64]},null,{tipoPlanta:["cambioTipoPlanta"]}],[0,"myaddress-vivienda",{address:[16],googleInfo:[16],previousPath:[513,"previous-path"],globalVivienda:[1026,"global-vivienda"],brand:[513],hiddenVertical:[516,"hidden-vertical"],viviendas:[32],filterOptions:[32],filteredViviendas:[32],plantaSelected:[32],puertaselected:[32],bisSelected:[32],bloqueSelected:[32],portalSelected:[32],letraSelected:[32],escaleraSelected:[32],tipoPuertaSelected:[32],aclaradorSelected:[32],contenido:[32]},null,{address:["reloadAddress"],plantaSelected:["changePlanta"],puertaselected:["changePuerta"],bisSelected:["changeBis"],bloqueSelected:["changeBloque"],portalSelected:["changePortal"],letraSelected:["changeLetra"],escaleraSelected:["changeEscalera"],tipoPuertaSelected:["changeTipoPuerta"],aclaradorSelected:["changeAclarador"]}],[4,"myaddr-check",{disabled:[1540],idCheck:[513,"id-check"],label:[513]},null,{disabled:["habilita"]}],[4,"myaddr-modal",{pathImg:[1,"path-img"],showCloseIcon:[4,"show-close-icon"],ignoreBackdropClick:[4,"ignore-backdrop-click"],closeOnEscape:[4,"close-on-escape"],fullScreen:[4,"full-screen"],fullScreenCentered:[4,"full-screen-centered"],framed:[4],fullScreenFixed:[4,"full-screen-fixed"],size:[1],position:[1],overlay:[4],classeName:[1,"classe-name"],type:[1],idModal:[1,"id-modal"],show:[32],opened:[32],open:[64],close:[64]}],[0,"myaddress-addressinfo",{brand:[1],address:[16]}],[0,"myaddress-streetview",{address:[16]}],[0,"myaddr-input",{idInput:[1,"idinput"],label:[1],maxlength:[2],validator:[1],value:[2],placeholder:[1],disabled:[4],isValid:[64]}],[4,"myaddr-radio",{disabled:[4],name:[1],value:[1],label:[1],check:[4]}],[0,"myaddr-table",{filters:[16],data:[1040],maxElement:[1538,"max-element"],currentPage:[32],columnaOrdenada:[32],direccionOrdenacion:[32],showAclaracionColumn:[32],selectedFila:[32]}],[4,"myaddr-select",{label:[1537],idSelect:[1,"id-select"],disabled:[1540]},null,{disabled:["watchDisabled"]}]]]],e))))},72:()=>{},296:(e,t,a)=>{"use strict";
vendor: 5,407 bytes, line 2
2a.r(t),a.d(t,{address_detail:()=>Ce,auto_complete:()=>Pe,creacion_vivienda:()=>Ie,fast_search:()=>Re,guided_search:()=>Ve,myaddr_check:()=>Fe,myaddr_input:()=>Me,myaddr_modal:()=>He,myaddr_radio:()=>Be,myaddr_select:()=>qe,myaddr_table:()=>Ge,myaddress_addressinfo:()=>Ue,myaddress_component:()=>je,myaddress_map:()=>ze,myaddress_streetview:()=>$e,myaddress_vivienda:()=>Ze});var i=a(852);function o(e){return"function"==typeof e}function s(e){const t=e((e=>{Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const r=s((e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map(((e,t)=>`${t+1}) ${e.toString()}`)).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t}));function n(e,t){if(e){const a=e.indexOf(t);0<=a&&e.splice(a,1)}}class l{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const e of t)e.remove(this);else t.remove(this);const{initialTeardown:a}=this;if(o(a))try{a()}catch(t){e=t instanceof r?t.errors:[t]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const t of i)try{c(t)}catch(t){e=null!=e?e:[],t instanceof r?e=[...e,...t.errors]:e.push(t)}}if(e)throw new r(e)}}add(e){var t;if(e&&e!==this)if(this.closed)c(e);else{if(e instanceof l){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&n(t,e)}remove(e){const{_finalizers:t}=this;t&&n(t,e),e instanceof l&&e._removeParent(this)}}function d(e){return e instanceof l||e&&"closed"in e&&o(e.remove)&&o(e.add)&&o(e.unsubscribe)}function c(e){o(e)?e():e.unsubscribe()}l.EMPTY=(()=>{const e=new l;return e.closed=!0,e})();const h={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},u={setTimeout(e,t,...a){const{delegate:i}=u;return(null==i?void 0:i.setTimeout)?i.setTimeout(e,t,...a):setTimeout(e,t,...a)},clearTimeout(e){const{delegate:t}=u;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function m(e){u.setTimeout((()=>{const{onUnhandledError:t}=h;if(!t)throw e;t(e)}))}function p(){}const b=v("C",void 0,void 0);function v(e,t,a){return{kind:e,value:t,error:a}}let f=null;class g extends l{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,d(e)&&e.add(this)):this.destination=w}static create(e,t,a){return new S(e,t,a)}next(e){this.isStopped?E(function(e){return v("N",e,void 0)}(e),this):this._next(e)}error(e){this.isStopped?E(v("E",void 0,e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?E(b,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const y=Function.prototype.bind;function A(e,t){return y.call(e,t)}class k{constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(e){x(e)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(e){x(e)}else x(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(e){x(e)}}}class S extends g{constructor(e,t,a){let i;if(super(),o(e)||!e)i={next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=a?a:void 0};else{let t;this&&h.useDeprecatedNextContext?(t=Object.create(e),t.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&A(e.next,t),error:e.error&&A(e.error,t),complete:e.complete&&A(e.complete,t)}):i=e}this.destination=new k(i)}}function x(e){m(e)}function E(e,t){const{onStoppedNotification:a}=h;a&&u.setTimeout((()=>a(e,t)))}const w={closed:!0,next:p,error:function(e){throw e},complete:p},C="function"==typeof Symbol&&Symbol.observable||"@@observable";function P(e){return e}class _{constructor(e){e&&(this._subscribe=e)}lift(e){const t=new _;return t.source=this,t.operator=e,t}subscribe(e,t,a){const i=(s=e)&&s instanceof g||function(e){return e&&o(e.next)&&o(e.error)&&o(e.complete)}(s)&&d(s)?e:new S(e,t,a);var s;return function(e){if(h.useDeprecatedSynchronousErrorHandling){const t=!f;if(t&&(f={errorThrown:!1,error:null}),e(),t){const{errorThrown:e,error:t}=f;if(f=null,e)throw t}}else e()}((()=>{const{operator:e,source:t}=this;i.add(e?e.call(i,t):t?this._subscribe(i):this._trySubscribe(i))})),i}_trySubscribe(e){try{return this._subscribe(e)}catch(t){e.error(t)}}forEach(e,t){return new(t=O(t))(((t,a)=>{const i=new S({next:t=>{try{e(t)}catch(e){a(e),i.unsubscribe()}},error:a,complete:t});this.subscribe(i)}))}_subscribe(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)}[C](){return this}pipe(...e){return(0===(t=e).length?P:1===t.length?t[0]:function(e){return t.reduce(((e,t)=>t(e)),e)})(this);var t}toPromise(e){return new(e=O(e))(((e,t)=>{let a;this.subscribe((e=>a=e),(e=>t(e)),(()=>e(a)))}
2))}}function O(e){var t;return null!==(t=null!=e?e:h.Promise)&&void 0!==t?t:Promise}function T(e){return t=>{if(function(e){return o(null==e?void 0:e.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}function N(e,t,a,i,o){return new L(e,t,a,i,o)}_.create=e=>new _(e);class L extends g{constructor(e,t,a,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(t){e.error(t)}}:super._next,this._error=i?function(t){try{i(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:super._error,this._complete=a?function(){try{a()}catch(t){e.error(t)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}const I={now:()=>(I.delegate||Date).now(),delegate:void 0};class R extends l{constructor(e,t){super()}schedule(e,t=0){return this}}const D={setInterval(e,t,...a){const{delegate:i}=D;return(null==i?void 0:i.setInterval)?i.setInterval(e,t,...a):setInterval(e,t,...a)},clearInterval(e){const{delegate:t}=D;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};class V{constructor(e,t=V.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,a){return new this.schedulerActionCtor(this,e).schedule(a,t)}}V.now=I.now;const F=new class extends V{constructor(e,t=V.now){super(e,t),this.actions=[],this._active=!1}flush(e){const{actions:t}=this;if(this._active)return void t.push(e);let a;this._active=!0;do{if(a=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,a){for(;e=t.shift();)e.unsubscribe();throw a}}}(class extends R{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var a;if(this.closed)return this;this.state=e;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,t)),this.pending=!0,this.delay=t,this.id=null!==(a=this.id)&&void 0!==a?a:this.requestAsyncId(o,this.id,t),this}requestAsyncId(e,t,a=0){return D.setInterval(e.flush.bind(e,this),a)}recycleAsyncId(e,t,a=0){if(null!=a&&this.delay===a&&!1===this.pending)return t;null!=t&&D.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const a=this._execute(e,t);if(a)return a;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let a,i=!1;try{this.work(e)}catch(e){i=!0,a=e||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),a}unsubscribe(){if(!this.closed){const{id:e,scheduler:t}=this,{actions:a}=t;this.work=this.state=this.scheduler=null,this.pending=!1,n(a,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}});function M(e){return this instanceof M?(this.v=e,this):new M(e)}"function"==typeof SuppressedError&&SuppressedError;const H=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function B(e){return o(null==e?void 0:e.then)}function q(e){return o(e[C])}function G(e){return Symbol.asyncIterator&&o(null==e?void 0:e[Symbol.asyncIterator])}function U(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const j="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function z(e){return o(null==e?void 0:e[j])}function $(e){return function(e,t,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=a.apply(e,t||[]),s=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),r("next"),r("throw"),r("return",(function(e){return function(t){return Promise.resolve(t).then(e,d)}})),i[Symbol.asyncIterator]=function(){return this},i;function r(e,t){o[e]&&(i[e]=function(t){return new Promise((function(a,i){s.push([e,t,a,i])>1||n(e,t)}))},t&&(i[e]=t(i[e])))}function n(e,t){try{(a=o[e](t)).value instanceof M?Promise.resolve(a.value.v).then(l,d):c(s[0][2],a)}catch(e){c(s[0][3],e)}var a}function l(e){n("next",e)}function d(e){n("throw",e)}function c(e,t){e(t),s.shift(),s.length&&n(s[0][0],s[0][1])}}(this,arguments,(function*(){const t=e.getReader();try{for(;;){const{value:e,done:a}=yield M(t.read());if(a)return yield M(void 0);yield yield M(e)}}finally{t.releaseLock()}}))}function Z(e){return o(null==e?void 0:e.getReader)}function K(e){if(e instanceof _)return e;if(null!=e){if(q(e))return s=e,new _((e=>{const t=s[C]();if(o(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(H(e))return i=e,new _((e=>{for(let t=0;t<i.length&&!e.closed;t++)e.next(i[t]);e.complete()}
2));if(B(e))return a=e,new _((e=>{a.then((t=>{e.closed||(e.next(t),e.complete())}),(t=>e.error(t))).then(null,m)}));if(G(e))return W(e);if(z(e))return t=e,new _((e=>{for(const a of t)if(e.next(a),e.closed)return;e.complete()}));if(Z(e))return W($(e))}var t,a,i,s;throw U(e)}function W(e){return new _((t=>{(function(e,t){var a,i,o,s,r,n,l;return r=this,l=function*(){try{for(a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,a=e[Symbol.asyncIterator];return a?a.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],i=0;if(a)return a.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(a){t[a]=e[a]&&function(t){return new Promise((function(i,o){!function(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}(i,o,(t=e[a](t)).done,t.value)}))}}}(e);!(i=yield a.next()).done;)if(t.next(i.value),t.closed)return}catch(e){o={error:e}}finally{try{i&&!i.done&&(s=a.return)&&(yield s.call(a))}finally{if(o)throw o.error}}t.complete()},new((n=void 0)||(n=Promise))((function(e,t){function a(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof n?o:new n((function(e){e(o)}))).then(a,i)}o((l=l.apply(r,[])).next())}))})(e,t).catch((e=>t.error(e)))}))}function X(e,t,a,i=0,o=!1){const s=t.schedule((function(){a(),o?e.add(this.schedule(null,i)):this.unsubscribe()}),i);if(e.add(s),!o)return s}function Q(e,t=0){return T(((a,i)=>{a.subscribe(N(i,(a=>X(i,e,(()=>i.next(a)),t)),(()=>X(i,e,(()=>i.complete()),t)),(a=>X(i,e,(()=>i.error(a)),t))))}))}function J(e,t=0){return T(((a,i)=>{i.add(e.schedule((()=>a.subscribe(i)),t))}))}function Y(e,t){if(!e)throw new Error("Iterable cannot be null");return new _((a=>{X(a,t,(()=>{const i=e[Symbol.asyncIterator]();X(a,t,(()=>{i.next().then((e=>{e.done?a.complete():a.next(e.value)}))}),0,!0)}))}))}function ee(...e){return t=e,a=function(e){return(t=(a=e)[a.length-1])&&o(t.schedule)?e.pop():void 0;var t,a}(e),a?function(e,t){if(null!=e){if(q(e))return function(e,t){return K(e).pipe(J(t),Q(t))}(e,t);if(H(e))return function(e,t){return new _((a=>{let i=0;return t.schedule((function(){i===e.length?a.complete():(a.next(e[i++]),a.closed||this.schedule())}))}))}(e,t);if(B(e))return function(e,t){return K(e).pipe(J(t),Q(t))}(e,t);if(G(e))return Y(e,t);if(z(e))return function(e,t){return new _((a=>{let i;return X(a,t,(()=>{i=e[j](),X(a,t,(()=>{let e,t;try{({value:e,done:t}=i.next())}catch(e){return void a.error(e)}t?a.complete():a.next(e)}),0,!0)})),()=>o(null==i?void 0:i.return)&&i.return()}))}(e,t);if(Z(e))return function(e,t){return Y($(e),t)}(e,t)}throw U(e)}(t,a):K(t);var t,a}function te(e,t){const a=o(e)?e:()=>e,i=e=>e.error(a());return new _(t?e=>t.schedule(i,0,e):i)}const ae=s((e=>function(t=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}));function ie(e,t){const{first:a,each:i,with:o=oe,scheduler:s=(null!=t?t:F),meta:r=null}=(n=e)instanceof Date&&!isNaN(n)?{first:e}:"number"==typeof e?{each:e}:e;var n;if(null==a&&null==i)throw new TypeError("No timeout provided.");return T(((e,t)=>{let n,l,d=null,c=0;const h=e=>{l=X(t,s,(()=>{try{n.unsubscribe(),K(o({meta:r,lastValue:d,seen:c})).subscribe(t)}catch(e){t.error(e)}}),e)};n=e.subscribe(N(t,(e=>{null==l||l.unsubscribe(),c++,t.next(d=e),i>0&&h(i)}),void 0,void 0,(()=>{(null==l?void 0:l.closed)||null==l||l.unsubscribe(),d=null}))),!c&&h(null!=a?"number"==typeof a?a:+a-s.now():i)}))}function oe(e){throw new ae(e)}function se(e){return T(((t,a)=>{let i,o=null,s=!1;o=t.subscribe(N(a,void 0,void 0,(r=>{i=K(e(r,se(e)(t))),o?(o.unsubscribe(),o=null,i.subscribe(a)):s=!0}))),s&&(o.unsubscribe(),o=null,i.subscribe(a))}))}function re(e,t=F){return T(((a,i)=>{let o=null,s=null,r=null;const n=()=>
2{if(o){o.unsubscribe(),o=null;const e=s;s=null,i.next(e)}};function l(){const a=r+e,s=t.now();if(s<a)return o=this.schedule(void 0,a-s),void i.add(o);n()}a.subscribe(N(i,(a=>{s=a,r=t.now(),o||(o=t.schedule(l,e),i.add(o))}),(()=>{n(),i.complete()}),void 0,(()=>{s=o=null})))}))}function ne(e,t){return T(((a,i)=>{let o=null,s=0,r=!1;const n=()=>r&&!o&&i.complete();a.subscribe(N(i,(a=>{null==o||o.unsubscribe();let r=0;const l=s++;K(e(a,l)).subscribe(o=N(i,(e=>i.next(t?t(a,e,l,r++):e)),(()=>{o=null,n()})))}),(()=>{r=!0,n()})))}))}function le(e,t={}){const{selector:a}=t,i=function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(a[i[o]]=e[i[o]])}return a}(t,["selector"]);return new _((t=>{const o=new AbortController,{signal:s}=o;let r=!0;const{signal:n}=i;if(n)if(n.aborted)o.abort();else{const e=()=>{s.aborted||o.abort()};n.addEventListener("abort",e),t.add((()=>n.removeEventListener("abort",e)))}const l=Object.assign(Object.assign({},i),{signal:s}),d=e=>{r=!1,t.error(e)};return fetch(e,l).then((e=>{a?K(a(e)).subscribe(N(t,void 0,(()=>{r=!1,t.complete()}),d)):(r=!1,t.next(e),t.complete())})).catch(d),()=>{r&&o.abort()}}))}class de{}function ce(e){return e.nombreMun!=e.nombrePob?`${ue(e.nombrePob)} (${ue(e.nombreMun)})`:ue(e.nombreMun)}function he(e){const t=e.poblacion!=e.municipio?`${ue(e.poblacion)} (${ue(e.municipio)})`:ue(e.municipio),a=e.numero&&999!==e.numero?`, ${e.numero}`:"";return`${e.tipoVia?ue(e.tipoVia)+" ":""}${ue(e.via)}${a}, ${t}, ${e.codPostal}`}function ue(e){return e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()}))}function me(e){return e.replace("filter","")}function pe(e){if(e&&"SELECT"===e.tagName)return e}function be(e){if(e instanceof HTMLInputElement)return e}de.timeoutCustom=3e4;const ve=[{id:"01",name:"Álava",formattedName:"Araba/Alava"},{id:"01",name:"*Araba",formattedName:"Araba/Alava"},{id:"02",name:"Albacete",formattedName:"Albacete"},{id:"03",name:"Alicante",formattedName:"Alicante/Alacant"},{id:"03",name:"*Alacant",formattedName:"Alicante/Alacant"},{id:"04",name:"Almería",formattedName:"Almeria"},{id:"05",name:"Ávila",formattedName:"Avila"},{id:"06",name:"Badajoz",formattedName:"Badajoz"},{id:"07",name:"Baleares (Islas)",formattedName:"Illes Balears"},{id:"07",name:"*Balears (Illes)",formattedName:"Illes Balears"},{id:"08",name:"Barcelona",formattedName:"Barcelona"},{id:"09",name:"Burgos",formattedName:"Burgos"},{id:"10",name:"Cáceres",formattedName:"Caceres"},{id:"11",name:"Cádiz",formattedName:"Cadiz"},{id:"12",name:"Castellón",formattedName:"Castellon/Castello"},{id:"12",name:"*Castelló",formattedName:"Castellon/Castello"},{id:"13",name:"Ciudad Real",formattedName:"Ciudad Real"},{id:"14",name:"Córdoba",formattedName:"Cordoba"},{id:"15",name:"A Coruña",formattedName:"A Coruña"},{id:"16",name:"Cuenca",formattedName:"Cuenca"},{id:"17",name:"Girona",formattedName:"Girona"},{id:"18",name:"Granada",formattedName:"Granada"},{id:"19",name:"Guadalajara",formattedName:"Guadalajara"},{id:"20",name:"Guipúzcoa",formattedName:"Gipuzkoa"},{id:"20",name:"*Gipuzkoa",formattedName:"Gipuzkoa"},{id:"21",name:"Huelva",formattedName:"Huelva"},{id:"22",name:"Huesca",formattedName:"Huesca"},{id:"23",name:"Jaén",formattedName:"Jaen"},{id:"24",name:"León",formattedName:"Leon"},{id:"25",name:"Lleida",formattedName:"Lleida"},{id:"26",name:"Rioja, La",formattedName:"La Rioja"},{id:"27",name:"Lugo",formattedName:"Lugo"},{id:"28",name:"Madrid",formattedName:"Madrid"},{id:"29",name:"Málaga",formattedName:"Malaga"},{id:"30",name:"Murcia",formattedName:"Murcia"},{id:"31",name:"Navarra",formattedName:"Navarra"},{id:"32",name:"Orense",formattedName:"Ourense"},{id:"32",name:"*Ourense",formattedName:"Ourense"},{id:"33",name:"Asturias",formattedName:"Asturias"},{id:"33",name:"Asturies",formattedName:"Asturias"},{id:"34",name:"Palencia",formattedName:"Palencia"},{id:"35",name:"Las Palmas",formattedName:"Las Palmas"},{id:"36",name:"Pontevedra",formattedName:"Pontevedra"},{id:"37",name:"Salamanca",formattedName:"Salamanca"},{id:"38",name:"Santa Cruz de Tenerife",formattedName:"Santa Cruz de Tenerife"}
2,{id:"39",name:"Cantabria",formattedName:"Cantabria"},{id:"40",name:"Segovia",formattedName:"Segovia"},{id:"41",name:"Sevilla",formattedName:"Sevilla"},{id:"42",name:"Soria",formattedName:"Soria"},{id:"43",name:"Tarragona",formattedName:"Tarragona"},{id:"44",name:"Teruel",formattedName:"Teruel"},{id:"45",name:"Toledo",formattedName:"Toledo"},{id:"46",name:"Valencia/València",formattedName:"Valencia"},{id:"47",name:"Valladolid",formattedName:"Valladolid"},{id:"48",name:"Vizcaya",formattedName:"Bizkaia"},{id:"48",name:"*Bizkaia",formattedName:"Bizkaia"},{id:"49",name:"Zamora",formattedName:"Zamora"},{id:"50",name:"Zaragoza",formattedName:"Zaragoza"},{id:"51",name:"Ceuta",formattedName:"Ceuta"},{id:"52",name:"Melilla",formattedName:"Melilla"}];class fe{constructor(e,t,a,i,o){this.cobertura=null;const s=this.setOspGeographicAddress(e,t),r=this.setOspGeographicAddressTR(e);this.googleInfo=a,this.cobertura=i,this.ospGeographicAddress=[s],this.ospGeographicAddressTR=r,o&&this.ospGeographicAddress[0].externalIdentifier.push({name:"gescal37",value:e.gescal37})}setOspGeographicAddressTR(e){return{bis_TR:(null==e?void 0:e.bis_TR)||"",bloque_TR:(null==e?void 0:e.bloque_TR)||"",puerta_TR:(null==e?void 0:e.puerta_TR)||"",letra_TR:(null==e?void 0:e.letra_TR)||"",escalera_TR:(null==e?void 0:e.escalera_TR)||"",planta_TR:(null==e?void 0:e.planta_TR)||"",mano1_TR:(null==e?void 0:e.mano1_TR)||"",mano2_TR:(null==e?void 0:e.mano2_TR)||""}}setOspGeographicAddress(e,t){const a=this.setGeographicSubAddress(e);return{type:"UrbanPropertyAddress",status:"validated",id:null,ospDwelingId:(null==e?void 0:e.dwellingId)||"null",externalIdentifier:[{name:"ospAddressId",value:(null==t?void 0:t.codViaArvato17)||"null"},{name:"ospINECityCode",value:this.ospIneCityCode(t)},{name:"ospINESingularEntity",value:(null==t?void 0:t.codPob.toString().substring(0,9))||"null"},{name:"ospINEStreetCode",value:(null==t?void 0:t.codViaINE)||"null"},{name:"ospINEDistrict",value:(null==t?void 0:t.dstCensal)||"null"},{name:"numViviendas",value:this.numViviendas(t)},{name:"codViaC",value:(null==t?void 0:t.codViaC)||"null"}],href:null,streetNr:(null==t?void 0:t.numero.toString())||null,streetNrSuffix:(null==e?void 0:e.bis)||null,streetNrLast:null,streetNrLastSuffix:null,streetName:(null==t?void 0:t.via)||"null",streetType:(null==t?void 0:t.tipoVia)||"null",streetSuffix:null,postCode:(null==t?void 0:t.codPostal.toString())||"null",locality:null,city:(null==t?void 0:t.municipio)||"null",stateOrProvince:this.stateOrProvince(t),country:"ESP",geographicSubAddress:[a]}}stateOrProvince(e){return e?e.provincia?function(e){const t=ve.find((t=>0===t.name.localeCompare(e,"es")));return t?decodeURIComponent(t.formattedName):e}(e.provincia):null:"null"}numViviendas(e){return e?null!==e.numViviendas&&e.numViviendas>=0?e.numViviendas.toString():null:"null"}ospIneCityCode(e){return e?e.codMun?4==e.codMun.toString().length?"0"+e.codMun.toString():e.codMun.toString():null:"null"}setGeographicSubAddress(e){return{type:"GeographicSubAddress",status:"validated",id:null,name:null,href:null,subUnitType:(null==e?void 0:e.bloque)||null,subUnitNumber:(null==e?void 0:e.bloque)||null,levelType:null,buildingName:(null==e?void 0:e.puerta)||null,buildingNameSuffix:(null==e?void 0:e.letra)||null,stairCase:(null==e?void 0:e.escalera)||null,levelNumber:(null==e?void 0:e.planta)||null,doorType:(null==e?void 0:e.mano1)?null==e?void 0:e.mano1.padEnd(4," "):null,door:(null==e?void 0:e.mano2)?null==e?void 0:e.mano2.padEnd(4," "):null}}}var ge=function e(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var i,o,s;if(Array.isArray(t)){if((i=t.length)!=a.length)return!1;for(o=i;0!=o--;)if(!e(t[o],a[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((i=(s=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(a,s[o]))return!1;for(o=i;0!=o--;){var r=s[o];if(!e(t[r],a[r]))return!1}return!0}return t!=t&&a!=a};const ye="__googleMapsScriptId";var Ae,ke;(ke=Ae||(Ae={}))[ke.INITIALIZED=0]="INITIALIZED",ke[ke.LOADING=1]="LOADING",ke[ke.SUCCESS=2]="SUCCESS",ke[ke.FAILURE=3]="FAILURE";class Se{constructor({apiKey:e,authReferrerPolicy:t,channel:a,client:i,id:o=ye,language:s,libraries:r=[],mapIds:n,nonce:l,region:d,retries:c=3,url:h="https://maps.googleapis.com/ma
2ps/api/js",version:u}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=a,this.client=i,this.id=o||ye,this.language=s,this.libraries=r,this.mapIds=n,this.nonce=l,this.region=d,this.retries=c,this.url=h,this.version=u,Se.instance){if(!ge(this.options,Se.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Se.instance.options)}`);return Se.instance}Se.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?Ae.FAILURE:this.done?Ae.SUCCESS:this.loading?Ae.LOADING:Ae.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`&region=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((e,t)=>{this.loadCallback((a=>{a?t(a.error):e(window.google)}))}))}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id))return void this.callback();const a={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(a).forEach((e=>!a[e]&&delete a[e])),(null===(t=null===(e=null===window||void 0===window?void 0:window.google)||void 0===e?void 0:e.maps)||void 0===t?void 0:t.importLibrary)||(e=>{let t,a,i,o="The Google Maps JavaScript API",s="google",r="importLibrary",n="__ib__",l=document,d=window;d=d[s]||(d[s]={});const c=d.maps||(d.maps={}),h=new Set,u=new URLSearchParams,m=()=>t||(t=new Promise(((r,d)=>{return m=this,b=function*(){var m;for(i in yield a=l.createElement("script"),a.id=this.id,u.set("libraries",[...h]+""),e)u.set(i.replace(/[A-Z]/g,(e=>"_"+e[0].toLowerCase())),e[i]);u.set("callback",s+".maps."+n),a.src=this.url+"?"+u,c[n]=r,a.onerror=()=>t=d(Error(o+" could not load.")),a.nonce=this.nonce||(null===(m=l.querySelector("script[nonce]"))||void 0===m?void 0:m.nonce)||"",l.head.append(a)},new((p=void 0)||(p=Promise))((function(e,t){function a(e){try{o(b.next(e))}catch(e){t(e)}}function i(e){try{o(b.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof p?o:new p((function(e){e(o)}))).then(a,i)}o((b=b.apply(m,[])).next())}));var m,p,b})));c[r]?console.warn(o+" only loads once. Ignoring:",e):c[r]=(e,...t)=>h.add(e)&&m().then((()=>c[r](e,...t)))})(a);const i=this.libraries.map((e=>this.importLibrary(e)));i.length||i.push(this.importLibrary("core")),Promise.all(i).then((()=>this.callback()),(e=>{const t=new ErrorEvent("error",{error:e});this.loadErrorCallback(t)}))}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const e=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),e)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((e=>{e(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setScript())}}}const xe=[{campo:"BIS",valor:"B",traduccion:"Bis"},{campo:"BIS",valor:"C",traduccion:"Cuadruplicado"},{campo:"BIS",valor:"D",traduccion:"Duplicado"},{campo:"BIS",valor:"K",traduccion:"Kilómetro"},{campo:"BIS",valor:"Q",traduccion:"Quintuplicado"},{campo:"BIS",valor:"T",traduccion:"Triplicado"},{campo:"BIS",valor:"X",traduccion:"Kilómetro margen derecho"},{campo:"BIS",valor:"Y",traduccion:"Kilómetro margen izquierdo"},{campo:"BLOQUE",valor:"A",traduccion:"Almacén"},{campo:"BLOQUE",valor:"B",traduccion:"Bloque"},{campo:"BLOQUE",valor:"C",traduccion:"Casa"},{campo:"BLOQUE",valor:"E",traduccion:"Edificio"},{campo:"BLOQUE",valor:"F",traduccion:"Estación"},{campo:"BLOQUE",valor:"G",traduccion:"Garaje"},{campo:"BLOQUE",valor:"H",traduccion:"Chalet"},{campo:"BLOQUE",valor:"L",traduccion:"Pabellón"},{campo:"BLOQUE",valor:"N",traduccion:"Nave"},{campo:"BLOQUE",valor:"P",traduccion:"Parcela"},{campo:"BLOQUE",valor:"R",traduccion:"Grupo"},{campo:"BLOQUE",valor:"S",traduccion:"Sector"},{campo:"BLOQUE",valor:"T",traduccion:"Torre"},{campo:"BLOQUE",valor:"Z",traduccion:"Zona"},{campo:"ESCALERA",valor:"V",traduccion:"Izquierda"},{campo:"ESCALERA",valor:"W",traduccion:"Derecha"},{campo:"ESCALERA",valor:"X",traduccion:"Centro"},{campo:"ESCALERA",valor:"Y",traduccion:"Interior"},{campo:"ESCALERA",valor:"Z",traduccion:"Exterior"},{campo:"ESCALERA",valor:"A",traduccion:"A"},{campo:"ESCALERA",valor:"B",traduccion:"B"},{campo:"ESCALERA",valor:"C",traduccion:"C"},{campo:"ESCALERA",valor:"D",traduccion:"D"},{campo:"ESCALERA",valor:"E",traduccion:"E"},{campo:"ESCALERA",valor:"F",traduccion:"F"},{campo:"ESCALERA",valor:"G",traduccion:"G"},{campo:"ESCALERA",valor:"H",traduccion:"H"},{campo:"ESCALERA",valor:"I",traduccion:"I"},{campo:"ESCALERA",valor:"1",traduccion:"1"},{campo:"ESCALERA",valor:"2",traduccion:"2"},{campo:"ESCALERA",valor:"3",traduccion:"3"},{campo:"ESCALERA",valor:"4",traduccion:"4"},{campo:"ESCALERA",valor:"5",traduccion:"5"},{campo:"ESCALERA",valor:"6",traduccion:"6"},{campo:"ESCALERA",valor:"7",traduccion:"7"},{campo:"ESCALERA",valor:"8",traduccion:"8"},{campo:"ESCALERA",valor:"9",traduccion:"9"},{campo:"ESCALERA",valor:"J",traduccion:"J"},{campo:"ESCALERA",valor:"K",traduccion:"K"},{campo:"ESCALERA",valor:"L",traduccion:"L"},{campo:"ESCALERA",valor:"M",traduccion:"M"},{campo:"ESCALERA",valor:"N",traduccion:"N"},{campo:"ESCALERA",valor:"O",traduccion:"O"},{campo:"ESCALERA",valor:"P",traduccion:"P"},{campo:"ESCALERA",valor:"Q",traduccion:"Q"},{campo:"ESCALERA",valor:"R",traduccion:"R"},{campo:"ESCALERA",valor:"S",traduccion:"S"},{campo:"ESCALERA",valor:"T",traduccion:"T"},{campo:"PLANTA",valor:"AL",traduccion:"Altillo"},{campo:"PLANTA",valor:"AM",traduccion:"Almacén"},{campo:"PLANTA",valor:"AS",traduccion:"Ascensor"},{campo:"PLANTA",valor:"AT",traduccion:"Ático"},{campo:"PLANTA",valor:"BA",traduccion:"Bajo"},{campo:"PLANTA",valor:"BU",traduccion:"Bungalow"},{campo:"PLANTA",valor:"CH",traduccion:"Chalet"},{campo:"PLANTA",valor:"DU",traduccion:"Dúplex"},{campo:"PLANTA",valor:"EN",traduccion:"Entresuelo"},{campo:"PLANTA",valor:"ET",traduccion:"Entreplanta"},{campo:"PLANTA",valor:"GA",traduccion:"Garaje"},{campo:"PLANTA",valor:"KI",traduccion:"Kiosco"},{campo:"PLANTA",valor:"MO",traduccion:"Módulo"},{campo:"PLANTA",valor:"LO",traduccion:"Local"},{campo:"PLANTA",valor:"NA",traduccion:"Nave"},{campo:"PLANTA",valor:"OF",traduccion:"Oficina"},{campo:"PLANTA",valor:"PR",traduccion:"Principal"},{campo:"PLANTA",valor:"PT",traduccion:"Puesto"},{campo:"PLANTA",valor:"SA",traduccion:"Sobreático"},{campo:"PLANTA",valor:"SE",traduccion:"Semisótano"},{campo:"PLANTA",valor:"SO",traduccion:"Sótano"},{campo:"PLANTA",valor:"SS",traduccion:"Semisótano"},{campo:"PLANTA",valor:"S1",traduccion:"Sótano 1"},{campo:"PLANTA",valor:"S2",traduccion:"Sótano 2"},{campo:"PLANTA",valor:"S3",traduccion:"Sótano 3"},{campo:"PLANTA",valor:"S4",traduccion:"Sótano 4"},{campo:"PLANTA",valor:"S5",traduccion:"Sótano 5"},{campo:"PLANTA",valor:"S6",traduccion:"Sótano 6"},{campo:"PLANTA",valor:"S7",traduccion:"Sótano 7"},{campo:"PLANTA",valor:"S8",traduccion:"Sótano 8"},{campo:"PLANTA",valor:"S9",traduccion:"Sótano 9"},{campo:"PLANTA",valor:"TE",traduccion:"Terraza"},{campo:"PLANTA",valor:"TI",traduccion:"Tienda"},{campo:"PLANTA",valor:"X1",traduccion:"Semisótano 1"},{campo:"PLANTA",valor:"X2",traduccion:"Semisótano 2"},{campo:"PLANTA",valor:"X3",traduccion:"Semisótano 3"},{campo:"PLANTA",valor:"X4",traduccion:"Semisótano 4"},{campo:"PLANTA",valor:"X5",traduccion:"Semisótano 5"},{campo:"PLANTA",valor:"X6",traduccion:"Semisótano 6"},{campo:"PLANTA",valor:"X7",traduccion:"Semisótano 7"},{campo:"PLANTA",valor:"X8",traduccion:"Semisótano 8"},{campo:"PLANTA",valor:"X9",traduccion:"Semisótano 9"},{campo:"MANO1",valor:"APTO",traduccion:"Apartamento"},{campo:"MANO1",valor:"CTRO",traduccion:"Centro"},{campo:"MANO1",valor:"DCHA",traduccion:"Derecha"},{campo:"MANO1",valor:"DPCH",traduccion:"Despacho"},{campo:"MANO1",valor:"EXT ",traduccion:"Exterior"},{campo:"MANO1",valor:"HABI",traduccion:"Habitación"},{campo:"MANO1",valor:"INT ",traduccion:"Interior"},{campo:"MANO1",valor:"IZDA",traduccion:"Izquierda"},{campo:"MANO1",valor:"LOCL",traduccion:"Local"},{campo:"MANO1",valor:"OFIC",traduccion:"Oficina"},{campo:"MANO1",valor:"PTO ",traduccion:"Puesto"},{campo:"MANO1",valor:"TDA ",traduccion:"Tienda"},{campo:"FINCA",valor:"O",traduccion:"Portal"},{campo:"FINCA",valor:"U",traduccion:"Puerta"}
2],Ee=new class{constructor(){this.coverage=!1,this.sharedData={numResultados:3},this.canalConfig={cobertura_movil:!1,marca_blanca:!1,ver_street_view:!1,ver_codigos:!1,ver_catastro:!1,crear_vivienda:!1,crear_vivienda_movistar:!1,longitud_latitud:!1,formulario_alternativo:"COMPLETO",campo_crear_vivienda:"null",texto_form_alt_guiado_fast:"",tiempo_espera_form_alt_guiado_fast:"",num_caracteres_form_alt_guiado_fast:""},this.loader=new Se({apiKey:"AIzaSyD7kzNEvIn1Ut3eOrxHE18k0KGXLgDU7Vs"}),this.consultaGuiada="/consulta_guiada"}setCobertura(e){this.coverage=e}setSharedData(e){this.sharedData.numResultados=e}getCanalConfig(e){let t=new URL(this.apiUrl+"/parametros_canal");this.canal=e;const a={canal:e,grupo:"componente"};return Object.keys(a).forEach((e=>t.searchParams.append(e,a[e]))),le(t.toString(),{method:"GET",headers:this.headers,selector:e=>e.json()}).pipe(function(e){const t=o(e)?{next:e,error:void 0,complete:void 0}:e;return t?T(((e,a)=>{var i;null===(i=t.subscribe)||void 0===i||i.call(t);let o=!0;e.subscribe(N(a,(e=>{var i;null===(i=t.next)||void 0===i||i.call(t,e),a.next(e)}),(()=>{var e;o=!1,null===(e=t.complete)||void 0===e||e.call(t),a.complete()}),(e=>{var i;o=!1,null===(i=t.error)||void 0===i||i.call(t,e),a.error(e)}),(()=>{var e,a;o&&(null===(e=t.unsubscribe)||void 0===e||e.call(t)),null===(a=t.finalize)||void 0===a||a.call(t)})))})):P}((t=>{this.canalConfig.campo_crear_vivienda=t.data.campo_crear_vivienda,this.canalConfig.canal=e,this.canalConfig.cobertura_movil=t.data.cobertura_movil,this.canalConfig.crear_vivienda=t.data.crear_vivienda,this.canalConfig.crear_vivienda_movistar=t.data.crear_vivienda_movistar,this.canalConfig.formulario_alternativo=t.data.formulario_alternativo,this.canalConfig.longitud_latitud=t.data.longitud_latitud,this.canalConfig.marca=t.data.marca,this.canalConfig.marca_blanca=t.data.marca_blanca,this.canalConfig.num_caracteres_form_alt_guiado_fast=t.data.num_caracteres_form_alt_guiado_fast,this.canalConfig.solicitar_telefono_cobertura=t.data.solicitar_telefono_cobertura,this.canalConfig.texto_form_alt_guiado_fast=t.data.texto_form_alt_guiado_fast,this.canalConfig.ver_catastro=t.data.ver_catastro,this.canalConfig.ver_codigos=t.data.ver_codigos,this.canalConfig.ver_street_view=t.data.ver_street_view,this.canalConfig.tiempo_espera_form_alt_guiado_fast=t.data.tiempo_espera_form_alt_guiado_fast})))}consultarDireccion(e){let t=new URL(this.apiUrl+"/busqueda_google");const a={provincia:e.administrative_area_level_2?e.administrative_area_level_2:e.administrative_area_level_1,poblacion:e.locality?e.locality:"",nombreVia:e.route,numero:e.street_number?e.street_number:1,numResultados:"3",origin:this.canal};return Object.keys(a).forEach((e=>t.searchParams.append(e,a[e]))),le(t.toString(),{method:"GET",headers:this.headers,selector:e=>e.json()}).pipe(ie(de.timeoutCustom),se((e=>te((()=>e)))),ne((t=>ee(0==t.errorCode?this.addProvinciaAndLatLong(t.vias,e):{noAlert:!1,errorMessage:t.errorDesc}))))}addProvinciaAndLatLong(e,t){const a=[];return e.forEach((e=>{a.push({score:0,codVia:e.codVia,codMun:e.codMun,codPob:e.codPob,provincia:t.administrative_area_level_2?t.administrative_area_level_2:t.administrative_area_level_1,municipio:e.municipio,poblacion:e.poblacion,tipoVia:e.tipoVia,via:e.via,numero:e.numero,numeroAlternativo:e.numeroAlternativo,numValid:!1,codPostal:e.codPostal,codViaArvato:e.codViaArvato,codViaGescal:e.codViaGescal,codViaArvato17:e.codViaArvato17,codViaGescal17:e.codViaGescal17,codViaINE:e.codViaINE,codViaC:e.codViaC,refCatastral:e.refCatastral,codCatastro:e.codCatastro,numInmuebles:e.numInmuebles,numViviendas:e.numViviendas,superficie:e.superficie,errorCode:0,latitud:e.coordX,longitud:e.coordY,numLocales:e.numLocales})})),a}getPortales(e,t){let a=new URL(this.apiUrl+"/consulta_portales_gescal");const i={codigoGescal:e,codigoVia:t,origin:this.canal};
2return Object.keys(i).forEach((e=>a.searchParams.append(e,i[e]))),le(a.toString(),{method:"GET",headers:this.headers,selector:e=>e.json()}).pipe(ie(de.timeoutCustom))}getAddress(e,t,a,i){let o=new URL(this.apiUrl+"/consulta_guiada");const s={codigoPob:e,codigoVia:t,numero:a,origin:this.canal};return Object.keys(s).forEach((e=>o.searchParams.append(e,s[e]))),le(o.toString(),{method:"GET",headers:this.headers,selector:e=>e.json()}).pipe(ie(de.timeoutCustom),ne((e=>ee(this.mapToModel(e,i)))))}mapToModel(e,t){var a;let i=this.setProvincia(t);if(e.vias.length>0)return{score:this.setDataOrNullNumber(e.vias[0].score),codVia:this.setDataOrNullNumber(e.vias[0].codVia),codMun:this.setDataOrNullNumber(e.vias[0].codMun),codPob:this.setDataOrNullNumber(e.vias[0].codPob),provincia:i,municipio:this.setDataOrNullString(e.vias[0].municipio),poblacion:this.setDataOrNullString(e.vias[0].poblacion),tipoVia:this.setDataOrNullString(e.vias[0].tipoVia),via:this.setDataOrNullString(e.vias[0].via),numero:this.setDataOrNullNumber(e.vias[0].numero),numeroAlternativo:this.setDataOrNullNumber(e.vias[0].numeroAlternativo),numValid:!0,codPostal:this.setDataOrNullString(e.vias[0].codPostal),codViaArvato:this.setDataOrNullString(e.vias[0].codViaArvato),codViaGescal:this.setDataOrNullString(e.vias[0].codViaGescal),codViaArvato17:this.setDataOrNullString(e.vias[0].codViaArvato17),codViaGescal17:this.setDataOrNullString(e.vias[0].codViaGescal17),codViaINE:this.setDataOrNullString(e.vias[0].codViaINE),codViaC:this.setDataOrNullString(e.vias[0].codViaC),refCatastral:this.setDataOrNullNumber(e.vias[0].refCatastral),codCatastro:this.setDataOrNullNumber(e.vias[0].codCatastro),numInmuebles:this.setDataOrNullNumber(e.vias[0].numInmuebles),numViviendas:this.setDataOrNullNumber(e.vias[0].numViviendas),superficie:this.setDataOrNullNumber(e.vias[0].superficie),latitud:this.setDataOrNullNumber(e.vias[0].coordY),longitud:this.setDataOrNullNumber(e.vias[0].coordX),urlCatastro:this.setDataOrNullString(e.vias[0].urlCatastro),dstCensal:this.setDataOrNullString(e.vias[0].dstCensal),numLocales:this.setDataOrNullNumber(e.vias[0].numLocales),variosPortales:null!==(a=e.vias[0].variosPortalesEnElNumero)&&void 0!==a&&a,errorCode:e.errorCode}}setDataOrNullNumber(e){return null!=e?e:null}setDataOrNullString(e){return null!=e?e:null}setProvincia(e){let t=null;return e&&(t=e.normalize("NFD").replace(/[\u0300-\u0301]/g,"")),t}consultarViviendas(e,t){let a=new URL(this.apiUrl+"/consulta_vertical");const i={codigoArvato:e,numero:t,origin:this.canal};
2return Object.keys(i).forEach((e=>a.searchParams.append(e,i[e]))),a.search=a.search.replace(/\+/g,"%20"),le(a.toString(),{method:"GET",headers:this.headers,selector:e=>e.json()}).pipe(ie(de.timeoutCustom),ne((e=>ee(e.viviendas))))}consultaPoblacion(e,t){let a=new URL(this.apiUrl+this.consultaGuiada);const i={provincia:e,poblacion:t,origin:this.canal};return Object.keys(i).forEach((e=>a.searchParams.append(e,i[e]))),a.search=a.search.replace(/\+/g,"%20"),le(a.toString(),{method:"GET",headers:this.headers,selector:e=>e.json()}).pipe(ie(de.timeoutCustom),re(500),ne((e=>{let t=[];return e.poblaciones.forEach((e=>{const a={value:e.codigoPob.toString(),name:ce(e)};t.push(a)})),ee(t)})))}consultaVia(e,t,a){let i=new URL(this.apiUrl+this.consultaGuiada);const o={codigoPob:e,tipoVia:t,nombreVia:a,origin:this.canal};return Object.keys(o).forEach((e=>i.searchParams.append(e,o[e]))),i.search=i.search.replace(/\+/g,"%20"),le(i.toString(),{method:"GET",headers:this.headers,selector:e=>e.json()}).pipe(ie(de.timeoutCustom),re(500),ne((e=>{let t=[];return e.vias.forEach((e=>{const a={value:e.codigoVia.toString(),name:ue(e.tipoVia+" "+e.via),tipoViaG:e.tipoViaG,tipoVia:e.tipoVia};t.push(a)})),ee(t)})))}consultaPortalesGescal(e,t){let a=new URL(this.apiUrl+"/consulta_portales_gescal");const i={codigoGescal:e,codigoVia:t,origin:this.canal};
2return Object.keys(i).forEach((e=>a.searchParams.append(e,i[e]))),a.search=a.search.replace(/\+/g,"%20"),le(a.toString(),{method:"GET",headers:this.headers,selector:e=>e.json()}).pipe(ie(de.timeoutCustom),ne((e=>{let t=[];return e.listaPortales.forEach((e=>{const a={value:e.toString(),name:e.toString()};t.push(a)})),ee(t)})))}consultaPortalesArvato(e,t,a,i){let o=new URL(this.apiUrl+this.consultaGuiada);const s={codigoPob:e,codigoVia:t,numero:a,origin:this.canal};return Object.keys(s).forEach((e=>o.searchParams.append(e,s[e]))),o.search=o.search.replace(/\+/g,"%20"),le(o.toString(),{method:"GET",headers:this.headers,selector:e=>e.json()}).pipe(ie(de.timeoutCustom),ne((e=>ee(this.mapToModel(e,i)))))}setApiUrl(e){switch(e){case"PRE":this.apiUrl="https://myaddress.int.si.orange.es/myaddressBack";break;case"PRO":this.apiUrl="https://myaddress.orange.es/myaddressBack";break;case"ARSYS":this.apiUrl="https://10.148.40.166:12091/myaddressBack";break;case"LOCAL":this.apiUrl="http://localhost:9000/myaddressBack";break;default:this.apiUrl=""}}getCodigoPoblacion(e,t){const a=this.apiUrl.replace("myaddressBack","myaddressJZZREST");let i=new URL(a+"/busqueda_poblacion");const o={provincia:e,poblacion:t};return Object.keys(o).forEach((e=>i.searchParams.append(e,o[e]))),le(i.toString(),{method:"GET",headers:this.headers,selector:e=>e.json()}).pipe(ie(de.timeoutCustom),se((e=>te(e))),ne((e=>ee(e.poblaciones))))}setViviendaResponse(e,t,a,i,o){return new fe(e,t,a,i,o)}crearVivienda(e,t,a,i,o){const s={gescal:this.setGescal17(e,a),arvato:this.setArvato17(t,a),bis:this.setBis(i.bis),bloque:this.setBloque(i.tipoBloque,i.bloque),portal:this.setPortal(i.portal),letra:this.setLetra(i.letra),escalera:this.setEscalera(i.escalera,i.escaleraExt),planta:this.setPlanta(i.tipoPlanta,i.tipo,i.numero),mano1:this.setMano1(i.tipoPuerta),mano2:this.setMano2(i.puerta),origen:o};let r=new URL(this.apiUrl+"/crear_vivienda_origen");return Object.keys(s).forEach((e=>r.searchParams.append(e,s[e]))),r.search=r.search.replace(/\+/g,"%20"),le(r.toString(),{method:"GET",headers:this.headers,selector:e=>e.json()}).pipe((n=e=>{const t={columnForOrder:"",arvato17:s.arvato,gescal37:e.gescal37,dwellingId:e.dwellingId,bis:s.bis,bloque:s.bloque,puerta:s.mano2,letra:s.letra,escalera:s.escalera,planta:s.planta,mano1:s.mano1,mano2:s.mano2,aclarador:"",huella:"",bis_TR:"",bloque_TR:"",puerta_TR:"",letra_TR:"",escalera_TR:"",planta_TR:"",mano1_TR:"",mano2_TR:"",aclarador_TR:""};return this.traducirVivienda(t),t},T(((e,t)=>{let a=0;e.subscribe(N(t,(e=>{t.next(n.call(void 0,e,a++))})))}))),ie(de.timeoutCustom),se((e=>(console.log(e),te(e)))));var n}setGescal17(e,t){let a="";return e&&(a=e+(t?t.toString():"0").padStart(5,"0")),a}setArvato17(e,t){let a="";return e&&(a=e+(t?t.toString():"0").padStart(6," ")),a}setBis(e){return e||" "}setBloque(e,t){return t=t?t.toUpperCase():"",(e=e?e.trim().toUpperCase():" ")+t.padStart(2," ")}setPortal(e){return(e=e?e.trim().toUpperCase():"").padStart(2," ")}setLetra(e){return e?e.toUpperCase():" "}setEscalera(e,t){return(e=e?e.trim():" ")+(t?t.trim():" ")}setPlanta(e,t,a){console.log("tipo planta ",e," tipo ",t," numero ",a);let i="";return 1==e?(i=a?a.trim():"",i=i.padStart(3,"0")):(i=t?t.trim().toUpperCase():"",i=i.padEnd(3," ")),console.log("planta ",i),i}setMano1(e){return(e?e.toUpperCase():"").padEnd(4," ")}setMano2(e){return(e?e.trim().toUpperCase():"").padEnd(4," ")}traducirVivienda(e){try{this.traduceBis(e),this.traduceBloque(e),this.traducePuerta(e),void 0!==e.letra&&e.letra&&""!==e.letra.trim()&&(e.letra_TR=e.letra.trim()),this.traduceEscalera(e),this.traducePlanta(e),this.traduceMano1(e),this.traduceMano2(e)}catch(e){console.log(e)}}traduceMano2(e){if(void 0!==e.mano2&&e.mano2&&""!==e.mano2.trim()){let t=xe.find((t=>"MANO2"===t.campo&&t.valor.trim().toUpperCase()===e.mano2.trim().toUpperCase()));e.mano2_TR=void 0!==t&&t?t.traduccion:e.mano2.trim()}}traduceMano1(e){if(void 0!==e.mano1&&e.mano1&&""!==e.mano1.trim()){let t=xe.find((t=>"MANO1"===t.campo&&t.valor.trim().toUpperCase()===e.mano1.trim().toUpperCase()));e.mano1_TR=void 0!==t&&t?t.traduccion:e.mano1.trim()}}traducePlanta(e){if(void 0!==e.planta&&e.planta&&""!==e.planta.trim()){let t=xe.find((t=>"PLANTA"===t.campo&&t.valor.trim().toUpperCase()===e.planta.trim().toUpperCase()));e.planta_TR=void 0!==t&&t?t.traduccion:isNaN(Number(e.planta))?e.planta.trim():Number(e.planta).toString()}}traduceEscalera(e){if(void 0!==e.escalera&&e.escalera&&""!==e.escalera.trim()){let t=xe.find((t=>"ESCALERA"===t.campo&&t.valor.trim().toUpperCase()===e.escalera.trim().toUpperCase()));void 0!==t&&t&&(e.escalera_TR=t.traduccion)}}traducePuerta(e){if(void 0!==e.puerta&&e.puerta&&""!==e.puerta.trim()){let t=xe.find((t=>"FINCA"===t.campo&&t.valor.trim().toUpperCase()===e.puerta.trim().toUpperCase()));e.puerta_TR=void 0!==t&&t?t.traduccion:e.puerta.trim()}}traduceBloque(e){if(void 0!==e.bloque&&e.bloque&&""!==e.bloque.trim()){let t=xe.find((t=>"BLOQUE"===t.campo&&t.valor.trim().toUpperCase()===e.bloque.substring(0,1).trim().toUpperCase()));void 0!==t&&t&&(e.bloque_TR=t.traduccion,e.bloque.trim().length>1&&e.bloque_TR.concat(e.bloque.substring(1)))}}traduceBis(e){if(void 0!==e.bis&&e.bis&&""!==e.bis.trim()){let t=xe.find((t=>"BIS"===t.campo&&t.valor.trim().toUpperCase()===e.bis.trim().toUpperCase()));void 0!==t&&t&&(e.bis_TR=t.traduccion)}}};var we;!function(e){e.MAP_SEARCH="MAP_SEARCH",e.COMPLETE_SEARCH="COMPLETE_SEARCH",e.COMPLETE_SEARCH_DISABLED="COMPLETE_SEARCH_DISABLED",e.GUIDED_SEARCH="GUIDED_SEARCH",e.ADDRESS_DETAIL="ADDRESS_DETAIL",e.FAST_SEARCH="FAST_SEARCH",e.GUIDED_FAST="GUIDED_FAST"}(we||(we={}));const Ce=class{constructor(e){(0,i.r)(this,e),this.subeEventoEvent=(0,i.c)(this,"subeEventoEvent",7),this.eventoInicio=(0,i.c)(this,"eventoInicio",7),this.eventoHide=(0,i.c)(this,"eventoHide",7),this.modalString="myaddr-modal",this.component=[],this.brand=void 0,this.googleInfo=null,this.address=void 0,this.hiddenVertical=void 0,this.globalVivienda=void 0,this.showGoBack=!1,this.showGoToResults=!1,this.previousPath=void 0,this.showCrearVivienda=!1,this.renderiza=!1}componentWillRender(){this.previousPath===we.COMPLETE_SEARCH&&Ee.crearVivienda&&(this.showCrearVivienda=!0),this.showCrearVivienda=!1}getAddressInfo(){return(0,i.h)("div",{class:this.classAddressInfo,id:"3"},(0,i.h)("myaddress-addressinfo",{brand:"brand",address:this.address}))}getStreetView(){return(0,i.h)("div",{class:"col-12 col-xs-12 col-md-7 mt-1",id:"4"},(0,i.h)("myaddress-streetview",{address:this.address}))}getViviendas(){return(0,i.h)("div",{class:"col-12 col-xs-12",id:"5"},(0,i.h)("myaddress-vivienda",{address:this.address,googleInfo:this.googleInfo,previousPath:this.previousPath,brand:this.brand,hiddenVertical:this.hiddenVertical,onAddressEvent:e=>this.subeEvento(e),onEventInicio:()=>this.goToInicio(),onEventHide:e=>this.hideDetail(e.detail)}))}hideDetail(e){this.eventoHide.emit(e)}goToInicio(){this.eventoInicio.emit("MAP_SEARCH")}subeEvento(e){this.subeEventoEvent.emit(e.detail)}closeModalResults(){const e=this.el.querySelector(this.modalString);e.componentOnReady().then((()=>{const t=this.el.querySelector("creacion-vivienda");t.componentOnReady().then((()=>{t.cleanData(),e.close(!0)}))}))}getModal(){const e=this.el.querySelector(this.modalString);e.removeAttribute("hidden"),e.componentOnReady().then((()=>{const t=this.el.querySelector("creacion-vivienda");t.componentOnReady().then((()=>{t.initData(this.address.codViaArvato17,this.address.codViaGescal,this.address.codViaArvato,this.address.numero),e.open()}))}))}
2showBoton(){this.showCrearVivienda&&this.component.push((0,i.h)("div",{class:"mt-1",style:{marginLeft:"16px"}},(0,i.h)("div",{class:"row"},(0,i.h)("button",{class:"btn btn-primary btn-md",onClick:()=>{this.getModal()}},"Crear vivienda"))))}render(){return this.component.length=0,this.address&&Ee.canalConfig.ver_street_view?(this.classAddressInfo="col-12 col-xs-12 col-md-5",this.component.push(this.getAddressInfo())):(this.classAddressInfo="col-12 col-xs-12",this.component.push(this.getAddressInfo())),Ee.canalConfig.ver_street_view&&this.component.push(this.getStreetView()),this.component.push(this.getViviendas()),this.component.push((0,i.h)("myaddr-modal",{id:"modal-creacion",showCloseIcon:!0,hidden:!0},(0,i.h)("div",{slot:"modal-header"},(0,i.h)("h2",null,"Creación vivienda")),(0,i.h)("div",{slot:"modal-body"},(0,i.h)("creacion-vivienda",{onEmitCreacion:e=>this.consultaCreacion(e)})),(0,i.h)("div",{slot:"modal-footer"},(0,i.h)("button",{class:"btn btn-default btn-md",onClick:()=>this.closeModalResults()},"Cerrar")))),this.showBoton(),(0,i.h)("section",{key:"166d25244a57c19aa14f92b53d88e24aa29fbe4f",id:"addressDetails"},(0,i.h)("div",{key:"09f98e89022eeada5aecdb7a1b53ac3f62ed4ab3",id:"1"},(0,i.h)("div",{key:"b1afd7efa29f38161cc08c40857849b71feed9af",class:"row",id:"2"},this.component)))}consultaCreacion(e){const t=e.detail;this.globalVivienda=1,this.address.numViviendas=1;let a=Ee.setViviendaResponse(t,this.address,this.googleInfo,null,!0);this.getCodigoPoblacion(this.address.poblacion,t.arvato17,a)}getCodigoPoblacion(e,t,a){let i=t.substring(0,2);Ee.getCodigoPoblacion(i,e).subscribe({next:e=>{let t=e[0]?e[0]:null;e.forEach((e=>{e.score>t.score&&(t=e)})),a.ospGeographicAddress[0].externalIdentifier.push({name:"codPobC",value:t.codPoblacion}),this.subeEventoEvent.emit(a)},error:()=>{this.subeEventoEvent.emit({noAlert:!1,errorMessage:"Ha ocurrido un error inesperado intentelo mas tarde"})}})}get el(){return(0,i.g)(this)}};Ce.style=":host{display:block}";const Pe=class{constructor(e){(0,i.r)(this,e),this.eventSelect=(0,i.c)(this,"eventSelect",7),this.eventSearch=(0,i.c)(this,"eventSearch",7),this.notFound="No hay datos",this.firstClick=!0,this.dropDownSearcher="#dropdown-searcher",this.removeAccents=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,""),this.label=void 0,this.name=void 0,this.itemsAutoComplete=void 0,this.selected="",this.disabled=!1,this.copyItems=[],this.showSuggestions=!1,this.filterOptions=void 0}componentWillLoad(){this.filterOptions=this.itemsAutoComplete,this.copyItems=this.itemsAutoComplete}render(){return(0,i.h)("div",{key:"380940961745e8b06c588f0a02bcba4cabad3f67",class:"form-group form-searchbox mod-cases-settings-search"},(0,i.h)("label",{key:"36bd8993a0ed4559a059a604c3fcb075950e2563",class:"control-label"},this.label),(0,i.h)("input",{key:"5130beeb568eaaaad6c2b2dc9f119982ed33c6b1",type:"text",autoComplete:"off",id:"dropdown-searcher",class:"form-control",disabled:this.disabled,name:this.name,onClick:()=>{this.showSuggestions=!0},onInput:e=>this.searchSuggestions(e),onKeyDown:e=>{this.tabEvent(e)},onFocusin:()=>this.showSuggestions=!0,onFocusout:()=>{this.delayShow()}}),(0,i.h)("ul",{key:"a42160f4904dc7b2d80ce3593709237a42d3e1e6",class:"form-searchbox-autocomplete no-scrolling",hidden:!this.showSuggestions,id:"ullist"},0!=this.filterOptions.length||this.firstClick?this.filterOptions.map((e=>(0,i.h)("li",{class:"form-searchbox-autocomplete-list",tabindex:"0",key:e.name,onClick:()=>{this.delayShow(e)}},(0,i.h)("div",{class:"form-searchbox-autocomplete-list-info"},(0,i.h)("span",{class:"form-searchbox-autocomplete-list-info-main"},e.name))))):(0,i.h)("li",{tabindex:"0"},(0,i.h)("div",{class:"form-searchbox-autocomplete-list-info"},(0,i.h)("span",{class:"form-searchbox-autocomplete-list-info-main form-searchbox-autocomplete-list-info-nofound"},this.notFound)))))}tabEvent(e){"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),this.showSuggestions=!1)}searchSuggestions(e){e.data?0==this.filterOptions.length?(this.eventSearch.emit(be(this.searchelement.querySelector("#dropdown-searcher")).value),this.firstClick=!1):this.filterOptions=this.copyItems.filter((t=>this.removeAccents(t.name.toLowerCase()).includes(this.removeAccents(e.currentTarget.value.toLowerCase())))):this.filterOptions=this.itemsAutoComplete}delayShow(e){if(e)if(this.selected=e.name,this.checkVia(this.filterOptions)){const t=this.filterOptions.filter((t=>t.name===e.name))[0];e.name=t.name.toUpperCase().replace(t.tipoVia,""),be(this.searchelement.querySelector(this.dropDownSearcher)).value=ue(e.name),this.eventSelect.emit({via:t.value,tipoViaG:t.tipoViaG,tipoVia:t.tipoVia})}else be(this.searchelement.querySelector(this.dropDownSearcher)).value=e.name,this.eventSelect.emit(e.value);setTimeout((()=>{this.showSuggestions=!1}),200)}habilitaEscritura(e,t){const a=be(this.searchelement.querySelector(this.dropDownSearcher));a&&(e!==t&&e?(a.setAttribute("disabled","disabled"),be(this.searchelement.querySelector("#dropdown-searcher")).value=""):a.removeAttribute("disabled"))}showLi(e,t){if(e.length!==t.length&&e.length>0){const t=function(e){if(e instanceof HTMLUListElement)return e}(this.searchelement.querySelector("#ullist"));t&&(t.removeAttribute("hidden"),this.filterOptions=e,this.copyItems=e)}else 0==e.length&&(this.filterOptions=e,this.copyItems=e)}checkVia(e){return e.every((e=>void 0!==e.tipoViaG&&void 0!==e.tipoVia))}async clean(){be(this.searchelement.querySelector("#dropdown-searcher")).value=""}get searchelement(){return(0,i.g)(this)}static get watchers(){return{disabled:["habilitaEscritura"],itemsAutoComplete:["showLi"]}}};Pe.style='.form-searchbox-autocomplete {\n  margin-top: 0;\n  border-style: solid;\n  border-width: 1px;\n  border-color: #cccccc;\n  background-color: #fff;\n  transition: background-color 0.15s ease-in-out;\n  position: absolute;\n  width: 100%;\n  z-index: 2;\n}\n\n.form-searchbox-autocomplete-list {\n  padding: 10px;\n  margin-bottom: 0;\n  border-style: solid;\n  border-width: 0px 0px 1px;\n  border-color: #ebebeb;\n  display: flex;\n  position: relative;\n  cursor: pointer;\n}\n.form-searchbox-autocomplete-list:last-child {\n  border-style: none;\n}\n.form-searchbox-autocomplete-list:hover, .form-searchbox-autocomplete-list:focus {\n  background-color: #000;\n  color: #fff;\n  transition: background-color 0.15s ease-in-out;\n}\n.form-searchbox-autocomplete-list:active {\n  background-color: #ff7900;\n  color: #000;\n  transition: background-color 0.15s ease-in-out;\n}\n\n.bg-black .form-searchbox-autocomplete-list .form-searchbox-autocomplete-list-info:hover span, .bg-black .form-searchbox-autocomplete-list .form-searchbox-autocomplete-list-info:focus span {\n  color: #000;\n  transition: background-color 0.15s ease-in-out;\n}\n\n\n.form-searchbox-autocomplete-list-info {\n  margin-left: 10px;\n  display: flex;\n  flex-direction: column;\n}\n.form-searchbox-autocomplete-list-info-main {\n  font-family: "Helvetica--Neue--75", Arial, sans-serif;\n  font-size: 1.6rem;\n  line-height: 1.8rem;\n}\n\nul {\n  margin-top: 10px;\n  margin-bottom: 20px;\n  padding-right: 0;\n  padding-left: 0;\n  font-family: "Helvetica-Neue-Family", Arial, sans-serif;\n}\n\nli {\n  margin-bottom: 5px;\n  font-size: 1.6rem;\n  line-height: 2.4rem;\n  letter-spacing: -0.1px;\n  list-style: none;\n}\nli::selection {\n  color: #000;\n  background-color: #ff7900;\n}\n\n.form-searchbox-btn.form-searchbox-btn-disabled {\n  background-color: #ededed;\n}\n.form-searchbox-btn.form-searchbox-btn-disabled:hover {\n  background-color: #ededed;
2\n  cursor: not-allowed;\n  .form-searchbox-icon path {\n    fill: #ccc;\n  }\n}\n\n.no-scrolling{\n  max-height: 200px;\n  overflow: scroll;\n  overflow-x: hidden;\n}\n';const _e=[{value:"B",name:"Bis"},{value:"C",name:"Cuadruplicado"},{value:"D",name:"Duplicado"},{value:"K",name:"Kilómetro"},{value:"X",name:"Kilómetro margen derecho"},{value:"Y",name:"Kilómetro margen izquierdo"},{value:"Q",name:"Quintuplicado"},{value:"T",name:"Triplicado"}],Oe=[{value:"A",name:"Almacén"},{value:"B",name:"Bloque"},{value:"C",name:"Casa"},{value:"E",name:"Edificio"},{value:"F",name:"Estación"},{value:"G",name:"Garaje"},{value:"H",name:"Chalet"},{value:"L",name:"Pabellón"},{value:"N",name:"Nave"},{value:"P",name:"Parcela"},{value:"R",name:"Grupo"},{value:"S",name:"Sector"},{value:"T",name:"Torre"},{value:"Z",name:"Zona"}],Te=[{value:"V",name:"Izquierda"},{value:"W",name:"Derecha"},{value:"X",name:"Centro"},{value:"Y",name:"Interior"},{value:"Z",name:"Exterior"},{value:"A",name:"A"},{value:"B",name:"B"},{value:"C",name:"C"},{value:"D",name:"D"},{value:"E",name:"E"},{value:"F",name:"F"},{value:"G",name:"G"},{value:"H",name:"H"},{value:"I",name:"I"},{value:"J",name:"J"},{value:"K",name:"K"},{value:"L",name:"L"},{value:"M",name:"M"},{value:"N",name:"N"},{value:"Ñ",name:"Ñ"},{value:"O",name:"O"},{value:"P",name:"P"},{value:"Q",name:"Q"},{value:"R",name:"R"},{value:"S",name:"S"},{value:"T",name:"T"},{value:"U",name:"U"},{value:"0",name:"0"},{value:"1",name:"1"},{value:"2",name:"2"},{value:"3",name:"3"}
2,{value:"4",name:"4"},{value:"5",name:"5"},{value:"6",name:"6"},{value:"7",name:"7"},{value:"8",name:"8"},{value:"9",name:"9"}],Ne=[{value:"AL",name:"Altillo"},{value:"AM",name:"Almacén"},{value:"AS",name:"Ascensor"},{value:"AT",name:"Atico"},{value:"BA",name:"Bajo"},{value:"BU",name:"Bungalow"},{value:"CH",name:"Chalet"},{value:"DU",name:"Dúplex"},{value:"EN",name:"Entresuelo"},{value:"ET",name:"Entreplanta"},{value:"GA",name:"Garaje"},{value:"KI",name:"Kiosco"},{value:"MO",name:"Modulo"},{value:"LO",name:"Local"},{value:"NA",name:"Nave"},{value:"OF",name:"Oficina"},{value:"PR",name:"Principal"},{value:"PT",name:"Puesto"},{value:"SA",name:"Sobreático"},{value:"SE",name:"Semisótano"},{value:"SO",name:"Sótano"},{value:"SP",name:"SIN PLANTA"},{value:"SS",name:"Semisótano OLD"},{value:"S1",name:"Sótano 1"},{value:"S2",name:"Sótano 2"},{value:"S3",name:"Sótano 3"},{value:"S4",name:"Sótano 4"},{value:"S5",name:"Sótano 5"},{value:"S6",name:"Sótano 6"},{value:"S7",name:"Sótano 7"},{value:"S8",name:"Sótano 8"},{value:"S9",name:"Sótano 9"},{value:"TE",name:"Terraza"},{value:"TI",name:"Tienda"},{value:"X1",name:"Semisótano 1"},{value:"X2",name:"Semisótano 2"},{value:"X3",name:"Semisótano 3"},{value:"X4",name:"Semisótano 4"},{value:"X5",name:"Semisótano 5"},{value:"X6",name:"Semisótano 6"},{value:"X7",name:"Semisótano 7"},{value:"X8",name:"Semisótano 8"},{value:"X9",name:"Semisótano 9"}],Le=[{value:"APTO",name:"Apartamento"},{value:"CTRO",name:"Centro"},{value:"DCHA",name:"Derecha"},{value:"DPCH",name:"Despacho"},{value:"EXT",name:"Exterior"},{value:"HABI",name:"Habitación"},{value:"INT",name:"Interior"},{value:"IZDA",name:"Izquierda"},{value:"LOCL",name:"Local"},{value:"OFIC",name:"Oficina"},{value:"PTO",name:"Puesto"},{value:"TDA",name:"Tienda"}],Ie=class{constructor(e){(0,i.r)(this,e),this.emitCreacion=(0,i.c)(this,"emitCreacion",7),this.contenido=[],this.inputs=["selectBis","selectBloque","inputBloque","inputPortal","inputLetra","selectEscalera","selectEscaleraExt","selectTipo","inputNumero","selectPuerta","inputPuerta"],this.tipoPlanta=1,this.vivienda={bis:"",tipoBloque:"",bloque:"",portal:"",letra:"",escalera:"",escaleraExt:"",numero:"",tipoPuerta:"",puerta:"",tipoPlanta:this.tipoPlanta,tipo:""}
2,this.codViaArvato17="",this.codViaGescal=null,this.codViaArvato=null,this.numero=null,this.aclarador=!1,this.ptkm=!1}async initData(e,t,a,i){this.codViaArvato17=e,this.codViaGescal=t,this.codViaArvato=a,this.numero=i}async cleanData(){this.vivienda={bis:"",tipoBloque:"",bloque:"",portal:"",letra:"",escalera:"",escaleraExt:"",numero:"",tipoPuerta:"",puerta:"",tipoPlanta:1,tipo:""};for(let e of this.inputs)e.startsWith("select")?pe(this.el.querySelector("#"+e)).options[0].text="":e.startsWith("input")&&(be(this.el.querySelector(e)).value="")}componentWillUpdate(){if(null!==this.codViaArvato17){let e=this.codViaArvato17.length,t=this.codViaArvato17.substring(e-1,e),a=this.codViaArvato17.substring(e-2,e-1);"0"===t&&" "===a&&(this.aclarador=!0,this.ptkm=!1)}}getTipoBis(){return(0,i.h)("div",{id:"tipoBis",class:"col-12 col-xs-12 col-md-5 form-group text-left"},(0,i.h)("myaddr-select",{idSelect:"selectBis",disabled:!1,label:"Tipo Bis",onChange:e=>this.changeBis(e)},(0,i.h)("option",{value:"",selected:!0}),_e.map((e=>(0,i.h)("option",{value:e.value},e.name)))))}changeBis(e){this.vivienda.bis=e.target.value,this.validateForm()}getTipobloque(){return(0,i.h)("div",{id:"tipoBloque",class:"col-12 col-xs-12 col-md-5 form-group text-left"},(0,i.h)("myaddr-select",{idSelect:"selectBloque",disabled:!1,label:"Tipo Bloque",onChange:e=>this.changeTipobloque(e)},(0,i.h)("option",{value:"",selected:!0}),Oe.map((e=>(0,i.h)("option",{value:e.value},e.name)))))}changeTipobloque(e){this.vivienda.tipoBloque=e.target.value,this.validateForm()}getBloque(){return(0,i.h)("div",{class:"col-12 col-xs-12 col-md-2 form-group text-left"},(0,i.h)("myaddr-input",{id:"bloque",idInput:"inputBloque",label:"Bloque",onInput:e=>{this.changeBloque(e)},validator:"^[A-Za-z0-9]{0,2}$"}))}changeBloque(e){this.vivienda.bloque=e.target.value,this.validateForm()}getPortal(){return(0,i.h)("div",{class:"col-12 col-xs-12 col-md-2 form-group text-left"},(0,i.h)("myaddr-input",{id:"portal",idInput:"inputPortal",label:"Portal",onInput:e=>{this.changePortal(e)},validator:"^[A-Za-z0-9]{0,2}$"}))}changePortal(e){this.vivienda.portal=e.target.value,this.validateForm()}getLetra(){return(0,i.h)("div",{class:"col-12 col-xs-12 col-md-2 form-group text-left"},(0,i.h)("myaddr-input",{id:"letra",idInput:"inputLetra",label:"Letra",onInput:e=>{this.changeLetras(e)},validator:"^[A-Za-z]{0,1}$"}))}changeLetras(e){this.vivienda.letra=e.target.value,this.validateForm()}getEscalera(){return(0,i.h)("div",{id:"escalera",class:"col-12 col-xs-12 col-md-4 form-group text-left"},(0,i.h)("myaddr-select",{idSelect:"selectEscalera",disabled:!1,label:"Escalera",onChange:e=>this.changeEscalera(e)},(0,i.h)("option",{value:"",selected:!0}),Te.map((e=>(0,i.h)("option",{value:e.value},e.name)))))}changeEscalera(e){this.vivienda.escalera=e.target.value,this.validateForm()}getEscaleraExt(){return(0,i.h)("div",{id:"escaleraExt",class:"col-12 col-xs-12 col-md-4 form-group text-left"},(0,i.h)("myaddr-select",{idSelect:"selectEscaleraExt",disabled:!1,label:"Escalera Ext",onChange:e=>this.changeEscaleraExt(e)},(0,i.h)("option",{value:"",selected:!0}),Te.map((e=>(0,i.h)("option",{value:e.value},e.name)))))}changeEscaleraExt(e){this.vivienda.escaleraExt=e.target.value,this.validateForm()}getPlanta(){return(0,i.h)("div",{class:"col-12 col-xs-12 col-md-3 form-group text-left",id:"tipoPlanta"},(0,i.h)("label",null,"Planta"),(0,i.h)("div",null,(0,i.h)("myaddr-radio",{label:"Tipo",name:"tipoPlanta",value:"1",check:!0,onEvento:e=>this.changeRadio(e)}),(0,i.h)("myaddr-radio",{label:"Número",name:"tipoPlanta",value:"0",check:!1,onEvento:e=>this.changeRadio(e)})))}changeRadio(e){this.tipoPlanta=Number(e.detail.value),this.validateForm()}getTipoSelect(){return(0,i.h)("div",{id:"tipoSelect",class:"col-12 col-xs-12 col-md-4 form-group text-left",hidden:!1},(0,i.h)("myaddr-select",{idSelect:"selectTipo",disabled:!1,label:"Tipo",onChange:e=>this.changeTipo(e)},(0,i.h)("option",{value:"",selected:!0}),Ne.map((e=>(0,i.h)("option",{value:e.value},e.name)))))}changeTipo(e){this.vivienda.tipoBloque=e.target.value,this.validateForm()}getTipoInput(){return(0,i.h)("div",{class:"col-12 col-xs-12 col-md-2 form-group text-left",id:"tipoInput",hidden:!0},(0,i.h)("myaddr-input",{id:"numero",idInput:"inputNumero",label:"Numero",onInput:e=>this.changeNumero(e),validator:"^[0-9]{0,3}$"}))}changeNumero(e){this.vivienda.numero=e.target.value,this.validateForm()}getSelectPuerta(){return(0,i.h)("div",{id:"puertaSelect",class:"col-12 col-xs-12 col-md-4 form-group text-left"},(0,i.h)("myaddr-select",{idSelect:"selectPuerta",disabled:!1,label:"Tipo Puerta",onChange:e=>this.changePuerta(e)},(0,i.h)("option",{value:"",selected:!0}),Le.map((e=>(0,i.h)("option",{value:e.value},e.name)))))}changePuerta(e){this.vivienda.puerta=e.target.value,this.validateForm()}getTipoPuerta(){return(0,i.h)("div",{class:"col-12 col-xs-12 col-md-2 form-group text-left"},(0,i.h)("myaddr-input",{id:"puerta",idInput:"inputPuerta",label:"Puerta",onInput:e=>this.changeTipoPuerta(e),validator:"^[A-Za-z0-9]{0,4}$"}))}changeTipoPuerta(e){this.vivienda.puerta=e.target.value,this.validateForm()}
2cambioTipoPlanta(e,t){if(e!==t){let e=this.el.querySelector("#tipoSelect");e?(e.getAttribute("hidden")||(e.setAttribute("hidden","true"),e=this.el.querySelector("#tipoInput")),e.removeAttribute("hidden")):(e=this.el.querySelector("#tipoInput"),e.getAttribute("hidden")||(e.setAttribute("hidden","true"),e=this.el.querySelector("#tipoSelect")),e.removeAttribute("hidden"))}}render(){return 0===this.contenido.length&&(this.contenido.push(this.getTipoBis()),this.contenido.push(this.getTipobloque()),this.contenido.push(this.getBloque()),this.contenido.push(this.getPortal()),this.contenido.push(this.getLetra()),this.contenido.push(this.getEscalera()),this.contenido.push(this.getEscaleraExt()),this.contenido.push(this.getPlanta()),this.contenido.push(this.getTipoSelect()),this.contenido.push(this.getTipoInput()),this.contenido.push(this.getSelectPuerta()),this.contenido.push(this.getTipoPuerta()),this.aclarador&&(this.contenido.push(this.getAclarador()),this.contenido.push(this.getpktm()))),(0,i.h)(i.F,{key:"aed16b73a9ce9c336914d399f4e8122c7f802ef8"},(0,i.h)("div",{key:"f6c2b10c68191530f654aeb95494e9feeb7bf7e2",id:"contenedorCrear"},(0,i.h)("div",{key:"97aeb6af63fa20b9aaf25d6e13110dae1be6aaef",class:"row",id:"creacionViviendaInnerModal"},this.contenido),(0,i.h)("div",{key:"dd13442a28d57580326709f44dc8f0e4b4339393",class:"row"},(0,i.h)("div",{key:"4fc47d61984dd81b5caa098debb86e1849faf30e",class:"col-12 col-xs-12 col-md-12 text-center"},(0,i.h)("button",{key:"aa62d82d3f4e160a552303713b86220c5b2a6417",id:"crearViviendaBtn",class:"btn btn-primary btn-md",disabled:!0,onClick:()=>{this.crearVivenda()}},"Crear")))),(0,i.h)("div",{key:"a60583143023e2af04d1fb654cf355c44f6bd624",id:"resultado",hidden:!0},(0,i.h)("div",{key:"eca8538bee87a9ca0f38dd6ed1807a04f1f1dd81",class:"alert alert-success"},(0,i.h)("p",{key:"26a63641f68dce55f2c32f448e88391744715a50"},"La vivienda se ha creado correctamente"))))}getpktm(){return(0,i.h)("div",{class:"col-12 col-xs-12 col-md-2 form-group text-left"},(0,i.h)("myaddr-input",{id:"ptkm",idInput:"inputptkm",label:"Punto Kilométrico",onInput:e=>this.changeTipoPuerta(e),validator:"^[A-Za-z0-9]{0,4}$"}))}getAclarador(){return(0,i.h)("div",{class:"col-12 col-xs-12 col-md-2 form-group text-left"},(0,i.h)("myaddr-input",{id:"aclarador",idInput:"inputAclarador",label:"Local/Empresa",onInput:e=>this.changeTipoPuerta(e),validator:"^[A-Za-z0-9]{0,4}$"}))}async validateForm(){let e=!0;const t=this.el.querySelectorAll("myaddr-input");for(let a of t){const t=await a.isValid();e=e&&t}e?this.el.querySelector("#crearViviendaBtn").removeAttribute("disabled"):this.el.querySelector("#crearViviendaBtn").setAttribute("disabled","true")}crearVivenda(){Ee.crearVivienda(this.codViaGescal,this.codViaArvato,this.numero,this.vivienda,Ee.canalConfig.canal).subscribe({next:e=>{console.log("vivienda creada ok ",e),this.cambiaContenidoModal(),this.emitCreacion.emit(e)},error:e=>{console.log("error",e," ",e.body)}})}cambiaContenidoModal(){this.el.querySelector("#contenedorCrear").setAttribute("hidden","true"),this.el.querySelector("#resultado").removeAttribute("hidden")}get el(){return(0,i.g)(this)}static get watchers(){return{tipoPlanta:["cambioTipoPlanta"]}}};Ie.style=":host {\n  display: block;\n}\n.myaddr-required {\n  color: red;\n}\n\n.btn-default {\n  color: #000;\n  background-color: transparent;\n  border-color: var(--hl-color-border-light-secondary, #000);\n\n}\n\n#modal-results .modal-footer .btn {\n  --btn-icon-size: var(--hl-size-icon-md);\n  --btn-icon-margin: calc((var(--btn-icon-size) - 1em) * -0.5);\n  --btn-icon-gap: var(--hl-spacer-sm);\n  display: inline-flex;\n  font-weight: var(--hl-font-weight-body-bold);\n  text-align: center;\n  text-decoration: none;\n  justify-content: center;\n  align-items: center;\n  white-space: nowrap;\n  vertical-align: middle;\n  user-select: none;\n  border: var(--hl-border-width-default) solid transparent;\n  max-width: 100%;\n  min-width: var(--hl-spacer-md);\n  gap: var(--btn-icon-gap);\n  padding: calc(var(--hl-spacer-sm)) var(--hl-spacer-lg);\n  font-size: var(--hl-font-size-md);\n  line-height: var(--hl-line-height-sm);\n  border-radius: var(--hl-border-radius-default);\n  transition: all var(--hl-transition-normal);\n  background-clip: inherit;\n  color: var(--hl-color-button-text-light-standby);\n  background-color: var(--hl-color-button-bg-outline-black-standby);\n  border-color: var(--hl-color-border-light-secondary);\n}\n\n#modal-results .modal-footer button:hover,\n#modal-results .modal-footer button:focus {\n  text-decoration: none !important;\n  color: var(--hl-color-button-text-light-hover);\n  background-color: var(--hl-color-button-bg-outline-black-hover);\n  border-color: var(--hl-color-border-light-secondary);\n}\n\n#modal-results .modal-footer button:active,\n#modal-results .modal-footer button.active {\n  color: var(--hl-color-button-text-light-pressed);\n  background-color: var(--hl-color-button-bg-outline-black-pressed);\n  border-color: var(--hl-color-border-light-secondary);\n  background-size: 200%;\n}\n#modal-results .modal-footer btn-default:focus {\n  background: var(--hl-color-button-bg-outline-black-hover);\n}\n#modal-results .modal-footer btn-default:focus:active {\n  background: var(--hl-color-button-bg-outline-black-pressed);\n}\n.alert-container {\n  margin-top: 20px;\n  padding: 20px;\n  min-height: 100px;\n  .custom-alert {\n    margin: auto;\n    padding: 10px;\n    width: 80%;\n    overflow: auto;\n    font-weight: bold;\n    p {\n      margin: 8px auto;\n      width: 90%;\n      float: left;\n      text-align: center;\n      word-break: break-all;\n      word-break: break-word;\n    }\n    .btn-close {\n      width: 10%;\n      text-align: right;\n      float: right;\n      button {\n        border-radius: 5px;\n        color: black;\n        &:hover {\n          color: white;\n        }\n      }\n    }\n  }\n}
2\n\n.alert-danger {\n  color: #721c24;\n  background-color: #f8d7da;\n  border-color: #f5c6cb;\n}\n\n.alert-success {\n  color: #155724;\n  background-color: #d4edda;\n  border-color: #c3e6cb;\n}\n";const Re=class{constructor(e){(0,i.r)(this,e),this.googleInfo=(0,i.c)(this,"googleInfo",7),this.guidedFastMap=(0,i.c)(this,"guidedFastMap",7),this.addresses=(0,i.c)(this,"addresses",7),this.findedAddress=(0,i.c)(this,"findedAddress",7),this.emitHideDetail=(0,i.c)(this,"emitHideDetail",7),this.loading=!1,this.submitIsDisabled=!0,this.direccionesLoading=!1,this.direccionSelected=!1,this.googleAddressInfo=null,this.googleAddress=null,this.direcciones=[],this.sinNumero=!1,this.numeroSelected=-1,this.numeroSelectedString="#numeroSelected",this.paraTimeOut=!1,this.showTextoFormGuiadoFast=!1,this.gAddress=void 0,this.googleAddressHasNumber=!1,this.portales=[],this.prevNumber=0,this.showSelects=!0,this.required=!0,this.brand=void 0,this.globalVivienda=void 0,this.guidedAddress=null,this.previousPath=void 0,this.isUsed=!1}setGoogleAddress(e){this.googleAddress=e}changegAddress(e,t){e!==t&&t&&(this.showSelects=!1,this.emitHideDetail.emit(!0),this.hideTextoFormGuiadoFast())}watchNumeroSelected(e,t){Number.isNaN(e)||0==e||e==t||this.sinNumero&&!this.googleAddressHasNumber?this.loading=!1:(this.loading=!0,this.emitHideDetail.emit(!0),this.getFinalAddress())}watchSinNumero(e,t){e&&e!=t?(this.loading=!0,this.numeroSelected=0,this.getFinalAddress()):this.loading=!1}componentDidLoad(){this.initMap()}initMap(){const e=be(this.searchElementHtml.querySelector("#gAddress"));Ee.loader.importLibrary("places").then((()=>{this.googleAutoComplete=new google.maps.places.Autocomplete(e,{types:["address"]}),this.googleAutoComplete.setComponentRestrictions({country:"ES"}),this.googleAutoComplete.setOptions({strictBounds:!1}),this.googleAutoComplete.setTypes(["address"]),this.googleAutoComplete.setFields(["formatted_address","address_components","geometry"]),this.googleAutoComplete.addListener("place_changed",(()=>{this.loading=!0,this.submitIsDisabled=!0;let e=this.googleAutoComplete.getPlace();e&&e.geometry&&e.address_components?(this.latitude=e.geometry.location.lat(),this.longitude=e.geometry.location.lng(),this.direccionesLoading=!0,this.resultsHandler(e)):this.loading=!1}))}))}resultsHandler(e){this.googleAddress=this.formatAddress(e),this.getDirecciones(),this.googleAddressInfo=e,this.hideDisplayTexto(),this.googleInfo.emit(this.googleAddressInfo)}hideDisplayTexto(){clearTimeout(Ee.canalConfig.tiempo_espera_form_alt_guiado_fast),""!==this.gAddress&&null!==this.gAddress?this.gAddress.length>+Ee.canalConfig.num_caracteres_form_alt_guiado_fast?this.showTextoFormGuiadoFast=!0:this.gAddress.length<=+Ee.canalConfig.num_caracteres_form_alt_guiado_fast&&setTimeout((()=>this.runDisplayTextAfterSeconds()),1e3*+Ee.canalConfig.tiempo_espera_form_alt_guiado_fast):this.hideTextoFormGuiadoFast()}formatAddress(e){let t={};return e.address_components.forEach((e=>{t[e.types[0]]=e.long_name,"country"===e.types[0]&&(t.country_shortName=e.short_name)})),t.street_number=this.formatNumber(t.street_number),t}getDirecciones(){this.googleAddress.street_number||(this.googleAddress.street_number=999),Ee.consultarDireccion(this.googleAddress).subscribe({next:e=>{Array.isArray(e)&&0!=e.length&&(this.loading=!1,this.hideTextoFormGuiadoFast(),this.direcciones=e,this.addresses.emit(e))},error:()=>{this.addresses.emit({noAlert:!1,errorMessage:"Ha ocurrido un error inesperado intentelo mas tarde"})}})}gAddrressFocused(){this.sinNumero&&""===this.gAddress&&(this.globalVivienda=null)}goToGuiado(e){"a"===e.target.localName&&(e.preventDefault(),this.guidedFastMap.emit("GUIDED_FAST"))}getPredictions(e){this.direccionSelected=!1,this.clearViaNumero(),this.gAddress=e.target.value;const t={input:this.gAddress,fields:["formatted_address","address_components","geometry"],componentRestrictions:{country:"ES"}};""!=this.gAddress&&null!==this.gAddress&&(`${this.gAddress}`.length>=5?(new google.maps.places.AutocompleteService).getPlacePredictions(t,(e=>{null===e?this.showTextoFormGuiadoFast=!0:this.hideDisplayTexto()})):(this.hideDisplayTexto(),this.showSelects=!1,this.emitHideDetail.emit(!0),this.hideTextoFormGuiadoFast()))}clearViaNumero(){this.sinNumero=!1,this.numeroSelected=0}runDisplayTextAfterSeconds(){this.direccionSelected||""===this.gAddress||null===this.gAddress||this.paraTimeOut||(this.showTextoFormGuiadoFast=!0)}hideTextoFormGuiadoFast(){this.showTextoFormGuiadoFast=!1}formatNumber(e){let t=null;if(e&&"s/n"!==e){t="";for(let a=0;a<e.length;a++){if(!e.charAt(a).match(/\d/))return t;t+=e.charAt(a)}}return t}buscarConEnter(e){"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())}placeIsInSpain(){return!(!this.googleAddress.country_shortName||"ES"!==this.googleAddress.country_shortName)||(this.addresses.emit({noAlert:!1,errorMessage:"¡ATENCIÓN! El lugar indicado no se encuentra en España"}),!1)}placeHasRequiredDataToRequest(){return!!(this.googleAddress.country&&(this.googleAddress.administrative_area_level_2||this.googleAddress.administrative_area_level_1
2)&&this.googleAddress.locality&&this.googleAddress.route&&"Unnamed Road"!==this.googleAddress.route)}async cleanInput(){const e=be(this.searchElementHtml.querySelector("#gAddress"));e&&(e.value=""),this.gAddress=""}async getIsUsed(){return this.isUsed}async hideNoEncuentra(){this.showTextoFormGuiadoFast=!1,this.paraTimeOut=!0}async manageAddress(e,t){this.checkIfAddressHasNumber(),this.direccionSelected=!0,t&&(this.gAddress=he(e),this.googleAddressHasNumber&&(this.numeroSelected=e.numero)),this.submitIsDisabled=!this.placeIsInSpain()||!this.placeHasRequiredDataToRequest(),this.googleAddressHasNumber?(this.showTextoFormGuiadoFast=!1,this.consultarDireccion(),this.watchNumeroSelected(this.numeroSelected,0)):Ee.getPortales(e.codViaGescal,e.codVia?e.codVia.toString():null).subscribe({next:e=>{this.portales=e.listaPortales?e.listaPortales:[],this.googleAddressHasNumber=!0},error:e=>{console.log("error",e)}}),this.isUsed=!0}checkIfAddressHasNumber(){this.googleAddress.street_number&&999!=this.googleAddress.street_number?(this.googleAddressHasNumber=!0,this.showSelects=!1):(this.showSelects=!0,this.googleAddressHasNumber=!1,this.googleAddress.street_number="1")}getFinalAddress(){const e=!1===this.sinNumero?this.numeroSelected:"0";Ee.getAddress(this.direcciones[0].codPob,this.direcciones[0].codVia,e.toString(),this.direcciones[0].provincia).subscribe({next:t=>{let a=null;1==t.errorCode&&(a=0),this.globalVivienda=a,t.numViviendas=a,t.numValid="0"!=e||!!this.portales.find((t=>t==e)),this.findedAddress.emit(t),this.loading=!1},error:()=>{this.loading=!1}})}changeWithoutNumber(e){e.detail?(this.watchSinNumero(e.detail,this.sinNumero),this.sinNumero=e.detail,pe(this.searchElementHtml.querySelector(this.numeroSelectedString)).setAttribute("disabled","true"),pe(this.searchElementHtml.querySelector(this.numeroSelectedString)).value="",this.required=!1,this.consultarDireccion()):(this.searchElementHtml.querySelector(this.numeroSelectedString).removeAttribute("disabled"),this.watchSinNumero(e.detail,this.sinNumero),this.sinNumero=e.detail,this.required=!0,this.emitHideDetail.emit(!0))}consultarDireccion(e){if(e){const t=this.numeroSelected;this.numeroSelected=e.detail,this.watchNumeroSelected(this.numeroSelected,t)}else this.googleAddress.street_number&&(this.numeroSelected=this.googleAddress.street_number)}goToAutoComplete(){this.findedAddress.emit(null)}render(){let e=(0,i.h)("div",{key:"d9f37bed0afc507323bf45b6eeafc7ffce71940b",class:"row"},(0,i.h)("div",{key:"95a4c8d78cfc05ff19e23c8538fde531895786fb",class:"col-12 col-xs-12 col-sm-12 form-group"},(0,i.h)("div",{key:"cf7c7c760e1a53a1cdab351bed5db9055c874523",class:"google-map"},(0,i.h)("label",{key:"1bb2b35d1f269386275f33f15d858c2149342bd3"},"Dirección",(0,i.h)("span",{key:"7de7d735d9923137982d7a337595e5a491342605",class:"myaddr-required"},"*")),(0,i.h)("div",{key:"af624773fc9c1b87383776a50947a33cb2e242f2",class:"gm-input"},(0,i.h)("input",{key:"2d9d084fb7275e6df90398705d7e5627ee0588b0",type:"text",class:"custom-search form-control",value:this.gAddress,id:"gAddress",placeholder:"Introduzca dirección",onKeyDown:e=>this.buscarConEnter(e),onInput:e=>this.getPredictions(e),autocorrect:"off",autocapitalize:"off",spellcheck:"off"}))))),t=(0,i.h)("div",{key:"dec8675be0de1f6e4e922e1ce835c70b48ac4357",class:"form-group",id:"selects"},(0,i.h)("div",{key:"794cacba30161614f11ed9fbec14d5bf0c634707",class:"row"},(0,i.h)("div",{key:"18afbc11b3e885b1fcac1aaf4208b3773cfba8c7",class:"numero col-6 col-sm-4 col-md-3 col-lg-3"},(0,i.h)("label",{key:"d2a298d862e3cf59efacd21f25dd2424c3bf16b6"},"Número",(0,i.h)("span",{key:"cf21b2e6751b8ad55242a2e263d65483373cff94",class:this.required?"myaddr-required":""},this.required?"*":"")),(0,i.h)("myaddr-select",{key:"d5a7ae36ebd9fa4564df531a7472d40ec4046bc9",idSelect:"numeroSelected",onEventOnChange:e=>this.consultarDireccion(e)},(0,i.h)("option",{key:"d68ebcd130f12fd375f304acb10155f245bb106b",selected:!0,disabled:!1,value:""}),this.portales.map((e=>(0,i.h)("option",{value:e,key:e},e))))),(0,i.h)("div",{key:"70712354723bd3e0317b3f6025a76abd952eb53e",class:"sin-numero col-6 col-sm-4 col-md-3 col-lg-3"},(0,i.h)("label",{key:"909da6703232ae10f20f3e0942bd4022f16a6310"},"Sin número"),(0,i.h)("myaddr-check",{key:"b48a3495ec26a1d5457c44d1554cf044414fbbbb",idCheck:"sinNumero",onEvento:e=>{this.changeWithoutNumber(e)}})))),a=(0,i.h)("div",{key:"889123cee16c7b4b564f1d449664fb82ec15aa6
27",onClick:()=>this.goToAutoComplete(),innerHTML:Ee.canalConfig.texto_form_alt_guiado_fast}),o=[];return o.push(e),this.showTextoFormGuiadoFast&&o.push(a),this.googleAddressHasNumber&&this.showSelects&&o.push(t),!this.showSelects&&o.length>2&&o.splice(2,1),(0,i.h)("div",{key:"1608c289f0da33ab03ddff63f146dbe012150a93",class:"search-form"},(0,i.h)("form",{key:"006d34fc40e1c52ac93e1120ebbbc86cbb8d80c8",name:"searchForm"},o))}get searchElementHtml(){return(0,i.g)(this)}static get watchers(){return{gAddress:["changegAddress"]}}};Re.style=".google-map {\n  .gm-input {\n    .input-search.into-mapbox {\n      position: absolute;\n      top: 6px;\n      left: 20px;\n      z-index: 10;\n    }\n  }\n  .gm-map {\n    -moz-box-shadow:    0px 1px 6px 4px #ccc;\n    -webkit-box-shadow: 0px 1px 6px 4px #ccc;\n    box-shadow:         0px 1px 6px 4px #ccc;\n    #gm-map {\n      height: 400px;\n      .gm-style .gm-iv-container,\n      .gm-style .gm-iv-address {\n        // Exceptional use of !important, to fix google streetview info inline styles\n        margin-top: 60px!important;\n      }\n      .gm-iv-address-link,\n      .gm-iv-marker {\n        margin-top: 50px!important;\n      }\n    }\n    @media (max-width: 440px) {\n      #gm-map {\n        height: 300px;\n      }\n    }\n  }\n}\n.address-info {\n  margin-bottom: 30px;\n  text-align: left;\n  .address {\n    h2 {\n      margin-bottom: 10px;\n    }\n    span {\n      font-size: 1em;\n      font-weight: normal;\n      display: block;\n    }\n  }\n  .coordenates {\n    h4,\n    span {\n      display: inline;\n    }\n    span {\n      margin-left: 10px;\n    }\n  }\n  .search-address {\n    margin-top: 10px;\n  }\n  .alternative-search-address {\n    margin-top: 50px;\n    .btn {\n      margin: 5px 0!important;\n    }\n  }\n}\n\n.custom-search {\n  border-color: rgb(204,204,204);\n  position: static;\n  width: 100%;\n  height: 40px;\n  padding: 4px 8px\n}\n\n\n  .numero,\n  .sin-numero {\n    display: inline-block;\n  }\n\n  .no-direccion {\n    z-index: 5000;\n    top: 219px;\n    position: relative\n  }\n\n  .color-primary {\n    color: #ff7900;\n    text-decoration: none;\n}\n";
2const De=[{name:"Acces",value:"ACCES",id:1},{name:"Acceso",value:"ACCESO",id:1},{name:"Agrupación",value:"AGRUPACION",id:174},{name:"Alameda",value:"ALAMEDA",id:4},{name:"Apartamento",value:"APARTAMENTO",id:11},{name:"Avenida",value:"AVENIDA",id:21},{name:"Avinguda",value:"AVINGUDA",id:21},{name:"Baixada",value:"BAIXADA",id:22},{name:"Bajada",value:"BAJADA",id:22},{name:"Barri",value:"BARRI",id:19},{name:"Barriada",value:"BARRIADA",id:20},{name:"Barrio",value:"BARRIO",id:19},{name:"Bloque",value:"BLOQUE",id:26},{name:"Calexon",value:"CALEXON",id:69},{name:"Calle",value:"CALLE",id:31},{name:"Calleja",value:"CALLEJA",id:45},{name:"Callejón",value:"CALLEJON",id:69},{name:"Cami",value:"CAMI",id:135},{name:"Camino",value:"CAMINO",id:135},{name:"Carrer",value:"CARRER",id:31},{name:"Carrero",value:"CARRERO",id:55},{name:"Carretera",value:"CARRETERA",id:67},{name:"Casa",value:"CASA",id:190},{name:"Chalet",value:"CHALET",id:196},{name:"Colonia",value:"COLONIA",id:50},{name:"Cuesta",value:"CUESTA",id:5},{name:"Diseminado",value:"DISEMINADO",id:165},{name:"Edifici",value:"EDIFICI",id:209},{name:"Edificio",value:"EDIFICIO",id:210},{name:"Estrada",value:"ESTRADA",id:81},{name:"Glorieta",value:"GLORIETA",id:25},{name:"Grup",value:"GRUP",id:82},{name:"Grupo",value:"GRUPO",id:82},{name:"Kalea",value:"KALEA",id:31},{name:"Lugar",value:"LUGAR",id:104},{name:"Mercado",value:"MERCADO",id:243},{name:"Mercat",value:"MERCAT",id:244},{name:"Paraje",value:"PARAJE",id:117},{name:"Paratge",value:"PARATGE",id:117},{name:"Parc",value:"PARC",id:112},{name:"Parque",value:"PARQUE",id:112},{name:"Partida",value:"PARTIDA",id:118},{name:"Pasaje",value:"PASAJE",id:117},{name:"Paseio",value:"PASEIO",id:95},{name:"Paseo",value:"PASEO",id:95},{name:"Passeig",value:"PASSEIG",id:95},{name:"Plaça",value:"PLACA",id:76},{name:"Plaza",value:"PLAZA",id:76},{name:"Plazuela",value:"PLAZUELA",id:107},{name:"Poblado",value:"POBLADO",id:159},{name:"Polígon",value:"POLIGON",id:109},{name:"Polígono",value:"POLIGONO",id:109},{name:"Praza",value:"PRAZA",id:115},{name:"Prolongación",value:"PROLONGACION",id:116},{name:"Rambla",value:"RAMBLA",id:127},{name:"Ronda",value:"RONDA",id:129},{name:"Rúa",value:"RUA",id:31},{name:"Senda",value:"SENDA",id:62},{name:"Sendero",value:"SENDERO",id:134},{name:"Subida",value:"SUBIDA",id:91},{name:"Torrent",value:"TORRENT",id:138},{name:"Torrente",value:"TORRENTE",id:138},{name:"Travessera",value:"TRAVESSERA",id:137},{name:"Travesía",value:"TRAVESIA",id:137},{name:"Travessía",value:"TRAVESSIA",id:137},{name:"Urbanizació",value:"URBANITZACIO",id:140},{name:"Urbanización",value:"URBANIZACION",id:140}],Ve=class{constructor(e){(0,i.r)(this,e),this.addrselected=(0,i.c)(this,"addrselected",7),this.emitHideDetail=(0,i.c)(this,"emitHideDetail",7),this.emitGoTo=(0,i.c)(this,"emitGoTo",7),this.emitHideViviendas=(0,i.c)(this,"emitHideViviendas",7),this.listaOrdenadaFiltros=[{name:"Provincia",disable:!1,dato:""},{name:"Poblacion",disable:!0,dato:""},{name:"Via",disable:!0,dato:""},{name:"TipoVia",disable:!0,dato:""},{name:"Numero",disable:!0,dato:""}],this.poblaciones=[],this.sinNumero=!0,this.viasDisp=[],this.portales=[],this.address=void 0,this.showInfo=!0,this.fromMap=!1,this.tipoVia=void 0,this.hideInicio=!1}componentWillLoad(){this.address&&(this.listaOrdenadaFiltros[0].dato=this.address.provincia,this.listaOrdenadaFiltros[1].dato=this.address.poblacion,this.listaOrdenadaFiltros[2].dato=this.address.via,this.listaOrdenadaFiltros[3].dato=this.address.tipoVia,this.listaOrdenadaFiltros[4].dato="1"!==this.address.numero.toString()?this.address.numero.toString():""),this.poblaciones=[],this.viasDisp=[],this.portales=[],this.hideInicio="COMPLETO"===Ee.canalConfig.formulario_alternativo}clean(e,t){if(null===e.data){let e=t+1;for(;e<this.listaOrdenadaFiltros.length;e++)1==e?this.poblaciones=[]:2==e?this.listaOrdenadaFiltros[2].dato="":3==e?(this.viasDisp=[],this.tipoVia=null):4==e&&(this.portales=[],this.sinNumero=!0),this.listaOrdenadaFiltros[e].disable=!0,this.listaOrdenadaFiltros[e].dato=null;this.emitHideDetail.emit(!0)}}getProvincias(){let e=[];return ve.forEach((t=>{e.push({name:t.name,value:t.id})})),e}getTipoViasName(){if(this.tipoVia)return this.tipoVia.name}getTipoViasG(){if(this.tipoVia)return this.tipoVia.tipoViaG}emite(e){this.addrselected.emit(e.detail)}gotToDetail(){Ee.consultaPortalesArvato(this.listaOrdenadaFiltros[1].dato,this.listaOrdenadaFiltros[3].dato,this.listaOrdenadaFiltros[4].dato,this.listaOrdenadaFiltros[0].dato).subscribe({next:e=>{this.addrselected.emit(e)}})}changeWithoutNumber(e){e.detail?pe(this.searchElementHtml.querySelector("#numeroSelected")).setAttribute("disabled","true"):pe(this.searchElementHtml.querySelector("#numeroSelected")).removeAttribute("disabled"),this.showViviendas("0")}showViviendas(e){this.listaOrdenadaFiltros[4].dato&&this.listaOrdenadaFiltros[4].dato!==e&&this.emitHideViviendas.emit(!0),this.listaOrdenadaFiltros[4].dato=e,Ee.consultaPortalesArvato(this.listaOrdenadaFiltros[1].dato,this.listaOrdenadaFiltros[3].dato,e,this.listaOrdenadaFiltros[0].dato).subscribe({next:e=>{this.addrselected.emit(e),this.hideInicio=!1}})}setupVia(e){this.listaOrdenadaFiltros[3].dato&&this.listaOrdenadaFiltros[3].dato!==e.detail.via&&this.emitHideViviendas.emit(!0),this.listaOrdenadaFiltros[3].dato=e.detail.via,this.tipoVia=De.filter((t=>
2t.id===e.detail.tipoViaG&&t.value===e.detail.tipoVia))[0],this.enableNext("Numero"),this.sinNumero=!1}setupPoblacion(e){if(this.listaOrdenadaFiltros[1].dato&&this.listaOrdenadaFiltros[1].dato!==e.detail){this.emitHideViviendas.emit(!0);const e=new InputEvent("input",{data:null,bubbles:!1,cancelable:!1});this.clean(e,1),this.searchElementHtml.querySelector("#Via").clean()}this.listaOrdenadaFiltros[1].dato=e.detail,this.enableNext("Via")}enableNext(e){const t=this.listaOrdenadaFiltros.findIndex((t=>t.name===e));this.listaOrdenadaFiltros[t].disable=!1,this.portales=[]}getPortales(){Ee.consultaPortalesGescal(this.listaOrdenadaFiltros[1].dato,this.listaOrdenadaFiltros[3].dato).subscribe({next:e=>{this.portales=e}})}setValues(e,t){const a=e.target.value;switch(t){case"Poblacion":this.poblaciones.length=0,a.length>=2&&Ee.consultaPoblacion(this.listaOrdenadaFiltros[0].dato,a).subscribe({next:e=>{this.poblaciones=e},error:e=>{console.log("error ",e)}});break;case"Via":a.length>=2&&(this.viasDisp.length=0,Ee.consultaVia(this.listaOrdenadaFiltros[1].dato,this.listaOrdenadaFiltros[2].dato,a).subscribe({next:e=>{this.viasDisp=e},error:e=>{console.log("error ",e)}}))}}render(){let e=[],t=(0,i.h)("section",{key:"cc7f79cb1d966b7ad4b4e4320e161c109c352d85",id:"address-details"},(0,i.h)("address-detail",{key:"2cf5b00ce33392dd7169f00fae7d44fd2ffeae89",address:this.address,onSubeEventoEvent:e=>this.emite(e),onEventoInicio:()=>this.goToInicio(),onEventoHide:e=>this.hideDetail(e)})),a=(0,i.h)("div",{key:"034e6d4cce3d8a04b07259c1e4ea790a86d319a9",id:"guided-search"},(0,i.h)("div",{key:"e8d483af01b5e1e4a93bea9847744966bd41b4f2",class:"search-form"},(0,i.h)("div",{key:"cb79f1ee986af87c79b7fbfcd9b2cef6984d86c2",class:"row"},(0,i.h)("div",{key:"950052543423a543e16477e7c30ab32387752f3e",class:"col-12 col-xs-12 col-sm-3 form-group"},(0,i.h)("auto-complete",{key:"e4d17d9e431ff9ac223dd04e6cb6bed493799d71",itemsAutoComplete:this.getProvincias(),id:"Provincia",name:"Provincia",label:"Provincia",onInput:e=>this.clean(e,0),onEventSelect:e=>{this.setUpProvincia(e),this.enableNext("Poblacion")},disabled:!1,selected:this.listaOrdenadaFiltros[0].dato&&this.fromMap?this.listaOrdenadaFiltros[0].dato:""})),(0,i.h)("div",{key:"1a133fe47d94e055829fe4bc4e5b464560123a38",class:"col-12 col-xs-12 col-sm-9 form-group"},(0,i.h)("auto-complete",{key:"2e865d1517fdda6c82c434851a7b8a8ce5b863b2",id:"Poblacion",itemsAutoComplete:this.poblaciones,name:"Poblacion",label:"Poblacion",disabled:this.listaOrdenadaFiltros[1].disable,onInput:e=>{this.clean(e,1),this.setValues(e,"Poblacion")},onEventSelect:e=>{this.setupPoblacion(e)},selected:this.listaOrdenadaFiltros[1].dato&&this.fromMap?ue(this.listaOrdenadaFiltros[1].dato):""})),(0,i.h)("div",{key:"b78bdcba832c60b6de7603162bc2dafcbb191ba8",class:"col-12 col-xs-12 col-sm-9 form-group"},(0,i.h)("auto-complete",{key:"03cec8c3f8310d00f8a032fd16a780e51e52beb5",id:"Via",itemsAutoComplete:this.viasDisp,name:"Via",label:"Dirección",disabled:this.listaOrdenadaFiltros[2].disable,onInput:e=>{this.clean(e,2),this.setValues(e,"Via")},onEventSelect:e=>{this.setupVia(e),this.getPortales()},selected:this.listaOrdenadaFiltros[2].dato&&this.fromMap?ue(this.listaOrdenadaFiltros[3].dato):""})),(0,i.h)("div",{key:"55e71ac11530ba066195382827f3b5d044345672",class:"col-12 col-xs-12 col-sm-3 form-group"},(0,i.h)("myaddr-input",{key:"bd93cca7c423f8f59a67a09d8876fac4420121cb",id:"TipoVia",label:"Tipo de Via",value:this.getTipoViasG(),placeholder:this.getTipoViasName(),disabled:!0})),!this.fromMap&&(0,i.h)(i.F,{key:"e169f6d0e30ceb00c76152d31bcfab8743e5637d"},(0,i.h)("div",{key:"fc17be4751ec674f7145f1a692728b59a7e58b2a",class:"numero col-12 col-xs-12 col-sm-3 form-group"},(0,i.h)("myaddr-select",{key:"9055d813a3e8b407b7be95eb2758475fbd1f2caa",idSelect:"numeroSelected",disabled:this.sinNumero,label:"Número",onEventOnChange:e=>{this.showViviendas(e.detail)}},(0,i.h)("option",{key:"9390aab66aac5047ab294ea772b572b89995e907",selected:!0,disabled:!1,value:""}),this.portales.map((e=>(0,i.h)("option",{value:e.name,key:e.name},e.name))))),(0,i.h)("div",{key:"9c5131f59020170f1fa92eeb72d1a3bceb0effc0",class:"sin-numero col-12 col-xs-12 col-sm-9 form-group"},(0,i.h)("label",{key:"e864f2a78eafb9af481f22644d53cd38e7e4b340"},"Sin número"),(0,i.h)("myaddr-check",{key:"9b6b67430668c6a0c0cb97513c48c209c2f36855",
2idCheck:"sinNumero",disabled:this.sinNumero,onEvento:e=>{this.changeWithoutNumber(e)}}))),this.fromMap&&(0,i.h)(i.F,{key:"0a298c2c908918dc14889f90146f5ba3e5f16ed9"},(0,i.h)("div",{key:"757f2ab4e45db8cec3396e34a4e1c0d1d1ded805",class:"numero col-12 col-xs-12 col-sm-3 form-group"},(0,i.h)("myaddr-select",{key:"064fa8555260f123dab8f240268e8b64241c8c2b",idSelect:"numeroSelected",disabled:this.sinNumero,label:"Número",onEventOnChange:e=>{this.showViviendas(e.detail)}},(0,i.h)("option",{key:"143d6a444406173e1042351ca92935ff5183a191",selected:!0,disabled:!1,value:""}),this.portales.map((e=>(0,i.h)("option",{value:e.name,key:e.name},e.name))))),(0,i.h)("div",{key:"750a7e2d33086c92e9d6af79871b198ee5973c04",class:"sin-numero col-12 col-xs-12 col-sm-9 form-group"},(0,i.h)("label",{key:"0b37483bd4ebf93996d38ff9d0bda0abbb8f9295"},"Sin número"),(0,i.h)("myaddr-check",{key:"7e2c8db47862e651200fe31e1dd9d11a6d297aab",idCheck:"sinNumero",disabled:this.sinNumero,onEvento:e=>{this.changeWithoutNumber(e)}})),(0,i.h)("div",{key:"ff9a8c4891e581c683b48bf8337a31ee25a527e7",class:"row"},this.hideInicio&&(0,i.h)("div",{key:"235159dd04c067a7f761f17904c66e9cca695bc5",class:"col-12 col-xs-12 mt-3"},(0,i.h)("div",{key:"71011bddaeebb16496b0b221362f27687ba3c1b0"},(0,i.h)("button",{key:"a9ecd2e215324965f3dac8e6d84874bdf52cf802",class:"btn btn-default btn-md",onClick:()=>this.goToInicio()},"Volver a inicio"))))))));return e.push(a),this.address&&this.showInfo&&e.push(t),e}setUpProvincia(e){if(this.listaOrdenadaFiltros[0].dato&&this.listaOrdenadaFiltros[0].dato!==e.detail){this.emitHideViviendas.emit(!0);const e=new InputEvent("input",{data:null,bubbles:!1,cancelable:!1});this.clean(e,0),this.searchElementHtml.querySelector("#Poblacion").clean(),this.searchElementHtml.querySelector("#Via").clean()}this.listaOrdenadaFiltros[0].dato=e.detail}hideDetail(e){this.showInfo=e.detail}goToInicio(){this.emitGoTo.emit("MAP_SEARCH")}get searchElementHtml(){return(0,i.g)(this)}};Ve.style=":host{display:block}";const Fe=class{constructor(e){(0,i.r)(this,e),this.evento=(0,i.c)(this,"evento",7),this.disabled=!1,this.idCheck="",this.label=void 0}render(){return(0,i.h)("div",{key:"72e523cf71ef5c4c84c48fc086ade2ba21882634",class:"myaddr-checkbox-radio myaddr-no-border"},(0,i.h)("div",{key:"e74d36a9ed0b7ff850d18dad25d2bce4c6f7b097",class:"myaddr-checkbox"},(0,i.h)("input",{key:"bd12fb3cae9a7b7655a8c1518d4747712766b13c",disabled:this.disabled,id:this.idCheck,type:"checkbox",onChange:e=>this.click(e)}),(0,i.h)("label",{key:"c64264e2420d4dc4d9ce26e02a47452ba5a56a22",htmlFor:this.idCheck},(0,i.h)("slot",{key:"b3366719c3056e13a6d149c6d52cb7b6ac05f9d5"}),this.label)))}click(e){this.evento.emit(e.target.checked)}habilita(e,t){const a=be(this.searchElement.querySelector("#"+this.idCheck));e!=t&&e?a.getAttribute("disabled")||a.setAttribute("disabled","true"):a.removeAttribute("disabled")}get searchElement(){return(0,i.g)(this)}static get watchers(){return{disabled:["habilita"]}}};Fe.style=':host{display:block}.myaddr-checkbox{margin-bottom:10px}.myaddr-checkbox-radio .myaddr-checkbox label{padding-bottom:2px;padding-left:30px;position:relative;vertical-align:top;line-height:1.8rem;color:#000}.myaddr-checkbox-radio .myaadr-checkbox label:before{content:"";border-style:solid;border-width:2px;border-color:#cccccc;position:absolute;top:0;left:0;transition:border 0.15s ease-in-out, color 0.15s ease-in-out, background-color 0.15s ease-in-out;width:20px;height:20px;background-color:#fff}.myaddr-checkbox-radio .myaddr-checkbox input[type=checkbox],.myaddr-checkbox-radio .myaddr-checkbox input[type=radio]{opacity:0;position:absolute;z-index:1}.myaddr-checkbox-radio .myaddr-checkbox input{margin:0;-webkit-appearance:none;overflow:visible;font-family:"Helvetica-Neue-Family", Arial, sans-serif;font-weight:bold;line-height:inherit;border-radius:0}.myaddr-no-border{border-bottom-width:0}.myaddr-checkbox-radio .myaddr-checkbox label:before{content:"";border-style:solid;border-width:2px;border-color:#cccccc;position:absolute;top:0;left:0;transition:border 0.15s ease-in-out, color 0.15s ease-in-out, background-color 0.15s ease-in-out;width:20px;height:20px;background-color:#fff}.myaddr-checkbox-radio .myaddr-checkbox label:after{margin-right:auto;margin-left:auto;position:absolute;top:0;bottom:0;left:0;width:20px;height:20px}@media only screen and (min-width: 1280px){.myaddr-checkbox-radio .myaddr-checkbox input[type=checkbox]:focus+label:before,.myaddr-checkbox-radio .myaddr-checkbox input[type=radio]:focus+label:before{outline-width:1px;outline-style:solid;outline-offset:2px;outline-color:#ff6300}}.myaddr-checkbox-radio .myaddr-checkbox input[type=checkbox]:checked+label:before,.myaddr-checkbox-radio .myaddr-checkbox input[type=radio]:checked+label:before{border-color:#ff7900;background-color:#ff7900}.myaddr-checkbox-radio .myaddr-checkbox input[type=checkbox]:checked+label:after,.myaddr-checkbox-radio .myaddr-checkbox input[type=radio]:checked+label:after{content:"";background-image:url(\'data:image/svg+xml;utf8,<svg width="40" height="31" viewBox="0 0 40 31" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M34.6667 0L13.3333 20.6667L5.33333 12.9167L0 18.0833L13.3333 31L40 5.16667L34.6667 0Z" fill="black"/></svg>\');background-repeat:no-repeat;background-position:center;background-size:calc(100% - 4px)}@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none){.myaddr-checkbox-radio .myaddr-checkbox input[type=checkbox]:checked+label:after,.myaddr-checkbox-radio .myaddr-checkbox input[type=radio]:checked+label:after{border-style:solid;border-width:0 3px 3px 0;border-color:#000;top:2px;left:7px;display:inline-block;transform:rotate(45deg);width:7px;height:14px}}.myaddr-checkbox-radio .myaddr-checkbox input[type=checkbox]:indeterminate+label:before,.myaddr-checkbox-radio .myaddr-checkbox input[type=radio]:indeterminate+label:before{border-color:#ff7900;background-color:#ff7900}.myaddr-checkbox-radio .myaddr-checkbox input[type=checkbox]:indeterminate+label:after,.myaddr-checkbox-radio .myaddr-checkbox input[type=radio]:indeterminate+label:after{content:"";display:block;width:10px;height:3px;margin-top:7px;margin-left:-16.5px;background-color:#545454}.myaddr-checkbox-radio .myaddr-checkbox input[type=checkbox]:disabled+label,.myaddr-checkbox-radio .myaddr-checkbox input[type=radio]:disabled+label{opacity:0.65}.myaddr-checkbox-radio .myaddr-checkbox input[type=checkbox]:disabled+label:before,.myaddr-checkbox-radio .myaddr-checkbox input[type=radio]:disabled+label:before{background-color:#ededed;cursor:not-allowed}.myaddr-checkbox-radio .myaddr-checkbox input[type=checkbox]:disabled:checked+label,.myaddr-checkbox-radio .myaddr-checkbox input[type=radio]:disabled:checked+label{opacity:0.65}.myaddr-checkbox-radio .myaddr-checkbox input[type=checkbox]:disabled:checked+label:before,.myaddr-checkbox-radio .myaddr-checkbox input[type=radio]:disabled:checked+label:before{background-color:#ff7900;border-color:#ff7900}';const Me=class{constructor(e){(0,i.r)(this,e),this.eventInput=(0,i.c)(this,"eventInput",7),this.idInput=void 0,this.label=void 0,this.maxlength=5,this.validator=void 0,this.value=void 0,this.placeholder=void 0,this.disabled=!1}componentDidLoad(){this.regexValid=new RegExp(this.validator)}render(){return(0,i.h)("div",{key:"a5a5d65d6597a050125a1a0ca80e2aefd6ed03bb",style:{position:"relative"}}
2,(0,i.h)("label",{key:"0ff9131c687c67a47d289bedd593c44d49e1cf16",style:{width:"100%"}},(0,i.h)("span",{key:"2d1fce68e44591383360e0abb2b0115a448b0868"},this.label),(0,i.h)("span",{key:"b15953ffc91c9e6ca86b275ad338b74da3f2792e",style:{position:"relative",display:"block",width:"100%"}},(0,i.h)("input",{key:"7d51505eb3e366702463ecdb05a24cd334b790db",disabled:this.disabled,type:"text",id:this.idInput,style:{marginTop:"2px"},class:"form-control",maxlength:this.maxlength,value:this.value,placeholder:this.placeholder}))))}async isValid(){const e=be(this.el.querySelector("#"+this.idInput));return!(""!==e.value&&!e.getAttribute("hidden"))||this.regexValid.test(e.value)}get el(){return(0,i.g)(this)}},He=class{constructor(e){(0,i.r)(this,e),this.pathImg=void 0,this.showCloseIcon=!0,this.ignoreBackdropClick=!0,this.closeOnEscape=!0,this.fullScreen=!1,this.fullScreenCentered=!1,this.framed=!1,this.fullScreenFixed=!1,this.size="md",this.position="",this.overlay=!0,this.classeName=void 0,this.type=void 0,this.idModal=void 0,this.show=!0,this.opened=!0}async open(){this.show=!0,this.opened=!0}async close(e){if(this.show=!1,this.opened=!1,e){const e=document.querySelector("fast-search");e.componentOnReady().then((()=>{e.cleanInput()}))}}render(){return(0,i.h)(i.F,{key:"b83a3856a104cebf64126ef98a08eea0236b4da6"},(0,i.h)("div",{key:"33cfb8d966250fe5ef59e8198d675b42ef03169a",class:this.show?"modal-backdrop fade show":"modal-backdrop fade",style:{display:this.opened?"block":"none"},onClick:()=>!this.ignoreBackdropClick&&this.close(!1)}),(0,i.h)("div",{key:"18da37c3aa5c03871f775bee397646efc06789ba",id:this.idModal,"aria-hidden":"true","aria-labelledby":"",class:this.show?"modal fade show":"modal fade",role:"dialog",tabindex:"-1",onClick:()=>this.ignoreBackdropClick?null:this.close(!1),style:{display:this.opened?"block":"none"}},(0,i.h)("div",{key:"95b6d9579e6896d2b33177a8661b2997e3e8393f",class:"content-modal"},(0,i.h)("div",{key:"7733a6331024aaabb5cab03db6979e966f33c887",class:"modal-dialog",role:"document"},(0,i.h)("div",{key:"575d3c78d5e1c90fd4590329b980deb7ddcd2a93",class:"modal-content"},(0,i.h)("div",{key:"a1eeceeed52c2d4050430db725794f28761cac5b",class:"modal-header"},(0,i.h)("slot",{key:"c4ed07dcac9bddba9fcb22e4ade6ffdb840b6ff4",name:"modal-header"}),(0,i.h)("button",{key:"106d6a6be74afb3a6664bfd3246e552bbd3f3e35","aria-label":"Close",class:"close","data-dismiss":"modal",title:"Cerrar ventana modal",type:"button",onClick:()=>this.close(!0)},(0,i.h)("svg",{key:"03c21243bcc123370af25f862b15d3a6165ad984",class:"myaddr-close-svg","aria-labelledby":"titleCerrar1_toClone iconCerrar1_toClone",height:"18px",role:"img",viewBox:"0 0 64 64",width:"18px",xmlns:"http://www.w3.org/2000/svg"},(0,i.h)("title",{key:"58e1a5ba8ded61f9f6e88170a242a9c1919140a9",id:"titleCerrar1_toClone"},"Icono cerrar"),(0,i.h)("desc",{key:"30d1a4756a7b19204b5151d39c2eaf3006d97969",id:"iconCerrar1_toClone"},"Un icono en forma de aspa de cierre"),(0,i.h)("path",{key:"39975bd515169fe17ba918785679354a69dbcf2a",d:"M57.34,57.07a6.75,6.75,0,0,1-9.53,0L32,41.25,16.19,57.07a6.74,6.74,0,0,1-9.53-9.54L22.47,31.72,7.23,16.47a6.74,6.74,0,0,1,9.53-9.54L32,22.19,47.25,6.93a6.74,6.74,0,1,1,9.52,9.54L41.53,31.72,57.34,47.53A6.75,6.75,0,0,1,57.34,57.07Z",transform:"translate(-4.69 -4.96)"})),(0,i.h)("span",{key:"723e36d2369d9d47056194ba246561857b96215d",class:"hide-text"},"Cerrar ventana modal"))),(0,i.h)("div",{key:"b8d8bf39c4c341eee42ff1781f73013a6ed757ba",class:"modal-body__my-address"},(0,i.h)("slot",{key:"41c9adf6e63babca3ee07f2517ff7726f2261204",name:"modal-body"})),(0,i.h)("div",{key:"557df0bc906cfc519e6b4957f51201c6cc1e9198",class:"modal-footer"},(0,i.h)("slot",{key:"d2c560e2ad1d81ed61f6966c7443dd8c00c839d8",name:"modal-footer"})))))))}get searchElement(){return(0,i.g)(this)}};He.style=".modal-body__my-address{padding:10px 20px;position:relative;overflow-x:auto;overflow-y:auto;flex:1 1 auto;max-height:30vh}.modal-body__my-address ul{margin-top:10px;margin-bottom:20px;padding-right:0;padding-left:0;font-family:helvetica-neue-family,Arial,sans-serif}.modal-body__my-address .item-result{display:flex;justify-content:space-between;align-items:end;cursor:pointer;font-family:var(--hl-font-family-body);font-size:var(--hl-font-size-md);
2font-weight:var(--hl-font-weight-body-regular);line-height:var(--hl-line-height-lg);color:var(--hl-color-text-light-fg);padding:var(--hl-spacer-sm) 0;margin-bottom:0;border:none;border-top:var(--hl-border-width-default) solid var(--hl-color-border-light-default)}.modal-body__my-address .item-result:last-child{border-bottom:var(--hl-border-width-default) solid var(--hl-color-border-light-default)}.modal-body__my-address .item-result::after{color:var(--hl-color-primary);margin-left:var(--hl-spacer-sm);content:\"\";height:var(--hl-size-icon-md);width:var(--hl-size-icon-md);background-color:currentColor;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 19L15 14L17 12L15 10L10 5L8 7L13 12L8 17L10 19Z' fill='currentColor'%3E%3C/path%3E%3C/svg%3E\");-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain;mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 19L15 14L17 12L15 10L10 5L8 7L13 12L8 17L10 19Z' fill='currentColor'%3E%3C/path%3E%3C/svg%3E\");mask-repeat:no-repeat;mask-size:contain}.modal-body__my-address .item-result:hover,.modal-body__my-address .item-result:focus{border-color:var(--hl-color-border-light-interaction-hover);color:var(--hl-color-text-light-interaction-hover)}.modal-body__my-address .item-result:hover::after,.modal-body__my-address .item-result:focus::after{color:currentColor}.modal-body__my-address .item-result:hover+.item-result,.modal-body__my-address .item-result:focus+.item-result{border-top-color:var(--hl-color-border-light-interaction-hover)}.modal-body__my-address .item-result:active,.modal-body__my-address .item-result.active{border-color:var(--hl-color-border-light-interaction-active);color:var(--hl-color-text-light-interaction-active)}.modal-body__my-address .item-result:active::after,.modal-body__my-address .item-result.active::after{color:currentColor}.modal-body__my-address .item-result:active+.item-result,.modal-body__my-address .item-result.active+.item-result{border-top-color:var(--hl-color-border-light-interaction-active)}
2.modal-body__my-address .item-result span{display:flex;justify-content:center;align-items:center;flex:1;}.content-modal .modal-dialog .modal-content .myaddr-close-svg{align-self:center;transition:fill .2s ease-in;width:14px;height:14px;top:14px;right:7px}.hide-text{position:absolute;top:0;left:-999999px;overflow:hidden;height:0;line-height:0;text-indent:-999999px}";const Be=class{constructor(e){(0,i.r)(this,e),this.evento=(0,i.c)(this,"evento",7),this.disabled=!1,this.name=void 0,this.value=void 0,this.label=void 0,this.check=!1}onChangeEvent(e){this.evento.emit({value:this.value,check:e.target.checked})}render(){return(0,i.h)("div",{key:"590c7d534acf9934e7aeb12147321e6b2b4a3dea",class:"checkbox-radio"},(0,i.h)("div",{key:"8de71324f065935ad6ae344c75a8527134942421",class:"radio radio-primary"},(0,i.h)("input",{key:"fc3e947effd4971ec483a572b3d98937a5730b10",style:{marginTop:"8px"},disabled:this.disabled,type:"radio",id:this.name+this.value,name:this.name,value:this.value,checked:this.check,onChange:e=>this.onChangeEvent(e)}),(0,i.h)("label",{key:"d21a447a0cc805a1de1f32dea74f6eaf5788ced3",htmlFor:this.name+this.value},this.label,(0,i.h)("slot",{key:"abbef58c9ccf681db7931fcefb69b46ef25c8f17"}))))}};Be.style='.checkbox-radio .radio label{padding-bottom:2px;padding-left:10px;position:relative;vertical-align:top;line-height:1.8rem;color:#000;display:inline-block}.checkbox-radio .checkbox label:before{content:"";border-style:solid;border-width:2px;border-color:#cccccc;position:absolute;top:0;left:0;transition:border 0.15s ease-in-out, color 0.15s ease-in-out, background-color 0.15s ease-in-out;width:20px;height:20px;background-color:#fff}.checkbox-radio .checkbox label:after{margin-right:auto;margin-left:auto;position:absolute;top:0;bottom:0;left:0;width:20px;height:20px}.checkbox-radio .checkbox input[type=checkbox],.checkbox-radio .checkbox input[type=radio]{opacity:0;position:absolute;z-index:1}@media only screen and (min-width: 1280px){.checkbox-radio .checkbox input[type=checkbox]:focus+label:before,.checkbox-radio .checkbox input[type=radio]:focus+label:before{outline-width:1px;outline-style:solid;outline-offset:2px;outline-color:#ff6300}}.checkbox-radio .checkbox input[type=checkbox]:checked+label:before,.checkbox-radio .checkbox input[type=radio]:checked+label:before{border-color:#ff7900;background-color:#ff7900}.checkbox-radio .checkbox input[type=checkbox]:checked+label:after,.checkbox-radio .checkbox input[type=radio]:checked+label:after{content:"";background-image:url("../img/icons/type-checked--ok--black-brand-orange-state-default.svg");background-repeat:no-repeat;background-position:center;background-size:calc(100% - 4px)}@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none){.checkbox-radio .checkbox input[type=checkbox]:checked+label:after,.checkbox-radio .checkbox input[type=radio]:checked+label:after{border-style:solid;border-width:0 3px 3px 0;border-color:#000;top:2px;left:7px;display:inline-block;transform:rotate(45deg);width:7px;height:14px}}.checkbox-radio .checkbox input[type=checkbox]:indeterminate+label:before,.checkbox-radio .checkbox input[type=radio]:indeterminate+label:before{border-color:#ff7900;background-color:#ff7900}.checkbox-radio .checkbox input[type=checkbox]:indeterminate+label:after,.checkbox-radio .checkbox input[type=radio]:indeterminate+label:after{content:"";display:block;width:10px;height:3px;margin-top:7px;margin-left:-16.5px;background-color:#545454}.checkbox-radio .checkbox input[type=checkbox]:disabled+label,.checkbox-radio .checkbox input[type=radio]:disabled+label{opacity:0.65}.checkbox-radio .checkbox input[type=checkbox]:disabled+label:before,.checkbox-radio .checkbox input[type=radio]:disabled+label:before{background-color:#ededed;cursor:not-allowed}.checkbox-radio .checkbox input[type=checkbox]:disabled:checked+label,.checkbox-radio .checkbox input[type=radio]:disabled:checked+label{opacity:0.65}.checkbox-radio .checkbox input[type=checkbox]:disabled:checked+label:before,.checkbox-radio .checkbox input[type=radio]:disabled:checked+label:before{background-color:#ff7900;border-color:#ff7900}';const qe=class{constructor(e){(0,i.r)(this,e),this.eventOnChange=(0,i.c)(this,"eventOnChange",7),this.label=void 0,this.idSelect=void 0,this.disabled=!1}changeValue(e){this.eventOnChange.emit(e.target.value)}watchDisabled(e,t){const a=pe(this.element.querySelector(this.idSelect));e!==t&&a&&(e&&!a.getAttribute("disabled")?a.setAttribute("disabled","true"):a.removeAttribute("disabled"))}render(){let e=(0,i.h)("label",{key:"5aaeaf0684169209e8efa967888b3f9b898057a
2a",class:"control-label",htmlFor:this.label},this.label),t=(0,i.h)("div",{key:"039901dc8c3dc3f14d89bdbd31c18031780eb0c1"},(0,i.h)("select",{key:"477eb68b09e759ef4a853205e9facdcdbdecd8fc",id:this.idSelect,disabled:this.disabled,class:"myaddr-custom-select",onChange:e=>this.changeValue(e)},(0,i.h)("slot",{key:"7fcf3aaafc700ca01cf627edaf0d188e118f5335"}))),a=[];return this.label&&a.push(e),a.push(t),a}get element(){return(0,i.g)(this)}static get watchers(){return{disabled:["watchDisabled"]}}};qe.style=".myaddr-custom-select{display:inline-block;width:100%;height:calc(var(--hl-line-height-sm) * 1em + calc(var(--hl-spacer-sm)) * 2 + calc(var(--hl-border-width-default) * 2));padding:calc(var(--hl-spacer-sm)) calc((var(--hl-spacer-sm)) + var(--hl-spacer-xl)) calc(var(--hl-spacer-sm)) calc(var(--hl-spacer-sm));font-size:var(--hl-font-size-md);font-weight:var(--hl-font-weight-body-bold);line-height:var(--hl-line-height-sm);color:var(--hl-color-core-black);vertical-align:middle;background:var(--hl-color-core-white) url(\"data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0' mask-type='alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='40' height='40'%3E%3Crect width='40' height='40' fill='white'/%3E%3C/mask%3E%3Cg mask='url%28%23mask0%29'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M39 11L1 11L20 30L39 11Z' fill='black'/%3E%3C/g%3E%3C/svg%3E%0A\") right calc(var(--hl-spacer-sm)) center/14px 14px no-repeat;border:var(--hl-border-width-default) solid var(--hl-color-border-light-interaction-standby);border-radius:var(--hl-border-radius-default);appearance:none}.myaddr-custom-select option{font-weight:var(--hl-font-weight-body-bold)}.myaddr-custom-select:focus{border-color:var(--hl-color-border-light-interaction-active-alpha);outline:0}.myaddr-custom-select:focus::-ms-value{color:var(--hl-color-core-black);background-color:var(--hl-color-core-white)}.myaddr-custom-select[multiple],.myaddr-custom-select[size]:not([size=\"1\"]){height:auto;padding-right:calc(var(--hl-spacer-sm));background-image:none}.myaddr-custom-select:disabled{color:#999999;background-color:#F5F5F5}.myaddr-custom-select::-ms-expand{display:none}.myaddr-custom-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--hl-color-core-black)}.myaddr-custom-select[disabled]{border-color:#ccc;opacity:1;background-color:#ededed}";const Ge=class{constructor(e){(0,i.r)(this,e),this.eventTable=(0,i.c)(this,"eventTable",7),this.eventInicio=(0,i.c)(this,"eventInicio",7),this.eventHideDetail=(0,i.c)(this,"eventHideDetail",7),this.pages=[],this.totalPaginas=0,this.visiblePages=3,this.itemReview="page-item review",this.filters=void 0,this.data=[],this.maxElement=10,this.currentPage=1,this.columnaOrdenada="",this.direccionOrdenacion="asc",this.showAclaracionColumn=!1,this.selectedFila=void 0}componentDidLoad(){this.data.forEach((e=>{e.aclarador&&(this.showAclaracionColumn=!0)}))}
2componentWillRender(){if(this.totalPaginas=Math.ceil(this.data.length/this.maxElement),this.minPage=Math.max(1,this.currentPage-this.visiblePages),this.maxPage=Math.min(this.currentPage+this.visiblePages,this.totalPaginas),this.visiblePages){this.pages=[];let e,t=0;if(this.totalPaginas<=this.visiblePages)e=1,t=this.totalPaginas;else{let a=Math.floor(this.visiblePages/2),i=Math.ceil(this.visiblePages/2)-1;this.currentPage<=a?(e=1,t=this.visiblePages):this.currentPage+i>=this.totalPaginas?(e=this.currentPage-this.visiblePages+1,t=this.currentPage):(e=this.currentPage-a,t=this.currentPage+i)}this.pages=Array.from(Array(t+1-e).keys()).map((t=>e+t))}}render(){var e;const t=this.data.slice((this.currentPage-1)*this.maxElement,this.currentPage*this.maxElement);return(0,i.h)(i.F,null,(0,i.h)("table",{"aria-label":"Tabla",class:"table table-striped table-hover"},(0,i.h)("thead",null,(0,i.h)("tr",null,(0,i.h)("th",{class:"selected"}),null===(e=this.filters)||void 0===e?void 0:e.elements.map((e=>(0,i.h)("th",null,e.cabecera,(0,i.h)("svg",{style:{height:"auto",maxHeight:"20px"},width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,i.h)("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"40",height:"40"},(0,i.h)("rect",{width:"40",height:"40",fill:"white"})),(0,i.h)("g",{mask:"url(#mask0)"},(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 17L37 17L20 2.98023e-07L3 17Z",fill:"black",onClick:()=>this.ordernarPor(e.campo)}),(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M37 23L3 23L20 40L37 23Z",fill:"black",onClick:()=>this.ordernarPor(e.campo)})))))),this.showAclaracionColumn&&(0,i.h)("th",null,"Local Empresa",(0,i.h)("svg",{style:{height:"auto",maxHeight:"20px"},width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,i.h)("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"40",height:"40"},(0,i.h)("rect",{width:"40",height:"40",fill:"white"})),(0,i.h)("g",{mask:"url(#mask0)"},(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 17L37 17L20 2.98023e-07L3 17Z",fill:"black",onClick:()=>this.ordernarPor("aclarador_TR")}),(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M37 23L3 23L20 40L37 23Z",fill:"black",onClick:()=>this.ordernarPor("aclarador_TR")})))))),(0,i.h)("tbody",null,t.map(((e,t)=>(0,i.h)("tr",{style:{cursor:"pointer"},class:t===this.selectedFila?"selected":"",onClick:()=>this.emitRow(e,t)},(0,i.h)("td",null,(0,i.h)("span",null)),(0,i.h)("td",null,a(e.bis_TR)),(0,i.h)("td",null,a(e.bloque_TR)),(0,i.h)("td",null,a(e.puerta_TR)),(0,i.h)("td",null,a(e.letra_TR)),(0,i.h)("td",null,a(e.escalera_TR)),(0,i.h)("td",null,a(e.planta_TR)),(0,i.h)("td",null,a(e.mano1_TR)),(0,i.h)("td",null,a(e.mano2_TR)),this.showAclaracionColumn&&(0,i.h)("td",null,a(e.aclarador_TR))))))),(0,i.h)("footer",{class:"mt-2"},(0,i.h)("ul",{class:"pagination"},(0,i.h)("li",{class:this.currentPage===this.minPage?"page-item review disable":this.itemReview},(0,i.h)("button",{type:"button",tabindex:"-1",class:"page-link",onClick:()=>this.goToFirst()},(0,i.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 37 40",class:"icon-chevron"},(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.8934 19.5L34.8033 35.4099L31.2677 38.9454L11.8223 19.5L31.2677 0.0545581L34.8033 3.5901L18.8934 19.5ZM7.07105 19.5L22.981 35.4099L19.4454 38.9454L-1.69588e-05 19.5L19.4454 0.0545591L22.981 3.5901L7.07105 19.5Z"})))),(0,i.h)("li",{class:this.currentPage===this.minPage?"page-item review disable":this.itemReview},(0,i.h)("button",{type:"button",tabindex:"-1",class:"page-link",onClick:()=>this.cambiarPagina(this.currentPage-1)},(0,i.h)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"icon-chevron",viewBox:"0 0 40.1 63.3"},(0,i.h)("g",null,(0,i.h)("polygon",{points:"32.4 63.3 40.1 55.9 15.3 31.7 40.1 7.5 32.4 0 0 31.7 32.4 63.3"}))))),this.pages.map((e=>(0,i.h)("li",{class:e===this.currentPage?"page-item review active":"page-item review"},(0,i.h)("button",{type:"button",tabindex:"-1",class:"page-link",onClick:()=>this.cambiarPagina(e)},e)))),(0,i.h)("li",{class:this.currentPage===this.totalPaginas?"page-item forward disable":"page-item forward"},(0,i.h)("button",{class:"page-link",type:"button",name:"page",onClick:()=>this.cambiarPagina(this.currentPage+1)},(0,i.h)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"icon-chevron",viewBox:"0 0 40.1 63.3"},(0,i.h)("g",null,(0,i.h)("polygon",{points:"7.7 0 0 7.4 24.8 31.6 0 55.8 7.7 63.3 40.1 31.6 7.7 0"}))))),(0,i.h)("li",{class:this.currentPage===this.totalPaginas?"page-item forward disable":"page-item forward"},(0,i.h)("button",{class:"page-link",type:"button",name:"page","data-target":"",tabindex:"-1",onClick:()=>this.goToLast()},(0,i.h)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"icon-chevron",viewBox:"0 0 37 40"},(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.8198 19.5L0.909912 3.5901L4.44545 0.0545654L23.89
209 19.5L4.44545 38.9454L0.909912 35.4099L16.8198 19.5ZM28.6421 19.5L12.7322 3.5901L16.2678 0.0545654L35.7132 19.5L16.2678 38.9454L12.7322 35.4099L28.6421 19.5Z"}))))),(0,i.h)("div",{class:"row"},(0,i.h)("div",{class:"col-12 col-xs-12 mt-3"},(0,i.h)("button",{class:"btn btn-default btn-md",onClick:()=>this.hideDetails()},"Volver atras"),(0,i.h)("button",{class:"btn btn-default btn-md",onClick:()=>this.goToInicio()},"Volver a inicio")))));function a(e){return""!==e?e:"-"}}hideDetails(){this.eventHideDetail.emit(!0)}goToInicio(){this.eventInicio.emit("MAP_SEARCH")}emitRow(e,t){this.selectedFila=t,this.eventTable.emit(e)}goToLast(){this.currentPage=this.totalPaginas}goToFirst(){this.currentPage=1}cambiarPagina(e){this.currentPage=e}ordernarPor(e){this.columnaOrdenada===e?this.direccionOrdenacion="asc"===this.direccionOrdenacion?"desc":"asc":(this.columnaOrdenada=e,this.direccionOrdenacion="asc"),this.data=[...this.data].sort(((t,a)=>t[e]<a[e]?"asc"===this.direccionOrdenacion?-1:1:t[e]>a[e]?"asc"===this.direccionOrdenacion?1:-1:0))}get searchElement(){return(0,i.g)(this)}};Ge.style="ul{display:flex;list-style-type:disc;margin-block-start:1em;margin-block-end:1em;margin-inline-start:0px;margin-inline-end:0px;padding-inline-start:40px}li{list-style:none}.pagination{margin-top:0;margin-bottom:0;display:flex;flex-wrap:wrap;padding-left:0}.pagination .page-item{margin-right:2px;margin-bottom:0;background-color:transparent}.pagination .page-link{border-style:solid;border-width:2px;border-color:transparent;position:relative;min-width:40px;height:40px;font-size:1.6rem;line-height:1.6rem;color:#000;background-color:transparent;margin-top:8px}.pagination .page-link:hover,.pagination .page-link:focus{border-color:#cccccc}.pagination .page-link:active{border-color:#ff7900;color:#000;background-color:#ff7900}.page-item.review .page-link{margin-right:10px}.page-item.forward .page-link{margin-left:10px}.page-item.active .page-link{color:#fff;background-color:#000;cursor:default}.page-item.active .page-link:hover,.page-item.active .page-link:focus{border-color:#000}.page-item.active .page-link:active{border-color:#000;color:#fff;background-color:#000}.page-item.disable .page-link{cursor:not-allowed;border-color:#cccccc;color:#cccccc}.page-item.disable .page-link:hover,.page-item.disable .page-link:focus{border-color:#cccccc}.page-item.disable .page-link:active{border-color:#cccccc;color:#cccccc;background-color:#fff}.page-item.disable .icon-chevron polygon,.page-item.disable .icon-chevron path{fill:#cccccc}.pagination .icon-chevron{margin:auto;position:absolute;top:0;right:0;left:0;bottom:0;width:16px;height:16px}.pagination.justify-content-center{justify-content:center}.pagination.justify-content-end{justify-content:flex-end}.selected{width:50px}.selected td:first-child span{background:green;width:20px;height:20px;border-radius:50%;display:block;margin:2px auto}";const Ue=class{constructor(e){(0,i.r)(this,e),this.brand=void 0,this.address=void 0}render(){let e=[],t=(0,i.h)(i.F,{key:"b9ea7b461af70e737c533270ac774a23276203a5"},(0,i.h)("div",{key:"89a5ed73c041eccb1c046ac97d40842e17cdfa6d"},(0,i.h)("strong",{key:"1d9fb1d22e666fbd0bf17acac095438a901aa069"},"Provincia:"),(0,i.h)("span",{key:"a753c7e8053de11525af2a8e22d0fcf5ce00e4f9",class:"myaddr-info-span"},this.titleGuion(this.address.provincia))),(0,i.h)("div",{key:"706b5418864235503d255b576b2dd01b4eea28d1"},(0,i.h)("strong",{key:"b06a5494b569ec13769befb969120f8dee79297d"},"Municipio:"),(0,i.h)("span",{key:"2feb43ff31ad271f21d67160059d823b3c747870",class:"myaddr-info-span"},this.titleGuion(this.address.municipio))),(0,i.h)("div",{key:"9411ff90986c47162ef1608b22905f2fe12f7265"},(0,i.h)("strong",{key:"dd124a4432e93942b897df8f330936b809ce03e5"},"Población:"),(0,i.h)("span",{key:"e05f7acc61fb16c6b06b9e82d9e62f22fd612655",class:"myaddr-info-span"},this.titleGuion(this.address.poblacion))),(0,i.h)("div",{key:"67ff01e59164a9a996526cd806a303e661e19cc9"},(0,i.h)("strong",{key:"fb3bda768ff7d9fcaaa5f58e5d902b6483208c3b"},"Tipo de Vía:"),(0,i.h)("span",{key:"87081be9cf46faa9c9b5c61e7c406fb38cff95f7",class:"myaddr-info-span"},this.titleGuion(this.address.tipoVia))),(0,i.h)("div",{key:"ecce0c8472d022dac8d5e0e98120e4afddd5d08d"},(0,i.h)("strong",{key:"18827f10a6fd4186c225190757835dd8013683fb"},"Nombre de la Vía:"),(0,i.h)("span",{key:"c4388b62af8e07cf5cadd61808e729148677673f",class:"myaddr-info-span"}
2,this.titleGuion(this.address.via))),(0,i.h)("div",{key:"823b580699cd05b5d38ae55268dd389de297d85c"},(0,i.h)("strong",{key:"ce265adf91cb2e55690fc7171146e2af74109833"},"Número:"),(0,i.h)("span",{key:"32c0f513a9dc6573283987719c56b950d83e9ab6",class:"myaddr-info-span"},0===this.address.numero?"S/N":this.address.numero||"-")),(0,i.h)("div",{key:"a6779f2376215bc8b01a2436d18607d53d29be02"},(0,i.h)("strong",{key:"b5a2965a51850bcc54caf00bafed81aa1410b699"},"Código Postal:"),(0,i.h)("span",{key:"5c3e6d04c3827fdb8fab9672cbeda3a153c940f5",class:"myaddr-info-span"},this.address.codPostal||"-"))),a=(0,i.h)(i.F,{key:"04622bd0f8ebcd901f16ffe732c477c4fe6f3bd6"},(0,i.h)("hr",{key:"7cabc58334bce59810870853fea04e05cdcc5f7b"}),(0,i.h)("div",{key:"d2ed5aed135eec33364a9f1486f0d56fd1a2438e"},(0,i.h)("strong",{key:"cb53260bfc648ddbebb1e7b9e544d5e87af750eb"},"Arvato 17:"),(0,i.h)("span",{key:"9c033fe59d0c9a7d30b8848173ff29115de437bb",class:"myaddr-info-span"},this.address.codViaArvato17||"-")),(0,i.h)("div",{key:"5e5dce2967a268b7917e1e6a103afa8ed4e1e9bb"},(0,i.h)("strong",{key:"9bc68a56c5628402afdfd15e87e6ebbdb1911e87"},"Gescal 17:"),(0,i.h)("span",{key:"4e39d253ce2d930cd7295f2bcb23dc6d36183cfc",class:"myaddr-info-span"},this.address.codViaGescal17||"-")),(0,i.h)("div",{key:"7eece262e7c45c0a7d45bb9c24360808cc3ebf0e"},(0,i.h)("strong",{key:"302f663b2903fcaa6d4c62199066b71efafbc152"},"INE:"),(0,i.h)("span",{key:"632add7ae51c85e1377036c8d0684cb6129ef240",class:"myaddr-info-span"},this.address.codViaINE||"-")),(0,i.h)("div",{key:"734b667bb21a32f3842a1db29190348c817f811f"},(0,i.h)("strong",{key:"975013d467df690dd7bf96699796637a3f34e56b"},"Experian:"),(0,i.h)("span",{key:"cafa880c6ddfc55e2a7e1f2f78db488cb1988ee9",class:"myaddr-info-span"},this.address.codViaC||"-")),(0,i.h)("div",{key:"a2373c2c516307d20b4a57a14e012444f707d019"},(0,i.h)("strong",{key:"67954d0e56bf0d028c7a09e17dda6c5e2290a17b"},"Referencia Catastral:"),(0,i.h)("span",{key:"160820b53d37becd5f1b018bf0054c21d0312561",class:"myaddr-info-span"},this.address.refCatastral||"-")),(0,i.h)("div",{key:"594df2ba73e193e9dbc79af4756df07a0648eed2"},(0,i.h)("strong",{key:"f2e377e621d68866d4c25cb44726c1207b026449"},"Código de Catastro:"),(0,i.h)("span",{key:"8b98a0110c0e289b8729021c28630b1d7c3052e3",class:"myaddr-info-span"},this.address.codCatastro||"-"))),o=(0,i.h)(i.F,{key:"48ed142baed51a01f856f912719c970bfbd7e08d"},(0,i.h)("hr",{key:"92441ba450bb6cf30a9006170d59c95bb7d38519"}),(0,i.h)("div",{key:"81dcf71dd97c9ab0cad1763ce92b0fb202179c05"},(0,i.h)("strong",{key:"f5a51f7c7e2a9bbcf30c62fd18f67c8514755074"},"Número Inmuebles:"),(0,i.h)("span",{key:"0ab7103d4a342d15a809565bc22361dd8b13eba9",class:"myaddr-info-span"},this.address.numInmuebles||0===this.address.numInmuebles?this.address.numInmuebles:"-")),(0,i.h)("div",{key:"7758c96263bb59cde8d931034e4ac37b2944bdcd"},(0,i.h)("strong",{key:"71833cfe9b28150b4f6bf6e6254b3d4d5c3de0b9"},"Número Viviendas:"),(0,i.h)("span",{key:"0717a43696ecc87c327b4c79595145465f159549",class:"myaddr-info-span"},this.address.numViviendas||0===this.address.numViviendas?this.address.numViviendas:"-")),(0,i.h)("div",{key:"32c738d230646a5bf99e5c16afcfe6a51c954a52"},(0,i.h)("strong",{key:"94569d9c3df4f7db377eddff98b4aebd6456f474"},"Número Locales:"),(0,i.h)("span",{key:"50cfc59db686ae2cc1804f6837e70f67f4860b6f",class:"myaddr-info-span"},this.address.numLocales?-1==(s=this.address.numLocales)?"Sin informacion":s.toString():"-")),(0,i.h)("div",{key:"0e4cdf5170102ccc78b8d960ef80c1c30235762c"},(0,i.h)("strong",{key:"1512eeb3f2853b0cc34b9d0c80aa144b86ec7866"},"Área Finca:"),(0,i.h)("span",{key:"9a02674de213a2df23e67c79f29335b72a86528b",class:"myaddr-info-span"},this.address.superficie?this.address.superficie+" (m2)":"-")));var s;let r=(0,i.h)(i.F,{key:"6a786a63d3cea4c7d079b8d3e28dc186ca2f5e55"},(0,i.h)("strong",{key:"52a24b64191cbccf5c83f1c80a8d9c8402a564c1"},"Latitud:"),(0,i.h)("span",{key:"7f4893d687d15d8240235bda6dad280e84b7522c",class:"myaddr-info-span"},this.address.latitud?this.address.latitud.toFixed(5):"-"),"  ",(0,i.h)("strong",{key:"8e57e9d7d5c51b1838c1461e5edb713225408d89"},"Longitud:"),(0,i.h)("span",{key:"aed4d058a60edceba35fe90dfcde01eaa0834257",class:"myaddr-info-span"},this.address.longitud?this.address.longitud.toFixed(5):"-"));return"FAST"!==Ee.canalConfig.formulario_alternativo&&e.push(t),Ee.canalConfig.ver_codigos&&e.push(a),Ee.canalConfig.ver_catastro&&e.push(o),Ee.canalConfig.longitud_latitud&&e.push(r),(0,i.h)("div",{key:"aa182a115e32826a0381d041a98a379a4c2908ff",class:"myaddr-ad
2dress-info"},e)}titleGuion(e){return e?ue(e):"-"}};Ue.style=".myaddr-info-span{margin-left:10px;color:#666;font-weight:bold;display:inline}";const je=class{constructor(e){(0,i.r)(this,e),this.addrselected=(0,i.c)(this,"addrselected",7),this.sendInitialized=(0,i.c)(this,"sendInitialized",7),this.DEFAULT_INITIAL_PATH=we.COMPLETE_SEARCH,this.contenido=[],this.previousEmit=!1,this.modalString="myaddr-modal",this.addressHasNumber=!1,this.brand=void 0,this.origin=void 0,this.coverage=!1,this.maxResults=10,this.hiddenVertical=void 0,this.environment="LOCAL",this.showMap=!1,this.loadingComponent=void 0,this.globalVivienda=0,this.addressList=[],this.previousPath=null,this.currentPath=null,this.selectedAddress=void 0,this.modal=!1,this.noAlert=!0,this.renderiza=!1}componentWillLoad(){Ee.setApiUrl(this.environment),this.origin?(Ee.setCobertura(this.coverage),this.getCanalConfig()):(this.loadingComponent=!1,this.noAlert=!1,this.errorMessage="El componente no se ha implementado correctamente",this.sendInitialized.emit(!1))}getCanalConfig(){var e;Ee.getCanalConfig(this.origin).pipe((e=()=>{this.loadingComponent=!1},T(((t,a)=>{try{t.subscribe(a)}finally{a.add(e)}})))).subscribe({next:e=>{Ee.setSharedData(this.maxResults),this.brand=e.data.marca,this.currentPath="FAST"===e.data.formulario_alternativo?we.FAST_SEARCH:"GUIADO"===e.data.formulario_alternativo?we.GUIDED_SEARCH:this.DEFAULT_INITIAL_PATH,this.sendInitialized.emit(!0)},error:()=>{this.noAlert=!1,this.errorMessage="El componente no ha podido obtener la configuración de canal"}})}setGoogleAddress(e){this.googleAddressInfo=e.detail}goTo(e){switch(e){case"MAP_SEARCH":this.addressList=[],this.selectedAddress=null,this.googleAddressInfo=null,this.addressHasNumber=!1,this.previousPath=null,this.currentPath=e;break;case"COMPLETE_SEARCH":this.addressList=[],this.previousPath=we.MAP_SEARCH,this.currentPath=e;break;case"COMPLETE_SEARCH_DISABLED":this.previousPath=we.MAP_SEARCH,this.currentPath=e;break;case"GUIDED_SEARCH":this.addressList=[],this.selectedAddress=null,this.googleAddressInfo=null,this.addressHasNumber=!1,this.previousPath=we.MAP_SEARCH,this.currentPath=e;break;case"FAST_SEARCH":this.addressList=[],this.selectedAddress=this.currentPath===we.GUIDED_FAST?this.selectedAddress:null,this.googleAddressInfo=null,this.addressHasNumber=!1,this.previousPath=this.currentPath,this.currentPath=e;break;case"ADDRESS_DETAIL":this.currentPath!==we.ADDRESS_DETAIL&&(this.previousPath=this.currentPath,this.currentPath=e,this.previousPath===we.COMPLETE_SEARCH_DISABLED&&(this.addressHasNumber=!1));break;case"GUIDED_FAST":this.addressList=[],this.selectedAddress=null,this.addressHasNumber=!1,this.previousPath=we.FAST_SEARCH,this.currentPath=e}}getModal(){return(0,i.h)("myaddr-modal",{id:"modal-results",showCloseIcon:!0},(0,i.h)("div",{slot:"modal-header"},(0,i.h)("h2",null,"Se han encontrado ",this.addressList.length," resultados:")),(0,i.h)("div",{slot:"modal-body"},(0,i.h)("ul",null,this.addressList.map((e=>(0,i.h)("li",{class:"item-result",key:e.codVia,onClick:()=>this.toFast(e)},(0,i.h)("span",null,he(e))))))),(0,i.h)("div",{slot:"modal-footer"},(0,i.h)("button",{class:"btn btn-default btn-md",onClick:()=>this.closeModalResults()},"Cerrar")))}closeModalResults(){this.searchElementHtml.querySelector(this.modalString).close(!0),this.contenido.splice(1,1)}toFast(e){const t=this.searchElementHtml.querySelector("fast-search");t.componentOnReady().then((()=>{t.manageAddress(e),this.searchElementHtml.querySelector(this.modalString).close(!1),this.contenido.splice(1,1)}))}getAlert(){return(0,i.h)("div",{id:"alert",class:"alert-container",hidden:this.noAlert},(0,i.h)("div",{class:"custom-alert alert-danger"},(0,i.h)("p",{innerHTML:this.errorMessage}),(0,i.h)("div",{class:"btn-close"},(0,i.h)("button",{class:"btn btn-md btn-close",onClick:()=>this.removeAlert()},"×"))))}removeAlert(){this.searchElementHtml.querySelector("#alert").setAttribute("hidden","true")}map2GuidedSearch(e){this.address=e.detail,this.goTo(we.GUIDED_SEARCH)}existeAddressDetail(){return!!this.searchElementHtml.querySelector("#addressDetail
2s")}hideDetail(){if(this.previousEmit){const e=new fe(null,null,null,null,null);this.addrselected.emit(e)}this.goTo(we.FAST_SEARCH)}emite(e){null!==e.detail&&void 0===e.detail.noAlert?(console.log(JSON.stringify(e.detail)),this.addrselected.emit(e.detail),this.previousEmit=!0):null==e.detail?this.emiteEventoVacio():e.detail.noAlert||(this.noAlert=e.detail.noAlert,this.errorMessage=e.detail.errorMessage)}emiteEventoVacio(){const e=new fe(null,null,null,null,null);console.log(e),this.addrselected.emit(e)}fastSearchfindedAddress(e){e.detail?(this.previousEmit&&this.emiteEventoVacio(),this.globalVivienda=e.detail.numViviendas,this.selectedAddress=e.detail,this.goTo(we.ADDRESS_DETAIL)):this.goTo(we.GUIDED_FAST)}mapSearchfindedAddress(e){e.detail&&e.detail.vertical.numero?(this.globalVivienda=e.detail.vertical.numViviendas,this.selectedAddress=e.detail.vertical,this.googleAddressInfo=e.detail.google,this.goTo(we.ADDRESS_DETAIL)):this.goTo(we.GUIDED_SEARCH)}handleFastAddresses(e){this.removeAlert(),Array.isArray(e.detail)&&e.detail.length>1?(this.addressList=e.detail,this.modal?(2==this.contenido.length&&this.contenido.splice(1,1),this.contenido.push(this.getModal())):(this.contenido.push(this.getModal()),this.modal=!this.modal,this.searchElementHtml.querySelector("fast-search").hideNoEncuentra())):Array.isArray(e.detail)?Array.isArray(e.detail)&&1==e.detail.length&&this.searchElementHtml.querySelector("fast-search").manageAddress(e.detail[0]):(this.noAlert=e.detail.noAlert,this.errorMessage=e.detail.errorMessage)}getComplete(){return(0,i.h)("section",{id:"complete-search"},(0,i.h)("myaddress-map",{showMap:this.showMap,onFindedAddresses:e=>{this.mapSearchfindedAddress(e)},onAddressWithoutNumber:e=>{this.map2GuidedSearch(e)}}))}getGuided(e){return(0,i.h)("section",{id:"guided-search-section"},(0,i.h)("guided-search",{address:this.address,showInfo:!1,fromMap:e,onAddrselected:e=>{this.selectedAddress=e.detail,this.goTo(we.ADDRESS_DETAIL)},onEmitHideDetail:()=>{this.hideDetail()},onEmitGoTo:e=>{this.goTo(e.detail)},onEmitHideViviendas:e=>{this.hideViviendas(e.detail)}}))}hideViviendas(e){e&&(this.previousEmit&&this.emiteEventoVacio(),this.contenido.splice(1,1),this.renderiza=!this.renderiza)}getFast(){return(0,i.h)("section",{id:"fast-search"},(0,i.h)("fast-search",{brand:this.brand,globalVivienda:0,guidedAddress:this.selectedAddress,onGoogleInfo:e=>this.setGoogleAddress(e),onGuidedFastMap:()=>this.goTo("GUIDED_FAST"),onAddresses:e=>this.handleFastAddresses(e),onFindedAddress:e=>this.fastSearchfindedAddress(e),onEmitHideDetail:()=>this.hideDetail()}))}getAddressDetail(){return(0,i.h)("section",{id:"address-details"},(0,i.h)("address-detail",{brand:this.brand,previousPath:this.previousPath,address:this.selectedAddress,googleInfo:this.googleAddressInfo,hiddenVertical:this.hiddenVertical,globalVivienda:this.globalVivienda,showGoBack:"MAP_SEARCH"!==this.previousPath,showGoToResults:this.addressList.length>1,onSubeEventoEvent:e=>this.emite(e),onEventoInicio:e=>this.goTo(e.detail),onEventoHide:()=>this.hideDetailMap()}))}hideDetailMap(){this.goTo("GUIDED_SEARCH")}render(){const e="ADDRESS_DETAIL"===this.currentPath,t=this.currentPath===we.GUIDED_SEARCH||this.currentPath===we.GUIDED_FAST,a=this.previousPath===we.FAST_SEARCH||this.previousPath===we.GUIDED_SEARCH||this.previousPath===we.GUIDED_FAST;return"FAST_SEARCH"===this.currentPath||this.currentPath===we.FAST_SEARCH?0===this.contenido.length?this.pushFast():this.contenido.length>1&&(this.spliceDetails(),this.emiteEventoVacio()):e&&a?this.existeAddressDetail()||this.contenido.push(this.getAddressDetail()):t?this.pushMap():this.currentPath===we.COMPLETE_SEARCH?this.pushComplete():"MAP_SEARCH"===this.currentPath&&(this.contenido.splice(0,2),this.pushComplete()),(0,i.h)("main",{key:"21e5faac6a0240096ead602d47dfdd68fb6089e6",id:"geographic-address"},this.contenido,this.getAlert())}pushComplete(){0!==this.contenido.length||this.searchElementHtml.querySelector("#complete-search")?(this.contenido.splice(0,1),this.contenido.push(this.getAddressDetail())):this.contenido.push(this.getComplete())}pushMap(){const e=this.searchElementHtml.querySelector("#fast-search"),t=this.searchElementHtml.querySelector("#complete-search");e||!t?(this.contenido.splice(0,2),this.contenido.push(this.getGuided(!1))):(this.contenido.splice(0,2),this.contenido.push(this.getGuided(!0)))}spliceDetails(){this.searchElementHtml.querySelector("#address-detail
2s")&&this.contenido.splice(1,1)}pushFast(){this.searchElementHtml.querySelector("#fast-search")||this.contenido.push(this.getFast())}get searchElementHtml(){return(0,i.g)(this)}};je.style=":host {\n  display: block;\n}\n.myaddr-required {\n  color: red;\n}\n\n.btn-default {\n  color: #000;\n  background-color: transparent;\n  border-color: var(--hl-color-border-light-secondary, #000);\n\n}\n\n#modal-results .modal-footer .btn {\n  --btn-icon-size: var(--hl-size-icon-md);\n  --btn-icon-margin: calc((var(--btn-icon-size) - 1em) * -0.5);\n  --btn-icon-gap: var(--hl-spacer-sm);\n  display: inline-flex;\n  font-weight: var(--hl-font-weight-body-bold);\n  text-align: center;\n  text-decoration: none;\n  justify-content: center;\n  align-items: center;\n  white-space: nowrap;\n  vertical-align: middle;\n  user-select: none;\n  border: var(--hl-border-width-default) solid transparent;\n  max-width: 100%;\n  min-width: var(--hl-spacer-md);\n  gap: var(--btn-icon-gap);\n  padding: calc(var(--hl-spacer-sm)) var(--hl-spacer-lg);\n  font-size: var(--hl-font-size-md);\n  line-height: var(--hl-line-height-sm);\n  border-radius: var(--hl-border-radius-default);\n  transition: all var(--hl-transition-normal);\n  background-clip: inherit;\n  color: var(--hl-color-button-text-light-standby);\n  background-color: var(--hl-color-button-bg-outline-black-standby);\n  border-color: var(--hl-color-border-light-secondary);\n}\n\n#modal-results .modal-footer button:hover,\n#modal-results .modal-footer button:focus {\n  text-decoration: none !important;\n  color: var(--hl-color-button-text-light-hover);\n  background-color: var(--hl-color-button-bg-outline-black-hover);\n  border-color: var(--hl-color-border-light-secondary);\n}\n\n#modal-results .modal-footer button:active,\n#modal-results .modal-footer button.active {\n  color: var(--hl-color-button-text-light-pressed);\n  background-color: var(--hl-color-button-bg-outline-black-pressed);\n  border-color: var(--hl-color-border-light-secondary);\n  background-size: 200%;\n}\n#modal-results .modal-footer btn-default:focus {\n  background: var(--hl-color-button-bg-outline-black-hover);\n}\n#modal-results .modal-footer btn-default:focus:active {\n  background: var(--hl-color-button-bg-outline-black-pressed);\n}\n.alert-container {\n  margin-top: 20px;\n  padding: 20px;\n  min-height: 100px;\n  .custom-alert {\n    margin: auto;\n    padding: 10px;\n    width: 80%;\n    overflow: auto;\n    font-weight: bold;\n    p {\n      margin: 8px auto;\n      width: 90%;\n      float: left;\n      text-align: center;\n      word-break: break-all;\n      word-break: break-word;\n    }\n    .btn-close {\n      width: 10%;\n      text-align: right;\n      float: right;\n      button {\n        border-radius: 5px;\n        color: black;\n        &:hover {\n          color: white;\n        }\n      }\n    }\n  }\n}\n\n.alert-danger {\n  color: #721c24;\n  background-color: #f8d7da;\n  border-color: #f5c6cb;\n}\n\n.alert-success {\n  color: #155724;\n  background-color: #d4edda;\n  border-color: #c3e6cb;\n}\n";const ze=class{constructor(e){(0,i.r)(this,e),this.findedAddresses=(0,i.c)(this,"findedAddresses",7),this.addressWithoutNumber=(0,i.c)(this,"addressWithoutNumber",7),this.zoom=17,this.markers=[],this.submitIsDisabled=!0,this.showMap=!1,this.direccion=void 0,this.latitude=void 0,this.longitude=void 0,this.place=void 0}componentDidLoad(){Ee.loader.importLibrary("places").then((()=>{this.setAddressSearch(),this.geoCoder=new google.maps.Geocoder,this.showMap&&(this.markers.push(new google.maps.Marker),this.map=new google.maps.Map(this.el.querySelector("#map"),{mapTypeControl:!1}),this.getCurrentLocation())}))}getCurrentLocation(){"geolocation"in navigator&&navigator.geolocation.getCurrentPosition((e=>{this.latitude=e.coords.latitude,this.longitude=e.coords.longitude,this.setMap(),this.getGeocoderInfo({location:{lat:this.latitude,lng:this.longitude}})}),(e=>{const t={noAlert:!1,errorMessage:""};switch(e.code){case e.PERMISSION_DENIED:t.errorMessage="El usuario no ha permitido la geolocalizacion",this.findedAddresses.emit(t);break;
2case e.POSITION_UNAVAILABLE:t.errorMessage="Infomación no disponible",this.findedAddresses.emit(t);break;case e.TIMEOUT:t.errorMessage="Timeout",this.findedAddresses.emit(t);break;default:t.errorMessage="Error desconocido",this.findedAddresses.emit(t)}}))}getGeocoderInfo(e,t=!1){this.geoCoder.geocode(e,((e,a)=>{a===google.maps.GeocoderStatus.OK&&e[0]&&(this.place=e[0],this.resultsHandler(e[0]),t&&(this.latitude=e[0].geometry.location.lat(),this.longitude=e[0].geometry.location.lng()))}))}resultsHandler(e){this.googleAddressHasNumber=!!e.address_components.filter((e=>"street_number"===e.types[0])),this.direccion=e.formatted_address,this.submitIsDisabled=!this.placeIsInSpain(e)||!this.placeHasRequiredDataToRequest(e)}placeHasRequiredDataToRequest(e){const t=e.address_components.filter((e=>e.types.filter((e=>"route"===e))[0]))[0],a=e.address_components.filter((e=>e.types.filter((e=>"locality"===e))[0]))[0],i=e.address_components.filter((e=>e.types.filter((e=>"administrative_area_level_2"===e))[0]))[0],o=e.address_components.filter((e=>e.types.filter((e=>"administrative_area_level_1"===e))[0]))[0];return!!(e.address_components.filter((e=>e.types.filter((e=>"country"===e))[0]))[0]&&(i||o)&&a&&t&&"Unnamed Road"!==t.long_name)}placeIsInSpain(e){return!!e.address_components.filter((e=>"ES"===e.short_name))||(console.log("alerta"),!1)}setMap(){this.map.controls[google.maps.ControlPosition.TOP_LEFT].push(be(this.el.querySelector("#search"))),this.map.setCenter({lat:this.latitude,lng:this.longitude}),this.map.setZoom(this.zoom),this.markers[0].setPosition(new google.maps.LatLng(this.latitude,this.longitude)),this.markers[0].setMap(this.map),this.map.addListener("click",(e=>{this.markers[0].setMap(null),this.map.setCenter(e.latLng),this.markers[0].setPosition(e.latLng),this.markers[0].setMap(this.map),this.latitude=this.map.getCenter().lat(),this.longitude=this.map.getCenter().lng(),this.getGeocoderInfo({location:{lat:this.latitude,lng:this.longitude}})}))}setAddressSearch(){const e=new google.maps.places.Autocomplete(this.el.querySelector("#search"),{types:["address"]});e.setComponentRestrictions({country:"ES"}),e.setOptions({strictBounds:!1}),e.setTypes(["address"]),e.setFields(["formatted_address","address_components","geometry"]),e.addListener("place_changed",(()=>{this.place=e.getPlace(),this.place.geometry&&this.place.address_components?(this.latitude=this.place.geometry.location.lat(),this.longitude=this.place.geometry.location.lng(),this.changeMapandMarker(),this.resultsHandler(this.place)):console.log("yo que se")}))}changeMapandMarker(){this.markers[0].setMap(null),this.map.setCenter({lat:this.latitude,lng:this.longitude}),this.map.setZoom(this.zoom),this.markers[0].setPosition(new google.maps.LatLng(this.latitude,this.longitude)),this.markers[0].setMap(this.map)}getMap(){let e="",t="input-search";return this.showMap&&(t+=" into-mapbox",e=(0,i.h)("div",{class:"gm-map"},(0,i.h)("div",{id:"map",class:"map"}))),(0,i.h)("div",{class:this.showMap?"col-12 col-xs-12 col-md-8":"col-12 col-xs-12"},(0,i.h)("div",{class:"google-map"},(0,i.h)("div",{class:"gm-input"},(0,i.h)("input",{id:"search",type:"text",class:t,placeholder:"Introduzca dirección",autocorrect:"off",autocapitalize:"off",spellcheck:"off"})),e))}goTo(){const e=function(e){let t={};return e.address_components.forEach((e=>{t[e.types[0]]=e.long_name,"country"===e.types[0]&&(t.country_shortName=e.short_name)})),t}(this.place);Ee.consultarDireccion(e).subscribe({next:e=>{Array.isArray(e)&&0!=e.length?this.place.address_components.some((e=>e.types.includes("street_number")))?this.findedAddresses.emit({vertical:e[0],google:this.place}):this.addressWithoutNumber.emit(e[0]):Array.isArray(e)||this.findedAddresses.emit(e)},error:e=>{console.log("Error ",e)}})}getAddress(){let e="";return Ee.canalConfig.longitud_latitud&&(e=(0,i.h)("div",{class:"coordenates"},(0,i.h)("h4",null,"Latitud:"),(0,i.h)("span",null,this.latitude?this.latitude.toPrecision(7):"-"),(0,i.h)("br",null),(0,i.h)("h4",null,"Longitud:"),(0,i.h)("span",null,this.longitude?this.longitude.toPrecision(7):"-"))),(0,i.h)(i.F,null,(0,i.h)("div",{class:this.showMap?"col-12 col-xs-12 col-md-4":"col-12 col-xs-12"},(0,i.h)("div",{class:"address-info"}
2,(0,i.h)("div",{class:"address"},(0,i.h)("h2",null,"Dirección:"),(0,i.h)("span",null,this.direccion?this.direccion:"-")),(0,i.h)("hr",null),e,(0,i.h)("div",{class:"search-address"},(0,i.h)("button",{type:"button",class:"btn btn-primary btn-md",disabled:this.submitIsDisabled,onClick:()=>this.goTo()},"Buscar"),(0,i.h)("p",{class:"alert-message"},"Debes indicar una dirección válida")),(0,i.h)("div",{class:"alternative-search-address"},(0,i.h)("p",null,"¿No encuentras la dirección?"),(0,i.h)("button",{type:"button",class:"btn btn-warning btn-md",onClick:()=>{this.goToFormulario()}},"Ir al formulario")))))}goToFormulario(){this.findedAddresses.emit()}render(){let e=[];return e.push(this.getMap()),e.push(this.getAddress()),(0,i.h)("div",{key:"794ccb3eeeee14b8e2a406ce4c72dbd15d9faa3a",class:"row"},e)}get el(){return(0,i.g)(this)}};ze.style=".google-map {\n  margin-bottom: 30px;\n  .input-search {\n    position: static;\n    width: 80%;\n    padding: 4px 8px;\n  }\n  .input-search.into-mapbox {\n    position: absolute;\n    top: 6px!important;\n    left: 15px!important;\n    z-index: 10;\n  }\n  .gm-map {\n    -moz-box-shadow:    0px 1px 6px 4px #ccc;\n    -webkit-box-shadow: 0px 1px 6px 4px #ccc;\n    box-shadow:         0px 1px 6px 4px #ccc;\n    #map {\n      height: 400px;\n      .gm-style .gm-iv-container,\n      .gm-style .gm-iv-address {\n        // Exceptional use of !important, to fix google streetview info inline styles\n        margin-top: 60px!important;\n      }\n      .gm-iv-address-link,\n      .gm-iv-marker {\n        margin-top: 50px!important;\n      }\n    }\n    @media (max-width: 440px) {\n      #gm-map {\n        height: 300px;\n      }\n    }\n  }\n}\n.address-info {\n  margin-bottom: 30px;\n  text-align: left;\n  .address {\n    h2 {\n      margin-bottom: 10px;\n    }\n    span {\n      font-size: 1em;\n      font-weight: normal;\n      display: block;\n    }\n  }\n  .coordenates {\n    h4,\n    span {\n      display: inline;\n    }\n    span {\n      margin-left: 10px;\n    }\n  }\n  .search-address {\n    margin-top: 10px;\n  }\n  .alternative-search-address {\n    margin-top: 50px;\n    .btn {\n      margin: 5px 0!important;\n    }\n  }\n}\n";const $e=class{constructor(e){(0,i.r)(this,e),this.address=void 0}componentWillRender(){Ee.loader.importLibrary("streetView").then((()=>{this.streetView=new google.maps.StreetViewService,this.geocoder=new google.maps.Geocoder,this.directionsService=new google.maps.DirectionsService,this.setStreetView()})).catch((e=>console.log("error ",JSON.stringify(e))))}setStreetView(){var e;const t=null!==(e=this.address.codPostal)&&void 0!==e?e:"",a=this.address.numero+","+this.address.tipoVia+" "+this.address.via+", "+this.address.municipio+", "+this.address.provincia+", "+t+" España";this.panorama=new google.maps.StreetViewPanorama(this.searchElementHtml.querySelector("#panorama")),this.geocoder.geocode({address:a},((e,t)=>{if(t==google.maps.GeocoderStatus.OK){this.myLatLng=e[0].geometry.location;const t={origin:a,destination:a,travelMode:google.maps.TravelMode.WALKING};this.directionsService.route(t,this.directionsCallback.bind(this))}}))}directionsCallback(e,t){t==google.maps.DirectionsStatus.OK?this.streetView.getPanorama({location:e.routes[0].legs[0].start_location,radius:50},this.processSVData.bind(this)):console.log("error")}processSVData(e,t){if(t==google.maps.StreetViewStatus.OK){const t=google.maps.geometry.spherical.computeHeading(e.location.latLng,this.myLatLng);this.panorama.setPano(e.location.pano),this.panorama.setPov({heading:t,pitch:0}),this.panorama.setVisible(!0)}else console.log("errro")}render(){return(0,i.h)("div",{key:"4f9e04f5e38547d9431996cc59d582c6a2c38048",id:"panorama",class:"panorama"})}get searchElementHtml(){return(0,i.g)(this)}};$e.style=".panorama{position:relative;margin:0;width:100%;min-height:380px;height:auto;-moz-box-shadow:0px 1px 6px 4px #ccc;-webkit-box-shadow:0px 1px 6px 4px #ccc;box-shadow:0px 1px 6px 4px #ccc}";const Ze=class{constructor(e){(0,i.r)(this,e),this.addressEvent=(0,i.c)(this,"addressEvent",7),this.eventInicio=(0,i.c)(this,"eventInicio",7),this.eventHide=(0,i.c)(this,"eventHide",7),this.listaOrdenadaFiltros=["f
2ilterPlanta","filterMano2","filterAclarador","filterBis","filterBloque","filterPuerta","filterLetra","filterEscalera","filterMano1"],this.valoresSeleccionados=[],this.origenAlertMasRes=!1,this.otraDireccion="Otra dirección",this.showButtonMasRes=!0,this.viviendasDirecta=[],this.viviendasTotal=[],this.emptyValue="-",this.calls=[],this.address=void 0,this.googleInfo=null,this.previousPath="",this.globalVivienda=void 0,this.brand=void 0,this.hiddenVertical=void 0,this.viviendas=[],this.filterOptions={filterBis:[],filterBloque:[],filterPuerta:[],filterLetra:[],filterEscalera:[],filterPlanta:[],filterMano1:[],filterMano2:[],filterAclarador:[]},this.filteredViviendas=[],this.plantaSelected=void 0,this.puertaselected=void 0,this.bisSelected=void 0,this.bloqueSelected=void 0,this.portalSelected=void 0,this.letraSelected=void 0,this.escaleraSelected=void 0,this.tipoPuertaSelected=void 0,this.aclaradorSelected=void 0,this.contenido=[]}componentWillLoad(){Ee.consultarViviendas(this.address.codViaArvato,this.address.numero).subscribe({next:e=>{this.viviendas=e,0==this.viviendas.length&&this.addressEvent.emit({noAlert:!1,errorMessage:"Error no hay viviendas que mostrar"}),this.checkDirecta(!0)},error:()=>{this.addressEvent.emit({noAlert:!1,errorMessage:"Ha ocurrido un error inesperado intentelo mas tarde"})}})}reloadAddress(e,t){e&&e!==t&&(this.contenido.length=0,this.disableAll(),this.setPlantaVacia(),Ee.consultarViviendas(this.address.codViaArvato,this.address.numero).subscribe({next:e=>{this.viviendas.length=0,this.viviendas=e,0==this.viviendas.length&&this.addressEvent.emit({noAlert:!1,errorMessage:"Error no hay viviendas que mostrar"}),this.checkDirecta(!0)},error:()=>{this.addressEvent.emit({noAlert:!1,errorMessage:"Ha ocurrido un error inesperado intentelo mas tarde"})}}))}changePlanta(e,t){this.checkNullAndOtra(e,t),this.valoresSeleccionados[0]=e,this.resetBySelect(e,t,"Planta")}changePuerta(e,t){this.checkNullAndOtra(e,t),this.valoresSeleccionados[1]=e,this.resetBySelect(e,t,"Mano2")}changeBis(e,t){this.checkNullAndOtra(e,t),this.valoresSeleccionados[3]=e,this.resetBySelect(e,t,"Bis")}checkNullAndOtra(e,t){e===this.otraDireccion&&this.changeOtraDireccion(),t&&e!==t&&this.addressEvent.emit(null)}changeBloque(e,t){this.checkNullAndOtra(e,t),this.valoresSeleccionados[4]=e,this.resetBySelect(e,t,"Bloque")}changePortal(e,t){this.checkNullAndOtra(e,t),this.valoresSeleccionados[5]=e,this.resetBySelect(e,t,"Puerta")}changeLetra(e,t){this.checkNullAndOtra(e,t),this.valoresSeleccionados[6]=e,this.resetBySelect(e,t,"Letra")}changeEscalera(e,t){this.checkNullAndOtra(e,t),this.valoresSeleccionados[7]=e,this.resetBySelect(e,t,"Escalera")}changeTipoPuerta(e,t){this.checkNullAndOtra(e,t),this.valoresSeleccionados[8]=e,this.resetBySelect(e,t,"Mano1")}changeAclarador(e,t){this.checkNullAndOtra(e,t),this.valoresSeleccionados[2]=e,this.resetBySelect(e,t,"Aclarador")}checkDirecta(e){this.viviendasDirecta.length=0,this.viviendas.forEach((e=>{e.huella&&("FTTH"===e.huella&&this.viviendasDirecta.push(e),null!==e.huella&&this.viviendasTotal.push(e))})),e&&this.viviendasDirecta.length>0&&("FAST_SEARCH"===this.previousPath||this.previousPath===we.GUIDED_FAST)?(this.showLabel=!1,this.viviendas=this.viviendasDirecta):(this.showLabel=!0,this.viviendasTotal.length>0&&(this.showWarn=!0),this.viviendas=this.viviendasTotal),this.filteredViviendas=this.viviendas,this.orderViviendas(),this.setOptionsFilters(),this.showFilters=!0}setOptionsFilters(){this.resetAllfilter(),this.setOptionsFiltersFromViviendas(),this.removeRepeatedFiltersOptions(),this.orderFiltersOptions(),this.addOrRemovePlantaOtraDireccion()}addOrRemovePlantaOtraDireccion(){this.filterOptions.filterPlanta=!this.showButtonMasRes&&this.checkIfExistsOtraDireccion?this.filterOptions.filterPlanta.filter((e=>e.name!==this.otraDireccion)):this.checkAndAddOtraDireccion(this.filterOptions.filterPlanta)}
2checkAndAddOtraDireccion(e){const t={name:this.otraDireccion,value:this.otraDireccion};return e&&e.length>0&&this.viviendasDirecta.length!==this.viviendasTotal.length&&0!==this.viviendasDirecta.length&&this.showButtonMasRes&&!this.checkIfExistsOtraDireccion(e)&&!this.checkifOnlyExistsEmptyValue(e)?[t].concat(e):e}checkifOnlyExistsEmptyValue(e){return 1===e.length&&e.some((e=>e.name===this.emptyValue))}checkIfExistsOtraDireccion(e){return e.some((e=>e.name===this.otraDireccion))}resetAllfilter(){let e=this.listaOrdenadaFiltros.indexOf("filterPlanta");for(;e<this.listaOrdenadaFiltros.length;e++)this.filterOptions[this.listaOrdenadaFiltros[e]]=[]}resetnotAllfilter(e){let t=this.listaOrdenadaFiltros.indexOf("filter"+e)+1;for(;t<this.listaOrdenadaFiltros.length;t++)this.filterOptions[this.listaOrdenadaFiltros[t]]=[]}setOptionsFiltersFromViviendas(){this.viviendas.forEach((e=>{this.setBis(e),this.setBloque(e),this.setPuerta(e),this.setLetra(e),this.setEscalera(e),this.setPlanta(e),this.setMano1(e),this.setMano2(e),this.setAclarador(e)}));for(let e of this.listaOrdenadaFiltros)0===this.filterOptions[e].length&&this.filterOptions[e].push({name:"-",value:"-"});this.filterOptions.filterAclarador.push({name:"-",value:"-"})}setAclarador(e){e.aclarador&&this.filterOptions.filterAclarador.push({name:e.aclarador,value:e.aclarador})}setMano2(e){e.mano2&&this.filterOptions.filterMano2.push({name:e.mano2_TR,value:e.mano2})}setMano1(e){e.mano1&&this.filterOptions.filterMano1.push({name:e.mano1_TR,value:e.mano1})}setPlanta(e){e.planta&&this.filterOptions.filterPlanta.push({name:e.planta_TR,value:e.planta})}setEscalera(e){e.escalera&&this.filterOptions.filterEscalera.push({name:e.escalera_TR,value:e.escalera})}setLetra(e){e.letra&&this.filterOptions.filterLetra.push({name:e.letra_TR,value:e.letra})}setPuerta(e){e.puerta&&this.filterOptions.filterPuerta.push({name:e.puerta_TR,value:e.puerta})}setBloque(e){e.bloque&&this.filterOptions.filterBloque.push({name:e.bloque_TR,value:e.bloque})}setBis(e){e.bis&&this.filterOptions.filterBis.push({name:e.bis_TR,value:e.bis})}removeRepeatedFiltersOptions(){for(let e in this.filterOptions)this.filterOptions[e]=this.filterOptions[e].filter(((e,t,a)=>a.findIndex((t=>t.value===e.value))===t))}orderFiltersOptions(){const e=/^\d+$/;for(let t in this.filterOptions){let a=this.filterOptions[t].filter((t=>e.test(t.name)));a=a.sort(((e,t)=>parseInt(e.name)-parseInt(t.name)));let i=this.filterOptions[t].filter((t=>!e.test(t.name)));i=i.sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0})),i=i.sort((function(e,t){return e.name.localeCompare(t.name)})),this.filterOptions[t]=[...a,...i]}}orderViviendas(){const e=/^\d+$/;this.viviendas.forEach((t=>{Object.keys(t).forEach((e=>{t[e]=t[e]?t[e]:""}));let a=e.test(t.bis_TR)?t.bis_TR.padStart(26,"0"):t.bis_TR.padEnd(26,"º"),i=e.test(t.bloque_TR.split(" ")[0])?t.bloque_TR.split(" ")[0].padStart(8,"0"):t.bloque_TR.split(" ")[0].padEnd(8,"º"),o="ºº";t.bloque_TR.split(" ")[1]&&(o=e.test(t.bloque_TR.split(" ")[1])?t.bloque_TR.split(" ")[1].padStart(2,"0"):t.bloque_TR.split(" ")[1].padEnd(2,"º"));let s=e.test(t.puerta_TR)?t.puerta_TR.padStart(2,"0"):t.puerta_TR.padEnd(2,"º"),r=e.test(t.letra_TR)?t.letra_TR.padStart(1,"0"):t.letra_TR.padEnd(1,"º"),n=e.test(t.escalera_TR)?t.escalera_TR.padStart(20,"0"):t.escalera_TR.padEnd(20,"º"),l=e.test(t.planta_TR)?t.planta_TR.padStart(12,"0"):t.planta_TR.padEnd(12,"º"),d=e.test(t.mano1_TR)?t.mano1_TR.padStart(11,"0"):t.mano1_TR.padEnd(11,"º"),c=e.test(t.mano2_TR)?t.mano2_TR.padStart(11,"0"):t.mano2_TR.padEnd(11,"º");t.columnForOrder=`${a} ${i+o} ${s} ${r} ${n} ${l} ${d} ${c}`})),this.viviendas.sort(((e,t)=>e.columnForOrder.localeCompare(t.columnForOrder)))}seleccionarVivienda(e){this.rowSelected=e,this.viviendaForResponse=this.rowSelected,this.dwellingId=this.rowSelected.dwellingId,this.setResponseOutput()}setResponseOutput(){this.globalVivienda=1,this.address.numViviendas=1;let e=Ee.setViviendaResponse(this.viviendaForResponse,this.address,this.googleInfo,null,Ee.canalConfig.marca_blanca);this.getCodigoPoblacion(this.address.poblacion,this.viviendaForResponse.arvato17,e)}getCodigoPoblacion(e,t,a){let i=t.substring(0,2);Ee.getCodigoPoblacion(i,e).subscribe({next:e=>{let t=e[0]?e[0]:null;e.forEach((e=>{e.score>t.score&&(t=e)}
2)),a.ospGeographicAddress[0].externalIdentifier.push({name:"codPobC",value:t.codPoblacion}),this.addressEvent.emit(a)},error:()=>{this.addressEvent.emit({noAlert:!1,errorMessage:"Ha ocurrido un error inesperado intentelo mas tarde"})}})}setFilters(e,t){this.resetnotAllfilter(t),e.detail!==this.otraDireccion&&(this.reduceViviendas(e.detail,t),this.moreFilters(this.enableNext(t)))}enableNext(e){let t=this.listaOrdenadaFiltros.indexOf("filter"+e)+1,a=!1,i=!0,o=0;for(i=this.normalizaLongitud1(t,i),t=this.listaOrdenadaFiltros.indexOf("filter"+e)+1;!a&&t<this.listaOrdenadaFiltros.length;){const i=this.searchElementHtml.querySelector("#div"+me(this.listaOrdenadaFiltros[t]));if(i&&"-"!==this.filterOptions[this.listaOrdenadaFiltros[t]][0].name)o=t,i.removeAttribute("hidden"),this.filterOptions[this.listaOrdenadaFiltros[t]]=this.checkAndAddOtraDireccion(this.filterOptions[this.listaOrdenadaFiltros[t]]),t+1<this.listaOrdenadaFiltros.length&&this.addGuion(e.toLowerCase(),this.valoresSeleccionados[this.listaOrdenadaFiltros.indexOf("filter"+e)],this.listaOrdenadaFiltros[t].substring(6,this.listaOrdenadaFiltros[t].length).toLowerCase(),this.listaOrdenadaFiltros[t+1].substring(6,this.listaOrdenadaFiltros[t+1].length).toLowerCase())&&this.filterOptions[this.listaOrdenadaFiltros[t]].push({name:"-",value:"-"}),a=!0;else if(i&&"-"===this.filterOptions[this.listaOrdenadaFiltros[t]][0].name&&!this.hiddenVertical){this.filterOptions[this.listaOrdenadaFiltros[t]]=this.checkAndAddOtraDireccion(this.filterOptions[this.listaOrdenadaFiltros[t]]),i.removeAttribute("hidden");const e=pe(this.searchElementHtml.querySelector("#"+this.listaOrdenadaFiltros[t]));e.options[0].text="-",e.setAttribute("disabled","true")}t++}return i&&"-"===this.filterOptions.filterMano1[0].name?pe(this.searchElementHtml.querySelector("#filter"+me(this.listaOrdenadaFiltros[o]))).value?i:!i:!a}normalizaLongitud1(e,t){for(;e<this.listaOrdenadaFiltros.length;)t=t&&1==this.filterOptions[this.listaOrdenadaFiltros[e]].length,e++;return t}addGuion(e,t,a,i){return this.filteredViviendas.filter((a=>a[e]===t)).filter((t=>""===t[a]&&""!==t[e])).length>0}disableNext(e){let t=this.listaOrdenadaFiltros.indexOf("filter"+e)+1;for(;t<this.listaOrdenadaFiltros.length;){const e=this.searchElementHtml.querySelector("#div"+me(this.listaOrdenadaFiltros[t]));if(e){const a=pe(this.searchElementHtml.querySelector("#"+this.listaOrdenadaFiltros[t]));a.removeAttribute("disabled"),a.selectedIndex=0,e.setAttribute("hidden","true"),t++}}}disableAll(){let e=1;for(;e<this.listaOrdenadaFiltros.length;){const t=this.searchElementHtml.querySelector("#div"+me(this.listaOrdenadaFiltros[e]));t&&(pe(this.searchElementHtml.querySelector("#"+this.listaOrdenadaFiltros[e])).removeAttribute("disabled"),t.setAttribute("hidden","true"),e++)}}reduceViviendas(e,t){if(void 0!==e){"-"===e&&(e="");let a=[];this.filteredViviendas.forEach((i=>{i[t.toLowerCase()]===e&&(a.push(i),this.setBis(i),this.setBloque(i),this.setPuerta(i),this.setPuerta(i),this.setLetra(i),this.setEscalera(i),this.setPlanta(i),this.setMano1(i),this.setMano2(i),this.setAclarador(i))}));for(let e of this.listaOrdenadaFiltros)0===this.filterOptions[e].length&&this.filterOptions[e].push({name:"-",value:"-"});a.filter((e=>""===e.mano2&&""!==e.aclarador))[0]&&this.filterOptions.filterMano2.push({name:"-",value:""}),this.removeRepeatedFiltersOptions(),this.filteredViviendas=a}}capturaFila(e){this.seleccionarVivienda(e.detail)}buildHeader(){return{elements:[{cabecera:"Bis/Duplic",campo:"bis"},{cabecera:"Bloque",campo:"bloque_TR"},{cabecera:"Portal",campo:"puerta_TR"},{cabecera:"Letra",campo:"letra_TR"},{cabecera:"Escalera",campo:"escalera_TR"},{cabecera:"Planta",campo:"planta_TR"},{cabecera:"Mano",campo:"mano1_TR"},{cabecera:"Puerta",campo:"mano2_TR"}]}}clickCrearVivienda(){const e=this.searchElementHtml.querySelector("myaddr-modal");e.removeAttribute("hidden"),e.componentOnReady().then((()=>{const t=this.searchElementHtml.querySelector("creacion-vivienda");t.componentOnReady().then((()=>{t.initData(this.address.codViaArvato17,this.address.codViaGescal,this.address.codViaArvato,this.address.numero),e.open()}))}))}moreFilters(e){e&&this.filteredViviendas.length<=2&&(this.origenAlertMasRes&&Object.entries(this.filteredViviendas[0]).forEac
2h((([e,t])=>{if(""!==t){const a="filter"+e,i=this.listaOrdenadaFiltros.filter((e=>e.toLowerCase()===a))[0];this.setHidden(i,a,t)}})),this.seleccionarVivienda(this.filteredViviendas[0]))}setHidden(e,t,a){if(e&&e.toLowerCase()===t){const t=this.searchElementHtml.querySelector("#div"+me(e));this.removeHidden(t,e,a)}}removeHidden(e,t,a){if(e.hasAttribute("hidden")){e.removeAttribute("hidden");const i=pe(this.searchElementHtml.querySelector("#"+t)),o=document.createElement("option");o.text=a,o.value=a,o.selected=!0,o.defaultSelected=!0,i.appendChild(o),i.setAttribute("disabled","true")}}changeOtraDireccion(){this.origenAlertMasRes=!0,this.resetAllfilter(),this.disableAll(),this.setPristinePlanta(),this.checkDirecta(!1)}setPristinePlanta(){this.listaOrdenadaFiltros.forEach((e=>{pe(this.searchElementHtml.querySelector("#"+e)).value=""})),this.showButtonMasRes=!1}resetBySelect(e,t,a){if(e!==t&&this.filteredViviendas!==this.viviendas&&t){this.disableNext(a),this.filteredViviendas=this.viviendas;const e=this.listaOrdenadaFiltros.indexOf("filter"+a);for(let t=0;t<=e;t++)this.reduceViviendas(this.valoresSeleccionados[t],me(this.listaOrdenadaFiltros[t]))}}setPlantaVacia(){pe(this.searchElementHtml.querySelector("#filterPlanta")).options.selectedIndex=0}render(){let e=[],t=(0,i.h)("div",{key:"e4a43a71b49ef910097f92d1242efef038088f4a"},"tabla");this.divViviendas(),this.setDivsDatosVertical(e,t);let a=(0,i.h)("form",{key:"7b799a32e698eb65232de6511b489ac9d00b92ee",id:"viviendas-filter"},(0,i.h)("div",{key:"a7a1a79d8f5097368203bf114a3e5b71e5e2d3b6",class:"row mb-3"},e)),o=(0,i.h)("div",{key:"09ecd3ab2222543326840a9b5ebc6721e3bdc058",class:"row"},(0,i.h)("div",{key:"a5b2f595b72d51f37af1f7a51c8685ec2971cec4",class:"col-6"},(0,i.h)("label",{key:"b8ad7de55c23c4c8429d5f3de40d533e73b145d3",class:"label_crear",onClick:()=>this.clickCrearVivienda()},"No encuentro la dirección")));return this.contenido.splice(0,this.contenido.length),this.contenido.push(a),this.filteredViviendas.length>0&&"COMPLETO"===Ee.canalConfig.formulario_alternativo&&this.contenido.push((0,i.h)("myaddr-table",{filters:this.buildHeader(),data:this.filteredViviendas,onEventTable:e=>this.capturaFila(e),onEventInicio:e=>this.gotToInicio(e.detail),onEventHideDetail:e=>this.hideDetail(e.detail)})),!Ee.canalConfig.crear_vivienda||"FAST_SEARCH"!==this.previousPath&&"GUIDED_FAST"!==this.previousPath||this.searchElementHtml.querySelector("#crearVivienda")||!this.origenAlertMasRes||(this.contenido.push(o),this.contenido.push((0,i.h)("div",null,(0,i.h)("div",{id:"alert",class:"alert-container"},(0,i.h)("div",{class:"custom-alert alert alert-info"},(0,i.h)("p",null,"Hemos ampliado tu búsqueda. Por favor, selecciona de nuevo la planta de tu vivienda para continuar con el proceso")))))),(0,i.h)("div",{key:"f51c4bef258f401fb51a208cf5055c6f52aae722",id:"viviendas",class:"mb-2"},this.contenido)}hideDetail(e){this.eventHide.emit(e)}gotToInicio(e){this.eventInicio.emit(e)}setDivsDatosVertical(e,t){this.viviendas.length>0?this.showFilters?(this.filterOptions.filterPlanta.length>0&&e.push((0,i.h)("div",{class:"col-xs-12 col-sm-6 col-md-3",style:{height:"80px;"},id:"divPlanta"},(0,i.h)("label",null,"Planta"),(0,i.h)("myaddr-select",{idSelect:"filterPlanta",onEventOnChange:e=>{this.plantaSelected=e.detail,this.setFilters(e,"Planta")}},(0,i.h)("option",{selected:!0,disabled:!1,value:""}),this.filterOptions.filterPlanta.map((e=>(0,i.h)("option",{value:e.value},e.name)))))),e.push((0,i.h)("div",{class:"col-xs-12 col-sm-6 col-md-3",style:{height:"80px;"},id:"divMano2",hidden:!0},(0,i.h)("label",null,"Puerta"),(0,i.h)("myaddr-select",{idSelect:"filterMano2",onEventOnChange:e=>{this.puertaselected=e.detail,this.setFilters(e,"Mano2")}},(0,i.h)("option",{selected:!0,disabled:!1,value:""}),this.filterOptions.filterMano2.map((e=>(0,i.h)("option",{value:e.value},e.name)))))),e.push((0,i.h)("div",{class:"col-xs-12 col-sm-6 col-md-3",style:{height:"80px;"},id:"divAclarador",hidden:!0},(0,i.h)("label",null,"Local Empresa"),(0,i.h)("myaddr-select",{idSelect:"filterAclarador",disabled:!1,onEventOnChange:e=>{this.aclaradorSelected=e.detail,this.setFilters(e,"Aclarador")}},(0,i.h)("option",{selected:!0,disabled:!1,value:""}),this.filterOptions.filterAclarador.map((e=>(0,i.h)("option",{value:e.value},e.name)))))),e.push((0,i.h)("div",{class:"col-xs-12 col-sm-6 col-md-3",style:{height:"80px;"},id:"divBis",hidden:!0},(0,i.h)("label",null,"Bis/duplicado"),(0,i.h)("myaddr-select",{idSelect:"filterBis",disabled:!1,onEventOnChange:e=>{this.bisSelected=e.detail,this.setFilters(e,"Bis")}},(0,i.h)("option",{selected:!0,disabled:!1,value:""}),this.filterOptions.filterBis.map((e=>(0,i.h)("option",{value:e.value},e.name)))))),e.push((0,i.h)("div",{class:"col-xs-12 col-sm-6 col-md-3",style:{height:"80px;"},id:"divBloque",hidden:!0},(0,i.h)("label",null,"Bloque"),(0,i.h)("myaddr-select",{idSelect:"filterBloque",disabled:!1,onEventOnChange:e=>{this.bloqueSelected=e.detail,this.setFilters(e,"Bloque")}},(0,i.h)("option",{selected:!0,disabled:!1,value:""}),this.filterOptions.filterBloque.map((e=>(0,i.h)("option",{value:e.value},e.name)))))),e.push((0,i.h)("div",{class:"col-xs-12 col-sm-6 col-md-3",style:{height:"80px;"},id:"divPuerta",hidden:!0},(0,i.h)("label",null,"Portal"),(0,i.h)("myaddr-select",{idSelect:"filterPuerta",disabled:!1,onEventOnChange:e=>{this.portalSelected=e.detail,this.setFilters(e,"Puerta")}},(0,i.h)("option",{selected:!0,disabled:!1,value:""}),this.filterOptions.filterPuerta.map((e=>(0,i.h)("option",{value:e.value},e.name)))))),e.push((0,i.h)("div",{class:"col-xs-12 col-sm-6 col-md-3",style:{height:"80px;"},id:"divLetra",hidden:!0},(0,i.h)("label",null,"Letra"),(0,i.h)("myaddr-select",{idSelect:"filterLetra",disabled:!1,onEventOnChange:e=>{this.letraSelected=e.detail,this.setFilters(e,"Letra")}},(0,i.h)("option",{selected:!0,disabled:!1,value:""}),this.filterOptions.filterLetra.map((e=>(0,i.h)("option",{value:e.value},e.name)))))),e.push((0,i.h)("div",{class:"col-xs-12 col-sm-6 col-md-3",style:{height:"80px;"},id:"divEscalera",hidden:!0},(0,i.h)("label",null,"Escalera"),(0,i.h)("myaddr-select",{idSelect:"filterEscalera",disabled:!1,onEventOnChange:e=>{this.escaleraSelected=e.detail,this.setFilters(e,"Escalera")}},(0,i.h)("option",{selected:!0,disabled:!1,value:""}),this.filterOptions.filterEscalera.map((e=>(0,i.h)("option",{value:e.value},e.name)))))),e.push((0,i.h)("div",{class:"col-xs-12 col-sm-6 col-md-3",style:{height:"80px;"},id:"divMano1",hidden:!0},(0,i.h)("label",null,"Tipo Puerta"),(0,i.h)("myaddr-select",{idSelect:"filterMano1",disabled:!1,onEventOnChange:e=>{this.tipoPuertaSelected=e.detail,this.setFilters(e,"Mano1")}},(0,i.h)("option",{selected:!0,disabled:!1,value:""}),this.filterOptions.filterMano1.map((e=>(0,i.h)("option",{value:e.value},e.name))))))):this.contenido.push(t):(0,i.h)("div",{class:"row"},(0,i.h)("p",null,"No hay viviendas que mostrar"))}divViviendas(){this.previousPath!==we.FAST_SEARCH&&this.previousPath!==we.GUIDED_FAST&&this.contenido.push((0,i.h)("div",{style:{textAlign:"center",margin:"12px auto"}},(0,i.h)("h2",null,"Viviendas")))}get searchElementHtml(){return(0,i.g)(this)}static get watchers(){return{address:["reloadAddress"],plantaSelected:["changePlanta"],puertaselected:["changePuerta"],bisSelected:["changeBis"],bloqueSelected:["changeBloque"],portalSelected:["changePortal"],letraSelected:["changeLetra"],escaleraSelected:["changeEscalera"],tipoPuertaSelected:["changeTipoPuerta"],aclaradorSelected:["changeAclarador"]}}};Ze.style=".label_crear {\n  cursor: pointer;\n  font-weight: bold\n}\n#viviendas {\n  th.selected {\n    width: 50px;\n  }\n  tr.vivienda {\n    cursor: pointer;\n    td {\n      text-align: center;\n    }\n    &.selected td:first-child span {\n      background: green;
2\n      width: 20px;\n      height: 20px;\n      border-radius: 50%;\n      display: block;\n      margin: 2px auto;\n    }\n  }\n}\n\n.alert {\n  position: relative;\n  border: 1px solid transparent;\n  border-radius: 0.25rem;\n}\n\n.alert-info {\n  color: #0c5460;\n  background-color: #d1ecf1;\n  border-color: #bee5eb;\n  text-align: center;\n}\n\n\n\n"},852:(e,t,a)=>{"use strict";a.d(t,{F:()=>_e,b:()=>Pe,c:()=>q,g:()=>B,h:()=>R,p:()=>b,r:()=>r});var i=Object.defineProperty,o=new WeakMap,s=e=>o.get(e),r=(e,t)=>o.set(t.t=e,t),n=(e,t)=>t in e,l=(e,t)=>(0,console.error)(e,t),d=new Map,c=new Map,h="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},m=u.document||{head:{}},p={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,a,i)=>e.addEventListener(t,a,i),rel:(e,t,a,i)=>e.removeEventListener(t,a,i),ce:(e,t)=>new CustomEvent(e,t)},b=e=>Promise.resolve(e),v=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),f=!1,g=[],y=[],A=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},k=()=>{A(g),A(y),(f=g.length>0)&&p.raf(k)},S=e=>b().then(e),x=(e=>t=>{e.push(t),f||(f=!0,4&p.l?S(k):p.raf(k))})(y),E={},w=e=>"object"==(e=typeof e)||"function"===e;function C(e){var t,a,i;return null!=(i=null==(a=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:a.getAttribute("content"))?i:void 0}((e,t)=>{for(var a in t)i(e,a,{get:t[a],enumerable:!0})})({},{err:()=>_,map:()=>O,ok:()=>P,unwrap:()=>L,unwrapErr:()=>I});var P=e=>({isOk:!0,isErr:!1,value:e}),_=e=>({isOk:!1,isErr:!0,value:e});function O(e,t){if(e.isOk){const a=t(e.value);return a instanceof Promise?a.then((e=>P(e))):P(a)}if(e.isErr)return _(e.value);throw"should never get here"}var T,N,L=e=>{if(e.isOk)return e.value;throw e.value},I=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...a)=>{let i=null,o=null,s=null,r=!1,n=!1;const l=[],d=t=>{for(let a=0;a<t.length;a++)i=t[a],Array.isArray(i)?d(i):null!=i&&"boolean"!=typeof i&&((r="function"!=typeof e&&!w(i))&&(i+=""),r&&n?l[l.length-1].i+=i:l.push(r?D(null,i):i),n=r)};if(d(a),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,l,F);const c=D(e,null);return c.u=t,l.length>0&&(c.h=l),c.p=o,c.m=s,c},D=(e,t)=>({l:0,v:e,i:t,$:null,h:null,u:null,p:null,m:null}),V={},F={forEach:(e,t)=>e.map(M).forEach(t),map:(e,t)=>e.map(M).map(t).map(H)},M=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.m,vtag:e.v,vtext:e.i}),H=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),R(e.vtag,t,...e.vchildren||[])}const t=D(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.m=e.vname,t},B=e=>s(e).$hostElement$,q=(e,t,a)=>{const i=B(e);return{emit:e=>G(i,t,{bubbles:!!(4&a),composed:!!(2&a),cancelable:!!(1&a),detail:e})}},G=(e,t,a)=>{const i=p.ce(t,a);return e.dispatchEvent(i),i},U=new WeakMap,j=e=>"sc-"+e.S,z=(e,t,a,i,o,s)=>{if(a!==i){let r=n(e,t),l=t.toLowerCase();if("class"===t){const t=e.classList,o=Z(a),s=Z(i);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in a)i&&null!=i[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in i)a&&i[t]===a[t]||(t.includes("-")?e.style.setProperty(t,i[t]):e.style[t]=i[t])}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const n=w(i);if((r||n&&null!==i)&&!o)try{if(e.tagName.includes("-"))e[t]=i;else{const o=null==i?"":i;"list"===t?r=!1:null!=a&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==i||!1===i?!1===i&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||o)&&!n&&e.setAttribute(t,i=!0===i?"":i)}else if(t="-"===t[2]?t.slice(3):n(u,l)?l.slice(2):l[2]+t.slice(3),a||i){const o=t.endsWith(K);t=t.replace(W,""),a&&p.rel(e,t,a,o),i&&p.ael(e,t,i,o)}}},$=/\s/,Z=e=>e?e.split($):[],K="Capture",W=RegExp(K+"$"),X=(e,t,a)=>{const i=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||E,s=t.u||E;for(const e of Q(Object.keys(o)))e in s||z(i,e,o[e],void 0,a,t.l);for(const e of Q(Object.keys(s)))z(i,e,o[e],s[e],a,t.l)};function Q(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var J=!1,Y=!1,ee=!1,te=!1,ae=(e,t,a)=>{var i;const o=t.h[a];let s,r,n,l=0;if(J||(ee=!0,"slot"===o.v&&(o.l|=o.h?2:1)),null!==o.i)s=o.$=m.createTextNode(o.i);else if(1&o.l)s=o.$=m.createTextNode("");else{if(te||(te="svg"===o.v),s=o.$=m.createElementNS(te?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!J&&2&o.l?"slot-fb":o.v),te&&"foreignObject"===o.v&&(te=!1),X(null,o,te),s.getRootNode().querySelector("body"),o.h)for(l=0;l<o.h.length;++l)r=ae(e,o,l),r&&s.appendChild(r);"svg"===o.v?te=!1:"foreignObject"===s.tagName&&(te=!0)}return s["s-hn"]=N,3&o.l&&(s["s-sr"]=!0,s["s-cr"]=T,s["s-sn"]=o.m||"",s["s-rf"]=null==(i=o.u)?void 0:i.ref,n=e&&e.h&&e.h[a],n&&n.v===o.v&&e.$&&ie(e.$,!1)),s},ie=(e,t)=>{p.l|=1;const a=Array.from(e.childNodes);for(let e=a.length-1;e>=0;e--){const i=a[e];i["s-hn"]!==N&&i["s-ol"]&&(pe(le(i),i,ne(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,ee=!0),t&&ie(i,t)}p.l&=-2},oe=(e,t,a,i,o,s)=>{let r,n=e["s-cr"]&&e["s-cr"].parentNode||e;for(;o<=s;++o)i[o]&&(r=ae(null,a,o),r&&(i[o].$=r,pe(n,r,ne(t))))},se=(e,t,a)=>{for(let i=t;i<=a;++i){const t=e[i];if(t){const e=t.$;e&&(Y=!0,e["s-ol"]?e["s-ol"].remove():ie(e,!0),e.remove())}}},re=(e,t,a=!1)=>!(e.v!==t.v||("slot"===e.v?"j"in e&&a&&8!==e.$.nodeType||e.m!==t.m:!a&&e.p!==t.p)),ne=e=>e&&e["s-ol"]||e,le=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,de=(e,t,a=!1)=>{const i=t.$=e.$,o=e.h,s=t.h,r=t.v,n=t.i;let l;null===n?(te="svg"===r||"foreignObject"!==r&&te,("slot"!==r||J)&&X(e,t,te),null!==o&&null!==s?((e,t,a,i,o=!1)=>{let s,r,n=0,l=0,d=0,c=0,h=t.length-1,u=t[0],m=t[h],p=i.length-1,b=i[0],v=i[p];for(;n<=h&&l<=p;)if(null==u)u=t[++n];else if(null==m)m=t[--h];else if(null==b)b=i[++l];else if(null==v)v=i[--p];else if(re(u,b,o))de(u,b,o),u=t[++n],b=i[++l];else if(re(m,v,o))de(m,v,o),m=t[--h],v=i[--p];else if(re(u,v,o))"slot"!==u.v&&"slot"!==v.v||ie(u.$.parentNode,!1),de(u,v,o),pe(e,u.$,m.$.nextSibling),u=t[++n],v=i[--p];else if(re(m,b,o))"slot"!==u.v&&"slot"!==v.v||ie(m.$.parentNode,!1),de(m,b,o),pe(e,m.$,u.$),m=t[--h],b=i[++l];else{for(d=-1,c=n;c<=h;++c)if(t[c]&&null!==t[c].p&&t[c].p===b.p){d=c;break}d>=0?(r=t[d],r.v!==b.v?s=ae(t&&t[l],a,d):(de(r,b,o),t[d]=void 0,s=r.$),b=i[++l]):(s=ae(t&&t[l],a,l),b=i[++l]),s&&pe(le(u.$),s,ne(u.$))}n>h?oe(e,null==i[p+1]?null:i[p+1].$,a,i,l,p):l>p&&se(t,n,h)})(i,o,t,s,a):null!==s?(null!==e.i&&(i.textContent=""),oe(i,null,t,s,0,s.length-1)):!a&&null!==o&&se(o,0,o.length-1),te&&"svg"===r&&(te=!1)):(l=i["s-cr"])?l.parentNode.textContent=n:e.i!==n&&(i.data=n)},ce=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const a=e["s-sn"];e.hidden=!1;for(const i of t)if(i!==e)if(i["s-hn"]!==e["s-hn"]||""!==a){if(1===i.nodeType&&(a===i.getAttribute("slot")||a===i["s-sn"])||3===i.nodeType&&a===i["s-sn"]){e.hidden=!0;break}}else if(1===i.nodeType||3===i.nodeType&&""!==i.textContent.trim()){e.hidden=!0;break}}ce(e)}},he=[],ue=e=>{let t,a,i;for(const o of e.childNodes){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){a=t.parentNode.childNodes;const e=o["s-sn"];for(i=a.length-1;i>=0;i--)if(t=a[i],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"])if(me(t,e)){let a=he.find((e=>e.k===t));Y=!0,t["s-sn"]=t["s-sn"]||e,a?(a.k["s-sh"]=o["s-hn"],a.O=o):(t["s-sh"]=o["s-hn"],he.push({O:o,k:t})),t["s-sr"]&&he.map((e=>
2{me(e.k,t["s-sn"])&&(a=he.find((e=>e.k===t)),a&&!e.O&&(e.O=a.O))}))}else he.some((e=>e.k===t))||he.push({k:t})}1===o.nodeType&&ue(o)}},me=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,pe=(e,t,a)=>null==e?void 0:e.insertBefore(t,a),be=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},ve=(e,t)=>{if(e.l|=16,!(4&e.l))return be(e,e.M),x((()=>fe(e,t)));e.l|=512},fe=(e,t)=>{const a=e.t;if(!a)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return t?(e.l|=256,e.P&&(e.P.map((([e,t])=>Ee(a,e,t))),e.P=void 0),i=Ee(a,"componentWillLoad")):i=Ee(a,"componentWillUpdate"),i=ge(i,(()=>Ee(a,"componentWillRender"))),ge(i,(()=>Ae(e,a,t)))},ge=(e,t)=>ye(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ye=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Ae=async(e,t,a)=>{var i;const o=e.$hostElement$,s=o["s-rc"];a&&(e=>{const t=e.R;((e,t)=>{var a;const i=j(t),o=c.get(i);if(e=11===e.nodeType?e:m,o)if("string"==typeof o){let s,r=U.get(e=e.head||e);if(r||U.set(e,r=new Set),!r.has(i)){{s=m.createElement("style"),s.innerHTML=o;const i=null!=(a=p.A)?a:C(m);if(null!=i&&s.setAttribute("nonce",i),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),a=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,a)}else if("host"in e)if(v){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=h),r&&r.add(i)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o])})(e.$hostElement$.getRootNode(),t)})(e),ke(e,t,o,a),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(i=o["s-p"])?i:[],a=()=>Se(e);0===t.length?a():(Promise.all(t).then(a),e.l|=4,t.length=0)}},ke=(e,t,a,i)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,a=!1)=>{var i,o,s,r;const n=e.$hostElement$,l=e.R,d=e.T||D(null,null),c=(e=>e&&e.v===V)(t)?t:R(null,null,t);if(N=n.tagName,l.W&&(c.u=c.u||{},l.W.map((([e,t])=>c.u[t]=n[e]))),a&&c.u)for(const e of Object.keys(c.u))n.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(c.u[e]=n[e]);if(c.v=null,c.l|=4,e.T=c,c.$=d.$=n,J=!1,T=n["s-cr"],Y=!1,de(d,c,a),p.l|=1,ee){ue(c.$);for(const e of he){const t=e.k;if(!t["s-ol"]){const e=m.createTextNode("");e["s-nr"]=t,pe(t.parentNode,t["s-ol"]=e,t)}}for(const e of he){const t=e.k,n=e.O;if(n){const e=n.parentNode;let a=n.nextSibling;{let s=null==(i=t["s-ol"])?void 0:i.previousSibling;for(;s;){let i=null!=(o=s["s-nr"])?o:null;if(i&&i["s-sn"]===t["s-sn"]&&e===i.parentNode){for(i=i.nextSibling;i===t||(null==i?void 0:i["s-sr"]);)i=null==i?void 0:i.nextSibling;if(!i||!i["s-nr"]){a=i;break}}s=s.previousSibling}}(!a&&e!==t.parentNode||t.nextSibling!==a)&&t!==a&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),pe(e,t,a),1===t.nodeType&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof n["s-rf"]&&n["s-rf"](t)}else 1===t.nodeType&&(a&&(t["s-ih"]=null!=(r=t.hidden)&&r),t.hidden=!0)}}Y&&ce(c.$),p.l&=-2,he.length=0,T=void 0})(e,t,i)}catch(t){l(t,e.$hostElement$)}return null},Se=e=>{const t=e.$hostElement$,a=e.t,i=e.M;64&e.l||(e.l|=64,we(t),Ee(a,"componentDidLoad"),e.D(t),i||xe()),e.F(t),e.C&&(e.C(),e.C=void 0),512&e.l&&S((()=>ve(e,!1))),e.l&=-517},xe=()=>{we(m.documentElement),S((()=>G(u,"appload",{detail:{namespace:"geographicaladdressjs"}})))},Ee=(e,t,a)=>{if(e&&e[t])try{return e[t](a)}catch(e){l(e)}},we=e=>e.classList.add("hydrated"),Ce=(e,t,a)=>{var i,o;const r=e.prototype;if(t.H||t.L||e.watchers){e.watchers&&!t.L&&(t.L=e.watchers);const n=Object.entries(null!=(i=t.H)?i:{});if(n.map((([e,[i]])=>{31&i||2&a&&32&i?Object.defineProperty(r,e,{get(){return((e,t)=>s(this).N.get(t))(0,e)},set(a){((e,t,a,i)=>{const o=s(this);if(!o)throw Error(`Couldn't find host element for "${i.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=o.$hostElement$,n=o.N.get(t),d=o.l,c=o.t;if(a=((e,t)=>null==e||w(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(a,i.H[t][0]),(!(8&d)||void 0===n)&&a!==n&&(!Number.isNaN(n)||!Number.isNaN(a))&&(o.N.set(t,a),c)){if(i.L&&128&d){const e=i.L[t];e&&e.map((e=>{try{c[e](a,n,t)}catch(e){l(e,r)}}))}2==(18&d)&&ve(o,!1)}})(0,e,a,t)},configurable:!0,enumerable:!0}):1&a&&64&i&&Object.defineProperty(r,e,{value(...t){var a;const i=s(this);return null==(a=null==i?void 0:i.U)?void 0:a.then((()=>{var a;return null==(a=i.t)?void 0:a[e](...t)}))}})})),1&a){const a=new Map;r.attributeChangedCallback=function(e,i,o){p.jmp((()=>{var n;const l=a.get(e);if(this.hasOwnProperty(l))o=this[l],delete this[l];else{if(r.hasOwnProperty(l)&&"number"==typeof this[l]&&this[l]==o)return;if(null==l){const a=s(this),r=null==a?void 0:a.l;if(r&&!(8&r)&&128&r&&o!==i){const s=a.t,r=null==(n=t.L)?void 0:n[e];null==r||r.forEach((t=>{null!=s[t]&&s[t].call(s,o,i,e)}))}return}}this[l]=(null!==o||"boolean"!=typeof this[l])&&o}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=t.L)?o:{}),...n.filter((([e,t])=>15&t[0])).map((([e,i])=>{var o;const s=i[1]||e;return a.set(s,e),512&i[0]&&(null==(o=t.W)||o.push([e,s])),s}))]))}}return e},Pe=(e,t={})=>{var i;const r=[],n=t.exclude||[],b=u.customElements,f=m.head,g=f.querySelector("meta[charset]"),y=m.createElement("style"),A=[];let k,S=!0;Object.assign(p,t),p.o=new URL(t.resourcesUrl||"./",m.baseURI).href;let x=!1;if(e.map((e=>{e[1].map((t=>{var i;const h={l:t[0],S:t[1],H:t[2],q:t[3]};4&h.l&&(x=!0),h.H=t[2],h.q=t[3],h.W=[],h.L=null!=(i=t[4])?i:{};const u=h.S,f=class extends HTMLElement{constructor(e){super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const a={l:0,$hostElement$:e,R:t,N:new Map};a.U=new Promise((e=>a.F=e)),a.G=new Promise((e=>
vendor: 2,295 bytes, line 2
2a.D=e)),e["s-p"]=[],e["s-rc"]=[],o.set(e,a)})(e=this,h)}connectedCallback(){const e=s(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Oe(this,e,h.q)),k&&(clearTimeout(k),k=null),S?A.push(this):p.jmp((()=>(e=>{if(!(1&p.l)){const t=s(e),i=t.R,o=()=>{};if(1&t.l)Oe(e,t,i.q),(null==t?void 0:t.t)||(null==t?void 0:t.G)&&t.G.then((()=>{}));else{t.l|=1,12&i.l&&(e=>{const t=e["s-cr"]=m.createComment("");t["s-cn"]=!0,pe(e,t,e.firstChild)})(e);{let a=e;for(;a=a.parentNode||a.host;)if(a["s-p"]){be(t,t.M=a);break}}i.H&&Object.entries(i.H).map((([t,[a]])=>{if(31&a&&e.hasOwnProperty(t)){const a=e[t];delete e[t],e[t]=a}})),(async(e,t,i)=>{let o;if(!(32&t.l)){if(t.l|=32,i.I){const s=(e=>{const t=e.S.replace(/-/g,"_"),i=e.I;if(!i)return;const o=d.get(i);return o?o[t]:a(100)(`./${i}.entry.js`).then((e=>(d.set(i,e),e[t])),l)})(i);if(s&&"then"in s){const e=()=>{};o=await s,e()}else o=s;if(!o)throw Error(`Constructor for "${i.S}#${t.V}" was not found`);o.isProxied||(i.L=o.watchers,Ce(o,i,2),o.isProxied=!0);const r=()=>{};t.l|=8;try{new o(t)}catch(e){l(e)}t.l&=-9,t.l|=128,r()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=j(i);if(!c.has(t)){const a=()=>{};((e,t,a)=>{let i=c.get(e);v&&a?(i=i||new CSSStyleSheet,"string"==typeof i?i=t:i.replaceSync(t)):i=t,c.set(e,i)})(t,e,!!(1&i.l)),a()}}}const s=t.M,r=()=>ve(t,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(e,t,i)}o()}})(this)))}disconnectedCallback(){p.jmp((()=>(async()=>{if(!(1&p.l)){const e=s(this);e._&&(e._.map((e=>e())),e._=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.G)&&e.G.then((()=>{}))}})()))}componentOnReady(){return s(this).G}};h.I=e[0],n.includes(u)||b.get(u)||(r.push(u),b.define(u,Ce(f,h,1)))}))})),r.length>0&&(x&&(y.textContent+=h),y.textContent+=r.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",y.innerHTML.length)){y.setAttribute("data-styles","");const e=null!=(i=p.A)?i:C(m);null!=e&&y.setAttribute("nonce",e),f.insertBefore(y,g?g.nextSibling:f.firstChild)}S=!1,A.length?A.map((e=>e.connectedCallback())):p.jmp((()=>k=setTimeout(xe,30)))},_e=(e,t)=>t,Oe=(e,t,a)=>{a&&a.map((([a,i,o])=>{const s=e,r=Te(t,o),n=Ne(a);p.ael(s,i,r,n),(t._=t._||[]).push((()=>p.rel(s,i,r,n)))}))},Te=(e,t)=>
2a=>{var i;try{256&e.l?null==(i=e.t)||i[t](a):(e.P=e.P||[]).push([t,a])}catch(e){l(e)}},Ne=e=>({passive:!!(1&e),capture:!!(2&e)})},520:(e,t,a)=>{"use strict";a.d(t,{g:()=>i});const i=()=>{}},100:(e,t,a)=>{var i={"./p-ba9bb4f5.entry.js":296};function o(e){return Promise.resolve().then((()=>{if(!a.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a(i[e])}))}o.keys=()=>Object.keys(i),o.id=100,e.exports=o}},t={};function a(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,a),s.exports}a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.e=()=>Promise.resolve(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a(180),a(72),a(296),a(852),a(520)})();

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.