@polyv/iar-vote-ui 2.2.0-rc-20260402.1 → 2.2.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.cjs.js CHANGED
@@ -1100,4 +1100,4 @@ ${nn(o)}`),r}})}function z0(e){const t=Object.keys(e),o=t.filter(i=>{var n;retur
1100
1100
  effect: tooltipEffect,
1101
1101
  popperOffset: tooltipOffset,
1102
1102
  tooltipClass: 'pwc-menu-item__tooltip',
1103
- }`}],staticClass:"pwc-menu-item__content",class:{"is-active":o.isActive&&!o.menuItemProps.iconMode,"is-icon-mode":o.menuItemProps.iconMode},on:{click:o.onClickItem}},[o.hasSlot("icon")||o.menuIcon?t("div",{staticClass:"pwc-menu-item__icon"},[o.hasSlot("icon")?[t(o.renderSlot,{attrs:{"slot-func":()=>o.slotRender("icon",{isActive:o.isActive})}})]:[t(o.menuIcon,{tag:"component"})]],2):e._e(),o.menuItemProps.iconMode?e._e():t("div",{directives:[{name:"show",rawName:"v-show",value:!o.menuProps.collapsed||o.inSubMenuPopper,expression:"!menuProps.collapsed || inSubMenuPopper"}],staticClass:"pwc-menu-item__title"},[o.hasSlot("title")?[t(o.renderSlot,{attrs:{"slot-func":()=>o.slotRender("title")}})]:[e._v(" "+e._s(o.menuItemProps.title)+" ")]],2)])},TR=[],QR=B(kR,PR,TR);const ER=QR.exports,IR=c.defineComponent({__name:"menu-item",props:aR(),setup(e){const t=e,{receiveRouterSlotData:o}=SR({props:t});return{__sfc:!0,props:t,receiveRouterSlotData:o,MenuItemContent:ER}}});var MR=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return o.props.to?t("router-link",{tag:"component",attrs:{to:e.to,custom:""},scopedSlots:e._u([{key:"default",fn:function(r){return[t("a",e._b({staticClass:"pwc-menu-item",attrs:{href:r.href}},"a",o.receiveRouterSlotData(r),!1),[t(o.MenuItemContent)],1)]}}],null,!1,4189994726)}):e.href?t("a",{staticClass:"pwc-menu-item",attrs:{href:e.href}},[t(o.MenuItemContent)],1):t("div",{staticClass:"pwc-menu-item"},[t(o.MenuItemContent)],1)},AR=[],zR=B(IR,MR,AR);const DR=zR.exports,RR={};var OR=function(){var e=this;return e._self._c,e._m(0)},VR=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"pwc-menu-divider"},[t("div")])}],BR=B(RR,OR,VR);const $R=BR.exports;X("PwcMenu",dR);X("PwcSubMenu",LR);X("PwcMenuItem",DR);X("PwcMenuDivider",$R);const FR=()=>G(O(O({},ys()),Ld()),{trigger:g.oneOf(gn).def("click"),placement:g.oneOf(ii).def("top"),feedbackType:g.enum().def(ho.Warning),concise:g.bool.def(!1)}),jR=()=>O({},Fp()),NR=c.defineComponent({__name:"popconfirm",props:FR(),emits:jR(),setup(e,{emit:t}){const o=e,{buttonData:r,onClickConfirm:i,onClickCancel:n}=Np({props:o,emit:t,afterConfirm:()=>{var l;(l=s.value)==null||l.hidePopper()},afterCancel:()=>{var l;(l=s.value)==null||l.hidePopper()}}),a=c.computed(()=>{if(!o.concise)return o.feedbackType}),s=c.ref();return{__sfc:!0,props:o,emit:t,buttonData:r,onClickConfirm:i,onClickCancel:n,popoverFeedbackType:a,popoverRef:s,PwcButton:Be,PwcPopover:Sd}}});var UR=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t(o.PwcPopover,e._b({ref:"popoverRef",staticClass:"pwc-popconfirm",attrs:{trigger:e.trigger,placement:e.placement,"feedback-type":o.popoverFeedbackType},scopedSlots:e._u([{key:"reference",fn:function(){return[e._t("default")]},proxy:!0},{key:"default",fn:function(){return[t("div",{staticClass:"pwc-popconfirm__content"},[e.concise?e._e():e._t("content",function(){return[e._v(e._s(e.content))]}),t("div",{staticClass:"pwc-popconfirm__content__btns",class:{"is-concise":e.concise}},[o.buttonData.showCancelButton?t(o.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:o.onClickCancel}},"pwc-button",o.buttonData.cancelButtonProps,!1)):e._e(),o.buttonData.showConfirmButton?t(o.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:o.onClickConfirm}},"pwc-button",o.buttonData.confirmButtonProps,!1)):e._e()],1)],2)]},proxy:!0}],null,!0)},"pwc-popover",o.props,!1))},WR=[],HR=B(NR,UR,WR);const ZR=HR.exports;X("PwcPopconfirm",ZR);var je=(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))(je||{});function qR(e,t){const o=c.ref((()=>{try{const r=localStorage.getItem(e);if(r)return JSON.parse(r)}catch(r){}return t})());return c.watch(o,r=>{try{localStorage.setItem(e,JSON.stringify(r))}catch(i){}},{deep:!0}),o}const YR=()=>({width:g.number.def(0),height:g.number.def(0),minWidth:g.number.def(50),minHeight:g.number.def(50),maxWidth:g.number.def(1/0),maxHeight:g.number.def(1/0),disabled:g.bool.def(!1),handleSize:g.number.def(8),showHandles:g.oneOfType([Boolean,Array]).def(!0),storageKey:g.string.def("")}),GR=()=>({"resize-start":W(),resize:W(),"resize-end":W()}),XR=e=>{const{props:t,emit:o}=e,r=c.ref(),i=c.ref(!1),n=c.ref(null),a=c.ref({x:0,y:0}),s=c.ref({width:0,height:0}),l={width:t.width,height:t.height},p=t.storageKey?qR(t.storageKey,l):c.ref(l),u=c.computed(()=>{const h={};return t.width&&(h.width=p.value.width+"px"),t.height&&(h.height=p.value.height+"px"),h}),d=h=>t.showHandles===!1||Array.isArray(t.showHandles)&&!t.showHandles.includes(h)?!1:[je.Top,je.Bottom].includes(h)?!!t.height:[je.Left,je.Right].includes(h)?!!t.width:!!t.width&&!!t.height,m=(h,b)=>{t.disabled||(h.preventDefault(),h.stopPropagation(),i.value=!0,n.value=b,a.value={x:h.clientX,y:h.clientY},s.value=O({},p.value),o("resize-start",{width:p.value.width,height:p.value.height,direction:b,event:h}))},f=h=>{if(!i.value||!n.value)return;const b=h.clientX-a.value.x,v=h.clientY-a.value.y;let _=s.value.width,y=s.value.height;switch(n.value){case je.Right:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b));break;case je.Bottom:y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break;case je.Left:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b));break;case je.Top:y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case je.TopRight:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b)),y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case je.TopLeft:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b)),y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case je.BottomRight:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b)),y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break;case je.BottomLeft:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b)),y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break}p.value={width:_,height:y},o("resize",{width:_,height:y,direction:n.value,event:h})},w=h=>{if(!i.value||!n.value)return;i.value=!1;const b=n.value;n.value=null,o("resize-end",{width:p.value.width,height:p.value.height,direction:b,event:h})};return c.onMounted(()=>{document.addEventListener("mousemove",f),document.addEventListener("mouseup",w)}),c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",w)}),{boxStyle:u,containerRef:r,currentSize:p,isResizing:i,showHandleControl:d,handleMouseDown:m}};YR(),GR();const KR=()=>({title:g.looseString,titleTooltip:g.looseString}),JR=c.defineComponent({__name:"section",props:KR(),setup(e){const t=e,{hasSlot:o,slotRender:r}=be(),i=c.computed(()=>o("title-tooltip")||t.titleTooltip);return{__sfc:!0,props:t,hasSlot:o,slotRender:r,hasTitleTooltip:i,PwcTooltip:eu,renderSlot:it}}});var eO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("section",{staticClass:"pwc-section"},[o.hasSlot("title")||e.title?t("div",{staticClass:"pwc-section__title"},[e._t("title",function(){return[e._v(e._s(e.title))]}),o.hasTitleTooltip?[t(o.PwcTooltip,{attrs:{content:e.titleTooltip},scopedSlots:e._u([o.hasSlot("title-tooltip")?{key:"content",fn:function(){return[t(o.renderSlot,{attrs:{"slot-func":()=>o.slotRender("title-tooltip")}})]},proxy:!0}:null],null,!0)})]:e._e()],2):e._e(),t("div",{staticClass:"pwc-section__content"},[e._t("default")],2)])},tO=[],oO=B(JR,eO,tO);const rO=oO.exports;X("PwcSection",rO);const iO=()=>({[g.modelValueKey]:g.oneOfType([Number,Array]).def(0),min:g.number.def(0),max:g.number.def(100),disabled:g.bool.def(!1),showTooltip:g.bool.def(!1),range:g.bool.def(!1),step:g.number.def(1),showStops:g.bool.def(!1),showSliderButton:g.bool.def(!0),marks:g.object(),cssRotateAngle:g.oneOf([0,90,180,270]).def(0),progressBarVisible:g.bool.def(!0),hotAreaHeight:g.number.def(4),sliderBarHeight:g.looseNumber,buttonSize:g.number.def(14)}),nO=()=>G(O({},fe()),{change:W()}),c0=Symbol("slider-inject-key"),aO=e=>{const{props:t,emit:o}=e,{modelValue:r,updateModelValue:i}=ue(t,{outSideUpdate:()=>{S()}}),n=c.ref(0),a=c.ref(0),s=c.ref(!1),l=c.ref(void 0),p=c.ref(),{width:u}=De(p),d=c.ref(),m=c.ref(),f=c.ref(),w=c.computed(()=>Math.min(n.value,a.value)),h=c.computed(()=>Math.max(n.value,a.value)),b=c.computed(()=>t.range?`${100*(h.value-w.value)/(t.max-t.min)}%`:`${100*(n.value-t.min)/(t.max-t.min)}%`),v=c.computed(()=>t.range?`${100*(w.value-t.min)/(t.max-t.min)}%`:"0%"),_=c.computed(()=>G(O({},y.value),{width:b.value,left:v.value})),y=c.computed(()=>{const A={};return t.sliderBarHeight&&(A.height=`${t.sliderBarHeight}px`,A.borderRadius=`${t.sliderBarHeight/2}px`),A}),C=c.computed(()=>{const A=[],I=t.max-t.min,E=M=>{A.includes(M)||A.push(M)};if(t.step&&t.showStops){const M=I/t.step,z=t.step/I;for(let D=1;D<M;D++){const R=Math.round(D*z*100);E(R)}}return t.marks&&Object.keys(t.marks).forEach(M=>{const z=Number(M);if(z>=t.min&&z<=t.max){const D=(z-t.min)/I,R=Math.round(D*100);E(R)}}),A}),x=c.computed(()=>{const A=[],I=t.max-t.min;return t.marks&&Object.keys(t.marks).forEach(E=>{const M=Number(E),z=t.marks[M];let D="",R={};if(typeof z=="string"?D=z:(D=z.label,R=z.style||{}),M>=t.min&&M<=t.max){const V=(M-t.min)/I,j=Math.round(V*100);A.push({label:D,style:R,left:j,value:M})}}),A});function S(){t.range?Array.isArray(r.value)?(n.value=Math.max(t.min,r.value[0]),a.value=Math.min(t.max,r.value[1])):(n.value=t.min,a.value=t.max):typeof r.value!="number"||isNaN(r.value)?n.value=t.min:n.value=Math.min(t.max,Math.max(t.min,r.value))}function k(){let A=r.value;t.range?A=[Math.floor(w.value),Math.floor(h.value)]:A=Math.floor(n.value),A!==r.value&&(l.value=r.value,i(A))}function L(){c.nextTick(()=>{o("change",t.range?[w.value,h.value]:r.value)})}function Q(A){var M;if(!t.range){(M=m.value)==null||M.setPosition(A);return}let I;const E=t.min+A*(t.max-t.min)/100;Math.abs(w.value-E)<Math.abs(h.value-E)?I=n.value<a.value?m.value:f.value:I=n.value>a.value?m.value:f.value,I==null||I.setPosition(A)}function P(A){var I,E;if(!(t.disabled||s.value)){if(t.cssRotateAngle===90){const M=((I=d.value)==null?void 0:I.getBoundingClientRect().top)||0;Q((A.clientY-M)/u.value*100)}else{const M=((E=d.value)==null?void 0:E.getBoundingClientRect().left)||0;Q((A.clientX-M)/u.value*100)}L()}}function T(A){Q(A.left),L()}return c.onMounted(()=>{S()}),c.provide(c0,{sliderProps:t,sliderWidth:u,dragging:s,emitChange:L}),{modelValue:r,firstValue:n,secondValue:a,dragging:s,sliderRef:p,sliderClickRef:d,button1Ref:m,button2Ref:f,barStyle:_,runwayStyle:y,stops:C,markList:x,onSliderClick:P,onClickMark:T,emitInnerInput:k}},p0=()=>c.inject(c0),sO=()=>({value:g.number}),lO=()=>({change:W()}),cO=e=>{const{props:t,emit:o}=e,{sliderProps:r,sliderWidth:i,emitChange:n}=p0(),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(()=>`${(t.value-r.min)/(r.max-r.min)*100}%`),f=c.computed(()=>({left:m.value}));function w(L){let Q,P;switch("touches"in L?(Q=L.touches[0].clientX,P=L.touches[0].clientY):(Q=L.clientX,P=L.clientY),r.cssRotateAngle){case 90:return{clientX:P,clientY:Q};case 180:return{clientX:-Q,clientY:-P};case 270:return{clientX:-P,clientY:Q}}return{clientX:Q,clientY:P}}function h(){r.disabled||(a.value=!0)}function b(){r.disabled||(a.value=!1)}function v(L){if(r.disabled)return;s.value=!0,l.value=!0;const Q=w(L);p.value=Q.clientX,u.value=parseFloat(m.value),d.value=u.value}function _(L){if(!r.disabled&&s.value){l.value=!1;const Q=(w(L).clientX-p.value)/i.value*100;d.value=u.value+Q,k(d.value)}}function y(){r.disabled||ce||s.value&&setTimeout(()=>{s.value=!1,l.value||(k(d.value),n())},0)}function C(L){r.disabled||ce||(v(L),window.addEventListener("mousemove",_),window.addEventListener("touchmove",_),window.addEventListener("mouseup",y),window.addEventListener("touchend",y),window.addEventListener("contextmenu",y))}function x(){window.removeEventListener("mousemove",_),window.removeEventListener("touchmove",_),window.removeEventListener("mouseup",y),window.removeEventListener("touchend",y),window.removeEventListener("contextmenu",y)}c.onBeforeUnmount(()=>{x()});function S(L){let Q=L;return r.step&&(Q=Math.round(L/r.step)*r.step),Q<r.min&&(Q=r.min),Q>r.max&&(Q=r.max),Q}function k(L){if(L===null||isNaN(L))return;L<0?L=0:L>100&&(L=100);const Q=(r.max-r.min)*(L/100),P=r.min+Q;o("change",S(P))}return{hovering:a,dragging:s,btnStyle:f,handleMouseEnter:h,handleMouseLeave:b,onButtonDown:C,setPosition:k}},pO={name:"PlvSliderButton"},uO=c.defineComponent(G(O({},pO),{props:sO(),emits:lO(),setup(e,{expose:t,emit:o}){const r=e,i=p0(),{sliderProps:n}=i,{hovering:a,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=cO({props:r,emit:o}),f=c.computed(()=>s.value||i.dragging.value||!1);return t({setPosition:m}),{__sfc:!0,props:r,emit:o,sliderInject:i,sliderProps:n,hovering:a,buttonDragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m,dragging:f}}}));var dO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{staticClass:"pwc-slider__button",style:o.btnStyle,on:{mouseenter:o.handleMouseEnter,mouseleave:o.handleMouseLeave,mousedown:o.onButtonDown,touchstart:o.onButtonDown}},[t("div",{class:["pwc-slider__button__inner",o.hovering||o.dragging?"pwc-slider__button__inner--hover":"",o.sliderProps.disabled?"pwc-slider__button__inner--disabled":""],style:{width:`${o.sliderProps.buttonSize}px`,height:`${o.sliderProps.buttonSize}px`}})])},fO=[],mO=B(uO,dO,fO);const hO=mO.exports,gO=c.defineComponent({__name:"slider",props:iO(),emits:nO(),setup(e,{emit:t}){const o=e,{firstValue:r,secondValue:i,sliderRef:n,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:w,emitInnerInput:h}=aO({props:o,emit:t});function b(_){r.value=_,h()}function v(_){i.value=_,h()}return{__sfc:!0,props:o,emit:t,firstValue:r,secondValue:i,sliderRef:n,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:w,emitInnerInput:h,onFirstValueChange:b,onSecondValueChange:v,SliderButton:hO}}});var vO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{staticClass:"pwc-slider"},[t("div",{ref:"sliderRef",class:["pwc-slider__runway",o.props.disabled?"pwc-slider__runway--disabled":""],style:o.runwayStyle},[o.props.progressBarVisible?t("div",{staticClass:"pwc-slider__runway__bar",style:o.barStyle}):e._e(),t("div",{ref:"sliderClickRef",staticClass:"pwc-slider__runway__click",style:{height:`${o.props.hotAreaHeight}px`},on:{click:o.onSliderClick}}),e._l(o.stops,function(r){return t("div",{key:`dot-${r}`,staticClass:"pwc-slider__runway__dot",style:{left:`${r}%`}})}),o.props.showSliderButton?t(o.SliderButton,{ref:"button1Ref",attrs:{value:o.firstValue},on:{change:o.onFirstValueChange}}):e._e(),o.props.range&&o.props.showSliderButton?t(o.SliderButton,{ref:"button2Ref",attrs:{value:o.secondValue},on:{change:o.onSecondValueChange}}):e._e()],2),o.markList.length?t("div",{staticClass:"pwc-slider__marks"},e._l(o.markList,function(r,i){return t("div",{key:`mark-${i}`,staticClass:"pwc-slider__marks__item",style:O({left:`${r.left}%`},r.style),on:{click:function(n){return o.onClickMark(r)}}},[e._v(" "+e._s(r.label)+" ")])}),0):e._e()])},wO=[],bO=B(gO,vO,wO);const _O=bO.exports;X("PwcSlider",_O);const yO=()=>({max:g.number.def(3)}),xO=()=>({label:g.looseString}),CO=()=>({click:W()}),u0=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),LO=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(u0,{}),{__sfc:!0,PwcButton:Be,PwcIconMore:Pp,PwcDropdown:qQ,PwcDropdownMenu:YQ}}});var SO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t(o.PwcDropdown,{staticClass:"pwc-table-operation-dropdown",scopedSlots:e._u([{key:"dropdown",fn:function(){return[t(o.PwcDropdownMenu,[e._t("default")],2)]},proxy:!0}],null,!0)},[t(o.PwcButton,{attrs:{link:""}},[t("div",{staticClass:"pwc-table-operation-dropdown__icon"},[t(o.PwcIconMore)],1)])],1)},kO=[],PO=B(LO,SO,kO);const TO=PO.exports,QO=c.defineComponent({props:yO(),setup(e){const t=c.useSlots(),o=c.inject(Bs,void 0),r=Ot(8),i=c.ref();function n(){if(o)return o.allRenderColumnList.value.find(a=>a.columnProps.type==="operation")}return De(i,({width:a})=>{const s=n();s&&s.setOperationWidthRecord(r,a)}),c.onBeforeUnmount(()=>{const a=n();a&&a.removeOperationWidthRecord(r)}),()=>{var m;let a=(m=t.default)==null?void 0:m.call(t);if(!a)return c.h("span",{},"-");let s=0;const l=[],p=[],u=a.reduce((f,w)=>Ae.isCommentVNode(w)?f:f+1,0);u===0&&l.push(c.h("span",{},"-")),a.forEach((f,w)=>{u<=e.max||s<e.max-1?(l.push(f),s++):p.push(f)}),p.length>0&&l.push(c.h(TO,{},vp()?{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:i},l)])}}}),EO=c.defineComponent({__name:"table-operation-item",props:xO(),emits:CO(),setup(e,{emit:t}){const o=e,r=c.inject(u0,void 0);function i(n){t("click",n)}return{__sfc:!0,props:o,emit:t,dropdownInject:r,onClickItem:i,PwcButton:Be,PwcDropdownItem:GQ}}});var IO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return o.dropdownInject?t(o.PwcDropdownItem,{staticClass:"pwc-table-operation-item",nativeOn:{click:function(r){return o.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2):t(o.PwcButton,{staticClass:"pwc-table-operation-item",attrs:{link:""},nativeOn:{click:function(r){return o.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2)},MO=[],AO=B(EO,IO,MO);const zO=AO.exports;X("PwcTableOperation",QO);X("PwcTableOperationItem",zO);const DO=["line","rounded","text"],RO=()=>({[g.modelValueKey]:g.oneOfType([String,Number,Symbol]),type:g.oneOf(DO).def("line"),expand:g.bool.def(!1),lazyLoad:g.bool.def(!1)}),OO=()=>G(O({},fe()),{change:W()}),VO=()=>({name:g.oneOfType([String,Number]),extra:g.looseString,disabled:g.bool.def(!1),title:g.looseString,lazyLoad:g.looseBool}),qs=Symbol("tabs-inject-key"),BO=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:t,tabsProps:o,setCurrentTab:r}=c.inject(qs),{$t:i}=ee(),n=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=at();function p(){return H(this,null,function*(){if(yield c.nextTick(),!n.value||ce)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(()=>t.value.length,()=>{p()},{immediate:!0});function u(d){d.paneProps.disabled||r(d.getPaneName())}return{__sfc:!0,tabPanes:t,tabsProps:o,setCurrentTab:r,$t:i,listRef:n,isMoreItem:a,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:gr,PwcIconUp:Qp,renderSlot:it}}});var $O=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-nav",class:[`is-type-${o.tabsProps.type}`]},[t("div",{ref:"listRef",staticClass:"pwc-tab-nav__list",class:{"is-hide":o.tabsProps.expand&&!o.isExpanded}},e._l(o.tabPanes,function(r){return t("div",{key:r.paneId,staticClass:"pwc-tab-nav__item",class:{"is-active":r.getIsActive(),"is-disabled":r.paneProps.disabled},on:{click:function(i){return o.onClickItem(r)}}},[r.hasSlot("title")?t(o.renderSlot,{staticClass:"pwc-tab-nav__item__title",attrs:{"slot-func":r.getTitleRenderSlot}}):t("span",[e._v(e._s(r.paneProps.title))]),r.hasSlot("extra")?t(o.renderSlot,{staticClass:"pwc-tab-nav__item__extra",attrs:{"slot-func":r.getExtraRenderSlot}}):e._e(),r.paneProps.extra?t("span",{staticClass:"pwc-tab-nav__item__extra"},[e._v(" "+e._s(r.paneProps.extra)+" ")]):e._e()],1)}),0),t("div",{staticClass:"pwc-tab-nav__right"},[o.tabsProps.expand&&o.isMoreItem?t("div",{staticClass:"pwc-tab-nav__expand",on:{click:o.toggle}},[t("span",[e._v(e._s(o.isExpanded?o.$t("tabs.collapse"):o.$t("tabs.more")))]),o.isExpanded?t(o.PwcIconUp):t(o.PwcIconDown)],1):e._e()])])},FO=[],jO=B(BO,$O,FO);const NO=jO.exports,UO=c.defineComponent({__name:"tabs",props:RO(),emits:OO(),setup(e,{emit:t}){const o=e,r=c.ref(),i=c.ref(),{modelValue:n,updateModelValue:a}=ue(o,{outSideUpdate:w=>{r.value=w}}),s=c.ref([]);function l(w){if(!s.value.includes(w)){if(typeof r.value>"u")if(typeof n.value>"u"){const h=w.getPaneName();u(h,!1)}else u(n.value,!1);s.value.push(w)}}function p(w){s.value=s.value.filter(h=>h!==w)}function u(w,h=!0){r.value!==w&&(r.value=w,a(w),h&&t("change",w))}const d=c.ref(0);function m(){return H(this,null,function*(){var b;yield c.nextTick();const w=((b=i.value)==null?void 0:b.querySelectorAll("[data-pane-name]"))||[];let h=0;for(let v=0;v<w.length;v++)if(w[v].getAttribute("data-is-active")==="true"){h=v*100;break}d.value=h})}c.watch(()=>r.value,()=>{m()});const f={tabsProps:o,currentTab:r,tabPanes:s,setCurrentTab:u,addTabPane:l,removeTabPane:p};return c.provide(qs,f),{__sfc:!0,props:o,emits:t,currentTab:r,tabsRef:i,modelValue:n,updateModelValue:a,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:NO}}});var WO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{ref:"tabsRef",staticClass:"pwc-tabs"},[t(o.TabNav),t("div",{staticClass:"pwc-tabs__content"},[t("div",{staticClass:"pwc-tabs__list",style:{marginLeft:`-${o.offsetPercent}%`}},[e._t("default")],2)])],1)},HO=[],ZO=B(UO,WO,HO);const qO=ZO.exports,YO=c.defineComponent({__name:"tab-pane",props:VO(),setup(e){const t=e,o=Ot(8),r=c.inject(qs),{hasSlot:i,slotRender:n}=be(),a=c.computed(()=>t.name||o),s=c.computed(()=>r.currentTab.value===a.value);function l(){return n("title",{isActive:s.value})}const p=c.computed(()=>{var f;return(f=t.lazyLoad)!=null?f:r.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:o,paneProps:t,getPaneName:()=>a.value,getIsActive:()=>s.value,hasSlot:i,getTitleRenderSlot:l,getExtraRenderSlot:()=>n("extra")};return c.onBeforeMount(()=>{r.addTabPane(m)}),{__sfc:!0,props:t,paneId:o,tabsInject:r,hasSlot:i,slotRender:n,tabPaneName:a,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var GO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-pane",class:{"is-active":o.isActive},attrs:{"data-pane-name":o.tabPaneName,"data-is-active":o.isActive}},[o.canRender?t("div",{staticClass:"pwc-tab-pane__content"},[e._t("default")],2):e._e()])},XO=[],KO=B(YO,GO,XO);const JO=KO.exports;X("PwcTabs",qO);X("PwcTabPane",JO);var i1={},eV,tV;function oV(e,t,o,n){var i=0,n=n===void 0?{}:n,a=n.loop===void 0?null:n.loop,s=n.palette===void 0?null:n.palette;if(t<=0||o<=0||t>65535||o>65535)throw new Error("Width/Height invalid.");function l(b){var v=b.length;if(v<2||v>256||v&v-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return v}e[i++]=71,e[i++]=73,e[i++]=70,e[i++]=56,e[i++]=57,e[i++]=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[i++]=t&255,e[i++]=t>>8&255,e[i++]=o&255,e[i++]=o>>8&255,e[i++]=(s!==null?128:0)|p,e[i++]=u,e[i++]=0,s!==null)for(var m=0,f=s.length;m<f;++m){var w=s[m];e[i++]=w>>16&255,e[i++]=w>>8&255,e[i++]=w&255}if(a!==null){if(a<0||a>65535)throw new Error("Loop count invalid.");e[i++]=33,e[i++]=255,e[i++]=11,e[i++]=78,e[i++]=69,e[i++]=84,e[i++]=83,e[i++]=67,e[i++]=65,e[i++]=80,e[i++]=69,e[i++]=50,e[i++]=46,e[i++]=48,e[i++]=3,e[i++]=1,e[i++]=a&255,e[i++]=a>>8&255,e[i++]=0}var h=!1;this.addFrame=function(b,v,_,y,C,x){if(h===!0&&(--i,h=!1),x=x===void 0?{}:x,b<0||v<0||b>65535||v>65535)throw new Error("x/y invalid.");if(_<=0||y<=0||_>65535||y>65535)throw new Error("Width/Height invalid.");if(C.length<_*y)throw new Error("Not enough pixels for the frame size.");var S=!0,k=x.palette;if(k==null&&(S=!1,k=s),k==null)throw new Error("Must supply either a local or global palette.");for(var L=l(k),Q=0;L>>=1;)++Q;L=1<<Q;var P=x.delay===void 0?0:x.delay,T=x.disposal===void 0?0:x.disposal;if(T<0||T>3)throw new Error("Disposal out of range.");var A=!1,I=0;if(x.transparent!==void 0&&x.transparent!==null&&(A=!0,I=x.transparent,I<0||I>=L))throw new Error("Transparent color index.");if((T!==0||A||P!==0)&&(e[i++]=33,e[i++]=249,e[i++]=4,e[i++]=T<<2|(A===!0?1:0),e[i++]=P&255,e[i++]=P>>8&255,e[i++]=I,e[i++]=0),e[i++]=44,e[i++]=b&255,e[i++]=b>>8&255,e[i++]=v&255,e[i++]=v>>8&255,e[i++]=_&255,e[i++]=_>>8&255,e[i++]=y&255,e[i++]=y>>8&255,e[i++]=S===!0?128|Q-1:0,S===!0)for(var E=0,M=k.length;E<M;++E){var z=k[E];e[i++]=z>>16&255,e[i++]=z>>8&255,e[i++]=z&255}return i=rV(e,i,Q<2?2:Q,C),i},this.end=function(){return h===!1&&(e[i++]=59,h=!0),i},this.getOutputBuffer=function(){return e},this.setOutputBuffer=function(b){e=b},this.getOutputBufferPosition=function(){return i},this.setOutputBufferPosition=function(b){i=b}}function rV(e,t,o,r){e[t++]=o;var i=t++,n=1<<o,a=n-1,s=n+1,l=s+1,p=o+1,u=0,d=0;function m(x){for(;u>=x;)e[t++]=d&255,d>>=8,u-=8,t===i+256&&(e[i]=255,i=t++)}function f(x){d|=x<<u,u+=p,m(8)}var w=r[0]&a,h={};f(n);for(var b=1,v=r.length;b<v;++b){var _=r[b]&a,y=w<<8|_,C=h[y];if(C===void 0){for(d|=w<<u,u+=p;u>=8;)e[t++]=d&255,d>>=8,u-=8,t===i+256&&(e[i]=255,i=t++);l===4096?(f(n),l=s+1,p=o+1,h={}):(l>=1<<p&&++p,h[y]=l++),w=_}else w=C}return f(w),f(s),m(1),i+1===t?e[i]=0:(e[i]=t-i-1,e[t++]=0),t}function iV(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!==56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var o=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],n=i>>7,a=i&7,s=1<<a+1;e[t++],e[t++];var l=null,p=null;n&&(l=t,p=s,t+=s*3);var u=!0,d=[],m=0,f=null,w=0,h=null;for(this.width=o,this.height=r;u&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,h=e[t++]|e[t++]<<8,t++;else for(t+=12;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var v=e[t++];m=e[t++]|e[t++]<<8,f=e[t++],v&1||(f=null),w=v>>2&7,t++;break;case 254:for(;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var _=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,C=e[t++]|e[t++]<<8,x=e[t++]|e[t++]<<8,S=e[t++],k=S>>7,L=S>>6&1,Q=S&7,P=1<<Q+1,T=l,A=p,I=!1;if(k){var I=!0;T=t,A=P,t+=P*3}var E=t;for(t++;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}d.push({x:_,y,width:C,height:x,has_local_palette:I,palette_offset:T,palette_size:A,data_offset:E,data_length:t-E,transparent_index:f,interlaced:!!L,delay:m,disposal:w});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return h},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,z){var D=this.frameInfo(M),R=D.width*D.height,V=new Uint8Array(R);n1(e,D.data_offset,V,R);var j=D.palette_offset,$=D.transparent_index;$===null&&($=256);var N=D.width,U=o-N,Z=N,Y=(D.y*o+D.x)*4,K=((D.y+D.height)*o+D.x)*4,te=Y,oe=U*4;D.interlaced===!0&&(oe+=o*4*7);for(var J=8,ae=0,me=V.length;ae<me;++ae){var ve=V[ae];if(Z===0&&(te+=oe,Z=N,te>=K&&(oe=U*4+o*4*(J-1),te=Y+(N+U)*(J<<1),J>>=1)),ve===$)te+=4;else{var Ee=e[j+ve*3],bt=e[j+ve*3+1],_t=e[j+ve*3+2];z[te++]=_t,z[te++]=bt,z[te++]=Ee,z[te++]=255}--Z}},this.decodeAndBlitFrameRGBA=function(M,z){var D=this.frameInfo(M),R=D.width*D.height,V=new Uint8Array(R);n1(e,D.data_offset,V,R);var j=D.palette_offset,$=D.transparent_index;$===null&&($=256);var N=D.width,U=o-N,Z=N,Y=(D.y*o+D.x)*4,K=((D.y+D.height)*o+D.x)*4,te=Y,oe=U*4;D.interlaced===!0&&(oe+=o*4*7);for(var J=8,ae=0,me=V.length;ae<me;++ae){var ve=V[ae];if(Z===0&&(te+=oe,Z=N,te>=K&&(oe=U*4+o*4*(J-1),te=Y+(N+U)*(J<<1),J>>=1)),ve===$)te+=4;else{var Ee=e[j+ve*3],bt=e[j+ve*3+1],_t=e[j+ve*3+2];z[te++]=Ee,z[te++]=bt,z[te++]=_t,z[te++]=255}--Z}}}function n1(e,t,o,r){for(var i=e[t++],n=1<<i,a=n+1,s=a+1,l=i+1,p=(1<<l)-1,u=0,d=0,m=0,f=e[t++],w=new Int32Array(4096),h=null;;){for(;u<16&&f!==0;)d|=e[t++]<<u,u+=8,f===1?f=e[t++]:--f;if(u<l)break;var b=d&p;if(d>>=l,u-=l,b===n){s=a+1,l=i+1,p=(1<<l)-1,h=null;continue}else if(b===a)break;for(var v=b<s?b:h,_=0,y=v;y>n;)y=w[y]>>8,++_;var C=y,x=m+_+(v!==b?1:0);if(x>r){console.log("Warning, gif stream longer than expected.");return}o[m++]=C,m+=_;var S=m;for(v!==b&&(o[m++]=C),y=v;_--;)y=w[y],o[--S]=y&255,y>>=8;h!==null&&s<4096&&(w[s++]=h<<8|C,s>=p+1&&l<12&&(++l,p=p<<1|1)),h=b}return m!==r&&console.log("Warning, gif stream shorter than expected."),o}try{tV=i1.GifWriter=oV,eV=i1.GifReader=iV}catch(e){}const nV=e=>{const{configProviderData:t}=Bt();function o(r){var i;if(t!=null&&t.trackEventCallback){t.trackEventCallback(r);return}(i=e.trackEvent)==null||i.call(e,r)}return{trackEvent:o}};function aV(e,t,o={}){function r(){if(e)for(const n in t)t[n]&&e.on(n,t[n])}function i(){if(e)for(const n in t)t[n]&&e.off(n,t[n])}return fn({listenEvent:r,removeEvent:i},o),{listenEvent:r,removeEvent:i}}const sV={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"}},lV={vote:sV},cV={option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}},pV={vote:cV},uV={option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}},dV={vote:uV},fV={option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}},mV={vote:fV},hV={option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}},gV={vote:hV},vV={option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}},wV={vote:vV},{useI18n:Nt}=$p({zh_CN:gV,zh_TW:wV,en:lV,ja:pV,ko:dV,ru:mV}),bV=()=>({status:g.oneOf(["Y","N"]).def("Y"),isVoted:g.bool.isRequired,disabled:g.bool.def(!1),hasVoteList:g.bool.def(!1)}),_V=()=>({click:W()}),yV=e=>{const{props:t,emit:o}=e,{$t:r}=Nt(),i=c.computed(()=>t.isVoted?"voted":t.status==="N"?"not-voted":t.disabled?"disabled":"vote"),n={vote:r("vote.button.vote"),voted:r("vote.button.voted"),"not-voted":r("vote.button.notVoted"),disabled:r("vote.button.vote")},a=c.computed(()=>n[i.value]);function s(){i.value==="vote"&&o("click")}return{buttonType:i,buttonText:a,handleClick:s}},xV=c.defineComponent({__name:"vote-button",props:bV(),emits:_V(),setup(e,{emit:t}){const o=e,{buttonType:r,buttonText:i,handleClick:n}=yV({props:o,emit:t});return{__sfc:!0,props:o,emit:t,buttonType:r,buttonText:i,handleClick:n,PwcButton:Be}}});function so(e,t,o,r,i,n,a,s){var l=typeof e=="function"?e.options:e;return t&&(l.render=t,l.staticRenderFns=o,l._compiled=!0),n&&(l._scopeId="data-v-"+n),{exports:e,options:l}}var CV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{staticClass:"plv-iar-vote-button",class:{"plv-iar-vote-button--no-pointer":r.props.hasVoteList}},[r.buttonType==="vote"?o(r.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:r.props.disabled},on:{click:r.handleClick}},[t._v(" "+t._s(r.buttonText)+" ")]):r.buttonType==="not-voted"||r.buttonType==="disabled"?o(r.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:""}},[t._v(" "+t._s(r.buttonText)+" ")]):o(r.PwcButton,{staticClass:"plv-iar-vote-button__text",attrs:{size:"mini",disabled:r.props.status==="N"||r.props.disabled}},[t._v(" "+t._s(r.buttonText)+" ")])],1)},LV=[],SV=so(xV,CV,LV,!1,null,"6ba928d5");const d0=SV.exports,kV=()=>({status:g.oneOf(["Y","N"]).def("Y")}),PV=()=>({}),TV=e=>{const{props:t}=e,{$t:o}=Nt();return{statusText:c.computed(()=>t.status==="Y"?o("vote.status.voting"):o("vote.status.ended"))}},QV=c.defineComponent({__name:"vote-status",props:kV(),emits:PV(),setup(e,{emit:t}){const o=e,{statusText:r}=TV({props:o});return{__sfc:!0,props:o,emit:t,statusText:r}}});var EV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{staticClass:"plv-iar-vote-status",class:{"plv-iar-vote-status--voting":t.status==="Y","plv-iar-vote-status--ended":t.status==="N"}},[t._v(" "+t._s(r.statusText)+" ")])},IV=[],MV=so(QV,EV,IV,!1,null,"c99114e4");const f0=MV.exports,m0=()=>({voteData:g.object().isRequired,votedList:g.array().def([]),layout:g.oneOf(["single","double"]).def("single"),clickable:g.bool.def(!0),hasVoteList:g.bool.def(!1)}),h0=()=>({"to-vote":W()}),g0=e=>{const{props:t,emit:o,itemRef:r}=e,i=c.ref({gridRowEnd:"auto"}),n=c.computed(()=>t.votedList.includes(t.voteData.id)),a=c.computed(()=>!t.clickable);function s(){a.value||o("to-vote",t.voteData.id)}return{isVoted:n,isDisabled:a,gridRowEndStyle:i,handleVote:s}},AV=c.defineComponent({__name:"vote-item-single",props:m0(),emits:h0(),setup(e,{emit:t}){const o=e,{$t:r}=Nt(),{isVoted:i,isDisabled:n,handleVote:a}=g0({props:o,emit:t});return{__sfc:!0,$t:r,props:o,emit:t,isVoted:i,isDisabled:n,handleVote:a,VoteButton:d0,VoteStatus:f0}}});var zV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-single",class:{"plv-iar-vote-list-item-image":!!t.voteData.voteCoverImage,"plv-iar-vote-list-item-no-image":!t.voteData.voteCoverImage}},[t.voteData.voteCoverImage?[o("div",{staticClass:"plv-iar-vote-list-item-bg"},[o("div",{staticClass:"plv-iar-vote-list-item-bg-image",style:{backgroundImage:`url(${t.voteData.voteCoverImage})`}}),o("div",{staticClass:"plv-iar-vote-list-item-bg-mask"})])]:t._e(),o("div",{staticClass:"plv-iar-vote-list-item-content"},[o("div",{staticClass:"plv-iar-vote-list-item-content-info"},[o("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top"},[t.voteData.status?o(r.VoteStatus,{staticClass:"plv-iar-vote-list-item-content-info-left-top-item",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?o("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top-item plv-iar-vote-list-item-content-info-count"},[t._v(" "+t._s(t.voteData.voteCount||0)+" "+t._s(r.$t("vote.count"))+" ")]):t._e()],1),o("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[t._v(t._s(t.voteData.name))])]),o(r.VoteButton,{attrs:{status:t.voteData.status,"is-voted":r.isVoted,disabled:r.isDisabled,"has-vote-list":r.props.hasVoteList},on:{click:r.handleVote}})],1)],2)},DV=[],RV=so(AV,zV,DV,!1,null,"d0e638ec");const OV=RV.exports,VV=c.defineComponent({__name:"vote-item-double",props:m0(),emits:h0(),setup(e,{expose:t,emit:o}){const r=e,{$t:i}=Nt(),n=c.ref(),{isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p}=g0({props:r,emit:o,itemRef:n});let u=null;const d=12;function m(h=d){if(!n.value)return;const b=n.value.offsetHeight;if(b>0){const v=Math.ceil(b/h);l.value={gridRowEnd:`span ${v}`}}}function f(){n.value&&(u&&(u.disconnect(),u=null),u=new x1(()=>{m(d)}),u.observe(n.value),m(d))}function w(){u&&(u.disconnect(),u=null)}return c.watch(n,h=>{w(),h&&f()},{immediate:!0}),c.onBeforeUnmount(()=>{w()}),t({calculateGridRowEnd:m,itemRef:n}),{__sfc:!0,$t:i,props:r,emit:o,itemRef:n,isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p,resizeObserver:u,GAP:d,calculateGridRowEnd:m,setupResizeObserver:f,cleanupResizeObserver:w,VoteButton:d0,VoteStatus:f0}}});var BV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{ref:"itemRef",staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-double",style:r.gridRowEndStyle},[o("div",{staticClass:"plv-iar-vote-list-item-content-container"},[t.voteData.voteCoverImage?[o("div",{staticClass:"plv-iar-vote-list-item-image",style:{backgroundImage:`url(${t.voteData.voteCoverImage})`}},[o("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[t.voteData.status?o(r.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-image-status",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?o("div",{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-content-info-count"},[t._v(" "+t._s(t.voteData.voteCount||0)+" "+t._s(r.$t("vote.count"))+" ")]):t._e()],1)])]:t._e(),o("div",{staticClass:"plv-iar-vote-list-item-content"},[o("div",{staticClass:"plv-iar-vote-list-item-content-info"},[t.voteData.voteCoverImage?t._e():o("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[t.voteData.status?o(r.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?o("div",{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-content-info-count"},[t._v(" "+t._s(t.voteData.voteCount||0)+" "+t._s(r.$t("vote.count"))+" ")]):t._e()],1),o("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[t._v(t._s(t.voteData.name))])]),o(r.VoteButton,{attrs:{status:t.voteData.status,"is-voted":r.isVoted,disabled:r.isDisabled,"has-vote-list":r.props.hasVoteList},on:{click:r.handleVote}})],1)],2)])},$V=[],FV=so(VV,BV,$V,!1,null,"214a02c3");const jV=FV.exports,qr={OpenVote:"OpenVote",OpenVoteRule:"OpenVoteRule"};function NV(e){const{state:t,onShow:o,onGetVoteList:r}=e,{list:i,curVotedList:n,cacheVotedList:a,voteCount:s,isForceHideResult:l,isForceShowResult:p,findVoteById:u}=t;function d(_){n.value=_.curVotedList}function m(_){const y=_.voteData.id,C=u(y)[0];C!==-1&&i.value.splice(C,1);const x=n.value.findIndex(Q=>Q===y);x!==-1&&n.value.splice(x,1);const S=a.value.findIndex(Q=>Q===y);S!==-1&&a.value.splice(S,1);const k=_.voteData.voteOrder||0;let L=i.value.length;for(let Q=0;Q<i.value.length;Q++)if((i.value[Q].voteOrder||0)>=k){L=Q;break}p.value&&(_.voteData.showVoteCount=!0,_.voteData.voteCount=0),i.value.splice(L,0,_.voteData),o()}function f(_){const y=u(_.id)[1];y&&(y.status="N")}function w(_){s.value=_.voteCount,_.list.forEach(y=>{const C=u(y.id)[1];C&&(C.showVoteCount=!l.value,C.voteCount=y.times)})}function h(){i.value.splice(0,i.value.length)}function b(_){const y=u(_.id)[0];y!==-1&&i.value.splice(y,1)}function v(_){const y=Math.floor(Math.random()*3e3);setTimeout(()=>{r()},y)}return{updateVotedList:d,onVoteStart:m,onVoteStop:f,onVoteResult:w,onVoteDeleteAll:h,onVoteDelete:b,onVoteChangeOrder:v}}function UV(e){const{voteTarget:t,state:o,onShowEntrance:r}=e,{list:i,curVotedList:n,cacheVotedList:a,isVotedWithLimit:s,voteCount:l,isForceHideResult:p,findVoteById:u}=o,{toast:d}=Ft(),{$t:m}=Nt(),{trackEvent:f}=nV((t==null?void 0:t.interactionCore)||{});function w(){return H(this,null,function*(){t&&(n.value=t.getVotedList())})}function h(){return H(this,null,function*(){if(!t)return;const C=yield t.getVoteList();if(C&&C.code===200&&C.data){i.value=C.data.list,i.value.length>0&&r(!0);const x=t.getCachedVoteResult();x&&x.forEach(S=>{const k=u(S.id)[1];k&&(k.showVoteCount=!p.value,k.voteCount=S.times)})}})}const b=us(h,1e3);function v(C){return H(this,null,function*(){if(t&&a.value.indexOf(C)===-1){a.value.push(C);const x=yield t.toVote(C);if(x.code===200)t.pushVotedList(C),d.success(m("vote.success"));else if(x.code===506)d.info(m("vote.voted")),t.pushVotedList(C);else{x.code===501?(s.value=!0,d.error(m("vote.voteLimit"))):d.error(x.message||m("vote.voteFailed"));const S=a.value.indexOf(C);S!==-1&&a.value.splice(S,1)}_()}})}function _(){t&&f({event_id:"click_vote_widget",event_type:"click",spec_attrs:{timestamp:Date.now()}})}function y(){t&&t.interactionCore.getSocket().then(C=>{C&&C.on("connect",()=>{b()})})}return{getVotedList:w,getVoteList:b,toVote:v,setupSocketListener:y}}function WV(e){const{resultShowType:t}=e,o=c.ref([]),r=c.ref([]),i=c.ref([]),n=c.ref(!1),a=c.ref(0),s=c.computed(()=>r.value.length),l=c.computed(()=>t===3&&a.value===0&&i.value.length===0),p=c.computed(()=>t===2||t===3&&(a.value>0||r.value.length>0));function u(d){const m=o.value.findIndex(f=>f.id===d);return[m,o.value[m]]}return{list:o,curVotedList:r,cacheVotedList:i,isVotedWithLimit:n,voteCount:a,isForceHideResult:l,isForceShowResult:p,votedCount:s,findVoteById:u}}const HV=()=>({voteTarget:g.object(),layout:g.oneOf(["single","double"]).def("single"),voteList:g.array(),maxVote:g.number.def(0),showHeader:g.bool.def(!0),showRule:g.bool.def(!0),resultShowType:g.number.def(0)}),ZV=()=>({"to-show":()=>!0,"to-hide":()=>!0,"show-entrance":W()}),qV=e=>{var v,_,y,C,x,S,k;const{props:t,emit:o}=e,{getEmitter:r}=no(),{voteTarget:i={}}=t,n=WV({resultShowType:t.resultShowType}),a=UV({voteTarget:i,state:n,onShowEntrance:L=>o("show-entrance",L)}),{updateVotedList:s,onVoteStart:l,onVoteStop:p,onVoteResult:u,onVoteDeleteAll:d,onVoteDelete:m,onVoteChangeOrder:f}=NV({state:n,onShow:()=>o("to-show"),onGetVoteList:()=>a.getVoteList()});function w(){r().emit(qr.OpenVoteRule)}function h(L){if(n.curVotedList.value.indexOf(L)!==-1||n.isVotedWithLimit.value)return!1;const P=Number(t.maxVote)||0;return P>0?n.votedCount.value<P:!0}function b(){t.voteList&&t.voteList.length>0||(a.setupSocketListener(),a.getVoteList(),a.getVotedList())}return aV(i.eventEmitter,{[(v=i.VoteEvent)==null?void 0:v.UpdateVotedList]:s,[(_=i.VoteEvent)==null?void 0:_.Start]:l,[(y=i.VoteEvent)==null?void 0:y.Stop]:p,[(C=i.VoteEvent)==null?void 0:C.VoteResult]:u,[(x=i.VoteEvent)==null?void 0:x.DeleteAll]:d,[(S=i.VoteEvent)==null?void 0:S.Delete]:m,[(k=i.VoteEvent)==null?void 0:k.UpdateVoteOrder]:f}),c.onMounted(()=>{t.voteTarget&&b()}),c.watch(()=>t.voteTarget,L=>{L&&b()},{immediate:!0}),c.watch(()=>t.voteList,L=>{L!=null&&(n.list.value=[...L])},{immediate:!0,deep:!0}),{list:n.list,curVotedList:n.curVotedList,handleToVote:a.toVote,handleRule:w,isItemClickable:h}},YV=c.defineComponent({__name:"vote-list",props:HV(),emits:ZV(),setup(e,{emit:t}){const o=e,{$t:r}=Nt(),{list:i,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l}=qV({props:o,emit:t});return{__sfc:!0,$t:r,props:o,emit:t,list:i,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l,PwcEmpty:ni,VoteItemSingle:OV,VoteItemDouble:jV}}});var GV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{staticClass:"plv-iar-vote"},[r.list.length?o("div",{staticClass:"plv-iar-vote__container"},[t.showHeader?o("div",{staticClass:"plv-iar-vote__container__header"},[o("span",[t._v(t._s(r.$t("vote.option")))]),r.props.showRule?o("span",{class:{"plv-iar-vote__container__header__rule--no-pointer":r.props.voteList&&r.props.voteList.length>0},on:{click:r.handleRule}},[t._v(t._s(r.$t("vote.rule")))]):t._e()]):t._e(),o("div",{staticClass:"plv-iar-vote__list",class:{"plv-iar-vote__list--single":t.layout==="single","plv-iar-vote__list--double":t.layout==="double"}},t._l(r.list,function(i){return o(t.layout==="single"?r.VoteItemSingle:r.VoteItemDouble,{key:i.id,tag:"component",attrs:{"vote-data":i,"voted-list":r.curVotedList,clickable:r.isItemClickable(i.id),"has-vote-list":!!(r.props.voteList&&r.props.voteList.length>0)},on:{"to-vote":r.handleToVote}})}),1)]):o("div",{staticClass:"plv-iar-vote__no-data"},[o(r.PwcEmpty)],1)])},XV=[],KV=so(YV,GV,XV,!1,null,null);const v0=KV.exports,JV="data:image/png;base64,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",eB=()=>({voteTarget:g.object(),isFullScreen:g.bool.def(!1),iconUrl:g.string.def(""),beforeClickInterrupt:g.func()}),tB=()=>({"open-vote":W()}),oB=e=>{const{props:t}=e,{getEmitter:o}=no();function r(){return H(this,null,function*(){t.beforeClickInterrupt&&ns(t.beforeClickInterrupt)&&(yield t.beforeClickInterrupt())||o().emit(qr.OpenVote)})}return{pendantIconUrl:c.computed(()=>t.iconUrl||JV),onClickPendant:r}},rB=c.defineComponent({__name:"vote-pendant",props:eB(),emits:tB(),setup(e,{emit:t}){const o=e,{$t:r}=Nt(),{onClickPendant:i,pendantIconUrl:n}=oB({props:o}),a=c.computed(()=>({backgroundImage:`url(${n.value})`}));return{__sfc:!0,props:o,emit:t,$t:r,onClickPendant:i,pendantIconUrl:n,pendantStyle:a}}});var iB=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return t.voteTarget&&!t.isFullScreen?o("div",{staticClass:"plv-iar-vote-pendant",style:r.pendantStyle,on:{click:r.onClickPendant}},[o("div",{staticClass:"plv-iar-vote-pendant__text"},[t._v(" "+t._s(r.$t("vote.entrance"))+" ")])]):t._e()},nB=[],aB=so(rB,iB,nB,!1,null,null);const sB=aB.exports,lB=()=>({voteTarget:g.object(),popupConfig:g.object(),layout:g.oneOf(["single","double"]).def("single"),maxVote:g.number.def(0),showRule:g.bool.def(!0),resultShowType:g.number.def(0)}),cB=e=>{const{voteListRef:t}=e,o=c.ref(!1),r=c.ref(),{getEmitter:i}=no();function n(){o.value=!0,c.nextTick(()=>{r.value&&r.value.resetScroll()})}c.watch(o,p=>{p&&c.nextTick(()=>{var u;(u=t==null?void 0:t.value)!=null&&u.recalculateGridRowEnds&&t.value.recalculateGridRowEnds()})});function a(){o.value=!1}function s(){i().emit(qr.OpenVoteRule)}return to(qr.OpenVote,n),{instance:{open:n,close:a},visible:o,popupRef:r,handleToRule:s}},pB=c.defineComponent({__name:"vote-list-popup",props:lB(),setup(e,{expose:t}){const o=e,{$t:r}=Nt(),i=c.ref(),{instance:n,visible:a,popupRef:s,handleToRule:l}=cB({voteListRef:i});return t(n),{__sfc:!0,props:o,$t:r,voteListRef:i,instance:n,visible:a,popupRef:s,handleToRule:l,PwcPopup:nt,VoteListComponent:v0}}});var uB=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o(r.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-list-popup",attrs:{title:r.$t("vote.listTitle"),"popup-config":t.popupConfig,closeable:!1,"body-height-percent":.65,background:"#F7F8Fa"},scopedSlots:t._u([{key:"header-right",fn:function(){return[t.showRule?o("span",{staticClass:"plv-iar-vote-list-popup__rule",on:{click:r.handleToRule}},[t._v(" "+t._s(r.$t("vote.rule"))+" ")]):t._e()]},proxy:!0}]),model:{value:r.visible,callback:function(i){r.visible=i},expression:"visible"}},[o("div",{staticClass:"plv-iar-vote-list-popup__content"},[o(r.VoteListComponent,{ref:"voteListRef",attrs:{"vote-target":t.voteTarget,layout:t.layout,"max-vote":t.maxVote,"show-header":!1,"show-rule":t.showRule,"result-show-type":t.resultShowType},on:{"to-rule":r.handleToRule}})],1)])},dB=[],fB=so(pB,uB,dB,!1,null,null);const mB=fB.exports,hB=()=>({ruleText:g.string.def(""),popupConfig:g.object()}),gB=e=>{const t=c.ref(!1),o=c.ref();function r(){t.value=!0,c.nextTick(()=>{o.value&&o.value.resetScroll()})}function i(){t.value=!1}return to(qr.OpenVoteRule,r),{instance:{open:r,close:i},visible:t,popupRef:o,close:i}},vB=c.defineComponent({__name:"vote-rule-popup",props:hB(),setup(e,{expose:t}){const o=e,{$t:r}=Nt(),{isMobile:i}=Pe(),{instance:n,visible:a,popupRef:s}=gB();return t(n),{__sfc:!0,props:o,$t:r,isMobile:i,instance:n,visible:a,popupRef:s,PwcPopup:nt}}});var wB=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o(r.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-rule-popup",attrs:{title:r.$t("vote.ruleTitle"),"popup-config":t.popupConfig,backable:r.isMobile,background:r.isMobile?"#F7F8Fa":void 0,"body-height-percent":r.isMobile?.65:void 0},model:{value:r.visible,callback:function(i){r.visible=i},expression:"visible"}},[o("div",{staticClass:"plv-iar-vote-rule-popup__content"},[t.ruleText?o("div",{staticClass:"plv-iar-vote-rule-popup__text",domProps:{innerHTML:t._s(t.ruleText)}}):o("div",{staticClass:"plv-iar-vote-rule-popup__empty"},[t._v(" "+t._s(r.$t("vote.noRule"))+" ")])])])},bB=[],_B=so(vB,wB,bB,!1,null,null);const yB=_B.exports;exports.VoteList=v0;exports.VoteListPopup=mB;exports.VotePendant=sB;exports.VoteRulePopup=yB;console.log("%c@polyv/iar-vote-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.2.0-rc-20260402.1]","[buildTime: 2026-04-02 02:23:25]");
1103
+ }`}],staticClass:"pwc-menu-item__content",class:{"is-active":o.isActive&&!o.menuItemProps.iconMode,"is-icon-mode":o.menuItemProps.iconMode},on:{click:o.onClickItem}},[o.hasSlot("icon")||o.menuIcon?t("div",{staticClass:"pwc-menu-item__icon"},[o.hasSlot("icon")?[t(o.renderSlot,{attrs:{"slot-func":()=>o.slotRender("icon",{isActive:o.isActive})}})]:[t(o.menuIcon,{tag:"component"})]],2):e._e(),o.menuItemProps.iconMode?e._e():t("div",{directives:[{name:"show",rawName:"v-show",value:!o.menuProps.collapsed||o.inSubMenuPopper,expression:"!menuProps.collapsed || inSubMenuPopper"}],staticClass:"pwc-menu-item__title"},[o.hasSlot("title")?[t(o.renderSlot,{attrs:{"slot-func":()=>o.slotRender("title")}})]:[e._v(" "+e._s(o.menuItemProps.title)+" ")]],2)])},TR=[],QR=B(kR,PR,TR);const ER=QR.exports,IR=c.defineComponent({__name:"menu-item",props:aR(),setup(e){const t=e,{receiveRouterSlotData:o}=SR({props:t});return{__sfc:!0,props:t,receiveRouterSlotData:o,MenuItemContent:ER}}});var MR=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return o.props.to?t("router-link",{tag:"component",attrs:{to:e.to,custom:""},scopedSlots:e._u([{key:"default",fn:function(r){return[t("a",e._b({staticClass:"pwc-menu-item",attrs:{href:r.href}},"a",o.receiveRouterSlotData(r),!1),[t(o.MenuItemContent)],1)]}}],null,!1,4189994726)}):e.href?t("a",{staticClass:"pwc-menu-item",attrs:{href:e.href}},[t(o.MenuItemContent)],1):t("div",{staticClass:"pwc-menu-item"},[t(o.MenuItemContent)],1)},AR=[],zR=B(IR,MR,AR);const DR=zR.exports,RR={};var OR=function(){var e=this;return e._self._c,e._m(0)},VR=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"pwc-menu-divider"},[t("div")])}],BR=B(RR,OR,VR);const $R=BR.exports;X("PwcMenu",dR);X("PwcSubMenu",LR);X("PwcMenuItem",DR);X("PwcMenuDivider",$R);const FR=()=>G(O(O({},ys()),Ld()),{trigger:g.oneOf(gn).def("click"),placement:g.oneOf(ii).def("top"),feedbackType:g.enum().def(ho.Warning),concise:g.bool.def(!1)}),jR=()=>O({},Fp()),NR=c.defineComponent({__name:"popconfirm",props:FR(),emits:jR(),setup(e,{emit:t}){const o=e,{buttonData:r,onClickConfirm:i,onClickCancel:n}=Np({props:o,emit:t,afterConfirm:()=>{var l;(l=s.value)==null||l.hidePopper()},afterCancel:()=>{var l;(l=s.value)==null||l.hidePopper()}}),a=c.computed(()=>{if(!o.concise)return o.feedbackType}),s=c.ref();return{__sfc:!0,props:o,emit:t,buttonData:r,onClickConfirm:i,onClickCancel:n,popoverFeedbackType:a,popoverRef:s,PwcButton:Be,PwcPopover:Sd}}});var UR=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t(o.PwcPopover,e._b({ref:"popoverRef",staticClass:"pwc-popconfirm",attrs:{trigger:e.trigger,placement:e.placement,"feedback-type":o.popoverFeedbackType},scopedSlots:e._u([{key:"reference",fn:function(){return[e._t("default")]},proxy:!0},{key:"default",fn:function(){return[t("div",{staticClass:"pwc-popconfirm__content"},[e.concise?e._e():e._t("content",function(){return[e._v(e._s(e.content))]}),t("div",{staticClass:"pwc-popconfirm__content__btns",class:{"is-concise":e.concise}},[o.buttonData.showCancelButton?t(o.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:o.onClickCancel}},"pwc-button",o.buttonData.cancelButtonProps,!1)):e._e(),o.buttonData.showConfirmButton?t(o.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:o.onClickConfirm}},"pwc-button",o.buttonData.confirmButtonProps,!1)):e._e()],1)],2)]},proxy:!0}],null,!0)},"pwc-popover",o.props,!1))},WR=[],HR=B(NR,UR,WR);const ZR=HR.exports;X("PwcPopconfirm",ZR);var je=(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))(je||{});function qR(e,t){const o=c.ref((()=>{try{const r=localStorage.getItem(e);if(r)return JSON.parse(r)}catch(r){}return t})());return c.watch(o,r=>{try{localStorage.setItem(e,JSON.stringify(r))}catch(i){}},{deep:!0}),o}const YR=()=>({width:g.number.def(0),height:g.number.def(0),minWidth:g.number.def(50),minHeight:g.number.def(50),maxWidth:g.number.def(1/0),maxHeight:g.number.def(1/0),disabled:g.bool.def(!1),handleSize:g.number.def(8),showHandles:g.oneOfType([Boolean,Array]).def(!0),storageKey:g.string.def("")}),GR=()=>({"resize-start":W(),resize:W(),"resize-end":W()}),XR=e=>{const{props:t,emit:o}=e,r=c.ref(),i=c.ref(!1),n=c.ref(null),a=c.ref({x:0,y:0}),s=c.ref({width:0,height:0}),l={width:t.width,height:t.height},p=t.storageKey?qR(t.storageKey,l):c.ref(l),u=c.computed(()=>{const h={};return t.width&&(h.width=p.value.width+"px"),t.height&&(h.height=p.value.height+"px"),h}),d=h=>t.showHandles===!1||Array.isArray(t.showHandles)&&!t.showHandles.includes(h)?!1:[je.Top,je.Bottom].includes(h)?!!t.height:[je.Left,je.Right].includes(h)?!!t.width:!!t.width&&!!t.height,m=(h,b)=>{t.disabled||(h.preventDefault(),h.stopPropagation(),i.value=!0,n.value=b,a.value={x:h.clientX,y:h.clientY},s.value=O({},p.value),o("resize-start",{width:p.value.width,height:p.value.height,direction:b,event:h}))},f=h=>{if(!i.value||!n.value)return;const b=h.clientX-a.value.x,v=h.clientY-a.value.y;let _=s.value.width,y=s.value.height;switch(n.value){case je.Right:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b));break;case je.Bottom:y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break;case je.Left:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b));break;case je.Top:y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case je.TopRight:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b)),y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case je.TopLeft:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b)),y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case je.BottomRight:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b)),y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break;case je.BottomLeft:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b)),y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break}p.value={width:_,height:y},o("resize",{width:_,height:y,direction:n.value,event:h})},w=h=>{if(!i.value||!n.value)return;i.value=!1;const b=n.value;n.value=null,o("resize-end",{width:p.value.width,height:p.value.height,direction:b,event:h})};return c.onMounted(()=>{document.addEventListener("mousemove",f),document.addEventListener("mouseup",w)}),c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",w)}),{boxStyle:u,containerRef:r,currentSize:p,isResizing:i,showHandleControl:d,handleMouseDown:m}};YR(),GR();const KR=()=>({title:g.looseString,titleTooltip:g.looseString}),JR=c.defineComponent({__name:"section",props:KR(),setup(e){const t=e,{hasSlot:o,slotRender:r}=be(),i=c.computed(()=>o("title-tooltip")||t.titleTooltip);return{__sfc:!0,props:t,hasSlot:o,slotRender:r,hasTitleTooltip:i,PwcTooltip:eu,renderSlot:it}}});var eO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("section",{staticClass:"pwc-section"},[o.hasSlot("title")||e.title?t("div",{staticClass:"pwc-section__title"},[e._t("title",function(){return[e._v(e._s(e.title))]}),o.hasTitleTooltip?[t(o.PwcTooltip,{attrs:{content:e.titleTooltip},scopedSlots:e._u([o.hasSlot("title-tooltip")?{key:"content",fn:function(){return[t(o.renderSlot,{attrs:{"slot-func":()=>o.slotRender("title-tooltip")}})]},proxy:!0}:null],null,!0)})]:e._e()],2):e._e(),t("div",{staticClass:"pwc-section__content"},[e._t("default")],2)])},tO=[],oO=B(JR,eO,tO);const rO=oO.exports;X("PwcSection",rO);const iO=()=>({[g.modelValueKey]:g.oneOfType([Number,Array]).def(0),min:g.number.def(0),max:g.number.def(100),disabled:g.bool.def(!1),showTooltip:g.bool.def(!1),range:g.bool.def(!1),step:g.number.def(1),showStops:g.bool.def(!1),showSliderButton:g.bool.def(!0),marks:g.object(),cssRotateAngle:g.oneOf([0,90,180,270]).def(0),progressBarVisible:g.bool.def(!0),hotAreaHeight:g.number.def(4),sliderBarHeight:g.looseNumber,buttonSize:g.number.def(14)}),nO=()=>G(O({},fe()),{change:W()}),c0=Symbol("slider-inject-key"),aO=e=>{const{props:t,emit:o}=e,{modelValue:r,updateModelValue:i}=ue(t,{outSideUpdate:()=>{S()}}),n=c.ref(0),a=c.ref(0),s=c.ref(!1),l=c.ref(void 0),p=c.ref(),{width:u}=De(p),d=c.ref(),m=c.ref(),f=c.ref(),w=c.computed(()=>Math.min(n.value,a.value)),h=c.computed(()=>Math.max(n.value,a.value)),b=c.computed(()=>t.range?`${100*(h.value-w.value)/(t.max-t.min)}%`:`${100*(n.value-t.min)/(t.max-t.min)}%`),v=c.computed(()=>t.range?`${100*(w.value-t.min)/(t.max-t.min)}%`:"0%"),_=c.computed(()=>G(O({},y.value),{width:b.value,left:v.value})),y=c.computed(()=>{const A={};return t.sliderBarHeight&&(A.height=`${t.sliderBarHeight}px`,A.borderRadius=`${t.sliderBarHeight/2}px`),A}),C=c.computed(()=>{const A=[],I=t.max-t.min,E=M=>{A.includes(M)||A.push(M)};if(t.step&&t.showStops){const M=I/t.step,z=t.step/I;for(let D=1;D<M;D++){const R=Math.round(D*z*100);E(R)}}return t.marks&&Object.keys(t.marks).forEach(M=>{const z=Number(M);if(z>=t.min&&z<=t.max){const D=(z-t.min)/I,R=Math.round(D*100);E(R)}}),A}),x=c.computed(()=>{const A=[],I=t.max-t.min;return t.marks&&Object.keys(t.marks).forEach(E=>{const M=Number(E),z=t.marks[M];let D="",R={};if(typeof z=="string"?D=z:(D=z.label,R=z.style||{}),M>=t.min&&M<=t.max){const V=(M-t.min)/I,j=Math.round(V*100);A.push({label:D,style:R,left:j,value:M})}}),A});function S(){t.range?Array.isArray(r.value)?(n.value=Math.max(t.min,r.value[0]),a.value=Math.min(t.max,r.value[1])):(n.value=t.min,a.value=t.max):typeof r.value!="number"||isNaN(r.value)?n.value=t.min:n.value=Math.min(t.max,Math.max(t.min,r.value))}function k(){let A=r.value;t.range?A=[Math.floor(w.value),Math.floor(h.value)]:A=Math.floor(n.value),A!==r.value&&(l.value=r.value,i(A))}function L(){c.nextTick(()=>{o("change",t.range?[w.value,h.value]:r.value)})}function Q(A){var M;if(!t.range){(M=m.value)==null||M.setPosition(A);return}let I;const E=t.min+A*(t.max-t.min)/100;Math.abs(w.value-E)<Math.abs(h.value-E)?I=n.value<a.value?m.value:f.value:I=n.value>a.value?m.value:f.value,I==null||I.setPosition(A)}function P(A){var I,E;if(!(t.disabled||s.value)){if(t.cssRotateAngle===90){const M=((I=d.value)==null?void 0:I.getBoundingClientRect().top)||0;Q((A.clientY-M)/u.value*100)}else{const M=((E=d.value)==null?void 0:E.getBoundingClientRect().left)||0;Q((A.clientX-M)/u.value*100)}L()}}function T(A){Q(A.left),L()}return c.onMounted(()=>{S()}),c.provide(c0,{sliderProps:t,sliderWidth:u,dragging:s,emitChange:L}),{modelValue:r,firstValue:n,secondValue:a,dragging:s,sliderRef:p,sliderClickRef:d,button1Ref:m,button2Ref:f,barStyle:_,runwayStyle:y,stops:C,markList:x,onSliderClick:P,onClickMark:T,emitInnerInput:k}},p0=()=>c.inject(c0),sO=()=>({value:g.number}),lO=()=>({change:W()}),cO=e=>{const{props:t,emit:o}=e,{sliderProps:r,sliderWidth:i,emitChange:n}=p0(),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(()=>`${(t.value-r.min)/(r.max-r.min)*100}%`),f=c.computed(()=>({left:m.value}));function w(L){let Q,P;switch("touches"in L?(Q=L.touches[0].clientX,P=L.touches[0].clientY):(Q=L.clientX,P=L.clientY),r.cssRotateAngle){case 90:return{clientX:P,clientY:Q};case 180:return{clientX:-Q,clientY:-P};case 270:return{clientX:-P,clientY:Q}}return{clientX:Q,clientY:P}}function h(){r.disabled||(a.value=!0)}function b(){r.disabled||(a.value=!1)}function v(L){if(r.disabled)return;s.value=!0,l.value=!0;const Q=w(L);p.value=Q.clientX,u.value=parseFloat(m.value),d.value=u.value}function _(L){if(!r.disabled&&s.value){l.value=!1;const Q=(w(L).clientX-p.value)/i.value*100;d.value=u.value+Q,k(d.value)}}function y(){r.disabled||ce||s.value&&setTimeout(()=>{s.value=!1,l.value||(k(d.value),n())},0)}function C(L){r.disabled||ce||(v(L),window.addEventListener("mousemove",_),window.addEventListener("touchmove",_),window.addEventListener("mouseup",y),window.addEventListener("touchend",y),window.addEventListener("contextmenu",y))}function x(){window.removeEventListener("mousemove",_),window.removeEventListener("touchmove",_),window.removeEventListener("mouseup",y),window.removeEventListener("touchend",y),window.removeEventListener("contextmenu",y)}c.onBeforeUnmount(()=>{x()});function S(L){let Q=L;return r.step&&(Q=Math.round(L/r.step)*r.step),Q<r.min&&(Q=r.min),Q>r.max&&(Q=r.max),Q}function k(L){if(L===null||isNaN(L))return;L<0?L=0:L>100&&(L=100);const Q=(r.max-r.min)*(L/100),P=r.min+Q;o("change",S(P))}return{hovering:a,dragging:s,btnStyle:f,handleMouseEnter:h,handleMouseLeave:b,onButtonDown:C,setPosition:k}},pO={name:"PlvSliderButton"},uO=c.defineComponent(G(O({},pO),{props:sO(),emits:lO(),setup(e,{expose:t,emit:o}){const r=e,i=p0(),{sliderProps:n}=i,{hovering:a,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=cO({props:r,emit:o}),f=c.computed(()=>s.value||i.dragging.value||!1);return t({setPosition:m}),{__sfc:!0,props:r,emit:o,sliderInject:i,sliderProps:n,hovering:a,buttonDragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m,dragging:f}}}));var dO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{staticClass:"pwc-slider__button",style:o.btnStyle,on:{mouseenter:o.handleMouseEnter,mouseleave:o.handleMouseLeave,mousedown:o.onButtonDown,touchstart:o.onButtonDown}},[t("div",{class:["pwc-slider__button__inner",o.hovering||o.dragging?"pwc-slider__button__inner--hover":"",o.sliderProps.disabled?"pwc-slider__button__inner--disabled":""],style:{width:`${o.sliderProps.buttonSize}px`,height:`${o.sliderProps.buttonSize}px`}})])},fO=[],mO=B(uO,dO,fO);const hO=mO.exports,gO=c.defineComponent({__name:"slider",props:iO(),emits:nO(),setup(e,{emit:t}){const o=e,{firstValue:r,secondValue:i,sliderRef:n,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:w,emitInnerInput:h}=aO({props:o,emit:t});function b(_){r.value=_,h()}function v(_){i.value=_,h()}return{__sfc:!0,props:o,emit:t,firstValue:r,secondValue:i,sliderRef:n,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:w,emitInnerInput:h,onFirstValueChange:b,onSecondValueChange:v,SliderButton:hO}}});var vO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{staticClass:"pwc-slider"},[t("div",{ref:"sliderRef",class:["pwc-slider__runway",o.props.disabled?"pwc-slider__runway--disabled":""],style:o.runwayStyle},[o.props.progressBarVisible?t("div",{staticClass:"pwc-slider__runway__bar",style:o.barStyle}):e._e(),t("div",{ref:"sliderClickRef",staticClass:"pwc-slider__runway__click",style:{height:`${o.props.hotAreaHeight}px`},on:{click:o.onSliderClick}}),e._l(o.stops,function(r){return t("div",{key:`dot-${r}`,staticClass:"pwc-slider__runway__dot",style:{left:`${r}%`}})}),o.props.showSliderButton?t(o.SliderButton,{ref:"button1Ref",attrs:{value:o.firstValue},on:{change:o.onFirstValueChange}}):e._e(),o.props.range&&o.props.showSliderButton?t(o.SliderButton,{ref:"button2Ref",attrs:{value:o.secondValue},on:{change:o.onSecondValueChange}}):e._e()],2),o.markList.length?t("div",{staticClass:"pwc-slider__marks"},e._l(o.markList,function(r,i){return t("div",{key:`mark-${i}`,staticClass:"pwc-slider__marks__item",style:O({left:`${r.left}%`},r.style),on:{click:function(n){return o.onClickMark(r)}}},[e._v(" "+e._s(r.label)+" ")])}),0):e._e()])},wO=[],bO=B(gO,vO,wO);const _O=bO.exports;X("PwcSlider",_O);const yO=()=>({max:g.number.def(3)}),xO=()=>({label:g.looseString}),CO=()=>({click:W()}),u0=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),LO=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(u0,{}),{__sfc:!0,PwcButton:Be,PwcIconMore:Pp,PwcDropdown:qQ,PwcDropdownMenu:YQ}}});var SO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t(o.PwcDropdown,{staticClass:"pwc-table-operation-dropdown",scopedSlots:e._u([{key:"dropdown",fn:function(){return[t(o.PwcDropdownMenu,[e._t("default")],2)]},proxy:!0}],null,!0)},[t(o.PwcButton,{attrs:{link:""}},[t("div",{staticClass:"pwc-table-operation-dropdown__icon"},[t(o.PwcIconMore)],1)])],1)},kO=[],PO=B(LO,SO,kO);const TO=PO.exports,QO=c.defineComponent({props:yO(),setup(e){const t=c.useSlots(),o=c.inject(Bs,void 0),r=Ot(8),i=c.ref();function n(){if(o)return o.allRenderColumnList.value.find(a=>a.columnProps.type==="operation")}return De(i,({width:a})=>{const s=n();s&&s.setOperationWidthRecord(r,a)}),c.onBeforeUnmount(()=>{const a=n();a&&a.removeOperationWidthRecord(r)}),()=>{var m;let a=(m=t.default)==null?void 0:m.call(t);if(!a)return c.h("span",{},"-");let s=0;const l=[],p=[],u=a.reduce((f,w)=>Ae.isCommentVNode(w)?f:f+1,0);u===0&&l.push(c.h("span",{},"-")),a.forEach((f,w)=>{u<=e.max||s<e.max-1?(l.push(f),s++):p.push(f)}),p.length>0&&l.push(c.h(TO,{},vp()?{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:i},l)])}}}),EO=c.defineComponent({__name:"table-operation-item",props:xO(),emits:CO(),setup(e,{emit:t}){const o=e,r=c.inject(u0,void 0);function i(n){t("click",n)}return{__sfc:!0,props:o,emit:t,dropdownInject:r,onClickItem:i,PwcButton:Be,PwcDropdownItem:GQ}}});var IO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return o.dropdownInject?t(o.PwcDropdownItem,{staticClass:"pwc-table-operation-item",nativeOn:{click:function(r){return o.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2):t(o.PwcButton,{staticClass:"pwc-table-operation-item",attrs:{link:""},nativeOn:{click:function(r){return o.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2)},MO=[],AO=B(EO,IO,MO);const zO=AO.exports;X("PwcTableOperation",QO);X("PwcTableOperationItem",zO);const DO=["line","rounded","text"],RO=()=>({[g.modelValueKey]:g.oneOfType([String,Number,Symbol]),type:g.oneOf(DO).def("line"),expand:g.bool.def(!1),lazyLoad:g.bool.def(!1)}),OO=()=>G(O({},fe()),{change:W()}),VO=()=>({name:g.oneOfType([String,Number]),extra:g.looseString,disabled:g.bool.def(!1),title:g.looseString,lazyLoad:g.looseBool}),qs=Symbol("tabs-inject-key"),BO=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:t,tabsProps:o,setCurrentTab:r}=c.inject(qs),{$t:i}=ee(),n=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=at();function p(){return H(this,null,function*(){if(yield c.nextTick(),!n.value||ce)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(()=>t.value.length,()=>{p()},{immediate:!0});function u(d){d.paneProps.disabled||r(d.getPaneName())}return{__sfc:!0,tabPanes:t,tabsProps:o,setCurrentTab:r,$t:i,listRef:n,isMoreItem:a,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:gr,PwcIconUp:Qp,renderSlot:it}}});var $O=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-nav",class:[`is-type-${o.tabsProps.type}`]},[t("div",{ref:"listRef",staticClass:"pwc-tab-nav__list",class:{"is-hide":o.tabsProps.expand&&!o.isExpanded}},e._l(o.tabPanes,function(r){return t("div",{key:r.paneId,staticClass:"pwc-tab-nav__item",class:{"is-active":r.getIsActive(),"is-disabled":r.paneProps.disabled},on:{click:function(i){return o.onClickItem(r)}}},[r.hasSlot("title")?t(o.renderSlot,{staticClass:"pwc-tab-nav__item__title",attrs:{"slot-func":r.getTitleRenderSlot}}):t("span",[e._v(e._s(r.paneProps.title))]),r.hasSlot("extra")?t(o.renderSlot,{staticClass:"pwc-tab-nav__item__extra",attrs:{"slot-func":r.getExtraRenderSlot}}):e._e(),r.paneProps.extra?t("span",{staticClass:"pwc-tab-nav__item__extra"},[e._v(" "+e._s(r.paneProps.extra)+" ")]):e._e()],1)}),0),t("div",{staticClass:"pwc-tab-nav__right"},[o.tabsProps.expand&&o.isMoreItem?t("div",{staticClass:"pwc-tab-nav__expand",on:{click:o.toggle}},[t("span",[e._v(e._s(o.isExpanded?o.$t("tabs.collapse"):o.$t("tabs.more")))]),o.isExpanded?t(o.PwcIconUp):t(o.PwcIconDown)],1):e._e()])])},FO=[],jO=B(BO,$O,FO);const NO=jO.exports,UO=c.defineComponent({__name:"tabs",props:RO(),emits:OO(),setup(e,{emit:t}){const o=e,r=c.ref(),i=c.ref(),{modelValue:n,updateModelValue:a}=ue(o,{outSideUpdate:w=>{r.value=w}}),s=c.ref([]);function l(w){if(!s.value.includes(w)){if(typeof r.value>"u")if(typeof n.value>"u"){const h=w.getPaneName();u(h,!1)}else u(n.value,!1);s.value.push(w)}}function p(w){s.value=s.value.filter(h=>h!==w)}function u(w,h=!0){r.value!==w&&(r.value=w,a(w),h&&t("change",w))}const d=c.ref(0);function m(){return H(this,null,function*(){var b;yield c.nextTick();const w=((b=i.value)==null?void 0:b.querySelectorAll("[data-pane-name]"))||[];let h=0;for(let v=0;v<w.length;v++)if(w[v].getAttribute("data-is-active")==="true"){h=v*100;break}d.value=h})}c.watch(()=>r.value,()=>{m()});const f={tabsProps:o,currentTab:r,tabPanes:s,setCurrentTab:u,addTabPane:l,removeTabPane:p};return c.provide(qs,f),{__sfc:!0,props:o,emits:t,currentTab:r,tabsRef:i,modelValue:n,updateModelValue:a,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:NO}}});var WO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{ref:"tabsRef",staticClass:"pwc-tabs"},[t(o.TabNav),t("div",{staticClass:"pwc-tabs__content"},[t("div",{staticClass:"pwc-tabs__list",style:{marginLeft:`-${o.offsetPercent}%`}},[e._t("default")],2)])],1)},HO=[],ZO=B(UO,WO,HO);const qO=ZO.exports,YO=c.defineComponent({__name:"tab-pane",props:VO(),setup(e){const t=e,o=Ot(8),r=c.inject(qs),{hasSlot:i,slotRender:n}=be(),a=c.computed(()=>t.name||o),s=c.computed(()=>r.currentTab.value===a.value);function l(){return n("title",{isActive:s.value})}const p=c.computed(()=>{var f;return(f=t.lazyLoad)!=null?f:r.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:o,paneProps:t,getPaneName:()=>a.value,getIsActive:()=>s.value,hasSlot:i,getTitleRenderSlot:l,getExtraRenderSlot:()=>n("extra")};return c.onBeforeMount(()=>{r.addTabPane(m)}),{__sfc:!0,props:t,paneId:o,tabsInject:r,hasSlot:i,slotRender:n,tabPaneName:a,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var GO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-pane",class:{"is-active":o.isActive},attrs:{"data-pane-name":o.tabPaneName,"data-is-active":o.isActive}},[o.canRender?t("div",{staticClass:"pwc-tab-pane__content"},[e._t("default")],2):e._e()])},XO=[],KO=B(YO,GO,XO);const JO=KO.exports;X("PwcTabs",qO);X("PwcTabPane",JO);var i1={},eV,tV;function oV(e,t,o,n){var i=0,n=n===void 0?{}:n,a=n.loop===void 0?null:n.loop,s=n.palette===void 0?null:n.palette;if(t<=0||o<=0||t>65535||o>65535)throw new Error("Width/Height invalid.");function l(b){var v=b.length;if(v<2||v>256||v&v-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return v}e[i++]=71,e[i++]=73,e[i++]=70,e[i++]=56,e[i++]=57,e[i++]=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[i++]=t&255,e[i++]=t>>8&255,e[i++]=o&255,e[i++]=o>>8&255,e[i++]=(s!==null?128:0)|p,e[i++]=u,e[i++]=0,s!==null)for(var m=0,f=s.length;m<f;++m){var w=s[m];e[i++]=w>>16&255,e[i++]=w>>8&255,e[i++]=w&255}if(a!==null){if(a<0||a>65535)throw new Error("Loop count invalid.");e[i++]=33,e[i++]=255,e[i++]=11,e[i++]=78,e[i++]=69,e[i++]=84,e[i++]=83,e[i++]=67,e[i++]=65,e[i++]=80,e[i++]=69,e[i++]=50,e[i++]=46,e[i++]=48,e[i++]=3,e[i++]=1,e[i++]=a&255,e[i++]=a>>8&255,e[i++]=0}var h=!1;this.addFrame=function(b,v,_,y,C,x){if(h===!0&&(--i,h=!1),x=x===void 0?{}:x,b<0||v<0||b>65535||v>65535)throw new Error("x/y invalid.");if(_<=0||y<=0||_>65535||y>65535)throw new Error("Width/Height invalid.");if(C.length<_*y)throw new Error("Not enough pixels for the frame size.");var S=!0,k=x.palette;if(k==null&&(S=!1,k=s),k==null)throw new Error("Must supply either a local or global palette.");for(var L=l(k),Q=0;L>>=1;)++Q;L=1<<Q;var P=x.delay===void 0?0:x.delay,T=x.disposal===void 0?0:x.disposal;if(T<0||T>3)throw new Error("Disposal out of range.");var A=!1,I=0;if(x.transparent!==void 0&&x.transparent!==null&&(A=!0,I=x.transparent,I<0||I>=L))throw new Error("Transparent color index.");if((T!==0||A||P!==0)&&(e[i++]=33,e[i++]=249,e[i++]=4,e[i++]=T<<2|(A===!0?1:0),e[i++]=P&255,e[i++]=P>>8&255,e[i++]=I,e[i++]=0),e[i++]=44,e[i++]=b&255,e[i++]=b>>8&255,e[i++]=v&255,e[i++]=v>>8&255,e[i++]=_&255,e[i++]=_>>8&255,e[i++]=y&255,e[i++]=y>>8&255,e[i++]=S===!0?128|Q-1:0,S===!0)for(var E=0,M=k.length;E<M;++E){var z=k[E];e[i++]=z>>16&255,e[i++]=z>>8&255,e[i++]=z&255}return i=rV(e,i,Q<2?2:Q,C),i},this.end=function(){return h===!1&&(e[i++]=59,h=!0),i},this.getOutputBuffer=function(){return e},this.setOutputBuffer=function(b){e=b},this.getOutputBufferPosition=function(){return i},this.setOutputBufferPosition=function(b){i=b}}function rV(e,t,o,r){e[t++]=o;var i=t++,n=1<<o,a=n-1,s=n+1,l=s+1,p=o+1,u=0,d=0;function m(x){for(;u>=x;)e[t++]=d&255,d>>=8,u-=8,t===i+256&&(e[i]=255,i=t++)}function f(x){d|=x<<u,u+=p,m(8)}var w=r[0]&a,h={};f(n);for(var b=1,v=r.length;b<v;++b){var _=r[b]&a,y=w<<8|_,C=h[y];if(C===void 0){for(d|=w<<u,u+=p;u>=8;)e[t++]=d&255,d>>=8,u-=8,t===i+256&&(e[i]=255,i=t++);l===4096?(f(n),l=s+1,p=o+1,h={}):(l>=1<<p&&++p,h[y]=l++),w=_}else w=C}return f(w),f(s),m(1),i+1===t?e[i]=0:(e[i]=t-i-1,e[t++]=0),t}function iV(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!==56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var o=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],n=i>>7,a=i&7,s=1<<a+1;e[t++],e[t++];var l=null,p=null;n&&(l=t,p=s,t+=s*3);var u=!0,d=[],m=0,f=null,w=0,h=null;for(this.width=o,this.height=r;u&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,h=e[t++]|e[t++]<<8,t++;else for(t+=12;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var v=e[t++];m=e[t++]|e[t++]<<8,f=e[t++],v&1||(f=null),w=v>>2&7,t++;break;case 254:for(;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var _=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,C=e[t++]|e[t++]<<8,x=e[t++]|e[t++]<<8,S=e[t++],k=S>>7,L=S>>6&1,Q=S&7,P=1<<Q+1,T=l,A=p,I=!1;if(k){var I=!0;T=t,A=P,t+=P*3}var E=t;for(t++;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}d.push({x:_,y,width:C,height:x,has_local_palette:I,palette_offset:T,palette_size:A,data_offset:E,data_length:t-E,transparent_index:f,interlaced:!!L,delay:m,disposal:w});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return h},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,z){var D=this.frameInfo(M),R=D.width*D.height,V=new Uint8Array(R);n1(e,D.data_offset,V,R);var j=D.palette_offset,$=D.transparent_index;$===null&&($=256);var N=D.width,U=o-N,Z=N,Y=(D.y*o+D.x)*4,K=((D.y+D.height)*o+D.x)*4,te=Y,oe=U*4;D.interlaced===!0&&(oe+=o*4*7);for(var J=8,ae=0,me=V.length;ae<me;++ae){var ve=V[ae];if(Z===0&&(te+=oe,Z=N,te>=K&&(oe=U*4+o*4*(J-1),te=Y+(N+U)*(J<<1),J>>=1)),ve===$)te+=4;else{var Ee=e[j+ve*3],bt=e[j+ve*3+1],_t=e[j+ve*3+2];z[te++]=_t,z[te++]=bt,z[te++]=Ee,z[te++]=255}--Z}},this.decodeAndBlitFrameRGBA=function(M,z){var D=this.frameInfo(M),R=D.width*D.height,V=new Uint8Array(R);n1(e,D.data_offset,V,R);var j=D.palette_offset,$=D.transparent_index;$===null&&($=256);var N=D.width,U=o-N,Z=N,Y=(D.y*o+D.x)*4,K=((D.y+D.height)*o+D.x)*4,te=Y,oe=U*4;D.interlaced===!0&&(oe+=o*4*7);for(var J=8,ae=0,me=V.length;ae<me;++ae){var ve=V[ae];if(Z===0&&(te+=oe,Z=N,te>=K&&(oe=U*4+o*4*(J-1),te=Y+(N+U)*(J<<1),J>>=1)),ve===$)te+=4;else{var Ee=e[j+ve*3],bt=e[j+ve*3+1],_t=e[j+ve*3+2];z[te++]=Ee,z[te++]=bt,z[te++]=_t,z[te++]=255}--Z}}}function n1(e,t,o,r){for(var i=e[t++],n=1<<i,a=n+1,s=a+1,l=i+1,p=(1<<l)-1,u=0,d=0,m=0,f=e[t++],w=new Int32Array(4096),h=null;;){for(;u<16&&f!==0;)d|=e[t++]<<u,u+=8,f===1?f=e[t++]:--f;if(u<l)break;var b=d&p;if(d>>=l,u-=l,b===n){s=a+1,l=i+1,p=(1<<l)-1,h=null;continue}else if(b===a)break;for(var v=b<s?b:h,_=0,y=v;y>n;)y=w[y]>>8,++_;var C=y,x=m+_+(v!==b?1:0);if(x>r){console.log("Warning, gif stream longer than expected.");return}o[m++]=C,m+=_;var S=m;for(v!==b&&(o[m++]=C),y=v;_--;)y=w[y],o[--S]=y&255,y>>=8;h!==null&&s<4096&&(w[s++]=h<<8|C,s>=p+1&&l<12&&(++l,p=p<<1|1)),h=b}return m!==r&&console.log("Warning, gif stream shorter than expected."),o}try{tV=i1.GifWriter=oV,eV=i1.GifReader=iV}catch(e){}const nV=e=>{const{configProviderData:t}=Bt();function o(r){var i;if(t!=null&&t.trackEventCallback){t.trackEventCallback(r);return}(i=e.trackEvent)==null||i.call(e,r)}return{trackEvent:o}};function aV(e,t,o={}){function r(){if(e)for(const n in t)t[n]&&e.on(n,t[n])}function i(){if(e)for(const n in t)t[n]&&e.off(n,t[n])}return fn({listenEvent:r,removeEvent:i},o),{listenEvent:r,removeEvent:i}}const sV={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"}},lV={vote:sV},cV={option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}},pV={vote:cV},uV={option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}},dV={vote:uV},fV={option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}},mV={vote:fV},hV={option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}},gV={vote:hV},vV={option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}},wV={vote:vV},{useI18n:Nt}=$p({zh_CN:gV,zh_TW:wV,en:lV,ja:pV,ko:dV,ru:mV}),bV=()=>({status:g.oneOf(["Y","N"]).def("Y"),isVoted:g.bool.isRequired,disabled:g.bool.def(!1),hasVoteList:g.bool.def(!1)}),_V=()=>({click:W()}),yV=e=>{const{props:t,emit:o}=e,{$t:r}=Nt(),i=c.computed(()=>t.isVoted?"voted":t.status==="N"?"not-voted":t.disabled?"disabled":"vote"),n={vote:r("vote.button.vote"),voted:r("vote.button.voted"),"not-voted":r("vote.button.notVoted"),disabled:r("vote.button.vote")},a=c.computed(()=>n[i.value]);function s(){i.value==="vote"&&o("click")}return{buttonType:i,buttonText:a,handleClick:s}},xV=c.defineComponent({__name:"vote-button",props:bV(),emits:_V(),setup(e,{emit:t}){const o=e,{buttonType:r,buttonText:i,handleClick:n}=yV({props:o,emit:t});return{__sfc:!0,props:o,emit:t,buttonType:r,buttonText:i,handleClick:n,PwcButton:Be}}});function so(e,t,o,r,i,n,a,s){var l=typeof e=="function"?e.options:e;return t&&(l.render=t,l.staticRenderFns=o,l._compiled=!0),n&&(l._scopeId="data-v-"+n),{exports:e,options:l}}var CV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{staticClass:"plv-iar-vote-button",class:{"plv-iar-vote-button--no-pointer":r.props.hasVoteList}},[r.buttonType==="vote"?o(r.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:r.props.disabled},on:{click:r.handleClick}},[t._v(" "+t._s(r.buttonText)+" ")]):r.buttonType==="not-voted"||r.buttonType==="disabled"?o(r.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:""}},[t._v(" "+t._s(r.buttonText)+" ")]):o(r.PwcButton,{staticClass:"plv-iar-vote-button__text",attrs:{size:"mini",disabled:r.props.status==="N"||r.props.disabled}},[t._v(" "+t._s(r.buttonText)+" ")])],1)},LV=[],SV=so(xV,CV,LV,!1,null,"6ba928d5");const d0=SV.exports,kV=()=>({status:g.oneOf(["Y","N"]).def("Y")}),PV=()=>({}),TV=e=>{const{props:t}=e,{$t:o}=Nt();return{statusText:c.computed(()=>t.status==="Y"?o("vote.status.voting"):o("vote.status.ended"))}},QV=c.defineComponent({__name:"vote-status",props:kV(),emits:PV(),setup(e,{emit:t}){const o=e,{statusText:r}=TV({props:o});return{__sfc:!0,props:o,emit:t,statusText:r}}});var EV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{staticClass:"plv-iar-vote-status",class:{"plv-iar-vote-status--voting":t.status==="Y","plv-iar-vote-status--ended":t.status==="N"}},[t._v(" "+t._s(r.statusText)+" ")])},IV=[],MV=so(QV,EV,IV,!1,null,"c99114e4");const f0=MV.exports,m0=()=>({voteData:g.object().isRequired,votedList:g.array().def([]),layout:g.oneOf(["single","double"]).def("single"),clickable:g.bool.def(!0),hasVoteList:g.bool.def(!1)}),h0=()=>({"to-vote":W()}),g0=e=>{const{props:t,emit:o,itemRef:r}=e,i=c.ref({gridRowEnd:"auto"}),n=c.computed(()=>t.votedList.includes(t.voteData.id)),a=c.computed(()=>!t.clickable);function s(){a.value||o("to-vote",t.voteData.id)}return{isVoted:n,isDisabled:a,gridRowEndStyle:i,handleVote:s}},AV=c.defineComponent({__name:"vote-item-single",props:m0(),emits:h0(),setup(e,{emit:t}){const o=e,{$t:r}=Nt(),{isVoted:i,isDisabled:n,handleVote:a}=g0({props:o,emit:t});return{__sfc:!0,$t:r,props:o,emit:t,isVoted:i,isDisabled:n,handleVote:a,VoteButton:d0,VoteStatus:f0}}});var zV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-single",class:{"plv-iar-vote-list-item-image":!!t.voteData.voteCoverImage,"plv-iar-vote-list-item-no-image":!t.voteData.voteCoverImage}},[t.voteData.voteCoverImage?[o("div",{staticClass:"plv-iar-vote-list-item-bg"},[o("div",{staticClass:"plv-iar-vote-list-item-bg-image",style:{backgroundImage:`url(${t.voteData.voteCoverImage})`}}),o("div",{staticClass:"plv-iar-vote-list-item-bg-mask"})])]:t._e(),o("div",{staticClass:"plv-iar-vote-list-item-content"},[o("div",{staticClass:"plv-iar-vote-list-item-content-info"},[o("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top"},[t.voteData.status?o(r.VoteStatus,{staticClass:"plv-iar-vote-list-item-content-info-left-top-item",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?o("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top-item plv-iar-vote-list-item-content-info-count"},[t._v(" "+t._s(t.voteData.voteCount||0)+" "+t._s(r.$t("vote.count"))+" ")]):t._e()],1),o("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[t._v(t._s(t.voteData.name))])]),o(r.VoteButton,{attrs:{status:t.voteData.status,"is-voted":r.isVoted,disabled:r.isDisabled,"has-vote-list":r.props.hasVoteList},on:{click:r.handleVote}})],1)],2)},DV=[],RV=so(AV,zV,DV,!1,null,"d0e638ec");const OV=RV.exports,VV=c.defineComponent({__name:"vote-item-double",props:m0(),emits:h0(),setup(e,{expose:t,emit:o}){const r=e,{$t:i}=Nt(),n=c.ref(),{isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p}=g0({props:r,emit:o,itemRef:n});let u=null;const d=12;function m(h=d){if(!n.value)return;const b=n.value.offsetHeight;if(b>0){const v=Math.ceil(b/h);l.value={gridRowEnd:`span ${v}`}}}function f(){n.value&&(u&&(u.disconnect(),u=null),u=new x1(()=>{m(d)}),u.observe(n.value),m(d))}function w(){u&&(u.disconnect(),u=null)}return c.watch(n,h=>{w(),h&&f()},{immediate:!0}),c.onBeforeUnmount(()=>{w()}),t({calculateGridRowEnd:m,itemRef:n}),{__sfc:!0,$t:i,props:r,emit:o,itemRef:n,isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p,resizeObserver:u,GAP:d,calculateGridRowEnd:m,setupResizeObserver:f,cleanupResizeObserver:w,VoteButton:d0,VoteStatus:f0}}});var BV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{ref:"itemRef",staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-double",style:r.gridRowEndStyle},[o("div",{staticClass:"plv-iar-vote-list-item-content-container"},[t.voteData.voteCoverImage?[o("div",{staticClass:"plv-iar-vote-list-item-image",style:{backgroundImage:`url(${t.voteData.voteCoverImage})`}},[o("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[t.voteData.status?o(r.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-image-status",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?o("div",{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-content-info-count"},[t._v(" "+t._s(t.voteData.voteCount||0)+" "+t._s(r.$t("vote.count"))+" ")]):t._e()],1)])]:t._e(),o("div",{staticClass:"plv-iar-vote-list-item-content"},[o("div",{staticClass:"plv-iar-vote-list-item-content-info"},[t.voteData.voteCoverImage?t._e():o("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[t.voteData.status?o(r.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?o("div",{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-content-info-count"},[t._v(" "+t._s(t.voteData.voteCount||0)+" "+t._s(r.$t("vote.count"))+" ")]):t._e()],1),o("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[t._v(t._s(t.voteData.name))])]),o(r.VoteButton,{attrs:{status:t.voteData.status,"is-voted":r.isVoted,disabled:r.isDisabled,"has-vote-list":r.props.hasVoteList},on:{click:r.handleVote}})],1)],2)])},$V=[],FV=so(VV,BV,$V,!1,null,"214a02c3");const jV=FV.exports,qr={OpenVote:"OpenVote",OpenVoteRule:"OpenVoteRule"};function NV(e){const{state:t,onShow:o,onGetVoteList:r}=e,{list:i,curVotedList:n,cacheVotedList:a,voteCount:s,isForceHideResult:l,isForceShowResult:p,findVoteById:u}=t;function d(_){n.value=_.curVotedList}function m(_){const y=_.voteData.id,C=u(y)[0];C!==-1&&i.value.splice(C,1);const x=n.value.findIndex(Q=>Q===y);x!==-1&&n.value.splice(x,1);const S=a.value.findIndex(Q=>Q===y);S!==-1&&a.value.splice(S,1);const k=_.voteData.voteOrder||0;let L=i.value.length;for(let Q=0;Q<i.value.length;Q++)if((i.value[Q].voteOrder||0)>=k){L=Q;break}p.value&&(_.voteData.showVoteCount=!0,_.voteData.voteCount=0),i.value.splice(L,0,_.voteData),o()}function f(_){const y=u(_.id)[1];y&&(y.status="N")}function w(_){s.value=_.voteCount,_.list.forEach(y=>{const C=u(y.id)[1];C&&(C.showVoteCount=!l.value,C.voteCount=y.times)})}function h(){i.value.splice(0,i.value.length)}function b(_){const y=u(_.id)[0];y!==-1&&i.value.splice(y,1)}function v(_){const y=Math.floor(Math.random()*3e3);setTimeout(()=>{r()},y)}return{updateVotedList:d,onVoteStart:m,onVoteStop:f,onVoteResult:w,onVoteDeleteAll:h,onVoteDelete:b,onVoteChangeOrder:v}}function UV(e){const{voteTarget:t,state:o,onShowEntrance:r}=e,{list:i,curVotedList:n,cacheVotedList:a,isVotedWithLimit:s,voteCount:l,isForceHideResult:p,findVoteById:u}=o,{toast:d}=Ft(),{$t:m}=Nt(),{trackEvent:f}=nV((t==null?void 0:t.interactionCore)||{});function w(){return H(this,null,function*(){t&&(n.value=t.getVotedList())})}function h(){return H(this,null,function*(){if(!t)return;const C=yield t.getVoteList();if(C&&C.code===200&&C.data){i.value=C.data.list,i.value.length>0&&r(!0);const x=t.getCachedVoteResult();x&&x.forEach(S=>{const k=u(S.id)[1];k&&(k.showVoteCount=!p.value,k.voteCount=S.times)})}})}const b=us(h,1e3);function v(C){return H(this,null,function*(){if(t&&a.value.indexOf(C)===-1){a.value.push(C);const x=yield t.toVote(C);if(x.code===200)t.pushVotedList(C),d.success(m("vote.success"));else if(x.code===506)d.info(m("vote.voted")),t.pushVotedList(C);else{x.code===501?(s.value=!0,d.error(m("vote.voteLimit"))):d.error(x.message||m("vote.voteFailed"));const S=a.value.indexOf(C);S!==-1&&a.value.splice(S,1)}_()}})}function _(){t&&f({event_id:"click_vote_widget",event_type:"click",spec_attrs:{timestamp:Date.now()}})}function y(){t&&t.interactionCore.getSocket().then(C=>{C&&C.on("connect",()=>{b()})})}return{getVotedList:w,getVoteList:b,toVote:v,setupSocketListener:y}}function WV(e){const{resultShowType:t}=e,o=c.ref([]),r=c.ref([]),i=c.ref([]),n=c.ref(!1),a=c.ref(0),s=c.computed(()=>r.value.length),l=c.computed(()=>t===3&&a.value===0&&i.value.length===0),p=c.computed(()=>t===2||t===3&&(a.value>0||r.value.length>0));function u(d){const m=o.value.findIndex(f=>f.id===d);return[m,o.value[m]]}return{list:o,curVotedList:r,cacheVotedList:i,isVotedWithLimit:n,voteCount:a,isForceHideResult:l,isForceShowResult:p,votedCount:s,findVoteById:u}}const HV=()=>({voteTarget:g.object(),layout:g.oneOf(["single","double"]).def("single"),voteList:g.array(),maxVote:g.number.def(0),showHeader:g.bool.def(!0),showRule:g.bool.def(!0),resultShowType:g.number.def(0)}),ZV=()=>({"to-show":()=>!0,"to-hide":()=>!0,"show-entrance":W()}),qV=e=>{var v,_,y,C,x,S,k;const{props:t,emit:o}=e,{getEmitter:r}=no(),{voteTarget:i={}}=t,n=WV({resultShowType:t.resultShowType}),a=UV({voteTarget:i,state:n,onShowEntrance:L=>o("show-entrance",L)}),{updateVotedList:s,onVoteStart:l,onVoteStop:p,onVoteResult:u,onVoteDeleteAll:d,onVoteDelete:m,onVoteChangeOrder:f}=NV({state:n,onShow:()=>o("to-show"),onGetVoteList:()=>a.getVoteList()});function w(){r().emit(qr.OpenVoteRule)}function h(L){if(n.curVotedList.value.indexOf(L)!==-1||n.isVotedWithLimit.value)return!1;const P=Number(t.maxVote)||0;return P>0?n.votedCount.value<P:!0}function b(){t.voteList&&t.voteList.length>0||(a.setupSocketListener(),a.getVoteList(),a.getVotedList())}return aV(i.eventEmitter,{[(v=i.VoteEvent)==null?void 0:v.UpdateVotedList]:s,[(_=i.VoteEvent)==null?void 0:_.Start]:l,[(y=i.VoteEvent)==null?void 0:y.Stop]:p,[(C=i.VoteEvent)==null?void 0:C.VoteResult]:u,[(x=i.VoteEvent)==null?void 0:x.DeleteAll]:d,[(S=i.VoteEvent)==null?void 0:S.Delete]:m,[(k=i.VoteEvent)==null?void 0:k.UpdateVoteOrder]:f}),c.onMounted(()=>{t.voteTarget&&b()}),c.watch(()=>t.voteTarget,L=>{L&&b()},{immediate:!0}),c.watch(()=>t.voteList,L=>{L!=null&&(n.list.value=[...L])},{immediate:!0,deep:!0}),{list:n.list,curVotedList:n.curVotedList,handleToVote:a.toVote,handleRule:w,isItemClickable:h}},YV=c.defineComponent({__name:"vote-list",props:HV(),emits:ZV(),setup(e,{emit:t}){const o=e,{$t:r}=Nt(),{list:i,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l}=qV({props:o,emit:t});return{__sfc:!0,$t:r,props:o,emit:t,list:i,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l,PwcEmpty:ni,VoteItemSingle:OV,VoteItemDouble:jV}}});var GV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{staticClass:"plv-iar-vote"},[r.list.length?o("div",{staticClass:"plv-iar-vote__container"},[t.showHeader?o("div",{staticClass:"plv-iar-vote__container__header"},[o("span",[t._v(t._s(r.$t("vote.option")))]),r.props.showRule?o("span",{class:{"plv-iar-vote__container__header__rule--no-pointer":r.props.voteList&&r.props.voteList.length>0},on:{click:r.handleRule}},[t._v(t._s(r.$t("vote.rule")))]):t._e()]):t._e(),o("div",{staticClass:"plv-iar-vote__list",class:{"plv-iar-vote__list--single":t.layout==="single","plv-iar-vote__list--double":t.layout==="double"}},t._l(r.list,function(i){return o(t.layout==="single"?r.VoteItemSingle:r.VoteItemDouble,{key:i.id,tag:"component",attrs:{"vote-data":i,"voted-list":r.curVotedList,clickable:r.isItemClickable(i.id),"has-vote-list":!!(r.props.voteList&&r.props.voteList.length>0)},on:{"to-vote":r.handleToVote}})}),1)]):o("div",{staticClass:"plv-iar-vote__no-data"},[o(r.PwcEmpty)],1)])},XV=[],KV=so(YV,GV,XV,!1,null,null);const v0=KV.exports,JV="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",eB=()=>({voteTarget:g.object(),isFullScreen:g.bool.def(!1),iconUrl:g.string.def(""),beforeClickInterrupt:g.func()}),tB=()=>({"open-vote":W()}),oB=e=>{const{props:t}=e,{getEmitter:o}=no();function r(){return H(this,null,function*(){t.beforeClickInterrupt&&ns(t.beforeClickInterrupt)&&(yield t.beforeClickInterrupt())||o().emit(qr.OpenVote)})}return{pendantIconUrl:c.computed(()=>t.iconUrl||JV),onClickPendant:r}},rB=c.defineComponent({__name:"vote-pendant",props:eB(),emits:tB(),setup(e,{emit:t}){const o=e,{$t:r}=Nt(),{onClickPendant:i,pendantIconUrl:n}=oB({props:o}),a=c.computed(()=>({backgroundImage:`url(${n.value})`}));return{__sfc:!0,props:o,emit:t,$t:r,onClickPendant:i,pendantIconUrl:n,pendantStyle:a}}});var iB=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return t.voteTarget&&!t.isFullScreen?o("div",{staticClass:"plv-iar-vote-pendant",style:r.pendantStyle,on:{click:r.onClickPendant}},[o("div",{staticClass:"plv-iar-vote-pendant__text"},[t._v(" "+t._s(r.$t("vote.entrance"))+" ")])]):t._e()},nB=[],aB=so(rB,iB,nB,!1,null,null);const sB=aB.exports,lB=()=>({voteTarget:g.object(),popupConfig:g.object(),layout:g.oneOf(["single","double"]).def("single"),maxVote:g.number.def(0),showRule:g.bool.def(!0),resultShowType:g.number.def(0)}),cB=e=>{const{voteListRef:t}=e,o=c.ref(!1),r=c.ref(),{getEmitter:i}=no();function n(){o.value=!0,c.nextTick(()=>{r.value&&r.value.resetScroll()})}c.watch(o,p=>{p&&c.nextTick(()=>{var u;(u=t==null?void 0:t.value)!=null&&u.recalculateGridRowEnds&&t.value.recalculateGridRowEnds()})});function a(){o.value=!1}function s(){i().emit(qr.OpenVoteRule)}return to(qr.OpenVote,n),{instance:{open:n,close:a},visible:o,popupRef:r,handleToRule:s}},pB=c.defineComponent({__name:"vote-list-popup",props:lB(),setup(e,{expose:t}){const o=e,{$t:r}=Nt(),i=c.ref(),{instance:n,visible:a,popupRef:s,handleToRule:l}=cB({voteListRef:i});return t(n),{__sfc:!0,props:o,$t:r,voteListRef:i,instance:n,visible:a,popupRef:s,handleToRule:l,PwcPopup:nt,VoteListComponent:v0}}});var uB=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o(r.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-list-popup",attrs:{title:r.$t("vote.listTitle"),"popup-config":t.popupConfig,closeable:!1,"body-height-percent":.65,background:"#F7F8Fa"},scopedSlots:t._u([{key:"header-right",fn:function(){return[t.showRule?o("span",{staticClass:"plv-iar-vote-list-popup__rule",on:{click:r.handleToRule}},[t._v(" "+t._s(r.$t("vote.rule"))+" ")]):t._e()]},proxy:!0}]),model:{value:r.visible,callback:function(i){r.visible=i},expression:"visible"}},[o("div",{staticClass:"plv-iar-vote-list-popup__content"},[o(r.VoteListComponent,{ref:"voteListRef",attrs:{"vote-target":t.voteTarget,layout:t.layout,"max-vote":t.maxVote,"show-header":!1,"show-rule":t.showRule,"result-show-type":t.resultShowType},on:{"to-rule":r.handleToRule}})],1)])},dB=[],fB=so(pB,uB,dB,!1,null,null);const mB=fB.exports,hB=()=>({ruleText:g.string.def(""),popupConfig:g.object()}),gB=e=>{const t=c.ref(!1),o=c.ref();function r(){t.value=!0,c.nextTick(()=>{o.value&&o.value.resetScroll()})}function i(){t.value=!1}return to(qr.OpenVoteRule,r),{instance:{open:r,close:i},visible:t,popupRef:o,close:i}},vB=c.defineComponent({__name:"vote-rule-popup",props:hB(),setup(e,{expose:t}){const o=e,{$t:r}=Nt(),{isMobile:i}=Pe(),{instance:n,visible:a,popupRef:s}=gB();return t(n),{__sfc:!0,props:o,$t:r,isMobile:i,instance:n,visible:a,popupRef:s,PwcPopup:nt}}});var wB=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o(r.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-rule-popup",attrs:{title:r.$t("vote.ruleTitle"),"popup-config":t.popupConfig,backable:r.isMobile,background:r.isMobile?"#F7F8Fa":void 0,"body-height-percent":r.isMobile?.65:void 0},model:{value:r.visible,callback:function(i){r.visible=i},expression:"visible"}},[o("div",{staticClass:"plv-iar-vote-rule-popup__content"},[t.ruleText?o("div",{staticClass:"plv-iar-vote-rule-popup__text",domProps:{innerHTML:t._s(t.ruleText)}}):o("div",{staticClass:"plv-iar-vote-rule-popup__empty"},[t._v(" "+t._s(r.$t("vote.noRule"))+" ")])])])},bB=[],_B=so(vB,wB,bB,!1,null,null);const yB=_B.exports;exports.VoteList=v0;exports.VoteListPopup=mB;exports.VotePendant=sB;exports.VoteRulePopup=yB;console.log("%c@polyv/iar-vote-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.2.0]","[buildTime: 2026-04-03 07:31:10]");
package/index.es.js CHANGED
@@ -30495,8 +30495,8 @@ const WB = VB.exports;
30495
30495
  console.log(
30496
30496
  "%c@polyv/iar-vote-ui",
30497
30497
  "background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
30498
- "[version: 2.2.0-rc-20260402.1]",
30499
- "[buildTime: 2026-04-02 02:23:25]"
30498
+ "[version: 2.2.0]",
30499
+ "[buildTime: 2026-04-03 07:31:10]"
30500
30500
  );
30501
30501
  export {
30502
30502
  wB as VoteList,
package/index.umd.js CHANGED
@@ -1100,4 +1100,4 @@ ${_i(o)}`),r}})}function M0(e){const t=Object.keys(e),o=t.filter(i=>{var a;retur
1100
1100
  effect: tooltipEffect,
1101
1101
  popperOffset: tooltipOffset,
1102
1102
  tooltipClass: 'pwc-menu-item__tooltip',
1103
- }`}],staticClass:"pwc-menu-item__content",class:{"is-active":o.isActive&&!o.menuItemProps.iconMode,"is-icon-mode":o.menuItemProps.iconMode},on:{click:o.onClickItem}},[o.hasSlot("icon")||o.menuIcon?t("div",{staticClass:"pwc-menu-item__icon"},[o.hasSlot("icon")?[t(o.renderSlot,{attrs:{"slot-func":()=>o.slotRender("icon",{isActive:o.isActive})}})]:[t(o.menuIcon,{tag:"component"})]],2):e._e(),o.menuItemProps.iconMode?e._e():t("div",{directives:[{name:"show",rawName:"v-show",value:!o.menuProps.collapsed||o.inSubMenuPopper,expression:"!menuProps.collapsed || inSubMenuPopper"}],staticClass:"pwc-menu-item__title"},[o.hasSlot("title")?[t(o.renderSlot,{attrs:{"slot-func":()=>o.slotRender("title")}})]:[e._v(" "+e._s(o.menuItemProps.title)+" ")]],2)])},kR=[],PR=B(LR,SR,kR);const TR=PR.exports,QR=c.defineComponent({__name:"menu-item",props:iR(),setup(e){const t=e,{receiveRouterSlotData:o}=CR({props:t});return{__sfc:!0,props:t,receiveRouterSlotData:o,MenuItemContent:TR}}});var ER=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return o.props.to?t("router-link",{tag:"component",attrs:{to:e.to,custom:""},scopedSlots:e._u([{key:"default",fn:function(r){return[t("a",e._b({staticClass:"pwc-menu-item",attrs:{href:r.href}},"a",o.receiveRouterSlotData(r),!1),[t(o.MenuItemContent)],1)]}}],null,!1,4189994726)}):e.href?t("a",{staticClass:"pwc-menu-item",attrs:{href:e.href}},[t(o.MenuItemContent)],1):t("div",{staticClass:"pwc-menu-item"},[t(o.MenuItemContent)],1)},IR=[],MR=B(QR,ER,IR);const AR=MR.exports,zR={};var DR=function(){var e=this;return e._self._c,e._m(0)},RR=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"pwc-menu-divider"},[t("div")])}],OR=B(zR,DR,RR);const VR=OR.exports;K("PwcMenu",pR),K("PwcSubMenu",xR),K("PwcMenuItem",AR),K("PwcMenuDivider",VR);const BR=()=>X(O(O({},$n()),nd()),{trigger:g.oneOf(Ki).def("click"),placement:g.oneOf(Xr).def("top"),feedbackType:g.enum().def(No.Warning),concise:g.bool.def(!1)}),$R=()=>O({},X1()),FR=c.defineComponent({__name:"popconfirm",props:BR(),emits:$R(),setup(e,{emit:t}){const o=e,{buttonData:r,onClickConfirm:i,onClickCancel:a}=J1({props:o,emit:t,afterConfirm:()=>{var l;(l=s.value)==null||l.hidePopper()},afterCancel:()=>{var l;(l=s.value)==null||l.hidePopper()}}),n=c.computed(()=>{if(!o.concise)return o.feedbackType}),s=c.ref();return{__sfc:!0,props:o,emit:t,buttonData:r,onClickConfirm:i,onClickCancel:a,popoverFeedbackType:n,popoverRef:s,PwcButton:$e,PwcPopover:sd}}});var jR=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t(o.PwcPopover,e._b({ref:"popoverRef",staticClass:"pwc-popconfirm",attrs:{trigger:e.trigger,placement:e.placement,"feedback-type":o.popoverFeedbackType},scopedSlots:e._u([{key:"reference",fn:function(){return[e._t("default")]},proxy:!0},{key:"default",fn:function(){return[t("div",{staticClass:"pwc-popconfirm__content"},[e.concise?e._e():e._t("content",function(){return[e._v(e._s(e.content))]}),t("div",{staticClass:"pwc-popconfirm__content__btns",class:{"is-concise":e.concise}},[o.buttonData.showCancelButton?t(o.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:o.onClickCancel}},"pwc-button",o.buttonData.cancelButtonProps,!1)):e._e(),o.buttonData.showConfirmButton?t(o.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:o.onClickConfirm}},"pwc-button",o.buttonData.confirmButtonProps,!1)):e._e()],1)],2)]},proxy:!0}],null,!0)},"pwc-popover",o.props,!1))},NR=[],UR=B(FR,jR,NR);const WR=UR.exports;K("PwcPopconfirm",WR);var qe=(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))(qe||{});function ZR(e,t){const o=c.ref((()=>{try{const r=localStorage.getItem(e);if(r)return JSON.parse(r)}catch(r){}return t})());return c.watch(o,r=>{try{localStorage.setItem(e,JSON.stringify(r))}catch(i){}},{deep:!0}),o}const qR=()=>({width:g.number.def(0),height:g.number.def(0),minWidth:g.number.def(50),minHeight:g.number.def(50),maxWidth:g.number.def(1/0),maxHeight:g.number.def(1/0),disabled:g.bool.def(!1),handleSize:g.number.def(8),showHandles:g.oneOfType([Boolean,Array]).def(!0),storageKey:g.string.def("")}),YR=()=>({"resize-start":U(),resize:U(),"resize-end":U()}),GR=e=>{const{props:t,emit:o}=e,r=c.ref(),i=c.ref(!1),a=c.ref(null),n=c.ref({x:0,y:0}),s=c.ref({width:0,height:0}),l={width:t.width,height:t.height},p=t.storageKey?ZR(t.storageKey,l):c.ref(l),u=c.computed(()=>{const h={};return t.width&&(h.width=p.value.width+"px"),t.height&&(h.height=p.value.height+"px"),h}),d=h=>t.showHandles===!1||Array.isArray(t.showHandles)&&!t.showHandles.includes(h)?!1:[qe.Top,qe.Bottom].includes(h)?!!t.height:[qe.Left,qe.Right].includes(h)?!!t.width:!!t.width&&!!t.height,m=(h,b)=>{t.disabled||(h.preventDefault(),h.stopPropagation(),i.value=!0,a.value=b,n.value={x:h.clientX,y:h.clientY},s.value=O({},p.value),o("resize-start",{width:p.value.width,height:p.value.height,direction:b,event:h}))},f=h=>{if(!i.value||!a.value)return;const b=h.clientX-n.value.x,v=h.clientY-n.value.y;let _=s.value.width,y=s.value.height;switch(a.value){case qe.Right:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b));break;case qe.Bottom:y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break;case qe.Left:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b));break;case qe.Top:y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case qe.TopRight:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b)),y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case qe.TopLeft:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b)),y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case qe.BottomRight:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b)),y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break;case qe.BottomLeft:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b)),y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break}p.value={width:_,height:y},o("resize",{width:_,height:y,direction:a.value,event:h})},w=h=>{if(!i.value||!a.value)return;i.value=!1;const b=a.value;a.value=null,o("resize-end",{width:p.value.width,height:p.value.height,direction:b,event:h})};return c.onMounted(()=>{document.addEventListener("mousemove",f),document.addEventListener("mouseup",w)}),c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",w)}),{boxStyle:u,containerRef:r,currentSize:p,isResizing:i,showHandleControl:d,handleMouseDown:m}};qR(),YR();const XR=()=>({title:g.looseString,titleTooltip:g.looseString}),KR=c.defineComponent({__name:"section",props:XR(),setup(e){const t=e,{hasSlot:o,slotRender:r}=we(),i=c.computed(()=>o("title-tooltip")||t.titleTooltip);return{__sfc:!0,props:t,hasSlot:o,slotRender:r,hasTitleTooltip:i,PwcTooltip:fp,renderSlot:at}}});var JR=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("section",{staticClass:"pwc-section"},[o.hasSlot("title")||e.title?t("div",{staticClass:"pwc-section__title"},[e._t("title",function(){return[e._v(e._s(e.title))]}),o.hasTitleTooltip?[t(o.PwcTooltip,{attrs:{content:e.titleTooltip},scopedSlots:e._u([o.hasSlot("title-tooltip")?{key:"content",fn:function(){return[t(o.renderSlot,{attrs:{"slot-func":()=>o.slotRender("title-tooltip")}})]},proxy:!0}:null],null,!0)})]:e._e()],2):e._e(),t("div",{staticClass:"pwc-section__content"},[e._t("default")],2)])},HR=[],eO=B(KR,JR,HR);const tO=eO.exports;K("PwcSection",tO);const oO=()=>({[g.modelValueKey]:g.oneOfType([Number,Array]).def(0),min:g.number.def(0),max:g.number.def(100),disabled:g.bool.def(!1),showTooltip:g.bool.def(!1),range:g.bool.def(!1),step:g.number.def(1),showStops:g.bool.def(!1),showSliderButton:g.bool.def(!0),marks:g.object(),cssRotateAngle:g.oneOf([0,90,180,270]).def(0),progressBarVisible:g.bool.def(!0),hotAreaHeight:g.number.def(4),sliderBarHeight:g.looseNumber,buttonSize:g.number.def(14)}),rO=()=>X(O({},me()),{change:U()}),e0=Symbol("slider-inject-key"),iO=e=>{const{props:t,emit:o}=e,{modelValue:r,updateModelValue:i}=ue(t,{outSideUpdate:()=>{S()}}),a=c.ref(0),n=c.ref(0),s=c.ref(!1),l=c.ref(void 0),p=c.ref(),{width:u}=Oe(p),d=c.ref(),m=c.ref(),f=c.ref(),w=c.computed(()=>Math.min(a.value,n.value)),h=c.computed(()=>Math.max(a.value,n.value)),b=c.computed(()=>t.range?`${100*(h.value-w.value)/(t.max-t.min)}%`:`${100*(a.value-t.min)/(t.max-t.min)}%`),v=c.computed(()=>t.range?`${100*(w.value-t.min)/(t.max-t.min)}%`:"0%"),_=c.computed(()=>X(O({},y.value),{width:b.value,left:v.value})),y=c.computed(()=>{const A={};return t.sliderBarHeight&&(A.height=`${t.sliderBarHeight}px`,A.borderRadius=`${t.sliderBarHeight/2}px`),A}),C=c.computed(()=>{const A=[],I=t.max-t.min,E=M=>{A.includes(M)||A.push(M)};if(t.step&&t.showStops){const M=I/t.step,z=t.step/I;for(let D=1;D<M;D++){const R=Math.round(D*z*100);E(R)}}return t.marks&&Object.keys(t.marks).forEach(M=>{const z=Number(M);if(z>=t.min&&z<=t.max){const D=(z-t.min)/I,R=Math.round(D*100);E(R)}}),A}),x=c.computed(()=>{const A=[],I=t.max-t.min;return t.marks&&Object.keys(t.marks).forEach(E=>{const M=Number(E),z=t.marks[M];let D="",R={};if(typeof z=="string"?D=z:(D=z.label,R=z.style||{}),M>=t.min&&M<=t.max){const V=(M-t.min)/I,j=Math.round(V*100);A.push({label:D,style:R,left:j,value:M})}}),A});function S(){t.range?Array.isArray(r.value)?(a.value=Math.max(t.min,r.value[0]),n.value=Math.min(t.max,r.value[1])):(a.value=t.min,n.value=t.max):typeof r.value!="number"||isNaN(r.value)?a.value=t.min:a.value=Math.min(t.max,Math.max(t.min,r.value))}function k(){let A=r.value;t.range?A=[Math.floor(w.value),Math.floor(h.value)]:A=Math.floor(a.value),A!==r.value&&(l.value=r.value,i(A))}function L(){c.nextTick(()=>{o("change",t.range?[w.value,h.value]:r.value)})}function Q(A){var M;if(!t.range){(M=m.value)==null||M.setPosition(A);return}let I;const E=t.min+A*(t.max-t.min)/100;Math.abs(w.value-E)<Math.abs(h.value-E)?I=a.value<n.value?m.value:f.value:I=a.value>n.value?m.value:f.value,I==null||I.setPosition(A)}function P(A){var I,E;if(!(t.disabled||s.value)){if(t.cssRotateAngle===90){const M=((I=d.value)==null?void 0:I.getBoundingClientRect().top)||0;Q((A.clientY-M)/u.value*100)}else{const M=((E=d.value)==null?void 0:E.getBoundingClientRect().left)||0;Q((A.clientX-M)/u.value*100)}L()}}function T(A){Q(A.left),L()}return c.onMounted(()=>{S()}),c.provide(e0,{sliderProps:t,sliderWidth:u,dragging:s,emitChange:L}),{modelValue:r,firstValue:a,secondValue:n,dragging:s,sliderRef:p,sliderClickRef:d,button1Ref:m,button2Ref:f,barStyle:_,runwayStyle:y,stops:C,markList:x,onSliderClick:P,onClickMark:T,emitInnerInput:k}},t0=()=>c.inject(e0),aO=()=>({value:g.number}),nO=()=>({change:U()}),sO=e=>{const{props:t,emit:o}=e,{sliderProps:r,sliderWidth:i,emitChange:a}=t0(),n=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(()=>`${(t.value-r.min)/(r.max-r.min)*100}%`),f=c.computed(()=>({left:m.value}));function w(L){let Q,P;switch("touches"in L?(Q=L.touches[0].clientX,P=L.touches[0].clientY):(Q=L.clientX,P=L.clientY),r.cssRotateAngle){case 90:return{clientX:P,clientY:Q};case 180:return{clientX:-Q,clientY:-P};case 270:return{clientX:-P,clientY:Q}}return{clientX:Q,clientY:P}}function h(){r.disabled||(n.value=!0)}function b(){r.disabled||(n.value=!1)}function v(L){if(r.disabled)return;s.value=!0,l.value=!0;const Q=w(L);p.value=Q.clientX,u.value=parseFloat(m.value),d.value=u.value}function _(L){if(!r.disabled&&s.value){l.value=!1;const Q=(w(L).clientX-p.value)/i.value*100;d.value=u.value+Q,k(d.value)}}function y(){r.disabled||pe||s.value&&setTimeout(()=>{s.value=!1,l.value||(k(d.value),a())},0)}function C(L){r.disabled||pe||(v(L),window.addEventListener("mousemove",_),window.addEventListener("touchmove",_),window.addEventListener("mouseup",y),window.addEventListener("touchend",y),window.addEventListener("contextmenu",y))}function x(){window.removeEventListener("mousemove",_),window.removeEventListener("touchmove",_),window.removeEventListener("mouseup",y),window.removeEventListener("touchend",y),window.removeEventListener("contextmenu",y)}c.onBeforeUnmount(()=>{x()});function S(L){let Q=L;return r.step&&(Q=Math.round(L/r.step)*r.step),Q<r.min&&(Q=r.min),Q>r.max&&(Q=r.max),Q}function k(L){if(L===null||isNaN(L))return;L<0?L=0:L>100&&(L=100);const Q=(r.max-r.min)*(L/100),P=r.min+Q;o("change",S(P))}return{hovering:n,dragging:s,btnStyle:f,handleMouseEnter:h,handleMouseLeave:b,onButtonDown:C,setPosition:k}},lO={name:"PlvSliderButton"},cO=c.defineComponent(X(O({},lO),{props:aO(),emits:nO(),setup(e,{expose:t,emit:o}){const r=e,i=t0(),{sliderProps:a}=i,{hovering:n,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=sO({props:r,emit:o}),f=c.computed(()=>s.value||i.dragging.value||!1);return t({setPosition:m}),{__sfc:!0,props:r,emit:o,sliderInject:i,sliderProps:a,hovering:n,buttonDragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m,dragging:f}}}));var pO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{staticClass:"pwc-slider__button",style:o.btnStyle,on:{mouseenter:o.handleMouseEnter,mouseleave:o.handleMouseLeave,mousedown:o.onButtonDown,touchstart:o.onButtonDown}},[t("div",{class:["pwc-slider__button__inner",o.hovering||o.dragging?"pwc-slider__button__inner--hover":"",o.sliderProps.disabled?"pwc-slider__button__inner--disabled":""],style:{width:`${o.sliderProps.buttonSize}px`,height:`${o.sliderProps.buttonSize}px`}})])},uO=[],dO=B(cO,pO,uO);const fO=dO.exports,mO=c.defineComponent({__name:"slider",props:oO(),emits:rO(),setup(e,{emit:t}){const o=e,{firstValue:r,secondValue:i,sliderRef:a,sliderClickRef:n,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:w,emitInnerInput:h}=iO({props:o,emit:t});function b(_){r.value=_,h()}function v(_){i.value=_,h()}return{__sfc:!0,props:o,emit:t,firstValue:r,secondValue:i,sliderRef:a,sliderClickRef:n,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:w,emitInnerInput:h,onFirstValueChange:b,onSecondValueChange:v,SliderButton:fO}}});var hO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{staticClass:"pwc-slider"},[t("div",{ref:"sliderRef",class:["pwc-slider__runway",o.props.disabled?"pwc-slider__runway--disabled":""],style:o.runwayStyle},[o.props.progressBarVisible?t("div",{staticClass:"pwc-slider__runway__bar",style:o.barStyle}):e._e(),t("div",{ref:"sliderClickRef",staticClass:"pwc-slider__runway__click",style:{height:`${o.props.hotAreaHeight}px`},on:{click:o.onSliderClick}}),e._l(o.stops,function(r){return t("div",{key:`dot-${r}`,staticClass:"pwc-slider__runway__dot",style:{left:`${r}%`}})}),o.props.showSliderButton?t(o.SliderButton,{ref:"button1Ref",attrs:{value:o.firstValue},on:{change:o.onFirstValueChange}}):e._e(),o.props.range&&o.props.showSliderButton?t(o.SliderButton,{ref:"button2Ref",attrs:{value:o.secondValue},on:{change:o.onSecondValueChange}}):e._e()],2),o.markList.length?t("div",{staticClass:"pwc-slider__marks"},e._l(o.markList,function(r,i){return t("div",{key:`mark-${i}`,staticClass:"pwc-slider__marks__item",style:O({left:`${r.left}%`},r.style),on:{click:function(a){return o.onClickMark(r)}}},[e._v(" "+e._s(r.label)+" ")])}),0):e._e()])},gO=[],vO=B(mO,hO,gO);const wO=vO.exports;K("PwcSlider",wO);const bO=()=>({max:g.number.def(3)}),_O=()=>({label:g.looseString}),yO=()=>({click:U()}),o0=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),xO=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(o0,{}),{__sfc:!0,PwcButton:$e,PwcIconMore:D1,PwcDropdown:ZQ,PwcDropdownMenu:qQ}}});var CO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t(o.PwcDropdown,{staticClass:"pwc-table-operation-dropdown",scopedSlots:e._u([{key:"dropdown",fn:function(){return[t(o.PwcDropdownMenu,[e._t("default")],2)]},proxy:!0}],null,!0)},[t(o.PwcButton,{attrs:{link:""}},[t("div",{staticClass:"pwc-table-operation-dropdown__icon"},[t(o.PwcIconMore)],1)])],1)},LO=[],SO=B(xO,CO,LO);const kO=SO.exports,PO=c.defineComponent({props:bO(),setup(e){const t=c.useSlots(),o=c.inject(Ts,void 0),r=Rt(8),i=c.ref();function a(){if(o)return o.allRenderColumnList.value.find(n=>n.columnProps.type==="operation")}return Oe(i,({width:n})=>{const s=a();s&&s.setOperationWidthRecord(r,n)}),c.onBeforeUnmount(()=>{const n=a();n&&n.removeOperationWidthRecord(r)}),()=>{var m;let n=(m=t.default)==null?void 0:m.call(t);if(!n)return c.h("span",{},"-");let s=0;const l=[],p=[],u=n.reduce((f,w)=>ze.isCommentVNode(w)?f:f+1,0);u===0&&l.push(c.h("span",{},"-")),n.forEach((f,w)=>{u<=e.max||s<e.max-1?(l.push(f),s++):p.push(f)}),p.length>0&&l.push(c.h(kO,{},S1()?{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:i},l)])}}}),TO=c.defineComponent({__name:"table-operation-item",props:_O(),emits:yO(),setup(e,{emit:t}){const o=e,r=c.inject(o0,void 0);function i(a){t("click",a)}return{__sfc:!0,props:o,emit:t,dropdownInject:r,onClickItem:i,PwcButton:$e,PwcDropdownItem:YQ}}});var QO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return o.dropdownInject?t(o.PwcDropdownItem,{staticClass:"pwc-table-operation-item",nativeOn:{click:function(r){return o.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2):t(o.PwcButton,{staticClass:"pwc-table-operation-item",attrs:{link:""},nativeOn:{click:function(r){return o.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2)},EO=[],IO=B(TO,QO,EO);const MO=IO.exports;K("PwcTableOperation",PO),K("PwcTableOperationItem",MO);const AO=["line","rounded","text"],zO=()=>({[g.modelValueKey]:g.oneOfType([String,Number,Symbol]),type:g.oneOf(AO).def("line"),expand:g.bool.def(!1),lazyLoad:g.bool.def(!1)}),DO=()=>X(O({},me()),{change:U()}),RO=()=>({name:g.oneOfType([String,Number]),extra:g.looseString,disabled:g.bool.def(!1),title:g.looseString,lazyLoad:g.looseBool}),Hs=Symbol("tabs-inject-key"),OO=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:t,tabsProps:o,setCurrentTab:r}=c.inject(Hs),{$t:i}=H(),a=c.ref(),n=c.ref(!1),{visible:s,toggle:l}=lt();function p(){return Z(this,null,function*(){if(yield c.nextTick(),!a.value||pe)return;const d=a.value.querySelector(".pwc-tab-nav__item");if(!d)return;const m=d.clientHeight;a.value.clientHeight>=m*1.5||a.value.scrollWidth>a.value.clientWidth?n.value=!0:n.value=!1})}c.watch(()=>t.value.length,()=>{p()},{immediate:!0});function u(d){d.paneProps.disabled||r(d.getPaneName())}return{__sfc:!0,tabPanes:t,tabsProps:o,setCurrentTab:r,$t:i,listRef:a,isMoreItem:n,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:pr,PwcIconUp:O1,renderSlot:at}}});var VO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-nav",class:[`is-type-${o.tabsProps.type}`]},[t("div",{ref:"listRef",staticClass:"pwc-tab-nav__list",class:{"is-hide":o.tabsProps.expand&&!o.isExpanded}},e._l(o.tabPanes,function(r){return t("div",{key:r.paneId,staticClass:"pwc-tab-nav__item",class:{"is-active":r.getIsActive(),"is-disabled":r.paneProps.disabled},on:{click:function(i){return o.onClickItem(r)}}},[r.hasSlot("title")?t(o.renderSlot,{staticClass:"pwc-tab-nav__item__title",attrs:{"slot-func":r.getTitleRenderSlot}}):t("span",[e._v(e._s(r.paneProps.title))]),r.hasSlot("extra")?t(o.renderSlot,{staticClass:"pwc-tab-nav__item__extra",attrs:{"slot-func":r.getExtraRenderSlot}}):e._e(),r.paneProps.extra?t("span",{staticClass:"pwc-tab-nav__item__extra"},[e._v(" "+e._s(r.paneProps.extra)+" ")]):e._e()],1)}),0),t("div",{staticClass:"pwc-tab-nav__right"},[o.tabsProps.expand&&o.isMoreItem?t("div",{staticClass:"pwc-tab-nav__expand",on:{click:o.toggle}},[t("span",[e._v(e._s(o.isExpanded?o.$t("tabs.collapse"):o.$t("tabs.more")))]),o.isExpanded?t(o.PwcIconUp):t(o.PwcIconDown)],1):e._e()])])},BO=[],$O=B(OO,VO,BO);const FO=$O.exports,jO=c.defineComponent({__name:"tabs",props:zO(),emits:DO(),setup(e,{emit:t}){const o=e,r=c.ref(),i=c.ref(),{modelValue:a,updateModelValue:n}=ue(o,{outSideUpdate:w=>{r.value=w}}),s=c.ref([]);function l(w){if(!s.value.includes(w)){if(typeof r.value>"u")if(typeof a.value>"u"){const h=w.getPaneName();u(h,!1)}else u(a.value,!1);s.value.push(w)}}function p(w){s.value=s.value.filter(h=>h!==w)}function u(w,h=!0){r.value!==w&&(r.value=w,n(w),h&&t("change",w))}const d=c.ref(0);function m(){return Z(this,null,function*(){var b;yield c.nextTick();const w=((b=i.value)==null?void 0:b.querySelectorAll("[data-pane-name]"))||[];let h=0;for(let v=0;v<w.length;v++)if(w[v].getAttribute("data-is-active")==="true"){h=v*100;break}d.value=h})}c.watch(()=>r.value,()=>{m()});const f={tabsProps:o,currentTab:r,tabPanes:s,setCurrentTab:u,addTabPane:l,removeTabPane:p};return c.provide(Hs,f),{__sfc:!0,props:o,emits:t,currentTab:r,tabsRef:i,modelValue:a,updateModelValue:n,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:FO}}});var NO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{ref:"tabsRef",staticClass:"pwc-tabs"},[t(o.TabNav),t("div",{staticClass:"pwc-tabs__content"},[t("div",{staticClass:"pwc-tabs__list",style:{marginLeft:`-${o.offsetPercent}%`}},[e._t("default")],2)])],1)},UO=[],WO=B(jO,NO,UO);const ZO=WO.exports,qO=c.defineComponent({__name:"tab-pane",props:RO(),setup(e){const t=e,o=Rt(8),r=c.inject(Hs),{hasSlot:i,slotRender:a}=we(),n=c.computed(()=>t.name||o),s=c.computed(()=>r.currentTab.value===n.value);function l(){return a("title",{isActive:s.value})}const p=c.computed(()=>{var f;return(f=t.lazyLoad)!=null?f:r.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:o,paneProps:t,getPaneName:()=>n.value,getIsActive:()=>s.value,hasSlot:i,getTitleRenderSlot:l,getExtraRenderSlot:()=>a("extra")};return c.onBeforeMount(()=>{r.addTabPane(m)}),{__sfc:!0,props:t,paneId:o,tabsInject:r,hasSlot:i,slotRender:a,tabPaneName:n,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var YO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-pane",class:{"is-active":o.isActive},attrs:{"data-pane-name":o.tabPaneName,"data-is-active":o.isActive}},[o.canRender?t("div",{staticClass:"pwc-tab-pane__content"},[e._t("default")],2):e._e()])},GO=[],XO=B(qO,YO,GO);const KO=XO.exports;K("PwcTabs",ZO),K("PwcTabPane",KO);var r0={},JO,HO;function eV(e,t,o,a){var i=0,a=a===void 0?{}:a,n=a.loop===void 0?null:a.loop,s=a.palette===void 0?null:a.palette;if(t<=0||o<=0||t>65535||o>65535)throw new Error("Width/Height invalid.");function l(b){var v=b.length;if(v<2||v>256||v&v-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return v}e[i++]=71,e[i++]=73,e[i++]=70,e[i++]=56,e[i++]=57,e[i++]=97;var p=0,u=0;if(s!==null){for(var d=l(s);d>>=1;)++p;if(d=1<<p,--p,a.background!==void 0){if(u=a.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[i++]=t&255,e[i++]=t>>8&255,e[i++]=o&255,e[i++]=o>>8&255,e[i++]=(s!==null?128:0)|p,e[i++]=u,e[i++]=0,s!==null)for(var m=0,f=s.length;m<f;++m){var w=s[m];e[i++]=w>>16&255,e[i++]=w>>8&255,e[i++]=w&255}if(n!==null){if(n<0||n>65535)throw new Error("Loop count invalid.");e[i++]=33,e[i++]=255,e[i++]=11,e[i++]=78,e[i++]=69,e[i++]=84,e[i++]=83,e[i++]=67,e[i++]=65,e[i++]=80,e[i++]=69,e[i++]=50,e[i++]=46,e[i++]=48,e[i++]=3,e[i++]=1,e[i++]=n&255,e[i++]=n>>8&255,e[i++]=0}var h=!1;this.addFrame=function(b,v,_,y,C,x){if(h===!0&&(--i,h=!1),x=x===void 0?{}:x,b<0||v<0||b>65535||v>65535)throw new Error("x/y invalid.");if(_<=0||y<=0||_>65535||y>65535)throw new Error("Width/Height invalid.");if(C.length<_*y)throw new Error("Not enough pixels for the frame size.");var S=!0,k=x.palette;if(k==null&&(S=!1,k=s),k==null)throw new Error("Must supply either a local or global palette.");for(var L=l(k),Q=0;L>>=1;)++Q;L=1<<Q;var P=x.delay===void 0?0:x.delay,T=x.disposal===void 0?0:x.disposal;if(T<0||T>3)throw new Error("Disposal out of range.");var A=!1,I=0;if(x.transparent!==void 0&&x.transparent!==null&&(A=!0,I=x.transparent,I<0||I>=L))throw new Error("Transparent color index.");if((T!==0||A||P!==0)&&(e[i++]=33,e[i++]=249,e[i++]=4,e[i++]=T<<2|(A===!0?1:0),e[i++]=P&255,e[i++]=P>>8&255,e[i++]=I,e[i++]=0),e[i++]=44,e[i++]=b&255,e[i++]=b>>8&255,e[i++]=v&255,e[i++]=v>>8&255,e[i++]=_&255,e[i++]=_>>8&255,e[i++]=y&255,e[i++]=y>>8&255,e[i++]=S===!0?128|Q-1:0,S===!0)for(var E=0,M=k.length;E<M;++E){var z=k[E];e[i++]=z>>16&255,e[i++]=z>>8&255,e[i++]=z&255}return i=tV(e,i,Q<2?2:Q,C),i},this.end=function(){return h===!1&&(e[i++]=59,h=!0),i},this.getOutputBuffer=function(){return e},this.setOutputBuffer=function(b){e=b},this.getOutputBufferPosition=function(){return i},this.setOutputBufferPosition=function(b){i=b}}function tV(e,t,o,r){e[t++]=o;var i=t++,a=1<<o,n=a-1,s=a+1,l=s+1,p=o+1,u=0,d=0;function m(x){for(;u>=x;)e[t++]=d&255,d>>=8,u-=8,t===i+256&&(e[i]=255,i=t++)}function f(x){d|=x<<u,u+=p,m(8)}var w=r[0]&n,h={};f(a);for(var b=1,v=r.length;b<v;++b){var _=r[b]&n,y=w<<8|_,C=h[y];if(C===void 0){for(d|=w<<u,u+=p;u>=8;)e[t++]=d&255,d>>=8,u-=8,t===i+256&&(e[i]=255,i=t++);l===4096?(f(a),l=s+1,p=o+1,h={}):(l>=1<<p&&++p,h[y]=l++),w=_}else w=C}return f(w),f(s),m(1),i+1===t?e[i]=0:(e[i]=t-i-1,e[t++]=0),t}function oV(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!==56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var o=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],a=i>>7,n=i&7,s=1<<n+1;e[t++],e[t++];var l=null,p=null;a&&(l=t,p=s,t+=s*3);var u=!0,d=[],m=0,f=null,w=0,h=null;for(this.width=o,this.height=r;u&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,h=e[t++]|e[t++]<<8,t++;else for(t+=12;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var v=e[t++];m=e[t++]|e[t++]<<8,f=e[t++],v&1||(f=null),w=v>>2&7,t++;break;case 254:for(;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var _=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,C=e[t++]|e[t++]<<8,x=e[t++]|e[t++]<<8,S=e[t++],k=S>>7,L=S>>6&1,Q=S&7,P=1<<Q+1,T=l,A=p,I=!1;if(k){var I=!0;T=t,A=P,t+=P*3}var E=t;for(t++;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}d.push({x:_,y,width:C,height:x,has_local_palette:I,palette_offset:T,palette_size:A,data_offset:E,data_length:t-E,transparent_index:f,interlaced:!!L,delay:m,disposal:w});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return h},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,z){var D=this.frameInfo(M),R=D.width*D.height,V=new Uint8Array(R);i0(e,D.data_offset,V,R);var j=D.palette_offset,F=D.transparent_index;F===null&&(F=256);var N=D.width,W=o-N,q=N,G=(D.y*o+D.x)*4,J=((D.y+D.height)*o+D.x)*4,te=G,oe=W*4;D.interlaced===!0&&(oe+=o*4*7);for(var ee=8,le=0,ge=V.length;le<ge;++le){var _e=V[le];if(q===0&&(te+=oe,q=N,te>=J&&(oe=W*4+o*4*(ee-1),te=G+(N+W)*(ee<<1),ee>>=1)),_e===F)te+=4;else{var Ae=e[j+_e*3],At=e[j+_e*3+1],zt=e[j+_e*3+2];z[te++]=zt,z[te++]=At,z[te++]=Ae,z[te++]=255}--q}},this.decodeAndBlitFrameRGBA=function(M,z){var D=this.frameInfo(M),R=D.width*D.height,V=new Uint8Array(R);i0(e,D.data_offset,V,R);var j=D.palette_offset,F=D.transparent_index;F===null&&(F=256);var N=D.width,W=o-N,q=N,G=(D.y*o+D.x)*4,J=((D.y+D.height)*o+D.x)*4,te=G,oe=W*4;D.interlaced===!0&&(oe+=o*4*7);for(var ee=8,le=0,ge=V.length;le<ge;++le){var _e=V[le];if(q===0&&(te+=oe,q=N,te>=J&&(oe=W*4+o*4*(ee-1),te=G+(N+W)*(ee<<1),ee>>=1)),_e===F)te+=4;else{var Ae=e[j+_e*3],At=e[j+_e*3+1],zt=e[j+_e*3+2];z[te++]=Ae,z[te++]=At,z[te++]=zt,z[te++]=255}--q}}}function i0(e,t,o,r){for(var i=e[t++],a=1<<i,n=a+1,s=n+1,l=i+1,p=(1<<l)-1,u=0,d=0,m=0,f=e[t++],w=new Int32Array(4096),h=null;;){for(;u<16&&f!==0;)d|=e[t++]<<u,u+=8,f===1?f=e[t++]:--f;if(u<l)break;var b=d&p;if(d>>=l,u-=l,b===a){s=n+1,l=i+1,p=(1<<l)-1,h=null;continue}else if(b===n)break;for(var v=b<s?b:h,_=0,y=v;y>a;)y=w[y]>>8,++_;var C=y,x=m+_+(v!==b?1:0);if(x>r){console.log("Warning, gif stream longer than expected.");return}o[m++]=C,m+=_;var S=m;for(v!==b&&(o[m++]=C),y=v;_--;)y=w[y],o[--S]=y&255,y>>=8;h!==null&&s<4096&&(w[s++]=h<<8|C,s>=p+1&&l<12&&(++l,p=p<<1|1)),h=b}return m!==r&&console.log("Warning, gif stream shorter than expected."),o}try{HO=r0.GifWriter=eV,JO=r0.GifReader=oV}catch(e){}const rV=e=>{const{configProviderData:t}=Ft();function o(r){var i;if(t!=null&&t.trackEventCallback){t.trackEventCallback(r);return}(i=e.trackEvent)==null||i.call(e,r)}return{trackEvent:o}};function iV(e,t,o={}){function r(){if(e)for(const a in t)t[a]&&e.on(a,t[a])}function i(){if(e)for(const a in t)t[a]&&e.off(a,t[a])}return Zi({listenEvent:r,removeEvent:i},o),{listenEvent:r,removeEvent:i}}const aV={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"}}},nV={vote:{option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}}},sV={vote:{option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}}},lV={vote:{option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}}},cV={vote:{option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},pV={vote:{option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},{useI18n:Yt}=G1({zh_CN:cV,zh_TW:pV,en:aV,ja:nV,ko:sV,ru:lV}),uV=()=>({status:g.oneOf(["Y","N"]).def("Y"),isVoted:g.bool.isRequired,disabled:g.bool.def(!1),hasVoteList:g.bool.def(!1)}),dV=()=>({click:U()}),fV=e=>{const{props:t,emit:o}=e,{$t:r}=Yt(),i=c.computed(()=>t.isVoted?"voted":t.status==="N"?"not-voted":t.disabled?"disabled":"vote"),a={vote:r("vote.button.vote"),voted:r("vote.button.voted"),"not-voted":r("vote.button.notVoted"),disabled:r("vote.button.vote")},n=c.computed(()=>a[i.value]);function s(){i.value==="vote"&&o("click")}return{buttonType:i,buttonText:n,handleClick:s}},mV=c.defineComponent({__name:"vote-button",props:uV(),emits:dV(),setup(e,{emit:t}){const o=e,{buttonType:r,buttonText:i,handleClick:a}=fV({props:o,emit:t});return{__sfc:!0,props:o,emit:t,buttonType:r,buttonText:i,handleClick:a,PwcButton:$e}}});function uo(e,t,o,r,i,a,n,s){var l=typeof e=="function"?e.options:e;return t&&(l.render=t,l.staticRenderFns=o,l._compiled=!0),a&&(l._scopeId="data-v-"+a),{exports:e,options:l}}var hV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{staticClass:"plv-iar-vote-button",class:{"plv-iar-vote-button--no-pointer":r.props.hasVoteList}},[r.buttonType==="vote"?o(r.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:r.props.disabled},on:{click:r.handleClick}},[t._v(" "+t._s(r.buttonText)+" ")]):r.buttonType==="not-voted"||r.buttonType==="disabled"?o(r.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:""}},[t._v(" "+t._s(r.buttonText)+" ")]):o(r.PwcButton,{staticClass:"plv-iar-vote-button__text",attrs:{size:"mini",disabled:r.props.status==="N"||r.props.disabled}},[t._v(" "+t._s(r.buttonText)+" ")])],1)},gV=[],vV=uo(mV,hV,gV,!1,null,"6ba928d5");const a0=vV.exports,wV=()=>({status:g.oneOf(["Y","N"]).def("Y")}),bV=()=>({}),_V=e=>{const{props:t}=e,{$t:o}=Yt();return{statusText:c.computed(()=>t.status==="Y"?o("vote.status.voting"):o("vote.status.ended"))}},yV=c.defineComponent({__name:"vote-status",props:wV(),emits:bV(),setup(e,{emit:t}){const o=e,{statusText:r}=_V({props:o});return{__sfc:!0,props:o,emit:t,statusText:r}}});var xV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{staticClass:"plv-iar-vote-status",class:{"plv-iar-vote-status--voting":t.status==="Y","plv-iar-vote-status--ended":t.status==="N"}},[t._v(" "+t._s(r.statusText)+" ")])},CV=[],LV=uo(yV,xV,CV,!1,null,"c99114e4");const n0=LV.exports,s0=()=>({voteData:g.object().isRequired,votedList:g.array().def([]),layout:g.oneOf(["single","double"]).def("single"),clickable:g.bool.def(!0),hasVoteList:g.bool.def(!1)}),l0=()=>({"to-vote":U()}),c0=e=>{const{props:t,emit:o,itemRef:r}=e,i=c.ref({gridRowEnd:"auto"}),a=c.computed(()=>t.votedList.includes(t.voteData.id)),n=c.computed(()=>!t.clickable);function s(){n.value||o("to-vote",t.voteData.id)}return{isVoted:a,isDisabled:n,gridRowEndStyle:i,handleVote:s}},SV=c.defineComponent({__name:"vote-item-single",props:s0(),emits:l0(),setup(e,{emit:t}){const o=e,{$t:r}=Yt(),{isVoted:i,isDisabled:a,handleVote:n}=c0({props:o,emit:t});return{__sfc:!0,$t:r,props:o,emit:t,isVoted:i,isDisabled:a,handleVote:n,VoteButton:a0,VoteStatus:n0}}});var kV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-single",class:{"plv-iar-vote-list-item-image":!!t.voteData.voteCoverImage,"plv-iar-vote-list-item-no-image":!t.voteData.voteCoverImage}},[t.voteData.voteCoverImage?[o("div",{staticClass:"plv-iar-vote-list-item-bg"},[o("div",{staticClass:"plv-iar-vote-list-item-bg-image",style:{backgroundImage:`url(${t.voteData.voteCoverImage})`}}),o("div",{staticClass:"plv-iar-vote-list-item-bg-mask"})])]:t._e(),o("div",{staticClass:"plv-iar-vote-list-item-content"},[o("div",{staticClass:"plv-iar-vote-list-item-content-info"},[o("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top"},[t.voteData.status?o(r.VoteStatus,{staticClass:"plv-iar-vote-list-item-content-info-left-top-item",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?o("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top-item plv-iar-vote-list-item-content-info-count"},[t._v(" "+t._s(t.voteData.voteCount||0)+" "+t._s(r.$t("vote.count"))+" ")]):t._e()],1),o("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[t._v(t._s(t.voteData.name))])]),o(r.VoteButton,{attrs:{status:t.voteData.status,"is-voted":r.isVoted,disabled:r.isDisabled,"has-vote-list":r.props.hasVoteList},on:{click:r.handleVote}})],1)],2)},PV=[],TV=uo(SV,kV,PV,!1,null,"d0e638ec");const QV=TV.exports,EV=c.defineComponent({__name:"vote-item-double",props:s0(),emits:l0(),setup(e,{expose:t,emit:o}){const r=e,{$t:i}=Yt(),a=c.ref(),{isVoted:n,isDisabled:s,gridRowEndStyle:l,handleVote:p}=c0({props:r,emit:o,itemRef:a});let u=null;const d=12;function m(h=d){if(!a.value)return;const b=a.value.offsetHeight;if(b>0){const v=Math.ceil(b/h);l.value={gridRowEnd:`span ${v}`}}}function f(){a.value&&(u&&(u.disconnect(),u=null),u=new El(()=>{m(d)}),u.observe(a.value),m(d))}function w(){u&&(u.disconnect(),u=null)}return c.watch(a,h=>{w(),h&&f()},{immediate:!0}),c.onBeforeUnmount(()=>{w()}),t({calculateGridRowEnd:m,itemRef:a}),{__sfc:!0,$t:i,props:r,emit:o,itemRef:a,isVoted:n,isDisabled:s,gridRowEndStyle:l,handleVote:p,resizeObserver:u,GAP:d,calculateGridRowEnd:m,setupResizeObserver:f,cleanupResizeObserver:w,VoteButton:a0,VoteStatus:n0}}});var IV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{ref:"itemRef",staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-double",style:r.gridRowEndStyle},[o("div",{staticClass:"plv-iar-vote-list-item-content-container"},[t.voteData.voteCoverImage?[o("div",{staticClass:"plv-iar-vote-list-item-image",style:{backgroundImage:`url(${t.voteData.voteCoverImage})`}},[o("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[t.voteData.status?o(r.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-image-status",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?o("div",{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-content-info-count"},[t._v(" "+t._s(t.voteData.voteCount||0)+" "+t._s(r.$t("vote.count"))+" ")]):t._e()],1)])]:t._e(),o("div",{staticClass:"plv-iar-vote-list-item-content"},[o("div",{staticClass:"plv-iar-vote-list-item-content-info"},[t.voteData.voteCoverImage?t._e():o("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[t.voteData.status?o(r.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?o("div",{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-content-info-count"},[t._v(" "+t._s(t.voteData.voteCount||0)+" "+t._s(r.$t("vote.count"))+" ")]):t._e()],1),o("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[t._v(t._s(t.voteData.name))])]),o(r.VoteButton,{attrs:{status:t.voteData.status,"is-voted":r.isVoted,disabled:r.isDisabled,"has-vote-list":r.props.hasVoteList},on:{click:r.handleVote}})],1)],2)])},MV=[],AV=uo(EV,IV,MV,!1,null,"214a02c3");const zV=AV.exports,gi={OpenVote:"OpenVote",OpenVoteRule:"OpenVoteRule"};function DV(e){const{state:t,onShow:o,onGetVoteList:r}=e,{list:i,curVotedList:a,cacheVotedList:n,voteCount:s,isForceHideResult:l,isForceShowResult:p,findVoteById:u}=t;function d(_){a.value=_.curVotedList}function m(_){const y=_.voteData.id,C=u(y)[0];C!==-1&&i.value.splice(C,1);const x=a.value.findIndex(Q=>Q===y);x!==-1&&a.value.splice(x,1);const S=n.value.findIndex(Q=>Q===y);S!==-1&&n.value.splice(S,1);const k=_.voteData.voteOrder||0;let L=i.value.length;for(let Q=0;Q<i.value.length;Q++)if((i.value[Q].voteOrder||0)>=k){L=Q;break}p.value&&(_.voteData.showVoteCount=!0,_.voteData.voteCount=0),i.value.splice(L,0,_.voteData),o()}function f(_){const y=u(_.id)[1];y&&(y.status="N")}function w(_){s.value=_.voteCount,_.list.forEach(y=>{const C=u(y.id)[1];C&&(C.showVoteCount=!l.value,C.voteCount=y.times)})}function h(){i.value.splice(0,i.value.length)}function b(_){const y=u(_.id)[0];y!==-1&&i.value.splice(y,1)}function v(_){const y=Math.floor(Math.random()*3e3);setTimeout(()=>{r()},y)}return{updateVotedList:d,onVoteStart:m,onVoteStop:f,onVoteResult:w,onVoteDeleteAll:h,onVoteDelete:b,onVoteChangeOrder:v}}function RV(e){const{voteTarget:t,state:o,onShowEntrance:r}=e,{list:i,curVotedList:a,cacheVotedList:n,isVotedWithLimit:s,voteCount:l,isForceHideResult:p,findVoteById:u}=o,{toast:d}=Ut(),{$t:m}=Yt(),{trackEvent:f}=rV((t==null?void 0:t.interactionCore)||{});function w(){return Z(this,null,function*(){t&&(a.value=t.getVotedList())})}function h(){return Z(this,null,function*(){if(!t)return;const C=yield t.getVoteList();if(C&&C.code===200&&C.data){i.value=C.data.list,i.value.length>0&&r(!0);const x=t.getCachedVoteResult();x&&x.forEach(S=>{const k=u(S.id)[1];k&&(k.showVoteCount=!p.value,k.voteCount=S.times)})}})}const b=gn(h,1e3);function v(C){return Z(this,null,function*(){if(t&&n.value.indexOf(C)===-1){n.value.push(C);const x=yield t.toVote(C);if(x.code===200)t.pushVotedList(C),d.success(m("vote.success"));else if(x.code===506)d.info(m("vote.voted")),t.pushVotedList(C);else{x.code===501?(s.value=!0,d.error(m("vote.voteLimit"))):d.error(x.message||m("vote.voteFailed"));const S=n.value.indexOf(C);S!==-1&&n.value.splice(S,1)}_()}})}function _(){t&&f({event_id:"click_vote_widget",event_type:"click",spec_attrs:{timestamp:Date.now()}})}function y(){t&&t.interactionCore.getSocket().then(C=>{C&&C.on("connect",()=>{b()})})}return{getVotedList:w,getVoteList:b,toVote:v,setupSocketListener:y}}function OV(e){const{resultShowType:t}=e,o=c.ref([]),r=c.ref([]),i=c.ref([]),a=c.ref(!1),n=c.ref(0),s=c.computed(()=>r.value.length),l=c.computed(()=>t===3&&n.value===0&&i.value.length===0),p=c.computed(()=>t===2||t===3&&(n.value>0||r.value.length>0));function u(d){const m=o.value.findIndex(f=>f.id===d);return[m,o.value[m]]}return{list:o,curVotedList:r,cacheVotedList:i,isVotedWithLimit:a,voteCount:n,isForceHideResult:l,isForceShowResult:p,votedCount:s,findVoteById:u}}const VV=()=>({voteTarget:g.object(),layout:g.oneOf(["single","double"]).def("single"),voteList:g.array(),maxVote:g.number.def(0),showHeader:g.bool.def(!0),showRule:g.bool.def(!0),resultShowType:g.number.def(0)}),BV=()=>({"to-show":()=>!0,"to-hide":()=>!0,"show-entrance":U()}),$V=e=>{var v,_,y,C,x,S,k;const{props:t,emit:o}=e,{getEmitter:r}=oo(),{voteTarget:i={}}=t,a=OV({resultShowType:t.resultShowType}),n=RV({voteTarget:i,state:a,onShowEntrance:L=>o("show-entrance",L)}),{updateVotedList:s,onVoteStart:l,onVoteStop:p,onVoteResult:u,onVoteDeleteAll:d,onVoteDelete:m,onVoteChangeOrder:f}=DV({state:a,onShow:()=>o("to-show"),onGetVoteList:()=>n.getVoteList()});function w(){r().emit(gi.OpenVoteRule)}function h(L){if(a.curVotedList.value.indexOf(L)!==-1||a.isVotedWithLimit.value)return!1;const P=Number(t.maxVote)||0;return P>0?a.votedCount.value<P:!0}function b(){t.voteList&&t.voteList.length>0||(n.setupSocketListener(),n.getVoteList(),n.getVotedList())}return iV(i.eventEmitter,{[(v=i.VoteEvent)==null?void 0:v.UpdateVotedList]:s,[(_=i.VoteEvent)==null?void 0:_.Start]:l,[(y=i.VoteEvent)==null?void 0:y.Stop]:p,[(C=i.VoteEvent)==null?void 0:C.VoteResult]:u,[(x=i.VoteEvent)==null?void 0:x.DeleteAll]:d,[(S=i.VoteEvent)==null?void 0:S.Delete]:m,[(k=i.VoteEvent)==null?void 0:k.UpdateVoteOrder]:f}),c.onMounted(()=>{t.voteTarget&&b()}),c.watch(()=>t.voteTarget,L=>{L&&b()},{immediate:!0}),c.watch(()=>t.voteList,L=>{L!=null&&(a.list.value=[...L])},{immediate:!0,deep:!0}),{list:a.list,curVotedList:a.curVotedList,handleToVote:n.toVote,handleRule:w,isItemClickable:h}},FV=c.defineComponent({__name:"vote-list",props:VV(),emits:BV(),setup(e,{emit:t}){const o=e,{$t:r}=Yt(),{list:i,curVotedList:a,handleToVote:n,handleRule:s,isItemClickable:l}=$V({props:o,emit:t});return{__sfc:!0,$t:r,props:o,emit:t,list:i,curVotedList:a,handleToVote:n,handleRule:s,isItemClickable:l,PwcEmpty:Kr,VoteItemSingle:QV,VoteItemDouble:zV}}});var jV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{staticClass:"plv-iar-vote"},[r.list.length?o("div",{staticClass:"plv-iar-vote__container"},[t.showHeader?o("div",{staticClass:"plv-iar-vote__container__header"},[o("span",[t._v(t._s(r.$t("vote.option")))]),r.props.showRule?o("span",{class:{"plv-iar-vote__container__header__rule--no-pointer":r.props.voteList&&r.props.voteList.length>0},on:{click:r.handleRule}},[t._v(t._s(r.$t("vote.rule")))]):t._e()]):t._e(),o("div",{staticClass:"plv-iar-vote__list",class:{"plv-iar-vote__list--single":t.layout==="single","plv-iar-vote__list--double":t.layout==="double"}},t._l(r.list,function(i){return o(t.layout==="single"?r.VoteItemSingle:r.VoteItemDouble,{key:i.id,tag:"component",attrs:{"vote-data":i,"voted-list":r.curVotedList,clickable:r.isItemClickable(i.id),"has-vote-list":!!(r.props.voteList&&r.props.voteList.length>0)},on:{"to-vote":r.handleToVote}})}),1)]):o("div",{staticClass:"plv-iar-vote__no-data"},[o(r.PwcEmpty)],1)])},NV=[],UV=uo(FV,jV,NV,!1,null,null);const p0=UV.exports,WV="data:image/png;base64,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",ZV=()=>({voteTarget:g.object(),isFullScreen:g.bool.def(!1),iconUrl:g.string.def(""),beforeClickInterrupt:g.func()}),qV=()=>({"open-vote":U()}),YV=e=>{const{props:t}=e,{getEmitter:o}=oo();function r(){return Z(this,null,function*(){t.beforeClickInterrupt&&on(t.beforeClickInterrupt)&&(yield t.beforeClickInterrupt())||o().emit(gi.OpenVote)})}return{pendantIconUrl:c.computed(()=>t.iconUrl||WV),onClickPendant:r}},GV=c.defineComponent({__name:"vote-pendant",props:ZV(),emits:qV(),setup(e,{emit:t}){const o=e,{$t:r}=Yt(),{onClickPendant:i,pendantIconUrl:a}=YV({props:o}),n=c.computed(()=>({backgroundImage:`url(${a.value})`}));return{__sfc:!0,props:o,emit:t,$t:r,onClickPendant:i,pendantIconUrl:a,pendantStyle:n}}});var XV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return t.voteTarget&&!t.isFullScreen?o("div",{staticClass:"plv-iar-vote-pendant",style:r.pendantStyle,on:{click:r.onClickPendant}},[o("div",{staticClass:"plv-iar-vote-pendant__text"},[t._v(" "+t._s(r.$t("vote.entrance"))+" ")])]):t._e()},KV=[],JV=uo(GV,XV,KV,!1,null,null);const HV=JV.exports,eB=()=>({voteTarget:g.object(),popupConfig:g.object(),layout:g.oneOf(["single","double"]).def("single"),maxVote:g.number.def(0),showRule:g.bool.def(!0),resultShowType:g.number.def(0)}),tB=e=>{const{voteListRef:t}=e,o=c.ref(!1),r=c.ref(),{getEmitter:i}=oo();function a(){o.value=!0,c.nextTick(()=>{r.value&&r.value.resetScroll()})}c.watch(o,p=>{p&&c.nextTick(()=>{var u;(u=t==null?void 0:t.value)!=null&&u.recalculateGridRowEnds&&t.value.recalculateGridRowEnds()})});function n(){o.value=!1}function s(){i().emit(gi.OpenVoteRule)}return ro(gi.OpenVote,a),{instance:{open:a,close:n},visible:o,popupRef:r,handleToRule:s}},oB=c.defineComponent({__name:"vote-list-popup",props:eB(),setup(e,{expose:t}){const o=e,{$t:r}=Yt(),i=c.ref(),{instance:a,visible:n,popupRef:s,handleToRule:l}=tB({voteListRef:i});return t(a),{__sfc:!0,props:o,$t:r,voteListRef:i,instance:a,visible:n,popupRef:s,handleToRule:l,PwcPopup:nt,VoteListComponent:p0}}});var rB=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o(r.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-list-popup",attrs:{title:r.$t("vote.listTitle"),"popup-config":t.popupConfig,closeable:!1,"body-height-percent":.65,background:"#F7F8Fa"},scopedSlots:t._u([{key:"header-right",fn:function(){return[t.showRule?o("span",{staticClass:"plv-iar-vote-list-popup__rule",on:{click:r.handleToRule}},[t._v(" "+t._s(r.$t("vote.rule"))+" ")]):t._e()]},proxy:!0}]),model:{value:r.visible,callback:function(i){r.visible=i},expression:"visible"}},[o("div",{staticClass:"plv-iar-vote-list-popup__content"},[o(r.VoteListComponent,{ref:"voteListRef",attrs:{"vote-target":t.voteTarget,layout:t.layout,"max-vote":t.maxVote,"show-header":!1,"show-rule":t.showRule,"result-show-type":t.resultShowType},on:{"to-rule":r.handleToRule}})],1)])},iB=[],aB=uo(oB,rB,iB,!1,null,null);const nB=aB.exports,sB=()=>({ruleText:g.string.def(""),popupConfig:g.object()}),lB=e=>{const t=c.ref(!1),o=c.ref();function r(){t.value=!0,c.nextTick(()=>{o.value&&o.value.resetScroll()})}function i(){t.value=!1}return ro(gi.OpenVoteRule,r),{instance:{open:r,close:i},visible:t,popupRef:o,close:i}},cB=c.defineComponent({__name:"vote-rule-popup",props:sB(),setup(e,{expose:t}){const o=e,{$t:r}=Yt(),{isMobile:i}=Pe(),{instance:a,visible:n,popupRef:s}=lB();return t(a),{__sfc:!0,props:o,$t:r,isMobile:i,instance:a,visible:n,popupRef:s,PwcPopup:nt}}});var pB=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o(r.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-rule-popup",attrs:{title:r.$t("vote.ruleTitle"),"popup-config":t.popupConfig,backable:r.isMobile,background:r.isMobile?"#F7F8Fa":void 0,"body-height-percent":r.isMobile?.65:void 0},model:{value:r.visible,callback:function(i){r.visible=i},expression:"visible"}},[o("div",{staticClass:"plv-iar-vote-rule-popup__content"},[t.ruleText?o("div",{staticClass:"plv-iar-vote-rule-popup__text",domProps:{innerHTML:t._s(t.ruleText)}}):o("div",{staticClass:"plv-iar-vote-rule-popup__empty"},[t._v(" "+t._s(r.$t("vote.noRule"))+" ")])])])},uB=[],dB=uo(cB,pB,uB,!1,null,null);const fB=dB.exports;ae.VoteList=p0,ae.VoteListPopup=nB,ae.VotePendant=HV,ae.VoteRulePopup=fB,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})});console.log("%c@polyv/iar-vote-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.2.0-rc-20260402.1]","[buildTime: 2026-04-02 02:23:19]");
1103
+ }`}],staticClass:"pwc-menu-item__content",class:{"is-active":o.isActive&&!o.menuItemProps.iconMode,"is-icon-mode":o.menuItemProps.iconMode},on:{click:o.onClickItem}},[o.hasSlot("icon")||o.menuIcon?t("div",{staticClass:"pwc-menu-item__icon"},[o.hasSlot("icon")?[t(o.renderSlot,{attrs:{"slot-func":()=>o.slotRender("icon",{isActive:o.isActive})}})]:[t(o.menuIcon,{tag:"component"})]],2):e._e(),o.menuItemProps.iconMode?e._e():t("div",{directives:[{name:"show",rawName:"v-show",value:!o.menuProps.collapsed||o.inSubMenuPopper,expression:"!menuProps.collapsed || inSubMenuPopper"}],staticClass:"pwc-menu-item__title"},[o.hasSlot("title")?[t(o.renderSlot,{attrs:{"slot-func":()=>o.slotRender("title")}})]:[e._v(" "+e._s(o.menuItemProps.title)+" ")]],2)])},kR=[],PR=B(LR,SR,kR);const TR=PR.exports,QR=c.defineComponent({__name:"menu-item",props:iR(),setup(e){const t=e,{receiveRouterSlotData:o}=CR({props:t});return{__sfc:!0,props:t,receiveRouterSlotData:o,MenuItemContent:TR}}});var ER=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return o.props.to?t("router-link",{tag:"component",attrs:{to:e.to,custom:""},scopedSlots:e._u([{key:"default",fn:function(r){return[t("a",e._b({staticClass:"pwc-menu-item",attrs:{href:r.href}},"a",o.receiveRouterSlotData(r),!1),[t(o.MenuItemContent)],1)]}}],null,!1,4189994726)}):e.href?t("a",{staticClass:"pwc-menu-item",attrs:{href:e.href}},[t(o.MenuItemContent)],1):t("div",{staticClass:"pwc-menu-item"},[t(o.MenuItemContent)],1)},IR=[],MR=B(QR,ER,IR);const AR=MR.exports,zR={};var DR=function(){var e=this;return e._self._c,e._m(0)},RR=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"pwc-menu-divider"},[t("div")])}],OR=B(zR,DR,RR);const VR=OR.exports;K("PwcMenu",pR),K("PwcSubMenu",xR),K("PwcMenuItem",AR),K("PwcMenuDivider",VR);const BR=()=>X(O(O({},$n()),nd()),{trigger:g.oneOf(Ki).def("click"),placement:g.oneOf(Xr).def("top"),feedbackType:g.enum().def(No.Warning),concise:g.bool.def(!1)}),$R=()=>O({},X1()),FR=c.defineComponent({__name:"popconfirm",props:BR(),emits:$R(),setup(e,{emit:t}){const o=e,{buttonData:r,onClickConfirm:i,onClickCancel:a}=J1({props:o,emit:t,afterConfirm:()=>{var l;(l=s.value)==null||l.hidePopper()},afterCancel:()=>{var l;(l=s.value)==null||l.hidePopper()}}),n=c.computed(()=>{if(!o.concise)return o.feedbackType}),s=c.ref();return{__sfc:!0,props:o,emit:t,buttonData:r,onClickConfirm:i,onClickCancel:a,popoverFeedbackType:n,popoverRef:s,PwcButton:$e,PwcPopover:sd}}});var jR=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t(o.PwcPopover,e._b({ref:"popoverRef",staticClass:"pwc-popconfirm",attrs:{trigger:e.trigger,placement:e.placement,"feedback-type":o.popoverFeedbackType},scopedSlots:e._u([{key:"reference",fn:function(){return[e._t("default")]},proxy:!0},{key:"default",fn:function(){return[t("div",{staticClass:"pwc-popconfirm__content"},[e.concise?e._e():e._t("content",function(){return[e._v(e._s(e.content))]}),t("div",{staticClass:"pwc-popconfirm__content__btns",class:{"is-concise":e.concise}},[o.buttonData.showCancelButton?t(o.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:o.onClickCancel}},"pwc-button",o.buttonData.cancelButtonProps,!1)):e._e(),o.buttonData.showConfirmButton?t(o.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:o.onClickConfirm}},"pwc-button",o.buttonData.confirmButtonProps,!1)):e._e()],1)],2)]},proxy:!0}],null,!0)},"pwc-popover",o.props,!1))},NR=[],UR=B(FR,jR,NR);const WR=UR.exports;K("PwcPopconfirm",WR);var qe=(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))(qe||{});function ZR(e,t){const o=c.ref((()=>{try{const r=localStorage.getItem(e);if(r)return JSON.parse(r)}catch(r){}return t})());return c.watch(o,r=>{try{localStorage.setItem(e,JSON.stringify(r))}catch(i){}},{deep:!0}),o}const qR=()=>({width:g.number.def(0),height:g.number.def(0),minWidth:g.number.def(50),minHeight:g.number.def(50),maxWidth:g.number.def(1/0),maxHeight:g.number.def(1/0),disabled:g.bool.def(!1),handleSize:g.number.def(8),showHandles:g.oneOfType([Boolean,Array]).def(!0),storageKey:g.string.def("")}),YR=()=>({"resize-start":U(),resize:U(),"resize-end":U()}),GR=e=>{const{props:t,emit:o}=e,r=c.ref(),i=c.ref(!1),a=c.ref(null),n=c.ref({x:0,y:0}),s=c.ref({width:0,height:0}),l={width:t.width,height:t.height},p=t.storageKey?ZR(t.storageKey,l):c.ref(l),u=c.computed(()=>{const h={};return t.width&&(h.width=p.value.width+"px"),t.height&&(h.height=p.value.height+"px"),h}),d=h=>t.showHandles===!1||Array.isArray(t.showHandles)&&!t.showHandles.includes(h)?!1:[qe.Top,qe.Bottom].includes(h)?!!t.height:[qe.Left,qe.Right].includes(h)?!!t.width:!!t.width&&!!t.height,m=(h,b)=>{t.disabled||(h.preventDefault(),h.stopPropagation(),i.value=!0,a.value=b,n.value={x:h.clientX,y:h.clientY},s.value=O({},p.value),o("resize-start",{width:p.value.width,height:p.value.height,direction:b,event:h}))},f=h=>{if(!i.value||!a.value)return;const b=h.clientX-n.value.x,v=h.clientY-n.value.y;let _=s.value.width,y=s.value.height;switch(a.value){case qe.Right:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b));break;case qe.Bottom:y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break;case qe.Left:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b));break;case qe.Top:y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case qe.TopRight:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b)),y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case qe.TopLeft:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b)),y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case qe.BottomRight:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b)),y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break;case qe.BottomLeft:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b)),y=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break}p.value={width:_,height:y},o("resize",{width:_,height:y,direction:a.value,event:h})},w=h=>{if(!i.value||!a.value)return;i.value=!1;const b=a.value;a.value=null,o("resize-end",{width:p.value.width,height:p.value.height,direction:b,event:h})};return c.onMounted(()=>{document.addEventListener("mousemove",f),document.addEventListener("mouseup",w)}),c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",w)}),{boxStyle:u,containerRef:r,currentSize:p,isResizing:i,showHandleControl:d,handleMouseDown:m}};qR(),YR();const XR=()=>({title:g.looseString,titleTooltip:g.looseString}),KR=c.defineComponent({__name:"section",props:XR(),setup(e){const t=e,{hasSlot:o,slotRender:r}=we(),i=c.computed(()=>o("title-tooltip")||t.titleTooltip);return{__sfc:!0,props:t,hasSlot:o,slotRender:r,hasTitleTooltip:i,PwcTooltip:fp,renderSlot:at}}});var JR=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("section",{staticClass:"pwc-section"},[o.hasSlot("title")||e.title?t("div",{staticClass:"pwc-section__title"},[e._t("title",function(){return[e._v(e._s(e.title))]}),o.hasTitleTooltip?[t(o.PwcTooltip,{attrs:{content:e.titleTooltip},scopedSlots:e._u([o.hasSlot("title-tooltip")?{key:"content",fn:function(){return[t(o.renderSlot,{attrs:{"slot-func":()=>o.slotRender("title-tooltip")}})]},proxy:!0}:null],null,!0)})]:e._e()],2):e._e(),t("div",{staticClass:"pwc-section__content"},[e._t("default")],2)])},HR=[],eO=B(KR,JR,HR);const tO=eO.exports;K("PwcSection",tO);const oO=()=>({[g.modelValueKey]:g.oneOfType([Number,Array]).def(0),min:g.number.def(0),max:g.number.def(100),disabled:g.bool.def(!1),showTooltip:g.bool.def(!1),range:g.bool.def(!1),step:g.number.def(1),showStops:g.bool.def(!1),showSliderButton:g.bool.def(!0),marks:g.object(),cssRotateAngle:g.oneOf([0,90,180,270]).def(0),progressBarVisible:g.bool.def(!0),hotAreaHeight:g.number.def(4),sliderBarHeight:g.looseNumber,buttonSize:g.number.def(14)}),rO=()=>X(O({},me()),{change:U()}),e0=Symbol("slider-inject-key"),iO=e=>{const{props:t,emit:o}=e,{modelValue:r,updateModelValue:i}=ue(t,{outSideUpdate:()=>{S()}}),a=c.ref(0),n=c.ref(0),s=c.ref(!1),l=c.ref(void 0),p=c.ref(),{width:u}=Oe(p),d=c.ref(),m=c.ref(),f=c.ref(),w=c.computed(()=>Math.min(a.value,n.value)),h=c.computed(()=>Math.max(a.value,n.value)),b=c.computed(()=>t.range?`${100*(h.value-w.value)/(t.max-t.min)}%`:`${100*(a.value-t.min)/(t.max-t.min)}%`),v=c.computed(()=>t.range?`${100*(w.value-t.min)/(t.max-t.min)}%`:"0%"),_=c.computed(()=>X(O({},y.value),{width:b.value,left:v.value})),y=c.computed(()=>{const A={};return t.sliderBarHeight&&(A.height=`${t.sliderBarHeight}px`,A.borderRadius=`${t.sliderBarHeight/2}px`),A}),C=c.computed(()=>{const A=[],I=t.max-t.min,E=M=>{A.includes(M)||A.push(M)};if(t.step&&t.showStops){const M=I/t.step,z=t.step/I;for(let D=1;D<M;D++){const R=Math.round(D*z*100);E(R)}}return t.marks&&Object.keys(t.marks).forEach(M=>{const z=Number(M);if(z>=t.min&&z<=t.max){const D=(z-t.min)/I,R=Math.round(D*100);E(R)}}),A}),x=c.computed(()=>{const A=[],I=t.max-t.min;return t.marks&&Object.keys(t.marks).forEach(E=>{const M=Number(E),z=t.marks[M];let D="",R={};if(typeof z=="string"?D=z:(D=z.label,R=z.style||{}),M>=t.min&&M<=t.max){const V=(M-t.min)/I,j=Math.round(V*100);A.push({label:D,style:R,left:j,value:M})}}),A});function S(){t.range?Array.isArray(r.value)?(a.value=Math.max(t.min,r.value[0]),n.value=Math.min(t.max,r.value[1])):(a.value=t.min,n.value=t.max):typeof r.value!="number"||isNaN(r.value)?a.value=t.min:a.value=Math.min(t.max,Math.max(t.min,r.value))}function k(){let A=r.value;t.range?A=[Math.floor(w.value),Math.floor(h.value)]:A=Math.floor(a.value),A!==r.value&&(l.value=r.value,i(A))}function L(){c.nextTick(()=>{o("change",t.range?[w.value,h.value]:r.value)})}function Q(A){var M;if(!t.range){(M=m.value)==null||M.setPosition(A);return}let I;const E=t.min+A*(t.max-t.min)/100;Math.abs(w.value-E)<Math.abs(h.value-E)?I=a.value<n.value?m.value:f.value:I=a.value>n.value?m.value:f.value,I==null||I.setPosition(A)}function P(A){var I,E;if(!(t.disabled||s.value)){if(t.cssRotateAngle===90){const M=((I=d.value)==null?void 0:I.getBoundingClientRect().top)||0;Q((A.clientY-M)/u.value*100)}else{const M=((E=d.value)==null?void 0:E.getBoundingClientRect().left)||0;Q((A.clientX-M)/u.value*100)}L()}}function T(A){Q(A.left),L()}return c.onMounted(()=>{S()}),c.provide(e0,{sliderProps:t,sliderWidth:u,dragging:s,emitChange:L}),{modelValue:r,firstValue:a,secondValue:n,dragging:s,sliderRef:p,sliderClickRef:d,button1Ref:m,button2Ref:f,barStyle:_,runwayStyle:y,stops:C,markList:x,onSliderClick:P,onClickMark:T,emitInnerInput:k}},t0=()=>c.inject(e0),aO=()=>({value:g.number}),nO=()=>({change:U()}),sO=e=>{const{props:t,emit:o}=e,{sliderProps:r,sliderWidth:i,emitChange:a}=t0(),n=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(()=>`${(t.value-r.min)/(r.max-r.min)*100}%`),f=c.computed(()=>({left:m.value}));function w(L){let Q,P;switch("touches"in L?(Q=L.touches[0].clientX,P=L.touches[0].clientY):(Q=L.clientX,P=L.clientY),r.cssRotateAngle){case 90:return{clientX:P,clientY:Q};case 180:return{clientX:-Q,clientY:-P};case 270:return{clientX:-P,clientY:Q}}return{clientX:Q,clientY:P}}function h(){r.disabled||(n.value=!0)}function b(){r.disabled||(n.value=!1)}function v(L){if(r.disabled)return;s.value=!0,l.value=!0;const Q=w(L);p.value=Q.clientX,u.value=parseFloat(m.value),d.value=u.value}function _(L){if(!r.disabled&&s.value){l.value=!1;const Q=(w(L).clientX-p.value)/i.value*100;d.value=u.value+Q,k(d.value)}}function y(){r.disabled||pe||s.value&&setTimeout(()=>{s.value=!1,l.value||(k(d.value),a())},0)}function C(L){r.disabled||pe||(v(L),window.addEventListener("mousemove",_),window.addEventListener("touchmove",_),window.addEventListener("mouseup",y),window.addEventListener("touchend",y),window.addEventListener("contextmenu",y))}function x(){window.removeEventListener("mousemove",_),window.removeEventListener("touchmove",_),window.removeEventListener("mouseup",y),window.removeEventListener("touchend",y),window.removeEventListener("contextmenu",y)}c.onBeforeUnmount(()=>{x()});function S(L){let Q=L;return r.step&&(Q=Math.round(L/r.step)*r.step),Q<r.min&&(Q=r.min),Q>r.max&&(Q=r.max),Q}function k(L){if(L===null||isNaN(L))return;L<0?L=0:L>100&&(L=100);const Q=(r.max-r.min)*(L/100),P=r.min+Q;o("change",S(P))}return{hovering:n,dragging:s,btnStyle:f,handleMouseEnter:h,handleMouseLeave:b,onButtonDown:C,setPosition:k}},lO={name:"PlvSliderButton"},cO=c.defineComponent(X(O({},lO),{props:aO(),emits:nO(),setup(e,{expose:t,emit:o}){const r=e,i=t0(),{sliderProps:a}=i,{hovering:n,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=sO({props:r,emit:o}),f=c.computed(()=>s.value||i.dragging.value||!1);return t({setPosition:m}),{__sfc:!0,props:r,emit:o,sliderInject:i,sliderProps:a,hovering:n,buttonDragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m,dragging:f}}}));var pO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{staticClass:"pwc-slider__button",style:o.btnStyle,on:{mouseenter:o.handleMouseEnter,mouseleave:o.handleMouseLeave,mousedown:o.onButtonDown,touchstart:o.onButtonDown}},[t("div",{class:["pwc-slider__button__inner",o.hovering||o.dragging?"pwc-slider__button__inner--hover":"",o.sliderProps.disabled?"pwc-slider__button__inner--disabled":""],style:{width:`${o.sliderProps.buttonSize}px`,height:`${o.sliderProps.buttonSize}px`}})])},uO=[],dO=B(cO,pO,uO);const fO=dO.exports,mO=c.defineComponent({__name:"slider",props:oO(),emits:rO(),setup(e,{emit:t}){const o=e,{firstValue:r,secondValue:i,sliderRef:a,sliderClickRef:n,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:w,emitInnerInput:h}=iO({props:o,emit:t});function b(_){r.value=_,h()}function v(_){i.value=_,h()}return{__sfc:!0,props:o,emit:t,firstValue:r,secondValue:i,sliderRef:a,sliderClickRef:n,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:w,emitInnerInput:h,onFirstValueChange:b,onSecondValueChange:v,SliderButton:fO}}});var hO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{staticClass:"pwc-slider"},[t("div",{ref:"sliderRef",class:["pwc-slider__runway",o.props.disabled?"pwc-slider__runway--disabled":""],style:o.runwayStyle},[o.props.progressBarVisible?t("div",{staticClass:"pwc-slider__runway__bar",style:o.barStyle}):e._e(),t("div",{ref:"sliderClickRef",staticClass:"pwc-slider__runway__click",style:{height:`${o.props.hotAreaHeight}px`},on:{click:o.onSliderClick}}),e._l(o.stops,function(r){return t("div",{key:`dot-${r}`,staticClass:"pwc-slider__runway__dot",style:{left:`${r}%`}})}),o.props.showSliderButton?t(o.SliderButton,{ref:"button1Ref",attrs:{value:o.firstValue},on:{change:o.onFirstValueChange}}):e._e(),o.props.range&&o.props.showSliderButton?t(o.SliderButton,{ref:"button2Ref",attrs:{value:o.secondValue},on:{change:o.onSecondValueChange}}):e._e()],2),o.markList.length?t("div",{staticClass:"pwc-slider__marks"},e._l(o.markList,function(r,i){return t("div",{key:`mark-${i}`,staticClass:"pwc-slider__marks__item",style:O({left:`${r.left}%`},r.style),on:{click:function(a){return o.onClickMark(r)}}},[e._v(" "+e._s(r.label)+" ")])}),0):e._e()])},gO=[],vO=B(mO,hO,gO);const wO=vO.exports;K("PwcSlider",wO);const bO=()=>({max:g.number.def(3)}),_O=()=>({label:g.looseString}),yO=()=>({click:U()}),o0=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),xO=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(o0,{}),{__sfc:!0,PwcButton:$e,PwcIconMore:D1,PwcDropdown:ZQ,PwcDropdownMenu:qQ}}});var CO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t(o.PwcDropdown,{staticClass:"pwc-table-operation-dropdown",scopedSlots:e._u([{key:"dropdown",fn:function(){return[t(o.PwcDropdownMenu,[e._t("default")],2)]},proxy:!0}],null,!0)},[t(o.PwcButton,{attrs:{link:""}},[t("div",{staticClass:"pwc-table-operation-dropdown__icon"},[t(o.PwcIconMore)],1)])],1)},LO=[],SO=B(xO,CO,LO);const kO=SO.exports,PO=c.defineComponent({props:bO(),setup(e){const t=c.useSlots(),o=c.inject(Ts,void 0),r=Rt(8),i=c.ref();function a(){if(o)return o.allRenderColumnList.value.find(n=>n.columnProps.type==="operation")}return Oe(i,({width:n})=>{const s=a();s&&s.setOperationWidthRecord(r,n)}),c.onBeforeUnmount(()=>{const n=a();n&&n.removeOperationWidthRecord(r)}),()=>{var m;let n=(m=t.default)==null?void 0:m.call(t);if(!n)return c.h("span",{},"-");let s=0;const l=[],p=[],u=n.reduce((f,w)=>ze.isCommentVNode(w)?f:f+1,0);u===0&&l.push(c.h("span",{},"-")),n.forEach((f,w)=>{u<=e.max||s<e.max-1?(l.push(f),s++):p.push(f)}),p.length>0&&l.push(c.h(kO,{},S1()?{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:i},l)])}}}),TO=c.defineComponent({__name:"table-operation-item",props:_O(),emits:yO(),setup(e,{emit:t}){const o=e,r=c.inject(o0,void 0);function i(a){t("click",a)}return{__sfc:!0,props:o,emit:t,dropdownInject:r,onClickItem:i,PwcButton:$e,PwcDropdownItem:YQ}}});var QO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return o.dropdownInject?t(o.PwcDropdownItem,{staticClass:"pwc-table-operation-item",nativeOn:{click:function(r){return o.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2):t(o.PwcButton,{staticClass:"pwc-table-operation-item",attrs:{link:""},nativeOn:{click:function(r){return o.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2)},EO=[],IO=B(TO,QO,EO);const MO=IO.exports;K("PwcTableOperation",PO),K("PwcTableOperationItem",MO);const AO=["line","rounded","text"],zO=()=>({[g.modelValueKey]:g.oneOfType([String,Number,Symbol]),type:g.oneOf(AO).def("line"),expand:g.bool.def(!1),lazyLoad:g.bool.def(!1)}),DO=()=>X(O({},me()),{change:U()}),RO=()=>({name:g.oneOfType([String,Number]),extra:g.looseString,disabled:g.bool.def(!1),title:g.looseString,lazyLoad:g.looseBool}),Hs=Symbol("tabs-inject-key"),OO=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:t,tabsProps:o,setCurrentTab:r}=c.inject(Hs),{$t:i}=H(),a=c.ref(),n=c.ref(!1),{visible:s,toggle:l}=lt();function p(){return Z(this,null,function*(){if(yield c.nextTick(),!a.value||pe)return;const d=a.value.querySelector(".pwc-tab-nav__item");if(!d)return;const m=d.clientHeight;a.value.clientHeight>=m*1.5||a.value.scrollWidth>a.value.clientWidth?n.value=!0:n.value=!1})}c.watch(()=>t.value.length,()=>{p()},{immediate:!0});function u(d){d.paneProps.disabled||r(d.getPaneName())}return{__sfc:!0,tabPanes:t,tabsProps:o,setCurrentTab:r,$t:i,listRef:a,isMoreItem:n,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:pr,PwcIconUp:O1,renderSlot:at}}});var VO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-nav",class:[`is-type-${o.tabsProps.type}`]},[t("div",{ref:"listRef",staticClass:"pwc-tab-nav__list",class:{"is-hide":o.tabsProps.expand&&!o.isExpanded}},e._l(o.tabPanes,function(r){return t("div",{key:r.paneId,staticClass:"pwc-tab-nav__item",class:{"is-active":r.getIsActive(),"is-disabled":r.paneProps.disabled},on:{click:function(i){return o.onClickItem(r)}}},[r.hasSlot("title")?t(o.renderSlot,{staticClass:"pwc-tab-nav__item__title",attrs:{"slot-func":r.getTitleRenderSlot}}):t("span",[e._v(e._s(r.paneProps.title))]),r.hasSlot("extra")?t(o.renderSlot,{staticClass:"pwc-tab-nav__item__extra",attrs:{"slot-func":r.getExtraRenderSlot}}):e._e(),r.paneProps.extra?t("span",{staticClass:"pwc-tab-nav__item__extra"},[e._v(" "+e._s(r.paneProps.extra)+" ")]):e._e()],1)}),0),t("div",{staticClass:"pwc-tab-nav__right"},[o.tabsProps.expand&&o.isMoreItem?t("div",{staticClass:"pwc-tab-nav__expand",on:{click:o.toggle}},[t("span",[e._v(e._s(o.isExpanded?o.$t("tabs.collapse"):o.$t("tabs.more")))]),o.isExpanded?t(o.PwcIconUp):t(o.PwcIconDown)],1):e._e()])])},BO=[],$O=B(OO,VO,BO);const FO=$O.exports,jO=c.defineComponent({__name:"tabs",props:zO(),emits:DO(),setup(e,{emit:t}){const o=e,r=c.ref(),i=c.ref(),{modelValue:a,updateModelValue:n}=ue(o,{outSideUpdate:w=>{r.value=w}}),s=c.ref([]);function l(w){if(!s.value.includes(w)){if(typeof r.value>"u")if(typeof a.value>"u"){const h=w.getPaneName();u(h,!1)}else u(a.value,!1);s.value.push(w)}}function p(w){s.value=s.value.filter(h=>h!==w)}function u(w,h=!0){r.value!==w&&(r.value=w,n(w),h&&t("change",w))}const d=c.ref(0);function m(){return Z(this,null,function*(){var b;yield c.nextTick();const w=((b=i.value)==null?void 0:b.querySelectorAll("[data-pane-name]"))||[];let h=0;for(let v=0;v<w.length;v++)if(w[v].getAttribute("data-is-active")==="true"){h=v*100;break}d.value=h})}c.watch(()=>r.value,()=>{m()});const f={tabsProps:o,currentTab:r,tabPanes:s,setCurrentTab:u,addTabPane:l,removeTabPane:p};return c.provide(Hs,f),{__sfc:!0,props:o,emits:t,currentTab:r,tabsRef:i,modelValue:a,updateModelValue:n,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:FO}}});var NO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{ref:"tabsRef",staticClass:"pwc-tabs"},[t(o.TabNav),t("div",{staticClass:"pwc-tabs__content"},[t("div",{staticClass:"pwc-tabs__list",style:{marginLeft:`-${o.offsetPercent}%`}},[e._t("default")],2)])],1)},UO=[],WO=B(jO,NO,UO);const ZO=WO.exports,qO=c.defineComponent({__name:"tab-pane",props:RO(),setup(e){const t=e,o=Rt(8),r=c.inject(Hs),{hasSlot:i,slotRender:a}=we(),n=c.computed(()=>t.name||o),s=c.computed(()=>r.currentTab.value===n.value);function l(){return a("title",{isActive:s.value})}const p=c.computed(()=>{var f;return(f=t.lazyLoad)!=null?f:r.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:o,paneProps:t,getPaneName:()=>n.value,getIsActive:()=>s.value,hasSlot:i,getTitleRenderSlot:l,getExtraRenderSlot:()=>a("extra")};return c.onBeforeMount(()=>{r.addTabPane(m)}),{__sfc:!0,props:t,paneId:o,tabsInject:r,hasSlot:i,slotRender:a,tabPaneName:n,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var YO=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-pane",class:{"is-active":o.isActive},attrs:{"data-pane-name":o.tabPaneName,"data-is-active":o.isActive}},[o.canRender?t("div",{staticClass:"pwc-tab-pane__content"},[e._t("default")],2):e._e()])},GO=[],XO=B(qO,YO,GO);const KO=XO.exports;K("PwcTabs",ZO),K("PwcTabPane",KO);var r0={},JO,HO;function eV(e,t,o,a){var i=0,a=a===void 0?{}:a,n=a.loop===void 0?null:a.loop,s=a.palette===void 0?null:a.palette;if(t<=0||o<=0||t>65535||o>65535)throw new Error("Width/Height invalid.");function l(b){var v=b.length;if(v<2||v>256||v&v-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return v}e[i++]=71,e[i++]=73,e[i++]=70,e[i++]=56,e[i++]=57,e[i++]=97;var p=0,u=0;if(s!==null){for(var d=l(s);d>>=1;)++p;if(d=1<<p,--p,a.background!==void 0){if(u=a.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[i++]=t&255,e[i++]=t>>8&255,e[i++]=o&255,e[i++]=o>>8&255,e[i++]=(s!==null?128:0)|p,e[i++]=u,e[i++]=0,s!==null)for(var m=0,f=s.length;m<f;++m){var w=s[m];e[i++]=w>>16&255,e[i++]=w>>8&255,e[i++]=w&255}if(n!==null){if(n<0||n>65535)throw new Error("Loop count invalid.");e[i++]=33,e[i++]=255,e[i++]=11,e[i++]=78,e[i++]=69,e[i++]=84,e[i++]=83,e[i++]=67,e[i++]=65,e[i++]=80,e[i++]=69,e[i++]=50,e[i++]=46,e[i++]=48,e[i++]=3,e[i++]=1,e[i++]=n&255,e[i++]=n>>8&255,e[i++]=0}var h=!1;this.addFrame=function(b,v,_,y,C,x){if(h===!0&&(--i,h=!1),x=x===void 0?{}:x,b<0||v<0||b>65535||v>65535)throw new Error("x/y invalid.");if(_<=0||y<=0||_>65535||y>65535)throw new Error("Width/Height invalid.");if(C.length<_*y)throw new Error("Not enough pixels for the frame size.");var S=!0,k=x.palette;if(k==null&&(S=!1,k=s),k==null)throw new Error("Must supply either a local or global palette.");for(var L=l(k),Q=0;L>>=1;)++Q;L=1<<Q;var P=x.delay===void 0?0:x.delay,T=x.disposal===void 0?0:x.disposal;if(T<0||T>3)throw new Error("Disposal out of range.");var A=!1,I=0;if(x.transparent!==void 0&&x.transparent!==null&&(A=!0,I=x.transparent,I<0||I>=L))throw new Error("Transparent color index.");if((T!==0||A||P!==0)&&(e[i++]=33,e[i++]=249,e[i++]=4,e[i++]=T<<2|(A===!0?1:0),e[i++]=P&255,e[i++]=P>>8&255,e[i++]=I,e[i++]=0),e[i++]=44,e[i++]=b&255,e[i++]=b>>8&255,e[i++]=v&255,e[i++]=v>>8&255,e[i++]=_&255,e[i++]=_>>8&255,e[i++]=y&255,e[i++]=y>>8&255,e[i++]=S===!0?128|Q-1:0,S===!0)for(var E=0,M=k.length;E<M;++E){var z=k[E];e[i++]=z>>16&255,e[i++]=z>>8&255,e[i++]=z&255}return i=tV(e,i,Q<2?2:Q,C),i},this.end=function(){return h===!1&&(e[i++]=59,h=!0),i},this.getOutputBuffer=function(){return e},this.setOutputBuffer=function(b){e=b},this.getOutputBufferPosition=function(){return i},this.setOutputBufferPosition=function(b){i=b}}function tV(e,t,o,r){e[t++]=o;var i=t++,a=1<<o,n=a-1,s=a+1,l=s+1,p=o+1,u=0,d=0;function m(x){for(;u>=x;)e[t++]=d&255,d>>=8,u-=8,t===i+256&&(e[i]=255,i=t++)}function f(x){d|=x<<u,u+=p,m(8)}var w=r[0]&n,h={};f(a);for(var b=1,v=r.length;b<v;++b){var _=r[b]&n,y=w<<8|_,C=h[y];if(C===void 0){for(d|=w<<u,u+=p;u>=8;)e[t++]=d&255,d>>=8,u-=8,t===i+256&&(e[i]=255,i=t++);l===4096?(f(a),l=s+1,p=o+1,h={}):(l>=1<<p&&++p,h[y]=l++),w=_}else w=C}return f(w),f(s),m(1),i+1===t?e[i]=0:(e[i]=t-i-1,e[t++]=0),t}function oV(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!==56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var o=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],a=i>>7,n=i&7,s=1<<n+1;e[t++],e[t++];var l=null,p=null;a&&(l=t,p=s,t+=s*3);var u=!0,d=[],m=0,f=null,w=0,h=null;for(this.width=o,this.height=r;u&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,h=e[t++]|e[t++]<<8,t++;else for(t+=12;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var v=e[t++];m=e[t++]|e[t++]<<8,f=e[t++],v&1||(f=null),w=v>>2&7,t++;break;case 254:for(;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var _=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,C=e[t++]|e[t++]<<8,x=e[t++]|e[t++]<<8,S=e[t++],k=S>>7,L=S>>6&1,Q=S&7,P=1<<Q+1,T=l,A=p,I=!1;if(k){var I=!0;T=t,A=P,t+=P*3}var E=t;for(t++;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}d.push({x:_,y,width:C,height:x,has_local_palette:I,palette_offset:T,palette_size:A,data_offset:E,data_length:t-E,transparent_index:f,interlaced:!!L,delay:m,disposal:w});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return h},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,z){var D=this.frameInfo(M),R=D.width*D.height,V=new Uint8Array(R);i0(e,D.data_offset,V,R);var j=D.palette_offset,F=D.transparent_index;F===null&&(F=256);var N=D.width,W=o-N,q=N,G=(D.y*o+D.x)*4,J=((D.y+D.height)*o+D.x)*4,te=G,oe=W*4;D.interlaced===!0&&(oe+=o*4*7);for(var ee=8,le=0,ge=V.length;le<ge;++le){var _e=V[le];if(q===0&&(te+=oe,q=N,te>=J&&(oe=W*4+o*4*(ee-1),te=G+(N+W)*(ee<<1),ee>>=1)),_e===F)te+=4;else{var Ae=e[j+_e*3],At=e[j+_e*3+1],zt=e[j+_e*3+2];z[te++]=zt,z[te++]=At,z[te++]=Ae,z[te++]=255}--q}},this.decodeAndBlitFrameRGBA=function(M,z){var D=this.frameInfo(M),R=D.width*D.height,V=new Uint8Array(R);i0(e,D.data_offset,V,R);var j=D.palette_offset,F=D.transparent_index;F===null&&(F=256);var N=D.width,W=o-N,q=N,G=(D.y*o+D.x)*4,J=((D.y+D.height)*o+D.x)*4,te=G,oe=W*4;D.interlaced===!0&&(oe+=o*4*7);for(var ee=8,le=0,ge=V.length;le<ge;++le){var _e=V[le];if(q===0&&(te+=oe,q=N,te>=J&&(oe=W*4+o*4*(ee-1),te=G+(N+W)*(ee<<1),ee>>=1)),_e===F)te+=4;else{var Ae=e[j+_e*3],At=e[j+_e*3+1],zt=e[j+_e*3+2];z[te++]=Ae,z[te++]=At,z[te++]=zt,z[te++]=255}--q}}}function i0(e,t,o,r){for(var i=e[t++],a=1<<i,n=a+1,s=n+1,l=i+1,p=(1<<l)-1,u=0,d=0,m=0,f=e[t++],w=new Int32Array(4096),h=null;;){for(;u<16&&f!==0;)d|=e[t++]<<u,u+=8,f===1?f=e[t++]:--f;if(u<l)break;var b=d&p;if(d>>=l,u-=l,b===a){s=n+1,l=i+1,p=(1<<l)-1,h=null;continue}else if(b===n)break;for(var v=b<s?b:h,_=0,y=v;y>a;)y=w[y]>>8,++_;var C=y,x=m+_+(v!==b?1:0);if(x>r){console.log("Warning, gif stream longer than expected.");return}o[m++]=C,m+=_;var S=m;for(v!==b&&(o[m++]=C),y=v;_--;)y=w[y],o[--S]=y&255,y>>=8;h!==null&&s<4096&&(w[s++]=h<<8|C,s>=p+1&&l<12&&(++l,p=p<<1|1)),h=b}return m!==r&&console.log("Warning, gif stream shorter than expected."),o}try{HO=r0.GifWriter=eV,JO=r0.GifReader=oV}catch(e){}const rV=e=>{const{configProviderData:t}=Ft();function o(r){var i;if(t!=null&&t.trackEventCallback){t.trackEventCallback(r);return}(i=e.trackEvent)==null||i.call(e,r)}return{trackEvent:o}};function iV(e,t,o={}){function r(){if(e)for(const a in t)t[a]&&e.on(a,t[a])}function i(){if(e)for(const a in t)t[a]&&e.off(a,t[a])}return Zi({listenEvent:r,removeEvent:i},o),{listenEvent:r,removeEvent:i}}const aV={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"}}},nV={vote:{option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}}},sV={vote:{option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}}},lV={vote:{option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}}},cV={vote:{option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},pV={vote:{option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},{useI18n:Yt}=G1({zh_CN:cV,zh_TW:pV,en:aV,ja:nV,ko:sV,ru:lV}),uV=()=>({status:g.oneOf(["Y","N"]).def("Y"),isVoted:g.bool.isRequired,disabled:g.bool.def(!1),hasVoteList:g.bool.def(!1)}),dV=()=>({click:U()}),fV=e=>{const{props:t,emit:o}=e,{$t:r}=Yt(),i=c.computed(()=>t.isVoted?"voted":t.status==="N"?"not-voted":t.disabled?"disabled":"vote"),a={vote:r("vote.button.vote"),voted:r("vote.button.voted"),"not-voted":r("vote.button.notVoted"),disabled:r("vote.button.vote")},n=c.computed(()=>a[i.value]);function s(){i.value==="vote"&&o("click")}return{buttonType:i,buttonText:n,handleClick:s}},mV=c.defineComponent({__name:"vote-button",props:uV(),emits:dV(),setup(e,{emit:t}){const o=e,{buttonType:r,buttonText:i,handleClick:a}=fV({props:o,emit:t});return{__sfc:!0,props:o,emit:t,buttonType:r,buttonText:i,handleClick:a,PwcButton:$e}}});function uo(e,t,o,r,i,a,n,s){var l=typeof e=="function"?e.options:e;return t&&(l.render=t,l.staticRenderFns=o,l._compiled=!0),a&&(l._scopeId="data-v-"+a),{exports:e,options:l}}var hV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{staticClass:"plv-iar-vote-button",class:{"plv-iar-vote-button--no-pointer":r.props.hasVoteList}},[r.buttonType==="vote"?o(r.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:r.props.disabled},on:{click:r.handleClick}},[t._v(" "+t._s(r.buttonText)+" ")]):r.buttonType==="not-voted"||r.buttonType==="disabled"?o(r.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:""}},[t._v(" "+t._s(r.buttonText)+" ")]):o(r.PwcButton,{staticClass:"plv-iar-vote-button__text",attrs:{size:"mini",disabled:r.props.status==="N"||r.props.disabled}},[t._v(" "+t._s(r.buttonText)+" ")])],1)},gV=[],vV=uo(mV,hV,gV,!1,null,"6ba928d5");const a0=vV.exports,wV=()=>({status:g.oneOf(["Y","N"]).def("Y")}),bV=()=>({}),_V=e=>{const{props:t}=e,{$t:o}=Yt();return{statusText:c.computed(()=>t.status==="Y"?o("vote.status.voting"):o("vote.status.ended"))}},yV=c.defineComponent({__name:"vote-status",props:wV(),emits:bV(),setup(e,{emit:t}){const o=e,{statusText:r}=_V({props:o});return{__sfc:!0,props:o,emit:t,statusText:r}}});var xV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{staticClass:"plv-iar-vote-status",class:{"plv-iar-vote-status--voting":t.status==="Y","plv-iar-vote-status--ended":t.status==="N"}},[t._v(" "+t._s(r.statusText)+" ")])},CV=[],LV=uo(yV,xV,CV,!1,null,"c99114e4");const n0=LV.exports,s0=()=>({voteData:g.object().isRequired,votedList:g.array().def([]),layout:g.oneOf(["single","double"]).def("single"),clickable:g.bool.def(!0),hasVoteList:g.bool.def(!1)}),l0=()=>({"to-vote":U()}),c0=e=>{const{props:t,emit:o,itemRef:r}=e,i=c.ref({gridRowEnd:"auto"}),a=c.computed(()=>t.votedList.includes(t.voteData.id)),n=c.computed(()=>!t.clickable);function s(){n.value||o("to-vote",t.voteData.id)}return{isVoted:a,isDisabled:n,gridRowEndStyle:i,handleVote:s}},SV=c.defineComponent({__name:"vote-item-single",props:s0(),emits:l0(),setup(e,{emit:t}){const o=e,{$t:r}=Yt(),{isVoted:i,isDisabled:a,handleVote:n}=c0({props:o,emit:t});return{__sfc:!0,$t:r,props:o,emit:t,isVoted:i,isDisabled:a,handleVote:n,VoteButton:a0,VoteStatus:n0}}});var kV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-single",class:{"plv-iar-vote-list-item-image":!!t.voteData.voteCoverImage,"plv-iar-vote-list-item-no-image":!t.voteData.voteCoverImage}},[t.voteData.voteCoverImage?[o("div",{staticClass:"plv-iar-vote-list-item-bg"},[o("div",{staticClass:"plv-iar-vote-list-item-bg-image",style:{backgroundImage:`url(${t.voteData.voteCoverImage})`}}),o("div",{staticClass:"plv-iar-vote-list-item-bg-mask"})])]:t._e(),o("div",{staticClass:"plv-iar-vote-list-item-content"},[o("div",{staticClass:"plv-iar-vote-list-item-content-info"},[o("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top"},[t.voteData.status?o(r.VoteStatus,{staticClass:"plv-iar-vote-list-item-content-info-left-top-item",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?o("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top-item plv-iar-vote-list-item-content-info-count"},[t._v(" "+t._s(t.voteData.voteCount||0)+" "+t._s(r.$t("vote.count"))+" ")]):t._e()],1),o("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[t._v(t._s(t.voteData.name))])]),o(r.VoteButton,{attrs:{status:t.voteData.status,"is-voted":r.isVoted,disabled:r.isDisabled,"has-vote-list":r.props.hasVoteList},on:{click:r.handleVote}})],1)],2)},PV=[],TV=uo(SV,kV,PV,!1,null,"d0e638ec");const QV=TV.exports,EV=c.defineComponent({__name:"vote-item-double",props:s0(),emits:l0(),setup(e,{expose:t,emit:o}){const r=e,{$t:i}=Yt(),a=c.ref(),{isVoted:n,isDisabled:s,gridRowEndStyle:l,handleVote:p}=c0({props:r,emit:o,itemRef:a});let u=null;const d=12;function m(h=d){if(!a.value)return;const b=a.value.offsetHeight;if(b>0){const v=Math.ceil(b/h);l.value={gridRowEnd:`span ${v}`}}}function f(){a.value&&(u&&(u.disconnect(),u=null),u=new El(()=>{m(d)}),u.observe(a.value),m(d))}function w(){u&&(u.disconnect(),u=null)}return c.watch(a,h=>{w(),h&&f()},{immediate:!0}),c.onBeforeUnmount(()=>{w()}),t({calculateGridRowEnd:m,itemRef:a}),{__sfc:!0,$t:i,props:r,emit:o,itemRef:a,isVoted:n,isDisabled:s,gridRowEndStyle:l,handleVote:p,resizeObserver:u,GAP:d,calculateGridRowEnd:m,setupResizeObserver:f,cleanupResizeObserver:w,VoteButton:a0,VoteStatus:n0}}});var IV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{ref:"itemRef",staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-double",style:r.gridRowEndStyle},[o("div",{staticClass:"plv-iar-vote-list-item-content-container"},[t.voteData.voteCoverImage?[o("div",{staticClass:"plv-iar-vote-list-item-image",style:{backgroundImage:`url(${t.voteData.voteCoverImage})`}},[o("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[t.voteData.status?o(r.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-image-status",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?o("div",{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-content-info-count"},[t._v(" "+t._s(t.voteData.voteCount||0)+" "+t._s(r.$t("vote.count"))+" ")]):t._e()],1)])]:t._e(),o("div",{staticClass:"plv-iar-vote-list-item-content"},[o("div",{staticClass:"plv-iar-vote-list-item-content-info"},[t.voteData.voteCoverImage?t._e():o("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[t.voteData.status?o(r.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?o("div",{staticClass:"plv-iar-vote-list-item-info-left-top-item plv-iar-vote-list-item-content-info-count"},[t._v(" "+t._s(t.voteData.voteCount||0)+" "+t._s(r.$t("vote.count"))+" ")]):t._e()],1),o("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[t._v(t._s(t.voteData.name))])]),o(r.VoteButton,{attrs:{status:t.voteData.status,"is-voted":r.isVoted,disabled:r.isDisabled,"has-vote-list":r.props.hasVoteList},on:{click:r.handleVote}})],1)],2)])},MV=[],AV=uo(EV,IV,MV,!1,null,"214a02c3");const zV=AV.exports,gi={OpenVote:"OpenVote",OpenVoteRule:"OpenVoteRule"};function DV(e){const{state:t,onShow:o,onGetVoteList:r}=e,{list:i,curVotedList:a,cacheVotedList:n,voteCount:s,isForceHideResult:l,isForceShowResult:p,findVoteById:u}=t;function d(_){a.value=_.curVotedList}function m(_){const y=_.voteData.id,C=u(y)[0];C!==-1&&i.value.splice(C,1);const x=a.value.findIndex(Q=>Q===y);x!==-1&&a.value.splice(x,1);const S=n.value.findIndex(Q=>Q===y);S!==-1&&n.value.splice(S,1);const k=_.voteData.voteOrder||0;let L=i.value.length;for(let Q=0;Q<i.value.length;Q++)if((i.value[Q].voteOrder||0)>=k){L=Q;break}p.value&&(_.voteData.showVoteCount=!0,_.voteData.voteCount=0),i.value.splice(L,0,_.voteData),o()}function f(_){const y=u(_.id)[1];y&&(y.status="N")}function w(_){s.value=_.voteCount,_.list.forEach(y=>{const C=u(y.id)[1];C&&(C.showVoteCount=!l.value,C.voteCount=y.times)})}function h(){i.value.splice(0,i.value.length)}function b(_){const y=u(_.id)[0];y!==-1&&i.value.splice(y,1)}function v(_){const y=Math.floor(Math.random()*3e3);setTimeout(()=>{r()},y)}return{updateVotedList:d,onVoteStart:m,onVoteStop:f,onVoteResult:w,onVoteDeleteAll:h,onVoteDelete:b,onVoteChangeOrder:v}}function RV(e){const{voteTarget:t,state:o,onShowEntrance:r}=e,{list:i,curVotedList:a,cacheVotedList:n,isVotedWithLimit:s,voteCount:l,isForceHideResult:p,findVoteById:u}=o,{toast:d}=Ut(),{$t:m}=Yt(),{trackEvent:f}=rV((t==null?void 0:t.interactionCore)||{});function w(){return Z(this,null,function*(){t&&(a.value=t.getVotedList())})}function h(){return Z(this,null,function*(){if(!t)return;const C=yield t.getVoteList();if(C&&C.code===200&&C.data){i.value=C.data.list,i.value.length>0&&r(!0);const x=t.getCachedVoteResult();x&&x.forEach(S=>{const k=u(S.id)[1];k&&(k.showVoteCount=!p.value,k.voteCount=S.times)})}})}const b=gn(h,1e3);function v(C){return Z(this,null,function*(){if(t&&n.value.indexOf(C)===-1){n.value.push(C);const x=yield t.toVote(C);if(x.code===200)t.pushVotedList(C),d.success(m("vote.success"));else if(x.code===506)d.info(m("vote.voted")),t.pushVotedList(C);else{x.code===501?(s.value=!0,d.error(m("vote.voteLimit"))):d.error(x.message||m("vote.voteFailed"));const S=n.value.indexOf(C);S!==-1&&n.value.splice(S,1)}_()}})}function _(){t&&f({event_id:"click_vote_widget",event_type:"click",spec_attrs:{timestamp:Date.now()}})}function y(){t&&t.interactionCore.getSocket().then(C=>{C&&C.on("connect",()=>{b()})})}return{getVotedList:w,getVoteList:b,toVote:v,setupSocketListener:y}}function OV(e){const{resultShowType:t}=e,o=c.ref([]),r=c.ref([]),i=c.ref([]),a=c.ref(!1),n=c.ref(0),s=c.computed(()=>r.value.length),l=c.computed(()=>t===3&&n.value===0&&i.value.length===0),p=c.computed(()=>t===2||t===3&&(n.value>0||r.value.length>0));function u(d){const m=o.value.findIndex(f=>f.id===d);return[m,o.value[m]]}return{list:o,curVotedList:r,cacheVotedList:i,isVotedWithLimit:a,voteCount:n,isForceHideResult:l,isForceShowResult:p,votedCount:s,findVoteById:u}}const VV=()=>({voteTarget:g.object(),layout:g.oneOf(["single","double"]).def("single"),voteList:g.array(),maxVote:g.number.def(0),showHeader:g.bool.def(!0),showRule:g.bool.def(!0),resultShowType:g.number.def(0)}),BV=()=>({"to-show":()=>!0,"to-hide":()=>!0,"show-entrance":U()}),$V=e=>{var v,_,y,C,x,S,k;const{props:t,emit:o}=e,{getEmitter:r}=oo(),{voteTarget:i={}}=t,a=OV({resultShowType:t.resultShowType}),n=RV({voteTarget:i,state:a,onShowEntrance:L=>o("show-entrance",L)}),{updateVotedList:s,onVoteStart:l,onVoteStop:p,onVoteResult:u,onVoteDeleteAll:d,onVoteDelete:m,onVoteChangeOrder:f}=DV({state:a,onShow:()=>o("to-show"),onGetVoteList:()=>n.getVoteList()});function w(){r().emit(gi.OpenVoteRule)}function h(L){if(a.curVotedList.value.indexOf(L)!==-1||a.isVotedWithLimit.value)return!1;const P=Number(t.maxVote)||0;return P>0?a.votedCount.value<P:!0}function b(){t.voteList&&t.voteList.length>0||(n.setupSocketListener(),n.getVoteList(),n.getVotedList())}return iV(i.eventEmitter,{[(v=i.VoteEvent)==null?void 0:v.UpdateVotedList]:s,[(_=i.VoteEvent)==null?void 0:_.Start]:l,[(y=i.VoteEvent)==null?void 0:y.Stop]:p,[(C=i.VoteEvent)==null?void 0:C.VoteResult]:u,[(x=i.VoteEvent)==null?void 0:x.DeleteAll]:d,[(S=i.VoteEvent)==null?void 0:S.Delete]:m,[(k=i.VoteEvent)==null?void 0:k.UpdateVoteOrder]:f}),c.onMounted(()=>{t.voteTarget&&b()}),c.watch(()=>t.voteTarget,L=>{L&&b()},{immediate:!0}),c.watch(()=>t.voteList,L=>{L!=null&&(a.list.value=[...L])},{immediate:!0,deep:!0}),{list:a.list,curVotedList:a.curVotedList,handleToVote:n.toVote,handleRule:w,isItemClickable:h}},FV=c.defineComponent({__name:"vote-list",props:VV(),emits:BV(),setup(e,{emit:t}){const o=e,{$t:r}=Yt(),{list:i,curVotedList:a,handleToVote:n,handleRule:s,isItemClickable:l}=$V({props:o,emit:t});return{__sfc:!0,$t:r,props:o,emit:t,list:i,curVotedList:a,handleToVote:n,handleRule:s,isItemClickable:l,PwcEmpty:Kr,VoteItemSingle:QV,VoteItemDouble:zV}}});var jV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o("div",{staticClass:"plv-iar-vote"},[r.list.length?o("div",{staticClass:"plv-iar-vote__container"},[t.showHeader?o("div",{staticClass:"plv-iar-vote__container__header"},[o("span",[t._v(t._s(r.$t("vote.option")))]),r.props.showRule?o("span",{class:{"plv-iar-vote__container__header__rule--no-pointer":r.props.voteList&&r.props.voteList.length>0},on:{click:r.handleRule}},[t._v(t._s(r.$t("vote.rule")))]):t._e()]):t._e(),o("div",{staticClass:"plv-iar-vote__list",class:{"plv-iar-vote__list--single":t.layout==="single","plv-iar-vote__list--double":t.layout==="double"}},t._l(r.list,function(i){return o(t.layout==="single"?r.VoteItemSingle:r.VoteItemDouble,{key:i.id,tag:"component",attrs:{"vote-data":i,"voted-list":r.curVotedList,clickable:r.isItemClickable(i.id),"has-vote-list":!!(r.props.voteList&&r.props.voteList.length>0)},on:{"to-vote":r.handleToVote}})}),1)]):o("div",{staticClass:"plv-iar-vote__no-data"},[o(r.PwcEmpty)],1)])},NV=[],UV=uo(FV,jV,NV,!1,null,null);const p0=UV.exports,WV="data:image/png;base64,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",ZV=()=>({voteTarget:g.object(),isFullScreen:g.bool.def(!1),iconUrl:g.string.def(""),beforeClickInterrupt:g.func()}),qV=()=>({"open-vote":U()}),YV=e=>{const{props:t}=e,{getEmitter:o}=oo();function r(){return Z(this,null,function*(){t.beforeClickInterrupt&&on(t.beforeClickInterrupt)&&(yield t.beforeClickInterrupt())||o().emit(gi.OpenVote)})}return{pendantIconUrl:c.computed(()=>t.iconUrl||WV),onClickPendant:r}},GV=c.defineComponent({__name:"vote-pendant",props:ZV(),emits:qV(),setup(e,{emit:t}){const o=e,{$t:r}=Yt(),{onClickPendant:i,pendantIconUrl:a}=YV({props:o}),n=c.computed(()=>({backgroundImage:`url(${a.value})`}));return{__sfc:!0,props:o,emit:t,$t:r,onClickPendant:i,pendantIconUrl:a,pendantStyle:n}}});var XV=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return t.voteTarget&&!t.isFullScreen?o("div",{staticClass:"plv-iar-vote-pendant",style:r.pendantStyle,on:{click:r.onClickPendant}},[o("div",{staticClass:"plv-iar-vote-pendant__text"},[t._v(" "+t._s(r.$t("vote.entrance"))+" ")])]):t._e()},KV=[],JV=uo(GV,XV,KV,!1,null,null);const HV=JV.exports,eB=()=>({voteTarget:g.object(),popupConfig:g.object(),layout:g.oneOf(["single","double"]).def("single"),maxVote:g.number.def(0),showRule:g.bool.def(!0),resultShowType:g.number.def(0)}),tB=e=>{const{voteListRef:t}=e,o=c.ref(!1),r=c.ref(),{getEmitter:i}=oo();function a(){o.value=!0,c.nextTick(()=>{r.value&&r.value.resetScroll()})}c.watch(o,p=>{p&&c.nextTick(()=>{var u;(u=t==null?void 0:t.value)!=null&&u.recalculateGridRowEnds&&t.value.recalculateGridRowEnds()})});function n(){o.value=!1}function s(){i().emit(gi.OpenVoteRule)}return ro(gi.OpenVote,a),{instance:{open:a,close:n},visible:o,popupRef:r,handleToRule:s}},oB=c.defineComponent({__name:"vote-list-popup",props:eB(),setup(e,{expose:t}){const o=e,{$t:r}=Yt(),i=c.ref(),{instance:a,visible:n,popupRef:s,handleToRule:l}=tB({voteListRef:i});return t(a),{__sfc:!0,props:o,$t:r,voteListRef:i,instance:a,visible:n,popupRef:s,handleToRule:l,PwcPopup:nt,VoteListComponent:p0}}});var rB=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o(r.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-list-popup",attrs:{title:r.$t("vote.listTitle"),"popup-config":t.popupConfig,closeable:!1,"body-height-percent":.65,background:"#F7F8Fa"},scopedSlots:t._u([{key:"header-right",fn:function(){return[t.showRule?o("span",{staticClass:"plv-iar-vote-list-popup__rule",on:{click:r.handleToRule}},[t._v(" "+t._s(r.$t("vote.rule"))+" ")]):t._e()]},proxy:!0}]),model:{value:r.visible,callback:function(i){r.visible=i},expression:"visible"}},[o("div",{staticClass:"plv-iar-vote-list-popup__content"},[o(r.VoteListComponent,{ref:"voteListRef",attrs:{"vote-target":t.voteTarget,layout:t.layout,"max-vote":t.maxVote,"show-header":!1,"show-rule":t.showRule,"result-show-type":t.resultShowType},on:{"to-rule":r.handleToRule}})],1)])},iB=[],aB=uo(oB,rB,iB,!1,null,null);const nB=aB.exports,sB=()=>({ruleText:g.string.def(""),popupConfig:g.object()}),lB=e=>{const t=c.ref(!1),o=c.ref();function r(){t.value=!0,c.nextTick(()=>{o.value&&o.value.resetScroll()})}function i(){t.value=!1}return ro(gi.OpenVoteRule,r),{instance:{open:r,close:i},visible:t,popupRef:o,close:i}},cB=c.defineComponent({__name:"vote-rule-popup",props:sB(),setup(e,{expose:t}){const o=e,{$t:r}=Yt(),{isMobile:i}=Pe(),{instance:a,visible:n,popupRef:s}=lB();return t(a),{__sfc:!0,props:o,$t:r,isMobile:i,instance:a,visible:n,popupRef:s,PwcPopup:nt}}});var pB=function(){var t=this,o=t._self._c,r=t._self._setupProxy;return o(r.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-rule-popup",attrs:{title:r.$t("vote.ruleTitle"),"popup-config":t.popupConfig,backable:r.isMobile,background:r.isMobile?"#F7F8Fa":void 0,"body-height-percent":r.isMobile?.65:void 0},model:{value:r.visible,callback:function(i){r.visible=i},expression:"visible"}},[o("div",{staticClass:"plv-iar-vote-rule-popup__content"},[t.ruleText?o("div",{staticClass:"plv-iar-vote-rule-popup__text",domProps:{innerHTML:t._s(t.ruleText)}}):o("div",{staticClass:"plv-iar-vote-rule-popup__empty"},[t._v(" "+t._s(r.$t("vote.noRule"))+" ")])])])},uB=[],dB=uo(cB,pB,uB,!1,null,null);const fB=dB.exports;ae.VoteList=p0,ae.VoteListPopup=nB,ae.VotePendant=HV,ae.VoteRulePopup=fB,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})});console.log("%c@polyv/iar-vote-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.2.0]","[buildTime: 2026-04-03 07:31:04]");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyv/iar-vote-ui",
3
- "version": "2.2.0-rc-20260402.1",
3
+ "version": "2.2.0",
4
4
  "main": "./index.es.js",
5
5
  "dependencies": {
6
6
  "@juggle/resize-observer": "^3.4.0"