PageSourceSearch

https://www.ukmeds.co.uk/_next/static/chunks/algolia-instant-search.ff3dede952780ac2.js

js ukmeds.co.uk collected 2026-09-28 07:37:37 UTC 11,880 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7389],{4629:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var a=s(37876),r=s(17564),n=s(89099),l=s(19666),i=s(96662);let c=e=>{let{price:t,showFree:s=!0,...c}=e,{t:o}=(0,l.B)(),{locale:d}=(0,n.useRouter)(),u=parseFloat(String(t)),h=(0,i.RC)(d),m=Math.abs(u).toLocaleString(h,{minimumFractionDigits:2,maximumFractionDigits:2});return 0===u&&s?(0,a.jsx)("span",{...c,children:o(r.Pd.Free)}):(0,a.jsxs)("span",{...c,children:[u<0?"-":"",(0,i.$g)(m,d)]})}},36997:(e,t,s)=>{"use strict";s.d(t,{_8:()=>d,dK:()=>o});var a=s(37876);s(14232);var r=s(76042),n=s(58103),l=s.n(n),i=s(28665),c=s.n(i);let o=e=>e.nbPages>0?(0,a.jsx)("div",{className:c().paginationContainer,children:(0,a.jsx)("ul",{className:c().pagination,children:Array(e.nbPages).fill(null).slice(0,10).map((t,s)=>{let r=s+1;return(0,a.jsx)("li",{className:c().paginationItem,children:(0,a.jsx)("button",{type:"button",className:l()({[c().button]:!0,[c().buttonActive]:e.currentRefinement===r}),onClick:t=>{t.preventDefault(),e.refine(r)},children:r})},s)})})}):null,d=()=>{let e=(0,r.W)(),t=e.currentRefinement+1;return(0,a.jsx)(o,{...e,currentRefinement:t,refine:t=>e.refine(t-1)})}},41167:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var a=s(37876),r=s(55757),n=s.n(r),l=s(17564),i=s(19666),c=s(56399),o=s(4629),d=s(5322);let u=e=>{let{currencyCode:t,subtotal:s=0,dataStatus:r,items_qty:u,label:h="",originalPrice:m,hasDiscount:p}=e,{t:x}=(0,i.B)(),j=r===c.t3.Pending,g=0===u,f=(()=>{switch(r){case c.t3.Pending:return(0,a.jsx)("span",{children:"..."});case c.t3.Idle:case c.t3.Success:if(g)return(0,a.jsx)(o.A,{price:0});if(t)return(0,a.jsx)(o.A,{price:s})}return null})();return(0,a.jsxs)("dl",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer",className:n().root,"data-component":"TotalsSummary",children:[(0,a.jsxs)("dt",{className:n().subtotalLabel,children:[j&&(0,a.jsx)("span",{children:x(l.Pd.PleaseWait)}),!j&&"ukmeds"===l.YY.DE&&(0,a.jsx)("span",{children:h||x(l.Pd.OrderTotal)}),!j&&"ukmeds"!==l.YY.DE&&h&&(0,a.jsx)("span",{children:h})]}),(0,a.jsxs)("dd",{className:n().subtotalValue,"data-test-id":d.bz,children:[f,"\xa0",p&&(0,a.jsx)("span",{className:n().totalStrike,children:(0,a.jsx)(o.A,{price:m})})]}),(0,a.jsx)("link",{itemProp:"availability",href:"http://schema.org/InStock"}),(0,a.jsx)("meta",{itemProp:"priceCurrency",content:t}),(0,a.jsx)("meta",{itemProp:"priceValidUntil",content:""}),(0,a.jsx)("meta",{itemProp:"price",content:"".concat(s)}),(0,a.jsx)("div",{itemProp:"seller",itemType:"http://schema.org/Organization",itemScope:!0,children:(0,a.jsx)("meta",{itemProp:"name",content:x(l.Pd.CompanyName)})})]})}},55757:e=>{e.exports={root:"TotalsSummary_root___Q_Kx",subtotalLabel:"TotalsSummary_subtotalLabel__Gc8Jj",subtotalValue:"TotalsSummary_subtotalValue___N2up",totalStrike:"TotalsSummary_totalStrike__NK8FQ"}},61019:(e,t,s)=>{"use strict";s.d(t,{Yp:()=>n,bP:()=>r,i5:()=>a});let a=e=>{let t=document.createElement("a");t.href=e;let s=t.pathname.split("/").filter(Boolean);return["index.php","magento"].indexOf(s[0])>-1?"/".concat(s.slice(1).join("/")):s.includes("uk-meds-plus")?"/cu
1stomer/meds-plus":"/".concat(s.join("/"))};function r(e){return e&&"string"==typeof e?e.replace(/(https?:\/\/|\/\/)(.+?)\/media/g,"/media"):""}let n=e=>e.replace(/([^:]\/)\/+/g,"$1")},81857:(e,t,s)=>{"use strict";s.d(t,{e:()=>l,q:()=>n});var a=s(61019);let r="/images/".concat("ukmeds","/placeholder.jpg"),n=e=>e.indexOf("placeholder")>-1?r:"".concat("https://m2.ukmeds.co.uk").concat((0,a.bP)(e)),l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAFCAQAAADIpIVQAAAADklEQVR42mNkgAJGIhgAALQABsHyMOcAAAAASUVORK5CYII="},93820:(e,t,s)=>{"use strict";s.r(t),s.d(t,{SearchConnected:()=>z,default:()=>U});var a=s(37876),r=s(58103),n=s.n(r),l=s(64454),i=s(29106),c=s(33106),o=s(36848),d=s(35946),u=s(76047),h=s.n(u),m=s(14232),p=s(28665),x=s.n(p),j=s(56478),g=s(61019),f=s(68827),v=s.n(f),b=s(65629),N=s(86121),A=s(19666),P=s(56399),S=s(17564),y=s(95025),_=s(41167);let w=e=>{var t;let{name:s,small_image:r,link:l,displayPrice:i,bullets:c,buttonText:o="",categories:d,originalPrice:u,hasDiscount:h}=e,{t:m}=(0,A.B)();return(0,a.jsxs)(b.A,{href:l,className:n()(x().productItem,"relatedProduct"),prefetch:!1,children:[(0,a.jsx)("div",{className:x().productItemImage,children:(0,a.jsx)(v(),{src:r.url,alt:null!=(t=r.label)?t:s,height:200,width:200})}),(0,a.jsxs)("div",{className:x().productItemContent,children:[(0,a.jsx)("small",{children:d.join(" / ")}),(0,a.jsx)("p",{className:x().productItemTitle,children:s}),c.length>0&&(0,a.jsx)(y.A,{render:e=>{let{Svg:t}=e;return c.slice(0,3).map(e=>(0,a.jsxs)("li",{children:[t,e]},e))}}),(0,a.jsxs)("div",{className:x().productItemActions,children:[(0,a.jsx)("div",{className:x().productItemTotals,children:(0,a.jsx)(_.A,{dataStatus:P.t3.Success,items_qty:1,currencyCode:i.currency,subtotal:i.value,originalPrice:null==u?void 0:u.value,hasDiscount:h,label:m(S.Pd.From)})}),(0,a.jsx)("div",{className:x().productItemBtn,children:(0,a.jsx)(N.$n,{href:l,size:"small",variant:"primary-light",children:o||m(S.Pd.ViewProduct)})})]})]})]})};var C=s(81857);let k=e=>{let{showNoResults:t}=e,{t:s}=(0,A.B)(),{results:r}=(0,j.J)(),n=(0,d.d4)(e=>e.app.storeConfig.currency),l=r.query&&""!==r.query;return(0,a.jsxs)("div",{className:x().productList,children:[(t||!r||0===r.nbHits)&&(0,a.jsx)("p",{children:s(S.Pd.NoResults)}),r&&0!==r.nbHits&&l&&r.hits.map(e=>{let t=e.price[n],r=e.categories_without_path&&e.categories_without_path[0]||"";return(0,a.jsx)("div",{className:x().productListItem,"data-test-id":"SearchItem",children:(0,a.jsx)(w,{id:e.objectID,name:e.name,categories:[r],small_image:{label:"",url:(0,C.q)(e.image_url)},link:(0,g.i5)(e.url),displayPrice:{currency:n,value:t&&t.default||0},buttonText:s(S.Pd.ViewMore),bullets:[]})},e.objectID)})]})};var I=s(83821),B=s(45209);let T=()=>{let{hits:e}=(0,I.u)(),{t}=(0,A.B)(),s=e.length>0,r={};return e.forEach(e=>{r[e.name]||(r[e.name]=[]),r[e.name].push(e.objectID)}),(0,a.jsxs)(a.Fragment,{children:[!s&&(0,a.jsx)("p",{className:x().empty,children:t(S.Pd.ZeroResult)}),s&&(0,a.jsx)("ul",{children:e.map(e=>{let t=r[e.name].length;return(0,a.jsx)("li",{children:(0,a.jsx)(b.A,{href:(0,g.i5)(e.url),prefetch:!1,children:(0,a.jsx)(B.f,{hit:e,attribute:1===t?"name":"path"})})},e.objectID)})})]})},R=()=>{let{items:e}=(0,I.u)(),{t}=(0,A.B)(),s=e.length>0;return(0,a.jsxs)(a.Fragment,{children:[!s&&(0,a.jsx)("p",{className:x().empty,children:t(S.Pd.ZeroResult)}),s&&(0,a.jsx)("ul",{children:e.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(b.A,{href:"/".concat(e.slug),prefetch:!1,children:(0,a.jsx)(B.f,{hit:e,attribute:"title"})})},e.objectID))})]})};var D=s(36997),E=s(2513),O=s(1820),L=s(26242),V=s(15628),F=s(89099);let M="production",Q=e=>{let{query:t,refine:s,className:r,onChange:n,onReset:l,dataTestId:i,ariaLabel:c,setShowPagination:o}=e,{t:d}=(0,A.B)();return(0,a.jsx)("div",{className:"ais-SearchBox ".concat(r),children:(0,a.jsxs)("form",{noValidate:!0,className:"ais-SearchBox-form",action:"".concat("https://www.ukmeds.co.uk","/search"),role:"search",method:"get",onSubmit:e=>e.preventDefault(),"data-test-id":"header-search",children:[(0,a.jsx)("input",{type:"search",placeholder:d(S.Pd.SearchTreatments),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,required:!1,maxLength:512,className:["ais-SearchBox-input",x().searchInput].join(" "),onChange:e=>{let{value:t}=e.currentTarget;s(t),n(),o(""!==t)}
1,"data-test-id":i,"aria-label":c,value:t,autoFocus:!0,name:"q",onFocus:()=>{t&&t.length>0&&n()}}),""===t&&(0,a.jsx)(N.$n,{variant:"trans",icon:"center",title:d(S.Pd.SubmitSearchQuery),className:"ais-SearchBox-icon",children:(0,a.jsx)(L.A,{})}),""!==t&&(0,a.jsx)(N.$n,{type:"reset",icon:"center",variant:"trans",className:"ais-SearchBox-icon",title:d(S.Pd.ClearTheSearchQuery),onClick:()=>{s(""),l()},children:(0,a.jsx)(O.A,{})})]})})};function q(e){let t=(0,l.V)();return(0,a.jsx)(Q,{...t,...e})}let Y=h()("14DBK7BW2C","eac326ca1fb21e4d60056d307cf4123d"),H=e=>({hits:[],nbHits:0,page:0,nbPages:0,hitsPerPage:0,processingTimeMS:0,exhaustiveNbHits:!1,params:"",query:"",index:e}),K=(0,m.memo)(e=>{let{searchOpen:t,isMenu:s,AppMsg:r}=e,{locale:l}=(0,F.useRouter)(),d=(0,m.useMemo)(()=>({products:"".concat(M,"_").concat(l,"_products"),categories:"".concat(M,"_").concat(l,"_categories"),blogs:"".concat(M,"_").concat(l,"_blog_posts")}),[l]),{t:u}=(0,A.B)(),h=(0,m.useRef)(null),[p,j]=(0,m.useState)(!0),g=!t;((e,t)=>{let s=s=>{!e.current||e.current.contains(s.target)||t(s)};(0,m.useEffect)(()=>(document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}),[e,t])})(h,()=>t&&r(E.Te.ToggleSearch,!1));let f=(0,m.useRef)(new Set),v={async search(e){if(g)return{results:e.map(e=>H(e.indexName))};let t=e.filter(e=>!f.current.has(e.indexName));if(0===t.length)return{results:e.map(e=>H(e.indexName))};try{let s=await Y.search(t);if(t.length===e.length)return s;let a=[...s.results];return{...s,results:e.map(e=>f.current.has(e.indexName)?H(e.indexName):a.shift())}}catch(a){let s=(e=>{var t;let s=(null!=(t=null==e?void 0:e.message)?t:"").match(/Index ([\w-]+) does not exist/);return s?s[1]:null})(a);if(s&&t.some(e=>e.indexName===s))return f.current.add(s),v.search(e);throw a}}};return(0,a.jsx)(i.G,{indexName:d.products,searchClient:v,future:{preserveSharedStateOnUnmount:!0},children:(0,a.jsxs)("div",{className:x().container,ref:h,children:[(0,a.jsx)(q,{className:x().search,onChange:()=>{t||r(E.Te.ToggleSearch,!0)},onReset:()=>{r(E.Te.ToggleSearch,!1)},dataTestId:"SearchBar",ariaLabel:"Search Box",setShowPagination:j}),(0,a.jsxs)("div",{"data-test-id":"SearchContainer",className:n()({[x().subContainer]:!0,[x().insideMenu]:s,[x().hidden]:g}),children:[(0,a.jsx)("div",{className:x().content,children:(0,a.jsx)("div",{className:x().products,children:(0,a.jsx)(c.j,{indexName:d.products,indexId:d.products,children:(0,a.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,a.jsx)(o.Z,{hitsPerPage:3}),(0,a.jsx)(k,{showNoResults:!p}),p&&(0,a.jsx)(D._8,{})]})})})}),(0,a.jsxs)("div",{className:x().side,"data-test-id":"SearchSideBar",children:[(0,a.jsxs)("div",{className:x().sideContent,children:[(0,a.jsx)("p",{className:x().subHeader,children:u(S.Pd.Categories)}),(0,a.jsxs)(c.j,{indexName:d.categories,indexId:d.categories,children:[(0,a.jsx)(o.Z,{hitsPerPage:3}),(0,a.jsx)(T,{})]})]}),"ukmeds"!==S.YY.MMyM&&(0,a.jsxs)("div",{className:x().sideContent,children:[(0,a.jsx)("p",{className:x().subHeader,children:u(S.Pd.Resources)}),(0,a.jsxs)(c.j,{indexName:d.blogs,indexId:d.blogs,children:[(0,a.jsx)(o.Z,{hitsPerPage:3}),(0,a.jsx)(R,{})]})]}),(0,a.jsxs)(b.A,{href:u(S.Pd.TreatmentsRoute),className:x().viewAll,prefetch:!1,children:[u(S.Pd.ViewAllProducts)," ",(0,a.jsx)("span",{className:x().viewAllChevron,children:(0,a.jsx)(V.A,{})})]})]})]})]})})}),z=(0,d.Ng)(e=>({searchOpen:e.app.searchOpen}),{AppMsg:E.cE})(K),U=z},95025:(e,t,s)=>{"use strict";s.d(t,{g:()=>d,A:()=>u});var a,r=s(37876),n=s(14232),l=s(58103),i=s.n(l);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)({}).hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e}).apply(null,arguments)}let o=function(e){return n.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:16.3,height:12.6,viewBox:"0 0 16.3 12.6",style:{enableBackground:"new 0 0 16.3 12.6",position:"absolute",top:4,left:0,width:16,height:16},xmlSpace:"preserve"},e),a||(a=n.createElement("path",{d:"M4.2 12.6c-.7 0-1.4-.4-1.9-.9l-2-2.3C-.1 9 0 8.4.4 8c.4-.4 1-.3 1.4.1l2.1 2.4c.1.1.2.2.3.2h.4l.1-.1L14.6.4c.4-.4 1-.4 1.4 0 .4.4.4 1 0 1.4L6.2 11.9c-.
16.7-1.6.7-2 .7z"})))},d=e=>{let{size:t="normal",...s}=e;return(0,r.jsx)("ul",{className:i()({"tick-list":!0,"tick-list--large":"large"===t}),children:s.render&&s.render({Svg:(0,r.jsx)(o,{})})})},u=d}}]);

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.