PageSourceSearch

https://www.milar.es/tiendas/chunk-THEBCCXC.js

js milar.es collected 2026-09-30 21:49:03 UTC 18,376 bytes, 1 lines download raw bytes

1import{a as ue}from"./chunk-LKRTTJ75.js";import{a as Pe}from"./chunk-33RX77LZ.js";import{a as Ie}from"./chunk-P2FUWQPB.js";import{a as Oe}from"./chunk-6PBYJDEA.js";import{a as se,b as ae,c as ce,f as le,g as pe,h as Se,i as de,j as Ce}from"./chunk-IQWWQ7XR.js";import{a as $}from"./chunk-RJBGFLXZ.js";import{a as Ee}from"./chunk-LTBTKLWM.js";import{a as ge,b as me}from"./chunk-JITNVWHH.js";import{a as Re}from"./chunk-4DT5N365.js";import{$ as re,H as X,I as ne,O as oe,P as y,S as f,T as h,U as w,g as te,t as u}from"./chunk-IJ4IU5NN.js";import{Da as P,Db as d,Fb as j,Gb as q,Hb as C,Ib as x,Kb as L,Lb as F,Lc as I,Mb as n,Mc as z,Nb as r,Ob as O,Sb as A,Yb as l,Zb as T,_b as N,a as k,ac as E,b as W,bb as M,bc as c,fb as o,fc as Y,ia as S,lc as g,mc as R,nc as G,oc as ee,qb as m,ra as b,sa as v,ta as Z,ub as H,vc as D,wb as p,wc as K,xc as _e,yc as ie}from"./chunk-XUZOFYHQ.js";var U=class _ extends Oe{static ɵfac=(()=>{let i;return function(t){return(i||(i=Z(_)))(t||_);};})();static ɵcmp=m({type:_,selectors:[["sinersis-pois-list-search-bar"]],features:[H],decls:7,vars:5,consts:()=>{let i;i="Buscar usando mi localizaci\xF3n";let e;e="Barcelona, 08013, nombre de la tienda...";let t;t="Buscar usando el texto introducido";let s;return s=" Introduce un texto para realizar la b\xFAsqueda ",[s,["name","form",3,"submit","formGroup"],[1,"provinces-search__bar"],["type","button","aria-label",i,1,"provinces-search__bar__gps",3,"click"],["type","text","formControlName","searchText","placeholder",e,"required",""],["type","submit","aria-label",t,1,"provinces-search__bar__search"],[1,"provinces-search__error"]];},template:function(e,t){e&1&&(n(0,"form",1),E("submit",function(){return t.onSubmit();}),n(1,"div",2)(2,"button",3),E("click",function(){return t.getStoresByGeolocation();}),r(),O(3,"input",4)(4,"button",5),r(),n(5,"div",6),l(6,0),r()()),e&2&&(d("formGroup",t.form),o(3),q(t.submitted&&t.form.controls.searchText.invalid?"search-filter-error":"search-filter"),o(2),j("provinces-search__error--show",t.submitted&&t.form.controls.searchText.invalid));},dependencies:[Ce,le,se,ae,ce,de,pe,Se],styles:['.provinces-search__bar[_ngcontent-%COMP%]{display:flex}.provinces-search__bar__search[_ngcontent-%COMP%], .provinces-search__bar__gps[_ngcontent-%COMP%]{position:relative;background-color:var(--brand-background-button);color:#fff;width:35px;height:35px;border:0;display:flex;align-items:center;justify-content:center;outline:none;transition:.5s}.provinces-search__bar__search[_ngcontent-%COMP%]:before, .provinces-search__bar__gps[_ngcontent-%COMP%]:before{content:"";display:inline-block;position:absolute;top:50%;transform:translateY(-50%);width:18px;height:18px;background-size:contain;background-repeat:no-repeat}.provinces-search__bar__search[_ngcontent-%COMP%]:hover, .provinces-search__bar__gps[_ngcontent-%COMP%]:hover{background-color:var(--brand-grey)}.provinces-search__bar__search[_ngcontent-%COMP%]:before{background-image:url(/tiendas/assets/home/search.svg)}.provinces-search__bar__gps[_ngcontent-%COMP%]:before{background-image:url(/tiendas/assets/home/gps.svg)}.provinces-search__bar[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;height:35px;border:1px solid #f0f0f0;background:#f0f0f0;padding:10px 20px;color:gray;flex:1;outline:none;transition:.5s}.provinces-search__bar[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{background-color:#fff;border-color:var(--brand-grey)}.provinces-search__error[_ngcontent-%COMP%]{font-size:12px;color:var(--color-error);margin:5px 0 10px;visibility:hidden}.provinces-search__error--show[_ngcontent-%COMP%]{visibility:visible}'],changeDetection:0});};var Ne=_=>["/",_];function fe(_,i){if(_&1&&O(0,"source",23),_&2){let e=c(2).$implicit;d("srcset",e.image.resolutions[1].url);}}function he(_,i){if(_&1){let e=A();n(0,"picture"),p(1,fe,1,1,"source",23),n(2,"img",24),E("error",function(s){b(e);let a=c(2);return v(a.onImgError(s));}),r()();}if(_&2){let e=c().$implicit;o(),C(e.image.resolutions&&e.image.resolutions[1].url?1:-1),o(),d("src",e.image.raw,M);}}function be(_,i){_&1&&O(0,"img",8);}function ve(_,i){_&1&&(n(0,"p",12),l(1,2),r());}function Me(_,i){_&1&&(n(0,"p",13),l(1,3),r());}function xe(_,i){if(_&1){let e=A();n(0,"a",25),E("click",function(){b(e);let s=c().$implicit,a=c();return v(a.registerPhoneClickKpi(s));}),g(1),r();}if(_&2){let e=c().$implicit;d("href","tel:"+e.phone,M),o(),G(" ",e.phone," ");}}function Le(_,i){if(_&1&&(n(0,"div",22),g(1),K(2,"number"),r()),_&2){let e=c().$implicit;o(),G(" ",ie(2,1,e.distance,"1.0-2")," km ");}}
1function Fe(_,i){if(_&1){let e=A();n(0,"div",6)(1,"div",7),p(2,he,3,2,"picture")(3,be,1,0,"img",8),n(4,"div",9)(5,"h2",10)(6,"a",11),g(7),r()(),p(8,ve,2,0,"p",12),K(9,"poiIsOpened"),p(10,Me,2,0,"p",13),n(11,"ul",14)(12,"li",15),g(13),r(),n(14,"li",15),g(15),r()(),n(16,"div",16),p(17,xe,2,2,"a",17),n(18,"a",18),E("click",function(){let s=b(e).$implicit,a=c();return v(a.registerHowToGetThereKpi(s));}),l(19,1),r()(),n(20,"div",19)(21,"div",20),O(22,"img",21),g(23),r(),p(24,Le,3,4,"div",22),r()()()();}if(_&2){let e=i.$implicit,t=i.$index;o(2),C(e.image?2:3),o(4),d("routerLink",D(16,Ne,e.website)),o(),R(e.name),o(),C(_e(9,14,e.currentSchedule)?8:10),o(5),R(e.address),o(2),ee("",e.postalCode," ",e.city,""),o(2),C(e!=null&&e.phone&&e.phone!=="0"?17:-1),o(),Y("href","https://www.google.com/maps/dir/?api=1&destination=",e.address,"+",e.postalCode,"+",e.city,"&travelmode=driving",M),o(5),R(t+1),o(),C(e!=null&&e.distance?24:-1);}}var J=class _{kpiService=S(w);routerService=S(y);sinersisConfig=S($);pois=P();onImgError(i){i.target.src="./assets/backgrounds/no-photo.webp";}registerHowToGetThereKpi(i){let e=this.sinersisConfig.brandCode;e&&this.kpiService.registerKpi({event:f.HOW_TO_GET_THERE_CLICK,lang:$localize.locale,originAddress:"",pageCode:h.POI_LIST,poiCode:i.code,queryParameters:this.routerService.getSnapshotQueryParams(),siteCode:e});}registerPhoneClickKpi(i){let e=this.sinersisConfig.brandCode;e&&this.kpiService.registerKpi({event:f.PHONE_CALL_CLICK,lang:$localize.locale,pageCode:h.POI_LIST,poiCode:i.code,siteCode:e});}static ɵfac=function(e){return new(e||_)();};static ɵcmp=m({type:_,selectors:[["sinersis-pois-list-card"]],inputs:{pois:[1,"pois"]},decls:5,vars:0,consts:()=>{let i;i="Tiendas";let e;e=" C\xF3mo llegar ";let t;t="Abierto";let s;return s="Cerrado",[i,e,t,s,[1,"pois-province__tit"],[1,"pois-province__list"],[1,"pois-province__item"],[1,"pois-province__item__container"],["src","./assets/backgrounds/no-photo.webp","alt","store-thumbnail",1,"pois-province__item__container__img","no-photo"],[1,"pois-province__item__info"],[1,"name"],[3,"routerLink"],[1,"state--open"],[1,"state--closed"],[1,"address"],[1,"item"],[1,"buttons"],[1,"buttons__telephone",3,"href"],["target","_blank",1,"buttons__how-to",3,"click","href"],[1,"geolocation-item"],[1,"icon"],["src","./assets/province/room.svg","alt",""],[1,"distance"],[1,"pois-province__item__container__img",3,"srcset"],["alt","store-thumbnail",1,"pois-province__item__container__img",3,"error","src"],[1,"buttons__telephone",3,"click","href"]];},template:function(e,t){e&1&&(n(0,"h2",4),l(1,0),r(),n(2,"div",5),L(3,Fe,25,18,"div",6,x),r()),e&2&&(o(3),F(t.pois()));},dependencies:[Re,Pe,te],styles:['.pois-province__tit[_ngcontent-%COMP%]{color:var(--brand-list-province-color-tit);font-size:16px;font-weight:400;background-color:var(--brand-list-province-background-tit);margin:0 -15px;padding:10px 15px}.pois-province__list[_ngcontent-%COMP%]{background:#f0f0f0;margin:0 -15px;padding:15px}@media (min-device-width: 1024px){.pois-province__list[_ngcontent-%COMP%]{overflow-x:hidden;overflow-y:auto;max-height:calc(100vh - 373px);min-height:425px}}.pois-province__item[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #dedede;padding:15px;margin:0 0 15px;position:relative;transition:.5s}.pois-province__item[_ngcontent-%COMP%]:hover{border-color:var(--brand-primary)}@media (min-device-width: 600px){.pois-province__item__container[_ngcontent-%COMP%]{display:flex}}.pois-province__item__container__img[_ngcontent-%COMP%]{max-width:200px;max-height:200px;min-height:150px;object-fit:cover;margin:0 15px 0 0}.pois-province__item__container[_ngcontent-%COMP%]   .no-photo[_ngcontent-%COMP%]{width:100%}.pois-province__item__info[_ngcontent-%COMP%]{width:100%;flex:1;padding:0 50px 0 0}.pois-province__item__info[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{text-transform:uppercase;margin:0 0 5px}.pois-province__item__info[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--brand-list-searchbar-item-tit);font-weight:700;text-decoration:none;font-size:18px;line-height:normal}.pois-province__item__info[_ngcontent-%COMP%]   .basic__state[_ngcontent-%COMP%]{font-weight:500}.pois-province__item__info[_ngcontent-%COMP%]   .address[_ngcontent-%COMP%]{border-left:5px solid #f0f
10f0;padding-left:10px}.pois-province__item__info[_ngcontent-%COMP%]   .address[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{font-size:16px;color:var(--brand-grey);margin:5px 0}.pois-province__item__info[_ngcontent-%COMP%]   .geolocation-item[_ngcontent-%COMP%]{position:absolute;top:15px;right:15px;text-align:center}.pois-province__item__info[_ngcontent-%COMP%]   .geolocation-item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{display:flex;flex-flow:column;align-items:center;font-size:14px;font-weight:700;color:var(--brand-list-searchbar-geoloc)}.pois-province__item__info[_ngcontent-%COMP%]   .geolocation-item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:2.2rem;height:2.2rem}.pois-province__item__info[_ngcontent-%COMP%]   .geolocation-item[_ngcontent-%COMP%]   .distance[_ngcontent-%COMP%]{margin:0;font-size:12px;color:gray}.pois-province__item[_ngcontent-%COMP%]:last-child{margin:0}.buttons[_ngcontent-%COMP%]{display:flex;margin:10px -5px 0}.buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{flex:1}.buttons__telephone[_ngcontent-%COMP%], .buttons__how-to[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;padding:8px 12px;border:1px solid;font-weight:600;line-height:1;font-size:14px;cursor:pointer;transition:.5s;text-decoration:none;margin-inline:5px}.buttons__telephone[_ngcontent-%COMP%]{color:var(--brand-list-searchbar-btn-color--telephone);background:var(--brand-list-searchbar-btn--telephone);border-color:var(--brand-list-searchbar-btn--telephone);border-radius:var(--brand-border-radius)}.buttons__telephone[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:1.3em;height:1.3em;background-image:url(/tiendas/assets/province/phone.svg);background-size:contain;background-repeat:no-repeat;margin-right:.5em;vertical-align:middle}.buttons__telephone[_ngcontent-%COMP%]:hover{background-color:var(--brand-list-searchbar-btn--telephone)}.buttons__how-to[_ngcontent-%COMP%]{color:var(--brand-list-searchbar-btn--how-to);background:var(--brand-list-searchbar-btn-background--how-to);border-radius:var(--brand-border-radius)}.buttons__how-to[_ngcontent-%COMP%]:hover{background-color:var(--brand-list-searchbar-btn--how-to);color:#fff}'],changeDetection:0});};function Ae(_,i){if(_&1&&(n(0,"p",5),g(1),r()),_&2){let e=c().$implicit;o(),R(e.value);}}function De(_,i){if(_&1&&(n(0,"div",4)(1,"p",5),l(2,1),r(),p(3,Ae,2,1,"p",5),r()
1),_&2){let e=i.$implicit;o(2),T(e.triggerValue),N(2),o(),C(e.value?3:-1);}}function ye(_,i){if(_&1&&(n(0,"div",2)(1,"p",3),l(2,0),r(),L(3,De,4,2,"div",4,x),r()),_&2){let e=c();o(3),F(e.alertArray());}}var B=class _{warnings=P();pois=P();alertArray=I(()=>{let i=this.warnings()?.POSTAL_CODE_TRIGGER;if(i){let e=Array.from(new Set((this.pois()??[]).map(t=>t.postalCode).sort()));return Object.values(Object.values(i).flat().sort((t,s)=>t.code.localeCompare(s.code)).reduce((t,s)=>W(k({},t),{[s.code]:W(k({},t[s.code]??s),{triggerValue:Array.from(new Set((s.triggerValue.length===2?e.filter(a=>a.startsWith(s.triggerValue)):[s.triggerValue]).concat(t[s.code]?t[s.code].triggerValue.split(",").map(a=>a.trim()):[]).sort())).join(", ")})}),{}));}else return;});static ɵfac=function(e){return new(e||_)();};static ɵcmp=m({type:_,selectors:[["sinersis-warning-box"]],inputs:{warnings:[1,"warnings"],pois:[1,"pois"]},decls:1,vars:1,consts:()=>{let i;i="\xA1ATENCI\xD3N! Hay alerta(s) activa(s) en el \xE1rea buscada:";let e;return e="C\xF3digo postal: "+"\uFFFD0\uFFFD"+"",[i,e,[1,"warning-box"],[1,"warning-box__title"],[1,"warning-box__container"],[1,"warning-box__container__subtitle"]];},template:function(e,t){e&1&&p(0,ye,5,0,"div",2),e&2&&C(t.alertArray()?0:-1);},styles:[".warning-box[_ngcontent-%COMP%]{padding:5px;background-color:#fdffc9;margin-bottom:10px;font-size:16px;line-height:1}.warning-box__title[_ngcontent-%COMP%]{font-weight:600;margin-bottom:5px}.warning-box__container[_ngcontent-%COMP%]{margin-bottom:5px}.warning-box__container__subtitle[_ngcontent-%COMP%]{margin:15px 0}"],changeDetection:0});};var we=_=>({lat:40.4167,lng:_});function $e(_,i){_&1&&(n(0,"p"),l(1,0),r());}function Ue(_,i){if(_&1&&(n(0,"h1",10),l(1,1),r()),_&2){let e=c(2);o(),T(e.searchedAddress()),N(1);}}function Je(_,i){_&1&&(n(0,"h1",10),l(1,2),r());}function Be(_,i){if(_&1&&(n(0,"h1",10),l(1,3),r()),_&2){let e,t=c(2);o(),T((e=t.province())==null?null:e.label),N(1);}}function ke(_,i){if(_&1&&(O(0,"sinersis-warning-box",8),n(1,"div",9),p(2,Ue,2,1,"h1",10)(3,Je,2,0,"h1",10)(4,Be,2,1,"h1",10),n(5,"span",11),g(6),r()(),O(7,"sinersis-pois-list-card",12)),_&2){let e=c();d("pois",e.pois())("warnings",e.warnings()),o(2),C(e.searchedAddress()?2:e.latitude()&&e.longitude()?3:4),o(4),R(e.pois().length),o(),d("pois",e.pois());}}function We(_,i){if(_&1&&O(0,"sinersis-map-info-window",13),_&2){let e=i.$implicit;d("poi",e);}}var Te=class _{poisService=S(re);regionsService=S(oe);pageService=S(ne);routerService=S(y);structuredDataService=S(Ie);kpiService=S(w);sinersisConfig=S($);pois=u(this.poisService.getPois(),{initialValue:[]});warnings=u(this.poisService.getWarnings(),{initialValue:{}});pageType=u(this.pageService.getPageType(),{initialValue:void 0});province=u(this.regionsService.getCurrentProvince(),{initialValue:void 0});queryParams=u(this.routerService.getQueryParams(),{initialValue:void 0});searchedAddress=I(()=>this.queryParams()?.customSearch);latitude=I(()=>this.queryParams()?.latitude);longitude=I(()=>this.queryParams()?.longitude);constructor(){z(()=>{this.pageType()===X.PROVINCE&&this.province()?(this.poisService.updatePois({provinceWebsite:this.province()?.website}),this.registerPoiListVisitKpi()):this.pageType()===X.LIST_SEARCH&&(this.searchedAddress()||this.latitude()&&this.longitude())&&(this.poisService.updatePois({searchedAddress:this.searchedAddress(),latitude:this.latitude(),longitude:this.longitude()}),this.registerPoiListVisitKpi());}),z(()=>this.structuredDataService.insertPoiListSchema(this.pois()));}registerPoiListVisitKpi(){let i=this.sinersisConfig.brandCode;i&&this.kpiService.registerKpi({event:f.POI_LIST_VISIT,lang:$localize.locale,pageCode:h.POI_LIST,queryParameters:this.routerService.getSnapshotQueryParams(),siteCode:i,province:this.province()?.code});}ngOnDestroy(){this.structuredDataService.removePoiListSchema();}static ɵfac=function(e){return new(e||_)();};static ɵcmp=m({type:_,selectors:[["sinersis-pois-list"]],decls:8,vars:8,consts:()=>{let i;i="No se han encontrado tiendas en su \xE1rea.";let e;e="Resultado de tu b\xFAsqueda \""+"\uFFFD0\uFFFD"+"\"";let t;t="Resultado de tu b\xFAsqueda";let s;return s="Otras tiendas Milar en "+"\uFFFD0\uFFFD"+"",[i,e,t,s,[1,"provinces-list"],[1,"provinces-list__aside"],["markerIconUrl","./assets/map/mark.webp",1,"provinces-list__map",3,"pois","zoom","center","fitMapToMarkers","enableMarkerLabel"],["sinersisMapInfoWindow",""],[3,"pois","warnings"],[1,"testing"],[1,"provinces-search__subtit"],[1,"provinces-search__num"],[3,"pois"],[3,"poi"]];},template:function(e,t){e&1&&(n(0,"div",4)(1,"div",5),O(2,"sinersis-breadcrumb")(3,"sinersis-pois-list-search-bar"),p(4,$e,2,0,"p")(5,ke,8,5),r(),n(6,"sinersis-map",6),p(7,We,1,1,"ng-template",7),r()()),e&2&&(o(4),C(t.pois().length?5:4),o(2),d("pois",t.pois())("zoom",5.4)("center",D(6,we,-3.70325))("fitMapToMarkers",!0)("enableMarkerLabel",!0));},dependencies:[ue,U,me,J,Ee,ge,B],styles:["@media (min-device-width: 768px){.provinces-list[_ngcontent-%COMP%]{display:flex}}.provinces-list__aside[_ngcontent-%COMP%]{padding:0 15px}@media (min-device-width: 768px){.provinces-list__aside[_ngcontent-%COMP%]{flex:40%}}@media (min-device-width: 768px){.provinces-list__map[_ngcontent-%COMP%]{min-height:640px;flex:60%}}@media (max-device-width: 767px){.provinces-list__map[_ngcontent-%COMP%]{position:fixed;width:100%;height:100vh;left:100%;top:0;z-index:10;transition:.8s}.provinces-list__map.active[_ngcontent-%COMP%]{left:0}}.provinces-search__bar[_ngcontent-%COMP%]{display:flex}.provinces-search__bar[_ngcontent-%COMP%]   .btn-icon[_ngcontent-%COMP%]{background-color:var(--brand-grey);color:#fff;width:35px;height:35px;border:0;display:flex;align-items:center;justify-content:center;outline:none;transition:.5s}.provinces-search__bar[_ngcontent-%COMP%]   .btn-icon[_ngcontent-%COMP%]:hover{background-color:var(--brand-primary)}.provinces-search__bar[_ngcontent-%COMP%]   .btn-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.provinces-search__bar[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;height:35px;
1border:1px solid #f0f0f0;background:#f0f0f0;padding:10px 20px;color:gray;flex:1;outline:none;transition:.5s}.provinces-search__bar[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{background-color:#fff;border-color:var(--brand-grey)}.provinces-search[_ngcontent-%COMP%]   .input__show[_ngcontent-%COMP%], .provinces-search[_ngcontent-%COMP%]   .input__hide[_ngcontent-%COMP%]{font-size:12px;color:red;margin:5px 0 10px}.provinces-search__subtit[_ngcontent-%COMP%]{margin:0 0 10px;line-height:normal;font-size:20px;font-weight:400;display:inline-flex;align-items:center}.provinces-search__num[_ngcontent-%COMP%]{line-height:normal;font-weight:400;color:#fff;background-color:var(--brand-province-search-num);width:29px;height:29px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;margin-inline-start:8px;font-size:15px}"],changeDetection:0});};export{Te as SinersisPoisListComponent};/**i18n:9e36b4cde14bd6fbef6269be0cec0080484f292ca5cf7ff07439f7e065d4c805*/

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.