1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7d3234c6-f017-4878-a259-b99f27096ce7",e._sentryDebugIdIdentifier="sentry-dbid-7d3234c6-f017-4878-a259-b99f27096ce7")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6081],{21079:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/weight-loss/refer-a-friend",function(){return n(44713)}])},54795:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(85893);function i(e){let{children:t,className:n}=e;return(0,r.jsx)("div",{className:"overflow-hidden rounded-xl border border-black/10 bg-white p-6 md:p-8 ".concat(n),children:t})}},44713:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var r=n(85893),i=n(67294),a=n(98215),o=n(73612),s=n(54795),c=n(5510);let l=(0,c.r)(5e3);var d=()=>(0,r.jsxs)(s.Z,{children:[(0,r.jsxs)("p",{className:"t-18 mb-6 font-medium",children:["Refer a Friend (Give ",l,", get ",l,")"]}),(0,r.jsxs)("div",{children:["Your unique referral link will appear here once your first order has been dispatched. Share it with friends and family and when their first order is dispatched, you'll both receive ",l," credit towards your next order."]})]}),u=n(41664),f=n.n(u);function h(e){let{size:t=20,className:n,...i}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,viewBox:"0 0 24 24",fill:"none",className:n,...i,children:(0,r.jsx)("path",{d:"M16 1H4C2.895 1 2 1.895 2 3V15H4V3H16V1ZM20 5H8C6.895 5 6 5.895 6 7V21C6 22.105 6.895 23 8 23H20C21.105 23 22 22.105 22 21V7C22 5.895 21.105 5 20 5ZM20 21H8V7H20V21Z",fill:"currentColor"})})}let p=(0,c.r)(5e3);var y=e=>{let{referralCode:t}=e,n="".concat("https://medicspot.referral-factory.com","/").concat(t),[a,o]=(0,i.useState)(!1),c=async()=>{try{await navigator.clipboard.writeText(n),o(!0),setTimeout(()=>o(!1),2e3)}catch(e){console.error("Copy failed",e)}};return(0,r.jsxs)(s.Z,{children:[(0,r.jsxs)("p",{className:"t-18 mb-2 font-medium",children:["Your Refer a Friend link (Save ",p," on your next order)"]}),(0,r.jsxs)("p",{className:"text-gray-600 mb-6 text-sm",children:["Once your friend's first order has been dispatched, you'll both receive ",p," credit towards your next order."]}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)("input",{type:"text",value:n,readOnly:!0,onFocus:e=>{e.target.select()},className:"border-gray-300 text-gray-700 focus:ring-blue-500 flex-1 rounded-lg border px-4 py-2 text-sm focus:ring-2 focus:outline-0"}),(0,r.jsx)("button",{onClick:c,className:"bg-blue-600 hover:bg-blue-700 rounded-lg px-3 py-2 text-sm text-white focus:ring-2 focus:ring-blue-400 focus:outline-0",children:(0,r.jsx)(h,{className:"text-darkNavy"})})]}),a&&(0,r.jsx)("div",{className:"text-green-600 mt-2 text-sm",children:"Copied!"}),(0,r.jsxs)("p",{className:"text-gray-600 mt-4 text-sm",children:["By sharing this link, you agree to our"," ",(0,r.jsx)(f(),{href:"https://www.medicspot.co.uk/terms-conditions/refer-a-friend-terms-and-conditions",className:"text-blue-600 hover:text-blue-700 underline",target:"_blank",rel:"noopener noreferrer",children:"Terms and Conditions"}),". You may share your unique referral link privately with friends and family only. Public sharing on social media, online forums or any other public channel is not allowed."]})]})};let m=()=>{let{referralFactoryUserCode:e}=(0,a.i)();return e?(0,r.jsx)(y,{referralCode:e}):(0,r.jsx)(d,{})};m.getLayout=e=>(0,r.jsx)(o.Z,{children:e});var b=m},93748:function(e,t,n){"use strict";n.d(t,{A2:function(){return a},YS:function(){return r},qe:function(){return i}});let r=async e=>{let{flowId:t,questionAnswers:n}=e,r=await fetch("/api/semble/create-consultation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({flowId:t,...n&&{questionAnswers:n}})}),i=await r.json();return{response:r,json:i}},i=async()=>{let e=await fetch("/api/semble/get-consultations-with-notifications"),t=await e.json();return{response:e,json:t}},a=async e=>{let{consultationId:t}=e,n=await fetch("/api/semble/get-consultation-order-submission-status?consultationId=".concat(t)),r=await n.json();return{response:n,json:r}}},44122:function(e,t,n){"use strict";n.d(t,{_s:function(){return r},hK:function(){return i},tq:function(){return o},xu:function(){return a}});let r=async()=>{let e=await fetch("/api/semble/get-patient"),t=await e.json();return{response:e,json:t}},i=async e=>{let t=await fetch("/api/semble/create-patient",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({patientData:e})}),n=await t.json();return{response:t,json:n}},a=async e=>{let t=await fetch("/api/semble/update-patient",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({patientData:e})}),n=await t.json();return{response:t,json:n}},o=async(e,t,n)=>{let r=await fetch("/api/semble/create-patient-and-consultation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({patientData:e,flowId:t,...n&&{questionAnswers:n}})}),i=await r.json();return{response:r,json:i}}},72790:function(e,t,n){"use strict";n.d(t,{E:function(){return i},a:function(){return r}});let r=async e=>{let t=await fetch("/api/semble/add-gp-relationship",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({relationshipContact:e})}),n=await t.json();return{response:t,json:n}},i=async e=>{let t=await fetch("/api/semble/update-gp-relationship",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({relationshipContact:e})}),n=await t.json();return{response:t,json:n}}},5510:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});let r=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"\xa3";if(0===e)return"Free";let a=e%100,o=(e-a)/100;
1return(t=r||0!==a?"".concat(i).concat(o,".").concat(a):"".concat(i).concat(o),n)?"".concat(t,"/mo"):t}}},function(e){e.O(0,[9345,4898,120,5837,342,2136,7622,3864,3006,3612,9774,2888,179],function(){return e(e.s=21079)}),_N_E=e.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.