@creatorsn/vfluent3 0.3.37 → 0.3.39

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.
package/dist/vfluent3.js CHANGED
@@ -23772,7 +23772,7 @@ const Yo = /* @__PURE__ */ Se(v1, [["render", S1]]), T1 = {
23772
23772
  },
23773
23773
  watch: {
23774
23774
  modelValue() {
23775
- this.thisValue = this.value;
23775
+ this.thisValue = this.modelValue;
23776
23776
  },
23777
23777
  async "queueFunction.length"() {
23778
23778
  if (this.queueFunction.length !== 0 && !!this.lock.isQueueRunning) {
@@ -32,4 +32,4 @@ This will fail in production.`);a=At,a._s.has(o)||(s?Wi(o,i,r,a):lo(o,r,a),proce
32
32
  ${this.showItem(i)}
33
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,tf),[[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,nf),[[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,of),[[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())},rf,4),n.createElementVNode("div",sf,lf,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())},af,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())},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[4]||(o[4]=r=>e.daySwiper.slideNext())},cf,4)],4),[[n.vShow,!t.hideDay]]),n.withDirectives(n.createElementVNode("div",ff,[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())},mf,4),n.createElementVNode("div",gf,pf,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())},wf,4)],512),[[n.vShow,!t.hideYear]])],2),n.createElementVNode("div",bf,[n.createElementVNode("button",{class:"fv-date-picker-options-bar-accept",onClick:o[7]||(o[7]=(...r)=>e.accept&&e.accept(...r))},yf),n.createElementVNode("button",{class:"fv-date-picker-options-bar-cancel",onClick:o[8]||(o[8]=r=>e.show=!1)},kf)])],4),[[n.vShow,e.show]])]),_:1})],6))}}),qr=W(vf),$k="",Ek="",Tk="";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 Cf{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 c=l.pageX-de.getOffset(h).left-window.scrollX,u=l.pageY-de.getOffset(h).top-window.scrollY;h.revealPosition.x=c,h.revealPosition.y=u;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 J{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 Sf{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:J.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)||J.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)||J.typeObj(e.selector)==="NodeList"?e.selector:[e.selector]:[]}getChildrenX(i,e,o="target"){let r=J.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(J.valueTrigger(h.options.status)==="disabled")continue;let c=l.pageX-J.getOffset(h).left-window.scrollX,u=l.pageY-J.getOffset(h).top-window.scrollY;h.revealPosition.x=c,h.revealPosition.y=u,J.isInsideElement(h,l.clientX,l.clientY)?h.wave==0&&J.drawEffectBackground(h):J.clearBackground(h)}for(let h of d.maskedChildren){if(J.valueTrigger(h.options.status)==="disabled")continue;let c=l.pageX-J.getOffset(h).left-window.scrollX,u=l.pageY-J.getOffset(h).top-window.scrollY;h.revealPosition.x=c,h.revealPosition.y=u;let f=J.distanceOfElement(h,l.clientX,l.clientY);f.left>300||f.top>300||f.right>300||f.bottom>300||J.drawEffectBorder(h)}}},s=l=>{if(!!o)for(let a in o){let d=o[a];for(let h of d.targetChildren)J.clearBackground(h);for(let h of d.maskedChildren)J.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)||J.valueTrigger(i.options.status)==="disabled")return;s.type.indexOf("mouse")<0&&(s=s.targetTouches[0]);let l=s.pageX-J.getOffset(i).left-window.scrollX,a=s.pageY-J.getOffset(i).top-window.scrollY;i.revealPosition.x=l,i.revealPosition.y=a,J.drawEffectBackground(i,!0)},r=s=>{J.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 Pn=Hi("RevealCache",{state:()=>({revealHandlerList:new Array,revealDirectJs:new Cf,revealMaskedJs:new Sf}),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)}}}),oe=(t,i)=>{const e=t.__vccOpts||t;for(const[o,r]of i)e[o]=r;return e},Vf={emits:["mousedown","mouseup","mousemove","touchstart","touchend","touchmove"],props:{theme:{type:String,default:"global"}},data(){return{moveable:!1}},computed:{$theme(){return _(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))}}},$f=[n.createElementVNode("i",null,null,-1)];function Ef(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))},$f,32)}const Kr=oe(Vf,[["render",Ef]]),Tf={props:{modelValue:{default:!1},color:{default:""}},data(){return{checked:this.modelValue}},watch:{modelValue(t){this.checked=t},checked(t){}}},Df=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--StatusCircleCheckmark fv-details-list-icon-accept"},null,-1)];function xf(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:""})},Df,4)],2)}const si=oe(Tf,[["render",xf]]),If=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"},null,-1)],Bf=["onClick"],Nf={class:"default-title"},Lf=["draggable","onDrag","onDrop","onContextmenu"],Ff=["onClick"],Mf=["onClick"],Pf=["onClick"],Rf=["onClick"],zf=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"},null,-1)],_f={class:"col",style:{"min-width":"150px"}},Of=["onContextmenu"],Af={class:"fv-details-list-icon-block",key:"multi-col"},Wf=["onClick"],Hf=["onClick"],Gf=Object.assign({name:"FvDetailsList",components:{spliter:Kr,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 _(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=Pn(),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))},If,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",Nf,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,Bf),n.createVNode(Kr,{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,Ff),[[n.vShow,t.multiSelection]]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.thisHead,(h,c)=>n.withDirectives((n.openBlock(),n.createElementBlock("span",{class:"col",key:`row: ${d} col: ${c}`,style:n.normalizeStyle({width:r.colWidth[c]}),onClick:u=>r.chooseCurrent(a)},[n.renderSlot(r.$slots,`column_${c}`,{item:a,row_index:d,col_index:c},()=>[n.createElementVNode("p",null,n.toDisplayString(`row: ${d} col: ${c}`),1)])],12,Mf)),[[n.vShow,h.show&&r.valueTrigger(h.visible)]])),128)),n.renderSlot(r.$slots,"row_expand",{item:a,row_index:d})],42,Lf)),[[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,Pf),[[n.vShow,t.multiSelection]]),n.createElementVNode("span",{class:n.normalizeClass(["expand",{choose:a.expand}]),onClick:h=>r.expandGroup(a)},zf,10,Rf),n.renderSlot(r.$slots,"group_content",{item:a,index:d,isMulti:t.multiSelection,isChoose:r.isGroupChooseAll(a)},()=>[n.createElementVNode("span",_f,[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,c)=>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: ${c}`,onContextmenu:u=>r.rightClick(u,h)},[n.withDirectives(n.createElementVNode("span",Af,[n.createVNode(si,{modelValue:h.choosen,"onUpdate:modelValue":u=>h.choosen=u,onClick:u=>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:u=>r.chooseCurrent(h)},null,8,Wf),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.thisHead,(u,f)=>n.withDirectives((n.openBlock(),n.createElementBlock("span",{class:"col",key:`group: ${d} row: ${c} col: ${f}`,style:n.normalizeStyle({width:r.colWidth[f]}),onClick:m=>r.chooseCurrent(h)},[n.renderSlot(r.$slots,`column_${f}`,{item:h,row_index:c,col_index:f},()=>[n.createElementVNode("p",null,n.toDisplayString(`row: ${c} col: ${f}`),1)])],12,Hf)),[[n.vShow,u.show&&r.valueTrigger(u.visible)]])),128)),n.renderSlot(r.$slots,"row_expand",{item:h,row_index:c})],42,Of)),[[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)}}}),Jr=W(Gf),Lk="",Fk="",Mk="",Uf=Object.assign({name:"FvDrawer",data(){return{lock:!1,style:{drawer:{zIndex:this.zIndex}},thisValue:this.modelValue,window:{click:t=>{!this.thisValue||this.lock||!this.isLightDismiss||t.composedPath().includes(this.$el)||(this.thisValue=!1)}}}},computed:{$theme(){return _(this.$props).theme.value},thisBorderRadius(){return typeof this.borderRadius=="number"?this.borderRadius+"px":this.borderRadius}},watch:{modelValue(t){this.thisValue=t},thisValue(t){this.lock=!0,this.$emit("update:modelValue",t),setTimeout(()=>{this.setStyle()},50)}},mounted(){this.init(),this.setStyle()},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.$el.addEventListener("transitionend",()=>{this.lock=!1}),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%",borderTop:"1px solid rgba(120, 120, 120, 0.1)",borderTopLeftRadius:this.thisBorderRadius,borderTopRightRadius:this.thisBorderRadius,zIndex:this.zIndex,transform:` ${this.thisValue?"translateY(0%)":"translateY(110%)"}`}:this.position=="top"?this.style.drawer={left:"0",top:"0",height:t,width:"100%",maxWidth:"100%",maxHeight:"100%",borderBottom:"1px solid rgba(120, 120, 120, 0.1)",borderBottomLeftRadius:this.thisBorderRadius,borderBottomRightRadius:this.thisBorderRadius,zIndex:this.zIndex,transform:`${this.thisValue?"translateY(0%)":"translateY(-110%)"}`}:this.position=="left"?this.style.drawer={left:"0",top:"0",width:t,height:"100%",maxWidth:"100%",maxHeight:"100%",borderRight:"1px solid rgba(120, 120, 120, 0.1)",borderTopRightRadius:this.thisBorderRadius,borderBottomRightRadius:this.thisBorderRadius,zIndex:this.zIndex,transform:`${this.thisValue?"translateX(0%)":"translateX(-110%)"}`}:this.style.drawer={right:"0",top:"0",width:t,height:"100%",maxWidth:"100%",maxHeight:"100%",borderLeft:"1px solid rgba(120, 120, 120, 0.1)",borderTopLeftRadius:this.thisBorderRadius,borderBottomLeftRadius:this.thisBorderRadius,zIndex:this.zIndex,transform:`${this.thisValue?"translateX(0%)":"translateX(110%)"}`}},close(){this.lock||(this.thisValue=!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"},modelValue:{default:void 0},length:{default:800},title:{default:"Drawer"},titleSize:{default:20},titleWeight:{default:"bold"},titleColor:{default:""},background:{default:""},borderRadius:{default:""},controlPadding:{default:"12px 24px"},contentPadding:{default:"24px"},showTitleBar:{default:!0},isFooter:{default:!1},zIndex:{type:Number,default:30},isLightDismiss:{default:!0},isAcrylic:{default:!0},appendBody:{default:!0}},emits:["update:modelValue"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-button");return 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,"backdrop-filter":t.isAcrylic?"blur(10px)":"none"}])},[n.withDirectives(n.createElementVNode("div",{class:"fv-drawer-control-block",style:n.normalizeStyle({padding:t.controlPadding})},[n.renderSlot(e.$slots,"header",{},()=>[n.createElementVNode("p",{class:"drawer-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[0]||(o[0]=(...s)=>e.close&&e.close(...s))})])],4),[[n.vShow,t.showTitleBar]]),n.createElementVNode("div",{class:"fv-drawer-main-container",style:n.normalizeStyle({padding:t.contentPadding})},[n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode("Content Here")])],4),n.withDirectives(n.createElementVNode("div",{class:"fv-drawer-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]])}}}),Qr=W(Uf),Rk="",zk="",_k="",Yf={emits:["update:modelValue"],props:{modelValue:{default:()=>[]},borderWidth:{default:1},placeholder:{default:"Dropdown"},borderRadius:{default:"3"},inputHeight:{default:""},inputFontSize:{default:""},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 _(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}}},jf=["placeholder","value"];function Xf(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`,height:e.inputHeight})},[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({fontSize:e.inputFontSize+"px",color:e.inputForeground,"border-radius":`${e.borderRadius}px`,borderWidth:`${e.borderWidth}px`,borderColor:e.inputBorderColor})},null,12,jf),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 Zr=oe(Yf,[["render",Xf]]),qf={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 _(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)})}}},Kf=["onClick"];function Jf(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,Kf))),128))],4)}const es=oe(qf,[["render",Jf]]),Qf=Object.assign({name:"FvDropDown",components:{dropDownInput:Zr,listContainer:es},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 _(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:""},inputHeight:{default:""},inputFontSize:{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(Zr,{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,inputHeight:t.inputHeight,inputFontSize:t.inputFontSize,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","inputHeight","inputFontSize","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(es,{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))}}),ts=W(Qf),Ak="",Wk="",Hk="",Zf={class:"expander-description-box"},em={class:"expander-text"},tm={class:"expander-title"},im={class:"expander-description-extension-block"},nm={class:"ms-Icon ms-Icon--ChevronUpMed"},om={class:"ms-Icon ms-Icon--ChevronDownMed"},rm={class:"ms-Icon ms-Icon--ChevronRightMed"},sm=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=at(this.titleBackground),i=t.hue();return t.hue(i-.01).cssa()}catch{return""}},computedMaxHeight(){if(parseFloat(this.maxHeight).toString()==="NaN")return this.maxHeight;let t=["px","%","vw","vh","rem","em"],i=this.maxHeight;for(let e of t)if(i.toString().includes(e))return i;return`${i}px`},$theme(){return _(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","description-click","icon-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?e.computedMaxHeight:`${t.defaultHeight}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",Zf,[n.createElementVNode("div",{class:"expander-description",onClick:o[0]||(o[0]=r=>e.$emit("description-click"))},[n.createElementVNode("div",em,[n.renderSlot(e.$slots,"content",{title:t.title,contnet:t.content},()=>[n.createElementVNode("div",tm,n.toDisplayString(t.title),1)])])]),n.createElementVNode("div",im,[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",nm,null,512),[[n.vShow,e.thisValue]]),n.withDirectives(n.createElementVNode("i",om,null,512),[[n.vShow,!e.thisValue&&!t.disabledExpander]]),n.withDirectives(n.createElementVNode("i",rm,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",ref:"detail",style:n.normalizeStyle({background:t.expandBackground})},[n.renderSlot(e.$slots,"default")],4),[[n.vShow,e.thisValue]])]),_:3})],38))}}),is=W(sm),Uk="",Yk="",jk="",lm=["onClick"],am=[n.createElementVNode("i",null,null,-1)],dm={class:"container-panel"},hm={style:{"font-size":"36px"}},um=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 _(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)},am,10,lm))),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",dm,[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",hm,n.toDisplayString(s+1),1)])],4)),[[n.vShow,e.currentIndex===s]])),128))]),_:3},8,["name"])])],34))}}),ns=W(um),Kk="",Jk="",Qk="",cm=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 _(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))}}),os=W(cm),e1="",t1="",i1="",fm=["src"],mm=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 _(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,fm),[[n.vShow,e.status]])]),_:1})],2))}}),rs=W(mm),o1="",r1="",s1="",gm=Object.assign({name:"FvImg",data(){return{status:"imgBox"}},computed:{$theme(){return _(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)}}}),ss=W(gm),a1="",d1="",h1="",pm=Hi("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)}}}),wm={class:"fv-img-box-content"},bm=["src"],ym=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 _(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=pm()},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",wm,[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,bm)):n.createCommentVNode("",!0)]),_:1})],6)}}}),ls=W(ym),c1="",f1="",m1="",km=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 _(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))}}),as=W(km),p1="",w1="",b1="",vm={class:"title-bar"},Cm={class:"title-content"},Sm={class:"info-box-content-block"},Vm=n.createElementVNode("p",null,"Info Box Content.",-1),$m={class:"info-box-control-block"},ds=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 _(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",vm,[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${e.iconList[t.status].icon}`]])},null,2),n.createElementVNode("span",Cm,n.toDisplayString(t.title),1)],512),[[n.vShow,t.showTitleBar]]),n.createElementVNode("span",Sm,[n.renderSlot(e.$slots,"msg",{},()=>[n.withDirectives(n.createElementVNode("h3",null,n.toDisplayString(t.title),513),[[n.vShow,!t.showTitleBar]]),Vm])]),n.createElementVNode("div",$m,[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 hs(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(ds,{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 us={install(t){t.config.globalProperties.$infoBox=(i,e)=>{hs(i,e,t._context)}}},cs=An(ds,[us]),k1="",v1="",C1="",Em={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 _(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;Q.to(this.$data,{thisHeight:i,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.heightFormatToBottom})},heightFormatToBottom(){Q.to(this.$data,{thisTop:this.top,thisHeight:this.height,duration:.2,ease:"power3.out"})},heightExpandToTop(t){let i=Math.abs(t)+this.height;Q.to(this.$data,{thisTop:this.top,thisHeight:i,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.heightFormatToTop})},heightFormatToTop(){Q.to(this.$data,{thisHeight:this.height,duration:.2,ease:"power3.out"})}}},Tm={class:"fv-listview-slider"};function Dm(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",Tm,[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 fs=oe(Em,[["render",Dm]]),xm={class:"list-view-header"},Im={class:"list-view-container",ref:"container"},Bm=["onClick","onTouchend","onDragover","onDragleave","onDrop"],Nm={class:"list-view-footer"},Lm=Object.assign({name:"FvListView",components:{verticalSlider:fs},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 _(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:i.choosen=!0;else{for(let o of this.currentChoosen)o.choosen=!1,this.thisValue[this.thisValue.indexOf(o)]=o;i.choosen=!0}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:i.choosen=!0;else{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.$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,{expose:i,emit:e}){const{proxy:o}=n.getCurrentInstance();return i({move:(...r)=>o.move(...r)}),(r,s)=>{const l=n.resolveComponent("fv-reveal-container");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-ListView",[r.$theme]]),onClick:s[0]||(s[0]=a=>r.focus=!0)},[n.createElementVNode("div",xm,[n.renderSlot(r.$slots,"header")]),n.createElementVNode("div",Im,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.thisValue,(a,d)=>n.withDirectives((n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass([{choose:r.valueTrigger(a.choosen),header:r.valueTrigger(a.type)=="header",hr:r.valueTrigger(a.type)=="divider",normal:r.valueTrigger(a.type)=="default"||r.valueTrigger(a.type)==null,disabled:r.valueTrigger(a.disabled),selected:a.selected&&r.showSelectedBorder},"list-view-item"]),key:d,style:n.normalizeStyle({height:r._rowHeight,background:r.valueTrigger(a.choosen)?t.choosenBackground:"",borderRadius:t.itemBorderRadius+"px"}),ref_for:!0,ref:`list_item_${d}`,onClick:h=>r.handlerClick(h,a),onTouchend:h=>r.handlerClick(h,a),onDragover:h=>r.dragOver(r.event,a),onDragleave:h=>r.dragLeave(r.event,a),onDrop:h=>r.dropItem(r.event,a)},[(r.valueTrigger(a.type)=="default"||r.valueTrigger(a.type)==null)&&!r.valueTrigger(a.disabled)?(n.openBlock(),n.createBlock(l,{key:0,revealContainer:r.FR,parent:()=>r.$refs[`list_item_${d}`][0],class:"fv-listview-reveal-container",backgroundColor:r.backgroundLightColor,borderColor:r.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(r.$slots,"listItem",{item:a,index:d,valueTrigger:r.valueTrigger},()=>[n.createElementVNode("p",{style:n.normalizeStyle({color:r.valueTrigger(a.type)=="header"?t.headerForeground:""})},n.toDisplayString(r.valueTrigger(a.name)),5)])],4)],46,Bm)),[[n.vShow,r.valueTrigger(a.show)!==!1]])),128))],512),n.createElementVNode("div",Nm,[n.renderSlot(r.$slots,"footer")]),t.showSlider?(n.openBlock(),n.createBlock(fs,{key:0,top:r.currentTop,height:r.currentHeight,background:t.headerForeground},null,8,["top","height","background"])):n.createCommentVNode("",!0)],2)}}}),ms=W(Lm),V1="",$1="",E1="",Fm={name:"FvMenuFlyoutChildrenContainer",emits:["choose-item"],props:{modelValue:{default:()=>[]},background:{default:""},choosenBackground:{default:""},choosenSliderBackground:{default:""},titleForeground:{default:""},parentNode:{default:null},parentWrapper:{default:null},triggerMode:{default:"click"},mobileMode:{default:!1},menuWidth:{default:200},menuMaxHeight:{default:350},zIndex:{default:2},theme:{type:String,default:"global"}},data(){return{thisValue:this.modelValue,currentItem:null,top:0,showMode:"right",thisParentNode:null,thisParentWrapper:null}},watch:{modelValue(t){this.thisValue=t,this.currentItem=null,this.posInit()},parentWrapper(t,i){t&&t.addEventListener("scroll",this.posInit),i&&i.removeEventListener("scroll",this.posInit)}},computed:{computedLeft(){return this.mobileMode?0:this.showMode=="right"?"100%":""},computedRight(){return this.mobileMode?"":this.showMode=="left"?"100%":""},computedTop(){return this.mobileMode?"":`${this.top}px`},computedWidth(){return this.mobileMode?"100%":`${this.menuWidth}px`},computedMaxHeight(){return this.mobileMode?"100%":`${this.menuMaxHeight}px`},$theme(){return _(this.$props).theme.value}},mounted(){this.eventInit(),this.posInit()},methods:{eventInit(){this.parentWrapper&&this.parentWrapper.addEventListener("scroll",this.posInit)},posInit(){if(this.parentNode){let t=this.parentWrapper?this.parentWrapper.scrollTop:0,i=this.parentNode.offsetTop;this.top=i-t,this.parentNode.getBoundingClientRect().right+this.menuWidth>window.innerWidth?this.showMode="left":this.showMode="right"}},valueTrigger(t){return typeof t=="function"?t():t},Expand(t,i){if(!(this.triggerMode=="click"&&t.type!=="click")){if(this.valueTrigger(i.disabled)||this.valueTrigger(i.type)=="header"||this.valueTrigger(i.type)=="divider")return 0;this.currentItem=i,this.thisParentNode=t.target,this.thisParentWrapper=this.$refs.container}},Choose(t,i){this.Expand(t,i),!i.children&&this.$emit("choose-item",[i])},addChooseItem(t){!this.currentItem||(this.$emit("choose-item",[this.currentItem,...t]),this.currentItem=null)},destroyMe(){this.$emit("destroy-me",this.thisValue)},isSelected(t){return t==this.currentItem}},beforeUnmount(){this.parentWrapper&&this.parentWrapper.removeEventListener("scroll",this.posInit)}},Mm={key:0,class:"fv-menu-flyout-mobile-control"},Pm=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Back"},null,-1),Rm=["onMouseenter","onClick","title"],zm={class:"ms-Icon ms-Icon--ChevronRight after-expand"},_m={class:"ms-Icon ms-Icon--ChevronRight after-expand"};function Om(t,i,e,o,r,s){const l=n.resolveComponent("fv-button"),a=n.resolveComponent("fv-menu-flyout-children-container");return n.openBlock(),n.createBlock(n.Transition,{name:"fv-menu-flyout"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["menu-flyout-list-container",[{"mobile-mode":e.mobileMode}]]),style:n.normalizeStyle({left:s.computedLeft,right:s.computedRight,top:s.computedTop})},[n.createElementVNode("div",{class:"menu-flyout-item-container",style:n.normalizeStyle({width:s.computedWidth,"max-height":s.computedMaxHeight,background:e.background,"overflow-y":"auto","overflow-x":"visible"}),ref:"container"},[e.mobileMode?(n.openBlock(),n.createElementBlock("div",Mm,[n.createVNode(l,{theme:s.$theme,borderRadius:50,background:"transparent",style:{width:"30px",height:"30px"},onClick:s.destroyMe},{default:n.withCtx(()=>[Pm]),_:1},8,["theme","onClick"])])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.thisValue,(d,h)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-menu-flyout-item",{hr:s.valueTrigger(d.type)=="divider",normal:(s.valueTrigger(d.type)=="default"||s.valueTrigger(d.type)==null)&&!s.valueTrigger(d.disabled),disabled:s.valueTrigger(d.disabled),choose:s.isSelected(d),title:s.valueTrigger(d.type)=="header"}]),style:n.normalizeStyle({background:s.isSelected(d)?e.choosenBackground:"",color:s.valueTrigger(d.type)==="header"?e.titleForeground:""}),onMouseenter:c=>s.Expand(c,d),onClick:c=>s.Choose(c,d),key:`options: ${d.key?d.key:h}`,title:s.valueTrigger(d.text)},[n.renderSlot(t.$slots,"default",{item:d,choosenSliderBackground:e.choosenSliderBackground},()=>[n.createElementVNode("i",{class:"before-choosen",style:n.normalizeStyle({background:e.choosenSliderBackground})},null,4),n.createTextVNode(" "+n.toDisplayString(s.valueTrigger(d.type)!=="divider"?s.valueTrigger(d.text):"")+" ",1),n.withDirectives(n.createElementVNode("i",zm,null,512),[[n.vShow,d.children]])])],46,Rm))),128))],4),r.currentItem&&r.currentItem.children?(n.openBlock(),n.createBlock(a,{key:0,"model-value":r.currentItem.children,background:e.background,"parent-node":r.thisParentNode,"parent-wrapper":r.thisParentWrapper,"menu-width":e.menuWidth,"menu-max-height":e.menuMaxHeight,"choosen-background":e.choosenBackground,"choosen-slider-background":e.choosenSliderBackground,"title-foreground":e.titleForeground,"trigger-mode":e.triggerMode,"mobile-mode":e.mobileMode,zIndex:e.zIndex*1+1,theme:e.theme,onChooseItem:s.addChooseItem,onDestroyMe:i[0]||(i[0]=d=>r.currentItem=null)},{item:n.withCtx(d=>[n.renderSlot(t.$slots,"default",{item:d,choosenSliderBackground:e.choosenSliderBackground},()=>[n.createElementVNode("i",{class:"before-choosen",style:n.normalizeStyle({background:e.choosenSliderBackground})},null,4),n.createTextVNode(" "+n.toDisplayString(s.valueTrigger(d.type)!=="divider"?s.valueTrigger(d.text):"")+" ",1),n.withDirectives(n.createElementVNode("i",_m,null,512),[[n.vShow,d.children]])])]),_:3},8,["model-value","background","parent-node","parent-wrapper","menu-width","menu-max-height","choosen-background","choosen-slider-background","title-foreground","trigger-mode","mobile-mode","zIndex","theme","onChooseItem"])):n.createCommentVNode("",!0)],6)]),_:3})}const gs=oe(Fm,[["render",Om]]),Am={class:"ms-Icon ms-Icon--ChevronRight after-expand"},Wm=Object.assign({name:"FvMenuFlyout",components:{menuFlyoutChildrenContainer:gs},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===""},computedValue(){let t=[];for(let i of this.thisValue)t.push(i.text);return t.join(" / ")},$theme(){return _(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent),window.addEventListener("touchend",this.outSideClickEvent)},outSideClickEvent(t){t.composedPath().includes(this.$el)||(this.status=!1)},valueTrigger(t){return typeof t=="function"?t():t},Choose(t){this.thisValue=t,this.$emit("choose-item",this.thisValue[this.thisValue.length-1]),this.$emit("choose-item-path",this.thisValue),this.status=!1},switchStatus(t){this.rootTriggerMode==="click"&&t.type!=="click"||this.isDisabled||(this.status=!this.status)}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent),window.removeEventListener("touchend",this.outSideClickEvent)}},{props:{...A,modelValue:{default:()=>[]},options:{default:()=>[]},borderWidth:{default:1},placeholder:{default:"menuFlyout"},borderRadius:{default:"3"},background:{default:""},choosenBackground:{default:""},choosenSliderBackground:{default:""},inputForeground:{default:""},inputBackground:{default:""},titleForeground:{default:""},dropDownIcon:{default:"ChevronDown"},dropDownIconForeground:{default:""},menuWidth:{default:200},menuMaxHeight:{default:350},rootTriggerMode:{default:"click"},triggerMode:{default:"enter"},wrapperNode:{default:null},revealBorder:{default:!0},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},mobileMode:{default:!1},isBoxShadow:{default:!0},disabled:{default:!1}},emits:["update:modelValue","choose-item","choose-item-path"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-text-box");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-MenuFlyout",[e.$theme,{disabled:e.isDisabled}]]),style:n.normalizeStyle({"z-index":e.status?30:"",overflow:"visible"})},[n.renderSlot(e.$slots,"input",{switch:e.switchStatus},()=>[n.createVNode(r,{"model-value":e.computedValue,placeholder:t.placeholder,theme:e.$theme,readonly:"",background:t.inputBackground,foreground:t.inputForeground,"border-radius":t.borderRadius,icon:t.dropDownIcon,"icon-foreground":t.dropDownIconForeground,"reveal-background-color":t.revealBorderColor,"reveal-border-color":t.revealBackgroundColor,"reveal-border-width":t.borderWidth,"reveal-border":t.revealBorder,"is-box-shadow":t.isBoxShadow,disabled:e.isDisabled,cursor:"default",onClick:e.switchStatus,onMouseenter:e.switchStatus},null,8,["model-value","placeholder","theme","background","foreground","border-radius","icon","icon-foreground","reveal-background-color","reveal-border-color","reveal-border-width","reveal-border","is-box-shadow","disabled","onClick","onMouseenter"])]),n.withDirectives(n.createVNode(gs,{modelValue:t.options,background:t.background,choosenBackground:t.choosenBackground,titleForeground:t.titleForeground,triggerMode:t.triggerMode,mobileMode:t.mobileMode,menuWidth:t.menuWidth,menuMaxHeight:t.menuMaxHeight,"parent-node":e.$el,"parent-wrapper":t.wrapperNode,theme:e.$theme,zIndex:2,onChooseItem:e.Choose,onDestroyMe:o[0]||(o[0]=s=>e.status=!1)},{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",Am,null,512),[[n.vShow,s.item.children]])])]),_:3},8,["modelValue","background","choosenBackground","titleForeground","triggerMode","mobileMode","menuWidth","menuMaxHeight","parent-node","parent-wrapper","theme","onChooseItem"]),[[n.vShow,e.status]])],6)}}}),ps=W(Wm),D1="",x1="",I1="",Hm={class:"msg-bar-block"},Gm={class:"msg-content-block"},Um={class:"control-block"},ws=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 _(this.$props).theme.value}},mounted(){this.autoDestroyInit(),this.enter()},methods:{enter(){this.$el.style.top="-100%",Q.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"):Q.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",Hm,[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",Gm,[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",Um,[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 bs(t,i,e){let o=s=>{const l=n.h(ws,{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 ys(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 ks={install(t){t.config.globalProperties.$barWarning=(i,e)=>{bs(i,{...e},t._context)},t.config.globalProperties.$swiftWarning=ys}},vs=An(ws,[ks]),N1="",L1="",F1="",Ym=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Back icon"},null,-1),jm=n.createElementVNode("i",{class:"ms-Icon ms-Icon--GlobalNavButton icon"},null,-1),Xm=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Back icon"},null,-1),qm={class:"name title"},Km=n.createElementVNode("i",{class:"ms-Icon ms-Icon--GlobalNavButton icon"},null,-1),Jm={class:"search"},Qm={class:"template"},Zm=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Settings icon"},null,-1),eg={class:"name"},tg=Object.assign({name:"FvNavigationPanel",beforeMount(){this.uR=Pn(),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 _(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(()=>[Ym]),_: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(()=>[jm]),_: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",qm,n.toDisplayString(t.title),1)])]),default:n.withCtx(()=>[n.renderSlot(e.$slots,"backIcon",{},()=>[Xm])]),_: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",{},()=>[Km])]),_:3},8,["hideContent","onClick"]),[[n.vShow,t.showNav]]),n.withDirectives(n.createElementVNode("span",Jm,[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",Qm,[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",eg,n.toDisplayString(t.settingTitle),1)]),default:n.withCtx(()=>[Zm]),_:1},8,["hideContent"]),[[n.vShow,t.showSetting]])],4)],6)}}}),Cs=W(tg),P1="",R1="",z1="",ig=n.createElementVNode("i",{class:"ms-Icon ms-Icon--GlobalNavButton icon"},null,-1),ng=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Back icon"},null,-1),og=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Settings icon"},null,-1),rg={class:"name"},sg=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 _(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",{},()=>[ig])]),backIcon:n.withCtx(()=>[n.renderSlot(e.$slots,"backIcon",{},()=>[ng])]),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",rg,n.toDisplayString(t.settingTitle),1)]),default:n.withCtx(()=>[og]),_: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)}}}),Ss=W(sg),O1="",A1="",W1="",lg={class:"fv-pagination-container"},ag=n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronLeft"},null,-1),dg=n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"},null,-1),hg=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 _(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"},borderRadius:{default:3},revealBackgroundColor:{default:""},revealBorderColor:{default:""},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",lg,[n.createVNode(r,{disabled:e.thisValue==1||e.isDisabled,class:n.normalizeClass([{small:t.small},"page-btn"]),theme:e.theme,background:t.background,"reveal-background-color":t.revealBackgroundColor,"reveal-border-color":t.revealBorderColor,"is-box-shadow":t.shadow,borderRadius:t.borderRadius,onClick:e.prev},{default:n.withCtx(()=>[ag]),_:1},8,["disabled","class","theme","background","reveal-background-color","reveal-border-color","is-box-shadow","borderRadius","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,"reveal-background-color":t.revealBackgroundColor,"reveal-border-color":t.revealBorderColor,foreground:e.thisValue==s.num?t.foreground:"","is-box-shadow":t.shadow,borderRadius:t.borderRadius,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","reveal-background-color","reveal-border-color","foreground","is-box-shadow","borderRadius","onClick"])):n.createCommentVNode("",!0)],64))),256)),n.createVNode(r,{disabled:e.thisValue==t.total||e.isDisabled,class:n.normalizeClass([{small:t.small},"page-btn"]),theme:e.theme,background:t.background,"reveal-background-color":t.revealBackgroundColor,"reveal-border-color":t.revealBorderColor,"is-box-shadow":t.shadow,borderRadius:t.borderRadius,onClick:e.next},{default:n.withCtx(()=>[dg]),_:1},8,["disabled","class","theme","background","reveal-background-color","reveal-border-color","is-box-shadow","borderRadius","onClick"])])],2)}}}),Vs=W(hg),G1="",U1="",Y1="",ug=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 _(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]]),style:n.normalizeStyle({zIndex:e.thisValue?30:""})},[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"])],6),[[n.vShow,e.thisValue]])]),_:3})}}}),$s=W(ug),X1="",q1="",K1="",cg={class:"persona-content-block"},fg=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 _(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",cg,[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)}}}),Es=W(fg),Q1="",Z1="",ev="",mg={emits:["update:modelValue"],props:{idx:{default:0},els:{default:()=>[]},sliderBoxshadow:{default:!1},background:{default:""},sliderBorderRadius:{default:"3"},theme:{type:String,default:"global"}},data(){return{width:0,domLeft:0,domWidth:60,observer:null,styles:{slider:{background:""}}}},watch:{idx(t){this.moveInit()},left(t){this.moveInit()},width(t){this.moveInit()},currnetEl(){this.watchSizeInit()}},computed:{left(){let t=this.els,i=0;if(t.length===0)return 0;for(let e=0;e<this.idx;e++){let o=t[e];if(!o.show)i+=0;else{let r=o.el.clientWidth;i+=r}}return i},currnetEl(){return this.els&&this.els[this.idx]?this.els[this.idx]:null},$theme(){return _(this.$props).theme.value}},mounted(){this.$nextTick(()=>{this.moveInit(),this.watchSizeInit()})},methods:{moveInit(){let t=this.left-this.domLeft;t>0?this.widthExpandToRight(t):this.widthExpandToLeft(t)},watchSizeInit(){this.observer&&this.observer.disconnect(),!(!this.currnetEl||!this.currnetEl.el)&&(this.observer=new ResizeObserver(t=>{for(let i of t)this.width=this.currnetEl.el.clientWidth,this.moveInit()}),this.observer.observe(this.currnetEl.el))},widthExpandToRight(t){let i=Math.abs(t)+this.width;Q.to(this.$data,{domWidth:i,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.widthFormatToRight})},widthFormatToRight(){Q.to(this.$data,{domLeft:this.left,domWidth:this.width,duration:.2,ease:"power3.out"})},widthExpandToLeft(t){let i=Math.abs(t)+this.width;Q.to(this.$data,{domLeft:this.left,domWidth:i,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.widthFormatToLeft})},widthFormatToLeft(){Q.to(this.$data,{domWidth:this.width,duration:.2,ease:"power3.out"})}},beforeUnmount(){this.observer&&this.observer.disconnect()}},gg={class:"slider"};function pg(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",gg,[n.createElementVNode("span",{class:"fv-pivot-s",style:n.normalizeStyle({"margin-left":`${r.domLeft}px`,width:`${r.domWidth}px`})},[n.createElementVNode("p",{class:n.normalizeClass(["fv-pivot-s-item",[{"is-boxshadow":e.sliderBoxshadow}]]),style:n.normalizeStyle({background:e.background,borderRadius:e.sliderBorderRadius+"px"})},null,6)],4)])}const Ts=oe(mg,[["render",pg]]),wg={class:"pivot-wrapper"},bg={class:"pivot-container"},yg=["onClick"],kg=Object.assign({name:"FvPivot",components:{slider:Ts},data(){return{thisItems:[],thisValue:null,currentIdx:0,currentEls:[],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),this.refreshIdx()},foreground(t){this.stylesInit()},sliderBackground(t){this.stylesInit()}},computed:{itemWidth(){return t=>{if(!t.width)return"auto";let i=this.valueTrigger(t.width);return parseFloat(i).toString()==="NaN"||isNaN(i)?i:`${i}px`}},$theme(){return _(this.$props).theme.value}},mounted(){this.itemsInit(),this.defaultItemInit()},methods:{itemsInit(){let t={name:"Pivot",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(),this.$nextTick(()=>{this.refreshCurrentEls()})},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)}},defaultItemInit(){(!this.thisValue||!this.valueTrigger(this.thisValue.show))&&(this.thisValue=this.thisItems.find(t=>this.valueTrigger(t.show)&&!this.valueTrigger(t.disabled)))},refreshIdx(){if(!this.thisValue||!this.thisValue.key){this.currentIdx=0;return}let t=this.thisItems.findIndex(i=>i.key===this.thisValue.key);t<0&&(t=0),this.currentIdx=t},refreshCurrentEls(){let t=[];for(let i=0;i<this.thisItems.length;i++)t.push({el:this.$refs[`item_${i}`]?this.$refs[`item_${i}`][0]:null,show:this.valueTrigger(this.thisItems[i].show)});this.currentEls=t},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},padding:{default:""},itemPadding:{default:""},fontSize:{default:""},foreground:{default:""},choosenForeground:{default:""},sliderBackground:{default:""},sliderBoxshadow:{default:!1},sliderBorderRadius:{default:"3"},background:{default:""},borderRadius:{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({padding:t.padding,background:t.background,borderRadius:t.borderRadius+"px"})},[n.createElementVNode("div",wg,[n.createElementVNode("div",bg,[(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),padding:t.itemPadding}),onClick:l=>e.itemClick(r)},[n.renderSlot(e.$slots,"container",{item:r,index:s,eqal:e.eqal,valueTrigger:e.valueTrigger},()=>[n.createElementVNode("p",{style:n.normalizeStyle({fontSize:`${t.fontSize}px`,color:e.eqal(r)?t.choosenForeground:t.foreground})},n.toDisplayString(e.valueTrigger(r.name)),5)])],14,yg)),[[n.vShow,e.valueTrigger(r.show)]])),128))]),e.thisItems.length>0?(n.openBlock(),n.createBlock(Ts,{key:0,idx:e.currentIdx,els:e.currentEls,sliderBoxshadow:t.sliderBoxshadow,background:t.sliderBackground,sliderBorderRadius:t.sliderBorderRadius},null,8,["idx","els","sliderBoxshadow","background","sliderBorderRadius"])):n.createCommentVNode("",!0)])],6))}}),Ds=W(kg),iv="",nv="",ov="",vg=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 _(this.$props).theme.value},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}}},{props:{...A,modelValue:{default:0},foreground:{default:""},background:{default:""},borderRadius:{default:2},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,borderRadius:t.borderRadius+"px"})},[(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,borderRadius:t.borderRadius+"px"})},null,4),[[n.vShow,t.loading.toString()!="true"]])],6))}}),xs=W(vg),sv="",lv="",av="",Cg={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 Sg(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 Is=oe(Cg,[["render",Sg]]),Vg=["width","height"],$g=["r","cy","cx","stroke-width","stroke"],Eg=["r","cy","cx","stroke-width","stroke","stroke-dashoffset","stroke-dasharray"],Tg=Object.assign({name:"FvProgressRing",components:{legacyRing:Is},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 _(this.$props).theme.value}},mounted(){this.loadingInit()},methods:{loadingInit(){Q.to(this.$data.Loading,{ratio:70,duration:.8,repeat:-1,yoyo:!0,ease:"linear"}),Q.to(this.$data.Loading,{rotate:270,duration:.8,repeat:-1,ease:"linear"})},async syncValue(){await new Promise(t=>{Q.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,$g),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,Eg)],8,Vg)),[[n.vShow,!t.legacy]]),n.withDirectives(n.createVNode(Is,{size:t.size,color:t.color},null,8,["size","color"]),[[n.vShow,t.legacy]])],6))}}),Bs=W(Tg),hv="",uv="",cv="",Dg=["src"],xg=Object.assign({name:"FvRadio",computed:{$theme(){return _(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,Dg)):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))}}),Ns=W(xg),mv="",gv="",pv="",Ig={...A},Bg={name:"FvRadioGroup",emits:["change"],props:{...Ig,modelValue:{required:!0},disabled:{type:Boolean,default:!1},label:{type:String,default:""},inline:{type:Boolean,default:!1}},data(){return{}},computed:{$theme(){return _(this.$props).theme.value}},methods:{change(t){this.$emit("change",t)}}},Ng={key:0};function Lg(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",Ng,n.toDisplayString(e.label),1)):n.createCommentVNode("",!0),n.renderSlot(t.$slots,"default")],2)}const Ls=W(oe(Bg,[["render",Lg]])),bv="",yv="",kv="",Fg={class:"fv-rating-container"},Mg=["onMousemove","onTouchmove","onMouseleave","onTouchend","onClick"],Pg=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 _(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",Fg,[(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,Mg))),128))])],2))}}),Fs=W(Pg),Cv="",Sv="",Vv="",Rg=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 _(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))}}),Ms=W(Rg),Ev="",Tv="",Dv="",zg={width:"100%",height:"100%",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},_g=["r","id","gradientTransform"],Og=["stop-color"],Ag={key:1,offset:"1","stop-color":"rgba(255, 255, 255, 0)"},Wg=["offset","stop-color"],Hg=["r","id","gradientTransform"],Gg=["stop-color"],Ug={key:1,offset:"1","stop-color":"rgba(255, 255, 255, 0)"},Yg=["offset","stop-color"],jg=["r","id","gradientTransform"],Xg=n.createElementVNode("stop",{offset:"0","stop-color":"rgba(255, 255, 255, 0)"},null,-1),qg=["stop-color"],Kg=n.createElementVNode("stop",{offset:"0.66","stop-color":"rgba(255, 255, 255, 0)"},null,-1),Jg=n.createElementVNode("stop",{offset:"1","stop-color":"rgba(255, 255, 255, 0)"},null,-1),Qg=["x","y","rx","ry"],Zg=["x","y","rx","ry"],ep=Object.assign({name:"FvRevealContainer",beforeMount(){this.revealCache=Pn()},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 _(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,{passive:!0}),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=i+t.offsetWidth,this.offset.bottom=e+t.offsetHeight,{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",zg,[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,Og)):n.createCommentVNode("",!0),t.backgroundGradientList.length==0?(n.openBlock(),n.createElementBlock("stop",Ag)):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,Wg))),128))],8,_g),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,Gg)):n.createCommentVNode("",!0),t.borderGradientList.length==0?(n.openBlock(),n.createElementBlock("stop",Ug)):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,Yg))),128))],8,Hg),n.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:e.wave,gradientUnits:"userSpaceOnUse",spreadMethod:"pad",id:`clickG_${e.id}`,gradientTransform:e.borderMatrix},[Xg,n.createElementVNode("stop",{offset:"0.33","stop-color":t.backgroundColor},null,8,qg),Kg,Jg],8,jg)]),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,Qg),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,Zg),[[n.vShow,e.clickDown]])],512)),[[n.vShow,e.offset.right-e.offset.left>0]])],6))}}),Ps=W(ep),Iv="",Bv="",Nv="",tp={class:"right-menu-list"},ip=n.createElementVNode("span",null,[n.createElementVNode("p",null,"Selected")],-1),np=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 _(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",tp,[n.renderSlot(r.$slots,"default",{},()=>[ip])])],6),[[n.vShow,r.thisValue]])]),_:3},8,["name"]))}}),Rs=W(np),Fv="",Mv="",Pv="",op={key:0},rp=n.createElementVNode("p",null,"Scroll Story",-1),sp=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 _(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",op,[n.renderSlot(e.$slots,"default",{},()=>[rp])],512)),[[n.vShow,e.show]]):n.createCommentVNode("",!0)]),_:3},8,["name"])],2))}}),zs=W(sp),zv="",_v="",Ov="",lp={class:"search-box-placeholder"},ap={class:"search-box-container"},dp=["type","placeholder","readonly","disabled","maxlength"],hp={class:"search-result-container",ref:"filterResult"},up=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 _(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",lp,[n.renderSlot(e.$slots,"resultPlaceholder",{resultPlaceholder:t.resultPlaceholder})],512),[[n.vShow,t.resultPlaceholder.length>0]])]),_:3}),n.createElementVNode("div",ap,[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,dp),[[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",hp,[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)}}}),_s=W(up),Wv="",Hv="",Gv="",cp=n.createElementVNode("div",{class:"sample",style:{"background-image":"inherit"}},null,-1),fp=Object.assign({name:"FvShimmer",data(){return{gradientSize:80,x:0,y:0,timer:{}}},computed:{$theme(){return _(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,Q.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",{},()=>[cp])],4)],2))}}),Os=W(fp),Yv="",jv="",Xv="",mp=["title"],gp={class:"fv-slider-unit-container"},pp=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 _(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,mp),[[n.vShow,e.isShowLabel&&e.moveable]]),n.createElementVNode("div",gp,[(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))}}),As=W(pp),Kv="",Jv="",Qv="",wp={class:"fv-swiper-container swiper-container",ref:"container"},bp={class:"swiper-wrapper",ref:"wrapper"},yp={class:"fv-SwipeControl-left swiper-slide"},kp=["onClick"],vp={class:"fv-SwipeControl-right swiper-slide"},Cp=["onClick"],Sp=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 _(this.$props).theme.value}},mounted(){this.init(),this.isDisabled?this.swiper.disable():this.swiper.enable()},methods:{init(){this.swiper=new ne(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",wp,[n.createElementVNode("div",bp,[n.createElementVNode("div",yp,[(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,kp))),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",vp,[(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,Cp))),128))])],512)],512)],2))}}),Ws=W(Sp),eC="",tC="",iC="",Vp={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=at(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}}},$p=["draggable"],Ep={class:"fv-tableview-quick-tool"};function Tp(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",Ep,[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,$p)}const Hs=oe(Vp,[["render",Tp]]),Dp={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:{}},xp={class:"fv-tableview-addmenu"},Ip=["onClick"],Bp={class:"addmenu-left-block"},Np=n.createElementVNode("div",{class:"addmenu-right-block"},[n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"})],-1);function Lp(t,i,e,o,r,s){const l=n.resolveComponent("fv-text-box");return n.openBlock(),n.createElementBlock("div",xp,[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",Bp,[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)]),Np],8,Ip)),[[n.vShow,s.isShow(a)]])),128))])}const Gs=oe(Dp,[["render",Lp]]),Fp={props:{heads:{type:Array,default:()=>[]},extensions:{default:()=>[]},i18n:{type:Function,default:t=>t},foreground:{default:"rgba(0, 90, 158, 1)"},showAdd:{default:!0},showDrag:{default:!0},showVisible:{default:!0},theme:{default:"light"}},data(){return{filterValue:"",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=at(this.foreground);return t=t.alpha(.2),t.cssa()}catch{return""}},isShow(){return t=>this.filterValue?t.name.toLowerCase().includes(this.filterValue.toLowerCase()):!0}},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},handleItemClick(t,i){t.stopPropagation(),this.$emit("item-click",i)}}},Mp={class:"fv-tableview-addmenu"},Pp={class:"addmenu-title-block"},Rp=["onClick","draggable","onDragover","onDrop","onDragstart"],zp={class:"addmenu-left-block"},_p={key:0,class:"addmenu-right-block"},Op=["onClick"],Ap=n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"},null,-1),Wp=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Add"},null,-1);function Hp(t,i,e,o,r,s){const l=n.resolveComponent("fv-text-box");return n.openBlock(),n.createElementBlock("div",Mp,[n.createElementVNode("div",Pp,n.toDisplayString(e.i18n("Properties")),1),n.createElementVNode("div",{style:{position:"relative",padding:"0px 10px"},onClick:i[1]||(i[1]=a=>a.stopPropagation())},[n.createVNode(l,{modelValue:r.filterValue,"onUpdate:modelValue":i[0]||(i[0]=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.heads,(a,d)=>n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:d,ref_for:!0,ref:`item-${d}`,onClick:h=>s.handleItemClick(h,a),draggable:r.dragDown,onDragover:h=>s.dragOver(h,d),onDragleave:i[3]||(i[3]=(...h)=>s.dragLeave&&s.dragLeave(...h)),onDrop:h=>s.dropItem(h,a),onDragstart:h=>s.handleRowDrag(h,a),onDragend:i[4]||(i[4]=(...h)=>s.handleDragEnd&&s.handleDragEnd(...h))},[n.createElementVNode("i",{class:"onDrop",style:n.normalizeStyle({background:r.dropHead===a?s.dropBackground:""})},null,4),n.createElementVNode("div",zp,[n.withDirectives(n.createElementVNode("i",{class:"ms-Icon ms-Icon--GripperDotsVertical",onMousedown:i[2]||(i[2]=h=>r.dragDown=!0)},null,544),[[n.vShow,!r.filterValue&&e.showDrag]]),n.renderSlot(t.$slots,"icon",{item:a},()=>[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)]),e.showVisible?(n.openBlock(),n.createElementBlock("div",_p,[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${a.visible?"View":"Hide"}`]]),onClick:h=>s.switchVisible(a)},null,10,Op),Ap])):n.createCommentVNode("",!0)],40,Rp)),[[n.vShow,s.isShow(a)]])),128)),n.withDirectives(n.createElementVNode("hr",null,null,512),[[n.vShow,e.showAdd]]),n.withDirectives(n.createElementVNode("span",{onClick:i[5]||(i[5]=a=>{t.$emit("add-click"),a.stopPropagation()})},[Wp,n.createElementVNode("p",null,n.toDisplayString(e.i18n("New Property")),1)],512),[[n.vShow,e.showAdd]])])}const Rn=oe(Fp,[["render",Hp]]),Gp={components:{currentProperty:Rn},props:{modelValue:{type:Object,default:()=>[]},sourceData:{type:Object,default:()=>[]},extensions:{default:()=>[]},i18n:{type:Function,default:t=>t},foreground:{default:"rgba(0, 90, 158, 1)"},rightMenuBackground:{default:"rgba(255, 255, 255, 1)"},theme:{default:"light"}},data(){return{dropHead:null,dragDown:!1,dragItem:null,sortOptions:[{key:!1,text:this.i18n("Asc")},{key:!0,text:this.i18n("Desc")}],editMode:"add",editItem:null,show:{add:!1}}},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=at(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.modelValue[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.modelValue.findIndex(s=>s===i),o=this.modelValue[e];this.modelValue.splice(e,1);let r=this.modelValue.findIndex(s=>s===t);this.modelValue.splice(r,0,o)},showProperties(t,i,e=null){t.preventDefault(),t.stopPropagation(),this.editMode=i,this.editItem=e,this.$refs.addMenu.rightClick(t,document.body)},addSortHead(t){if(this.editMode==="add"){let i=this.modelValue.findIndex(o=>o.head===t);i!==-1&&this.modelValue.splice(i,1);let e=i===-1?this.modelValue.length:i;this.modelValue.splice(e,0,{head:t,desc:{key:!1,text:this.i18n("Asc")}})}else this.editItem.head=t;this.show.add=!1},removeItem(t){this.modelValue.splice(t,1)}}},Up={class:"fv-tableview-addmenu"},Yp={class:"addmenu-title-block"},jp=["draggable","onDragover","onDrop","onDragstart"],Xp={class:"addmenu-left-block"},qp={style:{width:"20px"}},Kp=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel"},null,-1),Jp=n.createElementVNode("div",{class:"addmenu-right-block"},null,-1),Qp=n.createElementVNode("hr",null,null,-1),Zp=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Add"},null,-1),ew={style:{width:"20px"}};function tw(t,i,e,o,r,s){const l=n.resolveComponent("fv-text-box"),a=n.resolveComponent("fv-combobox"),d=n.resolveComponent("fv-button"),h=n.resolveComponent("current-property"),c=n.resolveComponent("fv-right-menu");return n.openBlock(),n.createElementBlock("div",Up,[n.createElementVNode("div",Yp,n.toDisplayString(e.i18n("Sort By")),1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.modelValue,(u,f)=>(n.openBlock(),n.createElementBlock("span",{key:f,ref_for:!0,ref:`item-${f}`,style:{height:"45px"},onClick:i[1]||(i[1]=m=>m.stopPropagation()),draggable:r.dragDown,onDragover:m=>s.dragOver(m,f),onDragleave:i[2]||(i[2]=(...m)=>s.dragLeave&&s.dragLeave(...m)),onDrop:m=>s.dropItem(m,u),onDragstart:m=>s.handleRowDrag(m,u),onDragend:i[3]||(i[3]=(...m)=>s.handleDragEnd&&s.handleDragEnd(...m))},[n.createElementVNode("i",{class:"onDrop",style:n.normalizeStyle({background:r.dropHead===u?s.dropBackground:""})},null,4),n.createElementVNode("div",Xp,[n.createElementVNode("i",{class:"ms-Icon ms-Icon--GripperDotsVertical",onMousedown:i[0]||(i[0]=m=>r.dragDown=!0)},null,32),n.createVNode(l,{"model-value":u.head.name,"border-radius":8,icon:"ChevronDown","border-color":"rgba(120, 120, 120, 0.1)","font-size":"12","reveal-border":!0,"is-box-shadow":!0,readonly:"",cursor:"pointer",style:{width:"120px",height:"35px"},onClick:m=>s.showProperties(m,"edit",u)},{"left-icon":n.withCtx(()=>[n.createElementVNode("p",qp,n.toDisplayString(u.head.emoji),1)]),_:2},1032,["model-value","onClick"]),n.createVNode(a,{modelValue:u.desc,"onUpdate:modelValue":m=>u.desc=m,options:r.sortOptions,style:{width:"80px"}},null,8,["modelValue","onUpdate:modelValue","options"]),n.createVNode(d,{class:"no-margin","font-size":12,"border-radius":8,"is-box-shadow":!0,style:{width:"35px",height:"35px"},onClick:m=>s.removeItem(f)},{default:n.withCtx(()=>[Kp]),_:2},1032,["onClick"])]),Jp],40,jp))),128)),Qp,n.createElementVNode("span",{onClick:i[4]||(i[4]=u=>s.showProperties(u,"add"))},[Zp,n.createElementVNode("p",null,n.toDisplayString(e.i18n("New Property")),1)]),n.createVNode(c,{modelValue:r.show.add,"onUpdate:modelValue":i[5]||(i[5]=u=>r.show.add=u),ref:"addMenu",theme:e.theme,rightMenuWidth:250,background:e.rightMenuBackground,fullExpandAnimation:!0,style:{"z-index":"6"}},{default:n.withCtx(()=>[n.createVNode(h,{heads:e.sourceData.heads,extensions:e.extensions,i18n:e.i18n,foreground:e.foreground,showAdd:!1,showVisible:!1,showDrag:!1,theme:e.theme,onItemClick:s.addSortHead},{icon:n.withCtx(({item:u})=>[n.createElementVNode("p",ew,n.toDisplayString(u.emoji),1)]),_:1},8,["heads","extensions","i18n","foreground","theme","onItemClick"])]),_:1},8,["modelValue","theme","background"])])}const Us=oe(Gp,[["render",tw]]),Ys={...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}},iw={emits:["mousemove","mouseup","touchstart","touchmove","touchend","mousedown","mouseup"],props:{theme:{type:String,default:"system"}},data(){return{moveable:!1}},computed:{$theme(){return _(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))}}},nw=[n.createElementVNode("i",null,null,-1)];function ow(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))},nw,32)}const js=oe(iw,[["render",ow]]),rw={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)}},mounted(){this.eventInit()},methods:{eventInit(){},stopDragWrapper(t){t.stopPropagation()}},beforeUnmount(){}};function sw(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[2]||(i[2]=a=>{r.thisValue=!1,a.stopPropagation()}),onMousemove:i[3]||(i[3]=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}),onDragstart:i[0]||(i[0]=(...a)=>s.stopDragWrapper&&s.stopDragWrapper(...a)),onClick:i[1]||(i[1]=a=>a.stopPropagation())},[n.renderSlot(t.$slots,"default")],36),[[n.vShow,r.thisValue]])]),_:3})]),_:3},8,["target","top","mode"])],544)),[[n.vShow,r.thisValue]])}const xi=oe(rw,[["render",sw]]),lw={style:{"margin-left":"5px"}},aw={style:{"margin-left":"5px"}},dw={class:"fv-tableview-default-edittool-row",style:{"margin-top":"10px"}},hw={class:"fv-tableview-icon-block"},uw=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Equalizer"},null,-1),cw={class:"row-title"},fw={class:"fv-tableview-default-edittool-row",style:{margin:"10px 0px"}},mw=n.createElementVNode("hr",null,null,-1),gw=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Ascending"},null,-1),pw={class:"row-title"},ww=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Descending"},null,-1),bw={class:"row-title"},yw=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Filter"},null,-1),kw={class:"row-title"},vw=n.createElementVNode("hr",null,null,-1),Cw=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Hide"},null,-1),Sw={class:"row-title"},Vw={class:"row-title"},$w={class:"fv-tableview-default-edittool-row",style:{"margin-bottom":"10px"}},Ew={class:"row-title"},Tw=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Copy"},null,-1),Dw={class:"row-title"},xw=n.createElementVNode("i",{class:"row-icon ms-Icon ms-Icon--Delete"},null,-1),Iw={class:"row-title"},Bw=n.createElementVNode("hr",null,null,-1),Nw={class:"fv-tableview-default-edittool-row",style:{"margin-bottom":"10px"}},Lw={class:"row-title"},Xs=Object.assign({name:"FvTableViewHeadBase",components:{spliter:js,editWrapper:xi},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},stopWrapper(t){this.show.edit&&t.preventDefault()},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:Ys,emits:["show-edit","delete-column","duplicate-column","drop-item","sort-asc","sort-desc","filter"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-text-box"),s=n.resolveComponent("fv-toggle-switch");return e.modelValue.__guid?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["fv-tableview-head-item",[{onDrop:e.dropMode,fixed:e.modelValue.fixed}]]),onDragstart:o[19]||(o[19]=(...l)=>e.stopWrapper&&e.stopWrapper(...l)),onDragover:o[20]||(o[20]=(...l)=>e.dragOver&&e.dragOver(...l)),onDragleave:o[21]||(o[21]=(...l)=>e.dragLeave&&e.dragLeave(...l)),onDrop:o[22]||(o[22]=(...l)=>e.dropItem&&e.dropItem(...l)),style:n.normalizeStyle({left:e.modelValue.fixed&&!e.modelValue.fixedSide?e.fixedLeftWidth+"px":"",right:e.modelValue.fixed&&e.modelValue.fixedSide?e.fixedRightWidth+"px":"",width:e.modelValue.width+"px","border-color":e.dropMode?e.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",lw,n.toDisplayString(e.modelValue.emoji),1),n.createElementVNode("p",aw,n.toDisplayString(e.modelValue.name),1)])],32),n.createVNode(js,{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(xi,{modelValue:e.show.edit,"onUpdate:modelValue":o[18]||(o[18]=l=>e.show.edit=l),el:()=>e.$el,wrapperWidth:e.wrapperWidth,isUnder:e.isUnder,ref:"edit_wrapper"},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"entire",{modelValue:e.modelValue,show:e.show.edit},()=>[n.createElementVNode("div",dw,[n.createElementVNode("p",hw,n.toDisplayString(e.modelValue.emoji),1),n.createVNode(r,{modelValue:e.modelValue.name,"onUpdate:modelValue":o[6]||(o[6]=l=>e.modelValue.name=l),placeholder:e.i18n("Column Name"),theme:e.theme,underline:"",ref:"text",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"rgba(247, 247, 245, 1)","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":e.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))},[uw,n.createElementVNode("p",cw,n.toDisplayString(e.show.editKey?e.i18n("Save Property Key"):e.i18n("Edit Property Key")),1)]),n.withDirectives(n.createElementVNode("div",fw,[n.createVNode(r,{modelValue:e.thisKeyValue,"onUpdate:modelValue":o[8]||(o[8]=l=>e.thisKeyValue=l),placeholder:e.i18n("Key Name")+" "+e.i18n("(Press Enter to Confirm)"),ref:"keyName","left-icon":"Link",underline:"",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"rgba(247, 247, 245, 1)","border-color":e.thisKeyValue?"rgba(120, 120, 120, 0.1)":"rgba(200, 38, 45, 1)","focus-border-color":e.thisKeyValue?e.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","background","border-color","focus-border-color","onKeydown"])],512),[[n.vShow,e.show.editKey]]),n.renderSlot(e.$slots,"menu"),mw,n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",onClick:o[9]||(o[9]=l=>{e.$emit("sort-asc",e.modelValue),e.show.edit=!1})},[gw,n.createElementVNode("p",pw,n.toDisplayString(e.i18n("Sort Ascending")),1)]),n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",onClick:o[10]||(o[10]=l=>{e.$emit("sort-desc",e.modelValue),e.show.edit=!1})},[ww,n.createElementVNode("p",bw,n.toDisplayString(e.i18n("Sort Descending")),1)]),n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",onClick:o[11]||(o[11]=l=>{e.$emit("filter",e.modelValue),e.show.edit=!1})},[yw,n.createElementVNode("p",kw,n.toDisplayString(e.i18n("Filter")),1)]),vw,n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",onClick:o[12]||(o[12]=(...l)=>e.switchHide&&e.switchHide(...l))},[Cw,n.createElementVNode("p",Sw,n.toDisplayString(e.i18n("Hide in View")),1)]),n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",onClick:o[13]||(o[13]=(...l)=>e.switchFixed&&e.switchFixed(...l))},[n.createElementVNode("i",{class:n.normalizeClass(["row-icon ms-Icon",[`ms-Icon--${e.modelValue.fixed?"Unpin":"Pin"}`]])},null,2),n.createElementVNode("p",Vw,n.toDisplayString(e.modelValue.fixed?e.i18n("Unfixed Column"):e.i18n("Fixed Column")),1)]),n.withDirectives(n.createElementVNode("div",$w,[n.createElementVNode("p",Ew,n.toDisplayString(e.i18n("Fixed Side")),1),n.createVNode(s,{modelValue:e.modelValue.fixedSide,"onUpdate:modelValue":o[14]||(o[14]=l=>e.modelValue.fixedSide=l),on:e.i18n("Right"),off:e.i18n("Left"),insideContent:!0,switchOnBackground:e.foreground,width:"60",style:{"margin-left":"15px"}},null,8,["modelValue","on","off","switchOnBackground"])],512),[[n.vShow,e.modelValue.fixed]]),n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",onClick:o[15]||(o[15]=l=>{e.show.edit=!1,e.$emit("duplicate-column",e.index)})},[Tw,n.createElementVNode("p",Dw,n.toDisplayString(e.i18n("Duplicate Column")),1)]),n.createElementVNode("div",{class:"fv-tableview-default-edittool-row lighter",onClick:o[16]||(o[16]=(...l)=>e.deleteColumn&&e.deleteColumn(...l))},[xw,n.createElementVNode("p",Iw,n.toDisplayString(e.i18n("Delete Column")),1)]),Bw,n.createElementVNode("div",Nw,[n.createElementVNode("p",Lw,n.toDisplayString(e.i18n("Wrap Column")),1),n.createVNode(s,{modelValue:e.modelValue.wrap,"onUpdate:modelValue":o[17]||(o[17]=l=>e.modelValue.wrap=l),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"])])])]),_:3},8,["modelValue","el","wrapperWidth","isUnder"])],38)):n.createCommentVNode("",!0)}}}),qs={...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}},Fw={class:"fv-tableview-default-content"},Ks=Object.assign({name:"FvTableViewCellBase",components:{editWrapper:xi},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=at(this.foreground);return t=t.alpha(.1),t.cssa()}catch{return""}},outlineColor(){try{let t=at(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:qs,emits:["show-edit","set-select","drop-item"],setup(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-text-box");return e.head.__guid?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["fv-tableview-cell-item",[{wrappable:e.head.wrap,fixed:e.head.fixed,selected:e.isSelected,"first-selected":e.isFirstSelected}]]),style:n.normalizeStyle({left:e.head.fixed&&!e.head.fixedSide?e.fixedLeftWidth+"px":"",right:e.head.fixed&&e.head.fixedSide?e.fixedRightWidth+"px":"",width:e.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",Fw,n.toDisplayString(e.modelValue[e.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(xi,{modelValue:e.show.edit,"onUpdate:modelValue":o[5]||(o[5]=s=>e.show.edit=s),el:()=>e.$el,wrapperWidth:e.wrapperWidth,isUnder:e.isUnder,ref:"edit_wrapper"},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"entire",{modelValue:e.modelValue,show:e.show.edit},()=>[n.createVNode(r,{modelValue:e.modelValue[e.head.key],"onUpdate:modelValue":o[4]||(o[4]=s=>e.modelValue[e.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":e.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)}}}),sC="",lC="",aC="",Ii=Ys,Js=W(Xs),Qs=[{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"}],Zs=[{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"}],dC="",Mw={class:"fv-tableview-default-edittool-row between"},Pw={class:"row-small-title",style:{"margin-left":"10px"}},Rw=["title"],zw=n.createElementVNode("hr",null,null,-1),_w={class:"number-edittool-title"},Ow={class:"hor-block"},Aw=["onClick"],Ww={class:"title-block"},Hw={class:"show-as-config-block"},Gw={class:"show-as-config-item"},Uw={style:{"margin-left":"5px","font-size":"12px"}},Yw={class:"show-as-config-custom-drop-down"},jw=n.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronDown"},null,-1),Xw={class:"show-as-config-item"},qw={class:"show-as-config-item"},Kw=Object.assign({name:"numberHead",data(){return{showAsList:[{key:"number",text:"Number",icon:"NumberField"},{key:"bar",text:"Bar",icon:"ChromeMinimizeContrast"},{key:"ring",text:"Ring",icon:"ProgressRingDots"}],currentColors:[],currentFormats:[],colorList:Qs,numberFormatList:Zs}},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()}}},{props:Ii,setup(t){const i=t;return(e,o)=>{const r=n.resolveComponent("fv-drop-down"),s=n.resolveComponent("fv-text-box"),l=n.resolveComponent("fv-toggle-switch"),a=n.resolveComponent("fv-table-view-head-base");return n.openBlock(),n.createBlock(a,n.mergeProps(i,{wrapperWidth:"260px",formatFunction:e.formatNumberHead}),{menu:n.withCtx(()=>[n.createElementVNode("div",Mw,[n.createElementVNode("span",Pw,n.toDisplayString(e.i18n("Number Format")),1),n.createVNode(r,{modelValue:e.currentFormats,"onUpdate:modelValue":o[0]||(o[0]=d=>e.currentFormats=d),options:n.unref(Zs),theme:e.theme,placeholder:e.i18n("Select Number Format"),"input-height":"30px","input-font-size":12,style:{width:"120px",flex:"1","margin-left":"5px"}},{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,Rw)]),_:1},8,["modelValue","options","theme","placeholder"])]),zw,n.createElementVNode("div",{class:n.normalizeClass(["fv-tableview-number-edittool-inside-block",[{dark:e.theme==="dark"}]])},[n.createElementVNode("span",_w,n.toDisplayString(e.i18n("Show as")),1),n.createElementVNode("div",Ow,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.showAsList,(d,h)=>(n.openBlock(),n.createElementBlock("div",{key:h,class:"hor-item",style:n.normalizeStyle({color:e.modelValue.showAs===d.key?e.foreground:"",outline:e.modelValue.showAs===d.key?`2px solid ${e.foreground}`:""}),onClick:c=>e.modelValue.showAs=d.key},[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${d.icon}`]])},null,2),n.createElementVNode("p",Ww,n.toDisplayString(d.text),1)],12,Aw))),128))]),n.createElementVNode("div",Hw,[n.createElementVNode("div",Gw,[n.createElementVNode("span",null,n.toDisplayString(e.i18n("Color")),1),n.createVNode(r,{modelValue:e.currentColors,"onUpdate:modelValue":o[1]||(o[1]=d=>e.currentColors=d),theme:e.theme,options:n.unref(Qs),style:{width:"120px","margin-left":"5px"}},{options:n.withCtx(d=>[n.createElementVNode("i",{class:"color-block",style:n.normalizeStyle([{background:d.option.color},{"flex-shrink":"0"}])},null,4),n.createElementVNode("p",Uw,n.toDisplayString(e.i18n(e.getColorName(d.option.name))),1)]),"drop-carrier":n.withCtx(d=>[n.createElementVNode("div",Yw,[n.createElementVNode("i",{class:"color-block",style:n.normalizeStyle({background:d.value.length>0?d.value[0].color:""})},null,4),n.createElementVNode("span",null,n.toDisplayString(e.i18n(e.getColorName(d.value.length>0?d.value[0].name:""))),1),jw])]),_:1},8,["modelValue","theme","options"])]),n.createElementVNode("div",Xw,[n.createElementVNode("span",null,n.toDisplayString(e.i18n("Divide by")),1),n.createVNode(s,{modelValue:e.modelValue.divideBy,"onUpdate:modelValue":o[2]||(o[2]=d=>e.modelValue.divideBy=d),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:o[3]||(o[3]=d=>e.$refs.text.focus())},null,8,["modelValue","placeholder","theme","background","focus-border-color"])]),n.createElementVNode("div",qw,[n.createElementVNode("span",null,n.toDisplayString(e.i18n("Show Number")),1),n.createVNode(l,{modelValue:e.modelValue.showNumber,"onUpdate:modelValue":o[4]||(o[4]=d=>e.modelValue.showNumber=d),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"])])])],2)]),_:1},16,["formatFunction"])}}}),uC="",cC="",fC="",Bi=qs,el=W(Ks),Jw={style:{width:"100%","padding-right":"5px",display:"flex","justify-content":"flex-end","align-items":"center"}},Qw={class:"fv-tableview-default-content"},Zw={style:{width:"100%",display:"flex","justify-content":"flex-end","align-items":"center"}},eb={class:"fv-tableview-default-content"},tb=Object.assign({name:"numberCell",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.modelValue[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.modelValue[this.head.key]):this.modelValue[this.head.key]}}},{props:Bi,setup(t){const i=t;return(e,o)=>{const r=n.resolveComponent("fv-progress-bar"),s=n.resolveComponent("fv-progress-ring"),l=n.resolveComponent("fv-table-view-cell-base");return n.openBlock(),n.createBlock(l,n.mergeProps(i,{onDropItem:o[0]||(o[0]=a=>e.$emit("drop-item",a)),onSetSelect:o[1]||(o[1]=a=>e.$emit("set-select",a))}),{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("p",{class:"fv-tableview-default-content",style:{width:"100%","text-align":"right"}},n.toDisplayString(e.computedContent),513),[[n.vShow,e.head.showAs==="number"]]),n.withDirectives(n.createElementVNode("div",Jw,[n.createElementVNode("p",Qw,n.toDisplayString(e.computedContent),1),n.createVNode(r,{"model-value":e.computedPercent,foreground:e.head.showColor,style:{width:"10px",flex:"1","margin-left":"5px"}},null,8,["model-value","foreground"])],512),[[n.vShow,e.head.showAs==="bar"]]),n.withDirectives(n.createElementVNode("div",Zw,[n.createElementVNode("p",eb,n.toDisplayString(e.computedContent),1),n.createVNode(s,{"model-value":e.computedPercent,color:e.head.showColor,r:"12",borderWidth:"3"},null,8,["model-value","color"])],512),[[n.vShow,e.head.showAs==="ring"]])]),_:1},16)}}}),ib={name:"Number",type:"number",icon:"NumberField",emoji:"\u{1F522}",headComponent:n.markRaw(Kw),cellComponent:n.markRaw(tb),filter:({input:t,value:i})=>t?t===i:!0,sortAsc:(t,i)=>t-i,sortDesc:(t,i)=>i-t},nb={class:"fv-tableview-default-edittool-row between"},ob={style:{"margin-left":"10px"}},rb=["title"],sb={class:"fv-tableview-default-edittool-row between",style:{"margin-top":"10px","margin-bottom":"10px"}},lb={style:{"margin-left":"10px"}},ab=["title"],db=Object.assign({name:"dateHead",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()}}},{props:Ii,setup(t){const i=t;return(e,o)=>{const r=n.resolveComponent("fv-drop-down"),s=n.resolveComponent("fv-table-view-head-base");return n.openBlock(),n.createBlock(s,n.mergeProps(i,{wrapperWidth:"260px",dragItem:e.dragItem,formatFunction:e.formatDateHead}),{menu:n.withCtx(()=>[n.createElementVNode("div",nb,[n.createElementVNode("span",ob,n.toDisplayString(e.i18n("Date Format")),1),n.createVNode(r,{modelValue:e.currentDateFormats,"onUpdate:modelValue":o[0]||(o[0]=l=>e.currentDateFormats=l),options:e.dateFormatList,theme:e.theme,placeholder:e.i18n("Select Date Format"),"input-height":"30px","input-font-size":12,style:{width:"120px"}},{options:n.withCtx(l=>[n.createElementVNode("p",{title:e.i18n(l.option.text),style:{"font-size":"12px"}},n.toDisplayString(e.i18n(l.option.text)),9,rb)]),_:1},8,["modelValue","options","theme","placeholder"])]),n.createElementVNode("div",sb,[n.createElementVNode("span",lb,n.toDisplayString(e.i18n("Time Format")),1),n.createVNode(r,{modelValue:e.currentTimeFormats,"onUpdate:modelValue":o[1]||(o[1]=l=>e.currentTimeFormats=l),options:e.timeFormatList,theme:e.theme,placeholder:e.i18n("Select Time Format"),"input-height":"30px","input-font-size":12,style:{width:"120px"}},{options:n.withCtx(l=>[n.createElementVNode("p",{title:e.i18n(l.option.text),style:{"font-size":"12px"}},n.toDisplayString(e.i18n(l.option.text)),9,ab)]),_:1},8,["modelValue","options","theme","placeholder"])])]),_:1},16,["dragItem","formatFunction"])}}}),hb={class:"fv-tableview-default-content",style:{width:"100%","text-align":"right"}},ub={class:"fv-tableview-default-edittool-row"},cb={class:"fv-tableview-default-edittool-row",style:{"margin-bottom":"10px"}},fb={class:"fv-tableview-default-edittool-row"},mb={class:"fv-tableview-default-edittool-row",style:{"margin-bottom":"10px"}},gb=n.createElementVNode("hr",null,null,-1),pb={key:1,class:"fv-tableview-default-edittool-row",style:{"margin-bottom":"10px"}},wb=Object.assign({name:"dateCell",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()}}},{props:Bi,setup(t){const i=t;return(e,o)=>{const r=n.resolveComponent("fv-text-box"),s=n.resolveComponent("fv-calendar-view"),l=n.resolveComponent("fv-time-picker"),a=n.resolveComponent("fv-toggle-switch"),d=n.resolveComponent("fv-table-view-cell-base");return n.openBlock(),n.createBlock(d,n.mergeProps(i,{formatFunction:e.formatDate,wrapperWidth:"300px",isUnder:!0,onDropItem:o[6]||(o[6]=h=>e.$emit("drop-item",h)),onSetSelect:o[7]||(o[7]=h=>e.$emit("set-select",h))}),{default:n.withCtx(()=>[n.createElementVNode("p",hb,n.toDisplayString(e.computedContent),1)]),entire:n.withCtx(h=>[n.createElementVNode("div",{class:"fv-tableview-default-edittool-row",style:{"margin-top":"10px"},onClick:o[0]||(o[0]=c=>c.stopPropagation())},[n.createVNode(r,{modelValue:e.startDateStr,theme:e.theme,underline:"",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"rgba(247, 247, 245, 1)","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(r,{modelValue:e.startTimeStr,theme:e.theme,underline:"",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"rgba(247, 247, 245, 1)","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:o[1]||(o[1]=c=>c.stopPropagation())},[n.createVNode(r,{modelValue:e.endDateStr,theme:e.theme,underline:"",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"rgba(247, 247, 245, 1)","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(r,{modelValue:e.endTimeStr,theme:e.theme,underline:"",background:e.theme==="dark"?"rgba(0, 0, 0, 0.3)":"rgba(247, 247, 245, 1)","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]]),h.show?(n.openBlock(),n.createBlock(s,{key:0,modelValue:e.currentDate,"onUpdate:modelValue":o[2]||(o[2]=c=>e.currentDate=c),theme:e.theme,multiple:e.head.showEndDate?"range":"single",ref:"calendar",choosenDates:e.currentDatesRange,foreground:e.foreground,style:{scale:"0.95"},onChoosenDatesObj:e.selectChoosenDates},{weekday_content:n.withCtx(c=>[n.createTextVNode(n.toDisplayString(e.i18n(c.modelValue)),1)]),_:2},1032,["modelValue","theme","multiple","choosenDates","foreground","onChoosenDatesObj"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",ub,[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",cb,[e.modelValue[e.head.key]&&e.modelValue[e.head.key].start?(n.openBlock(),n.createBlock(l,{key:0,modelValue:e.modelValue[e.head.key].start,"onUpdate:modelValue":o[3]||(o[3]=c=>e.modelValue[e.head.key].start=c),theme:e.theme,timeType:e.head.timeFormat=="12"?12:24,style:{width:"100%"},onChange:e.syncStrValue},null,8,["modelValue","theme","timeType","onChange"])):n.createCommentVNode("",!0)],512),[[n.vShow,e.head.timeFormat!=="hidden"]]),n.withDirectives(n.createElementVNode("div",fb,[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",mb,[e.modelValue[e.head.key]&&e.modelValue[e.head.key].end?(n.openBlock(),n.createBlock(l,{key:0,modelValue:e.modelValue[e.head.key].end,"onUpdate:modelValue":o[4]||(o[4]=c=>e.modelValue[e.head.key].end=c),theme:e.theme,timeType:e.head.timeFormat=="12"?12:24,style:{width:"100%"},onChange:e.syncStrValue},null,8,["modelValue","theme","timeType","onChange"])):n.createCommentVNode("",!0)],512),[[n.vShow,e.head.showEndDate&&e.head.timeFormat!=="hidden"]]),gb,e.modelValue[e.head.key]&&e.head.showEndDate!==void 0?(n.openBlock(),n.createElementBlock("div",pb,[n.createElementVNode("span",null,n.toDisplayString(e.i18n("End Date")),1),n.createVNode(a,{modelValue:e.head.showEndDate,"onUpdate:modelValue":o[5]||(o[5]=c=>e.head.showEndDate=c),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},16,["formatFunction"])}}}),bb={name:"Date",type:"date",icon:"Calendar",emoji:"\u{1F4C5}",headComponent:n.markRaw(db),cellComponent:n.markRaw(wb),filter:({input:t,value:i})=>t?t===i:!0,sortAsc:(t,i)=>t.start===i.start?t.end-i.end:t.start-i.start,sortDesc:(t,i)=>t.start===i.start?i.end-t.end:i.start-t.start},yb=Object.assign({name:"emailHead",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()}}},{props:Ii,setup(t){const i=t;return(e,o)=>{const r=n.resolveComponent("fv-table-view-head-base");return n.openBlock(),n.createBlock(r,n.mergeProps(i,{formatFunction:e.formatEmailHead}),null,16,["formatFunction"])}}}),kb=["href"],vb=Object.assign({name:"emailCell",data(){return{}},computed:{}},{props:Bi,setup(t){const i=t;return(e,o)=>{const r=n.resolveComponent("fv-table-view-cell-base");return n.openBlock(),n.createBlock(r,n.mergeProps(i,{onDropItem:o[0]||(o[0]=s=>e.$emit("drop-item",s)),onSetSelect:o[1]||(o[1]=s=>e.$emit("set-select",s))}),{default:n.withCtx(()=>[n.createElementVNode("a",{href:"mailto:"+e.modelValue[e.head.key],class:"fv-tableview-default-content",style:{width:"100%","text-align":"right"}},n.toDisplayString(e.modelValue[e.head.key]),9,kb)]),_:1},16)}}}),Cb={name:"Email",type:"email",icon:"Accounts",emoji:"@",headComponent:n.markRaw(yb),cellComponent:n.markRaw(vb),filter:({input:t,value:i})=>t?t===i:!0,sortAsc:(t,i)=>t.localeCompare(i),sortDesc:(t,i)=>i.localeCompare(t)},Sb={class:"fv-tableview-main-wrapper"},Vb={class:"fv-tableview-data-row banner-row"},$b=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Sync"},null,-1),Eb={class:"fv-tableview-head-item check-box"},Tb={class:"fv-tableview-head-item op-tools"},Db=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Add"},null,-1),xb={class:"new-line-title"},Ib=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Delete"},null,-1),Bb=n.createElementVNode("i",{class:"ms-Icon ms-Icon--Copy"},null,-1),Nb=Object.assign({name:"FvTableView",components:{tableRow:Hs,newProperty:Gs,currentProperty:Rn,sortPropertyList:Us},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},filteredRows:[...this.modelValue.rows],sortHeads:[],show:{addMenu:!1,editMenu:!0}}},watch:{sortHeads:{handler(t,i){this.syncFilter()},deep:!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}},computedSortIcon(){return this.sortHeads.length===0?"Up":this.sortHeads.length>1?"Sort":this.sortHeads[0].desc.key?"Down":"Up"},$theme(){return _(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){t.composedPath().includes(this.$el)||(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{const{start_row:t,end_row:i,start_col:e,end_col:o}=this.selectPos;let r=t,s=i,l=e,a=o;if(r>s){let d=r;r=s,s=d}if(l>a){let d=l;l=a,a=d}for(let d=l;d<=a;d++){let h=this.modelValue.heads[d].key,c=this.modelValue.rows[t][h];for(let u=r;u<=s;u++)this.modelValue.rows[u][h]=c}}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(Xs),cellComponent:n.markRaw(Ks),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,ib,bb,Cb,...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=Object.assign({},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),this.syncFilter()},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||(i.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.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},sortMenuClick(t){t.preventDefault(),t.stopPropagation(),this.$refs.sortMenu.rightClick(t,document.body)},handleSort(t,i=!1){let e=this.sortHeads.findIndex(r=>r.head===this.modelValue.heads[t]);e!==-1&&this.sortHeads.splice(e,1);let o=e===-1?this.sortHeads.length:e;this.sortHeads.splice(o,0,{head:this.modelValue.heads[t],desc:{key:i,text:i?this.i18n("Desc"):this.i18n("Asc")}})},syncFilter(){let t=[...this.modelValue.rows];t.sort((i,e)=>{for(let o of this.sortHeads){let{head:r,desc:s}=o,l=s.key,{type:a,key:d}=r,h=this.thisExtensions.find(c=>c.type===a);if(!!h){if(l){if(h.sortDesc(i[d],e[d])!==0)return h.sortDesc(i[d],e[d])}else if(h.sortAsc(i[d],e[d])!==0)return h.sortAsc(i[d],e[d])}}}),this.filteredRows=t},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-button"),s=n.resolveComponent("fv-check-box"),l=n.resolveComponent("fv-right-menu");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-TableView",[e.$theme]])},[n.createElementVNode("div",Sb,[n.createElementVNode("div",Vb,[n.createVNode(r,{"font-size":12,"border-radius":"50",style:{width:"25px",height:"25px"},onClick:e.syncFilter},{default:n.withCtx(()=>[$b]),_:1},8,["onClick"]),n.createVNode(r,{icon:e.computedSortIcon,"font-size":12,"border-radius":"50",style:{width:"80px",height:"25px"},onClick:e.sortMenuClick},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(t.i18n("Sort")),1)]),_:1},8,["icon","onClick"])]),n.createElementVNode("div",{class:"fv-tableview-head-row",style:n.normalizeStyle({width:e.sumWidth+"px"})},[n.createElementVNode("div",Eb,[n.createVNode(s,{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,(a,d)=>n.withDirectives((n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.computedHeadComponent(a.type)),{modelValue:a,key:d,index:d,i18n:t.i18n,foreground:t.foreground,fixedLeftWidth:e.fixedLeftWidth[d],fixedRightWidth:e.fixedRightWidth[d],theme:e.$theme,dragItem:e.drag.columnItem,draggable:"true",onSortAsc:h=>e.handleSort(d,!1),onSortDesc:h=>e.handleSort(d,!0),onDuplicateColumn:e.duplicateColumn,onDragstart:h=>e.handleColumnDrag(h,a),onDragend:o[0]||(o[0]=h=>e.drag.columnItem=null),onDropItem:h=>e.swapColumn(h.drag,a),onDeleteColumn:h=>e.thisDeleteColumn(h,d)},null,40,["modelValue","index","i18n","foreground","fixedLeftWidth","fixedRightWidth","theme","dragItem","onSortAsc","onSortDesc","onDuplicateColumn","onDragstart","onDropItem","onDeleteColumn"])),[[n.vShow,a.visible]])),128)),n.createElementVNode("div",Tb,[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Add fv-tableview-icon-block fade",onClick:o[1]||(o[1]=a=>e.addMenuClick(a))}),n.createElementVNode("i",{class:"ms-Icon ms-Icon--More fv-tableview-icon-block fade",onClick:o[2]||(o[2]=a=>e.addMenuClick(a,!1))})])],4),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.filteredRows,(a,d)=>(n.openBlock(),n.createBlock(Hs,{key:d,modelValue:t.modelValue,row:a,row_index:d,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]=h=>e.drag.rowItem=h),onDropItem:h=>e.swapRow(h.drag,a),onAddRow:h=>e.addRow(d),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]=a=>e.addRow())},[Db,n.createElementVNode("p",xb,n.toDisplayString(t.i18n("New Line")),1)],4)]),n.createVNode(l,{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]=a=>e.thisDeleteRows())},[Ib,n.createElementVNode("p",null,n.toDisplayString(t.i18n("Delete")),1)]),n.createElementVNode("span",{onClick:o[6]||(o[6]=a=>e.duplicateRows())},[Bb,n.createElementVNode("p",null,n.toDisplayString(t.i18n("Duplicate")),1)])])]),_:3},8,["theme","background"]),n.createVNode(l,{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(Gs,{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(Rn,{heads:t.modelValue.heads,extensions:e.thisExtensions,i18n:t.i18n,foreground:t.foreground,theme:e.$theme,onAddClick:o[7]||(o[7]=a=>{e.show.editMenu=!1,e.show.addMenu=!0})},null,8,["heads","extensions","i18n","foreground","theme"]),[[n.vShow,e.show.editMenu]])])]),_:3},8,["theme","background"]),n.createVNode(l,{ref:"sortMenu",theme:e.$theme,rightMenuWidth:280,background:t.rightMenuBackground,fullExpandAnimation:!0,style:{"z-index":"5"}},{default:n.withCtx(()=>[n.createVNode(Us,{modelValue:e.sortHeads,"onUpdate:modelValue":o[8]||(o[8]=a=>e.sortHeads=a),sourceData:t.modelValue,extensions:e.thisExtensions,i18n:t.i18n,foreground:t.foreground,rightMenuBackground:t.rightMenuBackground,theme:e.$theme},null,8,["modelValue","sourceData","extensions","i18n","foreground","rightMenuBackground","theme"])]),_:1},8,["theme","background"])],2)}}}),tl=W(Nb),kC="",vC="",CC="",Lb=["onClick"],Fb={class:"fv-tag-default-content"},Mb={class:"fv-tag-icon"},Pb=["onClick"],Rb={class:"fv-tag-icon"},zb=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Add fv-tag-icon-btn"},null,-1)],_b={class:"fv-tag-default-content"},Ob=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 _(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=at(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:12},borderRadius:{default:6},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:"",borderRadius:t.borderRadius+"px"}),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",Fb,n.toDisplayString(s.text),1)])],4),n.withDirectives(n.createElementVNode("div",Mb,[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel fv-tag-icon-btn",onClick:a=>e.delTag(s)},null,8,Pb)],512),[[n.vShow,t.isDel&&!s.disabled]])],14,Lb))),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:"",borderRadius:t.borderRadius+"px"}),onClick:o[1]||(o[1]=(...s)=>e.editable&&e.editable(...s))},[n.withDirectives(n.createElementVNode("div",Rb,zb,512),[[n.vShow,!e.edit]]),n.withDirectives(n.createElementVNode("span",{class:"fv-tag-content",style:n.normalizeStyle({"font-size":t.fontSize+"px"})},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("p",_b,n.toDisplayString(t.newTagPlaceholder),1)])],4),[[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)}}}),il=W(Ob),$C="",EC="",TC="",Ab={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 _(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()}}},Wb={class:"text-box-container internal"},Hb=["inputmode","type","readonly","disabled"];function Gb(t,i,e,o,r,s){return n.openBlock(),n.createElementBlock("div",Wb,[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,Hb)])}const Ub={components:{maskInput:oe(Ab,[["render",Gb]])},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 _(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()}}},Yb={class:"text-box-container"},jb=["inputmode","type","placeholder","readonly","disabled","maxlength"];function Xb(t,i,e,o,r,s){const l=n.resolveComponent("mask-input");return n.openBlock(),n.createElementBlock("div",Yb,[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,jb)),[[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 nl=oe(Ub,[["render",Xb]]),qb={class:"fix-block"},Kb={class:"fix-block"},Jb=Object.assign({name:"FvTextBox",components:{coreInput:nl},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 _(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",qb,[n.createElementVNode("p",null,n.toDisplayString(t.prefix),1)],512),[[n.vShow,t.prefix!=""]]),n.renderSlot(s.$slots,"left-icon",{},()=>[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(nl,{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.renderSlot(s.$slots,"icon",{},()=>[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",Kb,[n.createElementVNode("p",null,n.toDisplayString(t.suffix),1)],512),[[n.vShow,t.suffix!=""]])],4)],6)}}}),ol=W(Jb),IC="",BC="",NC="",Qb=["placeholder","readonly","disabled","maxlength"],Zb=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 _(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,Qb),[[n.vModelText,e.thisValue]])],4)],6)}}}),rl=W(Zb),FC="",MC="",PC="",e0=["value"],t0=["value"],i0=["value"],n0={class:"fv-time-picker-options-body"},o0=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretUpSolid8"},null,-1)],r0={class:"fv-time-picker-options-body-items swiper",ref:"hour"},s0=[n.createElementVNode("div",{class:"swiper-wrapper"},null,-1)],l0=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretDownSolid8"},null,-1)],a0=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretUpSolid8"},null,-1)],d0={class:"fv-time-picker-options-body-items swiper",ref:"minute"},h0={class:"swiper-wrapper"},u0={class:"fv-time-picker-options-body-item swiper-slide"},c0=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretDownSolid8"},null,-1)],f0={class:"fv-time-picker-options-body-col"},m0=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretUpSolid8"},null,-1)],g0={class:"fv-time-picker-options-body-items swiper",ref:"period"},p0={class:"swiper-wrapper"},w0={class:"fv-time-picker-options-body-item swiper-slide"},b0=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretDownSolid8"},null,-1)],y0={class:"fv-time-picker-options-bar"},k0=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Accept"},null,-1)],v0=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel"},null,-1)];ne.use([Xr]);const C0=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 _(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 ne(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
- </div>`}}),this.minuteSwiper=new ne(this.$refs.minute,{...t,initialSlide:this.decodeTime(1),loop:!0,loopAdditionalSlides:this.minuteList.length}),this.periodSwiper=new ne(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,e0),n.createElementVNode("input",{value:e.showTime(1),readonly:"",class:"fv-time-picker-input-item",style:n.normalizeStyle({borderColor:t.innerBorderColor})},null,12,t0),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,i0),[[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",n0,[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())},o0,4),n.createElementVNode("div",r0,s0,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())},l0,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())},a0,4),n.createElementVNode("div",d0,[n.createElementVNode("div",h0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.minuteList,(r,s)=>(n.openBlock(),n.createElementBlock("div",u0,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())},c0,4)],4),n.withDirectives(n.createElementVNode("div",f0,[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())},m0,4),n.createElementVNode("div",g0,[n.createElementVNode("div",p0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.period,(r,s)=>(n.openBlock(),n.createElementBlock("div",w0,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())},b0,4)],512),[[n.vShow,t.timeType==12]])]),n.createElementVNode("div",y0,[n.createElementVNode("button",{class:"fv-time-picker-options-bar-accept",onClick:o[7]||(o[7]=(...r)=>e.accept&&e.accept(...r))},k0),n.createElementVNode("button",{class:"fv-time-picker-options-bar-cancel",onClick:o[8]||(o[8]=r=>e.show=!1)},v0)])],4),[[n.vShow,e.show]])]),_:1})],6))}}),sl=W(C0),jC="",XC="",qC="",S0={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 _(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 V0(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 ll=oe(S0,[["render",V0]]),$0=Object.assign({name:"FvToggleSwitch",components:{toggleRing:ll},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 _(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(ll,{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))}}),al=W($0),JC="",QC="",ZC="",E0={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)}},T0=["draggable"],D0={key:0,class:"fv-tree-view-item-expander",style:{"margin-right":"10px"}},x0={class:"fv-tree-view-item-content"},I0=["src"],B0={key:1,class:"fv-tree-view-item-expander"},N0={key:0,class:"fv-tree-view-item-children"};function L0(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",D0,[!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",x0,[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,I0)):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",B0,[!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",N0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.modelValue.children,(h,c)=>(n.openBlock(),n.createBlock(d,{key:`parent: ${e.kIndex}, self: ${c}`,modelValue:h,parent:e.modelValue,kIndex:c,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]=u=>t.$emit("require-render",u)),onSelectedChange:i[14]||(i[14]=u=>t.$emit("selected-change",u)),onSetDragItem:i[15]||(i[15]=u=>t.$emit("set-drag-item",u)),onDropItem:i[16]||(i[16]=u=>t.$emit("drop-item",u)),onHandleClick:i[17]||(i[17]=u=>t.$emit("handle-click",u)),onItemDragOver:i[18]||(i[18]=u=>t.$emit("item-drag-over",u)),onItemDragLeave:i[19]||(i[19]=u=>t.$emit("item-drag-leave",u)),onItemDrop:i[20]||(i[20]=u=>t.$emit("item-drop",u))},{default:n.withCtx(u=>[n.renderSlot(t.$slots,"default",{item:u.item,deep:u.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,T0)),[[n.vShow,s.valueTrigger(e.modelValue.show)!==!1]]):n.createCommentVNode("",!0)}const dl=oe(E0,[["render",L0]]),F0=Object.assign({name:"FvTreeView",components:{TreeViewItem:dl},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 _(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(dl,{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))}}),hl=W(F0),tS="",iS="",nS="",M0=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 _(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)}}}),ul=W(M0),rS="",sS="",lS="",P0={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 _(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))}}},R0=[n.createElementVNode("i",null,null,-1)];function z0(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))},R0,34)}const Ni=oe(P0,[["render",z0]]),_0={style:{"margin-left":"10px","user-select":"none"}},O0=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel"},null,-1)],A0=Object.assign({name:"FvWebWindow",components:{spliter:Ni},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 _(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",_0,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))},O0,32)],32),n.renderSlot(e.$slots,"default"),t.isResize?(n.openBlock(),n.createBlock(Ni,{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(Ni,{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(Ni,{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]])}}),cl=W(A0),uS="";class zt{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=zt.DisHour(i,e);return Math.abs(o)>24?Math.floor(o/24):i.getDate()==e.getDate()?0:1}static DisHour(i,e){let o=zt.DisTime(i,e)/36e5;return Math.floor(o)}static DisMinute(i,e){let o=zt.DisTime(i,e)/6e4;return Math.floor(o)}static DisSecond(i,e){return Math.round(zt.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 W0{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 H0={install(t){t.config.globalProperties.$SDate=zt,t.config.globalProperties.$SUtility=W0,t.config.globalProperties.$FvConfig=ao()}},G0=[uo,co,fo,mo,go,po,$r,Er,Tr,Nr,Lr,Fr,Mr,qr,Jr,Qr,ts,is,ns,os,rs,ss,ls,as,cs,ms,ps,vs,Cs,Ss,Vs,$s,Es,Ds,xs,Bs,Ns,Ls,Fs,Ms,Ps,Rs,zs,_s,Os,As,Ws,tl,el,Js,il,ol,rl,sl,al,hl,ul,cl],fl={install(t,i){const e=Hl();t.use(e),t.use(H0);for(const o of G0)t.use(o)}};z.FvAffix=uo,z.FvAnimatedIcon=co,z.FvBadge=fo,z.FvBreadcrumb=mo,z.FvButton=go,z.FvCalendarDatePicker=po,z.FvCalendarView=$r,z.FvCallout=Er,z.FvCheckBox=Tr,z.FvCollapse=Nr,z.FvColorPicker=Lr,z.FvCombobox=Fr,z.FvCommandBar=Mr,z.FvComponentPlugins=fl,z.FvDatePicker=qr,z.FvDetailsList=Jr,z.FvDrawer=Qr,z.FvDropDown=ts,z.FvExpander=is,z.FvFlipView=ns,z.FvIconElement=os,z.FvImage=rs,z.FvImg=ss,z.FvImgBox=ls,z.FvInfiniteScrollView=as,z.FvInfoBox=cs,z.FvListView=ms,z.FvMenuFlyout=ps,z.FvMessageBar=vs,z.FvNavigationPanel=Cs,z.FvNavigationView=Ss,z.FvPagination=Vs,z.FvPanel=$s,z.FvPersona=Es,z.FvPivot=Ds,z.FvProgressBar=xs,z.FvProgressRing=Bs,z.FvRadio=Ns,z.FvRadioGroup=Ls,z.FvRatingControl=Fs,z.FvResizeWatcher=Ms,z.FvRevealContainer=Ps,z.FvRightMenu=Rs,z.FvScrollStory=zs,z.FvSearchBox=_s,z.FvShimmer=Os,z.FvSlider=As,z.FvSwipeControl=Ws,z.FvTableView=tl,z.FvTableViewCellBase=el,z.FvTableViewCellProps=Bi,z.FvTableViewHeadBase=Js,z.FvTableViewHeadProps=Ii,z.FvTag=il,z.FvTextBox=ol,z.FvTextField=rl,z.FvTimePicker=sl,z.FvToggleSwitch=al,z.FvTreeView=hl,z.FvVerifyBox=ul,z.FvWebWindow=cl,z.createInfoBox=hs,z.createMessageBar=bs,z.createSwiftWarning=ys,z.default=fl,z.infoBoxPlugin=us,z.messageBarPlugin=ks,Object.defineProperties(z,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
35
+ </div>`}}),this.minuteSwiper=new ne(this.$refs.minute,{...t,initialSlide:this.decodeTime(1),loop:!0,loopAdditionalSlides:this.minuteList.length}),this.periodSwiper=new ne(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,e0),n.createElementVNode("input",{value:e.showTime(1),readonly:"",class:"fv-time-picker-input-item",style:n.normalizeStyle({borderColor:t.innerBorderColor})},null,12,t0),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,i0),[[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",n0,[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())},o0,4),n.createElementVNode("div",r0,s0,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())},l0,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())},a0,4),n.createElementVNode("div",d0,[n.createElementVNode("div",h0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.minuteList,(r,s)=>(n.openBlock(),n.createElementBlock("div",u0,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())},c0,4)],4),n.withDirectives(n.createElementVNode("div",f0,[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())},m0,4),n.createElementVNode("div",g0,[n.createElementVNode("div",p0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.period,(r,s)=>(n.openBlock(),n.createElementBlock("div",w0,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())},b0,4)],512),[[n.vShow,t.timeType==12]])]),n.createElementVNode("div",y0,[n.createElementVNode("button",{class:"fv-time-picker-options-bar-accept",onClick:o[7]||(o[7]=(...r)=>e.accept&&e.accept(...r))},k0),n.createElementVNode("button",{class:"fv-time-picker-options-bar-cancel",onClick:o[8]||(o[8]=r=>e.show=!1)},v0)])],4),[[n.vShow,e.show]])]),_:1})],6))}}),sl=W(C0),jC="",XC="",qC="",S0={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 _(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 V0(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 ll=oe(S0,[["render",V0]]),$0=Object.assign({name:"FvToggleSwitch",components:{toggleRing:ll},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 _(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(ll,{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))}}),al=W($0),JC="",QC="",ZC="",E0={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)}},T0=["draggable"],D0={key:0,class:"fv-tree-view-item-expander",style:{"margin-right":"10px"}},x0={class:"fv-tree-view-item-content"},I0=["src"],B0={key:1,class:"fv-tree-view-item-expander"},N0={key:0,class:"fv-tree-view-item-children"};function L0(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",D0,[!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",x0,[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,I0)):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",B0,[!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",N0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.modelValue.children,(h,c)=>(n.openBlock(),n.createBlock(d,{key:`parent: ${e.kIndex}, self: ${c}`,modelValue:h,parent:e.modelValue,kIndex:c,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]=u=>t.$emit("require-render",u)),onSelectedChange:i[14]||(i[14]=u=>t.$emit("selected-change",u)),onSetDragItem:i[15]||(i[15]=u=>t.$emit("set-drag-item",u)),onDropItem:i[16]||(i[16]=u=>t.$emit("drop-item",u)),onHandleClick:i[17]||(i[17]=u=>t.$emit("handle-click",u)),onItemDragOver:i[18]||(i[18]=u=>t.$emit("item-drag-over",u)),onItemDragLeave:i[19]||(i[19]=u=>t.$emit("item-drag-leave",u)),onItemDrop:i[20]||(i[20]=u=>t.$emit("item-drop",u))},{default:n.withCtx(u=>[n.renderSlot(t.$slots,"default",{item:u.item,deep:u.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,T0)),[[n.vShow,s.valueTrigger(e.modelValue.show)!==!1]]):n.createCommentVNode("",!0)}const dl=oe(E0,[["render",L0]]),F0=Object.assign({name:"FvTreeView",components:{TreeViewItem:dl},data(){return{thisValue:this.modelValue,dragItem:{item:null,parent:null},queueFunction:[],lock:{isQueueRunning:!0}}},watch:{modelValue(){this.thisValue=this.modelValue},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 _(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(dl,{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))}}),hl=W(F0),tS="",iS="",nS="",M0=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 _(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)}}}),ul=W(M0),rS="",sS="",lS="",P0={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 _(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))}}},R0=[n.createElementVNode("i",null,null,-1)];function z0(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))},R0,34)}const Ni=oe(P0,[["render",z0]]),_0={style:{"margin-left":"10px","user-select":"none"}},O0=[n.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel"},null,-1)],A0=Object.assign({name:"FvWebWindow",components:{spliter:Ni},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 _(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",_0,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))},O0,32)],32),n.renderSlot(e.$slots,"default"),t.isResize?(n.openBlock(),n.createBlock(Ni,{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(Ni,{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(Ni,{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]])}}),cl=W(A0),uS="";class zt{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=zt.DisHour(i,e);return Math.abs(o)>24?Math.floor(o/24):i.getDate()==e.getDate()?0:1}static DisHour(i,e){let o=zt.DisTime(i,e)/36e5;return Math.floor(o)}static DisMinute(i,e){let o=zt.DisTime(i,e)/6e4;return Math.floor(o)}static DisSecond(i,e){return Math.round(zt.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 W0{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 H0={install(t){t.config.globalProperties.$SDate=zt,t.config.globalProperties.$SUtility=W0,t.config.globalProperties.$FvConfig=ao()}},G0=[uo,co,fo,mo,go,po,$r,Er,Tr,Nr,Lr,Fr,Mr,qr,Jr,Qr,ts,is,ns,os,rs,ss,ls,as,cs,ms,ps,vs,Cs,Ss,Vs,$s,Es,Ds,xs,Bs,Ns,Ls,Fs,Ms,Ps,Rs,zs,_s,Os,As,Ws,tl,el,Js,il,ol,rl,sl,al,hl,ul,cl],fl={install(t,i){const e=Hl();t.use(e),t.use(H0);for(const o of G0)t.use(o)}};z.FvAffix=uo,z.FvAnimatedIcon=co,z.FvBadge=fo,z.FvBreadcrumb=mo,z.FvButton=go,z.FvCalendarDatePicker=po,z.FvCalendarView=$r,z.FvCallout=Er,z.FvCheckBox=Tr,z.FvCollapse=Nr,z.FvColorPicker=Lr,z.FvCombobox=Fr,z.FvCommandBar=Mr,z.FvComponentPlugins=fl,z.FvDatePicker=qr,z.FvDetailsList=Jr,z.FvDrawer=Qr,z.FvDropDown=ts,z.FvExpander=is,z.FvFlipView=ns,z.FvIconElement=os,z.FvImage=rs,z.FvImg=ss,z.FvImgBox=ls,z.FvInfiniteScrollView=as,z.FvInfoBox=cs,z.FvListView=ms,z.FvMenuFlyout=ps,z.FvMessageBar=vs,z.FvNavigationPanel=Cs,z.FvNavigationView=Ss,z.FvPagination=Vs,z.FvPanel=$s,z.FvPersona=Es,z.FvPivot=Ds,z.FvProgressBar=xs,z.FvProgressRing=Bs,z.FvRadio=Ns,z.FvRadioGroup=Ls,z.FvRatingControl=Fs,z.FvResizeWatcher=Ms,z.FvRevealContainer=Ps,z.FvRightMenu=Rs,z.FvScrollStory=zs,z.FvSearchBox=_s,z.FvShimmer=Os,z.FvSlider=As,z.FvSwipeControl=Ws,z.FvTableView=tl,z.FvTableViewCellBase=el,z.FvTableViewCellProps=Bi,z.FvTableViewHeadBase=Js,z.FvTableViewHeadProps=Ii,z.FvTag=il,z.FvTextBox=ol,z.FvTextField=rl,z.FvTimePicker=sl,z.FvToggleSwitch=al,z.FvTreeView=hl,z.FvVerifyBox=ul,z.FvWebWindow=cl,z.createInfoBox=hs,z.createMessageBar=bs,z.createSwiftWarning=ys,z.default=fl,z.infoBoxPlugin=us,z.messageBarPlugin=ks,Object.defineProperties(z,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@creatorsn/vfluent3",
3
3
  "private": false,
4
- "version": "0.3.37",
4
+ "version": "0.3.39",
5
5
  "files": [
6
6
  "dist"
7
7
  ],