1import{Q as O,b as y,c,l as E,m as G,oa as d}from"./chunk-Y5HJX4PP.js";import{a as P}from"./chunk-ATLPHYUF.js";var z=class{static newHazu(i,t,n,r,o){var a;let e={key:"",rootId:"",authorId:t,parentId:r,type:c.hazu,dateCreated:new Date().getTime(),timelineDate:(a=o==null?void 0:o.getTime())!=null?a:new Date().getTime(),color:"#464648",icon:"fa-calendar",title:i,link:"",privacy:y.public,isPlaced:!0,priority:5,interaction:{totalComments:0,totalScore:0,commentsEnabled:!1,votesEnabled:!1,votesRole:E.Owner,showResults:!0,votesViewType:G.Total,voteOptions:{showLikes:!0,showDislikes:!0,showNeutrals:!1}},user:{displayName:n},layout:{showAssistant:!1,hideHazuTitle:!1,hideLegendItems:!0,showLiveMode:!1,logo:"",logoLink:"",minimizeVideo:!1,showShareButtons:!0,showSidebar:!0,showTimeline:!0,sortOrder:0,whiteLabelling:0,defaultView:"normal",level:1,messengerMode:!1,autoDate:!1,openStreetMap:!1,showDate:!0,showAuthor:!0}};return d(e)}static newQuestion(i,t,n,r,o,e){let a={key:"",rootId:"",authorId:t,parentId:r,type:c.question,dateCreated:new Date().getTime(),color:"#DE4D43",icon:"fa-question",title:i,isPlaced:!1,privacy:y.public,priority:0,interaction:{isActivated:!1,authorLocation:o||"",authorGeocodeLocation:e||"",totalComments:0,totalScore:0,originalParentId:r},user:{displayName:n}};return d(a)}static newItem(i,t,n,r,o,e,a=!1){var h,m,w,I,g,v,T,C,k,S,L,N,b;let p=O.itemDefaults,s={key:"",rootId:"",authorId:t,parentId:r,type:c.item,dateCreated:new Date().getTime(),color:(m=(h=e==null?void 0:e.color)!=null?h:o==null?void 0:o.color)!=null?m:p.color,icon:(I=(w=e==null?void 0:e.icon)!=null?w:o==null?void 0:o.icon)!=null?I:p.icon,title:i,isPlaced:!1,privacy:(v=(g=e==null?void 0:e.privacy)!=null?g:o==null?void 0:o.privacy)!=null?v:p.privacy,priority:+((C=(T=e==null?void 0:e.priority)!=null?T:o==null?void 0:o.priority)!=null?C:p.priority),moderator:(k=e==null?void 0:e.assigned)!=null?k:void 0,interaction:{authorLocation:(L=(S=e==null?void 0:e.location)!=null?S:o==null?void 0:o.location)!=null?L:p.location,authorGeocodeLocation:(b=(N=e==null?void 0:e.locationGeocode)!=null?N:o==null?void 0:o.locationGeoCode)!=null?b:p.locationGeoCode,totalComments:0,totalScore:0},user:{displayName:n}};return a&&(s.isPlaced=!0,s.timelineDate=+new Date,s.timelineDuration=1),d(s)}static newUserItem(i,t){var o,e,a;let n=(o=t.email)==null?void 0:o.toLowerCase(),r={key:"",rootId:"",parentId:"_",authorId:i,type:c.user,dateCreated:new Date().getTime(),title:(e=t.displayName)!=null?e:"Hazu User",privacy:y.private,link:"",user:P({role:"user",displayName:(a=t.displayName)!=null?a:"Hazu User",lookupEmail:n},t)};return d(r)}static newComment(i,t,n,r,o){let e={key:"",rootId:"",authorId:t,parentId:r,type:c.comment,dateCreated:new Date().getTime(),color:"#09B6FB",icon:"fa-comment",title:i,interaction:{authorLocation:o.location||"",authorGeocodeLocation:o.locationGeoCode||""},user:{displayName:n}};return d(e)}static newNotificationPage(i,t){let n={key:"",rootId:"",authorId:t,parentId:i,type:c.notificationPage,dateCreated:new Date().getTime(),privacy:y.private,icon:"fa-bell",color:"#2185D0",title:"NOTIFICATIONS.ROOT_NAME",link:"/".concat(i,"/__/n")};return d(n)}static newTab(i,t,n,r,o,e){let a={key:"",rootId:"",authorId:t,parentId:n,dateCreated:new Date().getTime(),type:c.tab,color:o,icon:r,order:e,title:i};return d(a)}};export{z as a};
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.