PageSourceSearch

https://www.lmt.lv/_nuxt_www/CGj2ubrp.js

js lmt.lv collected 2026-10-01 09:21:07 UTC 10,389 bytes, 1 lines download raw bytes

1import{D as e,E as t,J as n,Qn as r,Rt as i,Ut as a,_ as o,b as s,bt as c,ct as l,ft as u,g as d,k as f,mt as p,nr as m,o as h,qt as g,v as _,vn as v,wt as y,y as b}from"./DBq4UlV4.js";import{C as x,w as S}from"./AOAW_pOP.js";import{l as ee,n as C,r as w}from"./BeuHDum1.js";import{t as T}from"./DXNjoo4H.js";import{t as E}from"./BWBt8Raj.js";import{t as D}from"./BLBCAefS.js";import{t as O}from"./BDNMzG2s.js";import{t as k}from"./DupGnQ2j.js";import{t as A}from"./C3iGpr5C.js";var j=f({__name:`LmtHeaderLogo`,props:{isBusinessPage:{type:Boolean}},setup(t){let r=n(`current-language`),i=d(()=>r.value===`lv`?t.isBusinessPage?`https://www.lmt.lv/bizness`:`https://www.lmt.lv`:t.isBusinessPage?`https://www.lmt.lv/en/business`:`https://www.lmt.lv/en`),a=d(()=>D[r.value]);return(t,n)=>(p(),_(k,{class:`flex items-center`,url:i.value,"aria-label":a.value.header.logoAriaLabel},{default:g(()=>[e(A,{class:`h-10 w-28`})]),_:1},8,[`url`,`aria-label`]))}}),M={},N={xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 18 20`};function P(e,t){return p(),s(`svg`,N,[...t[0]||=[o(`path`,{stroke:`#F6F6F6`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M16.8 18.66v-1.95a3.9 3.9 0 0 0-3.9-3.9H5.1a3.9 3.9 0 0 0-3.9 3.9v1.95M9 9.14a3.9 3.9 0 1 0 0-7.8 3.9 3.9 0 0 0 0 7.8Z`},null,-1)]])}var F=O(M,[[`render`,P]]),I={class:`flex size-6 items-center justify-center rounded-sm bg-red-700 text-sm leading-none font-medium text-white`,"data-hj-suppress":``},L=f({__name:`LmtHeaderProfileInitials`,props:{initials:{}},setup(e){return(t,n)=>(p(),s(`span`,I,m(e.initials),1))}}),R=[`aria-label`],z=f({__name:`LmtHeaderExitIcon`,setup(e){let t=n(`current-language`),r=d(()=>D[t.value]);return(e,t)=>(p(),s(`button`,{class:`lmt-header-exit-icon flex size-15 items-center justify-center sm:size-18`,"aria-label":r.value.header.ariaExitMobileMenu,type:`button`},[...t[0]||=[o(`svg`,{class:`size-4.5`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 19 19`},[o(`path`,{stroke:`#F6F6F6`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M1 18 17.97 1.03M1 1l16.97 16.97`})],-1)]],8,R))}}),B={class:`flex items-center justify-between text-gray-200 lg:hidden`},V={key:0,class:`flex items-center pl-4`},H={"data-hj-suppress":``,class:`text-[1.125rem] font-bold`},U={key:1,class:`flex items-center pl-4`},W={key:0,class:`flex flex-col items-center border-b border-gray-800 px-6 lg:pb-7.5`},G={class:`hidden lg:flex lg:items-center`},K={class:`max-w-57.5 truncate text-[1.125rem] font-bold text-gray-200`,"data-hj-suppress":``},q={key:1,class:`space-y-3 border-b border-gray-800 px-4 py-5 lg:px-6`},J=[`innerHTML`],Y={key:2,class:`flex justify-center pt-7.5`},X={key:3,class:`px-4 pt-5 pb-2.5 lg:px-6`},Z=[`id`],Q={class:`mr-3`},$=f({__name:`LmtHeaderProfileDropdown`,props:{profile:{default:()=>void 0},name:{},initials:{},profileMenuItems:{},isMobile:{type:Boolean,default:!1}},emits:[`close`,`onAuth`,`onProfileChange`,`onLogout`],setup(r,{emit:i}){let a=i,l=n(`current-language`),u=d(()=>D[l.value]);return(n,i)=>(p(),s(h,null,[o(`div`,B,[r.profile?(p(),s(`div`,V,[e(L,{class:`mr-4 size-8`,initials:r.initials},null,8,[`initials`]),o(`span`,H,m(r.name),1)])):(p(),s(`div`,U,[e(F,{class:`mr-2.5 size-5`}),o(`span`,null,m(u.value.header.authNavItemText),1)])),e(z,{autofocus:``,onClick:i[0]||=e=>a(`close`)})]),r.profile?(p(),s(`div`,W,[o(`div`,G,[e(L,{class:`mr-4 size-8`,initials:r.initials},null,8,[`initials`]),o(`span`,K,m(r.name),1)]),r.profile.hasMultipleAccounts??!0?(p(),_(E,{key:0,id:`lmt-header-change-profile-button${r.isMobile?`-mobile`:`-desktop`}`,class:`my-7.5 w-42.5 lg:mb-0`,color:`black`,size:`s`,theme:`dark-2`,type:`secondary`,onClick:i[1]||=e=>a(`onProfileChange`)},{default:g(()=>[o(`span`,null,m(u.value.header.authChangeProfileText),1),i[4]||=o(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 14 18`},[o(`path`,{stroke:`#F6F6F6`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M10.611 1.056 13.5 3.945 10.61 6.833`}),o(`path`,{stroke:`#F6F6F6`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M.5 8.278V6.833a2.889 2.889 0 0 1 2.889-2.888h10.11M3.389 16.944.5 14.055l2.889-2.889`}),o(`path`,{stroke:`#F6F6F6`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M13.5 9.722v1.444a2.889 2.889 0 0 1-2.89 2.89H.5`})],-1)]),_:1},8,[`id`])):b(``,!0)])):b(``,!0),r.profileMenuItems.length>0?(p(),s(`div`,q,[(p(!0),s(h,null,c(r.profileMenuItems,t=>(p(),s(`div`,{key:t.url},[e(k,{url:t.url,class:`inline-flex items-center gap-2 text-gray-200 transition-colors hover:text-white`},{default:g(()=>[t.icon?(p(),_(y(t.icon),{key:0,class:`size-5 flex-none`})):b(``,!0),o(`span`,{innerHTML:t.name},null,8,J)]),_:2},1032,[`url`])]))),128))])):b(``,!0),r.profile?b(``,!0):(p(),s(`div`,Y,[e(E,{id:`lmt-header-auth-button${r.isMobile?`-mobile`:`-desktop`}`,class:`w-auto min-w-32.5`,color:`black`,size:`m`,theme:`dark-2`,type:`secondary`,"aria-label":u.value.header.ariaAuthorizeButton,onClick:i[2]||=e=>a(`onAuth`)},{default:g(()=>[t(m(u.value.header.authButtonText),1)]),_:1},8,[`id`,`aria-label`])])),r.profile?(p(),s(`div`,X,[o(`button`,{id:`lmt-header-logout-button${r.isMobile?`-mobile`:`-desktop`}`,class:`flex items-center text-gray-200`,type:`button`,onClick:i[3]||=e=>a(`onLogout`)}
1,[o(`span`,Q,m(u.value.header.authLogoutText),1),i[5]||=o(`svg`,{class:`size-4`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 17 17`},[o(`path`,{stroke:`#F6F6F6`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M6 16H2.667A1.667 1.667 0 0 1 1 14.333V2.667A1.667 1.667 0 0 1 2.667 1H6M11.833 12.667 16 8.5l-4.167-4.167M16 8.5H6`})],-1)],8,Z)])):b(``,!0)],64))}}),te=f({__name:`LmtHeaderProfileDialog`,props:{profile:{},name:{},initials:{},profileMenuItems:{}},emits:[`close`,`onAuth`,`onProfileChange`,`onLogout`],setup(t,{emit:n}){let r=n;return l(()=>{document.body.style.overflow=`hidden`}),u(()=>{document.body.style.overflow=`auto`}),(n,i)=>(p(),_(T,{open:!0,class:`lmt-header-profile-dropdown fixed top-0 left-0 z-6 m-0 w-full max-w-full bg-black pb-7.5 sm:top-0 sm:right-0 sm:bottom-auto sm:left-auto sm:max-w-103.5`},{default:g(()=>[e($,{"is-mobile":!0,profile:t.profile,name:t.name,initials:t.initials,"profile-menu-items":t.profileMenuItems,onClose:i[0]||=e=>r(`close`),onOnAuth:i[1]||=e=>r(`onAuth`),onOnProfileChange:i[2]||=e=>r(`onProfileChange`),onOnLogout:i[3]||=e=>r(`onLogout`)},null,8,[`profile`,`name`,`initials`,`profile-menu-items`])]),_:1}))}}),ne={class:`hidden lg:flex lg:items-center`},re=f({__name:`LmtHeaderProfile`,props:{profile:{default:()=>void 0},profileMenuItems:{default:()=>[]},isMobile:{type:Boolean,default:!1}},emits:[`onAuth`,`onProfileChange`,`onLogout`],setup(t,{emit:c}){let f=c,T=n(`current-language`),E=d(()=>t.profile?!t.profile.name.first:!1),O=d(()=>{if(t.profile){let e=t.profile.name;return E.value?t.profile.name:`${e.first} ${e.last}`}return``}),k=d(()=>{if(O.value){if(E.value)return O.value.slice(0,2).toUpperCase();{let e=O.value.split(` `),t=e[0].substring(0,1).toUpperCase();return e.length>1&&(t+=e[e.length-1].substring(0,1).toUpperCase()),t}}return``}),A=v(!1),j=()=>{A.value=!0},M=()=>{A.value=!1},N=d(()=>D[T.value]),P=i(`lmtHeaderProfile`);C(P,()=>t.isMobile?void 0:M()),w(`Escape`,e=>{e.preventDefault(),M()});let I=e=>{!P.value?.contains(e.target)&&!t.isMobile&&M()};l(()=>{document.addEventListener(`focusin`,I)}),u(()=>{document.removeEventListener(`focusin`,I)});let R=v(!1);{let e=ee(P);a(()=>{R.value=e.value})}return(n,i)=>(p(),s(`div`,{ref_key:`lmtHeaderProfile`,ref:P,class:`group/lmt-header-profile lg:relative`},[(p(),_(y(t.isMobile?`button`:`div`),{class:r([`lmt-header-profile-button${t.isMobile?`-mobile`:`-desktop`}`,`flex items-center p-0 text-gray-200 lg:h-15 lg:border-b lg:border-transparent lg:px-3.5 lg:text-sm lg:group-focus-within/lmt-header-profile:border-b lg:group-focus-within/lmt-header-profile:border-gray-800 lg:group-focus-within/lmt-header-profile:bg-gray-850 lg:group-hover/lmt-header-profile:border-b lg:group-hover/lmt-header-profile:border-gray-800 lg:group-hover/lmt-header-profile:bg-gray-850`]),role:t.isMobile?void 0:`button`,tabindex:t.isMobile?void 0:0,type:t.isMobile?`button`:void 0,"aria-expanded":!!(R.value||A.value),"aria-haspopup":`true`,"aria-label":t.profile?`${N.value.header.ariaAuthorizedProfile} ${O.value}, ${N.value.header.openWithSpaceKey}`:`${N.value.header.ariaUnauthorizedProfile}, ${N.value.header.openWithSpaceKey}`,onClick:i[0]||=e=>t.isMobile?j():void 0,onKeydown:i[1]||=x(S(e=>A.value?M():j(),[`prevent`]),[`space`])},{default:g(()=>[t.profile?(p(),_(L,{key:0,class:`lg:mr-3`,initials:k.value},null,8,[`initials`])):(p(),_(F,{key:1,class:`size-5 lg:mr-3`})),o(`span`,ne,m(N.value.header.authNavItemText),1),i[8]||=o(`svg`,{class:`hidden size-5 lg:ml-2.5 lg:block lg:size-2`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 8 4`},[o(`path`,{stroke:`#F6F6F6`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`m1 .5 3 3 3-3`})],-1)]),_:1},40,[`class`,`role`,`tabindex`,`type`,`aria-expanded`,`aria-label`])),t.isMobile?(p(),s(h,{key:0},[A.value?(p(),_(te,{key:0,profile:t.profile,name:O.value,initials:k.value,"profile-menu-items":t.profileMenuItems,onClose:M,onOnAuth:i[2]||=e=>f(`onAuth`),onOnProfileChange:i[3]||=e=>f(`onProfileChange`),onOnLogout:i[4]||=e=>f(`onLogout`)},null,8,[`profile`,`name`,`initials`,`profile-menu-items`])):b(``,!0)],64)):(p(),s(`div`,{key:1,class:r([[A.value?`block`:`hidden`,t.profile?`py-7.5`:`pb-7.5`,{"group-hover/lmt-header-profile:block":!t.isMobile}],`lmt-header-profile-dropdown absolute top-auto right-0 z-6 w-80 rounded-tl-[0.3125rem] rounded-b-[0.3125rem] bg-gray-850`])},[e($,{profile:t.profile,name:O.value,initials:k.value,"profile-menu-items":t.profileMenuItems,onOnAuth:i[5]||=e=>f(`onAuth`),onOnProfileChange:i[6]||=e=>f(`onProfileChange`),onOnLogout:i[7]||=e=>f(`onLogout`)},null,8,[`profile`,`name`,`initials`,`profile-menu-items`])],2))],512))}}),ie=[`aria-label`],ae=f({__name:`LmtHeaderBurger`,setup(e){let t=n(`current-language`),r=d(()=>D[t.value]);return(e,t)=>(p(),s(`button`,{id:`lmt-header-burger`,type:`button`,class:`ml-10 sm:ml-13`,"aria-label":r.value.header.ariaBurgerMenu},[...t[0]||=[o(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 10`,class:`size-6`},[o(`path`,{stroke:`#F6F6F6`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M1 .5h22M1 9.5h22`})],-1)]],8,ie))}});
1export{j as i,re as n,z as r,ae as t};

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.