PageSourceSearch

https://discoversurreybc.com/_resources/themes/default/dist/assets/UIElementalCrowdriff.ce-DI51LhXs.js

js discoversurreybc.com collected 2026-10-02 11:52:52 UTC 3,150 bytes, 2 lines download raw bytes

1import{_ as e,M as t,u as s,w as n,o as a,n as l,c as o,d as r,e as i,S as u,x as c,h as d,i as f,f as p,r as g,F as m,z as y,k as h,l as v,B as k}from"./main-UqpYKZEw.js";import{a as w,d as M,e as b}from"./composables-BNXpm-LZ.js";import{M as _}from"./MDSkeleton.ce-B3PsUbGG.js";import{M as T}from"./MDButton.ce-BLVSTFDu.js";const x='@import"/_resources/themes/default/dist/assets/css/main.css";';const D={name:"UIElementalCrowdriff",components:{MDButton:T,MDBlocker:t,MDSkeleton:_},props:{info:{type:String,default(){return null}},config:{type:Object,default(){return null}}},setup(e){const t=s();const l=h(null);const o=h(null);const r=h(null);const i=h(null);const u=h({});const c=v((()=>b(r.value?.title,[...r.value?.focustext])));const d=v((()=>!!r.value?.display?.displaycontent&&!!r.value?.content));const f=v((()=>!!r.value?.display?.displaylinks&&!!r.value?.links?.length));const p=v((()=>!!r.value?.display?.showtitle&&!!r.value?.title));n(l,((e,s)=>{if(e instanceof HTMLElement)t.observe(e)}));n(r,((e,t)=>{const{layout:s}=w(r);u.value={...s.value};if(!!r.value?.grid&&i.value instanceof HTMLElement)if("gap"in r.value?.grid){const e=r.value?.grid.gap;if(!!e&&i.value instanceof HTMLElement)i.value?.setAttribute(e,"")}if(!d.value&&!p.value&&i.value instanceof HTMLElement)i.value?.setAttribute("standalone","")}));a((()=>{const t=e.info?JSON.parse(e?.info):null;if(t?.constructor==Object&&!!t?.prefetch)M({...t,lazyTarget:l,query:"readCrowdriffComponent",data:r});else if(!!e.config)r.value=JSON.parse(e.config)?.props}));return{root:l,grid:i,heading:o,data:r,showcontent:d,showlinks:f,showtitle:p,wrappedtitle:c,layoutprops:u}}};const H=["innerHTML"];function L(e,t,s,n,a,h){const v=l("rs-heading");const w=l("rs-content");const M=l("MDButton");const b=l("rs-actions");const _=l("rs-griditem");const T=l("rs-grid");const x=l("MDBlocker");const D=l("MDSkeleton");const L=l("rs-container");return o(),r(L,y({ref:"root","rs-elemental":"uielementalcrowdriff"},n.layoutprops),{default:i((()=>[(o(),r(u,null,{default:i((()=>[c(T,{"xxs-1":"","sm-12":"","span-xs-12":"",ref:"grid"},{default:i((()=>[n.showtitle||n.showcontent||n.showlinks?(o(),r(_,{key:0,content:""},{default:i((()=>[n.showtitle?(o(),r(v,{key:0},{default:i((()=>[d("h2",{heading:"",ref:"heading",scale:"lg",weight:"regular",casing:"display-sm",gutters:"0",caps:"",innerHTML:n.wrappedtitle},null,8,H)])),_:1})):f("",true),n.showcontent?(o(),r(w,{key:1,innerHTML:n.data?.content},null,8,["innerHTML"])):f("",true),n.showlinks?(o(),r(b,{key:2},{default:i((()=>[(o(true),p(m,null,g(n.data?.links,((e,t)=>(o(),r(M,{tag:"a",href:e?.url,target:e?.openinnewwindow?"_blank":null,key:e?.key,index:t,label:e?.title,type:t==0?"contained":"outlined",class:k(e?.css),chunky:"",outlined:"",solid:""},null,8,["href","target","index","label","type","class"])))),128))])),_:1})):f("",true)])),_:1})):f("",true)])),_:1},512)])),fallback:i((()=>[c(D,{"aspect-21-9":""},{default:i((()=>[c(x,{active:"true",cursor:"progress",type:"default"})])),_:1})])),_:1}))])),_:1},16)}const S=e(D,[["render",L],["styles",[x]]]);export{S as default};
2//# sourceMappingURL=UIElementalCrowdriff.ce-DI51LhXs.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.