PageSourceSearch

https://bigphotohunt.com/static/js/1431.8fdfda5a.chunk.js

js bigphotohunt.com collected 2026-10-04 07:27:57 UTC 13,380 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkstatingtem=self.webpackChunkstatingtem||[]).push([[1431],{3218:function(e,t,n){var a=n(4165),r=n(5861),s=n(9439),i=n(2791),o=n(9343),c=n(9434),l=n(4848),d=n(184);t.Z=function(e){var t=e.data,n=e.usertoken,u=e.loginUserId,h=(0,i.useState)(t.is_follow),m=(0,s.Z)(h,2),p=m[0],v=m[1];var f=(0,c.I0)(),x=(0,c.v9)((function(e){return e.Socket.ReloadNotificationSenderFn})),g=function(){f(l.$.setSocketReceiverUserID(t.id)),f(l.$.setReloadNotificationSenderFn(!x))},j=function(){var e=(0,r.Z)((0,a.Z)().mark((function e(r){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.preventDefault(),v(!p),e.prev=2,e.next=5,(0,o.P)(t.id,!p,n,u,g,"Follow");case 5:e.sent,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(t){return e.apply(this,arguments)}}();return(0,d.jsxs)("div",{className:"list_item",children:[(0,d.jsxs)("div",{className:"item_img_name",children:[(0,d.jsx)("img",{src:t.photo_url?t.photo_url:"https://ui-avatars.com/api/?name=".concat(t.name,"&size=197&rounded=true&background=01655a&color=fff"),alt:"img"}),(0,d.jsx)("span",{className:"name",children:t.name})]}),(0,d.jsxs)("span",{className:"joined",children:["Joined ",function(e){var t=new Date(e),n=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0"),r=t.getFullYear();return"".concat(n,".").concat(a,".").concat(r)}(t.join_date)]}),(0,d.jsx)("span",{className:"no-posted",children:t.photo_posted>0?1==t.photo_posted?"Has posted 1st photo":"Has posted ".concat(t.photo_posted," photos"):"No photos posted"}),(0,d.jsx)("button",{onClick:j,className:"btn btn--base ".concat(p?"btn--unfollow":" "),children:p?"Following":"Follow"})]})}},1431:function(e,t,n){n.r(t);var a=n(4165),r=n(3433),s=n(5861),i=n(9439),o=n(2791),c=n(8742),l=n(3218),d=n(1087),u=n(4014),h=n(1830),m=n.n(h),p=n(184);t.default=function(){var e=(0,o.useState)(""),t=(0,i.Z)(e,2),n=t[0],h=t[1],v=(0,o.useState)(!1),f=(0,i.Z)(v,2),x=f[0],g=f[1],j=(0,o.useState)(!1),b=(0,i.Z)(j,2),y=b[0],k=b[1],w=(0,o.useState)(!1),N=(0,i.Z)(w,2),Z=N[0],_=N[1],C=(0,o.useState)([]),I=(0,i.Z)(C,2),S=I[0],P=I[1],T=(0,o.useState)(!1),D=(0,i.Z)(T,2),F=D[0],B=D[1],H=(0,o.useState)(0),R=(0,i.Z)(H,2),A=R[0],M=R[1],U=(0,o.useState)(!1),z=(0,i.Z)(U,2),q=z[0],E=z[1],L=localStorage.getItem("Data"),O=(0,u.a)(L),Y=O.userid,J=O.token,W=O.useDisplay_name;(0,o.useEffect)((function(){var e=window.navigator.userAgent.toLowerCase(),t=/android|iphone|ipad|ipod/.test(e);_(t)}),[]);(0,o.useEffect)((function(){var e=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var t,n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),e.prev=1,e.next=4,(0,c.M)(J,A);case 4:t=e.sent,(0==(n=t.data.data).length||n.length<10)&&E(!0),P((function(e){return[].concat((0,r.Z)(e),(0,r.Z)(n))})),B(!1),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),console.log(e.t0);case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(){return e.apply(this,arguments)}}();e()}),[A]);var $=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g({loading:!0,value:t}),e.prev=1,e.next=4,(0,c.r)(J);case 4:n=e.sent,r=n.data.data.link,"email"==t?G(r):"Text"==t&&K(r),g({loading:!1,value:""}),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(1),g({loading:!1,value:""}),console.log(e.t0);case 14:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}(),G=function(e){var t=encodeURIComponent("The Big Photo Hunt"),n=encodeURIComponent("I\u2019m a member of the Big Photo Hunt. It\u2019s the galaxy\u2019s self-proclaimed most friendly and fun photography club. Join it with me here: ".concat(e));window.location.href="mailto:?subject=".concat(t,"&body=").concat(n)},K=function(e){var t=encodeURIComponent("I'm a member of the Big Photo Hunt. It's a friendly and fun photography club and so I want to invite you to join it with me: ".concat(e));window.location.href="sms:?body=".concat(t)},V=(0,o.useRef)(""),Q=function(){k(!0),setTimeout((function(){k(!1)}),2e3)},X=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!navigator.clipboard||!navigator.clipboard.writeText){e.next=5;break}return e.next=4,navigator.clipboard.writeText(t);case 4:return e.abrupt("return",!0);case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:return e.prev=9,(n=document.createElement("textarea")).value=t,n.setAttribute("readonly",""),n.style.position="absolute",n.style.left="-9999px",document.body.appendChild(n),n.select(),r=document.execCommand("copy"),document.body.removeChild(n),e.abrupt("return",r);case 22:return e.prev=22,e.t1=e.catch(9),e.abrupt("return",!1);case 25:case"end":return e.stop()}}),e,null,[[0,7],[9,22]])})));return function(t){return e.apply(this,arguments)}}(),ee=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&t.preventDefault&&t.preventDefault(),!V.current){e.next=7;break}return e.next=4,X(V.current);case 4:return e.sent?Q():h(V.current),e.abrupt("return");case 7:if(g({loading:!0,value:"copy"}),(n=(0,c.r)(J).then((function(e){return e.data.data.link}))).then((function(e){V.current=e})).catch((function(){})),!navigator.clipboard||!navigator.clipboard.write||"undefined"===typeof ClipboardItem){e.next=21;break}return e.prev=11,e.next=14,navigator.clipboard.write([new ClipboardItem({"text/plain":n.then((function(e){return new Blob([e],{type:"text/plain"})}))})]);case 14:return g({loading:!1,value:""}),Q(),e.abrupt("return");case 19:e.prev=19,e.t0=e.catch(11);case 21:return e.prev=21,e.next=24,n;case 24:return r=e.sent,V.current=r,g({loading:!1,value:""}),e.next=29,X(r);case 29:e.sent?Q():h(r),e.next=37;break;case 33:e.prev=33,e.t1=e.catch(21),g({loading:!1,value:""}),m().fire({icon:"error",title:"Something went wrong",text:"We couldn't generate your invite link. Please try again."});case 37:case"end":return e.stop()}}),e,null,[[11,19],[21,33]])}
1)));return function(t){return e.apply(this,arguments)}}(),te=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t&&t.preventDefault&&t.preventDefault(),e.next=3,X(n);case 3:e.sent&&Q();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("main",{className:"site-content",id:"main",children:[(0,p.jsx)("section",{className:"page-title invite",children:(0,p.jsx)("div",{className:"container",children:(0,p.jsx)("div",{className:"row",children:(0,p.jsx)("div",{className:"col",children:(0,p.jsx)("div",{className:"page_title_inner",children:(0,p.jsx)("h2",{className:"title",children:"Invite a Friend"})})})})})}),(0,p.jsx)("section",{className:"content-area invite",children:(0,p.jsx)("div",{className:"container",children:(0,p.jsx)("div",{className:"row",children:(0,p.jsx)("div",{className:"col",children:(0,p.jsxs)("div",{className:"content_inner",children:[(0,p.jsxs)("div",{className:"content_heading",children:[(0,p.jsx)("h2",{className:"title",children:"Invite your fave people to join the club."}),(0,p.jsx)("h4",{className:"desc",children:"Get up to a year of Pro membership free!"})]}),(0,p.jsxs)("div",{className:"content_image",children:[(0,p.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/v1728988931/Resized_Photos/azkkftlyneqp8roprwot.webp",alt:"img"}),(0,p.jsx)("h4",{className:"title",children:"You & your friend BOTH get 2 months free Pro membership as a thank you."}),(0,p.jsx)("p",{children:"Send an invite to a friend whom you think would make a good Big Photo Hunt Member. We'll send them to a dedicated landing page from you. Once they post their 1st photo you\u2019ll both get 2 months Pro membership free. (6 friends = a full year free!)"})]}),(0,p.jsxs)("blockquote",{children:[(0,p.jsx)("div",{className:"quote_img",children:(0,p.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/v1728989304/Resized_Photos/dywsy392rsrwyk4vmd89.webp",alt:"img"})}),(0,p.jsxs)("div",{className:"quote_text",children:[(0,p.jsx)("h4",{className:"text",children:"Thank you for trusting the Big Photo Hunt enough to invite your friends. I'm thankful and excited to meet them."}),(0,p.jsx)("cite",{children:"- Ken"})]})]}),(0,p.jsxs)("div",{className:"share_invite_link",children:[(0,p.jsx)("h4",{className:"title",children:"Share your personal invite link:"}),(0,p.jsxs)("div",{className:"invite_links",children:[(0,p.jsxs)("button",{className:"link",onClick:function(){$("email")},disabled:x.loading,children:[(0,p.jsx)("div",{className:"icon",children:(0,p.jsx)("img",{src:"/assets/img/invite-friends/envelope.svg",alt:"img"})}),(0,p.jsx)("span",{children:"email"==(null===x||void 0===x?void 0:x.value)?"Please wait...":"Email"})]}),(0,p.jsxs)("button",{className:"link",onClick:ee,disabled:x.loading,children:[(0,p.jsx)("div",{className:"icon",children:(0,p.jsx)("img",{src:"/assets/img/invite-friends/link.svg",alt:"img"})}),(0,p.jsx)("span",{children:"copy"==(null===x||void 0===x?void 0:x.value)?"Please wait...":y?"Copied":"Copy Link"})]}),Z&&(0,p.jsxs)("button",{className:"link",onClick:function(){$("Text")},disabled:x.loading,children:[(0,p.jsx)("div",{className:"icon",children:(0,p.jsx)("img",{src:"/assets/img/invite-friends/chat.svg",alt:"img"})}),(0,p.jsx)("span",{children:"Text"==(null===x||void 0===x?void 0:x.value)?"Please wait...":"Text"})]})]}),(0,p.jsx)("div",{className:"button text-center d-none d-md-block",children:(0,p.jsx)(d.rU,{to:"/?link=".concat(W),onClick:function(){window.scrollTo({top:0,behavior:"smooth"})},className:"btn",children:"View your landing page"})})]}),(0,p.jsxs)("div",{className:"invite_accept",children:[(0,p.jsx)("h4",{className:"title",children:"Here are friends who have accepted your invitation already:"}),S.length>0&&(0,p.jsx)("div",{className:"accept_list",children:null===S||void 0===S?void 0:S.map((function(e,t){return(0,p.jsx)(l.Z,{data:e,usertoken:J,loginUserId:Y},t)}))}),q&&0==S.length&&(0,p.jsx)("h5",{className:"d-flex justify-content-center",children:" Your inv
1ited friends will be here once they accept your invite."}),F&&(0,p.jsx)("div",{className:"mt-4 d-flex justify-content-center",children:(0,p.jsx)("div",{className:"spinner-border text-secondary",role:"status",children:(0,p.jsx)("span",{className:"sr-only"})})}),!F&&!q&&(0,p.jsx)("div",{onClick:function(){M((function(e){return e+10}))},className:"d-flex justify-content-center mt-4",children:(0,p.jsx)("button",{className:"btn",children:"Show More"})})]})]})})})})})]}),n&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"backdrop"}),(0,p.jsx)("div",{className:"modal fade bph-modal show",id:"sharePhotoModal",tabIndex:-1,"aria-labelledby":"sharePhotoModal","aria-hidden":"true",style:{display:"block"},children:(0,p.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation",children:(0,p.jsx)("div",{className:"modal-content",children:(0,p.jsx)("div",{className:"modal-body",children:(0,p.jsx)("div",{className:"onboarding_modal sharePhoto_modal",children:(0,p.jsxs)("div",{className:"modal_inner",children:[(0,p.jsx)("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:function(){h("")}}),(0,p.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,p.jsx)("img",{src:"/assets/img/logo/modal-logo.png"})}),(0,p.jsxs)("div",{className:"modal_content",children:[(0,p.jsx)("div",{className:"modal_title"}),(0,p.jsxs)("div",{className:"share_content",children:[(0,p.jsx)("textarea",{className:"form-control",id:"exampleFormControlTextarea1",rows:4,value:n,readOnly:!0,style:{textAlign:"center"}}),(0,p.jsx)("div",{className:"copy_link ",children:(0,p.jsxs)("a",{onClick:te,children:[(0,p.jsx)("img",{src:"/assets/img/icons/link.svg"}),(0,p.jsx)("span",{className:"name",children:y?"Copied":" Copy link"})]})})]})]})]})})})})})})]})]})}},8742:function(e,t,n){n.d(t,{M:function(){return o},r:function(){return i}});var a=n(4165),r=n(5861),s=n(1989),i=function(){var e=(0,r.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},e.next=4,s.Z.post("".concat("https://bigbesos.com","/user/generateInviteLink"),{},{headers:n});case 4:return r=e.sent,e.abrupt("return",r);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),o=function(){var e=(0,r.Z)((0,a.Z)().mark((function e(t,n){var r,i,o;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={offset:n},i={Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},e.next=5,s.Z.post("".concat("https://bigbesos.com","/user/getAcceptedInviterInvitations"),r,{headers:i});case 5:return o=e.sent,e.abrupt("return",o);case 9:throw e.prev=9,e.t0=e.catch(0),e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}()}}]);
2//# sourceMappingURL=1431.8fdfda5a.chunk.js.map

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.