PageSourceSearch

https://www.ultimate-guitar.com/static/public/build/ug_react_i18n_…/3164.b9c2fc02ab482074ff314f819f70e9b8.js

js ultimate-guitar.com collected 2026-09-24 08:39:38 UTC 9,150 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkug_react_i18n_es6=self.webpackChunkug_react_i18n_es6||[]).push([[3164],{52833:(t,e,a)=>{a.d(e,{Z:()=>o});var n=a(57763),i=a.n(n),r=a(74458),s=a.n(r)()(i());s.push([t.id,"._3DPPn{--icon-size:24px;padding:0 var(--ug-spacing-xxs)}",""]),s.locals={icon:"_3DPPn"};const o=s},44151:(t,e,a)=>{a.d(e,{Z:()=>o});var n=a(57763),i=a.n(n),r=a(74458),s=a.n(r)()(i());s.push([t.id,".eUKmn{padding:0 var(--ug-spacing-s) var(--ug-spacing-s) var(--ug-spacing-s)}.DhnxY{--icon-size:16px;background-color:var(--ug-color-bg-primary);gap:6px;padding-bottom:10px;padding-left:var(--ug-spacing-s);padding-right:var(--ug-spacing-s);padding-top:10px}.DhnxY > svg{padding-top:2px}.EpRFB{padding-left:var(--ug-spacing-xxs)}._0LBOn._0LBOn{font:var(--ug-font-subtitle-l)}.kbGch{display:inline-flex}.mGXR0{grid-gap:var(--ug-spacing-xxs);align-items:end;display:grid;gap:var(--ug-spacing-xxs);grid-template-columns:minmax(var(--tab-rate-stats-min-width),auto) auto;justify-content:center;padding-bottom:var(--ug-spacing-m);padding-top:var(--ug-spacing-m)}.S9EmD{align-self:center}",""]),s.locals={container:"eUKmn",ratingHeader:"DhnxY",description:"EpRFB",value:"_0LBOn",antiAbuseLink:"kbGch",mobileContainer:"mGXR0",mobileStars:"S9EmD"};const o=s},14211:(t,e,a)=>{a.d(e,{_:()=>s});var n=a(46525),i=a(87165),r=a(24479);const s=(t,e=void 0,a=void 0,s="")=>(...o)=>async(l,c)=>new Promise(((d,u)=>n.Mq.getId(c())?(l(t(...o)),void d()):("function"==typeof e&&l(e(...o)),r.H.afterLogin=()=>()=>{d(),l(t(...o))},r.H.afterNoLogin=()=>()=>{u(),"function"==typeof a&&l(a(...o))},s&&l(i.Ar.setSource(s)),void l(i.Ar.show()))))},24479:(t,e,a)=>{a.d(e,{A:()=>n,H:()=>i});const n=()=>()=>{},i={afterLogin:n,afterNoLogin:n}},10052:(t,e,a)=>{a.d(e,{k:()=>Z});var n=a(502),i=a(53618),r=a(46525),s=a(40665),o=a(51878),l=a(23582),c=a(27186),d=a(68387),u=a(24517);const g=(0,d.I)("0 0 20 20",(0,u.BX)("g",{children:[(0,u.tZ)("g",{clipPath:"url(#clip0_11791_67899)",children:(0,u.tZ)("path",{d:"M12.364 7.26h7.65l-6.189 4.496 2.364 7.276L10 14.536l-6.187 4.496 2.363-7.276L-.012 7.26h7.649L10-.014zm-3.42 1.8H5.526l2.237 1.625.529.384-1.057 3.25 2.766-2.008.53.384 2.234 1.624-1.055-3.25.53-.384 2.235-1.625h-3.418l-.202-.622L10 5.808z"})}),(0,u.tZ)("defs",{children:(0,u.tZ)("clipPath",{id:"clip0_11791_67899",children:(0,u.tZ)("path",{d:"M0 0h20v20H0z"})})})]}));var p=a(6254),b=a(23278),v=a.n(b),h=a(52833),m={injectType:"styleTag",insert:"head",singleton:!1};v()(h.Z,m);const x=h.Z.locals||{},_=({label:t,state:e,onHoverStart:a,onHoverEnd:n,onPress:i})=>{const r=e===p.p.Full;return(0,u.tZ)(l.z,{"aria-label":t,className:x.icon,state:"tertiary",iconState:"red",Icon:r?c.e:g,onHoverStart:a,onHoverEnd:n,onPress:i})},f=({index:t,state:e,setActiveIndex:a,onPress:i})=>{const r=(0,n.useCallback)((()=>{a(t)}),[t,a]),s=(0,n.useCallback)((()=>{a(-1)}),[a]),o=(0,n.useCallback)((()=>{i(t+1)}),[t,i]);return(0,u.tZ)(_,{onHoverStart:r,onHoverEnd:s,onPress:o,label:"rate "+(t+1),state:e})},Z=({rating:t=0,onRate:e})=>{const a=(0,n.useState)(-1),l=a[0],c=a[1],d=(0,n.useState)(t),g=d[0],p=d[1],b=(0,i.Z)([r.Mq.getId,r.Mq.getIsActivated]),v=b[0],h=b[1],m=(0,o.Y)(-1===l?g:l+1),x=(0,n.useCallback)((()=>{p(t)}),[t,p]),_=(0,n.useCallback)((t=>{e(t,x),v&&h&&p(t)}),[e,p,v,h]);return(0,n.useEffect)((()=>{g!==t&&p(t)}),[t,p]),(0,u.tZ)(s.Ug,{children:m.map(((t,e)=>(0,u.tZ)(f,{state:t,index:e,setActiveIndex:c,onPress:_},"star_"+e)))})}},51878:(t,e,a)=>{a.d(e,{Y:()=>i});var n=a(6254);const i=(t,e=5)=>Array(e).fill(n.p.Empty).map(((e,a)=>((t,e)=>{const a=Math.round(2*e),i=Math.floor(a/2);return t<=i-1?n.p.Full:t===i&&1==a%2?n.p.Half:n.p.Empty})(a,t)))},6254:(t,e,a)=>{a.d(e,{p:()=>n});let n=function(t){return t[t.Full=0]="Full",t[t.Half=1]="Half",t[t.Empty=2]="Empty",t}({})},83674:(t,e,a)=>{a.d(e,{D:()=>i,d:()=>n});let n=function(t){return t.TAB_RATE_OPEN="Tab Rate Open",t.CLICK_RATING_TAB_PAGE="Tab Rate Click",t.CLICK_RATING_TAB_PAGE_STATUS_OK="Tab Rate Success",t}({}),i=function(t){return t.UI_PAGE="page",t.UI_MODAL="modal",t}({})},32818:(t,e,a)=>{a.r(e),a.d(e,{NewTabRateContainer:()=>L});var n=a(97104),i=a(40665),r=a(89851),s=a(10052),o=a(1057),l=a(2645),c=a(23278),d=a.n(c),u=a(44151),g={injectType:"styleTag",insert:"head",singleton:!1};d()(u.Z,g);const p=u.Z.locals||{};var b=a(24517);const v=({children:t,url:e})=>e?(0,b.tZ)(o.f,{href:e,children:(0,b.BX)(i.Ug,{className:p.ratingHeader,children:[(0,b.tZ)(r.x,{type:"subtitle-s",children:t}),(0,b.tZ)(l.A,{state:"muted"})]})}):(0,b.tZ)(i.Ug,{className:p.ratingHeader,children:(0,b.tZ)(r.x,{type:"subtitle-s",children:t})}),h=({children:t})=>(0,b.tZ)(r.x,{type:"body-s-medium",className:p.description,children:t});var m=a(26187);const x=({children:t,antiAbuseUrl:e,antiAbuseLabel:a})=>{const n=(0,b.tZ)(r.x,{type:"subtitle-l",className:p.value,children:t});return e?(0,b.BX)(i.Ug,{alignItems:"center",gap:"xxs",children:[n,(0,b.tZ)(o.f,{href:e,className:p.antiAbuseLink,"aria-label":a,children:(0,b.tZ)(m.u,{state:"red",size:"xs"})})]}):n};var _=a(502),f=a(53618),Z=a(59317),A=a(78793),R=a(1461),y=a(18080),T=a(26645),E=a(49853),I=a(12307);const C=({children:t})=>
1(0,b.tZ)(i.Ug,{justify:"start",gap:"xl",alignItems:"end",className:p.container,template:"minmax("+E.i6+", auto) auto",children:t}),L=()=>{const t=(0,n.Q)(),e=t.t,a=t.getNumber,o=(()=>{const t=(0,f.Z)([T.RE,T.Hj,T.eV,T.L6,R.pQ]),e=t[0],a=t[1],n=a.value,i=a.votes,r=t[2],s=t[3],o=t[4],l=(0,y.l)().onRate,c=(0,Z.Z)({openModalById:A.u3});return(0,_.useEffect)((()=>{r&&c.openModalById(E.dI)}),[]),{value:n,votes:i,ratedRating:e,isRated:0!==e,onRate:l,antiAbuseUrl:s?(0,I.Y)({id:o}):null}})(),l=o.value,c=o.votes,d=o.ratedRating,u=o.isRated,g=o.onRate,p=o.antiAbuseUrl;return(0,b.BX)(i.gC,{gap:"xxs",children:[(0,b.tZ)(v,{url:null!=p?p:void 0,children:e({message:["Rating"]})}),(0,b.BX)(C,{children:[(0,b.BX)(i.gC,{gap:"xxs",children:[(0,b.tZ)(x,{children:a(l,{precision:1})}),(0,b.tZ)(r.x,{type:"body-s-medium",children:e({message:[["smart_count","plural",{"1":["#"," rate"],"other":["#"," rates"]}]]},{smart_count:c})})]}),(0,b.BX)(i.gC,{gap:"xs",children:[(0,b.tZ)(s.k,{rating:d,onRate:g}),(0,b.tZ)(h,{children:e(u?{message:["Thanks for your vote!"]}:{message:["Please, rate this tab"]})})]})]})]})}},12307:(t,e,a)=>{a.d(e,{Y:()=>r});var n=a(15231),i=a(7113);const r=(0,n.P$)(i.eK+"/tab/abuse/rating/search-by-tab")},18080:(t,e,a)=>{a.d(e,{l:()=>d});var n=a(502),i=a(53618),r=a(59317),s=a(97104),o=a(26645),l=a(99492),c=a(49853);const d=(t,e)=>{const a=(0,s.Q)().t,d=(0,i.Z)([o.Hj])[0].votes,u=void 0===d?0:d,g=(0,r.Z)({rateTab:l.A}),p=a({message:["Please rate this tab"]}),b=a({message:["Thanks for your vote!"]}),v=(0,n.useCallback)(((a,n)=>{g.rateTab({rating:a,ui:e,onError:n}),t&&t()}),[]);let h=" ";const m=c.q-u;0<m&&(h=a({message:[["smart_count","plural",{"1":["#"," more vote"],"other":["#"," more votes"]}]," to show rating"]},{smart_count:m}));return{onRate:v,title:p,titleSuccess:b,voteLabels:[h,a({message:["poor"]}),a({message:["not so good"]}),a({message:["worth learning"]}),a({message:["accurate"]}),a({message:["excellent!"]})]}}},99492:(t,e,a)=>{a.d(e,{A:()=>b});var n=a(14211),i=a(75213),r=a(78793),s=a(86712),o=a(1461),l=a(85290),c=a(84368),d=a(49853),u=a(83674),g=a(77208),p=a(26645);const b=(0,n._)((({rating:t,comment:e="",reason:a=0,ui:n=u.D.UI_PAGE,onError:b=()=>{}})=>async(v,h,{logger:m})=>{const x=(0,s.Z)([o.pQ,o.X6,p.RE],h),_=x[0],f=x[1],Z=x[2],A=t;l.w.send({event:u.d.CLICK_RATING_TAB_PAGE,item:f?c.bm:c.J1,value:t,ui:n});try{const n=await g.Z.rateTab({reason:a,comment:e,id:_,rating:t,exp_var:"origin"}),r=n.rating,s=n.votes;v(p.$K.rate({rating:{value:r,votes:s||1},canRate:!0,ratedTabRating:A})),g.Z.pushRatedTab({id:_,rating:A}),v((0,i.c0)({content:"Thanks for your vote"})),l.w.send({event:u.d.CLICK_RATING_TAB_PAGE_STATUS_OK})}catch(e){b(),"Unactivated"===e?v((0,i.c0)({content:"You need to activate your account to rate this tab"})):e.reasons?"You are trying to vote for your own tab"===e.text||"You can't rate this tab, because we've got another version of this song submitted by you"===e.text?v((0,i.c0)({content:e.text})):(v(p.$K.setRatingExplain({canRate:!1,ratedTabRating:Z,voteExplain:{description:e.text,reasons:e.reasons.map((t=>({value:t.id,label:t.text,needComment:!!t.require_explanation}))),rating:t}})),v((0,r.u3)(d.St))):(m.error("Rating error = "+JSON.stringify(e)),v((0,i.c0)({content:"Something goes wrong"})))}}),(({rating:t,ui:e})=>(a,n)=>{const i=(0,s.Z)([o.X6],n)[0];l.w.send({event:u.d.CLICK_RATING_TAB_PAGE,item:i?c.bm:c.J1,value:t,ui:e})}),void 0,"Rate Tab")},2645:(t,e,a)=>{a.d(e,{A:()=>r});var n=a(68387),i=a(24517);const r=(0,n.I)("0 0 20 20",(0,i.tZ)("path",{fillRule:"evenodd",d:"M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16M8.5 14a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0M11 4v7H9V4z",clipRule:"evenodd"}))},26187:(t,e,a)=>{a.d(e,{u:()=>r});var n=a(68387),i=a(24517);const r=(0,n.I)("0 0 20 20",(0,i.tZ)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16m1.5-12a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M9 16V9h2v7z",clipRule:"evenodd"}))}}]);
2//# sourceMappingURL=/static/public/build/ug_react_i18n_es6/../../sourcemap/ug_react_i18n_es6/202609/3164.3ba351b53dae1a17eff155e8d5f91b4d.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.