PageSourceSearch

https://vynoteka.lt/build/6625.1ddfb791.js

js vynoteka.lt collected 2026-10-07 04:44:23 UTC 12,549 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5804,6625,7611],{5804:(t,e,n)=>{n.r(e),n.d(e,{default:()=>c});var o=n(41425),i=(0,o.Lk)("span",{class:"tooltip__arrow","data-popper-arrow":""},null,-1),l={class:"tooltip__content"};n(51629),n(2892),n(26099),n(76031);var r=n(97884),u=n(10192),s=n(80644);const a={name:"vue-tooltip",props:{title:{type:String,default:null},message:{type:String,default:null},position:{type:String,default:"bottom"},wrapperClass:{type:String,default:""},theme:{type:String,default:"default"},timeout:{type:Number,default:1},is:{type:String,default:"div"},awardBadge:{type:Boolean,default:!1},disabled:Boolean,active:Boolean},data:function(){return{popperInstance:null,visible:!1,timedHideEvent:null}},computed:{button:function(){return this.$refs.button},tooltip:function(){return this.$refs.tooltip}},watch:{active:{handler:function(t){t?this.show():this.hide()},immediate:!0}},methods:{create:function(){this.popperInstance=(0,r.n4)(this.button,this.tooltip,{placement:this.position,modifiers:[u.A,s.A,{name:"offset",options:{offset:[0,8]}}]})},destroy:function(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)},show:function(){var t=this;this.visible=!0,this.$nextTick(function(){t.tooltip.setAttribute("data-show",""),t.create()})},hide:function(){this.visible&&this.tooltip.removeAttribute("data-show"),this.destroy()},handleClick:function(t){var e=t.currentTarget;if(!1===this.awardBadge)return null;var n=document.querySelector(".bg-ui2");n&&(window.scrollTo({top:e.getBoundingClientRect().top+window.pageYOffset}),setTimeout(function(){var t=(n=document.querySelector(".bg-ui2")).getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:t-100,behavior:"smooth"})},2))}},mounted:function(){var t=this;this.$nextTick(function(){if(!t.disabled){var e=["mouseenter","focus"],n=["mouseleave","blur"];t.button&&(e.forEach(function(e){t.button.addEventListener(e,function(){clearTimeout(t.timedHideEvent),t.show()})}),n.forEach(function(e){t.button.addEventListener(e,function(){t.timedHideEvent=setTimeout(function(){t.hide()},t.timeout)})})),t.tooltip&&(e.forEach(function(e){t.tooltip.addEventListener(e,function(){clearTimeout(t.timedHideEvent),t.show()})}),n.forEach(function(e){t.tooltip.addEventListener(e,function(){t.timedHideEvent=setTimeout(function(){t.hide()},t.timeout)})}))}})}};const c=(0,n(66262).A)(a,[["render",function(t,e,n,r,u,s){return(0,o.uX)(),(0,o.Wv)((0,o.$y)(n.is),{class:(0,o.C4)(n.wrapperClass)},{default:(0,o.k6)(function(){return[(0,o.Lk)("span",{ref:"button",class:"tooltip__button",tabindex:"0",onClick:e[0]||(e[0]=function(){return s.handleClick&&s.handleClick.apply(s,arguments)})},[(0,o.RG)(t.$slots,"button",{},function(){return[(0,o.Lk)("span",null,(0,o.v_)(n.title),1)]})],512),((0,o.uX)(),(0,o.Wv)(o.Im,{to:"#app",disabled:!u.visible},[(0,o.Lk)("span",{ref:"tooltip",role:"tooltip",class:(0,o.C4)(["tooltip",["tooltip--"+n.theme]]),style:(0,o.Tr)({zIndex:t.$root.getModalZindex>21?t.$root.getModalZindex:21}),tabindex:"0",onClick:e[1]||(e[1]=function(){return s.handleClick&&s.handleClick.apply(s,arguments)})},[i,(0,o.RG)(t.$slots,"tooltip",{},function(){return[(0,o.Lk)("span",l,[(0,o.RG)(t.$slots,"message",{},function(){return[(0,o.eW)((0,o.v_)(n.message),1)]})])]})],6)],8,["disabled"]))]}),_:3},8,["class"])}]])},17611:(t,e,n)=>{n.r(e),n.d(e,{default:()=>g});n(62010);var o=n(41425),i=["id","name","required","value","aria-label"],l={key:0,value:null},r=["selected","value"],u={key:0},s=["innerHTML"],a=["innerHTML"],c=["innerHTML"],d=function(t){return(0,o.Qi)("data-v-3ca4ee15"),t=t(),(0,o.jt)(),t}(function(){return(0,o.Lk)("span",{class:"dropdown__arrow"},null,-1)}),p={class:"dropdown__body"},f=["innerHTML"],b=["onClick"],m=["innerHTML"],v=["innerHTML"];n(52675),n(89463),n(2259),n(50113),n(51629),n(74423),n(25276),n(23792),n(60739),n(23288),n(2892),n(79432),n(26099),n(16034),n(27495),n(38781),n(21699),n(47764),n(25440),n(12041),n(23500),n(62953);function h(t){return h="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},h(t)}
1const y={name:"VueSelect2",components:{vueDropdown:n(81229).default},emits:["update:modelValue","select","change"],props:{modelValue:[String,Number,Object],id:{type:String,default:null},name:{type:String,default:null},placeholder:{type:String,default:null},options:{type:[String,Object,Array],required:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},class:{type:String,default:null},formatLabel:{type:String,hint:'Object keys or "value" if String|Numeric',default:null},nullLabel:{type:String,default:null},ariaLabel:{type:String,default:null},style:{type:Object}},computed:{className:function(){return this.class},optionsParsed:function(){if("string"==typeof this.options){var t=JSON.parse(this.options);return"object"===h(t)?t:[]}return this.options}},watch:{modelValue:{handler:function(t,e){JSON.stringify(t)!==JSON.stringify(e)&&this.$emit("change",t)},deep:!0},optionsParsed:{handler:function(t,e){var n=this;if(JSON.stringify(t)===JSON.stringify(e))return!1;"object"===h(t)?"object"===h(this.modelValue)&&Object.values(t).find(function(t){var e;return t.id==(null===(e=n.modelValue)||void 0===e?void 0:e.id)})||Object.values(t).includes(this.modelValue)?this.select(this.modelValue,!1):Object.values(t).length?null===this.placeholder&&this.select(Object.values(t)[0],!1,!0):this.select(null,!1):(console.log("?"),t!==this.modelValue&&(Object.values(t).length?this.select(Object.values(t)[0],!1):this.select(null,!1)))},deep:!0,immediate:!0}},methods:{select:function(t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&this.$refs.vueDropdown.off(),e&&(this.$emit("update:modelValue",t),this.$emit("select",t))},getOptionLabel:function(t){if(this.formatLabel){var e=this.formatLabel;return"object"===h(t)?Object.keys(t).forEach(function(n){e.indexOf(n)>-1&&(e=e.replaceAll(n,t[n]))}):e.indexOf("value")>-1&&(e=e.replaceAll("value",t)),e}return"object"===h(t)?t.label||t.id||"":t},getOptionDescription:function(t){return"object"===h(t)&&t.description||null},getOptionValue:function(t){return t?t.value?t.value:t.id?t.id:t.label?t.label:"string"==typeof t||"number"==typeof t?t:null:null},isOptionActive:function(t){return!!this.modelValue&&this.getOptionValue(t).toString()===this.getOptionValue(this.modelValue).toString()}},mounted:function(){}};const g=(0,n(66262).A)(y,[["render",function(t,e,n,h,y,g){var O=(0,o.g2)("vue-dropdown");return(0,o.uX)(),(0,o.CE)(o.FK,null,[(0,o.Lk)("select",{id:n.id,name:n.name,required:n.required,value:g.getOptionValue(n.modelValue),"aria-label":n.ariaLabel,ref:"select",hidden:""},[n.nullLabel&&n.modelValue?((0,o.uX)(),(0,o.CE)("option",l,(0,o.v_)(n.nullLabel),1)):(0,o.Q3)("v-if",!0),((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(g.optionsParsed,function(t){return(0,o.uX)(),(0,o.CE)("option",{selected:g.isOptionActive(t),value:g.getOptionValue(t)},(0,o.v_)(g.getOptionLabel(t)),9,r)}),256))],8,i),(0,o.bF)(O,{disabled:n.disabled,ref:"vueDropdown",theme:"select"},{caller:(0,o.k6)(function(){return[(0,o.Lk)("button",{type:"button",class:(0,o.C4)(["form-control",[g.className]]),style:(0,o.Tr)(n.style)},[n.modelValue?((0,o.uX)(),(0,o.CE)("span",u,[(0,o.Lk)("span",{innerHTML:g.getOptionLabel(n.modelValue)},null,8,s),g.getOptionDescription(n.modelValue)?((0,o.uX)(),(0,o.CE)("span",{key:0,innerHTML:g.getOptionDescription(n.modelValue),class:"caption"},null,8,a)):(0,o.Q3)("v-if",!0)])):((0,o.uX)(),(0,o.CE)("span",{key:1,innerHTML:n.placeholder},null,8,c)),d],6)]}),drop:(0,o.k6)(function(){return[(0,o.Lk)("div",p,[n.nullLabel&&n.modelValue?((0,o.uX)(),(0,o.CE)("button",{key:0,type:"button",class:"dropdown__option",onClick:e[0]||(e[0]=function(t){return g.select(null,!0,!0)})},[(0,o.Lk)("span",{innerHTML:n.nullLabel},null,8,f)])):(0,o.Q3)("v-if",!0),(0,o.RG)(t.$slots,"option-list",{},function(){return[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(g.optionsParsed,function(e){return(0,o.uX)(),(0,o.CE)("button",{type:"button",class:(0,o.C4)(["dropdown__option",{"is-active":g.isOptionActive(e)}]),onClick:function(t){return g.select(e,!0,!0)}},[(0,o.RG)(t.$slots,"option",{option:e},function(){return[(0,o.Lk)("span",{innerHTML:g.getOptionLabel(e)},null,8,m),g.getOptionDescription(e)?((0,o.uX)(),(0,o.CE)("span",{key:0,innerHTML:g.getOptionDescription(e),class:"caption"},null,8,v)):(0,o.Q3)("v-if",!0)]},!0)],10,b)}),256))]},!0)])]}),_:3},8,["disabled"])],64)}],["__scopeId","data-v-3ca4ee15"]])},36625:(t,e,n)=>{n.r(e),n.d(e,{default:()=>j});var o=n(41425),i={class:"sidebar__section"},l={class:"bor-b"},r={class:"row align-items-center mb-15"},u={class:"col"},s={class:"f-primary"},a={key:0,class:"col col-auto"},c=(0,o.Lk)("span",{class:"icon f-primary"},[(0,o.Lk)("svg",null,[(0,o.Lk)("use",{href:"/build/assets/images/icons/base/sprite.svg#comment-question--filled"})])],-1),d={class:"row gutter-8 align-items-center"},p=(0,o.Lk)("div",{class:"col col-auto"},[(0,o.Lk)("img",{src:"/build/assets/images/icons/store.svg",width:"32",alt:""})],-1),f={class:"col"};n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23792),n(62062),n(89572),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(47764),n(23500),n(62953);var b=n(17611),m=n(5804);function v(t){return v="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},v(t)}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function y(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==v(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=(0,n(43217)._$)(),O=g.activeOptions,k=g.storeList,S=g.removeActiveOptions,L=g.addActiveOptions,w=(g.activeStore,g.setActiveStore);const _={name:"ProductListStoreFilter",components:{VueSelect2:b.default,VueTooltip:m.default},props:{},data:function(){return{activeStore:null}},computed:{stores:function(){var t=k.value;return Object.keys(t).map(function(e){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach(function(e){y(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({id:e},t[e])})}},watch:{activeStore:function(t){this.setActiveStore(t)}},methods:{toggleActiveOption:function(t){O.value.filter(function(e){return e.category.id==t.category.id}).length?S([t]):L([t])},setActiveStore:function(t){w(t?t.id:null)}}};const j=(0,n(66262).A)(_,[["render",function(t,e,n,b,m,v){var h=(0,o.g2)("vue-select2");return(0,o.uX)(),(0,o.CE)("div",i,[(0,o.Lk)("div",l,[(0,o.Lk)("div",r,[(0,o.Lk)("div",u,[(0,o.Lk)("strong",s,(0,o.v_)(t.$root.trans("[product_list.stock_store]")),1)]),t.$THEME_LV?(0,o.Q3)("v-if",!0):((0,o.uX)(),(0,o.CE)("div",a,[((0,o.uX)(),(0,o.Wv)((0,o.$y)("vue-tooltip"),{ref:"vue-tooltip",message:t.$root.trans("[product_list.stock_store_help_label]")},{button:(0,o.k6)(function(){return[c]}),_:1},8,["message"]))]))]),(0,o.Lk)("div",d,[p,(0,o.Lk)("div",f,[(0,o.bF)(h,{class:"form-control sm",placeholder:t.$root.trans("[product_list.stock_store_empty_select_label]"),"null-label":t.$root.trans("[product_list.stock_store_all]"),options:v.stores,"format-label":"l, loc, adr",modelValue:m.activeStore,"onUpdate:modelValue":e[0]||(e[0]=function(t){return m.activeStore=t})},null,8,["placeholder","null-label","options","modelValue"])])])])])}]])},60739:(t,e,n)=>{var o=n(46518),i=n(79039),l=n(48981),r=n(72777);o({target:"Date",proto:!0,arity:1,forced:i(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(t){var e=l(this),n=r(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})}}]);

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.