PageSourceSearch

https://repovesi.fi/_nuxt/BGJ8d65q.js

js repovesi.fi collected 2026-10-09 05:15:15 UTC 2,070 bytes, 1 lines download raw bytes

1import{G as w,$ as N,w as x,a$ as I,I as r,as as i,ak as n,al as l,ax as p,am as h,aE as m,aG as V,b6 as j,aF as A,ao as B,r as v,e as M}from"./BA2cZanY.js";const P={class:"resources list-group"},O={class:"list-group-item"},$={class:"list-group-item-heading"},D=["onClick"],E=["onUpdate:modelValue"],F=["value"],T=w({__name:"ManualResourceSelector",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},fullprices:{type:Object,required:!1},totalParticipantCount:{type:Number,required:!0}},emits:["resourceSeatsChanged"],setup(f,{emit:_}){const R=v(""),g=_,y=f,{product:u,resourcePool:c,productShopId:b,resourceAvailability:G,selectedResources:U,fullprices:d,totalParticipantCount:S}=N(y),o=v({}),C=M(()=>"resourceselector_"+b.value+"_"+u.value.id),q=(t,e)=>{o.value[t.id][e.id]=null},k=t=>!d.value||!d.value.selectableResources?t.sharedResource:t.sharedResource.filter(e=>d.value.selectableResources.includes(parseInt(e.id,10)));return x(o,t=>{g("resourceSeatsChanged",t)},{deep:!0}),I(()=>{if(u.value&&u.value.sharedResourcepool)for(let t=0;t<u.value.sharedResourcepool.length;t++){let e=u.value.sharedResourcepool[t];if(o.value[e.id]={},e.sharedResource)for(let s=0;s<e.sharedResource.length;s++){let a=e.sharedResource[s];o.value[e.id][a.id]=null}}}),(t,e)=>r(c)?(i(),n("div",{key:0,class:"resourceselector-wrap",ref:r(C)},[l("h3",null,p(r(R)),1),l("div",P,[(i(!0),n(h,null,m(k(r(c)),s=>(i(),n("span",O,[l("h4",$,[l("span",{class:"removeitem fa fa-fw fa-close pull-right",onClick:a=>q(r(c),s)},null,8,D),V(l("select",{class:"resourcecount form-control pull-right",style:{width:"auto",display:"inline",height:"32px"},"onUpdate:modelValue":a=>r(o)[r(c).id][s.id]=a},[e[0]||(e[0]=l("option",{value:0},"0",-1)),(i(!0),n(h,null,m(Math.min(parseInt(s.count),r(S)),a=>(i(),n("option",{value:a},p(a),9,F))),256))],8,E),[[j,r(o)[r(c).id][s.id]]]),A(" "+p(s.name),1)])]))),256))])],512)):B("",!0)}});export{T 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.