@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 +1 -1
- package/index.es.js +2 -2
- package/index.umd.js +1 -1
- package/package.json +1 -1
- package/vote-list-popup.cjs.js +1 -1
- package/vote-list-popup.es.js +2 -2
- package/vote-list-popup.umd.js +1 -1
- package/vote-list.cjs.js +1 -1
- package/vote-list.es.js +2 -2
- package/vote-list.umd.js +1 -1
- package/vote-pendant.cjs.js +1 -1
- package/vote-pendant.es.js +2 -2
- package/vote-pendant.umd.js +1 -1
- package/vote-rule-popup.cjs.js +1 -1
- package/vote-rule-popup.es.js +2 -2
- package/vote-rule-popup.umd.js +1 -1
package/vote-list-popup.cjs.js
CHANGED
|
@@ -1100,4 +1100,4 @@ ${rn(o)}`),r}})}function A0(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)])},PR=[],TR=$(SR,kR,PR);const QR=TR.exports,ER=c.defineComponent({__name:"menu-item",props:nR(),setup(e){const t=e,{receiveRouterSlotData:o}=LR({props:t});return{__sfc:!0,props:t,receiveRouterSlotData:o,MenuItemContent:QR}}});var IR=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)},MR=[],AR=$(ER,IR,MR);const zR=AR.exports,DR={};var RR=function(){var e=this;return e._self._c,e._m(0)},OR=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"pwc-menu-divider"},[t("div")])}],VR=$(DR,RR,OR);const $R=VR.exports;X("PwcMenu",uR);X("PwcSubMenu",CR);X("PwcMenuItem",zR);X("PwcMenuDivider",$R);const BR=()=>G(O(O({},_s()),Ld()),{trigger:g.oneOf(hn).def("click"),placement:g.oneOf(ri).def("top"),feedbackType:g.enum().def(po.Warning),concise:g.bool.def(!1)}),FR=()=>O({},Fp()),jR=c.defineComponent({__name:"popconfirm",props:BR(),emits:FR(),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:$e,PwcPopover:Sd}}});var NR=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))},UR=[],WR=$(jR,NR,UR);const HR=WR.exports;X("PwcPopconfirm",HR);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 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":W(),resize:W(),"resize-end":W()}),GR=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?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:[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}};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}=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 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)])},eO=[],tO=$(KR,JR,eO);const oO=tO.exports;X("PwcSection",oO);const rO=()=>({[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)}),iO=()=>G(O({},fe()),{change:W()}),c0=Symbol("slider-inject-key"),nO=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),aO=()=>({value:g.number}),sO=()=>({change:W()}),lO=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}},cO={name:"PlvSliderButton"},pO=c.defineComponent(G(O({},cO),{props:aO(),emits:sO(),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}=lO({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 uO=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`}})])},dO=[],fO=$(pO,uO,dO);const mO=fO.exports,hO=c.defineComponent({__name:"slider",props:rO(),emits:iO(),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}=nO({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:mO}}});var gO=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()])},vO=[],wO=$(hO,gO,vO);const bO=wO.exports;X("PwcSlider",bO);const _O=()=>({max:g.number.def(3)}),yO=()=>({label:g.looseString}),xO=()=>({click:W()}),u0=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),CO=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(u0,{}),{__sfc:!0,PwcButton:$e,PwcIconMore:Pp,PwcDropdown:ZQ,PwcDropdownMenu:qQ}}});var LO=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)},SO=[],kO=$(CO,LO,SO);const PO=kO.exports,TO=c.defineComponent({props:_O(),setup(e){const t=c.useSlots(),o=c.inject(Vs,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(PO,{},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)])}}}),QO=c.defineComponent({__name:"table-operation-item",props:yO(),emits:xO(),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:$e,PwcDropdownItem:YQ}}});var EO=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)},IO=[],MO=$(QO,EO,IO);const AO=MO.exports;X("PwcTableOperation",TO);X("PwcTableOperationItem",AO);const zO=["line","rounded","text"],DO=()=>({[g.modelValueKey]:g.oneOfType([String,Number,Symbol]),type:g.oneOf(zO).def("line"),expand:g.bool.def(!1),lazyLoad:g.bool.def(!1)}),RO=()=>G(O({},fe()),{change:W()}),OO=()=>({name:g.oneOfType([String,Number]),extra:g.looseString,disabled:g.bool.def(!1),title:g.looseString,lazyLoad:g.looseBool}),Zs=Symbol("tabs-inject-key"),VO=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:t,tabsProps:o,setCurrentTab:r}=c.inject(Zs),{$t:i}=ee(),n=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=nt();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:hr,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()])])},BO=[],FO=$(VO,$O,BO);const jO=FO.exports,NO=c.defineComponent({__name:"tabs",props:DO(),emits:RO(),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(Zs,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:jO}}});var UO=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)},WO=[],HO=$(NO,UO,WO);const ZO=HO.exports,qO=c.defineComponent({__name:"tab-pane",props:OO(),setup(e){const t=e,o=Ot(8),r=c.inject(Zs),{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 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=$(qO,YO,GO);const KO=XO.exports;X("PwcTabs",ZO);X("PwcTabPane",KO);var r1={},JO,eV;function tV(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=oV(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 oV(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 rV(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);i1(e,D.data_offset,V,R);var j=D.palette_offset,B=D.transparent_index;B===null&&(B=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===B)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);i1(e,D.data_offset,V,R);var j=D.palette_offset,B=D.transparent_index;B===null&&(B=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===B)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 i1(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{eV=r1.GifWriter=tV,JO=r1.GifReader=rV}catch(e){}const iV=e=>{const{configProviderData:t}=$t();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 nV(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 dn({listenEvent:r,removeEvent:i},o),{listenEvent:r,removeEvent:i}}const aV={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"}},sV={vote:aV},lV={option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}},cV={vote:lV},pV={option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}},uV={vote:pV},dV={option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}},fV={vote:dV},mV={option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}},hV={vote:mV},gV={option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}},vV={vote:gV},{useI18n:$o}=Bp({zh_CN:hV,zh_TW:vV,en:sV,ja:cV,ko:uV,ru:fV}),Ga={OpenVote:"OpenVote",OpenVoteRule:"OpenVoteRule"},wV=()=>({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)}),bV=e=>{const{voteListRef:t}=e,o=c.ref(!1),r=c.ref(),{getEmitter:i}=Io();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(Ga.OpenVoteRule)}return _o(Ga.OpenVote,n),{instance:{open:n,close:a},visible:o,popupRef:r,handleToRule:s}},_V=()=>({status:g.oneOf(["Y","N"]).def("Y"),isVoted:g.bool.isRequired,disabled:g.bool.def(!1),hasVoteList:g.bool.def(!1)}),yV=()=>({click:W()}),xV=e=>{const{props:t,emit:o}=e,{$t:r}=$o(),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}},CV=c.defineComponent({__name:"vote-button",props:_V(),emits:yV(),setup(e,{emit:t}){const o=e,{buttonType:r,buttonText:i,handleClick:n}=xV({props:o,emit:t});return{__sfc:!0,props:o,emit:t,buttonType:r,buttonText:i,handleClick:n,PwcButton:$e}}});function br(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 LV=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)},SV=[],kV=br(CV,LV,SV,!1,null,"6ba928d5");const d0=kV.exports,PV=()=>({status:g.oneOf(["Y","N"]).def("Y")}),TV=()=>({}),QV=e=>{const{props:t}=e,{$t:o}=$o();return{statusText:c.computed(()=>t.status==="Y"?o("vote.status.voting"):o("vote.status.ended"))}},EV=c.defineComponent({__name:"vote-status",props:PV(),emits:TV(),setup(e,{emit:t}){const o=e,{statusText:r}=QV({props:o});return{__sfc:!0,props:o,emit:t,statusText:r}}});var IV=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)+" ")])},MV=[],AV=br(EV,IV,MV,!1,null,"c99114e4");const f0=AV.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}},zV=c.defineComponent({__name:"vote-item-single",props:m0(),emits:h0(),setup(e,{emit:t}){const o=e,{$t:r}=$o(),{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 DV=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)},RV=[],OV=br(zV,DV,RV,!1,null,"d0e638ec");const VV=OV.exports,$V=c.defineComponent({__name:"vote-item-double",props:m0(),emits:h0(),setup(e,{expose:t,emit:o}){const r=e,{$t:i}=$o(),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 y1(()=>{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)])},FV=[],jV=br($V,BV,FV,!1,null,"214a02c3");const NV=jV.exports;function UV(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 WV(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}=$o(),{trackEvent:f}=iV((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=ps(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 HV(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 ZV=()=>({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)}),qV=()=>({"to-show":()=>!0,"to-hide":()=>!0,"show-entrance":W()}),YV=e=>{var v,_,y,C,x,S,k;const{props:t,emit:o}=e,{getEmitter:r}=Io(),{voteTarget:i={}}=t,n=HV({resultShowType:t.resultShowType}),a=WV({voteTarget:i,state:n,onShowEntrance:L=>o("show-entrance",L)}),{updateVotedList:s,onVoteStart:l,onVoteStop:p,onVoteResult:u,onVoteDeleteAll:d,onVoteDelete:m,onVoteChangeOrder:f}=UV({state:n,onShow:()=>o("to-show"),onGetVoteList:()=>a.getVoteList()});function w(){r().emit(Ga.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 nV(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}},GV=c.defineComponent({__name:"vote-list",props:ZV(),emits:qV(),setup(e,{emit:t}){const o=e,{$t:r}=$o(),{list:i,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l}=YV({props:o,emit:t});return{__sfc:!0,$t:r,props:o,emit:t,list:i,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l,PwcEmpty:ii,VoteItemSingle:VV,VoteItemDouble:NV}}});var XV=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)])},KV=[],JV=br(GV,XV,KV,!1,null,null);const e$=JV.exports,t$=c.defineComponent({__name:"vote-list-popup",props:wV(),setup(e,{expose:t}){const o=e,{$t:r}=$o(),i=c.ref(),{instance:n,visible:a,popupRef:s,handleToRule:l}=bV({voteListRef:i});return t(n),{__sfc:!0,props:o,$t:r,voteListRef:i,instance:n,visible:a,popupRef:s,handleToRule:l,PwcPopup:mt,VoteListComponent:e$}}});var o$=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)])},r$=[],i$=br(t$,o$,r$,!1,null,null);const n$=i$.exports;module.exports=n$;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:28]");
|
|
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)])},PR=[],TR=$(SR,kR,PR);const QR=TR.exports,ER=c.defineComponent({__name:"menu-item",props:nR(),setup(e){const t=e,{receiveRouterSlotData:o}=LR({props:t});return{__sfc:!0,props:t,receiveRouterSlotData:o,MenuItemContent:QR}}});var IR=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)},MR=[],AR=$(ER,IR,MR);const zR=AR.exports,DR={};var RR=function(){var e=this;return e._self._c,e._m(0)},OR=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"pwc-menu-divider"},[t("div")])}],VR=$(DR,RR,OR);const $R=VR.exports;X("PwcMenu",uR);X("PwcSubMenu",CR);X("PwcMenuItem",zR);X("PwcMenuDivider",$R);const BR=()=>G(O(O({},_s()),Ld()),{trigger:g.oneOf(hn).def("click"),placement:g.oneOf(ri).def("top"),feedbackType:g.enum().def(po.Warning),concise:g.bool.def(!1)}),FR=()=>O({},Fp()),jR=c.defineComponent({__name:"popconfirm",props:BR(),emits:FR(),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:$e,PwcPopover:Sd}}});var NR=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))},UR=[],WR=$(jR,NR,UR);const HR=WR.exports;X("PwcPopconfirm",HR);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 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":W(),resize:W(),"resize-end":W()}),GR=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?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:[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}};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}=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 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)])},eO=[],tO=$(KR,JR,eO);const oO=tO.exports;X("PwcSection",oO);const rO=()=>({[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)}),iO=()=>G(O({},fe()),{change:W()}),c0=Symbol("slider-inject-key"),nO=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),aO=()=>({value:g.number}),sO=()=>({change:W()}),lO=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}},cO={name:"PlvSliderButton"},pO=c.defineComponent(G(O({},cO),{props:aO(),emits:sO(),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}=lO({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 uO=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`}})])},dO=[],fO=$(pO,uO,dO);const mO=fO.exports,hO=c.defineComponent({__name:"slider",props:rO(),emits:iO(),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}=nO({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:mO}}});var gO=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()])},vO=[],wO=$(hO,gO,vO);const bO=wO.exports;X("PwcSlider",bO);const _O=()=>({max:g.number.def(3)}),yO=()=>({label:g.looseString}),xO=()=>({click:W()}),u0=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),CO=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(u0,{}),{__sfc:!0,PwcButton:$e,PwcIconMore:Pp,PwcDropdown:ZQ,PwcDropdownMenu:qQ}}});var LO=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)},SO=[],kO=$(CO,LO,SO);const PO=kO.exports,TO=c.defineComponent({props:_O(),setup(e){const t=c.useSlots(),o=c.inject(Vs,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(PO,{},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)])}}}),QO=c.defineComponent({__name:"table-operation-item",props:yO(),emits:xO(),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:$e,PwcDropdownItem:YQ}}});var EO=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)},IO=[],MO=$(QO,EO,IO);const AO=MO.exports;X("PwcTableOperation",TO);X("PwcTableOperationItem",AO);const zO=["line","rounded","text"],DO=()=>({[g.modelValueKey]:g.oneOfType([String,Number,Symbol]),type:g.oneOf(zO).def("line"),expand:g.bool.def(!1),lazyLoad:g.bool.def(!1)}),RO=()=>G(O({},fe()),{change:W()}),OO=()=>({name:g.oneOfType([String,Number]),extra:g.looseString,disabled:g.bool.def(!1),title:g.looseString,lazyLoad:g.looseBool}),Zs=Symbol("tabs-inject-key"),VO=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:t,tabsProps:o,setCurrentTab:r}=c.inject(Zs),{$t:i}=ee(),n=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=nt();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:hr,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()])])},BO=[],FO=$(VO,$O,BO);const jO=FO.exports,NO=c.defineComponent({__name:"tabs",props:DO(),emits:RO(),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(Zs,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:jO}}});var UO=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)},WO=[],HO=$(NO,UO,WO);const ZO=HO.exports,qO=c.defineComponent({__name:"tab-pane",props:OO(),setup(e){const t=e,o=Ot(8),r=c.inject(Zs),{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 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=$(qO,YO,GO);const KO=XO.exports;X("PwcTabs",ZO);X("PwcTabPane",KO);var r1={},JO,eV;function tV(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=oV(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 oV(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 rV(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);i1(e,D.data_offset,V,R);var j=D.palette_offset,B=D.transparent_index;B===null&&(B=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===B)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);i1(e,D.data_offset,V,R);var j=D.palette_offset,B=D.transparent_index;B===null&&(B=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===B)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 i1(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{eV=r1.GifWriter=tV,JO=r1.GifReader=rV}catch(e){}const iV=e=>{const{configProviderData:t}=$t();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 nV(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 dn({listenEvent:r,removeEvent:i},o),{listenEvent:r,removeEvent:i}}const aV={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"}},sV={vote:aV},lV={option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}},cV={vote:lV},pV={option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}},uV={vote:pV},dV={option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}},fV={vote:dV},mV={option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}},hV={vote:mV},gV={option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}},vV={vote:gV},{useI18n:$o}=Bp({zh_CN:hV,zh_TW:vV,en:sV,ja:cV,ko:uV,ru:fV}),Ga={OpenVote:"OpenVote",OpenVoteRule:"OpenVoteRule"},wV=()=>({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)}),bV=e=>{const{voteListRef:t}=e,o=c.ref(!1),r=c.ref(),{getEmitter:i}=Io();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(Ga.OpenVoteRule)}return _o(Ga.OpenVote,n),{instance:{open:n,close:a},visible:o,popupRef:r,handleToRule:s}},_V=()=>({status:g.oneOf(["Y","N"]).def("Y"),isVoted:g.bool.isRequired,disabled:g.bool.def(!1),hasVoteList:g.bool.def(!1)}),yV=()=>({click:W()}),xV=e=>{const{props:t,emit:o}=e,{$t:r}=$o(),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}},CV=c.defineComponent({__name:"vote-button",props:_V(),emits:yV(),setup(e,{emit:t}){const o=e,{buttonType:r,buttonText:i,handleClick:n}=xV({props:o,emit:t});return{__sfc:!0,props:o,emit:t,buttonType:r,buttonText:i,handleClick:n,PwcButton:$e}}});function br(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 LV=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)},SV=[],kV=br(CV,LV,SV,!1,null,"6ba928d5");const d0=kV.exports,PV=()=>({status:g.oneOf(["Y","N"]).def("Y")}),TV=()=>({}),QV=e=>{const{props:t}=e,{$t:o}=$o();return{statusText:c.computed(()=>t.status==="Y"?o("vote.status.voting"):o("vote.status.ended"))}},EV=c.defineComponent({__name:"vote-status",props:PV(),emits:TV(),setup(e,{emit:t}){const o=e,{statusText:r}=QV({props:o});return{__sfc:!0,props:o,emit:t,statusText:r}}});var IV=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)+" ")])},MV=[],AV=br(EV,IV,MV,!1,null,"c99114e4");const f0=AV.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}},zV=c.defineComponent({__name:"vote-item-single",props:m0(),emits:h0(),setup(e,{emit:t}){const o=e,{$t:r}=$o(),{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 DV=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)},RV=[],OV=br(zV,DV,RV,!1,null,"d0e638ec");const VV=OV.exports,$V=c.defineComponent({__name:"vote-item-double",props:m0(),emits:h0(),setup(e,{expose:t,emit:o}){const r=e,{$t:i}=$o(),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 y1(()=>{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)])},FV=[],jV=br($V,BV,FV,!1,null,"214a02c3");const NV=jV.exports;function UV(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 WV(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}=$o(),{trackEvent:f}=iV((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=ps(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 HV(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 ZV=()=>({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)}),qV=()=>({"to-show":()=>!0,"to-hide":()=>!0,"show-entrance":W()}),YV=e=>{var v,_,y,C,x,S,k;const{props:t,emit:o}=e,{getEmitter:r}=Io(),{voteTarget:i={}}=t,n=HV({resultShowType:t.resultShowType}),a=WV({voteTarget:i,state:n,onShowEntrance:L=>o("show-entrance",L)}),{updateVotedList:s,onVoteStart:l,onVoteStop:p,onVoteResult:u,onVoteDeleteAll:d,onVoteDelete:m,onVoteChangeOrder:f}=UV({state:n,onShow:()=>o("to-show"),onGetVoteList:()=>a.getVoteList()});function w(){r().emit(Ga.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 nV(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}},GV=c.defineComponent({__name:"vote-list",props:ZV(),emits:qV(),setup(e,{emit:t}){const o=e,{$t:r}=$o(),{list:i,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l}=YV({props:o,emit:t});return{__sfc:!0,$t:r,props:o,emit:t,list:i,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l,PwcEmpty:ii,VoteItemSingle:VV,VoteItemDouble:NV}}});var XV=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)])},KV=[],JV=br(GV,XV,KV,!1,null,null);const e$=JV.exports,t$=c.defineComponent({__name:"vote-list-popup",props:wV(),setup(e,{expose:t}){const o=e,{$t:r}=$o(),i=c.ref(),{instance:n,visible:a,popupRef:s,handleToRule:l}=bV({voteListRef:i});return t(n),{__sfc:!0,props:o,$t:r,voteListRef:i,instance:n,visible:a,popupRef:s,handleToRule:l,PwcPopup:mt,VoteListComponent:e$}}});var o$=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)])},r$=[],i$=br(t$,o$,r$,!1,null,null);const n$=i$.exports;module.exports=n$;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:13]");
|
package/vote-list-popup.es.js
CHANGED
|
@@ -30402,8 +30402,8 @@ const Q$ = L$.exports;
|
|
|
30402
30402
|
console.log(
|
|
30403
30403
|
"%c@polyv/iar-vote-ui",
|
|
30404
30404
|
"background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
|
|
30405
|
-
"[version: 2.2.0
|
|
30406
|
-
"[buildTime: 2026-04-
|
|
30405
|
+
"[version: 2.2.0]",
|
|
30406
|
+
"[buildTime: 2026-04-03 07:31:13]"
|
|
30407
30407
|
);
|
|
30408
30408
|
export {
|
|
30409
30409
|
Q$ as default
|
package/vote-list-popup.umd.js
CHANGED
|
@@ -1100,4 +1100,4 @@ ${_i(o)}`),r}})}function E0(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)])},LR=[],SR=$(xR,CR,LR);const kR=SR.exports,PR=c.defineComponent({__name:"menu-item",props:oR(),setup(e){const t=e,{receiveRouterSlotData:o}=yR({props:t});return{__sfc:!0,props:t,receiveRouterSlotData:o,MenuItemContent:kR}}});var TR=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)},QR=[],ER=$(PR,TR,QR);const IR=ER.exports,MR={};var AR=function(){var e=this;return e._self._c,e._m(0)},zR=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"pwc-menu-divider"},[t("div")])}],DR=$(MR,AR,zR);const RR=DR.exports;K("PwcMenu",lR),K("PwcSubMenu",_R),K("PwcMenuItem",IR),K("PwcMenuDivider",RR);const OR=()=>X(O(O({},Vn()),nd()),{trigger:g.oneOf(Ki).def("click"),placement:g.oneOf(Xr).def("top"),feedbackType:g.enum().def(Bo.Warning),concise:g.bool.def(!1)}),VR=()=>O({},X1()),$R=c.defineComponent({__name:"popconfirm",props:OR(),emits:VR(),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 BR=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))},FR=[],jR=$($R,BR,FR);const NR=jR.exports;K("PwcPopconfirm",NR);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 UR(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 WR=()=>({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("")}),ZR=()=>({"resize-start":W(),resize:W(),"resize-end":W()}),qR=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?UR(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}};WR(),ZR();const YR=()=>({title:g.looseString,titleTooltip:g.looseString}),GR=c.defineComponent({__name:"section",props:YR(),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 XR=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)])},KR=[],JR=$(GR,XR,KR);const HR=JR.exports;K("PwcSection",HR);const eO=()=>({[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)}),tO=()=>X(O({},fe()),{change:W()}),e0=Symbol("slider-inject-key"),oO=e=>{const{props:t,emit:o}=e,{modelValue:r,updateModelValue:i}=pe(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}=Re(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),rO=()=>({value:g.number}),iO=()=>({change:W()}),aO=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||ce||s.value&&setTimeout(()=>{s.value=!1,l.value||(k(d.value),a())},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:n,dragging:s,btnStyle:f,handleMouseEnter:h,handleMouseLeave:b,onButtonDown:C,setPosition:k}},nO={name:"PlvSliderButton"},sO=c.defineComponent(X(O({},nO),{props:rO(),emits:iO(),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}=aO({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 lO=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`}})])},cO=[],pO=$(sO,lO,cO);const uO=pO.exports,dO=c.defineComponent({__name:"slider",props:eO(),emits:tO(),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}=oO({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:uO}}});var fO=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()])},mO=[],hO=$(dO,fO,mO);const gO=hO.exports;K("PwcSlider",gO);const vO=()=>({max:g.number.def(3)}),wO=()=>({label:g.looseString}),bO=()=>({click:W()}),o0=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),_O=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(o0,{}),{__sfc:!0,PwcButton:$e,PwcIconMore:D1,PwcDropdown:UQ,PwcDropdownMenu:WQ}}});var yO=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)},xO=[],CO=$(_O,yO,xO);const LO=CO.exports,SO=c.defineComponent({props:vO(),setup(e){const t=c.useSlots(),o=c.inject(ks,void 0),r=Dt(8),i=c.ref();function a(){if(o)return o.allRenderColumnList.value.find(n=>n.columnProps.type==="operation")}return Re(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(LO,{},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)])}}}),kO=c.defineComponent({__name:"table-operation-item",props:wO(),emits:bO(),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:ZQ}}});var PO=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)},TO=[],QO=$(kO,PO,TO);const EO=QO.exports;K("PwcTableOperation",SO),K("PwcTableOperationItem",EO);const IO=["line","rounded","text"],MO=()=>({[g.modelValueKey]:g.oneOfType([String,Number,Symbol]),type:g.oneOf(IO).def("line"),expand:g.bool.def(!1),lazyLoad:g.bool.def(!1)}),AO=()=>X(O({},fe()),{change:W()}),zO=()=>({name:g.oneOfType([String,Number]),extra:g.looseString,disabled:g.bool.def(!1),title:g.looseString,lazyLoad:g.looseBool}),Ks=Symbol("tabs-inject-key"),DO=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:t,tabsProps:o,setCurrentTab:r}=c.inject(Ks),{$t:i}=H(),a=c.ref(),n=c.ref(!1),{visible:s,toggle:l}=st();function p(){return Z(this,null,function*(){if(yield c.nextTick(),!a.value||ce)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:cr,PwcIconUp:O1,renderSlot:at}}});var RO=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()])])},OO=[],VO=$(DO,RO,OO);const $O=VO.exports,BO=c.defineComponent({__name:"tabs",props:MO(),emits:AO(),setup(e,{emit:t}){const o=e,r=c.ref(),i=c.ref(),{modelValue:a,updateModelValue:n}=pe(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(Ks,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:$O}}});var FO=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)},jO=[],NO=$(BO,FO,jO);const UO=NO.exports,WO=c.defineComponent({__name:"tab-pane",props:zO(),setup(e){const t=e,o=Dt(8),r=c.inject(Ks),{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 ZO=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()])},qO=[],YO=$(WO,ZO,qO);const GO=YO.exports;K("PwcTabs",UO),K("PwcTabPane",GO);var r0={},XO,KO;function JO(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=HO(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 HO(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 eV(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,U=o-N,q=N,G=(D.y*o+D.x)*4,J=((D.y+D.height)*o+D.x)*4,te=G,oe=U*4;D.interlaced===!0&&(oe+=o*4*7);for(var ee=8,se=0,he=V.length;se<he;++se){var _e=V[se];if(q===0&&(te+=oe,q=N,te>=J&&(oe=U*4+o*4*(ee-1),te=G+(N+U)*(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,U=o-N,q=N,G=(D.y*o+D.x)*4,J=((D.y+D.height)*o+D.x)*4,te=G,oe=U*4;D.interlaced===!0&&(oe+=o*4*7);for(var ee=8,se=0,he=V.length;se<he;++se){var _e=V[se];if(q===0&&(te+=oe,q=N,te>=J&&(oe=U*4+o*4*(ee-1),te=G+(N+U)*(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{KO=r0.GifWriter=JO,XO=r0.GifReader=eV}catch(e){}const tV=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 oV(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 rV={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"}}},iV={vote:{option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}}},aV={vote:{option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}}},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:"未投票"}}},{useI18n:No}=G1({zh_CN:sV,zh_TW:lV,en:rV,ja:iV,ko:aV,ru:nV}),Js={OpenVote:"OpenVote",OpenVoteRule:"OpenVoteRule"},cV=()=>({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)}),pV=e=>{const{voteListRef:t}=e,o=c.ref(!1),r=c.ref(),{getEmitter:i}=To();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(Js.OpenVoteRule)}return Qo(Js.OpenVote,a),{instance:{open:a,close:n},visible:o,popupRef:r,handleToRule:s}},uV=()=>({status:g.oneOf(["Y","N"]).def("Y"),isVoted:g.bool.isRequired,disabled:g.bool.def(!1),hasVoteList:g.bool.def(!1)}),dV=()=>({click:W()}),fV=e=>{const{props:t,emit:o}=e,{$t:r}=No(),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 Cr(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=Cr(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}=No();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=Cr(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":W()}),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}=No(),{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=Cr(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}=No(),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 Ql(()=>{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=Cr(EV,IV,MV,!1,null,"214a02c3");const zV=AV.exports;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}=Nt(),{$t:m}=No(),{trackEvent:f}=tV((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=mn(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)}),$V=()=>({"to-show":()=>!0,"to-hide":()=>!0,"show-entrance":W()}),BV=e=>{var v,_,y,C,x,S,k;const{props:t,emit:o}=e,{getEmitter:r}=To(),{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(Js.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 oV(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:$V(),setup(e,{emit:t}){const o=e,{$t:r}=No(),{list:i,curVotedList:a,handleToVote:n,handleRule:s,isItemClickable:l}=BV({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=Cr(FV,jV,NV,!1,null,null);const WV=UV.exports,ZV=c.defineComponent({__name:"vote-list-popup",props:cV(),setup(e,{expose:t}){const o=e,{$t:r}=No(),i=c.ref(),{instance:a,visible:n,popupRef:s,handleToRule:l}=pV({voteListRef:i});return t(a),{__sfc:!0,props:o,$t:r,voteListRef:i,instance:a,visible:n,popupRef:s,handleToRule:l,PwcPopup:ht,VoteListComponent:WV}}});var qV=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)])},YV=[],GV=Cr(ZV,qV,YV,!1,null,null);return GV.exports});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:27]");
|
|
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)])},LR=[],SR=$(xR,CR,LR);const kR=SR.exports,PR=c.defineComponent({__name:"menu-item",props:oR(),setup(e){const t=e,{receiveRouterSlotData:o}=yR({props:t});return{__sfc:!0,props:t,receiveRouterSlotData:o,MenuItemContent:kR}}});var TR=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)},QR=[],ER=$(PR,TR,QR);const IR=ER.exports,MR={};var AR=function(){var e=this;return e._self._c,e._m(0)},zR=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"pwc-menu-divider"},[t("div")])}],DR=$(MR,AR,zR);const RR=DR.exports;K("PwcMenu",lR),K("PwcSubMenu",_R),K("PwcMenuItem",IR),K("PwcMenuDivider",RR);const OR=()=>X(O(O({},Vn()),nd()),{trigger:g.oneOf(Ki).def("click"),placement:g.oneOf(Xr).def("top"),feedbackType:g.enum().def(Bo.Warning),concise:g.bool.def(!1)}),VR=()=>O({},X1()),$R=c.defineComponent({__name:"popconfirm",props:OR(),emits:VR(),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 BR=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))},FR=[],jR=$($R,BR,FR);const NR=jR.exports;K("PwcPopconfirm",NR);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 UR(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 WR=()=>({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("")}),ZR=()=>({"resize-start":W(),resize:W(),"resize-end":W()}),qR=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?UR(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}};WR(),ZR();const YR=()=>({title:g.looseString,titleTooltip:g.looseString}),GR=c.defineComponent({__name:"section",props:YR(),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 XR=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)])},KR=[],JR=$(GR,XR,KR);const HR=JR.exports;K("PwcSection",HR);const eO=()=>({[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)}),tO=()=>X(O({},fe()),{change:W()}),e0=Symbol("slider-inject-key"),oO=e=>{const{props:t,emit:o}=e,{modelValue:r,updateModelValue:i}=pe(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}=Re(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),rO=()=>({value:g.number}),iO=()=>({change:W()}),aO=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||ce||s.value&&setTimeout(()=>{s.value=!1,l.value||(k(d.value),a())},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:n,dragging:s,btnStyle:f,handleMouseEnter:h,handleMouseLeave:b,onButtonDown:C,setPosition:k}},nO={name:"PlvSliderButton"},sO=c.defineComponent(X(O({},nO),{props:rO(),emits:iO(),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}=aO({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 lO=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`}})])},cO=[],pO=$(sO,lO,cO);const uO=pO.exports,dO=c.defineComponent({__name:"slider",props:eO(),emits:tO(),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}=oO({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:uO}}});var fO=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()])},mO=[],hO=$(dO,fO,mO);const gO=hO.exports;K("PwcSlider",gO);const vO=()=>({max:g.number.def(3)}),wO=()=>({label:g.looseString}),bO=()=>({click:W()}),o0=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),_O=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(o0,{}),{__sfc:!0,PwcButton:$e,PwcIconMore:D1,PwcDropdown:UQ,PwcDropdownMenu:WQ}}});var yO=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)},xO=[],CO=$(_O,yO,xO);const LO=CO.exports,SO=c.defineComponent({props:vO(),setup(e){const t=c.useSlots(),o=c.inject(ks,void 0),r=Dt(8),i=c.ref();function a(){if(o)return o.allRenderColumnList.value.find(n=>n.columnProps.type==="operation")}return Re(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(LO,{},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)])}}}),kO=c.defineComponent({__name:"table-operation-item",props:wO(),emits:bO(),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:ZQ}}});var PO=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)},TO=[],QO=$(kO,PO,TO);const EO=QO.exports;K("PwcTableOperation",SO),K("PwcTableOperationItem",EO);const IO=["line","rounded","text"],MO=()=>({[g.modelValueKey]:g.oneOfType([String,Number,Symbol]),type:g.oneOf(IO).def("line"),expand:g.bool.def(!1),lazyLoad:g.bool.def(!1)}),AO=()=>X(O({},fe()),{change:W()}),zO=()=>({name:g.oneOfType([String,Number]),extra:g.looseString,disabled:g.bool.def(!1),title:g.looseString,lazyLoad:g.looseBool}),Ks=Symbol("tabs-inject-key"),DO=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:t,tabsProps:o,setCurrentTab:r}=c.inject(Ks),{$t:i}=H(),a=c.ref(),n=c.ref(!1),{visible:s,toggle:l}=st();function p(){return Z(this,null,function*(){if(yield c.nextTick(),!a.value||ce)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:cr,PwcIconUp:O1,renderSlot:at}}});var RO=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()])])},OO=[],VO=$(DO,RO,OO);const $O=VO.exports,BO=c.defineComponent({__name:"tabs",props:MO(),emits:AO(),setup(e,{emit:t}){const o=e,r=c.ref(),i=c.ref(),{modelValue:a,updateModelValue:n}=pe(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(Ks,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:$O}}});var FO=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)},jO=[],NO=$(BO,FO,jO);const UO=NO.exports,WO=c.defineComponent({__name:"tab-pane",props:zO(),setup(e){const t=e,o=Dt(8),r=c.inject(Ks),{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 ZO=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()])},qO=[],YO=$(WO,ZO,qO);const GO=YO.exports;K("PwcTabs",UO),K("PwcTabPane",GO);var r0={},XO,KO;function JO(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=HO(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 HO(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 eV(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,U=o-N,q=N,G=(D.y*o+D.x)*4,J=((D.y+D.height)*o+D.x)*4,te=G,oe=U*4;D.interlaced===!0&&(oe+=o*4*7);for(var ee=8,se=0,he=V.length;se<he;++se){var _e=V[se];if(q===0&&(te+=oe,q=N,te>=J&&(oe=U*4+o*4*(ee-1),te=G+(N+U)*(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,U=o-N,q=N,G=(D.y*o+D.x)*4,J=((D.y+D.height)*o+D.x)*4,te=G,oe=U*4;D.interlaced===!0&&(oe+=o*4*7);for(var ee=8,se=0,he=V.length;se<he;++se){var _e=V[se];if(q===0&&(te+=oe,q=N,te>=J&&(oe=U*4+o*4*(ee-1),te=G+(N+U)*(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{KO=r0.GifWriter=JO,XO=r0.GifReader=eV}catch(e){}const tV=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 oV(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 rV={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"}}},iV={vote:{option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}}},aV={vote:{option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}}},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:"未投票"}}},{useI18n:No}=G1({zh_CN:sV,zh_TW:lV,en:rV,ja:iV,ko:aV,ru:nV}),Js={OpenVote:"OpenVote",OpenVoteRule:"OpenVoteRule"},cV=()=>({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)}),pV=e=>{const{voteListRef:t}=e,o=c.ref(!1),r=c.ref(),{getEmitter:i}=To();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(Js.OpenVoteRule)}return Qo(Js.OpenVote,a),{instance:{open:a,close:n},visible:o,popupRef:r,handleToRule:s}},uV=()=>({status:g.oneOf(["Y","N"]).def("Y"),isVoted:g.bool.isRequired,disabled:g.bool.def(!1),hasVoteList:g.bool.def(!1)}),dV=()=>({click:W()}),fV=e=>{const{props:t,emit:o}=e,{$t:r}=No(),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 Cr(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=Cr(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}=No();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=Cr(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":W()}),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}=No(),{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=Cr(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}=No(),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 Ql(()=>{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=Cr(EV,IV,MV,!1,null,"214a02c3");const zV=AV.exports;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}=Nt(),{$t:m}=No(),{trackEvent:f}=tV((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=mn(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)}),$V=()=>({"to-show":()=>!0,"to-hide":()=>!0,"show-entrance":W()}),BV=e=>{var v,_,y,C,x,S,k;const{props:t,emit:o}=e,{getEmitter:r}=To(),{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(Js.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 oV(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:$V(),setup(e,{emit:t}){const o=e,{$t:r}=No(),{list:i,curVotedList:a,handleToVote:n,handleRule:s,isItemClickable:l}=BV({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=Cr(FV,jV,NV,!1,null,null);const WV=UV.exports,ZV=c.defineComponent({__name:"vote-list-popup",props:cV(),setup(e,{expose:t}){const o=e,{$t:r}=No(),i=c.ref(),{instance:a,visible:n,popupRef:s,handleToRule:l}=pV({voteListRef:i});return t(a),{__sfc:!0,props:o,$t:r,voteListRef:i,instance:a,visible:n,popupRef:s,handleToRule:l,PwcPopup:ht,VoteListComponent:WV}}});var qV=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)])},YV=[],GV=Cr(ZV,qV,YV,!1,null,null);return GV.exports});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:12]");
|