mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
2 lines
14 KiB
JavaScript
Executable File
2 lines
14 KiB
JavaScript
Executable File
"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[7378],{82895:(e,a,t)=>{t.d(a,{S:()=>d});var n=t(88677),s=t(11854),r=t(84075),c=t(92107),i=t(70236);const l="nHCJskDZVlmDhNNS9Ixv";var o=t(86070),d=function(e){var a=e.isPremium,t=(0,n.wA)();return(0,o.jsx)("div",{className:l,children:a?(0,o.jsx)(s.$,{size:"small",colorSet:"overMedia",onClick:function(){return t((0,i.On)())},children:c.Ru.get("ad-formats.hideAnnouncements")}):(0,o.jsx)(r.v,{colorSet:"overMedia",children:c.Ru.get("ad-formats.sponsored")})})}},58287:(e,a,t)=>{t.d(a,{z:()=>j});var n=t(52542),s=t(30758),r=t(97500),c=t.n(r),i=t(88677),l=t(59213),o=t(44351),d=t(79804),u=t(54563),h=t(54769);const m="utUDWsORU96S7boXm2Aq",g="G7JYBeU1c2QawLyFs5VK",x="vYl1kgf1_R18FCmHgdw2",v="vZkc6VwrFz0EjVBuHGmx";var f=t(86070),j=(0,l.H)((function(e,a){var t=e.children,r=e.fetchingState,l=e.hideHpto,j=(0,i.d4)(d.Dr),p=(0,i.wA)(),k=(0,s.useRef)(null);(0,s.useEffect)((function(){return k.current&&p((0,o.$t)(k.current)),function(){p((0,o.IH)(!0))}}),[p]),(0,s.useEffect)((function(){r===u.C.FETCHED&&p((0,o.bW)())}),[r,p]);var b=(0,s.useCallback)((function(e){p((0,o.yF)(String(e)))}),[p]);return(0,f.jsx)(h.s,{onError:b,children:(0,f.jsx)("div",{"data-testid":"hpto-parent-container",className:c()(m,"contentSpacing",(0,n.A)({},g,r===u.C.FAILED||!j||l)),children:(0,f.jsx)("div",{"data-testid":"test-hpto-ref",ref:function(e){k.current=e,"function"==typeof a?a(e):a&&(a.current=e)},className:c()(x,(0,n.A)({},v,r===u.C.FETCHING||l)),children:t})})})}))},83039:(e,a,t)=>{t.d(a,{Z:()=>m});var n=t(12341),s=t(30758),r=t(88677),c=t(82895),i=t(44351),l=t(79804),o=t(93051);const d="iVAZDcTm1XGjxwKlQisz",u="_I_1HMbDnNlNAaViEnbp";var h=t(86070),m=function(e){var a,t=e.isPremium,m=e.backgroundColor,g=e.backgroundImage,x=e.backgroundUrl,v=e.bannerMode,f=e.html,j=(0,r.wA)(),p=(0,s.useState)(!1),k=(0,n.A)(p,2),b=k[0],N=k[1],y=null===(a=(0,r.d4)(l.$F))||void 0===a?void 0:a.media,C=f||y;return(0,s.useEffect)((function(){"html"===v&&N(!0)}),[v]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(o.N,{draggable:!1,to:x||"",className:d,onClick:function(){x&&j((0,i.i2)("event_clicked"))},style:{backgroundColor:m,backgroundImage:b?"url(".concat(g,")"):"none",backgroundSize:"cover"},children:(0,h.jsx)("iframe",{"data-testid":"html-hpto-iframe",className:u,srcDoc:C,scrolling:"no",marginWidth:0,marginHeight:0,style:{display:b?"":"none"},"aria-hidden":!0})}),(0,h.jsx)(c.S,{isPremium:t})]})}},35262:(e,a,t)=>{t.d(a,{L:()=>u});t(184),t(42486);var n=t(30758),s=t(88677),r=t(82895),c=t(44351),i=t(93051);const l="xXj7eFQ8SoDKYXy6L3E1",o="F68SsPm8lZFktQ1lWsQz";var d=t(86070),u=function(e){var a=e.isPremium,t=e.backgroundColor,u=e.backgroundImage,h=e.clickThroughUrl;(0,n.useEffect)((function(){if(!u)throw Error("[Image HPTO] Missing background image")}),[u]);var m=(0,s.wA)();return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.N,{"data-testid":"hpto-image",draggable:!1,onClick:function(){m((0,c.i2)("event_clicked"))},className:l,style:{backgroundColor:t},to:h,children:(0,d.jsx)("img",{draggable:!1,className:o,alt:"",src:u})}),(0,d.jsx)(r.S,{isPremium:a})]})}},87967:(e,a,t)=>{t.d(a,{E:()=>de});var n=t(52542),s=(t(7651),t(14551),t(83234),t(25550),t(47994),t(15342),t(97500)),r=t.n(s),c=t(20886),i=t(88677),l=t(13534),o=t(80366),d=t(92107),u=t(82895),h=t(44351),m=t(62822),g=t(12341),x=t(93091),v=t.n(x),f=t(30758),j=t(11854),p=t(12072),k=t(41366),b=t(80021),N=t(59739),y=t(51943),C=t(53163),w=t(80439),A=t(38407),S=t(54068),V=t(64877),M=t(51725),R=t(8574),z=t(60455),E=t(99888),F=t(79431);const I="x8e0kqJPS0bM4dVK7ESH",_="gZ2Nla3mdRREDCwybK6X",B="SChMe0Tert7lmc5jqH01",H="AwF4EfqLOIJ2xO7CjHoX",T="UlkNeRDFoia4UDWtrOr4",L="k_RKSQxa2u5_6KmcOoSw",P="_mWmycP_WIvMNQdKoAFb",D="O3UuqEx6ibrxyOJIdpdg",Q="akCwgJVf4B4ep6KYwrk5",U="bIA4qeTh_LSwQJuVxDzl",K="ajr9pah2nj_5cXrAofU_",O="gvn0k6QI7Yl_A0u46hKn",W="obTnuSx7ZKIIY1_fwJhe",Y="IiLMLyxs074DwmEH4x5b",J="RJjM91y1EBycwhT_wH59",X="mxn5B5ceO2ksvMlI1bYz",q="l8wtkGVi89_AsA3nXDSR",Z="Th1XPPdXMnxNCDrYsnwb",G="SJMBltbXfqUiByDAkUN_",$="Nayn_JfAUsSO0EFapLuY",ee="YqlFpeC9yMVhGmd84Gdo",ae="HksuyUyj1n3aTnB4nHLd",te="DT8FJnRKoRVWo77CPQbQ";var ne=t(86070),se=function(e,a){switch(e){case o.NQ.ALBUM:case o.NQ.TRACK:case o.NQ.EPISODE:case o.NQ.PLAYLIST:return a?d.Ru.get("ad-formats.remove"):d.Ru.get("ad-formats.save");default:return a?d.Ru.get("unfollow"):d.Ru.get("follow")}},re=function(e){var a=e.playBtnUri,t=e.uri,s=e.uriType,c=(0,i.wA)(),l=(0,E.A)(t),u=(0,g.A)(l,2),x=u[0],I=u[1],_=(0,R.W)(),B="SMALL"===(0,z.y)()?"small":"medium",H=(0,F.P)({uri:a},{featureIdentifier:"hpto"}),T=H.togglePlay,L=H.isPlaying,P=(0,f.useCallback)((function(){T(),c((0,h.i2)("event_clicked","ne-play-button"))}),[c,T]),D=(0,f.useCallback)((0,m.A)(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,I(!x);case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),(0,h.yF)("invalid button uri type ".concat(t));case 8:_({targetUri:t,intent:x?"unsave":"save",type:"click"});case 9:case"end":return e.stop()}}),e,null,[[0,5]])}))),[x,I,t,_]),Q=(0,f.useCallback)((function(){c((0,h.i2)("event_clicked","ne-more-button"))}),[c]),U=null;return U=(0,o._T)(t)?(0,ne.jsx)(N.h,{uri:t}):(0,o.ec)(t)?(0,ne.jsx)(y.t,{uri:t}):(0,o.tb)(t)?(0,ne.jsx)(S.W,{uri:t}):(0,o.WB)(t)?(0,ne.jsx)(V.H,{uri:t}):(0,o.U_)(t)?(0,ne.jsx)(M.P,{uri:t}):(0,o.gH)(t)?(0,ne.jsx)(C.b,{uri:t}):(0,o.Pk)(t)?(0,ne.jsx)(A.A,{uri:t}):(0,ne.jsx)(w.h,{uri:t}),(0,ne.jsxs)("div",{className:Z,"data-testid":"hpto-native-buttons",children:[(0,ne.jsx)(j.$,{onClick:P,size:B,children:L?d.Ru.get("pause"):d.Ru.get("play")}),(0,ne.jsx)(p.n,{className:r()((0,n.A)({},te,x)),onClick:D,size:B,children:se(s,x)}),(0,ne.jsx)(b.b,{menu:U,children:(0,ne.jsx)(k.e,{onClick:Q,size:B,className:G})})]})},ce=function(e){var a=e.className;return(0,ne.jsx)("svg",{className:a,xmlns:"http://www.w3.org/2000/svg",width:"150",height:"20",viewBox:"0 0 147 20",children:(0,ne.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[(0,ne.jsx)("path",{fill:"#FFF",d:"M70 5H71V16H70z"}),(0,ne.jsxs)("g",{children:[(0,ne.jsx)("path",{fill:"#84BD00",d:"M10.001.045C4.489.045.02 4.49.02 9.975c0 5.486 4.469 9.932 9.981 9.932 5.513 0 9.981-4.446 9.981-9.931 0-5.485-4.468-9.931-9.981-9.931"}),(0,ne.jsx)("path",{fill:"#000",d:"M15.544 10.6C12.463 8.717 7.956 8.186 4.33 9.28a.775.775 0 00-.519.967.78.78 0 00.972.515c3.173-.958 7.263-.483 9.945 1.158a.78.78 0 001.07-.255.772.772 0 00-.255-1.065"}),(0,ne.jsx)("path",{fill:"#000",d:"M16.858 7.251c-3.704-2.187-9.565-2.393-13.09-1.328A.928.928 0 104.31 7.7c3.07-.927 8.378-.752 11.595 1.149a.936.936 0 001.28-.325.926.926 0 00-.327-1.273"}),(0,ne.jsx)("path",{fill:"#000",d:"M14.372 13.518c-2.63-1.6-5.892-1.972-9.694-1.107a.618.618 0 10.277 1.206c3.474-.79 6.424-.467 8.768.958a.624.624 0 00.855-.206.617.617 0 00-.206-.851"})]}),(0,ne.jsxs)("g",{fill:"#FFF",transform:"translate(25 5)",children:[(0,ne.jsx)("path",{d:"M3.806 4.194C2.23 3.822 1.95 3.56 1.95 3.013c0-.518.493-.867 1.226-.867.711 0 1.416.265 2.156.81a.104.104 0 00.146-.023l.77-1.073a.102.102 0 00-.02-.139C5.347 1.023 4.357.684 3.199.684 1.496.684.307 1.694.307 3.14c0 1.55 1.026 2.099 2.799 2.522 1.508.344 1.763.632 1.763 1.147 0 .57-.515.924-1.343.924-.92 0-1.672-.306-2.511-1.025a.109.109 0 00-.076-.025.103.103 0 00-.071.036L.005 7.734a.1.1 0 00.01.142 5.18 5.18 0 003.476 1.318c1.834 0 3.02-.991 3.02-2.525 0-1.297-.784-2.014-2.705-2.475"}),(0,ne.jsx)("path",{d:"M10.661 2.656c-.795 0-1.447.31-1.985.944v-.714a.103.103 0 00-.103-.102H7.16a.103.103 0 00-.103.102v7.935c0 .057.046.102.103.102h1.412a.103.103 0 00.103-.102V8.316c.538.597 1.19.889 1.985.889 1.478 0 2.973-1.125 2.973-3.274 0-2.15-1.495-3.275-2.973-3.275zm1.332 3.275c0 1.094-.682 1.858-1.659 1.858-.965 0-1.693-.798-1.693-1.858s.728-1.858 1.693-1.858c.961 0 1.659.78 1.659 1.858z"}),(0,ne.jsx)("path",{d:"M17.468 2.656c-1.903 0-3.393 1.449-3.393 3.298 0 1.83 1.48 3.263 3.37 3.263 1.91 0 3.405-1.444 3.405-3.286 0-1.836-1.485-3.275-3.382-3.275zm0 5.145c-1.012 0-1.775-.804-1.775-1.87 0-1.07.737-1.847 1.752-1.847 1.019 0 1.787.804 1.787 1.87 0 1.07-.742 1.847-1.764 1.847z"}),(0,ne.jsx)("path",{d:"M24.913 2.784H23.36v-1.57a.103.103 0 00-.104-.103h-1.411a.103.103 0 00-.104.102v1.57h-.679a.103.103 0 00-.102.103v1.2c0 .056.046.102.102.102h.68v3.104c0 1.254.63 1.89 1.876 1.89.507 0 .927-.103 1.323-.325a.102.102 0 00.052-.089V7.626a.102.102 0 00-.049-.087.104.104 0 00-.1-.004 1.797 1.797 0 01-.83.197c-.452 0-.654-.203-.654-.659V4.188h1.553a.103.103 0 00.103-.102v-1.2a.103.103 0 00-.103-.102"}),(0,ne.jsx)("path",{d:"M30.326 2.79v-.193c0-.567.22-.82.714-.82.294 0 .53.057.795.145.033.01.067.005.093-.014a.101.101 0 00.043-.083V.648a.102.102 0 00-.073-.098 3.916 3.916 0 00-1.173-.166c-1.305 0-1.994.726-1.994 2.098v.296h-.678a.103.103 0 00-.104.102v1.206c0 .056.047.102.104.102h.678v4.788c0 .056.046.102.103.102h1.412a.103.103 0 00.103-.102V4.188h1.319l2.019 4.787c-.23.502-.455.603-.762.603-.25 0-.511-.074-.779-.219a.107.107 0 00-.082-.007.104.104 0 00-.061.055l-.479 1.038a.1.1 0 00.045.132 3 3 0 001.507.381c1.043 0 1.62-.48 2.127-1.771l2.45-6.258a.1.1 0 00-.011-.095.103.103 0 00-.085-.044h-1.47a.104.104 0 00-.098.068L34.483 7.11l-1.649-4.254a.103.103 0 00-.096-.066h-2.412"}),(0,ne.jsx)("path",{d:"M27.188 2.784h-1.412a.103.103 0 00-.103.102v6.09c0 .056.046.102.103.102h1.412a.103.103 0 00.103-.102v-6.09a.103.103 0 00-.103-.102"}),(0,ne.jsx)("path",{d:"M26.49.011c-.56 0-1.014.448-1.014 1 0 .554.454 1.002 1.013 1.002.56 0 1.013-.448 1.013-1.001 0-.553-.454-1-1.013-1"}),(0,ne.jsx)("path",{d:"M38.858 4.742a.984.984 0 01-.994-.983c0-.538.44-.987 1-.987a.984.984 0 11-.006 1.97zm.005-1.872c-.509 0-.894.4-.894.89 0 .489.382.884.889.884.509 0 .894-.4.894-.89a.876.876 0 00-.889-.884zm.22.985l.281.389h-.237l-.253-.357h-.217v.357h-.198V3.213h.465c.242 0 .401.122.401.329 0 .169-.098.272-.242.313zm-.167-.465h-.26v.326h.26c.129 0 .206-.063.206-.163 0-.107-.077-.163-.206-.163z"})]}),(0,ne.jsx)("path",{fill:"#FFF",d:"M79.9 13.12c1.8 0 2.37-1.03 2.37-1.89 0-2.49-4-1.55-4-3.26 0-.72.67-1.23 1.56-1.23.75 0 1.43.26 1.91.84l.38-.42c-.52-.59-1.26-.94-2.26-.94-1.21 0-2.19.69-2.19 1.78 0 2.33 4 1.31 4 3.27 0 .57-.39 1.33-1.76 1.33-.95 0-1.65-.47-2.08-.97l-.37.43c.51.62 1.34 1.06 2.44 1.06zm6.61-.12v-2.77h1.93c1.27 0 2.01-.9 2.01-1.95 0-1.05-.73-1.95-2.01-1.95h-2.5V13h.57zm1.87-3.29h-1.87V6.85h1.87c.88 0 1.47.59 1.47 1.43s-.59 1.43-1.47 1.43zm8.56 3.41c1.95 0 3.24-1.5 3.24-3.45 0-1.95-1.29-3.45-3.24-3.45-1.96 0-3.24 1.5-3.24 3.45 0 1.95 1.28 3.45 3.24 3.45zm0-.52c-1.62 0-2.64-1.25-2.64-2.93 0-1.7 1.02-2.93 2.64-2.93 1.6 0 2.64 1.23 2.64 2.93 0 1.68-1.04 2.93-2.64 2.93zm8.94.4V6.85h2.18v-.52h-4.94v.52h2.18V13h.58zm9.46 0v-.52h-3.23V6.33h-.57V13h3.8zm4.11 0V6.33h-.57V13h.57zm7.09.13c1.05 0 1.94-.45 2.53-1.11V9.69h-3.09v.51h2.52v1.6c-.37.37-1.07.81-1.96.81-1.57 0-2.78-1.22-2.78-2.94 0-1.74 1.21-2.93 2.78-2.93.85 0 1.61.37 2.08.93l.43-.31c-.61-.7-1.41-1.14-2.51-1.14-1.87 0-3.38 1.39-3.38 3.45 0 2.06 1.51 3.46 3.38 3.46zM138.2 13V6.33h-.58v2.98h-4.23V6.33h-.57V13h.57V9.83h4.23V13h.58zm6.23 0V6.85h2.18v-.52h-4.94v.52h2.18V13h.58z"})]})})},ie=t(93051),le=function(e){switch(e){case o.NQ.ALBUM:return d.Ru.get("card.tag.album");case o.NQ.TRACK:return d.Ru.get("card.tag.track");case o.NQ.ARTIST:return d.Ru.get("card.tag.artist");case o.NQ.EPISODE:return d.Ru.get("card.tag.episode");case o.NQ.SHOW:return d.Ru.get("card.tag.show");case o.NQ.PLAYLIST:case o.NQ.PLAYLIST_V2:return d.Ru.get("card.tag.playlist");default:return""}},oe=function(e,a){return"spotlight"===e?(0,ne.jsx)(ce,{className:W}):"exclusive"===e?(0,ne.jsx)("p",{dir:"auto",className:r()(W,Y),children:d.Ru.get("ad-formats.exclusive")}):(0,ne.jsx)(l.E,{as:"p",dir:"auto",variant:"bodySmallBold",semanticColor:"textBase",className:W,children:le(a)})},de=function(e){var a=e.name,t=e.uri,s=e.playBtnUri,o=e.description,m=e.smallImage,g=e.isSponsored,x=e.backgroundImage,v=e.sponsoredLogo,f=e.uriType,j=e.logoBlurb,p=e.isPremium,k=e.artists,b=e.badgeType,N=(0,i.wA)(),y=k.length>0,C=!p&&g,w=(0,c.decode)(o);return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsxs)("div",{"data-testid":"hpto-native",className:r()(g?_:I,(0,n.A)({},T,g)),children:[g&&(0,ne.jsx)("div",{className:L,children:(0,ne.jsxs)("div",{children:[(0,ne.jsx)(l.E,{as:"p",variant:"marginalBold",className:O,semanticColor:"textBase",children:d.Ru.get("ad-formats.presentedBy")}),(0,ne.jsx)("img",{draggable:!1,className:U,src:v,alt:""}),(0,ne.jsx)(l.E,{as:"p",semanticColor:"textBase",variant:"bodySmall",className:K,children:j})]})}),(0,ne.jsx)("div",{className:g?H:B,children:(0,ne.jsx)(ie.N,{"data-testid":"ne-image-link-test",onClick:function(){N((0,h.i2)("event_clicked","ne-image-link"))},className:Q,to:t,children:(0,ne.jsx)("img",{className:D,alt:"",src:m})})}),(0,ne.jsxs)("div",{className:P,children:[oe(b,f),(0,ne.jsx)(l.E,{as:"a",variant:"titleLarge","data-testid":"ne-name-link-test",onClick:function(){N((0,h.i2)("event_clicked","ne-name-link"))},href:t,dir:"auto",semanticColor:"textBase",className:g?X:J,children:a}),y&&(0,ne.jsx)("div",{children:k.map((function(e,a){return(0,ne.jsxs)("span",{children:[a?d.Ru.getSeparator():"",(0,ne.jsx)(l.E,{as:"a",semanticColor:"textBase",variant:"bodyMedium","data-testid":"ne-attrib-link-".concat(a,"-test"),onClick:function(){N((0,h.i2)("event_clicked","ne-attrib-link"))},draggable:!1,href:e.uri,children:e.name})]},"".concat(t,"-").concat(a))}))}),(0,ne.jsx)(l.E,{variant:"bodyMedium",dir:"auto",className:q,semanticColor:"textBase",children:w}),(0,ne.jsx)(re,{playBtnUri:s,uri:t,uriType:f})]})]}),(0,ne.jsx)("div",{draggable:!1,className:r()(g?ee:$,(0,n.A)({},ae,!g)),style:{backgroundImage:"url(".concat(x,")")}}),!C&&(0,ne.jsx)(u.S,{isPremium:p})]})}},80439:(e,a,t)=>{t.d(a,{h:()=>u});var n=t(30758),s=t(92107),r=t(85673),c=t(39150),i=t(43837),l=t(53607),o=t(57863),d=t(86070),u=n.memo((function(e){var a=e.uri,t=(0,o.o)(a).spec;return(0,d.jsx)(l.pZ,{value:"generic",children:(0,d.jsx)(r.W,{children:(0,d.jsx)(i.h,{divider:"before",children:(0,d.jsx)(c.m,{spec:t,uri:a,displayText:s.Ru.get("context-menu.copy-generic-link")})})})})}))}}]);
|
|
//# sourceMappingURL=7378.js.map
|