{"version":3,"file":"select-label-text.mjs","names":[],"sources":["../../../src/navigation-link/shared/select-label-text.js"],"sourcesContent":["/**\n * Focus the Link label text and select it.\n *\n * @param {Object} ref React ref object pointing to the label element.\n */\nexport function selectLabelText( ref ) {\n\tref.current.focus();\n\tconst { ownerDocument } = ref.current;\n\tconst { defaultView } = ownerDocument;\n\tconst selection = defaultView.getSelection();\n\tconst range = ownerDocument.createRange();\n\t// Get the range of the current ref contents so we can add this range to the selection.\n\trange.selectNodeContents( ref.current );\n\tselection.removeAllRanges();\n\tselection.addRange( range );\n}\n"],"mappings":";;;;;;AAKA,SAAgB,gBAAiB,KAAM;CACtC,IAAI,QAAQ,MAAM;CAClB,MAAM,EAAE,kBAAkB,IAAI;CAC9B,MAAM,EAAE,gBAAgB;CACxB,MAAM,YAAY,YAAY,aAAa;CAC3C,MAAM,QAAQ,cAAc,YAAY;CAExC,MAAM,mBAAoB,IAAI,OAAQ;CACtC,UAAU,gBAAgB;CAC1B,UAAU,SAAU,KAAM;AAC3B"}