PageSourceSearch

https://www.tafensw.edu.au/_nuxt/DlLio_Gx.js

js tafensw.edu.au collected 2026-10-01 08:58:16 UTC 2,371 bytes, 1 lines download raw bytes

1import{f as y,i as a,o as n,n as p,v as l,q as d,t as c,D as m,x as b,p as h,$ as k,P as w,C as S}from"./DxI-nWXO.js";const $={class:"flex-1 text-center"},_=y({__name:"Badge",props:{label:{default:""},iconLeft:{default:""},iconRight:{default:""},variant:{default:"filled"},type:{default:void 0},colour:{default:void 0},dark:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(g){const e=g,s=a(()=>{if(e.disabled)switch(e.variant){case"filled":return"text-grey-02 bg-grey-04 border-grey-04";case"outline":return"text-grey-02 border-grey-03";case"simple":return"text-grey-02 border-transparent";default:return"text-grey-02 bg-grey-04 border-grey-04"}}),i=a(()=>{if(o.value==="grey")switch(e.variant){case"filled":return e.dark?"text-off-white bg-grey-02 border-grey-02":"text-grey-01 bg-off-white border-off-white";case"outline":return e.dark?"text-off-white border-grey-02":"text-grey-02 border-grey-03";case"simple":return e.dark?"text-off-white border-transparent":"text-grey-01 border-transparent";default:return e.dark?"text-off-white bg-grey-02 border-grey-02":"text-grey-01 bg-off-white border-off-white"}}),t=a(()=>{switch(e.variant){case"filled":return e.dark?{bg:"01",text:"04",border:"01"}:{bg:"04",text:"01",border:"04"};case"outline":return e.dark?{text:"04",border:"03"}:{text:"01",border:"02"};case"simple":return e.dark?{text:"03"}:{text:"01",icon:"02"};default:return{bg:"04",text:"01"}}}),o=a(()=>e.colour?e.colour:e.type?e.type==="info"?"blue":e.type:"grey"),v=a(()=>s.value?s.value:i.value?i.value:[t.value.text?x():void 0,t.value.bg?`bg-${o.value}-${t.value.bg}`:void 0,t.value.border?`border-${o.value}-${t.value.border}`:"border-transparent"].filter(Boolean)),u=a(()=>{if(!e.disabled)return t.value.icon?`text-${o.value}-${t.value.icon}`:void 0});function x(){return e.variant==="filled"&&e.colour?e.dark?"text-white":"text-grey-01":`text-${o.value}-${t.value.text}`}return(r,C)=>{const f=m;return n(),p("div",{class:l([d(v),"main-v2 flex items-center rounded-full px-2 py-1 gap-1 border font-semibold text-xs/3.5 md:text-sm/none"])},[r.iconLeft?(n(),c(f,{key:0,name:r.iconLeft,class:l(["text-base",[d(u)]])},null,8,["name","class"])):b("",!0),h("div",$,[k(r.$slots,"default",{},()=>[w(S(r.label),1)])]),r.iconRight?(n(),c(f,{key:1,name:r.iconRight,class:l(["text-base",[d(u)]])},null,8,["name","class"])):b("",!0)],2)}}});export{_};

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.