PageSourceSearch

https://www.wikicampers.fr/build/8186.f7bcd37b.js

js wikicampers.fr collected 2026-10-01 15:13:52 UTC 3,785 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[8186],{8186(e,t,s){s.d(t,{default:()=>a});s(16399),s(37716);var i=s(7809),n=s(2738),r=s(24222);const a=class extends i.xI{static targets=["conversationTrigger","sheet","conversationWrapper","dekstopConversation","mobileConversation","sheetHeader","filterWrapper","listWrapper"];static values={showSheet:{type:Boolean,default:!1}};async connect(){this.filterInputs=this.filterWrapperTarget?.querySelectorAll("input"),this.filterInputs.forEach(e=>{e.addEventListener("change",this.filterList.bind(this))}),this.selectedTag=this.filterInputs[0]?.value,document.body.addEventListener("conversation-selected",this.handleConversationSelected.bind(this)),document.body.addEventListener("conversations-list-appended",this.updateActiveConversation.bind(this)),this.dekstopConversationTarget.addEventListener("htmx:afterSwap",this.copyContentToSheet.bind(this)),this.listObserver=new MutationObserver(e=>{e.forEach(e=>{"childList"===e.type&&e.addedNodes.length>0&&this.filterList()})}),this.hasListWrapperTarget&&this.listObserver.observe(this.listWrapperTarget,{childList:!0,subtree:!1}),this.showSheetValue&&(this.copyContentToSheet(),this.updateSheetHeader(),this.handleSheetState())}disconnect(){this.filterInputs.forEach(e=>{e.removeEventListener("change",this.filterList.bind(this))}),document.body.removeEventListener("conversation-selected",this.handleConversationSelected.bind(this)),document.body.removeEventListener("conversations-list-appended",this.updateActiveConversation.bind(this)),this.dekstopConversationTarget.removeEventListener("htmx:afterSwap",this.copyContentToSheet.bind(this)),this.listObserver&&this.listObserver.disconnect()}handleConversationSelected(e){const t=e.detail?.conversationId;this.conversationId=t;const s=e.detail?.url;this.updateActiveConversation(),s&&window.history&&window.history.pushState&&window.history.pushState({conversationId:t},"",s)}updateActiveConversation(){this.conversationTriggerTargets.forEach(e=>{e.dataset.active=null,Number.parseInt(e.dataset.conversationId??0)===this.conversationId&&(e.dataset.active=!0)})}copyContentToSheet(){this.mobileConversationTarget.innerHTML=this.dekstopConversationTarget.innerHTML,this.updateSheetHeader(),this.scrollToConversationToBottom(),this.handleSheetState(),r.A.process(this.mobileConversationTarget)}updateSheetHeader(){const e=this.element.querySelector("[data-sheet-header]");e&&(this.sheetHeaderTarget.innerHTML=e.innerHTML,Array.from(document.querySelectorAll("[data-sheet-header]")).forEach(e=>{e.remove()}))}getSheet(){return this.sheet||(this.sheet=this.application.getControllerForElementAndIdentifier(this.sheetTarget,"ui--sheet")),this.sheet}closeSheet(){this.getSheet()?.hide()}handleSheetState(){window.innerWidth>n.PO||this.mobileConversationTarget.querySelector("[data-scrollable-area]")&&(this.getSheet()?.show(),this.sheetTarget.focus())}handleNextFilterSLide(){const e=(Array.from(this.filterInputs).findIndex(e=>e.value===this.selectedTag)+1)%this.filterInputs.length;this.filterInputs[e].nextElementSibling.click()}handlePrevFilterSLide(){const e=(Array.from(this.filterInputs).findIndex(e=>e.value===this.selectedTag)-1+this.filterInputs.length)%this.filterInputs.length;this.filterInputs[e].nextElementSibling.click()}filterList(e){this.selectedTag=e?.target.value??this.selectedTag,this.conversationTriggerTargets.forEach(e=>{"all"!==this.selectedTag?e.dataset.tag===this.selectedTag?e.classList.remove("hidden"):e.classList.add("hidden"):e.classList.remove("hidden")})}scrollToConversationToBottom(){this.conversationWrapperTargets.forEach(e=>{const t=e.querySelector("[data-scrollable-area]");if(!t)return;if(null===e.offsetParent)return;const s=t.lastElementChild;s&&s.scrollIntoView()})}}}}]);

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.