1import{k as C,u as O,i as S,c as d,p as T,R as V,a as q,d as M,f as o,o as P,e as f,j as z,n as y,a5 as H}from"./Do1nZpFk.js";import{u as L}from"./DvJT-m7N.js";import{u as R}from"./CbKK8IlM.js";import{u as W}from"./DZKjVPmg.js";import"./BM5aYONo.js";const E=["data-uid"],G=["innerHTML"],U={__name:"ParagraphV2",props:{section:{type:Object,required:!0},defaultAlignment:{type:String,default:"center"},iconBox:{type:Boolean,default:!1}},setup(m){const{$_:c,$typedNew:_}=C(),u=m,{section:i,visability:$,animation:k}=L(u),{backgroundGradient:v}=R(i),{resolutioner:g}=W(),{project:j}=O(),p=S(null),x=S(""),b=d(()=>c.get(i.options.content.description.resolutionStyle,[g.value,"textAlign"],u.defaultAlignment)),A=d(()=>{const t=j.getProject.variables;if(!t||t==="{}"||typeof t!="string")return{};let e;try{e=JSON.parse(t)}catch{return{}}let r=[];if(Array.isArray(e==null?void 0:e.variables))r=e.variables;else if(e!=null&&e.variables&&typeof e.variables=="object"){const n=e.variables||{};r=Object.entries(n).map(([s,l])=>({...l,hash:s}))}else Array.isArray(e)?r=e:typeof e=="object"&&e!==null&&(r=Object.entries(e).map(([n,s])=>({key:n,value:s})));const a={};for(const n of r)n&&typeof n.key=="string"&&(a[n.key]=n.value);return a}),h=t=>A.value[t],w=()=>{if(!u.section)return"";let t=u.section.options.content.description.text;typeof t!="string"&&(t=c.head(c.head(c.get(t,"content",[]).map(r=>r.content.map(a=>a.text)))));let e=String(t||"");return e=e.replace(/<span-var[^>]*data-gvar="([^"]+)"[^>]*>([\s\S]*?)<\/span-var>/gi,(r,a)=>(h(a)??"")+""),e=e.replace(/<table\b[\s\S]*?<\/table>/gi,r=>`<div class="tableWrapper">${r}</div>`),e=e.replace(/<a([^>]*)>([\s\S]*?)<\/a>/gi,(r,a,n)=>{let s=(a.match(/data-glink="([^"]+)"/i)||[])[1];if(!s){const l=(a.match(/href="([^"]+)"/i)||[])[1];l&&l.startsWith("#")&&(s=l.slice(1),a+=` data-glink="${s}"`)}if(s){const l=h(s)??"";typeof l=="string"&&/href="[^"]*"/i.test(a)&&(a=a.replace(/href="[^"]*"/i,`href="${l}"`)),n=n.replace(/\[\[\s*([^\[\]]+?)\s*\]\]/g,(I,N)=>N.trim())}return`<a${a}>${n}</a>`}),e};x.value=w(),T(()=>{V(()=>{var t;(t=p.value)!=null&&t.querySelector("typed")&&_(p.value.querySelector("typed"))})});const B=d(()=>{const t=c.get(u.section.options.content.description.resolutionStyle[g.value],"textShadow",{enabled:!1,x:0,y:0,blur:0,color:null});return{textShadow:parseInt(t.blur)>-1?`${t.x}px ${t.y}px ${t.blur}px ${t.color}`:null,textAlign:b.value,...v.value||{}}});return(t,e)=>o(i)&&o($)("description")?(P(),q("div",{key:0,"data-uid":o(i).uid,class:y(`--${o(i).sid}--container`)},[f("div",H({ref_key:"el",ref:p,class:["position-relative text-el",[`--${o(i).sid}-margin`]]},{...o(k)("description")}),[f("div",{class:y(["el-parapgraph paragraph position-relative editor__content m-0",[{"text-justify":o(b)==="justify"},{"text-gradient":o(v)},`--${o(i).sid}-text`,{"!text-center":m.iconBox}]]),style:z(o(B))},[f("div",{class:y(`--${o(i).sid}--text`),innerHTML:o(x)},null,10,G)],6)],16)],10,E)):M("",!0)}};export{U as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.