PageSourceSearch

https://www.seals-shop.com/467.8bdb36e68ec7699b.js

js seals-shop.com collected 2026-10-04 20:05:15 UTC 12,231 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkeu=self.webpackChunkeu||[]).push([[467],{20467(Z,v,c){c.d(v,{CustomTypeAheadComponent:()=>K});var d=c(49779),x=c(18359),I=c(7673),E=c(96354),P=c(25558),b=c(88141),g=c(42773),A=c(17705),e=c(35547),i=c(85802),m=c(9560),w=c(74851),M=c(345),k=c(79582),R=c(79782),h=c(49769),B=c(93049),j=c(19203);const D=r=>({"inline-block":r}),O=r=>({query:r}),S=r=>({cxRoute:"search",params:r}),U=r=>({cxRoute:"product",params:r}),C=r=>({count:r});function G(r,_){if(1&r&&e.nrm(0,"div",14),2&r){const t=e.XpG().ngIf;e.Y8G("innerHTML",t.message,e.npT)}}function L(r,_){if(1&r){const t=e.RV6();e.j41(0,"li")(1,"a",17),e.nI1(2,"cxHighlight"),e.nI1(3,"cxUrl"),e.bIt("keydown.arrowup",function(n){i.eBV(t);const o=e.XpG(3);return i.Njj(o.focusPreviousChild(n))})("keydown.arrowdown",function(n){i.eBV(t);const o=e.XpG(3);return i.Njj(o.focusNextChild(n))})("keydown.enter",function(n){i.eBV(t);const o=e.XpG(3);return i.Njj(o.close(n,!0))})("keydown.escape",function(n){i.eBV(t);const o=e.XpG(3);return i.Njj(o.close(n,!0))})("blur",function(n){i.eBV(t);const o=e.XpG(3);return i.Njj(o.close(n))})("mousedown",function(n){i.eBV(t);const o=e.XpG(3);return i.Njj(o.preventDefault(n))})("click",function(){const n=i.eBV(t).$implicit,o=e.XpG(2).ngIf,l=e.XpG(),a=e.sdS(4);return l.dispatchSuggestionEvent({freeText:a.value,selectedSuggestion:n,searchSuggestions:o.suggestions??[]}),i.Njj(l.updateChosenWord(n))}),e.k0s()()}if(2&r){const t=_.$implicit,s=e.XpG(3),n=e.sdS(4);e.R7$(),e.Y8G("innerHTML",e.i5U(2,2,t,n.value),e.npT)("routerLink",e.bMT(3,5,e.eq3(9,S,e.eq3(7,O,s.getParams(t)))))}}function X(r,_){if(1&r&&(e.j41(0,"ul",15),e.nI1(1,"cxTranslate"),e.j41(2,"h4"),e.EFF(3),e.nI1(4,"cxTranslate"),e.k0s(),e.DNE(5,L,4,11,"li",16),e.k0s()),2&r){const t=e.XpG().ngIf;e.BMQ("aria-label",e.bMT(1,3,"searchBox.ariaLabelSuggestions")),e.R7$(3),e.JRh(e.bMT(4,5,"searchBox.suggestionsHeading")),e.R7$(2),e.Y8G("ngForOf",t.suggestions)}}function $(r,_){if(1&r&&e.nrm(0,"cx-media",23),2&r){const t=e.XpG().$implicit,s=e.XpG(3);e.Y8G("container",s.createCustomImageObject(t.imageUrl?t.imageUrl:null==t||null==t.parentCategory||null==t.parentCategory.images||null==t.parentCategory.images[0]?null:t.parentCategory.images[0].url))}}function N(r,_){if(1&r){const t=e.RV6();e.j41(0,"li")(1,"a",19),e.nI1(2,"sanitizeProductName"),e.nI1(3,"cxUrl"),e.bIt("keydown.arrowup",function(n){i.eBV(t);const o=e.XpG(3);return i.Njj(o.focusPreviousChild(n))})("keydown.arrowdown",function(n){i.eBV(t);const o=e.XpG(3);return i.Njj(o.focusNextChild(n))})("keydown.enter",function(n){i.eBV(t);const o=e.XpG(3);return i.Njj(o.close(n,!0))})("keydown.escape",function(n){i.eBV(t);const o=e.XpG(3);return i.Njj(o.close(n,!0))})("blur",function(n){i.eBV(t);const o=e.XpG(3);return i.Njj(o.close(n))})("mousedown",function(n){i.eBV(t);const o=e.XpG(3);return i.Njj(o.preventDefault(n))})("click",function(){const n=i.eBV(t).$implicit,o=e.XpG(3),l=e.sdS(4);return i.Njj(o.dispatchProductEvent({freeText:l.value,productCode:n.code}))}),e.DNE(4,$,1,1,"cx-media",20),e.nrm(5,"div",21)(6,"span",22),e.k0s()()}if(2&r){const t=_.$implicit,s=e.XpG(3);e.R7$(),e.AVh("has-media",s.config.displayProductImages),e.Y8G("routerLink",s.customTypeAheadService.checkIfSpecialProduct(t.specialProduct)?"/special-product/p/"+t.code:e.bMT(3,8,e.eq3(10,U,e.bMT(2,6,t)))),e.R7$(3),e.Y8G("ngIf",s.config.displayProductImages),e.R7$(),e.Y8G("innerHTML",t.nameHtml?t.nameHtml:"",e.npT),e.R7$(),e.Y8G("innerHtml",s.getSanitizedPrice(t),e.npT)}}function V(r,_){if(1&r&&(e.j41(0,"ul",18),e.nI1(1,"cxTranslate"),e.j41(2,"h4"),e.EFF(3),e.nI1(4,"cxTranslate"),e.k0s(),e.DNE(5,N,7,12,"li",16),e.k0s()),2&r){const t=e.XpG().ngIf;e.BMQ("aria-label",e.bMT(1,3,"searchBox.ariaLabelProducts")),e.R7$(3),e.JRh(e.bMT(4,5,"searchBox.productsHeading")),e.R7$(2),e.Y8G("ngForOf",t.products)}}function W(r,_){if(1&r&&(e.j41(0,"div",24),e.EFF(1),e.nI1(2,"cxTranslate"),e.nI1(3,"cxTranslate"),e.nI1(4,"cxTranslate"),e.k0s()),2&r){const t=e.XpG().ngIf;e.R7$(),e.E5c(" ",e.i5U(2,3,"searchBox.suggestionsResult",e.eq3(11,C,null==t.suggestions?null:t.suggestions.length))," ",e.i5U(3,6,"searchBox.productsResult",e.eq3(13,C,null==t.products?null:t.products.length))," ",e.bMT(4,9,"
1searchBox.initialDescription")," ")}}function Y(r,_){if(1&r){const t=e.RV6();e.j41(0,"div",8),e.bIt("click",function(n){i.eBV(t);const o=e.XpG();return i.Njj(o.close(n,!0))}),e.DNE(1,G,1,1,"div",9)(2,X,6,7,"ul",10)(3,V,6,7,"ul",11),e.j41(4,"span",12),e.EFF(5),e.nI1(6,"cxTranslate"),e.k0s(),e.DNE(7,W,5,15,"div",13),e.k0s()}if(2&r){const t=_.ngIf;e.Y8G("ngClass",e.eq3(8,D,t.suggestions.length<=1)),e.R7$(),e.Y8G("ngIf",t.message),e.R7$(),e.Y8G("ngIf",t.suggestions.length>1),e.R7$(),e.Y8G("ngIf",t.products&&t.products.length>0),e.R7$(2),e.SpI(" ",e.bMT(6,6,"searchBox.initialDescription")," "),e.R7$(2),e.Y8G("ngIf",(null==t.suggestions?null:t.suggestions.length)||(null==t.products?null:t.products.length))}}const H={minCharactersBeforeRequest:1,displayProducts:!0,displaySuggestions:!0,maxProducts:5,maxSuggestions:5,displayProductImages:!0};let K=(()=>{class r extends d.TBE{constructor(t,s,n,o,l,a,u,F,Q,z,J){super(t,s,n,o),this.searchBoxComponentService=t,this.componentData=s,this.winRef=n,this.routingService=o,this.customTypeAheadService=l,this.userIdService=a,this.cd=u,this.sanitizer=F,this.currencyPipe=Q,this.productListService=z,this.data=J,this.currencySymbol=g.S1,this.loggedIn=!1,this.subscription=new x.yU,this.config$=(this.componentData?.data$||(0,I.of)({})).pipe((0,E.T)(p=>{const T=(y,f)=>"false"!==y?.[f]&&!1!==y?.[f];return{...H,...p,displayProducts:T(p,"displayProducts"),displayProductImages:T(p,"displayProductImages"),displaySuggestions:T(p,"displaySuggestions"),...this.config}}),(0,b.M)(p=>this.config=p)),this.results$=this.config$.pipe((0,P.n)(p=>this.searchBoxComponentService.getResults(p)))}toggleVoiceAssist(){this.data.toggleVoiceAssistanceBox.next(!0)}ngOnInit(){this.subscription.add(this.userIdService.getUserId().subscribe(t=>{this.loggedIn=!(!t||"anonymous"===t)})),this.subscription.add(this.results$.subscribe(t=>{this.cd.detectChanges()}))}close(t,s){super.close(t)}launchSearchResult(t,s){let n,o,l,a;this.subscription.add(this.results$.subscribe(u=>{u&&u.products&&(n=u.products.length,1===n&&(l=u.products[0].specialProduct,o=u.products[0].code,a=u.products[0].name?u.products[0].name:"")),this.cd.detectChanges()})),s&&0!==s.trim().length&&(this.close(t),1===n?(a=a.replace(/[^A-Z0-9]+/gi,"-").toLowerCase(),this.customTypeAheadService.launchSearchPageCustom(o,l,a)):(t.target.value="",s.length>9&&s.includes("-")&&(sessionStorage.setItem("searchQuery",s),s=`${s.toLocaleUpperCase()}`),this.customTypeAheadService.launchSearchPage(s)),this.searchBoxComponentService.clearResults())}getParams(t){return"or"===t.slice(0,2)?t.toUpperCase():t}focusPreviousChild(t){super.focusPreviousChild(t)}focusNextChild(t){super.focusNextChild(t)}dispatchSuggestionEvent(t){super.dispatchSuggestionEvent(t)}createCustomImageObject(t){return[{format:"thumbnail",imageType:"PRIMARY",url:t},{format:"product",imageType:"PRIMARY",url:t}]}getSanitizedPrice(t){if(this.loggedIn&&t?.code&&t?.price?.value&&t?.volumePrices){const s=this.productListService.getPricePerPieceIfMOQ(t?.volumePrices),n=this.currencyPipe.transform(s)?.changingThisBreaksApplicationSecurity??g.S1+" "+this.numberWithCommas(s);return`${t.code} | ${n}`}return t?.code}search(t){sessionStorage.removeItem("searchQuery"),t.length>9&&t.includes("-")&&(t=`${t.toLocaleUpperCase().replace(/-/g,"")}`),this.searchBoxComponentService.search(t,this.config),this.checkOuterResults(),this.open()}numberWithCommas(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(s){return new(s||r)(e.rXU(d.YxX),e.rXU(d.TLs,8),e.rXU(m.WTn),e.rXU(m.Oie),e.rXU(w.Q),e.rXU(m.y9w),e.rXU(A.gRc),e.rXU(M.up),e.rXU(k.U),e.rXU(R.F),e.rXU(g.B_))}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["app-custom-type-ahead"]],standalone:!1,features:[e.Vt3],decls:14,vars:21,consts:[["searchInput",""],["role","search",1,"custom-typeahead"],[1,"searchbox"],["autocomplete","off","aria-describedby","initialDescription","aria-controls","results",3,"input","keydown.escape","keydown.enter","keydown.arrowup","keydown.arrowdown","placeholder","value"],["role","presentation",1,"search-icon",3,"click"],[3,"type"],[1,"search",3,"click"],["class","results","id","results","role","dialog",3,"ngClass","click",4,"ngIf"],["id","results","role","dialog",1,"results",3,"click","ngClass"],["class","message",3,"innerHTML",4,"ngIf"],["class","suggestions","role","listbox",4,"ngIf"],["class","products","role","listbox",4,"ngIf"],["id","initialDescription",1,"cx-visually-hidden"],["aria-live","assertive","class","cx-visually-hidden",4,"ngIf"],[1,"message",3,"innerHTML"],["role","listbox",1,"suggestions"],[4,"ngFor","ngForOf"],["role","option",3,"keydown.arrowup","keydown.arrowdown","keydown.enter","keydown.escape","blur","mousedown","click","innerHTML","routerLink"],["role","listbox",1,"products"],["role","option",3,"keydown.arrowup","keydown.arrowdown","keydown.enter","keydown.escape","blur","mousedown","click","routerLink"],["format","thumbnail","role","presentation",3,"container",4,"ngIf"],[1,"name",3,"innerHTML"],[1,"price",3,"innerHtml"],["format","thumbnail","role","presentation",3,"container"],["aria-live","assertive",1,"cx-visually-hidden"]],template:function(s,n){if(1&s){const o=e.RV6();e.j41(0,"div",1),e.nI1(1,"cxTranslate"),e.j41(2,"label",2)(3,"input",3,0),e.nI1(5,"cxTranslate"),e.nI1(6,"cxTranslate"),e.bIt("input",function(){i.eBV(o);const a=e.sdS(4);return i.Njj(n.search(a.value))})("keydown.escape",function(a){return n.close(a)})("keydown.enter",function(a){i.eBV(o);const u=e.sdS(4);return n.close(a,!0),n.launchSearchResult(a,u.value),i.Njj(n.updateChosenWord(u.value))})("keydown.arrowup",function(a){return n.focusPreviousChild(a)})("keydown.arrowdown",function(a){return n.focusNextChild(a)}),e.k0s(),e.j41(7,"div",4),e.bIt("click",function(a){i.eBV(o);const u=e.sdS(4);return n.close(a,!0),n.launchSearchResult(a,u.value),n.clear(u),i.Njj(n.updateChosenWord(u.value))}),e.nrm(8,"cx-icon",5),e.k0s(),e.j41(9,"button",6),e.nI1(10,"cxTranslate"),e.bIt("click",function(){return n.open()}),e.nrm(11,"cx-icon",5),e.k0s()()(),e.DNE(12,Y,8,10,"div",7),e.nI1(13,"async")}if(2&s){const o=e.sdS(4);e.BMQ("aria-label",e.bMT(1,11,"searchBox.productSearch")),e.R7$(2),e.AVh("dirty",!!o.value),e.R7$(),e.Y8G("value",e.mNQ(n.chosenWord))("placeholder",e.bMT(5,13,"searchBox.placeholder")),e.BMQ("aria-label",e.bMT(6,15,"searchBox.placeholder")),e.R7$(5),e.Y8G("type",n.iconTypes.SEARCH),e.R7$(),e.BMQ("aria-label",e.bMT(10,17,"common.search")),e.R7$(2),e.Y8G("type",n.iconTypes.SEARCH),e.R7$(),e.Y8G("ngIf",e.bMT(13,19,n.results$))}},dependencies:[h.YU,h.Sq,h.bT,B.Wk,d.w_H,d.RlV,h.Jj,j.Y,m._xc,m.D97,d.vI0],styles:["cx-media.is-missing,.cxFeat_a11yImproveContrast cx-media.is-missing{background:no-repeat top center url
1(download.b03ba0a5aca22056.png);background-size:contain}.custom-typeahead{line-height:1;height:40px}@media(min-width:768px){app-custom-type-ahead{position:relative;z-index:9999}}app-custom-type-ahead .results{align-items:flex-start}app-custom-type-ahead .results .suggestions{flex:.8}app-custom-type-ahead .results .products{flex:1.2}app-custom-type-ahead .results .products a div.name{display:none}app-custom-type-ahead .results .suggestions h4,app-custom-type-ahead .results .products h4{padding:15px 0 0 15px;font-weight:600}.inline-block{display:inline-block}@media(min-width:768px){app-custom-type-ahead label{width:34vw}}app-custom-type-ahead label{padding-top:2px;padding-inline-end:0;padding-bottom:4px;padding-inline-start:8px}app-custom-type-ahead label button{padding:8px}app-custom-type-ahead label div.search-icon{padding:10px}app-custom-type-ahead label button.reset cx-icon:before,app-custom-type-ahead label div.search-icon.reset cx-icon:before{font-size:1.2rem}.selector-icon{text-align:center;background:none;border:none;padding-top:5px;padding-right:0}.selector-icon .tbs-selector{font-size:26px}.audio-icon .fa-microphone{color:#000;vertical-align:-10px;margin-right:10px;cursor:pointer}\n"],encapsulation:2})}}return r})()}}]);

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.