@polyv/iar-vote-ui 2.7.0-rc-20260716.1 → 2.7.0
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/index.es.js +2 -2
- package/index.umd.js +1 -1
- package/package.json +1 -1
- package/vote-list-popup.es.js +2 -2
- package/vote-list-popup.umd.js +1 -1
- package/vote-list.es.js +2 -2
- package/vote-list.umd.js +1 -1
- package/vote-pendant.es.js +2 -2
- package/vote-pendant.umd.js +1 -1
- package/vote-rule-popup.es.js +2 -2
- package/vote-rule-popup.umd.js +1 -1
package/vote-list-popup.umd.js
CHANGED
|
@@ -1286,4 +1286,4 @@ ${$o(t)}`),i}})}function c3(e){const r=Object.keys(e),t=r.filter(o=>{var n;retur
|
|
|
1286
1286
|
effect: tooltipEffect,
|
|
1287
1287
|
popperOffset: tooltipOffset,
|
|
1288
1288
|
tooltipClass: 'pwc-menu-item__tooltip',
|
|
1289
|
-
}`}],staticClass:"pwc-menu-item__content",class:{"is-active":t.isActive&&!t.menuItemProps.iconMode,"is-icon-mode":t.menuItemProps.iconMode},on:{click:t.onClickItem}},[t.hasSlot("icon")||t.menuIcon?r("div",{staticClass:"pwc-menu-item__icon"},[t.hasSlot("icon")?[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("icon",{isActive:t.isActive})}})]:[r(t.menuIcon,{tag:"component"})]],2):e._e(),t.menuItemProps.iconMode?e._e():r("div",{directives:[{name:"show",rawName:"v-show",value:!t.menuProps.collapsed||t.inSubMenuPopper,expression:"!menuProps.collapsed || inSubMenuPopper"}],staticClass:"pwc-menu-item__title"},[t.hasSlot("title")?[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("title")}})]:[e._v(" "+e._s(t.menuItemProps.title)+" ")]],2)])},MW=[],IW=j(QW,EW,MW);const AW=IW.exports,zW=c.defineComponent({__name:"menu-item",props:cW(),setup(e){const r=e,{receiveRouterSlotData:t}=TW({props:r});return{__sfc:!0,props:r,receiveRouterSlotData:t,MenuItemContent:AW}}});var DW=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return t.props.to?r("router-link",{tag:"component",attrs:{to:e.to,custom:""},scopedSlots:e._u([{key:"default",fn:function(i){return[r("a",e._b({staticClass:"pwc-menu-item",attrs:{href:i.href}},"a",t.receiveRouterSlotData(i),!1),[r(t.MenuItemContent)],1)]}}],null,!1,4189994726)}):e.href?r("a",{staticClass:"pwc-menu-item",attrs:{href:e.href}},[r(t.MenuItemContent)],1):r("div",{staticClass:"pwc-menu-item"},[r(t.MenuItemContent)],1)},RW=[],OW=j(zW,DW,RW);const VW=OW.exports,BW={};var FW=function(){var e=this;return e._self._c,e._m(0)},jW=[function(){var e=this,r=e._self._c;return r("div",{staticClass:"pwc-menu-divider"},[r("div")])}],NW=j(BW,FW,jW);const UW=NW.exports;ee("PwcMenu",hW),ee("PwcSubMenu",PW),ee("PwcMenuItem",VW),ee("PwcMenuDivider",UW);const WW=12,HW=16,Xo={"top-right":[],"top-left":[],"bottom-right":[],"bottom-left":[]};function Tf(e,r){const t=Xo[e];let i=HW;for(let o=0;o<r;o++)i+=t[o].height+WW;return i}function Qf(e){const r=Xo[e];for(let t=0;t<r.length;t++)r[t].offsetRef.value=Tf(e,t)}const Qa={add(e,r,t){const i=Xo[e],o=i.length,n={id:r,height:0,offsetRef:t};i.push(n),t.value=Tf(e,o)},updateHeight(e,r,t){const i=Xo[e].find(o=>o.id===r);i&&i.height!==t&&(i.height=t,Qf(e))},remove(e,r){const t=Xo[e],i=t.findIndex(o=>o.id===r);i!==-1&&(t.splice(i,1),Qf(e))}};let ZW=0;const qW=e=>{const{position:r,duration:t}=e,{destroyCurrentInstance:i}=Po(),o=++ZW,n=c.ref(!1),a=c.ref(0);Qa.add(r,o,a);const{startTimeout:s,closeTimeout:l}=ri(()=>{u()},t);function p(){n.value=!0,t>0&&s()}function u(){n.value=!1,l()}function d(){Qa.remove(r,o),i()}function m(f){Qa.updateHeight(r,o,f)}return c.onBeforeUnmount(()=>{Qa.remove(r,o)}),{visible:n,offsetPx:a,open:p,close:u,onAfterLeave:d,updateHeight:m}};w.object().def({}),w.enum().def(Mt.Info);const YW=()=>X(R(R({},el()),m2()),{trigger:w.oneOf(Zn).def("click"),placement:w.oneOf(Mi).def("top"),feedbackType:w.enum().def(Mt.Warning),concise:w.bool.def(!1)}),GW=()=>X(R(R({},he()),Ku()),{show:q(),hide:q()}),KW=c.defineComponent({__name:"popconfirm",props:YW(),emits:GW(),setup(e,{emit:r}){const t=e,{modelValue:i,updateModelValue:o}=de(t),{buttonData:n,onClickConfirm:a,onClickCancel:s}=Ju({props:t,emit:r,afterConfirm:()=>{var m;(m=d.value)==null||m.hidePopper()},afterCancel:()=>{var m;(m=d.value)==null||m.hidePopper()}});function l(){i.value||o(!0),r("show")}function p(){i.value&&o(!1),r("hide")}const u=c.computed(()=>{if(!t.concise)return t.feedbackType}),d=c.ref();return{__sfc:!0,props:t,emit:r,modelValue:i,updateModelValue:o,buttonData:n,onClickConfirm:a,onClickCancel:s,onShow:l,onHide:p,popoverFeedbackType:u,popoverRef:d,PwcButton:Ne,PwcPopover:h2}}});var XW=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r(t.PwcPopover,e._b({ref:"popoverRef",staticClass:"pwc-popconfirm",attrs:{trigger:e.trigger,placement:e.placement,"feedback-type":t.popoverFeedbackType},on:{show:t.onShow,hide:t.onHide},scopedSlots:e._u([{key:"reference",fn:function(){return[e._t("default")]},proxy:!0},{key:"default",fn:function(){return[r("div",{staticClass:"pwc-popconfirm__content"},[e.concise?e._e():e._t("content",function(){return[e._v(e._s(e.content))]}),r("div",{staticClass:"pwc-popconfirm__content__btns",class:{"is-concise":e.concise}},[t.buttonData.showCancelButton?r(t.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:t.onClickCancel}},"pwc-button",t.buttonData.cancelButtonProps,!1)):e._e(),t.buttonData.showConfirmButton?r(t.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:t.onClickConfirm}},"pwc-button",t.buttonData.confirmButtonProps,!1)):e._e()],1)],2)]},proxy:!0}],null,!0)},"pwc-popover",t.props,!1))},JW=[],$W=j(KW,XW,JW);const eH=$W.exports;ee("PwcPopconfirm",eH);var nt=(e=>(e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.TopLeft="top-left",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomRight="bottom-right",e))(nt||{});function tH(e,r){const t=c.ref((()=>{try{const i=localStorage.getItem(e);if(i)return JSON.parse(i)}catch(i){}return r})());return c.watch(t,i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){}},{deep:!0}),t}const rH=()=>({width:w.number.def(0),height:w.number.def(0),minWidth:w.number.def(50),minHeight:w.number.def(50),maxWidth:w.number.def(1/0),maxHeight:w.number.def(1/0),disabled:w.bool.def(!1),handleSize:w.number.def(8),showHandles:w.oneOfType([Boolean,Array]).def(!0),storageKey:w.string.def("")}),iH=()=>({"resize-start":q(),resize:q(),"resize-end":q()}),oH=e=>{const{props:r,emit:t}=e,i=c.ref(),o=c.ref(!1),n=c.ref(null),a=c.ref({x:0,y:0}),s=c.ref({width:0,height:0}),l={width:r.width,height:r.height},p=r.storageKey?tH(r.storageKey,l):c.ref(l),u=(y,k,C)=>Math.max(k,Math.min(C,y)),d=y=>({width:y.width===void 0?void 0:u(y.width,r.minWidth,r.maxWidth),height:y.height===void 0?void 0:u(y.height,r.minHeight,r.maxHeight)}),m=y=>{var C,S;const k=d(y);return{width:(C=k.width)!=null?C:p.value.width,height:(S=k.height)!=null?S:p.value.height}},f=y=>{p.value=m(y)},v=()=>({width:p.value.width,height:p.value.height}),g=c.computed(()=>{const y={};return(r.width||p.value.width)&&(y.width=p.value.width+"px"),(r.height||p.value.height)&&(y.height=p.value.height+"px"),y}),b=y=>r.showHandles===!1||Array.isArray(r.showHandles)&&!r.showHandles.includes(y)?!1:[nt.Top,nt.Bottom].includes(y)?!!r.height:[nt.Left,nt.Right].includes(y)?!!r.width:!!r.width&&!!r.height,h=(y,k)=>{r.disabled||(y.preventDefault(),y.stopPropagation(),o.value=!0,n.value=k,a.value={x:y.clientX,y:y.clientY},s.value=R({},p.value),t("resize-start",{width:p.value.width,height:p.value.height,direction:k,event:y}))},_=y=>{if(!o.value||!n.value)return;const k=y.clientX-a.value.x,C=y.clientY-a.value.y,S={};switch(n.value){case nt.Right:S.width=s.value.width+k;break;case nt.Bottom:S.height=s.value.height+C;break;case nt.Left:S.width=s.value.width-k;break;case nt.Top:S.height=s.value.height-C;break;case nt.TopRight:S.width=s.value.width+k,S.height=s.value.height-C;break;case nt.TopLeft:S.width=s.value.width-k,S.height=s.value.height-C;break;case nt.BottomRight:S.width=s.value.width+k,S.height=s.value.height+C;break;case nt.BottomLeft:S.width=s.value.width-k,S.height=s.value.height+C;break}const{width:L,height:T}=m(S);p.value={width:L,height:T},t("resize",{width:L,height:T,direction:n.value,event:y})},x=y=>{if(!o.value||!n.value)return;o.value=!1;const k=n.value;n.value=null,t("resize-end",{width:p.value.width,height:p.value.height,direction:k,event:y})};return c.onMounted(()=>{document.addEventListener("mousemove",_),document.addEventListener("mouseup",x)}),c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",x)}),{boxStyle:g,containerRef:i,currentSize:p,isResizing:o,showHandleControl:b,handleMouseDown:h,setSize:f,getSize:v}};rH(),iH();const nH=()=>({title:w.looseString,titleTooltip:w.looseString}),aH=c.defineComponent({__name:"section",props:nH(),setup(e){const r=e,{hasSlot:t,slotRender:i}=xe(),o=c.computed(()=>t("title-tooltip")||r.titleTooltip);return{__sfc:!0,props:r,hasSlot:t,slotRender:i,hasTitleTooltip:o,PwcTooltip:Yn,renderSlot:ut}}});var sH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("section",{staticClass:"pwc-section"},[t.hasSlot("title")||e.title?r("div",{staticClass:"pwc-section__title"},[e._t("title",function(){return[e._v(e._s(e.title))]}),t.hasTitleTooltip?[r(t.PwcTooltip,{attrs:{content:e.titleTooltip},scopedSlots:e._u([t.hasSlot("title-tooltip")?{key:"content",fn:function(){return[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("title-tooltip")}})]},proxy:!0}:null],null,!0)})]:e._e()],2):e._e(),r("div",{staticClass:"pwc-section__content"},[e._t("default")],2)])},lH=[],cH=j(aH,sH,lH);const pH=cH.exports;ee("PwcSection",pH);const uH=()=>({[w.modelValueKey]:w.oneOfType([Number,Array]).def(0),min:w.number.def(0),max:w.number.def(100),disabled:w.bool.def(!1),showTooltip:w.bool.def(!1),range:w.bool.def(!1),step:w.number.def(1),showStops:w.bool.def(!1),showSliderButton:w.bool.def(!0),marks:w.object(),cssRotateAngle:w.oneOf([0,90,180,270]).def(0),progressBarVisible:w.bool.def(!0),hotAreaHeight:w.number.def(4),sliderBarHeight:w.looseNumber,sliderBarBg:w.string.def(""),buttonSize:w.number.def(14)}),dH=()=>X(R({},he()),{change:q()}),Ef=Symbol("slider-inject-key"),fH=e=>{const{props:r,emit:t}=e,{modelValue:i,updateModelValue:o}=de(r,{outSideUpdate:()=>{S()}}),n=c.ref(0),a=c.ref(0),s=c.ref(!1),l=c.ref(void 0),p=c.ref(),{width:u}=Oe(p),d=c.ref(),m=c.ref(),f=c.ref(),v=c.computed(()=>Math.min(n.value,a.value)),g=c.computed(()=>Math.max(n.value,a.value)),b=c.computed(()=>r.range?`${100*(g.value-v.value)/(r.max-r.min)}%`:`${100*(n.value-r.min)/(r.max-r.min)}%`),h=c.computed(()=>r.range?`${100*(v.value-r.min)/(r.max-r.min)}%`:"0%"),_=c.computed(()=>X(R({},x.value),{width:b.value,left:h.value})),x=c.computed(()=>{const D={};return r.sliderBarHeight&&(D.height=`${r.sliderBarHeight}px`,D.borderRadius=`${r.sliderBarHeight/2}px`),D}),y=c.computed(()=>{const D=R({},x.value);return r.sliderBarBg&&(D.background=r.sliderBarBg),D}),k=c.computed(()=>{const D=[],A=r.max-r.min,M=E=>{D.includes(E)||D.push(E)};if(r.step&&r.showStops){const E=A/r.step,I=r.step/A;for(let V=1;V<E;V++){const O=Math.round(V*I*100);M(O)}}return r.marks&&Object.keys(r.marks).forEach(E=>{const I=Number(E);if(I>=r.min&&I<=r.max){const V=(I-r.min)/A,O=Math.round(V*100);M(O)}}),D}),C=c.computed(()=>{const D=[],A=r.max-r.min;return r.marks&&Object.keys(r.marks).forEach(M=>{const E=Number(M),I=r.marks[E];let V="",O={};if(typeof I=="string"?V=I:(V=I.label,O=I.style||{}),E>=r.min&&E<=r.max){const W=(E-r.min)/A,B=Math.round(W*100);D.push({label:V,style:O,left:B,value:E})}}),D});function S(){r.range?Array.isArray(i.value)?(n.value=Math.max(r.min,i.value[0]),a.value=Math.min(r.max,i.value[1])):(n.value=r.min,a.value=r.max):typeof i.value!="number"||isNaN(i.value)?n.value=r.min:n.value=Math.min(r.max,Math.max(r.min,i.value))}function L(){let D=i.value;r.range?D=[Math.floor(v.value),Math.floor(g.value)]:D=Math.floor(n.value),D!==i.value&&(l.value=i.value,o(D))}function T(){c.nextTick(()=>{t("change",r.range?[v.value,g.value]:i.value)})}function Q(D){var E;if(!r.range){(E=m.value)==null||E.setPosition(D);return}let A;const M=r.min+D*(r.max-r.min)/100;Math.abs(v.value-M)<Math.abs(g.value-M)?A=n.value<a.value?m.value:f.value:A=n.value>a.value?m.value:f.value,A==null||A.setPosition(D)}function P(D){var A,M;if(!(r.disabled||s.value)){if(r.cssRotateAngle===90){const E=((A=d.value)==null?void 0:A.getBoundingClientRect().top)||0;Q((D.clientY-E)/u.value*100)}else{const E=((M=d.value)==null?void 0:M.getBoundingClientRect().left)||0;Q((D.clientX-E)/u.value*100)}T()}}function z(D){Q(D.left),T()}return c.onMounted(()=>{S()}),c.provide(Ef,{sliderProps:r,sliderWidth:u,dragging:s,emitChange:T}),{modelValue:i,firstValue:n,secondValue:a,dragging:s,sliderRef:p,sliderClickRef:d,button1Ref:m,button2Ref:f,barStyle:_,runwayStyle:y,stops:k,markList:C,onSliderClick:P,onClickMark:z,emitInnerInput:L}},Mf=()=>c.inject(Ef),mH=()=>({value:w.number}),hH=()=>({change:q()}),vH=e=>{const{props:r,emit:t}=e,{sliderProps:i,sliderWidth:o,emitChange:n}=Mf(),a=c.ref(!1),s=c.ref(!1),l=c.ref(!1),p=c.ref(0),u=c.ref(0),d=c.ref(null),m=c.computed(()=>`${(r.value-i.min)/(i.max-i.min)*100}%`),f=c.computed(()=>({left:m.value}));function v(L){let T,Q;switch("touches"in L?(T=L.touches[0].clientX,Q=L.touches[0].clientY):(T=L.clientX,Q=L.clientY),i.cssRotateAngle){case 90:return{clientX:Q,clientY:T};case 180:return{clientX:-T,clientY:-Q};case 270:return{clientX:-Q,clientY:T}}return{clientX:T,clientY:Q}}function g(){i.disabled||(a.value=!0)}function b(){i.disabled||(a.value=!1)}function h(L){if(i.disabled)return;s.value=!0,l.value=!0;const T=v(L);p.value=T.clientX,u.value=parseFloat(m.value),d.value=u.value}function _(L){if(!i.disabled&&s.value){l.value=!1;const T=(v(L).clientX-p.value)/o.value*100;d.value=u.value+T,S(d.value)}}function x(){i.disabled||ue||s.value&&setTimeout(()=>{s.value=!1,l.value||(S(d.value),n())},0)}function y(L){i.disabled||ue||(h(L),window.addEventListener("mousemove",_),window.addEventListener("touchmove",_),window.addEventListener("mouseup",x),window.addEventListener("touchend",x),window.addEventListener("contextmenu",x))}function k(){window.removeEventListener("mousemove",_),window.removeEventListener("touchmove",_),window.removeEventListener("mouseup",x),window.removeEventListener("touchend",x),window.removeEventListener("contextmenu",x)}c.onBeforeUnmount(()=>{k()});function C(L){let T=L;return i.step&&(T=Math.round(L/i.step)*i.step),T<i.min&&(T=i.min),T>i.max&&(T=i.max),T}function S(L){if(L===null||isNaN(L))return;L<0?L=0:L>100&&(L=100);const T=(i.max-i.min)*(L/100),Q=i.min+T;t("change",C(Q))}return{hovering:a,dragging:s,btnStyle:f,handleMouseEnter:g,handleMouseLeave:b,onButtonDown:y,setPosition:S}},gH={name:"PlvSliderButton"},wH=c.defineComponent(X(R({},gH),{props:mH(),emits:hH(),setup(e,{expose:r,emit:t}){const i=e,o=Mf(),{sliderProps:n}=o,{hovering:a,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=vH({props:i,emit:t}),f=c.computed(()=>s.value||o.dragging.value||!1);return r({setPosition:m}),{__sfc:!0,props:i,emit:t,sliderInject:o,sliderProps:n,hovering:a,buttonDragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m,dragging:f}}}));var bH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-slider__button",style:t.btnStyle,on:{mouseenter:t.handleMouseEnter,mouseleave:t.handleMouseLeave,mousedown:t.onButtonDown,touchstart:t.onButtonDown}},[r("div",{class:["pwc-slider__button__inner",t.hovering||t.dragging?"pwc-slider__button__inner--hover":"",t.sliderProps.disabled?"pwc-slider__button__inner--disabled":""],style:{width:`${t.sliderProps.buttonSize}px`,height:`${t.sliderProps.buttonSize}px`}})])},_H=[],xH=j(wH,bH,_H);const yH=xH.exports,CH=c.defineComponent({__name:"slider",props:uH(),emits:dH(),setup(e,{emit:r}){const t=e,{firstValue:i,secondValue:o,sliderRef:n,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:v,emitInnerInput:g}=fH({props:t,emit:r});function b(_){i.value=_,g()}function h(_){o.value=_,g()}return{__sfc:!0,props:t,emit:r,firstValue:i,secondValue:o,sliderRef:n,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:v,emitInnerInput:g,onFirstValueChange:b,onSecondValueChange:h,SliderButton:yH}}});var kH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-slider"},[r("div",{ref:"sliderRef",class:["pwc-slider__runway",t.props.disabled?"pwc-slider__runway--disabled":""],style:t.runwayStyle},[t.props.progressBarVisible?r("div",{staticClass:"pwc-slider__runway__bar",style:t.barStyle}):e._e(),r("div",{ref:"sliderClickRef",staticClass:"pwc-slider__runway__click",style:{height:`${t.props.hotAreaHeight}px`},on:{click:t.onSliderClick}}),e._l(t.stops,function(i){return r("div",{key:`dot-${i}`,staticClass:"pwc-slider__runway__dot",style:{left:`${i}%`}})}),t.props.showSliderButton?r(t.SliderButton,{ref:"button1Ref",attrs:{value:t.firstValue},on:{change:t.onFirstValueChange}}):e._e(),t.props.range&&t.props.showSliderButton?r(t.SliderButton,{ref:"button2Ref",attrs:{value:t.secondValue},on:{change:t.onSecondValueChange}}):e._e()],2),t.markList.length?r("div",{staticClass:"pwc-slider__marks"},e._l(t.markList,function(i,o){return r("div",{key:`mark-${o}`,staticClass:"pwc-slider__marks__item",style:R({left:`${i.left}%`},i.style),on:{click:function(n){return t.onClickMark(i)}}},[e._v(" "+e._s(i.label)+" ")])}),0):e._e()])},LH=[],SH=j(CH,kH,LH);const PH=SH.exports;ee("PwcSlider",PH);const TH=["horizontal","vertical"],QH=["mini","small","medium","large"],EH={mini:4,small:8,medium:16,large:24},MH=()=>({direction:w.oneOf(TH).def("horizontal"),size:w.oneOfType([w.oneOf(QH),Number]).def("small"),wrap:w.bool.def(!1)}),IH=c.defineComponent({__name:"space",props:MH(),setup(e){const r=e,t=c.computed(()=>[`is-${r.direction}`,{"is-wrap":r.wrap}]),i=c.computed(()=>({gap:`${typeof r.size=="number"?r.size:EH[r.size]}px`}));return{__sfc:!0,props:r,spaceClass:t,spaceStyle:i}}});var AH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-space",class:t.spaceClass,style:t.spaceStyle},[e._t("default")],2)},zH=[],DH=j(IH,AH,zH);const RH=DH.exports;ee("PwcSpace",RH);const OH=["horizontal","vertical"],VH=()=>({direction:w.oneOf(OH).def("horizontal"),lazy:w.bool.def(!1)}),BH=()=>({min:w.looseNumber,max:w.looseNumber,initialSize:w.looseNumber}),If=Symbol("SPLITTER_INJECT_KEY"),FH=c.defineComponent({__name:"splitter",props:VH(),setup(e){const r=e,t=c.ref(),i=c.ref([]),o=c.ref([]),{width:n,height:a}=Oe(t),s=c.computed(()=>r.direction==="horizontal"),l=()=>{if(!t.value||i.value.length===0)return;const C=s.value?t.value.clientWidth:t.value.clientHeight;let S=0;const L=i.value.map(P=>P.props.initialSize!==void 0?(S+=P.props.initialSize,!0):!1),T=L.filter(P=>!P).length,Q=T>0?(C-S)/T:0;o.value=i.value.map((P,z)=>L[z]?P.props.initialSize:Q)};c.watch(()=>{const C=s.value?n.value:a.value;return`${r.direction}-${C}`},(C,S)=>{const L=Number(C.split("-").pop()),T=S?Number(S.split("-").pop()):0;if(L===0)return;if(o.value.length===0||o.value.every(z=>z===0)){l();return}if(f.value||T===0||T===L)return;const Q=o.value.reduce((z,D)=>z+D,0);if(Q===0)return;const P=o.value.map(z=>z/Q);o.value=P.map((z,D)=>{var I,V;const A=i.value[D],M=(I=A==null?void 0:A.props.min)!=null?I:0,E=(V=A==null?void 0:A.props.max)!=null?V:1/0;return Math.max(M,Math.min(E,z*L))})});const p=C=>{i.value.push(C),c.nextTick(l)},u=C=>{const S=i.value.findIndex(L=>L.id===C);S>=0&&(i.value.splice(S,1),o.value.splice(S,1))},d=C=>{const S=i.value.findIndex(T=>T.id===C),L=o.value[S];return L===void 0?{}:s.value?{width:`${L}px`,flexShrink:"0"}:{height:`${L}px`,flexShrink:"0"}},m=C=>{var S;return((S=i.value[i.value.length-1])==null?void 0:S.id)===C},f=c.ref(!1),v=c.ref(""),g=c.ref(0),b=c.ref([]),h=c.ref([]),_=c.computed(()=>{var L,T;if(!f.value||!r.lazy)return-1;const C=i.value.findIndex(Q=>Q.id===v.value);if(C<0)return-1;let S=0;for(let Q=0;Q<=C;Q++)S+=(T=(L=h.value[Q])!=null?L:o.value[Q])!=null?T:0;return S}),x=(C,S)=>{S.preventDefault(),f.value=!0,v.value=C,g.value=s.value?S.clientX:S.clientY,b.value=[...o.value],h.value=[...o.value],document.addEventListener("mousemove",y),document.addEventListener("mouseup",k)},y=C=>{var V,O,W,B;if(!f.value)return;const S=(s.value?C.clientX:C.clientY)-g.value,L=i.value.findIndex(F=>F.id===v.value);if(L<0||L>=i.value.length-1)return;const T=i.value[L],Q=i.value[L+1],P=b.value[L]+b.value[L+1],z=(V=T.props.min)!=null?V:0,D=(O=T.props.max)!=null?O:1/0,A=(W=Q.props.min)!=null?W:0,M=(B=Q.props.max)!=null?B:1/0;let E=Math.max(z,Math.min(D,b.value[L]+S)),I=P-E;if(I<A&&(I=A,E=P-I),I>M&&(I=M,E=P-I),E=Math.max(z,Math.min(D,E)),r.lazy){const F=[...b.value];F[L]=E,F[L+1]=I,h.value=F}else{const F=[...o.value];F[L]=E,F[L+1]=I,o.value=F}},k=()=>{r.lazy&&(o.value=[...h.value]),f.value=!1,v.value="",document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",k)};return c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",k)}),c.provide(If,{direction:c.computed(()=>r.direction),registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,onDividerMouseDown:x}),{__sfc:!0,props:r,containerRef:t,panels:i,sizes:o,containerWidth:n,containerHeight:a,isHorizontal:s,initSizes:l,registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,isDragging:f,draggingId:v,startPos:g,startSizes:b,pendingSizes:h,lazyPreviewPos:_,onDividerMouseDown:x,onMouseMove:y,onMouseUp:k}}});var jH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{ref:"containerRef",staticClass:"pwc-splitter",class:[`pwc-splitter--${t.props.direction}`,{"is-dragging":t.isDragging}]},[e._t("default"),t.isDragging&&t.props.lazy&&t.lazyPreviewPos>=0?r("div",{staticClass:"pwc-splitter__lazy-preview",class:[`pwc-splitter__lazy-preview--${t.props.direction}`],style:t.isHorizontal?{left:`${t.lazyPreviewPos}px`}:{top:`${t.lazyPreviewPos}px`}}):e._e()],2)},NH=[],UH=j(FH,jH,NH);const WH=UH.exports,HH=c.defineComponent({__name:"splitter-panel",props:BH(),setup(e){const r=e,t=`splitter-panel-${Math.random().toString(36).slice(2)}`,i=c.inject(If),o=c.computed(()=>{var l;return(l=i==null?void 0:i.direction.value)!=null?l:"horizontal"}),n=c.computed(()=>{var l;return(l=i==null?void 0:i.isLastPanel(t))!=null?l:!1}),a=c.computed(()=>{var l;return(l=i==null?void 0:i.getPanelStyle(t))!=null?l:{}}),s=l=>{i==null||i.onDividerMouseDown(t,l)};return c.onMounted(()=>{i==null||i.registerPanel({id:t,props:r})}),c.onBeforeUnmount(()=>{i==null||i.unregisterPanel(t)}),{__sfc:!0,props:r,panelId:t,splitter:i,direction:o,isLast:n,panelStyle:a,handleDividerMouseDown:s}}});var ZH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-splitter-panel",style:t.panelStyle},[r("div",{staticClass:"pwc-splitter-panel__content"},[e._t("default")],2),t.isLast?e._e():r("div",{staticClass:"pwc-splitter__divider",class:[`pwc-splitter__divider--${t.direction}`],on:{mousedown:t.handleDividerMouseDown}},[r("span",{staticClass:"pwc-splitter__divider-bar"})])])},qH=[],YH=j(HH,ZH,qH);const GH=YH.exports;ee("PwcSplitter",WH),ee("PwcSplitterPanel",GH);const KH=()=>({max:w.number.def(3)}),XH=()=>({label:w.looseString,disabled:w.bool.def(!1)}),JH=()=>({click:q()}),Af=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),$H=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(Af,{}),{__sfc:!0,PwcButton:Ne,PwcIconMore:fu,PwcDropdown:jD,PwcDropdownMenu:ND}}});var eZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r(t.PwcDropdown,{staticClass:"pwc-table-operation-dropdown",scopedSlots:e._u([{key:"dropdown",fn:function(){return[r(t.PwcDropdownMenu,[e._t("default")],2)]},proxy:!0}],null,!0)},[r(t.PwcButton,{attrs:{link:""}},[r("div",{staticClass:"pwc-table-operation-dropdown__icon"},[r(t.PwcIconMore)],1)])],1)},tZ=[],rZ=j($H,eZ,tZ);const iZ=rZ.exports;function oZ(e){const r=e;if(typeof r.text=="string")return r.text;if(typeof r.children=="string")return r.children}function nZ(e){const r=oZ(e);return typeof r=="string"&&r.trim()===""}function aZ(e){return!Ae.isCommentVNode(e)&&!nZ(e)}const sZ=c.defineComponent({props:KH(),setup(e){const r=c.useSlots(),t=c.inject(Vl,void 0),i=ar(8),o=c.ref();function n(){if(t)return t.allRenderColumnList.value.find(a=>a.columnProps.type==="operation")}return Oe(o,({width:a})=>{const s=n();s&&s.setOperationWidthRecord(i,a)}),c.onBeforeUnmount(()=>{const a=n();a&&a.removeOperationWidthRecord(i)}),()=>{var m;let a=(m=r.default)==null?void 0:m.call(r);if(!a)return c.h("span",{},"-");a=a.filter(aZ);let s=0;const l=[],p=[],u=a.length;u===0&&l.push(c.h("span",{},"-")),a.forEach(f=>{u<=e.max||s<e.max-1?(l.push(f),s++):p.push(f)}),p.length>0&&l.push(c.h(iZ,{},_o()?{default:()=>p}:p));const d=["pwc-table-operation"];return u===0&&d.push("is-empty"),c.h("div",{class:d},[c.h("div",{class:"pwc-table-operation__content",ref:o},l)])}}}),lZ=c.defineComponent({__name:"table-operation-item",props:XH(),emits:JH(),setup(e,{emit:r}){const t=e,i=c.useAttrs(),o=c.inject(Af,void 0);function n(s){t.disabled||r("click",s)}const a=c.computed(()=>"href"in i?"a":"div");return{__sfc:!0,props:t,emit:r,attrs:i,dropdownInject:o,onClickItem:n,dropdownItemTag:a,PwcButton:Ne,PwcDropdownItem:UD}}});var cZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return t.dropdownInject?r(t.PwcDropdownItem,{staticClass:"pwc-table-operation-item",attrs:{disabled:e.disabled,tag:t.dropdownItemTag},nativeOn:{click:function(i){return t.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2):r(t.PwcButton,{staticClass:"pwc-table-operation-item",attrs:{link:"",disabled:e.disabled},nativeOn:{click:function(i){return t.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2)},pZ=[],uZ=j(lZ,cZ,pZ);const dZ=uZ.exports;ee("PwcTableOperation",sZ),ee("PwcTableOperationItem",dZ);const fZ=["line","rounded","text"],mZ=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(fZ).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),hZ=()=>X(R({},he()),{change:q()}),vZ=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),vc=Symbol("tabs-inject-key"),gZ=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:r,tabsProps:t,setCurrentTab:i}=c.inject(vc),{$t:o}=ne(),n=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=mt();function p(){return K(this,null,function*(){if(yield c.nextTick(),!n.value||ue)return;const d=n.value.querySelector(".pwc-tab-nav__item");if(!d)return;const m=d.clientHeight;n.value.clientHeight>=m*1.5||n.value.scrollWidth>n.value.clientWidth?a.value=!0:a.value=!1})}c.watch(()=>r.value.length,()=>{p()},{immediate:!0});function u(d){d.paneProps.disabled||i(d.getPaneName())}return{__sfc:!0,tabPanes:r,tabsProps:t,setCurrentTab:i,$t:o,listRef:n,isMoreItem:a,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:dr,PwcIconUp:Ns,renderSlot:ut}}});var wZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-tab-nav",class:[`is-type-${t.tabsProps.type}`]},[r("div",{ref:"listRef",staticClass:"pwc-tab-nav__list",class:{"is-hide":t.tabsProps.expand&&!t.isExpanded}},e._l(t.tabPanes,function(i){return r("div",{key:i.paneId,staticClass:"pwc-tab-nav__item",class:{"is-active":i.getIsActive(),"is-disabled":i.paneProps.disabled},on:{click:function(o){return t.onClickItem(i)}}},[i.hasSlot("title")?r(t.renderSlot,{staticClass:"pwc-tab-nav__item__title",attrs:{"slot-func":i.getTitleRenderSlot}}):r("span",[e._v(e._s(i.paneProps.title))]),i.hasSlot("extra")?r(t.renderSlot,{staticClass:"pwc-tab-nav__item__extra",attrs:{"slot-func":i.getExtraRenderSlot}}):e._e(),i.paneProps.extra?r("span",{staticClass:"pwc-tab-nav__item__extra"},[e._v(" "+e._s(i.paneProps.extra)+" ")]):e._e()],1)}),0),r("div",{staticClass:"pwc-tab-nav__right"},[t.tabsProps.expand&&t.isMoreItem?r("div",{staticClass:"pwc-tab-nav__expand",on:{click:t.toggle}},[r("span",[e._v(e._s(t.isExpanded?t.$t("tabs.collapse"):t.$t("tabs.more")))]),t.isExpanded?r(t.PwcIconUp):r(t.PwcIconDown)],1):e._e()])])},bZ=[],_Z=j(gZ,wZ,bZ);const xZ=_Z.exports,yZ=c.defineComponent({__name:"tabs",props:mZ(),emits:hZ(),setup(e,{emit:r}){const t=e,i=c.ref(),o=c.ref(),{modelValue:n,updateModelValue:a}=de(t,{outSideUpdate:v=>{i.value=v}}),s=c.ref([]);function l(v){if(!s.value.includes(v)){if(typeof i.value>"u")if(typeof n.value>"u"){const g=v.getPaneName();u(g,!1)}else u(n.value,!1);s.value.push(v)}}function p(v){s.value=s.value.filter(g=>g!==v)}function u(v,g=!0){i.value!==v&&(i.value=v,a(v),g&&r("change",v))}const d=c.ref(0);function m(){return K(this,null,function*(){var b;yield c.nextTick();const v=((b=o.value)==null?void 0:b.querySelectorAll("[data-pane-name]"))||[];let g=0;for(let h=0;h<v.length;h++)if(v[h].getAttribute("data-is-active")==="true"){g=h*100;break}d.value=g})}c.watch(()=>i.value,()=>{m()});const f={tabsProps:t,currentTab:i,tabPanes:s,setCurrentTab:u,addTabPane:l,removeTabPane:p};return c.provide(vc,f),{__sfc:!0,props:t,emits:r,currentTab:i,tabsRef:o,modelValue:n,updateModelValue:a,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:xZ}}});var CZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{ref:"tabsRef",staticClass:"pwc-tabs"},[r(t.TabNav),r("div",{staticClass:"pwc-tabs__content"},[r("div",{staticClass:"pwc-tabs__list",style:{marginLeft:`-${t.offsetPercent}%`}},[e._t("default")],2)])],1)},kZ=[],LZ=j(yZ,CZ,kZ);const SZ=LZ.exports,PZ=c.defineComponent({__name:"tab-pane",props:vZ(),setup(e){const r=e,t=ar(8),i=c.inject(vc),{hasSlot:o,slotRender:n}=xe(),a=c.computed(()=>r.name||t),s=c.computed(()=>i.currentTab.value===a.value);function l(){return n("title",{isActive:s.value})}const p=c.computed(()=>{var f;return(f=r.lazyLoad)!=null?f:i.tabsProps.lazyLoad}),u=c.ref(!1);c.watch(s,()=>{s.value&&(u.value=!0)});const d=c.computed(()=>p.value?u.value:!0),m={paneId:t,paneProps:r,getPaneName:()=>a.value,getIsActive:()=>s.value,hasSlot:o,getTitleRenderSlot:l,getExtraRenderSlot:()=>n("extra")};return c.onBeforeMount(()=>{i.addTabPane(m)}),{__sfc:!0,props:r,paneId:t,tabsInject:i,hasSlot:o,slotRender:n,tabPaneName:a,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var TZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-tab-pane",class:{"is-active":t.isActive},attrs:{"data-pane-name":t.tabPaneName,"data-is-active":t.isActive}},[t.canRender?r("div",{staticClass:"pwc-tab-pane__content"},[e._t("default")],2):e._e()])},QZ=[],EZ=j(PZ,TZ,QZ);const MZ=EZ.exports;ee("PwcTabs",SZ),ee("PwcTabPane",MZ);var zf={},IZ,AZ;function zZ(e,r,t,n){var o=0,n=n===void 0?{}:n,a=n.loop===void 0?null:n.loop,s=n.palette===void 0?null:n.palette;if(r<=0||t<=0||r>65535||t>65535)throw new Error("Width/Height invalid.");function l(b){var h=b.length;if(h<2||h>256||h&h-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return h}e[o++]=71,e[o++]=73,e[o++]=70,e[o++]=56,e[o++]=57,e[o++]=97;var p=0,u=0;if(s!==null){for(var d=l(s);d>>=1;)++p;if(d=1<<p,--p,n.background!==void 0){if(u=n.background,u>=d)throw new Error("Background index out of range.");if(u===0)throw new Error("Background index explicitly passed as 0.")}}if(e[o++]=r&255,e[o++]=r>>8&255,e[o++]=t&255,e[o++]=t>>8&255,e[o++]=(s!==null?128:0)|p,e[o++]=u,e[o++]=0,s!==null)for(var m=0,f=s.length;m<f;++m){var v=s[m];e[o++]=v>>16&255,e[o++]=v>>8&255,e[o++]=v&255}if(a!==null){if(a<0||a>65535)throw new Error("Loop count invalid.");e[o++]=33,e[o++]=255,e[o++]=11,e[o++]=78,e[o++]=69,e[o++]=84,e[o++]=83,e[o++]=67,e[o++]=65,e[o++]=80,e[o++]=69,e[o++]=50,e[o++]=46,e[o++]=48,e[o++]=3,e[o++]=1,e[o++]=a&255,e[o++]=a>>8&255,e[o++]=0}var g=!1;this.addFrame=function(b,h,_,x,y,k){if(g===!0&&(--o,g=!1),k=k===void 0?{}:k,b<0||h<0||b>65535||h>65535)throw new Error("x/y invalid.");if(_<=0||x<=0||_>65535||x>65535)throw new Error("Width/Height invalid.");if(y.length<_*x)throw new Error("Not enough pixels for the frame size.");var C=!0,S=k.palette;if(S==null&&(C=!1,S=s),S==null)throw new Error("Must supply either a local or global palette.");for(var L=l(S),T=0;L>>=1;)++T;L=1<<T;var Q=k.delay===void 0?0:k.delay,P=k.disposal===void 0?0:k.disposal;if(P<0||P>3)throw new Error("Disposal out of range.");var z=!1,D=0;if(k.transparent!==void 0&&k.transparent!==null&&(z=!0,D=k.transparent,D<0||D>=L))throw new Error("Transparent color index.");if((P!==0||z||Q!==0)&&(e[o++]=33,e[o++]=249,e[o++]=4,e[o++]=P<<2|(z===!0?1:0),e[o++]=Q&255,e[o++]=Q>>8&255,e[o++]=D,e[o++]=0),e[o++]=44,e[o++]=b&255,e[o++]=b>>8&255,e[o++]=h&255,e[o++]=h>>8&255,e[o++]=_&255,e[o++]=_>>8&255,e[o++]=x&255,e[o++]=x>>8&255,e[o++]=C===!0?128|T-1:0,C===!0)for(var A=0,M=S.length;A<M;++A){var E=S[A];e[o++]=E>>16&255,e[o++]=E>>8&255,e[o++]=E&255}return o=DZ(e,o,T<2?2:T,y),o},this.end=function(){return g===!1&&(e[o++]=59,g=!0),o},this.getOutputBuffer=function(){return e},this.setOutputBuffer=function(b){e=b},this.getOutputBufferPosition=function(){return o},this.setOutputBufferPosition=function(b){o=b}}function DZ(e,r,t,i){e[r++]=t;var o=r++,n=1<<t,a=n-1,s=n+1,l=s+1,p=t+1,u=0,d=0;function m(k){for(;u>=k;)e[r++]=d&255,d>>=8,u-=8,r===o+256&&(e[o]=255,o=r++)}function f(k){d|=k<<u,u+=p,m(8)}var v=i[0]&a,g={};f(n);for(var b=1,h=i.length;b<h;++b){var _=i[b]&a,x=v<<8|_,y=g[x];if(y===void 0){for(d|=v<<u,u+=p;u>=8;)e[r++]=d&255,d>>=8,u-=8,r===o+256&&(e[o]=255,o=r++);l===4096?(f(n),l=s+1,p=t+1,g={}):(l>=1<<p&&++p,g[x]=l++),v=_}else v=y}return f(v),f(s),m(1),o+1===r?e[o]=0:(e[o]=r-o-1,e[r++]=0),r}function RZ(e){var r=0;if(e[r++]!==71||e[r++]!==73||e[r++]!==70||e[r++]!==56||(e[r++]+1&253)!==56||e[r++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=e[r++]|e[r++]<<8,i=e[r++]|e[r++]<<8,o=e[r++],n=o>>7,a=o&7,s=1<<a+1;e[r++],e[r++];var l=null,p=null;n&&(l=r,p=s,r+=s*3);var u=!0,d=[],m=0,f=null,v=0,g=null;for(this.width=t,this.height=i;u&&r<e.length;)switch(e[r++]){case 33:switch(e[r++]){case 255:if(e[r]!==11||e[r+1]==78&&e[r+2]==69&&e[r+3]==84&&e[r+4]==83&&e[r+5]==67&&e[r+6]==65&&e[r+7]==80&&e[r+8]==69&&e[r+9]==50&&e[r+10]==46&&e[r+11]==48&&e[r+12]==3&&e[r+13]==1&&e[r+16]==0)r+=14,g=e[r++]|e[r++]<<8,r++;else for(r+=12;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}break;case 249:if(e[r++]!==4||e[r+4]!==0)throw new Error("Invalid graphics extension block.");var h=e[r++];m=e[r++]|e[r++]<<8,f=e[r++],h&1||(f=null),v=h>>2&7,r++;break;case 254:for(;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}break;default:throw new Error("Unknown graphic control label: 0x"+e[r-1].toString(16))}break;case 44:var _=e[r++]|e[r++]<<8,x=e[r++]|e[r++]<<8,y=e[r++]|e[r++]<<8,k=e[r++]|e[r++]<<8,C=e[r++],S=C>>7,L=C>>6&1,T=C&7,Q=1<<T+1,P=l,z=p,D=!1;if(S){var D=!0;P=r,z=Q,r+=Q*3}var A=r;for(r++;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}d.push({x:_,y:x,width:y,height:k,has_local_palette:D,palette_offset:P,palette_size:z,data_offset:A,data_length:r-A,transparent_index:f,interlaced:!!L,delay:m,disposal:v});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[r-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return g},this.frameInfo=function(M){if(M<0||M>=d.length)throw new Error("Frame index out of range.");return d[M]},this.decodeAndBlitFrameBGRA=function(M,E){var I=this.frameInfo(M),V=I.width*I.height,O=new Uint8Array(V);Df(e,I.data_offset,O,V);var W=I.palette_offset,B=I.transparent_index;B===null&&(B=256);var F=I.width,H=t-F,G=F,N=(I.y*t+I.x)*4,Y=((I.y+I.height)*t+I.x)*4,J=N,ie=H*4;I.interlaced===!0&&(ie+=t*4*7);for(var U=8,te=0,fe=O.length;te<fe;++te){var we=O[te];if(G===0&&(J+=ie,G=F,J>=Y&&(ie=H*4+t*4*(U-1),J=N+(F+H)*(U<<1),U>>=1)),we===B)J+=4;else{var be=e[W+we*3],Ze=e[W+we*3+1],xt=e[W+we*3+2];E[J++]=xt,E[J++]=Ze,E[J++]=be,E[J++]=255}--G}},this.decodeAndBlitFrameRGBA=function(M,E){var I=this.frameInfo(M),V=I.width*I.height,O=new Uint8Array(V);Df(e,I.data_offset,O,V);var W=I.palette_offset,B=I.transparent_index;B===null&&(B=256);var F=I.width,H=t-F,G=F,N=(I.y*t+I.x)*4,Y=((I.y+I.height)*t+I.x)*4,J=N,ie=H*4;I.interlaced===!0&&(ie+=t*4*7);for(var U=8,te=0,fe=O.length;te<fe;++te){var we=O[te];if(G===0&&(J+=ie,G=F,J>=Y&&(ie=H*4+t*4*(U-1),J=N+(F+H)*(U<<1),U>>=1)),we===B)J+=4;else{var be=e[W+we*3],Ze=e[W+we*3+1],xt=e[W+we*3+2];E[J++]=be,E[J++]=Ze,E[J++]=xt,E[J++]=255}--G}}}function Df(e,r,t,i){for(var o=e[r++],n=1<<o,a=n+1,s=a+1,l=o+1,p=(1<<l)-1,u=0,d=0,m=0,f=e[r++],v=new Int32Array(4096),g=null;;){for(;u<16&&f!==0;)d|=e[r++]<<u,u+=8,f===1?f=e[r++]:--f;if(u<l)break;var b=d&p;if(d>>=l,u-=l,b===n){s=a+1,l=o+1,p=(1<<l)-1,g=null;continue}else if(b===a)break;for(var h=b<s?b:g,_=0,x=h;x>n;)x=v[x]>>8,++_;var y=x,k=m+_+(h!==b?1:0);if(k>i){console.log("Warning, gif stream longer than expected.");return}t[m++]=y,m+=_;var C=m;for(h!==b&&(t[m++]=y),x=h;_--;)x=v[x],t[--C]=x&255,x>>=8;g!==null&&s<4096&&(v[s++]=g<<8|y,s>=p+1&&l<12&&(++l,p=p<<1|1)),g=b}return m!==i&&console.log("Warning, gif stream shorter than expected."),t}try{AZ=zf.GifWriter=zZ,IZ=zf.GifReader=RZ}catch(e){}const OZ=e=>{const{configProviderData:r}=hr();function t(i){var o;if(r!=null&&r.trackEventCallback){r.trackEventCallback(i);return}(o=e.trackEvent)==null||o.call(e,i)}return{trackEvent:t}};function VZ(e,r,t={}){function i(){if(e)for(const n in r)r[n]&&e.on(n,r[n])}function o(){if(e)for(const n in r)r[n]&&e.off(n,r[n])}return Fn({listenEvent:i,removeEvent:o},t),{listenEvent:i,removeEvent:o}}const BZ={vote:{option:"Voting Options",rule:"Rules",ruleTitle:"Rule Description",success:"Vote successful",voted:"You have already voted",voteFailed:"Vote failed",voteLimit:"Vote limit reached",count:"votes",entrance:"Vote",listTitle:"Vote Activity",noRule:"No rules",status:{voting:"Voting",ended:"Ended"},button:{vote:"Vote",voted:"Voted",notVoted:"Not Voted"}}},FZ={vote:{option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}}},jZ={vote:{option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}}},NZ={vote:{option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}}},UZ={vote:{option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},WZ={vote:{option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},{useI18n:pi}=Gu({zh_CN:UZ,zh_TW:WZ,en:BZ,ja:FZ,ko:jZ,ru:NZ}),gc={OpenVote:"OpenVote",OpenVoteRule:"OpenVoteRule"},HZ=()=>({voteTarget:w.object(),popupConfig:w.object(),layout:w.oneOf(["single","double"]).def("single"),maxVote:w.number.def(0),showRule:w.bool.def(!0),resultShowType:w.number.def(0)}),ZZ=e=>{const{voteListRef:r}=e,t=c.ref(!1),i=c.ref(),{getEmitter:o}=ei();function n(){t.value=!0,c.nextTick(()=>{i.value&&i.value.resetScroll()})}c.watch(t,p=>{p&&c.nextTick(()=>{var u;(u=r==null?void 0:r.value)!=null&&u.recalculateGridRowEnds&&r.value.recalculateGridRowEnds()})});function a(){t.value=!1}function s(){o().emit(gc.OpenVoteRule)}return ti(gc.OpenVote,n),{instance:{open:n,close:a},visible:t,popupRef:i,handleToRule:s}},qZ=()=>({status:w.oneOf(["Y","N"]).def("Y"),isVoted:w.bool.isRequired,disabled:w.bool.def(!1),hasVoteList:w.bool.def(!1)}),YZ=()=>({click:q()}),GZ=e=>{const{props:r,emit:t}=e,{$t:i}=pi(),o=c.computed(()=>r.isVoted?"voted":r.status==="N"?"not-voted":r.disabled?"disabled":"vote"),n={vote:i("vote.button.vote"),voted:i("vote.button.voted"),"not-voted":i("vote.button.notVoted"),disabled:i("vote.button.vote")},a=c.computed(()=>n[o.value]);function s(){o.value==="vote"&&t("click")}return{buttonType:o,buttonText:a,handleClick:s}},KZ=c.defineComponent({__name:"vote-button",props:qZ(),emits:YZ(),setup(e,{emit:r}){const t=e,{buttonType:i,buttonText:o,handleClick:n}=GZ({props:t,emit:r});return{__sfc:!0,props:t,emit:r,buttonType:i,buttonText:o,handleClick:n,PwcButton:Ne}}});function Yi(e,r,t,i,o,n,a,s){var l=typeof e=="function"?e.options:e;return r&&(l.render=r,l.staticRenderFns=t,l._compiled=!0),n&&(l._scopeId="data-v-"+n),{exports:e,options:l}}var XZ=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-vote-button",class:{"plv-iar-vote-button--no-pointer":i.props.hasVoteList}},[i.buttonType==="vote"?t(i.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:i.props.disabled},on:{click:i.handleClick}},[r._v(" "+r._s(i.buttonText)+" ")]):i.buttonType==="not-voted"||i.buttonType==="disabled"?t(i.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:""}},[r._v(" "+r._s(i.buttonText)+" ")]):t(i.PwcButton,{staticClass:"plv-iar-vote-button__text",attrs:{size:"mini",disabled:i.props.status==="N"||i.props.disabled}},[r._v(" "+r._s(i.buttonText)+" ")])],1)},JZ=[],$Z=Yi(KZ,XZ,JZ,!1,null,"80252ec7");const Rf=$Z.exports,eq=()=>({status:w.oneOf(["Y","N"]).def("Y")}),tq=()=>({}),rq=e=>{const{props:r}=e,{$t:t}=pi();return{statusText:c.computed(()=>r.status==="Y"?t("vote.status.voting"):t("vote.status.ended"))}},iq=c.defineComponent({__name:"vote-status",props:eq(),emits:tq(),setup(e,{emit:r}){const t=e,{statusText:i}=rq({props:t});return{__sfc:!0,props:t,emit:r,statusText:i}}});var oq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-vote-status",class:{"plv-iar-vote-status--voting":r.status==="Y","plv-iar-vote-status--ended":r.status==="N"}},[r._v(" "+r._s(i.statusText)+" ")])},nq=[],aq=Yi(iq,oq,nq,!1,null,"b5328d28");const Of=aq.exports,Vf=()=>({voteData:w.object().isRequired,votedList:w.array().def([]),layout:w.oneOf(["single","double"]).def("single"),clickable:w.bool.def(!0),hasVoteList:w.bool.def(!1)}),Bf=()=>({"to-vote":q()}),Ff=e=>{const{props:r,emit:t,itemRef:i}=e,o=c.ref({gridRowEnd:"auto"}),n=c.computed(()=>r.votedList.includes(r.voteData.id)),a=c.computed(()=>!r.clickable);function s(){a.value||t("to-vote",r.voteData.id)}return{isVoted:n,isDisabled:a,gridRowEndStyle:o,handleVote:s}},sq=c.defineComponent({__name:"vote-item-single",props:Vf(),emits:Bf(),setup(e,{emit:r}){const t=e,{$t:i}=pi(),{isVoted:o,isDisabled:n,handleVote:a}=Ff({props:t,emit:r});return{__sfc:!0,$t:i,props:t,emit:r,isVoted:o,isDisabled:n,handleVote:a,VoteButton:Rf,VoteStatus:Of}}});var lq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-single",class:{"plv-iar-vote-list-item-image":!!r.voteData.voteCoverImage,"plv-iar-vote-list-item-no-image":!r.voteData.voteCoverImage}},[r.voteData.voteCoverImage?[t("div",{staticClass:"plv-iar-vote-list-item-bg"},[t("div",{staticClass:"plv-iar-vote-list-item-bg-image",style:{backgroundImage:`url(${r.voteData.voteCoverImage})`}}),t("div",{staticClass:"plv-iar-vote-list-item-bg-mask"})])]:r._e(),t("div",{staticClass:"plv-iar-vote-list-item-content"},[t("div",{staticClass:"plv-iar-vote-list-item-content-info"},[t("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top"},[r.voteData.status?t(i.VoteStatus,{staticClass:"plv-iar-vote-list-item-content-info-left-top-item",attrs:{status:r.voteData.status}}):r._e(),r.voteData.showVoteCount?t("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top-item plv-iar-vote-list-item-content-info-count"},[r._v(" "+r._s(r.voteData.voteCount||0)+" "+r._s(i.$t("vote.count"))+" ")]):r._e()],1),t("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[r._v(r._s(r.voteData.name))])]),t(i.VoteButton,{attrs:{status:r.voteData.status,"is-voted":i.isVoted,disabled:i.isDisabled,"has-vote-list":i.props.hasVoteList},on:{click:i.handleVote}})],1)],2)},cq=[],pq=Yi(sq,lq,cq,!1,null,"c2bb97a3");const uq=pq.exports,dq=c.defineComponent({__name:"vote-item-double",props:Vf(),emits:Bf(),setup(e,{expose:r,emit:t}){const i=e,{$t:o}=pi(),n=c.ref(),{isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p}=Ff({props:i,emit:t,itemRef:n});let u=null;const d=12;function m(g=d){if(!n.value)return;const b=n.value.offsetHeight;if(b>0){const h=Math.ceil(b/g);l.value={gridRowEnd:`span ${h}`}}}function f(){n.value&&(u&&(u.disconnect(),u=null),u=new bp(()=>{m(d)}),u.observe(n.value),m(d))}function v(){u&&(u.disconnect(),u=null)}return c.watch(n,g=>{v(),g&&f()},{immediate:!0}),c.onBeforeUnmount(()=>{v()}),r({calculateGridRowEnd:m,itemRef:n}),{__sfc:!0,$t:o,props:i,emit:t,itemRef:n,isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p,resizeObserver:u,GAP:d,calculateGridRowEnd:m,setupResizeObserver:f,cleanupResizeObserver:v,VoteButton:Rf,VoteStatus:Of}}});var fq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{ref:"itemRef",staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-double",style:i.gridRowEndStyle},[t("div",{staticClass:"plv-iar-vote-list-item-content-container"},[r.voteData.voteCoverImage?[t("div",{staticClass:"plv-iar-vote-list-item-image",style:{backgroundImage:`url(${r.voteData.voteCoverImage})`}},[t("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[r.voteData.status?t(i.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-image-status",attrs:{status:r.voteData.status}}):r._e(),r.voteData.showVoteCount?t("div",{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-content-info-count"},[r._v(" "+r._s(r.voteData.voteCount||0)+" "+r._s(i.$t("vote.count"))+" ")]):r._e()],1)])]:r._e(),t("div",{staticClass:"plv-iar-vote-list-item-content"},[t("div",{staticClass:"plv-iar-vote-list-item-content-info"},[r.voteData.voteCoverImage?r._e():t("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[r.voteData.status?t(i.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item",attrs:{status:r.voteData.status}}):r._e(),r.voteData.showVoteCount?t("div",{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-content-info-count"},[r._v(" "+r._s(r.voteData.voteCount||0)+" "+r._s(i.$t("vote.count"))+" ")]):r._e()],1),t("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[r._v(r._s(r.voteData.name))])]),t(i.VoteButton,{attrs:{status:r.voteData.status,"is-voted":i.isVoted,disabled:i.isDisabled,"has-vote-list":i.props.hasVoteList},on:{click:i.handleVote}})],1)],2)])},mq=[],hq=Yi(dq,fq,mq,!1,null,"7ae37e2b");const vq=hq.exports;function gq(e){const{state:r,onShow:t,onGetVoteList:i}=e,{list:o,curVotedList:n,cacheVotedList:a,voteCount:s,isForceHideResult:l,isForceShowResult:p,findVoteById:u}=r;function d(_){n.value=_.curVotedList}function m(_){const x=_.voteData.id,y=u(x)[0];y!==-1&&o.value.splice(y,1);const k=n.value.findIndex(T=>T===x);k!==-1&&n.value.splice(k,1);const C=a.value.findIndex(T=>T===x);C!==-1&&a.value.splice(C,1);const S=_.voteData.voteOrder||0;let L=o.value.length;for(let T=0;T<o.value.length;T++)if((o.value[T].voteOrder||0)>=S){L=T;break}p.value&&(_.voteData.showVoteCount=!0,_.voteData.voteCount=0),o.value.splice(L,0,_.voteData),t()}function f(_){const x=u(_.id)[1];x&&(x.status="N")}function v(_){s.value=_.voteCount,_.list.forEach(x=>{const y=u(x.id)[1];y&&(y.showVoteCount=!l.value,y.voteCount=x.times)})}function g(){o.value.splice(0,o.value.length)}function b(_){const x=u(_.id)[0];x!==-1&&o.value.splice(x,1)}function h(_){const x=Math.floor(Math.random()*3e3);setTimeout(()=>{i()},x)}return{updateVotedList:d,onVoteStart:m,onVoteStop:f,onVoteResult:v,onVoteDeleteAll:g,onVoteDelete:b,onVoteChangeOrder:h}}function wq(e){const{voteTarget:r,state:t,onShowEntrance:i}=e,{list:o,curVotedList:n,cacheVotedList:a,isVotedWithLimit:s,voteCount:l,isForceHideResult:p,findVoteById:u}=t,{toast:d}=br(),{$t:m}=pi(),{trackEvent:f}=OZ((r==null?void 0:r.interactionCore)||{});function v(){return K(this,null,function*(){r&&(n.value=r.getVotedList())})}function g(){return K(this,null,function*(){if(!r)return;const y=yield r.getVoteList();if(y&&y.code===200&&y.data){o.value=y.data.list,o.value.length>0&&i(!0);const k=r.getCachedVoteResult();k&&k.forEach(C=>{const S=u(C.id)[1];S&&(S.showVoteCount=!p.value,S.voteCount=C.times)})}})}const b=ws(g,1e3);function h(y){return K(this,null,function*(){if(r&&a.value.indexOf(y)===-1){a.value.push(y);const k=yield r.toVote(y);if(k.code===200)r.pushVotedList(y),d.success(m("vote.success"));else if(k.code===506)d.info(m("vote.voted")),r.pushVotedList(y);else{k.code===501?(s.value=!0,d.error(m("vote.voteLimit"))):d.error(k.message||m("vote.voteFailed"));const C=a.value.indexOf(y);C!==-1&&a.value.splice(C,1)}_()}})}function _(){r&&f({event_id:"click_vote_widget",event_type:"click",spec_attrs:{timestamp:Date.now()}})}function x(){r&&r.interactionCore.getSocket().then(y=>{y&&y.on("connect",()=>{b()})})}return{getVotedList:v,getVoteList:b,toVote:h,setupSocketListener:x}}function bq(e){const{resultShowType:r}=e,t=c.ref([]),i=c.ref([]),o=c.ref([]),n=c.ref(!1),a=c.ref(0),s=c.computed(()=>i.value.length),l=c.computed(()=>r===3&&a.value===0&&o.value.length===0),p=c.computed(()=>r===2||r===3&&(a.value>0||i.value.length>0));function u(d){const m=t.value.findIndex(f=>f.id===d);return[m,t.value[m]]}return{list:t,curVotedList:i,cacheVotedList:o,isVotedWithLimit:n,voteCount:a,isForceHideResult:l,isForceShowResult:p,votedCount:s,findVoteById:u}}const _q=()=>({voteTarget:w.object(),layout:w.oneOf(["single","double"]).def("single"),voteList:w.array(),maxVote:w.number.def(0),showHeader:w.bool.def(!0),showRule:w.bool.def(!0),resultShowType:w.number.def(0)}),xq=()=>({"to-show":()=>!0,"to-hide":()=>!0,"show-entrance":q()}),yq=e=>{var h,_,x,y,k,C,S;const{props:r,emit:t}=e,{getEmitter:i}=ei(),{voteTarget:o={}}=r,n=bq({resultShowType:r.resultShowType}),a=wq({voteTarget:o,state:n,onShowEntrance:L=>t("show-entrance",L)}),{updateVotedList:s,onVoteStart:l,onVoteStop:p,onVoteResult:u,onVoteDeleteAll:d,onVoteDelete:m,onVoteChangeOrder:f}=gq({state:n,onShow:()=>t("to-show"),onGetVoteList:()=>a.getVoteList()});function v(){i().emit(gc.OpenVoteRule)}function g(L){if(n.curVotedList.value.indexOf(L)!==-1||n.isVotedWithLimit.value)return!1;const Q=Number(r.maxVote)||0;return Q>0?n.votedCount.value<Q:!0}function b(){r.voteList&&r.voteList.length>0||(a.setupSocketListener(),a.getVoteList(),a.getVotedList())}return VZ(o.eventEmitter,{[(h=o.VoteEvent)==null?void 0:h.UpdateVotedList]:s,[(_=o.VoteEvent)==null?void 0:_.Start]:l,[(x=o.VoteEvent)==null?void 0:x.Stop]:p,[(y=o.VoteEvent)==null?void 0:y.VoteResult]:u,[(k=o.VoteEvent)==null?void 0:k.DeleteAll]:d,[(C=o.VoteEvent)==null?void 0:C.Delete]:m,[(S=o.VoteEvent)==null?void 0:S.UpdateVoteOrder]:f}),c.onMounted(()=>{r.voteTarget&&b()}),c.watch(()=>r.voteTarget,L=>{L&&b()},{immediate:!0}),c.watch(()=>r.voteList,L=>{L!=null&&(n.list.value=[...L])},{immediate:!0,deep:!0}),{list:n.list,curVotedList:n.curVotedList,handleToVote:a.toVote,handleRule:v,isItemClickable:g}},Cq=c.defineComponent({__name:"vote-list",props:_q(),emits:xq(),setup(e,{emit:r}){const t=e,{$t:i}=pi(),{list:o,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l}=yq({props:t,emit:r});return{__sfc:!0,$t:i,props:t,emit:r,list:o,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l,PwcEmpty:Qo,VoteItemSingle:uq,VoteItemDouble:vq}}});var kq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-vote"},[i.list.length?t("div",{staticClass:"plv-iar-vote__container"},[r.showHeader?t("div",{staticClass:"plv-iar-vote__container__header"},[t("span",[r._v(r._s(i.$t("vote.option")))]),i.props.showRule?t("span",{class:{"plv-iar-vote__container__header__rule--no-pointer":i.props.voteList&&i.props.voteList.length>0},on:{click:i.handleRule}},[r._v(r._s(i.$t("vote.rule")))]):r._e()]):r._e(),t("div",{staticClass:"plv-iar-vote__list",class:{"plv-iar-vote__list--single":r.layout==="single","plv-iar-vote__list--double":r.layout==="double"}},r._l(i.list,function(o){return t(r.layout==="single"?i.VoteItemSingle:i.VoteItemDouble,{key:o.id,tag:"component",attrs:{"vote-data":o,"voted-list":i.curVotedList,clickable:i.isItemClickable(o.id),"has-vote-list":!!(i.props.voteList&&i.props.voteList.length>0)},on:{"to-vote":i.handleToVote}})}),1)]):t("div",{staticClass:"plv-iar-vote__no-data"},[t(i.PwcEmpty)],1)])},Lq=[],Sq=Yi(Cq,kq,Lq,!1,null,null);const Pq=Sq.exports,Tq=c.defineComponent({__name:"vote-list-popup",props:HZ(),setup(e,{expose:r}){const t=e,{$t:i}=pi(),o=c.ref(),{instance:n,visible:a,popupRef:s,handleToRule:l}=ZZ({voteListRef:o});return r(n),{__sfc:!0,props:t,$t:i,voteListRef:o,instance:n,visible:a,popupRef:s,handleToRule:l,PwcPopup:ft,VoteListComponent:Pq}}});var Qq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t(i.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-list-popup",attrs:{title:i.$t("vote.listTitle"),"popup-config":r.popupConfig,closeable:!1,"body-height-percent":.65,background:"#F7F8Fa"},scopedSlots:r._u([{key:"header-right",fn:function(){return[r.showRule?t("span",{staticClass:"plv-iar-vote-list-popup__rule",on:{click:i.handleToRule}},[r._v(" "+r._s(i.$t("vote.rule"))+" ")]):r._e()]},proxy:!0}]),model:{value:i.visible,callback:function(o){i.visible=o},expression:"visible"}},[t("div",{staticClass:"plv-iar-vote-list-popup__content"},[t(i.VoteListComponent,{ref:"voteListRef",attrs:{"vote-target":r.voteTarget,layout:r.layout,"max-vote":r.maxVote,"show-header":!1,"show-rule":r.showRule,"result-show-type":r.resultShowType},on:{"to-rule":i.handleToRule}})],1)])},Eq=[],Mq=Yi(Tq,Qq,Eq,!1,null,null);return Mq.exports});console.log("%c@polyv/iar-vote-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.7.0-rc-20260716.1]","[buildTime: 2026-07-16 06:02:35]");
|
|
1289
|
+
}`}],staticClass:"pwc-menu-item__content",class:{"is-active":t.isActive&&!t.menuItemProps.iconMode,"is-icon-mode":t.menuItemProps.iconMode},on:{click:t.onClickItem}},[t.hasSlot("icon")||t.menuIcon?r("div",{staticClass:"pwc-menu-item__icon"},[t.hasSlot("icon")?[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("icon",{isActive:t.isActive})}})]:[r(t.menuIcon,{tag:"component"})]],2):e._e(),t.menuItemProps.iconMode?e._e():r("div",{directives:[{name:"show",rawName:"v-show",value:!t.menuProps.collapsed||t.inSubMenuPopper,expression:"!menuProps.collapsed || inSubMenuPopper"}],staticClass:"pwc-menu-item__title"},[t.hasSlot("title")?[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("title")}})]:[e._v(" "+e._s(t.menuItemProps.title)+" ")]],2)])},MW=[],IW=j(QW,EW,MW);const AW=IW.exports,zW=c.defineComponent({__name:"menu-item",props:cW(),setup(e){const r=e,{receiveRouterSlotData:t}=TW({props:r});return{__sfc:!0,props:r,receiveRouterSlotData:t,MenuItemContent:AW}}});var DW=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return t.props.to?r("router-link",{tag:"component",attrs:{to:e.to,custom:""},scopedSlots:e._u([{key:"default",fn:function(i){return[r("a",e._b({staticClass:"pwc-menu-item",attrs:{href:i.href}},"a",t.receiveRouterSlotData(i),!1),[r(t.MenuItemContent)],1)]}}],null,!1,4189994726)}):e.href?r("a",{staticClass:"pwc-menu-item",attrs:{href:e.href}},[r(t.MenuItemContent)],1):r("div",{staticClass:"pwc-menu-item"},[r(t.MenuItemContent)],1)},RW=[],OW=j(zW,DW,RW);const VW=OW.exports,BW={};var FW=function(){var e=this;return e._self._c,e._m(0)},jW=[function(){var e=this,r=e._self._c;return r("div",{staticClass:"pwc-menu-divider"},[r("div")])}],NW=j(BW,FW,jW);const UW=NW.exports;ee("PwcMenu",hW),ee("PwcSubMenu",PW),ee("PwcMenuItem",VW),ee("PwcMenuDivider",UW);const WW=12,HW=16,Xo={"top-right":[],"top-left":[],"bottom-right":[],"bottom-left":[]};function Tf(e,r){const t=Xo[e];let i=HW;for(let o=0;o<r;o++)i+=t[o].height+WW;return i}function Qf(e){const r=Xo[e];for(let t=0;t<r.length;t++)r[t].offsetRef.value=Tf(e,t)}const Qa={add(e,r,t){const i=Xo[e],o=i.length,n={id:r,height:0,offsetRef:t};i.push(n),t.value=Tf(e,o)},updateHeight(e,r,t){const i=Xo[e].find(o=>o.id===r);i&&i.height!==t&&(i.height=t,Qf(e))},remove(e,r){const t=Xo[e],i=t.findIndex(o=>o.id===r);i!==-1&&(t.splice(i,1),Qf(e))}};let ZW=0;const qW=e=>{const{position:r,duration:t}=e,{destroyCurrentInstance:i}=Po(),o=++ZW,n=c.ref(!1),a=c.ref(0);Qa.add(r,o,a);const{startTimeout:s,closeTimeout:l}=ri(()=>{u()},t);function p(){n.value=!0,t>0&&s()}function u(){n.value=!1,l()}function d(){Qa.remove(r,o),i()}function m(f){Qa.updateHeight(r,o,f)}return c.onBeforeUnmount(()=>{Qa.remove(r,o)}),{visible:n,offsetPx:a,open:p,close:u,onAfterLeave:d,updateHeight:m}};w.object().def({}),w.enum().def(Mt.Info);const YW=()=>X(R(R({},el()),m2()),{trigger:w.oneOf(Zn).def("click"),placement:w.oneOf(Mi).def("top"),feedbackType:w.enum().def(Mt.Warning),concise:w.bool.def(!1)}),GW=()=>X(R(R({},he()),Ku()),{show:q(),hide:q()}),KW=c.defineComponent({__name:"popconfirm",props:YW(),emits:GW(),setup(e,{emit:r}){const t=e,{modelValue:i,updateModelValue:o}=de(t),{buttonData:n,onClickConfirm:a,onClickCancel:s}=Ju({props:t,emit:r,afterConfirm:()=>{var m;(m=d.value)==null||m.hidePopper()},afterCancel:()=>{var m;(m=d.value)==null||m.hidePopper()}});function l(){i.value||o(!0),r("show")}function p(){i.value&&o(!1),r("hide")}const u=c.computed(()=>{if(!t.concise)return t.feedbackType}),d=c.ref();return{__sfc:!0,props:t,emit:r,modelValue:i,updateModelValue:o,buttonData:n,onClickConfirm:a,onClickCancel:s,onShow:l,onHide:p,popoverFeedbackType:u,popoverRef:d,PwcButton:Ne,PwcPopover:h2}}});var XW=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r(t.PwcPopover,e._b({ref:"popoverRef",staticClass:"pwc-popconfirm",attrs:{trigger:e.trigger,placement:e.placement,"feedback-type":t.popoverFeedbackType},on:{show:t.onShow,hide:t.onHide},scopedSlots:e._u([{key:"reference",fn:function(){return[e._t("default")]},proxy:!0},{key:"default",fn:function(){return[r("div",{staticClass:"pwc-popconfirm__content"},[e.concise?e._e():e._t("content",function(){return[e._v(e._s(e.content))]}),r("div",{staticClass:"pwc-popconfirm__content__btns",class:{"is-concise":e.concise}},[t.buttonData.showCancelButton?r(t.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:t.onClickCancel}},"pwc-button",t.buttonData.cancelButtonProps,!1)):e._e(),t.buttonData.showConfirmButton?r(t.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:t.onClickConfirm}},"pwc-button",t.buttonData.confirmButtonProps,!1)):e._e()],1)],2)]},proxy:!0}],null,!0)},"pwc-popover",t.props,!1))},JW=[],$W=j(KW,XW,JW);const eH=$W.exports;ee("PwcPopconfirm",eH);var nt=(e=>(e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.TopLeft="top-left",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomRight="bottom-right",e))(nt||{});function tH(e,r){const t=c.ref((()=>{try{const i=localStorage.getItem(e);if(i)return JSON.parse(i)}catch(i){}return r})());return c.watch(t,i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){}},{deep:!0}),t}const rH=()=>({width:w.number.def(0),height:w.number.def(0),minWidth:w.number.def(50),minHeight:w.number.def(50),maxWidth:w.number.def(1/0),maxHeight:w.number.def(1/0),disabled:w.bool.def(!1),handleSize:w.number.def(8),showHandles:w.oneOfType([Boolean,Array]).def(!0),storageKey:w.string.def("")}),iH=()=>({"resize-start":q(),resize:q(),"resize-end":q()}),oH=e=>{const{props:r,emit:t}=e,i=c.ref(),o=c.ref(!1),n=c.ref(null),a=c.ref({x:0,y:0}),s=c.ref({width:0,height:0}),l={width:r.width,height:r.height},p=r.storageKey?tH(r.storageKey,l):c.ref(l),u=(y,k,C)=>Math.max(k,Math.min(C,y)),d=y=>({width:y.width===void 0?void 0:u(y.width,r.minWidth,r.maxWidth),height:y.height===void 0?void 0:u(y.height,r.minHeight,r.maxHeight)}),m=y=>{var C,S;const k=d(y);return{width:(C=k.width)!=null?C:p.value.width,height:(S=k.height)!=null?S:p.value.height}},f=y=>{p.value=m(y)},v=()=>({width:p.value.width,height:p.value.height}),g=c.computed(()=>{const y={};return(r.width||p.value.width)&&(y.width=p.value.width+"px"),(r.height||p.value.height)&&(y.height=p.value.height+"px"),y}),b=y=>r.showHandles===!1||Array.isArray(r.showHandles)&&!r.showHandles.includes(y)?!1:[nt.Top,nt.Bottom].includes(y)?!!r.height:[nt.Left,nt.Right].includes(y)?!!r.width:!!r.width&&!!r.height,h=(y,k)=>{r.disabled||(y.preventDefault(),y.stopPropagation(),o.value=!0,n.value=k,a.value={x:y.clientX,y:y.clientY},s.value=R({},p.value),t("resize-start",{width:p.value.width,height:p.value.height,direction:k,event:y}))},_=y=>{if(!o.value||!n.value)return;const k=y.clientX-a.value.x,C=y.clientY-a.value.y,S={};switch(n.value){case nt.Right:S.width=s.value.width+k;break;case nt.Bottom:S.height=s.value.height+C;break;case nt.Left:S.width=s.value.width-k;break;case nt.Top:S.height=s.value.height-C;break;case nt.TopRight:S.width=s.value.width+k,S.height=s.value.height-C;break;case nt.TopLeft:S.width=s.value.width-k,S.height=s.value.height-C;break;case nt.BottomRight:S.width=s.value.width+k,S.height=s.value.height+C;break;case nt.BottomLeft:S.width=s.value.width-k,S.height=s.value.height+C;break}const{width:L,height:T}=m(S);p.value={width:L,height:T},t("resize",{width:L,height:T,direction:n.value,event:y})},x=y=>{if(!o.value||!n.value)return;o.value=!1;const k=n.value;n.value=null,t("resize-end",{width:p.value.width,height:p.value.height,direction:k,event:y})};return c.onMounted(()=>{document.addEventListener("mousemove",_),document.addEventListener("mouseup",x)}),c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",x)}),{boxStyle:g,containerRef:i,currentSize:p,isResizing:o,showHandleControl:b,handleMouseDown:h,setSize:f,getSize:v}};rH(),iH();const nH=()=>({title:w.looseString,titleTooltip:w.looseString}),aH=c.defineComponent({__name:"section",props:nH(),setup(e){const r=e,{hasSlot:t,slotRender:i}=xe(),o=c.computed(()=>t("title-tooltip")||r.titleTooltip);return{__sfc:!0,props:r,hasSlot:t,slotRender:i,hasTitleTooltip:o,PwcTooltip:Yn,renderSlot:ut}}});var sH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("section",{staticClass:"pwc-section"},[t.hasSlot("title")||e.title?r("div",{staticClass:"pwc-section__title"},[e._t("title",function(){return[e._v(e._s(e.title))]}),t.hasTitleTooltip?[r(t.PwcTooltip,{attrs:{content:e.titleTooltip},scopedSlots:e._u([t.hasSlot("title-tooltip")?{key:"content",fn:function(){return[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("title-tooltip")}})]},proxy:!0}:null],null,!0)})]:e._e()],2):e._e(),r("div",{staticClass:"pwc-section__content"},[e._t("default")],2)])},lH=[],cH=j(aH,sH,lH);const pH=cH.exports;ee("PwcSection",pH);const uH=()=>({[w.modelValueKey]:w.oneOfType([Number,Array]).def(0),min:w.number.def(0),max:w.number.def(100),disabled:w.bool.def(!1),showTooltip:w.bool.def(!1),range:w.bool.def(!1),step:w.number.def(1),showStops:w.bool.def(!1),showSliderButton:w.bool.def(!0),marks:w.object(),cssRotateAngle:w.oneOf([0,90,180,270]).def(0),progressBarVisible:w.bool.def(!0),hotAreaHeight:w.number.def(4),sliderBarHeight:w.looseNumber,sliderBarBg:w.string.def(""),buttonSize:w.number.def(14)}),dH=()=>X(R({},he()),{change:q()}),Ef=Symbol("slider-inject-key"),fH=e=>{const{props:r,emit:t}=e,{modelValue:i,updateModelValue:o}=de(r,{outSideUpdate:()=>{S()}}),n=c.ref(0),a=c.ref(0),s=c.ref(!1),l=c.ref(void 0),p=c.ref(),{width:u}=Oe(p),d=c.ref(),m=c.ref(),f=c.ref(),v=c.computed(()=>Math.min(n.value,a.value)),g=c.computed(()=>Math.max(n.value,a.value)),b=c.computed(()=>r.range?`${100*(g.value-v.value)/(r.max-r.min)}%`:`${100*(n.value-r.min)/(r.max-r.min)}%`),h=c.computed(()=>r.range?`${100*(v.value-r.min)/(r.max-r.min)}%`:"0%"),_=c.computed(()=>X(R({},x.value),{width:b.value,left:h.value})),x=c.computed(()=>{const D={};return r.sliderBarHeight&&(D.height=`${r.sliderBarHeight}px`,D.borderRadius=`${r.sliderBarHeight/2}px`),D}),y=c.computed(()=>{const D=R({},x.value);return r.sliderBarBg&&(D.background=r.sliderBarBg),D}),k=c.computed(()=>{const D=[],A=r.max-r.min,M=E=>{D.includes(E)||D.push(E)};if(r.step&&r.showStops){const E=A/r.step,I=r.step/A;for(let V=1;V<E;V++){const O=Math.round(V*I*100);M(O)}}return r.marks&&Object.keys(r.marks).forEach(E=>{const I=Number(E);if(I>=r.min&&I<=r.max){const V=(I-r.min)/A,O=Math.round(V*100);M(O)}}),D}),C=c.computed(()=>{const D=[],A=r.max-r.min;return r.marks&&Object.keys(r.marks).forEach(M=>{const E=Number(M),I=r.marks[E];let V="",O={};if(typeof I=="string"?V=I:(V=I.label,O=I.style||{}),E>=r.min&&E<=r.max){const W=(E-r.min)/A,B=Math.round(W*100);D.push({label:V,style:O,left:B,value:E})}}),D});function S(){r.range?Array.isArray(i.value)?(n.value=Math.max(r.min,i.value[0]),a.value=Math.min(r.max,i.value[1])):(n.value=r.min,a.value=r.max):typeof i.value!="number"||isNaN(i.value)?n.value=r.min:n.value=Math.min(r.max,Math.max(r.min,i.value))}function L(){let D=i.value;r.range?D=[Math.floor(v.value),Math.floor(g.value)]:D=Math.floor(n.value),D!==i.value&&(l.value=i.value,o(D))}function T(){c.nextTick(()=>{t("change",r.range?[v.value,g.value]:i.value)})}function Q(D){var E;if(!r.range){(E=m.value)==null||E.setPosition(D);return}let A;const M=r.min+D*(r.max-r.min)/100;Math.abs(v.value-M)<Math.abs(g.value-M)?A=n.value<a.value?m.value:f.value:A=n.value>a.value?m.value:f.value,A==null||A.setPosition(D)}function P(D){var A,M;if(!(r.disabled||s.value)){if(r.cssRotateAngle===90){const E=((A=d.value)==null?void 0:A.getBoundingClientRect().top)||0;Q((D.clientY-E)/u.value*100)}else{const E=((M=d.value)==null?void 0:M.getBoundingClientRect().left)||0;Q((D.clientX-E)/u.value*100)}T()}}function z(D){Q(D.left),T()}return c.onMounted(()=>{S()}),c.provide(Ef,{sliderProps:r,sliderWidth:u,dragging:s,emitChange:T}),{modelValue:i,firstValue:n,secondValue:a,dragging:s,sliderRef:p,sliderClickRef:d,button1Ref:m,button2Ref:f,barStyle:_,runwayStyle:y,stops:k,markList:C,onSliderClick:P,onClickMark:z,emitInnerInput:L}},Mf=()=>c.inject(Ef),mH=()=>({value:w.number}),hH=()=>({change:q()}),vH=e=>{const{props:r,emit:t}=e,{sliderProps:i,sliderWidth:o,emitChange:n}=Mf(),a=c.ref(!1),s=c.ref(!1),l=c.ref(!1),p=c.ref(0),u=c.ref(0),d=c.ref(null),m=c.computed(()=>`${(r.value-i.min)/(i.max-i.min)*100}%`),f=c.computed(()=>({left:m.value}));function v(L){let T,Q;switch("touches"in L?(T=L.touches[0].clientX,Q=L.touches[0].clientY):(T=L.clientX,Q=L.clientY),i.cssRotateAngle){case 90:return{clientX:Q,clientY:T};case 180:return{clientX:-T,clientY:-Q};case 270:return{clientX:-Q,clientY:T}}return{clientX:T,clientY:Q}}function g(){i.disabled||(a.value=!0)}function b(){i.disabled||(a.value=!1)}function h(L){if(i.disabled)return;s.value=!0,l.value=!0;const T=v(L);p.value=T.clientX,u.value=parseFloat(m.value),d.value=u.value}function _(L){if(!i.disabled&&s.value){l.value=!1;const T=(v(L).clientX-p.value)/o.value*100;d.value=u.value+T,S(d.value)}}function x(){i.disabled||ue||s.value&&setTimeout(()=>{s.value=!1,l.value||(S(d.value),n())},0)}function y(L){i.disabled||ue||(h(L),window.addEventListener("mousemove",_),window.addEventListener("touchmove",_),window.addEventListener("mouseup",x),window.addEventListener("touchend",x),window.addEventListener("contextmenu",x))}function k(){window.removeEventListener("mousemove",_),window.removeEventListener("touchmove",_),window.removeEventListener("mouseup",x),window.removeEventListener("touchend",x),window.removeEventListener("contextmenu",x)}c.onBeforeUnmount(()=>{k()});function C(L){let T=L;return i.step&&(T=Math.round(L/i.step)*i.step),T<i.min&&(T=i.min),T>i.max&&(T=i.max),T}function S(L){if(L===null||isNaN(L))return;L<0?L=0:L>100&&(L=100);const T=(i.max-i.min)*(L/100),Q=i.min+T;t("change",C(Q))}return{hovering:a,dragging:s,btnStyle:f,handleMouseEnter:g,handleMouseLeave:b,onButtonDown:y,setPosition:S}},gH={name:"PlvSliderButton"},wH=c.defineComponent(X(R({},gH),{props:mH(),emits:hH(),setup(e,{expose:r,emit:t}){const i=e,o=Mf(),{sliderProps:n}=o,{hovering:a,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=vH({props:i,emit:t}),f=c.computed(()=>s.value||o.dragging.value||!1);return r({setPosition:m}),{__sfc:!0,props:i,emit:t,sliderInject:o,sliderProps:n,hovering:a,buttonDragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m,dragging:f}}}));var bH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-slider__button",style:t.btnStyle,on:{mouseenter:t.handleMouseEnter,mouseleave:t.handleMouseLeave,mousedown:t.onButtonDown,touchstart:t.onButtonDown}},[r("div",{class:["pwc-slider__button__inner",t.hovering||t.dragging?"pwc-slider__button__inner--hover":"",t.sliderProps.disabled?"pwc-slider__button__inner--disabled":""],style:{width:`${t.sliderProps.buttonSize}px`,height:`${t.sliderProps.buttonSize}px`}})])},_H=[],xH=j(wH,bH,_H);const yH=xH.exports,CH=c.defineComponent({__name:"slider",props:uH(),emits:dH(),setup(e,{emit:r}){const t=e,{firstValue:i,secondValue:o,sliderRef:n,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:v,emitInnerInput:g}=fH({props:t,emit:r});function b(_){i.value=_,g()}function h(_){o.value=_,g()}return{__sfc:!0,props:t,emit:r,firstValue:i,secondValue:o,sliderRef:n,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:v,emitInnerInput:g,onFirstValueChange:b,onSecondValueChange:h,SliderButton:yH}}});var kH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-slider"},[r("div",{ref:"sliderRef",class:["pwc-slider__runway",t.props.disabled?"pwc-slider__runway--disabled":""],style:t.runwayStyle},[t.props.progressBarVisible?r("div",{staticClass:"pwc-slider__runway__bar",style:t.barStyle}):e._e(),r("div",{ref:"sliderClickRef",staticClass:"pwc-slider__runway__click",style:{height:`${t.props.hotAreaHeight}px`},on:{click:t.onSliderClick}}),e._l(t.stops,function(i){return r("div",{key:`dot-${i}`,staticClass:"pwc-slider__runway__dot",style:{left:`${i}%`}})}),t.props.showSliderButton?r(t.SliderButton,{ref:"button1Ref",attrs:{value:t.firstValue},on:{change:t.onFirstValueChange}}):e._e(),t.props.range&&t.props.showSliderButton?r(t.SliderButton,{ref:"button2Ref",attrs:{value:t.secondValue},on:{change:t.onSecondValueChange}}):e._e()],2),t.markList.length?r("div",{staticClass:"pwc-slider__marks"},e._l(t.markList,function(i,o){return r("div",{key:`mark-${o}`,staticClass:"pwc-slider__marks__item",style:R({left:`${i.left}%`},i.style),on:{click:function(n){return t.onClickMark(i)}}},[e._v(" "+e._s(i.label)+" ")])}),0):e._e()])},LH=[],SH=j(CH,kH,LH);const PH=SH.exports;ee("PwcSlider",PH);const TH=["horizontal","vertical"],QH=["mini","small","medium","large"],EH={mini:4,small:8,medium:16,large:24},MH=()=>({direction:w.oneOf(TH).def("horizontal"),size:w.oneOfType([w.oneOf(QH),Number]).def("small"),wrap:w.bool.def(!1)}),IH=c.defineComponent({__name:"space",props:MH(),setup(e){const r=e,t=c.computed(()=>[`is-${r.direction}`,{"is-wrap":r.wrap}]),i=c.computed(()=>({gap:`${typeof r.size=="number"?r.size:EH[r.size]}px`}));return{__sfc:!0,props:r,spaceClass:t,spaceStyle:i}}});var AH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-space",class:t.spaceClass,style:t.spaceStyle},[e._t("default")],2)},zH=[],DH=j(IH,AH,zH);const RH=DH.exports;ee("PwcSpace",RH);const OH=["horizontal","vertical"],VH=()=>({direction:w.oneOf(OH).def("horizontal"),lazy:w.bool.def(!1)}),BH=()=>({min:w.looseNumber,max:w.looseNumber,initialSize:w.looseNumber}),If=Symbol("SPLITTER_INJECT_KEY"),FH=c.defineComponent({__name:"splitter",props:VH(),setup(e){const r=e,t=c.ref(),i=c.ref([]),o=c.ref([]),{width:n,height:a}=Oe(t),s=c.computed(()=>r.direction==="horizontal"),l=()=>{if(!t.value||i.value.length===0)return;const C=s.value?t.value.clientWidth:t.value.clientHeight;let S=0;const L=i.value.map(P=>P.props.initialSize!==void 0?(S+=P.props.initialSize,!0):!1),T=L.filter(P=>!P).length,Q=T>0?(C-S)/T:0;o.value=i.value.map((P,z)=>L[z]?P.props.initialSize:Q)};c.watch(()=>{const C=s.value?n.value:a.value;return`${r.direction}-${C}`},(C,S)=>{const L=Number(C.split("-").pop()),T=S?Number(S.split("-").pop()):0;if(L===0)return;if(o.value.length===0||o.value.every(z=>z===0)){l();return}if(f.value||T===0||T===L)return;const Q=o.value.reduce((z,D)=>z+D,0);if(Q===0)return;const P=o.value.map(z=>z/Q);o.value=P.map((z,D)=>{var I,V;const A=i.value[D],M=(I=A==null?void 0:A.props.min)!=null?I:0,E=(V=A==null?void 0:A.props.max)!=null?V:1/0;return Math.max(M,Math.min(E,z*L))})});const p=C=>{i.value.push(C),c.nextTick(l)},u=C=>{const S=i.value.findIndex(L=>L.id===C);S>=0&&(i.value.splice(S,1),o.value.splice(S,1))},d=C=>{const S=i.value.findIndex(T=>T.id===C),L=o.value[S];return L===void 0?{}:s.value?{width:`${L}px`,flexShrink:"0"}:{height:`${L}px`,flexShrink:"0"}},m=C=>{var S;return((S=i.value[i.value.length-1])==null?void 0:S.id)===C},f=c.ref(!1),v=c.ref(""),g=c.ref(0),b=c.ref([]),h=c.ref([]),_=c.computed(()=>{var L,T;if(!f.value||!r.lazy)return-1;const C=i.value.findIndex(Q=>Q.id===v.value);if(C<0)return-1;let S=0;for(let Q=0;Q<=C;Q++)S+=(T=(L=h.value[Q])!=null?L:o.value[Q])!=null?T:0;return S}),x=(C,S)=>{S.preventDefault(),f.value=!0,v.value=C,g.value=s.value?S.clientX:S.clientY,b.value=[...o.value],h.value=[...o.value],document.addEventListener("mousemove",y),document.addEventListener("mouseup",k)},y=C=>{var V,O,W,B;if(!f.value)return;const S=(s.value?C.clientX:C.clientY)-g.value,L=i.value.findIndex(F=>F.id===v.value);if(L<0||L>=i.value.length-1)return;const T=i.value[L],Q=i.value[L+1],P=b.value[L]+b.value[L+1],z=(V=T.props.min)!=null?V:0,D=(O=T.props.max)!=null?O:1/0,A=(W=Q.props.min)!=null?W:0,M=(B=Q.props.max)!=null?B:1/0;let E=Math.max(z,Math.min(D,b.value[L]+S)),I=P-E;if(I<A&&(I=A,E=P-I),I>M&&(I=M,E=P-I),E=Math.max(z,Math.min(D,E)),r.lazy){const F=[...b.value];F[L]=E,F[L+1]=I,h.value=F}else{const F=[...o.value];F[L]=E,F[L+1]=I,o.value=F}},k=()=>{r.lazy&&(o.value=[...h.value]),f.value=!1,v.value="",document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",k)};return c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",k)}),c.provide(If,{direction:c.computed(()=>r.direction),registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,onDividerMouseDown:x}),{__sfc:!0,props:r,containerRef:t,panels:i,sizes:o,containerWidth:n,containerHeight:a,isHorizontal:s,initSizes:l,registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,isDragging:f,draggingId:v,startPos:g,startSizes:b,pendingSizes:h,lazyPreviewPos:_,onDividerMouseDown:x,onMouseMove:y,onMouseUp:k}}});var jH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{ref:"containerRef",staticClass:"pwc-splitter",class:[`pwc-splitter--${t.props.direction}`,{"is-dragging":t.isDragging}]},[e._t("default"),t.isDragging&&t.props.lazy&&t.lazyPreviewPos>=0?r("div",{staticClass:"pwc-splitter__lazy-preview",class:[`pwc-splitter__lazy-preview--${t.props.direction}`],style:t.isHorizontal?{left:`${t.lazyPreviewPos}px`}:{top:`${t.lazyPreviewPos}px`}}):e._e()],2)},NH=[],UH=j(FH,jH,NH);const WH=UH.exports,HH=c.defineComponent({__name:"splitter-panel",props:BH(),setup(e){const r=e,t=`splitter-panel-${Math.random().toString(36).slice(2)}`,i=c.inject(If),o=c.computed(()=>{var l;return(l=i==null?void 0:i.direction.value)!=null?l:"horizontal"}),n=c.computed(()=>{var l;return(l=i==null?void 0:i.isLastPanel(t))!=null?l:!1}),a=c.computed(()=>{var l;return(l=i==null?void 0:i.getPanelStyle(t))!=null?l:{}}),s=l=>{i==null||i.onDividerMouseDown(t,l)};return c.onMounted(()=>{i==null||i.registerPanel({id:t,props:r})}),c.onBeforeUnmount(()=>{i==null||i.unregisterPanel(t)}),{__sfc:!0,props:r,panelId:t,splitter:i,direction:o,isLast:n,panelStyle:a,handleDividerMouseDown:s}}});var ZH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-splitter-panel",style:t.panelStyle},[r("div",{staticClass:"pwc-splitter-panel__content"},[e._t("default")],2),t.isLast?e._e():r("div",{staticClass:"pwc-splitter__divider",class:[`pwc-splitter__divider--${t.direction}`],on:{mousedown:t.handleDividerMouseDown}},[r("span",{staticClass:"pwc-splitter__divider-bar"})])])},qH=[],YH=j(HH,ZH,qH);const GH=YH.exports;ee("PwcSplitter",WH),ee("PwcSplitterPanel",GH);const KH=()=>({max:w.number.def(3)}),XH=()=>({label:w.looseString,disabled:w.bool.def(!1)}),JH=()=>({click:q()}),Af=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),$H=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(Af,{}),{__sfc:!0,PwcButton:Ne,PwcIconMore:fu,PwcDropdown:jD,PwcDropdownMenu:ND}}});var eZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r(t.PwcDropdown,{staticClass:"pwc-table-operation-dropdown",scopedSlots:e._u([{key:"dropdown",fn:function(){return[r(t.PwcDropdownMenu,[e._t("default")],2)]},proxy:!0}],null,!0)},[r(t.PwcButton,{attrs:{link:""}},[r("div",{staticClass:"pwc-table-operation-dropdown__icon"},[r(t.PwcIconMore)],1)])],1)},tZ=[],rZ=j($H,eZ,tZ);const iZ=rZ.exports;function oZ(e){const r=e;if(typeof r.text=="string")return r.text;if(typeof r.children=="string")return r.children}function nZ(e){const r=oZ(e);return typeof r=="string"&&r.trim()===""}function aZ(e){return!Ae.isCommentVNode(e)&&!nZ(e)}const sZ=c.defineComponent({props:KH(),setup(e){const r=c.useSlots(),t=c.inject(Vl,void 0),i=ar(8),o=c.ref();function n(){if(t)return t.allRenderColumnList.value.find(a=>a.columnProps.type==="operation")}return Oe(o,({width:a})=>{const s=n();s&&s.setOperationWidthRecord(i,a)}),c.onBeforeUnmount(()=>{const a=n();a&&a.removeOperationWidthRecord(i)}),()=>{var m;let a=(m=r.default)==null?void 0:m.call(r);if(!a)return c.h("span",{},"-");a=a.filter(aZ);let s=0;const l=[],p=[],u=a.length;u===0&&l.push(c.h("span",{},"-")),a.forEach(f=>{u<=e.max||s<e.max-1?(l.push(f),s++):p.push(f)}),p.length>0&&l.push(c.h(iZ,{},_o()?{default:()=>p}:p));const d=["pwc-table-operation"];return u===0&&d.push("is-empty"),c.h("div",{class:d},[c.h("div",{class:"pwc-table-operation__content",ref:o},l)])}}}),lZ=c.defineComponent({__name:"table-operation-item",props:XH(),emits:JH(),setup(e,{emit:r}){const t=e,i=c.useAttrs(),o=c.inject(Af,void 0);function n(s){t.disabled||r("click",s)}const a=c.computed(()=>"href"in i?"a":"div");return{__sfc:!0,props:t,emit:r,attrs:i,dropdownInject:o,onClickItem:n,dropdownItemTag:a,PwcButton:Ne,PwcDropdownItem:UD}}});var cZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return t.dropdownInject?r(t.PwcDropdownItem,{staticClass:"pwc-table-operation-item",attrs:{disabled:e.disabled,tag:t.dropdownItemTag},nativeOn:{click:function(i){return t.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2):r(t.PwcButton,{staticClass:"pwc-table-operation-item",attrs:{link:"",disabled:e.disabled},nativeOn:{click:function(i){return t.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2)},pZ=[],uZ=j(lZ,cZ,pZ);const dZ=uZ.exports;ee("PwcTableOperation",sZ),ee("PwcTableOperationItem",dZ);const fZ=["line","rounded","text"],mZ=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(fZ).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),hZ=()=>X(R({},he()),{change:q()}),vZ=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),vc=Symbol("tabs-inject-key"),gZ=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:r,tabsProps:t,setCurrentTab:i}=c.inject(vc),{$t:o}=ne(),n=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=mt();function p(){return K(this,null,function*(){if(yield c.nextTick(),!n.value||ue)return;const d=n.value.querySelector(".pwc-tab-nav__item");if(!d)return;const m=d.clientHeight;n.value.clientHeight>=m*1.5||n.value.scrollWidth>n.value.clientWidth?a.value=!0:a.value=!1})}c.watch(()=>r.value.length,()=>{p()},{immediate:!0});function u(d){d.paneProps.disabled||i(d.getPaneName())}return{__sfc:!0,tabPanes:r,tabsProps:t,setCurrentTab:i,$t:o,listRef:n,isMoreItem:a,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:dr,PwcIconUp:Ns,renderSlot:ut}}});var wZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-tab-nav",class:[`is-type-${t.tabsProps.type}`]},[r("div",{ref:"listRef",staticClass:"pwc-tab-nav__list",class:{"is-hide":t.tabsProps.expand&&!t.isExpanded}},e._l(t.tabPanes,function(i){return r("div",{key:i.paneId,staticClass:"pwc-tab-nav__item",class:{"is-active":i.getIsActive(),"is-disabled":i.paneProps.disabled},on:{click:function(o){return t.onClickItem(i)}}},[i.hasSlot("title")?r(t.renderSlot,{staticClass:"pwc-tab-nav__item__title",attrs:{"slot-func":i.getTitleRenderSlot}}):r("span",[e._v(e._s(i.paneProps.title))]),i.hasSlot("extra")?r(t.renderSlot,{staticClass:"pwc-tab-nav__item__extra",attrs:{"slot-func":i.getExtraRenderSlot}}):e._e(),i.paneProps.extra?r("span",{staticClass:"pwc-tab-nav__item__extra"},[e._v(" "+e._s(i.paneProps.extra)+" ")]):e._e()],1)}),0),r("div",{staticClass:"pwc-tab-nav__right"},[t.tabsProps.expand&&t.isMoreItem?r("div",{staticClass:"pwc-tab-nav__expand",on:{click:t.toggle}},[r("span",[e._v(e._s(t.isExpanded?t.$t("tabs.collapse"):t.$t("tabs.more")))]),t.isExpanded?r(t.PwcIconUp):r(t.PwcIconDown)],1):e._e()])])},bZ=[],_Z=j(gZ,wZ,bZ);const xZ=_Z.exports,yZ=c.defineComponent({__name:"tabs",props:mZ(),emits:hZ(),setup(e,{emit:r}){const t=e,i=c.ref(),o=c.ref(),{modelValue:n,updateModelValue:a}=de(t,{outSideUpdate:v=>{i.value=v}}),s=c.ref([]);function l(v){if(!s.value.includes(v)){if(typeof i.value>"u")if(typeof n.value>"u"){const g=v.getPaneName();u(g,!1)}else u(n.value,!1);s.value.push(v)}}function p(v){s.value=s.value.filter(g=>g!==v)}function u(v,g=!0){i.value!==v&&(i.value=v,a(v),g&&r("change",v))}const d=c.ref(0);function m(){return K(this,null,function*(){var b;yield c.nextTick();const v=((b=o.value)==null?void 0:b.querySelectorAll("[data-pane-name]"))||[];let g=0;for(let h=0;h<v.length;h++)if(v[h].getAttribute("data-is-active")==="true"){g=h*100;break}d.value=g})}c.watch(()=>i.value,()=>{m()});const f={tabsProps:t,currentTab:i,tabPanes:s,setCurrentTab:u,addTabPane:l,removeTabPane:p};return c.provide(vc,f),{__sfc:!0,props:t,emits:r,currentTab:i,tabsRef:o,modelValue:n,updateModelValue:a,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:xZ}}});var CZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{ref:"tabsRef",staticClass:"pwc-tabs"},[r(t.TabNav),r("div",{staticClass:"pwc-tabs__content"},[r("div",{staticClass:"pwc-tabs__list",style:{marginLeft:`-${t.offsetPercent}%`}},[e._t("default")],2)])],1)},kZ=[],LZ=j(yZ,CZ,kZ);const SZ=LZ.exports,PZ=c.defineComponent({__name:"tab-pane",props:vZ(),setup(e){const r=e,t=ar(8),i=c.inject(vc),{hasSlot:o,slotRender:n}=xe(),a=c.computed(()=>r.name||t),s=c.computed(()=>i.currentTab.value===a.value);function l(){return n("title",{isActive:s.value})}const p=c.computed(()=>{var f;return(f=r.lazyLoad)!=null?f:i.tabsProps.lazyLoad}),u=c.ref(!1);c.watch(s,()=>{s.value&&(u.value=!0)});const d=c.computed(()=>p.value?u.value:!0),m={paneId:t,paneProps:r,getPaneName:()=>a.value,getIsActive:()=>s.value,hasSlot:o,getTitleRenderSlot:l,getExtraRenderSlot:()=>n("extra")};return c.onBeforeMount(()=>{i.addTabPane(m)}),{__sfc:!0,props:r,paneId:t,tabsInject:i,hasSlot:o,slotRender:n,tabPaneName:a,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var TZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-tab-pane",class:{"is-active":t.isActive},attrs:{"data-pane-name":t.tabPaneName,"data-is-active":t.isActive}},[t.canRender?r("div",{staticClass:"pwc-tab-pane__content"},[e._t("default")],2):e._e()])},QZ=[],EZ=j(PZ,TZ,QZ);const MZ=EZ.exports;ee("PwcTabs",SZ),ee("PwcTabPane",MZ);var zf={},IZ,AZ;function zZ(e,r,t,n){var o=0,n=n===void 0?{}:n,a=n.loop===void 0?null:n.loop,s=n.palette===void 0?null:n.palette;if(r<=0||t<=0||r>65535||t>65535)throw new Error("Width/Height invalid.");function l(b){var h=b.length;if(h<2||h>256||h&h-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return h}e[o++]=71,e[o++]=73,e[o++]=70,e[o++]=56,e[o++]=57,e[o++]=97;var p=0,u=0;if(s!==null){for(var d=l(s);d>>=1;)++p;if(d=1<<p,--p,n.background!==void 0){if(u=n.background,u>=d)throw new Error("Background index out of range.");if(u===0)throw new Error("Background index explicitly passed as 0.")}}if(e[o++]=r&255,e[o++]=r>>8&255,e[o++]=t&255,e[o++]=t>>8&255,e[o++]=(s!==null?128:0)|p,e[o++]=u,e[o++]=0,s!==null)for(var m=0,f=s.length;m<f;++m){var v=s[m];e[o++]=v>>16&255,e[o++]=v>>8&255,e[o++]=v&255}if(a!==null){if(a<0||a>65535)throw new Error("Loop count invalid.");e[o++]=33,e[o++]=255,e[o++]=11,e[o++]=78,e[o++]=69,e[o++]=84,e[o++]=83,e[o++]=67,e[o++]=65,e[o++]=80,e[o++]=69,e[o++]=50,e[o++]=46,e[o++]=48,e[o++]=3,e[o++]=1,e[o++]=a&255,e[o++]=a>>8&255,e[o++]=0}var g=!1;this.addFrame=function(b,h,_,x,y,k){if(g===!0&&(--o,g=!1),k=k===void 0?{}:k,b<0||h<0||b>65535||h>65535)throw new Error("x/y invalid.");if(_<=0||x<=0||_>65535||x>65535)throw new Error("Width/Height invalid.");if(y.length<_*x)throw new Error("Not enough pixels for the frame size.");var C=!0,S=k.palette;if(S==null&&(C=!1,S=s),S==null)throw new Error("Must supply either a local or global palette.");for(var L=l(S),T=0;L>>=1;)++T;L=1<<T;var Q=k.delay===void 0?0:k.delay,P=k.disposal===void 0?0:k.disposal;if(P<0||P>3)throw new Error("Disposal out of range.");var z=!1,D=0;if(k.transparent!==void 0&&k.transparent!==null&&(z=!0,D=k.transparent,D<0||D>=L))throw new Error("Transparent color index.");if((P!==0||z||Q!==0)&&(e[o++]=33,e[o++]=249,e[o++]=4,e[o++]=P<<2|(z===!0?1:0),e[o++]=Q&255,e[o++]=Q>>8&255,e[o++]=D,e[o++]=0),e[o++]=44,e[o++]=b&255,e[o++]=b>>8&255,e[o++]=h&255,e[o++]=h>>8&255,e[o++]=_&255,e[o++]=_>>8&255,e[o++]=x&255,e[o++]=x>>8&255,e[o++]=C===!0?128|T-1:0,C===!0)for(var A=0,M=S.length;A<M;++A){var E=S[A];e[o++]=E>>16&255,e[o++]=E>>8&255,e[o++]=E&255}return o=DZ(e,o,T<2?2:T,y),o},this.end=function(){return g===!1&&(e[o++]=59,g=!0),o},this.getOutputBuffer=function(){return e},this.setOutputBuffer=function(b){e=b},this.getOutputBufferPosition=function(){return o},this.setOutputBufferPosition=function(b){o=b}}function DZ(e,r,t,i){e[r++]=t;var o=r++,n=1<<t,a=n-1,s=n+1,l=s+1,p=t+1,u=0,d=0;function m(k){for(;u>=k;)e[r++]=d&255,d>>=8,u-=8,r===o+256&&(e[o]=255,o=r++)}function f(k){d|=k<<u,u+=p,m(8)}var v=i[0]&a,g={};f(n);for(var b=1,h=i.length;b<h;++b){var _=i[b]&a,x=v<<8|_,y=g[x];if(y===void 0){for(d|=v<<u,u+=p;u>=8;)e[r++]=d&255,d>>=8,u-=8,r===o+256&&(e[o]=255,o=r++);l===4096?(f(n),l=s+1,p=t+1,g={}):(l>=1<<p&&++p,g[x]=l++),v=_}else v=y}return f(v),f(s),m(1),o+1===r?e[o]=0:(e[o]=r-o-1,e[r++]=0),r}function RZ(e){var r=0;if(e[r++]!==71||e[r++]!==73||e[r++]!==70||e[r++]!==56||(e[r++]+1&253)!==56||e[r++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=e[r++]|e[r++]<<8,i=e[r++]|e[r++]<<8,o=e[r++],n=o>>7,a=o&7,s=1<<a+1;e[r++],e[r++];var l=null,p=null;n&&(l=r,p=s,r+=s*3);var u=!0,d=[],m=0,f=null,v=0,g=null;for(this.width=t,this.height=i;u&&r<e.length;)switch(e[r++]){case 33:switch(e[r++]){case 255:if(e[r]!==11||e[r+1]==78&&e[r+2]==69&&e[r+3]==84&&e[r+4]==83&&e[r+5]==67&&e[r+6]==65&&e[r+7]==80&&e[r+8]==69&&e[r+9]==50&&e[r+10]==46&&e[r+11]==48&&e[r+12]==3&&e[r+13]==1&&e[r+16]==0)r+=14,g=e[r++]|e[r++]<<8,r++;else for(r+=12;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}break;case 249:if(e[r++]!==4||e[r+4]!==0)throw new Error("Invalid graphics extension block.");var h=e[r++];m=e[r++]|e[r++]<<8,f=e[r++],h&1||(f=null),v=h>>2&7,r++;break;case 254:for(;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}break;default:throw new Error("Unknown graphic control label: 0x"+e[r-1].toString(16))}break;case 44:var _=e[r++]|e[r++]<<8,x=e[r++]|e[r++]<<8,y=e[r++]|e[r++]<<8,k=e[r++]|e[r++]<<8,C=e[r++],S=C>>7,L=C>>6&1,T=C&7,Q=1<<T+1,P=l,z=p,D=!1;if(S){var D=!0;P=r,z=Q,r+=Q*3}var A=r;for(r++;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}d.push({x:_,y:x,width:y,height:k,has_local_palette:D,palette_offset:P,palette_size:z,data_offset:A,data_length:r-A,transparent_index:f,interlaced:!!L,delay:m,disposal:v});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[r-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return g},this.frameInfo=function(M){if(M<0||M>=d.length)throw new Error("Frame index out of range.");return d[M]},this.decodeAndBlitFrameBGRA=function(M,E){var I=this.frameInfo(M),V=I.width*I.height,O=new Uint8Array(V);Df(e,I.data_offset,O,V);var W=I.palette_offset,B=I.transparent_index;B===null&&(B=256);var F=I.width,H=t-F,G=F,N=(I.y*t+I.x)*4,Y=((I.y+I.height)*t+I.x)*4,J=N,ie=H*4;I.interlaced===!0&&(ie+=t*4*7);for(var U=8,te=0,fe=O.length;te<fe;++te){var we=O[te];if(G===0&&(J+=ie,G=F,J>=Y&&(ie=H*4+t*4*(U-1),J=N+(F+H)*(U<<1),U>>=1)),we===B)J+=4;else{var be=e[W+we*3],Ze=e[W+we*3+1],xt=e[W+we*3+2];E[J++]=xt,E[J++]=Ze,E[J++]=be,E[J++]=255}--G}},this.decodeAndBlitFrameRGBA=function(M,E){var I=this.frameInfo(M),V=I.width*I.height,O=new Uint8Array(V);Df(e,I.data_offset,O,V);var W=I.palette_offset,B=I.transparent_index;B===null&&(B=256);var F=I.width,H=t-F,G=F,N=(I.y*t+I.x)*4,Y=((I.y+I.height)*t+I.x)*4,J=N,ie=H*4;I.interlaced===!0&&(ie+=t*4*7);for(var U=8,te=0,fe=O.length;te<fe;++te){var we=O[te];if(G===0&&(J+=ie,G=F,J>=Y&&(ie=H*4+t*4*(U-1),J=N+(F+H)*(U<<1),U>>=1)),we===B)J+=4;else{var be=e[W+we*3],Ze=e[W+we*3+1],xt=e[W+we*3+2];E[J++]=be,E[J++]=Ze,E[J++]=xt,E[J++]=255}--G}}}function Df(e,r,t,i){for(var o=e[r++],n=1<<o,a=n+1,s=a+1,l=o+1,p=(1<<l)-1,u=0,d=0,m=0,f=e[r++],v=new Int32Array(4096),g=null;;){for(;u<16&&f!==0;)d|=e[r++]<<u,u+=8,f===1?f=e[r++]:--f;if(u<l)break;var b=d&p;if(d>>=l,u-=l,b===n){s=a+1,l=o+1,p=(1<<l)-1,g=null;continue}else if(b===a)break;for(var h=b<s?b:g,_=0,x=h;x>n;)x=v[x]>>8,++_;var y=x,k=m+_+(h!==b?1:0);if(k>i){console.log("Warning, gif stream longer than expected.");return}t[m++]=y,m+=_;var C=m;for(h!==b&&(t[m++]=y),x=h;_--;)x=v[x],t[--C]=x&255,x>>=8;g!==null&&s<4096&&(v[s++]=g<<8|y,s>=p+1&&l<12&&(++l,p=p<<1|1)),g=b}return m!==i&&console.log("Warning, gif stream shorter than expected."),t}try{AZ=zf.GifWriter=zZ,IZ=zf.GifReader=RZ}catch(e){}const OZ=e=>{const{configProviderData:r}=hr();function t(i){var o;if(r!=null&&r.trackEventCallback){r.trackEventCallback(i);return}(o=e.trackEvent)==null||o.call(e,i)}return{trackEvent:t}};function VZ(e,r,t={}){function i(){if(e)for(const n in r)r[n]&&e.on(n,r[n])}function o(){if(e)for(const n in r)r[n]&&e.off(n,r[n])}return Fn({listenEvent:i,removeEvent:o},t),{listenEvent:i,removeEvent:o}}const BZ={vote:{option:"Voting Options",rule:"Rules",ruleTitle:"Rule Description",success:"Vote successful",voted:"You have already voted",voteFailed:"Vote failed",voteLimit:"Vote limit reached",count:"votes",entrance:"Vote",listTitle:"Vote Activity",noRule:"No rules",status:{voting:"Voting",ended:"Ended"},button:{vote:"Vote",voted:"Voted",notVoted:"Not Voted"}}},FZ={vote:{option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}}},jZ={vote:{option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}}},NZ={vote:{option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}}},UZ={vote:{option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},WZ={vote:{option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},{useI18n:pi}=Gu({zh_CN:UZ,zh_TW:WZ,en:BZ,ja:FZ,ko:jZ,ru:NZ}),gc={OpenVote:"OpenVote",OpenVoteRule:"OpenVoteRule"},HZ=()=>({voteTarget:w.object(),popupConfig:w.object(),layout:w.oneOf(["single","double"]).def("single"),maxVote:w.number.def(0),showRule:w.bool.def(!0),resultShowType:w.number.def(0)}),ZZ=e=>{const{voteListRef:r}=e,t=c.ref(!1),i=c.ref(),{getEmitter:o}=ei();function n(){t.value=!0,c.nextTick(()=>{i.value&&i.value.resetScroll()})}c.watch(t,p=>{p&&c.nextTick(()=>{var u;(u=r==null?void 0:r.value)!=null&&u.recalculateGridRowEnds&&r.value.recalculateGridRowEnds()})});function a(){t.value=!1}function s(){o().emit(gc.OpenVoteRule)}return ti(gc.OpenVote,n),{instance:{open:n,close:a},visible:t,popupRef:i,handleToRule:s}},qZ=()=>({status:w.oneOf(["Y","N"]).def("Y"),isVoted:w.bool.isRequired,disabled:w.bool.def(!1),hasVoteList:w.bool.def(!1)}),YZ=()=>({click:q()}),GZ=e=>{const{props:r,emit:t}=e,{$t:i}=pi(),o=c.computed(()=>r.isVoted?"voted":r.status==="N"?"not-voted":r.disabled?"disabled":"vote"),n={vote:i("vote.button.vote"),voted:i("vote.button.voted"),"not-voted":i("vote.button.notVoted"),disabled:i("vote.button.vote")},a=c.computed(()=>n[o.value]);function s(){o.value==="vote"&&t("click")}return{buttonType:o,buttonText:a,handleClick:s}},KZ=c.defineComponent({__name:"vote-button",props:qZ(),emits:YZ(),setup(e,{emit:r}){const t=e,{buttonType:i,buttonText:o,handleClick:n}=GZ({props:t,emit:r});return{__sfc:!0,props:t,emit:r,buttonType:i,buttonText:o,handleClick:n,PwcButton:Ne}}});function Yi(e,r,t,i,o,n,a,s){var l=typeof e=="function"?e.options:e;return r&&(l.render=r,l.staticRenderFns=t,l._compiled=!0),n&&(l._scopeId="data-v-"+n),{exports:e,options:l}}var XZ=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-vote-button",class:{"plv-iar-vote-button--no-pointer":i.props.hasVoteList}},[i.buttonType==="vote"?t(i.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:i.props.disabled},on:{click:i.handleClick}},[r._v(" "+r._s(i.buttonText)+" ")]):i.buttonType==="not-voted"||i.buttonType==="disabled"?t(i.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:""}},[r._v(" "+r._s(i.buttonText)+" ")]):t(i.PwcButton,{staticClass:"plv-iar-vote-button__text",attrs:{size:"mini",disabled:i.props.status==="N"||i.props.disabled}},[r._v(" "+r._s(i.buttonText)+" ")])],1)},JZ=[],$Z=Yi(KZ,XZ,JZ,!1,null,"80252ec7");const Rf=$Z.exports,eq=()=>({status:w.oneOf(["Y","N"]).def("Y")}),tq=()=>({}),rq=e=>{const{props:r}=e,{$t:t}=pi();return{statusText:c.computed(()=>r.status==="Y"?t("vote.status.voting"):t("vote.status.ended"))}},iq=c.defineComponent({__name:"vote-status",props:eq(),emits:tq(),setup(e,{emit:r}){const t=e,{statusText:i}=rq({props:t});return{__sfc:!0,props:t,emit:r,statusText:i}}});var oq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-vote-status",class:{"plv-iar-vote-status--voting":r.status==="Y","plv-iar-vote-status--ended":r.status==="N"}},[r._v(" "+r._s(i.statusText)+" ")])},nq=[],aq=Yi(iq,oq,nq,!1,null,"b5328d28");const Of=aq.exports,Vf=()=>({voteData:w.object().isRequired,votedList:w.array().def([]),layout:w.oneOf(["single","double"]).def("single"),clickable:w.bool.def(!0),hasVoteList:w.bool.def(!1)}),Bf=()=>({"to-vote":q()}),Ff=e=>{const{props:r,emit:t,itemRef:i}=e,o=c.ref({gridRowEnd:"auto"}),n=c.computed(()=>r.votedList.includes(r.voteData.id)),a=c.computed(()=>!r.clickable);function s(){a.value||t("to-vote",r.voteData.id)}return{isVoted:n,isDisabled:a,gridRowEndStyle:o,handleVote:s}},sq=c.defineComponent({__name:"vote-item-single",props:Vf(),emits:Bf(),setup(e,{emit:r}){const t=e,{$t:i}=pi(),{isVoted:o,isDisabled:n,handleVote:a}=Ff({props:t,emit:r});return{__sfc:!0,$t:i,props:t,emit:r,isVoted:o,isDisabled:n,handleVote:a,VoteButton:Rf,VoteStatus:Of}}});var lq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-single",class:{"plv-iar-vote-list-item-image":!!r.voteData.voteCoverImage,"plv-iar-vote-list-item-no-image":!r.voteData.voteCoverImage}},[r.voteData.voteCoverImage?[t("div",{staticClass:"plv-iar-vote-list-item-bg"},[t("div",{staticClass:"plv-iar-vote-list-item-bg-image",style:{backgroundImage:`url(${r.voteData.voteCoverImage})`}}),t("div",{staticClass:"plv-iar-vote-list-item-bg-mask"})])]:r._e(),t("div",{staticClass:"plv-iar-vote-list-item-content"},[t("div",{staticClass:"plv-iar-vote-list-item-content-info"},[t("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top"},[r.voteData.status?t(i.VoteStatus,{staticClass:"plv-iar-vote-list-item-content-info-left-top-item",attrs:{status:r.voteData.status}}):r._e(),r.voteData.showVoteCount?t("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top-item plv-iar-vote-list-item-content-info-count"},[r._v(" "+r._s(r.voteData.voteCount||0)+" "+r._s(i.$t("vote.count"))+" ")]):r._e()],1),t("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[r._v(r._s(r.voteData.name))])]),t(i.VoteButton,{attrs:{status:r.voteData.status,"is-voted":i.isVoted,disabled:i.isDisabled,"has-vote-list":i.props.hasVoteList},on:{click:i.handleVote}})],1)],2)},cq=[],pq=Yi(sq,lq,cq,!1,null,"c2bb97a3");const uq=pq.exports,dq=c.defineComponent({__name:"vote-item-double",props:Vf(),emits:Bf(),setup(e,{expose:r,emit:t}){const i=e,{$t:o}=pi(),n=c.ref(),{isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p}=Ff({props:i,emit:t,itemRef:n});let u=null;const d=12;function m(g=d){if(!n.value)return;const b=n.value.offsetHeight;if(b>0){const h=Math.ceil(b/g);l.value={gridRowEnd:`span ${h}`}}}function f(){n.value&&(u&&(u.disconnect(),u=null),u=new bp(()=>{m(d)}),u.observe(n.value),m(d))}function v(){u&&(u.disconnect(),u=null)}return c.watch(n,g=>{v(),g&&f()},{immediate:!0}),c.onBeforeUnmount(()=>{v()}),r({calculateGridRowEnd:m,itemRef:n}),{__sfc:!0,$t:o,props:i,emit:t,itemRef:n,isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p,resizeObserver:u,GAP:d,calculateGridRowEnd:m,setupResizeObserver:f,cleanupResizeObserver:v,VoteButton:Rf,VoteStatus:Of}}});var fq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{ref:"itemRef",staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-double",style:i.gridRowEndStyle},[t("div",{staticClass:"plv-iar-vote-list-item-content-container"},[r.voteData.voteCoverImage?[t("div",{staticClass:"plv-iar-vote-list-item-image",style:{backgroundImage:`url(${r.voteData.voteCoverImage})`}},[t("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[r.voteData.status?t(i.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-image-status",attrs:{status:r.voteData.status}}):r._e(),r.voteData.showVoteCount?t("div",{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-content-info-count"},[r._v(" "+r._s(r.voteData.voteCount||0)+" "+r._s(i.$t("vote.count"))+" ")]):r._e()],1)])]:r._e(),t("div",{staticClass:"plv-iar-vote-list-item-content"},[t("div",{staticClass:"plv-iar-vote-list-item-content-info"},[r.voteData.voteCoverImage?r._e():t("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[r.voteData.status?t(i.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item",attrs:{status:r.voteData.status}}):r._e(),r.voteData.showVoteCount?t("div",{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-content-info-count"},[r._v(" "+r._s(r.voteData.voteCount||0)+" "+r._s(i.$t("vote.count"))+" ")]):r._e()],1),t("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[r._v(r._s(r.voteData.name))])]),t(i.VoteButton,{attrs:{status:r.voteData.status,"is-voted":i.isVoted,disabled:i.isDisabled,"has-vote-list":i.props.hasVoteList},on:{click:i.handleVote}})],1)],2)])},mq=[],hq=Yi(dq,fq,mq,!1,null,"7ae37e2b");const vq=hq.exports;function gq(e){const{state:r,onShow:t,onGetVoteList:i}=e,{list:o,curVotedList:n,cacheVotedList:a,voteCount:s,isForceHideResult:l,isForceShowResult:p,findVoteById:u}=r;function d(_){n.value=_.curVotedList}function m(_){const x=_.voteData.id,y=u(x)[0];y!==-1&&o.value.splice(y,1);const k=n.value.findIndex(T=>T===x);k!==-1&&n.value.splice(k,1);const C=a.value.findIndex(T=>T===x);C!==-1&&a.value.splice(C,1);const S=_.voteData.voteOrder||0;let L=o.value.length;for(let T=0;T<o.value.length;T++)if((o.value[T].voteOrder||0)>=S){L=T;break}p.value&&(_.voteData.showVoteCount=!0,_.voteData.voteCount=0),o.value.splice(L,0,_.voteData),t()}function f(_){const x=u(_.id)[1];x&&(x.status="N")}function v(_){s.value=_.voteCount,_.list.forEach(x=>{const y=u(x.id)[1];y&&(y.showVoteCount=!l.value,y.voteCount=x.times)})}function g(){o.value.splice(0,o.value.length)}function b(_){const x=u(_.id)[0];x!==-1&&o.value.splice(x,1)}function h(_){const x=Math.floor(Math.random()*3e3);setTimeout(()=>{i()},x)}return{updateVotedList:d,onVoteStart:m,onVoteStop:f,onVoteResult:v,onVoteDeleteAll:g,onVoteDelete:b,onVoteChangeOrder:h}}function wq(e){const{voteTarget:r,state:t,onShowEntrance:i}=e,{list:o,curVotedList:n,cacheVotedList:a,isVotedWithLimit:s,voteCount:l,isForceHideResult:p,findVoteById:u}=t,{toast:d}=br(),{$t:m}=pi(),{trackEvent:f}=OZ((r==null?void 0:r.interactionCore)||{});function v(){return K(this,null,function*(){r&&(n.value=r.getVotedList())})}function g(){return K(this,null,function*(){if(!r)return;const y=yield r.getVoteList();if(y&&y.code===200&&y.data){o.value=y.data.list,o.value.length>0&&i(!0);const k=r.getCachedVoteResult();k&&k.forEach(C=>{const S=u(C.id)[1];S&&(S.showVoteCount=!p.value,S.voteCount=C.times)})}})}const b=ws(g,1e3);function h(y){return K(this,null,function*(){if(r&&a.value.indexOf(y)===-1){a.value.push(y);const k=yield r.toVote(y);if(k.code===200)r.pushVotedList(y),d.success(m("vote.success"));else if(k.code===506)d.info(m("vote.voted")),r.pushVotedList(y);else{k.code===501?(s.value=!0,d.error(m("vote.voteLimit"))):d.error(k.message||m("vote.voteFailed"));const C=a.value.indexOf(y);C!==-1&&a.value.splice(C,1)}_()}})}function _(){r&&f({event_id:"click_vote_widget",event_type:"click",spec_attrs:{timestamp:Date.now()}})}function x(){r&&r.interactionCore.getSocket().then(y=>{y&&y.on("connect",()=>{b()})})}return{getVotedList:v,getVoteList:b,toVote:h,setupSocketListener:x}}function bq(e){const{resultShowType:r}=e,t=c.ref([]),i=c.ref([]),o=c.ref([]),n=c.ref(!1),a=c.ref(0),s=c.computed(()=>i.value.length),l=c.computed(()=>r===3&&a.value===0&&o.value.length===0),p=c.computed(()=>r===2||r===3&&(a.value>0||i.value.length>0));function u(d){const m=t.value.findIndex(f=>f.id===d);return[m,t.value[m]]}return{list:t,curVotedList:i,cacheVotedList:o,isVotedWithLimit:n,voteCount:a,isForceHideResult:l,isForceShowResult:p,votedCount:s,findVoteById:u}}const _q=()=>({voteTarget:w.object(),layout:w.oneOf(["single","double"]).def("single"),voteList:w.array(),maxVote:w.number.def(0),showHeader:w.bool.def(!0),showRule:w.bool.def(!0),resultShowType:w.number.def(0)}),xq=()=>({"to-show":()=>!0,"to-hide":()=>!0,"show-entrance":q()}),yq=e=>{var h,_,x,y,k,C,S;const{props:r,emit:t}=e,{getEmitter:i}=ei(),{voteTarget:o={}}=r,n=bq({resultShowType:r.resultShowType}),a=wq({voteTarget:o,state:n,onShowEntrance:L=>t("show-entrance",L)}),{updateVotedList:s,onVoteStart:l,onVoteStop:p,onVoteResult:u,onVoteDeleteAll:d,onVoteDelete:m,onVoteChangeOrder:f}=gq({state:n,onShow:()=>t("to-show"),onGetVoteList:()=>a.getVoteList()});function v(){i().emit(gc.OpenVoteRule)}function g(L){if(n.curVotedList.value.indexOf(L)!==-1||n.isVotedWithLimit.value)return!1;const Q=Number(r.maxVote)||0;return Q>0?n.votedCount.value<Q:!0}function b(){r.voteList&&r.voteList.length>0||(a.setupSocketListener(),a.getVoteList(),a.getVotedList())}return VZ(o.eventEmitter,{[(h=o.VoteEvent)==null?void 0:h.UpdateVotedList]:s,[(_=o.VoteEvent)==null?void 0:_.Start]:l,[(x=o.VoteEvent)==null?void 0:x.Stop]:p,[(y=o.VoteEvent)==null?void 0:y.VoteResult]:u,[(k=o.VoteEvent)==null?void 0:k.DeleteAll]:d,[(C=o.VoteEvent)==null?void 0:C.Delete]:m,[(S=o.VoteEvent)==null?void 0:S.UpdateVoteOrder]:f}),c.onMounted(()=>{r.voteTarget&&b()}),c.watch(()=>r.voteTarget,L=>{L&&b()},{immediate:!0}),c.watch(()=>r.voteList,L=>{L!=null&&(n.list.value=[...L])},{immediate:!0,deep:!0}),{list:n.list,curVotedList:n.curVotedList,handleToVote:a.toVote,handleRule:v,isItemClickable:g}},Cq=c.defineComponent({__name:"vote-list",props:_q(),emits:xq(),setup(e,{emit:r}){const t=e,{$t:i}=pi(),{list:o,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l}=yq({props:t,emit:r});return{__sfc:!0,$t:i,props:t,emit:r,list:o,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l,PwcEmpty:Qo,VoteItemSingle:uq,VoteItemDouble:vq}}});var kq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-vote"},[i.list.length?t("div",{staticClass:"plv-iar-vote__container"},[r.showHeader?t("div",{staticClass:"plv-iar-vote__container__header"},[t("span",[r._v(r._s(i.$t("vote.option")))]),i.props.showRule?t("span",{class:{"plv-iar-vote__container__header__rule--no-pointer":i.props.voteList&&i.props.voteList.length>0},on:{click:i.handleRule}},[r._v(r._s(i.$t("vote.rule")))]):r._e()]):r._e(),t("div",{staticClass:"plv-iar-vote__list",class:{"plv-iar-vote__list--single":r.layout==="single","plv-iar-vote__list--double":r.layout==="double"}},r._l(i.list,function(o){return t(r.layout==="single"?i.VoteItemSingle:i.VoteItemDouble,{key:o.id,tag:"component",attrs:{"vote-data":o,"voted-list":i.curVotedList,clickable:i.isItemClickable(o.id),"has-vote-list":!!(i.props.voteList&&i.props.voteList.length>0)},on:{"to-vote":i.handleToVote}})}),1)]):t("div",{staticClass:"plv-iar-vote__no-data"},[t(i.PwcEmpty)],1)])},Lq=[],Sq=Yi(Cq,kq,Lq,!1,null,null);const Pq=Sq.exports,Tq=c.defineComponent({__name:"vote-list-popup",props:HZ(),setup(e,{expose:r}){const t=e,{$t:i}=pi(),o=c.ref(),{instance:n,visible:a,popupRef:s,handleToRule:l}=ZZ({voteListRef:o});return r(n),{__sfc:!0,props:t,$t:i,voteListRef:o,instance:n,visible:a,popupRef:s,handleToRule:l,PwcPopup:ft,VoteListComponent:Pq}}});var Qq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t(i.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-list-popup",attrs:{title:i.$t("vote.listTitle"),"popup-config":r.popupConfig,closeable:!1,"body-height-percent":.65,background:"#F7F8Fa"},scopedSlots:r._u([{key:"header-right",fn:function(){return[r.showRule?t("span",{staticClass:"plv-iar-vote-list-popup__rule",on:{click:i.handleToRule}},[r._v(" "+r._s(i.$t("vote.rule"))+" ")]):r._e()]},proxy:!0}]),model:{value:i.visible,callback:function(o){i.visible=o},expression:"visible"}},[t("div",{staticClass:"plv-iar-vote-list-popup__content"},[t(i.VoteListComponent,{ref:"voteListRef",attrs:{"vote-target":r.voteTarget,layout:r.layout,"max-vote":r.maxVote,"show-header":!1,"show-rule":r.showRule,"result-show-type":r.resultShowType},on:{"to-rule":i.handleToRule}})],1)])},Eq=[],Mq=Yi(Tq,Qq,Eq,!1,null,null);return Mq.exports});console.log("%c@polyv/iar-vote-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.7.0]","[buildTime: 2026-07-17 02:01:05]");
|
package/vote-list.es.js
CHANGED
|
@@ -37059,8 +37059,8 @@ const dq = eq.exports;
|
|
|
37059
37059
|
console.log(
|
|
37060
37060
|
"%c@polyv/iar-vote-ui",
|
|
37061
37061
|
"background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
|
|
37062
|
-
"[version: 2.7.0
|
|
37063
|
-
"[buildTime: 2026-07-
|
|
37062
|
+
"[version: 2.7.0]",
|
|
37063
|
+
"[buildTime: 2026-07-17 02:01:10]"
|
|
37064
37064
|
);
|
|
37065
37065
|
export {
|
|
37066
37066
|
dq as default
|
package/vote-list.umd.js
CHANGED
|
@@ -1286,4 +1286,4 @@ ${$o(t)}`),i}})}function l3(e){const r=Object.keys(e),t=r.filter(o=>{var n;retur
|
|
|
1286
1286
|
effect: tooltipEffect,
|
|
1287
1287
|
popperOffset: tooltipOffset,
|
|
1288
1288
|
tooltipClass: 'pwc-menu-item__tooltip',
|
|
1289
|
-
}`}],staticClass:"pwc-menu-item__content",class:{"is-active":t.isActive&&!t.menuItemProps.iconMode,"is-icon-mode":t.menuItemProps.iconMode},on:{click:t.onClickItem}},[t.hasSlot("icon")||t.menuIcon?r("div",{staticClass:"pwc-menu-item__icon"},[t.hasSlot("icon")?[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("icon",{isActive:t.isActive})}})]:[r(t.menuIcon,{tag:"component"})]],2):e._e(),t.menuItemProps.iconMode?e._e():r("div",{directives:[{name:"show",rawName:"v-show",value:!t.menuProps.collapsed||t.inSubMenuPopper,expression:"!menuProps.collapsed || inSubMenuPopper"}],staticClass:"pwc-menu-item__title"},[t.hasSlot("title")?[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("title")}})]:[e._v(" "+e._s(t.menuItemProps.title)+" ")]],2)])},EW=[],MW=j(TW,QW,EW);const IW=MW.exports,AW=c.defineComponent({__name:"menu-item",props:lW(),setup(e){const r=e,{receiveRouterSlotData:t}=PW({props:r});return{__sfc:!0,props:r,receiveRouterSlotData:t,MenuItemContent:IW}}});var zW=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return t.props.to?r("router-link",{tag:"component",attrs:{to:e.to,custom:""},scopedSlots:e._u([{key:"default",fn:function(i){return[r("a",e._b({staticClass:"pwc-menu-item",attrs:{href:i.href}},"a",t.receiveRouterSlotData(i),!1),[r(t.MenuItemContent)],1)]}}],null,!1,4189994726)}):e.href?r("a",{staticClass:"pwc-menu-item",attrs:{href:e.href}},[r(t.MenuItemContent)],1):r("div",{staticClass:"pwc-menu-item"},[r(t.MenuItemContent)],1)},DW=[],RW=j(AW,zW,DW);const OW=RW.exports,VW={};var BW=function(){var e=this;return e._self._c,e._m(0)},FW=[function(){var e=this,r=e._self._c;return r("div",{staticClass:"pwc-menu-divider"},[r("div")])}],jW=j(VW,BW,FW);const NW=jW.exports;ee("PwcMenu",mW),ee("PwcSubMenu",SW),ee("PwcMenuItem",OW),ee("PwcMenuDivider",NW);const UW=12,WW=16,Ko={"top-right":[],"top-left":[],"bottom-right":[],"bottom-left":[]};function Pf(e,r){const t=Ko[e];let i=WW;for(let o=0;o<r;o++)i+=t[o].height+UW;return i}function Tf(e){const r=Ko[e];for(let t=0;t<r.length;t++)r[t].offsetRef.value=Pf(e,t)}const Qa={add(e,r,t){const i=Ko[e],o=i.length,n={id:r,height:0,offsetRef:t};i.push(n),t.value=Pf(e,o)},updateHeight(e,r,t){const i=Ko[e].find(o=>o.id===r);i&&i.height!==t&&(i.height=t,Tf(e))},remove(e,r){const t=Ko[e],i=t.findIndex(o=>o.id===r);i!==-1&&(t.splice(i,1),Tf(e))}};let HW=0;const ZW=e=>{const{position:r,duration:t}=e,{destroyCurrentInstance:i}=So(),o=++HW,n=c.ref(!1),a=c.ref(0);Qa.add(r,o,a);const{startTimeout:s,closeTimeout:l}=ei(()=>{u()},t);function p(){n.value=!0,t>0&&s()}function u(){n.value=!1,l()}function d(){Qa.remove(r,o),i()}function m(f){Qa.updateHeight(r,o,f)}return c.onBeforeUnmount(()=>{Qa.remove(r,o)}),{visible:n,offsetPx:a,open:p,close:u,onAfterLeave:d,updateHeight:m}};w.object().def({}),w.enum().def(Mt.Info);const qW=()=>X(R(R({},el()),f2()),{trigger:w.oneOf(Zn).def("click"),placement:w.oneOf(Ei).def("top"),feedbackType:w.enum().def(Mt.Warning),concise:w.bool.def(!1)}),YW=()=>X(R(R({},he()),Gu()),{show:q(),hide:q()}),GW=c.defineComponent({__name:"popconfirm",props:qW(),emits:YW(),setup(e,{emit:r}){const t=e,{modelValue:i,updateModelValue:o}=de(t),{buttonData:n,onClickConfirm:a,onClickCancel:s}=Xu({props:t,emit:r,afterConfirm:()=>{var m;(m=d.value)==null||m.hidePopper()},afterCancel:()=>{var m;(m=d.value)==null||m.hidePopper()}});function l(){i.value||o(!0),r("show")}function p(){i.value&&o(!1),r("hide")}const u=c.computed(()=>{if(!t.concise)return t.feedbackType}),d=c.ref();return{__sfc:!0,props:t,emit:r,modelValue:i,updateModelValue:o,buttonData:n,onClickConfirm:a,onClickCancel:s,onShow:l,onHide:p,popoverFeedbackType:u,popoverRef:d,PwcButton:Ne,PwcPopover:m2}}});var KW=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r(t.PwcPopover,e._b({ref:"popoverRef",staticClass:"pwc-popconfirm",attrs:{trigger:e.trigger,placement:e.placement,"feedback-type":t.popoverFeedbackType},on:{show:t.onShow,hide:t.onHide},scopedSlots:e._u([{key:"reference",fn:function(){return[e._t("default")]},proxy:!0},{key:"default",fn:function(){return[r("div",{staticClass:"pwc-popconfirm__content"},[e.concise?e._e():e._t("content",function(){return[e._v(e._s(e.content))]}),r("div",{staticClass:"pwc-popconfirm__content__btns",class:{"is-concise":e.concise}},[t.buttonData.showCancelButton?r(t.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:t.onClickCancel}},"pwc-button",t.buttonData.cancelButtonProps,!1)):e._e(),t.buttonData.showConfirmButton?r(t.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:t.onClickConfirm}},"pwc-button",t.buttonData.confirmButtonProps,!1)):e._e()],1)],2)]},proxy:!0}],null,!0)},"pwc-popover",t.props,!1))},XW=[],JW=j(GW,KW,XW);const $W=JW.exports;ee("PwcPopconfirm",$W);var nt=(e=>(e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.TopLeft="top-left",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomRight="bottom-right",e))(nt||{});function eH(e,r){const t=c.ref((()=>{try{const i=localStorage.getItem(e);if(i)return JSON.parse(i)}catch(i){}return r})());return c.watch(t,i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){}},{deep:!0}),t}const tH=()=>({width:w.number.def(0),height:w.number.def(0),minWidth:w.number.def(50),minHeight:w.number.def(50),maxWidth:w.number.def(1/0),maxHeight:w.number.def(1/0),disabled:w.bool.def(!1),handleSize:w.number.def(8),showHandles:w.oneOfType([Boolean,Array]).def(!0),storageKey:w.string.def("")}),rH=()=>({"resize-start":q(),resize:q(),"resize-end":q()}),iH=e=>{const{props:r,emit:t}=e,i=c.ref(),o=c.ref(!1),n=c.ref(null),a=c.ref({x:0,y:0}),s=c.ref({width:0,height:0}),l={width:r.width,height:r.height},p=r.storageKey?eH(r.storageKey,l):c.ref(l),u=(y,k,C)=>Math.max(k,Math.min(C,y)),d=y=>({width:y.width===void 0?void 0:u(y.width,r.minWidth,r.maxWidth),height:y.height===void 0?void 0:u(y.height,r.minHeight,r.maxHeight)}),m=y=>{var C,S;const k=d(y);return{width:(C=k.width)!=null?C:p.value.width,height:(S=k.height)!=null?S:p.value.height}},f=y=>{p.value=m(y)},v=()=>({width:p.value.width,height:p.value.height}),g=c.computed(()=>{const y={};return(r.width||p.value.width)&&(y.width=p.value.width+"px"),(r.height||p.value.height)&&(y.height=p.value.height+"px"),y}),b=y=>r.showHandles===!1||Array.isArray(r.showHandles)&&!r.showHandles.includes(y)?!1:[nt.Top,nt.Bottom].includes(y)?!!r.height:[nt.Left,nt.Right].includes(y)?!!r.width:!!r.width&&!!r.height,h=(y,k)=>{r.disabled||(y.preventDefault(),y.stopPropagation(),o.value=!0,n.value=k,a.value={x:y.clientX,y:y.clientY},s.value=R({},p.value),t("resize-start",{width:p.value.width,height:p.value.height,direction:k,event:y}))},_=y=>{if(!o.value||!n.value)return;const k=y.clientX-a.value.x,C=y.clientY-a.value.y,S={};switch(n.value){case nt.Right:S.width=s.value.width+k;break;case nt.Bottom:S.height=s.value.height+C;break;case nt.Left:S.width=s.value.width-k;break;case nt.Top:S.height=s.value.height-C;break;case nt.TopRight:S.width=s.value.width+k,S.height=s.value.height-C;break;case nt.TopLeft:S.width=s.value.width-k,S.height=s.value.height-C;break;case nt.BottomRight:S.width=s.value.width+k,S.height=s.value.height+C;break;case nt.BottomLeft:S.width=s.value.width-k,S.height=s.value.height+C;break}const{width:L,height:T}=m(S);p.value={width:L,height:T},t("resize",{width:L,height:T,direction:n.value,event:y})},x=y=>{if(!o.value||!n.value)return;o.value=!1;const k=n.value;n.value=null,t("resize-end",{width:p.value.width,height:p.value.height,direction:k,event:y})};return c.onMounted(()=>{document.addEventListener("mousemove",_),document.addEventListener("mouseup",x)}),c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",x)}),{boxStyle:g,containerRef:i,currentSize:p,isResizing:o,showHandleControl:b,handleMouseDown:h,setSize:f,getSize:v}};tH(),rH();const oH=()=>({title:w.looseString,titleTooltip:w.looseString}),nH=c.defineComponent({__name:"section",props:oH(),setup(e){const r=e,{hasSlot:t,slotRender:i}=xe(),o=c.computed(()=>t("title-tooltip")||r.titleTooltip);return{__sfc:!0,props:r,hasSlot:t,slotRender:i,hasTitleTooltip:o,PwcTooltip:Yn,renderSlot:ut}}});var aH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("section",{staticClass:"pwc-section"},[t.hasSlot("title")||e.title?r("div",{staticClass:"pwc-section__title"},[e._t("title",function(){return[e._v(e._s(e.title))]}),t.hasTitleTooltip?[r(t.PwcTooltip,{attrs:{content:e.titleTooltip},scopedSlots:e._u([t.hasSlot("title-tooltip")?{key:"content",fn:function(){return[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("title-tooltip")}})]},proxy:!0}:null],null,!0)})]:e._e()],2):e._e(),r("div",{staticClass:"pwc-section__content"},[e._t("default")],2)])},sH=[],lH=j(nH,aH,sH);const cH=lH.exports;ee("PwcSection",cH);const pH=()=>({[w.modelValueKey]:w.oneOfType([Number,Array]).def(0),min:w.number.def(0),max:w.number.def(100),disabled:w.bool.def(!1),showTooltip:w.bool.def(!1),range:w.bool.def(!1),step:w.number.def(1),showStops:w.bool.def(!1),showSliderButton:w.bool.def(!0),marks:w.object(),cssRotateAngle:w.oneOf([0,90,180,270]).def(0),progressBarVisible:w.bool.def(!0),hotAreaHeight:w.number.def(4),sliderBarHeight:w.looseNumber,sliderBarBg:w.string.def(""),buttonSize:w.number.def(14)}),uH=()=>X(R({},he()),{change:q()}),Qf=Symbol("slider-inject-key"),dH=e=>{const{props:r,emit:t}=e,{modelValue:i,updateModelValue:o}=de(r,{outSideUpdate:()=>{S()}}),n=c.ref(0),a=c.ref(0),s=c.ref(!1),l=c.ref(void 0),p=c.ref(),{width:u}=Oe(p),d=c.ref(),m=c.ref(),f=c.ref(),v=c.computed(()=>Math.min(n.value,a.value)),g=c.computed(()=>Math.max(n.value,a.value)),b=c.computed(()=>r.range?`${100*(g.value-v.value)/(r.max-r.min)}%`:`${100*(n.value-r.min)/(r.max-r.min)}%`),h=c.computed(()=>r.range?`${100*(v.value-r.min)/(r.max-r.min)}%`:"0%"),_=c.computed(()=>X(R({},x.value),{width:b.value,left:h.value})),x=c.computed(()=>{const D={};return r.sliderBarHeight&&(D.height=`${r.sliderBarHeight}px`,D.borderRadius=`${r.sliderBarHeight/2}px`),D}),y=c.computed(()=>{const D=R({},x.value);return r.sliderBarBg&&(D.background=r.sliderBarBg),D}),k=c.computed(()=>{const D=[],A=r.max-r.min,M=E=>{D.includes(E)||D.push(E)};if(r.step&&r.showStops){const E=A/r.step,I=r.step/A;for(let V=1;V<E;V++){const O=Math.round(V*I*100);M(O)}}return r.marks&&Object.keys(r.marks).forEach(E=>{const I=Number(E);if(I>=r.min&&I<=r.max){const V=(I-r.min)/A,O=Math.round(V*100);M(O)}}),D}),C=c.computed(()=>{const D=[],A=r.max-r.min;return r.marks&&Object.keys(r.marks).forEach(M=>{const E=Number(M),I=r.marks[E];let V="",O={};if(typeof I=="string"?V=I:(V=I.label,O=I.style||{}),E>=r.min&&E<=r.max){const W=(E-r.min)/A,B=Math.round(W*100);D.push({label:V,style:O,left:B,value:E})}}),D});function S(){r.range?Array.isArray(i.value)?(n.value=Math.max(r.min,i.value[0]),a.value=Math.min(r.max,i.value[1])):(n.value=r.min,a.value=r.max):typeof i.value!="number"||isNaN(i.value)?n.value=r.min:n.value=Math.min(r.max,Math.max(r.min,i.value))}function L(){let D=i.value;r.range?D=[Math.floor(v.value),Math.floor(g.value)]:D=Math.floor(n.value),D!==i.value&&(l.value=i.value,o(D))}function T(){c.nextTick(()=>{t("change",r.range?[v.value,g.value]:i.value)})}function Q(D){var E;if(!r.range){(E=m.value)==null||E.setPosition(D);return}let A;const M=r.min+D*(r.max-r.min)/100;Math.abs(v.value-M)<Math.abs(g.value-M)?A=n.value<a.value?m.value:f.value:A=n.value>a.value?m.value:f.value,A==null||A.setPosition(D)}function P(D){var A,M;if(!(r.disabled||s.value)){if(r.cssRotateAngle===90){const E=((A=d.value)==null?void 0:A.getBoundingClientRect().top)||0;Q((D.clientY-E)/u.value*100)}else{const E=((M=d.value)==null?void 0:M.getBoundingClientRect().left)||0;Q((D.clientX-E)/u.value*100)}T()}}function z(D){Q(D.left),T()}return c.onMounted(()=>{S()}),c.provide(Qf,{sliderProps:r,sliderWidth:u,dragging:s,emitChange:T}),{modelValue:i,firstValue:n,secondValue:a,dragging:s,sliderRef:p,sliderClickRef:d,button1Ref:m,button2Ref:f,barStyle:_,runwayStyle:y,stops:k,markList:C,onSliderClick:P,onClickMark:z,emitInnerInput:L}},Ef=()=>c.inject(Qf),fH=()=>({value:w.number}),mH=()=>({change:q()}),hH=e=>{const{props:r,emit:t}=e,{sliderProps:i,sliderWidth:o,emitChange:n}=Ef(),a=c.ref(!1),s=c.ref(!1),l=c.ref(!1),p=c.ref(0),u=c.ref(0),d=c.ref(null),m=c.computed(()=>`${(r.value-i.min)/(i.max-i.min)*100}%`),f=c.computed(()=>({left:m.value}));function v(L){let T,Q;switch("touches"in L?(T=L.touches[0].clientX,Q=L.touches[0].clientY):(T=L.clientX,Q=L.clientY),i.cssRotateAngle){case 90:return{clientX:Q,clientY:T};case 180:return{clientX:-T,clientY:-Q};case 270:return{clientX:-Q,clientY:T}}return{clientX:T,clientY:Q}}function g(){i.disabled||(a.value=!0)}function b(){i.disabled||(a.value=!1)}function h(L){if(i.disabled)return;s.value=!0,l.value=!0;const T=v(L);p.value=T.clientX,u.value=parseFloat(m.value),d.value=u.value}function _(L){if(!i.disabled&&s.value){l.value=!1;const T=(v(L).clientX-p.value)/o.value*100;d.value=u.value+T,S(d.value)}}function x(){i.disabled||ue||s.value&&setTimeout(()=>{s.value=!1,l.value||(S(d.value),n())},0)}function y(L){i.disabled||ue||(h(L),window.addEventListener("mousemove",_),window.addEventListener("touchmove",_),window.addEventListener("mouseup",x),window.addEventListener("touchend",x),window.addEventListener("contextmenu",x))}function k(){window.removeEventListener("mousemove",_),window.removeEventListener("touchmove",_),window.removeEventListener("mouseup",x),window.removeEventListener("touchend",x),window.removeEventListener("contextmenu",x)}c.onBeforeUnmount(()=>{k()});function C(L){let T=L;return i.step&&(T=Math.round(L/i.step)*i.step),T<i.min&&(T=i.min),T>i.max&&(T=i.max),T}function S(L){if(L===null||isNaN(L))return;L<0?L=0:L>100&&(L=100);const T=(i.max-i.min)*(L/100),Q=i.min+T;t("change",C(Q))}return{hovering:a,dragging:s,btnStyle:f,handleMouseEnter:g,handleMouseLeave:b,onButtonDown:y,setPosition:S}},vH={name:"PlvSliderButton"},gH=c.defineComponent(X(R({},vH),{props:fH(),emits:mH(),setup(e,{expose:r,emit:t}){const i=e,o=Ef(),{sliderProps:n}=o,{hovering:a,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=hH({props:i,emit:t}),f=c.computed(()=>s.value||o.dragging.value||!1);return r({setPosition:m}),{__sfc:!0,props:i,emit:t,sliderInject:o,sliderProps:n,hovering:a,buttonDragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m,dragging:f}}}));var wH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-slider__button",style:t.btnStyle,on:{mouseenter:t.handleMouseEnter,mouseleave:t.handleMouseLeave,mousedown:t.onButtonDown,touchstart:t.onButtonDown}},[r("div",{class:["pwc-slider__button__inner",t.hovering||t.dragging?"pwc-slider__button__inner--hover":"",t.sliderProps.disabled?"pwc-slider__button__inner--disabled":""],style:{width:`${t.sliderProps.buttonSize}px`,height:`${t.sliderProps.buttonSize}px`}})])},bH=[],_H=j(gH,wH,bH);const xH=_H.exports,yH=c.defineComponent({__name:"slider",props:pH(),emits:uH(),setup(e,{emit:r}){const t=e,{firstValue:i,secondValue:o,sliderRef:n,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:v,emitInnerInput:g}=dH({props:t,emit:r});function b(_){i.value=_,g()}function h(_){o.value=_,g()}return{__sfc:!0,props:t,emit:r,firstValue:i,secondValue:o,sliderRef:n,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:v,emitInnerInput:g,onFirstValueChange:b,onSecondValueChange:h,SliderButton:xH}}});var CH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-slider"},[r("div",{ref:"sliderRef",class:["pwc-slider__runway",t.props.disabled?"pwc-slider__runway--disabled":""],style:t.runwayStyle},[t.props.progressBarVisible?r("div",{staticClass:"pwc-slider__runway__bar",style:t.barStyle}):e._e(),r("div",{ref:"sliderClickRef",staticClass:"pwc-slider__runway__click",style:{height:`${t.props.hotAreaHeight}px`},on:{click:t.onSliderClick}}),e._l(t.stops,function(i){return r("div",{key:`dot-${i}`,staticClass:"pwc-slider__runway__dot",style:{left:`${i}%`}})}),t.props.showSliderButton?r(t.SliderButton,{ref:"button1Ref",attrs:{value:t.firstValue},on:{change:t.onFirstValueChange}}):e._e(),t.props.range&&t.props.showSliderButton?r(t.SliderButton,{ref:"button2Ref",attrs:{value:t.secondValue},on:{change:t.onSecondValueChange}}):e._e()],2),t.markList.length?r("div",{staticClass:"pwc-slider__marks"},e._l(t.markList,function(i,o){return r("div",{key:`mark-${o}`,staticClass:"pwc-slider__marks__item",style:R({left:`${i.left}%`},i.style),on:{click:function(n){return t.onClickMark(i)}}},[e._v(" "+e._s(i.label)+" ")])}),0):e._e()])},kH=[],LH=j(yH,CH,kH);const SH=LH.exports;ee("PwcSlider",SH);const PH=["horizontal","vertical"],TH=["mini","small","medium","large"],QH={mini:4,small:8,medium:16,large:24},EH=()=>({direction:w.oneOf(PH).def("horizontal"),size:w.oneOfType([w.oneOf(TH),Number]).def("small"),wrap:w.bool.def(!1)}),MH=c.defineComponent({__name:"space",props:EH(),setup(e){const r=e,t=c.computed(()=>[`is-${r.direction}`,{"is-wrap":r.wrap}]),i=c.computed(()=>({gap:`${typeof r.size=="number"?r.size:QH[r.size]}px`}));return{__sfc:!0,props:r,spaceClass:t,spaceStyle:i}}});var IH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-space",class:t.spaceClass,style:t.spaceStyle},[e._t("default")],2)},AH=[],zH=j(MH,IH,AH);const DH=zH.exports;ee("PwcSpace",DH);const RH=["horizontal","vertical"],OH=()=>({direction:w.oneOf(RH).def("horizontal"),lazy:w.bool.def(!1)}),VH=()=>({min:w.looseNumber,max:w.looseNumber,initialSize:w.looseNumber}),Mf=Symbol("SPLITTER_INJECT_KEY"),BH=c.defineComponent({__name:"splitter",props:OH(),setup(e){const r=e,t=c.ref(),i=c.ref([]),o=c.ref([]),{width:n,height:a}=Oe(t),s=c.computed(()=>r.direction==="horizontal"),l=()=>{if(!t.value||i.value.length===0)return;const C=s.value?t.value.clientWidth:t.value.clientHeight;let S=0;const L=i.value.map(P=>P.props.initialSize!==void 0?(S+=P.props.initialSize,!0):!1),T=L.filter(P=>!P).length,Q=T>0?(C-S)/T:0;o.value=i.value.map((P,z)=>L[z]?P.props.initialSize:Q)};c.watch(()=>{const C=s.value?n.value:a.value;return`${r.direction}-${C}`},(C,S)=>{const L=Number(C.split("-").pop()),T=S?Number(S.split("-").pop()):0;if(L===0)return;if(o.value.length===0||o.value.every(z=>z===0)){l();return}if(f.value||T===0||T===L)return;const Q=o.value.reduce((z,D)=>z+D,0);if(Q===0)return;const P=o.value.map(z=>z/Q);o.value=P.map((z,D)=>{var I,V;const A=i.value[D],M=(I=A==null?void 0:A.props.min)!=null?I:0,E=(V=A==null?void 0:A.props.max)!=null?V:1/0;return Math.max(M,Math.min(E,z*L))})});const p=C=>{i.value.push(C),c.nextTick(l)},u=C=>{const S=i.value.findIndex(L=>L.id===C);S>=0&&(i.value.splice(S,1),o.value.splice(S,1))},d=C=>{const S=i.value.findIndex(T=>T.id===C),L=o.value[S];return L===void 0?{}:s.value?{width:`${L}px`,flexShrink:"0"}:{height:`${L}px`,flexShrink:"0"}},m=C=>{var S;return((S=i.value[i.value.length-1])==null?void 0:S.id)===C},f=c.ref(!1),v=c.ref(""),g=c.ref(0),b=c.ref([]),h=c.ref([]),_=c.computed(()=>{var L,T;if(!f.value||!r.lazy)return-1;const C=i.value.findIndex(Q=>Q.id===v.value);if(C<0)return-1;let S=0;for(let Q=0;Q<=C;Q++)S+=(T=(L=h.value[Q])!=null?L:o.value[Q])!=null?T:0;return S}),x=(C,S)=>{S.preventDefault(),f.value=!0,v.value=C,g.value=s.value?S.clientX:S.clientY,b.value=[...o.value],h.value=[...o.value],document.addEventListener("mousemove",y),document.addEventListener("mouseup",k)},y=C=>{var V,O,W,B;if(!f.value)return;const S=(s.value?C.clientX:C.clientY)-g.value,L=i.value.findIndex(F=>F.id===v.value);if(L<0||L>=i.value.length-1)return;const T=i.value[L],Q=i.value[L+1],P=b.value[L]+b.value[L+1],z=(V=T.props.min)!=null?V:0,D=(O=T.props.max)!=null?O:1/0,A=(W=Q.props.min)!=null?W:0,M=(B=Q.props.max)!=null?B:1/0;let E=Math.max(z,Math.min(D,b.value[L]+S)),I=P-E;if(I<A&&(I=A,E=P-I),I>M&&(I=M,E=P-I),E=Math.max(z,Math.min(D,E)),r.lazy){const F=[...b.value];F[L]=E,F[L+1]=I,h.value=F}else{const F=[...o.value];F[L]=E,F[L+1]=I,o.value=F}},k=()=>{r.lazy&&(o.value=[...h.value]),f.value=!1,v.value="",document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",k)};return c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",k)}),c.provide(Mf,{direction:c.computed(()=>r.direction),registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,onDividerMouseDown:x}),{__sfc:!0,props:r,containerRef:t,panels:i,sizes:o,containerWidth:n,containerHeight:a,isHorizontal:s,initSizes:l,registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,isDragging:f,draggingId:v,startPos:g,startSizes:b,pendingSizes:h,lazyPreviewPos:_,onDividerMouseDown:x,onMouseMove:y,onMouseUp:k}}});var FH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{ref:"containerRef",staticClass:"pwc-splitter",class:[`pwc-splitter--${t.props.direction}`,{"is-dragging":t.isDragging}]},[e._t("default"),t.isDragging&&t.props.lazy&&t.lazyPreviewPos>=0?r("div",{staticClass:"pwc-splitter__lazy-preview",class:[`pwc-splitter__lazy-preview--${t.props.direction}`],style:t.isHorizontal?{left:`${t.lazyPreviewPos}px`}:{top:`${t.lazyPreviewPos}px`}}):e._e()],2)},jH=[],NH=j(BH,FH,jH);const UH=NH.exports,WH=c.defineComponent({__name:"splitter-panel",props:VH(),setup(e){const r=e,t=`splitter-panel-${Math.random().toString(36).slice(2)}`,i=c.inject(Mf),o=c.computed(()=>{var l;return(l=i==null?void 0:i.direction.value)!=null?l:"horizontal"}),n=c.computed(()=>{var l;return(l=i==null?void 0:i.isLastPanel(t))!=null?l:!1}),a=c.computed(()=>{var l;return(l=i==null?void 0:i.getPanelStyle(t))!=null?l:{}}),s=l=>{i==null||i.onDividerMouseDown(t,l)};return c.onMounted(()=>{i==null||i.registerPanel({id:t,props:r})}),c.onBeforeUnmount(()=>{i==null||i.unregisterPanel(t)}),{__sfc:!0,props:r,panelId:t,splitter:i,direction:o,isLast:n,panelStyle:a,handleDividerMouseDown:s}}});var HH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-splitter-panel",style:t.panelStyle},[r("div",{staticClass:"pwc-splitter-panel__content"},[e._t("default")],2),t.isLast?e._e():r("div",{staticClass:"pwc-splitter__divider",class:[`pwc-splitter__divider--${t.direction}`],on:{mousedown:t.handleDividerMouseDown}},[r("span",{staticClass:"pwc-splitter__divider-bar"})])])},ZH=[],qH=j(WH,HH,ZH);const YH=qH.exports;ee("PwcSplitter",UH),ee("PwcSplitterPanel",YH);const GH=()=>({max:w.number.def(3)}),KH=()=>({label:w.looseString,disabled:w.bool.def(!1)}),XH=()=>({click:q()}),If=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),JH=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(If,{}),{__sfc:!0,PwcButton:Ne,PwcIconMore:du,PwcDropdown:FD,PwcDropdownMenu:jD}}});var $H=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r(t.PwcDropdown,{staticClass:"pwc-table-operation-dropdown",scopedSlots:e._u([{key:"dropdown",fn:function(){return[r(t.PwcDropdownMenu,[e._t("default")],2)]},proxy:!0}],null,!0)},[r(t.PwcButton,{attrs:{link:""}},[r("div",{staticClass:"pwc-table-operation-dropdown__icon"},[r(t.PwcIconMore)],1)])],1)},eZ=[],tZ=j(JH,$H,eZ);const rZ=tZ.exports;function iZ(e){const r=e;if(typeof r.text=="string")return r.text;if(typeof r.children=="string")return r.children}function oZ(e){const r=iZ(e);return typeof r=="string"&&r.trim()===""}function nZ(e){return!Ae.isCommentVNode(e)&&!oZ(e)}const aZ=c.defineComponent({props:GH(),setup(e){const r=c.useSlots(),t=c.inject(Vl,void 0),i=ar(8),o=c.ref();function n(){if(t)return t.allRenderColumnList.value.find(a=>a.columnProps.type==="operation")}return Oe(o,({width:a})=>{const s=n();s&&s.setOperationWidthRecord(i,a)}),c.onBeforeUnmount(()=>{const a=n();a&&a.removeOperationWidthRecord(i)}),()=>{var m;let a=(m=r.default)==null?void 0:m.call(r);if(!a)return c.h("span",{},"-");a=a.filter(nZ);let s=0;const l=[],p=[],u=a.length;u===0&&l.push(c.h("span",{},"-")),a.forEach(f=>{u<=e.max||s<e.max-1?(l.push(f),s++):p.push(f)}),p.length>0&&l.push(c.h(rZ,{},bo()?{default:()=>p}:p));const d=["pwc-table-operation"];return u===0&&d.push("is-empty"),c.h("div",{class:d},[c.h("div",{class:"pwc-table-operation__content",ref:o},l)])}}}),sZ=c.defineComponent({__name:"table-operation-item",props:KH(),emits:XH(),setup(e,{emit:r}){const t=e,i=c.useAttrs(),o=c.inject(If,void 0);function n(s){t.disabled||r("click",s)}const a=c.computed(()=>"href"in i?"a":"div");return{__sfc:!0,props:t,emit:r,attrs:i,dropdownInject:o,onClickItem:n,dropdownItemTag:a,PwcButton:Ne,PwcDropdownItem:ND}}});var lZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return t.dropdownInject?r(t.PwcDropdownItem,{staticClass:"pwc-table-operation-item",attrs:{disabled:e.disabled,tag:t.dropdownItemTag},nativeOn:{click:function(i){return t.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2):r(t.PwcButton,{staticClass:"pwc-table-operation-item",attrs:{link:"",disabled:e.disabled},nativeOn:{click:function(i){return t.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2)},cZ=[],pZ=j(sZ,lZ,cZ);const uZ=pZ.exports;ee("PwcTableOperation",aZ),ee("PwcTableOperationItem",uZ);const dZ=["line","rounded","text"],fZ=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(dZ).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),mZ=()=>X(R({},he()),{change:q()}),hZ=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),vc=Symbol("tabs-inject-key"),vZ=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:r,tabsProps:t,setCurrentTab:i}=c.inject(vc),{$t:o}=ne(),n=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=ft();function p(){return K(this,null,function*(){if(yield c.nextTick(),!n.value||ue)return;const d=n.value.querySelector(".pwc-tab-nav__item");if(!d)return;const m=d.clientHeight;n.value.clientHeight>=m*1.5||n.value.scrollWidth>n.value.clientWidth?a.value=!0:a.value=!1})}c.watch(()=>r.value.length,()=>{p()},{immediate:!0});function u(d){d.paneProps.disabled||i(d.getPaneName())}return{__sfc:!0,tabPanes:r,tabsProps:t,setCurrentTab:i,$t:o,listRef:n,isMoreItem:a,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:dr,PwcIconUp:Ns,renderSlot:ut}}});var gZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-tab-nav",class:[`is-type-${t.tabsProps.type}`]},[r("div",{ref:"listRef",staticClass:"pwc-tab-nav__list",class:{"is-hide":t.tabsProps.expand&&!t.isExpanded}},e._l(t.tabPanes,function(i){return r("div",{key:i.paneId,staticClass:"pwc-tab-nav__item",class:{"is-active":i.getIsActive(),"is-disabled":i.paneProps.disabled},on:{click:function(o){return t.onClickItem(i)}}},[i.hasSlot("title")?r(t.renderSlot,{staticClass:"pwc-tab-nav__item__title",attrs:{"slot-func":i.getTitleRenderSlot}}):r("span",[e._v(e._s(i.paneProps.title))]),i.hasSlot("extra")?r(t.renderSlot,{staticClass:"pwc-tab-nav__item__extra",attrs:{"slot-func":i.getExtraRenderSlot}}):e._e(),i.paneProps.extra?r("span",{staticClass:"pwc-tab-nav__item__extra"},[e._v(" "+e._s(i.paneProps.extra)+" ")]):e._e()],1)}),0),r("div",{staticClass:"pwc-tab-nav__right"},[t.tabsProps.expand&&t.isMoreItem?r("div",{staticClass:"pwc-tab-nav__expand",on:{click:t.toggle}},[r("span",[e._v(e._s(t.isExpanded?t.$t("tabs.collapse"):t.$t("tabs.more")))]),t.isExpanded?r(t.PwcIconUp):r(t.PwcIconDown)],1):e._e()])])},wZ=[],bZ=j(vZ,gZ,wZ);const _Z=bZ.exports,xZ=c.defineComponent({__name:"tabs",props:fZ(),emits:mZ(),setup(e,{emit:r}){const t=e,i=c.ref(),o=c.ref(),{modelValue:n,updateModelValue:a}=de(t,{outSideUpdate:v=>{i.value=v}}),s=c.ref([]);function l(v){if(!s.value.includes(v)){if(typeof i.value>"u")if(typeof n.value>"u"){const g=v.getPaneName();u(g,!1)}else u(n.value,!1);s.value.push(v)}}function p(v){s.value=s.value.filter(g=>g!==v)}function u(v,g=!0){i.value!==v&&(i.value=v,a(v),g&&r("change",v))}const d=c.ref(0);function m(){return K(this,null,function*(){var b;yield c.nextTick();const v=((b=o.value)==null?void 0:b.querySelectorAll("[data-pane-name]"))||[];let g=0;for(let h=0;h<v.length;h++)if(v[h].getAttribute("data-is-active")==="true"){g=h*100;break}d.value=g})}c.watch(()=>i.value,()=>{m()});const f={tabsProps:t,currentTab:i,tabPanes:s,setCurrentTab:u,addTabPane:l,removeTabPane:p};return c.provide(vc,f),{__sfc:!0,props:t,emits:r,currentTab:i,tabsRef:o,modelValue:n,updateModelValue:a,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:_Z}}});var yZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{ref:"tabsRef",staticClass:"pwc-tabs"},[r(t.TabNav),r("div",{staticClass:"pwc-tabs__content"},[r("div",{staticClass:"pwc-tabs__list",style:{marginLeft:`-${t.offsetPercent}%`}},[e._t("default")],2)])],1)},CZ=[],kZ=j(xZ,yZ,CZ);const LZ=kZ.exports,SZ=c.defineComponent({__name:"tab-pane",props:hZ(),setup(e){const r=e,t=ar(8),i=c.inject(vc),{hasSlot:o,slotRender:n}=xe(),a=c.computed(()=>r.name||t),s=c.computed(()=>i.currentTab.value===a.value);function l(){return n("title",{isActive:s.value})}const p=c.computed(()=>{var f;return(f=r.lazyLoad)!=null?f:i.tabsProps.lazyLoad}),u=c.ref(!1);c.watch(s,()=>{s.value&&(u.value=!0)});const d=c.computed(()=>p.value?u.value:!0),m={paneId:t,paneProps:r,getPaneName:()=>a.value,getIsActive:()=>s.value,hasSlot:o,getTitleRenderSlot:l,getExtraRenderSlot:()=>n("extra")};return c.onBeforeMount(()=>{i.addTabPane(m)}),{__sfc:!0,props:r,paneId:t,tabsInject:i,hasSlot:o,slotRender:n,tabPaneName:a,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var PZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-tab-pane",class:{"is-active":t.isActive},attrs:{"data-pane-name":t.tabPaneName,"data-is-active":t.isActive}},[t.canRender?r("div",{staticClass:"pwc-tab-pane__content"},[e._t("default")],2):e._e()])},TZ=[],QZ=j(SZ,PZ,TZ);const EZ=QZ.exports;ee("PwcTabs",LZ),ee("PwcTabPane",EZ);var Af={},MZ,IZ;function AZ(e,r,t,n){var o=0,n=n===void 0?{}:n,a=n.loop===void 0?null:n.loop,s=n.palette===void 0?null:n.palette;if(r<=0||t<=0||r>65535||t>65535)throw new Error("Width/Height invalid.");function l(b){var h=b.length;if(h<2||h>256||h&h-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return h}e[o++]=71,e[o++]=73,e[o++]=70,e[o++]=56,e[o++]=57,e[o++]=97;var p=0,u=0;if(s!==null){for(var d=l(s);d>>=1;)++p;if(d=1<<p,--p,n.background!==void 0){if(u=n.background,u>=d)throw new Error("Background index out of range.");if(u===0)throw new Error("Background index explicitly passed as 0.")}}if(e[o++]=r&255,e[o++]=r>>8&255,e[o++]=t&255,e[o++]=t>>8&255,e[o++]=(s!==null?128:0)|p,e[o++]=u,e[o++]=0,s!==null)for(var m=0,f=s.length;m<f;++m){var v=s[m];e[o++]=v>>16&255,e[o++]=v>>8&255,e[o++]=v&255}if(a!==null){if(a<0||a>65535)throw new Error("Loop count invalid.");e[o++]=33,e[o++]=255,e[o++]=11,e[o++]=78,e[o++]=69,e[o++]=84,e[o++]=83,e[o++]=67,e[o++]=65,e[o++]=80,e[o++]=69,e[o++]=50,e[o++]=46,e[o++]=48,e[o++]=3,e[o++]=1,e[o++]=a&255,e[o++]=a>>8&255,e[o++]=0}var g=!1;this.addFrame=function(b,h,_,x,y,k){if(g===!0&&(--o,g=!1),k=k===void 0?{}:k,b<0||h<0||b>65535||h>65535)throw new Error("x/y invalid.");if(_<=0||x<=0||_>65535||x>65535)throw new Error("Width/Height invalid.");if(y.length<_*x)throw new Error("Not enough pixels for the frame size.");var C=!0,S=k.palette;if(S==null&&(C=!1,S=s),S==null)throw new Error("Must supply either a local or global palette.");for(var L=l(S),T=0;L>>=1;)++T;L=1<<T;var Q=k.delay===void 0?0:k.delay,P=k.disposal===void 0?0:k.disposal;if(P<0||P>3)throw new Error("Disposal out of range.");var z=!1,D=0;if(k.transparent!==void 0&&k.transparent!==null&&(z=!0,D=k.transparent,D<0||D>=L))throw new Error("Transparent color index.");if((P!==0||z||Q!==0)&&(e[o++]=33,e[o++]=249,e[o++]=4,e[o++]=P<<2|(z===!0?1:0),e[o++]=Q&255,e[o++]=Q>>8&255,e[o++]=D,e[o++]=0),e[o++]=44,e[o++]=b&255,e[o++]=b>>8&255,e[o++]=h&255,e[o++]=h>>8&255,e[o++]=_&255,e[o++]=_>>8&255,e[o++]=x&255,e[o++]=x>>8&255,e[o++]=C===!0?128|T-1:0,C===!0)for(var A=0,M=S.length;A<M;++A){var E=S[A];e[o++]=E>>16&255,e[o++]=E>>8&255,e[o++]=E&255}return o=zZ(e,o,T<2?2:T,y),o},this.end=function(){return g===!1&&(e[o++]=59,g=!0),o},this.getOutputBuffer=function(){return e},this.setOutputBuffer=function(b){e=b},this.getOutputBufferPosition=function(){return o},this.setOutputBufferPosition=function(b){o=b}}function zZ(e,r,t,i){e[r++]=t;var o=r++,n=1<<t,a=n-1,s=n+1,l=s+1,p=t+1,u=0,d=0;function m(k){for(;u>=k;)e[r++]=d&255,d>>=8,u-=8,r===o+256&&(e[o]=255,o=r++)}function f(k){d|=k<<u,u+=p,m(8)}var v=i[0]&a,g={};f(n);for(var b=1,h=i.length;b<h;++b){var _=i[b]&a,x=v<<8|_,y=g[x];if(y===void 0){for(d|=v<<u,u+=p;u>=8;)e[r++]=d&255,d>>=8,u-=8,r===o+256&&(e[o]=255,o=r++);l===4096?(f(n),l=s+1,p=t+1,g={}):(l>=1<<p&&++p,g[x]=l++),v=_}else v=y}return f(v),f(s),m(1),o+1===r?e[o]=0:(e[o]=r-o-1,e[r++]=0),r}function DZ(e){var r=0;if(e[r++]!==71||e[r++]!==73||e[r++]!==70||e[r++]!==56||(e[r++]+1&253)!==56||e[r++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=e[r++]|e[r++]<<8,i=e[r++]|e[r++]<<8,o=e[r++],n=o>>7,a=o&7,s=1<<a+1;e[r++],e[r++];var l=null,p=null;n&&(l=r,p=s,r+=s*3);var u=!0,d=[],m=0,f=null,v=0,g=null;for(this.width=t,this.height=i;u&&r<e.length;)switch(e[r++]){case 33:switch(e[r++]){case 255:if(e[r]!==11||e[r+1]==78&&e[r+2]==69&&e[r+3]==84&&e[r+4]==83&&e[r+5]==67&&e[r+6]==65&&e[r+7]==80&&e[r+8]==69&&e[r+9]==50&&e[r+10]==46&&e[r+11]==48&&e[r+12]==3&&e[r+13]==1&&e[r+16]==0)r+=14,g=e[r++]|e[r++]<<8,r++;else for(r+=12;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}break;case 249:if(e[r++]!==4||e[r+4]!==0)throw new Error("Invalid graphics extension block.");var h=e[r++];m=e[r++]|e[r++]<<8,f=e[r++],h&1||(f=null),v=h>>2&7,r++;break;case 254:for(;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}break;default:throw new Error("Unknown graphic control label: 0x"+e[r-1].toString(16))}break;case 44:var _=e[r++]|e[r++]<<8,x=e[r++]|e[r++]<<8,y=e[r++]|e[r++]<<8,k=e[r++]|e[r++]<<8,C=e[r++],S=C>>7,L=C>>6&1,T=C&7,Q=1<<T+1,P=l,z=p,D=!1;if(S){var D=!0;P=r,z=Q,r+=Q*3}var A=r;for(r++;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}d.push({x:_,y:x,width:y,height:k,has_local_palette:D,palette_offset:P,palette_size:z,data_offset:A,data_length:r-A,transparent_index:f,interlaced:!!L,delay:m,disposal:v});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[r-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return g},this.frameInfo=function(M){if(M<0||M>=d.length)throw new Error("Frame index out of range.");return d[M]},this.decodeAndBlitFrameBGRA=function(M,E){var I=this.frameInfo(M),V=I.width*I.height,O=new Uint8Array(V);zf(e,I.data_offset,O,V);var W=I.palette_offset,B=I.transparent_index;B===null&&(B=256);var F=I.width,H=t-F,G=F,N=(I.y*t+I.x)*4,Y=((I.y+I.height)*t+I.x)*4,J=N,ie=H*4;I.interlaced===!0&&(ie+=t*4*7);for(var U=8,te=0,fe=O.length;te<fe;++te){var we=O[te];if(G===0&&(J+=ie,G=F,J>=Y&&(ie=H*4+t*4*(U-1),J=N+(F+H)*(U<<1),U>>=1)),we===B)J+=4;else{var be=e[W+we*3],Ze=e[W+we*3+1],_t=e[W+we*3+2];E[J++]=_t,E[J++]=Ze,E[J++]=be,E[J++]=255}--G}},this.decodeAndBlitFrameRGBA=function(M,E){var I=this.frameInfo(M),V=I.width*I.height,O=new Uint8Array(V);zf(e,I.data_offset,O,V);var W=I.palette_offset,B=I.transparent_index;B===null&&(B=256);var F=I.width,H=t-F,G=F,N=(I.y*t+I.x)*4,Y=((I.y+I.height)*t+I.x)*4,J=N,ie=H*4;I.interlaced===!0&&(ie+=t*4*7);for(var U=8,te=0,fe=O.length;te<fe;++te){var we=O[te];if(G===0&&(J+=ie,G=F,J>=Y&&(ie=H*4+t*4*(U-1),J=N+(F+H)*(U<<1),U>>=1)),we===B)J+=4;else{var be=e[W+we*3],Ze=e[W+we*3+1],_t=e[W+we*3+2];E[J++]=be,E[J++]=Ze,E[J++]=_t,E[J++]=255}--G}}}function zf(e,r,t,i){for(var o=e[r++],n=1<<o,a=n+1,s=a+1,l=o+1,p=(1<<l)-1,u=0,d=0,m=0,f=e[r++],v=new Int32Array(4096),g=null;;){for(;u<16&&f!==0;)d|=e[r++]<<u,u+=8,f===1?f=e[r++]:--f;if(u<l)break;var b=d&p;if(d>>=l,u-=l,b===n){s=a+1,l=o+1,p=(1<<l)-1,g=null;continue}else if(b===a)break;for(var h=b<s?b:g,_=0,x=h;x>n;)x=v[x]>>8,++_;var y=x,k=m+_+(h!==b?1:0);if(k>i){console.log("Warning, gif stream longer than expected.");return}t[m++]=y,m+=_;var C=m;for(h!==b&&(t[m++]=y),x=h;_--;)x=v[x],t[--C]=x&255,x>>=8;g!==null&&s<4096&&(v[s++]=g<<8|y,s>=p+1&&l<12&&(++l,p=p<<1|1)),g=b}return m!==i&&console.log("Warning, gif stream shorter than expected."),t}try{IZ=Af.GifWriter=AZ,MZ=Af.GifReader=DZ}catch(e){}const RZ=e=>{const{configProviderData:r}=hr();function t(i){var o;if(r!=null&&r.trackEventCallback){r.trackEventCallback(i);return}(o=e.trackEvent)==null||o.call(e,i)}return{trackEvent:t}};function OZ(e,r,t={}){function i(){if(e)for(const n in r)r[n]&&e.on(n,r[n])}function o(){if(e)for(const n in r)r[n]&&e.off(n,r[n])}return Fn({listenEvent:i,removeEvent:o},t),{listenEvent:i,removeEvent:o}}const VZ={vote:{option:"Voting Options",rule:"Rules",ruleTitle:"Rule Description",success:"Vote successful",voted:"You have already voted",voteFailed:"Vote failed",voteLimit:"Vote limit reached",count:"votes",entrance:"Vote",listTitle:"Vote Activity",noRule:"No rules",status:{voting:"Voting",ended:"Ended"},button:{vote:"Vote",voted:"Voted",notVoted:"Not Voted"}}},BZ={vote:{option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}}},FZ={vote:{option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}}},jZ={vote:{option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}}},NZ={vote:{option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},UZ={vote:{option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},{useI18n:qi}=Yu({zh_CN:NZ,zh_TW:UZ,en:VZ,ja:BZ,ko:FZ,ru:jZ}),WZ=()=>({status:w.oneOf(["Y","N"]).def("Y"),isVoted:w.bool.isRequired,disabled:w.bool.def(!1),hasVoteList:w.bool.def(!1)}),HZ=()=>({click:q()}),ZZ=e=>{const{props:r,emit:t}=e,{$t:i}=qi(),o=c.computed(()=>r.isVoted?"voted":r.status==="N"?"not-voted":r.disabled?"disabled":"vote"),n={vote:i("vote.button.vote"),voted:i("vote.button.voted"),"not-voted":i("vote.button.notVoted"),disabled:i("vote.button.vote")},a=c.computed(()=>n[o.value]);function s(){o.value==="vote"&&t("click")}return{buttonType:o,buttonText:a,handleClick:s}},qZ=c.defineComponent({__name:"vote-button",props:WZ(),emits:HZ(),setup(e,{emit:r}){const t=e,{buttonType:i,buttonText:o,handleClick:n}=ZZ({props:t,emit:r});return{__sfc:!0,props:t,emit:r,buttonType:i,buttonText:o,handleClick:n,PwcButton:Ne}}});function Xo(e,r,t,i,o,n,a,s){var l=typeof e=="function"?e.options:e;return r&&(l.render=r,l.staticRenderFns=t,l._compiled=!0),n&&(l._scopeId="data-v-"+n),{exports:e,options:l}}var YZ=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-vote-button",class:{"plv-iar-vote-button--no-pointer":i.props.hasVoteList}},[i.buttonType==="vote"?t(i.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:i.props.disabled},on:{click:i.handleClick}},[r._v(" "+r._s(i.buttonText)+" ")]):i.buttonType==="not-voted"||i.buttonType==="disabled"?t(i.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:""}},[r._v(" "+r._s(i.buttonText)+" ")]):t(i.PwcButton,{staticClass:"plv-iar-vote-button__text",attrs:{size:"mini",disabled:i.props.status==="N"||i.props.disabled}},[r._v(" "+r._s(i.buttonText)+" ")])],1)},GZ=[],KZ=Xo(qZ,YZ,GZ,!1,null,"80252ec7");const Df=KZ.exports,XZ=()=>({status:w.oneOf(["Y","N"]).def("Y")}),JZ=()=>({}),$Z=e=>{const{props:r}=e,{$t:t}=qi();return{statusText:c.computed(()=>r.status==="Y"?t("vote.status.voting"):t("vote.status.ended"))}},eq=c.defineComponent({__name:"vote-status",props:XZ(),emits:JZ(),setup(e,{emit:r}){const t=e,{statusText:i}=$Z({props:t});return{__sfc:!0,props:t,emit:r,statusText:i}}});var tq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-vote-status",class:{"plv-iar-vote-status--voting":r.status==="Y","plv-iar-vote-status--ended":r.status==="N"}},[r._v(" "+r._s(i.statusText)+" ")])},rq=[],iq=Xo(eq,tq,rq,!1,null,"b5328d28");const Rf=iq.exports,Of=()=>({voteData:w.object().isRequired,votedList:w.array().def([]),layout:w.oneOf(["single","double"]).def("single"),clickable:w.bool.def(!0),hasVoteList:w.bool.def(!1)}),Vf=()=>({"to-vote":q()}),Bf=e=>{const{props:r,emit:t,itemRef:i}=e,o=c.ref({gridRowEnd:"auto"}),n=c.computed(()=>r.votedList.includes(r.voteData.id)),a=c.computed(()=>!r.clickable);function s(){a.value||t("to-vote",r.voteData.id)}return{isVoted:n,isDisabled:a,gridRowEndStyle:o,handleVote:s}},oq=c.defineComponent({__name:"vote-item-single",props:Of(),emits:Vf(),setup(e,{emit:r}){const t=e,{$t:i}=qi(),{isVoted:o,isDisabled:n,handleVote:a}=Bf({props:t,emit:r});return{__sfc:!0,$t:i,props:t,emit:r,isVoted:o,isDisabled:n,handleVote:a,VoteButton:Df,VoteStatus:Rf}}});var nq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-single",class:{"plv-iar-vote-list-item-image":!!r.voteData.voteCoverImage,"plv-iar-vote-list-item-no-image":!r.voteData.voteCoverImage}},[r.voteData.voteCoverImage?[t("div",{staticClass:"plv-iar-vote-list-item-bg"},[t("div",{staticClass:"plv-iar-vote-list-item-bg-image",style:{backgroundImage:`url(${r.voteData.voteCoverImage})`}}),t("div",{staticClass:"plv-iar-vote-list-item-bg-mask"})])]:r._e(),t("div",{staticClass:"plv-iar-vote-list-item-content"},[t("div",{staticClass:"plv-iar-vote-list-item-content-info"},[t("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top"},[r.voteData.status?t(i.VoteStatus,{staticClass:"plv-iar-vote-list-item-content-info-left-top-item",attrs:{status:r.voteData.status}}):r._e(),r.voteData.showVoteCount?t("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top-item plv-iar-vote-list-item-content-info-count"},[r._v(" "+r._s(r.voteData.voteCount||0)+" "+r._s(i.$t("vote.count"))+" ")]):r._e()],1),t("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[r._v(r._s(r.voteData.name))])]),t(i.VoteButton,{attrs:{status:r.voteData.status,"is-voted":i.isVoted,disabled:i.isDisabled,"has-vote-list":i.props.hasVoteList},on:{click:i.handleVote}})],1)],2)},aq=[],sq=Xo(oq,nq,aq,!1,null,"c2bb97a3");const lq=sq.exports,cq=c.defineComponent({__name:"vote-item-double",props:Of(),emits:Vf(),setup(e,{expose:r,emit:t}){const i=e,{$t:o}=qi(),n=c.ref(),{isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p}=Bf({props:i,emit:t,itemRef:n});let u=null;const d=12;function m(g=d){if(!n.value)return;const b=n.value.offsetHeight;if(b>0){const h=Math.ceil(b/g);l.value={gridRowEnd:`span ${h}`}}}function f(){n.value&&(u&&(u.disconnect(),u=null),u=new wp(()=>{m(d)}),u.observe(n.value),m(d))}function v(){u&&(u.disconnect(),u=null)}return c.watch(n,g=>{v(),g&&f()},{immediate:!0}),c.onBeforeUnmount(()=>{v()}),r({calculateGridRowEnd:m,itemRef:n}),{__sfc:!0,$t:o,props:i,emit:t,itemRef:n,isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p,resizeObserver:u,GAP:d,calculateGridRowEnd:m,setupResizeObserver:f,cleanupResizeObserver:v,VoteButton:Df,VoteStatus:Rf}}});var pq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{ref:"itemRef",staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-double",style:i.gridRowEndStyle},[t("div",{staticClass:"plv-iar-vote-list-item-content-container"},[r.voteData.voteCoverImage?[t("div",{staticClass:"plv-iar-vote-list-item-image",style:{backgroundImage:`url(${r.voteData.voteCoverImage})`}},[t("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[r.voteData.status?t(i.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-image-status",attrs:{status:r.voteData.status}}):r._e(),r.voteData.showVoteCount?t("div",{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-content-info-count"},[r._v(" "+r._s(r.voteData.voteCount||0)+" "+r._s(i.$t("vote.count"))+" ")]):r._e()],1)])]:r._e(),t("div",{staticClass:"plv-iar-vote-list-item-content"},[t("div",{staticClass:"plv-iar-vote-list-item-content-info"},[r.voteData.voteCoverImage?r._e():t("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[r.voteData.status?t(i.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item",attrs:{status:r.voteData.status}}):r._e(),r.voteData.showVoteCount?t("div",{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-content-info-count"},[r._v(" "+r._s(r.voteData.voteCount||0)+" "+r._s(i.$t("vote.count"))+" ")]):r._e()],1),t("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[r._v(r._s(r.voteData.name))])]),t(i.VoteButton,{attrs:{status:r.voteData.status,"is-voted":i.isVoted,disabled:i.isDisabled,"has-vote-list":i.props.hasVoteList},on:{click:i.handleVote}})],1)],2)])},uq=[],dq=Xo(cq,pq,uq,!1,null,"7ae37e2b");const fq=dq.exports,mq={OpenVoteRule:"OpenVoteRule"};function hq(e){const{state:r,onShow:t,onGetVoteList:i}=e,{list:o,curVotedList:n,cacheVotedList:a,voteCount:s,isForceHideResult:l,isForceShowResult:p,findVoteById:u}=r;function d(_){n.value=_.curVotedList}function m(_){const x=_.voteData.id,y=u(x)[0];y!==-1&&o.value.splice(y,1);const k=n.value.findIndex(T=>T===x);k!==-1&&n.value.splice(k,1);const C=a.value.findIndex(T=>T===x);C!==-1&&a.value.splice(C,1);const S=_.voteData.voteOrder||0;let L=o.value.length;for(let T=0;T<o.value.length;T++)if((o.value[T].voteOrder||0)>=S){L=T;break}p.value&&(_.voteData.showVoteCount=!0,_.voteData.voteCount=0),o.value.splice(L,0,_.voteData),t()}function f(_){const x=u(_.id)[1];x&&(x.status="N")}function v(_){s.value=_.voteCount,_.list.forEach(x=>{const y=u(x.id)[1];y&&(y.showVoteCount=!l.value,y.voteCount=x.times)})}function g(){o.value.splice(0,o.value.length)}function b(_){const x=u(_.id)[0];x!==-1&&o.value.splice(x,1)}function h(_){const x=Math.floor(Math.random()*3e3);setTimeout(()=>{i()},x)}return{updateVotedList:d,onVoteStart:m,onVoteStop:f,onVoteResult:v,onVoteDeleteAll:g,onVoteDelete:b,onVoteChangeOrder:h}}function vq(e){const{voteTarget:r,state:t,onShowEntrance:i}=e,{list:o,curVotedList:n,cacheVotedList:a,isVotedWithLimit:s,voteCount:l,isForceHideResult:p,findVoteById:u}=t,{toast:d}=br(),{$t:m}=qi(),{trackEvent:f}=RZ((r==null?void 0:r.interactionCore)||{});function v(){return K(this,null,function*(){r&&(n.value=r.getVotedList())})}function g(){return K(this,null,function*(){if(!r)return;const y=yield r.getVoteList();if(y&&y.code===200&&y.data){o.value=y.data.list,o.value.length>0&&i(!0);const k=r.getCachedVoteResult();k&&k.forEach(C=>{const S=u(C.id)[1];S&&(S.showVoteCount=!p.value,S.voteCount=C.times)})}})}const b=ws(g,1e3);function h(y){return K(this,null,function*(){if(r&&a.value.indexOf(y)===-1){a.value.push(y);const k=yield r.toVote(y);if(k.code===200)r.pushVotedList(y),d.success(m("vote.success"));else if(k.code===506)d.info(m("vote.voted")),r.pushVotedList(y);else{k.code===501?(s.value=!0,d.error(m("vote.voteLimit"))):d.error(k.message||m("vote.voteFailed"));const C=a.value.indexOf(y);C!==-1&&a.value.splice(C,1)}_()}})}function _(){r&&f({event_id:"click_vote_widget",event_type:"click",spec_attrs:{timestamp:Date.now()}})}function x(){r&&r.interactionCore.getSocket().then(y=>{y&&y.on("connect",()=>{b()})})}return{getVotedList:v,getVoteList:b,toVote:h,setupSocketListener:x}}function gq(e){const{resultShowType:r}=e,t=c.ref([]),i=c.ref([]),o=c.ref([]),n=c.ref(!1),a=c.ref(0),s=c.computed(()=>i.value.length),l=c.computed(()=>r===3&&a.value===0&&o.value.length===0),p=c.computed(()=>r===2||r===3&&(a.value>0||i.value.length>0));function u(d){const m=t.value.findIndex(f=>f.id===d);return[m,t.value[m]]}return{list:t,curVotedList:i,cacheVotedList:o,isVotedWithLimit:n,voteCount:a,isForceHideResult:l,isForceShowResult:p,votedCount:s,findVoteById:u}}const wq=()=>({voteTarget:w.object(),layout:w.oneOf(["single","double"]).def("single"),voteList:w.array(),maxVote:w.number.def(0),showHeader:w.bool.def(!0),showRule:w.bool.def(!0),resultShowType:w.number.def(0)}),bq=()=>({"to-show":()=>!0,"to-hide":()=>!0,"show-entrance":q()}),_q=e=>{var h,_,x,y,k,C,S;const{props:r,emit:t}=e,{getEmitter:i}=Ti(),{voteTarget:o={}}=r,n=gq({resultShowType:r.resultShowType}),a=vq({voteTarget:o,state:n,onShowEntrance:L=>t("show-entrance",L)}),{updateVotedList:s,onVoteStart:l,onVoteStop:p,onVoteResult:u,onVoteDeleteAll:d,onVoteDelete:m,onVoteChangeOrder:f}=hq({state:n,onShow:()=>t("to-show"),onGetVoteList:()=>a.getVoteList()});function v(){i().emit(mq.OpenVoteRule)}function g(L){if(n.curVotedList.value.indexOf(L)!==-1||n.isVotedWithLimit.value)return!1;const Q=Number(r.maxVote)||0;return Q>0?n.votedCount.value<Q:!0}function b(){r.voteList&&r.voteList.length>0||(a.setupSocketListener(),a.getVoteList(),a.getVotedList())}return OZ(o.eventEmitter,{[(h=o.VoteEvent)==null?void 0:h.UpdateVotedList]:s,[(_=o.VoteEvent)==null?void 0:_.Start]:l,[(x=o.VoteEvent)==null?void 0:x.Stop]:p,[(y=o.VoteEvent)==null?void 0:y.VoteResult]:u,[(k=o.VoteEvent)==null?void 0:k.DeleteAll]:d,[(C=o.VoteEvent)==null?void 0:C.Delete]:m,[(S=o.VoteEvent)==null?void 0:S.UpdateVoteOrder]:f}),c.onMounted(()=>{r.voteTarget&&b()}),c.watch(()=>r.voteTarget,L=>{L&&b()},{immediate:!0}),c.watch(()=>r.voteList,L=>{L!=null&&(n.list.value=[...L])},{immediate:!0,deep:!0}),{list:n.list,curVotedList:n.curVotedList,handleToVote:a.toVote,handleRule:v,isItemClickable:g}},xq=c.defineComponent({__name:"vote-list",props:wq(),emits:bq(),setup(e,{emit:r}){const t=e,{$t:i}=qi(),{list:o,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l}=_q({props:t,emit:r});return{__sfc:!0,$t:i,props:t,emit:r,list:o,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l,PwcEmpty:To,VoteItemSingle:lq,VoteItemDouble:fq}}});var yq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-vote"},[i.list.length?t("div",{staticClass:"plv-iar-vote__container"},[r.showHeader?t("div",{staticClass:"plv-iar-vote__container__header"},[t("span",[r._v(r._s(i.$t("vote.option")))]),i.props.showRule?t("span",{class:{"plv-iar-vote__container__header__rule--no-pointer":i.props.voteList&&i.props.voteList.length>0},on:{click:i.handleRule}},[r._v(r._s(i.$t("vote.rule")))]):r._e()]):r._e(),t("div",{staticClass:"plv-iar-vote__list",class:{"plv-iar-vote__list--single":r.layout==="single","plv-iar-vote__list--double":r.layout==="double"}},r._l(i.list,function(o){return t(r.layout==="single"?i.VoteItemSingle:i.VoteItemDouble,{key:o.id,tag:"component",attrs:{"vote-data":o,"voted-list":i.curVotedList,clickable:i.isItemClickable(o.id),"has-vote-list":!!(i.props.voteList&&i.props.voteList.length>0)},on:{"to-vote":i.handleToVote}})}),1)]):t("div",{staticClass:"plv-iar-vote__no-data"},[t(i.PwcEmpty)],1)])},Cq=[],kq=Xo(xq,yq,Cq,!1,null,null);return kq.exports});console.log("%c@polyv/iar-vote-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.7.0-rc-20260716.1]","[buildTime: 2026-07-16 06:02:40]");
|
|
1289
|
+
}`}],staticClass:"pwc-menu-item__content",class:{"is-active":t.isActive&&!t.menuItemProps.iconMode,"is-icon-mode":t.menuItemProps.iconMode},on:{click:t.onClickItem}},[t.hasSlot("icon")||t.menuIcon?r("div",{staticClass:"pwc-menu-item__icon"},[t.hasSlot("icon")?[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("icon",{isActive:t.isActive})}})]:[r(t.menuIcon,{tag:"component"})]],2):e._e(),t.menuItemProps.iconMode?e._e():r("div",{directives:[{name:"show",rawName:"v-show",value:!t.menuProps.collapsed||t.inSubMenuPopper,expression:"!menuProps.collapsed || inSubMenuPopper"}],staticClass:"pwc-menu-item__title"},[t.hasSlot("title")?[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("title")}})]:[e._v(" "+e._s(t.menuItemProps.title)+" ")]],2)])},EW=[],MW=j(TW,QW,EW);const IW=MW.exports,AW=c.defineComponent({__name:"menu-item",props:lW(),setup(e){const r=e,{receiveRouterSlotData:t}=PW({props:r});return{__sfc:!0,props:r,receiveRouterSlotData:t,MenuItemContent:IW}}});var zW=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return t.props.to?r("router-link",{tag:"component",attrs:{to:e.to,custom:""},scopedSlots:e._u([{key:"default",fn:function(i){return[r("a",e._b({staticClass:"pwc-menu-item",attrs:{href:i.href}},"a",t.receiveRouterSlotData(i),!1),[r(t.MenuItemContent)],1)]}}],null,!1,4189994726)}):e.href?r("a",{staticClass:"pwc-menu-item",attrs:{href:e.href}},[r(t.MenuItemContent)],1):r("div",{staticClass:"pwc-menu-item"},[r(t.MenuItemContent)],1)},DW=[],RW=j(AW,zW,DW);const OW=RW.exports,VW={};var BW=function(){var e=this;return e._self._c,e._m(0)},FW=[function(){var e=this,r=e._self._c;return r("div",{staticClass:"pwc-menu-divider"},[r("div")])}],jW=j(VW,BW,FW);const NW=jW.exports;ee("PwcMenu",mW),ee("PwcSubMenu",SW),ee("PwcMenuItem",OW),ee("PwcMenuDivider",NW);const UW=12,WW=16,Ko={"top-right":[],"top-left":[],"bottom-right":[],"bottom-left":[]};function Pf(e,r){const t=Ko[e];let i=WW;for(let o=0;o<r;o++)i+=t[o].height+UW;return i}function Tf(e){const r=Ko[e];for(let t=0;t<r.length;t++)r[t].offsetRef.value=Pf(e,t)}const Qa={add(e,r,t){const i=Ko[e],o=i.length,n={id:r,height:0,offsetRef:t};i.push(n),t.value=Pf(e,o)},updateHeight(e,r,t){const i=Ko[e].find(o=>o.id===r);i&&i.height!==t&&(i.height=t,Tf(e))},remove(e,r){const t=Ko[e],i=t.findIndex(o=>o.id===r);i!==-1&&(t.splice(i,1),Tf(e))}};let HW=0;const ZW=e=>{const{position:r,duration:t}=e,{destroyCurrentInstance:i}=So(),o=++HW,n=c.ref(!1),a=c.ref(0);Qa.add(r,o,a);const{startTimeout:s,closeTimeout:l}=ei(()=>{u()},t);function p(){n.value=!0,t>0&&s()}function u(){n.value=!1,l()}function d(){Qa.remove(r,o),i()}function m(f){Qa.updateHeight(r,o,f)}return c.onBeforeUnmount(()=>{Qa.remove(r,o)}),{visible:n,offsetPx:a,open:p,close:u,onAfterLeave:d,updateHeight:m}};w.object().def({}),w.enum().def(Mt.Info);const qW=()=>X(R(R({},el()),f2()),{trigger:w.oneOf(Zn).def("click"),placement:w.oneOf(Ei).def("top"),feedbackType:w.enum().def(Mt.Warning),concise:w.bool.def(!1)}),YW=()=>X(R(R({},he()),Gu()),{show:q(),hide:q()}),GW=c.defineComponent({__name:"popconfirm",props:qW(),emits:YW(),setup(e,{emit:r}){const t=e,{modelValue:i,updateModelValue:o}=de(t),{buttonData:n,onClickConfirm:a,onClickCancel:s}=Xu({props:t,emit:r,afterConfirm:()=>{var m;(m=d.value)==null||m.hidePopper()},afterCancel:()=>{var m;(m=d.value)==null||m.hidePopper()}});function l(){i.value||o(!0),r("show")}function p(){i.value&&o(!1),r("hide")}const u=c.computed(()=>{if(!t.concise)return t.feedbackType}),d=c.ref();return{__sfc:!0,props:t,emit:r,modelValue:i,updateModelValue:o,buttonData:n,onClickConfirm:a,onClickCancel:s,onShow:l,onHide:p,popoverFeedbackType:u,popoverRef:d,PwcButton:Ne,PwcPopover:m2}}});var KW=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r(t.PwcPopover,e._b({ref:"popoverRef",staticClass:"pwc-popconfirm",attrs:{trigger:e.trigger,placement:e.placement,"feedback-type":t.popoverFeedbackType},on:{show:t.onShow,hide:t.onHide},scopedSlots:e._u([{key:"reference",fn:function(){return[e._t("default")]},proxy:!0},{key:"default",fn:function(){return[r("div",{staticClass:"pwc-popconfirm__content"},[e.concise?e._e():e._t("content",function(){return[e._v(e._s(e.content))]}),r("div",{staticClass:"pwc-popconfirm__content__btns",class:{"is-concise":e.concise}},[t.buttonData.showCancelButton?r(t.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:t.onClickCancel}},"pwc-button",t.buttonData.cancelButtonProps,!1)):e._e(),t.buttonData.showConfirmButton?r(t.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:t.onClickConfirm}},"pwc-button",t.buttonData.confirmButtonProps,!1)):e._e()],1)],2)]},proxy:!0}],null,!0)},"pwc-popover",t.props,!1))},XW=[],JW=j(GW,KW,XW);const $W=JW.exports;ee("PwcPopconfirm",$W);var nt=(e=>(e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.TopLeft="top-left",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomRight="bottom-right",e))(nt||{});function eH(e,r){const t=c.ref((()=>{try{const i=localStorage.getItem(e);if(i)return JSON.parse(i)}catch(i){}return r})());return c.watch(t,i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){}},{deep:!0}),t}const tH=()=>({width:w.number.def(0),height:w.number.def(0),minWidth:w.number.def(50),minHeight:w.number.def(50),maxWidth:w.number.def(1/0),maxHeight:w.number.def(1/0),disabled:w.bool.def(!1),handleSize:w.number.def(8),showHandles:w.oneOfType([Boolean,Array]).def(!0),storageKey:w.string.def("")}),rH=()=>({"resize-start":q(),resize:q(),"resize-end":q()}),iH=e=>{const{props:r,emit:t}=e,i=c.ref(),o=c.ref(!1),n=c.ref(null),a=c.ref({x:0,y:0}),s=c.ref({width:0,height:0}),l={width:r.width,height:r.height},p=r.storageKey?eH(r.storageKey,l):c.ref(l),u=(y,k,C)=>Math.max(k,Math.min(C,y)),d=y=>({width:y.width===void 0?void 0:u(y.width,r.minWidth,r.maxWidth),height:y.height===void 0?void 0:u(y.height,r.minHeight,r.maxHeight)}),m=y=>{var C,S;const k=d(y);return{width:(C=k.width)!=null?C:p.value.width,height:(S=k.height)!=null?S:p.value.height}},f=y=>{p.value=m(y)},v=()=>({width:p.value.width,height:p.value.height}),g=c.computed(()=>{const y={};return(r.width||p.value.width)&&(y.width=p.value.width+"px"),(r.height||p.value.height)&&(y.height=p.value.height+"px"),y}),b=y=>r.showHandles===!1||Array.isArray(r.showHandles)&&!r.showHandles.includes(y)?!1:[nt.Top,nt.Bottom].includes(y)?!!r.height:[nt.Left,nt.Right].includes(y)?!!r.width:!!r.width&&!!r.height,h=(y,k)=>{r.disabled||(y.preventDefault(),y.stopPropagation(),o.value=!0,n.value=k,a.value={x:y.clientX,y:y.clientY},s.value=R({},p.value),t("resize-start",{width:p.value.width,height:p.value.height,direction:k,event:y}))},_=y=>{if(!o.value||!n.value)return;const k=y.clientX-a.value.x,C=y.clientY-a.value.y,S={};switch(n.value){case nt.Right:S.width=s.value.width+k;break;case nt.Bottom:S.height=s.value.height+C;break;case nt.Left:S.width=s.value.width-k;break;case nt.Top:S.height=s.value.height-C;break;case nt.TopRight:S.width=s.value.width+k,S.height=s.value.height-C;break;case nt.TopLeft:S.width=s.value.width-k,S.height=s.value.height-C;break;case nt.BottomRight:S.width=s.value.width+k,S.height=s.value.height+C;break;case nt.BottomLeft:S.width=s.value.width-k,S.height=s.value.height+C;break}const{width:L,height:T}=m(S);p.value={width:L,height:T},t("resize",{width:L,height:T,direction:n.value,event:y})},x=y=>{if(!o.value||!n.value)return;o.value=!1;const k=n.value;n.value=null,t("resize-end",{width:p.value.width,height:p.value.height,direction:k,event:y})};return c.onMounted(()=>{document.addEventListener("mousemove",_),document.addEventListener("mouseup",x)}),c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",x)}),{boxStyle:g,containerRef:i,currentSize:p,isResizing:o,showHandleControl:b,handleMouseDown:h,setSize:f,getSize:v}};tH(),rH();const oH=()=>({title:w.looseString,titleTooltip:w.looseString}),nH=c.defineComponent({__name:"section",props:oH(),setup(e){const r=e,{hasSlot:t,slotRender:i}=xe(),o=c.computed(()=>t("title-tooltip")||r.titleTooltip);return{__sfc:!0,props:r,hasSlot:t,slotRender:i,hasTitleTooltip:o,PwcTooltip:Yn,renderSlot:ut}}});var aH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("section",{staticClass:"pwc-section"},[t.hasSlot("title")||e.title?r("div",{staticClass:"pwc-section__title"},[e._t("title",function(){return[e._v(e._s(e.title))]}),t.hasTitleTooltip?[r(t.PwcTooltip,{attrs:{content:e.titleTooltip},scopedSlots:e._u([t.hasSlot("title-tooltip")?{key:"content",fn:function(){return[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("title-tooltip")}})]},proxy:!0}:null],null,!0)})]:e._e()],2):e._e(),r("div",{staticClass:"pwc-section__content"},[e._t("default")],2)])},sH=[],lH=j(nH,aH,sH);const cH=lH.exports;ee("PwcSection",cH);const pH=()=>({[w.modelValueKey]:w.oneOfType([Number,Array]).def(0),min:w.number.def(0),max:w.number.def(100),disabled:w.bool.def(!1),showTooltip:w.bool.def(!1),range:w.bool.def(!1),step:w.number.def(1),showStops:w.bool.def(!1),showSliderButton:w.bool.def(!0),marks:w.object(),cssRotateAngle:w.oneOf([0,90,180,270]).def(0),progressBarVisible:w.bool.def(!0),hotAreaHeight:w.number.def(4),sliderBarHeight:w.looseNumber,sliderBarBg:w.string.def(""),buttonSize:w.number.def(14)}),uH=()=>X(R({},he()),{change:q()}),Qf=Symbol("slider-inject-key"),dH=e=>{const{props:r,emit:t}=e,{modelValue:i,updateModelValue:o}=de(r,{outSideUpdate:()=>{S()}}),n=c.ref(0),a=c.ref(0),s=c.ref(!1),l=c.ref(void 0),p=c.ref(),{width:u}=Oe(p),d=c.ref(),m=c.ref(),f=c.ref(),v=c.computed(()=>Math.min(n.value,a.value)),g=c.computed(()=>Math.max(n.value,a.value)),b=c.computed(()=>r.range?`${100*(g.value-v.value)/(r.max-r.min)}%`:`${100*(n.value-r.min)/(r.max-r.min)}%`),h=c.computed(()=>r.range?`${100*(v.value-r.min)/(r.max-r.min)}%`:"0%"),_=c.computed(()=>X(R({},x.value),{width:b.value,left:h.value})),x=c.computed(()=>{const D={};return r.sliderBarHeight&&(D.height=`${r.sliderBarHeight}px`,D.borderRadius=`${r.sliderBarHeight/2}px`),D}),y=c.computed(()=>{const D=R({},x.value);return r.sliderBarBg&&(D.background=r.sliderBarBg),D}),k=c.computed(()=>{const D=[],A=r.max-r.min,M=E=>{D.includes(E)||D.push(E)};if(r.step&&r.showStops){const E=A/r.step,I=r.step/A;for(let V=1;V<E;V++){const O=Math.round(V*I*100);M(O)}}return r.marks&&Object.keys(r.marks).forEach(E=>{const I=Number(E);if(I>=r.min&&I<=r.max){const V=(I-r.min)/A,O=Math.round(V*100);M(O)}}),D}),C=c.computed(()=>{const D=[],A=r.max-r.min;return r.marks&&Object.keys(r.marks).forEach(M=>{const E=Number(M),I=r.marks[E];let V="",O={};if(typeof I=="string"?V=I:(V=I.label,O=I.style||{}),E>=r.min&&E<=r.max){const W=(E-r.min)/A,B=Math.round(W*100);D.push({label:V,style:O,left:B,value:E})}}),D});function S(){r.range?Array.isArray(i.value)?(n.value=Math.max(r.min,i.value[0]),a.value=Math.min(r.max,i.value[1])):(n.value=r.min,a.value=r.max):typeof i.value!="number"||isNaN(i.value)?n.value=r.min:n.value=Math.min(r.max,Math.max(r.min,i.value))}function L(){let D=i.value;r.range?D=[Math.floor(v.value),Math.floor(g.value)]:D=Math.floor(n.value),D!==i.value&&(l.value=i.value,o(D))}function T(){c.nextTick(()=>{t("change",r.range?[v.value,g.value]:i.value)})}function Q(D){var E;if(!r.range){(E=m.value)==null||E.setPosition(D);return}let A;const M=r.min+D*(r.max-r.min)/100;Math.abs(v.value-M)<Math.abs(g.value-M)?A=n.value<a.value?m.value:f.value:A=n.value>a.value?m.value:f.value,A==null||A.setPosition(D)}function P(D){var A,M;if(!(r.disabled||s.value)){if(r.cssRotateAngle===90){const E=((A=d.value)==null?void 0:A.getBoundingClientRect().top)||0;Q((D.clientY-E)/u.value*100)}else{const E=((M=d.value)==null?void 0:M.getBoundingClientRect().left)||0;Q((D.clientX-E)/u.value*100)}T()}}function z(D){Q(D.left),T()}return c.onMounted(()=>{S()}),c.provide(Qf,{sliderProps:r,sliderWidth:u,dragging:s,emitChange:T}),{modelValue:i,firstValue:n,secondValue:a,dragging:s,sliderRef:p,sliderClickRef:d,button1Ref:m,button2Ref:f,barStyle:_,runwayStyle:y,stops:k,markList:C,onSliderClick:P,onClickMark:z,emitInnerInput:L}},Ef=()=>c.inject(Qf),fH=()=>({value:w.number}),mH=()=>({change:q()}),hH=e=>{const{props:r,emit:t}=e,{sliderProps:i,sliderWidth:o,emitChange:n}=Ef(),a=c.ref(!1),s=c.ref(!1),l=c.ref(!1),p=c.ref(0),u=c.ref(0),d=c.ref(null),m=c.computed(()=>`${(r.value-i.min)/(i.max-i.min)*100}%`),f=c.computed(()=>({left:m.value}));function v(L){let T,Q;switch("touches"in L?(T=L.touches[0].clientX,Q=L.touches[0].clientY):(T=L.clientX,Q=L.clientY),i.cssRotateAngle){case 90:return{clientX:Q,clientY:T};case 180:return{clientX:-T,clientY:-Q};case 270:return{clientX:-Q,clientY:T}}return{clientX:T,clientY:Q}}function g(){i.disabled||(a.value=!0)}function b(){i.disabled||(a.value=!1)}function h(L){if(i.disabled)return;s.value=!0,l.value=!0;const T=v(L);p.value=T.clientX,u.value=parseFloat(m.value),d.value=u.value}function _(L){if(!i.disabled&&s.value){l.value=!1;const T=(v(L).clientX-p.value)/o.value*100;d.value=u.value+T,S(d.value)}}function x(){i.disabled||ue||s.value&&setTimeout(()=>{s.value=!1,l.value||(S(d.value),n())},0)}function y(L){i.disabled||ue||(h(L),window.addEventListener("mousemove",_),window.addEventListener("touchmove",_),window.addEventListener("mouseup",x),window.addEventListener("touchend",x),window.addEventListener("contextmenu",x))}function k(){window.removeEventListener("mousemove",_),window.removeEventListener("touchmove",_),window.removeEventListener("mouseup",x),window.removeEventListener("touchend",x),window.removeEventListener("contextmenu",x)}c.onBeforeUnmount(()=>{k()});function C(L){let T=L;return i.step&&(T=Math.round(L/i.step)*i.step),T<i.min&&(T=i.min),T>i.max&&(T=i.max),T}function S(L){if(L===null||isNaN(L))return;L<0?L=0:L>100&&(L=100);const T=(i.max-i.min)*(L/100),Q=i.min+T;t("change",C(Q))}return{hovering:a,dragging:s,btnStyle:f,handleMouseEnter:g,handleMouseLeave:b,onButtonDown:y,setPosition:S}},vH={name:"PlvSliderButton"},gH=c.defineComponent(X(R({},vH),{props:fH(),emits:mH(),setup(e,{expose:r,emit:t}){const i=e,o=Ef(),{sliderProps:n}=o,{hovering:a,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=hH({props:i,emit:t}),f=c.computed(()=>s.value||o.dragging.value||!1);return r({setPosition:m}),{__sfc:!0,props:i,emit:t,sliderInject:o,sliderProps:n,hovering:a,buttonDragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m,dragging:f}}}));var wH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-slider__button",style:t.btnStyle,on:{mouseenter:t.handleMouseEnter,mouseleave:t.handleMouseLeave,mousedown:t.onButtonDown,touchstart:t.onButtonDown}},[r("div",{class:["pwc-slider__button__inner",t.hovering||t.dragging?"pwc-slider__button__inner--hover":"",t.sliderProps.disabled?"pwc-slider__button__inner--disabled":""],style:{width:`${t.sliderProps.buttonSize}px`,height:`${t.sliderProps.buttonSize}px`}})])},bH=[],_H=j(gH,wH,bH);const xH=_H.exports,yH=c.defineComponent({__name:"slider",props:pH(),emits:uH(),setup(e,{emit:r}){const t=e,{firstValue:i,secondValue:o,sliderRef:n,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:v,emitInnerInput:g}=dH({props:t,emit:r});function b(_){i.value=_,g()}function h(_){o.value=_,g()}return{__sfc:!0,props:t,emit:r,firstValue:i,secondValue:o,sliderRef:n,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:v,emitInnerInput:g,onFirstValueChange:b,onSecondValueChange:h,SliderButton:xH}}});var CH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-slider"},[r("div",{ref:"sliderRef",class:["pwc-slider__runway",t.props.disabled?"pwc-slider__runway--disabled":""],style:t.runwayStyle},[t.props.progressBarVisible?r("div",{staticClass:"pwc-slider__runway__bar",style:t.barStyle}):e._e(),r("div",{ref:"sliderClickRef",staticClass:"pwc-slider__runway__click",style:{height:`${t.props.hotAreaHeight}px`},on:{click:t.onSliderClick}}),e._l(t.stops,function(i){return r("div",{key:`dot-${i}`,staticClass:"pwc-slider__runway__dot",style:{left:`${i}%`}})}),t.props.showSliderButton?r(t.SliderButton,{ref:"button1Ref",attrs:{value:t.firstValue},on:{change:t.onFirstValueChange}}):e._e(),t.props.range&&t.props.showSliderButton?r(t.SliderButton,{ref:"button2Ref",attrs:{value:t.secondValue},on:{change:t.onSecondValueChange}}):e._e()],2),t.markList.length?r("div",{staticClass:"pwc-slider__marks"},e._l(t.markList,function(i,o){return r("div",{key:`mark-${o}`,staticClass:"pwc-slider__marks__item",style:R({left:`${i.left}%`},i.style),on:{click:function(n){return t.onClickMark(i)}}},[e._v(" "+e._s(i.label)+" ")])}),0):e._e()])},kH=[],LH=j(yH,CH,kH);const SH=LH.exports;ee("PwcSlider",SH);const PH=["horizontal","vertical"],TH=["mini","small","medium","large"],QH={mini:4,small:8,medium:16,large:24},EH=()=>({direction:w.oneOf(PH).def("horizontal"),size:w.oneOfType([w.oneOf(TH),Number]).def("small"),wrap:w.bool.def(!1)}),MH=c.defineComponent({__name:"space",props:EH(),setup(e){const r=e,t=c.computed(()=>[`is-${r.direction}`,{"is-wrap":r.wrap}]),i=c.computed(()=>({gap:`${typeof r.size=="number"?r.size:QH[r.size]}px`}));return{__sfc:!0,props:r,spaceClass:t,spaceStyle:i}}});var IH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-space",class:t.spaceClass,style:t.spaceStyle},[e._t("default")],2)},AH=[],zH=j(MH,IH,AH);const DH=zH.exports;ee("PwcSpace",DH);const RH=["horizontal","vertical"],OH=()=>({direction:w.oneOf(RH).def("horizontal"),lazy:w.bool.def(!1)}),VH=()=>({min:w.looseNumber,max:w.looseNumber,initialSize:w.looseNumber}),Mf=Symbol("SPLITTER_INJECT_KEY"),BH=c.defineComponent({__name:"splitter",props:OH(),setup(e){const r=e,t=c.ref(),i=c.ref([]),o=c.ref([]),{width:n,height:a}=Oe(t),s=c.computed(()=>r.direction==="horizontal"),l=()=>{if(!t.value||i.value.length===0)return;const C=s.value?t.value.clientWidth:t.value.clientHeight;let S=0;const L=i.value.map(P=>P.props.initialSize!==void 0?(S+=P.props.initialSize,!0):!1),T=L.filter(P=>!P).length,Q=T>0?(C-S)/T:0;o.value=i.value.map((P,z)=>L[z]?P.props.initialSize:Q)};c.watch(()=>{const C=s.value?n.value:a.value;return`${r.direction}-${C}`},(C,S)=>{const L=Number(C.split("-").pop()),T=S?Number(S.split("-").pop()):0;if(L===0)return;if(o.value.length===0||o.value.every(z=>z===0)){l();return}if(f.value||T===0||T===L)return;const Q=o.value.reduce((z,D)=>z+D,0);if(Q===0)return;const P=o.value.map(z=>z/Q);o.value=P.map((z,D)=>{var I,V;const A=i.value[D],M=(I=A==null?void 0:A.props.min)!=null?I:0,E=(V=A==null?void 0:A.props.max)!=null?V:1/0;return Math.max(M,Math.min(E,z*L))})});const p=C=>{i.value.push(C),c.nextTick(l)},u=C=>{const S=i.value.findIndex(L=>L.id===C);S>=0&&(i.value.splice(S,1),o.value.splice(S,1))},d=C=>{const S=i.value.findIndex(T=>T.id===C),L=o.value[S];return L===void 0?{}:s.value?{width:`${L}px`,flexShrink:"0"}:{height:`${L}px`,flexShrink:"0"}},m=C=>{var S;return((S=i.value[i.value.length-1])==null?void 0:S.id)===C},f=c.ref(!1),v=c.ref(""),g=c.ref(0),b=c.ref([]),h=c.ref([]),_=c.computed(()=>{var L,T;if(!f.value||!r.lazy)return-1;const C=i.value.findIndex(Q=>Q.id===v.value);if(C<0)return-1;let S=0;for(let Q=0;Q<=C;Q++)S+=(T=(L=h.value[Q])!=null?L:o.value[Q])!=null?T:0;return S}),x=(C,S)=>{S.preventDefault(),f.value=!0,v.value=C,g.value=s.value?S.clientX:S.clientY,b.value=[...o.value],h.value=[...o.value],document.addEventListener("mousemove",y),document.addEventListener("mouseup",k)},y=C=>{var V,O,W,B;if(!f.value)return;const S=(s.value?C.clientX:C.clientY)-g.value,L=i.value.findIndex(F=>F.id===v.value);if(L<0||L>=i.value.length-1)return;const T=i.value[L],Q=i.value[L+1],P=b.value[L]+b.value[L+1],z=(V=T.props.min)!=null?V:0,D=(O=T.props.max)!=null?O:1/0,A=(W=Q.props.min)!=null?W:0,M=(B=Q.props.max)!=null?B:1/0;let E=Math.max(z,Math.min(D,b.value[L]+S)),I=P-E;if(I<A&&(I=A,E=P-I),I>M&&(I=M,E=P-I),E=Math.max(z,Math.min(D,E)),r.lazy){const F=[...b.value];F[L]=E,F[L+1]=I,h.value=F}else{const F=[...o.value];F[L]=E,F[L+1]=I,o.value=F}},k=()=>{r.lazy&&(o.value=[...h.value]),f.value=!1,v.value="",document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",k)};return c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",k)}),c.provide(Mf,{direction:c.computed(()=>r.direction),registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,onDividerMouseDown:x}),{__sfc:!0,props:r,containerRef:t,panels:i,sizes:o,containerWidth:n,containerHeight:a,isHorizontal:s,initSizes:l,registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,isDragging:f,draggingId:v,startPos:g,startSizes:b,pendingSizes:h,lazyPreviewPos:_,onDividerMouseDown:x,onMouseMove:y,onMouseUp:k}}});var FH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{ref:"containerRef",staticClass:"pwc-splitter",class:[`pwc-splitter--${t.props.direction}`,{"is-dragging":t.isDragging}]},[e._t("default"),t.isDragging&&t.props.lazy&&t.lazyPreviewPos>=0?r("div",{staticClass:"pwc-splitter__lazy-preview",class:[`pwc-splitter__lazy-preview--${t.props.direction}`],style:t.isHorizontal?{left:`${t.lazyPreviewPos}px`}:{top:`${t.lazyPreviewPos}px`}}):e._e()],2)},jH=[],NH=j(BH,FH,jH);const UH=NH.exports,WH=c.defineComponent({__name:"splitter-panel",props:VH(),setup(e){const r=e,t=`splitter-panel-${Math.random().toString(36).slice(2)}`,i=c.inject(Mf),o=c.computed(()=>{var l;return(l=i==null?void 0:i.direction.value)!=null?l:"horizontal"}),n=c.computed(()=>{var l;return(l=i==null?void 0:i.isLastPanel(t))!=null?l:!1}),a=c.computed(()=>{var l;return(l=i==null?void 0:i.getPanelStyle(t))!=null?l:{}}),s=l=>{i==null||i.onDividerMouseDown(t,l)};return c.onMounted(()=>{i==null||i.registerPanel({id:t,props:r})}),c.onBeforeUnmount(()=>{i==null||i.unregisterPanel(t)}),{__sfc:!0,props:r,panelId:t,splitter:i,direction:o,isLast:n,panelStyle:a,handleDividerMouseDown:s}}});var HH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-splitter-panel",style:t.panelStyle},[r("div",{staticClass:"pwc-splitter-panel__content"},[e._t("default")],2),t.isLast?e._e():r("div",{staticClass:"pwc-splitter__divider",class:[`pwc-splitter__divider--${t.direction}`],on:{mousedown:t.handleDividerMouseDown}},[r("span",{staticClass:"pwc-splitter__divider-bar"})])])},ZH=[],qH=j(WH,HH,ZH);const YH=qH.exports;ee("PwcSplitter",UH),ee("PwcSplitterPanel",YH);const GH=()=>({max:w.number.def(3)}),KH=()=>({label:w.looseString,disabled:w.bool.def(!1)}),XH=()=>({click:q()}),If=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),JH=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(If,{}),{__sfc:!0,PwcButton:Ne,PwcIconMore:du,PwcDropdown:FD,PwcDropdownMenu:jD}}});var $H=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r(t.PwcDropdown,{staticClass:"pwc-table-operation-dropdown",scopedSlots:e._u([{key:"dropdown",fn:function(){return[r(t.PwcDropdownMenu,[e._t("default")],2)]},proxy:!0}],null,!0)},[r(t.PwcButton,{attrs:{link:""}},[r("div",{staticClass:"pwc-table-operation-dropdown__icon"},[r(t.PwcIconMore)],1)])],1)},eZ=[],tZ=j(JH,$H,eZ);const rZ=tZ.exports;function iZ(e){const r=e;if(typeof r.text=="string")return r.text;if(typeof r.children=="string")return r.children}function oZ(e){const r=iZ(e);return typeof r=="string"&&r.trim()===""}function nZ(e){return!Ae.isCommentVNode(e)&&!oZ(e)}const aZ=c.defineComponent({props:GH(),setup(e){const r=c.useSlots(),t=c.inject(Vl,void 0),i=ar(8),o=c.ref();function n(){if(t)return t.allRenderColumnList.value.find(a=>a.columnProps.type==="operation")}return Oe(o,({width:a})=>{const s=n();s&&s.setOperationWidthRecord(i,a)}),c.onBeforeUnmount(()=>{const a=n();a&&a.removeOperationWidthRecord(i)}),()=>{var m;let a=(m=r.default)==null?void 0:m.call(r);if(!a)return c.h("span",{},"-");a=a.filter(nZ);let s=0;const l=[],p=[],u=a.length;u===0&&l.push(c.h("span",{},"-")),a.forEach(f=>{u<=e.max||s<e.max-1?(l.push(f),s++):p.push(f)}),p.length>0&&l.push(c.h(rZ,{},bo()?{default:()=>p}:p));const d=["pwc-table-operation"];return u===0&&d.push("is-empty"),c.h("div",{class:d},[c.h("div",{class:"pwc-table-operation__content",ref:o},l)])}}}),sZ=c.defineComponent({__name:"table-operation-item",props:KH(),emits:XH(),setup(e,{emit:r}){const t=e,i=c.useAttrs(),o=c.inject(If,void 0);function n(s){t.disabled||r("click",s)}const a=c.computed(()=>"href"in i?"a":"div");return{__sfc:!0,props:t,emit:r,attrs:i,dropdownInject:o,onClickItem:n,dropdownItemTag:a,PwcButton:Ne,PwcDropdownItem:ND}}});var lZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return t.dropdownInject?r(t.PwcDropdownItem,{staticClass:"pwc-table-operation-item",attrs:{disabled:e.disabled,tag:t.dropdownItemTag},nativeOn:{click:function(i){return t.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2):r(t.PwcButton,{staticClass:"pwc-table-operation-item",attrs:{link:"",disabled:e.disabled},nativeOn:{click:function(i){return t.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2)},cZ=[],pZ=j(sZ,lZ,cZ);const uZ=pZ.exports;ee("PwcTableOperation",aZ),ee("PwcTableOperationItem",uZ);const dZ=["line","rounded","text"],fZ=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(dZ).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),mZ=()=>X(R({},he()),{change:q()}),hZ=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),vc=Symbol("tabs-inject-key"),vZ=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:r,tabsProps:t,setCurrentTab:i}=c.inject(vc),{$t:o}=ne(),n=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=ft();function p(){return K(this,null,function*(){if(yield c.nextTick(),!n.value||ue)return;const d=n.value.querySelector(".pwc-tab-nav__item");if(!d)return;const m=d.clientHeight;n.value.clientHeight>=m*1.5||n.value.scrollWidth>n.value.clientWidth?a.value=!0:a.value=!1})}c.watch(()=>r.value.length,()=>{p()},{immediate:!0});function u(d){d.paneProps.disabled||i(d.getPaneName())}return{__sfc:!0,tabPanes:r,tabsProps:t,setCurrentTab:i,$t:o,listRef:n,isMoreItem:a,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:dr,PwcIconUp:Ns,renderSlot:ut}}});var gZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-tab-nav",class:[`is-type-${t.tabsProps.type}`]},[r("div",{ref:"listRef",staticClass:"pwc-tab-nav__list",class:{"is-hide":t.tabsProps.expand&&!t.isExpanded}},e._l(t.tabPanes,function(i){return r("div",{key:i.paneId,staticClass:"pwc-tab-nav__item",class:{"is-active":i.getIsActive(),"is-disabled":i.paneProps.disabled},on:{click:function(o){return t.onClickItem(i)}}},[i.hasSlot("title")?r(t.renderSlot,{staticClass:"pwc-tab-nav__item__title",attrs:{"slot-func":i.getTitleRenderSlot}}):r("span",[e._v(e._s(i.paneProps.title))]),i.hasSlot("extra")?r(t.renderSlot,{staticClass:"pwc-tab-nav__item__extra",attrs:{"slot-func":i.getExtraRenderSlot}}):e._e(),i.paneProps.extra?r("span",{staticClass:"pwc-tab-nav__item__extra"},[e._v(" "+e._s(i.paneProps.extra)+" ")]):e._e()],1)}),0),r("div",{staticClass:"pwc-tab-nav__right"},[t.tabsProps.expand&&t.isMoreItem?r("div",{staticClass:"pwc-tab-nav__expand",on:{click:t.toggle}},[r("span",[e._v(e._s(t.isExpanded?t.$t("tabs.collapse"):t.$t("tabs.more")))]),t.isExpanded?r(t.PwcIconUp):r(t.PwcIconDown)],1):e._e()])])},wZ=[],bZ=j(vZ,gZ,wZ);const _Z=bZ.exports,xZ=c.defineComponent({__name:"tabs",props:fZ(),emits:mZ(),setup(e,{emit:r}){const t=e,i=c.ref(),o=c.ref(),{modelValue:n,updateModelValue:a}=de(t,{outSideUpdate:v=>{i.value=v}}),s=c.ref([]);function l(v){if(!s.value.includes(v)){if(typeof i.value>"u")if(typeof n.value>"u"){const g=v.getPaneName();u(g,!1)}else u(n.value,!1);s.value.push(v)}}function p(v){s.value=s.value.filter(g=>g!==v)}function u(v,g=!0){i.value!==v&&(i.value=v,a(v),g&&r("change",v))}const d=c.ref(0);function m(){return K(this,null,function*(){var b;yield c.nextTick();const v=((b=o.value)==null?void 0:b.querySelectorAll("[data-pane-name]"))||[];let g=0;for(let h=0;h<v.length;h++)if(v[h].getAttribute("data-is-active")==="true"){g=h*100;break}d.value=g})}c.watch(()=>i.value,()=>{m()});const f={tabsProps:t,currentTab:i,tabPanes:s,setCurrentTab:u,addTabPane:l,removeTabPane:p};return c.provide(vc,f),{__sfc:!0,props:t,emits:r,currentTab:i,tabsRef:o,modelValue:n,updateModelValue:a,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:_Z}}});var yZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{ref:"tabsRef",staticClass:"pwc-tabs"},[r(t.TabNav),r("div",{staticClass:"pwc-tabs__content"},[r("div",{staticClass:"pwc-tabs__list",style:{marginLeft:`-${t.offsetPercent}%`}},[e._t("default")],2)])],1)},CZ=[],kZ=j(xZ,yZ,CZ);const LZ=kZ.exports,SZ=c.defineComponent({__name:"tab-pane",props:hZ(),setup(e){const r=e,t=ar(8),i=c.inject(vc),{hasSlot:o,slotRender:n}=xe(),a=c.computed(()=>r.name||t),s=c.computed(()=>i.currentTab.value===a.value);function l(){return n("title",{isActive:s.value})}const p=c.computed(()=>{var f;return(f=r.lazyLoad)!=null?f:i.tabsProps.lazyLoad}),u=c.ref(!1);c.watch(s,()=>{s.value&&(u.value=!0)});const d=c.computed(()=>p.value?u.value:!0),m={paneId:t,paneProps:r,getPaneName:()=>a.value,getIsActive:()=>s.value,hasSlot:o,getTitleRenderSlot:l,getExtraRenderSlot:()=>n("extra")};return c.onBeforeMount(()=>{i.addTabPane(m)}),{__sfc:!0,props:r,paneId:t,tabsInject:i,hasSlot:o,slotRender:n,tabPaneName:a,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var PZ=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-tab-pane",class:{"is-active":t.isActive},attrs:{"data-pane-name":t.tabPaneName,"data-is-active":t.isActive}},[t.canRender?r("div",{staticClass:"pwc-tab-pane__content"},[e._t("default")],2):e._e()])},TZ=[],QZ=j(SZ,PZ,TZ);const EZ=QZ.exports;ee("PwcTabs",LZ),ee("PwcTabPane",EZ);var Af={},MZ,IZ;function AZ(e,r,t,n){var o=0,n=n===void 0?{}:n,a=n.loop===void 0?null:n.loop,s=n.palette===void 0?null:n.palette;if(r<=0||t<=0||r>65535||t>65535)throw new Error("Width/Height invalid.");function l(b){var h=b.length;if(h<2||h>256||h&h-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return h}e[o++]=71,e[o++]=73,e[o++]=70,e[o++]=56,e[o++]=57,e[o++]=97;var p=0,u=0;if(s!==null){for(var d=l(s);d>>=1;)++p;if(d=1<<p,--p,n.background!==void 0){if(u=n.background,u>=d)throw new Error("Background index out of range.");if(u===0)throw new Error("Background index explicitly passed as 0.")}}if(e[o++]=r&255,e[o++]=r>>8&255,e[o++]=t&255,e[o++]=t>>8&255,e[o++]=(s!==null?128:0)|p,e[o++]=u,e[o++]=0,s!==null)for(var m=0,f=s.length;m<f;++m){var v=s[m];e[o++]=v>>16&255,e[o++]=v>>8&255,e[o++]=v&255}if(a!==null){if(a<0||a>65535)throw new Error("Loop count invalid.");e[o++]=33,e[o++]=255,e[o++]=11,e[o++]=78,e[o++]=69,e[o++]=84,e[o++]=83,e[o++]=67,e[o++]=65,e[o++]=80,e[o++]=69,e[o++]=50,e[o++]=46,e[o++]=48,e[o++]=3,e[o++]=1,e[o++]=a&255,e[o++]=a>>8&255,e[o++]=0}var g=!1;this.addFrame=function(b,h,_,x,y,k){if(g===!0&&(--o,g=!1),k=k===void 0?{}:k,b<0||h<0||b>65535||h>65535)throw new Error("x/y invalid.");if(_<=0||x<=0||_>65535||x>65535)throw new Error("Width/Height invalid.");if(y.length<_*x)throw new Error("Not enough pixels for the frame size.");var C=!0,S=k.palette;if(S==null&&(C=!1,S=s),S==null)throw new Error("Must supply either a local or global palette.");for(var L=l(S),T=0;L>>=1;)++T;L=1<<T;var Q=k.delay===void 0?0:k.delay,P=k.disposal===void 0?0:k.disposal;if(P<0||P>3)throw new Error("Disposal out of range.");var z=!1,D=0;if(k.transparent!==void 0&&k.transparent!==null&&(z=!0,D=k.transparent,D<0||D>=L))throw new Error("Transparent color index.");if((P!==0||z||Q!==0)&&(e[o++]=33,e[o++]=249,e[o++]=4,e[o++]=P<<2|(z===!0?1:0),e[o++]=Q&255,e[o++]=Q>>8&255,e[o++]=D,e[o++]=0),e[o++]=44,e[o++]=b&255,e[o++]=b>>8&255,e[o++]=h&255,e[o++]=h>>8&255,e[o++]=_&255,e[o++]=_>>8&255,e[o++]=x&255,e[o++]=x>>8&255,e[o++]=C===!0?128|T-1:0,C===!0)for(var A=0,M=S.length;A<M;++A){var E=S[A];e[o++]=E>>16&255,e[o++]=E>>8&255,e[o++]=E&255}return o=zZ(e,o,T<2?2:T,y),o},this.end=function(){return g===!1&&(e[o++]=59,g=!0),o},this.getOutputBuffer=function(){return e},this.setOutputBuffer=function(b){e=b},this.getOutputBufferPosition=function(){return o},this.setOutputBufferPosition=function(b){o=b}}function zZ(e,r,t,i){e[r++]=t;var o=r++,n=1<<t,a=n-1,s=n+1,l=s+1,p=t+1,u=0,d=0;function m(k){for(;u>=k;)e[r++]=d&255,d>>=8,u-=8,r===o+256&&(e[o]=255,o=r++)}function f(k){d|=k<<u,u+=p,m(8)}var v=i[0]&a,g={};f(n);for(var b=1,h=i.length;b<h;++b){var _=i[b]&a,x=v<<8|_,y=g[x];if(y===void 0){for(d|=v<<u,u+=p;u>=8;)e[r++]=d&255,d>>=8,u-=8,r===o+256&&(e[o]=255,o=r++);l===4096?(f(n),l=s+1,p=t+1,g={}):(l>=1<<p&&++p,g[x]=l++),v=_}else v=y}return f(v),f(s),m(1),o+1===r?e[o]=0:(e[o]=r-o-1,e[r++]=0),r}function DZ(e){var r=0;if(e[r++]!==71||e[r++]!==73||e[r++]!==70||e[r++]!==56||(e[r++]+1&253)!==56||e[r++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=e[r++]|e[r++]<<8,i=e[r++]|e[r++]<<8,o=e[r++],n=o>>7,a=o&7,s=1<<a+1;e[r++],e[r++];var l=null,p=null;n&&(l=r,p=s,r+=s*3);var u=!0,d=[],m=0,f=null,v=0,g=null;for(this.width=t,this.height=i;u&&r<e.length;)switch(e[r++]){case 33:switch(e[r++]){case 255:if(e[r]!==11||e[r+1]==78&&e[r+2]==69&&e[r+3]==84&&e[r+4]==83&&e[r+5]==67&&e[r+6]==65&&e[r+7]==80&&e[r+8]==69&&e[r+9]==50&&e[r+10]==46&&e[r+11]==48&&e[r+12]==3&&e[r+13]==1&&e[r+16]==0)r+=14,g=e[r++]|e[r++]<<8,r++;else for(r+=12;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}break;case 249:if(e[r++]!==4||e[r+4]!==0)throw new Error("Invalid graphics extension block.");var h=e[r++];m=e[r++]|e[r++]<<8,f=e[r++],h&1||(f=null),v=h>>2&7,r++;break;case 254:for(;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}break;default:throw new Error("Unknown graphic control label: 0x"+e[r-1].toString(16))}break;case 44:var _=e[r++]|e[r++]<<8,x=e[r++]|e[r++]<<8,y=e[r++]|e[r++]<<8,k=e[r++]|e[r++]<<8,C=e[r++],S=C>>7,L=C>>6&1,T=C&7,Q=1<<T+1,P=l,z=p,D=!1;if(S){var D=!0;P=r,z=Q,r+=Q*3}var A=r;for(r++;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}d.push({x:_,y:x,width:y,height:k,has_local_palette:D,palette_offset:P,palette_size:z,data_offset:A,data_length:r-A,transparent_index:f,interlaced:!!L,delay:m,disposal:v});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[r-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return g},this.frameInfo=function(M){if(M<0||M>=d.length)throw new Error("Frame index out of range.");return d[M]},this.decodeAndBlitFrameBGRA=function(M,E){var I=this.frameInfo(M),V=I.width*I.height,O=new Uint8Array(V);zf(e,I.data_offset,O,V);var W=I.palette_offset,B=I.transparent_index;B===null&&(B=256);var F=I.width,H=t-F,G=F,N=(I.y*t+I.x)*4,Y=((I.y+I.height)*t+I.x)*4,J=N,ie=H*4;I.interlaced===!0&&(ie+=t*4*7);for(var U=8,te=0,fe=O.length;te<fe;++te){var we=O[te];if(G===0&&(J+=ie,G=F,J>=Y&&(ie=H*4+t*4*(U-1),J=N+(F+H)*(U<<1),U>>=1)),we===B)J+=4;else{var be=e[W+we*3],Ze=e[W+we*3+1],_t=e[W+we*3+2];E[J++]=_t,E[J++]=Ze,E[J++]=be,E[J++]=255}--G}},this.decodeAndBlitFrameRGBA=function(M,E){var I=this.frameInfo(M),V=I.width*I.height,O=new Uint8Array(V);zf(e,I.data_offset,O,V);var W=I.palette_offset,B=I.transparent_index;B===null&&(B=256);var F=I.width,H=t-F,G=F,N=(I.y*t+I.x)*4,Y=((I.y+I.height)*t+I.x)*4,J=N,ie=H*4;I.interlaced===!0&&(ie+=t*4*7);for(var U=8,te=0,fe=O.length;te<fe;++te){var we=O[te];if(G===0&&(J+=ie,G=F,J>=Y&&(ie=H*4+t*4*(U-1),J=N+(F+H)*(U<<1),U>>=1)),we===B)J+=4;else{var be=e[W+we*3],Ze=e[W+we*3+1],_t=e[W+we*3+2];E[J++]=be,E[J++]=Ze,E[J++]=_t,E[J++]=255}--G}}}function zf(e,r,t,i){for(var o=e[r++],n=1<<o,a=n+1,s=a+1,l=o+1,p=(1<<l)-1,u=0,d=0,m=0,f=e[r++],v=new Int32Array(4096),g=null;;){for(;u<16&&f!==0;)d|=e[r++]<<u,u+=8,f===1?f=e[r++]:--f;if(u<l)break;var b=d&p;if(d>>=l,u-=l,b===n){s=a+1,l=o+1,p=(1<<l)-1,g=null;continue}else if(b===a)break;for(var h=b<s?b:g,_=0,x=h;x>n;)x=v[x]>>8,++_;var y=x,k=m+_+(h!==b?1:0);if(k>i){console.log("Warning, gif stream longer than expected.");return}t[m++]=y,m+=_;var C=m;for(h!==b&&(t[m++]=y),x=h;_--;)x=v[x],t[--C]=x&255,x>>=8;g!==null&&s<4096&&(v[s++]=g<<8|y,s>=p+1&&l<12&&(++l,p=p<<1|1)),g=b}return m!==i&&console.log("Warning, gif stream shorter than expected."),t}try{IZ=Af.GifWriter=AZ,MZ=Af.GifReader=DZ}catch(e){}const RZ=e=>{const{configProviderData:r}=hr();function t(i){var o;if(r!=null&&r.trackEventCallback){r.trackEventCallback(i);return}(o=e.trackEvent)==null||o.call(e,i)}return{trackEvent:t}};function OZ(e,r,t={}){function i(){if(e)for(const n in r)r[n]&&e.on(n,r[n])}function o(){if(e)for(const n in r)r[n]&&e.off(n,r[n])}return Fn({listenEvent:i,removeEvent:o},t),{listenEvent:i,removeEvent:o}}const VZ={vote:{option:"Voting Options",rule:"Rules",ruleTitle:"Rule Description",success:"Vote successful",voted:"You have already voted",voteFailed:"Vote failed",voteLimit:"Vote limit reached",count:"votes",entrance:"Vote",listTitle:"Vote Activity",noRule:"No rules",status:{voting:"Voting",ended:"Ended"},button:{vote:"Vote",voted:"Voted",notVoted:"Not Voted"}}},BZ={vote:{option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}}},FZ={vote:{option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}}},jZ={vote:{option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}}},NZ={vote:{option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},UZ={vote:{option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},{useI18n:qi}=Yu({zh_CN:NZ,zh_TW:UZ,en:VZ,ja:BZ,ko:FZ,ru:jZ}),WZ=()=>({status:w.oneOf(["Y","N"]).def("Y"),isVoted:w.bool.isRequired,disabled:w.bool.def(!1),hasVoteList:w.bool.def(!1)}),HZ=()=>({click:q()}),ZZ=e=>{const{props:r,emit:t}=e,{$t:i}=qi(),o=c.computed(()=>r.isVoted?"voted":r.status==="N"?"not-voted":r.disabled?"disabled":"vote"),n={vote:i("vote.button.vote"),voted:i("vote.button.voted"),"not-voted":i("vote.button.notVoted"),disabled:i("vote.button.vote")},a=c.computed(()=>n[o.value]);function s(){o.value==="vote"&&t("click")}return{buttonType:o,buttonText:a,handleClick:s}},qZ=c.defineComponent({__name:"vote-button",props:WZ(),emits:HZ(),setup(e,{emit:r}){const t=e,{buttonType:i,buttonText:o,handleClick:n}=ZZ({props:t,emit:r});return{__sfc:!0,props:t,emit:r,buttonType:i,buttonText:o,handleClick:n,PwcButton:Ne}}});function Xo(e,r,t,i,o,n,a,s){var l=typeof e=="function"?e.options:e;return r&&(l.render=r,l.staticRenderFns=t,l._compiled=!0),n&&(l._scopeId="data-v-"+n),{exports:e,options:l}}var YZ=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-vote-button",class:{"plv-iar-vote-button--no-pointer":i.props.hasVoteList}},[i.buttonType==="vote"?t(i.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:i.props.disabled},on:{click:i.handleClick}},[r._v(" "+r._s(i.buttonText)+" ")]):i.buttonType==="not-voted"||i.buttonType==="disabled"?t(i.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:""}},[r._v(" "+r._s(i.buttonText)+" ")]):t(i.PwcButton,{staticClass:"plv-iar-vote-button__text",attrs:{size:"mini",disabled:i.props.status==="N"||i.props.disabled}},[r._v(" "+r._s(i.buttonText)+" ")])],1)},GZ=[],KZ=Xo(qZ,YZ,GZ,!1,null,"80252ec7");const Df=KZ.exports,XZ=()=>({status:w.oneOf(["Y","N"]).def("Y")}),JZ=()=>({}),$Z=e=>{const{props:r}=e,{$t:t}=qi();return{statusText:c.computed(()=>r.status==="Y"?t("vote.status.voting"):t("vote.status.ended"))}},eq=c.defineComponent({__name:"vote-status",props:XZ(),emits:JZ(),setup(e,{emit:r}){const t=e,{statusText:i}=$Z({props:t});return{__sfc:!0,props:t,emit:r,statusText:i}}});var tq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-vote-status",class:{"plv-iar-vote-status--voting":r.status==="Y","plv-iar-vote-status--ended":r.status==="N"}},[r._v(" "+r._s(i.statusText)+" ")])},rq=[],iq=Xo(eq,tq,rq,!1,null,"b5328d28");const Rf=iq.exports,Of=()=>({voteData:w.object().isRequired,votedList:w.array().def([]),layout:w.oneOf(["single","double"]).def("single"),clickable:w.bool.def(!0),hasVoteList:w.bool.def(!1)}),Vf=()=>({"to-vote":q()}),Bf=e=>{const{props:r,emit:t,itemRef:i}=e,o=c.ref({gridRowEnd:"auto"}),n=c.computed(()=>r.votedList.includes(r.voteData.id)),a=c.computed(()=>!r.clickable);function s(){a.value||t("to-vote",r.voteData.id)}return{isVoted:n,isDisabled:a,gridRowEndStyle:o,handleVote:s}},oq=c.defineComponent({__name:"vote-item-single",props:Of(),emits:Vf(),setup(e,{emit:r}){const t=e,{$t:i}=qi(),{isVoted:o,isDisabled:n,handleVote:a}=Bf({props:t,emit:r});return{__sfc:!0,$t:i,props:t,emit:r,isVoted:o,isDisabled:n,handleVote:a,VoteButton:Df,VoteStatus:Rf}}});var nq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-single",class:{"plv-iar-vote-list-item-image":!!r.voteData.voteCoverImage,"plv-iar-vote-list-item-no-image":!r.voteData.voteCoverImage}},[r.voteData.voteCoverImage?[t("div",{staticClass:"plv-iar-vote-list-item-bg"},[t("div",{staticClass:"plv-iar-vote-list-item-bg-image",style:{backgroundImage:`url(${r.voteData.voteCoverImage})`}}),t("div",{staticClass:"plv-iar-vote-list-item-bg-mask"})])]:r._e(),t("div",{staticClass:"plv-iar-vote-list-item-content"},[t("div",{staticClass:"plv-iar-vote-list-item-content-info"},[t("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top"},[r.voteData.status?t(i.VoteStatus,{staticClass:"plv-iar-vote-list-item-content-info-left-top-item",attrs:{status:r.voteData.status}}):r._e(),r.voteData.showVoteCount?t("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top-item plv-iar-vote-list-item-content-info-count"},[r._v(" "+r._s(r.voteData.voteCount||0)+" "+r._s(i.$t("vote.count"))+" ")]):r._e()],1),t("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[r._v(r._s(r.voteData.name))])]),t(i.VoteButton,{attrs:{status:r.voteData.status,"is-voted":i.isVoted,disabled:i.isDisabled,"has-vote-list":i.props.hasVoteList},on:{click:i.handleVote}})],1)],2)},aq=[],sq=Xo(oq,nq,aq,!1,null,"c2bb97a3");const lq=sq.exports,cq=c.defineComponent({__name:"vote-item-double",props:Of(),emits:Vf(),setup(e,{expose:r,emit:t}){const i=e,{$t:o}=qi(),n=c.ref(),{isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p}=Bf({props:i,emit:t,itemRef:n});let u=null;const d=12;function m(g=d){if(!n.value)return;const b=n.value.offsetHeight;if(b>0){const h=Math.ceil(b/g);l.value={gridRowEnd:`span ${h}`}}}function f(){n.value&&(u&&(u.disconnect(),u=null),u=new wp(()=>{m(d)}),u.observe(n.value),m(d))}function v(){u&&(u.disconnect(),u=null)}return c.watch(n,g=>{v(),g&&f()},{immediate:!0}),c.onBeforeUnmount(()=>{v()}),r({calculateGridRowEnd:m,itemRef:n}),{__sfc:!0,$t:o,props:i,emit:t,itemRef:n,isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p,resizeObserver:u,GAP:d,calculateGridRowEnd:m,setupResizeObserver:f,cleanupResizeObserver:v,VoteButton:Df,VoteStatus:Rf}}});var pq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{ref:"itemRef",staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-double",style:i.gridRowEndStyle},[t("div",{staticClass:"plv-iar-vote-list-item-content-container"},[r.voteData.voteCoverImage?[t("div",{staticClass:"plv-iar-vote-list-item-image",style:{backgroundImage:`url(${r.voteData.voteCoverImage})`}},[t("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[r.voteData.status?t(i.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-image-status",attrs:{status:r.voteData.status}}):r._e(),r.voteData.showVoteCount?t("div",{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-content-info-count"},[r._v(" "+r._s(r.voteData.voteCount||0)+" "+r._s(i.$t("vote.count"))+" ")]):r._e()],1)])]:r._e(),t("div",{staticClass:"plv-iar-vote-list-item-content"},[t("div",{staticClass:"plv-iar-vote-list-item-content-info"},[r.voteData.voteCoverImage?r._e():t("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[r.voteData.status?t(i.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item",attrs:{status:r.voteData.status}}):r._e(),r.voteData.showVoteCount?t("div",{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-content-info-count"},[r._v(" "+r._s(r.voteData.voteCount||0)+" "+r._s(i.$t("vote.count"))+" ")]):r._e()],1),t("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[r._v(r._s(r.voteData.name))])]),t(i.VoteButton,{attrs:{status:r.voteData.status,"is-voted":i.isVoted,disabled:i.isDisabled,"has-vote-list":i.props.hasVoteList},on:{click:i.handleVote}})],1)],2)])},uq=[],dq=Xo(cq,pq,uq,!1,null,"7ae37e2b");const fq=dq.exports,mq={OpenVoteRule:"OpenVoteRule"};function hq(e){const{state:r,onShow:t,onGetVoteList:i}=e,{list:o,curVotedList:n,cacheVotedList:a,voteCount:s,isForceHideResult:l,isForceShowResult:p,findVoteById:u}=r;function d(_){n.value=_.curVotedList}function m(_){const x=_.voteData.id,y=u(x)[0];y!==-1&&o.value.splice(y,1);const k=n.value.findIndex(T=>T===x);k!==-1&&n.value.splice(k,1);const C=a.value.findIndex(T=>T===x);C!==-1&&a.value.splice(C,1);const S=_.voteData.voteOrder||0;let L=o.value.length;for(let T=0;T<o.value.length;T++)if((o.value[T].voteOrder||0)>=S){L=T;break}p.value&&(_.voteData.showVoteCount=!0,_.voteData.voteCount=0),o.value.splice(L,0,_.voteData),t()}function f(_){const x=u(_.id)[1];x&&(x.status="N")}function v(_){s.value=_.voteCount,_.list.forEach(x=>{const y=u(x.id)[1];y&&(y.showVoteCount=!l.value,y.voteCount=x.times)})}function g(){o.value.splice(0,o.value.length)}function b(_){const x=u(_.id)[0];x!==-1&&o.value.splice(x,1)}function h(_){const x=Math.floor(Math.random()*3e3);setTimeout(()=>{i()},x)}return{updateVotedList:d,onVoteStart:m,onVoteStop:f,onVoteResult:v,onVoteDeleteAll:g,onVoteDelete:b,onVoteChangeOrder:h}}function vq(e){const{voteTarget:r,state:t,onShowEntrance:i}=e,{list:o,curVotedList:n,cacheVotedList:a,isVotedWithLimit:s,voteCount:l,isForceHideResult:p,findVoteById:u}=t,{toast:d}=br(),{$t:m}=qi(),{trackEvent:f}=RZ((r==null?void 0:r.interactionCore)||{});function v(){return K(this,null,function*(){r&&(n.value=r.getVotedList())})}function g(){return K(this,null,function*(){if(!r)return;const y=yield r.getVoteList();if(y&&y.code===200&&y.data){o.value=y.data.list,o.value.length>0&&i(!0);const k=r.getCachedVoteResult();k&&k.forEach(C=>{const S=u(C.id)[1];S&&(S.showVoteCount=!p.value,S.voteCount=C.times)})}})}const b=ws(g,1e3);function h(y){return K(this,null,function*(){if(r&&a.value.indexOf(y)===-1){a.value.push(y);const k=yield r.toVote(y);if(k.code===200)r.pushVotedList(y),d.success(m("vote.success"));else if(k.code===506)d.info(m("vote.voted")),r.pushVotedList(y);else{k.code===501?(s.value=!0,d.error(m("vote.voteLimit"))):d.error(k.message||m("vote.voteFailed"));const C=a.value.indexOf(y);C!==-1&&a.value.splice(C,1)}_()}})}function _(){r&&f({event_id:"click_vote_widget",event_type:"click",spec_attrs:{timestamp:Date.now()}})}function x(){r&&r.interactionCore.getSocket().then(y=>{y&&y.on("connect",()=>{b()})})}return{getVotedList:v,getVoteList:b,toVote:h,setupSocketListener:x}}function gq(e){const{resultShowType:r}=e,t=c.ref([]),i=c.ref([]),o=c.ref([]),n=c.ref(!1),a=c.ref(0),s=c.computed(()=>i.value.length),l=c.computed(()=>r===3&&a.value===0&&o.value.length===0),p=c.computed(()=>r===2||r===3&&(a.value>0||i.value.length>0));function u(d){const m=t.value.findIndex(f=>f.id===d);return[m,t.value[m]]}return{list:t,curVotedList:i,cacheVotedList:o,isVotedWithLimit:n,voteCount:a,isForceHideResult:l,isForceShowResult:p,votedCount:s,findVoteById:u}}const wq=()=>({voteTarget:w.object(),layout:w.oneOf(["single","double"]).def("single"),voteList:w.array(),maxVote:w.number.def(0),showHeader:w.bool.def(!0),showRule:w.bool.def(!0),resultShowType:w.number.def(0)}),bq=()=>({"to-show":()=>!0,"to-hide":()=>!0,"show-entrance":q()}),_q=e=>{var h,_,x,y,k,C,S;const{props:r,emit:t}=e,{getEmitter:i}=Ti(),{voteTarget:o={}}=r,n=gq({resultShowType:r.resultShowType}),a=vq({voteTarget:o,state:n,onShowEntrance:L=>t("show-entrance",L)}),{updateVotedList:s,onVoteStart:l,onVoteStop:p,onVoteResult:u,onVoteDeleteAll:d,onVoteDelete:m,onVoteChangeOrder:f}=hq({state:n,onShow:()=>t("to-show"),onGetVoteList:()=>a.getVoteList()});function v(){i().emit(mq.OpenVoteRule)}function g(L){if(n.curVotedList.value.indexOf(L)!==-1||n.isVotedWithLimit.value)return!1;const Q=Number(r.maxVote)||0;return Q>0?n.votedCount.value<Q:!0}function b(){r.voteList&&r.voteList.length>0||(a.setupSocketListener(),a.getVoteList(),a.getVotedList())}return OZ(o.eventEmitter,{[(h=o.VoteEvent)==null?void 0:h.UpdateVotedList]:s,[(_=o.VoteEvent)==null?void 0:_.Start]:l,[(x=o.VoteEvent)==null?void 0:x.Stop]:p,[(y=o.VoteEvent)==null?void 0:y.VoteResult]:u,[(k=o.VoteEvent)==null?void 0:k.DeleteAll]:d,[(C=o.VoteEvent)==null?void 0:C.Delete]:m,[(S=o.VoteEvent)==null?void 0:S.UpdateVoteOrder]:f}),c.onMounted(()=>{r.voteTarget&&b()}),c.watch(()=>r.voteTarget,L=>{L&&b()},{immediate:!0}),c.watch(()=>r.voteList,L=>{L!=null&&(n.list.value=[...L])},{immediate:!0,deep:!0}),{list:n.list,curVotedList:n.curVotedList,handleToVote:a.toVote,handleRule:v,isItemClickable:g}},xq=c.defineComponent({__name:"vote-list",props:wq(),emits:bq(),setup(e,{emit:r}){const t=e,{$t:i}=qi(),{list:o,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l}=_q({props:t,emit:r});return{__sfc:!0,$t:i,props:t,emit:r,list:o,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l,PwcEmpty:To,VoteItemSingle:lq,VoteItemDouble:fq}}});var yq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-vote"},[i.list.length?t("div",{staticClass:"plv-iar-vote__container"},[r.showHeader?t("div",{staticClass:"plv-iar-vote__container__header"},[t("span",[r._v(r._s(i.$t("vote.option")))]),i.props.showRule?t("span",{class:{"plv-iar-vote__container__header__rule--no-pointer":i.props.voteList&&i.props.voteList.length>0},on:{click:i.handleRule}},[r._v(r._s(i.$t("vote.rule")))]):r._e()]):r._e(),t("div",{staticClass:"plv-iar-vote__list",class:{"plv-iar-vote__list--single":r.layout==="single","plv-iar-vote__list--double":r.layout==="double"}},r._l(i.list,function(o){return t(r.layout==="single"?i.VoteItemSingle:i.VoteItemDouble,{key:o.id,tag:"component",attrs:{"vote-data":o,"voted-list":i.curVotedList,clickable:i.isItemClickable(o.id),"has-vote-list":!!(i.props.voteList&&i.props.voteList.length>0)},on:{"to-vote":i.handleToVote}})}),1)]):t("div",{staticClass:"plv-iar-vote__no-data"},[t(i.PwcEmpty)],1)])},Cq=[],kq=Xo(xq,yq,Cq,!1,null,null);return kq.exports});console.log("%c@polyv/iar-vote-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.7.0]","[buildTime: 2026-07-17 02:01:10]");
|