(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[552],{40439:function(e,i,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/leave_review",function(){return s(84123)}])},84123:function(e,i,s){"use strict";s.r(i),s.d(i,{__N_SSP:function(){return u},default:function(){return leave_review}});var t=s(85893);s(25675);var a=s(67294);s(88889);var n=s(58619),o=s(6154),r=s(49705);s(99517);var c=s(58503),l=s(83223),m=s(60229);s(41664);var LeaveReview_LeaveReviewTwo=()=>{let e=(0,m.Z)();return(0,t.jsxs)("div",{className:"container my-5",children:[(0,t.jsxs)("div",{className:"section-heading text-center desc-rev ",children:[(0,t.jsx)("span",{className:"tagline  fs-3 fw-bold color-primary",children:"❝ We Value Your Input ❞"}),(0,t.jsx)("p",{className:"color-black mx-auto desc-rev ",children:"Your opinion is important to us, and we genuinely appreciate your feedback. Let us know about your experience, and your valuable insights will assist us in making improvements. Stay connected and receive our latest updates by leaving a review and following us on Facebook."})]})," ",(0,t.jsx)("div",{className:"ag-format-container",children:(0,t.jsxs)("div",{className:"ag-courses_box",children:[(0,t.jsx)("div",{className:"ag-courses_item",children:(0,t.jsxs)("a",{href:"http://search.google.com/local/writereview?placeid=ChIJk6rjLFp3PIgRCSMBEWdMVzM ",className:"ag-courses-item_link",children:[(0,t.jsx)("div",{className:"ag-courses-item_bg"}),(0,t.jsx)("div",{className:"ag-courses-item_title fs-6",children:"Share Your Thoughts On Google"}),(0,t.jsx)("div",{className:"ag-courses-item_date-box mt-2",children:(0,t.jsx)("img",{loading:"lazy",src:"".concat("","/assets/img/googlee.png"),alt:"Image"})})]})}),(0,t.jsx)("div",{className:"ag-courses_item",children:(0,t.jsxs)("a",{className:"ag-courses-item_link",href:" ".concat(e?"fb://profile/100057053276914":"https://www.facebook.com/maumeediscpharm"),children:[(0,t.jsx)("div",{className:"ag-courses-item_bg"}),(0,t.jsx)("div",{className:"ag-courses-item_title fs-6",children:"Stay Connected on Facebook"}),(0,t.jsx)("div",{className:"ag-courses-item_date-box",children:(0,t.jsx)("img",{loading:"lazy",src:"".concat("","/assets/img/faceboook.png"),alt:"Image"})})]})})]})})]})};s(14664);var LeaveReviewThree=e=>{let{data:i}=e,s=(0,m.Z)();return(0,t.jsx)("div",{className:"container pb-5",children:(0,t.jsx)("div",{className:"wcu-section section-gap-top pb-5",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)("div",{className:"row justify-content-center",children:(0,t.jsx)("div",{className:"col-md-10",children:(0,t.jsxs)("div",{className:"section-heading heading-white text-center mb-40",children:[(0,t.jsxs)("span",{className:"tagline fs-3 fw-bold color-primary",children:["❝ ",null==i?void 0:i.bigHeader," ❞"]}),(0,t.jsx)("p",{className:"color-black",children:null==i?void 0:i.description})]})})}),(0,t.jsxs)("div",{className:"col-12 d-flex justify-content-center align-items-center flex-wrap",children:[(0,t.jsx)("a",{href:" ".concat(s?"https://m.facebook.com/LLPharmacy":"".concat(null==i?void 0:i.social_media.facebook.link_desktop)),children:(0,t.jsxs)("div",{className:"flip",children:[(0,t.jsx)("div",{className:"front bg-primary",children:(0,t.jsx)("img",{src:"".concat("","/assets/img/fb_svg.svg")})}),(0,t.jsx)("div",{className:"back bg-primary ",children:(0,t.jsx)("p",{children:null==i?void 0:i.social_media.facebook.text})})]})}),(0,t.jsx)("a",{href:" ".concat(s?" ".concat(null==i?void 0:i.social_media.google.link_desktop):"".concat(null==i?void 0:i.social_media.google.link_desktop)),children:(0,t.jsxs)("div",{className:"flip",children:[(0,t.jsxs)("div",{className:"front d-flex flex-column justify-content-end align-items-center pb-5",children:[(0,t.jsx)("img",{src:"".concat("","/assets/img/googlee.png")}),(0,t.jsx)("b",{children:" Milwaukee "})]}),(0,t.jsx)("div",{className:"back ",children:(0,t.jsxs)("p",{children:[null==i?void 0:i.social_media.google.text," Milwaukee "]})})]})}),(0,t.jsx)("a",{href:" ".concat(s?" ".concat(null==i?void 0:i.social_media.googleSec.link_desktop):"".concat(null==i?void 0:i.social_media.googleSec.link_desktop)),children:(0,t.jsxs)("div",{className:"flip",children:[(0,t.jsxs)("div",{className:"front d-flex flex-column justify-content-end align-items-center pb-5",children:[(0,t.jsx)("img",{src:"".concat("","/assets/img/googlee.png")}),(0,t.jsx)("b",{children:" West Allis "})]}),(0,t.jsx)("div",{className:"back",children:(0,t.jsxs)("p",{className:"px-2",children:[null==i?void 0:i.social_media.googleSec.text," West Allis"]})})]})})]})]})})})},d=s(89562),p=s(66380),u=!0,leave_review=e=>{var i,s;let{data:m}=e,[u,v]=(0,a.useState)([]),[h,_]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{let fetchAppointment=async()=>{try{let e=await o.Z.get("".concat("https://testing.revealsite.com/content/lifelongpharmacy","/leave_review")),i=e.data;v(i),_(!1)}catch(e){console.log(e)}};fetchAppointment()},[]),h)return(0,t.jsx)(r.Z,{show:h});let x=JSON.parse('{"base":{"colors":{"primary-color":"#005b00","primary-Hover":"#2c5b04","Secondary-color":"#8cbf3f","Secondary-Hover":"#c6f175","third_color":"#47562c"},"sections":[{"section_type":"header","section_variation":4},{"section_type":"footer","section_variation":2},{"section_type":"banner","section_variation":3}],"styles":[{"section_type":"form_type","section_variation":1},{"section_type":"button_type","section_variation":3},{"section_type":"heading","section_variation":5}]},"home":{"sections":[{"section_type":"smart_slider","section_variation":3},{"section_type":"slider","section_variation":7},{"section_type":"home_featured_services","section_variation":2},{"section_type":"appointment_split","section_variation":2},{"section_type":"home_about","section_variation":3},{"section_type":"llp_splitter","section_variation":1},{"section_type":"counter","section_variation":1},{"section_type":"parallax_section","section_variation":1},{"section_type":"reviews","section_variation":4},{"section_type":"splitter_Refill","section_variation":2},{"section_type":"appointment_banner","section_variation":null},{"section_type":"boxes","section_variation":null},{"section_type":"appointment_form","section_variation":4},{"section_type":"contact_form","section_variation":2},{"section_type":"team_members","section_variation":1}]},"about":{"sections":[{"section_type":"welcome_section","section_variation":2},{"section_type":"appointment_split","section_variation":2},{"section_type":"pro_skills","section_variation":2},{"section_type":"splitter_Refill","section_variation":null},{"section_type":"counter","section_variation":null},{"section_type":"reviews","section_variation":4}]},"contact_us":{"sections":[{"section_type":"contact_us","section_variation":2}]},"Service":{"sections":[{"section_type":"service","section_variation":2},{"section_type":"appointment_split","section_variation":null},{"section_type":"splitter_Refill","section_variation":2},{"section_type":"reviews","section_variation":4},{"section_type":"appointment_form","section_variation":4}]},"Service_Details":{"sections":[{"section_type":"service_details","section_variation":3},{"section_type":"appointment_split","section_variation":null},{"section_type":"splitter_Refill","section_variation":2},{"section_type":"reviews","section_variation":4},{"section_type":"appointment_form","section_variation":3}]},"Appointment":{"sections":[{"section_type":"appointment","section_variation":1}]},"LeaveReview":{"sections":[{"section_type":"LeaveReview","section_variation":2}]}}'),N=null===(i=x.base)||void 0===i?void 0:i.sections.find(e=>"banner"===e.section_type),g=N.section_variation,f=null===(s=x.LeaveReview)||void 0===s?void 0:s.sections.find(e=>"LeaveReview"===e.section_type),b=f.section_variation;return(0,t.jsxs)(n.Z,{NotHome:!0,footer:2,title:m.title,description:m.description,children:[(0,t.jsx)("div",{className:"d-sm-block d-none",children:1===g?(0,t.jsx)(c.Z,{image:null==m?void 0:m.banner_image,title:null==m?void 0:m.title}):2===g?(0,t.jsx)(l.Z,{image:null==m?void 0:m.banner_image,title:null==m?void 0:m.title}):3===g?(0,t.jsx)(d.Z,{image:null==m?void 0:m.banner_image,title:null==m?void 0:m.title}):4===g?(0,t.jsx)(p.Z,{image:null==m?void 0:m.banner_image,title:null==m?void 0:m.title}):(0,t.jsx)(c.Z,{image:null==m?void 0:m.banner_image,title:null==m?void 0:m.title})}),1===b?(0,t.jsx)(LeaveReview_LeaveReviewTwo,{data:m}):(0,t.jsx)(LeaveReviewThree,{data:m})]})}},99517:function(e,i,s){"use strict";var t=s(85893),a=s(67294),n=s(82175),o=s(16310),r=s(60229),c=s(6154),l=s(22920),m=s(50259),d=s(73539);let RefillForm=e=>{let{btnDark:i,textDark:s,btnWhite:p}=e,{executeRecaptcha:u}=(0,m.xX)(),[v,h]=(0,a.useState)("");(0,r.Z)();let[_,x]=(0,a.useState)(!1),N=o.Ry({firstName:o.Z_().required("First Name is required"),lastName:o.Z_().required("Last Name is required"),phoneNumber:o.Z_().matches(/^[0-9]{10}$/,"Phone Number must be a 10-digit number").required("Phone Number is required"),faxNumber:o.Z_(),emailAddress:o.Z_().email("Invalid email address"),prescriptionNumbers:o.IX().of(o.Z_().matches(/^[0-9]{6,8}$/,"Prescription Number must be a 6 to 8 digit number").required("Prescription Number is required")),comments:o.Z_()}),onSubmit=async(e,i)=>{let{resetForm:s}=i;x(!0);let t={first_name:e.firstName,last_name:e.lastName,phone_number:e.phoneNumber,email_address:e.emailAddress,fax_number:e.faxNumber,comments:e.comments,prescriptions:e.prescriptionNumbers.map(e=>({prescription_number:e}))};try{let e=await u("register");await c.Z.post("".concat("https://testing.revealsite.com/content/lifelongpharmacy","/create-assessment/"),{token:e}),await c.Z.post("".concat("https://testing.revealsite.com/content/lifelongpharmacy","/refill-requests/"),t,config),(0,l.Am)("Thank you! Your prescriptions refill request has been submitted.",{hideProgressBar:!0,autoClose:2e3,type:"success",position:"bottom-right"}),s()}catch(e){(0,l.Am)(e.message,{hideProgressBar:!0,autoClose:2e3,type:"error",position:"bottom-right"})}finally{x(!1)}},g=(0,n.TA)({initialValues:{firstName:"",lastName:"",phoneNumber:"",faxNumber:"",emailAddress:"",prescriptionNumbers:[""],comments:""},validationSchema:N,onSubmit}),{errors:f,touched:b,handleChange:j,handleBlur:y,handleSubmit:w}=g;return(0,t.jsx)("div",{className:"contact-form-wrapper",children:(0,t.jsx)("form",{onSubmit:w,action:"#",className:"contact-form",children:(0,t.jsxs)("div",{className:"row ",children:[(0,t.jsx)("div",{className:"col-sm-6 mt-4 ",children:(0,t.jsxs)("div",{className:"form-floating",children:[(0,t.jsx)("input",{className:"form-control bg-white",type:"text",placeholder:"First Name",id:"firstName",name:"firstName",value:g.values.firstName,onChange:g.handleChange}),(0,t.jsx)("label",{children:"First Name*"}),g.touched.firstName&&g.errors.firstName&&(0,t.jsx)("div",{className:"error",children:g.errors.firstName})]})}),(0,t.jsx)("div",{className:"col-sm-6 mt-4 ",children:(0,t.jsxs)("div",{className:"form-floating",children:[(0,t.jsx)("input",{className:"form-control bg-white",type:"text",placeholder:"First Name",id:"lastName",name:"lastName",value:g.values.lastName,onChange:g.handleChange}),(0,t.jsx)("label",{children:"Last Name*"}),g.touched.lastName&&g.errors.lastName&&(0,t.jsx)("div",{className:"error",children:g.errors.lastName})]})}),(0,t.jsx)("div",{className:"col-sm-6 mt-4 ",children:(0,t.jsxs)("div",{className:"form-floating",children:[(0,t.jsx)("input",{className:"form-control bg-white ",type:"text",placeholder:"First Name",id:"phoneNumber",name:"phoneNumber",value:g.values.phoneNumber,onChange:g.handleChange}),(0,t.jsx)("label",{children:"Phone number*"}),g.touched.phoneNumber&&g.errors.phoneNumber&&(0,t.jsx)("div",{className:"error",children:g.errors.phoneNumber})]})}),(0,t.jsx)("div",{className:"col-sm-6 mt-4 ",children:(0,t.jsxs)("div",{className:"form-floating",children:[(0,t.jsx)("input",{className:"form-control bg-white ",type:"number",placeholder:"First Name",id:"faxNumber",name:"faxNumber",value:g.values.faxNumber,onChange:g.handleChange}),(0,t.jsx)("label",{children:"Fax number"}),g.touched.faxNumber&&g.errors.faxNumber&&(0,t.jsx)("div",{className:"error",children:g.errors.faxNumber})]})}),(0,t.jsx)("div",{className:"col-sm-12 mt-4 ",children:(0,t.jsxs)("div",{className:"form-floating",children:[(0,t.jsx)("input",{className:"form-control bg-white",type:"email",placeholder:"Email",id:"emailAddress",name:"emailAddress",value:g.values.emailAddress,onChange:g.handleChange}),(0,t.jsx)("label",{children:"Email*"}),g.touched.emailAddress&&g.errors.emailAddress&&(0,t.jsx)("div",{className:"error",children:g.errors.emailAddress})]})}),g.values.prescriptionNumbers.map((e,i)=>(0,t.jsx)("div",{className:"col-sm-12 mt-4 ",children:(0,t.jsxs)("div",{className:"form-floating",children:[(0,t.jsx)("input",{type:"number",className:"form-control bg-white",placeholder:"xxx-xxx",name:"prescriptionNumbers[".concat(i,"]"),onChange:j,onBlur:y,value:g.values.prescriptionNumbers[i]}),(0,t.jsx)("label",{children:" Prescription Number*"}),f.prescriptionNumbers&&f.prescriptionNumbers[i]&&b.prescriptionNumbers&&b.prescriptionNumbers[i]&&(0,t.jsx)("div",{className:"error",children:f.prescriptionNumbers[i]})]})},i)),(0,t.jsx)("div",{className:"col-12 mt-4 d-flex justify-content-start ",children:(0,t.jsx)(d.Z,{type:"button",text:"Add Prescription",onClick:()=>{g.setFieldValue("prescriptionNumbers",[...g.values.prescriptionNumbers,""])}})}),(0,t.jsx)("div",{className:"col-sm-12 mt-4",children:(0,t.jsxs)("div",{className:"form-floating",children:[(0,t.jsx)("textarea",{className:"form-control bg-white",placeholder:"Comments",name:"comments",onChange:j,onBlur:y,value:g.values.comments,style:{height:"200px"}}),(0,t.jsx)("label",{children:"Comments"}),f.comments&&b.comments&&(0,t.jsx)("div",{className:"error",children:f.comments})]})}),(0,t.jsxs)("div",{className:"col-12  mt-4 d-flex justify-content-center",children:[(0,t.jsx)(d.Z,{text:"submit",type:"submit",isSubmitting:_}),v&&(0,t.jsxs)("p",{children:["Token: ",v]})]})]})})})};i.Z=()=>(0,t.jsx)(m.pm,{reCaptchaKey:"6LdCkHMmAAAAAMUjTAXUMuGuUn9qIkwXHUTLxVSg",children:(0,t.jsx)(RefillForm,{})})}},function(e){e.O(0,[22,259,619,965,774,888,179],function(){return e(e.s=40439)}),_N_E=e.O()}]);