{"version":3,"sources":["Router/NavigationBuilder.js","../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../src/index.tsx","Router/ErrorFallback.js","Router/Router.js"],"names":["RoutesMapper","path","layout","Component","React","lazy","loader","Loader","exact","headingMapper","navigationMapper","name","svg","link","react_link","render_dropdown","children","_isDevLink","SalesAgentNavMapper","role","_getUserPriorityRole","isDevLink","window","orientation","navigator","userAgent","indexOf","userData","_getUserData","staticProductData","bedding","desktopImg","desktopImgPosition","mobileImg","heading","subheading","paragraph","imgBgCls","prodbox","image","carpets","women","url","men","kids","accent","bedroom","dining","living","homeoffice","lightings","walldecor","roomdecor","cartonboxes","_setPrototypeOf","o","p","Object","setPrototypeOf","__proto__","_inheritsLoose","subClass","superClass","prototype","create","constructor","changedArray","a","b","length","some","item","index","is","initialState","error","ErrorBoundary","state","resetErrorBoundary","args","_this","props","onReset","reset","getDerivedStateFromError","this","setState","componentDidCatch","info","onError","componentDidUpdate","prevProps","prevState","resetKeys","onResetKeysChange","render","fallbackRender","FallbackComponent","fallback","isValidElement","Error","withErrorBoundary","errorBoundaryProps","Wrapped","displayName","useErrorHandler","givenError","useState","setError","App","reloadDone","componentDidMount","message","test","onLine","location","reload","className","style","height","href","Layout","Routes","derivedProps","console","log","ErrorFallback","map","route","i","to"],"mappings":"2HAAA,2TAQA,MAAMA,EAAe,CAEnB,CAACC,KAAM,QAASC,QAAQ,EAAMC,UAAWC,IAAMC,MAAK,IAAM,4EAAoCC,OAAQC,KACtG,CAACN,KAAM,cAAeC,QAAQ,EAAMC,UAAWC,IAAMC,MAAK,IAAM,qEAA8CC,OAAQC,KACtH,CAACN,KAAM,WAAYC,QAAQ,EAAMC,UAAWC,IAAMC,MAAK,IAAM,qEAA0CC,OAAQC,KAC/G,CAACN,KAAM,YAAaC,QAAQ,EAAMC,UAAWC,IAAMC,MAAK,IAAM,8DAA4CC,OAAQC,KAClH,CAACN,KAAM,YAAaC,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AS,CACP,CACEC,MACE,sEACF5B,KAAM,mBAER,CACE4B,MACA,sEACA5B,KAAM,iBAER,CACE4B,MACA,sEACA5B,KAAM,qBAKZiC,KAAM,CACJb,WACE,mFACAC,mBAAoB,qBACtBC,UACE,0EACFpB,KAAM,4BACNqB,QAAQ,GACNC,WAAY,GACZC,UAAU,GACVC,SAAS,GACXC,QAAS,CACP,CACEC,MACE,uEACF5B,KAAM,iCAER,CACE4B,MACE,uEACF5B,KAAM,0BAER,CACE4B,MACE,uEACF5B,KAAM,sCAKZkC,OAAQ,CACNd,WACE,uFACAC,mBAAoB,wBACtBC,UACE,4EAAgFpB,KAAM,+BACtFqB,QAAQ,GACRC,WAAY,GACZC,UAAU,GACVC,SAAS,MACXC,QAAS,CACP,CACEC,MACE,yEACF5B,KAAM,yBAER,CACE4B,MACE,yEACF5B,KAAM,kBAER,CACE4B,MACE,yEACF5B,KAAM,4BAKZmC,QAAS,CACPf,WACE,wFACFC,mBAAoB,yBACpBC,UACE,6EAAiFpB,KAAM,mCACvFqB,QAAQ,GACRC,WAAY,GACZC,UAAU,GACVC,SAAS,MACXC,QAAS,CACP,CACEC,MACE,0EACF5B,KAAM,sBAER,CACE4B,MACE,0EACF5B,KAAM,uBAER,CACE4B,MACE,0EACF5B,KAAM,2BAKZoC,OAAQ,CACNhB,WACE,uFACFC,mBAAoB,WACpBC,UACE,4EAAgFpB,KAAM,6CACtFqB,QAAQ,GACRC,WAAY,GACZC,UAAU,GACVC,SAAS,OACXC,QAAS,CACP,CACEC,MACE,yEACF5B,KAAM,uBAER,CACE4B,MACE,yEACF5B,KAAM,yBAER,CACE4B,MACE,yEACF5B,KAAM,0BAKZqC,OAAQ,CACNjB,WACC,uFACAC,mBAAoB,WACrBC,UACC,6EAAiFpB,KAAM,+BACvFqB,QAAQ,GACRC,WAAY,GACZC,UAAU,GACVC,SAAS,MACVC,QAAS,CACP,CACEC,MACE,8EACF5B,KAAM,qBAER,CACE4B,MACE,8EACF5B,KAAM,2CAER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AAK,EAALA,EAAOqC,WAC9BF,GAAc,mBAAGO,UAAU,uCAAuCG,KAAK,QAAO,0BAG5F,ECzBJ,MAAMC,EAASrH,IAAMC,MAAK,IAAM,4EAEjB,MAAMqH,UAAetH,IAAMD,UACxC4F,SACI,MAAM4B,EAAe,CAAExG,SAAMQ,aAAUN,eAEvC,OADAuG,QAAQC,IAAI,OAAQ1G,KAEhB,cAAC,IAAa,UACZ,cAAC,gBAAa,CAAC8E,kBAAmB6B,EAAc,SAC9C,eAAC,IAAM,WACF9H,IAAa+H,KAAI,CAACC,EAAMC,IACrB,cAAC,IAAK,CAAShI,KAAM+H,EAAM/H,KAAMO,MAAOwH,EAAMxH,MAC1CuF,OAASd,IACLA,EAAQ,IAAIA,KAAU0C,GAElB,cAAC,WAAQ,CAACzB,SAAU,cAAC8B,EAAM1H,OAAM,IAAI,SAChC0H,EAAM9H,OACH,cAACuH,EAAM,IAAKxC,EAAK,SACb,cAAC+C,EAAM7H,UAAS,IAAK8E,MAGzB,cAAC+C,EAAM7H,UAAS,IAAK8E,QAV7BgD,KAiBhB,cAAC,IAAQ,CAACC,GAAG,gBAM7B,E","file":"static/js/54.8ca8b63b.chunk.js","sourcesContent":["import React from 'react';\nimport Loader from \"../Components/Loader/Loader\";\n// import { getUserData } from '../Helper/commonFunctions_v2';\nimport {_getUserPriorityRole, _getUserData,_isDevLink} from '../util/commonFunctions';\nimport \"../App.css\";\n\n// import { Plus } from \"../svgs/Svg\";\n\nconst RoutesMapper = [\n // Satic\n {path: '/home', layout: true, Component: React.lazy(() => import(\"../Components/Home/Home\")), loader: Loader},\n {path: '/contact-us', layout: true, Component: React.lazy(() => import(\"../Components/ContactUs/ContactUs\")), loader: Loader},\n {path: '/careers', layout: true, Component: React.lazy(() => import(\"../Components/Careers/Careers\")), loader: Loader},\n {path: '/services', layout: true, Component: React.lazy(() => import(\"../Components/Services/Services\")), loader: Loader},\n {path: '/register', layout: true, Component: React.lazy(() => import(\"../Components/Register/Register\")), loader: Loader},\n {path: '/sustainability', layout: true, Component: React.lazy(() => import(\"../Components/Sustainability/Sustainability\")), loader: Loader},\n {path: '/technology', layout: true, Component: React.lazy(() => import(\"../Components/Technology/Technology\")), loader: Loader},\n {path: '/tnc', layout: true, Component: React.lazy(() => import(\"../Components/Term/Term\")), loader: Loader},\n {path: '/privacy-policy', layout: true, Component: React.lazy(() => import(\"../Components/Term/PrivacyPolicy\")), loader: Loader},\n {path: '/home-category', layout: true, Component: React.lazy(() => import(\"../Components/Category/HomeCategory/HomeCategory\")), loader: Loader},\n {path: '/capiz', layout: true, Component: React.lazy(() => import(\"../Components/Category/HomeCategory/Capiz\")), loader: Loader},\n {path: '/fashion-category', layout: true, Component: React.lazy(() => import(\"../Components/Category/FashionCategory/FashionCategory\")), loader: Loader},\n {path: '/about-us', layout: true, Component: React.lazy(() => import(\"../Components/About/AboutUs\")), loader: Loader},\n \n\n // Authentication\n {path: '/signin', layout: true, Component: React.lazy(() => import(\"../Components/Account/Signin/Signin\")), loader: Loader},\n {path: '/signup', layout: true, Component: React.lazy(() => import(\"../Components/Account/Signin/signup.js\")), loader: Loader},\n {path: '/forgot-password', layout: true, Component: React.lazy(() => import(\"../Components/Account/ForgotPassword/ForgotPassword\")), loader: Loader},\n {path: '/reset-password', layout: true, Component: React.lazy(() => import(\"../Components/Account/ResetPassword/ResetPassword\")), loader: Loader},\n // Product Listing and VIP\n {path: '/layout', layout: true, Component: React.lazy(() => import(\"../Components/ProductLayout/ProductLayout\")), loader: Loader},\n {path: '/product/:category', layout: true, Component: React.lazy(() => import(\"../Components/ProductLayout/ProductLayout\")), loader: Loader},\n {path: '/products/:category' , layout: true, Component: React.lazy(() => import(\"../Components/Products/Listing/ProductListing\")), loader: Loader},\n {path: '/products' , exact: true, layout: true, Component: React.lazy(() => import(\"../Components/Products/Listing/ProductListing\")), loader: Loader},\n {path: '/product-detail/:sku', layout: true, Component: React.lazy(() => import(\"../Components/ProductDetails/ProductDetails\")), loader: Loader},\n // catalogue listing\n {path: '/catalogue/:encrypted_id', layout: true, Component: React.lazy(() => import(\"../Components/Products/Listing/ProductListing\")), loader: Loader},\n //collection listing\n {path: '/collections/:encrypted_id', layout: true, Component: React.lazy(() => import(\"../Components/Collections/CollectionsListing\")), loader: Loader},\n // cart\n {path: '/cart/summary/:order_id', layout: true, Component: React.lazy(() => import(\"../Components/Cart/Summary/Summary\")), loader: Loader},\n {path: '/cart/shipping', layout: true, Component: React.lazy(() => import(\"../Components/Cart/Shipping/Shipping\")), loader: Loader},\n {path: '/cart', layout: true, Component: React.lazy(() => import(\"../Components/Cart/Cart\")), loader: Loader},\n // sales agent\n {path: '/sales-agent/dashboard', layout: true, Component: React.lazy(() => import(\"../Components/SalesAgent/Dashboard/Dashboard\")), loader: Loader},\n {path: '/sales-agent/contracts', layout: true, Component: React.lazy(() => import(\"../Components/SalesAgent/Contract/Contract\")), loader: Loader},\n {path: '/sales-agent/customers', layout: true, Component: React.lazy(() => import(\"../Components/SalesAgent/Customers/Customers\")), loader: Loader},\n {path: '/sales-agent/orders', layout: true, Component: React.lazy(() => import(\"../Components/SalesAgent/Orders/OrderListing\")), loader: Loader},\n {path: '/sales-agent/cart/:user_id', layout: true, Component: React.lazy(() => import(\"../Components/SalesAgent/Cart/CartDetails\")), loader: Loader},\n {path: '/sales-agent/cart', layout: true, Component: React.lazy(() => import(\"../Components/SalesAgent/Cart/CartListing\")), loader: Loader},\n {path: '/sales-agent/commissions', layout: true, Component: React.lazy(() => import(\"../Components/SalesAgent/Commissions/Commissions\")), loader: Loader},\n {path: '/sales-agent/notifications', layout: true, Component: React.lazy(() => import(\"../Components/SalesAgent/Notifications/Notifications\")), loader: Loader},\n {path: '/sales-agent/statistics', layout: true, Component: React.lazy(() => import(\"../Components/SalesAgent/Statistics/Statistics\")), loader: Loader},\n {path: '/sales-agent/fairs', layout: true, Component: React.lazy(() => import(\"../Components/SalesAgent/Fair/FairList\")), loader: Loader},\n {path: '/sales-agent/client-cart-pdf/:user_id', layout: false, Component: React.lazy(() => import(\"../Components/SalesAgent/ClientCartPDF/ClientCartPDF\")), loader: Loader},\n {path: '/sales-agent/client-cart/:user_id', layout: true, Component: React.lazy(() => import(\"../Components/SalesAgent/ClientDetails/ClientDetails\")), loader: Loader},\n {path: '/sales-agent/client-details/:user_id', layout: true, Component: React.lazy(() => import(\"../Components/SalesAgent/ClientDetails/ClientDetailsNew\")), loader: Loader},\n {path: '/sales-agent/add-client', layout: true, Component: React.lazy(() => import(\"../Components/SalesAgent/AddClient/AddClient\")), loader: Loader},\n {path: '/sales-agent/edit-client/:client_id', layout: true, Component: React.lazy(() => import(\"../Components/SalesAgent/AddClient/AddClient\")), loader: Loader},\n {path: '/sales-agent/complete-order/:order_id', layout: true, Component: React.lazy(() => import(\"../Components/Cart/Shipping/Shipping\")), loader: Loader},\n //order\n {path: '/orders', layout: true, Component: React.lazy(() => import(\"../Components/Order/OrderListing\")), loader: Loader},\n {path: '/order/:id', layout: true, Component: React.lazy(() => import(\"../Components/Order/OrderDetail\")), loader: Loader},\n // qrcode\n {path: '/qrcode', layout: true, Component: React.lazy(() => import(\"../Components/QRCode/QRCode\")), loader: Loader},\n {path: '/fair_landing', layout: true, Component: React.lazy(() => import(\"../Components/HighPoint/HighPoint\")), loader: Loader},\n // Atlanta Fair\n {path: '/fair/atlanta22', layout: true, Component: React.lazy(() => import(\"../Components/Fairs/AtlantaRedirect\")), loader: Loader},\n {path: '/fair/atlanta-lasvegas22', layout: true, Component: React.lazy(() => import(\"../Components/Fairs/Atlanta\")), loader: Loader},\n {path: '/book-appointment/atlanta-lasvegas22', layout: true, Component: React.lazy(() => import(\"../Components/Appointment/BookAppointment\")), loader: Loader},\n {path: '/book-appointment/atlanta22', layout: true, Component: React.lazy(() => import(\"../Components/Appointment/BookAppointment\")), loader: Loader},\n {path: '/book-appointment/lasvegas22', layout: true, Component: React.lazy(() => import(\"../Components/Appointment/BookAppointment\")), loader: Loader},\n];\n\nconst headingMapper = [\n { \"heading\": \"Home\", \"link\": [\"/home\"], \"css\": \"\"}\n]\n\nlet navigationMapper = [\n { name: \"Home\", svg: null, link: [\"/home\"], react_link: true },\n { name: \"Services\", svg: null, link: [\"/services\"], react_link: true },\n { name: \"Products\", svg: null, link: [\"/products\"], react_link: true, render_dropdown: true, children: [\n { name: \"Home Textile\", svg: null, link: [\"/products\"], react_link: true, render_dropdown: true, children: [\n { name: \"Bedding\", svg: null, link: [\"/product/bedding\"], react_link: true },\n { name: \"Carpets and Rugs\", svg: null, link: [\"/product/carpets\"], react_link: true },\n { name: \"All\", svg: null, link: [\"/products/Home%20Textile\"], react_link: true }\n ]},\n { name: \"Apparels\", svg: null, link: [\"/products\"], react_link: true, render_dropdown: true, children: [\n { name: \"Women\", svg: null, link: [\"/product/women\"], react_link: true },\n { name: \"Men\", svg: null, link: [\"/product/men\"], react_link: true },\n { name: \"Kids\", svg: null, link: [\"/product/kids\"], react_link: true },\n { name: \"All\", svg: null, link: [\"/products/Apparels\"], react_link: true }\n ]},\n { name: \"Furniture\", svg: null, link: [\"/catalogue/8RQJl_wYpw4=\"], react_link: true, render_dropdown: false, children: [\n { name: \"Accent\", svg: null, link: [\"/product/accent\"], react_link: true },\n { name: \"Bedroom\", svg: null, link: [\"/product/bedroom\"], react_link: true },\n { name: \"Dining\", svg: null, link: [\"/product/dining\"], react_link: true },\n { name: \"Living\", svg: null, link: [\"/product/living\"], react_link: true },\n // { name: \"Beds\", svg: null, link: [\"/products/Furniture%7CBed\"], react_link: true },\n { name: \"Home Office\", svg: null, link: [\"/product/homeoffice\"], react_link: true },\n { name: \"All\", svg: null, link: [\"/products/Furniture\"], react_link: true }\n ]},\n { name: \"Home Decor\", svg: null, link: [\"/products\"], react_link: true, render_dropdown: true, children: [\n { name: \"Lightings\", svg: null, link: [\"/product/lightings\"], react_link: true },\n { name: \"Wall Decor\", svg: null, link: [\"/product/walldecor\"], react_link: true },\n { name: \"Room Decor\", svg: null, link: [\"/product/roomdecor\"], react_link: true },\n { name: \"All\", svg: null, link: [\"/products/Home%20Decor\"], react_link: true }\n ]},\n { name: \"Packaging\", svg: null, link: [\"/products\"], react_link: true, render_dropdown: true, children: [\n { name: \"Carton boxes\", svg: null, link: [\"/product/cartonboxes\"], react_link: true },\n ]},\n ]},\n { name: \"Careers\", svg: null, link: [\"/careers\"], react_link: true },\n // { name: \"Blog\", svg: null, link: [\"/blog\"], react_link: true },\n { name: \"Contact\", svg: null, link: [\"/contact-us\"], react_link: true },\n { name: \"Portal\", svg: null, link: [_isDevLink()?\"https://devportal.geniemode.com/order/view\":\"https://portal.geniemode.com/order/view\"], react_link: false },\n // { name: \"Account\", svg: null, link: [\"/signin\"], react_link: true },\n { name: \"Blog\", svg: null, link: [\"https://medium.com/@Geniemode\"], react_link: false },\n];\n\nconst SalesAgentNavMapper = [\n // { name: \"Dashboard\", svg: null, link: [\"/sales-agent/dashboard\"], react_link: true },\n { name: \"Market\", svg: null, link: [\"/sales-agent/fairs\"], react_link: true },\n { name: \"Customers\", svg: null, link: [\"/sales-agent/customers\"], react_link: true },\n { name: \"Contracts\", svg: null, link: [\"/sales-agent/contracts\"], react_link: true },\n { name: \"Client Orders\", svg: null, link: [\"/sales-agent/orders\"], react_link: true },\n { name: \"Client Cart\", svg: null, link: [\"/sales-agent/cart\"], react_link: true },\n { name: \"Commissions\", svg: null, link: [\"/sales-agent/commissions\"], react_link: true },\n // { name: \"Notifications\", svg: null, link: [\"/sales-agent/notifications\"], react_link: true },\n // { name: \"Statistics\", svg: null, link: [\"/sales-agent/statistics\"], react_link: true }\n]\n\nconst removalMapper = {\n admin: [],\n rm: ['User Management', 'View Profile','RM Profile','Manufacturer Profile','Document Management'],\n client: ['Client Profile', 'Workflow Management', 'View Profile', 'Presentation', 'User Management','RM Profile','Manufacturer Profile', 'High Point'],\n manufacturer: ['Client Profile', 'Workflow Management', 'Document Management', 'Costing', 'Presentation', 'User Management','RM Profile','Manufacturer Profile', 'High Point']\n}\n\nconst role = _getUserPriorityRole();\nconst isDevLink = _isDevLink();\n\nif((role === 'sales agent') && ((typeof window.orientation !== \"undefined\") || (navigator.userAgent.indexOf('IEMobile') !== -1))) {\n // let salesAgentNavElem = { name: \"Sales Agent\", svg: null, link: [\"/sales-agent\"], react_link: true, render_dropdown: true, children: SalesAgentNavMapper};\n // navigationMapper.splice(1, 0, salesAgentNavElem);\n navigationMapper = [\n { name: \"Capiz\", svg: null, link: [\"/catalogue/4D87M36vInQ=\"], react_link: false },\n { name: \"Etc\", svg: null, link: [\"/catalogue/PobTq669UI8=\"], react_link: false },\n { name: \"Sales Agent\", svg: null, link: [\"/sales-agent\"], react_link: true, render_dropdown: true, children: SalesAgentNavMapper},\n { name: \"Products\", svg: null, link: [\"/products\"], react_link: true, render_dropdown: true, children: [\n { name: \"Home Textile\", svg: null, link: [\"/products\"], react_link: true, render_dropdown: true, children: [\n { name: \"Bedding\", svg: null, link: [\"/product/bedding\"], react_link: true },\n { name: \"Carpets and Rugs\", svg: null, link: [\"/product/carpets\"], react_link: true },\n { name: \"All\", svg: null, link: [\"/products/Home%20Textile\"], react_link: true }\n ]},\n { name: \"Apparels\", svg: null, link: [\"/products\"], react_link: true, render_dropdown: true, children: [\n { name: \"Women\", svg: null, link: [\"/product/women\"], react_link: true },\n { name: \"Men\", svg: null, link: [\"/product/men\"], react_link: true },\n { name: \"Kids\", svg: null, link: [\"/product/kids\"], react_link: true },\n { name: \"All\", svg: null, link: [\"/products/Apparels\"], react_link: true }\n ]},\n { name: \"Furniture\", svg: null, link: [\"/products\"], react_link: true, render_dropdown: true, children: [\n { name: \"Accent\", svg: null, link: [\"/product/accent\"], react_link: true },\n { name: \"Bedroom\", svg: null, link: [\"/product/bedroom\"], react_link: true },\n { name: \"Dining\", svg: null, link: [\"/product/dining\"], react_link: true },\n { name: \"Living\", svg: null, link: [\"/product/living\"], react_link: true },\n // { name: \"Beds\", svg: null, link: [\"/products/Furniture%7CBed\"], react_link: true },\n { name: \"Home Office\", svg: null, link: [\"/product/homeoffice\"], react_link: true },\n { name: \"All\", svg: null, link: [\"/products/Furniture\"], react_link: true }\n ]},\n { name: \"Home Decor\", svg: null, link: [\"/products\"], react_link: true, render_dropdown: true, children: [\n { name: \"Lightings\", svg: null, link: [\"/product/lightings\"], react_link: true },\n { name: \"Wall Decor\", svg: null, link: [\"/product/walldecor\"], react_link: true },\n { name: \"Room Decor\", svg: null, link: [\"/product/roomdecor\"], react_link: true },\n { name: \"All\", svg: null, link: [\"/products/Home%20Decor\"], react_link: true }\n ]},\n { name: \"Packaging\", svg: null, link: [\"/products\"], react_link: true, render_dropdown: true, children: [\n { name: \"Carton boxes\", svg: null, link: [\"/product/cartonboxes\"], react_link: true },\n ]},\n ]}\n ];\n}\nif((role === 'sales agent') || (role === 'admin') || (!!role)) {\n // navigationMapper.push({ name: \"Capiz\", svg: null, link: [`/catalogue/${(window.location.href.includes(\"dev.geniemode\") || window.location.href.includes(\"localhost\")) ? 'Bro6Nv1lDJo=' : '4D87M36vInQ='}`], react_link: false },);\n // navigationMapper.push({ name: \"etc\", svg: null, link: [`/catalogue/${(window.location.href.includes(\"dev.geniemode\") || window.location.href.includes(\"localhost\")) ? 'PobTq669UI8=' : 'PobTq669UI8='}`], react_link: false },);\n}\n\n// role && (navigationMapper = navigationMapper.filter(nav => !removalMapper[role].includes(nav.name)));\n// !role && (navigationMapper = []);\n\nconst userData = _getUserData();\n\nconst staticProductData ={\n bedding: {\n desktopImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/home_bedding_desk.png\",\n desktopImgPosition: \"t_center lp52 tp35\",\n mobileImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/mob/bedding.png\", link: \"/products/Home%20Textile%7CBedding\",\n heading:\"\",\n subheading: \"\",\n paragraph:\"\",\n imgBgCls:\"\",\n prodbox: [\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/bedding1.png\",\n name: \"Abstract printed bedding\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/bedding2.png\",\n name: \"Rustic bedding\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/bedding3.png\",\n name: \"Patterned boho bedding\",\n },\n ],\n },\n\n carpets: {\n desktopImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/home_carpet_desk.png\",\n desktopImgPosition: \"tp87 rp32 carpet_desk\",\n mobileImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/mob/carpet+and+rugs.png\",\n link: \"/products/Home%20Textile%7CRugs%7CCarpets\",\n heading:\"\",\n subheading: \"\",\n paragraph:\"\",\n imgBgCls:\"\",\n prodbox: [\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/carpet1.png\",\n name: \"Kilim woven rug\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/carpet2.png\",\n name: \"Boho knitted rug\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/carpet3.png\",\n name: \"Distressed arabesque rug\",\n },\n ],\n },\n\n women: {\n desktopImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/apparel_women_desk.png\",\n desktopImgPosition: \"tp56 rp32 women_desk\",\n mobileImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/mob/women.png\",\n link: \"/products/Apparels%7CWomen\",\n heading:\"\",\n subheading: \"\",\n paragraph:\"\",\n imgBgCls:\"\",\n prodbox: [\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/women1.png\",\n name: \"Cotton Wrap Dress\",\n url:\"/products/Apparels%7CWomen%7CDresses\"\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/women2.png\",\n name: \"Off Shoulder Top & Pj Co-ord Set\",\n url:\"/products/Apparels%7CWomen%7CCoord%20Set\"\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/women3.png\",\n name: \"Digital Print Satin Dress\",\n \n },\n ],\n },\n\n men: {\n desktopImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/apparel_men_desk.png\",\n desktopImgPosition: \"tp77 rp35 men_desk\",\n mobileImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/mob/men.png\",\n link: \"/products/Apparels%7CMen\",\n heading:\"\",\n subheading: \"\",\n paragraph:\"\",\n imgBgCls:\"\",\n prodbox: [\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/men1.png\",\n name: \"Mens Stripe Tee\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/men2.png\",\n name: \"Mens Polo Tee\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/men3.png\",\n name: \"Mens Jersey Tee\",\n },\n ]\n },\n\n kids: {\n desktopImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/apparel_kids_desk.png\",\n desktopImgPosition: \"lp4 tp66 kids_desk\",\n mobileImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/mob/kids.png\",\n link: \"/products/Apparels%7CBaby\",\n heading:\"\",\n subheading: \"\",\n paragraph:\"\",\n imgBgCls:\"\",\n prodbox: [\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/kids1.png\",\n name: \"Printer Double Cloth Playsuit\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/kids2.png\",\n name: \"Jersey Tie Dye T-shirt\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/kids3.png\",\n name: \"Schifly Large Pocket Girls Dress\",\n },\n ],\n },\n\n accent: {\n desktopImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/furniture_accent_desk.png\",\n desktopImgPosition: \"tp49 rp23 accent_desk\",\n mobileImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/mob/accent.png\", link: \"/products/Furniture%7CAccent\",\n heading:\"\",\n subheading: \"\",\n paragraph:\"\",\n imgBgCls:\"opR\",\n prodbox: [\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/accent1.png\",\n name: \"Nova Woven Side Table\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/accent2.png\",\n name: \"Roly Leg Chair\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/accent3.png\",\n name: \"Beige Upholstery Chair\",\n },\n ],\n },\n\n bedroom: {\n desktopImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/furniture_bedroom_desk.png\", \n desktopImgPosition: \"tp65 rp27 bedroom_desk\",\n mobileImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/mob/bedroom.png\", link: \"/products/Furniture%7CBed%20Room\",\n heading:\"\",\n subheading: \"\",\n paragraph:\"\",\n imgBgCls:\"opR\",\n prodbox: [\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/bedroom1.png\",\n name: \"Modern Leather Bed\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/bedroom2.png\",\n name: \"Woven Storage Trunk\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/bedroom3.png\",\n name: \"Linen Upholstered Bed\",\n },\n ],\n },\n\n dining: {\n desktopImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/furniture_dining_desk.png\", \n desktopImgPosition: \"tp62 lp3\",\n mobileImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/mob/dining.png\", link: \"/products/Furniture%7CDining%20&%20Kitchen\",\n heading:\"\",\n subheading: \"\",\n paragraph:\"\",\n imgBgCls:\"opL \",\n prodbox: [\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/dining1.png\",\n name: \"Raw Sculpted Chairs\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/dining2.png\",\n name: \"Modern Seating Chairs\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/dining3.png\",\n name: \"Rattan Dining Chairs\",\n },\n ],\n },\n\n living: {\n desktopImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/furniture_living_desk.png\", \n desktopImgPosition: \"tp49 lp2\",\n mobileImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/mob/living+.png\", link: \"/products/Furniture%7CLiving\",\n heading:\"\",\n subheading: \"\",\n paragraph:\"\",\n imgBgCls:\"opL\",\n prodbox: [\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/living_room1.png\",\n name: \"Woven Rattan Sofa\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/living_room2.png\",\n name: \"Curved Liner Sofa & Kimono Coffee Table\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/living_room3.png\",\n name: \"Rustic Armchair\",\n },\n ],\n },\n\n homeoffice: {\n desktopImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/furniture_office_desk.png\", \n desktopImgPosition: \"tp40 lp13 homeoffice_desk\",\n mobileImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/mob/home+office.png\", link: \"/products/Furniture%7CHome%20Office\",\n heading:\"\",\n subheading: \"\",\n paragraph:\"\",\n imgBgCls:\"\",\n prodbox: [\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/home_office1.png\",\n name: \"White Deco Desk & Cane Armchair\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/home_office2.png\",\n name: \"Cupertino Lacquered Desk & White Armchair\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/home_office3.png\",\n name: \"Cupertino Lacquered Desk & Triangular Chair\",\n },\n ],\n },\n\n lightings: {\n desktopImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/decor_lighting_desk.png\", \n desktopImgPosition: \"tp70 rp30 lighting_desk\",\n imgBgCls:\"\",\n mobileImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/mob/lighting.png\", link: \"/products/Home%20Decor%7CLighting\",\n heading:\"\",\n subheading: \"\",\n paragraph:\"\",\n prodbox: [\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/lighting1.png\",\n name: \"Marble Table Lamp\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/lighting2.png\",\n name: \"Modern Table Lamp\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/lighting3.png\",\n name: \"Minimalist Table Lamp\",\n },\n ],\n },\n\n walldecor: {\n desktopImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/decor_wall_desk.png\", \n desktopImgPosition: \"tp57 rp30 walldecor_desk\",\n imgBgCls:\"\",\n mobileImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/mob/wall+decor.png\", link: \"/products/Home%20Decor%7CWall%20Decor\",\n heading:\"\",\n subheading: \"\",\n paragraph:\"\",\n prodbox: [\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/wall_decor1.png\",\n name: \"Geo Wall Mirror\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/wall_decor2.png\",\n name: \"Retro Table Lamp\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/wall_decor3.png\",\n name: \"Harmony Upholstered Sofa\",\n },\n ],\n },\n roomdecor: {\n desktopImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/decor_room_desk.png\", \n desktopImgPosition: \"tp52 rp26 roomdecor_desk\",\n imgBgCls:\"\",\n mobileImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/mob/room+decor.png\", link: \"/products/Home%20Decor%7CRoom%20Decor\",\n heading:\"\",\n subheading: \"\",\n paragraph:\"\",\n prodbox: [\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/room_decor1.png\",\n name: \"Pedestal Coffee Table\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/room_decor2.png\",\n name: \"Tripod Accent Table\",\n },\n {\n image:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/room_decor3.png\",\n name: \"Spindle Accent Chair\",\n },\n ],\n },\n cartonboxes: {\n desktopImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/package_carton_desk.png\", \n desktopImgPosition: \"tp56 lp6 carton_desk\",\n mobileImg:\n \"https://assets.geniemode.com/geniemode-assets/websiteImage/mob/carton.png\", link: \"/products/Packaging%20Material%7CCarton%20Box\",\n heading:\"\",\n subheading: \"\",\n paragraph:\"\",\n }\n}\n\n\n\n// if(!!getUserData() && !!getUserData().roles && Array.isArray(getUserData().roles) && getUserData().roles.length > 0) {\n// let roles = ['admin', 'rm', 'client', 'manufacturer'];\n// for(let i = 0; i < roles.length; i++) {\n// if(getUserData().roles.includes(roles[i])) {\n// navigationMapper = navigationMapper.filter(nav => !removalMapper[roles[i]].includes(nav.name));\n// break;\n// }\n// }\n// }\n// else{\n// navigationMapper = [];\n// }\n\nexport {\n RoutesMapper,\n navigationMapper,\n headingMapper,\n userData,\n staticProductData,\n role,\n SalesAgentNavMapper,\n isDevLink\n}\n","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","import * as React from 'react'\n\nconst changedArray = (a: Array = [], b: Array = []) =>\n a.length !== b.length || a.some((item, index) => !Object.is(item, b[index]))\n\ninterface FallbackProps {\n error: Error\n resetErrorBoundary: (...args: Array) => void\n}\n\ninterface ErrorBoundaryPropsWithComponent {\n onResetKeysChange?: (\n prevResetKeys: Array | undefined,\n resetKeys: Array | undefined,\n ) => void\n onReset?: (...args: Array) => void\n onError?: (error: Error, info: {componentStack: string}) => void\n resetKeys?: Array\n fallback?: never\n FallbackComponent: React.ComponentType\n fallbackRender?: never\n}\n\ndeclare function FallbackRender(\n props: FallbackProps,\n): React.ReactElement<\n unknown,\n string | React.FunctionComponent | typeof React.Component\n> | null\n\ninterface ErrorBoundaryPropsWithRender {\n onResetKeysChange?: (\n prevResetKeys: Array | undefined,\n resetKeys: Array | undefined,\n ) => void\n onReset?: (...args: Array) => void\n onError?: (error: Error, info: {componentStack: string}) => void\n resetKeys?: Array\n fallback?: never\n FallbackComponent?: never\n fallbackRender: typeof FallbackRender\n}\n\ninterface ErrorBoundaryPropsWithFallback {\n onResetKeysChange?: (\n prevResetKeys: Array | undefined,\n resetKeys: Array | undefined,\n ) => void\n onReset?: (...args: Array) => void\n onError?: (error: Error, info: {componentStack: string}) => void\n resetKeys?: Array\n fallback: React.ReactElement<\n unknown,\n string | React.FunctionComponent | typeof React.Component\n > | null\n FallbackComponent?: never\n fallbackRender?: never\n}\n\ntype ErrorBoundaryProps =\n | ErrorBoundaryPropsWithFallback\n | ErrorBoundaryPropsWithComponent\n | ErrorBoundaryPropsWithRender\n\ntype ErrorBoundaryState = {error: Error | null}\n\nconst initialState: ErrorBoundaryState = {error: null}\n\nclass ErrorBoundary extends React.Component<\n React.PropsWithRef>,\n ErrorBoundaryState\n> {\n static getDerivedStateFromError(error: Error) {\n return {error}\n }\n\n state = initialState\n resetErrorBoundary = (...args: Array) => {\n this.props.onReset?.(...args)\n this.reset()\n }\n\n reset() {\n this.setState(initialState)\n }\n\n componentDidCatch(error: Error, info: React.ErrorInfo) {\n this.props.onError?.(error, info)\n }\n\n componentDidUpdate(\n prevProps: ErrorBoundaryProps,\n prevState: ErrorBoundaryState,\n ) {\n const {error} = this.state\n const {resetKeys} = this.props\n\n // There's an edge case where if the thing that triggered the error\n // happens to *also* be in the resetKeys array, we'd end up resetting\n // the error boundary immediately. This would likely trigger a second\n // error to be thrown.\n // So we make sure that we don't check the resetKeys on the first call\n // of cDU after the error is set\n\n if (\n error !== null &&\n prevState.error !== null &&\n changedArray(prevProps.resetKeys, resetKeys)\n ) {\n this.props.onResetKeysChange?.(prevProps.resetKeys, resetKeys)\n this.reset()\n }\n }\n\n render() {\n const {error} = this.state\n\n const {fallbackRender, FallbackComponent, fallback} = this.props\n\n if (error !== null) {\n const props = {\n error,\n resetErrorBoundary: this.resetErrorBoundary,\n }\n if (React.isValidElement(fallback)) {\n return fallback\n } else if (typeof fallbackRender === 'function') {\n return fallbackRender(props)\n } else if (FallbackComponent) {\n return \n } else {\n throw new Error(\n 'react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop',\n )\n }\n }\n\n return this.props.children\n }\n}\n\nfunction withErrorBoundary

(\n Component: React.ComponentType

,\n errorBoundaryProps: ErrorBoundaryProps,\n): React.ComponentType

{\n const Wrapped: React.ComponentType

= props => {\n return (\n \n \n \n )\n }\n\n // Format for display in DevTools\n const name = Component.displayName || Component.name || 'Unknown'\n Wrapped.displayName = `withErrorBoundary(${name})`\n\n return Wrapped\n}\n\nfunction useErrorHandler(givenError?: unknown): (error: unknown) => void {\n const [error, setError] = React.useState(null)\n if (givenError != null) throw givenError\n if (error != null) throw error\n return setError\n}\n\nexport {ErrorBoundary, withErrorBoundary, useErrorHandler}\nexport type {\n FallbackProps,\n ErrorBoundaryPropsWithComponent,\n ErrorBoundaryPropsWithRender,\n ErrorBoundaryPropsWithFallback,\n ErrorBoundaryProps,\n}\n\n/*\neslint\n @typescript-eslint/sort-type-union-intersection-members: \"off\",\n @typescript-eslint/no-throw-literal: \"off\",\n @typescript-eslint/prefer-nullish-coalescing: \"off\"\n*/\n","import React from \"react\";\n\nexport default class App extends React.Component {\n state = {\n reloadDone: false\n };\n\n componentDidMount(){\n let {error} = this.props, {reloadDone} = this.state;\n const chunkFailedMessage = /Loading chunk [\\d]+ failed/, cssFailedMessage = /Loading CSS chunk [\\d]+ failed/;\n if (error?.message && (chunkFailedMessage.test(error.message) || cssFailedMessage.test(error.message)) && !reloadDone) {\n navigator?.onLine && window.location.reload();\n // !navigator?.onLine && (window.location.href = \"/home\");\n // check for offline\n\n this.setState({reloadDone:true});\n }\n }\n\n\n render(){\n let {error} = this.props, {reloadDone} = this.state;\n return (\n

\n {reloadDone &&
{!navigator?.onLine ? \"YOU SEEM TO BE OFFLINE\" : \"Reloading....\"}
}\n {!reloadDone &&

please wait

} \n
{error?.message}
\n {!reloadDone && Go To Home}\n
\n );\n }\n\n} ","import React, { Component, Suspense } from \"react\";\nimport { BrowserRouter, Route, Switch, Redirect } from \"react-router-dom\";\nimport { RoutesMapper, userData, role ,isDevLink} from \"../Router/NavigationBuilder\";\nimport { ErrorBoundary } from \"react-error-boundary\";\nimport ErrorFallback from \"./ErrorFallback\";\nconst Layout = React.lazy(() => import(\"../Layout/Layout\"));\n\nexport default class Routes extends React.Component {\n render() {\n const derivedProps = { role, userData, isDevLink};\n console.log(\"role\", role);\n return (\n \n \n \n {RoutesMapper.map((route,i) => (\n {\n props = {...props, ...derivedProps};\n return (\n }>\n {route.layout ? (\n \n \n \n ) : (\n \n )}\n \n );\n }}\n />\n ))}\n \n {/* */}\n \n \n \n )\n }\n}\n\n"],"sourceRoot":""}