PageSourceSearch

https://www.ankernordics.com/_next/static/chunks/31540.c4c3cd3da9aabdbd.js

js ankernordics.com collected 2026-09-29 21:44:50 UTC 8,688 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="67224d42-5bdd-4f53-87cb-759dcef93a02",e._sentryDebugIdIdentifier="sentry-dbid-67224d42-5bdd-4f53-87cb-759dcef93a02")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[31540],{9245:function(e,t,n){"use strict";var l=n(52676),o=n(32355),a=n(15543),i=n.n(a);t.Z=e=>{let{className:t}=e;return(0,l.jsxs)("div",{className:(0,o.A)(i().root,t),children:[(0,l.jsx)("div",{className:i().dot},"dot_1"),(0,l.jsx)("div",{className:i().dot},"dot_2"),(0,l.jsx)("div",{className:i().dot},"dot_3")]})}},31540:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var l=n(52676),o=n(32355),a=n(96e3),i=n(75271),r=n(9245),d=n(37156),s=n(89497);let c=()=>{let{locale:e=""}=(0,d.useRouter)(),{data:t}=(0,s.ZP)("countryName",()=>fetch("/api/multipass/gcs/entryRelationship/list",{method:"GET"}).then(e=>e.json()).then(e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.data}));return(0,i.useMemo)(()=>{let n={};return null==t||t.map(t=>{let l;n[t.pageCode||"_global"]||(n[t.pageCode||"_global"]={});try{l=JSON.parse(t.translateText||"{}")}catch(e){}n[t.pageCode||"_global"][t.positionCode]=(null==l?void 0:l[e.toUpperCase()])||t.entryStr}),n},[t,e])};var u=n(4716);let x=(e,t)=>{let{configData:n=[],translateExt:l}=(null==e?void 0:e.data)||{};return null==n||n.forEach(e=>{null==l||l.forEach(n=>{let{wordEntry:l,translate:o}=n,a=JSON.parse(o);Object.entries(e).forEach(n=>{let[o,i]=n;if("string"==typeof i){var r;e[o]=(null===(r=a[t.toUpperCase()])||void 0===r?void 0:r[l])||i}else Array.isArray(i)&&i.forEach(e=>{Object.entries(e).forEach(n=>{let[o,i]=n;if("string"==typeof i){var r;e[o]=(null===(r=a[t.toUpperCase()])||void 0===r?void 0:r[l])||i}})})})})}),n},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return fetch("/api/multipass/gcs/portalPage/listContactUsByBrand",{method:"POST",body:JSON.stringify({brand:u.cg,contactType:e})}).then(e=>e.json()).then(e=>x(e.data,(null==t?void 0:t.toUpperCase())||"US"))},m=e=>{let{headerRow:t,dataRows:n}=e;return(0,l.jsxs)("div",{className:"rounded-[16px] bg-white p-[32px] l:bg-transparent l:p-0",children:[(0,l.jsx)("div",{className:"grid items-center bg-[#F1F2F3] text-[16px] font-bold leading-[1.4] l:hidden",style:{gridTemplateColumns:"repeat(".concat(t.length,", minmax(0, 1fr))")},children:t.map((e,t)=>(0,l.jsx)("div",{className:"col-span-1 p-[16px] text-left text-[16px] font-bold text-[#1D1F22]",children:e},t))}),(0,l.jsx)("div",{className:"mt-[16px] flex flex-col gap-[16px]",children:n.map((e,n)=>(0,l.jsx)("div",{className:"flex flex-col gap-[16px] text-[16px] font-bold leading-[1.4]",children:(0,l.jsxs)("div",{className:(0,o.A)("grid items-center text-[16px] font-bold text-[#1D1F22] l:!grid-cols-2 l:items-start l:gap-x-[12px] l:gap-y-0 l:py-[16px]",0===n?"":"l:border-t l:border-[#CECECF]/60"),style:{gridTemplateColumns:"repeat(".concat(t.length,", minmax(0, 1fr))")},children:[e.map((e,t)=>(0,l.jsx)("div",{className:"col-span-1 break-all p-[16px] text-left l:hidden",children:e},t)),(0,l.jsx)("div",{className:"col-span-1 l:text-[14px] min-l:hidden",children:e[0]}),(0,l.jsx)("div",{className:"text-[12px] text-[#86868C] min-l:hidden",children:e.slice(1).map((e,t)=>(0,l.jsx)("div",{children:e},t))})]})},n))})]})},v=e=>{let{setting:t}=e,{locale:n}=(0,d.useRouter)(),o=c(),a=(0,i.useMemo)(()=>[{id:"other",label:null==t?void 0:t.otherDepartments}],[t]),[u,x]=(0,i.useState)(a[0].id),{data:v=[],isLoading:f}=(0,s.ZP)("Email",()=>p("Email",n)),h=(0,i.useMemo)(()=>null==v?void 0:v.some(e=>!!e.contactLanguage),[v]),g=(0,i.useMemo)(()=>"other"===u?[null==t?void 0:t.notes,null==t?void 0:t.email]:h?[null==t?void 0:t.country,null==t?void 0:t.email,null==t?void 0:t.language,null==t?void 0:t.serviceTime]:[null==t?void 0:t.country,null==t?void 0:t.email,null==t?void 0:t.notes],[u,h,t]),b=(0,i.useMemo)(()=>{if("other"===u){var e;return(null===(e=t.otherDepartmentEmailList)||void 0===e?void 0:e.map((e,t)=>[(0,l.jsx)("div",{children:e.notes},e.notes+"_"+t),(0,l.jsx)("a",{className:"text-brand underline",href:"mailto:".concat(e.contactInfo),children:e.contactInfo},e.contactInfo+"_"+t)]))||[]}return v.filter(e=>!!e.isContactShow&&!!e.isWebShow).sort((e,t)=>
1{let l=e.area.toLowerCase(),o=t.area.toLowerCase();return l===n&&o!==n?-1:l!==n&&o===n?1:"eu"===n&&"pl"===l?-1:e.contactPriority-t.contactPriority}).map(e=>{var t,n;return h?[(null===(t=o.country)||void 0===t?void 0:t[e.area.toLowerCase()])||e.area,(0,l.jsx)("a",{href:"mailto:".concat(e.contactInfo),children:e.contactInfo},e.contactInfo),e.contactLanguage,e.serviceTime]:[(null===(n=o.country)||void 0===n?void 0:n[e.area.toLowerCase()])||e.area,(0,l.jsx)("a",{className:"text-brand underline",href:"mailto:".concat(e.contactInfo),children:e.contactInfo},e.contactInfo),e.descriptionEn]})},[v,h,u,t,o]);return(0,l.jsx)("div",{children:o.country?(0,l.jsx)(m,{headerRow:g,dataRows:b}):(0,l.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,l.jsx)(r.Z,{})})})},f=e=>{let{setting:t}=e,{locale:n}=(0,d.useRouter)(),o=(0,i.useMemo)(()=>(null==t?void 0:t.hotlineList)||[],[null==t?void 0:t.hotlineList]),a=(0,i.useMemo)(()=>null==o?void 0:o.some(e=>!!e.contactLanguage),[o]),s=c(),u=(0,i.useMemo)(()=>a?[null==t?void 0:t.country,null==t?void 0:t.tel,null==t?void 0:t.language,null==t?void 0:t.serviceTime,null==t?void 0:t.notes]:[null==t?void 0:t.country,null==t?void 0:t.tel,null==t?void 0:t.serviceTime,null==t?void 0:t.notes],[a,t]),x=(0,i.useMemo)(()=>o.filter(e=>!!e.isContactShow&&!!e.isWebShow).sort((e,t)=>{let l=e.area.toLowerCase(),o=t.area.toLowerCase();return l===n&&o!==n?-1:l!==n&&o===n?1:"eu"===n&&"pl"===l?-1:e.contactPriority-t.contactPriority}).map(e=>{var t,n;return a?[(null===(t=s.country)||void 0===t?void 0:t[e.area.toLowerCase()])||e.area,(0,l.jsx)("a",{className:"text-brand underline",href:"tel:".concat(e.contactInfo),children:e.contactInfo},e.contactInfo),e.contactLanguage,e.serviceTime,e.descriptionEn]:[(null===(n=s.country)||void 0===n?void 0:n[e.area.toLowerCase()])||e.area,(0,l.jsx)("a",{className:"text-brand underline",href:"tel:".concat(e.contactInfo),children:e.contactInfo},e.contactInfo),e.serviceTime,e.descriptionEn]}),[o,a,s,n]);return s.country?(0,l.jsx)(m,{headerRow:u,dataRows:x}):(0,l.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,l.jsx)(r.Z,{})})};var h=e=>{var t,n;let{page:r}=e,d=null==r?void 0:null===(n=r.metafields)||void 0===n?void 0:null===(t=n.component)||void 0===t?void 0:t.setting,s=(0,i.useMemo)(()=>[{id:"email",label:null==d?void 0:d.email,children:d&&(0,l.jsx)(v,{setting:d})},{id:"call-us",label:null==d?void 0:d.callUs,children:d&&(0,l.jsx)(f,{setting:d})}],[d]),[c,u]=(0,i.useState)(s[0].id);return(0,i.useEffect)(()=>{let e=()=>{s.forEach(e=>{let t=document.querySelector("#".concat(e.id));if(t){let n=t.getBoundingClientRect();n.top<100&&n.bottom>100&&u(e.id)}})},t=()=>{e()};return window.addEventListener("scroll",e),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",t)}},[s]),(0,l.jsxs)("div",{className:"bg-[#f7f8f9]",children:[(0,l.jsx)("div",{className:"sticky top-0 flex h-[46px] items-center gap-[32px] border-b border-[#CECECF] bg-white px-[16px] text-[16px] font-bold  text-[#1D1F22] min-l:hidden",children:s.map(e=>(0,l.jsx)("div",{className:(0,o.A)("flex h-full items-center border-b-[3px]",e.id===c?"border-brand":"border-transparent"),onClick:()=>{document.querySelector("#".concat(e.id))&&(0,a.Z)("#".concat(e.id))},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),document.querySelector("#".concat(e.id))&&(0,a.Z)("#".concat(e.id)))},role:"button",tabIndex:0,children:e.label},e.id))}),(0,l.jsxs)("div",{className:"mx-auto max-w-[1664px] py-[96px] md:w-full md:px-[16px] l:py-[64px] min-xl:w-[calc(100vw-128px)] md-l:w-[calc(100vw-64px)] l-xl:w-[calc(100vw-128px)]",children:[(0,l.jsx)("div",{className:"text-center text-[36px] font-extrabold l:text-[24px]",children:(null==d?void 0:d.title)||(null==r?void 0:r.title)}),(0,l.jsx)("div",{className:"mt-[48px] flex flex-col gap-[96px] l:mt-[32px] l:gap-[64px]",children:s.map(e=>(0,l.jsxs)("div",{id:e.id,children:[(0,l.jsx)("div",{className:"text-center text-[24px] font-extrabold l:text-[20px]",children:e.label}),(0,l.jsx)("div",{className:"mt-[48px] l:mt-[36px]",children:e.children})]},e.id))})]})]})}},15543:function(e){e.exports={root:"LoadingDots_root__8o4w0",dot:"LoadingDots_dot__kJynh",blink:"LoadingDots_blink__iunUN"}}}]);

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.