PageSourceSearch

https://www.naturskyddsforeningen.se/_next/static/chunks/5283.d9c1f9fd3b759e5d.js

js naturskyddsforeningen.se collected 2026-10-01 10:40:06 UTC 17,084 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5283],{95283:function(e,l,a){"use strict";a.r(l),a.d(l,{Information:function(){return B},default:function(){return A}});var s=a(85893),t=a(34853),r=a(67294),c=a(36926),n=a(25504),i=a(41664),o=a.n(i),h=a(67561),d=a(6964),m=a(37485);function u(e){let{className:l="fill-current"}=e;return(0,s.jsx)("svg",{width:"13",height:"9",viewBox:"0 0 13 9",xmlns:"http://www.w3.org/2000/svg",className:l,children:(0,s.jsx)("path",{d:"M5.52326 5.0625L2.45349 1.96875L0.5 3.9375L5.52326 9L12.5 1.96875L10.5465 0L5.52326 5.0625Z"})})}function v(e){let{className:l=""}=e;return(0,s.jsxs)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",viewBox:"0 0 48 48",className:l,children:[(0,s.jsx)("path",{d:"M42.5 48h-37c-3 0-5.5-2.5-5.5-5.5v-37C0 2.5 2.5 0 5.5 0h37c3 0 5.5 2.5 5.5 5.5v37c0 3-2.5 5.5-5.5 5.5zM5.5 3C4.1 3 3 4.1 3 5.5v37C3 43.9 4.1 45 5.5 45h37c1.4 0 2.5-1.1 2.5-2.5v-37C45 4.1 43.9 3 42.5 3h-37z"}),(0,s.jsx)("path",{d:"M14.2 14.4c2.5 0 4.5-2 4.5-4.5s-2-4.5-4.5-4.5-4.5 2-4.5 4.5 2 4.5 4.5 4.5zm0-6c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5.7-1.5 1.5-1.5zM21 27c-.1-1.3-.5-4.4-.6-6.8-.2-2.5-2.1-4.4-4.5-4.4h-3.6c-2.4 0-4.3 1.9-4.5 4.4-.1 2.3-.4 5.3-.6 6.7l-.1.7c-.1 1.5 1.2 2.6 2.2 3.3l.2 10.3c0 .8.7 1.5 1.5 1.5s1.5-.7 1.5-1.5L12.3 30c0-.6-.3-1.1-.9-1.3-.5-.3-1.1-.7-1.4-.9v-.4c.2-1.5.5-4.5.6-6.8 0-.8.6-1.6 1.5-1.6h3.6c.9 0 1.5.8 1.5 1.6.1 2.4.5 5.5.6 6.9v.4c-.2.3-.8.7-1.3.9-.5.2-.8.8-.9 1.3l-.2 11.2c0 .8.6 1.5 1.5 1.5.8 0 1.5-.7 1.5-1.5l.2-10.3c1.1-.6 2.4-1.8 2.2-3.3l.2-.7z"}),(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M30.2 15.6l2.6-2.3V20c0 .8.7 1.5 1.5 1.5s1.5-.7 1.5-1.5v-6.7l2.6 2.3c.3.3.6.4 1 .4s.8-.2 1.1-.5c.6-.6.5-1.6-.1-2.1l-5.1-4.5c-.1-.1-.3-.2-.4-.3h-.1c-.2-.1-.3-.1-.5-.1s-.3 0-.5.1h-.1c-.2.1-.3.1-.4.3l-5.1 4.5c-.6.6-.7 1.5-.1 2.1.5.6 1.4.7 2.1.1zM38.3 32.4l-2.6 2.3V28c0-.8-.7-1.5-1.5-1.5s-1.5.7-1.5 1.5v6.7l-2.6-2.3c-.6-.5-1.6-.5-2.1.1-.6.6-.5 1.6.1 2.1l5.1 4.5c.1.1.3.2.4.3h.1c.2.1.3.1.5.1s.3 0 .5-.1h.1c.2-.1.3-.1.4-.3l5.1-4.5c.6-.5.7-1.5.1-2.1-.5-.6-1.5-.7-2.1-.1z"})})]})}function x(e){let{className:l=""}=e;return(0,s.jsxs)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",viewBox:"0 0 48 48",className:l,children:[(0,s.jsx)("path",{d:"M39.8 24.2c-.6-.5-1.6-.4-2.1.2l-2.2 2.7-7.8-5.8c-.4-.3-.8-.4-1.2-.3l-9.2 2.1c-.5.1-1.1 0-1.6-.3s-.8-.8-.9-1.3l-.6-2.5 7.8-1.8c.8-.2 1.3-1 1.1-1.8-.2-.8-1-1.3-1.8-1.1l-7.8 1.8-1.1-4.8c-.2-.8-1-1.3-1.8-1.1-.8.2-1.3 1-1.1 1.8l2.4 10.3c.3 1.3 1.1 2.5 2.3 3.2 1.2.7 2.5 1 3.9.6l8.5-2 8.4 6.2c.3.2.6.3.9.3.4 0 .9-.2 1.2-.6l3.1-3.8c.3-.5.2-1.5-.4-2z"}),(0,s.jsx)("path",{d:"M26.5 29.1c-.8-.3-1.6 0-2 .8-1.4 3.3-4.3 5.8-7.8 6.6-2.9.7-5.9.2-8.4-1.4-2.5-1.6-4.3-4.1-5-7-1-4.2.5-8.5 3.9-11.2.6-.5.7-1.5.2-2.1-.5-.6-1.5-.7-2.1-.2C1.1 18-.8 23.6.4 28.8c.9 3.7 3.1 6.8 6.3 8.8 2.3 1.4 4.9 2.2 7.5 2.2 1.1 0 2.1-.1 3.2-.4 4.4-1 8.1-4.1 9.9-8.3.3-.8-.1-1.7-.8-2zM9.2 8.9c.3 0 .7 0 1-.1 2.4-.6 3.9-2.9 3.3-5.3C13.1 1.4 11.3 0 9.2 0c-.3 0-.7 0-1 .1-2.4.6-3.8 3-3.3 5.3.5 2.1 2.3 3.5 4.3 3.5zM8 3.7c.1-.2.4-.5.9-.7h.3c.7 0 1.3.5 1.4 1.1.1.5-.1.9-.2 1.1s-.4.5-.9.6h-.3c-.6.1-1.2-.4-1.4-1-.1-.5.1-.9.2-1.1z"}),(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M46.5 48h-45c-.8 0-1.4-.6-1.5-1.3-.1-.8.4-1.5 1.2-1.6l45-10c.4-.1.9 0 1.3.3s.6.7.6 1.2v10c-.1.7-.8 1.4-1.6 1.4zm-31.3-3H45v-6.6L15.2 45z"})})]})}function g(e){let{className:l=""}=e;return(0,s.jsxs)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",viewBox:"0 0 48 48",className:l,children:[(0,s.jsx)("path",{d:"M46.7 36.8c-.5-.7-1.5-.8-2.1-.3l-3.5 2.8-7.7-9c-.3-.3-.7-.5-1.1-.5H21.9c-1.6 0-2.8-1.3-2.8-2.8v-3.4H29c.8 0 1.5-.7 1.5-1.5s-.7-1.5-1.5-1.5h-9.9v-6.2c0-.8-.7-1.5-1.5-1.5s-1.5.7-1.5 1.5V27c0 3.2 2.6 5.8 5.8 5.8h9.6l8.2 9.6c.3.3.7.5 1.1.5.3 0 .6-.1.9-.3l4.6-3.6c.8-.6.9-1.5.4-2.2z"}),(0,s.jsx)("path",{d:"M30.9 39c-.7-.5-1.6-.3-2.1.3-2.6 3.6-6.7 5.7-11.1 5.7C10.1 45 4 38.9 4 31.3c0-5.3 3-10 7.7-12.3.7-.4 1.1-1.3.7-2-.4-.7-1.3-1.1-2-.7C4.7 19.1 1 25 1 31.3 1 40.5 8.5 48 17.7 48c5.3 0 10.4-2.6 13.5-6.9.5-.7.4-1.6-.3-2.1zM17.6 10.7c2.9 0 5.3-2.4 5.3-5.3S20.5 0 17.6 0s-5.3 2.4-5.3 5.3 2.4 5.4 5.3 5.4zm0-7.7c1.3 0 2.3 1 2.3 2.3 0 1.3-1 2.3-2.3 2.3-1.3 0-2.3-1-2.3-2.3 0-1.3 1-2.3 2.3-2.3z"})]})}function p(e){let{className:l=""}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",className:l,children:(0,s.jsx)("path",{d:"M37.5 26.9c0-2.7-3.9-4.1-8-4.6v-2.6h2.6c1.8 0 3.4-1.4 3.6-3.1L37.3 4c.1-1-.2-2-.9-2.8C35.8.4 34.8 0 33.7 0H14.3c-1 0-2 .4-2.7 1.2-.7.8-1.1 1.8-.9 2.8l1.6 12.4c.2 1.8 1.8 3.2 3.6 3.2h2.6v2.6c-4.1.6-8 1.9-8 4.6 0 .2 0 5.3 2.8 8.3.9.9 1.8 1.7 2.6 2.4.5.4 1 .8 1.3 1.1.3.3.5.8.5 1.2l-.8 4.2c-.1 1 .2 2 .9 2.8.7.8 1.7 1.2 2.7 1.2h6.9c1 0 2-.4 2.7-1.2.7-.8 1-1.8.9-2.9l-.7-4c-.1-.5.1-1 .5-1.3.3-.3.8-.7 1.3-1.1.8-.7 1.7-1.5 2.6-2.4 2.8-2.9 2.8-8 2.8-8.2zM15.3 16.1L13.6 3.6c0-.2.1-.4.1-.4.1-.1.3-.2.6-.2h19.5c.3 0 .4.1.5.2.1.1.2.2.1.4L32.8 16c0 .3-.3.5-.6.5H15.9c-.3.1-.6-.1-.6-.4zm6.2 3.5h5v2.3c-.9-.1-1.7-.1-2.5-.1s-1.6 0-2.5.1v-2.3zm2.5 5.2c6.2 0 9.7 1.4 10.4 2.1-.7.7-4.2 2.1-10.4 2.1s-9.7-1.4-10.4-2.1c.7-.7 4.2-2.1 10.4-2.1zm6.1 10.4c-.6.5-1.1.9-1.5 1.3-1 1-1.5 2.4-1.3 3.8l.7 4c0 .2-.1.3-.1.4-.1.1-.2.2-.5.2h-6.9c-.3 0-.4-.1-.5-.2-.1-.1-.2-.2-.2
1-.3l.7-4.1c.2-1.4-.3-2.8-1.3-3.8-.4-.4-.9-.8-1.5-1.3-.8-.6-1.6-1.4-2.4-2.2-.7-.7-1.1-1.6-1.4-2.6 2.9 1.1 7 1.5 9.9 1.5s7-.4 9.9-1.5c-.3.9-.7 1.9-1.4 2.6-.5.9-1.4 1.6-2.2 2.2z",fill:"#010202"})})}function j(e){let{className:l=""}=e;return(0,s.jsxs)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",viewBox:"0 0 48 48",className:l,children:[(0,s.jsx)("path",{d:"M44.6 36.6l-3.5 2.8-7.7-9c-.3-.3-.7-.5-1.1-.5H20.9c-1.6 0-2.8-1.3-2.8-2.8v-3.4H28c.8 0 1.5-.7 1.5-1.5s-.7-1.5-1.5-1.5h-9.9v-6.2c0-.8-.7-1.5-1.5-1.5s-1.5.7-1.5 1.5v12.6c0 3.2 2.6 5.8 5.8 5.8h10.6l8.2 9.6c.3.3.7.5 1.1.5.3 0 .6-.1.9-.3l4.6-3.6c.7-.5.8-1.5.3-2.1-.4-.8-1.3-.9-2-.4z"}),(0,s.jsx)("path",{d:"M29.9 39c-.7-.5-1.6-.3-2.1.3-2.6 3.6-6.7 5.7-11.1 5.7C9.1 45 3 38.9 3 31.3c0-5.3 3-10 7.7-12.3.7-.4 1.1-1.3.7-2-.4-.7-1.3-1.1-2-.7C3.7 19.1 0 25 0 31.3 0 40.5 7.5 48 16.7 48c5.3 0 10.4-2.6 13.5-6.9.5-.7.4-1.6-.3-2.1zM16.6 10.7c2.9 0 5.3-2.4 5.3-5.3S19.5 0 16.6 0s-5.3 2.4-5.3 5.3 2.4 5.4 5.3 5.4zm0-7.7c1.3 0 2.3 1 2.3 2.3 0 1.3-1 2.3-2.3 2.3-1.3 0-2.3-1-2.3-2.3 0-1.3 1-2.3 2.3-2.3zM28 16.1h2.1c.1 0 .1 0 .1-.1l1.5-6.3 1.5 6.3c0 .1.1.1.1.1h2.1c.1 0 .1 0 .1-.1l2.3-10.4v-.1l-.1-.1h-2.1c-.1 0-.1.1-.1.1l-1.3 6.7-1.5-6.7c0-.1-.1-.1-.1-.1h-1.8c-.1 0-.1 0-.1.1l-1.5 6.7L28 5.6c0-.1-.1-.1-.1-.1h-2.1s-.1 0-.1.1v.1L27.9 16c0 .1 0 .1.1.1zM47.8 12.4h-2.1c-.1 0-.1.1-.2.1 0 .6-.2 1-.5 1.3-.3.3-.8.4-1.4.4-.7 0-1.2-.2-1.5-.7-.3-.5-.5-1.3-.5-2.4v-.8c0-1 .2-1.8.5-2.3.3-.5.8-.7 1.5-.7.6 0 1.1.1 1.4.4.3.3.5.7.5 1.4 0 .1.1.1.2.1h2.2v-.1c-.1-1.2-.6-2.1-1.3-2.8-.8-.7-1.8-1-3-1-.9 0-1.7.2-2.4.6-.7.4-1.2 1-1.6 1.8-.4.8-.5 1.7-.5 2.7v.6c0 1.6.4 2.9 1.2 3.8.8.9 1.9 1.4 3.2 1.4 1.2 0 2.3-.3 3-1 .8-.7 1.2-1.6 1.3-2.7v-.1c.1 0 .1 0 0 0z"})]})}function f(e){let{className:l=""}=e;return(0,s.jsxs)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",viewBox:"0 0 48 48",className:l,children:[(0,s.jsx)("path",{d:"M24 32.8c4.4 0 7.9-3.6 7.9-7.9v-17C31.9 3.6 28.4 0 24 0s-7.9 3.6-7.9 7.9v16.9c0 4.4 3.5 8 7.9 8zM19.1 7.9C19.1 5.2 21.3 3 24 3s4.9 2.2 4.9 4.9v16.9c0 2.7-2.2 4.9-4.9 4.9s-4.9-2.2-4.9-4.9V7.9z"}),(0,s.jsx)("path",{d:"M36 19.1c-.8 0-1.5.7-1.5 1.5v4.8c0 5.8-4.7 10.5-10.5 10.5s-10.5-4.7-10.5-10.5v-4.8c0-.8-.7-1.5-1.5-1.5s-1.5.7-1.5 1.5v4.8c0 6.9 5.3 12.7 12 13.4v7.7c0 .8.7 1.5 1.5 1.5s1.5-.7 1.5-1.5v-7.7c6.7-.7 12-6.5 12-13.4v-4.8c0-.8-.7-1.5-1.5-1.5z"})]})}function w(e){let{className:l=""}=e;return(0,s.jsxs)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",viewBox:"0 0 48 48",className:l,children:[(0,s.jsx)("path",{d:"M24 0C14.5 0 6.7 7.8 6.7 17.3c0 .8.7 1.5 1.5 1.5s1.5-.7 1.5-1.5C9.7 9.4 16.1 3 24 3s14.3 6.4 14.3 14.3c0 2.8-.8 5.6-2.4 7.9-.8 1.1-3.2 3.9-4.5 4.9-2.2 1.8-3.5 5.6-3.8 7.5-.2.8-1.6 7.4-8.6 7.4-2.4 0-4.6-.9-6.8-2.6-.6-.5-1.6-.4-2.1.2-.5.6-.4 1.6.2 2.1C13.1 46.9 16 48 19 48c7.6 0 10.8-6.2 11.5-9.8.4-2 1.5-4.7 2.8-5.7 1.9-1.5 4.9-5.3 5-5.5l.1-.1c1.9-2.9 2.9-6.2 2.9-9.6C41.3 7.8 33.5 0 24 0z"}),(0,s.jsx)("path",{d:"M28.5 23.7c-.7.5-.8 1.4-.4 2.1.5.7 1.4.8 2.1.4 2.8-2 4.5-5.3 4.5-8.8 0-6-4.8-10.8-10.8-10.8-5.9 0-10.6 4.7-10.8 10.8v.5c-.1 2.2-.2 5.5 1.7 8.7.3.5.8.7 1.3.7.3 0 .5-.1.8-.2.7-.4.9-1.4.5-2.1-1.4-2.4-1.3-5.1-1.3-7v-.5c.1-4.4 3.6-7.9 7.8-7.9 4.3 0 7.8 3.5 7.8 7.8.1 2.4-1.1 4.8-3.2 6.3z"}),(0,s.jsx)("path",{d:"M14.6 33.2c3.8 0 10.2 0 10.6-4.5.2-2-1.3-4.6-4.4-7.6-.6-.6-1.5-.6-2.1 0-.6.6-.6 1.5 0 2.1 2.5 2.5 3.6 4.4 3.5 5.2-.1 1.8-5.6 1.8-7.6 1.8-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5z"})]})}var b=a(39826),y=a(28499),z=a(46799),N=a(96515),M=a.n(N);function C(e){let{object:l}=e,{lat:a,lng:t}=l.coordinates;if(!a||!t)return null;let r="https://www.google.com/maps/search/?api=1&query="+a+","+t;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:M().map,children:(0,s.jsx)("div",{className:"inner-wrapper",children:(0,s.jsx)(y.ZP,{className:"relative",bootstrapURLKeys:{key:"AIzaSyCW6-0ePU8pRlbrzRMeBumaniIYvqrJGpc",region:"SE",language:"sv"},center:{lng:t,lat:a},zoom:9,options:{styles:z.Z,fullscreenControl:!1,disableDoubleClickZoom:!0,zoomControl:!0,disableDefaultUI:!0},yesIWantToUseGoogleMapApiInternals:!0,disableDoubleClickZoom:!0,children:(0,s.jsx)(_,{lng:t,lat:a})})})}),(0,s.jsx)("a",{href:r,target:"_blank",rel:"noreferrer",children:"Visa plats p\xe5 Google Maps"})]})}let _=()=>(0,s.jsx)("div",{className:"marker"});var k=a(93967),L=a.n(k);function A(e){let{block:l,settings:a}=e,t=(0,c.gt)();return(0,s.jsx)(m.Z,{width:"bleed",gap:"small",block:l,className:"meta-wrapper",children:(0,s.jsxs)("div",{className:"inner
1-wrapper",children:[(0,s.jsx)(B,{object:t,settings:a}),(0,s.jsx)(S,{object:t,settings:a}),(0,s.jsx)(F,{object:t}),(0,s.jsx)(E,{object:t}),(0,s.jsx)(T,{object:t})]})})}let B=e=>{var l,a;let{object:t,settings:n,renderButton:i=!0}=e,o=(0,c.bp)(),[h,d]=(0,r.useState)(!0),m=()=>{if(!o.checkoutFormRef.current)return;let e=o.checkoutFormRef.current.getBoundingClientRect(),l=o.checkoutFormRef.current.offsetTop<window.scrollY+e.height;d(!(window.scrollY>100)||l||!(null==n?void 0:n.active))};(0,r.useEffect)(()=>(window.addEventListener("scroll",m,{passive:!0}),()=>{window.removeEventListener("scroll",m)}),[]);let u=()=>{let e=document.getElementById("header"),l=o.checkoutFormRef.current.offsetTop;window.scrollTo({top:l-e.offsetHeight-30,behavior:"smooth"})},v=[{label:"Datum",value:[t.meta.dateString]},{label:"Tid",value:[t.meta.timeString]},{label:"Plats",value:[null===(l=t.meta.location)||void 0===l?void 0:l.address,null===(a=t.meta.location)||void 0===a?void 0:a.city]},{label:1===Array.from(t.meta.categories).length?"Kategori":"Kategorier",value:t.meta.categories}].filter(e=>(e.value=e.value.filter(Boolean).join(", ").trim(),String(e.value).length>0));return 0===v.length?null:(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{children:"Information"}),(0,s.jsx)("ul",{children:v.map((e,l)=>(0,s.jsxs)("li",{children:[(0,s.jsxs)("span",{className:"label",children:[e.label,":"]}),(0,s.jsx)("span",{className:"text",children:e.value})]},"info-"+l))}),i&&(null==n?void 0:n.active)&&(0,s.jsx)("div",{className:L()(["button-wrapper",{"hide-button":h}]),children:(0,s.jsx)(b.Z,{ariaLabel:"Anm\xe4l dig",theme:"green",onClick:()=>u(),children:"Anm\xe4l dig"})}),(0,s.jsx)(Z,{})]})},S=e=>{var l;let{object:a,settings:t}=e,c=[{label:"M\xe5lgrupp",url:!1,value:[a.meta.ageGroup]},{label:"Antal platser",url:!1,value:[a.meta.signup.maxParticipants]},{label:"Antal lediga platser",url:!1,value:t.active&&t.max>0&&t.available>0?[t.available]:[]},{label:"Anm\xe4lan st\xe4nger",url:!1,value:[a.meta.signup.openUntil]},{label:"Medlemskap kr\xe4vs",url:!1,value:[a.meta.signup.membership?"Ja":"Nej"]},{label:"Arrang\xf6r",url:!0,value:a.meta.organizers.list},{label:"Medverkar",url:!1,value:[null===(l=a.meta)||void 0===l?void 0:l.people]},{label:"Pris",value:[I(a)]}].filter(e=>{var l;return!!e.url||(e.value=e.value.filter(Boolean).join(null!==(l=null==e?void 0:e.join)&&void 0!==l?l:", "),String(e.value).length>0)});return(0,s.jsx)("section",{children:(0,s.jsx)("ul",{children:c.map((e,l)=>(0,s.jsxs)("li",{children:[(0,s.jsxs)("span",{className:"label",children:[e.label,":"]}),(0,s.jsxs)("span",{className:"text",children:[e.url&&e.value.map((l,a)=>(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)(o(),{href:l.url,prefetch:!1,children:l.label}),a<e.value.length-1&&", "]},l.label)),!e.url&&e.value]})]},e+l))})})},T=e=>{var l,a;let{object:t}=e,{location:r}=t.meta,c=[(null!==(l=null==r?void 0:r.address)&&void 0!==l?l:"").trim(),(null!==(a=null==r?void 0:r.city)&&void 0!==a?a:"").trim()].filter(Boolean),n=[r.gatheringAddress,r.gatheringPlace,r.gatheringDescription].filter(Boolean);return 0===c.length&&0===n.length?null:(0,s.jsxs)("section",{className:"location",children:[(0,s.jsx)("h2",{className:"",children:"Hitta hit"}),c.length>0&&(0,s.jsx)("ul",{children:c.map((e,l)=>(0,s.jsx)("li",{children:e},"gathering-row-".concat(l)))}),n.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("strong",{children:"Samlingsplats: "}),n.join(", ")]}),(0,s.jsx)(C,{object:t})]})},E=e=>{let{object:l}=e;return l.meta.contact.name?(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{children:"Kontaktperson"}),(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{children:l.meta.contact.name}),(0,s.jsx)("li",{className:"email",children:(0,s.jsx)("a",{href:"mailto:"+l.meta.contact.email+"?subject="+l.title,children:l.meta.contact.email})}),(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:"tel:"+l.meta.contact.phone,children:l.meta.contact.phone})})]})]}):null},F=e=>{let{object:l}=e;if(0===l.meta.accessability.length)return null;let a=e=>{var l;let{name:a}=e;return null!==(l=({elevator:(0,s.jsx)(v,{className:"w-7"}),ramp:(0,s.jsx)(x,{className:"w-7"}),wheelchair:(0,s.jsx)(g,{className:"w-7"}),toilet:(0,s.jsx)(p,{className:"w-7"}),"toilet-alt":(0,s.jsx)(j,{className:"w-7"}),microphone:(0,s.jsx)(f,{className:"w-7"}),"hearing-aid":(0,s.jsx)(w,{className:"w-7"})})[a])&&void 0!==l?l:null},t=l.meta.accessability.map((e,l)=>(0,s.jsxs)("li",{children:[(0,s.jsx)("div",{className:"circle",children:(0,s.jsx)("div",{className:"icon",children:(0,s.jsx)(a,{name:e.icon})})}),(0,s.jsx)("span",{children:e.label})]},"access-"+l));return(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{children:"Tillg\xe4nglighet"}),(0,s.jsx)("ul",{className:"with-icons",children:t})]})},I=e=>{let{price:l,priceMember:a,priceType:s}=e.meta.signup;if(0===l)return[s];let t=[];return l>0&&t.push("".concat(l," SEK")),null!==a&&a<l&&(0===a?t.push("(gratis f\xf6r medlemmar)"):t.push("(".concat(a," SEK f\xf6r medlemmar)"))),t.join(" ")},Z=()=>{let{hasMounted:e,isLoggedIn:l,token:a,isLoading:i,menuItems:m,events:v}=(0,n.K)(),x=(0,r.useRef)(),g=(0,c.gt)(),[p,j]=(0,r.useState)(!1),[f,w]=(0,r.useState)(!1),[y,z]=(0,r.useState)(""),N=(0,d.m4)();if((0,r.useEffect)(()=>{var e;j((null!==(e=null==v?void 0:v.favorites)&&void 0!==e?e:[]).includes(g.activityId))},[v]),!N||!e&&!l&&!i)return null;
1let M=i?"Laddar":p?"Favoritmarkerad":"Favoritmarkera",C=m.find(e=>!0===e.props.isEvents),_=async()=>{z("");let e={...v};e.favorites=Array.isArray(e.favorites)?e.favorites:[],p?e.favorites=[...v.favorites.filter(e=>e!==g.activityId)]:e.favorites.push(g.activityId),e.favorites=[...new Set(e.favorites)].sort((e,l)=>e-l),w(!0);let l=await x.current.executeAsync();(await (0,h.eA)(a,l,{events:e})).status&&(w(!1),j(!p),z(p?"removed":"added"))};return(0,s.jsxs)("div",{className:"favorite-event",children:[(0,s.jsx)(t.Z,{className:"hidden",ref:x,size:"invisible",sitekey:"6LfnO-EZAAAAABp9dQVj270c22tONNMSySMaBj6F"}),(0,s.jsxs)(b.Z,{theme:"lime",disabled:i||f,className:L()({"is-favorite":p}),onClick:_,ariaLabel:M,loading:f||i,children:[(0,s.jsx)("div",{className:"circle",children:p&&(0,s.jsx)(u,{})}),M]}),"removed"===y&&(0,s.jsx)("p",{children:"Borttagen fr\xe5n favoriter"}),"added"===y&&C.url&&(0,s.jsxs)("p",{children:["Evenemanget \xe4r tillagt i"," ",(0,s.jsx)(o(),{href:C.url+"?tab=member",prefetch:!1,legacyBehavior:!0,children:(0,s.jsx)("a",{children:"din kalender"})})]})]})}},46799:function(e,l,a){"use strict";a.d(l,{Z:function(){return s}});let s=[{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#ababab"},{weight:3}]},{featureType:"landscape.man_made",elementType:"geometry.fill",stylers:[{color:"#d0e1d5"}]},{featureType:"landscape.natural",elementType:"geometry.fill",stylers:[{color:"#a0d5ae"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#fdefc7"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#f2b639"},{weight:1}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#8cb5f6"}]}]},96515:function(e){e.exports={main:"calendar-single_main__4EqC3",crumbs:"calendar-single_crumbs__nFUYu",map:"calendar-single_map__99h0n",hero:"calendar-single_hero__99_nz",form:"calendar-single_form__rbceU",meta:"calendar-single_meta__daQdY",related:"calendar-single_related__fCXPP"}}}]);
2//# sourceMappingURL=5283.d9c1f9fd3b759e5d.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.