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AAA,EAAAA,EAAA6Y,CAAA,+CAAA7Y,EAAAA,EAAA+D,CAAA,SAAA+U,KAAA9Y,EAAA6Y,CAAA","sources":["webpack://_N_E/./node_modules/next/script.js","webpack://_N_E/","webpack://_N_E/./node_modules/color2k/dist/index.exports.import.es.mjs","webpack://_N_E/./hooks/useColorTheme.ts","webpack://_N_E/./node_modules/@tanstack/react-query/build/lib/useIsFetching.mjs","webpack://_N_E/./hooks/useSpinner.ts","webpack://_N_E/./utils/aes.utils.ts","webpack://_N_E/./containers/JSON-LD/JSON-LD.tsx","webpack://_N_E/./containers/Layout/Layout.tsx","webpack://_N_E/./lib/axios.ts","webpack://_N_E/./hooks/useFetch.ts","webpack://_N_E/./hooks/useSortWorkingHours.ts","webpack://_N_E/./pages/404.tsx","webpack://_N_E/./queries/businessProfile.query.ts","webpack://_N_E/./queries/index.query.ts","webpack://_N_E/./utils/utils.ts","webpack://_N_E/"],"sourcesContent":["module.exports = require('./dist/client/script')\n","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/404\",\n function () {\n return require(\"private-next-pages/404.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/404\"])\n });\n }\n ","/**\n * A simple guard function:\n *\n * ```js\n * Math.min(Math.max(low, value), high)\n * ```\n */\nfunction guard(low, high, value) {\n return Math.min(Math.max(low, value), high);\n}\n\nclass ColorError extends Error {\n constructor(color) {\n super(`Failed to parse color: \"${color}\"`);\n }\n\n}\n\nvar ColorError$1 = ColorError;\n\n/**\n * Parses a color into red, gree, blue, alpha parts\n *\n * @param color the input color. Can be a RGB, RBGA, HSL, HSLA, or named color\n */\n\nfunction parseToRgba(color) {\n if (typeof color !== 'string') throw new ColorError$1(color);\n if (color.trim().toLowerCase() === 'transparent') return [0, 0, 0, 0];\n let normalizedColor = color.trim();\n normalizedColor = namedColorRegex.test(color) ? nameToHex(color) : color;\n const reducedHexMatch = reducedHexRegex.exec(normalizedColor);\n\n if (reducedHexMatch) {\n const arr = Array.from(reducedHexMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(r(x, 2), 16)), parseInt(r(arr[3] || 'f', 2), 16) / 255];\n }\n\n const hexMatch = hexRegex.exec(normalizedColor);\n\n if (hexMatch) {\n const arr = Array.from(hexMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(x, 16)), parseInt(arr[3] || 'ff', 16) / 255];\n }\n\n const rgbaMatch = rgbaRegex.exec(normalizedColor);\n\n if (rgbaMatch) {\n const arr = Array.from(rgbaMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(x, 10)), parseFloat(arr[3] || '1')];\n }\n\n const hslaMatch = hslaRegex.exec(normalizedColor);\n\n if (hslaMatch) {\n const [h, s, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);\n if (guard(0, 100, s) !== s) throw new ColorError$1(color);\n if (guard(0, 100, l) !== l) throw new ColorError$1(color);\n return [...hslToRgb(h, s, l), a || 1];\n }\n\n throw new ColorError$1(color);\n}\n\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n\n while (i) {\n hash = hash * 33 ^ str.charCodeAt(--i);\n }\n /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed\n * integers. Since we want the results to be always positive, convert the\n * signed int to an unsigned by doing an unsigned bitshift. */\n\n\n return (hash >>> 0) % 2341;\n}\n\nconst colorToInt = x => parseInt(x.replace(/_/g, ''), 36);\n\nconst compressedColorMap = '1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm'.split(' ').reduce((acc, next) => {\n const key = colorToInt(next.substring(0, 3));\n const hex = colorToInt(next.substring(3)).toString(16); // NOTE: padStart could be used here but it breaks Node 6 compat\n // https://github.com/ricokahler/color2k/issues/351\n\n let prefix = '';\n\n for (let i = 0; i < 6 - hex.length; i++) {\n prefix += '0';\n }\n\n acc[key] = `${prefix}${hex}`;\n return acc;\n}, {});\n/**\n * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.\n */\n\nfunction nameToHex(color) {\n const normalizedColorName = color.toLowerCase().trim();\n const result = compressedColorMap[hash(normalizedColorName)];\n if (!result) throw new ColorError$1(color);\n return `#${result}`;\n}\n\nconst r = (str, amount) => Array.from(Array(amount)).map(() => str).join('');\n\nconst reducedHexRegex = new RegExp(`^#${r('([a-f0-9])', 3)}([a-f0-9])?$`, 'i');\nconst hexRegex = new RegExp(`^#${r('([a-f0-9]{2})', 3)}([a-f0-9]{2})?$`, 'i');\nconst rgbaRegex = new RegExp(`^rgba?\\\\(\\\\s*(\\\\d+)\\\\s*${r(',\\\\s*(\\\\d+)\\\\s*', 2)}(?:,\\\\s*([\\\\d.]+))?\\\\s*\\\\)$`, 'i');\nconst hslaRegex = /^hsla?\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)%\\s*,\\s*([\\d.]+)%(?:\\s*,\\s*([\\d.]+))?\\s*\\)$/i;\nconst namedColorRegex = /^[a-z]+$/i;\n\nconst roundColor = color => {\n return Math.round(color * 255);\n};\n\nconst hslToRgb = (hue, saturation, lightness) => {\n let l = lightness / 100;\n\n if (saturation === 0) {\n // achromatic\n return [l, l, l].map(roundColor);\n } // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV\n\n\n const huePrime = (hue % 360 + 360) % 360 / 60;\n const chroma = (1 - Math.abs(2 * l - 1)) * (saturation / 100);\n const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));\n let red = 0;\n let green = 0;\n let blue = 0;\n\n if (huePrime >= 0 && huePrime < 1) {\n red = chroma;\n green = secondComponent;\n } else if (huePrime >= 1 && huePrime < 2) {\n red = secondComponent;\n green = chroma;\n } else if (huePrime >= 2 && huePrime < 3) {\n green = chroma;\n blue = secondComponent;\n } else if (huePrime >= 3 && huePrime < 4) {\n green = secondComponent;\n blue = chroma;\n } else if (huePrime >= 4 && huePrime < 5) {\n red = secondComponent;\n blue = chroma;\n } else if (huePrime >= 5 && huePrime < 6) {\n red = chroma;\n blue = secondComponent;\n }\n\n const lightnessModification = l - chroma / 2;\n const finalRed = red + lightnessModification;\n const finalGreen = green + lightnessModification;\n const finalBlue = blue + lightnessModification;\n return [finalRed, finalGreen, finalBlue].map(roundColor);\n};\n\n// taken from:\n/**\n * Parses a color in hue, saturation, lightness, and the alpha channel.\n *\n * Hue is a number between 0 and 360, saturation, lightness, and alpha are\n * decimal percentages between 0 and 1\n */\n\nfunction parseToHsla(color) {\n const [red, green, blue, alpha] = parseToRgba(color).map((value, index) => // 3rd index is alpha channel which is already normalized\n index === 3 ? value : value / 255);\n const max = Math.max(red, green, blue);\n const min = Math.min(red, green, blue);\n const lightness = (max + min) / 2; // achromatic\n\n if (max === min) return [0, 0, lightness, alpha];\n const delta = max - min;\n const saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);\n const hue = 60 * (red === max ? (green - blue) / delta + (green < blue ? 6 : 0) : green === max ? (blue - red) / delta + 2 : (red - green) / delta + 4);\n return [hue, saturation, lightness, alpha];\n}\n\n/**\n * Takes in hsla parts and constructs an hsla string\n *\n * @param hue The color circle (from 0 to 360) - 0 (or 360) is red, 120 is green, 240 is blue\n * @param saturation Percentage of saturation, given as a decimal between 0 and 1\n * @param lightness Percentage of lightness, given as a decimal between 0 and 1\n * @param alpha Percentage of opacity, given as a decimal between 0 and 1\n */\n\nfunction hsla(hue, saturation, lightness, alpha) {\n return `hsla(${(hue % 360).toFixed()}, ${guard(0, 100, saturation * 100).toFixed()}%, ${guard(0, 100, lightness * 100).toFixed()}%, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;\n}\n\n/**\n * Adjusts the current hue of the color by the given degrees. Wraps around when\n * over 360.\n *\n * @param color input color\n * @param degrees degrees to adjust the input color, accepts degree integers\n * (0 - 360) and wraps around on overflow\n */\n\nfunction adjustHue(color, degrees) {\n const [h, s, l, a] = parseToHsla(color);\n return hsla(h + degrees, s, l, a);\n}\n\n/**\n * Darkens using lightness. This is equivalent to subtracting the lightness\n * from the L in HSL.\n *\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\n\nfunction darken(color, amount) {\n const [hue, saturation, lightness, alpha] = parseToHsla(color);\n return hsla(hue, saturation, lightness - amount, alpha);\n}\n\n/**\n * Desaturates the input color by the given amount via subtracting from the `s`\n * in `hsla`.\n *\n * @param amount The amount to desaturate, given as a decimal between 0 and 1\n */\n\nfunction desaturate(color, amount) {\n const [h, s, l, a] = parseToHsla(color);\n return hsla(h, s - amount, l, a);\n}\n\n// https://github.com/styled-components/polished/blob/0764c982551b487469043acb56281b0358b3107b/src/color/getLuminance.js\n\n/**\n * Returns a number (float) representing the luminance of a color.\n */\n\nfunction getLuminance(color) {\n if (color === 'transparent') return 0;\n\n function f(x) {\n const channel = x / 255;\n return channel <= 0.03928 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4);\n }\n\n const [r, g, b] = parseToRgba(color);\n return 0.2126 * f(r) + 0.7152 * f(g) + 0.0722 * f(b);\n}\n\n// taken from:\n/**\n * Returns the contrast ratio between two colors based on\n * [W3's recommended equation for calculating contrast](http://www.w3.org/TR/WCAG20/#contrast-ratiodef).\n */\n\nfunction getContrast(color1, color2) {\n const luminance1 = getLuminance(color1);\n const luminance2 = getLuminance(color2);\n return luminance1 > luminance2 ? (luminance1 + 0.05) / (luminance2 + 0.05) : (luminance2 + 0.05) / (luminance1 + 0.05);\n}\n\n/**\n * Takes in rgba parts and returns an rgba string\n *\n * @param red The amount of red in the red channel, given in a number between 0 and 255 inclusive\n * @param green The amount of green in the red channel, given in a number between 0 and 255 inclusive\n * @param blue The amount of blue in the red channel, given in a number between 0 and 255 inclusive\n * @param alpha Percentage of opacity, given as a decimal between 0 and 1\n */\n\nfunction rgba(red, green, blue, alpha) {\n return `rgba(${guard(0, 255, red).toFixed()}, ${guard(0, 255, green).toFixed()}, ${guard(0, 255, blue).toFixed()}, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;\n}\n\n/**\n * Mixes two colors together. Taken from sass's implementation.\n */\n\nfunction mix(color1, color2, weight) {\n const normalize = (n, index) => // 3rd index is alpha channel which is already normalized\n index === 3 ? n : n / 255;\n\n const [r1, g1, b1, a1] = parseToRgba(color1).map(normalize);\n const [r2, g2, b2, a2] = parseToRgba(color2).map(normalize); // The formula is copied from the original Sass implementation:\n // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method\n\n const alphaDelta = a2 - a1;\n const normalizedWeight = weight * 2 - 1;\n const combinedWeight = normalizedWeight * alphaDelta === -1 ? normalizedWeight : normalizedWeight + alphaDelta / (1 + normalizedWeight * alphaDelta);\n const weight2 = (combinedWeight + 1) / 2;\n const weight1 = 1 - weight2;\n const r = (r1 * weight1 + r2 * weight2) * 255;\n const g = (g1 * weight1 + g2 * weight2) * 255;\n const b = (b1 * weight1 + b2 * weight2) * 255;\n const a = a2 * weight + a1 * (1 - weight);\n return rgba(r, g, b, a);\n}\n\n/**\n * Given a series colors, this function will return a `scale(x)` function that\n * accepts a percentage as a decimal between 0 and 1 and returns the color at\n * that percentage in the scale.\n *\n * ```js\n * const scale = getScale('red', 'yellow', 'green');\n * console.log(scale(0)); // rgba(255, 0, 0, 1)\n * console.log(scale(0.5)); // rgba(255, 255, 0, 1)\n * console.log(scale(1)); // rgba(0, 128, 0, 1)\n * ```\n *\n * If you'd like to limit the domain and range like chroma-js, we recommend\n * wrapping scale again.\n *\n * ```js\n * const _scale = getScale('red', 'yellow', 'green');\n * const scale = x => _scale(x / 100);\n *\n * console.log(scale(0)); // rgba(255, 0, 0, 1)\n * console.log(scale(50)); // rgba(255, 255, 0, 1)\n * console.log(scale(100)); // rgba(0, 128, 0, 1)\n * ```\n */\n\nfunction getScale(...colors) {\n return n => {\n const lastIndex = colors.length - 1;\n const lowIndex = guard(0, lastIndex, Math.floor(n * lastIndex));\n const highIndex = guard(0, lastIndex, Math.ceil(n * lastIndex));\n const color1 = colors[lowIndex];\n const color2 = colors[highIndex];\n const unit = 1 / lastIndex;\n const weight = (n - unit * lowIndex) / unit;\n return mix(color1, color2, weight);\n };\n}\n\nconst guidelines = {\n decorative: 1.5,\n readable: 3,\n aa: 4.5,\n aaa: 7\n};\n/**\n * Returns whether or not a color has bad contrast against a background\n * according to a given standard.\n */\n\nfunction hasBadContrast(color, standard = 'aa', background = '#fff') {\n return getContrast(color, background) < guidelines[standard];\n}\n\n/**\n * Lightens a color by a given amount. This is equivalent to\n * `darken(color, -amount)`\n *\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\n\nfunction lighten(color, amount) {\n return darken(color, -amount);\n}\n\n/**\n * Takes in a color and makes it more transparent by convert to `rgba` and\n * decreasing the amount in the alpha channel.\n *\n * @param amount The amount to increase the transparency by, given as a decimal between 0 and 1\n */\n\nfunction transparentize(color, amount) {\n const [r, g, b, a] = parseToRgba(color);\n return rgba(r, g, b, a - amount);\n}\n\n/**\n * Takes a color and un-transparentizes it. Equivalent to\n * `transparentize(color, -amount)`\n *\n * @param amount The amount to increase the opacity by, given as a decimal between 0 and 1\n */\n\nfunction opacify(color, amount) {\n return transparentize(color, -amount);\n}\n\n/**\n * An alternative function to `readableColor`. Returns whether or not the \n * readable color (i.e. the color to be place on top the input color) should be\n * black.\n */\n\nfunction readableColorIsBlack(color) {\n return getLuminance(color) > 0.179;\n}\n\n/**\n * Returns black or white for best contrast depending on the luminosity of the\n * given color.\n */\n\nfunction readableColor(color) {\n return readableColorIsBlack(color) ? '#000' : '#fff';\n}\n\n/**\n * Saturates a color by converting it to `hsl` and increasing the saturation\n * amount. Equivalent to `desaturate(color, -amount)`\n * \n * @param color Input color\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\n\nfunction saturate(color, amount) {\n return desaturate(color, -amount);\n}\n\n/**\n * Takes in any color and returns it as a hex code.\n */\n\nfunction toHex(color) {\n const [r, g, b, a] = parseToRgba(color);\n\n let hex = x => {\n const h = guard(0, 255, x).toString(16); // NOTE: padStart could be used here but it breaks Node 6 compat\n // https://github.com/ricokahler/color2k/issues/351\n\n return h.length === 1 ? `0${h}` : h;\n };\n\n return `#${hex(r)}${hex(g)}${hex(b)}${a < 1 ? hex(Math.round(a * 255)) : ''}`;\n}\n\n/**\n * Takes in any color and returns it as an rgba string.\n */\n\nfunction toRgba(color) {\n return rgba(...parseToRgba(color));\n}\n\n/**\n * Takes in any color and returns it as an hsla string.\n */\n\nfunction toHsla(color) {\n return hsla(...parseToHsla(color));\n}\n\nexport { ColorError$1 as ColorError, adjustHue, darken, desaturate, getContrast, getLuminance, getScale, guard, hasBadContrast, hsla, lighten, mix, opacify, parseToHsla, parseToRgba, readableColor, readableColorIsBlack, rgba, saturate, toHex, toHsla, toRgba, transparentize };\n//# sourceMappingURL=index.exports.import.es.mjs.map\n","import { useEffect } from \"react\";\nimport { readableColor, transparentize } from \"color2k\";\n\nfunction useColorTheme(primaryColor?: string) {\n\tuseEffect(() => {\n\t\tif (primaryColor) {\n\t\t\tconst root = document.documentElement;\n\n\t\t\tconst readablecolor = readableColor(primaryColor);\n\n\t\t\troot.style.setProperty(\"--primary-500\", primaryColor || \"\");\n\t\t\troot.style.setProperty(\"--primary-300\", transparentize(primaryColor, 0.3) || \"\");\n\t\t\troot.style.setProperty(\"--primary-50\", transparentize(primaryColor, 0.85) || \"\");\n\n\t\t\t// It's too weird, but the Design team can do it.\n\t\t\tif (primaryColor === \"#536DFE\") {\n\t\t\t\troot.style.setProperty(\"--primary-readable-color\", \"#ffffff\");\n\t\t\t} else {\n\t\t\t\troot.style.setProperty(\"--primary-readable-color\", readablecolor || \"\");\n\t\t\t}\n\t\t}\n\t}, [primaryColor]);\n\treturn;\n}\n\nexport default useColorTheme;\n","import * as React from 'react';\nimport { parseFilterArgs, notifyManager } from '@tanstack/query-core';\nimport { useSyncExternalStore } from './useSyncExternalStore.mjs';\nimport { useQueryClient } from './QueryClientProvider.mjs';\n\nfunction useIsFetching(arg1, arg2, arg3) {\n const [filters, options = {}] = parseFilterArgs(arg1, arg2, arg3);\n const queryClient = useQueryClient({\n context: options.context\n });\n const queryCache = queryClient.getQueryCache();\n return useSyncExternalStore(React.useCallback(onStoreChange => queryCache.subscribe(notifyManager.batchCalls(onStoreChange)), [queryCache]), () => queryClient.isFetching(filters), () => queryClient.isFetching(filters));\n}\n\nexport { useIsFetching };\n//# sourceMappingURL=useIsFetching.mjs.map\n","import { useEffect } from \"react\";\nimport { useIsFetching } from \"@tanstack/react-query\";\nimport { toast } from \"react-hot-toast\";\n\nfunction useSpinner() {\n\tconst isFetching = useIsFetching();\n\n\tuseEffect(() => {\n\t\tlet toastId: string;\n\n\t\tif (isFetching) {\n\t\t\ttoastId = toast.loading(\"Fetching...\", {\n\t\t\t\tposition: \"top-center\",\n\t\t\t});\n\t\t}\n\t\treturn () => {\n\t\t\ttoast.dismiss(toastId);\n\t\t};\n\t}, [isFetching]);\n}\n\nexport default useSpinner;\n","const secretKey = process.env.NEXT_PUBLIC_SECRET_KEY_OG as string;\n\nconst cipher = (salt: string) => {\n\tconst textToChars = (text: string) => text.split(\"\").map((c) => c.charCodeAt(0));\n\tconst byteHex = (n: number) => (\"0\" + Number(n).toString(16)).substr(-2);\n\tconst applySaltToChar = (code: number) => textToChars(salt).reduce((a, b) => a ^ b, code);\n\n\treturn (text: any) => text.split(\"\").map(textToChars).map(applySaltToChar).map(byteHex).join(\"\");\n};\n\nconst decipher = (salt: string) => {\n\tconst textToChars = (text: string) => text.split(\"\").map((c) => c.charCodeAt(0));\n\tconst applySaltToChar = (code: number) => textToChars(salt).reduce((a, b) => a ^ b, code);\n\treturn (encoded: any) =>\n\t\tencoded\n\t\t\t.match(/.{1,2}/g)\n\t\t\t.map((hex: string) => parseInt(hex, 16))\n\t\t\t.map(applySaltToChar)\n\t\t\t.map((charCode: number) => String.fromCharCode(charCode))\n\t\t\t.join(\"\");\n};\n\nexport const encrypt = cipher(secretKey);\nexport const decrypt = decipher(secretKey);\n\ntype OGType = {\n\ttitle?: string;\n\tprimaryColor?: string;\n\tlogoURL?: string;\n};\n\nexport const generateOGUrl = ({ title, primaryColor, logoURL }: OGType) =>\n\tencrypt(JSON.stringify({ title, primaryColor, logoURL }));\n","import { useMemo } from \"react\";\nimport { LocalBusinessJsonLd } from \"next-seo\";\nimport { useBusinessProfile } from \"hooks/useFetch\";\nimport useSortWorkingHours from \"hooks/useSortWorkingHours\";\nimport useTranslation from \"next-translate/useTranslation\";\n\nconst DOMAIN_URL = process.env.NEXT_PUBLIC_DOMAIN_URL;\n\nconst StoreJsonLd = () => {\n\tconst { t } = useTranslation(\"common\");\n\tconst { data: businessProfile } = useBusinessProfile();\n\tconst profile = businessProfile?.data;\n\tconst location = profile?.locations.items[0].address;\n\tconst workingHours = profile?.workingHours;\n\tconst review = profile?.reviews.items;\n\tconst service = profile?.services.items;\n\tconst locations = profile?.locations.items;\n\tconst images = profile?.coverImages.map((x) => x.url);\n\tconst description = profile?.description || t(\"sections.about.description\");\n\n\tconst sorting = useSortWorkingHours(workingHours);\n\tconst openingHours = useMemo(\n\t\t() =>\n\t\t\tsorting\n\t\t\t\t.filter((x) => x.time[0])\n\t\t\t\t.map((x) => ({ opens: x.time[0].start, closes: x.time[0].end, dayOfWeek: x.d })),\n\t\t[sorting]\n\t);\n\n\tconst reviews = useMemo(\n\t\t() =>\n\t\t\treview?.map((re) => ({\n\t\t\t\tauthor: `${re.author.firstName} ${re.author.lastName}`,\n\t\t\t\tdatePublished: re.publishedAt,\n\t\t\t\treviewBody: re.comment,\n\t\t\t\treviewRating: {\n\t\t\t\t\tratingValue: re.score,\n\t\t\t\t},\n\t\t\t})),\n\t\t[review]\n\t);\n\n\tconst areas = useMemo(\n\t\t() =>\n\t\t\tlocations?.map((loc) => ({\n\t\t\t\tgeoMidpoint: {\n\t\t\t\t\tlatitude: loc.address.geoLocation.latitude,\n\t\t\t\t\tlongitude: loc.address.geoLocation.longitude,\n\t\t\t\t},\n\t\t\t\tgeoRadius: 1000,\n\t\t\t})),\n\t\t[locations]\n\t);\n\n\tconst makesOffer = useMemo(\n\t\t() =>\n\t\t\tservice?.map((se) => ({\n\t\t\t\tpriceSpecification: {\n\t\t\t\t\ttype: \"UnitPriceSpecification\",\n\t\t\t\t\tpriceCurrency: profile?.currency.name,\n\t\t\t\t\tprice: `${se.price}`,\n\t\t\t\t},\n\t\t\t\titemOffered: {\n\t\t\t\t\tname: se.name,\n\t\t\t\t\tdescription: se.description,\n\t\t\t\t},\n\t\t\t})),\n\t\t[profile?.currency.name, service]\n\t);\n\n\treturn (\n\t\t\n\t);\n};\n\nexport { StoreJsonLd };\n","import React, { useMemo, memo } from \"react\";\nimport Head from \"next/head\";\nimport Script from \"next/script\";\nimport dynamic from \"next/dynamic\";\nimport { NextSeo } from \"next-seo\";\nimport useColorTheme from \"hooks/useColorTheme\";\nimport useSpinner from \"hooks/useSpinner\";\nimport { generateOGUrl } from \"utils/aes.utils\";\nimport { StoreJsonLd } from \"containers/JSON-LD/JSON-LD\";\nimport { resolvedPublicPath, truncateString } from \"utils/utils\";\nimport { AvailableLanguages } from \"types/business.types\";\n\nconst GTM_ID = process.env.NEXT_PUBLIC_GTM_ID;\nconst Header = dynamic(() => import(\"containers/Layout/Header\"), {\n\tssr: false,\n});\n\ntype Props = {\n\tchildren: React.ReactNode;\n\tbusinessKey?: string;\n\ttitle: string;\n\thideHeaderFooter?: boolean;\n\tdescription?: string;\n\tprimaryColor?: string;\n\tlogoURL?: string;\n\theaderProps?: { onHeaderRefChange: any };\n\tlanguages?: AvailableLanguages[];\n};\n\nconst Layout = ({\n\tchildren,\n\tbusinessKey,\n\ttitle,\n\tdescription,\n\thideHeaderFooter,\n\tprimaryColor,\n\tlogoURL,\n\theaderProps,\n\tlanguages,\n}: Props) => {\n\tuseColorTheme(primaryColor);\n\tuseSpinner();\n\n\tconst cx = generateOGUrl({\n\t\ttitle,\n\t\tprimaryColor,\n\t\tlogoURL,\n\t});\n\n\tconst truncatedDesc = description && truncateString(description, 160);\n\tconst languageAlternates = useMemo(\n\t\t() =>\n\t\t\tlanguages?.map((l) => ({\n\t\t\t\threfLang: l,\n\t\t\t\thref: `${process.env.NEXT_PUBLIC_DOMAIN_URL}/b/${l}/${businessKey}`,\n\t\t\t})),\n\t\t[languages, businessKey]\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t{/* */}\n\t\t\t\n\t\t\t\n\n\t\t\t\n\n\t\t\t{!hideHeaderFooter && }\n\t\t\t
\n\t\t\t\t{!hideHeaderFooter &&
}\n\t\t\t\t<>{children}\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n};\n\nexport default memo(Layout);\n","import Axios from \"axios\";\n\nconst ENDPOINT_URL = process.env.NEXT_PUBLIC_ENDPOINT_URL;\n\nexport const axios = Axios.create({\n\tbaseURL: `${ENDPOINT_URL}/api/v1`,\n});\n","import { useInfiniteQuery, useQuery } from \"@tanstack/react-query\";\nimport { axios } from \"lib/axios\";\nimport { queries } from \"queries/index.query\";\nimport BusinessFieldsType, {\n\tBusinessResponse,\n\tProviderFieldsType,\n\tReviewFieldsType,\n\tServiceFieldsType,\n} from \"types/business.types\";\nimport { DTOType, PaginateGenericType } from \"types/generic.types\";\n\nconst PAGINATE_LIMIT = Number(process.env.NEXT_PUBLIC_PAGINATE_LIMIT);\n\nconst fetchReviews = async (\n\tslug: string | undefined,\n\tpageParam = 0,\n\tlimit = 10\n): Promise> => {\n\tconst _pageParam = (pageParam !== null && pageParam) || 0;\n\tconst res = await axios.get(`/businesses/${slug}/reviews?offset=${_pageParam}&limit=${limit}`);\n\treturn res.data.data;\n};\n\nconst fetchServices = async (\n\tslug: string | undefined,\n\tpageParam = 0,\n\tlimit = 10\n): Promise> => {\n\tconst _pageParam = (pageParam !== null && pageParam) || 0;\n\tconst res = await axios.get(`/businesses/${slug}/services?offset=${_pageParam}&limit=${limit}`);\n\treturn res.data.data;\n};\n\nconst fetchProviders = async (\n\tslug: string | undefined,\n\tpageParam = 0,\n\tlimit = 10\n): Promise> => {\n\tconst _pageParam = (pageParam !== null && pageParam) || 0;\n\tconst res = await axios.get(`/businesses/${slug}/providers?offset=${_pageParam}&limit=${limit}`);\n\treturn res.data.data;\n};\n\nconst fetchAllServices = async (\n\tslug: string | undefined,\n\tpageParam = 0,\n\tdata: PaginateGenericType = {\n\t\toffset: 0,\n\t\tlimit: 0,\n\t\thasNext: true,\n\t\titems: [],\n\t},\n\tlimit = 50\n): Promise => {\n\tconst offset = pageParam * limit;\n\treturn axios.get(`/businesses/${slug}/services?offset=${offset}&limit=${limit}`).then((res) => {\n\t\tconsole.log(`Fetch All Services, Offset: ${offset} - Limit: ${limit}`);\n\t\tdata.items.push(...res.data.data.items);\n\t\tdata.offset = res.data.data.offset;\n\t\tdata.limit = res.data.data.limit;\n\t\tdata.hasNext = res.data.data.hasNext;\n\n\t\tif (!res.data.data.hasNext) return data;\n\n\t\treturn fetchAllServices(slug, pageParam + 1, data);\n\t});\n};\n\nconst fetchBusinessProfile = async (\n\tslug: string | undefined,\n\tfields = \"services,providers,reviews,locations\"\n): Promise> => {\n\tconst req = await axios(`/businesses/${slug}?fields=${fields}`);\n\treturn req.data;\n};\n\nconst useBusinessProfile = () => {\n\treturn useQuery([queries.publicProfile.businessKey], {\n\t\trefetchOnMount: false,\n\t\trefetchOnWindowFocus: false,\n\t\trefetchOnReconnect: false,\n\t\trefetchIntervalInBackground: false,\n\t});\n};\n\nconst useReviews = (slug: string | undefined) => {\n\treturn useInfiniteQuery([\"reviews\"], async ({ pageParam = 0 }) => fetchReviews(slug, pageParam, PAGINATE_LIMIT), {\n\t\trefetchOnMount: false,\n\t\trefetchOnWindowFocus: false,\n\t\trefetchOnReconnect: false,\n\t\trefetchIntervalInBackground: false,\n\t\tgetNextPageParam: (lastPage, pages) => {\n\t\t\tif (lastPage.hasNext) {\n\t\t\t\treturn pages.length * PAGINATE_LIMIT;\n\t\t\t} else {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t},\n\t});\n};\n\nconst useServices = (slug: string | undefined) => {\n\treturn useInfiniteQuery([\"services\"], async ({ pageParam = 0 }) => fetchServices(slug, pageParam, PAGINATE_LIMIT), {\n\t\trefetchOnMount: false,\n\t\trefetchOnWindowFocus: false,\n\t\trefetchOnReconnect: false,\n\t\trefetchIntervalInBackground: false,\n\t\tgetNextPageParam: (lastPage, pages) => {\n\t\t\tif (lastPage.hasNext) {\n\t\t\t\treturn pages.length * PAGINATE_LIMIT;\n\t\t\t} else {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t},\n\t});\n};\n\nconst useProvider = (slug: string | undefined) => {\n\treturn useInfiniteQuery(\n\t\t[\"providers\"],\n\t\tasync ({ pageParam = 0 }) => fetchProviders(slug, pageParam, PAGINATE_LIMIT),\n\t\t{\n\t\t\trefetchOnMount: false,\n\t\t\trefetchOnWindowFocus: false,\n\t\t\trefetchOnReconnect: false,\n\t\t\trefetchIntervalInBackground: false,\n\t\t\tgetNextPageParam: (lastPage, pages) => {\n\t\t\t\tif (lastPage.hasNext) {\n\t\t\t\t\treturn (pages.length - 1) * PAGINATE_LIMIT + PAGINATE_LIMIT;\n\t\t\t\t} else {\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\t\t\t},\n\t\t}\n\t);\n};\n\nexport {\n\tuseBusinessProfile,\n\tuseReviews,\n\tuseServices,\n\tuseProvider,\n\tfetchReviews,\n\tfetchProviders,\n\tfetchAllServices,\n\tfetchBusinessProfile,\n};\n","import { useMemo } from \"react\";\nimport { WorkingHour, WorkingHourItem } from \"types/business.types\";\n\ntype Weekday = \"monday\" | \"tuesday\" | \"wednesday\" | \"thursday\" | \"friday\" | \"saturday\" | \"sunday\";\n\nconst useSortWorkingHours = (workingHours: WorkingHour | undefined) => {\n\tconst sorting = useMemo(() => {\n\t\tif (!workingHours) return [];\n\t\tconst times: { d: string; time: WorkingHourItem[] }[] = [];\n\t\tObject.entries(workingHours).forEach(function ([day, time]) {\n\t\t\ttimes.push({ d: day, time });\n\t\t});\n\t\tconst sorter = {\n\t\t\t// \"sunday\": 0, // << if sunday is first day of week\n\t\t\tmonday: 1,\n\t\t\ttuesday: 2,\n\t\t\twednesday: 3,\n\t\t\tthursday: 4,\n\t\t\tfriday: 5,\n\t\t\tsaturday: 6,\n\t\t\tsunday: 7,\n\t\t};\n\n\t\ttimes.sort((a, b) => {\n\t\t\tlet day1 = a.d.toLowerCase() as Weekday;\n\t\t\tlet day2 = b.d.toLowerCase() as Weekday;\n\t\t\treturn sorter[day1] - sorter[day2];\n\t\t});\n\t\treturn times;\n\t}, [workingHours]);\n\n\treturn sorting;\n};\n\nexport default useSortWorkingHours;\n","\n import __i18nConfig from '@next-translate-root/i18n'\n import __loadNamespaces from 'next-translate/loadNamespaces'\n import Image from \"next/image\";\nimport Layout from \"containers/Layout/Layout\";\nimport { resolvedPublicPath } from \"utils/utils\";\nconst Custom404 = () => {\n return (\n\t\t\t
\n\t\t\t\t\"404\"\n\t\t\t\t
\n\t\t\t\t\t{\"Powered\n\t\t\t\t
\n\t\t\t
\n\t\t
);\n};\nexport default Custom404;\n\n async function __Next_Translate__getStaticProps__18e811106d9__(ctx) {\n \n return {\n \n \n props: {\n \n ...(await __loadNamespaces({\n ...ctx,\n ...__i18nConfig,\n pathname: '/404',\n loaderName: 'getStaticProps',\n loadLocaleFrom: (l, n) => import(`@next-translate-root/locales/${l}/${n}`).then(m => m.default),\n }))\n }\n }\n }\n export { __Next_Translate__getStaticProps__18e811106d9__ as getStaticProps }\n ","import { createQueryKeys } from \"@lukemorales/query-key-factory\";\n\nexport const businessProfileKeys = createQueryKeys(\"publicProfile\", {\n\tbusinessKey: null,\n});\n","import { mergeQueryKeys } from \"@lukemorales/query-key-factory\";\nimport { businessProfileKeys } from \"./businessProfile.query\";\n\nexport const queries = mergeQueryKeys(businessProfileKeys);\n","import lowerCase from \"lodash-es/lowerCase\";\nimport kebabCase from \"lodash-es/kebabCase\";\n// import pluralize from \"pluralize\";\nimport { BookUrlType, SocialUrlType } from \"types/book.type\";\n\nconst DOMAIN_URL = process.env.NEXT_PUBLIC_DOMAIN_URL;\nconst getNameOfDay = () => {\n\tconst days = [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"];\n\tconst d = new Date();\n\treturn days[d.getDay()];\n};\n\nconst generateBookingURL = ({ uniqueIdentifier, type, id, locale }: BookUrlType) => {\n\tlet link = `${DOMAIN_URL}/widget/${uniqueIdentifier}?lng=${locale}`;\n\n\tswitch (type) {\n\t\tcase \"location\":\n\t\t\tlink += `&locations=${id}`;\n\t\t\tbreak;\n\n\t\tcase \"provider\":\n\t\t\tlink += `&op=~${id}`;\n\t\t\tbreak;\n\n\t\tcase \"service\":\n\t\t\tlink += `&op=${id}~`;\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\n\treturn link;\n};\n\nconst generateSocialShare = ({ type, businessName, url }: SocialUrlType) => {\n\tlet link = \"\";\n\n\tswitch (type) {\n\t\tcase \"facebook\":\n\t\t\tlink += `https://facebook.com/sharer/sharer.php?u=${url}`;\n\t\t\tbreak;\n\n\t\tcase \"twitter\":\n\t\t\tlink += `https://twitter.com/intent/tweet/?text=${businessName}&url=${url}`;\n\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\n\treturn link;\n};\n\nconst formatTime24 = (timeString: string) => {\n\tconst [hourString, minute] = timeString.split(\":\");\n\tconst hour = +hourString % 24;\n\treturn (hour % 12 || 12) + \":\" + minute + (hour < 12 ? \"AM\" : \"PM\");\n};\n\nconst truncateString = (str: string, num: number = 13) => {\n\tif (str.length <= num) {\n\t\treturn str;\n\t}\n\treturn str.slice(0, num) + \"...\";\n};\n\nconst isProd = () => process.env.NODE_ENV === \"production\";\n\nconst resolvedPublicPath = (path: string) => (isProd() ? `/b/${path}` : `/${path}`);\n\nconst toSearchEngineFriendlyWords = (input: string) => {\n\treturn encodeURIComponent(kebabCase(lowerCase(input)));\n};\n\nconst generateSectionLabel = (label: string | null | undefined, fallback: string, limit = 13) => {\n\tif (!label) return fallback;\n\treturn truncateString(label, limit);\n};\n\nexport {\n\tgetNameOfDay,\n\tgenerateBookingURL,\n\tgenerateSocialShare,\n\tformatTime24,\n\ttruncateString,\n\tresolvedPublicPath,\n\tisProd,\n\ttoSearchEngineFriendlyWords,\n\tgenerateSectionLabel,\n};\n","(self[\"webpackChunk_N_E\"] = self[\"webpackChunk_N_E\"] || []).push([[197,527],{\n\n/***/ 3420:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(9704)\n\n\n/***/ }),\n\n/***/ 6141:\n/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {\n\n\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/404\",\n function () {\n return __webpack_require__(8742);\n }\n ]);\n if(false) {}\n \n\n/***/ }),\n\n/***/ 5527:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n// ESM COMPAT FLAG\n__webpack_require__.r(__webpack_exports__);\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n \"default\": function() { return /* binding */ Layout_Layout; }\n});\n\n// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js\nvar jsx_runtime = __webpack_require__(6734);\n// EXTERNAL MODULE: ./node_modules/react/index.js\nvar react = __webpack_require__(1776);\n// EXTERNAL MODULE: ./node_modules/next/head.js\nvar head = __webpack_require__(150);\nvar head_default = /*#__PURE__*/__webpack_require__.n(head);\n// EXTERNAL MODULE: ./node_modules/next/script.js\nvar script = __webpack_require__(3420);\nvar script_default = /*#__PURE__*/__webpack_require__.n(script);\n// EXTERNAL MODULE: ./node_modules/next/dynamic.js\nvar dynamic = __webpack_require__(4078);\nvar dynamic_default = /*#__PURE__*/__webpack_require__.n(dynamic);\n// EXTERNAL MODULE: ./node_modules/next-seo/lib/next-seo.module.js\nvar next_seo_module = __webpack_require__(1228);\n;// CONCATENATED MODULE: ./node_modules/color2k/dist/index.exports.import.es.mjs\n/**\n * A simple guard function:\n *\n * ```js\n * Math.min(Math.max(low, value), high)\n * ```\n */\nfunction guard(low, high, value) {\n return Math.min(Math.max(low, value), high);\n}\n\nclass ColorError extends Error {\n constructor(color) {\n super(`Failed to parse color: \"${color}\"`);\n }\n\n}\n\nvar ColorError$1 = ColorError;\n\n/**\n * Parses a color into red, gree, blue, alpha parts\n *\n * @param color the input color. Can be a RGB, RBGA, HSL, HSLA, or named color\n */\n\nfunction parseToRgba(color) {\n if (typeof color !== 'string') throw new ColorError$1(color);\n if (color.trim().toLowerCase() === 'transparent') return [0, 0, 0, 0];\n let normalizedColor = color.trim();\n normalizedColor = namedColorRegex.test(color) ? nameToHex(color) : color;\n const reducedHexMatch = reducedHexRegex.exec(normalizedColor);\n\n if (reducedHexMatch) {\n const arr = Array.from(reducedHexMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(r(x, 2), 16)), parseInt(r(arr[3] || 'f', 2), 16) / 255];\n }\n\n const hexMatch = hexRegex.exec(normalizedColor);\n\n if (hexMatch) {\n const arr = Array.from(hexMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(x, 16)), parseInt(arr[3] || 'ff', 16) / 255];\n }\n\n const rgbaMatch = rgbaRegex.exec(normalizedColor);\n\n if (rgbaMatch) {\n const arr = Array.from(rgbaMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(x, 10)), parseFloat(arr[3] || '1')];\n }\n\n const hslaMatch = hslaRegex.exec(normalizedColor);\n\n if (hslaMatch) {\n const [h, s, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);\n if (guard(0, 100, s) !== s) throw new ColorError$1(color);\n if (guard(0, 100, l) !== l) throw new ColorError$1(color);\n return [...hslToRgb(h, s, l), a || 1];\n }\n\n throw new ColorError$1(color);\n}\n\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n\n while (i) {\n hash = hash * 33 ^ str.charCodeAt(--i);\n }\n /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed\n * integers. Since we want the results to be always positive, convert the\n * signed int to an unsigned by doing an unsigned bitshift. */\n\n\n return (hash >>> 0) % 2341;\n}\n\nconst colorToInt = x => parseInt(x.replace(/_/g, ''), 36);\n\nconst compressedColorMap = '1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm'.split(' ').reduce((acc, next) => {\n const key = colorToInt(next.substring(0, 3));\n const hex = colorToInt(next.substring(3)).toString(16); // NOTE: padStart could be used here but it breaks Node 6 compat\n // https://github.com/ricokahler/color2k/issues/351\n\n let prefix = '';\n\n for (let i = 0; i < 6 - hex.length; i++) {\n prefix += '0';\n }\n\n acc[key] = `${prefix}${hex}`;\n return acc;\n}, {});\n/**\n * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.\n */\n\nfunction nameToHex(color) {\n const normalizedColorName = color.toLowerCase().trim();\n const result = compressedColorMap[hash(normalizedColorName)];\n if (!result) throw new ColorError$1(color);\n return `#${result}`;\n}\n\nconst r = (str, amount) => Array.from(Array(amount)).map(() => str).join('');\n\nconst reducedHexRegex = new RegExp(`^#${r('([a-f0-9])', 3)}([a-f0-9])?$`, 'i');\nconst hexRegex = new RegExp(`^#${r('([a-f0-9]{2})', 3)}([a-f0-9]{2})?$`, 'i');\nconst rgbaRegex = new RegExp(`^rgba?\\\\(\\\\s*(\\\\d+)\\\\s*${r(',\\\\s*(\\\\d+)\\\\s*', 2)}(?:,\\\\s*([\\\\d.]+))?\\\\s*\\\\)$`, 'i');\nconst hslaRegex = /^hsla?\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)%\\s*,\\s*([\\d.]+)%(?:\\s*,\\s*([\\d.]+))?\\s*\\)$/i;\nconst namedColorRegex = /^[a-z]+$/i;\n\nconst roundColor = color => {\n return Math.round(color * 255);\n};\n\nconst hslToRgb = (hue, saturation, lightness) => {\n let l = lightness / 100;\n\n if (saturation === 0) {\n // achromatic\n return [l, l, l].map(roundColor);\n } // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV\n\n\n const huePrime = (hue % 360 + 360) % 360 / 60;\n const chroma = (1 - Math.abs(2 * l - 1)) * (saturation / 100);\n const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));\n let red = 0;\n let green = 0;\n let blue = 0;\n\n if (huePrime >= 0 && huePrime < 1) {\n red = chroma;\n green = secondComponent;\n } else if (huePrime >= 1 && huePrime < 2) {\n red = secondComponent;\n green = chroma;\n } else if (huePrime >= 2 && huePrime < 3) {\n green = chroma;\n blue = secondComponent;\n } else if (huePrime >= 3 && huePrime < 4) {\n green = secondComponent;\n blue = chroma;\n } else if (huePrime >= 4 && huePrime < 5) {\n red = secondComponent;\n blue = chroma;\n } else if (huePrime >= 5 && huePrime < 6) {\n red = chroma;\n blue = secondComponent;\n }\n\n const lightnessModification = l - chroma / 2;\n const finalRed = red + lightnessModification;\n const finalGreen = green + lightnessModification;\n const finalBlue = blue + lightnessModification;\n return [finalRed, finalGreen, finalBlue].map(roundColor);\n};\n\n// taken from:\n/**\n * Parses a color in hue, saturation, lightness, and the alpha channel.\n *\n * Hue is a number between 0 and 360, saturation, lightness, and alpha are\n * decimal percentages between 0 and 1\n */\n\nfunction parseToHsla(color) {\n const [red, green, blue, alpha] = parseToRgba(color).map((value, index) => // 3rd index is alpha channel which is already normalized\n index === 3 ? value : value / 255);\n const max = Math.max(red, green, blue);\n const min = Math.min(red, green, blue);\n const lightness = (max + min) / 2; // achromatic\n\n if (max === min) return [0, 0, lightness, alpha];\n const delta = max - min;\n const saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);\n const hue = 60 * (red === max ? (green - blue) / delta + (green < blue ? 6 : 0) : green === max ? (blue - red) / delta + 2 : (red - green) / delta + 4);\n return [hue, saturation, lightness, alpha];\n}\n\n/**\n * Takes in hsla parts and constructs an hsla string\n *\n * @param hue The color circle (from 0 to 360) - 0 (or 360) is red, 120 is green, 240 is blue\n * @param saturation Percentage of saturation, given as a decimal between 0 and 1\n * @param lightness Percentage of lightness, given as a decimal between 0 and 1\n * @param alpha Percentage of opacity, given as a decimal between 0 and 1\n */\n\nfunction hsla(hue, saturation, lightness, alpha) {\n return `hsla(${(hue % 360).toFixed()}, ${guard(0, 100, saturation * 100).toFixed()}%, ${guard(0, 100, lightness * 100).toFixed()}%, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;\n}\n\n/**\n * Adjusts the current hue of the color by the given degrees. Wraps around when\n * over 360.\n *\n * @param color input color\n * @param degrees degrees to adjust the input color, accepts degree integers\n * (0 - 360) and wraps around on overflow\n */\n\nfunction adjustHue(color, degrees) {\n const [h, s, l, a] = parseToHsla(color);\n return hsla(h + degrees, s, l, a);\n}\n\n/**\n * Darkens using lightness. This is equivalent to subtracting the lightness\n * from the L in HSL.\n *\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\n\nfunction darken(color, amount) {\n const [hue, saturation, lightness, alpha] = parseToHsla(color);\n return hsla(hue, saturation, lightness - amount, alpha);\n}\n\n/**\n * Desaturates the input color by the given amount via subtracting from the `s`\n * in `hsla`.\n *\n * @param amount The amount to desaturate, given as a decimal between 0 and 1\n */\n\nfunction desaturate(color, amount) {\n const [h, s, l, a] = parseToHsla(color);\n return hsla(h, s - amount, l, a);\n}\n\n// https://github.com/styled-components/polished/blob/0764c982551b487469043acb56281b0358b3107b/src/color/getLuminance.js\n\n/**\n * Returns a number (float) representing the luminance of a color.\n */\n\nfunction getLuminance(color) {\n if (color === 'transparent') return 0;\n\n function f(x) {\n const channel = x / 255;\n return channel <= 0.03928 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4);\n }\n\n const [r, g, b] = parseToRgba(color);\n return 0.2126 * f(r) + 0.7152 * f(g) + 0.0722 * f(b);\n}\n\n// taken from:\n/**\n * Returns the contrast ratio between two colors based on\n * [W3's recommended equation for calculating contrast](http://www.w3.org/TR/WCAG20/#contrast-ratiodef).\n */\n\nfunction getContrast(color1, color2) {\n const luminance1 = getLuminance(color1);\n const luminance2 = getLuminance(color2);\n return luminance1 > luminance2 ? (luminance1 + 0.05) / (luminance2 + 0.05) : (luminance2 + 0.05) / (luminance1 + 0.05);\n}\n\n/**\n * Takes in rgba parts and returns an rgba string\n *\n * @param red The amount of red in the red channel, given in a number between 0 and 255 inclusive\n * @param green The amount of green in the red channel, given in a number between 0 and 255 inclusive\n * @param blue The amount of blue in the red channel, given in a number between 0 and 255 inclusive\n * @param alpha Percentage of opacity, given as a decimal between 0 and 1\n */\n\nfunction rgba(red, green, blue, alpha) {\n return `rgba(${guard(0, 255, red).toFixed()}, ${guard(0, 255, green).toFixed()}, ${guard(0, 255, blue).toFixed()}, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;\n}\n\n/**\n * Mixes two colors together. Taken from sass's implementation.\n */\n\nfunction mix(color1, color2, weight) {\n const normalize = (n, index) => // 3rd index is alpha channel which is already normalized\n index === 3 ? n : n / 255;\n\n const [r1, g1, b1, a1] = parseToRgba(color1).map(normalize);\n const [r2, g2, b2, a2] = parseToRgba(color2).map(normalize); // The formula is copied from the original Sass implementation:\n // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method\n\n const alphaDelta = a2 - a1;\n const normalizedWeight = weight * 2 - 1;\n const combinedWeight = normalizedWeight * alphaDelta === -1 ? normalizedWeight : normalizedWeight + alphaDelta / (1 + normalizedWeight * alphaDelta);\n const weight2 = (combinedWeight + 1) / 2;\n const weight1 = 1 - weight2;\n const r = (r1 * weight1 + r2 * weight2) * 255;\n const g = (g1 * weight1 + g2 * weight2) * 255;\n const b = (b1 * weight1 + b2 * weight2) * 255;\n const a = a2 * weight + a1 * (1 - weight);\n return rgba(r, g, b, a);\n}\n\n/**\n * Given a series colors, this function will return a `scale(x)` function that\n * accepts a percentage as a decimal between 0 and 1 and returns the color at\n * that percentage in the scale.\n *\n * ```js\n * const scale = getScale('red', 'yellow', 'green');\n * console.log(scale(0)); // rgba(255, 0, 0, 1)\n * console.log(scale(0.5)); // rgba(255, 255, 0, 1)\n * console.log(scale(1)); // rgba(0, 128, 0, 1)\n * ```\n *\n * If you'd like to limit the domain and range like chroma-js, we recommend\n * wrapping scale again.\n *\n * ```js\n * const _scale = getScale('red', 'yellow', 'green');\n * const scale = x => _scale(x / 100);\n *\n * console.log(scale(0)); // rgba(255, 0, 0, 1)\n * console.log(scale(50)); // rgba(255, 255, 0, 1)\n * console.log(scale(100)); // rgba(0, 128, 0, 1)\n * ```\n */\n\nfunction getScale(...colors) {\n return n => {\n const lastIndex = colors.length - 1;\n const lowIndex = guard(0, lastIndex, Math.floor(n * lastIndex));\n const highIndex = guard(0, lastIndex, Math.ceil(n * lastIndex));\n const color1 = colors[lowIndex];\n const color2 = colors[highIndex];\n const unit = 1 / lastIndex;\n const weight = (n - unit * lowIndex) / unit;\n return mix(color1, color2, weight);\n };\n}\n\nconst guidelines = {\n decorative: 1.5,\n readable: 3,\n aa: 4.5,\n aaa: 7\n};\n/**\n * Returns whether or not a color has bad contrast against a background\n * according to a given standard.\n */\n\nfunction hasBadContrast(color, standard = 'aa', background = '#fff') {\n return getContrast(color, background) < guidelines[standard];\n}\n\n/**\n * Lightens a color by a given amount. This is equivalent to\n * `darken(color, -amount)`\n *\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\n\nfunction lighten(color, amount) {\n return darken(color, -amount);\n}\n\n/**\n * Takes in a color and makes it more transparent by convert to `rgba` and\n * decreasing the amount in the alpha channel.\n *\n * @param amount The amount to increase the transparency by, given as a decimal between 0 and 1\n */\n\nfunction transparentize(color, amount) {\n const [r, g, b, a] = parseToRgba(color);\n return rgba(r, g, b, a - amount);\n}\n\n/**\n * Takes a color and un-transparentizes it. Equivalent to\n * `transparentize(color, -amount)`\n *\n * @param amount The amount to increase the opacity by, given as a decimal between 0 and 1\n */\n\nfunction opacify(color, amount) {\n return transparentize(color, -amount);\n}\n\n/**\n * An alternative function to `readableColor`. Returns whether or not the \n * readable color (i.e. the color to be place on top the input color) should be\n * black.\n */\n\nfunction readableColorIsBlack(color) {\n return getLuminance(color) > 0.179;\n}\n\n/**\n * Returns black or white for best contrast depending on the luminosity of the\n * given color.\n */\n\nfunction readableColor(color) {\n return readableColorIsBlack(color) ? '#000' : '#fff';\n}\n\n/**\n * Saturates a color by converting it to `hsl` and increasing the saturation\n * amount. Equivalent to `desaturate(color, -amount)`\n * \n * @param color Input color\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\n\nfunction saturate(color, amount) {\n return desaturate(color, -amount);\n}\n\n/**\n * Takes in any color and returns it as a hex code.\n */\n\nfunction toHex(color) {\n const [r, g, b, a] = parseToRgba(color);\n\n let hex = x => {\n const h = guard(0, 255, x).toString(16); // NOTE: padStart could be used here but it breaks Node 6 compat\n // https://github.com/ricokahler/color2k/issues/351\n\n return h.length === 1 ? `0${h}` : h;\n };\n\n return `#${hex(r)}${hex(g)}${hex(b)}${a < 1 ? hex(Math.round(a * 255)) : ''}`;\n}\n\n/**\n * Takes in any color and returns it as an rgba string.\n */\n\nfunction toRgba(color) {\n return rgba(...parseToRgba(color));\n}\n\n/**\n * Takes in any color and returns it as an hsla string.\n */\n\nfunction toHsla(color) {\n return hsla(...parseToHsla(color));\n}\n\n\n//# sourceMappingURL=index.exports.import.es.mjs.map\n\n;// CONCATENATED MODULE: ./hooks/useColorTheme.ts\n\n\nfunction useColorTheme(primaryColor) {\n (0,react.useEffect)(()=>{\n if (primaryColor) {\n const root = document.documentElement;\n const readablecolor = readableColor(primaryColor);\n root.style.setProperty(\"--primary-500\", primaryColor || \"\");\n root.style.setProperty(\"--primary-300\", transparentize(primaryColor, 0.3) || \"\");\n root.style.setProperty(\"--primary-50\", transparentize(primaryColor, 0.85) || \"\");\n // It's too weird, but the Design team can do it.\n if (primaryColor === \"#536DFE\") {\n root.style.setProperty(\"--primary-readable-color\", \"#ffffff\");\n } else {\n root.style.setProperty(\"--primary-readable-color\", readablecolor || \"\");\n }\n }\n }, [\n primaryColor\n ]);\n return;\n}\n/* harmony default export */ var hooks_useColorTheme = (useColorTheme);\n\n// EXTERNAL MODULE: ./node_modules/@tanstack/query-core/build/lib/utils.mjs\nvar utils = __webpack_require__(154);\n// EXTERNAL MODULE: ./node_modules/@tanstack/query-core/build/lib/notifyManager.mjs\nvar notifyManager = __webpack_require__(7557);\n// EXTERNAL MODULE: ./node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.mjs\nvar useSyncExternalStore = __webpack_require__(9861);\n// EXTERNAL MODULE: ./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.mjs\nvar QueryClientProvider = __webpack_require__(4783);\n;// CONCATENATED MODULE: ./node_modules/@tanstack/react-query/build/lib/useIsFetching.mjs\n\n\n\n\n\nfunction useIsFetching(arg1, arg2, arg3) {\n const [filters, options = {}] = (0,utils/* parseFilterArgs */.I6)(arg1, arg2, arg3);\n const queryClient = (0,QueryClientProvider/* useQueryClient */.NL)({\n context: options.context\n });\n const queryCache = queryClient.getQueryCache();\n return (0,useSyncExternalStore/* useSyncExternalStore */.$)(react.useCallback(onStoreChange => queryCache.subscribe(notifyManager/* notifyManager.batchCalls */.V.batchCalls(onStoreChange)), [queryCache]), () => queryClient.isFetching(filters), () => queryClient.isFetching(filters));\n}\n\n\n//# sourceMappingURL=useIsFetching.mjs.map\n\n// EXTERNAL MODULE: ./node_modules/react-hot-toast/dist/index.mjs + 1 modules\nvar dist = __webpack_require__(8227);\n;// CONCATENATED MODULE: ./hooks/useSpinner.ts\n\n\n\nfunction useSpinner() {\n const isFetching = useIsFetching();\n (0,react.useEffect)(()=>{\n let toastId;\n if (isFetching) {\n toastId = dist/* toast.loading */.Am.loading(\"Fetching...\", {\n position: \"top-center\"\n });\n }\n return ()=>{\n dist/* toast.dismiss */.Am.dismiss(toastId);\n };\n }, [\n isFetching\n ]);\n}\n/* harmony default export */ var hooks_useSpinner = (useSpinner);\n\n;// CONCATENATED MODULE: ./utils/aes.utils.ts\nconst secretKey = \"0f3e581733534ef19cdd753c3eac0937\";\nconst cipher = (salt)=>{\n const textToChars = (text)=>text.split(\"\").map((c)=>c.charCodeAt(0));\n const byteHex = (n)=>(\"0\" + Number(n).toString(16)).substr(-2);\n const applySaltToChar = (code)=>textToChars(salt).reduce((a, b)=>a ^ b, code);\n return (text)=>text.split(\"\").map(textToChars).map(applySaltToChar).map(byteHex).join(\"\");\n};\nconst decipher = (salt)=>{\n const textToChars = (text)=>text.split(\"\").map((c)=>c.charCodeAt(0));\n const applySaltToChar = (code)=>textToChars(salt).reduce((a, b)=>a ^ b, code);\n return (encoded)=>encoded.match(/.{1,2}/g).map((hex)=>parseInt(hex, 16)).map(applySaltToChar).map((charCode)=>String.fromCharCode(charCode)).join(\"\");\n};\nconst encrypt = cipher(secretKey);\nconst decrypt = decipher(secretKey);\nconst generateOGUrl = (param)=>{\n let { title , primaryColor , logoURL } = param;\n return encrypt(JSON.stringify({\n title,\n primaryColor,\n logoURL\n }));\n};\n\n// EXTERNAL MODULE: ./hooks/useFetch.ts + 1 modules\nvar useFetch = __webpack_require__(9350);\n// EXTERNAL MODULE: ./hooks/useSortWorkingHours.ts\nvar useSortWorkingHours = __webpack_require__(6349);\n// EXTERNAL MODULE: ./node_modules/next-translate/lib/esm/useTranslation.js + 1 modules\nvar useTranslation = __webpack_require__(8757);\n;// CONCATENATED MODULE: ./containers/JSON-LD/JSON-LD.tsx\n\n\n\n\n\n\nconst DOMAIN_URL = \"https://www.yocale.com\";\nconst StoreJsonLd = ()=>{\n var _profile_phoneNumber, _profile_phoneNumber1;\n const { t } = (0,useTranslation/* default */.Z)(\"common\");\n const { data: businessProfile } = (0,useFetch/* useBusinessProfile */.jB)();\n const profile = businessProfile === null || businessProfile === void 0 ? void 0 : businessProfile.data;\n const location = profile === null || profile === void 0 ? void 0 : profile.locations.items[0].address;\n const workingHours = profile === null || profile === void 0 ? void 0 : profile.workingHours;\n const review = profile === null || profile === void 0 ? void 0 : profile.reviews.items;\n const service = profile === null || profile === void 0 ? void 0 : profile.services.items;\n const locations = profile === null || profile === void 0 ? void 0 : profile.locations.items;\n const images = profile === null || profile === void 0 ? void 0 : profile.coverImages.map((x)=>x.url);\n const description = (profile === null || profile === void 0 ? void 0 : profile.description) || t(\"sections.about.description\");\n const sorting = (0,useSortWorkingHours/* default */.Z)(workingHours);\n const openingHours = (0,react.useMemo)(()=>sorting.filter((x)=>x.time[0]).map((x)=>({\n opens: x.time[0].start,\n closes: x.time[0].end,\n dayOfWeek: x.d\n })), [\n sorting\n ]);\n const reviews = (0,react.useMemo)(()=>{\n return review === null || review === void 0 ? void 0 : review.map((re)=>({\n author: \"\".concat(re.author.firstName, \" \").concat(re.author.lastName),\n datePublished: re.publishedAt,\n reviewBody: re.comment,\n reviewRating: {\n ratingValue: re.score\n }\n }));\n }, [\n review\n ]);\n const areas = (0,react.useMemo)(()=>{\n return locations === null || locations === void 0 ? void 0 : locations.map((loc)=>({\n geoMidpoint: {\n latitude: loc.address.geoLocation.latitude,\n longitude: loc.address.geoLocation.longitude\n },\n geoRadius: 1000\n }));\n }, [\n locations\n ]);\n const makesOffer = (0,react.useMemo)(()=>{\n return service === null || service === void 0 ? void 0 : service.map((se)=>{\n return {\n priceSpecification: {\n type: \"UnitPriceSpecification\",\n priceCurrency: profile === null || profile === void 0 ? void 0 : profile.currency.name,\n price: \"\".concat(se.price)\n },\n itemOffered: {\n name: se.name,\n description: se.description\n }\n };\n });\n }, [\n profile === null || profile === void 0 ? void 0 : profile.currency.name,\n service\n ]);\n return /*#__PURE__*/ (0,jsx_runtime.jsx)(next_seo_module/* LocalBusinessJsonLd */.wq, {\n type: \"Store\",\n id: \"\".concat(DOMAIN_URL, \"/b/\").concat(profile === null || profile === void 0 ? void 0 : profile.key),\n name: (profile === null || profile === void 0 ? void 0 : profile.name) || \"\",\n description: description || \"\",\n url: \"\".concat(DOMAIN_URL, \"/b/\").concat(profile === null || profile === void 0 ? void 0 : profile.key),\n telephone: \"+\".concat(profile === null || profile === void 0 ? void 0 : (_profile_phoneNumber = profile.phoneNumber) === null || _profile_phoneNumber === void 0 ? void 0 : _profile_phoneNumber.countryCode).concat((profile === null || profile === void 0 ? void 0 : (_profile_phoneNumber1 = profile.phoneNumber) === null || _profile_phoneNumber1 === void 0 ? void 0 : _profile_phoneNumber1.number) || \"\"),\n address: {\n streetAddress: location === null || location === void 0 ? void 0 : location.displayAddress,\n addressLocality: location === null || location === void 0 ? void 0 : location.city,\n addressRegion: location === null || location === void 0 ? void 0 : location.state,\n postalCode: location === null || location === void 0 ? void 0 : location.postalCode,\n addressCountry: location === null || location === void 0 ? void 0 : location.country\n },\n geo: {\n latitude: location === null || location === void 0 ? void 0 : location.geoLocation.latitude,\n longitude: location === null || location === void 0 ? void 0 : location.geoLocation.longitude\n },\n images: images,\n // sameAs={[\"www.company-website-url1.dev\", \"www.company-website-url2.dev\", \"www.company-website-url3.dev\"]}\n openingHours: openingHours,\n rating: {\n ratingValue: \"\".concat(profile === null || profile === void 0 ? void 0 : profile.rate.score),\n ratingCount: \"\".concat(profile === null || profile === void 0 ? void 0 : profile.rate.count)\n },\n review: reviews,\n makesOffer: makesOffer,\n areaServed: areas\n });\n};\n\n\n// EXTERNAL MODULE: ./utils/utils.ts\nvar utils_utils = __webpack_require__(8728);\n;// CONCATENATED MODULE: ./containers/Layout/Layout.tsx\n\n\n\n\n\n\n\n\n\n\n\nconst GTM_ID = \"GTM-K9SZ2CD\";\nconst Header = dynamic_default()(()=>Promise.all(/* import() */[__webpack_require__.e(228), __webpack_require__.e(169), __webpack_require__.e(189)]).then(__webpack_require__.bind(__webpack_require__, 4189)), {\n loadableGenerated: {\n webpack: ()=>[\n /*require.resolve*/(4189)\n ]\n },\n ssr: false\n});\nconst Layout = (param)=>{\n let { children , businessKey , title , description , hideHeaderFooter , primaryColor , logoURL , headerProps , languages } = param;\n hooks_useColorTheme(primaryColor);\n hooks_useSpinner();\n const cx = generateOGUrl({\n title,\n primaryColor,\n logoURL\n });\n const truncatedDesc = description && (0,utils_utils/* truncateString */.aS)(description, 160);\n const languageAlternates = (0,react.useMemo)(()=>{\n return languages === null || languages === void 0 ? void 0 : languages.map((l)=>({\n hrefLang: l,\n href: \"\".concat(\"https://www.yocale.com\", \"/b/\").concat(l, \"/\").concat(businessKey)\n }));\n }, [\n languages,\n businessKey\n ]);\n return /*#__PURE__*/ (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsxs)((head_default()), {\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsx)(\"link\", {\n rel: \"apple-touch-icon\",\n sizes: \"180x180\",\n href: (0,utils_utils/* resolvedPublicPath */.dO)(\"apple-touch-icon.png\")\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(\"link\", {\n rel: \"icon\",\n type: \"image/png\",\n sizes: \"32x32\",\n href: (0,utils_utils/* resolvedPublicPath */.dO)(\"favicon-32x32.png\")\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(\"link\", {\n rel: \"icon\",\n type: \"image/png\",\n sizes: \"16x16\",\n href: (0,utils_utils/* resolvedPublicPath */.dO)(\"favicon-16x16.png\")\n })\n ]\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)((script_default()), {\n id: \"gtag-base\",\n strategy: \"afterInteractive\",\n dangerouslySetInnerHTML: {\n __html: \"\\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\\n })(window,document,'script','dataLayer', '\".concat(GTM_ID, \"');\\n \")\n }\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(next_seo_module/* NextSeo */.PB, {\n title: title,\n description: truncatedDesc,\n canonical: \"\".concat(\"https://www.yocale.com\", \"/b/\").concat(businessKey),\n noindex: \"false\" === \"true\",\n languageAlternates: languageAlternates,\n openGraph: {\n url: \"\".concat(\"https://www.yocale.com\", \"/b/\").concat(businessKey),\n title,\n description: truncatedDesc,\n images: [\n {\n url: \"\".concat(\"https://og.planet.yocale.com\", \"/api/og?cx=\").concat(cx),\n width: 1200,\n height: 630,\n alt: title,\n type: \"image/png\"\n }\n ]\n },\n twitter: {\n handle: \"@handle\",\n site: \"@site\",\n cardType: \"summary_large_image\"\n }\n }),\n !hideHeaderFooter && /*#__PURE__*/ (0,jsx_runtime.jsx)(StoreJsonLd, {}),\n /*#__PURE__*/ (0,jsx_runtime.jsxs)(\"main\", {\n className: \"text-black\",\n children: [\n !hideHeaderFooter && /*#__PURE__*/ (0,jsx_runtime.jsx)(Header, {\n ...headerProps\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(jsx_runtime.Fragment, {\n children: children\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(\"noscript\", {\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(\"iframe\", {\n title: \"googletagmanager\",\n src: \"https://www.googletagmanager.com/ns.html?id=\".concat(GTM_ID),\n height: \"0\",\n width: \"0\",\n style: {\n display: \"none\",\n visibility: \"hidden\"\n }\n })\n })\n ]\n })\n ]\n });\n};\n/* harmony default export */ var Layout_Layout = (/*#__PURE__*/(0,react.memo)(Layout));\n\n\n/***/ }),\n\n/***/ 9350:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n \"FV\": function() { return /* binding */ fetchBusinessProfile; },\n \"jB\": function() { return /* binding */ useBusinessProfile; },\n \"yL\": function() { return /* binding */ useProvider; },\n \"DF\": function() { return /* binding */ useReviews; },\n \"Su\": function() { return /* binding */ useServices; }\n});\n\n// UNUSED EXPORTS: fetchAllServices, fetchProviders, fetchReviews\n\n// EXTERNAL MODULE: ./node_modules/@tanstack/react-query/build/lib/useQuery.mjs\nvar useQuery = __webpack_require__(6200);\n// EXTERNAL MODULE: ./node_modules/@tanstack/react-query/build/lib/useInfiniteQuery.mjs + 1 modules\nvar useInfiniteQuery = __webpack_require__(5347);\n// EXTERNAL MODULE: ./node_modules/axios/lib/axios.js + 39 modules\nvar lib_axios = __webpack_require__(5960);\n;// CONCATENATED MODULE: ./lib/axios.ts\n\nconst ENDPOINT_URL = \"https://planet.yocale.com\";\nconst axios_axios = lib_axios/* default.create */.Z.create({\n baseURL: \"\".concat(ENDPOINT_URL, \"/api/v1\")\n});\n\n// EXTERNAL MODULE: ./queries/index.query.ts + 1 modules\nvar index_query = __webpack_require__(5866);\n;// CONCATENATED MODULE: ./hooks/useFetch.ts\n\n\n\nconst PAGINATE_LIMIT = Number(\"10\");\nconst fetchReviews = async function(slug) {\n let pageParam = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, limit = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 10;\n const _pageParam = pageParam !== null && pageParam || 0;\n const res = await axios_axios.get(\"/businesses/\".concat(slug, \"/reviews?offset=\").concat(_pageParam, \"&limit=\").concat(limit));\n return res.data.data;\n};\nconst fetchServices = async function(slug) {\n let pageParam = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, limit = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 10;\n const _pageParam = pageParam !== null && pageParam || 0;\n const res = await axios_axios.get(\"/businesses/\".concat(slug, \"/services?offset=\").concat(_pageParam, \"&limit=\").concat(limit));\n return res.data.data;\n};\nconst fetchProviders = async function(slug) {\n let pageParam = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, limit = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 10;\n const _pageParam = pageParam !== null && pageParam || 0;\n const res = await axios_axios.get(\"/businesses/\".concat(slug, \"/providers?offset=\").concat(_pageParam, \"&limit=\").concat(limit));\n return res.data.data;\n};\nconst fetchAllServices = async function(slug) {\n let pageParam = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, data = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {\n offset: 0,\n limit: 0,\n hasNext: true,\n items: []\n }, limit = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 50;\n const offset = pageParam * limit;\n return axios.get(\"/businesses/\".concat(slug, \"/services?offset=\").concat(offset, \"&limit=\").concat(limit)).then((res)=>{\n console.log(\"Fetch All Services, Offset: \".concat(offset, \" - Limit: \").concat(limit));\n data.items.push(...res.data.data.items);\n data.offset = res.data.data.offset;\n data.limit = res.data.data.limit;\n data.hasNext = res.data.data.hasNext;\n if (!res.data.data.hasNext) return data;\n return fetchAllServices(slug, pageParam + 1, data);\n });\n};\nconst fetchBusinessProfile = async function(slug) {\n let fields = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"services,providers,reviews,locations\";\n const req = await axios_axios(\"/businesses/\".concat(slug, \"?fields=\").concat(fields));\n return req.data;\n};\nconst useBusinessProfile = ()=>{\n return (0,useQuery/* useQuery */.a)([\n index_query/* queries.publicProfile.businessKey */.o.publicProfile.businessKey\n ], {\n refetchOnMount: false,\n refetchOnWindowFocus: false,\n refetchOnReconnect: false,\n refetchIntervalInBackground: false\n });\n};\nconst useReviews = (slug)=>{\n return (0,useInfiniteQuery/* useInfiniteQuery */.N)([\n \"reviews\"\n ], async (param)=>{\n let { pageParam =0 } = param;\n return fetchReviews(slug, pageParam, PAGINATE_LIMIT);\n }, {\n refetchOnMount: false,\n refetchOnWindowFocus: false,\n refetchOnReconnect: false,\n refetchIntervalInBackground: false,\n getNextPageParam: (lastPage, pages)=>{\n if (lastPage.hasNext) {\n return pages.length * PAGINATE_LIMIT;\n } else {\n return undefined;\n }\n }\n });\n};\nconst useServices = (slug)=>{\n return (0,useInfiniteQuery/* useInfiniteQuery */.N)([\n \"services\"\n ], async (param)=>{\n let { pageParam =0 } = param;\n return fetchServices(slug, pageParam, PAGINATE_LIMIT);\n }, {\n refetchOnMount: false,\n refetchOnWindowFocus: false,\n refetchOnReconnect: false,\n refetchIntervalInBackground: false,\n getNextPageParam: (lastPage, pages)=>{\n if (lastPage.hasNext) {\n return pages.length * PAGINATE_LIMIT;\n } else {\n return undefined;\n }\n }\n });\n};\nconst useProvider = (slug)=>{\n return (0,useInfiniteQuery/* useInfiniteQuery */.N)([\n \"providers\"\n ], async (param)=>{\n let { pageParam =0 } = param;\n return fetchProviders(slug, pageParam, PAGINATE_LIMIT);\n }, {\n refetchOnMount: false,\n refetchOnWindowFocus: false,\n refetchOnReconnect: false,\n refetchIntervalInBackground: false,\n getNextPageParam: (lastPage, pages)=>{\n if (lastPage.hasNext) {\n return (pages.length - 1) * PAGINATE_LIMIT + PAGINATE_LIMIT;\n } else {\n return undefined;\n }\n }\n });\n};\n\n\n\n/***/ }),\n\n/***/ 6349:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1776);\n\nconst useSortWorkingHours = (workingHours)=>{\n const sorting = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>{\n if (!workingHours) return [];\n const times = [];\n Object.entries(workingHours).forEach(function(param) {\n let [day, time] = param;\n times.push({\n d: day,\n time\n });\n });\n const sorter = {\n // \"sunday\": 0, // << if sunday is first day of week\n monday: 1,\n tuesday: 2,\n wednesday: 3,\n thursday: 4,\n friday: 5,\n saturday: 6,\n sunday: 7\n };\n times.sort((a, b)=>{\n let day1 = a.d.toLowerCase();\n let day2 = b.d.toLowerCase();\n return sorter[day1] - sorter[day2];\n });\n return times;\n }, [\n workingHours\n ]);\n return sorting;\n};\n/* harmony default export */ __webpack_exports__[\"Z\"] = (useSortWorkingHours);\n\n\n/***/ }),\n\n/***/ 8742:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"__N_SSG\": function() { return /* binding */ __N_SSG; }\n/* harmony export */ });\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6734);\n/* harmony import */ var next_image__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7832);\n/* harmony import */ var next_image__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_image__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var containers_Layout_Layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5527);\n/* harmony import */ var utils_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8728);\n\n\n\n\nconst Custom404 = ()=>{\n return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(containers_Layout_Layout__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n title: \"404\",\n hideHeaderFooter: true,\n children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"div\", {\n className: \"min-h-screen flex flex-col items-center justify-center\",\n children: [\n /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)((next_image__WEBPACK_IMPORTED_MODULE_1___default()), {\n src: (0,utils_utils__WEBPACK_IMPORTED_MODULE_3__/* .resolvedPublicPath */ .dO)(\"404.svg\"),\n width: 649,\n height: 433,\n alt: \"404\",\n priority: true\n }),\n /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"div\", {\n className: \"mt-36\",\n children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)((next_image__WEBPACK_IMPORTED_MODULE_1___default()), {\n src: (0,utils_utils__WEBPACK_IMPORTED_MODULE_3__/* .resolvedPublicPath */ .dO)(\"yocale-logo.svg\"),\n alt: \"Powered by Yocale\",\n width: 100,\n height: 48,\n loading: \"lazy\"\n })\n })\n ]\n })\n });\n};\nvar __N_SSG = true;\n/* harmony default export */ __webpack_exports__[\"default\"] = (Custom404);\n\n\n/***/ }),\n\n/***/ 5866:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n \"o\": function() { return /* binding */ queries; }\n});\n\n// EXTERNAL MODULE: ./node_modules/@lukemorales/query-key-factory/dist/index.mjs\nvar dist = __webpack_require__(4967);\n;// CONCATENATED MODULE: ./queries/businessProfile.query.ts\n\nconst businessProfileKeys = (0,dist/* createQueryKeys */.no)(\"publicProfile\", {\n businessKey: null\n});\n\n;// CONCATENATED MODULE: ./queries/index.query.ts\n\n\nconst queries = (0,dist/* mergeQueryKeys */.kR)(businessProfileKeys);\n\n\n/***/ }),\n\n/***/ 8728:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"BB\": function() { return /* binding */ isProd; },\n/* harmony export */ \"Ee\": function() { return /* binding */ generateSocialShare; },\n/* harmony export */ \"Eh\": function() { return /* binding */ toSearchEngineFriendlyWords; },\n/* harmony export */ \"Hl\": function() { return /* binding */ getNameOfDay; },\n/* harmony export */ \"UT\": function() { return /* binding */ generateSectionLabel; },\n/* harmony export */ \"V5\": function() { return /* binding */ formatTime24; },\n/* harmony export */ \"_2\": function() { return /* binding */ generateBookingURL; },\n/* harmony export */ \"aS\": function() { return /* binding */ truncateString; },\n/* harmony export */ \"dO\": function() { return /* binding */ resolvedPublicPath; }\n/* harmony export */ });\n/* harmony import */ var lodash_es_lowerCase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7167);\n/* harmony import */ var lodash_es_kebabCase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(194);\n\n\nconst DOMAIN_URL = \"https://www.yocale.com\";\nconst getNameOfDay = ()=>{\n const days = [\n \"Sunday\",\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\"\n ];\n const d = new Date();\n return days[d.getDay()];\n};\nconst generateBookingURL = (param)=>{\n let { uniqueIdentifier , type , id , locale } = param;\n let link = \"\".concat(DOMAIN_URL, \"/widget/\").concat(uniqueIdentifier, \"?lng=\").concat(locale);\n switch(type){\n case \"location\":\n link += \"&locations=\".concat(id);\n break;\n case \"provider\":\n link += \"&op=~\".concat(id);\n break;\n case \"service\":\n link += \"&op=\".concat(id, \"~\");\n break;\n default:\n break;\n }\n return link;\n};\nconst generateSocialShare = (param)=>{\n let { type , businessName , url } = param;\n let link = \"\";\n switch(type){\n case \"facebook\":\n link += \"https://facebook.com/sharer/sharer.php?u=\".concat(url);\n break;\n case \"twitter\":\n link += \"https://twitter.com/intent/tweet/?text=\".concat(businessName, \"&url=\").concat(url);\n break;\n default:\n break;\n }\n return link;\n};\nconst formatTime24 = (timeString)=>{\n const [hourString, minute] = timeString.split(\":\");\n const hour = +hourString % 24;\n return (hour % 12 || 12) + \":\" + minute + (hour < 12 ? \"AM\" : \"PM\");\n};\nconst truncateString = function(str) {\n let num = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 13;\n if (str.length <= num) {\n return str;\n }\n return str.slice(0, num) + \"...\";\n};\nconst isProd = ()=>\"production\" === \"production\";\nconst resolvedPublicPath = (path)=>isProd() ? \"/b/\".concat(path) : \"/\".concat(path);\nconst toSearchEngineFriendlyWords = (input)=>{\n return encodeURIComponent((0,lodash_es_kebabCase__WEBPACK_IMPORTED_MODULE_0__/* [\"default\"] */ .Z)((0,lodash_es_lowerCase__WEBPACK_IMPORTED_MODULE_1__/* [\"default\"] */ .Z)(input)));\n};\nconst generateSectionLabel = function(label, fallback) {\n let limit = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 13;\n if (!label) return fallback;\n return truncateString(label, limit);\n};\n\n\n\n/***/ })\n\n},\n/******/ function(__webpack_require__) { // webpackRuntimeModules\n/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }\n/******/ __webpack_require__.O(0, [574,832,564,774,888,179], function() { return __webpack_exec__(6141); });\n/******/ var __webpack_exports__ = __webpack_require__.O();\n/******/ _N_E = __webpack_exports__;\n/******/ }\n]);"],"names":["self","push","module","__unused_webpack_exports","__webpack_require__","exports","__unused_webpack_module","window","__NEXT_P","__webpack_exports__","r","d","Layout_Layout","jsx_runtime","react","head","head_default","n","script","script_default","dynamic","dynamic_default","next_seo_module","guard","low","high","value","Math","min","max","ColorError$1","Error","constructor","color","parseToRgba","trim","toLowerCase","normalizedColor","namedColorRegex","test","nameToHex","normalizedColorName","result","compressedColorMap","hash","str","i","length","charCodeAt","reducedHexMatch","reducedHexRegex","exec","arr","Array","from","slice","map","x","parseInt","hexMatch","hexRegex","rgbaMatch","rgbaRegex","parseFloat","hslaMatch","hslaRegex","h","s","l","a","hslToRgb","colorToInt","replace","split","reduce","acc","next","key","substring","hex","toString","prefix","amount","join","roundColor","round","hue","saturation","lightness","huePrime","chroma","abs","secondComponent","red","green","blue","lightnessModification","finalRed","finalGreen","finalBlue","transparentize","g","b","toFixed","hooks_useColorTheme","primaryColor","useEffect","root","document","documentElement","readablecolor","readableColorIsBlack","f","channel","pow","style","setProperty","utils","notifyManager","useSyncExternalStore","QueryClientProvider","dist","hooks_useSpinner","isFetching","useIsFetching","arg1","arg2","arg3","filters","options","I6","queryClient","NL","context","queryCache","getQueryCache","$","useCallback","onStoreChange","subscribe","V","batchCalls","toastId","Am","loading","position","dismiss","secretKey","encrypt","cipher","textToChars","text","c","byteHex","Number","substr","applySaltToChar","salt","code","decipher","encoded","match","String","fromCharCode","charCode","generateOGUrl","title","logoURL","param","JSON","stringify","useFetch","useSortWorkingHours","useTranslation","DOMAIN_URL","StoreJsonLd","_profile_phoneNumber","_profile_phoneNumber1","t","Z","data","businessProfile","jB","profile","location","locations","items","address","workingHours","review","reviews","service","services","images","coverImages","url","description","sorting","openingHours","useMemo","filter","time","opens","start","closes","end","dayOfWeek","author","concat","re","firstName","lastName","datePublished","publishedAt","reviewBody","comment","reviewRating","ratingValue","score","areas","geoMidpoint","latitude","loc","geoLocation","longitude","geoRadius","makesOffer","priceSpecification","type","priceCurrency","currency","name","price","se","itemOffered","jsx","wq","id","telephone","phoneNumber","countryCode","number","streetAddress","displayAddress","addressLocality","city","addressRegion","state","postalCode","addressCountry","country","geo","rating","rate","ratingCount","count","areaServed","utils_utils","GTM_ID","Header","Promise","all","e","then","bind","loadableGenerated","webpack","ssr","Layout","children","businessKey","hideHeaderFooter","headerProps","languages","cx","truncatedDesc","aS","languageAlternates","hrefLang","href","jsxs","Fragment","rel","sizes","dO","strategy","dangerouslySetInnerHTML","__html","PB","canonical","noindex","openGraph","width","height","alt","twitter","handle","site","cardType","className","src","display","visibility","memo","fetchBusinessProfile","useBusinessProfile","useProvider","useReviews","useServices","useQuery","useInfiniteQuery","lib_axios","axios_axios","create","baseURL","index_query","PAGINATE_LIMIT","fetchReviews","slug","pageParam","arguments","limit","res","get","fetchServices","fetchProviders","fetchAllServices","offset","hasNext","axios","console","log","fields","req","o","publicProfile","refetchOnMount","refetchOnWindowFocus","refetchOnReconnect","refetchIntervalInBackground","N","getNextPageParam","lastPage","pages","react__WEBPACK_IMPORTED_MODULE_0__","times","Object","entries","forEach","day","sorter","monday","tuesday","wednesday","thursday","friday","saturday","sunday","sort","day1","day2","__N_SSG","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","next_image__WEBPACK_IMPORTED_MODULE_1__","next_image__WEBPACK_IMPORTED_MODULE_1___default","containers_Layout_Layout__WEBPACK_IMPORTED_MODULE_2__","utils_utils__WEBPACK_IMPORTED_MODULE_3__","Custom404","priority","queries","businessProfileKeys","no","kR","isProd","generateSocialShare","toSearchEngineFriendlyWords","getNameOfDay","generateSectionLabel","formatTime24","generateBookingURL","truncateString","resolvedPublicPath","lodash_es_lowerCase__WEBPACK_IMPORTED_MODULE_1__","lodash_es_kebabCase__WEBPACK_IMPORTED_MODULE_0__","Date","days","getDay","uniqueIdentifier","locale","link","businessName","hourString","minute","timeString","hour","num","path","encodeURIComponent","input","label","fallback","O","_N_E"],"sourceRoot":""}