PageSourceSearch

https://www.foerch.de/chunk-PVBCIOHU.js

js foerch.de collected 2026-10-07 08:43:44 UTC 5,073 bytes, 1 lines download raw bytes

1import{Ca as L,k as D,nd as k,od as A}from"./chunk-WGYJ4VNB.js";import"./chunk-G6JVTTHL.js";import"./chunk-HTNLXQUD.js";import{W as O}from"./chunk-N56O2TJA.js";import{Ab as M,Bc as R,Bd as E,Cb as F,Cc as f,Dc as d,Ea as P,Ec as o,Fc as r,Gc as S,Hd as I,Ib as n,Ma as _,Na as h,Nd as x,Od as v,Qc as C,Ta as T,_c as b,ac as w,ad as c,pd as l,rd as u,wc as g,yc as m,zc as y}from"./chunk-WI74XH4H.js";import"./chunk-RFT5DLLE.js";var V=t=>({"d-none":t});function X(t,i){if(t&1){let e=C();o(0,"button",4),b("click",function(){let s=_(e).$implicit,p=c(2);return h(p.openDetail(s.code,s.name))}),r()}if(t&2){let e=i.$implicit;d("innerHTML",e.name,M)}}function B(t,i){if(t&1){let e=C();o(0,"button",5),b("click",function(s){_(e);let p=c(2);return h(p.showMoreTopProducts(s))}),l(1),x(2,"cxTranslate"),r()}t&2&&(n(),u(" ",v(2,1,"searchSuggestions.showMoreProducts")," "))}function U(t,i){if(t&1&&(o(0,"div",1),l(1),x(2,"cxTranslate"),r(),o(3,"div"),R(4,X,1,1,"button",2,y),g(6,B,3,3,"button",3),r()),t&2){let e=c();n(),u(" ",v(2,2,"searchSuggestions.topProducts")," "),n(3),f(e.suggestions.products.slice(0,e.MAX_TOP_PRODS)),n(2),m(e.suggestions.products.length>5&&e.MAX_TOP_PRODS!==e.MAX_LIST_LIMIT?6:-1)}}function H(t,i){if(t&1){let e=C();o(0,"button",7),b("click",function(){let s=_(e).$implicit,p=c(2);return h(p.openList(s))}),o(1,"div",8),l(2),r(),S(3,"div",9),r()}if(t&2){let e=i.$implicit;n(2),u(" ",e.parentCategoryName," / "),n(),d("innerHTML",e.name,M)}}function $(t,i){if(t&1){let e=C();o(0,"button",5),b("click",function(s){_(e);let p=c(2);return h(p.showMoreGroupProducts(s))}),l(1),x(2,"cxTranslate"),r()}t&2&&(n(),u(" ",v(2,1,"searchSuggestions.showMoreProductGroups")," "))}function z(t,i){if(t&1&&(o(0,"div",1),l(1),x(2,"cxTranslate"),r(),o(3,"div"),R(4,H,4,2,"button",6,y),g(6,$,3,3,"button",3),r()),t&2){let e=c();n(),u(" ",v(2,2,"searchSuggestions.productGroups")," "),n(3),f(e.suggestions.productGroups.slice(0,e.MAX_GROUP_PRODS)),n(2),m(e.suggestions.productGroups.length>5&&e.MAX_GROUP_PRODS!==e.MAX_LIST_LIMIT?6:-1)}}function N(t,i){if(t&1){let e=C();o(0,"button",7),b("click",function(){let s=_(e).$implicit,p=c(2);return h(p.openCategory(s))}),o(1,"div",8),l(2),r(),S(3,"div",9),r()}if(t&2){let e=i.$implicit;n(2),u(" ",e.parentCategoryName," / "),n(),d("innerHTML",e.name,M)}}function Y(t,i){if(t&1&&(o(0,"div",1),l(1),x(2,"cxTranslate"),r(),o(3,"div"),R(4,N,4,2,"button",6,y),r()),t&2){let e=c();n(),u(" ",v(2,1,"searchSuggestions.allCategories")," "),n(3),f(e.suggestions.categories.slice(0,e.MAX_CATEGORY))}}function j(t,i){if(t&1&&(o(0,"a",0)(1,"div",10),S(2,"img",11),r(),S(3,"div",12),o(4,"div",13),l(5),r(),o(6,"div",14),l(7),r()()),t&2){let e=c();d("routerLink",e.suggestions.image.url),n(2),d("alt",E(e.suggestions.image.title))("src",e.baseUrl+e.suggestions.image.imageUrl,F),n(),d("ngClass",I(7,V,e.suggestions.image.imageUrl)),n(2),u(" ",e.suggestions.image.title," "),n(2),u(" ",e.suggestions.image.description," ")}}var G=class t{_occEndpointsService=P(L);MAX_TOP_PRODS=5;MAX_GROUP_PRODS=5;MAX_CATEGORY=5;MAX_LIST_LIMIT=10;set suggestions(i){this._suggestions=i,this.MAX_TOP_PRODS=5,this.MAX_GROUP_PRODS=5}get suggestions(){return this._suggestions}get baseUrl(){return this._occEndpointsService.getBaseUrl()}navigateToDetail=new T;navigateToList=new T;navigateToCategory=new T;_suggestions;openDetail(i,e){this.navigateToDetail.emit({code:i,name:e})}openList(i){this.navigateToList.emit({code:i.code,name:i.name})}openCategory(i){this.navigateToCategory.emit({code:i.code,name:i.name})}showMoreTopProducts(i){this.MAX_TOP_PRODS=10,i.stopPropagation()}showMoreGroupProducts(i){this.MAX_GROUP_PRODS=10,i.stopPropagation()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["foerch-mobile-search-result"]],inputs:{suggestions:"suggestions"},outputs:{navigateToDetail:"navigateToDetail",navigateToList:"navigateToList",navigateToCategory:"navigateToCategory"},decls:4,vars:4,consts:[[1,"searchboxBanner",3,"routerLink"],[1,"searchboxResults-title"],["type","button",1,"searchboxResults-btn",3,"innerHTML"],[1,"searchboxResults-more"],["type","button",1,"searchboxResults-btn",3,"click","innerHTML"],[1,"searchboxResults-more",3,"click"],["type","button",1,"searchboxResultsProduct","searchboxResults-btn"],["type","button",1,"searchboxResultsProduct","searchboxResults-btn",3,"click"],[1,"searchboxResultsProduct-category"],[1,"searchboxResultsProduct-name",3,"innerHTML"],[1,"searchboxBanner-img"],["loading","lazy",3,"alt","src"],[1,"searchboxBanner-icon",3,"ngClass"],[1,"searchboxBanner-title"],[1,"searchboxBanner-desc"]],template:function(e,a){e&1&&(g(0,U,7,4),g(1,z,7,4),g(2,Y,6,3),g(3,j,8,9,"a",0)),e&2&&(m(a.suggestions.products&&a.suggestions.products.length>0?0:-1),n(),m(a.suggestions.productGroups&&a.suggestions.productGroups.length>0?1:-1),n(),m(a.suggestions.categories&&a.suggestions.categories.length>0?2:-1),n(),m(a.suggestions.image!=null&&a.suggestions.image.imageUrl?3:-1))},dependencies:[A,O,D,k],encapsulation:2,changeDetection:0})};export{G as FoerchMobileSearchResultComponent};

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.