{"version":3,"file":"reactQueryClient.bundle.js","sources":["../../../Static/src/api/headerApi.ts","../../../Static/src/react/redesign/components/Header/useHeaderModel.ts","../../../Static/prod/images/redesign/search.svg?react","../../../Static/src/api/reactQueryClient.ts"],"sourcesContent":["import axios from \"axios\";\r\nimport { CatalogueHeaderData, HeaderData } from \"./headerApi.types\";\r\n\r\nconst baseUrl = '/api/header';\r\nconst getHeaderUrl = `${baseUrl}/getHeader`;\r\nconst getProductCatalogueHeader = `${baseUrl}/getProductCatalogueHeader`;\r\n\r\nexport const getHeaderModel = async( currentPageId ): Promise => {\r\n const response = await axios.get(getHeaderUrl, {\r\n params: {\r\n currentPageId: currentPageId,\r\n }\r\n });\r\n\r\n return response.data;\r\n}\r\n\r\nexport const getProductCatalogueHeaderModel = async( currentPageId ): Promise => {\r\n const response = await axios.get(getProductCatalogueHeader, {\r\n params: {\r\n currentPageId: currentPageId,\r\n }\r\n });\r\n\r\n return response.data;\r\n}","import { getHeaderModel } from \"../../../../api/headerApi\";\r\nimport { useQuery } from \"@tanstack/react-query\";\r\n\r\nexport const useHeaderModel = ( currentPageId: string ) => {\r\n return useQuery({\r\n queryKey: [\"redesign-header\"],\r\n queryFn: () => getHeaderModel(currentPageId),\r\n staleTime: 1000 * 60 * 60,\r\n refetchOnWindowFocus: false,\r\n });\r\n}","import * as React from \"react\";\nconst SvgSearch = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 24, height: 24, viewBox: \"0 0 24 24\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M11 19C15.4183 19 19 15.4183 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19Z\", stroke: \"#29588C\", strokeWidth: 2, strokeLinecap: \"round\", strokeLinejoin: \"round\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M21 20.9999L16.65 16.6499\", stroke: \"#29588C\", strokeWidth: 2, strokeLinecap: \"round\", strokeLinejoin: \"round\" }));\nexport default SvgSearch;\n","import { QueryClient } from \"@tanstack/react-query\";\r\n\r\n// hack to use the same client in both index.jsx and redesign/index.tsx\r\nconst queryClient = new QueryClient();\r\nexport { queryClient };"],"names":["baseUrl","getHeaderUrl","getProductCatalogueHeader","getHeaderModel","currentPageId","axios","getProductCatalogueHeaderModel","useHeaderModel","useQuery","SvgSearch","props","React.createElement","queryClient","QueryClient"],"mappings":"6DAGA,MAAMA,EAAU,cACVC,EAAe,GAAGD,CAAO,aACzBE,EAA4B,GAAGF,CAAO,6BAE/BG,EAAiB,MAAOC,IAClB,MAAMC,EAAM,IAAgBJ,EAAc,CACzD,OAAQ,CACN,cAAAG,CACF,CAAA,CACD,GAEe,KAGLE,EAAiC,MAAOF,IAClC,MAAMC,EAAM,IAAyBH,EAA2B,CAC/E,OAAQ,CACN,cAAAE,CACF,CAAA,CACD,GAEe,KCrBLG,EAAmBH,GACvBI,EAAS,CACd,SAAU,CAAC,iBAAiB,EAC5B,QAAS,IAAML,EAAeC,CAAa,EAC3C,UAAW,IAAO,GAAK,GACvB,qBAAsB,EAAA,CACvB,ECRGK,EAAaC,GAA0BC,EAAAA,cAAoB,MAAO,CAAE,MAAO,GAAI,OAAQ,GAAI,QAAS,YAAa,KAAM,OAAQ,MAAO,6BAA8B,GAAGD,CAAO,EAAkBC,gBAAoB,OAAQ,CAAE,EAAG,oHAAqH,OAAQ,UAAW,YAAa,EAAG,cAAe,QAAS,eAAgB,OAAO,CAAE,EAAmBA,EAAAA,cAAoB,OAAQ,CAAE,EAAG,4BAA6B,OAAQ,UAAW,YAAa,EAAG,cAAe,QAAS,eAAgB,QAAS,CAAC,ECEhlBC,EAAc,IAAIC"}