1"use strict";(self.webpackChunkug_react_i18n_es6=self.webpackChunkug_react_i18n_es6||[]).push([[5798],{12245:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(57763),o=r.n(n),a=r(74458),s=r.n(a)()(o());s.push([e.id,".h0nrl{min-height:1px}.Urus6{padding:var(--ug-spacing-xl) var(--ug-spacing-s)}.tlbom{background:var(--ug-color-bg-secondary)}",""]),s.locals={lazyRoot:"h0nrl",section:"Urus6",greyBackground:"tlbom"};const l=s},46267:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(57763),o=r.n(n),a=r(74458),s=r.n(a)()(o());s.push([e.id,"._0Oi6C[data-hovered]{opacity:var(--ug-opacity-hovered)}._0Oi6C[data-pressed]{opacity:var(--ug-opacity-pressed)}._0Oi6C[data-disabled]{opacity:var(--ug-opacity-disabled)}._0Oi6C{display:inline-block;width:-moz-fit-content;width:fit-content}.ZEpPm{--ug-courses-color-for-beginners:var(--ug-color-accent-yellow);--ug-courses-color-acoustic-guitar:#ffcfa6;--ug-courses-color-chords-and-progressions:#ffad72;--ug-courses-color-electric-guitar:#ff9cca;--ug-courses-color-scales-and-modes:#fcef7d;--ug-courses-color-techniques-and-skills:var(--ug-courses-color-chords-and-progressions);--ug-courses-color-solo-and-improvisation:#ffc5dc;--ug-courses-color-how-to-write-songs:#ff9d5b;--ug-courses-color-singing:var(--ug-color-accent-yellow);--ug-courses-color-piano:#fcef7d;--ug-courses-color-music-production:var(--ug-courses-color-how-to-write-songs);--ug-courses-color-more:var(--ug-courses-color-solo-and-improvisation);--icon-size:40px;aspect-ratio:1/1;color:#141417;display:flex;flex-direction:column;height:100%;justify-content:space-between;padding:var(--ug-spacing-m)}.ZEpPm._85rko{background-color:var(--ug-courses-color-for-beginners)}.ZEpPm.GzEig{background-color:var(--ug-courses-color-acoustic-guitar)}.ZEpPm.h5uCU{background-color:var(--ug-courses-color-scales-and-modes)}.ZEpPm.oxnKA{background-color:var(--ug-courses-color-techniques-and-skills)}.ZEpPm.IBv0L{background-color:var(--ug-courses-color-singing)}.ZEpPm.UZHw9{background-color:var(--ug-courses-color-piano)}.ZEpPm.Bd751{background-color:var(--ug-courses-color-music-production)}.ZEpPm._8W92n{background-color:var(--ug-courses-color-more)}.ZEpPm.TbHSh{background-color:var(--ug-courses-color-solo-and-improvisation)}.ZEpPm.uBLrr{background-color:var(--ug-courses-color-how-to-write-songs)}.ZEpPm.LJpyW{background-color:var(--ug-courses-color-chords-and-progressions)}.ZEpPm.Y2qHE{background-color:var(--ug-courses-color-electric-guitar)}.ZEpPm .LaeLX{font-size:30px;font-weight:var(--ug-font-weight-normal);letter-spacing:.5px;line-height:28px}",""]),s.locals={link:"_0Oi6C",card:"ZEpPm","for-beginners":"_85rko","acoustic-guitar":"GzEig","scales-and-modes":"h5uCU","techniques-and-skills":"oxnKA",singing:"IBv0L",piano:"UZHw9","music-production":"Bd751",more:"_8W92n","solo-and-improvisation":"TbHSh","how-to-write-songs":"uBLrr","chords-and-progressions":"LJpyW","electric-guitar":"Y2qHE",title:"LaeLX"};const l=s},15146:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(57763),o=r.n(n),a=r(74458),s=r.n(a)()(o());s.push([e.id,".M_hn8{gap:var(--ug-spacing-m);padding:var(--ug-spacing-xs) calc(var(--ug-spacing-m) + var(--ug-spacing-s));scroll-padding:calc(var(--ug-spacing-m) + var(--ug-spacing-s))}._7-5VY{padding-left:var(--ug-spacing-s);padding-right:var(--ug-spacing-s)}._4Zcvb{min-width:calc(28.57143% - var(--ug-spacing-m)*3/3.5 + var(--ug-spacing-m)/3.5 + var(--ug-spacing-s)/3.5)}.wGXjN{min-width:calc(18.18182% - var(--ug-spacing-m)*5/5.5 + var(--ug-spacing-m)/5.5 + var(--ug-spacing-s)/5.5)}",""]),s.locals={scrollZone:"M_hn8",header:"_7-5VY","slide-3":"_4Zcvb","slide-5":"wGXjN"};const l=s},10190:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(57763),o=r.n(n),a=r(74458),s=r.n(a)()(o());s.push([e.id,"._5KC71{margin-left:calc(var(--ug-spacing-s)*-1);margin-right:calc(var(--ug-spacing-s)*-1);padding-bottom:var(--ug-spacing-xs)}",""]),s.locals={container:"_5KC71"};const l=s},28265:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(57763),o=r.n(n),a=r(74458),s=r.n(a)()(o());s.push([e.id,".PwHNb{align-items:stretch;display:flex;flex-direction:column;gap:var(--ug-spacing-m);position:relative;width:100%}.k4qVM{height:100%;position:relative;width:100%}",""]),s.locals={carousel:"PwHNb",panel:"k4qVM"};const l=s},99899:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(57763),o=r.n(n),a=r(74458),s=r.n(a)()(o());
1s.push([e.id,".MUhJf{-webkit-overflow-scrolling:touch;align-items:stretch;display:flex;list-style:none;margin:0;overflow:auto;padding:0;scroll-snap-type:x mandatory;scrollbar-width:none;width:100%}.MUhJf::-webkit-scrollbar{display:none}.t0RfE{display:flex;list-style:none}.afIgP{flex-direction:column;overflow-x:hidden;scroll-snap-type:y mandatory}._53vNW{flex-shrink:0}",""]),s.locals={carousel:"MUhJf",slide:"t0RfE",vertical:"afIgP",verticalSlide:"_53vNW"};const l=s},89847:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(57763),o=r.n(n),a=r(74458),s=r.n(a)()(o());s.push([e.id,".nb0P2{align-items:center;display:flex;flex-direction:row;justify-self:flex-end;margin-left:auto}.ZhcwU{align-items:center;display:flex;flex-direction:row;margin-left:var(--ug-spacing-xs)}.yDq7T{background-color:var(--ug-color-bg-secondary);border-radius:var(--ug-border-radius-full)}.yDq7T:first-child{margin-right:var(--ug-spacing-xs)}._00XcO{color:var(--ug-color-text-primary)}._2QnuW{color:var(--ug-color-text-primary);padding:0 var(--ug-spacing-s)}.bSpDq{min-width:-moz-max-content;min-width:max-content}",""]),s.locals={actions:"nb0P2",navigationActions:"ZhcwU",navigationAction:"yDq7T",viewAllButton:"_00XcO",viewAllLink:"_2QnuW",noWrap:"bSpDq"};const l=s},36611:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(57763),o=r.n(n),a=r(74458),s=r.n(a)()(o());s.push([e.id,'.df_EW{bottom:0;display:flex;justify-content:space-between;left:0;pointer-events:none;position:absolute;right:0;top:0}.NWn6L{align-items:center;flex-direction:row}.C0HVJ{align-items:center;flex-direction:column}.Sq-9v{align-items:center;align-self:stretch;display:flex;flex-shrink:0;justify-content:center}.fZ9Ii::before{content:"";pointer-events:none;position:absolute}.C0HVJ .fZ9Ii::before{height:calc(var(--ug-spacing-xxl)*2);left:0;right:0}.C0HVJ .uSflg.fZ9Ii::before{background:linear-gradient(to bottom,var(--ug-carousel-fade-color,transparent),transparent);top:0}.C0HVJ .TU27L.fZ9Ii::before{background:linear-gradient(to top,var(--ug-carousel-fade-color,transparent),transparent);bottom:0}.NWn6L .fZ9Ii::before{bottom:0;top:0;width:calc(var(--ug-spacing-xxl)*2)}.NWn6L .uSflg.fZ9Ii::before{background:linear-gradient(to right,var(--ug-carousel-fade-color,transparent),transparent);left:0}.NWn6L .TU27L.fZ9Ii::before{background:linear-gradient(to left,var(--ug-carousel-fade-color,transparent),transparent);right:0}.UnOqN{background-color:var(--ug-color-text-contrast);border-radius:var(--ug-border-radius-full);pointer-events:auto;position:relative}',""]),s.locals={overlay:"df_EW",horizontal:"NWn6L",vertical:"C0HVJ",slot:"Sq-9v",withFade:"fZ9Ii",slotStart:"uSflg",slotEnd:"TU27L",action:"UnOqN"};const l=s},15003:(e,t,r)=>{r.d(t,{b:()=>g});var n=r(20386),o=r.n(n),a=r(502),s=r(23278),l=r.n(s),i=r(12245),c={injectType:"styleTag",insert:"head",singleton:!1};l()(i.Z,c);const d=i.Z.locals||{};var u=r(24517);const g=(0,a.forwardRef)((({children:e,hasGreyBackground:t,className:r},n)=>0===a.Children.toArray(e).length?null:(0,u.tZ)("div",{ref:n,className:o()(d.section,t?d.greyBackground:void 0,r),children:e})));g.displayName="SimpleSection"},76412:(e,t,r)=>{r.d(t,{H:()=>a});var n=r(502),o=r(85290);const a=(e,t,r)=>{const a=(0,n.useRef)(!1),s=(0,n.useRef)(r);s.current=r;const l=(0,n.useRef)(t);l.current=t;const i=(0,n.useState)(null),c=i[0],d=i[1];return(0,n.useEffect)((()=>{if(c&&!a.current){const t=new IntersectionObserver((([r])=>{var n;!a.current&&r.intersectionRatio>=e&&(o.w.send(l.current),null===(n=s.current)||void 0===n||n.call(s),a.current=!0,t.disconnect())}),{threshold:e});return t.observe(c),()=>{t.disconnect()}}}),[c,e]),d}},51464:(e,t,r)=>{r.d(t,{c:()=>l});var n=r(40410),o=r(43963),a=r(59317),s=r(76412);const l=(e,t,{enabled:r=!0}={})=>{const l=(0,a.Z)({registerExperimentStart:n.$});return(0,s.H)(e,t,r?()=>{l.registerExperimentStart({id:o.t.TABS_FOR_ME_3})}:void 0)}},57465:(e,t,r)=>{r.r(t),r.d(t,{TabCoursesContainer:()=>ie});var n=r(40665),o=r(4517),a=r(15003),s=r(51464),l=r(502),i=r(73253),c=r(53618),d=r(59317),u=r(38314),g=r(99322);const h=(0,u.P1)([g.dH],(e=>0!==e.length));var v=r(68766),p=r(40311),f=r(7113);const m={loadCategories:()=>p.Z.get({url:f.eK+"/edu/tab"})},b=(0,i.A0)("tabCourses"),x=()=>async(e,t,{logger:r})=>{e(b.actions.start());try{const t=await m.loadCategories();if(!t)return void e(b.actions.stop());const r=(0,v.K)({categories:t});r.categories.length?e(g.xi.setCategories(r.categories)):e(b.actions.setError("no data"))}catch(t){r.error(t),e(b.actions.setError("load failed"))}finally{e(b.actions.stop())}};var w=r(71088),Z=r(97104),y=r(85290),P=r(20386),C=r.n(P),N=r(89851),k=r(1057),E=r(23278),L=r.n(E),A=r(46267),T={injectType:"styleTag",insert:"head",singleton:!1};L()(A.Z,T);const B=A.Z.locals||{};var S=r(24517);const I=({title:e,category:t,url:r,Icon:n,onPress:o})=>(0,S.tZ)(k.f,{href:r,className:B.link,onPress:o,children:(0,S.BX)("div",{className:C()(B.card,B[""+t]),children:[(0,S.tZ)(n,{}),(0,S.tZ)(N.x,{type:"heading-s",className:B.title,children:e})]})});var M=r(47131),_=r(15146),H={injectType:"styleTag",insert:"head",singleton:!1};L()(_.Z,H);const V=_.Z.locals||{},z=({visibleCardsCount:e,children:t,...r})=>(0,S.tZ)(M.l,{...r,scrollZoneClassName:V.scrollZone,slideClassName:V["slide-"+e],headerClassName:V.header,children:t});var R=r(44531),W=r(1344),U=r(84348),q=r(87193),j=r(68387);const X=(0,j.I)("0 0 20 20",(0,S.tZ)("path",{d:"M3 5.736c.747 4.83 3.249 9.228 7 12.264 3.751-3.036 6.253-7.434 7-12.264a8.7 8.7 0 0 0-.969-1.183A8.44 8.44 0 0 0 10 2a8.44 8.44 0 0 0-6.031 2.553A8.7 8.7 0 0 0 3 5.736"}));var O=r(83088),D=r(72395);const J=(0,j.I)("0 0 20 20",(0,S.BX)("g",{children:[(0,S.tZ)("path",{d:"M1 14V1h13v2H3v11z"}),(0,S.tZ)("path",{fillRule:"evenodd",d:"M5 5h13v13H5zm11 1-5 2v3.05a2.5 2.5 0 1 0 2 2.45v-3.3L16 9z",clipRule:"evenodd"})]}));var K=r(80026),G=r(24853);const Y=(0,j.I)("0 0 20 20",(0,S.tZ)("path",{d:"M10 3.495a6.51 6.51 0 0 0-6.506 6.51c0 .967.21 1.884.588 2.709a4.99 4.99 0 0 1 4.921-4.19V18.5c-4.15-.58-7.503-4.236-7.503-8.495C1.5 5.308 5.306 1.5 10 1.5s8.5 3.808 8.5 8.505c0 4.26-3.353 7.914-7.503 8.495V8.523a4.98 4.98 0 0 1 4.921 4.19 6.5 6.5 0 0 0 .588-2.708A6.51 6.51 0 0 0 10 3.495"}));var F=r(43144);const Q={23:"for-beginners",1:"acoustic-guitar",29:"chords-and-progressions",92:"electric-guitar",35:"scales-and-modes",44:"techniques-and-skills",38:"solo-and-improvisation",41:"how-to-write-songs",20:"singing",14:"piano",170:"music-production",0:"more"},$={23:R.W,1:W.s,29:U.l,92:q.e,35:X,44:O.S,38:D.Y,41:J,20:K.L,14:G.$,170:Y,0:F.D},ee="scroll",te="arrow_prev",re="arrow_next",ne=()=>{const e=(0,c.Z)([g.dH,h]),t=e[0],r=e[1],n=(0,Z.Q)().t,o=(0,l.useRef)(0),a=(0,l.useRef)(null),s=e=>{null!=t&&t.length&&y.w.send({event:"Courses Cards Scroll",params:{scroll_type:e}})},i=(0,l.useCallback)((e=>{const t=e.currentTarget.scrollLeft,r=t>o.current?"right":"left";r!==a.current&&(a.current=r,s(ee)),o.current=t}),[]);return(0,S.tZ)(z,{ariaLabel:n({message:["Carousel of courses categories"]}),title:n({message:["Theory and Practice"]}),headerActions:{hasPrevNextButtons:!0,headerButtonText:n({message:["View all"]}),onViewAllClick:()=>((0,w.U)(f.eK+"/courses"),void y.w.send({event:"Courses See All Click"})),onPreviousClick:()=>s(te),onNextClick:()=>s(re)},visibleCardsCount:r?5:3,onScroll:e=>i(e),children:r?t.map((({title:e,categoryId:t,url:r},n)=>{const o=$[t];return o?(0,S.tZ)(I,{Icon:o,title:e,category:Q[t],url:r,onPress:()=>((e,t)=>{y.w.send({event:"Courses Card Click",params:{category_id:e+"",category_pos:t+""}})})(t,n+1)},t):null})):null})};var oe=r(10190),ae={injectType:"styleTag",insert:"head",singleton:!1};L()(oe.Z,ae);const se=oe.Z.locals||{},le=(0,l.forwardRef)((({children:e},t)=>(0,S.tZ)("div",{ref:t,className:se.container,children:e}))),ie=()=>{const e=(()=>
1{const e=(0,i.QT)(b),t=e.isLoading,r=e.error,n=(0,c.Z)([h])[0],o=(0,d.Z)({loadTabCourses:x});return(0,l.useEffect)((()=>{o.loadTabCourses()}),[]),{isLoading:t&&!n,error:r}})(),t=e.isLoading,r=e.error,u=(0,s.c)(.1,{event:"Courses Cards View"});return r?null:(0,S.tZ)(a.b,{children:t?(0,S.tZ)(n.gC,{justify:"center",children:(0,S.tZ)(o.$,{size:"s"})}):(0,S.tZ)(le,{ref:u,children:(0,S.tZ)(ne,{})})})}},47131:(e,t,r)=>{r.d(t,{l:()=>R});var n=r(20386),o=r.n(n),a=r(502),s=r(13683);const l="undefined"==typeof document?a.useEffect:a.useLayoutEffect,i=(e,t)=>{const r=c(e);if(!t)return r;const n=c(t);return{left:r.left-n.left,top:r.top-n.top,right:r.right-n.left,bottom:r.bottom-n.top,width:r.width,height:r.height}},c=e=>{const t=e.getBoundingClientRect();let r=0,n=0,o=e.parentElement;for(;o;)r+=o.scrollLeft,n+=o.scrollTop,o=o.parentElement;const a=t.left+r,s=t.top+n;return{left:a,top:s,right:a+t.width,bottom:s+t.height,width:t.width,height:t.height}},d=(e,t,r)=>{const n=((e,t)=>{const r=window.getComputedStyle(e).getPropertyValue("scroll-padding-"+t)||"0px";if("auto"===r)return 0;const n="Unsupported scroll padding value, expected <length> or <percentage> value, received "+r;if(r.endsWith("px")){const e=parseInt(r);return u(!Number.isNaN(e),n),e}if(r.endsWith("%")){const t=parseInt(r);return u(!Number.isNaN(t),n),e.clientWidth/100*t}throw new g(n)})(e,r),o=((e,t)=>{const r=window.getComputedStyle(e).getPropertyValue("scroll-margin-"+t)||"0px",n="Unsupported scroll margin value, expected <length> value, received "+r;u(r.endsWith("px"),n);const o=parseInt(r);return u(!Number.isNaN(o),n),o})(t,r),a=i(t,t.parentElement);return Math.min(n+o,a[r])};function u(e,t){if(!e)throw new g(t)}class g extends Error{constructor(e){super("[react-snap-carousel]: "+e)}}var h=r(23278),v=r.n(h),p=r(99899),f={injectType:"styleTag",insert:"head",singleton:!1};v()(p.Z,f);const m=p.Z.locals||{};var b=r(24517);const x={x:"ArrowLeft",y:"ArrowUp"},w={x:"ArrowRight",y:"ArrowDown"},Z=({children:e,ariaLabel:t,scrollRef:r,prev:n,next:s,snapPointIndexes:l,elementsPerPage:i,axis:c="x",className:d,scrollSnapMode:u="page",slideClassName:g,onScroll:h})=>{const v="y"===c;return(0,b.tZ)("ul",{className:o()(m.carousel,v&&m.vertical,d),ref:r,"aria-label":t,onKeyDown:e=>{switch(e.preventDefault(),e.key){case x[c]:n({behavior:"smooth"});break;case w[c]:s({behavior:"smooth"})}},onScroll:e=>{null==h||h(e)},children:a.Children.map(e,((e,t)=>{let r=!1;i?r=0==t%i:l.has(t)&&(r=!0);let n={};return("slide"===u||r)&&(n={scrollSnapAlign:"start"}),(0,b.tZ)("li",{className:o()(m.slide,v&&m.verticalSlide,g),style:n,...r?{"data-should-snap":"true"}:{},children:e})}))})};var y=r(23582),P=r(49845),C=r(72191),N=r(1295),k=r(89847),E={injectType:"styleTag",insert:"head",singleton:!1};v()(k.Z,E);const L=k.Z.locals||{},A=({hasPrevNextButtons:e,onPreviousClick:t,onNextClick:r,onViewAllClick:n,onViewAllUrl:a,headerButtonText:s,hasPrevPage:l,hasNextPage:i,prevButtonAriaLabel:c,nextButtonAriaLabel:d})=>(0,b.BX)("div",{className:L.actions,children:[s&&(a?(0,b.tZ)(P.r,{className:o()(L.viewAllLink,L.noWrap),href:a,onPress:n,children:s}):(0,b.tZ)(y.z,{className:L.noWrap,state:"tertiary",onPress:n,children:s})),e&&(i||l)&&(0,b.BX)("div",{className:L.navigationActions,children:[(0,b.tZ)(y.z,{"aria-label":c,Icon:C.w,className:L.navigationAction,onPress:t,isDisabled:!l,state:"secondary"}),(0,b.tZ)(y.z,{"aria-label":d,Icon:N.X,className:L.navigationAction,onPress:r,isDisabled:!i,state:"secondary"})]})]});var T=r(97045),B=r(65893),S=r(36611),I={injectType:"styleTag",insert:"head",singleton:!1};v()(S.Z,I);const M=S.Z.locals||{},_=({axis:e,hasPrevPage:t,hasNextPage:r,prevButtonAriaLabel:n,nextButtonAriaLabel:a,onPreviousClick:s,onNextClick:l})=>{const i="y"===e,c=i?T.g:C.w,d=i?B.v:N.X;return(0,b.BX)("div",{className:o()(M.overlay,i?M.vertical:M.horizontal),children:[(0,b.tZ)("div",{className:o()(M.slot,M.slotStart,t&&M.withFade),children:t&&(0,b.tZ)(y.z,{"aria-label":n,Icon:c,className:M.action,iconState:"inverse",onPress:s,state:"secondary"})}),(0,b.tZ)("div",{className:o()(M.slot,M.slotEnd,r&&M.withFade),children:r&&(0,b.tZ)(y.z,{"aria-label":a,Icon:d,className:M.action,iconState:"inverse",onPress:l,state:"secondary"})})]})};var H=r(28265),V={injectType:"styleTag",insert:"head",singleton:!1};v()(H.Z,V);const z=H.Z.locals||{},R=({title:e,ariaLabel:t,axis:r="x",navigationPlacement:n="header",children:c,className:g,scrollZoneClassName:h,elementsPerPage:v,slideClassName:p,headerClassName:f,headerActions:m,onScroll:x})=>{const w=(({axis:e="x",initialPages:t=[]}={})=>{const r="x"===e?"width":"height",n="x"===e?"scrollWidth":"scrollHeight",o="x"===e?"clientWidth":"clientHeight",s="x"===e?"left"
1:"top",c="x"===e?"right":"bottom",g="x"===e?"scrollLeft":"scrollTop",h=(0,a.useState)(null),v=h[0],p=h[1],f=(0,a.useState)({pages:t,activePageIndex:0}),m=f[0],b=m.pages,x=m.activePageIndex,w=f[1],Z=()=>(u(v,"Expected scrollEl to be defined"),Array.from(v.children).some((e=>(u(e instanceof HTMLElement,"Expected HTMLElement"),"true"===e.dataset.shouldSnap)))),y=(0,a.useCallback)((e=>{if(!v)return;if(Math.floor(v[n]-v[g])<=v[o])return void w({pages:e,activePageIndex:e.length-1});const t=Array.from(v.children),r=v.getBoundingClientRect(),a=e.map((e=>{const n=e[0],o=t[n];u(o instanceof HTMLElement,"Expected HTMLElement");const a=d(v,o,s),l=o.getBoundingClientRect()[s]-r[s]-a;return Math.abs(l)})),l=Math.min(...a),i=a.indexOf(l);w({pages:e,activePageIndex:i})}),[v,o,s,n,g]),P=(0,a.useCallback)((()=>{if(!v)return;const e=Array.from(v.children),t=v.getBoundingClientRect(),n=Z();let o;const a=e.reduce(((e,a,l)=>{u(a instanceof HTMLElement,"Expected HTMLElement");const g=e[e.length-1],h=i(a,a.parentElement);if(!g||"true"===a.dataset.shouldSnap||!n&&h[c]-o>Math.ceil(t[r])){e.push([l]);const t=d(v,a,s);o=h[s]-t}else g.push(l);return e}),[]);y(a)}),[y,v,r,c,s]);l((()=>{P()}),[P]),(0,a.useEffect)((()=>{const e=()=>{P()};return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)}}),[P]),(0,a.useEffect)((()=>{if(!v)return;const e=()=>{y(b)};return v.addEventListener("scroll",e),()=>{v.removeEventListener("scroll",e)}}),[y,b,v]);const C=(e,t)=>{if(!v)return;const r=b[e];if(!r)return;const n=Array.from(v.children)[r[0]];if(!(n instanceof HTMLElement))return;const o=d(v,n,s),a=(null==t?void 0:t.behavior)||"smooth";v.scrollTo({behavior:a,[s]:i(n,n.parentElement)[s]-o})},N=(0,a.useMemo)((()=>new Set(b.map((e=>e[0])))),[b]),k=x<b.length-1;return{hasPrevPage:0<x,hasNextPage:k,prev:e=>{const t=Z();let n=x-1;if(t&&x===b.length-1){u(v,"Expected scrollEl to be defined");const e=v.getBoundingClientRect(),t=e[r],o=e[s],a=Array.from(v.children).filter((e=>(u(e instanceof HTMLElement,"Expected HTMLElement"),"true"===e.dataset.shouldSnap))).filter((e=>{const r=e.getBoundingClientRect()[c];return r>=o&&r<=o+t}));n=Math.max(0,b.length-a.length-1)}C(n,e)},next:e=>{C(x+1,e)},goTo:C,refresh:P,pages:b,activePageIndex:x,snapPointIndexes:N,scrollRef:p}})({axis:r}),y=w.scrollRef,P=w.hasPrevPage,C=w.hasNextPage,N=w.prev,k=w.next,E=w.snapPointIndexes,L=w.refresh,T=(0,a.useMemo)((()=>a.Children.count(c)),[c]),B=()=>{null!=m&&m.onPreviousClick&&m.onPreviousClick(),N({behavior:"smooth"})},S=()=>{null!=m&&m.onNextClick&&m.onNextClick(),k({behavior:"smooth"})},I=!(null==m||!m.hasPrevNextButtons)&&"overlay"===n,M={...m,hasPrevNextButtons:(null==m?void 0:m.hasPrevNextButtons)&&!I,hasPrevPage:P,hasNextPage:C,prevButtonAriaLabel:null==m?void 0:m.prevButtonAriaLabel,nextButtonAriaLabel:null==m?void 0:m.nextButtonAriaLabel,onNextClick:S,onPreviousClick:B};return(0,a.useLayoutEffect)((()=>{L()}),[T,L]),(0,b.BX)("div",{className:o()(z.carousel,g),children:[e&&(0,b.tZ)("div",{className:f,children:(0,b.tZ)(s.M,{header:e,actionsSlot:m?(0,b.tZ)(A,{...M}):null})}),(0,b.BX)("div",{className:z.panel,children:[(0,b.tZ)(Z,{scrollRef:y,prev:N,next:k,onScroll:e=>{x&&x(e)},axis:r,className:h,snapPointIndexes:E,elementsPerPage:v,slideClassName:p,ariaLabel:t,scrollSnapMode:"slide",children:c}),I&&(0,b.tZ)(_,{axis:r,hasPrevPage:P,hasNextPage:C,prevButtonAriaLabel:null==m?void 0:m.prevButtonAriaLabel,nextButtonAriaLabel:null==m?void 0:m.nextButtonAriaLabel,onPreviousClick:B,onNextClick:S})]})]})}},1344:(e,t,r)=>{r.d(t,{s:()=>a});var n=r(68387),o=r(24517);const a=(0,n.I)("0 0 20 20",(0,o.tZ)("path",{d:"m12 4 2-1v12a1.5 1.5 0 0 0-1.5 1.5V18h-5v-1.5A1.5 1.5 0 0 0 6 15V3l2 1 2-1zm3 3a1 1 0 1 1 2 0 1 1 0 0 1-2 0m1 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2m-1 4a1 1 0 1 1 2 0 1 1 0 0 1-2 0M4 12a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2"}))},84348:(e,t,r)=>{r.d(t,{l:()=>a});var n=r(68387),o=r(24517);const a=(0,n.I)("0 0 20 20",(0,o.tZ)("path",{d:"M8 18h4v-7H8v1.563a2 2 0 0 1 0 3.874zm5 0h4v-7h-4zm4-9V2h-4v1.563a2 2 0 0 1 0 3.874V9zm-5-7H8v7h4V7.437a2 2 0 0 1 0-3.874zM7 2H3v7h4zm-4 9v7h4v-1.563a2 2 0 0 1 0-3.874V11z"}))},24853:(e,t,r)=>{r.d(t,{$:()=>a});var n=r(68387),o=r(24517);const a=(0,n.I)("0 0 20 20",(0,o.tZ)("path",{fillRule:"evenodd",d:"M19 3v14H1V3zM9 5H7v6H5V5H3v9h14V5h-2v6h-2V5h-2v6H9z",clipRule:"evenodd"}))},83088:(e,t,r)=>{r.d(t,{S:()=>a});var n=r(68387),o=r(24517);const a=(0,n.I)("0 0 20 20",(0,o.tZ)("path",{d:"M12.5 2A1.5 1.5 0 0 0 11 3.5v5a1.5 1.5 0 0 0-3 0 1.5 1.5 0 1 0-3 0v-4a1.5 1.5 0 1 0-3 0V11a8 8 0 1 0 16 0V8h-1a2 2 0 0 0-2 2v1.5a.5.5 0 0 1-1 0v-8A1.5 1.5 0 0 0 12.5 2"}))},44531:(e,t,r)=>{r.d(t,{W:()=>a});var n=r(68387),o=r(24517);const a=(0,n.I)("0 0 20 20",(0,o.tZ)("path",{fillRule:"evenodd",d:"M17.78 2.22a7.37 7.37 0 0 0-6.996 1.938L8.772 6.17a6.61 6.61 0 0 0-6.289 1.737l4.262 4.261c.017.017-.006.048-.028.037a2.533 2.533 0 0 0-3.522 1.307L1 19l5.489-2.195a2.533 2.533 0 0 0 1.307-3.522c-.012-.021.02-.045.036-.028l4.001 4.001a6.61 6.61 0 0 0 1.83-5.86l2.18-2.18A7.37 7.37 0 0 0 17.78 2.22m-4.552 6.698a1.517 1.517 0 1 1-2.146-2.146 1.517 1.517 0 0 1 2.146 2.146",clipRule:"evenodd"}))}}]); 2//# sourceMappingURL=/static/public/build/ug_react_i18n_es6/../../sourcemap/ug_react_i18n_es6/202609/5798.c6bc05d991992854b8215aaa3630243e.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.