PageSourceSearch

https://grandesescolhas.com/wp-content/plugins/vinhos-mes-page/assets/pagination.js?ver=1.0.0

js grandesescolhas.com collected 2026-10-02 12:00:28 UTC 17,934 bytes, 341 lines download raw bytes

1(function (t, e) {
2    "object" === typeof exports && "object" === typeof module
3        ? (module.exports = e())
4        : "function" === typeof define && define.amd
5            ? define([], e)
6            : "object" === typeof exports
7                ? (exports["laravel-vue-pagination"] = e())
8                : (t["laravel-vue-pagination"] = e());
9})("undefined" !== typeof self ? self : this, function () {
10    return (function (t) {
11        var e = {};
12        function n(a) {
13            if (e[a]) return e[a].exports;
14            var i = (e[a] = { i: a, l: !1, exports: {} });
15            return t[a].call(i.exports, i, i.exports, n), (i.l = !0), i.exports;
16        }
17        return (
18            (n.m = t),
19                (n.c = e),
20                (n.d = function (t, e, a) {
21                    n.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: a });
22                }),
23                (n.r = function (t) {
24                    "undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 });
25                }),
26                (n.t = function (t, e) {
27                    if ((1 & e && (t = n(t)), 8 & e)) return t;
28                    if (4 & e && "object" === typeof t && t && t.__esModule) return t;
29                    var a = Object.create(null);
30                    if ((n.r(a), Object.defineProperty(a, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t))
31                        for (var i in t)
32                            n.d(
33                                a,
34                                i,
35                                function (e) {
36                                    return t[e];
37                                }.bind(null, i)
38                            );
39                    return a;
40                }),
41                (n.n = function (t) {
42                    var e =
43                        t && t.__esModule
44                            ? function () {
45                                return t["default"];
46                            }
47                            : function () {
48                                return t;
49                            };
50                    return n.d(e, "a", e), e;
51                }),
52                (n.o = function (t, e) {
53                    return Object.prototype.hasOwnProperty.call(t, e);
54                }),
55                (n.p = ""),
56                n((n.s = "fb15"))
57        );
58    })({
59        f6fd: function (t, e) {
60            (function (t) {
61                var e = "currentScript",
62                    n = t.getElementsByTagName("script");
63                e in t ||
64                Object.defineProperty(t, e, {
65                    get: function () {
66                        try {
67                            throw new Error();
68                        } catch (a) {
69                            var t,
70                                e = (/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(a.stack) || [!1])[1];
71                            for (t in n) if (n[t].src == e || "interactive" == n[t].readyState) return n[t];
72                            return null;
73                        }
74                    },
75                });
76            })(document);
77        },
78        fb15: function (t, e, n) {
79            "use strict";
80            var a;
81            (n.r(e), "undefined" !== typeof window) && (n("f6fd"), (a = window.document.currentScript) && (a = a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)) && (n.p = a[1]));
82            var i,
83                r,
84                s = function () {
85                    var t = this,
86                        e = t.$createElement,
87                        n = t._self._c || e;
88                    return n("renderless-laravel-vue-pagination", {
89                        attrs: { data: t.data, limit: t.limit, "show-disabled": t.showDisabled, size: t.size, align: t.align },
90                        on: { "pagination-change-page": t.onPaginationChangePage },
91                        scopedSlots: t._u(
92                            [
93                                {
94                                    key: "default",
95                                    fn: function (e) {
96                                        e.data, e.limit;
97                                        var a = e.showDisabled,
98                                            i = e.size,
99                                            r = e.align,
100                                            s = e.computed,
101                                            o = e.prevButtonEvents,
102                                            l = e.nextButtonEvents,
103                                            u = e.pageButtonEvents;
104                                        return s.total > s.perPage
105                                            ? n(
106                                                "ul",
107                                                { staticClass: "pagination", class: { "pagination-sm": "small" == i, "pagination-lg": "large" == i, "justify-content-center": "center" == r, "justify-content-end": "right" == r } },
108                                                [
109                                                    s.prevPageUrl || a
110                                                        ? n("li", { staticClass: "page-item pagination-prev-nav", class: { disabled: !s.prevPageUrl } }, [
111                                                            n(
112                                                                "a",
113                                                                t._g({ staticClass: "page-link", attrs: { href: "#", "aria-label": "Previous", tabindex: !s.prevPageUrl && -1 } }, o),
114                                                                [t._t("prev-nav", [n("span", { attrs: { "aria-hidden": "true" } }, [t._v("«")]), n("span", { staticClass: "sr-only" }, [t._v("Previous")])])],
115                                                                2
116                                                            ),
117                                                        ])
118                                                        : t._e(),
119                                                    t._l(s.pageRange, function (e, a) {
120                                                        return n("li", { key: a, staticClass: "page-item pagination-page-nav", class: { active: e == s.currentPage } }, [
121                                                            n("a", t._g({ staticClass: "page-link", attrs: { href: s.nextPageUrl } }, u(e)), [
122                                                                t._v("\n                " + t._s(e) + "\n                "),
123                                                                e == s.currentPage ? n("span", { staticClass: "sr-only" }, [t._v("(current)")]) : t._e(),
124                                                            ]),
125                                                        ]);
126                                                    }),
127                                                    s.nextPageUrl || a
128                                                        ? n("li", { staticClass: "page-item pagination-next-nav", class: { disabled: !s.nextPageUrl } }, [
129                                                            n(
130                                                                "a",
131                                                                t._g({ staticClass: "page-link", attrs: { href: "#", "aria-label": "Next", tabindex: !s.nextPageUrl && -1 } }, l),
132                                                                [t._t("next-nav", [n("span", { attrs: { "aria-hidden": "true" } }, [t._v("»")]), n("span", { staticClass: "sr-only" }, [t._v("Next")])])],
133                                                                2
134                                                            ),
135                                                        ])
136                                                        : t._e(),
137                                                ],
138                                                2
139                                            )
140                                            : t._e();
141                                    },
142                                },
143                            ],
144                            null,
145                            !0
146                        ),
147                    });
148                },
149                o = [],
150                l = {
151                    props: {
152                        data: { type: Object, default: function () {} },
153                        limit: { type: Number, default: 0 },
154                        showDisabled: { type: Boolean, default: !1 },
155                        size: {
156                            type: String,
157                            default: "default",
158                            validator: function (t) {
159                                return -1 !== ["small", "default", "large"].indexOf(t);
160                            },
161                        },
162                        align: {
163                            type: String,
164                            default: "left",
165                            validator: function (t) {
166                                return -1 !== ["left", "center", "right"].indexOf(t);
167                            },
168                        },
169                    },
170                    computed: {
171                        isApiResource: function () {
172                            return this.data.meta;
173                        },
174                        currentPage: function () {
175                            return this.isApiResource ? this.data.meta.current_page : this.data.current_page;
176                        },
177                        firstPageUrl: function () {
178                            return this.isApiResource ? this.data.links.first : null;
179                        },
180                        from: function () {
181                            return this.isApiResource ? this.data.meta.from : this.data.from;
182                        },
183                        lastPage: function () {
184                            return this.isApiResource ? this.data.meta.last_page : this.data.last_page;
185                        },
186                        lastPageUrl: function () {
187                            return this.isApiResource ? this.data.links.last : null;
188                        },
189                        nextPageUrl: function () {
190                            return this.isApiResource ? this.data.links.next : this.data.next_page_url;
191                        },
192                        perPage: function () {
193                            return this.isApiResource ? this.data.meta.per_page : this.data.per_page;
194                        },
195                        prevPageUrl: function () {
196                            return this.isApiResource ? this.data.links.prev : this.data.prev_page_url;
197                        },
198                        to: function () {
199                            return this.isApiResource ? this.data.meta.to : this.data.to;
200                        },
201                        total: function () {
202                            return this.isApiResource ? this.data.meta.total : this.data.total;
203                        },
204                        pageRange: function () {
205                            if (-1 === this.limit) return 0;
206                            if (0 === this.limit) return this.lastPage;
207                            for (var t, e = this.currentPage, n = this.lastPage, a = this.limit, i = e - a, r = e + a + 1, s = [], o = [], l = 1; l <= n; l++) (1 === l || l === n || (l >= i && l < r)) && s.push(l);
208                            return (
209                                s.forEach(function (e) {
210                                    t && (e - t === 2 ? o.push(t + 1) : e - t !== 1 && o.push("...")), o.push(e), (t = e);
211                                }),
212                                    o
213                            );
214                        },
215                    },
216                    methods: {
217                        previousPage: function () {
218                            this.selectPage(this.currentPage - 1);
219                        },
220                        nextPage: function () {
221                            this.selectPage(this.currentPage + 1);
222                        },
223                        selectPage: function (t) {
224                            "..." !== t && this.$emit("pagination-change-page", t);
225                        },
226                    },
227                    render: function () {
228                        var t = this;
229                        return this.$scopedSlots.default({
230                            data: this.data,
231                            limit: this.limit,
232                            showDisabled: this.showDisabled,
233                            size: this.size,
234                            align: this.align,
235                            computed: {
236                                isApiResource: this.isApiResource,
237                                currentPage: this.currentPage,
238                                firstPageUrl: this.firstPageUrl,
239                                from: this.from,
240                                lastPage: this.lastPage,
241                                lastPageUrl: this.lastPageUrl,
242                                nextPageUrl: this.nextPageUrl,
243                                perPage: this.perPage,
244                                prevPageUrl: this.prevPageUrl,
245                                to: this.to,
246                                total: this.total,
247                                pageRange: this.pageRange,
248                            },
249                            prevButtonEvents: {
250                                click: function (e) {
251                                    e.preventDefault(), t.previousPage();
252                                },
253                            },
254                            nextButtonEvents: {
255                                click: function (e) {
256                                    e.preventDefault(), t.nextPage();
257                                },
258                            },
259                            pageButtonEvents: function (e) {
260                                return {
261                                    click: function (n) {
262                                        n.preventDefault(), t.selectPage(e);
263                                    },
264                                };
265                            },
266                        });
267                    },
268                },
269                u = l;
270            function c(t, e, n, a, i, r, s, o) {
271                var l,
272                    u = "function" === typeof t ? t.options : t;
273                if (
274                    (e && ((u.render = e), (u.staticRenderFns = n), (u._compiled = !0)),
275                    a && (u.functional = !0),
276                    r && (u._scopeId = "data-v-" + r),
277                        s
278                            ? ((l = function (t) {
279                                (t = t || (this.$vnode && this.$vnode.ssrContext) || (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext)),
280                                t || "undefined" === typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__),
281                                i && i.call(this, t),
282                                t && t._registeredComponents && t._registeredComponents.add(s);
283                            }),
284                                (u._ssrRegister = l))
285                            : i &&
286                            (l = o
287                                ? function () {
288                                    i.call(this, this.$root.$options.shadowRoot);
289                                }
290                                : i),
291                        l)
292                )
293                    if (u.functional) {
294                        u._injectStyles = l;
295                        var c = u.render;
296                        u.render = function (t, e) {
297                            return l.call(e), c(t, e);
298                        };
299                    } else {
300                        var f = u.beforeCreate;
301                        u.beforeCreate = f ? [].concat(f, l) : [l];
302                    }
303                return { exports: t, options: u };
304            }
305            var f = c(u, i, r, !1, null, null, null),
306                p = f.exports,
307                d = {
308                    props: {
309                        data: { type: Object, default: function () {} },
310                        limit: { type: Number, default: 0 },
311                        showDisabled: { type: Boolean, default: !1 },
312                        size: {
313                            type: String,
314                            default: "default",
315                            validator: function (t) {
316                                return -1 !== ["small", "default", "large"].indexOf(t);
317                            },
318                        },
319                        align: {
320                            type: String,
321                            default: "left",
322                            validator: function (t) {
323                                return -1 !== ["left", "center", "right"].indexOf(t);
324                            },
325                        },
326                    },
327                    methods: {
328                        onPaginationChangePage: function (t) {
329                            this.$emit("pagination-change-page", t);
330                        },
331                    },
332                    components: { RenderlessLaravelVuePagination: p },
333                },
334                g = d,
335                h = c(g, s, o, !1, null, null, null),
336                v = h.exports;
337            e["default"] = v;
338        },
339    })["default"];
340});
341//# sourceMappingURL=laravel-vue-pagination.umd.min.js.map

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.