PageSourceSearch

https://www.m2.com/_next/static/chunks/pages/learn-to-earn-e8b4c81e55359218.js

js m2.com collected 2026-10-02 07:43:33 UTC 25,337 bytes, 1 lines download raw bytes

1!function(){try{var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="d16b0a19-ad63-4915-8ed1-3e4545dc4d8c",n._sentryDebugIdIdentifier="sentry-dbid-d16b0a19-ad63-4915-8ed1-3e4545dc4d8c")}catch(n){}}(),function(){try{var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="d16b0a19-ad63-4915-8ed1-3e4545dc4d8c",n._sentryDebugIdIdentifier="sentry-dbid-d16b0a19-ad63-4915-8ed1-3e4545dc4d8c")}catch(n){}}();var _sentryModuleMetadataGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_sentryModuleMetadataGlobal._sentryModuleMetadata=_sentryModuleMetadataGlobal._sentryModuleMetadata||{},_sentryModuleMetadataGlobal._sentryModuleMetadata[Error().stack]=Object.assign({},_sentryModuleMetadataGlobal._sentryModuleMetadata[Error().stack],{"_sentryBundlerPluginAppKey:m2-web":!0});var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"d3b6b6885ef70522fe45868cf1b6e1e7696080d0"},(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8131],{39217:(n,e,t)=>{"use strict";t.r(e),t.d(e,{__N_SSG:()=>nw,default:()=>nk});var r=t(37876),a=t(14232),o=t(93350),i=t(30794),l=t(77328),s=t.n(l),c=t(75279),d=t(32756),u=t(40525),p=t(35298),m=t(39975),f=t(28888),g=t(72921),h=t(38993),x=t(54587),y=t.n(x),b=t(13518),v=t(59714);function _(){let n=(0,f._)(["\n    padding: 0;\n    margin-top: ",";\n    border-bottom: 1px solid ",";\n    border-radius: 0;\n    background: ",";\n\n    & .MuiBox-root {\n      width: initial;\n      gap: ",";\n    }\n\n    & .m-switcher-item div p {\n      color: ",";\n      font-size: ",";\n    }\n\n    & .m-switcher-item:first-of-type {\n      margin-left: ",";\n    }\n\n    & .m-switcher-item.active {\n      background: ",";\n      border-radius: 0;\n      border-bottom: "," solid ",";\n    }\n\n    "," {\n      margin-top: ",";\n    }\n\n    "," {\n      & .MuiBox-root {\n        width: 100%;\n        gap: 0;\n      }\n\n      & .m-switcher-item:first-of-type {\n        margin: 0;\n      }\n\n      & .m-switcher-item {\n        padding: "," 2%;\n      }\n    }\n  "]);return _=function(){return n},n}function A(){let n=(0,f._)(["\n    padding-bottom: ",";\n    border-bottom: 1px solid ",";\n    margin-bottom: ",";\n  "]);return A=function(){return n},n}function w(){let n=(0,f._)(["\n    position: relative;\n    overflow: hidden;\n    gap: ",";\n    padding: "," ",";\n    border-radius: ",";\n    color: ",";\n    margin-top: ",";\n    background: ",";\n    z-index: ",";\n    .primary {\n      color: ",";\n    }\n\n    "," {\n      padding: "," ",";\n      margin-top: ",";\n    }\n  "]);return w=function(){return n},n}function k(){let n=(0,f._)(["\n    position: absolute;\n    top: ",";\n    right: -",";\n    z-index: ",";\n\n    "," {\n      top: -",";\n      right: 0;\n    }\n  "]);return k=function(){return n},n}(0,g.Ay)(v.A)(n=>{let{theme:e}=n;return(0,h.AH)(_(),e.spaces.medium,e.colors.border,e.colors.card,e.spaces.medium,e.colors.textPrimary,e.spaces.medium,e.spaces.medium,e.colors.card,e.spaces.xsmall,e.colors.textPrimary,e.breakpoints.up("md"),e.spaces.large,e.breakpoints.only("xs"),e.spaces.small)});let j=(0,g.Ay)(b.E)(n=>{let{theme:e}=n;return(0,h.AH)(A(),e.spaces.small,e.colors.border,e.spaces.large)}),E=(0,g.Ay)("article")(n=>{let{theme:e}=n;return(0,h.AH)(w(),e.spaces.small,e.spaces.large,e.spaces.medium,e.borderRadius.xsmall,"dark"===e.themeStyle?e.colors.typePrimary:e.colors.oppositeTypePrimary,e.spaces.small,"dark"===e.themeStyle?e.colors.oppositeTypePrimary:e.colors.typePrimary,e.zInd.foreground,e.colors.primary,e.breakpoints.up("md"),e.spaces.xxlarge,e.spaces.xlarge,e.spaces.medium)}),H=(0,g.Ay)(y())(n=>{let{theme:e}=n;return(0,h.AH)(k(),e.spaces.xsmall,e.spaces.xxlarge,e.zInd.background,e.breakpoints.up("md"),e.spaces.medium)});var M=t(89099),C=t(23725),P=t(46742),S=t(43247),B=t(2159),V=t(36225);function I(){let n=(0,f._)(["\n    padding-top: ",";\n    width: 100%;\n    display: flex;\n    flex-direction: column;
1\n    align-items: center;\n    gap: ",";\n  "]);return I=function(){return n},n}let O=(0,g.Ay)("div")(n=>{let{theme:e}=n;return(0,h.AH)(I(),e.spaces.xxlarge,e.spaces.medium)}),T=n=>{let{text:e,btnText:t,btnCTA:a,variant:i}=n,{t:l}=(0,o.Bd)("profile");return(0,r.jsxs)(O,{children:[(0,r.jsx)(b.E,{align:"center",variant:i,children:(0,r.jsx)(o.x6,{t:l,i18nKey:l(e)})}),t&&a&&(0,r.jsx)(V.Ay,{textType:u.pn.Bold,textVariant:u.VH.Medium,type:V.G2.Primary,variant:V.VG.Medium,onClick:()=>a(),text:l(t)})]})};var R=t(2294);function G(){let n=(0,f._)(["\n    margin-top: ",";\n  "]);return G=function(){return n},n}function N(){let n=(0,f._)(["\n    display: flex;\n    gap: ",";\n    margin-bottom: ",";\n  "]);return N=function(){return n},n}function D(){let n=(0,f._)(["\n    width: 100%;\n    justify-content: center;\n    margin-bottom: ",";\n  "]);return D=function(){return n},n}function L(){let n=(0,f._)(["\n    padding: ",";\n    border: 1px solid ",";\n    border-radius: ",";\n    margin-top: ",";\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n\n    "," {\n      width: calc(50% - ",");\n    }\n  "]);return L=function(){return n},n}function F(){let n=(0,f._)(["\n    display: flex;\n    flex-wrap: wrap;\n\n    "," {\n      gap: ",";\n    }\n  "]);return F=function(){return n},n}let z=(0,g.Ay)("div")(n=>{let{theme:e}=n;return(0,h.AH)(G(),e.spaces.medium)});(0,g.Ay)("div")(n=>{let{theme:e}=n;return(0,h.AH)(N(),e.spaces.small,e.spaces.xlarge)});let W=(0,g.Ay)(R.A)(n=>{let{theme:e}=n;return(0,h.AH)(D(),e.spaces.small)});(0,g.Ay)("div")(n=>{let{theme:e}=n;return(0,h.AH)(L(),e.spaces.medium,e.colors.outline,e.spaces.xlarge,e.spaces.medium,e.breakpoints.up("md"),e.spaces.medium)});let K=(0,g.Ay)("div")(n=>{let{theme:e}=n;return(0,h.AH)(F(),e.breakpoints.up("md"),e.spaces.medium)});var q=t(85165);function Q(){let n=(0,f._)(["\n    display: flex;\n    gap: ",";\n    margin-bottom: ",";\n    flex-direction: column;\n  "]);return Q=function(){return n},n}function X(){let n=(0,f._)(["\n    width: 5px;\n    height: 5px;\n    border-radius: 50%;\n    margin: 0 ",";\n    background: ",";\n  "]);return X=function(){return n},n}function Y(){let n=(0,f._)(["\n    display: flex;\n    flex-direction: column;\n    gap: ",";\n    padding-left: ",";\n  "]);return Y=function(){return n},n}function J(){let n=(0,f._)(["\n    display: flex;\n    align-items: center;\n    padding-left: ",";\n  "]);return J=function(){return n},n}function U(){let n=(0,f._)(["\n    padding: "," 0 "," ",";\n  "]);return U=function(){return n},n}function Z(){let n=(0,f._)(["\n    padding: ",";\n    border: 1px solid ",";\n    border-radius: ",";\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    justify-content: space-between;\n\n    "," {\n      width: calc(50% - ",");\n      max-width: 388px;\n    }\n  "]);return Z=function(){return n},n}function $(){let n=(0,f._)(["\n    background: #414049;\n    padding: "," ",";\n    min-width: 126px;\n    height: ",";\n    border-radius: ",";\n    display: flex;\n    align-items: center;\n    gap: ",";\n  "]);return $=function(){return n},n}function nn(){let n=(0,f._)(["\n    width: 100%;\n    height: ",";\n    background-color: ",";\n    border-radius: ",";\n    position: relative;\n    margin-top: ",";\n  "]);return nn=function(){return n},n}function ne(){let n=(0,f._)(["\n    position: absolute;\n    left: 50%;\n    bottom: ",";\n    transform: translate(-50%, -50%);\n  "]);return ne=function(){return n},n}function nt(){let n=(0,f._)(["\n    position: absolute;\n    left: ",";\n    top: ",";\n    color: ",";\n  "]);return nt=function(){return n},n}function nr(){let n=(0,f._)(["\n    width: 96%;\n    position: absolute;\n    bottom: ",";\n    left: ",";\n    color: ",";\n  "]);return nr=function(){return n},n}function na(){let n=(0,f._)(["\n    position: relative;\n  "]);return na=function(){return n},n}let no=(0,g.Ay)("div")(n=>{let{theme:e}=n;return(0,h.AH)(Q(),e.spaces.small,e.spaces.xlarge)}),ni=(0,g.Ay)("div")(n=>{let{theme:e}=n;return(0,h.AH)(X(),e.spaces.small,e.colors.surfaceBorder)}),nl=(0,g.Ay)("div")(n=>{let{theme:e}=n;return(0,h.AH)(Y(),e.spaces.small,e.spaces.small)}),ns=(0,g.Ay)("div")(n=>{let{theme:e}=n;return(0,h.AH)(J(),e.spaces.small)}),nc=(0,g.Ay)("div")(n=>{let{theme:e}=n;return(0,h.AH)(U(),e.spaces.large,e.spaces.small,e.spaces.medium)}),nd=(0,g.Ay)("div")(n=>{let{theme:e}=n;return(0,h.AH)(Z(),e.spaces.medium,e.colors.outline,e.spaces.xlarge,e.breakpoints.up("md"),e.spaces.medium)}),nu=(0,g.Ay)("div")(n=>{let{theme:e}=n;return(0,h.AH)($(),e.spaces.xsmall,e.spaces.small,e.spaces.large,e.spaces.medium,e.spaces.xsmall)}),np=(0,g.Ay)("div")(n=>{let{theme:e}=n;return(0,h.AH)(nn(),e.spaces.small,e.colors.background,e.spaces.large,e.spaces.small)}),nm=(0,g.Ay)(b.E)(n=>{let{theme:e}=n;return(0,h.AH)(ne(),e.spaces.xsmall)}),nf=(0,g.Ay)("div")(n=>{let{theme:e}=n;return(0,h.AH)(nt(),e.spaces.small,e.spaces.small,e.colors.white)}),ng=(0,g.Ay)("div")(n=>{let{theme:e}=n;return(0,h.AH)(nr(),e.spaces.medium,e.spaces.small,e.colors.white)}),nh=(0,g.Ay)("div")(()=>(0,h.AH)(na())),nx=n=>{let{type:e}=n,t={start:"start"},{t:a}=(0,o.Bd)("learntoEarn"),i=e===t.start?"\uD83D\uDD25":"\uD83C\uDF89";return(0,r.jsxs)(nu,{children:[(0,r.jsx)("span",{children:i}),(0,r.jsx)(b.E,{variant:u.VH.ExtraSmall,children:a(e===t.start?"learn.course.start":"learn.c
1ourse.complete")})]})},ny=n=>{let{chapterCount:e,completedChapter:t}=n,{t:a}=(0,o.Bd)("learntoEarn"),i=e&&t?t/e*100:0;return(0,r.jsxs)(np,{children:[(0,r.jsxs)(nm,{align:"center",variant:u.VH.ExtraExtraSmall,children:[t,"/",e," ",a("learn.chapter")]}),(0,r.jsx)(q.ke,{percentage:i})]})},nb=n=>{let{title:e,difficultyLevel:t,chapterCount:a,completedChapter:i,content:l}=n,{t:s}=(0,o.Bd)("learntoEarn"),c={1:s("learn.beginner"),2:s("learn.intermediate"),3:s("learn.advanced")};return(0,r.jsxs)(no,{children:[(0,r.jsxs)(nh,{children:[(0,r.jsx)(y(),{src:"".concat(p.vz,"/learn-course-bg.svg"),alt:"learn-to-earn",layout:"responsive",width:356,height:209,style:{borderRadius:"24px"}}),0!==i&&(0,r.jsx)(nf,{children:(0,r.jsx)(nx,{type:a===i?"complete":"start"})}),null!=i&&i>0&&i!==a&&(0,r.jsx)(ng,{children:(0,r.jsx)(ny,{chapterCount:a,completedChapter:i})})]}),(0,r.jsxs)(ns,{children:[(0,r.jsx)(b.E,{variant:u.VH.ExtraSmall,color:"textSecondary",children:c[null!=t?t:1]}),(0,r.jsx)(ni,{}),(0,r.jsx)(b.E,{variant:u.VH.ExtraSmall,color:"textSecondary",children:"".concat(a," ").concat(s("learn.chapters"))})]}),(0,r.jsxs)(nl,{children:[(0,r.jsx)(b.E,{variant:u.VH.Medium,type:u.pn.Bold,customVariantBehavior:!0,children:"".concat(s("learn.course"),' "').concat(e,'"')}),(0,r.jsx)(b.E,{variant:u.VH.ExtraSmall,customVariantBehavior:!0,color:"textSecondary",children:l})]})]})},nv=n=>{let{title:e,btnText:t,btnCTA:a,pending:i,pendingText:l,pendingDescription:s,difficultyLevel:c,chapterCount:d,completedChapter:p,content:m}=n,{t:f}=(0,o.Bd)("learntoEarn"),g=d===p;return(0,r.jsxs)(nd,{children:[(0,r.jsx)(nb,{title:e,difficultyLevel:c,chapterCount:d,completedChapter:p,content:m}),i&&(0,r.jsxs)(r.Fragment,{children:[l&&(0,r.jsx)(W,{type:"warning2",children:(0,r.jsx)(b.E,{color:"warning1",align:"center",variant:u.VH.ExtraSmall,type:u.pn.Bold,children:f(l)})}),s&&(0,r.jsx)(b.E,{align:"center",variant:u.VH.ExtraSmall,customVariantBehavior:!0,color:"textTertiary",children:f(s)})]}),!i&&(0,r.jsx)(V.Ay,{type:g?V.G2.Secondary:V.G2.Primary,text:f(t),onClick:()=>a(),textType:u.pn.Bold,variant:V.VG.Medium,fullWidth:!0})]})},n_=n=>{let{onRewardsClick:e,tab:t}
1=n,a={1:"learn.continue",2:"learn.review",3:"learn.start.cta"},{t:i}=(0,o.Bd)("learntoEarn"),{isMobile:l}=(0,d.lW)(),{data:s}=(0,P.Qk)(function(n){switch(n){case"M2 Academy":default:return 1;case"Special":return 2}}(t)),c=(0,B.nd)(),p=(0,M.useRouter)(),m=n=>(0,C.aM)(C.Ay.learn_to_earn_chapters,{rewardsId:n}),f=(n,e)=>{c&&(0,S.M)(n,e),p.push(m(n))};return(0,r.jsx)(r.Fragment,{children:s&&(0,r.jsx)(r.Fragment,{children:Array.isArray(s)?(0,r.jsxs)(z,{children:[(0,r.jsx)(nc,{children:(0,r.jsx)(b.E,{align:"start",variant:l?u.VH.Large:u.VH.ExtraLarge,type:u.pn.Medium,children:i("learn.courses")})}),(0,r.jsx)(K,{children:s.map(n=>(0,r.jsx)(nv,{title:n.title,content:n.content,btnText:a[n.courseProgressStatus],btnCTA:()=>f(n.id,1),difficultyLevel:n.difficultyLevel,chapterCount:null==n?void 0:n.chapterCount,completedChapter:null==n?void 0:n.completedChapterCount},n.code))})]}):(0,r.jsx)(T,{text:"profile.challenge.empty",variant:u.VH.Small,btnText:"profile.challenge.check.rewards",btnCTA:e})})})},nA=()=>{let{t:n}=(0,o.Bd)("learntoEarn"),{isMobile:e}=(0,d.lW)(),t=(0,i.A)(),[l,c]=(0,a.useState)("M2 Academy");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s(),{children:[(0,r.jsx)("title",{children:n("learn.title")}),(0,r.jsx)("meta",{name:"description",content:n("learn.metaDescription")})]}),(0,r.jsx)(j,{type:u.pn.Bold,variant:e?u.VH.Default:u.VH.ExtraLarge,customVariantBehavior:!0,children:n("learn.title")}),(0,r.jsxs)(E,{children:[(0,r.jsx)(m.h,{htmlNode:n("learn.banner.title"),headingProps:{type:u.pn.Bold,variant:e?u.ur.ExtraExtraExtraSmall:u.ur.Small,customVariantBehavior:!0,color:"".concat("dark"===t.themeStyle?t.colors.typePrimary:t.colors.card)}}),(0,r.jsx)(H,{src:"".concat(p.vz,"/reward-banner.webp"),alt:"referral-background",height:e?120:220,width:e?160:280})]}),(0,r.jsx)(n_,{onRewardsClick:()=>c(l),tab:l})]})};var nw=!0;let nk=nA;nA.getLayout=function(n){return(0,r.jsx)(c.u,{children:n})}},39975:(n,e,t)=>{"use strict";t.d(e,{h:()=>d});var r=t(37876),a=t(28888),o=t(72921),i=t(38993),l=t(13518);function s(){let n=(0,a._)(["\n    white-space: pre-wrap;\n    .gradient-text {\n      background-image: ",";\n      -webkit-background-clip: text;\n      -webkit-text-fill-color: transparent;\n      background-clip: text;\n      text-fill-color: transparent;\n    }\n  "]);return s=function(){return n},n}let c=(0,o.Ay)(l.D)(n=>{let{theme:e}=n;return(0,i.AH)(s(),e.colors.boosted)}),d=n=>{let{className:e="",headingProps:t,htmlNode:a}=n;return(0,r.jsx)(c,{...t,className:e,dangerouslySetInnerHTML:{__html:a}})}},42728:(n,e,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/learn-to-earn",function(){return t(39217)}])},43247:(n,e,t)=>{"use strict";t.d(e,{H:()=>i,M:()=>o});var r=t(62422),a=t(26297);let o=(n,e)=>(0,a.E)(r.nC.learn_update_course_progress_status,{method:"POST",hideErrorMsg:!0,params:{status:e,courseProgrammeId:n}}),i=async n=>(0,a.E)((0,r.GP)(r.nC.reward_chapter_certification,{courseId:n}),{method:"GET"})},46742:(n,e,t)=>{"use strict";t.d(e,{AB:()=>x,L6:()=>h,Mm:()=>o,Qk:()=>u,Ss:()=>b,ao:()=>l,bK:()=>d,gG:()=>g,km:()=>p,lm:()=>i,mp:()=>s,nF:()=>y,nr:()=>f,qj:()=>m,xH:()=>c});var r=t(62422),a=t(91412);function o(){let{data:n,isValidating:e,error:t}=(0,a.nP)(r.nC.get_monthlyStatement_list,a.rF,!1,{revalidateOnMount:!0}),o=!n&&!t||e;return{data:null==n?void 0:n.data,isLoading:o}}function i(){return(0,a.nP)(r.nC.referral_details,a.rF,!1,{revalidateOnMount:!0})}function l(){return(0,a.nP)(r.nC.otc_get_profile_settings,a.xE,!1)}function s(){return(0,a.nP)(r.nC.rewards_coupons,a.xE,!1,{revalidateOnMount:!0})}function c(){return(0,a.nP)(r.nC.rewards_certificates,a.xE,!1,{revalidateOnMount:!0})}function d(){return(0,a.nP)(r.nC.challenge_progress,a.xE,!1,{revalidateOnMount:!0})}function u(n){return(0,a.nP)([r.nC.learn_courses,{categoryId:n}],a.xE,!1,{revalidateOnMount:!0})}function p(n){return(0,a.nP)([r.nC.learn_chapter_courses,{chapterId:n}],a.xE,!1,{revalidateOnMount:!0})}function m(n){return(0,a.nP)([r.nC.reward_chapters,{courseProgrammeId:n}],a.xE,!1,{revalidateOnMount:!0})}function f(n){return(0,a.nP)([r.nC.reward_chapter_quiz,{chapterId:n}],a.xE,!1,{revalidateOnMount:!0})}function g(n){return(0,a.nP)([r.nC.reward_chapter_mystery_box,{chapterId:n}],a.xE,!1,{revalidateOnMount:!0})}function h(){return(0,a.nP)(r.nC.get_api_config,a.xE,!0)}function x(n){return(0,a.nP)([r.nC.get_api_list,{...n}],a.dF,!0)}function y(n){return(0,a.nP)((0,r.GP)(r.nC.detail_api_key,{id:n}),a.xE,!0)}function b(){let{data:n,error:e,isValidating:t}=(0,a.nP)(r.nC.get_contact_us,a.xE,!0,{revalidateOnMount:!0,shouldRetryOnError:!1});return{data:n,error:e,isLoading:t}}},59714:(n,e,t)=>{"use strict";t.d(e,{A:()=>T});var r=t(37876),a=t(30794),o=t(14232);let i={root:null,threshold:0},l=n=>{if(n)return!1},s=function(){let n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,[r,a]=(0,o.useState)(!1),s=(0,o.useRef)(null);return(0,o.useEffect)(()=>
1{if(!s.current)return;let r=!1,o=new IntersectionObserver(t=>{let[i]=t;if(r)return;let l=i.isIntersecting;n||!1!==e(l,o)||o.disconnect(),a(l)},{...t});return o.observe(s.current),()=>{o.disconnect(),r=!0}},[s.current,t]),[r,n=>{s.current=n}]};var c=t(13518),d=t(40525),u=t(65358),p=t(28888),m=t(38993),f=t(72921),g=t(32982);function h(){let n=(0,p._)(["\n  -webkit-tap-highlight-color: transparent;\n  display: flex;\n  cursor: pointer;\n  align-items: center;\n  justify-content: center;\n  width: ",";\n  z-index: 1;\n  height: 100%;\n  text-align: center;\n  position: absolute;\n  top: 0;\n  background-color: ",";\n  border-radius: 0 "," "," 0;\n  "," {\n    background-color: ",";\n  }\n\n  &:after,\n  &:before {\n    content: '';\n    position: absolute;\n    height: 100%;\n    pointer-events: none;\n    width: 51px;\n    height: 100%;\n  }\n"]);return h=function(){return n},n}function x(){let n=(0,p._)(["\n    display: flex;\n    align-items: center;\n    padding: ",";\n    background: ",";\n    border-radius: ",";\n    color: ",";\n    width: ",";\n  "]);return x=function(){return n},n}function y(){let n=(0,p._)(["\n      flex: inherit;\n      width: fit-content;\n    "]);return y=function(){return n},n}function b(){let n=(0,p._)(["\n      cursor: pointer;\n    "]);return b=function(){return n},n}function v(){let n=(0,p._)(["\n      p {\n        color: ",";\n      }\n      background-color: ",";\n      border-radius: ",";\n    "]);return v=function(){return n},n}function _(){let n=(0,p._)(["\n    padding: "," ",";\n    text-align: center;\n    cursor: default;\n    flex: 1;\n    ","\n    ","\n    ","\n  "]);return _=function(){return n},n}function A(){let n=(0,p._)(["\n  position: relative;\n  overflow-x: scroll;\n  display: flex;\n  width: 100%;\n  align-items: center;\n  &::-webkit-scrollbar {\n    display: none;\n  }\n"]);return A=function(){return n},n}function w(){let n=(0,p._)(["\n    ","\n    right: -1px;\n\n    &:before {\n      background-image: linear-gradient(\n        ",",\n        "," 0%,\n        rgba(16, 12, 35, 0) 100%\n      );\n      right: ",";\n\n      "," {\n        background-image: linear-gradient(\n          ",",\n          "," 0%,\n          rgba(16, 12, 35, 0) 100%\n        );\n      }\n    }\n    &:after {\n      content: none;\n    }\n  "]);return w=function(){return n},n}function k(){let n=(0,p._)(["\n    ","\n    border-radius: "," 0 0 ",";\n    left: -1px;\n\n    &:after {\n      background-image: linear-gradient(\n        ",",\n        "," 0%,\n        rgba(16, 12, 35, 0) 100%\n      );\n      left: ",";\n      "," {\n        background-image: linear-gradient(\n          ",",\n          "," 0%,\n          rgba(16, 12, 35, 0) 100%\n        );\n      }\n    }\n    &:before {\n      content: none;\n    }\n  "]);return k=function(){return n},n}function j(){let n=(0,p._)(["\n    display: flex;\n    justify-content: center;
1\n    align-items: center;\n    gap: ",";\n  "]);return j=function(){return n},n}function E(){let n=(0,p._)(["\n  white-space: nowrap;\n"]);return E=function(){return n},n}let H=["activeColor","unavailable","activeBackground","stableWidth","active","transparent"],M=n=>(0,m.AH)(h(),n.spaces.xlarge,n.colors.secondaryHover,n.borderRadius.medium,n.borderRadius.medium,n.breakpoints.up("md"),n.colors.secondary),C=(0,f.Ay)(g.A,{shouldForwardProp:n=>!H.includes(n)})(n=>{let{theme:e,stableWidth:t}=n;return(0,m.AH)(x(),e.spaces.xsmall,e.colors.background,e.borderRadius.medium,e.colors.text,t?"fit-content":"100%")}),P=(0,f.Ay)("div",{shouldForwardProp:n=>!H.includes(n)})(n=>{let{theme:e,active:t,stableWidth:r,activeColor:a,activeBackground:o,unavailable:i}=n,l="dark"===e.themeStyle?e.colors.disabled:e.colors.secondary,s="dark"===e.themeStyle?e.colors.typePrimary:e.colors.oppositeTypePrimary;return(0,m.AH)(_(),e.spaces.small,e.spaces.medium,r&&(0,m.AH)(y()),!t&&!i&&(0,m.AH)(b()),t&&(0,m.AH)(v(),a||s,o||l,e.borderRadius.medium))}),S=(0,f.Ay)(g.A)(A()),B=(0,f.Ay)("div")(n=>{let{theme:e}=n;return(0,m.AH)(w(),M(e),"rtl"===e.direction?"90deg":"270deg",e.colors.secondaryHover,e.spaces.xlarge,e.breakpoints.up("md"),"rtl"===e.direction?"90deg":"270deg",e.colors.secondary)}),V=(0,f.Ay)("div")(n=>{let{theme:e}=n;return(0,m.AH)(k(),M(e),e.borderRadius.medium,e.borderRadius.medium,"rtl"===e.direction?"270deg":"90deg",e.colors.secondaryHover,e.spaces.xlarge,e.breakpoints.up("md"),"rtl"===e.direction?"270deg":"90deg",e.colors.secondary)}),I=(0,f.Ay)("div")(n=>{let{theme:e}=n;return(0,m.AH)(j(),e.spaces.small)}),O=(0,f.Ay)(c.E)(E()),T=(0,o.forwardRef)((n,e)=>{let{items:t=[],value:i,stableWidth:l,textVariant:p=d.VH.Medium,type:m=d.pn.Medium,showNavigation:f=!1,onChange:g,colorStyle:h,navIconColor:x,active:y,...b}=n,{direction:v}=(0,a.A)(),_=n=>{g&&g(n)},A=(0,o.useRef)(null);(0,o.useImperativeHandle)(e,()=>null==A?void 0:A.current);let[w,k]=(0,o.useState)(0),j=(n,e)=>{let t=null==A?void 0:A.current;k(w+n),t&&t.scrollTo({top:0,left:"left"===e?-Math.abs(w):Math.abs(w),behavior:"smooth"})},[E,H]=s(!0),[M,T]=s(!0),R=n=>{let e=null==A?void 0:A.current;e&&j(e.offsetWidth-64,n)},G=1===t.length,N=f&&(M||!E&&!M),D=f&&(E||!E&&!M),L=(null==i?void 0:i.key)||i;return(0,r.jsxs)(C,{...b,stableWidth:l,children:[D&&(0,r.jsx)(V,{className:"nav-left",onClick:()=>R("left"),children:(0,r.jsx)(u.A,{color:x,noBackground:!0,name:"rtl"===v?"small-caret-right":"small-caret-left"})}),(0,r.jsx)(S,{ref:A,tabIndex:0,children:t.map((n,e)=>{var a;let o=0===e?T:e===t.length-1?H:null;return"object"==typeof n?(0,r.jsx)(P,{ref:o,className:"m-switcher-item ".concat(G||L!==n.key?"":"active"),stableWidth:!!l,onClick:()=>_(n),active:y||!G&&L===n.key,unavailable:G,activeColor:(null==h?void 0:h.color)||n.color,activeBackground:(null==h?void 0:h.background)||n.background,"data-testid":null!=(a=n.testId)?a:"link-".concat(n.name.toLowerCase()),children:(0,r.jsxs)(I,{children:[n.iconName&&(0,r.jsx)(u.A,{noBackground:!0,name:n.iconName}),(0,r.jsx)(O,{opposite:!G&&L===n.key,variant:p,type:m,children:n.name})]})},n.key):(0,r.jsx)(P,{stableWidth:!!l,onClick:()=>_(n),active:!G&&L===n,unavailable:G,children:(0,r.jsx)(c.E,{opposite:!G&&L===n,variant:p,type:m,children:n})},n)})}),N&&(0,r.jsx)(B,{className:"nav-right",onClick:()=>R("right"),children:(0,r.jsx)(u.A,{color:x,noBackground:!0,name:"rtl"===v?"small-caret-left":"small-caret-right"})})]})})},85165:(n,e,t)=>{"use strict";t.d(e,{D7:()=>v,a1:()=>b,ke:()=>y,mc:()=>h,pD:()=>_,vE:()=>A,yP:()=>x});var r=t(28888),a=t(72921),o=t(38993),i=t(13518),l=t(65358);function s(){let n=(0,r._)(["\n      background-color: ",";\n    "]);return s=function(){return n},n}function c(){let n=(0,r._)(["\n    padding: ",";\n    border: 1px solid ",";\n    border-radius: ",";\n    margin: "," 0;\n    ","\n  "]);return c=function(){return n},n}function d(){let n=(0,r._)(["\n    width: 100%;\n    height: ",";\n    background-color: ",";\n    border-radius: ",";\n    position: relative;\n    margin-top: ",";\n  "]);return d=function(){return n},n}function u(){let n=(0,r._)(["\n    height: 100%;\n    width: ","%;\n    background-color: ",";\n    border-radius: ",";\n  "]);return u=function(){return n},n}function p(){let n=(0,r._)(["\n    padding-left: ",";\n  "]);return p=function(){return n},n}function m(){let n=(0,r._)(["\n    position: absolute;\n    left: 50%;\n    top: 50%;\n    transform: translate(-50%, -50%);\n  "]);return m=function(){return n},n}function f(){let n=(0,r._)(["\n    background-image: ",";\n    position: absolute;\n    bottom: -",";\n    right: 0;\n    width: 40px;\n    height: 40px;\n    border-radius: ",";\n  "]);return f=function(){return n},n}function g(){let n=(0,r._)(["\n    position: absolute;\n    left: 50%;\n    top: 50%;\n    transform: translate(-50%, -50%);\n  "]);return g=function(){return n},n}let h=(0,a.Ay)("div")(n=>{let{theme:e,progressBarBG:t}=n;return(0,o.AH)(c(),e.spaces.medium,e.colors.outline,e.spaces.large,e.spaces.large,t&&(0,o.AH)(s(),e.colors.card))}),x=(0,a.Ay)("div")(n=>{let{theme:e}=n;return(0,o.AH)(d(),e.spaces.mlarge,e.colors.background,e.spaces.large,e.spaces.small)}),y=(0,a.Ay)("div")(n=>{let{theme:e,percentage:t}=n;return(0,o.AH)(u(),t,e.colors.primary,e.spaces.large)}),b=(0,a.Ay)(i.E)(n=>{let{theme:e}=n;return(0,o.AH)(p(),e.spaces.small)}),v=(0,a.Ay)(i.E)((0,o.AH)(m())),_=(0,a.Ay)("div")(n=>{let{theme:e}=n;return(0,o.AH)(f(),e.colors.boosted,e.spaces.small,e.spaces.large)}),A=(0,a.Ay)(l.A)((0,o.AH)(g()))}},n=>{var e=e=>n(n.s=e);n.O(0,[5279,636,6593,8792],()=>e(42728)),_N_E=n.O()}]);

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.