/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./index.css');const e=require("vue"),i=require("@gsc-basic/utils"),l=require("../../hooks/useNamespace.js"),s=require("./components/NativeEllipsis.vue.js"),t=require("./components/JsEllipsis.vue.js");;/* empty css            */const n=require("../../_virtual/_plugin-vue_export-helper.js"),o={__name:"index",props:{text:{type:String,required:!0},visibleLine:{type:Number,default:1},visibleHeight:{type:Number},maxLine:{type:Number},maxHeight:{type:Number},ellipsis:{type:Boolean,default:!0},ellipsisNode:{type:String,default:"..."},endExcludes:{type:Array,default:()=>[]},useInnerHtml:{type:Boolean,default:!1},reflowOnResize:{type:Boolean,default:!1},onReflow:{type:Function},onEllipsisClick:{type:Function}},setup(n){const o=n,{prefixCls:r}=l.useNamespace("ellipsis"),u=e.useSlots(),p=e.computed(()=>i.isSupportNativeEllipsis&&(void 0===o.maxLine||o.maxLine===o.visibleLine)&&0===o.endExcludes.length&&"..."===o.ellipsisNode&&void 0===u.ellipsisNode&&void 0===o.maxHeight&&void 0===o.visibleHeight&&void 0===o.onReflow&&void 0===o.onEllipsisClick);return(i,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(r)])},[p.value?(e.openBlock(),e.createBlock(s.default,{key:0,text:o.text,"visible-line":o.visibleLine,ellipsis:o.ellipsis,"use-inner-html":o.useInnerHtml},null,8,["text","visible-line","ellipsis","use-inner-html"])):(e.openBlock(),e.createBlock(t.default,{key:1,text:n.text,"use-inner-html":n.useInnerHtml,"visible-line":n.visibleLine,"visible-height":n.visibleHeight,"max-line":n.maxLine,"max-height":n.maxHeight,ellipsis:n.ellipsis,"end-excludes":n.endExcludes,"reflow-on-resize":n.reflowOnResize,"on-reflow":n.onReflow,"on-ellipsis-click":n.onEllipsisClick},{ellipsisNode:e.withCtx(()=>[e.unref(u).ellipsisNode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.ellipsisNode),1)],64)),e.renderSlot(i.$slots,"ellipsisNode",{},void 0,!0)]),_:3},8,["text","use-inner-html","visible-line","visible-height","max-line","max-height","ellipsis","end-excludes","reflow-on-resize","on-reflow","on-ellipsis-click"]))],2))}},r=n.default(o,[["__scopeId","data-v-b7d22322"]]);exports.default=r;