PageSourceSearch

https://optikaoravcova.sk/bundles/frontend/js/chunks/package/compo…rs-SorterSettingsFilter.7638e8389620c35d.js

js optikaoravcova.sk collected 2026-10-09 03:21:08 UTC 4,931 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7192,7344],{8878:(t,e,r)=>{r.r(e),r.d(e,{SorterSettingsMixin:()=>a});var n=r(629),o=r(7452);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function l(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a={data:function(){return{show_sorter_selector:null==this.$root.filter_config.show_sorter_selector||this.$root.filter_config.show_sorter_selector,show_order_selector:null==this.$root.filter_config.show_order_selector||this.$root.filter_config.show_order_selector}},computed:c(c(c({},(0,n.rn)("filters",{total:function(t){return t.pagination?t.pagination.total:0},settings:function(t){return t.sorterSettings}})),(0,o.vn)("filters",{perPage:"sorterSettings.default_per_page",ordering:"sorterSettings.default_ordering"})),(0,n.Se)("filters",["activeSorterSettingsFilters"])),mounted:function(){this.fetchSorterSettings()},methods:c(c({},(0,n.nv)("filters",["fetchSorterSettings","filter"])),{},{transformToSelectObjects:function(t){var e=[];return t&&Object.keys(t).forEach((function(r){e.push({name:t[r],code:r})})),e},isEmptyObject:function(t){return t&&0===Object.keys(t).length&&t.constructor===Object},isSettingActive:function(t){return!(!this.activeSorterSettingsFilters||!this.activeSorterSettingsFilters.length)&&!!this.activeSorterSettingsFilters.find((function(e){return e.type===t}))}})}},8983:(t,e,r)=>{r.r(e),r.d(e,{default:()=>o});const n={name:"SorterSettingsFilter",mixins:[r(8878).SorterSettingsMixin]};const o=(0,r(1900).Z)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"filter-attr"},[!t.show_sorter_selector||t.isEmptyObject(t.settings)||t.isEmptyObject(t.settings.ordering)?t._e():e("div",{staticClass:"filter-attr sorter-select-wrapper"},[e("multiselect",{class:{filterActive:t.isSettingActive("default_ordering")},attrs:{options:Object.keys(t.settings.ordering),"close-on-select":!0,"clear-on-select":!1,searchable:!1,"show-labels":!1,"allow-empty":!1,"custom-label":function(e){return t.settings.ordering[e]}},on:{input:t.filter},scopedSlots:t._u([{key:"singleLabel",fn:function(r){r.option;return[e("i",{staticClass:"fa fa-sort"}),t._v(" "),t._e()]}}],null,!1,3991818852),model:{value:t.ordering,callback:function(e){t.ordering=e},expression:"ordering"}})],1),t._v(" "),!t.show_order_selector||t.isEmptyObject(t.settings)||t.isEmptyObject(t.settings.per_page)?t._e():e("div",{staticClass:"filter-attr sorter-select-wrapper"},[e("multiselect",{class:{filterActive:t.isSettingActive("default_per_page")},attrs:{options:Object.keys(t.settings.per_page),"close-on-select":!0,"clear-on-select":!1,searchable:!1,"show-labels":!1,"allow-empty":!1,"custom-label":function(e){return t.settings.per_page[e]}},on:{input:t.filter},scopedSlots:t._u([{key:"singleLabel",fn:function(r){r.option;return[e("i",{staticClass:"fa fa-sort-numeric-asc"}),t._v(" "),t._e()]}}],null,!1,2437987323),model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1)])}),[],!1,null,"acec7f20",null).exports},1900:(t,e,r)=>{function n(t,e,r,n,o,i,s,c){var l,a="function"==typeof t?t.options:t;if(e&&(a.render=e,a.staticRenderFns=r,a._compiled=!0),n&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},a._ssrRegister=l):o&&(l=c?function(){o.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(a.functional){a._injectStyles=l;var u=a.render;a.render=function(t,e){return l.call(e),u(t,e)}}else{var f=a.beforeCreate;a.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:a}}r.d(e,{Z:()=>n})}}]);

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.