import{_ as l,r as u,o as n,b as d,p as a,a as g,w as c,u as i,v as r,n as f,q as h,f as p,t as _}from"./main-BDtKGhFI.js";const m={name:"PaginationProgressBar",props:{queryParams:{type:String,default:null},paginationPage:{type:Number,required:!0},paginationTotal:{type:Number,required:!0},progressbarValue:{type:Number,required:!0},disabledState:{type:Boolean,required:!1,default:!1},showMoreButton:{type:Boolean,default:!0},showMoreButtonText:{type:String,default:null}},emits:["loadmore"],computed:{getPaginationButtonLink(){return this.paginationPage+1},href(){return this.disabledState?null:`${this.queryParams?this.queryParams+"&":"?"}page=${this.getPaginationButtonLink}`}},methods:{loadMore(t){if(this.$fischer.query("page")){this.href&&(window.location=this.href,t.preventDefault());return}t.preventDefault(),this.$emit("loadmore",{})}}},b={class:"infinite-pagination pagination-progress-bar"},y={class:"pagination-progress-bar__text"},B={class:"pagination-progress-bar__bar"};function P(t,w,e,q,v,o){const s=u("button-fi");return n(),d("div",b,[a("div",null,[e.paginationPage<e.paginationTotal&&e.showMoreButton?(n(),g(s,{key:0,href:o.href,class:f({"pagination-progress-bar__button":!0,"button-fi__tertiary":!0}),disabled:e.disabledState,onClick:o.loadMore},{default:c(()=>[i(r(e.showMoreButtonText?e.showMoreButtonText:t.$dict.get("product-List.Pagination.Load-More")),1)]),_:1},8,["href","disabled","onClick"])):h("",!0),a("div",y,[p(t.$slots,"default",{},()=>[i(r(e.paginationPage)+" / "+r(e.paginationTotal),1)],!0)])]),a("div",B,[a("div",{class:"pagination-progress-bar__bar-progress",style:_({width:`${Math.min(e.progressbarValue,100)}%`})},null,4)])])}const k=l(m,[["render",P],["__scopeId","data-v-5b85433a"]]);export{k as P};