1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3421],{10864:e=>{e.exports={"apple-del":"ITunesDelete_apple-del__7MpHH",btn:"ITunesDelete_btn__DVV__",switch:"ITunesDelete_switch__DyK3r",slideBtn:"ITunesDelete_slideBtn__Ehajt",slider:"ITunesDelete_slider__cENSf"}},32020:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/account/delete",function(){return s(63281)}])},63281:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>b,default:()=>S});var n=s(37876),l=s(95062),i=s.n(l),a=s(67655),r=s(86791),c=s(77328),u=s.n(c),o=s(47588),d=s(14232),p=s(89099),h=s(86006),_=s(10864),w=s.n(_);function m(e){let{status:t}=e,s="";return(s=t?"Your request has been received.":"We were unable to process your request. Please contact customer support at 1-800-NEWSDAY (1-800-639-7329)",null!==t)?(0,n.jsx)("div",{className:"confirmMsg",children:(0,n.jsx)("p",{children:s})}):null}m.propTypes={status:i().bool.isRequired};var j=s(86723),x=s(79752);function f(e){let{setStatus:t}=e,[s,l]=(0,d.useState)(["switch"]),[i,a]=(0,d.useState)(["btn"]);return(0,n.jsxs)("form",{onSubmit:e=>{let s;e.preventDefault(),s="https://tools.newsday.com",/stage|local/i.test(window.location.href)&&(s="https://stage.tools.newsday.com"),fetch("".concat(s,"/cancellation/api/delete"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:window.nd_user.info.get("email")})}).then(e=>e.json()).then(e=>{t(e.success)}).catch(e=>{x.A.error(">> Error submitting >> ",e),t(!1)})},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:"I understand that my Newsday account will be permanently removed."}),(0,n.jsxs)("label",{id:"switch",className:(0,j.A)(w(),s),children:[(0,n.jsx)("input",{id:"slideBtn",type:"checkbox",name:"slideBtn",onClick:e=>{s.includes("active")?(l(["switch"]),a(["btn"])):(l(["switch","active"]),a(["btn","active"]))}}),(0,n.jsx)("span",{className:(0,j.A)(w(),["slider"])})]})]}),(0,n.jsx)("button",{type:"submit",className:(0,j.A)(w(),i),disable:i.includes("active"),children:"Delete My Account"}),(0,n.jsx)("p",{children:"*This will not cancel your current digital subscription. You must cancel through the app store."})]})}function y(e,t){var s,n;let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;l+=1,(null==(n=window.nd_user)||null==(s=n.info)?void 0:s.get("email"))?e(!1):l<12?setTimeout(()=>{y(e,t,l)},250):(e(!1),t(!1))}function v(e){var t,s;let{data:l,release:i}=e,[c,_]=(0,d.useState)(!0),[j,x]=(0,d.useState)(null),v=(0,p.useRouter)();return(0,d.useEffect)(()=>{var e,t;y(_,x);let s=()=>y(_,x);return null==(t=window.nd_user)||null==(e=t.on)||e.call(t,"nd_user_data_populated",s),()=>{var e,t;null==(t=window.nd_user)||null==(e=t.off)||e.call(t,"nd_user_data_populated",s)}},[v.asPath]),(0,n.jsx)(r.IS,{value:{data:l,release:i,isError:!1,isApp:!0,skipFooter:!0},children:(0,n.jsxs)(r.Ss,{children:[(0,n.jsx)(u(),{children:(0,n.jsx)("title",{children:"iTunes account delete - Newsday"})}),(0,n.jsx)("main",{className:"container",children:(0,n.jsx)("article",{className:(0,a.StyleSelector)(w(),["login"]),children:(0,n.jsx)("div",{className:(0,a.StyleSelector)(w(),["primary"]),children:(0,n.jsxs)("div",{className:(0,a.StyleSelector)(w(),["apple-del"]),children:[c&&(0,n.jsx)(h.A,{type:"triple_spinner"}),!c&&(null==(s=window.nd_user)||null==(t=s.info)?void 0:t.get("email"))&&null===j&&(0,n.jsx)(f,{setStatus:x}),!c&&null!==j&&(0,n.jsx)(m,{status:j})]})})})}),(0,n.jsx)(o.A,{})]})})}f.propTypes={setStatus:i().func.isRequired},v.propTypes={data:i().object.isRequired,release:i().string};var b=!0;let S=v}},e=>{e.O(0,[8522,8513,6618,4194,8622,749,636,6593,8792],()=>e(e.s=32020)),_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.