{"version":3,"file":"index.js","sources":["../../src/services/SmartProfile/defines.ts","../../src/services/SmartProfile/index.ts","../../src/providers/AnalyticsProvider.tsx","../../src/hooks/useAnalytics.tsx","../../node_modules/@react-aria/toggle/dist/import.mjs","../../node_modules/@react-aria/checkbox/dist/import.mjs","../../src/ui/Icon/CheckBox.tsx","../../src/ui/Icon/CheckBoxChecked.tsx","../../src/ui/Checkbox/Checkbox.tsx","../../node_modules/zustand/esm/vanilla.mjs","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js","../../node_modules/use-sync-external-store/shim/with-selector.js","../../node_modules/zustand/esm/index.mjs"],"sourcesContent":["/* Variables definition */\r\nexport const sp_hid = {\r\n acpm: import.meta.env.VITE_SP_ACPM_HID,\r\n stats: import.meta.env.VITE_SP_STATS_HID,\r\n clics: import.meta.env.VITE_SP_CLICS_HID,\r\n contact: import.meta.env.VITE_SP_CONTACT_HID,\r\n};\r\n\r\nexport const _spURL = import.meta.env.VITE_SP_URL;\r\nexport const _spURL_acpm = import.meta.env.VITE_SP_URL_ACPM;\r\n// var sp_tracking_consent = 0; /* no consent by default */\r\n\r\nexport const sp_credentials = {\r\n login: import.meta.env.VITE_SP_EMAIL,\r\n profil: import.meta.env.VITE_SP_EMAIL,\r\n sessionId: import.meta.env.VITE_SP_SESSION_ID,\r\n};\r\n","import * as sp_settings from \"./defines\";\r\n\r\n/* tracker js pour smartProfile */\r\nconst SmartProfile = (function () {\r\n const _spURL = sp_settings._spURL;\r\n\r\n /* private stuff */\r\n const generateID = function () {\r\n return (\r\n \"\" +\r\n new Date().getTime().toString(16) +\r\n Math.floor(1e7 * Math.random()).toString(16) +\r\n Math.floor(1e7 * Math.random()).toString(16)\r\n );\r\n };\r\n\r\n const getDomain = function () {\r\n return encodeURIComponent(window.location.protocol + \"//\" + window.location.hostname);\r\n };\r\n\r\n const getTimezoneOffset = function () {\r\n const _ctz = new Date().getTimezoneOffset();\r\n return Math.round((_ctz == new Date(20010101).getTimezoneOffset() ? _ctz : _ctz + 60) / -60);\r\n };\r\n\r\n const getViewportSize = function () {\r\n let _w, _h;\r\n if (window.innerWidth !== undefined && window.innerHeight !== undefined) {\r\n _w = window.innerWidth;\r\n _h = window.innerHeight;\r\n } else {\r\n _w = document.documentElement.clientWidth;\r\n _h = document.documentElement.clientHeight;\r\n }\r\n\r\n if (_w !== undefined) {\r\n return _w + \"x\" + _h;\r\n }\r\n\r\n return \"n/a\";\r\n };\r\n\r\n const getUrlParamValue = function (param: any) {\r\n const qs = window.location.search.substring(1);\r\n const vars = qs.split(\"&\");\r\n for (const element of vars) {\r\n const pair = element.split(\"=\");\r\n if (pair[0].toLowerCase() == param.toLowerCase()) {\r\n const _val = pair[1].split(\"#\");\r\n return _val[0];\r\n }\r\n }\r\n return \"\";\r\n };\r\n const setCookie = function (_name: string, _value: string, _expireInDays: number) {\r\n const _expireDate = new Date();\r\n _expireDate.setTime(_expireDate.getTime() + _expireInDays * 24 * 60 * 60 * 1000);\r\n document.cookie =\r\n _name +\r\n \"=\" +\r\n (encodeURIComponent(_value) || \"\") +\r\n (_expireInDays ? \";expires=\" + _expireDate.toUTCString() : \"\") +\r\n \"; path=/; SameSite=None\";\r\n };\r\n const getCookie = function (_name: string) {\r\n const nameEQ = _name + \"=\";\r\n const ca = document.cookie.split(\";\");\r\n for (const element of ca) {\r\n let c = element;\r\n\r\n while (c.charAt(0) == \" \") {\r\n c = c.substring(1, c.length);\r\n }\r\n\r\n if (c.indexOf(nameEQ) == 0) {\r\n return c.substring(nameEQ.length, c.length);\r\n }\r\n }\r\n\r\n return null;\r\n };\r\n\r\n const getSPCookie = function () {\r\n const cVal = getCookie(\"sp_i\");\r\n const _ckValue = cVal ? cVal : generateID();\r\n setCookie(\"sp_i\", _ckValue, 395);\r\n return _ckValue;\r\n };\r\n\r\n const _params = {\r\n _consent: 0,\r\n _hid: \"\",\r\n _sp_url: _spURL,\r\n _cr: new Date().getTime(),\r\n _ck: navigator.cookieEnabled ? 1 : 0,\r\n _ua: navigator.userAgent,\r\n _fv: -1,\r\n _dom: getDomain(),\r\n _title: encodeURIComponent(document.title),\r\n _res: window.screen ? screen.width + \"x\" + screen.height : \"n/a\",\r\n _col: window.screen ? screen.colorDepth : \"n/a\",\r\n _vp: getViewportSize(),\r\n _tz: getTimezoneOffset(),\r\n _h: \"\",\r\n _fp: getSPCookie(),\r\n _event: \"\",\r\n _sp_con: \"\",\r\n _utm_campaign: \"\",\r\n _utm_source: \"\",\r\n _utm_medium: \"\",\r\n _utm_content: \"\",\r\n _ready: false,\r\n };\r\n const getH = function (_hid: string) {\r\n const _qs =\r\n \"?action=getH&_hid=\" + _hid + \"&_res=\" + _params._res + \"&_col=\" + _params._col + \"&_tz=\" + _params._tz;\r\n fetch(_params._sp_url + _qs)\r\n .then(function (response) {\r\n if (response.ok) {\r\n return response.json();\r\n }\r\n })\r\n .then(function (_json) {\r\n _params._h = _json.h;\r\n _params._ready = true;\r\n });\r\n };\r\n\r\n /* public part */\r\n return {\r\n isReady: function () {\r\n return _params._ready;\r\n },\r\n getHash: function (_hid: string) {\r\n getH(_hid);\r\n },\r\n doTrackClick: function (\r\n ctyp: string,\r\n clab: string,\r\n cfrom: string,\r\n cto: string,\r\n hid: string,\r\n cst: any,\r\n site: string\r\n ) {\r\n let sp = new Array();\r\n sp[0] = \"?_hid=\" + hid;\r\n sp[1] = \"&_ctyp=\" + ctyp;\r\n sp[2] = \"&_clab=\" + clab;\r\n sp[3] = \"&_cfrom=\" + cfrom;\r\n sp[4] = \"&_cto=\" + cto;\r\n\r\n if (typeof site !== \"undefined\" && site != \"\") {\r\n sp[5] = \"&_site=\" + site;\r\n }\r\n this.doTrack(sp, \"\", cst, \"\");\r\n },\r\n doTrack: function (sp: any, ci: string, cst: any, spURL: string) {\r\n const _spURL = typeof spURL !== \"undefined\" && spURL != \"\" ? spURL : _params._sp_url;\r\n\r\n let smartParam = \"\";\r\n _params._consent = typeof cst !== \"undefined\" ? cst : 0;\r\n\r\n for (const element of sp) {\r\n if (!_params._consent) {\r\n const _crit = element.trim().substr(1, 5);\r\n if (_crit != \"login\") {\r\n smartParam += element;\r\n } else {\r\n localStorage.removeItem(\"smartProfileLogin\");\r\n }\r\n } else {\r\n smartParam += element;\r\n }\r\n }\r\n\r\n if (ci != \"\") {\r\n smartParam += \"&_ci=\" + ci;\r\n }\r\n\r\n smartParam +=\r\n \"&_cr=\" +\r\n Math.round(Math.random() * 1000000000000000) +\r\n \"&_fv=\" +\r\n encodeURIComponent(_params._fv) +\r\n \"&_dom=\" +\r\n encodeURIComponent(window.location.protocol + \"//\" + window.location.hostname) +\r\n \"&_ref=\" +\r\n encodeURIComponent(document.referrer.substring(0, 254)) +\r\n \"&_res=\" +\r\n encodeURIComponent(_params._res) +\r\n \"&_col=\" +\r\n encodeURIComponent(_params._col) +\r\n \"&_url=\" +\r\n encodeURIComponent(window.location.href) +\r\n \"&_vp=\" +\r\n _params._vp +\r\n \"&_tz=\" +\r\n _params._tz +\r\n \"&_ck=\" +\r\n _params._ck +\r\n \"&_fp=\" +\r\n _params._fp +\r\n \"&_optin=\" +\r\n _params._consent +\r\n \"&_event=\" +\r\n encodeURIComponent(getUrlParamValue(\"event\")) +\r\n \"&_sp_con=\" +\r\n encodeURIComponent(getUrlParamValue(\"sp_con\")) +\r\n \"&utm_campaign=\" +\r\n encodeURIComponent(getUrlParamValue(\"utm_campaign\")) +\r\n \"&utm_source=\" +\r\n encodeURIComponent(getUrlParamValue(\"utm_source\")) +\r\n \"&utm_medium=\" +\r\n encodeURIComponent(getUrlParamValue(\"utm_medium\")) +\r\n \"&utm_content=\" +\r\n encodeURIComponent(getUrlParamValue(\"utm_content\"));\r\n\r\n const smartImageF = new Image();\r\n smartImageF.src = _spURL + smartParam;\r\n },\r\n };\r\n})();\r\n\r\nexport default SmartProfile;\r\n","import { ReactNode, SetStateAction, Dispatch, createContext, useState } from \"react\";\r\nimport SmartProfile from \"~/services/SmartProfile\";\r\nimport { sp_hid, sp_credentials } from \"~/services/SmartProfile/defines\";\r\n\r\ninterface AnalyticsSettings {\r\n service: any;\r\n service_ids: any;\r\n credentials: any;\r\n user_consent: boolean;\r\n set_consent: Dispatch>;\r\n}\r\n\r\nexport const AnalyticsContext = createContext({\r\n service: null,\r\n service_ids: {},\r\n credentials: {},\r\n user_consent: false,\r\n set_consent: () => {},\r\n});\r\n\r\nconst AnalyticsProvider = ({ children }: { children: ReactNode }) => {\r\n const [consent, setConsent] = useState(document.cookie.includes(\"consent_track=true\"));\r\n\r\n const smartProfileSettings = {\r\n service: SmartProfile,\r\n service_ids: sp_hid,\r\n credentials: sp_credentials,\r\n user_consent: consent,\r\n set_consent: setConsent,\r\n };\r\n\r\n return {children};\r\n};\r\n\r\nexport default AnalyticsProvider;\r\n","import { useContext } from \"react\";\r\nimport { AnalyticsContext } from \"~/providers/AnalyticsProvider\";\r\n\r\nconst useAnalytics = () => {\r\n const {\r\n service: sp_trackerv3,\r\n user_consent: sp_tracking_consent,\r\n service_ids: sp_hid,\r\n credentials: smartProfileLoginParams,\r\n } = useContext(AnalyticsContext);\r\n\r\n const siteName = import.meta.env.VITE_SITE_NAME;\r\n const consent = import.meta.env.VITE_SP_ENABLED === \"true\" && sp_tracking_consent;\r\n\r\n function sp_track_contact(_sp_params: any) {\r\n // smartProfileLoginParams init in base.html\r\n // use php sessionId in smartProfileLogin so we could send the login request for every new user session\r\n if (!consent) return;\r\n\r\n if (\r\n sp_tracking_consent &&\r\n smartProfileLoginParams?.login &&\r\n localStorage.getItem(\"smartProfileLogin\") !== smartProfileLoginParams?.sessionId\r\n ) {\r\n _sp_params[\"login\"] = smartProfileLoginParams.login;\r\n _sp_params[\"EMAIL1\"] = smartProfileLoginParams.login;\r\n _sp_params[\"PROFIL1\"] = smartProfileLoginParams.profil;\r\n sp_track_params(_sp_params, \"contact\");\r\n localStorage.setItem(\"smartProfileLogin\", smartProfileLoginParams.sessionId);\r\n delete _sp_params[\"login\"];\r\n }\r\n if (!smartProfileLoginParams?.login && localStorage.getItem(\"smartProfileLogin\")) {\r\n localStorage.removeItem(\"smartProfileLogin\");\r\n }\r\n }\r\n\r\n function sp_set_hids(_hids: any) {\r\n if (typeof _hids == \"object\") {\r\n for (const key of Object.keys(_hids)) {\r\n sp_hid[key] = _hids[key];\r\n }\r\n }\r\n }\r\n\r\n /*\r\n function sp_track_acpm() {\r\n const _consent = sp_tracking_consent,\r\n _ci = \"\";\r\n\r\n if (!sp_tracking_consent) {\r\n return;\r\n }\r\n\r\n let spParams = [\"?_hid=\" + sp_hid[\"acpm\"]];\r\n\r\n if (isMobileOrTablet()) {\r\n spParams.push(\"&_site=Site Mobile\");\r\n } else {\r\n spParams.push(\"&_site=Site Desktop\");\r\n }\r\n\r\n spParams.push(\"&_title=\" + getTitle());\r\n\r\n sp_trackerv3.doTrack(spParams, _ci, _consent, _spURL_acpm);\r\n }\r\n */\r\n\r\n function sp_track_params(_sp_params: any, _sp_hid_name: string) {\r\n if (!consent) return;\r\n\r\n const _consent = sp_tracking_consent,\r\n _ci = \"\";\r\n\r\n let spParams = [];\r\n\r\n if (typeof _sp_hid_name !== \"undefined\" && _sp_hid_name != \"\") {\r\n spParams.push(\"?_hid=\" + sp_hid[_sp_hid_name]);\r\n } else {\r\n spParams.push(\"?_hid=\" + sp_hid[\"stats\"]);\r\n }\r\n spParams.push(\"&_site=\" + siteName);\r\n\r\n if (typeof _sp_params !== \"undefined\") {\r\n if (typeof _sp_params.length !== \"undefined\") {\r\n for (const param of _sp_params) {\r\n spParams.push(\"&\" + param);\r\n }\r\n } else if (typeof _sp_params == \"object\") {\r\n for (const key of Object.keys(_sp_params)) {\r\n spParams.push(\"&\" + key + \"=\" + encodeURIComponent(_sp_params[key]));\r\n }\r\n }\r\n }\r\n sp_trackerv3.doTrack(spParams, _ci, _consent);\r\n }\r\n\r\n function sp_click(_ctyp: string, _clab: string, _cfrom: string, _cto: string, _sp_params: any) {\r\n if (!consent) return;\r\n const _consent = sp_tracking_consent,\r\n _ci = \"\";\r\n\r\n let spParams = [\"?_hid=\" + sp_hid[\"clics\"]];\r\n\r\n spParams.push(\"&_site=\" + siteName);\r\n spParams.push(\"&_ctyp=\" + encodeURIComponent(_ctyp));\r\n spParams.push(\"&_clab=\" + encodeURIComponent(_clab));\r\n spParams.push(\"&_cfrom=\" + encodeURIComponent(_cfrom));\r\n spParams.push(\"&_cto=\" + encodeURIComponent(_cto));\r\n\r\n if (_sp_params && typeof _sp_params !== \"undefined\") {\r\n if (typeof _sp_params.length !== \"undefined\") {\r\n for (const param of _sp_params) {\r\n spParams.push(\"&\" + param);\r\n }\r\n } else if (typeof _sp_params == \"object\") {\r\n for (const key of Object.keys(_sp_params)) {\r\n spParams.push(\"&\" + key + \"=\" + encodeURIComponent(_sp_params[key]));\r\n }\r\n }\r\n }\r\n\r\n sp_trackerv3.doTrack(spParams, _ci, _consent);\r\n }\r\n\r\n return {\r\n sp_track_contact,\r\n sp_set_hids,\r\n // sp_track_acpm,\r\n sp_track_params,\r\n sp_click,\r\n };\r\n};\r\n\r\nexport default useAnalytics;\r\n","import {mergeProps as $7CUUz$mergeProps, filterDOMProps as $7CUUz$filterDOMProps, useFormReset as $7CUUz$useFormReset} from \"@react-aria/utils\";\nimport {useFocusable as $7CUUz$useFocusable} from \"@react-aria/focus\";\nimport {usePress as $7CUUz$usePress} from \"@react-aria/interactions\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ /*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nfunction $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {\n let { isDisabled: isDisabled = false, isReadOnly: isReadOnly = false, value: value, name: name, children: children, \"aria-label\": ariaLabel, \"aria-labelledby\": ariaLabelledby, validationState: validationState = \"valid\", isInvalid: isInvalid } = props;\n let onChange = (e)=>{\n // since we spread props on label, onChange will end up there as well as in here.\n // so we have to stop propagation at the lowest level that we care about\n e.stopPropagation();\n state.setSelected(e.target.checked);\n };\n let hasChildren = children != null;\n let hasAriaLabel = ariaLabel != null || ariaLabelledby != null;\n if (!hasChildren && !hasAriaLabel) console.warn(\"If you do not provide children, you must specify an aria-label for accessibility\");\n // This handles focusing the input on pointer down, which Safari does not do by default.\n let { pressProps: pressProps, isPressed: isPressed } = (0, $7CUUz$usePress)({\n isDisabled: isDisabled\n });\n // iOS does not toggle checkboxes if you drag off and back onto the label, so handle it ourselves.\n let { pressProps: labelProps, isPressed: isLabelPressed } = (0, $7CUUz$usePress)({\n isDisabled: isDisabled || isReadOnly,\n onPress () {\n state.toggle();\n }\n });\n let { focusableProps: focusableProps } = (0, $7CUUz$useFocusable)(props, ref);\n let interactions = (0, $7CUUz$mergeProps)(pressProps, focusableProps);\n let domProps = (0, $7CUUz$filterDOMProps)(props, {\n labelable: true\n });\n (0, $7CUUz$useFormReset)(ref, state.isSelected, state.setSelected);\n return {\n labelProps: (0, $7CUUz$mergeProps)(labelProps, {\n onClick: (e)=>e.preventDefault()\n }),\n inputProps: (0, $7CUUz$mergeProps)(domProps, {\n \"aria-invalid\": isInvalid || validationState === \"invalid\" || undefined,\n \"aria-errormessage\": props[\"aria-errormessage\"],\n \"aria-controls\": props[\"aria-controls\"],\n \"aria-readonly\": isReadOnly || undefined,\n onChange: onChange,\n disabled: isDisabled,\n ...value == null ? {} : {\n value: value\n },\n name: name,\n type: \"checkbox\",\n ...interactions\n }),\n isSelected: state.isSelected,\n isPressed: isPressed || isLabelPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid || validationState === \"invalid\"\n };\n}\n\n\n\n\nexport {$d2c8e2b0480f3f34$export$cbe85ee05b554577 as useToggle};\n//# sourceMappingURL=module.js.map\n","import {useEffect as $cKEhs$useEffect, useRef as $cKEhs$useRef} from \"react\";\nimport {useFormValidation as $cKEhs$useFormValidation} from \"@react-aria/form\";\nimport {useFormValidationState as $cKEhs$useFormValidationState, DEFAULT_VALIDATION_RESULT as $cKEhs$DEFAULT_VALIDATION_RESULT, privateValidationStateProp as $cKEhs$privateValidationStateProp} from \"@react-stately/form\";\nimport {useToggle as $cKEhs$useToggle} from \"@react-aria/toggle\";\nimport {filterDOMProps as $cKEhs$filterDOMProps, mergeProps as $cKEhs$mergeProps} from \"@react-aria/utils\";\nimport {useField as $cKEhs$useField} from \"@react-aria/label\";\nimport {useFocusWithin as $cKEhs$useFocusWithin} from \"@react-aria/interactions\";\nimport {useToggleState as $cKEhs$useToggleState} from \"@react-stately/toggle\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ /*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nfunction $406796ff087fe49b$export$e375f10ce42261c5(props, state, inputRef) {\n // Create validation state here because it doesn't make sense to add to general useToggleState.\n let validationState = (0, $cKEhs$useFormValidationState)({\n ...props,\n value: state.isSelected\n });\n let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = validationState.displayValidation;\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isPressed: isPressed, isDisabled: isDisabled, isReadOnly: isReadOnly } = (0, $cKEhs$useToggle)({\n ...props,\n isInvalid: isInvalid\n }, state, inputRef);\n (0, $cKEhs$useFormValidation)(props, validationState, inputRef);\n let { isIndeterminate: isIndeterminate, isRequired: isRequired, validationBehavior: validationBehavior = \"aria\" } = props;\n (0, $cKEhs$useEffect)(()=>{\n // indeterminate is a property, but it can only be set via javascript\n // https://css-tricks.com/indeterminate-checkboxes/\n if (inputRef.current) inputRef.current.indeterminate = !!isIndeterminate;\n });\n return {\n labelProps: labelProps,\n inputProps: {\n ...inputProps,\n checked: isSelected,\n \"aria-required\": isRequired && validationBehavior === \"aria\" || undefined,\n required: isRequired && validationBehavior === \"native\"\n },\n isSelected: isSelected,\n isPressed: isPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ /*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $1ae600c947479353$export$ec98120685d4f57d = new WeakMap();\n\n\n\n\n\nfunction $1e9fce0cfacc738b$export$49ff6f28c54f1cbe(props, state) {\n let { isDisabled: isDisabled, name: name, validationBehavior: validationBehavior = \"aria\" } = props;\n let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = state.displayValidation;\n let { labelProps: labelProps, fieldProps: fieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $cKEhs$useField)({\n ...props,\n // Checkbox group is not an HTML input element so it\n // shouldn't be labeled by a