PageSourceSearch

https://www.ajprodukter.dk/assets/5291.chunk.f47a97d29501c69ab2bc.js

js ajprodukter.dk collected 2026-10-07 20:34:08 UTC 3,941 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunknitro5_app=globalThis.webpackChunknitro5_app||[]).push([[5291],{5291(e,t,n){n.d(t,{X:()=>b,default:()=>E});var o=n(63696),a=n(95082),r=n(25857),c=n(42914),s=n(89224),l=n(13149),i=n(40270),u=n(93747),h=n(10774),g=n(25927),m=n(81377),d=n(39879),p=n(30561),C=n(39372);const T=(0,h.I4)(e=>{const t=e.contentType===b.Products;return o.createElement(S,null,o.createElement(P,{as:C.Sx.None,css:!t&&{backgroundColor:({siteTheme:e})=>e.horizontalSearchMenuContentTabsThemeType.unSelectedContentTypeTab.backgroundColor,color:({siteTheme:e})=>e.horizontalSearchMenuContentTabsThemeType.unSelectedContentTypeTab.color},onClick:()=>e.setContentType(b.Products),"aria-label":(0,p.TlY)("/Shared/Products")},(0,p.TlY)("/Shared/Products")),o.createElement(P,{as:C.Sx.None,css:!!t&&{backgroundColor:({siteTheme:e})=>e.horizontalSearchMenuContentTabsThemeType.unSelectedContentTypeTab.backgroundColor,color:({siteTheme:e})=>e.horizontalSearchMenuContentTabsThemeType.unSelectedContentTypeTab.color},onClick:()=>e.setContentType(b.CmsContent),"aria-label":(0,p.TlY)("/QuickSearch/PageSuggestions")},(0,p.TlY)("/QuickSearch/PageSuggestions")))}),P=(0,h.I4)(C.Ay,C.vq,{flex:{basis:"50%",grow:1,shrink:0},borderRadius:0}),S=h.I4.div({display:"flex",width:"100vw",margin:{y:d.EX},marginLeft:-(0,d.I_)(!0),borderTop:{color:d.Oh,style:"solid",width:1}});var b;!function(e){e.Products="PRODUCTS",e.CmsContent="CMS_CONTENT"}(b||(b={}));const E=o.memo(e=>{var t,n,h,C,P;const[S,E]=(0,o.useState)(b.Products),x=e.didYouMean||[],H=e.originalSearchPhrase&&e.searchPhrase!==e.originalSearchPhrase,O=(0,g.DD)(),w=0===e.totalProductCount&&0===(null===(t=e.facets)||void 0===t?void 0:t.length)&&0===(null===(n=e.pages)||void 0===n?void 0:n.length),A=(null===(h=e.products)||void 0===h?void 0:h.length)<1&&(null===(C=e.pages)||void 0===C?void 0:C.length)>0,N=O&&S===b.CmsContent?(null===(P=e.pages)||void 0===P?void 0:P.length)>0?o.createElement(m.c,{hideTitle:!0,css:!A&&{marginTop:d.Y},pages:e.pages}):o.createElement(i.pF,{css:f},(0,p.TlY)("/QuickSearch/NoPageSuggestions")):null;(0,o.useEffect)(()=>{var t;!O||e.totalProductCount>0?E(b.Products):(null===(t=e.pages)||void 0===t?void 0:t.length)>0&&E(b.CmsContent)},[O,e.pages,e.totalProductCount]);const I=o.createElement(c.wn,{appearance:c.bA.Part,css:k},o.createElement(a.Cx,{component:y,for:e.content.showingResultsFor,args:{originalSearchPhrase:e.originalSearchPhrase,count:e.totalProductCount}}),!!(H||x.length>1)&&o.createElement("p",null,!!H&&o.createElement(a.Cx,{component:"span",for:e.content.showingResultsForInstead,args:{originalSearchPhrase:e.originalSearchPhrase,usedSearchPhrase:e.searchPhrase}})," ",x.length>1&&o.createElement(o.Fragment,null,o.createElement(a.Cx,{for:e.content.didYouMean,component:"span"}),": ",x.map((e,t)=>o.createElement(o.Fragment,{key:e.text},t>0&&", ",o.createElement(l.A,{to:(0,r.zG)()+"?q="+e.text},e.text))))),!!O&&o.createElement(T,{contentType:S,setContentType:E})),Y=o.createElement(c.wn,null,o.createElement(a.Cx,{component:y,for:e.content.contentHitsButNoProducts,args:{searchPhrase:e.originalSearchPhrase,count:e.totalProductCount}}),!!A&&!!O&&N,o.createElement(a.fi,Object.assign({},e.contentHitsButNoProductsPageContent)));return o.createElement(u.o.Provider,{value:{currentCategoryKey:e.currentCategoryKey}},o.createElement(s.Ay,{appearance:[c.bA.Normal,c.bA.Gap]},w?o.createElement(o.Fragment,null,o.createElement(a.Cx,{component:v,for:e.content.noHits,args:{searchPhrase:e.originalSearchPhrase}}),o.createElement(a.fi,Object.assign({},e.noHitsPageContent))):o.createElement(i.Ay,Object.assign({},e,{customListing:!A&&N,hideOption:A}),A?Y:I)))}),y=(0,h.I4)(l.H1,{margin:{y:0}}),v=(0,h.I4)(l.H1,{textAlign:"center"}),f={marginTop:d.as},k={marginBottom:0}}},e=>{Object.assign(e.sriHashes,{6040:"sha384-QL+gFQlyEaSxGTK/Jxt4tenYBCWMs+AXUQTV3QFfcwR534vBG1ic7oMUCVc2JLMH"})}]);
2//# sourceMappingURL=5291.chunk.f47a97d29501c69ab2bc.js.map

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.