PageSourceSearch

https://www.medfx.co.uk/_next/static/chunks/5212-83a363b86b9c1b33.js

js medfx.co.uk collected 2026-10-06 20:47:39 UTC 8,812 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5212],{59095:function(t,e,r){r.d(e,{_:function(){return o}});var n=r(38336);function o(t,e){if(void 0===t||"function"!=typeof t)throw Error("The render function is not valid (received type ".concat((0,n.t)(t),").\n\n").concat(e))}},38336:function(t,e,r){r.d(e,{t:function(){return n}});function n(t){return Object.prototype.toString.call(t).slice(8,-1)}},46967:function(t,e,r){r.d(e,{B:function(){return w}});var n=r(2265),o=r.t(n,2),u=r(18674),i=r(44483),c=r(40587),a=r(62759),l=r(19879),s=r(59025);function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function d(t){var e,r=function(t){if(Array.isArray(t))return t}(e=(0,n.useState)(function(){return t}))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,u,i,c=[],a=!0,l=!1;try{for(u=(r=r.call(t)).next;!(a=(n=u.call(r)).done)&&(c.push(n.value),2!==c.length);a=!0);}catch(t){l=!0,o=t}finally{try{if(!a&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,2)||function(t,e){if(t){if("string"==typeof t)return f(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=r[0],i=r[1];return(0,u.J)(o,t)||i(t),o}var p=o.use,y=r(43669),b=r(5421);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var v=["instantSearchInstance","widgetParams"],g=["widgetParams"];function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function S(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function O(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach(function(e){var n,o;n=e,o=r[e],(n=function(t){var e=function(t,e){if("object"!==m(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==m(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===m(e)?e:String(e)}(n))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function j(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},u=Object.keys(t);for(n=0;n<u.length;n++)r=u[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(n=0;n<u.length;n++)r=u[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function w(t){var e,r,o,f,m,S,w,P,R,I,E,x,A,W,C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},_=(0,l.a)(),k=(0,s.s)(),D=(0,a.z)(),$=(0,c.a)(),L=d(C),M=d(T),N=(0,n.useRef)(!0),U=(0,n.useRef)(null),H=(0,n.useRef)(D.status),F=(0,n.useMemo)(function(){return O(O({},t(function(t,e){if(e){N.current=!0;return}if(N.current){var r=t.instantSearchInstance,n=(t.widgetParams,j(t,v));(0,u.J)(n,U.current,function(t,e){return(null==t?void 0:t.constructor)===Function&&(null==e?void 0:e.constructor)===Function})&&r.status===H.current||(z(n),U.current=n,H.current=r.status)}},function(){N.current=!1})(L)),M)},[t,L,M]),J=function(t){if(Array.isArray(t))return t}
1(e=(0,n.useState)(function(){if(F.getWidgetRenderState){var t,e=$.getHelper(),r=$.getWidgetUiState({})[$.getIndexId()];e.state=(null===(t=F.getWidgetSearchParameters)||void 0===t?void 0:t.call(F,e.state,{uiState:r}))||e.state;var n=(0,i.E)($),o=n.results,u=n.scopedResults,c=n.recommendResults,a=F.getWidgetRenderState({helper:e,parent:$,instantSearchInstance:D,results:"recommend"===F.dependsOn&&c&&k?c[k.recommendIdx.current++]:o,scopedResults:u,state:e.state,renderState:D.renderState,templatesConfig:D.templatesConfig,createURL:$.createURL,searchMetadata:{isSearchStalled:"stalled"===D.status},status:D.status,error:D.error});return a.widgetParams,j(a,g)}return{}}))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,u,i,c=[],a=!0,l=!1;try{for(u=(r=r.call(t)).next;!(a=(n=u.call(r)).done)&&(c.push(n.value),2!==c.length);a=!0);}catch(t){l=!0,o=t}finally{try{if(!a&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,2)||function(t,e){if(t){if("string"==typeof t)return h(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),q=J[0],z=J[1];return m=(r={widget:F,parentIndex:$,props:L,shouldSsr:!!_}).widget,S=r.parentIndex,w=r.props,P=r.shouldSsr,R=(0,b.P)(),I=(0,n.useRef)(w),(0,n.useEffect)(function(){I.current=w},[w]),E=(0,n.useRef)(m),(0,n.useEffect)(function(){E.current=m},[m]),x=(0,n.useRef)(null),A=P&&!S.getWidgets().includes(m),W=(0,a.z)(),(0,y.L)(function(){var t=E.current;return x.current?(clearTimeout(x.current),(0,u.J)(w,I.current)||(S.removeWidgets([t]),S.addWidgets([m]))):P||S.addWidgets([m]),function(){x.current=setTimeout(function(){W._schedule(function(){W._preventWidgetCleanup||S.removeWidgets([t])})})}},[S,m,P,W,w]),(A||(null==R?void 0:null===(o=R.current)||void 0===o?void 0:o.status)==="pending")&&S.addWidgets([m]),"undefined"==typeof window&&null!=R&&R.current&&"ais.index"!==m.$$type&&(p(R.current),"ais.dynamicWidgets"!==m.$$type&&null!==(f=W.helper)&&void 0!==f&&f.lastResults&&p(R.current)),q}},44483:function(t,e,r){r.d(e,{E:function(){return a}});var n=r(17855);function o(t){var e,r,o;return new n.SearchResults(t,[{query:null!==(e=t.query)&&void 0!==e?e:"",page:null!==(r=t.page)&&void 0!==r?r:0,hitsPerPage:null!==(o=t.hitsPerPage)&&void 0!==o?o:20,hits:[],nbHits:0,nbPages:0,params:"",exhaustiveNbHits:!0,exhaustiveFacetsCount:!0,processingTimeMS:0,index:t.index}],{__isArtificial:!0})}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(e){var n,o;n=e,o=r[e],(n=function(t){var e=function(t,e){if("object"!==u(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===u(e)?e:String(e)}(n))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function a(t){var e=t.getHelper(),r=t.getResults()||o(e.state),n=t.getScopedResults().map(function(e){var n=e.indexId===t.getIndexId()?r:o(e.helper.state);return c(c({},e),{},{results:e.results||n})});return{results:r,scopedResults:n,recommendResults:e.lastRecommendResults}}},40587:function(t,e,r){r.d(e,{a:function(){return i}});var n=r(2265),o=r(52827),u=r(16313);function i(){var t=(0,n.useContext)(o.Z);return(0,u.k)(null!==t,"The <Index>
1 component must be used within <InstantSearch>."),t}},43669:function(t,e,r){r.d(e,{L:function(){return o}});var n=r(2265),o="undefined"!=typeof window?n.useLayoutEffect:n.useEffect}}]);

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.