(()=>{var e={184:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function l(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=l.apply(null,r);a&&e.push(a)}}else if("object"===o){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}}return e.join(" ")}e.exports?(l.default=l,e.exports=l):void 0===(r=function(){return l}.apply(t,[]))||(e.exports=r)}()}},t={};function r(n){var l=t[n];if(void 0!==l)return l.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.blocks;function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}const n=window.wp.element;var l=r(184),o=r.n(l);const a=window.wp.i18n,i=window.wp.blockEditor,s=JSON.parse('{"u2":"pmpro/single-level-name"}');(0,e.registerBlockType)(s.u2,{icon:{background:"#FFFFFF",foreground:"#1A688B",src:"heading"},edit:function(e){const{attributes:{textAlign:r,level:l},setAttributes:s}=e,p="h"+l,u=(0,i.useBlockProps)({className:o()({[`has-text-align-${r}`]:r})});let c;const m=(e=>pmpro.all_levels_formatted_text[e]?pmpro.all_levels_formatted_text[e].name:null)(e.attributes.selected_membership_level);return c=m?(0,n.createElement)(p,t({},u,{dangerouslySetInnerHTML:{__html:m}})):(0,n.createElement)(p,u,(0,a.__)("Level Name","paid-memberships-pro")),[(0,n.createElement)(n.Fragment,null,(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.BlockControls,null,(0,n.createElement)(i.HeadingLevelDropdown,{value:l,onChange:e=>s({level:e})}),(0,n.createElement)(i.AlignmentControl,{value:r,onChange:e=>{s({textAlign:e})}}))),c)]},save:function(e){return t=e.attributes.selected_membership_level,pmpro.all_levels_formatted_text[t]?pmpro.all_levels_formatted_text[t].name:"";var t}})})()})();