{"version":3,"file":"createFullscreenId.cjs","names":["_createUniqueId","require","createFullscreenId","createUniqueId","exports","getFullscreenElementId","fullscreenId"],"sources":["../../../../src/message-bus/fullscreen/createFullscreenId.ts"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { createUniqueId } from \"../../createUniqueId.js\";\n\n/**\n * Create a new fullscreen id that's unique across every app on the page. Each app bundles its own copy of Odyssey, so a prefix keeps these ids apart from other `createUniqueId` values in the same document.\n */\nexport const createFullscreenId = () =>\n  `odyssey-fullscreen-${createUniqueId()}`;\n\n/**\n * The HTML `id` of the element that fills the screen for a fullscreen id. Deterministic, so a `FullscreenButton` anywhere on the page can point `aria-controls` at the region it controls without being handed an element.\n */\nexport const getFullscreenElementId = ({\n  fullscreenId,\n}: {\n  fullscreenId: string;\n}) => `${fullscreenId}-element`;\n"],"mappings":";;;;;;AAYA,IAAAA,eAAA,GAAAC,OAAA;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAOO,MAAMC,kBAAkB,GAAGA,CAAA,KAChC,sBAAsB,IAAAC,8BAAc,EAAC,CAAC,EAAE;AAACC,OAAA,CAAAF,kBAAA,GAAAA,kBAAA;AAKpC,MAAMG,sBAAsB,GAAGA,CAAC;EACrCC;AAGF,CAAC,KAAK,GAAGA,YAAY,UAAU;AAACF,OAAA,CAAAC,sBAAA,GAAAA,sBAAA","ignoreList":[]}