1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2587],{17806:(e,t,r)=>{r.d(t,{Y:()=>y});var n=r(54529),i=r(65372),o=r(46532),a=r(34315),c=r(71209),s=r(54376),d=r(70403),p=r(34419),u=r(74345),h=r(98195),l=r(45094),f=r(56399);let g=(0,h.S)(r.e(2466).then(r.bind(r,18754))).pipe((0,o.ZZ)(e=>{let{load:t}=e;return t("6Ld5i08sAAAAAH-I3QmPkKZhlxdPHhk0gExurPqu")}),(0,o.ZZ)(e=>e.execute("tip_off"))),v={orderStatus:"Order Status",missingOrder:"Missing Order",cancelMyOrder:"Cancel My Order",refunds:"Refunds",subscriptions:"Subscriptions",issueWithMyAccount:"Issue With My Account",failedDelivery:"Failed Delivery",awaitingDelivery:"Awaiting Delivery",iOrderedMaunjaro:"I Ordered Maunjaro",iOrderedInhalers:"I Ordered Inhalers"};function y(){let e=(0,l.n)();return(0,u.A)(t=>t.pipe((0,n.E)(g),(0,i.n)(t=>{var r;let[n]=t;return(0,s.x)((0,d.of)(f.t3.Pending),(r={email:n.email,message:["Enquiry type: ".concat(n.enquiry),"Message: ".concat(n.message)].join("\n"),name:n.name,orderId:n.orderId,supportCategory:v[n.supportCategory]||n.supportCategory,accountSection:n.accountSection,recaptcha_response:n.recaptchaToken||""},e.postJSON(e.apiUrl("uKMedsContactContactServiceV1SendMessagePost")("/V1/ukmeds-contact/sendMessage"),r,e.apiOptions({}))).pipe((0,o.ZZ)(()=>(0,d.of)(f.t3.Success).pipe((0,a.c)(500))),(0,c.W)(()=>(0,d.of)(f.t3.Error))))}),(0,c.W)(e=>(console.error("recaptcha failed",e),p.wg))),f.t3.Idle)}},38034:(e,t,r)=>{r.d(t,{x:()=>i});var n=r(14232);function i(){let e=(0,n.useRef)(null),t=(0,n.useCallback)(async()=>{if(!e.current)return null;try{return await e.current.executeAsync()}catch(e){return console.error("reCAPTCHA execution failed",e),null}},[]),r=(0,n.useCallback)(()=>{e.current&&e.current.reset()},[]);return{recaptchaRef:e,executeRecaptcha:t,resetRecaptcha:r}}},45094:(e,t,r)=>{r.d(t,{n:()=>o});var n=r(14232),i=r(41013);function o(){let{epicDeps:e}=(0,n.useContext)(i.R);return e}},74345:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(14232),i=r(96220);let o=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];arguments.length>3&&void 0!==arguments[3]&&arguments[3];let o=new i.B7,[a,c]=(0,n.useState)(t),[s]=(0,n.useState)(o);return(0,n.useEffect)(()=>{let t=e(o).subscribe(e=>c(e));return()=>{t.unsubscribe(),s.complete()}},r),[a,e=>s.next(e)]}},78229:(e,t,r)=>{r.d(t,{A:()=>b});var n=r(14232),i=r(95062),o=r.n(i),a=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(s(t)),t.handleErrored=t.handleErrored.bind(s(t)),t.handleChange=t.handleChange.bind(s(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(s(t)),t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,d(t,e);var r=t.prototype;return r.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},r.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},r.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},r.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},r.executeAsync=function(){var e=this;return new Promise(function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()})},r.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},r.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},r.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},r.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},r.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},r.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},r.componentDidMount=function(){this.explicitRender()},r.componentDidUpdate=function(){this.explicitRender()},r.handleRecaptchaRef=function(e){this.captcha=e},r.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,a));return n.createElement("div",c({},t,{ref:this.handleRecaptchaRef}))},t}(n.Component);p.displayName="ReCAPTCHA",p.propTypes={sitekey:o().string.isRequired,onChange:o().func,grecaptcha:o().object,theme:o().oneOf(["dark","light"]),type:o().oneOf(["image","audio"]),tabindex:o().number,onExpired:o().func,onErrored:o().func,size:o().oneOf(["compact","normal","invisible"]),stoken:o().string,hl:o().string,badge:o().oneOf(["bottomright","bottomleft","inline"]),isolated:o().bool}
1,p.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var u=r(23520),h=r.n(u);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var f={},g=0,v="onloadcallback";function y(){return"undefined"!=typeof window&&window.recaptchaOptions||{}}let b=(function(e,t){return t=t||{},function(r){var i=r.displayName||r.name||"Component",a=function(i){function o(e,t){var r;return(r=i.call(this,e,t)||this).state={},r.__scriptURL="",r}o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.__proto__=i;var a=o.prototype;return a.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+g++),this.__scriptLoaderID},a.setupScriptURL=function(){return this.__scriptURL="function"==typeof e?e():e,this.__scriptURL},a.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},a.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=f[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var r in e.observers)e.observers[r](e);delete window[t.callbackName]},a.componentDidMount=function(){var e=this,r=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),i=t,o=i.globalName,a=i.callbackName,c=i.scriptId;if(o&&void 0!==window[o]&&(f[r]={loaded:!0,observers:{}}),f[r]){var s=f[r];return s&&(s.loaded||s.errored)?void this.asyncScriptLoaderHandleLoad(s):void(s.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var d={};d[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},f[r]={loaded:!1,observers:d};var p=document.createElement("script");for(var u in p.src=r,p.async=!0,t.attributes)p.setAttribute(u,t.attributes[u]);c&&(p.id=c);var h=function(e){if(f[r]){var t=f[r].observers;for(var n in t)e(t[n])&&delete t[n]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),p.onload=function(){var e=f[r];e&&(e.loaded=!0,h(function(t){return!a&&(t(e),!0)}))},p.onerror=function(){var e=f[r];e&&(e.errored=!0,h(function(t){return t(e),!0}))},document.body.appendChild(p)},a.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===t.removeOnUnmount)for(var r=document.getElementsByTagName("script"),n=0;n<r.length;n+=1)r[n].src.indexOf(e)>-1&&r[n].parentNode&&r[n].parentNode.removeChild(r[n]);var i=f[e];i&&(delete i.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===t.removeOnUnmount&&delete f[e])},a.render=function(){var e=t.globalName,i=this.props,o=(i.asyncScriptOnLoad,i.forwardedRef),a=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(i,["asyncScriptOnLoad","forwardedRef"]);return e&&"undefined"!=typeof window&&(a[e]=void 0!==window[e]?window[e]:void 0),a.ref=o,(0,n.createElement)(r,a)},o}(n.Component),c=(0,n.forwardRef)(function(e,t){return(0,n.createElement)(a,l({},e,{forwardedRef:t}))});return c.displayName="AsyncScriptLoader("+i+")",c.propTypes={asyncScriptOnLoad:o().func},h()(c,r)}})(function(){var e=y(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+v+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+v+"&render=explicit"},{callbackName:v,globalName:"grecaptcha",attributes:y().nonce?{nonce:y().nonce}:{}})(p)}}]);
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.