1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2426],{86884:function(){},6070:function(e,t,n){"use strict";n.d(t,{LocaleProvider:function(){return u},b:function(){return f}});var o=n(83890),a=n(58496),r=n(88779),s=n(7020);let i="redd:pathnamechange";function c(e){window.addEventListener("popstate",e);let t=window;if(!t.__reddHistoryPatched){let e=history.pushState.bind(history),n=history.replaceState.bind(history),o=()=>window.dispatchEvent(new Event(i));history.pushState=function(){for(var t=arguments.length,n=Array(t),a=0;a<t;a++)n[a]=arguments[a];let r=e(...n);return o(),r},history.replaceState=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];let r=n(...t);return o(),r},t.__reddHistoryPatched=!0}return window.addEventListener(i,e),()=>{window.removeEventListener("popstate",e),window.removeEventListener(i,e)}}function d(){return window.location.pathname}let l=(0,a.createContext)(null);function u(e){let{children:t,isDanishDomain:n}=e,i=(0,r.usePathname)()||"/",u=(0,a.useSyncExternalStore)(c,d,()=>i)||i,f=(0,a.useMemo)(()=>{let e=n||u.startsWith("/da"),t=n?"":e?"/da":"";return{isDa:e,isDanishDomain:n,basePath:t,getLink:t=>(0,s.FT)(t,{isDa:e,isDanishDomain:n}),switchToLocale:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=(0,s.Ok)(u,e,{isDanishDomain:n,origin:window.location.origin},t,o);window.location.assign(a)}}},[n,u]);return(0,a.useEffect)(()=>{document.documentElement.lang=f.isDa?"da":"en"},[f.isDa]),(0,o.jsx)(l.Provider,{value:f,children:t})}function f(){let e=(0,a.useContext)(l);if(!e)throw Error("useLocale must be used within LocaleProvider");return e}},19083:function(e,t,n){"use strict";n.d(t,{d:function(){return c},z:function(){return d}});var o=n(83890),a=n(58496),r=n(59955),s=n(88898),i=n(71597);let c=(0,s.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background text-foreground shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/90",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-reddAccentBlue underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:n,variant:a,size:s,asChild:d=!1,...l}=e,u=d?r.g7:"button";return(0,o.jsx)(u,{className:(0,i.cn)(c({variant:a,size:s,className:n})),ref:t,...l})});d.displayName="Button"},39977:function(e,t,n){"use strict";n.d(t,{$F:function(){return u},AW:function(){return h},VD:function(){return v},Xi:function(){return m},_x:function(){return f},h_:function(){return l},qB:function(){return p}});var o=n(83890),a=n(58496),r=n(70640),s=n(46609),i=n(87824),c=n(97832),d=n(71597);let l=r.fC,u=r.xz;r.ZA,r.Uv,r.Tr;let f=r.Ee;a.forwardRef((e,t)=>{let{className:n,inset:a,children:i,...c}=e;return(0,o.jsxs)(r.fF,{ref:t,className:(0,d.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",a&&"pl-8",n),...c,children:[i,(0,o.jsx)(s.Z,{className:"ml-auto"})]})}).displayName=r.fF.displayName,a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,o.jsx)(r.tu,{ref:t,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...a})}).displayName=r.tu.displayName;let h=a.forwardRef((e,t)=>{let{className:n,sideOffset:a=4,...s}=e;return(0,o.jsx)(r.Uv,{children:(0,o.jsx)(r.VY,{ref:t,sideOffset:a,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...s})})});h.displayName=r.VY.displayName;let m=a.forwardRef((e,t)=>{let{className:n,inset:a,...s}=e;return(0,o.jsx)(r.ck,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",a&&"pl-8",n),...s})});m.displayName=r.ck.displayName,a.forwardRef((e,t)=>{let{className:n,children:a,checked:s,...c}=e;return(0,o.jsxs)(r.oC,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:s,...c,children:[(0,o.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,o.jsx)(r.wU,{children:(0,o.jsx)(i.Z,{className:"h-4 w-4"})})}),a]})}).displayName=r.oC.displayName;let p=a.forwardRef((e,t)=>{let{className:n,children:a,...s}=e;return(0,o.jsxs)(r.Rk,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...s,children:[(0,o.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,o.jsx)(r.wU,{children:(0,o.jsx)(c.Z,{className:"h-2 w-2 fill-current"})})}),a]})});p.displayName=r.Rk.displayName,a.forwardRef((e,t)=>{let{className:n,inset:a,...s}=e;return(0,o.jsx)(r.__,{ref:t,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",n),...s})}).displayName=r.__.displayName;let v=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,o.jsx)(r.Z0,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",n),...a})});v.displayName=r.Z0.displayName},7020:function(e,t,n){"use strict";n.d(t,{FT:function(){return f},HJ:function(){return a},Ok:function(){return h}});var o=n(49952);let a="digitalevaner.dk",r=new Set([a,"www.".concat(a)]),s="reddfocus.org",i=new Set([s,"www.".concat(s)]),c="redskaber";function d(e){var t,n;return null!==(n=null==e?void 0:null===(t=e.split(":")[0])||void 0===t?void 0:t.toLowerCase())&&void 0!==n?n:null}function l(e){return"/da"===e?"/":e.startsWith("/da/")?e.slice(3)||"/":e}function u(e){return"/tools"===e?"/".concat(c):e.startsWith("/tools/")?"/".concat(c).concat(e.slice(6)):e}function f(e,t){let n=e.startsWith("/")?e:"/".concat(e);if(t.isDanishDomain){let e=n;return("/da"===n||n.startsWith("/da/"))&&(e=l(n)),u(e)}return t.isDa?"/da"===n||n.startsWith("/da/")?n:"/"===n?"/da":"/da".concat(n):n.startsWith("/da")?l(n):n}function h(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",m=l(e.startsWith("/")?e:"/".concat(e));if(!function(e){let t=d(e);return!!t&&(r.has(t)||i.has(t))}(d(new URL(n.origin).hostname))){let e=f(m,{isDa:"da"===t,isDanishDomain:n.isDanishDomain});return"".concat(n.origin).concat(e).concat(s).concat(h)}return"da"===t?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=l(e.startsWith("/")?e:"/".concat(e));return o=u(o),"https://".concat(a).concat(o).concat(t).concat(n)}(m,s,h):function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=l(e.startsWith("/")?e:"/".concat(e));return r=(t=r)==="/".concat(c)?"/tools":t.startsWith("/".concat(c,"/"))?"/tools".concat(t.slice("/".concat(c).length)):t,"".concat((0,o.fo)()).concat(r).concat(n).concat(a)}(m,s,h)}},49952:function(e,t,n){"use strict";n.d(t,{T7:function(){return c},fo:function(){return i},lB:function(){return r},vI:function(){return d}});var o=n(28070);let a="digitalhabits.org",r="https://".concat(a),s="https://".concat("apis.digitalhabits.org");function i(){var e;return(null===(e=o.env.NEXT_PUBLIC_SITE_ORIGIN)||void 0===e?void 0:e.replace(/\/$/,""))||"https://digitalhabits.org".replace(/\/$/,"")||r}function c(){var e,t;return null==(e=window.location.hostname)||null===(t=e.split(":")[0])||void 0===t||t.toLowerCase(),"https://apis.digitalhabits.org".replace(/\/$/,"")||s}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.startsWith("/")?e:e?"/".concat(e):"";return"".concat(a).concat(t)}}}]);
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.