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,yBChHA3N,EAAAL,OAAA,CAAAmU,EAAA","sources":["webpack://_N_E/./node_modules/next/dist/client/components/async-local-storage.js","webpack://_N_E/./node_modules/next/dist/client/components/client-hook-in-server-component-error.js","webpack://_N_E/./node_modules/next/dist/client/components/navigation.js","webpack://_N_E/./node_modules/next/dist/client/components/not-found.js","webpack://_N_E/./node_modules/next/dist/client/components/redirect.js","webpack://_N_E/./node_modules/next/dist/client/components/request-async-storage.external.js","webpack://_N_E/./node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js","webpack://_N_E/./node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js","webpack://_N_E/./src/lib/constants/constants/pets.ts","webpack://_N_E/./src/lib/dataSource/lostApi/pet/petSearch/microchipSearch.ts","webpack://_N_E/./src/lib/utils/helpers/photoHelpers/getRankIndexFromRankKey.ts","webpack://_N_E/./src/lib/dataSource/users/pets/create.ts","webpack://_N_E/./src/lib/dataSource/users/pets/petData.ts","webpack://_N_E/./src/lib/hooks/shelterReferral/useReferral.tsx","webpack://_N_E/./src/lib/hooks/shelterReferral/ShelterReferral.tsx","webpack://_N_E/./src/lib/hooks/toasts/ToastStorage.ts","webpack://_N_E/./src/lib/hooks/useGATrackingParams/useGATrackingParams.ts","webpack://_N_E/./src/lib/utils/analytics/addPet.ts","webpack://_N_E/./src/lib/utils/analytics/getClientIdFromCookie.ts","webpack://_N_E/./src/lib/utils/analytics/reportPet.ts","webpack://_N_E/./src/lib/utils/analytics/startReportPet.ts","webpack://_N_E/./src/lib/utils/dates/localDateToUtc.ts","webpack://_N_E/./src/lib/utils/helpers/analytics/getGaTrackingParams.ts","webpack://_N_E/./src/lib/utils/helpers/dateHelpers/subtractYears.ts","webpack://_N_E/./src/lib/utils/helpers/microchipSearch/microchipResultsUrl.ts","webpack://_N_E/./src/lib/dataSource/lostApi/pet/getAttributes.ts","webpack://_N_E/./src/lib/utils/petAttributes/attributes.ts","webpack://_N_E/./node_modules/next/navigation.js","webpack://_N_E/<anon>"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\nObject.defineProperty(exports, \"createAsyncLocalStorage\", {\n    enumerable: true,\n    get: function() {\n        return createAsyncLocalStorage;\n    }\n});\nconst sharedAsyncLocalStorageNotAvailableError = new Error(\"Invariant: AsyncLocalStorage accessed in runtime where it is not available\");\nclass FakeAsyncLocalStorage {\n    disable() {\n        throw sharedAsyncLocalStorageNotAvailableError;\n    }\n    getStore() {\n        // This fake implementation of AsyncLocalStorage always returns `undefined`.\n        return undefined;\n    }\n    run() {\n        throw sharedAsyncLocalStorageNotAvailableError;\n    }\n    exit() {\n        throw sharedAsyncLocalStorageNotAvailableError;\n    }\n    enterWith() {\n        throw sharedAsyncLocalStorageNotAvailableError;\n    }\n}\nconst maybeGlobalAsyncLocalStorage = globalThis.AsyncLocalStorage;\nfunction createAsyncLocalStorage() {\n    if (maybeGlobalAsyncLocalStorage) {\n        return new maybeGlobalAsyncLocalStorage();\n    }\n    return new FakeAsyncLocalStorage();\n}\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n  Object.defineProperty(exports.default, '__esModule', { value: true });\n  Object.assign(exports.default, exports);\n  module.exports = exports.default;\n}\n\n//# sourceMappingURL=async-local-storage.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\nObject.defineProperty(exports, \"clientHookInServerComponentError\", {\n    enumerable: true,\n    get: function() {\n        return clientHookInServerComponentError;\n    }\n});\nconst _interop_require_default = require(\"@swc/helpers/_/_interop_require_default\");\nconst _react = /*#__PURE__*/ _interop_require_default._(require(\"react\"));\nfunction clientHookInServerComponentError(hookName) {\n    if (process.env.NODE_ENV !== \"production\") {\n        // If useState is undefined we're in a server component\n        if (!_react.default.useState) {\n            throw new Error(\"\" + hookName + ' only works in Client Components. Add the \"use client\" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/react-client-hook-in-server-component');\n        }\n    }\n}\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n  Object.defineProperty(exports.default, '__esModule', { value: true });\n  Object.assign(exports.default, exports);\n  module.exports = exports.default;\n}\n\n//# sourceMappingURL=client-hook-in-server-component-error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\n0 && (module.exports = {\n    ReadonlyURLSearchParams: null,\n    useSearchParams: null,\n    usePathname: null,\n    ServerInsertedHTMLContext: null,\n    useServerInsertedHTML: null,\n    useRouter: null,\n    useParams: null,\n    useSelectedLayoutSegments: null,\n    useSelectedLayoutSegment: null,\n    redirect: null,\n    permanentRedirect: null,\n    RedirectType: null,\n    notFound: null\n});\nfunction _export(target, all) {\n    for(var name in all)Object.defineProperty(target, name, {\n        enumerable: true,\n        get: all[name]\n    });\n}\n_export(exports, {\n    ReadonlyURLSearchParams: function() {\n        return ReadonlyURLSearchParams;\n    },\n    useSearchParams: function() {\n        return useSearchParams;\n    },\n    usePathname: function() {\n        return usePathname;\n    },\n    ServerInsertedHTMLContext: function() {\n        return _serverinsertedhtmlsharedruntime.ServerInsertedHTMLContext;\n    },\n    useServerInsertedHTML: function() {\n        return _serverinsertedhtmlsharedruntime.useServerInsertedHTML;\n    },\n    useRouter: function() {\n        return useRouter;\n    },\n    useParams: function() {\n        return useParams;\n    },\n    useSelectedLayoutSegments: function() {\n        return useSelectedLayoutSegments;\n    },\n    useSelectedLayoutSegment: function() {\n        return useSelectedLayoutSegment;\n    },\n    redirect: function() {\n        return _redirect.redirect;\n    },\n    permanentRedirect: function() {\n        return _redirect.permanentRedirect;\n    },\n    RedirectType: function() {\n        return _redirect.RedirectType;\n    },\n    notFound: function() {\n        return _notfound.notFound;\n    }\n});\nconst _react = require(\"react\");\nconst _approutercontextsharedruntime = require(\"../../shared/lib/app-router-context.shared-runtime\");\nconst _hooksclientcontextsharedruntime = require(\"../../shared/lib/hooks-client-context.shared-runtime\");\nconst _clienthookinservercomponenterror = require(\"./client-hook-in-server-component-error\");\nconst _getsegmentvalue = require(\"./router-reducer/reducers/get-segment-value\");\nconst _serverinsertedhtmlsharedruntime = require(\"../../shared/lib/server-inserted-html.shared-runtime\");\nconst _redirect = require(\"./redirect\");\nconst _notfound = require(\"./not-found\");\nconst INTERNAL_URLSEARCHPARAMS_INSTANCE = Symbol(\"internal for urlsearchparams readonly\");\nfunction readonlyURLSearchParamsError() {\n    return new Error(\"ReadonlyURLSearchParams cannot be modified\");\n}\nclass ReadonlyURLSearchParams {\n    [Symbol.iterator]() {\n        return this[INTERNAL_URLSEARCHPARAMS_INSTANCE][Symbol.iterator]();\n    }\n    append() {\n        throw readonlyURLSearchParamsError();\n    }\n    delete() {\n        throw readonlyURLSearchParamsError();\n    }\n    set() {\n        throw readonlyURLSearchParamsError();\n    }\n    sort() {\n        throw readonlyURLSearchParamsError();\n    }\n    constructor(urlSearchParams){\n        this[INTERNAL_URLSEARCHPARAMS_INSTANCE] = urlSearchParams;\n        this.entries = urlSearchParams.entries.bind(urlSearchParams);\n        this.forEach = urlSearchParams.forEach.bind(urlSearchParams);\n        this.get = urlSearchParams.get.bind(urlSearchParams);\n        this.getAll = urlSearchParams.getAll.bind(urlSearchParams);\n        this.has = urlSearchParams.has.bind(urlSearchParams);\n        this.keys = urlSearchParams.keys.bind(urlSearchParams);\n        this.values = urlSearchParams.values.bind(urlSearchParams);\n        this.toString = urlSearchParams.toString.bind(urlSearchParams);\n        this.size = urlSearchParams.size;\n    }\n}\nfunction useSearchParams() {\n    (0, _clienthookinservercomponenterror.clientHookInServerComponentError)(\"useSearchParams\");\n    const searchParams = (0, _react.useContext)(_hooksclientcontextsharedruntime.SearchParamsContext);\n    // In the case where this is `null`, the compat types added in\n    // `next-env.d.ts` will add a new overload that changes the return type to\n    // include `null`.\n    const readonlySearchParams = (0, _react.useMemo)(()=>{\n        if (!searchParams) {\n            // When the router is not ready in pages, we won't have the search params\n            // available.\n            return null;\n        }\n        return new ReadonlyURLSearchParams(searchParams);\n    }, [\n        searchParams\n    ]);\n    if (typeof window === \"undefined\") {\n        // AsyncLocalStorage should not be included in the client bundle.\n        const { bailoutToClientRendering } = require(\"./bailout-to-client-rendering\");\n        if (bailoutToClientRendering()) {\n            // TODO-APP: handle dynamic = 'force-static' here and on the client\n            return readonlySearchParams;\n        }\n    }\n    return readonlySearchParams;\n}\nfunction usePathname() {\n    (0, _clienthookinservercomponenterror.clientHookInServerComponentError)(\"usePathname\");\n    // In the case where this is `null`, the compat types added in `next-env.d.ts`\n    // will add a new overload that changes the return type to include `null`.\n    return (0, _react.useContext)(_hooksclientcontextsharedruntime.PathnameContext);\n}\nfunction useRouter() {\n    (0, _clienthookinservercomponenterror.clientHookInServerComponentError)(\"useRouter\");\n    const router = (0, _react.useContext)(_approutercontextsharedruntime.AppRouterContext);\n    if (router === null) {\n        throw new Error(\"invariant expected app router to be mounted\");\n    }\n    return router;\n}\n// this function performs a depth-first search of the tree to find the selected\n// params\nfunction getSelectedParams(tree, params) {\n    if (params === void 0) params = {};\n    const parallelRoutes = tree[1];\n    for (const parallelRoute of Object.values(parallelRoutes)){\n        const segment = parallelRoute[0];\n        const isDynamicParameter = Array.isArray(segment);\n        const segmentValue = isDynamicParameter ? segment[1] : segment;\n        if (!segmentValue || segmentValue.startsWith(\"__PAGE__\")) continue;\n        // Ensure catchAll and optional catchall are turned into an array\n        const isCatchAll = isDynamicParameter && (segment[2] === \"c\" || segment[2] === \"oc\");\n        if (isCatchAll) {\n            params[segment[0]] = segment[1].split(\"/\");\n        } else if (isDynamicParameter) {\n            params[segment[0]] = segment[1];\n        }\n        params = getSelectedParams(parallelRoute, params);\n    }\n    return params;\n}\nfunction useParams() {\n    (0, _clienthookinservercomponenterror.clientHookInServerComponentError)(\"useParams\");\n    const globalLayoutRouter = (0, _react.useContext)(_approutercontextsharedruntime.GlobalLayoutRouterContext);\n    const pathParams = (0, _react.useContext)(_hooksclientcontextsharedruntime.PathParamsContext);\n    return (0, _react.useMemo)(()=>{\n        // When it's under app router\n        if (globalLayoutRouter == null ? void 0 : globalLayoutRouter.tree) {\n            return getSelectedParams(globalLayoutRouter.tree);\n        }\n        // When it's under client side pages router\n        return pathParams;\n    }, [\n        globalLayoutRouter == null ? void 0 : globalLayoutRouter.tree,\n        pathParams\n    ]);\n}\n// TODO-APP: handle parallel routes\n/**\n * Get the canonical parameters from the current level to the leaf node.\n */ function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first, segmentPath) {\n    if (first === void 0) first = true;\n    if (segmentPath === void 0) segmentPath = [];\n    let node;\n    if (first) {\n        // Use the provided parallel route key on the first parallel route\n        node = tree[1][parallelRouteKey];\n    } else {\n        // After first parallel route prefer children, if there's no children pick the first parallel route.\n        const parallelRoutes = tree[1];\n        var _parallelRoutes_children;\n        node = (_parallelRoutes_children = parallelRoutes.children) != null ? _parallelRoutes_children : Object.values(parallelRoutes)[0];\n    }\n    if (!node) return segmentPath;\n    const segment = node[0];\n    const segmentValue = (0, _getsegmentvalue.getSegmentValue)(segment);\n    if (!segmentValue || segmentValue.startsWith(\"__PAGE__\")) return segmentPath;\n    segmentPath.push(segmentValue);\n    return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath);\n}\nfunction useSelectedLayoutSegments(parallelRouteKey) {\n    if (parallelRouteKey === void 0) parallelRouteKey = \"children\";\n    (0, _clienthookinservercomponenterror.clientHookInServerComponentError)(\"useSelectedLayoutSegments\");\n    const { tree } = (0, _react.useContext)(_approutercontextsharedruntime.LayoutRouterContext);\n    return getSelectedLayoutSegmentPath(tree, parallelRouteKey);\n}\nfunction useSelectedLayoutSegment(parallelRouteKey) {\n    if (parallelRouteKey === void 0) parallelRouteKey = \"children\";\n    (0, _clienthookinservercomponenterror.clientHookInServerComponentError)(\"useSelectedLayoutSegment\");\n    const selectedLayoutSegments = useSelectedLayoutSegments(parallelRouteKey);\n    if (selectedLayoutSegments.length === 0) {\n        return null;\n    }\n    return selectedLayoutSegments[0];\n}\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n  Object.defineProperty(exports.default, '__esModule', { value: true });\n  Object.assign(exports.default, exports);\n  module.exports = exports.default;\n}\n\n//# sourceMappingURL=navigation.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\n0 && (module.exports = {\n    notFound: null,\n    isNotFoundError: null\n});\nfunction _export(target, all) {\n    for(var name in all)Object.defineProperty(target, name, {\n        enumerable: true,\n        get: all[name]\n    });\n}\n_export(exports, {\n    notFound: function() {\n        return notFound;\n    },\n    isNotFoundError: function() {\n        return isNotFoundError;\n    }\n});\nconst NOT_FOUND_ERROR_CODE = \"NEXT_NOT_FOUND\";\nfunction notFound() {\n    // eslint-disable-next-line no-throw-literal\n    const error = new Error(NOT_FOUND_ERROR_CODE);\n    error.digest = NOT_FOUND_ERROR_CODE;\n    throw error;\n}\nfunction isNotFoundError(error) {\n    return (error == null ? void 0 : error.digest) === NOT_FOUND_ERROR_CODE;\n}\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n  Object.defineProperty(exports.default, '__esModule', { value: true });\n  Object.assign(exports.default, exports);\n  module.exports = exports.default;\n}\n\n//# sourceMappingURL=not-found.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\n0 && (module.exports = {\n    RedirectType: null,\n    getRedirectError: null,\n    redirect: null,\n    permanentRedirect: null,\n    isRedirectError: null,\n    getURLFromRedirectError: null,\n    getRedirectTypeFromError: null\n});\nfunction _export(target, all) {\n    for(var name in all)Object.defineProperty(target, name, {\n        enumerable: true,\n        get: all[name]\n    });\n}\n_export(exports, {\n    RedirectType: function() {\n        return RedirectType;\n    },\n    getRedirectError: function() {\n        return getRedirectError;\n    },\n    redirect: function() {\n        return redirect;\n    },\n    permanentRedirect: function() {\n        return permanentRedirect;\n    },\n    isRedirectError: function() {\n        return isRedirectError;\n    },\n    getURLFromRedirectError: function() {\n        return getURLFromRedirectError;\n    },\n    getRedirectTypeFromError: function() {\n        return getRedirectTypeFromError;\n    }\n});\nconst _requestasyncstorageexternal = require(\"./request-async-storage.external\");\nconst REDIRECT_ERROR_CODE = \"NEXT_REDIRECT\";\nvar RedirectType;\n(function(RedirectType) {\n    RedirectType[\"push\"] = \"push\";\n    RedirectType[\"replace\"] = \"replace\";\n})(RedirectType || (RedirectType = {}));\nfunction getRedirectError(url, type, permanent) {\n    if (permanent === void 0) permanent = false;\n    const error = new Error(REDIRECT_ERROR_CODE);\n    error.digest = REDIRECT_ERROR_CODE + \";\" + type + \";\" + url + \";\" + permanent;\n    const requestStore = _requestasyncstorageexternal.requestAsyncStorage.getStore();\n    if (requestStore) {\n        error.mutableCookies = requestStore.mutableCookies;\n    }\n    return error;\n}\nfunction redirect(url, type) {\n    if (type === void 0) type = \"replace\";\n    throw getRedirectError(url, type, false);\n}\nfunction permanentRedirect(url, type) {\n    if (type === void 0) type = \"replace\";\n    throw getRedirectError(url, type, true);\n}\nfunction isRedirectError(error) {\n    if (typeof (error == null ? void 0 : error.digest) !== \"string\") return false;\n    const [errorCode, type, destination, permanent] = error.digest.split(\";\", 4);\n    return errorCode === REDIRECT_ERROR_CODE && (type === \"replace\" || type === \"push\") && typeof destination === \"string\" && (permanent === \"true\" || permanent === \"false\");\n}\nfunction getURLFromRedirectError(error) {\n    if (!isRedirectError(error)) return null;\n    // Slices off the beginning of the digest that contains the code and the\n    // separating ';'.\n    return error.digest.split(\";\", 3)[2];\n}\nfunction getRedirectTypeFromError(error) {\n    if (!isRedirectError(error)) {\n        throw new Error(\"Not a redirect error\");\n    }\n    return error.digest.split(\";\", 3)[1];\n}\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n  Object.defineProperty(exports.default, '__esModule', { value: true });\n  Object.assign(exports.default, exports);\n  module.exports = exports.default;\n}\n\n//# sourceMappingURL=redirect.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\nObject.defineProperty(exports, \"requestAsyncStorage\", {\n    enumerable: true,\n    get: function() {\n        return requestAsyncStorage;\n    }\n});\nconst _asynclocalstorage = require(\"./async-local-storage\");\nconst requestAsyncStorage = (0, _asynclocalstorage.createAsyncLocalStorage)();\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n  Object.defineProperty(exports.default, '__esModule', { value: true });\n  Object.assign(exports.default, exports);\n  module.exports = exports.default;\n}\n\n//# sourceMappingURL=request-async-storage.external.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\nObject.defineProperty(exports, \"getSegmentValue\", {\n    enumerable: true,\n    get: function() {\n        return getSegmentValue;\n    }\n});\nfunction getSegmentValue(segment) {\n    return Array.isArray(segment) ? segment[1] : segment;\n}\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n  Object.defineProperty(exports.default, '__esModule', { value: true });\n  Object.assign(exports.default, exports);\n  module.exports = exports.default;\n}\n\n//# sourceMappingURL=get-segment-value.js.map","\"use client\";\n\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\n0 && (module.exports = {\n    ServerInsertedHTMLContext: null,\n    useServerInsertedHTML: null\n});\nfunction _export(target, all) {\n    for(var name in all)Object.defineProperty(target, name, {\n        enumerable: true,\n        get: all[name]\n    });\n}\n_export(exports, {\n    ServerInsertedHTMLContext: function() {\n        return ServerInsertedHTMLContext;\n    },\n    useServerInsertedHTML: function() {\n        return useServerInsertedHTML;\n    }\n});\nconst _interop_require_wildcard = require(\"@swc/helpers/_/_interop_require_wildcard\");\nconst _react = /*#__PURE__*/ _interop_require_wildcard._(require(\"react\"));\nconst ServerInsertedHTMLContext = /*#__PURE__*/ _react.default.createContext(null);\nfunction useServerInsertedHTML(callback) {\n    const addInsertedServerHTMLCallback = (0, _react.useContext)(ServerInsertedHTMLContext);\n    // Should have no effects on client where there's no flush effects provider\n    if (addInsertedServerHTMLCallback) {\n        addInsertedServerHTMLCallback(callback);\n    }\n}\n\n//# sourceMappingURL=server-inserted-html.shared-runtime.js.map","import {\n  PetUrlPathOwnerType,\n  PetUrlPathSearchType,\n} from '@/lib/constants/types/pets';\n\n/** Index used for age number */\nlet index = 0;\n\n/**\n * The type of the unknown value of pet dropdown input fields\n *\n * @typedef {string} UnknownValueType\n */\nexport type UnknownValueType = 'unknown';\n\n/**\n * The unknown value for the dropdowns\n *\n * @constant {string} unknownValue\n */\nexport const unknownValue: UnknownValueType = 'unknown';\n\n/** Number Values used for age dropdown */\nconst baseAgeValues = Array.from({ length: 30 }, () => {\n  index++;\n  return {\n    name: `${index} year${index > 1 ? 's' : ''} old`,\n    value: index.toString(),\n  };\n});\n\n/** The unknown value for the pet dropdown */\nexport const petDropdownUnknownValue = {\n  name: 'Unknown',\n  value: unknownValue,\n};\n\n/** All Values used to fill age dropdown */\nexport const ageValues = [\n  petDropdownUnknownValue,\n  { name: '<1', value: '0' },\n  ...baseAgeValues,\n];\n\n/** All Values used to fill pet sex dropdown */\nexport const petSexDropdownValues = [\n  {\n    name: 'Male',\n    value: 'male',\n  },\n  {\n    name: 'Female',\n    value: 'female',\n  },\n  petDropdownUnknownValue,\n];\n\n/** Values used to fill the species dropdown */\nexport const speciesDropdownValues = [\n  {\n    name: 'Dog',\n    value: 'dog',\n  },\n  {\n    name: 'Cat',\n    value: 'cat',\n  },\n];\n\nexport const alteredDropdownValues = [\n  {\n    name: 'Yes',\n    value: 'yes',\n  },\n  {\n    name: 'No',\n    value: 'no',\n  },\n  petDropdownUnknownValue,\n];\n\n/** The search radius options */\nexport const searchRadiusOptions = [\n  { label: '10', value: 10 },\n  { label: '25', value: 25 },\n  { label: '50', value: 50 },\n  { label: '75', value: 75 },\n  { label: '100', value: 100 },\n  { label: '200', value: 200 },\n  { label: 'Unlimited', value: 3000 },\n];\n\n/**\n * The valid pet statuses to allow displaying details for\n *\n * @constant {string[]} validStatus\n */\nexport const validStatus: string[] = ['active'];\n\n/**\n * The valid pet statuses to allow displaying details for\n *\n * @constant {PetUrlPathOwnerType} validStatus - The valid pet statuses to allow\n *   displaying details for\n * @property {string} user - The url path segment for a user pet\n * @property {string} awo - The url path segment for an awo pet\n */\nexport const petUrlPathOwnerTypes: PetUrlPathOwnerType = {\n  user: 'u',\n  awo: 's',\n};\n\n/**\n * The valid url path search types\n *\n * @constant {object} petUrlPathSearchTypes\n * @property {string} lostUserPet - The url path segment for a lost user pet\n *   search type\n * @property {string} foundUserPet - The url path segment for a found user pet\n *   search type\n * @property {string} foundOrgPet - The url path segment for a found org pet\n *   search type\n */\nexport const petUrlPathSearchTypes: PetUrlPathSearchType = {\n  lostUserPet: 'lost',\n  foundUserPet: 'found',\n  foundOrgPet: 'found',\n};\n","import { sdk } from '@/lib/dataSource/lostApi/common';\nimport {\n  IPetMicrochipSearchRequestData,\n  IPetSearchResultDTO,\n  IPetSearchServiceResponse,\n} from '@petcolove/lost--client--api-sdk/dist/concrete/sdks/services/petSearch/dto';\n\n/**\n * Get microchip search results\n *\n * @param {string} microchipId - The search id to search for\n * @param {IPetMicrochipSearchRequestData} data - The search data\n * @returns {Promise<IPetSearchResultDTO>} - This is the result of the search\n */\nexport async function getMicrochipSearchResults(\n  /** The Pets Microchip Id number */\n  microchipId: string,\n  /** The search options */\n  data: IPetMicrochipSearchRequestData\n): Promise<IPetSearchResultDTO> {\n  try {\n    const searchResults: IPetSearchServiceResponse = await sdk\n      .petMicrochipSearch()\n      .microchipSearch(microchipId, data);\n    return searchResults.data;\n  } catch (error) {\n    console.error(error);\n    throw error;\n  }\n}\n","import { IPetPhotoRank } from '@petcolove/lost--client--api-sdk/dist/concrete/sdks/services/users/pets/dto';\n\n/**\n * Get the rank index from the rank key\n *\n * @param {keyof IPetPhotoRank} rankKey - The rank key. Example: `photo_1`\n * @returns {number} - The rank index\n * @throws {Error} - If the rank key is invalid\n */\nexport function getRankIndexFromRankKey(rankKey: keyof IPetPhotoRank): number {\n  /**\n   * The last character of the rank key is the rank index. It should be a number\n   *\n   * @constant {number} rankIndex\n   */\n  const rankIndex = Number(rankKey.slice(-1));\n\n  if (isNaN(rankIndex)) {\n    throw new Error('Invalid rank key');\n  }\n  return rankIndex;\n}\n","import { ILocationDto } from '@/components/molecules/InputPlacesFieldGoogle/InputPlacesFieldGoogle';\nimport { IPetRow, ValidPetTypes } from '@/components/molecules/PetRow/PetRow';\nimport { InferredSpecies } from '@/lib/constants/types/pets';\nimport localDateToUtc from '@/lib/utils/dates/localDateToUtc';\nimport { getRankIndexFromRankKey } from '@/lib/utils/helpers/photoHelpers/getRankIndexFromRankKey';\nimport { IPetPhotoItemData } from '@petcolove/lost--client--api-sdk/dist/concrete/sdks/constants/interfaces';\nimport {\n  IRegisterWithPetEntityDetails,\n  IRegisterWithPetRequestDataPet,\n} from '@petcolove/lost--client--api-sdk/dist/concrete/sdks/services/auth/interfaces';\nimport { IPetPhotoRank } from '@petcolove/lost--client--api-sdk/dist/concrete/sdks/services/users/pets/dto';\nimport { IUserPetCreateData } from '@petcolove/lost--client--api-sdk/dist/concrete/sdks/services/users/pets/interfaces';\nimport PetData, { IPetData } from './petData';\n\n/**\n * Interface for the pet data\n *\n * @augments IPetData\n * @interface IPetData\n */\nexport interface IPetCreateData extends IPetData {\n  /**\n   * The location of the pet\n   *\n   * @memberof IPetData\n   * @member {ILocationDto} location\n   */\n  location: ILocationDto;\n  /**\n   * The user pet photos data\n   *\n   * @memberof IPetData\n   * @member {string[]} photos\n   */\n  photos: string[];\n  /**\n   * The pets listing type\n   *\n   * @memberof IPetData\n   * @member {ValidPetTypes} listingType\n   */\n  listingType: ValidPetTypes;\n  /**\n   * The pets species\n   *\n   * @memberof IPetData\n   * @member {InferredSpecies} species\n   */\n  species: InferredSpecies;\n\n  /**\n   * The pet photos ranked\n   *\n   * @memberof IPetData\n   * @member {IPetPhotoRank} rankedPhotos\n   */\n  rankedPhotos?: IPetPhotoRank;\n}\n\n/**\n * Class to create a new pet\n *\n * @augments PetData\n * @class PetCreateData\n */\nexport default class PetCreateData extends PetData {\n  /**\n   * The location of the pet\n   *\n   * @memberof PetCreateData\n   * @member {ILocationDto} location\n   */\n  location: ILocationDto;\n\n  /**\n   * The user pet photos data\n   *\n   * @memberof PetCreateData\n   * @member {string[]} photos\n   */\n  photos: string[];\n\n  /**\n   * The pets listing type\n   *\n   * @memberof PetCreateData\n   * @member {ValidPetTypes} listingType\n   */\n  listingType: ValidPetTypes;\n\n  /**\n   * The pets listing type\n   *\n   * @memberof PetCreateData\n   * @member {InferredSpecies} species\n   */\n  species: InferredSpecies;\n\n  /**\n   * The pet photos ranked\n   *\n   * @member\n   */\n  rankedPhotos?: IPetPhotoRank;\n\n  /**\n   * Create an instance of the PetData class\n   *\n   * @memberof PetCreateData\n   * @class\n   * @param {IPetCreateData} data - The constructor data\n   */\n  constructor(data: IPetCreateData) {\n    super(data);\n    /**\n     * @property {ILocationDto} location - The location of the pet\n     * @property {string[]} photos - The user pet photos data\n     * @property {ValidPetTypes} listingType - The pets listing type\n     * @property {InferredSpecies} species - The pets species\n     * @property {IPetPhotoRank} rankedPhotos - The pet photos ranked\n     */\n    const { location, listingType, photos, species, rankedPhotos } = data;\n\n    this.location = location;\n    this.photos = photos;\n    this.listingType = listingType;\n    this.species = species;\n    this.rankedPhotos = rankedPhotos;\n  }\n\n  /**\n   * Get data for pet for user registration\n   *\n   * @memberof PetCreateData\n   * @returns {IRegisterWithPetRequestDataPet} The pet data\n   */\n  get dataForRegistration(): IRegisterWithPetRequestDataPet {\n    const data: IRegisterWithPetRequestDataPet = {\n      entity: this.entityDataForCreate,\n      location: this.locationData,\n    };\n\n    if (this.photos) {\n      data.photos = this.photosData;\n    }\n\n    if (this.date) {\n      data.lost_or_found_at = new Date(this.date).toISOString();\n    }\n\n    return data;\n  }\n\n  /**\n   * Get data for pet creation\n   *\n   * @memberof PetCreateData\n   * @returns {IUserPetCreateData} The pet data\n   */\n  get dataForCreate(): IUserPetCreateData {\n    const data: IUserPetCreateData = {\n      entity: this.entityData,\n      location: this.locationData,\n    };\n\n    if (this.photos) {\n      data.photos = this.photosData;\n    }\n\n    if (this.date) {\n      data.lost_or_found_at = localDateToUtc(this.date);\n    }\n\n    return data;\n  }\n\n  /**\n   * Get the location data\n   *\n   * @memberof PetCreateData\n   * @returns {ILocationDto} The pet geolocation data\n   * @override\n   */\n  get locationData(): ILocationDto {\n    return this.location;\n  }\n\n  /**\n   * Get the pet data for storage\n   *\n   * @memberof PetCreateData\n   * @returns {IPetRow} The pet data for storage\n   */\n  get dataForStorage(): IPetRow {\n    const dataForStorage: IPetRow = {\n      type: this.listingType,\n      photo: { photo_1: this.photos[0] },\n    };\n\n    if (this.petName) {\n      dataForStorage.petName = this.petName;\n    }\n\n    return dataForStorage;\n  }\n\n  /**\n   * Get the entity data\n   *\n   * @returns {IRegisterWithPetEntityDetails} The pet entity data\n   */\n  get entityDataForCreate(): IRegisterWithPetEntityDetails {\n    const entityData: IRegisterWithPetEntityDetails = {\n      listing_type: this.listingType as string,\n      gender: this.genderData,\n      birthdate: this.birthdateString,\n      description: this.description,\n      microchip_string: this.microchip,\n      species: this.species.toLowerCase(),\n    };\n\n    if (this.petName) {\n      entityData.name = this.petName;\n    }\n\n    return entityData;\n  }\n\n  /**\n   * Get the photos data\n   *\n   * @returns {IPetPhotoItemData} The pet photos data to be send to the API\n   */\n  get photosData(): IPetPhotoItemData[] {\n    if (this.rankedPhotos) {\n      /**\n       * Entries from the ranked photos\n       *\n       * @constant {[keyof IPetPhotoRank, string][]} entries\n       */\n      const entries = Object.entries(this.rankedPhotos) as [\n        keyof IPetPhotoRank,\n        string\n      ][];\n\n      return entries.map(\n        /**\n         * Create a photo data object from ranked photos\n         *\n         * @param {[keyof IPetPhotoRank, string]} entry - The ranked photo entry\n         * @returns {IPetPhotoItemData} The photo data object\n         */\n        ([key, objectKey]: [\n          keyof IPetPhotoRank,\n          string\n        ]): IPetPhotoItemData => ({\n          objectKey: objectKey,\n          rank: getRankIndexFromRankKey(key as keyof IPetPhotoRank),\n        })\n      );\n    }\n\n    const photos: string[] = this.photos;\n\n    return photos?.map((photo) => {\n      return {\n        objectKey: photo,\n        rank: 1,\n      };\n    });\n  }\n\n  /**\n   * Get the photo key for pet search\n   *\n   * @returns {string} - The photo key to use for pet search\n   */\n  get photoKeyForPetSearch(): string {\n    return this?.rankedPhotos?.photo_1 ?? this.photos[0];\n  }\n}\n","import { ILocationDto } from '@/components/molecules/InputPlacesFieldGoogle/InputPlacesFieldGoogle';\nimport { ValidPetTypes } from '@/components/molecules/PetRow/PetRow';\nimport { unknownValue, UnknownValueType } from '@/lib/constants/constants/pets';\nimport { InferredSpecies, PetSex } from '@/lib/constants/types/pets';\nimport { subtractYears } from '@/lib/utils/helpers/dateHelpers/subtractYears';\nimport {\n  getListingTypeId,\n  getSpeciesId,\n} from '@/lib/utils/petAttributes/attributes';\nimport { IPetPhotoItemData } from '@petcolove/lost--client--api-sdk/dist/concrete/sdks/constants/interfaces';\nimport { IUserPetEntityDetails } from '@petcolove/lost--client--api-sdk/dist/concrete/sdks/services/users/pets/interfaces';\n\n/**\n * Interface for the pet data\n *\n * @interface IPetData\n */\nexport interface IPetData {\n  /**\n   * The pets birthdate\n   *\n   * @memberof IPetData\n   * @member {string | UnknownValueType} [birthdate]\n   */\n  birthdate?: string | UnknownValueType;\n\n  /**\n   * The date of the pet\n   *\n   * @memberof IPetData\n   * @member {string} date\n   */\n  date?: string;\n\n  /**\n   * The pet description\n   *\n   * @memberof IPetData\n   * @member {string} [description]\n   */\n  description?: string;\n\n  /**\n   * The pets listing type\n   *\n   * @memberof IPetData\n   * @member {ValidPetTypes} [listingType]\n   */\n  listingType?: ValidPetTypes;\n\n  /**\n   * The lost or found at date\n   *\n   * @memberof IPetData\n   * @member {string} [lost_or_found_at]\n   */\n  lost_or_found_at?: string;\n\n  /**\n   * The location of the pet\n   *\n   * @memberof IPetData\n   * @member {ILocationDto} [location]\n   */\n  location?: ILocationDto;\n\n  /**\n   * The pet microchip\n   *\n   * @memberof IPetData\n   * @member {string} [microchip]\n   */\n  microchip?: string;\n\n  /**\n   * The name of the pet\n   *\n   * @memberof IPetData\n   * @member {string} petName\n   */\n  petName?: string;\n\n  /**\n   * The user pet photos data\n   *\n   * @memberof IPetData\n   * @member {IPetPhotoItemData[] | string[]} [photos]\n   */\n  photos?: IPetPhotoItemData[] | string[];\n\n  /**\n   * The pets species\n   *\n   * @memberof IPetData\n   * @member {InferredSpecies} [species]\n   */\n  species?: InferredSpecies;\n\n  /**\n   * The pet sex\n   *\n   * @memberof IPetData\n   * @member {PetSex | UnknownValueType} typeOfPet\n   */\n  typeOfPet: PetSex | UnknownValueType;\n\n  /**\n   * The nearest cross streets, landmark, etc.\n   *\n   * @memberof IPetData\n   * @member {string} [crossStreets]\n   */\n  cross_streets?: string;\n}\n\n/**\n * Class to create a new pet\n *\n * @class PetData\n */\nexport default class PetData implements IPetData {\n  /** @inheritdoc */\n  birthdate?: string | UnknownValueType;\n\n  /** @inheritdoc */\n  listingTypeId?: number;\n\n  /** @inheritdoc */\n  speciesId: number;\n\n  /** @inheritdoc */\n  typeOfPet: PetSex | UnknownValueType;\n\n  /** @inheritdoc */\n  date?: string;\n\n  /** @inheritdoc */\n  description?: string;\n\n  /** @inheritdoc */\n  listingType?: ValidPetTypes;\n\n  /** @inheritdoc */\n  location?: ILocationDto;\n\n  /** @inheritdoc */\n  lost_or_found_at?: string;\n\n  /** @inheritdoc */\n  microchip?: string;\n\n  /** @inheritdoc */\n  petName?: string;\n\n  /** @inheritdoc */\n  photos?: IPetPhotoItemData[] | string[];\n\n  /** @inheritdoc */\n  species?: InferredSpecies;\n\n  /** @inheritdoc */\n  cross_streets?: string;\n\n  /**\n   * Create an instance of the PetData class\n   *\n   * @memberof PetData\n   * @class\n   * @param {IPetData} data - The constructor data\n   */\n  constructor(data: IPetData) {\n    const {\n      petName,\n      location,\n      date,\n      typeOfPet,\n      microchip,\n      description,\n      photos,\n      birthdate,\n      lost_or_found_at,\n      species,\n      listingType,\n      cross_streets,\n    } = data;\n\n    this.speciesId = 0;\n    this.listingTypeId;\n    this.petName = petName;\n    this.date = date;\n    this.typeOfPet = typeOfPet;\n    this.microchip = microchip;\n    this.description = description;\n    this.photos = photos;\n    this.location = location;\n    this.birthdate = birthdate;\n    this.species = species;\n\n    if (lost_or_found_at) {\n      this.lost_or_found_at = lost_or_found_at;\n    }\n\n    if (cross_streets) {\n      this.cross_streets = cross_streets;\n    }\n\n    if (listingType) {\n      this.listingType = listingType;\n    }\n  }\n\n  /**\n   * Method used to set pet attribute ids\n   *\n   * @returns {Promise<void>} - A promise that resolves when the pet attribute\n   *   ids are set\n   */\n  async setAttributeIds(): Promise<void> {\n    this.speciesId = await getSpeciesId(this.species as string);\n    if (this.listingType) {\n      this.listingTypeId = await getListingTypeId(this.listingType as string);\n    }\n  }\n\n  /**\n   * Get the birthdate as an ISO string\n   *\n   * @returns {string | null | undefined} The birthdate as an ISO string\n   */\n  get birthdateString(): string | null | undefined {\n    if (this.birthdate === unknownValue) return null;\n\n    if (!Number.isNaN(Number(this.birthdate))) {\n      const today = new Date();\n      return subtractYears(today, Number(this.birthdate)).toISOString();\n    }\n  }\n\n  /**\n   * Get the entity data\n   *\n   * @returns {IUserPetEntityDetails} The pet entity data\n   */\n  get entityData(): IUserPetEntityDetails {\n    const entityData: IUserPetEntityDetails = {\n      gender: this.genderData,\n      birthdate: this.birthdateString,\n      description: this.description,\n      microchip_string: this.microchip,\n    };\n\n    if (this.listingTypeId) {\n      entityData.listing_type_id = this.listingTypeId as number;\n    }\n\n    if (this.speciesId !== 0) {\n      entityData.species_id = this.speciesId;\n    }\n\n    if (this.petName) {\n      entityData.name = this.petName;\n    }\n\n    return entityData;\n  }\n\n  /**\n   * Get the location data\n   *\n   * @returns {ILocationDto | undefined} The pet geolocation data\n   */\n  get locationData(): ILocationDto | undefined {\n    return this.location;\n  }\n\n  /**\n   * Get the gender data. Return null if unknownValue is selected\n   *\n   * @returns {PetSex | null | undefined} The pet gender data to be sent to the\n   *   API\n   */\n  get genderData(): PetSex | null | undefined {\n    if (this.typeOfPet === unknownValue) {\n      return null;\n    }\n    return this.typeOfPet;\n  }\n}\n","import AbstractStorage from '@/lib/utils/storage/abstract-storage';\nimport LocalStorage from '@/lib/utils/storage/local-storage';\nimport { ReadonlyURLSearchParams, useSearchParams } from 'next/navigation';\nimport { useCallback } from 'react';\n\nconst defaultStorage = new LocalStorage();\nconst defaultReferralSourceKey = 'utm_campaign';\nconst defaultReferralStorageKey = 'shelter_referral';\n\n/**\n * The use referral props\n *\n * @interface IUseReferralProps\n */\nexport interface IUseReferralProps {\n  /**\n   * The storage\n   *\n   * @memberof IUseReferralProps\n   * @default defaultStorage\n   * @member {AbstractStorage} [storage]\n   */\n  storage?: AbstractStorage;\n  /**\n   * The referral storage key\n   *\n   * @memberof IUseReferralProps\n   * @default defaultReferralStorageKey\n   * @member {string} [referralStorageKey]\n   */\n  referralStorageKey?: string;\n  /**\n   * The referral source key\n   *\n   * @memberof IUseReferralProps\n   * @default defaultReferralSourceKey\n   * @member {string} [referralSourceKey]\n   */\n  referralSourceKey?: string;\n}\n\n/**\n * The use referral interface\n *\n * @interface IUseReferral\n */\nexport interface IUseReferral {\n  /**\n   * Sets the referral to the storage\n   *\n   * @memberof IUseReferral\n   * @member {Function} setReferral\n   * @returns {void}\n   */\n  setReferral: () => void;\n\n  /**\n   * Gets the referral from the storage\n   *\n   * @memberof IUseReferral\n   * @member {Function} getReferral\n   * @returns {string | null} - The referral\n   */\n  getReferral: () => number | null;\n}\n\n/**\n * A hook to interact with the referral\n *\n * @param {IUseReferralProps} props - The referral props\n * @returns {IUseReferral} The referral hook\n */\nconst useReferral = ({\n  storage = defaultStorage,\n  referralStorageKey = defaultReferralStorageKey,\n  referralSourceKey = defaultReferralSourceKey,\n}: IUseReferralProps): IUseReferral => {\n  /**\n   * The search params\n   *\n   * @constant {ReadonlyURLSearchParams} searchParams\n   */\n  const searchParams: ReadonlyURLSearchParams = useSearchParams();\n  /**\n   * A callback to set the referral from the search params to the storage\n   *\n   * @returns {void}\n   */\n  const setReferral = useCallback(() => {\n    // Only proceed if search params exists\n    if (!searchParams) {\n      return;\n    }\n\n    /**\n     * The referral from the search params\n     *\n     * @constant {string | null} referral\n     */\n    const referral = searchParams.get(referralSourceKey);\n\n    if (!referral) {\n      return;\n    }\n\n    /** The awo id from the referral. */\n    const awoId = getAwoIdFromUtmCampaign(referral);\n\n    if (awoId) {\n      storage.set(referralStorageKey, awoId);\n    }\n  }, [searchParams, referralSourceKey, referralStorageKey, storage]);\n\n  /**\n   * A callback to get the referral\n   *\n   * @returns {string | null} - The referral\n   */\n  const getReferral = useCallback(() => {\n    /**\n     * The referral from storage\n     *\n     * @constant {string | object | null}\n     */\n    const referral = storage.get(referralStorageKey);\n\n    if (\n      referral &&\n      (typeof referral === 'string' || typeof referral === 'number')\n    ) {\n      return Number(referral);\n    }\n\n    return null;\n  }, [referralStorageKey, storage]);\n\n  return {\n    setReferral,\n    getReferral,\n  };\n};\n\nexport default useReferral;\n\n/**\n * Get the awo id from the utm campaign.\n *\n * @param {string} utmCampaign - The utm campaign\n * @returns {string | null} - The awo id\n */\nexport const getAwoIdFromUtmCampaign = (utmCampaign: string): string | null => {\n  /** The regex to extract the awo id from the utm_campaign value. */\n  const awoIdFromCampaignRegex = /shelter-(\\d+)/i;\n\n  const awoIdMatch = utmCampaign.match(awoIdFromCampaignRegex);\n\n  if (awoIdMatch === null || awoIdMatch.length === 0) {\n    console.error('invalid campaign format for referral');\n    return null;\n  }\n\n  const awoId = awoIdMatch[1];\n\n  return awoId;\n};\n","import { createContext, ReactNode, useContext, useEffect } from 'react';\nimport useReferral, { IUseReferral, IUseReferralProps } from './useReferral';\n\n/**\n * The default context\n *\n * @constant {IUseReferral}\n */\nexport const defaultContext: IUseReferral = {\n  /** The default set referral function */\n  // eslint-disable-next-line @typescript-eslint/no-empty-function\n  setReferral: () => {},\n  /**\n   * The default get referral function\n   *\n   * @returns {null} - The default referral\n   */\n  getReferral: (): null => null,\n};\n\n/**\n * The shelter referral context\n *\n * @constant {React.Context<IUseReferral>} ShelterReferralContext\n */\nconst ShelterReferralContext = createContext<IUseReferral>(defaultContext);\n\n/**\n * The default use shelter referral\n *\n * @augments IUseReferralProps\n * @interface IShelterReferralProviderProps\n */\nexport interface IShelterReferralProviderProps extends IUseReferralProps {\n  /**\n   * The children of the ShelterReferralProvider\n   *\n   * @memberof IShelterReferralProviderProps\n   * @member {ReactNode} children\n   */\n  children: ReactNode;\n}\n\n/**\n * The ShelterReferralProvider\n *\n * @param {IShelterReferralProviderProps} props - The ShelterReferralProvider\n *   props\n * @returns {Element} - The ShelterReferralProvider\n */\nexport function ShelterReferralProvider({\n  children,\n  ...rest\n}: IShelterReferralProviderProps): JSX.Element {\n  /**\n   * The referral hook\n   *\n   * @constant {IUseReferral} referral\n   */\n  const referral = useReferral(rest);\n\n  /** Hook to set the referral on mount */\n  useEffect(() => {\n    referral.setReferral();\n  }, [referral]);\n\n  return (\n    <ShelterReferralContext.Provider value={referral}>\n      {children}\n    </ShelterReferralContext.Provider>\n  );\n}\n\n/**\n * A hook to access the ShelterReferralContext\n *\n * @returns {IUseReferral} - The shelter referral context\n */\nexport const useShelterReferral = (): IUseReferral =>\n  useContext(ShelterReferralContext);\n","import { tomorrow } from '@/lib/utils/helpers/dateHelpers/dates';\nimport LocalStorage from '@/lib/utils/storage/local-storage';\nimport { useEffect } from 'react';\nimport { Toast, ToastType, useToastContext } from './Toast';\n\n/** Props for the buildToastPayload fn */\ntype BuildToastPayloadProps = {\n  /** Toast id */\n  id?: string;\n  /** Toast type */\n  type: ToastType;\n  /** Toast message */\n  message: string;\n};\n\n/**\n * Generates a toast payload for the local storage\n *\n * @param {object} param - Function params\n * @param {string} [param.id] - The toast id\n * @param {ToastType} param.type - The toast type\n * @param {string} param.message - The toast message\n * @returns {object} - The built toast payload\n */\nconst buildToastPayload = ({\n  id = '1',\n  type,\n  message,\n}: BuildToastPayloadProps) => {\n  return {\n    id,\n    type: type,\n    message: message,\n    persistent: false,\n    showIcon: true,\n  };\n};\n\nconst STORAGE_TOAST_KEY = 'toast';\n\n/**\n * Saves the toast payload to local storage\n *\n * @returns {Function} A function to save toast info into the local storage\n */\nexport const useSaveToastToStorage = () => {\n  const storage = new LocalStorage();\n\n  return (type: ToastType, message: string, id?: string) =>\n    storage.set(STORAGE_TOAST_KEY, buildToastPayload({ id, type, message }), {\n      expires: tomorrow,\n    });\n};\n\n/**\n * Looks for the STORAGE_TOAST_KEY in local storage and dispatches a new toast\n * if that's the case.\n */\nexport const useCheckAndDispatchToastFromStorage = () => {\n  const storage = new LocalStorage();\n  const toast = storage.get(STORAGE_TOAST_KEY) as Toast | null;\n\n  const { dispatch } = useToastContext();\n\n  useEffect(() => {\n    if (toast) {\n      dispatch({\n        type: 'ADD_TOAST',\n        toast,\n      });\n\n      storage.delete('toast');\n    }\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [JSON.stringify(toast)]);\n};\n","import AbstractStorage from '@/lib/utils/storage/abstract-storage';\nimport SessionStorage from '@/lib/utils/storage/session-storage';\nimport { useCallback, useEffect, useState } from 'react';\n\n/** The GA tracking params */\nexport type GATrackingParams = {\n  [key: string]: string | null;\n};\n\nconst sessionStorage = new SessionStorage();\n\nexport const defaultGATrackingParams = [\n  'last_campaign',\n  'last_source',\n  'last_medium',\n  'last_term',\n  'last_content',\n  'last_keyword',\n];\n\n/**\n * The GA tracking params props\n *\n * @interface IGATrackingParamsProps\n */\ninterface IGATrackingParamsProps {\n  /**\n   * Whether get the params on load or not\n   *\n   * @memberof IGATrackingParamsProps\n   * @member {boolean} [getOnLoad]\n   */\n  getOnLoad?: boolean;\n  /**\n   * The tracking params to get\n   *\n   * @memberof IGATrackingParamsProps\n   * @member {string[]} [trackingParamsKeys]\n   */\n  trackingParamsKeys?: string[];\n  /**\n   * The storage from which get the params\n   *\n   * @memberof IGATrackingParamsProps\n   * @member {AbstractStorage} [storage]\n   */\n  storage?: AbstractStorage;\n  /**\n   * Whether to omit empty values or not\n   *\n   * @memberof IGATrackingParamsProps\n   * @member {boolean} [omitEmpty]\n   */\n  omitEmpty?: boolean;\n}\n\n/**\n * The GA tracking params hook\n *\n * @interface GATrackingParamsHook\n */\ninterface IGATrackingParams {\n  /** The callback to get the GA tracking params from session storage */\n  getGATrackingParams: () => GATrackingParams;\n  /** The tracking params */\n  trackingParams: GATrackingParams;\n}\n\n/**\n * A hook to get the GA tracking params from session storage\n *\n * @param {IGATrackingParamsProps} props - The GA tracking params props\n * @returns {IGATrackingParams} The GA tracking params hook\n */\nconst useGATrackingParams = ({\n  getOnLoad = true,\n  trackingParamsKeys = defaultGATrackingParams,\n  storage = sessionStorage,\n  omitEmpty = true,\n}: IGATrackingParamsProps): IGATrackingParams => {\n  const [trackingParams, setTrackingParams] = useState<GATrackingParams>({});\n\n  /**\n   * Get the GA tracking params from session storage\n   *\n   * @returns {object} GATrackingParams - An object of GA tracking params\n   */\n  const getGATrackingParams = useCallback((): GATrackingParams => {\n    /**\n     * GA tracking params from session storage\n     *\n     * @returns {Array} TrackingParamsEntries - An array of GA tracking params\n     */\n    const trackingParamsEntries = trackingParamsKeys.map((param) => {\n      try {\n        /**\n         * The param value from session storage\n         *\n         * @constant {string} value - The param value from session storage\n         */\n        const value = storage.get(param);\n\n        return [param, value];\n      } catch (error) {\n        console.error(`Error getting ${param} from session storage`);\n\n        return [param, null];\n      }\n    });\n\n    /**\n     * The GA tracking params object\n     *\n     * @constant {GATrackingParams} trackingParams - The GA tracking params\n     *   object\n     */\n    const trackingParams = Object.fromEntries(\n      omitEmpty\n        ? trackingParamsEntries.filter(([, value]) => value)\n        : trackingParamsEntries\n    );\n\n    setTrackingParams(trackingParams);\n\n    return trackingParams;\n  }, [omitEmpty, storage, trackingParamsKeys]);\n\n  /** Hook to get the tracking params on page load */\n  useEffect(() => {\n    if (getOnLoad) {\n      getGATrackingParams();\n    }\n  }, [getGATrackingParams, getOnLoad]);\n\n  return {\n    getGATrackingParams,\n    trackingParams,\n  };\n};\n\nexport default useGATrackingParams;\n","import { defaultEventEmitter } from '@/lib/analytics/commonEmitter';\nimport { notApplicableString } from '@/lib/constants/constants/analytics';\nimport { PetStatus } from '@/lib/constants/types/analytics';\nimport { InferredSpecies } from '@/lib/constants/types/pets';\n\n/** Add Pet Event Handler Data */\nexport interface IAddPetEventData {\n  /** Click Text */\n  clickText: string;\n  /** Where the add pet was initiated */\n  context: 'Dashboard' | 'Sign Up Flow';\n  /** Pet Name */\n  name?: string;\n  /** Pet Status */\n  petStatus: PetStatus;\n  /** What type of user is creating the pet */\n  listingSource: 'Consumer Pet Listing' | 'Shelter Pet Listing';\n  /** Pet Species */\n  species: InferredSpecies;\n  /** Zip code where pet was found */\n  locationId?: string;\n  /** The entity Id of the AWO */\n  shelterId?: number;\n}\n\n/**\n * Send the add pet event to google analytics\n *\n * @param {IAddPetEventData} data - The data to send\n */\nexport const addPetEventHandler = ({\n  clickText,\n  context,\n  name,\n  petStatus,\n  listingSource,\n  species,\n  locationId,\n  shelterId,\n}: IAddPetEventData) => {\n  /** Create the event data object */\n  const eventData = {\n    name: 'add_pet',\n    data: {\n      click_text: clickText,\n      context,\n      items: [\n        {\n          pet_name: name || notApplicableString,\n          pet_status: petStatus,\n          listing_source: listingSource,\n          species: species,\n          location_id: locationId || notApplicableString,\n          shelter_id: shelterId || notApplicableString,\n        },\n      ],\n    },\n  };\n  defaultEventEmitter.handleEvent(eventData);\n};\n","import { unknownString } from '@/lib/constants/constants/analytics';\nimport { NextApiRequest } from 'next';\n\n/**\n * This will get the gtag client id from cookie value\n *\n * @returns {string} - The gtag client id or not applicable if not found\n */\nexport const getClientIdFromCookie = (): string => {\n  // Ensure this runs only in the browser\n  if (typeof window === 'undefined' || typeof document === 'undefined') {\n    console.error('This function should only be ran in a browser environment');\n    throw new Error(\n      'This function should only be ran in a browser environment'\n    );\n  }\n\n  const gaCookie = document.cookie\n    .split('; ')\n    .find((row) => row.startsWith('_ga='));\n\n  if (!gaCookie) {\n    console.error('_ga token not found');\n    return unknownString;\n  }\n\n  const gaCookieValue = gaCookie.split('=')[1];\n  // Extract the last two segments of the cookie value\n  const clientId = gaCookieValue.split('.').slice(-2).join('.');\n  return clientId;\n};\n\n/**\n * Get the Client ID Token From Cookie SSR\n *\n * @param {NextApiRequest} request - The next api request\n * @returns {string} - The client id token\n */\nexport const getClientIdTokenFromCookieSSR = async (\n  request: NextApiRequest\n): Promise<string> => {\n  try {\n    const cookie = request.cookies.get('_ga')?.value;\n    if (!cookie) {\n      return unknownString;\n    }\n    const clientId = cookie.split('.').slice(-2).join('.');\n    return clientId;\n  } catch (error) {\n    return unknownString;\n  }\n};\n","import { defaultEventEmitter } from '@/lib/analytics/commonEmitter';\nimport { IEvent } from '@/lib/analytics/handlers/abstractAnalyticsHandler';\nimport {\n  notApplicableString,\n  petListingTypeToPetStatusMap,\n} from '@/lib/constants/constants/analytics';\nimport {\n  InferredSpecies,\n  UserPetListingType,\n} from '@/lib/constants/types/pets';\n\n/**\n * The event context\n *\n * @type {'Add Pet' | 'Change'}\n */\ntype Context = 'Add Pet' | 'Change Pet Status';\n\n/**\n * The event name\n *\n * @type {string}\n */\nconst eventName = 'report_pet';\n\n/**\n * The pet listing source\n *\n * @type {string}\n */\nconst petListingSource = 'Consumer Pet Listing';\n\n/**\n * The interface for the report pet event data\n *\n * @interface IReportPetEventData\n */\nexport interface IReportPetEventData {\n  /** The click text that originated the event */\n  clickText: string;\n  /** The context if it is a new pet or an updated pet */\n  context: Context;\n  /** The pet listing type */\n  petListingType: UserPetListingType;\n  /** The pet species */\n  species: InferredSpecies;\n  /** The pet id */\n  petId?: number;\n  /** The pet name */\n  petName?: string;\n  /** The zip code */\n  locationId?: string;\n  /** Where this flow originated from */\n  component: string;\n}\n\n/**\n * Send the report pet event to the analytics handler\n *\n * @param {IReportPetEventData} params - The event handler params\n */\nexport const reportPetEventHandler = ({\n  clickText,\n  context,\n  petListingType,\n  species,\n  petId,\n  petName,\n  locationId,\n  component,\n}: IReportPetEventData) => {\n  /**\n   * The event data\n   *\n   * @constant {IEvent}\n   */\n  const eventData: IEvent = {\n    name: eventName,\n    data: {\n      click_text: clickText,\n      context,\n      component,\n      items: [\n        {\n          pet_id: petId || notApplicableString,\n          pet_name: petName || notApplicableString,\n          pet_status: petListingTypeToPetStatusMap[petListingType],\n          listing_source: petListingSource,\n          species,\n          location_id: locationId || notApplicableString,\n        },\n      ],\n    },\n  };\n  defaultEventEmitter.handleEvent(eventData);\n};\n","import { defaultEventEmitter } from '@/lib/analytics/commonEmitter';\nimport { notApplicableString } from '@/lib/constants/constants/analytics';\nimport { PetStatus } from '@/lib/constants/types/analytics';\nimport { InferredSpecies } from '@/lib/constants/types/pets';\n\n/** Start Report Pet Handler Data */\nexport interface IStartReportPetEventData {\n  /** Click Text */\n  clickText: string;\n  /** If this is a new pet or updating a current pet */\n  context: 'Add Pet' | 'Change Pet Status';\n  /** The id of the pet */\n  petId?: number;\n  /** Pet Name */\n  name?: string;\n  /** Pet Status */\n  petStatus: PetStatus;\n  /** Pet Species */\n  species?: InferredSpecies;\n  /** Zip code where pet was found */\n  locationId?: string;\n  /** Where this flow originated from */\n  component: string;\n}\n\n/**\n * Send the Start Report Pet event to google analytics\n *\n * @param {IStartReportPetEventData} data - The data to send\n */\nexport const startReportPetEventHandler = ({\n  clickText,\n  context,\n  petId,\n  name,\n  petStatus,\n  species,\n  locationId,\n  component,\n}: IStartReportPetEventData) => {\n  /** Create the event data object */\n  const eventData = {\n    name: 'start_report_pet',\n    data: {\n      click_text: clickText,\n      context,\n      component,\n      items: [\n        {\n          pet_id: petId || notApplicableString,\n          pet_name: name || notApplicableString,\n          pet_status: petStatus,\n          species: species || notApplicableString,\n          listing_source: 'Consumer Pet Listing',\n          location_id: locationId || notApplicableString,\n        },\n      ],\n    },\n  };\n  defaultEventEmitter.handleEvent(eventData);\n};\n","/**\n * Get the utc date from a local date\n *\n * @param {string} date - The date to convert\n * @returns {string} - The utc date MM/DD/YYYY. We should avoid this function\n *   being called with any different format, since that may cause a wrong\n *   conversion.\n */\nexport default function localDateToUtc(date: string): string {\n  /**\n   * The local date instance\n   *\n   * @constant {Date}\n   */\n  const dateInstance = new Date(date);\n\n  /**\n   * If the date is not in the format MM/DD/YYYY, we can return the date\n   * instance since it ist localized\n   */\n  if (date.includes('/')) {\n    return dateInstance.toISOString();\n  }\n\n  /**\n   * The utc date instance\n   *\n   * @constant {Date}\n   */\n  const utcDate = new Date(dateInstance.toISOString().split('Z')[0]);\n\n  return utcDate.toISOString();\n}\n","import { GATrackingParams } from '@/lib/hooks/useGATrackingParams/useGATrackingParams';\nimport { IGATrackingParams } from '@petcolove/lost--client--api-sdk/dist/concrete/sdks/constants/interfaces';\nimport appendAttributeIfExists from '../ObjectsHelpers/AppendAttributeIfExists';\n\n/**\n * Get the GA tracking params to send as analytics\n *\n * @param {GATrackingParams} trackingParams - The GA tracking params from\n *   session storage\n * @returns {IGATrackingParams} The GA tracking params\n */\nfunction getGATrackingParams(\n  trackingParams: GATrackingParams\n): IGATrackingParams {\n  /**\n   * @property {string | null} last_campaign - The last campaign\n   * @property {string | null} last_source - The last source\n   * @property {string | null} last_medium - The last medium\n   * @property {string | null} last_term - The last term\n   * @property {string | null} last_content - The last content\n   * @property {string | null} last_keyword - The last keyword\n   */\n  const {\n    last_campaign,\n    last_source,\n    last_medium,\n    last_term,\n    last_content,\n    last_keyword,\n  } = trackingParams;\n\n  /** The Ga tracking params */\n  const gaTrackingParams = {\n    ...appendAttributeIfExists('utm_campaign', last_campaign),\n    ...appendAttributeIfExists('utm_source', last_source),\n    ...appendAttributeIfExists('utm_medium', last_medium),\n    ...appendAttributeIfExists('utm_term', last_term),\n    ...appendAttributeIfExists('utm_content', last_content),\n    ...appendAttributeIfExists('utm_keyword', last_keyword),\n  };\n\n  return gaTrackingParams;\n}\n\nexport default getGATrackingParams;\n","/**\n * This function will remove years from a date to determine the birthdate of a\n * pet from the selected age.\n *\n * @param {Date} date - The date to subtract years from\n * @param {number} years - The number of years to subtract\n * @returns {Date} - The new date\n */\nexport const subtractYears = (date: Date, years: number): Date => {\n  const birthdate = new Date(date);\n  if (years > 0) {\n    birthdate.setFullYear(birthdate.getFullYear() - years);\n  }\n  return birthdate;\n};\n","import { getMicrochipSearchResults } from '@/lib/dataSource/lostApi/pet/petSearch/microchipSearch';\nimport { IPetMicrochipSearchRequestData } from '@petcolove/lost--client--api-sdk/dist/concrete/sdks/services/petSearch/dto';\n\n/**\n * @param {string} microchipId - The microchip id to search for\n * @param {IPetMicrochipSearchRequestData} data - The search data which includes\n *   the species and search type\n * @returns {string | undefined} - The redirect url\n */\nexport const microchipResultsUrl = async (\n  microchipId: string,\n  data: IPetMicrochipSearchRequestData\n): Promise<string | undefined> => {\n  // Search for the microchip\n  const searchResults = await getMicrochipSearchResults(microchipId, {\n    species: data.species,\n    searchType: data.searchType,\n  });\n\n  if (searchResults.pets.length > 0) {\n    // Get the first record\n    const record = searchResults.pets[0];\n    // Get the owner details\n    const ownerDetails = record.pet.ownerDetails;\n\n    const responseData = {\n      ownerType: ownerDetails?.ownerType === 'user' ? 'u' : 's',\n      searchType: record.pet.lostOrFound,\n      id: record.pet.petEntityId,\n    };\n\n    const redirectUrl = `/pet/${responseData.searchType}/${responseData.ownerType}/${responseData.id}`;\n    return redirectUrl;\n  }\n  return undefined;\n};\n","import {\n  IAttributeSearchRequestData,\n  IAttributeSearchResponse,\n} from '@petcolove/lost--client--api-sdk/dist/concrete/sdks/services/petSearch/dto';\nimport { sdk } from '../common';\n\n/**\n * Get the attributes of pets from the SDK\n *\n * @param {IAttributeSearchRequestData} data The parameters for the get\n * @returns {Promise<IAttributeSearchResponse>} The response from the function\n *   attributes function\n */\nexport async function getAttributes(\n  data: IAttributeSearchRequestData\n): Promise<IAttributeSearchResponse> {\n  try {\n    const response: IAttributeSearchResponse = await sdk\n      .petSearchAttributes()\n      .getAttributes(data);\n    return response;\n  } catch (error) {\n    console.error(error);\n    throw error;\n  }\n}\n","import { getAttributes } from '@/lib/dataSource/lostApi/pet/getAttributes';\nimport { tomorrow } from '@/lib/utils/helpers/dateHelpers/dates';\nimport SessionStorage from '@/lib/utils/storage/session-storage';\nimport { IAttributeSearchResponse } from '@petcolove/lost--client--api-sdk/dist/concrete/sdks/services/petSearch/dto';\n\n/**\n * The storage to use to store the attributes\n *\n * @constant {SessionStorage}\n */\nexport const storage: SessionStorage = new SessionStorage();\n\n/**\n * Interface for attribute items from the API\n *\n * @interface IAttributeItem\n */\ninterface IAttributeItem {\n  /** The id of the attribute */\n  id: number;\n  /** The label, name, or value of the attribute */\n  label: string;\n  /** The status of the attribute */\n  status: string;\n}\n\n/**\n * Interface for attributes from the API\n *\n * @interface IAttribute\n */\ninterface IAttribute {\n  /** The attributes from the API */\n  attributes: {\n    /** The listing types from the API */\n    listing_types: IAttributeItem[];\n    /** The species from the API */\n    species: IAttributeItem[];\n  };\n}\n\n/**\n * This will check the session storage for the attributes and if they are not\n * there it will get them from the API\n *\n * @returns {Promise<IAttribute[]>} The attributes from the API\n */\nexport async function getAndSetAttributes(): Promise<IAttribute> {\n  let attributes = storage.get('attributes');\n  if (!attributes) {\n    const response: IAttributeSearchResponse = await getAttributes({});\n    storage.set('attributes', response.data, { expires: tomorrow });\n    attributes = response.data;\n  }\n  return attributes as IAttribute;\n}\n\n/**\n * This will get the listing types from the API if they are not in the session\n * storage\n *\n * @returns {IAttributeItem[]} The listing types from the API\n */\nexport async function getListingTypes(): Promise<IAttributeItem[]> {\n  const attributes = storage.get('attributes') as IAttribute;\n  if (!attributes) {\n    const data = await getAndSetAttributes();\n    return data.attributes.listing_types;\n  }\n  return attributes.attributes.listing_types;\n}\n\n/**\n * This will get the species from the API if they are not in the session storage\n *\n * @returns {IAttributeItem[]} The species from the API\n */\nexport async function getSpecies(): Promise<IAttributeItem[]> {\n  const attributes = storage.get('attributes') as IAttribute;\n\n  if (!attributes) {\n    const data = await getAndSetAttributes();\n    return data.attributes.species;\n  }\n  return attributes.attributes.species;\n}\n\n/**\n * This will get the listing type id from the label\n *\n * @param {string} label - The label of the listing type\n * @returns {Promise<number>} - The id of the listing type\n */\nexport async function getListingTypeId(label: string): Promise<number> {\n  const data = await getListingTypes();\n  const listing = data.find((listingType) => listingType.label === label);\n  return listing?.id || 0;\n}\n\n/**\n * This will get the species type id from the label\n *\n * @param {string} label - The label of the species\n * @returns {Promise<number>} - The id of the listing type\n */\nexport async function getSpeciesId(label: string): Promise<number> {\n  const data = await getSpecies();\n  const species = data.find(\n    (species) =>\n      species.label.toLocaleLowerCase() === label?.toLocaleLowerCase()\n  );\n  return species?.id || 0;\n}\n","module.exports = require('./dist/client/components/navigation')\n"],"names":["Object","value","enumerable","get","createAsyncLocalStorage","sharedAsyncLocalStorageNotAvailableError","FakeAsyncLocalStorage","disable","getStore","run","exit","enterWith","maybeGlobalAsyncLocalStorage","globalThis","AsyncLocalStorage","exports","default","__esModule","defineProperty","assign","module","clientHookInServerComponentError","hookName","require","_export","target","all","name","ReadonlyURLSearchParams","useSearchParams","usePathname","ServerInsertedHTMLContext","_serverinsertedhtmlsharedruntime","useServerInsertedHTML","useRouter","useParams","useSelectedLayoutSegments","useSelectedLayoutSegment","redirect","_redirect","permanentRedirect","RedirectType","notFound","_notfound","_react","_approutercontextsharedruntime","_hooksclientcontextsharedruntime","_clienthookinservercomponenterror","_getsegmentvalue","INTERNAL_URLSEARCHPARAMS_INSTANCE","Symbol","readonlyURLSearchParamsError","iterator","append","delete","set","sort","constructor","urlSearchParams","entries","bind","forEach","getAll","has","keys","values","toString","size","searchParams","useContext","SearchParamsContext","readonlySearchParams","useMemo","PathnameContext","router","AppRouterContext","globalLayoutRouter","GlobalLayoutRouterContext","pathParams","PathParamsContext","tree","getSelectedParams","params","parallelRoutes","parallelRoute","segment","isDynamicParameter","Array","isArray","segmentValue","startsWith","isCatchAll","split","parallelRouteKey","LayoutRouterContext","getSelectedLayoutSegmentPath","first","segmentPath","node","_parallelRoutes_children","children","getSegmentValue","push","selectedLayoutSegments","length","isNotFoundError","NOT_FOUND_ERROR_CODE","error","digest","getRedirectError","isRedirectError","getURLFromRedirectError","getRedirectTypeFromError","_requestasyncstorageexternal","REDIRECT_ERROR_CODE","url","type","permanent","requestStore","requestAsyncStorage","mutableCookies","errorCode","destination","_asynclocalstorage","_interop_require_wildcard","_","createContext","callback","addInsertedServerHTMLCallback","index","unknownValue","baseAgeValues","from","concat","petDropdownUnknownValue","ageValues","petSexDropdownValues","speciesDropdownValues","alteredDropdownValues","searchRadiusOptions","label","validStatus","petUrlPathOwnerTypes","user","awo","petUrlPathSearchTypes","lostUserPet","foundUserPet","foundOrgPet","getMicrochipSearchResults","microchipId","data","searchResults","sdk","petMicrochipSearch","microchipSearch","PetCreateData","PetData","dataForRegistration","entity","entityDataForCreate","location","locationData","photos","photosData","date","lost_or_found_at","Date","toISOString","dataForCreate","entityData","localDateToUtc","dataForStorage","listingType","photo","photo_1","petName","listing_type","gender","genderData","birthdate","birthdateString","description","microchip_string","microchip","species","toLowerCase","rankedPhotos","map","key","objectKey","param","rank","getRankIndexFromRankKey","rankKey","rankIndex","Number","slice","isNaN","photoKeyForPetSearch","_this_rankedPhotos","_this_rankedPhotos_photo_1","_this","setAttributeIds","speciesId","getSpeciesId","listingTypeId","getListingTypeId","today","subtractYears","listing_type_id","species_id","typeOfPet","cross_streets","defaultStorage","LocalStorage","shelterReferral_useReferral","storage","referralStorageKey","referralSourceKey","setReferral","useCallback","referral","awoId","getAwoIdFromUtmCampaign","getReferral","awoIdMatch","utmCampaign","match","ShelterReferralContext","ShelterReferralProvider","rest","useReferral","useEffect","jsx_runtime","jsx","Provider","useShelterReferral","buildToastPayload","id","message","persistent","showIcon","STORAGE_TOAST_KEY","useSaveToastToStorage","expires","tomorrow","useCheckAndDispatchToastFromStorage","toast","dispatch","useToastContext","JSON","stringify","sessionStorage","SessionStorage","defaultGATrackingParams","__webpack_exports__","Z","getOnLoad","trackingParamsKeys","omitEmpty","trackingParams","setTrackingParams","useState","getGATrackingParams","trackingParamsEntries","fromEntries","filter","addPetEventHandler","clickText","context","petStatus","listingSource","locationId","shelterId","eventData","click_text","items","pet_name","notApplicableString","pet_status","listing_source","location_id","shelter_id","defaultEventEmitter","handleEvent","getClientIdFromCookie","document","gaCookie","cookie","find","row","unknownString","gaCookieValue","clientId","join","reportPetEventHandler","petListingType","petId","component","pet_id","petListingTypeToPetStatusMap","startReportPetEventHandler","dateInstance","includes","utcDate","last_campaign","last_source","last_medium","last_term","last_content","last_keyword","gaTrackingParams","appendAttributeIfExists","years","setFullYear","getFullYear","microchipResultsUrl","searchType","pets","record","ownerDetails","pet","responseData","ownerType","lostOrFound","petEntityId","redirectUrl","getAttributes","response","petSearchAttributes","getAndSetAttributes","attributes","getListingTypes","listing_types","getSpecies","listing","toLocaleLowerCase","__webpack_require__"],"sourceRoot":""}