UNPKG

@wordpress/edit-post

Version:
8 lines (7 loc) 912 B
{ "version": 3, "sources": ["../../src/utils/meta-boxes.js"], "sourcesContent": ["/**\n * Function returning the current Meta Boxes DOM Node in the editor\n * whether the meta box area is opened or not.\n * If the MetaBox Area is visible returns it, and returns the original container instead.\n *\n * @param {string} location Meta Box location.\n *\n * @return {string} HTML content.\n */\nexport const getMetaBoxContainer = ( location ) => {\n\tconst area = document.querySelector(\n\t\t`.edit-post-meta-boxes-area.is-${ location } .metabox-location-${ location }`\n\t);\n\tif ( area ) {\n\t\treturn area;\n\t}\n\n\treturn document.querySelector( '#metaboxes .metabox-location-' + location );\n};\n"], "mappings": ";AASO,IAAM,sBAAsB,CAAE,aAAc;AAClD,QAAM,OAAO,SAAS;AAAA,IACrB,iCAAkC,QAAS,sBAAuB,QAAS;AAAA,EAC5E;AACA,MAAK,MAAO;AACX,WAAO;AAAA,EACR;AAEA,SAAO,SAAS,cAAe,kCAAkC,QAAS;AAC3E;", "names": [] }