Version: 1.0.01.0.11.0.21.0.31.0.42.0.02.0.12.0.22.0.32.1.02.1.13.0.03.0.13.0.23.1.03.1.13.1.23.1.33.1.43.1.53.1.63.1.73.1.83.1.93.1.103.1.113.1.123.1.133.2.03.3.03.3.13.3.23.3.33.3.43.3.53.3.63.3.73.3.83.3.93.3.123.3.133.4.03.5.03.6.03.7.03.8.03.8.13.8.23.8.33.8.43.8.53.8.63.8.73.8.93.8.103.8.113.8.123.8.133.9.03.10.03.11.03.12.03.13.03.13.13.13.23.13.33.13.43.13.53.13.63.13.73.13.83.13.93.13.103.13.113.13.123.13.133.14.03.15.03.15.13.16.03.17.03.18.03.19.03.19.1-rc.03.20.03.21.03.21.13.21.23.21.33.21.43.21.53.21.63.21.73.21.83.21.93.21.103.21.113.21.123.22.03.23.03.24.03.24.13.24.23.24.33.25.03.25.13.25.23.25.33.25.43.25.53.25.63.25.73.25.83.25.93.25.103.25.113.26.03.26.13.26.2-next.03.26.2-next.13.26.23.26.33.26.43.26.53.26.63.26.73.26.83.26.93.26.103.26.113.26.123.26.133.26.143.26.153.26.163.27.03.27.1-next.53e2173694.03.27.1-next.5c9849e156.03.27.1-next.645224df70.03.27.13.27.2-next.a2b36aa19d.03.27.23.27.34.0.04.1.04.1.14.1.24.1.34.1.44.1.54.1.64.1.74.1.84.1.94.1.104.1.114.1.124.1.134.1.144.1.154.1.164.1.174.1.194.1.204.1.214.1.224.1.234.2.05.0.05.0.1-next.253d9b6e21.05.0.1-next.5df0cd52b7.05.0.15.0.25.0.35.0.45.0.55.0.65.0.75.0.85.0.95.0.105.0.115.0.125.0.135.0.145.0.155.0.165.0.175.0.18-next.33ec3857e2.05.0.185.0.195.0.205.0.215.0.225.0.245.0.255.0.265.0.275.0.285.0.295.0.305.0.315.1.06.0.06.0.1-next.f435e9e01b.06.0.16.0.26.0.3-next.a55ed9455a.06.1.0-next.e230fbab09.06.1.06.1.16.2.06.3.06.3.16.3.26.3.36.3.46.3.56.3.66.3.76.3.86.3.96.3.106.3.116.3.126.3.136.3.146.3.156.3.166.3.176.3.186.4.06.5.06.6.06.7.06.8.06.9.06.10.06.11.06.12.06.12.1-next.d6164808d3.06.13.06.13.1-next.957ca95e4c.06.14.06.14.16.14.26.14.36.14.46.14.56.14.66.14.76.14.86.14.96.14.106.14.116.14.126.14.136.14.146.15.06.15.1-next.4d3b314fd5.06.16.06.17.06.18.06.19.07.0.07.1.07.2.07.3.07.3.17.3.27.3.37.3.47.3.57.3.67.3.77.3.87.3.97.3.107.3.117.3.127.3.137.3.147.3.157.4.07.5.07.6.07.7.07.8.07.9.07.10.07.11.07.12.07.12.17.12.27.12.37.12.47.12.57.12.67.12.77.12.87.12.97.12.107.12.117.12.127.12.137.12.147.12.157.12.167.12.177.12.187.12.197.13.07.14.07.15.07.16.07.17.07.17.17.18.07.18.1-next.5a1d1283.07.19.07.19.17.19.27.19.37.19.47.19.57.19.67.19.77.19.87.19.97.19.107.19.117.19.127.19.137.19.147.19.157.19.167.19.177.20.07.20.17.21.07.21.1-next.f8d8eceb.07.22.07.23.07.24.07.24.17.25.07.26.07.26.1-next.79a6196f.07.27.07.27.17.27.27.28.07.28.17.28.27.28.37.28.47.28.57.28.67.28.77.28.87.28.97.28.107.28.117.29.07.30.07.31.07.32.07.33.07.34.0
/**
* Function returning the current Meta Boxes DOM Node in the editor
* whether the meta box area is opened or not.
* If the MetaBox Area is visible returns it, and returns the original container instead.
*
* @param {string} location Meta Box location.
* @return {string} HTML content.
*/
export const getMetaBoxContainer = ( location ) => {
const area = document.querySelector( `.edit-post-meta-boxes-area.is-${ location } .metabox-location-${ location }` );
if ( area ) {
return area;
}
return document.querySelector( '#metaboxes .metabox-location-' + location );
};