\r\n\t\t\t\t\t\r\n\t\t\t\t)}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t setIsPopoverOpen(true)}\r\n\t\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t>\r\n\t);\r\n};\r\n\r\nregisterFormatType(formatName, {\r\n\ttitle: __(\"Notes de bas de page\", \"carhop-format-types\"),\r\n\ttagName: \"a\",\r\n\tattributes: {\r\n\t\tdataFootnoteContent: \"data-footnote-content\",\r\n\t},\r\n\tclassName: \"footnote-reference\",\r\n\tedit: FootnoteFormatButton,\r\n});\r\n","// extracted by mini-css-extract-plugin\nexport {};","import { __ } from \"@wordpress/i18n\";\r\nimport { registerFormatType, toggleFormat } from \"@wordpress/rich-text\";\r\n\r\nimport { RichTextToolbarButton, BlockControls } from \"@wordpress/block-editor\";\r\nimport { ToolbarGroup, ToolbarButton } from \"@wordpress/components\";\r\n\r\nimport { textColor } from \"@wordpress/icons\";\r\nimport { useSelect } from \"@wordpress/data\";\r\n\r\nimport \"./uppercased-small-title.css\";\r\n\r\nconst formatName = \"carhop-format/uppercased-small-title\";\r\n\r\nconst UppercasedSmallTitleFormatButton = (props) => {\r\n\tconst { isActive, value, onChange } = props;\r\n\r\n\tfunction toggleUppercasedSmallTitle() {\r\n\t\tonChange(\r\n\t\t\ttoggleFormat(value, {\r\n\t\t\t\ttype: formatName,\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n\r\n\t// Vérifier si on est dans un article (post type 'post')\r\n\tconst postType = useSelect((select) => {\r\n\t\treturn select(\"core/editor\")?.getCurrentPostType();\r\n\t}, []);\r\n\r\n\t// Ne pas afficher le bouton si ce n'est pas un article\r\n\tif (postType !== \"page\") {\r\n\t\treturn null;\r\n\t}\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n};\r\n\r\nregisterFormatType(formatName, {\r\n\ttitle: __(\"Petit titre en majuscules\", \"carhop-format-types\"),\r\n\ttagName: \"span\",\r\n\tclassName: \"uppercased-small-title\",\r\n\tedit: UppercasedSmallTitleFormatButton,\r\n});\r\n","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","module.exports = window[\"wp\"][\"richText\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\r\n * Carhop Format Types\r\n *\r\n * Point d'entrée principal qui importe tous les format types personnalisés\r\n */\r\n\r\n// Import all format types\r\nimport \"./footnotes/footnote.js\";\r\nimport \"./uppercased-small-title/uppercased-small-title.js\";\r\n"],"names":["__","registerFormatType","toggleFormat","applyFormat","getActiveFormats","BlockControls","__experimentalLinkControl","LinkControl","Popover","ToolbarGroup","ToolbarButton","TextControl","TextareaControl","Button","trash","customPostType","useState","useSelect","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","formatName","FootnoteFormatButton","props","isActive","value","onChange","isPopoverOpen","setIsPopoverOpen","postType","select","getCurrentPostType","activeFormat","filter","format","type","handleFootnoteContentChange","setFormat","removeFormat","footnoteContent","attributes","dataFootnoteContent","children","onClose","className","__nextHasNoMarginBottom","__next40pxDefaultSize","label","variant","onClick","isDestructive","icon","isPressed","title","tagName","edit","RichTextToolbarButton","textColor","UppercasedSmallTitleFormatButton","toggleUppercasedSmallTitle"],"sourceRoot":""}
\ No newline at end of file