PageSourceSearch

https://www.galindberg.se/dist/script/5576.c991aa27b85af41614c6.js

js galindberg.se collected 2026-09-24 13:08:25 UTC 9,912 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkknowit_seed_project=self.webpackChunkknowit_seed_project||[]).push([[5576],{75310:(t,e,r)=>{r.d(e,{B:()=>a});class a{}},28721:(t,e,r)=>{r.d(e,{Z:()=>c});const a={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let n;const i=new Uint8Array(16);function s(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}const o=[];for(let t=0;t<256;++t)o.push((t+256).toString(16).slice(1));function u(t,e=0){return o[t[e+0]]+o[t[e+1]]+o[t[e+2]]+o[t[e+3]]+"-"+o[t[e+4]]+o[t[e+5]]+"-"+o[t[e+6]]+o[t[e+7]]+"-"+o[t[e+8]]+o[t[e+9]]+"-"+o[t[e+10]]+o[t[e+11]]+o[t[e+12]]+o[t[e+13]]+o[t[e+14]]+o[t[e+15]]}const c=function(t,e,r){if(a.randomUUID&&!e&&!t)return a.randomUUID();const n=(t=t||{}).random||(t.rng||s)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(let t=0;t<16;++t)e[r+t]=n[t];return e}return u(n)}},25576:(t,e,r)=>{r.r(e),r.d(e,{default:()=>g});var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.variantInfo.stockCountStatus?r("div",{staticClass:"c-buy",class:{"mb-0":t.showAccessoryCategoriesDesc}},[r("div",{class:[t.showContainer?"container":""]},[r("table",{staticClass:"table",class:{"mb-0":t.showAccessoryCategoriesDesc}},[r("thead",[r("tr",[r("th",[t._v(t._s(t.translate("product-th-variant")))]),t._v(" "),r("th",[t._v(t._s(t.translate("product-th-storestatus")))]),t._v(" "),r("th",[t._v(t._s(t.translate("product-th-packaging")))]),t._v(" "),"offerrequest"!=t.variantInfo.stockCountStatus?r("th",[t._v(t._s(t.translate("product-th-price")))]):t._e(),t._v(" "),r("th")])]),t._v(" "),t.buyPrice&&"0"!==t.buyPrice.netPrice?r("product-buy-table-row",{attrs:{price:t.buyPrice,tierPrices:t.prices,offerRequestEmailTo:t.offerRequestEmailTo,variantInfo:t.variantInfo},on:{"cart-updated":t.handleCartUpdate}}):t._e()],1)])]):t._e()};a._withStripped=!0;var n=r(97582),i=r(70538),s=r(21049),o=r(75310),u=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("tbody",[r("tr",[r("td",{attrs:{"data-header":"Variant"}},[t._v(t._s(t.variantInfo.name))]),t._v(" "),r("td",{attrs:{"data-header":"Lagerstatus"}},[r("div",{class:"stock stock--"+t.getStockStatus()},[r("svg",{staticClass:"bi bi-check-circle-fill",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"}},[r("path",{attrs:{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"}})]),t._v(" "),r("span",[t._v(t._s(t.translate("product-buy-"+t.variantInfo.stockCountStatus)))])])]),t._v(" "),r("td",{attrs:{"data-header":"Enhet"}},[t._v(t._s(t.unit)+", "+t._s(t.variantInfo.conversionFactor)+" "+t._s(t.variantInfo.unitMeasurement?t.variantInfo.unitMeasurement.toLowerCase():""))]),t._v(" "),"offerrequest"!=t.variantInfo.stockCountStatus?r("td",{attrs:{"data-header":"Pris"}},[r("div",{staticClass:"c-buy__price"},[null!=t.price?r("span",{staticClass:"price"},[t._v(t._s(t.formattedPriceToShow))]):t._e()])]):t._e(),t._v(" "),t.showBuyButton?r("td",{staticClass:"c-buy__action"},[r("div",{staticClass:"input-group"},[r("div",{staticClass:"input-group-prepend",attrs:{id:"button-addon4"}},[r("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button",disabled:t.numberOfItems<=t.minQuantity},on:{click:t.decreaseNumberOfItems}},[r("svg",{staticClass:"bi bi-dash-lg",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"}},[r("path",{attrs:{"fill-rule":"evenodd",d:"M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8Z"}})])])]),t._v(" "),r("input",{staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.numberOfItems},on:{change:t.inputHandler}}),t._v(" "),r("div",{staticClass:"input-group-append",attrs:{id:"button-addon4"}},[r("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.incrementNumberOfItems}},[r("svg",{staticClass:"bi bi-plus-lg",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"}},[r("path",{attrs:{"fill-rule":"evenodd",d:"M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2Z"}})])]),t._v(" "),r("button",{directives:[{name:"b-toggle",rawName:"v-b-toggle.sidebar-right",modifiers:{"sidebar-right":!0}}],staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.putInCart}},[r("svg",{staticClass:"bi bi-cart",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"}},[r("path",{attrs:{d:"M0 1.5A.5.5 0 0 1 .5 1H2a.5.5 0 0 1 .485.379L2.89 3H14.5a.5.5 0 0 1 .491.592l-1.5 8A.5.5 0 0 1 13 12H4a.5.5 0 0 1-.491-.408L2.01 3.607 1.61 2H.5a.5.5 0 0 1-.5-.5zM3.102 4l1.313 7h8.17l1.313-7H3.102zM5 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm7 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-7 1a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm7 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"}})])])])])]):t._e(),t._v(" "),"offerrequest"==t.variantInfo.stockCountStatus?r("td",[r("a",{staticClass:"c-quotation-link",attrs:{href:t.getEmailHref()}},[r("svg",{staticClass:"bi bi-envelope",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"}},[r("path",{attrs:{d:"M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1zm13 2.383-4.708 2.825L1
15 11.105zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741M1 11.105l4.708-2.897L1 5.383z"}})]),t._v(" "),r("span",[t._v("\n          "+t._s(t.translate("product-buy-offerrequestemail"))+"\n        ")])])]):t._e()]),t._v(" "),t.tierPrices.length>1&&"offerrequest"!=t.variantInfo.stockCountStatus?r("tr",[r("td",{staticClass:"p-0",attrs:{colspan:"5"}},[r("div",{staticClass:"c-buy__pricelvl"},[r("h2",[t._v(t._s(t.translate("product-buy-unitprice")))]),t._v(" "),r("ul",t._l(t.formattedTierPrices,(function(e,a){return r("li",{key:a,class:e.netPrice===t.priceToShow?"active":""},[t._v("\n            "+t._s(parseInt(e.priceQuantity,10))+" "+t._s(t.unit)+":\n            "+t._s(e.formattedNetPrice)+"\n          ")])})),0)])])]):t._e()])};u._withStripped=!0;var c=r(20629),l=r(93018),d=r(52861),p=r(97702);const f=i.default.extend({name:"product-buy-table-row",props:{variantInfo:{type:Object,required:!1,default:()=>new o.B},price:{type:Object,required:!0},tierPrices:{type:Array,required:!0},initialQuantity:{type:Number},offerRequestEmailTo:String},data:function(){var t;return{numberOfItems:null!==(t=this.initialQuantity)&&void 0!==t?t:parseInt(this.price.priceQuantity,10),minQuantity:parseInt(this.price.priceQuantity,10),cartViewModel:{type:l.g,required:!1,default:()=>new l.g},isLoading:{type:Boolean,default:()=>!1}}},computed:Object.assign({formattedPriceToShow(){return(0,p.u)(parseFloat(this.priceToShow),this.price.currencySymbol)},formattedTierPrices(){return this.tierPrices.map((t=>Object.assign(Object.assign({},t),{formattedNetPrice:(0,p.u)(parseFloat(t.netPrice),this.price.currencySymbol)})))},showBuyButton:function(){return"offerrequest"!=this.variantInfo.stockCountStatus&&"discontinued"!=this.variantInfo.stockCountStatus},unit:function(){return this.price?this.price.sggu:""},priceToShow:function(){var t;if(this.price){for(let e=(null===(t=this.tierPrices)||void 0===t?void 0:t.length)-1;e>=0;e--)if(this.numberOfItems>=this.tierPrices[e].priceQuantity)return this.tierPrices[e].netPrice;return this.price.netPrice}return""}},(0,c.Se)("cartState",["cart"])),methods:{translate:function(t){return(0,s.I)(t)},incrementNumberOfItems:function(){this.numberOfItems+=1},decreaseNumberOfItems:function(){this.numberOfItems>this.price.priceQuantity&&(this.numberOfItems-=1)},putInCart:function(){return(0,n.mG)(this,void 0,void 0,(function*(){try{let t={quantity:this.numberOfItems,articlenumber:this.variantInfo.id};this.$emit("cart-updated",this.variantInfo.id),yield d.Z.post("/api/cart/add",t).then((t=>{this.$store.dispatch("cartState/setCart",t.data),this.numberOfItems=this.minQuantity}))}catch(t){console.error(t)}}))},inputHandler:function(t){t.target.value<this.minQuantity&&(t.target.value=this.minQuantity),this.numberOfItems=t.target.value},getStockStatus:function(){return"notinstocktemporarily"==this.variantInfo.stockCountStatus||"offerrequest"==this.variantInfo.stockCountStatus?"notinstock":this.variantInfo.stockCountStatus},getEmailHref(){if("offerrequest"===this.variantInfo.stockCountStatus){const t=`${(0,s.I)("product-buy-offerrequest")} - ${this.variantInfo.id}`;return`mailto:${this.offerRequestEmailTo}?subject=${encodeURIComponent(t)}`}return""}}});var h=r(51900),v=(0,h.Z)(f,u,[],!1,null,null,null);v.options.__file="app/vue-js/components/product-buy/product-buy-table-row.vue";const m=v.exports;var b=r(28721);const y=i.default.extend({name:"product-buy",components:{"product-buy-table-row":m},props:{variantInfo:{type:Object,required:!1,default:()=>new o.B},showContainer:{type:Boolean,default:!0},offerRequestEmailTo:String,showAccessoryCategoriesDesc:{type:Boolean,default:!1}},data:function(){return{prices:[],buyPrice:null,priceLoaded:!1}},methods:{translate:function(t){return(0,s.I)(t)},getGuid:function(){return(0,b.Z)()},handleCartUpdate(t){this.$emit("cart-updated",t)}},mounted(){return(0,n.mG)(this,void 0,void 0,(function*(){try{this.variantInfo.id&&this.variantInfo.currencySymbol&&(yield d.Z.get(`/getprice?articlenumber=${this.variantInfo.id}&currency=${this.variantInfo.currencySymbol}`).then((t=>{this.prices=t.data,this.buyPrice=t.data[0]})))}catch(t){console.error(t)}}))}});var _=(0,h.Z)(y,a,[],!1,null,null,null);_.options.__file="app/vue-js/feature/product-buy/product-buy.vue";const g=_.exports}}]);

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.