1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OurMembers.CviCgwKj.js","assets/vendor.BwbG8Zcq.js","assets/useSlick.CcBjbenf.js","assets/Eligible.Dv7ptO5T.js","assets/WellnessProgram.BEf2CSF3.js","assets/preload-helper.r23mchnI.js","assets/productShell.DHll7VhR.js","assets/CommonSavings.BnXGH_Yw.js","assets/HowItWorks.jQiicPSn.js","assets/PartnershipBanner.DbW80Eeq.js"])))=>i.map(i=>d[i]); 2import{_ as F}from"./preload-helper.r23mchnI.js";import{r as s,j as e}from"./vendor.BwbG8Zcq.js";import{p as ce}from"./productShell.DHll7VhR.js";function oe(a=[]){s.useEffect(()=>{const n=window.AOS;if(n)try{n.init({duration:1200,once:!0});const r=requestAnimationFrame(()=>{try{n.refreshHard()}catch(d){}});return()=>cancelAnimationFrame(r)}catch(r){return}},a)}function de(){try{window.AOS&&window.AOS.refreshHard()}catch(a){}}function T({minHeight:a,rootMargin:n="800px 0px",children:r}){const d=s.useRef(null),[u,x]=s.useState(!1);return s.useEffect(()=>{if(u){de();return}const N=()=>x(!0);window.addEventListener("sb:reveal-lazy",N);const p=d.current;if(!p||typeof IntersectionObserver=="undefined"){x(!0),window.removeEventListener("sb:reveal-lazy",N);return}const g=new IntersectionObserver(b=>{b.some(j=>j.isIntersecting)&&(x(!0),g.disconnect())},{rootMargin:n});return g.observe(p),()=>{window.removeEventListener("sb:reveal-lazy",N),g.disconnect()}},[u,n]),e.jsx("div",{ref:d,style:u?void 0:{minHeight:a},children:u?e.jsx(s.Suspense,{fallback:e.jsx("div",{style:{minHeight:a}}),children:r}):null})}const L=window.SB_PAGE_DATA||{},me=L.themeUri||"",O=a=>`${me}/${String(a).replace(/^\/+/,"")}`,B=a=>O(`assets/product-shine/images/${a}`),V=a=>O(`assets/images/shine-program/${a}`),I=L.shinePerk||{productId:"",price:0,arbid:0,planType:""},W=L.states||{},P=L.insuranceOptions||[],$=L.partnerSegmentList||{},ue=L.segmentList||{},he=L.segmentLogoList||{},ee=L.ajaxUrl||(typeof window!="undefined"?window.ajaxurl:"")||"/wp-admin/admin-ajax.php",se=L.klaviyoNonce||"",ae=!!L.isUserLoggedIn;function pe(){typeof window!="undefined"&&(window.partnerSegmentKeys=Object.keys($),window.partner_segment_list=$,window.segmentList=ue,window.segment_logo_list=he,window.US_STATES_LIST=W,window.ajax_url=ee,window.klaviyo_nonce=se,window.isUserLoggedIn=ae)}const J=a=>!!a&&Object.prototype.hasOwnProperty.call($,a),fe=a=>J(a)?`/${$[a]}`:"/insurance-lander";function ve(a){const n=Number(a)||0,r=Math.floor(n),d=String(Math.round((n-r)*100)).padStart(2,"0");return{dollars:r,cents:d}}function xe(a){return(Number(a)||0).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}function Z(a=900){const n=window.jQuery,r=n&&n("#shineRegistration");return!r||!r.length||!r.offset()||n("html, body").animate({scrollTop:r.offset().top-90},a),!1}const He="popupOpen login-form-open login-popup-open-handler",Y="shine_insurance_search_data",ge=1,je=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,Ne={email:"",state:"",stateCode:"",insurance:"",insuranceName:""};function be(a,n,r){let d="";{const u=new Date;u.setTime(u.getTime()+r*24*60*60*1e3),d=`; expires=${u.toUTCString()}`}document.cookie=`${a}=${n||""}${d}; path=/`}function ye(a){const n=`${a}=`,r=document.cookie.split(";");for(let d=0;d<r.length;d+=1){let u=r[d];for(;u.charAt(0)===" ";)u=u.substring(1,u.length);if(u.indexOf(n)===0)return u.substring(n.length,u.length)}return null}function we(){try{document.cookie=`${Y}=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;`,console.log("Shine search data cookie cleared")}catch(a){}}function K(a){const n=new URLSearchParams;return Object.keys(a).forEach(r=>n.append(r,a[r]==null?"":String(a[r]))),fetch(ee,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:n.toString()}).then(r=>r.json())}const te=s.createContext(null);function ne(){const a=s.useContext(te);if(!a)throw new Error("useRegistration must be used within RegistrationProvider");return a}function ke({children:a}){const[n,r]=s.useState(Ne),[d,u]=s.useState(null),[x,N]=s.useState(!1),[p,g]=s.useState({}),[b,j]=s.useState(!1),[S,w]=s.useState(!1),t=s.useRef([]),l=s.useRef(n);l.current=n,s.useEffect(()=>{window.shineFormData=n},[n]),s.useEffect(()=>()=>{t.current.forEach(clearTimeout),t.current=[]},[]);const v=s.useCallback(o=>{try{(o.email||o.state||o.insurance)&&be(Y,encodeURIComponent(JSON.stringify(o)),ge)}catch(i){console.error("Failed to save shine search data to cookie:",i)}},[]),c=s.useRef(!1);s.useEffect(()=>{if(!c.current){c.current=!0;try{const o=ye(Y);if(!o)return;const i=JSON.parse(decodeURIComponent(o));if(!i||!i.email)return;const y=i.insurance?P.find(A=>A.key===i.insurance):null;r({email:i.email||"",state:i.state&&i.stateCode?i.state:"",stateCode:i.state&&i.stateCode?i.stateCode:"",insurance:y?i.insurance:"",insuranceName:y?i.insuranceName||y.name:""}
2),console.log("Shine search form restored from cookie:",i)}catch(o){console.error("Failed to read shine search data from cookie:",o)}}},[]);const m=s.useCallback(o=>{r(i=>({...i,email:o})),g(i=>({...i,email:void 0})),j(!1)},[]),_=s.useCallback(o=>{r(i=>({...i,state:o,stateCode:""})),j(!1)},[]),E=s.useCallback((o,i)=>{g(y=>({...y,state:void 0})),r(y=>{const A={...y,state:i,stateCode:o};return v(A),A})},[v]),D=s.useCallback(o=>{const i=P.find(y=>y.key===o);g(y=>({...y,insurance:void 0})),j(!1),r(y=>{const A={...y,insurance:o,insuranceName:i?i.name:""};return v(A),A})},[v]),f=s.useCallback(()=>v(l.current),[v]),C=s.useCallback(()=>{const o=l.current,i={},y=(o.email||"").trim();return y?je.test(y)||(i.email="Email is not correct"):i.email="Email is required",(!(o.state||"").trim()||!o.stateCode)&&(i.state="Please select a state"),o.insurance||(i.insurance=!0),g(i),Object.keys(i).length===0},[]),z=s.useCallback(()=>{const o=l.current;K({action:"push_to_klaviyo_insurance",nonce:se,email:o.email,first_name:"",last_name:"",insuranceProvider:o.insuranceName,state:o.state,source:"shine_insurance_search",registered:"no"}).then(i=>console.log("Klaviyo search push response:",i)).catch(i=>console.error("Klaviyo search push failed:",i))},[]),M=s.useCallback(()=>{z();const o=setTimeout(()=>{N(!1),u(J(l.current.insurance)?"partner":"non-partner")},1e3);t.current.push(o)},[z]),q=s.useCallback(()=>(C()&&(j(!1),N(!0),K({action:"check_shine_member_by_email",email:(l.current.email||"").trim()}).then(o=>{if(o&&o.success&&o.data&&o.data.is_shine_member){N(!1),j(!0);return}M()}).catch(()=>M())),!1),[M,C]),h=s.useCallback(()=>{u(null),N(!1),g({})},[]),k=s.useCallback(()=>j(!1),[]),H=s.useCallback(()=>w(!0),[]),U=s.useCallback(()=>w(!1),[]),Q=s.useCallback(({email:o,state:i,stateCode:y})=>{r(A=>({...A,email:o,state:i,stateCode:y}))},[]),X=s.useCallback(({firstName:o,lastName:i,email:y,state:A,insurance:G,insuranceName:le})=>K({action:"add_partner_user",first_name:o,last_name:i,email:y,source:G,insurance_provider:"insurance_popup",insurance_provider_name:le,state:A,from_insurance:"shine",shine_insurance_search:"true"}).then(R=>{if(console.log("User registration response:",R),!R||!R.status)throw new Error("registration-failed");return R.is_shine&&(document.cookie=`shine_user=${encodeURIComponent(R.is_shine)}; path=/; max-age=${3600*24*360}`),R.provider&&(document.cookie=`shine_user_provider=${encodeURIComponent(R.provider)}; path=/; max-age=${3600*24*360}`),we(),window.location.href=Object.prototype.hasOwnProperty.call($,G)?`/${$[G]}`:"/insurance-lander",R}),[]),ie=s.useMemo(()=>({form:n,errors:p,loading:x,result:d,alreadyMember:b,activationOpen:S,setEmail:m,setStateText:_,selectState:E,selectInsurance:D,persistEmail:f,search:q,resetForm:h,dismissMemberMessage:k,openActivation:H,closeActivation:U,applyActivationEdits:Q,activate:X}),[n,p,x,d,b,S,m,_,E,D,f,q,h,k,H,U,Q,X]);return e.jsx(te.Provider,{value:ie,children:a})}function Se(){return e.jsxs("section",{className:"section section-top-banner",style:{backgroundImage:`url(${V("shine-hero-bg-curve.png")})`},children:[e.jsx("div",{className:"container",children:e.jsxs("div",{className:"row-flex flex-count-one justify-content-between ",children:[e.jsx("div",{className:"sectionLft",children:e.jsxs("div",{className:"shine-banner-wrap",children:[e.jsx("div",{className:"circle-banner-home",children:e.jsx("img",{className:"img-fluid",alt:"","aria-hidden":"true",src:B("shine-smile.png")})}),e.jsxs("div",{className:"powered-by-sbr",children:[e.jsx("span",{children:"Powered by"}),e.jsx("img",{className:"img-fluid",src:O("assets/images/sbr-logo-text.webp"),alt:"Smile Brilliant"})]}),e.jsx("div",{className:"button-wrap hidden-desktop",style:{display:"none"},children:e.jsx("div",{className:"arrow-down-img",children:e.jsx("img",{className:"scroll-trigger",onClick:()=>Z(800),src:O("assets/images/guardian-lander/expand-arrow.png"),alt:""})})}),e.jsx("div",{className:"aetna-logo-wrap text-center",children:e.jsxs("div",{className:"hsa-fsa-accepted",children:[e.jsxs("div",{className:"hfa-fsa",children:[e.jsx("img",{className:"img-fluid",src:B("HSA-Logo.png"),alt:"HSA"}),e.jsx("img",{className:"img-fluid",src:B("FSA-Logo.png"),alt:"FSA"})]}),e.jsx("div",{className:"eligible-text",children:"ACCEPTED"})]})})]})}),e.jsxs("div",{className:"sectionRgt",children:[e.jsx("p",{className:"dental-saving-plan-text",role:"heading",children:"AMERICAâS #1 DENTAL SAVINGS PLAN"}),e.jsxs("h1",{children:["Have Dental Insurance?",e.jsx("div",{className:"get-started-heading",children:"Great! Get Started."})]}),e.jsx("div",{className:"subheadinhg shine-underline underline underline--2 ",children:"Instantly save up to 60% on oral care products."}),e.jsxs("p",{className:"home-section-description-text",children:["An easy-to-use membership program that"," ",e.jsxs("strong",{children:["saves you time",e.jsx("br",{className:"hidden-mobile"})," ","and money while helping you take back control of",e.jsx("br",{className:"hidden-mobile"})," ","your oral health!"]})]}),e.jsx("div",{className:"button-wrap",children:e.jsx("div",{className:"arrow-down-img",children:e.jsx("img",{className:"scroll-tr
2igger",onClick:()=>Z(800),src:O("assets/images/guardian-lander/expand-arrow.png"),alt:""})})})]})]})}),e.jsx("div",{className:"bottom-clouds",style:{backgroundImage:`url(${V("bottom-clouds.png")})`}})]})}function _e({selected:a,onSelect:n}){const[r,d]=s.useState(!1),[u,x]=s.useState(-1),N=s.useRef(null),p=s.useRef(null),g=s.useRef(null),b=P.find(t=>t.key===a)||null;s.useEffect(()=>{const t=v=>{const c=N.current;c&&!c.contains(v.target)&&(d(!1),x(-1))},l=v=>{v.key==="Escape"&&(d(!1),x(-1))};return document.addEventListener("click",t),document.addEventListener("keydown",l),()=>{document.removeEventListener("click",t),document.removeEventListener("keydown",l)}},[]),s.useEffect(()=>(window.updateDropdownHeading=t=>{const l=t&&typeof t=="object"&&"value"in t?t.value:t;if(!l)return;n(l),d(!1),x(-1);const v=document.getElementById("insuranceYes");v&&(v.checked=!0);const c=J(l)?"50+":Math.floor(Math.random()*21)+5;window.storedRandomNumber=`${c} discounts`;const m=document.getElementById("random-discount-number");m&&(m.textContent=window.storedRandomNumber)},()=>{window.updateDropdownHeading&&delete window.updateDropdownHeading}),[n]);const j=t=>{n(t),d(!1),x(-1)},S=t=>{const l=p.current;if(!l)return;const v=l.children[t];v&&v.scrollIntoView&&v.scrollIntoView({block:"nearest"})},w=t=>{r?t.keyCode===40?(t.preventDefault(),x(l=>{const v=l<P.length-1?l+1:l,c=l===-1?0:v;return S(c),c})):t.keyCode===38?(t.preventDefault(),x(l=>{const v=l>0?l-1:l;return S(v),v})):t.keyCode===13&&u>=0&&(t.preventDefault(),j(P[u].key)):(t.keyCode===13||t.keyCode===32)&&(t.preventDefault(),d(!0))};return e.jsx("div",{id:"insuranceDetails",children:e.jsx("div",{className:"custom-select",children:e.jsxs("div",{ref:N,className:`dropdown-wrapper${r?" active":""}`,children:[e.jsxs("p",{ref:g,className:"dropdown-heading toggle",tabIndex:0,role:"button","aria-expanded":r?"true":"false",onClick:()=>{d(t=>!t),x(-1)},onFocus:()=>d(!0),onKeyDown:w,children:[" ",e.jsx("span",{children:b?b.name:"Select your insurance provider:"}),e.jsx("i",{className:" fa fa-chevron-down"})]}),e.jsx("div",{className:"icon-wrapper ",children:e.jsx("div",{className:"dropdown-content",style:{display:r?"block":"none"},onClick:t=>t.stopPropagation(),children:e.jsx("ul",{ref:p,children:P.map((t,l)=>e.jsxs("li",{className:`${t.featured?"featured":""}${l===u?" keyboard-highlighted":""}`,children:[t.featured?e.jsx("div",{className:"featured-text",children:"Featured"}):null,e.jsx("input",{path:t.logoUrl,type:"radio",name:"insuranceProvider",value:t.key,id:t.key,checked:a===t.key,onChange:()=>j(t.key)}),e.jsxs("label",{htmlFor:t.key,children:[e.jsx("img",{title:t.name,src:t.logoUrl,alt:""}),e.jsx("div",{className:"insurance-text-name",children:t.name})]})]},t.key))})})})]})})})}function re({id:a,dropdownId:n,className:r,value:d,stateCode:u,onText:x,onSelect:N,placeholder:p="Start typing your state...",readOnly:g=!1,hasError:b=!1,ariaLabel:j="Select Your State"}){const[S,w]=s.useState(!1),[t,l]=s.useState(-1),[v,c]=s.useState(""),m=s.useRef(null),_=s.useRef(null),E=s.useMemo(()=>Object.keys(W).map(h=>({code:h,name:W[h]})),[]),D=(d||"").toLowerCase().trim(),f=s.useMemo(()=>D.length===0?E:E.filter(h=>h.name.toLowerCase().includes(D)||h.code.toLowerCase().includes(D)),[E,D]);s.useEffect(()=>()=>{clearTimeout(m.current),clearTimeout(_.current)},[]);const C=s.useCallback(h=>{N(h.code,h.name),w(!1),l(-1),c(h.code),clearTimeout(_.current),_.current=setTimeout(()=>c(""),200)},[N]),z=h=>{switch(h.keyCode){case 40:h.preventDefault(),f.length>0&&l(k=>k<f.length-1?k+1:k);break;case 38:h.preventDefault(),f.length>0&&l(k=>k>0?k-1:k);break;case 13:h.preventDefault(),t>=0&&t<f.length&&C(f[t]);break;case 27:h.preventDefault(),w(!1),l(-1);break}},M=s.useMemo(()=>new Set(f.map(h=>h.code)),[f]),q=t>=0&&t<f.length?f[t].code:null;return e.jsxs("div",{className:"state-autocomplete-wrapper",children:[e.jsx("input",{type:"text",id:a,className:`${r}${b?" error":""}`,placeholder:p,autoComplete:"off","aria-label":j,readOnly:g,value:d||"","data-state-code":u||void 0,onChange:h=>{const k=h.target.value;if(x(k),k.trim().length===0)w(!1);else{const H=k.toLowerCase().trim();w(E.some(U=>U.name.toLowerCase().includes(H)||U.code.toLowerCase().includes(H)))}l(-1)},onFocus:()=>{g||(clearTimeout(m.current),w(!0),l(-1))},onBlur:()=>{clearTimeout(m.current),m.current=setTimeout(()=>{w(!1),l(-1)},150)},onKeyDown:z}),e.jsx("div",{className:"state-dropdown",id:n,style:{display:S?"block":"none"},children:E.map(h=>e.jsxs("div",{className:`state-option${h.code===q?" highlighted":""}${h.code===v?" selected":""}`,"data-value":h.code,"data-name":h.name,style:M.has(h.code)?void 0:{display:"none"},onMouseDown:k=>{k.preventDefault(),C(h)},children:[e.jsx("span",{className:"state-name",children:h.name}),e.jsx("span",{className:"state-code",children:h.code})]},h.code))})]})}function Ce(){const{form:a,errors:n,loading:r,result:d,alreadyMember:u,setEmail:x,setStateText:N,selectState:p,selectInsurance:g,persistEmail:b,search:j,resetForm:S,openActivation:w}=ne(),{dollars:t,cents:l}=ve(I.price),v=s.useRef(null),c=s.useRef(!0);s.useEffect(()=>{const f=window.jQuery,C=v.current;!f||!C||c.current&&(c.current=!1,!u)||(u?f(C).slideDown():f(C).slideUp())},[u]);const m=f=>{if(f.preventDefault(),ae){window.location.href="/my-account";return}const C=document.querySelector(".popupOpen.login-form-open.login-popup-open-handler");C&&C.click()},_=f=>d===null?void 0:{display:f===(d==="partner"?"partner-insurance":"non-
2partner-insurance")?"block":"none"},E=`?add-to-cart=${I.productId}`,D=`${E}&redirect_mbt=checkout&arbid=${I.arbid}&shine=1&frequency=365&members=${I.planType}&prod_price=${I.price}`;return e.jsx("section",{className:"shine-registeration-wrapper",id:"shineRegistration",style:{backgroundImage:`url(${V("curve-block1.png")})`},children:e.jsxs("div",{className:"container",children:[e.jsxs("div",{className:"shine-registration-header",children:[e.jsxs("h2",{className:"registration-title",children:["SH",e.jsx("span",{style:{color:"#f0c239"},children:"!"}),"NE REGISTRATION"]}),e.jsx("h3",{className:"registration-tagline",children:'"Take back control of your oral health"'}),e.jsx("h4",{className:"registration-subtitle",children:"Activate your membership today!"})]}),e.jsxs("div",{className:"shine-registration-content",children:[e.jsx("div",{className:"registration-plan-tag",children:"DENTAL SAVINGS PLAN"}),e.jsx("div",{className:"registration-left-section",children:e.jsxs("div",{className:"shine-member-perks",children:[e.jsx("div",{className:"shine-logo-circle",children:e.jsx("div",{className:"shine-logo-content",children:e.jsx("img",{className:"img-fluid",src:V("shine-logo-black.png"),alt:"Shine Logo"})})}),e.jsxs("div",{className:"member-perks-text",children:[e.jsx("span",{className:"member-text",children:"member"})," ",e.jsx("span",{className:"perks-text",children:"Perks"}),e.jsx("div",{className:"dental-savings-plan-text",children:"Dental Savings Plan"})]})]})}),e.jsxs("div",{className:"registration-center-section",children:[e.jsx("h5",{className:"america-dental-plan",children:"America's #1 Dental Savings Plan!"}),e.jsx("p",{className:"take-control-text",children:"Take back control of your oral health"}),e.jsxs("ul",{className:"benefits-list",children:[e.jsx("li",{children:"Activates instantly. Save up to 60% on oral care."}),e.jsx("li",{children:"Huge discounts on night guards and professional teeth whitening."}),e.jsx("li",{children:"First access to exclusive sales & product samples."}),e.jsx("li",{children:"Connect your Shine account with your dentist for curated education & product recommendations."}),e.jsx("li",{children:"Exclusive discounts on Shine partner websites."})]}),e.jsxs("div",{className:"hsa-fsa-section",children:[e.jsx("div",{className:"hsa-fsa-badges",children:e.jsx("img",{className:"img-fluid",src:O("assets/images/shine-pro/hsa-fsa-logo-shine-program.png"),alt:"HSA and FSA Logos"})}),e.jsx("span",{className:"hsa-fsa-text",children:"HSA & FSA Accepted!"})]})]}),e.jsxs("div",{className:"registration-right-section",children:[e.jsxs("div",{className:"shine-member-pricing",children:[e.jsx("div",{className:"shine-member-pricing-header","data-attribute":"non-partner-insurance",style:_("non-partner-insurance"),children:e.jsxs("div",{className:"insurance-pricing",children:[e.jsxs("div",{className:"member-perks-header",children:["SH",e.jsx("span",{style:{color:"#4acac9"},children:"I"}),"NE Member Perks"]}),e.jsxs("div",{className:"pricing price-content",children:[e.jsx("div",{className:"real-price",children:e.jsxs("p",{className:"orignal-price",children:[e.jsx("sup",{children:"$"}),t,e.jsx("sup",{children:l})]})}),e.jsx("span",{className:"per-year",children:"per year"})]})]})}),e.jsx("div",{className:"shine-member-pricing-header","data-attribute":"partner-insurance",style:_("partner-insurance"),children:e.jsxs("div",{className:"insurance-pricing",children:[e.jsxs("div",{className:"member-perks-header",children:["SH",e.jsx("span",{style:{color:"#4acac9"},children:"I"}),"NE Member Perks",e.jsxs("div",{className:"stars-rating",children:[e.jsx("i",{className:"fa fa-star","aria-hidden":"true"}),e.jsx("i",{className:"fa fa-star","aria-hidden":"true"}),e.jsx("i",{className:"fa fa-star","aria-hidden":"true"}),e.jsx("i",{className:"fa fa-star","aria-hidden":"true"}),e.jsx("i",{className:"fa fa-star","aria-hidden":"true"})]})]}),e.jsx("div",{className:"pricing price-content",children:e.jsx("div",{className:"real-price",children:e.jsxs("p",{className:"orignal-price",children:["FREE",e.jsx("span",{style:{color:"#4acac9"},children:"!"})]})})})]})})]}),e.jsx("div",{className:"registration-form-section default-view",style:d?{display:"none"}:void 0,children:e.jsxs("form",{noValidate:!0,role:"search","aria-label":"Discount search",onSubmit:f=>{f.preventDefault(),j()},children:[e.jsxs("div",{className:"discount-search-section",children:[e.jsx("h6",{className:"discount-search-title",children:"Discount Search"}),e.jsx("p",{className:"eligibility-text",children:"You may be eligible for free or discounted membership"}),e.jsxs("div",{className:"search-form",children:[e.jsxs("div",{className:"form-group",children:[e.jsx("label",{htmlFor:"email-address",children:"Email Address:"}),e.jsx("input",{type:"email",id:"email-address",className:n.email?"error":void 0,placeholder:"[email protected]",value:a.email,onChange:f=>x(f.target.value),onBlur:b}),e.jsx("div",{className:"error-message",style:n.email?{display:"block"}:void 0,children:n.email||"Email is not correct"})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{htmlFor:"select-state",children:"Select State:"}),e.jsxs("div",{className:"custom-select",children:[e.jsx(re,{id:"stateOption1",dropdownId:"stateDropdown1",className:"form-control stateOption state-autocomplete",value:a.state,stateCode:a.stateCode,onText:N,onSelect:p,hasError:!!n.state}),e.jsx("span",{className:"custom-arrow",style:{pointerEvents:"none"},children:e.jsx("i",{className:"fa fa-chevron-down"})})]}),e.jsx("div",{className:"error-message",style:n.state?{display:"block"}:void 0,children:n.state||"select the state"})]}),e.jsxs("div",{className:"form-group insurance-select-group",children:[e.jsx("label",{htmlFor:"dental-insurance",children:"Select Dental Insurance:"}),e.jsx("div",{className:"form-group",children:e.jsx(_e,{selected:a.insurance,onSelect:g})}),e.jsx("div",{className:"error-message",style:n.insurance?{display:"block"}:void 0,children:"select the Insurance Provider"})]})]}),e.jsx("div",{className:"loading-spinner-content",style:{display:r?"block":"none"},children:e.jsx("div",{className:"spinner"})})]}),e.jsx("div",{className:"shine-member-message",ref:v,style:{display:"none",padding:"15px",borderRadius:"8px",textAlign:"center"},children:e.jsxs("p",{style:{margin:0,color:"#856404",fontSize:"16px"},children:[e.jsx("strong",{children:"Already a Shine Member!"}),e.jsx("br",{}),"This email is already registered. Please"," ",e.jsx("a",{href:"javascript:;",className:"shine-member-login-link",style:{color:"#fa319e",textDecoration:"underline",fontWeight:"bold"},onClick:m,children:"login"})," ","to access your account."]})}),e.jsx("div",{className:"search-button-wrapper",children:e.jsx("button",{className:"search-button btn",type:"submit",children:"Search"})})]})}),e.jsxs("div",{className:`after-search-wrapper${d==="partner"?" active-partner":d==="non-partner"?" active-non-partner":""}`,style:d?{display:"block"}:void 0,children:[e.jsxs("div",{className:"forNonPartnerInsurance divWrapperStyle","data-attribute":"non-partner-insurance",children:[e.jsx("div",{className:"user-info-show",children:e.jsxs("div",{className:"user-info-card",children:[e.jsx("div",{className:"user-info-header",children:e.jsx("a",{href:"javascript:;",className:"edit-link",onClick:f=>{f.preventDefault(),S()},children:"edit"})}),e.jsxs("div",{className:"user-info-field",children:[e.jsx("label",{className:"field-label",children:"Email Address:"}),e.jsx("div",{className:"field-value email-value",children:a.email})]}),e.jsxs("div",{className:"user-info-field",children:[e.jsx("label",{className:"field-label",children:"State:"}),e.jsx("div",{className:"field-value state-value",children:a.state})]}),e.jsxs("div",{className:"user-info-field",children:[e.jsx("label",{className:"field-label",children:"Dental Insurance:"}),e.jsx("div",{className:"field-value insurance-value",children:a.insuranceName})]})]})}),e.jsxs("div",{className:"join-shine-button-wrapper",children:[e.jsxs("p",{className:"discount-available-text text-center",children:["There are no membership discounts available to ",e.jsx("span",{children:a.insuranceName})," member."]}),e.jsxs("div",{className:"addtocart-button",children:[e.jsx("div",{className:"add-to-cart-btn",children:e.jsx("button",{className:"btn btn-general add_to_cart_button ajax_add_to_cart","data-arbid":I.arbid,"data-shine":"1",href:E,"data-quantity":"1","data-
2product_id":I.productId,"data-frequency":"365","data-members":I.planType,"data-prod_price":I.price,children:"Add to Cart"})}),e.jsx("div",{className:"buy-now-btn",children:e.jsx("a",{className:"btn btn-black-blue",href:D,children:"Buy Now"})})]})]})]}),e.jsxs("div",{className:"forPartnerInsurance divWrapperStyle","data-attribute":"partner-insurance",children:[e.jsx("div",{className:"user-info-show",children:e.jsxs("div",{className:"user-info-card",children:[e.jsx("div",{className:"user-info-header",children:e.jsx("a",{href:"javascript:;",className:"edit-link",onClick:f=>{f.preventDefault(),S()},children:"edit"})}),e.jsxs("div",{className:"user-info-field",children:[e.jsx("label",{className:"field-label",children:"Email Address:"}),e.jsx("div",{className:"field-value email-value",children:a.email})]}),e.jsxs("div",{className:"user-info-field",children:[e.jsx("label",{className:"field-label",children:"State:"}),e.jsx("div",{className:"field-value state-value",children:a.state})]}),e.jsxs("div",{className:"user-info-field",children:[e.jsx("label",{className:"field-label",children:"Dental Insurance:"}),e.jsx("div",{className:"field-value insurance-value",children:a.insuranceName})]})]})}),e.jsxs("div",{className:"join-shine-button-wrapper",children:[e.jsxs("p",{className:"discount-available-text",children:[e.jsx("strong",{className:"partner-insurance-name",children:a.insuranceName})," is a preferred partner.",e.jsx("br",{}),e.jsx("span",{style:{color:"#9e1e82"},children:e.jsx("strong",{children:"Your Shine membership is absolutely FREE!"})})]}),e.jsxs("div",{className:"subscription-tagline",children:["You Save ",e.jsxs("b",{style:{color:"#9e1e82"},children:["$",xe(I.price)]})," With"," ",e.jsx("span",{className:"partner-insurance-name",children:a.insuranceName})]}),e.jsx("div",{className:"addtocart-button",children:e.jsxs("div",{className:"buy-now-btn",children:[e.jsxs("a",{className:"btn btn-black-blue","data-attribute":"activation-popup",href:"",onClick:f=>{f.preventDefault(),w()},children:[e.jsx("strong",{style:{fontWeight:600},children:"Sign-up Now!"})," ",e.jsx("span",{style:{fontWeight:"normal"},children:"- FREE"})]}),e.jsx("a",{className:"btn-learn-more",href:fe(a.insurance),target:"_blank",rel:"noreferrer",children:"Learn More"})]})})]})]})]})]})]})]})})}const Ee=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function Ae(){const{form:a,activationOpen:n,closeActivation:r,applyActivationEdits:d,activate:u}=ne(),[x,N]=s.useState(!1),[p,g]=s.useState({email:"",state:"",stateCode:"",firstName:"",lastName:""}),[b,j]=s.useState({}),[S,w]=s.useState(!1);s.useEffect(()=>{n&&(N(!1),j({}),w(!1),g(c=>({...c,email:a.email||"",state:a.state||"",stateCode:a.stateCode||""})))},[n]);const t=()=>{const c={},m=(p.email||"").trim();return(!m||!Ee.test(m))&&(c.email=!0),(!(p.state||"").trim()||!p.stateCode)&&(c.state=!0),(p.firstName||"").trim()||(c.firstName=!0),(p.lastName||"").trim()||(c.lastName=!0),j(c),Object.keys(c).length===0},l=c=>{if(c.preventDefault(),!x){N(!0);return}t()&&(N(!1),d({email:(p.email||"").trim(),state:p.state,stateCode:p.stateCode}))},v=c=>{c.preventDefault(),t()&&(w(!0),u({firstName:(p.firstName||"").trim(),lastName:(p.lastName||"").trim(),email:(p.email||"").trim(),state:p.state,insurance:a.insurance,insuranceName:a.insuranceName}).catch(m=>{m&&m.message==="registration-failed"?window.alert("Registration failed. Please try again."):(console.error("User registration failed:",m),window.alert("error")),w(!1)}))};return e.jsx("div",{className:`activation-popup-overlay${n?" active":""}`,id:"activationPopup",children:e.jsxs("div",{className:"activation-popup",children:[e.jsx("button",{className:"activation-popup-close",onClick:r,children:e.jsx("i",{className:"fa fa-times close-login-popup-pop"})}),e.jsx("h2",{className:"activation-popup-title",children:"Activate"}),e.jsx("p",{className:"activation-popup-subtitle",children:"Your $59.95/year Shine Perks membership is FREE with no recurring fees. Simply complete the form and discounts will activate instantly."}),e.jsxs("div",{className:`activation-popup-content${x?"":" editable-content-false"}`,children:[e.jsx("a",{href:"#",className:"activation-form-edit",onClick:l,children:x?"save":"edit"}),e.jsx("div",{className:"activation-form-wrapper",children:e.jsxs("div",{className:"search-form",children:[e.jsxs("div",{className:"form-group",children:[e.jsx("label",{htmlFor:"activation-email-address",children:"Email Address:"}),e.jsx("input",{type:"email",id:"activation-email-address",className:b.email?"error":void 0,placeholder:"[email protected]",readOnly:!x,value:p.email,onChange:c=>{g(m=>({...m,email:c.target.value})),j(m=>({...m,email:void 0}))}}),e.jsx("div",{className:"error-message",style:b.email?{display:"block"}:void 0,children:"Email is not correct"})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{htmlFor:"activation-state",children:"Select State:"}),e.jsx(re,{id:"activation-state",dropdownId:"activationStateDropdown",className:"form-control state-autocomplete",value:p.state,stateCode:p.stateCode,readOnly:!x,hasError:!!b.state,onText:c=>g(m=>({...m,state:c,stateCode:""})),onSelect:(c,m)=>{g(_=>({..._,state:m,stateCode:c})),j(_=>({..._,state:void 0}))}}),e.jsx("div",{className:"error-message",style:b.state?{display:"block"}:void 0,children:"State is required"})]}),e.jsxs("div",{className:"form-group insurance-select-group",children:[e.jsx("label",{htmlFor:"activation-insurance",className:"select-insurance-label",children:"Dental Insurance:"}),e.jsx("input",{type:"text",id:"activation-insurance",className:"form-control",placeholder:"Insurance",readOnly:!0,disabled:!0,value:a.insuranceName||""})]})]})}),e.jsxs("div",{className:"activation-form-group form-group",children:[e.jsx("label",{className:"activation-form-label",children:"First name:"}),e.jsx("input",{type:"text",id:"activation-first-name",className:`activation-form-input${b.firstName?" error":""}`,placeholder:"First name:",value:p.firstName,onChange:c=>{g(m=>({...m,firstName:c.target.value})),j(m=>({...m,firstName:void 0}))}}),e.jsx("div",{className:"error-message",style:b.firstName?{display:"block"}:void 0,children:"First name is required"})]}),e.jsxs("div",{className:"activation-form-group form-group",children:[e.jsx("label",{className:"activation-form-label",children:"Last name:"}),e.jsx("input",{type:"text",id:"activation-last-name",className:`activation-form-input${b.lastName?" error":""}`,placeholder:"Last name:",value:p.lastName,onChange:c=>{g(m=>({...m,lastName:c.target.value})),j(m=>({...m,lastName:void 0}))}}),e.jsx("div",{className:"error-message",style:b.lastName?{display:"block"}:void 0,children:"Last name is required"})]})]}),e.jsx("button",{className:"activation-submit-btn",onClick:v,disabled:S,children:S?"Processing...":"Activate"}),e.jsxs("p",{className:"activation-popup-footer",children:[e.jsx("strong",{children:a.insuranceName||"Insurance name"})," has partnered with Shine to save you up to 60% on oral care costs, night guards, and professional whitening services. Once activated your account will be created and the website pricing will change to reflect your member discounts. An email will be sent to you to verify your account."]})]})})}const Ie=s.lazy(()=>F(()=>import("./OurMembers.CviCgwKj.js"),__vite__mapDeps([0,1,2]))),Le=s.lazy(()=>F(()=>import("./Eligible.Dv7ptO5T.js"),__vite__mapDeps([3,1]))),De=s.lazy(()=>F(()=>import("./WellnessProgram.BEf2CSF3.js"),__vite__mapDeps([4,1,5,6]))),Re=s.lazy(()=>F(()=>import("./CommonSavings.BnXGH_Yw.js"),__vite__mapDeps([7,1,2,5,6]))),Te=s.lazy(()=>F(()=>import("./HowItWorks.jQiicPSn.js"),__vite__mapDeps([8,1,5,6]))),Pe=s.lazy(()=>F(()=>import("./PartnershipBanner.DbW80Eeq.js"),__vite__mapDeps([9,1,5,6])));function Oe(){s.useEffect(()=>{pe()},[]),oe();const{wrapperId:a,Main:n,mainProps:r,ownsMain:d}=ce(),u=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"product-shine-lander shine-lander-template-page",children:[e.jsx(Se,{}),e.jsx(T,{minHeight:"20vh",children:e.jsx(Ie,{})}),e.jsx(Ce,{}),e.jsx(T,{minHeight:"25vh",children:e.jsx(Le,{})}),e.jsx(T,{minHeight:"90vh",children:e.jsx(De,{})}),e.jsx(T,{minHeight:"80vh",children:e.jsx(Re,{})}),e.jsx(T,{minHeight:"120vh",children:e.jsx(Te,{})}),e.jsx(T,{minHeight:"90vh",children:e.jsx(Pe,{})})]}),e.jsx(Ae,{})]});return e.jsx(ke,{children:d?e.jsx("div",{id:a,children:e.jsx(n,{...r,children:u})}):u})}const Ue=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"}));
2export{He as L,B as a,O as b,Ue as c,Z as s};
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.