PageSourceSearch

https://www.granngarden.se/dist/Component.ProductExtraFreightCosts.c961f2e3.js

js granngarden.se collected 2026-09-24 18:17:46 UTC 6,700 bytes, 1 lines download raw bytes

1"use strict";(self.fkaWebpackJsonp=self.fkaWebpackJsonp||[]).push([[2305,5506],{3165:(t,e,n)=>{var r;n.d(e,{U:()=>r}),function(t){t[t.None=0]="None",t[t.InventoryInStock=1]="InventoryInStock",t[t.InventoryNotInStock=2]="InventoryNotInStock",t[t.ContactSales=3]="ContactSales",t[t.ForcedPurchaseButton=4]="ForcedPurchaseButton",t[t.StoreOnly=5]="StoreOnly",t[t.TemporarilyOutOfStock=12]="TemporarilyOutOfStock",t[t.OutOfWebStock=13]="OutOfWebStock",t[t.OrderAndBuyInStore=14]="OrderAndBuyInStore"}(r||(r={}))},6455:(t,e,n)=>{n.r(e),n.d(e,{default:()=>F});var r=n(641),l=n(33);const o={key:0},a={class:"product-content__alert alert alert--warning"},s={class:"alert__icon"},u={class:"product-content__alert-message alert__message"};var i=n(3363),d=n(4324),c=n(7985),k=n(5052),g=n(5094),v=n(9590),h=n(3165),L=n(953),x=n(2124);const C=(0,r.pM)({name:"ProductExtraFreightCosts",mixins:[(0,d.m)()],components:{Icon:k.A,ProductExtraFreightCostsModal:i.A},props:{apiUrl:String,productNumber:String,initialExtraFreightCost:Object,extraFreightCostZones:Object,orderItem:Boolean},setup(t){const e=(0,x.Pj)(),n=(0,L.KR)(null),l=(0,L.KR)(!1),o=(0,L.KR)(null),a=(0,r.EW)((()=>o.value??t.initialExtraFreightCost)),s=(0,r.EW)((()=>t.productNumber&&e&&(0,v.xy)(e)[t.productNumber]||null)),u=(0,r.EW)((()=>!!s.value&&s.value?.availabilityInfo?.availabilityStatus===h.U.StoreOnly));return(0,r.sV)((()=>{t.apiUrl&&!t.initialExtraFreightCost&&(async()=>{if(t.apiUrl&&t.productNumber){n.value?.abort();try{n.value=new AbortController;const e=await c.A.get(t.apiUrl,{query:{productNumbers:t.productNumber},signal:n.value?.signal}),r=await e.json();n.value=null,o.value=r.extraFreightCost?.[t.productNumber]}catch(t){g.z(t)}finally{n.value=null}}})()})),{inventory:s,extraFreightCost:a,storeOnly:u,isOpen:l,response:o}}});const F=(0,n(6262).A)(C,[["render",function(t,e,n,i,d,c){const k=(0,r.g2)("Icon"),g=(0,r.g2)("ProductExtraFreightCostsModal");return t.storeOnly?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.CE)("div",o,[(0,r.Lk)("div",a,[(0,r.Lk)("div",s,[(0,r.bF)(k,{icon:"warning"})]),(0,r.Lk)("div",u,[(0,r.Lk)("button",{class:"link link--underline",type:"button",onClick:e[0]||(e[0]=e=>t.isOpen=!0)},(0,l.v_)(t.translate(t.orderItem?"orderItemProductHasExtraFreightCosts":"productHasExtraFreightCosts")),1)])]),t.isOpen?((0,r.uX)(),(0,r.Wv)(g,{key:0,onClose:e[1]||(e[1]=e=>t.isOpen=!1),"extra-freight-cost":t.extraFreightCost,"extra-freight-cost-zones":t.extraFreightCostZones,lang:t.translate("modal")},null,8,["extra-freight-cost","extra-freight-cost-zones","lang"])):(0,r.Q3)("",!0)]))}]])},3363:(t,e,n)=>{n.d(e,{A:()=>v});var r=n(641),l=n(33),o=n(3751);const a={class:"product-header__extra-freight-costs"},s={class:"table"},u={key:0},i={key:0},d={key:1,class:"vat-text"};var c=n(6978),k=n(4324);const g=(0,r.pM)({name:"ProductExtraFreightCostsModal",mixins:[(0,k.m)()],components:{Modal:c.A},props:{extraFreightCost:Object,extraFreightCostZones:Object},computed:{vatText(){const{translate:t,extraFreightCost:e}=this;
1if(e)return[t("pricesAreShown"),t(e.includeTax?"inclVAT":"exclVAT")].join(" ")}}});const v=(0,n(6262).A)(g,[["render",function(t,e,n,c,k,g){const v=(0,r.g2)("Modal");return(0,r.uX)(),(0,r.Wv)(v,{popup:"",title:t.translate("extraFreightCosts"),lang:t.translate("modal"),onClose:e[1]||(e[1]=e=>t.$emit("close"))},{default:(0,r.k6)((()=>[(0,r.Lk)("div",a,[(0,r.Lk)("p",null,(0,l.v_)(t.translate("extraFreightCostZoneDescription")),1),(0,r.Lk)("table",s,[(0,r.Lk)("thead",null,[(0,r.Lk)("tr",null,[(0,r.Lk)("th",null,(0,l.v_)(t.translate("zone")),1),(0,r.Lk)("th",null,(0,l.v_)(t.translate("zipCode")),1),(0,r.Lk)("th",null,(0,l.v_)(t.translate("price")),1)])]),t.extraFreightCost&&t.extraFreightCostZones?((0,r.uX)(),(0,r.CE)("tbody",u,[(0,r.Lk)("tr",null,[e[2]||(e[2]=(0,r.Lk)("td",null,"1",-1)),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCostZones.zoneOne),1),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCost.zoneOne),1)]),(0,r.Lk)("tr",null,[e[3]||(e[3]=(0,r.Lk)("td",null,"2",-1)),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCostZones.zoneTwo),1),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCost.zoneTwo),1)]),(0,r.Lk)("tr",null,[e[4]||(e[4]=(0,r.Lk)("td",null,"3",-1)),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCostZones.zoneThree),1),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCost.zoneThree),1)]),(0,r.Lk)("tr",null,[e[5]||(e[5]=(0,r.Lk)("td",null,"4",-1)),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCostZones.zoneFour),1),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCost.zoneFour),1)]),(0,r.Lk)("tr",null,[e[6]||(e[6]=(0,r.Lk)("td",null,"5",-1)),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCostZones.zoneFive),1),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCost.zoneFive),1)]),(0,r.Lk)("tr",null,[e[7]||(e[7]=(0,r.Lk)("td",null,"6",-1)),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCostZones.zoneSix),1),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCost.zoneSix),1)]),(0,r.Lk)("tr",null,[e[8]||(e[8]=(0,r.Lk)("td",null,"7",-1)),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCostZones.zoneSeven),1),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCost.zoneSeven),1)]),(0,r.Lk)("tr",null,[e[9]||(e[9]=(0,r.Lk)("td",null,"8",-1)),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCostZones.zoneEight),1),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCost.zoneEight),1)]),(0,r.Lk)("tr",null,[e[10]||(e[10]=(0,r.Lk)("td",null,"9",-1)),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCostZones.zoneNine),1),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCost.zoneNine),1)]),(0,r.Lk)("tr",null,[e[11]||(e[11]=(0,r.Lk)("td",null,"10",-1)),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCostZones.zoneTen),1),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCost.zoneTen),1)]),(0,r.Lk)("tr",null,[e[12]||(e[12]=(0,r.Lk)("td",null,"11",-1)),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCostZones.zoneEleven),1),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCost.zoneEleven),1)]),(0,r.Lk)("tr",null,[e[13]||(e[13]=(0,r.Lk)("td",null,"12",-1)),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCostZones.zoneTwelve),1),(0,r.Lk)("td",null,(0,l.v_)(t.extraFreightCost.zoneTwelve),1)])])):(0,r.Q3)("",!0)]),t.extraFreightCost?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.CE)("p",i,e[14]||(e[14]=[(0,r.Lk)("img",{class:"loading",src:"/UI/Icons/loading.svg",alt:""},null,-1)]))),t.vatText?((0,r.uX)(),(0,r.CE)("p",d,(0,l.v_)(t.vatText),1)):(0,r.Q3)("",!0),(0,r.Lk)("p",null,[(0,r.eW)((0,l.v_)(t.translate("onlyOneAddedFreightCostPerOrder")),1),e[15]||(e[15]=(0,r.Lk)("br",null,null,-1)),(0,r.eW)(" "+(0,l.v_)(t.translate("addedFreightCostsAlsoAppliesToFreeFreights")),1)])]),(0,r.Lk)("button",{onClick:e[0]||(e[0]=(0,o.D$)((e=>t.$emit("close")),["prevent"])),class:"button button--primary",type:"button"},(0,l.v_)(t.translate("modal","ok")),1)])),_:1},8,["title","lang"])}],["__scopeId","data-v-7e80c197"]])}}]);

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.