@polyv/iar-coupon-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.
- package/index.cjs.js +1 -1
- package/index.es.js +2 -2
- package/index.umd.js +1 -1
- package/normal-coupon-common-list.cjs.js +1 -1
- package/normal-coupon-common-list.es.js +2 -2
- package/normal-coupon-common-list.umd.js +1 -1
- package/normal-coupon-pendant.cjs.js +1 -1
- package/normal-coupon-pendant.es.js +2 -2
- package/normal-coupon-pendant.umd.js +1 -1
- package/normal-coupon-user-list.cjs.js +1 -1
- package/normal-coupon-user-list.es.js +2 -2
- package/normal-coupon-user-list.umd.js +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -1004,4 +1004,4 @@ ${Ki(r)}`),o}})}function K0(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)},UM=[],WM=V(jM,NM,UM);const HM=WM.exports,ZM=e=>{const{rowIndex:t,rowData:r,renderRowKey:o}=e,{tableProps:i,allColumnList:n}=Me(),{hoverStatus:a}=si(),s=c.computed(()=>n.value.find(u=>u.columnProps.type==="expand")),l=c.computed(()=>{const u=[];if(i.rowClassName){const d=P0(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=T0(i.rowStyle,{rowIndex:t.value,rowData:r.value});Object.assign(u,d)}return u});return{rowClass:l,rowStyle:p}},qM=c.defineComponent({__name:"table-body-row",props:C0(),setup(e){const t=e,{leftColumnListInstance:r,centerColumnListInstance:o,rightColumnListInstance:i}=Me(),{columnList:n}=r,{columnList:a}=o,{columnList:s}=i,l=uM({props:t}),{rowClass:p,rowStyle:u}=ZM(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:HM}}});var YM=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)},GM=[],XM=V(qM,YM,GM);const KM=XM.exports,JM=c.defineComponent({__name:"table-body-row-expand",props:C0(),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:Et}}});var eA=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()},tA=[],rA=V(JM,eA,tA);const oA=rA.exports,iA=c.defineComponent({__name:"table-body",setup(e){const{allColumnWidth:t,tableProps:r,wrapWidth:o}=Me(),{bodyWrapRef:i,bodyRef:n}=ai(),{renderData:a,isEmptyData:s}=hn(),{getRenderRowKey:l}=Qs(),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:x0,TableBodyRow:KM,TableBodyRowExpand:oA,PwcEmpty:ms}}});var nA=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)])},aA=[],sA=V(iA,nA,aA);const lA=sA.exports,cA=["multiple","single","index","operation","tags","expand"],pA=["left","right"],uA=["left","center","right"],dA=c.defineComponent({__name:"table-fixed-shadow",props:{position:w.oneOf(uA).isRequired},setup(e){const t=e,{leftColumnListInstance:r,rightColumnListInstance:o}=Me(),{scrollXPosition:i,hasHorizontalScroll:n}=Ts(),{headerWrapSize:a,bodyWrapSize:s}=ai(),{isEmptyData:l}=hn(),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 fA=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()},mA=[],hA=V(dA,fA,mA);const gA=hA.exports,vA=()=>({column:w.object().isRequired}),Q0=Symbol("table-header-cell-inject-key"),wA=e=>{const{props:t}=e,r=c.ref();return c.provide(Q0,{headerCellRef:r,column:t.column}),{headerCellRef:r,column:t.column}},E0=()=>c.inject(Q0),bA=c.defineComponent({__name:"header-cell-multiple",setup(e){const{renderData:t}=hn(),{column:r}=E0(),{inModelValue:o,multipleIsDisabled:i,removeModelValue:n,getColumnModelValue:a,deleteRowData:s}=k0(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 v=d[f];o(v)&&!i(v,f)&&s(m,v)}else for(let f=0;f<d.length&&!(m.length>=r.columnProps.multipleMax);f++){const v=d[f];!o(v)&&!i(v,f)&&m.push(v)}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:ti}}});var _A=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}})},yA=[],xA=V(bA,_A,yA);const CA=xA.exports,SA=c.defineComponent({__name:"header-cell-sort",setup(e){const{tableSortOrder:t}=si(),{column:r,headerCellRef:o}=E0(),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 kA=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()},LA=[],PA=V(SA,kA,LA);const TA=PA.exports,QA=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})}},EA=c.defineComponent({__name:"table-header-cell",props:vA(),setup(e){const t=e,{$t:r}=ie(),{tableProps:o}=Me(),i=wA({props:t}),{headerCellRef:n}=i,{headerCellClass:a}=QA(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:Ho,vTooltip:yt,renderSlot:Et,HeaderCellMultiple:CA,HeaderCellSort:TA}}});var IA=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(B({},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)])},MA=[],AA=V(EA,IA,MA);const zA=AA.exports,DA=()=>{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())}},OA=c.defineComponent({__name:"table-header",setup(e){const{tableProps:t,allColumnWidth:r}=Me(),{headerWrapRef:o}=ai(),{headerStructure:i}=DA();return{__sfc:!0,tableProps:t,allColumnWidth:r,headerWrapRef:o,headerStructure:i,TableColgroup:x0,TableHeaderCell:zA}}});var RA=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)])},BA=[],$A=V(OA,RA,BA);const VA=$A.exports,FA=c.defineComponent({__name:"horizontal-scrollbar",setup(e){const{allColumnWidth:t}=Me(),{horizontalScrollbarRef:r,bodyWrapSize:o}=ai(),{hasHorizontalScroll:i}=Ts();return{__sfc:!0,allColumnWidth:t,horizontalScrollbarRef:r,bodyWrapSize:o,hasHorizontalScroll:i}}});var jA=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()},NA=[],UA=V(FA,jA,NA);const WA=UA.exports,HA=c.defineComponent({__name:"vertical-scrollbar",setup(e){const{headerWrapSize:t,bodyWrapSize:r,bodySize:o,verticalScrollbarRef:i}=ai(),{tableProps:n}=Me(),{hasVerticalScroll:a}=Ts(),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 ZA=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()},qA=[],YA=V(HA,ZA,qA);const GA=YA.exports,XA=c.defineComponent({__name:"table-pagination",setup(e){const{tableEmit:t,tableProps:r}=Me(),{paginationModelValue:o}=v0(),i=c.computed(()=>{const a={hideOnSinglePage:!0};return typeof r.pagination=="boolean"?a:B(B({},a),r.pagination)});function n(a){t("page-change",a)}return{__sfc:!0,tableEmit:t,tableProps:r,paginationModelValue:o,paginationProps:i,onPaginationChange:n,PwcPagination:Gu}}});var KA=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))},JA=[],ez=V(XA,KA,JA);const tz=ez.exports,rz=()=>({data:w.oneOfType([Object,Array]).def([]),headerHeight:w.number.def(48),headerBgColor:w.looseString,headerSticky:w.bool.def(!1),footerSticky:w.bool.def(!1),footerBgColor:w.looseString,height:w.looseNumber,maxHeight:w.looseNumber,flexHeight:w.bool.def(!1),hoverRow:w.bool.def(!0),hoverColumn:w.bool.def(!1),rowKey:w.oneOfType([String,Function]),rowClassName:w.oneOfType([Function,Array,String]),rowStyle:w.oneOfType([Function,Object]),cellClassName:w.oneOfType([Function,Array,String]),cellStyle:w.oneOfType([Function,Object]),pagination:w.oneOfType([Object,Boolean]).def(!1),sort:w.object(),highlightSorted:w.bool.def(!0),border:w.bool.def(!1)}),oz=()=>({"page-change":W(),"sort-change":W()}),iz=()=>({[w.modelValueKey]:w.any,type:w.oneOf(cA),title:w.looseString,prop:w.looseString,width:w.oneOfType([Number,String]),minWidth:w.oneOfType([Number,String]),fixed:w.oneOf(pA),multipleMax:w.number.def(1/0),multipleDisabled:w.func(),singleDisabled:w.func(),headerTips:w.string,sortable:w.bool.def(!1),sortName:w.looseString,ellipsis:w.bool.def(!1),formatter:w.oneOfType([Object,Function,String]),showExpand:w.func(),emptyText:w.oneOfType([String,Boolean]).def(!1)}),nz=()=>B({},he()),az=e=>{const{props:t}=e,r=$g();return{footerClass:c.computed(()=>{const o=[];return t.footerSticky&&o.push("is-sticky"),r&&o.push("is-in-popup"),o})}},sz=c.defineComponent({__name:"table",props:rz(),emits:oz(),setup(e,{emit:t}){const r=e,{wrapRef:o,hasHorizontalScroll:i,hasVerticalScroll:n}=aM({props:r,emit:t}),{footerClass:a}=az({props:r});return{__sfc:!0,props:r,emit:t,wrapRef:o,hasHorizontalScroll:i,hasVerticalScroll:n,footerClass:a,TableBody:lA,TableFixedShadow:gA,TableHeader:VA,HorizontalScrollbar:WA,VerticalScrollbar:GA,TablePagination:tz}}});var lz=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()])},cz=[],pz=V(sz,lz,cz);const uz=pz.exports,Bc=Symbol("COLUMN_CHILDREN_PROVIDE_KEY");function $c(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 dz=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}=$c(0);e.setColSpan=i,e.getColSpan=n;const{set:a,get:s}=$c(0);e.setRowSpan=a,e.getRowSpan=s,c.provide(Bc,{addChildrenColumn:r,getChildrenColumns:o,level:1,setColSpan:i,getColSpan:n,setRowSpan:a,getRowSpan:s});const l=c.inject(Bc,void 0);return l&&l.addChildrenColumn(e),{childrenColumnList:t,isChildrenColmn:!!l}},fz=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}},mz=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}},hz=e=>{const{columnProps:t}=e,{isEmptyData:r}=hn(),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}},gz=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}},vz=e=>{const{columnProps:t}=e,{tableSortName:r,tableSortOrder:o}=si(),{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},wz=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(B({},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}},bz=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};gz(l),fz(l),hz(l),vz(l);const{getHeaderSlotData:p,getCellSlotData:u}=mz(l);wz(l);const{childrenColumnList:d,isChildrenColmn:m}=dz(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}},_z=c.defineComponent({__name:"table-column",props:iz(),emits:nz(),setup(e){const t=e,{getCellSlotData:r,getHeaderSlotData:o}=bz({props:t});return{__sfc:!0,props:t,getCellSlotData:r,getHeaderSlotData:o}}});var yz=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)},xz=[],Cz=V(_z,yz,xz);const Sz=Cz.exports;ee("PwcTable",uz);ee("PwcTableColumn",Sz);const kz=["line","rounded","text"],Lz=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(kz).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),Pz=()=>G(B({},he()),{change:W()}),Tz=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),Es=Symbol("tabs-inject-key"),Qz=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:Uo,PwcIconUp:o1,renderSlot:Et}}});var Ez=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()])])},Iz=[],Mz=V(Qz,Ez,Iz);const Az=Mz.exports,zz=c.defineComponent({__name:"tabs",props:Lz(),emits:Pz(),setup(e,{emit:t}){const r=e,o=c.ref(),i=c.ref(),{modelValue:n,updateModelValue:a}=de(r,{outSideUpdate:v=>{o.value=v}}),s=c.ref([]);function l(v){if(!s.value.includes(v)){if(typeof o.value>"u")if(typeof n.value>"u"){const h=v.getPaneName();u(h,!1)}else u(n.value,!1);s.value.push(v)}}function p(v){s.value=s.value.filter(h=>h!==v)}function u(v,h=!0){o.value!==v&&(o.value=v,a(v),h&&t("change",v))}const d=c.ref(0);function m(){return H(this,null,function*(){var b;yield c.nextTick();const v=((b=i.value)==null?void 0:b.querySelectorAll("[data-pane-name]"))||[];let h=0;for(let g=0;g<v.length;g++)if(v[g].getAttribute("data-is-active")==="true"){h=g*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:Az}}});var Dz=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)},Oz=[],Rz=V(zz,Dz,Oz);const Bz=Rz.exports,$z=c.defineComponent({__name:"tab-pane",props:Tz(),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 Vz=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()])},Fz=[],jz=V($z,Vz,Fz);const Nz=jz.exports;ee("PwcTabs",Bz);ee("PwcTabPane",Nz);const Uz={title:"Coupon",unitMoney:"¥",unitDiscount:"%","unconditional.money":"¥$0 off","unconditional.discount":"$0% off","fullReduction.money":"Spend ¥$0 or more, get ¥$1 off","fullReduction.discount":"Spend ¥$0 or more, get $1% off",till:"to","receiveTips.prefix":"will be released in ","receiveTips.suffix.1":" day","receiveTips.suffix.2":"s","countDown.prefix":"will be released in ","countDown.suffix":"",claim:"Get it now",waitToClaim:"Get ready",SnappedUp:"Snapped up",claimSuccess:"Claim Success","claimFail.snappedUp":"Snapped up","claimFail.receiveLimit":"Maximum claim limit reached","claimFail.unknownError":"Claim Failed",toUse:"Use it",empty:"No coupons"},Wz={coupon:Uz},Hz={title:"クーポン",unitMoney:"円",unitDiscount:"割引","unconditional.money":"無条件、$0円引き","unconditional.discount":"無条件、$0% off","fullReduction.money":"$0円以上、$1円引き","fullReduction.discount":"$0円以上、$1% off",till:"まで","receiveTips.prefix":"","receiveTips.suffix.1":"日後に受け取れる","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" 後に受け取れる",claim:"今すぐ受け取る",waitToClaim:"まもなく開始",SnappedUp:"売り切れ",claimSuccess:"受け取り成功","claimFail.snappedUp":"売り切れ","claimFail.receiveLimit":"受け取り上限に達しました","claimFail.unknownError":"受け取り失敗",toUse:"使用する",empty:"クーポンはありません"},Zz={coupon:Hz},qz={title:"쿠폰",unitMoney:"원",unitDiscount:"할인","unconditional.money":"무조건, $0원 할인","unconditional.discount":"무조건, $0% off","fullReduction.money":"$0원 이상, $1원 할인","fullReduction.discount":"$0원 이상, $1% off",till:"부터","receiveTips.prefix":"","receiveTips.suffix.1":"일 후에 받을 수 있음","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" 후에 받을 수 있음",claim:"즉시 받기",waitToClaim:"곧 시작",SnappedUp:"매진",claimSuccess:"받기 성공","claimFail.snappedUp":"매진","claimFail.receiveLimit":"받기 한도 도달","claimFail.unknownError":"받기 실패",toUse:"사용하러 가기",empty:"쿠폰이 없습니다."},Yz={coupon:qz},Gz={title:"Купоны",unitMoney:"юань",unitDiscount:"скидка","unconditional.money":"Без ограничений, скидка $0 юань","unconditional.discount":"Без ограничений, скидка $0%","fullReduction.money":"При заказе от $0 юань, скидка $1 юань","fullReduction.discount":"При заказе от $0 юань, скидка $1%",till:"до","receiveTips.prefix":"","receiveTips.suffix.1":"дней до получения","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" до получения",claim:"Получить сейчас",waitToClaim:"Скоро начнется",SnappedUp:"Раскуплено",claimSuccess:"Успешно получено","claimFail.snappedUp":"Раскуплено","claimFail.receiveLimit":"Достигнут лимит получения","claimFail.unknownError":"Ошибка получения",toUse:"Использовать",empty:"Нет доступных купонов"},Xz={coupon:Gz},Kz={title:"优惠券",unitMoney:"元",unitDiscount:"折","unconditional.money":"无门槛,减$0元","unconditional.discount":"无门槛,打$0折","fullReduction.money":"满$0元, 减$1元","fullReduction.discount":"满$0元, 打$1折",till:"至","receiveTips.prefix":"","receiveTips.suffix.1":"天后可领取","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" 后可领取",claim:"立即领取",waitToClaim:"即将开始",SnappedUp:"已抢光",claimSuccess:"领取成功","claimFail.snappedUp":"已抢光","claimFail.receiveLimit":"已达领取上限","claimFail.unknownError":"领取失败",toUse:"去使用",empty:"暂无优惠券"},Jz={coupon:Kz},eD={title:"優惠券",unitMoney:"元",unitDiscount:"折","unconditional.money":"無門檻,減$0元","unconditional.discount":"無門檻,打$0折","fullReduction.money":"滿$0元, 減$1元","fullReduction.discount":"滿$0元, 打$1折",till:"至","receiveTips.prefix":"","receiveTips.suffix.1":"天後可領取","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" 後可領取",claim:"立即領取",waitToClaim:"即將開始",SnappedUp:"已搶光",claimSuccess:"領取成功","claimFail.snappedUp":"已搶光","claimFail.receiveLimit":"已達領取上限","claimFail.unknownError":"領取失敗",toUse:"去使用",empty:"暫無優惠券"},tD={coupon:eD},{useI18n:co}=f1({zh_CN:Jz,zh_TW:tD,en:Wz,ja:Zz,ko:Yz,ru:Xz}),Is=()=>({couponTarget:w.object().isRequired}),I0=Symbol("COUPON_PROVIDE_KEY");function M0(e){const t=e.CouponEvent,r=e.CouponStatus,o=e.CouponUseTimeType,i=e.CouponRuleUnit,n=e.CouponRuleCondition;return{CouponEvent:t,CouponStatus:r,CouponUseTimeType:o,CouponRuleUnit:i,CouponRuleCondition:n}}const Ms=e=>{c.provide(I0,{getCouponTarget:()=>e.couponTarget});const t=e.couponTarget;return B({couponTarget:t},M0(t))},rD=()=>{const t=c.inject(I0).getCouponTarget();return B({couponTarget:t},M0(t))},oD=()=>({couponData:w.object().isRequired,isUnclaimed:w.bool.def(!0)}),iD=()=>({"count-down-finish":W()}),nD=e=>{const{CouponStatus:t,CouponRuleCondition:r,CouponRuleUnit:o}=rD(),{props:i,emit:n}=e,{couponData:a,isUnclaimed:s}=i,{$t:l,currentLang:p}=co();function u(P){return P===o.MONEY?l("coupon.unitMoney"):/^zh[-_]/.test(p.value)?l("coupon.unitDiscount"):"% off"}function d(P,L,T){let M;if(L===o.DISCOUNT&&(!/^zh[-_]/.test(p.value)||T)){let E=(1-P/10)*100;Number.isInteger(E)?M=E:M=`${E.toFixed(1)}`.replace(/^(\d+)\.0+(?!\d)/,"$1")}return`${M||P}`}const m=c.computed(()=>{let P,L;const{fullReduce:T,unconditional:M}=a.rule;return T.enable?(P=d(T.reduce,T.unit),L=u(T.unit)):(P=d(M.value,M.unit),L=u(M.unit)),{value:P,unit:L}}),f=c.computed(()=>{const{condition:P,fullReduce:{full:L,reduce:T,unit:M},unconditional:{unit:I,value:E}}=a.rule;return P===r.UNCONDITIONAL?(I===o.MONEY?l("coupon.unconditional.money"):l("coupon.unconditional.discount")).replace("$0",`${d(E,I)}`):(M===o.MONEY?l("coupon.fullReduction.money"):l("coupon.fullReduction.discount")).replace("$0",`${L}`).replace("$1",`${d(T,M)}`)}),v=c.computed(()=>{if("sort"in a)return"";if(a.startTime&&a.endTime){const P="YYYY.MM.DD hh:mm";return`${Fi(a.startTime,P)} ${l("coupon.till")} ${Fi(a.endTime,P)}`}return""}),h=c.computed(()=>s&&a.status===t.NOT_START),b=c.computed(()=>{if("endTime"in a)return!1;const P=Date.now();return(a.receiveStartTime-P)/(1e3*60*60)>24}),g=c.computed(()=>{if("endTime"in a)return"";let P=0;if(b.value){const L=Date.now(),T=(a.receiveStartTime-L)/(1e3*60*60*24);P=Math.ceil(T)}return P?`${l("coupon.receiveTips.prefix")}${P}${l("coupon.receiveTips.suffix.1")}${a.dayOfUse>1?l("coupon.receiveTips.suffix.2"):""}`:""});let _=null;const y=c.ref("00"),C=c.ref("00"),x=c.ref("00");function k(){if("endTime"in a)return!1;const P=s,L=a.status===t.NOT_START,T=a.receiveStartTime>Date.now();return P&&L&&T&&!b.value}function Q(){if(!k()){S();return}function P(){if("endTime"in a)return;const L=Date.now(),T=a.receiveStartTime-L;if(T<=0){S(),n("count-down-finish",a);return}const M=Math.floor(T/(1e3*60*60)),I=Math.floor(T%(1e3*60*60)/(1e3*60)),E=Math.floor(T%(1e3*60)/1e3),A=M.toString().padStart(2,"0"),z=I.toString().padStart(2,"0"),D=E.toString().padStart(2,"0");y.value=A,C.value=z,x.value=D}P(),_=setInterval(()=>{P()},1e3)}function S(){_&&(clearInterval(_),_=null)}return c.onMounted(()=>{Q()}),c.onUnmounted(()=>{S()}),{countDownHours:y,countDownMinutes:C,countDownSeconds:x,unClaimedTips:g,isShowDayOfUse:b,discountSimpleDesc:m,discountDesc:f,useTimeRangeDesc:v,showNotStartTips:h}},aD=c.defineComponent({__name:"coupon-list-item",props:oD(),emits:iD(),setup(e,{emit:t}){const r=e,{$t:o,currentLang:i}=co(),{showNotStartTips:n,countDownHours:a,countDownMinutes:s,countDownSeconds:l,unClaimedTips:p,discountSimpleDesc:u,discountDesc:d,useTimeRangeDesc:m}=nD({props:r,emit:t});return{__sfc:!0,props:r,emit:t,$t:o,currentLang:i,showNotStartTips:n,countDownHours:a,countDownMinutes:s,countDownSeconds:l,unClaimedTips:p,discountSimpleDesc:u,discountDesc:d,useTimeRangeDesc:m}}});function vn(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),{exports:e,options:l}}var sD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{staticClass:"plv-iar-coupon-list-item",class:{"plv-iar-coupon-list--en":o.currentLang==="en","plv-iar-coupon-list--unclaimed":t.isUnclaimed,"plv-iar-coupon-list--claimed":!t.isUnclaimed}},[r("div",{staticClass:"plv-iar-coupon-list__left"},[r("div",{staticClass:"plv-iar-coupon-list__left__desc pwc-font-din-pro-regular"},[[r("span",[t._v(t._s(o.discountSimpleDesc.value))]),r("span",[t._v(t._s(o.discountSimpleDesc.unit))])]],2)]),r("div",{staticClass:"plv-iar-coupon-list__right"},[r("div",{staticClass:"plv-iar-coupon-list__desc"},[r("span",[t._v(t._s(o.discountDesc))]),r("div",{staticClass:"plv-iar-coupon-list__desc__bottom-wrapper"},[o.showNotStartTips?[r("div",{staticClass:"plv-iar-coupon-list__desc__bottom"},[o.unClaimedTips?r("span",[t._v(t._s(o.unClaimedTips))]):r("div",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down"},[r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down--first-text"},[t._v(" "+t._s(o.$t("coupon.countDown.prefix"))+" ")]),r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down__item"},[t._v(" "+t._s(o.countDownHours)+" ")]),r("span",[t._v(":")]),r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down__item"},[t._v(" "+t._s(o.countDownMinutes)+" ")]),r("span",[t._v(":")]),r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down__item"},[t._v(" "+t._s(o.countDownSeconds)+" ")]),r("span",[t._v(t._s(o.$t("coupon.countDown.suffix")))])])])]:[r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__use-time"},[t._v(t._s(o.useTimeRangeDesc))])]],2)]),t._t("coupon-operation",null,{couponData:t.couponData})],2)])},lD=[],cD=vn(aD,sD,lD);const A0=cD.exports,pD=()=>B({},Is()),uD=e=>{const{couponTarget:t,CouponEvent:r,CouponStatus:o}=Ms(e.props),{toast:i}=At({showIcon:!0}),{$t:n}=co(),{trackEvent:a}=EI(t.interactionCore),{scrollRef:s,contents:l,refresh:p}=hs(S=>t.getCouponCommonList({pageNumber:S.pageNumber,pageSize:30}));function u(){p()}function d(S){l.value.unshift(...S)}function m(S){return H(this,null,function*(){const P=S.map(L=>L.couponId);l.value=l.value.filter(L=>!P.includes(L.couponId))})}function f(S){S.forEach(P=>{const L=l.value.findIndex(T=>T.couponId===P.couponId);L!==-1&&l.value.splice(L,1,P)})}function v(){t.eventEmitter.on(r.RefreshCouponList,u),t.eventEmitter.on(r.AddCouponItem,d),t.eventEmitter.on(r.DeleteCouponItem,m),t.eventEmitter.on(r.UpdateCouponItem,f)}function h(){t.eventEmitter.off(r.RefreshCouponList,u),t.eventEmitter.off(r.AddCouponItem,d),t.eventEmitter.off(r.DeleteCouponItem,m),t.eventEmitter.off(r.UpdateCouponItem,f)}function b(S){const P=l.value.findIndex(L=>L.couponId===S.couponId);P!==-1&&(l.value[P].status=o.GOING)}function g(){l.value=[],p()}const _={refreshList:g},y=Ja(S=>H(exports,null,function*(){try{a({event_id:"coupon_click_receive",event_type:"click",spec_attrs:{clickTime:String(Date.now()),couponName:S.name,couponId:S.couponId}})}catch(P){console.warn("Claim coupon fail ",P)}try{yield t.receiveCoupon(S.couponId),i.success(n("coupon.claimSuccess"))}catch(P){const{code:L}=P;/1140|1141/.test(L.toString())?i.error(n("coupon.claimFail.unknownError")):L===1142?i.error(n("coupon.claimFail.receiveLimit")):L===1143&&(i.error(n("coupon.claimFail.snappedUp")),C(S))}}),500);function C(S){const P=l.value.findIndex(L=>L.couponId===S.couponId);P!==-1&&(l.value[P].remainAmount=0)}function x(S){return!(S>0)}const k=c.ref({});function Q(S){const P=k.value[S];return P||P===0?k.value[S]=P+1:k.value[S]=0,k.value[S]}return c.onMounted(()=>{v(),a({event_id:"coupon_view_list",event_type:"show",spec_attrs:{showTime:String(Date.now())}})}),c.onBeforeUnmount(()=>{h()}),{instance:_,refreshCouponCommonList:p,CouponStatus:o,couponCommonList:l,scrollRef:s,onCountDownFinish:b,claimCoupon:y,checkIsSnappedUp:x,getKeyFromCache:Q}},dD=c.defineComponent({__name:"normal-coupon-common-list",props:pD(),setup(e,{expose:t}){const r=e,{CouponStatus:o,couponCommonList:i,scrollRef:n,onCountDownFinish:a,claimCoupon:s,instance:l,checkIsSnappedUp:p,getKeyFromCache:u}=uD({props:r}),{$t:d}=co();return t(l),{__sfc:!0,props:r,CouponStatus:o,couponCommonList:i,scrollRef:n,onCountDownFinish:a,claimCoupon:s,instance:l,checkIsSnappedUp:p,getKeyFromCache:u,$t:d,CouponListItem:A0}}});var fD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{ref:"scrollRef",staticClass:"plv-iar-coupon-common-list"},[o.couponCommonList.length===0?r("div",{staticClass:"plv-iar-coupon-common-list--empty"},[r("span",[t._v(t._s(o.$t("coupon.empty")))])]):t._e(),t._l(o.couponCommonList,function(i){return r(o.CouponListItem,{key:`${i.couponId}-${o.getKeyFromCache(i.couponId)}`,attrs:{"coupon-data":i},on:{"count-down-finish":o.onCountDownFinish},scopedSlots:t._u([{key:"coupon-operation",fn:function(){return[r("div",{staticClass:"plv-iar-coupon-common-list-operate",class:{"plv-iar-coupon-common-list-operate-going":i.status===o.CouponStatus.GOING,"plv-iar-coupon-common-list-operate-wait-to-claim":i.status===o.CouponStatus.NOT_START,"plv-iar-coupon-common-list-operate-snapped-up":o.checkIsSnappedUp(i.remainAmount)}},[o.checkIsSnappedUp(i.remainAmount)?[r("span",[t._v(t._s(o.$t("coupon.SnappedUp")))])]:[i.status===o.CouponStatus.GOING?r("span",{on:{click:function(n){return o.claimCoupon(i)}}},[t._v(" "+t._s(o.$t("coupon.claim"))+" ")]):t._e(),i.status===o.CouponStatus.NOT_START?r("span",[t._v(t._s(o.$t("coupon.waitToClaim")))]):t._e()]],2)]},proxy:!0}],null,!0)})})],2)},mD=[],hD=vn(dD,fD,mD);const gD=hD.exports,vD=()=>B({},Is()),wD=e=>{const{couponTarget:t}=Ms(e.props),{scrollRef:r,contents:o,refresh:i}=hs(s=>t.getCouponUserList({pageNumber:s.pageNumber,pageSize:s.pageSize}));function n(){o.value=[],i()}return{instance:{refreshList:n},couponUserList:o,scrollRef:r}},bD=c.defineComponent({__name:"normal-coupon-user-list",props:vD(),setup(e,{expose:t}){const r=e,{couponUserList:o,scrollRef:i,instance:n}=wD({props:r}),{$t:a}=co();return t(n),{__sfc:!0,props:r,couponUserList:o,scrollRef:i,instance:n,$t:a,CouponListItem:A0}}});var _D=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{ref:"scrollRef",staticClass:"plv-iar-coupon-user-list"},[o.couponUserList.length===0?r("div",{staticClass:"plv-iar-coupon-user-list--empty"},[r("span",[t._v(t._s(o.$t("coupon.empty")))])]):t._e(),t._l(o.couponUserList,function(i,n){return r(o.CouponListItem,{key:n,attrs:{"coupon-data":i,"is-unclaimed":!1},scopedSlots:t._u([{key:"coupon-operation",fn:function(){return[r("div",{staticClass:"plv-iar-coupon-user-list-item-operation"})]},proxy:!0}],null,!0)})})],2)},yD=[],xD=vn(bD,_D,yD);const CD=xD.exports,SD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAArFSURBVHic7ZxbbBzVHcZ//zPr3fX6FscsIZhLoFQlF6RGKYUKKTIKpQ+gqrQ1qFIBVahCtGlFJSqVChGHh7YIqapK2j7wUAovgCuitoIHQMKlFy6FqmrLpZASILGJ7cRObO/aOztz/n2Y2Z3Z9a5313aayPInH43nzLn8zzff+ebMGSewjnWsYx1nDtJqhdwNm3cZwzdBdqtwKZA6PaGtGgqivA/6krU80vHMx2+0UrlpgvT6TR0LaechhbuWFeZZAoFfpRf878tz47kmyzeGXr+pYz7lvIBw9YojPBugvNJe8K9rhiTTTHsLaeehNUMOgHD1Qtr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E3bj53YjXJVoUvDx4ueD7efUnHUv4Fxj18qvyVgPGib6qJlNWU+kFTSaftgv5x9p+9Ojzq9TLOtaxjnWsYx3rWMeaxv8AN4iXSSXAViIAAAAASUVORK5CYII=",kD=()=>G(B({},Is()),{visible:w.bool.def(!0),iconUrl:w.string.def("")});function LD(e){const{props:t}=e,{couponTarget:r,CouponEvent:o}=Ms(t),{$t:i}=co(),n=c.computed(()=>i("coupon.title")),a=c.ref(t.visible);function s(m){a.value=m.enable==="Y"}function l(){r.eventEmitter.on(o.SwitchCoupon,s)}function p(){r.eventEmitter.off(o.SwitchCoupon,s)}function u(){if(!r)return;const m=r.getCouponEnabled();a.value=m}const d=c.computed(()=>t.iconUrl||SD);return c.onMounted(()=>{l(),u()}),c.onBeforeUnmount(()=>{p()}),{couponPendantVisible:a,pendantIconUrl:d,content:n}}const PD=c.defineComponent({__name:"normal-coupon-pendant",props:kD(),setup(e){const t=e,{couponPendantVisible:r,pendantIconUrl:o,content:i}=LD({props:t});return{__sfc:!0,props:t,couponPendantVisible:r,pendantIconUrl:o,content:i,PwcNormalPendant:Cy}}});var TD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return o.couponPendantVisible?r(o.PwcNormalPendant,{staticClass:"plv-normal-coupon-pendant",attrs:{"icon-url":o.pendantIconUrl,text:o.content}}):t._e()},QD=[],ED=vn(PD,TD,QD);const ID=ED.exports;exports.NormalCouponCommonList=gD;exports.NormalCouponPendant=ID;exports.NormalCouponUserList=CD;console.log("%c@polyv/iar-coupon-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0-rc-20260312.1]","[buildTime: 2026-03-11 10:10:11]");
|
|
1007
|
+
}`}],staticClass:"pwc-table-body-cell__content"},[e._v(" "+e._s(r.cellText)+" ")])],2)},UM=[],WM=V(jM,NM,UM);const HM=WM.exports,ZM=e=>{const{rowIndex:t,rowData:r,renderRowKey:o}=e,{tableProps:i,allColumnList:n}=Me(),{hoverStatus:a}=si(),s=c.computed(()=>n.value.find(u=>u.columnProps.type==="expand")),l=c.computed(()=>{const u=[];if(i.rowClassName){const d=P0(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=T0(i.rowStyle,{rowIndex:t.value,rowData:r.value});Object.assign(u,d)}return u});return{rowClass:l,rowStyle:p}},qM=c.defineComponent({__name:"table-body-row",props:C0(),setup(e){const t=e,{leftColumnListInstance:r,centerColumnListInstance:o,rightColumnListInstance:i}=Me(),{columnList:n}=r,{columnList:a}=o,{columnList:s}=i,l=uM({props:t}),{rowClass:p,rowStyle:u}=ZM(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:HM}}});var YM=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)},GM=[],XM=V(qM,YM,GM);const KM=XM.exports,JM=c.defineComponent({__name:"table-body-row-expand",props:C0(),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:Et}}});var eA=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()},tA=[],rA=V(JM,eA,tA);const oA=rA.exports,iA=c.defineComponent({__name:"table-body",setup(e){const{allColumnWidth:t,tableProps:r,wrapWidth:o}=Me(),{bodyWrapRef:i,bodyRef:n}=ai(),{renderData:a,isEmptyData:s}=hn(),{getRenderRowKey:l}=Qs(),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:x0,TableBodyRow:KM,TableBodyRowExpand:oA,PwcEmpty:ms}}});var nA=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)])},aA=[],sA=V(iA,nA,aA);const lA=sA.exports,cA=["multiple","single","index","operation","tags","expand"],pA=["left","right"],uA=["left","center","right"],dA=c.defineComponent({__name:"table-fixed-shadow",props:{position:w.oneOf(uA).isRequired},setup(e){const t=e,{leftColumnListInstance:r,rightColumnListInstance:o}=Me(),{scrollXPosition:i,hasHorizontalScroll:n}=Ts(),{headerWrapSize:a,bodyWrapSize:s}=ai(),{isEmptyData:l}=hn(),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 fA=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()},mA=[],hA=V(dA,fA,mA);const gA=hA.exports,vA=()=>({column:w.object().isRequired}),Q0=Symbol("table-header-cell-inject-key"),wA=e=>{const{props:t}=e,r=c.ref();return c.provide(Q0,{headerCellRef:r,column:t.column}),{headerCellRef:r,column:t.column}},E0=()=>c.inject(Q0),bA=c.defineComponent({__name:"header-cell-multiple",setup(e){const{renderData:t}=hn(),{column:r}=E0(),{inModelValue:o,multipleIsDisabled:i,removeModelValue:n,getColumnModelValue:a,deleteRowData:s}=k0(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 v=d[f];o(v)&&!i(v,f)&&s(m,v)}else for(let f=0;f<d.length&&!(m.length>=r.columnProps.multipleMax);f++){const v=d[f];!o(v)&&!i(v,f)&&m.push(v)}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:ti}}});var _A=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}})},yA=[],xA=V(bA,_A,yA);const CA=xA.exports,SA=c.defineComponent({__name:"header-cell-sort",setup(e){const{tableSortOrder:t}=si(),{column:r,headerCellRef:o}=E0(),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 kA=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()},LA=[],PA=V(SA,kA,LA);const TA=PA.exports,QA=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})}},EA=c.defineComponent({__name:"table-header-cell",props:vA(),setup(e){const t=e,{$t:r}=ie(),{tableProps:o}=Me(),i=wA({props:t}),{headerCellRef:n}=i,{headerCellClass:a}=QA(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:Ho,vTooltip:yt,renderSlot:Et,HeaderCellMultiple:CA,HeaderCellSort:TA}}});var IA=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(B({},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)])},MA=[],AA=V(EA,IA,MA);const zA=AA.exports,DA=()=>{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())}},OA=c.defineComponent({__name:"table-header",setup(e){const{tableProps:t,allColumnWidth:r}=Me(),{headerWrapRef:o}=ai(),{headerStructure:i}=DA();return{__sfc:!0,tableProps:t,allColumnWidth:r,headerWrapRef:o,headerStructure:i,TableColgroup:x0,TableHeaderCell:zA}}});var RA=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)])},BA=[],$A=V(OA,RA,BA);const VA=$A.exports,FA=c.defineComponent({__name:"horizontal-scrollbar",setup(e){const{allColumnWidth:t}=Me(),{horizontalScrollbarRef:r,bodyWrapSize:o}=ai(),{hasHorizontalScroll:i}=Ts();return{__sfc:!0,allColumnWidth:t,horizontalScrollbarRef:r,bodyWrapSize:o,hasHorizontalScroll:i}}});var jA=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()},NA=[],UA=V(FA,jA,NA);const WA=UA.exports,HA=c.defineComponent({__name:"vertical-scrollbar",setup(e){const{headerWrapSize:t,bodyWrapSize:r,bodySize:o,verticalScrollbarRef:i}=ai(),{tableProps:n}=Me(),{hasVerticalScroll:a}=Ts(),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 ZA=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()},qA=[],YA=V(HA,ZA,qA);const GA=YA.exports,XA=c.defineComponent({__name:"table-pagination",setup(e){const{tableEmit:t,tableProps:r}=Me(),{paginationModelValue:o}=v0(),i=c.computed(()=>{const a={hideOnSinglePage:!0};return typeof r.pagination=="boolean"?a:B(B({},a),r.pagination)});function n(a){t("page-change",a)}return{__sfc:!0,tableEmit:t,tableProps:r,paginationModelValue:o,paginationProps:i,onPaginationChange:n,PwcPagination:Gu}}});var KA=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))},JA=[],ez=V(XA,KA,JA);const tz=ez.exports,rz=()=>({data:w.oneOfType([Object,Array]).def([]),headerHeight:w.number.def(48),headerBgColor:w.looseString,headerSticky:w.bool.def(!1),footerSticky:w.bool.def(!1),footerBgColor:w.looseString,height:w.looseNumber,maxHeight:w.looseNumber,flexHeight:w.bool.def(!1),hoverRow:w.bool.def(!0),hoverColumn:w.bool.def(!1),rowKey:w.oneOfType([String,Function]),rowClassName:w.oneOfType([Function,Array,String]),rowStyle:w.oneOfType([Function,Object]),cellClassName:w.oneOfType([Function,Array,String]),cellStyle:w.oneOfType([Function,Object]),pagination:w.oneOfType([Object,Boolean]).def(!1),sort:w.object(),highlightSorted:w.bool.def(!0),border:w.bool.def(!1)}),oz=()=>({"page-change":W(),"sort-change":W()}),iz=()=>({[w.modelValueKey]:w.any,type:w.oneOf(cA),title:w.looseString,prop:w.looseString,width:w.oneOfType([Number,String]),minWidth:w.oneOfType([Number,String]),fixed:w.oneOf(pA),multipleMax:w.number.def(1/0),multipleDisabled:w.func(),singleDisabled:w.func(),headerTips:w.string,sortable:w.bool.def(!1),sortName:w.looseString,ellipsis:w.bool.def(!1),formatter:w.oneOfType([Object,Function,String]),showExpand:w.func(),emptyText:w.oneOfType([String,Boolean]).def(!1)}),nz=()=>B({},he()),az=e=>{const{props:t}=e,r=$g();return{footerClass:c.computed(()=>{const o=[];return t.footerSticky&&o.push("is-sticky"),r&&o.push("is-in-popup"),o})}},sz=c.defineComponent({__name:"table",props:rz(),emits:oz(),setup(e,{emit:t}){const r=e,{wrapRef:o,hasHorizontalScroll:i,hasVerticalScroll:n}=aM({props:r,emit:t}),{footerClass:a}=az({props:r});return{__sfc:!0,props:r,emit:t,wrapRef:o,hasHorizontalScroll:i,hasVerticalScroll:n,footerClass:a,TableBody:lA,TableFixedShadow:gA,TableHeader:VA,HorizontalScrollbar:WA,VerticalScrollbar:GA,TablePagination:tz}}});var lz=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()])},cz=[],pz=V(sz,lz,cz);const uz=pz.exports,Bc=Symbol("COLUMN_CHILDREN_PROVIDE_KEY");function $c(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 dz=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}=$c(0);e.setColSpan=i,e.getColSpan=n;const{set:a,get:s}=$c(0);e.setRowSpan=a,e.getRowSpan=s,c.provide(Bc,{addChildrenColumn:r,getChildrenColumns:o,level:1,setColSpan:i,getColSpan:n,setRowSpan:a,getRowSpan:s});const l=c.inject(Bc,void 0);return l&&l.addChildrenColumn(e),{childrenColumnList:t,isChildrenColmn:!!l}},fz=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}},mz=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}},hz=e=>{const{columnProps:t}=e,{isEmptyData:r}=hn(),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}},gz=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}},vz=e=>{const{columnProps:t}=e,{tableSortName:r,tableSortOrder:o}=si(),{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},wz=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(B({},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}},bz=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};gz(l),fz(l),hz(l),vz(l);const{getHeaderSlotData:p,getCellSlotData:u}=mz(l);wz(l);const{childrenColumnList:d,isChildrenColmn:m}=dz(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}},_z=c.defineComponent({__name:"table-column",props:iz(),emits:nz(),setup(e){const t=e,{getCellSlotData:r,getHeaderSlotData:o}=bz({props:t});return{__sfc:!0,props:t,getCellSlotData:r,getHeaderSlotData:o}}});var yz=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)},xz=[],Cz=V(_z,yz,xz);const Sz=Cz.exports;ee("PwcTable",uz);ee("PwcTableColumn",Sz);const kz=["line","rounded","text"],Lz=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(kz).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),Pz=()=>G(B({},he()),{change:W()}),Tz=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),Es=Symbol("tabs-inject-key"),Qz=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:Uo,PwcIconUp:o1,renderSlot:Et}}});var Ez=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()])])},Iz=[],Mz=V(Qz,Ez,Iz);const Az=Mz.exports,zz=c.defineComponent({__name:"tabs",props:Lz(),emits:Pz(),setup(e,{emit:t}){const r=e,o=c.ref(),i=c.ref(),{modelValue:n,updateModelValue:a}=de(r,{outSideUpdate:v=>{o.value=v}}),s=c.ref([]);function l(v){if(!s.value.includes(v)){if(typeof o.value>"u")if(typeof n.value>"u"){const h=v.getPaneName();u(h,!1)}else u(n.value,!1);s.value.push(v)}}function p(v){s.value=s.value.filter(h=>h!==v)}function u(v,h=!0){o.value!==v&&(o.value=v,a(v),h&&t("change",v))}const d=c.ref(0);function m(){return H(this,null,function*(){var b;yield c.nextTick();const v=((b=i.value)==null?void 0:b.querySelectorAll("[data-pane-name]"))||[];let h=0;for(let g=0;g<v.length;g++)if(v[g].getAttribute("data-is-active")==="true"){h=g*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:Az}}});var Dz=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)},Oz=[],Rz=V(zz,Dz,Oz);const Bz=Rz.exports,$z=c.defineComponent({__name:"tab-pane",props:Tz(),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 Vz=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()])},Fz=[],jz=V($z,Vz,Fz);const Nz=jz.exports;ee("PwcTabs",Bz);ee("PwcTabPane",Nz);const Uz={title:"Coupon",unitMoney:"¥",unitDiscount:"%","unconditional.money":"¥$0 off","unconditional.discount":"$0% off","fullReduction.money":"Spend ¥$0 or more, get ¥$1 off","fullReduction.discount":"Spend ¥$0 or more, get $1% off",till:"to","receiveTips.prefix":"will be released in ","receiveTips.suffix.1":" day","receiveTips.suffix.2":"s","countDown.prefix":"will be released in ","countDown.suffix":"",claim:"Get it now",waitToClaim:"Get ready",SnappedUp:"Snapped up",claimSuccess:"Claim Success","claimFail.snappedUp":"Snapped up","claimFail.receiveLimit":"Maximum claim limit reached","claimFail.unknownError":"Claim Failed",toUse:"Use it",empty:"No coupons"},Wz={coupon:Uz},Hz={title:"クーポン",unitMoney:"円",unitDiscount:"割引","unconditional.money":"無条件、$0円引き","unconditional.discount":"無条件、$0% off","fullReduction.money":"$0円以上、$1円引き","fullReduction.discount":"$0円以上、$1% off",till:"まで","receiveTips.prefix":"","receiveTips.suffix.1":"日後に受け取れる","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" 後に受け取れる",claim:"今すぐ受け取る",waitToClaim:"まもなく開始",SnappedUp:"売り切れ",claimSuccess:"受け取り成功","claimFail.snappedUp":"売り切れ","claimFail.receiveLimit":"受け取り上限に達しました","claimFail.unknownError":"受け取り失敗",toUse:"使用する",empty:"クーポンはありません"},Zz={coupon:Hz},qz={title:"쿠폰",unitMoney:"원",unitDiscount:"할인","unconditional.money":"무조건, $0원 할인","unconditional.discount":"무조건, $0% off","fullReduction.money":"$0원 이상, $1원 할인","fullReduction.discount":"$0원 이상, $1% off",till:"부터","receiveTips.prefix":"","receiveTips.suffix.1":"일 후에 받을 수 있음","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" 후에 받을 수 있음",claim:"즉시 받기",waitToClaim:"곧 시작",SnappedUp:"매진",claimSuccess:"받기 성공","claimFail.snappedUp":"매진","claimFail.receiveLimit":"받기 한도 도달","claimFail.unknownError":"받기 실패",toUse:"사용하러 가기",empty:"쿠폰이 없습니다."},Yz={coupon:qz},Gz={title:"Купоны",unitMoney:"юань",unitDiscount:"скидка","unconditional.money":"Без ограничений, скидка $0 юань","unconditional.discount":"Без ограничений, скидка $0%","fullReduction.money":"При заказе от $0 юань, скидка $1 юань","fullReduction.discount":"При заказе от $0 юань, скидка $1%",till:"до","receiveTips.prefix":"","receiveTips.suffix.1":"дней до получения","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" до получения",claim:"Получить сейчас",waitToClaim:"Скоро начнется",SnappedUp:"Раскуплено",claimSuccess:"Успешно получено","claimFail.snappedUp":"Раскуплено","claimFail.receiveLimit":"Достигнут лимит получения","claimFail.unknownError":"Ошибка получения",toUse:"Использовать",empty:"Нет доступных купонов"},Xz={coupon:Gz},Kz={title:"优惠券",unitMoney:"元",unitDiscount:"折","unconditional.money":"无门槛,减$0元","unconditional.discount":"无门槛,打$0折","fullReduction.money":"满$0元, 减$1元","fullReduction.discount":"满$0元, 打$1折",till:"至","receiveTips.prefix":"","receiveTips.suffix.1":"天后可领取","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" 后可领取",claim:"立即领取",waitToClaim:"即将开始",SnappedUp:"已抢光",claimSuccess:"领取成功","claimFail.snappedUp":"已抢光","claimFail.receiveLimit":"已达领取上限","claimFail.unknownError":"领取失败",toUse:"去使用",empty:"暂无优惠券"},Jz={coupon:Kz},eD={title:"優惠券",unitMoney:"元",unitDiscount:"折","unconditional.money":"無門檻,減$0元","unconditional.discount":"無門檻,打$0折","fullReduction.money":"滿$0元, 減$1元","fullReduction.discount":"滿$0元, 打$1折",till:"至","receiveTips.prefix":"","receiveTips.suffix.1":"天後可領取","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" 後可領取",claim:"立即領取",waitToClaim:"即將開始",SnappedUp:"已搶光",claimSuccess:"領取成功","claimFail.snappedUp":"已搶光","claimFail.receiveLimit":"已達領取上限","claimFail.unknownError":"領取失敗",toUse:"去使用",empty:"暫無優惠券"},tD={coupon:eD},{useI18n:co}=f1({zh_CN:Jz,zh_TW:tD,en:Wz,ja:Zz,ko:Yz,ru:Xz}),Is=()=>({couponTarget:w.object().isRequired}),I0=Symbol("COUPON_PROVIDE_KEY");function M0(e){const t=e.CouponEvent,r=e.CouponStatus,o=e.CouponUseTimeType,i=e.CouponRuleUnit,n=e.CouponRuleCondition;return{CouponEvent:t,CouponStatus:r,CouponUseTimeType:o,CouponRuleUnit:i,CouponRuleCondition:n}}const Ms=e=>{c.provide(I0,{getCouponTarget:()=>e.couponTarget});const t=e.couponTarget;return B({couponTarget:t},M0(t))},rD=()=>{const t=c.inject(I0).getCouponTarget();return B({couponTarget:t},M0(t))},oD=()=>({couponData:w.object().isRequired,isUnclaimed:w.bool.def(!0)}),iD=()=>({"count-down-finish":W()}),nD=e=>{const{CouponStatus:t,CouponRuleCondition:r,CouponRuleUnit:o}=rD(),{props:i,emit:n}=e,{couponData:a,isUnclaimed:s}=i,{$t:l,currentLang:p}=co();function u(P){return P===o.MONEY?l("coupon.unitMoney"):/^zh[-_]/.test(p.value)?l("coupon.unitDiscount"):"% off"}function d(P,L,T){let M;if(L===o.DISCOUNT&&(!/^zh[-_]/.test(p.value)||T)){let E=(1-P/10)*100;Number.isInteger(E)?M=E:M=`${E.toFixed(1)}`.replace(/^(\d+)\.0+(?!\d)/,"$1")}return`${M||P}`}const m=c.computed(()=>{let P,L;const{fullReduce:T,unconditional:M}=a.rule;return T.enable?(P=d(T.reduce,T.unit),L=u(T.unit)):(P=d(M.value,M.unit),L=u(M.unit)),{value:P,unit:L}}),f=c.computed(()=>{const{condition:P,fullReduce:{full:L,reduce:T,unit:M},unconditional:{unit:I,value:E}}=a.rule;return P===r.UNCONDITIONAL?(I===o.MONEY?l("coupon.unconditional.money"):l("coupon.unconditional.discount")).replace("$0",`${d(E,I)}`):(M===o.MONEY?l("coupon.fullReduction.money"):l("coupon.fullReduction.discount")).replace("$0",`${L}`).replace("$1",`${d(T,M)}`)}),v=c.computed(()=>{if("sort"in a)return"";if(a.startTime&&a.endTime){const P="YYYY.MM.DD hh:mm";return`${Fi(a.startTime,P)} ${l("coupon.till")} ${Fi(a.endTime,P)}`}return""}),h=c.computed(()=>s&&a.status===t.NOT_START),b=c.computed(()=>{if("endTime"in a)return!1;const P=Date.now();return(a.receiveStartTime-P)/(1e3*60*60)>24}),g=c.computed(()=>{if("endTime"in a)return"";let P=0;if(b.value){const L=Date.now(),T=(a.receiveStartTime-L)/(1e3*60*60*24);P=Math.ceil(T)}return P?`${l("coupon.receiveTips.prefix")}${P}${l("coupon.receiveTips.suffix.1")}${a.dayOfUse>1?l("coupon.receiveTips.suffix.2"):""}`:""});let _=null;const y=c.ref("00"),C=c.ref("00"),x=c.ref("00");function k(){if("endTime"in a)return!1;const P=s,L=a.status===t.NOT_START,T=a.receiveStartTime>Date.now();return P&&L&&T&&!b.value}function Q(){if(!k()){S();return}function P(){if("endTime"in a)return;const L=Date.now(),T=a.receiveStartTime-L;if(T<=0){S(),n("count-down-finish",a);return}const M=Math.floor(T/(1e3*60*60)),I=Math.floor(T%(1e3*60*60)/(1e3*60)),E=Math.floor(T%(1e3*60)/1e3),A=M.toString().padStart(2,"0"),z=I.toString().padStart(2,"0"),D=E.toString().padStart(2,"0");y.value=A,C.value=z,x.value=D}P(),_=setInterval(()=>{P()},1e3)}function S(){_&&(clearInterval(_),_=null)}return c.onMounted(()=>{Q()}),c.onUnmounted(()=>{S()}),{countDownHours:y,countDownMinutes:C,countDownSeconds:x,unClaimedTips:g,isShowDayOfUse:b,discountSimpleDesc:m,discountDesc:f,useTimeRangeDesc:v,showNotStartTips:h}},aD=c.defineComponent({__name:"coupon-list-item",props:oD(),emits:iD(),setup(e,{emit:t}){const r=e,{$t:o,currentLang:i}=co(),{showNotStartTips:n,countDownHours:a,countDownMinutes:s,countDownSeconds:l,unClaimedTips:p,discountSimpleDesc:u,discountDesc:d,useTimeRangeDesc:m}=nD({props:r,emit:t});return{__sfc:!0,props:r,emit:t,$t:o,currentLang:i,showNotStartTips:n,countDownHours:a,countDownMinutes:s,countDownSeconds:l,unClaimedTips:p,discountSimpleDesc:u,discountDesc:d,useTimeRangeDesc:m}}});function vn(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),{exports:e,options:l}}var sD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{staticClass:"plv-iar-coupon-list-item",class:{"plv-iar-coupon-list--en":o.currentLang==="en","plv-iar-coupon-list--unclaimed":t.isUnclaimed,"plv-iar-coupon-list--claimed":!t.isUnclaimed}},[r("div",{staticClass:"plv-iar-coupon-list__left"},[r("div",{staticClass:"plv-iar-coupon-list__left__desc pwc-font-din-pro-regular"},[[r("span",[t._v(t._s(o.discountSimpleDesc.value))]),r("span",[t._v(t._s(o.discountSimpleDesc.unit))])]],2)]),r("div",{staticClass:"plv-iar-coupon-list__right"},[r("div",{staticClass:"plv-iar-coupon-list__desc"},[r("span",[t._v(t._s(o.discountDesc))]),r("div",{staticClass:"plv-iar-coupon-list__desc__bottom-wrapper"},[o.showNotStartTips?[r("div",{staticClass:"plv-iar-coupon-list__desc__bottom"},[o.unClaimedTips?r("span",[t._v(t._s(o.unClaimedTips))]):r("div",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down"},[r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down--first-text"},[t._v(" "+t._s(o.$t("coupon.countDown.prefix"))+" ")]),r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down__item"},[t._v(" "+t._s(o.countDownHours)+" ")]),r("span",[t._v(":")]),r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down__item"},[t._v(" "+t._s(o.countDownMinutes)+" ")]),r("span",[t._v(":")]),r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down__item"},[t._v(" "+t._s(o.countDownSeconds)+" ")]),r("span",[t._v(t._s(o.$t("coupon.countDown.suffix")))])])])]:[r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__use-time"},[t._v(t._s(o.useTimeRangeDesc))])]],2)]),t._t("coupon-operation",null,{couponData:t.couponData})],2)])},lD=[],cD=vn(aD,sD,lD);const A0=cD.exports,pD=()=>B({},Is()),uD=e=>{const{couponTarget:t,CouponEvent:r,CouponStatus:o}=Ms(e.props),{toast:i}=At({showIcon:!0}),{$t:n}=co(),{trackEvent:a}=EI(t.interactionCore),{scrollRef:s,contents:l,refresh:p}=hs(S=>t.getCouponCommonList({pageNumber:S.pageNumber,pageSize:30}));function u(){p()}function d(S){l.value.unshift(...S)}function m(S){return H(this,null,function*(){const P=S.map(L=>L.couponId);l.value=l.value.filter(L=>!P.includes(L.couponId))})}function f(S){S.forEach(P=>{const L=l.value.findIndex(T=>T.couponId===P.couponId);L!==-1&&l.value.splice(L,1,P)})}function v(){t.eventEmitter.on(r.RefreshCouponList,u),t.eventEmitter.on(r.AddCouponItem,d),t.eventEmitter.on(r.DeleteCouponItem,m),t.eventEmitter.on(r.UpdateCouponItem,f)}function h(){t.eventEmitter.off(r.RefreshCouponList,u),t.eventEmitter.off(r.AddCouponItem,d),t.eventEmitter.off(r.DeleteCouponItem,m),t.eventEmitter.off(r.UpdateCouponItem,f)}function b(S){const P=l.value.findIndex(L=>L.couponId===S.couponId);P!==-1&&(l.value[P].status=o.GOING)}function g(){l.value=[],p()}const _={refreshList:g},y=Ja(S=>H(exports,null,function*(){try{a({event_id:"coupon_click_receive",event_type:"click",spec_attrs:{clickTime:String(Date.now()),couponName:S.name,couponId:S.couponId}})}catch(P){console.warn("Claim coupon fail ",P)}try{yield t.receiveCoupon(S.couponId),i.success(n("coupon.claimSuccess"))}catch(P){const{code:L}=P;/1140|1141/.test(L.toString())?i.error(n("coupon.claimFail.unknownError")):L===1142?i.error(n("coupon.claimFail.receiveLimit")):L===1143&&(i.error(n("coupon.claimFail.snappedUp")),C(S))}}),500);function C(S){const P=l.value.findIndex(L=>L.couponId===S.couponId);P!==-1&&(l.value[P].remainAmount=0)}function x(S){return!(S>0)}const k=c.ref({});function Q(S){const P=k.value[S];return P||P===0?k.value[S]=P+1:k.value[S]=0,k.value[S]}return c.onMounted(()=>{v(),a({event_id:"coupon_view_list",event_type:"show",spec_attrs:{showTime:String(Date.now())}})}),c.onBeforeUnmount(()=>{h()}),{instance:_,refreshCouponCommonList:p,CouponStatus:o,couponCommonList:l,scrollRef:s,onCountDownFinish:b,claimCoupon:y,checkIsSnappedUp:x,getKeyFromCache:Q}},dD=c.defineComponent({__name:"normal-coupon-common-list",props:pD(),setup(e,{expose:t}){const r=e,{CouponStatus:o,couponCommonList:i,scrollRef:n,onCountDownFinish:a,claimCoupon:s,instance:l,checkIsSnappedUp:p,getKeyFromCache:u}=uD({props:r}),{$t:d}=co();return t(l),{__sfc:!0,props:r,CouponStatus:o,couponCommonList:i,scrollRef:n,onCountDownFinish:a,claimCoupon:s,instance:l,checkIsSnappedUp:p,getKeyFromCache:u,$t:d,CouponListItem:A0}}});var fD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{ref:"scrollRef",staticClass:"plv-iar-coupon-common-list"},[o.couponCommonList.length===0?r("div",{staticClass:"plv-iar-coupon-common-list--empty"},[r("span",[t._v(t._s(o.$t("coupon.empty")))])]):t._e(),t._l(o.couponCommonList,function(i){return r(o.CouponListItem,{key:`${i.couponId}-${o.getKeyFromCache(i.couponId)}`,attrs:{"coupon-data":i},on:{"count-down-finish":o.onCountDownFinish},scopedSlots:t._u([{key:"coupon-operation",fn:function(){return[r("div",{staticClass:"plv-iar-coupon-common-list-operate",class:{"plv-iar-coupon-common-list-operate-going":i.status===o.CouponStatus.GOING,"plv-iar-coupon-common-list-operate-wait-to-claim":i.status===o.CouponStatus.NOT_START,"plv-iar-coupon-common-list-operate-snapped-up":o.checkIsSnappedUp(i.remainAmount)}},[o.checkIsSnappedUp(i.remainAmount)?[r("span",[t._v(t._s(o.$t("coupon.SnappedUp")))])]:[i.status===o.CouponStatus.GOING?r("span",{on:{click:function(n){return o.claimCoupon(i)}}},[t._v(" "+t._s(o.$t("coupon.claim"))+" ")]):t._e(),i.status===o.CouponStatus.NOT_START?r("span",[t._v(t._s(o.$t("coupon.waitToClaim")))]):t._e()]],2)]},proxy:!0}],null,!0)})})],2)},mD=[],hD=vn(dD,fD,mD);const gD=hD.exports,vD=()=>B({},Is()),wD=e=>{const{couponTarget:t}=Ms(e.props),{scrollRef:r,contents:o,refresh:i}=hs(s=>t.getCouponUserList({pageNumber:s.pageNumber,pageSize:s.pageSize}));function n(){o.value=[],i()}return{instance:{refreshList:n},couponUserList:o,scrollRef:r}},bD=c.defineComponent({__name:"normal-coupon-user-list",props:vD(),setup(e,{expose:t}){const r=e,{couponUserList:o,scrollRef:i,instance:n}=wD({props:r}),{$t:a}=co();return t(n),{__sfc:!0,props:r,couponUserList:o,scrollRef:i,instance:n,$t:a,CouponListItem:A0}}});var _D=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{ref:"scrollRef",staticClass:"plv-iar-coupon-user-list"},[o.couponUserList.length===0?r("div",{staticClass:"plv-iar-coupon-user-list--empty"},[r("span",[t._v(t._s(o.$t("coupon.empty")))])]):t._e(),t._l(o.couponUserList,function(i,n){return r(o.CouponListItem,{key:n,attrs:{"coupon-data":i,"is-unclaimed":!1},scopedSlots:t._u([{key:"coupon-operation",fn:function(){return[r("div",{staticClass:"plv-iar-coupon-user-list-item-operation"})]},proxy:!0}],null,!0)})})],2)},yD=[],xD=vn(bD,_D,yD);const CD=xD.exports,SD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCA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ds1n83ahd7e6E/q16gHLXien89mLdu3N0eQgDI0pNsmJ2031f/mYO15UHc262+bnLQMDS36wwWWMunhbFZnFhG09jxoBvzhOtOLegQJ6ODwsJ2YnLTY8HPmmvQgaycmJ+3g8LCtpR4araQHBgasql2AtelBav1TAwMDS27T1SWo5EVi5ekod415kHFG6nlPuchSXQiol88/XpHToEL9/LNAQVWzoDA/9fOlyKGZl9W2h196Tgv5g2vNg9SbP9j+xD9GGrXS1Nu8vP7qrVjvvTXjQeq/J4dev7WZVpoj6LnxHC89u9PPTf9uyYJnu4IAnT91kNef3bmq/7FAHMXv3rjH6f/E3bj53YjXJVoUvDx4ueD7efUnHUv4Fxj18qvyVgPGib6qJlNWU+kFTSaftgv5x9p+9Ojzq9TLOtaxjnWsYx3rWMeaxv8AN4iXSSXAViIAAAAASUVORK5CYII=",kD=()=>G(B({},Is()),{visible:w.bool.def(!0),iconUrl:w.string.def("")});function LD(e){const{props:t}=e,{couponTarget:r,CouponEvent:o}=Ms(t),{$t:i}=co(),n=c.computed(()=>i("coupon.title")),a=c.ref(t.visible);function s(m){a.value=m.enable==="Y"}function l(){r.eventEmitter.on(o.SwitchCoupon,s)}function p(){r.eventEmitter.off(o.SwitchCoupon,s)}function u(){if(!r)return;const m=r.getCouponEnabled();a.value=m}const d=c.computed(()=>t.iconUrl||SD);return c.onMounted(()=>{l(),u()}),c.onBeforeUnmount(()=>{p()}),{couponPendantVisible:a,pendantIconUrl:d,content:n}}const PD=c.defineComponent({__name:"normal-coupon-pendant",props:kD(),setup(e){const t=e,{couponPendantVisible:r,pendantIconUrl:o,content:i}=LD({props:t});return{__sfc:!0,props:t,couponPendantVisible:r,pendantIconUrl:o,content:i,PwcNormalPendant:Cy}}});var TD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return o.couponPendantVisible?r(o.PwcNormalPendant,{staticClass:"plv-normal-coupon-pendant",attrs:{"icon-url":o.pendantIconUrl,text:o.content}}):t._e()},QD=[],ED=vn(PD,TD,QD);const ID=ED.exports;exports.NormalCouponCommonList=gD;exports.NormalCouponPendant=ID;exports.NormalCouponUserList=CD;console.log("%c@polyv/iar-coupon-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0]","[buildTime: 2026-03-13 02:42:00]");
|
package/index.es.js
CHANGED
|
@@ -27460,8 +27460,8 @@ const eO = qD.exports;
|
|
|
27460
27460
|
console.log(
|
|
27461
27461
|
"%c@polyv/iar-coupon-ui",
|
|
27462
27462
|
"background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
|
|
27463
|
-
"[version: 2.1.0
|
|
27464
|
-
"[buildTime: 2026-03-
|
|
27463
|
+
"[version: 2.1.0]",
|
|
27464
|
+
"[buildTime: 2026-03-13 02:41:59]"
|
|
27465
27465
|
);
|
|
27466
27466
|
export {
|
|
27467
27467
|
KD as NormalCouponCommonList,
|
package/index.umd.js
CHANGED
|
@@ -1004,4 +1004,4 @@ ${hi(r)}`),o}})}function Y0(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)},VM=[],FM=V(BM,$M,VM);const jM=FM.exports,UM=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=y0(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=x0(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:v0(),setup(e){const t=e,{leftColumnListInstance:r,centerColumnListInstance:o,rightColumnListInstance:i}=ze(),{columnList:a}=r,{columnList:n}=o,{columnList:s}=i,l=sM({props:t}),{rowClass:p,rowStyle:u}=UM(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:jM}}});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=V(WM,HM,ZM);const YM=qM.exports,GM=c.defineComponent({__name:"table-body-row-expand",props:v0(),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:Et}}});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=V(GM,XM,KM);const NM=JM.exports,eA=c.defineComponent({__name:"table-body",setup(e){const{allColumnWidth:t,tableProps:r,wrapWidth:o}=ze(),{bodyWrapRef:i,bodyRef:a}=pi(),{renderData:n,isEmptyData:s}=wa(),{getRenderRowKey:l}=zs(),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:g0,TableBodyRow:YM,TableBodyRowExpand:NM,PwcEmpty:Bn}}});var tA=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)])},rA=[],oA=V(eA,tA,rA);const iA=oA.exports,aA=["multiple","single","index","operation","tags","expand"],nA=["left","right"],sA=["left","center","right"],lA=c.defineComponent({__name:"table-fixed-shadow",props:{position:w.oneOf(sA).isRequired},setup(e){const t=e,{leftColumnListInstance:r,rightColumnListInstance:o}=ze(),{scrollXPosition:i,hasHorizontalScroll:a}=As(),{headerWrapSize:n,bodyWrapSize:s}=pi(),{isEmptyData:l}=wa(),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 cA=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()},pA=[],uA=V(lA,cA,pA);const dA=uA.exports,fA=()=>({column:w.object().isRequired}),C0=Symbol("table-header-cell-inject-key"),mA=e=>{const{props:t}=e,r=c.ref();return c.provide(C0,{headerCellRef:r,column:t.column}),{headerCellRef:r,column:t.column}},S0=()=>c.inject(C0),hA=c.defineComponent({__name:"header-cell-multiple",setup(e){const{renderData:t}=wa(),{column:r}=S0(),{inModelValue:o,multipleIsDisabled:i,removeModelValue:a,getColumnModelValue:n,deleteRowData:s}=b0(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 v=d[f];o(v)&&!i(v,f)&&s(m,v)}else for(let f=0;f<d.length&&!(m.length>=r.columnProps.multipleMax);f++){const v=d[f];!o(v)&&!i(v,f)&&m.push(v)}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 gA=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}})},vA=[],wA=V(hA,gA,vA);const bA=wA.exports,_A=c.defineComponent({__name:"header-cell-sort",setup(e){const{tableSortOrder:t}=ui(),{column:r,headerCellRef:o}=S0(),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 yA=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()},xA=[],CA=V(_A,yA,xA);const SA=CA.exports,kA=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})}},LA=c.defineComponent({__name:"table-header-cell",props:fA(),setup(e){const t=e,{$t:r}=ie(),{tableProps:o}=ze(),i=mA({props:t}),{headerCellRef:a}=i,{headerCellClass:n}=kA(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:Vo,vTooltip:_t,renderSlot:Et,HeaderCellMultiple:bA,HeaderCellSort:SA}}});var PA=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(B({},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)])},TA=[],QA=V(LA,PA,TA);const EA=QA.exports,IA=()=>{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())}},MA=c.defineComponent({__name:"table-header",setup(e){const{tableProps:t,allColumnWidth:r}=ze(),{headerWrapRef:o}=pi(),{headerStructure:i}=IA();return{__sfc:!0,tableProps:t,allColumnWidth:r,headerWrapRef:o,headerStructure:i,TableColgroup:g0,TableHeaderCell:EA}}});var AA=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)])},zA=[],DA=V(MA,AA,zA);const OA=DA.exports,RA=c.defineComponent({__name:"horizontal-scrollbar",setup(e){const{allColumnWidth:t}=ze(),{horizontalScrollbarRef:r,bodyWrapSize:o}=pi(),{hasHorizontalScroll:i}=As();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=[],VA=V(RA,BA,$A);const FA=VA.exports,jA=c.defineComponent({__name:"vertical-scrollbar",setup(e){const{headerWrapSize:t,bodyWrapSize:r,bodySize:o,verticalScrollbarRef:i}=pi(),{tableProps:a}=ze(),{hasVerticalScroll:n}=As(),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 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=V(jA,UA,WA);const ZA=HA.exports,qA=c.defineComponent({__name:"table-pagination",setup(e){const{tableEmit:t,tableProps:r}=ze(),{paginationModelValue:o}=u0(),i=c.computed(()=>{const n={hideOnSinglePage:!0};return typeof r.pagination=="boolean"?n:B(B({},n),r.pagination)});function a(n){t("page-change",n)}return{__sfc:!0,tableEmit:t,tableProps:r,paginationModelValue:o,paginationProps:i,onPaginationChange:a,PwcPagination:zu}}});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=V(qA,YA,GA);const KA=XA.exports,JA=()=>({data:w.oneOfType([Object,Array]).def([]),headerHeight:w.number.def(48),headerBgColor:w.looseString,headerSticky:w.bool.def(!1),footerSticky:w.bool.def(!1),footerBgColor:w.looseString,height:w.looseNumber,maxHeight:w.looseNumber,flexHeight:w.bool.def(!1),hoverRow:w.bool.def(!0),hoverColumn:w.bool.def(!1),rowKey:w.oneOfType([String,Function]),rowClassName:w.oneOfType([Function,Array,String]),rowStyle:w.oneOfType([Function,Object]),cellClassName:w.oneOfType([Function,Array,String]),cellStyle:w.oneOfType([Function,Object]),pagination:w.oneOfType([Object,Boolean]).def(!1),sort:w.object(),highlightSorted:w.bool.def(!0),border:w.bool.def(!1)}),NA=()=>({"page-change":H(),"sort-change":H()}),ez=()=>({[w.modelValueKey]:w.any,type:w.oneOf(aA),title:w.looseString,prop:w.looseString,width:w.oneOfType([Number,String]),minWidth:w.oneOfType([Number,String]),fixed:w.oneOf(nA),multipleMax:w.number.def(1/0),multipleDisabled:w.func(),singleDisabled:w.func(),headerTips:w.string,sortable:w.bool.def(!1),sortName:w.looseString,ellipsis:w.bool.def(!1),formatter:w.oneOfType([Object,Function,String]),showExpand:w.func(),emptyText:w.oneOfType([String,Boolean]).def(!1)}),tz=()=>B({},he()),rz=e=>{const{props:t}=e,r=Dg();return{footerClass:c.computed(()=>{const o=[];return t.footerSticky&&o.push("is-sticky"),r&&o.push("is-in-popup"),o})}},oz=c.defineComponent({__name:"table",props:JA(),emits:NA(),setup(e,{emit:t}){const r=e,{wrapRef:o,hasHorizontalScroll:i,hasVerticalScroll:a}=rM({props:r,emit:t}),{footerClass:n}=rz({props:r});return{__sfc:!0,props:r,emit:t,wrapRef:o,hasHorizontalScroll:i,hasVerticalScroll:a,footerClass:n,TableBody:iA,TableFixedShadow:dA,TableHeader:OA,HorizontalScrollbar:FA,VerticalScrollbar:ZA,TablePagination:KA}}});var iz=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=[],nz=V(oz,iz,az);const sz=nz.exports,k0=Symbol("COLUMN_CHILDREN_PROVIDE_KEY");function L0(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 lz=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}=L0(0);e.setColSpan=i,e.getColSpan=a;const{set:n,get:s}=L0(0);e.setRowSpan=n,e.getRowSpan=s,c.provide(k0,{addChildrenColumn:r,getChildrenColumns:o,level:1,setColSpan:i,getColSpan:a,setRowSpan:n,getRowSpan:s});const l=c.inject(k0,void 0);return l&&l.addChildrenColumn(e),{childrenColumnList:t,isChildrenColmn:!!l}},cz=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}},pz=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}},uz=e=>{const{columnProps:t}=e,{isEmptyData:r}=wa(),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}},dz=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}},fz=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},mz=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(B({},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}},hz=e=>{const{props:t}=e,{centerColumnListInstance:r,leftColumnListInstance:o,rightColumnListInstance:i,originalColumnListInstance:a}=ze(),{getModelValue:n,updateModelValue:s}=fe(t),l={columnId:Ut(8),columnProps:t,getModelValue:n,updateModelValue:s};dz(l),cz(l),uz(l),fz(l);const{getHeaderSlotData:p,getCellSlotData:u}=pz(l);mz(l);const{childrenColumnList:d,isChildrenColmn:m}=lz(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}},gz=c.defineComponent({__name:"table-column",props:ez(),emits:tz(),setup(e){const t=e,{getCellSlotData:r,getHeaderSlotData:o}=hz({props:t});return{__sfc:!0,props:t,getCellSlotData:r,getHeaderSlotData:o}}});var vz=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)},wz=[],bz=V(gz,vz,wz);const _z=bz.exports;N("PwcTable",sz),N("PwcTableColumn",_z);const yz=["line","rounded","text"],xz=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(yz).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),Cz=()=>X(B({},he()),{change:H()}),Sz=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),Ds=Symbol("tabs-inject-key"),kz=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:t,tabsProps:r,setCurrentTab:o}=c.inject(Ds),{$t:i}=ie(),a=c.ref(),n=c.ref(!1),{visible:s,toggle:l}=Ot();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:hp,renderSlot:Et}}});var Lz=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()])])},Pz=[],Tz=V(kz,Lz,Pz);const Qz=Tz.exports,Ez=c.defineComponent({__name:"tabs",props:xz(),emits:Cz(),setup(e,{emit:t}){const r=e,o=c.ref(),i=c.ref(),{modelValue:a,updateModelValue:n}=fe(r,{outSideUpdate:v=>{o.value=v}}),s=c.ref([]);function l(v){if(!s.value.includes(v)){if(typeof o.value>"u")if(typeof a.value>"u"){const h=v.getPaneName();u(h,!1)}else u(a.value,!1);s.value.push(v)}}function p(v){s.value=s.value.filter(h=>h!==v)}function u(v,h=!0){o.value!==v&&(o.value=v,n(v),h&&t("change",v))}const d=c.ref(0);function m(){return Z(this,null,function*(){var b;yield c.nextTick();const v=((b=i.value)==null?void 0:b.querySelectorAll("[data-pane-name]"))||[];let h=0;for(let g=0;g<v.length;g++)if(v[g].getAttribute("data-is-active")==="true"){h=g*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(Ds,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:Qz}}});var Iz=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)},Mz=[],Az=V(Ez,Iz,Mz);const zz=Az.exports,Dz=c.defineComponent({__name:"tab-pane",props:Sz(),setup(e){const t=e,r=Ut(8),o=c.inject(Ds),{hasSlot:i,slotRender:a}=Te(),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 Oz=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()])},Rz=[],Bz=V(Dz,Oz,Rz);const $z=Bz.exports;N("PwcTabs",zz),N("PwcTabPane",$z);const Vz={coupon:{title:"Coupon",unitMoney:"¥",unitDiscount:"%","unconditional.money":"¥$0 off","unconditional.discount":"$0% off","fullReduction.money":"Spend ¥$0 or more, get ¥$1 off","fullReduction.discount":"Spend ¥$0 or more, get $1% off",till:"to","receiveTips.prefix":"will be released in ","receiveTips.suffix.1":" day","receiveTips.suffix.2":"s","countDown.prefix":"will be released in ","countDown.suffix":"",claim:"Get it now",waitToClaim:"Get ready",SnappedUp:"Snapped up",claimSuccess:"Claim Success","claimFail.snappedUp":"Snapped up","claimFail.receiveLimit":"Maximum claim limit reached","claimFail.unknownError":"Claim Failed",toUse:"Use it",empty:"No coupons"}},Fz={coupon:{title:"クーポン",unitMoney:"円",unitDiscount:"割引","unconditional.money":"無条件、$0円引き","unconditional.discount":"無条件、$0% off","fullReduction.money":"$0円以上、$1円引き","fullReduction.discount":"$0円以上、$1% off",till:"まで","receiveTips.prefix":"","receiveTips.suffix.1":"日後に受け取れる","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" 後に受け取れる",claim:"今すぐ受け取る",waitToClaim:"まもなく開始",SnappedUp:"売り切れ",claimSuccess:"受け取り成功","claimFail.snappedUp":"売り切れ","claimFail.receiveLimit":"受け取り上限に達しました","claimFail.unknownError":"受け取り失敗",toUse:"使用する",empty:"クーポンはありません"}},jz={coupon:{title:"쿠폰",unitMoney:"원",unitDiscount:"할인","unconditional.money":"무조건, $0원 할인","unconditional.discount":"무조건, $0% off","fullReduction.money":"$0원 이상, $1원 할인","fullReduction.discount":"$0원 이상, $1% off",till:"부터","receiveTips.prefix":"","receiveTips.suffix.1":"일 후에 받을 수 있음","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" 후에 받을 수 있음",claim:"즉시 받기",waitToClaim:"곧 시작",SnappedUp:"매진",claimSuccess:"받기 성공","claimFail.snappedUp":"매진","claimFail.receiveLimit":"받기 한도 도달","claimFail.unknownError":"받기 실패",toUse:"사용하러 가기",empty:"쿠폰이 없습니다."}},Uz={coupon:{title:"Купоны",unitMoney:"юань",unitDiscount:"скидка","unconditional.money":"Без ограничений, скидка $0 юань","unconditional.discount":"Без ограничений, скидка $0%","fullReduction.money":"При заказе от $0 юань, скидка $1 юань","fullReduction.discount":"При заказе от $0 юань, скидка $1%",till:"до","receiveTips.prefix":"","receiveTips.suffix.1":"дней до получения","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" до получения",claim:"Получить сейчас",waitToClaim:"Скоро начнется",SnappedUp:"Раскуплено",claimSuccess:"Успешно получено","claimFail.snappedUp":"Раскуплено","claimFail.receiveLimit":"Достигнут лимит получения","claimFail.unknownError":"Ошибка получения",toUse:"Использовать",empty:"Нет доступных купонов"}},Wz={coupon:{title:"优惠券",unitMoney:"元",unitDiscount:"折","unconditional.money":"无门槛,减$0元","unconditional.discount":"无门槛,打$0折","fullReduction.money":"满$0元, 减$1元","fullReduction.discount":"满$0元, 打$1折",till:"至","receiveTips.prefix":"","receiveTips.suffix.1":"天后可领取","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" 后可领取",claim:"立即领取",waitToClaim:"即将开始",SnappedUp:"已抢光",claimSuccess:"领取成功","claimFail.snappedUp":"已抢光","claimFail.receiveLimit":"已达领取上限","claimFail.unknownError":"领取失败",toUse:"去使用",empty:"暂无优惠券"}},Hz={coupon:{title:"優惠券",unitMoney:"元",unitDiscount:"折","unconditional.money":"無門檻,減$0元","unconditional.discount":"無門檻,打$0折","fullReduction.money":"滿$0元, 減$1元","fullReduction.discount":"滿$0元, 打$1折",till:"至","receiveTips.prefix":"","receiveTips.suffix.1":"天後可領取","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" 後可領取",claim:"立即領取",waitToClaim:"即將開始",SnappedUp:"已搶光",claimSuccess:"領取成功","claimFail.snappedUp":"已搶光","claimFail.receiveLimit":"已達領取上限","claimFail.unknownError":"領取失敗",toUse:"去使用",empty:"暫無優惠券"}},{useI18n:mo}=Lp({zh_CN:Wz,zh_TW:Hz,en:Vz,ja:Fz,ko:jz,ru:Uz}),Os=()=>({couponTarget:w.object().isRequired}),P0=Symbol("COUPON_PROVIDE_KEY");function T0(e){const t=e.CouponEvent,r=e.CouponStatus,o=e.CouponUseTimeType,i=e.CouponRuleUnit,a=e.CouponRuleCondition;return{CouponEvent:t,CouponStatus:r,CouponUseTimeType:o,CouponRuleUnit:i,CouponRuleCondition:a}}const Rs=e=>{c.provide(P0,{getCouponTarget:()=>e.couponTarget});const t=e.couponTarget;return B({couponTarget:t},T0(t))},Zz=()=>{const t=c.inject(P0).getCouponTarget();return B({couponTarget:t},T0(t))},qz=()=>({couponData:w.object().isRequired,isUnclaimed:w.bool.def(!0)}),Yz=()=>({"count-down-finish":H()}),Gz=e=>{const{CouponStatus:t,CouponRuleCondition:r,CouponRuleUnit:o}=Zz(),{props:i,emit:a}=e,{couponData:n,isUnclaimed:s}=i,{$t:l,currentLang:p}=mo();function u(P){return P===o.MONEY?l("coupon.unitMoney"):/^zh[-_]/.test(p.value)?l("coupon.unitDiscount"):"% off"}function d(P,L,T){let M;if(L===o.DISCOUNT&&(!/^zh[-_]/.test(p.value)||T)){let E=(1-P/10)*100;Number.isInteger(E)?M=E:M=`${E.toFixed(1)}`.replace(/^(\d+)\.0+(?!\d)/,"$1")}return`${M||P}`}const m=c.computed(()=>{let P,L;const{fullReduce:T,unconditional:M}=n.rule;return T.enable?(P=d(T.reduce,T.unit),L=u(T.unit)):(P=d(M.value,M.unit),L=u(M.unit)),{value:P,unit:L}}),f=c.computed(()=>{const{condition:P,fullReduce:{full:L,reduce:T,unit:M},unconditional:{unit:I,value:E}}=n.rule;return P===r.UNCONDITIONAL?(I===o.MONEY?l("coupon.unconditional.money"):l("coupon.unconditional.discount")).replace("$0",`${d(E,I)}`):(M===o.MONEY?l("coupon.fullReduction.money"):l("coupon.fullReduction.discount")).replace("$0",`${L}`).replace("$1",`${d(T,M)}`)}),v=c.computed(()=>{if("sort"in n)return"";if(n.startTime&&n.endTime){const P="YYYY.MM.DD hh:mm";return`${Di(n.startTime,P)} ${l("coupon.till")} ${Di(n.endTime,P)}`}return""}),h=c.computed(()=>s&&n.status===t.NOT_START),b=c.computed(()=>{if("endTime"in n)return!1;const P=Date.now();return(n.receiveStartTime-P)/(1e3*60*60)>24}),g=c.computed(()=>{if("endTime"in n)return"";let P=0;if(b.value){const L=Date.now(),T=(n.receiveStartTime-L)/(1e3*60*60*24);P=Math.ceil(T)}return P?`${l("coupon.receiveTips.prefix")}${P}${l("coupon.receiveTips.suffix.1")}${n.dayOfUse>1?l("coupon.receiveTips.suffix.2"):""}`:""});let _=null;const y=c.ref("00"),C=c.ref("00"),x=c.ref("00");function k(){if("endTime"in n)return!1;const P=s,L=n.status===t.NOT_START,T=n.receiveStartTime>Date.now();return P&&L&&T&&!b.value}function Q(){if(!k()){S();return}function P(){if("endTime"in n)return;const L=Date.now(),T=n.receiveStartTime-L;if(T<=0){S(),a("count-down-finish",n);return}const M=Math.floor(T/(1e3*60*60)),I=Math.floor(T%(1e3*60*60)/(1e3*60)),E=Math.floor(T%(1e3*60)/1e3),A=M.toString().padStart(2,"0"),z=I.toString().padStart(2,"0"),D=E.toString().padStart(2,"0");y.value=A,C.value=z,x.value=D}P(),_=setInterval(()=>{P()},1e3)}function S(){_&&(clearInterval(_),_=null)}return c.onMounted(()=>{Q()}),c.onUnmounted(()=>{S()}),{countDownHours:y,countDownMinutes:C,countDownSeconds:x,unClaimedTips:g,isShowDayOfUse:b,discountSimpleDesc:m,discountDesc:f,useTimeRangeDesc:v,showNotStartTips:h}},Xz=c.defineComponent({__name:"coupon-list-item",props:qz(),emits:Yz(),setup(e,{emit:t}){const r=e,{$t:o,currentLang:i}=mo(),{showNotStartTips:a,countDownHours:n,countDownMinutes:s,countDownSeconds:l,unClaimedTips:p,discountSimpleDesc:u,discountDesc:d,useTimeRangeDesc:m}=Gz({props:r,emit:t});return{__sfc:!0,props:r,emit:t,$t:o,currentLang:i,showNotStartTips:a,countDownHours:n,countDownMinutes:s,countDownSeconds:l,unClaimedTips:p,discountSimpleDesc:u,discountDesc:d,useTimeRangeDesc:m}}});function _a(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),{exports:e,options:l}}var Kz=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{staticClass:"plv-iar-coupon-list-item",class:{"plv-iar-coupon-list--en":o.currentLang==="en","plv-iar-coupon-list--unclaimed":t.isUnclaimed,"plv-iar-coupon-list--claimed":!t.isUnclaimed}},[r("div",{staticClass:"plv-iar-coupon-list__left"},[r("div",{staticClass:"plv-iar-coupon-list__left__desc pwc-font-din-pro-regular"},[[r("span",[t._v(t._s(o.discountSimpleDesc.value))]),r("span",[t._v(t._s(o.discountSimpleDesc.unit))])]],2)]),r("div",{staticClass:"plv-iar-coupon-list__right"},[r("div",{staticClass:"plv-iar-coupon-list__desc"},[r("span",[t._v(t._s(o.discountDesc))]),r("div",{staticClass:"plv-iar-coupon-list__desc__bottom-wrapper"},[o.showNotStartTips?[r("div",{staticClass:"plv-iar-coupon-list__desc__bottom"},[o.unClaimedTips?r("span",[t._v(t._s(o.unClaimedTips))]):r("div",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down"},[r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down--first-text"},[t._v(" "+t._s(o.$t("coupon.countDown.prefix"))+" ")]),r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down__item"},[t._v(" "+t._s(o.countDownHours)+" ")]),r("span",[t._v(":")]),r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down__item"},[t._v(" "+t._s(o.countDownMinutes)+" ")]),r("span",[t._v(":")]),r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down__item"},[t._v(" "+t._s(o.countDownSeconds)+" ")]),r("span",[t._v(t._s(o.$t("coupon.countDown.suffix")))])])])]:[r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__use-time"},[t._v(t._s(o.useTimeRangeDesc))])]],2)]),t._t("coupon-operation",null,{couponData:t.couponData})],2)])},Jz=[],Nz=_a(Xz,Kz,Jz);const Q0=Nz.exports,eD=()=>B({},Os()),tD=e=>{const{couponTarget:t,CouponEvent:r,CouponStatus:o}=Rs(e.props),{toast:i}=Dt({showIcon:!0}),{$t:a}=mo(),{trackEvent:n}=LI(t.interactionCore),{scrollRef:s,contents:l,refresh:p}=Fn(S=>t.getCouponCommonList({pageNumber:S.pageNumber,pageSize:30}));function u(){p()}function d(S){l.value.unshift(...S)}function m(S){return Z(this,null,function*(){const P=S.map(L=>L.couponId);l.value=l.value.filter(L=>!P.includes(L.couponId))})}function f(S){S.forEach(P=>{const L=l.value.findIndex(T=>T.couponId===P.couponId);L!==-1&&l.value.splice(L,1,P)})}function v(){t.eventEmitter.on(r.RefreshCouponList,u),t.eventEmitter.on(r.AddCouponItem,d),t.eventEmitter.on(r.DeleteCouponItem,m),t.eventEmitter.on(r.UpdateCouponItem,f)}function h(){t.eventEmitter.off(r.RefreshCouponList,u),t.eventEmitter.off(r.AddCouponItem,d),t.eventEmitter.off(r.DeleteCouponItem,m),t.eventEmitter.off(r.UpdateCouponItem,f)}function b(S){const P=l.value.findIndex(L=>L.couponId===S.couponId);P!==-1&&(l.value[P].status=o.GOING)}function g(){l.value=[],p()}const _={refreshList:g},y=ln(S=>Z(this,null,function*(){try{n({event_id:"coupon_click_receive",event_type:"click",spec_attrs:{clickTime:String(Date.now()),couponName:S.name,couponId:S.couponId}})}catch(P){console.warn("Claim coupon fail ",P)}try{yield t.receiveCoupon(S.couponId),i.success(a("coupon.claimSuccess"))}catch(P){const{code:L}=P;/1140|1141/.test(L.toString())?i.error(a("coupon.claimFail.unknownError")):L===1142?i.error(a("coupon.claimFail.receiveLimit")):L===1143&&(i.error(a("coupon.claimFail.snappedUp")),C(S))}}),500);function C(S){const P=l.value.findIndex(L=>L.couponId===S.couponId);P!==-1&&(l.value[P].remainAmount=0)}function x(S){return!(S>0)}const k=c.ref({});function Q(S){const P=k.value[S];return P||P===0?k.value[S]=P+1:k.value[S]=0,k.value[S]}return c.onMounted(()=>{v(),n({event_id:"coupon_view_list",event_type:"show",spec_attrs:{showTime:String(Date.now())}})}),c.onBeforeUnmount(()=>{h()}),{instance:_,refreshCouponCommonList:p,CouponStatus:o,couponCommonList:l,scrollRef:s,onCountDownFinish:b,claimCoupon:y,checkIsSnappedUp:x,getKeyFromCache:Q}},rD=c.defineComponent({__name:"normal-coupon-common-list",props:eD(),setup(e,{expose:t}){const r=e,{CouponStatus:o,couponCommonList:i,scrollRef:a,onCountDownFinish:n,claimCoupon:s,instance:l,checkIsSnappedUp:p,getKeyFromCache:u}=tD({props:r}),{$t:d}=mo();return t(l),{__sfc:!0,props:r,CouponStatus:o,couponCommonList:i,scrollRef:a,onCountDownFinish:n,claimCoupon:s,instance:l,checkIsSnappedUp:p,getKeyFromCache:u,$t:d,CouponListItem:Q0}}});var oD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{ref:"scrollRef",staticClass:"plv-iar-coupon-common-list"},[o.couponCommonList.length===0?r("div",{staticClass:"plv-iar-coupon-common-list--empty"},[r("span",[t._v(t._s(o.$t("coupon.empty")))])]):t._e(),t._l(o.couponCommonList,function(i){return r(o.CouponListItem,{key:`${i.couponId}-${o.getKeyFromCache(i.couponId)}`,attrs:{"coupon-data":i},on:{"count-down-finish":o.onCountDownFinish},scopedSlots:t._u([{key:"coupon-operation",fn:function(){return[r("div",{staticClass:"plv-iar-coupon-common-list-operate",class:{"plv-iar-coupon-common-list-operate-going":i.status===o.CouponStatus.GOING,"plv-iar-coupon-common-list-operate-wait-to-claim":i.status===o.CouponStatus.NOT_START,"plv-iar-coupon-common-list-operate-snapped-up":o.checkIsSnappedUp(i.remainAmount)}},[o.checkIsSnappedUp(i.remainAmount)?[r("span",[t._v(t._s(o.$t("coupon.SnappedUp")))])]:[i.status===o.CouponStatus.GOING?r("span",{on:{click:function(a){return o.claimCoupon(i)}}},[t._v(" "+t._s(o.$t("coupon.claim"))+" ")]):t._e(),i.status===o.CouponStatus.NOT_START?r("span",[t._v(t._s(o.$t("coupon.waitToClaim")))]):t._e()]],2)]},proxy:!0}],null,!0)})})],2)},iD=[],aD=_a(rD,oD,iD);const nD=aD.exports,sD=()=>B({},Os()),lD=e=>{const{couponTarget:t}=Rs(e.props),{scrollRef:r,contents:o,refresh:i}=Fn(s=>t.getCouponUserList({pageNumber:s.pageNumber,pageSize:s.pageSize}));function a(){o.value=[],i()}return{instance:{refreshList:a},couponUserList:o,scrollRef:r}},cD=c.defineComponent({__name:"normal-coupon-user-list",props:sD(),setup(e,{expose:t}){const r=e,{couponUserList:o,scrollRef:i,instance:a}=lD({props:r}),{$t:n}=mo();return t(a),{__sfc:!0,props:r,couponUserList:o,scrollRef:i,instance:a,$t:n,CouponListItem:Q0}}});var pD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{ref:"scrollRef",staticClass:"plv-iar-coupon-user-list"},[o.couponUserList.length===0?r("div",{staticClass:"plv-iar-coupon-user-list--empty"},[r("span",[t._v(t._s(o.$t("coupon.empty")))])]):t._e(),t._l(o.couponUserList,function(i,a){return r(o.CouponListItem,{key:a,attrs:{"coupon-data":i,"is-unclaimed":!1},scopedSlots:t._u([{key:"coupon-operation",fn:function(){return[r("div",{staticClass:"plv-iar-coupon-user-list-item-operation"})]},proxy:!0}],null,!0)})})],2)},uD=[],dD=_a(cD,pD,uD);const fD=dD.exports,mD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAArFSURBVHic7ZxbbBzVHcZ//zPr3fX6FscsIZhLoFQlF6RGKYUKKTIKpQ+gqrQ1qFIBVahCtGlFJSqVChGHh7YIqapK2j7wUAovgCuitoIHQMKlFy6FqmrLpZASILGJ7cRObO/aOztz/n2Y2Z3Z9a5313aayPInH43nzLn8zzff+ebMGSewjnWsYx1nDtJqhdwNm3cZwzdBdqtwKZA6PaGtGgqivA/6krU80vHMx2+0UrlpgvT6TR0LaechhbuWFeZZAoFfpRf878tz47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7WZVpoj6LnxHC89u9PPTf9uyYJnu4IAnT91kNef3bmq/7FAHMXv3rjH6f/E3bj53YjXJVoUvDx4ueD7efUnHUv4Fxj18qvyVgPGib6qJlNWU+kFTSaftgv5x9p+9Ojzq9TLOtaxjnWsYx3rWMeaxv8AN4iXSSXAViIAAAAASUVORK5CYII=",hD=()=>X(B({},Os()),{visible:w.bool.def(!0),iconUrl:w.string.def("")});function gD(e){const{props:t}=e,{couponTarget:r,CouponEvent:o}=Rs(t),{$t:i}=mo(),a=c.computed(()=>i("coupon.title")),n=c.ref(t.visible);function s(m){n.value=m.enable==="Y"}function l(){r.eventEmitter.on(o.SwitchCoupon,s)}function p(){r.eventEmitter.off(o.SwitchCoupon,s)}function u(){if(!r)return;const m=r.getCouponEnabled();n.value=m}const d=c.computed(()=>t.iconUrl||mD);return c.onMounted(()=>{l(),u()}),c.onBeforeUnmount(()=>{p()}),{couponPendantVisible:n,pendantIconUrl:d,content:a}}const vD=c.defineComponent({__name:"normal-coupon-pendant",props:hD(),setup(e){const t=e,{couponPendantVisible:r,pendantIconUrl:o,content:i}=gD({props:t});return{__sfc:!0,props:t,couponPendantVisible:r,pendantIconUrl:o,content:i,PwcNormalPendant:by}}});var wD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return o.couponPendantVisible?r(o.PwcNormalPendant,{staticClass:"plv-normal-coupon-pendant",attrs:{"icon-url":o.pendantIconUrl,text:o.content}}):t._e()},bD=[],_D=_a(vD,wD,bD);const yD=_D.exports;pe.NormalCouponCommonList=nD,pe.NormalCouponPendant=yD,pe.NormalCouponUserList=fD,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})});console.log("%c@polyv/iar-coupon-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0-rc-20260312.1]","[buildTime: 2026-03-11 10:10:05]");
|
|
1007
|
+
}`}],staticClass:"pwc-table-body-cell__content"},[e._v(" "+e._s(r.cellText)+" ")])],2)},VM=[],FM=V(BM,$M,VM);const jM=FM.exports,UM=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=y0(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=x0(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:v0(),setup(e){const t=e,{leftColumnListInstance:r,centerColumnListInstance:o,rightColumnListInstance:i}=ze(),{columnList:a}=r,{columnList:n}=o,{columnList:s}=i,l=sM({props:t}),{rowClass:p,rowStyle:u}=UM(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:jM}}});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=V(WM,HM,ZM);const YM=qM.exports,GM=c.defineComponent({__name:"table-body-row-expand",props:v0(),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:Et}}});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=V(GM,XM,KM);const NM=JM.exports,eA=c.defineComponent({__name:"table-body",setup(e){const{allColumnWidth:t,tableProps:r,wrapWidth:o}=ze(),{bodyWrapRef:i,bodyRef:a}=pi(),{renderData:n,isEmptyData:s}=wa(),{getRenderRowKey:l}=zs(),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:g0,TableBodyRow:YM,TableBodyRowExpand:NM,PwcEmpty:Bn}}});var tA=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)])},rA=[],oA=V(eA,tA,rA);const iA=oA.exports,aA=["multiple","single","index","operation","tags","expand"],nA=["left","right"],sA=["left","center","right"],lA=c.defineComponent({__name:"table-fixed-shadow",props:{position:w.oneOf(sA).isRequired},setup(e){const t=e,{leftColumnListInstance:r,rightColumnListInstance:o}=ze(),{scrollXPosition:i,hasHorizontalScroll:a}=As(),{headerWrapSize:n,bodyWrapSize:s}=pi(),{isEmptyData:l}=wa(),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 cA=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()},pA=[],uA=V(lA,cA,pA);const dA=uA.exports,fA=()=>({column:w.object().isRequired}),C0=Symbol("table-header-cell-inject-key"),mA=e=>{const{props:t}=e,r=c.ref();return c.provide(C0,{headerCellRef:r,column:t.column}),{headerCellRef:r,column:t.column}},S0=()=>c.inject(C0),hA=c.defineComponent({__name:"header-cell-multiple",setup(e){const{renderData:t}=wa(),{column:r}=S0(),{inModelValue:o,multipleIsDisabled:i,removeModelValue:a,getColumnModelValue:n,deleteRowData:s}=b0(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 v=d[f];o(v)&&!i(v,f)&&s(m,v)}else for(let f=0;f<d.length&&!(m.length>=r.columnProps.multipleMax);f++){const v=d[f];!o(v)&&!i(v,f)&&m.push(v)}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 gA=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}})},vA=[],wA=V(hA,gA,vA);const bA=wA.exports,_A=c.defineComponent({__name:"header-cell-sort",setup(e){const{tableSortOrder:t}=ui(),{column:r,headerCellRef:o}=S0(),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 yA=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()},xA=[],CA=V(_A,yA,xA);const SA=CA.exports,kA=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})}},LA=c.defineComponent({__name:"table-header-cell",props:fA(),setup(e){const t=e,{$t:r}=ie(),{tableProps:o}=ze(),i=mA({props:t}),{headerCellRef:a}=i,{headerCellClass:n}=kA(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:Vo,vTooltip:_t,renderSlot:Et,HeaderCellMultiple:bA,HeaderCellSort:SA}}});var PA=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(B({},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)])},TA=[],QA=V(LA,PA,TA);const EA=QA.exports,IA=()=>{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())}},MA=c.defineComponent({__name:"table-header",setup(e){const{tableProps:t,allColumnWidth:r}=ze(),{headerWrapRef:o}=pi(),{headerStructure:i}=IA();return{__sfc:!0,tableProps:t,allColumnWidth:r,headerWrapRef:o,headerStructure:i,TableColgroup:g0,TableHeaderCell:EA}}});var AA=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)])},zA=[],DA=V(MA,AA,zA);const OA=DA.exports,RA=c.defineComponent({__name:"horizontal-scrollbar",setup(e){const{allColumnWidth:t}=ze(),{horizontalScrollbarRef:r,bodyWrapSize:o}=pi(),{hasHorizontalScroll:i}=As();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=[],VA=V(RA,BA,$A);const FA=VA.exports,jA=c.defineComponent({__name:"vertical-scrollbar",setup(e){const{headerWrapSize:t,bodyWrapSize:r,bodySize:o,verticalScrollbarRef:i}=pi(),{tableProps:a}=ze(),{hasVerticalScroll:n}=As(),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 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=V(jA,UA,WA);const ZA=HA.exports,qA=c.defineComponent({__name:"table-pagination",setup(e){const{tableEmit:t,tableProps:r}=ze(),{paginationModelValue:o}=u0(),i=c.computed(()=>{const n={hideOnSinglePage:!0};return typeof r.pagination=="boolean"?n:B(B({},n),r.pagination)});function a(n){t("page-change",n)}return{__sfc:!0,tableEmit:t,tableProps:r,paginationModelValue:o,paginationProps:i,onPaginationChange:a,PwcPagination:zu}}});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=V(qA,YA,GA);const KA=XA.exports,JA=()=>({data:w.oneOfType([Object,Array]).def([]),headerHeight:w.number.def(48),headerBgColor:w.looseString,headerSticky:w.bool.def(!1),footerSticky:w.bool.def(!1),footerBgColor:w.looseString,height:w.looseNumber,maxHeight:w.looseNumber,flexHeight:w.bool.def(!1),hoverRow:w.bool.def(!0),hoverColumn:w.bool.def(!1),rowKey:w.oneOfType([String,Function]),rowClassName:w.oneOfType([Function,Array,String]),rowStyle:w.oneOfType([Function,Object]),cellClassName:w.oneOfType([Function,Array,String]),cellStyle:w.oneOfType([Function,Object]),pagination:w.oneOfType([Object,Boolean]).def(!1),sort:w.object(),highlightSorted:w.bool.def(!0),border:w.bool.def(!1)}),NA=()=>({"page-change":H(),"sort-change":H()}),ez=()=>({[w.modelValueKey]:w.any,type:w.oneOf(aA),title:w.looseString,prop:w.looseString,width:w.oneOfType([Number,String]),minWidth:w.oneOfType([Number,String]),fixed:w.oneOf(nA),multipleMax:w.number.def(1/0),multipleDisabled:w.func(),singleDisabled:w.func(),headerTips:w.string,sortable:w.bool.def(!1),sortName:w.looseString,ellipsis:w.bool.def(!1),formatter:w.oneOfType([Object,Function,String]),showExpand:w.func(),emptyText:w.oneOfType([String,Boolean]).def(!1)}),tz=()=>B({},he()),rz=e=>{const{props:t}=e,r=Dg();return{footerClass:c.computed(()=>{const o=[];return t.footerSticky&&o.push("is-sticky"),r&&o.push("is-in-popup"),o})}},oz=c.defineComponent({__name:"table",props:JA(),emits:NA(),setup(e,{emit:t}){const r=e,{wrapRef:o,hasHorizontalScroll:i,hasVerticalScroll:a}=rM({props:r,emit:t}),{footerClass:n}=rz({props:r});return{__sfc:!0,props:r,emit:t,wrapRef:o,hasHorizontalScroll:i,hasVerticalScroll:a,footerClass:n,TableBody:iA,TableFixedShadow:dA,TableHeader:OA,HorizontalScrollbar:FA,VerticalScrollbar:ZA,TablePagination:KA}}});var iz=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=[],nz=V(oz,iz,az);const sz=nz.exports,k0=Symbol("COLUMN_CHILDREN_PROVIDE_KEY");function L0(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 lz=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}=L0(0);e.setColSpan=i,e.getColSpan=a;const{set:n,get:s}=L0(0);e.setRowSpan=n,e.getRowSpan=s,c.provide(k0,{addChildrenColumn:r,getChildrenColumns:o,level:1,setColSpan:i,getColSpan:a,setRowSpan:n,getRowSpan:s});const l=c.inject(k0,void 0);return l&&l.addChildrenColumn(e),{childrenColumnList:t,isChildrenColmn:!!l}},cz=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}},pz=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}},uz=e=>{const{columnProps:t}=e,{isEmptyData:r}=wa(),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}},dz=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}},fz=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},mz=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(B({},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}},hz=e=>{const{props:t}=e,{centerColumnListInstance:r,leftColumnListInstance:o,rightColumnListInstance:i,originalColumnListInstance:a}=ze(),{getModelValue:n,updateModelValue:s}=fe(t),l={columnId:Ut(8),columnProps:t,getModelValue:n,updateModelValue:s};dz(l),cz(l),uz(l),fz(l);const{getHeaderSlotData:p,getCellSlotData:u}=pz(l);mz(l);const{childrenColumnList:d,isChildrenColmn:m}=lz(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}},gz=c.defineComponent({__name:"table-column",props:ez(),emits:tz(),setup(e){const t=e,{getCellSlotData:r,getHeaderSlotData:o}=hz({props:t});return{__sfc:!0,props:t,getCellSlotData:r,getHeaderSlotData:o}}});var vz=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)},wz=[],bz=V(gz,vz,wz);const _z=bz.exports;N("PwcTable",sz),N("PwcTableColumn",_z);const yz=["line","rounded","text"],xz=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(yz).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),Cz=()=>X(B({},he()),{change:H()}),Sz=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),Ds=Symbol("tabs-inject-key"),kz=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:t,tabsProps:r,setCurrentTab:o}=c.inject(Ds),{$t:i}=ie(),a=c.ref(),n=c.ref(!1),{visible:s,toggle:l}=Ot();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:hp,renderSlot:Et}}});var Lz=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()])])},Pz=[],Tz=V(kz,Lz,Pz);const Qz=Tz.exports,Ez=c.defineComponent({__name:"tabs",props:xz(),emits:Cz(),setup(e,{emit:t}){const r=e,o=c.ref(),i=c.ref(),{modelValue:a,updateModelValue:n}=fe(r,{outSideUpdate:v=>{o.value=v}}),s=c.ref([]);function l(v){if(!s.value.includes(v)){if(typeof o.value>"u")if(typeof a.value>"u"){const h=v.getPaneName();u(h,!1)}else u(a.value,!1);s.value.push(v)}}function p(v){s.value=s.value.filter(h=>h!==v)}function u(v,h=!0){o.value!==v&&(o.value=v,n(v),h&&t("change",v))}const d=c.ref(0);function m(){return Z(this,null,function*(){var b;yield c.nextTick();const v=((b=i.value)==null?void 0:b.querySelectorAll("[data-pane-name]"))||[];let h=0;for(let g=0;g<v.length;g++)if(v[g].getAttribute("data-is-active")==="true"){h=g*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(Ds,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:Qz}}});var Iz=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)},Mz=[],Az=V(Ez,Iz,Mz);const zz=Az.exports,Dz=c.defineComponent({__name:"tab-pane",props:Sz(),setup(e){const t=e,r=Ut(8),o=c.inject(Ds),{hasSlot:i,slotRender:a}=Te(),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 Oz=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()])},Rz=[],Bz=V(Dz,Oz,Rz);const $z=Bz.exports;N("PwcTabs",zz),N("PwcTabPane",$z);const Vz={coupon:{title:"Coupon",unitMoney:"¥",unitDiscount:"%","unconditional.money":"¥$0 off","unconditional.discount":"$0% off","fullReduction.money":"Spend ¥$0 or more, get ¥$1 off","fullReduction.discount":"Spend ¥$0 or more, get $1% off",till:"to","receiveTips.prefix":"will be released in ","receiveTips.suffix.1":" day","receiveTips.suffix.2":"s","countDown.prefix":"will be released in ","countDown.suffix":"",claim:"Get it now",waitToClaim:"Get ready",SnappedUp:"Snapped up",claimSuccess:"Claim Success","claimFail.snappedUp":"Snapped up","claimFail.receiveLimit":"Maximum claim limit reached","claimFail.unknownError":"Claim Failed",toUse:"Use it",empty:"No coupons"}},Fz={coupon:{title:"クーポン",unitMoney:"円",unitDiscount:"割引","unconditional.money":"無条件、$0円引き","unconditional.discount":"無条件、$0% off","fullReduction.money":"$0円以上、$1円引き","fullReduction.discount":"$0円以上、$1% off",till:"まで","receiveTips.prefix":"","receiveTips.suffix.1":"日後に受け取れる","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" 後に受け取れる",claim:"今すぐ受け取る",waitToClaim:"まもなく開始",SnappedUp:"売り切れ",claimSuccess:"受け取り成功","claimFail.snappedUp":"売り切れ","claimFail.receiveLimit":"受け取り上限に達しました","claimFail.unknownError":"受け取り失敗",toUse:"使用する",empty:"クーポンはありません"}},jz={coupon:{title:"쿠폰",unitMoney:"원",unitDiscount:"할인","unconditional.money":"무조건, $0원 할인","unconditional.discount":"무조건, $0% off","fullReduction.money":"$0원 이상, $1원 할인","fullReduction.discount":"$0원 이상, $1% off",till:"부터","receiveTips.prefix":"","receiveTips.suffix.1":"일 후에 받을 수 있음","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" 후에 받을 수 있음",claim:"즉시 받기",waitToClaim:"곧 시작",SnappedUp:"매진",claimSuccess:"받기 성공","claimFail.snappedUp":"매진","claimFail.receiveLimit":"받기 한도 도달","claimFail.unknownError":"받기 실패",toUse:"사용하러 가기",empty:"쿠폰이 없습니다."}},Uz={coupon:{title:"Купоны",unitMoney:"юань",unitDiscount:"скидка","unconditional.money":"Без ограничений, скидка $0 юань","unconditional.discount":"Без ограничений, скидка $0%","fullReduction.money":"При заказе от $0 юань, скидка $1 юань","fullReduction.discount":"При заказе от $0 юань, скидка $1%",till:"до","receiveTips.prefix":"","receiveTips.suffix.1":"дней до получения","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" до получения",claim:"Получить сейчас",waitToClaim:"Скоро начнется",SnappedUp:"Раскуплено",claimSuccess:"Успешно получено","claimFail.snappedUp":"Раскуплено","claimFail.receiveLimit":"Достигнут лимит получения","claimFail.unknownError":"Ошибка получения",toUse:"Использовать",empty:"Нет доступных купонов"}},Wz={coupon:{title:"优惠券",unitMoney:"元",unitDiscount:"折","unconditional.money":"无门槛,减$0元","unconditional.discount":"无门槛,打$0折","fullReduction.money":"满$0元, 减$1元","fullReduction.discount":"满$0元, 打$1折",till:"至","receiveTips.prefix":"","receiveTips.suffix.1":"天后可领取","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" 后可领取",claim:"立即领取",waitToClaim:"即将开始",SnappedUp:"已抢光",claimSuccess:"领取成功","claimFail.snappedUp":"已抢光","claimFail.receiveLimit":"已达领取上限","claimFail.unknownError":"领取失败",toUse:"去使用",empty:"暂无优惠券"}},Hz={coupon:{title:"優惠券",unitMoney:"元",unitDiscount:"折","unconditional.money":"無門檻,減$0元","unconditional.discount":"無門檻,打$0折","fullReduction.money":"滿$0元, 減$1元","fullReduction.discount":"滿$0元, 打$1折",till:"至","receiveTips.prefix":"","receiveTips.suffix.1":"天後可領取","receiveTips.suffix.2":"","countDown.prefix":"","countDown.suffix":" 後可領取",claim:"立即領取",waitToClaim:"即將開始",SnappedUp:"已搶光",claimSuccess:"領取成功","claimFail.snappedUp":"已搶光","claimFail.receiveLimit":"已達領取上限","claimFail.unknownError":"領取失敗",toUse:"去使用",empty:"暫無優惠券"}},{useI18n:mo}=Lp({zh_CN:Wz,zh_TW:Hz,en:Vz,ja:Fz,ko:jz,ru:Uz}),Os=()=>({couponTarget:w.object().isRequired}),P0=Symbol("COUPON_PROVIDE_KEY");function T0(e){const t=e.CouponEvent,r=e.CouponStatus,o=e.CouponUseTimeType,i=e.CouponRuleUnit,a=e.CouponRuleCondition;return{CouponEvent:t,CouponStatus:r,CouponUseTimeType:o,CouponRuleUnit:i,CouponRuleCondition:a}}const Rs=e=>{c.provide(P0,{getCouponTarget:()=>e.couponTarget});const t=e.couponTarget;return B({couponTarget:t},T0(t))},Zz=()=>{const t=c.inject(P0).getCouponTarget();return B({couponTarget:t},T0(t))},qz=()=>({couponData:w.object().isRequired,isUnclaimed:w.bool.def(!0)}),Yz=()=>({"count-down-finish":H()}),Gz=e=>{const{CouponStatus:t,CouponRuleCondition:r,CouponRuleUnit:o}=Zz(),{props:i,emit:a}=e,{couponData:n,isUnclaimed:s}=i,{$t:l,currentLang:p}=mo();function u(P){return P===o.MONEY?l("coupon.unitMoney"):/^zh[-_]/.test(p.value)?l("coupon.unitDiscount"):"% off"}function d(P,L,T){let M;if(L===o.DISCOUNT&&(!/^zh[-_]/.test(p.value)||T)){let E=(1-P/10)*100;Number.isInteger(E)?M=E:M=`${E.toFixed(1)}`.replace(/^(\d+)\.0+(?!\d)/,"$1")}return`${M||P}`}const m=c.computed(()=>{let P,L;const{fullReduce:T,unconditional:M}=n.rule;return T.enable?(P=d(T.reduce,T.unit),L=u(T.unit)):(P=d(M.value,M.unit),L=u(M.unit)),{value:P,unit:L}}),f=c.computed(()=>{const{condition:P,fullReduce:{full:L,reduce:T,unit:M},unconditional:{unit:I,value:E}}=n.rule;return P===r.UNCONDITIONAL?(I===o.MONEY?l("coupon.unconditional.money"):l("coupon.unconditional.discount")).replace("$0",`${d(E,I)}`):(M===o.MONEY?l("coupon.fullReduction.money"):l("coupon.fullReduction.discount")).replace("$0",`${L}`).replace("$1",`${d(T,M)}`)}),v=c.computed(()=>{if("sort"in n)return"";if(n.startTime&&n.endTime){const P="YYYY.MM.DD hh:mm";return`${Di(n.startTime,P)} ${l("coupon.till")} ${Di(n.endTime,P)}`}return""}),h=c.computed(()=>s&&n.status===t.NOT_START),b=c.computed(()=>{if("endTime"in n)return!1;const P=Date.now();return(n.receiveStartTime-P)/(1e3*60*60)>24}),g=c.computed(()=>{if("endTime"in n)return"";let P=0;if(b.value){const L=Date.now(),T=(n.receiveStartTime-L)/(1e3*60*60*24);P=Math.ceil(T)}return P?`${l("coupon.receiveTips.prefix")}${P}${l("coupon.receiveTips.suffix.1")}${n.dayOfUse>1?l("coupon.receiveTips.suffix.2"):""}`:""});let _=null;const y=c.ref("00"),C=c.ref("00"),x=c.ref("00");function k(){if("endTime"in n)return!1;const P=s,L=n.status===t.NOT_START,T=n.receiveStartTime>Date.now();return P&&L&&T&&!b.value}function Q(){if(!k()){S();return}function P(){if("endTime"in n)return;const L=Date.now(),T=n.receiveStartTime-L;if(T<=0){S(),a("count-down-finish",n);return}const M=Math.floor(T/(1e3*60*60)),I=Math.floor(T%(1e3*60*60)/(1e3*60)),E=Math.floor(T%(1e3*60)/1e3),A=M.toString().padStart(2,"0"),z=I.toString().padStart(2,"0"),D=E.toString().padStart(2,"0");y.value=A,C.value=z,x.value=D}P(),_=setInterval(()=>{P()},1e3)}function S(){_&&(clearInterval(_),_=null)}return c.onMounted(()=>{Q()}),c.onUnmounted(()=>{S()}),{countDownHours:y,countDownMinutes:C,countDownSeconds:x,unClaimedTips:g,isShowDayOfUse:b,discountSimpleDesc:m,discountDesc:f,useTimeRangeDesc:v,showNotStartTips:h}},Xz=c.defineComponent({__name:"coupon-list-item",props:qz(),emits:Yz(),setup(e,{emit:t}){const r=e,{$t:o,currentLang:i}=mo(),{showNotStartTips:a,countDownHours:n,countDownMinutes:s,countDownSeconds:l,unClaimedTips:p,discountSimpleDesc:u,discountDesc:d,useTimeRangeDesc:m}=Gz({props:r,emit:t});return{__sfc:!0,props:r,emit:t,$t:o,currentLang:i,showNotStartTips:a,countDownHours:n,countDownMinutes:s,countDownSeconds:l,unClaimedTips:p,discountSimpleDesc:u,discountDesc:d,useTimeRangeDesc:m}}});function _a(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),{exports:e,options:l}}var Kz=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{staticClass:"plv-iar-coupon-list-item",class:{"plv-iar-coupon-list--en":o.currentLang==="en","plv-iar-coupon-list--unclaimed":t.isUnclaimed,"plv-iar-coupon-list--claimed":!t.isUnclaimed}},[r("div",{staticClass:"plv-iar-coupon-list__left"},[r("div",{staticClass:"plv-iar-coupon-list__left__desc pwc-font-din-pro-regular"},[[r("span",[t._v(t._s(o.discountSimpleDesc.value))]),r("span",[t._v(t._s(o.discountSimpleDesc.unit))])]],2)]),r("div",{staticClass:"plv-iar-coupon-list__right"},[r("div",{staticClass:"plv-iar-coupon-list__desc"},[r("span",[t._v(t._s(o.discountDesc))]),r("div",{staticClass:"plv-iar-coupon-list__desc__bottom-wrapper"},[o.showNotStartTips?[r("div",{staticClass:"plv-iar-coupon-list__desc__bottom"},[o.unClaimedTips?r("span",[t._v(t._s(o.unClaimedTips))]):r("div",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down"},[r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down--first-text"},[t._v(" "+t._s(o.$t("coupon.countDown.prefix"))+" ")]),r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down__item"},[t._v(" "+t._s(o.countDownHours)+" ")]),r("span",[t._v(":")]),r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down__item"},[t._v(" "+t._s(o.countDownMinutes)+" ")]),r("span",[t._v(":")]),r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__count-down__item"},[t._v(" "+t._s(o.countDownSeconds)+" ")]),r("span",[t._v(t._s(o.$t("coupon.countDown.suffix")))])])])]:[r("span",{staticClass:"plv-iar-coupon-list__desc__bottom__use-time"},[t._v(t._s(o.useTimeRangeDesc))])]],2)]),t._t("coupon-operation",null,{couponData:t.couponData})],2)])},Jz=[],Nz=_a(Xz,Kz,Jz);const Q0=Nz.exports,eD=()=>B({},Os()),tD=e=>{const{couponTarget:t,CouponEvent:r,CouponStatus:o}=Rs(e.props),{toast:i}=Dt({showIcon:!0}),{$t:a}=mo(),{trackEvent:n}=LI(t.interactionCore),{scrollRef:s,contents:l,refresh:p}=Fn(S=>t.getCouponCommonList({pageNumber:S.pageNumber,pageSize:30}));function u(){p()}function d(S){l.value.unshift(...S)}function m(S){return Z(this,null,function*(){const P=S.map(L=>L.couponId);l.value=l.value.filter(L=>!P.includes(L.couponId))})}function f(S){S.forEach(P=>{const L=l.value.findIndex(T=>T.couponId===P.couponId);L!==-1&&l.value.splice(L,1,P)})}function v(){t.eventEmitter.on(r.RefreshCouponList,u),t.eventEmitter.on(r.AddCouponItem,d),t.eventEmitter.on(r.DeleteCouponItem,m),t.eventEmitter.on(r.UpdateCouponItem,f)}function h(){t.eventEmitter.off(r.RefreshCouponList,u),t.eventEmitter.off(r.AddCouponItem,d),t.eventEmitter.off(r.DeleteCouponItem,m),t.eventEmitter.off(r.UpdateCouponItem,f)}function b(S){const P=l.value.findIndex(L=>L.couponId===S.couponId);P!==-1&&(l.value[P].status=o.GOING)}function g(){l.value=[],p()}const _={refreshList:g},y=ln(S=>Z(this,null,function*(){try{n({event_id:"coupon_click_receive",event_type:"click",spec_attrs:{clickTime:String(Date.now()),couponName:S.name,couponId:S.couponId}})}catch(P){console.warn("Claim coupon fail ",P)}try{yield t.receiveCoupon(S.couponId),i.success(a("coupon.claimSuccess"))}catch(P){const{code:L}=P;/1140|1141/.test(L.toString())?i.error(a("coupon.claimFail.unknownError")):L===1142?i.error(a("coupon.claimFail.receiveLimit")):L===1143&&(i.error(a("coupon.claimFail.snappedUp")),C(S))}}),500);function C(S){const P=l.value.findIndex(L=>L.couponId===S.couponId);P!==-1&&(l.value[P].remainAmount=0)}function x(S){return!(S>0)}const k=c.ref({});function Q(S){const P=k.value[S];return P||P===0?k.value[S]=P+1:k.value[S]=0,k.value[S]}return c.onMounted(()=>{v(),n({event_id:"coupon_view_list",event_type:"show",spec_attrs:{showTime:String(Date.now())}})}),c.onBeforeUnmount(()=>{h()}),{instance:_,refreshCouponCommonList:p,CouponStatus:o,couponCommonList:l,scrollRef:s,onCountDownFinish:b,claimCoupon:y,checkIsSnappedUp:x,getKeyFromCache:Q}},rD=c.defineComponent({__name:"normal-coupon-common-list",props:eD(),setup(e,{expose:t}){const r=e,{CouponStatus:o,couponCommonList:i,scrollRef:a,onCountDownFinish:n,claimCoupon:s,instance:l,checkIsSnappedUp:p,getKeyFromCache:u}=tD({props:r}),{$t:d}=mo();return t(l),{__sfc:!0,props:r,CouponStatus:o,couponCommonList:i,scrollRef:a,onCountDownFinish:n,claimCoupon:s,instance:l,checkIsSnappedUp:p,getKeyFromCache:u,$t:d,CouponListItem:Q0}}});var oD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{ref:"scrollRef",staticClass:"plv-iar-coupon-common-list"},[o.couponCommonList.length===0?r("div",{staticClass:"plv-iar-coupon-common-list--empty"},[r("span",[t._v(t._s(o.$t("coupon.empty")))])]):t._e(),t._l(o.couponCommonList,function(i){return r(o.CouponListItem,{key:`${i.couponId}-${o.getKeyFromCache(i.couponId)}`,attrs:{"coupon-data":i},on:{"count-down-finish":o.onCountDownFinish},scopedSlots:t._u([{key:"coupon-operation",fn:function(){return[r("div",{staticClass:"plv-iar-coupon-common-list-operate",class:{"plv-iar-coupon-common-list-operate-going":i.status===o.CouponStatus.GOING,"plv-iar-coupon-common-list-operate-wait-to-claim":i.status===o.CouponStatus.NOT_START,"plv-iar-coupon-common-list-operate-snapped-up":o.checkIsSnappedUp(i.remainAmount)}},[o.checkIsSnappedUp(i.remainAmount)?[r("span",[t._v(t._s(o.$t("coupon.SnappedUp")))])]:[i.status===o.CouponStatus.GOING?r("span",{on:{click:function(a){return o.claimCoupon(i)}}},[t._v(" "+t._s(o.$t("coupon.claim"))+" ")]):t._e(),i.status===o.CouponStatus.NOT_START?r("span",[t._v(t._s(o.$t("coupon.waitToClaim")))]):t._e()]],2)]},proxy:!0}],null,!0)})})],2)},iD=[],aD=_a(rD,oD,iD);const nD=aD.exports,sD=()=>B({},Os()),lD=e=>{const{couponTarget:t}=Rs(e.props),{scrollRef:r,contents:o,refresh:i}=Fn(s=>t.getCouponUserList({pageNumber:s.pageNumber,pageSize:s.pageSize}));function a(){o.value=[],i()}return{instance:{refreshList:a},couponUserList:o,scrollRef:r}},cD=c.defineComponent({__name:"normal-coupon-user-list",props:sD(),setup(e,{expose:t}){const r=e,{couponUserList:o,scrollRef:i,instance:a}=lD({props:r}),{$t:n}=mo();return t(a),{__sfc:!0,props:r,couponUserList:o,scrollRef:i,instance:a,$t:n,CouponListItem:Q0}}});var pD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{ref:"scrollRef",staticClass:"plv-iar-coupon-user-list"},[o.couponUserList.length===0?r("div",{staticClass:"plv-iar-coupon-user-list--empty"},[r("span",[t._v(t._s(o.$t("coupon.empty")))])]):t._e(),t._l(o.couponUserList,function(i,a){return r(o.CouponListItem,{key:a,attrs:{"coupon-data":i,"is-unclaimed":!1},scopedSlots:t._u([{key:"coupon-operation",fn:function(){return[r("div",{staticClass:"plv-iar-coupon-user-list-item-operation"})]},proxy:!0}],null,!0)})})],2)},uD=[],dD=_a(cD,pD,uD);const fD=dD.exports,mD="data:image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eq3UJGhXV5f6x49rxnWrFv9rz4Myrmv948d1V1dX89/FyGbVS6XUKxQigtaoB3mFgvVSKSWbbYGg7ds1n83ahd7e6E/q16gHLXien89mLdu3N0eQgDI0pNsmJ2031f/mYO15UHc262+bnLQMDS36wwWWMunhbFZnFhG09jxoBvzhOtOLegQJ6ODwsJ2YnLTY8HPmmvQgaycmJ+3g8LCtpR4araQHBgasql2AtelBav1TAwMDS27T1SWo5EVi5ekod415kHFG6nlPuchSXQiol88/XpHToEL9/LNAQVWzoDA/9fOlyKGZl9W2h196Tgv5g2vNg9SbP9j+xD9GGrXS1Nu8vP7qrVjvvTXjQeq/J4dev7WZVpoj6LnxHC89u9PPTf9uyYJnu4IAnT91kNef3bmq/7FAHMXv3rjH6f/E3bj53YjXJVoUvDx4ueD7efUnHUv4Fxj18qvyVgPGib6qJlNWU+kFTSaftgv5x9p+9Ojzq9TLOtaxjnWsYx3rWMeaxv8AN4iXSSXAViIAAAAASUVORK5CYII=",hD=()=>X(B({},Os()),{visible:w.bool.def(!0),iconUrl:w.string.def("")});function gD(e){const{props:t}=e,{couponTarget:r,CouponEvent:o}=Rs(t),{$t:i}=mo(),a=c.computed(()=>i("coupon.title")),n=c.ref(t.visible);function s(m){n.value=m.enable==="Y"}function l(){r.eventEmitter.on(o.SwitchCoupon,s)}function p(){r.eventEmitter.off(o.SwitchCoupon,s)}function u(){if(!r)return;const m=r.getCouponEnabled();n.value=m}const d=c.computed(()=>t.iconUrl||mD);return c.onMounted(()=>{l(),u()}),c.onBeforeUnmount(()=>{p()}),{couponPendantVisible:n,pendantIconUrl:d,content:a}}const vD=c.defineComponent({__name:"normal-coupon-pendant",props:hD(),setup(e){const t=e,{couponPendantVisible:r,pendantIconUrl:o,content:i}=gD({props:t});return{__sfc:!0,props:t,couponPendantVisible:r,pendantIconUrl:o,content:i,PwcNormalPendant:by}}});var wD=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return o.couponPendantVisible?r(o.PwcNormalPendant,{staticClass:"plv-normal-coupon-pendant",attrs:{"icon-url":o.pendantIconUrl,text:o.content}}):t._e()},bD=[],_D=_a(vD,wD,bD);const yD=_D.exports;pe.NormalCouponCommonList=nD,pe.NormalCouponPendant=yD,pe.NormalCouponUserList=fD,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})});console.log("%c@polyv/iar-coupon-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0]","[buildTime: 2026-03-13 02:41:54]");
|