PageSourceSearch

https://quit.org.nz/_next/static/chunks/2222-b0cc10655846224f0a40.js

js quit.org.nz collected 2026-10-01 13:53:32 UTC 22,352 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2222,9501,8092,7364],{22222:function(e,t,n){n.r(t);var r=n(30266),a=n(83789),o=n(68216),i=n(25997),s=n(14695),c=n(13444),l=n(30268),d=n(92953),u=n(92809),p=n(809),h=n.n(p),m=n(67294),f=n(27269),v=n(86167),g=n(9669),b=n.n(g),x=n(59400),y=n(72132),C=n(52772),R=n(22139),j=n(98092),w=n(22254),Z=n.n(w),k=n(40446),I=n(35784),S=n(36068),P=n(61130),_=n(97146),L=n(72249),E=n(12557),O=n(60054),N=n.n(O),D=n(85893);function A(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.Z)(e);if(t){var a=(0,d.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,l.Z)(this,n)}}var U=new v.ZP,q=["#signup-promo","#editprofile","#accountsettings"],T=function(e){(0,c.Z)(n,e);var t=A(n);function n(e){var i;(0,o.Z)(this,n),i=t.call(this,e),(0,u.Z)((0,s.Z)(i),"getData",(function(){var e=i.state,t=e.filter,n=e.posts,r=i.props.post;if(r&&r.isAnonymous)return i.setState({hasMoreData:!1,isLoading:!1}),void i.preparePostOrMemberView();U.query({query:_.p,variables:t}).then((function(e){var r=e.data.posts,o=[].concat((0,a.Z)(n),(0,a.Z)(r)),s=r&&r.length>0?r[r.length-1]:null;t.lastPostId=s&&s._id?s._id:null,t.lastPostCreatedOn=s&&s.createdOn?s.createdOn:null,i.setState({posts:o,filter:t,hasMoreData:t.lastPostCreatedOn,isLoading:!1}),i.preparePostOrMemberView()}))})),(0,u.Z)((0,s.Z)(i),"loadMorePosts",(function(){var e=i.state.filter;i.setState({filter:e,isLoading:!0}),i.getData()})),(0,u.Z)((0,s.Z)(i),"componentDidMount",(function(){i.getData()})),(0,u.Z)((0,s.Z)(i),"componentDidUpdate",(function(e,t){if(e.posts!==i.state.posts&&i.state.posts.length>0){var n=window.location.hash;if(n&&!(q.indexOf(n)>-1))document.getElementById(n.replace("#","")).scrollIntoView()}var r=i.state.filter,a=i.props,o=a.dateFilter,s=a.filterName,c=t.filterName!==s;t.dateFilter&&t.dateFilter.startDate&&t.dateFilter.endDate&&(o.startDate!==t.dateFilter.startDate||o.endDate!==t.dateFilter.endDate)&&(r.startDate=o.startDate||null,r.endDate=o.endDate||null,i.setState({filter:r,posts:[]}),i.getData()),c&&(i.setState({posts:[]}),i.getFilter(r),i.getData())})),(0,u.Z)((0,s.Z)(i),"updateCommentCountcallback",(function(e){var t=i.state.posts;t.filter((function(t){return t.itemId===e}))[0].commentCount+=1,i.setState({posts:t})})),(0,u.Z)((0,s.Z)(i),"getFilter",(function(e){var t=i.props,n=t.filterName,r=t.currentUser,a=t.categories,o=t.userItemId,s=t.limit,c=t.post;switch(n){case"my-blogs":r&&(e.userItemId=r.itemId),e.isAnonymous=!0;break;case"favorite-blogs":r&&(e.favourites=r.spectrumUserId,e.isAnonymous=!0);break;case"most-liked":e.sort="likeCount_DESC";break;case"most-comments":e.sort="commentCount_DESC";break;case"category":e.categories=a;break;case"bloggers-i-support":r&&(e.supporting=r.supporting),e.isAnonymous=!1;break;
1case"bloggers-supporting-me":r&&(e.supporters=r.supporters),e.isAnonymous=!1;break;case"member":e.userItemId=o,e.isAnonymous=!1;break;case"component":e.sort="createdOn_DESC",e.limit=s;break;case"post":e.userItemId=c.userItemId,e.isAnonymous=!1;break;case"all":e.sort="createdOn_DESC",e.isAnonymous=!0,e.lastPostId=null,e.startDate=null,e.endDate=null,delete e.supporters,delete e.supporting,delete e.userItemId,delete e.favourites}return e})),(0,u.Z)((0,s.Z)(i),"showMore",(function(e){var t=i.state.posts;t.filter((function(t){return t.itemId===e.itemId}))[0].isReadMore=!0,i.setState({posts:t})})),(0,u.Z)((0,s.Z)(i),"focusComment",(function(e){document.getElementById("commentBoxRef_".concat(e)).focus()})),(0,u.Z)((0,s.Z)(i),"showPlaceholders",(function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=[],n=0;n<e;n+=1)t.push((0,D.jsx)("div",{className:"ui container hc-card static post-card ",children:(0,D.jsxs)("div",{className:"post",children:[(0,D.jsx)("div",{className:"ui fluid placeholder",children:(0,D.jsxs)("div",{className:"image header",children:[(0,D.jsx)("div",{className:"line"}),(0,D.jsx)("div",{className:"line"})]})}),(0,D.jsxs)("div",{className:"ui placeholder",children:[(0,D.jsx)("div",{className:"line"}),(0,D.jsx)("div",{className:"line"}),(0,D.jsx)("div",{className:"line"}),(0,D.jsx)("div",{className:"line"})]},(0,L.qR)())]})},(0,L.qR)()));return t})),(0,u.Z)((0,s.Z)(i),"saveCallback",function(){var e=(0,r.Z)(h().mark((function e(t){var n,r,a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=i.state,r=n.posts,a=n.filterName,r.unshift(t),i.setState({posts:r}),"all"!==a&&"my-blogs"!==a&&(window.location.href="/community/blogs/my-blogs");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,u.Z)((0,s.Z)(i),"editCallback",function(){var e=(0,r.Z)(h().mark((function e(t){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=i.state.posts).filter((function(e){return e.itemId===t.itemId}))[0]=t,i.setState({posts:n,postToEdit:null});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,u.Z)((0,s.Z)(i),"cancelEditPost",(function(){i.setState({postToEdit:null})})),(0,u.Z)((0,s.Z)(i),"editPost",(function(e){i.setState({postToEdit:e})})),(0,u.Z)((0,s.Z)(i),"toggleHide",function(){var e=(0,r.Z)(h().mark((function e(t){var n,r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.state.posts,(r=n.filter((function(e){return e.itemId===t}))[0]).isHidden=!r.isHidden,r.isLoading=!0,e.prev=4,e.next=7,b().put("".concat(P.apiUrl,"/post"),r);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),E.Logger.error("Post hide : ".concat(e.t0.message));case 12:return e.prev=12,i.setState({isLoading:!1}),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[4,9,12,15]])})));return function(t){return e.apply(this,arguments)}}()),(0,u.Z)((0,s.Z)(i),"handleOpenReport",(function(e){var t=i.state.currentUser,n=i.props.handlePromoPop;t?i.setState({postToReport:e}):n()})),(0,u.Z)((0,s.Z)(i),"handleCancelReport",(function(){i.setState({postToReport:null})})),(0,u.Z)((0,s.Z)(i),"handleReportSubmit",function(){var e=(0,r.Z)(h().mark((function e(t){var n,r,a,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(0,L.Bm)(t),r=i.state.postToReport){e.next=4;break}return e.abrupt("return");case 4:return n.title=r.title,n.author=r.author,n.postUrl="".concat(window.location.hostname,"/community/blogs/post?itemId=").concat(r.itemId),e.next=9,i.captchaRef.current.executeAsync();case 9:return a=e.sent,i.captchaRef.current.reset(),(0,k.sendEmail)(a,n,P.emailConfig.defaultToAddress,Z().ReportPostSubject,Z().ReportPostTemplate),r.reportReasons=r.reportReasons||[],r.reportReasons.push(n.reason),r.reportedCount=r.reportedCount||0,r.reportedCount+=1,o={itemId:r.itemId,reportReasons:r.reportReasons,reportedCount:r.reportedCount},o=(0,L.Bm)(o),e.prev=18,e.next=21,b().put("".concat(P.apiUrl,"/post"),o);case 21:y.Am.success("Post successfully reported."),e.next=28;break;case 24:e.prev=24,e.t0=e.catch(18),y.Am.error("Error reporting Post."),E.Logger.error("Post report : ".concat(e.t0.message));case 28:return e.prev=28,i.setState({postToReport:null}),e.finish(28);case 31:case"end":return e.stop()}}),e,null,[[18,24,28,31]])})));return function(t){return e.apply(this,arguments)}}()),(0,u.Z)((0,s.Z)(i),"preparePostOrMemberView",(function(){var e=i.props,t=e.post,n=e.filterName,r=i.state.page;if(t){var a=null;r||((a=t).isFeatured=!0,a.isReadMore=!0,a.commentLimit=100);var o=i.state.posts;t.isAnonymous&&(o=o.filter((function(e){return e.isAnonymous}))),a&&(o=o.filter((function(e){return e.itemId!==a.itemId}))).unshift(a),i.setState({posts:o,isPostView:!0})}"member"===n&&i.setState({isProfileView:!0})}));var c=e.dateFilter,l=e.currentUser,d=e.filterName,p={type:"blog",startDate:c?c.startDate:null,endD
1ate:c?c.endDate:null,skip:0,isAnonymous:!1,lastPostId:null,lastPostCreatedOn:null,currentUserIsAdmin:l&&l.isAdmin||!1,currentUserId:l?l.itemId:null,limit:10,sort:"createdOn_DESC"};return i.state={isLoading:!0,page:0,hasMoreData:!1,filterName:d,filter:i.getFilter(p),posts:[],isProfileView:!1,isPostView:!1,currentUser:l},i.captchaRef=m.createRef(),i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this,t=this.state,n=t.isPostView,r=t.isProfileView,a=t.postToEdit,o=t.isLoading,i=t.posts,s=t.hasMoreData,c=t.postToReport,l=this.props,d=l.handlePromoPop;l.post,l.currentUser;return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("div",{className:N().postsWrapper,children:[!n&&!r&&(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(I.default,{currentUser:this.context.currentUser,callback:this.saveCallback,post:a,cancelEditPost:this.cancelEditPost,handlePromoPop:d})}),o&&(0,D.jsx)("div",{className:"placeholders",children:this.showPlaceholders(10)}),i&&i.sort((function(e,t){return t.isPinned-e.isPinned})).map((function(t,n){return(0,D.jsx)(S.default,{data:t,handleEditCallback:e.editCallback,handleOpenReport:e.handleOpenReport,updateCommentCountcallback:e.updateCommentCountcallback},"".concat(t.itemId,"-").concat(n))})),!i.length&&!s&&(0,D.jsx)("div",{className:"hc-card",style:{padding:"2em",background:"#fafafa"},children:(0,D.jsx)("p",{children:"No Blogs to show"})}),i.length>=10&&(0,D.jsx)("div",{className:"load-more",children:(0,D.jsx)(x.Z,{primary:s,fluid:!0,onClick:this.loadMorePosts,disabled:!s,children:s?"Load More":"No more blogs to load"})})]}),c&&(0,D.jsxs)(R.default,{open:c,title:"Report Post",handleClick:this.handleCancelReport,hideFooter:!0,children:[(0,D.jsxs)("p",{children:[(0,D.jsx)("span",{children:"Title"})," ",c.title]}),(0,D.jsxs)("p",{children:[(0,D.jsx)("span",{children:"Author"})," ",c.author]}),(0,D.jsx)(j.ReportPostForm,{submitReference:!0,submit:this.handleReportSubmit,cancel:this.handleCancelReport}),(0,D.jsx)(f.Z,{sitekey:P.reCaptchaKey,size:"invisible",ref:this.captchaRef})]})]})}}]),n}(m.Component);(0,u.Z)(T,"contextType",C.default),t.default=T},98092:function(e,t,n){n.r(t),n.d(t,{PostForm:function(){return p},CommentForm:function(){return h},ReportPostForm:function(){return m}});n(67294);var r=n(49127),a=n(37364),o=n(17860),i=n(96150),s=n(40420),c=n(40849),l=n(59400),d=n(88771),u=n(85893),p=function(e){var t=e.submit,n=e.cancel,d=e.data,p=e.isLoading,h=d.nickname;return(0,u.jsx)(r.J9,{initialValues:d,validationSchema:a.schemaPost,onSubmit:t,render:function(e){var t=e.values,r=e.errors,a=e.touched,m=e.handleChange,f=e.handleSubmit,v=e.handleBlur,g=e.setFieldValue,b=function(e,t){t.name,t.value;m(e)};return(0,u.jsxs)(i.Z,{children:[(0,u.jsx)(s.Z,{inverted:!0,active:p,children:(0,u.jsx)(c.Z,{active:!0,children:"Loading"})}),!h&&(0,u.jsxs)("p",{children:["We noticed you haven't set up your nickname. ",(0,u.jsx)("br",{}),"This will be used across all your posts so other bloggers can recognize you. If you don't want to set a nickname just yet you can post anonymously instead.",(0,u.jsx)("br",{})]}),(0,u.jsxs)(i.Z.Group,{widths:"equal",children:[t.isAnonymous?(0,u.jsxs)("div",{className:"field",children:[(0,u.jsx)("label",{children:"Posting as"}),(0,u.jsx)("div",{className:"ui input",children:(0,u.jsx)("label",{htmlFor:"Posting as",children:"Anonymous"})})]}):[null!==h&&""!==h?(0,u.jsxs)("div",{className:"field",children:[(0,u.jsx)("label",{children:"Posting as"}),(0,u.jsx)("div",{className:"ui input",children:(0,u.jsx)("label",{htmlFor:"Posting as",children:h})})]}):(0,u.jsx)(i.Z.Input,{required:!0,fluid:!0,error:!!a.nickname&&r.nickname,label:"Nickname",name:"nickname",value:t.nickname,onChange:b,onBlur:v})],(0,u.jsx)(i.Z.Checkbox,{toggle:!0,error:!!a.isAnonymous&&r.isAnonymous,label:"Post Anonymously",name:"isAnonymous",id:"isAnonymous",onChange:b,defaultChecked:t.isAnonymous})]}),(0,u.jsx)(i.Z.Input,{required:!0,error:!!a.title&&r.title,label:"Subject",name:"title",value:t.title,onChange:b,onBlur:v}),(0,u.jsx)(i.Z.TextArea,{required:!0,error:!!a.content&&r.content,label:"Body",name:"content",value:t.content,onChange:b,onBlur:v}),(0,u.jsx)(i.Z.Dropdown,{closeOnChange:!0,closeOnEscape:!0,upward:!0,multiple:!0,scrolling:!1,label:"Category",placeholder:"Categories",error:!!a.categories&&r.categories,selection:!0,name:"categories",id:"categories",options:o.mY,defaultValue:t.categories,onChange:function(e,t){var n=t.value;m(e),g("categories",n)},onBlur:v}),(0,u.jsx)(i.Z.Checkbox,{toggle:!0,label:"I want to make my post private",name:"isPrivate",id:"isPrivate",onCh
1ange:b,defaultChecked:t.isPrivate}),(0,u.jsxs)(l.Z,{onClick:n,secondary:!0,children:[(0,u.jsx)(l.Z,{onClick:f,primary:!0,type:"submit",style:{marginRight:10},children:""===d.itemId?"Create":"Update"}),"Cancel"]})]})}})},h=function(e){var t=e.submit,n=e.cancel,o=e.data,d=e.label,p=e.isLoading;return(0,u.jsx)(r.J9,{initialValues:o,validationSchema:a.schemaComment,onSubmit:t,render:function(e){var t=e.values,r=e.errors,a=e.touched,o=e.handleChange,h=e.handleSubmit,m=e.handleBlur;return(0,u.jsxs)(i.Z,{children:[(0,u.jsx)(s.Z,{inverted:!0,active:p,children:(0,u.jsx)(c.Z,{active:!0,children:"Loading"})}),(0,u.jsx)(i.Z.TextArea,{required:!0,error:!!a.content&&r.content,label:"".concat(d," your comment"),name:"content",defaultValue:t.content,onChange:function(e,t){t.name,t.value;o(e)},onBlur:m}),(0,u.jsx)(l.Z,{onClick:n,style:{marginRight:10},children:"Cancel"}),(0,u.jsx)(l.Z,{onClick:h,primary:!0,type:"submit",style:{marginRight:10},children:d})]})}})},m=function(e){var t=e.submit,n=e.cancel,o=e.data,l=void 0===o?{reason:""}:o,p=e.isLoading;return(0,u.jsx)(r.J9,{validationSchema:a.schemaReportPost,initialValues:l,onSubmit:t,render:function(e){var t=e.values,r=e.errors,a=e.touched,o=e.handleChange,l=e.handleSubmit,h=e.handleBlur;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(i.Z,{children:[(0,u.jsx)(s.Z,{inverted:!0,active:p,children:(0,u.jsx)(c.Z,{active:!0,children:"Loading"})}),(0,u.jsx)(i.Z.TextArea,{required:!0,error:!!a.reason&&r.reason,label:"Reason",name:"reason",value:t.reason,onChange:function(e,t){t.name,t.value;o(e)},onBlur:h})]}),(0,u.jsx)(d.default,{fixed:!0,handleCancel:n,handleSubmit:l,cancelContent:"Cancel",submitContent:"Save"})]})}})}},37364:function(e,t,n){n.r(t),n.d(t,{schemaPost:function(){return a},schemaComment:function(){return o},schemaReportPost:function(){return i}});var r=n(19501),a=r.Ry().shape({nickname:r.Z_().when("isAnonymous",{is:!0,then:r.Z_().nullable(),otherwise:r.Z_().nullable().required("Nickname is required")}).max(255,"Character limit exceeded."),title:r.Z_().required("Subject is required.").max(255,"Character limit exceeded."),content:r.Z_().required("Body is required.").max(2055,"Character limit exceeded.")}),o=r.Ry().shape({content:r.Z_().required("Comment is required.").min(3,"Minimum 3 characters required.").max(2055,"Character limit exceeded.")}),i=r.Ry().shape({reason:r.Z_().required("Reason is required.").min(3,"Minimum 3 characters required.").max(2055,"Character limit exceeded.")})},27269:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(67294),a=n(45697),o=n.n(a);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c=function(e){var t,n;function a(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(s(t)),t.handleErrored=t.handleErrored.bind(s(t)),t.handleChange=t.handleChange.bind(s(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(s(t)),t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=a.prototype;return o.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},o.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},o.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},o.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},o.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},o.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},o.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},o.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},o.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},o.componentDidMount=function(){this.explicitRender()},o.componentDidUpdate=function(){this.explicitRender()},o.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},o.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},o.handleRecaptchaRef=function(e){this.captcha=e},o.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return r.createElement("div",i({},t,{ref:this.handleRecaptchaRef}))},a}(r.Component);c.displayName="ReCAPTCHA",c.propTypes={sitekey:o().string.isRequired,onChange:o().func,grecaptcha:o().object,theme:o().oneOf(["dark","light"]),type:o().oneOf(["image","audio"]),tabindex:o().number,onExpired:o().func,onErrored:o().func,size:o().oneOf(["compact","normal","invisible"]),stoken:o().string,hl:o().string,badge:o().oneOf(["bottomright","bottomleft","inline"])}
1,c.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var l=n(8679),d=n.n(l);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p={},h=0;var m="onloadcallback";var f,v,g=(f=function(){return"https://"+(("undefined"!==typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+m+"&render=explicit"},v=(v={callbackName:m,globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",n=function(t){var n,a;function o(e,n){var r;return(r=t.call(this,e,n)||this).state={},r.__scriptURL="",r}a=t,(n=o).prototype=Object.create(a.prototype),n.prototype.constructor=n,n.__proto__=a;var i=o.prototype;return i.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+h++),this.__scriptLoaderID},i.setupScriptURL=function(){return this.__scriptURL="function"===typeof f?f():f,this.__scriptURL},i.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},i.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=p[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[v.callbackName]},i.componentDidMount=function(){var e=this,t=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),r=v,a=r.globalName,o=r.callbackName,i=r.scriptId;if(a&&"undefined"!==typeof window[a]&&(p[t]={loaded:!0,observers:{}}),p[t]){var s=p[t];return s&&(s.loaded||s.errored)?void this.asyncScriptLoaderHandleLoad(s):void(s.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var c={};c[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},p[t]={loaded:!1,observers:c};var l=document.createElement("script");for(var d in l.src=t,l.async=!0,v.attributes)l.setAttribute(d,v.attributes[d]);i&&(l.id=i);var u=function(e){if(p[t]){var n=p[t].observers;for(var r in n)e(n[r])&&delete n[r]}};o&&"undefined"!==typeof window&&(window[o]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),l.onload=function(){var e=p[t];e&&(e.loaded=!0,u((function(t){return!o&&(t(e),!0)})))},l.onerror=function(){var e=p[t];e&&(e.errored=!0,u((function(t){return t(e),!0})))},document.body.appendChild(l)},i.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===v.removeOnUnmount)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)t[n].src.indexOf(e)>-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var r=p[e];r&&(delete r.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===v.removeOnUnmount&&delete p[e])},i.render=function(){var t=v.globalName,n=this.props,a=(n.asyncScriptOnLoad,n.forwardedRef),o=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!==typeof window&&(o[t]="undefined"!==typeof window[t]?window[t]:void 0),o.ref=a,(0,r.createElement)(e,o)},o}(r.Component),a=(0,r.forwardRef)((function(e,t){return(0,r.createElement)(n,u({},e,{forwardedRef:t}))}));return a.displayName="AsyncScriptLoader("+t+")",a.propTypes={asyncScriptOnLoad:o().func},d()(a,e)})(c)}}]);

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.