PageSourceSearch

https://new.tableplop.com/_app/immutable/chunks/campaignController-682a42bb.js

js tableplop.com collected 2026-10-04 08:47:23 UTC 1,473 bytes, 1 lines download raw bytes

1import{w as i}from"./index-26a0c281.js";import{C as c}from"./userController-4d9df6d8.js";import{a6 as d}from"./index-25fec494.js";import{f}from"./characterController-5868cdc7.js";const a=i(null);a.get=()=>d(a);typeof window<"u"&&(window.stores=window.stores||{},window.stores.campaign=a);const s={};function u(t){a.set(t)}async function l(){const t=a.get(),n={};let r=!1;if(Object.keys(t).forEach(e=>{const o=typeof t[e]=="object"?JSON.stringify(t[e]):t[e];o!==s[e]&&(n[e]=t[e],s[e]=o,e==="characterDescription"&&(r=!0))}),Object.keys(n).length!==0){try{const o=await(await fetch(`/api/v1/campaigns/${t.id}`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(n)})).json();o.error&&addToast(o.error),r&&f(a.id,!0,!0)}catch{addToast("There was an error saving changes to your campaign.")}return a.get()}}function w(t){return new Promise((n,r)=>{pushModal({title:`Deleting ${t.name}`,type:c,data:{body:`Are you sure you want to delete "${t.name}"? This cannot be reversed. The scenes, characters and settings will be lost forever.`,confirm:"Delete",destructive:!0,onConfirm:()=>{fetch(`/api/v1/campaigns/${t.id}`,{method:"DELETE",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(e=>e.json()).then(e=>{e.error?(addToast(e.error),r()):(window.location.href="/campaigns/",n())}).catch(()=>{addToast("Something went wrong deleting this campaign."),r()})}}})})}export{a as c,w as d,u as s,l as u};

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.