PageSourceSearch

https://www.anobii.com/493.fa12215da573fef8.js

js anobii.com collected 2026-09-24 08:28:28 UTC 45,222 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkanobii_front_end=self.webpackChunkanobii_front_end||[]).push([[493],{8493:(ge,Z,l)=>{l.r(Z),l.d(Z,{BookstoresModule:()=>ne});var d=l(6895),u=l(2726),O=l(4308),P=l(5861),t=l(4650),h=l(5441),C=l(9136),q=l(7379),L=l(9841),m=l(9808),F=l(6228),M=l(9383),b=l(7897),I=l(2323),D=l(6267),z=l(3221),A=l(8231),j=l(6810),T=l(9895),K=l(5109),R=l(468),J=l(1470),G=l(6295),U=l(7173);function $(o,a){1&o&&(t.TgZ(0,"th",4),t._uU(1,"label_distance"),t.qZA())}function H(o,a){if(1&o&&t.GkF(0,10),2&o){t.oxw();const e=t.MAs(18);t.Q6J("ngTemplateOutlet",e)}}const V=function(o,a){return{person:o,distance:a}};function W(o,a){if(1&o&&t.GkF(0,12),2&o){const e=a.$implicit;t.oxw(2);const n=t.MAs(16);t.Q6J("ngTemplateOutlet",n)("ngTemplateOutletContext",t.WLB(2,V,e.bookstore,e.distance))}}function X(o,a){if(1&o&&(t.ynx(0),t.YNc(1,W,1,5,"ng-container",11),t.BQk()),2&o){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.data)}}function tt(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"td",19),t.NdJ("click",function(i){t.CHM(e);const s=t.oxw().person,c=t.oxw();return t.KtG(c.config.clickEvent&&c.config.clickEvent(i,s))}),t._uU(1),t.qZA()}if(2&o){const e=t.oxw(),n=e.person,i=e.distance,s=t.oxw();t.xp6(1),t.hij(" ",s.getDistanceKm(n,i)||"n/a"," ")}}function et(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"tr",13),t.NdJ("inViewport",function(i){const c=t.CHM(e).person,r=t.oxw();return t.KtG(r.viewedEventTrack(c,i))}),t.TgZ(1,"a",14),t.ALo(2,"localize"),t.TgZ(3,"td",15),t.NdJ("click",function(i){const c=t.CHM(e).person,r=t.oxw();return t.KtG(r.config.clickEvent&&r.config.clickEvent(i,c))}),t._UZ(4,"app-user-info",16),t.qZA(),t.TgZ(5,"td",17),t.NdJ("click",function(i){const c=t.CHM(e).person,r=t.oxw();return t.KtG(r.config.clickEvent&&r.config.clickEvent(i,c))}),t._uU(6),t.ALo(7,"number"),t.qZA(),t.TgZ(8,"td",17),t.NdJ("click",function(i){const c=t.CHM(e).person,r=t.oxw();return t.KtG(r.config.clickEvent&&r.config.clickEvent(i,c))}),t._uU(9),t.ALo(10,"number"),t.qZA(),t.TgZ(11,"td",17),t.NdJ("click",function(i){const c=t.CHM(e).person,r=t.oxw();return t.KtG(r.config.clickEvent&&r.config.clickEvent(i,c))}),t._uU(12),t.ALo(13,"number"),t.qZA(),t.YNc(14,tt,2,1,"td",18),t.qZA()()}if(2&o){const e=a.person,n=t.oxw();t.xp6(1),t.Q6J("routerLink",t.lcZ(2,7,e.url)),t.xp6(3),t.Q6J("user",e)("buttonTemplate",n.bookstoreButtonsTemplate),t.xp6(2),t.hij(" ",t.Dn7(7,9,e.review_count,"1.0-0",n.translateService.currentLang)," "),t.xp6(3),t.hij(" ",t.Dn7(10,13,n.getSuggestionCount(e),"1.0-0",n.translateService.currentLang)," "),t.xp6(3),t.hij(" ",t.Dn7(13,17,e.follower_count,"1.0-0",n.translateService.currentLang)," "),t.xp6(2),t.Q6J("ngIf",n.showDistanceColumn)}}function ot(o,a){1&o&&(t.TgZ(0,"tr")(1,"td",20),t._uU(2,"label_no_data"),t.qZA()())}let Y=(()=>{class o{constructor(e,n,i,s){this.translateService=e,this.authenticationService=n,this.loggedUserService=i,this.commonService=s,this.data=[],this.config={},this.showDistanceColumn=!1}ngOnInit(){this.lang=this.translateService.currentLang,this.label_m=this.translateService.instant("label_m"),this.label_km=this.translateService.instant("label_km")}getDistanceKm(e,n){if(e.address&&null!=n&&n>=0){let i=this.label_km,s="0";return n<10?i=this.label_m:s=n>=10&&n<=100?(0,d.uf)(.1,this.lang,"1.0-1"):(0,d.uf)(n/1e3,this.lang,n<1e5?"1.0-1":"1.0-0"),`${s} ${i}`}this.translateService.instant("label_not_available")}getSuggestionCount(e){return e?.collection_editions_count||0}viewedEventTrack(e,n){n&&e&&this.loggedUserService.getUser(this.authenticationService.isLoggedIn()).then(i=>{const s=!!i&&i.is(e.encrypt_id);e.isBusinessUser&&!s&&this.commonService.trackEventByType(new K.q({content_type:"user",item_id:e.encrypt_id||e.alt_encrypt_id,author_id:e.person_id,context:"list"}))})}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(M.sK),t.Y36(C.$h),t.Y36(R.U),t.Y36(b.v_))}
1,o.\u0275cmp=t.Xpm({type:o,selectors:[["app-bookstores-table"]],inputs:{data:"data",config:"config",showDistanceColumn:"showDistanceColumn",bookstoreButtonsTemplate:"bookstoreButtonsTemplate"},decls:19,vars:3,consts:[[1,"bookstores-table","table-responsive"],[1,"anobii-table","table"],[1,"small"],["scope","col"],["scope","col","translate",""],["scope","col","translate","",4,"ngIf"],[3,"ngTemplateOutlet",4,"ngIf"],[4,"ngIf"],["bookstoreRow",""],["noData",""],[3,"ngTemplateOutlet"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["in-view-track-event","",3,"inViewport"],[1,"unstyled-link","display-contents",3,"routerLink"],["scope","row",2,"width","60%",3,"click"],[3,"user","buttonTemplate"],[1,"small","text-muted",3,"click"],["class","small text-muted text-nowrap",3,"click",4,"ngIf"],[1,"small","text-muted","text-nowrap",3,"click"],["colspan","5","translate","",1,"text-center","small"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"table",1)(2,"thead")(3,"tr",2),t._UZ(4,"th",3),t.TgZ(5,"th",4),t._uU(6,"label_reviews"),t.qZA(),t.TgZ(7,"th",4),t._uU(8,"label_suggestions"),t.qZA(),t.TgZ(9,"th",4),t._uU(10,"label_followers"),t.qZA(),t.YNc(11,$,2,0,"th",5),t.qZA()(),t.TgZ(12,"tbody"),t.YNc(13,H,1,1,"ng-container",6),t.YNc(14,X,2,1,"ng-container",7),t.qZA()()(),t.YNc(15,et,15,21,"ng-template",null,8,t.W1O),t.YNc(17,ot,3,0,"ng-template",null,9,t.W1O)),2&e&&(t.xp6(11),t.Q6J("ngIf",n.showDistanceColumn),t.xp6(2),t.Q6J("ngIf",0===(null==n.data?null:n.data.length)),t.xp6(1),t.Q6J("ngIf",(null==n.data?null:n.data.length)>0))},dependencies:[d.sg,d.O5,d.tP,u.rH,J.M,G.z,M.Pi,d.JJ,U.lO],changeDetection:0}),o})();function nt(o,a){if(1&o&&t._UZ(0,"app-card-book-detail",9),2&o){const e=t.oxw();t.Q6J("edition",e.edition)}}function st(o,a){if(1&o&&(t.TgZ(0,"sup")(1,"span",20),t._uU(2),t.qZA()()),2&o){const e=t.oxw(2);t.xp6(2),t.Oqu(e.count)}}function it(o,a){1&o&&t._UZ(0,"i",24)}function at(o,a){1&o&&t._UZ(0,"i",25)}function rt(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"ngb-pagination",21),t.NdJ("pageChange",function(i){t.CHM(e);const s=t.oxw(2);return t.KtG(s.receivePage(i))}),t.YNc(1,it,1,0,"ng-template",22),t.YNc(2,at,1,0,"ng-template",23),t.qZA()}if(2&o){const e=t.oxw(2);t.Q6J("page",e.page)("pageSize",e.pageSize)("collectionSize",e.count)("maxSize",5)("rotate",!0)}}function lt(o,a){1&o&&(t.TgZ(0,"div",26),t._UZ(1,"span",27),t.qZA())}function ct(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"div",10)(1,"h1",11),t._uU(2," title_bookstores_suggesting_book"),t.YNc(3,st,3,1,"sup",12),t.qZA(),t.TgZ(4,"div",13)(5,"div",14)(6,"app-filters",15),t.NdJ("change",function(i){t.CHM(e);const s=t.oxw();return t.KtG(s.filterChanged(i))}),t.qZA(),t.TgZ(7,"div",16),t._UZ(8,"app-bookstores-table",17),t.YNc(9,rt,3,5,"ngb-pagination",18),t.YNc(10,lt,2,0,"div",19),t.qZA()()()()}if(2&o){const e=t.oxw();
1t.xp6(3),t.Q6J("ngIf",!e.isBookstoreDataLoading),t.xp6(3),t.Q6J("selectedFilter",e.selectedFilter)("disabled",e.isBookstoreDataLoading||0===(null==e.bookstores?null:e.bookstores.length))("config",e.filterConfig),t.xp6(2),t.Q6J("data",e.bookstores)("showDistanceColumn",e.showDistanceColumn),t.xp6(1),t.Q6J("ngIf",e.count>0),t.xp6(1),t.Q6J("ngIf",e.isBookstoreDataLoading)}}function dt(o,a){1&o&&(t.TgZ(0,"div",28),t._UZ(1,"span",27),t.qZA())}let gt=(()=>{class o extends q.H{constructor(e,n,i,s,c,r,p,f,_,k,v){super(s),this.router=e,this.route=n,this.seoService=i,this.commonService=c,this.storageService=r,this.editionsService=p,this.bookstoreService=f,this.loggedUserService=_,this.authenticationService=k,this.platformId=v,this.page=1,this.pageSize=10,this.selectContentTracked=!1,this.loadingBookstore=!1,this.firstLoadingDone=!1}ngOnInit(){var e=this;super.ngOnInit();const n=[];n.push(this.route.params),n.push(this.route.queryParams);const i=(0,L.a)(n),s=this,c={...this.route.snapshot.queryParams,...this.route.snapshot.params};this.editionsService.editions_eid(c.eid).subscribe(r=>{this.edition=r,this.trackSelectContent(),this.addMetaTag(),this.loggedUserService.getUser(this.authenticationService.isLoggedIn()).then(function(){var p=(0,P.Z)(function*(f){s.loggedUser=f,s.userLocation=yield e.calculateUserPosition(),s.initFilters(),s.subs.push(i.subscribe(_=>{if(s.page=_[1].p||1,e.selectedFilter){const v=e.filterConfig.load();v&&!v.equals(e.selectedFilter)&&(e.selectedFilter=v)}s.getBookstoreList()}))});return function(f){return p.apply(this,arguments)}}())},r=>{console.debug("Error: ",r)})}calculateUserPosition(){return new Promise(e=>{e(this.loggedUser?.location)})}getBookstoreList(){this.loadingBookstore||!this.selectedFilter||(0,d.PM)(this.platformId)||(this.loadingBookstore=!0,(0,m.n)(this.bookstoreService.bookstores({book:this.edition.family_id,page:this.page-1,sort:this.selectedFilter.id,order:this.selectedFilter.sort})).then(n=>{this.bookstores=n.bookstores_list,this.count=n.bookstores_total}).finally(()=>{this.firstLoadingDone=!0,this.loadingBookstore=!1}))}filterChanged(e,n=!0){if(!e||e.equals(this.selectedFilter))return;const i=null==this.selectedFilter&&!!e;this.selectedFilter=e,i?this.route.snapshot.queryParams.f||"relevance"===e.id?this.getBookstoreList():this.updatePage(!0):(n&&this.filterConfig.save(e),this.updatePage())}receivePage(e){this.page!=e&&(this.page=e,this.updatePage())}updatePage(e){const n=this.router.parseUrl(this.router.url);n.queryParams={p:this.page,f:this.selectedFilter.id},this.selectedFilter.sort&&(n.queryParams.o=this.selectedFilter.sort),n.fragment=null,this.router.navigateByUrl(n.toString(),{replaceUrl:!!e})}trackSelectContent(){this.selectContentTracked||(this.commonService.trackEvent("select_content",{item_id:this.edition.id,content_type:"bookstores_suggesting"},!0),this.selectContentTracked=!0)}addMetaTag(){if(!this.edition)return;const e=this.edition.authors.reduce((i,s)=>i.length?i+", "+s.name:s.name,""),n={title:this.translateService.instant("html_title_bookstores_suggesting_book",{book_title:this.edition.title,author:e}),description:this.translateService.instant("html_meta_description_bookstore_suggesting_book",{book_title:this.edition.title,author:e}),meta:[{name:"robots",content:"noindex"}]};this.seoService.setMetaData(n)}initFilters(){const e=[new h.R0({id:"relevance",sort:"desc",label:"button_sort_relevance"}),new h.R0({id:"reviews",sort:"desc",label:"button_sort_reviews"}),new h.R0({id:"editions",sort:"desc",label:"button_sort_bookstores_by_suggestions"}),new h.R0({id:"followers",sort:"desc",label:"button_sort_followers"})];this.userLocation&&e.push(new h.R0({id:"distance",sort:"asc",label:"button_sort_bookstores_by_distance"}));const n=e[0],i=C._J.BOOKSTORE.SUGGESTING;this.filterConfig={filters:e,selectedFilter:n,autosave:!1,save:s=>{(0,d.NF)(this.platformId)&&this.storageService.setItem(i,s.toJson())},load:()=>{let s;if(!this.selectedFilter&&(0,d.NF)(this.platformId))try{s=JSON.parse(this.storageService.getItem(i))}catch{}
1const c={...this.route.snapshot.queryParams,...this.route.snapshot.params};s={id:c.f??s?.id??n?.id,sort:c.o??s?.sort??n?.sort,label:void 0};const r=e.find(p=>p.id===s.id);return r&&(r.id=s.id,r.sortable&&(r.sort=s.sort)),r}}}get isBookstoreDataLoading(){return this.loadingBookstore||!this.firstLoadingDone}get showDistanceColumn(){return!!this.userLocation}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(u.F0),t.Y36(u.gz),t.Y36(F.v),t.Y36(M.sK),t.Y36(b.v_),t.Y36(I.V),t.Y36(b.OB),t.Y36(D.j),t.Y36(b.Uc),t.Y36(C.$h),t.Y36(t.Lbi))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-bookstore-suggesting-book"]],features:[t.qOj],decls:9,vars:3,consts:[[1,"container"],[1,"row"],[1,"col","position-relative"],["type","ownersList",3,"edition",4,"ngIf"],["class","mt-5",4,"ngIf"],["class","spinner spinner-full",4,"ngIf"],[1,"col-side","ps-3"],[1,"ads-sticked"],["adIndex","12"],["type","ownersList",3,"edition"],[1,"mt-5"],["translate",""],[4,"ngIf"],[1,"row","mt-4"],[1,"col","bookstores-table"],[3,"selectedFilter","disabled","config","change"],[1,"position-relative"],[3,"data","showDistanceColumn"],["class","d-flex justify-content-center",3,"page","pageSize","collectionSize","maxSize","rotate","pageChange",4,"ngIf"],["class","spinner",4,"ngIf"],[1,"badge","badge-gray","ms-2"],[1,"d-flex","justify-content-center",3,"page","pageSize","collectionSize","maxSize","rotate","pageChange"],["ngbPaginationPrevious",""],["ngbPaginationNext",""],[1,"fas","fa-chevron-left"],[1,"fas","fa-chevron-right"],[1,"spinner"],[1,"spinner-border","spinner-center"],[1,"spinner","spinner-full"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t.YNc(3,nt,1,1,"app-card-book-detail",3),t.YNc(4,ct,11,8,"div",4),t.YNc(5,dt,2,0,"div",5),t.qZA(),t.TgZ(6,"div",6)(7,"div",7),t._UZ(8,"app-advertising",8),t.qZA()()()()),2&e&&(t.xp6(3),t.Q6J("ngIf",n.edition),t.xp6(1),t.Q6J("ngIf",n.edition),t.xp6(1),t.Q6J("ngIf",!n.edition))},dependencies:[d.O5,z.c,A.b,j.N,T.N9,T.GZ,T.ju,M.Pi,Y],styles:["[_nghost-%COMP%]   h1[_ngcontent-%COMP%]{margin-bottom:1.25rem}[_nghost-%COMP%]   .bookstores-table[_ngcontent-%COMP%]     .bookstores-table{min-height:300px}@media (max-width: 767.98px){[_nghost-%COMP%]   .bookstores-table[_ngcontent-%COMP%]     .bookstores-table   div:first-child{white-space:nowrap}}"]}),o})();var pt=l(7579),ht=l(8505),ut=l(8372),_t=l(1884),Q=l(4924),ft=l(9660),mt=l(2340),bt=l(2289),kt=l(3463),S=l(3501),vt=l(8113),xt=l(6898),Ct=l(3228),Mt=l(3643),Tt=l(8014),N=l(5551);function Bt(o,a){if(1&o&&(t.TgZ(0,"div",14)(1,"div",15),t._UZ(2,"
1span",16),t.qZA()()),2&o){const e=t.oxw();t.ekj("map-loaded",e.mapJSLoaded),t.Q6J("ngClass",e.mapTheme)}}function St(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"ngx-apple-maps-annotation",20)(1,"div",21)(2,"a",22),t.NdJ("click",function(){const s=t.CHM(e).$implicit,c=t.oxw(2);return t.KtG(c.setBookstoreCalloutInService(s.options.data))}),t.ALo(3,"localize"),t._UZ(4,"div",23),t.TgZ(5,"div",24),t._UZ(6,"app-user-info",25),t.qZA()()()()}if(2&o){const e=a.$implicit;t.Q6J("options",e.options)("latitude",e.latitude)("longitude",e.longitude),t.xp6(2),t.Q6J("preventDefault",!0)("routerLink",t.lcZ(3,10,e.options.data.url)),t.xp6(2),t.Udp("background-image","url("+e.options.data.heroImageUrl+")"),t.uIk("aria-label",e.options.data.heroImageAltText),t.xp6(2),t.Q6J("user",e.options.data)("detailedAddress",!0)}}function wt(o,a){if(1&o&&(t.TgZ(0,"div",26)(1,"div",27)(2,"h1",28),t._uU(3,"title_bookstores_map"),t.qZA(),t.TgZ(4,"p",29),t._uU(5,"subtitle_bookstore_map"),t.qZA()()()),2&o){const e=t.oxw(2);t.xp6(1),t.ekj("hide",!e.showMapTitle)}}function Ot(o,a){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"ngx-apple-maps",17),t.NdJ("onLoaded",function(i){t.CHM(e);const s=t.oxw();return t.KtG(s.onLoaded(i))}),t.YNc(2,St,7,12,"ngx-apple-maps-annotation",18),t.qZA(),t.YNc(3,wt,6,2,"div",19),t.BQk()}if(2&o){const e=t.oxw();
1t.xp6(1),t.Q6J("options",e.options)("settings",e.settings),t.xp6(1),t.Q6J("ngForOf",e.annotations),t.xp6(1),t.Q6J("ngIf",!e.isSearchMode)}}function Pt(o,a){1&o&&(t.TgZ(0,"div",30),t._UZ(1,"span",16),t.qZA())}function yt(o,a){if(1&o&&t._UZ(0,"app-card-featured",37),2&o){const e=t.oxw().$implicit,n=t.oxw(2);t.Q6J("profile",e)("in-view-track-enable",!0)("showFollowBtn",n.showFollowBtn(e))("config",n.configBookstoreFeatured)}}function Zt(o,a){1&o&&t.YNc(0,yt,1,4,"ng-template",36),2&o&&t.Q6J("width",300)}function Lt(o,a){1&o&&(t.TgZ(0,"div",30),t._UZ(1,"span",38),t.qZA())}function Ft(o,a){if(1&o&&(t.ynx(0),t.TgZ(1,"h2",31),t._uU(2," title_featured_bookstores "),t.qZA(),t.TgZ(3,"div",32)(4,"owl-carousel-o",33),t.YNc(5,Zt,1,1,null,34),t.qZA(),t.YNc(6,Lt,2,0,"div",35),t.qZA(),t.BQk()),2&o){const e=t.oxw();t.xp6(4),t.Q6J("options",e.customOptions),t.xp6(1),t.Q6J("ngForOf",e.bookstoresFeatured),t.xp6(1),t.Q6J("ngIf",e.firstFeaturedDataLoaded&&e.loadingFeaturedData)}}function It(o,a){1&o&&(t.TgZ(0,"div",39),t._UZ(1,"span",38),t.qZA())}function Dt(o,a){if(1&o&&(t.TgZ(0,"div",40)(1,"div",8),t._UZ(2,"app-side-list",41),t.qZA()()),2&o){const e=t.oxw();
1t.xp6(2),t.Q6J("data",e.bookstoresByInterests)("config",e.configSideList)("in-view-track-enable",!0)}}const At=function(o,a){return{count:o,searched_text:a}};function Jt(o,a){if(1&o&&(t.ynx(0),t.TgZ(1,"span",53),t._uU(2,"label_search_bookstores_count"),t.qZA(),t.BQk()),2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("translateParams",t.WLB(1,At,e.count,e.searchText))}}const Ut=function(o){return{searched_text:o}};function Yt(o,a){if(1&o&&(t.TgZ(0,"span",53),t._uU(1,"label_searching_bookstores"),t.qZA()),2&o){const e=t.oxw(3);t.Q6J("translateParams",t.VKq(1,Ut,e.searchText))}}function Qt(o,a){if(1&o&&(t.TgZ(0,"p",51),t.YNc(1,Jt,3,4,"ng-container",4),t.YNc(2,Yt,2,3,"ng-template",null,52,t.W1O),t.qZA()),2&o){const e=t.MAs(3),n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",n.firstDataLoaded&&!n.loadingData)("ngIfElse",e)}}function Nt(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"div",58)(1,"button",59),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.centerBookstoresOnMap())}),t.TgZ(2,"span",28),t._uU(3,"button_center_on_map"),t.qZA()()()}if(2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("disabled",e.lockCenterButton)}}function Et(o,a){1&o&&t._UZ(0,"i",63)}function qt(o,a){1&o&&t._UZ(0,"i",64)}function zt(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"ngb-pagination",60),t.NdJ("pageChange",function(i){t.CHM(e);const s=t.oxw(3);return t.KtG(s.receivePage(i))}),t.YNc(1,Et,1,0,"ng-template",61),t.YNc(2,qt,1,0,"ng-template",62),t.qZA()}if(2&o){const e=t.oxw(3);t.Q6J("page",e.page)("pageSize",e.pageSize)("collectionSize",e.count)("maxSize",5)("rotate",!0)}}function jt(o,a){1&o&&(t.TgZ(0,"div",30),t._UZ(1,"span",38),t.qZA())}function Kt(o,a){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",7)(2,"div",8)(3,"app-filters",54),t.NdJ("change",function(i){t.CHM(e);const s=t.oxw(2);return t.KtG(s.filterChanged(i))}),t.qZA()(),t.YNc(4,Nt,4,1,"div",55),t.qZA(),t.TgZ(5,"div",32),t._UZ(6,"app-bookstores-table",56),t.YNc(7,zt,3,5,"ngb-pagination",57),t.YNc(8,jt,2,0,"div",35),t.qZA(),t.BQk()}if(2&o){const e=t.oxw(2),n=t.MAs(16);
1t.xp6(3),t.Q6J("selectedFilter",e.selectedFilter)("disabled",e.loadingData||!e.firstDataLoaded||0===(null==e.bookstores?null:e.bookstores.length))("config",e.filterConfig),t.xp6(1),t.Q6J("ngIf",e.isSearchMode),t.xp6(2),t.Q6J("data",e.bookstores)("bookstoreButtonsTemplate",n)("showDistanceColumn",e.showDistanceColumn)("config",e.configBookstoreTable),t.xp6(1),t.Q6J("ngIf",e.count>0),t.xp6(1),t.Q6J("ngIf",e.loadingData||!e.firstDataLoaded)}}function Rt(o,a){if(1&o&&t._UZ(0,"app-side-list",41),2&o){const e=t.oxw(2);t.Q6J("data",e.bookstoresByInterests)("config",e.configSideList)("in-view-track-enable",!0)}}function Gt(o,a){1&o&&(t.ynx(0),t.TgZ(1,"a",65)(2,"picture",66),t._UZ(3,"source",67)(4,"source",68)(5,"img",69),t.qZA()(),t.BQk())}function $t(o,a){1&o&&(t.ynx(0),t._UZ(1,"app-banner",70),t.BQk()),2&o&&(t.xp6(1),t.Q6J("big-banner",!0))}function Ht(o,a){if(1&o&&(t.ynx(0),t.TgZ(1,"h2",31),t._uU(2),t.qZA(),t.YNc(3,Qt,4,2,"p",42),t.TgZ(4,"div",43)(5,"div",44),t.YNc(6,Kt,9,10,"ng-container",10),t.qZA(),t.TgZ(7,"div",45)(8,"div",46),t.YNc(9,Rt,1,3,"app-side-list",47),t.ynx(10,48),t.YNc(11,Gt,6,0,"ng-container",49),t.YNc(12,$t,2,1,"ng-container",50),t.BQk(),t.qZA()()(),t.BQk()),2&o){const e=t.oxw();
1t.xp6(2),t.hij(" ",e.isSearchMode?"title_search_results":"title_all_bookstores"," "),t.xp6(1),t.Q6J("ngIf",e.isSearchMode),t.xp6(3),t.Q6J("ngIf",e.showBookstoreTable),t.xp6(3),t.Q6J("ngIf",e.loggedUser),t.xp6(1),t.Q6J("ngSwitch",e.showAnobiiBanner),t.xp6(1),t.Q6J("ngSwitchCase",!0)}}function Vt(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"div",72)(1,"button",73),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().person,s=t.oxw();return t.KtG(s.openCallout(i))}),t._UZ(2,"i",74),t.qZA()()}if(2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("preventDefault",!0)("disabled",e.lockButton)}}function Wt(o,a){1&o&&t.YNc(0,Vt,3,2,"div",71),2&o&&t.Q6J("ngIf",!!a.person.location)}let y=(()=>{class o extends ft.H6{get loggedUser(){return this._loggedUser}get positionChangedByMap(){return this._positionChangedByMap}set positionChangedByMap(e){this._positionChangedByMap=e}constructor(e,n,i,s,c,r,p,f,_,k,v,se,ie,ae,re,le,ce){super(k),this.router=e,this.route=i,this.seoService=s,this.commonService=c,this.scriptService=r,this.storageService=p,this.anobianService=f,this.localization=_,this.translateService=k,this.appleMapsService=v,this.bookstoreService=se,this.loggedUserService=ie,this.platformId=ae,this.bookstoreMapService=re,this.loginRequiredService=le,this.authenticationService=ce,this.showFeatured=!0,this.searchText="",this.annotations=[],this.customOptions={loop:!1,items:3,margin:18,slideBy:"page",dotsSpeed:500,dots:!1,mouseDrag:!1,touchDrag:!0,pullDrag:!0,smartSpeed:400,dragEndSpeed:350,navText:["<i class='fa fa-chevron-left'></i>","<i class='fa fa-chevron-right'></i>"],responsive:{0:{items:1},600:{items:2},900:{items:3}},nav:!0},this.settings={tintColor:"#000",mapType:"standard",showsMapTypeControl:!0,isRotationEnabled:!0,showsCompass:"adaptive",isZoomEnabled:!0,showsZoomControl:!0,isScrollEnabled:!0,showsScale:"adaptive",showsUserLocation:!0,showsUserLocationControl:!0},this.configBookstoreFeatured={follow:g=>this.follow(g),unfollow:g=>this.unfollow(g),clickEvent:()=>{this.setBookstoreCalloutInService(this.bookstoreSelectedOnMap)}},this.configBookstoreTable={clickEvent:()=>{this.setBookstoreCalloutInService(this.bookstoreSelectedOnMap)}},this.configSideList={clickEvent:()=>{this.setBookstoreCalloutInService(this.bookstoreSelectedOnMap)}},this.page=1,this.pageSize=15,this.count=0,this.featuredLimit=15,this.mapLimit=40,this.mapJSLoaded=!1,this.firstFeaturedDataLoaded=!1,this.firstMapDataLoaded=!1,this.firstDataLoaded=!1,this.showMapTitle=!0,this.isLinked=!1,this.openCallout=(g,B=!0)=>{if(this.map&&g&&!this.loadingMapData){const E=(x,de)=>{x&&(window.scroll(0,0),de&&this.map.showItems(x,{animate:!0,minimumSpan:new mapkit.CoordinateSpan(.01,.01)}),setTimeout(()=>{x.selected=!0,this.positionChangedByMap=!1},500))};let w=this.map.annotations.find(x=>x.data.encrypt_id===g.encrypt_id);this.positionChangedByMap=this.isLinked,this.bookstoreSelectedOnMap=g,w?E(w,B):(this.annotations.push({latitude:g.location.latitude,longitude:g.location.longitude,options:{data:g,title:g.name,color:"#dd3900",selected:!1}}),setTimeout(()=>{w=this.map.annotations.find(x=>x.data.encrypt_id===g.encrypt_id),E(w,B)}))}},this.fitToAnnoations=!0,this.positionChanged$=new pt.x,this.defaultLocation={latitude:41.9027835,longitude:12.4963655},this.positionChangedStart=g=>{console.log(g),this.dragging=!0,this.positionChangedByMap=!1,this.showMapTitle=!1},this.positionChangedEnd=g=>{this.dragging=!1,this.positionChangedByMap||(this.isLinked=!1,this.positionChanged$.next(g.target.center)),this.positionChangedByMap=!1},this.firstMapIntraction=!0,this.singleTap=()=>{this.showMapTitle=!1},this.annotationSelected=g=>{this.showMapTitle=!1;const B=g.annotation?.data;B&&(this.positionChangedByMap=!1,this.bookstoreSelectedOnMap=B)},this.annotationDeselect=()=>{this.bookstoreSelectedOnMap=null},this.dragging=!1,this.mapTouching=!1,this.loadingFeaturedData=!1,this.loadingData=!1,this.loadingMapData=!1,this.bookstoresFeatured=[],this._mobileQueryListener=()=>{},this.mobileQuery=n.matchMedia("(max-width: 991px)"),(0,d.NF)(this.platformId)&&this.mobileQuery.addEventListener("change",this._mobileQueryListener),this.initFilters(),this.positionChangedByMap=!1,this.options={language:this.translateService.currentLang,callback:g=>{console.log(g)},JWT:mt.N.MapKit_JS_token},this.subs.push(this.positionChanged$.pipe((0,ht.b)(()=>{this.mapTouching=!0}),(0,ut.b)(500),(0,_t.x)()).subscribe(()=>{this.dragging||(this.map&&(this.currentBoundingBox=this.map.region.copy()),this.loadBookstoreMapData())}))}get currentLocation(){return this.browserLocation||this.userLocation||this.defaultLocation}ngOnInit(){var e=this;super.ngOnInit();const n=[];n.push(this.route.params),n.push(this.route.queryParams);const i=(0,L.a)(n);
1this.searchText=this.route.snapshot.params.q,this.addMetaTag(),this.loggedUserService.getUser(this.authenticationService.isLoggedIn()).then(s=>{this._loggedUser=s,(0,d.NF)(this.platformId)&&this.scriptService.load(Q.Z3.APPLE_MAP_KIT).then(function(){var c=(0,P.Z)(function*(r){r[0].loaded&&(e.mapJSLoaded||(e.mapJSLoaded=!0,e.userLocation=s?.location?{latitude:s?.location.latitude,longitude:s?.location.longitude}:null,e.browserLocation=yield e.getUserLocation(),e.showDistanceColumn||(e.filterConfig.filters=e.filterConfig.filters.filter(p=>"distance"!==p.id)),i.subscribe(p=>{const f=p[1];e.searchText!==p[0].q?(e.searchText=p[0].q,e.fitToAnnoations=!0,e.map?.selectedAnnotation&&(e.map.selectedAnnotation.selected=!1),e.page=1):e.page=f.p||1,e.isSearchMode&&(e.mapLimit=e.pageSize,e.resetForFilterOrPageChange(),e.firstMapDataLoaded=!1);const _=e.filterConfig.load();_&&!_.equals(e.selectedFilter)&&(e.selectedFilter=_),e.loadData()})))});return function(r){return c.apply(this,arguments)}}())}),this.showFeatured||(this.firstFeaturedDataLoaded=!0)}onLoaded(e){this.map=e.map,this.map.addEventListener("scroll-start",this.positionChangedStart),this.map.addEventListener("zoom-start",this.positionChangedStart),this.map.addEventListener("region-change-end",this.positionChangedEnd),this.map.addEventListener("single-tap",this.singleTap),this.map.addEventListener("select",this.annotationSelected),this.map.addEventListener("deselect",this.annotationDeselect),this.subs.push(this.bookstoreMapService.mapStateAsObservable.subscribe(n=>{if(n&&Object.keys(n).length>0){if(this.isLinked=n.linked,this.showMapTitle=!1,!n.linked){this.isLinked=!1;const i=n.coordinateRegion;if(i){const s=new mapkit.Coordinate(i.center.latitude,i.center.longitude),c=new mapkit.CoordinateSpan(i.span.latitudeDelta,i.span.longitudeDelta),r=new mapkit.CoordinateRegion(s,c);this.positionChangedByMap=!0,this.currentBoundingBox=r,this.map.setRegionAnimated(r,!1)}setTimeout(()=>{this.loadBookstoreMapData()}),n.bookstore&&this.openCallout(n.bookstore,!1)}}else this.isSearchMode?this.isLinked=!0:(this.fitToAnnoations=!0,this.currentBoundingBox=null,this.map.selectedAnnotation&&(this.map.selectedAnnotation.selected=!1),setTimeout(()=>{this.loadBookstoreMapData()}))}))}getUserLocation(){var e=this;return(0,P.Z)(function*(){return yield e.appleMapsService.getUserLocation().then(n=>n?.coords?{latitude:n.coords.latitude,longitude:n.coords.longitude}:null,n=>(console.error(n),null))})()}loadData(){(0,d.NF)(this.platformId)?(this.showFeatured?this.loadFeaturedData():this.firstFeaturedDataLoaded=!0,this.loadBookstoreData(),this.loadSuggestedData()):this.loadingData=this.loadingFeaturedData=!0}loadBookstoreData(){if((0,d.PM)(this.platformId)||!this.selectedFilter||this.loadingData)return Promise.resolve(null);this.loadingData=!0;const e={sort:this.selectedFilter.id,order:this.selectedFilter.sort,limit:this.pageSize,page:this.page-1};return this.currentLocation&&(e.location=`${this.currentLocation.latitude},${this.currentLocation.longitude}`),this.searchText&&this.searchText.trim()&&(e.q=this.searchText.trim()),(0,m.n)(this.bookstoreService.bookstores(e)).then(n=>(this.count=n.bookstores_total,this.bookstores=n.bookstores_list,this.isSearchMode&&(this.addBookstoreToMap(n.bookstores_list),this.isLinked&&(this.positionChangedByMap=!0,this.bookstoreMapService.selectedBookstore&&this.openCallout(this.bookstoreMapService.selectedBookstore,!1))),n.bookstores_list)).finally(()=>{this.firstDataLoaded=!0,this.loadingData=!1})}addBookstoreToMap(e){const n=this.bookstoreSelectedOnMap&&this.bookstoreSelectedOnMap.location;this.annotations=this.annotations.filter(i=>{const s=i.options.data.encrypt_id;return s===this.bookstoreSelectedOnMap?.encrypt_id||-1!==e.findIndex(c=>c.bookstore.encrypt_id===s)}),this.bookstoresMap=e,this.bookstoresMap.forEach(i=>{const s=i.bookstore;if(s.location&&!this.annotations.find(r=>r.options.data.encrypt_id===s.encrypt_id)){const r=this.createAnnotation(s);r&&this.annotations.push(r)}}),this.fitToAnnoations&&(this.fitToAnnoations=!1,n||(this.positionChangedByMap=!0,setTimeout(()=>{null!=this.map&&this.map.showItems(this.map.annotations,{animate:!0,minimumSpan:new mapkit.CoordinateSpan(.5,.5)})}
1,0))),this.firstMapDataLoaded=!0}loadBookstoreMapData(){if((0,d.PM)(this.platformId)||this.loadingMapData||!this.map)return this.mapTouching=!1,Promise.resolve(null);this.loadingMapData=!0;const e={sort:"relevance",order:"desc",limit:this.mapLimit,page:0};if(this.searchText&&this.searchText.trim()&&(e.q=this.searchText.trim()),this.currentLocation&&(e.location=`${this.currentLocation.latitude},${this.currentLocation.longitude}`),this.currentBoundingBox){const n=this.currentBoundingBox.toBoundingRegion();e.bounding_box=`{${n.northLatitude},${n.westLongitude}},{${n.southLatitude},${n.eastLongitude}}`}return this.isLinked=!1,(0,m.n)(this.bookstoreService.bookstores(e)).then(n=>(this.addBookstoreToMap(n.bookstores_list),n.bookstores_list)).finally(()=>{this.loadingMapData=!1,this.firstMapDataLoaded=!0,this.mapTouching=!1})}loadFeaturedData(){return(0,d.PM)(this.platformId)||this.firstFeaturedDataLoaded||this.loadingFeaturedData?Promise.resolve(null):(this.loadingFeaturedData=!0,(0,m.n)(this.bookstoreService.bookstores({sort:"relevance",order:"desc",featured:!0,limit:this.featuredLimit})).then(n=>(this.bookstoresFeatured=n.bookstores_list.map(i=>h.ts.getInstance().create(i.bookstore)),this.bookstoresFeatured)).catch(()=>null).finally(()=>{this.firstFeaturedDataLoaded=!0,this.loadingFeaturedData=!1}))}loadSuggestedData(){if(!this.loggedUser||(0,d.PM)(this.platformId)||null!=this.bookstoresByInterests)return this.loadingByInterestLoaded=!0,Promise.resolve(null);let e={sort:"relevance",order:"desc",limit:5};return this.loggedUser&&(e.following=!1),(0,m.n)(this.bookstoreService.bookstores(e)).then(n=>(this.bookstoresByInterests=n.bookstores_list.map(i=>h.ts.getInstance().create(i.bookstore)),this.bookstoresByInterests)).finally(()=>{this.loadingByInterestLoaded=!0})}createAnnotation(e){return e?{latitude:e.location.latitude,longitude:e.location.longitude,options:{data:e,title:e.name,color:"#dd3900",selected:!1}}:null}centerBookstoresOnMap(){this.fitToAnnoations=!0,this.map&&this.map.selectedAnnotation&&!this.loadingMapData&&(this.map.selectedAnnotation.selected=!1),this.addBookstoreToMap(this.bookstores),this.isLinked=!0}follow(e){return this.authenticationService.isLoggedIn()?(0,m.n)(this.anobianService.followUser(e)).then(n=>!(!n||!n.followed||(this.bookstoresFeatured.find(s=>s.person_id===n.followed.person_id).update(n.followed),this.commonService.trackEvent("start_following",{item_id:n.followed.person_id}),0)),()=>!1):(this.loginRequiredService.addErrors([""]),Promise.resolve(!1))}unfollow(e){return this.authenticationService.isLoggedIn()?(0,m.n)(this.anobianService.unfollowUser(e)).then(n=>!(!n||!n.followed||(this.bookstoresFeatured.find(s=>s.person_id===n.followed.person_id).update(n.followed),this.commonService.trackEvent("stop_following",{item_id:n.followed.person_id}),0)),()=>!1):(this.loginRequiredService.addErrors([""]),Promise.resolve(!1))}ngOnDestroy(){super.ngOnDestroy(),(0,d.NF)(this.platformId)&&this.mobileQuery.removeEventListener("change",this._mobileQueryListener),this.map&&(this.appleMapsService.maps.forEach(e=>{e.removeEventListener("scroll-start",this.positionChangedStart),e.removeEventListener("scroll-end",this.positionChangedEnd),e.removeEventListener("zoom-start",this.positionChangedStart),e.removeEventListener("zoom-end",this.positionChangedEnd),e.removeEventListener("region-change-end",this.positionChangedEnd),e.removeEventListener("single-tap",this.singleTap),e.removeEventListener("select",this.annotationSelected),e.removeEventListener("deselect",this.annotationDeselect),e.destroy()}),this.appleMapsService.maps=[])}resetForFilterOrPageChange(){this.bookstoreMapService.clear(),this.currentBoundingBox=null,this.bookstoreSelectedOnMap=null,this.fitToAnnoations=!0,this.map?.selectedAnnotation&&(this.map.selectedAnnotation.selected=!1)}filterChanged(e,n=!0){if(!e||e.equals(this.selectedFilter))return;const i=null==this.selectedFilter&&e;this.selectedFilter=e,i?this.route.snapshot.queryParams.f||"relevance"===e.id?this.loadData():this.updatePage({replaceUrl:!0}):(n&&this.filterConfig.save(e),this.page=1,this.updatePage())}receivePage(e){this.page!=e&&(this.page=e,this.updatePage())}updatePage(e){const n=this.router.parseUrl(this.router.url);n.queryParams={p:this.page,f:this.selectedFilter.id},n.fragment=null,this.router.navigateByUrl(n.toString(),e)}initFilters(){const e=[new h.R0({id:"relevance",sort:"desc",label:"button_sort_relevance"}),new h.R0({id:"reviews",sort:"desc",label:"button_sort_reviews"}),new h.R0({id:"editions",sort:"desc",label:"button_sort_bookstores_by_suggestions"}),new h.R0({id:"followers",sort:"desc",label:"button_sort_followers"}),new h.R0({id:"distance",sort:"asc",label:"button_sort_bookstores_by_distance"})],n=e[0],i=C._J.BOOKSTORE.LIST;this.filterConfig={filters:e,selectedFilter:n,save:s=>{(0,d.NF)(this.platformId)&&this.storageService.setItem(i,s.toJson())},load:()=>{let s;if(!this.selectedFilter&&(0,d.NF)(this.platformId))try{s=JSON.parse(this.storageService.getItem(i))}catch{}
1const c={...this.route.snapshot.queryParams,...this.route.snapshot.params};s={id:c.f??s?.id??n?.id,sort:c.o??s?.sort??n?.sort,label:void 0};const r=e.find(p=>p.id===s.id);return r&&(r.id=s.id,r.sortable&&(r.sort=s.sort)),r}}}get canShowFeatured(){return this.firstFeaturedDataLoaded&&this.bookstoresFeatured&&this.bookstoresFeatured.length>0}showFollowBtn(e){return!this.loggedUser||this.loggedUser.person_id!==e.person_id}setBookstoreCalloutInService(e){this.map&&(this.bookstoreMapService.selectedBookstore=e,this.bookstoreMapService.coordinateRegion=this.currentBoundingBox?this.currentBoundingBox.copy():this.map.region.copy(),this.bookstoreMapService.linked=this.isLinked,this.bookstoreMapService.save())}get showBookstoreTable(){return!this.isSearchMode||this.firstDataLoaded&&this.bookstores?.length>0}get isSearchMode(){return!!this.searchText&&!!this.searchText.trim()}get showDistanceColumn(){return!!this.browserLocation||!!this.userLocation}get mapTheme(){return this.map?.colorScheme}get lockButton(){return this.dragging||this.mapTouching||this.loadingMapData}get lockCenterButton(){return this.lockButton||this.isSearchMode&&this.isLinked}addMetaTag(){let e={title:this.translateService.instant("html_title_bookstores"),description:this.translateService.instant("html_meta_description_bookstores")};this.isSearchMode&&(e.title=this.translateService.instant("html_title_search_results",{search_string:this.searchText||""}),e.description=this.translateService.instant("html_meta_description_search_results",{search_string:this.searchText||""})),e.meta=[{name:"robots",content:"noindex"}],this.seoService.setMetaData(e),this.seoService.setMetaData(e)}get showAnobiiBanner(){return this.loadingByInterestLoaded&&this.localization.showBookstore}get isMobile(){return this.mobileQuery.matches}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(u.F0),t.Y36(bt.vx),t.Y36(u.gz),t.Y36(F.v),t.Y36(b.v_),t.Y36(Q.YI),t.Y36(I.V),t.Y36(b.fV),t.Y36(kt.o),t.Y36(M.sK),t.Y36(S.Y5),t.Y36(D.j),t.Y36(b.Uc),t.Y36(t.Lbi),t.Y36(vt.x),t.Y36(C.V2),t.Y36(C.$h))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-bookstores"]],inputs:{showFeatured:"showFeatured",searchText:"searchText"},features:[t.qOj],decls:17,vars:9,consts:[[1,"bookstores-list"],[1,"container-fluid","px-0"],[1,"bookstores-map"],["class","spinner",3,"map-loaded","ngClass",4,"ngIf"],[4,"ngIf","ngIfElse"],["mapLoading",""],[1,"container","min-height","mt-0"],[1,"row"],[1,"col"],[1,"bookstores-featured"],[4,"ngIf"],["class","spinner mt-4",4,"ngIf"],["class","row bookstore-suggested mobile",4,"ngIf"],["bookstoreActionTemplate",""],[1,"spinner",3,"ngClass"],[1,"spinner-container"],[1,"spinner-border"],[3,"options","settings","onLoaded"],[3,"options","latitude","longitude",4,"ngFor","ngForOf"],["class","container",4,"ngIf"],[3,"options","latitude","longitude"],[1,"bookstore-annotation"],["app-stop-event","",1,"unstyled-link",3,"preventDefault","routerLink","click"],["role","img",1,"img-hero"],[1,"mt-2"],[3,"user","detailedAddress"],[1,"container"],[1,"map-title"],["translate",""],["translate","",1,"subtitle"],[1,"spinner"],["translate","",1,"h3","section-title"],[1,"position-relative"],[3,"options"],[4,"ngFor","ngForOf"],["class","spinner",4,"ngIf"],["carouselSlide","",3,"width"],["in-view-track-context","carousel",3,"profile","in-view-track-enable","showFollowBtn","config"],[1,"spinner-border","spinner-center"],[1,"spinner","mt-4"],[1,"row","bookstore-suggested","mobile"],["type","suggestedBookstore",3,"data","config","in-view-track-enable"],["class","searchSummary",4,"ngIf"],[1,"row","mt-4"],[1,"col","bookstores-table"],[1,"col-side"],[1,"scale-up"],["type","suggestedBookstore",3,"data","config","in-view-track-enable",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"searchSummary"],["searching",""],["translate","",3,"translateParams"],[3,"selectedFilter","disabled","config","change"],["class","col-auto",4,"ngIf"],[3,"data","bookstoreButtonsTemplate","showDistanceColumn","config"],["class","d-flex justify-content-center",3,"page","pageSize","collectionSize","maxSize","rotate","pageChange",4,"ngIf"],[1,"col-auto"],[1,"btn","btn-secondary",3,"disabled","click"],[1,"d-flex","justify-content-center",3,"page","pageSize","collectionSize","maxSize","rotate","pageChange"],["ngbPaginationPrevious",""],["ngbPaginationNext",""],[1,"fas","fa-chevron-left"],[1,"fas","fa-chevron-right"],["href","https://bookstores.anobii.com/it","target","_blank"],[1,"anobii-banner"],["type","image/webp","srcset","\n                          /assets/banner/[email protected] 1x,\
1n                          /assets/banner/[email protected] 2x\n                        "],["type","image/jpeg","srcset","\n                          /assets/banner/[email protected] 1x,\n                          /assets/banner/[email protected] 2x\n                        "],["src","/assets/banner/[email protected]","type","image/jpeg","width","300"],[3,"big-banner"],["class","ms-2 d-flex buttons-template",4,"ngIf"],[1,"ms-2","d-flex","buttons-template"],["app-stop-event","",1,"btn","btn-xsmall","btn-light",3,"preventDefault","disabled","click"],[1,"fa-solid","fa-compass"]],template:function(e,n){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t.YNc(3,Bt,3,3,"div",3),t.YNc(4,Ot,4,4,"ng-container",4),t.YNc(5,Pt,2,0,"ng-template",null,5,t.W1O),t.qZA(),t.TgZ(7,"div",6)(8,"div",7)(9,"div",8)(10,"div",9),t.YNc(11,Ft,7,3,"ng-container",10),t.YNc(12,It,2,0,"div",11),t.qZA()()(),t.YNc(13,Dt,3,3,"div",12),t.YNc(14,Ht,13,6,"ng-container",10),t.qZA()()(),t.YNc(15,Wt,1,1,"ng-template",null,13,t.W1O)),2&e){const i=t.MAs(6);t.xp6(3),t.Q6J("ngIf",n.loadingMapData),t.xp6(1),t.Q6J("ngIf",n.mapJSLoaded)("ngIfElse",i),t.xp6(6),t.ekj("hidden",n.firstFeaturedDataLoaded&&0===(null==n.bookstoresFeatured?null:n.bookstoresFeatured.length)),t.xp6(1),t.Q6J("ngIf",n.canShowFeatured),t.xp6(1),t.Q6J("ngIf",!n.firstFeaturedDataLoaded),t.xp6(1),t.Q6J("ngIf",n.isMobile&&n.firstFeaturedDataLoaded&&!!n.loggedUser),t.xp6(1),t.Q6J("ngIf",n.firstFeaturedDataLoaded)}},dependencies:[d.mk,d.sg,d.O5,d.RF,d.n9,d.ED,u.rH,S.MY,S.dw,xt.Z,J.M,Ct.S,A.b,Mt.h,Tt.M,T.N9,T.GZ,T.ju,N.Fy,N.Mp,M.Pi,Y,U.lO],styles:[".bookstores-list[_ngcontent-%COMP%]{margin-top:10px}.bookstores-list[_ngcontent-%COMP%]   .min-height[_ngcontent-%COMP%]{min-height:300px}@media (max-width: 991.98px){.bookstores-list[_ngcontent-%COMP%]{margin-top:0}.bookstores-list[_ngcontent-%COMP%]   .min-height[_ngcontent-%COMP%]{min-height:100px}}.bookstores-list[_ngcontent-%COMP%]   .bookstores-map[_ngcontent-%COMP%]{position:relative;height:360px}.bookstores-list[_ngcontent-%COMP%]   .bookstores-map[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]{color:#fff;background-color:#0003}.bookstores-list[_ngcontent-%COMP%]   .bookstores-map[_ngcontent-%COMP%]   .spinner.map-loaded[_ngcontent-%COMP%]{color:#0000008c;background:none;align-items:end;bottom:10px}.bookstores-list[_ngcontent-%COMP%]   .bookstores-map[_ngcontent-%COMP%]   .spinner.map-loaded[_ngcontent-%COMP%]   .spinner-container[_ngcontent-%COMP%]{border-radius:8px;-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);box-shadow:0 0 1px #00000040;background-color:#ffffffbf;width:32px;height:24px;text-align:center}.bookstores-list[_ngcontent-%COMP%]   .bookstores-map[_ngcontent-%COMP%]   .spinner.map-loaded[_ngcontent-%COMP%]   .spinner-container[_ngcontent-%COMP%]   .spinner-border[_ngcontent-%COMP%]{width:1rem;height:1rem}.bookstores-list[_ngcontent-%COMP%]   .bookstores-map[_ngcontent-%COMP%]   .spinner.map-loaded.dark[_ngcontent-%COMP%]{color:#ffffff8c}.bookstores-list[_ngcontent-%COMP%]   .bookstores-map[_ngcontent-%COMP%]   .spinner.map-loaded.dark[_ngcontent-%COMP%]   .spinner-container[_ngcontent-%COMP%]{background-color:#12121299;box-shadow:0 0 0 .5px #ffffff0d}.bookstores-list[_ngcontent-%COMP%]   .bookstores-map[_ngcontent-%COMP%]   .map-title[_ngcontent-%COMP%]{position:absolute;top:100px;padding:25px 45px;margin-left:-45px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background-color:#ffffff4d}.bookstores-list[_ngcontent-%COMP%]   .bookstores-map[_ngcontent-%COMP%]   .map-title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:40px;font-weight:400;margin-bottom:4px}.bookstores-list[_ngcontent-%COMP%]   .bookstores-map[_ngcontent-%COMP%]   .map-title.hide[_ngcontent-%COMP%]{pointer-events:none;transition:opacity .5s ease-in-out;opacity:0}.bookstores-list[_ngcontent-%COMP%]   .bookstores-map[_ngcontent-%COMP%]     ngx-apple-maps .mk-controls-container{inset:0 calc((100% - 948px)/2)!important}@media (max-width: 991.98px){.bookstores-list[_ngcontent-%COMP%]   .bookstores-map[_ngcontent-%COMP%]     ngx-apple-maps .mk-controls-container{inset:0 5px!important}}.bookstores-list[_ngcontent-%COMP%]   .bookstores-featured[_ngcontent-%COMP%]{width:100%;position:relative}.bookstores-list[_ngcontent-%COMP%]   .bookstores-featured[_ngcontent-%COMP%]     owl-carousel-o .owl-nav{position:absolute;right:0;top:-56px}.bookstores-list[_ngcontent-%COMP%]   .bookstores-featured[_ngcontent-%COMP%]     owl-carousel-o .featured-item{width:100%}.bookstores-list[_ngcontent-%COMP%]   .bookstores-featured[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]{pointer-events:all;padding-top:42px}.bookstores-list[_ngcontent-%COMP%]   .bookstores-featured[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   .spinner-border.spinner-center[_ngcontent-%COMP%]{top:auto;margin:0 auto}.bookstores-list[_ngcontent-%COMP%]   .bookstores-featured.hidden[_ngcontent-%COMP%]{display:none}.bookstores-list[_ngcontent-%COMP%]   .bookstores-table[_ngcontent-%COMP%]     .bookstores-table{min-height:300px}@media (max-width: 575.98px){.bookstores-list[_ngcontent-%COMP%]   .bookstores-table[_ngcontent-%COMP%]     .bookstores-table   div:first-child{white-space:nowrap}}.bookstores-list[_ngcontent-%COMP%]   .bookstores-table[_ngcontent-%COMP%]   .buttons-template[_ngcontent-%COMP%]   .btn-circle[_ng
1content-%COMP%]{padding:0;font-size:.75rem}.bookstores-list[_ngcontent-%COMP%]   .bookstores-table[_ngcontent-%COMP%]   .buttons-template[_ngcontent-%COMP%]   .btn-circle[_ngcontent-%COMP%]:focus{box-shadow:none}.bookstores-list[_ngcontent-%COMP%]   .bookstores-table[_ngcontent-%COMP%]   .buttons-template[_ngcontent-%COMP%]   .btn-circle[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#dd3900}.bookstores-list[_ngcontent-%COMP%]   .bookstore-annotation[_ngcontent-%COMP%]{width:250px;border-radius:4px;box-shadow:0 0 28px #0000001f;background-color:#fff;overflow:hidden;color:#000}.bookstores-list[_ngcontent-%COMP%]   .bookstore-annotation[_ngcontent-%COMP%]   .img-hero[_ngcontent-%COMP%]{width:100%;height:162px;background-size:cover;background-position:center}.bookstores-list[_ngcontent-%COMP%]   .bookstore-annotation[_ngcontent-%COMP%]     app-user-info>div{margin:.5rem;justify-content:center;align-items:center}.bookstores-list[_ngcontent-%COMP%]   .bookstore-suggested.mobile[_ngcontent-%COMP%]     app-side-list ul{margin-top:20px;margin-bottom:0}.bookstores-list[_ngcontent-%COMP%]   .col-side[_ngcontent-%COMP%]   .scale-up[_ngcontent-%COMP%]{margin-top:-58px}.bookstores-list[_ngcontent-%COMP%]   .col-side[_ngcontent-%COMP%]     app-side-list ul{min-height:180px}.bookstores-list[_ngcontent-%COMP%]   .searchSummary[_ngcontent-%COMP%]{color:#6c757d}"]}),o})();const te=[{path:"",canActivate:[O.x],component:y,data:{page:"bookstores"}},{path:"search",component:y,canActivate:[O.x]},{path:"search/:q",component:(()=>{class o{constructor(e){this.route=e,this.showPage=!1}ngOnInit(){this.route.paramMap.subscribe(e=>{this.searchText=e.get("q"),this.showPage=!0})}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(u.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-bookstores-search"]],decls:1,vars:1,consts:[[3,"showFeatured"]],template:function(e,n){1&e&&t._UZ(0,"app-bookstores",0),2&e&&t.Q6J("showFeatured",!1)},dependencies:[y]}),o})(),canActivate:[O.x]},{path:"suggesting/book/:eid",component:gt}];let ee=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[u.Bz.forChild(te),u.Bz]}),o})();var oe=l(4900);let ne=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[d.ez,ee,S.P4,oe.m]}),o})()}}]);

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.