1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2701],{4897:function(e,s){s.Z={src:"/_next/static/media/cb-vip-247.68785e88.png",height:200,width:200,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA7UlEQVR42g3LPUoDURSG4XN/JgoSkRRqZaWF2Fm4ArG20srGfbgEd2AhltYBCzcgCDaCTYJi6+RnIDEz957znZP7li88Ln3fUK+/RaW+djowU4SYG4hfxoNHiiFWhDafKXQ3bp8PHZFf1a8Xpm1T0FtUkX0jujW1upu8sMIGCrkqfzr/uBxFYToy4xmnfFfEvQLHBowB9aZhx4PziLvsingwyBBZnjlJT1IK4DbEdtHUzoUno2qvW1VfjvDjPf+B/38Xs/k4QghEmELyqXf+UEHCudtU8+8n158aJQuVGlM/MYobZiGpZibySyKiNWxCne9vnXEzAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},52701:function(e,s,a){a.r(s),a.d(s,{default:function(){return M}});var n=a(85893),t=a(67294),r=a(4897),c=a(25675),i=a.n(c),o=a(41664),l=a.n(o),d=a(8023),u=a(29189),m=a(22224);function h(e){let{className:s,showForgotForm:a,showHintForm:r,handleCloseModal:c}=e,[i,o]=(0,t.useState)(""),[h,p]=(0,t.useState)(""),[g,b]=(0,t.useState)(""),[f,x]=(0,t.useState)(!1),j=(0,t.useContext)(m.z),y=async e=>{e.preventDefault(),o(""),p(""),b("");let s=e.target.cnb_user_name.value,a=e.target.cnb_password.value;if(!s&&!a)return o("Username and password are empty."),p("error"),b("error"),!1;if(!s)return o("Username is empty."),p("error"),!1;if(!a)return o("Password is empty."),b("error"),!1;x(!0);let n=await (0,d.MG)(s,btoa(a));if(n.success){let e=n.login_info;(0,u.cp)(e.access_token,e.user_email,a,e.user_subscribed,e.cancel_at_period_end,e.user_privacy_optout),x(!1),j.setIsLoggedIn(!0),j.setOpenLoginModal(!1)}else n.error_message?o(n.error_message):o("Something went wrong. Please try again!"),x(!1)};return(0,n.jsxs)("div",{className:"cnb-login-form ".concat(s),children:[(0,n.jsx)("h2",{children:"Log In"}),(0,n.jsxs)("p",{children:["Not a C&B VIP Member? ",(0,n.jsx)(l(),{href:"/cnb-sign-up",onClick:c,children:"Sign up"})]}),i&&(0,n.jsx)("p",{className:"error-msg",children:i}),(0,n.jsxs)("div",{className:"form-wrap",children:[(0,n.jsxs)("form",{onSubmit:y,className:"login-form",children:[(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("label",{htmlFor:"cnb-user-name",children:"Email"}),(0,n.jsx)("input",{type:"text",className:h,id:"cnb-user-name",name:"cnb_user_name",placeholder:"Enter your email"})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsxs)("label",{htmlFor:"cnb-password",children:["Password ",(0,n.jsx)("a",{onClick:r,children:"Get Hint"})]}),(0,n.jsx)("input",{type:"password",className:g,id:"cnb-password",name:"cnb_password",placeholder:"Enter your password"})]}),(0,n.jsx)("button",{type:"submit",className:f?"btn-submit loading":"btn-submit",children:f?(0,n.jsx)("span",{className:"cnb-spinner-loading"}):(0,n.jsx)("span",{children:"Log In"})})]}),(0,n.jsx)("a",{className:"forgot-password-link",onClick:a,children:"Forgot password?"})]})]})}var p=a(50259);function g(e){let{showLoginForm:s}=e,{executeRecaptcha:a}=(0,p.xX)(),[r,c]=(0,t.useState)(""),[i,o]=(0,t.useState)(""),[l,u]=(0,t.useState)(!1),[m,h]=(0,t.useState)(!1),g=async e=>{e.preventDefault(),c(""),o(""),u(!0);let s=e.target.cnb_email.value;if(!s)return c("Please enter a valid email."),o("error"),u(!1),!1;if(!a)return console.log("Execute recaptcha not yet available"),c("Something went wrong. Please try again!"),u(!1),!1;let n=await a("forgot_password");if(n){let e=await (0,d.HL)(n,s);e.success?h(!0):e.error_message?c(e.error_message):c("Something went wrong. Please try again!"),u(!1)}};return(0,n.jsxs)("div",{className:"cnb-lost-password-form",children:[(0,n.jsx)("h2",{children:"Forgot password"}),(0,n.jsx)("p",{children:"Enter your e-mail to receive your account information via e-mail."}),r&&(0,n.jsx)("p",{className:"error-msg",children:r}),m&&(0,n.jsx)("p",{className:"success-msg",children:"Successfully sent. Please check your inbox"}),(0,n.jsxs)("form",{onSubmit:g,className:"forgot-password-form",children:[(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("label",{htmlFor:"cnb-forgot-email",children:"Email"}),(0,n.jsx)("input",{type:"email",className:i,id:"cnb-forgot-email",name:"cnb_email",placeholder:"Enter your email",required:!1})]}),(0,n.jsx)("button",{type:"submit",className:l?"btn-submit loading":"btn-submit",children:l?(0,n.jsx)("span",{className:"cnb-spinner-loading"}):(0,n.jsx)("span",{children:"Reset Password"})})]}),(0,n.jsx)("a",{className:"back-link",onClick:s,children:"Back to login"}),(0,n.jsxs)("p",{className:"need-help",children:["Need help?"," ",(0,n.jsx)("a",{href:"https://help.clayandbuck.com/",target:"_blank",children:"Contact customer service."})]})]})}function b(e){let{showLoginForm:s}=e,{executeRecaptcha:a}=(0,p.xX)(),[r,c]=(0,t.useState)(""),[i,o]=(0,t.useState)(""),[l,u]=(0,t.useState)(!1),[m,h]=(0,t.useState)(""),g=async e=>{e.preventDefault(),c(""),o(""),u(!0);let s=e.target.cnb_email.value;if(!s)return c("Please enter a valid email."),o("error"),u(!1),!1;if(!a)return console.log("Execute recaptcha not yet available"),c("Something went wrong. Please try again!"),u(!1),!1;let n=await a("password_hint");if(n){let e=await (0,d.CB)(n,s);e.success?h(e.hint):e.error_message?c(e.error_message):c("Something went wrong. Please try again!"),u(!1)}};return(0,n.jsxs)("div",{className:"cnb-password-hint-form",children:[(0,n.jsx)("h2",{children:"Get Password Hint"}),(0,n.jsx)("p",{className:"pw-hint-note",children:"Enter your email to receive your password hint."}),r&&(0,n.jsx)("p",{className:"error-msg",children:r}),m&&(0,n.jsx)("p",{className:"success-msg password-hint",children:m}),!m&&(0,n.jsxs)("form",{onSubmit:g,className:"get-hint-form",children:[(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("label",{htmlFor:"cnb-email",children:"Email"}),(0,n.jsx)("input",{type:"email",className:i,id:"cnb-email",name:"cnb_email",placeholder:"Enter your email"})]}),(0,n.jsx)("button",{type:"submit",className:l?"btn-submit loading":"btn-submit",children:l?(0,n.jsx)("span",{className:"cnb-spinner-loading"}):(0,n.jsx)("span",{children:"Get Password Hint"})})]}),(0,n.jsx)("a",{className:"back-link",onClick:s,children:"Back to login"}),(0,n.jsxs)("p",{className:"need-help",children:["Need help?"," ",(0,n.jsx)("a",{href:"https://help.clayandbuck.com/",target:"_blank",children:"Contact customer service."})]})]})}var f=a(4696),x=a(39332),j=a(11163);function y(e){let{handleCloseModal:s}=e,[a,c]=(0,t.useState)(!0),[o,d]=(0,t.useState)(!1),[u,m]=(0,t.useState)(!1),y=(0,j.useRouter)(),w=(0,x.useSearchParams)(),v=()=>{c(!0),d(!1),m(!1),y.push("?view=login")},N=()=>{c(!1),d(!0),m(!1),y.push("?view=login&subMenu=forgotPassword")},S=w.get("subMenu");return(0,t.useEffect)(()=>{let e=async()=>{S&&"forgotPassword"===S&&N()};e()},[w.get("subMenu")]),(0,n.jsx)(p.pm,{reCaptchaKey:f.y9,scriptProps:{async:!1,defer:!0,appendTo:"body",nonce:void 0},children:(0,n.jsxs)("div",{className:"login-box",children:[(0,n.jsx)("div",{children:(0,n.jsx)(i(),{src:r.Z,width:90,height:90,alt:"Clay and Buck"})}),(0,n.jsxs)("div",{className:"login-box-content",children:[(0,n.jsx)(h,{className:a?"":"hide",showForgotForm:N,showHintForm:()=>{c(!1),d(!1),m(!0)},handleCloseModal:s}),o&&(0,n.jsx)(g,{showLoginForm:v}),u&&(0,n.jsx)(b,{showLoginForm:v})]}),(0,n.jsxs)("div",{className:"login-box-footer",children:[(0,n.jsxs)("a",{href:"javascript:Optanon.ToggleInfoDisplay();",style:{display:"flex",alignContent:"center",justifyContent:"center",gap:"4px"},children:["Your Privacy Choices ",(0,n.jsxs)("span",{style:{padding:"2px"},children:[" ",(0,n.jsx)(i(),{src:"/images/choose-your-privacy.png",alt:"privacy",width:32,height:18})]})]}),(0,n.jsx)(l(),{href:"/cnb-sign-up",onClick:s,children:"Become a C&B VIP Subscriber"})]})]})})}var w={src:"/_next/static/media/cnb-subs-logo.6e253ce9.png",height:108,width:314,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAYAAACuyE5IAAAAbklEQVR4nAFjAJz/AdfAfhcYJEwV5tq25fHnqQcOEyQFAgIM+/v7Af0EA/MAAd7CUUL//uX3+vsU8wMECPwDAgEg+vjc7gD/9gEIDC8KAejOXiIBAwn7//33/gIDAPUAAP8PCRdqDQAA/gn056bqxXksa0Z9DWIAAAAASUVORK5CYII=",blurWidth:8,blurHeight:3};function v(e){let{accountInfo:s,logOutHandle:a,showChangeEmailPassword:t,showUpdateBillingInfo:r,showUpdateSubscription:c,handleCloseModal:i}=e,o="",d="",u="",m="",h="";if(s){let e=s.subscription_plans[0];if(e){e.plan_name&&(o=e.plan_name,e.amount>0&&(o="".concat(e.plan_name," for $").concat(e.amount," (Auto-Renewal)")));let s=new Date;s.setDate(s.getDate()+e.days_remaining);let a=new Intl.DateTimeFormat("en-US",{month:"long"}).format(s);d="".concat(a," ").concat(s.getDate(),", ").concat(s.getFullYear())}let a=s.billing_info;if(a){let e=a.address,s=a.paymentMethod;a.firstName&&(u="".concat(a.firstName," ").concat(a.lastName)),e.street1&&(m="".concat(e.street1,", ").concat(e.city,", ").concat(e.region,", ").concat(e.postalCode,", ").concat(e.country)),s.cardType&&(h="".concat(s.cardType," ending ").concat(s.lastFour))}}return(0,n.jsxs)("div",{className:"account-info-box",children:[(0,n.jsxs)("div",{className:"acc-head",children:[(0,n.jsx)("h2",{children:"My A
1ccount"}),(0,n.jsxs)("p",{children:["Youâre logged in as ",(0,n.jsx)("strong",{children:u||s.email})," ",(0,n.jsx)("a",{className:"cnb-logout-link",onClick:a,children:"Log Out"})]})]}),(0,n.jsxs)("div",{className:"acc-content",children:[(0,n.jsxs)("div",{className:"row-info",children:[(0,n.jsx)("button",{className:"btn-editable",onClick:t,children:"Edit"}),(0,n.jsx)("h3",{children:"Login"}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Email:"})," ",s.email]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Password:"})," ********"]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Password Hint:"})," ",s.password_hint]})]}),(0,n.jsxs)("div",{className:"row-info",children:[h?(0,n.jsx)("button",{className:"btn-editable",onClick:r,children:"Edit"}):(0,n.jsx)("button",{className:"btn-editable disabled",children:"Edit"}),(0,n.jsx)("h3",{children:"Billing Information"}),u||m||h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Name:"})," ",u]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Address:"})," ",m]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Payment Method:"})," ",h]})]}):(0,n.jsx)("p",{className:"billing-not-found-msg",children:"We donât have your billing information on file."})]}),(0,n.jsxs)("div",{className:"row-info",children:[o||d?(0,n.jsx)("button",{className:"btn-editable",onClick:c,children:"Change or Cancel Plan"}):(0,n.jsx)(l(),{href:"/cnb-subscription/",className:"btn-editable",onClick:i,children:"Subscribe"}),(0,n.jsx)("h3",{children:"Subscriptions"}),o||d?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Plan:"})," ",o]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Next Bill:"})," ",d]})]}):(0,n.jsxs)("p",{children:["It seems like you don't have an active subscription. ",(0,n.jsx)("br",{}),"Please subscribe in order to access premium features."]})]}),(0,n.jsxs)("div",{className:"row-info gift-cnb",children:[(0,n.jsx)(l(),{href:"/cnb-give-the-gift/",className:"btn-editable",onClick:i,children:"Give the Gift"}),(0,n.jsx)("h3",{children:"Gift C&B VIP"}),(0,n.jsx)("p",{style:{maxWidth:"420px"},children:"Give the gift of C&B VIP - the only way to listen to The Clay Travis & Buck Sexton Show commercial free."})]})]})]})}var N=a(47041);function S(){let e=(0,N.getCookie)("STYXKEY_USER_EMAIL").toString(),[s,a]=(0,t.useState)(""),[r,c]=(0,t.useState)(""),[i,o]=(0,t.useState)(""),[l,u]=(0,t.useState)(!1),[m,h]=(0,t.useState)(!1),p=async s=>{s.preventDefault(),u(!1),a(""),c(""),o("");let n=s.target.cnb_new_email.value,t=s.target.cnb_password.value;if(!n&&!t)return a("Email and password are empty."),c("error"),o("error"),!1;if(!n)return a("Email is empty."),c("error"),!1;if(!t)return a("Password is empty."),o("error"),!1;h(!0);let r=await (0,d.Uk)(n,btoa(t),e);r.success?u(!0):r.error_message?a(r.error_message):a("Something went wrong. Please try again!"),h(!1)};return(0,n.jsxs)("div",{className:"change-email-form",children:[(0,n.jsxs)("div",{className:"change-row",children:[(0,n.jsx)("h2",{children:"Change Email"}),l?(0,n.jsx)("p",{className:"success-msg",children:"We've sent a confirmation to the email address you provided.Please check your email in order to complete the process."}):(0,n.jsxs)("p",{children:["To change your email address from ",(0,n.jsx)("strong",{children:e}),", enter your new email and current password below."]}),s&&(0,n.jsx)("p",{className:"error-msg",children:s})]}),!l&&(0,n.jsxs)("form",{onSubmit:p,children:[(0,n.jsx)("p",{className:"change-email-error"}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("label",{htmlFor:"cnb-new-email",children:"Email address"}),(0,n.jsx)("input",{type:"email",className:r,id:"cnb-new-email",name:"cnb_new_email","aria-describedby":"emailHelp"})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("label",{htmlFor:"cnb-password",children:"Password"}),(0,n.jsx)("input",{type:"password",className:i,id:"cnb-password",name:"cnb_password"})]}),(0,n.jsx)("button",{type:"submit",className:m?"btn-submit loading":"btn-submit",children:m?(0,n.jsx)("span",{className:"cnb-spinner-loading"}):(0,n.jsx)("span",{children:"Update"})}),(0,n.jsx)("hr",{})]})]})}function C(){let e=(0,N.getCookie)("STYXKEY_USER_EMAIL").toString(),[s,a]=(0,t.useState)(""),[r,c]=(0,t.useState)(""),[i,o]=(0,t.useState)(""),[l,u]=(0,t.useState)(""),[m,h]=(0,t.useState)(!1),[p,g]=(0,t.useState)(!1),b=async s=>{s.preventDefault(),h(!1),a(""),c(""),o(""),u("");let n=s.target.cnb_current_password.value,t=s.target.cnb_new_password.value,r=s.target.cnb_password_hint.value;if(!n&&!t&&!r)return a("Password and Hint are empty."),c("error"),o("error"),u("error"),!1;if(!n)return a("Current Password is empty."),c("error"),!1;if(!t)return a("New Password is empty."),o("error"),!1;if(!r)return a("Password Hint is empty."),u("error"),!1;if(t.length<6||t.length>32)return a("Password must be between 6-32 characters."),o("error"),!1;if(r.indexOf(t)>=0)return a("Password hint cannot contain password."),u("error"),!1;g(!0);let i=await (0,d.Cp)(e,btoa(n),btoa(t),r);i.success?h(!0):i.error_message?a(i.error_message):a("Something went wrong. Please try again!"),g(!1)};return(0,n.jsxs)("div",{className:"change-password-form",children:[(0,n.jsxs)("div",{className:"change-row",children:[(0,n.jsx)("h2",{children:"Change Password"}),m?(0,n.jsx)("p",{className:"success-msg",children:"Your account password has been successfully updated."}):(0,n.jsx)("p",{children:"To change your password, enter your current password, then your new password."}),s&&(0,n.jsx)("p",{className:"error-msg",children:s})]}),!m&&(0,n.jsxs)("form",{onSubmit:b,children:[(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("label",{htmlFor:"cnb-current-password",children:"Current Password"}),(0,n.jsx)("input",{type:"password",className:r,id:"cnb-current-password",name:"cnb_current_password","aria-describedby":"emailHelp"})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("label",{htmlFor:"cnb-new-password",children:"New Password"}
1),(0,n.jsx)("input",{type:"password",className:i,id:"cnb-new-password",name:"cnb_new_password"})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("label",{htmlFor:"cnb-password-hint",children:"Password Hint"}),(0,n.jsx)("input",{type:"text",className:l,id:"cnb-password-hint",name:"cnb_password_hint","aria-describedby":"emailHelp"})]}),(0,n.jsx)("button",{type:"submit",className:p?"btn-submit loading":"btn-submit",children:p?(0,n.jsx)("span",{className:"cnb-spinner-loading"}):(0,n.jsx)("span",{children:"Update"})})]})]})}function _(e){let{showAccInfo:s}=e;return(0,n.jsxs)("div",{className:"account-edit-box",children:[(0,n.jsx)("div",{children:(0,n.jsxs)("a",{className:"back-to-acc-info",onClick:s,children:[(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M14.5825 9.00021H3.4125L8.2925 13.8802C8.6825 14.2702 8.6825 14.9102 8.2925 15.3002C7.9025 15.6902 7.2725 15.6902 6.8825 15.3002L0.2925 8.71021C-0.0975 8.32021 -0.0975 7.69022 0.2925 7.30022L6.8725 0.700215C7.2625 0.310215 7.8925 0.310215 8.2825 0.700215C8.6725 1.09021 8.6725 1.72022 8.2825 2.11022L3.4125 7.00022H14.5825C15.1325 7.00022 15.5825 7.45021 15.5825 8.00022C15.5825 8.55021 15.1325 9.00021 14.5825 9.00021Z",fill:"#B2922C"})}),"Back to Account Settings"]})}),(0,n.jsx)(S,{}),(0,n.jsx)(C,{})]})}var A=a(81416);function P(e){let{refreshAccInfo:s,accountInfo:a,showAccInfo:r}=e,c=a.billing_info,i=c.address,o=c.paymentMethod,l="".concat(i.street1,", ").concat(i.city,", ").concat(i.region,", ").concat(i.postalCode,", ").concat(i.country),m="".concat(o.cardType," ending ").concat(o.lastFour),h=o.lastTwo?o.lastTwo:"",p="".concat(o.firstSix).concat(o.lastFour).concat(h),g=o.expYear.toString().substr(2,2),b="".concat(o.expMonth,"/").concat(g),[f,x]=(0,t.useState)(""),[j,y]=(0,t.useState)(""),[w,v]=(0,t.useState)(i.country||"US"),[S,C]=(0,t.useState)(""),[_,P]=(0,t.useState)(""),[E,k]=(0,t.useState)(""),[F,L]=(0,t.useState)(""),[I,B]=(0,t.useState)(""),[M,R]=(0,t.useState)(""),[T,U]=(0,t.useState)(""),[Y,V]=(0,t.useState)(""),[D,O]=(0,t.useState)(""),[$,H]=(0,t.useState)(!1),[K,X]=(0,t.useState)(!1),G=async e=>{e.preventDefault(),H(!1),x(""),C(""),P(""),k(""),L(""),B(""),R(""),U(""),V(""),O("");let a=(0,N.getCookie)("STYXKEY_ACCESS_TOKEN").toString(),n=e.target,t=n.cnb_card_num.value,r=n.cnb_card_exp.value,c=n.cnb_card_cvv.value,i=n.cnb_first_name.value,o=n.cnb_last_name.value,l=n.cnb_addr_1.value,m=n.cnb_addr_2.value,h=n.cnb_city.value,p=n.cnb_state.value,g=n.cnb_zip_code.value;if(!a)return x("Something went wrong. Please reload the page and try again."),!1;if(t!=t||b!=r){if(!t)return x("Please enter your Card number."),k("error"),!1;if(!r)return x("Please enter your Card expired date."),k("error"),!1;if(!c)return x("Please enter your Card CVV."),k("error"),!1;if(c.length>4)return x("Card CVV is invalid."),k("error"),!1;C("true")}if(!i)return x("Please enter your First name."),L("error"),!1;if(!o)return x("Please enter your Last name."),B("error"),!1;if(!l)return x("Please enter your Address 1."),R("error"),!1;if(!h)return x("Please enter your City."),U("error"),!1;if(!p)return x("Please enter your State."),V("error"),!1;if(!g)return x("Please enter your Zip Code."),O("error"),!1;if((0,u.j4)(g)!=p)return x("Zip Code is not correct with State."),O("error"),!1;X(!0);let f=await (0,d.Vw)({accessToken:a,country:"US",updateCard:S,cardNum:t,cardExp:r,cardCvv:c,firstName:i,lastName:o,addr1:l,addr2:m,city:h,state:p,zipCode:g});f.success?(H(!0),s()):f.error_message?x(f.error_message):x("Something went wrong. Please try again!"),X(!1)};return(0,n.jsxs)("div",{className:"account-edit-box update-billing",children:[(0,n.jsx)("div",{children:(0,n.jsxs)("a",{className:"back-to-acc-info",onClick:r,children:[(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M14.5825 9.00021H3.4125L8.2925 13.8802C8.6825 14.2702 8.6825 14.9102 8.2925 15.3002C7.9025 15.6902 7.2725 15.6902 6.8825 15.3002L0.2925 8.71021C-0.0975 8.32021 -0.0975 7.69022 0.2925 7.30022L6.8725 0.700215C7.2625 0.310215 7.8925 0.310215 8.2825 0.700215C8.6725 1.09021 8.6725 1.72022 8.2825 2.11022L3.4125 7.00022H14.5825C15.1325 7.00022 15.5825 7.45021 15.5825 8.00022C15.5825 8.55021 15.1325 9.00021 14.5825 9.00021Z",fill:"#B2922C"})}),"Back to Account Settings"]})}),(0,n.jsxs)("div",{className:"change-row",children:[(0,n.jsx)("h2",{children:"Update Billing Info"}),$?(0,n.jsx)("p",{className:"success-msg",children:"Your account has been successfully updated"}):(0,n.jsx)("p",{children:"Need to change your billing info? Enter your new billing info below"}),f&&(0,n.jsx)("p",{className:"error-msg",children:f})]}),(0,n.jsxs)("form",{onSubmit:G,className:"update-billing-form",children:[(0,n.jsx)("div",{className:"change-row location"}),(0,n.jsx)("div",{className:"cnb-update-credit-card ".concat(j),children:(0,n.jsxs)("div",{className:"credit-card-area ".concat(E),children:[(0,n.jsx)("input",{type:"text",className:"card-num",name:"cnb_card_num",defaultValue:p,placeholder:"Card number"}),(0,n.jsx)("input",{type:"text",className:"card-exp-date",name:"cnb_card_exp",defaultValue:b,placeholder:"MM/YY",maxLength:5}),(0,n.jsx)("input",{type:"text",className:"card-cvv",maxLength:4,defaultValue:"",name:"cnb_card_cvv",placeholder:"CVV"})]})}),(0,n.jsxs)("div",{className:"payment-details ".concat(j),children:[(0,n.jsx)("a",{className:"btn-editable",onClick:()=>y("show-edit-card"),children:"Edit"}),(0,n.jsx)("h2",{children:"Payment Details"}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Name: "}),"".concat(c.firstName," ").concat(c.lastName)]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Address: "}),l]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Payment Method: "}),m]})]}),(0,n.jsxs)("div",{className:"name-fields",children:[(0,n.jsxs)("div",{className:"form-group first-name",children:[(0,n.jsx)("label",{htmlFor:"cnb-first-name",children:"First Name"}),(0,n.jsx)("input",{type:"text",className:F,id:"cnb-first-name",name:"cnb_first_name",defaultValue:c.firstName,placeholder:"Enter first name"})]}),(0,n.jsxs)("div",{className:"form-group last-name",children:[(0,n.jsx)("label",{htmlFor:"cnb-last-name",children:"Last Name"}),(0,n.jsx)("input",{type:"text",className:I,id:"cnb-last-name",name:"cnb_last_name",defaultValue:c.lastName,placeholder:"Enter last name"})]})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("label",{htmlFor:"cnb-addr-1",children:"Billing Address "}),(0,n.jsx)("input",{type:"text",className:"addr-1 ".concat(M),id:"cnb-addr-1",name:"cnb_addr_1",defaultValue:i.street1,placeholder:"Address line 1"}),(0,n.jsx)("input",{type:"text",name:"cnb_addr_2",defaultValue:i.street2,placeholder:"Address line 2"})]}),(0,n.jsxs)("div",{className:"city-state-postcode",children:[(0,n.jsxs)("div",{className:"form-group city",children:[(0,n.jsx)("label",{htmlFor:"cnb-city",children:"City"}),(0,n.jsx)("input",{type:"text",className:T,id:"cnb-city",name:"cnb_city",defaultValue:i.city,placeholder:"Enter your city"})]}),(0,n.jsxs)("div",{className:"form-group state",children:[(0,n.jsx)("label",{htmlFor:"cnb-state",children:"State"}),(0,n.jsx)("select",{className:Y,name:"cnb_state",defaultValue:i.region,children:(0,A.B)(w)})]}),(0,n.jsxs)("div",{className:"form-group post-code",children:[(0,n.jsx)("label",{htmlFor:"cnb-zip-code",children:"Zip"}),(0,n.jsx)("input",{type:"text",className:D,id:"cnb-zip-code",name:"cnb_zip_code",defaultValue:i.postalCode,placeholder:"Zip code"})]})]}),(0,n.jsx)("button",{type:"submit",className:K?"btn-submit loading":"btn-submit",children:K?(0,n.jsx)("span",{className:"cnb-spinner-loading"}):(0,n.jsx)("span",{children:"Update"})})]})]})}function E(e){let{accountInfo:s,hideCanReSubs:a,showUpdateBillingInfo:r}=e,[c,i]=(0,t.useState)([]),[o,m]=(0,t.useState)(!0),[h,p]=(0,t.useState)(!1),[g,b]=(0,t.useState)(!1),[f,x]=(0,t.useState)(""),[j,y]=(0,t.useState)(""),[w,v]=(0,t.useState)(""),[S,C]=(0,t.useState)(""),[_,A]=(0,t.useState)(!1),[P,E]=(0,t.useState)(!1),k="",F="",L="",I=s.subscription_plans[0],B=I._id,M=I.plan_id,R=I.interval,T=s.billing_info;if(T){let e=T.address,s=T.paymentMethod;T.firstName&&(k="".concat(T.firstName," ").concat(T.lastName)),e.street1&&(F="".concat(e.street1,", ").concat(e.city,", ").concat(e.region,", ").concat(e.postalCode,", ").concat(e.country)),s.cardType&&(L="".concat(s.cardType," ending ").concat(s.lastFour))}
1let U="year"==R||"annual"==R.toLowerCase()?"annual":"monthly",Y=!!I.cancel_at_period_end;(0,t.useEffect)(()=>{let e=async()=>{let e=await (0,d.d_)();e.success&&i(e.plansInfo),m(!1)};return e(),()=>{}},[]);let V=(e,s,a)=>{e.target.value!=M?(b(!0),v(e.target.value),x(s),y("$".concat(a))):b(!1)},D=()=>{a(),p(!0)},O=async e=>{e.preventDefault(),E(!1),C("");let s=(0,N.getCookie)("STYXKEY_ACCESS_TOKEN").toString();if(!B||!s||!w)return C("Something went wrong. Please reload the page and try again"),!1;A(!0);let a=await (0,d.JM)(s,w,B);a.success?E(!0):a.error_message?C(a.error_message):C("Something went wrong. Please try again!"),A(!1)};return o?(0,n.jsx)("div",{className:"loading-wrapper",children:(0,n.jsx)("div",{className:"cnb-spinner-loading"})}):0==c.length?(0,n.jsx)("p",{className:"error-msg big-error-msg",children:"Something went wrong. Please reload page and try again!"}):(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("form",{onSubmit:O,children:[!h&&(0,n.jsxs)("div",{className:"cnb-update-plan-form-step",children:[(0,n.jsx)("h2",{children:"Change Plan"}),(0,n.jsx)("label",{children:"Select your plan: "}),c.length>0&&c.map((e,s)=>{if(!e.active||!1!==e.recurly_code.includes("gift"))return"";{let a=e.interval_count,t=a>1?"s":"",r=(0,u.Bb)(e.interval),c="".concat(r).concat(t),i="".concat(a," ").concat(r).concat(t),o=!!Y||!!U&&U===e.interval.toLowerCase(),l=M==e._id?"checked":"";return(0,n.jsxs)("div",{className:o?"plan-radio disabled":"plan-radio",children:[!Y&&(0,n.jsx)("input",{className:"form-checkbox",type:"radio",name:"cnb_plan_id",id:"cnb_plan_id_".concat(s+1),value:e._id,onChange:s=>V(s,i,e.amount)}),(0,n.jsxs)("label",{className:U?"form-label ".concat(l):"form-label",htmlFor:"cnb_plan_id_".concat(s+1),children:[(0,n.jsxs)("strong",{children:[i," for $",e.amount]}),(0,n.jsxs)("span",{children:["Auto-renews each ",c," until cancelled"]})]})]},s)}}),"annual"==U?(0,n.jsx)(n.Fragment,{children:g?(0,n.jsx)("div",{className:"btn",onClick:D,children:"Downgrade"}):(0,n.jsx)("div",{className:"btn disabled",children:"Downgrade"})}):(0,n.jsx)(n.Fragment,{children:g?(0,n.jsx)("div",{className:"btn",onClick:D,children:"Upgrade"}):(0,n.jsx)("div",{className:"btn disabled",children:"Upgrade"})}),(0,n.jsx)("hr",{})]}),h&&(0,n.jsxs)("div",{className:"cnb-confirm-plan-step",children:[(0,n.jsx)("div",{className:"change-row plan-confirm",children:(0,n.jsxs)("h2",{children:["Change to ",f," Plan"]})}),S&&(0,n.jsx)("p",{className:"error-msg",children:S}),P?(0,n.jsx)("p",{className:"success-msg",children:"Your subscription has been successfully changed. It may take a few minutes for your account to reflect the updates."}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"row-info",children:[(0,n.jsx)("div",{className:"btn-editable",onClick:r,children:"Edit"}),(0,n.jsx)("h3",{children:"Billing Information"}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Name: "}),k]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Address: "}),F]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Payment Method: "}),L]})]}),(0,n.jsxs)("div",{className:"row-info",children:[(0,n.jsx)("h3",{children:"What Happens Next:"}),(0,n.jsxs)("ul",{children:[(0,n.jsxs)("li",{children:["Your new ",f," plan starts today."]}),(0,n.jsxs)("li",{children:["Youâll be charged ",j," (auto renews each ",f,")."]}),(0,n.jsx)("li",{children:"Weâll apply the remainder of your current bill to your new plan."})]})]}),(0,n.jsxs)("div",{className:"declaimer",children:[(0,n.jsxs)("p",{children:["Auto renewal means your subscription will be automatically renewed using the credit card you signed up with, at the same rate, and term. You will receive an e-mail notification from C&B VIP prior to your expiration date. For C&B VIP subscribers who have selected a one-year term, an auto-renewal notice will be sent at least 30 days prior to the expiration date, at which point you will be automatically charged US ",j," every ",f," until you cancel. You will be notified prior to your automatic renewal if subscription prices change. Of course, you may cancel your subscription any time by sending an e-mail to: [email protected]. Sorry, partial months cannot be refunded"]})," ",(0,n.jsxs)("p",{children:["By subscribing you agree to Automatic Renewal as described above, our"," ",(0,n.jsx)(l(),{href:"/terms-conditions/",children:"Terms of Use"})," and"," ",(0,n.jsx)(l(),{href:"/privacy-policy/",children:"Privacy Policy."})," "]})]}),(0,n.jsx)("button",{type:"submit",className:_?"btn-submit loading":"btn-submit",children:_?(0,n.jsx)("span",{className:"cnb-spinner-loading"}):(0,n.jsx)("span",{children:"Confirm Change"})})]})]})]})})}function k(e){let{refAccInfo:s,subsId:a}=e,[r,c]=(0,t.useState)(""),[i,o]=(0,t.useState)(!1),[l,m]=(0,t.useState)(!1),h=(0,N.getCookie)("STYXKEY_ACCESS_TOKEN").toString(),p=async e=>{if(e.preventDefault(),o(!1),c(""),!a||!h)return c("Something went wrong. Please reload the page and try again"),!1;m(!0);let n=await (0,d.pW)(h,a);n.success?((0,u.LK)("STYXKEY_USER_CANCELLED_SUBS","cancelled"),o(!0),s()):n.error_message?c(n.error_message):c("Something went wrong. Please try again!"),m(!1)};return(0,n.jsxs)("div",{className:"cnb-cancel-plan",children:[(0,n.jsx)("div",{className:"change-row",children:(0,n.jsx)("h2",{children:"Cancel Subscription"})}),r&&(0,n.jsx)("p",{className:"error-msg",children:r}),i?(0,n.jsx)("p",{className:"success-msg",children:"Your account has been successfully cancelled."}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"change-row",children:(0,n.jsx)("p",{children:"Click the button below to cancel your subscription to C&B VIP. There are no partial refunds offered at this time."})}),(0,n.jsx)("form",{onSubmit:p,children:(0,n.jsx)("button",{type:"submit",className:l?"btn-submit loading":"btn-submit",children:l?(0,n.jsx)("span",{className:"cnb-spinner-loading"}):(0,n.jsx)("span",{children:"Cancel Subscription"})})})]})]})}function F(e){let{refreshAccInfo:s,accountInfo:a,showAccInfo:r,showUpdateBillingInfo:c}=e,[i,o]=(0,t.useState)(!1),[l,m]=(0,t.useState)(!0),[h,p]=(0,t.useState)(!1),[g,b]=(0,t.useState)(!1),[f,x]=(0,t.useState)(""),j=a.subscription_plans[0],y=j._id,w=async()=>{b(!1);let e=(0,N.getCookie)("STYXKEY_ACCESS_TOKEN").toString();if(!y||!e)return x("Something went wrong. Please reload the page and try again"),!1;p(!0);let a=await (0,d.EZ)(e,y);a.success?((0,u.SX)("STYXKEY_USER_CANCELLED_SUBS"),b(!0),s()):a.error_message?x(a.error_message):x("Something went wrong. Please try again!"),p(!1)};return(0,n.jsxs)("div",{className:"account-edit-box",children:[(0,n.jsx)("div",{children:(0,n.jsxs)("a",{className:"back-to-acc-info",onClick:r,children:[(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M14.5825 9.00021H3.4125L8.2925 13.8802C8.6825 14.2702 8.6825 14.9102 8.2925 15.3002C7.9025 15.6902 7.2725 15.6902 6.8825 15.3002L0.2925 8.71021C-0.0975 8.32021 -0.0975 7.69022 0.2925 7.30022L6.8725 0.700215C7.2625 0.310215 7.8925 0.310215 8.2825 0.700215C8.6725 1.09021 8.6725 1.72022 8.2825 2.11022L3.4125 7.00022H14.5825C15.1325 7.00022 15.5825 7.45021 15.5825 8.00022C15.5825 8.55021 15.1325 9.00021 14.5825 9.00021Z",fill:"#B2922C"})}),"Back to Account Settings"]})}),!i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"change-plan-form",children:(0,n.jsx)(E,{accountInfo:a,hideCanReSubs:()=>m(!1),showUpdateBillingInfo:c})}),l&&(0,n.jsx)("div",{className:"active-cancel-subs",children:j.cancel_at_period_end||g?(0,n.jsxs)(n.Fragment,{children:[!g&&(0,n.jsx)("button",{className:h?"btn-editable loading":"btn-editable",onClick:w,children:h?(0,n.jsx)("span",{className:"cnb-spinner-loading"}):(0,n.jsx)("span",{children:"Reactivate"})}),(0,n.jsx)("h2",{children:"Reactivate Subscription"}),f&&(0,n.jsx)("p",{className:"error-msg",children:f}),g?(0,n.jsx)("p",{className:"success-msg",children:"Your account has been successfully reactivated."}):(0,n.jsx)("p",{children:"Re-subscribing allows you to access C&B VIP after the current billing cycle. Your subscription will be set to auto-renew."})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{children:"Cancel Subscription"}),(0,n.jsx)("p",{children:"Canceling your subscription allows you to access C&B VIP features through the end of your current billing cycle. After that, you won't be charged again, but you also won't be able to access C&B VIP features."}),(0,n.jsx)("button",{className:"btn-cancel-subs",onClick:()=>o(!0),children:"Cancel Subscription"})]})})]}),i&&(0,n.jsx)(k,{refAccInfo:s,subsId:j._id})]})}function L(e){let{handleCloseModal:s}=e,[a,r]=(0,t.useState)(!0),[c,o]=(0,t.useState)(!1),[l,h]=(0,t.useState)(!1),[p,g]=(0,t.useState)(!1),[b,f]=(0,t.useState)(!0),[x,j]=(0,t.useState)({}),[y,S]=(0,t.useState)(!1),C=(0,t.useContext)(m.z),A=async()=>{let e=(0,N.getCookie)("STYXKEY_ACCESS_TOKEN").toString();(0,u.FX)(),C.setOpenLoginModal(!1),C.setIsLoggedIn(!1),e&&await (0,d.Bg)(e)},E=()=>{r(!0),o(!1),h(!1),g(!1)},k=()=>{r(!1),o(!1),h(!0),g(!1)},L=()=>{S(!y)};return(0,t.useEffect)(()=>{let e=async()=>{let e=(0,N.getCookie)("STYXKEY_ACCESS_TOKEN").toString();if(e){let s=await (0,d.fn)(e);Object.keys(s).length>0&&j(s),f(!1)}else f(!1)};return e(),()=>{}},[y]),(0,n.jsxs)("div",{className:"account-box",children:[(0,n.jsx)("div",{className:"header-part",children:(0,n.jsx)(i(),{src:w,alt:"Clay and Buck",width:157,height:54})}),b&&(0,n.jsx)("div",{className:"loading-wrapper",children:(0,n.jsx)("div",{className:"cnb-spinner-loading"})}),0==Object.keys(x).length&&!b&&(0,n.jsx)("p",{className:"error-msg big-error-msg",children:"Something went wrong. Please reload page and try again!"}),a&&Object.keys(x).length>0&&!b&&(0,n.jsx)(v,{accountInfo:x,logOutHandle:A,handleCloseModal:s,showChangeEmailPassword:()=>{r(!1),o(!0),h(!1),g(!1)},showUpdateBillingInfo:k,showUpdateSubscription:()=>{r(!1),o(!1),h(!1),g(!0)}}),c&&!b&&(0,n.jsx)(_,{showAccInfo:E}),l&&!b&&(0,n.jsx)(P,{refreshAccInfo:L,accountInfo:x,showAccInfo:E}),p&&!b&&(0,n.jsx)(F,{refreshAccInfo:L,accountInfo:x,showAccInfo:E,showUpdateBillingInfo:k})]})}var I=a(81069),B=a(80637);function M(e){let{isLoggedIn:s,handleCloseModal:a}=e,r=(0,t.useRef)(null);return(0,I.Z)(a),(0,B.Z)(a,r),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"modal-overlay-bg"}),(0,n.jsx)("div",{className:"login-account-modal",children:(0,n.jsx)("div",{className:"modal-wrap",children:(0,n.jsxs)("div",{className:"modal-content",ref:r,children:[s?(0,n.jsx)(L,{handleCloseModal:a}):(0,n.jsx)(y,{handleCloseModal:a}),(0,n.jsx)("button",{title:"Close (Esc)",type:"button",className:"close-modal",onClick:a,children:"\xd7"})]})})})]})}},81416:function(e,s,a){a.d(s,{B:function(){return r}});var n=a(85893),t=a(29189);let r=function(e){let s="US"==e?t.uX:t.Oq,a=[(0,n.jsx)("option",{value:"",children:"Select state..."},"EMPTY")];for(let e in s)a.push((0,n.jsx)("option",{value:e,children:s[e]},e));return a}},50259:function(e,s,a){a.d(s,{pm:function(){return m},xX:function(){return h}});var n,t=a(67294),r=a(83454),c=function(){return(c=Object.assign||function(e){for(var s,a=1,n=arguments.length;a<n;a++)for(var t in s=arguments[a])Object.prototype.hasOwnProperty.call(s,t)&&(e[t]=s[t]);return e}).apply(this,arguments)},i=function(e){var s;e?function(e){if(e)for(;e.lastChild;
1)e.lastChild.remove()}("string"==typeof e?document.getElementById(e):e):(s=document.querySelector(".grecaptcha-badge"))&&s.parentNode&&document.body.removeChild(s.parentNode)},o=function(e,s){i(s),window.___grecaptcha_cfg=void 0;var a,n=document.querySelector("#"+e);n&&n.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))&&a.remove()},l=function(e){var s=e.render,a=e.onLoadCallbackName,n=e.language,t=e.onLoad,r=e.useRecaptchaNet,c=e.useEnterprise,i=e.scriptProps,o=void 0===i?{}:i,l=o.nonce,d=void 0===l?"":l,u=o.defer,m=o.async,h=o.id,p=o.appendTo,g=(void 0===h?"":h)||"google-recaptcha-v3";if(document.querySelector("#"+g))t();else{var b,f="https://www."+((b={useEnterprise:c,useRecaptchaNet:r}).useRecaptchaNet?"recaptcha.net":"google.com")+"/recaptcha/"+(b.useEnterprise?"enterprise.js":"api.js"),x=document.createElement("script");x.id=g,x.src=f+"?render="+s+("explicit"===s?"&onload="+a:"")+(n?"&hl="+n:""),d&&(x.nonce=d),x.defer=!!(void 0!==u&&u),x.async=!!(void 0!==m&&m),x.onload=t,("body"===p?document.body:document.getElementsByTagName("head")[0]).appendChild(x)}},d=function(e){void 0===r||r.env,console.warn(e)};(n||(n={})).SCRIPT_NOT_AVAILABLE="Recaptcha script is not available";var u=(0,t.createContext)({executeRecaptcha:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")}});function m(e){var s=e.reCaptchaKey,a=e.useEnterprise,r=void 0!==a&&a,i=e.useRecaptchaNet,m=void 0!==i&&i,h=e.scriptProps,p=e.language,g=e.container,b=e.children,f=(0,t.useState)(null),x=f[0],j=f[1],y=(0,t.useRef)(s),w=JSON.stringify(h),v=JSON.stringify(null==g?void 0:g.parameters);(0,t.useEffect)(function(){if(s){var e=(null==h?void 0:h.id)||"google-recaptcha-v3",a=(null==h?void 0:h.onLoadCallbackName)||"onRecaptchaLoadCallback";return window[a]=function(){var e=r?window.grecaptcha.enterprise:window.grecaptcha,a=c({badge:"inline",size:"invisible",sitekey:s},(null==g?void 0:g.parameters)||{});y.current=e.render(null==g?void 0:g.element,a)},l({render:(null==g?void 0:g.element)?"explicit":s,onLoadCallbackName:a,useEnterprise:r,useRecaptchaNet:m,scriptProps:h,language:p,onLoad:function(){if(window&&window.grecaptcha){var e=r?window.grecaptcha.enterprise:window.grecaptcha;e.ready(function(){j(e)})}else d("<GoogleRecaptchaProvider /> "+n.SCRIPT_NOT_AVAILABLE)},onError:function(){d("Error loading google recaptcha script")}}),function(){o(e,null==g?void 0:g.element)}}d("<GoogleReCaptchaProvider /> recaptcha key not provided")},[r,m,w,v,p,s,null==g?void 0:g.element]);var N=(0,t.useCallback)(function(e){if(!x||!x.execute)throw Error("<GoogleReCaptchaProvider /> Google Recaptcha has not been loaded");return x.execute(y.current,{action:e})},[x,y]),S=(0,t.useMemo)(function(){return{executeRecaptcha:x?N:void 0,container:null==g?void 0:g.element}},[N,x,null==g?void 0:g.element]);return t.createElement(u.Provider,{value:S},b)}u.Consumer;var h=function(){return(0,t.useContext)(u)};function p(e,s){return e(s={exports:{}},s.exports),s.exports;/** @license React v16.13.1 2 * react-is.production.min.js 3 * 4 * Copyright (c) Facebook, Inc. and its affiliates. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE file in the root directory of this source tree. 8 */}var g="function"==typeof Symbol&&Symbol.for,b=g?Symbol.for("react.element"):60103,f=g?Symbol.for("react.portal"):60106,x=g?Symbol.for("react.fragment"):60107,j=g?Symbol.for("react.strict_mode"):60108,y=g?Symbol.for("react.profiler"):60114,
8w=g?Symbol.for("react.provider"):60109,v=g?Symbol.for("react.context"):60110,N=g?Symbol.for("react.async_mode"):60111,S=g?Symbol.for("react.concurrent_mode"):60111,C=g?Symbol.for("react.forward_ref"):60112,_=g?Symbol.for("react.suspense"):60113,A=g?Symbol.for("react.suspense_list"):60120,P=g?Symbol.for("react.memo"):60115,E=g?Symbol.for("react.lazy"):60116,k=g?Symbol.for("react.block"):60121,F=g?Symbol.for("react.fundamental"):60117,L=g?Symbol.for("react.responder"):60118,I=g?Symbol.for("react.scope"):60119;function B(e){if("object"==typeof e&&null!==e){var s=e.$$typeof;switch(s){case b:switch(e=e.type){case N:case S:case x:case y:case j:case _:return e;default:switch(e=e&&e.$$typeof){case v:case C:case E:case P:case w:return e;default:return s}}case f:return s}}}function M(e){return B(e)===S}var R={AsyncMode:N,ConcurrentMode:S,ContextConsumer:v,ContextProvider:w,Element:b,ForwardRef:C,Fragment:x,Lazy:E,Memo:P,Portal:f,Profiler:y,StrictMode:j,Suspense:_,isAsyncMode:function(e){return M(e)||B(e)===N},isConcurrentMode:M,isContextConsumer:function(e){return B(e)===v},isContextProvider:function(e){return B(e)===w},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===b},isForwardRef:function(e){return B(e)===C},isFragment:function(e){return B(e)===x},isLazy:function(e){return B(e)===E},isMemo:function(e){return B(e)===P},isPortal:function(e){return B(e)===f},isProfiler:function(e){return B(e)===y},isStrictMode:function(e){return B(e)===j},isSuspense:function(e){return B(e)===_},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===x||e===S||e===y||e===j||e===_||e===A||"object"==typeof e&&null!==e&&(e.$$typeof===E||e.$$typeof===P||e.$$typeof===w||e.$$typeof===v||e.$$typeof===C||e.$$typeof===F||e.$$typeof===L||e.$$typeof===I||e.$$typeof===k)},typeOf:B},T=p(function(e,s){}),U=(T.AsyncMode,T.ConcurrentMode,T.ContextConsumer,T.ContextProvider,T.Element,T.ForwardRef,T.Fragment,T.Lazy,T.Memo,T.Portal,T.Profiler,T.StrictMode,T.Suspense,T.isAsyncMode,T.isConcurrentMode,T.isContextConsumer,T.isContextProvider,T.isElement,T.isForwardRef,T.isFragment,T.isLazy,T.isMemo,T.isPortal,T.isProfiler,T.isStrictMode,T.isSuspense,T.isValidElementType,T.typeOf,p(function(e){e.exports=R})),Y={};Y[U.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Y[U.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0}}}]);
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.