hisonvue 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/{HAccordion-DXkKdzdS.mjs → HAccordion-BzYBxdbM.mjs} +2 -2
  2. package/dist/{HAccordion-nste-gIh.js → HAccordion-Dv-0kIeJ.js} +1 -1
  3. package/dist/{HBaggie-D9XHuvli.js → HBaggie-BrKjhTmV.js} +1 -1
  4. package/dist/{HBaggie-CNEAlhu4.mjs → HBaggie-L15S6qU_.mjs} +2 -2
  5. package/dist/{HBanner-Bh1c1LQ0.mjs → HBanner-Cs789wZY.mjs} +2 -2
  6. package/dist/{HBanner-B8DynVnX.js → HBanner-_c3_uNZ-.js} +1 -1
  7. package/dist/{HButton-9dYGtsQK.mjs → HButton-C-5U9CYg.mjs} +2 -2
  8. package/dist/{HButton-eTsFKKnM.js → HButton-DOQKYh71.js} +1 -1
  9. package/dist/{HCalendar-UVAkYS-W.mjs → HCalendar-BipekQSd.mjs} +1 -1
  10. package/dist/{HCalendar-Cq5zpcAr.js → HCalendar-c2E04a6F.js} +1 -1
  11. package/dist/{HCaption-uIKYMMan.js → HCaption-B9Z4Mpiq.js} +1 -1
  12. package/dist/{HCaption-C51bVq01.mjs → HCaption-BdFi4pjO.mjs} +1 -1
  13. package/dist/{HChart-B5ejc-SG.mjs → HChart-DjFP4QD3.mjs} +1 -1
  14. package/dist/{HChart-oEkG07OJ.js → HChart-JkV5z9ZG.js} +1 -1
  15. package/dist/{HDrawer-Cc3jqUlQ.js → HDrawer-BQoL9a2M.js} +1 -1
  16. package/dist/{HDrawer-DHJl-quY.mjs → HDrawer-ByedlBps.mjs} +35 -37
  17. package/dist/{HDropdown-Dtw78Nkz.mjs → HDropdown-B7jzU0cs.mjs} +2 -2
  18. package/dist/{HDropdown-CU3zKxJ3.js → HDropdown-DTgQ8ftU.js} +1 -1
  19. package/dist/{HFileset-CthT1M21.mjs → HFileset-BGoufA9f.mjs} +1 -1
  20. package/dist/{HFileset-BTxxYDz4.js → HFileset-Cjaw2O3B.js} +1 -1
  21. package/dist/{HGap-BWYEUzBg.js → HGap-dZHCG6qG.js} +1 -1
  22. package/dist/{HGap-B-PVteyd.mjs → HGap-o5cZ31NS.mjs} +1 -1
  23. package/dist/{HGrid-V2xOmqxp.js → HGrid-D2han0jb.js} +1 -1
  24. package/dist/{HGrid-BdSoZ3Df.mjs → HGrid-WGfCDsSF.mjs} +1 -1
  25. package/dist/{HImagebox-Cy1XmZOi.mjs → HImagebox-BPa0Q6fk.mjs} +1 -1
  26. package/dist/{HImagebox-Rjlk6PO-.js → HImagebox-CffwxfLM.js} +1 -1
  27. package/dist/HInput-CQ7d9LR-.mjs +1217 -0
  28. package/dist/HInput-cbRg1F3h.js +1 -0
  29. package/dist/{HInputGroup-CVVIbprI.mjs → HInputGroup-B1osISBq.mjs} +1 -1
  30. package/dist/{HInputGroup-C5CCa_H8.js → HInputGroup-BsP87aLA.js} +1 -1
  31. package/dist/HLabel-BPlT16ny.js +1 -0
  32. package/dist/HLabel-tg5p1PWE.mjs +404 -0
  33. package/dist/{HLayout-BbYIgmYy.js → HLayout-C1x5k8_W.js} +1 -1
  34. package/dist/{HLayout-DXRXlsWL.mjs → HLayout-DkGhoxFJ.mjs} +1 -1
  35. package/dist/{HList-BbhTZa3d.js → HList-B_W8rTjZ.js} +1 -1
  36. package/dist/{HList-BdC2kv9A.mjs → HList-vGkLpoY9.mjs} +2 -2
  37. package/dist/{HModal-4ABSx2me.mjs → HModal-D-XuHQbV.mjs} +1 -1
  38. package/dist/{HModal-BuIgfi_-.js → HModal-DAbW9nf8.js} +1 -1
  39. package/dist/{HNote-DSQJDOUy.mjs → HNote-_E_hiFhb.mjs} +1 -1
  40. package/dist/{HNote-h-lB6QZv.js → HNote-nxbvJZx8.js} +1 -1
  41. package/dist/{HPagination-CostpT0D.js → HPagination-C_vo9s9C.js} +1 -1
  42. package/dist/{HPagination-BqoDaVlP.mjs → HPagination-DZlbOqpd.mjs} +2 -2
  43. package/dist/{HParagraph-C_afHbvS.js → HParagraph-BIw7MBhH.js} +1 -1
  44. package/dist/{HParagraph-BGOLdRFM.mjs → HParagraph-BjceB4Ns.mjs} +1 -1
  45. package/dist/{HPopup-B7lscsTs.mjs → HPopup-BYFWFdFV.mjs} +1 -1
  46. package/dist/{HPopup-BBpZXoYa.js → HPopup-s9d8mVuM.js} +1 -1
  47. package/dist/{HSpinner-CYbVuwRT.mjs → HSpinner-RGpoM6-h.mjs} +1 -1
  48. package/dist/{HSpinner--MbdeUop.js → HSpinner-xBqdZckJ.js} +1 -1
  49. package/dist/{HTable-DI9-1vqI.js → HTable-DBqYOBFv.js} +1 -1
  50. package/dist/{HTable-CJFft6Z1.mjs → HTable-EjjZX5VV.mjs} +1 -1
  51. package/dist/hisonvue.cjs.js +1 -1
  52. package/dist/hisonvue.css +1 -1
  53. package/dist/hisonvue.d.ts +58 -0
  54. package/dist/hisonvue.es.js +2 -2
  55. package/dist/{index-lqOpF_Ng.mjs → index-C3MEbk_F.mjs} +1 -1
  56. package/dist/{index-nNWQ7mcU.js → index-CwePYZaW.js} +1 -1
  57. package/dist/{setButtonCssEvent-Ba1z9cap.mjs → setButtonCssEvent-B9b6lRmT.mjs} +1 -1
  58. package/dist/{setButtonCssEvent-DLH6Bh2r.js → setButtonCssEvent-Cza1WBk4.js} +1 -1
  59. package/package.json +1 -1
  60. package/dist/HInput-CEtGDqFm.mjs +0 -1103
  61. package/dist/HInput-DATgRssT.js +0 -1
  62. package/dist/HLabel-DZA3unsC.mjs +0 -369
  63. package/dist/HLabel-Dn0SXEHh.js +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-nNWQ7mcU.js"),N=require("./setButtonCssEvent-DLH6Bh2r.js"),W=require("./_plugin-vue_export-helper-BHFhmbuH.js"),X={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},listItemStyle:{type:[String,Object,Array],required:!1},listItemInnerStyle:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},border:{type:Boolean,default:!1},listBorder:{type:Boolean,default:!1},backgroundType:{type:String,default:o.BackgroundType.empty,validator:n=>o.BACKGROUND_TYPE_VALUES.includes(n)},listBackgroundType:{type:String,default:o.BackgroundType.empty,validator:n=>o.BACKGROUND_TYPE_VALUES.includes(n)},listType:{type:String,default:"ul",validator:n=>n==="ul"||n==="ol"},bulletChar:{type:String,default:"•"},showMarker:{type:Boolean,default:!0},textList:{type:Array,default:()=>[]},addEvent:{type:Boolean,default:!1},tabIndex:{type:[Number,String],default:null,validator:n=>n===null||n===""||!isNaN(+n)&&isFinite(+n)}},Z=e.defineComponent({name:"HList",props:X,inheritAttrs:!1,emits:["mounted","responsive-change","click","mousedown","mouseup","mouseover","mouseout"],setup(n,{emit:l,slots:I}){const A=e.ref(null),i=e.ref([]),T=e.ref([]),a=n.id?n.id:o.getUUID(),d=`hlist:${a}`,r=o.useDevice(),v=e.ref(null),y=e.ref(n.visible),$=e.computed(()=>y.value?"":"hison-display-none"),m=e.ref(n.listType||"ul"),p=e.ref(n.bulletChar||"•"),k=e.ref(n.showMarker!==!1),g=e.ref(n.border??!1),h=e.ref(n.listBorder??!1),B=e.ref(n.backgroundType||o.BackgroundType.empty),b=e.ref(n.listBackgroundType||o.BackgroundType.empty),c=e.ref(!!n.addEvent),H=e.computed(()=>g.value?"hison-border":""),O=e.computed(()=>h.value?"hison-border":""),U=e.computed(()=>{switch(B.value){case o.BackgroundType.empty:return"hison-bg-empty";case o.BackgroundType.transparent:return"hison-bg-transparent";default:return"hison-bg-filled"}}),K=e.computed(()=>{switch(b.value){case o.BackgroundType.empty:return"hison-bg-empty";case o.BackgroundType.transparent:return"hison-bg-transparent";default:return"hison-bg-filled"}}),j=e.computed(()=>{var t;return((t=I.default)==null?void 0:t.call(I))??[]}),f=e.ref(n.tabIndex!==null&&n.tabIndex!==""?Number(n.tabIndex):null),R=(t,s=[])=>{if(!t||t.length===0)return s;for(const u of t)if(u.type!==e.Comment&&u.type!==e.Text)if(u.type===e.Fragment){const S=u.children;R(S,s)}else s.push(u);return s},L=e.computed(()=>R(j.value)),F=e.computed(()=>L.value.length>0),w=e.ref(Array.isArray(n.textList)?n.textList:[]),z=e.computed(()=>w.value??[]),P=e.computed(()=>m.value),E=e.ref([]),M=()=>{E.value=o.extractResponsiveClasses(o.toClassString(n.class)||"",r.value),o.addComponentNameToClass(E.value,"size",o.hisonCloser.componentStyle.size),o.addComponentNameToClass(E.value,"color","primary")},C=(t=!0)=>{e.nextTick(()=>{i.value.forEach(s=>{s&&(N.removeButtonCssEvent(s),t&&c.value&&N.addButtonCssEvent(s))})})},G=t=>{c.value&&l("click",t,v.value)},Y=(t,s)=>{c.value&&l(t,s,v.value)},D=()=>{o.hisonCloser.component.listList[a]&&o.hisonCloser.component.listList[a].isHisonvueComponent&&console.warn(`[Hisonvue] The list ID is at risk of being duplicated. ${a}`),o.registerReloadable(d,()=>{V(),e.nextTick(D)}),M(),C(!0),v.value={isHisonvueComponent:!0,getId:()=>a,getType:()=>"list",isVisible:()=>y.value,setVisible:t=>{y.value=t},getListType:()=>m.value,setListType:t=>{m.value=t},isShowMarker:()=>k.value,setShowMarker:t=>{k.value=t},getBulletChar:()=>p.value,setBulletChar:t=>{p.value=t},isBorder:()=>g.value,setBorder:t=>{g.value=t},isListBorder:()=>h.value,setListBorder:t=>{h.value=t},getBackgroundType:()=>B.value,setBackgroundType:t=>{B.value=t},getListBackgroundType:()=>b.value,setListBackgroundType:t=>{b.value=t},getTextList:()=>[...z.value],setTextList:t=>{w.value=Array.isArray(t)?t:[]},isAddEvent:()=>c.value,setAddEvent:t=>{c.value=!!t,C(!0)},getTabIndex:()=>f.value,setTabIndex:t=>{f.value=t!=null?Number(t):null},getListRowCount:()=>i.value.length,getListItem:t=>!Number.isInteger(t)||t<0||t>=i.value.length?null:i.value[t]??null,focus:(t=0)=>{var S;if(!c.value)return;const s=f.value;if(s==null||s===-1||!Number.isInteger(t)||t<0||t>=i.value.length)return;const u=i.value[t];(S=u==null?void 0:u.focus)==null||S.call(u)},reload:()=>o.reloadHisonComponent(d)},o.hisonCloser.component.listList[a]=v.value,l("mounted",v.value)},V=()=>{o.unregisterReloadable(d),i.value.forEach(t=>t&&N.removeButtonCssEvent(t)),delete o.hisonCloser.component.listList[a]};e.onMounted(D),e.onBeforeUnmount(V);const q=t=>{if(!t)return null;if(t instanceof Element)return t;const s=t.$el;return s instanceof Element?s:null},J=t=>{const s=q(t);s&&(i.value.includes(s)||i.value.push(s))},Q=t=>{const s=q(t);s&&(T.value.includes(s)||T.value.push(s))};return e.watch(r,t=>{M(),l("responsive-change",t)}),e.watch(()=>n.visible,t=>{const s=!!t;s!==y.value&&(y.value=s)}),e.watch(()=>n.border,t=>{const s=!!t;s!==g.value&&(g.value=s)}),e.watch(()=>n.listBorder,t=>{const s=!!t;s!==h.value&&(h.value=s)}),e.watch(()=>n.backgroundType,t=>{t&&t!==B.value&&(B.value=t)}),e.watch(()=>n.listBackgroundType,t=>{t&&t!==b.value&&(b.value=t)}),e.watch(()=>n.listType,t=>{const s=t==="ol"?"ol":"ul";s!==m.value&&(m.value=s)}),e.watch(()=>n.bulletChar,t=>{const s=t??"•";s!==p.value&&(p.value=s)}),e.watch(()=>n.showMarker,t=>{const s=t!==!1;s!==k.value&&(k.value=s)}),e.watch(()=>n.textList,t=>{w.value=Array.isArray(t)?t:[]}),e.watch(()=>n.addEvent,t=>{const s=!!t;s!==c.value&&(c.value=s,C(!0))}),e.watch(()=>n.tabIndex,t=>{const s=t===null||t===""?null:Number(t);s!==f.value&&(f.value=s)}),e.watch(()=>n.class,()=>{M()}),e.watch(L,()=>{C(!0)}),e.watch(w,()=>{C(!0)},{deep:!0}),{props:n,listRef:A,itemRefs:i,itemInnerRefs:T,renderTag:P,listType:m,bulletChar:p,showMarker:k,visibleClass:$,borderClass:H,listBorderClass:O,backgroundTypeClass:U,listBackgroundTypeClass:K,responsiveClassList:E,hasElementSlot:F,elementNodes:L,normalizedItems:z,tabIndex:f,setItemRef:J,setItemInnerRef:Q,onItemClick:G,emitItem:Y}}}),x=["tabindex"],_={key:0,class:"hison-list-marker"},ee={key:0},te={key:1},ne={class:"hison-list-content"},se=["tabindex"],le={key:0,class:"hison-list-marker"},oe={key:0},re={key:1},ae={class:"hison-list-content"},ie={key:1,class:"hison-list-item-text"};function ue(n,l,I,A,i,T){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hison-wrapper",...n.responsiveClassList,n.visibleClass])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.renderTag),{ref:"listRef",class:e.normalizeClass(["hison-list",n.borderClass,n.backgroundTypeClass]),style:e.normalizeStyle(n.props.style),onKeydown:[e.withKeys(e.withModifiers(n.onItemClick,["prevent"]),["enter"]),e.withKeys(e.withModifiers(n.onItemClick,["prevent"]),["space"])]},{default:e.withCtx(()=>[n.hasElementSlot?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.elementNodes,(a,d)=>(e.openBlock(),e.createElementBlock("li",{key:d,class:e.normalizeClass(["hison-list-item",n.listBorderClass,n.listBackgroundTypeClass]),style:e.normalizeStyle(n.props.listItemStyle),ref_for:!0,ref:n.setItemRef,tabindex:n.tabIndex??void 0,onClick:l[0]||(l[0]=(...r)=>n.onItemClick&&n.onItemClick(...r)),onMousedown:l[1]||(l[1]=r=>n.emitItem("mousedown",r)),onMouseup:l[2]||(l[2]=r=>n.emitItem("mouseup",r)),onMouseover:l[3]||(l[3]=r=>n.emitItem("mouseover",r)),onMouseout:l[4]||(l[4]=r=>n.emitItem("mouseout",r))},[e.createElementVNode("div",{class:"hison-list-item-inner",style:e.normalizeStyle(n.props.listItemInnerStyle),ref_for:!0,ref:n.setItemInnerRef},[n.showMarker?(e.openBlock(),e.createElementBlock("div",_,[n.listType==="ol"?(e.openBlock(),e.createElementBlock("span",ee,e.toDisplayString(d+1)+".",1)):(e.openBlock(),e.createElementBlock("span",te,e.toDisplayString(n.bulletChar),1))])):e.createCommentVNode("",!0),e.createElementVNode("div",ne,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a)))])],4)],46,x))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.normalizedItems,(a,d)=>(e.openBlock(),e.createElementBlock("li",{key:d,class:e.normalizeClass(["hison-list-item",n.listBorderClass,n.listBackgroundTypeClass]),ref_for:!0,ref:n.setItemRef,tabindex:n.tabIndex??void 0,onClick:l[5]||(l[5]=(...r)=>n.onItemClick&&n.onItemClick(...r)),onMousedown:l[6]||(l[6]=r=>n.emitItem("mousedown",r)),onMouseup:l[7]||(l[7]=r=>n.emitItem("mouseup",r)),onMouseover:l[8]||(l[8]=r=>n.emitItem("mouseover",r)),onMouseout:l[9]||(l[9]=r=>n.emitItem("mouseout",r))},[e.createElementVNode("div",{class:"hison-list-item-inner",style:e.normalizeStyle(n.props.listItemInnerStyle),ref_for:!0,ref:n.setItemInnerRef},[n.showMarker?(e.openBlock(),e.createElementBlock("div",le,[n.listType==="ol"?(e.openBlock(),e.createElementBlock("span",oe,e.toDisplayString(d+1)+".",1)):(e.openBlock(),e.createElementBlock("span",re,e.toDisplayString(n.bulletChar),1))])):e.createCommentVNode("",!0),e.createElementVNode("div",ae,[n.$slots.item?e.renderSlot(n.$slots,"item",{key:0,item:a,index:d}):(e.openBlock(),e.createElementBlock("span",ie,e.toDisplayString(String(a??"")),1))])],4)],42,se))),128))]),_:3},40,["class","style","onKeydown"]))],2)}const de=W._export_sfc(Z,[["render",ue]]);exports.default=de;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-CwePYZaW.js"),N=require("./setButtonCssEvent-Cza1WBk4.js"),W=require("./_plugin-vue_export-helper-BHFhmbuH.js"),X={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},listItemStyle:{type:[String,Object,Array],required:!1},listItemInnerStyle:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},border:{type:Boolean,default:!1},listBorder:{type:Boolean,default:!1},backgroundType:{type:String,default:o.BackgroundType.empty,validator:n=>o.BACKGROUND_TYPE_VALUES.includes(n)},listBackgroundType:{type:String,default:o.BackgroundType.empty,validator:n=>o.BACKGROUND_TYPE_VALUES.includes(n)},listType:{type:String,default:"ul",validator:n=>n==="ul"||n==="ol"},bulletChar:{type:String,default:"•"},showMarker:{type:Boolean,default:!0},textList:{type:Array,default:()=>[]},addEvent:{type:Boolean,default:!1},tabIndex:{type:[Number,String],default:null,validator:n=>n===null||n===""||!isNaN(+n)&&isFinite(+n)}},Z=e.defineComponent({name:"HList",props:X,inheritAttrs:!1,emits:["mounted","responsive-change","click","mousedown","mouseup","mouseover","mouseout"],setup(n,{emit:l,slots:I}){const A=e.ref(null),i=e.ref([]),T=e.ref([]),a=n.id?n.id:o.getUUID(),d=`hlist:${a}`,r=o.useDevice(),v=e.ref(null),y=e.ref(n.visible),$=e.computed(()=>y.value?"":"hison-display-none"),m=e.ref(n.listType||"ul"),p=e.ref(n.bulletChar||"•"),k=e.ref(n.showMarker!==!1),g=e.ref(n.border??!1),h=e.ref(n.listBorder??!1),B=e.ref(n.backgroundType||o.BackgroundType.empty),b=e.ref(n.listBackgroundType||o.BackgroundType.empty),c=e.ref(!!n.addEvent),H=e.computed(()=>g.value?"hison-border":""),O=e.computed(()=>h.value?"hison-border":""),U=e.computed(()=>{switch(B.value){case o.BackgroundType.empty:return"hison-bg-empty";case o.BackgroundType.transparent:return"hison-bg-transparent";default:return"hison-bg-filled"}}),K=e.computed(()=>{switch(b.value){case o.BackgroundType.empty:return"hison-bg-empty";case o.BackgroundType.transparent:return"hison-bg-transparent";default:return"hison-bg-filled"}}),j=e.computed(()=>{var t;return((t=I.default)==null?void 0:t.call(I))??[]}),f=e.ref(n.tabIndex!==null&&n.tabIndex!==""?Number(n.tabIndex):null),R=(t,s=[])=>{if(!t||t.length===0)return s;for(const u of t)if(u.type!==e.Comment&&u.type!==e.Text)if(u.type===e.Fragment){const S=u.children;R(S,s)}else s.push(u);return s},L=e.computed(()=>R(j.value)),F=e.computed(()=>L.value.length>0),w=e.ref(Array.isArray(n.textList)?n.textList:[]),z=e.computed(()=>w.value??[]),P=e.computed(()=>m.value),E=e.ref([]),M=()=>{E.value=o.extractResponsiveClasses(o.toClassString(n.class)||"",r.value),o.addComponentNameToClass(E.value,"size",o.hisonCloser.componentStyle.size),o.addComponentNameToClass(E.value,"color","primary")},C=(t=!0)=>{e.nextTick(()=>{i.value.forEach(s=>{s&&(N.removeButtonCssEvent(s),t&&c.value&&N.addButtonCssEvent(s))})})},G=t=>{c.value&&l("click",t,v.value)},Y=(t,s)=>{c.value&&l(t,s,v.value)},D=()=>{o.hisonCloser.component.listList[a]&&o.hisonCloser.component.listList[a].isHisonvueComponent&&console.warn(`[Hisonvue] The list ID is at risk of being duplicated. ${a}`),o.registerReloadable(d,()=>{V(),e.nextTick(D)}),M(),C(!0),v.value={isHisonvueComponent:!0,getId:()=>a,getType:()=>"list",isVisible:()=>y.value,setVisible:t=>{y.value=t},getListType:()=>m.value,setListType:t=>{m.value=t},isShowMarker:()=>k.value,setShowMarker:t=>{k.value=t},getBulletChar:()=>p.value,setBulletChar:t=>{p.value=t},isBorder:()=>g.value,setBorder:t=>{g.value=t},isListBorder:()=>h.value,setListBorder:t=>{h.value=t},getBackgroundType:()=>B.value,setBackgroundType:t=>{B.value=t},getListBackgroundType:()=>b.value,setListBackgroundType:t=>{b.value=t},getTextList:()=>[...z.value],setTextList:t=>{w.value=Array.isArray(t)?t:[]},isAddEvent:()=>c.value,setAddEvent:t=>{c.value=!!t,C(!0)},getTabIndex:()=>f.value,setTabIndex:t=>{f.value=t!=null?Number(t):null},getListRowCount:()=>i.value.length,getListItem:t=>!Number.isInteger(t)||t<0||t>=i.value.length?null:i.value[t]??null,focus:(t=0)=>{var S;if(!c.value)return;const s=f.value;if(s==null||s===-1||!Number.isInteger(t)||t<0||t>=i.value.length)return;const u=i.value[t];(S=u==null?void 0:u.focus)==null||S.call(u)},reload:()=>o.reloadHisonComponent(d)},o.hisonCloser.component.listList[a]=v.value,l("mounted",v.value)},V=()=>{o.unregisterReloadable(d),i.value.forEach(t=>t&&N.removeButtonCssEvent(t)),delete o.hisonCloser.component.listList[a]};e.onMounted(D),e.onBeforeUnmount(V);const q=t=>{if(!t)return null;if(t instanceof Element)return t;const s=t.$el;return s instanceof Element?s:null},J=t=>{const s=q(t);s&&(i.value.includes(s)||i.value.push(s))},Q=t=>{const s=q(t);s&&(T.value.includes(s)||T.value.push(s))};return e.watch(r,t=>{M(),l("responsive-change",t)}),e.watch(()=>n.visible,t=>{const s=!!t;s!==y.value&&(y.value=s)}),e.watch(()=>n.border,t=>{const s=!!t;s!==g.value&&(g.value=s)}),e.watch(()=>n.listBorder,t=>{const s=!!t;s!==h.value&&(h.value=s)}),e.watch(()=>n.backgroundType,t=>{t&&t!==B.value&&(B.value=t)}),e.watch(()=>n.listBackgroundType,t=>{t&&t!==b.value&&(b.value=t)}),e.watch(()=>n.listType,t=>{const s=t==="ol"?"ol":"ul";s!==m.value&&(m.value=s)}),e.watch(()=>n.bulletChar,t=>{const s=t??"•";s!==p.value&&(p.value=s)}),e.watch(()=>n.showMarker,t=>{const s=t!==!1;s!==k.value&&(k.value=s)}),e.watch(()=>n.textList,t=>{w.value=Array.isArray(t)?t:[]}),e.watch(()=>n.addEvent,t=>{const s=!!t;s!==c.value&&(c.value=s,C(!0))}),e.watch(()=>n.tabIndex,t=>{const s=t===null||t===""?null:Number(t);s!==f.value&&(f.value=s)}),e.watch(()=>n.class,()=>{M()}),e.watch(L,()=>{C(!0)}),e.watch(w,()=>{C(!0)},{deep:!0}),{props:n,listRef:A,itemRefs:i,itemInnerRefs:T,renderTag:P,listType:m,bulletChar:p,showMarker:k,visibleClass:$,borderClass:H,listBorderClass:O,backgroundTypeClass:U,listBackgroundTypeClass:K,responsiveClassList:E,hasElementSlot:F,elementNodes:L,normalizedItems:z,tabIndex:f,setItemRef:J,setItemInnerRef:Q,onItemClick:G,emitItem:Y}}}),x=["tabindex"],_={key:0,class:"hison-list-marker"},ee={key:0},te={key:1},ne={class:"hison-list-content"},se=["tabindex"],le={key:0,class:"hison-list-marker"},oe={key:0},re={key:1},ae={class:"hison-list-content"},ie={key:1,class:"hison-list-item-text"};function ue(n,l,I,A,i,T){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hison-wrapper",...n.responsiveClassList,n.visibleClass])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.renderTag),{ref:"listRef",class:e.normalizeClass(["hison-list",n.borderClass,n.backgroundTypeClass]),style:e.normalizeStyle(n.props.style),onKeydown:[e.withKeys(e.withModifiers(n.onItemClick,["prevent"]),["enter"]),e.withKeys(e.withModifiers(n.onItemClick,["prevent"]),["space"])]},{default:e.withCtx(()=>[n.hasElementSlot?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.elementNodes,(a,d)=>(e.openBlock(),e.createElementBlock("li",{key:d,class:e.normalizeClass(["hison-list-item",n.listBorderClass,n.listBackgroundTypeClass]),style:e.normalizeStyle(n.props.listItemStyle),ref_for:!0,ref:n.setItemRef,tabindex:n.tabIndex??void 0,onClick:l[0]||(l[0]=(...r)=>n.onItemClick&&n.onItemClick(...r)),onMousedown:l[1]||(l[1]=r=>n.emitItem("mousedown",r)),onMouseup:l[2]||(l[2]=r=>n.emitItem("mouseup",r)),onMouseover:l[3]||(l[3]=r=>n.emitItem("mouseover",r)),onMouseout:l[4]||(l[4]=r=>n.emitItem("mouseout",r))},[e.createElementVNode("div",{class:"hison-list-item-inner",style:e.normalizeStyle(n.props.listItemInnerStyle),ref_for:!0,ref:n.setItemInnerRef},[n.showMarker?(e.openBlock(),e.createElementBlock("div",_,[n.listType==="ol"?(e.openBlock(),e.createElementBlock("span",ee,e.toDisplayString(d+1)+".",1)):(e.openBlock(),e.createElementBlock("span",te,e.toDisplayString(n.bulletChar),1))])):e.createCommentVNode("",!0),e.createElementVNode("div",ne,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a)))])],4)],46,x))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.normalizedItems,(a,d)=>(e.openBlock(),e.createElementBlock("li",{key:d,class:e.normalizeClass(["hison-list-item",n.listBorderClass,n.listBackgroundTypeClass]),ref_for:!0,ref:n.setItemRef,tabindex:n.tabIndex??void 0,onClick:l[5]||(l[5]=(...r)=>n.onItemClick&&n.onItemClick(...r)),onMousedown:l[6]||(l[6]=r=>n.emitItem("mousedown",r)),onMouseup:l[7]||(l[7]=r=>n.emitItem("mouseup",r)),onMouseover:l[8]||(l[8]=r=>n.emitItem("mouseover",r)),onMouseout:l[9]||(l[9]=r=>n.emitItem("mouseout",r))},[e.createElementVNode("div",{class:"hison-list-item-inner",style:e.normalizeStyle(n.props.listItemInnerStyle),ref_for:!0,ref:n.setItemInnerRef},[n.showMarker?(e.openBlock(),e.createElementBlock("div",le,[n.listType==="ol"?(e.openBlock(),e.createElementBlock("span",oe,e.toDisplayString(d+1)+".",1)):(e.openBlock(),e.createElementBlock("span",re,e.toDisplayString(n.bulletChar),1))])):e.createCommentVNode("",!0),e.createElementVNode("div",ae,[n.$slots.item?e.renderSlot(n.$slots,"item",{key:0,item:a,index:d}):(e.openBlock(),e.createElementBlock("span",ie,e.toDisplayString(String(a??"")),1))])],4)],42,se))),128))]),_:3},40,["class","style","onKeydown"]))],2)}const de=W._export_sfc(Z,[["render",ue]]);exports.default=de;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as ye, ref as o, computed as f, onMounted as ce, onBeforeUnmount as be, watch as r, Comment as ge, Text as pe, Fragment as U, nextTick as Y, createElementBlock as u, openBlock as i, normalizeClass as H, createBlock as J, resolveDynamicComponent as Q, withKeys as W, normalizeStyle as z, withModifiers as X, withCtx as he, renderList as Z, createElementVNode as D, createCommentVNode as x, toDisplayString as w, renderSlot as ke } from "vue";
2
- import { B as _, f as c, g as Ie, u as Ce, e as Te, t as Be, b as ee, h as E, r as Le, c as Se, d as we } from "./index-lqOpF_Ng.mjs";
3
- import { r as te, a as Ee } from "./setButtonCssEvent-Ba1z9cap.mjs";
2
+ import { B as _, f as c, g as Ie, u as Ce, e as Te, t as Be, b as ee, h as E, r as Le, c as Se, d as we } from "./index-C3MEbk_F.mjs";
3
+ import { r as te, a as Ee } from "./setButtonCssEvent-B9b6lRmT.mjs";
4
4
  import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
5
  const Ae = {
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as Qe, ref as a, computed as l, onMounted as _e, onBeforeUnmount as xe, watch as n, unref as ae, nextTick as ne, resolveComponent as ie, createElementBlock as C, openBlock as u, normalizeClass as c, createCommentVNode as s, createElementVNode as ze, normalizeStyle as re, createBlock as m, createVNode as H, withCtx as d, renderSlot as r, Fragment as B, createSlots as A } from "vue";
2
- import { B as ue, f as J, S as eo, i as b, g as oo, u as to, j as Ae, t as ce, e as lo, b as Fe, h as D, r as so, c as ao, d as no } from "./index-lqOpF_Ng.mjs";
2
+ import { B as ue, f as J, S as eo, i as b, g as oo, u as to, j as Ae, t as ce, e as lo, b as Fe, h as D, r as so, c as ao, d as no } from "./index-C3MEbk_F.mjs";
3
3
  import { a as io, r as ro } from "./scrollManager-BGnq4wyt.mjs";
4
4
  import { _ as uo } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
5
  const co = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-nNWQ7mcU.js"),Ce=require("./scrollManager-CEEWQwoK.js"),Ne=require("./_plugin-vue_export-helper-BHFhmbuH.js"),He={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!1},border:{type:Boolean,default:!0},backgroundType:{type:String,default:n.BackgroundType.empty,validator:o=>n.BACKGROUND_TYPE_VALUES.includes(o)},zIndex:{type:Number,default:1300},position:{type:String,default:n.ScreenPosition.middleCenter,validator:o=>n.SCREEN_POSITION_VALUES.includes(o)},headerVisible:{type:Boolean,default:!0},footerVisible:{type:Boolean,default:!0},caption:{type:String,default:null},captionBorder:{type:Boolean,default:!1},captionBackgroundType:{type:String,default:n.BackgroundType.filled,validator:o=>n.BACKGROUND_TYPE_VALUES.includes(o)},captionPlacement:{type:String,default:"header-center"},closeButtonVisible:{type:Boolean,default:!0},closeButtonText:{type:String,default:"X"},closeButtonTitle:{type:String,default:"close"},closeButtonBorder:{type:Boolean,default:!0},closeButtonBackgroundType:{type:String,default:n.BackgroundType.empty,validator:o=>n.BACKGROUND_TYPE_VALUES.includes(o)},closeButtonPlacement:{type:String,default:"footer-right"},closeClickOverlay:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},overlayStyle:{type:[String,Object,Array],required:!1},scrollLock:{type:Boolean,default:!0},enterAnimationClass:{type:String,required:!1},leaveAnimationClass:{type:String,required:!1}},ze=e.defineComponent({name:"HModal",props:He,inheritAttrs:!1,emits:["mounted","responsive-change","open","close"],setup(o,{emit:m,slots:E}){const c=o.id||n.getUUID(),P=`hmodal:${c}`,I=n.useDevice(),d=e.ref(null),a=e.ref(o.visible),u=e.ref(o.headerVisible),C=e.ref(o.footerVisible),v=e.ref(o.closeButtonVisible),h=e.ref(o.caption??null),S=e.ref(o.captionBorder),w=e.ref(o.captionBackgroundType),T=e.ref(o.closeButtonBorder),V=e.ref(o.closeButtonBackgroundType),$=e.ref(o.closeClickOverlay),L=e.ref(o.showOverlay),k=e.ref(o.scrollLock),N=e.ref(o.border),H=e.ref(o.backgroundType||n.BackgroundType.empty),s=e.ref(o.closeButtonPlacement),r=e.ref(o.captionPlacement),y=e.ref(o.zIndex??1e3),z=e.ref(o.position),ve=e.computed(()=>{const t={zIndex:y.value};switch(t.left="",t.right="",t.top="",t.bottom="",t.transform="none",z.value){case n.ScreenPosition.topLeft:t.left="0",t.top="0";break;case n.ScreenPosition.topCenter:t.left="50%",t.top="0",t.transform="translateX(-50%)";break;case n.ScreenPosition.topRight:t.right="0",t.top="0";break;case n.ScreenPosition.middleLeft:t.left="0",t.top="50%",t.transform="translateY(-50%)";break;case n.ScreenPosition.middleCenter:t.left="50%",t.top="50%",t.transform="translate(-50%, -50%)";break;case n.ScreenPosition.middleRight:t.right="0",t.top="50%",t.transform="translateY(-50%)";break;case n.ScreenPosition.bottomLeft:t.left="0",t.bottom="0";break;case n.ScreenPosition.bottomCenter:t.left="50%",t.bottom="0",t.transform="translateX(-50%)";break;case n.ScreenPosition.bottomRight:t.right="0",t.bottom="0";break}return t}),he=e.computed(()=>{const l={zIndex:(y.value??1e3)-1},g=o.overlayStyle;return g?Array.isArray(g)?[{...l},...g]:typeof g=="string"?[l,g]:{...l,...g}:l}),pe=e.computed(()=>a.value?"":"hison-display-none"),fe=e.computed(()=>{switch(H.value){case"transparent":return"hison-bg-transparent";case"filled":return"hison-bg-filled";default:return"hison-bg-empty"}}),ke=e.computed(()=>N.value?"hison-border":""),O=e.ref([]),q=()=>{O.value=n.extractResponsiveClasses(n.toClassString(o.class)||"",I.value),n.addComponentNameToClass(O.value,"size",n.hisonCloser.componentStyle.size),n.addComponentNameToClass(O.value,"color","primary")},ye=e.computed(()=>[...n.extractPrefixedClasses(n.toClassString(o.class)||"","size"),...n.extractPrefixedClasses(n.toClassString(o.class)||"","color")]),Be=e.computed(()=>a.value&&L.value),be=e.computed(()=>!!E.header),ge=e.computed(()=>!!E.footer),i=t=>t.split("-")[1]||"left",j=e.computed(()=>!!(h.value&&h.value.trim().length)),U=e.computed(()=>j.value&&r.value.startsWith("header")),W=e.computed(()=>v.value&&s.value.startsWith("header")),Z=e.computed(()=>U.value&&i(r.value)==="left"),G=e.computed(()=>U.value&&i(r.value)==="center"),K=e.computed(()=>U.value&&i(r.value)==="right"),X=e.computed(()=>W.value&&i(s.value)==="left"),J=e.computed(()=>W.value&&i(s.value)==="center"),Q=e.computed(()=>W.value&&i(s.value)==="right"),_=e.computed(()=>Z.value||X.value),x=e.computed(()=>G.value||J.value),ee=e.computed(()=>K.value||Q.value),M=e.computed(()=>j.value&&r.value.startsWith("footer")),D=e.computed(()=>v.value&&s.value.startsWith("footer")),oe=e.computed(()=>M.value&&i(r.value)==="left"),te=e.computed(()=>M.value&&i(r.value)==="center"),le=e.computed(()=>M.value&&i(r.value)==="right"),ne=e.computed(()=>D.value&&i(s.value)==="left"),ae=e.computed(()=>D.value&&i(s.value)==="center"),se=e.computed(()=>D.value&&i(s.value)==="right"),re=e.computed(()=>oe.value||ne.value),ie=e.computed(()=>te.value||ae.value),ce=e.computed(()=>le.value||se.value),Se=e.computed(()=>u.value&&(be.value||_.value||x.value||ee.value)),we=e.computed(()=>C.value&&(ge.value||re.value||ie.value||ce.value)),R=()=>{k.value&&Ce.acquireScrollLock(c)},F=()=>{k.value&&Ce.releaseScrollLock(c)},B=e.ref(null),Te=t=>{$.value&&b()},Ve=t=>{b()},p=e.ref(o.enterAnimationClass||"hison-modal-enter"),f=e.ref(o.leaveAnimationClass||"hison-modal-leave"),Y=e.ref(null),ue=async()=>{const t=Y.value;!t||!p.value||(t.classList.remove(f.value),t.offsetWidth,t.classList.add(p.value))},$e=async()=>{const t=Y.value;!t||!f.value||(t.classList.remove(p.value),t.offsetWidth,t.classList.add(f.value),await new Promise(l=>setTimeout(l,200)))},A=async()=>{a.value||(a.value=!0,R(),await e.nextTick(),ue(),m("open",e.unref(B)))},b=async()=>{if(a.value)try{await $e()}finally{a.value=!1,F(),m("close",e.unref(B))}},Le=async()=>a.value?b():A(),de=()=>{n.hisonCloser.component.modalList[c]&&n.hisonCloser.component.modalList[c].isHisonvueComponent&&console.warn(`[Hisonvue] The modal ID is at risk of being duplicated. ${c}`),n.registerReloadable(P,()=>{me(),e.nextTick(de)}),q(),a.value&&(R(),e.nextTick(ue)),B.value={isHisonvueComponent:!0,getId:()=>c,getType:()=>"modal",isVisible:()=>a.value,open:A,close:b,toggle:Le,setVisible:t=>t?A():b(),getZIndex:()=>y.value,setZIndex:t=>{y.value=t},getPosition:()=>z.value,setPosition:t=>{z.value=t},isHeaderVisible:()=>u.value,setHeaderVisible:t=>{u.value=t},isFooterVisible:()=>C.value,setFooterVisible:t=>{C.value=t},getCaption:()=>h.value||"",setCaption:t=>{h.value=t},isCaptionBorder:()=>S.value,setCaptionBorder:t=>{S.value=t},getCaptionBackgroundType:()=>w.value,setCaptionBackgroundType:t=>{w.value=t},isCloseButtonVisible:()=>v.value,setCloseButtonVisible:t=>{v.value=t},isCloseButtonBorder:()=>T.value,setCloseButtonBorder:t=>{T.value=t},getCloseButtonBackgroundType:()=>V.value,setCloseButtonBackgroundType:t=>{V.value=t},getButtonPlacement:()=>s.value,setButtonPlacement:t=>{s.value=t},getCaptionPlacement:()=>r.value,setCaptionPlacement:t=>{r.value=t},isCloseClickOverlay:()=>$.value,setCloseClickOverlay:t=>{$.value=t},isOverlayShown:()=>L.value,setOverlayShown:t=>{L.value=t},isBorder:()=>N.value,setBorder:t=>{N.value=t},getBackgroundType:()=>H.value,setBackgroundType:t=>{H.value=t},isScrollLocked:()=>k.value,setScrollLock:t=>{k.value=t,a.value&&(t?R():F())},getAnimationClasses:()=>({enter:p.value,leave:f.value}),setAnimationClasses:t=>{"enter"in t&&(p.value=t.enter||""),"leave"in t&&(f.value=t.leave||"")},reload:()=>n.reloadHisonComponent(P)},n.hisonCloser.component.modalList[c]=B.value,m("mounted",B.value)},me=()=>{n.unregisterReloadable(P),delete n.hisonCloser.component.modalList[c],a.value&&F()};return e.onMounted(de),e.onBeforeUnmount(me),e.watch(I,t=>{q(),m("responsive-change",t)}),e.watch(()=>o.visible,t=>{const l=!!t;l&&!a.value?A():!l&&a.value&&b()}),e.watch(()=>o.headerVisible,t=>{const l=!!t;l!==u.value&&(u.value=l)}),e.watch(()=>o.footerVisible,t=>{const l=!!t;l!==C.value&&(C.value=l)}),e.watch(()=>o.closeButtonVisible,t=>{const l=!!t;l!==v.value&&(v.value=l)}),e.watch(()=>o.caption,t=>{const l=t??null;l!==h.value&&(h.value=l)}),e.watch(()=>o.captionBorder,t=>{const l=!!t;l!==S.value&&(S.value=l)}),e.watch(()=>o.captionBackgroundType,t=>{t&&t!==w.value&&(w.value=t)}),e.watch(()=>o.closeButtonBorder,t=>{const l=!!t;l!==T.value&&(T.value=l)}),e.watch(()=>o.closeButtonBackgroundType,t=>{t&&t!==V.value&&(V.value=t)}),e.watch(()=>o.closeButtonPlacement,t=>{t&&t!==s.value&&(s.value=t)}),e.watch(()=>o.captionPlacement,t=>{t&&t!==r.value&&(r.value=t)}),e.watch(()=>o.closeClickOverlay,t=>{const l=!!t;l!==$.value&&($.value=l)}),e.watch(()=>o.showOverlay,t=>{const l=!!t;l!==L.value&&(L.value=l)}),e.watch(()=>o.scrollLock,t=>{const l=!!t;l!==k.value&&(k.value=l,a.value&&(l?R():F()))}),e.watch(()=>o.border,t=>{const l=!!t;l!==N.value&&(N.value=l)}),e.watch(()=>o.backgroundType,t=>{t&&t!==H.value&&(H.value=t)}),e.watch(()=>o.zIndex,t=>{const l=Number(t??1300);l!==y.value&&(y.value=l)}),e.watch(()=>o.position,t=>{t&&t!==z.value&&(z.value=t)}),e.watch(()=>o.enterAnimationClass,t=>{const l=t||"hison-modal-enter";l!==p.value&&(p.value=l)}),e.watch(()=>o.leaveAnimationClass,t=>{const l=t||"hison-modal-leave";l!==f.value&&(f.value=l)}),e.watch(()=>o.class,()=>{q()}),{id:c,props:o,modalRef:Y,modalWrapperRef:d,caption:h,responsiveClassList:O,visibleClass:pe,borderClass:ke,backgroundTypeClass:fe,isOverlayVisible:Be,headerVisibleComputed:Se,footerVisibleComputed:we,headerHasLeft:_,headerHasCenter:x,headerHasRight:ee,showHeaderCaptionLeft:Z,showHeaderCaptionCenter:G,showHeaderCaptionRight:K,showHeaderCloseLeft:X,showHeaderCloseCenter:J,showHeaderCloseRight:Q,footerHasLeft:re,footerHasCenter:ie,footerHasRight:ce,showFooterCaptionLeft:oe,showFooterCaptionCenter:te,showFooterCaptionRight:le,showFooterCloseLeft:ne,showFooterCloseCenter:ae,showFooterCloseRight:se,childClassList:ye,overlayStyleWithZ:he,wrapperStyle:ve,onOverlayClick:Te,onClickCloseButton:Ve,modalMethods:e.computed(()=>e.unref(B)),closeButtonVisible:v,buttonPlacement:s,captionPlacement:r,closeButtonText:o.closeButtonText,closeButtonTitle:o.closeButtonTitle,closeButtonBorder:T,closeButtonBackgroundType:V,captionBorder:S,captionBackgroundType:w}}});function Pe(o,m,E,c,P,I){const d=e.resolveComponent("HLabel"),a=e.resolveComponent("HButton"),u=e.resolveComponent("HLayout");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hison-layer-host",o.visibleClass])},[o.isOverlayVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"hison-modal-overlay",style:e.normalizeStyle(o.overlayStyleWithZ),onClick:m[0]||(m[0]=(...C)=>o.onOverlayClick&&o.onOverlayClick(...C))},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref:"modalWrapperRef",class:e.normalizeClass(["hison-modal-wrapper",...o.responsiveClassList]),style:e.normalizeStyle(o.wrapperStyle)},[e.createElementVNode("div",{ref:"modalRef",class:e.normalizeClass(["hison-modal",o.borderClass,o.backgroundTypeClass]),style:e.normalizeStyle(o.props.style),role:"dialog"},[o.headerVisibleComputed?(e.openBlock(),e.createBlock(u,{key:0,id:`hison_modal_header_layout_${o.id}`,class:e.normalizeClass(["hison-modal-header",...o.childClassList])},{default:e.withCtx(()=>[o.$slots.header?e.renderSlot(o.$slots,"header",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.headerHasLeft?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.showHeaderCaptionLeft?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-left","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showHeaderCloseLeft?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"header-left"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-left","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.headerHasCenter?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.showHeaderCaptionCenter?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-center","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showHeaderCloseCenter?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"header-center"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-center","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.headerHasRight?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[o.showHeaderCaptionRight?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-right","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showHeaderCloseRight?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"header-right"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-right","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))]),_:3},8,["id","class"])):e.createCommentVNode("",!0),e.createVNode(u,{id:`hison_modal_body_layout_${o.id}`,class:e.normalizeClass(["hison-modal-body",...o.childClassList])},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},8,["id","class"]),o.footerVisibleComputed?(e.openBlock(),e.createBlock(u,{key:1,id:`hison_modal_footer_layout_${o.id}`,class:e.normalizeClass(["hison-modal-footer",...o.childClassList])},{default:e.withCtx(()=>[o.$slots.footer?e.renderSlot(o.$slots,"footer",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.footerHasLeft?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.showFooterCaptionLeft?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-left","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showFooterCloseLeft?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"footer-left"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-left","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.footerHasCenter?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.showFooterCaptionCenter?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-center","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showFooterCloseCenter?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"footer-center"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-center","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.footerHasRight?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[o.showFooterCaptionRight?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-right","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showFooterCloseRight?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"footer-right"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-right","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))]),_:3},8,["id","class"])):e.createCommentVNode("",!0)],6)],6)],2)}const Oe=Ne._export_sfc(ze,[["render",Pe]]);exports.default=Oe;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-CwePYZaW.js"),Ce=require("./scrollManager-CEEWQwoK.js"),Ne=require("./_plugin-vue_export-helper-BHFhmbuH.js"),He={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!1},border:{type:Boolean,default:!0},backgroundType:{type:String,default:n.BackgroundType.empty,validator:o=>n.BACKGROUND_TYPE_VALUES.includes(o)},zIndex:{type:Number,default:1300},position:{type:String,default:n.ScreenPosition.middleCenter,validator:o=>n.SCREEN_POSITION_VALUES.includes(o)},headerVisible:{type:Boolean,default:!0},footerVisible:{type:Boolean,default:!0},caption:{type:String,default:null},captionBorder:{type:Boolean,default:!1},captionBackgroundType:{type:String,default:n.BackgroundType.filled,validator:o=>n.BACKGROUND_TYPE_VALUES.includes(o)},captionPlacement:{type:String,default:"header-center"},closeButtonVisible:{type:Boolean,default:!0},closeButtonText:{type:String,default:"X"},closeButtonTitle:{type:String,default:"close"},closeButtonBorder:{type:Boolean,default:!0},closeButtonBackgroundType:{type:String,default:n.BackgroundType.empty,validator:o=>n.BACKGROUND_TYPE_VALUES.includes(o)},closeButtonPlacement:{type:String,default:"footer-right"},closeClickOverlay:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},overlayStyle:{type:[String,Object,Array],required:!1},scrollLock:{type:Boolean,default:!0},enterAnimationClass:{type:String,required:!1},leaveAnimationClass:{type:String,required:!1}},ze=e.defineComponent({name:"HModal",props:He,inheritAttrs:!1,emits:["mounted","responsive-change","open","close"],setup(o,{emit:m,slots:E}){const c=o.id||n.getUUID(),P=`hmodal:${c}`,I=n.useDevice(),d=e.ref(null),a=e.ref(o.visible),u=e.ref(o.headerVisible),C=e.ref(o.footerVisible),v=e.ref(o.closeButtonVisible),h=e.ref(o.caption??null),S=e.ref(o.captionBorder),w=e.ref(o.captionBackgroundType),T=e.ref(o.closeButtonBorder),V=e.ref(o.closeButtonBackgroundType),$=e.ref(o.closeClickOverlay),L=e.ref(o.showOverlay),k=e.ref(o.scrollLock),N=e.ref(o.border),H=e.ref(o.backgroundType||n.BackgroundType.empty),s=e.ref(o.closeButtonPlacement),r=e.ref(o.captionPlacement),y=e.ref(o.zIndex??1e3),z=e.ref(o.position),ve=e.computed(()=>{const t={zIndex:y.value};switch(t.left="",t.right="",t.top="",t.bottom="",t.transform="none",z.value){case n.ScreenPosition.topLeft:t.left="0",t.top="0";break;case n.ScreenPosition.topCenter:t.left="50%",t.top="0",t.transform="translateX(-50%)";break;case n.ScreenPosition.topRight:t.right="0",t.top="0";break;case n.ScreenPosition.middleLeft:t.left="0",t.top="50%",t.transform="translateY(-50%)";break;case n.ScreenPosition.middleCenter:t.left="50%",t.top="50%",t.transform="translate(-50%, -50%)";break;case n.ScreenPosition.middleRight:t.right="0",t.top="50%",t.transform="translateY(-50%)";break;case n.ScreenPosition.bottomLeft:t.left="0",t.bottom="0";break;case n.ScreenPosition.bottomCenter:t.left="50%",t.bottom="0",t.transform="translateX(-50%)";break;case n.ScreenPosition.bottomRight:t.right="0",t.bottom="0";break}return t}),he=e.computed(()=>{const l={zIndex:(y.value??1e3)-1},g=o.overlayStyle;return g?Array.isArray(g)?[{...l},...g]:typeof g=="string"?[l,g]:{...l,...g}:l}),pe=e.computed(()=>a.value?"":"hison-display-none"),fe=e.computed(()=>{switch(H.value){case"transparent":return"hison-bg-transparent";case"filled":return"hison-bg-filled";default:return"hison-bg-empty"}}),ke=e.computed(()=>N.value?"hison-border":""),O=e.ref([]),q=()=>{O.value=n.extractResponsiveClasses(n.toClassString(o.class)||"",I.value),n.addComponentNameToClass(O.value,"size",n.hisonCloser.componentStyle.size),n.addComponentNameToClass(O.value,"color","primary")},ye=e.computed(()=>[...n.extractPrefixedClasses(n.toClassString(o.class)||"","size"),...n.extractPrefixedClasses(n.toClassString(o.class)||"","color")]),Be=e.computed(()=>a.value&&L.value),be=e.computed(()=>!!E.header),ge=e.computed(()=>!!E.footer),i=t=>t.split("-")[1]||"left",j=e.computed(()=>!!(h.value&&h.value.trim().length)),U=e.computed(()=>j.value&&r.value.startsWith("header")),W=e.computed(()=>v.value&&s.value.startsWith("header")),Z=e.computed(()=>U.value&&i(r.value)==="left"),G=e.computed(()=>U.value&&i(r.value)==="center"),K=e.computed(()=>U.value&&i(r.value)==="right"),X=e.computed(()=>W.value&&i(s.value)==="left"),J=e.computed(()=>W.value&&i(s.value)==="center"),Q=e.computed(()=>W.value&&i(s.value)==="right"),_=e.computed(()=>Z.value||X.value),x=e.computed(()=>G.value||J.value),ee=e.computed(()=>K.value||Q.value),M=e.computed(()=>j.value&&r.value.startsWith("footer")),D=e.computed(()=>v.value&&s.value.startsWith("footer")),oe=e.computed(()=>M.value&&i(r.value)==="left"),te=e.computed(()=>M.value&&i(r.value)==="center"),le=e.computed(()=>M.value&&i(r.value)==="right"),ne=e.computed(()=>D.value&&i(s.value)==="left"),ae=e.computed(()=>D.value&&i(s.value)==="center"),se=e.computed(()=>D.value&&i(s.value)==="right"),re=e.computed(()=>oe.value||ne.value),ie=e.computed(()=>te.value||ae.value),ce=e.computed(()=>le.value||se.value),Se=e.computed(()=>u.value&&(be.value||_.value||x.value||ee.value)),we=e.computed(()=>C.value&&(ge.value||re.value||ie.value||ce.value)),R=()=>{k.value&&Ce.acquireScrollLock(c)},F=()=>{k.value&&Ce.releaseScrollLock(c)},B=e.ref(null),Te=t=>{$.value&&b()},Ve=t=>{b()},p=e.ref(o.enterAnimationClass||"hison-modal-enter"),f=e.ref(o.leaveAnimationClass||"hison-modal-leave"),Y=e.ref(null),ue=async()=>{const t=Y.value;!t||!p.value||(t.classList.remove(f.value),t.offsetWidth,t.classList.add(p.value))},$e=async()=>{const t=Y.value;!t||!f.value||(t.classList.remove(p.value),t.offsetWidth,t.classList.add(f.value),await new Promise(l=>setTimeout(l,200)))},A=async()=>{a.value||(a.value=!0,R(),await e.nextTick(),ue(),m("open",e.unref(B)))},b=async()=>{if(a.value)try{await $e()}finally{a.value=!1,F(),m("close",e.unref(B))}},Le=async()=>a.value?b():A(),de=()=>{n.hisonCloser.component.modalList[c]&&n.hisonCloser.component.modalList[c].isHisonvueComponent&&console.warn(`[Hisonvue] The modal ID is at risk of being duplicated. ${c}`),n.registerReloadable(P,()=>{me(),e.nextTick(de)}),q(),a.value&&(R(),e.nextTick(ue)),B.value={isHisonvueComponent:!0,getId:()=>c,getType:()=>"modal",isVisible:()=>a.value,open:A,close:b,toggle:Le,setVisible:t=>t?A():b(),getZIndex:()=>y.value,setZIndex:t=>{y.value=t},getPosition:()=>z.value,setPosition:t=>{z.value=t},isHeaderVisible:()=>u.value,setHeaderVisible:t=>{u.value=t},isFooterVisible:()=>C.value,setFooterVisible:t=>{C.value=t},getCaption:()=>h.value||"",setCaption:t=>{h.value=t},isCaptionBorder:()=>S.value,setCaptionBorder:t=>{S.value=t},getCaptionBackgroundType:()=>w.value,setCaptionBackgroundType:t=>{w.value=t},isCloseButtonVisible:()=>v.value,setCloseButtonVisible:t=>{v.value=t},isCloseButtonBorder:()=>T.value,setCloseButtonBorder:t=>{T.value=t},getCloseButtonBackgroundType:()=>V.value,setCloseButtonBackgroundType:t=>{V.value=t},getButtonPlacement:()=>s.value,setButtonPlacement:t=>{s.value=t},getCaptionPlacement:()=>r.value,setCaptionPlacement:t=>{r.value=t},isCloseClickOverlay:()=>$.value,setCloseClickOverlay:t=>{$.value=t},isOverlayShown:()=>L.value,setOverlayShown:t=>{L.value=t},isBorder:()=>N.value,setBorder:t=>{N.value=t},getBackgroundType:()=>H.value,setBackgroundType:t=>{H.value=t},isScrollLocked:()=>k.value,setScrollLock:t=>{k.value=t,a.value&&(t?R():F())},getAnimationClasses:()=>({enter:p.value,leave:f.value}),setAnimationClasses:t=>{"enter"in t&&(p.value=t.enter||""),"leave"in t&&(f.value=t.leave||"")},reload:()=>n.reloadHisonComponent(P)},n.hisonCloser.component.modalList[c]=B.value,m("mounted",B.value)},me=()=>{n.unregisterReloadable(P),delete n.hisonCloser.component.modalList[c],a.value&&F()};return e.onMounted(de),e.onBeforeUnmount(me),e.watch(I,t=>{q(),m("responsive-change",t)}),e.watch(()=>o.visible,t=>{const l=!!t;l&&!a.value?A():!l&&a.value&&b()}),e.watch(()=>o.headerVisible,t=>{const l=!!t;l!==u.value&&(u.value=l)}),e.watch(()=>o.footerVisible,t=>{const l=!!t;l!==C.value&&(C.value=l)}),e.watch(()=>o.closeButtonVisible,t=>{const l=!!t;l!==v.value&&(v.value=l)}),e.watch(()=>o.caption,t=>{const l=t??null;l!==h.value&&(h.value=l)}),e.watch(()=>o.captionBorder,t=>{const l=!!t;l!==S.value&&(S.value=l)}),e.watch(()=>o.captionBackgroundType,t=>{t&&t!==w.value&&(w.value=t)}),e.watch(()=>o.closeButtonBorder,t=>{const l=!!t;l!==T.value&&(T.value=l)}),e.watch(()=>o.closeButtonBackgroundType,t=>{t&&t!==V.value&&(V.value=t)}),e.watch(()=>o.closeButtonPlacement,t=>{t&&t!==s.value&&(s.value=t)}),e.watch(()=>o.captionPlacement,t=>{t&&t!==r.value&&(r.value=t)}),e.watch(()=>o.closeClickOverlay,t=>{const l=!!t;l!==$.value&&($.value=l)}),e.watch(()=>o.showOverlay,t=>{const l=!!t;l!==L.value&&(L.value=l)}),e.watch(()=>o.scrollLock,t=>{const l=!!t;l!==k.value&&(k.value=l,a.value&&(l?R():F()))}),e.watch(()=>o.border,t=>{const l=!!t;l!==N.value&&(N.value=l)}),e.watch(()=>o.backgroundType,t=>{t&&t!==H.value&&(H.value=t)}),e.watch(()=>o.zIndex,t=>{const l=Number(t??1300);l!==y.value&&(y.value=l)}),e.watch(()=>o.position,t=>{t&&t!==z.value&&(z.value=t)}),e.watch(()=>o.enterAnimationClass,t=>{const l=t||"hison-modal-enter";l!==p.value&&(p.value=l)}),e.watch(()=>o.leaveAnimationClass,t=>{const l=t||"hison-modal-leave";l!==f.value&&(f.value=l)}),e.watch(()=>o.class,()=>{q()}),{id:c,props:o,modalRef:Y,modalWrapperRef:d,caption:h,responsiveClassList:O,visibleClass:pe,borderClass:ke,backgroundTypeClass:fe,isOverlayVisible:Be,headerVisibleComputed:Se,footerVisibleComputed:we,headerHasLeft:_,headerHasCenter:x,headerHasRight:ee,showHeaderCaptionLeft:Z,showHeaderCaptionCenter:G,showHeaderCaptionRight:K,showHeaderCloseLeft:X,showHeaderCloseCenter:J,showHeaderCloseRight:Q,footerHasLeft:re,footerHasCenter:ie,footerHasRight:ce,showFooterCaptionLeft:oe,showFooterCaptionCenter:te,showFooterCaptionRight:le,showFooterCloseLeft:ne,showFooterCloseCenter:ae,showFooterCloseRight:se,childClassList:ye,overlayStyleWithZ:he,wrapperStyle:ve,onOverlayClick:Te,onClickCloseButton:Ve,modalMethods:e.computed(()=>e.unref(B)),closeButtonVisible:v,buttonPlacement:s,captionPlacement:r,closeButtonText:o.closeButtonText,closeButtonTitle:o.closeButtonTitle,closeButtonBorder:T,closeButtonBackgroundType:V,captionBorder:S,captionBackgroundType:w}}});function Pe(o,m,E,c,P,I){const d=e.resolveComponent("HLabel"),a=e.resolveComponent("HButton"),u=e.resolveComponent("HLayout");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hison-layer-host",o.visibleClass])},[o.isOverlayVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"hison-modal-overlay",style:e.normalizeStyle(o.overlayStyleWithZ),onClick:m[0]||(m[0]=(...C)=>o.onOverlayClick&&o.onOverlayClick(...C))},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref:"modalWrapperRef",class:e.normalizeClass(["hison-modal-wrapper",...o.responsiveClassList]),style:e.normalizeStyle(o.wrapperStyle)},[e.createElementVNode("div",{ref:"modalRef",class:e.normalizeClass(["hison-modal",o.borderClass,o.backgroundTypeClass]),style:e.normalizeStyle(o.props.style),role:"dialog"},[o.headerVisibleComputed?(e.openBlock(),e.createBlock(u,{key:0,id:`hison_modal_header_layout_${o.id}`,class:e.normalizeClass(["hison-modal-header",...o.childClassList])},{default:e.withCtx(()=>[o.$slots.header?e.renderSlot(o.$slots,"header",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.headerHasLeft?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.showHeaderCaptionLeft?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-left","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showHeaderCloseLeft?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"header-left"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-left","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.headerHasCenter?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.showHeaderCaptionCenter?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-center","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showHeaderCloseCenter?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"header-center"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-center","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.headerHasRight?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[o.showHeaderCaptionRight?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-right","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showHeaderCloseRight?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"header-right"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-right","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))]),_:3},8,["id","class"])):e.createCommentVNode("",!0),e.createVNode(u,{id:`hison_modal_body_layout_${o.id}`,class:e.normalizeClass(["hison-modal-body",...o.childClassList])},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},8,["id","class"]),o.footerVisibleComputed?(e.openBlock(),e.createBlock(u,{key:1,id:`hison_modal_footer_layout_${o.id}`,class:e.normalizeClass(["hison-modal-footer",...o.childClassList])},{default:e.withCtx(()=>[o.$slots.footer?e.renderSlot(o.$slots,"footer",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.footerHasLeft?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.showFooterCaptionLeft?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-left","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showFooterCloseLeft?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"footer-left"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-left","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.footerHasCenter?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.showFooterCaptionCenter?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-center","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showFooterCloseCenter?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"footer-center"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-center","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.footerHasRight?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[o.showFooterCaptionRight?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-right","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showFooterCloseRight?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"footer-right"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-right","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))]),_:3},8,["id","class"])):e.createCommentVNode("",!0)],6)],6)],2)}const Oe=Ne._export_sfc(ze,[["render",Pe]]);exports.default=Oe;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as K, ref as u, computed as v, onMounted as J, onBeforeUnmount as $, watch as c, nextTick as Y, triggerRef as X, createElementBlock as Z, openBlock as Q, normalizeStyle as p, normalizeClass as ee, createElementVNode as te, mergeProps as ne } from "vue";
2
- import { _ as oe, $ as ie, y as h, h as f, g as le, u as ce, e as fe, t as re, o as O, a as ae, l as s, F as ue, v as F, r as Be, c as ke, d as de } from "./index-lqOpF_Ng.mjs";
2
+ import { _ as oe, $ as ie, y as h, h as f, g as le, u as ce, e as fe, t as re, o as O, a as ae, l as s, F as ue, v as F, r as Be, c as ke, d as de } from "./index-C3MEbk_F.mjs";
3
3
  import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
4
  const Ae = {
5
5
  /**
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),l=require("./index-nNWQ7mcU.js"),z=require("./_plugin-vue_export-helper-BHFhmbuH.js"),q={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},editMode:{type:String,default:l.EditMode.editable,validator:e=>["editable","disable","readonly"].includes(e)},noteModeByDevice:{type:String,required:!1,validator:e=>e==null||l.NOTE_MODE_BY_DEVICE_VALUES.includes(e)},toolPosition:{type:String,required:!1,validator:e=>e==null||l.TOOL_POSITION_VALUES.includes(e)},toolDefaultLine:{type:Number,required:!1},toolToggle:{type:Boolean,default:!1},textareaWidth:{type:String,required:!1},textareaHeight:{type:String,required:!1},textareaMaxWidth:{type:String,required:!1},textareaMaxHeight:{type:String,required:!1},textareaHeightIsModify:{type:Boolean,default:!1},placeholderIsVisible:{type:Boolean,default:!1},placeholderAddTop:{type:Number,required:!1},placeholderAddLeft:{type:Number,required:!1},placeholderWidth:{type:String,required:!1},placeholderColor:{type:String,required:!1},placeholderBackgroundColor:{type:String,required:!1},placeholderTitle:{type:String,required:!1},placeholderTextContent:{type:String,required:!1},attFilePreventTypes:{type:String,required:!1},attFileAcceptTypes:{type:String,required:!1},attFileMaxSize:{type:Number,required:!1,default:20*1024*1024},attImagePreventTypes:{type:String,required:!1},attImageAcceptTypes:{type:String,required:!1},attImageMaxSize:{type:Number,required:!1,default:20*1024*1024},defaultFontSize:{type:Number,required:!1},defaultLineHeight:{type:Number,required:!1},defaultFontFamily:{type:String,required:!1},defaultToolFontFamily:{type:String,required:!1},addFontFamily:{type:String,required:!1},removeFontFamily:{type:String,required:!1},language:{type:String,required:!1},recodeLimit:{type:String,required:!1},sizeLevelDesktop:{type:Number,required:!1},sizeLevelMobile:{type:Number,required:!1},color:{type:String,required:!1},invertColor:{type:Boolean,default:!1},usingParagraphStyle:{type:Boolean,default:!0},usingBold:{type:Boolean,default:!0},usingUnderline:{type:Boolean,default:!0},usingItalic:{type:Boolean,default:!0},usingUl:{type:Boolean,default:!0},usingOl:{type:Boolean,default:!0},usingTextAlign:{type:Boolean,default:!0},usingAttLink:{type:Boolean,default:!0},usingAttFile:{type:Boolean,default:!0},usingAttImage:{type:Boolean,default:!0},usingAttVideo:{type:Boolean,default:!0},usingFontSize:{type:Boolean,default:!0},usingLetterSpacing:{type:Boolean,default:!0},usingLineHeight:{type:Boolean,default:!0},usingFontFamily:{type:Boolean,default:!0},usingColorText:{type:Boolean,default:!0},usingColorBack:{type:Boolean,default:!0},usingFormatClear:{type:Boolean,default:!0},usingUndo:{type:Boolean,default:!0},usingRedo:{type:Boolean,default:!0},usingHelp:{type:Boolean,default:!0},usingParagraphAllStyle:{type:Boolean,default:!0},usingCharacterStyle:{type:Boolean,default:!0},usingCharacterSize:{type:Boolean,default:!0},usingAttachFile:{type:Boolean,default:!0},usingDo:{type:Boolean,default:!0},required:{type:Boolean,default:!1},modelValue:{type:Object,required:!1},tabIndex:{type:[Number,String],default:null,validator:e=>e===null||e===""||!isNaN(+e)&&isFinite(+e)}},G={textareaBeforeClick:Function,textareaAfterClick:Function,textareaBeforeFocus:Function,textareaAfterFocus:Function,textareaBeforeBlur:Function,textareaAfterBlur:Function,paragraphStyleSelectBeforeClick:Function,paragraphStyleSelectAfterClick:Function,toolToggleBeforeClick:Function,toolToggleAfterClick:Function,styleNomalBeforeClick:Function,styleNomalAfterClick:Function,styleHeader1BeforeClick:Function,styleHeader1AfterClick:Function,styleHeader2BeforeClick:Function,styleHeader2AfterClick:Function,styleHeader3BeforeClick:Function,styleHeader3AfterClick:Function,styleHeader4BeforeClick:Function,styleHeader4AfterClick:Function,styleHeader5BeforeClick:Function,styleHeader5AfterClick:Function,styleHeader6BeforeClick:Function,styleHeader6AfterClick:Function,boldBeforeClick:Function,boldAfterClick:Function,underlineBeforeClick:Function,underlineAfterClick:Function,italicBeforeClick:Function,italicAfterClick:Function,ulBeforeClick:Function,ulAfterClick:Function,olBeforeClick:Function,olAfterClick:Function,textAlignSelectBeforeClick:Function,textAlignSelectAfterClick:Function,textAlignLeftBeforeClick:Function,textAlignLeftAfterClick:Function,textAlignCenterBeforeClick:Function,textAlignCenterAfterClick:Function,textAlignRightBeforeClick:Function,textAlignRightAfterClick:Function,attLinkBeforeClick:Function,attLinkAfterClick:Function,attFileBeforeClick:Function,attFileAfterClick:Function,attImageBeforeClick:Function,attImageAfterClick:Function,attVideoBeforeClick:Function,attVideoAfterClick:Function,fontSizeBoxBeforeClick:Function,fontSizeBoxAfterClick:Function,fontSizeBeforeClick:Function,fontSizeAfterClick:Function,fontSizeBeforeInput:Function,fontSizeAfterInput:Function,fontSizeBeforeBlur:Function,fontSizeAfterBlur:Function,letterSpacingBoxBeforeClick:Function,letterSpacingBoxAfterClick:Function,letterSpacingBeforeClick:Function,letterSpacingAfterClick:Function,letterSpacingBeforeInput:Function,letterSpacingAfterInput:Function,letterSpacingBeforeBlur:Function,letterSpacingAfterBlur:Function,lineHeightBoxBeforeClick:Function,lineHeightBoxAfterClick:Function,lineHeightBeforeClick:Function,lineHeightAfterClick:Function,lineHeightBeforeInput:Function,lineHeightAfterInput:Function,lineHeightBeforeBlur:Function,lineHeightAfterBlur:Function,fontFamilySelectBeforeClick:Function,fontFamilySelectAfterClick:Function,colorTextSelectBeforeClick:Function,colorTextSelectAfterClick:Function,colorTextSelectBoxBeforeClick:Function,colorTextSelectBoxAfterClick:Function,colorText0BeforeClick:Function,colorText0AfterClick:Function,colorText1BeforeClick:Function,colorText1AfterClick:Function,colorText2BeforeClick:Function,colorText2AfterClick:Function,colorText3BeforeClick:Function,colorText3AfterClick:Function,colorText4BeforeClick:Function,colorText4AfterClick:Function,colorText5BeforeClick:Function,colorText5AfterClick:Function,colorText6BeforeClick:Function,colorText6AfterClick:Function,colorText7BeforeClick:Function,colorText7AfterClick:Function,colorTextRBeforeClick:Function,colorTextRAfterClick:Function,colorTextRBeforeInput:Function,colorTextRAfterInput:Function,colorTextRBeforeBlur:Function,colorTextRAfterBlur:Function,colorTextGBeforeClick:Function,colorTextGAfterClick:Function,colorTextGBeforeInput:Function,colorTextGAfterInput:Function,colorTextGBeforeBlur:Function,colorTextGAfterBlur:Function,colorTextBBeforeClick:Function,colorTextBAfterClick:Function,colorTextBBeforeInput:Function,colorTextBAfterInput:Function,colorTextBBeforeBlur:Function,colorTextBAfterBlur:Function,colorTextOpacityBeforeClick:Function,colorTextOpacityAfterClick:Function,colorTextOpacityBeforeInput:Function,colorTextOpacityAfterInput:Function,colorTextOpacityBeforeBlur:Function,colorTextOpacityAfterBlur:Function,colorBackSelectBeforeClick:Function,colorBackSelectAfterClick:Function,colorBackSelectBoxBeforeClick:Function,colorBackSelectBoxAfterClick:Function,colorBack0BeforeClick:Function,colorBack0AfterClick:Function,colorBack1BeforeClick:Function,colorBack1AfterClick:Function,colorBack2BeforeClick:Function,colorBack2AfterClick:Function,colorBack3BeforeClick:Function,colorBack3AfterClick:Function,colorBack4BeforeClick:Function,colorBack4AfterClick:Function,colorBack5BeforeClick:Function,colorBack5AfterClick:Function,colorBack6BeforeClick:Function,colorBack6AfterClick:Function,colorBack7BeforeClick:Function,colorBack7AfterClick:Function,colorBackRBeforeClick:Function,colorBackRAfterClick:Function,colorBackRBeforeInput:Function,colorBackRAfterInput:Function,colorBackRBeforeBlur:Function,colorBackRAfterBlur:Function,colorBackGBeforeClick:Function,colorBackGAfterClick:Function,colorBackGBeforeInput:Function,colorBackGAfterInput:Function,colorBackGBeforeBlur:Function,colorBackGAfterBlur:Function,colorBackBBeforeClick:Function,colorBackBAfterClick:Function,colorBackBBeforeInput:Function,colorBackBAfterInput:Function,colorBackBBeforeBlur:Function,colorBackBAfterBlur:Function,colorBackOpacityBeforeClick:Function,colorBackOpacityAfterClick:Function,colorBackOpacityBeforeInput:Function,colorBackOpacityAfterInput:Function,colorBackOpacityBeforeBlur:Function,colorBackOpacityAfterBlur:Function,formatClearBeforeClick:Function,formatClearAfterClick:Function,undoBeforeClick:Function,undoAfterClick:Function,redoBeforeClick:Function,redoAfterClick:Function,helpBeforeClick:Function,helpAfterClick:Function,modalBackBeforeClick:Function,modalBackAfterClick:Function,attLinkModalBeforeClick:Function,attLinkModalAfterClick:Function,attLinkTextBeforeInput:Function,attLinkTextAfterInput:Function,attLinkTextBeforeBlur:Function,attLinkTextAfterBlur:Function,attLinkHrefBeforeInput:Function,attLinkHrefAfterInput:Function,attLinkHrefBeforeBlur:Function,attLinkHrefAfterBlur:Function,attLinkInsertBeforeClick:Function,attLinkInsertAfterClick:Function,attFileModalBeforeClick:Function,attFileModalAfterClick:Function,attFileUploadBeforeClick:Function,attFileUploadAfterClick:Function,attFileUploadDivBeforeDragover:Function,attFileUploadDivAfterDragover:Function,attFileUploadDivBeforeDrop:Function,attFileUploadDivAfterDrop:Function,attFileUploadDivBeforeClick:Function,attFileUploadDivAfterClick:Function,attFileUploadBeforeInput:Function,attFileUploadAfterInput:Function,attFileUploadBeforeBlur:Function,attFileUploadAfterBlur:Function,attFileInsertBeforeClick:Function,attFileInsertAfterClick:Function,attLinkTooltipEditBeforeClick:Function,attLinkTooltipEditAfterClick:Function,attLinkTooltipUnlinkBeforeClick:Function,attLinkTooltipUnlinkAfterClick:Function,attImageModalBeforeClick:Function,attImageModalAfterClick:Function,attImageUploadViewBeforeDragover:Function,attImageUploadViewAfterDragover:Function,attImageUploadViewBeforeDrop:Function,attImageUploadViewAfterDrop:Function,attImageUploadViewBeforeClick:Function,attImageUploadViewAfterClick:Function,attImageViewPreBeforeClick:Function,attImageViewPreAfterClick:Function,attImageViewNextBeforeClick:Function,attImageViewNextAfterClick:Function,attImageUploadBeforeInput:Function,attImageUploadAfterInput:Function,attImageUploadBeforeBlur:Function,attImageUploadAfterBlur:Function,attImageURLBeforeInput:Function,attImageURLAfterInput:Function,attImageURLBeforeBlur:Function,attImageURLAfterBlur:Function,attImageInsertBeforeClick:Function,attImageInsertAfterClick:Function,attVideoModalBeforeClick:Function,attVideoModalAfterClick:Function,attVideoEmbedIdBeforeInput:Function,attVideoEmbedIdAfterInput:Function,attVideoEmbedIdBeforeBlur:Function,attVideoEmbedIdAfterBlur:Function,attVideoWidthBeforeInput:Function,attVideoWidthAfterInput:Function,attVideoWidthBeforeBlur:Function,attVideoWidthAfterBlur:Function,attVideoHeightBeforeInput:Function,attVideoHeightAfterInput:Function,attVideoHeightBeforeBlur:Function,attVideoHeightAfterBlur:Function,attVideoInsertBeforeClick:Function,attVideoInsertAfterClick:Function,attImageAndVideoTooltipWidthBeforeInput:Function,attImageAndVideoTooltipWidthAfterInput:Function,attImageAndVideoTooltipWidthBeforeBlur:Function,attImageAndVideoTooltipWidthAfterBlur:Function,attImageAndVideoTooltipWidthBeforeKeyup:Function,attImageAndVideoTooltipWidthAfterKeyup:Function,attImageAndVideoTooltipFloatRadioNoneBeforeClick:Function,attImageAndVideoTooltipFloatRadioNoneAfterClick:Function,attImageAndVideoTooltipFloatRadioLeftBeforeClick:Function,attImageAndVideoTooltipFloatRadioLeftAfterClick:Function,attImageAndVideoTooltipFloatRadioRightBeforeClick:Function,attImageAndVideoTooltipFloatRadioRightAfterClick:Function,attImageAndVideoTooltipShapeRadioSquareBeforeClick:Function,attImageAndVideoTooltipShapeRadioSquareAfterClick:Function,attImageAndVideoTooltipShapeRadioRadiusBeforeClick:Function,attImageAndVideoTooltipShapeRadioRadiusAfterClick:Function,attImageAndVideoTooltipShapeRadioCircleBeforeClick:Function,attImageAndVideoTooltipShapeRadioCircleAfterClick:Function,helpModalBeforeClick:Function,helpModalAfterClick:Function,placeholderBeforeClick:Function,placeholderAfterClick:Function},W=i.defineComponent({name:"HNote",props:{...q,...G},emits:["update:modelValue","mounted","responsive-change"],setup(e,{emit:y}){const A=l.hisonCloser.note,B=i.ref(null),r=i.ref(null),k=e.id?e.id:l.getUUID(),I=`hnote:${k}`,m=i.ref(e.required),R=i.computed(()=>{if(m.value)return"hison-note-required"}),x=l.useDevice(),_=i.ref(e.visible),L=i.computed(()=>_.value?"":"hison-display-none"),u=i.ref(e.editMode),H=i.computed(()=>{if(u.value!==l.EditMode.editable)return`hison-note-${u.value}`}),v=i.ref(!1),d=i.ref(e.tabIndex!==null&&e.tabIndex!==""?Number(e.tabIndex):null),T=(o,t)=>{if(!o)return;const f=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]","[tabindex]"].join(",");o.querySelectorAll(f).forEach(c=>{t?c.setAttribute("tabindex","-1"):c.getAttribute("tabindex")==="-1"&&c.removeAttribute("tabindex")})},F=()=>{const o=r.value;if(!o)return;const t=o._elements.textarea;u.value!==l.EditMode.editable?(t.removeAttribute("contenteditable"),t.removeAttribute("role"),t.removeAttribute("aria-multiline"),t.removeAttribute("spellcheck"),t.removeAttribute("autocorrect"),T(o,!0)):(t.setAttribute("contenteditable","true"),t.setAttribute("role","textbox"),t.setAttribute("aria-multiline","true"),t.setAttribute("spellcheck","true"),t.setAttribute("autocorrect","true"),T(o,!1))},E=i.ref([]),U=["modelValue","id","class","style","visible","editMode"],s=i.ref(0),D=()=>{i.triggerRef(s)},O=i.computed(()=>{s.value;const o=l.extractResponsiveClasses(l.toClassString(e.class)||"",x.value),t=l.getSpecificClassValueFromClassList(o,"color"),f=l.getSpecificClassValueFromClassList(o,"size");l.getIndexSpecificClassNameFromClassList(o,"col")===-1&&o.push("hison-col-12"),E.value=o;const n={};n["data-id"]=k;for(const[c,C]of Object.entries(e))U.includes(c)||C!=null&&(n[c.replace(/[A-Z]/g,g=>"-"+g.toLowerCase())]=String(C));return n["size-level-desktop"]=n["size-level-desktop"]&&l.hison.utils.isNumber(n["size-level-desktop"])?String(Math.min(Math.max(Number(n["size-level-desktop"]),1),9)):h(3,f),n["size-level-mobile"]=n["size-level-mobile"]&&l.hison.utils.isNumber(n["size-level-mobile"])?String(Math.min(Math.max(Number(n["size-level-mobile"]),1),9)):h(5,f),t&&!n.color&&(n.color=t),n.color&&(n.color=l.getHexCodeFromColorText(n.color)??n.color,n["main-color"]=n.color,delete n.color),(e.invertColor||l.hisonCloser.componentStyle.invertColor)&&(n["invert-color"]="true"),n}),h=(o,t)=>{switch(t=t??l.hisonCloser.componentStyle.size,t){case l.Size.s:o-=2;break;case l.Size.m:break;case l.Size.l:o+=2;break;case l.Size.xl:o+=3;break}return String(Math.min(Math.max(o,1),9))},S=new MutationObserver(o=>{var n;const t=(n=o[0])==null?void 0:n.target;!t||!M(t)||w()}),M=o=>{var f;let t=o;for(;!(t instanceof Element);)t=t.parentNode;return((f=t.closest)==null?void 0:f.call(t,"[data-vanillanote]"))||null},N=(o,t)=>{if(!o||!t||o.html!==t.html||o.plainText!==t.plainText||JSON.stringify(o.links)!==JSON.stringify(t.links)||JSON.stringify(o.files)!==JSON.stringify(t.files)||JSON.stringify(o.images)!==JSON.stringify(t.images)||JSON.stringify(o.videos)!==JSON.stringify(t.videos))return!1;const f=Object.keys(o.fileObjects||{}),n=Object.keys(t.fileObjects||{});if(f.length!==n.length||!f.every(g=>n.includes(g)))return!1;const c=Object.keys(o.imageObjects||{}),C=Object.keys(t.imageObjects||{});return!(c.length!==C.length||!c.every(g=>C.includes(g)))},w=()=>{r.value&&(v.value=!0,y("update:modelValue",r.value.getNoteData()))},a=()=>{b(),D(),i.nextTick(V)},V=()=>{var f;if(l.registerReloadable(I,a),A.init(),!B.value)return;A.mountNote(B.value);const o=A.getNote(k);o.getId=()=>k,r.value=o;const t=r.value;if(e.modelValue&&t&&t.setNoteData(e.modelValue),d.value&&t._elements.textarea&&t._elements.textarea.setAttribute("tabIndex",String(d.value)),t&&(t.isHisonvueComponent=!0,t.getId=()=>k,t.getType=()=>"note",t.getRequired=()=>m.value,t.setRequired=n=>{m.value=n},t.isVisible=()=>_.value,t.setVisible=n=>{_.value=n},t.getEditMode=()=>u.value,t.setEditMode=n=>{u.value=n,F()},t.isModified=()=>v.value,t.initModified=()=>v.value=!1,t.getTabIndex=()=>d.value,t.setTabIndex=n=>{d.value=n!=null?Number(n):null},t.focus=()=>{var n,c;(c=(n=t._elements)==null?void 0:n.textarea)==null||c.focus()},t.getDataModel=()=>{const n=t.getNoteData();return new l.hison.data.DataModel(n)},t.setDataModel=n=>{if(!n||n.getRowCount()==0)return;const c={html:n.hasColumn("html")?n.getValue(0,"html"):"",plainText:n.hasColumn("plainText")?n.getValue(0,"plainText"):"",links:n.hasColumn("links")?n.getValue(0,"links"):[],files:n.hasColumn("files")?n.getValue(0,"files"):[],images:n.hasColumn("images")?n.getValue(0,"images"):[],videos:n.hasColumn("videos")?n.getValue(0,"videos"):[],fileObjects:n.hasColumn("fileObjects")?n.getValue(0,"fileObjects"):{},imageObjects:n.hasColumn("imageObjects")?n.getValue(0,"imageObjects"):{}};return t.setNoteData(c)},t.load=n=>{n&&n.getIsDataModel&&n.getIsDataModel()?t.setDataModel(n):t.setNoteData(n)},t.reload=()=>l.reloadHisonComponent(I)),t){const n=(f=t._elements)==null?void 0:f.textarea;S.observe(n,{characterData:!0,childList:!0,subtree:!0})}t&&(t._cssEvents.target_onBeforeClick=l.hisonCloser.event.cssEvent.button_onBeforeClick,t._cssEvents.target_onAfterClick=l.hisonCloser.event.cssEvent.button_onAfterClick,t._cssEvents.target_onBeforeMouseover=l.hisonCloser.event.cssEvent.button_onBeforeMouseover,t._cssEvents.target_onAfterMouseover=l.hisonCloser.event.cssEvent.button_onAfterMouseover,t._cssEvents.target_onBeforeMouseout=l.hisonCloser.event.cssEvent.button_onBeforeMouseout,t._cssEvents.target_onAfterMouseout=l.hisonCloser.event.cssEvent.button_onAfterMouseout,t._cssEvents.target_onBeforeTouchstart=l.hisonCloser.event.cssEvent.button_onBeforeTouchstart,t._cssEvents.target_onAfterTouchstart=l.hisonCloser.event.cssEvent.button_onAfterTouchstart,t._cssEvents.target_onBeforeTouchend=l.hisonCloser.event.cssEvent.button_onBeforeTouchend,t._cssEvents.target_onAfterTouchend=l.hisonCloser.event.cssEvent.button_onAfterTouchend,typeof e.textareaBeforeClick=="function"&&(t._elementEvents.textarea_onBeforeClick=e.textareaBeforeClick),typeof e.textareaAfterClick=="function"&&(t._elementEvents.textarea_onAfterClick=e.textareaAfterClick),typeof e.textareaBeforeFocus=="function"&&(t._elementEvents.textarea_onBeforeFocus=e.textareaBeforeFocus),typeof e.textareaAfterFocus=="function"&&(t._elementEvents.textarea_onAfterFocus=e.textareaAfterFocus),typeof e.textareaBeforeBlur=="function"&&(t._elementEvents.textarea_onBeforeBlur=e.textareaBeforeBlur),typeof e.textareaAfterBlur=="function"&&(t._elementEvents.textarea_onAfterBlur=e.textareaAfterBlur),typeof e.paragraphStyleSelectBeforeClick=="function"&&(t._elementEvents.paragraphStyleSelect_onBeforeClick=e.paragraphStyleSelectBeforeClick),typeof e.paragraphStyleSelectAfterClick=="function"&&(t._elementEvents.paragraphStyleSelect_onAfterClick=e.paragraphStyleSelectAfterClick),typeof e.toolToggleBeforeClick=="function"&&(t._elementEvents.toolToggleButton_onBeforeClick=e.toolToggleBeforeClick),typeof e.toolToggleAfterClick=="function"&&(t._elementEvents.toolToggleButton_onAfterClick=e.toolToggleAfterClick),typeof e.styleNomalBeforeClick=="function"&&(t._elementEvents.styleNomal_onBeforeClick=e.styleNomalBeforeClick),typeof e.styleNomalAfterClick=="function"&&(t._elementEvents.styleNomal_onAfterClick=e.styleNomalAfterClick),typeof e.styleHeader1BeforeClick=="function"&&(t._elementEvents.styleHeader1_onBeforeClick=e.styleHeader1BeforeClick),typeof e.styleHeader1AfterClick=="function"&&(t._elementEvents.styleHeader1_onAfterClick=e.styleHeader1AfterClick),typeof e.styleHeader2BeforeClick=="function"&&(t._elementEvents.styleHeader2_onBeforeClick=e.styleHeader2BeforeClick),typeof e.styleHeader2AfterClick=="function"&&(t._elementEvents.styleHeader2_onAfterClick=e.styleHeader2AfterClick),typeof e.styleHeader3BeforeClick=="function"&&(t._elementEvents.styleHeader3_onBeforeClick=e.styleHeader3BeforeClick),typeof e.styleHeader3AfterClick=="function"&&(t._elementEvents.styleHeader3_onAfterClick=e.styleHeader3AfterClick),typeof e.styleHeader4BeforeClick=="function"&&(t._elementEvents.styleHeader4_onBeforeClick=e.styleHeader4BeforeClick),typeof e.styleHeader4AfterClick=="function"&&(t._elementEvents.styleHeader4_onAfterClick=e.styleHeader4AfterClick),typeof e.styleHeader5BeforeClick=="function"&&(t._elementEvents.styleHeader5_onBeforeClick=e.styleHeader5BeforeClick),typeof e.styleHeader5AfterClick=="function"&&(t._elementEvents.styleHeader5_onAfterClick=e.styleHeader5AfterClick),typeof e.styleHeader6BeforeClick=="function"&&(t._elementEvents.styleHeader6_onBeforeClick=e.styleHeader6BeforeClick),typeof e.styleHeader6AfterClick=="function"&&(t._elementEvents.styleHeader6_onAfterClick=e.styleHeader6AfterClick),typeof e.boldBeforeClick=="function"&&(t._elementEvents.boldButton_onBeforeClick=e.boldBeforeClick),typeof e.boldAfterClick=="function"&&(t._elementEvents.boldButton_onAfterClick=e.boldAfterClick),typeof e.underlineBeforeClick=="function"&&(t._elementEvents.underlineButton_onBeforeClick=e.underlineBeforeClick),typeof e.underlineAfterClick=="function"&&(t._elementEvents.underlineButton_onAfterClick=e.underlineAfterClick),typeof e.italicBeforeClick=="function"&&(t._elementEvents.italicButton_onBeforeClick=e.italicBeforeClick),typeof e.italicAfterClick=="function"&&(t._elementEvents.italicButton_onAfterClick=e.italicAfterClick),typeof e.ulBeforeClick=="function"&&(t._elementEvents.ulButton_onBeforeClick=e.ulBeforeClick),typeof e.ulAfterClick=="function"&&(t._elementEvents.ulButton_onAfterClick=e.ulAfterClick),typeof e.olBeforeClick=="function"&&(t._elementEvents.olButton_onBeforeClick=e.olBeforeClick),typeof e.olAfterClick=="function"&&(t._elementEvents.olButton_onAfterClick=e.olAfterClick),typeof e.textAlignSelectBeforeClick=="function"&&(t._elementEvents.textAlignSelect_onBeforeClick=e.textAlignSelectBeforeClick),typeof e.textAlignSelectAfterClick=="function"&&(t._elementEvents.textAlignSelect_onAfterClick=e.textAlignSelectAfterClick),typeof e.textAlignLeftBeforeClick=="function"&&(t._elementEvents.textAlignLeft_onBeforeClick=e.textAlignLeftBeforeClick),typeof e.textAlignLeftAfterClick=="function"&&(t._elementEvents.textAlignLeft_onAfterClick=e.textAlignLeftAfterClick),typeof e.textAlignCenterBeforeClick=="function"&&(t._elementEvents.textAlignCenter_onBeforeClick=e.textAlignCenterBeforeClick),typeof e.textAlignCenterAfterClick=="function"&&(t._elementEvents.textAlignCenter_onAfterClick=e.textAlignCenterAfterClick),typeof e.textAlignRightBeforeClick=="function"&&(t._elementEvents.textAlignRight_onBeforeClick=e.textAlignRightBeforeClick),typeof e.textAlignRightAfterClick=="function"&&(t._elementEvents.textAlignRight_onAfterClick=e.textAlignRightAfterClick),typeof e.attLinkBeforeClick=="function"&&(t._elementEvents.attLinkButton_onBeforeClick=e.attLinkBeforeClick),typeof e.attLinkAfterClick=="function"&&(t._elementEvents.attLinkButton_onAfterClick=e.attLinkAfterClick),typeof e.attFileBeforeClick=="function"&&(t._elementEvents.attFileButton_onBeforeClick=e.attFileBeforeClick),typeof e.attFileAfterClick=="function"&&(t._elementEvents.attFileButton_onAfterClick=e.attFileAfterClick),typeof e.attImageBeforeClick=="function"&&(t._elementEvents.attImageButton_onBeforeClick=e.attImageBeforeClick),typeof e.attImageAfterClick=="function"&&(t._elementEvents.attImageButton_onAfterClick=e.attImageAfterClick),typeof e.attVideoBeforeClick=="function"&&(t._elementEvents.attVideoButton_onBeforeClick=e.attVideoBeforeClick),typeof e.attVideoAfterClick=="function"&&(t._elementEvents.attVideoButton_onAfterClick=e.attVideoAfterClick),typeof e.fontSizeBoxBeforeClick=="function"&&(t._elementEvents.fontSizeInputBox_onBeforeClick=e.fontSizeBoxBeforeClick),typeof e.fontSizeBoxAfterClick=="function"&&(t._elementEvents.fontSizeInputBox_onAfterClick=e.fontSizeBoxAfterClick),typeof e.fontSizeBeforeClick=="function"&&(t._elementEvents.fontSizeInput_onBeforeClick=e.fontSizeBeforeClick),typeof e.fontSizeAfterClick=="function"&&(t._elementEvents.fontSizeInput_onAfterClick=e.fontSizeAfterClick),typeof e.fontSizeBeforeInput=="function"&&(t._elementEvents.fontSizeInput_onBeforeInput=e.fontSizeBeforeInput),typeof e.fontSizeAfterInput=="function"&&(t._elementEvents.fontSizeInput_onAfterInput=e.fontSizeAfterInput),typeof e.fontSizeBeforeBlur=="function"&&(t._elementEvents.fontSizeInput_onBeforeBlur=e.fontSizeBeforeBlur),typeof e.fontSizeAfterBlur=="function"&&(t._elementEvents.fontSizeInput_onAfterBlur=e.fontSizeAfterBlur),typeof e.letterSpacingBoxBeforeClick=="function"&&(t._elementEvents.letterSpacingInputBox_onBeforeClick=e.letterSpacingBoxBeforeClick),typeof e.letterSpacingBoxAfterClick=="function"&&(t._elementEvents.letterSpacingInputBox_onAfterClick=e.letterSpacingBoxAfterClick),typeof e.letterSpacingBeforeClick=="function"&&(t._elementEvents.letterSpacingInput_onBeforeClick=e.letterSpacingBeforeClick),typeof e.letterSpacingAfterClick=="function"&&(t._elementEvents.letterSpacingInput_onAfterClick=e.letterSpacingAfterClick),typeof e.letterSpacingBeforeInput=="function"&&(t._elementEvents.letterSpacingInput_onBeforeInput=e.letterSpacingBeforeInput),typeof e.letterSpacingAfterInput=="function"&&(t._elementEvents.letterSpacingInput_onAfterInput=e.letterSpacingAfterInput),typeof e.letterSpacingBeforeBlur=="function"&&(t._elementEvents.letterSpacingInput_onBeforeBlur=e.letterSpacingBeforeBlur),typeof e.letterSpacingAfterBlur=="function"&&(t._elementEvents.letterSpacingInput_onAfterBlur=e.letterSpacingAfterBlur),typeof e.lineHeightBoxBeforeClick=="function"&&(t._elementEvents.lineHeightInputBox_onBeforeClick=e.lineHeightBoxBeforeClick),typeof e.lineHeightBoxAfterClick=="function"&&(t._elementEvents.lineHeightInputBox_onAfterClick=e.lineHeightBoxAfterClick),typeof e.lineHeightBeforeClick=="function"&&(t._elementEvents.lineHeightInput_onBeforeClick=e.lineHeightBeforeClick),typeof e.lineHeightAfterClick=="function"&&(t._elementEvents.lineHeightInput_onAfterClick=e.lineHeightAfterClick),typeof e.lineHeightBeforeInput=="function"&&(t._elementEvents.lineHeightInput_onBeforeInput=e.lineHeightBeforeInput),typeof e.lineHeightAfterInput=="function"&&(t._elementEvents.lineHeightInput_onAfterInput=e.lineHeightAfterInput),typeof e.lineHeightBeforeBlur=="function"&&(t._elementEvents.lineHeightInput_onBeforeBlur=e.lineHeightBeforeBlur),typeof e.lineHeightAfterBlur=="function"&&(t._elementEvents.lineHeightInput_onAfterBlur=e.lineHeightAfterBlur),typeof e.fontFamilySelectBeforeClick=="function"&&(t._elementEvents.fontFamilySelect_onBeforeClick=e.fontFamilySelectBeforeClick),typeof e.fontFamilySelectAfterClick=="function"&&(t._elementEvents.fontFamilySelect_onAfterClick=e.fontFamilySelectAfterClick),typeof e.colorTextSelectBeforeClick=="function"&&(t._elementEvents.colorTextSelect_onBeforeClick=e.colorTextSelectBeforeClick),typeof e.colorTextSelectAfterClick=="function"&&(t._elementEvents.colorTextSelect_onAfterClick=e.colorTextSelectAfterClick),typeof e.colorTextSelectBoxBeforeClick=="function"&&(t._elementEvents.colorTextSelectBox_onBeforeClick=e.colorTextSelectBoxBeforeClick),typeof e.colorTextSelectBoxAfterClick=="function"&&(t._elementEvents.colorTextSelectBox_onAfterClick=e.colorTextSelectBoxAfterClick),typeof e.colorText0BeforeClick=="function"&&(t._elementEvents.colorText0_onBeforeClick=e.colorText0BeforeClick),typeof e.colorText0AfterClick=="function"&&(t._elementEvents.colorText0_onAfterClick=e.colorText0AfterClick),typeof e.colorText1BeforeClick=="function"&&(t._elementEvents.colorText1_onBeforeClick=e.colorText1BeforeClick),typeof e.colorText1AfterClick=="function"&&(t._elementEvents.colorText1_onAfterClick=e.colorText1AfterClick),typeof e.colorText2BeforeClick=="function"&&(t._elementEvents.colorText2_onBeforeClick=e.colorText2BeforeClick),typeof e.colorText2AfterClick=="function"&&(t._elementEvents.colorText2_onAfterClick=e.colorText2AfterClick),typeof e.colorText3BeforeClick=="function"&&(t._elementEvents.colorText3_onBeforeClick=e.colorText3BeforeClick),typeof e.colorText3AfterClick=="function"&&(t._elementEvents.colorText3_onAfterClick=e.colorText3AfterClick),typeof e.colorText4BeforeClick=="function"&&(t._elementEvents.colorText4_onBeforeClick=e.colorText4BeforeClick),typeof e.colorText4AfterClick=="function"&&(t._elementEvents.colorText4_onAfterClick=e.colorText4AfterClick),typeof e.colorText5BeforeClick=="function"&&(t._elementEvents.colorText5_onBeforeClick=e.colorText5BeforeClick),typeof e.colorText5AfterClick=="function"&&(t._elementEvents.colorText5_onAfterClick=e.colorText5AfterClick),typeof e.colorText6BeforeClick=="function"&&(t._elementEvents.colorText6_onBeforeClick=e.colorText6BeforeClick),typeof e.colorText6AfterClick=="function"&&(t._elementEvents.colorText6_onAfterClick=e.colorText6AfterClick),typeof e.colorText7BeforeClick=="function"&&(t._elementEvents.colorText7_onBeforeClick=e.colorText7BeforeClick),typeof e.colorText7AfterClick=="function"&&(t._elementEvents.colorText7_onAfterClick=e.colorText7AfterClick),typeof e.colorTextRBeforeClick=="function"&&(t._elementEvents.colorTextRInput_onBeforeClick=e.colorTextRBeforeClick),typeof e.colorTextRAfterClick=="function"&&(t._elementEvents.colorTextRInput_onAfterClick=e.colorTextRAfterClick),typeof e.colorTextRBeforeInput=="function"&&(t._elementEvents.colorTextRInput_onBeforeInput=e.colorTextRBeforeInput),typeof e.colorTextRAfterInput=="function"&&(t._elementEvents.colorTextRInput_onAfterInput=e.colorTextRAfterInput),typeof e.colorTextRBeforeBlur=="function"&&(t._elementEvents.colorTextRInput_onBeforeBlur=e.colorTextRBeforeBlur),typeof e.colorTextRAfterBlur=="function"&&(t._elementEvents.colorTextRInput_onAfterBlur=e.colorTextRAfterBlur),typeof e.colorTextGBeforeClick=="function"&&(t._elementEvents.colorTextGInput_onBeforeClick=e.colorTextGBeforeClick),typeof e.colorTextGAfterClick=="function"&&(t._elementEvents.colorTextGInput_onAfterClick=e.colorTextGAfterClick),typeof e.colorTextGBeforeInput=="function"&&(t._elementEvents.colorTextGInput_onBeforeInput=e.colorTextGBeforeInput),typeof e.colorTextGAfterInput=="function"&&(t._elementEvents.colorTextGInput_onAfterInput=e.colorTextGAfterInput),typeof e.colorTextGBeforeBlur=="function"&&(t._elementEvents.colorTextGInput_onBeforeBlur=e.colorTextGBeforeBlur),typeof e.colorTextGAfterBlur=="function"&&(t._elementEvents.colorTextGInput_onAfterBlur=e.colorTextGAfterBlur),typeof e.colorTextBBeforeClick=="function"&&(t._elementEvents.colorTextBInput_onBeforeClick=e.colorTextBBeforeClick),typeof e.colorTextBAfterClick=="function"&&(t._elementEvents.colorTextBInput_onAfterClick=e.colorTextBAfterClick),typeof e.colorTextBBeforeInput=="function"&&(t._elementEvents.colorTextBInput_onBeforeInput=e.colorTextBBeforeInput),typeof e.colorTextBAfterInput=="function"&&(t._elementEvents.colorTextBInput_onAfterInput=e.colorTextBAfterInput),typeof e.colorTextBBeforeBlur=="function"&&(t._elementEvents.colorTextBInput_onBeforeBlur=e.colorTextBBeforeBlur),typeof e.colorTextBAfterBlur=="function"&&(t._elementEvents.colorTextBInput_onAfterBlur=e.colorTextBAfterBlur),typeof e.colorTextOpacityBeforeClick=="function"&&(t._elementEvents.colorTextOpacityInput_onBeforeClick=e.colorTextOpacityBeforeClick),typeof e.colorTextOpacityAfterClick=="function"&&(t._elementEvents.colorTextOpacityInput_onAfterClick=e.colorTextOpacityAfterClick),typeof e.colorTextOpacityBeforeInput=="function"&&(t._elementEvents.colorTextOpacityInput_onBeforeInput=e.colorTextOpacityBeforeInput),typeof e.colorTextOpacityAfterInput=="function"&&(t._elementEvents.colorTextOpacityInput_onAfterInput=e.colorTextOpacityAfterInput),typeof e.colorTextOpacityBeforeBlur=="function"&&(t._elementEvents.colorTextOpacityInput_onBeforeBlur=e.colorTextOpacityBeforeBlur),typeof e.colorTextOpacityAfterBlur=="function"&&(t._elementEvents.colorTextOpacityInput_onAfterBlur=e.colorTextOpacityAfterBlur),typeof e.colorBackSelectBeforeClick=="function"&&(t._elementEvents.colorBackSelect_onBeforeClick=e.colorBackSelectBeforeClick),typeof e.colorBackSelectAfterClick=="function"&&(t._elementEvents.colorBackSelect_onAfterClick=e.colorBackSelectAfterClick),typeof e.colorBackSelectBoxBeforeClick=="function"&&(t._elementEvents.colorBackSelectBox_onBeforeClick=e.colorBackSelectBoxBeforeClick),typeof e.colorBackSelectBoxAfterClick=="function"&&(t._elementEvents.colorBackSelectBox_onAfterClick=e.colorBackSelectBoxAfterClick),typeof e.colorBack0BeforeClick=="function"&&(t._elementEvents.colorBack0_onBeforeClick=e.colorBack0BeforeClick),typeof e.colorBack0AfterClick=="function"&&(t._elementEvents.colorBack0_onAfterClick=e.colorBack0AfterClick),typeof e.colorBack1BeforeClick=="function"&&(t._elementEvents.colorBack1_onBeforeClick=e.colorBack1BeforeClick),typeof e.colorBack1AfterClick=="function"&&(t._elementEvents.colorBack1_onAfterClick=e.colorBack1AfterClick),typeof e.colorBack2BeforeClick=="function"&&(t._elementEvents.colorBack2_onBeforeClick=e.colorBack2BeforeClick),typeof e.colorBack2AfterClick=="function"&&(t._elementEvents.colorBack2_onAfterClick=e.colorBack2AfterClick),typeof e.colorBack3BeforeClick=="function"&&(t._elementEvents.colorBack3_onBeforeClick=e.colorBack3BeforeClick),typeof e.colorBack3AfterClick=="function"&&(t._elementEvents.colorBack3_onAfterClick=e.colorBack3AfterClick),typeof e.colorBack4BeforeClick=="function"&&(t._elementEvents.colorBack4_onBeforeClick=e.colorBack4BeforeClick),typeof e.colorBack4AfterClick=="function"&&(t._elementEvents.colorBack4_onAfterClick=e.colorBack4AfterClick),typeof e.colorBack5BeforeClick=="function"&&(t._elementEvents.colorBack5_onBeforeClick=e.colorBack5BeforeClick),typeof e.colorBack5AfterClick=="function"&&(t._elementEvents.colorBack5_onAfterClick=e.colorBack5AfterClick),typeof e.colorBack6BeforeClick=="function"&&(t._elementEvents.colorBack6_onBeforeClick=e.colorBack6BeforeClick),typeof e.colorBack6AfterClick=="function"&&(t._elementEvents.colorBack6_onAfterClick=e.colorBack6AfterClick),typeof e.colorBack7BeforeClick=="function"&&(t._elementEvents.colorBack7_onBeforeClick=e.colorBack7BeforeClick),typeof e.colorBack7AfterClick=="function"&&(t._elementEvents.colorBack7_onAfterClick=e.colorBack7AfterClick),typeof e.colorBackRBeforeClick=="function"&&(t._elementEvents.colorBackRInput_onBeforeClick=e.colorBackRBeforeClick),typeof e.colorBackRAfterClick=="function"&&(t._elementEvents.colorBackRInput_onAfterClick=e.colorBackRAfterClick),typeof e.colorBackRBeforeInput=="function"&&(t._elementEvents.colorBackRInput_onBeforeInput=e.colorBackRBeforeInput),typeof e.colorBackRAfterInput=="function"&&(t._elementEvents.colorBackRInput_onAfterInput=e.colorBackRAfterInput),typeof e.colorBackRBeforeBlur=="function"&&(t._elementEvents.colorBackRInput_onBeforeBlur=e.colorBackRBeforeBlur),typeof e.colorBackRAfterBlur=="function"&&(t._elementEvents.colorBackRInput_onAfterBlur=e.colorBackRAfterBlur),typeof e.colorBackGBeforeClick=="function"&&(t._elementEvents.colorBackGInput_onBeforeClick=e.colorBackGBeforeClick),typeof e.colorBackGAfterClick=="function"&&(t._elementEvents.colorBackGInput_onAfterClick=e.colorBackGAfterClick),typeof e.colorBackGBeforeInput=="function"&&(t._elementEvents.colorBackGInput_onBeforeInput=e.colorBackGBeforeInput),typeof e.colorBackGAfterInput=="function"&&(t._elementEvents.colorBackGInput_onAfterInput=e.colorBackGAfterInput),typeof e.colorBackGBeforeBlur=="function"&&(t._elementEvents.colorBackGInput_onBeforeBlur=e.colorBackGBeforeBlur),typeof e.colorBackGAfterBlur=="function"&&(t._elementEvents.colorBackGInput_onAfterBlur=e.colorBackGAfterBlur),typeof e.colorBackBBeforeClick=="function"&&(t._elementEvents.colorBackBInput_onBeforeClick=e.colorBackBBeforeClick),typeof e.colorBackBAfterClick=="function"&&(t._elementEvents.colorBackBInput_onAfterClick=e.colorBackBAfterClick),typeof e.colorBackBBeforeInput=="function"&&(t._elementEvents.colorBackBInput_onBeforeInput=e.colorBackBBeforeInput),typeof e.colorBackBAfterInput=="function"&&(t._elementEvents.colorBackBInput_onAfterInput=e.colorBackBAfterInput),typeof e.colorBackBBeforeBlur=="function"&&(t._elementEvents.colorBackBInput_onBeforeBlur=e.colorBackBBeforeBlur),typeof e.colorBackBAfterBlur=="function"&&(t._elementEvents.colorBackBInput_onAfterBlur=e.colorBackBAfterBlur),typeof e.colorBackOpacityBeforeClick=="function"&&(t._elementEvents.colorBackOpacityInput_onBeforeClick=e.colorBackOpacityBeforeClick),typeof e.colorBackOpacityAfterClick=="function"&&(t._elementEvents.colorBackOpacityInput_onAfterClick=e.colorBackOpacityAfterClick),typeof e.colorBackOpacityBeforeInput=="function"&&(t._elementEvents.colorBackOpacityInput_onBeforeInput=e.colorBackOpacityBeforeInput),typeof e.colorBackOpacityAfterInput=="function"&&(t._elementEvents.colorBackOpacityInput_onAfterInput=e.colorBackOpacityAfterInput),typeof e.colorBackOpacityBeforeBlur=="function"&&(t._elementEvents.colorBackOpacityInput_onBeforeBlur=e.colorBackOpacityBeforeBlur),typeof e.colorBackOpacityAfterBlur=="function"&&(t._elementEvents.colorBackOpacityInput_onAfterBlur=e.colorBackOpacityAfterBlur),typeof e.formatClearBeforeClick=="function"&&(t._elementEvents.formatClearButton_onBeforeClick=e.formatClearBeforeClick),typeof e.formatClearAfterClick=="function"&&(t._elementEvents.formatClearButton_onAfterClick=e.formatClearAfterClick),typeof e.undoBeforeClick=="function"&&(t._elementEvents.undoButton_onBeforeClick=e.undoBeforeClick),typeof e.undoAfterClick=="function"&&(t._elementEvents.undoButton_onAfterClick=e.undoAfterClick),typeof e.redoBeforeClick=="function"&&(t._elementEvents.redoButton_onBeforeClick=e.redoBeforeClick),typeof e.redoAfterClick=="function"&&(t._elementEvents.redoButton_onAfterClick=e.redoAfterClick),typeof e.helpBeforeClick=="function"&&(t._elementEvents.helpButton_onBeforeClick=e.helpBeforeClick),typeof e.helpAfterClick=="function"&&(t._elementEvents.helpButton_onAfterClick=e.helpAfterClick),typeof e.modalBackBeforeClick=="function"&&(t._elementEvents.modalBack_onBeforeClick=e.modalBackBeforeClick),typeof e.modalBackAfterClick=="function"&&(t._elementEvents.modalBack_onAfterClick=e.modalBackAfterClick),typeof e.attLinkModalBeforeClick=="function"&&(t._elementEvents.attLinkModal_onBeforeClick=e.attLinkModalBeforeClick),typeof e.attLinkModalAfterClick=="function"&&(t._elementEvents.attLinkModal_onAfterClick=e.attLinkModalAfterClick),typeof e.attLinkTextBeforeInput=="function"&&(t._elementEvents.attLinkText_onBeforeInput=e.attLinkTextBeforeInput),typeof e.attLinkTextAfterInput=="function"&&(t._elementEvents.attLinkText_onAfterInput=e.attLinkTextAfterInput),typeof e.attLinkTextBeforeBlur=="function"&&(t._elementEvents.attLinkText_onBeforeBlur=e.attLinkTextBeforeBlur),typeof e.attLinkTextAfterBlur=="function"&&(t._elementEvents.attLinkText_onAfterBlur=e.attLinkTextAfterBlur),typeof e.attLinkHrefBeforeInput=="function"&&(t._elementEvents.attLinkHref_onBeforeInput=e.attLinkHrefBeforeInput),typeof e.attLinkHrefAfterInput=="function"&&(t._elementEvents.attLinkHref_onAfterInput=e.attLinkHrefAfterInput),typeof e.attLinkHrefBeforeBlur=="function"&&(t._elementEvents.attLinkHref_onBeforeBlur=e.attLinkHrefBeforeBlur),typeof e.attLinkHrefAfterBlur=="function"&&(t._elementEvents.attLinkHref_onAfterBlur=e.attLinkHrefAfterBlur),typeof e.attLinkInsertBeforeClick=="function"&&(t._elementEvents.attLinkInsertButton_onBeforeClick=e.attLinkInsertBeforeClick),typeof e.attLinkInsertAfterClick=="function"&&(t._elementEvents.attLinkInsertButton_onAfterClick=e.attLinkInsertAfterClick),typeof e.attFileModalBeforeClick=="function"&&(t._elementEvents.attFileModal_onBeforeClick=e.attFileModalBeforeClick),typeof e.attFileModalAfterClick=="function"&&(t._elementEvents.attFileModal_onAfterClick=e.attFileModalAfterClick),typeof e.attFileUploadBeforeClick=="function"&&(t._elementEvents.attFileUploadButton_onBeforeClick=e.attFileUploadBeforeClick),typeof e.attFileUploadAfterClick=="function"&&(t._elementEvents.attFileUploadButton_onAfterClick=e.attFileUploadAfterClick),typeof e.attFileUploadDivBeforeDragover=="function"&&(t._elementEvents.attFileUploadDiv_onBeforeDragover=e.attFileUploadDivBeforeDragover),typeof e.attFileUploadDivAfterDragover=="function"&&(t._elementEvents.attFileUploadDiv_onAfterDragover=e.attFileUploadDivAfterDragover),typeof e.attFileUploadDivBeforeDrop=="function"&&(t._elementEvents.attFileUploadDiv_onBeforeDrop=e.attFileUploadDivBeforeDrop),typeof e.attFileUploadDivAfterDrop=="function"&&(t._elementEvents.attFileUploadDiv_onAfterDrop=e.attFileUploadDivAfterDrop),typeof e.attFileUploadDivBeforeClick=="function"&&(t._elementEvents.attFileUploadDiv_onBeforeClick=e.attFileUploadDivBeforeClick),typeof e.attFileUploadDivAfterClick=="function"&&(t._elementEvents.attFileUploadDiv_onAfterClick=e.attFileUploadDivAfterClick),typeof e.attFileUploadBeforeInput=="function"&&(t._elementEvents.attFileUpload_onBeforeInput=e.attFileUploadBeforeInput),typeof e.attFileUploadAfterInput=="function"&&(t._elementEvents.attFileUpload_onAfterInput=e.attFileUploadAfterInput),typeof e.attFileUploadBeforeBlur=="function"&&(t._elementEvents.attFileUpload_onBeforeBlur=e.attFileUploadBeforeBlur),typeof e.attFileUploadAfterBlur=="function"&&(t._elementEvents.attFileUpload_onAfterBlur=e.attFileUploadAfterBlur),typeof e.attFileInsertBeforeClick=="function"&&(t._elementEvents.attFileInsertButton_onBeforeClick=e.attFileInsertBeforeClick),typeof e.attFileInsertAfterClick=="function"&&(t._elementEvents.attFileInsertButton_onAfterClick=e.attFileInsertAfterClick),typeof e.attLinkTooltipEditBeforeClick=="function"&&(t._elementEvents.attLinkTooltipEditButton_onBeforeClick=e.attLinkTooltipEditBeforeClick),typeof e.attLinkTooltipEditAfterClick=="function"&&(t._elementEvents.attLinkTooltipEditButton_onAfterClick=e.attLinkTooltipEditAfterClick),typeof e.attLinkTooltipUnlinkBeforeClick=="function"&&(t._elementEvents.attLinkTooltipUnlinkButton_onBeforeClick=e.attLinkTooltipUnlinkBeforeClick),typeof e.attLinkTooltipUnlinkAfterClick=="function"&&(t._elementEvents.attLinkTooltipUnlinkButton_onAfterClick=e.attLinkTooltipUnlinkAfterClick),typeof e.attImageModalBeforeClick=="function"&&(t._elementEvents.attImageModal_onBeforeClick=e.attImageModalBeforeClick),typeof e.attImageModalAfterClick=="function"&&(t._elementEvents.attImageModal_onAfterClick=e.attImageModalAfterClick),typeof e.attImageUploadViewBeforeDragover=="function"&&(t._elementEvents.attImageUploadButtonAndView_onBeforeDragover=e.attImageUploadViewBeforeDragover),typeof e.attImageUploadViewAfterDragover=="function"&&(t._elementEvents.attImageUploadButtonAndView_onAfterDragover=e.attImageUploadViewAfterDragover),typeof e.attImageUploadViewBeforeDrop=="function"&&(t._elementEvents.attImageUploadButtonAndView_onBeforeDrop=e.attImageUploadViewBeforeDrop),typeof e.attImageUploadViewAfterDrop=="function"&&(t._elementEvents.attImageUploadButtonAndView_onAfterDrop=e.attImageUploadViewAfterDrop),typeof e.attImageUploadViewBeforeClick=="function"&&(t._elementEvents.attImageUploadButtonAndView_onBeforeClick=e.attImageUploadViewBeforeClick),typeof e.attImageUploadViewAfterClick=="function"&&(t._elementEvents.attImageUploadButtonAndView_onAfterClick=e.attImageUploadViewAfterClick),typeof e.attImageViewPreBeforeClick=="function"&&(t._elementEvents.attImageViewPreButton_onBeforeClick=e.attImageViewPreBeforeClick),typeof e.attImageViewPreAfterClick=="function"&&(t._elementEvents.attImageViewPreButton_onAfterClick=e.attImageViewPreAfterClick),typeof e.attImageViewNextBeforeClick=="function"&&(t._elementEvents.attImageViewNextButton_onBeforeClick=e.attImageViewNextBeforeClick),typeof e.attImageViewNextAfterClick=="function"&&(t._elementEvents.attImageViewNextButton_onAfterClick=e.attImageViewNextAfterClick),typeof e.attImageUploadBeforeInput=="function"&&(t._elementEvents.attImageUpload_onBeforeInput=e.attImageUploadBeforeInput),typeof e.attImageUploadAfterInput=="function"&&(t._elementEvents.attImageUpload_onAfterInput=e.attImageUploadAfterInput),typeof e.attImageUploadBeforeBlur=="function"&&(t._elementEvents.attImageUpload_onBeforeBlur=e.attImageUploadBeforeBlur),typeof e.attImageUploadAfterBlur=="function"&&(t._elementEvents.attImageUpload_onAfterBlur=e.attImageUploadAfterBlur),typeof e.attImageURLBeforeInput=="function"&&(t._elementEvents.attImageURL_onBeforeInput=e.attImageURLBeforeInput),typeof e.attImageURLAfterInput=="function"&&(t._elementEvents.attImageURL_onAfterInput=e.attImageURLAfterInput),typeof e.attImageURLBeforeBlur=="function"&&(t._elementEvents.attImageURL_onBeforeBlur=e.attImageURLBeforeBlur),typeof e.attImageURLAfterBlur=="function"&&(t._elementEvents.attImageURL_onAfterBlur=e.attImageURLAfterBlur),typeof e.attImageInsertBeforeClick=="function"&&(t._elementEvents.attImageInsertButton_onBeforeClick=e.attImageInsertBeforeClick),typeof e.attImageInsertAfterClick=="function"&&(t._elementEvents.attImageInsertButton_onAfterClick=e.attImageInsertAfterClick),typeof e.attVideoModalBeforeClick=="function"&&(t._elementEvents.attVideoModal_onBeforeClick=e.attVideoModalBeforeClick),typeof e.attVideoModalAfterClick=="function"&&(t._elementEvents.attVideoModal_onAfterClick=e.attVideoModalAfterClick),typeof e.attVideoEmbedIdBeforeInput=="function"&&(t._elementEvents.attVideoEmbedId_onBeforeInput=e.attVideoEmbedIdBeforeInput),typeof e.attVideoEmbedIdAfterInput=="function"&&(t._elementEvents.attVideoEmbedId_onAfterInput=e.attVideoEmbedIdAfterInput),typeof e.attVideoEmbedIdBeforeBlur=="function"&&(t._elementEvents.attVideoEmbedId_onBeforeBlur=e.attVideoEmbedIdBeforeBlur),typeof e.attVideoEmbedIdAfterBlur=="function"&&(t._elementEvents.attVideoEmbedId_onAfterBlur=e.attVideoEmbedIdAfterBlur),typeof e.attVideoWidthBeforeInput=="function"&&(t._elementEvents.attVideoWidth_onBeforeInput=e.attVideoWidthBeforeInput),typeof e.attVideoWidthAfterInput=="function"&&(t._elementEvents.attVideoWidth_onAfterInput=e.attVideoWidthAfterInput),typeof e.attVideoWidthBeforeBlur=="function"&&(t._elementEvents.attVideoWidth_onBeforeBlur=e.attVideoWidthBeforeBlur),typeof e.attVideoWidthAfterBlur=="function"&&(t._elementEvents.attVideoWidth_onAfterBlur=e.attVideoWidthAfterBlur),typeof e.attVideoHeightBeforeInput=="function"&&(t._elementEvents.attVideoHeight_onBeforeInput=e.attVideoHeightBeforeInput),typeof e.attVideoHeightAfterInput=="function"&&(t._elementEvents.attVideoHeight_onAfterInput=e.attVideoHeightAfterInput),typeof e.attVideoHeightBeforeBlur=="function"&&(t._elementEvents.attVideoHeight_onBeforeBlur=e.attVideoHeightBeforeBlur),typeof e.attVideoHeightAfterBlur=="function"&&(t._elementEvents.attVideoHeight_onAfterBlur=e.attVideoHeightAfterBlur),typeof e.attVideoInsertBeforeClick=="function"&&(t._elementEvents.attVideoInsertButton_onBeforeClick=e.attVideoInsertBeforeClick),typeof e.attVideoInsertAfterClick=="function"&&(t._elementEvents.attVideoInsertButton_onAfterClick=e.attVideoInsertAfterClick),typeof e.attImageAndVideoTooltipWidthBeforeInput=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeInput=e.attImageAndVideoTooltipWidthBeforeInput),typeof e.attImageAndVideoTooltipWidthAfterInput=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterInput=e.attImageAndVideoTooltipWidthAfterInput),typeof e.attImageAndVideoTooltipWidthBeforeBlur=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeBlur=e.attImageAndVideoTooltipWidthBeforeBlur),typeof e.attImageAndVideoTooltipWidthAfterBlur=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterBlur=e.attImageAndVideoTooltipWidthAfterBlur),typeof e.attImageAndVideoTooltipWidthBeforeKeyup=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeKeyup=e.attImageAndVideoTooltipWidthBeforeKeyup),typeof e.attImageAndVideoTooltipWidthAfterKeyup=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterKeyup=e.attImageAndVideoTooltipWidthAfterKeyup),typeof e.attImageAndVideoTooltipFloatRadioNoneBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioNone_onBeforeClick=e.attImageAndVideoTooltipFloatRadioNoneBeforeClick),typeof e.attImageAndVideoTooltipFloatRadioNoneAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioNone_onAfterClick=e.attImageAndVideoTooltipFloatRadioNoneAfterClick),typeof e.attImageAndVideoTooltipFloatRadioLeftBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioLeft_onBeforeClick=e.attImageAndVideoTooltipFloatRadioLeftBeforeClick),typeof e.attImageAndVideoTooltipFloatRadioLeftAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioLeft_onAfterClick=e.attImageAndVideoTooltipFloatRadioLeftAfterClick),typeof e.attImageAndVideoTooltipFloatRadioRightBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioRight_onBeforeClick=e.attImageAndVideoTooltipFloatRadioRightBeforeClick),typeof e.attImageAndVideoTooltipFloatRadioRightAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioRight_onAfterClick=e.attImageAndVideoTooltipFloatRadioRightAfterClick),typeof e.attImageAndVideoTooltipShapeRadioSquareBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioSquare_onBeforeClick=e.attImageAndVideoTooltipShapeRadioSquareBeforeClick),typeof e.attImageAndVideoTooltipShapeRadioSquareAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioSquare_onAfterClick=e.attImageAndVideoTooltipShapeRadioSquareAfterClick),typeof e.attImageAndVideoTooltipShapeRadioRadiusBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioRadius_onBeforeClick=e.attImageAndVideoTooltipShapeRadioRadiusBeforeClick),typeof e.attImageAndVideoTooltipShapeRadioRadiusAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioRadius_onAfterClick=e.attImageAndVideoTooltipShapeRadioRadiusAfterClick),typeof e.attImageAndVideoTooltipShapeRadioCircleBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioCircle_onBeforeClick=e.attImageAndVideoTooltipShapeRadioCircleBeforeClick),typeof e.attImageAndVideoTooltipShapeRadioCircleAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioCircle_onAfterClick=e.attImageAndVideoTooltipShapeRadioCircleAfterClick),typeof e.helpModalBeforeClick=="function"&&(t._elementEvents.helpModal_onBeforeClick=e.helpModalBeforeClick),typeof e.helpModalAfterClick=="function"&&(t._elementEvents.helpModal_onAfterClick=e.helpModalAfterClick),typeof e.placeholderBeforeClick=="function"&&(t._elementEvents.placeholder_onBeforeClick=e.placeholderBeforeClick),typeof e.placeholderAfterClick=="function"&&(t._elementEvents.placeholder_onAfterClick=e.placeholderAfterClick)),F(),y("mounted",t)},b=()=>{l.unregisterReloadable(I),B.value&&(A.unmountNote(B.value),S.disconnect())};return i.onMounted(V),i.onBeforeUnmount(b),i.watch(x,o=>{a(),y("responsive-change",o)}),i.watch(()=>e.modelValue,o=>{if(!r.value)return;const t=r.value.getNoteData();N(t,o)||r.value.setNoteData(o)}),i.watch(()=>e.visible,o=>{const t=!!o;t!==_.value&&(_.value=t)}),i.watch(()=>e.editMode,o=>{o&&o!==u.value&&(u.value=o,F())}),i.watch(()=>e.required,o=>{const t=!!o;t!==m.value&&(m.value=t)}),i.watch(()=>e.tabIndex,o=>{var f,n;const t=o===null||o===""?null:Number(o);if(t!==d.value){d.value=t;const c=(n=(f=r.value)==null?void 0:f._elements)==null?void 0:n.textarea;c&&(t==null?c.removeAttribute("tabIndex"):c.setAttribute("tabIndex",String(t)))}}),i.watch(()=>e.class,()=>{a()}),i.watch(()=>[e.noteModeByDevice,e.toolPosition,e.toolDefaultLine,e.toolToggle],()=>a()),i.watch(()=>[e.textareaWidth,e.textareaHeight,e.textareaMaxWidth,e.textareaMaxHeight,e.textareaHeightIsModify],()=>a()),i.watch(()=>[e.placeholderIsVisible,e.placeholderAddTop,e.placeholderAddLeft,e.placeholderWidth,e.placeholderColor,e.placeholderBackgroundColor,e.placeholderTitle,e.placeholderTextContent],()=>a()),i.watch(()=>[e.attFilePreventTypes,e.attFileAcceptTypes,e.attFileMaxSize,e.attImagePreventTypes,e.attImageAcceptTypes,e.attImageMaxSize],()=>a()),i.watch(()=>[e.defaultFontSize,e.defaultLineHeight,e.defaultFontFamily,e.defaultToolFontFamily,e.addFontFamily,e.removeFontFamily,e.language,e.recodeLimit],()=>a()),i.watch(()=>[e.sizeLevelDesktop,e.sizeLevelMobile,e.color,e.invertColor],()=>a()),i.watch(()=>[e.usingParagraphStyle,e.usingBold,e.usingUnderline,e.usingItalic,e.usingUl,e.usingOl,e.usingTextAlign,e.usingAttLink,e.usingAttFile,e.usingAttImage,e.usingAttVideo,e.usingFontSize,e.usingLetterSpacing,e.usingLineHeight,e.usingFontFamily,e.usingColorText,e.usingColorBack,e.usingFormatClear,e.usingUndo,e.usingRedo,e.usingHelp,e.usingParagraphAllStyle,e.usingCharacterStyle,e.usingCharacterSize,e.usingAttachFile,e.usingDo],()=>a()),{editorWrap:B,props:e,bindAttrs:O,responsiveClassList:E,visibleClass:L,requiredClass:R,editModeClass:H}}});function P(e,y,A,B,r,k){return i.openBlock(),i.createElementBlock("div",{ref:"editorWrap",class:i.normalizeClass(["hison-note","hison-wrap",...e.responsiveClassList,e.visibleClass,e.requiredClass,e.editModeClass]),style:i.normalizeStyle(e.props.style)},[i.createElementVNode("div",i.mergeProps({"data-vanillanote":""},e.bindAttrs),null,16)],6)}const j=z._export_sfc(W,[["render",P]]);exports.default=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),l=require("./index-CwePYZaW.js"),z=require("./_plugin-vue_export-helper-BHFhmbuH.js"),q={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},editMode:{type:String,default:l.EditMode.editable,validator:e=>["editable","disable","readonly"].includes(e)},noteModeByDevice:{type:String,required:!1,validator:e=>e==null||l.NOTE_MODE_BY_DEVICE_VALUES.includes(e)},toolPosition:{type:String,required:!1,validator:e=>e==null||l.TOOL_POSITION_VALUES.includes(e)},toolDefaultLine:{type:Number,required:!1},toolToggle:{type:Boolean,default:!1},textareaWidth:{type:String,required:!1},textareaHeight:{type:String,required:!1},textareaMaxWidth:{type:String,required:!1},textareaMaxHeight:{type:String,required:!1},textareaHeightIsModify:{type:Boolean,default:!1},placeholderIsVisible:{type:Boolean,default:!1},placeholderAddTop:{type:Number,required:!1},placeholderAddLeft:{type:Number,required:!1},placeholderWidth:{type:String,required:!1},placeholderColor:{type:String,required:!1},placeholderBackgroundColor:{type:String,required:!1},placeholderTitle:{type:String,required:!1},placeholderTextContent:{type:String,required:!1},attFilePreventTypes:{type:String,required:!1},attFileAcceptTypes:{type:String,required:!1},attFileMaxSize:{type:Number,required:!1,default:20*1024*1024},attImagePreventTypes:{type:String,required:!1},attImageAcceptTypes:{type:String,required:!1},attImageMaxSize:{type:Number,required:!1,default:20*1024*1024},defaultFontSize:{type:Number,required:!1},defaultLineHeight:{type:Number,required:!1},defaultFontFamily:{type:String,required:!1},defaultToolFontFamily:{type:String,required:!1},addFontFamily:{type:String,required:!1},removeFontFamily:{type:String,required:!1},language:{type:String,required:!1},recodeLimit:{type:String,required:!1},sizeLevelDesktop:{type:Number,required:!1},sizeLevelMobile:{type:Number,required:!1},color:{type:String,required:!1},invertColor:{type:Boolean,default:!1},usingParagraphStyle:{type:Boolean,default:!0},usingBold:{type:Boolean,default:!0},usingUnderline:{type:Boolean,default:!0},usingItalic:{type:Boolean,default:!0},usingUl:{type:Boolean,default:!0},usingOl:{type:Boolean,default:!0},usingTextAlign:{type:Boolean,default:!0},usingAttLink:{type:Boolean,default:!0},usingAttFile:{type:Boolean,default:!0},usingAttImage:{type:Boolean,default:!0},usingAttVideo:{type:Boolean,default:!0},usingFontSize:{type:Boolean,default:!0},usingLetterSpacing:{type:Boolean,default:!0},usingLineHeight:{type:Boolean,default:!0},usingFontFamily:{type:Boolean,default:!0},usingColorText:{type:Boolean,default:!0},usingColorBack:{type:Boolean,default:!0},usingFormatClear:{type:Boolean,default:!0},usingUndo:{type:Boolean,default:!0},usingRedo:{type:Boolean,default:!0},usingHelp:{type:Boolean,default:!0},usingParagraphAllStyle:{type:Boolean,default:!0},usingCharacterStyle:{type:Boolean,default:!0},usingCharacterSize:{type:Boolean,default:!0},usingAttachFile:{type:Boolean,default:!0},usingDo:{type:Boolean,default:!0},required:{type:Boolean,default:!1},modelValue:{type:Object,required:!1},tabIndex:{type:[Number,String],default:null,validator:e=>e===null||e===""||!isNaN(+e)&&isFinite(+e)}},G={textareaBeforeClick:Function,textareaAfterClick:Function,textareaBeforeFocus:Function,textareaAfterFocus:Function,textareaBeforeBlur:Function,textareaAfterBlur:Function,paragraphStyleSelectBeforeClick:Function,paragraphStyleSelectAfterClick:Function,toolToggleBeforeClick:Function,toolToggleAfterClick:Function,styleNomalBeforeClick:Function,styleNomalAfterClick:Function,styleHeader1BeforeClick:Function,styleHeader1AfterClick:Function,styleHeader2BeforeClick:Function,styleHeader2AfterClick:Function,styleHeader3BeforeClick:Function,styleHeader3AfterClick:Function,styleHeader4BeforeClick:Function,styleHeader4AfterClick:Function,styleHeader5BeforeClick:Function,styleHeader5AfterClick:Function,styleHeader6BeforeClick:Function,styleHeader6AfterClick:Function,boldBeforeClick:Function,boldAfterClick:Function,underlineBeforeClick:Function,underlineAfterClick:Function,italicBeforeClick:Function,italicAfterClick:Function,ulBeforeClick:Function,ulAfterClick:Function,olBeforeClick:Function,olAfterClick:Function,textAlignSelectBeforeClick:Function,textAlignSelectAfterClick:Function,textAlignLeftBeforeClick:Function,textAlignLeftAfterClick:Function,textAlignCenterBeforeClick:Function,textAlignCenterAfterClick:Function,textAlignRightBeforeClick:Function,textAlignRightAfterClick:Function,attLinkBeforeClick:Function,attLinkAfterClick:Function,attFileBeforeClick:Function,attFileAfterClick:Function,attImageBeforeClick:Function,attImageAfterClick:Function,attVideoBeforeClick:Function,attVideoAfterClick:Function,fontSizeBoxBeforeClick:Function,fontSizeBoxAfterClick:Function,fontSizeBeforeClick:Function,fontSizeAfterClick:Function,fontSizeBeforeInput:Function,fontSizeAfterInput:Function,fontSizeBeforeBlur:Function,fontSizeAfterBlur:Function,letterSpacingBoxBeforeClick:Function,letterSpacingBoxAfterClick:Function,letterSpacingBeforeClick:Function,letterSpacingAfterClick:Function,letterSpacingBeforeInput:Function,letterSpacingAfterInput:Function,letterSpacingBeforeBlur:Function,letterSpacingAfterBlur:Function,lineHeightBoxBeforeClick:Function,lineHeightBoxAfterClick:Function,lineHeightBeforeClick:Function,lineHeightAfterClick:Function,lineHeightBeforeInput:Function,lineHeightAfterInput:Function,lineHeightBeforeBlur:Function,lineHeightAfterBlur:Function,fontFamilySelectBeforeClick:Function,fontFamilySelectAfterClick:Function,colorTextSelectBeforeClick:Function,colorTextSelectAfterClick:Function,colorTextSelectBoxBeforeClick:Function,colorTextSelectBoxAfterClick:Function,colorText0BeforeClick:Function,colorText0AfterClick:Function,colorText1BeforeClick:Function,colorText1AfterClick:Function,colorText2BeforeClick:Function,colorText2AfterClick:Function,colorText3BeforeClick:Function,colorText3AfterClick:Function,colorText4BeforeClick:Function,colorText4AfterClick:Function,colorText5BeforeClick:Function,colorText5AfterClick:Function,colorText6BeforeClick:Function,colorText6AfterClick:Function,colorText7BeforeClick:Function,colorText7AfterClick:Function,colorTextRBeforeClick:Function,colorTextRAfterClick:Function,colorTextRBeforeInput:Function,colorTextRAfterInput:Function,colorTextRBeforeBlur:Function,colorTextRAfterBlur:Function,colorTextGBeforeClick:Function,colorTextGAfterClick:Function,colorTextGBeforeInput:Function,colorTextGAfterInput:Function,colorTextGBeforeBlur:Function,colorTextGAfterBlur:Function,colorTextBBeforeClick:Function,colorTextBAfterClick:Function,colorTextBBeforeInput:Function,colorTextBAfterInput:Function,colorTextBBeforeBlur:Function,colorTextBAfterBlur:Function,colorTextOpacityBeforeClick:Function,colorTextOpacityAfterClick:Function,colorTextOpacityBeforeInput:Function,colorTextOpacityAfterInput:Function,colorTextOpacityBeforeBlur:Function,colorTextOpacityAfterBlur:Function,colorBackSelectBeforeClick:Function,colorBackSelectAfterClick:Function,colorBackSelectBoxBeforeClick:Function,colorBackSelectBoxAfterClick:Function,colorBack0BeforeClick:Function,colorBack0AfterClick:Function,colorBack1BeforeClick:Function,colorBack1AfterClick:Function,colorBack2BeforeClick:Function,colorBack2AfterClick:Function,colorBack3BeforeClick:Function,colorBack3AfterClick:Function,colorBack4BeforeClick:Function,colorBack4AfterClick:Function,colorBack5BeforeClick:Function,colorBack5AfterClick:Function,colorBack6BeforeClick:Function,colorBack6AfterClick:Function,colorBack7BeforeClick:Function,colorBack7AfterClick:Function,colorBackRBeforeClick:Function,colorBackRAfterClick:Function,colorBackRBeforeInput:Function,colorBackRAfterInput:Function,colorBackRBeforeBlur:Function,colorBackRAfterBlur:Function,colorBackGBeforeClick:Function,colorBackGAfterClick:Function,colorBackGBeforeInput:Function,colorBackGAfterInput:Function,colorBackGBeforeBlur:Function,colorBackGAfterBlur:Function,colorBackBBeforeClick:Function,colorBackBAfterClick:Function,colorBackBBeforeInput:Function,colorBackBAfterInput:Function,colorBackBBeforeBlur:Function,colorBackBAfterBlur:Function,colorBackOpacityBeforeClick:Function,colorBackOpacityAfterClick:Function,colorBackOpacityBeforeInput:Function,colorBackOpacityAfterInput:Function,colorBackOpacityBeforeBlur:Function,colorBackOpacityAfterBlur:Function,formatClearBeforeClick:Function,formatClearAfterClick:Function,undoBeforeClick:Function,undoAfterClick:Function,redoBeforeClick:Function,redoAfterClick:Function,helpBeforeClick:Function,helpAfterClick:Function,modalBackBeforeClick:Function,modalBackAfterClick:Function,attLinkModalBeforeClick:Function,attLinkModalAfterClick:Function,attLinkTextBeforeInput:Function,attLinkTextAfterInput:Function,attLinkTextBeforeBlur:Function,attLinkTextAfterBlur:Function,attLinkHrefBeforeInput:Function,attLinkHrefAfterInput:Function,attLinkHrefBeforeBlur:Function,attLinkHrefAfterBlur:Function,attLinkInsertBeforeClick:Function,attLinkInsertAfterClick:Function,attFileModalBeforeClick:Function,attFileModalAfterClick:Function,attFileUploadBeforeClick:Function,attFileUploadAfterClick:Function,attFileUploadDivBeforeDragover:Function,attFileUploadDivAfterDragover:Function,attFileUploadDivBeforeDrop:Function,attFileUploadDivAfterDrop:Function,attFileUploadDivBeforeClick:Function,attFileUploadDivAfterClick:Function,attFileUploadBeforeInput:Function,attFileUploadAfterInput:Function,attFileUploadBeforeBlur:Function,attFileUploadAfterBlur:Function,attFileInsertBeforeClick:Function,attFileInsertAfterClick:Function,attLinkTooltipEditBeforeClick:Function,attLinkTooltipEditAfterClick:Function,attLinkTooltipUnlinkBeforeClick:Function,attLinkTooltipUnlinkAfterClick:Function,attImageModalBeforeClick:Function,attImageModalAfterClick:Function,attImageUploadViewBeforeDragover:Function,attImageUploadViewAfterDragover:Function,attImageUploadViewBeforeDrop:Function,attImageUploadViewAfterDrop:Function,attImageUploadViewBeforeClick:Function,attImageUploadViewAfterClick:Function,attImageViewPreBeforeClick:Function,attImageViewPreAfterClick:Function,attImageViewNextBeforeClick:Function,attImageViewNextAfterClick:Function,attImageUploadBeforeInput:Function,attImageUploadAfterInput:Function,attImageUploadBeforeBlur:Function,attImageUploadAfterBlur:Function,attImageURLBeforeInput:Function,attImageURLAfterInput:Function,attImageURLBeforeBlur:Function,attImageURLAfterBlur:Function,attImageInsertBeforeClick:Function,attImageInsertAfterClick:Function,attVideoModalBeforeClick:Function,attVideoModalAfterClick:Function,attVideoEmbedIdBeforeInput:Function,attVideoEmbedIdAfterInput:Function,attVideoEmbedIdBeforeBlur:Function,attVideoEmbedIdAfterBlur:Function,attVideoWidthBeforeInput:Function,attVideoWidthAfterInput:Function,attVideoWidthBeforeBlur:Function,attVideoWidthAfterBlur:Function,attVideoHeightBeforeInput:Function,attVideoHeightAfterInput:Function,attVideoHeightBeforeBlur:Function,attVideoHeightAfterBlur:Function,attVideoInsertBeforeClick:Function,attVideoInsertAfterClick:Function,attImageAndVideoTooltipWidthBeforeInput:Function,attImageAndVideoTooltipWidthAfterInput:Function,attImageAndVideoTooltipWidthBeforeBlur:Function,attImageAndVideoTooltipWidthAfterBlur:Function,attImageAndVideoTooltipWidthBeforeKeyup:Function,attImageAndVideoTooltipWidthAfterKeyup:Function,attImageAndVideoTooltipFloatRadioNoneBeforeClick:Function,attImageAndVideoTooltipFloatRadioNoneAfterClick:Function,attImageAndVideoTooltipFloatRadioLeftBeforeClick:Function,attImageAndVideoTooltipFloatRadioLeftAfterClick:Function,attImageAndVideoTooltipFloatRadioRightBeforeClick:Function,attImageAndVideoTooltipFloatRadioRightAfterClick:Function,attImageAndVideoTooltipShapeRadioSquareBeforeClick:Function,attImageAndVideoTooltipShapeRadioSquareAfterClick:Function,attImageAndVideoTooltipShapeRadioRadiusBeforeClick:Function,attImageAndVideoTooltipShapeRadioRadiusAfterClick:Function,attImageAndVideoTooltipShapeRadioCircleBeforeClick:Function,attImageAndVideoTooltipShapeRadioCircleAfterClick:Function,helpModalBeforeClick:Function,helpModalAfterClick:Function,placeholderBeforeClick:Function,placeholderAfterClick:Function},W=i.defineComponent({name:"HNote",props:{...q,...G},emits:["update:modelValue","mounted","responsive-change"],setup(e,{emit:y}){const A=l.hisonCloser.note,B=i.ref(null),r=i.ref(null),k=e.id?e.id:l.getUUID(),I=`hnote:${k}`,m=i.ref(e.required),R=i.computed(()=>{if(m.value)return"hison-note-required"}),x=l.useDevice(),_=i.ref(e.visible),L=i.computed(()=>_.value?"":"hison-display-none"),u=i.ref(e.editMode),H=i.computed(()=>{if(u.value!==l.EditMode.editable)return`hison-note-${u.value}`}),v=i.ref(!1),d=i.ref(e.tabIndex!==null&&e.tabIndex!==""?Number(e.tabIndex):null),T=(o,t)=>{if(!o)return;const f=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]","[tabindex]"].join(",");o.querySelectorAll(f).forEach(c=>{t?c.setAttribute("tabindex","-1"):c.getAttribute("tabindex")==="-1"&&c.removeAttribute("tabindex")})},F=()=>{const o=r.value;if(!o)return;const t=o._elements.textarea;u.value!==l.EditMode.editable?(t.removeAttribute("contenteditable"),t.removeAttribute("role"),t.removeAttribute("aria-multiline"),t.removeAttribute("spellcheck"),t.removeAttribute("autocorrect"),T(o,!0)):(t.setAttribute("contenteditable","true"),t.setAttribute("role","textbox"),t.setAttribute("aria-multiline","true"),t.setAttribute("spellcheck","true"),t.setAttribute("autocorrect","true"),T(o,!1))},E=i.ref([]),U=["modelValue","id","class","style","visible","editMode"],s=i.ref(0),D=()=>{i.triggerRef(s)},O=i.computed(()=>{s.value;const o=l.extractResponsiveClasses(l.toClassString(e.class)||"",x.value),t=l.getSpecificClassValueFromClassList(o,"color"),f=l.getSpecificClassValueFromClassList(o,"size");l.getIndexSpecificClassNameFromClassList(o,"col")===-1&&o.push("hison-col-12"),E.value=o;const n={};n["data-id"]=k;for(const[c,C]of Object.entries(e))U.includes(c)||C!=null&&(n[c.replace(/[A-Z]/g,g=>"-"+g.toLowerCase())]=String(C));return n["size-level-desktop"]=n["size-level-desktop"]&&l.hison.utils.isNumber(n["size-level-desktop"])?String(Math.min(Math.max(Number(n["size-level-desktop"]),1),9)):h(3,f),n["size-level-mobile"]=n["size-level-mobile"]&&l.hison.utils.isNumber(n["size-level-mobile"])?String(Math.min(Math.max(Number(n["size-level-mobile"]),1),9)):h(5,f),t&&!n.color&&(n.color=t),n.color&&(n.color=l.getHexCodeFromColorText(n.color)??n.color,n["main-color"]=n.color,delete n.color),(e.invertColor||l.hisonCloser.componentStyle.invertColor)&&(n["invert-color"]="true"),n}),h=(o,t)=>{switch(t=t??l.hisonCloser.componentStyle.size,t){case l.Size.s:o-=2;break;case l.Size.m:break;case l.Size.l:o+=2;break;case l.Size.xl:o+=3;break}return String(Math.min(Math.max(o,1),9))},S=new MutationObserver(o=>{var n;const t=(n=o[0])==null?void 0:n.target;!t||!M(t)||w()}),M=o=>{var f;let t=o;for(;!(t instanceof Element);)t=t.parentNode;return((f=t.closest)==null?void 0:f.call(t,"[data-vanillanote]"))||null},N=(o,t)=>{if(!o||!t||o.html!==t.html||o.plainText!==t.plainText||JSON.stringify(o.links)!==JSON.stringify(t.links)||JSON.stringify(o.files)!==JSON.stringify(t.files)||JSON.stringify(o.images)!==JSON.stringify(t.images)||JSON.stringify(o.videos)!==JSON.stringify(t.videos))return!1;const f=Object.keys(o.fileObjects||{}),n=Object.keys(t.fileObjects||{});if(f.length!==n.length||!f.every(g=>n.includes(g)))return!1;const c=Object.keys(o.imageObjects||{}),C=Object.keys(t.imageObjects||{});return!(c.length!==C.length||!c.every(g=>C.includes(g)))},w=()=>{r.value&&(v.value=!0,y("update:modelValue",r.value.getNoteData()))},a=()=>{b(),D(),i.nextTick(V)},V=()=>{var f;if(l.registerReloadable(I,a),A.init(),!B.value)return;A.mountNote(B.value);const o=A.getNote(k);o.getId=()=>k,r.value=o;const t=r.value;if(e.modelValue&&t&&t.setNoteData(e.modelValue),d.value&&t._elements.textarea&&t._elements.textarea.setAttribute("tabIndex",String(d.value)),t&&(t.isHisonvueComponent=!0,t.getId=()=>k,t.getType=()=>"note",t.getRequired=()=>m.value,t.setRequired=n=>{m.value=n},t.isVisible=()=>_.value,t.setVisible=n=>{_.value=n},t.getEditMode=()=>u.value,t.setEditMode=n=>{u.value=n,F()},t.isModified=()=>v.value,t.initModified=()=>v.value=!1,t.getTabIndex=()=>d.value,t.setTabIndex=n=>{d.value=n!=null?Number(n):null},t.focus=()=>{var n,c;(c=(n=t._elements)==null?void 0:n.textarea)==null||c.focus()},t.getDataModel=()=>{const n=t.getNoteData();return new l.hison.data.DataModel(n)},t.setDataModel=n=>{if(!n||n.getRowCount()==0)return;const c={html:n.hasColumn("html")?n.getValue(0,"html"):"",plainText:n.hasColumn("plainText")?n.getValue(0,"plainText"):"",links:n.hasColumn("links")?n.getValue(0,"links"):[],files:n.hasColumn("files")?n.getValue(0,"files"):[],images:n.hasColumn("images")?n.getValue(0,"images"):[],videos:n.hasColumn("videos")?n.getValue(0,"videos"):[],fileObjects:n.hasColumn("fileObjects")?n.getValue(0,"fileObjects"):{},imageObjects:n.hasColumn("imageObjects")?n.getValue(0,"imageObjects"):{}};return t.setNoteData(c)},t.load=n=>{n&&n.getIsDataModel&&n.getIsDataModel()?t.setDataModel(n):t.setNoteData(n)},t.reload=()=>l.reloadHisonComponent(I)),t){const n=(f=t._elements)==null?void 0:f.textarea;S.observe(n,{characterData:!0,childList:!0,subtree:!0})}t&&(t._cssEvents.target_onBeforeClick=l.hisonCloser.event.cssEvent.button_onBeforeClick,t._cssEvents.target_onAfterClick=l.hisonCloser.event.cssEvent.button_onAfterClick,t._cssEvents.target_onBeforeMouseover=l.hisonCloser.event.cssEvent.button_onBeforeMouseover,t._cssEvents.target_onAfterMouseover=l.hisonCloser.event.cssEvent.button_onAfterMouseover,t._cssEvents.target_onBeforeMouseout=l.hisonCloser.event.cssEvent.button_onBeforeMouseout,t._cssEvents.target_onAfterMouseout=l.hisonCloser.event.cssEvent.button_onAfterMouseout,t._cssEvents.target_onBeforeTouchstart=l.hisonCloser.event.cssEvent.button_onBeforeTouchstart,t._cssEvents.target_onAfterTouchstart=l.hisonCloser.event.cssEvent.button_onAfterTouchstart,t._cssEvents.target_onBeforeTouchend=l.hisonCloser.event.cssEvent.button_onBeforeTouchend,t._cssEvents.target_onAfterTouchend=l.hisonCloser.event.cssEvent.button_onAfterTouchend,typeof e.textareaBeforeClick=="function"&&(t._elementEvents.textarea_onBeforeClick=e.textareaBeforeClick),typeof e.textareaAfterClick=="function"&&(t._elementEvents.textarea_onAfterClick=e.textareaAfterClick),typeof e.textareaBeforeFocus=="function"&&(t._elementEvents.textarea_onBeforeFocus=e.textareaBeforeFocus),typeof e.textareaAfterFocus=="function"&&(t._elementEvents.textarea_onAfterFocus=e.textareaAfterFocus),typeof e.textareaBeforeBlur=="function"&&(t._elementEvents.textarea_onBeforeBlur=e.textareaBeforeBlur),typeof e.textareaAfterBlur=="function"&&(t._elementEvents.textarea_onAfterBlur=e.textareaAfterBlur),typeof e.paragraphStyleSelectBeforeClick=="function"&&(t._elementEvents.paragraphStyleSelect_onBeforeClick=e.paragraphStyleSelectBeforeClick),typeof e.paragraphStyleSelectAfterClick=="function"&&(t._elementEvents.paragraphStyleSelect_onAfterClick=e.paragraphStyleSelectAfterClick),typeof e.toolToggleBeforeClick=="function"&&(t._elementEvents.toolToggleButton_onBeforeClick=e.toolToggleBeforeClick),typeof e.toolToggleAfterClick=="function"&&(t._elementEvents.toolToggleButton_onAfterClick=e.toolToggleAfterClick),typeof e.styleNomalBeforeClick=="function"&&(t._elementEvents.styleNomal_onBeforeClick=e.styleNomalBeforeClick),typeof e.styleNomalAfterClick=="function"&&(t._elementEvents.styleNomal_onAfterClick=e.styleNomalAfterClick),typeof e.styleHeader1BeforeClick=="function"&&(t._elementEvents.styleHeader1_onBeforeClick=e.styleHeader1BeforeClick),typeof e.styleHeader1AfterClick=="function"&&(t._elementEvents.styleHeader1_onAfterClick=e.styleHeader1AfterClick),typeof e.styleHeader2BeforeClick=="function"&&(t._elementEvents.styleHeader2_onBeforeClick=e.styleHeader2BeforeClick),typeof e.styleHeader2AfterClick=="function"&&(t._elementEvents.styleHeader2_onAfterClick=e.styleHeader2AfterClick),typeof e.styleHeader3BeforeClick=="function"&&(t._elementEvents.styleHeader3_onBeforeClick=e.styleHeader3BeforeClick),typeof e.styleHeader3AfterClick=="function"&&(t._elementEvents.styleHeader3_onAfterClick=e.styleHeader3AfterClick),typeof e.styleHeader4BeforeClick=="function"&&(t._elementEvents.styleHeader4_onBeforeClick=e.styleHeader4BeforeClick),typeof e.styleHeader4AfterClick=="function"&&(t._elementEvents.styleHeader4_onAfterClick=e.styleHeader4AfterClick),typeof e.styleHeader5BeforeClick=="function"&&(t._elementEvents.styleHeader5_onBeforeClick=e.styleHeader5BeforeClick),typeof e.styleHeader5AfterClick=="function"&&(t._elementEvents.styleHeader5_onAfterClick=e.styleHeader5AfterClick),typeof e.styleHeader6BeforeClick=="function"&&(t._elementEvents.styleHeader6_onBeforeClick=e.styleHeader6BeforeClick),typeof e.styleHeader6AfterClick=="function"&&(t._elementEvents.styleHeader6_onAfterClick=e.styleHeader6AfterClick),typeof e.boldBeforeClick=="function"&&(t._elementEvents.boldButton_onBeforeClick=e.boldBeforeClick),typeof e.boldAfterClick=="function"&&(t._elementEvents.boldButton_onAfterClick=e.boldAfterClick),typeof e.underlineBeforeClick=="function"&&(t._elementEvents.underlineButton_onBeforeClick=e.underlineBeforeClick),typeof e.underlineAfterClick=="function"&&(t._elementEvents.underlineButton_onAfterClick=e.underlineAfterClick),typeof e.italicBeforeClick=="function"&&(t._elementEvents.italicButton_onBeforeClick=e.italicBeforeClick),typeof e.italicAfterClick=="function"&&(t._elementEvents.italicButton_onAfterClick=e.italicAfterClick),typeof e.ulBeforeClick=="function"&&(t._elementEvents.ulButton_onBeforeClick=e.ulBeforeClick),typeof e.ulAfterClick=="function"&&(t._elementEvents.ulButton_onAfterClick=e.ulAfterClick),typeof e.olBeforeClick=="function"&&(t._elementEvents.olButton_onBeforeClick=e.olBeforeClick),typeof e.olAfterClick=="function"&&(t._elementEvents.olButton_onAfterClick=e.olAfterClick),typeof e.textAlignSelectBeforeClick=="function"&&(t._elementEvents.textAlignSelect_onBeforeClick=e.textAlignSelectBeforeClick),typeof e.textAlignSelectAfterClick=="function"&&(t._elementEvents.textAlignSelect_onAfterClick=e.textAlignSelectAfterClick),typeof e.textAlignLeftBeforeClick=="function"&&(t._elementEvents.textAlignLeft_onBeforeClick=e.textAlignLeftBeforeClick),typeof e.textAlignLeftAfterClick=="function"&&(t._elementEvents.textAlignLeft_onAfterClick=e.textAlignLeftAfterClick),typeof e.textAlignCenterBeforeClick=="function"&&(t._elementEvents.textAlignCenter_onBeforeClick=e.textAlignCenterBeforeClick),typeof e.textAlignCenterAfterClick=="function"&&(t._elementEvents.textAlignCenter_onAfterClick=e.textAlignCenterAfterClick),typeof e.textAlignRightBeforeClick=="function"&&(t._elementEvents.textAlignRight_onBeforeClick=e.textAlignRightBeforeClick),typeof e.textAlignRightAfterClick=="function"&&(t._elementEvents.textAlignRight_onAfterClick=e.textAlignRightAfterClick),typeof e.attLinkBeforeClick=="function"&&(t._elementEvents.attLinkButton_onBeforeClick=e.attLinkBeforeClick),typeof e.attLinkAfterClick=="function"&&(t._elementEvents.attLinkButton_onAfterClick=e.attLinkAfterClick),typeof e.attFileBeforeClick=="function"&&(t._elementEvents.attFileButton_onBeforeClick=e.attFileBeforeClick),typeof e.attFileAfterClick=="function"&&(t._elementEvents.attFileButton_onAfterClick=e.attFileAfterClick),typeof e.attImageBeforeClick=="function"&&(t._elementEvents.attImageButton_onBeforeClick=e.attImageBeforeClick),typeof e.attImageAfterClick=="function"&&(t._elementEvents.attImageButton_onAfterClick=e.attImageAfterClick),typeof e.attVideoBeforeClick=="function"&&(t._elementEvents.attVideoButton_onBeforeClick=e.attVideoBeforeClick),typeof e.attVideoAfterClick=="function"&&(t._elementEvents.attVideoButton_onAfterClick=e.attVideoAfterClick),typeof e.fontSizeBoxBeforeClick=="function"&&(t._elementEvents.fontSizeInputBox_onBeforeClick=e.fontSizeBoxBeforeClick),typeof e.fontSizeBoxAfterClick=="function"&&(t._elementEvents.fontSizeInputBox_onAfterClick=e.fontSizeBoxAfterClick),typeof e.fontSizeBeforeClick=="function"&&(t._elementEvents.fontSizeInput_onBeforeClick=e.fontSizeBeforeClick),typeof e.fontSizeAfterClick=="function"&&(t._elementEvents.fontSizeInput_onAfterClick=e.fontSizeAfterClick),typeof e.fontSizeBeforeInput=="function"&&(t._elementEvents.fontSizeInput_onBeforeInput=e.fontSizeBeforeInput),typeof e.fontSizeAfterInput=="function"&&(t._elementEvents.fontSizeInput_onAfterInput=e.fontSizeAfterInput),typeof e.fontSizeBeforeBlur=="function"&&(t._elementEvents.fontSizeInput_onBeforeBlur=e.fontSizeBeforeBlur),typeof e.fontSizeAfterBlur=="function"&&(t._elementEvents.fontSizeInput_onAfterBlur=e.fontSizeAfterBlur),typeof e.letterSpacingBoxBeforeClick=="function"&&(t._elementEvents.letterSpacingInputBox_onBeforeClick=e.letterSpacingBoxBeforeClick),typeof e.letterSpacingBoxAfterClick=="function"&&(t._elementEvents.letterSpacingInputBox_onAfterClick=e.letterSpacingBoxAfterClick),typeof e.letterSpacingBeforeClick=="function"&&(t._elementEvents.letterSpacingInput_onBeforeClick=e.letterSpacingBeforeClick),typeof e.letterSpacingAfterClick=="function"&&(t._elementEvents.letterSpacingInput_onAfterClick=e.letterSpacingAfterClick),typeof e.letterSpacingBeforeInput=="function"&&(t._elementEvents.letterSpacingInput_onBeforeInput=e.letterSpacingBeforeInput),typeof e.letterSpacingAfterInput=="function"&&(t._elementEvents.letterSpacingInput_onAfterInput=e.letterSpacingAfterInput),typeof e.letterSpacingBeforeBlur=="function"&&(t._elementEvents.letterSpacingInput_onBeforeBlur=e.letterSpacingBeforeBlur),typeof e.letterSpacingAfterBlur=="function"&&(t._elementEvents.letterSpacingInput_onAfterBlur=e.letterSpacingAfterBlur),typeof e.lineHeightBoxBeforeClick=="function"&&(t._elementEvents.lineHeightInputBox_onBeforeClick=e.lineHeightBoxBeforeClick),typeof e.lineHeightBoxAfterClick=="function"&&(t._elementEvents.lineHeightInputBox_onAfterClick=e.lineHeightBoxAfterClick),typeof e.lineHeightBeforeClick=="function"&&(t._elementEvents.lineHeightInput_onBeforeClick=e.lineHeightBeforeClick),typeof e.lineHeightAfterClick=="function"&&(t._elementEvents.lineHeightInput_onAfterClick=e.lineHeightAfterClick),typeof e.lineHeightBeforeInput=="function"&&(t._elementEvents.lineHeightInput_onBeforeInput=e.lineHeightBeforeInput),typeof e.lineHeightAfterInput=="function"&&(t._elementEvents.lineHeightInput_onAfterInput=e.lineHeightAfterInput),typeof e.lineHeightBeforeBlur=="function"&&(t._elementEvents.lineHeightInput_onBeforeBlur=e.lineHeightBeforeBlur),typeof e.lineHeightAfterBlur=="function"&&(t._elementEvents.lineHeightInput_onAfterBlur=e.lineHeightAfterBlur),typeof e.fontFamilySelectBeforeClick=="function"&&(t._elementEvents.fontFamilySelect_onBeforeClick=e.fontFamilySelectBeforeClick),typeof e.fontFamilySelectAfterClick=="function"&&(t._elementEvents.fontFamilySelect_onAfterClick=e.fontFamilySelectAfterClick),typeof e.colorTextSelectBeforeClick=="function"&&(t._elementEvents.colorTextSelect_onBeforeClick=e.colorTextSelectBeforeClick),typeof e.colorTextSelectAfterClick=="function"&&(t._elementEvents.colorTextSelect_onAfterClick=e.colorTextSelectAfterClick),typeof e.colorTextSelectBoxBeforeClick=="function"&&(t._elementEvents.colorTextSelectBox_onBeforeClick=e.colorTextSelectBoxBeforeClick),typeof e.colorTextSelectBoxAfterClick=="function"&&(t._elementEvents.colorTextSelectBox_onAfterClick=e.colorTextSelectBoxAfterClick),typeof e.colorText0BeforeClick=="function"&&(t._elementEvents.colorText0_onBeforeClick=e.colorText0BeforeClick),typeof e.colorText0AfterClick=="function"&&(t._elementEvents.colorText0_onAfterClick=e.colorText0AfterClick),typeof e.colorText1BeforeClick=="function"&&(t._elementEvents.colorText1_onBeforeClick=e.colorText1BeforeClick),typeof e.colorText1AfterClick=="function"&&(t._elementEvents.colorText1_onAfterClick=e.colorText1AfterClick),typeof e.colorText2BeforeClick=="function"&&(t._elementEvents.colorText2_onBeforeClick=e.colorText2BeforeClick),typeof e.colorText2AfterClick=="function"&&(t._elementEvents.colorText2_onAfterClick=e.colorText2AfterClick),typeof e.colorText3BeforeClick=="function"&&(t._elementEvents.colorText3_onBeforeClick=e.colorText3BeforeClick),typeof e.colorText3AfterClick=="function"&&(t._elementEvents.colorText3_onAfterClick=e.colorText3AfterClick),typeof e.colorText4BeforeClick=="function"&&(t._elementEvents.colorText4_onBeforeClick=e.colorText4BeforeClick),typeof e.colorText4AfterClick=="function"&&(t._elementEvents.colorText4_onAfterClick=e.colorText4AfterClick),typeof e.colorText5BeforeClick=="function"&&(t._elementEvents.colorText5_onBeforeClick=e.colorText5BeforeClick),typeof e.colorText5AfterClick=="function"&&(t._elementEvents.colorText5_onAfterClick=e.colorText5AfterClick),typeof e.colorText6BeforeClick=="function"&&(t._elementEvents.colorText6_onBeforeClick=e.colorText6BeforeClick),typeof e.colorText6AfterClick=="function"&&(t._elementEvents.colorText6_onAfterClick=e.colorText6AfterClick),typeof e.colorText7BeforeClick=="function"&&(t._elementEvents.colorText7_onBeforeClick=e.colorText7BeforeClick),typeof e.colorText7AfterClick=="function"&&(t._elementEvents.colorText7_onAfterClick=e.colorText7AfterClick),typeof e.colorTextRBeforeClick=="function"&&(t._elementEvents.colorTextRInput_onBeforeClick=e.colorTextRBeforeClick),typeof e.colorTextRAfterClick=="function"&&(t._elementEvents.colorTextRInput_onAfterClick=e.colorTextRAfterClick),typeof e.colorTextRBeforeInput=="function"&&(t._elementEvents.colorTextRInput_onBeforeInput=e.colorTextRBeforeInput),typeof e.colorTextRAfterInput=="function"&&(t._elementEvents.colorTextRInput_onAfterInput=e.colorTextRAfterInput),typeof e.colorTextRBeforeBlur=="function"&&(t._elementEvents.colorTextRInput_onBeforeBlur=e.colorTextRBeforeBlur),typeof e.colorTextRAfterBlur=="function"&&(t._elementEvents.colorTextRInput_onAfterBlur=e.colorTextRAfterBlur),typeof e.colorTextGBeforeClick=="function"&&(t._elementEvents.colorTextGInput_onBeforeClick=e.colorTextGBeforeClick),typeof e.colorTextGAfterClick=="function"&&(t._elementEvents.colorTextGInput_onAfterClick=e.colorTextGAfterClick),typeof e.colorTextGBeforeInput=="function"&&(t._elementEvents.colorTextGInput_onBeforeInput=e.colorTextGBeforeInput),typeof e.colorTextGAfterInput=="function"&&(t._elementEvents.colorTextGInput_onAfterInput=e.colorTextGAfterInput),typeof e.colorTextGBeforeBlur=="function"&&(t._elementEvents.colorTextGInput_onBeforeBlur=e.colorTextGBeforeBlur),typeof e.colorTextGAfterBlur=="function"&&(t._elementEvents.colorTextGInput_onAfterBlur=e.colorTextGAfterBlur),typeof e.colorTextBBeforeClick=="function"&&(t._elementEvents.colorTextBInput_onBeforeClick=e.colorTextBBeforeClick),typeof e.colorTextBAfterClick=="function"&&(t._elementEvents.colorTextBInput_onAfterClick=e.colorTextBAfterClick),typeof e.colorTextBBeforeInput=="function"&&(t._elementEvents.colorTextBInput_onBeforeInput=e.colorTextBBeforeInput),typeof e.colorTextBAfterInput=="function"&&(t._elementEvents.colorTextBInput_onAfterInput=e.colorTextBAfterInput),typeof e.colorTextBBeforeBlur=="function"&&(t._elementEvents.colorTextBInput_onBeforeBlur=e.colorTextBBeforeBlur),typeof e.colorTextBAfterBlur=="function"&&(t._elementEvents.colorTextBInput_onAfterBlur=e.colorTextBAfterBlur),typeof e.colorTextOpacityBeforeClick=="function"&&(t._elementEvents.colorTextOpacityInput_onBeforeClick=e.colorTextOpacityBeforeClick),typeof e.colorTextOpacityAfterClick=="function"&&(t._elementEvents.colorTextOpacityInput_onAfterClick=e.colorTextOpacityAfterClick),typeof e.colorTextOpacityBeforeInput=="function"&&(t._elementEvents.colorTextOpacityInput_onBeforeInput=e.colorTextOpacityBeforeInput),typeof e.colorTextOpacityAfterInput=="function"&&(t._elementEvents.colorTextOpacityInput_onAfterInput=e.colorTextOpacityAfterInput),typeof e.colorTextOpacityBeforeBlur=="function"&&(t._elementEvents.colorTextOpacityInput_onBeforeBlur=e.colorTextOpacityBeforeBlur),typeof e.colorTextOpacityAfterBlur=="function"&&(t._elementEvents.colorTextOpacityInput_onAfterBlur=e.colorTextOpacityAfterBlur),typeof e.colorBackSelectBeforeClick=="function"&&(t._elementEvents.colorBackSelect_onBeforeClick=e.colorBackSelectBeforeClick),typeof e.colorBackSelectAfterClick=="function"&&(t._elementEvents.colorBackSelect_onAfterClick=e.colorBackSelectAfterClick),typeof e.colorBackSelectBoxBeforeClick=="function"&&(t._elementEvents.colorBackSelectBox_onBeforeClick=e.colorBackSelectBoxBeforeClick),typeof e.colorBackSelectBoxAfterClick=="function"&&(t._elementEvents.colorBackSelectBox_onAfterClick=e.colorBackSelectBoxAfterClick),typeof e.colorBack0BeforeClick=="function"&&(t._elementEvents.colorBack0_onBeforeClick=e.colorBack0BeforeClick),typeof e.colorBack0AfterClick=="function"&&(t._elementEvents.colorBack0_onAfterClick=e.colorBack0AfterClick),typeof e.colorBack1BeforeClick=="function"&&(t._elementEvents.colorBack1_onBeforeClick=e.colorBack1BeforeClick),typeof e.colorBack1AfterClick=="function"&&(t._elementEvents.colorBack1_onAfterClick=e.colorBack1AfterClick),typeof e.colorBack2BeforeClick=="function"&&(t._elementEvents.colorBack2_onBeforeClick=e.colorBack2BeforeClick),typeof e.colorBack2AfterClick=="function"&&(t._elementEvents.colorBack2_onAfterClick=e.colorBack2AfterClick),typeof e.colorBack3BeforeClick=="function"&&(t._elementEvents.colorBack3_onBeforeClick=e.colorBack3BeforeClick),typeof e.colorBack3AfterClick=="function"&&(t._elementEvents.colorBack3_onAfterClick=e.colorBack3AfterClick),typeof e.colorBack4BeforeClick=="function"&&(t._elementEvents.colorBack4_onBeforeClick=e.colorBack4BeforeClick),typeof e.colorBack4AfterClick=="function"&&(t._elementEvents.colorBack4_onAfterClick=e.colorBack4AfterClick),typeof e.colorBack5BeforeClick=="function"&&(t._elementEvents.colorBack5_onBeforeClick=e.colorBack5BeforeClick),typeof e.colorBack5AfterClick=="function"&&(t._elementEvents.colorBack5_onAfterClick=e.colorBack5AfterClick),typeof e.colorBack6BeforeClick=="function"&&(t._elementEvents.colorBack6_onBeforeClick=e.colorBack6BeforeClick),typeof e.colorBack6AfterClick=="function"&&(t._elementEvents.colorBack6_onAfterClick=e.colorBack6AfterClick),typeof e.colorBack7BeforeClick=="function"&&(t._elementEvents.colorBack7_onBeforeClick=e.colorBack7BeforeClick),typeof e.colorBack7AfterClick=="function"&&(t._elementEvents.colorBack7_onAfterClick=e.colorBack7AfterClick),typeof e.colorBackRBeforeClick=="function"&&(t._elementEvents.colorBackRInput_onBeforeClick=e.colorBackRBeforeClick),typeof e.colorBackRAfterClick=="function"&&(t._elementEvents.colorBackRInput_onAfterClick=e.colorBackRAfterClick),typeof e.colorBackRBeforeInput=="function"&&(t._elementEvents.colorBackRInput_onBeforeInput=e.colorBackRBeforeInput),typeof e.colorBackRAfterInput=="function"&&(t._elementEvents.colorBackRInput_onAfterInput=e.colorBackRAfterInput),typeof e.colorBackRBeforeBlur=="function"&&(t._elementEvents.colorBackRInput_onBeforeBlur=e.colorBackRBeforeBlur),typeof e.colorBackRAfterBlur=="function"&&(t._elementEvents.colorBackRInput_onAfterBlur=e.colorBackRAfterBlur),typeof e.colorBackGBeforeClick=="function"&&(t._elementEvents.colorBackGInput_onBeforeClick=e.colorBackGBeforeClick),typeof e.colorBackGAfterClick=="function"&&(t._elementEvents.colorBackGInput_onAfterClick=e.colorBackGAfterClick),typeof e.colorBackGBeforeInput=="function"&&(t._elementEvents.colorBackGInput_onBeforeInput=e.colorBackGBeforeInput),typeof e.colorBackGAfterInput=="function"&&(t._elementEvents.colorBackGInput_onAfterInput=e.colorBackGAfterInput),typeof e.colorBackGBeforeBlur=="function"&&(t._elementEvents.colorBackGInput_onBeforeBlur=e.colorBackGBeforeBlur),typeof e.colorBackGAfterBlur=="function"&&(t._elementEvents.colorBackGInput_onAfterBlur=e.colorBackGAfterBlur),typeof e.colorBackBBeforeClick=="function"&&(t._elementEvents.colorBackBInput_onBeforeClick=e.colorBackBBeforeClick),typeof e.colorBackBAfterClick=="function"&&(t._elementEvents.colorBackBInput_onAfterClick=e.colorBackBAfterClick),typeof e.colorBackBBeforeInput=="function"&&(t._elementEvents.colorBackBInput_onBeforeInput=e.colorBackBBeforeInput),typeof e.colorBackBAfterInput=="function"&&(t._elementEvents.colorBackBInput_onAfterInput=e.colorBackBAfterInput),typeof e.colorBackBBeforeBlur=="function"&&(t._elementEvents.colorBackBInput_onBeforeBlur=e.colorBackBBeforeBlur),typeof e.colorBackBAfterBlur=="function"&&(t._elementEvents.colorBackBInput_onAfterBlur=e.colorBackBAfterBlur),typeof e.colorBackOpacityBeforeClick=="function"&&(t._elementEvents.colorBackOpacityInput_onBeforeClick=e.colorBackOpacityBeforeClick),typeof e.colorBackOpacityAfterClick=="function"&&(t._elementEvents.colorBackOpacityInput_onAfterClick=e.colorBackOpacityAfterClick),typeof e.colorBackOpacityBeforeInput=="function"&&(t._elementEvents.colorBackOpacityInput_onBeforeInput=e.colorBackOpacityBeforeInput),typeof e.colorBackOpacityAfterInput=="function"&&(t._elementEvents.colorBackOpacityInput_onAfterInput=e.colorBackOpacityAfterInput),typeof e.colorBackOpacityBeforeBlur=="function"&&(t._elementEvents.colorBackOpacityInput_onBeforeBlur=e.colorBackOpacityBeforeBlur),typeof e.colorBackOpacityAfterBlur=="function"&&(t._elementEvents.colorBackOpacityInput_onAfterBlur=e.colorBackOpacityAfterBlur),typeof e.formatClearBeforeClick=="function"&&(t._elementEvents.formatClearButton_onBeforeClick=e.formatClearBeforeClick),typeof e.formatClearAfterClick=="function"&&(t._elementEvents.formatClearButton_onAfterClick=e.formatClearAfterClick),typeof e.undoBeforeClick=="function"&&(t._elementEvents.undoButton_onBeforeClick=e.undoBeforeClick),typeof e.undoAfterClick=="function"&&(t._elementEvents.undoButton_onAfterClick=e.undoAfterClick),typeof e.redoBeforeClick=="function"&&(t._elementEvents.redoButton_onBeforeClick=e.redoBeforeClick),typeof e.redoAfterClick=="function"&&(t._elementEvents.redoButton_onAfterClick=e.redoAfterClick),typeof e.helpBeforeClick=="function"&&(t._elementEvents.helpButton_onBeforeClick=e.helpBeforeClick),typeof e.helpAfterClick=="function"&&(t._elementEvents.helpButton_onAfterClick=e.helpAfterClick),typeof e.modalBackBeforeClick=="function"&&(t._elementEvents.modalBack_onBeforeClick=e.modalBackBeforeClick),typeof e.modalBackAfterClick=="function"&&(t._elementEvents.modalBack_onAfterClick=e.modalBackAfterClick),typeof e.attLinkModalBeforeClick=="function"&&(t._elementEvents.attLinkModal_onBeforeClick=e.attLinkModalBeforeClick),typeof e.attLinkModalAfterClick=="function"&&(t._elementEvents.attLinkModal_onAfterClick=e.attLinkModalAfterClick),typeof e.attLinkTextBeforeInput=="function"&&(t._elementEvents.attLinkText_onBeforeInput=e.attLinkTextBeforeInput),typeof e.attLinkTextAfterInput=="function"&&(t._elementEvents.attLinkText_onAfterInput=e.attLinkTextAfterInput),typeof e.attLinkTextBeforeBlur=="function"&&(t._elementEvents.attLinkText_onBeforeBlur=e.attLinkTextBeforeBlur),typeof e.attLinkTextAfterBlur=="function"&&(t._elementEvents.attLinkText_onAfterBlur=e.attLinkTextAfterBlur),typeof e.attLinkHrefBeforeInput=="function"&&(t._elementEvents.attLinkHref_onBeforeInput=e.attLinkHrefBeforeInput),typeof e.attLinkHrefAfterInput=="function"&&(t._elementEvents.attLinkHref_onAfterInput=e.attLinkHrefAfterInput),typeof e.attLinkHrefBeforeBlur=="function"&&(t._elementEvents.attLinkHref_onBeforeBlur=e.attLinkHrefBeforeBlur),typeof e.attLinkHrefAfterBlur=="function"&&(t._elementEvents.attLinkHref_onAfterBlur=e.attLinkHrefAfterBlur),typeof e.attLinkInsertBeforeClick=="function"&&(t._elementEvents.attLinkInsertButton_onBeforeClick=e.attLinkInsertBeforeClick),typeof e.attLinkInsertAfterClick=="function"&&(t._elementEvents.attLinkInsertButton_onAfterClick=e.attLinkInsertAfterClick),typeof e.attFileModalBeforeClick=="function"&&(t._elementEvents.attFileModal_onBeforeClick=e.attFileModalBeforeClick),typeof e.attFileModalAfterClick=="function"&&(t._elementEvents.attFileModal_onAfterClick=e.attFileModalAfterClick),typeof e.attFileUploadBeforeClick=="function"&&(t._elementEvents.attFileUploadButton_onBeforeClick=e.attFileUploadBeforeClick),typeof e.attFileUploadAfterClick=="function"&&(t._elementEvents.attFileUploadButton_onAfterClick=e.attFileUploadAfterClick),typeof e.attFileUploadDivBeforeDragover=="function"&&(t._elementEvents.attFileUploadDiv_onBeforeDragover=e.attFileUploadDivBeforeDragover),typeof e.attFileUploadDivAfterDragover=="function"&&(t._elementEvents.attFileUploadDiv_onAfterDragover=e.attFileUploadDivAfterDragover),typeof e.attFileUploadDivBeforeDrop=="function"&&(t._elementEvents.attFileUploadDiv_onBeforeDrop=e.attFileUploadDivBeforeDrop),typeof e.attFileUploadDivAfterDrop=="function"&&(t._elementEvents.attFileUploadDiv_onAfterDrop=e.attFileUploadDivAfterDrop),typeof e.attFileUploadDivBeforeClick=="function"&&(t._elementEvents.attFileUploadDiv_onBeforeClick=e.attFileUploadDivBeforeClick),typeof e.attFileUploadDivAfterClick=="function"&&(t._elementEvents.attFileUploadDiv_onAfterClick=e.attFileUploadDivAfterClick),typeof e.attFileUploadBeforeInput=="function"&&(t._elementEvents.attFileUpload_onBeforeInput=e.attFileUploadBeforeInput),typeof e.attFileUploadAfterInput=="function"&&(t._elementEvents.attFileUpload_onAfterInput=e.attFileUploadAfterInput),typeof e.attFileUploadBeforeBlur=="function"&&(t._elementEvents.attFileUpload_onBeforeBlur=e.attFileUploadBeforeBlur),typeof e.attFileUploadAfterBlur=="function"&&(t._elementEvents.attFileUpload_onAfterBlur=e.attFileUploadAfterBlur),typeof e.attFileInsertBeforeClick=="function"&&(t._elementEvents.attFileInsertButton_onBeforeClick=e.attFileInsertBeforeClick),typeof e.attFileInsertAfterClick=="function"&&(t._elementEvents.attFileInsertButton_onAfterClick=e.attFileInsertAfterClick),typeof e.attLinkTooltipEditBeforeClick=="function"&&(t._elementEvents.attLinkTooltipEditButton_onBeforeClick=e.attLinkTooltipEditBeforeClick),typeof e.attLinkTooltipEditAfterClick=="function"&&(t._elementEvents.attLinkTooltipEditButton_onAfterClick=e.attLinkTooltipEditAfterClick),typeof e.attLinkTooltipUnlinkBeforeClick=="function"&&(t._elementEvents.attLinkTooltipUnlinkButton_onBeforeClick=e.attLinkTooltipUnlinkBeforeClick),typeof e.attLinkTooltipUnlinkAfterClick=="function"&&(t._elementEvents.attLinkTooltipUnlinkButton_onAfterClick=e.attLinkTooltipUnlinkAfterClick),typeof e.attImageModalBeforeClick=="function"&&(t._elementEvents.attImageModal_onBeforeClick=e.attImageModalBeforeClick),typeof e.attImageModalAfterClick=="function"&&(t._elementEvents.attImageModal_onAfterClick=e.attImageModalAfterClick),typeof e.attImageUploadViewBeforeDragover=="function"&&(t._elementEvents.attImageUploadButtonAndView_onBeforeDragover=e.attImageUploadViewBeforeDragover),typeof e.attImageUploadViewAfterDragover=="function"&&(t._elementEvents.attImageUploadButtonAndView_onAfterDragover=e.attImageUploadViewAfterDragover),typeof e.attImageUploadViewBeforeDrop=="function"&&(t._elementEvents.attImageUploadButtonAndView_onBeforeDrop=e.attImageUploadViewBeforeDrop),typeof e.attImageUploadViewAfterDrop=="function"&&(t._elementEvents.attImageUploadButtonAndView_onAfterDrop=e.attImageUploadViewAfterDrop),typeof e.attImageUploadViewBeforeClick=="function"&&(t._elementEvents.attImageUploadButtonAndView_onBeforeClick=e.attImageUploadViewBeforeClick),typeof e.attImageUploadViewAfterClick=="function"&&(t._elementEvents.attImageUploadButtonAndView_onAfterClick=e.attImageUploadViewAfterClick),typeof e.attImageViewPreBeforeClick=="function"&&(t._elementEvents.attImageViewPreButton_onBeforeClick=e.attImageViewPreBeforeClick),typeof e.attImageViewPreAfterClick=="function"&&(t._elementEvents.attImageViewPreButton_onAfterClick=e.attImageViewPreAfterClick),typeof e.attImageViewNextBeforeClick=="function"&&(t._elementEvents.attImageViewNextButton_onBeforeClick=e.attImageViewNextBeforeClick),typeof e.attImageViewNextAfterClick=="function"&&(t._elementEvents.attImageViewNextButton_onAfterClick=e.attImageViewNextAfterClick),typeof e.attImageUploadBeforeInput=="function"&&(t._elementEvents.attImageUpload_onBeforeInput=e.attImageUploadBeforeInput),typeof e.attImageUploadAfterInput=="function"&&(t._elementEvents.attImageUpload_onAfterInput=e.attImageUploadAfterInput),typeof e.attImageUploadBeforeBlur=="function"&&(t._elementEvents.attImageUpload_onBeforeBlur=e.attImageUploadBeforeBlur),typeof e.attImageUploadAfterBlur=="function"&&(t._elementEvents.attImageUpload_onAfterBlur=e.attImageUploadAfterBlur),typeof e.attImageURLBeforeInput=="function"&&(t._elementEvents.attImageURL_onBeforeInput=e.attImageURLBeforeInput),typeof e.attImageURLAfterInput=="function"&&(t._elementEvents.attImageURL_onAfterInput=e.attImageURLAfterInput),typeof e.attImageURLBeforeBlur=="function"&&(t._elementEvents.attImageURL_onBeforeBlur=e.attImageURLBeforeBlur),typeof e.attImageURLAfterBlur=="function"&&(t._elementEvents.attImageURL_onAfterBlur=e.attImageURLAfterBlur),typeof e.attImageInsertBeforeClick=="function"&&(t._elementEvents.attImageInsertButton_onBeforeClick=e.attImageInsertBeforeClick),typeof e.attImageInsertAfterClick=="function"&&(t._elementEvents.attImageInsertButton_onAfterClick=e.attImageInsertAfterClick),typeof e.attVideoModalBeforeClick=="function"&&(t._elementEvents.attVideoModal_onBeforeClick=e.attVideoModalBeforeClick),typeof e.attVideoModalAfterClick=="function"&&(t._elementEvents.attVideoModal_onAfterClick=e.attVideoModalAfterClick),typeof e.attVideoEmbedIdBeforeInput=="function"&&(t._elementEvents.attVideoEmbedId_onBeforeInput=e.attVideoEmbedIdBeforeInput),typeof e.attVideoEmbedIdAfterInput=="function"&&(t._elementEvents.attVideoEmbedId_onAfterInput=e.attVideoEmbedIdAfterInput),typeof e.attVideoEmbedIdBeforeBlur=="function"&&(t._elementEvents.attVideoEmbedId_onBeforeBlur=e.attVideoEmbedIdBeforeBlur),typeof e.attVideoEmbedIdAfterBlur=="function"&&(t._elementEvents.attVideoEmbedId_onAfterBlur=e.attVideoEmbedIdAfterBlur),typeof e.attVideoWidthBeforeInput=="function"&&(t._elementEvents.attVideoWidth_onBeforeInput=e.attVideoWidthBeforeInput),typeof e.attVideoWidthAfterInput=="function"&&(t._elementEvents.attVideoWidth_onAfterInput=e.attVideoWidthAfterInput),typeof e.attVideoWidthBeforeBlur=="function"&&(t._elementEvents.attVideoWidth_onBeforeBlur=e.attVideoWidthBeforeBlur),typeof e.attVideoWidthAfterBlur=="function"&&(t._elementEvents.attVideoWidth_onAfterBlur=e.attVideoWidthAfterBlur),typeof e.attVideoHeightBeforeInput=="function"&&(t._elementEvents.attVideoHeight_onBeforeInput=e.attVideoHeightBeforeInput),typeof e.attVideoHeightAfterInput=="function"&&(t._elementEvents.attVideoHeight_onAfterInput=e.attVideoHeightAfterInput),typeof e.attVideoHeightBeforeBlur=="function"&&(t._elementEvents.attVideoHeight_onBeforeBlur=e.attVideoHeightBeforeBlur),typeof e.attVideoHeightAfterBlur=="function"&&(t._elementEvents.attVideoHeight_onAfterBlur=e.attVideoHeightAfterBlur),typeof e.attVideoInsertBeforeClick=="function"&&(t._elementEvents.attVideoInsertButton_onBeforeClick=e.attVideoInsertBeforeClick),typeof e.attVideoInsertAfterClick=="function"&&(t._elementEvents.attVideoInsertButton_onAfterClick=e.attVideoInsertAfterClick),typeof e.attImageAndVideoTooltipWidthBeforeInput=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeInput=e.attImageAndVideoTooltipWidthBeforeInput),typeof e.attImageAndVideoTooltipWidthAfterInput=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterInput=e.attImageAndVideoTooltipWidthAfterInput),typeof e.attImageAndVideoTooltipWidthBeforeBlur=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeBlur=e.attImageAndVideoTooltipWidthBeforeBlur),typeof e.attImageAndVideoTooltipWidthAfterBlur=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterBlur=e.attImageAndVideoTooltipWidthAfterBlur),typeof e.attImageAndVideoTooltipWidthBeforeKeyup=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeKeyup=e.attImageAndVideoTooltipWidthBeforeKeyup),typeof e.attImageAndVideoTooltipWidthAfterKeyup=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterKeyup=e.attImageAndVideoTooltipWidthAfterKeyup),typeof e.attImageAndVideoTooltipFloatRadioNoneBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioNone_onBeforeClick=e.attImageAndVideoTooltipFloatRadioNoneBeforeClick),typeof e.attImageAndVideoTooltipFloatRadioNoneAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioNone_onAfterClick=e.attImageAndVideoTooltipFloatRadioNoneAfterClick),typeof e.attImageAndVideoTooltipFloatRadioLeftBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioLeft_onBeforeClick=e.attImageAndVideoTooltipFloatRadioLeftBeforeClick),typeof e.attImageAndVideoTooltipFloatRadioLeftAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioLeft_onAfterClick=e.attImageAndVideoTooltipFloatRadioLeftAfterClick),typeof e.attImageAndVideoTooltipFloatRadioRightBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioRight_onBeforeClick=e.attImageAndVideoTooltipFloatRadioRightBeforeClick),typeof e.attImageAndVideoTooltipFloatRadioRightAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioRight_onAfterClick=e.attImageAndVideoTooltipFloatRadioRightAfterClick),typeof e.attImageAndVideoTooltipShapeRadioSquareBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioSquare_onBeforeClick=e.attImageAndVideoTooltipShapeRadioSquareBeforeClick),typeof e.attImageAndVideoTooltipShapeRadioSquareAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioSquare_onAfterClick=e.attImageAndVideoTooltipShapeRadioSquareAfterClick),typeof e.attImageAndVideoTooltipShapeRadioRadiusBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioRadius_onBeforeClick=e.attImageAndVideoTooltipShapeRadioRadiusBeforeClick),typeof e.attImageAndVideoTooltipShapeRadioRadiusAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioRadius_onAfterClick=e.attImageAndVideoTooltipShapeRadioRadiusAfterClick),typeof e.attImageAndVideoTooltipShapeRadioCircleBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioCircle_onBeforeClick=e.attImageAndVideoTooltipShapeRadioCircleBeforeClick),typeof e.attImageAndVideoTooltipShapeRadioCircleAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioCircle_onAfterClick=e.attImageAndVideoTooltipShapeRadioCircleAfterClick),typeof e.helpModalBeforeClick=="function"&&(t._elementEvents.helpModal_onBeforeClick=e.helpModalBeforeClick),typeof e.helpModalAfterClick=="function"&&(t._elementEvents.helpModal_onAfterClick=e.helpModalAfterClick),typeof e.placeholderBeforeClick=="function"&&(t._elementEvents.placeholder_onBeforeClick=e.placeholderBeforeClick),typeof e.placeholderAfterClick=="function"&&(t._elementEvents.placeholder_onAfterClick=e.placeholderAfterClick)),F(),y("mounted",t)},b=()=>{l.unregisterReloadable(I),B.value&&(A.unmountNote(B.value),S.disconnect())};return i.onMounted(V),i.onBeforeUnmount(b),i.watch(x,o=>{a(),y("responsive-change",o)}),i.watch(()=>e.modelValue,o=>{if(!r.value)return;const t=r.value.getNoteData();N(t,o)||r.value.setNoteData(o)}),i.watch(()=>e.visible,o=>{const t=!!o;t!==_.value&&(_.value=t)}),i.watch(()=>e.editMode,o=>{o&&o!==u.value&&(u.value=o,F())}),i.watch(()=>e.required,o=>{const t=!!o;t!==m.value&&(m.value=t)}),i.watch(()=>e.tabIndex,o=>{var f,n;const t=o===null||o===""?null:Number(o);if(t!==d.value){d.value=t;const c=(n=(f=r.value)==null?void 0:f._elements)==null?void 0:n.textarea;c&&(t==null?c.removeAttribute("tabIndex"):c.setAttribute("tabIndex",String(t)))}}),i.watch(()=>e.class,()=>{a()}),i.watch(()=>[e.noteModeByDevice,e.toolPosition,e.toolDefaultLine,e.toolToggle],()=>a()),i.watch(()=>[e.textareaWidth,e.textareaHeight,e.textareaMaxWidth,e.textareaMaxHeight,e.textareaHeightIsModify],()=>a()),i.watch(()=>[e.placeholderIsVisible,e.placeholderAddTop,e.placeholderAddLeft,e.placeholderWidth,e.placeholderColor,e.placeholderBackgroundColor,e.placeholderTitle,e.placeholderTextContent],()=>a()),i.watch(()=>[e.attFilePreventTypes,e.attFileAcceptTypes,e.attFileMaxSize,e.attImagePreventTypes,e.attImageAcceptTypes,e.attImageMaxSize],()=>a()),i.watch(()=>[e.defaultFontSize,e.defaultLineHeight,e.defaultFontFamily,e.defaultToolFontFamily,e.addFontFamily,e.removeFontFamily,e.language,e.recodeLimit],()=>a()),i.watch(()=>[e.sizeLevelDesktop,e.sizeLevelMobile,e.color,e.invertColor],()=>a()),i.watch(()=>[e.usingParagraphStyle,e.usingBold,e.usingUnderline,e.usingItalic,e.usingUl,e.usingOl,e.usingTextAlign,e.usingAttLink,e.usingAttFile,e.usingAttImage,e.usingAttVideo,e.usingFontSize,e.usingLetterSpacing,e.usingLineHeight,e.usingFontFamily,e.usingColorText,e.usingColorBack,e.usingFormatClear,e.usingUndo,e.usingRedo,e.usingHelp,e.usingParagraphAllStyle,e.usingCharacterStyle,e.usingCharacterSize,e.usingAttachFile,e.usingDo],()=>a()),{editorWrap:B,props:e,bindAttrs:O,responsiveClassList:E,visibleClass:L,requiredClass:R,editModeClass:H}}});function P(e,y,A,B,r,k){return i.openBlock(),i.createElementBlock("div",{ref:"editorWrap",class:i.normalizeClass(["hison-note","hison-wrap",...e.responsiveClassList,e.visibleClass,e.requiredClass,e.editModeClass]),style:i.normalizeStyle(e.props.style)},[i.createElementVNode("div",i.mergeProps({"data-vanillanote":""},e.bindAttrs),null,16)],6)}const j=z._export_sfc(W,[["render",P]]);exports.default=j;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-nNWQ7mcU.js"),te=require("./HButton-eTsFKKnM.js"),ae=require("./_plugin-vue_export-helper-BHFhmbuH.js"),oe={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},disable:{type:Boolean,default:!1},gap:{type:[Number,String],default:"0.25rem"},border:{type:Boolean,default:!0},backgroundType:{type:String,default:r.BackgroundType.empty,validator:e=>r.BACKGROUND_TYPE_VALUES.includes(e)},clickInterval:{type:Number,default:0},modelValue:{type:Number,default:1},totalItems:{type:Number,required:!1,default:void 0},pageSize:{type:Number,default:10},totalPages:{type:Number,required:!1,default:void 0},maxButtons:{type:Number,default:5},tabIndex:{type:[Number,String],default:null,validator:e=>e===null||e===""||!isNaN(+e)&&isFinite(+e)},showPrev:{type:Boolean,default:!0},showNext:{type:Boolean,default:!0},showFirst:{type:Boolean,default:!0},showLast:{type:Boolean,default:!0}},ne=t.defineComponent({name:"HPagination",components:{HButton:te.default},props:oe,emits:["mounted","responsive-change","update:modelValue","change","first-click","first-mouseover","first-mouseout","prev-click","prev-mouseover","prev-mouseout","next-click","next-mouseover","next-mouseout","last-click","last-mouseover","last-mouseout","page-click","page-mouseover","page-mouseout"],setup(e,{emit:s}){const u=e.id?e.id:r.getUUID(),S=`hpagination:${u}`,g=t.ref(null),L=r.useDevice(),c=t.ref([]),n=()=>{c.value=r.extractResponsiveClasses(r.toClassString(e.class)||"",L.value),r.addComponentNameToClass(c.value,"size",r.hisonCloser.componentStyle.size),r.addComponentNameToClass(c.value,"color","primary")},l=t.computed(()=>{const a=[];return a.push(...r.extractPrefixedClasses(r.toClassString(e.class)||"","size")),a.push(...r.extractPrefixedClasses(r.toClassString(e.class)||"","color")),a}),v=t.ref(!!e.visible),j=t.computed(()=>v.value?"":"hison-display-none"),M=a=>typeof a=="number"?`${a}px`:a??"0.25rem",f=t.ref(M(e.gap)),W=t.computed(()=>{const a={gap:f.value},o=e.style;return Array.isArray(o)?[...o,a]:typeof o=="string"?[o,a]:{...o,...a}}),k=t.ref(!!e.border),p=t.ref(e.backgroundType),y=t.ref(Number(e.clickInterval||0)),K=t.computed(()=>!!e.disable),T=t.ref(e.tabIndex!==null&&e.tabIndex!==""?Number(e.tabIndex):null),i=t.ref(F(e.modelValue));function F(a){const o=Number(a);return Number.isFinite(o)&&o>=1?Math.floor(o):1}const m=t.computed(()=>{if(e.totalPages&&e.totalPages>0)return Math.floor(e.totalPages);const a=Math.max(0,Number(e.totalItems||0)),o=Math.max(1,Number(e.pageSize||10));return Math.max(1,Math.ceil(a/o))}),V=t.computed(()=>i.value<=1),z=t.computed(()=>i.value<=1),A=t.computed(()=>i.value>=m.value),D=t.computed(()=>i.value>=m.value),h=t.ref(!!e.showPrev),N=t.ref(!!e.showNext),C=t.ref(!!e.showFirst),B=t.ref(!!e.showLast),Y=t.computed(()=>Math.max(3,Number(e.maxButtons||7))),J=t.computed(()=>{const a=m.value,o=Math.min(Math.max(1,i.value),a),d=Y.value;if(a<=d)return Array.from({length:a},(I,ee)=>ee+1);const w=Math.floor(d/2);let P=o-w,$=P+d-1;P<1&&(P=1,$=d),$>a&&($=a,P=a-d+1);const O=[];for(let I=P;I<=$;I++)O.push(I);return O}),Q=t.computed(()=>"hison-pagination-button-active"),X=(a,o,d,w)=>{s(`${a}-${o}`,{event:d,button:w,api:g.value,currentPage:i.value,totalPages:m.value})},Z=(a,o,d,w)=>{s(`page-${a}`,{event:d,page:o,isActive:o===i.value,button:w,api:g.value})},b=a=>{const o=m.value,d=Math.min(Math.max(1,Math.floor(a)),o);d!==i.value&&(i.value=d,s("update:modelValue",d),s("change",d,g.value))},E=()=>{z.value||b(i.value-1)},H=()=>{A.value||b(i.value+1)},q=()=>{V.value||b(1)},R=()=>{D.value||b(m.value)},x=a=>{const o=r.hisonCloser.component.buttonList[a];return o?(o.focus(),!0):!1},_=()=>{const a=[`hison_pagination_page_${i.value}_${u}`,`hison_pagination_prev_${u}`,`hison_pagination_next_${u}`,`hison_pagination_first_${u}`,`hison_pagination_last_${u}`];for(const o of a)if(x(o))break},U=()=>{r.hisonCloser.component.paginationList[u]&&r.hisonCloser.component.paginationList[u].isHisonvueComponent&&console.warn(`[Hisonvue] The pagination ID is at risk of being duplicated. ${u}`),r.registerReloadable(S,()=>{G(),t.nextTick(U)}),n(),g.value={isHisonvueComponent:!0,getId:()=>u,getType:()=>"pagination",isVisible:()=>v.value,setVisible:a=>{v.value=a},getGap:()=>f.value,setGap:a=>{f.value=M(a)},getCurrentPage:()=>i.value,setCurrentPage:a=>{b(a)},getTotalPages:()=>m.value,setTotalPages:a=>{const o=Math.min(Math.max(1,i.value),Math.max(1,Math.floor(a)));o!==i.value&&(i.value=o,s("update:modelValue",o),s("change",o,g.value))},getTotalItems:()=>Number(e.totalItems||0),getPageSize:()=>Number(e.pageSize||10),goPrev:E,goNext:H,goFirst:q,goLast:R,isShowPrev:()=>h.value,setShowPrev:a=>{h.value=!!a},isShowNext:()=>N.value,setShowNext:a=>{N.value=!!a},isShowFirst:()=>C.value,setShowFirst:a=>{C.value=!!a},isShowLast:()=>B.value,setShowLast:a=>{B.value=!!a},isBorder:()=>k.value,setBorder:a=>{k.value=a},getBackgroundType:()=>p.value,setBackgroundType:a=>{p.value=a},getClickInterval:()=>y.value,setClickInterval:a=>{y.value=Number(a)||0},getTabIndex:()=>T.value,setTabIndex:a=>{T.value=a!=null?Number(a):null},focus:_,reload:()=>r.reloadHisonComponent(S)},r.hisonCloser.component.paginationList[u]=g.value,s("mounted",g.value)},G=()=>{r.unregisterReloadable(S),delete r.hisonCloser.component.paginationList[u]};return t.onMounted(U),t.onBeforeUnmount(G),t.watch(L,a=>{n(),s("responsive-change",a)}),t.watch(()=>e.class,n),t.watch(()=>e.gap,a=>{const o=M(a);o!==f.value&&(f.value=o)}),t.watch(()=>e.visible,a=>{const o=!!a;o!==v.value&&(v.value=o)}),t.watch(()=>e.border,a=>{const o=!!a;o!==k.value&&(k.value=o)}),t.watch(()=>e.backgroundType,a=>{const o=a;o!==p.value&&(p.value=o)}),t.watch(()=>e.clickInterval,a=>{const o=Number(a)||0;o!==y.value&&(y.value=o)}),t.watch(()=>e.modelValue,a=>{const o=F(a);o!==i.value&&(i.value=o)}),t.watch([()=>e.totalItems,()=>e.pageSize,()=>e.totalPages],()=>{const a=m.value;i.value>a&&(i.value=a,s("update:modelValue",a),s("change",a,g.value))}),t.watch(()=>e.showPrev,a=>{const o=!!a;o!==h.value&&(h.value=o)}),t.watch(()=>e.showNext,a=>{const o=!!a;o!==N.value&&(N.value=o)}),t.watch(()=>e.showFirst,a=>{const o=!!a;o!==C.value&&(C.value=o)}),t.watch(()=>e.showLast,a=>{const o=!!a;o!==B.value&&(B.value=o)}),{id:u,props:e,containerStyle:W,responsiveClassList:c,buttonClassList:l,visibleClass:j,border:k,backgroundType:p,clickInterval:y,tabIndex:T,disableAll:K,currentPage:i,totalPages:m,isFirstDisabled:V,isPrevDisabled:z,isNextDisabled:A,isLastDisabled:D,pageWindow:J,activeButtonClass:Q,showPrev:h,showNext:N,showFirst:C,showLast:B,emitNav:X,emitPageEvt:Z,goPrev:E,goNext:H,goFirst:q,goLast:R,goPage:b}}});function se(e,s,u,S,g,L){const c=t.resolveComponent("HButton");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["hison-pagination",...e.responsiveClassList,e.visibleClass]),style:t.normalizeStyle(e.containerStyle)},[e.showFirst?(t.openBlock(),t.createBlock(c,{key:0,id:`hison_pagination_first_${e.id}`,disable:e.isFirstDisabled||e.disableAll,class:t.normalizeClass([...e.buttonClassList]),border:e.border,"background-type":e.backgroundType,"click-interval":e.clickInterval,tabindex:e.tabIndex??void 0,title:"First",onClick:s[0]||(s[0]=(n,l)=>{e.goFirst(),e.emitNav("first","click",n,l)}),onMouseover:s[1]||(s[1]=(n,l)=>e.emitNav("first","mouseover",n,l)),onMouseout:s[2]||(s[2]=(n,l)=>e.emitNav("first","mouseout",n,l))},{default:t.withCtx(()=>[e.$slots.first?t.renderSlot(e.$slots,"first",{key:0,goFirst:e.goFirst}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("«")],64))]),_:3},8,["id","disable","class","border","background-type","click-interval","tabindex"])):t.createCommentVNode("",!0),e.showPrev?(t.openBlock(),t.createBlock(c,{key:1,id:`hison_pagination_prev_${e.id}`,disable:e.isPrevDisabled||e.disableAll,class:t.normalizeClass([...e.buttonClassList]),border:e.border,"background-type":e.backgroundType,"click-interval":e.clickInterval,tabindex:e.tabIndex??void 0,title:"Previous",onClick:s[3]||(s[3]=(n,l)=>{e.goPrev(),e.emitNav("prev","click",n,l)}),onMouseover:s[4]||(s[4]=(n,l)=>e.emitNav("prev","mouseover",n,l)),onMouseout:s[5]||(s[5]=(n,l)=>e.emitNav("prev","mouseout",n,l))},{default:t.withCtx(()=>[e.$slots.prev?t.renderSlot(e.$slots,"prev",{key:0,goPrev:e.goPrev}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("‹")],64))]),_:3},8,["id","disable","class","border","background-type","click-interval","tabindex"])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pageWindow,n=>(t.openBlock(),t.createBlock(c,{key:`p-${n}`,id:`hison_pagination_page_${n}_${e.id}`,disable:e.disableAll,class:t.normalizeClass([...e.buttonClassList,n===e.currentPage?e.activeButtonClass:""]),border:e.border,"background-type":e.backgroundType,"click-interval":e.clickInterval,title:String(n),onClick:(l,v)=>{e.goPage(n),e.emitPageEvt("click",n,l,v)},onMouseover:(l,v)=>e.emitPageEvt("mouseover",n,l,v),onMouseout:(l,v)=>e.emitPageEvt("mouseout",n,l,v)},{default:t.withCtx(()=>[e.$slots.page?t.renderSlot(e.$slots,"page",{key:0,page:n,goPage:e.goPage,isActive:n===e.currentPage}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n),1)],64))]),_:2},1032,["id","disable","class","border","background-type","click-interval","title","onClick","onMouseover","onMouseout"]))),128)),e.showNext?(t.openBlock(),t.createBlock(c,{key:2,id:`hison_pagination_next_${e.id}`,disable:e.isNextDisabled||e.disableAll,class:t.normalizeClass([...e.buttonClassList]),border:e.border,"background-type":e.backgroundType,"click-interval":e.clickInterval,tabindex:e.tabIndex??void 0,title:"Next",onClick:s[6]||(s[6]=(n,l)=>{e.goNext(),e.emitNav("next","click",n,l)}),onMouseover:s[7]||(s[7]=(n,l)=>e.emitNav("next","mouseover",n,l)),onMouseout:s[8]||(s[8]=(n,l)=>e.emitNav("next","mouseout",n,l))},{default:t.withCtx(()=>[e.$slots.next?t.renderSlot(e.$slots,"next",{key:0,goNext:e.goNext}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("›")],64))]),_:3},8,["id","disable","class","border","background-type","click-interval","tabindex"])):t.createCommentVNode("",!0),e.showLast?(t.openBlock(),t.createBlock(c,{key:3,id:`hison_pagination_last_${e.id}`,disable:e.isLastDisabled||e.disableAll,class:t.normalizeClass([...e.buttonClassList]),border:e.border,"background-type":e.backgroundType,"click-interval":e.clickInterval,tabindex:e.tabIndex??void 0,title:"Last",onClick:s[9]||(s[9]=(n,l)=>{e.goLast(),e.emitNav("last","click",n,l)}),onMouseover:s[10]||(s[10]=(n,l)=>e.emitNav("last","mouseover",n,l)),onMouseout:s[11]||(s[11]=(n,l)=>e.emitNav("last","mouseout",n,l))},{default:t.withCtx(()=>[e.$slots.last?t.renderSlot(e.$slots,"last",{key:0,goLast:e.goLast}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("»")],64))]),_:3},8,["id","disable","class","border","background-type","click-interval","tabindex"])):t.createCommentVNode("",!0)],6)}const le=ae._export_sfc(ne,[["render",se]]);exports.default=le;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-CwePYZaW.js"),te=require("./HButton-DOQKYh71.js"),ae=require("./_plugin-vue_export-helper-BHFhmbuH.js"),oe={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},disable:{type:Boolean,default:!1},gap:{type:[Number,String],default:"0.25rem"},border:{type:Boolean,default:!0},backgroundType:{type:String,default:r.BackgroundType.empty,validator:e=>r.BACKGROUND_TYPE_VALUES.includes(e)},clickInterval:{type:Number,default:0},modelValue:{type:Number,default:1},totalItems:{type:Number,required:!1,default:void 0},pageSize:{type:Number,default:10},totalPages:{type:Number,required:!1,default:void 0},maxButtons:{type:Number,default:5},tabIndex:{type:[Number,String],default:null,validator:e=>e===null||e===""||!isNaN(+e)&&isFinite(+e)},showPrev:{type:Boolean,default:!0},showNext:{type:Boolean,default:!0},showFirst:{type:Boolean,default:!0},showLast:{type:Boolean,default:!0}},ne=t.defineComponent({name:"HPagination",components:{HButton:te.default},props:oe,emits:["mounted","responsive-change","update:modelValue","change","first-click","first-mouseover","first-mouseout","prev-click","prev-mouseover","prev-mouseout","next-click","next-mouseover","next-mouseout","last-click","last-mouseover","last-mouseout","page-click","page-mouseover","page-mouseout"],setup(e,{emit:s}){const u=e.id?e.id:r.getUUID(),S=`hpagination:${u}`,g=t.ref(null),L=r.useDevice(),c=t.ref([]),n=()=>{c.value=r.extractResponsiveClasses(r.toClassString(e.class)||"",L.value),r.addComponentNameToClass(c.value,"size",r.hisonCloser.componentStyle.size),r.addComponentNameToClass(c.value,"color","primary")},l=t.computed(()=>{const a=[];return a.push(...r.extractPrefixedClasses(r.toClassString(e.class)||"","size")),a.push(...r.extractPrefixedClasses(r.toClassString(e.class)||"","color")),a}),v=t.ref(!!e.visible),j=t.computed(()=>v.value?"":"hison-display-none"),M=a=>typeof a=="number"?`${a}px`:a??"0.25rem",f=t.ref(M(e.gap)),W=t.computed(()=>{const a={gap:f.value},o=e.style;return Array.isArray(o)?[...o,a]:typeof o=="string"?[o,a]:{...o,...a}}),k=t.ref(!!e.border),p=t.ref(e.backgroundType),y=t.ref(Number(e.clickInterval||0)),K=t.computed(()=>!!e.disable),T=t.ref(e.tabIndex!==null&&e.tabIndex!==""?Number(e.tabIndex):null),i=t.ref(F(e.modelValue));function F(a){const o=Number(a);return Number.isFinite(o)&&o>=1?Math.floor(o):1}const m=t.computed(()=>{if(e.totalPages&&e.totalPages>0)return Math.floor(e.totalPages);const a=Math.max(0,Number(e.totalItems||0)),o=Math.max(1,Number(e.pageSize||10));return Math.max(1,Math.ceil(a/o))}),V=t.computed(()=>i.value<=1),z=t.computed(()=>i.value<=1),A=t.computed(()=>i.value>=m.value),D=t.computed(()=>i.value>=m.value),h=t.ref(!!e.showPrev),N=t.ref(!!e.showNext),C=t.ref(!!e.showFirst),B=t.ref(!!e.showLast),Y=t.computed(()=>Math.max(3,Number(e.maxButtons||7))),J=t.computed(()=>{const a=m.value,o=Math.min(Math.max(1,i.value),a),d=Y.value;if(a<=d)return Array.from({length:a},(I,ee)=>ee+1);const w=Math.floor(d/2);let P=o-w,$=P+d-1;P<1&&(P=1,$=d),$>a&&($=a,P=a-d+1);const O=[];for(let I=P;I<=$;I++)O.push(I);return O}),Q=t.computed(()=>"hison-pagination-button-active"),X=(a,o,d,w)=>{s(`${a}-${o}`,{event:d,button:w,api:g.value,currentPage:i.value,totalPages:m.value})},Z=(a,o,d,w)=>{s(`page-${a}`,{event:d,page:o,isActive:o===i.value,button:w,api:g.value})},b=a=>{const o=m.value,d=Math.min(Math.max(1,Math.floor(a)),o);d!==i.value&&(i.value=d,s("update:modelValue",d),s("change",d,g.value))},E=()=>{z.value||b(i.value-1)},H=()=>{A.value||b(i.value+1)},q=()=>{V.value||b(1)},R=()=>{D.value||b(m.value)},x=a=>{const o=r.hisonCloser.component.buttonList[a];return o?(o.focus(),!0):!1},_=()=>{const a=[`hison_pagination_page_${i.value}_${u}`,`hison_pagination_prev_${u}`,`hison_pagination_next_${u}`,`hison_pagination_first_${u}`,`hison_pagination_last_${u}`];for(const o of a)if(x(o))break},U=()=>{r.hisonCloser.component.paginationList[u]&&r.hisonCloser.component.paginationList[u].isHisonvueComponent&&console.warn(`[Hisonvue] The pagination ID is at risk of being duplicated. ${u}`),r.registerReloadable(S,()=>{G(),t.nextTick(U)}),n(),g.value={isHisonvueComponent:!0,getId:()=>u,getType:()=>"pagination",isVisible:()=>v.value,setVisible:a=>{v.value=a},getGap:()=>f.value,setGap:a=>{f.value=M(a)},getCurrentPage:()=>i.value,setCurrentPage:a=>{b(a)},getTotalPages:()=>m.value,setTotalPages:a=>{const o=Math.min(Math.max(1,i.value),Math.max(1,Math.floor(a)));o!==i.value&&(i.value=o,s("update:modelValue",o),s("change",o,g.value))},getTotalItems:()=>Number(e.totalItems||0),getPageSize:()=>Number(e.pageSize||10),goPrev:E,goNext:H,goFirst:q,goLast:R,isShowPrev:()=>h.value,setShowPrev:a=>{h.value=!!a},isShowNext:()=>N.value,setShowNext:a=>{N.value=!!a},isShowFirst:()=>C.value,setShowFirst:a=>{C.value=!!a},isShowLast:()=>B.value,setShowLast:a=>{B.value=!!a},isBorder:()=>k.value,setBorder:a=>{k.value=a},getBackgroundType:()=>p.value,setBackgroundType:a=>{p.value=a},getClickInterval:()=>y.value,setClickInterval:a=>{y.value=Number(a)||0},getTabIndex:()=>T.value,setTabIndex:a=>{T.value=a!=null?Number(a):null},focus:_,reload:()=>r.reloadHisonComponent(S)},r.hisonCloser.component.paginationList[u]=g.value,s("mounted",g.value)},G=()=>{r.unregisterReloadable(S),delete r.hisonCloser.component.paginationList[u]};return t.onMounted(U),t.onBeforeUnmount(G),t.watch(L,a=>{n(),s("responsive-change",a)}),t.watch(()=>e.class,n),t.watch(()=>e.gap,a=>{const o=M(a);o!==f.value&&(f.value=o)}),t.watch(()=>e.visible,a=>{const o=!!a;o!==v.value&&(v.value=o)}),t.watch(()=>e.border,a=>{const o=!!a;o!==k.value&&(k.value=o)}),t.watch(()=>e.backgroundType,a=>{const o=a;o!==p.value&&(p.value=o)}),t.watch(()=>e.clickInterval,a=>{const o=Number(a)||0;o!==y.value&&(y.value=o)}),t.watch(()=>e.modelValue,a=>{const o=F(a);o!==i.value&&(i.value=o)}),t.watch([()=>e.totalItems,()=>e.pageSize,()=>e.totalPages],()=>{const a=m.value;i.value>a&&(i.value=a,s("update:modelValue",a),s("change",a,g.value))}),t.watch(()=>e.showPrev,a=>{const o=!!a;o!==h.value&&(h.value=o)}),t.watch(()=>e.showNext,a=>{const o=!!a;o!==N.value&&(N.value=o)}),t.watch(()=>e.showFirst,a=>{const o=!!a;o!==C.value&&(C.value=o)}),t.watch(()=>e.showLast,a=>{const o=!!a;o!==B.value&&(B.value=o)}),{id:u,props:e,containerStyle:W,responsiveClassList:c,buttonClassList:l,visibleClass:j,border:k,backgroundType:p,clickInterval:y,tabIndex:T,disableAll:K,currentPage:i,totalPages:m,isFirstDisabled:V,isPrevDisabled:z,isNextDisabled:A,isLastDisabled:D,pageWindow:J,activeButtonClass:Q,showPrev:h,showNext:N,showFirst:C,showLast:B,emitNav:X,emitPageEvt:Z,goPrev:E,goNext:H,goFirst:q,goLast:R,goPage:b}}});function se(e,s,u,S,g,L){const c=t.resolveComponent("HButton");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["hison-pagination",...e.responsiveClassList,e.visibleClass]),style:t.normalizeStyle(e.containerStyle)},[e.showFirst?(t.openBlock(),t.createBlock(c,{key:0,id:`hison_pagination_first_${e.id}`,disable:e.isFirstDisabled||e.disableAll,class:t.normalizeClass([...e.buttonClassList]),border:e.border,"background-type":e.backgroundType,"click-interval":e.clickInterval,tabindex:e.tabIndex??void 0,title:"First",onClick:s[0]||(s[0]=(n,l)=>{e.goFirst(),e.emitNav("first","click",n,l)}),onMouseover:s[1]||(s[1]=(n,l)=>e.emitNav("first","mouseover",n,l)),onMouseout:s[2]||(s[2]=(n,l)=>e.emitNav("first","mouseout",n,l))},{default:t.withCtx(()=>[e.$slots.first?t.renderSlot(e.$slots,"first",{key:0,goFirst:e.goFirst}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("«")],64))]),_:3},8,["id","disable","class","border","background-type","click-interval","tabindex"])):t.createCommentVNode("",!0),e.showPrev?(t.openBlock(),t.createBlock(c,{key:1,id:`hison_pagination_prev_${e.id}`,disable:e.isPrevDisabled||e.disableAll,class:t.normalizeClass([...e.buttonClassList]),border:e.border,"background-type":e.backgroundType,"click-interval":e.clickInterval,tabindex:e.tabIndex??void 0,title:"Previous",onClick:s[3]||(s[3]=(n,l)=>{e.goPrev(),e.emitNav("prev","click",n,l)}),onMouseover:s[4]||(s[4]=(n,l)=>e.emitNav("prev","mouseover",n,l)),onMouseout:s[5]||(s[5]=(n,l)=>e.emitNav("prev","mouseout",n,l))},{default:t.withCtx(()=>[e.$slots.prev?t.renderSlot(e.$slots,"prev",{key:0,goPrev:e.goPrev}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("‹")],64))]),_:3},8,["id","disable","class","border","background-type","click-interval","tabindex"])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pageWindow,n=>(t.openBlock(),t.createBlock(c,{key:`p-${n}`,id:`hison_pagination_page_${n}_${e.id}`,disable:e.disableAll,class:t.normalizeClass([...e.buttonClassList,n===e.currentPage?e.activeButtonClass:""]),border:e.border,"background-type":e.backgroundType,"click-interval":e.clickInterval,title:String(n),onClick:(l,v)=>{e.goPage(n),e.emitPageEvt("click",n,l,v)},onMouseover:(l,v)=>e.emitPageEvt("mouseover",n,l,v),onMouseout:(l,v)=>e.emitPageEvt("mouseout",n,l,v)},{default:t.withCtx(()=>[e.$slots.page?t.renderSlot(e.$slots,"page",{key:0,page:n,goPage:e.goPage,isActive:n===e.currentPage}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n),1)],64))]),_:2},1032,["id","disable","class","border","background-type","click-interval","title","onClick","onMouseover","onMouseout"]))),128)),e.showNext?(t.openBlock(),t.createBlock(c,{key:2,id:`hison_pagination_next_${e.id}`,disable:e.isNextDisabled||e.disableAll,class:t.normalizeClass([...e.buttonClassList]),border:e.border,"background-type":e.backgroundType,"click-interval":e.clickInterval,tabindex:e.tabIndex??void 0,title:"Next",onClick:s[6]||(s[6]=(n,l)=>{e.goNext(),e.emitNav("next","click",n,l)}),onMouseover:s[7]||(s[7]=(n,l)=>e.emitNav("next","mouseover",n,l)),onMouseout:s[8]||(s[8]=(n,l)=>e.emitNav("next","mouseout",n,l))},{default:t.withCtx(()=>[e.$slots.next?t.renderSlot(e.$slots,"next",{key:0,goNext:e.goNext}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("›")],64))]),_:3},8,["id","disable","class","border","background-type","click-interval","tabindex"])):t.createCommentVNode("",!0),e.showLast?(t.openBlock(),t.createBlock(c,{key:3,id:`hison_pagination_last_${e.id}`,disable:e.isLastDisabled||e.disableAll,class:t.normalizeClass([...e.buttonClassList]),border:e.border,"background-type":e.backgroundType,"click-interval":e.clickInterval,tabindex:e.tabIndex??void 0,title:"Last",onClick:s[9]||(s[9]=(n,l)=>{e.goLast(),e.emitNav("last","click",n,l)}),onMouseover:s[10]||(s[10]=(n,l)=>e.emitNav("last","mouseover",n,l)),onMouseout:s[11]||(s[11]=(n,l)=>e.emitNav("last","mouseout",n,l))},{default:t.withCtx(()=>[e.$slots.last?t.renderSlot(e.$slots,"last",{key:0,goLast:e.goLast}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("»")],64))]),_:3},8,["id","disable","class","border","background-type","click-interval","tabindex"])):t.createCommentVNode("",!0)],6)}const le=ae._export_sfc(ne,[["render",se]]);exports.default=le;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as ce, ref as r, computed as d, onMounted as fe, onBeforeUnmount as ke, watch as v, nextTick as ye, resolveComponent as pe, createElementBlock as k, openBlock as g, normalizeStyle as he, normalizeClass as p, createBlock as F, createCommentVNode as R, withCtx as A, renderSlot as z, Fragment as h, createTextVNode as D, renderList as Ne, toDisplayString as Pe } from "vue";
2
- import { B as Ce, f as we, g as $e, u as Ie, j as ae, t as j, e as Le, b as oe, h as N, r as Me, c as Be, d as Se } from "./index-lqOpF_Ng.mjs";
3
- import Te from "./HButton-9dYGtsQK.mjs";
2
+ import { B as Ce, f as we, g as $e, u as Ie, j as ae, t as j, e as Le, b as oe, h as N, r as Me, c as Be, d as Se } from "./index-C3MEbk_F.mjs";
3
+ import Te from "./HButton-C-5U9CYg.mjs";
4
4
  import { _ as Fe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
5
  const Ae = {
6
6
  /**