1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[125],{"//lB":function(e,t,n){"use strict";var r=n("ggb3"),s=n.n(r).a.create({baseURL:"https://admin.colaborator.com/api/",withCredentials:!0,headers:{"Cache-Control":"no-cache",token:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",Accept:"application/json","Content-Type":"application/json"}});t.a=s},BjUn:function(e,t,n){"use strict";n.r(t);var r=n("jg1C"),s=n("IebI"),c=n.n(s),i=n("O+IG"),a=n("LHL8"),o=n("mstN"),u=n("dOnG"),l=n("Bkb1"),b=n("ERkP"),d=n.n(b),m=n("//lB"),j=n("FO22");function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h="";var f=function(e){var t=Object(l.useRouter)(),n=d.a.useState({SitewideCommunication:!1,ColaboratorNewsletter:!1}),s=Object(o.a)(n,2),p=s[0],f=s[1],g=function(e){f(O(O({},p),{},Object(a.a)({},e.target.name,e.target.checked)))},x=d.a.useState(),w=Object(o.a)(x,2),v=w[0],y=w[1];Object(b.useEffect)((function(){m.a.get("v3/settings/unsubscribe/".concat(t.query.id)).then((function(e){var t,n;y(null===e||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.me)||void 0===n?void 0:n.id)}))}),[t.query.id]);var N=d.a.useState({error:!1,success:!1}),C=Object(o.a)(N,2),k=C[0],P=C[1],_=function(){var e=Object(i.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.a.put("v3/settings/unsubscribe/".concat(v),{user:{subscription:p.SitewideCommunication,newsletter:p.ColaboratorNewsletter}}).then((function(e){1==e.data.success?(h=e.data.message,P(O(O({},k),{},{error:!1,success:!0}))):0==e.data.success&&(h="Invalid user id",P(O(O({},k),{},{error:!0})))}),(function(e){console.log(e,"errrrrrrrr")}));case 2:e.sent;case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(r.jsxs)("div",{id:"Unsubscribe",children:[Object(r.jsx)(u.f,{className:"container",children:Object(r.jsxs)(u.u,{container:!0,children:[Object(r.jsx)(u.u,{item:!0,xs:12,sm:12,md:12,lg:12,children:Object(r.jsx)("div",{className:"Image",children:Object(r.jsx)("img",{src:"/images/logos/colab-logo-header.png"})})}),Object(r.jsx)(u.u,{item:!0,xs:12,sm:12,md:12,lg:12,children:Object(r.jsx)(u.V,{className:"heading",children:'Please confirm your unsubscribe request by making your selection(s) below and clicking the "Unsubscribe" button.'})}),Object(r.jsx)(u.u,{item:!0,xs:1,sm:1,md:1,lg:1,children:Object(r.jsx)(u.g,{checked:p.SitewideCommunication,onChange:g,inputProps:{"aria-label":"primary checkbox"},name:"SitewideCommunication"})}),Object(r.jsx)(u.u,{item:!0,xs:11,sm:11,md:11,lg:11,className:"textAlign",children:Object(r.jsxs)(u.V,{className:"sub-heading",children:[" Sitewide Communication ",Object(r.jsx)("span",{className:"details",children:"- Unsubscribe from email alerts for all sitewide communication (e.g. job recommendations, personal recommendations, private messages, etc.)"})]})}),Object(r.jsx)(u.u,{item:!0,xs:1,sm:1,md:1,lg:1,children:Object(r.jsx)(u.g,{checked:p.ColaboratorNewsletter,onChange:g,inputProps:{"aria-label":"primary checkbox"},name:"ColaboratorNewsletter"})}),Object(r.jsx)(u.u,{item:!0,xs:11,sm:11,md:11,lg:11,className:"textAlign",children:Object(r.jsxs)(u.V,{className:"sub-heading",children:[" Colaborator Newsletter ",Object(r.jsx)("span",{className:"details",children:"- Unsubscribe from only periodic updates from Colaborator about job openings and events."})]})}),Object(r.jsx)(u.u,{item:!0,xs:12,sm:12,md:12,lg:12,children:Object(r.jsx)(u.d,{className:"submit",onClick:_,children:"Unsubscribe"})})]})}),h&&Object(r.jsx)(j.a,{error:k.error,success:k.success,message:h,closeAlert:function(e){e||(h="",P(O(O({},k),{},{error:!1,success:!1})))}})]})};t.default=function(e){return Object(r.jsx)("div",{children:Object(r.jsx)(f,{})})}},Bkb1:function(e,t,n){e.exports=n("7xIC")},"O+IG":function(e,t,n){"use strict";function r(e,t,n,r,s,c,i){try{var a=e[c](i),o=a.value}catch(u){return void n(u)}a.done?t(o):Promise.resolve(o).then(r,s)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(s,c){var i=e.apply(t,n);function a(e){r(i,s,c,a,o,"next",e)}function o(e){r(i,s,c,a,o,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return s}))},kHbR:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/unsubscribe/[id]",function(){return n("BjUn")}])}},[["kHbR",0,1,2,3,4,5,6,7]]]);
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.