1"use strict";(globalThis.webpackChunk_telia_company_tv_web_logged_in=globalThis.webpackChunk_telia_company_tv_web_logged_in||[]).push([[109],{"./src/profiles/components/Avatar/index.ts"(e,t,s){s.d(t,{e:()=>r.e});var r=s("./src/profiles/components/Avatar/Avatar.tsx")},"./src/profiles/components/Buttons/index.ts"(e,t,s){s.d(t,{b6:()=>a,ly:()=>f,pM:()=>g,lg:()=>y});var r=s("./src/profiles/components/Buttons/Buttons.styles.ts"),i=s("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),o=s("./src/profiles/components/Avatar/index.ts"),n=s("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const a=({alias:e,altText:t,avatarSrc:s,isSelected:a,onClick:d})=>{const c=(0,i.useId)();return(0,n.FD)(r.D,{"aria-current":a,"aria-describedby":c,as:"button","data-testid":"assume-profile-button",onClick:d,shouldHover:!0,children:[(0,n.Y)(o.e,{imageSrc:s,isSelected:a,variant:"assume"}),(0,n.Y)(r.o,{"data-testid":"assume-profile-button-alias",isSelected:a,children:e}),(0,n.Y)("span",{hidden:!0,id:c,children:t})]})};var d=s("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),c=s("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/react-i18next/dist/es/index.js"),l=s("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]_support_a0dcb4b0ae680db98626d6fd11a2b9d9/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),p=s("./src/shared/components/custom/SmartLink/index.ts"),m=s("./src/shared/utils/breakpoints/mq.ts");const u=(0,l.A)("div",{target:"ettyte42"})({name:"11en623",styles:"display:flex;flex-direction:column;align-items:center;justify-content:center"}),_=(0,l.A)("div",{target:"ettyte41"})("display:flex;justify-content:center;align-items:center;margin:0;border-radius:50%;background-color:",d.ue.color.button.secondaryDefault,";transition:transform 0.2s;width:112px;height:112px;svg{width:40px;height:40px;}",m.mq.S` 2 width: 136px; 3 height: 136px; 4 5 svg { 6 width: 54px; 7 height: 54px; 8 } 9 `," ",m.mq.M` 10 width: 152px; 11 height: 152px; 12 `,";"),h=(0,l.A)(p.i,{target:"ettyte40"})("display:flex;flex-direction:column;position:relative;align-items:center;&:hover,&:focus{",_,"{transform:scale(1.1);}}"),f=()=>{const{t:e}=(0,c.Bd)();return(0,n.Y)(u,{children:(0,n.FD)(h,{as:"button","data-testid":"create-profile-button",href:"/profiles/create",children:[(0,n.Y)(_,{children:(0,n.Y)(d.PA,{name:"Add",role:"none"})}),(0,n.Y)(r.o,{children:e("PROFILES_NEW_PROFILE")})]})})};const x=(0,l.A)("div",{target:"e1pxhkkr0"})({name:"11en623",styles:"display:flex;flex-direction:column;align-items:center;justify-content:center"}),g=({alias:e,imageSrc:t})=>(0,n.FD)(x,{children:[(0,n.Y)(o.e,{imageSrc:t,variant:"disabled"}),(0,n.Y)(r.o,{"data-testid":"edit-profile-alias",children:e})]}),y=({alias:e,altText:t,href:s,imageSrc:a,isCurrent:d,onClick:c})=>{const l=(0,i.useId)();return(0,n.FD)(r.D,{"aria-current":d,"aria-describedby":l,"data-testid":"edit-profile-button",href:s,onClick:c,shouldHover:!0,children:[(0,n.Y)(o.e,{imageSrc:a,isSelected:d,variant:"edit"}),e&&(0,n.FD)(n.FK,{children:[(0,n.Y)(r.o,{"data-testid":"edit-profile-alias",isSelected:d,children:e}),(0,n.Y)("span",{hidden:!0,id:l,children:t})]})]})}},"./src/profiles/views/ProfileSelectForEditView.tsx"(e,t,s){s.r(t),s.d(t,{default:()=>f});var r=s("./src/profiles/providers/UserProvider/UserProvider.tsx"),i=s("./src/shared/components/custom/DecoratedHelmet.tsx"),o=s("./src/shared/components/custom/FadeContainer/index.ts"),n=s("./src/shared/components/custom/MarginContainer/index.ts"),a=s("./src/shared/components/custom/Navbar/index.ts"),d=s("./src/shared/components/ui/Button/index.ts"),c=s("./src/shared/hooks/useTrackPageViewEvent.ts"),l=s("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/react-i18next/dist/es/index.js"),p=s("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs"),m=s("./src/profiles/components/Buttons/index.ts"),u=s("./src/profiles/hooks/useProfileSupport.ts"),_=s("./src/profiles/views/styles.ts"),h=s("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const f=()=>{(0,c.z)();const{t:e}=(0,l.Bd)(),{currentProfile:t,isChildProfile:s,profiles:f,refetchUser:x}=(0,r.u)(),{isCreateProfileAllowed:g,pageMargin:y}=(0,u.u)();
12return(0,a.st)({addOffsetTop:!0,showMenuItems:!1,solidBackground:!0}),f&&f.length?(0,h.FD)(o.y,{"data-testid":"profiles-select-for-edit-view",children:[(0,h.Y)(i.J,{title:e("PROFILES_EDIT_PROFILES")}),(0,h.FD)(n._,{children:[(0,h.Y)(_.A1,{children:e("PROFILES_EDIT_PROFILES")}),(0,h.FD)(_.VR,{role:"list",children:[f?.map(({alias:e,avatar:r,id:i})=>s&&i!==t?.id?(0,h.Y)("li",{children:(0,h.Y)(m.pM,{alias:e,imageSrc:r.square.source})},i):(0,h.Y)("li",{children:(0,h.Y)(m.lg,{alias:e,altText:r.altText,href:`/profiles/edit/${i}`,imageSrc:r.square.source,isCurrent:t?.id===i},i)},i)),g&&(0,h.Y)("li",{children:(0,h.Y)(m.ly,{})})]}),s&&(0,h.Y)(_.sF,{children:(0,h.Y)(_.vp,{children:e("PROFILES_KIDS_PROFILE_EDIT_MODE_INFO")})}),(0,h.Y)(_.NP,{margin:y,children:(0,h.Y)(d.$,{as:p.N_,to:"/profiles",variant:"secondary",children:e("DONE")})})]})]}):(0,h.Y)(_.Ob,{onClickRetry:()=>x(),title:e("AN_UNKNOWN_ERROR_HAS_OCCURRED")})}},"./src/shared/hooks/useTrackPageViewEvent.ts"(e,t,s){s.d(t,{z:()=>n});var r=s("./src/core/analytics/tracker.ts"),i=s("./src/core/router/hooks/useIsModalRouteOpen/index.ts"),o=s("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const n=(e,t)=>{const{isModalRouteOpen:s}=(0,i.u)(),n=(0,o.useRef)("");(0,o.useLayoutEffect)(()=>{const i=e&&n.current===JSON.stringify(e);s||i||t||!e||(r.F.trackPage({page_name:e,page_variant:"page"}),n.current=JSON.stringify(e))},[s,e,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.