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CAAAA,EAAAA,CAAAA,SAAAA,CAAAA,EAAAA,CAAM,GACtC,OAAOA,EAAIC,OAAO,CAAC,SAAU,GAASC,EAAIC,MAAM,CAAC,GAAGvF,WAAW,GAAKsF,EAAIE,SAAS,CAAC,GAAGC,WAAW,GAEpG,ECqRmF1C,QAAAA,KAAAA,EAAAA,EAAYA,MAAZA,IAAsB,CAAClD,KAAK,CAAC,KAAKqD,IAAI,CAAC,gBAEvGpD,EACCiD,EAAWA,UAAU,CACrB/B,EACAf,EACAC,GAEF,UAAC6E,OAAAA,CAAKrE,SAAS,WAAWsE,QAAS,GAAS,OAAN5E,EAAI,SAxBvC2C,EAAWC,IAAI,QA3DoB,IA2FxD,gDCtSA,SAASpC,EAAY,CAOpB,KAPoB,SACjB8E,EAAU,IADM9E,CAEhB4D,WAAS,eACTmB,CAAa,eACbrE,CAAa,iBACbsE,GAAkB,CAAK,MACvB/D,CAAI,CACP,CAPoB,EASjB,MACI,UAACgE,EAAAA,OAAaA,CAAAA,UACV,UAACC,EAAUA,CACPjE,KAAMA,EADCiE,WAEKJ,EACZtE,mBAAoB2E,CAAAA,EAAAA,EAAAA,CAAAA,CAAIA,CAACC,IAAAA,KAAW,CAAExB,GACtClD,cAAeyE,CAAAA,EAAAA,EAAAA,CAAAA,CAAIA,CAACC,IAAAA,IAAU,CAAE1E,GAChCE,sBAAuBwE,IAAAA,IAAU,CACjCtE,oBAAqBsE,IAAAA,MAAY,CACjClF,UAAU,qBACVa,cAAeqE,IAAAA,IAAU,IAIzC,CAGApF,EAAYqF,SAAS,CAAG,CACpBP,QAASQ,EADFtF,EACEsF,MAAgB,CACzBC,QAASD,IAAAA,MAAgB,CACzBE,UAAWF,IAAAA,MAAgB,CAC3B1B,UAAW0B,IAAAA,MAAgB,EAI/B,MAAetF,uBAAWA,EAAC","sources":["webpack://_N_E/?6e5a","webpack://_N_E/./components/navigation/Breadcrumbs/Breadcrumb.module.scss","webpack://_N_E/./components/navigation/Breadcrumbs/useExportBreadcrumbPath.js","webpack://_N_E/./lib/utils/toTitleCase.js","webpack://_N_E/./components/navigation/Breadcrumbs/Breadcrumb.tsx","webpack://_N_E/./components/navigation/Breadcrumbs/index.jsx"],"sourcesContent":["import(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/applications/header-footer/Footer/index.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/applications/header-footer/Header/Cart/index.jsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/applications/header-footer/Header/Header.module.scss\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/applications/header-footer/Header/Localize/index.jsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/applications/header-footer/Header/Logo/Logo.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/applications/header-footer/Header/Language/Language.module.scss\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/applications/header-footer/Header/Menu/index.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/applications/header-footer/Header/Search/index.jsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/applications/header-footer/Header/TopHat/TopHat.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/applications/header-footer/Header/User/index.jsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/applications/header-footer/Header/UtilityBelt/UtilityBelt.module.scss\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/feedback/Loader/index.jsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/layout/Grid/Grid.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/layout/GridColumn/GridColumn.module.scss\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/navigation/Breadcrumbs/index.jsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/node_modules/next/dist/client/app-dir/link.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/node_modules/next/dist/client/image-component.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/public/assets/logo-white.svg\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/public/assets/logo.svg\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/styles/globals/utils.module.scss\");\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"root\":\"Breadcrumb_root__jp7mF\",\"hide\":\"Breadcrumb_hide__c_xNn\",\"block\":\"Breadcrumb_block__VcVvl\",\"left\":\"Breadcrumb_left__fQxT6\",\"listCenter\":\"Breadcrumb_listCenter__PL9ei\",\"list\":\"Breadcrumb_list__kRPzt\",\"link\":\"Breadcrumb_link__x2FBM\",\"item\":\"Breadcrumb_item__WS2hF\"};","import createCategoryURL from \"@/lib/utils/createCategoryURL\";\n\n\nexport default function useExportBreadcrumbPath(){\n const restrictedPaths = [\"c\", \"p\", \"l\", \"b\", \"-\"];\n\n\n /**\n * creates an array of breadcrumbs based off the URL\n * @param {string} customPath \n * @param {string} routerAsPath \n * @returns array\n */\n\n function buildRouterPath(customPath, routerAsPath){\n const linkPath = customPath ? customPath.split('/') : routerAsPath.split('/');\n\n linkPath.shift();\n\n const pathArray = linkPath.map((path, i) => {\n if (restrictedPaths.find(item => path === item)) {\n return;\n }\n\n return {\n breadcrumb: path,\n href: '/' + linkPath.slice(0, i + 1).join('/'),\n };\n\n }).filter(item => typeof item !== \"undefined\")\n\n\n return pathArray;\n }\n\n \n\n /**\n * Creates an array of breadcrumbs based off the category data\n * @param {object} data \n * @returns array\n */\n\n function buildCategoryDataPath(data){\n const category = {\n ...data.category,\n parent: data.parent?.[0] ?? null\n }\n\n const linkPath = category?.url && category?.url?.path.split(\"/\");\n const categoryPath = linkPath.filter(item => item !== \"\" && restrictedPaths.indexOf(item) === -1)\n\n const categoryDataPath = categoryPath.reduce((acc, path, i) => {\n const crumbPath = acc[i - 1]?.breadcrumb ?? \"\";\n const url_path = (crumbPath && `/${crumbPath}`) + \"/\" + path + \"/\";\n const id = categoryPath.length > 2 ? determineCategoryId(category, i) : (i ? category?.category_id : category.parent_id)\n\n return acc.concat({\n breadcrumb: path,\n href: createCategoryURL({ \n url_path,\n id\n }),\n })\n\n }, []) \n \n return categoryDataPath;\n }\n\n\n\n /**\n * For 3 or more url segments, determine the category id based on the reducer index\n * @param {object} category \n * @param {number} index \n * @returns \n */\n\n function determineCategoryId(category, index){\n switch(index){\n case 0: return category?.parent?.parent_id;\n case 1: return category?.parent_id;\n case 2: return category?.category_id;\n }\n }\n\n\n return{\n buildRouterPath,\n buildCategoryDataPath\n }\n\n}","/**\n * Makes a string Title Case\n * https://stackoverflow.com/questions/196972/convert-string-to-title-case-with-javascript\n * @param {String} str \n * @returns - A Title Case String\n */\n\nexport default function toTitleCase(str = \"\") {\n return str.replace(/\\w\\S*/g, (txt) => txt.charAt(0).toUpperCase() + txt.substring(1).toLowerCase()\n );\n}\n","/* eslint-disable react-hooks/exhaustive-deps */\n/** @format */\n\n\n/**\n * Nextjs-Breadcrumbs by Niklas NiklasMencke\n * Highly Modified for AuthenTEAK\n * https://github.com/NiklasMencke/nextjs-breadcrumbs\n */\n\nimport React, { useEffect, useState } from 'react';\nimport Link from 'next/link';\nimport { usePathname } from 'next/navigation';\nimport useExportBreadcrumbPath from './useExportBreadcrumbPath';\nimport toTitleCase from 'lib/utils/toTitleCase';\n\n\n/**\n * Takes an URL String and removes query params and hash params\n *\n * @param url - The URL string\n * @returns The transformed URL string\n *\n */\n\nconst getPathFromUrl = (url: string): string => {\n return url.split(/[?#]/)[0];\n};\n\n\n/**\n * Takes a breadcrumb title (from url path) and replaces\n * special chars to more readable chars\n *\n * @param title - The breadcrumb title\n * @returns The transformed title or the result of the custom transformLabel function\n *\n */\n\nconst convertBreadcrumb = (\n title: string,\n toUpperCase: boolean | undefined,\n replaceCharacterList: Array | undefined,\n transformLabel ? : ((title: string) => React.ReactNode) | undefined\n\n): React.ReactNode => {\n\n let transformedTitle = getPathFromUrl(title);\n\n if (transformLabel) {\n return transformLabel(transformedTitle);\n }\n\n if (replaceCharacterList) {\n for (let i = 0; i < replaceCharacterList.length; i++) {\n transformedTitle = transformedTitle.replaceAll(\n replaceCharacterList[i].from,\n replaceCharacterList[i].to\n );\n }\n }\n\n\n // decode for utf-8 characters and return ascii. \n return (\n \n {toUpperCase ? decodeURI(transformedTitle).toUpperCase() : decodeURI(transformedTitle)}\n \n );\n};\n\n\n\nexport interface Breadcrumb {\n /** Breadcrumb title. Example: 'blog-entries' */\n breadcrumb: string;\n\n /** The URL which the breadcrumb points to. Example: 'blog/blog-entries' */\n href: string;\n}\n\nexport interface CharacterMap {\n /** The source character or character pattern that should be replaced (e.g. 'ae') */\n from: string;\n\n /** The replacement into which the character should be replaced. */\n to: string;\n}\n\nexport interface BreadcrumbsProps {\n /** If true, the default styles are used.\n * Make sure to import the CSS in _app.js\n * Example: true Default: false */\n useDefaultStyle ? : boolean;\n\n /** The title for the very first breadcrumb pointing to the root directory. Example: '/' Default: 'HOME' */\n rootLabel ? : string | null;\n\n /** Boolean indicator whether the root label should be omitted. Example: true Default: false */\n omitRootLabel ? : boolean;\n\n /** Boolean indicator if the labels should be displayed as uppercase. Example: true Default: false */\n labelsToUppercase ? : boolean | undefined;\n\n /** Array containing a list of specific characters that should be replaced in the label. This can be useful to convert special characters such as vowels. Example: [{ from: 'ae', to: 'รค' }, { from: '-', to: ' '}] Default: [{ from: '-', to: ' ' }] */\n replaceCharacterList ? : Array < CharacterMap > | undefined;\n\n /** A transformation function that allows to customize the label strings. Receives the label string and has to return a string or React Component */\n transformLabel ? : ((title: string) => React.ReactNode) | undefined;\n\n /** Array containing all the indexes of the path that should be omitted and not be rendered as labels. If we have a path like '/home/category/1' then you might want to pass '[2]' here, which omits the breadcrumb label '1'. Indexes start with 0. Example: [2] Default: undefined */\n omitIndexList ? : Array < number > | undefined;\n\n /** An inline style object for the outer container */\n containerStyle ? : any | null;\n\n /** Classes to be used for the outer container. Won't be used if useDefaultStyle is true */\n containerClassName ? : string;\n\n /** An inline style object for the breadcrumb list */\n listStyle ? : any | null;\n\n /** Classes to be used for the breadcrumb list */\n listClassName ? : string;\n\n /** An inline style object for the inactive breadcrumb list item */\n inactiveItemStyle ? : any | null;\n\n /** Classes to be used for the inactive breadcrumb list item */\n inactiveItemClassName ? : string;\n\n /** An inline style object for the active breadcrumb list item */\n activeItemStyle ? : any | null;\n\n /** Classes to be used for the active breadcrumb list item */\n activeItemClassName ? : string;\n\n /** class for the link */\n linkClassName ? : string;\n\n /** custom url path for a bespoke breadcrumb */\n customPath ? : string;\n\n /** big commerce object to build url */\n data ? : any | null;\n\n /** path array for json schema */\n // exportPath ? : ((array: Array ) => void);\n}\n\n\n/**\n * A functional React component for Next.js that renders a dynamic Breadcrumb navigation\n * based on the current path within the Next.js router navigation.\n *\n * Only works in conjunction with Next.js, since it leverages the Next.js router.\n *\n * By setting useDefaultStyle to true, the default CSS will be used.\n * The component is highly customizable by either custom classes or\n * inline styles, which can be passed as props.\n *\n * @param props - object of type BreadcrumbsProps\n * @returns The breadcrumb React component.\n */\n\nconst Breadcrumbs = ({\n useDefaultStyle = false,\n rootLabel = \"Home\",\n omitRootLabel = false,\n labelsToUppercase = false,\n replaceCharacterList = [{\n from: '-',\n to: ' '\n }],\n transformLabel = undefined,\n omitIndexList = undefined,\n containerStyle = null,\n containerClassName = \"\",\n listStyle = null,\n listClassName = \"\",\n inactiveItemStyle = null,\n inactiveItemClassName = \"\",\n activeItemStyle = {},\n activeItemClassName = \"\",\n linkClassName = \"\",\n\t customPath = \"\",\n data = null,\n // exportPath\n\n}: BreadcrumbsProps) => {\n const pathname = usePathname();\n const [breadcrumbs, setBreadcrumbs] = useState | null> (null);\n\n const breadcrumbPath = useExportBreadcrumbPath()\n\n \n useEffect(() => {\n let path = null;\n\n if ( pathname && !data ) {\n path = breadcrumbPath.buildRouterPath(customPath, pathname)\n\n }else if( data ){\n path = breadcrumbPath.buildCategoryDataPath(data)\n }\n\n setBreadcrumbs(path);\n\n }, [ pathname, customPath, data]);\n\n\n\n if ( !breadcrumbs || !breadcrumbs.length ) { return null; }\n\n\n\n return (\n \n \n\n {!omitRootLabel && (\n
  • \n \n {convertBreadcrumb(\n rootLabel || 'Home',\n labelsToUppercase,\n replaceCharacterList,\n transformLabel\n )}\n \n \n
  • \n )}\n\n {breadcrumbs.length >= 1 &&\n breadcrumbs.map((breadcrumb, i) => {\n\n if (\n !breadcrumb ||\n breadcrumb.breadcrumb.length === 0 ||\n (omitIndexList && omitIndexList.find((value) => value === i )) ||\n breadcrumb.breadcrumb.includes(\"?\")\n ) {\n return null;\n }\n\n return (\n \n \n {convertBreadcrumb(\n breadcrumb.breadcrumb,\n labelsToUppercase,\n replaceCharacterList,\n transformLabel\n )}\n \n \n \n );\n })}\n \n \n );\n};\n\n\nexport default Breadcrumbs;\n","\"use client\"\n\nimport PropTypes from \"prop-types\";\nimport Breadcrumb from './Breadcrumb.tsx';\nimport clsx from \"clsx\";\nimport Style from './Breadcrumb.module.scss';\nimport ErrorBoundary from \"services/ErrorBoundary.js\";\n\n\nfunction Breadcrumbs({ \n urlPath = null, \n className,\n rootClassName,\n listClassName,\n customPlacement = false,\n data\n}) {\n \n return(\n \n \n \n )\n}\n\n\nBreadcrumbs.propTypes = {\n urlPath: PropTypes.string,\n gridEnd: PropTypes.number,\n gridStart: PropTypes.number,\n className: PropTypes.string\n}\n\n\nexport default Breadcrumbs;"],"names":["getPathFromUrl","url","split","convertBreadcrumb","title","toUpperCase","replaceCharacterList","transformLabel","transformedTitle","i","length","replaceAll","from","to","span","itemProp","decodeURI","Breadcrumbs","useDefaultStyle","rootLabel","omitRootLabel","labelsToUppercase","undefined","omitIndexList","containerStyle","containerClassName","listStyle","listClassName","inactiveItemStyle","inactiveItemClassName","activeItemStyle","activeItemClassName","linkClassName","customPath","data","pathname","usePathname","breadcrumbs","setBreadcrumbs","useState","breadcrumbPath","useExportBreadcrumbPath","restrictedPaths","buildRouterPath","routerAsPath","linkPath","pathArray","shift","map","path","find","item","breadcrumb","href","slice","join","filter","buildCategoryDataPath","category","parent","categoryPath","indexOf","categoryDataPath","reduce","acc","crumbPath","id","determineCategoryId","index","parent_id","category_id","concat","createCategoryURL","url_path","useEffect","nav","style","className","aria-label","ol","itemScope","itemType","li","Link","meta","content","value","includes","toTitleCase","str","replace","txt","charAt","substring","toLowerCase","urlPath","rootClassName","customPlacement","ErrorBoundary","Breadcrumb","clsx","Style","propTypes","PropTypes","gridEnd","gridStart"],"sourceRoot":""}