PageSourceSearch

https://customer.deletemyinfo.com/static/js/258.2b632c55.chunk.js

js deletemyinfo.com collected 2026-10-05 19:54:43 UTC 40,551 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkdelete_me_now=self.webpackChunkdelete_me_now||[]).push([[258],{56617(e,a,t){var i=t(22499);t.d(a,["E",0,e=>({type:i.oM,payload:e})])},96538(e,a,t){t.d(a,{xS:()=>c,SN:()=>o,XR:()=>r,M5:()=>d});var i=t(34345);const n="https://api.deletemyinfo.com";var s=t(17862),l=t(34588);const r=async(e,a)=>"PAYPAL"===a?await(async e=>{try{return await i.A.get("".concat(n,"/paypal/subscription/").concat(e))}catch(s){var a,t;return{error:!0,errMsg:null===(a=s.response)||void 0===a||null===(t=a.data)||void 0===t?void 0:t.message}}})(e):await(0,s.c1)(e),o=async(e,a)=>"PAYPAL"===a?await(async e=>{try{return await i.A.get("".concat(n,"/paypal/subscription/getInvoice/").concat(e))}catch(s){var a,t;return{error:!0,errMsg:null===(a=s.response)||void 0===a||null===(t=a.data)||void 0===t?void 0:t.message}}})(e):await(0,s.x$)(e),c=async(e,a,t,i)=>(0,l.LZ)({id:e,isDeleted:a,loginBy:t,cancelNote:i}),d=async e=>"PAYPAL"===e.paymentPlatform?await(async(e,a)=>{try{return await i.A.post("".concat(n,"/paypal/subscription/upgradeDowngrade"),{subscriptionId:e,planId:a})}catch(l){var t,s;return{error:!0,errMsg:null===(t=l.response)||void 0===t||null===(s=t.data)||void 0===s?void 0:s.message}}})(e.subscriptionId,e.planId):await(0,s.th)(e)},17862(e,a,t){var i=t(34345),n=t(96128);const s="https://api.deletemyinfo.com";t.d(a,["F9",0,async(e,a,t,n,l,r,o)=>{try{return await i.A.post("".concat(s,"/admin/subscriptions/update"),{customerId:e,paymentMethodId:a,invoiceId:t,subscriptionId:n,loginBy:l,note:r,isPrivacyGift:o})}catch(m){var c,d;return{error:!0,errMsg:null===(c=m.response)||void 0===c||null===(d=c.data)||void 0===d?void 0:d.message}}},"Xx",0,async e=>{try{return await i.A.get("".concat(s,"/admin/subscriptions/payments/").concat(e))}catch(n){var a,t;return{error:!0,errMsg:null===(a=n.response)||void 0===a||null===(t=a.data)||void 0===t?void 0:t.message}}},"c1",0,async e=>{try{return await i.A.get("".concat(s,"/admin/subscriptions/subscription/").concat(e))}catch(n){var a,t;return{error:!0,errMsg:null===(a=n.response)||void 0===a||null===(t=a.data)||void 0===t?void 0:t.message}}},"eY",0,async e=>{try{return await i.A.post("".concat(s,"/admin/subscriptions/create"),e)}catch(n){var a,t;return{error:!0,errMsg:null===(a=n.response)||void 0===a||null===(t=a.data)||void 0===t?void 0:t.message}}},"gZ",0,async e=>{try{return await i.A.post("".concat(s,"/admin/gift/subscriptions/create"),e)}catch(n){var a,t;return{error:!0,errMsg:null===(a=n.response)||void 0===a||null===(t=a.data)||void 0===t?void 0:t.message}}},"kZ",0,async(e,a)=>{try{return await i.A.get("".concat(s,"/admin/subscriptions/coupon/get/").concat(e).concat(a?"?".concat((0,n.qs)(a)):""))}catch(r){var t,l;return{error:!0,errMsg:null===(t=r.response)||void 0===t||null===(l=t.data)||void 0===l?void 0:l.message}}},"qI",0,async e=>{try{return await i.A.post("".concat(s,"/stripe/subscription/addNDNCR"),e)}catch(n){var a,t;return{error:!0,errMsg:null===(a=n.response)||void 0===a||null===(t=a.data)||void 0===t?void 0:t.message}}},"th",0,async e=>{try{return await i.A.post("".concat(s,"/stripe/subscription/upgradeDowngrade"),e)}catch(n){var a,t;return{error:!0,errMsg:null===(a=n.response)||void 0===a||null===(t=a.data)||void 0===t?void 0:t.message}}},"x$",0,async e=>{try{return await i.A.get("".concat(s,"/admin/subscriptions/invoices/").concat(e))}catch(n){var a,t;return{error:!0,errMsg:null===(a=n.response)||void 0===a||null===(t=a.data)||void 0===t?void 0:t.message}}}])},11821(e,a,t){var i=t(89379),n=t(5544),s=t(65043),l=t(96128);t.d(a,["M",0,function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const o=(0,s.useState)(""),c=(0,n.A)(o,2),d=c[0],m=c[1];(0,s.useEffect)(()=>{m(e)},[e,m]);const u=(e,a)=>{switch(e){case"email":return a?(0,l.B9)(a)?"":"invalidEmail":"enterEmail";case"password":return a?"":"enterPassword";default:return""}};return{value:d,onChange:e=>{m(""===e.target.value.trim()?e.target.value.trim():e.target.value),null!==a&&t(a=>(0,i.A)((0,i.A)({},a),{},{[r]:u(e.target.name,e.target.value)}))}}},"Z",0,e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():""])},36901(e,a,t){var i=t(5544),n=t(65043),s=t(89577),l=t(70579);t.d(a,["n",0,e=>e?(0,l.jsx)(s.K9,{format:"(###) ###-####",value:e,displayType:"text"}):"-","q",0,e=>
1{const a=(0,n.useState)(""),t=(0,i.A)(a,2),s=t[0],l=t[1];(0,n.useEffect)(()=>{l(e)},[e,l]);return{value:s,onValueChange:e=>{l(e.value)}}}])},28962(e,a,t){var i=t(5544),n=t(65043),s=t(90826),l=t(81349),r=t(3845),o=t(62739),c=t(49935),d=t(70579);const m=()=>{const e=(0,n.useContext)(s.IC),a=(0,i.A)(e,2),t=a[0],m=a[1],u=async e=>{var a;m(null===e||void 0===e||null===(a=e.target)||void 0===a?void 0:a.value)};return(0,d.jsxs)(c.A,{children:[(0,d.jsx)(o.A,{className:"text-nowrap",children:"en"===t?"English":"Spanish"}),(0,d.jsxs)(r.A,{end:!0,className:"p-0",children:[(0,d.jsx)(l.A,{value:"en",onClick:u,children:"English"}),(0,d.jsx)(l.A,{value:"es",onClick:u,children:"Spanish"})]})]})};t.d(a,["A",0,m])},78424(e,a,t){t.d(a,{A:()=>V});var i=t(89379),n=t(5544),s=t(65043),l=t(73216),r=t(15447),o=t(50537),c=t.n(o),d=t(54420),m=t(19473),u=t(97),p=t(11821),v=t(72679),h=t(6221),x=t(12327),f=t(22345),g=t(52640),y=t(97550),A=t(7493),b=t(49157),j=t(35299),w=t(18353),N=t(74862),I=t(81972),S=t(90826),C=t(63393),P=t(17862),E=t(34588),k=t(22499),D=t(36901),M=t(59949),R=t(18254),_=t(61963),L=t(70579);const O=function(e){const a=e.createSubscription,t=e.onApprove,i=e.catchError,n=e.onError,s=e.onCancel,l=e.onClick,r=k.ON.CLIENT_ID;return(0,L.jsx)(_.O,{createSubscription:(e,t)=>a(e,t),onApprove:(e,a)=>t(e,a),onError:e=>n(e),catchError:e=>i(e),onCancel:e=>s(e),onClick:()=>l(),options:{clientId:r,vault:!0},style:{shape:"rect",color:"gold",layout:"horizontal",label:"subscribe",height:38}})},G=t.p+"static/media/paypal.9737d96dcfcda95993f4.png";var T=t(89577);const F=t.p+"static/media/card.2af49cb8c69e7a51567e.png";var q=t(83003),B=t(56617),Y=t(28962),Z=t(96538),z=t(82170);const U=t.p+"static/media/privacy-gift.9db97f3ec13c62fa95d7.png";var W=t(60184);const $=e=>{var a;const t=(0,C.useStripe)(),o=(0,q.wA)(),I=(0,C.useElements)(),_=(0,s.useContext)(S.IC),$=(0,n.A)(_,1)[0],V=(0,l.Zp)(),H=(0,l.zy)(),K=new URLSearchParams(H.search).get("id"),X=(0,u.A)(),Q=(e,a)=>X.formatMessage({id:e},a),J=(0,s.useState)(""),ee=(0,n.A)(J,2),ae=ee[0],te=ee[1],ie=(0,s.useState)(!1),ne=(0,n.A)(ie,2),se=ne[0],le=ne[1],re=(0,s.useState)(!1),oe=(0,n.A)(re,2),ce=oe[0],de=oe[1],me=(0,s.useState)(!1),ue=(0,n.A)(me,2),pe=ue[0],ve=ue[1],he=(0,s.useState)(!1),xe=(0,n.A)(he,2),fe=xe[0],ge=xe[1],ye=(0,s.useState)(!1),Ae=(0,n.A)(ye,2),be=Ae[0],je=Ae[1],we=(0,s.useState)(!0),Ne=(0,n.A)(we,2),Ie=Ne[0],Se=Ne[1],Ce=(0,s.useState)(!1),Pe=(0,n.A)(Ce,2),Ee=Pe[0],ke=Pe[1],De=(0,s.useState)(!1),Me=(0,n.A)(De,2),Re=Me[0],_e=Me[1],Le=(0,s.useState)(0),Oe=(0,n.A)(Le,2),Ge=Oe[0],Te=Oe[1],Fe=(0,s.useState)(null),qe=(0,n.A)(Fe,2),Be=qe[0],Ye=qe[1],Ze=(0,s.useState)(null),ze=(0,n.A)(Ze,2),Ue=ze[0],We=ze[1],$e=(0,s.useState)({}),Ve=(0,n.A)($e,2),He=Ve[0],Ke=Ve[1],Xe=(0,s.useState)(window.innerWidth<992),Qe=(0,n.A)(Xe,2),Je=Qe[0],ea=Qe[1],aa=(0,s.useState)(),ta=(0,n.A)(aa,1)[0],ia=(0,s.useState)(!1),na=(0,n.A)(ia,2),sa=na[0],la=na[1],ra=(0,s.useState)(!1),oa=(0,n.A)(ra,2),ca=oa[0],da=oa[1],ma=(0,s.useState)(!1),ua=(0,n.A)(ma,2),pa=ua[0],va=ua[1],ha=(0,s.useState)({}),xa=(0,n.A)(ha,2),fa=xa[0],ga=xa[1],ya=(0,s.useState)({}),Aa=(0,n.A)(ya,2),ba=Aa[0],ja=Aa[1],wa=(0,s.useState)(!1),Na=(0,n.A)(wa,2),Ia=Na[0],Sa=Na[1],Ca=(0,s.use
1State)(!1),Pa=(0,n.A)(Ca,2),Ea=Pa[0],ka=Pa[1],Da=(0,p.M)(""),Ma=(0,p.M)(""),Ra=(0,p.M)(""),_a=(0,p.M)(""),La=(0,p.M)(""),Oa=(0,p.M)(""),Ga=(0,D.q)(""),Ta=(0,p.M)(""),Fa=(0,p.M)(""),qa=(0,p.M)(""),Ba=(0,p.M)(""),Ya=(0,p.M)(""),Za=(0,p.M)(""),za=(0,p.M)(""),Ua=(0,p.M)(""),Wa=(0,p.M)(""),$a=document.getElementById("account-information"),Va=(0,s.useState)(!1),Ha=(0,n.A)(Va,2),Ka=Ha[0],Xa=Ha[1],Qa=(0,s.useState)(!1),Ja=(0,n.A)(Qa,2),et=Ja[0],at=Ja[1],tt=(0,s.useState)(!1),it=(0,n.A)(tt,2),nt=it[0],st=it[1],lt=(0,s.useState)([]),rt=(0,n.A)(lt,2),ot=rt[0],ct=rt[1],dt=(0,s.useState)([]),mt=(0,n.A)(dt,2),ut=mt[0],pt=mt[1],vt=(0,s.useState)(),ht=(0,n.A)(vt,2),xt=ht[0],ft=ht[1];(0,s.useEffect)(()=>{e.priceId&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"detail",ecommerce:{detail:{actionField:{list:""},products:[{id:e.priceId,name:e.planName,category:e.planType,brand:"DeleteMyInfo"}]}}}))},[e.priceId,null===e||void 0===e?void 0:e.planName,null===e||void 0===e?void 0:e.planType]),(0,s.useMemo)(()=>{null!==H&&void 0!==H&&H.pathname&&-1!==(null===H||void 0===H?void 0:H.pathname.indexOf("subscriptions/gift"))&&_e(!0)},[null===H||void 0===H?void 0:H.pathname]),(0,s.useEffect)(()=>{$a&&!Re&&$a.click()},[$a]);const gt=sa&&!ca&&!pa,yt=["Your card was declined.","Your card has expired.","Your card has insufficient funds.","An error occurred while processing your card. Try again in a little bit.","Your card's security code is incorrect.","Username or Password is Wrong.","The zip code you supplied failed validation.","Your card number is invalid.","Your postal code is incomplete.","Your card's security code is incomplete."];(0,s.useEffect)(()=>{yt.includes(ae)&&le(!0),ae||le(!1)},[ae]),(0,s.useEffect)(()=>{Te(e.planPrice),At()},[e.planPrice]),(0,s.useEffect)(()=>{ce&&(o((0,B.E)((0,i.A)({},He&&{createdCustomer:(0,i.A)({_id:He._id},He.sessionGrant&&{sessionGrant:He.sessionGrant})}))),ve(!1),V("/auth/thankyou".concat("?plan="+e.queryString)))},[ce]);const At=async()=>{let a,t;if(te(""),Ua.value){const t=await(0,P.kZ)(Ua.value,{priceId:e.priceId});var i;if(!t.error&&t.data)a=t.data,Ye(null===(i=a)||void 0===i?void 0:i.percentOff),"Invalid coupon code"===ae&&te("");else te("Invalid coupon code")}if(Wa.value){const a=await(0,P.kZ)(Wa.value,{isNdncr:!0,priceId:e.priceId});var n,s;if(a.error)te("invalidNDNCRCode");else t=a.data,We(null===(n=t)||void 0===n?void 0:n.percentOff),te(null===Wa||void 0===Wa||!Wa.value||null!==(s=t)&&void 0!==s&&s.percentOff?"":"invalidNDNCRCode")}if(Ee&&!a){const a=Number(e.planPrice+e.ndcrRate).toFixed(2);if(t){const i=Number((a-t.percentOff*e.ndcrRate/100).toFixed(2));return Te(i),void Ye(null)}Te(a),Ye(null),We(null)}else if(!Ee&&a){const t=Number((e.planPrice-a.percentOff*e.planPrice/100).toFixed(2));Te(t),We(null)}else if(Ee&&a){const i=Number((e.planPrice-a.percentOff*(e.planPrice+e.ndcrRate)/100).toFixed(2));if(t){const a=Number((e.ndcrRate-t.percentOff*e.ndcrRate/100).toFixed(2));return void Te(i+a)}const n=Number(e.ndcrRate+i).toFixed(2);Te(n),We(null)}else Te(e.planPrice),Ye(null),We(null)};(0,s.useEffect)(()=>{At()},[Ee]),window.addEventListener("resize",()=>{ea(window.innerWidth<992)},!1);const bt=async(a,t)=>{if(!e.isDialog){var i;te("");if(null!==(i=(await(0,E.A3)((Oa.value||(null===fa||void 0===fa?void 0:fa.email)||(null===ba||void 0===ba?void 0:ba.email)||{}).toLocaleLowerCase())).data)&&void 0!==i&&i.isEmailExist)return void je(!0)}return t.subscription.create({plan_id:e.paypalPlanId,application_context:{shipping_preference:"NO_SHIPPING"}})},jt=()=>{Ta.value===Fa.value||e.isDialog?be&&!e.isDialog?te("Customer already exists"):te("failedCreatSubscription"):te("passwordNotMatchErr")},wt=async a=>{if(e.isDialog)e.showConfrimModal({hideDialog:!1,subscriptionId:a.subscriptionID,paymentPlatform:"PAYPAL",planId:e.paypalPlanId});else{const e=await Dt(a);if(!e)return;const t=e.data,n=t.customer,s=t.qrCodeURL,l=t.sessionGrant;Ke((0,i.A)((0,i.A)((0,i.A)({},n),s&&{qrCodeURL:s}),l&&{sessionGrant:l})),de(!0)}},Nt=a=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"checkout",ecommerce:{checkout:{actionField:{step:1},products:[{id:(null===a||void 0===a?void 0:a.productId)||e.productId,name:(null===a||void 0===a?void 0:a.planName)||e.planName,variant:(null===a||void 0===a?void 0:a.planType)||e.planType,brand:"DeleteMyInfo",quantity:1}]}}})},It=()=>{window.uetq=window.uetq||[],window.uetq.push("event",e.planName,{})},St=(a,t)=>{var i,n,s,l,r,o,c,d;const m=null===a||void 0===a||null===(i=a.latest_invoice)||void 0===i||null===(n=i.payment_intent)||void 0===n||null===(s=n.charges)||void 0===s?void 0:s.data[0];a&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"purchase",ecommerce:{transaction_id:null===m||void 0===m?void 0:m.balance_transaction,value:m,currency:"USD",revenue:(null===a||void 0===a||null===(l=a.latest_invoice)||void 0===l?void 0:l.total)/100,tax:null===a||void 0===a||null===(r=a.latest_invoice)||void 0===r?void 0:r.tax,shipping:null===m||void 0===m?void 0:m.shipping,coupon:(null===a||void 0===a||null===(o=a.latest_invoice)||void 0===o||null===(c=o.discount)||void 0===c||null===(d=c.coupon)||void 0===d?void 0:d.id)||"",purchase:{actionField:{id:null===m||void 0===m?void 0:m.balance_transaction},products:[{id:(null===t||void 0===t?void 0:t.productId)||e.productId,name:(null===t||void 0===t?void 0:t.planName)||e.planName,affiliation:"website",category:"Service Plan",variant:(null===t||void 0===t?void 0:t.planType)||e.planType,brand:"DeleteMyInfo",quantity:a.quantity,price:(null===t||void 0===t?void 0:t.planPrice)||e.planPrice}]}}}))},Ct=async()=>{ve(!0);const e=I.getElement(C.CardElement),a=await t.createPaymentMethod({type:"card",card:e}),i=a.error?"":a.paymentMethod.id;var n;return a.error?(te(null===(n=a.error)||void 0===n?void 0:n.message),void ve(!1)):i},Pt=async(e,a)=>{(null!==Da&&void 0!==Da&&Da.value||null!==fa&&void 0!==fa&&fa.given_name&&!pa)&&(e.name=(0,p.Z)((null===Da||void 0===Da?void 0:Da.value)||(null===a||void 0===a?void 0:a.fName)||(null===fa||void 0===fa?void 0:fa.given_name)).trim()),null!==Ma&&void 0!==Ma&&Ma.value&&!pa&&(e.name+=" ".concat((0,p.Z)((null===Ma||void 0===Ma?void 0:Ma.value)||(null===a||void 0===a?void 0:a.mName)).trim())),(null!==Ra&&void 0!==Ra&&Ra.value||null!==fa&&void 0!==fa&&fa.given_name&&!pa)&&(e.name+=" ".concat((0,p.Z)((null===Ra||void 0===Ra?void 0:Ra.value)||(null===a||void 0===a?void 0:a.lName)||(null===fa||void 0===fa?void 0:fa.family_name)).trim())),pa&&(e.name=null===ba||void 0===ba?void 0:ba.name);const t=await(0,P.eY)(e);return t.error?t.error?(-1!==t.errMsg.indexOf("Customer already exists")||-1!==t.errMsg.indexOf("Invalid coupon code")||-1!==t.errMsg.indexOf("card")||-1!==t.errMsg.indexOf("zip code")?te(t.errMsg):te("failedCreatSubscription"),void ve(!1)):void 0:t.data},Et=(a,t)=>{a.includes("solo-accordion-list")&&(e.setOpen("0"),e.setSubAccordionOpen(e=>(0,i.A)((0,i.A)({},e),{},{solo:"solo"+t[1].toString()}))),a.includes("double-accordion-list")&&(e.setOpen("1"),e.setSubAccordionOpen(e=>(0,i.A)((0,i.A)({},e),{},{double:"double"+t[1].toString()}))),a.includes("family-accordion-list")&&(e.setOpen("2"),e.setSubAccordionOpen(e=>(0,i.A)((0,i.A)({},e),{},{family:"family"+t[1].toString()})))},kt=e=>{if(!document.querySelector("form").checkValidity())return!0;te(""),e.preventDefault();return Re||/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()\-_=+{};:<,.>])(?=.*[^\w\d\s]).{8,}$/.test(Ta.value)?Ta.value!==Fa.value&&(te("passwordNotMatchErr"),ve(!1),!0):(te("passLimitError"),ve(!1),!0)},Dt=async a=>{const t=(()=>{const t=(0,i.A)((0,i.A)({name:[null===Da||void 0===Da?void 0:Da.value,null===Ma||void 0===Ma?void 0:Ma.value,null===Ra||void 0===Ra?void 0:Ra.value].filter(
1Boolean).map(e=>(0,p.Z)(e.trim())).join(" ")||(null===ba||void 0===ba?void 0:ba.name),fName:(0,p.Z)((null===Da||void 0===Da?void 0:Da.value)||(null===fa||void 0===fa?void 0:fa.given_name)),mName:(0,p.Z)(null===Ma||void 0===Ma?void 0:Ma.value),lName:(0,p.Z)((null===Ra||void 0===Ra?void 0:Ra.value)||(null===fa||void 0===fa?void 0:fa.family_name)),email:((null===Oa||void 0===Oa?void 0:Oa.value)||(null===fa||void 0===fa?void 0:fa.email)||(null===ba||void 0===ba?void 0:ba.email)).toLowerCase(),subscriptionId:a.subscriptionID,planId:e.paypalPlanId,paymentPlatform:"PAYPAL",language:$},pa&&{isSignUpByFacebook:!0}),ca&&{isSignUpByGoogle:!0});return Re?(0,i.A)((0,i.A)({},t),{isPrivacyGift:!0}):(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},t),{},{phone:null===Ga||void 0===Ga?void 0:Ga.value,password:null===Ta||void 0===Ta?void 0:Ta.value,street1:null===qa||void 0===qa?void 0:qa.value,street2:null===Ba||void 0===Ba?void 0:Ba.value,city:null===Ya||void 0===Ya?void 0:Ya.value,state:null===Za||void 0===Za?void 0:Za.value,zip:null===za||void 0===za?void 0:za.value},Be&&{couponCode:null===Ua||void 0===Ua?void 0:Ua.value}),Ue&&{ndcrPercentOff:Wa.value}),e.isReputation&&{isReputationPlanSubscribed:!0})})(),n=await(0,E.r2)(t);if(n.error){const e=n.errMsg;return-1!==e.indexOf("Customer already exists")||-1!==e.indexOf("Invalid coupon code")?te(e):te("internalServerErr"),void ve(!1)}return n},Mt={iconStyle:"solid",style:{tagline:!1,base:{iconColor:"#33b5e5",color:"#000000",fontWeight:400,fontSize:"16px",fontSmoothing:"antialiased",":-webkit-autofill":{color:"#263238"},"::placeholder":{color:"#212529"}},invalid:{iconColor:"#CC0000",color:"#ff4444"}}},Rt=(a,t,n,s,l,r)=>{var o,c;const d="password"===l,m=d&&("password"===t?Ia:Ea);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(v.A,(0,i.A)((0,i.A)((0,i.A)({required:s||!1,id:t,name:t},"email"===l&&{invalid:e.isFormSubmitted&&(null===(o=e.emailErrors)||void 0===o||null===(c=o.gifter)||void 0===c?void 0:c.email)}),{},{placeholder:Q(a),type:d?m?"text":l:l||"text",onKeyUp:e=>r&&r(e)},n),{},{style:{width:d?"90%":"100%"}})),d&&(0,L.jsx)("span",{className:"input-group-text d-flex justify-content-center align-items-center password-toggle",onClick:()=>(e=>{switch(e){case"password":Sa(!Ia);break;case"confirmPW":ka(!Ea)}})(t),children:m?(0,L.jsx)(W.Ny1,{}):(0,L.jsx)(W.mx3,{})})]})},_t=()=>(0,L.jsx)(O,{createSubscription:bt,onApprove:wt,catchError:jt,onError:jt,onCancel:jt,onClick:Se}),Lt=a=>(0,L.jsx)("button",{className:"btn btn-skyBlue sm-px-5 sm-fs-11 ".concat(e.isDialog&&"mr-2 mb-2"," ").concat(a&&"stripe-btn font-medium"),disabled:!t||!I||pe&&!ae||pe,onClick:a=>{var t;return e.isDialog?e.isReputation&&"active"===(null===(t=e.customer)||void 0===t?void 0:t.subscriptionStatus)?(async a=>{var t;a.preventDefault(),ve(!0);const n=e.customer,s=e.loginBy,l=e.upgradePlanName,r=e.planType;let o;if((!n.paymentId||ta&&!ta.empty&&ta.complete)&&(o=await Ct(),n.paymentId=o,!o))return;const c=n.paymentId,d=(0,i.A)((0,i.A)({loginBy:s,planType:"Start Reputation",name:n.name,email:n.email,planId:l,isUpgradeReputationPlan:!0},c&&{paymentId:c}),{},{subscriptionId:n.subscriptionId,paymentPlatform:n.paymentPlatform},"monthly"===r&&{interval:"MONTH"}),m=await(0,Z.M5)(d);if(m.error)return-1!==m.errMsg.indexOf("Failed to change plan")?void te(m.errMsg):void te(m.error);if(!m)return ve(!1),void te("failedToStartReputationPlan");te("");const u={hideDialog:!1,subscriptionId:m.id,paymentPlatform:"STRIPE",paymentId:c,customerId:n.customerId||m.customer,subscriptionStatus:m.status,planId:null===m||void 0===m||null===(t=m.plan)||void 0===t?void 0:t.id};e.showConfrimModal(u),window.location.reload()})(a):(async a=>{var t;a.preventDefault(),ve(!0);const n=e.customer;let s;if(!n.paymentId||ta&&!ta.empty&&ta.complete){if(s=await Ct(),!s)return;n.paymentId=s}const l=n.paymentId,r=(0,i.A)((0,i.A)({customerId:n.customerId},n.paymentPlatform&&{paymentPlatform:n.paymentPlatform}),{},{paymentId:l,priceId:e.priceId,planName:"isRestartPlan",email:n.email,_id:n._id},e.isReputation&&{isReputationPlanSubscribed:!0}),o=await Pt(r,n);if(!o)return ve(!1),void te("failedToRestartPlan");te("");const c={hideDialog:!1,subscriptionId:o.id,paymentPlatform:"STRIPE"};c.paymentId=l,c.customerId=n.customerId||o.customer,c.subscriptionId=o.id,c.subscriptionStatus=o.status,c.planId=null===o||void 0===o||null===(t=o.plan)||void 0===t?void 0:t.id,e.showConfrimModal(c)})(a):(async a=>{if(Re){e.setIsFormSubmitted(!0);const t=document.getElementById("checkout"),i=[];for(let e=0;e<t.elements.length;e++){const n=[...t.elements[e].parentElement.parentElement.classList],s=[...t.elements[e].classList];if(!t.elements[e].checkValidity()||s.includes("is-invalid"))return"recipientName"!==t.elements[e].name&&"recipientEmail"!==t.elements[e].name&&"deliveryDate"!==t.elements[e].name||Et(n,s),i.push(t.elements[e].name),void(s.includes("is-invalid")&&a.preventDefault());if(!s.includes("allow-without-message")&&"message"===t.elements[e].name&&!t.elements[e].value)return Et(n,s),ft(t.elements[e]),at(!0),void a.preventDefault()}if(i.length>0)return;a.preventDefault()}if(!ca&&!pa&&kt(a))return;let t;
1if(Re){const y={name:e.existingGifterCustomerId?e.gifterData.name:_a.value,email:e.existingGifterCustomerId?e.gifterData.email:La.value},A=[],b=[...e.recipientsData.solo,...e.recipientsData.double,...e.recipientsData.family];let j="";const w=async()=>{const t=new Set;await Promise.all([...b,{recipientEmail:y.email}].map(i=>t.has(i.recipientEmail)?i.recipientEmail?(j=i.recipientEmail,i):(e.setIsDuplicateEmail(""),te(""),a.preventDefault(),i):(t.add(i.recipientEmail),i)))};if(await w(),j)return e.setShowDuplicatesEmail(!0),e.setIsDuplicateEmail(j),te("duplicateRecipientEmailText"),ve(!1),void a.preventDefault();if(!b.length)return void st(!0);if(await Promise.all(b.map(async e=>{const a=await Ct();a&&(Nt(e),A.push({name:(0,p.Z)(e.recipientName),email:e.recipientEmail.toLocaleLowerCase(),paymentId:a,priceId:e.priceId,deliveryDate:e.deliveryDate,language:$,paymentPlatform:"STRIPE",isPrivacyGift:!0,message:e.message}))})),t=await(0,P.gZ)({recipientsData:A,gifterData:y,existingGifterCustomerId:e.existingGifterCustomerId}),t.error){var n,s,l;const e=null===(n=t)||void 0===n||null===(s=n.errMsg)||void 0===s?void 0:s.includes("Recipients already exists");return te(e?null===(l=t)||void 0===l?void 0:l.errMsg:"failedCreatSubscription"),void ve(!1)}if(!t.error){var r,c;if(await Promise.all(t.data.subscription.map(async(a,i)=>{It();const n=await[...e.recipientsData.solo,...e.recipientsData.double,...e.recipientsData.family].find(()=>{var a,n,s;return(null===(a=e.recipientsData[i])||void 0===a?void 0:a.recipientEmail)===(null===(n=t.data)||void 0===n||null===(s=n.customer[i])||void 0===s?void 0:s.email)});St(a,n)})),t.data&&((null===(r=t.data.errors)||void 0===r?void 0:r.length)||(null===(c=t.data.customer)||void 0===c?void 0:c.length))){var d,m,u,v,h,x,f,g;if(null!==(d=t.data.errors)&&void 0!==d&&d.length&&(await Promise.all(t.data.errors.map(e=>{e.error&&(-1!==e.error.indexOf("Recipient already exists")||-1!==e.error.indexOf("Invalid coupon code")||-1!==e.error.indexOf("card")||-1!==e.error.indexOf("zip code")?te(e.error):te("failedCreatSubscription"),ve(!1))})),null===(f=t.data)||void 0===f||null===(g=f.customer)||void 0===g||!g.length))return void ve(!1);ct(t.data.errors),pt(null===(m=t.data)||void 0===m?void 0:m.customer.map(e=>({email:e.email})));const e=(null===(u=t.data)||void 0===u?void 0:u.customer.map(e=>{let a;return Object.keys(k.kN).filter(t=>"FAMILY"===t?Object.keys(k.kN[t].YEARLY_PLANS).filter(i=>{if(k.kN[t].YEARLY_PLANS[i]===e.priceId)return a=i,i}):k.kN[t].YEAR_ID===e.priceId)[0]+(a||"")})).join(",");let a=!1;const n=null===(v=t.data)||void 0===v?void 0:v.customer.map(e=>(e.qrCodeImg&&!a&&(a=!0),(0,i.A)({email:e.email,name:e.name},e.qrCodeImg&&{qrCodeImg:e.qrCodeImg})));o((0,B.E)((0,i.A)({},(null===(h=t.data)||void 0===h?void 0:h.customer)&&(0,i.A)((0,i.A)((0,i.A)({createdCustomer:{_id:null===(x=t.data)||void 0===x?void 0:x.customer._id},isPrivacyGift:!0},K&&{isExistingGifterCustomer:!0}),{},{isQrcodeExist:a},ot&&{privacyGiftErrors:t.data.errors}),ut&&{privacyGiftSuccessData:n})))),ve(!1),V("/auth/thankyou".concat("?plan="+e))}ve(!1)}}else{const a=await Ct();if(!a)return;Nt();const n=(0,i.A)((0,i.A)((0,i.A)({fName:(0,p.Z)((null===Da||void 0===Da?void 0:Da.value)||(null===fa||void 0===fa?void 0:fa.given_name)),mName:(0,p.Z)(null===Ma||void 0===Ma?void 0:Ma.value),lName:(0,p.Z)((null===Ra||void 0===Ra?void 0:Ra.value)||(null===fa||void 0===fa?void 0:fa.family_name)),email:((null===Oa||void 0===Oa?void 0:Oa.value)||(null===fa||void 0===fa?void 0:fa.email)||(null===ba||void 0===ba?void 0:ba.email)||{}).toLocaleLowerCase()},Re?{isPrivacyGift:!0}:(0,i.A)((0,i.A)((0,i.A)((0,i.A)({phone:null===Ga||void 0===Ga?void 0:Ga.value,password:null===Ta||void 0===Ta?void 0:Ta.value,street1:null===qa||void 0===qa?void 0:qa.value,street2:null===Ba||void 0===Ba?void 0:Ba.value,city:null===Ya||void 0===Ya?void 0:Ya.value,state:null===Za||void 0===Za?void 0:Za.value,zip:null===za||void 0===za?void 0:za.value,ndncr:Ee},pa&&{isSignUpByFacebook:!0,name:null===ba||void 0===ba?void 0:ba.name}),ca&&{isSignUpByGoogle:!0}),Be&&{couponCode:Ua.value}),Ue&&{ndcrPercentOff:Wa.value&&Wa.value.toUpperCase()})),e.isReputation&&{isReputationPlanSubscribed:!0}),{},{paymentId:a,priceId:e.priceId,planName:e.planName,isTrial:e.isTrial,language:$,paymentPlatform:"STRIPE"});if(t=await Pt(n),!t)return;It(),St(t.subscription),ke(!1),Ke((0,i.A)((0,i.A)({},t.customer),t.sessionGrant&&{sessionGrant:t.sessionGrant})),o((0,B.E)((0,i.A)({},t.customer&&{createdCustomer:(0,i.A)({_id:t.customer._id},t.sessionGrant&&{sessionGrant:t.sessionGrant})}))),ve(!1),V("/auth/thankyou".concat("?plan="+e.queryString))}})(a)},children:Q(pe&&!ae?"processingBtn":"subscribeNow")});return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(h.A,{onChange:()=>{const e=document.querySelector("form").checkValidity(),a=document.getElementById("password"),t=document.getElementById("confirmPW");ge(e&&(null===a||void 0===a?void 0:a.value)===(null===t||void 0===t?void 0:t.value))},className:"checkout",id:"checkout",children:(0,L.jsxs)(x.A,{className:"bg-white ".concat(e.isDialog&&!Re||Je?"":"vh-100","\n          ").concat(Re&&!Je?"flex-row-reverse":""," ").concat(Je?"flex-column-reverse":""),children:[e.isDialog&&(0,L.jsx)(f.A,{children:(0,L.jsxs)("div",{className:"checkout-details checkout-dialog pt-0 mt-0 h-100",children:[e.content,(0,L.jsxs)(x.A,{className:"flex-column bg-white",children:[(0,L.jsx)(x.A,{children:(0,L.jsx)(f.A,{children:ae&&(0,L.jsx)("p",{className:"text-danger my-2",children:Q(ae)})})}),!e.isReputation&&(0,L.jsx)(f.A,{className:"w-100",children:(0,L.jsx)("div",{children:(0,L.jsxs)("label",{className:"font-bold text-white m-0 mt-2 mb-1",style:{fontSize:20},children:[Q("choosePaymentMethod"),":"]})})}),(0,L.jsx)(f.A,{children:(0,L.jsxs)("div",{children:[!e.isReputation&&(0,L.jsxs)(x.A,{className:"flex-row mb-3",children:[(0,L.jsx)(f.A,{xs:6,children:(0,L.jsxs)("button",{className:"btn btn-skyBlue sm-px-
15 sm-fs-11",style:{width:"100%",height:"100%",borderRadius:"11.04px"},onClick:()=>Se(e=>!e),type:"button",children:[(0,L.jsx)("p",{className:"m-0 font-bold font-16",children:Q("card")}),(0,L.jsx)("img",{src:F,className:"img-fluid w-100",height:"auto",alt:"DeleteMyInfo"})]})}),(0,L.jsx)(f.A,{xs:6,children:!Ie||ca||pa||e.isDialog?_t():(0,L.jsx)("button",{className:"btn pay-pal-btn w-100 align-items-center h-100 sm-px-5 sm-fs-11 ".concat(Ie&&"inactive"),onClick:!ca&&!pa&&kt,children:(0,L.jsx)("img",{src:G,"aria-label":"PayPal",alt:"",className:"mr-1"})})})]}),(0,L.jsxs)(g.A,{isOpen:Ie,children:[(0,L.jsxs)("div",{className:"border border-grey px-2 py-3 mb-4 bg-light shadow ".concat(e.isDialog&&"mt-4"),children:[(0,L.jsx)("h5",{className:"mb-3",children:Q("payWithCreditCard")}),(0,L.jsx)(C.CardElement,{options:Mt,className:"p-2 border border-grey",onChange:e=>{te(e.error?e.error.message:"")}})]}),(0,L.jsx)(x.A,{style:{display:"flex"},children:(0,L.jsx)(f.A,{className:"mb-2",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},xs:12,children:Lt("checkout")})})]})]})})]})]})}),!e.isDialog&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(f.A,{sm:Je?12:6,xs:12,children:(0,L.jsxs)(m.Hg,{name:"accountInfo",className:"element",children:[(!Re||Re&&!Je)&&(0,L.jsx)("div",{className:"checkout-logo",children:(0,L.jsx)("a",{href:"https://www.deletemyinfo.com/",target:"_blank",rel:"noreferrer",children:(0,L.jsx)("img",{src:M,width:"200",className:"img-fluid logo",height:"auto",alt:"DeleteMyInfo"})})}),(0,L.jsxs)("div",{className:"checkout-form w-100 form-wrapper pt-4 ".concat(!e.isDialog&&"pr-4 pl-4"," ").concat(sa?"mt-5":""),children:[(0,L.jsx)("h3",{className:"text-center",children:Q(sa?"accountInfo":Re?"signInPrivacyGift":"signIn")}),!!Re&&(0,L.jsx)("div",{className:"text-center",children:(0,L.jsx)("img",{src:U,width:"250",className:"img-fluid",height:"auto",alt:"PrivacyGift"})}),!Re&&!sa&&(0,L.jsxs)(x.A,{className:"mb-3 mb-md-5",style:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center"},children:[(0,L.jsxs)(f.A,{sm:12,md:6,className:"mt-3",children:[(0,L.jsx)(y.A,{children:Rt("email","email",Oa,!0,"email")}),ae&&(0,L.jsx)("p",{className:"text-danger my-2",children:Q(ae)}),(0,L.jsx)("button",{onClick:e=>{e.preventDefault(),null!==Oa&&void 0!==Oa&&Oa.value?(te(""),la(!0),da(!1)):te("enterEmail")},className:"btn btn-skyBlue w-100 sm-fs-11",children:Q("continue")})]}),(0,L.jsxs)(f.A,{sm:12,md:6,className:"d-flex justify-content-center align-items-center my-3",children:[(0,L.jsx)("div",{className:"devide-line"}),(0,L.jsx)("p",{className:"m-0",children:"OR"}),(0,L.jsx)("div",{className:"devide-line"})]}),(0,L.jsx)(f.A,{sm:12,md:6,className:"mb-2",children:(0,L.jsx)(r.j,{text:"signup_with",width:"255px",onSuccess:e=>{(e=>{let a=e.credential;const t=(0,d.s)(a);ga(t),da(!0),la(!0)})(e)},onError:()=>{la(!1)}})}),(0,L.jsx)(f.A,{sm:12,md:6,className:"mb-2",children:(0,L.jsx)("div",{className:"w-100",children:(0,L.jsx)(c(),{appId:"2019743071751685",fields:"name,email,picture",callback:e=>{(e=>{e.email&&(ja(e),la(!0),va(!0))})(e)},cssClass:"signUp-facebook",icon:"fa-facebook",textButton:"Sign up with Facebook",size:"metro"})})})]}),(Re||gt)&&(0,L.jsx)("label",{className:"font-bold m-0 mb-2",style:{fontSize:20,color:"#455a64"},children:e.existingGifterCustomerId?Q("paymentMethod"):Q(Re?"gifterInfo":"createAccount")}),(Re||gt)&&(e.existingGifterCustomerId?(0,L.jsx)(L.Fragment,{}):Re?(0,L.jsxs)(x.A,{children:[(0,L.jsx)(y.A,{className:"col-lg-6 col-md-6 col-sm-12 ".concat(Je?"":"pr-1"),children:Rt("name","name",_a,!0)}),(0,L.jsxs)(y.A,{className:"col-lg-6 col-md-6 col-sm-12 ".concat(Je?"":"pl-1"),children:[Rt("email","email",La,!0,"email",a=>{const t=a.target.value,n=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t);e.setEmailErrors(e=>(0,i.A)((0,i.A)({},e),{},{gifter:{email:!!t&&!n}}))}),!!e.emailErrors.gifter.email&&e.renderError("invalidEmail")]})]}):(0,L.jsxs)(x.A,{style:{paddingRight:Je?"0":"10px"},children:[(0,L.jsx)(y.A,{className:"col-lg-4 col-md-4 col-sm-12 ".concat(Je?"":"pr-1"),children:Rt("fName","fName",Da,!0)}),(0,L.jsx)(y.A,{className:"col-lg-4 col-md-4 col-sm-12 ".concat(Je?"":"pr-1"," m-name"),children:Rt("mName","mName",Ma)}),(0,L.jsx)(y.A,{className:"col-lg-4 col-md-4 col-sm-12 ".concat(Je?"":"pr-1"),children:Rt("lName","lName",Ra)})]})),gt&&(0,L.jsx)(y.A,{className:"".concat(!!Re&&"col-lg-6 col-md-6 col-sm-12"),children:Rt("email","email",Oa,!0)}),!Re&&(0,L.jsxs)(L.Fragment,{children:[" ",gt&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(y.A,{className:"position-relative",children:Rt("password","password",Ta,!0,"password")}),(0,L.jsx)(y.A,{className:"position-relative",children:Rt("confirmPassword","confirmPW",Fa,!0,"password")})]}),gt&&(0,L.jsx)("label",{className:"font-bold m-0",style:{fontSize:20,color:"#455a64"},children:Q("billingInfo")}),gt&&(0,L.jsx)(y.A,{children:(0,L.jsx)(T.K9,(0,i.A)({className:"form-control",format:"(###) ###-####",allowEmptyFormatting:!0,mask:"_",required:!0},Ga))}),gt&&(0,L.jsxs)(x.A,{children:[(0,L.jsx)(y.A,{className:"col-lg-6 col-md-6 col-sm-12 ".concat(Je?"":"pr-1"),children:Rt("address","street1",qa,!0)}),(0,L.jsx)(y.A,{className:"col-lg-6 col-md-6 col-sm-12 ".concat(Je?"":"pl-1"),children:Rt("street2","street2",Ba)})]}),gt&&(0,L.jsxs)(x.A,{children:[(0,L.jsx)(y.A,{className:"col-lg-6 col-md-6 col-sm-6 ".concat(Je?"":"pr-1"),children:Rt("city","city",Ya,!0)}),(0,L.jsx)(y.A,{className:"col-lg-6 col-md-6 col-sm-6 ".concat(Je?"":"pl-1"),children:Rt("state","state",Za,!0)})]}),(0,L.jsxs)(x.A,{children:[gt&&(0,L.jsx)(y.A,{className:"col-lg-6 col-md-6 col-sm-6 ".concat(Je?"":"pr-1"),children:Rt("zipCode","zip",za,!0,"number")}),sa&&(0,L.jsx)(y.A,{className:"col-lg-6 col-md-6 col-sm-6 ".concat(Je?"":"pl-1"),children:Rt("applyCouponCode","couponCode",Ua,!1,"text",At)})]}),!e.isReputation&&sa&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(x.A,{children:(0,L.jsxs)(y.A,{className:"col-lg-12 mb-0",children:[(0,L.jsx)(v.A,{type:"checkbox",checked:Ee,onChange:()=>ke(!Ee)}),(0,L.jsx)(N.Ay,{TransitionProps:{timeout:500},title:Q("toolTipTitle"),placement:"bottom",children:(0,L.jsx)(A.A,{variant:"contained",className:"ndcr mb-0",children:Q("addNdncr")})})]})}),(0,L.jsx)(x.A,{children:Ee&&(0,L.jsx)(y.A,{className:"col-lg-6 col-md-6 col-sm-6 mt-2  ".concat(Je?"":"pr-1"),children:Rt("applyNDNCR","ndcrCoupon",Wa,
1!1,"text",At)})})]}),sa&&(0,L.jsx)(x.A,{children:(0,L.jsxs)(f.A,{className:"mb-0",children:[(0,L.jsxs)("span",{className:"final-price font-bold",children:[Q("finalPrice"),":"]}),(0,L.jsxs)("span",{className:"pl-2 price-text",children:["$",Ge]})]})}),!e.isReputation&&sa&&(0,L.jsx)(x.A,{children:(0,L.jsx)(f.A,{className:"mb-0 font-12",children:(0,L.jsxs)("span",{children:["(",Q("monthlyCost")," = $",e.monthlyPlan,")"," ",Be?" (".concat(Be,"% ").concat(Q("off"),")"):""," ",Ee?"+ $".concat(e.ndcrRate," ").concat(Q("ndncrCharge")):""," ",Ue?" (".concat(Ue,"% ").concat(Q("off"),")"):""]})})})]}),!Ie&&(0,L.jsx)(x.A,{children:(0,L.jsx)(f.A,{children:ae&&(0,L.jsx)("p",{className:"text-danger my-2",children:Q(ae)})})}),!e.isReputation&&sa&&(0,L.jsx)(x.A,{children:(0,L.jsx)(f.A,{children:(0,L.jsxs)("label",{className:"font-bold m-0 mt-2 mb-1",style:{fontSize:20,color:"#455a64"},children:[Q("choosePaymentMethod"),":"]})})}),(Re||sa)&&(0,L.jsx)(x.A,{className:"bg-white",children:(0,L.jsxs)(f.A,{children:[(0,L.jsx)(L.Fragment,{children:!Re&&!e.isReputation&&(0,L.jsxs)(x.A,{className:"d-flex justify-content-start mb-3",children:[e.isDialog?(0,L.jsx)(f.A,{xs:6,children:Lt("checkout")}):(0,L.jsx)(f.A,{xs:6,children:(0,L.jsxs)("button",{className:"btn btn-skyBlue sm-px-5 sm-fs-11 payment-stripe-btn",style:{},onClick:()=>Se(e=>!e),disabled:Ie,type:"button",children:[(0,L.jsx)("p",{className:"m-0 font-bold font-16",children:Q("card")}),(0,L.jsx)("img",{src:F,className:"img-fluid w-100",height:"auto",alt:"DeleteMyInfo"})]})}),(0,L.jsx)(f.A,{xs:6,children:fe||ca||pa?_t():(0,L.jsx)("button",{className:"btn pay-pal-btn w-100 align-items-center h-100 sm-px-5 sm-fs-11",onClick:e=>{kt(e),Se(!1)},children:(0,L.jsx)("img",{src:G,"aria-label":"PayPal",alt:"",className:"mr-1"})})})]})}),(0,L.jsxs)(g.A,{isOpen:(!(null!==e&&void 0!==e&&null!==(a=e.customer)&&void 0!==a&&a.paymentId)&&e.isDialog||!e.isDialog)&&Ie,children:[(0,L.jsxs)("div",{className:"border border-grey px-2 py-3 bg-light shadow ".concat(ae?"":"mb-4"),children:[(0,L.jsx)("h5",{className:"mb-3",children:Q("payWithCreditCard")}),(0,L.jsx)(C.CardElement,{options:Mt,className:"".concat(se?"StripeElement StripeElement--invalid":""," p-2 border border-grey"),onChange:e=>{te(e.error?e.error.message:"")}})]}),Ie&&(0,L.jsx)(x.A,{children:(0,L.jsx)(f.A,{children:ae&&(0,L.jsx)("p",{className:"text-danger my-2",children:Q(ae)})})}),(0,L.jsx)(x.A,{style:{display:"flex"},children:(0,L.jsx)(f.A,{className:"mb-2",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},xs:12,children:Lt("checkout")})})]})]})}),e.orderSummary&&(0,L.jsxs)("div",{className:"order-summary",children:[(0,L.jsx)("hr",{}),(0,L.jsx)("h3",{className:"w-100 text-center",children:Q("orderSummary")}),e.orderSummary,(0,L.jsx)("hr",{})]}),(0,L.jsx)(x.A,{className:"mb-2",children:(0,L.jsxs)(f.A,{style:{textAlign:"center"},children:[(0,L.jsx)("p",{className:"mb-0 footer-text",children:Q("agreeBySubscribing")}),(0,L.jsx)("a",{className:"mb-0 footer-links",rel:"noreferrer",href:"http://deletemyinfo.com/terms-of-use/",target:"_blank",children:Q("termsConditions")}),(0,L.jsx)("p",{className:"mb-0 footer-text",children:Q("and")}),(0,L.jsx)("a",{className:"mb-0 footer-links",rel:"noreferrer",href:"http://deletemyinfo.com/terms-of-use/#1648208260314-a150098b-3834",target:"_blank",children:Q("privacyPolicy")})]})})]}),Re&&(0,L.jsx)("h1",{className:"w-100 text-center font-weight-bold gift-bottom-wrapper",children:Q("advertisingText")})]})}),(0,L.jsx)(f.A,{sm:Je?12:6,xs:12,children:(0,L.jsxs)("div",{className:"checkout-details h-100 d-flex flex-column ".concat(!Re&&"justify-content-between"),children:[(0,L.jsx)(m.N_,{id:"account-information",activeClass:"active",className:"accountInfo",to:"accountInfo",spy:!0,smooth:!0,duration:500}),Je||Re&&Je?(0,L.jsxs)("div",{className:"text-center pt-3 pb-2",children:[(0,L.jsx)("a",{href:"https://www.deletemyinfo.com/",target:"_blank",rel:"noreferrer",children:(0,L.jsx)("img",{src:R,width:"150",className:"img-fluid logo pb-3",height:"auto",alt:"DeleteMyInfo"})}),!Re&&(0,L.jsx)(Y.A,{})]}):"",(0,L.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[(0,L.jsx)("h1",{className:"w-100 ".concat(Je?"text-center":"text-left"," title text-white"),children:Q("orderSummary")}
1),(0,L.jsx)("div",{children:Je?"":(0,L.jsx)(Y.A,{})})]}),(0,L.jsx)("div",{className:"w-100 mb-1 ".concat(Re&&Je?"px-4":""),children:e.content}),!Re&&(0,L.jsx)("h1",{className:"w-100 text-center text-white font-weight-bold mb-5",children:Q("advertisingText")})]})})]})]})}),Ka&&(0,L.jsx)("div",{className:"position-fixed w-100 h-100 card-wrapper",children:(0,L.jsx)("div",{className:"d-flex flex-column justify-content-center align-items-center w-100 h-100 px-3 card-overlay",children:(0,L.jsxs)(b.A,{className:"shadow",style:{maxWidth:"90%",width:"500px"},children:[(0,L.jsx)(j.A,{className:"p-3",children:null!==ot&&void 0!==ot&&ot.length?"":(0,L.jsx)("img",{src:z,className:"logo d-flex align-items-end justify-content-center",alt:"Thank you"})}),(0,L.jsxs)(w.A,{children:[!(null===ot||void 0===ot||!ot.length)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("p",{className:"text-red m-0 font-weight-normal",children:"Failed subscriptions"}),(0,L.jsx)("div",{className:"border-red gift-popup-body",children:ot.map((e,a)=>(0,L.jsxs)("p",{className:"text-muted mb-1 gift-error-text font-weight-normal",children:[e.email,":"," ",(0,L.jsxs)("span",{className:"w-100 text-red font-bold",children:[" ",e.error]})]},a))})]}),!!ut.length&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("p",{className:"text-green m-0 font-weight-normal",children:"Success subscriptions"}),(0,L.jsx)("div",{className:"border-green gift-popup-body",children:ut.map((e,a)=>(0,L.jsx)("p",{className:"text-muted mb-1 gift-error-text font-weight-normal",children:e.email},a))})]}),(0,L.jsx)("div",{className:"text-right",children:(0,L.jsx)("button",{className:"btn btn-outline-danger",onClick:()=>(async()=>{if(null!==ot&&void 0!==ot&&ot.length){const a={solo:[],double:[],family:[]};Promise.all(ot.map(t=>{[...e.recipientsData.solo,...e.recipientsData.double,...e.recipientsData.family].find(e=>{t.email===e.recipientEmail&&a[e.queryString].push(e)})})),e.setRecipientsData(a)}else e.setRecipientsData({solo:[(0,i.A)({recipientName:"",recipientEmail:"",deliveryDate:"",giftSendType:{selected:"immediately"},message:"",planType:"solo"},e.plans.solo)]});Xa(!1)})(),children:Q("ok")})})]})]})})}),(!!et||!!nt)&&(0,L.jsx)("div",{className:"position-fixed w-100 h-100 card-wrapper",children:(0,L.jsx)("div",{className:"d-flex flex-column justify-content-center align-items-center w-100 h-100 px-3 card-overlay",children:(0,L.jsxs)(b.A,{className:"shadow",style:{maxWidth:"90%",width:"500px"},children:[(0,L.jsx)(j.A,{className:"p-3 bg-success text-white",children:nt?"Add Recipient":"Message is empty"}),(0,L.jsxs)(w.A,{children:[nt?(0,L.jsx)("p",{children:"You must add at least one recipient before you can proceed."}):(0,L.jsx)("p",{children:"Are you sure you want continue without message?"}),(0,L.jsxs)("div",{className:"text-right",children:[(0,L.jsx)("button",{className:"btn btn-outline-cGreen ".concat(!!et&&"mr-2"),onClick:()=>{nt?st(!1):(xt&&xt.classList.add("allow-without-message"),at(!1))},children:Q(nt?"ok":"yesBtn")}),!!et&&(0,L.jsx)("button",{className:"btn btn-outline-cGreen",onClick:()=>at(!1),children:Q("noBtn")})]})]})]})})})]})};function V(e){const a=(0,s.useState)(()=>(0,I.c)(k.qI)),t=(0,n.A)(a,1)[0];return(0,L.jsx)(C.Elements,{stripe:t,children:(0,L.jsx)($,(0,i.A)((0,i.A)({},e),{},{showConfrimModal:a=>e.showConfrimModal(a)}))})}},59949(e,a,t){e.exports=t.p+"static/media/logo-dark.50a8da85d8bc5d4ce3cc.png"},82170(e,a,t){e.exports=t.p+"static/media/thankyou.a49a88e89249f25bc7be.png"}}]);
2//# sourceMappingURL=258.2b632c55.chunk.js.map

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.