PageSourceSearch

https://saltstraumen.info/dist/all/chunks/18079-05692d8f510a8db3cd53.js

js saltstraumen.info collected 2026-09-25 07:14:47 UTC 6,271 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkwips_components_scripts||=[]).push([[18079],{f4c380f921882fc9(e,t,l){function n(e,t,l){const n=[];!function e(l,r,d){for(let i=0;i<l.length;i++){const s=l[i],o=d+i;"number"==typeof s.id?t.has(s.id)&&n.push({op:"update",id:s.id,filter:{...s,sortOrder:o},parentId:r,sortOrder:o}):n.push({op:"add",filter:{...s,sortOrder:o},parentId:r,sortOrder:o}),e(s.children,"number"==typeof s.id?s.id:null,0)}}(e,null,0);for(const e of l)n.push({op:"delete",id:e});return n}function r(e){const t=new Set;return function e(l){for(const n of l)null!==n.id&&t.add(n.id),e(n.children)}(e),t}function d(e){const t=new Map;return function e(l){for(const n of l)null!==n.id&&t.set(n.id,n),e(n.children)}(e),t}function i(e,t,l){const n=Math.min(t,l),r=Math.max(t,l);return e.slice(n,r+1).map(e=>e.id).filter(e=>null!==e)}function s(e,t,l,n){const r=[],d=t.filter(e=>"string"!=typeof e.id);let i=0;const o=new Map;for(const t of e)null!==t.id&&o.set(t.id,t);for(const t of e){if("number"==typeof t.id&&n.has(t.id))continue;const e=null!==t.id&&l.has(t.id);if(e&&i<d.length){const e=d[i++],t=null===e.id?void 0:o.get(e.id),a=s(t?.children??e.children,e.children,l,n);r.push({...e,children:a})}else if(!e){const e=s(t.children,[],l,n);r.push({...t,children:e})}}for(const e of t)"string"==typeof e.id&&r.push(e);return r}l.d(t,{DL:()=>d,OD:()=>r,ao:()=>s,yQ:()=>n,zF:()=>i}),l("1519ef9f27f54b60"),l("27e0a48d3d4d9aab"),l("c748440b56b4d076"),l("5f35a93b0ced2429")},c21d8d042567a539(e,t,l){l.r(t),l.d(t,{default:()=>R}),l("1519ef9f27f54b60");var n=l("b641633d6c906d19"),r=l("99c472be6da17922"),d=l("a54fa6d0a722ba3f"),i=l("82d8eefb58430341"),s=l("ab5c7e913102dd40"),o=l("947eadf745033ed2"),a=l("32a07343d5e06d61"),c=l("d9492f72911b6294"),f=l("f4c380f921882fc9");const u=["onClick","onKeydown"],p={class:"filter-label"},b={key:1,class:"badge badge-expression"},h={key:2,class:"badge badge-pages"},g={key:3,class:"badge badge-children"},v=["title","aria-label","onClick"],m=["title","aria-label","onClick"],k=(0,n.pM)({name:"FilterTree"}),y=(0,n.pM)({...k,props:{filters:{type:Array,required:!0},selectedFilterId:{type:[Number,String],default:null},depth:{type:Number,default:0},orderable:{type:Boolean,default:!0}},emits:["select","update:filters","reorder"],setup(e,{emit:t}){const l=e,k=t,{t:y}=(0,s.s)(),R=(0,d.KR)(l.filters);(0,n.wB)(()=>l.filters,e=>{R.value=e});const C=l.depth??0;function w(e){k("select",e)}function I(){const e={id:"new_"+Date.now(),label:y("New filter"),sortOrder:l.filters.length,pageIds:[],selectable:!0,children:[],expression:null};k("update:filters",[...l.filters,e]),k("select",e.id)}function _(e){const t=l.filters[e].id,n=l.filters.filter((t,l)=>l!==e);k("update:filters",n),l.selectedFilterId===t&&k("select",null)}function x(e){const t=e.oldDraggableIndex??e.oldIndex??null,n=e.newDraggableIndex??e.newIndex??null;if(null===t||null===n)return;const{from:r,item:d}=e;r.removeChild(d),r.insertBefore(d,r.children[t]??null);const i=[...l.filters],[s]=i.splice(t,1);i.splice(n,0,s),R.value=i,k("update:filters",i),k("reorder",(0,f.zF)(i,t,n))}return(t,s)=>{const f=(0,n.g2)("FilterTree",!0);return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["filter-tree",{"is-nested":(0,d.R1)(C)>0}])},[((0,n.uX)(),(0,n.Wv)((0,n.$y)(e.orderable?(0,d.R1)(o.VueDraggable):"div"),{modelValue:R.value,"onUpdate:modelValue":s[3]||(s[3]=e=>R.value=e),handle:e.orderable?".drag-handle":void 0,"custom-update":e.orderable?x:void 0,animation:e.orderable?150:void 0,class:"filter-tree-items"},{default:(0,n.k6)(()=>[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(R.value,(t,o)=>((0,n.uX)(),(0,n.CE)("div",{key:t.id,class:"filter-tree-item"},[(0,n.Lk)("div",{class:(0,r.C4)(["filter-row",{selected:e.selectedFilterId===t.id}]),role:"button",tabindex:"0",onClick:e=>w(t.id),onKeydown:[(0,i.jR)(e=>w(t.id),["enter"]),(0,i.jR)((0,i.D$)(e=>w(t.id),["prevent"]),["space"])]},[e.orderable?((0,n.uX)(),(0,n.Wv)(c.default,{key:0,"icon-name":"drag_indicator",class:"drag-handle",onClick:s[0]||(s[0]=(0,i.D$)(()=>{},["stop"]))})):(0,n.Q3)("",!0),(0,n.Lk)("span",p,(0,r.v_)(t.label),1),(0,n.Lk)("span",{class:(0,r.C4)(["badge",t.selectable?"badge-selectable":"badge-forced"])},(0,r.v_)(t.selectable?(0,d.R1)(y)("Selectable"):(0,d.R1)(y)("Forced")),3),t.expression?((0,n.uX)(),(0,n.CE)("span",b,(0,r.v_)((0,d.R1)(y)("Has expression")),1)):(0,n.Q3)("",!0),t.pageIds.length>0?((0,n.uX)(),(0,n.CE)("span",h,(0,r.v_)(t.pageIds.length)+" "+(0,r.v_)(1===t.pageIds.length?(0,d.R1)(y)("page"):(0,d.R1)(y)("pages")),1)):(0,n.Q3)("",!0),t.children.length>0?((0,n.uX)(),(0,n.CE)("span",g,(0,r.v_)(t.children.length)+" "+(0,r.v_)(1===t.children.length?(0,d.R1)(y)("child"):(0,d.R1)(y)("children")),1)):(0,n.Q3)("",!0),(0,n.Lk)("div",{class:"filter-actions",onClick:s[1]||(s[1]=(0,i.D$)(()=>{},["stop"]))},[(0,n.Lk)("button",{type:"button",class:"btn-icon",title:(0,d.R1)(y)("Add sub-filter"),"aria-label":(0,d.R1)(y)("Add sub-filter"),onClick:e=>function(e){const t=[...l.filters],n={...t[e]},r={id:"new_"+Date.now(),label:y("New filter"),sortOrder:n.children.length,pageIds:[],selectable:!0,children:[],expression:null};n.children=[...n.children,r],t[e]=n,k("update:filters",t),k("select",r.id)}(o)},"+",8,v),(0,n.Lk)("button",{type:"button",class:"btn-icon btn-remove",title:(0,d.R1)(y)("Remove filter"),"aria-label":(0,d.R1)(y)("Remove filter"),onClick:e=>function(e){const t=l.filters[e],n=t.children.length>0,r=!!t.expression;n||r?(0,a.a)(y("Remove filter"),"",y("This filter has sub-filters or an expression. Are you sure you want to remove it?"),()=>_(e)):_(e)}(o)},"×",8,m)])],42,u),t.children.length>0?((0,n.uX)(),(0,n.Wv)(f,{key:0,filters:t.children,"selected-filter-id":e.selectedFilterId,depth:(0,d.R1)(C)+1,orderable:e.orderable,onSelect:w,"onUpdate:filters":e=>function(e,t){const n=[...l.filters];n[e]={...n[e],children:t},k("update:filters",n)}(o,e),onReorder:s[2]||(s[2]=e=>k("reorder",e))},null,8,["filters","selected-filter-id","depth","orderable","onUpdate:filters"])):(0,n.Q3)("",!0)]))),128))]),_:1},8,["modelValue","handle","custom-update","animation"])),(0,n.Lk)("button",{type:"button",class:"btn-add-filter",onClick:(0,i.D$)(I,["stop"])}," + "+(0,r.v_)((0,d.R1)(y)("Add filter")),1)],2)}}}),R=(0,l("461bee8a7784aa7f").A)(y,[["__scopeId","data-v-569ffcda"]])}}]);

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.