1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3751],{3035:e=>{e.exports={itemWrapper:"EmailPreferencesForm_itemWrapper__soQHa",itemTitle:"EmailPreferencesForm_itemTitle__CrMzB",itemText:"EmailPreferencesForm_itemText__BR_QW",dropdown:"EmailPreferencesForm_dropdown__7RdbM"}},3925:(e,t,l)=>{"use strict";l.d(t,{r:()=>k});var s=l(80263),a=l(94386),n=l(97930),r=l(64011),i=l(33894),o=l(14676),c=l(62598),d=l(7665),u=l(78852),_=l(13463),m=l(40377),p=l(84001),h=l(53239),w=l(82762),b=l(76084),f=l(47305),v=l(3035),y=l.n(v);let x=e=>[{text:e("Never"),value:"never"},{text:e("Daily"),value:"daily"},{text:e("Weekly"),value:"weekly"},{text:e("Monthly"),value:"monthly"}],g=e=>[{text:e("Never"),value:"never"},{text:e("Daily"),value:"daily"},{text:e("Weekly"),value:"weekly"}],k=e=>{let{token:t}=e,{t:l}=(0,_.c3)(),v=(0,h.useRef)(null),{data:k}=(0,b.YN)(t),j=(0,b.vL)(),E=(0,h.useMemo)(()=>({allow_tech_support:!0,allow_my_music:k?.my_submitted_music||!1,allow_last_sales:k?.last_sales,allow_direct_messages:k?.direct_messages||!1,allow_billing_receipts:k?.billing_receipts||!1,allow_new_followed_releases:k?.new_followed_releases,allow_discount_reminder:k?.discount_reminder||!1,allow_marketing:k?.marketing_emails}),[k]);return(0,s.jsx)(p.l1,{enableReinitialize:!0,initialStatus:(0,r.iE)(j.error),initialValues:E,innerRef:v,validationSchema:w.Ik().shape({allow_tech_support:w.zM().defined(),allow_product_news:w.zM().optional(),allow_company_offers:w.zM().optional(),allow_my_music:w.zM().optional(),allow_direct_messages:w.zM().optional(),allow_billing_receipts:w.zM().optional(),allow_monthly_newsletter:w.zM().optional(),allow_discount_reminder:w.zM().optional(),allow_store_guide:w.zM().optional(),allow_marketing:w.Yj().optional()}),onSubmit:e=>{let{allow_my_music:s,allow_last_sales:a,allow_new_followed_releases:n,allow_direct_messages:r,allow_billing_receipts:o,allow_discount_reminder:c,allow_marketing:d}=e,u="subscribed"===d&&k?.marketing_emails!=="subscribed";j.mutate({token:t,payload:{my_submitted_music:s,last_sales:a,new_followed_releases:n,direct_messages:r,billing_receipts:o,discount_reminder:c,marketing_emails:d}},{onSuccess:()=>{u?i.vF.success(l("Your subscription settings have been updated. A confirmation email may be sent to your inbox."),{persistent:!0}):i.vF.success(l("Subscription settings updated"))}})},children:e=>{let{handleChange:t,handleBlur:r,setFieldValue:i,values:_}=e;return(0,s.jsxs)(p.lV,{children:[(0,f.N)(l).map(e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.S,{checked:"allow_marketing"===e.key?"subscribed"===_.allow_marketing:!!_[e.key]&&"never"!==_[e.key],disabled:e.disabled,label:(0,s.jsxs)("div",{className:y().itemWrapper,children:[(0,s.jsx)("div",{className:y().itemTitle,children:e.title}),(0,s.jsx)("div",{className:y().itemText,children:e.description})]}),name:e.key,onBlur:r,onChange:"allow_new_followed_releases"===e.key?e=>{i("allow_new_followed_releases",e.target.checked?"weekly":"never")}:"allow_last_sales"===e.key?e=>{i("allow_last_sales",e.target.checked?"daily":"never")}:"allow_marketing"===e.key?e=>{i("allow_marketing",e.target.checked?"subscribed":"unsubscribed")}:t}),(0,s.jsx)(u.K,{mt:2.5}),"allow_new_followed_releases"===e.key&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.l,{canClear:!1,className:y().dropdown,id:"allow_new_followed_releases",name:"allow_new_followed_releases",renderValue:e=>x(l).find(t=>t.value===e)?.text,required:!0,value:_.allow_new_followed_releases,onBlur:r,onChange:e=>i("allow_new_followed_releases",e),children:x(l).map(e=>(0,s.jsx)(d.eb,{value:e.value,children:e.text},e.value))}),(0,s.jsx)(u.K,{mt:4})]}),(0,s.jsx)(u.K,{mt:2.5}),"allow_last_sales"===e.key&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.l,{canClear:!1,className:y().dropdown,id:"allow_last_sales",name:"allow_last_sales",renderValue:e=>g(l).find(t=>t.value===e)?.text,required:!0,value:_.allow_last_sales,onBlur:r,onChange:e=>i("allow_last_sales",e),children:g(l).map(e=>(0,s.jsx)(d.eb,{value:e.value,children:e.text},e.value))}),(0,s.jsx)(u.K,{mt:4})]})]})),(0,s.jsx)(n.W3,{children:(0,s.jsx)(a.$,{disabled:(0,m.bD)(_,E),loading:j.isPending,type:"submit",children:l("Save changes")}
1)})]})}})}},14676:(e,t,l)=>{"use strict";l.d(t,{S:()=>_});var s=l(80263),a=l(18251),n=l(64296),r=l(904),i=l(78852),o=l(99435),c=l(3638);l(53239);var d=l(80641),u=l.n(d);let _=e=>{let{className:t,checkboxBaseClassName:l,error:d,innerRef:_,label:m,reserveErrorSpace:p,reserveLabelSpace:h,tooltip:w,...b}=e;return(0,s.jsxs)(r.v,{className:(0,c.A)(t),disabled:b.disabled,error:d,forId:b.id,innerRef:_,reserveErrorSpace:p,children:[h&&(0,s.jsx)(i.K,{mt:4.5}),(0,s.jsxs)("label",{className:(0,c.A)(u().label,b.disabled&&u().labelDisabled),children:[(0,s.jsx)(n.L,{...b,className:(0,c.A)(m?u().checkboxHasLabel:void 0,l)}),(0,s.jsx)("span",{children:m}),w?(0,s.jsx)(o.m,{anchor:(0,s.jsx)(a.XVX,{className:u().tooltipIcon}),className:u().tooltip,preferredDirection:"topLeft",title:w,children:w}):null]}),h&&(0,s.jsx)(i.K,{mt:1})]})}},35472:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>h});var s=l(80263),a=l(136),n=l(78852),r=l(50016),i=l(13463),o=l(61469),c=l(53239),d=l(3925),u=l(47305),_=l(76084),m=l(63830);let p=()=>{let e=(0,o.useRouter)(),{t}=(0,i.c3)(),[l,p]=(0,c.useState)(!1),h="string"==typeof e.query.token?e.query.token:void 0,w="string"==typeof e.query.category?e.query.category:void 0,b="string"==typeof e.query.periodicity?e.query.periodicity:void 0,f=(0,_.vL)(),v=b&&"never"!==b;return(0,c.useEffect)(()=>{if(w&&h){let e=b?{[w]:b}:{[w]:!1};f.mutate({payload:{...e,...!v?{unsubscribe:!0}:{}},token:h},{onSuccess:()=>p(!0)})}},[h,w,b]),(0,s.jsxs)(m.G,{allowLoggedIn:!0,children:[(0,s.jsx)(r.V,{align:"center",component:"h1",variant:"h2",children:t("Email preferences")}),l&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.K,{mt:2}),(0,s.jsx)(a.p,{type:"success",children:v?t('You have been successfully changed the frequency of "{subscription}"',void 0,{subscription:(0,u.N)(t).find(e=>e.id===w)?.title}):t('You have been successfully unsubscribed from "{subscription}"',void 0,{subscription:(0,u.N)(t).find(e=>e.id===w)?.title})})]}),(0,s.jsx)(n.K,{mt:2}),(0,s.jsx)(d.r,{token:h}),(0,s.jsx)(n.K,{mt:4})]})};p.getConfig=()=>({noQuickSettings:!0,skipAllGlobalDataFetching:!0,skipCookieConsent:!0}),p.displayName="UnsubscribePage";let h=p},47111:(e,t,l)=>{"use strict";l.d(t,{A:()=>h});var s,a,n=l(73125),r=l(53239),i=l(85209),o=l(30441),c="out-in",d="in-out",u=function(e,t,l){return function(){var s;e.props[t]&&(s=e.props)[t].apply(s,arguments),l()}},_=((s={})[c]=function(e){var t=e.current,l=e.changeState;return r.cloneElement(t,{in:!1,onExited:u(t,"onExited",function(){l(i.ns,null)})})},s[d]=function(e){var t=e.current,l=e.changeState,s=e.children;return[t,r.cloneElement(s,{in:!0,onEntered:u(s,"onEntered",function(){l(i.ns)})})]},s),m=((a={})[c]=function(e){var t=e.children,l=e.changeState;return r.cloneElement(t,{in:!0,onEntered:u(t,"onEntered",function(){l(i._K,r.cloneElement(t,{in:!0}))})})},a[d]=function(e){var t=e.current,l=e.children,s=e.changeState;return[r.cloneElement(t,{in:!1,onExited:u(t,"onExited",function(){s(i._K,r.cloneElement(l,{in:!0}))})}),r.cloneElement(l,{in:!0})]},a),p=function(e){function t(){for(var t,l=arguments.length,s=Array(l),a=0;a<l;a++)s[a]=arguments[a];return(t=e.call.apply(e,[this].concat(s))||this).state={status:i._K,current:null},t.appeared=!1,t.changeState=function(e,l){void 0===l&&(l=t.state.current),t.setState({status:e,current:l})},t}(0,n.A)(t,e);var l=t.prototype;return l.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){var l,s;return null==e.children?{current:null}:t.status===i.ns&&e.mode===d?{status:i.ns}:t.current&&!((l=t.current)===(s=e.children)||r.isValidElement(l)&&r.isValidElement(s)&&null!=l.key&&l.key===s.key)&&1?{status:i.ze}:{current:r.cloneElement(e.children,{in:!0})}},l.render=function(){var e,t=this.props,l=t.children,s=t.mode,a=this.state,n=a.status,c=a.current,d={children:l,current:c,changeState:this.changeState,status:n};switch(n){case i.ns:e=m[s](d);break;case i.ze:e=_[s](d);break;case i._K:e=c}return r.createElement(o.A.Provider,{value:{isMounting:!this.appeared}},e)},t}(r.Component);p.propTypes={},p.defaultProps={mode:c};let h=p},47305:(e,t,l)=>{"use strict";l.d(t,{N:()=>s});let s=e=>[{key:"allow_tech_support",title:e("Volumo support"),description:e("Technical emails such as password reset"),disabled:!0},{id:"marketing",key:"allow_marketing",title:e("Volumo updates, announcements, and selected offers"),description:e("Stay updated with Volumo news, product updates, and special offers")},{id:"my_submitted_music",key:"allow_my_music",title:e("My submitted music"),description:e("Messages about changes in the status of submitted releases and charts")},{id:"last_sales",key:"allow_last_sales",title:e("Sales notifications"),description:e("Sales notifications (for content providers)")},{id:"direct_messages",key:"allow_direct_messages",title:e("Direct messages"),description:e("Direct messages (for content providers)")},{id:"new_followed_releases",key:"allow_new_followed_releases",title:e("New followed releases"),description:e("Notify when your followed artists or labels publish new releases")},{id:"discount_reminder",key:"allow_discount_reminder",title:e("Discount reminder"),description:e("Notify when your discount expires")}]},50515:(e,t,l)=>
1{(window.__NEXT_P=window.__NEXT_P||[]).push(["/unsubscribe",function(){return l(35472)}])},62598:(e,t,l)=>{"use strict";l.d(t,{l:()=>c});var s=l(80263),a=l(904),n=l(7665),r=l(3638);l(53239);var i=l(80491),o=l.n(i);let c=e=>{let{className:t,error:l,inputContainerClassName:i,label:c,labelOption:d,mini:u,placeholder:_,required:m,reserveErrorSpace:p,...h}=e;return(0,s.jsx)(a.v,{className:(0,r.A)(o().root,t),disabled:h.disabled,error:l,forId:h.id,label:c,labelOption:d,mini:u,required:m,reserveErrorSpace:p,children:(0,s.jsx)(n.oJ,{className:i,label:c,placeholder:_,required:m,validationState:l?"error":"normal",...h})})}},63830:(e,t,l)=>{"use strict";l.d(t,{G:()=>h});var s=l(80263),a=l(78852),n=l(3638),r=l(53239),i=l(70719),o=l(553),c=l(61469),d=l.n(c),u=l(51143);let _=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],{isLoggedIn:t}=(0,u.IE)();(0,r.useEffect)(()=>{o.Bd&&t&&e&&d().push(i.KW.Root)},[t])};var m=l(71532),p=l.n(m);let h=e=>{let{allowLoggedIn:t,children:l,className:r}=e;return _(!t),(0,s.jsxs)("div",{className:(0,n.A)(p().root,r),children:[(0,s.jsx)(a.K,{mt:4}),l]})};h.displayName="LoginLayout"},71532:e=>{e.exports={root:"LoginLayout_root__LV750"}},80491:e=>{e.exports={root:"Select_root__LBRIF"}},80641:e=>{e.exports={label:"Checkbox_label__auK04",labelDisabled:"Checkbox_labelDisabled__fbN2v",tooltip:"Checkbox_tooltip__zotSI",tooltipIcon:"Checkbox_tooltipIcon__cjkpF",checkboxHasLabel:"Checkbox_checkboxHasLabel__IC4ar"}}},e=>{e.O(0,[4001,2762,904,5046,636,6593,8792],()=>e(e.s=50515)),_N_E=e.O()}]);
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.