PageSourceSearch

https://www.juppen.de/_nuxt/CTOi12dr.js

js juppen.de collected 2026-10-08 22:47:21 UTC 3,715 bytes, 2 lines download raw bytes

1import B from"./hSZV-AEA.js";import D from"./CWSnhNOK.js";import{aV as V,b0 as z,aP as f,b4 as a,bk as u,b7 as n,aQ as g,aR as v,aT as x,c0 as E,b8 as b,bU as S,ba as w,b9 as k,bc as _,aO as o,aS as C}from"./Cx0yNN-t.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="f4a327ed-10dc-4529-9240-ee6bea62ba90",t._sentryDebugIdIdentifier="sentry-dbid-f4a327ed-10dc-4529-9240-ee6bea62ba90")}catch{}const T={class:"ml-3 mr-6 flex-grow"},$={class:"flex-1 min-w-0"},F={key:0},R=V({__name:"NotificationItem",props:{id:{default:void 0},message:{default:void 0},progress:{default:0},onClose:{type:Function,default:void 0},type:{default:"info"},variant:{default:"toast"},dismissible:{type:Boolean,default:!0},icon:{default:void 0},soft:{type:Boolean,default:!0}},emits:["dismiss"],setup(t,{emit:r}){const e=t,N=r,h=w(!0),s=w(null),I=typeof k=="function";let m;e.variant==="toast"&&I&&(m=k().registerNotificationElement),z(()=>{e.variant==="toast"&&s.value&&e.id&&(m&&m(e.id,s.value),s.value.style.opacity="0",s.value.style.transform="translateX(20px)",setTimeout(()=>{s.value&&(s.value.style.opacity="1",s.value.style.transform="translateX(0)")},10))});const i=_(()=>{switch(e.type){case"success":return{bg:e.soft?"bg-success-light":"bg-success",border:"border-success",text:e.soft?"text-success-shade-dark":"text-white",progress:"bg-base-300",icon:"check"};case"error":return{bg:e.soft?"bg-error-light":"bg-error",border:"border-error",text:e.soft?"text-error-shade-dark":"text-white",progress:"bg-base-300",icon:"x"};case"warning":return{bg:e.soft?"bg-warning-light":"bg-warning",border:"border-warning",text:e.soft?"text-warning-shade-dark":"text-white",progress:"bg-base-300",icon:"triangle-alert"};default:return{bg:e.soft?"bg-info-light":"bg-info",border:"border-info",text:e.soft?"text-info-shade-dark":"text-white",progress:"bg-base-300",icon:"info"}}}),l=_(()=>e.icon!==void 0?e.icon:i.value.icon),y=()=>{e.variant==="toast"&&e.onClose&&e.id?e.onClose(e.id):(h.value=!1,N("dismiss"))};return(c,q)=>{const d=B,p=D;return t.variant==="toast"?(o(),f("div",{key:0,ref_key:"notificationRef",ref:s,class:b(["flex items-center p-4 pr-8 m-2 shadow-md w-full max-w-sm relative","transition-all duration-300 ease-in-out","bg-base-100",a(i).text]),role:"alert","aria-live":"polite"},[a(l)?(o(),u(d,{key:0,name:a(l),class:"w-5 h-5 shrink-0","aria-hidden":"true"},null,8,["name"])):n("",!0),g("div",T,[g("p",null,v(t.message),1)]),t.dismissible?(o(),u(p,{key:1,size:"small",square:"","aria-label":c.$t("notification.close"),class:"absolute top-0 bottom-0 right-2 m-auto",onClick:y},{default:x(()=>[C(d,{name:"x",class:"w-3 h-3","aria-hidden":"true"})]),_:1},8,["aria-label"])):n("",!0),t.progress!==void 0&&t.progress>0?(o(),f("div",{key:2,class:b(["absolute bottom-0 left-0 h-1",a(i).progress]),style:E({width:`${t.progress}%`})},null,6)):n("",!0)],2)):t.variant==="inline"&&a(h)?(o(),f("div",{key:1,role:"alert",class:b(["flex items-center gap-3 p-4 border",a(i).bg,a(i).border,a(i).text])},[a(l)?(o(),u(d,{key:0,name:a(l),class:"w-5 h-5 shrink-0 mt-0.5","aria-hidden":"true"},null,8,["name"])):n("",!0),g("div",$,[S(c.$slots,"default",{},()=>[t.message?(o(),f("span",F,v(t.message),1)):n("",!0)])]),t.dismissible?(o(),u(p,{key:1,size:"small",square:"","aria-label":c.$t("notification.close"),class:b(["shrink-0",a(i).text]),onClick:y},{default:x(()=>[C(d,{name:"x",class:"w-3 h-3","aria-hidden":"true"})]),_:1},8,["aria-label","class"])):n("",!0)],2)):n("",!0)}}}),j=Object.assign(R,{__name:"NotificationItem"});export{j as default};
2//# sourceMappingURL=CTOi12dr.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.