PageSourceSearch

https://allencoralatlas.org/_next/static/chunks/881-a477a2f428c8f233.js

js allencoralatlas.org collected 2026-09-24 10:21:54 UTC 9,500 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[881],{42249:function(e,t,s){s.d(t,{Z:function(){return P}});var n=s(4111),a=s(51438),r=s(52951),o=s(14924),i=s(28668),l=s(26626),c=s(85893),u=s(67294),d=s(45697),b=s.n(d),h=s(29208),p=s.n(h),f=s(26042),m=s(14416),w=s(11163),x=s(25213),j=s(63380),y=function(e){var t=e.auth,s=e.updateViewProps,n=e.requestSubscribe,a=e.cta,r=(0,w.useRouter)(),o=p()(r,"query.newsletter"),i=function(){if((0,x.hA)(t))s({loginPanelVisible:!0,registerPanelVisible:!0,registerPanelNewsletterHighlighted:!0});else{var e={header:"Allen Coral Atlas Newsletter",body:"Yes, send me the Allen Coral Atlas newsletter with product updates and news.",includeTextEntry:!0,placeholder:"[email protected]",subfooter:(0,c.jsxs)("span",{children:["You can unsubscribe at any time.",(0,c.jsx)("br",{}),"See our"," ",(0,c.jsx)("a",{target:"blank",href:"https://www.asu.edu/privacy/",children:"privacy policy"}),"."]}),useDefaultOkButton:!1,size:"sm",notifyError:function(e){var t={header:"Unexpected input value",body:"We were unable to process your request.\n\n".concat(e),error:!0,includeTextEntry:!1,useDefaultOkButton:!0,size:"sm",id:"error-text-modal-id"};s({modal:!0,modalProps:t})},testText:function(e){if(!e||e.length<6)return e.length>0&&console.warn("This is NOT a valid email address (1):",e),!1;var t=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(String(e).toLowerCase());return t||console.warn("This is NOT a valid email address (2):",e),t},buttons:[{id:"subscribe-account-no",title:j.Z.cancel,className:"btn btn-default",default:!0},{id:"subscribe-account-yes",title:"Yes, Subscribe!",default:!1,textEntryRequired:!0,callback:function(e){n({email:e,attributes:{newsletter:!0}}).then((function(t){if(t&&t.message&&t.message.length)if("error"===t.status||t.toString().indexOf("error")>-1){console.error("Unable to complete subscription request.",t);var n="We were unable to accept your request.\n\n".concat(t.message);("auth: user already exists"===t.message||t.toString().indexOf("auth: user already exists")>-1)&&(n=(0,c.jsxs)("span",{children:["It looks like this email address is already being used. Please sign in to your account.",(0,c.jsx)("br",{}),'Under "My Account Details," you can change your newsletter subscription settings.',(0,c.jsx)("br",{}),(0,c.jsx)("br",{}),"If you don't have an account or you're having trouble accessing your account, please contact us:"," ",(0,c.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]})),s({modal:!0,modalProps:{header:"Trying to subscribe to our newsletter?",body:n,error:!0,includeTextEntry:!1,useDefaultOkButton:!0,size:"sm",id:"error-newsletter-modal-id"}})}else{s({modal:!0,modalProps:{header:"Thank you!",body:(0,c.jsxs)("ul",{children:[(0,c.jsx)("li",{children:"Your email address has been accepted, and now it needs to be confirmed."}),(0,c.jsxs)("li",{children:["An activation link has been sent to ",e]}),(0,c.jsx)("li",{children:"After the email address has been confirmed, you can look forward to recieving our newsletter, with updates and information about the Allen Coral Atlas."})]}),error:!1,includeTextEntry:!1,useDefaultOkButton:!0,size:"sm",id:"success-newsletter-modal-id"}})}}))}}],id:"delete-account-modal-id"};s({modal:!0,modalProps:e})}};return(0,u.useEffect)((function(){"1"===o&&i()}),[o]),(0,c.jsx)("button",{type:"button",className:"subscribeButton coral-button",onClick:function(){return i()},children:a})};y.defaultProps={updateViewProps:function(){console.error("SUBSCRIBE BUTTON: The prop *updateViewProps* was not set up properly")},requestSubscribe:function(){console.error("SUBSCRIBE BUTTON: The prop *requestSubscribe* was not set up properly")},auth:{authorization:{access_token:null}},cta:"Sign Up"},y.propTypes={updateViewProps:b().func,requestSubscribe:b().func,auth:b().object,cta:b().string};var g=y,k=s(64812),N=(0,m.$j)((function(e){return(0,f.Z)({view:e.view,auth:e.auth},e.view)}),(function(e){return{updateViewProps:function(t){return e((0,k.Ad)(t))},requestSubscribe:function(t){return e((0,k.Dk)(t))}}}))(g),v=s(22105),A=function(e){(0,i.Z)(s,e);var t=(0,l.Z)(s);function s(){var e;return(0,a.Z)(this,s),e=t.apply(this,arguments),(0,o.Z)((0,n.Z)(e),"isEmailAddress",(function(e){return/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(String(e).toLowerCase())})),(0,o.Z)((0,n.Z)(e),"hasToken",(function(){return!!p()(e.props.auth,"authorization.permission.access_token")})),(0,o.Z)((0,n.Z)(e),"unsubscribe",(function(){if(e.hasToken())e.props.updateViewProps({loginPanelVisible:!0,registerPanelVisible:!0,registerPanelNewsletterHighlighted:!0});else{var t={header:"Allen Coral Atlas Newsletter: Unsubscribe",body:"Stop sending me the Allen Coral Atlas newsletter with product updates and news.",includeTextEntry:!0,testText:function(t){return!0===e.isEmailAddress(t)},placeholder:"[email protected]",useDefaultOkButton:!1,size:"sm",buttons:[{id:"unsubscribe-account-no",title:"Cancel",className:"btn btn-default",default:!0},{id:"unsubscribe-account-yes",title:"Unsubscribe",default:!1,textEntryRequired:!1,callback:function(t){var s={email:t};e.props.requestUnsubscribe(s).then((function(){e.confirmUnsubscribeRequest(t)}
1)).catch((function(e){console.log("[Footer] There was an error when we tried to unsubscribe.",e)}))}}],id:"unsubscribe-modal-id"};e.props.updateViewProps({modal:!0,modalProps:t})}})),(0,o.Z)((0,n.Z)(e),"confirmUnsubscribeRequest",(function(t){var s={header:"Allen Coral Atlas Newsletter: Unsubscribed",body:"Your request to unsubscribe from the Allen Coral Atlas newsletter has been received. For security, an email has been sent to ".concat(t," with a link that will complete the process."),includeTextEntry:!1,useDefaultOkButton:!0,size:"sm",id:"unsubscribed-modal-id"};e.props.updateViewProps({modal:!0,modalProps:s})})),e}return(0,r.Z)(s,[{key:"render",value:function(){return(0,c.jsxs)("div",{id:"footer",children:[(0,c.jsxs)("div",{className:"three-col wrapper",children:[(0,c.jsxs)("div",{className:"footer-section",children:[(0,c.jsx)("span",{className:"footer-section-title",children:"Stay Up to Date"}),(0,c.jsxs)("span",{className:"footer-section-text",children:["Join our mailing list and be the first to hear about product updates and more. You can"," ",(0,c.jsx)("span",{role:"button",tabIndex:"0",onClick:this.unsubscribe,className:"functionLink",children:"unsubscribe"})," ","at any time."]}),(0,c.jsx)("span",{className:"footer-section-content",children:(0,c.jsx)(N,{cta:"Sign Up"})})]}),(0,c.jsxs)("div",{className:"footer-section",children:[(0,c.jsx)("span",{className:"footer-section-title",children:"Follow Us"}),(0,c.jsx)("span",{className:"footer-section-text",children:"Stay connected with us on social media."}),(0,c.jsxs)("span",{className:"footer-section-content",children:[(0,c.jsx)("a",{className:"media-btn",href:"https://www.twitter.com/allencoralatlas/",target:"_blank",rel:"noopener noreferrer",children:(0,c.jsx)("button",{className:"media-button media-button-twitter",children:(0,c.jsx)("i",{className:"fa fa-twitter"})})}),(0,c.jsx)("a",{className:"media-btn",href:"https://www.instagram.com/allencoralatlas/",target:"_blank",rel:"noopener noreferrer",children:(0,c.jsx)("button",{className:"media-button media-button-instagram",children:(0,c.jsx)("i",{className:"fa fa-instagram"})})}),(0,c.jsx)("a",{className:"media-btn",href:"https://www.facebook.com/AllenCoralAtlas/",target:"_blank",rel:"noopener noreferrer",children:(0,c.jsx)("button",{className:"media-button media-button-facebook",children:(0,c.jsx)("i",{className:"fa fa-facebook"})})}),(0,c.jsx)("a",{className:"media-btn",href:"https://www.linkedin.com/company/allen-coral-atlas?_l=en_US",target:"_blank",rel:"noopener noreferrer",children:(0,c.jsx)("button",{className:"media-button media-button-linkedin",children:(0,c.jsx)("i",{className:"fa fa-linkedin"})})})]})]}),(0,c.jsxs)("div",{className:"footer-section",children:[(0,c.jsx)("span",{className:"footer-section-title",children:"Send Us Your Feedback"}),(0,c.jsx)("span",{className:"footer-section-text",children:"Send us your questions and feedback about the Allen Coral Atlas."}),(0,c.jsx)("span",{className:"footer-section-content",children:(0,c.jsx)("a",{href:"mailto:[email protected]?subject=Allen Coral Atlas Feedback",children:"[email protected]"})})]})]}),(0,c.jsx)("div",{className:"clearboth"}),(0,c.jsxs)("div",{className:"footer-links",children:[(0,c.jsxs)("span",{style:{paddingRight:"20px"},children:["\xa9",(new Date).getFullYear(),"\xa0 Arizona State University All Rights Reserved"]}),(0,c.jsxs)("span",{className:"mobile-links",children:[(0,c.jsx)("span",{children:(0,c.jsx)("a",{href:"https://www.asu.edu/privacy/",children:"Privacy Policy"})}),(0,c.jsx)("span",{className:"spreader"}),(0,c.jsx)("span",{children:(0,c.jsx)("a",{href:"/tou",children:"Terms of Use"})})]})]}),(0,c.jsx)(v.Z,{})]})}}]),s}(u.Component),P=A;A.defaultProps={auth:{authorization:{access_token:null}}},A.propTypes={updateViewProps:b().func.isRequired,auth:b().object,requestUnsubscribe:b().func.isRequired}},59881:function(e,t,s){var n=s(14416),a=s(42249),r=s(64812),o=(0,n.$j)((function(e){return{auth:e.auth}}),(function(e){return{updateViewProps:function(t){return e((0,r.Ad)(t))},requestUnsubscribe:function(t){return e((0,r.DF)(t))}}}))(a.Z);t.Z=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.