PageSourceSearch

https://www.munzee.com/static/js/8338.fc0ecbe0.chunk.js

js munzee.com collected 2026-10-01 10:45:09 UTC 5,697 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmy_app=self.webpackChunkmy_app||[]).push([[8338],{68338:(e,n,l)=>{l.r(n),l.d(n,{default:()=>j});var s=l(47313),i=l(19641),d=l(8047),t=l(55718),a=l(58467),o=l(2135),r=l(80432),u=l(41933),v=l(42722),c=l(49709),m=l(22102),p=l(63849),x=l(31616),h=l(46417);const b=e=>{let{backend:n,user:l,isOwner:b,publicProfile:j}=e;const f=(0,a.s0)(),{id:_,munzeeId:y,page:g}=(0,a.UO)(),{munzeeDetailApi:w}=s.useContext(r.RY),[z,N]=s.useState([]),[I,Z]=s.useState(),[k,C]=s.useState(0),[S,D]=s.useState(0),[P,O]=s.useState(""),[$,A]=s.useState(!1),E=async()=>{var e;const s=void 0!=(null===w||void 0===w?void 0:w.munzee_id)?null===w||void 0===w?void 0:w.munzee_id:0,i=await(null===n||void 0===n?void 0:n.munzee.munzeeEntries({username:null!==(e=null===l||void 0===l?void 0:l.username)&&void 0!==e?e:"",munzee_id:s,page:g?parseInt(g):0}));let d=[];void 0!=i&&Object.values(i).forEach((e=>{d.push(e)})),N(d);var t=g,a=(t=void 0==t?0:parseInt(t))+1,o=t-1;t>=(null!==w&&void 0!==w&&w.number_of_entries?Math.round((null===w||void 0===w?void 0:w.number_of_entries)/10):0)&&(a=-1),C(o),D(a)};return(0,s.useEffect)((()=>{null!==l&&void 0!==l&&l.userId&&null!==w&&void 0!==w&&w.munzee_id&&E()}),[l,w,g]),(0,h.jsx)("div",{id:"munzee-entries-page",children:(0,h.jsx)(m.Z,{children:(0,h.jsxs)(p.Z,{children:[(0,h.jsxs)(x.Z,{xl:9,lg:9,md:8,children:[I&&0==(null===I||void 0===I?void 0:I.success)&&(0,h.jsx)("div",{className:"alert alert-danger",children:null===I||void 0===I?void 0:I.message}),I&&1==(null===I||void 0===I?void 0:I.success)&&(0,h.jsx)("div",{className:"alert alert-success",children:null===I||void 0===I?void 0:I.message}),(0,h.jsx)(t.V1,{title:"Entries"}),1==(null===I||void 0===I?void 0:I.created)&&(0,h.jsx)(t.bZ,{type:"success",align:"left",children:null===I||void 0===I?void 0:I.result}),(null===I||void 0===I?void 0:I.deleted_message)&&(0,h.jsx)(t.bZ,{type:"success",align:"left",children:null===I||void 0===I?void 0:I.deleted_message}),(0,h.jsxs)(i.ZP,{container:!0,children:[(0,h.jsx)(i.ZP,{item:!0,sm:2,pt:0,className:"entries-add-logo",children:(0,h.jsx)("i",{className:"fa fa-comments"})}),(0,h.jsx)(i.ZP,{item:!0,sm:10,pt:0,className:"entries-add-input",children:(0,h.jsxs)("form",{onSubmit:async e=>{var s,i;e.preventDefault(),A(!0);const d=void 0!=(null===w||void 0===w?void 0:w.munzee_id)?null===w||void 0===w?void 0:w.munzee_id:0,t=await(null===n||void 0===n||null===(s=n.munzee)||void 0===s?void 0:s.entriesNew({username:null!==(i=null===l||void 0===l?void 0:l.username)&&void 0!==i?i:"",notes:P,munzee_id:d}));Z(t),A(!1),O(""),window.scrollTo({top:0,behavior:"smooth"});0==parseInt(null!==g&&void 0!==g?g:"0")?E():f("/m/"+_+"/"+y+"/entries/0")},children:[(0,h.jsx)(d.Z,{id:"outlined-basic",variant:"outlined",multiline:!0,fullWidth:!0,minRows:3,value:P,sx:{border:"none","& fieldset":{border:"none"}},placeholder:"Add a new entry...",onChange:e=>{O(e.target.value)},classes:{root:"entry-field"}}),(0,h.jsx)(t.zx,{className:"btn btn-default btn-style "+($?"disabled":""),children:"Send"})]})})]}),(0,h.jsx)("div",{id:"munzee-holder",className:"",children:z.map((e=>{var s;const i=void 0!=l&&l.userId==parseInt(e.user_id);return(0,h.jsxs)("section",{className:"munzee-entry-holder",children:[(0,h.jsx)(o.rU,{to:`/m/${e.username}`,children:(0,h.jsx)("img",{src:(0,v.f7)(parseInt(null!==(s=e.user_id)&&void 0!==s?s:"")),alt:"Logo"})}),(0,h.jsxs)("p",{className:"entry",children:[(b||i)&&(0,h.jsx)("span",{className:"pull-right",children:(0,h.jsx)("i",{className:"fa fa-tras
1h-o",onClick:()=>(async e=>{if(null!==e&&void 0!==e&&e.entry_id&&window.confirm("Are you sure you want to delete this entry?")){var s,i;const d=void 0!=(null===e||void 0===e?void 0:e.entry_id)?parseInt(null===e||void 0===e?void 0:e.entry_id):0,t=void 0!=(null===w||void 0===w?void 0:w.munzee_id)?null===w||void 0===w?void 0:w.munzee_id:0,a=await(null===n||void 0===n||null===(s=n.munzee)||void 0===s?void 0:s.entriesDelete({username:null!==(i=null===l||void 0===l?void 0:l.username)&&void 0!==i?i:"",entry_id:d,munzee_id:t,page:g?parseInt(g):0}));Z(a),E(),window.scrollTo({top:0,behavior:"smooth"})}})(e)})}),(0,h.jsx)(o.rU,{to:`/m/${null===j||void 0===j?void 0:j.username}/${y}/entries/`,children:(0,h.jsx)("i",{className:"fa fa-pencil"})}),(0,h.jsx)(o.rU,{to:`/m/${e.username}`,children:e.username}),(0,h.jsxs)("span",{children:[" ",""!=e.notes?`"${e.notes}" - `:"",null!==e&&void 0!==e&&e.type_id&&[3,4].includes(Number(null===e||void 0===e?void 0:e.type_id))?(0,h.jsx)("span",{className:"label label-danger",children:null===e||void 0===e?void 0:e.type_name}):null===e||void 0===e?void 0:e.type_name]})]}),(0,h.jsx)(c.Z,{title:e.created_at,children:(0,h.jsx)("span",{className:"wrote-at",children:(0,v.tw)(e.created_at)})})]},e.entry_id)}))}),(0,h.jsxs)("button",{onClick:e=>{e.preventDefault(),f("/m/"+_+"/"+y+"/entries/"+(parseInt(null!==g&&void 0!==g?g:"0")+1))},className:"btn btn-default next-prev-btn prev-btn "+(-1==S?"disabled":""),children:[(0,h.jsx)("i",{className:"fa fa-arrow-left"})," Older"]}),(0,h.jsxs)("button",{onClick:e=>{e.preventDefault(),f("/m/"+_+"/"+y+"/entries/"+(parseInt(null!==g&&void 0!==g?g:"0")-1))},className:"btn btn-default next-prev-btn next-btn "+(-1==k?"disabled":""),children:["Newer ",(0,h.jsx)("i",{className:"fa fa-arrow-right"})]})]}),(0,h.jsx)(x.Z,{xl:3,lg:3,md:4,children:w&&(0,h.jsx)(u.Z,{screenType:"munzee_activity",munzeeDetail:w,callbackApiResponse:e=>{Z(e)}})})]})})})},j=()=>{const{backend:e,user:n,publicProfile:l}=s.useContext(r.RY);let i=!!n&&!!l,d=(null===n||void 0===n?void 0:n.userId)==(null===l||void 0===l?void 0:l.userId);return i?(0,h.jsx)(b,{backend:e,user:n,isOwner:d,publicProfile:l}):(0,h.jsx)(m.Z,{id:"undeploys-page"})}}}]);

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.