PageSourceSearch

https://www.postnord.com/dist/client/pn-proxio-pricegroup.entry-20261001.js

js postnord.com collected 2026-10-02 02:21:52 UTC 9,722 bytes, 1 lines download raw bytes

1var p=Object.defineProperty;var d=(t,o,i)=>o in t?p(t,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[o]=i;var s=(t,o,i)=>d(t,typeof o!="symbol"?o+"":o,i);import{a as c,e,i as l}from"./client-20261001.js";import{F as h}from"./FetchHelper-4789695a-20261001.js";import{M as u}from"./MarketWebContextService-16c15670-20261001.js";import{t as n}from"./translations-a1ab2180-20261001.js";import{a as g}from"./arrow_left-2c8d8857-20261001.js";import{a as m}from"./arrow_right-f4852d04-20261001.js";import"./preload-helper-20261001.js";import"./helpers-20261001.js";import"./index-20261001.js";import"./index-202610012.js";const x='pn-button-dropdown .pn-button-dropdown>pn-button>.pn-button{min-height:initial}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}@media screen and (max-width: 767px){.sr-only-mobile{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}}pn-proxio-pricegroup div.proxio-pricegroup-container{max-width:99.4rem}pn-proxio-pricegroup div.weightcontainer{margin:2.8rem 0}pn-proxio-pricegroup div.weightvaluecontainer{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:flex-start}pn-proxio-pricegroup div.weightvaluecontainer pn-button{transform:translateY(-0.4rem)}pn-proxio-pricegroup div.weightvaluecontainer pn-button button::before{display:none}pn-proxio-pricegroup div.weightradios{display:flex;flex-direction:row;justify-content:space-between;align-items:center;flex-wrap:wrap;color:#005d92;width:80%;margin:0 3.6rem;position:relative;width:0%}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end50]{width:45%;margin-left:auto;margin-right:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end50]{width:40%}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end75]{width:65%;margin-left:auto;margin-right:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end75]{margin-right:auto}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start50]{width:45%;margin-right:auto;margin-left:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start50]{width:40%}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start75]{width:65%;margin-right:auto;margin-left:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start75]{margin-left:auto}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=default]{flex:0 0 auto;width:80%}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=default]{width:65%}}pn-proxio-pricegroup div.weightdata{display:flex;flex-direction:column;align-items:center;align-content:center;flex-wrap:wrap;justify-content:space-between;gap:1.2rem;min-width:4rem;cursor:pointer}pn-proxio-pricegroup div.weightdata label{font-size:1.4rem;cursor:pointer}pn-proxio-pricegroup div.weightdata[data-carousel-position="0"]{font-size:2rem;font-weight:700}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightdata[data-carousel-position="2"],pn-proxio-pricegroup div.weightdata[data-carousel-position="-2"]{display:none}}pn-proxio-pricegroup div.weightdata[data-carousel-position=outside]{display:none}pn-proxio-pricegroup div.weightdata input[type=radio]{-webkit-appearance:none;-moz-appearance:none;width:1.2rem;height:1.2rem;background-color:#005d92;border-radius:50%;margin:0;cursor:pointer}pn-proxio-pricegroup div.weightdata input[type=radio]:checked{z-index:1;transform:translateY(-0.1rem);height:1.4rem;width:1.4rem;box-shadow:0 0 0 0.3rem #ffffff, 0 0 0 0.4rem #005d92}pn-proxio-pricegroup div.weightline{width:100%;background-color:#f3f2f2;z-index:-1;height:0.8rem;-webkit-transform:translateX(2.1rem) translateY(1.32rem);transform:translateX(2.1rem) translateY(1rem);border-radius:2rem;margin-right:3.5rem}pn-proxio-pricegroup pn-button[disabled=disabled]{opacity:0.2}
1pn-proxio-pricegroup pn-button[disabled=disabled] button{cursor:default}pn-proxio-pricegroup pn-button[disabled=disabled] button.pn-button-light .pn-button-bg:after{background-color:#ffffff}pn-proxio-pricegroup pn-button[disabled=disabled] button[data-tooltip-open]:before{display:none}pn-proxio-pricegroup pn-button button div.button-tooltip{display:none}pn-proxio-pricegroup pn-button button:focus .pn-button-bg{box-shadow:none}',w=x,f=class{constructor(t){s(this,"fetchHelper",new h("proxiopricegroup"));c(this,t),this.endpoint=null,this.language="sv",this.market="se",this.tariffid="",this.cache=!0,this.activeWeightIndex=0,this.data=null,this.i18n=n.sv}componentWillLoad(){this.setInitialValues().then(()=>{this.init()})}async setInitialValues(t=window.location.href){const o=new u(t),i=await o.getEnvironmentName();if(!this.endpoint&&(i==null?void 0:i.indexOf("local"))===-1){const r=await o.getMarket();this.endpoint=await o.getEndpoint(i,r)}this.endpoint||(this.endpoint="")}init(){this.setLanguage(),this.fetchData()}async fetchData(){if(!this.market||!this.language||!this.tariffid)return;const o=`${this.endpoint.lastIndexOf("/")===this.endpoint.length-1?this.endpoint.substring(0,this.endpoint.length-1):this.endpoint}/api/proxio/price-list-group?tariffId=${this.tariffid}&market=${this.market}&language=${this.language}&cached=${this.cache}`,i=await this.fetchHelper.fetchJson(o,{mode:"cors"},this.cache,this.onFetchData.bind(this));i!=null&&i.proxioProduct&&(this.data=i)}onFetchData(t){this.data=t}setActiveWeightIndex(t){var r,a;let o=0,i=((a=(r=this.data.proxioProduct)==null?void 0:r.weightAndPriceList)==null?void 0:a.length)-1;t=t>i?i:t,t=t<o?o:t,this.activeWeightIndex=t}setLanguage(){n[this.language]&&(this.i18n=n[this.language])}getPriceString(t){var i;let o=t.weightAndPriceList?(i=t==null?void 0:t.weightAndPriceList[this.activeWeightIndex])==null?void 0:i.item2:"";return o?this.i18n.from+o:""}getProductLink(t,o){var a;let i=(a=o[this.activeWeightIndex])==null?void 0:a.item2,r=t.productLink?t==null?void 0:t.productLink:"";return r?r+(i?"?productId="+i:""):""}isActive(t){return t===this.activeWeightIndex}getCarouselPosition(t){switch(t){case this.activeWeightIndex-2:return-2;case this.activeWeightIndex-1:return-1;case this.activeWeightIndex:return 0;case this.activeWeightIndex+1:return 1;case this.activeWeightIndex+2:return 2;default:return"outside"}}getContainerPosition(){let t=this.data.proxioProduct.weightAndPriceList.length-1;switch(this.activeWeightIndex){case 0:return"end50";case 1:return"end75";case t-1:return"start75";case t:return"start50";default:return"default"}}render(){var t,o,i;return e(l,{key:"21313fd931fd89e820c322a7a53387c0c783d864"},(t=this.data)!=null&&t.proxioProduct?e("div",{class:"proxio-pricegroup-container"},e("div",{class:"weightcontainer"},this.data.proxioProduct.weightAndPriceList?e("div",{class:"weightvaluecontainer"},e("pn-button",{disabled:this.activeWeightIndex===0?"disabled":null,icon:g,appearance:"light",small:"true",onClick:()=>this.setActiveWeightIndex(this.activeWeightIndex-1)}),e("div",{class:"weightradios ","data-carousel-container-position":this.getContainerPosition()},e("div",{class:"weightline"}),this.data.proxioProduct.weightAndPriceList.map((r,a)=>this.getCarouselPosition(a)!==null?e("div",{class:"weightdata","data-carousel-position":this.getCarouselPosition(a),onClick:()=>this.setActiveWeightIndex(a)},e("input",{type:"radio",id:"weightradio"+a,name:"weightradio",value:a,checked:this.isActive(a)}),e("label",{htmlFor:"weightradio"+a},r.item1)):null)),e("pn-button",{disabled:this.activeWeightIndex===((i=(o=this.data.proxioProduct)==null?void 0:o.weightAndPriceList)==null?void 0:i.length)-1?"disabled":null,icon:m,appearance:"light",small:"true",onClick:()=>this.setActiveWeightIndex(this.activeWeightIndex+1)})):null),e("pn-proxio-productcard",null,e("pn-illustration",{slot:"illustrationmobile",illustration:this.data.proxioProduct.productIcon}),e("h2",{slot:"title"},this.data.proxioProduct.productTitle),e("pn-proxio-productcard-description",{slot:"description",heading:this.data.proxioProduct.productPreamble,highlight:this.data.proxioProduct.deliveryDateInformation,list:this.data.proxioProduct.productDescriptionBulletListItems}),e("div",{slot:"information"},e("pn-proxio-productcard-information",{label:this.i18n.labelMaxDimensions,information:this.data.proxioProduct.productPackageDimensionsList}),e("pn-proxio-productcard-information",{label:this.i18n.labelMaxDimensionsRoll,information:this.data.proxioProduct.productRollDimensionsList})),e("div",{slot:"bottomtags"},this.data.proxioProduct.usp1?e("pn-titletag",{color:"gray50"},this.data.proxioProduct.usp1):null,this.data.proxioProduct.usp2?e("pn-titletag",{color:"gray50"},this.data.proxioProduct.usp2):null,this.data.proxioProduct.usp3?e("pn-titletag",{color:"gray50"},this.data.proxioProduct.usp3):null),e("pn-illustration",{slot:"illustration",illustration:this.data.proxioProduct.productIcon}),e("div",{slot:"pricelink"},e("pn-proxio-productcard-pricelink",{price:this.getPriceString(this.data.proxioProduct),link:this.getProductLink(this.data.proxioProduct,this.data.proxioProduct.productWeightGroupList),linktext:this.data.proxioProduct.productLinkText}),this.data.relatedProxioProducts?this.data.relatedProxioProducts.map(r=>e("pn-proxio-productcard-pricelink",{price:this.getPriceString(r),link:r.productLink,linktext:r.productLinkText})):null))):null)}};f.style=w;export{f as pn_proxio_pricegroup};

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.