PageSourceSearch

https://vynoteka.lt/build/3404.111005fa.js

js vynoteka.lt collected 2026-10-07 04:43:34 UTC 10,895 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3404,7611],{17611:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});n(62010);var l=n(41425),o=["id","name","required","value","aria-label"],i={key:0,value:null},r=["selected","value"],u={key:0},s=["innerHTML"],a=["innerHTML"],c=["innerHTML"],p=function(e){return(0,l.Qi)("data-v-3ca4ee15"),e=e(),(0,l.jt)(),e}(function(){return(0,l.Lk)("span",{class:"dropdown__arrow"},null,-1)}),d={class:"dropdown__body"},f=["innerHTML"],b=["onClick"],y=["innerHTML"],m=["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 v(e){return v="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},v(e)}const O={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 e=JSON.parse(this.options);return"object"===v(e)?e:[]}return this.options}},watch:{modelValue:{handler:function(e,t){JSON.stringify(e)!==JSON.stringify(t)&&this.$emit("change",e)},deep:!0},optionsParsed:{handler:function(e,t){var n=this;if(JSON.stringify(e)===JSON.stringify(t))return!1;"object"===v(e)?"object"===v(this.modelValue)&&Object.values(e).find(function(e){var t;return e.id==(null===(t=n.modelValue)||void 0===t?void 0:t.id)})||Object.values(e).includes(this.modelValue)?this.select(this.modelValue,!1):Object.values(e).length?null===this.placeholder&&this.select(Object.values(e)[0],!1,!0):this.select(null,!1):(console.log("?"),e!==this.modelValue&&(Object.values(e).length?this.select(Object.values(e)[0],!1):this.select(null,!1)))},deep:!0,immediate:!0}},methods:{select:function(e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&this.$refs.vueDropdown.off(),t&&(this.$emit("update:modelValue",e),this.$emit("select",e))},getOptionLabel:function(e){if(this.formatLabel){var t=this.formatLabel;return"object"===v(e)?Object.keys(e).forEach(function(n){t.indexOf(n)>-1&&(t=t.replaceAll(n,e[n]))}):t.indexOf("value")>-1&&(t=t.replaceAll("value",e)),t}return"object"===v(e)?e.label||e.id||"":e},getOptionDescription:function(e){return"object"===v(e)&&e.description||null},getOptionValue:function(e){return e?e.value?e.value:e.id?e.id:e.label?e.label:"string"==typeof e||"number"==typeof e?e:null:null},isOptionActive:function(e){return!!this.modelValue&&this.getOptionValue(e).toString()===this.getOptionValue(this.modelValue).toString()}},mounted:function(){}};const g=(0,n(66262).A)(O,[["render",function(e,t,n,v,O,g){var L=(0,l.g2)("vue-dropdown");return(0,l.uX)(),(0,l.CE)(l.FK,null,[(0,l.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,l.uX)(),(0,l.CE)("option",i,(0,l.v_)(n.nullLabel),1)):(0,l.Q3)("v-if",!0),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(g.optionsParsed,function(e){return(0,l.uX)(),(0,l.CE)("option",{selected:g.isOptionActive(e),value:g.getOptionValue(e)},(0,l.v_)(g.getOptionLabel(e)),9,r)}),256))],8,o),(0,l.bF)(L,{disabled:n.disabled,ref:"vueDropdown",theme:"select"},{caller:(0,l.k6)(function(){return[(0,l.Lk)("button",{type:"button",class:(0,l.C4)(["form-control",[g.className]]),style:(0,l.Tr)(n.style)},[n.modelValue?((0,l.uX)(),(0,l.CE)("span",u,[(0,l.Lk)("span",{innerHTML:g.getOptionLabel(n.modelValue)},null,8,s),g.getOptionDescription(n.modelValue)?((0,l.uX)(),(0,l.CE)("span",{key:0,innerHTML:g.getOptionDescription(n.modelValue),class:"caption"},null,8,a)):(0,l.Q3)("v-if",!0)])):((0,l.uX)(),(0,l.CE)("span",{key:1,innerHTML:n.placeholder},null,8,c)),p],6)]}),drop:(0,l.k6)(function(){return[(0,l.Lk)("div",d,[n.nullLabel&&n.modelValue?((0,l.uX)(),(0,l.CE)("button",{key:0,t
1ype:"button",class:"dropdown__option",onClick:t[0]||(t[0]=function(e){return g.select(null,!0,!0)})},[(0,l.Lk)("span",{innerHTML:n.nullLabel},null,8,f)])):(0,l.Q3)("v-if",!0),(0,l.RG)(e.$slots,"option-list",{},function(){return[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(g.optionsParsed,function(t){return(0,l.uX)(),(0,l.CE)("button",{type:"button",class:(0,l.C4)(["dropdown__option",{"is-active":g.isOptionActive(t)}]),onClick:function(e){return g.select(t,!0,!0)}},[(0,l.RG)(e.$slots,"option",{option:t},function(){return[(0,l.Lk)("span",{innerHTML:g.getOptionLabel(t)},null,8,y),g.getOptionDescription(t)?((0,l.uX)(),(0,l.CE)("span",{key:0,innerHTML:g.getOptionDescription(t),class:"caption"},null,8,m)):(0,l.Q3)("v-if",!0)]},!0)],10,b)}),256))]},!0)])]}),_:3},8,["disabled"])],64)}],["__scopeId","data-v-3ca4ee15"]])},53404:(e,t,n)=>{n.r(t),n.d(t,{default:()=>H});n(62010),n(79432);var l=n(41425),o=["id","name","required","value"],i={key:0,value:null},r=["selected","value"],u=["innerHTML"],s=["innerHTML"],a=(0,l.Lk)("span",{class:"dropdown__arrow"},null,-1),c={class:"dropdown__body"},p=["innerHTML"],d={key:1,class:"alert alert--success p-4 full-w"},f={class:"row no-gutters align-items-center"},b=(0,l.Lk)("div",{class:"col col-auto"},[(0,l.Lk)("span",{class:"icon icon--left"},[(0,l.Lk)("svg",null,[(0,l.Lk)("use",{href:"/build/assets/images/icons/base/sprite.svg#check-circle"})])])],-1),y={class:"col"},m={class:"alert__message"},v=["onClick"],O=["innerHTML"],g={key:2,class:"alert alert--attention p-4 full-w"},L={class:"row no-gutters align-items-center"},h=(0,l.Lk)("div",{class:"col col-auto"},[(0,l.Lk)("span",{class:"icon icon--left"},[(0,l.Lk)("svg",null,[(0,l.Lk)("use",{href:"/build/assets/images/icons/base/sprite.svg#info-circle"})])])],-1),k={class:"col"},S={class:"alert__message"},C=["onClick"],_=["innerHTML"];n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23792),n(89572),n(2892),n(67945),n(84185),n(83851),n(81278),n(26099),n(47764),n(23500),n(62953);var w=n(17611);function j(e){return j="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},j(e)}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,l)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach(function(t){T(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function T(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var l=n.call(e,t||"default");if("object"!=j(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==j(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const X={name:"VueSelect2StoreList",extends:w.default,computed:E(E({},w.default.computed),{},{limitedQtyOptions:function(){return this.optionsParsed.filter(function(e){return!0===e.limited_qty})},fullQtyOptions:function(){return this.optionsParsed.filter(function(e){return!1===e.limited_qty})}}),watch:E(E({},w.default.watch),{},{fullQtyOptions:{handler:function(e){1===Object.keys(e).length&&this.select(e[0],!1,!0)},immediate:!0}})};const H=(0,n(66262).A)(X,[["render",function(e,t,n,w,j,V){var E=(0,l.g2)("vue-dropdown");return(0,l.uX)(),(0,l.CE)(l.FK,null,[(0,l.Lk)("select",{id:e.id,name:e.name,required:e.required,value:e.getOptionValue(e.modelValue),ref:"select",hidden:""},[e.nullLabel&&e.modelValue?((0,l.uX)(),(0,l.CE)("option",i,(0,l.v_)(e.nullLabel),
11)):(0,l.Q3)("v-if",!0),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.optionsParsed,function(t){return(0,l.uX)(),(0,l.CE)("option",{selected:e.isOptionActive(t),value:e.getOptionValue(t)},(0,l.v_)(e.getOptionLabel(t)),9,r)}),256))],8,o),(0,l.bF)(E,{disabled:e.disabled,ref:"vueDropdown",theme:"select"},{caller:(0,l.k6)(function(){return[(0,l.Lk)("button",{type:"button",class:(0,l.C4)(["form-control",[e.className]]),style:(0,l.Tr)(e.style)},[e.modelValue?((0,l.uX)(),(0,l.CE)("span",{key:0,innerHTML:e.getOptionLabel(e.modelValue)},null,8,u)):((0,l.uX)(),(0,l.CE)("span",{key:1,innerHTML:e.placeholder},null,8,s)),a],6)]}),drop:(0,l.k6)(function(){return[(0,l.Lk)("div",c,[e.nullLabel&&e.modelValue?((0,l.uX)(),(0,l.CE)("button",{key:0,type:"button",class:"dropdown__option",onClick:t[0]||(t[0]=function(t){return e.select(null,!0,!0)})},[(0,l.Lk)("span",{innerHTML:e.nullLabel},null,8,p)])):(0,l.Q3)("v-if",!0),Object.keys(V.fullQtyOptions).length?((0,l.uX)(),(0,l.CE)("div",d,[(0,l.Lk)("div",f,[b,(0,l.Lk)("div",y,[(0,l.Lk)("div",m,(0,l.v_)(e.$root.trans("[store.cart_qry_full]")),1)])])])):(0,l.Q3)("v-if",!0),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(V.fullQtyOptions,function(t){return(0,l.uX)(),(0,l.CE)("button",{type:"button",class:(0,l.C4)(["dropdown__option",{"is-active":e.isOptionActive(t)}]),onClick:function(n){return e.select(t,!0,!0)}},[(0,l.Lk)("span",{innerHTML:e.getOptionLabel(t)},null,8,O)],10,v)}),256)),Object.keys(V.limitedQtyOptions).length?((0,l.uX)(),(0,l.CE)("div",g,[(0,l.Lk)("div",L,[h,(0,l.Lk)("div",k,[(0,l.Lk)("div",S,(0,l.v_)(e.$root.trans("[store.cart_qry_limited]")),1)])])])):(0,l.Q3)("v-if",!0),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(V.limitedQtyOptions,function(t){return(0,l.uX)(),(0,l.CE)("button",{type:"button",class:(0,l.C4)(["dropdown__option",{"is-active":e.isOptionActive(t)}]),onClick:function(n){return e.select(t,!0,!0)}},[(0,l.Lk)("span",{innerHTML:e.getOptionLabel(t)},null,8,_)],10,C)}),256))])]}),_:1},8,["disabled"])],64)}]])},60739:(e,t,n)=>{var l=n(46518),o=n(79039),i=n(48981),r=n(72777);l({target:"Date",proto:!0,arity:1,forced:o(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(e){var t=i(this),n=r(t,"number");return"number"!=typeof n||isFinite(n)?t.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.