PageSourceSearch

https://vierumaki.fi/_nuxt/Df9j7-bP2.js

js vierumaki.fi collected 2026-10-03 23:01:29 UTC 1,434 bytes, 1 lines download raw bytes

1import{n as e}from"./hePW80VL.js";import{a as t}from"./BXUjck09.js";import{Kt as n,On as r,mt as i,v as a}from"./Ib1jYPSS.js";import{a as o}from"./DkJnlnrX.js";import{t as s}from"./BC7daipr2.js";import{n as c}from"./Do0y-QGb2.js";import{t as l}from"./C7-78bn52.js";var u=e({default:()=>d}),d={__name:`SubresourceFilter`,async setup(e){let u,d,{$paths:f}=t(),p=c(),{subresourceFilter:m,availabilityLoading:h}=o(p),g=([u,d]=n(()=>s(f.getEndpoint(`articles`),{method:`post`,body:{categoryCode:`KENTAT`}})),u=await u,d(),u);function _(e){return{title:e.product.attributes.marketing_name,value:e.product.code}}let v=g&&g.length?g.map(_):[];async function y(e){p.subresourceFilter=e.value;let t=g.find(t=>t.product.code===e.value);if(t){let e=t.product.attributes.product_pagePath;try{p.availabilityLoading=!0;let t=await s(f.getEndpoint(`content`),{method:`get`,params:{pagePath:e}});if(t?.content?.fields?.body?.length){let e=t.content.fields.body.find(e=>e.contentType===`externalData`);e?.fields&&(p.setBuffer(e.fields),p.product.filters=e.fields.filters)}}finally{p.availabilityLoading=!1}}e.scope===`backend-availability`&&await p.loadAvailability()}return(e,t)=>(i(),a(r(l),{name:`subresource`,title:e.$t(`product.subresource.filterName`),required:!0,location:`primary`,scope:`backend-availability`,options:r(v),value:r(m),disabled:r(h),onInput:t[0]||=e=>y(e)},null,8,[`title`,`options`,`value`,`disabled`]))}};export{d as n,u as t};

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.