(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[834],{6542:function(e,t,o){Promise.resolve().then(o.bind(o,9050)),Promise.resolve().then(o.bind(o,7283))},9050:function(e,t,o){"use strict";o.d(t,{StaggeredStack:function(){return r}});var a=o(7437),d=o(6755),l=o(2265);let r=e=>{let{children:t}=e,o={hidden:{opacity:0,y:50},visible:e=>({opacity:1,y:0,transition:{delay:.1*e,duration:.2}})};return l.Children.map(t,(e,t)=>(0,a.jsx)(d.E.div,{custom:t,initial:"hidden",animate:"visible",variants:o,children:e},"v_".concat(t)))}},7283:function(e,t,o){"use strict";o.d(t,{Chart:function(){return S}});var a=o(7437),d=o(2265),l=o(7704),r=o(6940),s=o(7059),i=o(9349),n=o(3448);let c=d.forwardRef((e,t)=>{let{className:o,...d}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",o),...d})});c.displayName="Card";let m=d.forwardRef((e,t)=>{let{className:o,...d}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",o),...d})});m.displayName="CardHeader",d.forwardRef((e,t)=>{let{className:o,...d}=e;return(0,a.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",o),...d})}).displayName="CardTitle";let p=d.forwardRef((e,t)=>{let{className:o,...d}=e;return(0,a.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",o),...d})});p.displayName="CardDescription";let b=d.forwardRef((e,t)=>{let{className:o,...d}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",o),...d})});b.displayName="CardContent",d.forwardRef((e,t)=>{let{className:o,...d}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",o),...d})}).displayName="CardFooter";var u=o(7625),k=o(8147),f=o(2190);let h={light:"",dark:".dark"},x=d.createContext(null);function v(){let e=d.useContext(x);if(!e)throw Error("useChart must be used within a <ChartContainer />");return e}let g=d.forwardRef((e,t)=>{let{id:o,className:l,children:r,config:s,...i}=e,c=d.useId(),m="chart-".concat(o||c.replace(/:/g,""));return(0,a.jsx)(x.Provider,{value:{config:s},children:(0,a.jsxs)("div",{"data-chart":m,ref:t,className:(0,n.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",l),...i,children:[(0,a.jsx)(j,{id:m,config:s}),(0,a.jsx)(u.h,{children:r})]})})});g.displayName="Chart";let j=e=>{let{id:t,config:o}=e,d=Object.entries(o).filter(e=>{let[t,o]=e;return o.theme||o.color});return d.length?(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(h).map(e=>{let[o,a]=e;return"\n".concat(a," [data-chart=").concat(t,"] {\n").concat(d.map(e=>{var t;let[a,d]=e,l=(null===(t=d.theme)||void 0===t?void 0:t[o])||d.color;return l?"  --color-".concat(a,": ").concat(l,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},y=k.u,N=d.forwardRef((e,t)=>{let{active:o,payload:l,className:r,indicator:s="dot",hideLabel:i=!1,hideIndicator:c=!1,label:m,labelFormatter:p,labelClassName:b,formatter:u,color:k,nameKey:f,labelKey:h}=e,{config:x}=v(),g=d.useMemo(()=>{var e;if(i||!(null==l?void 0:l.length))return null;let[t]=l,o="".concat(h||t.dataKey||t.name||"value"),d=w(x,t,o),r=h||"string"!=typeof m?null==d?void 0:d.label:(null===(e=x[m])||void 0===e?void 0:e.label)||m;return p?(0,a.jsx)("div",{className:(0,n.cn)("font-medium",b),children:p(r,l)}):r?(0,a.jsx)("div",{className:(0,n.cn)("font-medium",b),children:r}):null},[m,p,l,i,b,x,h]);if(!o||!(null==l?void 0:l.length))return null;let j=1===l.length&&"dot"!==s;return(0,a.jsxs)("div",{ref:t,className:(0,n.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[j?null:g,(0,a.jsx)("div",{className:"grid gap-1.5",children:l.map((e,t)=>{let o="".concat(f||e.name||e.dataKey||"value"),d=w(x,e,o),l=k||e.payload.fill||e.color;return(0,a.jsx)("div",{className:(0,n.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===s&&"items-center"),children:u&&(null==e?void 0:e.value)!==void 0&&e.name?u(e.value,e.name,e,t,e.payload):(0,a.jsxs)(a.Fragment,{children:[(null==d?void 0:d.icon)?(0,a.jsx)(d.icon,{}):!c&&(0,a.jsx)("div",{className:(0,n.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===s,"w-1":"line"===s,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===s,"my-0.5":j&&"dashed"===s}),style:{"--color-bg":l,"--color-border":l}}),(0,a.jsxs)("div",{className:(0,n.cn)("flex flex-1 justify-between leading-none",j?"items-end":"items-center"),children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[j?g:null,(0,a.jsx)("span",{className:"text-muted-foreground",children:(null==d?void 0:d.label)||e.name})]}),e.value&&(0,a.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function w(e,t,o){if("object"!=typeof t||null===t)return;let a="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0,d=o;return o in t&&"string"==typeof t[o]?d=t[o]:a&&o in a&&"string"==typeof a[o]&&(d=a[o]),d in e?e[d]:e[o]}N.displayName="ChartTooltip",f.D,d.forwardRef((e,t)=>{let{className:o,hideIcon:d=!1,payload:l,verticalAlign:r="bottom",nameKey:s}=e,{config:i}=v();return(null==l?void 0:l.length)?(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center justify-center gap-4","top"===r?"pb-3":"pt-3",o),children:l.map(e=>{let t="".concat(s||e.dataKey||"value"),o=w(i,e,t);return(0,a.jsxs)("div",{className:(0,n.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==o?void 0:o.icon)&&!d?(0,a.jsx)(o.icon,{}):(0,a.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==o?void 0:o.label]},e.value)})}):null}).displayName="ChartLegend";let _=[{date:"2024-04-01",desktop:222,mobile:150},{date:"2024-04-02",desktop:97,mobile:180},{date:"2024-04-03",desktop:167,mobile:120},{date:"2024-04-04",desktop:242,mobile:260},{date:"2024-04-05",desktop:373,mobile:290},{date:"2024-04-06",desktop:301,mobile:340},{date:"2024-04-07",desktop:245,mobile:180},{date:"2024-04-08",desktop:409,mobile:320},{date:"2024-04-09",desktop:59,mobile:110},{date:"2024-04-10",desktop:261,mobile:190},{date:"2024-04-11",desktop:327,mobile:350},{date:"2024-04-12",desktop:292,mobile:210},{date:"2024-04-13",desktop:342,mobile:380},{date:"2024-04-14",desktop:137,mobile:220},{date:"2024-04-15",desktop:120,mobile:170},{date:"2024-04-16",desktop:138,mobile:190},{date:"2024-04-17",desktop:446,mobile:360},{date:"2024-04-18",desktop:364,mobile:410},{date:"2024-04-19",desktop:243,mobile:180},{date:"2024-04-20",desktop:89,mobile:150},{date:"2024-04-21",desktop:137,mobile:200},{date:"2024-04-22",desktop:224,mobile:170},{date:"2024-04-23",desktop:138,mobile:230},{date:"2024-04-24",desktop:387,mobile:290},{date:"2024-04-25",desktop:215,mobile:250},{date:"2024-04-26",desktop:75,mobile:130},{date:"2024-04-27",desktop:383,mobile:420},{date:"2024-04-28",desktop:122,mobile:180},{date:"2024-04-29",desktop:315,mobile:240},{date:"2024-04-30",desktop:454,mobile:380},{date:"2024-05-01",desktop:165,mobile:220},{date:"2024-05-02",desktop:293,mobile:310},{date:"2024-05-03",desktop:247,mobile:190},{date:"2024-05-04",desktop:385,mobile:420},{date:"2024-05-05",desktop:481,mobile:390},{date:"2024-05-06",desktop:498,mobile:520},{date:"2024-05-07",desktop:388,mobile:300},{date:"2024-05-08",desktop:149,mobile:210},{date:"2024-05-09",desktop:227,mobile:180},{date:"2024-05-10",desktop:293,mobile:330},{date:"2024-05-11",desktop:335,mobile:270},{date:"2024-05-12",desktop:197,mobile:240},{date:"2024-05-13",desktop:197,mobile:160},{date:"2024-05-14",desktop:448,mobile:490},{date:"2024-05-15",desktop:473,mobile:380},{date:"2024-05-16",desktop:338,mobile:400},{date:"2024-05-17",desktop:499,mobile:420},{date:"2024-05-18",desktop:315,mobile:350},{date:"2024-05-19",desktop:235,mobile:180},{date:"2024-05-20",desktop:177,mobile:230},{date:"2024-05-21",desktop:82,mobile:140},{date:"2024-05-22",desktop:81,mobile:120},{date:"2024-05-23",desktop:252,mobile:290},{date:"2024-05-24",desktop:294,mobile:220},{date:"2024-05-25",desktop:201,mobile:250},{date:"2024-05-26",desktop:213,mobile:170},{date:"2024-05-27",desktop:420,mobile:460},{date:"2024-05-28",desktop:233,mobile:190},{date:"2024-05-29",desktop:78,mobile:130},{date:"2024-05-30",desktop:340,mobile:280},{date:"2024-05-31",desktop:178,mobile:230},{date:"2024-06-01",desktop:178,mobile:200},{date:"2024-06-02",desktop:470,mobile:410},{date:"2024-06-03",desktop:103,mobile:160},{date:"2024-06-04",desktop:439,mobile:380},{date:"2024-06-05",desktop:88,mobile:140},{date:"2024-06-06",desktop:294,mobile:250},{date:"2024-06-07",desktop:323,mobile:370},{date:"2024-06-08",desktop:385,mobile:320},{date:"2024-06-09",desktop:438,mobile:480},{date:"2024-06-10",desktop:155,mobile:200},{date:"2024-06-11",desktop:92,mobile:150},{date:"2024-06-12",desktop:492,mobile:420},{date:"2024-06-13",desktop:81,mobile:130},{date:"2024-06-14",desktop:426,mobile:380},{date:"2024-06-15",desktop:307,mobile:350},{date:"2024-06-16",desktop:371,mobile:310},{date:"2024-06-17",desktop:475,mobile:520},{date:"2024-06-18",desktop:107,mobile:170},{date:"2024-06-19",desktop:341,mobile:290},{date:"2024-06-20",desktop:408,mobile:450},{date:"2024-06-21",desktop:169,mobile:210},{date:"2024-06-22",desktop:317,mobile:270},{date:"2024-06-23",desktop:480,mobile:530},{date:"2024-06-24",desktop:132,mobile:180},{date:"2024-06-25",desktop:141,mobile:190},{date:"2024-06-26",desktop:434,mobile:380},{date:"2024-06-27",desktop:448,mobile:490},{date:"2024-06-28",desktop:149,mobile:200},{date:"2024-06-29",desktop:103,mobile:160},{date:"2024-06-30",desktop:446,mobile:400}],C={views:{label:"Page Views"},desktop:{label:"Desktop",color:"hsl(var(--chart-1))"},mobile:{label:"Mobile",color:"hsl(var(--chart-2))"}};function S(){let[e,t]=d.useState("desktop"),o=d.useMemo(()=>({desktop:_.reduce((e,t)=>e+t.desktop,0),mobile:_.reduce((e,t)=>e+t.mobile,0)}),[]);return(0,a.jsxs)(c,{className:"shadow-none backdrop-blur-lg bg-white/40 rounded-sm",children:[(0,a.jsxs)(m,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,a.jsx)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:(0,a.jsx)(p,{children:"Sj\xe1\xf0u g\xf6gn um notkun \xe1 vefverzluninni \xfeinni \xed raunt\xedma. T\xf6lfr\xe6\xf0in hj\xe1lpar \xfe\xe9r a\xf0 taka r\xe9ttar \xe1kvarna\xf0ir \xed rekstri og s\xf6mulei\xf0is notendum ad finna r\xe9ttu v\xf6runa med tilliti til fyrri notkunar."})}),(0,a.jsx)("div",{className:"flex",children:["desktop","mobile"].map(d=>(0,a.jsxs)("button",{"data-active":e===d,className:"relative z-30 flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>t(d),children:[(0,a.jsx)("span",{className:"text-xs text-muted-foreground",children:C[d].label}),(0,a.jsx)("span",{className:"text-lg font-bold leading-none sm:text-3xl",children:o[d].toLocaleString().replace(",",".")})]},d))})]}),(0,a.jsx)(b,{className:"px-2 sm:p-6",children:(0,a.jsx)(g,{config:C,className:"aspect-auto h-[250px] w-full",children:(0,a.jsxs)(l.v,{accessibilityLayer:!0,data:_,margin:{left:12,right:12},children:[(0,a.jsx)(r.q,{vertical:!1}),(0,a.jsx)(s.K,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric"})}),(0,a.jsx)(y,{content:(0,a.jsx)(N,{className:"w-[150px]",nameKey:"views",labelFormatter:e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})}),(0,a.jsx)(i.$,{dataKey:e,fill:"var(--color-".concat(e,")")})]})})})]})}},3448:function(e,t,o){"use strict";o.d(t,{cn:function(){return l}});var a=o(1994),d=o(3335);function l(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return(0,d.m6)((0,a.W)(t))}}},function(e){e.O(0,[755,137,464,971,117,744],function(){return e(e.s=6542)}),_N_E=e.O()}]);