@creatorsn/vfluent3 0.3.12 → 0.3.15

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.
@@ -30,6 +30,6 @@ This will fail in production.`);a=At,a._s.has(o)||(s?Oi(o,i,r,a):oo(o,r,a),proce
30
30
  ${this.showItem(i,this.showWeek)}
31
31
  </div>`}}),this.yearSwiper=new oe(this.$refs.year,{...t,initialSlide:this.decodeDate(2),freeMode:{momentum:!0,sticky:!0},virtual:{slides:this.yearList,renderSlide:(i,e)=>`<div class="fv-date-picker-options-body-item swiper-slide">
32
32
  ${this.showItem(i)}
33
- </div>`}}),this.monthSwiper.on("sliderMove",()=>{this.getDayList()}),this.yearSwiper.on("sliderMove",()=>{this.getDayList()}),this.$refs.month.addEventListener("wheel",i=>{i.preventDefault();let e=i.deltaY;e=parseInt(e/100),this.scrollCount.month+=e,this.scrollDispatch(this.monthSwiper,"month")}),this.$refs.day.addEventListener("wheel",i=>{i.preventDefault();let e=i.deltaY;e=parseInt(e/100),this.scrollCount.day+=e,this.scrollDispatch(this.daySwiper,"day")}),this.$refs.year.addEventListener("wheel",i=>{i.preventDefault();let e=i.deltaY;e=parseInt(e/100),this.scrollCount.year+=e,this.scrollDispatch(this.yearSwiper,"year")})},focus(){this.disabled||(this.show=!0)},getDayList(){let t=[],i=this.thisValue.getMonth(),e=this.thisValue.getFullYear();this.monthSwiper&&this.yearSwiper&&(i=this.monthSwiper.realIndex%this.months.length,e=this.yearSwiper.realIndex+1900);let o=new Date(e,i+1,0).getDate();for(let s=1;s<=o;s++)t.push(s);let r=this.daySwiper.realIndex%this.dayList.length;this.dayList=t,this.daySwiper.virtual.cache=[],this.daySwiper.virtual.slides=this.virtualDayList,this.daySwiper.virtual.update(),this.daySwiper.slideToLoop(15*this.dayList.length+r,0)},decodeDate(t){return t===0?this.thisValue.getMonth():t===1?this.thisValue.getDate():this.thisValue.getFullYear()},showDate(t){let i=this.decodeDate(t);return t===0?this.months[i]:t===1&&i<10?`0${i}`:i},showItem(t,i=!1){if(parseFloat(t).toString()==="NaN")return t;if(i){let e=this.monthSwiper.realIndex%this.months.length,o=this.yearSwiper.realIndex+1900,r=new Date(o,e,t),s=this.weeks[r.getDay()%7];return t<10?`0${t} (${s})`:`${t} (${s})`}return t<10?`0${t}`:t},syncTime(){this.daySwiper.slideToLoop(15*this.dayList.length+this.decodeDate(1)-1,0),this.monthSwiper.slideToLoop(15*this.months.length+this.decodeDate(0),0),this.yearSwiper.slideToLoop(this.decodeDate(2)-1900,0)},accept(){let t=this.monthSwiper.realIndex%this.months.length,i=this.daySwiper.realIndex%this.dayList.length+1,e=this.yearSwiper.realIndex+1900,o=new Date(this.thisValue);o.setMonth(t),o.setDate(i),o.setFullYear(e),this.thisValue=new Date(o),this.show=!1},scrollDispatch(t,i){!t||(clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{this.scrollExec(t,i),this.scrollCount[i]=0},20))},scrollExec(t,i){let e=this.scrollCount[i];e=e>3?3:e;let o=t.realIndex;o=o+e,t.slideToLoop(o),i.includes("month","year")&&this.getDayList()}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent),window.removeEventListener("touchend",this.outSideClickEvent)}},{props:{...A,modelValue:{type:Date,default:()=>new Date},months:{default:()=>["January","February","March","April","May","June","July","August","September","October","November","December"]},weeks:{default:()=>["Sun.","Mon.","Tue.","Wed.","Thu.","Fri.","Sat."]},hideYear:{default:!1},hideMonth:{default:!1},hideDay:{default:!1},showWeek:{default:!1},inputBackground:{default:""},innerBorderColor:{type:String,default:"rgba(200, 200, 200, 0.3)"},selectedBackground:{default:""},optionBackground:{default:""},slideBtnBackground:{default:""},reverseLayout:{default:!1},disabled:{type:Boolean,default:!1},hoverColor:{type:String,default:void 0}},emits:["update:modelValue","change"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-DatePicker",[e.$theme,{disabled:t.disabled}]]),style:n.normalizeStyle({"--hover-color":t.hoverColor})},[n.createElementVNode("div",{class:n.normalizeClass(["fv-date-picker-input",[{reverse:t.reverseLayout}]]),style:n.normalizeStyle({background:t.inputBackground}),onClick:o[0]||(o[0]=r=>e.focus())},[n.withDirectives(n.createElementVNode("input",{value:e.showDate(0),readonly:"",class:"fv-date-picker-input-item",style:{flex:"2"}},null,8,Kc),[[n.vShow,!t.hideMonth]]),n.withDirectives(n.createElementVNode("input",{value:e.showDate(1),readonly:"",class:"fv-date-picker-input-item",style:n.normalizeStyle({borderColor:t.innerBorderColor})},null,12,Jc),[[n.vShow,!t.hideDay]]),n.withDirectives(n.createElementVNode("input",{value:e.showDate(2),readonly:"",style:n.normalizeStyle({borderColor:t.innerBorderColor}),class:"fv-date-picker-input-item"},null,12,Qc),[[n.vShow,!t.hideYear]])],6),n.createVNode(n.Transition,{name:"fv-date-picker-options"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:"fv-date-picker-options",style:n.normalizeStyle({background:t.optionBackground})},[n.createElementVNode("div",{class:n.normalizeClass(["fv-date-picker-options-body",[{reverse:t.reverseLayout}]])},[n.createElementVNode("div",{class:"fv-date-picker-options-body-mask",style:n.normalizeStyle({background:t.selectedBackground})},null,4),n.withDirectives(n.createElementVNode("div",{class:"fv-date-picker-options-body-col",style:n.normalizeStyle([{flex:"2"},{borderColor:t.innerBorderColor}])},[n.createElementVNode("div",{class:"fv-date-picker-options-body-col-up",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[1]||(o[1]=r=>e.monthSwiper.slidePrev())},Zc,4),n.createElementVNode("div",ef,tf,512),n.createElementVNode("div",{class:"fv-date-picker-options-body-col-down",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[2]||(o[2]=r=>e.monthSwiper.slideNext())},nf,4)],4),[[n.vShow,!t.hideMonth]]),n.withDirectives(n.createElementVNode("div",{class:"fv-date-picker-options-body-col",style:n.normalizeStyle({borderColor:t.innerBorderColor})},[n.createElementVNode("div",{class:"fv-date-picker-options-body-col-up",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[3]||(o[3]=r=>e.daySwiper.slidePrev())},of,4),n.createElementVNode("div",rf,sf,512),n.createElementVNode("div",{class:"fv-date-picker-options-body-col-down",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[4]||(o[4]=r=>e.daySwiper.slideNext())},lf,4)],4),[[n.vShow,!t.hideDay]]),n.withDirectives(n.createElementVNode("div",af,[n.createElementVNode("div",{class:"fv-date-picker-options-body-col-up",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[5]||(o[5]=r=>e.yearSwiper.slidePrev())},df,4),n.createElementVNode("div",hf,uf,512),n.createElementVNode("div",{class:"fv-date-picker-options-body-col-down",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[6]||(o[6]=r=>e.yearSwiper.slideNext())},cf,4)],512),[[n.vShow,!t.hideYear]])],2),n.createElementVNode("div",ff,[n.createElementVNode("button",{class:"fv-date-picker-options-bar-accept",onClick:o[7]||(o[7]=(...r)=>e.accept&&e.accept(...r))},mf),n.createElementVNode("button",{class:"fv-date-picker-options-bar-cancel",onClick:o[8]||(o[8]=r=>e.show=!1)},gf)])],4),[[n.vShow,e.show]])]),_:1})],6))}}),Yr=W(pf),Ck="",Vk="",Sk="";class de{static preProcessElements(i,e){let o=[];return i.forEach(r=>{r.hashCode||(r.hashCode=this.GuidWithoutDash());let s={oriBg:getComputedStyle(r)["background-image"],oriBorder:getComputedStyle(r)["border-image"],oriBgRepeat:getComputedStyle(r)["background-repeat"],isBindingClickEvent:!1,wave:0,clickWave:{},revealPosition:{x:0,y:0},options:{backgroundGradientSize:150,borderGradientSize:80,borderLightColor:"rgba(255, 255, 255, 0.25)",backgroundLightColor:"rgba(255, 255, 255, 0.25)",status:"enabled"},el:r};s.options=Object.assign(s.options,e),o.push(s)}),o}static getOffset(i){return{top:i.el.getBoundingClientRect().top,left:i.el.getBoundingClientRect().left}}static drawEffectBasic(i,e=!1,o="background"){let r,s;r=`radial-gradient(circle ${this.valueTrigger(i.options.borderGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.borderLightColor)}, rgba(255,255,255,0)) 5% 5% 5% 5%`,e===!1?s=`radial-gradient(circle ${this.valueTrigger(i.options.backgroundGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0))`:s=`radial-gradient(circle ${this.valueTrigger(i.options.backgroundGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0)), radial-gradient(circle ${i.wave}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, rgba(255,255,255,0), ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0), rgba(255,255,255,0))`,o=="background"?e==!0?(i.wave=120,i.clickWave=setInterval(()=>{try{let l=i.wave,a=l/60+1;l+=a,l>=1e3?clearInterval(i.clickWave):(i.wave=l,s=`radial-gradient(circle ${this.valueTrigger(i.options.backgroundGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0)), radial-gradient(circle ${i.wave}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, rgba(255,255,255,0), ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0), rgba(255,255,255,0))`,i.el.style.backgroundImage=s,i.el.style.backgroundRepeat="no-repeat")}catch{}},50)):(clearInterval(i.clickWave),i.wave=0,s=`radial-gradient(circle ${this.valueTrigger(i.options.backgroundGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0))`,i.el.style.backgroundImage=s,i.el.style.backgroundRepeat="no-repeat"):o=="border"&&(i.el.style.borderImage=r)}static drawEffectBorder(i,e=!1){this.drawEffectBasic(i,e,"border")}static drawEffectBackground(i,e=!1){this.drawEffectBasic(i,e,"background")}static clearBackground(i){!i||(clearInterval(i.clickWave),i.wave=0,i.el.style.backgroundImage=i.oriBg,i.el.style.backgroundRepeat=i.oriBgRepeat)}static clearBorder(i){i.el.style.borderImage=i.oriBorder}static isInsideElement(i,e,o){const r={left:i.el.getBoundingClientRect().left,right:i.el.getBoundingClientRect().right,top:i.el.getBoundingClientRect().top,bottom:i.el.getBoundingClientRect().bottom};return e>=r.left&&e<=r.right&&o>=r.top&&o<=r.bottom}static distanceOfElement(i,e,o){const r={left:i.el.getBoundingClientRect().left,right:i.el.getBoundingClientRect().right,top:i.el.getBoundingClientRect().top,bottom:i.el.getBoundingClientRect().bottom};return{left:r.left-e,right:e-r.right,top:r.top-o,bottom:o-r.bottom}}static GuidWithoutDash(){function i(){return((1+Math.random())*65536|0).toString(16).substring(1)}return i()+i()+i()+i()+i()+i()+i()+i()}static valueTrigger(i){return typeof i=="function"?i():i}static getOffset(i){return{top:i.el.getBoundingClientRect().top,left:i.el.getBoundingClientRect().left}}static typeObj(i){let e=Object.prototype.toString.call(i);return e.substring(8,e.length-1)}static GuidWithoutDash(){function i(){return((1+Math.random())*65536|0).toString(16).substring(1)}return i()+i()+i()+i()+i()+i()+i()+i()}}class wf{constructor(){this.FvRevealElementList={window:{}},this.windowEventBinded=!1,this.initStatus=!1}init(){this.initStatus||(this.applyCommonEffects(),this.timer=setInterval(()=>{for(let i in this.FvRevealElementList.window)this.refreshChildren(i);for(let i in this.FvRevealElementList)i!="window"&&this.refreshChildren(i)},1e3),this.initStatus=!0)}apply(i,e){let o={key:de.GuidWithoutDash(),selector:".eff-reveal-border",backgroundGradientSize:150,borderGradientSize:80,borderLightColor:"rgba(255, 255, 255, 0.25)",backgroundLightColor:"rgba(255, 255, 255, 0.25)",eventTriggerMode:"window",status:"enabled"};e=Object.assign(o,e);let r=this.getChildren(i,e);return e.eventTriggerMode==="window"?(this.FvRevealElementList.window[e.key]={key:e.key,el:i,options:e,children:this.getChildrenX(r,e)},this.applyCommonEffects()):(this.FvRevealElementList[e.key]={key:e.key,el:i,options:e,children:this.getChildrenX(r,e)},this.applyCommonEffects(e.key)),e.key}refreshChildren(i){let e=this.FvRevealElementList[i];e||(e=this.FvRevealElementList.window[i]);let o=[].slice.call(this.getChildren(e.el,e.options),0);e.children=[...e.children,...this.getChildrenX(o.filter(r=>!r.hashCode),e.options)]}getChildren(i,e){return i==null&&(i=document),e.selector?typeof e.selector=="string"?i.querySelectorAll(e.selector):Array.isArray(e.selector)?e.maskedSelector:de.typeObj(e.selector)==="NodeList"?e.selector:[e.selector]:[]}getChildrenX(i,e){let o=de.preProcessElements(i,e);for(let r of o)this.applyClickEffects(r);return o}applyCommonEffects(i="window"){if(typeof global<"u")return;let e;if(window!==void 0){if(e=window,this.windowEventBinded)return;this.windowEventBinded=!0}if(i!="window"&&(e=this.FvRevealElementList[i].el),e===void 0)return;let o=i==="window"?this.FvRevealElementList.window:{key:this.FvRevealElementList[i]},r=l=>{if(l.type.indexOf("mouse")<0&&(l=l.targetTouches[0]),!!o)for(let a in o){let d=o[a];for(let h of d.children){if(de.valueTrigger(h.options.status)==="disabled")continue;let u=l.pageX-de.getOffset(h).left-window.scrollX,c=l.pageY-de.getOffset(h).top-window.scrollY;h.revealPosition.x=u,h.revealPosition.y=c;let f=de.distanceOfElement(h,l.clientX,l.clientY);f.left>300||f.top>300||f.right>300||f.bottom>300||de.drawEffectBorder(h),de.isInsideElement(h,l.clientX,l.clientY)?h.wave==0&&de.drawEffectBackground(h):de.clearBackground(h)}}},s=l=>{if(!!o)for(let a in o){let d=o[a];for(let h of d.children)de.clearBackground(h),de.clearBorder(h)}};e.addEventListener("mousemove",r),e.addEventListener("touchmove",r),e.addEventListener("mouseleave",s),e.addEventListener("touchend",s)}applyClickEffects(i){let e=s=>{let l=s.target,a=!1;for(;l&&l.tagName&&l.tagName.toLowerCase()!="body";){if(l==i.el){a=!0;break}l=l.parentNode}return a},o=s=>{if(!e(s)||de.valueTrigger(i.options.status)==="disabled")return;s.type.indexOf("mouse")<0&&(s=s.targetTouches[0]);let l=s.pageX-de.getOffset(i).left-window.scrollX,a=s.pageY-de.getOffset(i).top-window.scrollY;i.revealPosition.x=l,i.revealPosition.y=a,de.drawEffectBackground(i,!0)},r=s=>{de.drawEffectBackground(i)};i.isBindingClickEvent||(i.el.addEventListener("mousedown",o),i.el.addEventListener("touchstart",o),i.el.addEventListener("mouseup",r),i.isBindingClickEvent=!0)}destroy(i){let e=[];return this.FvRevealElementList.window[i]&&e.push("window"),this.FvRevealElementList[i]&&e.push("parent"),delete this.FvRevealElementList.window[i],delete this.FvRevealElementList[i],{exists:e,key:i}}}class Q{static preProcessElements(i,e,o="target"){let r=[];return i.forEach(s=>{s.hashCode||(s.hashCode=this.GuidWithoutDash());let l={oriBg:getComputedStyle(s)["background-image"],oriBorder:getComputedStyle(s)["border-image"],oriBgRepeat:getComputedStyle(s)["background-repeat"],isBindingClickEvent:!1,wave:0,clickWave:{},revealPosition:{x:0,y:0},options:{backgroundGradientSize:150,borderGradientSize:80,borderLightColor:"rgba(255, 255, 255, 0.25)",backgroundLightColor:"rgba(255, 255, 255, 0.25)",elementType:o,status:"enabled"},el:s};l.options=Object.assign(l.options,e),r.push(l)}),r}static getOffset(i){return{top:i.el.getBoundingClientRect().top,left:i.el.getBoundingClientRect().left}}static drawEffectBasic(i,e=!1,o="background"){let r,s;r=`radial-gradient(circle ${this.valueTrigger(i.options.borderGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.borderLightColor)}, rgba(255,255,255,0))`,e===!1?s=`radial-gradient(circle ${this.valueTrigger(i.options.backgroundGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0))`:s=`radial-gradient(circle ${this.valueTrigger(i.options.backgroundGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0)), radial-gradient(circle ${i.wave}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, rgba(255,255,255,0), ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0), rgba(255,255,255,0))`,o=="background"?e==!0?(i.wave=120,i.clickWave=setInterval(()=>{try{let l=i.wave,a=l/60+1;l+=a,l>=1e3?clearInterval(i.clickWave):(i.wave=l,s=`radial-gradient(circle ${this.valueTrigger(i.options.backgroundGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0)), radial-gradient(circle ${i.wave}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, rgba(255,255,255,0), ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0), rgba(255,255,255,0))`,i.el.style.backgroundImage=s,i.el.style.backgroundRepeat="no-repeat")}catch{}},50)):(clearInterval(i.clickWave),i.wave=0,s=`radial-gradient(circle ${this.valueTrigger(i.options.backgroundGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0))`,i.el.style.backgroundImage=s,i.el.style.backgroundRepeat="no-repeat"):o=="border"&&(i.el.style.backgroundImage=r,i.el.style.backgroundRepeat="no-repeat")}static drawEffectBorder(i,e=!1){this.drawEffectBasic(i,e,"border")}static drawEffectBackground(i,e=!1){this.drawEffectBasic(i,e,"background")}static clearBackground(i){!i||(clearInterval(i.clickWave),i.wave=0,i.el.style.backgroundImage=i.oriBg,i.el.style.backgroundRepeat=i.oriBgRepeat)}static isInsideElement(i,e,o){const r={left:i.el.getBoundingClientRect().left,right:i.el.getBoundingClientRect().right,top:i.el.getBoundingClientRect().top,bottom:i.el.getBoundingClientRect().bottom};return e>=r.left&&e<=r.right&&o>=r.top&&o<=r.bottom}static distanceOfElement(i,e,o){const r={left:i.el.getBoundingClientRect().left,right:i.el.getBoundingClientRect().right,top:i.el.getBoundingClientRect().top,bottom:i.el.getBoundingClientRect().bottom};return{left:r.left-e,right:e-r.right,top:r.top-o,bottom:o-r.bottom}}static GuidWithoutDash(){function i(){return((1+Math.random())*65536|0).toString(16).substring(1)}return i()+i()+i()+i()+i()+i()+i()+i()}static valueTrigger(i){return typeof i=="function"?i():i}static getOffset(i){return{top:i.el.getBoundingClientRect().top,left:i.el.getBoundingClientRect().left}}static typeObj(i){let e=Object.prototype.toString.call(i);return e.substring(8,e.length-1)}static GuidWithoutDash(){function i(){return((1+Math.random())*65536|0).toString(16).substring(1)}return i()+i()+i()+i()+i()+i()+i()+i()}}class bf{constructor(){this.FvRevealElementList={window:{}},this.windowEventBinded=!1,this.initStatus=!1}init(){this.initStatus||(this.applyCommonEffects(),this.timer=setInterval(()=>{for(let i in this.FvRevealElementList.window)this.refreshChildren(i);for(let i in this.FvRevealElementList)i!="window"&&this.refreshChildren(i)},1e3),this.initStatus=!0)}apply(i,e){let o={key:Q.GuidWithoutDash(),selector:".eff-reveal-border",backgroundGradientSize:150,borderGradientSize:80,borderLightColor:"rgba(255, 255, 255, 0.25)",backgroundLightColor:"rgba(255, 255, 255, 0.25)",eventTriggerMode:"window",elementType:"target",status:"enabled"};e=Object.assign(o,e);let r=this.getTargetChildren(i,e),s=this.getMaskedChildren(i,e);return e.eventTriggerMode==="window"?(this.FvRevealElementList.window[e.key]={key:e.key,el:i,options:e,targetChildren:this.getChildrenX(r,e),maskedChildren:this.getChildrenX(s,e,"masked")},this.applyCommonEffects()):(this.FvRevealElementList[e.key]={key:e.key,el:i,options:e,targetChildren:this.getChildrenX(r,e),maskedChildren:this.getChildrenX(s,e,"masked")},this.applyCommonEffects(e.key)),e.key}refreshChildren(i){let e=this.FvRevealElementList[i];e||(e=this.FvRevealElementList.window[i]);let o=[].slice.call(this.getTargetChildren(parent,e.options),0),r=[].slice.call(this.getMaskedChildren(parent,e.options),0);e.targetChildren=[...e.targetChildren,...this.getChildrenX(o.filter(s=>!s.hashCode),e.options)],e.maskedChildren=[...e.maskedChildren,...this.getChildrenX(r.filter(s=>!s.hashCode),e.options,"masked")]}getMaskedChildren(i,e){return i==null&&(i=document),e.maskedSelector?typeof e.maskedSelector=="string"?i.querySelectorAll(e.maskedSelector):Array.isArray(e.maskedSelector)||Q.typeObj(e.maskedSelector)==="NodeList"?e.maskedSelector:[e.maskedSelector]:[]}getTargetChildren(i,e){return i==null&&(i=document),e.selector?typeof e.selector=="string"?i.querySelectorAll(e.selector):Array.isArray(e.selector)||Q.typeObj(e.selector)==="NodeList"?e.selector:[e.selector]:[]}getChildrenX(i,e,o="target"){let r=Q.preProcessElements(i,e,o);if(o==="target")for(let s of r)this.applyClickEffects(s);return r}applyCommonEffects(i="window"){if(typeof global<"u")return;let e;if(window!==void 0){if(e=window,this.windowEventBinded)return;this.windowEventBinded=!0}if(i!="window"&&(e=this.FvRevealElementList[i].el),e===void 0)return;let o=i==="window"?this.FvRevealElementList.window:{key:this.FvRevealElementList[i]},r=l=>{if(l.type.indexOf("mouse")<0&&(l=l.targetTouches[0]),!!o)for(let a in o){let d=o[a];for(let h of d.targetChildren){if(Q.valueTrigger(h.options.status)==="disabled")continue;let u=l.pageX-Q.getOffset(h).left-window.scrollX,c=l.pageY-Q.getOffset(h).top-window.scrollY;h.revealPosition.x=u,h.revealPosition.y=c,Q.isInsideElement(h,l.clientX,l.clientY)?h.wave==0&&Q.drawEffectBackground(h):Q.clearBackground(h)}for(let h of d.maskedChildren){if(Q.valueTrigger(h.options.status)==="disabled")continue;let u=l.pageX-Q.getOffset(h).left-window.scrollX,c=l.pageY-Q.getOffset(h).top-window.scrollY;h.revealPosition.x=u,h.revealPosition.y=c;let f=Q.distanceOfElement(h,l.clientX,l.clientY);f.left>300||f.top>300||f.right>300||f.bottom>300||Q.drawEffectBorder(h)}}},s=l=>{if(!!o)for(let a in o){let d=o[a];for(let h of d.targetChildren)Q.clearBackground(h);for(let h of d.maskedChildren)Q.clearBackground(h)}};e.addEventListener("mousemove",r),e.addEventListener("touchmove",r),e.addEventListener("mouseleave",s),e.addEventListener("touchend",s)}applyClickEffects(i){let e=s=>{let l=s.target,a=!1;for(;l&&l.tagName&&l.tagName.toLowerCase()!="body";){if(l==i.el){a=!0;break}l=l.parentNode}return a},o=s=>{if(!e(s)||Q.valueTrigger(i.options.status)==="disabled")return;s.type.indexOf("mouse")<0&&(s=s.targetTouches[0]);let l=s.pageX-Q.getOffset(i).left-window.scrollX,a=s.pageY-Q.getOffset(i).top-window.scrollY;i.revealPosition.x=l,i.revealPosition.y=a,Q.drawEffectBackground(i,!0)},r=s=>{Q.drawEffectBackground(i)};i.isBindingClickEvent||(i.el.addEventListener("mousedown",o),i.el.addEventListener("touchstart",o),i.el.addEventListener("mouseup",r),i.isBindingClickEvent=!0)}destroy(i){let e=[];return this.FvRevealElementList.window[i]&&e.push("window"),this.FvRevealElementList[i]&&e.push("parent"),delete this.FvRevealElementList.window[i],delete this.FvRevealElementList[i],{exists:e,key:i}}}const Fn=Ai("RevealCache",{state:()=>({revealHandlerList:new Array,revealDirectJs:new wf,revealMaskedJs:new bf}),actions:{initRevealInstances(){this.revealDirectJs.init(),this.revealMaskedJs.init()},setRevealHandler(t){this.revealHandlerList.push(t)},removeRevealHandler(t){let i=this.revealHandlerList.findIndex(e=>t===e.id);i!=-1&&this.revealHandlerList.splice(i,1)}}}),q=(t,i)=>{const e=t.__vccOpts||t;for(const[o,r]of i)e[o]=r;return e},yf={emits:["mousedown","mouseup","mousemove","touchstart","touchend","touchmove"],props:{theme:{type:String,default:"global"}},data(){return{moveable:!1}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.Init()},methods:{Init(){window.addEventListener("mousemove",t=>{this.moveable&&this.$emit("mousemove",t)}),window.addEventListener("mouseup",t=>{this.moveable&&this.stop()}),window.addEventListener("touchmove",t=>{this.moveable&&this.$emit("touchmove",t)}),window.addEventListener("touchend",t=>{this.moveable&&this.stop()})},forward(t){t.preventDefault(),this.moveable=!0,t.type==="mousedown"?this.$emit("mousedown",t):this.$emit("touchstart",t)},stop(t){this.moveable=!1,t&&(t.type==="mouseup"?this.$emit("mouseup",t):this.$emit("touchend",t))}}},kf=[n.createElementVNode("i",null,null,-1)];function vf(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",{class:"fv-details-list-spliter",onMousedown:i[0]||(i[0]=(...l)=>s.forward&&s.forward(...l)),onMouseup:i[1]||(i[1]=(...l)=>s.stop&&s.stop(...l)),onTouchstart:i[2]||(i[2]=(...l)=>s.forward&&s.forward(...l)),onTouchend:i[3]||(i[3]=(...l)=>s.stop&&s.stop(...l))},kf,32)}const jr=q(yf,[["render",vf]]),Cf={props:{modelValue:{default:!1},color:{default:""}},data(){return{checked:this.modelValue}},watch:{modelValue(t){this.checked=t},checked(t){}}},Vf=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--StatusCircleCheckmark fv-details-list-icon-accept"},null,-1)];function Sf(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-details-list-selector",[{choosen:r.checked}]])},[n.createElementVNode("div",{class:"fv-details-list-icon-ring",style:n.normalizeStyle({background:r.checked?e.color:""})},Vf,4)],2)}const si=q(Cf,[["render",Sf]]),$f=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"},null,-1)],Ef=["onClick"],xf={class:"default-title"},Tf=["draggable","onDrag","onDrop","onContextmenu"],Df=["onClick"],If=["onClick"],Bf=["onClick"],Nf=["onClick"],Lf=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"},null,-1)],Ff={class:"col",style:{"min-width":"150px"}},Mf=["onContextmenu"],Pf={class:"fv-details-list-icon-block",key:"multi-col"},Rf=["onClick"],_f=["onClick"],zf=Object.assign({name:"FvDetailsList",components:{spliter:jr,selector:si},data(){return{thisValue:[],listWidth:0,thisHead:[],thisGroup:[],posX:0,posY:0,rightMenuHeight:0,windowResize:{trigger:!1,width:0},sort:{name:"",desc:!1},dragTransfer:{},FR_Table_Head:null,show:{rightMenu:!1},styles:{listHead:{background:""}},uR:null,timer:{width:{},resize:{}}}},watch:{modelValue(t){if(this.valueInit(),this.sort.name!=""){let i=this.thisHead.find(e=>e.sortName===this.sort.name);i!=null&&this.sortClick(i,!1)}this.groupInit()},head:{deep:!0,handler(){this.headInit(),this.widthFormat(0)}},group(t){this.groupInit()},filter(t){this.filterValue()},"filter.value"(t){this.filterValue()},thisGroup(t){this.getGroupDataInit()},headBackground(t){this.stylesInit()},multiSelection(t){for(let i=0;i<this.thisValue.length;i++){let e=this.thisValue[i];e.choosen=!1,this.thisValue[i]=e}},listWidth(t){this.widthFormat(0)}},computed:{$theme(){return z(this.$props).theme.value},colWidth(){let t=[];for(let i of this.thisHead)t.push(`${i.width}px`);return t},currentChoosen(){let t=[];for(let i=0;i<this.thisValue.length;i++)this.thisValue[i].choosen&&this.thisValue[i].show&&t.push(this.thisValue[i]);return t},currentChoosenAll(){for(let t=0;t<this.thisValue.length;t++)if(this.thisValue[t].choosen!=!0&&this.thisValue[t].show)return!1;return!0},currentChoosenNum(){let t=0;for(let i=0;i<this.thisValue.length;i++)this.thisValue[i].choosen&&this.thisValue[i].show&&t++;return t},currentExpandAll(){for(let t=0;t<this.thisGroup.length;t++)if(this.thisGroup[t].expand!=!0)return!1;return!0},borderLightColor(){return()=>this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return()=>this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"}},beforeMount(){this.uR=Fn(),this.uR.initRevealInstances()},mounted(){this.headInit(),this.valueInit(),this.groupInit(),this.lazyLoadInit(),this.listWidthRefreshInit(),this.watchWindowResizeInit(),this.filterValue(),this.FRInit(),this.stylesInit()},methods:{FRInit(){this.FR_Table_Head=this.uR.revealMaskedJs.apply(this.$el,{maskedSelector:this.$refs.list_head,borderGradientSize:80,borderLightColor:this.borderLightColor,backgroundLightColor:this.backgroundLightColor,selector:this.$el.querySelectorAll(".list-head .col")})},stylesInit(){this.styles.listHead.background=this.headBackground},headInit(){let t={content:"",minWidth:60,width:80,disX:0,sortName:!1,customSort:!1,show:!0,visible:!0};this.thisHead=[];for(let i of this.head){let e=JSON.parse(JSON.stringify(t));if(typeof i=="string")e.content=i;else for(let o in i)e[o]=i[o];this.thisHead.push(e)}},valueInit(){let t=JSON.parse(JSON.stringify(this.modelValue));for(let i=0;i<t.length;i++)t[i].choosen=t[i].choosen==null?!1:t[i].choosen,t[i].show=!0;this.thisValue=t,this.filterValue()},groupInit(){let t={name:"",key:60,value:80,data:[],expand:!0};this.thisGroup=[];for(let i of this.group){let e=JSON.parse(JSON.stringify(t));if(typeof i=="string")e.name=i;else for(let o in i)e[o]=i[o];this.thisGroup.push(e)}},getGroupDataInit(){let t=this.thisGroup;for(let i=0;i<t.length;i++){t[i].data=[];for(let e of this.thisValue)e[t[i].key]==t[i].value&&t[i].data.push(e)}},listWidthRefreshInit(){this.timer.width=setInterval(()=>{let t=this.$el.clientWidth;this.multiSelection&&(t-=50),this.showGroup&&(t-=36),this.listWidth=t},30)},watchWindowResizeInit(){window.addEventListener("resize",()=>{this.windowResize.trigger=!0}),this.timer.resize=setInterval(()=>{let t=document.body.clientWidth;this.windowResize.trigger&&this.windowResize.width==t&&(this.headInit(),this.widthFormat(0),this.windowResize.trigger=!1),this.windowResize.width=t},350)},lazyLoadInit(){this.$SUtility.ScrollToLoadInit(this.$refs.l1,()=>{this.$emit("lazyload",this.thisValue)}),this.$SUtility.ScrollToLoadInit(this.$refs.l2,()=>{this.$emit("lazyload",this.thisValue)})},filterValue(){let t=this.filter;if(typeof this.filter=="string"&&(t={key:"any",value:this.filter}),t.key==null||t.value==null)return console.warn(this.filter,"Invalid filter."),0;if(t.key=="any")for(let i=0;i<this.thisValue.length;i++){let e=!1,o=this.thisValue[i];for(let r in this.thisValue[i])if(typeof o[r]=="string"&&o[r].toLowerCase().indexOf(t.value.toLowerCase())>-1){e=!0;break}o.show=e}else for(let i=0;i<this.thisValue.length;i++){let e=this.thisValue[i],o=this.thisValue[i][this.filter.key].toLowerCase().indexOf(t.value.toLowerCase())>-1;e.show=o}this.$emit("change-value",this.thisValue)},resizeDown(t,i){let e=this.thisHead[i];e.disX=t.clientX,this.thisHead[i]=e},resizeMove(t,i){for(let l=this.thisHead.length-1;l>=0;l--)if(this.thisHead[l].visible){if(l===i)return;break}let e=this.thisHead[i],o=t.clientX-e.disX;e.disX=t.clientX;let r=e.width+o;r=r<e.minWidth?e.minWidth:r;let s=0;for(let l=0;l<i;l++)s+=this.thisHead[l].width;r=r>this.listWidth-s?this.listWidth-s:r,e.width=r,this.thisHead[i]=e,this.widthFormat(i)},widthFormat(t){if(t<this.thisHead.length-1){let i=0;for(let r=0;r<=t;r++)!this.thisHead[r].visible||(i+=this.thisHead[r].width);let e=this.listWidth-i,o=0;for(let r=t+1;r<this.thisHead.length;r++)!this.thisHead[r].visible||(o+=this.thisHead[r].width);for(let r=this.thisHead.length-1;r>t;r--){if(!this.thisHead[r].visible)continue;let s=o-this.thisHead[r].width;if(s+this.thisHead[r].minWidth<=e){let l=this.thisHead[r];l.width=e-s,l.show=!0;break}else{let l=this.thisHead[r];l.show=!1}o-=this.thisHead[r].width}}},itemChooseClick(t){this.thisValue.indexOf(t);let i=t;i.choosen=!i.choosen,this.$emit("change-value",this.thisValue),this.$emit("choose-items",this.currentChoosen)},chooseCurrent(t){for(let i=0;i<this.thisValue.length;i++){let e=this.thisValue[i];e.choosen=!1}t.choosen=!0,this.$emit("change-value",this.thisValue),this.$emit("choose-items",this.currentChoosen)},chooseAll(){let t=!this.currentChoosenAll;for(let i=0;i<this.thisValue.length;i++){let e=this.thisValue[i];e.choosen=t}this.$emit("change-value",this.thisValue),this.$emit("choose-items",this.currentChoosen)},isGroupChooseAll(t){for(let i=0;i<t.data.length;i++)if(!t.data[i].choosen)return!1;return!0},chooseGroup(t){let i=!this.isGroupChooseAll(t);for(let e=0;e<t.data.length;e++){let o=t.data[e];o.choosen=i}this.$emit("change-value",this.thisValue),this.$emit("choose-items",this.currentChoosen)},expandGroup(t){let i=this.thisGroup.indexOf(t),e=t;e.expand=!e.expand,this.thisGroup[i]=e},expandAll(){let t=!this.currentExpandAll;for(let i=0;i<this.thisGroup.length;i++){let e=this.thisGroup[i];e.expand=t}},rightClick(t,i){!this.showRightMenu||(t.preventDefault(),t.stopPropagation(),this.$refs.rightMenu.rightClick(t,this.$el),this.$emit("rightclick",i))},sortClick(t,i=!0){let e=this.sort.desc;if(t.sortName==!1)return 0;this.sort.name!=t.sortName?e=!1:e=i?!this.sort.desc:this.sort.desc,this.sort.name=t.sortName,this.sort.desc=e,e=e?-1:1,t.customSort!=!1?this.thisValue.sort((o,r)=>e*t.customSort(o,r)):this.inteliSort(t.sortName,e)},inteliSort(t=0,i=!1){let e=this.sortName,o=[/^\d{4}[-/]\d{1,2}[-/]\d{1,2} \d{1,2}:\d{1,2}:\d{1,2}$/,/^\d{1,2}[-/]\d{1,2}[-/]\d{4} \d{1,2}:\d{1,2}:\d{1,2}$/,/^\d{4}[-/]\d{1,2}[-/]\d{1,2}/,/^\d{1,2}[-/]\d{1,2}[-/]\d{4}/],r=this.thisValue[0][t];if(!isNaN(r))e=this.sortNum;else for(let s of o)r.toString().match(s)&&(e=this.sortTime);this.thisValue.sort((s,l)=>i*e(s[t],l[t]))},sortNum(t,i){return parseFloat(t)<parseFloat(i)?1:-1},sortName(t,i){return t.localeCompare(i)},sortTime(t,i){return this.$SDate.Compare(this.$SDate.Parse(t),this.$SDate.Parse(i))},drag(t,i){this.currentChoosenNum==0?this.dragTransfer=i:i.choosen?this.dragTransfer=this.currentChoosen:(this.chooseCurrent(i),this.dragTransfer=i)},drop(t){let i=this.dragTransfer,e=t,o=this.thisValue.indexOf(e);if(this.currentChoosenNum>0&&i[0].choosen){for(let r=i.length-1;r>=0;r--)this.thisValue.splice(this.thisValue.indexOf(i[r]),1);e.choosen?this.thisValue.splice(0,0,...i):(o=this.thisValue.indexOf(e),this.thisValue.splice(o,0,...i))}else{let r=this.thisValue.indexOf(i);this.thisValue.splice(r,1),this.thisValue.splice(o,0,i)}this.$emit("drop-items",{transfer:i,value:this.thisValue})},valueTrigger(t){return typeof t=="function"?t():t}},beforeUnmount(){for(let t in this.timer)clearInterval(this.timer[t]);this.uR.revealMaskedJs.destroy(this.FR_Table_Head)}},{props:{...A,modelValue:{default:()=>[]},head:{default:()=>[]},group:{default:()=>[]},filter:{default:()=>({key:"any",value:""})},showGroup:{default:!1},autoHeight:{default:!1},foreground:{default:""},headBackground:{default:""},compact:{default:!1},multiSelection:{default:!1},allowDrag:{default:!1},showRightMenu:{default:!0},rowCss:{default:""},rightMenuWidth:{default:200},rightMenuBackground:{default:""},rightMenuFullExpand:{default:!1}},emits:["change-value","choose-items","lazyload","rightclick","drop-items"],setup(t,{expose:i,emit:e}){const{proxy:o}=n.getCurrentInstance();return i({headInit:(...r)=>o.headInit(...r)}),(r,s)=>{const l=n.resolveComponent("fv-right-menu");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-DetailsList",[r.$theme]])},[n.createElementVNode("div",{class:n.normalizeClass(["fv-details-list-head",{"fv-custom-head":!0}]),ref:"list_head"},[n.withDirectives(n.createElementVNode("span",{class:"fv-details-list-icon-block",style:n.normalizeStyle(r.styles.listHead),onClick:s[1]||(s[1]=(...a)=>r.chooseAll&&r.chooseAll(...a))},[n.createVNode(si,{modelValue:r.currentChoosenAll,"onUpdate:modelValue":s[0]||(s[0]=a=>r.currentChoosenAll=a),color:t.foreground},null,8,["modelValue","color"])],4),[[n.vShow,t.multiSelection]]),n.withDirectives(n.createElementVNode("span",{class:"col",style:n.normalizeStyle([{width:"36px",padding:"0px"},r.styles.listHead])},[n.createElementVNode("span",{class:n.normalizeClass(["expand",{choose:r.currentExpandAll}]),onClick:s[2]||(s[2]=(...a)=>r.expandAll&&r.expandAll(...a))},$f,2)],4),[[n.vShow,t.showGroup]]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.thisHead,(a,d)=>n.withDirectives((n.openBlock(),n.createElementBlock("span",{class:"col",key:`head: ${d}`,style:n.normalizeStyle({"min-width":r.colWidth[d],width:r.colWidth[d],background:r.styles.listHead.background})},[n.createElementVNode("span",{class:"col-content",onClick:h=>r.sortClick(a)},[n.renderSlot(r.$slots,"head",{item:a,index:d},()=>[n.createElementVNode("p",xf,n.toDisplayString(r.valueTrigger(a.content)),1)]),n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon sort",[`ms-Icon--${r.sort.desc?"Down":"Up"}`]])},null,2),[[n.vShow,a.sortName===r.sort.name]])],8,Ef),n.createVNode(jr,{style:{height:"100%"},onMousedown:h=>r.resizeDown(h,d),onMousemove:h=>r.resizeMove(h,d),onTouchstart:h=>r.resizeDown(h.targetTouches[0],d),onTouchmove:h=>r.resizeMove(h.targetTouches[0],d)},null,8,["onMousedown","onMousemove","onTouchstart","onTouchmove"])],4)),[[n.vShow,a.show&&r.valueTrigger(a.visible)]])),128))],512),t.showGroup?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["fv-details-list-content",{compact:t.compact,"auto-height":t.autoHeight}]),ref:"l1"},[n.createVNode(n.TransitionGroup,{name:"details-list",tag:"div"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.thisValue,(a,d)=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["content-row",[{choose:a.choosen,"fv-custom-row":!0},t.rowCss]]),key:`row: ${d}`,draggable:t.allowDrag,onDrag:h=>r.drag(h,a),onDragover:s[3]||(s[3]=h=>h.preventDefault()),onDrop:h=>r.drop(a),onContextmenu:h=>r.rightClick(h,a)},[n.withDirectives(n.createElementVNode("span",{class:"fv-details-list-icon-block",key:"multi-col",onClick:h=>r.itemChooseClick(a)},[n.createVNode(si,{modelValue:a.choosen,"onUpdate:modelValue":h=>a.choosen=h,color:t.foreground},null,8,["modelValue","onUpdate:modelValue","color"])],8,Df),[[n.vShow,t.multiSelection]]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.thisHead,(h,u)=>n.withDirectives((n.openBlock(),n.createElementBlock("span",{class:"col",key:`row: ${d} col: ${u}`,style:n.normalizeStyle({width:r.colWidth[u]}),onClick:c=>r.chooseCurrent(a)},[n.renderSlot(r.$slots,`column_${u}`,{item:a,row_index:d,col_index:u},()=>[n.createElementVNode("p",null,n.toDisplayString(`row: ${d} col: ${u}`),1)])],12,If)),[[n.vShow,h.show&&r.valueTrigger(h.visible)]])),128)),n.renderSlot(r.$slots,"row_expand",{item:a,row_index:d})],42,Tf)),[[n.vShow,a.show]])),128))]),_:3})],2)),t.showGroup?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["fv-details-list-content",{compact:t.compact,"auto-height":t.autoHeight}]),ref:"l2"},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.thisGroup,(a,d)=>(n.openBlock(),n.createElementBlock("div",{key:`group: ${d}`},[n.createElementVNode("div",{class:n.normalizeClass(["content-row",{choose:r.isGroupChooseAll(a),"fv-custom-group-row":!0}])},[n.renderSlot(r.$slots,"group",{item:a,index:d,isMulti:t.multiSelection,isChoose:r.isGroupChooseAll(a)},()=>[n.withDirectives(n.createElementVNode("span",{class:"fv-details-list-icon-block",key:"multi-col",onClick:h=>r.chooseGroup(a)},[n.createVNode(si,{value:r.isGroupChooseAll(a),color:t.foreground},null,8,["value","color"])],8,Bf),[[n.vShow,t.multiSelection]]),n.createElementVNode("span",{class:n.normalizeClass(["expand",{choose:a.expand}]),onClick:h=>r.expandGroup(a)},Lf,10,Nf),n.renderSlot(r.$slots,"group_content",{item:a,index:d,isMulti:t.multiSelection,isChoose:r.isGroupChooseAll(a)},()=>[n.createElementVNode("span",Ff,[n.createElementVNode("p",null,n.toDisplayString(a.name),1)])])])],2),n.createVNode(n.Transition,{name:"zoom-in-top"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(a.data,(h,u)=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["content-row",[{choose:h.choosen,"fv-custom-row":!0},t.rowCss]]),key:`group: ${d} row: ${u}`,onContextmenu:c=>r.rightClick(c,h)},[n.withDirectives(n.createElementVNode("span",Pf,[n.createVNode(si,{modelValue:h.choosen,"onUpdate:modelValue":c=>h.choosen=c,onClick:c=>r.itemChooseClick(h),color:t.foreground},null,8,["modelValue","onUpdate:modelValue","onClick","color"])],512),[[n.vShow,t.multiSelection]]),n.createElementVNode("span",{class:"col",style:{width:"36px"},onClick:c=>r.chooseCurrent(h)},null,8,Rf),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.thisHead,(c,f)=>n.withDirectives((n.openBlock(),n.createElementBlock("span",{class:"col",key:`group: ${d} row: ${u} col: ${f}`,style:n.normalizeStyle({width:r.colWidth[f]}),onClick:m=>r.chooseCurrent(h)},[n.renderSlot(r.$slots,`column_${f}`,{item:h,row_index:u,col_index:f},()=>[n.createElementVNode("p",null,n.toDisplayString(`row: ${u} col: ${f}`),1)])],12,_f)),[[n.vShow,c.show&&r.valueTrigger(c.visible)]])),128)),n.renderSlot(r.$slots,"row_expand",{item:h,row_index:u})],42,Mf)),[[n.vShow,h.show]])),128))],512),[[n.vShow,a.expand]])]),_:2},1024)]))),128))],2)):n.createCommentVNode("",!0),n.createVNode(l,{ref:"rightMenu",theme:r.theme,rightMenuWidth:t.rightMenuWidth,background:t.rightMenuBackground,fullExpandAnimation:t.rightMenuFullExpand},{default:n.withCtx(()=>[n.renderSlot(r.$slots,"menu",{},()=>[n.createElementVNode("span",null,[n.createElementVNode("p",null,n.toDisplayString(r.currentChoosenNum)+" Selected",1)])])]),_:3},8,["theme","rightMenuWidth","background","fullExpandAnimation"])],2)}}}),Xr=W(zf),Ik="",Bk="",Nk="",Of=Object.assign({name:"FvDrawer",data(){return{lock:!1,style:{drawer:{zIndex:this.zIndex}},show:{drawer:this.modelValue==null?!1:this.modelValue},initShow:this.computeVisible,window:{click:t=>{if(!this.computeVisible||this.lock||this.focusTrap)return;let i=t.target,e=!1;for(;i&&(i==this.$el&&(e=!0),i.parentNode);)i=i.parentNode;e||(this.computeVisible=!1)}}}},computed:{$theme(){return z(this.$props).theme.value},computeVisible:{get(){return this.modelValue==null?this.show.drawer:this.modelValue},set(t){this.show.drawer=t,this.$emit("update:modelValue",t)}}},watch:{computeVisible(){this.lock=!0,this.setStyle(),setTimeout(()=>{this.lock=!1},50)}},mounted(){this.init(),this.setStyle(),this.initShow=!0},beforeUnmount(){for(let t in this.window)window.removeEventListener(t,this.window)},methods:{init(){for(let t in this.window)window.addEventListener(t,this.window[t]);this.appendBody&&this.globalAppendInit()},globalAppendInit(){this.$nextTick(()=>{const t=document.querySelector("body");t.append?t.append(this.$el):t.appendChild(this.$el)})},setStyle(){let t=this.length;typeof this.length=="number"&&(t+="px"),this.position=="bottom"?this.style.drawer={left:"0",bottom:"0",height:t,width:"100%",maxWidth:"100%",maxHeight:"100%",zIndex:this.zIndex,transform:` ${this.computeVisible?"translateY(0%)":"translateY(110%)"}`}:this.position=="top"?this.style.drawer={left:"0",top:"0",height:t,width:"100%",maxWidth:"100%",maxHeight:"100%",zIndex:this.zIndex,transform:`${this.computeVisible?"translateY(0%)":"translateY(-110%)"}`}:this.position=="left"?this.style.drawer={left:"0",top:"0",width:t,height:"100%",maxWidth:"100%",maxHeight:"100%",zIndex:this.zIndex,transform:`${this.computeVisible?"translateX(0%)":"translateX(-110%)"}`}:this.style.drawer={right:"0",top:"0",width:t,height:"100%",maxWidth:"100%",maxHeight:"100%",zIndex:this.zIndex,transform:`${this.computeVisible?"translateX(0%)":"translateX(110%)"}`}},close(){this.computeVisible=!1}},beforeUnmount(){for(let t in this.window)window.removeEventListener(t,this.window);try{document.querySelector("body").removeChild(this.$el)}catch{}}},{props:{...A,position:{type:String,default:"bottom"},length:{default:300},background:{default:void 0},modelValue:{default:void 0},zIndex:{type:Number,default:10},focusTrap:{type:Boolean,default:!1},appendBody:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:i}){return(e,o)=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{ref:"drawer",class:n.normalizeClass(["fv-Drawer",[e.$theme]]),style:n.normalizeStyle([e.style.drawer,{background:t.background}])},[n.renderSlot(e.$slots,"default")],6)),[[n.vShow,e.initShow]])}}),qr=W(Of),Fk="",Mk="",Pk="",Af={emits:["update:modelValue"],props:{modelValue:{default:()=>[]},borderWidth:{default:1},placeholder:{default:"Dropdown"},borderRadius:{default:"3"},inputForeground:{default:""},inputBackground:{default:""},inputBorderColor:{default:""},dropDownIcon:{default:"ChevronDown"},dropDownIconForeground:{default:""},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},disabled:{default:!1},theme:{default:"global"}},data(){return{choosenValue:this.modelValue}},watch:{modelValue(t){this.choosenValue=t},choosenValue(t){this.$emit("update:modelValue",t)}},computed:{$theme(){return z(this.$props).theme.value},inputValue(){let t="";for(let i of this.choosenValue)t==""?t+=this.valueTrigger(i.text):t+=`,${this.valueTrigger(i.text)}`;return t},borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"}},mounted(){},methods:{valueTrigger(t){return typeof t=="function"?t():t}}},Wf=["placeholder","value"];function Hf(t,i,e,o,r,s){const l=n.resolveComponent("fv-reveal-container");return n.openBlock(),n.createElementBlock("div",{class:"drop-down-box",style:n.normalizeStyle({"border-radius":`${e.borderRadius}px`})},[n.createElementVNode("div",{class:"drop-down-container",style:n.normalizeStyle({background:e.inputBackground,"border-radius":`${e.borderRadius}px`})},[n.createVNode(l,{parent:()=>t.$el,class:"fv-dropdown-reveal-container",backgroundColor:s.backgroundLightColor,borderColor:s.borderLightColor,backgroundGradientSize:120,borderGradientSize:80,borderWidth:e.borderWidth,borderRadius:e.borderRadius,disabled:e.disabled},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),n.renderSlot(t.$slots,"input",{placeholder:e.placeholder,value:s.inputValue},()=>[n.createElementVNode("input",{class:"fv-drop-down-input",placeholder:e.placeholder,readonly:"",value:s.inputValue,style:n.normalizeStyle({color:e.inputForeground,"border-radius":`${e.borderRadius}px`,borderWidth:`${e.borderWidth}px`,borderColor:e.inputBorderColor})},null,12,Wf),n.createElementVNode("i",{class:n.normalizeClass(["right-icon ms-Icon",[`ms-Icon--${e.dropDownIcon}`]]),style:n.normalizeStyle({color:e.dropDownIconForeground})},null,6)])],4)],4)}const Kr=q(Af,[["render",Hf]]),Gf={emits:["update:modelValue","chooseItem"],props:{modelValue:{default:()=>[]},options:{default:()=>[]},multiple:{default:!1},maxHeight:{default:""},borderRadius:{default:"3"},checkBoxBackground:{default:""},dropDownListForeground:{default:"rgba(0, 120, 215, 0.9)"},dropDownListBackground:{default:"rgba(0, 90, 158, 1)"},showStatus:{default:()=>({position:"bottom",top:"100%",bottom:"",height:"auto",overflow:"hidden"})},theme:{default:"global"}},data(){return{choosenValue:this.modelValue,styles:{listContainer:{top:"100%",bottom:"",height:"auto",maxHeight:"",background:"",borderRadius:""},title:{color:""}}}},watch:{modelValue(t){this.choosenValue=t},choosenValue(t){this.$emit("update:modelValue",t)},maxHeight(){this.stylesInit()},borderRadius(){this.stylesInit()},dropDownListForeground(){this.stylesInit()},dropDownListBackground(){this.stylesInit()},"showStatus.top"(){this.stylesInit()},"showStatus.bottom"(){this.stylesInit()},"showStatus.height"(){this.stylesInit()},"showStatus.overflow"(){this.stylesInit()}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.stylesInit()},methods:{stylesInit(){this.styles.listContainer.borderRadius=`${this.borderRadius}px`,this.styles.listContainer.background=this.dropDownListBackground,this.styles.listContainer.top=this.showStatus.top,this.styles.listContainer.bottom=this.showStatus.bottom,this.styles.listContainer.height=this.showStatus.height,this.styles.listContainer.maxHeight=`${this.showStatus.maxHeight}px`,this.styles.listContainer.overflow=this.showStatus.overflow,this.styles.title.color=this.dropDownListForeground},valueTrigger(t){return typeof t=="function"?t():t},onClick(t){if(t.disabled||t.type==="header"||t.type=="divider")return 0;if(this.multiple){let i=this.choosenValue.find(e=>e.key===t.key);i!=null?(t.choosen=!1,this.choosenValue.splice(this.choosenValue.indexOf(i),1)):(t.choosen=!0,this.choosenValue.push(t))}else{for(let i of this.choosenValue)i.choosen=!1;t.choosen=!0,this.choosenValue=[],this.choosenValue.push(t)}this.$emit("chooseItem",{option:t,index:this.options.indexOf(t)})}}},Uf=["onClick"];function Yf(t,i,e,o,r,s){const l=n.resolveComponent("fv-check-box");return n.openBlock(),n.createElementBlock("div",{class:"list-container",style:n.normalizeStyle(r.styles.listContainer)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,(a,d)=>(n.openBlock(),n.createElementBlock("div",{key:`item: ${d}`,onClick:h=>s.onClick(a)},[n.createElementVNode("div",{class:n.normalizeClass(["list-item",{hr:s.valueTrigger(a.type)=="divider",normal:s.valueTrigger(a.type)=="default"||s.valueTrigger(a.type)==null,disabled:s.valueTrigger(a.disabled),choose:a.choosen}])},[n.withDirectives(n.createElementVNode("p",{class:"title",style:n.normalizeStyle(r.styles.title)},n.toDisplayString(s.valueTrigger(a.text)),5),[[n.vShow,s.valueTrigger(a.type)=="header"]]),n.renderSlot(t.$slots,"options",{option:a,index:d,valueTrigger:s.valueTrigger},()=>[n.withDirectives(n.createVNode(l,{modelValue:a.choosen,"onUpdate:modelValue":h=>a.choosen=h,disabled:s.valueTrigger(a.disabled),foreground:e.dropDownListForeground,background:e.checkBoxBackground,theme:e.theme},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(s.valueTrigger(a.text)),1)]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","foreground","background","theme"]),[[n.vShow,s.valueTrigger(a.type)=="default"||s.valueTrigger(a.type)==null&&e.multiple]]),n.withDirectives(n.createElementVNode("p",null,n.toDisplayString(s.valueTrigger(a.text)),513),[[n.vShow,s.valueTrigger(a.type)=="default"||s.valueTrigger(a.type)==null&&!e.multiple]])])],2)],8,Uf))),128))],4)}const Jr=q(Gf,[["render",Yf]]),jf=Object.assign({name:"FvDropDown",components:{dropDownInput:Kr,listContainer:Jr},data(){return{choosenValue:this.modelValue,topRemainHeight:window.innerHeight,bottomRemainHeight:window.innerHeight,timer:{},styles:{dropDown:{zIndex:0,overflow:"visible"}},show:{listContainer:!1}}},watch:{modelValue(t){this.choosenValue=t},choosenValue(t){this.$emit("update:modelValue",t)},setFocus(t){this.show.listContainer=t},"show.listContainer"(t){t?this.styles.dropDown.zIndex=1:this.styles.dropDown.zIndex=0,this.$emit("visible-change",t)}},computed:{$theme(){return z(this.$props).theme.value},isDisabled(){return this.options.length==0||this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},dropDownListHeight(){return 36*this.options.length},dropDownListShowStatus(){return this.dropDownListHeight<this.bottomRemainHeight?{position:"bottom",top:"100%",bottom:"",height:"auto",overflow:"hidden"}:this.dropDownListHeight<this.topRemainHeight?{position:"top",top:"",bottom:"100%",height:"auto",overflow:"hidden"}:this.topRemainHeight>this.bottomRemainHeight?{position:"top",top:"",bottom:"100%",height:`${this.topRemainHeight}px`,overflow:"auto"}:{position:"bottom",top:"100%",bottom:"",height:`${this.bottomRemainHeight}px`,overflow:"auto"}}},mounted(){this.outSideClickInit(),this.heightSenseInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent)},outSideClickEvent(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}i=i.parentNode}e||(this.show.listContainer=!1)},heightSenseInit(){clearInterval(this.timer),this.timer=setInterval(()=>{try{this.topRemainHeight=this.$refs.input.getBoundingClientRect().top}catch{this.topRemainHeight=window.innerHeight}try{this.bottomRemainHeight=window.innerHeight-this.$refs.input.getBoundingClientRect().bottom}catch{this.bottomRemainHeight=window.innerHeight}},300)},onChange(t){this.show.listContainer=this.multiple,this.$emit("change",t)}},beforeUnmount(){clearInterval(this.timer),window.removeEventListener("click",this.outSideClickEvent)}},{props:{...A,modelValue:{default:()=>[]},options:{default:()=>[]},multiple:{default:!1},borderWidth:{default:1},borderRadius:{default:"6"},placeholder:{default:"Dropdown"},maxHeight:{default:""},inputForeground:{default:""},inputBorderColor:{default:""},checkBoxBackground:{default:""},dropDownListForeground:{default:""},dropDownListBackground:{default:""},inputBackground:{default:""},dropDownIcon:{default:"ChevronDown"},dropDownIconForeground:{default:""},showError:{default:!1},errorMessage:{default:"This dropdown has an error"},disabled:{default:!1},setFocus:{default:!1}},emits:["update:modelValue","change","visible-change"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-DropDown",[e.$theme,e.isDisabled?"disabled":""]]),style:n.normalizeStyle([e.styles.dropDown,{zIndex:e.show.listContainer?5:""}])},[n.createElementVNode("div",{class:"fv-drop-down-input-container",ref:"input",onClick:o[1]||(o[1]=r=>e.show.listContainer=e.isDisabled?!1:!e.show.listContainer)},[n.renderSlot(e.$slots,"drop-carrier",{value:e.choosenValue,placeholoder:t.placeholder,theme:e.$theme},()=>[n.createVNode(Kr,{modelValue:e.choosenValue,"onUpdate:modelValue":o[0]||(o[0]=r=>e.choosenValue=r),placeholder:t.placeholder,theme:e.$theme,disabled:e.isDisabled,borderWidth:t.borderWidth,borderRadius:t.borderRadius,inputForeground:t.inputForeground,inputBackground:t.inputBackground,inputBorderColor:t.inputBorderColor,dropDownIcon:t.dropDownIcon,dropDownIconForeground:t.dropDownIconForeground,class:n.normalizeClass({error:t.showError})},{input:n.withCtx(r=>[n.renderSlot(e.$slots,"input",{placeholder:r.placeholder,value:r.value,valueTrigger:r.valueTrigger})]),_:3},8,["modelValue","placeholder","theme","disabled","borderWidth","borderRadius","inputForeground","inputBackground","inputBorderColor","dropDownIcon","dropDownIconForeground","class"])])],512),n.withDirectives(n.createElementVNode("p",{class:"err-msg"},n.toDisplayString(t.errorMessage),513),[[n.vShow,t.showError]]),n.createVNode(n.Transition,{name:`fv-drop-down-${e.dropDownListShowStatus.position}`},{default:n.withCtx(()=>[n.withDirectives(n.createVNode(Jr,{modelValue:e.choosenValue,"onUpdate:modelValue":o[2]||(o[2]=r=>e.choosenValue=r),options:t.options,multiple:t.multiple,borderRadius:t.borderRadius,checkBoxBackground:t.checkBoxBackground,dropDownListForeground:t.dropDownListForeground,dropDownListBackground:t.dropDownListBackground,showStatus:e.dropDownListShowStatus,theme:e.$theme,onChooseItem:e.onChange},{options:n.withCtx(r=>[n.renderSlot(e.$slots,"options",{option:r.option,index:r.index})]),_:3},8,["modelValue","options","multiple","borderRadius","checkBoxBackground","dropDownListForeground","dropDownListBackground","showStatus","theme","onChooseItem"]),[[n.vShow,e.show.listContainer]])]),_:3},8,["name"])],6))}}),Qr=W(jf),_k="",zk="",Ok="",Xf={class:"expander-description-box"},qf={class:"expander-text"},Kf={class:"expander-title"},Jf={class:"expander-description-extension-block"},Qf={class:"ms-Icon ms-Icon--ChevronUpMed"},Zf={class:"ms-Icon ms-Icon--ChevronDownMed"},em={class:"ms-Icon ms-Icon--ChevronRightMed"},tm=Object.assign({name:"FvExpander",data(){return{thisValue:this.modelValue,hover:!1}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)}},computed:{hoverBackground(){try{let t=kt(this.titleBackground),i=t.hue();return t.hue(i-.01).cssa()}catch{return""}},$theme(){return z(this.$props).theme.value}},methods:{itemClick(){this.disabledExpander||(this.thisValue^=!0),this.$emit("item-click",this.thisValue)}}},{props:{...A,modelValue:{default:!1},icon:{type:String,default:"Mail"},title:{type:String,default:"Title of Expander."},content:{type:String,default:"Content information of Expander."},titleBackground:{default:""},expandBackground:{default:""},defaultHeight:{default:50},maxHeight:{default:300},disabledExpander:{default:!1},visibleOverflow:{default:!0}},emits:["update:modelValue","item-click"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Expander",[e.$theme,{visibleOverflow:t.disabledExpander&&t.visibleOverflow}]]),style:n.normalizeStyle({height:e.thisValue?`${t.maxHeight}px`:`${t.defaultHeight}px`,"max-height":`${t.maxHeight}px`}),onMouseenter:o[3]||(o[3]=r=>e.hover=!0),onTouchstart:o[4]||(o[4]=r=>e.hover=!0),onMouseleave:o[5]||(o[5]=r=>e.hover=!1),onTouchend:o[6]||(o[6]=r=>e.hover=!1)},[n.createElementVNode("div",{class:"expander-description-container",style:n.normalizeStyle({height:`${t.defaultHeight}px`,background:e.hover?e.hoverBackground:t.titleBackground}),onClick:o[2]||(o[2]=(...r)=>e.itemClick&&e.itemClick(...r))},[n.createElementVNode("div",Xf,[n.createElementVNode("div",{class:"expander-description",onClick:o[0]||(o[0]=r=>e.$emit("description-click"))},[n.createElementVNode("div",qf,[n.renderSlot(e.$slots,"content",{title:t.title,contnet:t.content},()=>[n.createElementVNode("div",Kf,n.toDisplayString(t.title),1)])])]),n.createElementVNode("div",Jf,[n.renderSlot(e.$slots,"extension")])]),n.createElementVNode("div",{class:"expander-expand-icon-block",onClick:o[1]||(o[1]=r=>e.$emit("icon-click"))},[n.renderSlot(e.$slots,"expand-icon",{value:e.thisValue,disabledCollaspe:t.disabledExpander},()=>[n.withDirectives(n.createElementVNode("i",Qf,null,512),[[n.vShow,e.thisValue]]),n.withDirectives(n.createElementVNode("i",Zf,null,512),[[n.vShow,!e.thisValue&&!t.disabledExpander]]),n.withDirectives(n.createElementVNode("i",em,null,512),[[n.vShow,!e.thisValue&&t.disabledExpander]])])])],4),n.createVNode(n.Transition,{name:"expander-expanded"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:"expander-detail",style:n.normalizeStyle({background:t.expandBackground})},[n.renderSlot(e.$slots,"default")],4),[[n.vShow,e.thisValue]])]),_:3})],38))}}),Zr=W(tm),Wk="",Hk="",Gk="",im=["onClick"],nm=[n.createElementVNode("i",null,null,-1)],om={class:"container-panel"},rm={style:{"font-size":"36px"}},sm=Object.assign({name:"FvFlipView",data(){return{thisValue:this.modelValue,currentIndex:0,currentAnimation:"",hoverTrigger:!1,thisAutoPlay:this.autoPlay,animationMap:{move:"move",moveFade:"move-fade",moveDifferent:"move-different",glue:"rotate-glue",push:"rotate-push",fold:"rotate-fold"},styles:{containerItem:{animationDuration:"0.8s",animationTimingFunction:""},controlPanel:{background:""}},timer:{autoPlay:{},dis:{}},lock:{slide:!0,slideIndex:!0}}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)},autoPlay(t){this.thisAutoPlay=t},thisAutoPlay(){this.autoPlayInit()},duration(){this.durationInit()},mask(){this.stylesInit()},currentIndex(t){this.$emit("change",{index:t,duration:this.autoPlayDuration})}},computed:{$theme(){return z(this.$props).theme.value},firstBtn(){return this.direction=="horizontal"?"CaretLeftSolid8":"CaretUpSolid8"},secondBtn(){return this.direction=="horizontal"?"CaretRightSolid8":"CaretDownSolid8"},slideLeftAnimation(){return`${this.animationMap[this.animation]}-right-to-left`},slideRightAnimation(){return`${this.animationMap[this.animation]}-left-to-right`},slideTopAnimation(){return`${this.animationMap[this.animation]}-bottom-to-top`},slideBottomAnimation(){return`${this.animationMap[this.animation]}-top-to-bottom`}},mounted(){this.durationInit(),this.autoPlayInit(),this.stylesInit()},methods:{autoPlayInit(){if(clearInterval(this.timer.autoPlay),this.thisAutoPlay.toString()!="true")return 0;this.timer.autoPlay=setInterval(()=>{this.slideNext()},this.autoPlayDuration)},durationInit(){this.styles.containerItem.animationDuration=`${(parseFloat(this.duration.toString())/1e3).toFixed(2)}s`},stylesInit(){this.styles.controlPanel.background=this.mask},slideNext(){if(clearInterval(this.timer.autoPlay),!this.lock.slide)return 0;this.lock.slide=!1,this.currentIndex<this.thisValue.length-1?this.currentIndex++:this.currentIndex=0,this.direction=="horizontal"?this.currentAnimation=this.slideLeftAnimation:this.currentAnimation=this.slideBottomAnimation,this.lock.slide=!0,this.autoPlayInit()},slidePrev(){if(clearInterval(this.timer.autoPlay),!this.lock.slide)return 0;this.lock.slide=!1,this.currentIndex>0?this.currentIndex--:this.currentIndex=this.thisValue.length-1,this.direction=="horizontal"?this.currentAnimation=this.slideRightAnimation:this.currentAnimation=this.slideTopAnimation,this.lock.slide=!0,this.autoPlayInit()},async slideDelay(t=!0,i){return t?this.slideNext():this.slidePrev(),await new Promise(e=>{setTimeout(()=>{e(i)},i)})},async slideIndex(t){if(!this.lock.slideIndex)return 0;this.lock.slideIndex=!1,clearInterval(this.timer.dis);let i=t-this.currentIndex;if(i==0)return 0;let e=i>0;i=Math.abs(i);let o=this.duration.toString(),r=(parseFloat(o)/i).toFixed(2);this.styles.containerItem.animationDuration=`${(r/1e3).toFixed(2)}s`,this.styles.containerItem.animationTimingFunction="linear";for(let s=0;s<i;s++)s==i-1&&(this.styles.containerItem.animationTimingFunction=""),await this.slideDelay(e,r);await new Promise(s=>{setTimeout(()=>{this.durationInit(),s(50)},50)}),this.lock.slideIndex=!0}}},{props:{...A,modelValue:{default:()=>[]},direction:{default:"horizontal"},animation:{default:"move"},duration:{default:800},autoPlay:{default:!0},autoPlayDuration:{default:5e3},showControlPanel:{default:""},mask:{default:""}},emits:["update:modelValue","change"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-FlipView",[e.$theme]]),onMouseenter:o[3]||(o[3]=r=>e.hoverTrigger=!0),onMouseleave:o[4]||(o[4]=r=>e.hoverTrigger=!1),onTouchstart:o[5]||(o[5]=r=>e.hoverTrigger=!0),onTouchend:o[6]||(o[6]=r=>e.hoverTrigger=!1)},[n.createVNode(n.Transition,{name:"fade-in"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:"control-panel",style:n.normalizeStyle(e.styles.controlPanel)},[n.createElementVNode("span",{class:n.normalizeClass(["slidebtn fst",[t.direction]]),onClick:o[0]||(o[0]=(...r)=>e.slidePrev&&e.slidePrev(...r))},[n.createElementVNode("p",{class:n.normalizeClass(["icon",[`ms-Icon ms-Icon--${e.firstBtn}`]])},null,2)],2),n.createElementVNode("span",{class:n.normalizeClass(["slidebtn sec",[t.direction]]),onClick:o[1]||(o[1]=(...r)=>e.slideNext&&e.slideNext(...r))},[n.createElementVNode("p",{class:n.normalizeClass(["icon",[`ms-Icon ms-Icon--${e.secondBtn}`]])},null,2)],2),n.createElementVNode("span",{class:n.normalizeClass(["bottom-controller",[t.direction]])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.thisValue,(r,s)=>(n.openBlock(),n.createElementBlock("div",{key:`ring: ${s}`,class:n.normalizeClass(["flip-view-ring",[{choosen:e.currentIndex==s}]]),onClick:l=>e.slideIndex(s)},nm,10,im))),128)),n.createElementVNode("p",{class:n.normalizeClass(["sec ms-Icon",[e.thisAutoPlay.toString()=="true"?"ms-Icon--PauseBold":"ms-Icon--PlaySolid"]]),onClick:o[2]||(o[2]=r=>e.thisAutoPlay=!e.thisAutoPlay)},null,2)],2)],4),[[n.vShow,t.showControlPanel!=="hidden"&&e.hoverTrigger]])]),_:1}),n.createElementVNode("div",om,[n.createVNode(n.TransitionGroup,{name:e.currentAnimation,tag:"div",class:"container-panel"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.thisValue,(r,s)=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:`flipview: ${s}`,class:"container-item",style:n.normalizeStyle(e.styles.containerItem)},[n.renderSlot(e.$slots,"item",{data:r,index:s},()=>[n.createElementVNode("p",rm,n.toDisplayString(s+1),1)])],4)),[[n.vShow,e.currentIndex===s]])),128))]),_:3},8,["name"])])],34))}}),es=W(sm),jk="",Xk="",qk="",lm=Object.assign({name:"FvIconElement",data(){return{}},computed:{iconList(){let t=[];return Array.isArray(this.value)?t=this.value:t=this.value.split(","),t.map(i=>this.computeIconItem(i))},$theme(){return z(this.$props).theme.value}},methods:{computeIconItem(t){let i={name:"",color:this.$theme=="dark"?"#fff":"#000",position:0};return t.name?Object.assign(i,t):(i.name=t,i)},valueTrigger(t){return typeof t=="function"?t():t}}},{props:{...A,value:{default:"AppIconDefault"},fontSize:{default:32},paddingWidth:{default:2},iconButton:{type:Boolean,default:!1},borderRadius:{default:6}},emits:["click"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-IconElement",[e.$theme,{"icon-element-btn":t.iconButton}]]),style:n.normalizeStyle({width:`${t.fontSize+t.paddingWidth/1}px`,height:`${t.fontSize+t.paddingWidth/1}px`,borderRadius:`${t.borderRadius}px`}),onClick:o[0]||(o[0]=r=>e.$emit("click",r))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.iconList,(r,s)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["icon-element-item",[e.valueTrigger(r.position)]]),key:s},[n.createElementVNode("i",{class:n.normalizeClass(["icon-element ms-Icon",[`ms-Icon--${e.valueTrigger(r.name)}`]]),style:n.normalizeStyle({fontSize:`${t.fontSize}px`,color:e.valueTrigger(r.color),"background-image":e.valueTrigger(r.color),"background-clip":"text","-webkit-background-image":e.valueTrigger(r.color),"-webkit-background-clip":"text","-webkit-text-fill-color":e.valueTrigger(r.color)})},null,6)],2))),128))],6))}}),ts=W(lm),Jk="",Qk="",Zk="",am=["src"],dm=Object.assign({name:"FvImage",data(){return{thisSrc:"",status:!1,lazy:this.onlazy,lazyTimer:{}}},watch:{src(t,i){t!==i&&(this.status=!1),this.lazy||(this.thisSrc=this.src)},lazy(t){t===!1&&(this.thisSrc=this.src)},onlazy(t){this.lazy=t}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.watchImgInit(),this.lazy?this.lazyInit():this.thisSrc=this.src},methods:{watchImgInit(){this.$refs.img.onload=t=>{this.status=!0}},lazyInit(){clearInterval(this.lazyTimer),this.lazyTimer=setInterval(()=>{window.requestAnimationFrame(()=>{this.$el.getBoundingClientRect().top<window.innerHeight&&(this.lazy=!1,clearInterval(this.lazyTimer))})},300)}},beforeUnmount(){clearInterval(this.lazyTimer)}},{props:{...A,src:{default:""},onlazy:{default:!1}},emits:["click"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Image",[e.$theme]])},[n.createVNode(n.Transition,{name:"fade-in"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("img",{draggable:"false",alt:"",src:e.thisSrc,ref:"img"},null,8,am),[[n.vShow,e.status]])]),_:1})],2))}}),is=W(dm),t1="",i1="",n1="",hm=Object.assign({name:"FvImg",data(){return{status:"imgBox"}},computed:{$theme(){return z(this.$props).theme.value}}},{props:{...A,src:{default:""},onlazy:{default:!1},loadingColor:{default:"rgba(36, 36, 36, 1)"},onbackground:{default:!1}},setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-ImgBox"),s=n.resolveComponent("fv-Image");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Img",[e.$theme]])},[e.status=="imgBox"?(n.openBlock(),n.createBlock(r,{key:0,url:t.src,onlazy:t.onlazy,loadingColor:t.loadingColor,onbackground:t.onbackground,style:{width:"100%",height:"100%"},onError:o[0]||(o[0]=l=>e.status="image")},null,8,["url","onlazy","loadingColor","onbackground"])):n.createCommentVNode("",!0),e.status=="image"?(n.openBlock(),n.createBlock(s,{key:1,src:t.src,onlazy:t.onlazy,style:{width:"100%",height:"100%"}},null,8,["src","onlazy"])):n.createCommentVNode("",!0)],2)}}}),ns=W(hm),r1="",s1="",l1="",um=Ai("FvImageCache",{state:()=>({imgUriList:[]}),getters:{imgUri:t=>i=>{const e=t.imgUriList.find(o=>o.key===i);return e||{data:"",key:i,state:"none"}}},actions:{setImgUri(t){let i=t.state;if(t.key==null)return 0;i!="none"&&i!="loading"&&i!="done"&&(t.state="none");let e=this.imgUriList.find(o=>o.key===t.key);e==null?this.imgUriList.push({data:t.data,key:t.key,state:t.state}):this.imgUriList.splice(this.imgUriList.indexOf(e),1,{data:t.data,key:t.key,state:t.state})},clearImgUri(t){let i=this.imgUriList.find(e=>t===e.key);if(i==null)return 0;this.imgUriList.splice(this.imgUriList.indexOf(i),1)}}}),cm={class:"fv-img-box-content"},fm=["src"],mm=Object.assign({name:"FvImgBox",data(){return{xhr:!1,loadingProgress:0,width:0,height:0,lazy:!1,lazyTimer:null,formatTimer:null,imageCache:null}},watch:{url(){this.xhr!=!1&&this.xhr.abort(),this.url!=""&&!this.lazy&&this.LoadingImg()},onlazy(t){this.lazy=t.toString()=="true"},lazy(t){t&&this.lazyInit()}},computed:{$theme(){return z(this.$props).theme.value},imgUri(){return this.imageCache?!this.url||!this.imageCache.imgUri(this.url)?{data:"",key:this.url,state:"none"}:this.imageCache.imgUri(this.url):{data:"",key:this.url,state:"none"}},progressSize(){return this.width<=20||this.height<=20?{r:this.width-2>0?this.width-2:2,borderWidth:2}:this.width<=40||this.height<=40?{r:10,borderWidth:2}:{r:20,borderWidth:5}}},beforeMount(){this.imageCache=um()},mounted(){this.lazy=this.onlazy.toString()=="true",this.url&&!this.lazy&&this.LoadingImg(),this.widthHeightWatcher()},methods:{LoadingImg(){this.imgUri.state=="none"&&(this.imageCache.setImgUri({data:"",key:this.url,state:"loading"}),this.getUrlImg(this.url)),clearInterval(this.formatTimer),this.formatTimer=setInterval(()=>{if(!this.imageCache)return;let t=this.imageCache.imgUri(this.url);!t.data&&(t.state=="none"||t.state=="done")&&(this.imageCache.setImgUri({data:"",key:this.url,state:"loading"}),this.getUrlImg(this.url))},3e3)},widthHeightWatcher(){let t=this.$el;new ResizeObserver(e=>{for(const o of e){const{contentRect:r,target:s}=o,{width:l,height:a}=r;this.width=l,this.height=a}}).observe(t)},getUrlImg(t){if(t==null)return console.warn(`imgBox can't find url: ${t}.`),0;this.loadingProgress=0;let i=new XMLHttpRequest;i.open("get",t,!0),i.responseType="blob",i.onreadystatechange=e=>{if(i.readyState==4&&i.status==200){let o=i.response,r=o.type.split("/")[0],s=new FileReader;s.onload=l=>{let a=l.target.result;this.UpdateStore(a)},r!=="text"?s.readAsDataURL(o):s.readAsText(o)}else i.readyState==4},i.addEventListener("progress",e=>{const o=e.loaded/e.total*100;this.loadingProgress=o.toFixed(2)}),i.send(),i.onerror=e=>{this.$emit("error",e),this.imageCache.clearImgUri(this.url),console.warn("Fv-ImgBox doesn't support cross-domain url.")},this.xhr=i},UpdateStore(t){this.imageCache.setImgUri({data:t,key:this.url,state:"done"})},lazyInit(){clearInterval(this.lazyTimer),this.lazyTimer=setInterval(()=>{this.$el.getBoundingClientRect().top<window.innerHeight&&(this.lazy=!1,this.LoadingImg(),clearInterval(this.lazyTimer))},300)}},beforeUnmount(){clearInterval(this.formatTimer),clearInterval(this.lazyTimer)}},{props:{...A,url:{default:""},onlazy:{default:!1},loadingColor:{default:"rgba(36, 36, 36, 1)"},onbackground:{default:!1}},setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-progress-ring");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-ImgBox",[e.$theme]]),style:n.normalizeStyle({background:t.onbackground?"url("+e.imgUri.data+") no-repeat":""})},[n.withDirectives(n.createElementVNode("div",cm,[n.withDirectives(n.createVNode(r,{value:e.loadingProgress,loading:e.loadingProgress===0,color:t.loadingColor,r:e.progressSize.r,borderWidth:e.progressSize.borderWidth,background:"transparent"},null,8,["value","loading","color","r","borderWidth"]),[[n.vShow,e.imgUri.state=="loading"]])],512),[[n.vShow,e.imgUri.state!="done"]]),n.createVNode(n.Transition,{name:"fade-in"},{default:n.withCtx(()=>[e.imgUri.state=="done"&&!t.onbackground?(n.openBlock(),n.createElementBlock("img",{key:0,draggable:"false",alt:"",src:e.imgUri.data},null,8,fm)):n.createCommentVNode("",!0)]),_:1})],6)}}}),os=W(mm),d1="",h1="",u1="",gm=Object.assign({name:"FvInfiniteScrollView",data(){return{thisValue:this.modelValue,dynamicValue:[],lock:!0,looper:!0}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t),this.dataChange()},static(){this.loadMore()}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.init(),this.lazyLoadInit()},methods:{async init(){for(;this.looper;)this.$el.scrollHeight<=this.$el.clientHeight&&this.thisValue.length>this.dynamicValue.length?(this.loadMore(),this.$emit("init-start")):this.$emit("init-end"),await new Promise(t=>{setTimeout(()=>{t(1)},100)})},loadMore(){if(this.static){this.dynamicValue=this.thisValue;return}if(!this.lock)return;this.lock=!1;let t=this.dynamicValue[this.dynamicValue.length-1],i=this.thisValue.indexOf(t),e=this.thisValue.slice(i+1,i+this.batchSize+1);return this.dynamicValue=this.dynamicValue.concat(e),this.lock=!0,e>0},dataChange(){let t=this.dynamicValue.length;this.dynamicValue=this.thisValue.slice(0,t)},lazyLoadInit(){this.$el.addEventListener("scroll",t=>{this.$el.scrollHeight-this.$el.scrollTop-this.$el.clientHeight<this.offset&&this.$emit("lazyload",this.loadMore())})}},beforeUnmount(){this.looper=!1}},{props:{...A,modelValue:{default:()=>[]},batchSize:{default:30},offset:{default:100},static:{default:!1}},emits:["update:modelValue","init-start","init-end","lazyload"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-InfiniteScrollView",[e.$theme]])},[n.renderSlot(e.$slots,"default",{thisValue:e.thisValue,dynamicValue:e.dynamicValue},()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.dynamicValue,(r,s)=>(n.openBlock(),n.createElementBlock("p",{key:s},n.toDisplayString(r),1))),128))])],2))}}),rs=W(gm),f1="",m1="",g1="",pm={class:"title-bar"},wm={class:"title-content"},bm={class:"info-box-content-block"},ym=n.createElementVNode("p",null,"Info Box Content.",-1),km={class:"info-box-control-block"},ss=Object.assign({name:"FvInfoBox",data(){return{iconList:{default:{icon:"Error",background:"",backgroundColor:"rgba(0, 98, 158, 0.8)"},warning:{icon:"Warning",background:"brown",backgroundColor:"rgba(234, 183, 2, 1)"},correct:{icon:"Completed",background:"green",backgroundColor:"rgba(69, 172, 97, 1)"},blocked:{icon:"Blocked12 ",background:"red",backgroundColor:"rgba(200, 50, 59, 1)"},error:{icon:"ErrorBadge",background:"red",backgroundColor:"rgba(200, 50, 59, 1)"}}}},computed:{$theme(){return z(this.$props).theme.value}},methods:{confirm(){this.$emit("confirm")},close(){this.$emit("close")}}},{props:{...A,title:{default:"Tip"},status:{default:"default"},mode:{default:"relative"},confirmTitle:{default:"\u786E\u5B9A"},cancelTitle:{default:"\u53D6\u6D88"},showTitleBar:{default:!0},acrylic:{default:!1},destroy:{type:[Boolean,Function],default:!1}},emits:["confirm","close"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-InfoBox",[e.$theme,t.mode,{acrylic:t.acrylic}]])},[n.createElementVNode("div",{class:n.normalizeClass(["sinfo-box-block",[e.iconList[t.status].background]])},[n.withDirectives(n.createElementVNode("div",pm,[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${e.iconList[t.status].icon}`]])},null,2),n.createElementVNode("span",wm,n.toDisplayString(t.title),1)],512),[[n.vShow,t.showTitleBar]]),n.createElementVNode("span",bm,[n.renderSlot(e.$slots,"msg",{},()=>[n.withDirectives(n.createElementVNode("h3",null,n.toDisplayString(t.title),513),[[n.vShow,!t.showTitleBar]]),ym])]),n.createElementVNode("div",km,[n.renderSlot(e.$slots,"control-panel",{theme:e.$theme,confirm:e.confirm,cancel:e.close,iconList:e.iconList},()=>[n.createVNode(r,{theme:"dark",background:e.iconList[t.status].backgroundColor,isBoxShadow:!0,borderRadius:6,style:{width:"50%",height:"35px","margin-right":"2.5px"},onClick:e.confirm},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(t.confirmTitle),1)]),_:1},8,["background","onClick"]),n.createVNode(r,{theme:e.$theme,isBoxShadow:!0,borderRadius:6,style:{width:"50%",height:"35px","margin-left":"2.5px"},onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(t.cancelTitle),1)]),_:1},8,["theme","onClick"])])])],2)],2)}}});function ls(t,i,e){let o=l=>{let a={title:"Tip",status:"default",mode:"fixed",confirmTitle:"\u786E\u5B9A",cancelTitle:"\u53D6\u6D88",acrylic:!1,control_panel:void 0,confirm:async()=>{},cancel:async()=>{},theme:"global"};a=Object.assign(a,i);const d=n.h(ss,{title:a.title,status:a.status,mode:a.mode,confirmTitle:a.confirmTitle,cancelTitle:a.cancelTitle,acrylic:a.acrylic,onConfirm:async()=>{await a.confirm(),n.render(null,l),l.remove()},onClose:async()=>{await a.cancel(),n.render(null,l),l.remove()},destroy:()=>{n.render(null,l),l.remove()},theme:a.theme},{msg:()=>t,"control-panel":a.control_panel});return d.appContext=e,d};const r="__fv-global-info-box__";let s=document.getElementById(r);s||(s=document.createElement("div"),s.id=r,document.body.appendChild(s)),n.render(o(s),s)}const as={install(t){t.config.globalProperties.$infoBox=(i,e)=>{ls(i,e,t._context)}}},ds=_n(ss,[as]),w1="",b1="",y1="",vm={props:{top:{default:0},height:{default:60},background:{default:""},theme:{type:String,default:"global"}},data(){return{thisTop:0,thisHeight:60,styles:{slider:{background:""}}}},watch:{top(){this.moveInit()},height(){this.moveInit()},background(){this.stylesInit()}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.moveInit(),this.stylesInit()},methods:{moveInit(){let t=this.top-this.thisTop;t>0?this.heightExpandToBottom(t):this.heightExpandToTop(t)},stylesInit(){this.styles.slider.background=this.background},heightExpandToBottom(t){let i=Math.abs(t)+this.height;Z.to(this.$data,{thisHeight:i,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.heightFormatToBottom})},heightFormatToBottom(){Z.to(this.$data,{thisTop:this.top,thisHeight:this.height,duration:.2,ease:"power3.out"})},heightExpandToTop(t){let i=Math.abs(t)+this.height;Z.to(this.$data,{thisTop:this.top,thisHeight:i,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.heightFormatToTop})},heightFormatToTop(){Z.to(this.$data,{thisHeight:this.height,duration:.2,ease:"power3.out"})}}},Cm={class:"fv-listview-slider"};function Vm(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",Cm,[n.createElementVNode("span",{class:"s",style:n.normalizeStyle({"margin-top":`${r.thisTop}px`,height:`${r.thisHeight}px`})},[n.createElementVNode("p",{style:n.normalizeStyle({background:r.styles.slider.background})},null,4)],4)])}const hs=q(vm,[["render",Vm]]),Sm={class:"list-view-header"},$m={class:"list-view-container",ref:"container"},Em=["onClick","onTouchend","onDragover","onDragleave","onDrop"],xm={class:"list-view-footer"},Tm=Object.assign({name:"FvListView",components:{verticalSlider:hs},data(){return{FR:{init:!1,el:()=>this.$el,revealHandlerList:[]},thisValue:[],focus:!1,showSelectedBorder:!1,thisSliderTarget:null,thisSliderIndex:this.sliderIndex,currentTop:0,currentHeight:0,timer:{debounce:null}}},watch:{modelValue(t){this.valueInit(),this.setChoosen()},choosen(t){this.setChoosen()},sliderTarget(t){this.thisSliderTarget=t},thisSliderTarget(t){this.$emit("update:sliderTarget",t)},sliderIndex(t){this.thisSliderIndex=t,this.setSliderTarget(t)},thisSliderIndex(t){this.$emit("update:sliderIndex",t)}},computed:{borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(160, 160, 160, 0.2)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.1)":"rgba(160, 160, 160, 0.2)"},currentChoosen(){let t=[];for(let i=0;i<this.thisValue.length;i++)this.thisValue[i].choosen&&this.thisValue[i].show&&t.push(this.thisValue[i]);return t},currentChoosenAll(){for(let t=0;t<this.thisValue.length;t++)if(this.thisValue[t].choosen!=!0&&this.thisValue[t].show)return!1;return!0},currentChoosenNum(){let t=0;for(let i=0;i<this.thisValue.length;i++)this.thisValue[i].choosen&&this.thisValue[i].show&&t++;return t},_rowHeight(){return isNaN(this.rowHeight)?this.rowHeight:this.rowHeight+"px"},$theme(){return z(this.$props).theme.value}},mounted(){this.valueInit(),this.setChoosen(),this.outSideClickInit(),this.keyDownEventInit(),this.sliderRefreshInit(),window.addEventListener("click",()=>{this.showSelectedBorder=!1}),setTimeout(()=>{this.setSliderTarget()},300)},methods:{valueInit(){let t={name:"",show:!0,choosen:!1,selected:!1,disabled:!1},i=[];for(let e of this.modelValue){let o=JSON.parse(JSON.stringify(t));i.push(Object.assign(o,e))}this.thisValue=i},outSideClickInit(){window.addEventListener("click",this.outSideClickEvent)},outSideClickEvent(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}i=i.parentNode}e||(this.focus=!1)},keyDownEventInit(){window.addEventListener("keydown",t=>{!this.focus||(t.keyCode===40?this.move(t,1):t.keyCode===38&&this.move(t,-1),t.keyCode===13&&this.enter(t))})},valueTrigger(t){return typeof t=="function"?t():t},handlerClick(t,i){clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{if(this.onChoosen(t,i),this.valueTrigger(i.disabled)||this.valueTrigger(i.type)==="header"||this.valueTrigger(i.type)=="divider")return;let e=this.thisValue.indexOf(i);this.$emit("item-click",{item:i,index:e,event:t})},200)},onChoosen(t,i){if(this.valueTrigger(i.disabled)||this.valueTrigger(i.type)==="header"||this.valueTrigger(i.type)=="divider")return 0;if(this.multiple)this.currentChoosen.find(r=>r.key===i.key)!=null?(i.choosen=!1,this.thisValue[this.thisValue.indexOf(i)]=i):(i.choosen=!0,this.thisValue[this.thisValue.indexOf(i)]=i);else{for(let o of this.currentChoosen)o.choosen=!1,this.thisValue[this.thisValue.indexOf(o)]=o;i.choosen=!0,this.thisValue[this.thisValue.indexOf(i)]=i}this.selectionFormat(i),this.scrollFormat(t.target);let e=this.thisValue.indexOf(i);this.$emit("chooseItem",{item:i,index:e,event:t}),this.setSliderTarget(e),this.$emit("choosen-items",this.currentChoosen)},setChoosen(){for(let t of this.choosen){if(this.valueTrigger(t.disabled)||this.valueTrigger(t.type)==="header"||this.valueTrigger(t.type)=="divider")continue;let i=this.thisValue.find(e=>e.key===t.key);if(i){if(!this.multiple)for(let o of this.currentChoosen)o.choosen=!1,this.thisValue[this.thisValue.indexOf(o)]=o;i.choosen=!0;let e=this.thisValue.indexOf(i);this.thisValue[e]=i,this.setSliderTarget(e)}this.selectionFormat(i)}},move(t,i){t.preventDefault(),this.showSelectedBorder=!0;let e=this.thisValue.find(r=>r.selected===!0);if(!e){if(e=this.thisValue.find(s=>!(this.valueTrigger(s.disabled)||this.valueTrigger(s.type)==="header"||this.valueTrigger(s.type)=="divider")),!e)return;let r=this.thisValue.indexOf(e);this.selectionFormat(e),this.scrollFormat(this.$refs[`list_item_${r}`][0]);return}let o=this.thisValue.indexOf(e);if(i==1){for(let r=o+1;r<this.thisValue.length;r++)if(!this.valueTrigger(this.thisValue[r].disabled)&&!(this.valueTrigger(this.thisValue[r].type)==="header"||this.valueTrigger(this.thisValue[r].type)=="divider")){e=this.thisValue[r],o=r;break}}else if(i==-1){for(let r=o-1;r>=0;r--)if(!this.valueTrigger(this.thisValue[r].disabled)&&!(this.valueTrigger(this.thisValue[r].type)==="header"||this.valueTrigger(this.thisValue[r].type)=="divider")){e=this.thisValue[r],o=r;break}}this.selectionFormat(e),this.scrollFormat(this.$refs[`list_item_${o}`][0])},enter(t){let i=this.thisValue.find(o=>o.selected===!0);if(!i)return;if(this.multiple)this.currentChoosen.find(r=>r.key===i.key)!=null?(i.choosen=!1,this.thisValue[this.thisValue.indexOf(i)]=i):(i.choosen=!0,this.thisValue[this.thisValue.indexOf(i)]=i);else{for(let o of this.currentChoosen)o.choosen=!1,this.thisValue[this.thisValue.indexOf(o)]=o;i.choosen=!0,this.thisValue[this.thisValue.indexOf(i)]=i}let e=this.thisValue.indexOf(i);this.$emit("chooseItem",{item:i,index:e,event:t}),this.setSliderTarget(e),this.$emit("choosen-items",this.currentChoosen)},scrollFormat(t){let i=t.getBoundingClientRect(),e=this.$refs.container.getBoundingClientRect();if(i.top<e.top){let o=e.top-i.top;this.$refs.container.scrollTop-=o}if(i.bottom>e.bottom){let o=e.bottom-i.bottom;this.$refs.container.scrollTop-=o}},selectionFormat(t){this.thisValue.forEach((i,e)=>{i.key===t.key&&i.name===t.name?(i.selected=!0,this.thisValue[e]=i,this.$emit("selection-change",i)):(i.selected=!1,this.thisValue[e]=i)})},setSliderTarget(t=null){if(!t){for(let i=0;i<this.thisValue.length;i++)if(this.thisValue[i].choosen){t=i;break}}this.$refs[`list_item_${t}`]&&(this.thisSliderTarget=this.$refs[`list_item_${t}`][0],this.thisSliderIndex=t)},sliderRefreshInit(){this.timer.slider=setInterval(()=>{if(this.thisSliderTarget){let t=this.thisSliderTarget,i=this.$el.getBoundingClientRect().top,e=t.getBoundingClientRect().top;this.currentTop=e-i}else this.currentTop=0;if(this.thisSliderTarget){let t=this.thisSliderTarget;this.currentHeight=t.clientHeight}else this.currentHeight=0},30)},dragOver(t,i){t.preventDefault(),t.stopPropagation(),!this.valueTrigger(i.disabled)&&this.$emit("item-drag-over",{drop:i,root:this.thisValue})},dragLeave(t,i){t.preventDefault(),t.stopPropagation(),this.$emit("item-drag-leave",{drop:i,root:this.thisValue})},dropItem(t,i){t.preventDefault(),t.stopPropagation(),!this.valueTrigger(i.disabled)&&this.$emit("item-drop",{drop:i,root:this.thisValue})},inspectItemAPI(t){let i=this.thisValue.find(r=>this.valueTrigger(r.name)===this.valueTrigger(t.name)&&this.valueTrigger(r.type)===this.valueTrigger(t.type)&&r.key===t.key),e=this.thisValue.indexOf(i);if(e<0)return 0;let o=this.$refs.container.querySelectorAll(".list-view-item");this.onChoosen({target:o[e]},t)}},beforeUnmount(){clearInterval(this.timer.slider),window.removeEventListener("click",this.outSideClickEvent)}},{props:{...A,modelValue:{default:()=>[]},choosen:{default:()=>[]},multiple:{default:!1},rowHeight:{default:""},headerForeground:{default:""},choosenBackground:{default:""},itemPadding:{default:""},itemBorderRadius:{default:3},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},showSlider:{default:!1},sliderTarget:{default:()=>{}},sliderIndex:{default:-1}},emits:["update:modelValue","item-click","chooseItem","choosen-items","selection-change","item-drag-over","item-drag-leave","item-drop","update:sliderTarget","update:sliderIndex"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-reveal-container");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-ListView",[e.$theme]]),onClick:o[0]||(o[0]=s=>e.focus=!0)},[n.createElementVNode("div",Sm,[n.renderSlot(e.$slots,"header")]),n.createElementVNode("div",$m,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.thisValue,(s,l)=>n.withDirectives((n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass([{choose:e.valueTrigger(s.choosen),header:e.valueTrigger(s.type)=="header",hr:e.valueTrigger(s.type)=="divider",normal:e.valueTrigger(s.type)=="default"||e.valueTrigger(s.type)==null,disabled:e.valueTrigger(s.disabled),selected:s.selected&&e.showSelectedBorder},"list-view-item"]),key:l,style:n.normalizeStyle({height:e._rowHeight,background:e.valueTrigger(s.choosen)?t.choosenBackground:"",borderRadius:t.itemBorderRadius+"px"}),ref_for:!0,ref:`list_item_${l}`,onClick:a=>e.handlerClick(a,s),onTouchend:a=>e.handlerClick(a,s),onDragover:a=>e.dragOver(e.event,s),onDragleave:a=>e.dragLeave(e.event,s),onDrop:a=>e.dropItem(e.event,s)},[(e.valueTrigger(s.type)=="default"||e.valueTrigger(s.type)==null)&&!e.valueTrigger(s.disabled)?(n.openBlock(),n.createBlock(r,{key:0,revealContainer:e.FR,parent:()=>e.$refs[`list_item_${l}`][0],class:"fv-listview-reveal-container",backgroundColor:e.backgroundLightColor,borderColor:e.borderLightColor,borderGradientSize:35,borderWidth:1,borderRadius:t.itemBorderRadius},null,8,["revealContainer","parent","backgroundColor","borderColor","borderRadius"])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"item-content",style:n.normalizeStyle({padding:t.itemPadding})},[n.renderSlot(e.$slots,"listItem",{item:s,index:l,valueTrigger:e.valueTrigger},()=>[n.createElementVNode("p",{style:n.normalizeStyle({color:e.valueTrigger(s.type)=="header"?t.headerForeground:""})},n.toDisplayString(e.valueTrigger(s.name)),5)])],4)],46,Em)),[[n.vShow,e.valueTrigger(s.show)!==!1]])),128))],512),n.createElementVNode("div",xm,[n.renderSlot(e.$slots,"footer")]),t.showSlider?(n.openBlock(),n.createBlock(hs,{key:0,top:e.currentTop,height:e.currentHeight,background:t.headerForeground},null,8,["top","height","background"])):n.createCommentVNode("",!0)],2)}}}),us=W(Tm),v1="",C1="",V1="",Dm={name:"FvMenuFlyoutChildrenContainer",emits:["choose-item"],props:{modelValue:{default:()=>[]},options:{default:()=>[]},background:{default:""},choosenBackground:{default:""},choosenSliderBackground:{default:""},titleForeground:{default:""},pivotPlaceholder:{default:"Please Choose"},theme:{type:String,default:"global"}},data(){return{thisValue:this.modelValue,pivotValue:null}},watch:{modelValue(t){this.thisValue=t},pivotItems(t){t.length>0&&(this.pivotValue=t[t.length-1])}},computed:{pivotItems(){let t=[];for(let i of this.thisValue)t.push({key:i.key,name:i.text,ori:i,width:this.pivotTextWidth(i.text)});return(t.length==0||t[t.length-1].ori.children)&&t.push({key:"$fv-menu-flyout-pivot-placeholder",name:this.pivotPlaceholder,ori:{},width:this.pivotTextWidth(this.pivotPlaceholder)}),t},pivotTextWidth(){return t=>t.length<5?60:t.length>20?200:10*t.length},computedOptions(){if(!this.pivotValue)return this.options;let t=this.pivotItems.findIndex(i=>i.key==this.pivotValue.key);return t>0?this.pivotItems[t-1].ori.children?this.pivotItems[t-1].ori.children:[]:this.options},isChoosen(){return t=>this.pivotValue?t.key===this.pivotValue.key&&t.text===this.pivotValue.name:!1},$theme(){return z(this.$props).theme.value}},mounted(){},methods:{valueTrigger(t){return typeof t=="function"?t():t},Choose(t,i){if(this.valueTrigger(i.disabled)||this.valueTrigger(i.type)=="header"||this.valueTrigger(i.type)=="divider")return 0;let e=t.target;for(;e.getAttribute("class").indexOf("fv-menu-flyout-item")<0;)e=e.parentNode;this.$refs.co_items.scrollTop=e.offsetTop,this.$emit("choose-item",{item:i,index:this.thisValue.findIndex(o=>o.key==this.pivotValue.key&&o.text==this.pivotValue.name)})}}},Im={class:"menu-flyout-list-container"},Bm=["onClick","title"],Nm={class:"ms-Icon ms-Icon--ChevronRight after-expand"};function Lm(t,i,e,o,r,s){const l=n.resolveComponent("fv-pivot");return n.openBlock(),n.createBlock(n.Transition,{name:"fv-menu-flyout"},{default:n.withCtx(()=>[n.createElementVNode("div",Im,[n.createVNode(l,{modelValue:r.pivotValue,"onUpdate:modelValue":i[0]||(i[0]=a=>r.pivotValue=a),theme:s.$theme,items:s.pivotItems,fontSize:12,sliderBackground:e.choosenSliderBackground,style:{width:"100%",height:"50px","overflow-x":"auto"}},null,8,["modelValue","theme","items","sliderBackground"]),n.createVNode(n.TransitionGroup,{name:"fv-menu-flyout-item",tag:"div",class:"menu-flyout-item-container",style:n.normalizeStyle({background:e.background,"overflow-y":"auto","overflow-x":"visible"}),ref:"co_items"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.computedOptions,(a,d)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-menu-flyout-item",{hr:s.valueTrigger(a.type)=="divider",normal:(s.valueTrigger(a.type)=="default"||s.valueTrigger(a.type)==null)&&!s.valueTrigger(a.disabled),disabled:s.valueTrigger(a.disabled),choose:s.isChoosen(a),title:s.valueTrigger(a.type)=="header"}]),style:n.normalizeStyle({background:s.isChoosen(a)?e.choosenBackground:"",color:s.valueTrigger(a.type)==="header"?e.titleForeground:""}),onClick:h=>s.Choose(h,a),key:`options: ${a.key?a.key:d}`,title:s.valueTrigger(a.text)},[n.renderSlot(t.$slots,"default",{item:a,choosenSliderBackground:e.choosenSliderBackground},()=>[n.createElementVNode("i",{class:"before-choosen",style:n.normalizeStyle({background:e.choosenSliderBackground})},null,4),n.createTextVNode(" "+n.toDisplayString(s.valueTrigger(a.type)!=="divider"?s.valueTrigger(a.text):"")+" ",1),n.withDirectives(n.createElementVNode("i",Nm,null,512),[[n.vShow,a.children]])])],14,Bm))),128))]),_:3},8,["style"])])]),_:3})}const cs=q(Dm,[["render",Lm]]),Fm=["placeholder","value"],Mm={class:"ms-Icon ms-Icon--ChevronRight after-expand"},Pm=Object.assign({name:"FvMenuFlyout",components:{menuFlyoutChildrenContainer:cs},data(){return{thisValue:this.modelValue,status:!1}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)}},computed:{isDisabled(){return this.options.length==0||this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"},computedValue(){let t=[];for(let i of this.thisValue)t.push(i.text);return t.join(" / ")},$theme(){return z(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent),window.addEventListener("touchend",this.outSideClickEvent)},outSideClickEvent(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}i=i.parentNode}e||(this.status=!1)},valueTrigger(t){return typeof t=="function"?t():t},Choose(t){let{item:i,index:e}=t;e==-1?this.thisValue.push(i):(this.thisValue.splice(e+1),this.thisValue[e]=i),i.children||(this.status=!1),this.$emit("choose-item",this.thisValue)}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent),window.removeEventListener("touchend",this.outSideClickEvent)}},{props:{...A,modelValue:{default:()=>[]},options:{default:()=>[]},borderWidth:{default:2},placeholder:{default:"menuFlyout"},borderRadius:{default:"3"},background:{default:""},choosenBackground:{default:""},choosenSliderBackground:{default:""},inputForeground:{default:""},inputBackground:{default:""},titleForeground:{default:""},dropDownIcon:{default:"ChevronDown"},dropDownIconForeground:{default:""},pivotPlaceholder:{default:"Please Choose"},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},disabled:{default:!1}},emits:["update:modelValue","choose-item"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-reveal-container");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-MenuFlyout",[e.$theme,{disabled:e.isDisabled}]]),style:n.normalizeStyle({background:t.background,padding:t.borderWidth,"border-radius":`${t.borderRadius}px`,"z-index":e.status?5:"",overflow:"visible"})},[n.createElementVNode("div",{class:"menu-flyout-container",onClick:o[0]||(o[0]=s=>e.status=e.isDisabled?!1:!e.status),style:n.normalizeStyle({background:t.inputBackground,"border-radius":`${t.borderRadius}px`})},[n.createVNode(r,{parent:()=>e.$el,class:"fv-menu-flyout-reveal-container",backgroundColor:e.backgroundLightColor,borderColor:e.borderLightColor,backgroundGradientSize:120,borderGradientSize:80,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:e.isDisabled},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),n.createElementVNode("input",{class:"input",placeholder:t.placeholder,readonly:"",value:e.computedValue,style:n.normalizeStyle({color:t.inputForeground,"border-radius":`${t.borderRadius}px`})},null,12,Fm),n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon right-icon",[`ms-Icon--${t.dropDownIcon}`]]),style:n.normalizeStyle({color:t.dropDownIconForeground})},null,6)],4),n.withDirectives(n.createVNode(cs,{modelValue:e.thisValue,options:t.options,background:t.background,choosenBackground:t.choosenBackground,titleForeground:t.titleForeground,theme:e.$theme,onChooseItem:e.Choose},{item:n.withCtx(s=>[n.renderSlot(e.$slots,"default",{item:s.item,choosenSliderBackground:s.choosenSliderBackground},()=>[n.createElementVNode("i",{class:"before-choosen",style:n.normalizeStyle({background:s.choosenSliderBackground})},null,4),n.createTextVNode(" "+n.toDisplayString(e.valueTrigger(s.item.type)!=="divider"?e.valueTrigger(s.item.text):"")+" ",1),n.withDirectives(n.createElementVNode("i",Mm,null,512),[[n.vShow,s.item.children]])])]),_:3},8,["modelValue","options","background","choosenBackground","titleForeground","theme","onChooseItem"]),[[n.vShow,e.status]])],6)}}}),fs=W(Pm),$1="",E1="",x1="",Rm={class:"msg-bar-block"},_m={class:"msg-content-block"},zm={class:"control-block"},ms=Object.assign({name:"FvMessageBar",data(){return{iconList:{default:{icon:"Info2",iconColor:"normal"},warning:{icon:"Info2",iconColor:"warning"},correct:{icon:"CheckMark",iconColor:"correct"},blocked:{icon:"Remove ",iconColor:"error"},error:{icon:"ErrorBadge12",iconColor:"error"}},timer:null}},watch:{autoClose(){this.autoDestroyInit()}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.autoDestroyInit(),this.enter()},methods:{enter(){this.$el.style.top="-100%",Z.to(this.$el,{top:0,duration:.3})},autoDestroyInit(){this.mode!=="relative"&&this.autoClose>0&&(clearTimeout(this.timer),this.timer=setTimeout(()=>{this.destroySelf()},this.autoClose))},destroySelf(){this.mode=="relative"?this.$emit("close"):Z.to(this.$el,{opacity:0,duration:.3,onComplete:()=>{this.$emit("close"),this.destroy()}})}}},{props:{...A,status:{type:[String,void 0],default:"default"},showControl:{type:[Boolean,void 0],default:!1},showClose:{type:[Boolean,void 0],default:!0},mode:{default:"relative"},destroy:{default:()=>{}},autoClose:{default:3e3}},emits:["close"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-MessageBar",[e.$theme,e.iconList[t.status].iconColor,{relative:t.mode=="relative"}]])},[n.createElementVNode("span",Rm,[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${e.iconList[t.status].icon}`,e.iconList[t.status].iconColor]])},null,2),n.createElementVNode("span",_m,[n.renderSlot(e.$slots,"msg",{theme:e.$theme},()=>[n.createTextVNode(" Message Bar. ")])]),n.withDirectives(n.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel close-block",onClick:o[0]||(o[0]=(...s)=>e.destroySelf&&e.destroySelf(...s))},null,512),[[n.vShow,t.showClose]])]),n.withDirectives(n.createElementVNode("span",zm,[n.renderSlot(e.$slots,"control",{theme:e.$theme,cancel:e.destroySelf},()=>[n.createVNode(r,null,{default:n.withCtx(()=>[n.createTextVNode("Yes")]),_:1})])],512),[[n.vShow,t.showControl]])],2)}}});function gs(t,i,e){let o=s=>{const l=n.h(ms,{status:i.status,showControl:i.showControl,showClose:i.showClose,mode:"fixed",autoClose:i.autoClose,destroy:()=>{n.render(null,s),i.once||s.remove()},theme:i.theme},{msg:t,control:i.control});return l.appContext=e,l},r=document.createElement("div");if(i.once){const s="__fv-global-message-bar__";r=document.getElementById(s),r||(r=document.createElement("div"),r.id=s,document.body.appendChild(r))}else document.body.appendChild(r);n.render(o(r),r)}function ps(t,i){var o;if(t.fvSwiftWarning)return 0;let e={color:"rgba(200, 50, 59, 1)",replaceTitle:"SwiftWarning"};e=Object.assign(e,i),e.oriContent=t.innerHTML,e.oriClass=t.getAttribute("class"),e.oriStyle=t.getAttribute("style"),e.oriClass==null&&(e.oriClass=""),e.oriStyle==null&&(e.oriStyle=""),t.fvSwiftWarning=!0,t.innerHTML=(o=e.replaceTitle)!=null?o:"SwiftWarning",t.setAttribute("class",e.oriClass+" fv-swift-warning"),t.setAttribute("style",e.oriStyle+` color: ${e.color};`),setTimeout(()=>{var r,s,l;t.innerHTML=(r=e.oriContent)!=null?r:"",t.setAttribute("class",(s=e.oriClass)!=null?s:""),t.setAttribute("style",(l=e.oriStyle)!=null?l:""),t.fvSwiftWarning=!1},3e3)}const ws={install(t){t.config.globalProperties.$barWarning=(i,e)=>{gs(i,{...e},t._context)},t.config.globalProperties.$swiftWarning=ps}},bs=_n(ms,[ws]),D1="",I1="",B1="",Om=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Back icon"},null,-1),Am=n.createElementVNode("i",{class:"ms-Icon ms-Icon--GlobalNavButton icon"},null,-1),Wm=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Back icon"},null,-1),Hm={class:"name title"},Gm=n.createElementVNode("i",{class:"ms-Icon ms-Icon--GlobalNavButton icon"},null,-1),Um={class:"search"},Ym={class:"template"},jm=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Settings icon"},null,-1),Xm={class:"name"},qm=Object.assign({name:"FvNavigationPanel",beforeMount(){this.uR=Fn(),this.uR.initRevealInstances()},data(){return{FR:null,uR:null,thisExpand:this.expand,thisExpandBackup:this.expand,screenWidth:window.innerWidth,timer:{widthTimer:{}}}},watch:{expand(t){this.thisExpand=t},thisExpand(t){this.$emit("update:expand",t),this.$emit("expand-change",t)},screenWidth(t){this.expandDisplay<this.screenWidth?this.isFlyout?this.thisExpand=!1:this.thisExpand=this.thisExpandBackup:this.thisExpand=!1}},computed:{panelWidth(){return this.isFlyout?`${this.compactWidth}px`:this.thisExpand?this.screenWidth<=this.fullSizeDisplay?"100%":`${this.expandWidth}px`:`${this.compactWidth}px`},navWidth(){let t=this.screenWidth<=this.fullSizeDisplay?"100%":`${this.expandWidth}px`;return this.thisExpand?t:`${this.compactWidth}px`},isFlyout(){return this.expandMode=="flyout"||this.flyoutDisplay>this.screenWidth},isMobile(){return this.mobileDisplay>this.screenWidth},borderLightColor(){return()=>this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return()=>this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"},$theme(){return z(this.$props).theme.value}},mounted(){this.screenWidthInit(),this.outSideClickInit()},methods:{FRInit(){this.FR=this.uR.revealDirectJs.apply(this.$el,{selector:`.fv-${this.$theme}-NavigationPanel .panel-container .fv-nav-default-item`,borderGradientSize:60,borderLightColor:this.borderLightColor,backgroundLightColor:this.backgroundLightColor})},screenWidthInit(){this.timer.widthTimer=setInterval(()=>{this.screenWidth=window.innerWidth},30)},outSideClickInit(){window.addEventListener("click",this.outSideClickEvent)},outSideClickEvent(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}i=i.parentNode}e||(this.isFlyout||this.isMobile)&&(this.thisExpand=!1)},expandClick(){this.thisExpandBackup=!this.thisExpand,this.thisExpand=!this.thisExpand,this.$emit("expand-click",this.thisExpand)}},beforeUnmount(){clearInterval(this.timer.widthTimer),this.uR.revealDirectJs.destroy(this.FR),window.removeEventListener("click",this.outSideClickEvent)}},{props:{...A,title:{default:"NavigationPanel"},expand:{default:!0},expandMode:{default:"relative"},expandWidth:{default:350},expandDisplay:{default:1024},compactWidth:{default:50},flyoutDisplay:{default:0},fullSizeDisplay:{default:800},mobileDisplay:{default:0},showBack:{default:!0},showNav:{default:!0},showSearch:{default:!0},settingTitle:{default:"Settings"},showSetting:{default:!0},background:{default:""}},emits:["back","setting-click","expand-change","expand-click","update:expand"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-animated-icon"),s=n.resolveComponent("fv-search-box");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-NavigationPanel",[e.$theme,{compact:!e.thisExpand},{flyout:e.isFlyout},{mobile:e.isMobile}]]),style:n.normalizeStyle({position:e.screenWidth<=t.fullSizeDisplay&&e.thisExpand?"static":"",width:e.panelWidth})},[n.createElementVNode("div",{class:"panel-container-mobile",style:n.normalizeStyle({background:e.thisExpand?"":t.background})},[n.withDirectives(n.createVNode(r,{modelValue:"backScale",class:"fv-nav-default-item",hideContent:!0,style:n.normalizeStyle({width:`${t.compactWidth}px`}),onClick:o[0]||(o[0]=l=>e.$emit("back",l))},{default:n.withCtx(()=>[Om]),_:1},8,["style"]),[[n.vShow,t.showBack]]),n.withDirectives(n.createVNode(r,{modelValue:"scaleXDown",class:"fv-nav-default-item",hideContent:!0,style:n.normalizeStyle({width:`${t.compactWidth}px`}),onClick:e.expandClick},{default:n.withCtx(()=>[Am]),_:1},8,["style","onClick"]),[[n.vShow,t.showNav]])],4),n.renderSlot(e.$slots,"banner"),n.createElementVNode("div",{class:"panel-container",style:n.normalizeStyle({width:e.navWidth,background:t.background})},[n.withDirectives(n.createVNode(r,{modelValue:"backScale",class:"fv-nav-default-item control",hideContent:!e.thisExpand,style:{width:"calc(100% - 10px)"},onClick:o[1]||(o[1]=l=>e.$emit("back",l))},{content:n.withCtx(()=>[n.renderSlot(e.$slots,"title",{show:t.showBack},()=>[n.createElementVNode("p",Hm,n.toDisplayString(t.title),1)])]),default:n.withCtx(()=>[n.renderSlot(e.$slots,"backIcon",{},()=>[Wm])]),_:3},8,["hideContent"]),[[n.vShow,t.showBack]]),n.withDirectives(n.createVNode(r,{modelValue:"scaleXDown",class:"fv-nav-default-item control",hideContent:!e.thisExpand,style:{width:"calc(100% - 10px)"},onClick:e.expandClick},{content:n.withCtx(()=>[n.renderSlot(e.$slots,"title",{show:!t.showBack},()=>[n.withDirectives(n.createElementVNode("p",{class:"name title"},n.toDisplayString(t.title),513),[[n.vShow,!t.showBack]])])]),default:n.withCtx(()=>[n.renderSlot(e.$slots,"navIcon",{},()=>[Gm])]),_:3},8,["hideContent","onClick"]),[[n.vShow,t.showNav]]),n.withDirectives(n.createElementVNode("span",Um,[n.renderSlot(e.$slots,"searchBlock",{},()=>[n.createVNode(s,{icon:"Search",placeholder:"Search",class:"nav-search",theme:e.theme,revealBorder:!0,borderWidth:"2",borderRadius:"6",isBoxShadow:!0,style:{width:"95%"}},null,8,["theme"])])],512),[[n.vShow,t.showSearch&&e.thisExpand]]),n.createElementVNode("div",Ym,[n.renderSlot(e.$slots,"panel")]),n.withDirectives(n.createVNode(r,{modelValue:"bounceRotate",ref:"setting",class:"fv-nav-default-item",hideContent:!e.thisExpand,style:{width:"calc(100% - 10px)"},onClick:o[2]||(o[2]=l=>e.$emit("setting-click",{event:l}))},{content:n.withCtx(()=>[n.createElementVNode("p",Xm,n.toDisplayString(t.settingTitle),1)]),default:n.withCtx(()=>[jm]),_:1},8,["hideContent"]),[[n.vShow,t.showSetting]])],4)],6)}}}),ys=W(qm),L1="",F1="",M1="",Km=n.createElementVNode("i",{class:"ms-Icon ms-Icon--GlobalNavButton icon"},null,-1),Jm=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Back icon"},null,-1),Qm=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Settings icon"},null,-1),Zm={class:"name"},eg=Object.assign({name:"FvNavigationView",data(){return{thisValue:{},thisExpand:this.expand,currentTarget:{},currentTop:0,currentHeight:0,timer:{slider:{}}}},watch:{modelValue(t,i){this.valueInit()},thisValue(t,i){t.name===i.name&&t.key===i.key||(this.$nextTick(()=>{this.onChooseSearch(t)}),this.$emit("update:modelValue",t))},expand(t){this.thisExpand=t},thisExpand(t){this.$emit("update:expand",t)}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.valueInit()},methods:{valueInit(){if(this.modelValue.type==="setting")return this.thisValue=this.modelValue,0;let t=this.options.find(i=>i.name===this.modelValue.name&&i.key===this.modelValue.key);t!==void 0?this.thisValue=t:this.thisValue=this.options.find(i=>i.type!=="header"&&i.type!=="divider")},itemClick(t){this.thisValue=t.item},settingClick(t){this.currentTarget=this.$refs.setting.$el,this.thisValue={key:">setting",name:">setting",type:"setting"},this.$emit("setting-click",t)},expandChange(t){this.$emit("expand-change",t)},onChooseSearch(t){if(t.type==="setting")return this.currentTarget=this.$refs.setting.$el,this.thisValue={key:">setting",name:">setting",type:"setting"},0;let i=this.options.find(o=>o.name===t.name&&o.key===t.key),e=this.options.indexOf(i);if(e<0)return 0;this.currentTarget=this.$refs.listView.$refs[`list_item_${e}`][0],this.thisValue=i}},beforeUnmount(){clearInterval(this.timer)}},{props:{...A,emits:["update:modelValue","expand-change","setting-click","item-click","back","expand-click","update:expand"],modelValue:{default:()=>({})},options:{default:()=>[]},title:{default:"NavigationView"},expand:{default:!0},expandMode:{default:"relative"},expandWidth:{default:350},expandDisplay:{default:1024},compactWidth:{default:46},flyoutDisplay:{default:0},fullSizeDisplay:{default:800},mobileDisplay:{default:0},showBack:{default:!0},showNav:{default:!0},showSearch:{default:!0},settingTitle:{default:"Settings"},showSetting:{default:!0},searchPlaceholder:{default:"Search"},foreground:{default:""},background:{default:""}},emits:["update:modelValue","expand-change","setting-click","item-click","back","expand-click","update:expand"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-search-box"),s=n.resolveComponent("fv-animated-icon"),l=n.resolveComponent("fv-list-view"),a=n.resolveComponent("fv-NavigationPanel");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-NavigationView",[e.$theme,{compact:!e.thisExpand}]])},[n.createVNode(a,{title:t.title,expand:e.thisExpand,"onUpdate:expand":o[3]||(o[3]=d=>e.thisExpand=d),expandMode:t.expandMode,expandWidth:t.expandWidth,expandDisplay:t.expandDisplay,compactWidth:t.compactWidth,flyoutDisplay:t.flyoutDisplay,fullSizeDisplay:t.fullSizeDisplay,mobileDisplay:t.mobileDisplay,showBack:t.showBack,showNav:t.showNav,showSearch:t.showSearch,settingTitle:t.settingTitle,showSetting:!1,background:t.background,theme:e.theme,ref:"panel",onBack:o[4]||(o[4]=d=>e.$emit("back",d)),onExpandClick:o[5]||(o[5]=d=>e.$emit("expand-click",d)),onExpandChange:e.expandChange,onSettingClick:e.settingClick},{banner:n.withCtx(()=>[n.renderSlot(e.$slots,"banner")]),title:n.withCtx(({show:d})=>[n.renderSlot(e.$slots,"title",{show:d},()=>[n.withDirectives(n.createElementVNode("p",{class:"name title"},n.toDisplayString(t.title),513),[[n.vShow,d]])])]),navIcon:n.withCtx(()=>[n.renderSlot(e.$slots,"navIcon",{},()=>[Km])]),backIcon:n.withCtx(()=>[n.renderSlot(e.$slots,"backIcon",{},()=>[Jm])]),searchBlock:n.withCtx(()=>[n.renderSlot(e.$slots,"searchBlock",{options:t.options},()=>[n.createVNode(r,{options:t.options,icon:"Search",placeholder:t.searchPlaceholder,theme:e.theme,class:"nav-search",revealBorder:!0,borderRadius:"3",isBoxShadow:!0,style:{width:"95%"},onChooseResult:e.onChooseSearch},null,8,["options","placeholder","theme","onChooseResult"])])]),panel:n.withCtx(()=>[n.createVNode(l,{modelValue:t.options,class:"navigation-list",ref:"listView",theme:e.theme,headerForeground:t.foreground,choosenBackground:"transparent",sliderTarget:e.currentTarget,"onUpdate:sliderTarget":o[1]||(o[1]=d=>e.currentTarget=d),showSlider:!0,onChooseItem:e.itemClick,onItemClick:o[2]||(o[2]=d=>e.$emit("item-click",d.item))},{listItem:n.withCtx(d=>[n.renderSlot(e.$slots,"listItem",{item:d.item,index:d.index,valueTrigger:d.valueTrigger},()=>[n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon",[`ms-Icon--${d.valueTrigger(d.item.icon)}`]])},null,2),[[n.vShow,d.valueTrigger(d.item.icon)!==void 0]]),n.createElementVNode("p",{class:"name",style:n.normalizeStyle({color:d.valueTrigger(d.item.type)=="header"?t.foreground:""})},n.toDisplayString(d.valueTrigger(d.item.name)),5)])]),footer:n.withCtx(()=>[n.withDirectives(n.createVNode(s,{ref:"setting",modelValue:"bounceRotate",class:"fv-nav-default-item",hideContent:!e.thisExpand,style:{width:"calc(100% - 10px)"},onClick:o[0]||(o[0]=d=>e.settingClick({event:d}))},{content:n.withCtx(()=>[n.createElementVNode("p",Zm,n.toDisplayString(t.settingTitle),1)]),default:n.withCtx(()=>[Qm]),_:1},8,["hideContent"]),[[n.vShow,t.showSetting]])]),_:3},8,["modelValue","theme","headerForeground","sliderTarget","onChooseItem"])]),_:3},8,["title","expand","expandMode","expandWidth","expandDisplay","compactWidth","flyoutDisplay","fullSizeDisplay","mobileDisplay","showBack","showNav","showSearch","settingTitle","background","theme","onExpandChange","onSettingClick"])],2)}}}),ks=W(eg),R1="",_1="",z1="",tg={class:"fv-pagination-container"},ig=n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronLeft"},null,-1),ng=n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"},null,-1),og=Object.assign({name:"FvPagination",data(){return{thisValue:this.modelValue,itemList:[]}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t),this.pageItem()},total(t){t<=0?this.itemList=[]:this.pageItem()}},computed:{isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return z(this.$props).theme.value}},mounted(){this.total<=0?this.itemList=[]:this.pageItem()},methods:{pageItem(){let t=[],i=(this.thisValue-2)*2+3<=this.maxVisual,e=(this.total-this.thisValue-1)*2+3<=this.maxVisual;this.total<=this.maxVisual&&(i=e=!0);let o=this.thisValue==1||this.thisValue==this.total?this.maxVisual-2:this.maxVisual-3;for(let s=0;s<this.total;s++)t.push({num:s+1,index:s,show:!1});t[0].show=!0,t[t.length-1].show=!0;let r=t.find(s=>s.num===this.thisValue).index;t[r].show=!0;for(let s=1;r+s<t.length||r-s>0;s++)r-s>0&&o>0&&(t[r-s].show=!0,o--),r+s<t.length-1&&o>0&&(t[r+s].show=!0,o--);i||t.splice(1,0,{num:-1,index:-1,show:!0}),e||t.splice(this.total-1,0,{num:-2,index:-2,show:!0}),this.itemList=t},next(){this.thisValue++,this.$emit("next-click",this.thisValue)},prev(){this.thisValue--,this.$emit("prev-click",this.thisValue)},handleClick(t){t.index>=0?this.thisValue=t.num:t.index==-1?this.thisValue=this.thisValue-this.maxVisual+2>=1?this.thisValue-this.maxVisual+2:1:t.index==-2&&(this.thisValue=this.thisValue+this.maxVisual-2<=this.total?this.thisValue+this.maxVisual-2:this.total),this.$emit("page-click",this.thisValue)}}},{props:{...A,emits:["update:modelValue","next-click","prev-click","page-click"],modelValue:{default:1},foreground:{default:"rgba(0, 90, 158, 1)"},background:{default:"transparent"},total:{default:10},maxVisual:{default:7},small:{default:!1},shadow:{default:!1},disabled:{default:!1}},emits:["update:modelValue","next-click","prev-click","page-click"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Pagination",[e.$theme]])},[n.createElementVNode("div",tg,[n.createVNode(r,{disabled:e.thisValue==1||e.isDisabled,class:n.normalizeClass([{small:t.small},"page-btn"]),theme:e.theme,background:t.background,"is-box-shadow":t.shadow,borderRadius:"3",onClick:e.prev},{default:n.withCtx(()=>[ig]),_:1},8,["disabled","class","theme","background","is-box-shadow","onClick"]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.itemList,(s,l)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[s.show?(n.openBlock(),n.createBlock(r,{key:l,class:n.normalizeClass([{small:t.small},"page-btn"]),theme:e.theme,disabled:e.isDisabled,background:t.background,foreground:e.thisValue==s.num?t.foreground:"","is-box-shadow":t.shadow,borderRadius:"3",fontWeight:"bold",onClick:a=>e.handleClick(s)},{default:n.withCtx(()=>[n.createElementVNode("p",{class:n.normalizeClass([{"ms-Icon ms-Icon--More":s.num<0}])},n.toDisplayString(s.num>=0?s.num:""),3)]),_:2},1032,["class","theme","disabled","background","foreground","is-box-shadow","onClick"])):n.createCommentVNode("",!0)],64))),256)),n.createVNode(r,{disabled:e.thisValue==t.total||e.isDisabled,class:n.normalizeClass([{small:t.small,shadow:t.shadow},"page-btn"]),theme:e.theme,background:t.background,borderRadius:"3",onClick:e.next},{default:n.withCtx(()=>[ng]),_:1},8,["disabled","class","theme","background","onClick"])])],2)}}}),vs=W(og),A1="",W1="",H1="",rg=Object.assign({name:"FvPanel",data(){return{thisValue:this.modelValue,screenWidth:window.innerWidth,timer:{widthTimer:{}}}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)}},computed:{finalWidth(){return isNaN(this.width)?this.width:this.width>this.screenWidth?`${this.screenWidth}px`:`${this.width}px`},finalHeight(){return isNaN(this.height)?this.height:this.height>this.screenHeight?`${this.screenHeight}px`:`${this.height}px`},sideName(){return this.isCentralSide?"central":this.isNearSide?"near":this.isTopSide?"top":this.isBottomSide?"bottom":"default"},transitionInName(){return this.sideName==="central"?this.thisValue?"fv-panel-scale-up-to-up":"fv-panel-scale-down-to-down":this.sideName==="near"?this.thisValue?"move-left-to-right":"move-right-to-left":this.sideName==="top"?this.thisValue?"move-top-to-bottom":"move-bottom-to-top":this.sideName==="bottom"?this.thisValue?"move-bottom-to-top":"move-top-to-bottom":this.thisValue?"move-right-to-left":"move-left-to-right"},$theme(){return z(this.$props).theme.value}},mounted(){this.screenWidthInit(),this.teleport&&this.globalAppendInit()},methods:{globalAppendInit(){this.$nextTick(()=>{const t=document.querySelector("body");t.append?t.append(this.$el):t.appendChild(this.$el)})},screenWidthInit(){this.timer.widthTimer=setInterval(()=>{this.screenWidth=window.innerWidth},30)}},beforeUnmount(){clearInterval(this.timer.widthTimer);try{document.querySelector("body").removeChild(this.$el)}catch{}}},{props:{...A,modelValue:{default:!0},title:{default:"Sample Panel"},titleSize:{default:20},titleWeight:{default:600},titleColor:{default:""},width:{default:"340"},height:{default:"100%"},background:{default:""},controlPadding:{default:"15px"},contentPadding:{default:"0px"},isNearSide:{default:!1},isBottomSide:{default:!1},isTopSide:{default:!1},isCentralSide:{default:!1},isLightDismiss:{default:!1},showTitleBar:{default:!0},isFooter:{default:!1},isAcrylic:{default:!1},teleport:{default:!1}},emits:["update:modelValue"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-button");return n.openBlock(),n.createBlock(n.Transition,{name:"fv-panel-show"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["fv-Panel",[e.$theme]])},[n.createElementVNode("div",{class:"fv-panel-back-board",onClick:o[0]||(o[0]=s=>t.isLightDismiss?e.thisValue=!1:0)}),n.createVNode(n.Transition,{name:e.transitionInName},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["fv-panel-container",[`${e.sideName}-side`,{"acrylic-style":t.isAcrylic}]]),style:n.normalizeStyle({width:e.finalWidth,height:e.finalHeight,background:t.background})},[n.withDirectives(n.createElementVNode("div",{class:"fv-panel-control-block",style:n.normalizeStyle({padding:t.controlPadding})},[n.renderSlot(e.$slots,"header",{},()=>[n.createElementVNode("p",{class:"panel-title",style:n.normalizeStyle({"font-size":`${t.titleSize}px`,"font-weight":t.titleWeight,color:t.titleColor})},n.toDisplayString(t.title),5),n.createElementVNode("i",{class:"control-btn ms-Icon ms-Icon--Cancel",onClick:o[1]||(o[1]=s=>e.thisValue=!e.thisValue)})])],4),[[n.vShow,t.showTitleBar]]),n.createElementVNode("div",{class:"fv-panel-main-container",style:n.normalizeStyle({padding:t.contentPadding})},[n.renderSlot(e.$slots,"container",{},()=>[n.createTextVNode(" Content Here ")])],4),n.withDirectives(n.createElementVNode("div",{class:"fv-panel-footer",style:n.normalizeStyle({padding:t.controlPadding})},[n.renderSlot(e.$slots,"footer",{},()=>[n.createVNode(r,{theme:"dark",background:"rgba(0, 90, 158, 1)"},{default:n.withCtx(()=>[n.createTextVNode("OK")]),_:1}),n.createVNode(r,null,{default:n.withCtx(()=>[n.createTextVNode("Cancel")]),_:1})])],4),[[n.vShow,t.isFooter]])],6),[[n.vShow,e.thisValue]])]),_:3},8,["name"])],2),[[n.vShow,e.thisValue]])]),_:3})}}}),Cs=W(rg),U1="",Y1="",j1="",sg={class:"persona-content-block"},lg=Object.assign({name:"FvPersona",data(){return{statusList:{online:{icon:"FullCircleMask",color:"rgba(107, 183, 0, 1)"},offline:{icon:"LocationFill",color:"rgba(50, 49, 48, 1)"},away:{icon:"SkypeCircleClock",color:"rgba(255, 170, 68, 1)"},busy:{icon:"LocationFill",color:"rgba(196, 49, 72, 1)"},ok:{icon:"SkypeCircleCheck",color:"rgba(107, 183, 0, 1)"},dnd:{icon:"SkypeCircleMinus",color:"rgba(197, 15, 31, 1)"},blocked:{icon:"Blocked",color:"rgba(196, 49, 32, 1)"}},colorList:["#d29200","#ffb900","#ffb900","#d83b01","#ea4300","#ff8c00","#a4262c","#d13438","#5c005c","#b4009e","#e3008c","#32145a","#5c2d91","#b4a0ff","#002050","#00188f","#0078d4","#00bcf2","#004b50","#008272","#00B294","#004b1c","#107c10","#bad80a"]}},computed:{nameCard(){return this.name[0]},nameCardBackground(){let t=0;return this.name!==""&&(t=this.name[0].charCodeAt()%this.colorList.length),this.colorList[t]},currentIcon(){return this.icon!==""?this.icon:this.status===""?"":this.statusList[this.status].icon},currentIconColor(){return this.iconColor!=""?this.iconColor:this.status===""?this.statusList.online.color:this.statusList[this.status].color},iconFontSize(){return this.size/4.8+6},titleFontSize(){return this.size/16+12.5},secondaryFontSize(){return this.size/48+11.5},showStatus(){return this.status!==""||this.icon!==""},$theme(){return z(this.$props).theme.value}}},{props:{...A,src:{default:""},name:{default:""},size:{default:40},status:{default:""},icon:{default:""},iconColor:{default:""},background:{default:""},showInfo:{default:!1}},setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-img");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Persona",[e.$theme]])},[n.createElementVNode("div",{class:"persona-avatar",style:n.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`})},[n.createElementVNode("div",{class:"persona-bg",style:n.normalizeStyle({background:t.background?t.background:e.nameCardBackground,"font-size":`${t.size/2.3}px`})},n.toDisplayString(e.nameCard),5),t.src!==""?(n.openBlock(),n.createBlock(r,{key:0,src:t.src,style:{width:"100%",height:"100%","border-radius":"50%"}},null,8,["src"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon status-icon",[`ms-Icon--${e.currentIcon}`]]),style:n.normalizeStyle({"font-size":`${e.iconFontSize}px`,color:e.currentIconColor})},null,6),[[n.vShow,e.showStatus]])],4),n.withDirectives(n.createElementVNode("div",sg,[n.createElementVNode("span",{class:"persona-title",style:n.normalizeStyle({"font-size":`${e.titleFontSize}px`})},[n.renderSlot(e.$slots,"name",{},()=>[n.createElementVNode("p",null,n.toDisplayString(t.name),1)])],4),n.createElementVNode("span",{class:"persona-secondary",style:n.normalizeStyle({"font-size":`${e.secondaryFontSize}px`})},[n.renderSlot(e.$slots,"secondary")],4)],512),[[n.vShow,t.showInfo]])],2)}}}),Vs=W(lg),q1="",K1="",J1="",ag={emits:["update:modelValue"],props:{els:{default:()=>null},sliderBoxshadow:{default:!1},background:{default:""},theme:{type:String,default:"global"}},data(){return{domLeft:0,domWidth:60,styles:{slider:{background:""}}}},watch:{left(t){this.moveInit()},width(t){this.moveInit()}},computed:{left(){let{els:t,index:i}=this.els(),e=0;for(let o=0;o<i;o++){let r=t[o];if(!r.el||!r.show)e+=0;else{let s=r.el.clientWidth;e+=s}}return e},width(){let{els:t,index:i}=this.els(),e=t[i];return e.el?e.el.clientWidth:60},$theme(){return z(this.$props).theme.value}},mounted(){this.moveInit()},methods:{moveInit(){let t=this.left-this.domLeft;t>0?this.widthExpandToRight(t):this.widthExpandToLeft(t)},widthExpandToRight(t){let i=Math.abs(t)+this.width;Z.to(this.$data,{domWidth:i,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.widthFormatToRight})},widthFormatToRight(){Z.to(this.$data,{domLeft:this.left,domWidth:this.width,duration:.2,ease:"power3.out"})},widthExpandToLeft(t){let i=Math.abs(t)+this.width;Z.to(this.$data,{domLeft:this.left,domWidth:i,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.widthFormatToLeft})},widthFormatToLeft(){Z.to(this.$data,{domWidth:this.width,duration:.2,ease:"power3.out"})}}},dg={class:"slider"};function hg(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",dg,[n.createElementVNode("span",{class:n.normalizeClass(["fv-pivot-s",[{"is-boxshadow":e.sliderBoxshadow}]]),style:n.normalizeStyle({"margin-left":`${r.domLeft}px`,width:`${r.domWidth}px`})},[n.createElementVNode("p",{style:n.normalizeStyle({background:e.background})},null,4)],6)])}const Ss=q(ag,[["render",hg]]),ug={class:"pivot-container"},cg=["onClick"],fg=Object.assign({name:"FvPivot",components:{slider:Ss},data(){return{thisItems:[],thisValue:null,styles:{slider:{background:""},container:{color:""}}}},watch:{modelValue(t){this.findCurrentValue()},items(t){this.itemsInit()},thisValue(t){this.$emit("update:modelValue",t),this.$emit("change",t)},foreground(t){this.stylesInit()},sliderBackground(t){this.stylesInit()}},computed:{itemWidth(){return t=>t.width?isNaN(t.width)?this.valueTrigger(t.width):`${t.width}px`:0},currentEls(){return()=>{let t=-1;this.thisValue?this.thisValue.key?t=this.thisItems.findIndex(e=>e.key===this.thisValue.key):t=this.thisItems.findIndex(e=>this.valueTrigger(e.name)===this.valueTrigger(this.thisValue.name)):t=0,t<0&&(t=0);let i=[];for(let e=0;e<this.thisItems.length;e++)i.push({el:this.$refs[`item_${e}`]?this.$refs[`item_${e}`][0]:null,show:this.valueTrigger(this.thisItems[e].show)});return{index:t,els:i}}},$theme(){return z(this.$props).theme.value}},updated(){(!this.thisValue||!this.valueTrigger(this.thisValue.show))&&(this.thisValue=this.thisItems.find(t=>this.valueTrigger(t.show)&&!this.valueTrigger(t.disabled)))},mounted(){this.stylesInit(),this.itemsInit()},methods:{itemsInit(){let t={name:"Pivot",width:60,show:!0,disabled:!1},i=[];for(let e of this.items){let o=JSON.parse(JSON.stringify(t));Object.assign(o,e),i.push(o)}this.thisItems=i,this.findCurrentValue()},findCurrentValue(){if(!this.modelValue){let t=this.thisItems.find(i=>this.valueTrigger(i.show)&&!this.valueTrigger(i.disabled));t?this.thisValue=t:(this.thisValue={},console.warn("No visible item in ItemList."));return}if(this.modelValue.key){let t=this.thisItems.find(i=>i.key===this.modelValue.key);t&&(this.thisValue=t);return}else if(this.valueTrigger(this.modelValue.name)){let t=this.thisItems.find(i=>this.valueTrigger(i.name)===this.valueTrigger(this.modelValue.name));t&&(this.thisValue=t)}},stylesInit(){this.styles.slider.background=this.sliderBackground,this.styles.container.color=this.foreground},itemClick(t){if(t.disabled)return 0;this.thisValue=t},eqal(t){return this.thisValue?this.thisValue.key?this.thisValue.key===t.key:this.valueTrigger(this.thisValue.name)?this.valueTrigger(this.thisValue.name)===this.valueTrigger(t.name):!1:!1},valueTrigger(t){return typeof t=="function"?t():t}}},{props:{...A,modelValue:{default:()=>null},items:{default:()=>[{name:"Pivot",width:80}]},tab:{default:!1},fontSize:{default:""},foreground:{default:""},sliderBackground:{default:""},sliderBoxshadow:{default:!1},background:{default:""}},emits:["update:modelValue","change"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Pivot",[e.$theme,t.tab?"tab":""]]),style:n.normalizeStyle({background:t.background})},[n.createElementVNode("div",ug,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.thisItems,(r,s)=>n.withDirectives((n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(["pivot-item",{choose:e.eqal(r),disabled:e.valueTrigger(r.disabled)}]),key:s,ref_for:!0,ref:`item_${s}`,style:n.normalizeStyle({width:e.itemWidth(r)}),onClick:l=>e.itemClick(r)},[n.renderSlot(e.$slots,"container",{item:r,index:s},()=>[n.createElementVNode("p",{style:n.normalizeStyle({fontSize:`${t.fontSize}px`,color:e.styles.container.color})},n.toDisplayString(e.valueTrigger(r.name)),5)])],14,cg)),[[n.vShow,e.valueTrigger(r.show)]])),128))]),e.thisItems.length>0?(n.openBlock(),n.createBlock(Ss,{key:0,els:e.currentEls,sliderBoxshadow:t.sliderBoxshadow,background:e.styles.slider.background},null,8,["els","sliderBoxshadow","background"])):n.createCommentVNode("",!0)],6))}}),$s=W(fg),Z1="",ev="",tv="",mg=Object.assign({name:"FvProgressBar",data(){return{percent:this.modelValue}},watch:{modelValue(t){this.percent=t},percent(t){this.$emit("update:modelValue",t),this.$emit("progress-change",t),t>=100&&this.$emit("progress-finished",t)}},computed:{$theme(){return z(this.$props).theme.value},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}}},{props:{...A,modelValue:{default:0},foreground:{default:""},background:{default:""},loading:{default:!1},disabled:{default:!1}},emits:["update:modelValue","progress-change","progress-finished"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-ProgressBar",[e.$theme,t.loading.toString()!="true"?"normal":"",e.isDisabled?"disabled":""]]),style:n.normalizeStyle({background:t.background})},[(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(5,r=>n.withDirectives(n.createElementVNode("p",{class:"unit",style:n.normalizeStyle({background:t.foreground}),key:r},null,4),[[n.vShow,t.loading.toString()=="true"]])),64)),n.withDirectives(n.createElementVNode("i",{style:n.normalizeStyle({width:(e.percent<=100?e.percent:100)+"%",background:t.foreground})},null,4),[[n.vShow,t.loading.toString()!="true"]])],6))}}),Es=W(mg),nv="",ov="",rv="",gg={props:{size:{default:"xs"},color:{default:""}},data(){return{styles:{p:{background:""}}}},watch:{color(t){this.stylesInit()}},computed:{$theme(){return useTheme(this.$props).theme.value}},mounted(){this.stylesInit()},methods:{stylesInit(){this.styles.p.background=this.color}}};function pg(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-progressRing-legacy",e.size])},[(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(5,l=>n.createElementVNode("p",{style:n.normalizeStyle(r.styles.p),key:l},null,4)),64))],2)}const xs=q(gg,[["render",pg]]),wg=["width","height"],bg=["r","cy","cx","stroke-width","stroke"],yg=["r","cy","cx","stroke-width","stroke","stroke-dashoffset","stroke-dasharray"],kg=Object.assign({name:"FvProgressRing",components:{legacyRing:xs},data(){return{thisValue:this.modelValue,valueCache:this.modelValue,Loading:{ratio:5,rotate:-90}}},watch:{modelValue(t){this.thisValue=t},async thisValue(t){this.$emit("update:modelValue",t),await this.syncValue()}},computed:{l(){return(2*Math.PI*(this.r-this.borderWidth)).toFixed(2)},$theme(){return z(this.$props).theme.value}},mounted(){this.loadingInit()},methods:{loadingInit(){Z.to(this.$data.Loading,{ratio:70,duration:.8,repeat:-1,yoyo:!0,ease:"linear"}),Z.to(this.$data.Loading,{rotate:270,duration:.8,repeat:-1,ease:"linear"})},async syncValue(){await new Promise(t=>{Z.to(this.$data,{valueCache:this.thisValue,duration:.8,ease:"power3.out",onComplete:()=>{t(0)}})})}}},{props:{...A,modelValue:{default:0},size:{default:"xs"},r:{default:40},loading:{default:!1},color:{default:"rgba(0, 90, 158, 1)"},background:{default:"rgba(204, 204, 204, 1)"},borderWidth:{default:8},legacy:{default:!1}},emits:["update:modelValue"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-ProgressRing",[e.$theme]]),style:n.normalizeStyle({width:`${t.r*2}px`,height:`${t.r*2}px`})},[n.withDirectives((n.openBlock(),n.createElementBlock("svg",{width:`${t.r*2}px`,height:`${t.r*2}px`,class:"svg"},[n.createElementVNode("circle",{r:t.r-t.borderWidth,cy:t.r,cx:t.r,"stroke-width":t.borderWidth,stroke:t.background,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,bg),n.createElementVNode("circle",{class:"progress-rotate",r:t.r-t.borderWidth,cy:t.r,cx:t.r,"stroke-width":t.borderWidth,stroke:t.color,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none","stroke-dashoffset":`${t.loading?e.l-e.Loading.ratio/100*e.l:e.l-e.valueCache/100*e.l}px`,"stroke-dasharray":`${e.l}px`,style:n.normalizeStyle({transform:`rotate(${t.loading?e.Loading.rotate:-90}deg)`})},null,12,yg)],8,wg)),[[n.vShow,!t.legacy]]),n.withDirectives(n.createVNode(xs,{size:t.size,color:t.color},null,8,["size","color"]),[[n.vShow,t.legacy]])],6))}}),Ts=W(kg),lv="",av="",dv="",vg=["src"],Cg=Object.assign({name:"FvRadio",computed:{$theme(){return z(this.$props).theme.value},isActived(){return this.model==this.label},isGroup(){let t=this.$parent;for(;t;)if(t.$options.name!="FvRadioGroup")t=t.$parent;else return this.setGroup(t),!0;return!1},isDisabled(){return this.isGroup?this._group.disabled||this.disabled:this.disabled},model:{get(){return this.isGroup?this._group.value:this.modelValue},set(t){this.isGroup?this._group.$emit("update:modelValue",t):this.$emit("update:modelValue",t)}}},mounted(){},methods:{click(){this.isDisabled||(this.isGroup?(this._group.$emit("update:modelValue",this.label),this._group.change(this.label)):this.$emit("update:modelValue",this.label),this.isActived&&this.$emit("actived"),this.$emit("click"))},setGroup(t){this._group=t}}},{props:{...A,modelValue:{type:[String,Number,Boolean],default:""},label:{type:[String,Number],required:!0},color:{type:String,default:""},foreground:{type:String,default:"rgba(0, 90, 158, 0.8)"},icon:{type:String,default:null},iconBlockBorderRadius:{type:Number,default:6},iconBlockBorderWidth:{type:Number,default:2},image:{type:String,default:null},activeImage:{type:String,default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","click","actived"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Radio",[e.$theme,{"with-icon":t.icon||t.image},{actived:e.isActived},{disabled:e.isDisabled}]]),onClick:o[0]||(o[0]=(...r)=>e.click&&e.click(...r)),style:n.normalizeStyle({"border-color":e.isActived?t.foreground:"","border-radius":`${t.iconBlockBorderRadius}px`,"border-width":`${t.iconBlockBorderWidth}px`})},[n.createElementVNode("input",{type:"radio",ref:"button",class:n.normalizeClass(["fv-radio-button",[{actived:e.isActived},{disabled:e.isDisabled}]]),style:n.normalizeStyle({background:e.isActived?t.foreground:""})},null,6),n.createElementVNode("label",{class:"fv-radio-label",style:n.normalizeStyle({color:t.color})},[t.image?(n.openBlock(),n.createElementBlock("img",{key:0,src:e.isActived&&t.activeImage?t.activeImage:t.image},null,8,vg)):t.icon?(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["with-icon ms-Icon","ms-Icon--"+t.icon])},null,2)):n.createCommentVNode("",!0),n.createElementVNode("span",null,[n.renderSlot(e.$slots,"default")])],4)],6))}}),Ds=W(Cg),uv="",cv="",fv="",Vg={...A},Sg={name:"FvRadioGroup",emits:["change"],props:{...Vg,modelValue:{required:!0},disabled:{type:Boolean,default:!1},label:{type:String,default:""},inline:{type:Boolean,default:!1}},data(){return{}},computed:{$theme(){return z(this.$props).theme.value}},methods:{change(t){this.$emit("change",t)}}},$g={key:0};function Eg(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-RadioGroup",[s.$theme,{inline:e.inline}]])},[e.label?(n.openBlock(),n.createElementBlock("label",$g,n.toDisplayString(e.label),1)):n.createCommentVNode("",!0),n.renderSlot(t.$slots,"default")],2)}const Is=W(q(Sg,[["render",Eg]])),gv="",pv="",wv="",xg={class:"fv-rating-container"},Tg=["onMousemove","onTouchmove","onMouseleave","onTouchend","onClick"],Dg=Object.assign({name:"FvRatingControl",data(){return{thisValue:this.modelValue,hover:[]}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t),this.$emit("change",t)},maxRate(t){this.hover=new Array(t).fill({status:!1,ratio:100})}},mounted(){this.thisValue=this.modelValue,this.hover=new Array(this.maxRate).fill({status:!1,ratio:100})},computed:{itemShow(){return t=>this.hoverIndex<0?t-this.thisValue<0:t<=this.hoverIndex},itemRatio(){return t=>this.hoverIndex<0?t+1<=parseInt(this.thisValue)?100:(this.thisValue-parseInt(this.thisValue))*100:this.hoverIndex===t?this.hover[t].ratio:100},hoverIndex(){return this.hover.findIndex(t=>t.status)},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},$theme(){return z(this.$props).theme.value}},methods:{handlerHover(t,i){if(this.isReadOnly)return;let e=t.target.offsetWidth,{left:o}=t.target.getBoundingClientRect(),{clientX:r}=t.targetTouches?t.targetTouches[0]:t,l=(r-o)/e*100>50||!this.halfRate?100:50;this.$emit("hover",{index:i,ratio:l}),this.hover[i]={status:!0,ratio:l}},handlerLeave(t){this.isReadOnly||(this.hover[t]={status:!1,ratio:100},this.$emit("leave",t))},handlerClick(t,i){if(this.isReadOnly)return;if(!this.halfRate){if(this.isClear&&this.thisValue==i+1){this.thisValue=0,this.clearHover();return}this.thisValue=i+1;return}let e=t.target.offsetWidth,{left:o}=t.target.getBoundingClientRect(),{clientX:r}=t.targetTouches?t.targetTouches[0]:t,s=(r-o)/e*100;if(this.isClear&&this.thisValue==i+1-(s>50?0:.5)){this.thisValue=0,this.clearHover();return}this.thisValue=i+1-(s>50?0:.5)},clearHover(){for(let t=0;t<this.maxRate;t++)this.hover[t]={status:!1,ratio:100}}}},{props:{...A,modelValue:{default:0},maxRate:{default:5},halfRate:{default:!1},defaultIcon:{type:String,default:"FavoriteStar"},selectedIcon:{type:String,default:"FavoriteStarFill"},borderColor:{type:String,default:""},selectedColor:{type:String,default:""},isClear:{default:!1},readonly:{default:!1}},emits:["update:modelValue","change"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-RatingControl",[e.$theme]])},[n.createElementVNode("div",xg,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.maxRate,(r,s)=>(n.openBlock(),n.createElementBlock("div",{key:s,class:"fv-rating-unit",onMousemove:l=>e.handlerHover(l,s),onTouchmove:l=>e.handlerHover(l,s),onMouseleave:l=>e.handlerLeave(s),onTouchend:l=>e.handlerLeave(s),onClick:l=>e.handlerClick(l,s)},[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon background",[`ms-Icon--${t.defaultIcon}`]]),style:n.normalizeStyle({color:t.borderColor})},null,6),n.withDirectives(n.createElementVNode("div",{class:"fv-rating-mask",style:n.normalizeStyle({width:`${e.itemRatio(s)}%`})},[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon foreground",[`ms-Icon--${t.selectedIcon}`]]),style:n.normalizeStyle({color:t.selectedColor})},null,6)],4),[[n.vShow,e.itemShow(s)]])],40,Tg))),128))])],2))}}),Bs=W(Dg),yv="",kv="",vv="",Ig=Object.assign({name:"FvResizeWatcher",data(){return{thisTarget:null,resizeObserver:null,posObserver:null,timer:null}},watch:{target(){this.thisTarget=this.valueTrigger(this.target)},thisTarget:{handler(){this.resizeWatcherInit(),this.posWatcherInit()},immediate:!0}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.init(),this.resizeWatcherInit(),this.posWatcherInit()},methods:{init(){this.timer=setInterval(()=>{if(this.thisTarget=this.valueTrigger(this.target),this.thisTarget){const{left:t,top:i,right:e,bottom:o}=this.thisTarget.getBoundingClientRect(),r=e-t,s=o-i;let l={type:"init",target:this.thisTarget,left:t,top:i,right:e,bottom:o,width:r,height:s};this.$emit("watch",l),clearInterval(this.timer)}else this.resizeWatcherInit(),this.posWatcherInit()},100)},resizeWatcherInit(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.resizeObserver=new ResizeObserver(t=>{for(let i of t){let e=i.target;const{left:o,top:r,right:s,bottom:l}=e.getBoundingClientRect(),a=s-o,d=l-r;let h={type:"resize",target:e,entry:i,width:a,height:d,left:o,top:r,right:s,bottom:l};this.$emit("watch",h),this.$emit("watch-resize",h)}}),this.thisTarget&&this.resizeObserver.observe(this.thisTarget)},posWatcherInit(){this.posObserver&&(this.posObserver.disconnect(),this.posObserver=null),this.posObserver=new MutationObserver(t=>{for(let i of t){const{left:e,top:o,right:r,bottom:s}=i.target.getBoundingClientRect(),l=r-e,a=s-o;let d={type:"position",target:i.target,entry:i,left:e,top:o,right:r,bottom:s,width:l,height:a};this.$emit("watch",d),this.$emit("watch-pos",d)}}),this.thisTarget&&this.posObserver.observe(this.thisTarget,{attributes:!0})},valueTrigger(t){return typeof t=="function"?t():t}},beforeUnmount(){clearInterval(this.timer)}},{props:{...A,target:{default:null}},emits:["watch","watch-resize","watch-pos"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-ResizeWatcher",[e.$theme]])},null,2))}}),Ns=W(Ig),Vv="",Sv="",$v="",Bg={width:"100%",height:"100%",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Ng=["r","id","gradientTransform"],Lg=["stop-color"],Fg={key:1,offset:"1","stop-color":"rgba(255, 255, 255, 0)"},Mg=["offset","stop-color"],Pg=["r","id","gradientTransform"],Rg=["stop-color"],_g={key:1,offset:"1","stop-color":"rgba(255, 255, 255, 0)"},zg=["offset","stop-color"],Og=["r","id","gradientTransform"],Ag=n.createElementVNode("stop",{offset:"0","stop-color":"rgba(255, 255, 255, 0)"},null,-1),Wg=["stop-color"],Hg=n.createElementVNode("stop",{offset:"0.66","stop-color":"rgba(255, 255, 255, 0)"},null,-1),Gg=n.createElementVNode("stop",{offset:"1","stop-color":"rgba(255, 255, 255, 0)"},null,-1),Ug=["x","y","rx","ry"],Yg=["x","y","rx","ry"],jg=Object.assign({name:"FvRevealContainer",beforeMount(){this.revealCache=Fn()},data(){return{id:this.GuidWithoutDash(),offset:{left:0,top:0,right:0,bottom:0},disEl:{x:0,y:0},inside:!1,wave:0,clickDown:!1,revealCache:null,timer:{wave:null}}},watch:{inside(t){t||this.leaveEvent(null)}},computed:{$theme(){return z(this.$props).theme.value},borderMatrix(){const{left:t,top:i,right:e,bottom:o}=this.offset;let r=e-t,s=o-i;return`matrix(${[1,0,0,1,(this.disEl.x-r/2).toFixed(3),(this.disEl.y-s/2).toFixed(3)].join(" ")})`},computedBorderRadius(){let t=this.offset.right-this.offset.left,i=this.offset.bottom-this.offset.top,e=t>i?i:t;return e==0?this.borderRadius:this.borderRadius>e/2?e/2:this.borderRadius},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}},mounted(){this.disEl.y=window.innerHeight,this.disEl.x=window.innerWidth,this.mouseMoveInit(),this.mouseClickInit()},methods:{mouseMoveInit(){if(this.revealContainer===!1){if(this.revealCache.setRevealHandler({id:this.id,moveHandler:this.moveEvent,leaveHandler:this.leaveEvent}),window.$FvRevealContainer)return;window.$FvRevealContainer=!0,window.removeEventListener("mousemove",this.globalMoveEventListener),window.addEventListener("mousemove",this.globalMoveEventListener),window.removeEventListener("touchmove",this.globalMoveEventListener),window.addEventListener("touchmove",this.globalMoveEventListener),window.removeEventListener("mouseleave",this.globalLeaveEventListener),window.addEventListener("mouseleave",this.globalLeaveEventListener)}else{if(this.revealContainer.revealHandlerList.push({id:this.id,moveHandler:this.moveEvent,downHandler:this.downEvent,upHandler:this.upEvent,leaveHandler:this.leaveEvent}),this.revealContainer.init)return;this.revealContainer.init=!0,this.revealContainer.el().removeEventListener("mousemove",this.globalMoveEventListener),this.revealContainer.el().addEventListener("mousemove",this.globalMoveEventListener),this.revealContainer.el().removeEventListener("touchmove",this.globalMoveEventListener),this.revealContainer.el().addEventListener("touchmove",this.globalMoveEventListener),this.revealContainer.el().removeEventListener("mouseleave",this.globalLeaveEventListener),this.revealContainer.el().addEventListener("mouseleave",this.globalLeaveEventListener)}},mouseClickInit(){this.parent?(this.parent().removeEventListener("mousedown",this.downEvent),this.parent().addEventListener("mousedown",this.downEvent),this.parent().removeEventListener("touchstart",this.downEvent),this.parent().addEventListener("touchstart",this.downEvent),this.parent().removeEventListener("mouseup",this.upEvent),this.parent().addEventListener("mouseup",this.upEvent),this.parent().removeEventListener("touchend",this.leaveEvent),this.parent().addEventListener("touchend",this.leaveEvent)):(this.$el.removeEventListener("mousedown",this.downEvent),this.$el.addEventListener("mousedown",this.downEvent),this.$el.removeEventListener("touchstart",this.downEvent),this.$el.addEventListener("touchstart",this.downEvent),this.$el.removeEventListener("mouseup",this.upEvent),this.$el.addEventListener("mouseup",this.upEvent),this.$el.removeEventListener("touchend",this.leaveEvent),this.$el.addEventListener("touchend",this.leaveEvent))},globalMoveEventListener(t){if(this.revealContainer===!1)for(let i of this.revealCache.revealHandlerList)i.moveHandler&&i.moveHandler(t);else for(let i of this.revealContainer.revealHandlerList)i.moveHandler&&i.moveHandler(t)},globalLeaveEventListener(t){if(this.revealContainer===!1)for(let i of this.revealCache.revealHandlerList)i.leaveHandler&&i.leaveHandler(t);else for(let i of this.revealContainer.revealHandlerList)i.leaveHandler&&i.leaveHandler(t)},moveEvent(t){if(this.isDisabled||!this.inVisual())return;t.type.indexOf("mouse")<0&&(t=t.targetTouches[0]);const{left:i,top:e}=this.getOffset(this.$el);let o=t.pageX-i-window.scrollX,r=t.pageY-e-window.scrollY,s=this.distanceOfElement(this.$el,t.clientX,t.clientY);s.left>this.debounceDistance||s.top>this.debounceDistance||s.right>this.debounceDistance||s.bottom>this.debounceDistance||(this.disEl.x=o,this.disEl.y=r,this.inside=this.moveInsideElement(this.$el,t.clientX,t.clientY))},downEvent(t){if(this.isDisabled||!this.clickInsideElement(t))return;t.type.indexOf("mouse")<0&&(t=t.targetTouches[0]);const{left:i,top:e}=this.getOffset(this.$el);let o=t.pageX-i-window.scrollX,r=t.pageY-e-window.scrollY;this.disEl.x=o,this.disEl.y=r,this.wave=120,this.inside=!0,this.clickDown=!0,clearInterval(this.timer.wave),this.timer.wave=setInterval(()=>{try{let s=this.wave,l=s/60+1;s+=l,s>=1e3?clearInterval(this.timer.wave):this.wave=s}catch{}},50)},upEvent(t){this.wave=0,this.clickDown=!1,clearInterval(this.timer.wave)},leaveEvent(t){this.wave=0,this.disEl.x=window.innerWidth,this.disEl.y=window.innerHeight,this.inside=!1,clearInterval(this.timer.wave)},getOffset(t){const{left:i,top:e,right:o,bottom:r}=t.getBoundingClientRect();return this.offset.left=i,this.offset.top=e,this.offset.right=o,this.offset.bottom=r,{left:i,top:e,right:o,bottom:r}},moveInsideElement(t,i,e){const{left:o,top:r,right:s,bottom:l}=t.getBoundingClientRect();return i>=o&&i<=s&&e>=r&&e<=l},distanceOfElement(t,i,e){const{left:o,top:r,right:s,bottom:l}=t.getBoundingClientRect();return{left:o-i,right:i-s,top:r-e,bottom:e-l}},clickInsideElement(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}if(this.parent&&i==this.parent()){e=!0;break}i=i.parentNode}return e},inVisual(){const{left:t,top:i,right:e,bottom:o}=this.$el.getBoundingClientRect(),r=e-t,s=o-i,l=window.innerWidth,a=window.innerHeight;let d=!1,h=!1;return o>=0&&o<=a+s&&(h=!0),e>=0&&e<=l+r&&(d=!0),d&&h},GuidWithoutDash(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()},valueTrigger(t){return typeof t=="function"?t():t}},beforeUnmount(){if(this.revealContainer===!1)this.revealCache.removeRevealHandler(this.id);else{let t=this.revealContainer.revealHandlerList.findIndex(i=>i.id==this.id);t>-1&&this.revealContainer.revealHandlerList.splice(t,1)}this.parent&&this.parent()&&(this.parent().removeEventListener("mousedown",this.downEvent),this.parent().removeEventListener("touchstart",this.downEvent),this.parent().removeEventListener("mouseup",this.upEvent))}},{props:{...A,revealContainer:{default:!1},parent:{default:null},borderWidth:{default:1},borderRadius:{default:6},backgroundColor:{default:"rgba(121, 119, 117, 0.6)"},backgroundGradientList:{default:()=>[]},backgroundGradientSize:{default:120},borderColor:{default:"rgba(121, 119, 117, 0.6)"},borderGradientList:{default:()=>[]},borderGradientSize:{default:60},debounceDistance:{default:300},disabled:{default:!1}},emits:["click"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-RevealContainer",[e.$theme]]),style:n.normalizeStyle({"border-radius":`${e.computedBorderRadius}px`}),onClick:o[0]||(o[0]=r=>{r.preventDefault(),e.isDisabled||e.$emit("click",r)})},[n.withDirectives((n.openBlock(),n.createElementBlock("svg",Bg,[n.createTextVNode(" > "),n.createElementVNode("defs",null,[n.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:t.backgroundGradientSize,gradientUnits:"userSpaceOnUse",spreadMethod:"pad",id:`backgroundG_${e.id}`,gradientTransform:e.borderMatrix},[t.backgroundGradientList.length==0?(n.openBlock(),n.createElementBlock("stop",{key:0,offset:"0","stop-color":t.backgroundColor},null,8,Lg)):n.createCommentVNode("",!0),t.backgroundGradientList.length==0?(n.openBlock(),n.createElementBlock("stop",Fg)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.backgroundGradientList,(r,s)=>(n.openBlock(),n.createElementBlock("stop",{offset:1/t.backgroundGradientList.length*s,"stop-color":r,key:`bg:${s}`},null,8,Mg))),128))],8,Ng),n.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:t.borderGradientSize,gradientUnits:"userSpaceOnUse",spreadMethod:"pad",id:`borderG_${e.id}`,gradientTransform:e.borderMatrix},[t.borderGradientList.length==0?(n.openBlock(),n.createElementBlock("stop",{key:0,offset:"0","stop-color":t.borderColor},null,8,Rg)):n.createCommentVNode("",!0),t.borderGradientList.length==0?(n.openBlock(),n.createElementBlock("stop",_g)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.borderGradientList,(r,s)=>(n.openBlock(),n.createElementBlock("stop",{offset:1/t.borderGradientList.length*s,"stop-color":r,key:`border:${s}`},null,8,zg))),128))],8,Pg),n.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:e.wave,gradientUnits:"userSpaceOnUse",spreadMethod:"pad",id:`clickG_${e.id}`,gradientTransform:e.borderMatrix},[Ag,n.createElementVNode("stop",{offset:"0.33","stop-color":t.backgroundColor},null,8,Wg),Hg,Gg],8,Og)]),n.createElementVNode("rect",{x:t.borderWidth/2,y:t.borderWidth/2,rx:e.computedBorderRadius,ry:e.computedBorderRadius,style:n.normalizeStyle([{"box-sizing":"border-box"},{width:`${e.offset.right-e.offset.left-t.borderWidth}px`,height:`${e.offset.bottom-e.offset.top-t.borderWidth}px`,stroke:`url(#borderG_${e.id})`,fill:e.inside?`url(#backgroundG_${e.id})`:"transparent","stroke-width":t.borderWidth}])},null,12,Ug),n.withDirectives(n.createElementVNode("rect",{x:t.borderWidth/2,y:t.borderWidth/2,rx:e.computedBorderRadius,ry:e.computedBorderRadius,style:n.normalizeStyle([{stroke:"transparent","box-sizing":"border-box"},{width:`${e.offset.right-e.offset.left-t.borderWidth}px`,height:`${e.offset.bottom-e.offset.top-t.borderWidth}px`,fill:e.inside?`url(#clickG_${e.id})`:"transparent","stroke-width":t.borderWidth}])},null,12,Yg),[[n.vShow,e.clickDown]])],512)),[[n.vShow,e.offset.right-e.offset.left>0]])],6))}}),Ls=W(jg),xv="",Tv="",Dv="",Xg={class:"right-menu-list"},qg=n.createElementVNode("span",null,[n.createElementVNode("p",null,"Selected")],-1),Kg=Object.assign({name:"FvRightMenu",data(){return{thisValue:this.modelValue,posX:0,posY:0,rightMenuHeight:0}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.globalAppendInit(),this.rightMenuClearInit(),this.resizeInit()},methods:{globalAppendInit(){this.$nextTick(()=>{const t=document.querySelector("body");t.append?t.append(this.$el):t.appendChild(this.$el)})},rightMenuClearInit(){window.addEventListener("click",t=>{let i=t.target;i&&i!==this.$el&&(this.thisValue=!1)})},resizeInit(){new ResizeObserver(()=>{this.$el&&this.$el.clientHeight>0&&(this.rightMenuHeight=this.$el.clientHeight,this.$emit("update-height",this.rightMenuHeight))}).observe(this.$el)},rightClick(t,i){t.preventDefault(),this.thisValue=!0;let e=i.getBoundingClientRect(),o={};o.x=t.x,o.y=t.y,o.x<e.left&&(o.x=e.left),o.x+this.rightMenuWidth>e.right&&(o.x=e.right-this.rightMenuWidth),o.y<e.top&&(o.y=e.top),o.y+this.rightMenuHeight>e.bottom&&(o.y=e.bottom-this.rightMenuHeight),this.posX=o.x,this.posY=o.y}}},{props:{...A,modelValue:{default:!1},rightMenuWidth:{default:200},background:{default:""},fullExpandAnimation:{default:!1}},emits:["update:modelValue","update-height"],setup(t,{expose:i,emit:e}){const{proxy:o}=n.getCurrentInstance();return i({rightClick:(...r)=>o.rightClick(...r)}),(r,s)=>(n.openBlock(),n.createBlock(n.Transition,{name:t.fullExpandAnimation?"fv-rightMenu-full-zoom-in-top":"fv-rightMenu-zoom-in-top"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["fv-RightMenu",[r.$theme]]),style:n.normalizeStyle({left:r.posX+"px",top:r.posY+"px",width:t.rightMenuWidth+"px",background:t.background})},[n.createElementVNode("div",Xg,[n.renderSlot(r.$slots,"default",{},()=>[qg])])],6),[[n.vShow,r.thisValue]])]),_:3},8,["name"]))}}),Fs=W(Kg),Bv="",Nv="",Lv="",Jg={key:0},Qg=n.createElementVNode("p",null,"Scroll Story",-1),Zg=Object.assign({name:"FvScrollStory",data(){return{show:!1,bounding:1/0,event:()=>{this.refreshBounding()},timer:{}}},watch:{show(t){this.$emit("show-changed",t)}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.timerInit()},methods:{timerInit(){clearInterval(this.timer),this.timer=setInterval(()=>{this.refreshBounding()},30)},refreshBounding(){this.bounding=this.$el.getBoundingClientRect(),this.bounding.top<window.innerHeight&&(this.show=!0),this.bounding.top>window.innerHeight&&this.infinite&&(this.show=!1),this.bounding.bottom<100&&this.overCollapse&&(this.show=!1)}},beforeUnmount(){clearInterval(this.timer)}},{props:{...A,name:{default:""},overCollapse:{default:!1},infinite:{default:!1},trueRender:{default:!1}},emits:["show-changed"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-ScrollStory",[e.$theme]])},[n.createVNode(n.Transition,{name:t.name},{default:n.withCtx(()=>[!t.trueRender||e.show?n.withDirectives((n.openBlock(),n.createElementBlock("div",Jg,[n.renderSlot(e.$slots,"default",{},()=>[Qg])],512)),[[n.vShow,e.show]]):n.createCommentVNode("",!0)]),_:3},8,["name"])],2))}}),Ms=W(Zg),Mv="",Pv="",Rv="",ep={class:"search-box-placeholder"},tp={class:"search-box-container"},ip=["type","placeholder","readonly","disabled","maxlength"],np={class:"search-result-container",ref:"filterResult"},op=Object.assign({name:"FvSearchBox",data(){return{thisValue:this.modelValue,isFocus:!1,filterOptions:this.options,show:{searchResult:!1},timer:{debounce:null}}},watch:{modelValue(t){this.thisValue=t},thisValue(t){clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{this.$emit("debounce-input",this.thisValue)},this.debounceDelay),this.$emit("update:modelValue",t),this.refreshFilter()},isFocus(t){t&&this.focusShow&&(this.show.searchResult=!0)}},computed:{thisBorderColor(){return this.isUnderline?this.isFocus?{borderBottomColor:this.focusBorderColor}:{borderBottomColor:this.borderColor}:this.isFocus?{borderColor:this.focusBorderColor}:{borderColor:this.borderColor}},isUnderline(){return this.underline.toString()=="true"||this.underline=="underline"||this.underline===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},borderLightColor(){return this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return z(this.$props).theme.value}},mounted(){this.lazyLoadInit(),this.outSideClickInit()},methods:{lazyLoadInit(){this.$SUtility.ScrollToLoadInit(this.$refs.filterResult,()=>{this.$emit("lazyload",this.filterOptions)})},outSideClickInit(){window.addEventListener("click",this.outSideClickEvent)},outSideClickEvent(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}i=i.parentNode}e||(this.show.searchResult=!1)},refreshFilter(){let t=[];if(this.customFilter!==!1)t=this.customFilter(this.options);else for(let i of this.options)i.name.toString().toLowerCase().indexOf(this.thisValue.toLowerCase())>-1&&t.push(i);this.filterOptions=t},chooseResult(t){this.thisValue=t.item.name,this.$emit("choose-result",t.item),this.show.searchResult=!1},onBackspace(){if(this.thisValue===""&&this.resultPlaceholder.length>0){let t=this.resultPlaceholder;t.splice(t.length-1,1),this.$emit("update:resultPlaceholder",t)}},clearValue(){this.thisValue="",this.$emit("update:resultPlaceholder",[]),this.$emit("clear-click")}},mounted(){this.lazyLoadInit(),this.outSideClickInit()},methods:{lazyLoadInit(){this.$SUtility.ScrollToLoadInit(this.$refs.filterResult,()=>{this.$emit("lazyload",this.filterOptions)})},outSideClickInit(){window.addEventListener("click",t=>{let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}i=i.parentNode}e||(this.show.searchResult=!1)})},refreshFilter(){let t=[];if(this.customFilter!==!1)t=this.customFilter(this.options);else for(let i of this.options)i.name.toString().toLowerCase().indexOf(this.thisValue.toLowerCase())>-1&&t.push(i);this.filterOptions=t},chooseResult(t){this.thisValue=t.item.name,this.$emit("choose-result",t.item),this.show.searchResult=!1},onBackspace(){if(this.thisValue===""&&this.resultPlaceholder.length>0){let t=this.resultPlaceholder;t.splice(t.length-1,1),this.$emit("update:resultPlaceholder",t)}},clearValue(){this.thisValue="",this.$emit("update:resultPlaceholder",[]),this.$emit("clear-click")}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent)}},{props:{...A,modelValue:{default:""},options:{default:()=>[]},placeholder:{default:""},type:{default:"text"},readonly:{default:!1},maxlength:{default:""},customFilter:{default:!1},resultPlaceholder:{default:!1},focusShow:{default:!1},leftIcon:{default:""},icon:{default:""},underline:{default:!1},background:{default:""},borderWidth:{default:1},borderColor:{default:""},focusBorderColor:{default:""},foreground:{default:""},fontSize:{default:13.3},fontWeight:{default:"normal"},textAlign:{default:"left"},borderRadius:{default:3},isBoxShadow:{default:!1},revealBorder:{default:!1},status:{default:""},debounceDelay:{default:300},disabled:{default:!1}},emits:["update:modelValue","debounce-input","choose-result","lazyload","clear-click","left-icon-click","icon-click","keydown","keyup","change","paste"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-reveal-container"),s=n.resolveComponent("fv-list-view");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-SearchBox",[e.$theme,t.status,e.isFocus?"focus":"",e.isDisabled?"disabled":"",e.isUnderline?"underline":"",{shadow:t.isBoxShadow}]]),style:n.normalizeStyle([{background:t.background,borderRadius:`${t.borderRadius}px`}]),onKeydown:o[11]||(o[11]=l=>e.show.searchResult=!0),onKeyup:o[12]||(o[12]=n.withKeys((...l)=>e.onBackspace&&e.onBackspace(...l),["delete"])),onClick:o[13]||(o[13]=l=>e.isFocus=!0)},[n.createVNode(r,{parent:()=>e.$el,class:"fv-search-box-reveal-container",backgroundColor:e.backgroundLightColor,borderColor:e.borderLightColor,backgroundGradientSize:120,borderGradientSize:60,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:e.isDisabled||!t.revealBorder},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),n.createElementVNode("div",{class:"search-box-wrapper-container",style:n.normalizeStyle([e.thisBorderColor,{background:t.background,borderRadius:`${t.borderRadius}px`,borderWidth:`${t.borderWidth}px`}])},[n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${t.leftIcon}`]]),onClick:o[0]||(o[0]=l=>e.$emit("left-icon-click",l))},null,2),[[n.vShow,t.leftIcon!=""]]),n.createVNode(n.Transition,{name:"move-left-to-right"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",ep,[n.renderSlot(e.$slots,"resultPlaceholder",{resultPlaceholder:t.resultPlaceholder})],512),[[n.vShow,t.resultPlaceholder.length>0]])]),_:3}),n.createElementVNode("div",tp,[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":o[1]||(o[1]=l=>e.thisValue=l),type:t.type,placeholder:t.placeholder,class:"input",readonly:e.isReadOnly,disabled:e.isDisabled,maxlength:t.maxlength,ref:"input",style:n.normalizeStyle({"font-size":`${t.fontSize}px`,"font-weight":t.fontWeight,color:t.foreground,"text-align":t.textAlign}),onKeydown:o[2]||(o[2]=l=>e.$emit("keydown",l)),onKeyup:o[3]||(o[3]=l=>e.$emit("keyup",l)),onChange:o[4]||(o[4]=l=>e.$emit("change",l)),onPaste:o[5]||(o[5]=l=>e.$emit("paste",l)),onFocus:o[6]||(o[6]=l=>e.isFocus=!0),onBlur:o[7]||(o[7]=l=>e.isFocus=!1)},null,44,ip),[[n.vModelDynamic,e.thisValue]])]),n.withDirectives(n.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel icon-block",onClick:o[8]||(o[8]=(...l)=>e.clearValue&&e.clearValue(...l))},null,512),[[n.vShow,e.thisValue.length>0||t.resultPlaceholder.length>0]]),n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${t.icon}`]]),onClick:o[9]||(o[9]=l=>e.$emit("icon-click",l))},null,2),[[n.vShow,t.icon!=""]])],4),n.createVNode(n.Transition,{name:"zoom-in-top"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",np,[n.renderSlot(e.$slots,"searchResult",{data:e.filterOptions,chooseResult:e.chooseResult},()=>[n.createVNode(s,{modelValue:e.filterOptions,"onUpdate:modelValue":o[10]||(o[10]=l=>e.filterOptions=l),theme:e.theme,style:{width:"100%",height:"auto"},onChooseItem:e.chooseResult},null,8,["modelValue","theme","onChooseItem"])])],512),[[n.vShow,e.show.searchResult]])]),_:3})],38)}}}),Ps=W(op),zv="",Ov="",Av="",rp=n.createElementVNode("div",{class:"sample",style:{"background-image":"inherit"}},null,-1),sp=Object.assign({name:"FvShimmer",data(){return{gradientSize:80,x:0,y:0,timer:{}}},computed:{$theme(){return z(this.$props).theme.value},backgroundLightColor(){return this.$theme=="light"?"rgba(121, 119, 117, 0.1)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.1)":"rgba(121, 119, 117, 0.1)"}},mounted(){this.moveInit(),this.timer=setInterval(()=>{this.childrenInit()},30)},methods:{moveInit(){this.gradientSize=this.$el.clientWidth/1.6,this.x=-this.gradientSize,this.y=this.$el.clientHeight/2,Z.to(this.$data,{x:this.$el.clientWidth+this.gradientSize+100,duration:2,delay:0,repeat:-1,ease:"power3.in"})},childrenInit(){try{this.$refs.shimmer.querySelectorAll("*").forEach(i=>{i.getAttribute("style").indexOf("background-image")<0&&i.setAttribute("style",`${i.getAttribute("style")} background-image: inherit;`)})}catch{}}},beforeUnmount(){clearInterval(this.timer)}},{props:{...A},setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Shimmer",[e.$theme]])},[n.createElementVNode("div",{class:"shimmer-container",ref:"shimmer",style:n.normalizeStyle({"background-image":`radial-gradient(circle ${e.gradientSize}px at ${e.x}px ${e.y}px, ${e.backgroundLightColor}, rgba(255,255,255,0))`})},[n.renderSlot(e.$slots,"default",{},()=>[rp])],4)],2))}}),Rs=W(sp),Hv="",Gv="",Uv="",lp=["title"],ap={class:"fv-slider-unit-container"},dp=Object.assign({name:"FvSlider",data(){return{progress:this.getValue(this.modelValue),moveable:!1,mouseDownPos:{disX:0,disY:0},currentLeft:0,currentTop:0,freezeTransition:!1,btnEl:{width:0,height:0},barEl:{width:0,height:0}}},computed:{$theme(){return z(this.$props).theme.value},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},isShowLabel(){return this.showLabel.toString()=="true"||this.showLabel===""},finalLeft(){return this.vertical?-7.5:this.currentLeft<0?0:this.currentLeft>this.barEl.width-this.btnEl.width?this.barEl.width-this.btnEl.width:this.currentLeft},finalTop(){return this.vertical?this.currentTop<0?0:this.currentTop>this.barEl.height-this.btnEl.height?this.barEl.height-this.btnEl.height:this.currentTop:-7.5},scaleList(){if(!this.scale)return[];let t=[],i=0,e=this.maxinum-this.mininum;for(;i<=e;)t.push({ratio:i/e}),i+=this.scale;return t},unitList(){let t=[],i=0,e=this.maxinum-this.mininum;for(;i<=e;)t.push({ratio:i/e,value:this.mininum+i}),i+=this.unit;return t}},watch:{modelValue(t){this.progress=this.getValue(t),this.moveable||this.setPos()},progress(t){this.$emit("update:modelValue",t),this.$emit("change",t)},finalLeft(){this.moveable&&(this.progress=this.setProgress())},finalTop(){this.moveable&&(this.progress=this.setProgress(!0))}},mounted(){this.Init(),this.resizeInit()},methods:{Init(){window.addEventListener("mousemove",t=>{this.moveable&&(this.currentLeft=t.clientX-this.mouseDownPos.disX,this.currentTop=t.clientY-this.mouseDownPos.disY)}),window.addEventListener("touchmove",t=>{t=t.targetTouches[0],this.moveable&&(this.currentLeft=t.clientX-this.mouseDownPos.disX,this.currentTop=t.clientY-this.mouseDownPos.disY)}),window.addEventListener("mouseup",t=>{this.moveable&&this.stop()}),window.addEventListener("touchup",t=>{this.moveable&&this.stop()})},resizeInit(){new ResizeObserver(()=>{this.$refs.btn&&(this.btnEl.width=this.$refs.btn.clientWidth,this.btnEl.height=this.$refs.btn.clientHeight,this.setPos())}).observe(this.$refs.btn),new ResizeObserver(()=>{this.$refs.bar&&(this.barEl.width=this.$refs.bar.clientWidth,this.barEl.height=this.$refs.bar.clientHeight,this.setPos())}).observe(this.$refs.bar)},forward(t){if(this.isDisabled)return;this.moveable=!0,this.freezeTransition=!0,t.preventDefault();let{clientX:i,clientY:e}=t.targetTouches?t.targetTouches[0]:t;this.mouseDownPos.disX=i-this.$refs.btn.offsetLeft,this.mouseDownPos.disY=e-this.$refs.btn.offsetTop},correctPos(){this.$refs.btn.offsetLeft<-this.$refs.btn.clientWidth/2&&(this.currentLeft=0),this.$refs.btn.offsetTop<-this.$refs.btn.clientHeight/2&&(this.currentTop=0),this.$refs.btn.offsetLeft+this.$refs.btn.clientWidth>this.$refs.bar.clientWidth&&(this.currentLeft=this.$refs.bar.clientWidth-this.$refs.btn.clientWidth),this.$refs.btn.offsetTop+this.$refs.btn.clientHeight>this.$refs.bar.clientHeight&&(this.currentTop=this.$refs.bar.clientHeight-this.$refs.btn.clientHeight);for(let t=0;t<this.unitList.length;t++){let i=this.currentLeft/(this.barEl.width-this.btnEl.width),e=this.unitList[t].ratio,o=this.unitList[t+1]?this.unitList[t+1].ratio:1;if(i>=e&&i<=o){i-e<o-i?this.currentLeft=e*(this.barEl.width-this.btnEl.width):this.currentLeft=o*(this.barEl.width-this.btnEl.width),this.vertical||(this.progress=this.setProgress());break}}for(let t=0;t<this.unitList.length;t++){let i=this.currentTop/(this.barEl.height-this.btnEl.height),e=this.unitList[t].ratio,o=this.unitList[t+1]?this.unitList[t+1].ratio:1;if(i>=e&&i<=o){i-e<o-i?this.currentTop=e*(this.barEl.height-this.btnEl.height):this.currentTop=o*(this.barEl.height-this.btnEl.height),this.vertical&&(this.progress=this.setProgress(!0));break}}},stop(){this.isDisabled||(this.moveable=!1,this.freezeTransition=!1,this.correctPos(),this.$emit("click",this.progress),setTimeout(()=>{this.freezeTransition=!0},300))},getValue(t){return t<this.mininum?t=this.mininum:t>this.maxinum&&(t=this.maxinum),t=parseFloat(t).toFixed(0),t},setPos(){!this.btnEl.width||!this.barEl.width||(this.vertical?this.currentTop=this.progress/(this.maxinum-this.mininum)*(this.barEl.height-this.btnEl.height):this.currentLeft=this.progress/(this.maxinum-this.mininum)*(this.barEl.width-this.btnEl.width))},setProgress(t=!1){if(!t){let e=this.finalLeft/(this.barEl.width-this.btnEl.width);return e=e*(this.maxinum-this.mininum)+this.mininum,e.toFixed(0)}let i=this.finalTop/(this.barEl.height-this.btnEl.height);return i=i*(this.maxinum-this.mininum)+this.mininum,i.toFixed(0)}}},{props:{...A,disabled:{type:Boolean,default:!1},modelValue:{type:[String,Number],default:0},unit:{type:Number,default:1},maxinum:{type:Number,default:100},mininum:{type:Number,default:0},icon:{type:String,default:"CircleFill"},vertical:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!1},scale:{type:[Boolean,Number],default:!1},color:{default:""},background:{default:""},iconWrapperBackground:{default:""}},setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Slider",[e.$theme,{vertical:t.vertical}]]),ref:"slider"},[n.createElementVNode("div",{class:"fv-slider-main",ref:"bar",style:n.normalizeStyle({background:e.progress>=100?t.color:t.background?t.background:""})},[n.createElementVNode("div",{ref:"btn",class:"fv-slider-ring-container",style:n.normalizeStyle({left:e.finalLeft+"px",top:e.finalTop+"px",background:t.iconWrapperBackground}),onMousedown:o[0]||(o[0]=(...r)=>e.forward&&e.forward(...r)),onMouseup:o[1]||(o[1]=(...r)=>e.stop&&e.stop(...r)),onTouchstart:o[2]||(o[2]=(...r)=>e.forward&&e.forward(...r)),onTouchend:o[3]||(o[3]=(...r)=>e.stop&&e.stop(...r))},[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon fv-slider-ring-icon",[`ms-Icon--${t.icon}`]]),style:n.normalizeStyle({color:t.color})},null,6)],36),n.createElementVNode("div",{class:"fv-slider-loaded",style:n.normalizeStyle({width:t.vertical?"":e.finalLeft+e.btnEl.width/2+"px",height:t.vertical?e.finalTop+e.btnEl.height/2+"px":"",background:t.color})},null,4),n.withDirectives(n.createElementVNode("div",{class:"fv-slider-label",title:e.progress,style:n.normalizeStyle({left:t.vertical?"":e.finalLeft-20+e.btnEl.width/2+"px",top:t.vertical?e.finalTop-14+e.btnEl.height/2+"px":""})},[n.renderSlot(e.$slots,"default",{modelValue:e.progress},()=>[n.createElementVNode("p",null,n.toDisplayString(e.progress),1)])],12,lp),[[n.vShow,e.isShowLabel&&e.moveable]]),n.createElementVNode("div",ap,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.scaleList,(r,s)=>(n.openBlock(),n.createElementBlock("i",{key:`top: ${s}`,class:"fv-slider-unit-item first",style:n.normalizeStyle({left:t.vertical?"":`calc(${r.ratio*(e.barEl.width-e.btnEl.width)+e.btnEl.width/2}px)`,top:t.vertical?`calc(${r.ratio*(e.barEl.height-e.btnEl.height)+e.btnEl.height/2}px)`:""})},null,4))),128)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.scaleList,(r,s)=>(n.openBlock(),n.createElementBlock("i",{key:`bottom: ${s}`,class:"fv-slider-unit-item second",style:n.normalizeStyle({left:t.vertical?"":`calc(${r.ratio*(e.barEl.width-e.btnEl.width)+e.btnEl.width/2}px)`,top:t.vertical?`calc(${r.ratio*(e.barEl.height-e.btnEl.height)+e.btnEl.height/2}px)`:""})},null,4))),128))])],4)],2))}}),_s=W(dp),jv="",Xv="",qv="",hp={class:"fv-swiper-container swiper-container",ref:"container"},up={class:"swiper-wrapper",ref:"wrapper"},cp={class:"fv-SwipeControl-left swiper-slide"},fp=["onClick"],mp={class:"fv-SwipeControl-right swiper-slide"},gp=["onClick"],pp=Object.assign({name:"FvSwipeControl",data(){return{status:"normal",triggerType:"auto",swiper:null,swiperProgress:0,slidesProgress:[],thisLeftOptions:this.leftOptions,thisOptions:this.options}},watch:{value(){this.triggerType="auto",this.swiper.slideTo(1,300,!1),this.status="normal"},status(t){this.$emit("status-change",t)},isDisabled(t){t?this.swiper.disabled():this.swiper.enable()}},computed:{computedProgress(){return t=>this.slidesProgress[t]},computedWidth(){return t=>this.swiper?this.swiper.width*t:0},opWidth(){let t=this.computedWidth(.3);return t<this.minOpWidth?t=this.minOpWidth:t>this.maxOpWidth&&(t=this.maxOpWidth),t},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return z(this.$props).theme.value}},mounted(){this.init(),this.isDisabled?this.swiper.disable():this.swiper.enable()},methods:{init(){this.swiper=new oe(this.$refs.container,{initialSlide:1,slidesPerView:1,longSwipesRatio:2,shortSwipes:!1,watchSlidesProgress:!0,on:{touchStart:t=>{this.triggerType="manual"},touchMove:(t,i)=>{this.refreshProgress(t)},touchEnd:(t,i)=>{this.refreshProgress(t)},transitionStart:t=>{if(this.triggerType==="auto")return;let i=this.slidesProgress[1];this.status!="normal"&&i>=-.5&&i<.5?(this.status="normal",this.swiper.slideTo(1,300,!1)):i<-.1&&i>=-.5?this.disabledLeft?(this.status="normal",this.swiper.slideTo(1,300,!1)):(this.swiper.setTransition(300),this.swiper.setTranslate(-this.computedWidth(.7)),this.status="left"):i<-.5?this.disabledLeftFull?this.swiper.slideTo(1,300,!1):(this.swiper.slidePrev(),this.status="leftFull"):i>.1&&i<=.5?this.disabledRight?(this.status="normal",this.swiper.slideTo(1,300,!1)):(this.swiper.setTransition(300),this.swiper.setTranslate(-this.computedWidth(1.3)),this.status="right"):i>.5&&(this.disabledRightFull?this.swiper.slideTo(1,300,!1):(this.swiper.slideNext(),this.status="rightFull"))},transitionEnd:(t,i)=>{this.triggerType="auto",this.refreshProgress(t),this.status=="rightFull"?this.callFunc(this.thisOptions[this.thisOptions.length-1]):this.status=="leftFull"&&this.callFunc(this.thisLeftOptions[this.thisLeftOptions.length-1])}}})},refreshProgress(t){this.swiperProgress=t.progress;let i=[];for(let e=0;e<t.slides.length;e++)i.push(t.slides[e].progress);this.slidesProgress=i},callFunc(t){this.valueTrigger(t.disabled)||t.func&&t.func(this.value)},valueTrigger(t){return typeof t=="function"?t():t}}},{props:{...A,value:{default:()=>({})},minOpWidth:{default:60},maxOpWidth:{default:300},leftOptions:{default:()=>[]},options:{default:()=>[{icon:"Delete",func:()=>{},type:"delete"}]},itemPadding:{default:"0 10px"},disabledLeft:{default:!0},disabledRight:{default:!1},disabledLeftFull:{default:!0},disabledRightFull:{default:!1},disabled:{default:!1}},emits:["status-change"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-SwipeControl",[e.$theme]])},[n.createElementVNode("div",hp,[n.createElementVNode("div",up,[n.createElementVNode("div",cp,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.leftOptions,(r,s)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-SwipeControl-btn",[e.valueTrigger(r.type)]]),key:s,style:n.normalizeStyle({width:s===t.leftOptions.length-1?"":`${e.opWidth/t.leftOptions.length}px`}),onClick:l=>e.callFunc(r)},[n.createElementVNode("div",{class:"fv-SwipeControl-btn-content-block",style:n.normalizeStyle({width:`${e.opWidth/t.leftOptions.length}px`})},[n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon",[`ms-Icon--${e.valueTrigger(r.icon)}`]])},null,2),[[n.vShow,e.valueTrigger(r.icon)]]),n.withDirectives(n.createElementVNode("p",{style:{"margin-left":"5px"}},n.toDisplayString(e.valueTrigger(r.text)),513),[[n.vShow,e.valueTrigger(r.text)]])],4)],14,fp))),128))]),n.createElementVNode("div",{class:"fv-SwipeControl-main swiper-slide",style:n.normalizeStyle({padding:t.itemPadding})},[n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode(" Swipe Control ")])],4),n.createElementVNode("div",mp,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.thisOptions,(r,s)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-SwipeControl-btn",[e.valueTrigger(r.type)]]),key:s,style:n.normalizeStyle({width:s===e.thisOptions.length-1?"":`${e.opWidth/e.thisOptions.length}px`}),onClick:l=>e.callFunc(r)},[n.createElementVNode("div",{class:"fv-SwipeControl-btn-content-block",style:n.normalizeStyle({width:`${e.opWidth/e.thisOptions.length}px`})},[n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon",[`ms-Icon--${e.valueTrigger(r.icon)}`]])},null,2),[[n.vShow,e.valueTrigger(r.icon)]]),n.withDirectives(n.createElementVNode("p",{style:{"margin-left":"5px"}},n.toDisplayString(e.valueTrigger(r.text)),513),[[n.vShow,e.valueTrigger(r.text)]])],4)],14,gp))),128))])],512)],512)],2))}}),zs=W(pp),Jv="",Qv="",Zv="",wp={props:{modelValue:{type:Object,default:()=>({})},row:{type:Object,default:()=>({})},row_index:{type:Number,default:0},i18n:{type:Function,default:t=>t},selectPos:{type:Object,default:()=>({})},foreground:{default:""},extensions:{default:()=>[]},dragItem:{default:null},theme:{type:String,default:"system"}},data(){return{dragDown:!1,dropMode:!1}},watch:{row(){this.formatRow()}},computed:{fixedLeftWidth(){let t=[],i=0;return this.modelValue.heads.forEach(e=>{t.push(i),e.fixed&&!e.fixedSide&&(i+=e.width)}),t},fixedRightWidth(){let t=[],i=0;return this.modelValue.heads.forEach(e=>{t.push(i),e.fixed&&e.fixedSide&&(i+=e.width)}),t},choosenBackground(){try{let t=kt(this.foreground);return t=t.alpha(.2),t.cssa()}catch{return""}},computedRowStyles(){return this.row.choosen?{background:this.choosenBackground}:{}},computedCellComponent(){return t=>{let i=this.extensions.find(e=>e.type===t);return i?i.cellComponent:null}}},mounted(){this.formatRow()},methods:{formatRow(){let t={choosen:!1};for(let i in t)this.row[i]||(this.row[i]=t[i]);return t},handleRowDrag(t,i){t.stopPropagation(),this.$emit("update-drag-item",i)},handleDragEnd(){this.dragDown=!1},rightClick(t){let i=!this.row.choosen;this.row.choosen=!0,this.$emit("rightclick",{event:t,row:this.row,row_index:this.row_index,clearChoosenAll:i})},dragOver(t){if(t.preventDefault(),t.stopPropagation(),this.dragItem===this.row)return;const{clientY:i}=t,{top:e,height:o}=this.$el.getBoundingClientRect();i-e<o/2?this.dropMode=!0:this.dropMode=!1},dragLeave(t){t.preventDefault(),t.stopPropagation(),this.dropMode=!1},dropItem(t){t.preventDefault(),t.stopPropagation(),this.dropMode&&this.dragItem&&this.$emit("drop-item",{drop:this.modelValue,drag:this.dragItem}),this.dropMode=!1}}},bp=["draggable"],yp={class:"fv-tableview-quick-tool"};function kp(t,i,e,o,r,s){const l=n.resolveComponent("fv-check-box");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-tableview-data-row",[{choosen:e.row.choosen}]]),draggable:r.dragDown,onDragover:i[6]||(i[6]=(...a)=>s.dragOver&&s.dragOver(...a)),onDragleave:i[7]||(i[7]=(...a)=>s.dragLeave&&s.dragLeave(...a)),onDrop:i[8]||(i[8]=(...a)=>s.dropItem&&s.dropItem(...a)),onDragstart:i[9]||(i[9]=a=>s.handleRowDrag(a,e.row)),onDragend:i[10]||(i[10]=(...a)=>s.handleDragEnd&&s.handleDragEnd(...a)),onContextmenu:i[11]||(i[11]=a=>s.rightClick(a))},[n.createElementVNode("div",yp,[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Add fv-tableview-icon-block fade",onClick:i[0]||(i[0]=a=>t.$emit("add-row"))}),n.createElementVNode("i",{class:"ms-Icon ms-Icon--GripperDotsVertical fv-tableview-icon-block fade",onClick:i[1]||(i[1]=a=>s.rightClick(a)),onMousedown:i[2]||(i[2]=a=>r.dragDown=!0)},null,32)]),n.createElementVNode("p",{class:n.normalizeClass(["onDrop",[{show:r.dropMode}]]),style:n.normalizeStyle({background:r.dropMode?e.foreground:""})},null,6),n.createElementVNode("div",{class:"fv-tableview-cell-item check-box",style:n.normalizeStyle([s.computedRowStyles])},[n.createVNode(l,{modelValue:e.row.choosen,"onUpdate:modelValue":i[3]||(i[3]=a=>e.row.choosen=a),background:e.foreground,theme:e.theme},null,8,["modelValue","background","theme"])],4),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.modelValue.heads,(a,d)=>n.withDirectives((n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.computedCellComponent(a.type)),{modelValue:e.row,head:a,key:d,i18n:e.i18n,selectPos:e.selectPos,foreground:e.foreground,row_index:e.row_index,col_index:d,fixedLeftWidth:s.fixedLeftWidth[d],fixedRightWidth:s.fixedRightWidth[d],theme:e.theme,style:n.normalizeStyle([s.computedRowStyles]),onDropItem:i[4]||(i[4]=h=>t.$emit("drop-item",h)),onSetSelect:i[5]||(i[5]=h=>t.$emit("set-select",h))},null,40,["modelValue","head","i18n","selectPos","foreground","row_index","col_index","fixedLeftWidth","fixedRightWidth","theme","style"])),[[n.vShow,a.visible]])),128)),n.createElementVNode("div",{class:"fv-tableview-cell-item op-tools",style:n.normalizeStyle([s.computedRowStyles])},null,4)],42,bp)}const Os=q(wp,[["render",kp]]),vp={props:{extensions:{default:()=>[]},i18n:{type:Function,default:t=>t},foreground:{default:"rgba(0, 90, 158, 1)"},theme:{default:"light"}},data(){return{filterValue:""}},computed:{computedIcon(){return t=>{let i=this.extensions.find(e=>e.type===t.type);return i?i.icon:"Cancel"}},isShow(){return t=>this.filterValue?t.name.toLowerCase().includes(this.filterValue.toLowerCase()):!0}},methods:{}},Cp={class:"fv-tableview-addmenu"},Vp=["onClick"],Sp={class:"addmenu-left-block"},$p=n.createElementVNode("div",{class:"addmenu-right-block"},[n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"})],-1);function Ep(t,i,e,o,r,s){const l=n.resolveComponent("fv-text-box");return n.openBlock(),n.createElementBlock("div",Cp,[n.createElementVNode("div",{class:"addmenu-title-block",onClick:i[0]||(i[0]=a=>a.stopPropagation())},n.toDisplayString(e.i18n("New Property")),1),n.createElementVNode("div",{style:{position:"relative",padding:"0px 10px"},onClick:i[2]||(i[2]=a=>a.stopPropagation())},[n.createVNode(l,{modelValue:r.filterValue,"onUpdate:modelValue":i[1]||(i[1]=a=>r.filterValue=a),placeholder:e.i18n("Search Property"),theme:e.theme,underline:"",icon:"Filter",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":e.foreground,"border-width":2,"is-box-shadow":!0,style:{width:"100%",height:"35px","margin-bottom":"5px"}},null,8,["modelValue","placeholder","theme","background","focus-border-color"])]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.extensions,(a,d)=>n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:d,ref_for:!0,ref:`item-${d}`,onClick:h=>t.$emit("add-column",a)},[n.createElementVNode("div",Sp,[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon",[`ms-Icon--${s.computedIcon(a)}`]]),style:{"margin-left":"5px"}},null,2),n.createElementVNode("p",null,n.toDisplayString(a.name),1)]),$p],8,Vp)),[[n.vShow,s.isShow(a)]])),128))])}const As=q(vp,[["render",Ep]]),xp={props:{modelValue:{type:Object,default:()=>({})},heads:{type:Array,default:()=>[]},extensions:{default:()=>[]},i18n:{type:Function,default:t=>t},foreground:{default:"rgba(0, 90, 158, 1)"},theme:{default:"light"}},data(){return{dropHead:null,dragDown:!1,dragItem:null}},computed:{computedProperty(){return t=>this.extensions.find(e=>e.type===t.type)},computedIcon(){return t=>{let i=this.extensions.find(e=>e.type===t.type);return i?i.icon:"Cancel"}},dropBackground(){try{let t=kt(this.foreground);return t=t.alpha(.2),t.cssa()}catch{return""}}},methods:{handleRowDrag(t,i){t.stopPropagation(),this.dragItem=i},handleDragEnd(){this.dragDown=!1},dragOver(t,i){t.preventDefault(),t.stopPropagation();let e=this.heads[i],o=this.$refs[`item-${i}`][0];if(this.dragItem===e)return;const{clientY:r}=t,{top:s,height:l}=o.getBoundingClientRect();r-s<l/2?this.dropHead=e:this.dropHead=null},dragLeave(t){t.preventDefault(),t.stopPropagation(),this.dropHead=null},dropItem(t,i){t.preventDefault(),t.stopPropagation(),this.sortHeads(i,this.dragItem),this.dropHead=null},sortHeads(t,i){let e=this.heads.findIndex(s=>s===i),o=this.heads[e];this.heads.splice(e,1);let r=this.heads.findIndex(s=>s===t);this.heads.splice(r,0,o)},switchVisible(t){let i=!t.visible;t.visible=i}}},Tp={class:"fv-tableview-addmenu"},Dp={class:"addmenu-title-block"},Ip=["draggable","onDragover","onDrop","onDragstart"],Bp={class:"addmenu-left-block"},Np={class:"addmenu-right-block"},Lp=["onClick"],Fp=n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"},null,-1),Mp=n.createElementVNode("hr",null,null,-1),Pp=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Add"},null,-1);function Rp(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",Tp,[n.createElementVNode("div",Dp,n.toDisplayString(e.i18n("Properties")),1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.heads,(l,a)=>(n.openBlock(),n.createElementBlock("span",{key:a,ref_for:!0,ref:`item-${a}`,onClick:i[1]||(i[1]=d=>d.stopPropagation()),draggable:r.dragDown,onDragover:d=>s.dragOver(d,a),onDragleave:i[2]||(i[2]=(...d)=>s.dragLeave&&s.dragLeave(...d)),onDrop:d=>s.dropItem(d,l),onDragstart:d=>s.handleRowDrag(d,l),onDragend:i[3]||(i[3]=(...d)=>s.handleDragEnd&&s.handleDragEnd(...d))},[n.createElementVNode("i",{class:"onDrop",style:n.normalizeStyle({background:r.dropHead===l?s.dropBackground:""})},null,4),n.createElementVNode("div",Bp,[n.createElementVNode("i",{class:"ms-Icon ms-Icon--GripperDotsVertical",onMousedown:i[0]||(i[0]=d=>r.dragDown=!0)},null,32),n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon",[`ms-Icon--${s.computedIcon(l)}`]]),style:{"margin-left":"5px"}},null,2),n.createElementVNode("p",null,n.toDisplayString(l.name),1)]),n.createElementVNode("div",Np,[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${l.visible?"View":"Hide"}`]]),onClick:d=>s.switchVisible(l)},null,10,Lp),Fp])],40,Ip))),128)),Mp,n.createElementVNode("span",{onClick:i[4]||(i[4]=l=>{t.$emit("add-click"),l.stopPropagation()})},[Pp,n.createElementVNode("p",null,n.toDisplayString(e.i18n("New Property")),1)])])}const Ws=q(xp,[["render",Rp]]),_p={emits:["mousemove","mouseup","touchstart","touchmove","touchend","mousedown","mouseup"],props:{theme:{type:String,default:"system"}},data(){return{moveable:!1}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.Init()},methods:{Init(){window.addEventListener("mousemove",t=>{this.moveable&&this.$emit("mousemove",t)}),window.addEventListener("mouseup",t=>{this.moveable&&this.stop()}),window.addEventListener("touchmove",t=>{this.moveable&&this.$emit("touchmove",t)}),window.addEventListener("touchend",t=>{this.moveable&&this.stop()})},forward(t){t.preventDefault(),this.moveable=!0,t.type==="mousedown"?this.$emit("mousedown",t):this.$emit("touchstart",t)},stop(t){this.moveable=!1,t&&(t.type==="mouseup"?this.$emit("mouseup",t):this.$emit("touchend",t))}}},zp=[n.createElementVNode("i",null,null,-1)];function Op(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",{class:"fv-tableview-spliter",onMousedown:i[0]||(i[0]=(...l)=>s.forward&&s.forward(...l)),onMouseup:i[1]||(i[1]=(...l)=>s.stop&&s.stop(...l)),onTouchstart:i[2]||(i[2]=(...l)=>s.forward&&s.forward(...l)),onTouchend:i[3]||(i[3]=(...l)=>s.stop&&s.stop(...l))},zp,32)}const Hs=q(_p,[["render",Op]]),Ap={emits:["update:modelValue"],props:{modelValue:{default:!1},el:{default:()=>document.body},wrapperWidth:{default:"300px"},isUnder:{default:!1}},data(){return{thisValue:this.modelValue}},watch:{modelValue(){this.thisValue=this.modelValue},thisValue(){this.$emit("update:modelValue",this.thisValue)}},methods:{}};function Wp(t,i,e,o,r,s){const l=n.resolveComponent("fv-Affix");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{draggable:"false",class:"fv-tableview-edit-wrapper-background",onClick:i[1]||(i[1]=a=>{r.thisValue=!1,a.stopPropagation()}),onMousemove:i[2]||(i[2]=a=>a.preventDefault())},[n.createVNode(l,{target:e.el,left:"0",top:e.isUnder?"100%":0,mode:r.thisValue?"fixed":"relative"},{default:n.withCtx(()=>[n.createVNode(n.Transition,{name:"fv-tableview-edit-wrapper"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{draggable:"false",class:"fv-tableview-edit-wrapper-container",style:n.normalizeStyle({width:e.wrapperWidth}),onClick:i[0]||(i[0]=a=>a.stopPropagation())},[n.renderSlot(t.$slots,"default")],4),[[n.vShow,r.thisValue]])]),_:3})]),_:3},8,["target","top","mode"])],544)),[[n.vShow,r.thisValue]])}const Di=q(Ap,[["render",Wp]]),Hp={style:{"margin-left":"5px"}},Gp={style:{"margin-left":"5px"}},Up={class:"fv-tableview-default-edittool-row",style:{"margin-top":"10px"}},Yp={class:"fv-tableview-icon-block"},jp=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Equalizer"},null,-1),Xp={class:"row-title"},qp={class:"fv-tableview-default-edittool-row",style:{margin:"10px 0px"}},Kp=n.createElementVNode("hr",null,null,-1),Jp={class:"fv-tableview-default-edittool-row lighter"},Qp=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Ascending"},null,-1),Zp={class:"row-title"},ew={class:"fv-tableview-default-edittool-row lighter"},tw=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Descending"},null,-1),iw={class:"row-title"},nw={class:"fv-tableview-default-edittool-row lighter"},ow=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Filter"},null,-1),rw={class:"row-title"},sw=n.createElementVNode("hr",null,null,-1),lw=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Hide"},null,-1),aw={class:"row-title"},dw={class:"row-title"},hw={class:"fv-tableview-default-edittool-row",style:{"margin-bottom":"10px"}},uw={class:"row-title"},cw=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Copy"},null,-1),fw={class:"row-title"},mw=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Delete"},null,-1),gw={class:"row-title"},pw=n.createElementVNode("hr",null,null,-1),ww={class:"fv-tableview-default-edittool-row",style:{"margin-bottom":"10px"}},bw={class:"row-title"},Gs=Object.assign({name:"FvTableViewHeadBase",components:{spliter:Hs,editWrapper:Di},data(){return{mouseDownPos:{disX:0},dropMode:!1,thisKeyValue:this.modelValue.key,show:{edit:!1,editKey:!1}}},watch:{modelValue(){this.formatHead(),this.thisKeyValue=this.modelValue.key},"show.edit"(t){t&&this.$nextTick(()=>{this.$refs.text&&this.$refs.text.focus()}),this.show.editKey=!1,this.$emit("show-edit",t)}},mounted(){this.formatHead()},methods:{formatHead(){if(this.formatFunction)this.formatFunction(this.modelValue);else{let t={key:"text",name:"",emoji:"\u{1F4C4}",type:"text",typeName:"Text",minWidth:60,width:100,fixed:!1,fixedSide:!1,wrap:!1,visible:!0};for(let i in t)this.modelValue[i]||(this.modelValue[i]=t[i]);this.modelValue.__guid||(this.modelValue.__guid=this.GuidWithoutDash())}},switchHide(){this.show.edit=!1;let t=!this.modelValue.visible;this.modelValue.visible=t},switchFixed(){this.show.edit=!1;let t=!this.modelValue.fixed;this.modelValue.fixed=t},deleteColumn(){this.show.edit=!1,this.$emit("delete-column",this.modelValue)},resizeDown(t){this.mouseDownPos.disX=t.clientX},resizeMove(t){let i=t.clientX-this.mouseDownPos.disX;this.mouseDownPos.disX=t.clientX;let e=this.modelValue.width+i;e=e<this.modelValue.minWidth?this.modelValue.minWidth:e,this.modelValue.width=e},dragOver(t){if(t.preventDefault(),t.stopPropagation(),this.dragItem===this.modelValue)return;const{clientX:i}=t,{left:e,width:o}=this.$el.getBoundingClientRect();i-e<o/2?this.dropMode=!0:this.dropMode=!1},dragLeave(t){t.preventDefault(),t.stopPropagation(),this.dropMode=!1},dropItem(t){t.preventDefault(),t.stopPropagation(),this.dropMode&&this.dragItem&&this.$emit("drop-item",{drop:this.modelValue,drag:this.dragItem}),this.dropMode=!1},switchEditKey(){this.show.editKey?this.saveEditKey():(this.show.editKey=!0,this.$nextTick(()=>{this.$refs.keyName.focus()}))},saveEditKey(){!this.thisKeyValue||(this.modelValue.key=this.thisKeyValue,this.show.editKey=!1)},GuidWithoutDash(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()}}},{props:{...A,modelValue:{type:Object,default:()=>({})},index:{type:Number,default:0},i18n:{type:Function,default:t=>t},foreground:{default:""},dragItem:{type:Object,default:null},fixedLeftWidth:{default:0},fixedRightWidth:{default:0},wrapperWidth:{default:"220px"},formatFunction:{default:null},isUnder:{type:Boolean,default:!1}},emits:["show-edit","delete-column","duplicate-column","drop-item"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-text-box"),s=n.resolveComponent("fv-toggle-switch");return t.modelValue.__guid?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["fv-tableview-head-item",[{onDrop:e.dropMode,fixed:t.modelValue.fixed}]]),onDragover:o[16]||(o[16]=(...l)=>e.dragOver&&e.dragOver(...l)),onDragleave:o[17]||(o[17]=(...l)=>e.dragLeave&&e.dragLeave(...l)),onDrop:o[18]||(o[18]=(...l)=>e.dropItem&&e.dropItem(...l)),style:n.normalizeStyle({left:t.modelValue.fixed&&!t.modelValue.fixedSide?t.fixedLeftWidth+"px":"",right:t.modelValue.fixed&&t.modelValue.fixedSide?t.fixedRightWidth+"px":"",width:t.modelValue.width+"px","border-color":e.dropMode?t.foreground:"","z-index":e.show.edit?6:""})},[n.createElementVNode("div",{class:"fv-tableview-head-content",onClick:o[0]||(o[0]=l=>e.show.edit=!0),onContextmenu:o[1]||(o[1]=l=>{l.preventDefault(),e.show.edit=!0})},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("p",Hp,n.toDisplayString(t.modelValue.emoji),1),n.createElementVNode("p",Gp,n.toDisplayString(t.modelValue.name),1)])],32),n.createVNode(Hs,{style:{height:"100%"},onMousedown:o[2]||(o[2]=l=>e.resizeDown(l)),onMousemove:o[3]||(o[3]=l=>e.resizeMove(l)),onTouchstart:o[4]||(o[4]=l=>e.resizeDown(l.targetTouches[0])),onTouchmove:o[5]||(o[5]=l=>e.resizeMove(l.targetTouches[0]))}),n.createVNode(Di,{modelValue:e.show.edit,"onUpdate:modelValue":o[15]||(o[15]=l=>e.show.edit=l),el:()=>e.$el,wrapperWidth:t.wrapperWidth,isUnder:t.isUnder},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"entire",{modelValue:t.modelValue,show:e.show.edit},()=>[n.createElementVNode("div",Up,[n.createElementVNode("p",Yp,n.toDisplayString(t.modelValue.emoji),1),n.createVNode(r,{modelValue:t.modelValue.name,"onUpdate:modelValue":o[6]||(o[6]=l=>t.modelValue.name=l),placeholder:t.i18n("Column Name"),theme:e.theme,underline:"",ref:"text",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":t.foreground,borderWidth:"2","is-box-shadow":"true",style:{"margin-left":"5px"}},null,8,["modelValue","placeholder","theme","background","focus-border-color"])]),n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",style:{"margin-top":"5px"},onClick:o[7]||(o[7]=(...l)=>e.switchEditKey&&e.switchEditKey(...l))},[jp,n.createElementVNode("p",Xp,n.toDisplayString(e.show.editKey?t.i18n("Save Property Key"):t.i18n("Edit Property Key")),1)]),n.withDirectives(n.createElementVNode("div",qp,[n.createVNode(r,{modelValue:e.thisKeyValue,"onUpdate:modelValue":o[8]||(o[8]=l=>e.thisKeyValue=l),placeholder:t.i18n("Key Name")+" "+t.i18n("(Press Enter to Confirm)"),ref:"keyName","left-icon":"Link",underline:"","border-color":e.thisKeyValue?"rgba(120, 120, 120, 0.1)":"rgba(200, 38, 45, 1)","focus-border-color":e.thisKeyValue?t.foreground:"rgba(200, 38, 45, 1)","border-width":2,"is-box-shadow":!0,style:{width:"10px",height:"35px",flex:"1"},onKeydown:n.withKeys(e.saveEditKey,["enter"])},null,8,["modelValue","placeholder","border-color","focus-border-color","onKeydown"])],512),[[n.vShow,e.show.editKey]]),n.renderSlot(e.$slots,"menu"),Kp,n.createElementVNode("div",Jp,[Qp,n.createElementVNode("p",Zp,n.toDisplayString(t.i18n("Sort Ascending")),1)]),n.createElementVNode("div",ew,[tw,n.createElementVNode("p",iw,n.toDisplayString(t.i18n("Sort Descending")),1)]),n.createElementVNode("div",nw,[ow,n.createElementVNode("p",rw,n.toDisplayString(t.i18n("Filter")),1)]),sw,n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",onClick:o[9]||(o[9]=(...l)=>e.switchHide&&e.switchHide(...l))},[lw,n.createElementVNode("p",aw,n.toDisplayString(t.i18n("Hide in View")),1)]),n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",onClick:o[10]||(o[10]=(...l)=>e.switchFixed&&e.switchFixed(...l))},[n.createElementVNode("i",{class:n.normalizeClass(["row-icon ms-Icon",[`ms-Icon--${t.modelValue.fixed?"Unpin":"Pin"}`]])},null,2),n.createElementVNode("p",dw,n.toDisplayString(t.modelValue.fixed?t.i18n("Unfixed Column"):t.i18n("Fixed Column")),1)]),n.withDirectives(n.createElementVNode("div",hw,[n.createElementVNode("p",uw,n.toDisplayString(t.i18n("Fixed Side")),1),n.createVNode(s,{modelValue:t.modelValue.fixedSide,"onUpdate:modelValue":o[11]||(o[11]=l=>t.modelValue.fixedSide=l),on:t.i18n("Right"),off:t.i18n("Left"),insideContent:!0,switchOnBackground:t.foreground,width:"60",style:{"margin-left":"15px"}},null,8,["modelValue","on","off","switchOnBackground"])],512),[[n.vShow,t.modelValue.fixed]]),n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",onClick:o[12]||(o[12]=l=>{e.show.edit=!1,e.$emit("duplicate-column",t.index)})},[cw,n.createElementVNode("p",fw,n.toDisplayString(t.i18n("Duplicate Column")),1)]),n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",onClick:o[13]||(o[13]=(...l)=>e.deleteColumn&&e.deleteColumn(...l))},[mw,n.createElementVNode("p",gw,n.toDisplayString(t.i18n("Delete Column")),1)]),pw,n.createElementVNode("div",ww,[n.createElementVNode("p",bw,n.toDisplayString(t.i18n("Wrap Column")),1),n.createVNode(s,{modelValue:t.modelValue.wrap,"onUpdate:modelValue":o[14]||(o[14]=l=>t.modelValue.wrap=l),on:t.i18n("Yes"),off:t.i18n("No"),insideContent:!0,switchOnBackground:t.foreground,width:"60",style:{"margin-left":"15px"}},null,8,["modelValue","on","off","switchOnBackground"])])])]),_:3},8,["modelValue","el","wrapperWidth","isUnder"])],38)):n.createCommentVNode("",!0)}}}),yw={class:"fv-tableview-default-content"},Us=Object.assign({name:"FvTableViewCellBase",components:{editWrapper:Di},data(){return{show:{edit:!1}}},watch:{modelValue(){this.formatCell()},"head.key"(){this.formatCell()},"show.edit"(t){t&&this.$nextTick(()=>{this.$refs.text&&this.$refs.text.focus()}),this.$emit("show-edit",t)}},computed:{isSelected(){let t=-1,i=-1,e=-1,o=-1;return this.selectPos.start_row>this.selectPos.end_row?(t=this.selectPos.end_row,i=this.selectPos.start_row):(t=this.selectPos.start_row,i=this.selectPos.end_row),this.selectPos.start_col>this.selectPos.end_col?(e=this.selectPos.end_col,o=this.selectPos.start_col):(e=this.selectPos.start_col,o=this.selectPos.end_col),t<=this.row_index&&i>=this.row_index&&e<=this.col_index&&o>=this.col_index},isFirstSelected(){return this.selectPos.start_row===this.row_index&&this.selectPos.start_col===this.col_index},selectBackground(){try{let t=kt(this.foreground);return t=t.alpha(.1),t.cssa()}catch{return""}},outlineColor(){try{let t=kt(this.foreground);return t=t.alpha(.6),t.cssa()}catch{return""}},computedBackground(){return this.isSelected?this.selectBackground:""}},mounted(){this.formatCell()},methods:{formatCell(){if(this.formatFunction)this.formatFunction(this.modelValue,this.head);else{let t={};t[this.head.key]="";for(let i in t)this.modelValue[i]||(this.modelValue[i]=t[i]);this.modelValue.__guid||(this.modelValue.__guid=this.GuidWithoutDash())}},clickFunc(){this.show.edit=!0},mouseFunc(t,i="down"){t.preventDefault(),this.$emit("set-select",{event_type:i,row_index:this.row_index,col_index:this.col_index})},GuidWithoutDash(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()}}},{props:{...A,modelValue:{type:Object,default:()=>({})},head:{type:Object,default:()=>({})},i18n:{type:Function,default:t=>t},selectPos:{type:Object,default:()=>({})},foreground:{default:""},fixedLeftWidth:{default:0},fixedRightWidth:{default:0},wrapperWidth:{default:"220px"},formatFunction:{type:Function,default:null},row_index:{type:Number,default:0},col_index:{type:Number,default:0},isUnder:{type:Boolean,default:!1}},emits:["show-edit","set-select","drop-item"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-text-box");return t.head.__guid?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["fv-tableview-cell-item",[{wrappable:t.head.wrap,fixed:t.head.fixed,selected:e.isSelected,"first-selected":e.isFirstSelected}]]),style:n.normalizeStyle({left:t.head.fixed&&!t.head.fixedSide?t.fixedLeftWidth+"px":"",right:t.head.fixed&&t.head.fixedSide?t.fixedRightWidth+"px":"",width:t.head.width+"px","z-index":e.show.edit||e.isFirstSelected?5:"",background:e.computedBackground,"outline-color":e.outlineColor})},[n.createElementVNode("div",{class:"fv-tableview-cell-content",onMousedown:o[0]||(o[0]=s=>e.mouseFunc(s,"down")),onMouseenter:o[1]||(o[1]=s=>e.mouseFunc(s,"enter")),onClick:o[2]||(o[2]=(...s)=>e.clickFunc&&e.clickFunc(...s))},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("p",yw,n.toDisplayString(t.modelValue[t.head.key]),1)])],32),n.withDirectives(n.createElementVNode("p",{class:"fv-tableview-cell-sync-btn",style:n.normalizeStyle({"border-color":e.outlineColor}),onMousedown:o[3]||(o[3]=s=>e.mouseFunc(s,"sync-down"))},null,36),[[n.vShow,e.isFirstSelected]]),n.createVNode(Di,{modelValue:e.show.edit,"onUpdate:modelValue":o[5]||(o[5]=s=>e.show.edit=s),el:()=>e.$el,wrapperWidth:t.wrapperWidth,isUnder:t.isUnder},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"entire",{modelValue:t.modelValue,show:e.show.edit},()=>[n.createVNode(r,{modelValue:t.modelValue[t.head.key],"onUpdate:modelValue":o[4]||(o[4]=s=>t.modelValue[t.head.key]=s),theme:e.theme,underline:"",ref:"text",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":t.foreground,borderWidth:"2","is-box-shadow":"true",style:{width:"100%"}},null,8,["modelValue","theme","background","focus-border-color"])])]),_:3},8,["modelValue","el","wrapperWidth","isUnder"])],6)):n.createCommentVNode("",!0)}}}),kw={props:{modelValue:{type:Object,default:()=>({})},index:{type:Number,default:0},i18n:{type:Function,default:t=>t},foreground:{default:""},dragItem:{type:Object,default:null},fixedLeftWidth:{default:0},fixedRightWidth:{default:0},theme:{type:String,default:"system"}},data(){return{showAsList:[{key:"number",text:"Number",icon:"NumberField"},{key:"bar",text:"Bar",icon:"ChromeMinimizeContrast"},{key:"ring",text:"Ring",icon:"ProgressRingDots"}],currentColors:[],currentFormats:[],colorList:[{name:"gray",color:"#787774"},{name:"purple",color:"#958DF1"},{name:"pink",color:"#f58eda"},{name:"red",color:"#F98181"},{name:"orange",color:"#FBBC88"},{name:"yellow",color:"#FAF594"},{name:"blue",color:"#4086cb"},{name:"teal",color:"#94FADB"},{name:"green",color:"#B9F18D"},{name:"rose",color:"#ee7686"}],numberFormatList:[{key:"Number",text:"Number"},{key:"Number with commas",text:"Number with commas"},{key:"Percent",text:"Percent"},{key:"US Dollar",text:"US Dollar"},{key:"Australian dollar",text:"Australian dollar"},{key:"Canadian dollar",text:"Canadian dollar"},{key:"Singapore dollar",text:"Singapore dollar"},{key:"Euro",text:"Euro"},{key:"Pound",text:"Pound"},{key:"Yen",text:"Yen"},{key:"Ruble",text:"Ruble"},{key:"Rupee",text:"Rupee"},{key:"Won",text:"Won"},{key:"Yuan",text:"Yuan"},{key:"Real",text:"Real"},{key:"Lira",text:"Lira"},{key:"Rupiah",text:"Rupiah"},{key:"Franc",text:"Franc"},{key:"Hong Kong dollar",text:"Hong Kong dollar"},{key:"New Zealand dollar",text:"New Zealand dollar"},{key:"Krona",text:"Krona"},{key:"Norwegian krone",text:"Norwegian krone"},{key:"Mexican peso",text:"Mexican peso"},{key:"Rand",text:"Rand"},{key:"New Taiwan dollar",text:"New Taiwan dollar"},{key:"Danish krone",text:"Danish krone"},{key:"Z\u0142oty",text:"Z\u0142oty"},{key:"Baht",text:"Baht"},{key:"Forint",text:"Forint"},{key:"Koruna",text:"Koruna"},{key:"Shekel",text:"Shekel"},{key:"Chilean peso",text:"Chilean peso"},{key:"Philippine peso",text:"Philippine peso"},{key:"Dirham",text:"Dirham"},{key:"Colombian peso",text:"Colombian peso"},{key:"Riyal",text:"Riyal"},{key:"Ringgit",text:"Ringgit"},{key:"Leu",text:"Leu"},{key:"Argentine peso",text:"Argentine peso"},{key:"Uruguayan peso",text:"Uruguayan peso"},{key:"Peruvian sol",text:"Peruvian sol"}]}},watch:{"modelValue.showColor"(){this.colorInit()},"modelValue.numberFormat"(){this.formatInit()},currentColors(){let t=this.currentColors[0].color;this.modelValue.showColor=t},currentFormats(){let t=this.currentFormats[0].key;this.modelValue.numberFormat=t}},computed:{getColorName(){return t=>t.slice(0,1).toUpperCase()+t.slice(1)}},mounted(){this.colorInit(),this.formatInit()},methods:{colorInit(){let t=this.colorList.find(i=>i.color===this.modelValue.showColor);t?this.currentColors=[t]:this.currentColors=[]},formatInit(){let t=this.numberFormatList.find(i=>i.key===this.modelValue.numberFormat);t?this.currentFormats=[t]:this.currentFormats=[]},formatNumberHead(t){let i={key:"number",name:"",emoji:"\u{1F522}",type:"number",minWidth:60,width:100,numberFormat:"Number",showAs:"number",showColor:"#958DF1",divideBy:100,showNumber:!0,fixed:!1,fixedSide:!1,wrap:!1,visible:!0};for(let e in i)t[e]||(t[e]=i[e]);t.__guid||(t.__guid=this.GuidWithoutDash())},GuidWithoutDash(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()}}},vw={class:"fv-tableview-default-edittool-row between"},Cw={style:{"margin-left":"10px"}},Vw=["title"],Sw=n.createElementVNode("hr",null,null,-1),$w={class:"fv-tableview-number-edittool-inside-block"},Ew={class:"number-edittool-title"},xw={class:"hor-block"},Tw=["onClick"],Dw={class:"title-block"},Iw={class:"show-as-config-block"},Bw={class:"show-as-config-item"},Nw={style:{"margin-left":"5px","font-size":"12px"}},Lw={class:"show-as-config-custom-drop-down"},Fw=n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronDown"},null,-1),Mw={class:"show-as-config-item"},Pw={class:"show-as-config-item"};function Rw(t,i,e,o,r,s){const l=n.resolveComponent("fv-drop-down"),a=n.resolveComponent("fv-text-box"),d=n.resolveComponent("fv-toggle-switch"),h=n.resolveComponent("fv-table-view-head-base");return n.openBlock(),n.createBlock(h,{modelValue:e.modelValue,index:e.index,i18n:e.i18n,foreground:e.foreground,fixedLeftWidth:e.fixedLeftWidth,fixedRightWidth:e.fixedRightWidth,theme:e.theme,wrapperWidth:"260px",dragItem:e.dragItem,formatFunction:s.formatNumberHead,onDuplicateColumn:i[5]||(i[5]=u=>t.$emit("duplicate-column",u)),onDropItem:i[6]||(i[6]=u=>t.$emit("drop-item",u)),onDeleteColumn:i[7]||(i[7]=u=>t.$emit("delete-column",u))},{menu:n.withCtx(()=>[n.createElementVNode("div",vw,[n.createElementVNode("span",Cw,n.toDisplayString(e.i18n("Number Format")),1),n.createVNode(l,{modelValue:r.currentFormats,"onUpdate:modelValue":i[0]||(i[0]=u=>r.currentFormats=u),options:r.numberFormatList,theme:e.theme,placeholder:e.i18n("Select Number Format"),style:{width:"120px"}},{options:n.withCtx(u=>[n.createElementVNode("p",{title:e.i18n(u.option.text),style:{"font-size":"12px"}},n.toDisplayString(e.i18n(u.option.text)),9,Vw)]),_:1},8,["modelValue","options","theme","placeholder"])]),Sw,n.createElementVNode("div",$w,[n.createElementVNode("span",Ew,n.toDisplayString(e.i18n("Show as")),1),n.createElementVNode("div",xw,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.showAsList,(u,c)=>(n.openBlock(),n.createElementBlock("div",{key:c,class:"hor-item",style:n.normalizeStyle({color:e.modelValue.showAs===u.key?e.foreground:"","border-color":e.modelValue.showAs===u.key?e.foreground:"","border-width":e.modelValue.showAs===u.key?"2px":""}),onClick:f=>e.modelValue.showAs=u.key},[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${u.icon}`]])},null,2),n.createElementVNode("p",Dw,n.toDisplayString(u.text),1)],12,Tw))),128))]),n.createElementVNode("div",Iw,[n.createElementVNode("div",Bw,[n.createElementVNode("span",null,n.toDisplayString(e.i18n("Color")),1),n.createVNode(l,{modelValue:r.currentColors,"onUpdate:modelValue":i[1]||(i[1]=u=>r.currentColors=u),theme:e.theme,options:r.colorList,style:{width:"120px","margin-left":"5px"}},{options:n.withCtx(u=>[n.createElementVNode("i",{class:"color-block",style:n.normalizeStyle([{background:u.option.color},{"flex-shrink":"0"}])},null,4),n.createElementVNode("p",Nw,n.toDisplayString(e.i18n(s.getColorName(u.option.name))),1)]),"drop-carrier":n.withCtx(u=>[n.createElementVNode("div",Lw,[n.createElementVNode("i",{class:"color-block",style:n.normalizeStyle({background:u.value.length>0?u.value[0].color:""})},null,4),n.createElementVNode("span",null,n.toDisplayString(e.i18n(s.getColorName(u.value.length>0?u.value[0].name:""))),1),Fw])]),_:1},8,["modelValue","theme","options"])]),n.createElementVNode("div",Mw,[n.createElementVNode("span",null,n.toDisplayString(e.i18n("Divide by")),1),n.createVNode(a,{modelValue:e.modelValue.divideBy,"onUpdate:modelValue":i[2]||(i[2]=u=>e.modelValue.divideBy=u),placeholder:e.i18n("Input value"),theme:e.theme,underline:"",ref:"text",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":e.foreground,borderWidth:"2","is-box-shadow":"true",style:{width:"120px","margin-left":"5px"},onClick:i[3]||(i[3]=u=>t.$refs.text.focus())},null,8,["modelValue","placeholder","theme","background","focus-border-color"])]),n.createElementVNode("div",Pw,[n.createElementVNode("span",null,n.toDisplayString(e.i18n("Show Number")),1),n.createVNode(d,{modelValue:e.modelValue.showNumber,"onUpdate:modelValue":i[4]||(i[4]=u=>e.modelValue.showNumber=u),on:e.i18n("Yes"),off:e.i18n("No"),insideContent:!0,switchOnBackground:e.foreground,width:"60",style:{"margin-left":"15px"}},null,8,["modelValue","on","off","switchOnBackground"])])])])]),_:1},8,["modelValue","index","i18n","foreground","fixedLeftWidth","fixedRightWidth","theme","dragItem","formatFunction"])}const _w=q(kw,[["render",Rw]]),zw={props:{value:{type:Object,default:()=>({})},head:{type:Object,default:()=>({})},i18n:{type:Function,default:t=>t},selectPos:{type:Object,default:()=>({})},foreground:{default:""},fixedLeftWidth:{default:0},fixedRightWidth:{default:0},row_index:{type:Number,default:0},col_index:{type:Number,default:0},theme:{type:String,default:"system"}},data(){return{numberFormatList:[{key:"Number",text:"Number",func:t=>parseFloat(t).toFixed(2)},{key:"Number with commas",text:"Number with commas",func:t=>parseFloat(t).toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,",")},{key:"Percent",text:"Percent",func:t=>(parseFloat(t)*100).toFixed(2)+"%"},{key:"US Dollar",text:"US Dollar",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"$"+Math.abs(i).toFixed(2)}},{key:"Australian dollar",text:"Australian dollar",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"AU$"+Math.abs(i).toFixed(2)}},{key:"Canadian dollar",text:"Canadian dollar",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"CA$"+Math.abs(i).toFixed(2)}},{key:"Singapore dollar",text:"Singapore dollar",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"SG$"+Math.abs(i).toFixed(2)}},{key:"Euro",text:"Euro",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\u20AC"+Math.abs(i).toFixed(2)}},{key:"Pound",text:"Pound",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\xA3"+Math.abs(i).toFixed(2)}},{key:"Yen",text:"Yen",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\xA5"+Math.abs(i).toFixed(2)}},{key:"Ruble",text:"Ruble",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\u20BD"+Math.abs(i).toFixed(2)}},{key:"Rupee",text:"Rupee",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\u20B9"+Math.abs(i).toFixed(2)}},{key:"Won",text:"Won",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\u20A9"+Math.abs(i).toFixed(2)}},{key:"Yuan",text:"Yuan",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\xA5"+Math.abs(i).toFixed(2)}},{key:"Real",text:"Real",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"R$"+Math.abs(i).toFixed(2)}},{key:"Lira",text:"Lira",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\u20BA"+Math.abs(i).toFixed(2)}},{key:"Rupiah",text:"Rupiah",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"Rp"+Math.abs(i).toFixed(2)}},{key:"Franc",text:"Franc",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"Fr"+Math.abs(i).toFixed(2)}},{key:"Hong Kong dollar",text:"Hong Kong dollar",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"HK$"+Math.abs(i).toFixed(2)}},{key:"New Zealand dollar",text:"New Zealand dollar",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"NZ$"+Math.abs(i).toFixed(2)}},{key:"Krona",text:"Krona",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"kr"+Math.abs(i).toFixed(2)}},{key:"Norwegian krone",text:"Norwegian krone",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"kr"+Math.abs(i).toFixed(2)}},{key:"Mexican peso",text:"Mexican peso",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"Mex$"+Math.abs(i).toFixed(2)}},{key:"Rand",text:"Rand",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"R"+Math.abs(i).toFixed(2)}},{key:"New Taiwan dollar",text:"New Taiwan dollar",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"NT$"+Math.abs(i).toFixed(2)}},{key:"Danish krone",text:"Danish krone",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"kr"+Math.abs(i).toFixed(2)}},{key:"Z\u0142oty",text:"Z\u0142oty",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"z\u0142"+Math.abs(i).toFixed(2)}},{key:"Baht",text:"Baht",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\u0E3F"+Math.abs(i).toFixed(2)}},{key:"Forint",text:"Forint",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"Ft"+Math.abs(i).toFixed(2)}},{key:"Koruna",text:"Koruna",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"K\u010D"+Math.abs(i).toFixed(2)}},{key:"Shekel",text:"Shekel",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\u20AA"+Math.abs(i).toFixed(2)}},{key:"Chilean peso",text:"Chilean peso",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"CLP$"+Math.abs(i).toFixed(2)}},{key:"Philippine peso",text:"Philippine peso",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\u20B1"+Math.abs(i).toFixed(2)}},{key:"Dirham",text:"Dirham",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"AED$"+Math.abs(i).toFixed(2)}},{key:"Colombian peso",text:"Colombian peso",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"COL$"+Math.abs(i).toFixed(2)}},{key:"Riyal",text:"Riyal",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\uFDFC"+Math.abs(i).toFixed(2)}},{key:"Ringgit",text:"Ringgit",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"RM"+Math.abs(i).toFixed(2)}},{key:"Leu",text:"Leu",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"L"+Math.abs(i).toFixed(2)}},{key:"Argentine peso",text:"Argentine peso",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"AR$"+Math.abs(i).toFixed(2)}},{key:"Uruguayan peso",text:"Uruguayan peso",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"UYU$"+Math.abs(i).toFixed(2)}},{key:"Peruvian sol",text:"Peruvian sol",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"S/"+Math.abs(i).toFixed(2)}}]}},computed:{computedPercent(){let t=parseFloat(this.value[this.head.key]);if(t.toString()!=="NaN"){if(!this.head.divideBy)return 0;let i=t/this.head.divideBy*100;return i>100&&(i=100),i}},computedFormatItem(){return this.numberFormatList.find(t=>t.key===this.head.numberFormat)},computedContent(){return this.computedFormatItem?this.computedFormatItem.func(this.value[this.head.key]):this.value[this.head.key]}}},Ow={style:{width:"100%","padding-right":"5px",display:"flex","justify-content":"flex-end","align-items":"center"}},Aw={class:"fv-tableview-default-content"},Ww={style:{width:"100%",display:"flex","justify-content":"flex-end","align-items":"center"}},Hw={class:"fv-tableview-default-content"};function Gw(t,i,e,o,r,s){const l=n.resolveComponent("fv-progress-bar"),a=n.resolveComponent("fv-progress-ring"),d=n.resolveComponent("fv-table-view-cell-base");return n.openBlock(),n.createBlock(d,{value:e.value,head:e.head,i18n:e.i18n,selectPos:e.selectPos,foreground:e.foreground,row_index:e.row_index,col_index:e.col_index,fixedLeftWidth:e.fixedLeftWidth,fixedRightWidth:e.fixedRightWidth,theme:e.theme,onDropItem:i[0]||(i[0]=h=>t.$emit("drop-item",h)),onSetSelect:i[1]||(i[1]=h=>t.$emit("set-select",h))},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("p",{class:"fv-tableview-default-content",style:{width:"100%","text-align":"right"}},n.toDisplayString(s.computedContent),513),[[n.vShow,e.head.showAs==="number"]]),n.withDirectives(n.createElementVNode("div",Ow,[n.createElementVNode("p",Aw,n.toDisplayString(s.computedContent),1),n.createVNode(l,{value:s.computedPercent,foreground:e.head.showColor,style:{width:"10px",flex:"1","margin-left":"5px"}},null,8,["value","foreground"])],512),[[n.vShow,e.head.showAs==="bar"]]),n.withDirectives(n.createElementVNode("div",Ww,[n.createElementVNode("p",Hw,n.toDisplayString(s.computedContent),1),n.createVNode(a,{value:s.computedPercent,color:e.head.showColor,r:"12",borderWidth:"3"},null,8,["value","color"])],512),[[n.vShow,e.head.showAs==="ring"]])]),_:1},8,["value","head","i18n","selectPos","foreground","row_index","col_index","fixedLeftWidth","fixedRightWidth","theme"])}const Uw=q(zw,[["render",Gw]]),Yw={name:"Number",type:"number",icon:"NumberField",emoji:"\u{1F522}",headComponent:n.markRaw(_w),cellComponent:n.markRaw(Uw),filter:({input:t,value:i})=>t?t===i:!0,sortAsc:(t,i)=>t.localeCompare(i),sortDesc:(t,i)=>i.localeCompare(t)},jw={props:{modelValue:{type:Object,default:()=>({})},index:{type:Number,default:0},i18n:{type:Function,default:t=>t},foreground:{default:""},dragItem:{type:Object,default:null},fixedLeftWidth:{default:0},fixedRightWidth:{default:0},theme:{type:String,default:"system"}},data(){return{currentDateFormats:[],currentTimeFormats:[],dateFormatList:[{key:"full",text:"Full Date"},{key:"mm/dd/YYYY",text:"Month/Day/Year"},{key:"dd/mm/YYYY",text:"Day/Month/Year"},{key:"YYYY/mm/dd",text:"Year/Month/Day"},{key:"relative",text:"Relative"}],timeFormatList:[{key:"hidden",text:"Hidden"},{key:"12",text:"12 Hour"},{key:"24",text:"24 Hour"}]}},watch:{"modelValue.dateFormat"(){this.dateFormatInit()},"modelValue.timeFormat"(){this.timeFormatInit()},currentDateFormats(){let t=this.currentDateFormats[0].key;this.modelValue.dateFormat=t},currentTimeFormats(){let t=this.currentTimeFormats[0].key;this.modelValue.timeFormat=t}},computed:{},mounted(){this.dateFormatInit(),this.timeFormatInit()},methods:{dateFormatInit(){let t=this.dateFormatList.find(i=>i.key===this.modelValue.dateFormat);t?this.currentDateFormats=[t]:this.currentDateFormats=[]},timeFormatInit(){let t=this.timeFormatList.find(i=>i.key===this.modelValue.timeFormat);t?this.currentTimeFormats=[t]:this.currentTimeFormats=[]},formatDateHead(t){let i={key:"number",name:"",emoji:"\u{1F4C5}",type:"number",minWidth:60,width:100,dateFormat:"full",timeFormat:"hidden",showEndDate:!1,fixed:!1,fixedSide:!1,wrap:!1,visible:!0};for(let e in i)t[e]||(this.modelValue[e]=i[e]);t.__guid||(t.__guid=this.GuidWithoutDash())},GuidWithoutDash(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()}}},Xw={class:"fv-tableview-default-edittool-row between"},qw={style:{"margin-left":"10px"}},Kw=["title"],Jw={class:"fv-tableview-default-edittool-row between",style:{"margin-top":"10px","margin-bottom":"10px"}},Qw={style:{"margin-left":"10px"}},Zw=["title"];function e0(t,i,e,o,r,s){const l=n.resolveComponent("fv-drop-down"),a=n.resolveComponent("fv-table-view-head-base");return n.openBlock(),n.createBlock(a,{modelValue:e.modelValue,index:e.index,i18n:e.i18n,foreground:e.foreground,fixedLeftWidth:e.fixedLeftWidth,fixedRightWidth:e.fixedRightWidth,theme:e.theme,wrapperWidth:"260px",dragItem:e.dragItem,formatFunction:s.formatDateHead,onDuplicateColumn:i[2]||(i[2]=d=>t.$emit("duplicate-column",d)),onDropItem:i[3]||(i[3]=d=>t.$emit("drop-item",d)),onDeleteColumn:i[4]||(i[4]=d=>t.$emit("delete-column",d))},{menu:n.withCtx(()=>[n.createElementVNode("div",Xw,[n.createElementVNode("span",qw,n.toDisplayString(e.i18n("Date Format")),1),n.createVNode(l,{modelValue:r.currentDateFormats,"onUpdate:modelValue":i[0]||(i[0]=d=>r.currentDateFormats=d),options:r.dateFormatList,theme:e.theme,placeholder:e.i18n("Select Date Format"),style:{width:"120px"}},{options:n.withCtx(d=>[n.createElementVNode("p",{title:e.i18n(d.option.text),style:{"font-size":"12px"}},n.toDisplayString(e.i18n(d.option.text)),9,Kw)]),_:1},8,["modelValue","options","theme","placeholder"])]),n.createElementVNode("div",Jw,[n.createElementVNode("span",Qw,n.toDisplayString(e.i18n("Time Format")),1),n.createVNode(l,{modelValue:r.currentTimeFormats,"onUpdate:modelValue":i[1]||(i[1]=d=>r.currentTimeFormats=d),options:r.timeFormatList,theme:e.theme,placeholder:e.i18n("Select Time Format"),style:{width:"120px"}},{options:n.withCtx(d=>[n.createElementVNode("p",{title:e.i18n(d.option.text),style:{"font-size":"12px"}},n.toDisplayString(e.i18n(d.option.text)),9,Zw)]),_:1},8,["modelValue","options","theme","placeholder"])])]),_:1},8,["modelValue","index","i18n","foreground","fixedLeftWidth","fixedRightWidth","theme","dragItem","formatFunction"])}const t0=q(jw,[["render",e0]]),i0={props:{modelValue:{type:Object,default:()=>({})},head:{type:Object,default:()=>({})},i18n:{type:Function,default:t=>t},selectPos:{type:Object,default:()=>({})},foreground:{default:""},fixedLeftWidth:{default:0},fixedRightWidth:{default:0},row_index:{type:Number,default:0},col_index:{type:Number,default:0},theme:{type:String,default:"system"}},data(){return{currentChoosenDates:[],startDateStr:"",endDateStr:"",startTimeStr:"",endTimeStr:"",currentDate:new Date}},watch:{"head.dateFormat"(){this.dateInit()},"head.timeFormat"(){this.dateInit()}},computed:{computedContent(){return this.head.timeFormat!=="hidden"?this.head.showEndDate?this.startDateStr+" "+this.startTimeStr+" - "+this.endDateStr+" "+this.endTimeStr:this.startDateStr+" "+this.startTimeStr:this.head.showEndDate?this.startDateStr+" - "+this.endDateStr:this.startDateStr},currentDatesRange(){let t=[];if(this.currentChoosenDates.length===0)return t;if(this.currentChoosenDates.length===1)return this.currentChoosenDates;let i=this.currentChoosenDates[0],e=this.currentChoosenDates[1];return t=this.getDateRange(i,e),t}},mounted(){this.dateInit()},methods:{formatDate(t,i){let e={};e[i.key]={start:new Date,end:new Date};for(let o in e)t[o]||(t[o]=e[o]);if(!t[i.key].start){let o={start:new Date(t[i.key].toString()),end:new Date(t[i.key].toString())};t[i.key]=o}t.__guid||(t.__guid=this.GuidWithoutDash()),this.$watch(`modelValue.${this.head.key}`,()=>{this.dateInit()})},dateInit(){let t=this.head.key,i={start:new Date,end:new Date};this.modelValue[t]&&this.modelValue[t].start&&(i.start=new Date(this.modelValue[t].start)),this.modelValue[t]&&this.modelValue[t].end&&(i.end=new Date(this.modelValue[t].end)),this.currentDate=new Date(i.start),this.currentChoosenDates=[i.start,i.end],this.syncStrValue()},setStartDate(){if(!this.modelValue[this.head.key]||!this.modelValue[this.head.key].start)return"Invalid Date";let t=this.modelValue[this.head.key].start,i=this.head.dateFormat;if(!i||i==="full")return t.toDateString();let e=i;return this.$SDate.Format(e,t)},setEndDate(){if(!this.modelValue[this.head.key]||!this.modelValue[this.head.key].end)return"Invalid Date";let t=this.modelValue[this.head.key].end,i=this.head.dateFormat;if(!i||i==="full")return t.toDateString();let e=i;return this.$SDate.Format(e,t)},setStartTime(){if(!this.modelValue[this.head.key]||!this.modelValue[this.head.key].start)return"Invalid Time";let t=this.modelValue[this.head.key].start;return this.timeFormat(t)},setEndTime(){if(!this.modelValue[this.head.key]||!this.modelValue[this.head.key].end)return"Invalid Time";let t=this.modelValue[this.head.key].end;return this.timeFormat(t)},getDateRange(t,i){const e=new Date(t),o=new Date(i),r=[],s=e<=o?1:-1;let l=new Date(e);for(;s===1&&l<=o||s===-1&&l>=o;)r.push(new Date(l)),l.setDate(l.getDate()+s);return r},syncStrValue(){this.startDateStr=this.setStartDate(),this.endDateStr=this.setEndDate(),this.startTimeStr=this.setStartTime(),this.endTimeStr=this.setEndTime()},selectChoosenDates(t){this.modelValue[this.head.key]&&this.modelValue[this.head.key].start&&(this.modelValue[this.head.key].start=t[0]),this.modelValue[this.head.key]&&this.modelValue[this.head.key].end&&(this.modelValue[this.head.key].end=t[t.length-1]),this.syncStrValue()},timeFormat(t){if(this.head.timeFormat.toString()==="12"){let e=t.getHours(),o=t.getMinutes(),r=e>=12?"PM":"AM";return e=e%12,e=e||12,this.timeValueFormat(e)+":"+this.timeValueFormat(o)+" "+r}return this.timeValueFormat(t.getHours())+":"+this.timeValueFormat(t.getMinutes())+":"+this.timeValueFormat(t.getSeconds())},timeValueFormat(t){return t<10?"0"+t:t},getDaysInMonth(t,i){return new Date(i,t,0).getDate()},GuidWithoutDash(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()}}},n0={class:"fv-tableview-default-content",style:{width:"100%","text-align":"right"}},o0={class:"fv-tableview-default-edittool-row"},r0={class:"fv-tableview-default-edittool-row",style:{"margin-bottom":"10px"}},s0={class:"fv-tableview-default-edittool-row"},l0={class:"fv-tableview-default-edittool-row",style:{"margin-bottom":"10px"}},a0=n.createElementVNode("hr",null,null,-1),d0={key:1,class:"fv-tableview-default-edittool-row",style:{"margin-bottom":"10px"}};function h0(t,i,e,o,r,s){const l=n.resolveComponent("fv-text-box"),a=n.resolveComponent("fv-calendar-view"),d=n.resolveComponent("fv-time-picker"),h=n.resolveComponent("fv-toggle-switch"),u=n.resolveComponent("fv-table-view-cell-base");return n.openBlock(),n.createBlock(u,{modelValue:e.modelValue,head:e.head,i18n:e.i18n,selectPos:e.selectPos,foreground:e.foreground,row_index:e.row_index,col_index:e.col_index,fixedLeftWidth:e.fixedLeftWidth,fixedRightWidth:e.fixedRightWidth,theme:e.theme,formatFunction:s.formatDate,wrapperWidth:"300px",isUnder:!0,onDropItem:i[6]||(i[6]=c=>t.$emit("drop-item",c)),onSetSelect:i[7]||(i[7]=c=>t.$emit("set-select",c))},{default:n.withCtx(()=>[n.createElementVNode("p",n0,n.toDisplayString(s.computedContent),1)]),entire:n.withCtx(c=>[n.createElementVNode("div",{class:"fv-tableview-default-edittool-row",style:{"margin-top":"10px"},onClick:i[0]||(i[0]=f=>f.stopPropagation())},[n.createVNode(l,{modelValue:r.startDateStr,theme:e.theme,underline:"",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":e.foreground,"border-width":2,"is-box-shadow":!0,style:{height:"35px"}},null,8,["modelValue","theme","background","border-color","focus-border-color"]),n.withDirectives(n.createVNode(l,{modelValue:r.startTimeStr,theme:e.theme,underline:"",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":e.foreground,"border-width":2,"is-box-shadow":!0,style:{height:"35px","margin-left":"5px"}},null,8,["modelValue","theme","background","border-color","focus-border-color"]),[[n.vShow,e.head.timeFormat!=="hidden"]])]),n.withDirectives(n.createElementVNode("div",{class:"fv-tableview-default-edittool-row",style:{"margin-top":"5px"},onClick:i[1]||(i[1]=f=>f.stopPropagation())},[n.createVNode(l,{modelValue:r.endDateStr,theme:e.theme,underline:"",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":e.foreground,"border-width":2,"is-box-shadow":!0,style:{height:"35px"}},null,8,["modelValue","theme","background","border-color","focus-border-color"]),n.withDirectives(n.createVNode(l,{modelValue:r.endTimeStr,theme:e.theme,underline:"",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":e.foreground,"border-width":2,"is-box-shadow":!0,style:{height:"35px","margin-left":"5px"}},null,8,["modelValue","theme","background","border-color","focus-border-color"]),[[n.vShow,e.head.timeFormat!=="hidden"]])],512),[[n.vShow,e.head.showEndDate]]),c.show?(n.openBlock(),n.createBlock(a,{key:0,modelValue:r.currentDate,"onUpdate:modelValue":i[2]||(i[2]=f=>r.currentDate=f),theme:e.theme,multiple:e.head.showEndDate?"range":"single",ref:"calendar",choosenDates:s.currentDatesRange,foreground:e.foreground,style:{scale:"0.95"},onChoosenDatesObj:s.selectChoosenDates},{weekday_content:n.withCtx(f=>[n.createTextVNode(n.toDisplayString(e.i18n(f.modelValue)),1)]),_:2},1032,["modelValue","theme","multiple","choosenDates","foreground","onChoosenDatesObj"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",o0,[n.createElementVNode("span",null,n.toDisplayString(e.i18n("Start Time")),1)],512),[[n.vShow,e.head.showEndDate&&e.head.timeFormat!=="hidden"]]),n.withDirectives(n.createElementVNode("div",r0,[e.modelValue[e.head.key]&&e.modelValue[e.head.key].start?(n.openBlock(),n.createBlock(d,{key:0,modelValue:e.modelValue[e.head.key].start,"onUpdate:modelValue":i[3]||(i[3]=f=>e.modelValue[e.head.key].start=f),theme:e.theme,timeType:e.head.timeFormat=="12"?12:24,style:{width:"100%"},onChange:s.syncStrValue},null,8,["modelValue","theme","timeType","onChange"])):n.createCommentVNode("",!0)],512),[[n.vShow,e.head.timeFormat!=="hidden"]]),n.withDirectives(n.createElementVNode("div",s0,[n.createElementVNode("span",null,n.toDisplayString(e.i18n("End Time")),1)],512),[[n.vShow,e.head.showEndDate&&e.head.timeFormat!=="hidden"]]),n.withDirectives(n.createElementVNode("div",l0,[e.modelValue[e.head.key]&&e.modelValue[e.head.key].end?(n.openBlock(),n.createBlock(d,{key:0,modelValue:e.modelValue[e.head.key].end,"onUpdate:modelValue":i[4]||(i[4]=f=>e.modelValue[e.head.key].end=f),theme:e.theme,timeType:e.head.timeFormat=="12"?12:24,style:{width:"100%"},onChange:s.syncStrValue},null,8,["modelValue","theme","timeType","onChange"])):n.createCommentVNode("",!0)],512),[[n.vShow,e.head.showEndDate&&e.head.timeFormat!=="hidden"]]),a0,e.modelValue[e.head.key]&&e.head.showEndDate!==void 0?(n.openBlock(),n.createElementBlock("div",d0,[n.createElementVNode("span",null,n.toDisplayString(e.i18n("End Date")),1),n.createVNode(h,{modelValue:e.head.showEndDate,"onUpdate:modelValue":i[5]||(i[5]=f=>e.head.showEndDate=f),on:e.i18n("Yes"),off:e.i18n("No"),insideContent:!0,switchOnBackground:e.foreground,width:"60",style:{"margin-left":"15px"}},null,8,["modelValue","on","off","switchOnBackground"])])):n.createCommentVNode("",!0)]),_:1},8,["modelValue","head","i18n","selectPos","foreground","row_index","col_index","fixedLeftWidth","fixedRightWidth","theme","formatFunction"])}const u0=q(i0,[["render",h0]]),c0={name:"Date",type:"date",icon:"Calendar",emoji:"\u{1F4C5}",headComponent:n.markRaw(t0),cellComponent:n.markRaw(u0),filter:({input:t,value:i})=>t?t===i:!0,sortAsc:(t,i)=>t.localeCompare(i),sortDesc:(t,i)=>i.localeCompare(t)},f0={props:{modelValue:{type:Object,default:()=>({})},index:{type:Number,default:0},i18n:{type:Function,default:t=>t},foreground:{default:""},dragItem:{type:Object,default:null},fixedLeftWidth:{default:0},fixedRightWidth:{default:0},theme:{type:String,default:"system"}},data(){return{}},watch:{},computed:{},mounted(){},methods:{formatEmailHead(t){let i={key:"email",name:"",emoji:"@",type:"email",minWidth:60,width:100,fixed:!1,fixedSide:!1,wrap:!1,visible:!0};for(let e in i)t[e]||(t[e]=i[e]);t.__guid||(t.__guid=this.GuidWithoutDash())},GuidWithoutDash(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()}}};function m0(t,i,e,o,r,s){const l=n.resolveComponent("fv-table-view-head-base");return n.openBlock(),n.createBlock(l,{modelValue:e.modelValue,index:e.index,i18n:e.i18n,foreground:e.foreground,formatFunction:s.formatEmailHead,fixedLeftWidth:e.fixedLeftWidth,fixedRightWidth:e.fixedRightWidth,theme:e.theme,dragItem:e.dragItem,onDuplicateColumn:i[0]||(i[0]=a=>t.$emit("duplicate-column",a)),onDropItem:i[1]||(i[1]=a=>t.$emit("drop-item",a)),onDeleteColumn:i[2]||(i[2]=a=>t.$emit("delete-column",a))},null,8,["modelValue","index","i18n","foreground","formatFunction","fixedLeftWidth","fixedRightWidth","theme","dragItem"])}const g0=q(f0,[["render",m0]]),p0={props:{value:{type:Object,default:()=>({})},head:{type:Object,default:()=>({})},i18n:{type:Function,default:t=>t},selectPos:{type:Object,default:()=>({})},foreground:{default:""},fixedLeftWidth:{default:0},fixedRightWidth:{default:0},row_index:{type:Number,default:0},col_index:{type:Number,default:0},theme:{type:String,default:"system"}},data(){return{}},computed:{}},w0=["href"];function b0(t,i,e,o,r,s){const l=n.resolveComponent("fv-table-view-cell-base");return n.openBlock(),n.createBlock(l,{value:e.value,head:e.head,i18n:e.i18n,selectPos:e.selectPos,foreground:e.foreground,row_index:e.row_index,col_index:e.col_index,fixedLeftWidth:e.fixedLeftWidth,fixedRightWidth:e.fixedRightWidth,theme:e.theme,onDropItem:i[0]||(i[0]=a=>t.$emit("drop-item",a)),onSetSelect:i[1]||(i[1]=a=>t.$emit("set-select",a))},{default:n.withCtx(()=>[n.createElementVNode("a",{href:"mailto:"+e.value[e.head.key],class:"fv-tableview-default-content",style:{width:"100%","text-align":"right"}},n.toDisplayString(e.value[e.head.key]),9,w0)]),_:1},8,["value","head","i18n","selectPos","foreground","row_index","col_index","fixedLeftWidth","fixedRightWidth","theme"])}const y0=q(p0,[["render",b0]]),k0={name:"Email",type:"email",icon:"Accounts",emoji:"@",headComponent:n.markRaw(g0),cellComponent:n.markRaw(y0),filter:({input:t,value:i})=>t?t===i:!0,sortAsc:(t,i)=>t.localeCompare(i),sortDesc:(t,i)=>i.localeCompare(t)},v0={class:"fv-tableview-main-wrapper"},C0={class:"fv-tableview-head-item check-box"},V0={class:"fv-tableview-head-item op-tools"},S0=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Add"},null,-1),$0={class:"new-line-title"},E0=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Delete"},null,-1),x0=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Copy"},null,-1),T0=Object.assign({name:"FvTableView",components:{tableRow:Os,newProperty:As,currentProperty:Ws},data(){return{thisExtensions:[],selectPos:{active:!1,syncActive:!1,start_row:-1,start_col:-1,end_row:-1,end_col:-1},drag:{columnItem:null,rowItem:null},show:{addMenu:!1,editMenu:!0}}},computed:{sumWidth(){let t=0;return this.modelValue.heads.forEach(i=>{t+=i.width}),t+30+60},fixedLeftWidth(){let t=[],i=0;return this.modelValue.heads.forEach(e=>{t.push(i),e.fixed&&!e.fixedSide&&(i+=e.width)}),t},fixedRightWidth(){let t=[],i=0;return this.modelValue.heads.forEach(e=>{t.push(i),e.fixed&&e.fixedSide&&(i+=e.width)}),t},currentChoosen(){return this.modelValue.rows.filter(t=>t.choosen)},currentChoosenAll(){return this.currentChoosen.length===this.modelValue.rows.length},currentChoosenNum(){return this.currentChoosen.length},choosenBackground(){try{let t=one(this.foreground);return t=t.alpha(.1),t.cssa()}catch{return""}},computedHeadComponent(){return t=>{let i=this.thisExtensions.find(e=>e.type===t);return i?i.headComponent:null}},$theme(){return z(this.$props).theme.value}},mounted(){this.eventInit(),this.extensionsInit()},methods:{eventInit(){window.addEventListener("click",this.outSideClickEvent),window.addEventListener("mouseup",this.cellSelectReleaseEvent),window.addEventListener("touchend",this.cellSelectReleaseEvent),window.addEventListener("keydown",this.cellCopyEvent),window.addEventListener("keydown",this.cellPasteEvent)},outSideClickEvent(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}i=i.parentNode}e||(this.selectPos.start_row=-1,this.selectPos.start_col=-1,this.selectPos.end_row=-1,this.selectPos.end_col=-1)},cellSelectReleaseEvent(){if(this.selectPos.syncActive)if(this.syncRowsFunc)this.syncRowsFunc(this.selectPos);else{let t=this.selectPos.start_row,i=this.selectPos.end_row,e=this.selectPos.start_col,o=this.modelValue.heads[e].key,r=this.modelValue.rows[t][o];if(t>i){let s=t;t=i,i=s}for(let s=t;s<=i;s++)this.modelValue.rows[s][o]=r}this.selectPos.active=!1,this.selectPos.syncActive=!1},cellCopyEvent(t){t.keyCode===67&&t.ctrlKey&&this.copyTableFunc&&this.copyTableFunc(this.selectPos)},cellPasteEvent(t){t.keyCode===86&&t.ctrlKey&&this.pastedTableFunc&&this.pastedTableFunc(this.selectPos)},extensionsInit(){let t={name:"Text",type:"text",icon:"List",emoji:"\u{1F4DD}",headComponent:n.markRaw(Gs),cellComponent:n.markRaw(Us),filter:({input:i,value:e})=>i?e.toLowerCase().indexOf(i.toLowerCase())!==-1:!0,sortAsc:(i,e)=>i.localeCompare(e),sortDesc:(i,e)=>e.localeCompare(i)};this.thisExtensions=[t,Yw,c0,k0,...this.extensions]},duplicateColumn(t){let i=JSON.parse(JSON.stringify(this.modelValue.heads[t])),e=this.modelValue.heads[t];i.__guid=this.GuidWithoutDash(),i.key=e.key+i.__guid,i.name=e.name+" Copy",this.modelValue.heads.splice(t+1,0,i),this.modelValue.rows.forEach(o=>{o[i.key]=o[e.key]})},swapColumn(t,i){let e=this.modelValue.heads.findIndex(s=>s.__guid===t.__guid);if(e===-1)return;let o=this.modelValue.heads[e];this.modelValue.heads.splice(e,1);let r=this.modelValue.heads.findIndex(s=>s.__guid===i.__guid);r!==-1&&this.modelValue.heads.splice(r,0,o)},duplicateRows(){let t=this.currentChoosen;if(t.length===0)return;let i=this.currentChoosen[this.currentChoosen.length-1],e=[];t.forEach(o=>{let r=JSON.parse(JSON.stringify(o));r.__guid=this.GuidWithoutDash(),e.push(r)}),this.clearChooseAll(),this.modelValue.rows.splice(this.modelValue.rows.indexOf(i)+1,0,...e)},addColumn(t){let i={key:t.name,name:t.name,emoji:t.emoji,type:t.type};this.modelValue.heads.push(i)},addRow(t=null){let i={};this.modelValue.heads.forEach(e=>{i[e.key]=""}),t===null?this.modelValue.rows.push(i):this.modelValue.rows.splice(t+1,0,i)},swapRow(t,i){let e=this.modelValue.rows.findIndex(s=>s===t);if(e===-1)return;let o=this.modelValue.rows[e];this.modelValue.rows.splice(e,1);let r=this.modelValue.rows.findIndex(s=>s===i);r!==-1&&this.modelValue.rows.splice(r,0,o)},chooseAll(){let t=!this.currentChoosenAll;this.modelValue.rows.forEach(i=>{i.choosen=t}),this.$emit("choose-items",this.currentChoosen)},clearChooseAll(t=null){this.modelValue.rows.forEach(i=>{t&&i===t||(this.row.choosen=!1)})},setSelectPos(t){const{event_type:i,row_index:e,col_index:o}=t;i==="down"?(this.selectPos.start_row=e,this.selectPos.start_col=o,this.selectPos.end_row=e,this.selectPos.end_col=o,this.selectPos.active=!0):i==="enter"?this.selectPos.active&&(this.selectPos.end_row=e,this.selectPos.syncActive||(this.selectPos.end_col=o)):i==="sync-down"&&(this.selectPos.start_row=e,this.selectPos.start_col=o,this.selectPos.end_row=e,this.selectPos.end_col=o,this.selectPos.active=!0,this.selectPos.syncActive=!0)},thisDeleteColumn(t,i){this.deleteColumnFunc?this.deleteColumnFunc(t,i):this.modelValue.heads.splice(i,1)},thisDeleteRows(){this.deleteRowsFunc&&this.deleteRowsFunc(this.currentChoosen);let t=this.currentChoosen;t.length!==0&&t.forEach(i=>{this.modelValue.rows.splice(this.modelValue.rows.indexOf(i),1)})},handleColumnDrag(t,i){t.stopPropagation(),this.drag.columnItem=i},rowRightClick(t){const{event:i,row:e,clearChoosenAll:o}=t;i.preventDefault(),i.stopPropagation(),o&&this.clearChooseAll(e),this.$refs.rightMenu.rightClick(i,document.body),this.$emit("rightclick",e)},addMenuClick(t,i=!0){t.preventDefault(),t.stopPropagation(),this.$refs.addMenu.rightClick(t,document.body),this.show.addMenu=i,this.show.editMenu=!i},handleSort(t,i=!1){!this.thisExtensions.find(o=>o.type===t)||(i?this.modelValue.sort(this.extension.sortDesc):this.modelValue.sort(this.extension.sortAsc))},GuidWithoutDash(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent),window.removeEventListener("mouseup",this.cellSelectReleaseEvent),window.removeEventListener("touchend",this.cellSelectReleaseEvent),window.removeEventListener("keydown",this.cellCopyEvent),window.removeEventListener("keydown",this.cellPasteEvent)}},{props:{...A,modelValue:{type:Object,default:()=>({})},i18n:{type:Function,default:t=>t},foreground:{default:"rgba(0, 90, 158, 1)"},deleteColumnFunc:{type:Function,default:null},deleteRowsFunc:{type:Function,default:null},copyTableFunc:{type:Function,default:null},pastedTableFunc:{type:Function,default:null},syncRowsFunc:{type:Function,default:null},rightMenuBackground:{default:""},extensions:{default:()=>[]}},emits:["choose-items","rightclick","update:modelValue","update:selectPos","update:dragItem"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-check-box"),s=n.resolveComponent("fv-right-menu");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-TableView",[e.$theme]])},[n.createElementVNode("div",v0,[n.createElementVNode("div",{class:"fv-tableview-head-row",style:n.normalizeStyle({width:e.sumWidth+"px"})},[n.createElementVNode("div",C0,[n.createVNode(r,{modelValue:e.currentChoosenAll,background:t.foreground,theme:e.$theme,onClick:e.chooseAll},null,8,["modelValue","background","theme","onClick"])]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.modelValue.heads,(l,a)=>n.withDirectives((n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.computedHeadComponent(l.type)),{modelValue:l,key:a,index:a,i18n:t.i18n,foreground:t.foreground,fixedLeftWidth:e.fixedLeftWidth[a],fixedRightWidth:e.fixedRightWidth[a],theme:e.$theme,dragItem:e.drag.columnItem,draggable:"true",onDuplicateColumn:e.duplicateColumn,onDragstart:d=>e.handleColumnDrag(d,l),onDragend:o[0]||(o[0]=d=>e.drag.columnItem=null),onDropItem:d=>e.swapColumn(d.drag,l),onDeleteColumn:d=>e.thisDeleteColumn(d,a)},null,40,["modelValue","index","i18n","foreground","fixedLeftWidth","fixedRightWidth","theme","dragItem","onDuplicateColumn","onDragstart","onDropItem","onDeleteColumn"])),[[n.vShow,l.visible]])),128)),n.createElementVNode("div",V0,[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Add fv-tableview-icon-block fade",onClick:o[1]||(o[1]=l=>e.addMenuClick(l))}),n.createElementVNode("i",{class:"ms-Icon ms-Icon--More fv-tableview-icon-block fade",onClick:o[2]||(o[2]=l=>e.addMenuClick(l,!1))})])],4),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.modelValue.rows,(l,a)=>(n.openBlock(),n.createBlock(Os,{key:a,modelValue:t.modelValue,row:l,row_index:a,i18n:t.i18n,selectPos:e.selectPos,foreground:t.foreground,theme:e.$theme,extensions:e.thisExtensions,dragItem:e.drag.rowItem,style:n.normalizeStyle({width:e.sumWidth+"px"}),onUpdateDragItem:o[3]||(o[3]=d=>e.drag.rowItem=d),onDropItem:d=>e.swapRow(d.drag,l),onAddRow:d=>e.addRow(a),onSetSelect:e.setSelectPos,onRightclick:e.rowRightClick},null,8,["modelValue","row","row_index","i18n","selectPos","foreground","theme","extensions","dragItem","style","onDropItem","onAddRow","onSetSelect","onRightclick"]))),128)),n.createElementVNode("div",{class:"fv-tableview-data-row newline",style:n.normalizeStyle({width:e.sumWidth+"px"}),onClick:o[4]||(o[4]=l=>e.addRow())},[S0,n.createElementVNode("p",$0,n.toDisplayString(t.i18n("New Line")),1)],4)]),n.createVNode(s,{ref:"rightMenu",theme:e.$theme,rightMenuWidth:220,background:t.rightMenuBackground,fullExpandAnimation:!0,style:{"z-index":"5"}},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"menu",{},()=>[n.createElementVNode("span",{onClick:o[5]||(o[5]=l=>e.thisDeleteRows())},[E0,n.createElementVNode("p",null,n.toDisplayString(t.i18n("Delete")),1)]),n.createElementVNode("span",{onClick:o[6]||(o[6]=l=>e.duplicateRows())},[x0,n.createElementVNode("p",null,n.toDisplayString(t.i18n("Duplicate")),1)])])]),_:3},8,["theme","background"]),n.createVNode(s,{ref:"addMenu",theme:e.$theme,rightMenuWidth:220,background:t.rightMenuBackground,fullExpandAnimation:!0,style:{"z-index":"5"}},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"menu",{},()=>[n.withDirectives(n.createVNode(As,{extensions:e.thisExtensions,i18n:t.i18n,foreground:t.foreground,theme:e.$theme,onAddColumn:e.addColumn},null,8,["extensions","i18n","foreground","theme","onAddColumn"]),[[n.vShow,e.show.addMenu]]),n.withDirectives(n.createVNode(Ws,{modelValue:t.modelValue,heads:t.modelValue.heads,extensions:e.thisExtensions,i18n:t.i18n,foreground:t.foreground,theme:e.$theme,onAddClick:o[7]||(o[7]=l=>{e.show.editMenu=!1,e.show.addMenu=!0})},null,8,["modelValue","heads","extensions","i18n","foreground","theme"]),[[n.vShow,e.show.editMenu]])])]),_:3},8,["theme","background"])],2)}}}),Ys=W(T0),oC="",rC="",sC="",js=W(Us),lC="",aC="",dC="",Xs=W(Gs),hC="",uC="",cC="",D0=["onClick"],I0={class:"fv-tag-default-content"},B0={class:"fv-tag-icon"},N0=["onClick"],L0={class:"fv-tag-icon"},F0=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Add fv-tag-icon-btn"},null,-1)],M0={class:"fv-tag-content"},P0={class:"fv-tag-default-content"},R0=Object.assign({name:"FvTag",data(){return{thisValue:this.modelValue,inputValue:"",edit:!1}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)},edit(){this.inputValue!==""&&this.addTag()}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent),window.addEventListener("touchend",this.outSideClickEvent)},outSideClickEvent(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$refs.add){e=!0;break}i=i.parentNode}e||(this.edit=!1)},editable(){this.edit=!0,setTimeout(()=>{this.$refs.edit.focus()},10)},addTag(){this.thisValue.push({text:this.inputValue}),this.inputValue="",this.$emit("add-item",{text:this.inputValue})},delTag(t){let i=this.thisValue.indexOf(t);this.thisValue.splice(i,1),this.$emit("del-item",t)},getColor(t){return t=kt(t),this.$theme=="dark"?{background:t.alpha(1).cssa(),borderColor:t.alpha(1).cssa(),color:"whitesmoke"}:{background:t.alpha(.1).cssa(),borderColor:t.alpha(.1).cssa(),color:t.alpha(1).cssa()}}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent),window.removeEventListener("touchend",this.outSideClickEvent)}},{props:{...A,modelValue:{default:()=>[]},newTagPlaceholder:{default:"New Tag"},size:{default:""},newTagBackground:{default:null},fontSize:{default:""},isNewTag:{default:!1},isDel:{default:!1}},emits:["update:modelValue","add-item","del-item","tag-click"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-text-box");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Tag",[e.$theme]])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.thisValue,(s,l)=>(n.openBlock(),n.createElementBlock("div",{key:l,class:n.normalizeClass(["fv-tag-item",[s.type?s.type:"",t.size,{disabled:s.disabled}]]),style:n.normalizeStyle({background:s.background?e.getColor(s.background).background:"",borderColor:s.background?e.getColor(s.background).borderColor:"",color:s.background?e.getColor(s.background).color:""}),onClick:a=>e.$emit("tag-click",s)},[n.createElementVNode("span",{class:"fv-tag-content",style:n.normalizeStyle({"font-size":t.fontSize+"px"})},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("p",I0,n.toDisplayString(s.text),1)])],4),n.withDirectives(n.createElementVNode("div",B0,[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel fv-tag-icon-btn",onClick:a=>e.delTag(s)},null,8,N0)],512),[[n.vShow,t.isDel&&!s.disabled]])],14,D0))),128)),n.withDirectives(n.createElementVNode("div",{ref:"add",class:n.normalizeClass(["fv-tag-item controller",[t.size]]),style:n.normalizeStyle({background:t.newTagBackground?e.getColor(t.newTagBackground).background:"",borderColor:t.newTagBackground?e.getColor(t.newTagBackground).borderColor:"",color:t.newTagBackground?e.getColor(t.newTagBackground).color:""}),onClick:o[1]||(o[1]=(...s)=>e.editable&&e.editable(...s))},[n.withDirectives(n.createElementVNode("div",L0,F0,512),[[n.vShow,!e.edit]]),n.withDirectives(n.createElementVNode("span",M0,[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("p",P0,n.toDisplayString(t.newTagPlaceholder),1)])],512),[[n.vShow,!e.edit]]),n.withDirectives(n.createVNode(r,{modelValue:e.inputValue,"onUpdate:modelValue":o[0]||(o[0]=s=>e.inputValue=s),ref:"edit",background:"transparent","border-color":"transparent","focus-border-color":"transparent",placeholder:t.newTagPlaceholder,style:{width:"auto"},onKeydown:n.withKeys(e.addTag,["enter"])},null,8,["modelValue","placeholder","onKeydown"]),[[n.vShow,e.edit]])],6),[[n.vShow,t.isNewTag]])],2)}}}),qs=W(R0),gC="",pC="",wC="",_0={emits:["update:modelValue","keydown","keyup","change","paste","focus","blur"],props:{modelValue:{type:Array,default:()=>[]},inputmode:{default:"text"},type:{default:"text"},mask:{type:String,default:"mask:___"},flag:{type:String,default:"_"},pattern:{type:String,default:"[Ss]*"},readonly:{default:!1},disabled:{default:!1},fontSize:{default:13.3},fontWeight:{default:"normal"},foreground:{default:""},textAlign:{default:"left"},cursor:{default:""},theme:{type:String,default:"global"}},data(){return{thisValue:[],currentPos:0,thisPattern:new RegExp(this.pattern)}},watch:{modelValue(t){this.syncValue(t)},mask(t){this.thisValueInit()},flag(t){this.thisValueInit()},pattern(t){this.thisPattern=new RegExp(t)}},computed:{$theme(){return z(this.$props).theme.value},maxLength(){let t=0;for(let i=0;i<this.mask.length;i++)this.mask[i]==this.flag&&t++;return t},renderText(){this.mask;let t=0,i="";for(let e=0;e<this.mask.length;e++)if(this.mask[e]==this.flag){if(t>=this.thisValue.length)break;this.thisValue[t].content!==""?i+=this.thisValue[t].content:i+=this.mask[e],t++}else i+=this.mask[e];return i},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}},mounted(){this.thisValueInit(),this.syncValue(this.modelValue),this.thisPattern=new RegExp(this.pattern),this.$refs.input.addEventListener("paste",t=>{let i=t.clipboardData.getData("text/plain"),e=0;for(let o=0;o<i.length;o++)i[o].match(this.thisPattern)&&e<this.thisValue.length&&(this.thisValue[e].content=i[o],e++,this.currentPos=this.thisValue[e].index+1)})},methods:{thisValueInit(){this.thisValue=[];for(let t=0;t<this.mask.length;t++)this.mask[t]==this.flag&&this.thisValue.push({index:t,content:""});this.flag.length!=1&&console.warn("TextBox's flag should only contain 1 char."),this.$refs.input.value=this.renderText},syncValue(t){for(let i=0;i<this.thisValue.length;i++)i<t.length?this.thisValue[i]={index:this.thisValue[i].index,content:t[i]}:this.thisValue[i]={index:this.thisValue[i].index,content:""};this.$refs.input.value=this.renderText},keyDown(t){this.$emit("keydown",t);let i=t.keyCode,e=-1,o=this.$refs.input.selectionStart,r=this.$refs.input.selectionEnd,s=this.clearRange(o,r);for(let l=o-1;l>=0;l--)this.mask[l]==this.flag&&e++;if(this.isInputCode(i)&&!t.crtlKey){if(!this.thisPattern.test(t.key))return 0;e<this.thisValue.length-1&&(this.thisValue[e+1]={index:this.thisValue[e+1].index,content:t.key},this.currentPos=this.thisValue[e+1].index+1)}else if(i==8){if(s)return 0;e>-1&&(this.thisValue[e]={index:this.thisValue[e].index,content:""},this.currentPos=this.thisValue[e].index)}},isInputCode(t){let i=[[48,57],[65,90],[96,107],[109,111],[186,222]];for(let e of i)if(t>=e[0]&&t<=e[1])return!0;return!1},clearRange(t,i){if(i-t==0)return 0;let e=0;for(let o=this.thisValue.length-1;o>=0;o--)this.thisValue[o].index+1>t&&this.thisValue[o].index+1<=i&&(this.thisValue[o]={index:this.thisValue[o].index,content:""},e=o);return this.currentPos=this.thisValue[e].index,!0},input(t){t.target.value=this.renderText,this.$refs.input.setSelectionRange(this.currentPos,this.currentPos);let i=[];for(let e=0;e<this.thisValue.length;e++)i.push(this.thisValue[e].content);this.$emit("update:modelValue",i)},focusInspect(){this.$refs.input.focus()}}},z0={class:"text-box-container internal"},O0=["inputmode","type","readonly","disabled"];function A0(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",z0,[n.createElementVNode("input",{inputmode:e.inputmode,type:e.type,class:"fv-text-box-input",readonly:s.isReadOnly,disabled:s.isDisabled,ref:"input",style:n.normalizeStyle({"font-size":`${e.fontSize}px`,"font-weight":e.fontWeight,color:e.foreground,"text-align":e.textAlign,cursor:e.cursor}),onInput:i[0]||(i[0]=(...l)=>s.input&&s.input(...l)),onKeydown:i[1]||(i[1]=(...l)=>s.keyDown&&s.keyDown(...l)),onKeyup:i[2]||(i[2]=l=>t.$emit("keyup",l)),onChange:i[3]||(i[3]=l=>t.$emit("change",l)),onPaste:i[4]||(i[4]=l=>t.$emit("paste",l)),onFocus:i[5]||(i[5]=l=>t.$emit("focus",!0)),onBlur:i[6]||(i[6]=l=>t.$emit("blur",!1))},null,44,O0)])}const W0={components:{maskInput:q(_0,[["render",A0]])},emits:["update:modelValue","update:focus","keydown","keyup","change","paste","focus","blur"],props:{modelValue:{default:""},mode:{default:"default"},inputmode:{default:"text"},placeholder:{default:""},type:{default:"text"},mask:{type:String,default:"mask:___"},flag:{type:String,default:"_"},pattern:{type:String,default:"[Ss]*"},inputRules:{type:String,default:"[Ss]*"},readonly:{default:!1},focus:{default:!1},maxlength:{default:""},disabled:{default:!1},fontSize:{default:13.3},fontWeight:{default:"normal"},foreground:{default:""},textAlign:{default:"left"},cursor:{default:""},theme:{type:String,default:"global"}},data(){return{thisValue:(typeof this.modelValue).toString()=="string"?this.modelValue:"",thisMaskValue:(typeof this.modelValue).toString()=="object"?this.modelValue:[],thisPattern:new RegExp(this.partten),thisInputRules:new RegExp(this.inputRules)}},watch:{modelValue(t){(typeof t).toString()=="string"?this.thisValue=t:this.thisMaskValue=t},mode(t){t=="default"?this.thisValue="":this.thisMaskValue=[]},thisValue(t,i){!t||this.thisInputRules.test(t)?this.$emit("update:modelValue",t):t=i},thisMaskValue(t){this.$emit("update:modelValue",t)},pattern(t){this.thisPattern=new RegExp(t)},inputRules(t){this.thisInputRules=new RegExp(t)}},computed:{$theme(){return z(this.$props).theme.value},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}},mounted(){this.thisPattern=new RegExp(this.pattern),this.thisInputRules=new RegExp(this.inputRules)},methods:{keyDown(t){this.$emit("keydown",t),t.key&&(t.key.length>1||this.thisPattern.test(t.key)||t.preventDefault())},focusInspect(){this.mode=="mask"?this.$refs.mask_input.focusInspect():this.$refs.input.focus()}}},H0={class:"text-box-container"},G0=["inputmode","type","placeholder","readonly","disabled","maxlength"];function U0(t,i,e,o,r,s){const l=n.resolveComponent("mask-input");return n.openBlock(),n.createElementBlock("div",H0,[e.mode=="default"?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,"onUpdate:modelValue":i[0]||(i[0]=a=>r.thisValue=a),inputmode:e.inputmode,type:e.type,placeholder:e.placeholder,class:"fv-text-box-input",readonly:s.isReadOnly,disabled:s.isDisabled,maxlength:e.maxlength,ref:"input",style:n.normalizeStyle({"font-size":`${e.fontSize}px`,"font-weight":e.fontWeight,color:e.foreground,"text-align":e.textAlign,cursor:e.cursor}),onKeydown:i[1]||(i[1]=(...a)=>s.keyDown&&s.keyDown(...a)),onKeyup:i[2]||(i[2]=a=>t.$emit("keyup",a)),onChange:i[3]||(i[3]=a=>t.$emit("change",a)),onPaste:i[4]||(i[4]=a=>t.$emit("paste",a)),onFocus:i[5]||(i[5]=a=>t.$emit("update:focus",!0)),onBlur:i[6]||(i[6]=a=>t.$emit("update:focus",!1))},null,44,G0)),[[n.vModelDynamic,r.thisValue]]):n.createCommentVNode("",!0),e.mode=="mask"?(n.openBlock(),n.createBlock(l,{key:1,ref:"mask_input",modelValue:r.thisMaskValue,"onUpdate:modelValue":i[7]||(i[7]=a=>r.thisMaskValue=a),inputmode:e.inputmode,type:e.type,placeholder:e.placeholder,mask:e.mask,flag:e.flag,pattern:e.pattern,readonly:s.isReadOnly,disabled:s.isDisabled,fontSize:e.fontSize,fontWeight:e.fontWeight,textAlign:e.textAlign,cursor:e.cursor,onKeydown:i[8]||(i[8]=a=>t.$emit("keydown",a)),onKeyup:i[9]||(i[9]=a=>t.$emit("keyup",a)),onChange:i[10]||(i[10]=a=>t.$emit("change",a)),onPaste:i[11]||(i[11]=a=>t.$emit("paste",a)),onFocus:i[12]||(i[12]=a=>t.$emit("update:focus",!0)),onBlur:i[13]||(i[13]=a=>t.$emit("update:focus",!1))},null,8,["modelValue","inputmode","type","placeholder","mask","flag","pattern","readonly","disabled","fontSize","fontWeight","textAlign","cursor"])):n.createCommentVNode("",!0)])}const Ks=q(W0,[["render",U0]]),Y0={class:"fix-block"},j0={class:"fix-block"},X0=Object.assign({name:"FvTextBox",components:{coreInput:Ks},data(){return{thisValue:this.modelValue.toString(),isFocus:!1,timer:{debounce:null}}},watch:{modelValue(t){this.thisValue=t.toString()},thisValue(t){clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{this.$emit("debounce-input",this.thisValue)},this.debounceDelay),this.$emit("update:modelValue",t)}},computed:{$theme(){return z(this.$props).theme.value},isUnderline(){return this.underline.toString()=="true"||this.underline=="underline"||this.underline===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"}},mounted(){},methods:{focus(){this.$refs.core.focusInspect()}}},{props:{...A,modelValue:{default:""},mode:{default:"default"},inputmode:{default:"text"},placeholder:{default:""},type:{default:"text"},mask:{type:String,default:"mask:___"},flag:{type:String,default:"_"},pattern:{type:String,default:"[Ss]*"},inputRules:{type:String,default:"[Ss]*"},readonly:{default:!1},maxlength:{default:""},prefix:{default:""},suffix:{default:""},leftIcon:{default:""},icon:{default:""},iconForeground:{default:""},underline:{default:!1},background:{default:""},borderWidth:{default:1},borderColor:{default:""},focusBorderColor:{default:""},fontSize:{default:13.3},fontWeight:{default:"normal"},foreground:{default:""},borderRadius:{default:3},textAlign:{default:"left"},isBoxShadow:{default:!1},revealBorder:{default:!1},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},status:{default:""},debounceDelay:{default:300},cursor:{default:""},disabled:{default:!1}},emits:["update:modelValue","debounce-input","keydown","keyup","change","paste","left-icon-click","icon-click","click"],setup(t,{expose:i,emit:e}){const o=n.ref(null);return i({focus:()=>{o.value.focusInspect()}}),(s,l)=>{const a=n.resolveComponent("fv-reveal-container");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-TextBox",[s.$theme,t.status,s.isFocus?"focus":"",s.isDisabled?"disabled":"",s.isUnderline?"underline":"",{shadow:t.isBoxShadow}]]),style:n.normalizeStyle([{background:t.background,borderRadius:`${t.borderRadius}px`}]),onClick:l[8]||(l[8]=d=>{s.isFocus=!0,s.$emit("click",d)})},[n.createVNode(a,{parent:()=>s.$el,class:"fv-text-box-reveal-container",backgroundColor:s.backgroundLightColor,borderColor:s.borderLightColor,backgroundGradientSize:120,borderGradientSize:60,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:s.isDisabled||!t.revealBorder},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),n.createElementVNode("div",{class:"fv-text-box-wrapper-container",style:n.normalizeStyle({borderWidth:`${t.borderWidth}px`,borderColor:s.isFocus?t.focusBorderColor:t.borderColor,borderRadius:`${t.borderRadius}px`})},[n.withDirectives(n.createElementVNode("div",Y0,[n.createElementVNode("p",null,n.toDisplayString(t.prefix),1)],512),[[n.vShow,t.prefix!=""]]),n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${t.leftIcon}`]]),style:n.normalizeStyle({color:t.iconForeground}),onClick:l[0]||(l[0]=d=>s.$emit("left-icon-click",d))},null,6),[[n.vShow,t.leftIcon!=""]]),n.createVNode(Ks,{modelValue:s.thisValue,"onUpdate:modelValue":l[1]||(l[1]=d=>s.thisValue=d),ref_key:"core",ref:o,mode:t.mode,inputmode:t.inputmode,type:t.type,placeholder:t.placeholder,mask:t.mask,flag:t.flag,pattern:t.pattern,inputRules:t.inputRules,readonly:t.readonly,maxlength:t.maxlength,disabled:t.disabled,fontSize:t.fontSize,fontWeight:t.fontWeight,foreground:t.foreground,textAlign:t.textAlign,cursor:t.cursor,focus:s.isFocus,"onUpdate:focus":l[2]||(l[2]=d=>s.isFocus=d),onKeydown:l[3]||(l[3]=d=>s.$emit("keydown",d)),onKeyup:l[4]||(l[4]=d=>s.$emit("keyup",d)),onChange:l[5]||(l[5]=d=>s.$emit("change",d)),onPaste:l[6]||(l[6]=d=>s.$emit("paste",d))},null,8,["modelValue","mode","inputmode","type","placeholder","mask","flag","pattern","inputRules","readonly","maxlength","disabled","fontSize","fontWeight","foreground","textAlign","cursor","focus"]),n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${t.icon}`]]),style:n.normalizeStyle({color:t.iconForeground}),onClick:l[7]||(l[7]=d=>s.$emit("icon-click",d))},null,6),[[n.vShow,t.icon!=""]]),n.withDirectives(n.createElementVNode("div",j0,[n.createElementVNode("p",null,n.toDisplayString(t.suffix),1)],512),[[n.vShow,t.suffix!=""]])],4)],6)}}}),Js=W(X0),kC="",vC="",CC="",q0=["placeholder","readonly","disabled","maxlength"],K0=Object.assign({name:"FvTextField",data(){return{thisValue:(typeof this.modelValue).toString()=="string"?this.modelValue:"",isFocus:!1}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)}},computed:{$theme(){return z(this.$props).theme.value},isUnderline(){return this.underline.toString()=="true"||this.underline=="underline"||this.underline===""},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"}},mounted(){},methods:{focus(t,i){this.isFocus=t,t?this.$emit("focus",i):this.$emit("blur",i)}}},{props:{...A,modelValue:{default:""},readonly:{default:!1},placeholder:{default:""},maxlength:{default:""},disabled:{default:!1},underline:{default:!1},background:{default:""},borderWidth:{default:1},borderColor:{default:""},focusBorderColor:{default:""},fontSize:{default:13.8},fontWeight:{default:"normal"},foreground:{default:""},textAlign:{default:"left"},borderRadius:{default:3},isBoxShadow:{default:!1},revealBorder:{default:!1},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},status:{default:""}},emits:["update:modelValue","focus","blur","keydown","keyup","change","paste"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-reveal-container");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-TextField",[e.$theme,t.status,{focus:e.isFocus},{disabled:e.isDisabled},{underline:e.isUnderline},{shadow:t.isBoxShadow}]]),style:n.normalizeStyle([{background:t.background,borderRadius:`${t.borderRadius}px`}])},[n.createVNode(r,{parent:()=>e.$el,class:"fv-text-field-reveal-container",backgroundColor:e.backgroundLightColor,borderColor:e.borderLightColor,backgroundGradientSize:120,borderGradientSize:60,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:e.isDisabled||!t.revealBorder},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),n.createElementVNode("div",{class:"text-field-wrapper-container",style:n.normalizeStyle({borderWidth:`${t.borderWidth}px`,borderColor:e.isFocus?t.focusBorderColor:t.borderColor,borderRadius:`${t.borderRadius}px`})},[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":o[0]||(o[0]=s=>e.thisValue=s),placeholder:t.placeholder,class:"fv-text-field-input",readonly:e.isReadOnly,disabled:e.isDisabled,maxlength:t.maxlength,style:n.normalizeStyle({"font-size":`${t.fontSize}px`,"font-weight":t.fontWeight,color:t.foreground,"text-align":t.textAlign}),onKeydown:o[1]||(o[1]=s=>e.$emit("keydown",s)),onKeyup:o[2]||(o[2]=s=>e.$emit("keyup",s)),onChange:o[3]||(o[3]=s=>e.$emit("change",s)),onPaste:o[4]||(o[4]=s=>e.$emit("paste",s)),onFocus:o[5]||(o[5]=s=>e.focus(!0,s)),onBlur:o[6]||(o[6]=s=>e.focus(!1,s))},null,44,q0),[[n.vModelText,e.thisValue]])],4)],6)}}}),Qs=W(K0),SC="",$C="",EC="",J0=["value"],Q0=["value"],Z0=["value"],eb={class:"fv-time-picker-options-body"},tb=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretUpSolid8"},null,-1)],ib={class:"fv-time-picker-options-body-items swiper",ref:"hour"},nb=[n.createElementVNode("div",{class:"swiper-wrapper"},null,-1)],ob=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretDownSolid8"},null,-1)],rb=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretUpSolid8"},null,-1)],sb={class:"fv-time-picker-options-body-items swiper",ref:"minute"},lb={class:"swiper-wrapper"},ab={class:"fv-time-picker-options-body-item swiper-slide"},db=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretDownSolid8"},null,-1)],hb={class:"fv-time-picker-options-body-col"},ub=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretUpSolid8"},null,-1)],cb={class:"fv-time-picker-options-body-items swiper",ref:"period"},fb={class:"swiper-wrapper"},mb={class:"fv-time-picker-options-body-item swiper-slide"},gb=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretDownSolid8"},null,-1)],pb={class:"fv-time-picker-options-bar"},wb=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Accept"},null,-1)],bb=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel"},null,-1)];oe.use([Ur]);const yb=Object.assign({name:"FvTimePicker",data(){return{show:!1,thisValue:new Date(this.modelValue),hourSwiper:null,minuteSwiper:null,periodSwiper:null,timer:{debounce:null},scrollCount:{hour:0,minute:0}}},watch:{show(t){t&&this.$nextTick(()=>{this.syncTime()})},modelValue(){this.thisValue=this.modelValue},thisValue(){this.$emit("update:modelValue",this.thisValue),this.$emit("change",new Date(this.thisValue))},timeType(){this.hourSwiper.virtual.cache=[],this.hourSwiper.virtual.slides=this.virtualHourList,this.hourSwiper.virtual.update(),this.syncTime()}},computed:{$theme(){return z(this.$props).theme.value},hourList(){let t=[];if(this.timeType==12){for(let i=0;i<12;i++)t.push(i+1);return t}for(let i=0;i<24;i++)t.push(i);return t},virtualHourList(){let t=[];for(let i=0;i<30;i++)t=t.concat(this.hourList);return t},minuteList(){let t=[];for(let i=0;i<60;i++)t.push(i);return t}},mounted(){this.init(),this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent),window.addEventListener("touchend",this.outSideClickEvent)},outSideClickEvent(t){t.composedPath().includes(this.$el)||(this.show=!1)},init(){const t={direction:"vertical",slidesPerView:9,centeredSlides:!0,speed:100,on:{click(i,e){const o=i.clickedIndex,r=i.clickedSlide;o!=null&&r&&i.slideTo(o)}}};this.hourSwiper=new oe(this.$refs.hour,{...t,initialSlide:this.timeType==12?this.decodeTime(0)-1:this.decodeTime(0),freeMode:{momentum:!0,sticky:!0},virtual:{slides:this.virtualHourList,renderSlide:(i,e)=>`<div class="fv-time-picker-options-body-item swiper-slide">
33
+ </div>`}}),this.monthSwiper.on("sliderMove",()=>{this.getDayList()}),this.yearSwiper.on("sliderMove",()=>{this.getDayList()}),this.$refs.month.addEventListener("wheel",i=>{i.preventDefault();let e=i.deltaY;e=parseInt(e/100),this.scrollCount.month+=e,this.scrollDispatch(this.monthSwiper,"month")}),this.$refs.day.addEventListener("wheel",i=>{i.preventDefault();let e=i.deltaY;e=parseInt(e/100),this.scrollCount.day+=e,this.scrollDispatch(this.daySwiper,"day")}),this.$refs.year.addEventListener("wheel",i=>{i.preventDefault();let e=i.deltaY;e=parseInt(e/100),this.scrollCount.year+=e,this.scrollDispatch(this.yearSwiper,"year")})},focus(){this.disabled||(this.show=!0)},getDayList(){let t=[],i=this.thisValue.getMonth(),e=this.thisValue.getFullYear();this.monthSwiper&&this.yearSwiper&&(i=this.monthSwiper.realIndex%this.months.length,e=this.yearSwiper.realIndex+1900);let o=new Date(e,i+1,0).getDate();for(let s=1;s<=o;s++)t.push(s);let r=this.daySwiper.realIndex%this.dayList.length;this.dayList=t,this.daySwiper.virtual.cache=[],this.daySwiper.virtual.slides=this.virtualDayList,this.daySwiper.virtual.update(),this.daySwiper.slideToLoop(15*this.dayList.length+r,0)},decodeDate(t){return t===0?this.thisValue.getMonth():t===1?this.thisValue.getDate():this.thisValue.getFullYear()},showDate(t){let i=this.decodeDate(t);return t===0?this.months[i]:t===1&&i<10?`0${i}`:i},showItem(t,i=!1){if(parseFloat(t).toString()==="NaN")return t;if(i){let e=this.monthSwiper.realIndex%this.months.length,o=this.yearSwiper.realIndex+1900,r=new Date(o,e,t),s=this.weeks[r.getDay()%7];return t<10?`0${t} (${s})`:`${t} (${s})`}return t<10?`0${t}`:t},syncTime(){this.daySwiper.slideToLoop(15*this.dayList.length+this.decodeDate(1)-1,0),this.monthSwiper.slideToLoop(15*this.months.length+this.decodeDate(0),0),this.yearSwiper.slideToLoop(this.decodeDate(2)-1900,0)},accept(){let t=this.monthSwiper.realIndex%this.months.length,i=this.daySwiper.realIndex%this.dayList.length+1,e=this.yearSwiper.realIndex+1900,o=new Date(this.thisValue);o.setMonth(t),o.setDate(i),o.setFullYear(e),this.thisValue=new Date(o),this.show=!1},scrollDispatch(t,i){!t||(clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{this.scrollExec(t,i),this.scrollCount[i]=0},20))},scrollExec(t,i){let e=this.scrollCount[i];e=e>3?3:e;let o=t.realIndex;o=o+e,t.slideToLoop(o),i.includes("month","year")&&this.getDayList()}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent),window.removeEventListener("touchend",this.outSideClickEvent)}},{props:{...A,modelValue:{type:Date,default:()=>new Date},months:{default:()=>["January","February","March","April","May","June","July","August","September","October","November","December"]},weeks:{default:()=>["Sun.","Mon.","Tue.","Wed.","Thu.","Fri.","Sat."]},hideYear:{default:!1},hideMonth:{default:!1},hideDay:{default:!1},showWeek:{default:!1},inputBackground:{default:""},innerBorderColor:{type:String,default:"rgba(200, 200, 200, 0.3)"},selectedBackground:{default:""},optionBackground:{default:""},slideBtnBackground:{default:""},reverseLayout:{default:!1},disabled:{type:Boolean,default:!1},hoverColor:{type:String,default:void 0}},emits:["update:modelValue","change"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-DatePicker",[e.$theme,{disabled:t.disabled}]]),style:n.normalizeStyle({"--hover-color":t.hoverColor})},[n.createElementVNode("div",{class:n.normalizeClass(["fv-date-picker-input",[{reverse:t.reverseLayout}]]),style:n.normalizeStyle({background:t.inputBackground}),onClick:o[0]||(o[0]=r=>e.focus())},[n.withDirectives(n.createElementVNode("input",{value:e.showDate(0),readonly:"",class:"fv-date-picker-input-item",style:{flex:"2"}},null,8,Kc),[[n.vShow,!t.hideMonth]]),n.withDirectives(n.createElementVNode("input",{value:e.showDate(1),readonly:"",class:"fv-date-picker-input-item",style:n.normalizeStyle({borderColor:t.innerBorderColor})},null,12,Jc),[[n.vShow,!t.hideDay]]),n.withDirectives(n.createElementVNode("input",{value:e.showDate(2),readonly:"",style:n.normalizeStyle({borderColor:t.innerBorderColor}),class:"fv-date-picker-input-item"},null,12,Qc),[[n.vShow,!t.hideYear]])],6),n.createVNode(n.Transition,{name:"fv-date-picker-options"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:"fv-date-picker-options",style:n.normalizeStyle({background:t.optionBackground})},[n.createElementVNode("div",{class:n.normalizeClass(["fv-date-picker-options-body",[{reverse:t.reverseLayout}]])},[n.createElementVNode("div",{class:"fv-date-picker-options-body-mask",style:n.normalizeStyle({background:t.selectedBackground})},null,4),n.withDirectives(n.createElementVNode("div",{class:"fv-date-picker-options-body-col",style:n.normalizeStyle([{flex:"2"},{borderColor:t.innerBorderColor}])},[n.createElementVNode("div",{class:"fv-date-picker-options-body-col-up",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[1]||(o[1]=r=>e.monthSwiper.slidePrev())},Zc,4),n.createElementVNode("div",ef,tf,512),n.createElementVNode("div",{class:"fv-date-picker-options-body-col-down",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[2]||(o[2]=r=>e.monthSwiper.slideNext())},nf,4)],4),[[n.vShow,!t.hideMonth]]),n.withDirectives(n.createElementVNode("div",{class:"fv-date-picker-options-body-col",style:n.normalizeStyle({borderColor:t.innerBorderColor})},[n.createElementVNode("div",{class:"fv-date-picker-options-body-col-up",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[3]||(o[3]=r=>e.daySwiper.slidePrev())},of,4),n.createElementVNode("div",rf,sf,512),n.createElementVNode("div",{class:"fv-date-picker-options-body-col-down",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[4]||(o[4]=r=>e.daySwiper.slideNext())},lf,4)],4),[[n.vShow,!t.hideDay]]),n.withDirectives(n.createElementVNode("div",af,[n.createElementVNode("div",{class:"fv-date-picker-options-body-col-up",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[5]||(o[5]=r=>e.yearSwiper.slidePrev())},df,4),n.createElementVNode("div",hf,uf,512),n.createElementVNode("div",{class:"fv-date-picker-options-body-col-down",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[6]||(o[6]=r=>e.yearSwiper.slideNext())},cf,4)],512),[[n.vShow,!t.hideYear]])],2),n.createElementVNode("div",ff,[n.createElementVNode("button",{class:"fv-date-picker-options-bar-accept",onClick:o[7]||(o[7]=(...r)=>e.accept&&e.accept(...r))},mf),n.createElementVNode("button",{class:"fv-date-picker-options-bar-cancel",onClick:o[8]||(o[8]=r=>e.show=!1)},gf)])],4),[[n.vShow,e.show]])]),_:1})],6))}}),Yr=W(pf),Ck="",Vk="",Sk="";class de{static preProcessElements(i,e){let o=[];return i.forEach(r=>{r.hashCode||(r.hashCode=this.GuidWithoutDash());let s={oriBg:getComputedStyle(r)["background-image"],oriBorder:getComputedStyle(r)["border-image"],oriBgRepeat:getComputedStyle(r)["background-repeat"],isBindingClickEvent:!1,wave:0,clickWave:{},revealPosition:{x:0,y:0},options:{backgroundGradientSize:150,borderGradientSize:80,borderLightColor:"rgba(255, 255, 255, 0.25)",backgroundLightColor:"rgba(255, 255, 255, 0.25)",status:"enabled"},el:r};s.options=Object.assign(s.options,e),o.push(s)}),o}static getOffset(i){return{top:i.el.getBoundingClientRect().top,left:i.el.getBoundingClientRect().left}}static drawEffectBasic(i,e=!1,o="background"){let r,s;r=`radial-gradient(circle ${this.valueTrigger(i.options.borderGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.borderLightColor)}, rgba(255,255,255,0)) 5% 5% 5% 5%`,e===!1?s=`radial-gradient(circle ${this.valueTrigger(i.options.backgroundGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0))`:s=`radial-gradient(circle ${this.valueTrigger(i.options.backgroundGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0)), radial-gradient(circle ${i.wave}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, rgba(255,255,255,0), ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0), rgba(255,255,255,0))`,o=="background"?e==!0?(i.wave=120,i.clickWave=setInterval(()=>{try{let l=i.wave,a=l/60+1;l+=a,l>=1e3?clearInterval(i.clickWave):(i.wave=l,s=`radial-gradient(circle ${this.valueTrigger(i.options.backgroundGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0)), radial-gradient(circle ${i.wave}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, rgba(255,255,255,0), ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0), rgba(255,255,255,0))`,i.el.style.backgroundImage=s,i.el.style.backgroundRepeat="no-repeat")}catch{}},50)):(clearInterval(i.clickWave),i.wave=0,s=`radial-gradient(circle ${this.valueTrigger(i.options.backgroundGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0))`,i.el.style.backgroundImage=s,i.el.style.backgroundRepeat="no-repeat"):o=="border"&&(i.el.style.borderImage=r)}static drawEffectBorder(i,e=!1){this.drawEffectBasic(i,e,"border")}static drawEffectBackground(i,e=!1){this.drawEffectBasic(i,e,"background")}static clearBackground(i){!i||(clearInterval(i.clickWave),i.wave=0,i.el.style.backgroundImage=i.oriBg,i.el.style.backgroundRepeat=i.oriBgRepeat)}static clearBorder(i){i.el.style.borderImage=i.oriBorder}static isInsideElement(i,e,o){const r={left:i.el.getBoundingClientRect().left,right:i.el.getBoundingClientRect().right,top:i.el.getBoundingClientRect().top,bottom:i.el.getBoundingClientRect().bottom};return e>=r.left&&e<=r.right&&o>=r.top&&o<=r.bottom}static distanceOfElement(i,e,o){const r={left:i.el.getBoundingClientRect().left,right:i.el.getBoundingClientRect().right,top:i.el.getBoundingClientRect().top,bottom:i.el.getBoundingClientRect().bottom};return{left:r.left-e,right:e-r.right,top:r.top-o,bottom:o-r.bottom}}static GuidWithoutDash(){function i(){return((1+Math.random())*65536|0).toString(16).substring(1)}return i()+i()+i()+i()+i()+i()+i()+i()}static valueTrigger(i){return typeof i=="function"?i():i}static getOffset(i){return{top:i.el.getBoundingClientRect().top,left:i.el.getBoundingClientRect().left}}static typeObj(i){let e=Object.prototype.toString.call(i);return e.substring(8,e.length-1)}static GuidWithoutDash(){function i(){return((1+Math.random())*65536|0).toString(16).substring(1)}return i()+i()+i()+i()+i()+i()+i()+i()}}class wf{constructor(){this.FvRevealElementList={window:{}},this.windowEventBinded=!1,this.initStatus=!1}init(){this.initStatus||(this.applyCommonEffects(),this.timer=setInterval(()=>{for(let i in this.FvRevealElementList.window)this.refreshChildren(i);for(let i in this.FvRevealElementList)i!="window"&&this.refreshChildren(i)},1e3),this.initStatus=!0)}apply(i,e){let o={key:de.GuidWithoutDash(),selector:".eff-reveal-border",backgroundGradientSize:150,borderGradientSize:80,borderLightColor:"rgba(255, 255, 255, 0.25)",backgroundLightColor:"rgba(255, 255, 255, 0.25)",eventTriggerMode:"window",status:"enabled"};e=Object.assign(o,e);let r=this.getChildren(i,e);return e.eventTriggerMode==="window"?(this.FvRevealElementList.window[e.key]={key:e.key,el:i,options:e,children:this.getChildrenX(r,e)},this.applyCommonEffects()):(this.FvRevealElementList[e.key]={key:e.key,el:i,options:e,children:this.getChildrenX(r,e)},this.applyCommonEffects(e.key)),e.key}refreshChildren(i){let e=this.FvRevealElementList[i];e||(e=this.FvRevealElementList.window[i]);let o=[].slice.call(this.getChildren(e.el,e.options),0);e.children=[...e.children,...this.getChildrenX(o.filter(r=>!r.hashCode),e.options)]}getChildren(i,e){return i==null&&(i=document),e.selector?typeof e.selector=="string"?i.querySelectorAll(e.selector):Array.isArray(e.selector)?e.maskedSelector:de.typeObj(e.selector)==="NodeList"?e.selector:[e.selector]:[]}getChildrenX(i,e){let o=de.preProcessElements(i,e);for(let r of o)this.applyClickEffects(r);return o}applyCommonEffects(i="window"){if(typeof global<"u")return;let e;if(window!==void 0){if(e=window,this.windowEventBinded)return;this.windowEventBinded=!0}if(i!="window"&&(e=this.FvRevealElementList[i].el),e===void 0)return;let o=i==="window"?this.FvRevealElementList.window:{key:this.FvRevealElementList[i]},r=l=>{if(l.type.indexOf("mouse")<0&&(l=l.targetTouches[0]),!!o)for(let a in o){let d=o[a];for(let h of d.children){if(de.valueTrigger(h.options.status)==="disabled")continue;let u=l.pageX-de.getOffset(h).left-window.scrollX,c=l.pageY-de.getOffset(h).top-window.scrollY;h.revealPosition.x=u,h.revealPosition.y=c;let f=de.distanceOfElement(h,l.clientX,l.clientY);f.left>300||f.top>300||f.right>300||f.bottom>300||de.drawEffectBorder(h),de.isInsideElement(h,l.clientX,l.clientY)?h.wave==0&&de.drawEffectBackground(h):de.clearBackground(h)}}},s=l=>{if(!!o)for(let a in o){let d=o[a];for(let h of d.children)de.clearBackground(h),de.clearBorder(h)}};e.addEventListener("mousemove",r),e.addEventListener("touchmove",r),e.addEventListener("mouseleave",s),e.addEventListener("touchend",s)}applyClickEffects(i){let e=s=>{let l=s.target,a=!1;for(;l&&l.tagName&&l.tagName.toLowerCase()!="body";){if(l==i.el){a=!0;break}l=l.parentNode}return a},o=s=>{if(!e(s)||de.valueTrigger(i.options.status)==="disabled")return;s.type.indexOf("mouse")<0&&(s=s.targetTouches[0]);let l=s.pageX-de.getOffset(i).left-window.scrollX,a=s.pageY-de.getOffset(i).top-window.scrollY;i.revealPosition.x=l,i.revealPosition.y=a,de.drawEffectBackground(i,!0)},r=s=>{de.drawEffectBackground(i)};i.isBindingClickEvent||(i.el.addEventListener("mousedown",o),i.el.addEventListener("touchstart",o),i.el.addEventListener("mouseup",r),i.isBindingClickEvent=!0)}destroy(i){let e=[];return this.FvRevealElementList.window[i]&&e.push("window"),this.FvRevealElementList[i]&&e.push("parent"),delete this.FvRevealElementList.window[i],delete this.FvRevealElementList[i],{exists:e,key:i}}}class Q{static preProcessElements(i,e,o="target"){let r=[];return i.forEach(s=>{s.hashCode||(s.hashCode=this.GuidWithoutDash());let l={oriBg:getComputedStyle(s)["background-image"],oriBorder:getComputedStyle(s)["border-image"],oriBgRepeat:getComputedStyle(s)["background-repeat"],isBindingClickEvent:!1,wave:0,clickWave:{},revealPosition:{x:0,y:0},options:{backgroundGradientSize:150,borderGradientSize:80,borderLightColor:"rgba(255, 255, 255, 0.25)",backgroundLightColor:"rgba(255, 255, 255, 0.25)",elementType:o,status:"enabled"},el:s};l.options=Object.assign(l.options,e),r.push(l)}),r}static getOffset(i){return{top:i.el.getBoundingClientRect().top,left:i.el.getBoundingClientRect().left}}static drawEffectBasic(i,e=!1,o="background"){let r,s;r=`radial-gradient(circle ${this.valueTrigger(i.options.borderGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.borderLightColor)}, rgba(255,255,255,0))`,e===!1?s=`radial-gradient(circle ${this.valueTrigger(i.options.backgroundGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0))`:s=`radial-gradient(circle ${this.valueTrigger(i.options.backgroundGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0)), radial-gradient(circle ${i.wave}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, rgba(255,255,255,0), ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0), rgba(255,255,255,0))`,o=="background"?e==!0?(i.wave=120,i.clickWave=setInterval(()=>{try{let l=i.wave,a=l/60+1;l+=a,l>=1e3?clearInterval(i.clickWave):(i.wave=l,s=`radial-gradient(circle ${this.valueTrigger(i.options.backgroundGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0)), radial-gradient(circle ${i.wave}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, rgba(255,255,255,0), ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0), rgba(255,255,255,0))`,i.el.style.backgroundImage=s,i.el.style.backgroundRepeat="no-repeat")}catch{}},50)):(clearInterval(i.clickWave),i.wave=0,s=`radial-gradient(circle ${this.valueTrigger(i.options.backgroundGradientSize)}px at ${i.revealPosition.x}px ${i.revealPosition.y}px, ${this.valueTrigger(i.options.backgroundLightColor)}, rgba(255,255,255,0))`,i.el.style.backgroundImage=s,i.el.style.backgroundRepeat="no-repeat"):o=="border"&&(i.el.style.backgroundImage=r,i.el.style.backgroundRepeat="no-repeat")}static drawEffectBorder(i,e=!1){this.drawEffectBasic(i,e,"border")}static drawEffectBackground(i,e=!1){this.drawEffectBasic(i,e,"background")}static clearBackground(i){!i||(clearInterval(i.clickWave),i.wave=0,i.el.style.backgroundImage=i.oriBg,i.el.style.backgroundRepeat=i.oriBgRepeat)}static isInsideElement(i,e,o){const r={left:i.el.getBoundingClientRect().left,right:i.el.getBoundingClientRect().right,top:i.el.getBoundingClientRect().top,bottom:i.el.getBoundingClientRect().bottom};return e>=r.left&&e<=r.right&&o>=r.top&&o<=r.bottom}static distanceOfElement(i,e,o){const r={left:i.el.getBoundingClientRect().left,right:i.el.getBoundingClientRect().right,top:i.el.getBoundingClientRect().top,bottom:i.el.getBoundingClientRect().bottom};return{left:r.left-e,right:e-r.right,top:r.top-o,bottom:o-r.bottom}}static GuidWithoutDash(){function i(){return((1+Math.random())*65536|0).toString(16).substring(1)}return i()+i()+i()+i()+i()+i()+i()+i()}static valueTrigger(i){return typeof i=="function"?i():i}static getOffset(i){return{top:i.el.getBoundingClientRect().top,left:i.el.getBoundingClientRect().left}}static typeObj(i){let e=Object.prototype.toString.call(i);return e.substring(8,e.length-1)}static GuidWithoutDash(){function i(){return((1+Math.random())*65536|0).toString(16).substring(1)}return i()+i()+i()+i()+i()+i()+i()+i()}}class bf{constructor(){this.FvRevealElementList={window:{}},this.windowEventBinded=!1,this.initStatus=!1}init(){this.initStatus||(this.applyCommonEffects(),this.timer=setInterval(()=>{for(let i in this.FvRevealElementList.window)this.refreshChildren(i);for(let i in this.FvRevealElementList)i!="window"&&this.refreshChildren(i)},1e3),this.initStatus=!0)}apply(i,e){let o={key:Q.GuidWithoutDash(),selector:".eff-reveal-border",backgroundGradientSize:150,borderGradientSize:80,borderLightColor:"rgba(255, 255, 255, 0.25)",backgroundLightColor:"rgba(255, 255, 255, 0.25)",eventTriggerMode:"window",elementType:"target",status:"enabled"};e=Object.assign(o,e);let r=this.getTargetChildren(i,e),s=this.getMaskedChildren(i,e);return e.eventTriggerMode==="window"?(this.FvRevealElementList.window[e.key]={key:e.key,el:i,options:e,targetChildren:this.getChildrenX(r,e),maskedChildren:this.getChildrenX(s,e,"masked")},this.applyCommonEffects()):(this.FvRevealElementList[e.key]={key:e.key,el:i,options:e,targetChildren:this.getChildrenX(r,e),maskedChildren:this.getChildrenX(s,e,"masked")},this.applyCommonEffects(e.key)),e.key}refreshChildren(i){let e=this.FvRevealElementList[i];e||(e=this.FvRevealElementList.window[i]);let o=[].slice.call(this.getTargetChildren(parent,e.options),0),r=[].slice.call(this.getMaskedChildren(parent,e.options),0);e.targetChildren=[...e.targetChildren,...this.getChildrenX(o.filter(s=>!s.hashCode),e.options)],e.maskedChildren=[...e.maskedChildren,...this.getChildrenX(r.filter(s=>!s.hashCode),e.options,"masked")]}getMaskedChildren(i,e){return i==null&&(i=document),e.maskedSelector?typeof e.maskedSelector=="string"?i.querySelectorAll(e.maskedSelector):Array.isArray(e.maskedSelector)||Q.typeObj(e.maskedSelector)==="NodeList"?e.maskedSelector:[e.maskedSelector]:[]}getTargetChildren(i,e){return i==null&&(i=document),e.selector?typeof e.selector=="string"?i.querySelectorAll(e.selector):Array.isArray(e.selector)||Q.typeObj(e.selector)==="NodeList"?e.selector:[e.selector]:[]}getChildrenX(i,e,o="target"){let r=Q.preProcessElements(i,e,o);if(o==="target")for(let s of r)this.applyClickEffects(s);return r}applyCommonEffects(i="window"){if(typeof global<"u")return;let e;if(window!==void 0){if(e=window,this.windowEventBinded)return;this.windowEventBinded=!0}if(i!="window"&&(e=this.FvRevealElementList[i].el),e===void 0)return;let o=i==="window"?this.FvRevealElementList.window:{key:this.FvRevealElementList[i]},r=l=>{if(l.type.indexOf("mouse")<0&&(l=l.targetTouches[0]),!!o)for(let a in o){let d=o[a];for(let h of d.targetChildren){if(Q.valueTrigger(h.options.status)==="disabled")continue;let u=l.pageX-Q.getOffset(h).left-window.scrollX,c=l.pageY-Q.getOffset(h).top-window.scrollY;h.revealPosition.x=u,h.revealPosition.y=c,Q.isInsideElement(h,l.clientX,l.clientY)?h.wave==0&&Q.drawEffectBackground(h):Q.clearBackground(h)}for(let h of d.maskedChildren){if(Q.valueTrigger(h.options.status)==="disabled")continue;let u=l.pageX-Q.getOffset(h).left-window.scrollX,c=l.pageY-Q.getOffset(h).top-window.scrollY;h.revealPosition.x=u,h.revealPosition.y=c;let f=Q.distanceOfElement(h,l.clientX,l.clientY);f.left>300||f.top>300||f.right>300||f.bottom>300||Q.drawEffectBorder(h)}}},s=l=>{if(!!o)for(let a in o){let d=o[a];for(let h of d.targetChildren)Q.clearBackground(h);for(let h of d.maskedChildren)Q.clearBackground(h)}};e.addEventListener("mousemove",r),e.addEventListener("touchmove",r),e.addEventListener("mouseleave",s),e.addEventListener("touchend",s)}applyClickEffects(i){let e=s=>{let l=s.target,a=!1;for(;l&&l.tagName&&l.tagName.toLowerCase()!="body";){if(l==i.el){a=!0;break}l=l.parentNode}return a},o=s=>{if(!e(s)||Q.valueTrigger(i.options.status)==="disabled")return;s.type.indexOf("mouse")<0&&(s=s.targetTouches[0]);let l=s.pageX-Q.getOffset(i).left-window.scrollX,a=s.pageY-Q.getOffset(i).top-window.scrollY;i.revealPosition.x=l,i.revealPosition.y=a,Q.drawEffectBackground(i,!0)},r=s=>{Q.drawEffectBackground(i)};i.isBindingClickEvent||(i.el.addEventListener("mousedown",o),i.el.addEventListener("touchstart",o),i.el.addEventListener("mouseup",r),i.isBindingClickEvent=!0)}destroy(i){let e=[];return this.FvRevealElementList.window[i]&&e.push("window"),this.FvRevealElementList[i]&&e.push("parent"),delete this.FvRevealElementList.window[i],delete this.FvRevealElementList[i],{exists:e,key:i}}}const Fn=Ai("RevealCache",{state:()=>({revealHandlerList:new Array,revealDirectJs:new wf,revealMaskedJs:new bf}),actions:{initRevealInstances(){this.revealDirectJs.init(),this.revealMaskedJs.init()},setRevealHandler(t){this.revealHandlerList.push(t)},removeRevealHandler(t){let i=this.revealHandlerList.findIndex(e=>t===e.id);i!=-1&&this.revealHandlerList.splice(i,1)}}}),q=(t,i)=>{const e=t.__vccOpts||t;for(const[o,r]of i)e[o]=r;return e},yf={emits:["mousedown","mouseup","mousemove","touchstart","touchend","touchmove"],props:{theme:{type:String,default:"global"}},data(){return{moveable:!1}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.Init()},methods:{Init(){window.addEventListener("mousemove",t=>{this.moveable&&this.$emit("mousemove",t)}),window.addEventListener("mouseup",t=>{this.moveable&&this.stop()}),window.addEventListener("touchmove",t=>{this.moveable&&this.$emit("touchmove",t)}),window.addEventListener("touchend",t=>{this.moveable&&this.stop()})},forward(t){t.preventDefault(),this.moveable=!0,t.type==="mousedown"?this.$emit("mousedown",t):this.$emit("touchstart",t)},stop(t){this.moveable=!1,t&&(t.type==="mouseup"?this.$emit("mouseup",t):this.$emit("touchend",t))}}},kf=[n.createElementVNode("i",null,null,-1)];function vf(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",{class:"fv-details-list-spliter",onMousedown:i[0]||(i[0]=(...l)=>s.forward&&s.forward(...l)),onMouseup:i[1]||(i[1]=(...l)=>s.stop&&s.stop(...l)),onTouchstart:i[2]||(i[2]=(...l)=>s.forward&&s.forward(...l)),onTouchend:i[3]||(i[3]=(...l)=>s.stop&&s.stop(...l))},kf,32)}const jr=q(yf,[["render",vf]]),Cf={props:{modelValue:{default:!1},color:{default:""}},data(){return{checked:this.modelValue}},watch:{modelValue(t){this.checked=t},checked(t){}}},Vf=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--StatusCircleCheckmark fv-details-list-icon-accept"},null,-1)];function Sf(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-details-list-selector",[{choosen:r.checked}]])},[n.createElementVNode("div",{class:"fv-details-list-icon-ring",style:n.normalizeStyle({background:r.checked?e.color:""})},Vf,4)],2)}const si=q(Cf,[["render",Sf]]),$f=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"},null,-1)],Ef=["onClick"],xf={class:"default-title"},Tf=["draggable","onDrag","onDrop","onContextmenu"],Df=["onClick"],If=["onClick"],Bf=["onClick"],Nf=["onClick"],Lf=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"},null,-1)],Ff={class:"col",style:{"min-width":"150px"}},Mf=["onContextmenu"],Pf={class:"fv-details-list-icon-block",key:"multi-col"},Rf=["onClick"],_f=["onClick"],zf=Object.assign({name:"FvDetailsList",components:{spliter:jr,selector:si},data(){return{thisValue:[],listWidth:0,thisHead:[],thisGroup:[],posX:0,posY:0,rightMenuHeight:0,windowResize:{trigger:!1,width:0},sort:{name:"",desc:!1},dragTransfer:{},FR_Table_Head:null,show:{rightMenu:!1},styles:{listHead:{background:""}},uR:null,timer:{width:{},resize:{}}}},watch:{modelValue(t){if(this.valueInit(),this.sort.name!=""){let i=this.thisHead.find(e=>e.sortName===this.sort.name);i!=null&&this.sortClick(i,!1)}this.groupInit()},head:{deep:!0,handler(){this.headInit(),this.widthFormat(0)}},group(t){this.groupInit()},filter(t){this.filterValue()},"filter.value"(t){this.filterValue()},thisGroup(t){this.getGroupDataInit()},headBackground(t){this.stylesInit()},multiSelection(t){for(let i=0;i<this.thisValue.length;i++){let e=this.thisValue[i];e.choosen=!1,this.thisValue[i]=e}},listWidth(t){this.widthFormat(0)}},computed:{$theme(){return z(this.$props).theme.value},colWidth(){let t=[];for(let i of this.thisHead)t.push(`${i.width}px`);return t},currentChoosen(){let t=[];for(let i=0;i<this.thisValue.length;i++)this.thisValue[i].choosen&&this.thisValue[i].show&&t.push(this.thisValue[i]);return t},currentChoosenAll(){for(let t=0;t<this.thisValue.length;t++)if(this.thisValue[t].choosen!=!0&&this.thisValue[t].show)return!1;return!0},currentChoosenNum(){let t=0;for(let i=0;i<this.thisValue.length;i++)this.thisValue[i].choosen&&this.thisValue[i].show&&t++;return t},currentExpandAll(){for(let t=0;t<this.thisGroup.length;t++)if(this.thisGroup[t].expand!=!0)return!1;return!0},borderLightColor(){return()=>this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return()=>this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"}},beforeMount(){this.uR=Fn(),this.uR.initRevealInstances()},mounted(){this.headInit(),this.valueInit(),this.groupInit(),this.lazyLoadInit(),this.listWidthRefreshInit(),this.watchWindowResizeInit(),this.filterValue(),this.FRInit(),this.stylesInit()},methods:{FRInit(){this.FR_Table_Head=this.uR.revealMaskedJs.apply(this.$el,{maskedSelector:this.$refs.list_head,borderGradientSize:80,borderLightColor:this.borderLightColor,backgroundLightColor:this.backgroundLightColor,selector:this.$el.querySelectorAll(".list-head .col")})},stylesInit(){this.styles.listHead.background=this.headBackground},headInit(){let t={content:"",minWidth:60,width:80,disX:0,sortName:!1,customSort:!1,show:!0,visible:!0};this.thisHead=[];for(let i of this.head){let e=JSON.parse(JSON.stringify(t));if(typeof i=="string")e.content=i;else for(let o in i)e[o]=i[o];this.thisHead.push(e)}},valueInit(){let t=JSON.parse(JSON.stringify(this.modelValue));for(let i=0;i<t.length;i++)t[i].choosen=t[i].choosen==null?!1:t[i].choosen,t[i].show=!0;this.thisValue=t,this.filterValue()},groupInit(){let t={name:"",key:60,value:80,data:[],expand:!0};this.thisGroup=[];for(let i of this.group){let e=JSON.parse(JSON.stringify(t));if(typeof i=="string")e.name=i;else for(let o in i)e[o]=i[o];this.thisGroup.push(e)}},getGroupDataInit(){let t=this.thisGroup;for(let i=0;i<t.length;i++){t[i].data=[];for(let e of this.thisValue)e[t[i].key]==t[i].value&&t[i].data.push(e)}},listWidthRefreshInit(){this.timer.width=setInterval(()=>{let t=this.$el.clientWidth;this.multiSelection&&(t-=50),this.showGroup&&(t-=36),this.listWidth=t},30)},watchWindowResizeInit(){window.addEventListener("resize",()=>{this.windowResize.trigger=!0}),this.timer.resize=setInterval(()=>{let t=document.body.clientWidth;this.windowResize.trigger&&this.windowResize.width==t&&(this.headInit(),this.widthFormat(0),this.windowResize.trigger=!1),this.windowResize.width=t},350)},lazyLoadInit(){this.$SUtility.ScrollToLoadInit(this.$refs.l1,()=>{this.$emit("lazyload",this.thisValue)}),this.$SUtility.ScrollToLoadInit(this.$refs.l2,()=>{this.$emit("lazyload",this.thisValue)})},filterValue(){let t=this.filter;if(typeof this.filter=="string"&&(t={key:"any",value:this.filter}),t.key==null||t.value==null)return console.warn(this.filter,"Invalid filter."),0;if(t.key=="any")for(let i=0;i<this.thisValue.length;i++){let e=!1,o=this.thisValue[i];for(let r in this.thisValue[i])if(typeof o[r]=="string"&&o[r].toLowerCase().indexOf(t.value.toLowerCase())>-1){e=!0;break}o.show=e}else for(let i=0;i<this.thisValue.length;i++){let e=this.thisValue[i],o=this.thisValue[i][this.filter.key].toLowerCase().indexOf(t.value.toLowerCase())>-1;e.show=o}this.$emit("change-value",this.thisValue)},resizeDown(t,i){let e=this.thisHead[i];e.disX=t.clientX,this.thisHead[i]=e},resizeMove(t,i){for(let l=this.thisHead.length-1;l>=0;l--)if(this.thisHead[l].visible){if(l===i)return;break}let e=this.thisHead[i],o=t.clientX-e.disX;e.disX=t.clientX;let r=e.width+o;r=r<e.minWidth?e.minWidth:r;let s=0;for(let l=0;l<i;l++)s+=this.thisHead[l].width;r=r>this.listWidth-s?this.listWidth-s:r,e.width=r,this.thisHead[i]=e,this.widthFormat(i)},widthFormat(t){if(t<this.thisHead.length-1){let i=0;for(let r=0;r<=t;r++)!this.thisHead[r].visible||(i+=this.thisHead[r].width);let e=this.listWidth-i,o=0;for(let r=t+1;r<this.thisHead.length;r++)!this.thisHead[r].visible||(o+=this.thisHead[r].width);for(let r=this.thisHead.length-1;r>t;r--){if(!this.thisHead[r].visible)continue;let s=o-this.thisHead[r].width;if(s+this.thisHead[r].minWidth<=e){let l=this.thisHead[r];l.width=e-s,l.show=!0;break}else{let l=this.thisHead[r];l.show=!1}o-=this.thisHead[r].width}}},itemChooseClick(t){this.thisValue.indexOf(t);let i=t;i.choosen=!i.choosen,this.$emit("change-value",this.thisValue),this.$emit("choose-items",this.currentChoosen)},chooseCurrent(t){for(let i=0;i<this.thisValue.length;i++){let e=this.thisValue[i];e.choosen=!1}t.choosen=!0,this.$emit("change-value",this.thisValue),this.$emit("choose-items",this.currentChoosen)},chooseAll(){let t=!this.currentChoosenAll;for(let i=0;i<this.thisValue.length;i++){let e=this.thisValue[i];e.choosen=t}this.$emit("change-value",this.thisValue),this.$emit("choose-items",this.currentChoosen)},isGroupChooseAll(t){for(let i=0;i<t.data.length;i++)if(!t.data[i].choosen)return!1;return!0},chooseGroup(t){let i=!this.isGroupChooseAll(t);for(let e=0;e<t.data.length;e++){let o=t.data[e];o.choosen=i}this.$emit("change-value",this.thisValue),this.$emit("choose-items",this.currentChoosen)},expandGroup(t){let i=this.thisGroup.indexOf(t),e=t;e.expand=!e.expand,this.thisGroup[i]=e},expandAll(){let t=!this.currentExpandAll;for(let i=0;i<this.thisGroup.length;i++){let e=this.thisGroup[i];e.expand=t}},rightClick(t,i){!this.showRightMenu||(t.preventDefault(),t.stopPropagation(),this.$refs.rightMenu.rightClick(t,this.$el),this.$emit("rightclick",i))},sortClick(t,i=!0){let e=this.sort.desc;if(t.sortName==!1)return 0;this.sort.name!=t.sortName?e=!1:e=i?!this.sort.desc:this.sort.desc,this.sort.name=t.sortName,this.sort.desc=e,e=e?-1:1,t.customSort!=!1?this.thisValue.sort((o,r)=>e*t.customSort(o,r)):this.inteliSort(t.sortName,e)},inteliSort(t=0,i=!1){let e=this.sortName,o=[/^\d{4}[-/]\d{1,2}[-/]\d{1,2} \d{1,2}:\d{1,2}:\d{1,2}$/,/^\d{1,2}[-/]\d{1,2}[-/]\d{4} \d{1,2}:\d{1,2}:\d{1,2}$/,/^\d{4}[-/]\d{1,2}[-/]\d{1,2}/,/^\d{1,2}[-/]\d{1,2}[-/]\d{4}/],r=this.thisValue[0][t];if(!isNaN(r))e=this.sortNum;else for(let s of o)r.toString().match(s)&&(e=this.sortTime);this.thisValue.sort((s,l)=>i*e(s[t],l[t]))},sortNum(t,i){return parseFloat(t)<parseFloat(i)?1:-1},sortName(t,i){return t.localeCompare(i)},sortTime(t,i){return this.$SDate.Compare(this.$SDate.Parse(t),this.$SDate.Parse(i))},drag(t,i){this.currentChoosenNum==0?this.dragTransfer=i:i.choosen?this.dragTransfer=this.currentChoosen:(this.chooseCurrent(i),this.dragTransfer=i)},drop(t){let i=this.dragTransfer,e=t,o=this.thisValue.indexOf(e);if(this.currentChoosenNum>0&&i[0].choosen){for(let r=i.length-1;r>=0;r--)this.thisValue.splice(this.thisValue.indexOf(i[r]),1);e.choosen?this.thisValue.splice(0,0,...i):(o=this.thisValue.indexOf(e),this.thisValue.splice(o,0,...i))}else{let r=this.thisValue.indexOf(i);this.thisValue.splice(r,1),this.thisValue.splice(o,0,i)}this.$emit("drop-items",{transfer:i,value:this.thisValue})},valueTrigger(t){return typeof t=="function"?t():t}},beforeUnmount(){for(let t in this.timer)clearInterval(this.timer[t]);this.uR.revealMaskedJs.destroy(this.FR_Table_Head)}},{props:{...A,modelValue:{default:()=>[]},head:{default:()=>[]},group:{default:()=>[]},filter:{default:()=>({key:"any",value:""})},showGroup:{default:!1},autoHeight:{default:!1},foreground:{default:""},headBackground:{default:""},compact:{default:!1},multiSelection:{default:!1},allowDrag:{default:!1},showRightMenu:{default:!0},rowCss:{default:""},rightMenuWidth:{default:200},rightMenuBackground:{default:""},rightMenuFullExpand:{default:!1}},emits:["change-value","choose-items","lazyload","rightclick","drop-items"],setup(t,{expose:i,emit:e}){const{proxy:o}=n.getCurrentInstance();return i({headInit:(...r)=>o.headInit(...r)}),(r,s)=>{const l=n.resolveComponent("fv-right-menu");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-DetailsList",[r.$theme]])},[n.createElementVNode("div",{class:n.normalizeClass(["fv-details-list-head",{"fv-custom-head":!0}]),ref:"list_head"},[n.withDirectives(n.createElementVNode("span",{class:"fv-details-list-icon-block",style:n.normalizeStyle(r.styles.listHead),onClick:s[1]||(s[1]=(...a)=>r.chooseAll&&r.chooseAll(...a))},[n.createVNode(si,{modelValue:r.currentChoosenAll,"onUpdate:modelValue":s[0]||(s[0]=a=>r.currentChoosenAll=a),color:t.foreground},null,8,["modelValue","color"])],4),[[n.vShow,t.multiSelection]]),n.withDirectives(n.createElementVNode("span",{class:"col",style:n.normalizeStyle([{width:"36px",padding:"0px"},r.styles.listHead])},[n.createElementVNode("span",{class:n.normalizeClass(["expand",{choose:r.currentExpandAll}]),onClick:s[2]||(s[2]=(...a)=>r.expandAll&&r.expandAll(...a))},$f,2)],4),[[n.vShow,t.showGroup]]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.thisHead,(a,d)=>n.withDirectives((n.openBlock(),n.createElementBlock("span",{class:"col",key:`head: ${d}`,style:n.normalizeStyle({"min-width":r.colWidth[d],width:r.colWidth[d],background:r.styles.listHead.background})},[n.createElementVNode("span",{class:"col-content",onClick:h=>r.sortClick(a)},[n.renderSlot(r.$slots,"head",{item:a,index:d},()=>[n.createElementVNode("p",xf,n.toDisplayString(r.valueTrigger(a.content)),1)]),n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon sort",[`ms-Icon--${r.sort.desc?"Down":"Up"}`]])},null,2),[[n.vShow,a.sortName===r.sort.name]])],8,Ef),n.createVNode(jr,{style:{height:"100%"},onMousedown:h=>r.resizeDown(h,d),onMousemove:h=>r.resizeMove(h,d),onTouchstart:h=>r.resizeDown(h.targetTouches[0],d),onTouchmove:h=>r.resizeMove(h.targetTouches[0],d)},null,8,["onMousedown","onMousemove","onTouchstart","onTouchmove"])],4)),[[n.vShow,a.show&&r.valueTrigger(a.visible)]])),128))],512),t.showGroup?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["fv-details-list-content",{compact:t.compact,"auto-height":t.autoHeight}]),ref:"l1"},[n.createVNode(n.TransitionGroup,{name:"details-list",tag:"div"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.thisValue,(a,d)=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["content-row",[{choose:a.choosen,"fv-custom-row":!0},t.rowCss]]),key:`row: ${d}`,draggable:t.allowDrag,onDrag:h=>r.drag(h,a),onDragover:s[3]||(s[3]=h=>h.preventDefault()),onDrop:h=>r.drop(a),onContextmenu:h=>r.rightClick(h,a)},[n.withDirectives(n.createElementVNode("span",{class:"fv-details-list-icon-block",key:"multi-col",onClick:h=>r.itemChooseClick(a)},[n.createVNode(si,{modelValue:a.choosen,"onUpdate:modelValue":h=>a.choosen=h,color:t.foreground},null,8,["modelValue","onUpdate:modelValue","color"])],8,Df),[[n.vShow,t.multiSelection]]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.thisHead,(h,u)=>n.withDirectives((n.openBlock(),n.createElementBlock("span",{class:"col",key:`row: ${d} col: ${u}`,style:n.normalizeStyle({width:r.colWidth[u]}),onClick:c=>r.chooseCurrent(a)},[n.renderSlot(r.$slots,`column_${u}`,{item:a,row_index:d,col_index:u},()=>[n.createElementVNode("p",null,n.toDisplayString(`row: ${d} col: ${u}`),1)])],12,If)),[[n.vShow,h.show&&r.valueTrigger(h.visible)]])),128)),n.renderSlot(r.$slots,"row_expand",{item:a,row_index:d})],42,Tf)),[[n.vShow,a.show]])),128))]),_:3})],2)),t.showGroup?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["fv-details-list-content",{compact:t.compact,"auto-height":t.autoHeight}]),ref:"l2"},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.thisGroup,(a,d)=>(n.openBlock(),n.createElementBlock("div",{key:`group: ${d}`},[n.createElementVNode("div",{class:n.normalizeClass(["content-row",{choose:r.isGroupChooseAll(a),"fv-custom-group-row":!0}])},[n.renderSlot(r.$slots,"group",{item:a,index:d,isMulti:t.multiSelection,isChoose:r.isGroupChooseAll(a)},()=>[n.withDirectives(n.createElementVNode("span",{class:"fv-details-list-icon-block",key:"multi-col",onClick:h=>r.chooseGroup(a)},[n.createVNode(si,{value:r.isGroupChooseAll(a),color:t.foreground},null,8,["value","color"])],8,Bf),[[n.vShow,t.multiSelection]]),n.createElementVNode("span",{class:n.normalizeClass(["expand",{choose:a.expand}]),onClick:h=>r.expandGroup(a)},Lf,10,Nf),n.renderSlot(r.$slots,"group_content",{item:a,index:d,isMulti:t.multiSelection,isChoose:r.isGroupChooseAll(a)},()=>[n.createElementVNode("span",Ff,[n.createElementVNode("p",null,n.toDisplayString(a.name),1)])])])],2),n.createVNode(n.Transition,{name:"zoom-in-top"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(a.data,(h,u)=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["content-row",[{choose:h.choosen,"fv-custom-row":!0},t.rowCss]]),key:`group: ${d} row: ${u}`,onContextmenu:c=>r.rightClick(c,h)},[n.withDirectives(n.createElementVNode("span",Pf,[n.createVNode(si,{modelValue:h.choosen,"onUpdate:modelValue":c=>h.choosen=c,onClick:c=>r.itemChooseClick(h),color:t.foreground},null,8,["modelValue","onUpdate:modelValue","onClick","color"])],512),[[n.vShow,t.multiSelection]]),n.createElementVNode("span",{class:"col",style:{width:"36px"},onClick:c=>r.chooseCurrent(h)},null,8,Rf),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.thisHead,(c,f)=>n.withDirectives((n.openBlock(),n.createElementBlock("span",{class:"col",key:`group: ${d} row: ${u} col: ${f}`,style:n.normalizeStyle({width:r.colWidth[f]}),onClick:m=>r.chooseCurrent(h)},[n.renderSlot(r.$slots,`column_${f}`,{item:h,row_index:u,col_index:f},()=>[n.createElementVNode("p",null,n.toDisplayString(`row: ${u} col: ${f}`),1)])],12,_f)),[[n.vShow,c.show&&r.valueTrigger(c.visible)]])),128)),n.renderSlot(r.$slots,"row_expand",{item:h,row_index:u})],42,Mf)),[[n.vShow,h.show]])),128))],512),[[n.vShow,a.expand]])]),_:2},1024)]))),128))],2)):n.createCommentVNode("",!0),n.createVNode(l,{ref:"rightMenu",theme:r.theme,rightMenuWidth:t.rightMenuWidth,background:t.rightMenuBackground,fullExpandAnimation:t.rightMenuFullExpand},{default:n.withCtx(()=>[n.renderSlot(r.$slots,"menu",{},()=>[n.createElementVNode("span",null,[n.createElementVNode("p",null,n.toDisplayString(r.currentChoosenNum)+" Selected",1)])])]),_:3},8,["theme","rightMenuWidth","background","fullExpandAnimation"])],2)}}}),Xr=W(zf),Ik="",Bk="",Nk="",Of=Object.assign({name:"FvDrawer",data(){return{lock:!1,style:{drawer:{zIndex:this.zIndex}},show:{drawer:this.modelValue==null?!1:this.modelValue},initShow:this.computeVisible,window:{click:t=>{if(!this.computeVisible||this.lock||this.focusTrap)return;let i=t.target,e=!1;for(;i&&(i==this.$el&&(e=!0),i.parentNode);)i=i.parentNode;e||(this.computeVisible=!1)}}}},computed:{$theme(){return z(this.$props).theme.value},computeVisible:{get(){return this.modelValue==null?this.show.drawer:this.modelValue},set(t){this.show.drawer=t,this.$emit("update:modelValue",t)}}},watch:{computeVisible(){this.lock=!0,this.setStyle(),setTimeout(()=>{this.lock=!1},50)}},mounted(){this.init(),this.setStyle(),this.initShow=!0},beforeUnmount(){for(let t in this.window)window.removeEventListener(t,this.window)},methods:{init(){for(let t in this.window)window.addEventListener(t,this.window[t]);this.appendBody&&this.globalAppendInit()},globalAppendInit(){this.$nextTick(()=>{const t=document.querySelector("body");t.append?t.append(this.$el):t.appendChild(this.$el)})},setStyle(){let t=this.length;typeof this.length=="number"&&(t+="px"),this.position=="bottom"?this.style.drawer={left:"0",bottom:"0",height:t,width:"100%",maxWidth:"100%",maxHeight:"100%",zIndex:this.zIndex,transform:` ${this.computeVisible?"translateY(0%)":"translateY(110%)"}`}:this.position=="top"?this.style.drawer={left:"0",top:"0",height:t,width:"100%",maxWidth:"100%",maxHeight:"100%",zIndex:this.zIndex,transform:`${this.computeVisible?"translateY(0%)":"translateY(-110%)"}`}:this.position=="left"?this.style.drawer={left:"0",top:"0",width:t,height:"100%",maxWidth:"100%",maxHeight:"100%",zIndex:this.zIndex,transform:`${this.computeVisible?"translateX(0%)":"translateX(-110%)"}`}:this.style.drawer={right:"0",top:"0",width:t,height:"100%",maxWidth:"100%",maxHeight:"100%",zIndex:this.zIndex,transform:`${this.computeVisible?"translateX(0%)":"translateX(110%)"}`}},close(){this.computeVisible=!1}},beforeUnmount(){for(let t in this.window)window.removeEventListener(t,this.window);try{document.querySelector("body").removeChild(this.$el)}catch{}}},{props:{...A,position:{type:String,default:"bottom"},length:{default:300},background:{default:void 0},modelValue:{default:void 0},zIndex:{type:Number,default:10},focusTrap:{type:Boolean,default:!1},appendBody:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:i}){return(e,o)=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{ref:"drawer",class:n.normalizeClass(["fv-Drawer",[e.$theme]]),style:n.normalizeStyle([e.style.drawer,{background:t.background}])},[n.renderSlot(e.$slots,"default")],6)),[[n.vShow,e.initShow]])}}),qr=W(Of),Fk="",Mk="",Pk="",Af={emits:["update:modelValue"],props:{modelValue:{default:()=>[]},borderWidth:{default:1},placeholder:{default:"Dropdown"},borderRadius:{default:"3"},inputForeground:{default:""},inputBackground:{default:""},inputBorderColor:{default:""},dropDownIcon:{default:"ChevronDown"},dropDownIconForeground:{default:""},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},disabled:{default:!1},theme:{default:"global"}},data(){return{choosenValue:this.modelValue}},watch:{modelValue(t){this.choosenValue=t},choosenValue(t){this.$emit("update:modelValue",t)}},computed:{$theme(){return z(this.$props).theme.value},inputValue(){let t="";for(let i of this.choosenValue)t==""?t+=this.valueTrigger(i.text):t+=`,${this.valueTrigger(i.text)}`;return t},borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"}},mounted(){},methods:{valueTrigger(t){return typeof t=="function"?t():t}}},Wf=["placeholder","value"];function Hf(t,i,e,o,r,s){const l=n.resolveComponent("fv-reveal-container");return n.openBlock(),n.createElementBlock("div",{class:"drop-down-box",style:n.normalizeStyle({"border-radius":`${e.borderRadius}px`})},[n.createElementVNode("div",{class:"drop-down-container",style:n.normalizeStyle({background:e.inputBackground,"border-radius":`${e.borderRadius}px`})},[n.createVNode(l,{parent:()=>t.$el,class:"fv-dropdown-reveal-container",backgroundColor:s.backgroundLightColor,borderColor:s.borderLightColor,backgroundGradientSize:120,borderGradientSize:80,borderWidth:e.borderWidth,borderRadius:e.borderRadius,disabled:e.disabled},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),n.renderSlot(t.$slots,"input",{placeholder:e.placeholder,value:s.inputValue},()=>[n.createElementVNode("input",{class:"fv-drop-down-input",placeholder:e.placeholder,readonly:"",value:s.inputValue,style:n.normalizeStyle({color:e.inputForeground,"border-radius":`${e.borderRadius}px`,borderWidth:`${e.borderWidth}px`,borderColor:e.inputBorderColor})},null,12,Wf),n.createElementVNode("i",{class:n.normalizeClass(["right-icon ms-Icon",[`ms-Icon--${e.dropDownIcon}`]]),style:n.normalizeStyle({color:e.dropDownIconForeground})},null,6)])],4)],4)}const Kr=q(Af,[["render",Hf]]),Gf={emits:["update:modelValue","chooseItem"],props:{modelValue:{default:()=>[]},options:{default:()=>[]},multiple:{default:!1},maxHeight:{default:""},borderRadius:{default:"3"},checkBoxBackground:{default:""},dropDownListForeground:{default:"rgba(0, 120, 215, 0.9)"},dropDownListBackground:{default:"rgba(0, 90, 158, 1)"},showStatus:{default:()=>({position:"bottom",top:"100%",bottom:"",height:"auto",overflow:"hidden"})},theme:{default:"global"}},data(){return{choosenValue:this.modelValue,styles:{listContainer:{top:"100%",bottom:"",height:"auto",maxHeight:"",background:"",borderRadius:""},title:{color:""}}}},watch:{modelValue(t){this.choosenValue=t},choosenValue(t){this.$emit("update:modelValue",t)},maxHeight(){this.stylesInit()},borderRadius(){this.stylesInit()},dropDownListForeground(){this.stylesInit()},dropDownListBackground(){this.stylesInit()},"showStatus.top"(){this.stylesInit()},"showStatus.bottom"(){this.stylesInit()},"showStatus.height"(){this.stylesInit()},"showStatus.overflow"(){this.stylesInit()}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.stylesInit()},methods:{stylesInit(){this.styles.listContainer.borderRadius=`${this.borderRadius}px`,this.styles.listContainer.background=this.dropDownListBackground,this.styles.listContainer.top=this.showStatus.top,this.styles.listContainer.bottom=this.showStatus.bottom,this.styles.listContainer.height=this.showStatus.height,this.styles.listContainer.maxHeight=`${this.showStatus.maxHeight}px`,this.styles.listContainer.overflow=this.showStatus.overflow,this.styles.title.color=this.dropDownListForeground},valueTrigger(t){return typeof t=="function"?t():t},onClick(t){if(t.disabled||t.type==="header"||t.type=="divider")return 0;if(this.multiple){let i=this.choosenValue.find(e=>e.key===t.key);i!=null?(t.choosen=!1,this.choosenValue.splice(this.choosenValue.indexOf(i),1)):(t.choosen=!0,this.choosenValue.push(t))}else{for(let i of this.choosenValue)i.choosen=!1;t.choosen=!0,this.choosenValue=[],this.choosenValue.push(t)}this.$emit("chooseItem",{option:t,index:this.options.indexOf(t)})}}},Uf=["onClick"];function Yf(t,i,e,o,r,s){const l=n.resolveComponent("fv-check-box");return n.openBlock(),n.createElementBlock("div",{class:"list-container",style:n.normalizeStyle(r.styles.listContainer)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,(a,d)=>(n.openBlock(),n.createElementBlock("div",{key:`item: ${d}`,onClick:h=>s.onClick(a)},[n.createElementVNode("div",{class:n.normalizeClass(["list-item",{hr:s.valueTrigger(a.type)=="divider",normal:s.valueTrigger(a.type)=="default"||s.valueTrigger(a.type)==null,disabled:s.valueTrigger(a.disabled),choose:a.choosen}])},[n.withDirectives(n.createElementVNode("p",{class:"title",style:n.normalizeStyle(r.styles.title)},n.toDisplayString(s.valueTrigger(a.text)),5),[[n.vShow,s.valueTrigger(a.type)=="header"]]),n.renderSlot(t.$slots,"options",{option:a,index:d,valueTrigger:s.valueTrigger},()=>[n.withDirectives(n.createVNode(l,{modelValue:a.choosen,"onUpdate:modelValue":h=>a.choosen=h,disabled:s.valueTrigger(a.disabled),foreground:e.dropDownListForeground,background:e.checkBoxBackground,theme:e.theme},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(s.valueTrigger(a.text)),1)]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","foreground","background","theme"]),[[n.vShow,s.valueTrigger(a.type)=="default"||s.valueTrigger(a.type)==null&&e.multiple]]),n.withDirectives(n.createElementVNode("p",null,n.toDisplayString(s.valueTrigger(a.text)),513),[[n.vShow,s.valueTrigger(a.type)=="default"||s.valueTrigger(a.type)==null&&!e.multiple]])])],2)],8,Uf))),128))],4)}const Jr=q(Gf,[["render",Yf]]),jf=Object.assign({name:"FvDropDown",components:{dropDownInput:Kr,listContainer:Jr},data(){return{choosenValue:this.modelValue,topRemainHeight:window.innerHeight,bottomRemainHeight:window.innerHeight,timer:{},styles:{dropDown:{zIndex:0,overflow:"visible"}},show:{listContainer:!1}}},watch:{modelValue(t){this.choosenValue=t},choosenValue(t){this.$emit("update:modelValue",t)},setFocus(t){this.show.listContainer=t},"show.listContainer"(t){t?this.styles.dropDown.zIndex=1:this.styles.dropDown.zIndex=0,this.$emit("visible-change",t)}},computed:{$theme(){return z(this.$props).theme.value},isDisabled(){return this.options.length==0||this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},dropDownListHeight(){return 36*this.options.length},dropDownListShowStatus(){return this.dropDownListHeight<this.bottomRemainHeight?{position:"bottom",top:"100%",bottom:"",height:"auto",overflow:"hidden"}:this.dropDownListHeight<this.topRemainHeight?{position:"top",top:"",bottom:"100%",height:"auto",overflow:"hidden"}:this.topRemainHeight>this.bottomRemainHeight?{position:"top",top:"",bottom:"100%",height:`${this.topRemainHeight}px`,overflow:"auto"}:{position:"bottom",top:"100%",bottom:"",height:`${this.bottomRemainHeight}px`,overflow:"auto"}}},mounted(){this.outSideClickInit(),this.heightSenseInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent)},outSideClickEvent(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}i=i.parentNode}e||(this.show.listContainer=!1)},heightSenseInit(){clearInterval(this.timer),this.timer=setInterval(()=>{try{this.topRemainHeight=this.$refs.input.getBoundingClientRect().top}catch{this.topRemainHeight=window.innerHeight}try{this.bottomRemainHeight=window.innerHeight-this.$refs.input.getBoundingClientRect().bottom}catch{this.bottomRemainHeight=window.innerHeight}},300)},onChange(t){this.show.listContainer=this.multiple,this.$emit("change",t)}},beforeUnmount(){clearInterval(this.timer),window.removeEventListener("click",this.outSideClickEvent)}},{props:{...A,modelValue:{default:()=>[]},options:{default:()=>[]},multiple:{default:!1},borderWidth:{default:1},borderRadius:{default:"6"},placeholder:{default:"Dropdown"},maxHeight:{default:""},inputForeground:{default:""},inputBorderColor:{default:""},checkBoxBackground:{default:""},dropDownListForeground:{default:""},dropDownListBackground:{default:""},inputBackground:{default:""},dropDownIcon:{default:"ChevronDown"},dropDownIconForeground:{default:""},showError:{default:!1},errorMessage:{default:"This dropdown has an error"},disabled:{default:!1},setFocus:{default:!1}},emits:["update:modelValue","change","visible-change"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-DropDown",[e.$theme,e.isDisabled?"disabled":""]]),style:n.normalizeStyle([e.styles.dropDown,{zIndex:e.show.listContainer?5:""}])},[n.createElementVNode("div",{class:"fv-drop-down-input-container",ref:"input",onClick:o[1]||(o[1]=r=>e.show.listContainer=e.isDisabled?!1:!e.show.listContainer)},[n.renderSlot(e.$slots,"drop-carrier",{value:e.choosenValue,placeholoder:t.placeholder,theme:e.$theme},()=>[n.createVNode(Kr,{modelValue:e.choosenValue,"onUpdate:modelValue":o[0]||(o[0]=r=>e.choosenValue=r),placeholder:t.placeholder,theme:e.$theme,disabled:e.isDisabled,borderWidth:t.borderWidth,borderRadius:t.borderRadius,inputForeground:t.inputForeground,inputBackground:t.inputBackground,inputBorderColor:t.inputBorderColor,dropDownIcon:t.dropDownIcon,dropDownIconForeground:t.dropDownIconForeground,class:n.normalizeClass({error:t.showError})},{input:n.withCtx(r=>[n.renderSlot(e.$slots,"input",{placeholder:r.placeholder,value:r.value,valueTrigger:r.valueTrigger})]),_:3},8,["modelValue","placeholder","theme","disabled","borderWidth","borderRadius","inputForeground","inputBackground","inputBorderColor","dropDownIcon","dropDownIconForeground","class"])])],512),n.withDirectives(n.createElementVNode("p",{class:"err-msg"},n.toDisplayString(t.errorMessage),513),[[n.vShow,t.showError]]),n.createVNode(n.Transition,{name:`fv-drop-down-${e.dropDownListShowStatus.position}`},{default:n.withCtx(()=>[n.withDirectives(n.createVNode(Jr,{modelValue:e.choosenValue,"onUpdate:modelValue":o[2]||(o[2]=r=>e.choosenValue=r),options:t.options,multiple:t.multiple,borderRadius:t.borderRadius,checkBoxBackground:t.checkBoxBackground,dropDownListForeground:t.dropDownListForeground,dropDownListBackground:t.dropDownListBackground,showStatus:e.dropDownListShowStatus,theme:e.$theme,onChooseItem:e.onChange},{options:n.withCtx(r=>[n.renderSlot(e.$slots,"options",{option:r.option,index:r.index})]),_:3},8,["modelValue","options","multiple","borderRadius","checkBoxBackground","dropDownListForeground","dropDownListBackground","showStatus","theme","onChooseItem"]),[[n.vShow,e.show.listContainer]])]),_:3},8,["name"])],6))}}),Qr=W(jf),_k="",zk="",Ok="",Xf={class:"expander-description-box"},qf={class:"expander-text"},Kf={class:"expander-title"},Jf={class:"expander-description-extension-block"},Qf={class:"ms-Icon ms-Icon--ChevronUpMed"},Zf={class:"ms-Icon ms-Icon--ChevronDownMed"},em={class:"ms-Icon ms-Icon--ChevronRightMed"},tm=Object.assign({name:"FvExpander",data(){return{thisValue:this.modelValue,hover:!1}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)}},computed:{hoverBackground(){try{let t=kt(this.titleBackground),i=t.hue();return t.hue(i-.01).cssa()}catch{return""}},$theme(){return z(this.$props).theme.value}},methods:{itemClick(){this.disabledExpander||(this.thisValue^=!0),this.$emit("item-click",this.thisValue)}}},{props:{...A,modelValue:{default:!1},icon:{type:String,default:"Mail"},title:{type:String,default:"Title of Expander."},content:{type:String,default:"Content information of Expander."},titleBackground:{default:""},expandBackground:{default:""},defaultHeight:{default:50},maxHeight:{default:300},disabledExpander:{default:!1},visibleOverflow:{default:!0}},emits:["update:modelValue","item-click"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Expander",[e.$theme,{visibleOverflow:t.disabledExpander&&t.visibleOverflow}]]),style:n.normalizeStyle({height:e.thisValue?`${t.maxHeight}px`:`${t.defaultHeight}px`,"max-height":`${t.maxHeight}px`}),onMouseenter:o[3]||(o[3]=r=>e.hover=!0),onTouchstart:o[4]||(o[4]=r=>e.hover=!0),onMouseleave:o[5]||(o[5]=r=>e.hover=!1),onTouchend:o[6]||(o[6]=r=>e.hover=!1)},[n.createElementVNode("div",{class:"expander-description-container",style:n.normalizeStyle({height:`${t.defaultHeight}px`,background:e.hover?e.hoverBackground:t.titleBackground}),onClick:o[2]||(o[2]=(...r)=>e.itemClick&&e.itemClick(...r))},[n.createElementVNode("div",Xf,[n.createElementVNode("div",{class:"expander-description",onClick:o[0]||(o[0]=r=>e.$emit("description-click"))},[n.createElementVNode("div",qf,[n.renderSlot(e.$slots,"content",{title:t.title,contnet:t.content},()=>[n.createElementVNode("div",Kf,n.toDisplayString(t.title),1)])])]),n.createElementVNode("div",Jf,[n.renderSlot(e.$slots,"extension")])]),n.createElementVNode("div",{class:"expander-expand-icon-block",onClick:o[1]||(o[1]=r=>e.$emit("icon-click"))},[n.renderSlot(e.$slots,"expand-icon",{value:e.thisValue,disabledCollaspe:t.disabledExpander},()=>[n.withDirectives(n.createElementVNode("i",Qf,null,512),[[n.vShow,e.thisValue]]),n.withDirectives(n.createElementVNode("i",Zf,null,512),[[n.vShow,!e.thisValue&&!t.disabledExpander]]),n.withDirectives(n.createElementVNode("i",em,null,512),[[n.vShow,!e.thisValue&&t.disabledExpander]])])])],4),n.createVNode(n.Transition,{name:"expander-expanded"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:"expander-detail",style:n.normalizeStyle({background:t.expandBackground})},[n.renderSlot(e.$slots,"default")],4),[[n.vShow,e.thisValue]])]),_:3})],38))}}),Zr=W(tm),Wk="",Hk="",Gk="",im=["onClick"],nm=[n.createElementVNode("i",null,null,-1)],om={class:"container-panel"},rm={style:{"font-size":"36px"}},sm=Object.assign({name:"FvFlipView",data(){return{thisValue:this.modelValue,currentIndex:0,currentAnimation:"",hoverTrigger:!1,thisAutoPlay:this.autoPlay,animationMap:{move:"move",moveFade:"move-fade",moveDifferent:"move-different",glue:"rotate-glue",push:"rotate-push",fold:"rotate-fold"},styles:{containerItem:{animationDuration:"0.8s",animationTimingFunction:""},controlPanel:{background:""}},timer:{autoPlay:{},dis:{}},lock:{slide:!0,slideIndex:!0}}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)},autoPlay(t){this.thisAutoPlay=t},thisAutoPlay(){this.autoPlayInit()},duration(){this.durationInit()},mask(){this.stylesInit()},currentIndex(t){this.$emit("change",{index:t,duration:this.autoPlayDuration})}},computed:{$theme(){return z(this.$props).theme.value},firstBtn(){return this.direction=="horizontal"?"CaretLeftSolid8":"CaretUpSolid8"},secondBtn(){return this.direction=="horizontal"?"CaretRightSolid8":"CaretDownSolid8"},slideLeftAnimation(){return`${this.animationMap[this.animation]}-right-to-left`},slideRightAnimation(){return`${this.animationMap[this.animation]}-left-to-right`},slideTopAnimation(){return`${this.animationMap[this.animation]}-bottom-to-top`},slideBottomAnimation(){return`${this.animationMap[this.animation]}-top-to-bottom`}},mounted(){this.durationInit(),this.autoPlayInit(),this.stylesInit()},methods:{autoPlayInit(){if(clearInterval(this.timer.autoPlay),this.thisAutoPlay.toString()!="true")return 0;this.timer.autoPlay=setInterval(()=>{this.slideNext()},this.autoPlayDuration)},durationInit(){this.styles.containerItem.animationDuration=`${(parseFloat(this.duration.toString())/1e3).toFixed(2)}s`},stylesInit(){this.styles.controlPanel.background=this.mask},slideNext(){if(clearInterval(this.timer.autoPlay),!this.lock.slide)return 0;this.lock.slide=!1,this.currentIndex<this.thisValue.length-1?this.currentIndex++:this.currentIndex=0,this.direction=="horizontal"?this.currentAnimation=this.slideLeftAnimation:this.currentAnimation=this.slideBottomAnimation,this.lock.slide=!0,this.autoPlayInit()},slidePrev(){if(clearInterval(this.timer.autoPlay),!this.lock.slide)return 0;this.lock.slide=!1,this.currentIndex>0?this.currentIndex--:this.currentIndex=this.thisValue.length-1,this.direction=="horizontal"?this.currentAnimation=this.slideRightAnimation:this.currentAnimation=this.slideTopAnimation,this.lock.slide=!0,this.autoPlayInit()},async slideDelay(t=!0,i){return t?this.slideNext():this.slidePrev(),await new Promise(e=>{setTimeout(()=>{e(i)},i)})},async slideIndex(t){if(!this.lock.slideIndex)return 0;this.lock.slideIndex=!1,clearInterval(this.timer.dis);let i=t-this.currentIndex;if(i==0)return 0;let e=i>0;i=Math.abs(i);let o=this.duration.toString(),r=(parseFloat(o)/i).toFixed(2);this.styles.containerItem.animationDuration=`${(r/1e3).toFixed(2)}s`,this.styles.containerItem.animationTimingFunction="linear";for(let s=0;s<i;s++)s==i-1&&(this.styles.containerItem.animationTimingFunction=""),await this.slideDelay(e,r);await new Promise(s=>{setTimeout(()=>{this.durationInit(),s(50)},50)}),this.lock.slideIndex=!0}}},{props:{...A,modelValue:{default:()=>[]},direction:{default:"horizontal"},animation:{default:"move"},duration:{default:800},autoPlay:{default:!0},autoPlayDuration:{default:5e3},showControlPanel:{default:""},mask:{default:""}},emits:["update:modelValue","change"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-FlipView",[e.$theme]]),onMouseenter:o[3]||(o[3]=r=>e.hoverTrigger=!0),onMouseleave:o[4]||(o[4]=r=>e.hoverTrigger=!1),onTouchstart:o[5]||(o[5]=r=>e.hoverTrigger=!0),onTouchend:o[6]||(o[6]=r=>e.hoverTrigger=!1)},[n.createVNode(n.Transition,{name:"fade-in"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:"control-panel",style:n.normalizeStyle(e.styles.controlPanel)},[n.createElementVNode("span",{class:n.normalizeClass(["slidebtn fst",[t.direction]]),onClick:o[0]||(o[0]=(...r)=>e.slidePrev&&e.slidePrev(...r))},[n.createElementVNode("p",{class:n.normalizeClass(["icon",[`ms-Icon ms-Icon--${e.firstBtn}`]])},null,2)],2),n.createElementVNode("span",{class:n.normalizeClass(["slidebtn sec",[t.direction]]),onClick:o[1]||(o[1]=(...r)=>e.slideNext&&e.slideNext(...r))},[n.createElementVNode("p",{class:n.normalizeClass(["icon",[`ms-Icon ms-Icon--${e.secondBtn}`]])},null,2)],2),n.createElementVNode("span",{class:n.normalizeClass(["bottom-controller",[t.direction]])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.thisValue,(r,s)=>(n.openBlock(),n.createElementBlock("div",{key:`ring: ${s}`,class:n.normalizeClass(["flip-view-ring",[{choosen:e.currentIndex==s}]]),onClick:l=>e.slideIndex(s)},nm,10,im))),128)),n.createElementVNode("p",{class:n.normalizeClass(["sec ms-Icon",[e.thisAutoPlay.toString()=="true"?"ms-Icon--PauseBold":"ms-Icon--PlaySolid"]]),onClick:o[2]||(o[2]=r=>e.thisAutoPlay=!e.thisAutoPlay)},null,2)],2)],4),[[n.vShow,t.showControlPanel!=="hidden"&&e.hoverTrigger]])]),_:1}),n.createElementVNode("div",om,[n.createVNode(n.TransitionGroup,{name:e.currentAnimation,tag:"div",class:"container-panel"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.thisValue,(r,s)=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:`flipview: ${s}`,class:"container-item",style:n.normalizeStyle(e.styles.containerItem)},[n.renderSlot(e.$slots,"item",{data:r,index:s},()=>[n.createElementVNode("p",rm,n.toDisplayString(s+1),1)])],4)),[[n.vShow,e.currentIndex===s]])),128))]),_:3},8,["name"])])],34))}}),es=W(sm),jk="",Xk="",qk="",lm=Object.assign({name:"FvIconElement",data(){return{}},computed:{iconList(){let t=[];return Array.isArray(this.value)?t=this.value:t=this.value.split(","),t.map(i=>this.computeIconItem(i))},$theme(){return z(this.$props).theme.value}},methods:{computeIconItem(t){let i={name:"",color:this.$theme=="dark"?"#fff":"#000",position:0};return t.name?Object.assign(i,t):(i.name=t,i)},valueTrigger(t){return typeof t=="function"?t():t}}},{props:{...A,value:{default:"AppIconDefault"},fontSize:{default:32},paddingWidth:{default:2},iconButton:{type:Boolean,default:!1},borderRadius:{default:6}},emits:["click"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-IconElement",[e.$theme,{"icon-element-btn":t.iconButton}]]),style:n.normalizeStyle({width:`${t.fontSize+t.paddingWidth/1}px`,height:`${t.fontSize+t.paddingWidth/1}px`,borderRadius:`${t.borderRadius}px`}),onClick:o[0]||(o[0]=r=>e.$emit("click",r))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.iconList,(r,s)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["icon-element-item",[e.valueTrigger(r.position)]]),key:s},[n.createElementVNode("i",{class:n.normalizeClass(["icon-element ms-Icon",[`ms-Icon--${e.valueTrigger(r.name)}`]]),style:n.normalizeStyle({fontSize:`${t.fontSize}px`,color:e.valueTrigger(r.color),"background-image":e.valueTrigger(r.color),"background-clip":"text","-webkit-background-image":e.valueTrigger(r.color),"-webkit-background-clip":"text","-webkit-text-fill-color":e.valueTrigger(r.color)})},null,6)],2))),128))],6))}}),ts=W(lm),Jk="",Qk="",Zk="",am=["src"],dm=Object.assign({name:"FvImage",data(){return{thisSrc:"",status:!1,lazy:this.onlazy,lazyTimer:{}}},watch:{src(t,i){t!==i&&(this.status=!1),this.lazy||(this.thisSrc=this.src)},lazy(t){t===!1&&(this.thisSrc=this.src)},onlazy(t){this.lazy=t}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.watchImgInit(),this.lazy?this.lazyInit():this.thisSrc=this.src},methods:{watchImgInit(){this.$refs.img.onload=t=>{this.status=!0}},lazyInit(){clearInterval(this.lazyTimer),this.lazyTimer=setInterval(()=>{window.requestAnimationFrame(()=>{this.$el.getBoundingClientRect().top<window.innerHeight&&(this.lazy=!1,clearInterval(this.lazyTimer))})},300)}},beforeUnmount(){clearInterval(this.lazyTimer)}},{props:{...A,src:{default:""},onlazy:{default:!1}},emits:["click"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Image",[e.$theme]])},[n.createVNode(n.Transition,{name:"fade-in"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("img",{draggable:"false",alt:"",src:e.thisSrc,ref:"img"},null,8,am),[[n.vShow,e.status]])]),_:1})],2))}}),is=W(dm),t1="",i1="",n1="",hm=Object.assign({name:"FvImg",data(){return{status:"imgBox"}},computed:{$theme(){return z(this.$props).theme.value}}},{props:{...A,src:{default:""},onlazy:{default:!1},loadingColor:{default:"rgba(36, 36, 36, 1)"},onbackground:{default:!1}},setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-ImgBox"),s=n.resolveComponent("fv-Image");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Img",[e.$theme]])},[e.status=="imgBox"?(n.openBlock(),n.createBlock(r,{key:0,url:t.src,onlazy:t.onlazy,loadingColor:t.loadingColor,onbackground:t.onbackground,style:{width:"100%",height:"100%"},onError:o[0]||(o[0]=l=>e.status="image")},null,8,["url","onlazy","loadingColor","onbackground"])):n.createCommentVNode("",!0),e.status=="image"?(n.openBlock(),n.createBlock(s,{key:1,src:t.src,onlazy:t.onlazy,style:{width:"100%",height:"100%"}},null,8,["src","onlazy"])):n.createCommentVNode("",!0)],2)}}}),ns=W(hm),r1="",s1="",l1="",um=Ai("FvImageCache",{state:()=>({imgUriList:[]}),getters:{imgUri:t=>i=>{const e=t.imgUriList.find(o=>o.key===i);return e||{data:"",key:i,state:"none"}}},actions:{setImgUri(t){let i=t.state;if(t.key==null)return 0;i!="none"&&i!="loading"&&i!="done"&&(t.state="none");let e=this.imgUriList.find(o=>o.key===t.key);e==null?this.imgUriList.push({data:t.data,key:t.key,state:t.state}):this.imgUriList.splice(this.imgUriList.indexOf(e),1,{data:t.data,key:t.key,state:t.state})},clearImgUri(t){let i=this.imgUriList.find(e=>t===e.key);if(i==null)return 0;this.imgUriList.splice(this.imgUriList.indexOf(i),1)}}}),cm={class:"fv-img-box-content"},fm=["src"],mm=Object.assign({name:"FvImgBox",data(){return{xhr:!1,loadingProgress:0,width:0,height:0,lazy:!1,lazyTimer:null,formatTimer:null,imageCache:null}},watch:{url(){this.xhr!=!1&&this.xhr.abort(),this.url!=""&&!this.lazy&&this.LoadingImg()},onlazy(t){this.lazy=t.toString()=="true"},lazy(t){t&&this.lazyInit()}},computed:{$theme(){return z(this.$props).theme.value},imgUri(){return this.imageCache?!this.url||!this.imageCache.imgUri(this.url)?{data:"",key:this.url,state:"none"}:this.imageCache.imgUri(this.url):{data:"",key:this.url,state:"none"}},progressSize(){return this.width<=20||this.height<=20?{r:this.width-2>0?this.width-2:2,borderWidth:2}:this.width<=40||this.height<=40?{r:10,borderWidth:2}:{r:20,borderWidth:5}}},beforeMount(){this.imageCache=um()},mounted(){this.lazy=this.onlazy.toString()=="true",this.url&&!this.lazy&&this.LoadingImg(),this.widthHeightWatcher()},methods:{LoadingImg(){this.imgUri.state=="none"&&(this.imageCache.setImgUri({data:"",key:this.url,state:"loading"}),this.getUrlImg(this.url)),clearInterval(this.formatTimer),this.formatTimer=setInterval(()=>{if(!this.imageCache)return;let t=this.imageCache.imgUri(this.url);!t.data&&(t.state=="none"||t.state=="done")&&(this.imageCache.setImgUri({data:"",key:this.url,state:"loading"}),this.getUrlImg(this.url))},3e3)},widthHeightWatcher(){let t=this.$el;new ResizeObserver(e=>{for(const o of e){const{contentRect:r,target:s}=o,{width:l,height:a}=r;this.width=l,this.height=a}}).observe(t)},getUrlImg(t){if(t==null)return console.warn(`imgBox can't find url: ${t}.`),0;this.loadingProgress=0;let i=new XMLHttpRequest;i.open("get",t,!0),i.responseType="blob",i.onreadystatechange=e=>{if(i.readyState==4&&i.status==200){let o=i.response,r=o.type.split("/")[0],s=new FileReader;s.onload=l=>{let a=l.target.result;this.UpdateStore(a)},r!=="text"?s.readAsDataURL(o):s.readAsText(o)}else i.readyState==4},i.addEventListener("progress",e=>{const o=e.loaded/e.total*100;this.loadingProgress=o.toFixed(2)}),i.send(),i.onerror=e=>{this.$emit("error",e),this.imageCache.clearImgUri(this.url),console.warn("Fv-ImgBox doesn't support cross-domain url.")},this.xhr=i},UpdateStore(t){this.imageCache.setImgUri({data:t,key:this.url,state:"done"})},lazyInit(){clearInterval(this.lazyTimer),this.lazyTimer=setInterval(()=>{this.$el.getBoundingClientRect().top<window.innerHeight&&(this.lazy=!1,this.LoadingImg(),clearInterval(this.lazyTimer))},300)}},beforeUnmount(){clearInterval(this.formatTimer),clearInterval(this.lazyTimer)}},{props:{...A,url:{default:""},onlazy:{default:!1},loadingColor:{default:"rgba(36, 36, 36, 1)"},onbackground:{default:!1}},setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-progress-ring");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-ImgBox",[e.$theme]]),style:n.normalizeStyle({background:t.onbackground?"url("+e.imgUri.data+") no-repeat":""})},[n.withDirectives(n.createElementVNode("div",cm,[n.withDirectives(n.createVNode(r,{value:e.loadingProgress,loading:e.loadingProgress===0,color:t.loadingColor,r:e.progressSize.r,borderWidth:e.progressSize.borderWidth,background:"transparent"},null,8,["value","loading","color","r","borderWidth"]),[[n.vShow,e.imgUri.state=="loading"]])],512),[[n.vShow,e.imgUri.state!="done"]]),n.createVNode(n.Transition,{name:"fade-in"},{default:n.withCtx(()=>[e.imgUri.state=="done"&&!t.onbackground?(n.openBlock(),n.createElementBlock("img",{key:0,draggable:"false",alt:"",src:e.imgUri.data},null,8,fm)):n.createCommentVNode("",!0)]),_:1})],6)}}}),os=W(mm),d1="",h1="",u1="",gm=Object.assign({name:"FvInfiniteScrollView",data(){return{thisValue:this.modelValue,dynamicValue:[],lock:!0,looper:!0}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t),this.dataChange()},static(){this.loadMore()}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.init(),this.lazyLoadInit()},methods:{async init(){for(;this.looper;)this.$el.scrollHeight<=this.$el.clientHeight&&this.thisValue.length>this.dynamicValue.length?(this.loadMore(),this.$emit("init-start")):this.$emit("init-end"),await new Promise(t=>{setTimeout(()=>{t(1)},100)})},loadMore(){if(this.static){this.dynamicValue=this.thisValue;return}if(!this.lock)return;this.lock=!1;let t=this.dynamicValue[this.dynamicValue.length-1],i=this.thisValue.indexOf(t),e=this.thisValue.slice(i+1,i+this.batchSize+1);return this.dynamicValue=this.dynamicValue.concat(e),this.lock=!0,e>0},dataChange(){let t=this.dynamicValue.length;this.dynamicValue=this.thisValue.slice(0,t)},lazyLoadInit(){this.$el.addEventListener("scroll",t=>{this.$el.scrollHeight-this.$el.scrollTop-this.$el.clientHeight<this.offset&&this.$emit("lazyload",this.loadMore())})}},beforeUnmount(){this.looper=!1}},{props:{...A,modelValue:{default:()=>[]},batchSize:{default:30},offset:{default:100},static:{default:!1}},emits:["update:modelValue","init-start","init-end","lazyload"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-InfiniteScrollView",[e.$theme]])},[n.renderSlot(e.$slots,"default",{thisValue:e.thisValue,dynamicValue:e.dynamicValue},()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.dynamicValue,(r,s)=>(n.openBlock(),n.createElementBlock("p",{key:s},n.toDisplayString(r),1))),128))])],2))}}),rs=W(gm),f1="",m1="",g1="",pm={class:"title-bar"},wm={class:"title-content"},bm={class:"info-box-content-block"},ym=n.createElementVNode("p",null,"Info Box Content.",-1),km={class:"info-box-control-block"},ss=Object.assign({name:"FvInfoBox",data(){return{iconList:{default:{icon:"Error",background:"",backgroundColor:"rgba(0, 98, 158, 0.8)"},warning:{icon:"Warning",background:"brown",backgroundColor:"rgba(234, 183, 2, 1)"},correct:{icon:"Completed",background:"green",backgroundColor:"rgba(69, 172, 97, 1)"},blocked:{icon:"Blocked12 ",background:"red",backgroundColor:"rgba(200, 50, 59, 1)"},error:{icon:"ErrorBadge",background:"red",backgroundColor:"rgba(200, 50, 59, 1)"}}}},computed:{$theme(){return z(this.$props).theme.value}},methods:{confirm(){this.$emit("confirm")},close(){this.$emit("close")}}},{props:{...A,title:{default:"Tip"},status:{default:"default"},mode:{default:"relative"},confirmTitle:{default:"\u786E\u5B9A"},cancelTitle:{default:"\u53D6\u6D88"},showTitleBar:{default:!0},acrylic:{default:!1},destroy:{type:[Boolean,Function],default:!1}},emits:["confirm","close"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-InfoBox",[e.$theme,t.mode,{acrylic:t.acrylic}]])},[n.createElementVNode("div",{class:n.normalizeClass(["sinfo-box-block",[e.iconList[t.status].background]])},[n.withDirectives(n.createElementVNode("div",pm,[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${e.iconList[t.status].icon}`]])},null,2),n.createElementVNode("span",wm,n.toDisplayString(t.title),1)],512),[[n.vShow,t.showTitleBar]]),n.createElementVNode("span",bm,[n.renderSlot(e.$slots,"msg",{},()=>[n.withDirectives(n.createElementVNode("h3",null,n.toDisplayString(t.title),513),[[n.vShow,!t.showTitleBar]]),ym])]),n.createElementVNode("div",km,[n.renderSlot(e.$slots,"control-panel",{theme:e.$theme,confirm:e.confirm,cancel:e.close,iconList:e.iconList},()=>[n.createVNode(r,{theme:"dark",background:e.iconList[t.status].backgroundColor,isBoxShadow:!0,borderRadius:6,style:{width:"50%",height:"35px","margin-right":"2.5px"},onClick:e.confirm},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(t.confirmTitle),1)]),_:1},8,["background","onClick"]),n.createVNode(r,{theme:e.$theme,isBoxShadow:!0,borderRadius:6,style:{width:"50%",height:"35px","margin-left":"2.5px"},onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(t.cancelTitle),1)]),_:1},8,["theme","onClick"])])])],2)],2)}}});function ls(t,i,e){let o=l=>{let a={title:"Tip",status:"default",mode:"fixed",confirmTitle:"\u786E\u5B9A",cancelTitle:"\u53D6\u6D88",acrylic:!1,control_panel:void 0,confirm:async()=>{},cancel:async()=>{},theme:"global"};a=Object.assign(a,i);const d=n.h(ss,{title:a.title,status:a.status,mode:a.mode,confirmTitle:a.confirmTitle,cancelTitle:a.cancelTitle,acrylic:a.acrylic,onConfirm:async()=>{await a.confirm(),n.render(null,l),l.remove()},onClose:async()=>{await a.cancel(),n.render(null,l),l.remove()},destroy:()=>{n.render(null,l),l.remove()},theme:a.theme},{msg:()=>t,"control-panel":a.control_panel});return d.appContext=e,d};const r="__fv-global-info-box__";let s=document.getElementById(r);s||(s=document.createElement("div"),s.id=r,document.body.appendChild(s)),n.render(o(s),s)}const as={install(t){t.config.globalProperties.$infoBox=(i,e)=>{ls(i,e,t._context)}}},ds=_n(ss,[as]),w1="",b1="",y1="",vm={props:{top:{default:0},height:{default:60},background:{default:""},theme:{type:String,default:"global"}},data(){return{thisTop:0,thisHeight:60,styles:{slider:{background:""}}}},watch:{top(){this.moveInit()},height(){this.moveInit()},background(){this.stylesInit()}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.moveInit(),this.stylesInit()},methods:{moveInit(){let t=this.top-this.thisTop;t>0?this.heightExpandToBottom(t):this.heightExpandToTop(t)},stylesInit(){this.styles.slider.background=this.background},heightExpandToBottom(t){let i=Math.abs(t)+this.height;Z.to(this.$data,{thisHeight:i,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.heightFormatToBottom})},heightFormatToBottom(){Z.to(this.$data,{thisTop:this.top,thisHeight:this.height,duration:.2,ease:"power3.out"})},heightExpandToTop(t){let i=Math.abs(t)+this.height;Z.to(this.$data,{thisTop:this.top,thisHeight:i,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.heightFormatToTop})},heightFormatToTop(){Z.to(this.$data,{thisHeight:this.height,duration:.2,ease:"power3.out"})}}},Cm={class:"fv-listview-slider"};function Vm(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",Cm,[n.createElementVNode("span",{class:"s",style:n.normalizeStyle({"margin-top":`${r.thisTop}px`,height:`${r.thisHeight}px`})},[n.createElementVNode("p",{style:n.normalizeStyle({background:r.styles.slider.background})},null,4)],4)])}const hs=q(vm,[["render",Vm]]),Sm={class:"list-view-header"},$m={class:"list-view-container",ref:"container"},Em=["onClick","onTouchend","onDragover","onDragleave","onDrop"],xm={class:"list-view-footer"},Tm=Object.assign({name:"FvListView",components:{verticalSlider:hs},data(){return{FR:{init:!1,el:()=>this.$el,revealHandlerList:[]},thisValue:[],focus:!1,showSelectedBorder:!1,thisSliderTarget:null,thisSliderIndex:this.sliderIndex,currentTop:0,currentHeight:0,timer:{debounce:null}}},watch:{modelValue(t){this.valueInit(),this.setChoosen()},choosen(t){this.setChoosen()},sliderTarget(t){this.thisSliderTarget=t},thisSliderTarget(t){this.$emit("update:sliderTarget",t)},sliderIndex(t){this.thisSliderIndex=t,this.setSliderTarget(t)},thisSliderIndex(t){this.$emit("update:sliderIndex",t)}},computed:{borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(160, 160, 160, 0.2)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.1)":"rgba(160, 160, 160, 0.2)"},currentChoosen(){let t=[];for(let i=0;i<this.thisValue.length;i++)this.thisValue[i].choosen&&this.thisValue[i].show&&t.push(this.thisValue[i]);return t},currentChoosenAll(){for(let t=0;t<this.thisValue.length;t++)if(this.thisValue[t].choosen!=!0&&this.thisValue[t].show)return!1;return!0},currentChoosenNum(){let t=0;for(let i=0;i<this.thisValue.length;i++)this.thisValue[i].choosen&&this.thisValue[i].show&&t++;return t},_rowHeight(){return isNaN(this.rowHeight)?this.rowHeight:this.rowHeight+"px"},$theme(){return z(this.$props).theme.value}},mounted(){this.valueInit(),this.setChoosen(),this.outSideClickInit(),this.keyDownEventInit(),this.sliderRefreshInit(),window.addEventListener("click",()=>{this.showSelectedBorder=!1}),setTimeout(()=>{this.setSliderTarget()},300)},methods:{valueInit(){let t={name:"",show:!0,choosen:!1,selected:!1,disabled:!1},i=[];for(let e of this.modelValue){let o=JSON.parse(JSON.stringify(t));i.push(Object.assign(o,e))}this.thisValue=i},outSideClickInit(){window.addEventListener("click",this.outSideClickEvent)},outSideClickEvent(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}i=i.parentNode}e||(this.focus=!1)},keyDownEventInit(){window.addEventListener("keydown",t=>{!this.focus||(t.keyCode===40?this.move(t,1):t.keyCode===38&&this.move(t,-1),t.keyCode===13&&this.enter(t))})},valueTrigger(t){return typeof t=="function"?t():t},handlerClick(t,i){clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{if(this.onChoosen(t,i),this.valueTrigger(i.disabled)||this.valueTrigger(i.type)==="header"||this.valueTrigger(i.type)=="divider")return;let e=this.thisValue.indexOf(i);this.$emit("item-click",{item:i,index:e,event:t})},200)},onChoosen(t,i){if(this.valueTrigger(i.disabled)||this.valueTrigger(i.type)==="header"||this.valueTrigger(i.type)=="divider")return 0;if(this.multiple)this.currentChoosen.find(r=>r.key===i.key)!=null?(i.choosen=!1,this.thisValue[this.thisValue.indexOf(i)]=i):(i.choosen=!0,this.thisValue[this.thisValue.indexOf(i)]=i);else{for(let o of this.currentChoosen)o.choosen=!1,this.thisValue[this.thisValue.indexOf(o)]=o;i.choosen=!0,this.thisValue[this.thisValue.indexOf(i)]=i}this.selectionFormat(i),this.scrollFormat(t.target);let e=this.thisValue.indexOf(i);this.$emit("chooseItem",{item:i,index:e,event:t}),this.setSliderTarget(e),this.$emit("choosen-items",this.currentChoosen)},setChoosen(){for(let t of this.choosen){if(this.valueTrigger(t.disabled)||this.valueTrigger(t.type)==="header"||this.valueTrigger(t.type)=="divider")continue;let i=this.thisValue.find(e=>e.key===t.key);if(i){if(!this.multiple)for(let o of this.currentChoosen)o.choosen=!1,this.thisValue[this.thisValue.indexOf(o)]=o;i.choosen=!0;let e=this.thisValue.indexOf(i);this.thisValue[e]=i,this.setSliderTarget(e)}this.selectionFormat(i)}},move(t,i){t.preventDefault(),this.showSelectedBorder=!0;let e=this.thisValue.find(r=>r.selected===!0);if(!e){if(e=this.thisValue.find(s=>!(this.valueTrigger(s.disabled)||this.valueTrigger(s.type)==="header"||this.valueTrigger(s.type)=="divider")),!e)return;let r=this.thisValue.indexOf(e);this.selectionFormat(e),this.scrollFormat(this.$refs[`list_item_${r}`][0]);return}let o=this.thisValue.indexOf(e);if(i==1){for(let r=o+1;r<this.thisValue.length;r++)if(!this.valueTrigger(this.thisValue[r].disabled)&&!(this.valueTrigger(this.thisValue[r].type)==="header"||this.valueTrigger(this.thisValue[r].type)=="divider")){e=this.thisValue[r],o=r;break}}else if(i==-1){for(let r=o-1;r>=0;r--)if(!this.valueTrigger(this.thisValue[r].disabled)&&!(this.valueTrigger(this.thisValue[r].type)==="header"||this.valueTrigger(this.thisValue[r].type)=="divider")){e=this.thisValue[r],o=r;break}}this.selectionFormat(e),this.scrollFormat(this.$refs[`list_item_${o}`][0])},enter(t){let i=this.thisValue.find(o=>o.selected===!0);if(!i)return;if(this.multiple)this.currentChoosen.find(r=>r.key===i.key)!=null?(i.choosen=!1,this.thisValue[this.thisValue.indexOf(i)]=i):(i.choosen=!0,this.thisValue[this.thisValue.indexOf(i)]=i);else{for(let o of this.currentChoosen)o.choosen=!1,this.thisValue[this.thisValue.indexOf(o)]=o;i.choosen=!0,this.thisValue[this.thisValue.indexOf(i)]=i}let e=this.thisValue.indexOf(i);this.$emit("chooseItem",{item:i,index:e,event:t}),this.setSliderTarget(e),this.$emit("choosen-items",this.currentChoosen)},scrollFormat(t){let i=t.getBoundingClientRect(),e=this.$refs.container.getBoundingClientRect();if(i.top<e.top){let o=e.top-i.top;this.$refs.container.scrollTop-=o}if(i.bottom>e.bottom){let o=e.bottom-i.bottom;this.$refs.container.scrollTop-=o}},selectionFormat(t){this.thisValue.forEach((i,e)=>{i.key===t.key&&i.name===t.name?(i.selected=!0,this.thisValue[e]=i,this.$emit("selection-change",i)):(i.selected=!1,this.thisValue[e]=i)})},setSliderTarget(t=null){if(!t){for(let i=0;i<this.thisValue.length;i++)if(this.thisValue[i].choosen){t=i;break}}this.$refs[`list_item_${t}`]&&(this.thisSliderTarget=this.$refs[`list_item_${t}`][0],this.thisSliderIndex=t)},sliderRefreshInit(){this.timer.slider=setInterval(()=>{if(this.thisSliderTarget){let t=this.thisSliderTarget,i=this.$el.getBoundingClientRect().top,e=t.getBoundingClientRect().top;this.currentTop=e-i}else this.currentTop=0;if(this.thisSliderTarget){let t=this.thisSliderTarget;this.currentHeight=t.clientHeight}else this.currentHeight=0},30)},dragOver(t,i){t.preventDefault(),t.stopPropagation(),!this.valueTrigger(i.disabled)&&this.$emit("item-drag-over",{drop:i,root:this.thisValue})},dragLeave(t,i){t.preventDefault(),t.stopPropagation(),this.$emit("item-drag-leave",{drop:i,root:this.thisValue})},dropItem(t,i){t.preventDefault(),t.stopPropagation(),!this.valueTrigger(i.disabled)&&this.$emit("item-drop",{drop:i,root:this.thisValue})},inspectItemAPI(t){let i=this.thisValue.find(r=>this.valueTrigger(r.name)===this.valueTrigger(t.name)&&this.valueTrigger(r.type)===this.valueTrigger(t.type)&&r.key===t.key),e=this.thisValue.indexOf(i);if(e<0)return 0;let o=this.$refs.container.querySelectorAll(".list-view-item");this.onChoosen({target:o[e]},t)}},beforeUnmount(){clearInterval(this.timer.slider),window.removeEventListener("click",this.outSideClickEvent)}},{props:{...A,modelValue:{default:()=>[]},choosen:{default:()=>[]},multiple:{default:!1},rowHeight:{default:""},headerForeground:{default:""},choosenBackground:{default:""},itemPadding:{default:""},itemBorderRadius:{default:3},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},showSlider:{default:!1},sliderTarget:{default:()=>{}},sliderIndex:{default:-1}},emits:["update:modelValue","item-click","chooseItem","choosen-items","selection-change","item-drag-over","item-drag-leave","item-drop","update:sliderTarget","update:sliderIndex"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-reveal-container");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-ListView",[e.$theme]]),onClick:o[0]||(o[0]=s=>e.focus=!0)},[n.createElementVNode("div",Sm,[n.renderSlot(e.$slots,"header")]),n.createElementVNode("div",$m,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.thisValue,(s,l)=>n.withDirectives((n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass([{choose:e.valueTrigger(s.choosen),header:e.valueTrigger(s.type)=="header",hr:e.valueTrigger(s.type)=="divider",normal:e.valueTrigger(s.type)=="default"||e.valueTrigger(s.type)==null,disabled:e.valueTrigger(s.disabled),selected:s.selected&&e.showSelectedBorder},"list-view-item"]),key:l,style:n.normalizeStyle({height:e._rowHeight,background:e.valueTrigger(s.choosen)?t.choosenBackground:"",borderRadius:t.itemBorderRadius+"px"}),ref_for:!0,ref:`list_item_${l}`,onClick:a=>e.handlerClick(a,s),onTouchend:a=>e.handlerClick(a,s),onDragover:a=>e.dragOver(e.event,s),onDragleave:a=>e.dragLeave(e.event,s),onDrop:a=>e.dropItem(e.event,s)},[(e.valueTrigger(s.type)=="default"||e.valueTrigger(s.type)==null)&&!e.valueTrigger(s.disabled)?(n.openBlock(),n.createBlock(r,{key:0,revealContainer:e.FR,parent:()=>e.$refs[`list_item_${l}`][0],class:"fv-listview-reveal-container",backgroundColor:e.backgroundLightColor,borderColor:e.borderLightColor,borderGradientSize:35,borderWidth:1,borderRadius:t.itemBorderRadius},null,8,["revealContainer","parent","backgroundColor","borderColor","borderRadius"])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"item-content",style:n.normalizeStyle({padding:t.itemPadding})},[n.renderSlot(e.$slots,"listItem",{item:s,index:l,valueTrigger:e.valueTrigger},()=>[n.createElementVNode("p",{style:n.normalizeStyle({color:e.valueTrigger(s.type)=="header"?t.headerForeground:""})},n.toDisplayString(e.valueTrigger(s.name)),5)])],4)],46,Em)),[[n.vShow,e.valueTrigger(s.show)!==!1]])),128))],512),n.createElementVNode("div",xm,[n.renderSlot(e.$slots,"footer")]),t.showSlider?(n.openBlock(),n.createBlock(hs,{key:0,top:e.currentTop,height:e.currentHeight,background:t.headerForeground},null,8,["top","height","background"])):n.createCommentVNode("",!0)],2)}}}),us=W(Tm),v1="",C1="",V1="",Dm={name:"FvMenuFlyoutChildrenContainer",emits:["choose-item"],props:{modelValue:{default:()=>[]},options:{default:()=>[]},background:{default:""},choosenBackground:{default:""},choosenSliderBackground:{default:""},titleForeground:{default:""},pivotPlaceholder:{default:"Please Choose"},theme:{type:String,default:"global"}},data(){return{thisValue:this.modelValue,pivotValue:null}},watch:{modelValue(t){this.thisValue=t},pivotItems(t){t.length>0&&(this.pivotValue=t[t.length-1])}},computed:{pivotItems(){let t=[];for(let i of this.thisValue)t.push({key:i.key,name:i.text,ori:i,width:this.pivotTextWidth(i.text)});return(t.length==0||t[t.length-1].ori.children)&&t.push({key:"$fv-menu-flyout-pivot-placeholder",name:this.pivotPlaceholder,ori:{},width:this.pivotTextWidth(this.pivotPlaceholder)}),t},pivotTextWidth(){return t=>t.length<5?60:t.length>20?200:10*t.length},computedOptions(){if(!this.pivotValue)return this.options;let t=this.pivotItems.findIndex(i=>i.key==this.pivotValue.key);return t>0?this.pivotItems[t-1].ori.children?this.pivotItems[t-1].ori.children:[]:this.options},isChoosen(){return t=>this.pivotValue?t.key===this.pivotValue.key&&t.text===this.pivotValue.name:!1},$theme(){return z(this.$props).theme.value}},mounted(){},methods:{valueTrigger(t){return typeof t=="function"?t():t},Choose(t,i){if(this.valueTrigger(i.disabled)||this.valueTrigger(i.type)=="header"||this.valueTrigger(i.type)=="divider")return 0;let e=t.target;for(;e.getAttribute("class").indexOf("fv-menu-flyout-item")<0;)e=e.parentNode;this.$refs.co_items.scrollTop=e.offsetTop,this.$emit("choose-item",{item:i,index:this.thisValue.findIndex(o=>o.key==this.pivotValue.key&&o.text==this.pivotValue.name)})}}},Im={class:"menu-flyout-list-container"},Bm=["onClick","title"],Nm={class:"ms-Icon ms-Icon--ChevronRight after-expand"};function Lm(t,i,e,o,r,s){const l=n.resolveComponent("fv-pivot");return n.openBlock(),n.createBlock(n.Transition,{name:"fv-menu-flyout"},{default:n.withCtx(()=>[n.createElementVNode("div",Im,[n.createVNode(l,{modelValue:r.pivotValue,"onUpdate:modelValue":i[0]||(i[0]=a=>r.pivotValue=a),theme:s.$theme,items:s.pivotItems,fontSize:12,sliderBackground:e.choosenSliderBackground,style:{width:"100%",height:"50px","overflow-x":"auto"}},null,8,["modelValue","theme","items","sliderBackground"]),n.createVNode(n.TransitionGroup,{name:"fv-menu-flyout-item",tag:"div",class:"menu-flyout-item-container",style:n.normalizeStyle({background:e.background,"overflow-y":"auto","overflow-x":"visible"}),ref:"co_items"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.computedOptions,(a,d)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-menu-flyout-item",{hr:s.valueTrigger(a.type)=="divider",normal:(s.valueTrigger(a.type)=="default"||s.valueTrigger(a.type)==null)&&!s.valueTrigger(a.disabled),disabled:s.valueTrigger(a.disabled),choose:s.isChoosen(a),title:s.valueTrigger(a.type)=="header"}]),style:n.normalizeStyle({background:s.isChoosen(a)?e.choosenBackground:"",color:s.valueTrigger(a.type)==="header"?e.titleForeground:""}),onClick:h=>s.Choose(h,a),key:`options: ${a.key?a.key:d}`,title:s.valueTrigger(a.text)},[n.renderSlot(t.$slots,"default",{item:a,choosenSliderBackground:e.choosenSliderBackground},()=>[n.createElementVNode("i",{class:"before-choosen",style:n.normalizeStyle({background:e.choosenSliderBackground})},null,4),n.createTextVNode(" "+n.toDisplayString(s.valueTrigger(a.type)!=="divider"?s.valueTrigger(a.text):"")+" ",1),n.withDirectives(n.createElementVNode("i",Nm,null,512),[[n.vShow,a.children]])])],14,Bm))),128))]),_:3},8,["style"])])]),_:3})}const cs=q(Dm,[["render",Lm]]),Fm=["placeholder","value"],Mm={class:"ms-Icon ms-Icon--ChevronRight after-expand"},Pm=Object.assign({name:"FvMenuFlyout",components:{menuFlyoutChildrenContainer:cs},data(){return{thisValue:this.modelValue,status:!1}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)}},computed:{isDisabled(){return this.options.length==0||this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"},computedValue(){let t=[];for(let i of this.thisValue)t.push(i.text);return t.join(" / ")},$theme(){return z(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent),window.addEventListener("touchend",this.outSideClickEvent)},outSideClickEvent(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}i=i.parentNode}e||(this.status=!1)},valueTrigger(t){return typeof t=="function"?t():t},Choose(t){let{item:i,index:e}=t;e==-1?this.thisValue.push(i):(this.thisValue.splice(e+1),this.thisValue[e]=i),i.children||(this.status=!1),this.$emit("choose-item",this.thisValue)}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent),window.removeEventListener("touchend",this.outSideClickEvent)}},{props:{...A,modelValue:{default:()=>[]},options:{default:()=>[]},borderWidth:{default:2},placeholder:{default:"menuFlyout"},borderRadius:{default:"3"},background:{default:""},choosenBackground:{default:""},choosenSliderBackground:{default:""},inputForeground:{default:""},inputBackground:{default:""},titleForeground:{default:""},dropDownIcon:{default:"ChevronDown"},dropDownIconForeground:{default:""},pivotPlaceholder:{default:"Please Choose"},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},disabled:{default:!1}},emits:["update:modelValue","choose-item"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-reveal-container");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-MenuFlyout",[e.$theme,{disabled:e.isDisabled}]]),style:n.normalizeStyle({background:t.background,padding:t.borderWidth,"border-radius":`${t.borderRadius}px`,"z-index":e.status?5:"",overflow:"visible"})},[n.createElementVNode("div",{class:"menu-flyout-container",onClick:o[0]||(o[0]=s=>e.status=e.isDisabled?!1:!e.status),style:n.normalizeStyle({background:t.inputBackground,"border-radius":`${t.borderRadius}px`})},[n.createVNode(r,{parent:()=>e.$el,class:"fv-menu-flyout-reveal-container",backgroundColor:e.backgroundLightColor,borderColor:e.borderLightColor,backgroundGradientSize:120,borderGradientSize:80,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:e.isDisabled},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),n.createElementVNode("input",{class:"input",placeholder:t.placeholder,readonly:"",value:e.computedValue,style:n.normalizeStyle({color:t.inputForeground,"border-radius":`${t.borderRadius}px`})},null,12,Fm),n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon right-icon",[`ms-Icon--${t.dropDownIcon}`]]),style:n.normalizeStyle({color:t.dropDownIconForeground})},null,6)],4),n.withDirectives(n.createVNode(cs,{modelValue:e.thisValue,options:t.options,background:t.background,choosenBackground:t.choosenBackground,titleForeground:t.titleForeground,theme:e.$theme,onChooseItem:e.Choose},{item:n.withCtx(s=>[n.renderSlot(e.$slots,"default",{item:s.item,choosenSliderBackground:s.choosenSliderBackground},()=>[n.createElementVNode("i",{class:"before-choosen",style:n.normalizeStyle({background:s.choosenSliderBackground})},null,4),n.createTextVNode(" "+n.toDisplayString(e.valueTrigger(s.item.type)!=="divider"?e.valueTrigger(s.item.text):"")+" ",1),n.withDirectives(n.createElementVNode("i",Mm,null,512),[[n.vShow,s.item.children]])])]),_:3},8,["modelValue","options","background","choosenBackground","titleForeground","theme","onChooseItem"]),[[n.vShow,e.status]])],6)}}}),fs=W(Pm),$1="",E1="",x1="",Rm={class:"msg-bar-block"},_m={class:"msg-content-block"},zm={class:"control-block"},ms=Object.assign({name:"FvMessageBar",data(){return{iconList:{default:{icon:"Info2",iconColor:"normal"},warning:{icon:"Info2",iconColor:"warning"},correct:{icon:"CheckMark",iconColor:"correct"},blocked:{icon:"Remove ",iconColor:"error"},error:{icon:"ErrorBadge12",iconColor:"error"}},timer:null}},watch:{autoClose(){this.autoDestroyInit()}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.autoDestroyInit(),this.enter()},methods:{enter(){this.$el.style.top="-100%",Z.to(this.$el,{top:0,duration:.3})},autoDestroyInit(){this.mode!=="relative"&&this.autoClose>0&&(clearTimeout(this.timer),this.timer=setTimeout(()=>{this.destroySelf()},this.autoClose))},destroySelf(){this.mode=="relative"?this.$emit("close"):Z.to(this.$el,{opacity:0,duration:.3,onComplete:()=>{this.$emit("close"),this.destroy()}})}}},{props:{...A,status:{type:[String,void 0],default:"default"},showControl:{type:[Boolean,void 0],default:!1},showClose:{type:[Boolean,void 0],default:!0},mode:{default:"relative"},destroy:{default:()=>{}},autoClose:{default:3e3}},emits:["close"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-MessageBar",[e.$theme,e.iconList[t.status].iconColor,{relative:t.mode=="relative"}]])},[n.createElementVNode("span",Rm,[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${e.iconList[t.status].icon}`,e.iconList[t.status].iconColor]])},null,2),n.createElementVNode("span",_m,[n.renderSlot(e.$slots,"msg",{theme:e.$theme},()=>[n.createTextVNode(" Message Bar. ")])]),n.withDirectives(n.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel close-block",onClick:o[0]||(o[0]=(...s)=>e.destroySelf&&e.destroySelf(...s))},null,512),[[n.vShow,t.showClose]])]),n.withDirectives(n.createElementVNode("span",zm,[n.renderSlot(e.$slots,"control",{theme:e.$theme,cancel:e.destroySelf},()=>[n.createVNode(r,null,{default:n.withCtx(()=>[n.createTextVNode("Yes")]),_:1})])],512),[[n.vShow,t.showControl]])],2)}}});function gs(t,i,e){let o=s=>{const l=n.h(ms,{status:i.status,showControl:i.showControl,showClose:i.showClose,mode:"fixed",autoClose:i.autoClose,destroy:()=>{n.render(null,s),i.once||s.remove()},theme:i.theme},{msg:t,control:i.control});return l.appContext=e,l},r=document.createElement("div");if(i.once){const s="__fv-global-message-bar__";r=document.getElementById(s),r||(r=document.createElement("div"),r.id=s,document.body.appendChild(r))}else document.body.appendChild(r);n.render(o(r),r)}function ps(t,i){var o;if(t.fvSwiftWarning)return 0;let e={color:"rgba(200, 50, 59, 1)",replaceTitle:"SwiftWarning"};e=Object.assign(e,i),e.oriContent=t.innerHTML,e.oriClass=t.getAttribute("class"),e.oriStyle=t.getAttribute("style"),e.oriClass==null&&(e.oriClass=""),e.oriStyle==null&&(e.oriStyle=""),t.fvSwiftWarning=!0,t.innerHTML=(o=e.replaceTitle)!=null?o:"SwiftWarning",t.setAttribute("class",e.oriClass+" fv-swift-warning"),t.setAttribute("style",e.oriStyle+` color: ${e.color};`),setTimeout(()=>{var r,s,l;t.innerHTML=(r=e.oriContent)!=null?r:"",t.setAttribute("class",(s=e.oriClass)!=null?s:""),t.setAttribute("style",(l=e.oriStyle)!=null?l:""),t.fvSwiftWarning=!1},3e3)}const ws={install(t){t.config.globalProperties.$barWarning=(i,e)=>{gs(i,{...e},t._context)},t.config.globalProperties.$swiftWarning=ps}},bs=_n(ms,[ws]),D1="",I1="",B1="",Om=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Back icon"},null,-1),Am=n.createElementVNode("i",{class:"ms-Icon ms-Icon--GlobalNavButton icon"},null,-1),Wm=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Back icon"},null,-1),Hm={class:"name title"},Gm=n.createElementVNode("i",{class:"ms-Icon ms-Icon--GlobalNavButton icon"},null,-1),Um={class:"search"},Ym={class:"template"},jm=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Settings icon"},null,-1),Xm={class:"name"},qm=Object.assign({name:"FvNavigationPanel",beforeMount(){this.uR=Fn(),this.uR.initRevealInstances()},data(){return{FR:null,uR:null,thisExpand:this.expand,thisExpandBackup:this.expand,screenWidth:window.innerWidth,timer:{widthTimer:{}}}},watch:{expand(t){this.thisExpand=t},thisExpand(t){this.$emit("update:expand",t),this.$emit("expand-change",t)},screenWidth(t){this.expandDisplay<this.screenWidth?this.isFlyout?this.thisExpand=!1:this.thisExpand=this.thisExpandBackup:this.thisExpand=!1}},computed:{panelWidth(){return this.isFlyout?`${this.compactWidth}px`:this.thisExpand?this.screenWidth<=this.fullSizeDisplay?"100%":`${this.expandWidth}px`:`${this.compactWidth}px`},navWidth(){let t=this.screenWidth<=this.fullSizeDisplay?"100%":`${this.expandWidth}px`;return this.thisExpand?t:`${this.compactWidth}px`},isFlyout(){return this.expandMode=="flyout"||this.flyoutDisplay>this.screenWidth},isMobile(){return this.mobileDisplay>this.screenWidth},borderLightColor(){return()=>this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return()=>this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"},$theme(){return z(this.$props).theme.value}},mounted(){this.screenWidthInit(),this.outSideClickInit()},methods:{FRInit(){this.FR=this.uR.revealDirectJs.apply(this.$el,{selector:`.fv-${this.$theme}-NavigationPanel .panel-container .fv-nav-default-item`,borderGradientSize:60,borderLightColor:this.borderLightColor,backgroundLightColor:this.backgroundLightColor})},screenWidthInit(){this.timer.widthTimer=setInterval(()=>{this.screenWidth=window.innerWidth},30)},outSideClickInit(){window.addEventListener("click",this.outSideClickEvent)},outSideClickEvent(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}i=i.parentNode}e||(this.isFlyout||this.isMobile)&&(this.thisExpand=!1)},expandClick(){this.thisExpandBackup=!this.thisExpand,this.thisExpand=!this.thisExpand,this.$emit("expand-click",this.thisExpand)}},beforeUnmount(){clearInterval(this.timer.widthTimer),this.uR.revealDirectJs.destroy(this.FR),window.removeEventListener("click",this.outSideClickEvent)}},{props:{...A,title:{default:"NavigationPanel"},expand:{default:!0},expandMode:{default:"relative"},expandWidth:{default:350},expandDisplay:{default:1024},compactWidth:{default:50},flyoutDisplay:{default:0},fullSizeDisplay:{default:800},mobileDisplay:{default:0},showBack:{default:!0},showNav:{default:!0},showSearch:{default:!0},settingTitle:{default:"Settings"},showSetting:{default:!0},background:{default:""}},emits:["back","setting-click","expand-change","expand-click","update:expand"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-animated-icon"),s=n.resolveComponent("fv-search-box");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-NavigationPanel",[e.$theme,{compact:!e.thisExpand},{flyout:e.isFlyout},{mobile:e.isMobile}]]),style:n.normalizeStyle({position:e.screenWidth<=t.fullSizeDisplay&&e.thisExpand?"static":"",width:e.panelWidth})},[n.createElementVNode("div",{class:"panel-container-mobile",style:n.normalizeStyle({background:e.thisExpand?"":t.background})},[n.withDirectives(n.createVNode(r,{modelValue:"backScale",class:"fv-nav-default-item",hideContent:!0,style:n.normalizeStyle({width:`${t.compactWidth}px`}),onClick:o[0]||(o[0]=l=>e.$emit("back",l))},{default:n.withCtx(()=>[Om]),_:1},8,["style"]),[[n.vShow,t.showBack]]),n.withDirectives(n.createVNode(r,{modelValue:"scaleXDown",class:"fv-nav-default-item",hideContent:!0,style:n.normalizeStyle({width:`${t.compactWidth}px`}),onClick:e.expandClick},{default:n.withCtx(()=>[Am]),_:1},8,["style","onClick"]),[[n.vShow,t.showNav]])],4),n.createElementVNode("div",{class:"panel-container",style:n.normalizeStyle({width:e.navWidth,background:t.background})},[n.renderSlot(e.$slots,"banner"),n.withDirectives(n.createVNode(r,{modelValue:"backScale",class:"fv-nav-default-item control",hideContent:!e.thisExpand,style:{width:"calc(100% - 10px)"},onClick:o[1]||(o[1]=l=>e.$emit("back",l))},{content:n.withCtx(()=>[n.renderSlot(e.$slots,"title",{show:t.showBack},()=>[n.createElementVNode("p",Hm,n.toDisplayString(t.title),1)])]),default:n.withCtx(()=>[n.renderSlot(e.$slots,"backIcon",{},()=>[Wm])]),_:3},8,["hideContent"]),[[n.vShow,t.showBack]]),n.withDirectives(n.createVNode(r,{modelValue:"scaleXDown",class:"fv-nav-default-item control",hideContent:!e.thisExpand,style:{width:"calc(100% - 10px)"},onClick:e.expandClick},{content:n.withCtx(()=>[n.renderSlot(e.$slots,"title",{show:!t.showBack},()=>[n.withDirectives(n.createElementVNode("p",{class:"name title"},n.toDisplayString(t.title),513),[[n.vShow,!t.showBack]])])]),default:n.withCtx(()=>[n.renderSlot(e.$slots,"navIcon",{},()=>[Gm])]),_:3},8,["hideContent","onClick"]),[[n.vShow,t.showNav]]),n.withDirectives(n.createElementVNode("span",Um,[n.renderSlot(e.$slots,"searchBlock",{},()=>[n.createVNode(s,{icon:"Search",placeholder:"Search",class:"nav-search",theme:e.theme,revealBorder:!0,borderWidth:"2",borderRadius:"6",isBoxShadow:!0,style:{width:"95%"}},null,8,["theme"])])],512),[[n.vShow,t.showSearch&&e.thisExpand]]),n.createElementVNode("div",Ym,[n.renderSlot(e.$slots,"panel")]),n.withDirectives(n.createVNode(r,{modelValue:"bounceRotate",ref:"setting",class:"fv-nav-default-item",hideContent:!e.thisExpand,style:{width:"calc(100% - 10px)"},onClick:o[2]||(o[2]=l=>e.$emit("setting-click",{event:l}))},{content:n.withCtx(()=>[n.createElementVNode("p",Xm,n.toDisplayString(t.settingTitle),1)]),default:n.withCtx(()=>[jm]),_:1},8,["hideContent"]),[[n.vShow,t.showSetting]])],4)],6)}}}),ys=W(qm),L1="",F1="",M1="",Km=n.createElementVNode("i",{class:"ms-Icon ms-Icon--GlobalNavButton icon"},null,-1),Jm=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Back icon"},null,-1),Qm=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Settings icon"},null,-1),Zm={class:"name"},eg=Object.assign({name:"FvNavigationView",data(){return{thisValue:{},thisExpand:this.expand,currentTarget:{},currentTop:0,currentHeight:0,timer:{slider:{}}}},watch:{modelValue(t,i){this.valueInit()},thisValue(t,i){t.name===i.name&&t.key===i.key||(this.$nextTick(()=>{this.onChooseSearch(t)}),this.$emit("update:modelValue",t))},expand(t){this.thisExpand=t},thisExpand(t){this.$emit("update:expand",t)}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.valueInit()},methods:{valueInit(){if(this.modelValue.type==="setting")return this.thisValue=this.modelValue,0;let t=this.options.find(i=>i.name===this.modelValue.name&&i.key===this.modelValue.key);t!==void 0?this.thisValue=t:this.thisValue=this.options.find(i=>i.type!=="header"&&i.type!=="divider")},itemClick(t){this.thisValue=t.item},settingClick(t){this.currentTarget=this.$refs.setting.$el,this.thisValue={key:">setting",name:">setting",type:"setting"},this.$emit("setting-click",t)},expandChange(t){this.$emit("expand-change",t)},onChooseSearch(t){if(t.type==="setting")return this.currentTarget=this.$refs.setting.$el,this.thisValue={key:">setting",name:">setting",type:"setting"},0;let i=this.options.find(o=>o.name===t.name&&o.key===t.key),e=this.options.indexOf(i);if(e<0)return 0;this.currentTarget=this.$refs.listView.$refs[`list_item_${e}`][0],this.thisValue=i}},beforeUnmount(){clearInterval(this.timer)}},{props:{...A,emits:["update:modelValue","expand-change","setting-click","item-click","back","expand-click","update:expand"],modelValue:{default:()=>({})},options:{default:()=>[]},title:{default:"NavigationView"},expand:{default:!0},expandMode:{default:"relative"},expandWidth:{default:350},expandDisplay:{default:1024},compactWidth:{default:46},flyoutDisplay:{default:0},fullSizeDisplay:{default:800},mobileDisplay:{default:0},showBack:{default:!0},showNav:{default:!0},showSearch:{default:!0},settingTitle:{default:"Settings"},showSetting:{default:!0},searchPlaceholder:{default:"Search"},foreground:{default:""},background:{default:""}},emits:["update:modelValue","expand-change","setting-click","item-click","back","expand-click","update:expand"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-search-box"),s=n.resolveComponent("fv-animated-icon"),l=n.resolveComponent("fv-list-view"),a=n.resolveComponent("fv-NavigationPanel");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-NavigationView",[e.$theme,{compact:!e.thisExpand}]])},[n.createVNode(a,{title:t.title,expand:e.thisExpand,"onUpdate:expand":o[3]||(o[3]=d=>e.thisExpand=d),expandMode:t.expandMode,expandWidth:t.expandWidth,expandDisplay:t.expandDisplay,compactWidth:t.compactWidth,flyoutDisplay:t.flyoutDisplay,fullSizeDisplay:t.fullSizeDisplay,mobileDisplay:t.mobileDisplay,showBack:t.showBack,showNav:t.showNav,showSearch:t.showSearch,settingTitle:t.settingTitle,showSetting:!1,background:t.background,theme:e.theme,ref:"panel",onBack:o[4]||(o[4]=d=>e.$emit("back",d)),onExpandClick:o[5]||(o[5]=d=>e.$emit("expand-click",d)),onExpandChange:e.expandChange,onSettingClick:e.settingClick},{banner:n.withCtx(()=>[n.renderSlot(e.$slots,"banner")]),title:n.withCtx(({show:d})=>[n.renderSlot(e.$slots,"title",{show:d},()=>[n.withDirectives(n.createElementVNode("p",{class:"name title"},n.toDisplayString(t.title),513),[[n.vShow,d]])])]),navIcon:n.withCtx(()=>[n.renderSlot(e.$slots,"navIcon",{},()=>[Km])]),backIcon:n.withCtx(()=>[n.renderSlot(e.$slots,"backIcon",{},()=>[Jm])]),searchBlock:n.withCtx(()=>[n.renderSlot(e.$slots,"searchBlock",{options:t.options},()=>[n.createVNode(r,{options:t.options,icon:"Search",placeholder:t.searchPlaceholder,theme:e.theme,class:"nav-search",revealBorder:!0,borderRadius:"3",isBoxShadow:!0,style:{width:"95%"},onChooseResult:e.onChooseSearch},null,8,["options","placeholder","theme","onChooseResult"])])]),panel:n.withCtx(()=>[n.createVNode(l,{modelValue:t.options,class:"navigation-list",ref:"listView",theme:e.theme,headerForeground:t.foreground,choosenBackground:"transparent",sliderTarget:e.currentTarget,"onUpdate:sliderTarget":o[1]||(o[1]=d=>e.currentTarget=d),showSlider:!0,onChooseItem:e.itemClick,onItemClick:o[2]||(o[2]=d=>e.$emit("item-click",d.item))},{listItem:n.withCtx(d=>[n.renderSlot(e.$slots,"listItem",{item:d.item,index:d.index,valueTrigger:d.valueTrigger},()=>[n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon",[`ms-Icon--${d.valueTrigger(d.item.icon)}`]])},null,2),[[n.vShow,d.valueTrigger(d.item.icon)!==void 0]]),n.createElementVNode("p",{class:"name",style:n.normalizeStyle({color:d.valueTrigger(d.item.type)=="header"?t.foreground:""})},n.toDisplayString(d.valueTrigger(d.item.name)),5)])]),footer:n.withCtx(()=>[n.withDirectives(n.createVNode(s,{ref:"setting",modelValue:"bounceRotate",class:"fv-nav-default-item",hideContent:!e.thisExpand,style:{width:"calc(100% - 10px)"},onClick:o[0]||(o[0]=d=>e.settingClick({event:d}))},{content:n.withCtx(()=>[n.createElementVNode("p",Zm,n.toDisplayString(t.settingTitle),1)]),default:n.withCtx(()=>[Qm]),_:1},8,["hideContent"]),[[n.vShow,t.showSetting]])]),_:3},8,["modelValue","theme","headerForeground","sliderTarget","onChooseItem"])]),_:3},8,["title","expand","expandMode","expandWidth","expandDisplay","compactWidth","flyoutDisplay","fullSizeDisplay","mobileDisplay","showBack","showNav","showSearch","settingTitle","background","theme","onExpandChange","onSettingClick"])],2)}}}),ks=W(eg),R1="",_1="",z1="",tg={class:"fv-pagination-container"},ig=n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronLeft"},null,-1),ng=n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"},null,-1),og=Object.assign({name:"FvPagination",data(){return{thisValue:this.modelValue,itemList:[]}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t),this.pageItem()},total(t){t<=0?this.itemList=[]:this.pageItem()}},computed:{isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return z(this.$props).theme.value}},mounted(){this.total<=0?this.itemList=[]:this.pageItem()},methods:{pageItem(){let t=[],i=(this.thisValue-2)*2+3<=this.maxVisual,e=(this.total-this.thisValue-1)*2+3<=this.maxVisual;this.total<=this.maxVisual&&(i=e=!0);let o=this.thisValue==1||this.thisValue==this.total?this.maxVisual-2:this.maxVisual-3;for(let s=0;s<this.total;s++)t.push({num:s+1,index:s,show:!1});t[0].show=!0,t[t.length-1].show=!0;let r=t.find(s=>s.num===this.thisValue).index;t[r].show=!0;for(let s=1;r+s<t.length||r-s>0;s++)r-s>0&&o>0&&(t[r-s].show=!0,o--),r+s<t.length-1&&o>0&&(t[r+s].show=!0,o--);i||t.splice(1,0,{num:-1,index:-1,show:!0}),e||t.splice(this.total-1,0,{num:-2,index:-2,show:!0}),this.itemList=t},next(){this.thisValue++,this.$emit("next-click",this.thisValue)},prev(){this.thisValue--,this.$emit("prev-click",this.thisValue)},handleClick(t){t.index>=0?this.thisValue=t.num:t.index==-1?this.thisValue=this.thisValue-this.maxVisual+2>=1?this.thisValue-this.maxVisual+2:1:t.index==-2&&(this.thisValue=this.thisValue+this.maxVisual-2<=this.total?this.thisValue+this.maxVisual-2:this.total),this.$emit("page-click",this.thisValue)}}},{props:{...A,emits:["update:modelValue","next-click","prev-click","page-click"],modelValue:{default:1},foreground:{default:"rgba(0, 90, 158, 1)"},background:{default:"transparent"},total:{default:10},maxVisual:{default:7},small:{default:!1},shadow:{default:!1},disabled:{default:!1}},emits:["update:modelValue","next-click","prev-click","page-click"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Pagination",[e.$theme]])},[n.createElementVNode("div",tg,[n.createVNode(r,{disabled:e.thisValue==1||e.isDisabled,class:n.normalizeClass([{small:t.small},"page-btn"]),theme:e.theme,background:t.background,"is-box-shadow":t.shadow,borderRadius:"3",onClick:e.prev},{default:n.withCtx(()=>[ig]),_:1},8,["disabled","class","theme","background","is-box-shadow","onClick"]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.itemList,(s,l)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[s.show?(n.openBlock(),n.createBlock(r,{key:l,class:n.normalizeClass([{small:t.small},"page-btn"]),theme:e.theme,disabled:e.isDisabled,background:t.background,foreground:e.thisValue==s.num?t.foreground:"","is-box-shadow":t.shadow,borderRadius:"3",fontWeight:"bold",onClick:a=>e.handleClick(s)},{default:n.withCtx(()=>[n.createElementVNode("p",{class:n.normalizeClass([{"ms-Icon ms-Icon--More":s.num<0}])},n.toDisplayString(s.num>=0?s.num:""),3)]),_:2},1032,["class","theme","disabled","background","foreground","is-box-shadow","onClick"])):n.createCommentVNode("",!0)],64))),256)),n.createVNode(r,{disabled:e.thisValue==t.total||e.isDisabled,class:n.normalizeClass([{small:t.small,shadow:t.shadow},"page-btn"]),theme:e.theme,background:t.background,borderRadius:"3",onClick:e.next},{default:n.withCtx(()=>[ng]),_:1},8,["disabled","class","theme","background","onClick"])])],2)}}}),vs=W(og),A1="",W1="",H1="",rg=Object.assign({name:"FvPanel",data(){return{thisValue:this.modelValue,screenWidth:window.innerWidth,timer:{widthTimer:{}}}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)}},computed:{finalWidth(){return isNaN(this.width)?this.width:this.width>this.screenWidth?`${this.screenWidth}px`:`${this.width}px`},finalHeight(){return isNaN(this.height)?this.height:this.height>this.screenHeight?`${this.screenHeight}px`:`${this.height}px`},sideName(){return this.isCentralSide?"central":this.isNearSide?"near":this.isTopSide?"top":this.isBottomSide?"bottom":"default"},transitionInName(){return this.sideName==="central"?this.thisValue?"fv-panel-scale-up-to-up":"fv-panel-scale-down-to-down":this.sideName==="near"?this.thisValue?"move-left-to-right":"move-right-to-left":this.sideName==="top"?this.thisValue?"move-top-to-bottom":"move-bottom-to-top":this.sideName==="bottom"?this.thisValue?"move-bottom-to-top":"move-top-to-bottom":this.thisValue?"move-right-to-left":"move-left-to-right"},$theme(){return z(this.$props).theme.value}},mounted(){this.screenWidthInit(),this.teleport&&this.globalAppendInit()},methods:{globalAppendInit(){this.$nextTick(()=>{const t=document.querySelector("body");t.append?t.append(this.$el):t.appendChild(this.$el)})},screenWidthInit(){this.timer.widthTimer=setInterval(()=>{this.screenWidth=window.innerWidth},30)}},beforeUnmount(){clearInterval(this.timer.widthTimer);try{document.querySelector("body").removeChild(this.$el)}catch{}}},{props:{...A,modelValue:{default:!0},title:{default:"Sample Panel"},titleSize:{default:20},titleWeight:{default:600},titleColor:{default:""},width:{default:"340"},height:{default:"100%"},background:{default:""},controlPadding:{default:"15px"},contentPadding:{default:"0px"},isNearSide:{default:!1},isBottomSide:{default:!1},isTopSide:{default:!1},isCentralSide:{default:!1},isLightDismiss:{default:!1},showTitleBar:{default:!0},isFooter:{default:!1},isAcrylic:{default:!1},teleport:{default:!1}},emits:["update:modelValue"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-button");return n.openBlock(),n.createBlock(n.Transition,{name:"fv-panel-show"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["fv-Panel",[e.$theme]])},[n.createElementVNode("div",{class:"fv-panel-back-board",onClick:o[0]||(o[0]=s=>t.isLightDismiss?e.thisValue=!1:0)}),n.createVNode(n.Transition,{name:e.transitionInName},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["fv-panel-container",[`${e.sideName}-side`,{"acrylic-style":t.isAcrylic}]]),style:n.normalizeStyle({width:e.finalWidth,height:e.finalHeight,background:t.background})},[n.withDirectives(n.createElementVNode("div",{class:"fv-panel-control-block",style:n.normalizeStyle({padding:t.controlPadding})},[n.renderSlot(e.$slots,"header",{},()=>[n.createElementVNode("p",{class:"panel-title",style:n.normalizeStyle({"font-size":`${t.titleSize}px`,"font-weight":t.titleWeight,color:t.titleColor})},n.toDisplayString(t.title),5),n.createElementVNode("i",{class:"control-btn ms-Icon ms-Icon--Cancel",onClick:o[1]||(o[1]=s=>e.thisValue=!e.thisValue)})])],4),[[n.vShow,t.showTitleBar]]),n.createElementVNode("div",{class:"fv-panel-main-container",style:n.normalizeStyle({padding:t.contentPadding})},[n.renderSlot(e.$slots,"container",{},()=>[n.createTextVNode(" Content Here ")])],4),n.withDirectives(n.createElementVNode("div",{class:"fv-panel-footer",style:n.normalizeStyle({padding:t.controlPadding})},[n.renderSlot(e.$slots,"footer",{},()=>[n.createVNode(r,{theme:"dark",background:"rgba(0, 90, 158, 1)"},{default:n.withCtx(()=>[n.createTextVNode("OK")]),_:1}),n.createVNode(r,null,{default:n.withCtx(()=>[n.createTextVNode("Cancel")]),_:1})])],4),[[n.vShow,t.isFooter]])],6),[[n.vShow,e.thisValue]])]),_:3},8,["name"])],2),[[n.vShow,e.thisValue]])]),_:3})}}}),Cs=W(rg),U1="",Y1="",j1="",sg={class:"persona-content-block"},lg=Object.assign({name:"FvPersona",data(){return{statusList:{online:{icon:"FullCircleMask",color:"rgba(107, 183, 0, 1)"},offline:{icon:"LocationFill",color:"rgba(50, 49, 48, 1)"},away:{icon:"SkypeCircleClock",color:"rgba(255, 170, 68, 1)"},busy:{icon:"LocationFill",color:"rgba(196, 49, 72, 1)"},ok:{icon:"SkypeCircleCheck",color:"rgba(107, 183, 0, 1)"},dnd:{icon:"SkypeCircleMinus",color:"rgba(197, 15, 31, 1)"},blocked:{icon:"Blocked",color:"rgba(196, 49, 32, 1)"}},colorList:["#d29200","#ffb900","#ffb900","#d83b01","#ea4300","#ff8c00","#a4262c","#d13438","#5c005c","#b4009e","#e3008c","#32145a","#5c2d91","#b4a0ff","#002050","#00188f","#0078d4","#00bcf2","#004b50","#008272","#00B294","#004b1c","#107c10","#bad80a"]}},computed:{nameCard(){return this.name[0]},nameCardBackground(){let t=0;return this.name!==""&&(t=this.name[0].charCodeAt()%this.colorList.length),this.colorList[t]},currentIcon(){return this.icon!==""?this.icon:this.status===""?"":this.statusList[this.status].icon},currentIconColor(){return this.iconColor!=""?this.iconColor:this.status===""?this.statusList.online.color:this.statusList[this.status].color},iconFontSize(){return this.size/4.8+6},titleFontSize(){return this.size/16+12.5},secondaryFontSize(){return this.size/48+11.5},showStatus(){return this.status!==""||this.icon!==""},$theme(){return z(this.$props).theme.value}}},{props:{...A,src:{default:""},name:{default:""},size:{default:40},status:{default:""},icon:{default:""},iconColor:{default:""},background:{default:""},showInfo:{default:!1}},setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-img");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Persona",[e.$theme]])},[n.createElementVNode("div",{class:"persona-avatar",style:n.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`})},[n.createElementVNode("div",{class:"persona-bg",style:n.normalizeStyle({background:t.background?t.background:e.nameCardBackground,"font-size":`${t.size/2.3}px`})},n.toDisplayString(e.nameCard),5),t.src!==""?(n.openBlock(),n.createBlock(r,{key:0,src:t.src,style:{width:"100%",height:"100%","border-radius":"50%"}},null,8,["src"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon status-icon",[`ms-Icon--${e.currentIcon}`]]),style:n.normalizeStyle({"font-size":`${e.iconFontSize}px`,color:e.currentIconColor})},null,6),[[n.vShow,e.showStatus]])],4),n.withDirectives(n.createElementVNode("div",sg,[n.createElementVNode("span",{class:"persona-title",style:n.normalizeStyle({"font-size":`${e.titleFontSize}px`})},[n.renderSlot(e.$slots,"name",{},()=>[n.createElementVNode("p",null,n.toDisplayString(t.name),1)])],4),n.createElementVNode("span",{class:"persona-secondary",style:n.normalizeStyle({"font-size":`${e.secondaryFontSize}px`})},[n.renderSlot(e.$slots,"secondary")],4)],512),[[n.vShow,t.showInfo]])],2)}}}),Vs=W(lg),q1="",K1="",J1="",ag={emits:["update:modelValue"],props:{els:{default:()=>null},sliderBoxshadow:{default:!1},background:{default:""},theme:{type:String,default:"global"}},data(){return{domLeft:0,domWidth:60,styles:{slider:{background:""}}}},watch:{left(t){this.moveInit()},width(t){this.moveInit()}},computed:{left(){let{els:t,index:i}=this.els(),e=0;for(let o=0;o<i;o++){let r=t[o];if(!r.el||!r.show)e+=0;else{let s=r.el.clientWidth;e+=s}}return e},width(){let{els:t,index:i}=this.els(),e=t[i];return e.el?e.el.clientWidth:60},$theme(){return z(this.$props).theme.value}},mounted(){this.moveInit()},methods:{moveInit(){let t=this.left-this.domLeft;t>0?this.widthExpandToRight(t):this.widthExpandToLeft(t)},widthExpandToRight(t){let i=Math.abs(t)+this.width;Z.to(this.$data,{domWidth:i,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.widthFormatToRight})},widthFormatToRight(){Z.to(this.$data,{domLeft:this.left,domWidth:this.width,duration:.2,ease:"power3.out"})},widthExpandToLeft(t){let i=Math.abs(t)+this.width;Z.to(this.$data,{domLeft:this.left,domWidth:i,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.widthFormatToLeft})},widthFormatToLeft(){Z.to(this.$data,{domWidth:this.width,duration:.2,ease:"power3.out"})}}},dg={class:"slider"};function hg(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",dg,[n.createElementVNode("span",{class:n.normalizeClass(["fv-pivot-s",[{"is-boxshadow":e.sliderBoxshadow}]]),style:n.normalizeStyle({"margin-left":`${r.domLeft}px`,width:`${r.domWidth}px`})},[n.createElementVNode("p",{style:n.normalizeStyle({background:e.background})},null,4)],6)])}const Ss=q(ag,[["render",hg]]),ug={class:"pivot-container"},cg=["onClick"],fg=Object.assign({name:"FvPivot",components:{slider:Ss},data(){return{thisItems:[],thisValue:null,styles:{slider:{background:""},container:{color:""}}}},watch:{modelValue(t){this.findCurrentValue()},items(t){this.itemsInit()},thisValue(t){this.$emit("update:modelValue",t),this.$emit("change",t)},foreground(t){this.stylesInit()},sliderBackground(t){this.stylesInit()}},computed:{itemWidth(){return t=>t.width?isNaN(t.width)?this.valueTrigger(t.width):`${t.width}px`:0},currentEls(){return()=>{let t=-1;this.thisValue?this.thisValue.key?t=this.thisItems.findIndex(e=>e.key===this.thisValue.key):t=this.thisItems.findIndex(e=>this.valueTrigger(e.name)===this.valueTrigger(this.thisValue.name)):t=0,t<0&&(t=0);let i=[];for(let e=0;e<this.thisItems.length;e++)i.push({el:this.$refs[`item_${e}`]?this.$refs[`item_${e}`][0]:null,show:this.valueTrigger(this.thisItems[e].show)});return{index:t,els:i}}},$theme(){return z(this.$props).theme.value}},updated(){(!this.thisValue||!this.valueTrigger(this.thisValue.show))&&(this.thisValue=this.thisItems.find(t=>this.valueTrigger(t.show)&&!this.valueTrigger(t.disabled)))},mounted(){this.stylesInit(),this.itemsInit()},methods:{itemsInit(){let t={name:"Pivot",width:60,show:!0,disabled:!1},i=[];for(let e of this.items){let o=JSON.parse(JSON.stringify(t));Object.assign(o,e),i.push(o)}this.thisItems=i,this.findCurrentValue()},findCurrentValue(){if(!this.modelValue){let t=this.thisItems.find(i=>this.valueTrigger(i.show)&&!this.valueTrigger(i.disabled));t?this.thisValue=t:(this.thisValue={},console.warn("No visible item in ItemList."));return}if(this.modelValue.key){let t=this.thisItems.find(i=>i.key===this.modelValue.key);t&&(this.thisValue=t);return}else if(this.valueTrigger(this.modelValue.name)){let t=this.thisItems.find(i=>this.valueTrigger(i.name)===this.valueTrigger(this.modelValue.name));t&&(this.thisValue=t)}},stylesInit(){this.styles.slider.background=this.sliderBackground,this.styles.container.color=this.foreground},itemClick(t){if(t.disabled)return 0;this.thisValue=t},eqal(t){return this.thisValue?this.thisValue.key?this.thisValue.key===t.key:this.valueTrigger(this.thisValue.name)?this.valueTrigger(this.thisValue.name)===this.valueTrigger(t.name):!1:!1},valueTrigger(t){return typeof t=="function"?t():t}}},{props:{...A,modelValue:{default:()=>null},items:{default:()=>[{name:"Pivot",width:80}]},tab:{default:!1},fontSize:{default:""},foreground:{default:""},sliderBackground:{default:""},sliderBoxshadow:{default:!1},background:{default:""}},emits:["update:modelValue","change"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Pivot",[e.$theme,t.tab?"tab":""]]),style:n.normalizeStyle({background:t.background})},[n.createElementVNode("div",ug,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.thisItems,(r,s)=>n.withDirectives((n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(["pivot-item",{choose:e.eqal(r),disabled:e.valueTrigger(r.disabled)}]),key:s,ref_for:!0,ref:`item_${s}`,style:n.normalizeStyle({width:e.itemWidth(r)}),onClick:l=>e.itemClick(r)},[n.renderSlot(e.$slots,"container",{item:r,index:s},()=>[n.createElementVNode("p",{style:n.normalizeStyle({fontSize:`${t.fontSize}px`,color:e.styles.container.color})},n.toDisplayString(e.valueTrigger(r.name)),5)])],14,cg)),[[n.vShow,e.valueTrigger(r.show)]])),128))]),e.thisItems.length>0?(n.openBlock(),n.createBlock(Ss,{key:0,els:e.currentEls,sliderBoxshadow:t.sliderBoxshadow,background:e.styles.slider.background},null,8,["els","sliderBoxshadow","background"])):n.createCommentVNode("",!0)],6))}}),$s=W(fg),Z1="",ev="",tv="",mg=Object.assign({name:"FvProgressBar",data(){return{percent:this.modelValue}},watch:{modelValue(t){this.percent=t},percent(t){this.$emit("update:modelValue",t),this.$emit("progress-change",t),t>=100&&this.$emit("progress-finished",t)}},computed:{$theme(){return z(this.$props).theme.value},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}}},{props:{...A,modelValue:{default:0},foreground:{default:""},background:{default:""},loading:{default:!1},disabled:{default:!1}},emits:["update:modelValue","progress-change","progress-finished"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-ProgressBar",[e.$theme,t.loading.toString()!="true"?"normal":"",e.isDisabled?"disabled":""]]),style:n.normalizeStyle({background:t.background})},[(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(5,r=>n.withDirectives(n.createElementVNode("p",{class:"unit",style:n.normalizeStyle({background:t.foreground}),key:r},null,4),[[n.vShow,t.loading.toString()=="true"]])),64)),n.withDirectives(n.createElementVNode("i",{style:n.normalizeStyle({width:(e.percent<=100?e.percent:100)+"%",background:t.foreground})},null,4),[[n.vShow,t.loading.toString()!="true"]])],6))}}),Es=W(mg),nv="",ov="",rv="",gg={props:{size:{default:"xs"},color:{default:""}},data(){return{styles:{p:{background:""}}}},watch:{color(t){this.stylesInit()}},computed:{$theme(){return useTheme(this.$props).theme.value}},mounted(){this.stylesInit()},methods:{stylesInit(){this.styles.p.background=this.color}}};function pg(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-progressRing-legacy",e.size])},[(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(5,l=>n.createElementVNode("p",{style:n.normalizeStyle(r.styles.p),key:l},null,4)),64))],2)}const xs=q(gg,[["render",pg]]),wg=["width","height"],bg=["r","cy","cx","stroke-width","stroke"],yg=["r","cy","cx","stroke-width","stroke","stroke-dashoffset","stroke-dasharray"],kg=Object.assign({name:"FvProgressRing",components:{legacyRing:xs},data(){return{thisValue:this.modelValue,valueCache:this.modelValue,Loading:{ratio:5,rotate:-90}}},watch:{modelValue(t){this.thisValue=t},async thisValue(t){this.$emit("update:modelValue",t),await this.syncValue()}},computed:{l(){return(2*Math.PI*(this.r-this.borderWidth)).toFixed(2)},$theme(){return z(this.$props).theme.value}},mounted(){this.loadingInit()},methods:{loadingInit(){Z.to(this.$data.Loading,{ratio:70,duration:.8,repeat:-1,yoyo:!0,ease:"linear"}),Z.to(this.$data.Loading,{rotate:270,duration:.8,repeat:-1,ease:"linear"})},async syncValue(){await new Promise(t=>{Z.to(this.$data,{valueCache:this.thisValue,duration:.8,ease:"power3.out",onComplete:()=>{t(0)}})})}}},{props:{...A,modelValue:{default:0},size:{default:"xs"},r:{default:40},loading:{default:!1},color:{default:"rgba(0, 90, 158, 1)"},background:{default:"rgba(204, 204, 204, 1)"},borderWidth:{default:8},legacy:{default:!1}},emits:["update:modelValue"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-ProgressRing",[e.$theme]]),style:n.normalizeStyle({width:`${t.r*2}px`,height:`${t.r*2}px`})},[n.withDirectives((n.openBlock(),n.createElementBlock("svg",{width:`${t.r*2}px`,height:`${t.r*2}px`,class:"svg"},[n.createElementVNode("circle",{r:t.r-t.borderWidth,cy:t.r,cx:t.r,"stroke-width":t.borderWidth,stroke:t.background,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,bg),n.createElementVNode("circle",{class:"progress-rotate",r:t.r-t.borderWidth,cy:t.r,cx:t.r,"stroke-width":t.borderWidth,stroke:t.color,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none","stroke-dashoffset":`${t.loading?e.l-e.Loading.ratio/100*e.l:e.l-e.valueCache/100*e.l}px`,"stroke-dasharray":`${e.l}px`,style:n.normalizeStyle({transform:`rotate(${t.loading?e.Loading.rotate:-90}deg)`})},null,12,yg)],8,wg)),[[n.vShow,!t.legacy]]),n.withDirectives(n.createVNode(xs,{size:t.size,color:t.color},null,8,["size","color"]),[[n.vShow,t.legacy]])],6))}}),Ts=W(kg),lv="",av="",dv="",vg=["src"],Cg=Object.assign({name:"FvRadio",computed:{$theme(){return z(this.$props).theme.value},isActived(){return this.model==this.label},isGroup(){let t=this.$parent;for(;t;)if(t.$options.name!="FvRadioGroup")t=t.$parent;else return this.setGroup(t),!0;return!1},isDisabled(){return this.isGroup?this._group.disabled||this.disabled:this.disabled},model:{get(){return this.isGroup?this._group.value:this.modelValue},set(t){this.isGroup?this._group.$emit("update:modelValue",t):this.$emit("update:modelValue",t)}}},mounted(){},methods:{click(){this.isDisabled||(this.isGroup?(this._group.$emit("update:modelValue",this.label),this._group.change(this.label)):this.$emit("update:modelValue",this.label),this.isActived&&this.$emit("actived"),this.$emit("click"))},setGroup(t){this._group=t}}},{props:{...A,modelValue:{type:[String,Number,Boolean],default:""},label:{type:[String,Number],required:!0},color:{type:String,default:""},foreground:{type:String,default:"rgba(0, 90, 158, 0.8)"},icon:{type:String,default:null},iconBlockBorderRadius:{type:Number,default:6},iconBlockBorderWidth:{type:Number,default:2},image:{type:String,default:null},activeImage:{type:String,default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","click","actived"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Radio",[e.$theme,{"with-icon":t.icon||t.image},{actived:e.isActived},{disabled:e.isDisabled}]]),onClick:o[0]||(o[0]=(...r)=>e.click&&e.click(...r)),style:n.normalizeStyle({"border-color":e.isActived?t.foreground:"","border-radius":`${t.iconBlockBorderRadius}px`,"border-width":`${t.iconBlockBorderWidth}px`})},[n.createElementVNode("input",{type:"radio",ref:"button",class:n.normalizeClass(["fv-radio-button",[{actived:e.isActived},{disabled:e.isDisabled}]]),style:n.normalizeStyle({background:e.isActived?t.foreground:""})},null,6),n.createElementVNode("label",{class:"fv-radio-label",style:n.normalizeStyle({color:t.color})},[t.image?(n.openBlock(),n.createElementBlock("img",{key:0,src:e.isActived&&t.activeImage?t.activeImage:t.image},null,8,vg)):t.icon?(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["with-icon ms-Icon","ms-Icon--"+t.icon])},null,2)):n.createCommentVNode("",!0),n.createElementVNode("span",null,[n.renderSlot(e.$slots,"default")])],4)],6))}}),Ds=W(Cg),uv="",cv="",fv="",Vg={...A},Sg={name:"FvRadioGroup",emits:["change"],props:{...Vg,modelValue:{required:!0},disabled:{type:Boolean,default:!1},label:{type:String,default:""},inline:{type:Boolean,default:!1}},data(){return{}},computed:{$theme(){return z(this.$props).theme.value}},methods:{change(t){this.$emit("change",t)}}},$g={key:0};function Eg(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-RadioGroup",[s.$theme,{inline:e.inline}]])},[e.label?(n.openBlock(),n.createElementBlock("label",$g,n.toDisplayString(e.label),1)):n.createCommentVNode("",!0),n.renderSlot(t.$slots,"default")],2)}const Is=W(q(Sg,[["render",Eg]])),gv="",pv="",wv="",xg={class:"fv-rating-container"},Tg=["onMousemove","onTouchmove","onMouseleave","onTouchend","onClick"],Dg=Object.assign({name:"FvRatingControl",data(){return{thisValue:this.modelValue,hover:[]}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t),this.$emit("change",t)},maxRate(t){this.hover=new Array(t).fill({status:!1,ratio:100})}},mounted(){this.thisValue=this.modelValue,this.hover=new Array(this.maxRate).fill({status:!1,ratio:100})},computed:{itemShow(){return t=>this.hoverIndex<0?t-this.thisValue<0:t<=this.hoverIndex},itemRatio(){return t=>this.hoverIndex<0?t+1<=parseInt(this.thisValue)?100:(this.thisValue-parseInt(this.thisValue))*100:this.hoverIndex===t?this.hover[t].ratio:100},hoverIndex(){return this.hover.findIndex(t=>t.status)},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},$theme(){return z(this.$props).theme.value}},methods:{handlerHover(t,i){if(this.isReadOnly)return;let e=t.target.offsetWidth,{left:o}=t.target.getBoundingClientRect(),{clientX:r}=t.targetTouches?t.targetTouches[0]:t,l=(r-o)/e*100>50||!this.halfRate?100:50;this.$emit("hover",{index:i,ratio:l}),this.hover[i]={status:!0,ratio:l}},handlerLeave(t){this.isReadOnly||(this.hover[t]={status:!1,ratio:100},this.$emit("leave",t))},handlerClick(t,i){if(this.isReadOnly)return;if(!this.halfRate){if(this.isClear&&this.thisValue==i+1){this.thisValue=0,this.clearHover();return}this.thisValue=i+1;return}let e=t.target.offsetWidth,{left:o}=t.target.getBoundingClientRect(),{clientX:r}=t.targetTouches?t.targetTouches[0]:t,s=(r-o)/e*100;if(this.isClear&&this.thisValue==i+1-(s>50?0:.5)){this.thisValue=0,this.clearHover();return}this.thisValue=i+1-(s>50?0:.5)},clearHover(){for(let t=0;t<this.maxRate;t++)this.hover[t]={status:!1,ratio:100}}}},{props:{...A,modelValue:{default:0},maxRate:{default:5},halfRate:{default:!1},defaultIcon:{type:String,default:"FavoriteStar"},selectedIcon:{type:String,default:"FavoriteStarFill"},borderColor:{type:String,default:""},selectedColor:{type:String,default:""},isClear:{default:!1},readonly:{default:!1}},emits:["update:modelValue","change"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-RatingControl",[e.$theme]])},[n.createElementVNode("div",xg,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.maxRate,(r,s)=>(n.openBlock(),n.createElementBlock("div",{key:s,class:"fv-rating-unit",onMousemove:l=>e.handlerHover(l,s),onTouchmove:l=>e.handlerHover(l,s),onMouseleave:l=>e.handlerLeave(s),onTouchend:l=>e.handlerLeave(s),onClick:l=>e.handlerClick(l,s)},[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon background",[`ms-Icon--${t.defaultIcon}`]]),style:n.normalizeStyle({color:t.borderColor})},null,6),n.withDirectives(n.createElementVNode("div",{class:"fv-rating-mask",style:n.normalizeStyle({width:`${e.itemRatio(s)}%`})},[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon foreground",[`ms-Icon--${t.selectedIcon}`]]),style:n.normalizeStyle({color:t.selectedColor})},null,6)],4),[[n.vShow,e.itemShow(s)]])],40,Tg))),128))])],2))}}),Bs=W(Dg),yv="",kv="",vv="",Ig=Object.assign({name:"FvResizeWatcher",data(){return{thisTarget:null,resizeObserver:null,posObserver:null,timer:null}},watch:{target(){this.thisTarget=this.valueTrigger(this.target)},thisTarget:{handler(){this.resizeWatcherInit(),this.posWatcherInit()},immediate:!0}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.init(),this.resizeWatcherInit(),this.posWatcherInit()},methods:{init(){this.timer=setInterval(()=>{if(this.thisTarget=this.valueTrigger(this.target),this.thisTarget){const{left:t,top:i,right:e,bottom:o}=this.thisTarget.getBoundingClientRect(),r=e-t,s=o-i;let l={type:"init",target:this.thisTarget,left:t,top:i,right:e,bottom:o,width:r,height:s};this.$emit("watch",l),clearInterval(this.timer)}else this.resizeWatcherInit(),this.posWatcherInit()},100)},resizeWatcherInit(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.resizeObserver=new ResizeObserver(t=>{for(let i of t){let e=i.target;const{left:o,top:r,right:s,bottom:l}=e.getBoundingClientRect(),a=s-o,d=l-r;let h={type:"resize",target:e,entry:i,width:a,height:d,left:o,top:r,right:s,bottom:l};this.$emit("watch",h),this.$emit("watch-resize",h)}}),this.thisTarget&&this.resizeObserver.observe(this.thisTarget)},posWatcherInit(){this.posObserver&&(this.posObserver.disconnect(),this.posObserver=null),this.posObserver=new MutationObserver(t=>{for(let i of t){const{left:e,top:o,right:r,bottom:s}=i.target.getBoundingClientRect(),l=r-e,a=s-o;let d={type:"position",target:i.target,entry:i,left:e,top:o,right:r,bottom:s,width:l,height:a};this.$emit("watch",d),this.$emit("watch-pos",d)}}),this.thisTarget&&this.posObserver.observe(this.thisTarget,{attributes:!0})},valueTrigger(t){return typeof t=="function"?t():t}},beforeUnmount(){clearInterval(this.timer)}},{props:{...A,target:{default:null}},emits:["watch","watch-resize","watch-pos"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-ResizeWatcher",[e.$theme]])},null,2))}}),Ns=W(Ig),Vv="",Sv="",$v="",Bg={width:"100%",height:"100%",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Ng=["r","id","gradientTransform"],Lg=["stop-color"],Fg={key:1,offset:"1","stop-color":"rgba(255, 255, 255, 0)"},Mg=["offset","stop-color"],Pg=["r","id","gradientTransform"],Rg=["stop-color"],_g={key:1,offset:"1","stop-color":"rgba(255, 255, 255, 0)"},zg=["offset","stop-color"],Og=["r","id","gradientTransform"],Ag=n.createElementVNode("stop",{offset:"0","stop-color":"rgba(255, 255, 255, 0)"},null,-1),Wg=["stop-color"],Hg=n.createElementVNode("stop",{offset:"0.66","stop-color":"rgba(255, 255, 255, 0)"},null,-1),Gg=n.createElementVNode("stop",{offset:"1","stop-color":"rgba(255, 255, 255, 0)"},null,-1),Ug=["x","y","rx","ry"],Yg=["x","y","rx","ry"],jg=Object.assign({name:"FvRevealContainer",beforeMount(){this.revealCache=Fn()},data(){return{id:this.GuidWithoutDash(),offset:{left:0,top:0,right:0,bottom:0},disEl:{x:0,y:0},inside:!1,wave:0,clickDown:!1,revealCache:null,timer:{wave:null}}},watch:{inside(t){t||this.leaveEvent(null)}},computed:{$theme(){return z(this.$props).theme.value},borderMatrix(){const{left:t,top:i,right:e,bottom:o}=this.offset;let r=e-t,s=o-i;return`matrix(${[1,0,0,1,(this.disEl.x-r/2).toFixed(3),(this.disEl.y-s/2).toFixed(3)].join(" ")})`},computedBorderRadius(){let t=this.offset.right-this.offset.left,i=this.offset.bottom-this.offset.top,e=t>i?i:t;return e==0?this.borderRadius:this.borderRadius>e/2?e/2:this.borderRadius},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}},mounted(){this.disEl.y=window.innerHeight,this.disEl.x=window.innerWidth,this.mouseMoveInit(),this.mouseClickInit()},methods:{mouseMoveInit(){if(this.revealContainer===!1){if(this.revealCache.setRevealHandler({id:this.id,moveHandler:this.moveEvent,leaveHandler:this.leaveEvent}),window.$FvRevealContainer)return;window.$FvRevealContainer=!0,window.removeEventListener("mousemove",this.globalMoveEventListener),window.addEventListener("mousemove",this.globalMoveEventListener),window.removeEventListener("touchmove",this.globalMoveEventListener),window.addEventListener("touchmove",this.globalMoveEventListener),window.removeEventListener("mouseleave",this.globalLeaveEventListener),window.addEventListener("mouseleave",this.globalLeaveEventListener)}else{if(this.revealContainer.revealHandlerList.push({id:this.id,moveHandler:this.moveEvent,downHandler:this.downEvent,upHandler:this.upEvent,leaveHandler:this.leaveEvent}),this.revealContainer.init)return;this.revealContainer.init=!0,this.revealContainer.el().removeEventListener("mousemove",this.globalMoveEventListener),this.revealContainer.el().addEventListener("mousemove",this.globalMoveEventListener),this.revealContainer.el().removeEventListener("touchmove",this.globalMoveEventListener),this.revealContainer.el().addEventListener("touchmove",this.globalMoveEventListener),this.revealContainer.el().removeEventListener("mouseleave",this.globalLeaveEventListener),this.revealContainer.el().addEventListener("mouseleave",this.globalLeaveEventListener)}},mouseClickInit(){this.parent?(this.parent().removeEventListener("mousedown",this.downEvent),this.parent().addEventListener("mousedown",this.downEvent),this.parent().removeEventListener("touchstart",this.downEvent),this.parent().addEventListener("touchstart",this.downEvent),this.parent().removeEventListener("mouseup",this.upEvent),this.parent().addEventListener("mouseup",this.upEvent),this.parent().removeEventListener("touchend",this.leaveEvent),this.parent().addEventListener("touchend",this.leaveEvent)):(this.$el.removeEventListener("mousedown",this.downEvent),this.$el.addEventListener("mousedown",this.downEvent),this.$el.removeEventListener("touchstart",this.downEvent),this.$el.addEventListener("touchstart",this.downEvent),this.$el.removeEventListener("mouseup",this.upEvent),this.$el.addEventListener("mouseup",this.upEvent),this.$el.removeEventListener("touchend",this.leaveEvent),this.$el.addEventListener("touchend",this.leaveEvent))},globalMoveEventListener(t){if(this.revealContainer===!1)for(let i of this.revealCache.revealHandlerList)i.moveHandler&&i.moveHandler(t);else for(let i of this.revealContainer.revealHandlerList)i.moveHandler&&i.moveHandler(t)},globalLeaveEventListener(t){if(this.revealContainer===!1)for(let i of this.revealCache.revealHandlerList)i.leaveHandler&&i.leaveHandler(t);else for(let i of this.revealContainer.revealHandlerList)i.leaveHandler&&i.leaveHandler(t)},moveEvent(t){if(this.isDisabled||!this.inVisual())return;t.type.indexOf("mouse")<0&&(t=t.targetTouches[0]);const{left:i,top:e}=this.getOffset(this.$el);let o=t.pageX-i-window.scrollX,r=t.pageY-e-window.scrollY,s=this.distanceOfElement(this.$el,t.clientX,t.clientY);s.left>this.debounceDistance||s.top>this.debounceDistance||s.right>this.debounceDistance||s.bottom>this.debounceDistance||(this.disEl.x=o,this.disEl.y=r,this.inside=this.moveInsideElement(this.$el,t.clientX,t.clientY))},downEvent(t){if(this.isDisabled||!this.clickInsideElement(t))return;t.type.indexOf("mouse")<0&&(t=t.targetTouches[0]);const{left:i,top:e}=this.getOffset(this.$el);let o=t.pageX-i-window.scrollX,r=t.pageY-e-window.scrollY;this.disEl.x=o,this.disEl.y=r,this.wave=120,this.inside=!0,this.clickDown=!0,clearInterval(this.timer.wave),this.timer.wave=setInterval(()=>{try{let s=this.wave,l=s/60+1;s+=l,s>=1e3?clearInterval(this.timer.wave):this.wave=s}catch{}},50)},upEvent(t){this.wave=0,this.clickDown=!1,clearInterval(this.timer.wave)},leaveEvent(t){this.wave=0,this.disEl.x=window.innerWidth,this.disEl.y=window.innerHeight,this.inside=!1,clearInterval(this.timer.wave)},getOffset(t){const{left:i,top:e,right:o,bottom:r}=t.getBoundingClientRect();return this.offset.left=i,this.offset.top=e,this.offset.right=o,this.offset.bottom=r,{left:i,top:e,right:o,bottom:r}},moveInsideElement(t,i,e){const{left:o,top:r,right:s,bottom:l}=t.getBoundingClientRect();return i>=o&&i<=s&&e>=r&&e<=l},distanceOfElement(t,i,e){const{left:o,top:r,right:s,bottom:l}=t.getBoundingClientRect();return{left:o-i,right:i-s,top:r-e,bottom:e-l}},clickInsideElement(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}if(this.parent&&i==this.parent()){e=!0;break}i=i.parentNode}return e},inVisual(){const{left:t,top:i,right:e,bottom:o}=this.$el.getBoundingClientRect(),r=e-t,s=o-i,l=window.innerWidth,a=window.innerHeight;let d=!1,h=!1;return o>=0&&o<=a+s&&(h=!0),e>=0&&e<=l+r&&(d=!0),d&&h},GuidWithoutDash(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()},valueTrigger(t){return typeof t=="function"?t():t}},beforeUnmount(){if(this.revealContainer===!1)this.revealCache.removeRevealHandler(this.id);else{let t=this.revealContainer.revealHandlerList.findIndex(i=>i.id==this.id);t>-1&&this.revealContainer.revealHandlerList.splice(t,1)}this.parent&&this.parent()&&(this.parent().removeEventListener("mousedown",this.downEvent),this.parent().removeEventListener("touchstart",this.downEvent),this.parent().removeEventListener("mouseup",this.upEvent))}},{props:{...A,revealContainer:{default:!1},parent:{default:null},borderWidth:{default:1},borderRadius:{default:6},backgroundColor:{default:"rgba(121, 119, 117, 0.6)"},backgroundGradientList:{default:()=>[]},backgroundGradientSize:{default:120},borderColor:{default:"rgba(121, 119, 117, 0.6)"},borderGradientList:{default:()=>[]},borderGradientSize:{default:60},debounceDistance:{default:300},disabled:{default:!1}},emits:["click"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-RevealContainer",[e.$theme]]),style:n.normalizeStyle({"border-radius":`${e.computedBorderRadius}px`}),onClick:o[0]||(o[0]=r=>{r.preventDefault(),e.isDisabled||e.$emit("click",r)})},[n.withDirectives((n.openBlock(),n.createElementBlock("svg",Bg,[n.createTextVNode(" > "),n.createElementVNode("defs",null,[n.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:t.backgroundGradientSize,gradientUnits:"userSpaceOnUse",spreadMethod:"pad",id:`backgroundG_${e.id}`,gradientTransform:e.borderMatrix},[t.backgroundGradientList.length==0?(n.openBlock(),n.createElementBlock("stop",{key:0,offset:"0","stop-color":t.backgroundColor},null,8,Lg)):n.createCommentVNode("",!0),t.backgroundGradientList.length==0?(n.openBlock(),n.createElementBlock("stop",Fg)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.backgroundGradientList,(r,s)=>(n.openBlock(),n.createElementBlock("stop",{offset:1/t.backgroundGradientList.length*s,"stop-color":r,key:`bg:${s}`},null,8,Mg))),128))],8,Ng),n.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:t.borderGradientSize,gradientUnits:"userSpaceOnUse",spreadMethod:"pad",id:`borderG_${e.id}`,gradientTransform:e.borderMatrix},[t.borderGradientList.length==0?(n.openBlock(),n.createElementBlock("stop",{key:0,offset:"0","stop-color":t.borderColor},null,8,Rg)):n.createCommentVNode("",!0),t.borderGradientList.length==0?(n.openBlock(),n.createElementBlock("stop",_g)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.borderGradientList,(r,s)=>(n.openBlock(),n.createElementBlock("stop",{offset:1/t.borderGradientList.length*s,"stop-color":r,key:`border:${s}`},null,8,zg))),128))],8,Pg),n.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:e.wave,gradientUnits:"userSpaceOnUse",spreadMethod:"pad",id:`clickG_${e.id}`,gradientTransform:e.borderMatrix},[Ag,n.createElementVNode("stop",{offset:"0.33","stop-color":t.backgroundColor},null,8,Wg),Hg,Gg],8,Og)]),n.createElementVNode("rect",{x:t.borderWidth/2,y:t.borderWidth/2,rx:e.computedBorderRadius,ry:e.computedBorderRadius,style:n.normalizeStyle([{"box-sizing":"border-box"},{width:`${e.offset.right-e.offset.left-t.borderWidth}px`,height:`${e.offset.bottom-e.offset.top-t.borderWidth}px`,stroke:`url(#borderG_${e.id})`,fill:e.inside?`url(#backgroundG_${e.id})`:"transparent","stroke-width":t.borderWidth}])},null,12,Ug),n.withDirectives(n.createElementVNode("rect",{x:t.borderWidth/2,y:t.borderWidth/2,rx:e.computedBorderRadius,ry:e.computedBorderRadius,style:n.normalizeStyle([{stroke:"transparent","box-sizing":"border-box"},{width:`${e.offset.right-e.offset.left-t.borderWidth}px`,height:`${e.offset.bottom-e.offset.top-t.borderWidth}px`,fill:e.inside?`url(#clickG_${e.id})`:"transparent","stroke-width":t.borderWidth}])},null,12,Yg),[[n.vShow,e.clickDown]])],512)),[[n.vShow,e.offset.right-e.offset.left>0]])],6))}}),Ls=W(jg),xv="",Tv="",Dv="",Xg={class:"right-menu-list"},qg=n.createElementVNode("span",null,[n.createElementVNode("p",null,"Selected")],-1),Kg=Object.assign({name:"FvRightMenu",data(){return{thisValue:this.modelValue,posX:0,posY:0,rightMenuHeight:0}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.globalAppendInit(),this.rightMenuClearInit(),this.resizeInit()},methods:{globalAppendInit(){this.$nextTick(()=>{const t=document.querySelector("body");t.append?t.append(this.$el):t.appendChild(this.$el)})},rightMenuClearInit(){window.addEventListener("click",t=>{let i=t.target;i&&i!==this.$el&&(this.thisValue=!1)})},resizeInit(){new ResizeObserver(()=>{this.$el&&this.$el.clientHeight>0&&(this.rightMenuHeight=this.$el.clientHeight,this.$emit("update-height",this.rightMenuHeight))}).observe(this.$el)},rightClick(t,i){t.preventDefault(),this.thisValue=!0;let e=i.getBoundingClientRect(),o={};o.x=t.x,o.y=t.y,o.x<e.left&&(o.x=e.left),o.x+this.rightMenuWidth>e.right&&(o.x=e.right-this.rightMenuWidth),o.y<e.top&&(o.y=e.top),o.y+this.rightMenuHeight>e.bottom&&(o.y=e.bottom-this.rightMenuHeight),this.posX=o.x,this.posY=o.y}}},{props:{...A,modelValue:{default:!1},rightMenuWidth:{default:200},background:{default:""},fullExpandAnimation:{default:!1}},emits:["update:modelValue","update-height"],setup(t,{expose:i,emit:e}){const{proxy:o}=n.getCurrentInstance();return i({rightClick:(...r)=>o.rightClick(...r)}),(r,s)=>(n.openBlock(),n.createBlock(n.Transition,{name:t.fullExpandAnimation?"fv-rightMenu-full-zoom-in-top":"fv-rightMenu-zoom-in-top"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["fv-RightMenu",[r.$theme]]),style:n.normalizeStyle({left:r.posX+"px",top:r.posY+"px",width:t.rightMenuWidth+"px",background:t.background})},[n.createElementVNode("div",Xg,[n.renderSlot(r.$slots,"default",{},()=>[qg])])],6),[[n.vShow,r.thisValue]])]),_:3},8,["name"]))}}),Fs=W(Kg),Bv="",Nv="",Lv="",Jg={key:0},Qg=n.createElementVNode("p",null,"Scroll Story",-1),Zg=Object.assign({name:"FvScrollStory",data(){return{show:!1,bounding:1/0,event:()=>{this.refreshBounding()},timer:{}}},watch:{show(t){this.$emit("show-changed",t)}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.timerInit()},methods:{timerInit(){clearInterval(this.timer),this.timer=setInterval(()=>{this.refreshBounding()},30)},refreshBounding(){this.bounding=this.$el.getBoundingClientRect(),this.bounding.top<window.innerHeight&&(this.show=!0),this.bounding.top>window.innerHeight&&this.infinite&&(this.show=!1),this.bounding.bottom<100&&this.overCollapse&&(this.show=!1)}},beforeUnmount(){clearInterval(this.timer)}},{props:{...A,name:{default:""},overCollapse:{default:!1},infinite:{default:!1},trueRender:{default:!1}},emits:["show-changed"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-ScrollStory",[e.$theme]])},[n.createVNode(n.Transition,{name:t.name},{default:n.withCtx(()=>[!t.trueRender||e.show?n.withDirectives((n.openBlock(),n.createElementBlock("div",Jg,[n.renderSlot(e.$slots,"default",{},()=>[Qg])],512)),[[n.vShow,e.show]]):n.createCommentVNode("",!0)]),_:3},8,["name"])],2))}}),Ms=W(Zg),Mv="",Pv="",Rv="",ep={class:"search-box-placeholder"},tp={class:"search-box-container"},ip=["type","placeholder","readonly","disabled","maxlength"],np={class:"search-result-container",ref:"filterResult"},op=Object.assign({name:"FvSearchBox",data(){return{thisValue:this.modelValue,isFocus:!1,filterOptions:this.options,show:{searchResult:!1},timer:{debounce:null}}},watch:{modelValue(t){this.thisValue=t},thisValue(t){clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{this.$emit("debounce-input",this.thisValue)},this.debounceDelay),this.$emit("update:modelValue",t),this.refreshFilter()},isFocus(t){t&&this.focusShow&&(this.show.searchResult=!0)}},computed:{thisBorderColor(){return this.isUnderline?this.isFocus?{borderBottomColor:this.focusBorderColor}:{borderBottomColor:this.borderColor}:this.isFocus?{borderColor:this.focusBorderColor}:{borderColor:this.borderColor}},isUnderline(){return this.underline.toString()=="true"||this.underline=="underline"||this.underline===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},borderLightColor(){return this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return z(this.$props).theme.value}},mounted(){this.lazyLoadInit(),this.outSideClickInit()},methods:{lazyLoadInit(){this.$SUtility.ScrollToLoadInit(this.$refs.filterResult,()=>{this.$emit("lazyload",this.filterOptions)})},outSideClickInit(){window.addEventListener("click",this.outSideClickEvent)},outSideClickEvent(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}i=i.parentNode}e||(this.show.searchResult=!1)},refreshFilter(){let t=[];if(this.customFilter!==!1)t=this.customFilter(this.options);else for(let i of this.options)i.name.toString().toLowerCase().indexOf(this.thisValue.toLowerCase())>-1&&t.push(i);this.filterOptions=t},chooseResult(t){this.thisValue=t.item.name,this.$emit("choose-result",t.item),this.show.searchResult=!1},onBackspace(){if(this.thisValue===""&&this.resultPlaceholder.length>0){let t=this.resultPlaceholder;t.splice(t.length-1,1),this.$emit("update:resultPlaceholder",t)}},clearValue(){this.thisValue="",this.$emit("update:resultPlaceholder",[]),this.$emit("clear-click")}},mounted(){this.lazyLoadInit(),this.outSideClickInit()},methods:{lazyLoadInit(){this.$SUtility.ScrollToLoadInit(this.$refs.filterResult,()=>{this.$emit("lazyload",this.filterOptions)})},outSideClickInit(){window.addEventListener("click",t=>{let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}i=i.parentNode}e||(this.show.searchResult=!1)})},refreshFilter(){let t=[];if(this.customFilter!==!1)t=this.customFilter(this.options);else for(let i of this.options)i.name.toString().toLowerCase().indexOf(this.thisValue.toLowerCase())>-1&&t.push(i);this.filterOptions=t},chooseResult(t){this.thisValue=t.item.name,this.$emit("choose-result",t.item),this.show.searchResult=!1},onBackspace(){if(this.thisValue===""&&this.resultPlaceholder.length>0){let t=this.resultPlaceholder;t.splice(t.length-1,1),this.$emit("update:resultPlaceholder",t)}},clearValue(){this.thisValue="",this.$emit("update:resultPlaceholder",[]),this.$emit("clear-click")}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent)}},{props:{...A,modelValue:{default:""},options:{default:()=>[]},placeholder:{default:""},type:{default:"text"},readonly:{default:!1},maxlength:{default:""},customFilter:{default:!1},resultPlaceholder:{default:!1},focusShow:{default:!1},leftIcon:{default:""},icon:{default:""},underline:{default:!1},background:{default:""},borderWidth:{default:1},borderColor:{default:""},focusBorderColor:{default:""},foreground:{default:""},fontSize:{default:13.3},fontWeight:{default:"normal"},textAlign:{default:"left"},borderRadius:{default:3},isBoxShadow:{default:!1},revealBorder:{default:!1},status:{default:""},debounceDelay:{default:300},disabled:{default:!1}},emits:["update:modelValue","debounce-input","choose-result","lazyload","clear-click","left-icon-click","icon-click","keydown","keyup","change","paste"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-reveal-container"),s=n.resolveComponent("fv-list-view");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-SearchBox",[e.$theme,t.status,e.isFocus?"focus":"",e.isDisabled?"disabled":"",e.isUnderline?"underline":"",{shadow:t.isBoxShadow}]]),style:n.normalizeStyle([{background:t.background,borderRadius:`${t.borderRadius}px`}]),onKeydown:o[11]||(o[11]=l=>e.show.searchResult=!0),onKeyup:o[12]||(o[12]=n.withKeys((...l)=>e.onBackspace&&e.onBackspace(...l),["delete"])),onClick:o[13]||(o[13]=l=>e.isFocus=!0)},[n.createVNode(r,{parent:()=>e.$el,class:"fv-search-box-reveal-container",backgroundColor:e.backgroundLightColor,borderColor:e.borderLightColor,backgroundGradientSize:120,borderGradientSize:60,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:e.isDisabled||!t.revealBorder},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),n.createElementVNode("div",{class:"search-box-wrapper-container",style:n.normalizeStyle([e.thisBorderColor,{background:t.background,borderRadius:`${t.borderRadius}px`,borderWidth:`${t.borderWidth}px`}])},[n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${t.leftIcon}`]]),onClick:o[0]||(o[0]=l=>e.$emit("left-icon-click",l))},null,2),[[n.vShow,t.leftIcon!=""]]),n.createVNode(n.Transition,{name:"move-left-to-right"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",ep,[n.renderSlot(e.$slots,"resultPlaceholder",{resultPlaceholder:t.resultPlaceholder})],512),[[n.vShow,t.resultPlaceholder.length>0]])]),_:3}),n.createElementVNode("div",tp,[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":o[1]||(o[1]=l=>e.thisValue=l),type:t.type,placeholder:t.placeholder,class:"input",readonly:e.isReadOnly,disabled:e.isDisabled,maxlength:t.maxlength,ref:"input",style:n.normalizeStyle({"font-size":`${t.fontSize}px`,"font-weight":t.fontWeight,color:t.foreground,"text-align":t.textAlign}),onKeydown:o[2]||(o[2]=l=>e.$emit("keydown",l)),onKeyup:o[3]||(o[3]=l=>e.$emit("keyup",l)),onChange:o[4]||(o[4]=l=>e.$emit("change",l)),onPaste:o[5]||(o[5]=l=>e.$emit("paste",l)),onFocus:o[6]||(o[6]=l=>e.isFocus=!0),onBlur:o[7]||(o[7]=l=>e.isFocus=!1)},null,44,ip),[[n.vModelDynamic,e.thisValue]])]),n.withDirectives(n.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel icon-block",onClick:o[8]||(o[8]=(...l)=>e.clearValue&&e.clearValue(...l))},null,512),[[n.vShow,e.thisValue.length>0||t.resultPlaceholder.length>0]]),n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${t.icon}`]]),onClick:o[9]||(o[9]=l=>e.$emit("icon-click",l))},null,2),[[n.vShow,t.icon!=""]])],4),n.createVNode(n.Transition,{name:"zoom-in-top"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",np,[n.renderSlot(e.$slots,"searchResult",{data:e.filterOptions,chooseResult:e.chooseResult},()=>[n.createVNode(s,{modelValue:e.filterOptions,"onUpdate:modelValue":o[10]||(o[10]=l=>e.filterOptions=l),theme:e.theme,style:{width:"100%",height:"auto"},onChooseItem:e.chooseResult},null,8,["modelValue","theme","onChooseItem"])])],512),[[n.vShow,e.show.searchResult]])]),_:3})],38)}}}),Ps=W(op),zv="",Ov="",Av="",rp=n.createElementVNode("div",{class:"sample",style:{"background-image":"inherit"}},null,-1),sp=Object.assign({name:"FvShimmer",data(){return{gradientSize:80,x:0,y:0,timer:{}}},computed:{$theme(){return z(this.$props).theme.value},backgroundLightColor(){return this.$theme=="light"?"rgba(121, 119, 117, 0.1)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.1)":"rgba(121, 119, 117, 0.1)"}},mounted(){this.moveInit(),this.timer=setInterval(()=>{this.childrenInit()},30)},methods:{moveInit(){this.gradientSize=this.$el.clientWidth/1.6,this.x=-this.gradientSize,this.y=this.$el.clientHeight/2,Z.to(this.$data,{x:this.$el.clientWidth+this.gradientSize+100,duration:2,delay:0,repeat:-1,ease:"power3.in"})},childrenInit(){try{this.$refs.shimmer.querySelectorAll("*").forEach(i=>{i.getAttribute("style").indexOf("background-image")<0&&i.setAttribute("style",`${i.getAttribute("style")} background-image: inherit;`)})}catch{}}},beforeUnmount(){clearInterval(this.timer)}},{props:{...A},setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Shimmer",[e.$theme]])},[n.createElementVNode("div",{class:"shimmer-container",ref:"shimmer",style:n.normalizeStyle({"background-image":`radial-gradient(circle ${e.gradientSize}px at ${e.x}px ${e.y}px, ${e.backgroundLightColor}, rgba(255,255,255,0))`})},[n.renderSlot(e.$slots,"default",{},()=>[rp])],4)],2))}}),Rs=W(sp),Hv="",Gv="",Uv="",lp=["title"],ap={class:"fv-slider-unit-container"},dp=Object.assign({name:"FvSlider",data(){return{progress:this.getValue(this.modelValue),moveable:!1,mouseDownPos:{disX:0,disY:0},currentLeft:0,currentTop:0,freezeTransition:!1,btnEl:{width:0,height:0},barEl:{width:0,height:0}}},computed:{$theme(){return z(this.$props).theme.value},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},isShowLabel(){return this.showLabel.toString()=="true"||this.showLabel===""},finalLeft(){return this.vertical?-7.5:this.currentLeft<0?0:this.currentLeft>this.barEl.width-this.btnEl.width?this.barEl.width-this.btnEl.width:this.currentLeft},finalTop(){return this.vertical?this.currentTop<0?0:this.currentTop>this.barEl.height-this.btnEl.height?this.barEl.height-this.btnEl.height:this.currentTop:-7.5},scaleList(){if(!this.scale)return[];let t=[],i=0,e=this.maxinum-this.mininum;for(;i<=e;)t.push({ratio:i/e}),i+=this.scale;return t},unitList(){let t=[],i=0,e=this.maxinum-this.mininum;for(;i<=e;)t.push({ratio:i/e,value:this.mininum+i}),i+=this.unit;return t}},watch:{modelValue(t){this.progress=this.getValue(t),this.moveable||this.setPos()},progress(t){this.$emit("update:modelValue",t),this.$emit("change",t)},finalLeft(){this.moveable&&(this.progress=this.setProgress())},finalTop(){this.moveable&&(this.progress=this.setProgress(!0))}},mounted(){this.Init(),this.resizeInit()},methods:{Init(){window.addEventListener("mousemove",t=>{this.moveable&&(this.currentLeft=t.clientX-this.mouseDownPos.disX,this.currentTop=t.clientY-this.mouseDownPos.disY)}),window.addEventListener("touchmove",t=>{t=t.targetTouches[0],this.moveable&&(this.currentLeft=t.clientX-this.mouseDownPos.disX,this.currentTop=t.clientY-this.mouseDownPos.disY)}),window.addEventListener("mouseup",t=>{this.moveable&&this.stop()}),window.addEventListener("touchup",t=>{this.moveable&&this.stop()})},resizeInit(){new ResizeObserver(()=>{this.$refs.btn&&(this.btnEl.width=this.$refs.btn.clientWidth,this.btnEl.height=this.$refs.btn.clientHeight,this.setPos())}).observe(this.$refs.btn),new ResizeObserver(()=>{this.$refs.bar&&(this.barEl.width=this.$refs.bar.clientWidth,this.barEl.height=this.$refs.bar.clientHeight,this.setPos())}).observe(this.$refs.bar)},forward(t){if(this.isDisabled)return;this.moveable=!0,this.freezeTransition=!0,t.preventDefault();let{clientX:i,clientY:e}=t.targetTouches?t.targetTouches[0]:t;this.mouseDownPos.disX=i-this.$refs.btn.offsetLeft,this.mouseDownPos.disY=e-this.$refs.btn.offsetTop},correctPos(){this.$refs.btn.offsetLeft<-this.$refs.btn.clientWidth/2&&(this.currentLeft=0),this.$refs.btn.offsetTop<-this.$refs.btn.clientHeight/2&&(this.currentTop=0),this.$refs.btn.offsetLeft+this.$refs.btn.clientWidth>this.$refs.bar.clientWidth&&(this.currentLeft=this.$refs.bar.clientWidth-this.$refs.btn.clientWidth),this.$refs.btn.offsetTop+this.$refs.btn.clientHeight>this.$refs.bar.clientHeight&&(this.currentTop=this.$refs.bar.clientHeight-this.$refs.btn.clientHeight);for(let t=0;t<this.unitList.length;t++){let i=this.currentLeft/(this.barEl.width-this.btnEl.width),e=this.unitList[t].ratio,o=this.unitList[t+1]?this.unitList[t+1].ratio:1;if(i>=e&&i<=o){i-e<o-i?this.currentLeft=e*(this.barEl.width-this.btnEl.width):this.currentLeft=o*(this.barEl.width-this.btnEl.width),this.vertical||(this.progress=this.setProgress());break}}for(let t=0;t<this.unitList.length;t++){let i=this.currentTop/(this.barEl.height-this.btnEl.height),e=this.unitList[t].ratio,o=this.unitList[t+1]?this.unitList[t+1].ratio:1;if(i>=e&&i<=o){i-e<o-i?this.currentTop=e*(this.barEl.height-this.btnEl.height):this.currentTop=o*(this.barEl.height-this.btnEl.height),this.vertical&&(this.progress=this.setProgress(!0));break}}},stop(){this.isDisabled||(this.moveable=!1,this.freezeTransition=!1,this.correctPos(),this.$emit("click",this.progress),setTimeout(()=>{this.freezeTransition=!0},300))},getValue(t){return t<this.mininum?t=this.mininum:t>this.maxinum&&(t=this.maxinum),t=parseFloat(t).toFixed(0),t},setPos(){!this.btnEl.width||!this.barEl.width||(this.vertical?this.currentTop=this.progress/(this.maxinum-this.mininum)*(this.barEl.height-this.btnEl.height):this.currentLeft=this.progress/(this.maxinum-this.mininum)*(this.barEl.width-this.btnEl.width))},setProgress(t=!1){if(!t){let e=this.finalLeft/(this.barEl.width-this.btnEl.width);return e=e*(this.maxinum-this.mininum)+this.mininum,e.toFixed(0)}let i=this.finalTop/(this.barEl.height-this.btnEl.height);return i=i*(this.maxinum-this.mininum)+this.mininum,i.toFixed(0)}}},{props:{...A,disabled:{type:Boolean,default:!1},modelValue:{type:[String,Number],default:0},unit:{type:Number,default:1},maxinum:{type:Number,default:100},mininum:{type:Number,default:0},icon:{type:String,default:"CircleFill"},vertical:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!1},scale:{type:[Boolean,Number],default:!1},color:{default:""},background:{default:""},iconWrapperBackground:{default:""}},setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Slider",[e.$theme,{vertical:t.vertical}]]),ref:"slider"},[n.createElementVNode("div",{class:"fv-slider-main",ref:"bar",style:n.normalizeStyle({background:e.progress>=100?t.color:t.background?t.background:""})},[n.createElementVNode("div",{ref:"btn",class:"fv-slider-ring-container",style:n.normalizeStyle({left:e.finalLeft+"px",top:e.finalTop+"px",background:t.iconWrapperBackground}),onMousedown:o[0]||(o[0]=(...r)=>e.forward&&e.forward(...r)),onMouseup:o[1]||(o[1]=(...r)=>e.stop&&e.stop(...r)),onTouchstart:o[2]||(o[2]=(...r)=>e.forward&&e.forward(...r)),onTouchend:o[3]||(o[3]=(...r)=>e.stop&&e.stop(...r))},[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon fv-slider-ring-icon",[`ms-Icon--${t.icon}`]]),style:n.normalizeStyle({color:t.color})},null,6)],36),n.createElementVNode("div",{class:"fv-slider-loaded",style:n.normalizeStyle({width:t.vertical?"":e.finalLeft+e.btnEl.width/2+"px",height:t.vertical?e.finalTop+e.btnEl.height/2+"px":"",background:t.color})},null,4),n.withDirectives(n.createElementVNode("div",{class:"fv-slider-label",title:e.progress,style:n.normalizeStyle({left:t.vertical?"":e.finalLeft-20+e.btnEl.width/2+"px",top:t.vertical?e.finalTop-14+e.btnEl.height/2+"px":""})},[n.renderSlot(e.$slots,"default",{modelValue:e.progress},()=>[n.createElementVNode("p",null,n.toDisplayString(e.progress),1)])],12,lp),[[n.vShow,e.isShowLabel&&e.moveable]]),n.createElementVNode("div",ap,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.scaleList,(r,s)=>(n.openBlock(),n.createElementBlock("i",{key:`top: ${s}`,class:"fv-slider-unit-item first",style:n.normalizeStyle({left:t.vertical?"":`calc(${r.ratio*(e.barEl.width-e.btnEl.width)+e.btnEl.width/2}px)`,top:t.vertical?`calc(${r.ratio*(e.barEl.height-e.btnEl.height)+e.btnEl.height/2}px)`:""})},null,4))),128)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.scaleList,(r,s)=>(n.openBlock(),n.createElementBlock("i",{key:`bottom: ${s}`,class:"fv-slider-unit-item second",style:n.normalizeStyle({left:t.vertical?"":`calc(${r.ratio*(e.barEl.width-e.btnEl.width)+e.btnEl.width/2}px)`,top:t.vertical?`calc(${r.ratio*(e.barEl.height-e.btnEl.height)+e.btnEl.height/2}px)`:""})},null,4))),128))])],4)],2))}}),_s=W(dp),jv="",Xv="",qv="",hp={class:"fv-swiper-container swiper-container",ref:"container"},up={class:"swiper-wrapper",ref:"wrapper"},cp={class:"fv-SwipeControl-left swiper-slide"},fp=["onClick"],mp={class:"fv-SwipeControl-right swiper-slide"},gp=["onClick"],pp=Object.assign({name:"FvSwipeControl",data(){return{status:"normal",triggerType:"auto",swiper:null,swiperProgress:0,slidesProgress:[],thisLeftOptions:this.leftOptions,thisOptions:this.options}},watch:{value(){this.triggerType="auto",this.swiper.slideTo(1,300,!1),this.status="normal"},status(t){this.$emit("status-change",t)},isDisabled(t){t?this.swiper.disabled():this.swiper.enable()}},computed:{computedProgress(){return t=>this.slidesProgress[t]},computedWidth(){return t=>this.swiper?this.swiper.width*t:0},opWidth(){let t=this.computedWidth(.3);return t<this.minOpWidth?t=this.minOpWidth:t>this.maxOpWidth&&(t=this.maxOpWidth),t},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return z(this.$props).theme.value}},mounted(){this.init(),this.isDisabled?this.swiper.disable():this.swiper.enable()},methods:{init(){this.swiper=new oe(this.$refs.container,{initialSlide:1,slidesPerView:1,longSwipesRatio:2,shortSwipes:!1,watchSlidesProgress:!0,on:{touchStart:t=>{this.triggerType="manual"},touchMove:(t,i)=>{this.refreshProgress(t)},touchEnd:(t,i)=>{this.refreshProgress(t)},transitionStart:t=>{if(this.triggerType==="auto")return;let i=this.slidesProgress[1];this.status!="normal"&&i>=-.5&&i<.5?(this.status="normal",this.swiper.slideTo(1,300,!1)):i<-.1&&i>=-.5?this.disabledLeft?(this.status="normal",this.swiper.slideTo(1,300,!1)):(this.swiper.setTransition(300),this.swiper.setTranslate(-this.computedWidth(.7)),this.status="left"):i<-.5?this.disabledLeftFull?this.swiper.slideTo(1,300,!1):(this.swiper.slidePrev(),this.status="leftFull"):i>.1&&i<=.5?this.disabledRight?(this.status="normal",this.swiper.slideTo(1,300,!1)):(this.swiper.setTransition(300),this.swiper.setTranslate(-this.computedWidth(1.3)),this.status="right"):i>.5&&(this.disabledRightFull?this.swiper.slideTo(1,300,!1):(this.swiper.slideNext(),this.status="rightFull"))},transitionEnd:(t,i)=>{this.triggerType="auto",this.refreshProgress(t),this.status=="rightFull"?this.callFunc(this.thisOptions[this.thisOptions.length-1]):this.status=="leftFull"&&this.callFunc(this.thisLeftOptions[this.thisLeftOptions.length-1])}}})},refreshProgress(t){this.swiperProgress=t.progress;let i=[];for(let e=0;e<t.slides.length;e++)i.push(t.slides[e].progress);this.slidesProgress=i},callFunc(t){this.valueTrigger(t.disabled)||t.func&&t.func(this.value)},valueTrigger(t){return typeof t=="function"?t():t}}},{props:{...A,value:{default:()=>({})},minOpWidth:{default:60},maxOpWidth:{default:300},leftOptions:{default:()=>[]},options:{default:()=>[{icon:"Delete",func:()=>{},type:"delete"}]},itemPadding:{default:"0 10px"},disabledLeft:{default:!0},disabledRight:{default:!1},disabledLeftFull:{default:!0},disabledRightFull:{default:!1},disabled:{default:!1}},emits:["status-change"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-SwipeControl",[e.$theme]])},[n.createElementVNode("div",hp,[n.createElementVNode("div",up,[n.createElementVNode("div",cp,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.leftOptions,(r,s)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-SwipeControl-btn",[e.valueTrigger(r.type)]]),key:s,style:n.normalizeStyle({width:s===t.leftOptions.length-1?"":`${e.opWidth/t.leftOptions.length}px`}),onClick:l=>e.callFunc(r)},[n.createElementVNode("div",{class:"fv-SwipeControl-btn-content-block",style:n.normalizeStyle({width:`${e.opWidth/t.leftOptions.length}px`})},[n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon",[`ms-Icon--${e.valueTrigger(r.icon)}`]])},null,2),[[n.vShow,e.valueTrigger(r.icon)]]),n.withDirectives(n.createElementVNode("p",{style:{"margin-left":"5px"}},n.toDisplayString(e.valueTrigger(r.text)),513),[[n.vShow,e.valueTrigger(r.text)]])],4)],14,fp))),128))]),n.createElementVNode("div",{class:"fv-SwipeControl-main swiper-slide",style:n.normalizeStyle({padding:t.itemPadding})},[n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode(" Swipe Control ")])],4),n.createElementVNode("div",mp,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.thisOptions,(r,s)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-SwipeControl-btn",[e.valueTrigger(r.type)]]),key:s,style:n.normalizeStyle({width:s===e.thisOptions.length-1?"":`${e.opWidth/e.thisOptions.length}px`}),onClick:l=>e.callFunc(r)},[n.createElementVNode("div",{class:"fv-SwipeControl-btn-content-block",style:n.normalizeStyle({width:`${e.opWidth/e.thisOptions.length}px`})},[n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon",[`ms-Icon--${e.valueTrigger(r.icon)}`]])},null,2),[[n.vShow,e.valueTrigger(r.icon)]]),n.withDirectives(n.createElementVNode("p",{style:{"margin-left":"5px"}},n.toDisplayString(e.valueTrigger(r.text)),513),[[n.vShow,e.valueTrigger(r.text)]])],4)],14,gp))),128))])],512)],512)],2))}}),zs=W(pp),Jv="",Qv="",Zv="",wp={props:{modelValue:{type:Object,default:()=>({})},row:{type:Object,default:()=>({})},row_index:{type:Number,default:0},i18n:{type:Function,default:t=>t},selectPos:{type:Object,default:()=>({})},foreground:{default:""},extensions:{default:()=>[]},dragItem:{default:null},theme:{type:String,default:"system"}},data(){return{dragDown:!1,dropMode:!1}},watch:{row(){this.formatRow()}},computed:{fixedLeftWidth(){let t=[],i=0;return this.modelValue.heads.forEach(e=>{t.push(i),e.fixed&&!e.fixedSide&&(i+=e.width)}),t},fixedRightWidth(){let t=[],i=0;return this.modelValue.heads.forEach(e=>{t.push(i),e.fixed&&e.fixedSide&&(i+=e.width)}),t},choosenBackground(){try{let t=kt(this.foreground);return t=t.alpha(.2),t.cssa()}catch{return""}},computedRowStyles(){return this.row.choosen?{background:this.choosenBackground}:{}},computedCellComponent(){return t=>{let i=this.extensions.find(e=>e.type===t);return i?i.cellComponent:null}}},mounted(){this.formatRow()},methods:{formatRow(){let t={choosen:!1};for(let i in t)this.row[i]||(this.row[i]=t[i]);return t},handleRowDrag(t,i){t.stopPropagation(),this.$emit("update-drag-item",i)},handleDragEnd(){this.dragDown=!1},rightClick(t){let i=!this.row.choosen;this.row.choosen=!0,this.$emit("rightclick",{event:t,row:this.row,row_index:this.row_index,clearChoosenAll:i})},dragOver(t){if(t.preventDefault(),t.stopPropagation(),this.dragItem===this.row)return;const{clientY:i}=t,{top:e,height:o}=this.$el.getBoundingClientRect();i-e<o/2?this.dropMode=!0:this.dropMode=!1},dragLeave(t){t.preventDefault(),t.stopPropagation(),this.dropMode=!1},dropItem(t){t.preventDefault(),t.stopPropagation(),this.dropMode&&this.dragItem&&this.$emit("drop-item",{drop:this.modelValue,drag:this.dragItem}),this.dropMode=!1}}},bp=["draggable"],yp={class:"fv-tableview-quick-tool"};function kp(t,i,e,o,r,s){const l=n.resolveComponent("fv-check-box");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-tableview-data-row",[{choosen:e.row.choosen}]]),draggable:r.dragDown,onDragover:i[6]||(i[6]=(...a)=>s.dragOver&&s.dragOver(...a)),onDragleave:i[7]||(i[7]=(...a)=>s.dragLeave&&s.dragLeave(...a)),onDrop:i[8]||(i[8]=(...a)=>s.dropItem&&s.dropItem(...a)),onDragstart:i[9]||(i[9]=a=>s.handleRowDrag(a,e.row)),onDragend:i[10]||(i[10]=(...a)=>s.handleDragEnd&&s.handleDragEnd(...a)),onContextmenu:i[11]||(i[11]=a=>s.rightClick(a))},[n.createElementVNode("div",yp,[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Add fv-tableview-icon-block fade",onClick:i[0]||(i[0]=a=>t.$emit("add-row"))}),n.createElementVNode("i",{class:"ms-Icon ms-Icon--GripperDotsVertical fv-tableview-icon-block fade",onClick:i[1]||(i[1]=a=>s.rightClick(a)),onMousedown:i[2]||(i[2]=a=>r.dragDown=!0)},null,32)]),n.createElementVNode("p",{class:n.normalizeClass(["onDrop",[{show:r.dropMode}]]),style:n.normalizeStyle({background:r.dropMode?e.foreground:""})},null,6),n.createElementVNode("div",{class:"fv-tableview-cell-item check-box",style:n.normalizeStyle([s.computedRowStyles])},[n.createVNode(l,{modelValue:e.row.choosen,"onUpdate:modelValue":i[3]||(i[3]=a=>e.row.choosen=a),background:e.foreground,theme:e.theme},null,8,["modelValue","background","theme"])],4),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.modelValue.heads,(a,d)=>n.withDirectives((n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.computedCellComponent(a.type)),{modelValue:e.row,head:a,key:d,i18n:e.i18n,selectPos:e.selectPos,foreground:e.foreground,row_index:e.row_index,col_index:d,fixedLeftWidth:s.fixedLeftWidth[d],fixedRightWidth:s.fixedRightWidth[d],theme:e.theme,style:n.normalizeStyle([s.computedRowStyles]),onDropItem:i[4]||(i[4]=h=>t.$emit("drop-item",h)),onSetSelect:i[5]||(i[5]=h=>t.$emit("set-select",h))},null,40,["modelValue","head","i18n","selectPos","foreground","row_index","col_index","fixedLeftWidth","fixedRightWidth","theme","style"])),[[n.vShow,a.visible]])),128)),n.createElementVNode("div",{class:"fv-tableview-cell-item op-tools",style:n.normalizeStyle([s.computedRowStyles])},null,4)],42,bp)}const Os=q(wp,[["render",kp]]),vp={props:{extensions:{default:()=>[]},i18n:{type:Function,default:t=>t},foreground:{default:"rgba(0, 90, 158, 1)"},theme:{default:"light"}},data(){return{filterValue:""}},computed:{computedIcon(){return t=>{let i=this.extensions.find(e=>e.type===t.type);return i?i.icon:"Cancel"}},isShow(){return t=>this.filterValue?t.name.toLowerCase().includes(this.filterValue.toLowerCase()):!0}},methods:{}},Cp={class:"fv-tableview-addmenu"},Vp=["onClick"],Sp={class:"addmenu-left-block"},$p=n.createElementVNode("div",{class:"addmenu-right-block"},[n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"})],-1);function Ep(t,i,e,o,r,s){const l=n.resolveComponent("fv-text-box");return n.openBlock(),n.createElementBlock("div",Cp,[n.createElementVNode("div",{class:"addmenu-title-block",onClick:i[0]||(i[0]=a=>a.stopPropagation())},n.toDisplayString(e.i18n("New Property")),1),n.createElementVNode("div",{style:{position:"relative",padding:"0px 10px"},onClick:i[2]||(i[2]=a=>a.stopPropagation())},[n.createVNode(l,{modelValue:r.filterValue,"onUpdate:modelValue":i[1]||(i[1]=a=>r.filterValue=a),placeholder:e.i18n("Search Property"),theme:e.theme,underline:"",icon:"Filter",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":e.foreground,"border-width":2,"is-box-shadow":!0,style:{width:"100%",height:"35px","margin-bottom":"5px"}},null,8,["modelValue","placeholder","theme","background","focus-border-color"])]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.extensions,(a,d)=>n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:d,ref_for:!0,ref:`item-${d}`,onClick:h=>t.$emit("add-column",a)},[n.createElementVNode("div",Sp,[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon",[`ms-Icon--${s.computedIcon(a)}`]]),style:{"margin-left":"5px"}},null,2),n.createElementVNode("p",null,n.toDisplayString(a.name),1)]),$p],8,Vp)),[[n.vShow,s.isShow(a)]])),128))])}const As=q(vp,[["render",Ep]]),xp={props:{modelValue:{type:Object,default:()=>({})},heads:{type:Array,default:()=>[]},extensions:{default:()=>[]},i18n:{type:Function,default:t=>t},foreground:{default:"rgba(0, 90, 158, 1)"},theme:{default:"light"}},data(){return{dropHead:null,dragDown:!1,dragItem:null}},computed:{computedProperty(){return t=>this.extensions.find(e=>e.type===t.type)},computedIcon(){return t=>{let i=this.extensions.find(e=>e.type===t.type);return i?i.icon:"Cancel"}},dropBackground(){try{let t=kt(this.foreground);return t=t.alpha(.2),t.cssa()}catch{return""}}},methods:{handleRowDrag(t,i){t.stopPropagation(),this.dragItem=i},handleDragEnd(){this.dragDown=!1},dragOver(t,i){t.preventDefault(),t.stopPropagation();let e=this.heads[i],o=this.$refs[`item-${i}`][0];if(this.dragItem===e)return;const{clientY:r}=t,{top:s,height:l}=o.getBoundingClientRect();r-s<l/2?this.dropHead=e:this.dropHead=null},dragLeave(t){t.preventDefault(),t.stopPropagation(),this.dropHead=null},dropItem(t,i){t.preventDefault(),t.stopPropagation(),this.sortHeads(i,this.dragItem),this.dropHead=null},sortHeads(t,i){let e=this.heads.findIndex(s=>s===i),o=this.heads[e];this.heads.splice(e,1);let r=this.heads.findIndex(s=>s===t);this.heads.splice(r,0,o)},switchVisible(t){let i=!t.visible;t.visible=i}}},Tp={class:"fv-tableview-addmenu"},Dp={class:"addmenu-title-block"},Ip=["draggable","onDragover","onDrop","onDragstart"],Bp={class:"addmenu-left-block"},Np={class:"addmenu-right-block"},Lp=["onClick"],Fp=n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"},null,-1),Mp=n.createElementVNode("hr",null,null,-1),Pp=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Add"},null,-1);function Rp(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",Tp,[n.createElementVNode("div",Dp,n.toDisplayString(e.i18n("Properties")),1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.heads,(l,a)=>(n.openBlock(),n.createElementBlock("span",{key:a,ref_for:!0,ref:`item-${a}`,onClick:i[1]||(i[1]=d=>d.stopPropagation()),draggable:r.dragDown,onDragover:d=>s.dragOver(d,a),onDragleave:i[2]||(i[2]=(...d)=>s.dragLeave&&s.dragLeave(...d)),onDrop:d=>s.dropItem(d,l),onDragstart:d=>s.handleRowDrag(d,l),onDragend:i[3]||(i[3]=(...d)=>s.handleDragEnd&&s.handleDragEnd(...d))},[n.createElementVNode("i",{class:"onDrop",style:n.normalizeStyle({background:r.dropHead===l?s.dropBackground:""})},null,4),n.createElementVNode("div",Bp,[n.createElementVNode("i",{class:"ms-Icon ms-Icon--GripperDotsVertical",onMousedown:i[0]||(i[0]=d=>r.dragDown=!0)},null,32),n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon",[`ms-Icon--${s.computedIcon(l)}`]]),style:{"margin-left":"5px"}},null,2),n.createElementVNode("p",null,n.toDisplayString(l.name),1)]),n.createElementVNode("div",Np,[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${l.visible?"View":"Hide"}`]]),onClick:d=>s.switchVisible(l)},null,10,Lp),Fp])],40,Ip))),128)),Mp,n.createElementVNode("span",{onClick:i[4]||(i[4]=l=>{t.$emit("add-click"),l.stopPropagation()})},[Pp,n.createElementVNode("p",null,n.toDisplayString(e.i18n("New Property")),1)])])}const Ws=q(xp,[["render",Rp]]),_p={emits:["mousemove","mouseup","touchstart","touchmove","touchend","mousedown","mouseup"],props:{theme:{type:String,default:"system"}},data(){return{moveable:!1}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.Init()},methods:{Init(){window.addEventListener("mousemove",t=>{this.moveable&&this.$emit("mousemove",t)}),window.addEventListener("mouseup",t=>{this.moveable&&this.stop()}),window.addEventListener("touchmove",t=>{this.moveable&&this.$emit("touchmove",t)}),window.addEventListener("touchend",t=>{this.moveable&&this.stop()})},forward(t){t.preventDefault(),this.moveable=!0,t.type==="mousedown"?this.$emit("mousedown",t):this.$emit("touchstart",t)},stop(t){this.moveable=!1,t&&(t.type==="mouseup"?this.$emit("mouseup",t):this.$emit("touchend",t))}}},zp=[n.createElementVNode("i",null,null,-1)];function Op(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",{class:"fv-tableview-spliter",onMousedown:i[0]||(i[0]=(...l)=>s.forward&&s.forward(...l)),onMouseup:i[1]||(i[1]=(...l)=>s.stop&&s.stop(...l)),onTouchstart:i[2]||(i[2]=(...l)=>s.forward&&s.forward(...l)),onTouchend:i[3]||(i[3]=(...l)=>s.stop&&s.stop(...l))},zp,32)}const Hs=q(_p,[["render",Op]]),Ap={emits:["update:modelValue"],props:{modelValue:{default:!1},el:{default:()=>document.body},wrapperWidth:{default:"300px"},isUnder:{default:!1}},data(){return{thisValue:this.modelValue}},watch:{modelValue(){this.thisValue=this.modelValue},thisValue(){this.$emit("update:modelValue",this.thisValue)}},methods:{}};function Wp(t,i,e,o,r,s){const l=n.resolveComponent("fv-Affix");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{draggable:"false",class:"fv-tableview-edit-wrapper-background",onClick:i[1]||(i[1]=a=>{r.thisValue=!1,a.stopPropagation()}),onMousemove:i[2]||(i[2]=a=>a.preventDefault())},[n.createVNode(l,{target:e.el,left:"0",top:e.isUnder?"100%":0,mode:r.thisValue?"fixed":"relative"},{default:n.withCtx(()=>[n.createVNode(n.Transition,{name:"fv-tableview-edit-wrapper"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{draggable:"false",class:"fv-tableview-edit-wrapper-container",style:n.normalizeStyle({width:e.wrapperWidth}),onClick:i[0]||(i[0]=a=>a.stopPropagation())},[n.renderSlot(t.$slots,"default")],4),[[n.vShow,r.thisValue]])]),_:3})]),_:3},8,["target","top","mode"])],544)),[[n.vShow,r.thisValue]])}const Di=q(Ap,[["render",Wp]]),Hp={style:{"margin-left":"5px"}},Gp={style:{"margin-left":"5px"}},Up={class:"fv-tableview-default-edittool-row",style:{"margin-top":"10px"}},Yp={class:"fv-tableview-icon-block"},jp=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Equalizer"},null,-1),Xp={class:"row-title"},qp={class:"fv-tableview-default-edittool-row",style:{margin:"10px 0px"}},Kp=n.createElementVNode("hr",null,null,-1),Jp={class:"fv-tableview-default-edittool-row lighter"},Qp=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Ascending"},null,-1),Zp={class:"row-title"},ew={class:"fv-tableview-default-edittool-row lighter"},tw=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Descending"},null,-1),iw={class:"row-title"},nw={class:"fv-tableview-default-edittool-row lighter"},ow=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Filter"},null,-1),rw={class:"row-title"},sw=n.createElementVNode("hr",null,null,-1),lw=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Hide"},null,-1),aw={class:"row-title"},dw={class:"row-title"},hw={class:"fv-tableview-default-edittool-row",style:{"margin-bottom":"10px"}},uw={class:"row-title"},cw=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Copy"},null,-1),fw={class:"row-title"},mw=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Delete"},null,-1),gw={class:"row-title"},pw=n.createElementVNode("hr",null,null,-1),ww={class:"fv-tableview-default-edittool-row",style:{"margin-bottom":"10px"}},bw={class:"row-title"},Gs=Object.assign({name:"FvTableViewHeadBase",components:{spliter:Hs,editWrapper:Di},data(){return{mouseDownPos:{disX:0},dropMode:!1,thisKeyValue:this.modelValue.key,show:{edit:!1,editKey:!1}}},watch:{modelValue(){this.formatHead(),this.thisKeyValue=this.modelValue.key},"show.edit"(t){t&&this.$nextTick(()=>{this.$refs.text&&this.$refs.text.focus()}),this.show.editKey=!1,this.$emit("show-edit",t)}},mounted(){this.formatHead()},methods:{formatHead(){if(this.formatFunction)this.formatFunction(this.modelValue);else{let t={key:"text",name:"",emoji:"\u{1F4C4}",type:"text",typeName:"Text",minWidth:60,width:100,fixed:!1,fixedSide:!1,wrap:!1,visible:!0};for(let i in t)this.modelValue[i]||(this.modelValue[i]=t[i]);this.modelValue.__guid||(this.modelValue.__guid=this.GuidWithoutDash())}},switchHide(){this.show.edit=!1;let t=!this.modelValue.visible;this.modelValue.visible=t},switchFixed(){this.show.edit=!1;let t=!this.modelValue.fixed;this.modelValue.fixed=t},deleteColumn(){this.show.edit=!1,this.$emit("delete-column",this.modelValue)},resizeDown(t){this.mouseDownPos.disX=t.clientX},resizeMove(t){let i=t.clientX-this.mouseDownPos.disX;this.mouseDownPos.disX=t.clientX;let e=this.modelValue.width+i;e=e<this.modelValue.minWidth?this.modelValue.minWidth:e,this.modelValue.width=e},dragOver(t){if(t.preventDefault(),t.stopPropagation(),this.dragItem===this.modelValue)return;const{clientX:i}=t,{left:e,width:o}=this.$el.getBoundingClientRect();i-e<o/2?this.dropMode=!0:this.dropMode=!1},dragLeave(t){t.preventDefault(),t.stopPropagation(),this.dropMode=!1},dropItem(t){t.preventDefault(),t.stopPropagation(),this.dropMode&&this.dragItem&&this.$emit("drop-item",{drop:this.modelValue,drag:this.dragItem}),this.dropMode=!1},switchEditKey(){this.show.editKey?this.saveEditKey():(this.show.editKey=!0,this.$nextTick(()=>{this.$refs.keyName.focus()}))},saveEditKey(){!this.thisKeyValue||(this.modelValue.key=this.thisKeyValue,this.show.editKey=!1)},GuidWithoutDash(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()}}},{props:{...A,modelValue:{type:Object,default:()=>({})},index:{type:Number,default:0},i18n:{type:Function,default:t=>t},foreground:{default:""},dragItem:{type:Object,default:null},fixedLeftWidth:{default:0},fixedRightWidth:{default:0},wrapperWidth:{default:"220px"},formatFunction:{default:null},isUnder:{type:Boolean,default:!1}},emits:["show-edit","delete-column","duplicate-column","drop-item"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-text-box"),s=n.resolveComponent("fv-toggle-switch");return t.modelValue.__guid?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["fv-tableview-head-item",[{onDrop:e.dropMode,fixed:t.modelValue.fixed}]]),onDragover:o[16]||(o[16]=(...l)=>e.dragOver&&e.dragOver(...l)),onDragleave:o[17]||(o[17]=(...l)=>e.dragLeave&&e.dragLeave(...l)),onDrop:o[18]||(o[18]=(...l)=>e.dropItem&&e.dropItem(...l)),style:n.normalizeStyle({left:t.modelValue.fixed&&!t.modelValue.fixedSide?t.fixedLeftWidth+"px":"",right:t.modelValue.fixed&&t.modelValue.fixedSide?t.fixedRightWidth+"px":"",width:t.modelValue.width+"px","border-color":e.dropMode?t.foreground:"","z-index":e.show.edit?6:""})},[n.createElementVNode("div",{class:"fv-tableview-head-content",onClick:o[0]||(o[0]=l=>e.show.edit=!0),onContextmenu:o[1]||(o[1]=l=>{l.preventDefault(),e.show.edit=!0})},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("p",Hp,n.toDisplayString(t.modelValue.emoji),1),n.createElementVNode("p",Gp,n.toDisplayString(t.modelValue.name),1)])],32),n.createVNode(Hs,{style:{height:"100%"},onMousedown:o[2]||(o[2]=l=>e.resizeDown(l)),onMousemove:o[3]||(o[3]=l=>e.resizeMove(l)),onTouchstart:o[4]||(o[4]=l=>e.resizeDown(l.targetTouches[0])),onTouchmove:o[5]||(o[5]=l=>e.resizeMove(l.targetTouches[0]))}),n.createVNode(Di,{modelValue:e.show.edit,"onUpdate:modelValue":o[15]||(o[15]=l=>e.show.edit=l),el:()=>e.$el,wrapperWidth:t.wrapperWidth,isUnder:t.isUnder},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"entire",{modelValue:t.modelValue,show:e.show.edit},()=>[n.createElementVNode("div",Up,[n.createElementVNode("p",Yp,n.toDisplayString(t.modelValue.emoji),1),n.createVNode(r,{modelValue:t.modelValue.name,"onUpdate:modelValue":o[6]||(o[6]=l=>t.modelValue.name=l),placeholder:t.i18n("Column Name"),theme:e.theme,underline:"",ref:"text",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":t.foreground,borderWidth:"2","is-box-shadow":"true",style:{"margin-left":"5px"}},null,8,["modelValue","placeholder","theme","background","focus-border-color"])]),n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",style:{"margin-top":"5px"},onClick:o[7]||(o[7]=(...l)=>e.switchEditKey&&e.switchEditKey(...l))},[jp,n.createElementVNode("p",Xp,n.toDisplayString(e.show.editKey?t.i18n("Save Property Key"):t.i18n("Edit Property Key")),1)]),n.withDirectives(n.createElementVNode("div",qp,[n.createVNode(r,{modelValue:e.thisKeyValue,"onUpdate:modelValue":o[8]||(o[8]=l=>e.thisKeyValue=l),placeholder:t.i18n("Key Name")+" "+t.i18n("(Press Enter to Confirm)"),ref:"keyName","left-icon":"Link",underline:"","border-color":e.thisKeyValue?"rgba(120, 120, 120, 0.1)":"rgba(200, 38, 45, 1)","focus-border-color":e.thisKeyValue?t.foreground:"rgba(200, 38, 45, 1)","border-width":2,"is-box-shadow":!0,style:{width:"10px",height:"35px",flex:"1"},onKeydown:n.withKeys(e.saveEditKey,["enter"])},null,8,["modelValue","placeholder","border-color","focus-border-color","onKeydown"])],512),[[n.vShow,e.show.editKey]]),n.renderSlot(e.$slots,"menu"),Kp,n.createElementVNode("div",Jp,[Qp,n.createElementVNode("p",Zp,n.toDisplayString(t.i18n("Sort Ascending")),1)]),n.createElementVNode("div",ew,[tw,n.createElementVNode("p",iw,n.toDisplayString(t.i18n("Sort Descending")),1)]),n.createElementVNode("div",nw,[ow,n.createElementVNode("p",rw,n.toDisplayString(t.i18n("Filter")),1)]),sw,n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",onClick:o[9]||(o[9]=(...l)=>e.switchHide&&e.switchHide(...l))},[lw,n.createElementVNode("p",aw,n.toDisplayString(t.i18n("Hide in View")),1)]),n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",onClick:o[10]||(o[10]=(...l)=>e.switchFixed&&e.switchFixed(...l))},[n.createElementVNode("i",{class:n.normalizeClass(["row-icon ms-Icon",[`ms-Icon--${t.modelValue.fixed?"Unpin":"Pin"}`]])},null,2),n.createElementVNode("p",dw,n.toDisplayString(t.modelValue.fixed?t.i18n("Unfixed Column"):t.i18n("Fixed Column")),1)]),n.withDirectives(n.createElementVNode("div",hw,[n.createElementVNode("p",uw,n.toDisplayString(t.i18n("Fixed Side")),1),n.createVNode(s,{modelValue:t.modelValue.fixedSide,"onUpdate:modelValue":o[11]||(o[11]=l=>t.modelValue.fixedSide=l),on:t.i18n("Right"),off:t.i18n("Left"),insideContent:!0,switchOnBackground:t.foreground,width:"60",style:{"margin-left":"15px"}},null,8,["modelValue","on","off","switchOnBackground"])],512),[[n.vShow,t.modelValue.fixed]]),n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",onClick:o[12]||(o[12]=l=>{e.show.edit=!1,e.$emit("duplicate-column",t.index)})},[cw,n.createElementVNode("p",fw,n.toDisplayString(t.i18n("Duplicate Column")),1)]),n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",onClick:o[13]||(o[13]=(...l)=>e.deleteColumn&&e.deleteColumn(...l))},[mw,n.createElementVNode("p",gw,n.toDisplayString(t.i18n("Delete Column")),1)]),pw,n.createElementVNode("div",ww,[n.createElementVNode("p",bw,n.toDisplayString(t.i18n("Wrap Column")),1),n.createVNode(s,{modelValue:t.modelValue.wrap,"onUpdate:modelValue":o[14]||(o[14]=l=>t.modelValue.wrap=l),on:t.i18n("Yes"),off:t.i18n("No"),insideContent:!0,switchOnBackground:t.foreground,width:"60",style:{"margin-left":"15px"}},null,8,["modelValue","on","off","switchOnBackground"])])])]),_:3},8,["modelValue","el","wrapperWidth","isUnder"])],38)):n.createCommentVNode("",!0)}}}),yw={class:"fv-tableview-default-content"},Us=Object.assign({name:"FvTableViewCellBase",components:{editWrapper:Di},data(){return{show:{edit:!1}}},watch:{modelValue(){this.formatCell()},"head.key"(){this.formatCell()},"show.edit"(t){t&&this.$nextTick(()=>{this.$refs.text&&this.$refs.text.focus()}),this.$emit("show-edit",t)}},computed:{isSelected(){let t=-1,i=-1,e=-1,o=-1;return this.selectPos.start_row>this.selectPos.end_row?(t=this.selectPos.end_row,i=this.selectPos.start_row):(t=this.selectPos.start_row,i=this.selectPos.end_row),this.selectPos.start_col>this.selectPos.end_col?(e=this.selectPos.end_col,o=this.selectPos.start_col):(e=this.selectPos.start_col,o=this.selectPos.end_col),t<=this.row_index&&i>=this.row_index&&e<=this.col_index&&o>=this.col_index},isFirstSelected(){return this.selectPos.start_row===this.row_index&&this.selectPos.start_col===this.col_index},selectBackground(){try{let t=kt(this.foreground);return t=t.alpha(.1),t.cssa()}catch{return""}},outlineColor(){try{let t=kt(this.foreground);return t=t.alpha(.6),t.cssa()}catch{return""}},computedBackground(){return this.isSelected?this.selectBackground:""}},mounted(){this.formatCell()},methods:{formatCell(){if(this.formatFunction)this.formatFunction(this.modelValue,this.head);else{let t={};t[this.head.key]="";for(let i in t)this.modelValue[i]||(this.modelValue[i]=t[i]);this.modelValue.__guid||(this.modelValue.__guid=this.GuidWithoutDash())}},clickFunc(){this.show.edit=!0},mouseFunc(t,i="down"){t.preventDefault(),this.$emit("set-select",{event_type:i,row_index:this.row_index,col_index:this.col_index})},GuidWithoutDash(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()}}},{props:{...A,modelValue:{type:Object,default:()=>({})},head:{type:Object,default:()=>({})},i18n:{type:Function,default:t=>t},selectPos:{type:Object,default:()=>({})},foreground:{default:""},fixedLeftWidth:{default:0},fixedRightWidth:{default:0},wrapperWidth:{default:"220px"},formatFunction:{type:Function,default:null},row_index:{type:Number,default:0},col_index:{type:Number,default:0},isUnder:{type:Boolean,default:!1}},emits:["show-edit","set-select","drop-item"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-text-box");return t.head.__guid?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["fv-tableview-cell-item",[{wrappable:t.head.wrap,fixed:t.head.fixed,selected:e.isSelected,"first-selected":e.isFirstSelected}]]),style:n.normalizeStyle({left:t.head.fixed&&!t.head.fixedSide?t.fixedLeftWidth+"px":"",right:t.head.fixed&&t.head.fixedSide?t.fixedRightWidth+"px":"",width:t.head.width+"px","z-index":e.show.edit||e.isFirstSelected?5:"",background:e.computedBackground,"outline-color":e.outlineColor})},[n.createElementVNode("div",{class:"fv-tableview-cell-content",onMousedown:o[0]||(o[0]=s=>e.mouseFunc(s,"down")),onMouseenter:o[1]||(o[1]=s=>e.mouseFunc(s,"enter")),onClick:o[2]||(o[2]=(...s)=>e.clickFunc&&e.clickFunc(...s))},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("p",yw,n.toDisplayString(t.modelValue[t.head.key]),1)])],32),n.withDirectives(n.createElementVNode("p",{class:"fv-tableview-cell-sync-btn",style:n.normalizeStyle({"border-color":e.outlineColor}),onMousedown:o[3]||(o[3]=s=>e.mouseFunc(s,"sync-down"))},null,36),[[n.vShow,e.isFirstSelected]]),n.createVNode(Di,{modelValue:e.show.edit,"onUpdate:modelValue":o[5]||(o[5]=s=>e.show.edit=s),el:()=>e.$el,wrapperWidth:t.wrapperWidth,isUnder:t.isUnder},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"entire",{modelValue:t.modelValue,show:e.show.edit},()=>[n.createVNode(r,{modelValue:t.modelValue[t.head.key],"onUpdate:modelValue":o[4]||(o[4]=s=>t.modelValue[t.head.key]=s),theme:e.theme,underline:"",ref:"text",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":t.foreground,borderWidth:"2","is-box-shadow":"true",style:{width:"100%"}},null,8,["modelValue","theme","background","focus-border-color"])])]),_:3},8,["modelValue","el","wrapperWidth","isUnder"])],6)):n.createCommentVNode("",!0)}}}),kw={props:{modelValue:{type:Object,default:()=>({})},index:{type:Number,default:0},i18n:{type:Function,default:t=>t},foreground:{default:""},dragItem:{type:Object,default:null},fixedLeftWidth:{default:0},fixedRightWidth:{default:0},theme:{type:String,default:"system"}},data(){return{showAsList:[{key:"number",text:"Number",icon:"NumberField"},{key:"bar",text:"Bar",icon:"ChromeMinimizeContrast"},{key:"ring",text:"Ring",icon:"ProgressRingDots"}],currentColors:[],currentFormats:[],colorList:[{name:"gray",color:"#787774"},{name:"purple",color:"#958DF1"},{name:"pink",color:"#f58eda"},{name:"red",color:"#F98181"},{name:"orange",color:"#FBBC88"},{name:"yellow",color:"#FAF594"},{name:"blue",color:"#4086cb"},{name:"teal",color:"#94FADB"},{name:"green",color:"#B9F18D"},{name:"rose",color:"#ee7686"}],numberFormatList:[{key:"Number",text:"Number"},{key:"Number with commas",text:"Number with commas"},{key:"Percent",text:"Percent"},{key:"US Dollar",text:"US Dollar"},{key:"Australian dollar",text:"Australian dollar"},{key:"Canadian dollar",text:"Canadian dollar"},{key:"Singapore dollar",text:"Singapore dollar"},{key:"Euro",text:"Euro"},{key:"Pound",text:"Pound"},{key:"Yen",text:"Yen"},{key:"Ruble",text:"Ruble"},{key:"Rupee",text:"Rupee"},{key:"Won",text:"Won"},{key:"Yuan",text:"Yuan"},{key:"Real",text:"Real"},{key:"Lira",text:"Lira"},{key:"Rupiah",text:"Rupiah"},{key:"Franc",text:"Franc"},{key:"Hong Kong dollar",text:"Hong Kong dollar"},{key:"New Zealand dollar",text:"New Zealand dollar"},{key:"Krona",text:"Krona"},{key:"Norwegian krone",text:"Norwegian krone"},{key:"Mexican peso",text:"Mexican peso"},{key:"Rand",text:"Rand"},{key:"New Taiwan dollar",text:"New Taiwan dollar"},{key:"Danish krone",text:"Danish krone"},{key:"Z\u0142oty",text:"Z\u0142oty"},{key:"Baht",text:"Baht"},{key:"Forint",text:"Forint"},{key:"Koruna",text:"Koruna"},{key:"Shekel",text:"Shekel"},{key:"Chilean peso",text:"Chilean peso"},{key:"Philippine peso",text:"Philippine peso"},{key:"Dirham",text:"Dirham"},{key:"Colombian peso",text:"Colombian peso"},{key:"Riyal",text:"Riyal"},{key:"Ringgit",text:"Ringgit"},{key:"Leu",text:"Leu"},{key:"Argentine peso",text:"Argentine peso"},{key:"Uruguayan peso",text:"Uruguayan peso"},{key:"Peruvian sol",text:"Peruvian sol"}]}},watch:{"modelValue.showColor"(){this.colorInit()},"modelValue.numberFormat"(){this.formatInit()},currentColors(){let t=this.currentColors[0].color;this.modelValue.showColor=t},currentFormats(){let t=this.currentFormats[0].key;this.modelValue.numberFormat=t}},computed:{getColorName(){return t=>t.slice(0,1).toUpperCase()+t.slice(1)}},mounted(){this.colorInit(),this.formatInit()},methods:{colorInit(){let t=this.colorList.find(i=>i.color===this.modelValue.showColor);t?this.currentColors=[t]:this.currentColors=[]},formatInit(){let t=this.numberFormatList.find(i=>i.key===this.modelValue.numberFormat);t?this.currentFormats=[t]:this.currentFormats=[]},formatNumberHead(t){let i={key:"number",name:"",emoji:"\u{1F522}",type:"number",minWidth:60,width:100,numberFormat:"Number",showAs:"number",showColor:"#958DF1",divideBy:100,showNumber:!0,fixed:!1,fixedSide:!1,wrap:!1,visible:!0};for(let e in i)t[e]||(t[e]=i[e]);t.__guid||(t.__guid=this.GuidWithoutDash())},GuidWithoutDash(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()}}},vw={class:"fv-tableview-default-edittool-row between"},Cw={style:{"margin-left":"10px"}},Vw=["title"],Sw=n.createElementVNode("hr",null,null,-1),$w={class:"fv-tableview-number-edittool-inside-block"},Ew={class:"number-edittool-title"},xw={class:"hor-block"},Tw=["onClick"],Dw={class:"title-block"},Iw={class:"show-as-config-block"},Bw={class:"show-as-config-item"},Nw={style:{"margin-left":"5px","font-size":"12px"}},Lw={class:"show-as-config-custom-drop-down"},Fw=n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronDown"},null,-1),Mw={class:"show-as-config-item"},Pw={class:"show-as-config-item"};function Rw(t,i,e,o,r,s){const l=n.resolveComponent("fv-drop-down"),a=n.resolveComponent("fv-text-box"),d=n.resolveComponent("fv-toggle-switch"),h=n.resolveComponent("fv-table-view-head-base");return n.openBlock(),n.createBlock(h,{modelValue:e.modelValue,index:e.index,i18n:e.i18n,foreground:e.foreground,fixedLeftWidth:e.fixedLeftWidth,fixedRightWidth:e.fixedRightWidth,theme:e.theme,wrapperWidth:"260px",dragItem:e.dragItem,formatFunction:s.formatNumberHead,onDuplicateColumn:i[5]||(i[5]=u=>t.$emit("duplicate-column",u)),onDropItem:i[6]||(i[6]=u=>t.$emit("drop-item",u)),onDeleteColumn:i[7]||(i[7]=u=>t.$emit("delete-column",u))},{menu:n.withCtx(()=>[n.createElementVNode("div",vw,[n.createElementVNode("span",Cw,n.toDisplayString(e.i18n("Number Format")),1),n.createVNode(l,{modelValue:r.currentFormats,"onUpdate:modelValue":i[0]||(i[0]=u=>r.currentFormats=u),options:r.numberFormatList,theme:e.theme,placeholder:e.i18n("Select Number Format"),style:{width:"120px"}},{options:n.withCtx(u=>[n.createElementVNode("p",{title:e.i18n(u.option.text),style:{"font-size":"12px"}},n.toDisplayString(e.i18n(u.option.text)),9,Vw)]),_:1},8,["modelValue","options","theme","placeholder"])]),Sw,n.createElementVNode("div",$w,[n.createElementVNode("span",Ew,n.toDisplayString(e.i18n("Show as")),1),n.createElementVNode("div",xw,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.showAsList,(u,c)=>(n.openBlock(),n.createElementBlock("div",{key:c,class:"hor-item",style:n.normalizeStyle({color:e.modelValue.showAs===u.key?e.foreground:"","border-color":e.modelValue.showAs===u.key?e.foreground:"","border-width":e.modelValue.showAs===u.key?"2px":""}),onClick:f=>e.modelValue.showAs=u.key},[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${u.icon}`]])},null,2),n.createElementVNode("p",Dw,n.toDisplayString(u.text),1)],12,Tw))),128))]),n.createElementVNode("div",Iw,[n.createElementVNode("div",Bw,[n.createElementVNode("span",null,n.toDisplayString(e.i18n("Color")),1),n.createVNode(l,{modelValue:r.currentColors,"onUpdate:modelValue":i[1]||(i[1]=u=>r.currentColors=u),theme:e.theme,options:r.colorList,style:{width:"120px","margin-left":"5px"}},{options:n.withCtx(u=>[n.createElementVNode("i",{class:"color-block",style:n.normalizeStyle([{background:u.option.color},{"flex-shrink":"0"}])},null,4),n.createElementVNode("p",Nw,n.toDisplayString(e.i18n(s.getColorName(u.option.name))),1)]),"drop-carrier":n.withCtx(u=>[n.createElementVNode("div",Lw,[n.createElementVNode("i",{class:"color-block",style:n.normalizeStyle({background:u.value.length>0?u.value[0].color:""})},null,4),n.createElementVNode("span",null,n.toDisplayString(e.i18n(s.getColorName(u.value.length>0?u.value[0].name:""))),1),Fw])]),_:1},8,["modelValue","theme","options"])]),n.createElementVNode("div",Mw,[n.createElementVNode("span",null,n.toDisplayString(e.i18n("Divide by")),1),n.createVNode(a,{modelValue:e.modelValue.divideBy,"onUpdate:modelValue":i[2]||(i[2]=u=>e.modelValue.divideBy=u),placeholder:e.i18n("Input value"),theme:e.theme,underline:"",ref:"text",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":e.foreground,borderWidth:"2","is-box-shadow":"true",style:{width:"120px","margin-left":"5px"},onClick:i[3]||(i[3]=u=>t.$refs.text.focus())},null,8,["modelValue","placeholder","theme","background","focus-border-color"])]),n.createElementVNode("div",Pw,[n.createElementVNode("span",null,n.toDisplayString(e.i18n("Show Number")),1),n.createVNode(d,{modelValue:e.modelValue.showNumber,"onUpdate:modelValue":i[4]||(i[4]=u=>e.modelValue.showNumber=u),on:e.i18n("Yes"),off:e.i18n("No"),insideContent:!0,switchOnBackground:e.foreground,width:"60",style:{"margin-left":"15px"}},null,8,["modelValue","on","off","switchOnBackground"])])])])]),_:1},8,["modelValue","index","i18n","foreground","fixedLeftWidth","fixedRightWidth","theme","dragItem","formatFunction"])}const _w=q(kw,[["render",Rw]]),zw={props:{value:{type:Object,default:()=>({})},head:{type:Object,default:()=>({})},i18n:{type:Function,default:t=>t},selectPos:{type:Object,default:()=>({})},foreground:{default:""},fixedLeftWidth:{default:0},fixedRightWidth:{default:0},row_index:{type:Number,default:0},col_index:{type:Number,default:0},theme:{type:String,default:"system"}},data(){return{numberFormatList:[{key:"Number",text:"Number",func:t=>parseFloat(t).toFixed(2)},{key:"Number with commas",text:"Number with commas",func:t=>parseFloat(t).toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,",")},{key:"Percent",text:"Percent",func:t=>(parseFloat(t)*100).toFixed(2)+"%"},{key:"US Dollar",text:"US Dollar",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"$"+Math.abs(i).toFixed(2)}},{key:"Australian dollar",text:"Australian dollar",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"AU$"+Math.abs(i).toFixed(2)}},{key:"Canadian dollar",text:"Canadian dollar",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"CA$"+Math.abs(i).toFixed(2)}},{key:"Singapore dollar",text:"Singapore dollar",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"SG$"+Math.abs(i).toFixed(2)}},{key:"Euro",text:"Euro",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\u20AC"+Math.abs(i).toFixed(2)}},{key:"Pound",text:"Pound",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\xA3"+Math.abs(i).toFixed(2)}},{key:"Yen",text:"Yen",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\xA5"+Math.abs(i).toFixed(2)}},{key:"Ruble",text:"Ruble",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\u20BD"+Math.abs(i).toFixed(2)}},{key:"Rupee",text:"Rupee",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\u20B9"+Math.abs(i).toFixed(2)}},{key:"Won",text:"Won",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\u20A9"+Math.abs(i).toFixed(2)}},{key:"Yuan",text:"Yuan",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\xA5"+Math.abs(i).toFixed(2)}},{key:"Real",text:"Real",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"R$"+Math.abs(i).toFixed(2)}},{key:"Lira",text:"Lira",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\u20BA"+Math.abs(i).toFixed(2)}},{key:"Rupiah",text:"Rupiah",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"Rp"+Math.abs(i).toFixed(2)}},{key:"Franc",text:"Franc",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"Fr"+Math.abs(i).toFixed(2)}},{key:"Hong Kong dollar",text:"Hong Kong dollar",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"HK$"+Math.abs(i).toFixed(2)}},{key:"New Zealand dollar",text:"New Zealand dollar",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"NZ$"+Math.abs(i).toFixed(2)}},{key:"Krona",text:"Krona",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"kr"+Math.abs(i).toFixed(2)}},{key:"Norwegian krone",text:"Norwegian krone",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"kr"+Math.abs(i).toFixed(2)}},{key:"Mexican peso",text:"Mexican peso",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"Mex$"+Math.abs(i).toFixed(2)}},{key:"Rand",text:"Rand",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"R"+Math.abs(i).toFixed(2)}},{key:"New Taiwan dollar",text:"New Taiwan dollar",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"NT$"+Math.abs(i).toFixed(2)}},{key:"Danish krone",text:"Danish krone",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"kr"+Math.abs(i).toFixed(2)}},{key:"Z\u0142oty",text:"Z\u0142oty",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"z\u0142"+Math.abs(i).toFixed(2)}},{key:"Baht",text:"Baht",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\u0E3F"+Math.abs(i).toFixed(2)}},{key:"Forint",text:"Forint",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"Ft"+Math.abs(i).toFixed(2)}},{key:"Koruna",text:"Koruna",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"K\u010D"+Math.abs(i).toFixed(2)}},{key:"Shekel",text:"Shekel",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\u20AA"+Math.abs(i).toFixed(2)}},{key:"Chilean peso",text:"Chilean peso",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"CLP$"+Math.abs(i).toFixed(2)}},{key:"Philippine peso",text:"Philippine peso",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\u20B1"+Math.abs(i).toFixed(2)}},{key:"Dirham",text:"Dirham",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"AED$"+Math.abs(i).toFixed(2)}},{key:"Colombian peso",text:"Colombian peso",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"COL$"+Math.abs(i).toFixed(2)}},{key:"Riyal",text:"Riyal",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"\uFDFC"+Math.abs(i).toFixed(2)}},{key:"Ringgit",text:"Ringgit",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"RM"+Math.abs(i).toFixed(2)}},{key:"Leu",text:"Leu",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"L"+Math.abs(i).toFixed(2)}},{key:"Argentine peso",text:"Argentine peso",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"AR$"+Math.abs(i).toFixed(2)}},{key:"Uruguayan peso",text:"Uruguayan peso",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"UYU$"+Math.abs(i).toFixed(2)}},{key:"Peruvian sol",text:"Peruvian sol",func:t=>{let i=parseFloat(t),e="";return i<0&&(e="-"),e+"S/"+Math.abs(i).toFixed(2)}}]}},computed:{computedPercent(){let t=parseFloat(this.value[this.head.key]);if(t.toString()!=="NaN"){if(!this.head.divideBy)return 0;let i=t/this.head.divideBy*100;return i>100&&(i=100),i}},computedFormatItem(){return this.numberFormatList.find(t=>t.key===this.head.numberFormat)},computedContent(){return this.computedFormatItem?this.computedFormatItem.func(this.value[this.head.key]):this.value[this.head.key]}}},Ow={style:{width:"100%","padding-right":"5px",display:"flex","justify-content":"flex-end","align-items":"center"}},Aw={class:"fv-tableview-default-content"},Ww={style:{width:"100%",display:"flex","justify-content":"flex-end","align-items":"center"}},Hw={class:"fv-tableview-default-content"};function Gw(t,i,e,o,r,s){const l=n.resolveComponent("fv-progress-bar"),a=n.resolveComponent("fv-progress-ring"),d=n.resolveComponent("fv-table-view-cell-base");return n.openBlock(),n.createBlock(d,{value:e.value,head:e.head,i18n:e.i18n,selectPos:e.selectPos,foreground:e.foreground,row_index:e.row_index,col_index:e.col_index,fixedLeftWidth:e.fixedLeftWidth,fixedRightWidth:e.fixedRightWidth,theme:e.theme,onDropItem:i[0]||(i[0]=h=>t.$emit("drop-item",h)),onSetSelect:i[1]||(i[1]=h=>t.$emit("set-select",h))},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("p",{class:"fv-tableview-default-content",style:{width:"100%","text-align":"right"}},n.toDisplayString(s.computedContent),513),[[n.vShow,e.head.showAs==="number"]]),n.withDirectives(n.createElementVNode("div",Ow,[n.createElementVNode("p",Aw,n.toDisplayString(s.computedContent),1),n.createVNode(l,{value:s.computedPercent,foreground:e.head.showColor,style:{width:"10px",flex:"1","margin-left":"5px"}},null,8,["value","foreground"])],512),[[n.vShow,e.head.showAs==="bar"]]),n.withDirectives(n.createElementVNode("div",Ww,[n.createElementVNode("p",Hw,n.toDisplayString(s.computedContent),1),n.createVNode(a,{value:s.computedPercent,color:e.head.showColor,r:"12",borderWidth:"3"},null,8,["value","color"])],512),[[n.vShow,e.head.showAs==="ring"]])]),_:1},8,["value","head","i18n","selectPos","foreground","row_index","col_index","fixedLeftWidth","fixedRightWidth","theme"])}const Uw=q(zw,[["render",Gw]]),Yw={name:"Number",type:"number",icon:"NumberField",emoji:"\u{1F522}",headComponent:n.markRaw(_w),cellComponent:n.markRaw(Uw),filter:({input:t,value:i})=>t?t===i:!0,sortAsc:(t,i)=>t.localeCompare(i),sortDesc:(t,i)=>i.localeCompare(t)},jw={props:{modelValue:{type:Object,default:()=>({})},index:{type:Number,default:0},i18n:{type:Function,default:t=>t},foreground:{default:""},dragItem:{type:Object,default:null},fixedLeftWidth:{default:0},fixedRightWidth:{default:0},theme:{type:String,default:"system"}},data(){return{currentDateFormats:[],currentTimeFormats:[],dateFormatList:[{key:"full",text:"Full Date"},{key:"mm/dd/YYYY",text:"Month/Day/Year"},{key:"dd/mm/YYYY",text:"Day/Month/Year"},{key:"YYYY/mm/dd",text:"Year/Month/Day"},{key:"relative",text:"Relative"}],timeFormatList:[{key:"hidden",text:"Hidden"},{key:"12",text:"12 Hour"},{key:"24",text:"24 Hour"}]}},watch:{"modelValue.dateFormat"(){this.dateFormatInit()},"modelValue.timeFormat"(){this.timeFormatInit()},currentDateFormats(){let t=this.currentDateFormats[0].key;this.modelValue.dateFormat=t},currentTimeFormats(){let t=this.currentTimeFormats[0].key;this.modelValue.timeFormat=t}},computed:{},mounted(){this.dateFormatInit(),this.timeFormatInit()},methods:{dateFormatInit(){let t=this.dateFormatList.find(i=>i.key===this.modelValue.dateFormat);t?this.currentDateFormats=[t]:this.currentDateFormats=[]},timeFormatInit(){let t=this.timeFormatList.find(i=>i.key===this.modelValue.timeFormat);t?this.currentTimeFormats=[t]:this.currentTimeFormats=[]},formatDateHead(t){let i={key:"number",name:"",emoji:"\u{1F4C5}",type:"number",minWidth:60,width:100,dateFormat:"full",timeFormat:"hidden",showEndDate:!1,fixed:!1,fixedSide:!1,wrap:!1,visible:!0};for(let e in i)t[e]||(this.modelValue[e]=i[e]);t.__guid||(t.__guid=this.GuidWithoutDash())},GuidWithoutDash(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()}}},Xw={class:"fv-tableview-default-edittool-row between"},qw={style:{"margin-left":"10px"}},Kw=["title"],Jw={class:"fv-tableview-default-edittool-row between",style:{"margin-top":"10px","margin-bottom":"10px"}},Qw={style:{"margin-left":"10px"}},Zw=["title"];function e0(t,i,e,o,r,s){const l=n.resolveComponent("fv-drop-down"),a=n.resolveComponent("fv-table-view-head-base");return n.openBlock(),n.createBlock(a,{modelValue:e.modelValue,index:e.index,i18n:e.i18n,foreground:e.foreground,fixedLeftWidth:e.fixedLeftWidth,fixedRightWidth:e.fixedRightWidth,theme:e.theme,wrapperWidth:"260px",dragItem:e.dragItem,formatFunction:s.formatDateHead,onDuplicateColumn:i[2]||(i[2]=d=>t.$emit("duplicate-column",d)),onDropItem:i[3]||(i[3]=d=>t.$emit("drop-item",d)),onDeleteColumn:i[4]||(i[4]=d=>t.$emit("delete-column",d))},{menu:n.withCtx(()=>[n.createElementVNode("div",Xw,[n.createElementVNode("span",qw,n.toDisplayString(e.i18n("Date Format")),1),n.createVNode(l,{modelValue:r.currentDateFormats,"onUpdate:modelValue":i[0]||(i[0]=d=>r.currentDateFormats=d),options:r.dateFormatList,theme:e.theme,placeholder:e.i18n("Select Date Format"),style:{width:"120px"}},{options:n.withCtx(d=>[n.createElementVNode("p",{title:e.i18n(d.option.text),style:{"font-size":"12px"}},n.toDisplayString(e.i18n(d.option.text)),9,Kw)]),_:1},8,["modelValue","options","theme","placeholder"])]),n.createElementVNode("div",Jw,[n.createElementVNode("span",Qw,n.toDisplayString(e.i18n("Time Format")),1),n.createVNode(l,{modelValue:r.currentTimeFormats,"onUpdate:modelValue":i[1]||(i[1]=d=>r.currentTimeFormats=d),options:r.timeFormatList,theme:e.theme,placeholder:e.i18n("Select Time Format"),style:{width:"120px"}},{options:n.withCtx(d=>[n.createElementVNode("p",{title:e.i18n(d.option.text),style:{"font-size":"12px"}},n.toDisplayString(e.i18n(d.option.text)),9,Zw)]),_:1},8,["modelValue","options","theme","placeholder"])])]),_:1},8,["modelValue","index","i18n","foreground","fixedLeftWidth","fixedRightWidth","theme","dragItem","formatFunction"])}const t0=q(jw,[["render",e0]]),i0={props:{modelValue:{type:Object,default:()=>({})},head:{type:Object,default:()=>({})},i18n:{type:Function,default:t=>t},selectPos:{type:Object,default:()=>({})},foreground:{default:""},fixedLeftWidth:{default:0},fixedRightWidth:{default:0},row_index:{type:Number,default:0},col_index:{type:Number,default:0},theme:{type:String,default:"system"}},data(){return{currentChoosenDates:[],startDateStr:"",endDateStr:"",startTimeStr:"",endTimeStr:"",currentDate:new Date}},watch:{"head.dateFormat"(){this.dateInit()},"head.timeFormat"(){this.dateInit()}},computed:{computedContent(){return this.head.timeFormat!=="hidden"?this.head.showEndDate?this.startDateStr+" "+this.startTimeStr+" - "+this.endDateStr+" "+this.endTimeStr:this.startDateStr+" "+this.startTimeStr:this.head.showEndDate?this.startDateStr+" - "+this.endDateStr:this.startDateStr},currentDatesRange(){let t=[];if(this.currentChoosenDates.length===0)return t;if(this.currentChoosenDates.length===1)return this.currentChoosenDates;let i=this.currentChoosenDates[0],e=this.currentChoosenDates[1];return t=this.getDateRange(i,e),t}},mounted(){this.dateInit()},methods:{formatDate(t,i){let e={};e[i.key]={start:new Date,end:new Date};for(let o in e)t[o]||(t[o]=e[o]);if(!t[i.key].start){let o={start:new Date(t[i.key].toString()),end:new Date(t[i.key].toString())};t[i.key]=o}t.__guid||(t.__guid=this.GuidWithoutDash()),this.$watch(`modelValue.${this.head.key}`,()=>{this.dateInit()})},dateInit(){let t=this.head.key,i={start:new Date,end:new Date};this.modelValue[t]&&this.modelValue[t].start&&(i.start=new Date(this.modelValue[t].start)),this.modelValue[t]&&this.modelValue[t].end&&(i.end=new Date(this.modelValue[t].end)),this.currentDate=new Date(i.start),this.currentChoosenDates=[i.start,i.end],this.syncStrValue()},setStartDate(){if(!this.modelValue[this.head.key]||!this.modelValue[this.head.key].start)return"Invalid Date";let t=this.modelValue[this.head.key].start,i=this.head.dateFormat;if(!i||i==="full")return t.toDateString();let e=i;return this.$SDate.Format(e,t)},setEndDate(){if(!this.modelValue[this.head.key]||!this.modelValue[this.head.key].end)return"Invalid Date";let t=this.modelValue[this.head.key].end,i=this.head.dateFormat;if(!i||i==="full")return t.toDateString();let e=i;return this.$SDate.Format(e,t)},setStartTime(){if(!this.modelValue[this.head.key]||!this.modelValue[this.head.key].start)return"Invalid Time";let t=this.modelValue[this.head.key].start;return this.timeFormat(t)},setEndTime(){if(!this.modelValue[this.head.key]||!this.modelValue[this.head.key].end)return"Invalid Time";let t=this.modelValue[this.head.key].end;return this.timeFormat(t)},getDateRange(t,i){const e=new Date(t),o=new Date(i),r=[],s=e<=o?1:-1;let l=new Date(e);for(;s===1&&l<=o||s===-1&&l>=o;)r.push(new Date(l)),l.setDate(l.getDate()+s);return r},syncStrValue(){this.startDateStr=this.setStartDate(),this.endDateStr=this.setEndDate(),this.startTimeStr=this.setStartTime(),this.endTimeStr=this.setEndTime()},selectChoosenDates(t){this.modelValue[this.head.key]&&this.modelValue[this.head.key].start&&(this.modelValue[this.head.key].start=t[0]),this.modelValue[this.head.key]&&this.modelValue[this.head.key].end&&(this.modelValue[this.head.key].end=t[t.length-1]),this.syncStrValue()},timeFormat(t){if(this.head.timeFormat.toString()==="12"){let e=t.getHours(),o=t.getMinutes(),r=e>=12?"PM":"AM";return e=e%12,e=e||12,this.timeValueFormat(e)+":"+this.timeValueFormat(o)+" "+r}return this.timeValueFormat(t.getHours())+":"+this.timeValueFormat(t.getMinutes())+":"+this.timeValueFormat(t.getSeconds())},timeValueFormat(t){return t<10?"0"+t:t},getDaysInMonth(t,i){return new Date(i,t,0).getDate()},GuidWithoutDash(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()}}},n0={class:"fv-tableview-default-content",style:{width:"100%","text-align":"right"}},o0={class:"fv-tableview-default-edittool-row"},r0={class:"fv-tableview-default-edittool-row",style:{"margin-bottom":"10px"}},s0={class:"fv-tableview-default-edittool-row"},l0={class:"fv-tableview-default-edittool-row",style:{"margin-bottom":"10px"}},a0=n.createElementVNode("hr",null,null,-1),d0={key:1,class:"fv-tableview-default-edittool-row",style:{"margin-bottom":"10px"}};function h0(t,i,e,o,r,s){const l=n.resolveComponent("fv-text-box"),a=n.resolveComponent("fv-calendar-view"),d=n.resolveComponent("fv-time-picker"),h=n.resolveComponent("fv-toggle-switch"),u=n.resolveComponent("fv-table-view-cell-base");return n.openBlock(),n.createBlock(u,{modelValue:e.modelValue,head:e.head,i18n:e.i18n,selectPos:e.selectPos,foreground:e.foreground,row_index:e.row_index,col_index:e.col_index,fixedLeftWidth:e.fixedLeftWidth,fixedRightWidth:e.fixedRightWidth,theme:e.theme,formatFunction:s.formatDate,wrapperWidth:"300px",isUnder:!0,onDropItem:i[6]||(i[6]=c=>t.$emit("drop-item",c)),onSetSelect:i[7]||(i[7]=c=>t.$emit("set-select",c))},{default:n.withCtx(()=>[n.createElementVNode("p",n0,n.toDisplayString(s.computedContent),1)]),entire:n.withCtx(c=>[n.createElementVNode("div",{class:"fv-tableview-default-edittool-row",style:{"margin-top":"10px"},onClick:i[0]||(i[0]=f=>f.stopPropagation())},[n.createVNode(l,{modelValue:r.startDateStr,theme:e.theme,underline:"",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":e.foreground,"border-width":2,"is-box-shadow":!0,style:{height:"35px"}},null,8,["modelValue","theme","background","border-color","focus-border-color"]),n.withDirectives(n.createVNode(l,{modelValue:r.startTimeStr,theme:e.theme,underline:"",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":e.foreground,"border-width":2,"is-box-shadow":!0,style:{height:"35px","margin-left":"5px"}},null,8,["modelValue","theme","background","border-color","focus-border-color"]),[[n.vShow,e.head.timeFormat!=="hidden"]])]),n.withDirectives(n.createElementVNode("div",{class:"fv-tableview-default-edittool-row",style:{"margin-top":"5px"},onClick:i[1]||(i[1]=f=>f.stopPropagation())},[n.createVNode(l,{modelValue:r.endDateStr,theme:e.theme,underline:"",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":e.foreground,"border-width":2,"is-box-shadow":!0,style:{height:"35px"}},null,8,["modelValue","theme","background","border-color","focus-border-color"]),n.withDirectives(n.createVNode(l,{modelValue:r.endTimeStr,theme:e.theme,underline:"",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":e.foreground,"border-width":2,"is-box-shadow":!0,style:{height:"35px","margin-left":"5px"}},null,8,["modelValue","theme","background","border-color","focus-border-color"]),[[n.vShow,e.head.timeFormat!=="hidden"]])],512),[[n.vShow,e.head.showEndDate]]),c.show?(n.openBlock(),n.createBlock(a,{key:0,modelValue:r.currentDate,"onUpdate:modelValue":i[2]||(i[2]=f=>r.currentDate=f),theme:e.theme,multiple:e.head.showEndDate?"range":"single",ref:"calendar",choosenDates:s.currentDatesRange,foreground:e.foreground,style:{scale:"0.95"},onChoosenDatesObj:s.selectChoosenDates},{weekday_content:n.withCtx(f=>[n.createTextVNode(n.toDisplayString(e.i18n(f.modelValue)),1)]),_:2},1032,["modelValue","theme","multiple","choosenDates","foreground","onChoosenDatesObj"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",o0,[n.createElementVNode("span",null,n.toDisplayString(e.i18n("Start Time")),1)],512),[[n.vShow,e.head.showEndDate&&e.head.timeFormat!=="hidden"]]),n.withDirectives(n.createElementVNode("div",r0,[e.modelValue[e.head.key]&&e.modelValue[e.head.key].start?(n.openBlock(),n.createBlock(d,{key:0,modelValue:e.modelValue[e.head.key].start,"onUpdate:modelValue":i[3]||(i[3]=f=>e.modelValue[e.head.key].start=f),theme:e.theme,timeType:e.head.timeFormat=="12"?12:24,style:{width:"100%"},onChange:s.syncStrValue},null,8,["modelValue","theme","timeType","onChange"])):n.createCommentVNode("",!0)],512),[[n.vShow,e.head.timeFormat!=="hidden"]]),n.withDirectives(n.createElementVNode("div",s0,[n.createElementVNode("span",null,n.toDisplayString(e.i18n("End Time")),1)],512),[[n.vShow,e.head.showEndDate&&e.head.timeFormat!=="hidden"]]),n.withDirectives(n.createElementVNode("div",l0,[e.modelValue[e.head.key]&&e.modelValue[e.head.key].end?(n.openBlock(),n.createBlock(d,{key:0,modelValue:e.modelValue[e.head.key].end,"onUpdate:modelValue":i[4]||(i[4]=f=>e.modelValue[e.head.key].end=f),theme:e.theme,timeType:e.head.timeFormat=="12"?12:24,style:{width:"100%"},onChange:s.syncStrValue},null,8,["modelValue","theme","timeType","onChange"])):n.createCommentVNode("",!0)],512),[[n.vShow,e.head.showEndDate&&e.head.timeFormat!=="hidden"]]),a0,e.modelValue[e.head.key]&&e.head.showEndDate!==void 0?(n.openBlock(),n.createElementBlock("div",d0,[n.createElementVNode("span",null,n.toDisplayString(e.i18n("End Date")),1),n.createVNode(h,{modelValue:e.head.showEndDate,"onUpdate:modelValue":i[5]||(i[5]=f=>e.head.showEndDate=f),on:e.i18n("Yes"),off:e.i18n("No"),insideContent:!0,switchOnBackground:e.foreground,width:"60",style:{"margin-left":"15px"}},null,8,["modelValue","on","off","switchOnBackground"])])):n.createCommentVNode("",!0)]),_:1},8,["modelValue","head","i18n","selectPos","foreground","row_index","col_index","fixedLeftWidth","fixedRightWidth","theme","formatFunction"])}const u0=q(i0,[["render",h0]]),c0={name:"Date",type:"date",icon:"Calendar",emoji:"\u{1F4C5}",headComponent:n.markRaw(t0),cellComponent:n.markRaw(u0),filter:({input:t,value:i})=>t?t===i:!0,sortAsc:(t,i)=>t.localeCompare(i),sortDesc:(t,i)=>i.localeCompare(t)},f0={props:{modelValue:{type:Object,default:()=>({})},index:{type:Number,default:0},i18n:{type:Function,default:t=>t},foreground:{default:""},dragItem:{type:Object,default:null},fixedLeftWidth:{default:0},fixedRightWidth:{default:0},theme:{type:String,default:"system"}},data(){return{}},watch:{},computed:{},mounted(){},methods:{formatEmailHead(t){let i={key:"email",name:"",emoji:"@",type:"email",minWidth:60,width:100,fixed:!1,fixedSide:!1,wrap:!1,visible:!0};for(let e in i)t[e]||(t[e]=i[e]);t.__guid||(t.__guid=this.GuidWithoutDash())},GuidWithoutDash(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()}}};function m0(t,i,e,o,r,s){const l=n.resolveComponent("fv-table-view-head-base");return n.openBlock(),n.createBlock(l,{modelValue:e.modelValue,index:e.index,i18n:e.i18n,foreground:e.foreground,formatFunction:s.formatEmailHead,fixedLeftWidth:e.fixedLeftWidth,fixedRightWidth:e.fixedRightWidth,theme:e.theme,dragItem:e.dragItem,onDuplicateColumn:i[0]||(i[0]=a=>t.$emit("duplicate-column",a)),onDropItem:i[1]||(i[1]=a=>t.$emit("drop-item",a)),onDeleteColumn:i[2]||(i[2]=a=>t.$emit("delete-column",a))},null,8,["modelValue","index","i18n","foreground","formatFunction","fixedLeftWidth","fixedRightWidth","theme","dragItem"])}const g0=q(f0,[["render",m0]]),p0={props:{value:{type:Object,default:()=>({})},head:{type:Object,default:()=>({})},i18n:{type:Function,default:t=>t},selectPos:{type:Object,default:()=>({})},foreground:{default:""},fixedLeftWidth:{default:0},fixedRightWidth:{default:0},row_index:{type:Number,default:0},col_index:{type:Number,default:0},theme:{type:String,default:"system"}},data(){return{}},computed:{}},w0=["href"];function b0(t,i,e,o,r,s){const l=n.resolveComponent("fv-table-view-cell-base");return n.openBlock(),n.createBlock(l,{value:e.value,head:e.head,i18n:e.i18n,selectPos:e.selectPos,foreground:e.foreground,row_index:e.row_index,col_index:e.col_index,fixedLeftWidth:e.fixedLeftWidth,fixedRightWidth:e.fixedRightWidth,theme:e.theme,onDropItem:i[0]||(i[0]=a=>t.$emit("drop-item",a)),onSetSelect:i[1]||(i[1]=a=>t.$emit("set-select",a))},{default:n.withCtx(()=>[n.createElementVNode("a",{href:"mailto:"+e.value[e.head.key],class:"fv-tableview-default-content",style:{width:"100%","text-align":"right"}},n.toDisplayString(e.value[e.head.key]),9,w0)]),_:1},8,["value","head","i18n","selectPos","foreground","row_index","col_index","fixedLeftWidth","fixedRightWidth","theme"])}const y0=q(p0,[["render",b0]]),k0={name:"Email",type:"email",icon:"Accounts",emoji:"@",headComponent:n.markRaw(g0),cellComponent:n.markRaw(y0),filter:({input:t,value:i})=>t?t===i:!0,sortAsc:(t,i)=>t.localeCompare(i),sortDesc:(t,i)=>i.localeCompare(t)},v0={class:"fv-tableview-main-wrapper"},C0={class:"fv-tableview-head-item check-box"},V0={class:"fv-tableview-head-item op-tools"},S0=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Add"},null,-1),$0={class:"new-line-title"},E0=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Delete"},null,-1),x0=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Copy"},null,-1),T0=Object.assign({name:"FvTableView",components:{tableRow:Os,newProperty:As,currentProperty:Ws},data(){return{thisExtensions:[],selectPos:{active:!1,syncActive:!1,start_row:-1,start_col:-1,end_row:-1,end_col:-1},drag:{columnItem:null,rowItem:null},show:{addMenu:!1,editMenu:!0}}},computed:{sumWidth(){let t=0;return this.modelValue.heads.forEach(i=>{t+=i.width}),t+30+60},fixedLeftWidth(){let t=[],i=0;return this.modelValue.heads.forEach(e=>{t.push(i),e.fixed&&!e.fixedSide&&(i+=e.width)}),t},fixedRightWidth(){let t=[],i=0;return this.modelValue.heads.forEach(e=>{t.push(i),e.fixed&&e.fixedSide&&(i+=e.width)}),t},currentChoosen(){return this.modelValue.rows.filter(t=>t.choosen)},currentChoosenAll(){return this.currentChoosen.length===this.modelValue.rows.length},currentChoosenNum(){return this.currentChoosen.length},choosenBackground(){try{let t=one(this.foreground);return t=t.alpha(.1),t.cssa()}catch{return""}},computedHeadComponent(){return t=>{let i=this.thisExtensions.find(e=>e.type===t);return i?i.headComponent:null}},$theme(){return z(this.$props).theme.value}},mounted(){this.eventInit(),this.extensionsInit()},methods:{eventInit(){window.addEventListener("click",this.outSideClickEvent),window.addEventListener("mouseup",this.cellSelectReleaseEvent),window.addEventListener("touchend",this.cellSelectReleaseEvent),window.addEventListener("keydown",this.cellCopyEvent),window.addEventListener("keydown",this.cellPasteEvent)},outSideClickEvent(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}i=i.parentNode}e||(this.selectPos.start_row=-1,this.selectPos.start_col=-1,this.selectPos.end_row=-1,this.selectPos.end_col=-1)},cellSelectReleaseEvent(){if(this.selectPos.syncActive)if(this.syncRowsFunc)this.syncRowsFunc(this.selectPos);else{let t=this.selectPos.start_row,i=this.selectPos.end_row,e=this.selectPos.start_col,o=this.modelValue.heads[e].key,r=this.modelValue.rows[t][o];if(t>i){let s=t;t=i,i=s}for(let s=t;s<=i;s++)this.modelValue.rows[s][o]=r}this.selectPos.active=!1,this.selectPos.syncActive=!1},cellCopyEvent(t){t.keyCode===67&&t.ctrlKey&&this.copyTableFunc&&this.copyTableFunc(this.selectPos)},cellPasteEvent(t){t.keyCode===86&&t.ctrlKey&&this.pastedTableFunc&&this.pastedTableFunc(this.selectPos)},extensionsInit(){let t={name:"Text",type:"text",icon:"List",emoji:"\u{1F4DD}",headComponent:n.markRaw(Gs),cellComponent:n.markRaw(Us),filter:({input:i,value:e})=>i?e.toLowerCase().indexOf(i.toLowerCase())!==-1:!0,sortAsc:(i,e)=>i.localeCompare(e),sortDesc:(i,e)=>e.localeCompare(i)};this.thisExtensions=[t,Yw,c0,k0,...this.extensions]},duplicateColumn(t){let i=JSON.parse(JSON.stringify(this.modelValue.heads[t])),e=this.modelValue.heads[t];i.__guid=this.GuidWithoutDash(),i.key=e.key+i.__guid,i.name=e.name+" Copy",this.modelValue.heads.splice(t+1,0,i),this.modelValue.rows.forEach(o=>{o[i.key]=o[e.key]})},swapColumn(t,i){let e=this.modelValue.heads.findIndex(s=>s.__guid===t.__guid);if(e===-1)return;let o=this.modelValue.heads[e];this.modelValue.heads.splice(e,1);let r=this.modelValue.heads.findIndex(s=>s.__guid===i.__guid);r!==-1&&this.modelValue.heads.splice(r,0,o)},duplicateRows(){let t=this.currentChoosen;if(t.length===0)return;let i=this.currentChoosen[this.currentChoosen.length-1],e=[];t.forEach(o=>{let r=JSON.parse(JSON.stringify(o));r.__guid=this.GuidWithoutDash(),e.push(r)}),this.clearChooseAll(),this.modelValue.rows.splice(this.modelValue.rows.indexOf(i)+1,0,...e)},addColumn(t){let i={key:t.name,name:t.name,emoji:t.emoji,type:t.type};this.modelValue.heads.push(i)},addRow(t=null){let i={};this.modelValue.heads.forEach(e=>{i[e.key]=""}),t===null?this.modelValue.rows.push(i):this.modelValue.rows.splice(t+1,0,i)},swapRow(t,i){let e=this.modelValue.rows.findIndex(s=>s===t);if(e===-1)return;let o=this.modelValue.rows[e];this.modelValue.rows.splice(e,1);let r=this.modelValue.rows.findIndex(s=>s===i);r!==-1&&this.modelValue.rows.splice(r,0,o)},chooseAll(){let t=!this.currentChoosenAll;this.modelValue.rows.forEach(i=>{i.choosen=t}),this.$emit("choose-items",this.currentChoosen)},clearChooseAll(t=null){this.modelValue.rows.forEach(i=>{t&&i===t||(this.row.choosen=!1)})},setSelectPos(t){const{event_type:i,row_index:e,col_index:o}=t;i==="down"?(this.selectPos.start_row=e,this.selectPos.start_col=o,this.selectPos.end_row=e,this.selectPos.end_col=o,this.selectPos.active=!0):i==="enter"?this.selectPos.active&&(this.selectPos.end_row=e,this.selectPos.syncActive||(this.selectPos.end_col=o)):i==="sync-down"&&(this.selectPos.start_row=e,this.selectPos.start_col=o,this.selectPos.end_row=e,this.selectPos.end_col=o,this.selectPos.active=!0,this.selectPos.syncActive=!0)},thisDeleteColumn(t,i){this.deleteColumnFunc?this.deleteColumnFunc(t,i):this.modelValue.heads.splice(i,1)},thisDeleteRows(){this.deleteRowsFunc&&this.deleteRowsFunc(this.currentChoosen);let t=this.currentChoosen;t.length!==0&&t.forEach(i=>{this.modelValue.rows.splice(this.modelValue.rows.indexOf(i),1)})},handleColumnDrag(t,i){t.stopPropagation(),this.drag.columnItem=i},rowRightClick(t){const{event:i,row:e,clearChoosenAll:o}=t;i.preventDefault(),i.stopPropagation(),o&&this.clearChooseAll(e),this.$refs.rightMenu.rightClick(i,document.body),this.$emit("rightclick",e)},addMenuClick(t,i=!0){t.preventDefault(),t.stopPropagation(),this.$refs.addMenu.rightClick(t,document.body),this.show.addMenu=i,this.show.editMenu=!i},handleSort(t,i=!1){!this.thisExtensions.find(o=>o.type===t)||(i?this.modelValue.sort(this.extension.sortDesc):this.modelValue.sort(this.extension.sortAsc))},GuidWithoutDash(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent),window.removeEventListener("mouseup",this.cellSelectReleaseEvent),window.removeEventListener("touchend",this.cellSelectReleaseEvent),window.removeEventListener("keydown",this.cellCopyEvent),window.removeEventListener("keydown",this.cellPasteEvent)}},{props:{...A,modelValue:{type:Object,default:()=>({})},i18n:{type:Function,default:t=>t},foreground:{default:"rgba(0, 90, 158, 1)"},deleteColumnFunc:{type:Function,default:null},deleteRowsFunc:{type:Function,default:null},copyTableFunc:{type:Function,default:null},pastedTableFunc:{type:Function,default:null},syncRowsFunc:{type:Function,default:null},rightMenuBackground:{default:""},extensions:{default:()=>[]}},emits:["choose-items","rightclick","update:modelValue","update:selectPos","update:dragItem"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-check-box"),s=n.resolveComponent("fv-right-menu");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-TableView",[e.$theme]])},[n.createElementVNode("div",v0,[n.createElementVNode("div",{class:"fv-tableview-head-row",style:n.normalizeStyle({width:e.sumWidth+"px"})},[n.createElementVNode("div",C0,[n.createVNode(r,{modelValue:e.currentChoosenAll,background:t.foreground,theme:e.$theme,onClick:e.chooseAll},null,8,["modelValue","background","theme","onClick"])]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.modelValue.heads,(l,a)=>n.withDirectives((n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.computedHeadComponent(l.type)),{modelValue:l,key:a,index:a,i18n:t.i18n,foreground:t.foreground,fixedLeftWidth:e.fixedLeftWidth[a],fixedRightWidth:e.fixedRightWidth[a],theme:e.$theme,dragItem:e.drag.columnItem,draggable:"true",onDuplicateColumn:e.duplicateColumn,onDragstart:d=>e.handleColumnDrag(d,l),onDragend:o[0]||(o[0]=d=>e.drag.columnItem=null),onDropItem:d=>e.swapColumn(d.drag,l),onDeleteColumn:d=>e.thisDeleteColumn(d,a)},null,40,["modelValue","index","i18n","foreground","fixedLeftWidth","fixedRightWidth","theme","dragItem","onDuplicateColumn","onDragstart","onDropItem","onDeleteColumn"])),[[n.vShow,l.visible]])),128)),n.createElementVNode("div",V0,[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Add fv-tableview-icon-block fade",onClick:o[1]||(o[1]=l=>e.addMenuClick(l))}),n.createElementVNode("i",{class:"ms-Icon ms-Icon--More fv-tableview-icon-block fade",onClick:o[2]||(o[2]=l=>e.addMenuClick(l,!1))})])],4),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.modelValue.rows,(l,a)=>(n.openBlock(),n.createBlock(Os,{key:a,modelValue:t.modelValue,row:l,row_index:a,i18n:t.i18n,selectPos:e.selectPos,foreground:t.foreground,theme:e.$theme,extensions:e.thisExtensions,dragItem:e.drag.rowItem,style:n.normalizeStyle({width:e.sumWidth+"px"}),onUpdateDragItem:o[3]||(o[3]=d=>e.drag.rowItem=d),onDropItem:d=>e.swapRow(d.drag,l),onAddRow:d=>e.addRow(a),onSetSelect:e.setSelectPos,onRightclick:e.rowRightClick},null,8,["modelValue","row","row_index","i18n","selectPos","foreground","theme","extensions","dragItem","style","onDropItem","onAddRow","onSetSelect","onRightclick"]))),128)),n.createElementVNode("div",{class:"fv-tableview-data-row newline",style:n.normalizeStyle({width:e.sumWidth+"px"}),onClick:o[4]||(o[4]=l=>e.addRow())},[S0,n.createElementVNode("p",$0,n.toDisplayString(t.i18n("New Line")),1)],4)]),n.createVNode(s,{ref:"rightMenu",theme:e.$theme,rightMenuWidth:220,background:t.rightMenuBackground,fullExpandAnimation:!0,style:{"z-index":"5"}},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"menu",{},()=>[n.createElementVNode("span",{onClick:o[5]||(o[5]=l=>e.thisDeleteRows())},[E0,n.createElementVNode("p",null,n.toDisplayString(t.i18n("Delete")),1)]),n.createElementVNode("span",{onClick:o[6]||(o[6]=l=>e.duplicateRows())},[x0,n.createElementVNode("p",null,n.toDisplayString(t.i18n("Duplicate")),1)])])]),_:3},8,["theme","background"]),n.createVNode(s,{ref:"addMenu",theme:e.$theme,rightMenuWidth:220,background:t.rightMenuBackground,fullExpandAnimation:!0,style:{"z-index":"5"}},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"menu",{},()=>[n.withDirectives(n.createVNode(As,{extensions:e.thisExtensions,i18n:t.i18n,foreground:t.foreground,theme:e.$theme,onAddColumn:e.addColumn},null,8,["extensions","i18n","foreground","theme","onAddColumn"]),[[n.vShow,e.show.addMenu]]),n.withDirectives(n.createVNode(Ws,{modelValue:t.modelValue,heads:t.modelValue.heads,extensions:e.thisExtensions,i18n:t.i18n,foreground:t.foreground,theme:e.$theme,onAddClick:o[7]||(o[7]=l=>{e.show.editMenu=!1,e.show.addMenu=!0})},null,8,["modelValue","heads","extensions","i18n","foreground","theme"]),[[n.vShow,e.show.editMenu]])])]),_:3},8,["theme","background"])],2)}}}),Ys=W(T0),oC="",rC="",sC="",js=W(Us),lC="",aC="",dC="",Xs=W(Gs),hC="",uC="",cC="",D0=["onClick"],I0={class:"fv-tag-default-content"},B0={class:"fv-tag-icon"},N0=["onClick"],L0={class:"fv-tag-icon"},F0=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Add fv-tag-icon-btn"},null,-1)],M0={class:"fv-tag-content"},P0={class:"fv-tag-default-content"},R0=Object.assign({name:"FvTag",data(){return{thisValue:this.modelValue,inputValue:"",edit:!1}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)},edit(){this.inputValue!==""&&this.addTag()}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent),window.addEventListener("touchend",this.outSideClickEvent)},outSideClickEvent(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$refs.add){e=!0;break}i=i.parentNode}e||(this.edit=!1)},editable(){this.edit=!0,setTimeout(()=>{this.$refs.edit.focus()},10)},addTag(){this.thisValue.push({text:this.inputValue}),this.inputValue="",this.$emit("add-item",{text:this.inputValue})},delTag(t){let i=this.thisValue.indexOf(t);this.thisValue.splice(i,1),this.$emit("del-item",t)},getColor(t){return t=kt(t),this.$theme=="dark"?{background:t.alpha(1).cssa(),borderColor:t.alpha(1).cssa(),color:"whitesmoke"}:{background:t.alpha(.1).cssa(),borderColor:t.alpha(.1).cssa(),color:t.alpha(1).cssa()}}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent),window.removeEventListener("touchend",this.outSideClickEvent)}},{props:{...A,modelValue:{default:()=>[]},newTagPlaceholder:{default:"New Tag"},size:{default:""},newTagBackground:{default:null},fontSize:{default:""},isNewTag:{default:!1},isDel:{default:!1}},emits:["update:modelValue","add-item","del-item","tag-click"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-text-box");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Tag",[e.$theme]])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.thisValue,(s,l)=>(n.openBlock(),n.createElementBlock("div",{key:l,class:n.normalizeClass(["fv-tag-item",[s.type?s.type:"",t.size,{disabled:s.disabled}]]),style:n.normalizeStyle({background:s.background?e.getColor(s.background).background:"",borderColor:s.background?e.getColor(s.background).borderColor:"",color:s.background?e.getColor(s.background).color:""}),onClick:a=>e.$emit("tag-click",s)},[n.createElementVNode("span",{class:"fv-tag-content",style:n.normalizeStyle({"font-size":t.fontSize+"px"})},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("p",I0,n.toDisplayString(s.text),1)])],4),n.withDirectives(n.createElementVNode("div",B0,[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel fv-tag-icon-btn",onClick:a=>e.delTag(s)},null,8,N0)],512),[[n.vShow,t.isDel&&!s.disabled]])],14,D0))),128)),n.withDirectives(n.createElementVNode("div",{ref:"add",class:n.normalizeClass(["fv-tag-item controller",[t.size]]),style:n.normalizeStyle({background:t.newTagBackground?e.getColor(t.newTagBackground).background:"",borderColor:t.newTagBackground?e.getColor(t.newTagBackground).borderColor:"",color:t.newTagBackground?e.getColor(t.newTagBackground).color:""}),onClick:o[1]||(o[1]=(...s)=>e.editable&&e.editable(...s))},[n.withDirectives(n.createElementVNode("div",L0,F0,512),[[n.vShow,!e.edit]]),n.withDirectives(n.createElementVNode("span",M0,[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("p",P0,n.toDisplayString(t.newTagPlaceholder),1)])],512),[[n.vShow,!e.edit]]),n.withDirectives(n.createVNode(r,{modelValue:e.inputValue,"onUpdate:modelValue":o[0]||(o[0]=s=>e.inputValue=s),ref:"edit",background:"transparent","border-color":"transparent","focus-border-color":"transparent",placeholder:t.newTagPlaceholder,style:{width:"auto"},onKeydown:n.withKeys(e.addTag,["enter"])},null,8,["modelValue","placeholder","onKeydown"]),[[n.vShow,e.edit]])],6),[[n.vShow,t.isNewTag]])],2)}}}),qs=W(R0),gC="",pC="",wC="",_0={emits:["update:modelValue","keydown","keyup","change","paste","focus","blur"],props:{modelValue:{type:Array,default:()=>[]},inputmode:{default:"text"},type:{default:"text"},mask:{type:String,default:"mask:___"},flag:{type:String,default:"_"},pattern:{type:String,default:"[Ss]*"},readonly:{default:!1},disabled:{default:!1},fontSize:{default:13.3},fontWeight:{default:"normal"},foreground:{default:""},textAlign:{default:"left"},cursor:{default:""},theme:{type:String,default:"global"}},data(){return{thisValue:[],currentPos:0,thisPattern:new RegExp(this.pattern)}},watch:{modelValue(t){this.syncValue(t)},mask(t){this.thisValueInit()},flag(t){this.thisValueInit()},pattern(t){this.thisPattern=new RegExp(t)}},computed:{$theme(){return z(this.$props).theme.value},maxLength(){let t=0;for(let i=0;i<this.mask.length;i++)this.mask[i]==this.flag&&t++;return t},renderText(){this.mask;let t=0,i="";for(let e=0;e<this.mask.length;e++)if(this.mask[e]==this.flag){if(t>=this.thisValue.length)break;this.thisValue[t].content!==""?i+=this.thisValue[t].content:i+=this.mask[e],t++}else i+=this.mask[e];return i},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}},mounted(){this.thisValueInit(),this.syncValue(this.modelValue),this.thisPattern=new RegExp(this.pattern),this.$refs.input.addEventListener("paste",t=>{let i=t.clipboardData.getData("text/plain"),e=0;for(let o=0;o<i.length;o++)i[o].match(this.thisPattern)&&e<this.thisValue.length&&(this.thisValue[e].content=i[o],e++,this.currentPos=this.thisValue[e].index+1)})},methods:{thisValueInit(){this.thisValue=[];for(let t=0;t<this.mask.length;t++)this.mask[t]==this.flag&&this.thisValue.push({index:t,content:""});this.flag.length!=1&&console.warn("TextBox's flag should only contain 1 char."),this.$refs.input.value=this.renderText},syncValue(t){for(let i=0;i<this.thisValue.length;i++)i<t.length?this.thisValue[i]={index:this.thisValue[i].index,content:t[i]}:this.thisValue[i]={index:this.thisValue[i].index,content:""};this.$refs.input.value=this.renderText},keyDown(t){this.$emit("keydown",t);let i=t.keyCode,e=-1,o=this.$refs.input.selectionStart,r=this.$refs.input.selectionEnd,s=this.clearRange(o,r);for(let l=o-1;l>=0;l--)this.mask[l]==this.flag&&e++;if(this.isInputCode(i)&&!t.crtlKey){if(!this.thisPattern.test(t.key))return 0;e<this.thisValue.length-1&&(this.thisValue[e+1]={index:this.thisValue[e+1].index,content:t.key},this.currentPos=this.thisValue[e+1].index+1)}else if(i==8){if(s)return 0;e>-1&&(this.thisValue[e]={index:this.thisValue[e].index,content:""},this.currentPos=this.thisValue[e].index)}},isInputCode(t){let i=[[48,57],[65,90],[96,107],[109,111],[186,222]];for(let e of i)if(t>=e[0]&&t<=e[1])return!0;return!1},clearRange(t,i){if(i-t==0)return 0;let e=0;for(let o=this.thisValue.length-1;o>=0;o--)this.thisValue[o].index+1>t&&this.thisValue[o].index+1<=i&&(this.thisValue[o]={index:this.thisValue[o].index,content:""},e=o);return this.currentPos=this.thisValue[e].index,!0},input(t){t.target.value=this.renderText,this.$refs.input.setSelectionRange(this.currentPos,this.currentPos);let i=[];for(let e=0;e<this.thisValue.length;e++)i.push(this.thisValue[e].content);this.$emit("update:modelValue",i)},focusInspect(){this.$refs.input.focus()}}},z0={class:"text-box-container internal"},O0=["inputmode","type","readonly","disabled"];function A0(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",z0,[n.createElementVNode("input",{inputmode:e.inputmode,type:e.type,class:"fv-text-box-input",readonly:s.isReadOnly,disabled:s.isDisabled,ref:"input",style:n.normalizeStyle({"font-size":`${e.fontSize}px`,"font-weight":e.fontWeight,color:e.foreground,"text-align":e.textAlign,cursor:e.cursor}),onInput:i[0]||(i[0]=(...l)=>s.input&&s.input(...l)),onKeydown:i[1]||(i[1]=(...l)=>s.keyDown&&s.keyDown(...l)),onKeyup:i[2]||(i[2]=l=>t.$emit("keyup",l)),onChange:i[3]||(i[3]=l=>t.$emit("change",l)),onPaste:i[4]||(i[4]=l=>t.$emit("paste",l)),onFocus:i[5]||(i[5]=l=>t.$emit("focus",!0)),onBlur:i[6]||(i[6]=l=>t.$emit("blur",!1))},null,44,O0)])}const W0={components:{maskInput:q(_0,[["render",A0]])},emits:["update:modelValue","update:focus","keydown","keyup","change","paste","focus","blur"],props:{modelValue:{default:""},mode:{default:"default"},inputmode:{default:"text"},placeholder:{default:""},type:{default:"text"},mask:{type:String,default:"mask:___"},flag:{type:String,default:"_"},pattern:{type:String,default:"[Ss]*"},inputRules:{type:String,default:"[Ss]*"},readonly:{default:!1},focus:{default:!1},maxlength:{default:""},disabled:{default:!1},fontSize:{default:13.3},fontWeight:{default:"normal"},foreground:{default:""},textAlign:{default:"left"},cursor:{default:""},theme:{type:String,default:"global"}},data(){return{thisValue:(typeof this.modelValue).toString()=="string"?this.modelValue:"",thisMaskValue:(typeof this.modelValue).toString()=="object"?this.modelValue:[],thisPattern:new RegExp(this.partten),thisInputRules:new RegExp(this.inputRules)}},watch:{modelValue(t){(typeof t).toString()=="string"?this.thisValue=t:this.thisMaskValue=t},mode(t){t=="default"?this.thisValue="":this.thisMaskValue=[]},thisValue(t,i){!t||this.thisInputRules.test(t)?this.$emit("update:modelValue",t):t=i},thisMaskValue(t){this.$emit("update:modelValue",t)},pattern(t){this.thisPattern=new RegExp(t)},inputRules(t){this.thisInputRules=new RegExp(t)}},computed:{$theme(){return z(this.$props).theme.value},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}},mounted(){this.thisPattern=new RegExp(this.pattern),this.thisInputRules=new RegExp(this.inputRules)},methods:{keyDown(t){this.$emit("keydown",t),t.key&&(t.key.length>1||this.thisPattern.test(t.key)||t.preventDefault())},focusInspect(){this.mode=="mask"?this.$refs.mask_input.focusInspect():this.$refs.input.focus()}}},H0={class:"text-box-container"},G0=["inputmode","type","placeholder","readonly","disabled","maxlength"];function U0(t,i,e,o,r,s){const l=n.resolveComponent("mask-input");return n.openBlock(),n.createElementBlock("div",H0,[e.mode=="default"?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,"onUpdate:modelValue":i[0]||(i[0]=a=>r.thisValue=a),inputmode:e.inputmode,type:e.type,placeholder:e.placeholder,class:"fv-text-box-input",readonly:s.isReadOnly,disabled:s.isDisabled,maxlength:e.maxlength,ref:"input",style:n.normalizeStyle({"font-size":`${e.fontSize}px`,"font-weight":e.fontWeight,color:e.foreground,"text-align":e.textAlign,cursor:e.cursor}),onKeydown:i[1]||(i[1]=(...a)=>s.keyDown&&s.keyDown(...a)),onKeyup:i[2]||(i[2]=a=>t.$emit("keyup",a)),onChange:i[3]||(i[3]=a=>t.$emit("change",a)),onPaste:i[4]||(i[4]=a=>t.$emit("paste",a)),onFocus:i[5]||(i[5]=a=>t.$emit("update:focus",!0)),onBlur:i[6]||(i[6]=a=>t.$emit("update:focus",!1))},null,44,G0)),[[n.vModelDynamic,r.thisValue]]):n.createCommentVNode("",!0),e.mode=="mask"?(n.openBlock(),n.createBlock(l,{key:1,ref:"mask_input",modelValue:r.thisMaskValue,"onUpdate:modelValue":i[7]||(i[7]=a=>r.thisMaskValue=a),inputmode:e.inputmode,type:e.type,placeholder:e.placeholder,mask:e.mask,flag:e.flag,pattern:e.pattern,readonly:s.isReadOnly,disabled:s.isDisabled,fontSize:e.fontSize,fontWeight:e.fontWeight,textAlign:e.textAlign,cursor:e.cursor,onKeydown:i[8]||(i[8]=a=>t.$emit("keydown",a)),onKeyup:i[9]||(i[9]=a=>t.$emit("keyup",a)),onChange:i[10]||(i[10]=a=>t.$emit("change",a)),onPaste:i[11]||(i[11]=a=>t.$emit("paste",a)),onFocus:i[12]||(i[12]=a=>t.$emit("update:focus",!0)),onBlur:i[13]||(i[13]=a=>t.$emit("update:focus",!1))},null,8,["modelValue","inputmode","type","placeholder","mask","flag","pattern","readonly","disabled","fontSize","fontWeight","textAlign","cursor"])):n.createCommentVNode("",!0)])}const Ks=q(W0,[["render",U0]]),Y0={class:"fix-block"},j0={class:"fix-block"},X0=Object.assign({name:"FvTextBox",components:{coreInput:Ks},data(){return{thisValue:this.modelValue.toString(),isFocus:!1,timer:{debounce:null}}},watch:{modelValue(t){this.thisValue=t.toString()},thisValue(t){clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{this.$emit("debounce-input",this.thisValue)},this.debounceDelay),this.$emit("update:modelValue",t)}},computed:{$theme(){return z(this.$props).theme.value},isUnderline(){return this.underline.toString()=="true"||this.underline=="underline"||this.underline===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"}},mounted(){},methods:{focus(){this.$refs.core.focusInspect()}}},{props:{...A,modelValue:{default:""},mode:{default:"default"},inputmode:{default:"text"},placeholder:{default:""},type:{default:"text"},mask:{type:String,default:"mask:___"},flag:{type:String,default:"_"},pattern:{type:String,default:"[Ss]*"},inputRules:{type:String,default:"[Ss]*"},readonly:{default:!1},maxlength:{default:""},prefix:{default:""},suffix:{default:""},leftIcon:{default:""},icon:{default:""},iconForeground:{default:""},underline:{default:!1},background:{default:""},borderWidth:{default:1},borderColor:{default:""},focusBorderColor:{default:""},fontSize:{default:13.3},fontWeight:{default:"normal"},foreground:{default:""},borderRadius:{default:3},textAlign:{default:"left"},isBoxShadow:{default:!1},revealBorder:{default:!1},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},status:{default:""},debounceDelay:{default:300},cursor:{default:""},disabled:{default:!1}},emits:["update:modelValue","debounce-input","keydown","keyup","change","paste","left-icon-click","icon-click","click"],setup(t,{expose:i,emit:e}){const o=n.ref(null);return i({focus:()=>{o.value.focusInspect()}}),(s,l)=>{const a=n.resolveComponent("fv-reveal-container");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-TextBox",[s.$theme,t.status,s.isFocus?"focus":"",s.isDisabled?"disabled":"",s.isUnderline?"underline":"",{shadow:t.isBoxShadow}]]),style:n.normalizeStyle([{background:t.background,borderRadius:`${t.borderRadius}px`}]),onClick:l[8]||(l[8]=d=>{s.isFocus=!0,s.$emit("click",d)})},[n.createVNode(a,{parent:()=>s.$el,class:"fv-text-box-reveal-container",backgroundColor:s.backgroundLightColor,borderColor:s.borderLightColor,backgroundGradientSize:120,borderGradientSize:60,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:s.isDisabled||!t.revealBorder},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),n.createElementVNode("div",{class:"fv-text-box-wrapper-container",style:n.normalizeStyle({borderWidth:`${t.borderWidth}px`,borderColor:s.isFocus?t.focusBorderColor:t.borderColor,borderRadius:`${t.borderRadius}px`})},[n.withDirectives(n.createElementVNode("div",Y0,[n.createElementVNode("p",null,n.toDisplayString(t.prefix),1)],512),[[n.vShow,t.prefix!=""]]),n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${t.leftIcon}`]]),style:n.normalizeStyle({color:t.iconForeground}),onClick:l[0]||(l[0]=d=>s.$emit("left-icon-click",d))},null,6),[[n.vShow,t.leftIcon!=""]]),n.createVNode(Ks,{modelValue:s.thisValue,"onUpdate:modelValue":l[1]||(l[1]=d=>s.thisValue=d),ref_key:"core",ref:o,mode:t.mode,inputmode:t.inputmode,type:t.type,placeholder:t.placeholder,mask:t.mask,flag:t.flag,pattern:t.pattern,inputRules:t.inputRules,readonly:t.readonly,maxlength:t.maxlength,disabled:t.disabled,fontSize:t.fontSize,fontWeight:t.fontWeight,foreground:t.foreground,textAlign:t.textAlign,cursor:t.cursor,focus:s.isFocus,"onUpdate:focus":l[2]||(l[2]=d=>s.isFocus=d),onKeydown:l[3]||(l[3]=d=>s.$emit("keydown",d)),onKeyup:l[4]||(l[4]=d=>s.$emit("keyup",d)),onChange:l[5]||(l[5]=d=>s.$emit("change",d)),onPaste:l[6]||(l[6]=d=>s.$emit("paste",d))},null,8,["modelValue","mode","inputmode","type","placeholder","mask","flag","pattern","inputRules","readonly","maxlength","disabled","fontSize","fontWeight","foreground","textAlign","cursor","focus"]),n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${t.icon}`]]),style:n.normalizeStyle({color:t.iconForeground}),onClick:l[7]||(l[7]=d=>s.$emit("icon-click",d))},null,6),[[n.vShow,t.icon!=""]]),n.withDirectives(n.createElementVNode("div",j0,[n.createElementVNode("p",null,n.toDisplayString(t.suffix),1)],512),[[n.vShow,t.suffix!=""]])],4)],6)}}}),Js=W(X0),kC="",vC="",CC="",q0=["placeholder","readonly","disabled","maxlength"],K0=Object.assign({name:"FvTextField",data(){return{thisValue:(typeof this.modelValue).toString()=="string"?this.modelValue:"",isFocus:!1}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)}},computed:{$theme(){return z(this.$props).theme.value},isUnderline(){return this.underline.toString()=="true"||this.underline=="underline"||this.underline===""},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"}},mounted(){},methods:{focus(t,i){this.isFocus=t,t?this.$emit("focus",i):this.$emit("blur",i)}}},{props:{...A,modelValue:{default:""},readonly:{default:!1},placeholder:{default:""},maxlength:{default:""},disabled:{default:!1},underline:{default:!1},background:{default:""},borderWidth:{default:1},borderColor:{default:""},focusBorderColor:{default:""},fontSize:{default:13.8},fontWeight:{default:"normal"},foreground:{default:""},textAlign:{default:"left"},borderRadius:{default:3},isBoxShadow:{default:!1},revealBorder:{default:!1},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},status:{default:""}},emits:["update:modelValue","focus","blur","keydown","keyup","change","paste"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-reveal-container");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-TextField",[e.$theme,t.status,{focus:e.isFocus},{disabled:e.isDisabled},{underline:e.isUnderline},{shadow:t.isBoxShadow}]]),style:n.normalizeStyle([{background:t.background,borderRadius:`${t.borderRadius}px`}])},[n.createVNode(r,{parent:()=>e.$el,class:"fv-text-field-reveal-container",backgroundColor:e.backgroundLightColor,borderColor:e.borderLightColor,backgroundGradientSize:120,borderGradientSize:60,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:e.isDisabled||!t.revealBorder},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),n.createElementVNode("div",{class:"text-field-wrapper-container",style:n.normalizeStyle({borderWidth:`${t.borderWidth}px`,borderColor:e.isFocus?t.focusBorderColor:t.borderColor,borderRadius:`${t.borderRadius}px`})},[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":o[0]||(o[0]=s=>e.thisValue=s),placeholder:t.placeholder,class:"fv-text-field-input",readonly:e.isReadOnly,disabled:e.isDisabled,maxlength:t.maxlength,style:n.normalizeStyle({"font-size":`${t.fontSize}px`,"font-weight":t.fontWeight,color:t.foreground,"text-align":t.textAlign}),onKeydown:o[1]||(o[1]=s=>e.$emit("keydown",s)),onKeyup:o[2]||(o[2]=s=>e.$emit("keyup",s)),onChange:o[3]||(o[3]=s=>e.$emit("change",s)),onPaste:o[4]||(o[4]=s=>e.$emit("paste",s)),onFocus:o[5]||(o[5]=s=>e.focus(!0,s)),onBlur:o[6]||(o[6]=s=>e.focus(!1,s))},null,44,q0),[[n.vModelText,e.thisValue]])],4)],6)}}}),Qs=W(K0),SC="",$C="",EC="",J0=["value"],Q0=["value"],Z0=["value"],eb={class:"fv-time-picker-options-body"},tb=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretUpSolid8"},null,-1)],ib={class:"fv-time-picker-options-body-items swiper",ref:"hour"},nb=[n.createElementVNode("div",{class:"swiper-wrapper"},null,-1)],ob=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretDownSolid8"},null,-1)],rb=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretUpSolid8"},null,-1)],sb={class:"fv-time-picker-options-body-items swiper",ref:"minute"},lb={class:"swiper-wrapper"},ab={class:"fv-time-picker-options-body-item swiper-slide"},db=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretDownSolid8"},null,-1)],hb={class:"fv-time-picker-options-body-col"},ub=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretUpSolid8"},null,-1)],cb={class:"fv-time-picker-options-body-items swiper",ref:"period"},fb={class:"swiper-wrapper"},mb={class:"fv-time-picker-options-body-item swiper-slide"},gb=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretDownSolid8"},null,-1)],pb={class:"fv-time-picker-options-bar"},wb=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Accept"},null,-1)],bb=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel"},null,-1)];oe.use([Ur]);const yb=Object.assign({name:"FvTimePicker",data(){return{show:!1,thisValue:new Date(this.modelValue),hourSwiper:null,minuteSwiper:null,periodSwiper:null,timer:{debounce:null},scrollCount:{hour:0,minute:0}}},watch:{show(t){t&&this.$nextTick(()=>{this.syncTime()})},modelValue(){this.thisValue=this.modelValue},thisValue(){this.$emit("update:modelValue",this.thisValue),this.$emit("change",new Date(this.thisValue))},timeType(){this.hourSwiper.virtual.cache=[],this.hourSwiper.virtual.slides=this.virtualHourList,this.hourSwiper.virtual.update(),this.syncTime()}},computed:{$theme(){return z(this.$props).theme.value},hourList(){let t=[];if(this.timeType==12){for(let i=0;i<12;i++)t.push(i+1);return t}for(let i=0;i<24;i++)t.push(i);return t},virtualHourList(){let t=[];for(let i=0;i<30;i++)t=t.concat(this.hourList);return t},minuteList(){let t=[];for(let i=0;i<60;i++)t.push(i);return t}},mounted(){this.init(),this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent),window.addEventListener("touchend",this.outSideClickEvent)},outSideClickEvent(t){t.composedPath().includes(this.$el)||(this.show=!1)},init(){const t={direction:"vertical",slidesPerView:9,centeredSlides:!0,speed:100,on:{click(i,e){const o=i.clickedIndex,r=i.clickedSlide;o!=null&&r&&i.slideTo(o)}}};this.hourSwiper=new oe(this.$refs.hour,{...t,initialSlide:this.timeType==12?this.decodeTime(0)-1:this.decodeTime(0),freeMode:{momentum:!0,sticky:!0},virtual:{slides:this.virtualHourList,renderSlide:(i,e)=>`<div class="fv-time-picker-options-body-item swiper-slide">
34
34
  ${this.showItem(i)}
35
35
  </div>`}}),this.minuteSwiper=new oe(this.$refs.minute,{...t,initialSlide:this.decodeTime(1),loop:!0,loopAdditionalSlides:this.minuteList.length}),this.periodSwiper=new oe(this.$refs.period,{...t,initialSlide:this.decodeTime(2),mousewheel:{sensitivity:.4},resistanceRatio:0}),this.$refs.hour.addEventListener("wheel",i=>{i.preventDefault();let e=i.deltaY;e=parseInt(e/100),this.scrollCount.hour+=e,this.scrollDispatch(this.hourSwiper,"hour")}),this.$refs.minute.addEventListener("wheel",i=>{i.preventDefault();let e=i.deltaY;e=parseInt(e/100),this.scrollCount.minute+=e,this.scrollDispatch(this.minuteSwiper,"minute")})},focus(){this.disabled||(this.show=!0)},decodeTime(t){if(t===0){let i=this.timeType==12?12:24,e=this.thisValue.getHours()%i;return this.timeType==12&&e===0?12:e}else return t===1?this.thisValue.getMinutes():this.thisValue.getHours()>11?1:0},showTime(t){let i=this.decodeTime(t);return i<10?`0${i}`:i},showItem(t){return parseFloat(t).toString()==="NaN"?t:t<10?`0${t}`:t},syncTime(){this.minuteSwiper.slideToLoop(this.decodeTime(1),0),this.timeType==12?(this.hourSwiper.slideToLoop(15*this.hourList.length+this.decodeTime(0)-1,0),this.periodSwiper.slideTo(this.decodeTime(2),0)):this.hourSwiper.slideToLoop(15*this.hourList.length+this.decodeTime(0),0)},accept(){let t=this.hourSwiper.realIndex%this.hourList.length,i=this.minuteSwiper.realIndex%this.minuteList.length;this.timeType===12&&(t=t+1,this.periodSwiper.realIndex==1?t!==12&&(t=(t+12)%24):t===12&&(t=0));let e=this.secondType=="same"?this.thisValue.getSeconds():this.secondType=="zero"?0:59,o=new Date(this.thisValue);o.setHours(t),o.setMinutes(i),o.setSeconds(e),this.thisValue=new Date(o),this.show=!1},scrollDispatch(t,i){clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{this.scrollExec(t,i),this.scrollCount[i]=0},20)},scrollExec(t,i){let e=this.scrollCount[i];e=e>3?3:e;let o=t.realIndex;o=o+e,t.slideToLoop(o)}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent),window.removeEventListener("touchend",this.outSideClickEvent)}},{props:{...A,timeType:{type:Number,default:12},modelValue:{type:Date,default:()=>new Date},period:{type:Array,default:()=>["A.M.","P.M."]},inputBackground:{default:""},innerBorderColor:{type:String,default:"rgba(200, 200, 200, 0.3)"},selectedBackground:{default:""},optionBackground:{default:""},slideBtnBackground:{default:""},secondType:{default:"same"},disabled:{type:Boolean,default:!1},hoverColor:{type:String,default:void 0}},emits:["update:modelValue","change"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-TimePicker",[e.$theme,{disabled:t.disabled}]]),style:n.normalizeStyle({"--hover-color":t.hoverColor})},[n.createElementVNode("div",{class:"fv-time-picker-input",style:n.normalizeStyle({background:t.inputBackground}),onClick:o[0]||(o[0]=r=>e.focus())},[n.createElementVNode("input",{value:e.showTime(0),readonly:"",class:"fv-time-picker-input-item"},null,8,J0),n.createElementVNode("input",{value:e.showTime(1),readonly:"",class:"fv-time-picker-input-item",style:n.normalizeStyle({borderColor:t.innerBorderColor})},null,12,Q0),n.withDirectives(n.createElementVNode("input",{value:t.period[e.decodeTime(2)],readonly:"",style:n.normalizeStyle({borderColor:t.innerBorderColor}),class:"fv-time-picker-input-item"},null,12,Z0),[[n.vShow,t.timeType==12]])],4),n.createVNode(n.Transition,{name:"fv-time-picker-options"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:"fv-time-picker-options",style:n.normalizeStyle({background:t.optionBackground})},[n.createElementVNode("div",eb,[n.createElementVNode("div",{class:"fv-time-picker-options-body-mask",style:n.normalizeStyle({background:t.selectedBackground})},null,4),n.createElementVNode("div",{class:"fv-time-picker-options-body-col",style:n.normalizeStyle({borderColor:t.innerBorderColor})},[n.createElementVNode("div",{class:"fv-time-picker-options-body-col-up",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[1]||(o[1]=r=>e.hourSwiper.slidePrev())},tb,4),n.createElementVNode("div",ib,nb,512),n.createElementVNode("div",{class:"fv-time-picker-options-body-col-down",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[2]||(o[2]=r=>e.hourSwiper.slideNext())},ob,4)],4),n.createElementVNode("div",{class:"fv-time-picker-options-body-col",style:n.normalizeStyle({borderColor:t.innerBorderColor})},[n.createElementVNode("div",{class:"fv-time-picker-options-body-col-up",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[3]||(o[3]=r=>e.minuteSwiper.slidePrev())},rb,4),n.createElementVNode("div",sb,[n.createElementVNode("div",lb,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.minuteList,(r,s)=>(n.openBlock(),n.createElementBlock("div",ab,n.toDisplayString(e.showItem(r)),1))),256))])],512),n.createElementVNode("div",{class:"fv-time-picker-options-body-col-down",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[4]||(o[4]=r=>e.minuteSwiper.slideNext())},db,4)],4),n.withDirectives(n.createElementVNode("div",hb,[n.createElementVNode("div",{class:"fv-time-picker-options-body-col-up",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[5]||(o[5]=r=>e.periodSwiper.slidePrev())},ub,4),n.createElementVNode("div",cb,[n.createElementVNode("div",fb,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.period,(r,s)=>(n.openBlock(),n.createElementBlock("div",mb,n.toDisplayString(r),1))),256))])],512),n.createElementVNode("div",{class:"fv-time-picker-options-body-col-down",style:n.normalizeStyle({background:t.slideBtnBackground}),onClick:o[6]||(o[6]=r=>e.periodSwiper.slideNext())},gb,4)],512),[[n.vShow,t.timeType==12]])]),n.createElementVNode("div",pb,[n.createElementVNode("button",{class:"fv-time-picker-options-bar-accept",onClick:o[7]||(o[7]=(...r)=>e.accept&&e.accept(...r))},wb),n.createElementVNode("button",{class:"fv-time-picker-options-bar-cancel",onClick:o[8]||(o[8]=r=>e.show=!1)},bb)])],4),[[n.vShow,e.show]])]),_:1})],6))}}),Zs=W(yb),RC="",_C="",zC="",kb={emits:["mousedown","mouseup","touchstart","touchend","mousemove","touchmove"],props:{value:{default:!1},left:{default:5},ringBackground:{default:""},theme:{type:String,default:"global"}},data(){return{thisValue:this.value,moveable:!1}},watch:{value(t){this.thisValue=t}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.Init()},methods:{Init(){window.addEventListener("mousemove",t=>{this.moveable&&this.$emit("mousemove",t)}),window.addEventListener("mouseup",t=>{this.moveable&&this.stop()}),window.addEventListener("touchmove",t=>{this.moveable&&this.$emit("touchmove",t)}),window.addEventListener("touchend",t=>{this.moveable&&this.stop()})},forward(t){t.preventDefault(),this.moveable=!0,t.type==="mousedown"?this.$emit("mousedown",t):this.$emit("touchstart",t)},stop(t){this.moveable=!1,t&&(t.type==="mouseup"?this.$emit("mouseup",t):this.$emit("touchend",t))}}};function vb(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",{class:"fv-toggle-ring",style:n.normalizeStyle({left:r.moveable?`${e.left}px`:"",background:e.value?"":e.ringBackground}),onMousedown:i[0]||(i[0]=(...l)=>s.forward&&s.forward(...l)),onMouseup:i[1]||(i[1]=(...l)=>s.stop&&s.stop(...l)),onTouchstart:i[2]||(i[2]=(...l)=>s.forward&&s.forward(...l)),onTouchend:i[3]||(i[3]=(...l)=>s.stop&&s.stop(...l))},null,36)}const el=q(kb,[["render",vb]]),Cb=Object.assign({name:"FvToggleSwitch",components:{toggleRing:el},data(){return{thisValue:this.modelValue,disX:0,mouseMove:!1,currentLeft:0,toggleLeft:""}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)},currentLeft(){this.toggleLeft=this.computedLeft}},computed:{$theme(){return z(this.$props).theme.value},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},computedLeft(){return!this.$refs.border||this.currentLeft<5?5:this.currentLeft>this.$refs.border.clientWidth-17?this.$refs.border.clientWidth-17:this.currentLeft},finalWidth(){return isNaN(this.width)?this.width:`${this.width}px`},finalHeight(){return isNaN(this.height)?this.height:`${this.height}px`}},methods:{toggleDown(t){this.isDisabled||(t.type.indexOf("mouse")<0&&(t=t.targetTouches[0]),this.disX=t.clientX-this.$refs.toggle.$el.offsetLeft)},toggleMove(t){this.isDisabled||(t.type.indexOf("mouse")<0&&(t=t.targetTouches[0]),this.mouseMove=!0,this.currentLeft=t.clientX-this.disX)},toggleUp(t){t.stopPropagation(),!this.isDisabled&&(this.mouseMove?this.$refs.toggle.$el.offsetLeft+this.$refs.toggle.$el.clientWidth/2>this.$refs.border.clientWidth/2?this.thisValue=!0:this.thisValue=!1:this.thisValue=!this.thisValue,this.mouseMove=!1,this.$emit("toggle",this.thisValue),this.currentLeft=this.$refs.toggle.$el.offsetLeft,this.disX=0)},toggle(t){this.isDisabled||(this.thisValue=!this.thisValue,this.$emit("toggle",this.thisValue))}}},{props:{...A,modelValue:{default:!1},on:{default:"On"},off:{default:"Off"},onForeground:{default:""},offForeground:{default:""},width:{default:40},height:{default:20},borderColor:{default:""},ringBackground:{default:""},switchOnBackground:{default:""},insideContent:{default:!1},disabled:{default:!1}},setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-ToggleSwitch",[e.$theme,e.isDisabled?"disabled":""]]),onMouseup:o[0]||(o[0]=(...r)=>e.toggle&&e.toggle(...r))},[n.createElementVNode("div",{class:n.normalizeClass(["fv-toggle-border",{"toggle-on":e.thisValue}]),ref:"border",style:n.normalizeStyle([{width:e.finalWidth,height:e.finalHeight,background:e.thisValue?t.switchOnBackground:"",borderColor:e.thisValue?"":t.borderColor}])},[n.createVNode(el,{value:e.thisValue,left:e.toggleLeft,ringBackground:t.ringBackground,theme:e.$theme,ref:"toggle",onMousedown:e.toggleDown,onTouchstart:e.toggleDown,onMousemove:e.toggleMove,onTouchmove:e.toggleMove,onMouseup:e.toggleUp,onTouchend:e.toggleUp},null,8,["value","left","ringBackground","theme","onMousedown","onTouchstart","onMousemove","onTouchmove","onMouseup","onTouchend"]),n.withDirectives(n.createElementVNode("p",{class:"fv-toggle-inside-content",style:n.normalizeStyle({left:e.thisValue?"10px":"",right:e.thisValue?"":"10px",color:e.thisValue?"white":t.offForeground})},n.toDisplayString(e.thisValue?t.on:t.off),5),[[n.vShow,t.insideContent]])],6),n.withDirectives(n.createElementVNode("p",{class:"fv-toggle-content",style:n.normalizeStyle({color:e.thisValue?t.onForeground:t.offForeground})},n.toDisplayString(e.thisValue?t.on:t.off),5),[[n.vShow,!t.insideContent]])],34))}}),tl=W(Cb),AC="",WC="",HC="",Vb={name:"TreeViewItem",emits:["require-render","selected-change","set-drag-item","drop-item","handle-click","item-drag-over","item-drag-leave","item-drop"],props:{modelValue:{type:Object,default:()=>({})},parent:{type:Object,default:()=>({})},kIndex:{default:0},deep:{default:0},space:{default:20},expandClickMode:{default:"icon"},backgroundColorHover:{default:""},backgroundColorActive:{default:""},foreground:{default:"rgba(0, 90, 158, 1)"},dropBackgroundColor:{default:"rgba(0, 90, 158, 0.1)"},draggable:{default:!1},checkable:{default:!1},expandedIcon:{default:"ChevronDownSmall"},unexpandedIcon:{default:"ChevronRightSmall"},itemHeight:{default:30},showLoading:{default:!1},expandedIconPosition:{default:"left"},dragItem:{default:()=>({item:null,parent:null})},theme:{type:String,default:"global"}},data(){return{isRender:!1,cssMode:"normal",dropMode:"none",dragMode:!1,timer:{drop:null,delayExpand:null,requireRender:null}}},watch:{},computed:{backgroundColor(){return this.cssMode==="hover"?this.backgroundColorHover:this.cssMode==="active"?this.backgroundColorActive:""}},mounted(){this.requireRenderInit()},methods:{requireRenderInit(){clearInterval(this.timer.requireRender),this.timer.requireRender=setInterval(()=>{if(this.isRender){clearInterval(this.timer.requireRender);return}(!this.parent||this.parent.expanded)&&(this.$emit("require-render",async()=>{for(this.isRender=!0;!this.$el.style;)await new Promise(t=>{setTimeout(()=>{t(1)},30)})}),clearInterval(this.timer.requireRender))},100)},expandClick(t="icon",i){if(this.valueTrigger(this.modelValue.disabled))return;let e=i.target,o=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e===this.$refs.expander||e===this.$refs.check.$el){o=!0;break}e=e.parentNode}if(o||(this.$emit("selected-change",this.modelValue),this.modelValue.selected=!0,this.$emit("handle-click",this.modelValue)),e=i.target,t==="icon"&&this.expandClickMode==="icon")i.stopPropagation(),e===this.$refs.expander&&(this.modelValue.expanded=!this.modelValue.expanded);else if(t==="normal"&&this.expandClickMode==="normal"){for(o=!1;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e===this.$refs.check.$el){o=!0;break}e=e.parentNode}o||(this.modelValue.expanded=!this.modelValue.expanded)}},switchCSSMode(t){this.valueTrigger(this.modelValue.disabled)||(this.cssMode=t)},handleDrag(t){t.stopPropagation(),this.modelValue.expanded=!1,console.log("expanded"),this.$emit("set-drag-item",{item:this.modelValue,parent:this.parent}),this.dragMode=!0},isURL(t){return!!(t.startsWith("http")||t.startsWith(".")||t.startsWith("/"))},changeChildren(t){if(this.modelValue.children){let i=this.modelValue.children;for(let e=0;e<i.length;e++){let o=i[e];o.selected=t,o.children&&(i=i.concat(o.children))}}},valueTrigger(t){return typeof t=="function"?t():t},dragOver(t){if(t.preventDefault(),t.stopPropagation(),this.valueTrigger(this.modelValue.disabled)||this.dragItem.item===this.modelValue)return;this.$emit("item-drag-over",{drop:this.modelValue,dropParent:this.parent});const{clientY:i}=t,{top:e,height:o}=this.$refs.item.getBoundingClientRect();i-e<o/2?(this.dropMode="before",clearTimeout(this.timer.delayExpand)):this.valueTrigger(this.modelValue.dropInside)===!1?(this.dropMode="before",clearTimeout(this.timer.delayExpand)):(this.dropMode="enter",this.timer.delayExpand=setTimeout(()=>{this.modelValue.expanded=!0},500)),clearTimeout(this.timer.drop)},dragLeave(t){t.preventDefault(),t.stopPropagation(),this.$emit("item-drag-leave",{drop:this.modelValue,dropParent:this.parent}),clearTimeout(this.timer.drop),this.timer.drop=setTimeout(()=>{this.dropMode="leave"},100)},dropItem(t){if(t.preventDefault(),t.stopPropagation(),this.valueTrigger(this.modelValue.disabled)){this.dropMode="leave";return}this.$emit("item-drop",{drop:this.modelValue,dropParent:this.parent}),this.dragItem&&this.$emit("drop-item",{drop:this.modelValue,dropParent:this.parent,drag:this.dragItem.item,dragParent:this.dragItem.parent,mode:this.dropMode}),this.dropMode="leave"}},beforeUnmount(){clearInterval(this.timer.requireRender)}},Sb=["draggable"],$b={key:0,class:"fv-tree-view-item-expander",style:{"margin-right":"10px"}},Eb={class:"fv-tree-view-item-content"},xb=["src"],Tb={key:1,class:"fv-tree-view-item-expander"},Db={key:0,class:"fv-tree-view-item-children"};function Ib(t,i,e,o,r,s){const l=n.resolveComponent("fv-check-box"),a=n.resolveComponent("fv-progress-ring"),d=n.resolveComponent("tree-view-item",!0);return r.isRender?n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:0,class:"fv-tree-view-item",draggable:e.draggable,onDragstart:i[21]||(i[21]=(...h)=>s.handleDrag&&s.handleDrag(...h)),onDragend:i[22]||(i[22]=h=>r.dragMode=!1)},[n.createElementVNode("div",{class:n.normalizeClass(["fv-tree-view-item-container",[{selected:e.modelValue.selected,disabled:s.valueTrigger(e.modelValue.disabled)}]]),ref:"item",style:n.normalizeStyle({height:`${e.itemHeight}px`,"background-color":r.dropMode==="enter"?e.dropBackgroundColor:s.backgroundColor,"border-top":r.dropMode==="before"?`${e.itemHeight}px solid transparent`:""}),onDragover:i[3]||(i[3]=(...h)=>s.dragOver&&s.dragOver(...h)),onDragleave:i[4]||(i[4]=(...h)=>s.dragLeave&&s.dragLeave(...h)),onDrop:i[5]||(i[5]=(...h)=>s.dropItem&&s.dropItem(...h)),onClick:i[6]||(i[6]=h=>s.expandClick("normal",h)),onMouseenter:i[7]||(i[7]=h=>s.switchCSSMode("hover")),onMouseleave:i[8]||(i[8]=h=>s.switchCSSMode("normal")),onMousedown:i[9]||(i[9]=h=>s.switchCSSMode("active")),onMouseup:i[10]||(i[10]=h=>s.switchCSSMode("hover")),onTouchstart:i[11]||(i[11]=h=>s.switchCSSMode("active")),onTouchend:i[12]||(i[12]=h=>s.switchCSSMode("normal"))},[n.withDirectives(n.createElementVNode("i",{class:"fv-tree-view-item-choosen-bar",style:n.normalizeStyle({background:e.foreground})},null,4),[[n.vShow,e.modelValue.selected&&!e.checkable]]),n.withDirectives(n.createVNode(l,{modelValue:e.modelValue.selected,"onUpdate:modelValue":i[0]||(i[0]=h=>e.modelValue.selected=h),theme:e.theme,background:e.foreground,ref:"check",style:{"margin-right":"10px"},onClick:s.changeChildren},null,8,["modelValue","theme","background","onClick"]),[[n.vShow,e.checkable]]),n.createElementVNode("div",{class:"fv-tree-view-item-container-main",style:n.normalizeStyle({"padding-left":`${e.deep*e.space}px`})},[e.expandedIconPosition==="left"?(n.openBlock(),n.createElementBlock("div",$b,[!s.valueTrigger(e.modelValue.loading)||!e.showLoading?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["ms-Icon fv-tree-view-item-expander-icon",[`ms-Icon--${e.modelValue.expanded?e.expandedIcon:e.unexpandedIcon}`]]),ref:"expander",onClick:i[1]||(i[1]=h=>s.expandClick("icon",h))},null,2)),[[n.vShow,e.modelValue.children]]):(n.openBlock(),n.createBlock(a,{key:1,loading:!0,r:10,borderWidth:"2",color:e.foreground,background:"transparent"},null,8,["color"]))])):n.createCommentVNode("",!0),n.createElementVNode("div",Eb,[n.renderSlot(t.$slots,"default",{item:e.modelValue,deep:e.deep},()=>[n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon fv-tree-view-item-std-icon",`ms-Icon--${s.valueTrigger(e.modelValue.icon)}`])},null,2),[[n.vShow,e.modelValue.icon&&!s.isURL(s.valueTrigger(e.modelValue.icon))]]),e.modelValue.icon&&s.isURL(s.valueTrigger(e.modelValue.icon))?(n.openBlock(),n.createElementBlock("img",{key:0,class:"fv-tree-view-item-std-icon",src:s.valueTrigger(e.modelValue.icon)},null,8,xb)):n.createCommentVNode("",!0),n.createElementVNode("p",{class:"fv-tree-view-item-text",style:n.normalizeStyle({"margin-left":e.modelValue.icon?"10px":""})},n.toDisplayString(s.valueTrigger(e.modelValue.label)),5)])]),e.expandedIconPosition==="right"?(n.openBlock(),n.createElementBlock("div",Tb,[!s.valueTrigger(e.modelValue.loading)||!e.showLoading?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["ms-Icon fv-tree-view-item-expander-icon",[`ms-Icon--${e.modelValue.expanded?e.expandedIcon:e.unexpandedIcon}`]]),ref:"expander",onClick:i[2]||(i[2]=h=>s.expandClick("icon",h))},null,2)),[[n.vShow,e.modelValue.children]]):(n.openBlock(),n.createBlock(a,{key:1,loading:!0,r:10,borderWidth:"2",color:e.foreground,background:"transparent"},null,8,["color"]))])):n.createCommentVNode("",!0)],4)],38),n.createVNode(n.Transition,{name:"fv-tree-view-children-list"},{default:n.withCtx(()=>[e.modelValue.children?n.withDirectives((n.openBlock(),n.createElementBlock("div",Db,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.modelValue.children,(h,u)=>(n.openBlock(),n.createBlock(d,{key:`parent: ${e.kIndex}, self: ${u}`,modelValue:h,parent:e.modelValue,kIndex:u,deep:e.deep+1,space:e.space,expandClickMode:e.expandClickMode,draggable:e.draggable,checkable:e.checkable,foreground:e.foreground,expandedIcon:e.expandedIcon,unexpandedIcon:e.unexpandedIcon,backgroundColorHover:e.backgroundColorHover,backgroundColorActive:e.backgroundColorActive,itemHeight:e.itemHeight,expandedIconPosition:e.expandedIconPosition,showLoading:e.showLoading,dragItem:e.dragItem,theme:e.theme,onRequireRender:i[13]||(i[13]=c=>t.$emit("require-render",c)),onSelectedChange:i[14]||(i[14]=c=>t.$emit("selected-change",c)),onSetDragItem:i[15]||(i[15]=c=>t.$emit("set-drag-item",c)),onDropItem:i[16]||(i[16]=c=>t.$emit("drop-item",c)),onHandleClick:i[17]||(i[17]=c=>t.$emit("handle-click",c)),onItemDragOver:i[18]||(i[18]=c=>t.$emit("item-drag-over",c)),onItemDragLeave:i[19]||(i[19]=c=>t.$emit("item-drag-leave",c)),onItemDrop:i[20]||(i[20]=c=>t.$emit("item-drop",c))},{default:n.withCtx(c=>[n.renderSlot(t.$slots,"default",{item:c.item,deep:c.deep})]),_:2},1032,["modelValue","parent","kIndex","deep","space","expandClickMode","draggable","checkable","foreground","expandedIcon","unexpandedIcon","backgroundColorHover","backgroundColorActive","itemHeight","expandedIconPosition","showLoading","dragItem","theme"]))),128))],512)),[[n.vShow,e.modelValue.expanded]]):n.createCommentVNode("",!0)]),_:3})],40,Sb)),[[n.vShow,s.valueTrigger(e.modelValue.show)!==!1]]):n.createCommentVNode("",!0)}const il=q(Vb,[["render",Ib]]),Bb=Object.assign({name:"FvTreeView",components:{TreeViewItem:il},data(){return{thisValue:this.modelValue,dragItem:{item:null,parent:null},queueFunction:[],lock:{isQueueRunning:!0}}},watch:{modelValue(){this.thisValue=this.value},async"queueFunction.length"(){if(this.queueFunction.length!==0&&!!this.lock.isQueueRunning){for(this.lock.isQueueRunning=!1;this.queueFunction.length>0;){let t=this.queueFunction.shift();try{await t()}catch(i){console.log(i)}}this.lock.isQueueRunning=!0}}},computed:{$theme(){return z(this.$props).theme.value}},methods:{clearSelected(t){let i=this.thisValue;for(let e=0;e<i.length;e++){let o=i[e];o!==t&&(o.selected=!1),o.children&&(i=i.concat(o.children))}},pushRender(t){this.queueFunction.push(t)}}},{props:{...A,modelValue:{type:Array,default:()=>[]},space:{default:20},draggable:{default:!1},checkable:{default:!1},expandedIcon:{default:"ChevronDownSmall"},unexpandedIcon:{default:"ChevronRightSmall"},foreground:{default:"rgba(0, 90, 158, 1)"},backgroundColorHover:{default:""},backgroundColorActive:{default:""},expandClickMode:{default:"normal"},expandedIconPosition:{default:"left"},itemHeight:{default:30},showLoading:{default:!1}},emits:["click","drop-item","item-drag-over","item-drag-leave","item-drop"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-TreeView",[e.$theme]])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.thisValue,(r,s)=>(n.openBlock(),n.createBlock(il,{key:`parent: root, self: ${s}`,modelValue:r,parent:null,kIndex:s,deep:0,space:t.space,draggable:t.draggable,checkable:t.checkable,expandClickMode:t.expandClickMode,foreground:t.foreground,expandedIcon:t.expandedIcon,unexpandedIcon:t.unexpandedIcon,backgroundColorHover:t.backgroundColorHover,backgroundColorActive:t.backgroundColorActive,itemHeight:t.itemHeight,expandedIconPosition:t.expandedIconPosition,showLoading:t.showLoading,dragItem:e.dragItem,theme:e.$theme,onRequireRender:e.pushRender,onSelectedChange:e.clearSelected,onSetDragItem:o[0]||(o[0]=l=>e.dragItem=l),onDropItem:o[1]||(o[1]=l=>e.$emit("drop-item",{root:e.thisValue,...l})),onHandleClick:o[2]||(o[2]=l=>e.$emit("click",l)),onItemDragOver:o[3]||(o[3]=l=>e.$emit("item-drag-over",{root:e.thisValue,...l})),onItemDragLeave:o[4]||(o[4]=l=>e.$emit("item-drag-leave",{root:e.thisValue,...l})),onItemDrop:o[5]||(o[5]=l=>e.$emit("item-drop",{root:e.thisValue,...l}))},{default:n.withCtx(l=>[n.renderSlot(e.$slots,"default",{item:l.item,deep:l.deep})]),_:2},1032,["modelValue","kIndex","space","draggable","checkable","expandClickMode","foreground","expandedIcon","unexpandedIcon","backgroundColorHover","backgroundColorActive","itemHeight","expandedIconPosition","showLoading","dragItem","theme","onRequireRender","onSelectedChange"]))),128))],2))}}),nl=W(Bb),UC="",YC="",jC="",Nb=Object.assign({name:"FvVerifyBox",data(){return{thisValue:[]}},watch:{modelValue(){this.valueFormat()},thisValue:{deep:!0,handler(t){this.$emit("update:modelValue",t.join(""))}}},computed:{isUnderline(){return this.underline.toString()=="true"||this.underline=="underline"||this.underline===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return z(this.$props).theme.value}},mounted(){this.valueFormat()},methods:{valueFormat(){this.thisValue=[];for(let t=0;t<this.length;t++)this.modelValue[t]?this.thisValue.push(this.modelValue[t]):this.thisValue.push("")},handleKeyDown(t,i){if(t.preventDefault(),console.log(t),t.key.length===1&&!t.ctrlKey&&(this.thisValue[i]=t.key),t.keyCode===8){this.thisValue[i]="",i>0&&this.$refs[`t${i-1}`][0].focus();return}if(t.keyCode===86&&t.ctrlKey){navigator.clipboard.readText().then(e=>{for(let o=0;o<this.length;o++)this.thisValue[o]=e[o]});return}t.keyCode===13&&this.$emit("confirm",this.thisValue.join("")),i<this.length-1&&(t.key.length===1||t.keyCode===9)&&this.$refs[`t${i+1}`][0].focus(),i===this.length-1&&this.$emit("confirm",this.thisValue.join(""))},handlePaste(t){console.log(t);let i=t.clipboardData.getData("text/plain");for(let e=0;e<this.length;e++)this.thisValue[e]=i[e]}}},{props:{...A,modelValue:{default:""},length:{default:4},inputmode:{default:"numeric"},underline:{default:!1},background:{default:""},borderWidth:{default:1},borderColor:{default:""},focusBorderColor:{default:""},fontSize:{default:18},fontWeight:{default:"bold"},foreground:{default:""},borderRadius:{default:3},isBoxShadow:{default:!1},revealBorder:{default:!1},disabled:{default:!1}},emits:["update:modelValue","confirm"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-text-box");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-VerifyBox",[e.$theme]])},[e.thisValue.length===t.length?(n.openBlock(),n.createElementBlock("div",{key:0,class:"fv-verify-container",onPaste:o[0]||(o[0]=s=>e.handlePaste(s))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.length,(s,l)=>(n.openBlock(),n.createBlock(r,{modelValue:e.thisValue[l],inputmode:t.inputmode,class:"fv-verify-unit",theme:e.theme,key:l,disabled:e.isDisabled,maxlength:1,underline:t.underline,background:t.background,"border-width":t.borderWidth,"border-color":t.borderColor,"focus-border-color":t.focusBorderColor,"font-size":t.fontSize,"font-weight":t.fontWeight,foreground:t.foreground,textAlign:"center","border-radius":t.borderRadius,"is-box-shadow":t.isBoxShadow,"reveal-border":t.revealBorder,ref_for:!0,ref:`t${l}`,onKeydown:a=>e.handleKeyDown(a,l)},null,8,["modelValue","inputmode","theme","disabled","underline","background","border-width","border-color","focus-border-color","font-size","font-weight","foreground","border-radius","is-box-shadow","reveal-border","onKeydown"]))),128))],32)):n.createCommentVNode("",!0)],2)}}}),ol=W(Nb),qC="",KC="",JC="",Lb={emits:["mousedown","mouseup","touchstart","touchend","mousemove","touchmove"],props:{type:{type:String,default:"horizontal"},theme:{type:String,default:"global"}},data(){return{moveable:!1}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.Init()},methods:{Init(){window.addEventListener("mousemove",t=>{this.moveable&&this.$emit("mousemove",t)}),window.addEventListener("mouseup",t=>{this.moveable&&this.stop()}),window.addEventListener("touchmove",t=>{this.moveable&&this.$emit("touchmove",t)}),window.addEventListener("touchend",t=>{this.moveable&&this.stop()})},forward(t){t.preventDefault(),this.moveable=!0,t.type==="mousedown"?this.$emit("mousedown",t):this.$emit("touchstart",t)},stop(t){this.moveable=!1,t&&(t.type==="mouseup"?this.$emit("mouseup",t):this.$emit("touchend",t))}}},Fb=[n.createElementVNode("i",null,null,-1)];function Mb(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-web-window-spliter",[{horizontal:e.type==="horizontal",vertical:e.type==="vertical",both:e.type==="both"}]]),onMousedown:i[0]||(i[0]=(...l)=>s.forward&&s.forward(...l)),onMouseup:i[1]||(i[1]=(...l)=>s.stop&&s.stop(...l)),onTouchstart:i[2]||(i[2]=(...l)=>s.forward&&s.forward(...l)),onTouchend:i[3]||(i[3]=(...l)=>s.stop&&s.stop(...l))},Fb,34)}const Ii=q(Lb,[["render",Mb]]),Pb={style:{"margin-left":"10px","user-select":"none"}},Rb=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel"},null,-1)],_b=Object.assign({name:"FvWebWindow",components:{spliter:Ii},data(){return{thisValue:this.modelValue,moveable:!1,freezeTransition:!0,disX:0,disY:0,disWidth:0,disHeight:0,currentLeft:"0px",currentTop:"0px",currentWidth:0,currentHeight:0,isInit:!0}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.refreshPos&&t&&this.posInit(),this.$emit("update:modelValue",t)},left(t){this.currentLeft=`${t}px`},top(t){this.currentTop=`${t}px`}},computed:{$theme(){return z(this.$props).theme.value}},mounted(){this.Init(),this.eventInit()},methods:{Init(){window.addEventListener("mousemove",t=>{this.moveable&&(this.currentLeft=`${t.clientX-this.disX}px`,this.currentTop=`${t.clientY-this.disY}px`)}),window.addEventListener("touchmove",t=>{t=t.targetTouches[0],this.moveable&&(this.currentLeft=`${t.clientX-this.disX}px`,this.currentTop=`${t.clientY-this.disY}px`)}),window.addEventListener("mouseup",t=>{this.moveable&&this.stop()}),window.addEventListener("touchup",t=>{this.moveable&&this.stop()})},posInit(){let t=this.$el.clientWidth,i=this.$el.clientHeight;this.left==0?this.currentLeft=`${window.innerWidth/2-t/2}px`:this.currentLeft=`${this.left}px`,this.top==0?this.currentTop=`${window.innerHeight/2-i/2}px`:this.currentTop=`${this.top}px`},eventInit(){let t=this.$el;new ResizeObserver(()=>{(!this.isResize||this.isInit)&&this.posInit(),this.isInit&&(this.currentWidth=this.$el.clientWidth,this.currentHeight=this.$el.clientHeight,this.isInit=!1)}).observe(t)},forward(t){this.moveable=!0,this.freezeTransition=!0,t.preventDefault();let{clientX:i,clientY:e}=t.targetTouches?t.targetTouches[0]:t;this.disX=i-this.$el.getBoundingClientRect().left,this.disY=e-this.$el.getBoundingClientRect().top},stop(){this.moveable=!1,this.freezeTransition=!1,this.$el.getBoundingClientRect().left<0&&(this.currentLeft="0px"),this.$el.getBoundingClientRect().top<0&&(this.currentTop="0px"),this.$el.getBoundingClientRect().left+this.$el.clientWidth>window.innerWidth&&(this.currentLeft=`${window.innerWidth-this.$el.clientWidth}px`),this.$el.getBoundingClientRect().top+this.$el.clientHeight>window.innerHeight&&(this.currentTop=`${window.innerHeight-this.$el.clientHeight}px`),setTimeout(()=>{this.freezeTransition=!0},300)},resizeStart(t,i="h"){let{clientX:e,clientY:o}=t.targetTouches?t.targetTouches[0]:t;i!=="v"&&(this.disWidth=e-this.$el.getBoundingClientRect().right),i!=="h"&&(this.disHeight=o-this.$el.getBoundingClientRect().bottom)},resizeMove(t,i="h"){let{clientX:e,clientY:o}=t.targetTouches?t.targetTouches[0]:t;i!=="v"&&(this.currentWidth=e-this.$el.getBoundingClientRect().left+this.disWidth+15),i!=="h"&&(this.currentHeight=o-this.$el.getBoundingClientRect().top+this.disHeight+15)},stopPropagation(t){t.stopPropagation()},close(){this.$emit("close"),this.thisValue=!1}}},{props:{...A,modelValue:{default:!0},title:{type:String,default:"WebWindow"},left:{default:0},top:{default:0},refreshPos:{default:!1},isResize:{default:!1},isAcrylic:{default:!1}},setup(t,{emit:i}){return(e,o)=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-WebWindow",[e.$theme,{"static-transition":!e.freezeTransition,"enabled-resize":t.isResize,dark:e.theme=="dark","is-acrylic":t.isAcrylic}]]),style:n.normalizeStyle({left:e.currentLeft,top:e.currentTop,width:e.currentWidth==0?"":`${e.currentWidth}px`,height:e.currentHeight==0?"":`${e.currentHeight}px`}),ref:"block"},[n.createElementVNode("div",{draggable:"false",class:"title-bar",onMousedown:o[2]||(o[2]=(...r)=>e.forward&&e.forward(...r)),onMouseup:o[3]||(o[3]=(...r)=>e.stop&&e.stop(...r)),onTouchstart:o[4]||(o[4]=(...r)=>e.forward&&e.forward(...r)),onTouchend:o[5]||(o[5]=(...r)=>e.stop&&e.stop(...r))},[n.createElementVNode("p",Pb,n.toDisplayString(t.title),1),n.createElementVNode("button",{class:"control-btn shut-down",onMousedown:o[0]||(o[0]=(...r)=>e.stopPropagation&&e.stopPropagation(...r)),onClick:o[1]||(o[1]=(...r)=>e.close&&e.close(...r))},Rb,32)],32),n.renderSlot(e.$slots,"default"),t.isResize?(n.openBlock(),n.createBlock(Ii,{key:0,onMousedown:e.resizeStart,onTouchstart:e.resizeStart,onMousemove:e.resizeMove,onTouchmove:e.resizeMove},null,8,["onMousedown","onTouchstart","onMousemove","onTouchmove"])):n.createCommentVNode("",!0),t.isResize?(n.openBlock(),n.createBlock(Ii,{key:1,type:"vertical",onMousedown:o[6]||(o[6]=r=>e.resizeStart(r,"v")),onTouchstart:o[7]||(o[7]=r=>e.resizeStart(r,"v")),onMousemove:o[8]||(o[8]=r=>e.resizeMove(r,"v")),onTouchmove:o[9]||(o[9]=r=>e.resizeMove(r,"v"))})):n.createCommentVNode("",!0),t.isResize?(n.openBlock(),n.createBlock(Ii,{key:2,type:"both",onMousedown:o[10]||(o[10]=r=>e.resizeStart(r,"both")),onTouchstart:o[11]||(o[11]=r=>e.resizeStart(r,"both")),onMousemove:o[12]||(o[12]=r=>e.resizeMove(r,"both")),onTouchmove:o[13]||(o[13]=r=>e.resizeMove(r,"both"))})):n.createCommentVNode("",!0)],6)),[[n.vShow,e.thisValue]])}}),rl=W(_b),tV="";class _t{constructor(){vt(this,"date");this.date=new Date}static Parse(i){let e=/\d+/g,o=[],r;for(;(r=e.exec(i))!=null;)o.push(r[0]);return o.length<=3?this.StringToDate(i):this.StringToDateTime(i)}static get Now(){return new Date}static DateToString(i){return`${i.getFullYear()}/${i.getMonth()+1}/${i.getDate()} ${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`}static StringToDate(i){let e=/\d+/g,o=new Array,r=new Date,s;try{for(;(s=e.exec(i))!=null;)o.push(s[0]);return o.length<=0?new Date:(o[0].length==4?(r.setDate(o[2]),r.setMonth(o[1]-1),r.setFullYear(o[0])):(r.setDate(o[1]),r.setMonth(o[0]-1),r.setFullYear(o[2])),r)}catch{return r}}static StringToDateTime(i){let e=/\d+/g,o=new Array,r=this.StringToDate(i),s;try{for(;(s=e.exec(i))!=null;)o.push(s[0]);return o.length<=0?new Date:(r.setHours(o[3]),r.setMinutes(o[4]),r.setSeconds(o[5]),r)}catch{return r}}static Format(i,e){let o;const r={"Y+":e.getFullYear().toString(),"m+":(e.getMonth()+1).toString(),"d+":e.getDate().toString(),"H+":e.getHours().toString(),"M+":e.getMinutes().toString(),"S+":e.getSeconds().toString()};for(let s in r)o=new RegExp("("+s+")").exec(i),o&&(i=i.replace(o[1],o[1].length==1?r[s]:r[s].padStart(o[1].length,"0")));return i}static DisTime(i,e){return e.getTime()-i.getTime()}static DisDay(i,e){let o=_t.DisHour(i,e);return Math.abs(o)>24?Math.floor(o/24):i.getDate()==e.getDate()?0:1}static DisHour(i,e){let o=_t.DisTime(i,e)/36e5;return Math.floor(o)}static DisMinute(i,e){let o=_t.DisTime(i,e)/6e4;return Math.floor(o)}static DisSecond(i,e){return Math.round(_t.DisTime(i,e)/1e3)}static Compare(i,e){return i.getTime()-e.getTime()>0?1:i.getTime()==e.getTime()?0:-1}static IsSameDate(i,e){return!(i.getFullYear()!==e.getFullYear()||i.getMonth()!==e.getMonth()||i.getDate()!==e.getDate())}}class zb{static ScrollToLoadInit(i,e=null,o=0){try{i.addEventListener("scroll",r=>{i.scrollTop+o>=i.scrollHeight-i.clientHeight&&e!=null&&e()})}catch{}}static Guid(){function i(){return((1+Math.random())*65536|0).toString(16).substring(1)}return i()+i()+"-"+i()+"-"+i()+"-"+i()+"-"+i()+i()+i()}static GuidWithoutDash(){function i(){return((1+Math.random())*65536|0).toString(16).substring(1)}return i()+i()+i()+i()+i()+i()+i()+i()}}const Ob={install(t){t.config.globalProperties.$SDate=_t,t.config.globalProperties.$SUtility=zb,t.config.globalProperties.$FvConfig=ro()}},Ab=[lo,ao,ho,uo,co,fo,Cr,Vr,Sr,Dr,Ir,Br,Nr,Yr,Xr,qr,Qr,Zr,es,ts,is,ns,os,rs,ds,us,fs,bs,ys,ks,vs,Cs,Vs,$s,Es,Ts,Ds,Is,Bs,Ns,Ls,Fs,Ms,Ps,Rs,_s,zs,Ys,js,Xs,qs,Js,Qs,Zs,tl,nl,ol,rl],sl={install(t,i){const e=Pl();t.use(e),t.use(Ob);for(const o of Ab)t.use(o)}};_.FvAffix=lo,_.FvAnimatedIcon=ao,_.FvBadge=ho,_.FvBreadcrumb=uo,_.FvButton=co,_.FvCalendarDatePicker=fo,_.FvCalendarView=Cr,_.FvCallout=Vr,_.FvCheckBox=Sr,_.FvCollapse=Dr,_.FvColorPicker=Ir,_.FvCombobox=Br,_.FvCommandBar=Nr,_.FvComponentPlugins=sl,_.FvDatePicker=Yr,_.FvDetailsList=Xr,_.FvDrawer=qr,_.FvDropDown=Qr,_.FvExpander=Zr,_.FvFlipView=es,_.FvIconElement=ts,_.FvImage=is,_.FvImg=ns,_.FvImgBox=os,_.FvInfiniteScrollView=rs,_.FvInfoBox=ds,_.FvListView=us,_.FvMenuFlyout=fs,_.FvMessageBar=bs,_.FvNavigationPanel=ys,_.FvNavigationView=ks,_.FvPagination=vs,_.FvPanel=Cs,_.FvPersona=Vs,_.FvPivot=$s,_.FvProgressBar=Es,_.FvProgressRing=Ts,_.FvRadio=Ds,_.FvRadioGroup=Is,_.FvRatingControl=Bs,_.FvResizeWatcher=Ns,_.FvRevealContainer=Ls,_.FvRightMenu=Fs,_.FvScrollStory=Ms,_.FvSearchBox=Ps,_.FvShimmer=Rs,_.FvSlider=_s,_.FvSwipeControl=zs,_.FvTableView=Ys,_.FvTableViewCellBase=js,_.FvTableViewHeadBase=Xs,_.FvTag=qs,_.FvTextBox=Js,_.FvTextField=Qs,_.FvTimePicker=Zs,_.FvToggleSwitch=tl,_.FvTreeView=nl,_.FvVerifyBox=ol,_.FvWebWindow=rl,_.createInfoBox=ls,_.createMessageBar=gs,_.createSwiftWarning=ps,_.default=sl,_.infoBoxPlugin=as,_.messageBarPlugin=ws,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});