PageSourceSearch

https://shop.delius-klasing.de/_next/static/chunks/87458.a03b5c1a711c2c32.js

js delius-klasing.de collected 2026-10-02 09:52:39 UTC 10,175 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[56382,87458],{8951:(e,t,a)=>{a.d(t,{M:()=>n,d:()=>o});var r=a(6029),s=a(55729),l=a(48498),i=a(81278);let n=({domain:e,children:t})=>{let a=(0,i.useRouter)(),s=a?.query||{};return(0,r.jsx)(o.Provider,{value:{domain:e,queryParams:s,setQueryParams:(e,t=!1)=>{if(!a)return;let r=String(a.asPath).split("?").shift()+"?"+l.stringify({...a.query,...e,speakingUrl:void 0,categorySlug:void 0,boatSlug:void 0,tagSlug:void 0});a.push(r,void 0,{shallow:t})}},children:t})},o=(0,s.createContext)({domain:null,setQueryParams:()=>{},queryParams:{}})},17788:(e,t,a)=>{a.d(t,{$d:()=>n,vc:()=>i});var r=a(683),s=a(41654);let l=async e=>{let[t,a]=e.queryKey,{limit:l=10,filters:i=[],facets:n,sorting:o,page:u,checkIsDeliverable:d,index:p,select:c,locale:h="de"}=a,{searchQuery:m}=a,y={stream:"mongo-atlas-list.js",filters:i,facets:n,hitsPerPage:l,page:u,query:(0,s.A)({searchQuery:m,index:p,locale:h}),sorting:o,checkIsDeliverable:d,index:p,select:c};try{let e=`/api/stream/?portal=${encodeURIComponent((0,r.getActive)()?.id||"")}`,t=await fetch(e,{method:"POST",cache:"no-cache",headers:{"Cache-Control":"no-cache","Content-Type":"application/json"},body:JSON.stringify(y)});return await t.json()}catch(e){return console.error(e),{items:[],total:0,facets:{}}}},i=async e=>{let[t,a]=e.queryKey,{searchFilters:r={}}=a;return a.index="frontend-product-search",a.filters=[{text:{path:"active",query:"1"}},{compound:{mustNot:[{equals:{path:"hidden",value:!0}}]}}],Object.keys(r).forEach(e=>{let t=r[e];if(t)if("family"===e&&t.equals&&"product_type"===t.equals.path){let e=t.equals.value.split(",").map(e=>e.trim()).filter(Boolean);e.length>1?a.filters.push({in:{path:"product_type",value:e}}):1===e.length&&a.filters.push({equals:{path:"product_type",value:e[0]}})}else a.filters.push(t)}),a.facets={family:{type:"string",path:"product_type"},price:{type:"number",path:"productPrice",boundaries:Array.from(Array(12),(e,t)=>1e3*t)},supplier:{type:"string",path:"publisher"}},a.select={isDigital:"$isDigital",identifier:"$_id",id:"$id",family:"$product_type",title:"$title",speaking_url:"$speaking_url",currentFormattedPrice:"$currentFormattedPrice",product_type:"$product_type",product_group:"$product_group",delivery_status:"$delivery_status",instock:"$instock",planned_stock:"$planned_stock",release_date:"$release_date","parent.identifier":"$parent.identifier","values.name":"$title","values.long_description":"$internet_text","values.slug.data":"$values.slug.data","values.binding.data":"$values.binding.data","values.buchart.data":"$values.buchart.data","values.supplier.data":"$publisher","values.price":"$productPrice","values.Bild1":{$arrayElemAt:["$images.src",0]},participants:"$participants",reference_items:"$reference_items"},l(e)},n=e=>{let[t,a]=e.queryKey,{locale:s="de"}=a;return(0,r.getActive)()?.id,a.index="dk-portals-search-index",a.select={fields:"$fields",geoLocation:"$geoLocation"},l(e)}},20982:(e,t,a)=>{a.d(t,{v:()=>l});var r=a(30844),s=a(54351);let l=(e,t=!1,a)=>{let l=structuredClone(e);if(t&&l?.values)for(let e in l.values){let t=l.values[e];Array.isArray(t)&&(l.values[e]=t[0]?.data)}let i=l?.slug||"",n=(0,r.g3)("description",l);if("event"===String(l?.family).toLowerCase()){let e=l.values?.release_date,t=l.values?.valid_until;e&&(n=t?(0,s.A)(new Date(e),"dd.MM.")+" - "+(0,s.A)(new Date(t),"dd.MM.yyyy"):(0,s.A)(new Date(e),"dd.MM.yyyy"))}return a&&(l.productUrlAddition=a),{sys:{id:l.identifier,contentType:{sys:{id:"__akeneo_product"}}},_navisionProduct:l,fields:{portal:"",title:(0,r.g3)("name",l),date:(0,r.g3)("created",l),authors:[],slug:i.substring(1),image:(0,r.Zm)("Bild1",l),image3D:(0,r.Zm)("Bild_3D_Cover",l),excerpt:n,tags:[],seoTitle:(0,r.g3)("name",l),seoDescription:(0,r.g3)("description",l),seoCanonical:null,printCode:null,storychiefId:null,storychiefTracking:null,hidden:!1,affiliateUrl:null,importUrls:[],noUpdates:!1,poweredBy:null,oldBikeId:null,author:""}}}},30844:(e,t,a)=>{a.d(t,{HF:()=>n,Lt:()=>d,Qn:()=>m,Re:()=>y,Yy:()=>c,Zm:()=>u,g3:()=>i,kk:()=>p,tX:()=>h,yE:()=>f});var r=a(49037),s=a.n(r);let l={GRAM:"g",KILOGRAM:"kg",TON:"t",MILLIMETER:"mm",CENTIMETER:"cm",METER:"m",U_min:"U/min",U_sek:"U/s",CELSIUS:"\xb0C",DECIBEL:"dB",WATT:"W",KILOWATT:"kW",VOLT:"V",AMPERE:"A",MILLISECOND:"ms",SECOND:"s",MINUTE:"m",HOUR:"h",Bft:"Bft"},i=(e,t,a)=>
1o(e,t,a),n=(e,t)=>{let a=[s()(e),t].filter(Boolean).join("-");return a?`https://shop.delius-klasing.de/autor/${a}/`:null},o=(e,t,a=null)=>{let r=t?.values?.[e];return"price"===e&&!a&&Array.isArray(r)?r[0]:(a&&"object"==typeof r&&r&&(r=Array.isArray(r)?r?.[0]?.[a]:r?.[a]),r)},u=(e,t,a)=>{let r=i(e,t,a);if(r)return r},d=(e,t)=>{let a=i(e,t,"linked_data");return a?.labels?.de_DE||""},p=e=>({DK:"Delius Klasing",DSV:"DSV-Verlag",ED:"Edition Delius",EM:"Edition Maritim",SCH:"Schneider Media UK LTD.",SN:"Edition Naglschmid",MD:"Moby Dick",ECOBRA:"ECOBRA",SURF:"SURF",BIK:"BIKE",BOO:"BOOTE",GF:"GUTE-FAHRT",TOU:"TOUR",YAC:"YACHT",MYB:"MYBIKE",EMB:"EMTB",BSH:"BSH",DKABO:"Dk-Abo",BUSSE:"Busse Seewald",KP:"Karren Publishing",OU:"Outdoor Publishing GmbH",STX:"Schneider Media",FRE:"FREERIDE",SPO:"spomedis",PHI:"Philippi GmbH",BX1:"BOOTE EXCLUSIV",VDW_7307:"VDW_7307",BU:"BU",VDW_89533:"VDW_89533",VDW_923478:"VDW_923478"})[i("supplier",e)],c=(e,t)=>{if(t?.values?.[e]?.data!==void 0)return t.values[e].data?"ja":"nein"},h=(e,t,a)=>{let r=o(e,t,a);return!r||!parseFloat(r.amount)},m=(e,t,a)=>{let r=o(e,t,a);if(r)return Number(parseFloat(r.amount)).toLocaleString()+" "+(l[r.unit]||r.unit)},y=(e,t,a)=>{let r=i(e,t,a);if(r)return -1!==r.indexOf("https")||-1!==r.indexOf("http")?r:"https://"+r},f=e=>{let t=e?.slug,a=e?.url;return t?`/spots/${t}/`:a||"/spots/"}},41654:(e,t,a)=>{a.d(t,{A:()=>l});let r=/^\d[\d-]{7,}\d$/,s=/-/g,l=({searchQuery:e,index:t,locale:a="de",exactMatch:l=!1})=>{switch(t=t.replace(`-${a}`,"")){case"frontend-product-search":{if(!e||"*"===e)return[{wildcard:{query:"*",path:["title","internet_text","participants.name"],allowAnalyzedField:!0}}];let t=e.match(r),a=e.includes("-")?e.replace(s," "):null,i=[{compound:{should:[]}}];if(t?.length){let t=e.replace(s,"");i[0].compound.should.push({text:{query:t,path:"ean",score:{boost:{value:10}},fuzzy:{maxEdits:2,prefixLength:0,maxExpansions:5}}})}if(l?(i[0].compound.should.push({phrase:{query:e,path:"title",score:{boost:{value:3}}}}),i[0].compound.should.push({phrase:{query:e,path:"internet_text"}}),i[0].compound.should.push({phrase:{query:e,path:"participants.name",score:{boost:{value:2}}}}),a&&i[0].compound.should.push({phrase:{query:a,path:"title",score:{boost:{value:3}}}})):(i[0].compound.should.push({text:{query:e,path:"title",score:{boost:{value:3}},fuzzy:{maxEdits:2,prefixLength:0,maxExpansions:10}}}),i[0].compound.should.push({text:{query:e,path:"internet_text",fuzzy:{maxEdits:2,prefixLength:0,maxExpansions:10}}}),i[0].compound.should.push({text:{query:e,path:"participants.name",score:{boost:{value:2}},fuzzy:{maxEdits:2,prefixLength:0,maxExpansions:10}}}),a&&i[0].compound.should.push({text:{query:a,path:"title",score:{boost:{value:3}},fuzzy:{maxEdits:2,prefixLength:0,maxExpansions:10}}})),e.length>8&&!e.includes(" ")&&!e.includes("-")&&!t){let t=Math.max(1,Math.ceil((e.length-6)/6));for(let a=3;a<=e.length-3;a+=t){let t=e.substring(0,a),r=e.substring(a);i[0].compound.should.push({phrase:{query:`${t} ${r}`,path:"title",score:{boost:{value:2}}}})}}return i}case"dk-portals-search-index":{let t={near:{path:"virtuals.teaserDate_timestamp",origin:Date.now(),pivot:Date.now(),score:{boost:{value:50}}}};if(!e||"*"===e)return[{wildcard:{query:"*",path:[`fields.title.${a}`,`fields.seoDescription.${a}`],allowAnalyzedField:!0}},t];if(l)return[{compound:{should:[{phrase:{query:e,score:{boost:{value:3}},path:[`fields.title.${a}`,`fields.seoTitle.${a}`,`fields.seoDescription.${a}`]}},{phrase:{query:e,path:[`fields.stringOnlyContent.${a}`]}},t],minimumShouldMatch:2}}];return[{compound:{should:[{text:{query:e,score:{boost:{value:3}},path:[`fields.title.${a}`,`fields.seoTitle.${a}`,`fields.seoDescription.${a}`]}},{phrase:{query:e,slop:200,path:[`fields.stringOnlyContent.${a}`]}},t],minimumShouldMatch:2}}]}default:console.error(`buildAtlasQuery::: unknown mongo atlas search index '${t}', can't build a query`)}}},91573:(e,t,a)=>{a.d(t,{F:()=>o});var r=a(6029);a(55729);var s=a(50238),l=a(94408),i=a(75828),n=a.n(i);let o=({label:e,value:t,required:a,placeholder:i,children:o,onChange:u,htmlFor:d,labelBold:p,labelPosition:c,labelSize:h,hideLabel:m,isStandalone:y,formItemContrast:f,className:g="",formItemSize:v,isErroneous:x=!1,id:b=""})=>(0,r.jsxs)("div",{className:`${n()({"mb-2 md:mb-4 ":!g,"flex items-center ":c&&!y})} ${g}`,children:[(0,r.jsx)(s.J,{label:e,required:a,htmlFor:d,labelBold:p,labelPosition:c,labelSize:h,hideLabel:m,isStandalone:y,className:x?"red":""}),(0,r.jsx)(l.l,{placeholder:i,value:t,onChange:u,formItemContrast:f,labelPosition:c,isStandalone:y,formItemSize:v,className:x?"border-red":"",id:b,children:o})]})},93158:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(55729);function s(e,t,a=!1){let[l,i]=(0,r.useState)(e);return(0,r.useEffect)(()=>
1{if(a&&JSON.stringify(e)===JSON.stringify(l))return;let r=setTimeout(()=>{i(e)},t);return()=>{clearTimeout(r)}},[e]),l}},94408:(e,t,a)=>{a.d(t,{l:()=>o});var r=a(6029);a(55729);var s=a(75828),l=a.n(s),i=a(683),n=a(93433);let o=({className:e="",placeholder:t,defaultValue:a,required:s,id:o,name:u,value:d,onChange:p,children:c,formItemContrast:h,formItemHighlight:m,isStandalone:y,labelPosition:f,formItemSize:g})=>{let v,x=(0,n.d)("roundedEdges",!1);switch((0,i.getActive)().id){case"WING":case"MOD":case"BOOT":case"TOUR":case"SUP":case"SURF":v=" pl-[0.9em] pt-[0.4em] pb-[0.5em]";break;default:v=" pl-[0.9em] py-[0.5em]"}return(0,r.jsx)("select",{id:o,name:u,placeholder:t,value:d,required:s,onChange:p,defaultValue:a,className:l()({[e+v]:!0,"rounded-md":x,"md:hover:cursor-pointer":!0,"py-1 text-sm":"small"===g,"text-xs md:text-sm":"xs"===g,"text-sm md:text-base":"sm"===g,"text-base md:text-lg":"md"===g,"text-lg md:text-xl":"lg"===g,"bg-white":h,"border-skin-secondary border-2":m,"order-2 flex-1":"left"===f&&!y,"order-1 flex-1":"right"===f&&!y}),children:c})}}}]);

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.