PromoCursed/node_modules/.cache/babel-loader/907b848e8822f4560625b6ee0d020bf1b9f7f522d97476a4aee4ea85fad8ddba.json
2024-08-20 23:25:37 +04:00

1 line
1.6 KiB
JSON

{"ast":null,"code":"import * as React from 'react';\nexport var IdContext = /*#__PURE__*/React.createContext(null);\nexport function getMenuId(uuid, eventKey) {\n if (uuid === undefined) {\n return null;\n }\n return \"\".concat(uuid, \"-\").concat(eventKey);\n}\n\n/**\n * Get `data-menu-id`\n */\nexport function useMenuId(eventKey) {\n var id = React.useContext(IdContext);\n return getMenuId(id, eventKey);\n}","map":{"version":3,"names":["React","IdContext","createContext","getMenuId","uuid","eventKey","undefined","concat","useMenuId","id","useContext"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/rc-menu/es/context/IdContext.js"],"sourcesContent":["import * as React from 'react';\nexport var IdContext = /*#__PURE__*/React.createContext(null);\nexport function getMenuId(uuid, eventKey) {\n if (uuid === undefined) {\n return null;\n }\n return \"\".concat(uuid, \"-\").concat(eventKey);\n}\n\n/**\n * Get `data-menu-id`\n */\nexport function useMenuId(eventKey) {\n var id = React.useContext(IdContext);\n return getMenuId(id, eventKey);\n}"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAO,IAAIC,SAAS,GAAG,aAAaD,KAAK,CAACE,aAAa,CAAC,IAAI,CAAC;AAC7D,OAAO,SAASC,SAASA,CAACC,IAAI,EAAEC,QAAQ,EAAE;EACxC,IAAID,IAAI,KAAKE,SAAS,EAAE;IACtB,OAAO,IAAI;EACb;EACA,OAAO,EAAE,CAACC,MAAM,CAACH,IAAI,EAAE,GAAG,CAAC,CAACG,MAAM,CAACF,QAAQ,CAAC;AAC9C;;AAEA;AACA;AACA;AACA,OAAO,SAASG,SAASA,CAACH,QAAQ,EAAE;EAClC,IAAII,EAAE,GAAGT,KAAK,CAACU,UAAU,CAACT,SAAS,CAAC;EACpC,OAAOE,SAAS,CAACM,EAAE,EAAEJ,QAAQ,CAAC;AAChC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}