PageSourceSearch

https://app.memrise.com/_next/static/chunks/1398-4736ebcc2640191e.js

js memrise.com collected 2026-09-24 08:29:19 UTC 30,919 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1398],{19596:(e,t,r)=>{r.d(t,{q:()=>a});var n=r(73512),i=r(61482),s=r(13478),o=class extends s.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:r}=e,n=super.createResult(e,t),{isFetching:s,isRefetching:o,isError:a,isRefetchError:c}=n,d=r.fetchMeta?.fetchMore?.direction,l=a&&"forward"===d,u=s&&"forward"===d,h=a&&"backward"===d,p=s&&"backward"===d;return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,i.rB)(t,r.data),hasPreviousPage:(0,i.RQ)(t,r.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:h,isFetchingPreviousPage:p,isRefetchError:c&&!l&&!h,isRefetching:o&&!u&&!p}}};function a(e,t){return(0,n.t)(e,o,t)}},25928:(e,t,r)=>{r.d(t,{A:()=>y});var n=r(42969),i=r(59860);r(14232);var s=r(5646),o=r(13515),a=r(66978),c=r(37876);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var u=function(e){return(0,c.jsx)("svg",l(l({},e),{},{children:(0,c.jsx)("path",{fill:"#fff",d:"M5.557 11.314 1.829 7.451a1.05 1.05 0 0 0-.757-.326c-.285 0-.557.117-.758.326a1.137 1.137 0 0 0 0 1.57l4.49 4.653a1.044 1.044 0 0 0 1.516 0L17.686 1.895a1.14 1.14 0 0 0 0-1.57A1.05 1.05 0 0 0 16.928 0c-.284 0-.556.117-.757.326z"})}))};u.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 14"};var h=function(e){return(0,c.jsx)("svg",l(l({},e),{},{children:(0,c.jsx)("path",{d:"M5.557 11.314 1.829 7.451a1.05 1.05 0 0 0-.757-.326c-.285 0-.557.117-.758.326a1.137 1.137 0 0 0 0 1.57l4.49 4.653a1.044 1.044 0 0 0 1.516 0L17.686 1.895a1.14 1.14 0 0 0 0-1.57A1.05 1.05 0 0 0 16.928 0c-.284 0-.556.117-.757.326z"})}))};h.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 14"};var p=s.Ay.input.withConfig({componentId:"sc-1ycnyh6-0"})(function(e){var t=e.theme,r=e.$hasOverlay,n=e.$withCheckmark;return(0,s.AH)(["appearance:none;background:",";border:none;margin:0;position:absolute;cursor:pointer;height:",";width:",";&:checked{background:",";}"],r?t.co.secondary20:"none",n?t.sz.s6:t.sz.s4,n?t.sz.s6:t.sz.s4,r?t.co.primary20:"none")}),g=s.Ay.div.withConfig({componentId:"sc-1ycnyh6-1"})(function(e){var t=e.theme,r=e.$checked;return(0,s.AH)(["background-color:",";border:"," solid ",";border-radius:",";box-sizing:content-box;display:inline-block;position:relative;z-index:1;height:",";width:",";&::after{position:absolute;content:'';pointer-events:none;border-radius:0.1rem;z-index:3;height:",";width:",";bottom:",";left:",";background-color:",";transform:scale(",");transition:background-color 0.2s ease,transform 0.2s ease;}"],t.co.neutral99,t.sz.s05,t.co.neutral20,t.bo.extraSmall,t.sz.s4,t.sz.s4,t.sz.s3,t.sz.s3,t.sz.s05,t.sz.s05,r?t.co.primary20:t.co.neutral99,r?1:.1)}),f=s.Ay.div.withConfig({componentId:"sc-1ycnyh6-2"})(function(e){var t=e.theme,r=e.$checked,n=e.$disabled,i=e.$hasOverlay;return(0,s.AH)(["background-color:",";border:"," solid ",";border-radius:",";box-sizing:content-box;display:inline-block;position:relative;z-index:1;width:",";height:",";"," "," svg{color:white;}&::after{position:absolute;content:'';pointer-events:none;border-radius:0.1rem;z-index:3;height:",";width:",";top:",";left:",";background-color:",";","}"],i?t.co.secondary20:t.co.neutral99,t.sz.s05,i?t.co.primary20:t.co.neutral20,t.bo.extraSmall,t.sz.s6,t.sz.
1s6,r&&(0,s.AH)(["background-color:",";"],t.co.secondary0),n&&(0,s.AH)(["background-color:transparent;border:"," solid ",";"],t.sz.s05,t.co.secondary90),t.sz.s5,t.sz.s5,t.sz.s05,t.sz.s05,i?t.co.secondary20:t.co.neutral99,r&&(0,s.AH)(["background-image:",";background-repeat:no-repeat;background-size:contain;background-position:center center;background-color:",";"],(0,o.O)((0,c.jsx)(a.g,{Svg:i?h:u})),i?t.co.primary20:t.co.secondary0))}),m=s.Ay.div.withConfig({componentId:"sc-1ycnyh6-3"})(function(e){var t=e.theme;return(0,s.AH)(["position:absolute;top:",";left:",";z-index:10;background:",";border-radius:",";padding:",";display:flex;align-items:center;justify-content:center;"],t.sz.s2,t.sz.s2,t.co.secondary20,t.bo.small,t.sz.s1)}),b=["checked","className","as","ref","disabled","ariaText","withCheckmark","hasOverlay"];function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let y=function(e){var t=e.checked,r=e.className,s=e.as,o=e.ref,a=e.disabled,d=e.ariaText,l=e.withCheckmark,u=void 0!==l&&l,h=e.hasOverlay,y=void 0!==h&&h,x=(0,i.A)(e,b),v=(0,c.jsx)(p,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({"aria-label":d,type:"checkbox","data-testid":"checkbox-inner",checked:t,ref:o,as:s,$withCheckmark:u,$hasOverlay:y,disabled:a},x)),j=u?(0,c.jsx)(f,{"aria-label":d,className:r,$checked:t,$disabled:a,$hasOverlay:y,"data-testid":"checkbox-with-checkmark",children:v}):(0,c.jsx)(g,{"aria-label":d,className:r,$checked:t,"data-testid":"checkbox-without-checkmark",children:v});return y?(0,c.jsx)(m,{"data-testid":"checkbox-overlay",children:j}):j}},25941:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(5720),i=r(5646),s=i.Ay.span.withConfig({componentId:"sc-gz1deu-0"})(function(e){var t=e.theme;return(0,i.AH)(["",";background:",";color:",";border-radius:",";padding:"," ",";display:inline-block;white-space:nowrap;"],t.typography.button.s,t.co.success98,t.co.success20,t.bo.small,t.sz.s1,t.sz.s2)}),o=r(37876),a=(0,n.YK)({label:{id:"wordlists_viewscreen_card_badge"}}),c=function(){var e=(0,n.tz)().formatMessage(a.label);return(0,o.jsx)(s,{"data-testid":"wordlist_community_label",children:e})}},30718:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(27925),i=r(76746),s=r(14180);function o(e,t,r){var o=(0,i.x)(null==r?void 0:r.in,e,t),c=(0,n.A)(o,2),d=c[0],l=c[1],u=a(d,l),h=Math.abs((0,s.m)(d,l));d.setDate(d.getDate()-u*h);var p=Number(a(d,l)===-u),g=u*(h-p);return 0===g?0:g}function a(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}},48038:(e,t,r)=>{r.d(t,{x:()=>A});var n=r(42969),i=r(14232),s=r(96557),o=r(2553),a=r(53590),c=r(66185),d=r(5720),l=r(73095),u=r(94257),h=function(e,t){if(e){var r=e.offsetWidth,n=e.scrollLeft;e.scrollLeft=t?n-r:n+r}},p=r(5646),g=r(75406),f=p.Ay.div.withConfig({componentId:"sc-aqpdgg-0"})(function(e){var t=e.theme,r=e.$visibleCards,n=e.$isSmall,i=(0,p.AH)([""]);if(r){var s=function(e){return(0,p.AH)(["calc("," * ("," + 2 * ",") + ("," - 1) * ",")"],r,e,t.sz.s2,r,t.sz.s3)};i=n?(0,p.AH)(["max-width:",";"],s(t.sz.s40)):(0,p.AH)(["max-width:",";@media (max-width:","){max-width:",";}@media (max-width:","){max-width:",";}@media (max-width:","){max-width:",";}"],s(t.sz.ms),t.sz.xxl,s(t.sz.sm),t.sz.sm,s(t.sz.xs),t.sz.s,s(t.sz.s68))}return(0,p.AH)(["width:100vw;position:relative;display:flex;flex-direction:row;overflow:hidden;left:50%;transform:translateX(-50%);margin:0 auto;&:hover,&:active{overflow:visible;}@media (min-width:","){left:unset;transform:unset;width:100%;}",""],t.sz.maxMobileBreakpoint,i)}),m=p.Ay.div.withConfig({componentId:"sc-aqpdgg-1"})(function(e){var t=e.theme;return(0,p.AH)(["width:100%;display:flex;overflow-x:auto;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;padding:"," ",";margin:-"," 0;scrollbar-width:none;@media (min-width:","){padding-left:0;padding-right:0;}
1"],t.sz.s2,t.sz.s4,t.sz.s2,t.sz.maxMobileBreakpoint)}),b=p.Ay.button.withConfig({componentId:"sc-aqpdgg-2"})(function(e){var t=e.theme;return(0,p.AH)(["color:inherit;border:none;padding:0;font:inherit;cursor:pointer;outline:inherit;font-size:",";background-color:transparent;z-index:",";text-align:center;transform:scaleX(",");",";"],t.sz.s8,t.zi.z1,(0,c.g)(t),t.focusVisible)}),w=p.Ay.div.withConfig({componentId:"sc-aqpdgg-3"})(function(e){var t=e.theme,r=e.$isLarge,n=e.$dynamicWidth;return(0,p.AH)(["flex:0 0 auto;scroll-snap-align:start;z-index:1;padding:",";max-width:min-content;"," &:not(:nth-last-child(2)){padding-right:calc("," + ",");}",";"],t.sz.s1,r&&(0,p.AH)(["a{width:",";height:",";}"],t.sz.s66,t.sz.xs),t.sz.s3,t.sz.s1,n&&(0,p.AH)(["[data-testid^='wordlist-card']{width:","px;}"],n))}),y=(0,p.Ay)(g.A).withConfig({componentId:"sc-aqpdgg-4"})(function(e){var t=e.theme;return(0,p.AH)(["width:100%;min-width:",";height:",";min-height:",";"],t.sz.xs,t.sz.xs,t.sz.xs)}),x=p.Ay.div.withConfig({componentId:"sc-aqpdgg-5"})(function(e){var t=e.theme;return(0,p.AH)(["display:flex;gap:",";","{padding-right:",";}"],t.sz.s2,w,t.sz.s2)}),v=r(37876);function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var k=(0,d.YK)({back:{id:"web_header_back"},next:{id:"Next"}}),A=function(e){var t=e.wordlists,r=e.isLoading,n=e.isSmall,p=void 0!==n&&n,g=e.isCheckable,j=void 0!==g&&g,A=e.selectedWordlistIds,O=void 0===A?[]:A,C=e.onWordlistSelectionChange,_=e.activeWordlist,P=e.isCommunity,H=void 0!==P&&P,I=e.languagePairId,M=e.visibleCards,S=e.onEndReached,$=e.onWordlistClick,D=e.backRoute,L=(0,d.tz)(),E=(0,i.useRef)(null),R=(0,i.useRef)(null),N=(0,i.useRef)(null),W=(0,i.useState)(!1),q=W[0],F=W[1],U=(0,i.useState)(!1),B=U[0],T=U[1],Y=(0,i.useState)(!1),X=Y[0],K=Y[1],J=(0,i.useState)(),G=J[0],Z=J[1],Q=(0,s.Ub)({maxWidth:c.A.sz.maxMobileBreakpoint}),V=(0,a.v1)(R,"10px",(null==E?void 0:E.current)||void 0),ee=(0,a.v1)(N,"10px",(null==E?void 0:E.current)||void 0);(0,i.useEffect)(function(){ee&&S&&S()},[ee,S]);var et=(0,i.useCallback)(function(){!M&&Q&&E.current&&0!==t.length?Z(function(e){var t=e.container,r=e.cardsCount,n=e.isSmallCard?160:320,i=t.offsetWidth-4,s=Math.floor(i/(n+20)),o=(i-s*(n+20))/n;if(!(s>=r)&&(!(o>=.2)||!(o<=.9)))return Math.floor(i/Math.min(s+.2+ +(o>.9),r)-20)}({container:E.current,cardsCount:t.length,isSmallCard:p})):Z(void 0)},[Q,p,t.length,M]);return((0,i.useEffect)(function(){F(!0)},[]),(0,i.useEffect)(function(){q&&(T(!Q&&!V),K(!Q&&!ee),et())},[Q,V,ee,q,et]),(0,i.useEffect)(function(){if(E.current){var e=new ResizeObserver(et);return e.observe(E.current),function(){e.disconnect()}}},[et]),r&&q)?(0,v.jsx)(f,{children:(0,v.jsx)(m,{children:(0,v.jsx)(x,{children:[1,2,3,4].map(function(e){return(0,v.jsx)(w,{children:(0,v.jsx)(y,{"data-testid":"loading-skeleton-card"})},"loading-".concat(e))})})})}):(0,v.jsxs)(f,{"data-testid":"wordlist-carousel-wrapper",$visibleCards:M,$isSmall:p,children:[B&&(0,v.jsx)(b,{"aria-label":L.formatMessage(k.back),title:L.formatMessage(k.back),onClick:function(){return h(E.current,!c.A.rtl)},"data-testid":"displayLeft",children:(0,v.jsx)(o.A,{name:"displayLeft"})}),(0,v.jsxs)(m,{ref:E,children:[(0,v.jsx)("div",{ref:R}),t.map(function(e){return(0,v.jsx)(w,{$isLarge:!p,$dynamicWidth:G,children:p?(0,v.jsx)(u.I,z(z({},e),{},{isCheckable:j,isSelected:O.includes(e.wordlistId),onSelectionChange:C,onWordlistClick:$,languagePairId:I,isCommunity:H,backRoute:D})):(0,v.jsx)(l.N,z(z({},e),{},{isActive:(null==_?void 0:_.wordlistId)===e.wordlistId,languagePairId:I,backRoute:D}))}
1,"wordlist-".concat(e.wordlistId))}),(0,v.jsx)("div",{ref:N})]}),X&&(0,v.jsx)(b,{"aria-label":L.formatMessage(k.next),title:L.formatMessage(k.next),onClick:function(){return h(E.current,c.A.rtl)},"data-testid":"displayRight",children:(0,v.jsx)(o.A,{name:"displayRight"})})]})}},73095:(e,t,r)=>{r.d(t,{N:()=>_});var n=r(42969),i=r(63857),s=r(60180),o=r.n(s),a=r(14232),c=r(48230),d=r.n(c),l=r(5720),u=r(96557),h=r(2553),p=r(25941),g=r(14780),f=r(53403),m=r(4285),b=r(99634),w=r(26900),y=r(43526),x=r(62296),v=function(e){var t=e.maxLines,r=e.minFontSize,n=e.maxFontSize,i=(0,a.useRef)(null);return(0,a.useEffect)(function(){var e=i.current;e&&requestAnimationFrame(function(){var i,s=n;for(e.style.fontSize="".concat(s,"px"),e.style.overflow="hidden",e.style.display="-webkit-box",e.style.webkitBoxOrient="vertical",e.style.webkitLineClamp=String(t);s>r&&(i=parseFloat(getComputedStyle(e).lineHeight),!(e.scrollHeight<=i*t));)s-=1,e.style.fontSize="".concat(s,"px")})},[t,r,n]),{elementRef:i}},j=r(68567),z=r(66185),k=r(86606),A=r(37876);function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var C=(0,l.YK)({completed:{id:"wordlist_completedscreen_label"},currentlyLearning:{id:"wordlists_currentlylearning_label"},pro:{id:"wordlists_viewscreen_PRO_badge"},wordsToLearn:{id:"wordlists_viewlist_wordcount_label"},wordsLearned:{id:"wordlists_viewlist_section1_subheader"},switchWordlist:{id:"wordlist_card_switch_cta",defaultMessage:"Switch to this wordlist"},startSession:{id:"wordlist_card_start_session_cta",defaultMessage:"Start session"}}),_=function(e){var t,r,s=e.wordlistId,c=e.title,_=e.learnablesCount,P=e.learnedLearnablesCount,H=e.remainingLearnablesCount,I=e.pictureUrl,M=e.isCompleted,S=e.isPremium,$=e.isLocked,D=void 0!==$&&$,L=e.isActive,E=void 0!==L&&L,R=e.creator,N=e.isCardDisabled,W=e.className,q=e.languagePairId,F=e.backRoute,U=(0,l.tz)(),B=(0,j.A)().safePush,T=(0,m.hF)().experienceType,Y=(0,b.u)().user,X=null==Y?void 0:Y.isPro,K=M&&"memrise"===R,J=(0,a.useState)(null),G=J[0],Z=J[1],Q=null!==G,V=v((0,u.Ub)({maxWidth:z.A.sz.md})?{maxLines:5,minFontSize:16,maxFontSize:20}:{maxLines:4,minFontSize:20,maxFontSize:32}).elementRef,ee=function(e){e.preventDefault(),e.stopPropagation()},et=(0,a.useCallback)(function(){B({pathname:f.b.payment.plans,query:{next:f.b.wordlists.main}})},[B]),er=(0,a.useCallback)((0,i.A)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(D&&!X)){e.next=3;break}return et(),e.abrupt("return",!1);case 3:if(E){e.next=6;break}return e.next=6,w.Uq.activateWordlist(q,s);case 6:return e.abrupt("return",!0);case 7:case"end":return e.stop()}},e)})),[E,D,X,q,et,s]),en=(0,a.useCallback)((t=(0,i.A)(o().mark(function e(t){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(ee(t),!(Q||E)){e.next=3;break}return e.abrupt("return");case 3:return Z("switch"),e.prev=4,w.mq.trackUserAction("clicked_activate_wordlist_button","wordlist_screen",null!=q?q:null,!!X,{wordlist_id:String(s),action:"switch"}),e.next=8,er();case 8:e.sent&&B(f.b.dashboard);case 10:return e.prev=10,Z(null),e.finish(10);case 13:case"end":return e.stop()}},e,null,[[4,,10,13]])})),function(e){return t.apply(this,arguments)}),[er,Q,E,X,q,B,s]),ei=(0,a.useCallback)((r=(0,i.A)(o().mark(function e(t){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(ee(t),!Q){e.next=3;break}return e.abrupt("return");case 3:return Z("start"),e.prev=4,w.mq.trackUserAction("clicked_activate_wordlist_button","wordlist_screen",null!=q?q:null,!!X,{wordlist_id:String(s),action:"start_session"}),e.next=8,er();case 8:if(e.sent){e.next=11;break}return e.abrupt("return");case 11:"2025"===T?B((0,x.b)(q,"wordlist_card")):B(f.b.scenarios.learn);case 12:return e.prev=12,Z(null),e.finish(12);case 15:case"end":return e.stop()}},e,null,[[4,,12,15]])})),function(e){return r.apply(this,arguments)}),[er,T,Q,X,q,B,s]),es=(0,A.jsxs)(k.mc,{$isProUser:X&&void 0!==S&&S,$isCardDisabled:N,as:N?"div":"a","data-testid":"wordlist-card",className:W,children:[(0,A.jsx)(k.DN,{src:I,alt:"","data-testid":"wordlist-card-cover"}),(0,A.jsxs)(k.cI,{$overlay:"full",$padded:!0,"data-testid":"wordlist-card-chrome",children:[(0,A.jsxs)(k.of,{children:[(0,A.jsxs)(k.mG,{children:[K&&(0,A.jsxs)(k.X3,{"data-testid":"wordlist_completed_label",children:[(0,A.jsx)(h.A,{name:"tickFilled"}),U.formatMessage(C.completed)]}),E&&(0,A.jsx)(k.g2,{"data-testid":"wordlist_currently_learning_label",children:U.formatMessage(C.currentlyLearning)}),"user"===R&&(0,A.jsx)(p.Z,{}),!X&&D&&(0,A.jsxs)(k.Jj,{children:[(0,A.jsx)(h.A,{name:"padlock"}),U.formatMessage(C.pro)]})]}),!N&&(0,A.jsxs)(k.w,{children:[!E&&(0,A.jsx)(g.m,{placement:"top",trigger:["hover","focus"],tooltip:U.formatMessage(C.switchWordlist),fullWidth:!0,displayContents:!0,portal:!0,children:(0,A.jsx)(k.zh,{type:"button",onClick:en,disabled:Q,"aria-label":U.formatMessage(C.switchWordlist),"data-testid":"wordlist-card-switch",children:(0,A.jsx)(h.A,{name:"sort"})})}),(0,A.jsx)(g.m,{placement:"top",trigger:["hover","focus"],tooltip:U.formatMessage(C.startSession),fullWidth:!0,displayContents:!0,portal:!0,children:(0,A.jsx)(k.zh,{type:"button",onClick:ei,disabled:Q,"aria-label":U.formatMessage(C.startSession),"data-testid":"wordlist-card-start-session",children:(0,A.jsx)(h.A,{name:"learnFilled"})})})]})]}),(0,A.jsx)(k.hE,{"data-testid":"wordlist_".concat(c),ref:V,children:c}),(0,A.jsx)(k.a2,{children:K?U.formatMessage(C.wordsLearned,{n:null!=P?P:_}):U.formatMessage(C.wordsToLearn,{n:null!=H?H:_})}),!N&&(0,A.jsx)(k.i3,{children:(0,A.jsx)(h.A,{name:"displayRight"})})]})]});return N?es:(0,A.jsx)(d(),{href:(0,y.f)("".concat(f.b.wordlists.details,"/").concat(s),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?O(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({languagePairId:String(q)},F&&{back:F})),passHref:!0,legacyBehavior:!0,onClick:function(){w.mq.trackUserAction("clicked_wordlist","wordlist_screen",null!=q?q:null,!!X,{wordlist_id:String(s)})},children:es})}},86606:(e,t,r)=>{r.d(t,{DN:()=>a,Hy:()=>A,Jj:()=>p,PW:()=>u,X3:()=>v,YB:()=>l,a2:()=>k,a4:()=>f,bD:()=>g,cI:()=>c,g2:()=>m,hE:()=>j,i3:()=>O,lE:()=>h,mG:()=>w,mc:()=>d,of:()=>b,qn:()=>z,w:()=>y,zh:()=>x});var n=r(5646),i=r(66185),s=r(15644),o=function(e){var t=e.theme;return(0,n.AH)(["border-radius:",";overflow:hidden;position:relative;padding:0;display:flex;flex-direction:column;justify-content:flex-end;transition:transform 0.2s ease-in-out,background 0.2s ease-in-out;border:none;text-align:left;box-shadow:",";background-color:",";"],t.bo.medium,t.sh.s2,t.co.neutral95)},a=n.Ay.img.withConfig({componentId:"sc-ggytpx-0"})(function(){return(0,n.AH)(["position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:inherit;z-index:0;pointer-events:none;"])}),c=n.Ay.div.attrs(s.ft).withConfig({componentId:"sc-ggytpx-1"})(function(e){var t=e.theme,r=e.$overlay,i=void 0===r?"none":r,s=e.$padded;return(0,n.AH)(["position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;justify-content:flex-end;padding:",";pointer-events:none;"," "," &::after{content:'';position:absolute;inset:0;background:rgba(0,0,0,0.5);opacity:0;}> *{pointer-events:auto;z-index:2;}"],s?t.sz.s4:0,"full"===i&&(0,n.AH)(["&::before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.5) 100%);}"]),"community"===i&&(0,n.AH)(["&::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 64.17%,rgba(0,0,0,1) 91.67%);}"]))}),d=n.Ay.a.withConfig({componentId:"sc-ggytpx-2"})(function(e){var t=e.theme,r=e.$isProUser,i=e.$isCardDisabled;return(0,n.AH)([""," overflow:visible;text-decoration:none;border:",";height:",";width:",";",";@media (max-width:","){height:",";width:",";}@media (max-width:","){width:calc(100vw - ",");}@media (max-width:","){height:",";width:",";}@media (max-width:","){height:",";width:",";}"],o({theme:t}),r?"3px solid ".concat(t.co.primary20):"none",t.sz.ms,t.sz.ms,!i&&(0,n.AH)(["cursor:pointer;&:hover{z-index:",";transform:scale(1.02);}"],t.zi.tooltip),t.sz.xxl,t.sz.sm,t.sz.sm,t.sz.maxMobileBreakpoint,t.sz.s12,t.sz.sm,t.sz.xs,t.sz.xs,t.sz.s,t.sz.s68,t.sz.s68)}),l=n.Ay.a.withConfig({componentId:"sc-ggytpx-3"})(function(e){var t=e.theme;return(0,n.AH)(["text-decoration:none;&:focus-visible{box-shadow:none;& > div:first-child{box-shadow:0 0 0 3px ",";outline:none;}}"],t.co.information50)}),u=n.Ay.div.withConfig({componentId:"sc-ggytpx-4"})(function(e){var t=e.theme,r=e.$isProUser,i=e.$hoverable;return(0,n.AH)([""," width:",";height:",";border:",";position:relative;padding:0;",""],o({theme:t}),t.sz.s40,t.sz.s32,r?"3px solid ".concat(t.co.primary20):"none",i&&(0,n.AH)(["cursor:pointer;&:hover{transform:scale(1.02);","::after{opacity:1;}}"],c))});n.Ay.button.withConfig({componentId:"sc-ggytpx-5"})(function(e){var t=e.theme;return(0,n.AH)(["position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;cursor:pointer;background:none;border:none;border-radius:",";"],t.bo.medium)});var h=n.Ay.label.withConfig({componentId:"sc-ggytpx-6"})(function(){return(0,n.AH)(["display:block;cursor:pointer;"])}),p=n.Ay.div.withConfig({componentId:"sc-ggytpx-7"})(function(e){var t=e.theme,r=e.$isSmallCard;return(0,n.AH)(["",";background:",";color:",";border-radius:",";padding:"," ",";display:flex;align-items:flex-start;gap:",";"," svg{width:",";height:",";}path{fill:",";}"],t.typography.button.s,t.co.primary20,t.co.secondary20,t.bo.small,t.sz.s1,t.sz.s2,t.sz.s1,r&&(0,n.AH)(["position:absolute;top:",";left:",";"],t.sz.s2,t.sz.s2),t.sz.s6,t.sz.s6,t.co.secondary20)}),g=n.Ay.div.withConfig({componentId:"sc-ggytpx-8"})(function(e){var t=e.theme;return(0,n.AH)(["",";color:",";display:flex;align-items:center;gap:",";position:absolute;bottom:",";left:",";
1"],t.typography.paragraph.s,t.co.neutral99,t.sz.s1,t.sz.s2,t.sz.s2)}),f=n.Ay.div.withConfig({componentId:"sc-ggytpx-9"})(function(e){var t=e.theme;return(0,n.AH)(["width:",";background:",";height:",";display:flex;align-items:center;justify-content:center;border-radius:",";color:",";svg{width:",";height:",";}"],t.sz.s6,t.co.tertiary98,t.sz.s6,t.bo.round,t.co.secondary0,t.sz.s5,t.sz.s5)}),m=n.Ay.div.withConfig({componentId:"sc-ggytpx-10"})(function(e){var t=e.theme;return(0,n.AH)(["",";background:",";color:",";border-radius:",";padding:"," ",";"],t.typography.button.s,t.co.primary20,t.co.secondary0,t.bo.small,t.sz.s1,t.sz.s2)}),b=n.Ay.div.withConfig({componentId:"sc-ggytpx-11"})(function(e){var t=e.theme;return(0,n.AH)(["position:absolute;top:",";left:",";right:",";display:flex;align-items:flex-start;justify-content:space-between;gap:",";z-index:",";pointer-events:none;"],t.sz.s4,t.sz.s4,t.sz.s4,t.sz.s2,t.zi.tooltip)}),w=n.Ay.div.withConfig({componentId:"sc-ggytpx-12"})(function(e){var t=e.theme;return(0,n.AH)(["display:flex;gap:",";flex-wrap:wrap;min-width:0;flex:1 1 auto;pointer-events:auto;"],t.sz.s2)}),y=n.Ay.div.withConfig({componentId:"sc-ggytpx-13"})(function(e){var t=e.theme;return(0,n.AH)(["display:flex;flex-direction:column;align-items:flex-end;gap:",";flex:0 0 auto;pointer-events:auto;position:relative;z-index:",";"],t.sz.s2,t.zi.tooltip)}),x=n.Ay.button.withConfig({componentId:"sc-ggytpx-14"})(function(e){var t=e.theme;return(0,n.AH)(["appearance:none;background:transparent;border:none;padding:0;margin:0;color:",";cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:0;&:disabled{opacity:0.5;cursor:default;}svg{width:",";height:",";}"],t.co.neutral99,t.sz.s6,t.sz.s6)}),v=n.Ay.div.withConfig({componentId:"sc-ggytpx-15"})(function(e){var t=e.theme;return(0,n.AH)(["background:",";color:",";padding:"," ",";border-radius:",";display:flex;align-items:center;gap:",";",";svg{width:",";height:",";}"],t.co.secondary40,t.co.neutral99,t.sz.s1,t.sz.s2,t.bo.small,t.sz.s1,t.typography.button.s,t.sz.s6,t.sz.s6)}),j=n.Ay.h3.withConfig({componentId:"sc-ggytpx-16"})(function(e){var t=e.theme;return(0,n.AH)(["",";color:",";margin:0 0 ",";@media (max-width:","){",";}"],t.typography.heading.mobile.accent.xl,t.co.neutral99,t.sz.s2,t.sz.md,t.typography.heading.mobile.s)}),z=n.Ay.h3.withConfig({componentId:"sc-ggytpx-17"})(function(e){var t=e.theme;return(0,n.AH)(["",";color:",";margin:"," 0 0;text-align:left;"],t.typography.heading.desktop.xxxs,t.co.secondary20,t.sz.s2)}),k=n.Ay.div.withConfig({componentId:"sc-ggytpx-18"})(function(e){var t=e.theme;return(0,n.AH)(["",";color:",";background:",";padding:"," ",";border-radius:",";width:max-content;"],t.typography.paragraph.m,t.co.secondary20,t.co.secondary90,t.sz.s1,t.sz.s2,t.bo.small)}),A=n.Ay.div.withConfig({componentId:"sc-ggytpx-19"})(function(e){var t=e.theme;return(0,n.AH)(["",";color:",";width:max-content;"],t.typography.paragraph.m,t.co.neutral10)}),O=n.Ay.div.withConfig({componentId:"sc-ggytpx-20"})(function(e){var t=e.theme;return(0,n.AH)(["position:absolute;bottom:",";right:",";color:",";font-size:",";transform:scaleX(",");"],t.sz.s4,t.sz.s4,t.co.neutral99,t.sz.s6,(0,i.g)(t))})},94215:(e,t,r)=>{r.d(t,{r:()=>n});var n=function(e){return!!e&&["en","en-us"].includes(e.toLowerCase())}},94257:(e,t,r)=>{r.d(t,{I:()=>m});var n=r(42969),i=r(48230),s=r.n(i),o=r(5720),a=r(99634),c=r(2553),d=r(25928),l=r(53403),u=r(43526),h=r(86606),p=r(37876);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var f=(0,o.YK)({completed:{id:"wordlist_completedscreen_label"},currentlyLearning:{id:"wordlists_currentlylearning_label"},pro:{id:"wordlists_viewscreen_PRO_badge"},community:{id:"wordlists_viewscreen_card_badge"},wordsToLearn:{id:"wordlists_viewlist_wordcount_label"},wordsLearned:{id:"wordlists_viewlist_section1_subheader"},seeMore:{id:"card_statistics_link_see_more"}}
1),m=function(e){var t=e.wordlistId,r=e.creator,i=e.title,m=e.learnedLearnablesCount,b=e.learnablesCount,w=e.remainingLearnablesCount,y=e.pictureUrl,x=e.isCompleted,v=e.isPremium,j=e.isLocked,z=e.isActive,k=e.isCheckable,A=e.isSelected,O=void 0!==A&&A,C=e.onSelectionChange,_=e.onWordlistClick,P=e.languagePairId,H=e.isCommunity,I=void 0!==H&&H,M=e.backRoute,S=e.creatorUsername,$=(0,o.tz)(),D=(0,a.u)().user,L=null==D?void 0:D.isPro,E=x&&"memrise"===r,R=null!=w?w:b,N=(0,p.jsxs)(h.lE,{"data-testid":"wordlist-card-small-checkable-wrapper",children:[(0,p.jsxs)(h.PW,{$isProUser:L&&v,"data-testid":"wordlist-card-small-checkable",$hoverable:!0,children:[(0,p.jsx)(h.DN,{src:y,alt:"","data-testid":"wordlist-card-small-cover"}),(0,p.jsxs)(h.cI,{$overlay:I?"community":"none","data-testid":"wordlist-card-small-chrome",children:[I&&(0,p.jsxs)(h.bD,{children:[(0,p.jsx)(h.a4,{children:(0,p.jsx)(c.A,{name:"community"})}),S||$.formatMessage(f.community)]}),(0,p.jsx)(d.A,{checked:O,onChange:function(){return null==C?void 0:C(t,!O)},onKeyDown:function(e){e.stopPropagation(),(" "===e.key||"Enter"===e.key)&&(e.preventDefault(),null==C||C(t,!O))},withCheckmark:!0,hasOverlay:!0,ariaText:i,"data-testid":"wordlist-checkbox"})]})]}),(0,p.jsx)(h.qn,{"data-testid":"wordlist_".concat(i),children:i}),(0,p.jsx)(h.Hy,{children:$.formatMessage(f.wordsToLearn,{n:R})})]}),W=(0,p.jsxs)("div",{children:[(0,p.jsxs)(h.PW,{$isProUser:L&&v,"data-testid":"wordlist-card-small-modal",onClick:function(){return null==_?void 0:_(t)},onKeyDown:function(e){(" "===e.key||"Enter"===e.key)&&e.target===e.currentTarget&&(null==_||_(t))},role:"button",tabIndex:0,"aria-label":"".concat($.formatMessage(f.seeMore)," - ").concat(i),$hoverable:!0,children:[(0,p.jsx)(h.DN,{src:y,alt:""}),(0,p.jsxs)(h.cI,{$overlay:I?"community":"none",children:[E&&(0,p.jsxs)(h.X3,{"data-testid":"wordlist_completed_label",children:[(0,p.jsx)(c.A,{name:"tickFilled"}),$.formatMessage(f.completed)]}),z&&(0,p.jsx)(h.g2,{"data-testid":"wordlist_currently_learning_label",children:$.formatMessage(f.currentlyLearning)}),v&&!L&&!E&&(0,p.jsxs)(h.Jj,{$isSmallCard:!0,children:[(0,p.jsx)(c.A,{name:"padlock"}),$.formatMessage(f.pro)]})]})]}),(0,p.jsx)(h.qn,{"data-testid":"wordlist_".concat(i),children:i}),(0,p.jsx)(h.Hy,{children:E?$.formatMessage(f.wordsLearned,{n:m}):$.formatMessage(f.wordsToLearn,{n:R})})]}),q=(0,p.jsxs)(h.YB,{children:[(0,p.jsxs)(h.PW,{$isProUser:L&&v,"data-testid":"wordlist-card-small",$hoverable:!0,children:[(0,p.jsx)(h.DN,{src:y,alt:"","data-testid":"wordlist-card-small-cover"}),(0,p.jsxs)(h.cI,{$overlay:I?"community":"none","data-testid":"wordlist-card-small-chrome",children:[I&&(0,p.jsxs)(h.bD,{children:[(0,p.jsx)(h.a4,{children:(0,p.jsx)(c.A,{name:"community"})}),S||$.formatMessage(f.community)]}),E&&(0,p.jsxs)(h.X3,{"data-testid":"wordlist_completed_label",children:[(0,p.jsx)(c.A,{name:"tickFilled"}),$.formatMessage(f.completed)]}),z&&(0,p.jsx)(h.g2,{"data-testid":"wordlist_currently_learning_label",children:$.formatMessage(f.currentlyLearning)}),!L&&!E&&j&&(0,p.jsxs)(h.Jj,{$isSmallCard:!0,children:[(0,p.jsx)(c.A,{name:"padlock"}),$.formatMessage(f.pro)]})]})]}),(0,p.jsx)(h.qn,{"data-testid":"wordlist_".concat(i),children:i}),(0,p.jsx)(h.Hy,{children:E?$.formatMessage(f.wordsLearned,{n:null!=m?m:b}):$.formatMessage(f.wordsToLearn,{n:R})})]});return void 0!==k&&k?N:_?W:(0,p.jsx)(s(),{href:(0,u.f)("".concat(l.b.wordlists.details,"/").concat(t),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({languagePairId:String(P)},M&&{back:M})),passHref:!0,legacyBehavior:!0,children:q})}}}]);
2//# sourceMappingURL=1398-4736ebcc2640191e.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.