@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 CHANGED
@@ -37227,8 +37227,8 @@ const Dq = xq.exports;
37227
37227
  console.log(
37228
37228
  "%c@polyv/iar-vote-ui",
37229
37229
  "background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
37230
- "[version: 2.7.0-rc-20260716.1]",
37231
- "[buildTime: 2026-07-16 06:02:31]"
37230
+ "[version: 2.7.0]",
37231
+ "[buildTime: 2026-07-17 02:01:00]"
37232
37232
  );
37233
37233
  export {
37234
37234
  tq as VoteList,
package/index.umd.js CHANGED
@@ -1286,4 +1286,4 @@ ${rn(t)}`),i}})}function u3(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)])},IW=[],zW=j(MW,AW,IW);const DW=zW.exports,RW=c.defineComponent({__name:"menu-item",props:uW(),setup(e){const r=e,{receiveRouterSlotData:t}=EW({props:r});return{__sfc:!0,props:r,receiveRouterSlotData:t,MenuItemContent:DW}}});var OW=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)},VW=[],BW=j(RW,OW,VW);const FW=BW.exports,jW={};var NW=function(){var e=this;return e._self._c,e._m(0)},UW=[function(){var e=this,r=e._self._c;return r("div",{staticClass:"pwc-menu-divider"},[r("div")])}],WW=j(jW,NW,UW);const HW=WW.exports;ee("PwcMenu",gW),ee("PwcSubMenu",QW),ee("PwcMenuItem",FW),ee("PwcMenuDivider",HW);const ZW=12,qW=16,$o={"top-right":[],"top-left":[],"bottom-right":[],"bottom-left":[]};function Qf(e,r){const t=$o[e];let i=qW;for(let o=0;o<r;o++)i+=t[o].height+ZW;return i}function Ef(e){const r=$o[e];for(let t=0;t<r.length;t++)r[t].offsetRef.value=Qf(e,t)}const Aa={add(e,r,t){const i=$o[e],o=i.length,n={id:r,height:0,offsetRef:t};i.push(n),t.value=Qf(e,o)},updateHeight(e,r,t){const i=$o[e].find(o=>o.id===r);i&&i.height!==t&&(i.height=t,Ef(e))},remove(e,r){const t=$o[e],i=t.findIndex(o=>o.id===r);i!==-1&&(t.splice(i,1),Ef(e))}};let YW=0;const GW=e=>{const{position:r,duration:t}=e,{destroyCurrentInstance:i}=Qo(),o=++YW,n=c.ref(!1),a=c.ref(0);Aa.add(r,o,a);const{startTimeout:s,closeTimeout:l}=ni(()=>{u()},t);function p(){n.value=!0,t>0&&s()}function u(){n.value=!1,l()}function d(){Aa.remove(r,o),i()}function m(f){Aa.updateHeight(r,o,f)}return c.onBeforeUnmount(()=>{Aa.remove(r,o)}),{visible:n,offsetPx:a,open:p,close:u,onAfterLeave:d,updateHeight:m}};w.object().def({}),w.enum().def(Mt.Info);const KW=()=>X(R(R({},il()),h2()),{trigger:w.oneOf(Gn).def("click"),placement:w.oneOf(Ai).def("top"),feedbackType:w.enum().def(Mt.Warning),concise:w.bool.def(!1)}),XW=()=>X(R(R({},ve()),Xu()),{show:q(),hide:q()}),JW=c.defineComponent({__name:"popconfirm",props:KW(),emits:XW(),setup(e,{emit:r}){const t=e,{modelValue:i,updateModelValue:o}=fe(t),{buttonData:n,onClickConfirm:a,onClickCancel:s}=$u({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:je,PwcPopover:v2}}});var $W=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))},eH=[],tH=j(JW,$W,eH);const rH=tH.exports;ee("PwcPopconfirm",rH);var at=(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))(at||{});function iH(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 oH=()=>({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("")}),nH=()=>({"resize-start":q(),resize:q(),"resize-end":q()}),aH=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?iH(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:[at.Top,at.Bottom].includes(y)?!!r.height:[at.Left,at.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 at.Right:S.width=s.value.width+k;break;case at.Bottom:S.height=s.value.height+C;break;case at.Left:S.width=s.value.width-k;break;case at.Top:S.height=s.value.height-C;break;case at.TopRight:S.width=s.value.width+k,S.height=s.value.height-C;break;case at.TopLeft:S.width=s.value.width-k,S.height=s.value.height-C;break;case at.BottomRight:S.width=s.value.width+k,S.height=s.value.height+C;break;case at.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}};oH(),nH();const sH=()=>({title:w.looseString,titleTooltip:w.looseString}),lH=c.defineComponent({__name:"section",props:sH(),setup(e){const r=e,{hasSlot:t,slotRender:i}=ye(),o=c.computed(()=>t("title-tooltip")||r.titleTooltip);return{__sfc:!0,props:r,hasSlot:t,slotRender:i,hasTitleTooltip:o,PwcTooltip:Xn,renderSlot:dt}}});var cH=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)])},pH=[],uH=j(lH,cH,pH);const dH=uH.exports;ee("PwcSection",dH);const fH=()=>({[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)}),mH=()=>X(R({},ve()),{change:q()}),Mf=Symbol("slider-inject-key"),hH=e=>{const{props:r,emit:t}=e,{modelValue:i,updateModelValue:o}=fe(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}=Re(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=[],I=r.max-r.min,M=E=>{D.includes(E)||D.push(E)};if(r.step&&r.showStops){const E=I/r.step,A=r.step/I;for(let V=1;V<E;V++){const O=Math.round(V*A*100);M(O)}}return r.marks&&Object.keys(r.marks).forEach(E=>{const A=Number(E);if(A>=r.min&&A<=r.max){const V=(A-r.min)/I,O=Math.round(V*100);M(O)}}),D}),C=c.computed(()=>{const D=[],I=r.max-r.min;return r.marks&&Object.keys(r.marks).forEach(M=>{const E=Number(M),A=r.marks[E];let V="",O={};if(typeof A=="string"?V=A:(V=A.label,O=A.style||{}),E>=r.min&&E<=r.max){const W=(E-r.min)/I,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 I;const M=r.min+D*(r.max-r.min)/100;Math.abs(v.value-M)<Math.abs(g.value-M)?I=n.value<a.value?m.value:f.value:I=n.value>a.value?m.value:f.value,I==null||I.setPosition(D)}function P(D){var I,M;if(!(r.disabled||s.value)){if(r.cssRotateAngle===90){const E=((I=d.value)==null?void 0:I.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(Mf,{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}},Af=()=>c.inject(Mf),vH=()=>({value:w.number}),gH=()=>({change:q()}),wH=e=>{const{props:r,emit:t}=e,{sliderProps:i,sliderWidth:o,emitChange:n}=Af(),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||de||s.value&&setTimeout(()=>{s.value=!1,l.value||(S(d.value),n())},0)}function y(L){i.disabled||de||(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}},bH={name:"PlvSliderButton"},_H=c.defineComponent(X(R({},bH),{props:vH(),emits:gH(),setup(e,{expose:r,emit:t}){const i=e,o=Af(),{sliderProps:n}=o,{hovering:a,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=wH({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 xH=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`}})])},yH=[],CH=j(_H,xH,yH);const kH=CH.exports,LH=c.defineComponent({__name:"slider",props:fH(),emits:mH(),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}=hH({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:kH}}});var SH=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()])},PH=[],TH=j(LH,SH,PH);const QH=TH.exports;ee("PwcSlider",QH);const EH=["horizontal","vertical"],MH=["mini","small","medium","large"],AH={mini:4,small:8,medium:16,large:24},IH=()=>({direction:w.oneOf(EH).def("horizontal"),size:w.oneOfType([w.oneOf(MH),Number]).def("small"),wrap:w.bool.def(!1)}),zH=c.defineComponent({__name:"space",props:IH(),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:AH[r.size]}px`}));return{__sfc:!0,props:r,spaceClass:t,spaceStyle:i}}});var DH=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)},RH=[],OH=j(zH,DH,RH);const VH=OH.exports;ee("PwcSpace",VH);const BH=["horizontal","vertical"],FH=()=>({direction:w.oneOf(BH).def("horizontal"),lazy:w.bool.def(!1)}),jH=()=>({min:w.looseNumber,max:w.looseNumber,initialSize:w.looseNumber}),If=Symbol("SPLITTER_INJECT_KEY"),NH=c.defineComponent({__name:"splitter",props:FH(),setup(e){const r=e,t=c.ref(),i=c.ref([]),o=c.ref([]),{width:n,height:a}=Re(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 A,V;const I=i.value[D],M=(A=I==null?void 0:I.props.min)!=null?A:0,E=(V=I==null?void 0:I.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,I=(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)),A=P-E;if(A<I&&(A=I,E=P-A),A>M&&(A=M,E=P-A),E=Math.max(z,Math.min(D,E)),r.lazy){const F=[...b.value];F[L]=E,F[L+1]=A,h.value=F}else{const F=[...o.value];F[L]=E,F[L+1]=A,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 UH=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)},WH=[],HH=j(NH,UH,WH);const ZH=HH.exports,qH=c.defineComponent({__name:"splitter-panel",props:jH(),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 YH=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"})])])},GH=[],KH=j(qH,YH,GH);const XH=KH.exports;ee("PwcSplitter",ZH),ee("PwcSplitterPanel",XH);const JH=()=>({max:w.number.def(3)}),$H=()=>({label:w.looseString,disabled:w.bool.def(!1)}),eZ=()=>({click:q()}),zf=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),tZ=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(zf,{}),{__sfc:!0,PwcButton:je,PwcIconMore:mu,PwcDropdown:UD,PwcDropdownMenu:WD}}});var rZ=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)},iZ=[],oZ=j(tZ,rZ,iZ);const nZ=oZ.exports;function aZ(e){const r=e;if(typeof r.text=="string")return r.text;if(typeof r.children=="string")return r.children}function sZ(e){const r=aZ(e);return typeof r=="string"&&r.trim()===""}function lZ(e){return!Ae.isCommentVNode(e)&&!sZ(e)}const cZ=c.defineComponent({props:JH(),setup(e){const r=c.useSlots(),t=c.inject(jl,void 0),i=ar(8),o=c.ref();function n(){if(t)return t.allRenderColumnList.value.find(a=>a.columnProps.type==="operation")}return Re(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(lZ);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(nZ,{},yo()?{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)])}}}),pZ=c.defineComponent({__name:"table-operation-item",props:$H(),emits:eZ(),setup(e,{emit:r}){const t=e,i=c.useAttrs(),o=c.inject(zf,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:je,PwcDropdownItem:HD}}});var uZ=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)},dZ=[],fZ=j(pZ,uZ,dZ);const mZ=fZ.exports;ee("PwcTableOperation",cZ),ee("PwcTableOperationItem",mZ);const hZ=["line","rounded","text"],vZ=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(hZ).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),gZ=()=>X(R({},ve()),{change:q()}),wZ=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),bc=Symbol("tabs-inject-key"),bZ=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:r,tabsProps:t,setCurrentTab:i}=c.inject(bc),{$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||de)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:Hs,renderSlot:dt}}});var _Z=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()])])},xZ=[],yZ=j(bZ,_Z,xZ);const CZ=yZ.exports,kZ=c.defineComponent({__name:"tabs",props:vZ(),emits:gZ(),setup(e,{emit:r}){const t=e,i=c.ref(),o=c.ref(),{modelValue:n,updateModelValue:a}=fe(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(bc,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:CZ}}});var LZ=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)},SZ=[],PZ=j(kZ,LZ,SZ);const TZ=PZ.exports,QZ=c.defineComponent({__name:"tab-pane",props:wZ(),setup(e){const r=e,t=ar(8),i=c.inject(bc),{hasSlot:o,slotRender:n}=ye(),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 EZ=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()])},MZ=[],AZ=j(QZ,EZ,MZ);const IZ=AZ.exports;ee("PwcTabs",TZ),ee("PwcTabPane",IZ);var Df={},zZ,DZ;function RZ(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 I=0,M=S.length;I<M;++I){var E=S[I];e[o++]=E>>16&255,e[o++]=E>>8&255,e[o++]=E&255}return o=OZ(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 OZ(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 VZ(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 I=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:I,data_length:r-I,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 A=this.frameInfo(M),V=A.width*A.height,O=new Uint8Array(V);Rf(e,A.data_offset,O,V);var W=A.palette_offset,B=A.transparent_index;B===null&&(B=256);var F=A.width,H=t-F,G=F,N=(A.y*t+A.x)*4,Y=((A.y+A.height)*t+A.x)*4,J=N,ie=H*4;A.interlaced===!0&&(ie+=t*4*7);for(var U=8,te=0,me=O.length;te<me;++te){var be=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)),be===B)J+=4;else{var _e=e[W+be*3],He=e[W+be*3+1],xt=e[W+be*3+2];E[J++]=xt,E[J++]=He,E[J++]=_e,E[J++]=255}--G}},this.decodeAndBlitFrameRGBA=function(M,E){var A=this.frameInfo(M),V=A.width*A.height,O=new Uint8Array(V);Rf(e,A.data_offset,O,V);var W=A.palette_offset,B=A.transparent_index;B===null&&(B=256);var F=A.width,H=t-F,G=F,N=(A.y*t+A.x)*4,Y=((A.y+A.height)*t+A.x)*4,J=N,ie=H*4;A.interlaced===!0&&(ie+=t*4*7);for(var U=8,te=0,me=O.length;te<me;++te){var be=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)),be===B)J+=4;else{var _e=e[W+be*3],He=e[W+be*3+1],xt=e[W+be*3+2];E[J++]=_e,E[J++]=He,E[J++]=xt,E[J++]=255}--G}}}function Rf(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{DZ=Df.GifWriter=RZ,zZ=Df.GifReader=VZ}catch(e){}const BZ=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 FZ(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 Un({listenEvent:i,removeEvent:o},t),{listenEvent:i,removeEvent:o}}const jZ={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"}}},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:"Не проголосовано"}}},HZ={vote:{option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},ZZ={vote:{option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},{useI18n:kr}=Ku({zh_CN:HZ,zh_TW:ZZ,en:jZ,ja:NZ,ko:UZ,ru:WZ}),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}=kr(),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:je}}});function jr(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=jr(KZ,XZ,JZ,!1,null,"80252ec7");const Of=$Z.exports,eq=()=>({status:w.oneOf(["Y","N"]).def("Y")}),tq=()=>({}),rq=e=>{const{props:r}=e,{$t:t}=kr();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=jr(iq,oq,nq,!1,null,"b5328d28");const Vf=aq.exports,Bf=()=>({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)}),Ff=()=>({"to-vote":q()}),jf=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:Bf(),emits:Ff(),setup(e,{emit:r}){const t=e,{$t:i}=kr(),{isVoted:o,isDisabled:n,handleVote:a}=jf({props:t,emit:r});return{__sfc:!0,$t:i,props:t,emit:r,isVoted:o,isDisabled:n,handleVote:a,VoteButton:Of,VoteStatus:Vf}}});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=jr(sq,lq,cq,!1,null,"c2bb97a3");const uq=pq.exports,dq=c.defineComponent({__name:"vote-item-double",props:Bf(),emits:Ff(),setup(e,{expose:r,emit:t}){const i=e,{$t:o}=kr(),n=c.ref(),{isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p}=jf({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 xp(()=>{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:Of,VoteStatus:Vf}}});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=jr(dq,fq,mq,!1,null,"7ae37e2b");const vq=hq.exports,en={OpenVote:"OpenVote",OpenVoteRule:"OpenVoteRule"};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}=kr(),{trackEvent:f}=BZ((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=xs(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}=Ar(),{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(en.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 FZ(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}=kr(),{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:Mo,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=jr(Cq,kq,Lq,!1,null,null);const Nf=Sq.exports,Pq="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAaXSURBVHic7VxPbBRVHP7eTPd/SwkEKjZ2oZ4K6cZEm0YUvGiikYOxSkJa9QjSqAkX/iTogQPVQz2BcFATbI0HiRyQmlAvFa0aLrZRQ4zEFgy2NNil7G7b3Zmfh5nZnZ2dmff2f7vOl2zevJnfvPfmm9/vm/fevB2GQjAAfgCyvs1sbBoJpP8UAKv6dhbWiw8A8NW2fWsOaQArRkY2HQgBaKpPm9YUZP2XgYmggEdOHiQ9upQmfaPosJoYH+/o6e054fc1dTMmRRnQmjtK2UgmAAyUC2yCNczz7PP25ZlaDMimDHNCFAdhcXk59fXsX7dHunp7p4u8RB+AVVaK7iSX4kOhQGAQUEFQbS7YDhwbbhEidVjMiQBV+y2nVs6Et247VlwhSDMAYd2lhKAsJ7+XJClGLF18o+sFlYBVBYqiTPk2bnmqmDOlYh7jyaX40LojBwAkBgRkyLIcS87fGSriTCZM0O9TU92hQHBw3ZFjgDHALyEY9A9OXLnSIXqWcGh1RDsGIKw3axSSBEgMPT2PnRA+RdQwFAy+SEwtuW1rBrKEpiZft6i5MEFgbOO69h4DEiBJLFqEuRhy/RyDpAqlVGL+7j9gxw6Dvf2G/XHHFGCMmfps7hDvPTPrRoVSVmR+YR5s7Ctg7JKW3xmzt3dMha8YKGl4QaRVQnqlZeWLTCeugl0cBe7OaW2JdoKOvJvriYuWU1WCrHei7LxAencO7MI54Ppkrh3RTtDJD4BIRDPK2pNAXhziBGXHUCUKdTIBXDgHPPMc0BUTOEEDuzgCXBzN32mQE444j+2c8lXzIOMOlBIaDMDMn2AT48DEOLD3WdDrh7S7T5Y6jPz1SbDPzufCyYCZHGvIlBBCIpfdLGJI6ZUlolVoncUSKzs3DExc1TLhCOiVAeD5l/KNFubAvhzRiLTCTE6p0Mdl0obNLUJtriVBWJgDO3U03yt2xkB9/VrYfXMJbOxSodegQuSgmgStriwRyiQIAGZugh0fLNwfjmg6ZYdKkYPiCRLqKN7f3368YlP30U6gb6Bwfy3IMWHu5fZ+ETshggIMQoWJgvr6TR08F1SJHABoldlhETsuQTdeeGgPZSA8dhEFHTwCbGlzNqgiOQAAlWLjezZxpz24BG1uYk+rGbs54zKxpQ302kH7Y9UmB4CaIexq9e/j2XEJChL6VYWq8/rwiSeBPkv01oAcAFAVQjP40uFK0E+7t3arGYqqmepNc1DfQC7Uop2gk+9XnRzoHoQMYld63cPMtSf9cAB7SKl42wpAp88Av01pwl0DcgCAFE01Hg1JMQCzTnauHtTc3hZTMypUpQoaZEY4ooVbjciB7kGqQpDTcJ0bciXI17oRqqK7Y4MtYVAVgpohtLRtd7VzJUhuCSEYfUTzoAaDqhCCm7ZB8rm/M+WO5sOd28F8EWD+b2BDCxDwV7Kd9cH8HTTv2IlgOIJk/F9XU6HpjlDnDmBkGMzfDMgBIJME0kktzf6WTa96kUspP09DnwOhErUmmQAb3M+3YwwIhrV6ghE91fOZDPBgEcGt7cCDRW5RRbzVMG8wrRHM6TjyZ/HMmPpRuMoCzN4UNLSpmDGuiR3ECSpYZeH0ZLO+vbC0a+wLIOUwMHVD8gHYx8OCxjZ1W1eDCMpqiR6EnBc5GlpTHffmwE6/A/wx7TyCNyOZAK6Ng733FrAwX2xjTbtK86Ai56SNDdLuCNnN9Vo9zObO3ZsH+/CEvVZVBHX3oDI0SHRfWVjHGlSbt9d19yCUrkE16ZHX3YPK1CDHsiuFunuQp0GF8DSIA0+DOPA0iIMCDYKnQXko8BCnu+BpUC71NMgET4M48DSIA0+DOPA0iANPgzjwNIgDT4M48DSIA0+DOPA0iANPgzjwNKgQqop4NuNpUCHSRDPZTINq0EJCmXIryZWgO/cT32UzDahBBMS7Lv/s+kUGV4K6zv8wnSFoJDWgBqVUdoZXksS7p5O3Fg8BjadBRJi58Ovts7yCuATt/fTb2aWVzNFCDbJ40JrSILs6cpUQIX5j8f6BNyd/ibueoxPEXei74dTo2bml1AEixPM9xM0d6qlBdvWSUf3MtVsLu7s+uSzyNRjFeBYJrYn76NV9rQce39UfkZV9sprqYEoqinRCW4KnLHOW39kvyYOqh6JaweUvTAKCoewSPApGZtL+0HQC7PKmk8OjAiUYSBh+532aqxBpACvGU2yl/H/KNRQU4ztm5m+YpfVwk53P+18gDWDZyDg9U7zPBOr4D1m9Wh4sOVbJAAAAAElFTkSuQmCC",Tq=()=>({voteTarget:w.object(),isFullScreen:w.bool.def(!1),iconUrl:w.string.def(""),beforeClickInterrupt:w.func()}),Qq=()=>({"open-vote":q()}),Eq=e=>{const{props:r}=e,{getEmitter:t}=Ar();function i(){return K(this,null,function*(){r.beforeClickInterrupt&&as(r.beforeClickInterrupt)&&(yield r.beforeClickInterrupt())||t().emit(en.OpenVote)})}return{pendantIconUrl:c.computed(()=>r.iconUrl||Pq),onClickPendant:i}},Mq=c.defineComponent({__name:"vote-pendant",props:Tq(),emits:Qq(),setup(e,{emit:r}){const t=e,{$t:i}=kr(),{onClickPendant:o,pendantIconUrl:n}=Eq({props:t}),a=c.computed(()=>({backgroundImage:`url(${n.value})`}));return{__sfc:!0,props:t,emit:r,$t:i,onClickPendant:o,pendantIconUrl:n,pendantStyle:a}}});var Aq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return r.voteTarget&&!r.isFullScreen?t("div",{staticClass:"plv-iar-vote-pendant",style:i.pendantStyle,on:{click:i.onClickPendant}},[t("div",{staticClass:"plv-iar-vote-pendant__text"},[r._v(" "+r._s(i.$t("vote.entrance"))+" ")])]):r._e()},Iq=[],zq=jr(Mq,Aq,Iq,!1,null,null);const Dq=zq.exports,Rq=()=>({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)}),Oq=e=>{const{voteListRef:r}=e,t=c.ref(!1),i=c.ref(),{getEmitter:o}=Ar();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(en.OpenVoteRule)}return Ir(en.OpenVote,n),{instance:{open:n,close:a},visible:t,popupRef:i,handleToRule:s}},Vq=c.defineComponent({__name:"vote-list-popup",props:Rq(),setup(e,{expose:r}){const t=e,{$t:i}=kr(),o=c.ref(),{instance:n,visible:a,popupRef:s,handleToRule:l}=Oq({voteListRef:o});return r(n),{__sfc:!0,props:t,$t:i,voteListRef:o,instance:n,visible:a,popupRef:s,handleToRule:l,PwcPopup:tt,VoteListComponent:Nf}}});var Bq=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)])},Fq=[],jq=jr(Vq,Bq,Fq,!1,null,null);const Nq=jq.exports,Uq=()=>({ruleText:w.string.def(""),popupConfig:w.object()}),Wq=e=>{const r=c.ref(!1),t=c.ref();function i(){r.value=!0,c.nextTick(()=>{t.value&&t.value.resetScroll()})}function o(){r.value=!1}return Ir(en.OpenVoteRule,i),{instance:{open:i,close:o},visible:r,popupRef:t,close:o}},Hq=c.defineComponent({__name:"vote-rule-popup",props:Uq(),setup(e,{expose:r}){const t=e,{$t:i}=kr(),{isMobile:o}=Le(),{instance:n,visible:a,popupRef:s}=Wq();return r(n),{__sfc:!0,props:t,$t:i,isMobile:o,instance:n,visible:a,popupRef:s,PwcPopup:tt}}});var Zq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t(i.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-rule-popup",attrs:{title:i.$t("vote.ruleTitle"),"popup-config":r.popupConfig,backable:i.isMobile,background:i.isMobile?"#F7F8Fa":void 0,"body-height-percent":i.isMobile?.65:void 0},model:{value:i.visible,callback:function(o){i.visible=o},expression:"visible"}},[t("div",{staticClass:"plv-iar-vote-rule-popup__content"},[r.ruleText?t("div",{staticClass:"plv-iar-vote-rule-popup__text",domProps:{innerHTML:r._s(r.ruleText)}}):t("div",{staticClass:"plv-iar-vote-rule-popup__empty"},[r._v(" "+r._s(i.$t("vote.noRule"))+" ")])])])},qq=[],Yq=jr(Hq,Zq,qq,!1,null,null);const Gq=Yq.exports;le.VoteList=Nf,le.VoteListPopup=Nq,le.VotePendant=Dq,le.VoteRulePopup=Gq,Object.defineProperty(le,Symbol.toStringTag,{value:"Module"})});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:16]");
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)])},IW=[],zW=j(MW,AW,IW);const DW=zW.exports,RW=c.defineComponent({__name:"menu-item",props:uW(),setup(e){const r=e,{receiveRouterSlotData:t}=EW({props:r});return{__sfc:!0,props:r,receiveRouterSlotData:t,MenuItemContent:DW}}});var OW=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)},VW=[],BW=j(RW,OW,VW);const FW=BW.exports,jW={};var NW=function(){var e=this;return e._self._c,e._m(0)},UW=[function(){var e=this,r=e._self._c;return r("div",{staticClass:"pwc-menu-divider"},[r("div")])}],WW=j(jW,NW,UW);const HW=WW.exports;ee("PwcMenu",gW),ee("PwcSubMenu",QW),ee("PwcMenuItem",FW),ee("PwcMenuDivider",HW);const ZW=12,qW=16,$o={"top-right":[],"top-left":[],"bottom-right":[],"bottom-left":[]};function Qf(e,r){const t=$o[e];let i=qW;for(let o=0;o<r;o++)i+=t[o].height+ZW;return i}function Ef(e){const r=$o[e];for(let t=0;t<r.length;t++)r[t].offsetRef.value=Qf(e,t)}const Aa={add(e,r,t){const i=$o[e],o=i.length,n={id:r,height:0,offsetRef:t};i.push(n),t.value=Qf(e,o)},updateHeight(e,r,t){const i=$o[e].find(o=>o.id===r);i&&i.height!==t&&(i.height=t,Ef(e))},remove(e,r){const t=$o[e],i=t.findIndex(o=>o.id===r);i!==-1&&(t.splice(i,1),Ef(e))}};let YW=0;const GW=e=>{const{position:r,duration:t}=e,{destroyCurrentInstance:i}=Qo(),o=++YW,n=c.ref(!1),a=c.ref(0);Aa.add(r,o,a);const{startTimeout:s,closeTimeout:l}=ni(()=>{u()},t);function p(){n.value=!0,t>0&&s()}function u(){n.value=!1,l()}function d(){Aa.remove(r,o),i()}function m(f){Aa.updateHeight(r,o,f)}return c.onBeforeUnmount(()=>{Aa.remove(r,o)}),{visible:n,offsetPx:a,open:p,close:u,onAfterLeave:d,updateHeight:m}};w.object().def({}),w.enum().def(Mt.Info);const KW=()=>X(R(R({},il()),h2()),{trigger:w.oneOf(Gn).def("click"),placement:w.oneOf(Ai).def("top"),feedbackType:w.enum().def(Mt.Warning),concise:w.bool.def(!1)}),XW=()=>X(R(R({},ve()),Xu()),{show:q(),hide:q()}),JW=c.defineComponent({__name:"popconfirm",props:KW(),emits:XW(),setup(e,{emit:r}){const t=e,{modelValue:i,updateModelValue:o}=fe(t),{buttonData:n,onClickConfirm:a,onClickCancel:s}=$u({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:je,PwcPopover:v2}}});var $W=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))},eH=[],tH=j(JW,$W,eH);const rH=tH.exports;ee("PwcPopconfirm",rH);var at=(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))(at||{});function iH(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 oH=()=>({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("")}),nH=()=>({"resize-start":q(),resize:q(),"resize-end":q()}),aH=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?iH(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:[at.Top,at.Bottom].includes(y)?!!r.height:[at.Left,at.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 at.Right:S.width=s.value.width+k;break;case at.Bottom:S.height=s.value.height+C;break;case at.Left:S.width=s.value.width-k;break;case at.Top:S.height=s.value.height-C;break;case at.TopRight:S.width=s.value.width+k,S.height=s.value.height-C;break;case at.TopLeft:S.width=s.value.width-k,S.height=s.value.height-C;break;case at.BottomRight:S.width=s.value.width+k,S.height=s.value.height+C;break;case at.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}};oH(),nH();const sH=()=>({title:w.looseString,titleTooltip:w.looseString}),lH=c.defineComponent({__name:"section",props:sH(),setup(e){const r=e,{hasSlot:t,slotRender:i}=ye(),o=c.computed(()=>t("title-tooltip")||r.titleTooltip);return{__sfc:!0,props:r,hasSlot:t,slotRender:i,hasTitleTooltip:o,PwcTooltip:Xn,renderSlot:dt}}});var cH=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)])},pH=[],uH=j(lH,cH,pH);const dH=uH.exports;ee("PwcSection",dH);const fH=()=>({[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)}),mH=()=>X(R({},ve()),{change:q()}),Mf=Symbol("slider-inject-key"),hH=e=>{const{props:r,emit:t}=e,{modelValue:i,updateModelValue:o}=fe(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}=Re(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=[],I=r.max-r.min,M=E=>{D.includes(E)||D.push(E)};if(r.step&&r.showStops){const E=I/r.step,A=r.step/I;for(let V=1;V<E;V++){const O=Math.round(V*A*100);M(O)}}return r.marks&&Object.keys(r.marks).forEach(E=>{const A=Number(E);if(A>=r.min&&A<=r.max){const V=(A-r.min)/I,O=Math.round(V*100);M(O)}}),D}),C=c.computed(()=>{const D=[],I=r.max-r.min;return r.marks&&Object.keys(r.marks).forEach(M=>{const E=Number(M),A=r.marks[E];let V="",O={};if(typeof A=="string"?V=A:(V=A.label,O=A.style||{}),E>=r.min&&E<=r.max){const W=(E-r.min)/I,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 I;const M=r.min+D*(r.max-r.min)/100;Math.abs(v.value-M)<Math.abs(g.value-M)?I=n.value<a.value?m.value:f.value:I=n.value>a.value?m.value:f.value,I==null||I.setPosition(D)}function P(D){var I,M;if(!(r.disabled||s.value)){if(r.cssRotateAngle===90){const E=((I=d.value)==null?void 0:I.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(Mf,{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}},Af=()=>c.inject(Mf),vH=()=>({value:w.number}),gH=()=>({change:q()}),wH=e=>{const{props:r,emit:t}=e,{sliderProps:i,sliderWidth:o,emitChange:n}=Af(),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||de||s.value&&setTimeout(()=>{s.value=!1,l.value||(S(d.value),n())},0)}function y(L){i.disabled||de||(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}},bH={name:"PlvSliderButton"},_H=c.defineComponent(X(R({},bH),{props:vH(),emits:gH(),setup(e,{expose:r,emit:t}){const i=e,o=Af(),{sliderProps:n}=o,{hovering:a,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=wH({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 xH=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`}})])},yH=[],CH=j(_H,xH,yH);const kH=CH.exports,LH=c.defineComponent({__name:"slider",props:fH(),emits:mH(),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}=hH({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:kH}}});var SH=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()])},PH=[],TH=j(LH,SH,PH);const QH=TH.exports;ee("PwcSlider",QH);const EH=["horizontal","vertical"],MH=["mini","small","medium","large"],AH={mini:4,small:8,medium:16,large:24},IH=()=>({direction:w.oneOf(EH).def("horizontal"),size:w.oneOfType([w.oneOf(MH),Number]).def("small"),wrap:w.bool.def(!1)}),zH=c.defineComponent({__name:"space",props:IH(),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:AH[r.size]}px`}));return{__sfc:!0,props:r,spaceClass:t,spaceStyle:i}}});var DH=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)},RH=[],OH=j(zH,DH,RH);const VH=OH.exports;ee("PwcSpace",VH);const BH=["horizontal","vertical"],FH=()=>({direction:w.oneOf(BH).def("horizontal"),lazy:w.bool.def(!1)}),jH=()=>({min:w.looseNumber,max:w.looseNumber,initialSize:w.looseNumber}),If=Symbol("SPLITTER_INJECT_KEY"),NH=c.defineComponent({__name:"splitter",props:FH(),setup(e){const r=e,t=c.ref(),i=c.ref([]),o=c.ref([]),{width:n,height:a}=Re(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 A,V;const I=i.value[D],M=(A=I==null?void 0:I.props.min)!=null?A:0,E=(V=I==null?void 0:I.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,I=(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)),A=P-E;if(A<I&&(A=I,E=P-A),A>M&&(A=M,E=P-A),E=Math.max(z,Math.min(D,E)),r.lazy){const F=[...b.value];F[L]=E,F[L+1]=A,h.value=F}else{const F=[...o.value];F[L]=E,F[L+1]=A,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 UH=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)},WH=[],HH=j(NH,UH,WH);const ZH=HH.exports,qH=c.defineComponent({__name:"splitter-panel",props:jH(),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 YH=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"})])])},GH=[],KH=j(qH,YH,GH);const XH=KH.exports;ee("PwcSplitter",ZH),ee("PwcSplitterPanel",XH);const JH=()=>({max:w.number.def(3)}),$H=()=>({label:w.looseString,disabled:w.bool.def(!1)}),eZ=()=>({click:q()}),zf=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),tZ=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(zf,{}),{__sfc:!0,PwcButton:je,PwcIconMore:mu,PwcDropdown:UD,PwcDropdownMenu:WD}}});var rZ=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)},iZ=[],oZ=j(tZ,rZ,iZ);const nZ=oZ.exports;function aZ(e){const r=e;if(typeof r.text=="string")return r.text;if(typeof r.children=="string")return r.children}function sZ(e){const r=aZ(e);return typeof r=="string"&&r.trim()===""}function lZ(e){return!Ae.isCommentVNode(e)&&!sZ(e)}const cZ=c.defineComponent({props:JH(),setup(e){const r=c.useSlots(),t=c.inject(jl,void 0),i=ar(8),o=c.ref();function n(){if(t)return t.allRenderColumnList.value.find(a=>a.columnProps.type==="operation")}return Re(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(lZ);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(nZ,{},yo()?{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)])}}}),pZ=c.defineComponent({__name:"table-operation-item",props:$H(),emits:eZ(),setup(e,{emit:r}){const t=e,i=c.useAttrs(),o=c.inject(zf,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:je,PwcDropdownItem:HD}}});var uZ=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)},dZ=[],fZ=j(pZ,uZ,dZ);const mZ=fZ.exports;ee("PwcTableOperation",cZ),ee("PwcTableOperationItem",mZ);const hZ=["line","rounded","text"],vZ=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(hZ).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),gZ=()=>X(R({},ve()),{change:q()}),wZ=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),bc=Symbol("tabs-inject-key"),bZ=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:r,tabsProps:t,setCurrentTab:i}=c.inject(bc),{$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||de)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:Hs,renderSlot:dt}}});var _Z=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()])])},xZ=[],yZ=j(bZ,_Z,xZ);const CZ=yZ.exports,kZ=c.defineComponent({__name:"tabs",props:vZ(),emits:gZ(),setup(e,{emit:r}){const t=e,i=c.ref(),o=c.ref(),{modelValue:n,updateModelValue:a}=fe(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(bc,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:CZ}}});var LZ=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)},SZ=[],PZ=j(kZ,LZ,SZ);const TZ=PZ.exports,QZ=c.defineComponent({__name:"tab-pane",props:wZ(),setup(e){const r=e,t=ar(8),i=c.inject(bc),{hasSlot:o,slotRender:n}=ye(),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 EZ=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()])},MZ=[],AZ=j(QZ,EZ,MZ);const IZ=AZ.exports;ee("PwcTabs",TZ),ee("PwcTabPane",IZ);var Df={},zZ,DZ;function RZ(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 I=0,M=S.length;I<M;++I){var E=S[I];e[o++]=E>>16&255,e[o++]=E>>8&255,e[o++]=E&255}return o=OZ(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 OZ(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 VZ(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 I=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:I,data_length:r-I,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 A=this.frameInfo(M),V=A.width*A.height,O=new Uint8Array(V);Rf(e,A.data_offset,O,V);var W=A.palette_offset,B=A.transparent_index;B===null&&(B=256);var F=A.width,H=t-F,G=F,N=(A.y*t+A.x)*4,Y=((A.y+A.height)*t+A.x)*4,J=N,ie=H*4;A.interlaced===!0&&(ie+=t*4*7);for(var U=8,te=0,me=O.length;te<me;++te){var be=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)),be===B)J+=4;else{var _e=e[W+be*3],He=e[W+be*3+1],xt=e[W+be*3+2];E[J++]=xt,E[J++]=He,E[J++]=_e,E[J++]=255}--G}},this.decodeAndBlitFrameRGBA=function(M,E){var A=this.frameInfo(M),V=A.width*A.height,O=new Uint8Array(V);Rf(e,A.data_offset,O,V);var W=A.palette_offset,B=A.transparent_index;B===null&&(B=256);var F=A.width,H=t-F,G=F,N=(A.y*t+A.x)*4,Y=((A.y+A.height)*t+A.x)*4,J=N,ie=H*4;A.interlaced===!0&&(ie+=t*4*7);for(var U=8,te=0,me=O.length;te<me;++te){var be=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)),be===B)J+=4;else{var _e=e[W+be*3],He=e[W+be*3+1],xt=e[W+be*3+2];E[J++]=_e,E[J++]=He,E[J++]=xt,E[J++]=255}--G}}}function Rf(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{DZ=Df.GifWriter=RZ,zZ=Df.GifReader=VZ}catch(e){}const BZ=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 FZ(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 Un({listenEvent:i,removeEvent:o},t),{listenEvent:i,removeEvent:o}}const jZ={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"}}},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:"Не проголосовано"}}},HZ={vote:{option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},ZZ={vote:{option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},{useI18n:kr}=Ku({zh_CN:HZ,zh_TW:ZZ,en:jZ,ja:NZ,ko:UZ,ru:WZ}),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}=kr(),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:je}}});function jr(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=jr(KZ,XZ,JZ,!1,null,"80252ec7");const Of=$Z.exports,eq=()=>({status:w.oneOf(["Y","N"]).def("Y")}),tq=()=>({}),rq=e=>{const{props:r}=e,{$t:t}=kr();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=jr(iq,oq,nq,!1,null,"b5328d28");const Vf=aq.exports,Bf=()=>({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)}),Ff=()=>({"to-vote":q()}),jf=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:Bf(),emits:Ff(),setup(e,{emit:r}){const t=e,{$t:i}=kr(),{isVoted:o,isDisabled:n,handleVote:a}=jf({props:t,emit:r});return{__sfc:!0,$t:i,props:t,emit:r,isVoted:o,isDisabled:n,handleVote:a,VoteButton:Of,VoteStatus:Vf}}});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=jr(sq,lq,cq,!1,null,"c2bb97a3");const uq=pq.exports,dq=c.defineComponent({__name:"vote-item-double",props:Bf(),emits:Ff(),setup(e,{expose:r,emit:t}){const i=e,{$t:o}=kr(),n=c.ref(),{isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p}=jf({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 xp(()=>{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:Of,VoteStatus:Vf}}});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=jr(dq,fq,mq,!1,null,"7ae37e2b");const vq=hq.exports,en={OpenVote:"OpenVote",OpenVoteRule:"OpenVoteRule"};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}=kr(),{trackEvent:f}=BZ((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=xs(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}=Ar(),{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(en.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 FZ(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}=kr(),{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:Mo,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=jr(Cq,kq,Lq,!1,null,null);const Nf=Sq.exports,Pq="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAaXSURBVHic7VxPbBRVHP7eTPd/SwkEKjZ2oZ4K6cZEm0YUvGiikYOxSkJa9QjSqAkX/iTogQPVQz2BcFATbI0HiRyQmlAvFa0aLrZRQ4zEFgy2NNil7G7b3Zmfh5nZnZ2dmff2f7vOl2zevJnfvPfmm9/vm/fevB2GQjAAfgCyvs1sbBoJpP8UAKv6dhbWiw8A8NW2fWsOaQArRkY2HQgBaKpPm9YUZP2XgYmggEdOHiQ9upQmfaPosJoYH+/o6e054fc1dTMmRRnQmjtK2UgmAAyUC2yCNczz7PP25ZlaDMimDHNCFAdhcXk59fXsX7dHunp7p4u8RB+AVVaK7iSX4kOhQGAQUEFQbS7YDhwbbhEidVjMiQBV+y2nVs6Et247VlwhSDMAYd2lhKAsJ7+XJClGLF18o+sFlYBVBYqiTPk2bnmqmDOlYh7jyaX40LojBwAkBgRkyLIcS87fGSriTCZM0O9TU92hQHBw3ZFjgDHALyEY9A9OXLnSIXqWcGh1RDsGIKw3axSSBEgMPT2PnRA+RdQwFAy+SEwtuW1rBrKEpiZft6i5MEFgbOO69h4DEiBJLFqEuRhy/RyDpAqlVGL+7j9gxw6Dvf2G/XHHFGCMmfps7hDvPTPrRoVSVmR+YR5s7Ctg7JKW3xmzt3dMha8YKGl4QaRVQnqlZeWLTCeugl0cBe7OaW2JdoKOvJvriYuWU1WCrHei7LxAencO7MI54Ppkrh3RTtDJD4BIRDPK2pNAXhziBGXHUCUKdTIBXDgHPPMc0BUTOEEDuzgCXBzN32mQE444j+2c8lXzIOMOlBIaDMDMn2AT48DEOLD3WdDrh7S7T5Y6jPz1SbDPzufCyYCZHGvIlBBCIpfdLGJI6ZUlolVoncUSKzs3DExc1TLhCOiVAeD5l/KNFubAvhzRiLTCTE6p0Mdl0obNLUJtriVBWJgDO3U03yt2xkB9/VrYfXMJbOxSodegQuSgmgStriwRyiQIAGZugh0fLNwfjmg6ZYdKkYPiCRLqKN7f3368YlP30U6gb6Bwfy3IMWHu5fZ+ETshggIMQoWJgvr6TR08F1SJHABoldlhETsuQTdeeGgPZSA8dhEFHTwCbGlzNqgiOQAAlWLjezZxpz24BG1uYk+rGbs54zKxpQ302kH7Y9UmB4CaIexq9e/j2XEJChL6VYWq8/rwiSeBPkv01oAcAFAVQjP40uFK0E+7t3arGYqqmepNc1DfQC7Uop2gk+9XnRzoHoQMYld63cPMtSf9cAB7SKl42wpAp88Av01pwl0DcgCAFE01Hg1JMQCzTnauHtTc3hZTMypUpQoaZEY4ooVbjciB7kGqQpDTcJ0bciXI17oRqqK7Y4MtYVAVgpohtLRtd7VzJUhuCSEYfUTzoAaDqhCCm7ZB8rm/M+WO5sOd28F8EWD+b2BDCxDwV7Kd9cH8HTTv2IlgOIJk/F9XU6HpjlDnDmBkGMzfDMgBIJME0kktzf6WTa96kUspP09DnwOhErUmmQAb3M+3YwwIhrV6ghE91fOZDPBgEcGt7cCDRW5RRbzVMG8wrRHM6TjyZ/HMmPpRuMoCzN4UNLSpmDGuiR3ECSpYZeH0ZLO+vbC0a+wLIOUwMHVD8gHYx8OCxjZ1W1eDCMpqiR6EnBc5GlpTHffmwE6/A/wx7TyCNyOZAK6Ng733FrAwX2xjTbtK86Ai56SNDdLuCNnN9Vo9zObO3ZsH+/CEvVZVBHX3oDI0SHRfWVjHGlSbt9d19yCUrkE16ZHX3YPK1CDHsiuFunuQp0GF8DSIA0+DOPA0iIMCDYKnQXko8BCnu+BpUC71NMgET4M48DSIA0+DOPA0iANPgzjwNIgDT4M48DSIA0+DOPA0iANPgzjwNKgQqop4NuNpUCHSRDPZTINq0EJCmXIryZWgO/cT32UzDahBBMS7Lv/s+kUGV4K6zv8wnSFoJDWgBqVUdoZXksS7p5O3Fg8BjadBRJi58Ovts7yCuATt/fTb2aWVzNFCDbJ40JrSILs6cpUQIX5j8f6BNyd/ibueoxPEXei74dTo2bml1AEixPM9xM0d6qlBdvWSUf3MtVsLu7s+uSzyNRjFeBYJrYn76NV9rQce39UfkZV9sprqYEoqinRCW4KnLHOW39kvyYOqh6JaweUvTAKCoewSPApGZtL+0HQC7PKmk8OjAiUYSBh+532aqxBpACvGU2yl/H/KNRQU4ztm5m+YpfVwk53P+18gDWDZyDg9U7zPBOr4D1m9Wh4sOVbJAAAAAElFTkSuQmCC",Tq=()=>({voteTarget:w.object(),isFullScreen:w.bool.def(!1),iconUrl:w.string.def(""),beforeClickInterrupt:w.func()}),Qq=()=>({"open-vote":q()}),Eq=e=>{const{props:r}=e,{getEmitter:t}=Ar();function i(){return K(this,null,function*(){r.beforeClickInterrupt&&as(r.beforeClickInterrupt)&&(yield r.beforeClickInterrupt())||t().emit(en.OpenVote)})}return{pendantIconUrl:c.computed(()=>r.iconUrl||Pq),onClickPendant:i}},Mq=c.defineComponent({__name:"vote-pendant",props:Tq(),emits:Qq(),setup(e,{emit:r}){const t=e,{$t:i}=kr(),{onClickPendant:o,pendantIconUrl:n}=Eq({props:t}),a=c.computed(()=>({backgroundImage:`url(${n.value})`}));return{__sfc:!0,props:t,emit:r,$t:i,onClickPendant:o,pendantIconUrl:n,pendantStyle:a}}});var Aq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return r.voteTarget&&!r.isFullScreen?t("div",{staticClass:"plv-iar-vote-pendant",style:i.pendantStyle,on:{click:i.onClickPendant}},[t("div",{staticClass:"plv-iar-vote-pendant__text"},[r._v(" "+r._s(i.$t("vote.entrance"))+" ")])]):r._e()},Iq=[],zq=jr(Mq,Aq,Iq,!1,null,null);const Dq=zq.exports,Rq=()=>({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)}),Oq=e=>{const{voteListRef:r}=e,t=c.ref(!1),i=c.ref(),{getEmitter:o}=Ar();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(en.OpenVoteRule)}return Ir(en.OpenVote,n),{instance:{open:n,close:a},visible:t,popupRef:i,handleToRule:s}},Vq=c.defineComponent({__name:"vote-list-popup",props:Rq(),setup(e,{expose:r}){const t=e,{$t:i}=kr(),o=c.ref(),{instance:n,visible:a,popupRef:s,handleToRule:l}=Oq({voteListRef:o});return r(n),{__sfc:!0,props:t,$t:i,voteListRef:o,instance:n,visible:a,popupRef:s,handleToRule:l,PwcPopup:tt,VoteListComponent:Nf}}});var Bq=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)])},Fq=[],jq=jr(Vq,Bq,Fq,!1,null,null);const Nq=jq.exports,Uq=()=>({ruleText:w.string.def(""),popupConfig:w.object()}),Wq=e=>{const r=c.ref(!1),t=c.ref();function i(){r.value=!0,c.nextTick(()=>{t.value&&t.value.resetScroll()})}function o(){r.value=!1}return Ir(en.OpenVoteRule,i),{instance:{open:i,close:o},visible:r,popupRef:t,close:o}},Hq=c.defineComponent({__name:"vote-rule-popup",props:Uq(),setup(e,{expose:r}){const t=e,{$t:i}=kr(),{isMobile:o}=Le(),{instance:n,visible:a,popupRef:s}=Wq();return r(n),{__sfc:!0,props:t,$t:i,isMobile:o,instance:n,visible:a,popupRef:s,PwcPopup:tt}}});var Zq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t(i.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-rule-popup",attrs:{title:i.$t("vote.ruleTitle"),"popup-config":r.popupConfig,backable:i.isMobile,background:i.isMobile?"#F7F8Fa":void 0,"body-height-percent":i.isMobile?.65:void 0},model:{value:i.visible,callback:function(o){i.visible=o},expression:"visible"}},[t("div",{staticClass:"plv-iar-vote-rule-popup__content"},[r.ruleText?t("div",{staticClass:"plv-iar-vote-rule-popup__text",domProps:{innerHTML:r._s(r.ruleText)}}):t("div",{staticClass:"plv-iar-vote-rule-popup__empty"},[r._v(" "+r._s(i.$t("vote.noRule"))+" ")])])])},qq=[],Yq=jr(Hq,Zq,qq,!1,null,null);const Gq=Yq.exports;le.VoteList=Nf,le.VoteListPopup=Nq,le.VotePendant=Dq,le.VoteRulePopup=Gq,Object.defineProperty(le,Symbol.toStringTag,{value:"Module"})});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:00:46]");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyv/iar-vote-ui",
3
- "version": "2.7.0-rc-20260716.1",
3
+ "version": "2.7.0",
4
4
  "main": "./index.es.js",
5
5
  "dependencies": {
6
6
  "@juggle/resize-observer": "^3.4.0"
@@ -37134,8 +37134,8 @@ const bq = sq.exports;
37134
37134
  console.log(
37135
37135
  "%c@polyv/iar-vote-ui",
37136
37136
  "background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
37137
- "[version: 2.7.0-rc-20260716.1]",
37138
- "[buildTime: 2026-07-16 06:02:36]"
37137
+ "[version: 2.7.0]",
37138
+ "[buildTime: 2026-07-17 02:01:06]"
37139
37139
  );
37140
37140
  export {
37141
37141
  bq as default