1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[38900],{191574(e,r,t){t.d(r,{L:()=>W});var n=t(391426),o=t(75132),a=t(274685),i=t(972539),l=t(628604),c=t(257957),s=t(230763),u=t(765724),p=t(570310),d=t(355104),m=t(622779),f=t(268342),h=t(457736),y=t(451430),b=t(933578),g=t(620729),x=t(417980),_=t(288513),v=t(804939),j=t(739042),w=t(409858),C=t(892907),O=function(e){var r,t=e.brandColor,o=e.communityUrl,a=e.currentCommunity,i=e.logoUrl;return(0,n.jsx)("a",{"aria-label":(0,x.t)("error_page.v4.back_to_homepage"),href:o,children:(0,n.jsx)("div",{className:"bg-secondary flex size-20 items-center justify-center rounded-full",children:i?(0,n.jsx)("img",{alt:a?(0,x.t)("error_page.v4.community_logo",{communityName:a.name}):"",className:"size-auto max-h-12 max-w-12 object-contain",src:i}):(0,n.jsx)("div",{className:"flex size-12 items-center justify-center rounded-full",style:{backgroundColor:t},children:(0,n.jsx)(C.o5,{variant:"heading-md",color:"primary",children:null==a||null==(r=a.name)?void 0:r[0]})})})})},N=function(e){var r=e.brandColor,t=e.communityUrl,o=e.currentCommunity,a=e.errorCode,i=e.logoUrl,l=e.onGoToHomepage,c=e.onReportError,s=e.onTryAgain,u=e.title,p=404===a;return(0,n.jsxs)("div",{className:"flex w-full max-w-2xl flex-col items-center text-center",children:[(0,n.jsx)(O,{brandColor:r,communityUrl:t,currentCommunity:o,logoUrl:i}),(0,n.jsx)(C.o5,{component:"h1",variant:"heading-lg",color:"primary",className:"mt-4",children:u}),(0,n.jsx)(C.o5,{variant:"body-md",color:"secondary",className:"mt-4",children:(0,x.t)(p?"error_page.v4.page_not_found_description":"error_page.v4.something_went_wrong_description")}),(0,n.jsxs)("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-2",children:[!p&&(0,n.jsx)(j.$,{type:"button",variant:"outline",size:"sm",onClick:l,children:(0,x.t)("error_page.v4.back_to_homepage")}),(0,n.jsx)(j.$,{type:"button",variant:p?"branded":"primary",size:"sm",onClick:p?l:s,children:(0,x.t)(p?"error_page.v4.back_to_homepage":"error_page.try_again")})]}),(0,n.jsxs)("div",{className:"mt-16 flex items-center justify-center gap-2",children:[(0,n.jsx)(C.o5,{component:"span",variant:"body-sm",color:"secondary",children:(0,x.t)("error_page.v4.suspect_bug")}),(0,n.jsx)(w.N,{asButton:!0,color:"branded",size:"sm",onClick:c,children:(0,x.t)("error_page.v4.report_it")})]})]})},S=t(915779),k=function(e){var r=e.currentUser;return r?(0,n.jsxs)("footer",{className:"bg-secondary border-primary flex min-h-12 items-center justify-center gap-2 border-t px-6 py-4",children:[(0,n.jsx)(C.o5,{component:"span",variant:"body-sm",color:"secondary",children:(0,x.t)("error_page.v4.signed_in_as",{email:r.email})}),(0,n.jsx)(w.N,{color:"branded",href:(0,S.Nb)(),size:"sm",children:(0,x.t)("sign_out")})]}):null},P=t(791009),A=t(642400),T="error-report-form",U=["errorMessage","errorStack","componentStack"],E=function(e){var r=e.errorCode,t=e.isOpen,o=e.onOpenChange,a=e.onSubmit,i=e.passThroughProps,c=e.recaptchaRef,s=(0,b.useMemo)(function(){return window.location.href},[]),u=(0,b.useMemo)(function(){return Object.fromEntries(U.flatMap(function(e){var r,t="string"==typeof(r=i[e])||"number"==typeof r?String(r):null;return null===t?[]:[[e,t]]}))},[i]);return(0,n.jsx)(P.a.Root,{open:t,onOpenChange:o,size:"md",children:(0,n.jsxs)(P.a.Content,{children:[(0,n.jsx)(P.a.Header,{title:(0,x.t)("error_page.v4.report_modal.title"),description:(0,x.t)("error_page.v4.report_modal.description")}),(0,n.jsx)(P.a.Body,{children:(0,n.jsxs)("form",{id:T,action:"/error_reports/send_email_notification",acceptCharset:"UTF-8",className:"pt-1",method:"post",onSubmit:a,children:[(0,n.jsx)(l.W,{}),(0,n.jsx)("label",{className:"sr-only",htmlFor:"error_detail",children:(0,x.t)("error_page.v4.report_modal.placeholder")}),(0,n.jsx)(A.f,{id:"error_detail",name:"error_detail",placeholder:(0,x.t)("error_page.v4.report_modal.placeholder"),required:!0,rows:5}),(0,n.jsx)("input",{value:r,type:"hidden",name:"error_status",id:"error_status"}),(0,n.jsx)("input",{value:s,type:"hidden",name:"error_url",id:"error_url"}),(0,y.map)(u,function(e,r){return(0,n.jsx)("input",{name:r,type:"hidden",value:e},r)}),window.CAPTCHA_SITE_KEY&&(0,n.jsx)(g.A,{ref:c,sitekey:window.CAPTCHA_SITE_KEY,size:"invisible"})]})}),(0,n.jsx)(P.a.Footer,{secondaryAction:{label:(0,x.t)("cancel"),onClick:function(){return o(!1)}},primaryAction:{label:(0,x.t)("submit"),type:"submit",form:T}})]})})};function H(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var I=function(e){var r,t=e.brandColor,o=e.communityUrl,a=e.currentCommunity,i=e.currentUser,l=e.errorCode,c=e.fullHeight,s=e.logoUrl,u=e.onSubmit,d=e.passThroughProps,m=e.recaptchaRef,f=e.title,h=function(e){if(Array.isArray(e))return e}(r=(0,b.useState)(!1))||function(e){var r,t,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],a=!0,i=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){i=!0,t=e}finally{try{a||null==n.return||n.return()}finally{if(i)throw t}}return o}}(r)||function(e){if(e){if("string"==typeof e)return H(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return H(e,2)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=h[0],g=h[1],x=(0,v.P)();return(0,n.jsxs)("div",{className:(0,p.x)("bg-primary flex flex-col",void 0!==c&&c?"min-h-dvh":"min-h-full"),children:[(0,n.jsx)("main",{className:(0,p.x)("flex flex-1 items-center justify-center px-6 py-12",x&&"px-0"),children:(0,n.jsx)(N,{brandColor:t,communityUrl:o,currentCommunity:a,errorCode:l,logoUrl:s,onGoToHomepage:function(){window.location.href=o},onReportError:function(){return g(!0)},onTryAgain:function(){return window.location.reload()},title:f})}),(0,n.jsx)(k,{currentUser:i}),(0,n.jsx)(E,{errorCode:l,isOpen:y,onOpenChange:g,onSubmit:u,passThroughProps:d,recaptchaRef:m})]})};function z(e,r,t,n,o,a,i){try{var l=e[a](i),c=l.value}catch(e){t(e);return}l.done?r(c):Promise.resolve(c).then(n,o)}var R=function(e){var r,t,o,a,v=e.title,j=e.errorCode,w=e.fullHeight,C=function(e,r){if(null==e)return{};var t,n,o,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(t=Reflect.ownKeys(Object(e)),o=0;o<t.length;o++)n=t[o],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,r){if(null==e)return{};var t,n,o={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t]);return o}(e,r),Object.getOwnPropertySymbols)for(t=Object.getOwnPropertySymbols(e),o=0;o<t.length;o++)n=t[o],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,["title","errorCode","fullHeight"]),O=(0,s.Od)(),N=O.currentCommunity,S=O.currentUser,k=O.isLoading,P=(0,d.c)().isCircleV4,A=null!=(r=null==(t=(0,b.useContext)(m.Dx))?void 0:t.isDarkAppearance)&&r,T=(0,f.r)(),U=(0,b.useRef)(null);if(k)return(0,n.jsx)(c.a,{center:!0});var E="https://circle.so",H=i,R="";N&&(E=window.location.origin,H=(0,u.uQ)(N),R=(0,u.cE)(N,A)||(0,u.uQ)(N)||"",a=A?N.prefs.brand_color.dark:N.prefs.brand_color.light);var W=(null==N?void 0:N.has_plus_plan)?"error_page.message_placeholder_circle_plus":"error_page.message_placeholder",K=v||(404===j?(0,x.t)(P?"error_page.v4.page_not_found":"error_page.page_not_found"):(0,x.t)(P?"error_page.v4.something_went_wrong":"error_page.something_went_wrong")),D=function(e){var r;return(r=function(){var r;return function(e,r){var t,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(i,"next",{value:c(0)}),l(i,"throw",{value:c(1)}),l(i,"return",{value:c(2)}),"function"==typeof Symbol&&l(i,Symbol.iterator,{value:function(){return this}}),i;function c(l){return function(c){var s=[l,c];if(t)throw TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(t=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=r.call(e,a)}catch(e){s=[6,e],n=0}finally{t=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,null==U||null==(r=U.current)?void 0:r.executeAsync()];case 1:case 2:return t.sent(),[3,3];case 3:return e.submit(),[2]}})},function(){var e=this,t=arguments;return new Promise(function(n,o){var a=r.apply(e,t);function i(e){z(a,n,o,i,l,"next",e)}function l(e){z(a,n,o,i,l,"throw",e)}i(void 0)})})()},F=function(e){e.preventDefault(),D(e.currentTarget)};if(P){var M=(0,n.jsx)(I,{title:K,errorCode:j,currentCommunity:N,currentUser:S,communityUrl:E,fullHeight:w,logoUrl:R,brandColor:a,recaptchaRef:U,onSubmit:F,passThroughProps:C});return T?M:(0,n.jsx)(h.s,{children:M})}return(0,n.jsx)("div",{className:(0,_.W2)("center-layout error-layout notification-error"),children:(0,n.jsxs)("div",{className:(0,_.W2)("center-container"),children:[(0,n.jsx)("div",{className:(0,_.W2)("community__brand"),children:H?(0,n.jsx)("a",{href:E,target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)("img",{loading:"lazy",alt:"",className:(0,_.W2)("logo"),src:H})}):(0,n.jsx)("a",{className:(0,p.x)((0,_.W2)("brand-icon"),(0,_._h)("brand-icon__initial")),style:{backgroundColor:a},target:"_blank",rel:"noopener noreferrer",href:E,children:null==N||null==(o=N.name)?void 0:o[0]})}),(0,n.jsx)("div",{className:"mb-12",children:(0,n.jsx)("h1",{children:K})}),(0,n.jsxs)("h4",{className:"mb-6",children:[" ",(0,x.t)("error_page.suspect_bug")]}
1),(0,n.jsxs)("form",{action:"/error_reports/send_email_notification",acceptCharset:"UTF-8",method:"post",onSubmit:F,children:[(0,n.jsx)(l.W,{}),(0,n.jsxs)("div",{className:(0,p.x)((0,_.W2)("form-group"),"mb-4"),children:[(0,n.jsx)("label",{className:(0,p.x)((0,_._h)("required"),"sr-only"),htmlFor:"error_detail",children:(0,x.t)("error_page.error_detail")}),(0,n.jsx)("textarea",{placeholder:(0,x.t)(W),rows:7,cols:50,required:!0,name:"error_detail",id:"error_detail",className:(0,p.x)((0,_.W2)("form-control"),"placeholder:text-light placeholder:opacity-100")})]}),window.CAPTCHA_SITE_KEY&&(0,n.jsx)("div",{className:"mb-4 flex items-center justify-center",children:(0,n.jsx)(g.A,{ref:U,sitekey:window.CAPTCHA_SITE_KEY,size:"invisible"})}),(0,n.jsx)("input",{value:j,type:"hidden",name:"error_status",id:"error_status"}),(0,n.jsx)("input",{value:window.location.href,type:"hidden",name:"error_url",id:"error_url"}),(0,n.jsx)("input",{type:"submit",name:"commit",value:(0,x.t)("error_page.submit_report"),className:(0,_.W2)("btn btn-primary"),"data-disable-with":"Submit report"}),(0,y.map)(C,function(e,r){return(0,n.jsx)("input",{name:r,type:"hidden",value:e},r)})]})]})})},W=function(e){return(0,n.jsx)(a.Ht,{client:o.qQ,children:(0,n.jsx)(R,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}({},e))})}},14655(e,r,t){var n=t(391426),o=t(191574),a=function(e){return(0,n.jsx)(o.L,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}({errorCode:500},e))};t.d(r,{w:()=>a})}}]); 2//# sourceMappingURL=/packs/js/38900-2df9fe50d736a1e8.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.