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T,eAAK,UAAM,OAAO,iCAAd,kQACpBU,eAAgBV,eAAK,IAAME,aAAO,iCAAd,4RACpBS,cAAeX,eAAK,IAAME,aAAO,iCAAd,qbACnBU,aAAcZ,eAAK,IAAME,aAAO,+BAAd,4fAClBW,aAAcb,eAAK,UAAM,OAAO,+BAAd,4TAClBc,cAAed,eAAK,IAAME,aAAO,gCAAd,wYACnBa,cAAef,eAAK,IAAME,aAAO,mgBAAd,CAfmB,GAkBvC,IAAM,CACCc,QAAiBC,SAASC,iBAAiB,aAA1B,EAEvB,GAAGC,QAAQC,KAAKJ,EAAiBK,GAAqC,OAC9DC,QAAYD,EAAcE,aAAa,KAA3B,EACZC,EAAOH,EAAcI,YAEvB,IAACH,GAAa,CAACE,EACjB,OAGF,MAAME,EAAY5B,EAAOwB,GACzB,GAAII,EAAW,CACbL,EAAcI,YAAc,KACtBE,QAAUV,SAASW,cAAc,SAAvB,EAChBD,EAAQE,WAAYR,IAAcE,aAAa,YAA3B,WAA4C,GACxDO,YAAUC,IAAI,KAAtB,EACQD,YAAUC,IAAI,YAAtB,EACAV,EAAcW,YAAYL,CAA1B,EAEMM,QAAQC,KAAKC,MAAMX,CAAX,EACdY,EAASC,WAAWV,CAApB,EAA6BW,OAC3BC,EAACC,EAAM,WAAP,YACGC,EAAD,CAAU,QAAV,WACGf,EAAcO,MAAf,EADF,CAFJ,QAQO,UAAPS,KACD,CA3BH,CA6BD,GAhCD","names":["relList","link","processPreload","mutations","mutation","node","getFetchOpts","script","fetchOpts","store","configureStore","blocks","postCodeForm","lazy","cart","__vitePreload","checkout","login","resetPassword","locationHome","invoices","locationDocs","invoicePayment","createPassword","reportAnIssue","orderHistory","reportingPDF","reportingHome","documentsSign","scriptSections","document","querySelectorAll","forEach","call","scriptSection","blockType","getAttribute","data","textContent","Component","section","createElement","className","classList","add","replaceWith","props","JSON","parse","ReactDOM","createRoot","render","_jsx","React","Provider","_Fragment"],"sources":["../../../../firstmile.widgets/vite/modulepreload-polyfill","../../../../firstmile.widgets/src/app/store.ts","../../../../firstmile.widgets/src/react-loader.tsx"],"sourcesContent":["__VITE_IS_MODERN__&&(function polyfill() {\n const relList = document.createElement('link').relList;\n if (relList && relList.supports && relList.supports('modulepreload')) {\n return;\n }\n for (const link of document.querySelectorAll('link[rel=\"modulepreload\"]')) {\n processPreload(link);\n }\n new MutationObserver((mutations) => {\n for (const mutation of mutations) {\n if (mutation.type !== 'childList') {\n continue;\n }\n for (const node of mutation.addedNodes) {\n if (node.tagName === 'LINK' && node.rel === 'modulepreload')\n processPreload(node);\n }\n }\n }).observe(document, { childList: true, subtree: true });\n function getFetchOpts(script) {\n const fetchOpts = {};\n if (script.integrity)\n fetchOpts.integrity = script.integrity;\n if (script.referrerpolicy)\n fetchOpts.referrerPolicy = script.referrerpolicy;\n if (script.crossorigin === 'use-credentials')\n fetchOpts.credentials = 'include';\n else if (script.crossorigin === 'anonymous')\n fetchOpts.credentials = 'omit';\n else\n fetchOpts.credentials = 'same-origin';\n return fetchOpts;\n }\n function processPreload(link) {\n if (link.ep)\n // ep marker = processed\n return;\n link.ep = true;\n // prepopulate the load record\n const fetchOpts = getFetchOpts(link);\n fetch(link.href, fetchOpts);\n }\n}());","import { configureStore, ThunkAction, Action } from \"@reduxjs/toolkit\";\n\nexport const store = configureStore({\n reducer: {\n },\n});\n\nexport type AppDispatch = typeof store.dispatch;\nexport type RootState = ReturnType;\nexport type AppThunk = ThunkAction>;\n","import React, { lazy } from 'react';\nimport ReactDOM from 'react-dom/client';\nimport { Provider } from 'react-redux';\nimport { store } from './app/store';\n\nconst blocks: { [name: string]: any } = {\n postCodeForm: lazy(() => import('./blocks/service-order-form/PostCodeForm')),\n cart: lazy(() => import('./blocks/cart/Cart')),\n checkout: lazy(() => import('./blocks/checkout/Checkout')),\n login: lazy(() => import('./blocks/user/Login')),\n resetPassword: lazy(() => import('./blocks/user/ResetPassword')),\n locationHome: lazy(() => import('./blocks/location-home/LocationHome')),\n invoices: lazy(() => import('./blocks/invoices/Invoices')),\n locationDocs: lazy(() => import('./blocks/location-docs/LocationDocs')),\n invoicePayment: lazy(() => import('./blocks/invoices/InvoicePayment')),\n createPassword: lazy(() => import('./blocks/user/CreatePassword')),\n reportAnIssue: lazy(() => import('./blocks/report-an-issue/ReportAnIssue')),\n orderHistory: lazy(() => import('./blocks/order-history/OrderHistory')),\n reportingPDF: lazy(() => import('./components/reporting-pdf/ReportingPDF')),\n reportingHome: lazy(() => import('./blocks/reporting-home/ReportingHome')),\n documentsSign: lazy(() => import('./blocks/documents-sign/DocumentsSignApp')),\n};\n\n(() => {\n const scriptSections = document.querySelectorAll('script[rct]');\n\n [].forEach.call(scriptSections, (scriptSection: HTMLScriptElement) => {\n const blockType = scriptSection.getAttribute('rct');\n const data = scriptSection.textContent;\n\n if (!blockType || !data) {\n return;\n }\n\n const Component = blocks[blockType];\n if (Component) {\n scriptSection.textContent = null;\n const section = document.createElement('section');\n section.className = scriptSection.getAttribute('data-class') ?? '';\n section.classList.add('tfm');\n section.classList.add('new-design');\n scriptSection.replaceWith(section);\n\n const props = JSON.parse(data);\n ReactDOM.createRoot(section).render(\n \n \n \n \n \n );\n } else {\n return <>;\n }\n });\n})();\n"],"file":"assets/app/react-loader-e228ccfe.js"}