PageSourceSearch

https://myllytalo.fi/_nuxt/CfxtZAMp.js

js myllytalo.fi collected 2026-10-08 23:31:55 UTC 1,997 bytes, 1 lines download raw bytes

1import{k as B,h as O,j}from"./BI5BN1rn.js";import{G as E,$ as F,I as r,as as a,ak as l,ax as b,ao as i,al as n,am as H,aE as L,ar as V,r as f,e as y}from"./BA2cZanY.js";import"./DyfadX0W.js";import"./oiGUARBV.js";const w={key:0},z={class:"resourceselector-items"},D=["onClick"],M={class:"resource-name"},T={key:0,class:"resource-capacity"},$=["innerHTML"],G=E({__name:"ResourceSelector",props:{product:{type:Object,required:!0},resourcePool:{type:Object,required:!0},productShopId:{type:String,required:!0},resourceAvailability:{type:Array,required:!0},selectedResources:{type:Array,required:!0},isPrimary:{type:Boolean,required:!1,default:!1}},emits:["toggleResourceSelection"],setup(_,{emit:v}){const g=v,h=f(!1),k=f(""),S=_,{product:R,resourcePool:c,productShopId:I,resourceAvailability:s,selectedResources:N,isPrimary:P}=F(S),{isFeatureEnabled:q}=B(),x=y(()=>"resourceselector_"+I.value+"_"+R.value.id),u=y(()=>P.value&&q("resourcesfirst")),d=e=>s.value&&s.value.length&&s.value.includes(String(e.id)),p=e=>N.value.includes(String(e.id)),A=e=>{let t="";return u.value?(p(e)?t="btn btn-primary clickable":t="btn btn-default free clickable","resource-item "+t):s.value&&s.value.length>0?(d(e)?t="btn btn-default free clickable":t="btn btn-danger disabled",p(e)&&(t="btn btn-primary clickable"),"resource-item "+t):"resource-item btn btn-default disabled"},C=e=>{(u.value||d(e))&&g("toggleResourceSelection",{poolId:Number(c.value.id),resourceId:Number(e.id)})},m=e=>e?e.replace(/<[^>]*>/g,"").replace(/\n/g,"<br>"):"";return(e,t)=>r(c)?(a(),l("div",{key:0,class:"resourceselector-wrap",ref:r(x)},[r(h)?(a(),l("h3",w,b(r(k)),1)):i("",!0),n("div",z,[(a(!0),l(H,null,L(r(c).sharedResource,o=>(a(),l("button",{class:V(A(o)),onClick:J=>C(o)},[n("span",M,b(o.name),1),r(O)(m(o.description))?(a(),l("span",T,[t[0]||(t[0]=n("hr",null,null,-1)),n("span",{innerHTML:m(o.description)},null,8,$)])):i("",!0)],10,D))),256))])],512)):i("",!0)}}),X=j(G,[["__scopeId","data-v-3cb40640"]]);export{X as default};

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.