PageSourceSearch

https://www.keune.com/_next/static/chunks/pages/index-1dace84ea6db016a.js

js keune.com collected 2026-09-25 20:24:06 UTC 9,621 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{87753:function(e,o,n){"use strict";n.d(o,{Z:function(){return C}});var t=n(67294),l=n(94184),r=n.n(l),i=n(11163),c=n(32951),s=n(73481),a=n(11435),u=n(99962),d=n(6380),v=n.n(d),h=n(98888),_=n(12375),g=n(85893);var C=e=>{let{pageData:o,locale:n}=e;const l=(0,a.i)(),d=null===l||void 0===l?void 0:l.countrySelectorLocales,{countrySelector:C}=(null===l||void 0===l?void 0:l.translations)||{},{0:p,1:f}=(0,t.useState)({}),{0:m,1:y}=(0,t.useState)(!1),{0:x,1:j}=(0,t.useState)(null===C||void 0===C?void 0:C.chooseAnotherLocation),{0:w,1:E}=(0,t.useState)(!1),{0:N,1:L}=(0,t.useState)(""),S=(0,i.useRouter)(),{countryCode:b,setCountryCode:k}=(0,a.rV)(),{openLocalePopup:R}=(0,u.l8)(),{customer:P}=(0,u.ON)(),[Z]=(0,u.HD)(n),{0:M,1:T}=(0,t.useState)([]),{0:D,1:O}=(0,t.useState)([]),{0:F,1:U}=(0,t.useState)(""),A=(0,t.useRef)(null);(0,t.useEffect)((()=>{L((0,c.vk)())}),[]),(0,t.useEffect)((()=>{m&&A.current&&window.matchMedia("(hover: hover)").matches&&A.current.focus()}),[m]);const B=e=>{if("/uk/"===(null===e||void 0===e?void 0:e.slug)){const o=d.find((e=>"ni"===e.countryCode.toLowerCase()));return o&&(T([e,o]),O([e.name,o.name])),!0}if("/ie/"===(null===e||void 0===e?void 0:e.slug)){const o=d.find((e=>"ni"===e.countryCode.toLowerCase()));return o&&(T([e,o]),O([e.name,o.name])),!0}if("/ni/"===(null===e||void 0===e?void 0:e.slug)){const o=d.find((e=>"ie"===e.countryCode.toLowerCase()));return o&&(T([e,o]),O([e.name,o.name])),!0}const o=d.filter((o=>{var n;return o.countryCode.toLowerCase()===(null===e||void 0===e||null===(n=e.countryCode)||void 0===n?void 0:n.toLowerCase())}));return o.length>1&&(T(o.length>1?o:[]),O([]),!0)},X=e=>{f(e),j(e.name),k(e.countryCode.toLowerCase())},$=()=>{const e=d.find((e=>e.name.includes("International")&&e.name.includes("English")));X(e),T([])};(0,t.useEffect)((()=>{null!==p&&void 0!==p&&p.countryCode||fetch("/api/user-location").then((e=>e.json())).then((e=>{const o=null===d||void 0===d?void 0:d.find((o=>o.countryCode.toLowerCase()===e.countryCode.toLowerCase()));o&&null!==o&&void 0!==o&&o.name?(X(o),B(o)):$()})).catch((()=>{$()}))}),[d,p]),(0,t.useEffect)((()=>{var e;if(null===p||void 0===p||!p.countryCode||!n)return void E(!1);if(S.query.from)return(0,s.t8)(s.XP.USER_LOCALE_PREFERENCE,"en"),void E(!1);const o=d.find((e=>{var o;return(null===(o=e.slug)||void 0===o?void 0:o.replace(/\//g,""))===n})),t=(0,s.U2)(s.XP.USER_LOCALE_PREFERENCE);t!==(null===o||void 0===o||null===(e=o.slug)||void 0===e?void 0:e.replace(/\//g,"").toLowerCase())&&t!==n?(null===o||void 0===o?void 0:o.countryCode)===(null===p||void 0===p?void 0:p.countryCode)&&"UK"!==(null===p||void 0===p?void 0:p.countryCode)&&"IE"!==(null===p||void 0===p?void 0:p.countryCode)||E(!0):E(!1)}),[p,d,n]);const H=e=>null===e||void 0===e?void 0:e.slice(-2),J=(0,c.kG)(b.toLowerCase()),q=e=>{if(e.externalLink)return void(document.location.href=e.externalLink);const n=(e=>{var o;return null===e||void 0===e||null===(o=e.replace(/\//g,""))||void 0===o?void 0:o.toLowerCase()})("/"===(null===e||void 0===e?void 0:e.slug)?"en":null===e||void 0===e?void 0:e.slug),[t]=o.href.filter((e=>{let{locale:o}=e;return o===n}));if("/"===e.slug&&"en"===n)R(e.slug),(0,s.t8)(s.XP.USER_LOCALE_PREFERENCE,n),E(!1);else{var l;(0,s.t8)(s.XP.USER_LOCALE_PREFERENCE,n),E(!1);const e=document.location.origin,o=null!==t&&void 0!==t&&null!==(l=t.slug)&&void 0!==l&&l.startsWith("/")?null===t||void 0===t?void 0:t.slug:`/${(null===t||void 0===t?void 0:t.slug)||""}`,i="en"===n?"":`/${n}`,c=`${i}${o}`;var r;if(P)Z(null===P||void 0===P||null===(r=P.customerAccessToken)||void 0===r?void 0:r.accessToken,c);if("newAccounts"===(null===P||void 0===P?void 0:P.authType))return;document.location.href=`${e}${i}${o}`}},G=(e,o)=>null!==D&&void 0!==D&&D[o]?D[o]:null!==e&&void 0!==e&&e.defaultLanguage?e.defaultLanguage.toUpperCase():e.name,I=(0,c.dp)(d,F);return w?(0,g.jsx)("div",{className:v().ccSelectorModal,children:(0,g.jsxs)("div",{className:v().ccSelectorContainer,children:[(0,g.jsx)("h2",{className:v().title,children:C.title.includes("{{country}}")?(0,g.jsxs)(g.Fragment,{children:[C.title.split("{{country}}")[0],(0,g.jsx)("span",{children:J||""}),C.title.split("{{country}}")[1]]}):C.title}),(0,g.jsx)("div",{className:v().subtitle,children:null===C||void 0===C?void 0:C.subtitle}),(0,g.jsxs)("div",{className:v().controlsContainer,children:[(0,g.jsxs)("div",{className:v().confirmationButtonContent,onClick:()=>{U(""),y(!m)},role:"none",children:[(0,g.jsx)("button",{type:"button",className:r()(v().button,v().resetMargin),children:(0,g.jsxs)(g.Fragment,{children:[!N&&x!==(null===C||void 0===C?void 0:C.chooseAnotherLocation)&&(0,g.jsxs)("span",{className:v().countryCode,children:[(0,c.HL)(H((null===p||void 0===p?void 0:p.countryCode)||b))," "]}),(0,g.jsx)("span",{children:x})]})}),(0,g.jsx)("div",{className:v().chevronContainer,children:m?(0,g.jsx)(h.Z,{width:"24px",height:"24px"}):(0,g.jsx)(_.Z,{width:"24px",height:"24px"})}),m&&(0,g.jsxs)("ul",{className:v().locationsContainer,children:[(0,g.jsx)("input",{ref:A,className:v().search,placeholder:(null===C||void 0===C?void 0:C.searchPlaceholder)||"Search","aria-label":(null===C||void 0===C?void 0:C.searchPlaceholder)||"Search",value:F,onClick:e=>e.stopPropagation(),onChange:e=>U(e.target.value)}),I.map((e=>(0,g.jsxs)("button",{type:"button",className:v().countrySelector,onClick:()=>{(e=>{y(!1),X(e),B(e)||q(e)})(e)},children:[!N&&(0,g.jsx)("span",{className:v().countryCode,children:(0,c.HL)(H(null===e||void 0===e?void 0:e.countryCode))})," ",(0,g.jsx)("span",{children:null===e||void 0===e?void 0:e.name})]},null===e||void 0===e?void 0:e.sys.id))),F.trim()&&0===I.length&&(0,g.jsx)("li",{className:v().noResults,children:(null===C||void 0===C?void 0:C.noMatches)||"No matches"})]})]}),(0,g.jsx)("button",{type:"button",onClick:()=>q(p),children:(0,g.jsx)("div",{className:v().confirmContent,children:(0,g.jsx)("span",{children:null===C||void 0===C?void 0:C.confirmContent})})}),(null===M||void 0===M?void 0:M.length)>1&&(0,g.jsx)("div",{className:v().languageSelector,children:M.map(((e,o)=>{var n,t;return(0,g.jsxs)("button",{type:"button",className:v().languageOption,onClick:()=>X(e),children:[(0,g.jsx)("input",{className:v().radio,type:"radio",name:"language",checked:(null===p||void 0===p||null===(n=p.sys)||void 0===n?void 0:n.id)===(null===e||void 0===e||null===(t=e.sys)||void 0===t?void 0:t.id)}),(0,g.jsx)("span",{className:v().label,children:G(e,o)})]})}))})]})]})}):null}},7141:function(e,o,n){"use strict";n.d(o,{Z:function(){return c}});
1var t=n(37461),l=n(16415),r=n.n(l),i=n(85893);var c=e=>{var o;let{data:n,locale:l}=e;return(0,i.jsxs)(i.Fragment,{children:[null!==n&&void 0!==n&&n.pageTitle?(0,i.jsx)("h1",{className:r().pageTitle,children:n.pageTitle}):(null===n||void 0===n||null===(o=n.seo)||void 0===o?void 0:o.title)&&(0,i.jsx)("h1",{className:"sr-only",children:n.seo.title}),(0,t.Z)(null===n||void 0===n?void 0:n.name,l,null===n||void 0===n?void 0:n.sections,r().ignoreSpacing)]})}},37461:function(e,o,n){"use strict";n.d(o,{Z:function(){return t.Z}});var t=n(18246)},12375:function(e,o,n){"use strict";var t=n(85893);o.Z=e=>{let{width:o=16,height:n=16}=e;return(0,t.jsx)("svg",{width:o,height:n,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M4 6.66675L8 10.6667L12 6.66675",stroke:"#3C3C3B",strokeLinecap:"square"})})}},98888:function(e,o,n){"use strict";var t=n(85893);o.Z=e=>{let{width:o=16,height:n=16}=e;return(0,t.jsx)("svg",{width:o,height:n,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M4 9.33325L8 5.33325L12 9.33325",stroke:"#3C3C3B",strokeLinecap:"square"})})}},33539:function(e,o,n){"use strict";n.r(o),n.d(o,{__N_SSG:function(){return a}});var t=n(70827),l=n(7141),r=n(4486),i=n(87753),c=n(99962),s=n(85893);var a=!0;o.default=e=>{let{page:o,locale:n,previewData:a,globalModules:u}=e;return(0,c.Pv)(n),(0,s.jsx)(r.Z,{locale:n,previewData:a,globalModules:u,pageData:o,children:(0,s.jsxs)(s.Fragment,{children:[(null===o||void 0===o?void 0:o.seo)&&(0,s.jsx)(t.Z,{seo:o.seo,pageData:o}),(0,s.jsx)(l.Z,{locale:n,data:o}),(0,s.jsx)(i.Z,{locale:n,globalModules:u,pageData:o})]})})}},45728:function(e,o,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(33539)}])},6380:function(e){e.exports={ccSelectorModal:"country-selector_ccSelectorModal__tu1zf",ccSelectorContainer:"country-selector_ccSelectorContainer__eaeaW",title:"country-selector_title__bbhW1",subtitle:"country-selector_subtitle__pNDuc",controlsContainer:"country-selector_controlsContainer__Xk0I7",confirmContent:"country-selector_confirmContent__3S4UJ",countryCode:"country-selector_countryCode___7v3x",confirmationButtonContent:"country-selector_confirmationButtonContent__1fvfT",locationsContainer:"country-selector_locationsContainer__N0TSJ",search:"country-selector_search__4vBfm",noResults:"country-selector_noResults__H_Ma5",countrySelector:"country-selector_countrySelector__F49aD",button:"country-selector_button__JwEDD",resetMargin:"country-selector_resetMargin__Z5N8_",chevronContainer:"country-selector_chevronContainer__wr9Zp",languageSelector:"country-selector_languageSelector__t474p",languageOption:"country-selector_languageOption__U_9cp",label:"country-selector_label__GlJ0T"}},16415:function(e){e.exports={pageTitle:"general_pageTitle__cc9PJ",ignoreSpacing:"general_ignoreSpacing__Hrupy"}}},function(e){e.O(0,[4487,7569,6838,9774,2888,179],(function(){return o=45728,e(e.s=o);var o}));var o=e.O();_N_E=o}]);
2//# sourceMappingURL=index-1dace84ea6db016a.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.