/* Copyright © 2024 Melbet - All Rights Reserved */ import{defineComponent as _,h as b,useAttrs as g,useSlots as h,openBlock as v,createBlock as y}from"../../../../shared-assets/__shared_vue_deps_4ZTCVFCX.js";import{Dictionary as s,useNuxtApp as P}from"./entry-ABm-H_wC.js";var O=Object.defineProperty,c=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,l=(r,t,e)=>t in r?O(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,m=(r,t)=>{for(var e in t||(t={}))w.call(t,e)&&l(r,e,t[e]);if(c)for(var e of c(t))A.call(t,e)&&l(r,e,t[e]);return r};const x=_({__name:"T",props:{tmp:{type:String,default:void 0},template:{type:String,default:""}},setup(r){const e=Object.fromEntries(["h1","h2","h3","h4","h5","h6","b","em","i","small","strong","sub","sup","ins","del","mark","code","kbd","samp","var","pre","abbr","bdo","blockquote","q","cite","dfn","p","br","hr"].map(o=>[o,a=>b(o,void 0,a)])),p=r,i=g(),u=h(),n=P(),f=()=>{const o=p.tmp&&n.vueApp.config.globalProperties.$dictionaryInstance.getTemplate(p.tmp)||p.template,a=n.vueApp.config.globalProperties.$dictionaryInstance.getTemplateParams(o,i),d=s.updateTemplateParams(a,m(m({},e),u));return s.buildTemplate(o,d)};return(o,a)=>(v(),y(f))}});export{x as _sfc_main};