1var _global;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d60bc104-4b21-4443-8de7-47e84e18e07c",e._sentryDebugIdIdentifier="sentry-dbid-d60bc104-4b21-4443-8de7-47e84e18e07c")}catch(e){}}(),(_global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"1.30.3.5"},function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d60bc104-4b21-4443-8de7-47e84e18e07c",e._sentryDebugIdIdentifier="sentry-dbid-d60bc104-4b21-4443-8de7-47e84e18e07c")}catch(e){}}(),(_global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"94c52878174d063fe834ad5b32e500e278fea03b"},(self.webpackChunkbiesse_website=self.webpackChunkbiesse_website||[]).push([[77],{87424:function(e,t,a){a.d(t,{f:function(){return s}});var n=a(67294),l=a(50259);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"submit";const{executeRecaptcha:t}=(0,l.xX)(),a=(0,n.useCallback)((async()=>{if(t)try{return await t(e)}catch(a){console.log("Something went wrong during captcha check",a)}else console.log("Execute recaptcha not yet available")}),[t,e]),s=!t||!1;return(0,n.useMemo)((()=>({isDisabled:s,handleReCaptchaVerify:a})),[s,a])}},95090:function(e,t,a){a.r(t),a.d(t,{default:function(){return C}});var n=a(21550),l=a(20146),s=a(238),r=a(67294),c=a(87536),o=a(87424),i=a(20757),d=a(90512),u=a(76251),f=a(85893);const h=e=>{let{title:t,snippet:a,url:n,className:l,ctaLabel:s}=e;return(0,f.jsxs)("div",{className:(0,d.Z)("flex flex-col gap-4",l),children:[(0,f.jsx)("div",{className:"font-medium text-primary text-3xl",dangerouslySetInnerHTML:{__html:t}}),(0,f.jsx)("div",{className:"font-light text-dark text-lg leading-snug",dangerouslySetInnerHTML:{__html:a}}),(0,f.jsxs)("a",{href:n,className:"flex flex-row items-center gap-2 text-primary",children:[(0,f.jsx)("div",{className:"font-medium text-lg leading-snug",children:s}),(0,f.jsx)(u.J,{icon:"arrow-right",size:20})]})]})};var x=a(10768),g=a(17604),m=a(39185),b=a(63659),p=a(94970);var y=a(51922),w=a(5972),v=a(68152),S=a(35088),_=a(69973);const j="search-input",N="true"==={}.GATSBY_DISABLE_CAPTCHA_ON_SEARCH,k=e=>{var t,a;let{data:{allContentfulHeaderMenu:n,allContentfulFooter:d},pageContext:{locale:k}}=e;const C=(0,_.JU)(k).language,E=n.nodes.find((e=>e.node_locale===k)),I=d.nodes.find((e=>e.node_locale===k)),{labels:L}=(0,l.bE)(),{search:R,isLoading:A,result:D}=function(){const[e,t]=(0,r.useState)(!1),[a,n]=(0,r.useState)(null),[l,s]=(0,r.useState)(null),c=(0,r.useCallback)((async(e,a)=>{const l="562756219a3e74b1f",r="AIzaSyCSlt9SMbtn0555Ao7A6SqS6zER50c5VPc",c=a?`lang_${a}`:void 0,o=`https://www.googleapis.com/customsearch/v1/?${new URLSearchParams(void 0!==c?{cx:l,key:r,q:e,lr:c}:{cx:l,key:r,q:e})}`;t(!0),s(null);try{const e=await fetch(o),t=await e.json();s(t),n(null)}catch(i){n(i),s(null)}finally{t(!1)}}),[]);return{result:l,error:a,isLoading:e,setIsLoading:t,search:c}}(),{pushEvent:z}=(0,y.P)(),P=(0,w.C)();(0,r.useEffect)((()=>{P({breadcrumbs:[{label:S.kq.Search,defaultLocaleLabel:S.kq.Search,url:""}],content_group:v.j.Other,locale:k})}),[P,k]);const{register:T,setValue:H,handleSubmit:M,watch:U}=(0,c.cI)(),q=U("search"),[B,F]=(0,r.useState)(""),[J,V]=(0,r.useState)(null),{handleReCaptchaVerify:$,isDisabled:O}=(0,o.f)("search"),Y=A||O||null===J;(0,r.useEffect)((()=>{(async()=>{if(!N){if(O)return;const e=await $();if(!e)return V(!0);if("success"!==(await s.default.post("/.netlify/functions/verify-captcha",{token:e},{validateStatus:()=>!0})).data.status)return V(!0);V(!1)}const e=new URLSearchParams(window.location.search).get(p.sf)||"";F(e),H("search",e),R(e,C)})()}),[C,R,H,O,$]);const Z=(0,r.useCallback)((e=>{let{search:t}=e;if("undefined"!=typeof window&&t){const e=new URLSearchParams(window.location.search);e.set(p.sf,t),e.set(p.yR,p.rQ),window.location.search=e.toString()}}),[]),G=(0,r.useCallback)((()=>{H("search","");try{var e;null===(e=document.getElementById(j))||void 0===e||e.focus()}catch(t){console.error(t)}}),[H]);return(0,r.useEffect)((()=>
1{if(D){const e="items"in D&&D.items.length>0;z({event:S.bg.Search,search_term:B,search_result:e?S.sZ.Results:S.sZ.NoResults})}}),[D,B,z]),(0,f.jsxs)(f.Fragment,{children:[E&&(0,f.jsx)(m.A,{headerMenu:E,internalPagePath:"/search",pageContentfulId:null}),(0,f.jsxs)("div",{className:"flex flex-col mx-auto px-8 lg:px-20 py-16 container max-w-5xl gap-12",children:[(0,f.jsx)("div",{className:"text-primary text-5xl font-medium leading-tight self-center",children:L["search-title"]}),(0,f.jsxs)("form",{onSubmit:M(Z),className:"flex flex-row gap-2 items-center",children:[(0,f.jsx)(g.I,{type:"text",className:"flex-grow",id:j,placeholder:null!==(t=L["search-modal-form-placeholder"])&&void 0!==t?t:void 0,...T("search"),endDecoration:q?(0,f.jsx)(u.J,{icon:"close",size:25,onClick:G}):(0,f.jsx)(u.J,{icon:"search",size:25})}),(0,f.jsx)(i.z,{variant:"primary",size:"sm",type:"submit",disabled:!N&&(O||!1!==J),children:L["header-menu-search-submit"]})]}),null!=D&&null!==(a=D.items)&&void 0!==a&&a.length?D.items.map((e=>{let{htmlTitle:t,link:a,htmlSnippet:n}=e;return(0,f.jsx)(h,{title:t,url:a,snippet:n,ctaLabel:L["search-cta-label"]},a)})):(0,f.jsx)("div",{className:"mx-auto my-12",children:Y?(0,f.jsx)(b.$,{size:"large"}):J?(0,f.jsx)("div",{className:"text-dark text-xl",children:L["captcha-verification-failed"]}):B?(0,f.jsxs)("div",{className:"text-dark text-xl",children:[L["search-empty-state"]," ",(0,f.jsxs)("strong",{children:['"',B,'"']})]}):(0,f.jsx)("div",{className:"text-dark text-xl",children:L["search-no-search-issued"]})})]}),I&&(0,f.jsx)(x.$,{...I})]})};var C=e=>{const{data:{allContentfulLabel:t,allContentfulRichTextLabel:a},pageContext:{locale:s,allPageNodes:r,localizedUrls:c}}=e,o=(0,l.N9)(Array.from(t.nodes),(e=>null!=e?e:"")),i=(0,l.N9)(Array.from(a.nodes),(e=>{var t;return null!==(t=null==e?void 0:e.raw)&&void 0!==t?t:""}));return(0,f.jsx)(n.B,{labels:o,richTextLabels:i,localizedUrls:c,locale:s,pageNodes:null!=r?r:[],children:(0,f.jsx)(k,{...e})})}},68152:function(e,t,a){a.d(t,{j:function(){return n}});let n=function(e){return e.Home="home",e.Content="content",e.NotFound="404",e.Form="form",e.Product="product",e.Events="events",e.Other="other",e}({})}}]); 2//# sourceMappingURL=component---src-templates-search-page-index-tsx-7160b882a8be7ad38c0e.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.