PageSourceSearch

https://www.gorjana.com/cdn/shop/t/2271/assets/dist.CdBbGC4J.js

js gorjana.com collected 2026-10-02 03:07:31 UTC 2,488 bytes, 1 lines download raw bytes

1import{n as u}from"./dist.C9HKE5mr.js";const n={model:{prop:"value",event:"select-quantity"},props:{value:{type:Number,required:!0},fieldId:{type:String,required:!0},fieldName:{type:String,default:"quantity"},increment:{type:Number,default:1},minValue:{type:Number,default:0},maxValue:{type:Number,required:!0},disabled:{type:Boolean,default:!1},modifierClass:{type:String,default:""}},data(){return{inputValue:this.value}},computed:{maxValueLimited(){return Math.min(149,this.maxValue)},isMax(){return this.inputValue>=this.maxValueLimited},isMin(){return this.inputValue<=this.minValue}},watch:{value(a){this.inputValue=a}},methods:{adjustQuantity(a=1){this.inputValue=Math.min(this.maxValueLimited,Number(this.inputValue)+a*this.increment),this.$nextTick(()=>this.updateQuantity())},updateQuantity(){const a=this.$el.querySelector(".quantity-selector__input");a.checkValidity()&&+this.inputValue!==this.value?this.$emit("select-quantity",this.inputValue):a.reportValidity()}}};var s=function(){var t=this,i=t._self._c;return i("div",{staticClass:"form__field form__field--quantity"},[i("label",{attrs:{for:t.fieldId}},[t._v(t._s(t.$t("product.quantity.label")))]),i("div",{staticClass:"quantity-selector",class:[t.modifierClass?"quantity-selector--"+t.modifierClass:""]},[i("button",{staticClass:"quantity-selector__control quantity-selector__control--minus",attrs:{type:"button","aria-label":t.$t("product.quantity.decrease"),disabled:t.disabled||t.isMin},on:{mousedown:function(e){e.preventDefault()},click:function(e){return e.preventDefault(),t.adjustQuantity(-1)}}},[i("span",{staticClass:"icon icon--minus",attrs:{"aria-hidden":"true"}})]),i("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],staticClass:"quantity-selector__input",attrs:{id:t.fieldId,type:"number",name:t.fieldName,min:t.minValue,max:t.maxValueLimited,pattern:"[0-9]*",disabled:t.disabled},domProps:{value:t.inputValue},on:{change:t.updateQuantity,input:function(e){e.target.composing||(t.inputValue=e.target.value)}}}),i("button",{staticClass:"quantity-selector__control quantity-selector__control--plus",attrs:{type:"button","aria-label":t.$t("product.quantity.increase"),disabled:t.disabled||t.isMax},on:{mousedown:function(e){e.preventDefault()},click:function(e){return e.preventDefault(),t.adjustQuantity()}}},[i("span",{staticClass:"icon icon--plus",attrs:{"aria-hidden":"true"}})])])])},l=[],r=u(n,s,l,!1,null,"705f0964");const d=r.exports;export{d as Q};

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.