"use strict";Liferay.Loader.define("liferay!analytics-settings-web$pretty-format@27.5.1/build/plugins/lib/markup",["module","exports","require","./escapeHTML"],(function(e,n,t){window;{Object.defineProperty(n,"__esModule",{value:!0}),n.printText=n.printProps=n.printElementAsLeaf=n.printElement=n.printComment=n.printChildren=void 0;var o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(t("./escapeHTML"));const printProps=(e,n,t,o,r,s,p)=>{const i=o+t.indent,c=t.colors;return e.map((e=>{const l=n[e];let u=p(l,t,i,r,s);return"string"!=typeof l&&(-1!==u.indexOf("\n")&&(u=t.spacingOuter+i+u+t.spacingOuter+o),u="{"+u+"}"),t.spacingInner+o+c.prop.open+e+c.prop.close+"="+c.value.open+u+c.value.close})).join("")};n.printProps=printProps;const printChildren=(e,n,t,o,r,s)=>e.map((e=>n.spacingOuter+t+("string"==typeof e?printText(e,n):s(e,n,t,o,r)))).join("");n.printChildren=printChildren;const printText=(e,n)=>{const t=n.colors.content;return t.open+(0,o.default)(e)+t.close};n.printText=printText;const printComment=(e,n)=>{const t=n.colors.comment;return t.open+"\x3c!--"+(0,o.default)(e)+"--\x3e"+t.close};n.printComment=printComment;const printElement=(e,n,t,o,r)=>{const s=o.colors.tag;return s.open+"<"+e+(n&&s.close+n+o.spacingOuter+r+s.open)+(t?">"+s.close+t+o.spacingOuter+r+s.open+"</"+e:(n&&!o.min?"":" ")+"/")+">"+s.close};n.printElement=printElement;const printElementAsLeaf=(e,n)=>{const t=n.colors.tag;return t.open+"<"+e+t.close+" …"+t.open+" />"+t.close};n.printElementAsLeaf=printElementAsLeaf}}));
//# sourceMappingURL=markup.js.map