@polyv/iar-vote-ui 2.1.0-rc-20260312.1 → 2.1.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.
@@ -1004,4 +1004,4 @@ ${Ki(r)}`),o}})}function Jd(e){const t=Object.keys(e),r=t.filter(i=>{var n;retur
1004
1004
  enabled: column.columnProps.ellipsis,
1005
1005
  content: cellText,
1006
1006
  onlyTextEllipsis: true,
1007
- }`}],staticClass:"pwc-table-body-cell__content"},[e._v(" "+e._s(r.cellText)+" ")])],2)},FM=[],jM=$(BM,$M,FM);const NM=jM.exports,UM=e=>{const{rowIndex:t,rowData:r,renderRowKey:o}=e,{tableProps:i,allColumnList:n}=Me(),{hoverStatus:a}=li(),s=c.computed(()=>n.value.find(u=>u.columnProps.type==="expand")),l=c.computed(()=>{const u=[];if(i.rowClassName){const d=Ld(i.rowClassName,{rowIndex:t.value,rowData:r.value});u.push(...d)}return i.hoverRow&&a.value.rowIndex===t.value&&u.push("is-hover-row"),s.value&&s.value.getExpandVisible(o.value)&&u.push("is-expanded-row"),u}),p=c.computed(()=>{const u={};if(i.rowStyle){const d=Pd(i.rowStyle,{rowIndex:t.value,rowData:r.value});Object.assign(u,d)}return u});return{rowClass:l,rowStyle:p}},WM=c.defineComponent({__name:"table-body-row",props:xd(),setup(e){const t=e,{leftColumnListInstance:r,centerColumnListInstance:o,rightColumnListInstance:i}=Me(),{columnList:n}=r,{columnList:a}=o,{columnList:s}=i,l=lM({props:t}),{rowClass:p,rowStyle:u}=UM(l);return{__sfc:!0,props:t,leftColumnListInstance:r,centerColumnListInstance:o,rightColumnListInstance:i,leftColumnList:n,centerColumnList:a,rightColumnList:s,rowResult:l,rowClass:p,rowStyle:u,TableBodyCell:NM}}});var HM=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("tr",{staticClass:"pwc-table-row",class:r.rowClass,style:r.rowStyle},[e._l(r.leftColumnList,function(o){return t(r.TableBodyCell,{key:`left-column-${o.columnId}`,attrs:{column:o}})}),e._l(r.centerColumnList,function(o){return t(r.TableBodyCell,{key:`center-column-${o.columnId}`,attrs:{column:o}})}),e._l(r.rightColumnList,function(o){return t(r.TableBodyCell,{key:`right-column-${o.columnId}`,attrs:{column:o}})})],2)},ZM=[],qM=$(WM,HM,ZM);const YM=qM.exports,GM=c.defineComponent({__name:"table-body-row-expand",props:xd(),setup(e){const t=e,{allColumnList:r,wrapWidth:o}=Me(),i=c.computed(()=>r.value.find(a=>a.columnProps.type==="expand"));function n(){if(i.value)return i.value.getCellRenderSlot({rowData:t.rowData,rowIndex:t.rowIndex,columnIndex:i.value.getColumnIndex(),cellData:null})}return{__sfc:!0,props:t,allColumnList:r,wrapWidth:o,expandColumn:i,expandColumnRenderSlotFunc:n,renderSlot:It}}});var XM=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.expandColumn&&r.expandColumn.canShowExpand({rowData:e.rowData,rowIndex:e.rowIndex})&&r.expandColumn.getExpandVisible(r.props.renderRowKey)?t("tr",{staticClass:"pwc-table-row-expand"},[t("td",{staticClass:"pwc-table-row-expand__cell",attrs:{colspan:r.allColumnList.length}},[t(r.renderSlot,{staticClass:"pwc-table-row-expand__cell__content",style:{width:`${r.wrapWidth}px`},attrs:{"slot-func":r.expandColumnRenderSlotFunc}})],1)]):e._e()},KM=[],JM=$(GM,XM,KM);const eA=JM.exports,tA=c.defineComponent({__name:"table-body",setup(e){const{allColumnWidth:t,tableProps:r,wrapWidth:o}=Me(),{bodyWrapRef:i,bodyRef:n}=si(),{renderData:a,isEmptyData:s}=vn(),{getRenderRowKey:l}=Ts(),p=c.computed(()=>{const u={};return r.height&&(u.height=`${r.height}px`),r.maxHeight&&(u.maxHeight=`${r.maxHeight}px`),u});return{__sfc:!0,allColumnWidth:t,tableProps:r,wrapWidth:o,bodyWrapRef:i,bodyRef:n,renderData:a,isEmptyData:s,getRenderRowKey:l,bodyWrapStyle:p,TableColgroup:yd,TableBodyRow:YM,TableBodyRowExpand:eA,PwcEmpty:pn}}});var rA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"bodyWrapRef",staticClass:"pwc-table-body-wrap",style:r.bodyWrapStyle},[r.isEmptyData?t("div",{staticClass:"pwc-table-body__empty",style:{width:`${r.wrapWidth}px`}},[t(r.PwcEmpty,{attrs:{type:"box"}})],1):e._e(),t("table",{ref:"bodyRef",staticClass:"pwc-table-body",style:{width:`${r.allColumnWidth}px`},attrs:{cellpadding:"0",cellspacing:"0",border:"0"}},[t(r.TableColgroup),e._l(r.renderData,function(o,i){return[t(r.TableBodyRow,{attrs:{"render-row-key":r.getRenderRowKey(o,i),"row-data":o,"row-index":i}}),t(r.TableBodyRowExpand,{attrs:{"render-row-key":r.getRenderRowKey(o,i),"row-data":o,"row-index":i}})]})],2)])},oA=[],iA=$(tA,rA,oA);const nA=iA.exports,aA=["multiple","single","index","operation","tags","expand"],sA=["left","right"],lA=["left","center","right"],cA=c.defineComponent({__name:"table-fixed-shadow",props:{position:g.oneOf(lA).isRequired},setup(e){const t=e,{leftColumnListInstance:r,rightColumnListInstance:o}=Me(),{scrollXPosition:i,hasHorizontalScroll:n}=Ps(),{headerWrapSize:a,bodyWrapSize:s}=si(),{isEmptyData:l}=vn(),p=c.computed(()=>{if(l.value)return!0;switch(t.position){case"left":return r.columnWidthTotal.value===0||i.value==="start";case"right":return o.columnWidthTotal.value===0||i.value==="end"}return!1}),u=c.computed(()=>{const d={height:`${a.value.height+s.value.height}px`};return t.position==="left"?d.left=`${r.columnWidthTotal.value}px`:d.right=`${o.columnWidthTotal.value}px`,d});return{__sfc:!0,props:t,leftColumnListInstance:r,rightColumnListInstance:o,scrollXPosition:i,hasHorizontalScroll:n,headerWrapSize:a,bodyWrapSize:s,isEmptyData:l,shadowHidden:p,shadowStyle:u}}});var pA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return!r.shadowHidden&&r.hasHorizontalScroll?t("div",{staticClass:"pwc-table-fixed-shadow",class:{"is-left":e.position==="left","is-right":e.position==="right"},style:r.shadowStyle}):e._e()},uA=[],dA=$(cA,pA,uA);const fA=dA.exports,mA=()=>({column:g.object().isRequired}),Td=Symbol("table-header-cell-inject-key"),hA=e=>{const{props:t}=e,r=c.ref();return c.provide(Td,{headerCellRef:r,column:t.column}),{headerCellRef:r,column:t.column}},Ed=()=>c.inject(Td),gA=c.defineComponent({__name:"header-cell-multiple",setup(e){const{renderData:t}=vn(),{column:r}=Ed(),{inModelValue:o,multipleIsDisabled:i,removeModelValue:n,getColumnModelValue:a,deleteRowData:s}=Sd(r),l=c.computed(()=>{const d=t.value;for(let m=0;m<d.length;m++){const f=d[m];if(o(f))return!0}return!1}),p=c.computed(()=>{const d=t.value;for(let m=0;m<d.length;m++){const f=d[m];if(!o(f)&&!i(f,m))return!1}return!0});function u(){const d=t.value,m=a();if(p.value)for(let f=0;f<d.length;f++){const w=d[f];o(w)&&!i(w,f)&&s(m,w)}else for(let f=0;f<d.length&&!(m.length>=r.columnProps.multipleMax);f++){const w=d[f];!o(w)&&!i(w,f)&&m.push(w)}r.updateModelValue([...m])}return{__sfc:!0,renderData:t,column:r,inModelValue:o,multipleIsDisabled:i,removeModelValue:n,getColumnModelValue:a,deleteRowData:s,indeterminate:l,isChecked:p,toggleMultiple:u,PwcCheckbox:ri}}});var vA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t(r.PwcCheckbox,{attrs:{indeterminate:r.indeterminate,checked:r.isChecked},on:{change:r.toggleMultiple}})},wA=[],bA=$(gA,vA,wA);const _A=bA.exports,yA=c.defineComponent({__name:"header-cell-sort",setup(e){const{tableSortOrder:t}=li(),{column:r,headerCellRef:o}=Ed(),i=c.computed(()=>r.isCurrentSort());return se(o,"click",()=>{const n=r.toggleSortOrder();r.changeSortOrder(n)}),{__sfc:!0,tableSortOrder:t,column:r,headerCellRef:o,isCurrentSort:i}}});var xA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.column.getColumnSortName()?t("div",{staticClass:"pwc-table-header-cell__sort"},[t("div",{staticClass:"pwc-table-header-cell__sort-asc",class:{"is-current":r.isCurrentSort&&r.tableSortOrder==="ascending"},on:{click:function(o){return o.stopPropagation(),r.column.changeSortOrder("ascending")}}}),t("div",{staticClass:"pwc-table-header-cell__sort-desc",class:{"is-current":r.isCurrentSort&&r.tableSortOrder==="descending"},on:{click:function(o){return o.stopPropagation(),r.column.changeSortOrder("descending")}}})]):e._e()},CA=[],SA=$(yA,xA,CA);const kA=SA.exports,LA=e=>{const{column:t}=e,{tableProps:r}=Me();return{headerCellClass:c.computed(()=>{const o=[];switch(t.columnProps.type){case"multiple":o.push("is-multiple-column");break;case"single":o.push("is-single-column");break;case"index":o.push("is-index-column");break;case"operation":o.push("is-operation-column");break}return t.columnProps.sortable&&o.push("is-sortable"),r.highlightSorted&&t.isCurrentSort()&&o.push("is-highlight-sorted"),o})}},PA=c.defineComponent({__name:"table-header-cell",props:mA(),setup(e){const t=e,{$t:r}=ie(),{tableProps:o}=Me(),i=hA({props:t}),{headerCellRef:n}=i,{headerCellClass:a}=LA(i),s=c.computed(()=>{let l="";const p=t.column;return p.columnProps.type==="operation"&&(l=r("table.operation")),p.columnProps.type==="tags"&&(l=r("table.tags")),p.columnProps.type==="index"&&(l=r("table.index")),p.columnProps.type==="single"&&(l=r("table.single")),p.columnProps.title&&(l=p.columnProps.title),l});return{__sfc:!0,props:t,$t:r,tableProps:o,cellResult:i,headerCellRef:n,headerCellClass:a,headerTitle:s,PwcIconQuestionCircleOutline:qo,vTooltip:xt,renderSlot:It,HeaderCellMultiple:_A,HeaderCellSort:kA}}});var TA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("th",{ref:"headerCellRef",staticClass:"pwc-table-header-cell",class:r.headerCellClass,style:G(V({},e.column.getStickyStyle()),{background:r.tableProps.headerBgColor})},[t("div",{staticClass:"pwc-table-header-cell__content"},[e.column.columnProps.type==="multiple"?[t(r.HeaderCellMultiple,{attrs:{column:e.column}})]:e.column.hasSlots("header")?[t(r.renderSlot,{attrs:{"slot-func":e.column.getHeaderRenderSlot}})]:[e._v(" "+e._s(r.headerTitle)+" ")],e.column.columnProps.headerTips?t(r.PwcIconQuestionCircleOutline,{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.column.columnProps.headerTips,expression:"column.columnProps.headerTips"}],staticClass:"pwc-table-header-cell__tips"}):e._e(),e.column.columnProps.sortable?[t(r.HeaderCellSort)]:e._e()],2)])},EA=[],QA=$(PA,TA,EA);const IA=QA.exports,MA=()=>{const{originalColumnListInstance:e}=Me(),t=o=>{const i=[];return o.forEach(n=>{const a=n.getChildrenColumns();i.push(n),a.length>0&&i.push(...t(a))}),i},r=()=>{let o=1;const i=(a,s)=>{s&&(a.level=s.level+1,o<a.level&&(o=a.level));const l=a.getChildrenColumns();if(l.length>0){let p=0;l.forEach(u=>{i(u,a),p+=u.getColSpan()}),a.setColSpan(p)}else a.setColSpan(1)};e.columnList.value.forEach(a=>{a.level=1,i(a,void 0)});const n=[];for(let a=0;a<o;a++)n.push([]);return t(e.columnList.value).forEach(a=>{a.getChildrenColumns().length===0?a.setRowSpan(o-a.level+1):a.setRowSpan(1),n[a.level-1].push(a)}),n};return{headerStructure:c.computed(()=>r())}},AA=c.defineComponent({__name:"table-header",setup(e){const{tableProps:t,allColumnWidth:r}=Me(),{headerWrapRef:o}=si(),{headerStructure:i}=MA();return{__sfc:!0,tableProps:t,allColumnWidth:r,headerWrapRef:o,headerStructure:i,TableColgroup:yd,TableHeaderCell:IA}}});var zA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"headerWrapRef",staticClass:"pwc-table-header-wrap",class:{"is-sticky":r.tableProps.headerSticky},style:{background:r.tableProps.headerBgColor}},[t("table",{staticClass:"pwc-table-header",style:{width:`${r.allColumnWidth}px`},attrs:{cellpadding:"0",cellspacing:"0",border:"0"}},[t(r.TableColgroup),t("thead",e._l(r.headerStructure,function(o,i){return t("tr",{key:`header-row-${i}`,staticClass:"pwc-table-header__row"},e._l(o,function(n){return t(r.TableHeaderCell,{key:`header-column-${n.columnId}`,attrs:{column:n,rowspan:n.getRowSpan(),colspan:n.getColSpan()}})}),1)}),0)],1)])},DA=[],OA=$(AA,zA,DA);const RA=OA.exports,VA=c.defineComponent({__name:"horizontal-scrollbar",setup(e){const{allColumnWidth:t}=Me(),{horizontalScrollbarRef:r,bodyWrapSize:o}=si(),{hasHorizontalScroll:i}=Ps();return{__sfc:!0,allColumnWidth:t,horizontalScrollbarRef:r,bodyWrapSize:o,hasHorizontalScroll:i}}});var BA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.hasHorizontalScroll?t("div",{staticClass:"pwc-table-horizontal-scrollbar"},[t("div",{ref:"horizontalScrollbarRef",staticClass:"pwc-table-horizontal-scrollbar__container",style:{width:`${r.bodyWrapSize.width}px`}},[t("div",{style:{width:`${r.allColumnWidth}px`}})])]):e._e()},$A=[],FA=$(VA,BA,$A);const jA=FA.exports,NA=c.defineComponent({__name:"vertical-scrollbar",setup(e){const{headerWrapSize:t,bodyWrapSize:r,bodySize:o,verticalScrollbarRef:i}=si(),{tableProps:n}=Me(),{hasVerticalScroll:a}=Ps(),s=c.computed(()=>({height:`${t.value.height+r.value.height}px`}));return{__sfc:!0,headerWrapSize:t,bodyWrapSize:r,bodySize:o,verticalScrollbarRef:i,tableProps:n,hasVerticalScroll:a,verticalScrollbarStyle:s}}});var UA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.hasVerticalScroll?t("div",{staticClass:"pwc-table-vertical-scrollbar",style:r.verticalScrollbarStyle},[t("div",{staticClass:"pwc-table-vertical-scrollbar__header",style:{background:r.tableProps.headerBgColor,height:`${r.headerWrapSize.height}px`}}),t("div",{staticClass:"pwc-table-vertical-scrollbar__body"},[t("div",{ref:"verticalScrollbarRef",staticClass:"pwc-table-vertical-scrollbar__container"},[t("div",{style:{height:`${r.bodySize.height}px`}})])])]):e._e()},WA=[],HA=$(NA,UA,WA);const ZA=HA.exports,qA=c.defineComponent({__name:"table-pagination",setup(e){const{tableEmit:t,tableProps:r}=Me(),{paginationModelValue:o}=gd(),i=c.computed(()=>{const a={hideOnSinglePage:!0};return typeof r.pagination=="boolean"?a:V(V({},a),r.pagination)});function n(a){t("page-change",a)}return{__sfc:!0,tableEmit:t,tableProps:r,paginationModelValue:o,paginationProps:i,onPaginationChange:n,PwcPagination:Yu}}});var YA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t(r.PwcPagination,e._b({staticClass:"pwc-table__pagination",on:{change:r.onPaginationChange},model:{value:r.paginationModelValue,callback:function(o){r.paginationModelValue=o},expression:"paginationModelValue"}},"pwc-pagination",r.paginationProps,!1))},GA=[],XA=$(qA,YA,GA);const KA=XA.exports,JA=()=>({data:g.oneOfType([Object,Array]).def([]),headerHeight:g.number.def(48),headerBgColor:g.looseString,headerSticky:g.bool.def(!1),footerSticky:g.bool.def(!1),footerBgColor:g.looseString,height:g.looseNumber,maxHeight:g.looseNumber,flexHeight:g.bool.def(!1),hoverRow:g.bool.def(!0),hoverColumn:g.bool.def(!1),rowKey:g.oneOfType([String,Function]),rowClassName:g.oneOfType([Function,Array,String]),rowStyle:g.oneOfType([Function,Object]),cellClassName:g.oneOfType([Function,Array,String]),cellStyle:g.oneOfType([Function,Object]),pagination:g.oneOfType([Object,Boolean]).def(!1),sort:g.object(),highlightSorted:g.bool.def(!0),border:g.bool.def(!1)}),ez=()=>({"page-change":W(),"sort-change":W()}),tz=()=>({[g.modelValueKey]:g.any,type:g.oneOf(aA),title:g.looseString,prop:g.looseString,width:g.oneOfType([Number,String]),minWidth:g.oneOfType([Number,String]),fixed:g.oneOf(sA),multipleMax:g.number.def(1/0),multipleDisabled:g.func(),singleDisabled:g.func(),headerTips:g.string,sortable:g.bool.def(!1),sortName:g.looseString,ellipsis:g.bool.def(!1),formatter:g.oneOfType([Object,Function,String]),showExpand:g.func(),emptyText:g.oneOfType([String,Boolean]).def(!1)}),rz=()=>V({},he()),oz=e=>{const{props:t}=e,r=Bg();return{footerClass:c.computed(()=>{const o=[];return t.footerSticky&&o.push("is-sticky"),r&&o.push("is-in-popup"),o})}},iz=c.defineComponent({__name:"table",props:JA(),emits:ez(),setup(e,{emit:t}){const r=e,{wrapRef:o,hasHorizontalScroll:i,hasVerticalScroll:n}=oM({props:r,emit:t}),{footerClass:a}=oz({props:r});return{__sfc:!0,props:r,emit:t,wrapRef:o,hasHorizontalScroll:i,hasVerticalScroll:n,footerClass:a,TableBody:nA,TableFixedShadow:fA,TableHeader:RA,HorizontalScrollbar:jA,VerticalScrollbar:ZA,TablePagination:KA}}});var nz=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"wrapRef",staticClass:"pwc-table",class:{"is-border-table":e.border,"is-flex-height":e.flexHeight,"has-horizontal-scroll":r.hasHorizontalScroll,"has-vertical-scroll":r.hasVerticalScroll}},[t("div",{staticClass:"pwc-table__hidden-column"},[e._t("default")],2),t("div",{staticClass:"pwc-table__content"},[t("div",{staticClass:"pwc-table__inner"},[t(r.TableHeader),t(r.TableBody),t(r.TableFixedShadow,{attrs:{position:"left"}}),t(r.TableFixedShadow,{attrs:{position:"right"}})],1),t(r.HorizontalScrollbar),t(r.VerticalScrollbar)],1),e.pagination?t("div",{staticClass:"pwc-table__footer",class:r.footerClass},[e.pagination?t(r.TablePagination):e._e()],1):e._e()])},az=[],sz=$(iz,nz,az);const lz=sz.exports,Dc=Symbol("COLUMN_CHILDREN_PROVIDE_KEY");function Oc(e){const t=c.ref(e);function r(i){t.value=i}function o(){return t.value}return{target:t,set:r,get:o}}const cz=e=>{const t=c.ref([]);function r(p){t.value.push(p)}e.addChildrenColumn=r;function o(){return t.value}e.getChildrenColumns=o;const{set:i,get:n}=Oc(0);e.setColSpan=i,e.getColSpan=n;const{set:a,get:s}=Oc(0);e.setRowSpan=a,e.getRowSpan=s,c.provide(Dc,{addChildrenColumn:r,getChildrenColumns:o,level:1,setColSpan:i,getColSpan:n,setRowSpan:a,getRowSpan:s});const l=c.inject(Dc,void 0);return l&&l.addChildrenColumn(e),{childrenColumnList:t,isChildrenColmn:!!l}},pz=e=>{const t=c.ref(-1);function r(i){t.value=i}function o(){return t.value}return e.setColumnIndex=r,e.getColumnIndex=o,{setColumnIndex:r,getColumnIndex:o}},uz=e=>{const t=c.useSlots();function r(s){return!!t[s]}function o(){return{renderWidth:e.getRenderWidth(),columnIndex:e.getColumnIndex()}}function i(){if(t.header)return t.header(o())}function n(s){return s||{rowData:{},rowIndex:-1,columnIndex:-1,cellData:void 0}}function a(s){if(t.default)return t.default(s)}return e.hasSlots=r,e.getHeaderRenderSlot=i,e.getCellRenderSlot=a,{hasSlots:r,getHeaderSlotData:o,getCellSlotData:n}},dz=e=>{const{columnProps:t}=e,{isEmptyData:r}=vn(),o=c.computed(()=>r.value?!1:t.fixed==="left"||t.fixed==="right");function i(){return o.value}const n=c.ref(-1);function a(l){n.value=l}function s(){const l={};if(o.value&&n.value!==-1){switch(t.fixed){case"left":l.left=`${n.value}px`;break;case"right":l.right=`${n.value}px`;break}l.position="sticky",l.zIndex="3"}return l}return e.getStickyStatus=i,e.setStickyPosition=a,e.getStickyStyle=s,{getStickyStatus:i,setStickyPosition:a,getStickyStyle:s}},fz=e=>{const t=c.ref(100);function r(i){t.value=i}function o(){return t.value}return e.setRenderWidth=r,e.getRenderWidth=o,{setRenderWidth:r,getRenderWidth:o}},mz=e=>{const{columnProps:t}=e,{tableSortName:r,tableSortOrder:o}=li(),{tableEmit:i}=Me(),n=c.computed(()=>t.sortName||t.prop);function a(){return n.value}e.getColumnSortName=a;function s(){return r.value===n.value&&!!n.value}e.isCurrentSort=s;function l(d){if(n.value&&!(r.value===n.value&&o.value===d)){if(!d){i("sort-change",void 0);return}i("sort-change",{sortName:n.value,sortOrder:d})}}e.changeSortOrder=l;const p=["ascending","descending",void 0];function u(){if(!o.value)return p[0];if(r.value!==n.value)return o.value;const d=p.indexOf(o.value);return p[d+1>p.length?0:d+1]}e.toggleSortOrder=u},hz=e=>{const t=c.ref({});function r(){return e.hasSlots("default")}function o(s){return r()?e.columnProps.showExpand?e.columnProps.showExpand(s):!0:!1}function i(s){const l=!t.value[s];t.value=G(V({},t.value),{[s]:l})}function n(s){var l;return(l=t.value[s])!=null?l:!1}function a(s){delete t.value[s]}return e.hasExpandSlot=r,e.canShowExpand=o,e.getExpandVisible=n,e.toggleExpand=i,e.removeExpandRecord=a,{hasExpandSlot:r,getExpandVisible:n,toggleExpand:i}},gz=e=>{const{props:t}=e,{centerColumnListInstance:r,leftColumnListInstance:o,rightColumnListInstance:i,originalColumnListInstance:n}=Me(),{getModelValue:a,updateModelValue:s}=de(t),l={columnId:Yt(8),columnProps:t,getModelValue:a,updateModelValue:s};fz(l),pz(l),dz(l),mz(l);const{getHeaderSlotData:p,getCellSlotData:u}=uz(l);hz(l);const{childrenColumnList:d,isChildrenColmn:m}=cz(l);return c.onMounted(()=>{if(m||n.addColumn(l),d.value.length===0)switch(t.fixed){case"left":o.addColumn(l);break;case"right":i.addColumn(l);break;default:r.addColumn(l);break}}),c.onBeforeUnmount(()=>{if(d.value.length===0)switch(t.fixed){case"left":o.removeColumn(l);break;case"right":i.removeColumn(l);break;default:r.removeColumn(l);break}}),{getHeaderSlotData:p,getCellSlotData:u}},vz=c.defineComponent({__name:"table-column",props:tz(),emits:rz(),setup(e){const t=e,{getCellSlotData:r,getHeaderSlotData:o}=gz({props:t});return{__sfc:!0,props:t,getCellSlotData:r,getHeaderSlotData:o}}});var wz=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"pwc-table-column"},[e._e(),e._e(),e._t("column")],2)},bz=[],_z=$(vz,wz,bz);const yz=_z.exports;ee("PwcTable",lz);ee("PwcTableColumn",yz);const xz=["line","rounded","text"],Cz=()=>({[g.modelValueKey]:g.oneOfType([String,Number,Symbol]),type:g.oneOf(xz).def("line"),expand:g.bool.def(!1),lazyLoad:g.bool.def(!1)}),Sz=()=>G(V({},he()),{change:W()}),kz=()=>({name:g.oneOfType([String,Number]),extra:g.looseString,disabled:g.bool.def(!1),title:g.looseString,lazyLoad:g.looseBool}),Es=Symbol("tabs-inject-key"),Lz=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:t,tabsProps:r,setCurrentTab:o}=c.inject(Es),{$t:i}=ie(),n=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=zt();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||o(d.getPaneName())}return{__sfc:!0,tabPanes:t,tabsProps:r,setCurrentTab:o,$t:i,listRef:n,isMoreItem:a,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:Ho,PwcIconUp:rp,renderSlot:It}}});var Pz=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-nav",class:[`is-type-${r.tabsProps.type}`]},[t("div",{ref:"listRef",staticClass:"pwc-tab-nav__list",class:{"is-hide":r.tabsProps.expand&&!r.isExpanded}},e._l(r.tabPanes,function(o){return t("div",{key:o.paneId,staticClass:"pwc-tab-nav__item",class:{"is-active":o.getIsActive(),"is-disabled":o.paneProps.disabled},on:{click:function(i){return r.onClickItem(o)}}},[o.hasSlot("title")?t(r.renderSlot,{staticClass:"pwc-tab-nav__item__title",attrs:{"slot-func":o.getTitleRenderSlot}}):t("span",[e._v(e._s(o.paneProps.title))]),o.hasSlot("extra")?t(r.renderSlot,{staticClass:"pwc-tab-nav__item__extra",attrs:{"slot-func":o.getExtraRenderSlot}}):e._e(),o.paneProps.extra?t("span",{staticClass:"pwc-tab-nav__item__extra"},[e._v(" "+e._s(o.paneProps.extra)+" ")]):e._e()],1)}),0),t("div",{staticClass:"pwc-tab-nav__right"},[r.tabsProps.expand&&r.isMoreItem?t("div",{staticClass:"pwc-tab-nav__expand",on:{click:r.toggle}},[t("span",[e._v(e._s(r.isExpanded?r.$t("tabs.collapse"):r.$t("tabs.more")))]),r.isExpanded?t(r.PwcIconUp):t(r.PwcIconDown)],1):e._e()])])},Tz=[],Ez=$(Lz,Pz,Tz);const Qz=Ez.exports,Iz=c.defineComponent({__name:"tabs",props:Cz(),emits:Sz(),setup(e,{emit:t}){const r=e,o=c.ref(),i=c.ref(),{modelValue:n,updateModelValue:a}=de(r,{outSideUpdate:w=>{o.value=w}}),s=c.ref([]);function l(w){if(!s.value.includes(w)){if(typeof o.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){o.value!==w&&(o.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(()=>o.value,()=>{m()});const f={tabsProps:r,currentTab:o,tabPanes:s,setCurrentTab:u,addTabPane:l,removeTabPane:p};return c.provide(Es,f),{__sfc:!0,props:r,emits:t,currentTab:o,tabsRef:i,modelValue:n,updateModelValue:a,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:Qz}}});var Mz=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"tabsRef",staticClass:"pwc-tabs"},[t(r.TabNav),t("div",{staticClass:"pwc-tabs__content"},[t("div",{staticClass:"pwc-tabs__list",style:{marginLeft:`-${r.offsetPercent}%`}},[e._t("default")],2)])],1)},Az=[],zz=$(Iz,Mz,Az);const Dz=zz.exports,Oz=c.defineComponent({__name:"tab-pane",props:kz(),setup(e){const t=e,r=Yt(8),o=c.inject(Es),{hasSlot:i,slotRender:n}=Pe(),a=c.computed(()=>t.name||r),s=c.computed(()=>o.currentTab.value===a.value);function l(){return n("title",{isActive:s.value})}const p=c.computed(()=>{var f;return(f=t.lazyLoad)!=null?f:o.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:r,paneProps:t,getPaneName:()=>a.value,getIsActive:()=>s.value,hasSlot:i,getTitleRenderSlot:l,getExtraRenderSlot:()=>n("extra")};return c.onBeforeMount(()=>{o.addTabPane(m)}),{__sfc:!0,props:t,paneId:r,tabsInject:o,hasSlot:i,slotRender:n,tabPaneName:a,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var Rz=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-pane",class:{"is-active":r.isActive},attrs:{"data-pane-name":r.tabPaneName,"data-is-active":r.isActive}},[r.canRender?t("div",{staticClass:"pwc-tab-pane__content"},[e._t("default")],2):e._e()])},Vz=[],Bz=$(Oz,Rz,Vz);const $z=Bz.exports;ee("PwcTabs",Dz);ee("PwcTabPane",$z);const Fz={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"}},jz={vote:Fz},Nz={option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}},Uz={vote:Nz},Wz={option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}},Hz={vote:Wz},Zz={option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}},qz={vote:Zz},Yz={option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}},Gz={vote:Yz},Xz={option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}},Kz={vote:Xz},{useI18n:Mr}=dp({zh_CN:Gz,zh_TW:Kz,en:jz,ja:Uz,ko:Hz,ru:qz}),Fa={OpenVote:"OpenVote",OpenVoteRule:"OpenVoteRule"},Jz=()=>({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)}),eD=e=>{const{voteListRef:t}=e,r=c.ref(!1),o=c.ref(),{getEmitter:i}=Er();function n(){r.value=!0,c.nextTick(()=>{o.value&&o.value.resetScroll()})}c.watch(r,p=>{p&&c.nextTick(()=>{var u;(u=t==null?void 0:t.value)!=null&&u.recalculateGridRowEnds&&t.value.recalculateGridRowEnds()})});function a(){r.value=!1}function s(){i().emit(Fa.OpenVoteRule)}return vr(Fa.OpenVote,n),{instance:{open:n,close:a},visible:r,popupRef:o,handleToRule:s}},tD=()=>({status:g.oneOf(["Y","N"]).def("Y"),isVoted:g.bool.isRequired,disabled:g.bool.def(!1),hasVoteList:g.bool.def(!1)}),rD=()=>({click:W()}),oD=e=>{const{props:t,emit:r}=e,{$t:o}=Mr(),i=c.computed(()=>t.isVoted?"voted":t.status==="N"?"not-voted":t.disabled?"disabled":"vote"),n={vote:o("vote.button.vote"),voted:o("vote.button.voted"),"not-voted":o("vote.button.notVoted"),disabled:o("vote.button.vote")},a=c.computed(()=>n[i.value]);function s(){i.value==="vote"&&r("click")}return{buttonType:i,buttonText:a,handleClick:s}},iD=c.defineComponent({__name:"vote-button",props:tD(),emits:rD(),setup(e,{emit:t}){const r=e,{buttonType:o,buttonText:i,handleClick:n}=oD({props:r,emit:t});return{__sfc:!0,props:r,emit:t,buttonType:o,buttonText:i,handleClick:n,PwcButton:ot}}});function uo(e,t,r,o,i,n,a,s){var l=typeof e=="function"?e.options:e;return t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),n&&(l._scopeId="data-v-"+n),{exports:e,options:l}}var nD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{staticClass:"plv-iar-vote-button",class:{"plv-iar-vote-button--no-pointer":o.props.hasVoteList}},[o.buttonType==="vote"?r(o.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:o.props.disabled},on:{click:o.handleClick}},[t._v(" "+t._s(o.buttonText)+" ")]):o.buttonType==="not-voted"||o.buttonType==="disabled"?r(o.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:""}},[t._v(" "+t._s(o.buttonText)+" ")]):r(o.PwcButton,{staticClass:"plv-iar-vote-button__text",attrs:{size:"mini",disabled:o.props.status==="N"||o.props.disabled}},[t._v(" "+t._s(o.buttonText)+" ")])],1)},aD=[],sD=uo(iD,nD,aD,!1,null,"6ba928d5");const Qd=sD.exports,lD=()=>({status:g.oneOf(["Y","N"]).def("Y")}),cD=()=>({}),pD=e=>{const{props:t}=e,{$t:r}=Mr();return{statusText:c.computed(()=>t.status==="Y"?r("vote.status.voting"):r("vote.status.ended"))}},uD=c.defineComponent({__name:"vote-status",props:lD(),emits:cD(),setup(e,{emit:t}){const r=e,{statusText:o}=pD({props:r});return{__sfc:!0,props:r,emit:t,statusText:o}}});var dD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("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(o.statusText)+" ")])},fD=[],mD=uo(uD,dD,fD,!1,null,"c99114e4");const Id=mD.exports,Md=()=>({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)}),Ad=()=>({"to-vote":W()}),zd=e=>{const{props:t,emit:r,itemRef:o}=e,i=c.ref({gridRowEnd:"auto"}),n=c.computed(()=>t.votedList.includes(t.voteData.id)),a=c.computed(()=>!t.clickable);function s(){a.value||r("to-vote",t.voteData.id)}return{isVoted:n,isDisabled:a,gridRowEndStyle:i,handleVote:s}},hD=c.defineComponent({__name:"vote-item-single",props:Md(),emits:Ad(),setup(e,{emit:t}){const r=e,{$t:o}=Mr(),{isVoted:i,isDisabled:n,handleVote:a}=zd({props:r,emit:t});return{__sfc:!0,$t:o,props:r,emit:t,isVoted:i,isDisabled:n,handleVote:a,VoteButton:Qd,VoteStatus:Id}}});var gD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("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?[r("div",{staticClass:"plv-iar-vote-list-item-bg"},[r("div",{staticClass:"plv-iar-vote-list-item-bg-image",style:{backgroundImage:`url(${t.voteData.voteCoverImage})`}}),r("div",{staticClass:"plv-iar-vote-list-item-bg-mask"})])]:t._e(),r("div",{staticClass:"plv-iar-vote-list-item-content"},[r("div",{staticClass:"plv-iar-vote-list-item-content-info"},[r("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top"},[t.voteData.status?r(o.VoteStatus,{staticClass:"plv-iar-vote-list-item-content-info-left-top-item",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?r("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(o.$t("vote.count"))+" ")]):t._e()],1),r("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[t._v(t._s(t.voteData.name))])]),r(o.VoteButton,{attrs:{status:t.voteData.status,"is-voted":o.isVoted,disabled:o.isDisabled,"has-vote-list":o.props.hasVoteList},on:{click:o.handleVote}})],1)],2)},vD=[],wD=uo(hD,gD,vD,!1,null,"d0e638ec");const bD=wD.exports,_D=c.defineComponent({__name:"vote-item-double",props:Md(),emits:Ad(),setup(e,{expose:t,emit:r}){const o=e,{$t:i}=Mr(),n=c.ref(),{isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p}=zd({props:o,emit:r,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 Jc(()=>{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:o,emit:r,itemRef:n,isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p,resizeObserver:u,GAP:d,calculateGridRowEnd:m,setupResizeObserver:f,cleanupResizeObserver:w,VoteButton:Qd,VoteStatus:Id}}});var yD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{ref:"itemRef",staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-double",style:o.gridRowEndStyle},[r("div",{staticClass:"plv-iar-vote-list-item-content-container"},[t.voteData.voteCoverImage?[r("div",{staticClass:"plv-iar-vote-list-item-image",style:{backgroundImage:`url(${t.voteData.voteCoverImage})`}},[r("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[t.voteData.status?r(o.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?r("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(o.$t("vote.count"))+" ")]):t._e()],1)])]:t._e(),r("div",{staticClass:"plv-iar-vote-list-item-content"},[r("div",{staticClass:"plv-iar-vote-list-item-content-info"},[t.voteData.voteCoverImage?t._e():r("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[t.voteData.status?r(o.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?r("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(o.$t("vote.count"))+" ")]):t._e()],1),r("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[t._v(t._s(t.voteData.name))])]),r(o.VoteButton,{attrs:{status:t.voteData.status,"is-voted":o.isVoted,disabled:o.isDisabled,"has-vote-list":o.props.hasVoteList},on:{click:o.handleVote}})],1)],2)])},xD=[],CD=uo(_D,yD,xD,!1,null,"214a02c3");const SD=CD.exports;function kD(e){const{state:t,onShow:r,onGetVoteList:o}=e,{list:i,curVotedList:n,cacheVotedList:a,voteCount:s,isForceHideResult:l,isForceShowResult:p,findVoteById:u}=t;function d(y){n.value=y.curVotedList}function m(y){const _=y.voteData.id,C=u(_)[0];C!==-1&&i.value.splice(C,1);const x=n.value.findIndex(E=>E===_);x!==-1&&n.value.splice(x,1);const S=a.value.findIndex(E=>E===_);S!==-1&&a.value.splice(S,1);const L=y.voteData.voteOrder||0;let k=i.value.length;for(let E=0;E<i.value.length;E++)if((i.value[E].voteOrder||0)>=L){k=E;break}p.value&&(y.voteData.showVoteCount=!0,y.voteData.voteCount=0),i.value.splice(k,0,y.voteData),r()}function f(y){const _=u(y.id)[1];_&&(_.status="N")}function w(y){s.value=y.voteCount,y.list.forEach(_=>{const C=u(_.id)[1];C&&(C.showVoteCount=!l.value,C.voteCount=_.times)})}function h(){i.value.splice(0,i.value.length)}function b(y){const _=u(y.id)[0];_!==-1&&i.value.splice(_,1)}function v(y){const _=Math.floor(Math.random()*3e3);setTimeout(()=>{o()},_)}return{updateVotedList:d,onVoteStart:m,onVoteStop:f,onVoteResult:w,onVoteDeleteAll:h,onVoteDelete:b,onVoteChangeOrder:v}}function LD(e){const{voteTarget:t,state:r,onShowEntrance:o}=e,{list:i,curVotedList:n,cacheVotedList:a,isVotedWithLimit:s,voteCount:l,isForceHideResult:p,findVoteById:u}=r,{toast:d}=At(),{$t:m}=Mr(),{trackEvent:f}=LI((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&&o(!0);const x=t.getCachedVoteResult();x&&x.forEach(S=>{const L=u(S.id)[1];L&&(L.showVoteCount=!p.value,L.voteCount=S.times)})}})}const b=ts(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)}y()}})}function y(){t&&f({event_id:"click_vote_widget",event_type:"click",spec_attrs:{timestamp:Date.now()}})}function _(){t&&t.interactionCore.getSocket().then(C=>{C&&C.on("connect",()=>{b()})})}return{getVotedList:w,getVoteList:b,toVote:v,setupSocketListener:_}}function PD(e){const{resultShowType:t}=e,r=c.ref([]),o=c.ref([]),i=c.ref([]),n=c.ref(!1),a=c.ref(0),s=c.computed(()=>o.value.length),l=c.computed(()=>t===3&&a.value===0&&i.value.length===0),p=c.computed(()=>t===2||t===3&&(a.value>0||o.value.length>0));function u(d){const m=r.value.findIndex(f=>f.id===d);return[m,r.value[m]]}return{list:r,curVotedList:o,cacheVotedList:i,isVotedWithLimit:n,voteCount:a,isForceHideResult:l,isForceShowResult:p,votedCount:s,findVoteById:u}}const TD=()=>({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)}),ED=()=>({"to-show":()=>!0,"to-hide":()=>!0,"show-entrance":W()}),QD=e=>{var v,y,_,C,x,S,L;const{props:t,emit:r}=e,{getEmitter:o}=Er(),{voteTarget:i={}}=t,n=PD({resultShowType:t.resultShowType}),a=LD({voteTarget:i,state:n,onShowEntrance:k=>r("show-entrance",k)}),{updateVotedList:s,onVoteStart:l,onVoteStop:p,onVoteResult:u,onVoteDeleteAll:d,onVoteDelete:m,onVoteChangeOrder:f}=kD({state:n,onShow:()=>r("to-show"),onGetVoteList:()=>a.getVoteList()});function w(){o().emit(Fa.OpenVoteRule)}function h(k){if(n.curVotedList.value.indexOf(k)!==-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 PI(i.eventEmitter,{[(v=i.VoteEvent)==null?void 0:v.UpdateVotedList]:s,[(y=i.VoteEvent)==null?void 0:y.Start]:l,[(_=i.VoteEvent)==null?void 0:_.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,[(L=i.VoteEvent)==null?void 0:L.UpdateVoteOrder]:f}),c.onMounted(()=>{t.voteTarget&&b()}),c.watch(()=>t.voteTarget,k=>{k&&b()},{immediate:!0}),c.watch(()=>t.voteList,k=>{k!=null&&(n.list.value=[...k])},{immediate:!0,deep:!0}),{list:n.list,curVotedList:n.curVotedList,handleToVote:a.toVote,handleRule:w,isItemClickable:h}},ID=c.defineComponent({__name:"vote-list",props:TD(),emits:ED(),setup(e,{emit:t}){const r=e,{$t:o}=Mr(),{list:i,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l}=QD({props:r,emit:t});return{__sfc:!0,$t:o,props:r,emit:t,list:i,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l,PwcEmpty:pn,VoteItemSingle:bD,VoteItemDouble:SD}}});var MD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{staticClass:"plv-iar-vote"},[o.list.length?r("div",{staticClass:"plv-iar-vote__container"},[t.showHeader?r("div",{staticClass:"plv-iar-vote__container__header"},[r("span",[t._v(t._s(o.$t("vote.option")))]),o.props.showRule?r("span",{class:{"plv-iar-vote__container__header__rule--no-pointer":o.props.voteList&&o.props.voteList.length>0},on:{click:o.handleRule}},[t._v(t._s(o.$t("vote.rule")))]):t._e()]):t._e(),r("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(o.list,function(i){return r(t.layout==="single"?o.VoteItemSingle:o.VoteItemDouble,{key:i.id,tag:"component",attrs:{"vote-data":i,"voted-list":o.curVotedList,clickable:o.isItemClickable(i.id),"has-vote-list":!!(o.props.voteList&&o.props.voteList.length>0)},on:{"to-vote":o.handleToVote}})}),1)]):r("div",{staticClass:"plv-iar-vote__no-data"},[r(o.PwcEmpty)],1)])},AD=[],zD=uo(ID,MD,AD,!1,null,null);const DD=zD.exports,OD=c.defineComponent({__name:"vote-list-popup",props:Jz(),setup(e,{expose:t}){const r=e,{$t:o}=Mr(),i=c.ref(),{instance:n,visible:a,popupRef:s,handleToRule:l}=eD({voteListRef:i});return t(n),{__sfc:!0,props:r,$t:o,voteListRef:i,instance:n,visible:a,popupRef:s,handleToRule:l,PwcPopup:yt,VoteListComponent:DD}}});var RD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r(o.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-list-popup",attrs:{title:o.$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?r("span",{staticClass:"plv-iar-vote-list-popup__rule",on:{click:o.handleToRule}},[t._v(" "+t._s(o.$t("vote.rule"))+" ")]):t._e()]},proxy:!0}]),model:{value:o.visible,callback:function(i){o.visible=i},expression:"visible"}},[r("div",{staticClass:"plv-iar-vote-list-popup__content"},[r(o.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":o.handleToRule}})],1)])},VD=[],BD=uo(OD,RD,VD,!1,null,null);const $D=BD.exports;module.exports=$D;console.log("%c@polyv/iar-vote-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0-rc-20260312.1]","[buildTime: 2026-03-11 10:13:19]");
1007
+ }`}],staticClass:"pwc-table-body-cell__content"},[e._v(" "+e._s(r.cellText)+" ")])],2)},FM=[],jM=$(BM,$M,FM);const NM=jM.exports,UM=e=>{const{rowIndex:t,rowData:r,renderRowKey:o}=e,{tableProps:i,allColumnList:n}=Me(),{hoverStatus:a}=li(),s=c.computed(()=>n.value.find(u=>u.columnProps.type==="expand")),l=c.computed(()=>{const u=[];if(i.rowClassName){const d=Ld(i.rowClassName,{rowIndex:t.value,rowData:r.value});u.push(...d)}return i.hoverRow&&a.value.rowIndex===t.value&&u.push("is-hover-row"),s.value&&s.value.getExpandVisible(o.value)&&u.push("is-expanded-row"),u}),p=c.computed(()=>{const u={};if(i.rowStyle){const d=Pd(i.rowStyle,{rowIndex:t.value,rowData:r.value});Object.assign(u,d)}return u});return{rowClass:l,rowStyle:p}},WM=c.defineComponent({__name:"table-body-row",props:xd(),setup(e){const t=e,{leftColumnListInstance:r,centerColumnListInstance:o,rightColumnListInstance:i}=Me(),{columnList:n}=r,{columnList:a}=o,{columnList:s}=i,l=lM({props:t}),{rowClass:p,rowStyle:u}=UM(l);return{__sfc:!0,props:t,leftColumnListInstance:r,centerColumnListInstance:o,rightColumnListInstance:i,leftColumnList:n,centerColumnList:a,rightColumnList:s,rowResult:l,rowClass:p,rowStyle:u,TableBodyCell:NM}}});var HM=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("tr",{staticClass:"pwc-table-row",class:r.rowClass,style:r.rowStyle},[e._l(r.leftColumnList,function(o){return t(r.TableBodyCell,{key:`left-column-${o.columnId}`,attrs:{column:o}})}),e._l(r.centerColumnList,function(o){return t(r.TableBodyCell,{key:`center-column-${o.columnId}`,attrs:{column:o}})}),e._l(r.rightColumnList,function(o){return t(r.TableBodyCell,{key:`right-column-${o.columnId}`,attrs:{column:o}})})],2)},ZM=[],qM=$(WM,HM,ZM);const YM=qM.exports,GM=c.defineComponent({__name:"table-body-row-expand",props:xd(),setup(e){const t=e,{allColumnList:r,wrapWidth:o}=Me(),i=c.computed(()=>r.value.find(a=>a.columnProps.type==="expand"));function n(){if(i.value)return i.value.getCellRenderSlot({rowData:t.rowData,rowIndex:t.rowIndex,columnIndex:i.value.getColumnIndex(),cellData:null})}return{__sfc:!0,props:t,allColumnList:r,wrapWidth:o,expandColumn:i,expandColumnRenderSlotFunc:n,renderSlot:It}}});var XM=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.expandColumn&&r.expandColumn.canShowExpand({rowData:e.rowData,rowIndex:e.rowIndex})&&r.expandColumn.getExpandVisible(r.props.renderRowKey)?t("tr",{staticClass:"pwc-table-row-expand"},[t("td",{staticClass:"pwc-table-row-expand__cell",attrs:{colspan:r.allColumnList.length}},[t(r.renderSlot,{staticClass:"pwc-table-row-expand__cell__content",style:{width:`${r.wrapWidth}px`},attrs:{"slot-func":r.expandColumnRenderSlotFunc}})],1)]):e._e()},KM=[],JM=$(GM,XM,KM);const eA=JM.exports,tA=c.defineComponent({__name:"table-body",setup(e){const{allColumnWidth:t,tableProps:r,wrapWidth:o}=Me(),{bodyWrapRef:i,bodyRef:n}=si(),{renderData:a,isEmptyData:s}=vn(),{getRenderRowKey:l}=Ts(),p=c.computed(()=>{const u={};return r.height&&(u.height=`${r.height}px`),r.maxHeight&&(u.maxHeight=`${r.maxHeight}px`),u});return{__sfc:!0,allColumnWidth:t,tableProps:r,wrapWidth:o,bodyWrapRef:i,bodyRef:n,renderData:a,isEmptyData:s,getRenderRowKey:l,bodyWrapStyle:p,TableColgroup:yd,TableBodyRow:YM,TableBodyRowExpand:eA,PwcEmpty:pn}}});var rA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"bodyWrapRef",staticClass:"pwc-table-body-wrap",style:r.bodyWrapStyle},[r.isEmptyData?t("div",{staticClass:"pwc-table-body__empty",style:{width:`${r.wrapWidth}px`}},[t(r.PwcEmpty,{attrs:{type:"box"}})],1):e._e(),t("table",{ref:"bodyRef",staticClass:"pwc-table-body",style:{width:`${r.allColumnWidth}px`},attrs:{cellpadding:"0",cellspacing:"0",border:"0"}},[t(r.TableColgroup),e._l(r.renderData,function(o,i){return[t(r.TableBodyRow,{attrs:{"render-row-key":r.getRenderRowKey(o,i),"row-data":o,"row-index":i}}),t(r.TableBodyRowExpand,{attrs:{"render-row-key":r.getRenderRowKey(o,i),"row-data":o,"row-index":i}})]})],2)])},oA=[],iA=$(tA,rA,oA);const nA=iA.exports,aA=["multiple","single","index","operation","tags","expand"],sA=["left","right"],lA=["left","center","right"],cA=c.defineComponent({__name:"table-fixed-shadow",props:{position:g.oneOf(lA).isRequired},setup(e){const t=e,{leftColumnListInstance:r,rightColumnListInstance:o}=Me(),{scrollXPosition:i,hasHorizontalScroll:n}=Ps(),{headerWrapSize:a,bodyWrapSize:s}=si(),{isEmptyData:l}=vn(),p=c.computed(()=>{if(l.value)return!0;switch(t.position){case"left":return r.columnWidthTotal.value===0||i.value==="start";case"right":return o.columnWidthTotal.value===0||i.value==="end"}return!1}),u=c.computed(()=>{const d={height:`${a.value.height+s.value.height}px`};return t.position==="left"?d.left=`${r.columnWidthTotal.value}px`:d.right=`${o.columnWidthTotal.value}px`,d});return{__sfc:!0,props:t,leftColumnListInstance:r,rightColumnListInstance:o,scrollXPosition:i,hasHorizontalScroll:n,headerWrapSize:a,bodyWrapSize:s,isEmptyData:l,shadowHidden:p,shadowStyle:u}}});var pA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return!r.shadowHidden&&r.hasHorizontalScroll?t("div",{staticClass:"pwc-table-fixed-shadow",class:{"is-left":e.position==="left","is-right":e.position==="right"},style:r.shadowStyle}):e._e()},uA=[],dA=$(cA,pA,uA);const fA=dA.exports,mA=()=>({column:g.object().isRequired}),Td=Symbol("table-header-cell-inject-key"),hA=e=>{const{props:t}=e,r=c.ref();return c.provide(Td,{headerCellRef:r,column:t.column}),{headerCellRef:r,column:t.column}},Ed=()=>c.inject(Td),gA=c.defineComponent({__name:"header-cell-multiple",setup(e){const{renderData:t}=vn(),{column:r}=Ed(),{inModelValue:o,multipleIsDisabled:i,removeModelValue:n,getColumnModelValue:a,deleteRowData:s}=Sd(r),l=c.computed(()=>{const d=t.value;for(let m=0;m<d.length;m++){const f=d[m];if(o(f))return!0}return!1}),p=c.computed(()=>{const d=t.value;for(let m=0;m<d.length;m++){const f=d[m];if(!o(f)&&!i(f,m))return!1}return!0});function u(){const d=t.value,m=a();if(p.value)for(let f=0;f<d.length;f++){const w=d[f];o(w)&&!i(w,f)&&s(m,w)}else for(let f=0;f<d.length&&!(m.length>=r.columnProps.multipleMax);f++){const w=d[f];!o(w)&&!i(w,f)&&m.push(w)}r.updateModelValue([...m])}return{__sfc:!0,renderData:t,column:r,inModelValue:o,multipleIsDisabled:i,removeModelValue:n,getColumnModelValue:a,deleteRowData:s,indeterminate:l,isChecked:p,toggleMultiple:u,PwcCheckbox:ri}}});var vA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t(r.PwcCheckbox,{attrs:{indeterminate:r.indeterminate,checked:r.isChecked},on:{change:r.toggleMultiple}})},wA=[],bA=$(gA,vA,wA);const _A=bA.exports,yA=c.defineComponent({__name:"header-cell-sort",setup(e){const{tableSortOrder:t}=li(),{column:r,headerCellRef:o}=Ed(),i=c.computed(()=>r.isCurrentSort());return se(o,"click",()=>{const n=r.toggleSortOrder();r.changeSortOrder(n)}),{__sfc:!0,tableSortOrder:t,column:r,headerCellRef:o,isCurrentSort:i}}});var xA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.column.getColumnSortName()?t("div",{staticClass:"pwc-table-header-cell__sort"},[t("div",{staticClass:"pwc-table-header-cell__sort-asc",class:{"is-current":r.isCurrentSort&&r.tableSortOrder==="ascending"},on:{click:function(o){return o.stopPropagation(),r.column.changeSortOrder("ascending")}}}),t("div",{staticClass:"pwc-table-header-cell__sort-desc",class:{"is-current":r.isCurrentSort&&r.tableSortOrder==="descending"},on:{click:function(o){return o.stopPropagation(),r.column.changeSortOrder("descending")}}})]):e._e()},CA=[],SA=$(yA,xA,CA);const kA=SA.exports,LA=e=>{const{column:t}=e,{tableProps:r}=Me();return{headerCellClass:c.computed(()=>{const o=[];switch(t.columnProps.type){case"multiple":o.push("is-multiple-column");break;case"single":o.push("is-single-column");break;case"index":o.push("is-index-column");break;case"operation":o.push("is-operation-column");break}return t.columnProps.sortable&&o.push("is-sortable"),r.highlightSorted&&t.isCurrentSort()&&o.push("is-highlight-sorted"),o})}},PA=c.defineComponent({__name:"table-header-cell",props:mA(),setup(e){const t=e,{$t:r}=ie(),{tableProps:o}=Me(),i=hA({props:t}),{headerCellRef:n}=i,{headerCellClass:a}=LA(i),s=c.computed(()=>{let l="";const p=t.column;return p.columnProps.type==="operation"&&(l=r("table.operation")),p.columnProps.type==="tags"&&(l=r("table.tags")),p.columnProps.type==="index"&&(l=r("table.index")),p.columnProps.type==="single"&&(l=r("table.single")),p.columnProps.title&&(l=p.columnProps.title),l});return{__sfc:!0,props:t,$t:r,tableProps:o,cellResult:i,headerCellRef:n,headerCellClass:a,headerTitle:s,PwcIconQuestionCircleOutline:qo,vTooltip:xt,renderSlot:It,HeaderCellMultiple:_A,HeaderCellSort:kA}}});var TA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("th",{ref:"headerCellRef",staticClass:"pwc-table-header-cell",class:r.headerCellClass,style:G(V({},e.column.getStickyStyle()),{background:r.tableProps.headerBgColor})},[t("div",{staticClass:"pwc-table-header-cell__content"},[e.column.columnProps.type==="multiple"?[t(r.HeaderCellMultiple,{attrs:{column:e.column}})]:e.column.hasSlots("header")?[t(r.renderSlot,{attrs:{"slot-func":e.column.getHeaderRenderSlot}})]:[e._v(" "+e._s(r.headerTitle)+" ")],e.column.columnProps.headerTips?t(r.PwcIconQuestionCircleOutline,{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.column.columnProps.headerTips,expression:"column.columnProps.headerTips"}],staticClass:"pwc-table-header-cell__tips"}):e._e(),e.column.columnProps.sortable?[t(r.HeaderCellSort)]:e._e()],2)])},EA=[],QA=$(PA,TA,EA);const IA=QA.exports,MA=()=>{const{originalColumnListInstance:e}=Me(),t=o=>{const i=[];return o.forEach(n=>{const a=n.getChildrenColumns();i.push(n),a.length>0&&i.push(...t(a))}),i},r=()=>{let o=1;const i=(a,s)=>{s&&(a.level=s.level+1,o<a.level&&(o=a.level));const l=a.getChildrenColumns();if(l.length>0){let p=0;l.forEach(u=>{i(u,a),p+=u.getColSpan()}),a.setColSpan(p)}else a.setColSpan(1)};e.columnList.value.forEach(a=>{a.level=1,i(a,void 0)});const n=[];for(let a=0;a<o;a++)n.push([]);return t(e.columnList.value).forEach(a=>{a.getChildrenColumns().length===0?a.setRowSpan(o-a.level+1):a.setRowSpan(1),n[a.level-1].push(a)}),n};return{headerStructure:c.computed(()=>r())}},AA=c.defineComponent({__name:"table-header",setup(e){const{tableProps:t,allColumnWidth:r}=Me(),{headerWrapRef:o}=si(),{headerStructure:i}=MA();return{__sfc:!0,tableProps:t,allColumnWidth:r,headerWrapRef:o,headerStructure:i,TableColgroup:yd,TableHeaderCell:IA}}});var zA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"headerWrapRef",staticClass:"pwc-table-header-wrap",class:{"is-sticky":r.tableProps.headerSticky},style:{background:r.tableProps.headerBgColor}},[t("table",{staticClass:"pwc-table-header",style:{width:`${r.allColumnWidth}px`},attrs:{cellpadding:"0",cellspacing:"0",border:"0"}},[t(r.TableColgroup),t("thead",e._l(r.headerStructure,function(o,i){return t("tr",{key:`header-row-${i}`,staticClass:"pwc-table-header__row"},e._l(o,function(n){return t(r.TableHeaderCell,{key:`header-column-${n.columnId}`,attrs:{column:n,rowspan:n.getRowSpan(),colspan:n.getColSpan()}})}),1)}),0)],1)])},DA=[],OA=$(AA,zA,DA);const RA=OA.exports,VA=c.defineComponent({__name:"horizontal-scrollbar",setup(e){const{allColumnWidth:t}=Me(),{horizontalScrollbarRef:r,bodyWrapSize:o}=si(),{hasHorizontalScroll:i}=Ps();return{__sfc:!0,allColumnWidth:t,horizontalScrollbarRef:r,bodyWrapSize:o,hasHorizontalScroll:i}}});var BA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.hasHorizontalScroll?t("div",{staticClass:"pwc-table-horizontal-scrollbar"},[t("div",{ref:"horizontalScrollbarRef",staticClass:"pwc-table-horizontal-scrollbar__container",style:{width:`${r.bodyWrapSize.width}px`}},[t("div",{style:{width:`${r.allColumnWidth}px`}})])]):e._e()},$A=[],FA=$(VA,BA,$A);const jA=FA.exports,NA=c.defineComponent({__name:"vertical-scrollbar",setup(e){const{headerWrapSize:t,bodyWrapSize:r,bodySize:o,verticalScrollbarRef:i}=si(),{tableProps:n}=Me(),{hasVerticalScroll:a}=Ps(),s=c.computed(()=>({height:`${t.value.height+r.value.height}px`}));return{__sfc:!0,headerWrapSize:t,bodyWrapSize:r,bodySize:o,verticalScrollbarRef:i,tableProps:n,hasVerticalScroll:a,verticalScrollbarStyle:s}}});var UA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.hasVerticalScroll?t("div",{staticClass:"pwc-table-vertical-scrollbar",style:r.verticalScrollbarStyle},[t("div",{staticClass:"pwc-table-vertical-scrollbar__header",style:{background:r.tableProps.headerBgColor,height:`${r.headerWrapSize.height}px`}}),t("div",{staticClass:"pwc-table-vertical-scrollbar__body"},[t("div",{ref:"verticalScrollbarRef",staticClass:"pwc-table-vertical-scrollbar__container"},[t("div",{style:{height:`${r.bodySize.height}px`}})])])]):e._e()},WA=[],HA=$(NA,UA,WA);const ZA=HA.exports,qA=c.defineComponent({__name:"table-pagination",setup(e){const{tableEmit:t,tableProps:r}=Me(),{paginationModelValue:o}=gd(),i=c.computed(()=>{const a={hideOnSinglePage:!0};return typeof r.pagination=="boolean"?a:V(V({},a),r.pagination)});function n(a){t("page-change",a)}return{__sfc:!0,tableEmit:t,tableProps:r,paginationModelValue:o,paginationProps:i,onPaginationChange:n,PwcPagination:Yu}}});var YA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t(r.PwcPagination,e._b({staticClass:"pwc-table__pagination",on:{change:r.onPaginationChange},model:{value:r.paginationModelValue,callback:function(o){r.paginationModelValue=o},expression:"paginationModelValue"}},"pwc-pagination",r.paginationProps,!1))},GA=[],XA=$(qA,YA,GA);const KA=XA.exports,JA=()=>({data:g.oneOfType([Object,Array]).def([]),headerHeight:g.number.def(48),headerBgColor:g.looseString,headerSticky:g.bool.def(!1),footerSticky:g.bool.def(!1),footerBgColor:g.looseString,height:g.looseNumber,maxHeight:g.looseNumber,flexHeight:g.bool.def(!1),hoverRow:g.bool.def(!0),hoverColumn:g.bool.def(!1),rowKey:g.oneOfType([String,Function]),rowClassName:g.oneOfType([Function,Array,String]),rowStyle:g.oneOfType([Function,Object]),cellClassName:g.oneOfType([Function,Array,String]),cellStyle:g.oneOfType([Function,Object]),pagination:g.oneOfType([Object,Boolean]).def(!1),sort:g.object(),highlightSorted:g.bool.def(!0),border:g.bool.def(!1)}),ez=()=>({"page-change":W(),"sort-change":W()}),tz=()=>({[g.modelValueKey]:g.any,type:g.oneOf(aA),title:g.looseString,prop:g.looseString,width:g.oneOfType([Number,String]),minWidth:g.oneOfType([Number,String]),fixed:g.oneOf(sA),multipleMax:g.number.def(1/0),multipleDisabled:g.func(),singleDisabled:g.func(),headerTips:g.string,sortable:g.bool.def(!1),sortName:g.looseString,ellipsis:g.bool.def(!1),formatter:g.oneOfType([Object,Function,String]),showExpand:g.func(),emptyText:g.oneOfType([String,Boolean]).def(!1)}),rz=()=>V({},he()),oz=e=>{const{props:t}=e,r=Bg();return{footerClass:c.computed(()=>{const o=[];return t.footerSticky&&o.push("is-sticky"),r&&o.push("is-in-popup"),o})}},iz=c.defineComponent({__name:"table",props:JA(),emits:ez(),setup(e,{emit:t}){const r=e,{wrapRef:o,hasHorizontalScroll:i,hasVerticalScroll:n}=oM({props:r,emit:t}),{footerClass:a}=oz({props:r});return{__sfc:!0,props:r,emit:t,wrapRef:o,hasHorizontalScroll:i,hasVerticalScroll:n,footerClass:a,TableBody:nA,TableFixedShadow:fA,TableHeader:RA,HorizontalScrollbar:jA,VerticalScrollbar:ZA,TablePagination:KA}}});var nz=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"wrapRef",staticClass:"pwc-table",class:{"is-border-table":e.border,"is-flex-height":e.flexHeight,"has-horizontal-scroll":r.hasHorizontalScroll,"has-vertical-scroll":r.hasVerticalScroll}},[t("div",{staticClass:"pwc-table__hidden-column"},[e._t("default")],2),t("div",{staticClass:"pwc-table__content"},[t("div",{staticClass:"pwc-table__inner"},[t(r.TableHeader),t(r.TableBody),t(r.TableFixedShadow,{attrs:{position:"left"}}),t(r.TableFixedShadow,{attrs:{position:"right"}})],1),t(r.HorizontalScrollbar),t(r.VerticalScrollbar)],1),e.pagination?t("div",{staticClass:"pwc-table__footer",class:r.footerClass},[e.pagination?t(r.TablePagination):e._e()],1):e._e()])},az=[],sz=$(iz,nz,az);const lz=sz.exports,Dc=Symbol("COLUMN_CHILDREN_PROVIDE_KEY");function Oc(e){const t=c.ref(e);function r(i){t.value=i}function o(){return t.value}return{target:t,set:r,get:o}}const cz=e=>{const t=c.ref([]);function r(p){t.value.push(p)}e.addChildrenColumn=r;function o(){return t.value}e.getChildrenColumns=o;const{set:i,get:n}=Oc(0);e.setColSpan=i,e.getColSpan=n;const{set:a,get:s}=Oc(0);e.setRowSpan=a,e.getRowSpan=s,c.provide(Dc,{addChildrenColumn:r,getChildrenColumns:o,level:1,setColSpan:i,getColSpan:n,setRowSpan:a,getRowSpan:s});const l=c.inject(Dc,void 0);return l&&l.addChildrenColumn(e),{childrenColumnList:t,isChildrenColmn:!!l}},pz=e=>{const t=c.ref(-1);function r(i){t.value=i}function o(){return t.value}return e.setColumnIndex=r,e.getColumnIndex=o,{setColumnIndex:r,getColumnIndex:o}},uz=e=>{const t=c.useSlots();function r(s){return!!t[s]}function o(){return{renderWidth:e.getRenderWidth(),columnIndex:e.getColumnIndex()}}function i(){if(t.header)return t.header(o())}function n(s){return s||{rowData:{},rowIndex:-1,columnIndex:-1,cellData:void 0}}function a(s){if(t.default)return t.default(s)}return e.hasSlots=r,e.getHeaderRenderSlot=i,e.getCellRenderSlot=a,{hasSlots:r,getHeaderSlotData:o,getCellSlotData:n}},dz=e=>{const{columnProps:t}=e,{isEmptyData:r}=vn(),o=c.computed(()=>r.value?!1:t.fixed==="left"||t.fixed==="right");function i(){return o.value}const n=c.ref(-1);function a(l){n.value=l}function s(){const l={};if(o.value&&n.value!==-1){switch(t.fixed){case"left":l.left=`${n.value}px`;break;case"right":l.right=`${n.value}px`;break}l.position="sticky",l.zIndex="3"}return l}return e.getStickyStatus=i,e.setStickyPosition=a,e.getStickyStyle=s,{getStickyStatus:i,setStickyPosition:a,getStickyStyle:s}},fz=e=>{const t=c.ref(100);function r(i){t.value=i}function o(){return t.value}return e.setRenderWidth=r,e.getRenderWidth=o,{setRenderWidth:r,getRenderWidth:o}},mz=e=>{const{columnProps:t}=e,{tableSortName:r,tableSortOrder:o}=li(),{tableEmit:i}=Me(),n=c.computed(()=>t.sortName||t.prop);function a(){return n.value}e.getColumnSortName=a;function s(){return r.value===n.value&&!!n.value}e.isCurrentSort=s;function l(d){if(n.value&&!(r.value===n.value&&o.value===d)){if(!d){i("sort-change",void 0);return}i("sort-change",{sortName:n.value,sortOrder:d})}}e.changeSortOrder=l;const p=["ascending","descending",void 0];function u(){if(!o.value)return p[0];if(r.value!==n.value)return o.value;const d=p.indexOf(o.value);return p[d+1>p.length?0:d+1]}e.toggleSortOrder=u},hz=e=>{const t=c.ref({});function r(){return e.hasSlots("default")}function o(s){return r()?e.columnProps.showExpand?e.columnProps.showExpand(s):!0:!1}function i(s){const l=!t.value[s];t.value=G(V({},t.value),{[s]:l})}function n(s){var l;return(l=t.value[s])!=null?l:!1}function a(s){delete t.value[s]}return e.hasExpandSlot=r,e.canShowExpand=o,e.getExpandVisible=n,e.toggleExpand=i,e.removeExpandRecord=a,{hasExpandSlot:r,getExpandVisible:n,toggleExpand:i}},gz=e=>{const{props:t}=e,{centerColumnListInstance:r,leftColumnListInstance:o,rightColumnListInstance:i,originalColumnListInstance:n}=Me(),{getModelValue:a,updateModelValue:s}=de(t),l={columnId:Yt(8),columnProps:t,getModelValue:a,updateModelValue:s};fz(l),pz(l),dz(l),mz(l);const{getHeaderSlotData:p,getCellSlotData:u}=uz(l);hz(l);const{childrenColumnList:d,isChildrenColmn:m}=cz(l);return c.onMounted(()=>{if(m||n.addColumn(l),d.value.length===0)switch(t.fixed){case"left":o.addColumn(l);break;case"right":i.addColumn(l);break;default:r.addColumn(l);break}}),c.onBeforeUnmount(()=>{if(d.value.length===0)switch(t.fixed){case"left":o.removeColumn(l);break;case"right":i.removeColumn(l);break;default:r.removeColumn(l);break}}),{getHeaderSlotData:p,getCellSlotData:u}},vz=c.defineComponent({__name:"table-column",props:tz(),emits:rz(),setup(e){const t=e,{getCellSlotData:r,getHeaderSlotData:o}=gz({props:t});return{__sfc:!0,props:t,getCellSlotData:r,getHeaderSlotData:o}}});var wz=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"pwc-table-column"},[e._e(),e._e(),e._t("column")],2)},bz=[],_z=$(vz,wz,bz);const yz=_z.exports;ee("PwcTable",lz);ee("PwcTableColumn",yz);const xz=["line","rounded","text"],Cz=()=>({[g.modelValueKey]:g.oneOfType([String,Number,Symbol]),type:g.oneOf(xz).def("line"),expand:g.bool.def(!1),lazyLoad:g.bool.def(!1)}),Sz=()=>G(V({},he()),{change:W()}),kz=()=>({name:g.oneOfType([String,Number]),extra:g.looseString,disabled:g.bool.def(!1),title:g.looseString,lazyLoad:g.looseBool}),Es=Symbol("tabs-inject-key"),Lz=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:t,tabsProps:r,setCurrentTab:o}=c.inject(Es),{$t:i}=ie(),n=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=zt();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||o(d.getPaneName())}return{__sfc:!0,tabPanes:t,tabsProps:r,setCurrentTab:o,$t:i,listRef:n,isMoreItem:a,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:Ho,PwcIconUp:rp,renderSlot:It}}});var Pz=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-nav",class:[`is-type-${r.tabsProps.type}`]},[t("div",{ref:"listRef",staticClass:"pwc-tab-nav__list",class:{"is-hide":r.tabsProps.expand&&!r.isExpanded}},e._l(r.tabPanes,function(o){return t("div",{key:o.paneId,staticClass:"pwc-tab-nav__item",class:{"is-active":o.getIsActive(),"is-disabled":o.paneProps.disabled},on:{click:function(i){return r.onClickItem(o)}}},[o.hasSlot("title")?t(r.renderSlot,{staticClass:"pwc-tab-nav__item__title",attrs:{"slot-func":o.getTitleRenderSlot}}):t("span",[e._v(e._s(o.paneProps.title))]),o.hasSlot("extra")?t(r.renderSlot,{staticClass:"pwc-tab-nav__item__extra",attrs:{"slot-func":o.getExtraRenderSlot}}):e._e(),o.paneProps.extra?t("span",{staticClass:"pwc-tab-nav__item__extra"},[e._v(" "+e._s(o.paneProps.extra)+" ")]):e._e()],1)}),0),t("div",{staticClass:"pwc-tab-nav__right"},[r.tabsProps.expand&&r.isMoreItem?t("div",{staticClass:"pwc-tab-nav__expand",on:{click:r.toggle}},[t("span",[e._v(e._s(r.isExpanded?r.$t("tabs.collapse"):r.$t("tabs.more")))]),r.isExpanded?t(r.PwcIconUp):t(r.PwcIconDown)],1):e._e()])])},Tz=[],Ez=$(Lz,Pz,Tz);const Qz=Ez.exports,Iz=c.defineComponent({__name:"tabs",props:Cz(),emits:Sz(),setup(e,{emit:t}){const r=e,o=c.ref(),i=c.ref(),{modelValue:n,updateModelValue:a}=de(r,{outSideUpdate:w=>{o.value=w}}),s=c.ref([]);function l(w){if(!s.value.includes(w)){if(typeof o.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){o.value!==w&&(o.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(()=>o.value,()=>{m()});const f={tabsProps:r,currentTab:o,tabPanes:s,setCurrentTab:u,addTabPane:l,removeTabPane:p};return c.provide(Es,f),{__sfc:!0,props:r,emits:t,currentTab:o,tabsRef:i,modelValue:n,updateModelValue:a,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:Qz}}});var Mz=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"tabsRef",staticClass:"pwc-tabs"},[t(r.TabNav),t("div",{staticClass:"pwc-tabs__content"},[t("div",{staticClass:"pwc-tabs__list",style:{marginLeft:`-${r.offsetPercent}%`}},[e._t("default")],2)])],1)},Az=[],zz=$(Iz,Mz,Az);const Dz=zz.exports,Oz=c.defineComponent({__name:"tab-pane",props:kz(),setup(e){const t=e,r=Yt(8),o=c.inject(Es),{hasSlot:i,slotRender:n}=Pe(),a=c.computed(()=>t.name||r),s=c.computed(()=>o.currentTab.value===a.value);function l(){return n("title",{isActive:s.value})}const p=c.computed(()=>{var f;return(f=t.lazyLoad)!=null?f:o.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:r,paneProps:t,getPaneName:()=>a.value,getIsActive:()=>s.value,hasSlot:i,getTitleRenderSlot:l,getExtraRenderSlot:()=>n("extra")};return c.onBeforeMount(()=>{o.addTabPane(m)}),{__sfc:!0,props:t,paneId:r,tabsInject:o,hasSlot:i,slotRender:n,tabPaneName:a,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var Rz=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-pane",class:{"is-active":r.isActive},attrs:{"data-pane-name":r.tabPaneName,"data-is-active":r.isActive}},[r.canRender?t("div",{staticClass:"pwc-tab-pane__content"},[e._t("default")],2):e._e()])},Vz=[],Bz=$(Oz,Rz,Vz);const $z=Bz.exports;ee("PwcTabs",Dz);ee("PwcTabPane",$z);const Fz={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"}},jz={vote:Fz},Nz={option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}},Uz={vote:Nz},Wz={option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}},Hz={vote:Wz},Zz={option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}},qz={vote:Zz},Yz={option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}},Gz={vote:Yz},Xz={option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}},Kz={vote:Xz},{useI18n:Mr}=dp({zh_CN:Gz,zh_TW:Kz,en:jz,ja:Uz,ko:Hz,ru:qz}),Fa={OpenVote:"OpenVote",OpenVoteRule:"OpenVoteRule"},Jz=()=>({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)}),eD=e=>{const{voteListRef:t}=e,r=c.ref(!1),o=c.ref(),{getEmitter:i}=Er();function n(){r.value=!0,c.nextTick(()=>{o.value&&o.value.resetScroll()})}c.watch(r,p=>{p&&c.nextTick(()=>{var u;(u=t==null?void 0:t.value)!=null&&u.recalculateGridRowEnds&&t.value.recalculateGridRowEnds()})});function a(){r.value=!1}function s(){i().emit(Fa.OpenVoteRule)}return vr(Fa.OpenVote,n),{instance:{open:n,close:a},visible:r,popupRef:o,handleToRule:s}},tD=()=>({status:g.oneOf(["Y","N"]).def("Y"),isVoted:g.bool.isRequired,disabled:g.bool.def(!1),hasVoteList:g.bool.def(!1)}),rD=()=>({click:W()}),oD=e=>{const{props:t,emit:r}=e,{$t:o}=Mr(),i=c.computed(()=>t.isVoted?"voted":t.status==="N"?"not-voted":t.disabled?"disabled":"vote"),n={vote:o("vote.button.vote"),voted:o("vote.button.voted"),"not-voted":o("vote.button.notVoted"),disabled:o("vote.button.vote")},a=c.computed(()=>n[i.value]);function s(){i.value==="vote"&&r("click")}return{buttonType:i,buttonText:a,handleClick:s}},iD=c.defineComponent({__name:"vote-button",props:tD(),emits:rD(),setup(e,{emit:t}){const r=e,{buttonType:o,buttonText:i,handleClick:n}=oD({props:r,emit:t});return{__sfc:!0,props:r,emit:t,buttonType:o,buttonText:i,handleClick:n,PwcButton:ot}}});function uo(e,t,r,o,i,n,a,s){var l=typeof e=="function"?e.options:e;return t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),n&&(l._scopeId="data-v-"+n),{exports:e,options:l}}var nD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{staticClass:"plv-iar-vote-button",class:{"plv-iar-vote-button--no-pointer":o.props.hasVoteList}},[o.buttonType==="vote"?r(o.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:o.props.disabled},on:{click:o.handleClick}},[t._v(" "+t._s(o.buttonText)+" ")]):o.buttonType==="not-voted"||o.buttonType==="disabled"?r(o.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:""}},[t._v(" "+t._s(o.buttonText)+" ")]):r(o.PwcButton,{staticClass:"plv-iar-vote-button__text",attrs:{size:"mini",disabled:o.props.status==="N"||o.props.disabled}},[t._v(" "+t._s(o.buttonText)+" ")])],1)},aD=[],sD=uo(iD,nD,aD,!1,null,"6ba928d5");const Qd=sD.exports,lD=()=>({status:g.oneOf(["Y","N"]).def("Y")}),cD=()=>({}),pD=e=>{const{props:t}=e,{$t:r}=Mr();return{statusText:c.computed(()=>t.status==="Y"?r("vote.status.voting"):r("vote.status.ended"))}},uD=c.defineComponent({__name:"vote-status",props:lD(),emits:cD(),setup(e,{emit:t}){const r=e,{statusText:o}=pD({props:r});return{__sfc:!0,props:r,emit:t,statusText:o}}});var dD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("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(o.statusText)+" ")])},fD=[],mD=uo(uD,dD,fD,!1,null,"c99114e4");const Id=mD.exports,Md=()=>({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)}),Ad=()=>({"to-vote":W()}),zd=e=>{const{props:t,emit:r,itemRef:o}=e,i=c.ref({gridRowEnd:"auto"}),n=c.computed(()=>t.votedList.includes(t.voteData.id)),a=c.computed(()=>!t.clickable);function s(){a.value||r("to-vote",t.voteData.id)}return{isVoted:n,isDisabled:a,gridRowEndStyle:i,handleVote:s}},hD=c.defineComponent({__name:"vote-item-single",props:Md(),emits:Ad(),setup(e,{emit:t}){const r=e,{$t:o}=Mr(),{isVoted:i,isDisabled:n,handleVote:a}=zd({props:r,emit:t});return{__sfc:!0,$t:o,props:r,emit:t,isVoted:i,isDisabled:n,handleVote:a,VoteButton:Qd,VoteStatus:Id}}});var gD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("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?[r("div",{staticClass:"plv-iar-vote-list-item-bg"},[r("div",{staticClass:"plv-iar-vote-list-item-bg-image",style:{backgroundImage:`url(${t.voteData.voteCoverImage})`}}),r("div",{staticClass:"plv-iar-vote-list-item-bg-mask"})])]:t._e(),r("div",{staticClass:"plv-iar-vote-list-item-content"},[r("div",{staticClass:"plv-iar-vote-list-item-content-info"},[r("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top"},[t.voteData.status?r(o.VoteStatus,{staticClass:"plv-iar-vote-list-item-content-info-left-top-item",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?r("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(o.$t("vote.count"))+" ")]):t._e()],1),r("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[t._v(t._s(t.voteData.name))])]),r(o.VoteButton,{attrs:{status:t.voteData.status,"is-voted":o.isVoted,disabled:o.isDisabled,"has-vote-list":o.props.hasVoteList},on:{click:o.handleVote}})],1)],2)},vD=[],wD=uo(hD,gD,vD,!1,null,"d0e638ec");const bD=wD.exports,_D=c.defineComponent({__name:"vote-item-double",props:Md(),emits:Ad(),setup(e,{expose:t,emit:r}){const o=e,{$t:i}=Mr(),n=c.ref(),{isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p}=zd({props:o,emit:r,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 Jc(()=>{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:o,emit:r,itemRef:n,isVoted:a,isDisabled:s,gridRowEndStyle:l,handleVote:p,resizeObserver:u,GAP:d,calculateGridRowEnd:m,setupResizeObserver:f,cleanupResizeObserver:w,VoteButton:Qd,VoteStatus:Id}}});var yD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{ref:"itemRef",staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-double",style:o.gridRowEndStyle},[r("div",{staticClass:"plv-iar-vote-list-item-content-container"},[t.voteData.voteCoverImage?[r("div",{staticClass:"plv-iar-vote-list-item-image",style:{backgroundImage:`url(${t.voteData.voteCoverImage})`}},[r("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[t.voteData.status?r(o.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?r("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(o.$t("vote.count"))+" ")]):t._e()],1)])]:t._e(),r("div",{staticClass:"plv-iar-vote-list-item-content"},[r("div",{staticClass:"plv-iar-vote-list-item-content-info"},[t.voteData.voteCoverImage?t._e():r("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[t.voteData.status?r(o.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?r("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(o.$t("vote.count"))+" ")]):t._e()],1),r("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[t._v(t._s(t.voteData.name))])]),r(o.VoteButton,{attrs:{status:t.voteData.status,"is-voted":o.isVoted,disabled:o.isDisabled,"has-vote-list":o.props.hasVoteList},on:{click:o.handleVote}})],1)],2)])},xD=[],CD=uo(_D,yD,xD,!1,null,"214a02c3");const SD=CD.exports;function kD(e){const{state:t,onShow:r,onGetVoteList:o}=e,{list:i,curVotedList:n,cacheVotedList:a,voteCount:s,isForceHideResult:l,isForceShowResult:p,findVoteById:u}=t;function d(y){n.value=y.curVotedList}function m(y){const _=y.voteData.id,C=u(_)[0];C!==-1&&i.value.splice(C,1);const x=n.value.findIndex(E=>E===_);x!==-1&&n.value.splice(x,1);const S=a.value.findIndex(E=>E===_);S!==-1&&a.value.splice(S,1);const L=y.voteData.voteOrder||0;let k=i.value.length;for(let E=0;E<i.value.length;E++)if((i.value[E].voteOrder||0)>=L){k=E;break}p.value&&(y.voteData.showVoteCount=!0,y.voteData.voteCount=0),i.value.splice(k,0,y.voteData),r()}function f(y){const _=u(y.id)[1];_&&(_.status="N")}function w(y){s.value=y.voteCount,y.list.forEach(_=>{const C=u(_.id)[1];C&&(C.showVoteCount=!l.value,C.voteCount=_.times)})}function h(){i.value.splice(0,i.value.length)}function b(y){const _=u(y.id)[0];_!==-1&&i.value.splice(_,1)}function v(y){const _=Math.floor(Math.random()*3e3);setTimeout(()=>{o()},_)}return{updateVotedList:d,onVoteStart:m,onVoteStop:f,onVoteResult:w,onVoteDeleteAll:h,onVoteDelete:b,onVoteChangeOrder:v}}function LD(e){const{voteTarget:t,state:r,onShowEntrance:o}=e,{list:i,curVotedList:n,cacheVotedList:a,isVotedWithLimit:s,voteCount:l,isForceHideResult:p,findVoteById:u}=r,{toast:d}=At(),{$t:m}=Mr(),{trackEvent:f}=LI((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&&o(!0);const x=t.getCachedVoteResult();x&&x.forEach(S=>{const L=u(S.id)[1];L&&(L.showVoteCount=!p.value,L.voteCount=S.times)})}})}const b=ts(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)}y()}})}function y(){t&&f({event_id:"click_vote_widget",event_type:"click",spec_attrs:{timestamp:Date.now()}})}function _(){t&&t.interactionCore.getSocket().then(C=>{C&&C.on("connect",()=>{b()})})}return{getVotedList:w,getVoteList:b,toVote:v,setupSocketListener:_}}function PD(e){const{resultShowType:t}=e,r=c.ref([]),o=c.ref([]),i=c.ref([]),n=c.ref(!1),a=c.ref(0),s=c.computed(()=>o.value.length),l=c.computed(()=>t===3&&a.value===0&&i.value.length===0),p=c.computed(()=>t===2||t===3&&(a.value>0||o.value.length>0));function u(d){const m=r.value.findIndex(f=>f.id===d);return[m,r.value[m]]}return{list:r,curVotedList:o,cacheVotedList:i,isVotedWithLimit:n,voteCount:a,isForceHideResult:l,isForceShowResult:p,votedCount:s,findVoteById:u}}const TD=()=>({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)}),ED=()=>({"to-show":()=>!0,"to-hide":()=>!0,"show-entrance":W()}),QD=e=>{var v,y,_,C,x,S,L;const{props:t,emit:r}=e,{getEmitter:o}=Er(),{voteTarget:i={}}=t,n=PD({resultShowType:t.resultShowType}),a=LD({voteTarget:i,state:n,onShowEntrance:k=>r("show-entrance",k)}),{updateVotedList:s,onVoteStart:l,onVoteStop:p,onVoteResult:u,onVoteDeleteAll:d,onVoteDelete:m,onVoteChangeOrder:f}=kD({state:n,onShow:()=>r("to-show"),onGetVoteList:()=>a.getVoteList()});function w(){o().emit(Fa.OpenVoteRule)}function h(k){if(n.curVotedList.value.indexOf(k)!==-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 PI(i.eventEmitter,{[(v=i.VoteEvent)==null?void 0:v.UpdateVotedList]:s,[(y=i.VoteEvent)==null?void 0:y.Start]:l,[(_=i.VoteEvent)==null?void 0:_.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,[(L=i.VoteEvent)==null?void 0:L.UpdateVoteOrder]:f}),c.onMounted(()=>{t.voteTarget&&b()}),c.watch(()=>t.voteTarget,k=>{k&&b()},{immediate:!0}),c.watch(()=>t.voteList,k=>{k!=null&&(n.list.value=[...k])},{immediate:!0,deep:!0}),{list:n.list,curVotedList:n.curVotedList,handleToVote:a.toVote,handleRule:w,isItemClickable:h}},ID=c.defineComponent({__name:"vote-list",props:TD(),emits:ED(),setup(e,{emit:t}){const r=e,{$t:o}=Mr(),{list:i,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l}=QD({props:r,emit:t});return{__sfc:!0,$t:o,props:r,emit:t,list:i,curVotedList:n,handleToVote:a,handleRule:s,isItemClickable:l,PwcEmpty:pn,VoteItemSingle:bD,VoteItemDouble:SD}}});var MD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{staticClass:"plv-iar-vote"},[o.list.length?r("div",{staticClass:"plv-iar-vote__container"},[t.showHeader?r("div",{staticClass:"plv-iar-vote__container__header"},[r("span",[t._v(t._s(o.$t("vote.option")))]),o.props.showRule?r("span",{class:{"plv-iar-vote__container__header__rule--no-pointer":o.props.voteList&&o.props.voteList.length>0},on:{click:o.handleRule}},[t._v(t._s(o.$t("vote.rule")))]):t._e()]):t._e(),r("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(o.list,function(i){return r(t.layout==="single"?o.VoteItemSingle:o.VoteItemDouble,{key:i.id,tag:"component",attrs:{"vote-data":i,"voted-list":o.curVotedList,clickable:o.isItemClickable(i.id),"has-vote-list":!!(o.props.voteList&&o.props.voteList.length>0)},on:{"to-vote":o.handleToVote}})}),1)]):r("div",{staticClass:"plv-iar-vote__no-data"},[r(o.PwcEmpty)],1)])},AD=[],zD=uo(ID,MD,AD,!1,null,null);const DD=zD.exports,OD=c.defineComponent({__name:"vote-list-popup",props:Jz(),setup(e,{expose:t}){const r=e,{$t:o}=Mr(),i=c.ref(),{instance:n,visible:a,popupRef:s,handleToRule:l}=eD({voteListRef:i});return t(n),{__sfc:!0,props:r,$t:o,voteListRef:i,instance:n,visible:a,popupRef:s,handleToRule:l,PwcPopup:yt,VoteListComponent:DD}}});var RD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r(o.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-list-popup",attrs:{title:o.$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?r("span",{staticClass:"plv-iar-vote-list-popup__rule",on:{click:o.handleToRule}},[t._v(" "+t._s(o.$t("vote.rule"))+" ")]):t._e()]},proxy:!0}]),model:{value:o.visible,callback:function(i){o.visible=i},expression:"visible"}},[r("div",{staticClass:"plv-iar-vote-list-popup__content"},[r(o.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":o.handleToRule}})],1)])},VD=[],BD=uo(OD,RD,VD,!1,null,null);const $D=BD.exports;module.exports=$D;console.log("%c@polyv/iar-vote-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0]","[buildTime: 2026-03-13 02:45:07]");
@@ -27574,8 +27574,8 @@ const cO = aO.exports;
27574
27574
  console.log(
27575
27575
  "%c@polyv/iar-vote-ui",
27576
27576
  "background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
27577
- "[version: 2.1.0-rc-20260312.1]",
27578
- "[buildTime: 2026-03-11 10:13:18]"
27577
+ "[version: 2.1.0]",
27578
+ "[buildTime: 2026-03-13 02:45:07]"
27579
27579
  );
27580
27580
  export {
27581
27581
  cO as default
@@ -1004,4 +1004,4 @@ ${vi(r)}`),o}})}function Yd(e){const t=Object.keys(e),r=t.filter(i=>{var a;retur
1004
1004
  enabled: column.columnProps.ellipsis,
1005
1005
  content: cellText,
1006
1006
  onlyTextEllipsis: true,
1007
- }`}],staticClass:"pwc-table-body-cell__content"},[e._v(" "+e._s(r.cellText)+" ")])],2)},OM=[],RM=$(zM,DM,OM);const VM=RM.exports,BM=e=>{const{rowIndex:t,rowData:r,renderRowKey:o}=e,{tableProps:i,allColumnList:a}=ze(),{hoverStatus:n}=ui(),s=c.computed(()=>a.value.find(u=>u.columnProps.type==="expand")),l=c.computed(()=>{const u=[];if(i.rowClassName){const d=_d(i.rowClassName,{rowIndex:t.value,rowData:r.value});u.push(...d)}return i.hoverRow&&n.value.rowIndex===t.value&&u.push("is-hover-row"),s.value&&s.value.getExpandVisible(o.value)&&u.push("is-expanded-row"),u}),p=c.computed(()=>{const u={};if(i.rowStyle){const d=yd(i.rowStyle,{rowIndex:t.value,rowData:r.value});Object.assign(u,d)}return u});return{rowClass:l,rowStyle:p}},$M=c.defineComponent({__name:"table-body-row",props:gd(),setup(e){const t=e,{leftColumnListInstance:r,centerColumnListInstance:o,rightColumnListInstance:i}=ze(),{columnList:a}=r,{columnList:n}=o,{columnList:s}=i,l=oM({props:t}),{rowClass:p,rowStyle:u}=BM(l);return{__sfc:!0,props:t,leftColumnListInstance:r,centerColumnListInstance:o,rightColumnListInstance:i,leftColumnList:a,centerColumnList:n,rightColumnList:s,rowResult:l,rowClass:p,rowStyle:u,TableBodyCell:VM}}});var FM=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("tr",{staticClass:"pwc-table-row",class:r.rowClass,style:r.rowStyle},[e._l(r.leftColumnList,function(o){return t(r.TableBodyCell,{key:`left-column-${o.columnId}`,attrs:{column:o}})}),e._l(r.centerColumnList,function(o){return t(r.TableBodyCell,{key:`center-column-${o.columnId}`,attrs:{column:o}})}),e._l(r.rightColumnList,function(o){return t(r.TableBodyCell,{key:`right-column-${o.columnId}`,attrs:{column:o}})})],2)},jM=[],UM=$($M,FM,jM);const WM=UM.exports,HM=c.defineComponent({__name:"table-body-row-expand",props:gd(),setup(e){const t=e,{allColumnList:r,wrapWidth:o}=ze(),i=c.computed(()=>r.value.find(n=>n.columnProps.type==="expand"));function a(){if(i.value)return i.value.getCellRenderSlot({rowData:t.rowData,rowIndex:t.rowIndex,columnIndex:i.value.getColumnIndex(),cellData:null})}return{__sfc:!0,props:t,allColumnList:r,wrapWidth:o,expandColumn:i,expandColumnRenderSlotFunc:a,renderSlot:Qt}}});var ZM=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.expandColumn&&r.expandColumn.canShowExpand({rowData:e.rowData,rowIndex:e.rowIndex})&&r.expandColumn.getExpandVisible(r.props.renderRowKey)?t("tr",{staticClass:"pwc-table-row-expand"},[t("td",{staticClass:"pwc-table-row-expand__cell",attrs:{colspan:r.allColumnList.length}},[t(r.renderSlot,{staticClass:"pwc-table-row-expand__cell__content",style:{width:`${r.wrapWidth}px`},attrs:{"slot-func":r.expandColumnRenderSlotFunc}})],1)]):e._e()},qM=[],YM=$(HM,ZM,qM);const GM=YM.exports,XM=c.defineComponent({__name:"table-body",setup(e){const{allColumnWidth:t,tableProps:r,wrapWidth:o}=ze(),{bodyWrapRef:i,bodyRef:a}=pi(),{renderData:n,isEmptyData:s}=ya(),{getRenderRowKey:l}=Ms(),p=c.computed(()=>{const u={};return r.height&&(u.height=`${r.height}px`),r.maxHeight&&(u.maxHeight=`${r.maxHeight}px`),u});return{__sfc:!0,allColumnWidth:t,tableProps:r,wrapWidth:o,bodyWrapRef:i,bodyRef:a,renderData:n,isEmptyData:s,getRenderRowKey:l,bodyWrapStyle:p,TableColgroup:hd,TableBodyRow:WM,TableBodyRowExpand:GM,PwcEmpty:Yi}}});var KM=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"bodyWrapRef",staticClass:"pwc-table-body-wrap",style:r.bodyWrapStyle},[r.isEmptyData?t("div",{staticClass:"pwc-table-body__empty",style:{width:`${r.wrapWidth}px`}},[t(r.PwcEmpty,{attrs:{type:"box"}})],1):e._e(),t("table",{ref:"bodyRef",staticClass:"pwc-table-body",style:{width:`${r.allColumnWidth}px`},attrs:{cellpadding:"0",cellspacing:"0",border:"0"}},[t(r.TableColgroup),e._l(r.renderData,function(o,i){return[t(r.TableBodyRow,{attrs:{"render-row-key":r.getRenderRowKey(o,i),"row-data":o,"row-index":i}}),t(r.TableBodyRowExpand,{attrs:{"render-row-key":r.getRenderRowKey(o,i),"row-data":o,"row-index":i}})]})],2)])},JM=[],NM=$(XM,KM,JM);const eA=NM.exports,tA=["multiple","single","index","operation","tags","expand"],rA=["left","right"],oA=["left","center","right"],iA=c.defineComponent({__name:"table-fixed-shadow",props:{position:g.oneOf(oA).isRequired},setup(e){const t=e,{leftColumnListInstance:r,rightColumnListInstance:o}=ze(),{scrollXPosition:i,hasHorizontalScroll:a}=Is(),{headerWrapSize:n,bodyWrapSize:s}=pi(),{isEmptyData:l}=ya(),p=c.computed(()=>{if(l.value)return!0;switch(t.position){case"left":return r.columnWidthTotal.value===0||i.value==="start";case"right":return o.columnWidthTotal.value===0||i.value==="end"}return!1}),u=c.computed(()=>{const d={height:`${n.value.height+s.value.height}px`};return t.position==="left"?d.left=`${r.columnWidthTotal.value}px`:d.right=`${o.columnWidthTotal.value}px`,d});return{__sfc:!0,props:t,leftColumnListInstance:r,rightColumnListInstance:o,scrollXPosition:i,hasHorizontalScroll:a,headerWrapSize:n,bodyWrapSize:s,isEmptyData:l,shadowHidden:p,shadowStyle:u}}});var aA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return!r.shadowHidden&&r.hasHorizontalScroll?t("div",{staticClass:"pwc-table-fixed-shadow",class:{"is-left":e.position==="left","is-right":e.position==="right"},style:r.shadowStyle}):e._e()},nA=[],sA=$(iA,aA,nA);const lA=sA.exports,cA=()=>({column:g.object().isRequired}),xd=Symbol("table-header-cell-inject-key"),pA=e=>{const{props:t}=e,r=c.ref();return c.provide(xd,{headerCellRef:r,column:t.column}),{headerCellRef:r,column:t.column}},Cd=()=>c.inject(xd),uA=c.defineComponent({__name:"header-cell-multiple",setup(e){const{renderData:t}=ya(),{column:r}=Cd(),{inModelValue:o,multipleIsDisabled:i,removeModelValue:a,getColumnModelValue:n,deleteRowData:s}=wd(r),l=c.computed(()=>{const d=t.value;for(let m=0;m<d.length;m++){const f=d[m];if(o(f))return!0}return!1}),p=c.computed(()=>{const d=t.value;for(let m=0;m<d.length;m++){const f=d[m];if(!o(f)&&!i(f,m))return!1}return!0});function u(){const d=t.value,m=n();if(p.value)for(let f=0;f<d.length;f++){const w=d[f];o(w)&&!i(w,f)&&s(m,w)}else for(let f=0;f<d.length&&!(m.length>=r.columnProps.multipleMax);f++){const w=d[f];!o(w)&&!i(w,f)&&m.push(w)}r.updateModelValue([...m])}return{__sfc:!0,renderData:t,column:r,inModelValue:o,multipleIsDisabled:i,removeModelValue:a,getColumnModelValue:n,deleteRowData:s,indeterminate:l,isChecked:p,toggleMultiple:u,PwcCheckbox:Xo}}});var dA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t(r.PwcCheckbox,{attrs:{indeterminate:r.indeterminate,checked:r.isChecked},on:{change:r.toggleMultiple}})},fA=[],mA=$(uA,dA,fA);const hA=mA.exports,gA=c.defineComponent({__name:"header-cell-sort",setup(e){const{tableSortOrder:t}=ui(),{column:r,headerCellRef:o}=Cd(),i=c.computed(()=>r.isCurrentSort());return ne(o,"click",()=>{const a=r.toggleSortOrder();r.changeSortOrder(a)}),{__sfc:!0,tableSortOrder:t,column:r,headerCellRef:o,isCurrentSort:i}}});var vA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.column.getColumnSortName()?t("div",{staticClass:"pwc-table-header-cell__sort"},[t("div",{staticClass:"pwc-table-header-cell__sort-asc",class:{"is-current":r.isCurrentSort&&r.tableSortOrder==="ascending"},on:{click:function(o){return o.stopPropagation(),r.column.changeSortOrder("ascending")}}}),t("div",{staticClass:"pwc-table-header-cell__sort-desc",class:{"is-current":r.isCurrentSort&&r.tableSortOrder==="descending"},on:{click:function(o){return o.stopPropagation(),r.column.changeSortOrder("descending")}}})]):e._e()},wA=[],bA=$(gA,vA,wA);const _A=bA.exports,yA=e=>{const{column:t}=e,{tableProps:r}=ze();return{headerCellClass:c.computed(()=>{const o=[];switch(t.columnProps.type){case"multiple":o.push("is-multiple-column");break;case"single":o.push("is-single-column");break;case"index":o.push("is-index-column");break;case"operation":o.push("is-operation-column");break}return t.columnProps.sortable&&o.push("is-sortable"),r.highlightSorted&&t.isCurrentSort()&&o.push("is-highlight-sorted"),o})}},xA=c.defineComponent({__name:"table-header-cell",props:cA(),setup(e){const t=e,{$t:r}=ie(),{tableProps:o}=ze(),i=pA({props:t}),{headerCellRef:a}=i,{headerCellClass:n}=yA(i),s=c.computed(()=>{let l="";const p=t.column;return p.columnProps.type==="operation"&&(l=r("table.operation")),p.columnProps.type==="tags"&&(l=r("table.tags")),p.columnProps.type==="index"&&(l=r("table.index")),p.columnProps.type==="single"&&(l=r("table.single")),p.columnProps.title&&(l=p.columnProps.title),l});return{__sfc:!0,props:t,$t:r,tableProps:o,cellResult:i,headerCellRef:a,headerCellClass:n,headerTitle:s,PwcIconQuestionCircleOutline:Fo,vTooltip:yt,renderSlot:Qt,HeaderCellMultiple:hA,HeaderCellSort:_A}}});var CA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("th",{ref:"headerCellRef",staticClass:"pwc-table-header-cell",class:r.headerCellClass,style:X(V({},e.column.getStickyStyle()),{background:r.tableProps.headerBgColor})},[t("div",{staticClass:"pwc-table-header-cell__content"},[e.column.columnProps.type==="multiple"?[t(r.HeaderCellMultiple,{attrs:{column:e.column}})]:e.column.hasSlots("header")?[t(r.renderSlot,{attrs:{"slot-func":e.column.getHeaderRenderSlot}})]:[e._v(" "+e._s(r.headerTitle)+" ")],e.column.columnProps.headerTips?t(r.PwcIconQuestionCircleOutline,{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.column.columnProps.headerTips,expression:"column.columnProps.headerTips"}],staticClass:"pwc-table-header-cell__tips"}):e._e(),e.column.columnProps.sortable?[t(r.HeaderCellSort)]:e._e()],2)])},SA=[],kA=$(xA,CA,SA);const LA=kA.exports,PA=()=>{const{originalColumnListInstance:e}=ze(),t=o=>{const i=[];return o.forEach(a=>{const n=a.getChildrenColumns();i.push(a),n.length>0&&i.push(...t(n))}),i},r=()=>{let o=1;const i=(n,s)=>{s&&(n.level=s.level+1,o<n.level&&(o=n.level));const l=n.getChildrenColumns();if(l.length>0){let p=0;l.forEach(u=>{i(u,n),p+=u.getColSpan()}),n.setColSpan(p)}else n.setColSpan(1)};e.columnList.value.forEach(n=>{n.level=1,i(n,void 0)});const a=[];for(let n=0;n<o;n++)a.push([]);return t(e.columnList.value).forEach(n=>{n.getChildrenColumns().length===0?n.setRowSpan(o-n.level+1):n.setRowSpan(1),a[n.level-1].push(n)}),a};return{headerStructure:c.computed(()=>r())}},TA=c.defineComponent({__name:"table-header",setup(e){const{tableProps:t,allColumnWidth:r}=ze(),{headerWrapRef:o}=pi(),{headerStructure:i}=PA();return{__sfc:!0,tableProps:t,allColumnWidth:r,headerWrapRef:o,headerStructure:i,TableColgroup:hd,TableHeaderCell:LA}}});var EA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"headerWrapRef",staticClass:"pwc-table-header-wrap",class:{"is-sticky":r.tableProps.headerSticky},style:{background:r.tableProps.headerBgColor}},[t("table",{staticClass:"pwc-table-header",style:{width:`${r.allColumnWidth}px`},attrs:{cellpadding:"0",cellspacing:"0",border:"0"}},[t(r.TableColgroup),t("thead",e._l(r.headerStructure,function(o,i){return t("tr",{key:`header-row-${i}`,staticClass:"pwc-table-header__row"},e._l(o,function(a){return t(r.TableHeaderCell,{key:`header-column-${a.columnId}`,attrs:{column:a,rowspan:a.getRowSpan(),colspan:a.getColSpan()}})}),1)}),0)],1)])},QA=[],IA=$(TA,EA,QA);const MA=IA.exports,AA=c.defineComponent({__name:"horizontal-scrollbar",setup(e){const{allColumnWidth:t}=ze(),{horizontalScrollbarRef:r,bodyWrapSize:o}=pi(),{hasHorizontalScroll:i}=Is();return{__sfc:!0,allColumnWidth:t,horizontalScrollbarRef:r,bodyWrapSize:o,hasHorizontalScroll:i}}});var zA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.hasHorizontalScroll?t("div",{staticClass:"pwc-table-horizontal-scrollbar"},[t("div",{ref:"horizontalScrollbarRef",staticClass:"pwc-table-horizontal-scrollbar__container",style:{width:`${r.bodyWrapSize.width}px`}},[t("div",{style:{width:`${r.allColumnWidth}px`}})])]):e._e()},DA=[],OA=$(AA,zA,DA);const RA=OA.exports,VA=c.defineComponent({__name:"vertical-scrollbar",setup(e){const{headerWrapSize:t,bodyWrapSize:r,bodySize:o,verticalScrollbarRef:i}=pi(),{tableProps:a}=ze(),{hasVerticalScroll:n}=Is(),s=c.computed(()=>({height:`${t.value.height+r.value.height}px`}));return{__sfc:!0,headerWrapSize:t,bodyWrapSize:r,bodySize:o,verticalScrollbarRef:i,tableProps:a,hasVerticalScroll:n,verticalScrollbarStyle:s}}});var BA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.hasVerticalScroll?t("div",{staticClass:"pwc-table-vertical-scrollbar",style:r.verticalScrollbarStyle},[t("div",{staticClass:"pwc-table-vertical-scrollbar__header",style:{background:r.tableProps.headerBgColor,height:`${r.headerWrapSize.height}px`}}),t("div",{staticClass:"pwc-table-vertical-scrollbar__body"},[t("div",{ref:"verticalScrollbarRef",staticClass:"pwc-table-vertical-scrollbar__container"},[t("div",{style:{height:`${r.bodySize.height}px`}})])])]):e._e()},$A=[],FA=$(VA,BA,$A);const jA=FA.exports,UA=c.defineComponent({__name:"table-pagination",setup(e){const{tableEmit:t,tableProps:r}=ze(),{paginationModelValue:o}=pd(),i=c.computed(()=>{const n={hideOnSinglePage:!0};return typeof r.pagination=="boolean"?n:V(V({},n),r.pagination)});function a(n){t("page-change",n)}return{__sfc:!0,tableEmit:t,tableProps:r,paginationModelValue:o,paginationProps:i,onPaginationChange:a,PwcPagination:Au}}});var WA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t(r.PwcPagination,e._b({staticClass:"pwc-table__pagination",on:{change:r.onPaginationChange},model:{value:r.paginationModelValue,callback:function(o){r.paginationModelValue=o},expression:"paginationModelValue"}},"pwc-pagination",r.paginationProps,!1))},HA=[],ZA=$(UA,WA,HA);const qA=ZA.exports,YA=()=>({data:g.oneOfType([Object,Array]).def([]),headerHeight:g.number.def(48),headerBgColor:g.looseString,headerSticky:g.bool.def(!1),footerSticky:g.bool.def(!1),footerBgColor:g.looseString,height:g.looseNumber,maxHeight:g.looseNumber,flexHeight:g.bool.def(!1),hoverRow:g.bool.def(!0),hoverColumn:g.bool.def(!1),rowKey:g.oneOfType([String,Function]),rowClassName:g.oneOfType([Function,Array,String]),rowStyle:g.oneOfType([Function,Object]),cellClassName:g.oneOfType([Function,Array,String]),cellStyle:g.oneOfType([Function,Object]),pagination:g.oneOfType([Object,Boolean]).def(!1),sort:g.object(),highlightSorted:g.bool.def(!0),border:g.bool.def(!1)}),GA=()=>({"page-change":H(),"sort-change":H()}),XA=()=>({[g.modelValueKey]:g.any,type:g.oneOf(tA),title:g.looseString,prop:g.looseString,width:g.oneOfType([Number,String]),minWidth:g.oneOfType([Number,String]),fixed:g.oneOf(rA),multipleMax:g.number.def(1/0),multipleDisabled:g.func(),singleDisabled:g.func(),headerTips:g.string,sortable:g.bool.def(!1),sortName:g.looseString,ellipsis:g.bool.def(!1),formatter:g.oneOfType([Object,Function,String]),showExpand:g.func(),emptyText:g.oneOfType([String,Boolean]).def(!1)}),KA=()=>V({},me()),JA=e=>{const{props:t}=e,r=zg();return{footerClass:c.computed(()=>{const o=[];return t.footerSticky&&o.push("is-sticky"),r&&o.push("is-in-popup"),o})}},NA=c.defineComponent({__name:"table",props:YA(),emits:GA(),setup(e,{emit:t}){const r=e,{wrapRef:o,hasHorizontalScroll:i,hasVerticalScroll:a}=JI({props:r,emit:t}),{footerClass:n}=JA({props:r});return{__sfc:!0,props:r,emit:t,wrapRef:o,hasHorizontalScroll:i,hasVerticalScroll:a,footerClass:n,TableBody:eA,TableFixedShadow:lA,TableHeader:MA,HorizontalScrollbar:RA,VerticalScrollbar:jA,TablePagination:qA}}});var ez=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"wrapRef",staticClass:"pwc-table",class:{"is-border-table":e.border,"is-flex-height":e.flexHeight,"has-horizontal-scroll":r.hasHorizontalScroll,"has-vertical-scroll":r.hasVerticalScroll}},[t("div",{staticClass:"pwc-table__hidden-column"},[e._t("default")],2),t("div",{staticClass:"pwc-table__content"},[t("div",{staticClass:"pwc-table__inner"},[t(r.TableHeader),t(r.TableBody),t(r.TableFixedShadow,{attrs:{position:"left"}}),t(r.TableFixedShadow,{attrs:{position:"right"}})],1),t(r.HorizontalScrollbar),t(r.VerticalScrollbar)],1),e.pagination?t("div",{staticClass:"pwc-table__footer",class:r.footerClass},[e.pagination?t(r.TablePagination):e._e()],1):e._e()])},tz=[],rz=$(NA,ez,tz);const oz=rz.exports,Sd=Symbol("COLUMN_CHILDREN_PROVIDE_KEY");function kd(e){const t=c.ref(e);function r(i){t.value=i}function o(){return t.value}return{target:t,set:r,get:o}}const iz=e=>{const t=c.ref([]);function r(p){t.value.push(p)}e.addChildrenColumn=r;function o(){return t.value}e.getChildrenColumns=o;const{set:i,get:a}=kd(0);e.setColSpan=i,e.getColSpan=a;const{set:n,get:s}=kd(0);e.setRowSpan=n,e.getRowSpan=s,c.provide(Sd,{addChildrenColumn:r,getChildrenColumns:o,level:1,setColSpan:i,getColSpan:a,setRowSpan:n,getRowSpan:s});const l=c.inject(Sd,void 0);return l&&l.addChildrenColumn(e),{childrenColumnList:t,isChildrenColmn:!!l}},az=e=>{const t=c.ref(-1);function r(i){t.value=i}function o(){return t.value}return e.setColumnIndex=r,e.getColumnIndex=o,{setColumnIndex:r,getColumnIndex:o}},nz=e=>{const t=c.useSlots();function r(s){return!!t[s]}function o(){return{renderWidth:e.getRenderWidth(),columnIndex:e.getColumnIndex()}}function i(){if(t.header)return t.header(o())}function a(s){return s||{rowData:{},rowIndex:-1,columnIndex:-1,cellData:void 0}}function n(s){if(t.default)return t.default(s)}return e.hasSlots=r,e.getHeaderRenderSlot=i,e.getCellRenderSlot=n,{hasSlots:r,getHeaderSlotData:o,getCellSlotData:a}},sz=e=>{const{columnProps:t}=e,{isEmptyData:r}=ya(),o=c.computed(()=>r.value?!1:t.fixed==="left"||t.fixed==="right");function i(){return o.value}const a=c.ref(-1);function n(l){a.value=l}function s(){const l={};if(o.value&&a.value!==-1){switch(t.fixed){case"left":l.left=`${a.value}px`;break;case"right":l.right=`${a.value}px`;break}l.position="sticky",l.zIndex="3"}return l}return e.getStickyStatus=i,e.setStickyPosition=n,e.getStickyStyle=s,{getStickyStatus:i,setStickyPosition:n,getStickyStyle:s}},lz=e=>{const t=c.ref(100);function r(i){t.value=i}function o(){return t.value}return e.setRenderWidth=r,e.getRenderWidth=o,{setRenderWidth:r,getRenderWidth:o}},cz=e=>{const{columnProps:t}=e,{tableSortName:r,tableSortOrder:o}=ui(),{tableEmit:i}=ze(),a=c.computed(()=>t.sortName||t.prop);function n(){return a.value}e.getColumnSortName=n;function s(){return r.value===a.value&&!!a.value}e.isCurrentSort=s;function l(d){if(a.value&&!(r.value===a.value&&o.value===d)){if(!d){i("sort-change",void 0);return}i("sort-change",{sortName:a.value,sortOrder:d})}}e.changeSortOrder=l;const p=["ascending","descending",void 0];function u(){if(!o.value)return p[0];if(r.value!==a.value)return o.value;const d=p.indexOf(o.value);return p[d+1>p.length?0:d+1]}e.toggleSortOrder=u},pz=e=>{const t=c.ref({});function r(){return e.hasSlots("default")}function o(s){return r()?e.columnProps.showExpand?e.columnProps.showExpand(s):!0:!1}function i(s){const l=!t.value[s];t.value=X(V({},t.value),{[s]:l})}function a(s){var l;return(l=t.value[s])!=null?l:!1}function n(s){delete t.value[s]}return e.hasExpandSlot=r,e.canShowExpand=o,e.getExpandVisible=a,e.toggleExpand=i,e.removeExpandRecord=n,{hasExpandSlot:r,getExpandVisible:a,toggleExpand:i}},uz=e=>{const{props:t}=e,{centerColumnListInstance:r,leftColumnListInstance:o,rightColumnListInstance:i,originalColumnListInstance:a}=ze(),{getModelValue:n,updateModelValue:s}=de(t),l={columnId:jt(8),columnProps:t,getModelValue:n,updateModelValue:s};lz(l),az(l),sz(l),cz(l);const{getHeaderSlotData:p,getCellSlotData:u}=nz(l);pz(l);const{childrenColumnList:d,isChildrenColmn:m}=iz(l);return c.onMounted(()=>{if(m||a.addColumn(l),d.value.length===0)switch(t.fixed){case"left":o.addColumn(l);break;case"right":i.addColumn(l);break;default:r.addColumn(l);break}}),c.onBeforeUnmount(()=>{if(d.value.length===0)switch(t.fixed){case"left":o.removeColumn(l);break;case"right":i.removeColumn(l);break;default:r.removeColumn(l);break}}),{getHeaderSlotData:p,getCellSlotData:u}},dz=c.defineComponent({__name:"table-column",props:XA(),emits:KA(),setup(e){const t=e,{getCellSlotData:r,getHeaderSlotData:o}=uz({props:t});return{__sfc:!0,props:t,getCellSlotData:r,getHeaderSlotData:o}}});var fz=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"pwc-table-column"},[e._e(),e._e(),e._t("column")],2)},mz=[],hz=$(dz,fz,mz);const gz=hz.exports;N("PwcTable",oz),N("PwcTableColumn",gz);const vz=["line","rounded","text"],wz=()=>({[g.modelValueKey]:g.oneOfType([String,Number,Symbol]),type:g.oneOf(vz).def("line"),expand:g.bool.def(!1),lazyLoad:g.bool.def(!1)}),bz=()=>X(V({},me()),{change:H()}),_z=()=>({name:g.oneOfType([String,Number]),extra:g.looseString,disabled:g.bool.def(!1),title:g.looseString,lazyLoad:g.looseBool}),As=Symbol("tabs-inject-key"),yz=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:t,tabsProps:r,setCurrentTab:o}=c.inject(As),{$t:i}=ie(),a=c.ref(),n=c.ref(!1),{visible:s,toggle:l}=Dt();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||o(d.getPaneName())}return{__sfc:!0,tabPanes:t,tabsProps:r,setCurrentTab:o,$t:i,listRef:a,isMoreItem:n,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:Bo,PwcIconUp:m1,renderSlot:Qt}}});var xz=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-nav",class:[`is-type-${r.tabsProps.type}`]},[t("div",{ref:"listRef",staticClass:"pwc-tab-nav__list",class:{"is-hide":r.tabsProps.expand&&!r.isExpanded}},e._l(r.tabPanes,function(o){return t("div",{key:o.paneId,staticClass:"pwc-tab-nav__item",class:{"is-active":o.getIsActive(),"is-disabled":o.paneProps.disabled},on:{click:function(i){return r.onClickItem(o)}}},[o.hasSlot("title")?t(r.renderSlot,{staticClass:"pwc-tab-nav__item__title",attrs:{"slot-func":o.getTitleRenderSlot}}):t("span",[e._v(e._s(o.paneProps.title))]),o.hasSlot("extra")?t(r.renderSlot,{staticClass:"pwc-tab-nav__item__extra",attrs:{"slot-func":o.getExtraRenderSlot}}):e._e(),o.paneProps.extra?t("span",{staticClass:"pwc-tab-nav__item__extra"},[e._v(" "+e._s(o.paneProps.extra)+" ")]):e._e()],1)}),0),t("div",{staticClass:"pwc-tab-nav__right"},[r.tabsProps.expand&&r.isMoreItem?t("div",{staticClass:"pwc-tab-nav__expand",on:{click:r.toggle}},[t("span",[e._v(e._s(r.isExpanded?r.$t("tabs.collapse"):r.$t("tabs.more")))]),r.isExpanded?t(r.PwcIconUp):t(r.PwcIconDown)],1):e._e()])])},Cz=[],Sz=$(yz,xz,Cz);const kz=Sz.exports,Lz=c.defineComponent({__name:"tabs",props:wz(),emits:bz(),setup(e,{emit:t}){const r=e,o=c.ref(),i=c.ref(),{modelValue:a,updateModelValue:n}=de(r,{outSideUpdate:w=>{o.value=w}}),s=c.ref([]);function l(w){if(!s.value.includes(w)){if(typeof o.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){o.value!==w&&(o.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(()=>o.value,()=>{m()});const f={tabsProps:r,currentTab:o,tabPanes:s,setCurrentTab:u,addTabPane:l,removeTabPane:p};return c.provide(As,f),{__sfc:!0,props:r,emits:t,currentTab:o,tabsRef:i,modelValue:a,updateModelValue:n,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:kz}}});var Pz=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"tabsRef",staticClass:"pwc-tabs"},[t(r.TabNav),t("div",{staticClass:"pwc-tabs__content"},[t("div",{staticClass:"pwc-tabs__list",style:{marginLeft:`-${r.offsetPercent}%`}},[e._t("default")],2)])],1)},Tz=[],Ez=$(Lz,Pz,Tz);const Qz=Ez.exports,Iz=c.defineComponent({__name:"tab-pane",props:_z(),setup(e){const t=e,r=jt(8),o=c.inject(As),{hasSlot:i,slotRender:a}=Ee(),n=c.computed(()=>t.name||r),s=c.computed(()=>o.currentTab.value===n.value);function l(){return a("title",{isActive:s.value})}const p=c.computed(()=>{var f;return(f=t.lazyLoad)!=null?f:o.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:r,paneProps:t,getPaneName:()=>n.value,getIsActive:()=>s.value,hasSlot:i,getTitleRenderSlot:l,getExtraRenderSlot:()=>a("extra")};return c.onBeforeMount(()=>{o.addTabPane(m)}),{__sfc:!0,props:t,paneId:r,tabsInject:o,hasSlot:i,slotRender:a,tabPaneName:n,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var Mz=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-pane",class:{"is-active":r.isActive},attrs:{"data-pane-name":r.tabPaneName,"data-is-active":r.isActive}},[r.canRender?t("div",{staticClass:"pwc-tab-pane__content"},[e._t("default")],2):e._e()])},Az=[],zz=$(Iz,Mz,Az);const Dz=zz.exports;N("PwcTabs",Qz),N("PwcTabPane",Dz);const Oz={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"}}},Rz={vote:{option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}}},Vz={vote:{option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}}},Bz={vote:{option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}}},$z={vote:{option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},Fz={vote:{option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},{useI18n:Dr}=k1({zh_CN:$z,zh_TW:Fz,en:Oz,ja:Rz,ko:Vz,ru:Bz}),zs={OpenVote:"OpenVote",OpenVoteRule:"OpenVoteRule"},jz=()=>({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)}),Uz=e=>{const{voteListRef:t}=e,r=c.ref(!1),o=c.ref(),{getEmitter:i}=kr();function a(){r.value=!0,c.nextTick(()=>{o.value&&o.value.resetScroll()})}c.watch(r,p=>{p&&c.nextTick(()=>{var u;(u=t==null?void 0:t.value)!=null&&u.recalculateGridRowEnds&&t.value.recalculateGridRowEnds()})});function n(){r.value=!1}function s(){i().emit(zs.OpenVoteRule)}return Lr(zs.OpenVote,a),{instance:{open:a,close:n},visible:r,popupRef:o,handleToRule:s}},Wz=()=>({status:g.oneOf(["Y","N"]).def("Y"),isVoted:g.bool.isRequired,disabled:g.bool.def(!1),hasVoteList:g.bool.def(!1)}),Hz=()=>({click:H()}),Zz=e=>{const{props:t,emit:r}=e,{$t:o}=Dr(),i=c.computed(()=>t.isVoted?"voted":t.status==="N"?"not-voted":t.disabled?"disabled":"vote"),a={vote:o("vote.button.vote"),voted:o("vote.button.voted"),"not-voted":o("vote.button.notVoted"),disabled:o("vote.button.vote")},n=c.computed(()=>a[i.value]);function s(){i.value==="vote"&&r("click")}return{buttonType:i,buttonText:n,handleClick:s}},qz=c.defineComponent({__name:"vote-button",props:Wz(),emits:Hz(),setup(e,{emit:t}){const r=e,{buttonType:o,buttonText:i,handleClick:a}=Zz({props:r,emit:t});return{__sfc:!0,props:r,emit:t,buttonType:o,buttonText:i,handleClick:a,PwcButton:rt}}});function ho(e,t,r,o,i,a,n,s){var l=typeof e=="function"?e.options:e;return t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),a&&(l._scopeId="data-v-"+a),{exports:e,options:l}}var Yz=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{staticClass:"plv-iar-vote-button",class:{"plv-iar-vote-button--no-pointer":o.props.hasVoteList}},[o.buttonType==="vote"?r(o.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:o.props.disabled},on:{click:o.handleClick}},[t._v(" "+t._s(o.buttonText)+" ")]):o.buttonType==="not-voted"||o.buttonType==="disabled"?r(o.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:""}},[t._v(" "+t._s(o.buttonText)+" ")]):r(o.PwcButton,{staticClass:"plv-iar-vote-button__text",attrs:{size:"mini",disabled:o.props.status==="N"||o.props.disabled}},[t._v(" "+t._s(o.buttonText)+" ")])],1)},Gz=[],Xz=ho(qz,Yz,Gz,!1,null,"6ba928d5");const Ld=Xz.exports,Kz=()=>({status:g.oneOf(["Y","N"]).def("Y")}),Jz=()=>({}),Nz=e=>{const{props:t}=e,{$t:r}=Dr();return{statusText:c.computed(()=>t.status==="Y"?r("vote.status.voting"):r("vote.status.ended"))}},eD=c.defineComponent({__name:"vote-status",props:Kz(),emits:Jz(),setup(e,{emit:t}){const r=e,{statusText:o}=Nz({props:r});return{__sfc:!0,props:r,emit:t,statusText:o}}});var tD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("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(o.statusText)+" ")])},rD=[],oD=ho(eD,tD,rD,!1,null,"c99114e4");const Pd=oD.exports,Td=()=>({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)}),Ed=()=>({"to-vote":H()}),Qd=e=>{const{props:t,emit:r,itemRef:o}=e,i=c.ref({gridRowEnd:"auto"}),a=c.computed(()=>t.votedList.includes(t.voteData.id)),n=c.computed(()=>!t.clickable);function s(){n.value||r("to-vote",t.voteData.id)}return{isVoted:a,isDisabled:n,gridRowEndStyle:i,handleVote:s}},iD=c.defineComponent({__name:"vote-item-single",props:Td(),emits:Ed(),setup(e,{emit:t}){const r=e,{$t:o}=Dr(),{isVoted:i,isDisabled:a,handleVote:n}=Qd({props:r,emit:t});return{__sfc:!0,$t:o,props:r,emit:t,isVoted:i,isDisabled:a,handleVote:n,VoteButton:Ld,VoteStatus:Pd}}});var aD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("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?[r("div",{staticClass:"plv-iar-vote-list-item-bg"},[r("div",{staticClass:"plv-iar-vote-list-item-bg-image",style:{backgroundImage:`url(${t.voteData.voteCoverImage})`}}),r("div",{staticClass:"plv-iar-vote-list-item-bg-mask"})])]:t._e(),r("div",{staticClass:"plv-iar-vote-list-item-content"},[r("div",{staticClass:"plv-iar-vote-list-item-content-info"},[r("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top"},[t.voteData.status?r(o.VoteStatus,{staticClass:"plv-iar-vote-list-item-content-info-left-top-item",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?r("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(o.$t("vote.count"))+" ")]):t._e()],1),r("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[t._v(t._s(t.voteData.name))])]),r(o.VoteButton,{attrs:{status:t.voteData.status,"is-voted":o.isVoted,disabled:o.isDisabled,"has-vote-list":o.props.hasVoteList},on:{click:o.handleVote}})],1)],2)},nD=[],sD=ho(iD,aD,nD,!1,null,"d0e638ec");const lD=sD.exports,cD=c.defineComponent({__name:"vote-item-double",props:Td(),emits:Ed(),setup(e,{expose:t,emit:r}){const o=e,{$t:i}=Dr(),a=c.ref(),{isVoted:n,isDisabled:s,gridRowEndStyle:l,handleVote:p}=Qd({props:o,emit:r,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 ul(()=>{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:o,emit:r,itemRef:a,isVoted:n,isDisabled:s,gridRowEndStyle:l,handleVote:p,resizeObserver:u,GAP:d,calculateGridRowEnd:m,setupResizeObserver:f,cleanupResizeObserver:w,VoteButton:Ld,VoteStatus:Pd}}});var pD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{ref:"itemRef",staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-double",style:o.gridRowEndStyle},[r("div",{staticClass:"plv-iar-vote-list-item-content-container"},[t.voteData.voteCoverImage?[r("div",{staticClass:"plv-iar-vote-list-item-image",style:{backgroundImage:`url(${t.voteData.voteCoverImage})`}},[r("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[t.voteData.status?r(o.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?r("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(o.$t("vote.count"))+" ")]):t._e()],1)])]:t._e(),r("div",{staticClass:"plv-iar-vote-list-item-content"},[r("div",{staticClass:"plv-iar-vote-list-item-content-info"},[t.voteData.voteCoverImage?t._e():r("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[t.voteData.status?r(o.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?r("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(o.$t("vote.count"))+" ")]):t._e()],1),r("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[t._v(t._s(t.voteData.name))])]),r(o.VoteButton,{attrs:{status:t.voteData.status,"is-voted":o.isVoted,disabled:o.isDisabled,"has-vote-list":o.props.hasVoteList},on:{click:o.handleVote}})],1)],2)])},uD=[],dD=ho(cD,pD,uD,!1,null,"214a02c3");const fD=dD.exports;function mD(e){const{state:t,onShow:r,onGetVoteList:o}=e,{list:i,curVotedList:a,cacheVotedList:n,voteCount:s,isForceHideResult:l,isForceShowResult:p,findVoteById:u}=t;function d(y){a.value=y.curVotedList}function m(y){const _=y.voteData.id,C=u(_)[0];C!==-1&&i.value.splice(C,1);const x=a.value.findIndex(E=>E===_);x!==-1&&a.value.splice(x,1);const S=n.value.findIndex(E=>E===_);S!==-1&&n.value.splice(S,1);const L=y.voteData.voteOrder||0;let k=i.value.length;for(let E=0;E<i.value.length;E++)if((i.value[E].voteOrder||0)>=L){k=E;break}p.value&&(y.voteData.showVoteCount=!0,y.voteData.voteCount=0),i.value.splice(k,0,y.voteData),r()}function f(y){const _=u(y.id)[1];_&&(_.status="N")}function w(y){s.value=y.voteCount,y.list.forEach(_=>{const C=u(_.id)[1];C&&(C.showVoteCount=!l.value,C.voteCount=_.times)})}function h(){i.value.splice(0,i.value.length)}function b(y){const _=u(y.id)[0];_!==-1&&i.value.splice(_,1)}function v(y){const _=Math.floor(Math.random()*3e3);setTimeout(()=>{o()},_)}return{updateVotedList:d,onVoteStart:m,onVoteStop:f,onVoteResult:w,onVoteDeleteAll:h,onVoteDelete:b,onVoteChangeOrder:v}}function hD(e){const{voteTarget:t,state:r,onShowEntrance:o}=e,{list:i,curVotedList:a,cacheVotedList:n,isVotedWithLimit:s,voteCount:l,isForceHideResult:p,findVoteById:u}=r,{toast:d}=zt(),{$t:m}=Dr(),{trackEvent:f}=yI((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&&o(!0);const x=t.getCachedVoteResult();x&&x.forEach(S=>{const L=u(S.id)[1];L&&(L.showVoteCount=!p.value,L.voteCount=S.times)})}})}const b=cn(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)}y()}})}function y(){t&&f({event_id:"click_vote_widget",event_type:"click",spec_attrs:{timestamp:Date.now()}})}function _(){t&&t.interactionCore.getSocket().then(C=>{C&&C.on("connect",()=>{b()})})}return{getVotedList:w,getVoteList:b,toVote:v,setupSocketListener:_}}function gD(e){const{resultShowType:t}=e,r=c.ref([]),o=c.ref([]),i=c.ref([]),a=c.ref(!1),n=c.ref(0),s=c.computed(()=>o.value.length),l=c.computed(()=>t===3&&n.value===0&&i.value.length===0),p=c.computed(()=>t===2||t===3&&(n.value>0||o.value.length>0));function u(d){const m=r.value.findIndex(f=>f.id===d);return[m,r.value[m]]}return{list:r,curVotedList:o,cacheVotedList:i,isVotedWithLimit:a,voteCount:n,isForceHideResult:l,isForceShowResult:p,votedCount:s,findVoteById:u}}const vD=()=>({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)}),wD=()=>({"to-show":()=>!0,"to-hide":()=>!0,"show-entrance":H()}),bD=e=>{var v,y,_,C,x,S,L;const{props:t,emit:r}=e,{getEmitter:o}=kr(),{voteTarget:i={}}=t,a=gD({resultShowType:t.resultShowType}),n=hD({voteTarget:i,state:a,onShowEntrance:k=>r("show-entrance",k)}),{updateVotedList:s,onVoteStart:l,onVoteStop:p,onVoteResult:u,onVoteDeleteAll:d,onVoteDelete:m,onVoteChangeOrder:f}=mD({state:a,onShow:()=>r("to-show"),onGetVoteList:()=>n.getVoteList()});function w(){o().emit(zs.OpenVoteRule)}function h(k){if(a.curVotedList.value.indexOf(k)!==-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 xI(i.eventEmitter,{[(v=i.VoteEvent)==null?void 0:v.UpdateVotedList]:s,[(y=i.VoteEvent)==null?void 0:y.Start]:l,[(_=i.VoteEvent)==null?void 0:_.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,[(L=i.VoteEvent)==null?void 0:L.UpdateVoteOrder]:f}),c.onMounted(()=>{t.voteTarget&&b()}),c.watch(()=>t.voteTarget,k=>{k&&b()},{immediate:!0}),c.watch(()=>t.voteList,k=>{k!=null&&(a.list.value=[...k])},{immediate:!0,deep:!0}),{list:a.list,curVotedList:a.curVotedList,handleToVote:n.toVote,handleRule:w,isItemClickable:h}},_D=c.defineComponent({__name:"vote-list",props:vD(),emits:wD(),setup(e,{emit:t}){const r=e,{$t:o}=Dr(),{list:i,curVotedList:a,handleToVote:n,handleRule:s,isItemClickable:l}=bD({props:r,emit:t});return{__sfc:!0,$t:o,props:r,emit:t,list:i,curVotedList:a,handleToVote:n,handleRule:s,isItemClickable:l,PwcEmpty:Yi,VoteItemSingle:lD,VoteItemDouble:fD}}});var yD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{staticClass:"plv-iar-vote"},[o.list.length?r("div",{staticClass:"plv-iar-vote__container"},[t.showHeader?r("div",{staticClass:"plv-iar-vote__container__header"},[r("span",[t._v(t._s(o.$t("vote.option")))]),o.props.showRule?r("span",{class:{"plv-iar-vote__container__header__rule--no-pointer":o.props.voteList&&o.props.voteList.length>0},on:{click:o.handleRule}},[t._v(t._s(o.$t("vote.rule")))]):t._e()]):t._e(),r("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(o.list,function(i){return r(t.layout==="single"?o.VoteItemSingle:o.VoteItemDouble,{key:i.id,tag:"component",attrs:{"vote-data":i,"voted-list":o.curVotedList,clickable:o.isItemClickable(i.id),"has-vote-list":!!(o.props.voteList&&o.props.voteList.length>0)},on:{"to-vote":o.handleToVote}})}),1)]):r("div",{staticClass:"plv-iar-vote__no-data"},[r(o.PwcEmpty)],1)])},xD=[],CD=ho(_D,yD,xD,!1,null,null);const SD=CD.exports,kD=c.defineComponent({__name:"vote-list-popup",props:jz(),setup(e,{expose:t}){const r=e,{$t:o}=Dr(),i=c.ref(),{instance:a,visible:n,popupRef:s,handleToRule:l}=Uz({voteListRef:i});return t(a),{__sfc:!0,props:r,$t:o,voteListRef:i,instance:a,visible:n,popupRef:s,handleToRule:l,PwcPopup:_t,VoteListComponent:SD}}});var LD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r(o.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-list-popup",attrs:{title:o.$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?r("span",{staticClass:"plv-iar-vote-list-popup__rule",on:{click:o.handleToRule}},[t._v(" "+t._s(o.$t("vote.rule"))+" ")]):t._e()]},proxy:!0}]),model:{value:o.visible,callback:function(i){o.visible=i},expression:"visible"}},[r("div",{staticClass:"plv-iar-vote-list-popup__content"},[r(o.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":o.handleToRule}})],1)])},PD=[],TD=ho(kD,LD,PD,!1,null,null);return TD.exports});console.log("%c@polyv/iar-vote-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0-rc-20260312.1]","[buildTime: 2026-03-11 10:13:18]");
1007
+ }`}],staticClass:"pwc-table-body-cell__content"},[e._v(" "+e._s(r.cellText)+" ")])],2)},OM=[],RM=$(zM,DM,OM);const VM=RM.exports,BM=e=>{const{rowIndex:t,rowData:r,renderRowKey:o}=e,{tableProps:i,allColumnList:a}=ze(),{hoverStatus:n}=ui(),s=c.computed(()=>a.value.find(u=>u.columnProps.type==="expand")),l=c.computed(()=>{const u=[];if(i.rowClassName){const d=_d(i.rowClassName,{rowIndex:t.value,rowData:r.value});u.push(...d)}return i.hoverRow&&n.value.rowIndex===t.value&&u.push("is-hover-row"),s.value&&s.value.getExpandVisible(o.value)&&u.push("is-expanded-row"),u}),p=c.computed(()=>{const u={};if(i.rowStyle){const d=yd(i.rowStyle,{rowIndex:t.value,rowData:r.value});Object.assign(u,d)}return u});return{rowClass:l,rowStyle:p}},$M=c.defineComponent({__name:"table-body-row",props:gd(),setup(e){const t=e,{leftColumnListInstance:r,centerColumnListInstance:o,rightColumnListInstance:i}=ze(),{columnList:a}=r,{columnList:n}=o,{columnList:s}=i,l=oM({props:t}),{rowClass:p,rowStyle:u}=BM(l);return{__sfc:!0,props:t,leftColumnListInstance:r,centerColumnListInstance:o,rightColumnListInstance:i,leftColumnList:a,centerColumnList:n,rightColumnList:s,rowResult:l,rowClass:p,rowStyle:u,TableBodyCell:VM}}});var FM=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("tr",{staticClass:"pwc-table-row",class:r.rowClass,style:r.rowStyle},[e._l(r.leftColumnList,function(o){return t(r.TableBodyCell,{key:`left-column-${o.columnId}`,attrs:{column:o}})}),e._l(r.centerColumnList,function(o){return t(r.TableBodyCell,{key:`center-column-${o.columnId}`,attrs:{column:o}})}),e._l(r.rightColumnList,function(o){return t(r.TableBodyCell,{key:`right-column-${o.columnId}`,attrs:{column:o}})})],2)},jM=[],UM=$($M,FM,jM);const WM=UM.exports,HM=c.defineComponent({__name:"table-body-row-expand",props:gd(),setup(e){const t=e,{allColumnList:r,wrapWidth:o}=ze(),i=c.computed(()=>r.value.find(n=>n.columnProps.type==="expand"));function a(){if(i.value)return i.value.getCellRenderSlot({rowData:t.rowData,rowIndex:t.rowIndex,columnIndex:i.value.getColumnIndex(),cellData:null})}return{__sfc:!0,props:t,allColumnList:r,wrapWidth:o,expandColumn:i,expandColumnRenderSlotFunc:a,renderSlot:Qt}}});var ZM=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.expandColumn&&r.expandColumn.canShowExpand({rowData:e.rowData,rowIndex:e.rowIndex})&&r.expandColumn.getExpandVisible(r.props.renderRowKey)?t("tr",{staticClass:"pwc-table-row-expand"},[t("td",{staticClass:"pwc-table-row-expand__cell",attrs:{colspan:r.allColumnList.length}},[t(r.renderSlot,{staticClass:"pwc-table-row-expand__cell__content",style:{width:`${r.wrapWidth}px`},attrs:{"slot-func":r.expandColumnRenderSlotFunc}})],1)]):e._e()},qM=[],YM=$(HM,ZM,qM);const GM=YM.exports,XM=c.defineComponent({__name:"table-body",setup(e){const{allColumnWidth:t,tableProps:r,wrapWidth:o}=ze(),{bodyWrapRef:i,bodyRef:a}=pi(),{renderData:n,isEmptyData:s}=ya(),{getRenderRowKey:l}=Ms(),p=c.computed(()=>{const u={};return r.height&&(u.height=`${r.height}px`),r.maxHeight&&(u.maxHeight=`${r.maxHeight}px`),u});return{__sfc:!0,allColumnWidth:t,tableProps:r,wrapWidth:o,bodyWrapRef:i,bodyRef:a,renderData:n,isEmptyData:s,getRenderRowKey:l,bodyWrapStyle:p,TableColgroup:hd,TableBodyRow:WM,TableBodyRowExpand:GM,PwcEmpty:Yi}}});var KM=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"bodyWrapRef",staticClass:"pwc-table-body-wrap",style:r.bodyWrapStyle},[r.isEmptyData?t("div",{staticClass:"pwc-table-body__empty",style:{width:`${r.wrapWidth}px`}},[t(r.PwcEmpty,{attrs:{type:"box"}})],1):e._e(),t("table",{ref:"bodyRef",staticClass:"pwc-table-body",style:{width:`${r.allColumnWidth}px`},attrs:{cellpadding:"0",cellspacing:"0",border:"0"}},[t(r.TableColgroup),e._l(r.renderData,function(o,i){return[t(r.TableBodyRow,{attrs:{"render-row-key":r.getRenderRowKey(o,i),"row-data":o,"row-index":i}}),t(r.TableBodyRowExpand,{attrs:{"render-row-key":r.getRenderRowKey(o,i),"row-data":o,"row-index":i}})]})],2)])},JM=[],NM=$(XM,KM,JM);const eA=NM.exports,tA=["multiple","single","index","operation","tags","expand"],rA=["left","right"],oA=["left","center","right"],iA=c.defineComponent({__name:"table-fixed-shadow",props:{position:g.oneOf(oA).isRequired},setup(e){const t=e,{leftColumnListInstance:r,rightColumnListInstance:o}=ze(),{scrollXPosition:i,hasHorizontalScroll:a}=Is(),{headerWrapSize:n,bodyWrapSize:s}=pi(),{isEmptyData:l}=ya(),p=c.computed(()=>{if(l.value)return!0;switch(t.position){case"left":return r.columnWidthTotal.value===0||i.value==="start";case"right":return o.columnWidthTotal.value===0||i.value==="end"}return!1}),u=c.computed(()=>{const d={height:`${n.value.height+s.value.height}px`};return t.position==="left"?d.left=`${r.columnWidthTotal.value}px`:d.right=`${o.columnWidthTotal.value}px`,d});return{__sfc:!0,props:t,leftColumnListInstance:r,rightColumnListInstance:o,scrollXPosition:i,hasHorizontalScroll:a,headerWrapSize:n,bodyWrapSize:s,isEmptyData:l,shadowHidden:p,shadowStyle:u}}});var aA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return!r.shadowHidden&&r.hasHorizontalScroll?t("div",{staticClass:"pwc-table-fixed-shadow",class:{"is-left":e.position==="left","is-right":e.position==="right"},style:r.shadowStyle}):e._e()},nA=[],sA=$(iA,aA,nA);const lA=sA.exports,cA=()=>({column:g.object().isRequired}),xd=Symbol("table-header-cell-inject-key"),pA=e=>{const{props:t}=e,r=c.ref();return c.provide(xd,{headerCellRef:r,column:t.column}),{headerCellRef:r,column:t.column}},Cd=()=>c.inject(xd),uA=c.defineComponent({__name:"header-cell-multiple",setup(e){const{renderData:t}=ya(),{column:r}=Cd(),{inModelValue:o,multipleIsDisabled:i,removeModelValue:a,getColumnModelValue:n,deleteRowData:s}=wd(r),l=c.computed(()=>{const d=t.value;for(let m=0;m<d.length;m++){const f=d[m];if(o(f))return!0}return!1}),p=c.computed(()=>{const d=t.value;for(let m=0;m<d.length;m++){const f=d[m];if(!o(f)&&!i(f,m))return!1}return!0});function u(){const d=t.value,m=n();if(p.value)for(let f=0;f<d.length;f++){const w=d[f];o(w)&&!i(w,f)&&s(m,w)}else for(let f=0;f<d.length&&!(m.length>=r.columnProps.multipleMax);f++){const w=d[f];!o(w)&&!i(w,f)&&m.push(w)}r.updateModelValue([...m])}return{__sfc:!0,renderData:t,column:r,inModelValue:o,multipleIsDisabled:i,removeModelValue:a,getColumnModelValue:n,deleteRowData:s,indeterminate:l,isChecked:p,toggleMultiple:u,PwcCheckbox:Xo}}});var dA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t(r.PwcCheckbox,{attrs:{indeterminate:r.indeterminate,checked:r.isChecked},on:{change:r.toggleMultiple}})},fA=[],mA=$(uA,dA,fA);const hA=mA.exports,gA=c.defineComponent({__name:"header-cell-sort",setup(e){const{tableSortOrder:t}=ui(),{column:r,headerCellRef:o}=Cd(),i=c.computed(()=>r.isCurrentSort());return ne(o,"click",()=>{const a=r.toggleSortOrder();r.changeSortOrder(a)}),{__sfc:!0,tableSortOrder:t,column:r,headerCellRef:o,isCurrentSort:i}}});var vA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.column.getColumnSortName()?t("div",{staticClass:"pwc-table-header-cell__sort"},[t("div",{staticClass:"pwc-table-header-cell__sort-asc",class:{"is-current":r.isCurrentSort&&r.tableSortOrder==="ascending"},on:{click:function(o){return o.stopPropagation(),r.column.changeSortOrder("ascending")}}}),t("div",{staticClass:"pwc-table-header-cell__sort-desc",class:{"is-current":r.isCurrentSort&&r.tableSortOrder==="descending"},on:{click:function(o){return o.stopPropagation(),r.column.changeSortOrder("descending")}}})]):e._e()},wA=[],bA=$(gA,vA,wA);const _A=bA.exports,yA=e=>{const{column:t}=e,{tableProps:r}=ze();return{headerCellClass:c.computed(()=>{const o=[];switch(t.columnProps.type){case"multiple":o.push("is-multiple-column");break;case"single":o.push("is-single-column");break;case"index":o.push("is-index-column");break;case"operation":o.push("is-operation-column");break}return t.columnProps.sortable&&o.push("is-sortable"),r.highlightSorted&&t.isCurrentSort()&&o.push("is-highlight-sorted"),o})}},xA=c.defineComponent({__name:"table-header-cell",props:cA(),setup(e){const t=e,{$t:r}=ie(),{tableProps:o}=ze(),i=pA({props:t}),{headerCellRef:a}=i,{headerCellClass:n}=yA(i),s=c.computed(()=>{let l="";const p=t.column;return p.columnProps.type==="operation"&&(l=r("table.operation")),p.columnProps.type==="tags"&&(l=r("table.tags")),p.columnProps.type==="index"&&(l=r("table.index")),p.columnProps.type==="single"&&(l=r("table.single")),p.columnProps.title&&(l=p.columnProps.title),l});return{__sfc:!0,props:t,$t:r,tableProps:o,cellResult:i,headerCellRef:a,headerCellClass:n,headerTitle:s,PwcIconQuestionCircleOutline:Fo,vTooltip:yt,renderSlot:Qt,HeaderCellMultiple:hA,HeaderCellSort:_A}}});var CA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("th",{ref:"headerCellRef",staticClass:"pwc-table-header-cell",class:r.headerCellClass,style:X(V({},e.column.getStickyStyle()),{background:r.tableProps.headerBgColor})},[t("div",{staticClass:"pwc-table-header-cell__content"},[e.column.columnProps.type==="multiple"?[t(r.HeaderCellMultiple,{attrs:{column:e.column}})]:e.column.hasSlots("header")?[t(r.renderSlot,{attrs:{"slot-func":e.column.getHeaderRenderSlot}})]:[e._v(" "+e._s(r.headerTitle)+" ")],e.column.columnProps.headerTips?t(r.PwcIconQuestionCircleOutline,{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.column.columnProps.headerTips,expression:"column.columnProps.headerTips"}],staticClass:"pwc-table-header-cell__tips"}):e._e(),e.column.columnProps.sortable?[t(r.HeaderCellSort)]:e._e()],2)])},SA=[],kA=$(xA,CA,SA);const LA=kA.exports,PA=()=>{const{originalColumnListInstance:e}=ze(),t=o=>{const i=[];return o.forEach(a=>{const n=a.getChildrenColumns();i.push(a),n.length>0&&i.push(...t(n))}),i},r=()=>{let o=1;const i=(n,s)=>{s&&(n.level=s.level+1,o<n.level&&(o=n.level));const l=n.getChildrenColumns();if(l.length>0){let p=0;l.forEach(u=>{i(u,n),p+=u.getColSpan()}),n.setColSpan(p)}else n.setColSpan(1)};e.columnList.value.forEach(n=>{n.level=1,i(n,void 0)});const a=[];for(let n=0;n<o;n++)a.push([]);return t(e.columnList.value).forEach(n=>{n.getChildrenColumns().length===0?n.setRowSpan(o-n.level+1):n.setRowSpan(1),a[n.level-1].push(n)}),a};return{headerStructure:c.computed(()=>r())}},TA=c.defineComponent({__name:"table-header",setup(e){const{tableProps:t,allColumnWidth:r}=ze(),{headerWrapRef:o}=pi(),{headerStructure:i}=PA();return{__sfc:!0,tableProps:t,allColumnWidth:r,headerWrapRef:o,headerStructure:i,TableColgroup:hd,TableHeaderCell:LA}}});var EA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"headerWrapRef",staticClass:"pwc-table-header-wrap",class:{"is-sticky":r.tableProps.headerSticky},style:{background:r.tableProps.headerBgColor}},[t("table",{staticClass:"pwc-table-header",style:{width:`${r.allColumnWidth}px`},attrs:{cellpadding:"0",cellspacing:"0",border:"0"}},[t(r.TableColgroup),t("thead",e._l(r.headerStructure,function(o,i){return t("tr",{key:`header-row-${i}`,staticClass:"pwc-table-header__row"},e._l(o,function(a){return t(r.TableHeaderCell,{key:`header-column-${a.columnId}`,attrs:{column:a,rowspan:a.getRowSpan(),colspan:a.getColSpan()}})}),1)}),0)],1)])},QA=[],IA=$(TA,EA,QA);const MA=IA.exports,AA=c.defineComponent({__name:"horizontal-scrollbar",setup(e){const{allColumnWidth:t}=ze(),{horizontalScrollbarRef:r,bodyWrapSize:o}=pi(),{hasHorizontalScroll:i}=Is();return{__sfc:!0,allColumnWidth:t,horizontalScrollbarRef:r,bodyWrapSize:o,hasHorizontalScroll:i}}});var zA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.hasHorizontalScroll?t("div",{staticClass:"pwc-table-horizontal-scrollbar"},[t("div",{ref:"horizontalScrollbarRef",staticClass:"pwc-table-horizontal-scrollbar__container",style:{width:`${r.bodyWrapSize.width}px`}},[t("div",{style:{width:`${r.allColumnWidth}px`}})])]):e._e()},DA=[],OA=$(AA,zA,DA);const RA=OA.exports,VA=c.defineComponent({__name:"vertical-scrollbar",setup(e){const{headerWrapSize:t,bodyWrapSize:r,bodySize:o,verticalScrollbarRef:i}=pi(),{tableProps:a}=ze(),{hasVerticalScroll:n}=Is(),s=c.computed(()=>({height:`${t.value.height+r.value.height}px`}));return{__sfc:!0,headerWrapSize:t,bodyWrapSize:r,bodySize:o,verticalScrollbarRef:i,tableProps:a,hasVerticalScroll:n,verticalScrollbarStyle:s}}});var BA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.hasVerticalScroll?t("div",{staticClass:"pwc-table-vertical-scrollbar",style:r.verticalScrollbarStyle},[t("div",{staticClass:"pwc-table-vertical-scrollbar__header",style:{background:r.tableProps.headerBgColor,height:`${r.headerWrapSize.height}px`}}),t("div",{staticClass:"pwc-table-vertical-scrollbar__body"},[t("div",{ref:"verticalScrollbarRef",staticClass:"pwc-table-vertical-scrollbar__container"},[t("div",{style:{height:`${r.bodySize.height}px`}})])])]):e._e()},$A=[],FA=$(VA,BA,$A);const jA=FA.exports,UA=c.defineComponent({__name:"table-pagination",setup(e){const{tableEmit:t,tableProps:r}=ze(),{paginationModelValue:o}=pd(),i=c.computed(()=>{const n={hideOnSinglePage:!0};return typeof r.pagination=="boolean"?n:V(V({},n),r.pagination)});function a(n){t("page-change",n)}return{__sfc:!0,tableEmit:t,tableProps:r,paginationModelValue:o,paginationProps:i,onPaginationChange:a,PwcPagination:Au}}});var WA=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t(r.PwcPagination,e._b({staticClass:"pwc-table__pagination",on:{change:r.onPaginationChange},model:{value:r.paginationModelValue,callback:function(o){r.paginationModelValue=o},expression:"paginationModelValue"}},"pwc-pagination",r.paginationProps,!1))},HA=[],ZA=$(UA,WA,HA);const qA=ZA.exports,YA=()=>({data:g.oneOfType([Object,Array]).def([]),headerHeight:g.number.def(48),headerBgColor:g.looseString,headerSticky:g.bool.def(!1),footerSticky:g.bool.def(!1),footerBgColor:g.looseString,height:g.looseNumber,maxHeight:g.looseNumber,flexHeight:g.bool.def(!1),hoverRow:g.bool.def(!0),hoverColumn:g.bool.def(!1),rowKey:g.oneOfType([String,Function]),rowClassName:g.oneOfType([Function,Array,String]),rowStyle:g.oneOfType([Function,Object]),cellClassName:g.oneOfType([Function,Array,String]),cellStyle:g.oneOfType([Function,Object]),pagination:g.oneOfType([Object,Boolean]).def(!1),sort:g.object(),highlightSorted:g.bool.def(!0),border:g.bool.def(!1)}),GA=()=>({"page-change":H(),"sort-change":H()}),XA=()=>({[g.modelValueKey]:g.any,type:g.oneOf(tA),title:g.looseString,prop:g.looseString,width:g.oneOfType([Number,String]),minWidth:g.oneOfType([Number,String]),fixed:g.oneOf(rA),multipleMax:g.number.def(1/0),multipleDisabled:g.func(),singleDisabled:g.func(),headerTips:g.string,sortable:g.bool.def(!1),sortName:g.looseString,ellipsis:g.bool.def(!1),formatter:g.oneOfType([Object,Function,String]),showExpand:g.func(),emptyText:g.oneOfType([String,Boolean]).def(!1)}),KA=()=>V({},me()),JA=e=>{const{props:t}=e,r=zg();return{footerClass:c.computed(()=>{const o=[];return t.footerSticky&&o.push("is-sticky"),r&&o.push("is-in-popup"),o})}},NA=c.defineComponent({__name:"table",props:YA(),emits:GA(),setup(e,{emit:t}){const r=e,{wrapRef:o,hasHorizontalScroll:i,hasVerticalScroll:a}=JI({props:r,emit:t}),{footerClass:n}=JA({props:r});return{__sfc:!0,props:r,emit:t,wrapRef:o,hasHorizontalScroll:i,hasVerticalScroll:a,footerClass:n,TableBody:eA,TableFixedShadow:lA,TableHeader:MA,HorizontalScrollbar:RA,VerticalScrollbar:jA,TablePagination:qA}}});var ez=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"wrapRef",staticClass:"pwc-table",class:{"is-border-table":e.border,"is-flex-height":e.flexHeight,"has-horizontal-scroll":r.hasHorizontalScroll,"has-vertical-scroll":r.hasVerticalScroll}},[t("div",{staticClass:"pwc-table__hidden-column"},[e._t("default")],2),t("div",{staticClass:"pwc-table__content"},[t("div",{staticClass:"pwc-table__inner"},[t(r.TableHeader),t(r.TableBody),t(r.TableFixedShadow,{attrs:{position:"left"}}),t(r.TableFixedShadow,{attrs:{position:"right"}})],1),t(r.HorizontalScrollbar),t(r.VerticalScrollbar)],1),e.pagination?t("div",{staticClass:"pwc-table__footer",class:r.footerClass},[e.pagination?t(r.TablePagination):e._e()],1):e._e()])},tz=[],rz=$(NA,ez,tz);const oz=rz.exports,Sd=Symbol("COLUMN_CHILDREN_PROVIDE_KEY");function kd(e){const t=c.ref(e);function r(i){t.value=i}function o(){return t.value}return{target:t,set:r,get:o}}const iz=e=>{const t=c.ref([]);function r(p){t.value.push(p)}e.addChildrenColumn=r;function o(){return t.value}e.getChildrenColumns=o;const{set:i,get:a}=kd(0);e.setColSpan=i,e.getColSpan=a;const{set:n,get:s}=kd(0);e.setRowSpan=n,e.getRowSpan=s,c.provide(Sd,{addChildrenColumn:r,getChildrenColumns:o,level:1,setColSpan:i,getColSpan:a,setRowSpan:n,getRowSpan:s});const l=c.inject(Sd,void 0);return l&&l.addChildrenColumn(e),{childrenColumnList:t,isChildrenColmn:!!l}},az=e=>{const t=c.ref(-1);function r(i){t.value=i}function o(){return t.value}return e.setColumnIndex=r,e.getColumnIndex=o,{setColumnIndex:r,getColumnIndex:o}},nz=e=>{const t=c.useSlots();function r(s){return!!t[s]}function o(){return{renderWidth:e.getRenderWidth(),columnIndex:e.getColumnIndex()}}function i(){if(t.header)return t.header(o())}function a(s){return s||{rowData:{},rowIndex:-1,columnIndex:-1,cellData:void 0}}function n(s){if(t.default)return t.default(s)}return e.hasSlots=r,e.getHeaderRenderSlot=i,e.getCellRenderSlot=n,{hasSlots:r,getHeaderSlotData:o,getCellSlotData:a}},sz=e=>{const{columnProps:t}=e,{isEmptyData:r}=ya(),o=c.computed(()=>r.value?!1:t.fixed==="left"||t.fixed==="right");function i(){return o.value}const a=c.ref(-1);function n(l){a.value=l}function s(){const l={};if(o.value&&a.value!==-1){switch(t.fixed){case"left":l.left=`${a.value}px`;break;case"right":l.right=`${a.value}px`;break}l.position="sticky",l.zIndex="3"}return l}return e.getStickyStatus=i,e.setStickyPosition=n,e.getStickyStyle=s,{getStickyStatus:i,setStickyPosition:n,getStickyStyle:s}},lz=e=>{const t=c.ref(100);function r(i){t.value=i}function o(){return t.value}return e.setRenderWidth=r,e.getRenderWidth=o,{setRenderWidth:r,getRenderWidth:o}},cz=e=>{const{columnProps:t}=e,{tableSortName:r,tableSortOrder:o}=ui(),{tableEmit:i}=ze(),a=c.computed(()=>t.sortName||t.prop);function n(){return a.value}e.getColumnSortName=n;function s(){return r.value===a.value&&!!a.value}e.isCurrentSort=s;function l(d){if(a.value&&!(r.value===a.value&&o.value===d)){if(!d){i("sort-change",void 0);return}i("sort-change",{sortName:a.value,sortOrder:d})}}e.changeSortOrder=l;const p=["ascending","descending",void 0];function u(){if(!o.value)return p[0];if(r.value!==a.value)return o.value;const d=p.indexOf(o.value);return p[d+1>p.length?0:d+1]}e.toggleSortOrder=u},pz=e=>{const t=c.ref({});function r(){return e.hasSlots("default")}function o(s){return r()?e.columnProps.showExpand?e.columnProps.showExpand(s):!0:!1}function i(s){const l=!t.value[s];t.value=X(V({},t.value),{[s]:l})}function a(s){var l;return(l=t.value[s])!=null?l:!1}function n(s){delete t.value[s]}return e.hasExpandSlot=r,e.canShowExpand=o,e.getExpandVisible=a,e.toggleExpand=i,e.removeExpandRecord=n,{hasExpandSlot:r,getExpandVisible:a,toggleExpand:i}},uz=e=>{const{props:t}=e,{centerColumnListInstance:r,leftColumnListInstance:o,rightColumnListInstance:i,originalColumnListInstance:a}=ze(),{getModelValue:n,updateModelValue:s}=de(t),l={columnId:jt(8),columnProps:t,getModelValue:n,updateModelValue:s};lz(l),az(l),sz(l),cz(l);const{getHeaderSlotData:p,getCellSlotData:u}=nz(l);pz(l);const{childrenColumnList:d,isChildrenColmn:m}=iz(l);return c.onMounted(()=>{if(m||a.addColumn(l),d.value.length===0)switch(t.fixed){case"left":o.addColumn(l);break;case"right":i.addColumn(l);break;default:r.addColumn(l);break}}),c.onBeforeUnmount(()=>{if(d.value.length===0)switch(t.fixed){case"left":o.removeColumn(l);break;case"right":i.removeColumn(l);break;default:r.removeColumn(l);break}}),{getHeaderSlotData:p,getCellSlotData:u}},dz=c.defineComponent({__name:"table-column",props:XA(),emits:KA(),setup(e){const t=e,{getCellSlotData:r,getHeaderSlotData:o}=uz({props:t});return{__sfc:!0,props:t,getCellSlotData:r,getHeaderSlotData:o}}});var fz=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"pwc-table-column"},[e._e(),e._e(),e._t("column")],2)},mz=[],hz=$(dz,fz,mz);const gz=hz.exports;N("PwcTable",oz),N("PwcTableColumn",gz);const vz=["line","rounded","text"],wz=()=>({[g.modelValueKey]:g.oneOfType([String,Number,Symbol]),type:g.oneOf(vz).def("line"),expand:g.bool.def(!1),lazyLoad:g.bool.def(!1)}),bz=()=>X(V({},me()),{change:H()}),_z=()=>({name:g.oneOfType([String,Number]),extra:g.looseString,disabled:g.bool.def(!1),title:g.looseString,lazyLoad:g.looseBool}),As=Symbol("tabs-inject-key"),yz=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:t,tabsProps:r,setCurrentTab:o}=c.inject(As),{$t:i}=ie(),a=c.ref(),n=c.ref(!1),{visible:s,toggle:l}=Dt();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||o(d.getPaneName())}return{__sfc:!0,tabPanes:t,tabsProps:r,setCurrentTab:o,$t:i,listRef:a,isMoreItem:n,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:Bo,PwcIconUp:m1,renderSlot:Qt}}});var xz=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-nav",class:[`is-type-${r.tabsProps.type}`]},[t("div",{ref:"listRef",staticClass:"pwc-tab-nav__list",class:{"is-hide":r.tabsProps.expand&&!r.isExpanded}},e._l(r.tabPanes,function(o){return t("div",{key:o.paneId,staticClass:"pwc-tab-nav__item",class:{"is-active":o.getIsActive(),"is-disabled":o.paneProps.disabled},on:{click:function(i){return r.onClickItem(o)}}},[o.hasSlot("title")?t(r.renderSlot,{staticClass:"pwc-tab-nav__item__title",attrs:{"slot-func":o.getTitleRenderSlot}}):t("span",[e._v(e._s(o.paneProps.title))]),o.hasSlot("extra")?t(r.renderSlot,{staticClass:"pwc-tab-nav__item__extra",attrs:{"slot-func":o.getExtraRenderSlot}}):e._e(),o.paneProps.extra?t("span",{staticClass:"pwc-tab-nav__item__extra"},[e._v(" "+e._s(o.paneProps.extra)+" ")]):e._e()],1)}),0),t("div",{staticClass:"pwc-tab-nav__right"},[r.tabsProps.expand&&r.isMoreItem?t("div",{staticClass:"pwc-tab-nav__expand",on:{click:r.toggle}},[t("span",[e._v(e._s(r.isExpanded?r.$t("tabs.collapse"):r.$t("tabs.more")))]),r.isExpanded?t(r.PwcIconUp):t(r.PwcIconDown)],1):e._e()])])},Cz=[],Sz=$(yz,xz,Cz);const kz=Sz.exports,Lz=c.defineComponent({__name:"tabs",props:wz(),emits:bz(),setup(e,{emit:t}){const r=e,o=c.ref(),i=c.ref(),{modelValue:a,updateModelValue:n}=de(r,{outSideUpdate:w=>{o.value=w}}),s=c.ref([]);function l(w){if(!s.value.includes(w)){if(typeof o.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){o.value!==w&&(o.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(()=>o.value,()=>{m()});const f={tabsProps:r,currentTab:o,tabPanes:s,setCurrentTab:u,addTabPane:l,removeTabPane:p};return c.provide(As,f),{__sfc:!0,props:r,emits:t,currentTab:o,tabsRef:i,modelValue:a,updateModelValue:n,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:kz}}});var Pz=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"tabsRef",staticClass:"pwc-tabs"},[t(r.TabNav),t("div",{staticClass:"pwc-tabs__content"},[t("div",{staticClass:"pwc-tabs__list",style:{marginLeft:`-${r.offsetPercent}%`}},[e._t("default")],2)])],1)},Tz=[],Ez=$(Lz,Pz,Tz);const Qz=Ez.exports,Iz=c.defineComponent({__name:"tab-pane",props:_z(),setup(e){const t=e,r=jt(8),o=c.inject(As),{hasSlot:i,slotRender:a}=Ee(),n=c.computed(()=>t.name||r),s=c.computed(()=>o.currentTab.value===n.value);function l(){return a("title",{isActive:s.value})}const p=c.computed(()=>{var f;return(f=t.lazyLoad)!=null?f:o.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:r,paneProps:t,getPaneName:()=>n.value,getIsActive:()=>s.value,hasSlot:i,getTitleRenderSlot:l,getExtraRenderSlot:()=>a("extra")};return c.onBeforeMount(()=>{o.addTabPane(m)}),{__sfc:!0,props:t,paneId:r,tabsInject:o,hasSlot:i,slotRender:a,tabPaneName:n,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var Mz=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-pane",class:{"is-active":r.isActive},attrs:{"data-pane-name":r.tabPaneName,"data-is-active":r.isActive}},[r.canRender?t("div",{staticClass:"pwc-tab-pane__content"},[e._t("default")],2):e._e()])},Az=[],zz=$(Iz,Mz,Az);const Dz=zz.exports;N("PwcTabs",Qz),N("PwcTabPane",Dz);const Oz={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"}}},Rz={vote:{option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}}},Vz={vote:{option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}}},Bz={vote:{option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}}},$z={vote:{option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},Fz={vote:{option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},{useI18n:Dr}=k1({zh_CN:$z,zh_TW:Fz,en:Oz,ja:Rz,ko:Vz,ru:Bz}),zs={OpenVote:"OpenVote",OpenVoteRule:"OpenVoteRule"},jz=()=>({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)}),Uz=e=>{const{voteListRef:t}=e,r=c.ref(!1),o=c.ref(),{getEmitter:i}=kr();function a(){r.value=!0,c.nextTick(()=>{o.value&&o.value.resetScroll()})}c.watch(r,p=>{p&&c.nextTick(()=>{var u;(u=t==null?void 0:t.value)!=null&&u.recalculateGridRowEnds&&t.value.recalculateGridRowEnds()})});function n(){r.value=!1}function s(){i().emit(zs.OpenVoteRule)}return Lr(zs.OpenVote,a),{instance:{open:a,close:n},visible:r,popupRef:o,handleToRule:s}},Wz=()=>({status:g.oneOf(["Y","N"]).def("Y"),isVoted:g.bool.isRequired,disabled:g.bool.def(!1),hasVoteList:g.bool.def(!1)}),Hz=()=>({click:H()}),Zz=e=>{const{props:t,emit:r}=e,{$t:o}=Dr(),i=c.computed(()=>t.isVoted?"voted":t.status==="N"?"not-voted":t.disabled?"disabled":"vote"),a={vote:o("vote.button.vote"),voted:o("vote.button.voted"),"not-voted":o("vote.button.notVoted"),disabled:o("vote.button.vote")},n=c.computed(()=>a[i.value]);function s(){i.value==="vote"&&r("click")}return{buttonType:i,buttonText:n,handleClick:s}},qz=c.defineComponent({__name:"vote-button",props:Wz(),emits:Hz(),setup(e,{emit:t}){const r=e,{buttonType:o,buttonText:i,handleClick:a}=Zz({props:r,emit:t});return{__sfc:!0,props:r,emit:t,buttonType:o,buttonText:i,handleClick:a,PwcButton:rt}}});function ho(e,t,r,o,i,a,n,s){var l=typeof e=="function"?e.options:e;return t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),a&&(l._scopeId="data-v-"+a),{exports:e,options:l}}var Yz=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{staticClass:"plv-iar-vote-button",class:{"plv-iar-vote-button--no-pointer":o.props.hasVoteList}},[o.buttonType==="vote"?r(o.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:o.props.disabled},on:{click:o.handleClick}},[t._v(" "+t._s(o.buttonText)+" ")]):o.buttonType==="not-voted"||o.buttonType==="disabled"?r(o.PwcButton,{staticClass:"plv-iar-vote-button__btn",attrs:{size:"mini",disabled:""}},[t._v(" "+t._s(o.buttonText)+" ")]):r(o.PwcButton,{staticClass:"plv-iar-vote-button__text",attrs:{size:"mini",disabled:o.props.status==="N"||o.props.disabled}},[t._v(" "+t._s(o.buttonText)+" ")])],1)},Gz=[],Xz=ho(qz,Yz,Gz,!1,null,"6ba928d5");const Ld=Xz.exports,Kz=()=>({status:g.oneOf(["Y","N"]).def("Y")}),Jz=()=>({}),Nz=e=>{const{props:t}=e,{$t:r}=Dr();return{statusText:c.computed(()=>t.status==="Y"?r("vote.status.voting"):r("vote.status.ended"))}},eD=c.defineComponent({__name:"vote-status",props:Kz(),emits:Jz(),setup(e,{emit:t}){const r=e,{statusText:o}=Nz({props:r});return{__sfc:!0,props:r,emit:t,statusText:o}}});var tD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("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(o.statusText)+" ")])},rD=[],oD=ho(eD,tD,rD,!1,null,"c99114e4");const Pd=oD.exports,Td=()=>({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)}),Ed=()=>({"to-vote":H()}),Qd=e=>{const{props:t,emit:r,itemRef:o}=e,i=c.ref({gridRowEnd:"auto"}),a=c.computed(()=>t.votedList.includes(t.voteData.id)),n=c.computed(()=>!t.clickable);function s(){n.value||r("to-vote",t.voteData.id)}return{isVoted:a,isDisabled:n,gridRowEndStyle:i,handleVote:s}},iD=c.defineComponent({__name:"vote-item-single",props:Td(),emits:Ed(),setup(e,{emit:t}){const r=e,{$t:o}=Dr(),{isVoted:i,isDisabled:a,handleVote:n}=Qd({props:r,emit:t});return{__sfc:!0,$t:o,props:r,emit:t,isVoted:i,isDisabled:a,handleVote:n,VoteButton:Ld,VoteStatus:Pd}}});var aD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("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?[r("div",{staticClass:"plv-iar-vote-list-item-bg"},[r("div",{staticClass:"plv-iar-vote-list-item-bg-image",style:{backgroundImage:`url(${t.voteData.voteCoverImage})`}}),r("div",{staticClass:"plv-iar-vote-list-item-bg-mask"})])]:t._e(),r("div",{staticClass:"plv-iar-vote-list-item-content"},[r("div",{staticClass:"plv-iar-vote-list-item-content-info"},[r("div",{staticClass:"plv-iar-vote-list-item-content-info-left-top"},[t.voteData.status?r(o.VoteStatus,{staticClass:"plv-iar-vote-list-item-content-info-left-top-item",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?r("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(o.$t("vote.count"))+" ")]):t._e()],1),r("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[t._v(t._s(t.voteData.name))])]),r(o.VoteButton,{attrs:{status:t.voteData.status,"is-voted":o.isVoted,disabled:o.isDisabled,"has-vote-list":o.props.hasVoteList},on:{click:o.handleVote}})],1)],2)},nD=[],sD=ho(iD,aD,nD,!1,null,"d0e638ec");const lD=sD.exports,cD=c.defineComponent({__name:"vote-item-double",props:Td(),emits:Ed(),setup(e,{expose:t,emit:r}){const o=e,{$t:i}=Dr(),a=c.ref(),{isVoted:n,isDisabled:s,gridRowEndStyle:l,handleVote:p}=Qd({props:o,emit:r,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 ul(()=>{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:o,emit:r,itemRef:a,isVoted:n,isDisabled:s,gridRowEndStyle:l,handleVote:p,resizeObserver:u,GAP:d,calculateGridRowEnd:m,setupResizeObserver:f,cleanupResizeObserver:w,VoteButton:Ld,VoteStatus:Pd}}});var pD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{ref:"itemRef",staticClass:"plv-iar-vote-list-item plv-iar-vote-list-item-layout-double",style:o.gridRowEndStyle},[r("div",{staticClass:"plv-iar-vote-list-item-content-container"},[t.voteData.voteCoverImage?[r("div",{staticClass:"plv-iar-vote-list-item-image",style:{backgroundImage:`url(${t.voteData.voteCoverImage})`}},[r("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[t.voteData.status?r(o.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?r("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(o.$t("vote.count"))+" ")]):t._e()],1)])]:t._e(),r("div",{staticClass:"plv-iar-vote-list-item-content"},[r("div",{staticClass:"plv-iar-vote-list-item-content-info"},[t.voteData.voteCoverImage?t._e():r("div",{staticClass:"plv-iar-vote-list-item-info-left-top"},[t.voteData.status?r(o.VoteStatus,{staticClass:"plv-iar-vote-list-item-info-left-top-item",attrs:{status:t.voteData.status}}):t._e(),t.voteData.showVoteCount?r("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(o.$t("vote.count"))+" ")]):t._e()],1),r("div",{staticClass:"plv-iar-vote-list-item-content-info-name"},[t._v(t._s(t.voteData.name))])]),r(o.VoteButton,{attrs:{status:t.voteData.status,"is-voted":o.isVoted,disabled:o.isDisabled,"has-vote-list":o.props.hasVoteList},on:{click:o.handleVote}})],1)],2)])},uD=[],dD=ho(cD,pD,uD,!1,null,"214a02c3");const fD=dD.exports;function mD(e){const{state:t,onShow:r,onGetVoteList:o}=e,{list:i,curVotedList:a,cacheVotedList:n,voteCount:s,isForceHideResult:l,isForceShowResult:p,findVoteById:u}=t;function d(y){a.value=y.curVotedList}function m(y){const _=y.voteData.id,C=u(_)[0];C!==-1&&i.value.splice(C,1);const x=a.value.findIndex(E=>E===_);x!==-1&&a.value.splice(x,1);const S=n.value.findIndex(E=>E===_);S!==-1&&n.value.splice(S,1);const L=y.voteData.voteOrder||0;let k=i.value.length;for(let E=0;E<i.value.length;E++)if((i.value[E].voteOrder||0)>=L){k=E;break}p.value&&(y.voteData.showVoteCount=!0,y.voteData.voteCount=0),i.value.splice(k,0,y.voteData),r()}function f(y){const _=u(y.id)[1];_&&(_.status="N")}function w(y){s.value=y.voteCount,y.list.forEach(_=>{const C=u(_.id)[1];C&&(C.showVoteCount=!l.value,C.voteCount=_.times)})}function h(){i.value.splice(0,i.value.length)}function b(y){const _=u(y.id)[0];_!==-1&&i.value.splice(_,1)}function v(y){const _=Math.floor(Math.random()*3e3);setTimeout(()=>{o()},_)}return{updateVotedList:d,onVoteStart:m,onVoteStop:f,onVoteResult:w,onVoteDeleteAll:h,onVoteDelete:b,onVoteChangeOrder:v}}function hD(e){const{voteTarget:t,state:r,onShowEntrance:o}=e,{list:i,curVotedList:a,cacheVotedList:n,isVotedWithLimit:s,voteCount:l,isForceHideResult:p,findVoteById:u}=r,{toast:d}=zt(),{$t:m}=Dr(),{trackEvent:f}=yI((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&&o(!0);const x=t.getCachedVoteResult();x&&x.forEach(S=>{const L=u(S.id)[1];L&&(L.showVoteCount=!p.value,L.voteCount=S.times)})}})}const b=cn(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)}y()}})}function y(){t&&f({event_id:"click_vote_widget",event_type:"click",spec_attrs:{timestamp:Date.now()}})}function _(){t&&t.interactionCore.getSocket().then(C=>{C&&C.on("connect",()=>{b()})})}return{getVotedList:w,getVoteList:b,toVote:v,setupSocketListener:_}}function gD(e){const{resultShowType:t}=e,r=c.ref([]),o=c.ref([]),i=c.ref([]),a=c.ref(!1),n=c.ref(0),s=c.computed(()=>o.value.length),l=c.computed(()=>t===3&&n.value===0&&i.value.length===0),p=c.computed(()=>t===2||t===3&&(n.value>0||o.value.length>0));function u(d){const m=r.value.findIndex(f=>f.id===d);return[m,r.value[m]]}return{list:r,curVotedList:o,cacheVotedList:i,isVotedWithLimit:a,voteCount:n,isForceHideResult:l,isForceShowResult:p,votedCount:s,findVoteById:u}}const vD=()=>({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)}),wD=()=>({"to-show":()=>!0,"to-hide":()=>!0,"show-entrance":H()}),bD=e=>{var v,y,_,C,x,S,L;const{props:t,emit:r}=e,{getEmitter:o}=kr(),{voteTarget:i={}}=t,a=gD({resultShowType:t.resultShowType}),n=hD({voteTarget:i,state:a,onShowEntrance:k=>r("show-entrance",k)}),{updateVotedList:s,onVoteStart:l,onVoteStop:p,onVoteResult:u,onVoteDeleteAll:d,onVoteDelete:m,onVoteChangeOrder:f}=mD({state:a,onShow:()=>r("to-show"),onGetVoteList:()=>n.getVoteList()});function w(){o().emit(zs.OpenVoteRule)}function h(k){if(a.curVotedList.value.indexOf(k)!==-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 xI(i.eventEmitter,{[(v=i.VoteEvent)==null?void 0:v.UpdateVotedList]:s,[(y=i.VoteEvent)==null?void 0:y.Start]:l,[(_=i.VoteEvent)==null?void 0:_.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,[(L=i.VoteEvent)==null?void 0:L.UpdateVoteOrder]:f}),c.onMounted(()=>{t.voteTarget&&b()}),c.watch(()=>t.voteTarget,k=>{k&&b()},{immediate:!0}),c.watch(()=>t.voteList,k=>{k!=null&&(a.list.value=[...k])},{immediate:!0,deep:!0}),{list:a.list,curVotedList:a.curVotedList,handleToVote:n.toVote,handleRule:w,isItemClickable:h}},_D=c.defineComponent({__name:"vote-list",props:vD(),emits:wD(),setup(e,{emit:t}){const r=e,{$t:o}=Dr(),{list:i,curVotedList:a,handleToVote:n,handleRule:s,isItemClickable:l}=bD({props:r,emit:t});return{__sfc:!0,$t:o,props:r,emit:t,list:i,curVotedList:a,handleToVote:n,handleRule:s,isItemClickable:l,PwcEmpty:Yi,VoteItemSingle:lD,VoteItemDouble:fD}}});var yD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{staticClass:"plv-iar-vote"},[o.list.length?r("div",{staticClass:"plv-iar-vote__container"},[t.showHeader?r("div",{staticClass:"plv-iar-vote__container__header"},[r("span",[t._v(t._s(o.$t("vote.option")))]),o.props.showRule?r("span",{class:{"plv-iar-vote__container__header__rule--no-pointer":o.props.voteList&&o.props.voteList.length>0},on:{click:o.handleRule}},[t._v(t._s(o.$t("vote.rule")))]):t._e()]):t._e(),r("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(o.list,function(i){return r(t.layout==="single"?o.VoteItemSingle:o.VoteItemDouble,{key:i.id,tag:"component",attrs:{"vote-data":i,"voted-list":o.curVotedList,clickable:o.isItemClickable(i.id),"has-vote-list":!!(o.props.voteList&&o.props.voteList.length>0)},on:{"to-vote":o.handleToVote}})}),1)]):r("div",{staticClass:"plv-iar-vote__no-data"},[r(o.PwcEmpty)],1)])},xD=[],CD=ho(_D,yD,xD,!1,null,null);const SD=CD.exports,kD=c.defineComponent({__name:"vote-list-popup",props:jz(),setup(e,{expose:t}){const r=e,{$t:o}=Dr(),i=c.ref(),{instance:a,visible:n,popupRef:s,handleToRule:l}=Uz({voteListRef:i});return t(a),{__sfc:!0,props:r,$t:o,voteListRef:i,instance:a,visible:n,popupRef:s,handleToRule:l,PwcPopup:_t,VoteListComponent:SD}}});var LD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r(o.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-list-popup",attrs:{title:o.$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?r("span",{staticClass:"plv-iar-vote-list-popup__rule",on:{click:o.handleToRule}},[t._v(" "+t._s(o.$t("vote.rule"))+" ")]):t._e()]},proxy:!0}]),model:{value:o.visible,callback:function(i){o.visible=i},expression:"visible"}},[r("div",{staticClass:"plv-iar-vote-list-popup__content"},[r(o.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":o.handleToRule}})],1)])},PD=[],TD=ho(kD,LD,PD,!1,null,null);return TD.exports});console.log("%c@polyv/iar-vote-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0]","[buildTime: 2026-03-13 02:45:07]");