PageSourceSearch

https://www.ifm.com/frontend/vue/js/IfmMyIfm-CRkBPf_4.js

js ifm.com collected 2026-10-01 10:15:17 UTC 3,345 bytes, 1 lines download raw bytes

1import{a as M,a5 as G,d as O,u as x,a6 as E,N as V,k as D,a7 as S,a8 as F}from"./main-DrrLAuEI.js";import{k as C,f as R,X as k,C as i,D as c,K as e,L as h,F as U,E as $,Q as T,J as w,H as L,G as N,c as t,w as Y,q as P,u as B,P as z,M as K,r as I}from"./vuetify-CEdGN6Iz.js";const q={class:"ifm-my-ifm-nav"},H={class:"ifm-my-ifm-nav__user-info"},J={viewBox:"0 0 50 50",class:"ifm-my-ifm-nav__user-icon inline-icon","aria-hidden":"true"},Q=["href"],X={class:"ifm-my-ifm-nav__user-name"},j=["aria-label"],W=["viewBox"],Z=["href"],ee={class:"ifm-my-ifm-nav__nav-item-label"},ae=["action"],se=["value"],te={class:"ifm-logged-in-flyout__link hover-link-2 normalize","data-test":"flyout-login-btn-logout"},ne=C({__name:"IfmMyIfmNav",props:{userName:{},userGender:{}},setup(y){const _=y,{translate:d}=M(),p=t(()=>d("MY_IFM_NAVIGATION")),{userGender:r}=R(_),{navItems:f,logoutUrl:v}=G(),g=t(()=>f.value.filter(a=>!a.hidden||!a.hidden.includes("nav")&&!a.hidden.includes("all")&&!(n.value&&a.hidden.includes("mobile")))),b=t(()=>r.value==="f"?"#person-female":"#person-male"),{isViewportSmOrSmaller:n}=O();return(a,l)=>{const s=k("router-link");return i(),c("div",q,[e("div",H,[(i(),c("svg",J,[e("use",{href:b.value},null,8,Q)])),e("div",X,h(y.userName),1)]),l[1]||(l[1]=e("hr",{class:"ifm-my-ifm-nav__separator hr"},null,-1)),e("nav",{class:"ifm-my-ifm-nav__nav","aria-label":p.value,"data-test":"my-ifm-nav"},[(i(!0),c(U,null,$(g.value,({label:o,href:m,icon:u,dataTest:A})=>(i(),T(s,{key:o,to:m,"active-class":"ifm-my-ifm-nav__nav-item--active",class:"ifm-my-ifm-nav__nav-item hover-link-2","data-test":A},{default:w(()=>[(i(),c("svg",{viewBox:u.viewBox,class:"ifm-my-ifm-nav__nav-item-icon inline-icon","aria-hidden":"true"},[e("use",{href:u.href,class:L(u.class)},null,10,Z)],8,W)),e("div",ee,h(o),1)]),_:2},1032,["to","data-test"]))),128)),l[0]||(l[0]=e("hr",{class:"ifm-my-ifm-section__separator hr"},null,-1)),e("form",{id:"logoutForm",method:"post",action:N(v),class:"ifm-logged-in-flyout__logout"},[e("input",{type:"hidden",name:"_csrf",value:a.csrfToken},null,8,se),e("button",te,h(N(d)("MY_ACCOUNT_LABEL_LOGOUT")),1)],8,ae)],8,j)])}}}),oe={class:"ifm-my-ifm"},re=C({__name:"IfmMyIfm",setup(y){const{translate:_,translateOrNull:d}=M(),p=t(()=>_("GLOBALTERM_LABEL_BACK")),r=I(!0),f=I(!1),{userData:v}=x(),g=t(()=>v.value.titleCode==="ms"?"f":"m"),b=t(()=>v.value.fullName||""),n=E(),a=V();Y(n,()=>{r.value=n.path==="/dashboard",f.value=S(n.meta?.isSecondLevel);const s=t(()=>n.meta.label&&typeof n.meta.label=="string"?d(n.meta.label):""),o=t(()=>_("MY_ACCOUNT_LABEL_MY_IFM")),m=t(()=>!s.value||s.value===o.value?`${o.value} - ifm`:`${s.value} - ${o.value} - ifm`);F(m.value)},{immediate:!0});function l(s){s.detail!==a.currentRoute.value.name&&a.push({name:s.detail})}return P(()=>{D().hash==="#/"&&a.push("myIfmDashboard"),document.addEventListener("goToMyIfmPage",l)}),(s,o)=>{const m=k("router-link"),u=k("router-view");return i(),c("div",oe,[B(ne,{class:L(["ifm-my-ifm__nav",{"hide-sm-":!r.value}]),"user-name":b.value,"user-gender":g.value},null,8,["user-name","user-gender","class"]),e("div",{class:L(["ifm-my-ifm__main",{"hide-sm-":r.value}])},[f.value?K("",!0):(i(),T(m,{key:0,to:"/dashboard",class:"ifm-my-ifm__button ifm-button ifm-button--gray hide-md+"},{default:w(()=>[z(h(p.value),1)]),_:1})),B(u)],2)])}}});export{re as default};

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.