PageSourceSearch

https://www.meteomatics.com/_next/static/chunks/7826.c5dd64c1f8955f99.js

js meteomatics.com collected 2026-10-02 16:47:39 UTC 5,342 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7826],{54375:function(e,t,n){"use strict";var a,r,s,i=n(67294);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},l.apply(this,arguments)}t.Z=function(e){return i.createElement("svg",l({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=i.createElement("path",{fill:"#fff",d:"m15.242 24.435 9.192-9.192.707.707-9.192 9.192z"})),r||(r=i.createElement("path",{fill:"#fff",d:"m24.434 25.142-9.192-9.193.707-.707 9.192 9.193z"})),s||(s=i.createElement("path",{d:"M29 20a9 9 0 1 0-18 0 9 9 0 0 0 18 0Z",stroke:"#fff",strokeMiterlimit:10})))}},47826:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return D}});var a=n(85893),r=n(93967),s=n.n(r),i=n(26126),l=n(67294),c=n(11163),o=n(70290),u=n.n(o),d=n(46897),h=n(94333),f=n(54375),p=n(60445),x=n.n(p),v=n(24986),m=n(50332),b=n(61621),g=n(6654),j=n(35386),w=n(31761),y=function(){var e=(0,m.$G)().t,t=(0,b.l)(),n=t.query,r=t.refine,s=(0,l.useRef)(null),i=(0,l.useState)(n),c=i[0],o=i[1],u=(0,l.useCallback)((function(e){o(e),r(e)}),[o,r]);(0,j.Z)((function(){c&&c.length>=3&&(0,w._)({event:"search",label:c})}),5e3,[c]);var d=(0,l.useCallback)((function(e){u(e.currentTarget.value)}),[u]);return n!==c&&document.activeElement!==s.current&&o(n),(0,a.jsxs)("div",{className:"relative search-box",children:[(0,a.jsx)("input",{ref:s,className:"w-full rounded-3xl px-5 py-2 text-primary bg-brand-light-gray",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",placeholder:e("search.input"),spellCheck:!1,maxLength:512,autoFocus:!0,value:c,onChange:d}),(0,a.jsx)(g.Z,{className:"absolute right-1.5 top-1.5 w-7 h-7"})]})},C=n(29815),N=n(45846),k=n(74617),E=n(57691),Z=n(41609),_=n.n(Z),F=n(7739),O=n.n(F),M=n(41664),R=n.n(M),z=n(75855),G=n(90735),L=function(e){var t=e.url,n=e.title,r=e.description,s=e.onClose;return(0,a.jsx)(R(),{href:(0,z.D5)(t),children:(0,a.jsx)("a",{onClick:function(){s()},children:(0,a.jsxs)("div",{className:"w-[90%] md:w-[80%] py-6 md:py-6",children:[(0,a.jsx)(G.Z,{variant:"subtitle2",className:"mb-4",children:n}),(0,a.jsx)(G.Z,{variant:"body",children:r})]})})})},P=function(e){var t=e.onClose,n=(0,N.O)().hits,r=O()(n,(function(e){return(e.language||e.data.language).split("-")[0]})),i=(0,m.$G)(),l=i.i18n,c=i.t,o=[],u=[];return Object.keys(r).forEach((function(e){e===l.language?o.push({language:e,hits:r[e]}):u.push({language:e,hits:r[e]})})),(0,a.jsx)("div",{className:"md:w-[600px] md:m-auto",children:(0,C.Z)(o).concat((0,C.Z)(u)).map((function(e,n){var r=e.language,i=e.hits;return(0,a.jsxs)("div",{children:[u.length>0&&(0,a.jsx)("div",{className:s()("formatted-content text-lg font-semibold mb-2 pb-4 border-b-2",{"mt-8":n>0}),children:c("language.".concat(r))}),i.map((function(e){var n,r,s,i,l=null;return _()(e.description)?_()(e.content)?_()(null===(n=e.data)||void 0===n?void 0:n.description)?_()(null===(r=e.data)||void 0===r?void 0:r.content)||(l=(0,a.jsx)(k.p,{attribute:"data.content",hit:e})):l=(0,a.jsx)(k.p,{attribute:"data.description",hit:e}):l=(0,a.jsx)(k.p,{attribute:"content",hit:e}):l=(0,a.jsx)(k.p,{attribute:"description",hit:e}),(0,a.jsx)("div",{className:"first:border-t-2 border-b-2 border-brand-gray border-opacity-30 last:border-0",children:(0,a.jsx)(L,{url:null!==(i=e.url)&&void 0!==i?i:null===(s=e.data)||void 0===s?void 0:s.url,title:e.title?(0,a.jsx)(E.y,{attribute:"title",hit:e}):(0,a.jsx)(E.y,{attribute:"data.title",hit:e}),description:l,onClose:t})},e.objectID)}))]},r)}))})},S=["all","documentation","metx","website"],T=function(e){var t=e.onFilterChange,n=e.activeFilter,r=(0,m.$G)().t;return(0,a.jsxs)("div",{className:"search-filter flex gap-x-4 mb-4 text-white",children:[(0,a.jsx)("span",{children:r("search.filterLabel")}),S.map((function(e){return(0,a.jsx)("span",{className:s()("hover:cursor-pointer hover:text-secondary",{"text-secondary":e===n}),onClick:function(){return t(e)},children:r("search.section.".concat(e))},e)}))]})},$=u()("VGMALFT8Z8","3a58a43326a972d10d43c0c592b74181"),D=function(e){var t=e.onClose,n=e.isMobileSearch,r=e.activeFilter,o=(0,c.useRouter)();(0,l.useEffect)((function(){b(r)}),[]);var u=(0,l.useState)(o.asPath)[0],p=(0,l.useState)(r),m=p[0],b=p[1];return(0,l.useEffect)((function(){o.asPath!==u&&t()}),[u,o.asPath,t]),(0,i.Z)("Escape",t),(0,a.jsxs)(d.p,{indexName:"pages",searchClient:$,children:[(0,a.jsx)(h.T,{distinct:!0,filters:"all"!==m?"section:".concat(m):""}),(0,a.jsx)(v.X,{}),(0,a.jsxs)("div",{className:s()("fixed inset-0 h-dvh w-full overscroll-none z-[1001] flex flex-col",{"bg-primary ":n,"bg-primary/90 ":!n}),children:[!n&&(0,a.jsx)("button",{onClick:t,className:"fixed right-7 top-6",title:"Menu",children:(0,a.jsx)(f.Z,{alt:"Navigation",className:"h-10 w-10"})}),(0,a.jsxs)("div",{className:s()({"m-5 mr-16 mt-8":n,"w-[600px] m-auto pt-[20vh] ":!n}),children:[(0,a.jsx)(T,{onFilterChange:function(e){return b(e)},activeFilter:m}),(0,a.jsx)(y,{})]}),(0,a.jsx)("div",{className:s()(x().searchResults,"overflow-y-scroll flex-grow pb-24 search-results text-white",{"px-5 pt-5":n,"pt-8":!n}),children:(0,a.jsx)(P,{onClose:t})})]})]})}},60445:function(e){e.exports={searchResults:"search-overlay_searchResults__lpLrK"}}}]);

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.