PageSourceSearch

https://sogehtpflege.de/assets/BlogDetail-BYNoCLYr.js

js sogehtpflege.de collected 2026-10-01 23:56:57 UTC 9,505 bytes, 1 lines download raw bytes

1import{y as e,r as u,ad as S,ac as C,a9 as z,a0 as p}from"./vendor-Coqy7mbw.js";import{S as _,b as L}from"./SEO-BC3bkTUE.js";import{S as b,B as x}from"./index-CH5awY4U.js";import{a as P,l as D,c as O,g as W,B as F,f as $}from"./blogDb-DrD-fGy5.js";import{ae as T,ad as A,i as I,A as f,G as y}from"./vendor-icons-COpGt1tK.js";import"./vendor-docs-Bw1Myoqi.js";import"./vendor-radix-S3bBqdhe.js";import"./vendor-supabase-AGgF9Vk1.js";import"./vendor-markdown-D7HQq5lI.js";function d(n){if(!n)return n;const m=n.split(/(\{\{(?:magenta|blau|gruen):[^{}]+\}\}|\*\*[^*]+\*\*|_[^_]+_|\[[^\]]+\]\(https?:\/\/[^)\s]+\))/g);return m.length===1?n:m.map((r,l)=>{const c=r.match(/^\{\{(magenta|blau|gruen):([^{}]+)\}\}$/);if(c)return e.jsx("span",{className:`blog-text-${c[1]}`,children:d(c[2])},l);if(r.startsWith("**")&&r.endsWith("**")&&r.length>4)return e.jsx("strong",{children:d(r.slice(2,-2))},l);if(r.startsWith("_")&&r.endsWith("_")&&r.length>2)return e.jsx("em",{children:d(r.slice(1,-1))},l);const h=r.match(/^\[([^\]]+)\]\((https?:\/\/[^)\s]+)\)$/);return h?e.jsx("a",{href:h[2],target:"_blank",rel:"noopener noreferrer",className:"font-semibold underline underline-offset-4 hover:text-primary",children:d(h[1])},l):e.jsx(u.Fragment,{children:r},l)})}function M({text:n}){const[m,r]=u.useState(!1),l=n.length>140;return e.jsxs("div",{children:[e.jsx("p",{className:`text-sm leading-relaxed text-muted-foreground ${l&&!m?"line-clamp-3":""}`,children:n}),l&&e.jsx("button",{type:"button",onClick:()=>r(c=>!c),"aria-expanded":m,className:"mt-1 text-sm font-semibold text-primary hover:underline",children:m?"Weniger anzeigen":"Mehr anzeigen"})]})}function U(){const{slug:n}=S(),[m]=C(),r=m.get("vorschau")==="1",l=n?P(n):void 0,[c,h]=u.useState(null),[v,w]=u.useState([]),[k,j]=u.useState(!l);u.useEffect(()=>{let t=!0;if(n&&(D().then(a=>t&&w(a)),!l))return j(!0),O(n,r).then(a=>{t&&(h(a),j(!1))}),()=>{t=!1}},[n,l,r]);const s=l??c??void 0;if(!s)return k?e.jsx("div",{className:"container py-24 text-muted-foreground",children:"Beitrag wird geladen …"}):e.jsx(z,{to:"/blog",replace:!0});const N=[...v,...W()].filter(t=>t.slug!==s.slug).sort((t,a)=>a.datum.localeCompare(t.datum)).slice(0,2),E={"@context":"https://schema.org","@type":"BlogPosting",headline:s.title,description:s.excerpt,datePublished:s.datum,dateModified:s.datum,inLanguage:"de-DE",author:{"@type":"Organization",name:"So geht Pflege!"},publisher:{"@id":"https://sogehtpflege.de/#organization"},mainEntityOfPage:`https://sogehtpflege.de/blog/${s.slug}`,keywords:s.keywords};return e.jsxs(e.Fragment,{children:[e.jsx(_,{title:s.title,description:s.excerpt,canonical:`/blog/${s.slug}`,ogType:"article",noIndex:!F,keywords:s.keywords,publishedTime:s.datum,structuredData:[E,L([{name:"Startseite",url:"/"},{name:"Blog",url:"/blog"},{name:s.title,url:`/blog/${s.slug}`}])]}),e.jsx("article",{className:"py-10 md:py-14",children:e.jsxs("div",{className:"container max-w-3xl",children:[e.jsxs(p,{to:"/blog",className:"inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-primary",children:[e.jsx(T,{className:"h-4 w-4","aria-hidden":"true"}),"Zurück zum Blog"]}),e.jsxs("div",{children:[e.jsx("span",{className:"mt-6 inline-block rounded-full bg-primary/10 px-3 py-1 text-xs font-semibold text-primary",children:s.kategorie}),e.jsx("h1",{className:"mt-4 text-3xl md:text-4xl font-bold leading-tight",children:s.title}),e.jsxs("div",{className:"mt-4 flex flex-wrap items-center gap-x-5 gap-y-1 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(A,{className:"h-4 w-4","aria-hidden":"true"}),$(s.datum)]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(I,{className:"h-4 w-4","aria-hidden":"true"}),s.lesezeit]}),e.jsxs("span",{children:[s.autor," · ",s.autorRolle]})]})]}),s.bild&&!s.inhalt.some(t=>t.typ==="bild"&&t.src===s.bild)&&e.jsx("div",{className:"mt-8 overflow-hidden rounded-2xl",children:e.jsx(b,{src:s.bild,alt:s.bildAlt||s.title,className:"w-full object-cover",loading:"eager"})}),e.jsx("p",{className:"mt-8 text-lg font-medium leading-relaxed text-foreground",children:s.excerpt}),e.jsx("div",{className:"mt-6 space-y-5",children:s.inhalt.map((t,a)=>t.typ==="ueberschrift"?t.ebene===3?e.jsx("h3",{className:"pt-3 text-lg md:text-xl font-bold",children:d(t.text)},a):e.jsx("h2",{className:"pt-4 text-xl md:text-2xl font-bold",children:d(t.text)},a):t.typ==="liste"?t.nummeriert?e.jsx("ol",{className:"list-decimal space-y-2 pl-7",children:t.punkte.map((i,g)=>{const o=i.indexOf(":"),B=i.includes("**")||i.includes("_");return e.jsx("li",{className:"pl-1 text-base leading-relaxed text-foreground
1/90",children:!B&&o>0?e.jsxs(e.Fragment,{children:[e.jsx("strong",{children:i.slice(0,o+1)}),i.slice(o+1)]}):d(i)},g)})},a):e.jsx("ul",{className:"space-y-2 pl-1",children:t.punkte.map((i,g)=>e.jsxs("li",{className:"flex gap-3 text-base leading-relaxed text-foreground/90",children:[e.jsx("span",{className:"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-primary","aria-hidden":"true"}),e.jsx("span",{children:d(i)})]},g))},a):t.typ==="bild"?e.jsxs("figure",{className:"pt-2",children:[e.jsx(b,{src:t.src,alt:t.alt,className:"w-full rounded-2xl object-contain ring-1 ring-border/40",loading:"lazy"}),t.caption&&e.jsx("figcaption",{className:"mt-2 text-center text-sm text-muted-foreground",children:t.caption})]},a):t.typ==="kasten"?e.jsxs("div",{className:"rounded-2xl bg-gradient-to-br from-primary to-secondary p-6 md:p-8 text-primary-foreground shadow-md",children:[e.jsx("p",{className:"text-lg md:text-xl font-bold leading-snug",children:d(t.titel)}),e.jsx("ul",{className:"mt-4 space-y-2",children:t.punkte.map((i,g)=>{const o=i.indexOf(":");return e.jsxs("li",{className:"flex gap-3 text-base leading-relaxed",children:[e.jsx("span",{className:"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-primary-foreground/80","aria-hidden":"true"}),e.jsx("span",{children:o>0?e.jsxs(e.Fragment,{children:[e.jsx("strong",{children:i.slice(0,o+1)}),d(i.slice(o+1))]}):d(i)})]},g)})})]},a):t.typ==="link"?t.extern?e.jsx("div",{className:"pt-4",children:e.jsx(x,{asChild:!0,children:e.jsxs("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",children:[t.text,e.jsx(f,{className:"ml-1.5 h-4 w-4","aria-hidden":"true"})]})})},a):e.jsx("div",{className:"pt-4",children:e.jsx(x,{asChild:!0,children:e.jsxs(p,{to:t.href,children:[t.text,e.jsx(f,{className:"ml-1.5 h-4 w-4","aria-hidden":"true"})]})})},a):t.typ==="zitat"?e.jsxs("blockquote",{className:"border-l-4 border-primary/60 bg-accent/40 py-4 pl-5 pr-4 text-lg font-medium italic",children:[d(t.text),t.quelle&&e.jsx("footer",{className:"mt-2 text-sm not-italic text-muted-foreground",children:t.quelle})]},a):e.jsx("p",{className:"text-base leading-relaxed text-foreground/90",children:d(t.text)},a))}),s.kursEmpfehlungen&&s.kursEmpfehlungen.length>0&&e.jsxs("section",{className:"mt-12 border-t border-border pt-8",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-primary",children:[e.jsx(y,{className:"h-5 w-5","aria-hidden":"true"}),"Fortbildungsempfehlungen zum Thema aus unserer Mediathek"]}),e.jsx("div",{className:"mt-5 grid gap-4 sm:grid-cols-2",children:s.kursEmpfehlungen.map(t=>e.jsxs("article",{className:"flex h-full flex-col rounded-lg bg-accent/50 p-5 ring-1 ring-border/60",children:[e.jsx("h2",{className:"text-lg font-bold leading-snug",children:t.titel}),e.jsx("div",{className:"mt-2 flex-1",children:e.jsx(M,{text:t.text})}),e.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[t.testLink&&e.jsx(x,{asChild:!0,size:"sm",children:e.jsx("a",{href:t.testLink,target:"_blank",rel:"noopener noreferrer",children:"Kostenlos testen"})}),e.jsx(x,{asChild:!0,size:"sm",variant:t.testLink?"outline":"default",children:e.jsx(p,{to:t.akademieHref,children:"Zur Mediathek"})})]})]},t.titel))})]}),s.kursEmpfehlung&&e.jsxs("aside",{className:"mt-12 rounded-2xl bg-accent/50 p-6 ring-1 ring-border/60",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-primary",children:[e.jsx(y,{className:"h-5 w-5","aria-hidden":"true"}),"Passende Fortbildung"]}),e.jsx("h2",{className:"mt-3 text-xl font-bold",children:s.kursEmpfehlung.titel}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:s.kursEmpfehlung.text}),e.jsxs("div",{className:"mt-5 flex flex-wrap gap-3",children:[s.kursEmpfehlung.testLink&&e.jsx(x,{asChild:!0,children:e.jsx("a",{href:s.kursEmpfehlung.testLink,target:"_blank",rel:"noopener noreferrer",children:"Kurs kostenlos testen"})}),e.jsx(x,{asChild:!0,variant:"outline",children:e.jsxs(p,{to:s.kursEmpfehlung.akademieHref,children:[s.kursEmpfehlung.akademieName," ansehen"]})})]})]}),N.length>0&&e.jsxs("section",{className:"mt-14 border-t border-border pt-8",children:[e.jsx("h2",{className:"text-lg font-bold",children:"Weitere Beiträge"}),e.jsx("div",{className:"mt-4 grid gap-4 sm:grid-cols-2",children:N.map(t=>e.jsxs(p,{to:`/blog/${t.slug}`,className:"group rounded-xl bg-background p-4 ring-1 ring-border/60 transition-shadow hover:shadow-md",children:[e.jsx("span",{className:"text-xs font-semibold text-primary",children:t.kategorie}),e.jsx("p",{className:"mt-1.5 font-semibold leading-snug group-hover:text-primary",children:t.title}),e.jsxs("span",{className:"mt-3 inline-flex items-center gap-1.5 text-sm text-muted-foreground",children:["Weiterlesen",e.jsx(f,{className:"h-4 w-4","aria-hidden":"true"})]})]},t.slug))})]})]})})]})}export{U as default};

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.