1import{D as E,a as _,i as R,c as T,s as j}from"./url-DQBnDOZP.js";import{o as l,c as n,b as a,t as m,H as u,J as k,R as S,k as D,d as c,l as f,G as F,D as U,L as x,F as p,B as I,C as w,I as C,M as P,K as L}from"./runtime-dom.esm-bundler-PqauT6gD.js";import{_ as M}from"./focus-trap.esm-BL4nWLdK.js";import{e as H,g as O,_ as V}from"./SearchModal-CNiGzfPX.js";import{d as q}from"./vuedraggable.umd-BGkIEpiL.js";const K={name:"CompilationModal",props:{mode:{type:String,default:"create",validator:t=>["create","update"].includes(t)},compilationId:{type:[String,Number],default:null},items:{type:Array,default:()=>[]}},emits:["close","created","updated"],data(){return{form:{title:"",description:"",visibility:"private"},isSaving:!1}},computed:{compilationItems(){return this.items.map(t=>({...t,options:t.options??{height:_,width:E}}))}},methods:{close(){this.$emit("close")},async save(){if(!this.form.title||this.isSaving)return;const t=document.querySelector('meta[name="csrf-token"]').getAttribute("content");this.isSaving=!0;try{const e={title:this.form.title,description:this.form.description,visibility:this.form.visibility,items:this.compilationItems};let o;if(this.mode==="create"?o=await fetch("/api/compilations",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":t},body:JSON.stringify(e)}):o=await fetch(`/api/compilations/${this.compilationId}`,{method:"PUT",headers:{"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":t},body:JSON.stringify({items:this.compilationItems})}),!o.ok){const i=await o.json();alert(i.message||"Failed to save compilation");return}const d=await o.json();if(this.mode==="create"){window.location.href=`${window.location.origin}/compilation/${d.data.uuid}`;return}alert(d.message||"Compilation saved successfully!"),this.$emit("updated",d.data),this.close()}catch(e){console.error("Failed to save compilation:",e),alert("Failed to save compilation. Please try again.")}finally{this.isSaving=!1}}}},N={class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-9999"},X={class:"bg-white p-6 max-w-lg w-full mx-4 max-h-screen overflow-y-auto"},W={class:"flex items-center justify-between mb-4"},B={class:"text-xl font-neutral-bold"},z={class:"space-y-4"},J={class:"space-y-2"},G={class:"flex items-center cursor-pointer"},Z={class:"flex items-center cursor-pointer"},Q={class:"text-sm text-hamdarkgray"},Y={class:"flex gap-2 justify-end"},$=["disabled"];function ee(t,e,o,d,i,s){return l(),n("div",N,[a("div",X,[a("div",W,[a("h3",B,m(o.mode==="create"?"Create Compilation":"Send to Compilation"),1),a("button",{onClick:e[0]||(e[0]=(...h)=>s.close&&s.close(...h)),class:"text-2xl"},"Ã")]),a("div",z,[a("div",null,[e[7]||(e[7]=a("label",{for:"compilation-title",class:"block text-sm font-neutral-bold mb-1"},"Title",-1)),u(a("input",{id:"compilation-title","onUpdate:modelValue":e[1]||(e[1]=h=>i.form.title=h),type:"text",placeholder:"My Collection",maxlength:"255",class:"w-full border border-hamdarkgray p-2 focus:outline-black focus:outline-dashed focus:outline-2"},null,512),[[k,i.form.title]])]),a("div",null,[e[8]||(e[8]=a("label",{for:"compilation-description",class:"block text-sm font-neutral-bold mb-1"},"Description (optional)",-1)),u(a("textarea",{id:"compilation-description","onUpdate:modelValue":e[2]||(e[2]=h=>i.form.description=h),placeholder:"About this collection...",rows:"3",class:"w-full border border-hamdarkgray p-2 focus:outline-black focus:outline-dashed focus:outline-2"},null,512),[[k,i.form.description]])]),a("div",null,[e[11]||(e[11]=a("label",{class:"block text-sm font-neutral-bold mb-1"},"Visibility",-1)),a("div",J,[a("label",G,[u(a("input",{type:"radio","onUpdate:modelValue":e[3]||(e[3]=h=>i.form.visibility=h),value:"private",class:"peer mr-2"},null,512),[[S,i.form.visibility]]),e[9]||(e[9]=a("span",{class:"text-hamdarkgray peer-checked:text-white py-1 px-2"},"Private - Only you can see this",-1))]),a("label",Z,[u(a("input",{type:"radio","onUpdate:modelValue":e[4]||(e[4]=h=>i.form.visibility=h),value:"public",class:"peer mr-2"},null,512),[[S,i.form.visibility]]),e[10]||(e[10]=a("span",{class:"text-hamdarkgray peer-checked:text-white py-1 px-2"},"Public - Anyone with the link can view",-1))])])]),a("div",Q,m(o.items.length)+" items will be included ",1),a("div",Y,[a("button",{onClick:e[5]||(e[5]=(...h)=>s.close&&s.close(...h)),class:"p-2 px-4 border border-hamdarkgray hover:bg-hamlightgray"}," Cancel "),a("button",{onClick:e[6]||(e[6]=(...h)=>s.save&&s.save(...h)),disabled:!i.form.title||i.isSaving,class:"p-2 px-4 bg-black text-white hover:bg-hamg disabled:opacity-50 disabled:cursor-not-allowed"},m(o.mode==="create"?"Create Compilation":"Update Compilation"),9,$)])])])])}const A=M(K,[["render",ee]]),te={name:"Workbench",components:{draggable:q,CompilationModal:A},data(){return{workbenchId:"workbench-99999",isExpanded:!1,isFullScreen:!1,isHidden:!1,searchModalOpen:!1,searchConfig:null,selectedEntityType:"",activeTrayId:"default",trays:{},keyboardReorderState:{isGrabbed:!1,grabbedIndex:null,targetIndex:null},pendingSyncTrayIds:[],isSyncing:!1,isAuthenticated:!1,trayIdMap:{},linkForm:{url:"",title:"",image:null,altText:"",includeImage:!1},linkFormState:{fetchingImage:!1,uploadingImage:!1,imageError:null},showLinkForm:!1,compilationModalOpen:!1,compilationModalMode:"create",compilationModalId:null,activeItemMenuId:null,isExportingChecklist:!1,isSavingList:!1,savedListAt:null}},computed:{saveListLabel(){return this.isSavingList?"Saving...":this.savedListAt?"Saved â":"Save as List"},currentTray(){return this.trays[this.activeTrayId]||{items:[],name:"Default Tray"}},currentTrayItems(){return this.currentTray.items||[]},trayList(){return Object.values(this.trays).sort((t,e)=>t.createdAt-e.createdAt)},entityTypes(){return O()}},methods:{apiHeaders(){return{Accept:"application/json","X-Requested-With":"XMLHttpRequest","X-CSRF-Token":document.querySelector('meta[name="csrf-token"]').getAttribute("content")}},jsonHeaders(){return{...this.apiHeaders(),"Content-Type":"application/json"}},async checkAuthentication(){try{const t=await fetch("/api/workbench/trays",{headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}});return this.isAuthenticated=t.status!==401,this.isAuthenticated}catch(t){return console.error("Error checking authentication:",t),this.isAuthenticated=!1,!1}},async fetchTraysFromAPI(){if(this.isAuthenticated)try{const t=await fetch("/api/workbench/trays",{headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}});if(!t.ok)throw new Error(`Failed to fetch trays: ${t.statusText}`);const o=(await t.json()).data||[],d={};
1if(o.forEach(i=>{const s=`db-${i.id}`;this.trayIdMap[s]=i.id,d[s]={id:s,dbId:i.id,name:i.name,items:i.items,createdAt:new Date(i.created_at).getTime(),updatedAt:new Date(i.updated_at).getTime()}}),Object.keys(d).length>0){this.trays=d;const i=Object.keys(d)[0];this.activeTrayId=i}else this.initializeDefaultTray();this.saveToLocalStorage()}catch(t){console.error("Failed to fetch trays from API:",t),this.loadFromLocalStorage()}},async syncTrayToAPI(t){if(!(!this.isAuthenticated||!this.trays[t])&&(this.pendingSyncTrayIds.includes(t)||this.pendingSyncTrayIds.push(t),!this.isSyncing)){this.isSyncing=!0;try{for(;this.pendingSyncTrayIds.length>0;)await this.saveTray(this.pendingSyncTrayIds.shift())}finally{this.isSyncing=!1}}},async saveTray(t){const e=this.trays[t];if(!e)return;const o=JSON.stringify({name:e.name,items:e.items});try{const d=await fetch(e.dbId?`/api/workbench/trays/${e.dbId}`:"/api/workbench/trays",{method:e.dbId?"PUT":"POST",headers:this.jsonHeaders(),body:o});if(!d.ok){console.error("Failed to sync tray to API:",await d.json());return}if(!e.dbId){const i=await d.json();e.dbId=i.data.id,this.trayIdMap[t]=i.data.id}}catch(d){console.error("Error syncing tray to API:",d)}},async deleteTrayFromAPI(t){const e=this.trays[t];if(!(!this.isAuthenticated||!e||!e.dbId))try{(await fetch(`/api/workbench/trays/${e.dbId}`,{method:"DELETE",headers:this.apiHeaders()})).ok||console.error("Failed to delete tray from API")}catch(o){console.error("Error deleting tray from API:",o)}},loadFromLocalStorage(){const t=localStorage.getItem("workspace_trays");t&&!localStorage.getItem("workbench_trays")&&(localStorage.setItem("workbench_trays",t),localStorage.removeItem("workspace_trays"));const e=localStorage.getItem("workspace_active_tray");e&&!localStorage.getItem("workbench_active_tray")&&(localStorage.setItem("workbench_active_tray",e),localStorage.removeItem("workspace_active_tray"));const o=localStorage.getItem("workspace_expanded");o&&!localStorage.getItem("workbench_expanded")&&(localStorage.setItem("workbench_expanded",o),localStorage.removeItem("workspace_expanded"));const d=localStorage.getItem("workbench_trays");if(d)try{this.trays=JSON.parse(d)}catch(y){console.error("Failed to parse workbench trays from localStorage:",y),this.initializeDefaultTray()}else this.initializeDefaultTray();const i=localStorage.getItem("workbench_active_tray");if(i&&this.trays[i])this.activeTrayId=i;else{const y=Object.keys(this.trays);y.length>0&&(this.activeTrayId=y[0])}const s=localStorage.getItem("workbench_expanded");s!==null&&(this.isExpanded=s==="true");const h=localStorage.getItem("workbench_fullscreen");h!==null&&(this.isFullScreen=h==="true");const b=localStorage.getItem("workbench_hidden");b!==null&&(this.isHidden=b==="true")},initializeDefaultTray(){this.trays={default:{id:"default",name:"Default Tray",items:[],createdAt:Date.now(),updatedAt:Date.now()}},this.activeTrayId="default"},saveToLocalStorage(){localStorage.setItem("workbench_trays",JSON.stringify(this.trays)),localStorage.setItem("workbench_active_tray",this.activeTrayId),localStorage.setItem("workbench_expanded",this.isExpanded.toString()),localStorage.setItem("workbench_fullscreen",this.isFullScreen.toString()),localStorage.setItem("workbench_hidden",this.isHidden.toString())},toggleExpanded(){this.isExpanded=!this.isExpanded,this.isExpanded===!1&&(this.isFullScreen=!1)},toggleFullScreen(){this.isFullScreen=!this.isFullScreen,this.isFullScreen&&(this.isExpanded=!0)},toggleHidden(){this.isHidden=!this.isHidden,this.isHidden||(this.isExpanded=!1,this.isFullScreen=!1)},openSearchModal(){if(!this.selectedEntityType)return;const t=j(this.selectedEntityType);if(!t){console.error("Unknown entity type:",this.selectedEntityType);return}this.searchConfig=t,this.searchModalOpen=!0},closeSearchModal(){this.searchModalOpen=!1},async addItemToTray(t){if(!this.searchConfig){console.error("No search config available for adding item");return}try{const e=await T(this.searchConfig.type,t);await this.pinToTray(e)}catch(e){console.error("Failed to add item to workbench:",e),alert("Failed to add item to workbench. Please try again.")}},async handleWorkbenchAddEvent(t){const e=t.detail;if(!e||!e.type||!e.item){console.error("Invalid workbench-add-item event data:",e);return}if(e.type!=="link"&&!H(e.type)){console.error("Unknown entity type in workbench-add-item event:",e.type);return}try{const o=e.type==="link"?{id:e.item.id||`link-${Date.now()}`,type:"link",title:e.item.title,url:e.item.url,image:e.item.image||null,altText:e.item.altText||null}:await T(e.type,e.item);await this.pinToTray(o)}catch(o){console.error("Failed to add item to workbench:",o),alert("Failed to add item to workbench. Please try again.")}},async pinToTray(t){this.trays[this.activeTrayId]||this.initializeDefaultTray(),this.trays[this.activeTrayId].items.push({...t,addedAt:Date.now()}),this.trays[this.activeTrayId].updatedAt=Date.now(),this.saveToLocalStorage(),await this.syncTrayToAPI(this.activeTrayId)},async createNewTray(){const t=prompt("Enter a name for the new workbench tray:");if(!t||t.trim()==="")return;const e=`tray-${Date.now()}`;this.trays[e]={id:e,name:t.trim(),items:[],createdAt:Date.now(),updatedAt:Date.now()},this.activeTrayId=e,this.saveToLocalStorage(),await this.syncTrayToAPI(e)},async deleteTray(){if(this.trayList.length<=1){alert("Cannot delete the last workbench tray.");return}if(!confirm(`Are you sure you want to delete "${this.currentTray.name}"? This cannot be undone.`))return;const e=this.activeTrayId;await this.deleteTrayFromAPI(e),delete this.trays[e],this.activeTrayId=this.trayList[0].id,this.saveToLocalStorage()},removeItem(t){if(!this.trays[this.activeTrayId])return;const e=this.trays[this.activeTrayId].items.findIndex(o=>o.id===t);e!==-1&&(this.trays[this.activeTrayId].items.splice(e,1),this.trays[this.activeTrayId].updatedAt=Date.now(),this.saveToLocalStorage(),this.syncTrayToAPI(this.activeTrayId))},showItemMenu(t,e){this.activeItemMenuId===t.id?this.activeItemMenuId=null:(this.activeItemMenuId=t.id,this.$nextTick(()=>{const o=document.querySelector(`[role="menu"][aria-label*="${t.title}"] [role="menuitem"]`);o&&o.focus()})),e?.stopPropagation()},closeItemMenu(){this.activeItemMenuId=null},unpinItem(t,e){e?.stopPropagation(),this.removeItem(t),this.closeItemMenu()},handleItemMenuKeydown(t,e){if(t.key==="Escape"){t.preventDefault(),this.closeItemMenu();return}(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.unpinItem(e.id,t))},handleReorder(){this.trays[this.activeTrayId]&&(this.trays[this.activeTrayId].updatedAt=Date.now(),this.saveToLocalStorage(),this.syncTrayToAPI(this.activeTrayId))},handleKeyboardReorder(t,e){const{isGrabbed:o,grabbedIndex:d}=this.keyboardReorderState,i=this.currentTray.items;if(!(!i||i.length===0)){if(t.key===" "||t.key==="Enter"){t.preventDefault(),o?(this.performKeyboardReorder(),t.target.classList.remove("ring-2","ring-black"),t.target.setAttribute("aria-grabbed","false")):(this.keyboardReorderState.isGrabbed=!0,this.keyboardReorderState.grabbedIndex=e,this.keyboardReorderState.targetIndex=e,t.target.classList.add("ring-2","ring-black"),t.target.setAttribute("aria-grabbed","true"));return}if(t.key==="Escape"&&o){t.preventDefault(),this.keyboardReorderState.isGrabbed=!1,this.keyboardReorderState.grabbedIndex=null,this.keyboardReorderState.targetIndex=null,t.target.classList.remove("ring-2","ring-black"),t.target.setAttribute("aria-grabbed","false");return}o&&d===e&&(t.key==="ArrowLeft"||t.key==="ArrowUp"?(t.preventDefault(),this.keyboardReorderState.targetIndex>0&&(this.keyboardReorderState.targetIndex--,this.performKeyboardReorder())):(t.key==="ArrowRight"||t.key==="ArrowDown")&&(t.preventDefault(),this.keyboardReorderState.targetIndex<i.length-1&&(this.keyboardReorderState.targetIndex++,this.performKeyboardReorder())))}},performKeyboardReorder(){const{grabbedIndex:t,targetIndex:e}=this.keyboardReorderState,o=this.currentTray.items;if(t===null||e===null||t===e){this.keyboardReorderState.isGrabbed=!1,this.keyboardReorderState.grabbedIndex=null,this.keyboardReorderState.targetIndex=null;return}const[d]=o.splice(t,1);o.splice(e,0,d),this.keyboardReorderState.grabbedIndex=e,this.handleReorder(),this.$nextTick(()=>{const i=document.querySelectorAll('[role="button"][aria-label*="Press space or enter to reorder"]');i[e]&&i[e].focus()})},async handleHitSelected(t){await this.addItemToTray(t.detail),this.closeSearchModal()},toggleLinkForm(){if(this.showLinkForm){this.resetLinkForm();return}this.showLinkForm=!0},resetLinkForm(){this.showLinkForm=!1,this.linkForm.url="",this.linkForm.title="",this.linkForm.includeImage=!1,this.clearLinkImage()},handleIncludeImageToggle(){this.linkForm.includeImage||this.clearLinkImage()},async fetchLinkImage(){if(!this.linkForm.url){this.linkFormState.imageError="Please enter a URL first";return}this.linkFormState.fetchingImage=!0,this.linkFormState.imageError=null;try{const t=document.querySelector('meta[name="csrf-token"]').getAttribute("content"),o=await(await fetch("/api/links/fetch-image",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","X-CSRF-TOKEN":t,"X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({url:this.linkForm.url})})).json();o.success?this.linkForm.image=o.imageUrl:this.linkFormState.imageError=o.error||"Failed to fetch image"}catch(t){console.error("Error fetching image:",t),this.linkFormState.imageError="An error occurred while fetching the image"}finally{this.linkFormState.fetchingImage=!1}},async uploadLinkImage(t){const e=t.target.files[0];if(e){if(!e.type.startsWith("image/")){this.linkFormState.imageError="Please select an image file";return}this.linkFormState.uploadingImage=!0,this.linkFormState.imageError=null;try{const o=document.querySelector('meta[name="csrf-token"]').getAttribute("content"),d=new FormData;d.append("image",e);const s=await(await fetch("/api/links/upload-image",{method:"POST",headers:{Accept:"application/json","X-CSRF-TOKEN":o,"X-Requested-With":"XMLHttpRequest"},body:d})).json();s.success?this.linkForm.image=s.imageUrl:this.linkFormState.imageError=s.error||"Failed to upload image"}catch(o){console.error("Error uploading image:",o),this.linkFormState.imageError="An error occurred while uploading the image"}finally{this.linkFormState.uploadingImage=!1,this.$refs.linkImageUpload&&(this.$refs.linkImageUpload.value="")}}},clearLinkImage(){this.linkForm.image=null,this.linkForm.altText="",this.linkFormState.imageError=null,this.$refs.linkImageUpload&&(this.$refs.linkImageUpload.value="")},async addLinkToTray(){if(!this.linkForm.url||!this.linkForm.title){alert("Both URL and title are required.");return}if(!R(this.linkForm.url)){alert('Please enter a valid URL or a path starting with "/".');return}const t={id:`link-${Date.now()}`,type:"link",title:this.linkForm.title.substring(0,255),url:this.linkForm.url,addedAt:Date.now()};if(this.linkForm.image){if(!this.linkForm.altText||this.linkForm.altText.trim()===""){alert("Please provide alt text for the image to ensure accessibility compliance.");return}t.image=this.linkForm.image,t.altText=this.linkForm.altText.trim()}this.trays[this.activeTrayId]||(this.trays[this.activeTrayId]={id:this.activeTrayId,name:"Default Tray",items:[],createdAt:Date.now(),updatedAt:Date.now()}),this.trays[this.activeTrayId].items.push(t),this.trays[this.activeTrayId].updatedAt=Date.now(),this.saveToLocalStorage(),await this.syncTrayToAPI(this.activeTrayId),this.resetLinkForm()},openCompilationModal(t,e=null){this.compilationModalMode=t,this.compilationModalId=e,this.compilationModalOpen=!0},closeCompilationModal(){this.compilationModalOpen=!1,this.compilationModalMode="create",this.compilationModalId=null},handleClickOutside(t){if(this.activeItemMenuId){const e=t.target.closest('[aria-haspopup="true"]'),o=t.target.closest('[role="menu"]');
1!e&&!o&&this.closeItemMenu()}},async exportChecklist(){if(!this.isAuthenticated||this.currentTrayItems.length===0)return;const t=this.trays[this.activeTrayId];if(!t||!t.dbId){alert("Please save your workbench before exporting.");return}this.isExportingChecklist=!0;try{const e=await fetch(`/api/workbench/trays/${t.dbId}/export-checklist`,{headers:{Accept:"application/pdf","X-Requested-With":"XMLHttpRequest"}});if(!e.ok)throw new Error("Export failed");const o=await e.blob(),d=window.URL.createObjectURL(o),i=document.createElement("a");i.href=d,i.download=`checklist-${t.name.toLowerCase().replace(/\s+/g,"-")}-${new Date().toISOString().split("T")[0]}.pdf`,document.body.appendChild(i),i.click(),setTimeout(()=>{window.URL.revokeObjectURL(d),document.body.removeChild(i)},100)}catch(e){console.error("Error exporting checklist:",e),alert("Failed to export checklist. Please try again.")}finally{this.isExportingChecklist=!1}},async saveTrayAsList(){if(!this.isAuthenticated||this.currentTrayItems.length===0||this.isSavingList)return;const t=window.prompt("Name this list:",this.trays[this.activeTrayId]?.name||"");if(t){this.isSavingList=!0;try{await this.syncTrayToAPI(this.activeTrayId);const e=this.trays[this.activeTrayId];if(!e||!e.dbId){alert("Could not save your workbench. Please try again.");return}const o=await fetch(`/api/workbench/trays/${e.dbId}/resource-list`,{method:"POST",headers:this.jsonHeaders(),body:JSON.stringify({name:t})}),d=await o.json();if(!o.ok){const i=d.errors?Object.values(d.errors)[0][0]:d.message;alert(i||"Failed to save the list. Please try again.");return}this.savedListAt=Date.now(),setTimeout(()=>{this.savedListAt=null},5e3)}catch(e){console.error("Error saving list:",e),alert("Failed to save the list. Please try again.")}finally{this.isSavingList=!1}}}},async mounted(){this.loadFromLocalStorage(),await this.checkAuthentication()&&await this.fetchTraysFromAPI(),window.addEventListener(`hit-selected-${this.workbenchId}`,this.handleHitSelected),window.addEventListener("workbench-add-item",this.handleWorkbenchAddEvent),document.addEventListener("click",this.handleClickOutside)},beforeUnmount(){window.removeEventListener(`hit-selected-${this.workbenchId}`,this.handleHitSelected),window.removeEventListener("workbench-add-item",this.handleWorkbenchAddEvent),document.removeEventListener("click",this.handleClickOutside)},watch:{activeTrayId(){this.saveToLocalStorage()},isExpanded(){this.saveToLocalStorage()},isFullScreen(){this.saveToLocalStorage()},isHidden(){this.saveToLocalStorage()}}},re={key:0,class:"fixed z-9999 bottom-4 right-4"},ie={key:0,class:"bg-white text-black text-xs px-1.5 py-0.5 rounded-full"},ae={key:0,class:"flex items-center justify-between p-2 gap-4"},se={class:"flex items-center gap-2 overflow-x-auto flex-1"},oe={key:0,class:"text-sm text-hamdarkgray italic"},le=["title","aria-label","onKeydown"],ne=["src","alt"],de={key:1,class:"w-full h-full bg-hamlightgray flex items-center justify-center text-hamdarkgray"},ce={key:0,class:"w-5 h-5",viewBox:"0 0 17.74 17.54",xmlns:"http://www.w3.org/2000/svg"},he={key:1,class:"text-xs"},me=["onClick"],ue={class:"flex items-center gap-2 shrink-0"},ge=["value"],ye=["disabled"],pe={class:"flex items-center justify-between p-4 border-b border-hamlightgray"},ke={class:"flex items-center gap-4 flex-wrap"},be=["value"],fe=["disabled"],we=["disabled"],ve={class:"flex items-center gap-2"},xe={class:"p-4 border-b border-hamlightgray bg-hamlightgray"},Ie={class:"flex items-center gap-4 mb-4"},Te=["value"],Se=["disabled"],Fe={key:0,class:"flex flex-col gap-4 p-4 bg-white border border-hamdarkgray"},Ce={class:"flex items-start gap-4"},Le={class:"flex-1"},Me={class:"flex-1"},Ae={class:"flex flex-col gap-4 border-t border-hamdarkgray pt-4"},Ee={class:"flex items-center cursor-pointer"},_e={class:"flex items-center gap-2"},Re=["disabled"],je={class:"p-2 px-4 bg-hamdarkgray text-white hover:bg-black font-neutral-bold tracking-wide cursor-pointer"},De=["disabled"],Ue={key:0,class:"flex items-center gap-4"},Pe=["src"],He={key:1,class:"flex flex-col gap-2"},Oe={key:2,class:"text-sm text-red-600"},Ve={class:"flex justify-end"},qe=["aria-label","onKeydown"],Ke=["href","target","rel"],Ne=["src","alt"],Xe={key:1,class:"w-full h-full flex items-center justify-center text-hamdarkgray"},We={key:0,class:"w-8 h-8",viewBox:"0 0 17.74 17.54",xmlns:"http://www.w3.org/2000/svg"},Be={key:1,class:"text-sm"},ze=["title"],Je={class:"text-xs text-hamdarkgray capitalize"},Ge={class:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity"},Ze=["onClick","aria-label","aria-expanded"],Qe=["aria-label"],Ye=["onClick","onKeydown"];function $e(t,e,o,d,i,s){const h=D("draggable"),b=V,y=A;return i.isHidden?(l(),n("div",re,[a("button",{onClick:e[0]||(e[0]=(...r)=>s.toggleHidden&&s.toggleHidden(...r)),class:"p-3 bg-hamdarkgray text-white hover:bg-black shadow-xl flex items-center gap-2 font-neutral-bold tracking-wide","aria-label":"Open workbench"},[e[31]||(e[31]=a("svg",{class:"w-5 h-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"})],-1)),e[32]||(e[32]=a("span",{class:"hidden sm:inline"},"Workbench",-1)),s.currentTrayItems.length>0?(l(),n("span",ie,m(s.currentTrayItems.length),1)):c("",!0)])])):(l(),n("div",{key:1,class:w(["fixed z-9999 bg-white shadow-xl font-neutral",i.isFullScreen?"inset-0 border-0":"bottom-0 left-0 right-0 border-t-2 border-hamlightgray"])},[i.isExpanded?c("",!0):(l(),n("div",ae,[a("div",se,[s.currentTrayItems.length===0?(l(),n("div",oe," No items in workbench ")):(l(),f(h,{key:1,modelValue:s.currentTray.items,"onUpdate:modelValue":e[1]||(e[1]=r=>s.currentTray.items=r),"item-key":"id",class:"flex items-center gap-2",animation:200,"ghost-class":"opacity-50",onEnd:s.handleReorder},{item:F(({element:r,index:v})=>[a("div",{class:"w-12 h-12 shrink-0 relative group cursor-move",title:r.title,tabindex:"0",role:"button","aria-label":`${r.title}. Press space or enter to reorder`,onKeydown:g=>s.handleKeyboardReorder(g,v)},[r.image?(l(),n("img",{key:0,src:r.image,alt:r.altText||r.title,class:"w-full h-full object-cover"},null,8,ne)):(l(),n("div",de,[r.type==="link"?(l(),n("svg",ce,[...e[33]||(e[33]=[a("path",{d:"M6.5,14.24l-.9.9a2.05,2.05,0,0,1-2.9,0,2,2,0,0,1-.5-1.5,3.81,3.81,0,0,1,.5-1.5l3.4-3.3c.7-.7,2-1.7,2.9-.8a1.22,1.22,0,0,0,1.6,0,1.22,1.22,0,0,0,0-1.6c-1.6-1.6-4-1.3-6.1.8l-3.3,3.3a4.1,4.1,0,0,0,0,5.8,4.23,4.23,0,0,0,3,1.2,4.41,4.41,0,0,0,3-1.2l.9-.9a1.22,1.22,0,0,0,0-1.6A1.61,1.61,0,0,0,6.5,14.24ZM16.6,1.34a3.91,3.91,0,0,0-5.7-.2l-1.2,1a1.22,1.22,0,0,0,0,1.6,1.22,1.22,0,0,0,1.6,0l1.2-1.1c.8-.8,1.9-.5,2.7.3a2,2,0,0,1,.5,1.5,2.25,2.25,0,0,1-.6,1.4l-3.6,3.3c-1.7,1.7-2.4.9-2.8.5a1.22,1.22,0,0,0-1.6,0,1.22,1.22,0,0,0,0,1.6,3.35,3.35,0,0,0,2.5,1.1,4.51,4.51,0,0,0,3.3-1.6l3.6-3.6a4.18,4.18,0,0,0,1.2-2.9A3.37,3.37,0,0,0,16.6,1.34Z",fill:"currentColor"},null,-1)])])):(l(),n("span",he,m(r.type),1))])),a("button",{onClick:U(g=>s.removeItem(r.id),["stop"]),class:"absolute top-0 right-0 bg-black text-white text-xs w-4 h-4 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity","aria-label":"Remove item",tabindex:"-1"}," Ã ",8,me)],40,le)]),_:1},8,["modelValue","onEnd"]))]),a("div",ue,[u(a("select",{"onUpdate:modelValue":e[2]||(e[2]=r=>i.selectedEntityType=r),class:"border border-hamlightgray p-2 text-sm focus:outline-black focus:outline-dashed focus:outline-2 pr-10","aria-label":"Select resource type"},[e[34]||(e[34]=a("option",{value:""},"Select Resource Type",-1)),(l(!0),n(p,null,I(s.entityTypes,r=>(l(),n(p,{key:r.type},[r.status==="active"?(l(),n("option",{key:0,value:r.type},m(r.label),9,ge)):c("",!0)],64))),128))],512),[[x,i.selectedEntityType]]),a("button",{onClick:e[3]||(e[3]=(...r)=>s.openSearchModal&&s.openSearchModal(...r)),disabled:!i.selectedEntityType,class:"p-2 bg-hamdarkgray text-white hover:bg-black disabled:opacity-50 disabled:cursor-not-allowed text-sm font-neutral-bold tracking-wide","aria-label":"Add item to workbench"}," + Add ",8,ye),a("button",{onClick:e[4]||(e[4]=(...r)=>s.toggleExpanded&&s.toggleExpanded(...r)),class:"p-2 transition-transform transform","aria-label":"Expand workbench","aria-expanded":"false"},[...e[35]||(e[35]=[a("svg",{class:"w-6 h-6 rotate-180",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1)])]),a("button",{onClick:e[5]||(e[5]=(...r)=>s.toggleFullScreen&&s.toggleFullScreen(...r)),class:"p-2","aria-label":"Toggle full screen"},[...e[36]||(e[36]=[a("svg",{class:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"})],-1)])]),a("button",{onClick:e[6]||(e[6]=(...r)=>s.toggleHidden&&s.toggleHidden(...r)),class:"p-2","aria-label":"Minimize workbench",title:"Minimize"},[...e[37]||(e[37]=[a("svg",{class:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 14l-7 7m0 0l-7-7m7 7V3"})],-1)])])])])),i.isExpanded?(l(),n("div",{key:1,class:w(["overflow-y-auto",i.isFullScreen?"h-full flex flex-col":"max-h-96"])},[a("div",pe,[a("div",ke,[e[38]||(e[38]=a("h3",{class:"text-xl font-neutral-bold"}
1,"Workbench",-1)),u(a("select",{"onUpdate:modelValue":e[7]||(e[7]=r=>i.activeTrayId=r),class:"border border-hamlightgray p-2 focus:outline-black focus:outline-dashed focus:outline-2 pr-10","aria-label":"Select workbench tray"},[(l(!0),n(p,null,I(s.trayList,r=>(l(),n("option",{key:r.id,value:r.id},m(r.name)+" ("+m(r.items.length)+") ",9,be))),128))],512),[[x,i.activeTrayId]]),a("button",{onClick:e[8]||(e[8]=(...r)=>s.createNewTray&&s.createNewTray(...r)),class:"text-sm text-hamdarkgray hover:text-black"}," + New Tray "),s.trayList.length>1?(l(),n("button",{key:0,onClick:e[9]||(e[9]=(...r)=>s.deleteTray&&s.deleteTray(...r)),class:"text-sm text-hamdarkgray hover:text-black"}," Delete Tray ")):c("",!0),i.isAuthenticated&&s.currentTrayItems.length>0?(l(),n("button",{key:1,onClick:e[10]||(e[10]=r=>s.openCompilationModal("create")),class:"text-sm text-hamdarkgray hover:text-black"}," Create Compilation ")):c("",!0),i.isAuthenticated&&s.currentTrayItems.length>0?(l(),n("button",{key:2,onClick:e[11]||(e[11]=(...r)=>s.exportChecklist&&s.exportChecklist(...r)),disabled:i.isExportingChecklist,class:"text-sm text-hamdarkgray hover:text-black disabled:opacity-50 disabled:cursor-not-allowed"},m(i.isExportingChecklist?"Exporting...":"Export Checklist"),9,fe)):c("",!0),i.isAuthenticated&&s.currentTrayItems.length>0?(l(),n("button",{key:3,onClick:e[12]||(e[12]=(...r)=>s.saveTrayAsList&&s.saveTrayAsList(...r)),disabled:i.isSavingList,class:"text-sm text-hamdarkgray hover:text-black disabled:opacity-50 disabled:cursor-not-allowed"},m(s.saveListLabel),9,we)):c("",!0)]),a("div",ve,[i.isFullScreen?c("",!0):(l(),n("button",{key:0,onClick:e[13]||(e[13]=(...r)=>s.toggleFullScreen&&s.toggleFullScreen(...r)),class:"p-2","aria-label":"Toggle full screen",title:"Full screen"},[...e[39]||(e[39]=[a("svg",{class:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"})],-1)])])),i.isFullScreen?(l(),n("button",{key:1,onClick:e[14]||(e[14]=(...r)=>s.toggleFullScreen&&s.toggleFullScreen(...r)),class:"p-2","aria-label":"Exit full screen",title:"Exit full screen"},[...e[40]||(e[40]=[a("svg",{class:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25"})],-1)])])):c("",!0),a("button",{onClick:e[15]||(e[15]=(...r)=>s.toggleExpanded&&s.toggleExpanded(...r)),class:"transition-transform transform","aria-label":"Collapse workbench","aria-expanded":"true"},[...e[41]||(e[41]=[a("svg",{class:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1)])])])]),a("div",xe,[a("div",Ie,[u(a("select",{"onUpdate:modelValue":e[16]||(e[16]=r=>i.selectedEntityType=r),class:"border border-hamdarkgray p-2 focus:outline-black focus:outline-dashed focus:outline-2 pr-10","aria-label":"Select resource type"},[e[42]||(e[42]=a("option",{value:""},"Select Resource Type",-1)),(l(!0),n(p,null,I(s.entityTypes,r=>(l(),n(p,{key:r.type},[r.status==="active"?(l(),n("option",{key:0,value:r.type},m(r.label),9,Te)):c("",!0)],64))),128))],512),[[x,i.selectedEntityType]]),a("button",{onClick:e[17]||(e[17]=(...r)=>s.openSearchModal&&s.openSearchModal(...r)),disabled:!i.selectedEntityType,class:"p-2 px-4 bg-hamdarkgray text-white hover:bg-black disabled:opacity-50 disabled:cursor-not-allowed font-neutral-bold tracking-wide"}," + Add Item ",8,Se),e[43]||(e[43]=a("span",{class:"text-hamdarkgray"},"or",-1)),a("button",{onClick:e[18]||(e[18]=(...r)=>s.toggleLinkForm&&s.toggleLinkForm(...r)),"data-test":"toggle-link-form",class:"p-2 px-4 bg-hamdarkgray text-white hover:bg-black font-neutral-bold tracking-wide"},m(i.showLinkForm?"Cancel":"+ Add Link"),1)]),i.showLinkForm?(l(),n("div",Fe,[a("div",Ce,[a("div",Le,[e[44]||(e[44]=a("label",{for:"link-url",class:"block text-sm font-neutral-bold mb-1"},"URL",-1)),u(a("input",{id:"link-url","onUpdate:modelValue":e[19]||(e[19]=r=>i.linkForm.url=r),type:"url",placeholder:"https://example.com",class:"w-full border border-hamdarkgray p-2 focus:outline-black focus:outline-dashed focus:outline-2",onKeyup:e[20]||(e[20]=C((...r)=>s.addLinkToTray&&s.addLinkToTray(...r),["enter"]))},null,544),[[k,i.linkForm.url]])]),a("div",Me,[e[45]||(e[45]=a("label",{for:"link-title",class:"block text-sm font-neutral-bold mb-1"},"Title",-1)),u(a("input",{id:"link-title","onUpdate:modelValue":e[21]||(e[21]=r=>i.linkForm.title=r),type:"text",placeholder:"Link title",maxlength:"255",class:"w-full border border-hamdarkgray p-2 focus:outline-black focus:outline-dashed focus:outline-2",onKeyup:e[22]||(e[22]=C((...r)=>s.addLinkToTray&&s.addLinkToTray(...r),["enter"]))},null,544),[[k,i.linkForm.title]])])]),a("div",Ae,[a("label",Ee,[u(a("input",{type:"checkbox","onUpdate:modelValue":e[23]||(e[23]=r=>i.linkForm.includeImage=r),"data-test":"link-include-image",class:"mr-3 w-5 h-5 cursor-pointer",onChange:e[24]||(e[24]=(...r)=>s.handleIncludeImageToggle&&s.handleIncludeImageToggle(...r))},null,544),[[P,i.linkForm.includeImage]]),e[46]||(e[46]=a("div",{class:"text-sm font-neutral-bold"},"Add an image",-1))]),i.linkForm.includeImage?(l(),n(p,{key:0},[a("div",_e,[a("button",{onClick:e[25]||(e[25]=(...r)=>s.fetchLinkImage&&s.fetchLinkImage(...r)),disabled:!i.linkForm.url||i.linkFormState.fetchingImage,class:"p-2 px-4 bg-hamdarkgray text-white hover:bg-black font-neutral-bold tracking-wide disabled:opacity-50 disabled:cursor-not-allowed"},m(i.linkFormState.fetchingImage?"Fetching...":"Fetch from URL"),9,Re),a("label",je,[a("input",{type:"file",accept:"image/*",class:"hidden",onChange:e[26]||(e[26]=(...r)=>s.uploadLinkImage&&s.uploadLinkImage(...r)),disabled:i.linkFormState.uploadingImage,ref:"linkImageUpload"},null,40,De),L(" "+m(i.linkFormState.uploadingImage?"Uploading...":"Upload Image"),1)]),i.linkForm.image?(l(),n("button",{key:0,onClick:e[27]||(e[27]=(...r)=>s.clearLinkImage&&s.clearLinkImage(...r)),class:"p-2 px-4 border border-hamdarkgray hover:bg-hamlightgray font-neutral-bold tracking-wide"}," Clear Image ")):c("",!0)]),i.linkForm.image?(l(),n("div",Ue,[a("img",{src:i.linkForm.image,alt:"Link image preview",class:"w-32 h-32 object-cover border border-hamdarkgray"},null,8,Pe),e[47]||(e[47]=a("span",{class:"text-sm text-hamdarkgray"},"Image ready",-1))])):c("",!0),i.linkForm.image?(l(),n("div",He,[e[48]||(e[48]=a("label",{for:"link-alt-text",class:"text-sm font-neutral-bold text-hamdarkgray"},[L(" Alt Text "),a("span",{class:"text-red-600"},"*"),a("span",{class:"font-neutral-regular text-xs"},"(Required for accessibility)")],-1)),u(a("input",{id:"link-alt-text","onUpdate:modelValue":e[28]||(e[28]=r=>i.linkForm.altText=r),type:"text",placeholder:"Describe the image for screen readers",class:"border border-hamdarkgray p-2 font-neutral-regular",maxlength:"255"},null,512),[[k,i.linkForm.altText]])])):c("",!0),i.linkFormState.imageError?(l(),n("div",Oe,m(i.linkFormState.imageError),1)):c("",!0)],64)):c("",!0)]),a("div",Ve,[a("button",{onClick:e[29]||(e[29]=(...r)=>s.addLinkToTray&&s.addLinkToTray(...r)),"data-test":"submit-link",class:"p-2 px-4 bg-black text-white hover:bg-hamdarkgray font-neutral-bold tracking-wide"}," Add Link ")])])):c("",!0)]),s.currentTrayItems.length===0?(l(),n("div",{key:0,class:w(["p-8 text-center text-hamdarkgray",i.isFullScreen?"flex-1 flex items-center justify-center":""])}," No items in this workbench. Use the controls above to add items. ",2)):(l(),f(h,{key:1,modelValue:s.currentTray.items,"onUpdate:modelValue":e[30]||(e[30]=r=>s.currentTray.items=r),"item-key":"id",class:w(["p-4 grid gap-4",[i.isFullScreen?"flex-1 grid-cols-2 md:grid-cols-4 lg:grid-cols-8":"grid-cols-2 md:grid-cols-4 lg:grid-cols-6"]]),animation:200,"ghost-class":"opacity-50",onEnd:s.handleReorder},{item:F(({element:r,index:v})=>[a("div",{class:"relative group cursor-move",tabindex:"0",role:"button","aria-label":`${r.title}. Press space or enter to reorder`,onKeydown:g=>s.handleKeyboardReorder(g,v)},[a("a",{href:r.url,target:(r.type==="link","_blank"),rel:r.type==="link"?"noopener noreferrer":void 0,class:"block aspect-square bg-hamlightgray overflow-hidden border-0",tabindex:"-1"},[r.image?(l(),n("img",{key:0,src:r.image,alt:r.image_alt||r.title,class:"w-full h-full object-cover"},null,8,Ne)):(l(),n("div",Xe,[r.type==="link"?(l(),n("svg",We,[...e[49]||(e[49]=[a("path",{d:"M6.5,14.24l-.9.9a2.05,2.05,0,0,1-2.9,0,2,2,0,0,1-.5-1.5,3.81,3.81,0,0,1,.5-1.5l3.4-3.3c.7-.7,2-1.7,2.9-.8a1.22,1.22,0,0,0,1.6,0,1.22,1.22,0,0,0,0-1.6c-1.6-1.6-4-1.3-6.1.8l-3.3,3.3a4.1,4.1,0,0,0,0,5.8,4.23,4.23,0,0,0,3,1.2,4.41,4.41,0,0,0,3-1.2l.9-.9a1.22,1.22,0,0,0,0-1.6A1.61,1.61,0,0,0,6.5,14.24ZM16.6,1.34a3.91,3.91,0,0,0-5.7-.2l-1.2,1a1.22,1.22,0,0,0,0,1.6,1.22,1.22,0,0,0,1.6,0l1.2-1.1c.8-.8,1.9-.5,2.7.3a2,2,0,0,1,.5,1.5,2.25,2.25,0,0,1-.6,1.4l-3.6,3.3c-1.7,1.7-2.4.9-2.8.5a1.22,1.22,0,0,0-1.6,0,1.22,1.22,0,0,0,0,1.6,3.35,3.35,0,0,0,2.5,1.1,4.51,4.51,0,0,0,3.3-1.6l3.6-3.6a4.18,4.18,0,0,0,1.2-2.9A3.37,3.37,0,0,0,16.6,1.34Z",fill:"currentColor"},null,-1)])])):(l(),n("span",Be,m(r.type),1))]))],8,Ke),a("div",{class:"text-sm mt-1 truncate",title:r.title},m(r.title),9,ze),a("div",Je,m(r.type),1),e[50]||(e[50]=a("div",{class:"absolute top-2 left-2 opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none"},[a("div",{class:"p-1 bg-white shadow text-hamdarkgray text-xs"}," â®â® ")],-1)),a("div",Ge,[a("button",{onClick:g=>s.showItemMenu(r,g),class:"p-1 px-2 bg-white shadow hover:bg-hamlightgray","aria-label":`Actions for ${r.title}`,"aria-expanded":i.activeItemMenuId===r.id,"aria-haspopup":"true",tabindex:"-1"}," â® ",8,Ze),i.activeItemMenuId===r.id?(l(),n("div",{key:0,class:"absolute right-0 mt-1 bg-white border border-hamdarkgray shadow-lg z-10 min-w-32",role:"menu","aria-label":`Actions for ${r.title}`},[a("button",{onClick:g=>s.unpinItem(r.id,g),onKeydown:g=>s.handleItemMenuKeydown(g,r),class:"block w-full text-left p-3 hover:bg-hamlightgray text-sm border-0",role:"menuitem",tabindex:"0"}," Unpin ",40,Ye)],8,Qe)):c("",!0)])],40,qe)]),_:1},8,["modelValue","class","onEnd"]))],2)):c("",!0),i.searchModalOpen&&i.searchConfig?(l(),f(b,{key:2,onCloseModal:s.closeSearchModal,type:i.searchConfig.type,moduleId:i.workbenchId,status:i.searchModalOpen,index:i.searchConfig.index,filter:i.searchConfig.filter,titleField:i.searchConfig.titleField,imageField:i.searchConfig.imageField}
1,null,8,["onCloseModal","type","moduleId","status","index","filter","titleField","imageField"])):c("",!0),i.compilationModalOpen?(l(),f(y,{key:3,mode:i.compilationModalMode,"compilation-id":i.compilationModalId,items:s.currentTrayItems,onClose:s.closeCompilationModal,onUpdated:s.closeCompilationModal},null,8,["mode","compilation-id","items","onClose","onUpdated"])):c("",!0)],2))}const st=M(te,[["render",$e]]);export{st as W};
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.