import{h}from"./index-38ad4957.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";function TextSpanView(t,e){var r=t.type,s=t.fontSize,a=t.textColor;var n={p:{"font-size":s?s+"px":"var(--sl-font-size-small)","font-weight":"400",color:a||"var(--sqm-text)",margin:"0"},subtext:{"font-size":s?s+"px":"var(--sl-font-size-x-small)","font-weight":"400",color:a||"var(--sqm-text-subdued)",margin:"0"},h1:{"font-size":s?s+"px":"var(--sl-font-size-xx-large)","font-weight":"600",color:a||"var(--sqm-text)",margin:"0"},h2:{"font-size":s?s+"px":"var(--sl-font-size-x-large)","font-weight":"600",color:a||"var(--sqm-text)",margin:"0"},h3:{"font-size":s?s+"px":"var(--sl-font-size-large)","font-weight":"600",color:a||"var(--sqm-text)",margin:"0"},h4:{"font-size":s?s+"px":"13px","font-weight":"600",color:a||"var(--sqm-text)",margin:"0"}};var o=createStyleSheet(n);var i=o.toString();var l="\n    :host {\n      word-wrap: break-word;\n    }\n    sqm-text-span {\n      display: inline;\n    }\n  ";return h("span",{class:o.classes[r],part:"sqm-text-span"},h("style",{type:"text/css"},l,i),e)}export{TextSpanView as T};