PageSourceSearch

https://www.hubblecontacts.com/3f44236d75e2ba1eb51d433f88857fec7eb82574-523d71ddf110f644a4c0.js

js hubblecontacts.com collected 2026-10-03 22:19:10 UTC 33,242 bytes, 1 lines download raw bytes

1(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[4785,7078],{7724:function(e,t,l){"use strict";l.d(t,{Z:function(){return n},c:function(){return r}});var a=l(96540);const r=e=>{let{color:t,type:l,title:r,description:n,children:o,isDisabled:i}=e;return a.createElement("div",{className:"enter-rx-wrapper","data-type":l,"data-color":t,"data-disabled":i},a.createElement("div",{className:"wrapper-head"},a.createElement("h5",{className:"text h5 wrapper-title"},r),n&&a.createElement("p",{className:"text h7"},n)),a.createElement("div",{className:"wrapper-body"},o))},n=e=>{let{color:t,value:l,title:r,description:n,price:o,active:i,setActive:s,isDisabled:c}=e;return a.createElement("label",{htmlFor:l,className:"radio-option","aria-checked":i===l,"data-color":t,"data-disabled":"high-index"===l&&c},a.createElement("input",{id:l,type:"radio",value:l,onClick:()=>s(l)}),a.createElement("span",{className:"circle-icon"}),a.createElement("div",{className:"text-block"},a.createElement("div",{className:"heading"},a.createElement("h5",{className:"title text h5"},r),o&&a.createElement("span",{className:"price text h7 neue"},"+$",o)),a.createElement("p",{className:"description text h10",dangerouslySetInnerHTML:{__html:n}})))}},11509:function(e,t,l){"use strict";var a=l(96540),r=l(24993),n=l.n(r);t.A=e=>{let{value:t,label:l,onClick:r,color:o,active:i,error:s,clearError:c}=e;const u="bothEyes"!==t&&i&&i!==t,p="bothEyes"===t?i:i&&i===t;return a.createElement("label",{className:"prescription-radio",htmlFor:t,"data-color":o,"aria-checked":p,"aria-disabled":u},a.createElement("span",{className:"checkbox "+(s?"checkbox-error":"")},a.createElement(n(),null)),a.createElement("input",{disabled:u,type:"radio",value:t,id:t,onClick:()=>{r(t),null==c||c()}}),a.createElement("span",{className:"title text h8",dangerouslySetInnerHTML:{__html:l}}))}},16463:function(e,t,l){"use strict";l.d(t,{A:function(){return N}});var a=l(96540),r=l(45458),n=l(67092),o=l(63768),i=l(7724),s=l(18646),c=l(11509),u=l(22295),p=l(79586),d=l(87636),m=l(72505),b=l.n(m);const f={power:{default:[{value:"+6.00",label:"+6.00"},{value:"+5.50",label:"+5.50"},{value:"+5.00",label:"+5.00"},{value:"+4.50",label:"+4.50"},{value:"+4.00",label:"+4.00"},{value:"+3.75",label:"+3.75"},{value:"+3.50",label:"+3.50"},{value:"+3.25",label:"+3.25"},{value:"+3.00",label:"+3.00"},{value:"+2.75",label:"+2.75"},{value:"+2.50",label:"+2.50"},{value:"+2.25",label:"+2.25"},{value:"+2.00",label:"+2.00"},{value:"+1.75",label:"+1.75"},{value:"+1.50",label:"+1.50"},{value:"+1.25",label:"+1.25"},{value:"+1.00",label:"+1.00"},{value:"+0.75",label:"+0.75"},{value:"+0.50",label:"+0.50"},{value:"-0.50",label:"-0.50"},{value:"-0.75",label:"-0.75"},{value:"-1.00",label:"-1.00"},{value:"-1.25",label:"-1.25"},{value:"-1.50",label:"-1.50"},{value:"-1.75",label:"-1.75"},{value:"-2.00",label:"-2.00"},{value:"-2.25",label:"-2.25"},{value:"-2.50",label:"-2.50"},{value:"-2.75",label:"-2.75"},{value:"-3.00",label:"-3.00"},{value:"-3.25",label:"-3.25"},{value:"-3.50",label:"-3.50"},{value:"-3.75",label:"-3.75"},{value:"-4.00",label:"-4.00"},{value:"-4.25",label:"-4.25"},{value:"-4.50",label:"-4.50"},{value:"-4.75",label:"-4.75"},{value:"-5.00",label:"-5.00"},{value:"-5.25",label:"-5.25"},{value:"-5.50",label:"-5.50"},{value:"-5.75",label:"-5.75"},{value:"-6.00",label:"-6.00"},{value:"-6.50",label:"-6.50"},{value:"-7.00",label:"-7.00"},{value:"-7.50",label:"-7.50"},{value:"-8.00",label:"-8.00"},{value:"-8.50",label:"-8.50"},{value:"-9.00",label:"-9.00"},{value:"-9.50",label:"-9.50"},{value:"-10.00",label:"-10.00"},{value:"-10.50",label:"-10.50"},{value:"-11.00",label:"-11.00"},{value:"-11.50",label:"-11.50"},{value:"-12.00",label:"-12.00"}],skyhyMonthly:[{value:"+6.00",label:"+6.00"},{value:"+5.50",label:"+5.50"},{value:"+5.00",label:"+5.00"},{value:"+4.50",label:"+4.50"},{value:"+4.00",label:"+4.00"},{value:"+3.75",label:"+3.75"},{value:"+3.50",label:"+3.50"},{value:"+3.25",label:"+3.25"},{value:"+3.00",label:"+3.00"},{value:"+2.75",label:"+2.75"},{value:"+2.50",label:"+2.50"},{value:"+2.25",label:"+2.25"},{value:"+2.00",label:"+2.00"},{value:"+1.75",label:"+1.75"},{value:"+1.50",label:"+1.50"},{value:"+1.25",label:"+1.25"},{value:"+1.00",label:"+1.00"},{value:"+0.75",label:"+0.75"},{value:"+0.50",label:"+0.50"},{value:"-0.50",label:"-0.50"},{value:"-0.75",label:"-0.75"},{value:"-1.00",label:"-1.00"},{value:"-1.25",label:"-1.25"},{value:"-1.50",label:"-1.50"},{value:"-1.75",label:"-1.75"},{value:"-2.00",label:"-2.00"},{value:"-2.25",label:"-2.25"},{value:"-2.50",label:"-2.50"},{value:"-2.75",label:"-2.75"},{value:"-3.00",label:"-3.00"},{value:"-3.25",label:"-3.25"},{value:"-3.50",label:"-3.50"},{value:"-3.75",label:"-3.75"},{value:"-4.00",label:"-4.00"},{value:"-4.25",label:"-4.25"},{value:"-4.50",label:"-4.50"},{value:"-4.75",label:"-4.75"},{value:"-5.00",label:"-5.00"},{value:"-5.25",label:"-5.25"},{value:"-5.50",label:"-5.50"},{value:"-5.75",label:"-5.75"},{value:"-6.00",label:"-6.00"},{value:"-6.50",label:"-6.50"},{value:"-7.00",label:"-7.00"},{value:"-7.50",label:"-7.50"},{value:"-8.00",label:"-8.00"},{value:"-8.50",label:"-8.50"},{value:"-9.00",label:"-9.00"},{value:"-9.50",label:"-9.50"},{value:"-10.00",label:"-10.00"}]},amountSelect:{classic:[{value:"2 10-packs",label:"2 10-packs"}],hydro:[{value:"2 6-packs",label:"2 6-packs"}],skyhy:[{value:"2 10-packs",label:"2 10-packs"}],skyhyMonthly:[{value:"2 single-packs",label:"2 single-packs"}]},products:[{value:"skyhyMonthly",title:"SkyHy by Hubble Monthly",description:""},{value:"skyhy",title:"SkyHy by Hubble Daily",description:""},{value:"hydro",title:"Hydro by Hubble",description:""},{value:"classic",title:"Hubble Classic 2.0 Daily",description:""}],amountRadio:[{title:"3 month supply - $50.00/eye",description:"3 packs of 30 lenses per eye"}
1,{title:"6 month supply - $95.00/eye",description:"6 packs of 30 lenses per eye"},{title:"12 month supply - $180.00/eye",description:"12 packs of 30 lenses per eye"}],hydroAmountRadio:[{title:"3 month supply - $55.00/eye",description:"3 packs of 30 lenses per eye"},{title:"6 month supply - $100.00/eye",description:"6 packs of 30 lenses per eye"},{title:"12 month supply - $190.00/eye",description:"12 packs of 30 lenses per eye"}],skyhyAmountRadio:[{title:"3 month supply - $64.99/eye",description:"3 packs of 30 lenses per eye"},{title:"6 month supply - $116.99/eye",description:"6 packs of 30 lenses per eye"},{title:"12 month supply - $222.99/eye",description:"12 packs of 30 lenses per eye"}],contactInputsTrial:[{label:"Office Name",placeholder:"Enter Office Name",value:"officeName",type:"text"},{label:"Email Address",placeholder:"Enter Email Address",value:"email",type:"email"}],contactInputsPatient:[{label:"Office Name",placeholder:"Enter Office Name",value:"officeName",type:"text"},{label:"Office's Email Address",placeholder:"Enter Email Address",value:"officeEmail",type:"email"},{label:"Patient Name",placeholder:"Enter Patient Name",value:"patientName",type:"text"},{label:"Patient's Email Address",placeholder:"Enter Email Address",value:"patientEmail",type:"email"}],shippingInputs:[[{label:"Address Line 1",placeholder:"Enter Address",value:"address1",type:"text"},{label:"Address Line 2",placeholder:"Enter Address",value:"address2",type:"text"},{label:"Country",placeholder:"Enter Country",value:"country",type:"text"}],[{label:"State",placeholder:"Enter State",value:"state",type:"text"},{label:"City",placeholder:"Enter City",value:"city",type:"text"},{label:"ZIP Code",placeholder:"Enter ZIP Code",value:"zip",type:"text"}]]},v={product:"",prescription:[{power:"",amount:""}],contactInfo:{officeName:"",email:""},shippingAddress:{address1:"",address2:"",country:"",state:"",city:"",zip:""}},y={product:"",prescription:{leftEye:{power:""},rightEye:{power:""}},isOneEye:"",amount:"",contactInfo:{officeName:"",officeEmail:"",patientName:"",patientEmail:""},shippingAddress:{shipToOffice:!1,shipToPatient:!0,address1:"",address2:"",country:"",state:"",city:"",zip:""}};var h=l(98162);const E=e=>{let{label:t,description:l,value:r,onClick:n,active:o,isBold:i,price:s}=e;const c=o&&o===r;return a.createElement("div",{className:"doctor-portal-radio-btn"},a.createElement("label",{className:"doctor-radio",htmlFor:r,"aria-checked":c},a.createElement("span",{className:`round-icon ${s}`}),a.createElement("input",{type:"radio",value:r,id:r,onClick:()=>n(r)}),a.createElement("span",{className:"text h8 title "+(i?"bulky":"neutral")},t,a.createElement("br",null),l&&a.createElement("span",{className:"description"},` (${l})`))))},g=e=>{var t,l,r,n;let{onChange:o,showMessage:i,removePrescription:s,order:c,index:m}=e;const{0:b,1:v}=(0,a.useState)(),y=f.power[c.product]||f.power.default,h=y.filter((e=>{var t;let{value:l}=e;return!c.prescription.some((e=>e.power===l))||(null===(t=c.prescription[m])||void 0===t?void 0:t.power)===l}));return(0,a.useEffect)((()=>{c.product&&v(f.amountSelect[c.product]),y.find((e=>{var t;return e.value===(null===(t=c.prescription[m])||void 0===t?void 0:t.power)}))||o(m,"power","")}),[c.product]),a.createElement("div",{className:"power-row"},a.createElement("div",{className:"select-container"},a.createElement("p",{className:"title text h8 bulky ocean-blue"},"Power"),a.createElement(u.A,{value:(0,d.jI)(y,null===(t=c.prescription[m])||void 0===t?void 0:t.power)||"",onChange:e=>{let{value:t}=e;return o(m,"power",t)},options:h}),!(null!==(l=c.prescription[m])&&void 0!==l&&l.power)&&i&&a.createElement(p.A,null)),a.createElement("div",{className:"select-container"},a.createElement("p",{className:"title text h8 bulky ocean-blue"},"Amount"),a.createElement(u.A,{value:(0,d.jI)(b,null===(r=c.prescription[m])||void 0===r?void 0:r.amount),onChange:e=>{let{value:t}=e;return o(m,"amount",t)},options:b}),!(null!==(n=c.prescription[m])&&void 0!==n&&n.amount)&&i&&a.createElement(p.A,null),m>0&&a.createElement("a",{className:"removeRx",href:"#",onClick:()=>s(m)},"x")))},A=e=>{let{isChecked:t,onChange:l}=e;return a.createElement("div",{className:"toggle-wrapper"},a.createElement("p",{className:"text neutral"},"Ship to Office"),a.createElement("div",{className:"toggle"},a.createElement("input",{className:"toggle-input",id:"checkbox",type:"checkbox",checked:t,onChange:()=>l()}),a.createElement("label",{className:"toggle-label",htmlFor:"checkbox"})),a.createElement("p",{className:"text neutral"},"Ship to Patient"))};var w=e=>{var t,l,m,w,O,k,N,x;
1let{currentTab:I,handleNext:R,showMessage:S,setIsOrderValidationError:P}=e;const{0:C,1:T}=(0,a.useState)("TRIAL_ORDER"===I?v:y),{0:j,1:L}=(0,a.useState)("TRIAL_ORDER"===I?f.contactInputsTrial:f.contactInputsPatient),{0:M,1:D}=(0,a.useState)([{power:"",amount:""}]),{0:_,1:$}=(0,a.useState)(!0),{0:H,1:F}=(0,a.useState)(f.amountRadio),B=/^\w+([\.+-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/,z=f.power[C.product]||f.power.default;(0,a.useEffect)((()=>{const e=Object.entries(C).some((e=>{let[t,l]=e;return"contactInfo"===t?Object.values(l).some((e=>!e)):"shippingAddress"===t?Object.entries(l).some((e=>{let[t,l]=e;return"address2"!==t&&"shipToPatient"!==t&&"shipToOffice"!==t&&!l})):"prescription"===t?Array.isArray(l)?l.some((e=>Object.values(e).some((e=>!e)))):Object.entries(l).some((e=>{let[t,l]=e;return Object.values(l).some((e=>!(e||C.isOneEye&&C.isOneEye!==t)))})):"isOneEye"!==t&&!l}));P(e||!_)}),[C]),(0,a.useEffect)((()=>{L("TRIAL_ORDER"===I?f.contactInputsTrial:f.contactInputsPatient),T("TRIAL_ORDER"===I?v:y),D([{power:"",amount:""}])}),[I]),(0,a.useEffect)((()=>{M.length>=2&&T({...C,prescription:M})}),[M]);const q=e=>{const t=C.product===e?"":e;F("hydro"===e?f.hydroAmountRadio:"skyhy"===e?f.skyhyAmountRadio:f.amountRadio),T({...C,product:t})},V=e=>{const t=C.amount===e?"":e;T({...C,amount:t})},U=(e,t,l)=>{const a={...C.prescription[e],[t]:l},r={...C.prescription,[e]:a},n={...C,prescription:r};T(n)},Y=(e,t,l)=>{const a=(0,r.A)(M);a[e][t]=l,T({...C,prescription:a})},W=e=>{const t=(0,r.A)(M);t.splice(e,1),D(t),T({...C,prescription:t})};(0,a.useEffect)((()=>{"TRIAL_ORDER"===I&&C.prescription.forEach(((e,t)=>{var l;Y(t,"amount",null===(l=f.amountSelect[C.product])||void 0===l?void 0:l[0].value)}))}),[C.product]);const Z=e=>{const t=C.isOneEye===e?"":e;T({...C,isOneEye:t})},G=(e,t)=>{T({...C,shippingAddress:{...C.shippingAddress,[t]:e.target.value}})};return a.createElement("div",{className:"order-form"},a.createElement(o.A,{type:"contacts",title:"TRIAL_ORDER"===I?"Order Trial Lenses":"Order for a Patient",description:"TRIAL_ORDER"===I?"Need to restock on lenses for your patients? Reorder your Hubble trial lenses and we will ship out as many powers as needed to your office. All you have to do is fill out this form and select <b>+ Add Another Prescription</b> to order multiple boxes.":"Order Hubble lenses for your patient with our easy-to-use portal. Simply choose the product, powers, and amount and we will take care of the rest. Orders will be delivered in 3-5 business days and we will bill you monthly for the total cost of all your patient orders."}),a.createElement("div",{className:"form-wrapper"},a.createElement(i.c,{title:"1. Select product",type:"radio",color:"purple"},f.products.map(((e,t)=>{let{title:l,value:r}=e;return a.createElement(E,{label:l,value:r,onClick:q,active:C.product,isBold:!0,key:t})})),!C.product&&S&&a.createElement(p.A,null)),"TRIAL_ORDER"===I?a.createElement(i.c,{title:"2. Enter Prescription",type:"radio",color:"purple"},M.map(((e,t)=>a.createElement(g,{onChange:Y,removePrescription:W,showMessage:S,order:C,key:t,index:t}))),a.createElement("button",{className:"add-prescription-btn",onClick:()=>{M.length<10&&D([].concat((0,r.A)(C.prescription),[{power:"",amount:""}]))}},a.createElement(h.A,{fileName:"Icons/plus.svg",alt:"Plus icon"}),a.createElement("p",{className:"text neutral"},"Add Another Prescription"))):a.createElement(i.c,{title:"2. Enter Prescription",type:"radio",color:"purple"},a.createElement("div",{className:"power-row"},a.createElement("div",{className:"select-container"},a.createElement("p",{className:"title text h8 bulky ocean-blue"},"Right Eye Power"),a.createElement(u.A,{value:(0,d.jI)(z,null===(t=C.prescription)||void 0===t||null===(l=t.rightEye)||void 0===l?void 0:l.power),onChange:e=>{let{value:t}=e;return U("rightEye","power",t)},options:z,isDisabled:C.isOneEye&&"rightEye"!==C.isOneEye}),!(null!==(m=C.prescription)&&void 0!==m&&null!==(w=m.rightEye)&&void 0!==w&&w.power)&&"leftEye"!==C.isOneEye&&S&&a.createElement(p.A,null)),a.createElement("div",{className:"select-container"},a.createElement("p",{className:"title text h8 bulky ocean-blue"},"Left Eye Power"),a.createElement(u.A,{value:(0,d.jI)(z,null===(O=C.prescription)||void 0===O||null===(k=O.leftEye)||void 0===k?void 0:k.power),onChange:e=>{let{value:t}=e;return U("leftEye","power",t)},options:z,isDisabled:C.isOneEye&&"leftEye"!==C.isOneEye}),!(null!==(N=C.prescription)&&void 0!==N&&null!==(x=N.leftEye)&&void 0!==x&&x.power)&&"rightEye"!==C.isOneEye&&S&&a.createElement(p.A,null))),a.createElement("div",{className:"radio-inputs-container"},a.createElement(c.A,{value:"rightEye",label:"Patient only needs right eye prescription",onClick:Z,color:"purple",active:C.isOneEye}),a.createElement(c.A,{value:"leftEye",label:"Patient only needs left eye prescription",onClick:Z,color:"purple",active:C.isOneEye}))),"PATIENT_ORDER"===I&&a.createElement(i.c,{title:"3. Select Amount",type:"radio",color:"purple"},H.map(((e,t)=>{let{title:l,description:r}=e;return a.createElement(E,{label:l,description:r,value:l,onClick:V,active:C.amount,isBold:!1,price:"price",key:t})})),!C.amount&&S&&a.createElement(p.A,null)),a.createElement(i.c,{title:("TRIAL_ORDER"===I?"3.":"4.")+" Enter Your Contact Info",type:"radio",color:"purple"},j.map(((e,t)=>{let{label:l,placeholder:r,value:n,type:o}=e;return a.createElement(s.A,{label:l,placeholder:r,value:C.contactInfo[n],onChange:e=>((e,t)=>{"email"!==t&&"patientEmail"!==t&&"officeEmail"!==t||$(B.test(e.target.value)),T({...C,contactInfo:{...C.contactInfo,[t]:e.target.value}})})(e,n),isEmail:"Email Address"===l||"Patient's Email Address"===l||"Office's Email Address"===l,isValidEmail:B.test(C.contactInfo[n]),isValue:C.contactInfo[n],showMessage:S,isRequiredInput
1:!0,type:o,key:t})}))),a.createElement(i.c,{title:("TRIAL_ORDER"===I?"4.":"5.")+" Enter Shipping Address",type:"radio",color:"purple"},"PATIENT_ORDER"===I&&a.createElement(A,{isChecked:C.shippingAddress.shipToPatient,onChange:()=>{T({...C,shippingAddress:{...C.shippingAddress,shipToOffice:!C.shippingAddress.shipToOffice,shipToPatient:!C.shippingAddress.shipToPatient}})}}),f.shippingInputs[0].map(((e,t)=>{let{label:l,placeholder:r,value:n,type:o}=e;return a.createElement(s.A,{label:l,placeholder:r,value:C.shippingAddress[n],onChange:e=>G(e,n),isRequiredInput:"Address Line 2"!==l,isValue:C.shippingAddress[n],showMessage:S,type:o,key:t})})),a.createElement("div",{className:"inputs-wrapper"},f.shippingInputs[1].map(((e,t)=>{let{label:l,placeholder:r,value:n,type:o}=e;return a.createElement(s.A,{label:l,placeholder:r,value:C.shippingAddress[n],onChange:e=>G(e,n),isRequiredInput:!0,isValue:C.shippingAddress[n],showMessage:S,type:o,key:t})})))),a.createElement(n.A,{label:"Place Order",onClick:()=>(()=>{const e={...C};"classic"===C.product&&(e.product="classic2"),b().post("https://hubble-api-v1.herokuapp.com/api/doctor_form",C,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Credentials":!0,"Access-Control-Allow-Methods":"GET,PUT,POST,DELETE,PATCH,OPTIONS"}}),R()})(),color:"purple"})))};var O=e=>{let{handleBack:t}=e;return a.createElement("div",{className:"doctor-portal-confirmation"},a.createElement(o.A,{title:"Thank you for your order!",type:"contacts"}),a.createElement("div",{className:"info-text"},a.createElement("h5",null,"Your reference number is # ",Math.floor(1e5+9e5*Math.random())),a.createElement("p",null," You will receive an email shortly with your order information."),a.createElement("p",null,"Please contact ",a.createElement("a",{href:"mailto:[email protected]"},"[email protected]")," with any questions.")),a.createElement(n.A,{label:"Place Another Order",onClick:()=>t(),color:"purple"}))},k=l(28007);var N=e=>{let{currentFormTab:t}=e;const l="ORDER",r="SUMMARY",{0:n,1:o}=(0,a.useState)(l),{0:i,1:s}=(0,a.useState)(!1),{0:c,1:u}=(0,a.useState)(!0),p={ORDER:a.createElement(w,{currentTab:t,handleNext:()=>{c?s(!0):(s(!1),o(r))},showMessage:i,setIsOrderValidationError:u}),SUMMARY:a.createElement(O,{handleBack:()=>{(0,k.navigate)("/doctor-portal")}})};return(0,a.useEffect)((()=>(n&&document.body.setAttribute("style","overflow: hidden;"),()=>{document.body.removeAttribute("style")})),[n]),n?a.createElement("div",{className:"doctor-order-flow-wrapper","data-type":"contacts"},a.createElement("div",{className:"order-flow-body grid-section "+("SUMMARY"===n?"confirmation":"")},p[n])):null}},18646:function(e,t,l){"use strict";var a=l(96540),r=l(79586);t.A=e=>{let{label:t,placeholder:l,value:n,onChange:o,onBlur:i,type:s,name:c,isDisabled:u,isValue:p,showMessage:d,isRequiredInput:m,isEmail:b,isValidEmail:f}=e;return a.createElement("div",{className:"prescription-input"},t&&a.createElement("p",{className:"title text h8 bulky ocean-blue"},t),a.createElement("input",{type:s,name:c,className:"text h8 neutral",placeholder:l,defaultValue:n,onChange:o,onBlur:i,disabled:u}),m&&!p&&d&&a.createElement(r.A,null),b&&p&&d&&!f&&a.createElement(r.A,{requiredText:"Invalid email address"}))}},22295:function(e,t,l){"use strict";l.d(t,{A:function(){return m}});var a=l(96540),r=l(73723),n=l(63538),o=l(46784),i=l(63584),s=l(45497),c=l(45849);function u(){for(var e=arguments.length,t=new Array(e),l=0;l<e;l++)t[l]=arguments[l];return e=>{t.forEach((t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)}))}}const p=(0,a.forwardRef)(((e,t)=>{let{value:l,onChange:n,options:o,name:i,placeholder:p,error:m,components:b,isDisabled:f,isContactsSelect:v,isOneEye:y,onMenuOpen:h,defaultFocusOptionValue:E,instanceId:g,...A}=e;const w=(0,s.A)(),O=(0,c.A)(),k=(0,a.useRef)(null);return a.createElement(r.Ay,Object.assign({ref:u(t,k),id:i,name:i,instanceId:g||i,inputId:g||i,className:`new-custom-select${m?" error":""} ${O||w?"new-rx":""}`,classNamePrefix:"customSelect",value:l,onChange:n,options:o,formatOptionLabel:e=>{let{label:t,labelOneEye:l,labelNewRx:r}=e;return a.createElement("div",{dangerouslySetInnerHTML:{__html:y?l:(w||O)&&r||t}})},placeholder:p||"Select...",components:{IndicatorSeparator:()=>null,DropdownIndicator:d,...b},onMenuOpen:()=>
1{if(E)try{const e=k.current,t=o.find((e=>e.value===E));if(!e||!t||l)return;e.setState({focusedOption:t,focusedOptionId:e.getFocusedOptionId(t)},(()=>{e.menuListRef&&e.focusedOptionRef&&(e.menuListRef.scrollTop=e.focusedOptionRef.offsetTop)}))}catch(m){console.error(m)}null==h||h()},"data-error":!!m,isDisabled:f,filterOption:(e,t)=>{var l,a,r,n;return!t||(null===(l=e.data.title)||void 0===l||null===(a=l.toLowerCase)||void 0===a?void 0:a.call(l).includes(t.toLowerCase()))||(null===(r=e.label)||void 0===r||null===(n=r.toLowerCase)||void 0===n?void 0:n.call(r).includes(t.toLowerCase()))}},A))})),d=e=>a.createElement(n.c.DropdownIndicator,e,a.createElement(o.g,{icon:i.Jt$}));var m=p},24993:function(e,t,l){var a=l(96540);function r(e){return a.createElement("svg",e,a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m9.174 2.124-4.658 4.5-.514.497-.521-.49-2.652-2.5 1.028-1.092 2.132 2.01 4.143-4.004 1.042 1.08z",fill:"#fff"}))}r.defaultProps={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none"},e.exports=r,r.default=r},45497:function(e,t,l){"use strict";var a=l(96540),r=l(79085),n=l(82074),o=l(88110);t.A=()=>{const{0:e,1:t}=(0,a.useState)(!1),{0:l,1:i}=(0,a.useState)(!0),s=(0,r.SO)();(0,o.A)(),(0,n.A)();return(0,a.useEffect)((()=>{t(s<578)}),[s]),l&&e}},45849:function(e,t,l){"use strict";var a=l(96540),r=l(79085);t.A=()=>{const{0:e,1:t}=(0,a.useState)(!0),{0:l,1:n}=(0,a.useState)(!1),o=(0,r.SO)();return(0,a.useEffect)((()=>{n(o<578)}),[o]),e&&!l}},46784:function(e,t,l){"use strict";l.d(t,{g:function(){return g}});var a=l(86429),r=l(5556),n=l.n(r),o=l(96540);function i(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),l.push.apply(l,a)}return l}function s(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?i(Object(l),!0).forEach((function(t){u(e,t,l[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):i(Object(l)).forEac
1h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))}))}return e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}function p(e,t){if(null==e)return{};var l,a,r=function(e,t){if(null==e)return{};var l,a,r={},n=Object.keys(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||(r[l]=e[l]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(r[l]=e[l])}return r}function d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var l=Object.prototype.toString.call(e).slice(8,-1);"Object"===l&&e.constructor&&(l=e.constructor.name);if("Map"===l||"Set"===l)return Array.from(e);if("Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return m(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var l=0,a=new Array(t);l<t;l++)a[l]=e[l];return a}function b(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var f=["style"];var v=!1;try{v=!0}catch(w){}function y(e){return e&&"object"===c(e)&&e.prefix&&e.iconName&&e.icon?e:a.qg.icon?a.qg.icon(e):null===e?null:e&&"object"===c(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function h(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?u({},e,t):{}}var E=["forwardedRef"];function g(e){var t=e.forwardedRef,l=p(e,E),r=l.icon,n=l.mask,o=l.symbol,i=l.className,c=l.title,m=l.titleId,b=l.maskId,f=y(r),w=h("classes",[].concat(d(function(e){var t,l=e.beat,a=e.fade,r=e.beatFade,n=e.bounce,o=e.shake,i=e.flash,s=e.spin,c=e.spinPulse,p=e.spinReverse,d=e.pulse,m=e.fixedWidth,b=e.inverse,f=e.border,v=e.listItem,y=e.flip,h=e.size,E=e.rotation,g=e.pull,A=(u(t={"fa-beat":l,"fa-fade":a,"fa-beat-fade":r,"fa-bounce":n,"fa-shake":o,"fa-flash":i,"fa-spin":s,"fa-spin-reverse":p,"fa-spin-pulse":c,"fa-pulse":d,"fa-fw":m,"fa-inverse":b,"fa-border":f,"fa-li":v,"fa-flip":!0===y,"fa-flip-horizontal":"horizontal"===y||"both"===y,"fa-flip-vertical":"vertical"===y||"both"===y}
1,"fa-".concat(h),null!=h),u(t,"fa-rotate-".concat(E),null!=E&&0!==E),u(t,"fa-pull-".concat(g),null!=g),u(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(A).map((function(e){return A[e]?e:null})).filter((function(e){return e}))}(l)),d(i.split(" ")))),O=h("transform","string"==typeof l.transform?a.qg.transform(l.transform):l.transform),k=h("mask",y(n)),N=(0,a.Kk)(f,s(s(s(s({},w),O),k),{},{symbol:o,title:c,titleId:m,maskId:b}));if(!N)return function(){var e;!v&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",f),null;var x=N.abstract,I={ref:t};return Object.keys(l).forEach((function(e){g.defaultProps.hasOwnProperty(e)||(I[e]=l[e])})),A(x[0],I)}g.displayName="FontAwesomeIcon",g.propTypes={beat:n().bool,border:n().bool,beatFade:n().bool,bounce:n().bool,className:n().string,fade:n().bool,flash:n().bool,mask:n().oneOfType([n().object,n().array,n().string]),maskId:n().string,fixedWidth:n().bool,inverse:n().bool,flip:n().oneOf([!0,!1,"horizontal","vertical","both"]),icon:n().oneOfType([n().object,n().array,n().string]),listItem:n().bool,pull:n().oneOf(["right","left"]),pulse:n().bool,rotation:n().oneOf([0,90,180,270]),shake:n().bool,size:n().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:n().bool,spinPulse:n().bool,spinReverse:n().bool,symbol:n().oneOfType([n().bool,n().string]),title:n().string,titleId:n().string,transform:n().oneOfType([n().string,n().object]),swapOpacity:n().bool},g.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var A=function e(t,l){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof l)return l;var r=(l.children||[]).map((function(l){return e(t,l)})),n=Object.keys(l.attributes||{}).reduce((function(e,t){var a=l.attributes[t];switch(t){case"class":e.attrs.className=a,delete l.attributes.class;break;case"style":e.attrs.style=a.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var l,a=t.indexOf(":"),r=b(t.slice(0,a)),n=t.slice(a+1).trim();return r.startsWith("webkit")?e[(l=r,l.charAt(0).toUpperCase()+l.slice(1))]=n:e[r]=n,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=a:e.attrs[b(t)]=a}return e}),{attrs:{}}),o=a.style,i=void 0===o?{}:o,c=p(a,f);return n.attrs.style=s(s({},n.attrs.style),i),t.apply(void 0,[l.tag,s(s({},n.attrs),c)].concat(d(r)))}.bind(null,o.createElement)},52961:function(e,t,l){"use strict";l.d(t,{L:function(){return r},l:function(){return a}});const a=[{label:"1",value:1},{label:"2",value:2},{label:"3",value:3},{label:"4",value:4},{label:"5",value:5},{label:"6",value:6},{label:"7",value:7},{label:"8",value:8},{label:"9",value:9}],r={rightEye:"Right (OD)",leftEye:"Left (OS)",baseCurve:"B.C.",diameter:"D",power:"P",axis:"AXS",sphere:"SPH",cylinder:"CYL",pd:"PD",addPower:"A.P."}},63768:function(e,t,l){"use strict";var a=l(96540),r=l(46784),n=l(6776);t.A=e=>{let{type:t,title:l,description:o,onBack:i}=e;return a.createElement("div",{className:"order-heading","data-type":t},i&&a.createElement("button",{className:"back-button",onClick:i},a.createElement(r.g,{icon:n.Wzs}),a.createElement("span",{className:"text h8 bulky"},"Go Back")),a.createElement("h3",{className:"title text h3"},l),a.createElement("p",{className:"description text h7",dangerouslySetInnerHTML:{__html:o}}))}},77528:function(e,t,l){"use strict";var a=l(96540),r=l(68154),n=l(28007);function o(e){let{description:t,lang:l,meta:o,title:i,noIndex:s=!1,schemaMarkup:c,price:u,ogType:p="website",image:d,url:m,publishedTime:b,modifiedTime:f,tags:v}=e;const{site:y}=(0,n.useStaticQuery)("63159454"),h=t||y.siteMetadata.description,E=[{name:"description",content:h},{property:"og:title",content:i},{property:"og:image",content:d||"https://hubblecontacts.com/static/Hubble-Contacts-Homepage-Inset-Image-mobile.webp"},{property:"og:description",content:h},{property:"og:type",content:p},{name:"twitter:card",content:d?"summary_large_image":"summary"},{name:"twitter:creator",content:y.siteMetadata.author},{name:"twitter:title",content:i},{name:"twitter:description",content:h}];return d&&E.push({name:"twitter:image",content:d}),m&&E.push({property:"og:url",content:m}),"article"===p&&(b&&E.push({property:"article:published_time",content:b}),f&&E.push({property:"article:modified_time",content:f}),null==v||v.forEach((e=>{E.push({property:"article:tag",content:e})}))),s&&E.push({name:"robots",content:"noindex"}),a.createElement(r.Helmet,{htmlAttributes:{lang:l},title:i,titleTemplate:`%s${y.siteMetadata.title}`,meta:E},(null==c?void 0:c.length)&&a.createElement("script",{type:"application/ld+json"},JSON.stringify(c)))}o.defaultProps={lang:"en",meta:[],description:""},t.A=o},79586:function(e,t,l){"use strict";var a=l(96540);t.A=e=>{let{className:t,requiredText:l,showAsterisk:r=!0}=e;return a.createElement("div",{className:`error-block ${t}`},r&&"*",l||"This field is required")}},87636:function(e,t,l){"use strict";l.d(t,{B9:function(){return m},BI:function(){return p},BL:function(){return b},O9:function(){return o},Qm:function(){return v},Tj:function(){return c},W$:function(){return E},Zr:function(){return d},jI:function(){return u},lY:function(){return s},sg:function(){return g},sq:function(){return i},xS:function(){return f}});var a=l(45458),r=(l(28007),l(52961)),n=void 0;const o=(e,t)=>Object.entries(e).map((e=>{let[l,a]=e;return"pd"!=l?`${r.L[l]}: ${i(a,t)}`:a?`${r.L[l]}: ${a}`:void 0})).join("</br>"),i=(e,t)=>Object.entries(e).filter((e=>{let[t,l]=e;return l})).reduce(((e,l)=>
1{let[n,o]=l;return[].concat((0,a.A)(e),["readers"!==(null==t?void 0:t.value)&&o||"readers"===(null==t?void 0:t.value)&&("0"!==o&&"+0.0"!==o||"sphere"===n&&o)?`${r.L[n]} = ${"diameter"===n?Number(o).toFixed(1):o}`:""])}),[]).filter((e=>e)).join(", "),s=(e,t)=>{const l=new URLSearchParams("");Object.entries(t).map((e=>{let[t,a]=e;return a.length&&l.set(t,a.join(","))}));const a=`${e}?${l.toString()}`;void 0!==window&&window.history.replaceState(null,null,a)},c={glasses:"orange",sunglasses:"green",contacts:"purple"},u=(e,t)=>e?e.find((e=>e.value===t)):"",p=(e,t,l)=>{var a;const r=Array.isArray(e)?e:[e];return null==r||null===(a=r.map((e=>e.value===t&&e[l])))||void 0===a?void 0:a.filter((e=>!!e))[0]},d=e=>e.charAt(0).toUpperCase()+e.slice(1),m=e=>/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),b=28,f=e=>{var t;const l=Number(null==e?void 0:e.cadence);if(Number.isFinite(l)&&l>0&&l%b==0)return l;const a=Number(null!==(t=null==e?void 0:e.cadence)&&void 0!==t?t:null==e?void 0:e.days);return!Number.isFinite(a)||a<=0?b:Math.max(b,Math.floor(a/b)*b)},v=e=>{let t="Every ";return t+=e/7>4?(e/28).toFixed(0)+" Months":(e/7).toFixed(0)+" Weeks",t},y="following_cadence_update_days",h=[35,42],E=e=>{var t;const l=Array.isArray(null==e?void 0:e.properties)?e.properties:[],a=(null==e?void 0:e[y])||(null===(t=l.find((e=>e.name===y)))||void 0===t?void 0:t.value);return h.includes(Number(a))?Number(a):null},g=function(e,t,l){let a;void 0===t&&(t=300),void 0===l&&(l={leading:!1,trailing:!0});let r=!1;const o=function(){for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return new Promise(((o,s)=>{const c=l.leading&&!r;if(clearTimeout(a),a=setTimeout((async()=>{if(l.trailing&&!c)try{const t=await e.apply(n,i);o(t)}catch(t){s(t)}r=!1}),t),c)try{const t=e.apply(n,i);r=!0,o(t)}catch(u){s(u)}}))};return o.cancel=()=>clearTimeout(a),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.