AUI.add("liferay-portlet-base",(e=>{const t=function PortletBase(t){const o=this;let r;r="namespace"in t?t.namespace:e.guid(),o.NS=r,o.ID=r.replace(/^_(.*)_$/,"$1"),t.rootNode&&o._setRootNode(t.rootNode)};t.ATTRS={namespace:{getter:"_getNS",writeOnce:!0},rootNode:{getter:"_getRootNode",setter:"_setRootNode",valueFn(){return e.one("#p_p_id"+this.NS)}}},t.prototype={_formatSelectorNS:(t,o)=>o.replace(e.DOM._getRegExp("(#|\\[id=(\\\"|\\'))(?!"+t+")","g"),"$1"+t),_getNS(){return this.NS},_getRootNode(){return this.rootNode},_setRootNode(t){const o=e.one(t);return this.rootNode=o,o},all(t,o){const r=this;return(o=e.one(o)||r.rootNode||e).all(r._formatSelectorNS(r.NS,t))},byId(t){return e.one("#"+e.Lang.String.prefix(this.NS,t))},ns(e){return Liferay.Util.ns(this.NS,e)},one(t,o){const r=this;return(o=e.one(o)||r.rootNode||e).one(r._formatSelectorNS(r.NS,t))}},Liferay.PortletBase=t}),"",{requires:["aui-base"]});
//# sourceMappingURL=portlet_base.js.map