PageSourceSearch

https://live.gasengineersoftware.co.uk/public/dist/pages/chunks/UserDropdown-CKXlQlKe.js

js gasengineersoftware.co.uk collected 2026-10-01 16:40:31 UTC 2,127 bytes, 2 lines download raw bytes

1import{bh as y,bm as v,X as w,b as o,e as i,D as l,H as f,f as a,i as k,F as u,h as I,z as p,M as T,v as b,T as V,d as D,bl as S,r as E,c as C}from"./vendor-BtHvjD32.js";import{a as N,I as U,o as L,b5 as O}from"../index.2122.js";import{h as r,k as $}from"./shared-config-BA2Zx_a8.js";import"./vendor-pdf-GSaOE1r8.js";import"./vendor-datepicker-G1PbVxLG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"2.122"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="bf92cb1f-e113-4a21-ba60-f613ead979b0",e._sentryDebugIdIdentifier="sentry-dbid-bf92cb1f-e113-4a21-ba60-f613ead979b0")})()}catch{}const m={[r.MANAGE_SUBSCRIPTION]:"manage",[r.USER_SETTINGS]:"cog",[r.LOGOUT]:"logout"},B=D({name:"UserDropdown",components:{Icon:U},directives:{clickOutside:S.directive},setup(){const e=E(!1),s=L(),d=C(()=>({name:s.user?.name,links:$(s.user).filter(t=>t.key in m).map(t=>({title:t.title,href:t.href,icon:m[t.key],invisible:!O(t.permissions??[])}))}));return{isVisible:e,changeVisible:t=>{e.value=t},data:d}}}),R=B,A={class:"user-dropdown__data"},G={key:0,class:"user-dropdown__links links"},z=["href","target"];function F(e,s,d,_,t,M){const c=y("Icon"),g=v("click-outside");return w((o(),i("div",{class:p(["header__user user-dropdown",{_active:e.isVisible}]),onClick:s[0]||(s[0]=n=>e.changeVisible(!e.isVisible))},[l("div",A,[l("p",null,f(e.data.name),1),a(c,{icon:"caret_down"})]),a(V,{name:"appearance"},{default:k(()=>[e.isVisible?(o(),i("div",G,[(o(!0),i(u,null,I(e.data.links,(n,h)=>(o(),i(u,{key:h},[n.invisible?b("",!0):(o(),i("a",{key:0,class:p(["links__item",{separate:n.separate}]),href:n.href,target:n.target},[a(c,{icon:n.icon},null,8,["icon"]),T(" "+f(n.title),1)],10,z))],64))),128))])):b("",!0)]),_:1})],2)),[[g,()=>e.changeVisible(!1)]])}const q=N(R,[["render",F]]);export{q as default};
2//# sourceMappingURL=UserDropdown-CKXlQlKe.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.