PageSourceSearch

https://static.lokalguiden.se/js/v3/assets/PremisesTypeSelectBoxCore-0cdf28b5.js

js lokalguiden.se collected 2026-09-25 04:11:09 UTC 1,545 bytes, 1 lines download raw bytes

1import{r as i,h as t,bo as f,bp as b,m as p,B as C,S as E,a4 as x}from"./index-8d7a54b5.js";const B="_listbox_1cj7s_1",y="_buttonContainer_1cj7s_12",$="_clearButton_1cj7s_17",l={listbox:B,buttonContainer:y,clearButton:$};function N({value:u,items:a,onChange:n,renderItem:o,onClearAll:s}){const m=i.useCallback(e=>{if(n){if(e==="all"){n(a.map(_=>_.id));return}n([...e])}},[n,a]);return t.createElement(t.Fragment,null,t.createElement(f,{className:l.listbox,selectedKeys:u,selectionMode:"multiple",onSelectionChange:m,"aria-label":"Select"},a.map(e=>o?o(e):t.createElement(b,{key:e.id,id:e.id,className:p(l.item),textValue:e.text},e.text))),s&&t.createElement("div",{className:l.buttonContainer},t.createElement(C,{label:"Rensa",variant:"secondary",size:"subtle",onPress:s,className:l.clearButton})))}const S="_item_10cuu_1",h="_item__icon_10cuu_53",P="_item__icon_10cuu_53",k="_counter__text_10cuu_62",R="_counter__text_10cuu_62",T="_counter_10cuu_62",d={item:S,item__icon:h,itemIcon:P,counter__text:k,counterText:R,counter:T},g=({typeOptions:u,selectedTypeIds:a,setSelectedTypeIds:n,index:o="premises",clearAll:s},m)=>{const e=i.useCallback(c=>{n(c)},[n]),_=i.useCallback(c=>{const r=o===E.Premises?x.premises[c.id]:x.real_estate[c.id];return t.createElement(b,{key:c.id,id:c.id,className:d.item,textValue:c.text},(r==null?void 0:r.icon)&&t.createElement("span",{className:p(d.item__icon)},r.icon),c.text)},[o]);return t.createElement(N,{value:a,onChange:e,items:u,renderItem:_,onClearAll:s?()=>n([]):void 0})},v=t.forwardRef(g);export{v as P};

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.