PageSourceSearch

https://saltstraumen.info/dist/all/chunks/16688-a2b83b61361f88980836.js

js saltstraumen.info collected 2026-09-25 07:14:37 UTC 3,495 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkwips_components_scripts||=[]).push([[16688],{"527de2ba84e84fe5"(t,e,a){a.r(e),a.d(e,{default:()=>b}),a("1519ef9f27f54b60"),a("07a8db537f1fb869"),a("27e0a48d3d4d9aab");var s=a("b641633d6c906d19"),i=a("99c472be6da17922"),n=a("388ad1c32495da5d"),l=a("da19b2b0057d147a"),r=a("c40486de06e3466e"),o=a("eb0d7dd6674ec63a");const c=["action"],d={class:"waste-advisor-list"},h={class:"fraction-title"},u=["textContent"],p={props:{title:String},data(){return{publishedContextData:null,wasteFractions:[],selectedFractionChoices:this.getSelectedFromUrl()}},computed:{selectAll:{get(){for(const t of this.wasteFractions)if(!this.selectedFractionChoices[t.id])return!1;return this.wasteFractions.length},set(t){this.wasteFractions.forEach(e=>{this.selectedFractionChoices[e.id]=t}),this.selectedFractionChoices={...this.selectedFractionChoices}}},...(0,o.aH)(r.D,["currentPageLanguage","currentPageId"]),translatedWasteFractions(){return this.wasteFractions.map(t=>({id:t.id,title:this.getFractionTitle(t)}))},selectedFractionsList(){return Object.entries(this.selectedFractionChoices).filter(([,t])=>t).map(([t])=>t).map(t=>parseInt(t)).map(t=>this.translatedWasteFractions.filter(e=>e.id==t)).filter(t=>t.length).map(t=>t[0])},currentUrl(){this.selectedFractionsList.map(t=>t.id).sort((t,e)=>t-e);const t=new URL(location.href);return t.searchParams.set("fractions",this.selectedFractionsList.map(t=>t.id).join(",")),t.toString()},pdfGuideUrl(){const t=this.selectedFractionsList.map(t=>t.id);if(t.sort((t,e)=>t-e),!t.length)return"";const e=""+this.publishedContextData?.containerContextId;return"/Api/v2/pages/"+this.currentPageId+"/block-containers/"+(this.publishedContextData?.containerName??"")+(e.length?"/contexts/"+e:"")+"/"+(this.publishedContextData?.publishId??"")+"/waste-fractions-guide/"+t.join(",")+"/guide.pdf"}},watch:{currentUrl(t){location.href!=t&&history.replaceState({},"",t.toString())}},methods:{setPublishedContextData(t){this.publishedContextData=t},getSelectedFromUrl(){const t=new URLSearchParams(location.search??"").get("fractions")?.split(",")?.filter(t=>t.length)?.map(t=>parseInt(t))??[];return Object.fromEntries(t.map(t=>[t,!0]))},getFractionTitle(t){return t.title[this.currentPageLanguage??"en"]??t.title.en??""},async fetchData(){const t=await fetch("/Api/v2/waste-fractions");t.ok&&(this.wasteFractions=await t.json())}},mounted(){this.fetchData()}},f=(0,s.pM)({...p,__name:"Block",setup(t,{expose:e}){const a=(0,s.nI)();return e({setPublishedContextData(t){a.proxy.setPublishedContextData(t)}}),(t,e)=>((0,s.uX)(),(0,s.CE)("form",{action:t.pdfGuideUrl,method:"get",target:"_blank",class:"v2-form"},[(0,s.Lk)("div",d,[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(t.translatedWasteFractions,e=>((0,s.uX)(),(0,s.Wv)(l.default,{key:e.id,type:"checkbox",modelValue:t.selectedFractionChoices[e.id],"onUpdate:modelValue":a=>t.selectedFractionChoices[e.id]=a},{label:(0,s.k6)(()=>[(0,s.Lk)("span",h,(0,i.v_)(e.title),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]))),128)),(0,s.bF)(l.default,{type:"checkbox",modelValue:t.selectAll,"onUpdate:modelValue":e[0]||(e[0]=e=>t.selectAll=e),class:"select-all-field"},{label:(0,s.k6)(()=>[(0,s.Lk)("span",{textContent:(0,i.v_)(t.$t("Select all"))},null,8,u)]),_:1},8,["modelValue"])]),(0,s.bF)(n.default,{label:t.$t("Show sorting guide"),type:"submit",disabled:!t.pdfGuideUrl.length},null,8,["label","disabled"])],8,c))}}),b=(0,a("461bee8a7784aa7f").A)(f,[["__scopeId","data-v-256a945a"]])}}]);

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.