PageSourceSearch

https://cdn4.schoolism.com/build/assets/Banner-C8OtZYy7.js

js schoolism.com collected 2026-09-25 21:29:19 UTC 2,822 bytes, 1 lines download raw bytes

1import{Q as _,r as i,V as x,d as u,o as p,e as f,U as g,n as v,u as o,a as t,t as y,h as k}from"./app-DDSQZi8b.js";const N={class:"max-w-screen-xl mx-auto py-3 px-3 sm:px-6 lg:px-8"},w={class:"flex items-center justify-center"},j={class:"flex items-center justify-center min-w-0 flex-1"},B={class:"flex-1 text-center"},C={key:0,class:"mb-1"},M={class:"font-bold text-lg text-black leading-tight"},S=["innerHTML"],D={class:"flex-shrink-0 ml-3"},z={__name:"Banner",setup(L){const e=_(),r=i(!0),n=i("success"),l=i(""),c=i(""),b=()=>{var s;return(s=e.props.jetstream.flash)!=null&&s.banner?`banner_dismissed_${btoa(e.props.jetstream.flash.banner)}`:e.props.bannerNotice?`banner_dismissed_${btoa(e.props.bannerNotice.message)}`:null},d=()=>{const s=b();return s?localStorage.getItem(s)==="true":!1},h=()=>{const s=b();s&&(localStorage.setItem(s,"true"),r.value=!1)};return x(async()=>{var s,a,m;(s=e.props.jetstream.flash)!=null&&s.banner?(n.value=((a=e.props.jetstream.flash)==null?void 0:a.bannerStyle)||"success",l.value=((m=e.props.jetstream.flash)==null?void 0:m.banner)||"",c.value="",r.value=!d()):e.props.bannerNotice?(n.value="info",l.value=e.props.bannerNotice.message||"",c.value=e.props.bannerNotice.title||"",r.value=!d()):r.value=!1}),(s,a)=>(p(),u("div",null,[r.value&&l.value?(p(),u("div",{key:0,class:v({"bg-green-schoolism":n.value=="success"&&!o(e).props.bannerNotice,"bg-red-700":n.value=="danger"&&!o(e).props.bannerNotice,"bg-blue-600":n.value=="info"&&!o(e).props.bannerNotice,"bg-yellow-500":n.value=="warning"&&!o(e).props.bannerNotice}),style:g(o(e).props.bannerNotice?{backgroundColor:o(e).props.bannerNotice.background_color||"#e3f7c3",color:"#000000"}:{})},[t("div",N,[t("div",w,[t("div",j,[t("div",B,[c.value?(p(),u("div",C,[t("h3",M,y(c.value),1)])):f("",!0),t("p",{class:"font-medium text-base text-black leading-relaxed",innerHTML:l.value},null,8,S)])]),t("div",D,[t("button",{type:"button",class:v(["-me-1 flex p-2 rounded-md focus:outline-none sm:-me-2 transition",{"hover:bg-green-schoolism focus:bg-green-schoolism":n.value=="success"&&!o(e).props.bannerNotice,"hover:bg-red-600 focus:bg-red-600":n.value=="danger"&&!o(e).props.bannerNotice,"hover:bg-blue-500 focus:bg-blue-500":n.value=="info"&&!o(e).props.bannerNotice,"hover:bg-yellow-400 focus:bg-yellow-400":n.value=="warning"&&!o(e).props.bannerNotice}]),style:g(o(e).props.bannerNotice?{"--tw-bg-opacity":"0.8",backgroundColor:o(e).props.bannerNotice.background_color||"#e3f7c3"}:{}),"aria-label":"Dismiss",onClick:k(h,["prevent"])},a[0]||(a[0]=[t("svg",{class:"h-5 w-5 text-black",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)]),6)])])])],6)):f("",!0)]))}};export{z as _};

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.