1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d0b04965-4b0d-50c0-8c65-02e84f72c553")}catch(e){}}(); 3(self.webpackChunkclient=self.webpackChunkclient||[]).push([["4828"],{32066(e,s,t){t.d(s,{A:()=>p});var i=t(42062),a=t(96488),o=t(78186),r=t(99870),n=t.n(r),l=t(31085);class c extends i.Component{constructor(){super(...arguments),this.change=e=>{this.props.setValue(e.target.checked),this.props.onChange&&this.props.onChange(e)}}componentDidMount(){"boolean"==typeof this.props.defaultChecked&&this.props.setValue(this.props.defaultChecked)}render(){var e=n()(this.props.className,{invalid:this.props.showError()});return(0,l.jsxs)("label",{className:n()("checkbox-wrapper",this.props.textStyle),children:[(0,l.jsx)("input",{name:this.props.name,className:e,type:"checkbox",onChange:this.change,defaultChecked:this.props.defaultChecked}),this.props.label?(0,l.jsx)("span",{className:"checkbox-label-wrapper",children:(0,l.jsx)(o.X,{href:this.props.label})}):null]})}}c.displayName="Checkbox";let p=(0,a.N$)(c)},48167(e,s,t){t.r(s),t.d(s,{EmailSubscriptions:()=>g});var i=t(42062),a=t(66691),o=t(87902),r=t(91317),n=t(98153),l=t(51703),c=t(78186),p=t(32066),m=t(26510),h=t(31085),d=t(82620).A;let u=(0,i.memo)(e=>{var{onSaveButtonClick:s,emailSubscriptions:t}=e,a=(0,i.useMemo)(()=>(0,m.UX)(t),[t]);return(0,h.jsxs)(d,{className:"subscriptions-email",onValidSubmit:s,children:[(0,h.jsx)("div",{className:"subscriptions-email_subscriptions-list",children:Object.keys(a).map(e=>{var s=!!a[e];return(0,h.jsx)(p.A,{name:e,defaultChecked:s,textStyle:"plain-text",label:"/notifications/email/settings#email-notification-"+e},"subscription-item-"+e)})}),(0,h.jsx)("div",{className:"button-section",children:(0,h.jsx)(l.A,{className:"button approve submitter",children:(0,h.jsx)(c.X,{href:"/notifications/email/settings#email-notifications-setting-action-confirm"})})})]})});var b=t(15782),f=t(75841),v=["offlineMessageFromNonFavorite","offlineMessageFromFavorite","letterFromNonFavorite","letterFromFavorite","birthdayCredits","messagesDigest"],x=v.filter(e=>"birthdayCredits"!==e),g=(0,i.memo)(e=>{var{ownerId:s}=e,t="services"===(0,a.J2)(()=>s?o.t.shared().model(s):(0,f.of)(void 0),[s])?x:v,l=(0,a.J2)(()=>s?r.P.shared(s).settings:(0,f.of)({}),[s],{}),c=(0,i.useMemo)(()=>Object.keys(l).filter(e=>t.indexOf(e)>-1).sort((e,s)=>t.indexOf(e)-t.indexOf(s)).reduce((e,s)=>(e[s]=l[s],e),{}),[l,t]),p=(0,b.A)("notifications/email/settings","email-notification-settings-saved"),d=(0,i.useCallback)(e=>{var t=Object.assign({},l,(0,m.Gv)(e));r.P.shared(s).update(t).safeSubscribe(),n.A.emit("command.system-message.send","info",p),n.A.emit("command.overlay.closeall")},[l,p,s]);return(0,h.jsx)(u,{emailSubscriptions:c,onSaveButtonClick:d})})}}]); 4//# sourceMappingURL=sourcemaps/b23a62babd7812a2.js.map 5//# debugId=d0b04965-4b0d-50c0-8c65-02e84f72c553
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.