1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2769],{6094:function(e,t,n){"use strict";var i,s=n(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){return s.createElement("svg",a({width:25,height:25,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=s.createElement("rect",{x:.5,y:.5,width:24,height:24,rx:4.5,fill:"#F2F5FF",stroke:"#214AB3"})))}},49008:function(e,t,n){"use strict";var i,s,a=n(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){return a.createElement("svg",r({width:25,height:25,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=a.createElement("rect",{x:.5,y:.5,width:24,height:24,rx:4.5,fill:"#FFF",stroke:"#214AB3"})),s||(s=a.createElement("path",{d:"m6 13.417 5.417 5.416L19.5 7",stroke:"#214AB3",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}},5821:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/notifications",function(){return n(57206)}])},61215:function(e,t,n){"use strict";var i=n(85893),s=n(67294),a=n(6094),r=n(49008);t.Z=(0,s.memo)(function(e){let{title:t,onChange:n,value:s,children:l,styleWrap:c,id:o,disabled:u,isError:h}=e;return(0,i.jsx)("div",{className:"input-item__wrap input-item__wrap_checkbox",style:c,children:(0,i.jsxs)("label",{htmlFor:o,children:[(0,i.jsx)("div",{style:{marginRight:8},children:s?(0,i.jsx)(r.Z,{width:"28",height:"28"}):(0,i.jsx)(a.Z,{width:"28",height:"28",style:{color:h?"":"#214AB3"}})}),(0,i.jsx)("input",{disabled:u,checked:s,onChange:n,type:"checkbox",id:o}),t,null!=l?l:null]})})})},57206:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var i=n(85893);n(17717);var s=n(6388),a=n(50319),r=n(67294),l=n(15580),c=n(7588),o=n(58829),u=n(61215),h=n(59168),d=(0,r.memo)(()=>{let e=(0,o.T)();(0,c.a)({redirectTo:"/auth"});let{data:t}=(0,s.aM)(l.P9),n=null==t?void 0:t.notificationsSettings,d=(0,r.useMemo)(()=>void 0===n?[]:[{titleGroup:"advertising",machineName:"ADVERTISING",types:["email"]},{titleGroup:"reminders",machineName:"REMINDERS",types:["email"]},{titleGroup:"sittersNearby",machineName:"SITTERS_NEARBY",types:["email"]}].map(e=>{let t=e.types.reduce((t,i,s)=>{let a=n.find(t=>t.machine_name===e.machineName);return a&&t.push({key:s,id:a.id,machineName:a.machine_name,title:i,value:a[i],type:i}),t},[]);return{...e,data:t}}).filter(e=>e.data.length),[n]),[m]=(0,a.D)(l.DJ,{refetchQueries:["GET_NOTIFICATIONS_SETTINGS"],awaitRefetchQueries:!0}),v=(0,h.z)(async e=>{await m({variables:{input:e}})});return(0,i.jsx)("div",{className:"account-settings__notifications",children:(0,i.jsx)("div",{className:"row",children:(0,i.jsx)("div",{className:"col-md-12 col-lg-12 col-xl-12 pr-4",children:(0,i.jsx)("div",{className:"account-settings__notifications-block setting",children:null==d?void 0:d.map((t,n)=>{var s;return(0,i.jsxs)("div",{className:"item",children:[(0,i.jsx)("div",{className:"setting__title",children:e(t.titleGroup)}),null==t?void 0:null===(s=t.data)||void 0===s?void 0:s.map((t,n)=>{let{id:s,value:a,type:r,title:l}=t;return(0,i.jsx)(u.Z,{className:"setting__title",onChange:()=>v({id:s,[r]:!a}),value:a,children:(0,i.jsx)("div",{children:e(l)})},n)})]},n)})})})})})}),m=n(61925),v=n(50013),f=n(18676),p=n(7257),g=n(27409);function x(){var e;let t=(0,o.T)();return(0,c.a)({redirectTo:"/auth"}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.Z,{title:"FanClaws | ".concat(t("account")," ").concat(null===(e=t("page"))||void 0===e?void 0:e.toLowerCase())}),(0,i.jsxs)("div",{className:"full-height",children:[(0,i.jsx)(v.Z,{}),(0,i.jsx)("main",{className:"main-content",children:(0,i.jsxs)("div",{className:"container",children:[(0,i.jsx)(g.Z,{links:{"#":t("account_settings")}}),(0,i.jsx)("div",{className:"account-page",children:(0,i.jsxs)(p.Z,{children:[(0,i.jsx)("h1",{children:t("notifications")}),(0,i.jsx)(d,{})]})})]})}),(0,i.jsx)(m.Z,{})]})]})}}},function(e){e.O(0,[7125,7683,1925,8541,9774,2888,179],function(){return e(e.s=5821)}),_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.