PageSourceSearch

https://www.dangers-naturels.ch/static/1193.fd7f99ad.js

js dangers-naturels.ch collected 2026-09-25 04:38:15 UTC 7,686 bytes, 2 lines download raw bytes

1/*! For license information please see 1193.fd7f99ad.js.LICENSE.txt */
2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1193],{45030:()=>{const e=new Map;function t(e){return e.hasAttribute("hidden")||e.hasAttribute("aria-hidden")&&"false"!==e.getAttribute("aria-hidden")||"none"===e.style.display||"0"===e.style.opacity||"hidden"===e.style.visibility||"collapse"===e.style.visibility}function i(e){return"-1"!==e.getAttribute("tabindex")&&!t(e)&&!function(e){return e.hasAttribute("disabled")||e.hasAttribute("aria-disabled")&&"false"!==e.getAttribute("aria-disabled")}(e)&&(e.hasAttribute("tabindex")||(e instanceof HTMLAnchorElement||e instanceof HTMLAreaElement)&&e.hasAttribute("href")||e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||e instanceof HTMLIFrameElement)}function s(e,t,i,n=20,a=0){let o=[];if(a>=n)return o;const r=e=>{const o=e.assignedNodes().filter((e=>1===e.nodeType));return o.length>0?s(o[0].parentElement,t,i,n,a+1):[]},c=Array.from(e.children||[]);for(const e of c)t(e)||(i(e)&&o.push(e),null!=e.shadowRoot?o.push(...s(e.shadowRoot,t,i,n,a+1)):"SLOT"===e.tagName?o.push(...r(e)):o.push(...s(e,t,i,n,a+1)));return o}const n=document.createElement("template");n.innerHTML='\n\t<div id="start"></div>\n\t<div id="backup"></div>\n\t<slot></slot>\n\t<div id="end"></div>\n';class a extends HTMLElement{constructor(){super(),this.debounceId=Math.random().toString(),this._focused=!1;const e=this.attachShadow({mode:"open"});e.appendChild(n.content.cloneNode(!0)),this.$backup=e.querySelector("#backup"),this.$start=e.querySelector("#start"),this.$end=e.querySelector("#end"),this.focusLastElement=this.focusLastElement.bind(this),this.focusFirstElement=this.focusFirstElement.bind(this),this.onFocusIn=this.onFocusIn.bind(this),this.onFocusOut=this.onFocusOut.bind(this)}static get observedAttributes(){return["inactive"]}get inactive(){return this.hasAttribute("inactive")}set inactive(e){e?this.setAttribute("inactive",""):this.removeAttribute("inactive")}get focused(){return this._focused}connectedCallback(){this.$start.addEventListener("focus",this.focusLastElement),this.$end.addEventListener("focus",this.focusFirstElement),this.addEventListener("focusin",this.onFocusIn),this.addEventListener("focusout",this.onFocusOut),this.render()}disconnectedCallback(){this.$start.removeEventListener("focus",this.focusLastElement),this.$end.removeEventListener("focus",this.focusFirstElement),this.removeEventListener("focusin",this.onFocusIn),this.removeEventListener("focusout",this.onFocusOut)}attributeChangedCallback(){this.render()}focusFirstElement(){this.trapFocus()}focusLastElement(){this.trapFocus(!0)}getFocusableElements(){return s(this,t,i)}trapFocus(e){if(this.inactive)return;let t=this.getFocusableElements();t.length>0?(e?t[t.length-1].focus():t[0].focus(),this.$backup.setAttribute("tabindex","-1")):(this.$backup.setAttribute("tabindex","0"),this.$backup.focus())}onFocusIn(){this.updateFocused(!0)}onFocusOut(){this.updateFocused(!1)}updateFocused(t){!function(t,i,s){const n=e.get(s);null!=n&&window.clearTimeout(n),e.set(s,window.setTimeout((()=>{t(),e.delete(s)}),i))}((()=>{this.focused!==t&&(this._focused=t,this.render())}),0,this.debounceId)}render(){this.$start.setAttribute("tabindex",!this.focused||this.inactive?"-1":"0"),this.$end.setAttribute("tabindex",!this.focused||this.inactive?"-1":"0"),this.focused?this.setAttribute("focused",""):this.removeAttribute("focused")}}window.customElements.define("focus-trap",a)},21258:(e,t,i)=>{i.d(t,{k:()=>s.PageIntro});var s=i(11638)},94309:(e,t,i)=>{i.r(t),i.d(t,{ApplicationPage:()=>E,ApplicationPageElement:()=>g,default:()=>w});var s=i(65723),n=i(41594),a=i(69913),o=i(91536),r=i(30395),c=i.n(r),d=i(11618),l=i(21258),h=i(31422),u=i(27344),p=i(40995),m=i(34983);const f=({heading:e,lead:t,homePageLink:i,notification:a})=>{const[{printMode:o}]=(0,d.N_)({}),r=!!o;return(0,n.useEffect)((()=>{const t=window.location.pathname,i=()=>{window.location.pathname!==t&&window.location.reload()};return window.addEventListener("popstate",i),(0,d.hZ)("analytics-set-application-context",{data:{applicationName:e}}),()=>window.removeEventListener("popstate",i)}),[]),(0,s.jsx)(u.h,{children:(0,s.jsxs)("div",{className:c()("application-page",{"print-mode":r}),children:[!r&&(0,s.jsx)(m.A,{homePageLink:i}),(0,s.jsx)("div",{className:"application-page__body",children:(0,s.jsxs)(h.A,{children:[!r&&(0,s.jsx)(l.k,{heading:e,text:t,isLeftAligned:!0,type:"application",isRowLayout:!0,canBe
2Shared:!0,shareIconColor:"light"}),a&&!r&&(0,s.jsx)("div",{className:"mch-notification--application-wrapper",children:(0,s.jsx)(p.U,{text:a.content,kind:"information"===a.type?void 0:a.type})}),(0,s.jsx)("main",{children:(0,s.jsx)("slot",{name:"main"})})]})})]})})};var b=i(4677);const g=(0,a.b)({reactComponent:f,cssUrls:[...b.t],properties:{heading:String,lead:String,homePageLink:String,notification:Object}}),v=(0,o.N)("mch-application-page",g),E=e=>(0,s.jsx)(v,Object.assign({},e)),w=g},34983:(e,t,i)=>{i.d(t,{A:()=>d});var s=i(65723),n=i(31422),a=i(14558),o=i(71408),r=i(91819);const c=(0,i(11618).V)({linkLabelLong:{de:"Zur Webseite MeteoSchweiz",fr:"Vers le site MétéoSuisse",it:"Al sito di MeteoSvizzera",en:"Go to MeteoSwiss website"},linkLabelShort:{de:"Zu MeteoSchweiz",fr:"Vers MétéoSuisse",it:"A MeteoSvizzera",en:"Go to MeteoSwiss"}}),d=({homePageLink:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"application-page-header__header",children:(0,s.jsx)(n.A,{children:(0,s.jsxs)("div",{className:"application-page-header__header-content",children:[(0,s.jsx)(a.g,{homePageLink:e}),(0,s.jsx)("div",{className:"application-page-header__link-container",children:e&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"application-page-header__link application-page-header__link--long",children:e&&(0,s.jsx)(o.N_,{icon:"arrow-right",href:e,children:c("linkLabelLong")})}),(0,s.jsx)("div",{className:"application-page-header__link application-page-header__link--short",children:(0,s.jsx)(o.N_,{icon:"arrow-right",href:e,children:c("linkLabelShort")})})]})})]})})}),(0,s.jsx)(n.A,{children:(0,s.jsx)(r.A,{})})]})},4677:(e,t,i)=>{i.d(t,{t:()=>c});var s=i(89808),n=i(95884),a=i(99410);const o=i.p+"css/mch/application-page-header.8e7e8da3.css",r=i.p+"css/mch/application-page.38a75cab.css",c=[...s.t,...n.x,...a.w,o,r].filter(((e,t,i)=>i.indexOf(e)===t))},91385:(e,t,i)=>{i.d(t,{a:()=>o});var s=i(41594),n=i(99699);const a=(0,i(34007).a)({react:s,tagName:"wb-box",elementClass:n.a}),o=(0,s.forwardRef)(((e,t)=>s.createElement(a,Object.assign(Object.assign({},e),{ref:t}))));o.displayName="Box"},39552:(e,t,i)=>{i.d(t,{E:()=>o});var s=i(41594),n=i(80804);const a=(0,i(34007).a)({react:s,tagName:"wb-grid-container",elementClass:n.E}),o=(0,s.forwardRef)(((e,t)=>s.createElement(a,Object.assign(Object.assign({},e),{ref:t}))));o.displayName="GridContainer"},28671:(e,t,i)=>{i.d(t,{_:()=>o});var s=i(41594),n=i(11948);const a=(0,i(34007).a)({react:s,tagName:"wb-image",elementClass:n._}),o=(0,s.forwardRef)(((e,t)=>s.createElement(a,Object.assign(Object.assign({},e),{ref:t}))));o.displayName="Image"},49679:(e,t,i)=>{i.d(t,{B:()=>o});var s=i(41594),n=i(17457);const a=(0,i(34007).a)({react:s,tagName:"wb-stack",elementClass:n.B}),o=(0,s.forwardRef)(((e,t)=>s.createElement(a,Object.assign(Object.assign({},e),{ref:t}))));o.displayName="Stack"},58515:(e,t,i)=>{i.d(t,{E:()=>o});var s=i(41594),n=i(67775);const a=(0,i(34007).a)({react:s,tagName:"wb-text",elementClass:n.EY}),o=(0,s.forwardRef)(((e,t)=>s.createElement(a,Object.assign(Object.assign({},e),{ref:t}))));o.displayName="Text"}}]);

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.