1"use strict";(self.webpackChunkug_react_i18n_es6=self.webpackChunkug_react_i18n_es6||[]).push([[922],{20596:(t,e,i)=>{i.d(e,{Z:()=>o});var n=i(57763),r=i.n(n),a=i(74458),s=i.n(a)()(r());s.push([t.id,".S_vgi{display:flex;vertical-align:middle}.aZF6U{align-items:center;display:flex;justify-content:center;margin:16px;min-height:40px;position:relative}._6u1QZ{justify-content:flex-end}.LaHM8{align-items:center;background:#1f1f1f;border-radius:2px;color:#929292;cursor:pointer;display:flex;font-size:12px;font-weight:600;height:40px;justify-content:center;margin-right:8px;min-width:40px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none}.LaHM8:last-child{margin-right:0}.LaHM8.AuJOU{background:#444;color:#ddc;cursor:default}.LaHM8._63sUW:hover{background:#444;color:#ddc}.LaHM8._63sUW:hover svg path{fill:#ddc}.LaHM8.iudEy{background:#151515;color:#606060;cursor:default}.LaHM8.iudEy svg path{fill:#606060}.LaHM8 svg{position:relative;top:1px}.LaHM8.iudEy._63sUW:hover{background:#151515;color:#606060}.xBZpn{width:40px}.T9dUM{min-width:64px}.T9dUM svg{right:3px}.xdJcE{min-width:64px}.xdJcE svg{left:6px}.abop9{display:none!important}.oZXhs{bottom:0;color:#7a7a7a;font-size:12px;font-weight:400;height:17px;margin:auto;position:absolute;right:0;top:0}.m62Q_{align-items:center;bottom:0;display:flex;left:0;margin:auto;position:absolute;top:0}.lSXwR{color:#7a7a7a;font-size:12px;font-weight:400;margin-right:6px}",""]),s.locals={pagination:"S_vgi",paginationContainer:"aZF6U",positionRight:"_6u1QZ",control:"LaHM8",active:"AuJOU",hoverable:"_63sUW",disabled:"iudEy",controlPage:"xBZpn",controlPrev:"T9dUM",controlNext:"xdJcE",hide:"abop9",counterView:"oZXhs",filterContainer:"m62Q_",filterTitle:"lSXwR"};const o=s},68404:(t,e,i)=>{i.d(e,{Z:()=>o});var n=i(57763),r=i.n(n),a=i(74458),s=i.n(a)()(r());s.push([t.id,"._1ehfI{display:flex;margin-right:10px}._1ehfI.zEMiG{margin-right:0}._1ehfI:last-child{margin-right:0}._0mXn,.wJ8nM{background:#232323;border:1px solid #606060;color:#929292;display:inline-block;font-size:12px;font-weight:600;line-height:20px;padding:2px 8px;position:relative;text-align:center}._0mXn + ._0mXn,._0mXn + .wJ8nM,.wJ8nM + ._0mXn{margin-left:-1px}._0mXn{cursor:pointer;z-index:1}.wJ8nM{background:#111;border-color:#7a7a7a;color:#ddc;cursor:default;z-index:2}._0mXn:hover{background:#535353}.wJ8nM.UfjRw{background:#fff;border-color:#929292;color:#212121}._0mXn.UfjRw{background:#d8d8d8;border-color:silver;color:#606060}._0mXn.UfjRw:hover{background:#fff}._0mXn.rr7z1{display:flex;height:40px;width:40px}._0mXn.rr7z1,.wJ8nM.rr7z1{align-items:center;background:#1f1f1f;border:0;border-radius:2px;color:#929292;cursor:pointer;display:flex;font-size:12px;font-weight:600;height:40px;justify-content:center;margin-right:8px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:40px}._0mXn.rr7z1:last-child{margin-right:0}.wJ8nM.rr7z1{background:#444;color:#ddc;cursor:default}._0mXn.rr7z1:hover{background:#444;color:#ddc}.zEMiG ._0mXn,.zEMiG .wJ8nM{flex-grow:1}",""]),s.locals={filterControl:"_1ehfI",stretched:"zEMiG",filter:"_0mXn",filterActive:"wJ8nM",light:"UfjRw",pagination:"rr7z1"};const o=s},12985:(t,e,i)=>{i.d(e,{B7:()=>n,FC:()=>r,Ve:()=>a,sG:()=>s});const n="down",r="up",a="backward",s="forward"},86778:(t,e,i)=>{i.r(e),i.d(e,{default:()=>u});var n=i(40330),r=i(11762),a=i(1514),s=i(26412),o=i(2726),c=(i(75213),i(40311)),l=i(49685),h=i(54581);const g={set myTabsSettings(t){return l.Z.set(h.dS,t)},get myTabsSettings(){return l.Z.get(h.dS)},set elementTabIndex(t){l.Z.set(h.dS,{...this.myTabsSettings,elementTabIndex:t})},get elementTabIndex(){return this.myTabsSettings&&void 0!==this.myTabsSettings.elementTabIndex?this.myTabsSettings.elementTabIndex:0},set tabTypeIndex(t){this.myTabsSettings={...this.myTabsSettings,tabTypeIndex:t}},get tabTypeIndex(){return this.myTabsSettings&&void 0!==this.myTabsSettings.tabTypeIndex?this.myTabsSettings.tabTypeIndex:0},set perPageIndex(t){this.myTabsSettings={...this.myTabsSettings,perPageIndex:t}},get perPageIndex(){return this.myTabsSettings&&void 0!==this.myTabsSettings.perPageIndex?this.myTabsSettings.perPageIndex:0},removeItem:t=>c.Z.get({url:"/user/favorite/tabListRemove",payload:{id:t}})},d=(0,o.PH)("myTabs:page:change");var p=i(28032);const u=(0,a.Z)((0,n.$j)((t=>({...t.content.pagination,counterView:(0,p.PL)(t),pageCount:(0,p.TC)(t),filter:{...t.content.pagination.filter,data:(0,p.O$)(t),hideFilter:(0,p.tS)(t)}})),{changePage:d,changeElementCount:t=>e=>{g.perPageIndex=t,e((0,o.PH)("myTabs:elementCount:change")(t))}}),(0,r.Z)((t=>({onClick(e){t.changePage(e)},get filter(){return{...t.filter,onChange:e=>t.changeElementCount(e)}}}))))(s.Z)},83569:(t,e,i)=>{i.r(e),i.d(e,{default:()=>o});var n=i(97104),r=i(26412),a=i(53618),s=i(24517);const o=t=>{const e=(0,n.Q)().t,i=(0,a.Z)([t=>t.content.pagination])[0];return(0,s.tZ)(r.Z,{...t,...i,prevButtonText:"< "+e({message:["Prev"]}),nextButtonText:e({message:["Next"]})+" >",perPageText:e({message:["Per Page"]})})}},28032:(t,e,i)=>{i.d(e,{PL:()=>R,O$:()=>F,hU:()=>W,tS:()=>Q,TC:()=>G});var n=i(38314),r=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},a=function(){function t(){r(this,t),this._cache={}}return t.prototype.set=function(t,e){this._cache[t]=e},t.prototype.get=function(t){return this._cache[t]},t.prototype.remove=function(t){delete this._cache[t]},t.prototype.clear=function(){this._cache={}},t}();(function(){function t(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).cacheSize;if(r(this,t),void 0===e)throw new Error("Missing the required property `cacheSize`.");if(!Number.isInteger(e)||e<=0)throw new Error("The `cacheSize` property must be a positive integer value.");this._cache={},this._cacheOrdering=[],this._cacheSize=e}t.prototype.set=function(t,e){if(this._cache[t]=e,this._cacheOrdering.push(t),this._cacheOrdering.length>this._cacheSize){var i=this._cacheOrdering[0];this.remove(i)}},t.prototype.get=function(t){return this._cache[t]},t.prototype.remove=function(t){var e=this._cacheOrdering.indexOf(t);e>-1&&this._cacheOrdering.splice(e,1),delete this._cache[t]},t.prototype.clear=function(){this._cache={},this._cacheOrdering=[]}})(),function(){function t(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).cacheSize;if(r(this,t),void 0===e)throw new Error("Missing the required property `cacheSize`.");if(!Number.isInteger(e)||e<=0)throw new Error("The `cacheSize` property must be a positive integer value.");this._cache={},this._cacheOrdering=[],this._cacheSize=e}t.prototype.set=function(t,e){if(this._cache[t]=e,this._registerCacheHit(t),this._cacheOrdering.length>this._cacheSize){var i=this._cacheOrdering[0];this.remove(i)}},t.prototype.get=function(t){return this._registerCacheHit(t),this._cache[t]}
1,t.prototype.remove=function(t){this._deleteCacheHit(t),delete this._cache[t]},t.prototype.clear=function(){this._cache={},this._cacheOrdering=[]},t.prototype._registerCacheHit=function(t){this._deleteCacheHit(t),this._cacheOrdering.push(t)},t.prototype._deleteCacheHit=function(t){var e=this._cacheOrdering.indexOf(t);e>-1&&this._cacheOrdering.splice(e,1)}}();const s=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var r=a;return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=void 0,s=void 0;"function"==typeof i?(a=new r,s=i):(a=i.cacheObject||new r,s=i.selectorCreator||n.P1);var o=function(){var i=t.apply(void 0,arguments);if("string"==typeof i||"number"==typeof i){var n=a.get(i);return void 0===n&&(n=s.apply(void 0,e),a.set(i,n)),n.apply(void 0,arguments)}};return o.getMatchingSelector=function(){var e=t.apply(void 0,arguments);return a.get(e)},o.removeMatchingSelector=function(){var e=t.apply(void 0,arguments);a.remove(e)},o.clearCache=function(){a.clear()},o.resultFunc=e[e.length-1],o}};var o=i(56619),c=i(21690),l=i(54581),h=i(91152),g=i(68190),d=i(13238),p=i(12985);const u="type",b={[p.B7]:d.M0,[p.FC]:d.hX},f=t=>t.content.sorting.sortName,m=t=>t.content.sorting.sortList,v=(0,n.P1)([m,f],((t,e)=>t.indexOf(e))),y=(0,n.P1)([(t,e)=>e.id,m],((t,e)=>"number"==typeof t?e[t]:t)),x=(0,n.P1)([y,t=>t.content.sorting.sortDirection,f],((t,e,i)=>i===t?e[t]===p.B7?p.FC:p.B7:e[i]));(0,n.P1)([t=>t.content.sorting.sortNames,v,x],((t,e,i)=>({ids:[u],byIds:{[u]:{data:t.map(((t,n)=>e===n?{...t,leftIcon:{name:b[i],state:"muted"}}:t)),activeIndex:e}}})));var S=i(84014),T=i(32660),_=i(46342);const w=(t,e)=>(t+"").toLowerCase()===(e+"").toLowerCase(),P=[_.Jr,_.lN,_.wu,_.Oz,_.au,_.TQ,_.bf,_.jM,_.Ez,_.PU,_.Ad,_.ae],I=[_.wu,_.Jr,_.TQ,_.Oz,_.bf],C=[o.py,o.pR,o.ID,o.cp,o.kt,o._4,o.y5,o.jf,o.OF,o.gI,o.Sp],M=(t,e)=>e.id,N=t=>t.content.tabList.ids,Z=t=>t.content.tabList.byIds,k=t=>t.content.sorting.sortName,z=t=>t.content.sorting.sortDirection,A=(0,n.P1)([k,z,t=>v(t)],((t,e,i)=>({data:(0,h.v)({fieldsHeading:I}).map((t=>({...t||{},isSortable:"category"!==t.id}))),activeIndex:i,direction:e[t]}))),B=((0,n.P1)([k,A],((t,e)=>{const i=((t,e)=>e&&e.data.find((e=>e.id===t)))(t,e);return i?i.text:t})),(0,n.P1)([t=>t.content.filters.byIds.order.data,(t,e)=>e&&void 0!==e.orderActiveIndex?e.orderActiveIndex:t.content.filters.byIds.order.activeIndex],((t,e)=>t[e]))),O=(0,n.P1)([N,Z,B],((t,e,i)=>t.filter((t=>w(e[t].tabType,i.name)||w(i.name,o.py))))),V=(0,n.P1)([O,Z],((t,e)=>{const i=[o.py,...t.reduce(((t,e)=>[...t,e]),[]).map((t=>e[t].type))];return(t=>{const e={all:c.a.t({message:["All"]}),All:c.a.t({message:["All"]}),Official:c.a.t({message:["Official"]}),Chords:c.a.t({message:["Chords"]}),Tabs:c.a.t({message:["Tab"]}),Pro:c.a.t({message:["Guitar Pro"]}),Power:c.a.t({message:["Power"]}),"Bass Tabs":c.a.t({message:["Bass"]}),"Drum Tabs":c.a.t({message:["Drums"]}),Video:c.a.t({message:["Video"]}),"Ukulele Chords":c.a.t({message:["Ukulele"]}),MuseScore:c.a.t({message:["MuseScore"]}),favorite:c.a.t({message:["Favorite"]}),personal:c.a.t({message:["Personal"]}),contributions:c.a.t({message:["Contributions"]}),Artist:c.a.t({message:["Artist"]}),Song:c.a.t({message:["Song"]}),Date:c.a.t({message:["Date"]})};return t.filter(Boolean).map((t=>({name:t,text:e[t],isContribution:t===o.lw})))})(C.filter((t=>i.includes(t))))})),X=(0,n.P1)([V,t=>t.content.filters.byIds.tabs.activeIndex],((t,e)=>t[e])),D=(0,n.P1)([N,Z,X,B,k,z],((t,e,i,n,r,a)=>{let s=t.filter((t=>!!w(i.name,o.py)||w(e[t].type,i.name))).filter((t=>w(e[t].tabType,n.name)||w(n.name,o.py)));const c=s.map((t=>t.replace(/[^0-9]/g,""))).reverse(),h=i.name;return w(h,o.py)&&(s=s.reverse().filter(((t,e)=>c.indexOf(t.replace(/[^0-9]/g,""))===e))),s=(0,T.Z)(l.dS).sort({listIds:s,list:e,sortName:r}),(0,T.Z)(l.dS).arrayReverse(a[r],s)})),E=(0,n.P1)([t=>t.content.pagination.filter.data,t=>t.content.pagination.filter.activeIndex,t=>t.content.pagination.activeIndex,D],((t,e,i,n)=>{const r=t[e].text,a=(i-1)*(isNaN(r)?0:r);return n.filter(((t,e)=>isNaN(r)||a<=e&&e<r+a))})),H=((0,n.P1)(E,(t=>[{data:t}])),(0,n.P1)(E,(t=>t&&t.length)),s(M,(0,n.P1)([M,E],((t,e)=>{const i=e.indexOf(t)-1;return e[i]})),Z,((t,e)=>e.isMobile),((t,e,i,n)=>{const r=i[t],a=i[e],s=r.artist_name===(a&&a.artist_name),o=(0,g.f)({fieldNames:P,fn:t=>(0,S.ti)({tab:r,field:t,fields:P,isShortType:n})});return{...o||{},subtitle:!s||n?o.subtitle:[]}}))(((t,e)=>
1e.id+"_my_tabs_tab_cache_key")),t=>t.content.pagination.activeIndex),L=t=>D(t),F=(0,n.P1)([t=>t.content.pagination.filter.data,L],((t,e)=>e.length>50&&e.length<100&&100===t[1].text?t.filter((t=>100!==t.text)):t)),U=(0,n.P1)([F,t=>t.content.pagination.filter.activeIndex],((t,e)=>t[e].text)),j=(0,n.P1)([H,U],((t,e)=>1===t||isNaN(e)?1:(t-1)*e+1)),J=(0,n.P1)([H,t=>E(t),j],((t,e,i)=>1===t?e.length:e.length+i-1)),R=(0,n.P1)([j,J,L],((t,e,i)=>({startIndex:t,endIndex:e,allCount:i.length}))),G=(0,n.P1)([U,L],((t,e)=>{if(isNaN(t))return 1;const i=e.length/t,n=1===i?0:Math.floor(i);return 0===n?1:n+1})),Q=(0,n.P1)([U,L],((t,e)=>!!(e.length<=(isNaN(t)?50:t)))),W=(0,n.P1)([H],(t=>t))},32660:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(49685),r=i(60685),a=i(12985);const s=(t="")=>({set sortSettings(e){return n.Z.set(t,e)},get sortSettings(){return n.Z.get(t)},arrayReverse:(t,e)=>t===a.FC?e.reverse():e,sort({listIds:t,list:e,sortName:i,isArtistSortLight:n=!1}){const a=i=>[...t.sort(((t,n)=>{const r=i(e[t]),a=i(e[n]);return r===a?0:r<a?-1:1}))],s={date:()=>a((t=>t.date)),subtitle:()=>n?a((t=>t.artist_name||t.artist)):[...t.sort(((t,i)=>{const n=e[t].song_name,a=e[i].song_name,s=t=>r.Z.getComputedArtistName(r.Z.getArtists(t)),o=s(e[t]),c=s(e[i]);return o===c?n<a?-1:1:o<c?-1:1}))],title:()=>a((t=>t.song_name||t.name)),tabs:()=>a((t=>t.tabs))};return s[i]?s[i]():e},get sortName(){return this.sortSettings&&void 0!==this.sortSettings.sortName?this.convertSortNameStorageToApplication(this.sortSettings.sortName):"date"},set sortName(t){this.sortSettings={...this.sortSettings,sortName:this.convertSortNameApplicationToStorage(t)}},set sortDirection(t){this.sortSettings={...this.sortSettings,sortDirection:this.convertSortDirectionApplicationToStorage(t)}},get sortDirection(){return this.sortSettings&&void 0!==this.sortSettings.sortDirection?this.convertSortDirectionStorageToApplication(this.sortSettings.sortDirection):{subtitle:a.B7,title:a.B7,date:a.B7,tabs:a.B7}},convertSortNameStorageToApplication:t=>({Artist:"subtitle",Song:"title",Date:"date",Title:"title",Tabs:"tabs"}[t]),convertSortNameApplicationToStorage(t){return{subtitle:"Artist",title:"Title"===this.sortName?"Title":"Song",date:"Date",tabs:"Tabs"}[t]},convertSortDirectionStorageToApplication(t){return Object.keys(t).reduce(((e,i)=>({...e,[this.convertSortNameStorageToApplication(i)]:this.convertValueDirectionStorageToApplication(t[i])})),{})},convertSortDirectionApplicationToStorage(t){return Object.keys(t).reduce(((e,i)=>({...e,[this.convertSortNameApplicationToStorage(i)]:this.convertValueDirectionApplicationToStorage(t[i])})),{})},convertValueDirectionStorageToApplication:t=>({[a.sG]:a.B7,[a.Ve]:a.FC}[t]),convertValueDirectionApplicationToStorage:t=>({[a.B7]:a.sG,[a.FC]:a.Ve}[t])})},26412:(t,e,i)=>{i.d(e,{Z:()=>w});var n=i(502),r=i(20386),a=i.n(r),s=i(66421),o=i(21690),c=i(33351),l=i(23278),h=i.n(l),g=i(68404),d={injectType:"styleTag",insert:"head",singleton:!1};h()(g.Z,d);const p=g.Z.locals||{};var u=i(24517),b=i(22223);const f=({text:t,url:e,onClick:i,active:n,state:r,...s})=>{const o=a()([n?p.filterActive:p.filter,p[r]]);return e&&!n?(0,u.tZ)(c.Z,{className:o,url:e,text:t,...s}):(0,u.tZ)("div",{className:o,onClick:n?null:i,children:t})},m=({data:t,activeIndex:e,onChange:i,state:n,isStretched:r})=>(0,u.tZ)("nav",{className:a()([p.filterControl,r&&p.stretched]),children:t.map(((t,r)=>(0,b.az)(f,{...t,state:n,active:r===e,onClick:()=>i(r),key:t.text})))});m.defaultProps={state:"dark",isStretched:!1};const v=m;var y=i(20596),x={injectType:"styleTag",insert:"head",singleton:!1};h()(y.Z,x);const S=y.Z.locals||{};var T,_;let w=(0,s.Z)(((_=class extends n.PureComponent{constructor(t){super(t),this.props=void 0,this.state=void 0,this.onPageChange=t=>()=>{if(t===this.state.activeIndex)return;const e=this.props.onClick;this.setState({activeIndex:t},(()=>e&&e(t)))},this.getPaginationItem=t=>({className:this.getClasses(t),text:t,page:t}),this.getPage=({className:t,page:e,text:i})=>{const n=this.props,r=n.url,s=n.dynamic,o=n.rel,l=n.firstPageRel,h=this.isMobile;return s?(0,u.tZ)("div",{className:a()(S.control,t,{[S.hoverable]:!h}),onClick:this.onPageChange(e),children:i}):(0,u.tZ)(c.Z,{rel:1===e?l:o,text:i,url:r[e-1],className:a()(S.control,t,{[S.hoverable]:!h})})},this.state={activeIndex:t.activeIndex}}componentWillReceiveProps(t){this.state.activeIndex!==t.activeIndex&&this.setState({activeIndex:t.activeIndex})}get controlVisible(){return this.isMobile?3:10}get startVisiblePage(){const t=this.props,e=t.activeIndex,i=t.pageCount;return e<Math.round(this.controlVisible/2)||this.controlVisible>=i?1:.5>(i-e)/this.controlVisible?i-this.controlVisible+1:e-Math.round(this.controlVisible/2)+1}
1get visiblePageCount(){const t=this.props.pageCount;return t>this.controlVisible?this.controlVisible:t}get pagesAST(){const t=this.startVisiblePage,e=this.visiblePageCount;return[...Array(e)].fill(0).map(((e,i)=>i+t)).map(this.getPaginationItem)}getClasses(t){return t===this.state.activeIndex?[S.controlPage,S.active]:[S.controlPage]}get PrevButton(){return 1===this.state.activeIndex?null:this.getPage({className:[S.controlPrev],page:this.state.activeIndex-1,text:this.props.prevButtonText})}get NextButton(){return this.state.activeIndex===this.props.pageCount?null:this.getPage({className:[S.controlNext],page:this.state.activeIndex+1,text:this.props.nextButtonText})}get Pages(){return this.pagesAST.map(this.getPage)}get Filters(){return(0,u.BX)("div",{className:S.filterContainer,children:[(0,u.tZ)("span",{className:S.filterTitle,children:this.props.perPageText}),(0,u.tZ)(v,{...this.props.filter,state:"pagination"})]})}get Meta(){const t=this.props.counterView,e=t.startIndex,i=t.endIndex,n=t.allCount;return(0,u.tZ)("span",{className:S.counterView,children:o.a.t({message:["Showing ",["start"]," - ",["end"]," of ",["count"]]},{start:e,end:i,count:n})})}get isMobile(){return this.props.isMobile}get isFilterVisible(){const t=this.props.filter;return!this.isMobile&&t&&!t.hideFilter}get isMetaVisible(){const t=this.props,e=t.counterView,i=t.needMeta;return!this.isMobile&&i&&!!e.allCount}render(){const t=this.props,e=t.pageCount,i=t.counterView,n=t.needMeta,r=t.filter;return 1>=e&&!this.isFilterVisible?null:(0,u.BX)("div",{className:a()([S.paginationContainer,n&&i&&S.horizontalView,r&&r.hideFilter&&S.positionRight]),children:[this.isFilterVisible&&this.Filters,1<e&&(0,u.BX)("div",{className:S.pagination,children:[this.PrevButton,this.Pages,this.NextButton]}),this.isMetaVisible&&this.Meta]})}}).defaultProps={needMeta:!1,dynamic:!1,prevButtonText:o.a.t({message:["< Prev"]}),nextButtonText:o.a.t({message:["Next >"]}),perPageText:o.a.t({message:["Per page"]}),onClick:()=>{},onChange:()=>{}},T=_))||T}}]); 2//# sourceMappingURL=/static/public/build/ug_react_i18n_es6/../../sourcemap/ug_react_i18n_es6/202609/922.e72867c2894e12e872509fd7f691b818.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.