PageSourceSearch

https://www.ultimate-guitar.com/static/public/build/ug_react_i18n_…/2568.3ba7e22dc70df1f0dbcbfdd2f7fc839b.js

js ultimate-guitar.com collected 2026-09-24 08:39:14 UTC 79,727 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkug_react_i18n_es6=self.webpackChunkug_react_i18n_es6||[]).push([[2568],{70893:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(57763),o=n.n(i),a=n(74458),s=n.n(a)()(o());s.push([e.id,".nrr-p{align-items:center;background-color:#ff5d55;border-radius:4px;color:#fff;display:flex;font-size:14px;font-weight:600;height:24px;justify-content:center;margin-left:18px;padding:3px 9px;white-space:nowrap}",""]),s.locals={error:"nrr-p"};const r=s},6158:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(57763),o=n.n(i),a=n(74458),s=n.n(a)()(o());s.push([e.id,".zJBvk{background:hsla(0,0%,100%,.05);border-radius:8px;margin-right:30px;overflow:hidden;padding:20px 24px 20px 26px;position:relative;width:496px}.AJ8SK{opacity:.6}.fk4Pl{display:flex;flex-direction:column;height:100%;justify-content:space-between}.wWoye{background-color:#ffc600;bottom:0;height:100%;left:0;opacity:.95;position:absolute;width:5px}.cPGCx{display:flex;flex-direction:column}.kkoJS{color:#929292;font-size:14px;font-weight:400;letter-spacing:.5px;line-height:20px;margin-bottom:16px;text-transform:capitalize}.rIeAR{margin-bottom:8px}.va-HD{align-items:center;color:#ddc;display:flex;flex-direction:row;font-size:22px;font-weight:600;line-height:32px;margin-bottom:4px}._1sL_I{align-items:center;display:flex;flex-direction:row}.eR5pU{align-items:center;border-radius:4px;color:#fff;display:flex;font-size:12px;font-weight:600;height:20px;justify-content:center;line-height:14px;margin-left:16px;padding:3px 9px;text-align:center}.IZSRj .eR5pU{background:#a856e9}.u9uD1 .eR5pU{background-color:#ff5d55}.SsbO4 .eR5pU{background-color:#ffc600}.nKVuh{display:flex;flex-direction:column}.IckWQ{display:flex;flex-direction:row}.IckWQ:not(:last-child){margin-bottom:4px}.AMLH6{align-items:center;display:flex;justify-content:center;opacity:.8}.AMLH6 svg{margin:0 4px 0 0}._1d5TQ{color:#ddc;font-size:14px;font-weight:400;line-height:20px}.lTlet{margin-top:20px}.-GOhW{align-items:center;background-color:transparent;border:0;color:#ddc;display:flex;margin:0;padding:0}.-GOhW:hover{cursor:pointer}.K5f3I{align-items:center;display:flex;justify-content:space-between}._9eAdi{background-color:#ddc;border:1px solid #ddc;border-radius:50%;color:#ddc;height:3px;margin-right:2.5px;width:3px}.jkDcm{align-items:center;background:#262626;border-radius:8px;display:flex;margin-top:20px;padding:12px}
1.jkDcm path{fill:#44db5e}._6yLtO{color:#868686;font-size:14px;font-weight:400;line-height:18px;margin-left:12px}._0T5-v{color:#929292;font-size:14px;font-weight:400;line-height:20px;margin-bottom:16px}.yWkIl{padding-left:0!important}",""]),s.locals={container:"zJBvk",disabled:"AJ8SK",main:"fk4Pl",typeIndicator:"wWoye",content:"cPGCx",status:"kkoJS",statusTop:"rIeAR",title:"va-HD",titleWrapper:"_1sL_I",titleBlock:"eR5pU",bundle:"IZSRj",pro:"u9uD1",edu:"SsbO4",features:"nKVuh",feature:"IckWQ",featureIcon:"AMLH6",featureText:"_1d5TQ",actionWrapper:"lTlet",tooltipBtn:"-GOhW",statusWrapper:"K5f3I",dot:"_9eAdi",noteWrapper:"jkDcm",note:"_6yLtO",access:"_0T5-v",cardBtn:"yWkIl"};const r=s},79018:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(57763),o=n.n(i),a=n(74458),s=n.n(a)()(o());s.push([e.id,".LEZCm{display:flex;flex-direction:column;gap:var(--ug-spacing-xxl)}.wsqBm{align-items:stretch;display:flex;gap:var(--ug-spacing-xxl)}.dajFY{flex:1 1 0;min-width:0;width:100%}.dajFY:only-child{max-width:calc(50% - var(--ug-spacing-xxl)/2)}.CBpbf{display:flex;flex-direction:column;gap:var(--ug-spacing-m)}",""]),s.locals={wrapper:"LEZCm",row:"wsqBm",column:"dajFY",columnWrapper:"CBpbf"};const r=s},56285:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(57763),o=n.n(i),a=n(74458),s=n.n(a)()(o());s.push([e.id,".hz-Yt{background:hsla(0,0%,100%,.05);border-radius:8px;display:flex;min-height:100%;overflow:hidden;padding:20px;position:relative}.tEr70{opacity:.6}.Vuuxe{display:flex;flex-direction:column;justify-content:space-between}.-YGqQ{background-color:#ffc600;bottom:0;height:100%;left:0;opacity:.95;position:absolute;width:5px}.HPeV1{display:flex;flex-direction:column}.g-LEd{color:#929292;font-size:14px;font-weight:400;letter-spacing:.5px;line-height:20px;margin-bottom:16px;text-transform:capitalize}.o7buw{margin-bottom:8px}.Dlpwr{align-items:center;color:#ddc;display:flex;flex-direction:row;font-size:22px;font-weight:600;line-height:32px;margin-bottom:4px}.mcnSe{align-items:center;display:flex;flex-direction:row}.iIMQF{align-items:center;border-radius:4px;color:#fff;display:flex;font-size:12px;font-weight:600;height:20px;justify-content:center;line-height:14px;margin-left:16px;padding:3px 9px;text-align:center}._54msx .iIMQF{background:#a856e9}.ku0Yo .iIMQF{background-color:#ff5d55}._5-eww .iIMQF{background-color:#ffc600}.Zx29I{display:flex;flex-direction:column}.orXf4{display:flex;flex-direction:row}.orXf4:not(:last-child){margin-bottom:4px}.w3dXZ svg{margin:0 4px 0 0}._6b0fv{color:#ddc;font-size:14px;font-weight:400;line-height:20px}.n5AbM{margin-top:20px}.n2jGv{align-items:center;background-color:transparent;border:0;color:#ddc;display:flex;margin:0;padding:0}.n2jGv:hover{cursor:pointer}.tzSKc{align-items:center;display:flex;justify-content:space-between}.McgrK{background-color:#ddc;border:1px solid #ddc;border-radius:50%;color:#ddc;height:3px;margin-right:2.5px;width:3px}.VqYZT{background:#262626;border-radius:8px;display:flex;margin-top:20px;padding:12px}
1.VqYZT path{fill:#44db5e}.ZZShU{min-width:16px}.MCLOs{color:#868686;font-size:14px;font-weight:400;line-height:18px;margin-left:8px}.OEd8N{color:#929292;font-size:14px;font-weight:400;line-height:20px;margin-bottom:16px}.eR7Lh{padding-left:0!important}.kn5cM{align-items:center;background-color:var(--ug-color-accent-yellow);border-radius:100px;display:inline-flex;font:var(--ug-font-body-s);font-weight:var(--ug-font-weight-medium);text-transform:none}.kn5cM:hover::before{border-radius:100px}._6H_iI{background-color:#707070;border-radius:50%;height:44px;width:44px}.Fs8Rr{background-color:var(--ug-color-status-error)}.Fs8Rr:hover::before{border-radius:100px}.Fs8Rr:hover::before{background-color:transparent}.-JX4E{color:var(--ug-color-accent-yellow);padding-left:0}.-JX4E:hover::before{border-radius:100px}",""]),s.locals={container:"hz-Yt",disabled:"tEr70",main:"Vuuxe",typeIndicator:"-YGqQ",content:"HPeV1",status:"g-LEd",statusTop:"o7buw",title:"Dlpwr",titleWrapper:"mcnSe",titleBlock:"iIMQF",bundle:"_54msx",pro:"ku0Yo",edu:"_5-eww",features:"Zx29I",feature:"orXf4",featureIcon:"w3dXZ",featureText:"_6b0fv",actionWrapper:"n5AbM",tooltipBtn:"n2jGv",statusWrapper:"tzSKc",dot:"McgrK",noteWrapper:"VqYZT",noteIcon:"ZZShU",note:"MCLOs",access:"OEd8N",cardBtn:"eR7Lh",circledBtn:"kn5cM",circle:"_6H_iI",cancelBtn:"Fs8Rr",detailsBtn:"-JX4E"};const r=s},22134:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(57763),o=n.n(i),a=n(74458),s=n.n(a)()(o());s.push([e.id,".kne8s{padding:10px 32px}.kVzrW{padding:16px}.bbmhn{color:#ddc;font-size:22px;font-style:normal;font-weight:700;line-height:32px;margin-bottom:12px}",""]),s.locals={container:"kne8s","container--mobile":"kVzrW",title:"bbmhn"};const r=s},93888:(e,t,n)=>{n.d(t,{Z:()=>p});var i=n(57763),o=n.n(i),a=n(74458),s=n.n(a),r=n(41074),l=n.n(r),c=new URL(n(19668),n.b),d=s()(o()),u=l()(c);d.push([e.id,".odLbv{padding:var(--ug-spacing-m) var(--ug-spacing-xxl)}._2F9XI{margin:var(--ug-spacing-m) 0 var(--ug-spacing-xxl)}.UxHx_{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--ug-color-text-primary);font:var(--ug-font-subtitle-m);font-weight:var(--ug-font-weight-semibold);letter-spacing:.36px}._8KsmW{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--ug-color-text-secondary);font:var(--ug-font-articles-body-m);font-family:var(--ug-font-family-fallback)}._72MXT{background:url("+u+");height:232px;margin-top:var(--ug-spacing-xl);width:calc(50% - var(--ug-spacing-xxl))}",""]),d.locals={container:"odLbv",wrapper:"_2F9XI",title:"UxHx_",subtitle:"_8KsmW",placeholder:"_72MXT"};const p=d},35329:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(57763),o=n.n(i),a=n(74458),s=n.n(a)()(o());s.push([e.id,".n0Su5{-webkit-overflow-scrolling:auto;left:0;overflow:hidden;position:fixed;right:0}.STagf{height:100vh}",""]),s.locals={disable_scroll:"n0Su5",html_disable_scroll:"STagf"};const r=s},68604:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(57763),o=n.n(i),a=n(74458),s=n.n(a)()(o());s.push([e.id,".kpJrX{-webkit-overflow-scrolling:touch;background:#fff;bottom:0;color:#212121;font-size:12px;font-weight:600;height:100%;left:0;line-height:1.33;overflow-y:auto;padding-bottom:env(safe-area-inset-bottom);position:fixed;right:0;top:0;z-index:100}",""]),s.locals={layer:"kpJrX"};const r=s},20924:(e,t,n)=>{n.d(t,{Z:()=>p});var i=n(57763),o=n.n(i),a=n(74458),s=n.n(a),r=n(41074),l=n.n(r),c=new URL(n(48861),n.b),d=s()(o()),u=l()(c);d.push([e.id,"._6f4mJ{align-items:center;display:flex;flex-direction:column;height:480px;justify-content:center}.On-xf{background:url("+u+") no-repeat;background-size:cover;height:120px;width:120px}.wGeFO{font-size:32px;line-height:32px;margin-top:12px}.s6hOd{color:#3e3e3e;font-size:18px;font-weight:600;line-height:24px;margin-bottom:16px;text-align:center}.C213T{color:#7a7a7a;font-size:16px;font-weight:400;line-height:24px;margin-top:4px;text-align:center;width:412px}.-S6jg{border-radius:8px}.XM94-{align-items:center;display:flex;flex-direction:row;justify-content:center}.XM94- > button:nth-child(2){margin-left:20px}.HjbBe{border:none;border-right:1px solid #e0e0e0;color:#757575;font-size:13px;font-weight:600;height:36px;line-height:20px;padding:8px 12px;width:280px}.aGYRd{align-items:center;border:1px solid #e0e0e0;border-radius:2px;display:flex;margin-top:24px}.aGYRd > button{border-radius:0 1px 1px 0}",""]),d.locals={layer:"_6f4mJ",markIcon:"On-xf",title:"wGeFO",subtitle:"s6hOd",description:"C213T",modalStyles:"-S6jg",actions:"XM94-",disabledInput
1:"HjbBe",promocodeActivationBlock:"aGYRd"};const p=d},80603:(e,t,n)=>{var i=n(6894);t.Z=void 0;var o=i(n(32415)),a=i(n(74640)),s=n(502),r=(i(n(67956)),i(n(32214)),function(e,t,n){return function(i){var r=(0,s.createFactory)(i),l=function(i){function s(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return(e=i.call.apply(i,[this].concat(o))||this).state={stateValue:"function"==typeof n?n(e.props):n},e.updateStateValue=function(t,n){return e.setState((function(e){var n=e.stateValue;return{stateValue:"function"==typeof t?t(n):t}}),n)},e}return(0,a.default)(s,i),s.prototype.render=function(){var n;return r((0,o.default)({},this.props,((n={})[e]=this.state.stateValue,n[t]=this.updateStateValue,n)))},s}(s.Component);return l}});t.Z=r},89292:(e,t,n)=>{n.r(t),n.d(t,{openBooksBuyLayer:()=>x,openBuyLayer:()=>I,openEduBuyLayer:()=>Z});var i=n(2726),o=n(46991),a=n(40070),s=n(30171),r=n(13901),l=n(55113),c=n(85079),d=n(46525),u=n(90210),p=n(15231),g=n(43902),b=n(66880),h=n(54229),m=n(40300),y=n(91486),v=n(84394),f=n(44305),_=n(74150),S=n(80424),k=n(66528),w=n(47694);const T="ID"===(0,p.Z2)().so,P=[b.g1,b.gZ,b.G4,b.c6],I=(e,t=null,n=c.oG,s=!1,l=!1)=>(p,g)=>{var b,h,m;const y="string"==typeof e?e:f.bX,S=g(),k=null===(b=S.buy)||void 0===b?void 0:b.forceNoAuth,w=null===(h=S.buy)||void 0===h?void 0:h.step,I=d.Mq.getId(S),Z=!!u.jC.getProAccessUntil(S),x=!!u.jC.getEduAccessUntil(S),C=n===c.K6?x:Z,A=!(null===(m=S.buy)||void 0===m||!m.introductoryPriceKeyFirst),E=v.Z.getPaymentParams({step:y,hasTrial:C,placementId:t,withoutDefaultPaymentProps:s||A});!T&&P.includes(r.I.getSessionAppUtmCampaign())&&(n===c.mn||n===c.yt)&&(E.trialPeriod=7),(0,_.y)().then((e=>{e.listenBuyActions(w,y,t,I,n,g())})).catch(a.Z.error),p((0,i.PH)(o.bu)({step:y,placementId:t,service:n,forceNoAuth:!(!l&&!k),...E}))},Z=({placementId:e=null,withAutoStart:t=!1,step:n=f.Qs,disableTour:i=!1})=>o=>{const a=S.Z.isEduOnboardingFinished();let r=t&&S.Z.isAvailable()&&!a,d=!1;if(i&&t)o(I(n,e,c.K6));else{if(t&&!r&&S.Z.isNeedForceEduOnboarding()&&(r=!0,d=!0),t){if(S.Z.eduFunnelWasShownThisSession)return;S.Z.setEduFunnelWasShownThisSession()}r?(S.Z.setTourWasShownThisSession(),d&&o((0,k.kP)()),o(l.Ym.setAppUtmCampaign(m.$H)),o((0,s.sM)({step:null,placementId:w.ky})),o((0,k.j3)({canBeClosed:!1}))):!t&&o(I(n,e,c.K6))}},x=({placementId:e=null,withAutoStart:t=!1,step:n=f.FU,disableTour:i=!1})=>(o,a)=>{const l=a(),d=S.Z.isBooksOnboardingFinished(),p=!!u.jC.getBookAccessUntil(l),m=u.jC.getHasProAccess(l);if(e!==w.y_){if(!p&&m&&[b.g1,b.c6].includes(r.I.getSessionAppUtmCampaign()))return o((0,s.sM)({priceKey:(0,y.yo)(f.SQ)})),void o(I(g.tW,e,c.mn));if(!p&&m&&[b.gZ,b.G4].includes(r.I.getSessionAppUtmCampaign()))return o((0,s.sM)({priceKey:(0,y.yo)(h.YW)})),void o(I(g.tW,e,c.yt));if(t){if(S.Z.booksFunnelWasShownThisSession)return;S.Z.setBooksFunnelWasShownThisSession()}return i&&t||i||!S.Z.isAvailable()||d?void o(I(n,e,c.mn)):(S.Z.setTourWasShownThisSession(),o((0,s.sM)({step:null,placementId:e})),void o((0,k.j3)({canBeClosed:!1})))}o(I(n,e,c.mn))}},66528:(e,t,n)=>{n.d(t,{HV:()=>s,M2:()=>c,QZ:()=>l,Qz:()=>r,j3:()=>a,kP:()=>d});var i=n(2726),o=n(48714);const a=(0,i.PH)(o.QU),s=(0,i.PH)(o.zC),r=(0,i.PH)(o.qw),l=(0,i.PH)(o.Oy),c=(0,i.PH)(o.Y3),d=(0,i.PH)(o.Fc);(0,i.PH)(o.Ad)},43342:(e,t,n)=>{n.d(t,{Fe:()=>a,_L:()=>s,te:()=>o,xM:()=>i});const i="ColdStart",o="ColdStartMob",a="SetAnswer",s="UnsetAnswer"},86092:(e,t,n)=>{n.d(t,{$H:()=>g,K4:()=>b,QZ:()=>m,Tp:()=>d,j3:()=>c,jo:()=>h,kb:()=>u});var i=n(2726),o=n(62109),a=n(85079),s=n(14328),r=n(21993),l=(n(89292),n(28423),n(93783));const c=(e,t,n,i,a)=>o.ZP.pausePayment(e,t,n,i,a),d=(e,t,n,i)=>o.ZP.resumePayment(e,t,n,i),u=e=>o.ZP.processExtraPayment(e),p=[a.yt,a.K6,a.mn],g=e=>o.ZP.sendCancellationRequest(e).then((t=>(null!=e&&e.service&&p.includes(e.service)&&s.FY.addComebackCancelledService(e.service),t))),b=e=>r.ZP.saveExitInterviewAnswer(e),h=e=>r.ZP.saveExitInterviewUserGiveConsent(e),m=(e,t)=>r.ZP.saveExitInterviewFeedback(e,t);(0,i.PH)(l.E)},21993:(e,t,n)=>{n.d(t,{ZP:()=>p});var i=n(40311),o=n(48608),a=n(67474),s=n(7113),r=n(15231),l=n(98652),c=n(38953);const d=(0,r.Z2)(),u=(d.edu,d.bundle,(0,r.Z2)().is_tour_forced,(0,r.Z2)().resubscribed,["I can't find content that I want","I don't like content quality","I can't afford it","I don't like product experience","I don't see the value in paid subscription","I don't use it enough","Other"].map((e=>e.toLowerCase().replace(/'/g,"").replace(/[^a-z0-9]/g," ").replace(/[\s]+/g," ").replace(/[\s]/g,"_")))),p={save(e){i.Z.post({url:"/user/subscription/save-profile",payload:e})},trackEvent(e){const t=e||{};if(l.Z.abVariation){const e=t.data?JSON.parse(t.data):{};e.abVariation=l.Z.abVariation,t.data=JSON.stringify(e)}(0,a.ly)({url:s.eK+"/analytics/add-visitor-event",params:t})},updateCredentials:(e={})=>i.Z.post({url:s.eK+"/forum/profile/update-account",payload:e}),formatTransactionPrice(e){if(!e)return"";const t=e.split(" ");return(0,c.aS)({price:t[0],currency:t[1],withCurrency:!0})},saveExitInterviewAnswer(e){const t=(()=>{const e=o.Z.get("_ug_cancelSubscriptionReason");return u.indexOf(e)+1})(),n=o.Z.get("_ug_cancelSubscriptionSpecificReason")||null;return e?i.Z.post({url:"/pro/exit-interview/answer",payload:{platform:"web",id:e,answer:t,other:n}}):null},saveExitInterviewUserGiveConsent:e=>e?i.Z.post({url:"/pro/exit-interview/consent?id="+e,payload:{consent:1}}
1):null,saveExitInterviewFeedback:(e,t)=>e?i.Z.post({url:"/pro/exit-interview/feedback?id="+e,payload:{feedback:t}}):null,setNotification:e=>i.Z.post({url:"/user/subscriptions/remind/?service="+e}),deleteNotification:e=>i.Z.delete({url:"/user/subscriptions/remind/?service="+e})}},31739:(e,t,n)=>{n.d(t,{LI:()=>r,b2:()=>l});var i=n(38314),o=n(85079),a=n(90210),s=n(69380);const r=(0,i.P1)([a.jC.getRights],(e=>!!(0<e.filter((e=>e.productName===s.X||e.productName===s.D)).length))),l=(0,i.P1)([a.jC.getRights],(e=>0<e.filter((e=>e.productName===o.tk||e.productName===o._)).length));(0,i.P1)([a.jC.getRights],(e=>0<e.filter((e=>e.productName===o.yt)).length))},80424:(e,t,n)=>{n.d(t,{Z:()=>T});var i=n(49685),o=n(48608),a=n(7113),s=n(15231),r=n(67474),l=n(40311),c=n(40070),d=n(98652),u=n(43342);const p="_ug_coldStartCompleteOnboarding",g="_ug_coldStartAlreadyCompletedOnboarding",b="_ug_tt",h="_ug_booksFunnelWasShownThisSession",m=[],y=e=>({action:t,label:n})=>{const i={category:e,action:t,label:n};d.Z.abVariation&&(i.data=JSON.stringify({abVariation:d.Z.abVariation})),(0,r.ly)({url:a.eK+"/analytics/add-visitor-event",params:i})},v=y(u.xM);y(u.te);let f=!1,_=!1,S=!1,k=!1,w=!1;const T={isOnboardingCompleted:()=>o.Z.get(p),setOnboardingUncompleted:()=>o.Z.remove(p),isOnboardingFinished(){if(o.Z.get(p))return!0;const e=this.loadColdStartSurveyListData();return!(!e||0===e.length||e.some((e=>!e.complete)))},isAppOnboardingFinished(){if(o.Z.get(p))return!0;const e=this.loadColdStartSurveyAppListData();return!(!e||0===e.length||e.some((e=>!e.complete)))},isAppOnboardingWithoutSavedData(){if(o.Z.get(p))return!1;const e=this.loadColdStartSurveyAppListData();return!e||0===e.length},isEduOnboardingFinished(){if(o.Z.get(p))return!0;const e=this.loadColdStartSurveyEduListData();return!(!e||0===e.length||e.some((e=>!e.complete)))},isBooksOnboardingFinished(){const e=this.loadColdStartSurveyBooksListData();return!(!e||0===e.length||e.some((e=>!e.complete)))},isNeedForceEduOnboarding(){if(o.Z.get(p)){const e=this.loadColdStartSurveyEduListData();return!e||0===e.length||e.some((e=>!e.complete))}return!1},loadColdStartSurveyListData:()=>i.Z.get("__ug_coldStartSurveyListData")||[],loadColdStartSurveyAppListData:()=>i.Z.get("__ug_coldStartSurveyAppListData")||[],loadColdStartSurveyEduListData:()=>i.Z.get("__ug_coldStartSurveyEduListData")||[],loadColdStartSurveyBooksListData:()=>i.Z.get("__ug_coldStartSurveyBooksListData")||[],isAvailable(){if(i.Z.isAvailable){if(o.Z.get(b))return!1;return"string"!=typeof(0,s.Z2)().ug_tt||(o.Z.set(b,1,0,!0),!1)}return!1},trackEvent({action:e,label:t=""}){const n=e+"-"+t;let i=!0;![u.Fe,u._L].includes(e)&&m.includes(n)&&(i=!1),i&&(m.push(n),v({action:e,label:t}))},setTourWasShownThisSession(e=!0){f=e},get tourWasShownThisSession(){return f},setHideTourThisSession(){_=!0},get tourHiddenThisSession(){return _},setTourWasAlreadyCompleted(e=1){o.Z.set(g,e,30)},get tourWasAlreadyCompleted(){return o.Z.get(g)},setTourWasAlreadyCompletedThisSession(e=!0){k=e},get tourWasAlreadyCompletedThisSession(){return k},setTourYMResultViewSent(e=!0){w=e},get tourYMResultViewSent(){return w},setEduFunnelWasShownThisSession(){window.sessionStorage.setItem("edeFunnelWasShownThisSession","1")},get eduFunnelWasShownThisSession(){return window.sessionStorage.getItem("edeFunnelWasShownThisSession")},setBooksFunnelWasShownThisSession(){i.Z.set(h,1,i.Z.STORAGE_TYPE_SESSION)},get booksFunnelWasShownThisSession(){return i.Z.get(h,i.Z.STORAGE_TYPE_SESSION)},getSurveyListFormData(e){const t=e?this.loadColdStartSurveyEduListData():this.loadColdStartSurveyAppListData(),n={};let i="Acoustic guitar";return t&&0!==t.length?(t.forEach((({name:e,options:t})=>{let o,a,s;var r,l,c;"Instrument"===e&&(o=null==t||null===(r=t.find((e=>e.checked)))||void 0===r?void 0:r.label,o&&(n[e]=o,i=o));"Level"===e&&(a=null===(l=t[i])||void 0===l||null===(c=l.find((e=>e.checked)))||void 0===c?void 0:c.label,a&&(n[e]=a));("Genre"===e||"Courses"===e)&&(s=null==t?void 0:t.filter((e=>e.checked)).map((e=>e.label)),s&&(n[e]=s))})),n):n},saveSurveyListDataToDb(e){const t=this.getSurveyListFormData(e);S||!Object.keys(t).length||l.Z.post({url:a.eK+"/user/subscription/save-tour",payload:{questions:t}}).then((()=>{S=!0}
1)).catch(c.Z.error)}}},21269:(e,t,n)=>{n.d(t,{Z:()=>i});const i=(0,n(32860).Z)((()=>Promise.all([n.e(4736),n.e(7366)]).then(n.bind(n,27889))))},10393:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(1514),o=n(55880),a=n(80603),s=n(84428);const r=(e=window)=>e.scrollY,l=()=>(0,i.Z)((0,a.Z)("scrollY","setScrollY",0),(0,o.Z)({disableScrollOn:({setScrollY:e,canDisableScroll:t})=>()=>{t&&(e(r()),document.body.style.top="-"+r()+"px",document.body.classList.add(s.Z.disable_scroll),document.documentElement.classList.add(s.Z.html_disable_scroll))},disableScrollOff:({canDisableScroll:e,scrollY:t})=>()=>{e&&(document.body.classList.remove(s.Z.disable_scroll),document.documentElement.classList.remove(s.Z.html_disable_scroll),window.scrollTo(0,t))}}))},40300:(e,t,n)=>{n.d(t,{$H:()=>c,$n:()=>r,A$:()=>o,S3:()=>s,cI:()=>a,kT:()=>d,my:()=>i,sr:()=>l});const i="EmailPromocode",o="Export2pdfCopy",a="Export2pdfScrollMenu",s="Export2pdfDownload",r="Print",l="Direct Backing Track",c="Direct Courses",d="Start Course Modal"},93783:(e,t,n)=>{n.d(t,{E:()=>i});const i="account/userInfo/update"},28423:(e,t,n)=>{},9603:(e,t,n)=>{n.d(t,{GR:()=>i,Hp:()=>s,JE:()=>p,Kz:()=>r,Op:()=>l,PQ:()=>y,TU:()=>c,W$:()=>b,_s:()=>g,b9:()=>v,fu:()=>m,gs:()=>h,j$:()=>u,oZ:()=>d,vF:()=>a});const i={INTRO:"SongIntro",TRUST:"SongTrust",READING_MODE:"ReadingMode"};let o=function(e){return e[e.CHORDS=1]="CHORDS",e[e.TAB=2]="TAB",e[e.STANDARD_NOTATION=3]="STANDARD_NOTATION",e[e.NOT_SURE=4]="NOT_SURE",e}({});const a={message:["The easy way to play \"",["song"],"\""]},s=[{message:["100% song-accurate"]},{message:["Hear & mute each instrument"]},{message:["Slow it down, loop the tricky parts"]}],r="4.5",l={message:["Trusted by 124,761 musicians"]},c={message:["Play it now"]},d={message:["Continue"]},u={message:["We'll make it easy to start"]},p={message:["Not a fan's guess. The real thing"]},g=[{icon:"sixteenthNote",title:{message:["Note-for-note accurate"]},info:{message:["Learn it right from day one"]}},{icon:"electricGuitar",title:{message:["Master every part"]},info:{message:["Learn songs faster"]}},{icon:"rocket",title:{message:["Ad-free"]},info:{message:["Practice with built-in tools"]}},{icon:"rock",title:{message:["This + 30K Official Tabs"]},info:{message:["Practice with built-in tools"]}}],b={message:["Setting up your tab"]},h={message:["Reading view setup"]},m=[{id:o.CHORDS,label:{message:["Chords"]},info:{message:["Great for singing & strumming"]},checked:!1},{id:o.TAB,label:{message:["Tab"]},info:{message:["Best for riffs, solos & fingerpicking"]},checked:!1},{id:o.STANDARD_NOTATION,label:{message:["Standard notation"]},info:{message:["Classic sheet music, notes on the staff"]},checked:!1},{id:o.NOT_SURE,label:{message:["Not sure yet"]},info:{message:["Show me the recommended view"]},checked:!1}],y=" ",v=[{message:["Guitar, Bass, Drums"]},{message:["Tuning & capo"]},{message:["Practice tools: loop, slow-down, simplify"]}]},10530:(e,t,n)=>{n.d(t,{M2:()=>l,QZ:()=>r,Qz:()=>s,j3:()=>a,kP:()=>c});var i=n(2726),o=n(83906);const a=(0,i.PH)(o.QU),s=((0,i.PH)(o.zC),(0,i.PH)(o.qw)),r=(0,i.PH)(o.Oy),l=(0,i.PH)(o.Y3),c=(0,i.PH)(o.Fc);(0,i.PH)(o.Ad)},72904:(e,t,n)=>{n.d(t,{Z:()=>P});var i=n(49685),o=n(48608),a=n(7113),s=n(15231),r=n(67474),l=n(40311),c=n(40070),d=n(98652),u=n(36545),p=n(83906);const g="_ug_coldStartCompleteOnboarding",b="_ug_coldStartAlreadyCompletedOnboarding",h="_ug_mobilePrePaywallShown",m="_ug_mobilePrePaywallShownEdu",y="_ug_mobilePrePaywallShownBooks",v="_ug_tt",f=[],_=e=>({action:t,label:n})=>{const i={category:e,action:t,label:n};d.Z.abVariation&&(i.data=JSON.stringify({abVariation:d.Z.abVariation})),(0,r.ly)({url:a.eK+"/analytics/add-visitor-event",params:i})},S=_(p.xM);_(p.te);let k=!1,w=!1,T=!1;const P={isOnboardingCompleted:()=>o.Z.get(g),setTourWasAlreadyCompleted(e=1){o.Z.set(b,e)},get tourWasAlreadyCompleted(){return o.Z.get(b)},isOnboardingFinished(){if(o.Z.get(g))return!0;const e=this.loadColdStartSurveyListData();return!(!e||0===e.length||e.some((e=>!e.complete)))},isAppOnboardingFinished(){if(o.Z.get(g))return!0;const e=this.loadColdStartSurveyAppListData();return!(!e||0===e.length||e.some((e=>!e.complete)))},isAppOnboardingWithoutSavedData(){if(o.Z.get(g))return!1;const e=this.loadColdStartSurveyAppListData();return!e||0===e.length},isEduOnboardingFinished(){if(o.Z.get(g))return!0;const e=this.loadColdStartSurveyEduListData();return!(!e||0===e.length||e.some((e=>!e.complete)))},isNeedForceEduOnboarding(){if(o.Z.get(g)){const e=this.loadColdStartSurveyEduListData();return!e||0===e.length||e.some((e=>!e.complete))}return!1},loadColdStartSurveyListData:()=>i.Z.get("__ug_coldStartSurveyListData")||[],loadColdStartSurveyAppListData:()=>i.Z.get("__ug_coldStartSurveyAppListData")||[],loadColdStartSurveyEduListData:()=>i.Z.get("__ug_coldStartSurveyEduListData")||[],loadColdStartSurveyBooksListData:()=>i.Z.get("__ug_coldStartSurveyBooksListData")||[],loadColdStartSurveyAppTourRede
1signListData:()=>i.Z.get("__ug_coldStartSurveyAppTourRedesignListData")||[],isAvailable(){if(i.Z.isAvailable){if(o.Z.get(v))return!1;return"string"!=typeof(0,s.Z2)().ug_tt||(o.Z.set(v,1,0,!0),!1)}return!1},trackEvent({action:e,label:t=""}){const n=e+"-"+t;let i=!0;![p.Fe,p._L].includes(e)&&f.includes(n)&&(i=!1),i&&(f.push(n),S({action:e,label:t}))},setTourWasShownThisSession(e=!0){k=e},get tourWasShownThisSession(){return k},setHideTourThisSession(){w=!0},get tourHiddenThisSession(){return w},setEduFunnelWasShownThisSession(){window.sessionStorage.setItem("edeFunnelWasShownThisSession","1")},get eduFunnelWasShownThisSession(){return window.sessionStorage.getItem("edeFunnelWasShownThisSession")},getSurveyListFormData(e){const t=e?this.loadColdStartSurveyEduListData():this.loadColdStartSurveyAppListData(),n={};let i="Acoustic guitar";return t&&0!==t.length?(t.forEach((({name:e,options:t})=>{let o,a,s,r;var l,c;"Instrument"===e&&(o=null==t||null===(l=t.find((e=>e.checked)))||void 0===l?void 0:l.label,o&&(n[e]=o,i=o));"Level"===e&&(a=null===(c=t[i])||void 0===c?void 0:c.find((e=>e.checked)),a&&(n[e]=a.label,n.levelId=a.id));("Genre"===e||"Courses"===e)&&(s=null==t?void 0:t.filter((e=>e.checked)).map((e=>e.label)),s&&(n[e]=s)),"Age"===e&&(r=null==t?void 0:t.filter((e=>e.checked)).map((e=>e.label)),r&&(n[e]=r))})),n):n},saveSurveyListDataToDb(e){const t=this.getSurveyListFormData(e);T||!Object.keys(t).length||l.Z.post({url:a.eK+"/user/subscription/save-tour",payload:{questions:t}}).then((()=>{T=!0})).catch(c.Z.error)},getSurveyListSongs:async e=>fetch(a.eK+"/tour?instrument="+e.instrumentName+"&genres="+e.genreList.join(","),{method:"GET"}).then((e=>e.json())).then((e=>e)),getSelectedInstrumentName(){const e=this.getSurveyListFormData();return e&&Object.keys(e).length?e.Instrument:"Acoustic guitar"},getSelectedInstrumentId(){var e,t,n;const i=null===(e=Object.values(this.loadColdStartSurveyAppListData()).find((e=>"Instrument"===(null==e?void 0:e.name))))||void 0===e?void 0:e.options;return null!==(t=null==i||null===(n=i.find((e=>e.checked)))||void 0===n?void 0:n.id)&&void 0!==t?t:u.ps.ACOUSTIC_GUITAR},getSelectedLevelId(){var e,t,n;const i=this.getSelectedInstrumentId(),o=null===(e=Object.values(this.loadColdStartSurveyAppListData()).find((e=>"Level"===(null==e?void 0:e.name))))||void 0===e?void 0:e.options[i];return null!==(t=null==o||null===(n=o.find((e=>e.checked)))||void 0===n?void 0:n.id)&&void 0!==t?t:u.Ih.ABSOLUTE_BEGINNER},getSelectedTourGoalPainIds(){var e,t,n,i,o,a,s,r,l,c,d;const p=this.loadColdStartSurveyAppTourRedesignListData(),g=null===(e=p.find((e=>"Goal"===(null==e?void 0:e.name))))||void 0===e?void 0:e.options,b=null==g||null===(t=g.find((e=>e.checked)))||void 0===t?void 0:t.id,h=null===(n=p.find((e=>"Pain"===(null==e?void 0:e.name))))||void 0===n?void 0:n.options,m=null==b||null==h?void 0:h[b],y=null==m||null===(i=m.find((e=>e.checked)))||void 0===i?void 0:i.id,v=null!==(o=null===(a=p.find((e=>"Instrument"===(null==e?void 0:e.name))))||void 0===a||null===(s=a.options)||void 0===s||null===(r=s.find((e=>e.checked)))||void 0===r?void 0:r.id)&&void 0!==o?o:u.ps.ACOUSTIC_GUITAR,f=null===(l=p.find((e=>"Level"===(null==e?void 0:e.name))))||void 0===l?void 0:l.options;return{goalId:b,painId:y,levelId:null==f||null===(c=f[v])||void 0===c||null===(d=c.find((e=>e.checked)))||void 0===d?void 0:d.id}},getPrePaywallWasShown:({isEdu:e,isBooks:t})=>e?o.Z.get(m):t?o.Z.get(y):o.Z.get(h),setPrePaywallWasShown({isEdu:e,isBooks:t}){let n=h;e?n=m:t&&(n=y),o.Z.set(n,1,365)}}},17130:(e,t,n)=>{n.d(t,{$T:()=>Ae,AY:()=>xe,L8:()=>Ce,Y5:()=>Ze,c8:()=>_e,cm:()=>Ie,zW:()=>Se});var i=n(92972),o=n(2726),a=n(46991),s=n(30171),r=n(40070),l=n(22580),c=n(70155),d=n(85079),u=n(15231),p=n(40311),g=n(31503),b=n(62109),h=n(30494),m=n(78793),y=n(55113),v=n(46525),f=n(90210),_=n(11784),S=n(71088),k=n(49729),w=n(40410),T=n(43963),P=n(27328),I=n(28054),Z=n(92225),x=n(4476),C=n(38628),A=n(922),E=n(92791),O=n(56218),L=n(67836),R=n(77958),U=n(51715),B=n(5756),N=n(54587),F=n(38677),G=n(44305),j=n(58369),D=n(60292),M=n(55996),K=n(31128),H=n(90205),W=n(70503),V=n(45198),Y=n(68534),z=n(72030),X=n(38254),J=n(79580),Q=n(96552),q=n(91486),$=n(48455);const ee=["gtm_data","successStep"];var te,ne,ie,oe,ae;const se=(0,u.Z2)(),re=se.value,le=se.app_utm_content,ce=se.ug_ua,de=se.ua_landing_name,ue=se.ua_screen,pe=se.app_utm_d_val,ge=se.app_utm_t_val,be=se.app_utm_promo_type,he=se.fp,me=se.ua_ui,ye=(null===(te=window.UGAPP.store)||void 0===te||null===(ne=te.page)||void 0===ne||null===(ie=ne.data)||void 0===ie||null===(oe=ie.render)||void 0===oe||null===(ae=oe.book)||void 0===ae?void 0:ae.id)||0,ve=({buyParams:e,marketingAppUtmCampaign:t})=>e.value&&"direct"!==e.value?e.value:t||"direct",fe={[d.oG]:g.nJ,[d.K6]:g.nn,[d.mn]:g.VW,[d.yt]:g.Q9,[d.tk]:g.c2},_e=(0,o.PH)(a.Kx,(e=>{const t=M.Z.getPaymentPropsBuyPriceKey({priceKey:e})||{},n=t.trialPeriod,i=t.isOtp,o=t.priceKeyAfterOtpPeriodEnds,a=t.basePriceKey;return{priceKey:e,paymentPeriod:M.Z.getPaymentPeriod(e),trialPeriod:void 0===n?B.Iq:n,isOtp:!!i,priceKeyAfterOtpPeriodEnds:null!=o?o:null,basePriceKey:null!=a?a:null}})),Se=(0,o.PH)(a.Kx,(e=>{const t=M.Z.getPaymentPropsBuyPriceKey({priceKey:e,disableIntroductoryStep:!0})||{},n=t.trialPeriod,i=t.isOtp,o=t.priceKeyAfterOtpPeriodEnds,a=t.basePriceKey;return{priceKey:e,paymentPeriod:M.Z.getPaymentPeriod(e),trialPeriod:void 0===n?B.Iq:n,isOtp:!!i,priceKeyAfterOtpPeriodEnds:null!=o?o:null,basePriceKey:null!=a?a:null}})),ke=(0,I.Eq)(Z.lQ.seasonsSaleBanner),we=(e,t)=>(n,o)=>{var a;const l=o(),c=!C.r5.getIsShortPromoCodeSaleEnded(l)&&!!C.r5.getShortPromoCodeSaleEndTime(l),b=v.Mq.getEmail(l),h=l.buy,m=h.service,S=h.isBuyPromoMonthOfferPromocode,I=h.trialPeriod,E=h.isOtp,O=h.currency,L=h.service,B=(null!==(a=l.buy.priceKey)&&void 0!==a?a:"")+"",j=null===y.Vl||void 0===y.Vl?void 0:(0,y.Vl)(l),D=null==t?void 0:t.isOneClickPurchase,H=f.jC.getHasEduAccess(l);H||L!==d.oG||n((0,w.$)({id:T.t.DOUBLE_UPSELL_FLOW}));const z=P.V.withDoubleUpsellFlow&&L===d.oG&&!H?F.iK:F.Jm,X=e||{},J=X.gtm_data,Q=X.successStep,q=void 0===Q?z:Q,$=(0,i.Z)(X,ee);(0,V.y)().then((e=>{e.buySuccess($,l);const t=e.getBuyParams(),i=(null==t?void 0:t.service)||m,o=i===d.K6,a=(0,u.Z2)(),s=a.ua_ui,r=a.app_utm_campaign,p=ge||sessionStorage.getItem("app_utm_d_val"),h=pe||sessionStorage.getItem("app_utm_t_val"),y=r||sessionStorage.getItem("app_utm_campaign"),v=!h||"PermanentBanner"!==y&&"Permanent Banner Songbooks"!==y?{}:{type:""+p,discount:[h,+pe],sale_title:[be,0]},f={filled:[D?"1":"0",D?1:0],promo_code:c?(0,A.H)(b):"",...v,...(0,k.s)(),books_ids:"",currency:(0,Y.z)()},S={...t,ui:s||t.ui,item:ce||t.item,value:ce||re||ve({buyParams:t,marketingAppUtmCampaign:j}),landing_name:de||"",screen:ue||"",service:i,params:f,item_id:M.Z.getPriceKeyId(B)};N.j.send({event:fe[i],...S}),N.j.send({event:g.H$,...S,params:{...f,...ke(l)}}),n((0,x.LJ)({eventType:Z.jT.purchase,experimentId:Z.lQ.seasonsSaleBanner})),n((0,x.LJ)({eventType:Z.jT.purchase,experimentId:Z.lQ.headerProLink}
1)),(B===G.ge||B===G.nu)&&n(C.Ym.setWinbackOfferPurchased());const P=o?"UG Edu":"UG Pro";let L=o?R.Kn:R.jA;return I&&!E&&(L=o?R.dc:R.U8,n((0,w.$)({id:T.t.CANCELLATION_FLOW_3})),(0,d.Hd)(i)&&n((0,w.$)({id:T.t.NETFLIX_STYLE_UNSUBSCRIBE_FLOW}))),n((0,_.mm)(L,{value:M.Z.getPrice({priceKey:B,withCurrency:!1}),service_name:P,currency:O,...null!=J&&J.order_id?{Order_ID:J.order_id}:{},...null!=J&&J.amount?{Sale_Subtotal:J.amount}:{},...null!=J&&J.currency?{Sale_Currency:J.currency}:{},...null!=J&&J.voucher_code?{Sale_Voucher:J.voucher_code}:{}})),n((0,_.oz)(U.WF,{value:M.Z.getPrice({priceKey:B,withCurrency:!1}),currency:O,...null!=J&&J.order_id?{event_id:J.order_id}:{}})),S})).then((e=>{var t;p.Z.post({url:"/user/subscription/new-subscription-notification",payload:{service:m}}).then((()=>{N.j.send({event:g.O2,...e,item:e.item,params:{filled:[D?"1":"0",D?1:0]}})})),null===(t=window.ReactNativeWebView)||void 0===t||t.postMessage(JSON.stringify({type:"purchaseSuccess",payload:{}})),D&&K.Z.setBoughtWithOneClick()})).catch(r.Z.error),q===F.iK&&(n((0,s.yN)(d.K6)),n(_e(G.vB)),n((0,s.sM)({priceKey:G.vB,placementId:W.Aj}))),n((0,s.Sq)(S?"":q)),n(f.Oy.setApiRights(Object.values($)))},Te=()=>(e,t)=>{const n=t(),i=n.buy.placementId,o=null===y.Vl||void 0===y.Vl?void 0:(0,y.Vl)(n);(0,V.y)().then((e=>{const t=e.getBuyParams();e.buySuccess(void 0,n);const a=(e=>W.FR===e)(i)?{...t,item:"Gift",value:o||"direct"}:t;return N.j.send({event:g.H$,...a}),t})).catch(r.Z.error)},Pe=((0,o.PH)(a.O7,(e=>M.Z.getPaymentPropsBuyPriceKey({priceKey:e}))),(0,o.PH)(a.Kx,(({buyCommentText:e,giftId:t})=>({buyCommentText:e,giftId:t}))),e=>{var t,n;const i=e(),o=i.buy,a=o.paymentPeriod,s=o.trialPeriod,r=o.priceKey,l=o.currency,c=o.service,p=o.placementId,g=o.sourceId,b=o.campaign,h=(0,u.Z2)(),m=h.app_utm_campaign,v=h.ug_ua,_=h.ua_ui,S=null===y.Vl||void 0===y.Vl?void 0:(0,y.Vl)(i),k=f.jC.getHasOrHadProAccess(i)&&(c===d.oG||c===d.tk||c===d._),w=(P.V.withComebackOfferNewDesign5||P.V.withComebackOfferIntroductory||P.V.withFloLikePaywall4||P.V.withIntroductoryPlanDecreasedPrice||P.V.withPaywallTimer||P.V.withEmergencyOfferIntroductory||P.V.withWinbackPaywall||P.V.withCrmIntroOfferB||P.V.withCompleteRegistrationIntroPlanB)&&(null===(t=i.buy)||void 0===t?void 0:t.isOtp);return K.Z.getCommonPaymentProps({paymentPeriod:a,trialPeriod:w||!k&&(w||s!==B.sS)?s:0,priceKey:w?null===(n=i.buy)||void 0===n?void 0:n.priceKeyAfterOtpPeriodEnds:r,currency:l,service:c,placementId:_||p||"None",startAction:v||m||g||S||"direct",campaign:b})}),Ie=({token:e,type:t,formCountry:n,formZip:i})=>async(o,a)=>{var p,g,h,m,v,f,_;const S=a(),k=S.buy,w=k.sourceId,T=k.placementId,I="39"===he,Z=null===y.Vl||void 0===y.Vl?void 0:(0,y.Vl)(S);t&&(0,V.y)().then((e=>{e.payInstantChoiceDone(t,a())})).catch(r.Z.error);const x={isFamily:!1};(0,X.hF)()&&(null===(p=S.buy)||void 0===p?void 0:p.service)===d.oG&&(0,X.By)((0,X.OZ)(S.buy))&&(x.plan_suffix=z._1),(0,J.Z)(null===(g=S.buy)||void 0===g?void 0:g.priceKey)&&(x.plan_suffix=z._J),(0,Q.d)(null===(h=S.buy)||void 0===h?void 0:h.priceKey)&&(x.plan_suffix=z._J),(0,q.a0)(null===(m=S.buy)||void 0===m?void 0:m.priceKey)&&(x.plan_suffix=z._1),(0,$.y)(null===(v=S.buy)||void 0===v?void 0:v.priceKey)&&(x.plan_suffix=z.QH),he&&["offer20","offer25"].includes(le)&&(x.intro=le,I&&"offer20"===le&&(x.intro="offer21"),I&&"offer25"===le&&(x.intro="offer26")),ye&&(x.params={book_id:ye});const C=null===(f=S.buy)||void 0===f?void 0:f.priceKey,A=null===(_=S.buy)||void 0===_?void 0:_.isOtp;if((P.V.withComebackOfferNewDesign5||P.V.withComebackOfferIntroductory||P.V.withFloLikePaywall4||P.V.withIntroductoryPlanDecreasedPrice||P.V.withPaywallTimer||P.V.withEmergencyOfferIntroductory||P.V.withWinbackPaywall||P.V.withCrmIntroOfferB||P.V.withCompleteRegistrationIntroPlanB)&&A){var R,U;const e=await(0,E.z)(C,null===(R=S.buy)||void 0===R?void 0:R.basePriceKey);if(!e){const e=(0,u.Z2)().app_utm_campaign;return N.j.send({event:L.iZ,value:ce||e||w||Z||"direct",ui:T||"None",params:{filled:["0",0],error:"otp_data_unavailable"}}),void o((0,s.Uo)("system"))}x.otp=e.otp,x.sign=e.sign,x.params={...x.params||{},...e.params},(0,Q.d)(null===(U=S.buy)||void 0===U?void 0:U.basePriceKey)&&(x.plan_suffix=z._J)}const B=JSON.stringify(x),F={...Pe(a),form_country:n,form_zip:i,token:e,jsondata:B};if(C===G.fo&&P.V.withSinglePdfPurchase&&W.mx.includes(T))o(we({successStep:j.eO}));else{if(P.V.withFraudProtection){N.j.send({event:L.GG});try{const e=await(0,l.tc)("buy_with_braintree");F.turnstile_token=e,N.j.send({event:L.kD,params:{is_bot:0}}),N.j.send({event:L.bc})}catch(e){N.j.send({event:L.Fb}),F.turnstile_token=null}}await c.Z.processPayment(F).then((e=>o(we(e)))).then((()=>o(((e,t)=>{const n=t().buy.isBuyPromoMonthOfferPromocode;n&&e((0,s.sM)({needActivatePromoCode:n}))}
1)))).catch((e=>{const t=(0,u.Z2)().app_utm_campaign,n=(0,b.qh)(e),i=(0,b.yA)(e);N.j.send({event:L.iZ,value:ce||t||w||Z||"direct",ui:me||T||"None",params:{filled:["0",0],error:i,...ke(S)}}),e===D.j&&N.j.send({event:L.kD,params:{is_bot:1}}),o((0,s.Uo)(i)),n&&o((0,O.bF)())}))}},Ze=({nonce:e,subscriptionId:t,accessType:n,status:i,utmSubCampaign:o,hasSimpleCancelationFlow:a})=>r=>p.Z.post({url:"/pro/payment/payment-method/change",payload:{nonce:e,subscription_id:t}}).then((e=>{b.ZP.getPaymentStatus(e).then((()=>{N.j.send({event:h.moh,value:o,item:n,type:i,ui:a?W.pj:W.OZ}),r((0,m.GA)(H.E)),r((0,s.HK)())})).catch((e=>r((0,s.Uo)(e))))})).catch((e=>r((0,s.Uo)(e)))),xe=({token:e,type:t,contentId:n,contentType:i,formCountry:o,formZip:a})=>(l,c)=>{t&&(0,V.y)().then((e=>{e.payInstantChoiceDone(t,c())})).catch(r.Z.error);const d=Pe(c);p.Z.post({url:"/pro/payment/subscribe-credit-card/processing-one-pay",payload:{...d,content_id:n,content_type:i,form_country:o,form_zip:a,token:e}}).then(b.ZP.getPaymentStatus).then((e=>{l(4===i?(0,s.Sq)():(0,s.m2)({contentUrl:null==e?void 0:e.content_url,contentType:null==e?void 0:e.content_type,songbookUrl:null==e?void 0:e.songbook_url}))})).then((()=>l(Te()))).catch((e=>{l((0,s.Uo)(e))}))},Ce=({url:e,payload:t,onComplete:n})=>async i=>{try{const o=await p.Z.post(t?{url:e,payload:t}:{url:e}),a=await b.ZP.getPaymentStatus(o);i(we(a,{isOneClickPurchase:!0})),null==n||n({isError:!1,error:void 0})}catch(e){null==n||n({isError:!0,error:(0,b.qh)(e)?"system":(0,b.yA)(e)})}},Ae=(e,t)=>
1n=>{b.ZP.getPaymentStatus(e).then((e=>n(we(e)))).catch((e=>{r.Z.error(e),(0,S.U)(t)}))}},80091:(e,t,n)=>{n.d(t,{L:()=>y,W:()=>v});var i=n(2726),o=n(46991),a=n(40070),s=n(30171),r=n(85079),l=n(46525),c=n(90210),d=n(72904),u=n(10530),p=n(38628),g=n(70503),b=n(55996),h=n(58369),m=n(45198);const y=(e,t=null,n=r.oG,s=!1,d=!1)=>(u,p)=>{var g,y;const v="string"==typeof e?e:h.bX,f=p(),_=null===(g=f.buy)||void 0===g?void 0:g.forceNoAuth,S=null===(y=f.buy)||void 0===y?void 0:y.step,k=l.Mq.getId(f),w=c.jC.getHasOrHadProAccess(f),T=c.jC.getHasOrHadEduAccess(f),P=n===r.K6?T:w,I=b.Z.getPaymentParams({step:v,hasTrial:P,placementId:t,withoutDefaultPaymentProps:s});(0,m.y)().then((e=>{e.listenBuyActions(S,v,t,k,n,p())})).catch(a.Z.error),u((0,i.PH)(o.bu)({step:v,placementId:t,service:n,...I,forceNoAuth:!(!d&&!_)}))},v=({placementId:e=null,withAutoStart:t=!1,step:n=h.Qs,disableTour:i=!1})=>o=>{const a=d.Z.isEduOnboardingFinished();let l=t&&d.Z.isAvailable()&&!a,c=!1;if(i&&t)o(y(n,e,r.K6));else{if(t&&!l&&d.Z.isNeedForceEduOnboarding()&&(l=!0,c=!0),t){if(d.Z.eduFunnelWasShownThisSession)return;d.Z.setEduFunnelWasShownThisSession()}l?(d.Z.setTourWasShownThisSession(),c&&o((0,u.kP)()),o(p.Ym.setAppUtmCampaign(g.$H)),o((0,s.sM)({step:null,placementId:g.ky})),o((0,u.j3)({canBeClosed:!1}))):!t&&o(y(n,e,r.K6))}}},90205:(e,t,n)=>{n.d(t,{E:()=>i});const i="profile:payment-update"},38677:(e,t,n)=>{n.d(t,{A_:()=>l,FU:()=>c,Gn:()=>b,IJ:()=>i,Jm:()=>y,OE:()=>h,Qs:()=>p,Rl:()=>S,Uw:()=>a,Xt:()=>s,bX:()=>o,dj:()=>d,e:()=>f,fj:()=>u,iK:()=>v,qh:()=>_,tW:()=>m,wr:()=>r,zR:()=>g});const i="buy_tabs_pack",o="payVariant",a="welcome_bonus",s="double_welcome_bonus",r="6_month_double_welcome_bonus",l="crm_bonus_fakedoor",c="book_step",d="book_
1step_email",u="step_book_edu_bundle",p="edu_plan",g="edu_plan_email",b="complete_registration_offer",h="high_price_offer",m="payCard",y="success",v="checkout_upsell",f="update_card",_="buy_step_success_official_tab",S="buy_step_choose_variant_and_pay"},922:(e,t,n)=>{n.d(t,{H:()=>o});const i=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],o=e=>{var t;const n=(null==e||null===(t=e.split("@"))||void 0===t?void 0:t[0])||"",o=(new Date).getMonth();return n+"_"+i[o]+(new Date).getDate()}},92791:(e,t,n)=>{n.d(t,{z:()=>d});var i=n(68534),o=n(23447),a=n.n(o),s=n(86308),r=n(55996);const l="se.mu.type.money",c="se.mu.purchase.otp";async function d(e,t){try{const n=await async function(e){const t=(0,i.z)(),n=r.Z.getPrice({priceKey:e,withCurrency:!1})+"",o=Math.round(100*parseFloat(n)),a={type:c,amount:{type:l,value:o,currency:t}};return{otp:a,sign:await(0,s.M)(a)}}(e),o=n.otp,a=n.sign;return{otp:o,sign:a,params:{base_price:r.Z.getUsdPriceNumber(t)}}}catch(e){a().error("Cannot compute otp signature, "+e)}return null}},86308:(e,t,n)=>{async function i(e){var t,n,i;const o="string"==typeof e?e:JSON.stringify(e),a=(new TextEncoder).encode(o),s=await(null!==(t=null===(n=window.crypto)||void 0===n||null===(i=n.subtle)||void 0===i?void 0:i.digest("SHA-256",a))&&void 0!==t?t:Promise.resolve(null));if(!s)throw new Error("No SubtleCrypto digest");const r=new Uint8Array(s);let l="";for(let e=0;e<r.length;e++)l+=r[e].toString(16).padStart(2,"0");return l}n.d(t,{M:()=>i})},31128:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(85079),o=n(76204),a=n(48608),s=n(40311),r=n(55996);const l={getCommonPaymentProps({paymentPeriod:e,trialPeriod:t,priceKey:n,currency:a,getPrice:s=r.Z.getPrice,service:l=i.oG,placementId:c,startAction:d,campaign:u}){const p=s({priceKey:n,currency:a,withCurrency:!1});return{period:e,trial:t||0,price_amount:"number"==typeof p?p.toFixed(2):p,price_currency:a,service:l||i.oG,access:"full",source:d,start_action:c||d,_csrf:o.Z.getToken(),campaign:u}},get hasPracticeModePurchase(){return!!a.Z.get("_ug_practiceModePurchase")},setOneDayAccessToOfficialTab:({id:e})=>s.Z.post({url:"/tab/try",payload:{id:e}}),get songbookUrl(){return a.Z.get("_ug_songbookUrl")},set songbookUrl(e){a.Z.set("_ug_songbookUrl",e,1)},get playlistTooltipShown(){return a.Z.get("_ug_playlistTooltipShown")},set playlistTooltipShown(e){a.Z.set("_ug_playlistTooltipShown",e,365)},setBoughtWithOneClick(){window.sessionStorage.setItem("b_with_one_click","1")},clearBoughtWithOneClick(){window.sessionStorage.removeItem("b_with_one_click")},get boughtWithOneClick(){return window.sessionStorage.getItem("b_with_one_click")}}}
1,45198:(e,t,n)=>{n.d(t,{y:()=>o});var i=n(40070);const o=()=>n.e(3344).then(n.bind(n,974)).then((({default:e})=>e)).catch(i.Z.error)},60292:(e,t,n)=>{n.d(t,{j:()=>i});const i="Invalid security check"},36545:(e,t,n)=>{n.d(t,{Fe:()=>l,GP:()=>I,Ih:()=>v,J6:()=>Z,Lx:()=>p,OP:()=>g,TD:()=>d,V5:()=>x,WL:()=>r,_L:()=>c,aH:()=>u,cg:()=>C,fl:()=>y,ps:()=>b,q3:()=>P,te:()=>s,xM:()=>a});var i=n(67836),o=n(9603);const a="ColdStart",s="ColdStartMob",r="ShowSurvey",l="SetAnswer",c="UnsetAnswer",d="SurveyComplete",u="OnboardingComplete",p={Goal:i.SV,Pain:i.c0,Instrument:i.XQ,Genre:i.Ah,Level:i.VR,Purpose:i.D2,Courses:i.Bj,Age:i.ed,Songs:i.yP,Progress:i.CQ,Sync:i.Xq,Banner:i.VD,ProgressFrequency:i.L8,ProgressSkills:i.Xe,ProgressGoals:i.md,ProgressStyle:i.i4,Book:i.Or,[o.GR.INTRO]:i.OC,[o.GR.TRUST]:i.g6,[o.GR.READING_MODE]:i.rt},g={Goal:i.Db,Pain:i.z3,Instrument:i.x_,Level:i.xk,Age:i.qH,Genre:i.GA,Songs:i.UO,Progress:i.U0,Sync:i.x0,ProgressFrequency:i.K1,ProgressSkills:i.aN,ProgressGoals:i.nW,ProgressStyle:i.Rj,Book:i.DB,Courses:i.hu,[o.GR.INTRO]:i.Tx,[o.GR.TRUST]:i.ZG,[o.GR.READING_MODE]:i.Jd};i.f6,i.Z$,i.jr,i.F1;let b=function(e){return e[e.ACOUSTIC_GUITAR=1]="ACOUSTIC_GUITAR",e[e.ELECTRIC_GUITAR=2]="ELECTRIC_GUITAR",e[e.BASS_GUITAR=3]="BASS_GUITAR",e[e.UKULELE=4]="UKULELE",e[e.PIANO=5]="PIANO",e[e.OTHER=6]="OTHER",e}({});const h={[b.ACOUSTIC_GUITAR]:{message:["Acoustic guitar"]},[b.ELECTRIC_GUITAR]:{message:["Electric guitar"]},[b.BASS_GUITAR]:{message:["Bass guitar"]},[b.UKULELE]:{message:["Ukulele"]},[b.PIANO]:{message:["Piano"]},[b.OTHER]:{message:["Other"]}},m={ACOUSTIC_GUITAR:{id:b.ACOUSTIC_GUITAR,label:h[b.ACOUSTIC_GUITAR],checked:!1},ELECTRIC_GUITAR:{id:b.ELECTRIC_GUITAR,label:h[b.ELECTRIC_GUITAR],checked:!1},BASS_GUITAR:{id:b.BASS_GUITAR,label:h[b.BASS_GUITAR],checked:!1},UKULELE:{id:b.UKULELE,label:h[b.UKULELE],checked:!1},PIANO:{id:b.PIANO,label:h[b.PIANO],checked:!1},OTHER:{id:b.OTHER,label:h[b.OTHER],checked:!1}}
1,y={name:"Instrument",heading:{message:["Choose your\nmain instrument"]},multiple:!1,options:[m.ACOUSTIC_GUITAR,m.ELECTRIC_GUITAR,m.BASS_GUITAR,m.UKULELE,m.PIANO,m.OTHER],complete:!1};let v=function(e){return e[e.ABSOLUTE_BEGINNER=1]="ABSOLUTE_BEGINNER",e[e.BEGINNER=2]="BEGINNER",e[e.INTERMEDIATE=3]="INTERMEDIATE",e[e.PROFESSIONAL=4]="PROFESSIONAL",e[e.ROCKSTAR=5]="ROCKSTAR",e}({});const f=[{id:v.ABSOLUTE_BEGINNER,label:{message:["Absolute beginner"]},info:{message:["I can't play any song yet"]},checked:!1},{id:v.BEGINNER,label:{message:["Three-chord strummer"]},info:{message:["I can play simple songs with basic chords"]},checked:!1},{id:v.INTERMEDIATE,label:{message:["Campfire guitarist"]},info:{message:["I can play any song with chords"]},checked:!1},{id:v.PROFESSIONAL,label:{message:["Acoustic master"]},info:{message:["I can fluently play chords, riffs, and solos"]},checked:!1},{id:v.ROCKSTAR,label:{message:["Rockstar"]},info:{message:["I can play virtually anything"]},checked:!1}],_=[{id:v.ABSOLUTE_BEGINNER,label:{message:["Absolute beginner"]},info:{message:["I can't play any song yet"]},checked:!1},{label:{message:["Three-chord strummer"]},id:v.BEGINNER,checked:!1,info:{message:["I can play simple songs with basic chords"]}},{label:{message:["Skilled guitarist"]},id:v.INTERMEDIATE,checked:!1,info:{message:["I can play any song with chords"]}},{label:{message:["Garage band guitarist"]},id:v.PROFESSIONAL,checked:!1,info:{message:["I can fluently play chords, riffs, and solos"]}},{label:{message:["Rockstar"]},id:v.ROCKSTAR,checked:!1,info:{message:["I can play virtually anything"]}}],S=[{label:{message:["Absolute beginner"]},id:v.ABSOLUTE_BEGINNER,checked:!1,info:{message:["I can't play any song yet"]}},{label:{message:["Three-chord strummer"]},id:v.BEGINNER,checked:!1,info:{message:["I can play simple songs with basic chords"]}},{label:{message:["Skilled guitarist"]},id:v.INTERMEDIATE,checked:!1,info:{message:["I can play any song with chords"]}},{label:{message:["Garage band guitarist"]},id:v.PROFESSIONAL,checked:!1,info:{message:["I can fluently play chords, riffs, and solos"]}},{label:{message:["Rockstar"]},id:v.ROCKSTAR,checked:!1,info:{message:["I can play virtually anything ever written"]}}],k=[{label:{message:["Absolute beginner"]},id:v.ABSOLUTE_BEGINNER,checked:!1,info:{message:["I can't play any song yet"]}},{label:{message:["Three-chord strummer"]},id:v.BEGINNER,checked:!1,info:{message:["I can play simple songs with basic chords"]}},{label:{message:["Campfire guitarist"]},id:v.INTERMEDIATE,checked:!1,info:{message:["I can play any song with chords"]}},{label:{message:["Ukulele master"]},id:v.PROFESSIONAL,checked:!1,info:{message:["I can fluently play chords, riffs, and solos"]}},{label:{message:["Hawaii star"]},id:v.ROCKSTAR,checked:!1,info:{message:["I can play virtually anything"]}}],w=[{label:{message:["Absolute beginner"]},id:v.ABSOLUTE_BEGINNER,checked:!1,info:{message:["I can't play any song yet"]}},{label:{message:["Novice pianist"]},id:v.BEGINNER,checked:!1,info:{message:["I can play simple songs with notation"]}},{label:{message:["Intermediate pianist"]},id:v.INTERMEDIATE,checked:!1,info:{message:["I can play most songs"]}},{label:{message:["Professional pianist"]},id:v.PROFESSIONAL,checked:!1,info:{message:["I can fluently play any songs"]}},{label:{message:["Virtuoso pianist"]},id:v.ROCKSTAR,checked:!1,info:{message:["I can play virtually anything"]}}],T=[{label:{message:["Absolute beginner"]},id:v.ABSOLUTE_BEGINNER,checked:!1,info:{message:["I can't play any song yet"]}},{label:{message:["Novice"]},id:v.BEGINNER,checked:!1,info:{message:["I can play simple songs"]}},{label:{message:["Intermediate"]},id:v.INTERMEDIATE,checked:!1,info:{message:["I can play most songs"]}},{label:{message:["Professional"]},id:v.PROFESSIONAL,checked:!1,info:{message:["I can fluently play any songs"]}},{label:{message:["Rockstar"]},id:v.ROCKSTAR,checked:!1,info:{message:["I can play virtually anything"]}}],P={name:"Level",heading:{message:["Choose your level"]},multiple:!1,options:{[b.ACOUSTIC_GUITAR]:f,[b.ELECTRIC_GUITAR]:_,[b.BASS_GUITAR]:S,[b.UKULELE]:k,[b.PIANO]:w,[b.OTHER]:T},complete:!1},I={name:"Genre",heading:{message:["Choose your\nfavorite genres"]},multiple:!0,options:[{label:{message:["Pop Rock"]},checked:!1}
1,{label:{message:["Singer-Songwriter"]},checked:!1},{label:{message:["Alternative Rock"]},checked:!1},{label:{message:["Pop"]},checked:!1},{label:{message:["Soundtrack"]},checked:!1},{label:{message:["Hard Rock"]},checked:!1},{label:{message:["Electropop"]},checked:!1},{label:{message:["Indie Rock"]},checked:!1},{label:{message:["Indie Pop"]},checked:!1},{label:{message:["Pop Soul"]},checked:!1},{label:{message:["Worship Music"]},checked:!1},{label:{message:["Pop Punk"]},checked:!1},{label:{message:["Country Pop"]},checked:!1},{label:{message:["Contemporary R&B"]},checked:!1},{label:{message:["Country"]},checked:!1},{label:{message:["Metal"]},checked:!1},{label:{message:["Folk"]},checked:!1},{label:{message:["Blues"]},checked:!1}],complete:!1},Z={name:"Age",heading:{message:["Select your age"]},subtitle:{message:["This will help us suggest more relevant songs for you"]},multiple:!1,options:[{id:1,label:"<18",checked:!1},{id:2,label:"18-24",checked:!1},{id:3,label:"25-34",checked:!1},{id:4,label:"35-44",checked:!1},{id:5,label:"45-54",checked:!1},{id:6,label:"55+",checked:!1}],complete:!1},x={name:"Courses",heading:{message:["Choose courses to suit your needs"]},multiple:!0,options:[{label:{message:["Acoustic guitar"]},checked:!1},{label:{message:["For beginners"]},checked:!1},{label:{message:["Electric guitar"]},checked:!1},{label:{message:["Intermediate"]},checked:!1},{label:{message:["Basics and Theory"]},checked:!1},{label:{message:["Techniques and Skills"]},checked:!1},{label:{message:["Chords and Progressions"]},checked:!1},{label:{message:["Advanced"]},checked:!1},{label:{message:["Scales and Modes"]},checked:!1},{label:{message:["Solo and Improvisation"]},checked:!1},{label:{message:["Songwriting"]},checked:!1},{label:{message:["Blues"]},checked:!1},{label:{message:["Fingerstyle"]},checked:!1},{label:{message:["Ukulele"]},checked:!1},{label:{message:["Rhythm Guitar"]},checked:!1},{label:{message:["Piano"]},checked:!1},{label:{message:["Strumming"]},checked:!1},{label:{message:["Lead Guitar"]},checked:!1},{label:{message:["Jazz"]},checked:!1},{label:{message:["Reading Music"]},checked:!1},{label:{message:["Licensing, Publishing and Copyright"]},checked:!1},{label:{message:["Promotion & Marketing"]},checked:!1},{label:{message:["Music Software"]},checked:!1},{label:{message:["Rock"]},checked:!1},{label:{message:["Other"]},checked:!1}],complete:!1},C=[{id:144,coverUrl:"/static/s3/ug.edu.content/books/book/144/media/cover.jpg@400",title:"First 50 Songs You Should Play on Acoustic Guitar",titleShort:"First 50 Songs You Should Play",url:"/books/first-50-songs-you-should-play-on-acoustic-guitar-5d7"},{id:7958,coverUrl:"/static/s3/ug.edu.content/books/book/7958/media/cover.jpg@400",title:"Berklee Beginning Guitar",url:"/books/berklee-beginning-guitar-x7je"},{id:33,coverUrl:"/static/s3/ug.edu.content/books/book/33/media/cover.jpg@400",title:"Fingerpicking Guitar Bible",url:"/books/fingerpicking-guitar-bible-0pe"},{id:186,coverUrl:"/static/s3/ug.edu.content/books/book/186/media/cover.jpg@400",title:"The Beatles Complete Scores",url:"/books/the-beatles-complete-scores-qpr"},{id:84,coverUrl:"/static/s3/ug.edu.content/books/book/84/media/cover.jpg@400",title:"Connecting Pentatonic Patterns",url:"/books/connecting-pentatonic-patterns-j5x"},{id:117,coverUrl:"/static/s3/ug.edu.content/books/book/117/media/cover.jpg@400",title:"Guitarist's Guide to Scales Over Chords",url:"/books/guitarists-guide-to-scales-over-chords-zgy"},{id:6,coverUrl:"/static/s3/ug.edu.content/books/book/6/media/cover.jpg@400",title:"First 50 Movie Songs You Should Play on the Piano",titleShort:"First 50 Movie Songs You Should Play",url:"/books/first-50-movie-songs-you-should-play-on-the-piano-ed"},{id:4740,coverUrl:"/static/s3/ug.edu.content/books/book/4740/media/cover.jpg@400",title:"100 Rock Lessons - Keyboard Goldmine",url:"/books/100-rock-lessons-keyboard-goldmine-rjg5"}]},52536:(e,t,n)=>{n.d(t,{u:()=>w});var i=n(40665),o=n(4517),a=n(30285),s=n(15231),r=n(24905),l=n(97955),c=n(34472),d=n(73253),u=n(53618),p=n(59317),g=n(502),b=n(54587),h=n(30494),m=n(47384),y=n(22951);const v=(0,s.Z2)().service,f=void 0===v?"":v,_=[r.s.PAGE_TYPE_USER_SUBSCRIPTIONS_DETAILS,r.s.PAGE_TYPE_USER_SUBSCRIPTIONS_INTERVIEW,r.s.PAGE_TYPE_USER_SUBSCRIPTIONS_MANAGE_PLAN,r.s.PAGE_TYPE_USER_SUBSCRIPTIONS_MANAGE_PLANS,r.s.PAGE_TYPE_USER_SUBSCRIPTIONS_UNSUBSCRIBE];var S=n(97104),k=n(24517);const w=({children:e})=>{const t=(()=>{const e=(0,d.QT)(c.bf),t=e.isLoading,n=e.error,i=(0,y.k)(),o=(0,m.Ox)(),s=performance.now(),r=(0,u.Z)([l.RM,a.C2]),v=r[0],S=r[1],k=_.includes(S)?f:void 0,w=Object.keys(v).length,T=(0,p.Z)({loadSubscription:c.pF});return(0,g.useEffect)((()=>{b.j.send({event:h.c4K,value:o}),v&&w||T.loadSubscription({service:k,onFinish:e=>{b.j.send({event:h.s1e,value:o,item_id:Math.round((performance.now()-s)/1e3),item:""+e})}})}),[]),(0,g.useEffect)((()=>{!i&&v&&w&&b.j.send({event:h.s1e,value:o,item_id:Math.round((performance.now()-s)/1e3),item:"200"})}),[i]),{isLoading:t||!w,error:n}})(),n=t.isLoading,s=t.error,r=(0,S.Q)().t;return s?(0,k.tZ)(k.HY,{children:r({message:["An error occurred. Please, reload the page or try again later."]})}):n?(0,k.tZ)(i.gC,{justify:"center",align:"center",isFullHeight:!0,children:(0,k.tZ)(o.$,{size:"s"})}):e}},30619:(e,t,n)=>{n.d(t,{F:()=>r});var i=n(62359),o=n(19199);const a=e=>({subscription:e,declinedHighPriceOffer:!1});var s=n(97955);const r=()=>{const e=(0,i.Z)(a);(0,o.Z)(s.f7,"modules",e)}},97955:(e,t,n)=>{n.d(t,{AU:()=>l,Ff:()=>d,RM:()=>s,TY:()=>c,bP:()=>p,cd:()=>u,eI:()=>r,f7:()=>a});var i=n(86561),o=n(38314);const a=(0,i.tA)("subscription")({initialState:{subscription:{},declinedHighPriceOffer:!1}}),s=a.props.getSubscription,r=a.props.getDeclinedHighPriceOffer,l=(0,o.P1)([s],(e=>e.service_name)),c=(0,o.P1)([s],(e=>e.paidtrial_subscription)),d=(0,o.P1)([s],(e=>{var t;return!0===(null===(t=e.paidtrial_subscription)||void 0===t?void 0:t.is_paid_trial)})),u=(0,o.P1)([s],(e=>{const t=e.paidtrial_subscription;return!(!t||Object.prototype.hasOwnProperty.call(t,"is_paid_trial")&&!1!==t.is_paid_trial)})),p=a.actions}
1,34472:(e,t,n)=>{n.d(t,{pF:()=>c,p$:()=>l,bf:()=>r});var i=n(73253),o=n(97955),a=n(40311);const s={load:()=>a.Z.get({url:"/user/subscriptions/get-subscriptions-data"}),loadByService:e=>a.Z.get({url:"/user/subscriptions/get-subscription-data",payload:{service:e}})},r=(0,i.A0)("subscriptions"),l=(e=!1)=>async t=>{t(o.bP.setDeclinedHighPriceOffer(e))},c=({service:e,onFinish:t})=>async(n,i,{logger:a})=>{n(r.actions.start());const l=i(),c=(0,o.RM)(l);if(c&&Object.keys(c).length)return t(200),void n(r.actions.stop());try{const i=e?await s.loadByService(e):await s.load();i?(n(o.bP.setSubscription(i)),t(200)):(t(503),n(r.actions.setError("no data")))}catch(e){a.error(e),t(e.status||500),n(r.actions.setError("load failed"))}finally{n(r.actions.stop())}}},78777:(e,t,n)=>{n.d(t,{R:()=>i});const i=(e,t,n)=>{const i=Date.now();return n?1e3*+n>i:1e3*+(null!=e?e:0)<i&&i<1e3*+(null!=t?t:0)}},76842:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ht});var i=n(30619),o=n(41395),a=n(52536),s=n(502),r=n(53618),l=n(15231),c=n(71088),d=n(7113),u=n(4032),p=n(43963),g=n(27328),b=n(40300),h=n(97104),m=n(54587),y=n(30494),v=n(46525),f=n(90210),_=n(97955);const S="buy",k="resubscribe",w="manage",T="temporal",P="manageTrial",I="resume";var Z=n(20386),x=n.n(Z),C=n(98652),A=n(23278),E=n.n(A),O=n(22134),L={injectType:"styleTag",insert:"head",singleton:!1};E()(O.Z,L);const R=O.Z.locals||{};var U=n(24517);const B=C.Z.isMobile,N=({title:e,children:t})=>(0,U.BX)("div",{className:x()(R.container,{[R["container--mobile"]]:B}),children:[(0,U.tZ)("div",{className:R.title,children:e}),(0,U.tZ)("div",{children:t})]});var F=n(93888),G={injectType:"styleTag",insert:"head",singleton:!1};E()(F.Z,G);const j=F.Z.locals||{},D=({active:e,inactive:t})=>(0,U.BX)("div",{className:j.container,children:[!!e&&(0,U.BX)(U.HY,{children:[(0,U.tZ)("div",{className:j.title,children:"Your Active Billing Plans"}),(0,U.tZ)("div",{className:j.subtitle,children:"Each plan is billed and cancelled separately"}),(0,U.tZ)("div",{className:j.wrapper,children:e})]}),(0,U.tZ)("div",{className:j.title,children:"Inactive plans"}),!t&&(0,U.BX)(U.HY,{children:[(0,U.tZ)("div",{className:j.subtitle,children:"You currently have no inactive plans"}),(0,U.tZ)("div",{className:j.placeholder})]}),!!t&&(0,U.tZ)("div",{className:j.wrapper,children:t})]});var M=n(80725),K=n(83629),H=n(1980),W=n(16454),V=n(82848),Y=n(50019),z=n(74444);var X=n(56285),J={injectType:"styleTag",insert:"head",singleton:!1};E()(X.Z,J);const Q=X.Z.locals||{};var q=n(70893),$={injectType:"styleTag",insert:"head",singleton:!1};E()(q.Z,$);const ee=q.Z.locals||{},te=({hasPaymentError:e=!1})=>e?(0,U.tZ)("span",{className:ee.error,children:"Payment error"}):null,ne=({type:e,status:t,title:n,features:i,actionText:o,titleBlock:a,disabled:s,onClick:l,hasManageUserSubs:c=!1,remind:d=!1,showRenewalReminder:b=!1,hasExperiment:m=!1,accessUntil:y,alreadyPaused:v,alreadyCanceled:f,hasTrial:_,hasProLifetime:S,hasProLifeTimeDate:k,isResumed:w,hasPaymentError:T,onCancel:P,cancelLoading:I,isPaidTrial:Z=!1,isIntroductory:C=!1})=>{const A=(0,M.F)().isMobile,E=(0,h.Q)().t,O=(0,r.Z)([e=>(0,u.KF)(e,p.t.CANCELLATION_FLOW_3),e=>(0,u.KF)(e,p.t.NETFLIX_STYLE_UNSUBSCRIBE_FLOW)]),L=O[0],R=O[1];if(A&&!y)return null;const B=(!S||k)&&c&&_&&!C&&!f&&!v&&!w,N=(!S||k)&&c&&(!_||C||w)&&!v&&!f,F=(!S||k)&&c&&v&&!f,G=E(b?{message:["A notification will be sent to you before the payment."]}:{message:["You will receive a notification three days before payment"]}),j=g.V.withCancellationFlow3B&&L&&_;return(0,U.BX)("div",{className:x()(Q.container,Q[e],{[Q.disabled]:s}),children:[(0,U.tZ)("div",{className:Q.typeIndicator}),(0,U.BX)("div",{className:Q.main,children:[(0,U.BX)("div",{className:Q.content,children:[(0,U.tZ)("div",{className:Q.statusWrapper,children:!c&&(0,U.tZ)("div",{className:x()(Q.status,{[Q.statusTop]:!c}),children:t})}),(0,U.BX)("div",{className:Q.title,children:[(0,U.BX)("div",{className:Q.titleWrapper,children:[(0,U.tZ)("div",{children:n}),(0,U.tZ)(te,{hasPaymentError:T})]}),a&&(0,U.tZ)("div",{className:Q.titleBlock,children:a})]}),!k&&S&&c&&(0,U.tZ)("div",{className:Q.status,children:E({message:["Lifetime"]})}),!S&&!k&&c&&!N&&!B&&!F&&!w&&(0,U.tZ)("div",{className:Q.status,children:t}),B&&(Z&&"pro"===e?(0,U.BX)("div",{className:Q.access,children:[E({message:["Trial until"]})," ",y]}):(0,U.BX)("div",{className:Q.access,children:[E({message:["Free trial until"]})," ",y]})),N&&(0,U.BX)("div",{className:Q.access,children:[E({message:["Active until"]})," ",y]}),F&&(0,U.BX)("div",{className:Q.access,children:[E({message:["On pause until"]})," ",y]}),(0,U.tZ)("div",{className:Q.features,children:i.map((e=>(0,U.BX)("div",{className:Q.feature,children:[(0,U.tZ)("div",{className:Q.featureIcon,children:(0,U.tZ)(W.ZP,{name:"mark",size:W.ZC,state:W.rD})}),(0,U.tZ)("div",{className:Q.featureText,children:e})]},e)))}),(b||d)&&!f&&!v&&(0,U.BX)("div",{className:Q.noteWrapper,children:[(0,U.tZ)("div",{className:Q.noteIcon,children:(0,U.tZ)(W.ZP,{name:V.DP,size:W.ZC})}),(0,U.tZ)("span",{className:Q.note,children:G})]})]}),(0,U.BX)("div",{className:Q.actionWrapper,children:[!s&&!m&&(0,U.tZ)(K.ZP,{text:o,onClick:l,size:H.hY,type:z.PL,state:Y.Jp,className:x()({[Q.circledBtn]:j})}),!s&&m&&(0,U.tZ)(K.ZP,{text:E({message:["DETAILS"]}),onClick:l,size:H.hY,type:z.Bm,state:Y.Z0,className:x()({[Q.detailsBtn]:j})}),!s&&m&&!f&&j&&!(g.V.withNetflixStyleUnsubscribeFlow&&R&&"pro"===e)&&(0,U.tZ)(K.ZP,{text:"Cancel now",onClick:P,size:H.hY,type:z.PL,state:Y.Jp,className:x()(Q.cancelBtn,Q.circledBtn),isLoading:I,disabled:I})]})]})]})};var ie=n(6158),oe={injectType:"styleTag",insert:"head",singleton:!1};E()(ie.Z,oe);const ae=ie.Z.locals||{},se=({type:e,actionText:t,onClick:n})=>(0,U.BX)("div",{className:x()(ae.container,ae[e]),children:[(0,U.tZ)("div",{className:ae.typeIndicator}),(0,U.BX)("div",{className:ae.main,children:[(0,U.BX)("div",{className:ae.content,children:[(0,U.tZ)("div",{className:ae.title,children:(0,U.tZ)("div",{className:ae.titleWrapper,children:(0,U.tZ)("div",{children:"UG PRO"})})}),(0,U.tZ)("div",{className:ae.status,children:"Annual membership"}),(0,U.tZ)("div",{className:ae.features,children:(0,U.tZ)("div",{className:ae.feature,children:(0,U.tZ)("div",{className:ae.featureText,children:"Give a UG Pro Membership to a Friend"})})})]}),(0,U.tZ)("div",{className:ae.actionWrapper,children:(0,U.tZ)(K.ZP,{text:t,onClick:n,size:H.hY,type:z.PL,state:Y.Jp})})]})]});var re=n(56699),le=n(20924),ce={injectType:"styleTag",insert:"head",singleton:!1};E()(le.Z,ce);const de=le.Z.locals||{},ue=({url:e,onClose:t,handleClick:n})=>{const i=(0,M.F)().isMobile,o=e;return(0,U.tZ)(re.Z,{open:!0,isStretch:i,theme:"light",size:"lg",onClose:t,dialogStyles:de.modalStyles,children:(0,U.BX)("div",{className:de.layer,children:[(0,U.tZ)("div",{className:de.markIcon}),(0,U.tZ)("div",{className:de.title,children:"Give a Pro Membership to a Friend "}),(0,U.tZ)("div",{className:de.description,children:"Share the promo code link with your friend to activate their subscription"}),(0,U.BX)("div",{className:de.promocodeActivationBlock,children:[(0,U.tZ)("input",{className:de.disabledInput,value:o,disabled:!0}),(0,U.tZ)(K.ZP,{type:z.PL,state:Y.Jp,size:H.hY,text:"copy & share",onClick:()=>n(o)})]})]})})};var pe=n(60050),ge=n(59317),be=n(11784);const he=(0,l.Z2)().app_utm_content,me=({url:e,onClose:t})=>{const n=(0,ge.Z)({sendMetricaEvent:be.pQ}),i={value:he||"subscriptions"};return(0,s.useEffect)((()=>{n.sendMetricaEvent(pe.Hj,i)}),[]),(0,U.tZ)(ue,{url:e,onClose:t,handleClick:()=>{n.sendMetricaEvent(pe.Gu,i),(e=>{const t=document.createElement("input");document.body.appendChild(t),t.value=e,t.select(),document.execCommand("copy"),t.remove()})(e)}})};var ye=n(79018),ve={injectType:"styleTag",insert:"head",singleton:!1};E()(ye.Z,ve);const fe=ye.Z.locals||{},_e=C.Z.isMobile,Se=({children:e})=>{const t=e.filter(Boolean),n=[];for(let e=0;e<t.length;e+=3)n.push(t.slice(e,e+3));return(0,U.tZ)("div",{className:fe.wrapper,children:n.map(((e,t)=>(0,U.tZ)("div",{className:x()(_e?fe.columnWrapper:fe.row),children:e.map(((e,n)=>(0,U.tZ)("div",{className:fe.column,children:e},"col-"+t+"-"+n)))},"row-"+t)))})};var ke=n(17130),we=n(85079),Te=n(30171),Pe=n(55113);const Ie=(0,l.Z2)().fburl,Ze=({url:e})=>{const t=(0,ge.Z)({handleOneClickEmailPayment:ke.$T,setBuyService:Te.yN,setAppUtmCampaign:Pe.Ym.setAppUtmCampaign});return(0,s.useEffect)((()=>{(()=>{const e=window.location,t=e.search,n=e.pathname,i=new URLSearchParams(t);if(i.has("check_url")){i.delete("check_url");const e=i.toString()?n+"?"+i.toString():n;window.history.replaceState({},document.title,e)}})(),t.setBuyService(Ie.includes("courses")?we.K6:we.oG),t.handleOneClickEmailPayment(e,Ie)}),[]),null};var xe=n(80091),Ce=n(43902),Ae=n(44305),Ee=n(33939),Oe=n(47694),Le=n(38628),Re=n(70503);const Ue={"pro_plus_account|1_month|10":Ae.GF,"pro_plus_account|12_month|40|trial":Ae.UG,"pro_plus_account|12_month|40":Ae.RG},Be=window.UGAPP.store.checkout.product_id;var Ne=n(40410),Fe=n(78793),Ge=n(31739),je=n(13901),De=n(86092),Me=n(49729),Ke=n(78777);const He=!0,We={[S]:"Activate",[k]:"Resubscribe",[w]:"Manage",[T]:"Details",[P]:"Manage",[I]:"Resume"},Ve={[S]:{message:["Start now"]},[k]:{message:["Resubscribe"]},[w]:{message:["Manage"]},[T]:{message:["Details"]},[P]:{message:["Manage"]},[I]:{message:["Resume"]}},Ye={[S]:{message:["inactive"]},[k]:{message:["canceled"]},[w]:{message:["active"]},[T]:{message:["active (autorenew off)"]},[P]:{message:["7-day trial"]},[I]:{message:["active"]}},ze="Pro+",Xe="Courses",Je="Bundle",Qe="Bundle_Books_Edu",qe="Bundle_Pro_Edu_Book",$e="Book",et=e=>({type:e,ctaKey:Ve[e],statusKey:Ye[e],analyticParam:We[e]}),tt=(e,t)=>{var n,i,o;return null!=e&&e.pause_start&&!+(null!==(n=e.pause_restored)&&void 0!==n?n:0)?1e3*+(null!==(o=e.pause_end)&&void 0!==o?o:0):void 0===t||null!=e&&e.next_transaction_date?1e3*+(null!==(i=null==e?void 0:e.next_transaction_date)&&void 0!==i?i:0):t},nt=e=>!(null==e||!e.next_transaction_date)&&+e.next_transaction_date>Math.floor(Date.now()/1e3),it=(e,t,n,i,o,a)=>a?et(I):i?et(w):o&&e?et(T):n&&n<(new Date).getTime()?et(k):et(t?P:e?w:S),ot={[ze]:we.oG,[Xe]:we.K6,[Je]:we.tk,[$e]:we.mn,[Qe]:we.yt,[qe]:we.ri},at=(e,t)=>
1{var n;return e===ze&&t?t:null!==(n=ot[e])&&void 0!==n?n:""},st=(0,l.Z2)(),rt=st.app_utm_source,lt=st.app_utm_sub_source,ct=st.ug_ua,dt=()=>{var e,t,n,i,o,a,l,u,b,T,Z,x,C,A,E,O,L,R,U,B,N,F,G,j,D,M,K,H,W,V,Y,z,X,J,Q,q,$,ee,te;const ne=(0,h.Q)(),ie=ne.getDate,oe=ne.t,ae=(0,r.Z)([_.RM,f.jC.getProAccessUntil,f.jC.getEduAccessUntil,f.jC.getBookAccessUntil,f.jC.getHasProLifetime,f.jC.getHasEduLifetime,f.jC.getHasBookLifetime,f.jC.getHasProAccess,f.jC.getHasEduAccess,f.jC.getHasBookAccess,f.jC.getBookBundleAccess,f.jC.getBookBundleAccessUntil,f.jC.getHasActiveProTrial,f.jC.getHasActiveEduTrial,f.jC.getHasActiveBookTrial,v.Mq.getFamily,Ge.b2,f.jC.hasBookEduBundleAccess,f.jC.hasProEduBookBundleAccess,Pe.Vl,_.Ff,_.cd]),se=ae[0],re=ae[1],le=ae[2],ce=ae[3],de=ae[4],ue=ae[5],pe=ae[6],be=ae[7],he=ae[8],me=ae[9],ye=ae[10],ve=ae[11],fe=ae[12],_e=ae[13],Se=ae[14],ke=ae[15],Te=ae[16],Ie=ae[17],Ze=ae[18],xe=ae[19],Ce=ae[20],Ae=ae[21],Ee=(0,ge.Z)({registerExperimentStart:Ne.$,setAppUtmCampaign:Pe.Ym.setAppUtmCampaign,setAppUtmMedium:Pe.Ym.setAppUtmMedium,setAppUtmSource:Pe.Ym.setAppUtmSource,setDisableTour:Pe.Ym.setDisableTour,setOpenBuyLayers:Pe.Ym.setOpenBuyLayers,openModalById:Fe.u3}),Oe=(0,s.useState)(!1),Le=Oe[0],Ue=Oe[1],Be=(0,s.useState)(!1),We=Be[0],Ve=Be[1],Ye=(0,s.useState)(!1),et=Ye[0],ot=Ye[1],st=(0,s.useState)(!1),dt=st[0],ut=st[1],pt=(0,s.useState)(!1),gt=pt[0],bt=pt[1],ht=(0,s.useState)(!1),mt=ht[0],yt=ht[1],vt=e=>{var t,n,i,o,a;const s=e.sub,r=e.action,l=e.accessType;return{type:e.type,status:oe(r.statusKey),actionType:r.type,title:e.title,features:e.features,actionText:oe(r.ctaKey),onClick:()=>((e,t,n)=>{if(m.j.send({event:y.CsA,item:e,type:t.analyticParam}),t.type!==S&&t.type!==k){const i=at(e,n);(0,c.U)("/user/subscriptions/details?service="+i+"&app_utm_sub_source=Subscriptions&app_utm_source=Subscriptions&isResume="+(t.type===I?"1":"0"))}if(t.type===S||t.type===k){const n={disableTour:1,openBuyLayers:1,disableHeatingLayer:t.type===k?1:"",app_utm_medium:"Subscriptions",app_utm_source:"UltimateGuitar"};let i="";if(e===ze)i=(0,d.i8)({...n,app_utm_campaign:"Settings Pro"}),(0,c.U)(i);else if(e===Xe){const e={...n,app_utm_campaign:"Settings Courses"};i=(0,d.eT)(),Ee.setAppUtmCampaign(e.app_utm_campaign),Ee.setAppUtmMedium(e.app_utm_medium),Ee.setAppUtmSource(e.app_utm_source),Ee.setDisableTour(e.disableTour),Ee.setOpenBuyLayers(e.openBuyLayers)}else e===Je?i=(0,d.i8)({...n,app_utm_campaign:"Settings One",disableHeatingLayer:1,bundle:1}):e===$e?(Ee.setAppUtmCampaign("Settings Books"),Ee.setOpenBuyLayers("1"),je.I.setSessionAppUtmCampaign("Settings Songbooks"),i=d.US):e===qe&&(i=(0,d.i8)({...n,app_utm_campaign:"Settings One",disableHeatingLayer:1,bundle:1}));i&&(0,c.U)(i,300)}})(l,r,e.serviceName),titleBlock:e.titleBlock,remind:!(null===(t=null==s?void 0:s.remind)||void 0===t)&&t,showRenewalReminder:!(null===(n=null==s?void 0:s.show_renewal_reminder)||void 0===n)&&n,hasPaymentError:!(null==s||!s.has_payment_error),hasExperiment:r.type!==S&&r.type!==k&&r.type!==I&&He,accessUntil:ie(tt(s,e.accessUntilFallback)),alreadyPaused:(0,Ke.R)(null==s?void 0:s.pause_start,null==s?void 0:s.pause_end,null==s?void 0:s.pause_restored),alreadyCanceled:!(null!=s&&s.next_transaction_date),hasManageUserSubs:He,hasTrial:e.hasTrial,hasProLifeTimeDate:e.hasLifetimeDate,isResumed:!!+(null!==(i=null==s?void 0:s.pause_restored)&&void 0!==i?i:0),family:e.family,disabled:e.disabled,hasProLifetime:e.hasLifetime,onCancel:()=>((e,t,n)=>{const i=at(e,n);t(!0),(0,De.$H)({service:i}).then((()=>{var t;"pro_plus_account"!==i||null!==(t=se.subscription)&&void 0!==t&&t.trial_days||Ee.registerExperimentStart({id:p.t.WINBACK_PAYWALL}),g.V.withCancellationFlow3B&&m.j.send({event:y.kQE,value:ct||rt||lt||xe||"direct",type:"trial",ui:Re.pj,item:e.toLowerCase(),params:(0,Me.s)()}),(0,c.U)("/user/subscriptions/interview?service="+i+"&app_utm_source=Subscriptions&app_utm_sub_source=Subscriptions&after_cancel_pro="+(i===we.yt?1:0)+"&is_new_cancellation_flow=1")})).finally((()=>{t(!1)}))})(l,e.setLoading,e.serviceName),cancelLoading:e.cancelLoading,isPaidTrial:!(null===(o=e.isPaidTrial)||void 0===o)&&o,isIntroductory:!(null===(a=e.isIntroductory)||void 0===a)&&a}},ft=it(be,fe&&!Ae,re,!(null===(e=se.subscription)||void 0===e||!e.has_payment_error),!(null!==(t=se.subscription)&&void 0!==t&&t.next_transaction_date),(0,Ke.R)(null===(n=se.subscription)||void 0===n?void 0:n.pause_start,null===(i=se.subscription)||void 0===i?void 0:i.pause_end,null===(o=se.subscription)||void 0===o?void 0:o.pause_restored)),_t=vt({type:"pro",title:"UG PRO+",features:[oe({message:["Essential guitar features"]}),oe({message:["2+ million ad-free tabs & chords"]}),oe({message:["Over 280k interactive tabs"]})],accessType:ze,action:ft,sub:se.subscription,hasTrial:fe,isPaidTrial:Ce,isIntroductory:Ae,hasLifetimeDate:!!(de&&null!==(a=se.subscription)&&void 0!==a&&a.has_autorenew&&nt(se.subscription)),hasLifetime:de,cancelLoading:Le,setLoading:Ue,serviceName:null===(l=se.subscription)||void 0===l?void 0:l.service_name,family:ke,disabled:Te}),St=it(he,_e,le,!(null===(u=se.edu_subscription)||void 0===u||!u.has_payment_error),!(null!==(b=se.edu_subscription)&&void 0!==b&&b.next_transaction_date),(0,Ke.R)(null===(T=se.edu_subscription)||void 0===T?void 0:T.pause_start,null===(Z=se.edu_subscription)||void 0===Z?void 0:Z.pause_end,null===(x=se.edu_subscription)||void 0===x?void 0:x.pause_restored)),kt=vt({type:"edu",title:"UG Courses",features:[oe({message:["Over 100 courses for any level"]}),oe({message:["Lessons from professional musicians"]}),oe({message:["For every level, instrument, and playing style"]})],accessType:Xe,action:St,sub:se.edu_subscription,hasTrial:_e,hasLifetimeDate:!!(ue&&null!==(C=se.edu_subscription)&&void 0!==C&&C.has_autorenew&&nt(se.edu_subscription)),hasLifetime:ue,cancelLoading:We,accessUntilFallback:le,setLoading:Ve,disabled:Te}),wt=Te?it(be,fe,re,!(null===(A=se.pro_edu_subscription)||void 0===A||!A.has_payment_error),!(null!==(E=se.pro_edu_subscription)&&void 0!==E&&E.next_transaction_date),(0,Ke.R)(null===(O=se.pro_edu_subscription)||void 0===O?void 0:O.pause_start,null===(L=se.pro_edu_subscription)||void 0===L?void 0:L.pause_end,null===(R=se.pro_edu_subscription)||void 0===R?void 0:R.pause_restored)):it(!1,!1,0,!1,!1,
1!1),Tt=null!=se&&null!==(U=se.book_edu_subscription)&&void 0!==U&&U.method?it(!!ye,Se,ce,!(null==se||null===(B=se.book_edu_subscription)||void 0===B||!B.has_payment_error),!(null!=se&&null!==(N=se.book_edu_subscription)&&void 0!==N&&N.next_transaction_date),(0,Ke.R)(null==se||null===(F=se.book_edu_subscription)||void 0===F?void 0:F.pause_start,null==se||null===(G=se.book_edu_subscription)||void 0===G?void 0:G.pause_end,null==se||null===(j=se.book_edu_subscription)||void 0===j?void 0:j.pause_restored)):it(!1,!1,0,!1,!1,!1),Pt=[w,P].includes(wt.type)?"":"Recommended",It=vt({type:"bundle",title:"UG Pro+ + Courses",features:[oe({message:["2+ million ad-free tabs & chords"]}),oe({message:["Over 280k interactive tabs"]}),oe({message:["Essential guitar features"]}),oe({message:["6,200+ lessons from professionals"]}),oe({message:["Lessons from professional musicians"]}),oe({message:["For every level and instrument"]})],accessType:Je,action:wt,sub:se.pro_edu_subscription,hasTrial:fe||_e,hasLifetimeDate:!(!de&&!ue||null===(D=se.pro_edu_subscription)||void 0===D||!D.has_autorenew||!nt(se.pro_edu_subscription)),hasLifetime:de||ue,cancelLoading:et,setLoading:ot,accessUntilFallback:re,titleBlock:Pt}),Zt=it(me,Se,ce,!(null===(M=se.book_subscription)||void 0===M||!M.has_payment_error),!(null!==(K=se.book_subscription)&&void 0!==K&&K.next_transaction_date),(0,Ke.R)(null===(H=se.book_subscription)||void 0===H?void 0:H.pause_start,null===(W=se.book_subscription)||void 0===W?void 0:W.pause_end,null===(V=se.book_subscription)||void 0===V?void 0:V.pause_restored)),xt=vt({type:"book",title:"UG Songbooks",features:[oe({message:["Access 2,000+ digital books including songbooks and method books"]}),oe({message:["Fast loading on desktop"]}),oe({message:["New books being added regularly"]})],accessType:$e,action:Zt,sub:se.book_subscription,hasTrial:Se,hasLifetimeDate:!(!pe||null===(Y=se.book_subscription)||void 0===Y||!Y.has_autorenew),hasLifetime:pe,cancelLoading:dt,setLoading:ut,accessUntilFallback:ce}),Ct=vt({type:"bundle_book_edu",title:"UG Songbooks+Courses",features:[oe({message:["Access 2,200 digital books"]}),oe({message:["6,200+ lessons"]}),oe({message:["For every level, instrument, and playing style"]})],accessType:Qe,action:Tt,sub:null==se?void 0:se.book_edu_subscription,hasTrial:_e&&Se,hasLifetimeDate:!(!de&&!ue||null==se||null===(z=se.book_edu_subscription)||void 0===z||!z.has_autorenew||!nt(se.book_edu_subscription)),hasLifetime:de||ue,cancelLoading:gt,setLoading:bt,accessUntilFallback:ve}),At=null!=se&&null!==(X=se.pro_edu_ebook_subscription)&&void 0!==X&&X.method?it(Ze,fe||_e||Se,re||le||ce,!(null===(J=se.pro_edu_ebook_subscription)||void 0===J||!J.has_payment_error),!(null!==(Q=se.pro_edu_ebook_subscription)&&void 0!==Q&&Q.next_transaction_date),(0,Ke.R)(null===(q=se.pro_edu_ebook_subscription)||void 0===q?void 0:q.pause_start,null===($=se.pro_edu_ebook_subscription)||void 0===$?void 0:$.pause_end,null===(ee=se.pro_edu_ebook_subscription)||void 0===ee?void 0:ee.pause_restored)):it(!1,!1,0,!1,!1,!1),Et=vt({type:"bundle_pro_edu_book",title:"UG Pro + Courses + Songbooks",features:[oe({message:["2+ million ad-free tabs & chords"]}),oe({message:["Over 280k interactive tabs"]}),oe({message:["Essential guitar features"]}),oe({message:["Access 2,000+ digital books including songbooks and method books"]}),oe({message:["Fast loading on desktop"]}),oe({message:["New books being added regularly"]})],accessType:qe,action:At,sub:se.pro_edu_ebook_subscription,hasTrial:fe||_e||Se,hasLifetimeDate:!!((de||ue||pe)&&null!==(te=se.pro_edu_ebook_subscription)&&void 0!==te&&te.has_autorenew&&nt(se.pro_edu_ebook_subscription)),hasLifetime:de||ue||pe,cancelLoading:mt,setLoading:yt,accessUntilFallback:re});return[Te&&It,Ze&&Et,!Ze&&_t,!Ie&&!Ze&&kt,!Ie&&!Ze&&xt,Ie&&Ct].filter(Boolean)},ut=(0,l.Z2)(),pt=ut.app_utm_campaign,gt=ut.check_url,bt=()=>{var e,t,n;(()=>{(0,Ee.j)();const e=(0,ge.Z)({openBuyLayer:xe.L,setPaymentDetails:Te.sM,changeBuyPeriod:ke.c8,setAppUtmCampaign:Le.Ym.setAppUtmCampaign});(0,s.useEffect)((()=>{Be in Ue&&(e.setAppUtmCampaign(Re.eK),e.changeBuyPeriod(Ue[Be]),e.setPaymentDetails({priceKey:Ue[Be],trialPeriod:Ue[Be]===Ae.UG?7:0}),e.openBuyLayer(Ce.tW,Oe.c3))}),[])})();const i=dt(),o=i.filter((({actionType:e})=>e!==S&&e!==k)),a=i.filter((({actionType:e})=>
1e===S||e===k)),l=(0,h.Q)().t,w=(0,s.useState)(!1),T=w[0],P=w[1],I=(0,r.Z)([_.RM,v.Mq.getId,f.jC.getHasProAccess,f.jC.getHasActiveProTrial,f.jC.getHasActiveProTrial,f.jC.getHasActiveEduTrial,f.jC.getHasActiveBookTrial,e=>(0,u.KF)(e,p.t.CANCELLATION_FLOW_3)]),Z=I[0],x=I[1],C=I[2],A=I[3],E=I[4],O=I[5],L=I[6],R=I[7];(0,s.useEffect)((()=>{m.j.send({event:y.kA7})}),[]),(0,s.useEffect)((()=>{pt===b.my&&P(!0)}),[pt]),(0,s.useEffect)((()=>{x||(0,c.U)(d.hB)}),[x]);const B=Object.keys((null==Z?void 0:Z.promo_code)||{}),F=B.length?B[0]:null,G=F&&(A||C),j=g.V.withCancellationFlow3B&&R&&(E||O||L);return(0,U.BX)(U.HY,{children:[T&&G&&(0,U.tZ)(me,{url:null!==(e=null===(t=Z.promo_code)||void 0===t||null===(n=t[F])||void 0===n?void 0:n.activate_url)&&void 0!==e?e:"",onClose:()=>P(!1)}),!!gt&&(0,U.tZ)(Ze,{url:gt}),j?(0,U.tZ)(D,{active:o.length&&(0,U.tZ)(Se,{children:o.map((e=>(0,U.tZ)(ne,{...e},e.type)))}),inactive:a.length&&(0,U.tZ)(Se,{children:a.map((e=>(0,U.tZ)(ne,{...e},e.type)))})}):(0,U.tZ)(N,{title:l({message:["Subscriptions"]}),children:(0,U.tZ)(Se,{children:i.map((e=>(0,U.tZ)(ne,{...e},e.type)))})}),G&&(0,U.tZ)("div",{style:{marginTop:"22px"},children:(0,U.tZ)(N,{title:l({message:["Active promo codes"]}),children:(0,U.tZ)(se,{type:"pro",actionText:l({message:["Share promo code"]}),onClick:()=>P(!0)})})})]})},ht=()=>((0,i.F)(),(0,o.G)(),(0,U.tZ)(a.u,{children:(0,U.tZ)(bt,{})}))},56699:(e,t,n)=>{n.d(t,{Z:()=>v});var i=n(502),o=n(80725),a=n(20386),s=n.n(a),r=n(10393),l=n(1514),c=n(21269),d=n(23278),u=n.n(d),p=n(68604),g={injectType:"styleTag",insert:"head",singleton:!1};u()(p.Z,g);const b=p.Z.locals||{};var h=n(6749),m=n(16454),y=n(24517);const v=(0,l.Z)((0,r.Z)())((({children:e,startZIndex:t=1e3,canDisableScroll:n=!0,className:a,...r})=>{const l=(0,o.F)().isMobile,d=r.onClose,u=r.closeButtonTestId;return i.useEffect((()=>(r.disableScrollOn(),()=>{r.disableScrollOff()})),[]),l?(0,y.BX)("div",{className:s()(b.layer,a),style:{zIndex:t},children:[d&&(0,y.tZ)(h.Z,{onClick:d,size:m.ZC}),e]}):(0,y.tZ)(c.Z,{...r,startZIndex:t,canDisableScroll:n,closeButtonTestId:u,children:e})}))},49729:(e,t,n)=>{n.d(t,{s:()=>s});var i=n(15231),o=n(49685);const a="ugapp:webviewAnalyticsData",s=()=>{const e=(0,i.Z2)(),t=e.unified_id,n=e.product_code,s=e.content_id,r=e.payment_account_id;t&&o.Z.set(a,JSON.stringify({appUnifiedId:t,productCode:n,contentId:s,paymentAccountId:r}));const l=JSON.parse(o.Z.get(a));if(null!=l&&l.appUnifiedId){return{isFromApp:["1",1],app_unified_id:[l.appUnifiedId,0],product_code:[l.productCode,0],content_id:[l.contentId,0],payment_account_id:[l.paymentAccountId,0]}}return{}}},57623:(e,t,n)=>{n.d(t,{L:()=>o});const i=new Map,o=(e,t={})=>{const n=t.attributes,o=t.once,a=void 0!==o&&o,s=i.get(e);if(a&&void 0!==s)return s;const r=new Promise(((t,i)=>{const o=document.createElement("script");!a&&void 0!==n&&Object.entries(n).forEach((([e,t])=>o.setAttribute(e,t))),o.async=!0,o.src=e,o.onload=()=>t(),o.onerror=i,document.head.appendChild(o)}));return a&&i.set(e,r),r}},22580:(e,t,n)=>{n.d(t,{Mb:()=>a,tc:()=>s});var i=n(98652),o=n(57623);const a=15e3,s=async(e,{timeoutMs:t}={})=>{const n=i.Z.cf_turnstile_site_key;if(!n)throw new Error("Cloudflare Turnstile site key is not configured");const a=await(async()=>{window.turnstile||await(0,o.L)("https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",{once:!0});const e=window.turnstile;if(!e)throw new Error("Cloudflare Turnstile script loaded but window.turnstile is not defined.");return e})(),s=document.createElement("div");return s.style.display="none",document.body.appendChild(s),new Promise(((i,o)=>{let r,l;const c=()=>{if(void 0!==l&&clearTimeout(l),void 0!==r)try{a.remove(r)}catch(e){}s.remove()},d=e=>{c(),o(new Error(e))};t&&(l=setTimeout((()=>d("Cloudflare Turnstile did not settle")),t));try{r=a.render(s,{sitekey:n,action:e,execution:"execute",retry:"never",callback:e=>{c(),i(e)},"error-callback":e=>{d("Cloudflare Turnstile failed"+(e?": "+e:""))},"timeout-callback":()=>{d("Cloudflare Turnstile timed out")},...t&&{"unsupported-callback":()=>{d("Cloudflare Turnstile is unsupported in this browser")}}}),a.execute(s)}catch(e){c(),o(e)}}))}}
1,84428:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(23278),o=n.n(i),a=n(35329),s={injectType:"styleTag",insert:"head",singleton:!1};o()(a.Z,s);const r=a.Z.locals||{}},19668:(e,t,n)=>{e.exports=n.p+"202609/card-placeholder.bde087b3..png"},48861:(e,t,n)=>{e.exports=n.p+"202609/share_promo_icon.beced9e9..webp"}}]);
2//# sourceMappingURL=/static/public/build/ug_react_i18n_es6/../../sourcemap/ug_react_i18n_es6/202609/2568.c9aa4779448e95c2d81dd1f1e1334824.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.