PageSourceSearch

https://placera.se/_next/static/chunks/1sj_s5x7fbink.js

js placera.se collected 2026-09-24 17:14:22 UTC 22,348 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,899268,e=>{"use strict";var t,r=((t={}).Article="article",t.Telegram="telegram",t.PressRelease="pressrelease",t.ExternalAnalysis="externalanalysis",t);e.s(["SearchIndexType",()=>r])},355335,e=>{"use strict";var t=e.i(899352),r=e.i(676255),a=e.i(859771),i=e.i(447974),n=e.i(433019),s=e.i(619468),l=e.i(82077),o=e.i(347782),u=e.i(908267),d=e.i(975157),c=e.i(568992),h=e.i(761266),m=e.i(797078),f=e.i(169584),p=e.i(899268);let g=({article:e,className:r})=>{let a=(0,i.useRouter)();if(!e)return null;let{title:n,slug:l,ingress:g,image:x,categories:v,blurbTitle:y,blurbIngress:b,createdAt:j,doc:k}=e,w=v?.filter(e=>(0,d.isType)(e))??[],A=(()=>{switch(k?.relationTo){case p.SearchIndexType.Telegram:return`/telegram/${l}`;case p.SearchIndexType.PressRelease:return`/pressmeddelanden/${l}`;case p.SearchIndexType.ExternalAnalysis:return`/externa-analyser/${l}`;default:return`/${w[0]?.slug}/${l}`}})(),N=()=>{a.push(A)};return(0,t.jsxs)(h.motion.div,{initial:"initial",whileHover:"hover",className:(0,u.cn)("bg-surf-tertiary dark:bg-surf-tertiary-dark hover:bg-surf-tertiary-hover dark:hover:bg-surf-tertiary-hover-dark border-border dark:border-border-dark flex w-full flex-row-reverse gap-1 rounded-2xl border px-2 pt-2 pb-2 transition-colors","cursor-pointer",r),onClick:N,role:"link",tabIndex:0,onKeyPress:e=>{"Enter"===e.key&&N()},children:[x&&(0,t.jsx)("div",{className:"relative h-24 w-24 overflow-hidden rounded-lg lg:h-full lg:min-h-24 lg:w-40",children:(0,t.jsx)(h.motion.div,{className:"bg-surf-main dark:bg-surf-main-dark inset-0 h-full w-full",variants:{initial:{scale:1},hover:{scale:1.03}},transition:{duration:.8,ease:"easeOut"},inherit:!0,children:(0,d.isType)(x)&&(0,t.jsx)(m.ImageMedia,{image:x,className:"h-full",imgClassName:"object-cover rounded-lg",showCaption:!1,showPhotoCredit:!1,sizes:"(max-width: 768px) 33vw, 400px"})})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden px-2 py-2",children:[(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,t.jsx)(c.default,{categories:w}),(0,t.jsx)(f.default,{createdAt:j,withBulletPoint:!0})]}),(0,t.jsxs)(o.default,{href:A,onClick:e=>e.stopPropagation(),className:"group",tabIndex:-1,children:[(0,t.jsx)(s.Typography,{variant:"h3",children:y||n}),(b||g)&&(0,t.jsx)(s.Typography,{variant:"p",className:"text-text-muted line-clamp-2",children:b||g})]})]})]})},x=({user:e,className:r})=>{let a=(0,i.useRouter)();if(!e)return null;let{avatar:n}=e,l=`/skribenter/${e.slug||e.id}`,c=()=>{a.push(l)};return(0,t.jsxs)(h.motion.div,{initial:"initial",whileHover:"hover",className:(0,u.cn)("bg-surf-tertiary dark:bg-surf-tertiary-dark hover:bg-surf-tertiary-hover dark:hover:bg-surf-tertiary-hover-dark border-border dark:border-border-dark flex flex-row rounded-2xl border px-2 pt-2 pb-2 transition-colors","items-center","cursor-pointer",r),onClick:c,role:"link",tabIndex:0,onKeyPress:e=>{"Enter"===e.key&&c()},children:[n&&(0,t.jsx)("div",{className:"relative h-10 w-10 overflow-hidden rounded-full",children:(0,t.jsx)(h.motion.div,{className:"bg-surf-main dark:bg-surf-main-dark inset-0 h-full w-full",variants:{initial:{scale:1},hover:{scale:1.03}},transition:{duration:.8,ease:"easeOut"},inherit:!0,children:(0,d.isType)(n)&&(0,t.jsx)(m.ImageMedia,{image:n,className:"h-full",imgClassName:"object-cover rounded-lg",showCaption:!1,showPhotoCredit:!1,sizes:"(max-width: 768px) 33vw, 400px"})})}),(0,t.jsx)(o.default,{href:l,onClick:e=>e.stopPropagation(),className:"group px-4",tabIndex:-1,children:(0,t.jsx)(s.Typography,{variant:"h3",children:e.fullName})})]})};var v=e.i(161701),y=e.i(418254),b=e.i(480338);let j=({query:e,foundResults:r})=>(0,t.jsx)(s.Typography,{variant:"h4",className:"mb-4 text-start",children:r?`S\xf6kresultat f\xf6r "${e}"`:`Inga resultat hittades f\xf6r "${e}"`}),k={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.03}}},w={hidden:{opacity:0,x:"0rem"},visible:{opacity:1,x:"0rem",transition:{opacity:{duration:.3,ease:"easeInOut"},x:{type:"spring",stiffness:150,damping:15}}}},A=({currentCategory:e,currentQuery:r,availableCategories:a})=>(0,t.jsx)("div",{className:"-mx-4 mb-6 w-full px-4 md:mx-0 md:px-0",children:(0,t.jsx)(v.AnimatePresence,{children:(0,t.jsxs)(h.motion.div,{variants:k,initial:"hidden",animate:"visible",exit:"hidden",className:"flex w-full flex-wrap gap-1 md:gap-2",children:[(0,t.jsx)(h.motion.div,{variants:w,children:(0,t.jsx)(n.CategoryButton,{title:"Alla",isSelected:!e||"all"===e,slug:"all",currentQuery:r,isSearchLink:!0,counter:!1})}),a.map(({title:a,slug:i})=>(0,t.jsx)(h.motion.div,{variants:w,children:(0,t.jsx)(n.CategoryButton,{title:a,isSelected:e===i,slug:i,currentQuery:r,isSearchLink:!0,counter:!1})},i))]})})}),N=({results:e})=>{let r={hidden:{opacity:0,y:"-1rem"},visible:{opacity:1,y:0,transition:{opacity:{duration:.5,ease:"easeInOut"},y:{type:"spring",stiffness:150,damping:15}}}};return(0,t.jsx)(h.motion.div,{variants:{hidden:{opacity:0}
1,visible:{opacity:1,transition:{staggerChildren:.05}}},initial:"hidden",animate:"visible",exit:"hidden",className:"flex w-full flex-col gap-2",children:(0,t.jsx)(v.AnimatePresence,{children:e.map(e=>(0,t.jsx)(h.motion.div,{variants:r,children:(0,t.jsx)(g,{article:e})},`${e.doc.relationTo}-${e.doc.value}`))})})};e.s(["Search",0,({initialQuery:e="",initialResults:n,initialAuthorResults:o,currentCategory:u,availableCategories:d,initialSearchSource:c})=>{let[h,m]=(0,a.useState)(e),f=(0,i.useRouter)(),[p,g]=(0,a.useTransition)(),v=()=>{if(!h.trim())return;let e=(0,l.generateSearchUrl)({query:h});g(()=>{f.push(e)})},k=e.length>0,w=k&&(n.length>0||o.length>0),T=n.length>0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.default,{desktopTagId:"placera_desktop-panorama",mobileTagId:"placera_mobile-mobil-1",isTopOfPage:!0}),(0,t.jsxs)("div",{className:"mb-10 flex flex-1 justify-center gap-2 px-2 pt-4 md:px-0",children:[(0,t.jsx)(r.Input,{icon:!0,clearButton:!0,autoFocus:!0,value:h,onChange:e=>m(e.target.value),onClear:()=>{m(""),f.push((0,l.generateSearchUrl)({}))},onKeyDown:e=>{"Enter"===e.key&&h.trim()&&v()},placeholder:"Artiklar, Telegram, Pressmeddelanden, Skribenter..."}),(0,t.jsx)(y.Button,{onClick:v,className:"px-4",disabled:p,children:p?"Söker...":"Sök"})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-2 px-2 md:px-0",children:[k&&c&&(0,t.jsxs)("div",{className:"bg-muted text-muted-foreground mb-2 rounded px-2 py-1 text-sm",children:["Sökningen använde:"," ","opensearch"===c?"OpenSearch":"Payload (fallback)"]}),k&&(0,t.jsx)(j,{query:e,foundResults:T||o.length>0}),w&&(0,t.jsxs)(t.Fragment,{children:[o.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)(s.Typography,{variant:"h3",className:"pb-2",children:"Skribenter"}),(0,t.jsx)("div",{className:"flex flex-row flex-wrap gap-2",children:o.map(e=>(0,t.jsx)(x,{user:e},e.id))})]}),T&&(0,t.jsx)(s.Typography,{variant:"h3",children:"Artiklar"})]}),T&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(A,{currentCategory:u,currentQuery:e,availableCategories:d}),(0,t.jsx)(N,{results:n})]})]})]})]})}],355335)},568992,e=>{"use strict";var t=e.i(899352),r=e.i(347782),a=e.i(908267),i=e.i(15885);e.s(["default",0,({categories:e,tags:n,className:s,isTelegramPage:l})=>{let o=e.length>0,u=n?.[0]?.title?n[0]:null,d=u?.title??"",c=u?.slug??"",h=e.length+ +!!u;return(0,t.jsxs)("nav",{"aria-label":"breadcrumb",className:(0,a.cn)("flex items-center text-sm gap-x-1 max-w-full",s),children:[e.map((a,n)=>{let{title:s,slug:o,id:u}=a,d=n===e.length-1,c=l?o&&Object.values(i.TAB_CONFIG).find(e=>e.param===o)?.param||i.TAB_CONFIG.telegram.param:o;return(0,t.jsxs)("span",{className:"flex items-center ",children:[(0,t.jsx)(r.default,{href:l?`/telegram?tab=${c}`:`/kategorier/${o}`,"aria-label":`Kategori ${s}, ${n+1} av ${h}`,className:"capitalize text-text-brand dark:text-text-brand-dark transition-colors hover:underline underline-offset-2 inline-flex items-center truncate",children:s}),!d&&(0,t.jsx)("span",{className:"text-text-muted shrink-0",children:","})]},`${u}-${n}`)}),d&&(0,t.jsxs)(t.Fragment,{children:[o&&(0,t.jsx)("span",{className:"text-text-muted shrink-0 mx-1",children:"/"}),(0,t.jsx)("span",{children:(0,t.jsx)(r.default,{href:`/taggar/${c}`,"aria-label":`Tagg ${d}, ${e.length+1} av ${h}`,className:"capitalize text-text-brand dark:text-text-brand-dark transition-colors hover:underline underline-offset-2 inline-flex items-center truncate",children:d})})]})]})}])},433019,e=>{"use strict";var t=e.i(899352),r=e.i(859771),a=e.i(619468),i=e.i(908267),n=e.i(82077),s=e.i(761266);class l{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return o(this.animations,"duration")}get iterationDuration(){return o(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function o(e,t){let r=0;for(let a=0;a<e.length;a++){let i=e[a][t];null!==i&&i>r&&(r=i)}return r}class u extends l{then(e,t){return this.finished.finally(e).then(()=>{})}}var d=e.i(962752),c=e.i(916531),h=e.i(526988),m=e.i(789989),f=e.i(770498),p=e.i(804354),g=e.i(415677),x=e.i(358785),v=e.i(551458),y=e.i(87449),b=e.i(918699),j=e.i(28953);function k(e,t){var r;let a;return(0,j.isEasingArray)(e)?e[r=e.length,((t-0)%(a=r-0)+a)%a+0]:e}var w=e.i(995097);function A(e){return"object"==typeof e&&!Array.isArray(e)}function N(e,t,r,a){return null==e?[]:"string"==typeof e&&A(t)?(0,w.resolveElements)(e,r,a):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>null!=e):[e]}function T(e,t,r,a){return"number"==typeof t?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):"<"===t?r:t.startsWith("<")?Math.max(0,r+parseFloat(t.slice(1))):a.get(t)??e}var S=e.i(219309);function C(e,t){return e.at!==t.at?e.at-t.at:null===e.value?1:null===t.value?-1:0}function E(e,t){return t.has(e)||t.set(e,{}),t.get(e)}function I(e,t){return t[e]||(t[e]=[]),t[e]}let $=e=>"number"==typeof e,M=e=>e.every($);var P=e.i(357694),V=e.i(790834),O=e.i(352981),F=e.i(911190),B=e.i(329455),R=e.i(154738),z=e.i(314058),G=e.i(547498),q=e.i(470047);class D extends q.VisualElement{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(t in e){let r=e[t];if("string"==typeof r||"number"==typeof r)return r}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return(0,G.createBox)()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}}function L(e){let t={presenceContext:null,props:{}
1,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=(0,F.isSVGElement)(e)&&!(0,B.isSVGSVGElement)(e)?new R.SVGVisualElement(t):new z.HTMLVisualElement(t);r.mount(e),V.visualElementStore.set(e,r)}function U(e){let t=new D({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),V.visualElementStore.set(e,t)}function _(e,t,r,a){let i=[];if((0,m.isMotionValue)(e)||"number"==typeof e||"string"==typeof e&&!A(t))i.push((0,P.animateSingleValue)(e,A(t)&&t.default||t,r&&r.default||r));else{if(null==e)return i;let n=N(e,t,a),s=n.length;(0,b.invariant)(!!s,"No valid elements provided.","no-valid-elements");for(let e=0;e<s;e++){let a=n[e],l=a instanceof Element?L:U;V.visualElementStore.has(a)||l(a);let o=V.visualElementStore.get(a),u={...r};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(e,s)),i.push(...(0,O.animateTarget)(o,{...t,transition:u},{}))}}return i}let K=function(e={}){let{scope:t,reduceMotion:r}=e;return function(e,a,i){var n;let s,l=[];if(Array.isArray(e)&&e.some(Array.isArray)){let i,{onComplete:o,...u}=a||{};"function"==typeof o&&(s=o),n=void 0!==r?{reduceMotion:r,...u}:u,i=[],(function(e,{defaultTransition:t={},...r}={},a,i){let n=t.duration||.3,s=new Map,l=new Map,o={},u=new Map,c=0,h=0,j=0;for(let r=0;r<e.length;r++){let s=e[r];if("string"==typeof s){u.set(s,h);continue}if(!Array.isArray(s)){u.set(s.name,T(h,s.at,c,u));continue}let[v,C,$={}]=s;void 0!==$.at&&(h=T(h,$.at,c,u));let P=0,V=(e,r,a,s=0,l=0)=>{var o;let u=Array.isArray(o=e)?o:[o],{delay:c=0,times:m=(0,f.defaultOffset)(u),type:v=t.type||"ke
1yframes",repeat:w,repeatType:A,repeatDelay:N=0,...T}=r,{ease:C=t.ease||"easeOut",duration:E}=r,I="function"==typeof c?c(s,l):c,$=u.length,V=(0,p.isGenerator)(v)?v:i?.[v||"keyframes"];if($<=2&&V){let e=100;2===$&&M(u)&&(e=Math.abs(u[1]-u[0]));let r={...t,...T};void 0!==E&&(r.duration=(0,y.secondsToMilliseconds)(E));let a=(0,g.createGeneratorEasing)(r,e,V);C=a.ease,E=a.duration}E??(E=n);let O=h+I;1===m.length&&0===m[0]&&(m[1]=1);let F=m.length-u.length;if(F>0&&(0,x.fillOffset)(m,F),1===u.length&&u.unshift(null),w){(0,b.invariant)(w<20,"Repeat count too high, must be less than 20","repeat-count-high"),E*=w+1;let e=[...u],t=[...m],r=[...C=Array.isArray(C)?[...C]:[C]];for(let a=0;a<w;a++){u.push(...e);for(let i=0;i<e.length;i++)m.push(t[i]+(a+1)),C.push(0===i?"linear":k(r,i-1))}for(let e=0;e<m.length;e++)m[e]=m[e]/(w+1)}let B=O+E;!function(e,t,r,a,i,n){for(let t=0;t<e.length;t++){let r=e[t];r.at>i&&r.at<n&&((0,d.removeItem)(e,r),t--)}for(let s=0;s<t.length;s++)e.push({value:t[s],at:(0,S.mixNumber)(i,n,a[s]),easing:k(r,s)})}(a,u,C,m,O,B),P=Math.max(I+E,P),j=Math.max(B,j)};if((0,m.isMotionValue)(v))V(C,$,I("default",E(v,l)));else{let e=N(v,C,a,o),t=e.length;for(let r=0;r<t;r++){let a=E(e[r],l);for(let e in C){var w,A;V(C[e],(w=$,A=e,w&&w[A]?{...w,...w[A]}:{...w}),I(e,a),r,t)}}}c=h,h+=P}return l.forEach((e,a)=>{for(let i in e){let n=e[i];n.sort(C);let l=[],o=[],u=[];for(let e=0;e<n.length;e++){let{at:t,value:r,easing:a}=n[e];l.push(r),o.push((0,v.progress)(0,j,t)),u.push(a||"easeOut")}0!==o[0]&&(o.unshift(0),l.unshift(l[0]),u.unshift("easeInOut")),1!==o[o.length-1]&&(o.push(1),l.push(null)),s.has(a)||s.set(a,{keyframes:{},transition:{}});let d=s.get(a);d.keyframes[i]=l;let{type:c,...h}=t;d.transition[i]={...h,duration:j,ease:u,times:o,...r}}}),s})(e.map(e=>{if(Array.isArray(e)&&"function"==typeof e[0]){let t=e[0],r=(0,c.motionValue)(0);return(r.on("change",t),1===e.length)?[r,[0,1]]:2===e.length?[r,[0,1],e[1]]:[r,e[1],e[2]]}return e}),n,t,{spring:h.spring}).forEach(({keyframes:e,transition:t},r)=>{i.push(..._(r,e,t))}),l=i}else{let{onComplete:n,...o}=i||{};"function"==typeof n&&(s=n),l=_(e,a,void 0!==r?{reduceMotion:r,...o}:o,t)}let o=new u(l);return s&&o.finished.then(s),t&&(t.animations.push(o),o.finished.then(()=>{(0,d.removeItem)(t.animations,o)})),o}}();var H=e.i(703546),Q=e.i(341925);function W(e){let t=(0,Q.useConstant)(()=>(0,c.motionValue)(e)),{isStatic:a}=(0,r.useContext)(H.MotionConfigContext);if(a){let[,a]=(0,r.useState)(e);(0,r.useEffect)(()=>t.on("change",a),[])}return t}var Y=e.i(788193),J=e.i(313785),X=e.i(821090);function Z(e,t){let r=W(t()),a=()=>r.set(t());return a(),(0,X.useIsomorphicLayoutEffect)(()=>{let t=()=>J.frame.preRender(a,!1,!0),r=e.map(e=>e.on("change",t));return()=>{r.forEach(e=>e()),(0,J.cancelFrame)(a)}}),r}function ee(e,t){let r=(0,Q.useConstant)(()=>[]);return Z(e,()=>{r.length=0;let a=e.length;for(let t=0;t<a;t++)r[t]=e[t].get();return t(r)})}var et=e.i(161701),er=e.i(347782);let ea=({count:e})=>{let i=W(0),n=function e(t,r,a,i){if("function"==typeof t){let e;return c.collectMotionValues.current=[],t(),e=Z(c.collectMotionValues.current,t),c.collectMotionValues.current=void 0,e}if(void 0!==a&&!Array.isArray(a)&&"function"!=typeof r){var n=t,s=r,l=a,o=i;let u=(0,Q.useConstant)(()=>Object.keys(l)),d=(0,Q.useConstant)(()=>({}));for(let t of u)d[t]=e(n,s,l[t],o);return d}let u="function"==typeof r?r:function(...e){let t=!Array.isArray(e[0]),r=t?0:-1,a=e[0+r],i=e[1+r],n=e[2+r],s=e[3+r],l=(0,Y.interpolate)(i,n,s);return t?l(a):l}(r,a,i),d=Array.isArray(t)?ee(t,u):ee([t],([e])=>u(e)),h=Array.isArray(t)?void 0:t.accelerate;return h&&!h.isTransformed&&"function"!=typeof r&&Array.isArray(a)&&i?.clamp!==!1&&(d.accelerate={...h,times:r,keyframes:a,isTransformed:!0,...i?.ease?{ease:i.ease}:{}}),d}(i,e=>Math.round(e));return(r.default.useEffect(()=>{if(!e||e<=0)return;let t=K(i,e,{duration:.3,ease:"easeOut"});return()=>t.stop()},[e,i]),!e||e<=0)?null:(0,t.jsx)(s.motion.div,{className:"flex items-center justify-center border border-btn/20 min-w-6 h-6 bg-surf-secondary-hover dark:bg-surf-secondary-hover-dark rounded-default px-1.5",transition:{type:"spring",stiffness:300,damping:20},layout:!0,children:(0,t.jsx)(a.Typography,{variant:"p",children:(0,t.jsx)(s.motion.span,{layout:!0,children:n})})})};e.s(["CategoryButton",0,({title:e,count:r,isSelected:l=!1,slug:o,currentQuery:u,counter:d=!0,isSearchLink:c=!1})=>(0,t.jsx)(et.AnimatePresence,{children:(0,t.jsx)(s.motion.div,{layout:!0,transition:{type:"spring",stiffness:250,damping:25},children:(0,t.jsxs)(er.default,{href:c?(0,n.generateSearchUrl)({query:u,category:l?void 0:o}):`/taggar/${o}`,className:(0,i.cn)("flex items-center transition-colors duration-200 ease-in-out gap-1.5 py-1 border border-btn dark:border-btn-dark rounded-lg group",d?"pl-3 pr-1":"px-3",l?"bg-btn dark:bg-btn-dark":"bg-surf-main dark:bg-surf-main-dark hover:bg-btn-inv-hover dark:hover:bg-btn-inv-hover-dark active:bg-btn-inv-active dark:active:bg-btn-inv-active-dark hover:border-btn-hover dark:hover:border-btn-hover-dark active:border-btn-active dark:active:border-btn-active-dark"),children:[(0,t.jsx)(a.Typography,{variant:"p",className:(0,i.cn)("capitalize",l?"text-text-main-inv dark:text-text-main-inv-dark":"text-btn dark:text-btn-dark"),children:e}),(0,t.jsx)(ea,{count:r})]})})})],433019)},797078,e=>{"use strict";var t=e.i(899352),r=e.i(615218),a=e.i(232481),i=e.i(479635),n=e.i(908267);e.s(["ImageMedia",0,({image:e,externalImage:s,aspectRatio:l,priority:o=!1,className:u,imgClassName:d,showCaption:c=!0,fill:h=!0,showPhotoCredit:m=!0,sizes:f="(max-width: 768px) 100vw, 1024px",customCaption:p,imageSize:g,imageQuality:x})=>{let v=(()=>
1{if(!e&&!s)return null;if(e){let{url:a,alt:i,photoCredit:s,caption:u,width:c,height:m,sizes:p}=e,v=!h&&c&&m,y=l||(c&&m?c/m:1.5),b=g&&p?.[g],j=b?.width||(c??void 0),k=b?.height||(m??void 0);return{imageComponent:(0,t.jsx)(r.default,{src:b?.url||a||"",alt:i||"",fill:!v,width:v?j:void 0,height:v?k:void 0,sizes:f,className:(0,n.cn)("rounded-2xl max-w-full",d),priority:o,quality:x}),useNativeDimensions:v,finalAspectRatio:y,photoCredit:s,caption:u,width:c}}if(s)return{imageComponent:(0,t.jsx)("div",{className:(0,n.cn)("rounded-2xl max-w-full overflow-hidden",d),children:(0,t.jsx)("img",{src:s.url,alt:s.alt,className:(0,n.cn)("rounded-2xl max-w-full",d)})}),caption:"",photoCredit:"",useNativeDimensions:!1,width:0}})();if(!v)return null;let{imageComponent:y,useNativeDimensions:b,finalAspectRatio:j,photoCredit:k,caption:w,width:A}=v;return(0,t.jsxs)("figure",{className:(0,n.cn)("relative overflow-hidden max-w-full",u),style:b&&A?{width:A}:void 0,children:[(0,t.jsxs)("div",{className:(0,n.cn)("relative w-full h-full"),style:{aspectRatio:j},children:[y,k&&m&&(0,t.jsx)("div",{className:"absolute top-2 right-2",children:(0,t.jsx)(i.Tooltip,{content:k,position:"left",isPhotoCredit:!0,children:(0,t.jsx)(a.Icon,{icon:"info",className:"text-white"})})})]}),(p||w)&&c&&(0,t.jsx)("figcaption",{className:"mt-2 text-sm text-muted-foreground rounded-none md:absolute md:bottom-0 md:left-0 md:right-0 md:mt-0 md:bg-black/75 md:p-3 md:text-text-main-inv rounded-b-2xl",children:p||w})]})},"VideoMedia",0,({image:e,className:r,showCaption:a=!0,customCaption:i})=>e?.url?(0,t.jsxs)("figure",{className:(0,n.cn)("relative overflow-hidden max-w-full",r),children:[(0,t.jsx)("video",{src:e.url,controls:!0,className:"w-full h-auto rounded-2xl",children:"Your browser does not support the video tag."}),(i||e.caption)&&a&&(0,t.jsx)("figcaption",{className:"mt-2 text-sm text-muted-foreground rounded-none  rounded-b-2xl",children:i||e.caption})]}):null])},479635,e=>{"use strict";var t=e.i(899352),r=e.i(859771),a=e.i(908267);e.s(["Tooltip",0,({children:e,content:i,className:n,position:s="top",isPhotoCredit:l=!1})=>{let[o,u]=(0,r.useState)(!1),d=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),u(e=>!e)},[]);return(0,t.jsxs)("div",{className:"relative inline-block",onClick:d,onMouseEnter:()=>window.matchMedia("(hover: hover)").matches&&u(!0),onMouseLeave:()=>window.matchMedia("(hover: hover)").matches&&u(!1),children:[e,(0,t.jsxs)("div",{className:(0,a.cn)("absolute z-50 px-3 py-2 text-xs bg-surf-grey dark:bg-surf-grey-dark rounded whitespace-nowrap","transition-all duration-200 ease-in-out","opacity-0 invisible",o&&"opacity-100 visible",{top:"bottom-full left-1/2 -translate-x-1/2 mb-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2",right:"left-full top-1/2 -translate-y-1/2 ml-2"}[s],n),role:"tooltip",children:[l?`Foto: ${i}`:i,(0,t.jsx)("div",{className:(0,a.cn)("absolute w-2 h-2 bg-surf-grey dark:bg-surf-grey-dark transform rotate-45",{"bottom-[-4px] left-1/2 -translate-x-1/2":"top"===s,"top-[-4px] left-1/2 -translate-x-1/2":"bottom"===s,"right-[-4px] top-1/2 -translate-y-1/2":"left"===s,"left-[-4px] top-1/2 -translate-y-1/2":"right"===s})})]})]})}])},82077,e=>{"use strict";e.s(["AFV_ADVANCED_SEARCH_PATH",0,"/alla-artiklar","generateSearchUrl",0,(e,t)=>{let r=t?.pathname??"/search",a=new URLSearchParams;return e.query&&a.set("q",e.query),e.category&&"all"!==e.category&&a.set("category",e.category),e.stocks&&e.stocks.length>0&&a.set("stocks",e.stocks.join(",")),e.writer&&a.set("writer",e.writer),e.topic&&a.set("topic",e.topic),e.date&&a.set("date",e.date),e.sort&&a.set("sort",e.sort),`${r}${a.toString()?`?${a.toString()}`:""}`}])}]);

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.