PageSourceSearch

https://vynoteka.lt/build/8339.c5c849c8.js

js vynoteka.lt collected 2026-10-07 04:44:53 UTC 8,305 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8339],{48339:(e,t,i)=>{i.r(t),i.d(t,{default:()=>T});i(50113),i(26099);var a=i(41425),n={key:0,class:"pagination__wrapper mt-0 mb-0"},o={class:"pagination pagination--compressed"},r={class:"pagination__item"},l={class:"pagination__item f-text-3 p-0"},s={class:"pagination__item f-text-3 font-weight-bold"},c=["aria-label"],u={key:1,class:"pagination__wrapper"},g=["aria-label"],p={key:0,class:"pagination__item"},f={class:"pagination__item p-0"},d={key:0},v={class:"pagination__item"},h=["onClick","aria-label"],P={class:"pagination__item p-0"},m={key:0},y={key:1,class:"pagination__item"},b=["aria-label"];i(52675),i(89463),i(2259),i(45700),i(28706),i(2008),i(51629),i(23792),i(62062),i(54554),i(89572),i(23288),i(2892),i(67945),i(84185),i(83851),i(81278),i(79432),i(58940),i(27495),i(38781),i(47764),i(5746),i(23500),i(62953),i(76031),i(48408);var _=i(82124);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function x(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,a)}return i}function C(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?x(Object(i),!0).forEach(function(t){L(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):x(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function L(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=k(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var a=i.call(e,t||"default");if("object"!=k(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==k(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const w={name:"vue-pagination",props:{total:{default:null},modelValue:{default:null},disabled:{type:Boolean,default:!1},scroll:{type:Boolean,default:!1},compressed:Boolean,align:{type:String,default:"center"}},data:function(){return{activePage:null,pageCount:0}},emits:["update:modelValue","click"],computed:C(C({},(0,_.L8)({getDefaultPage:"products/getDefaultPage",getShowByPerPage:"products/getShowByPerPage"})),{},{optionsList:function(){return this.pageList.map(function(e){return e.index})},pageList:function(){for(var e=[],t=[],i=1;i<=this.total;i++)t.push(i);if(Object.keys(t).length)for(var a=0;t.length;){var n=t.splice(0,this.getShowByPerPage);Object.keys(n).length&&(a++,e.push({index:a,start:n[0],end:n[Object.keys(n).length-1],isLastPage:t.length<=0}))}return this.pageCount=Object.keys(e).length,e},lastPage:function(){return this.pageList.find(function(e){return e.isLastPage})},mappedPageList:function(){}}),watch:{modelValue:{handler:function(e){e&&(this.pageList[e.index-1]?this.activePage=e.index:this.activePage=1)},immediate:!0},pageList:{handler:function(e,t){var i=this;if(null===this.activePage)return!1;if(!e.length>0)return!1;if(t.length<=0)return!1;if(e.length<t.length){var a=e.find(function(e){return i.isActive(e.index)});a?this.$emit("update:modelValue",a):this.goToPage({index:e[e.length-1].index})}else{var n=e.find(function(e){return e.index===i.activePage});n&&this.$emit("update:modelValue",n)}}}},methods:{handleSelect:function(e){this.goToPage({index:e})},goToPage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.e,i=void 0===t?null:t,a=e.index,n=void 0===a?null:a,o=e.scroll,r=void 0!==o&&o,l=this.pageList.filter(function(e){return e.index===n})[0];if(i&&i.type&&"click"===i.type&&(this.scroll||r)&&this.scrollToView(),l){var s=new URLSearchParams(location.search);s.set("page",n),window.history.replaceState({},"","".concat(location.pathname,"?").concat(s.toString()).concat(location.hash)),this.$emit("update:modelValue",l)}
1else if(l=this.pageList.find(function(e){return 1===e.index})){var c=new URLSearchParams(location.search);c.set("page","1"),window.history.replaceState({},"","".concat(location.pathname,"?").concat(c.toString()).concat(location.hash)),this.$emit("update:modelValue",l)}l&&(this.activePage=l.index)},goToNextPage:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.activePage+1;i<=this.pageCount&&this.goToPage({e,index:i,scroll:t})},goToPreviousPage:function(e){var t=this.activePage-1;t>0&&this.goToPage({e,index:t})},isActive:function(e){return e===this.activePage},scrollToView:function(){var e=this;this.$nextTick(function(){setTimeout(function(){e.$root.appMain.scrollIntoView({block:"start",behavior:"smooth"})},100)})}},beforeMount:function(){var e=new URLSearchParams(window.location.search);e.has("page")?this.goToPage({index:parseInt(e.get("page"))}):this.goToPage({index:1})}};const T=(0,i(66262).A)(w,[["render",function(e,t,i,_,k,x){var C=(0,a.g2)("vue-select2");return k.pageCount>1?((0,a.uX)(),(0,a.CE)(a.FK,{key:0},[i.compressed?((0,a.uX)(),(0,a.CE)("div",n,[(0,a.Lk)("ul",o,[(0,a.Lk)("li",{class:(0,a.C4)(["pagination__item pagination__item--previous",{"is-disabled":k.activePage<=1}])},[(0,a.Lk)("a",{class:"pagination__link",href:"javascript:;",onClick:t[0]||(t[0]=function(){return x.goToPreviousPage&&x.goToPreviousPage.apply(x,arguments)})})],2),(0,a.Lk)("li",r,[(0,a.bF)(C,{class:"xs",options:x.optionsList,"model-value":x.optionsList.find(function(e){return e===k.activePage}),onSelect:x.handleSelect},null,8,["options","model-value","onSelect"])]),(0,a.Lk)("li",l,(0,a.v_)(e.$root.trans("[of]")),1),(0,a.Lk)("li",s,(0,a.v_)(x.lastPage.index),1),(0,a.Lk)("li",{class:(0,a.C4)(["pagination__item pagination__item--next",{"is-disabled":k.activePage>=k.pageCount}])},[(0,a.Lk)("a",{class:"pagination__link",href:"javascript:;",onClick:t[1]||(t[1]=function(){return x.goToNextPage&&x.goToNextPage.apply(x,arguments)}),"aria-label":e.$root.trans("[next]")},null,8,c)],2)])])):((0,a.uX)(),(0,a.CE)("div",u,[(0,a.Lk)("ul",{class:(0,a.C4)(["pagination",["pagination--align-".concat(i.align)]])},[(0,a.Lk)("li",{class:"pagination__item pagination__item--previous",style:(0,a.Tr)({visibility:k.activePage>1?"visible":"hidden"})},[(0,a.Lk)("a",{class:"pagination__link",href:"javascript:;",onClick:t[2]||(t[2]=function(){return x.goToPreviousPage&&x.goToPreviousPage.apply(x,arguments)}),"aria-label":e.$root.trans("[previous]")},null,8,g)],4),k.activePage-3>=1?((0,a.uX)(),(0,a.CE)("li",p,[(0,a.Lk)("a",{href:"javascript:;",class:"pagination__link",onClick:t[3]||(t[3]=function(e){return x.goToPage({e,index:1})})}," 1 ")])):(0,a.Q3)("v-if",!0),(0,a.Lk)("li",f,[k.activePage-3>=1?((0,a.uX)(),(0,a.CE)("span",d," ... ")):(0,a.Q3)("v-if",!0)]),((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(x.pageList,function(t){return(0,a.uX)(),(0,a.CE)("li",v,[t.index===k.activePage||t.index===k.activePage-1||t.index===k.activePage+1||k.activePage+2===x.lastPage&&t.index===x.lastPage?((0,a.uX)(),(0,a.CE)("a",{key:0,href:"javascript:;",class:(0,a.C4)(["pagination__link",{"is-active":x.isActive(t.index)}]),onClick:function(e){return x.goToPage({e,index:t.index})},"aria-label":e.$root.trans("[page]")+" "+t.index},(0,a.v_)(t.index),11,h)):(0,a.Q3)("v-if",!0)])}),256)),(0,a.Lk)("li",P,[k.activePage+3<=k.pageCount?((0,a.uX)(),(0,a.CE)("span",m," ... ")):(0,a.Q3)("v-if",!0)]),k.activePage+3<=k.pageCount?((0,a.uX)(),(0,a.CE)("li",y,[(0,a.Lk)("a",{href:"javascript:;",class:"pagination__link",onClick:t[4]||(t[4]=function(e){return x.goToPage({e,index:x.lastPage.index})})},(0,a.v_)(x.lastPage.index),1)])):(0,a.Q3)("v-if",!0),k.activePage<k.pageCount||e.$root.windowTablet?((0,a.uX)(),(0,a.CE)("li",{key:2,class:"pagination__item pagination__item--next",style:(0,a.Tr)({visibility:k.activePage<k.pageCount?"visible":"hidden"})},[(0,a.Lk)("a",{class:"pagination__link",href:"javascript:;",onClick:t[5]||(t[5]=function(){return x.goToNextPage&&x.goToNextPage.apply(x,arguments)}),"aria-label":e.$root.trans("[next]")},null,8,b)],4)):(0,a.Q3)("v-if",!0)],2)]))],2112)):(0,a.Q3)("v-if",!0)}],["__scopeId","data-v-38886351"]])}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.