1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b737853d-b091-4664-b3c0-853b97ffd8f9",e._sentryDebugIdIdentifier="sentry-dbid-b737853d-b091-4664-b3c0-853b97ffd8f9")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[32092,56145],{33117:(e,t,r)=>{var n=r(73610),i=n(r(7379)),s=n(r(95981)),a=n(r(61851));function o(){var e=void 0!==arguments[0]?arguments[0]:{};i.default.call(this,e),this.name=e.name,this.updatedAt=e.updatedAt,this.createdAt=e.createdAt,this.systemPage=e.systemPage,this.state=e.state,this.permalink=e.permalink,this.leftContentData=e.leftContentData,this.editable=e.editable}(0,s.default)(o,i.default),o.baseURL="/static_pages",o.prototype.publish=function(){var e=this;return this.constructor.adapter.patch(this.constructBaseURL()+"/"+this.id+"/publish",this.serialize()).then(function(t){return e.constructor.deserialize(t.data)}).catch(function(t){throw e.errors=new a.default(t.data),t})},o.prototype.unpublish=function(){var e=this;return this.constructor.adapter.patch(this.constructBaseURL()+"/"+this.id+"/unpublish",this.serialize()).then(function(t){return e.constructor.deserialize(t.data)}).catch(function(t){throw e.errors=new a.default(t.data),t})},o._type="static-pages",e.exports=o},37900:(e,t,r)=>{r.d(t,{A:()=>D});var n=r(42969),i=r(59234),s=r(46783),a=r(14232),o=r(7194),c=r(63857),l=r(60180),u=r.n(l),d=r(40259),p=r(14221),h=r(79753),g=r(60578),f=r(73614),x=r(98512),m=r(21471),b=r(50225),A=r(66035),y=r(40553),v=r(45911),j=r(31123);let S=function(e,t,r){var n="";switch(e){case"twitter":return"https://twitter.com/intent/tweet?url=".concat(t,"&text=").concat(r);case"facebook":return"https://www.facebook.com/sharer/sharer.php?u=".concat(t,""e=").concat(r);case"mail":return"mailto:?body=".concat(r," ").concat(t);case"linkedin":return"https://www.linkedin.com/sharing/share-offsite/?url=".concat(t);default:return n}};var w=r(54237),k=r(17580),E=r(37876),T=r(31777),C=r(83129);let O=(0,T.Ng)(null,function(e){return(0,C.zH)({fetchSite:o.Cc,launchSite:o.$p},e)})(function(e){var t,r=e.fetchSite,n=e.launchSite,o=e.showBanner,l=(0,w.useTranslation)(["common","site-settings","errors"]).t,T=(0,k.Sf)(),C=(0,a.useState)(!1),O=C[0],P=C[1],_=(0,a.useState)(!1),D=_[0],R=_[1],I=(0,a.useId)(),U=(0,a.useId)(),M=window.location.origin,L=function(e){var t=l("site-settings:siteSettings.socialShareLink"),r=S(e,window.location.origin,t);window.open(r)},W=function(){var e=S("mail",window.location.origin,l("site-settings:siteSettings.mailLinkText"));window.open(e)},z=(t=(0,c.A)(u().mark(function e(){return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n();case 2:if(e.sent){e.next=6;break}return T.error(l("errors:errors.500.title")),e.abrupt("return");case 6:return e.next=8,r();case 8:P(!1),R(!0);case 10:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});return(0,E.jsxs)(E.Fragment,{children:[(void 0===o||o)&&(0,E.jsxs)(x.A,{severity:"info",sx:{mx:3,mt:2,mb:0,alignItems:"center"},action:(0,E.jsx)(m.A,{variant:"contained","data-testid":"confirm-modal-button",onClick:function(){return P(!0)},children:l("site-settings:siteSettings.launchYourSite")}),children:[(0,E.jsx)(s.A,{variant:"body1",sx:{fontWeight:500},children:l("site-settings:siteSettings.launchSite.title")}),(0,E.jsx)(s.A,{variant:"body2",color:"text.secondary",children:l("site-settings:siteSettings.launchSite.descriptionTwo")})]}),(0,E.jsxs)(b.A,{open:O,onClose:function(){return P(!1)},maxWidth:"sm",fullWidth:!0,role:"alertdialog","aria-labelledby":I,children:[(0,E.jsx)(v.A,{id:I,children:l("site-settings:siteSettings.launchSite")}),(0,E.jsxs)(y.A,{children:[(0,E.jsx)(s.A,{variant:"body2",sx:{mb:2},children:l("site-settings:siteSettings.launchSiteDescription")}),(0,E.jsx)(s.A,{variant:"body2",children:l("site-settings:siteSettings.launchSitePrompt")})]}),(0,E.jsxs)(A.A,{children:[(0,E.jsx)(m.A,{onClick:function(){return P(!1)},children:l("site-settings:siteSettings.no")}),(0,E.jsx)(m.A,{variant:"contained","data-testid":"launch-button",onClick:function(){z()},children:l("site-settings:siteSettings.yes")})]})]}),(0,E.jsxs)(b.A,{open:D,onClose:function(){return R(!1)},maxWidth:!1,fullWidth:!0,"aria-labelledby":U,slotProps:{paper:{sx:{maxWidth:4
110,width:"100%",p:3.5}}},children:[(0,E.jsxs)(v.A,{id:U,sx:{display:"flex",alignItems:"center",gap:1,p:0},children:[(0,E.jsx)(p.A,{color:"info",fontSize:"small","aria-hidden":!0}),l("site-settings:siteSettings.congratulations")]}),(0,E.jsxs)(y.A,{sx:{p:3.5},children:[(0,E.jsx)(s.A,{variant:"body2",component:"h3",fontWeight:500,sx:{mt:2,mb:1},children:l("site-settings:siteSettings.launchSite.paraOne")}),(0,E.jsx)(i.A,{sx:{bgcolor:"grey.50",px:1,py:1,minHeight:40,display:"flex",alignItems:"center",borderRadius:1},children:(0,E.jsx)(s.A,{variant:"body2",children:M})}),(0,E.jsx)(m.A,{variant:"outlined","data-testid":"visit-site",onClick:function(){return window.open(M)},sx:{mt:1,minWidth:136},children:l("site-settings:siteSettings.visitSite")}),(0,E.jsx)(s.A,{variant:"body2",component:"h3",fontWeight:500,sx:{mt:3,mb:1},children:l("site-settings:siteSettings.launchSite.paraTwo")}),(0,E.jsx)(m.A,{"data-testid":"create-project",variant:"outlined",onClick:function(){return window.open("/admin/projects")},children:l("site-settings:siteSettings.createAProject")}),(0,E.jsx)(s.A,{variant:"body2",component:"h3",fontWeight:500,sx:{mt:3,mb:1},children:l("site-settings:siteSettings.launchSite.paraThree")}),(0,E.jsxs)(i.A,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:[(0,E.jsx)(j.A,{"data-testid":"twitter","aria-label":"Twitter",onClick:function(){return L("twitter")},sx:{width:40,height:40,color:"#1da1f2",bgcolor:"rgba(29, 161, 242, 0.12)"},children:(0,E.jsx)(f.A,{})}),(0,E.jsx)(j.A,{"data-testid":"facebook","aria-label":"Facebook",onClick:function(){return L("facebook")},sx:{width:40,height:40,color:"#4267b2",bgcolor:"rgba(66, 103, 178, 0.12)"},children:(0,E.jsx)(d.A,{})}),(0,E.jsx)(j.A,{"data-testid":"linkedin","aria-label":"LinkedIn",onClick:function(){return L("linkedin")},sx:{width:40,height:40,color:"#0e76a8",bgcolor:"rgba(14, 118, 168, 0.12)"},children:(0,E.jsx)(h.A,{})}),(0,E.jsx)(j.A,{"data-testid":"mail","aria-label":"Email",onClick:function(){return W()},sx:{width:40,height:40,color:"text.secondary",bgcolor:"rgba(89, 89, 89, 0.12)"},children:(0,E.jsx)(g.A,{})})]})]}),(0,E.jsx)(A.A,{sx:{pr:1.5},children:(0,E.jsx)(m.A,{variant:"outlined",onClick:function(){return R(!1)},children:l("site-settings:siteSettings.close")})})]})]})});function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach(function(t){(0,n.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let D=function(e){var t=e.title,r=e.actions,n=e.filters,o=e.navigation,c=e.bulkActions,l=e.content,u=e.isSiteSettingsPage,d=void 0!==u&&u,p=e.isSiteLaunched,h=e.stretchContentHeight,g=void 0!==h&&h,f=e.contentCardMaxWidth,x=e.contentCardAlign,m=e.contentSx,b=d&&void 0!==p&&p,A=a.Children.toArray(r).some(Boolean);return(0,E.jsxs)(i.A,{sx:_({height:"100%"},g&&{flex:1,minHeight:0,display:"flex",flexDirection:"column"}),children:[(0,E.jsxs)(i.A,{component:"header",display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},justifyContent:"space-between",gap:{xs:1.5,sm:2},bgcolor:"background.paper",px:{xs:2,sm:3},py:2,children:[(0,E.jsx)(s.A,{component:"h1",variant:"h5",color:"text.primary",fontWeight:500,minWidth:0,py:.5,children:t}),A&&(0,E.jsx)(i.A,{display:"flex",alignItems:"center",justifyContent:{xs:"flex-start",sm:"flex-end"},flexWrap:"wrap",flexShrink:0,gap:1,width:{xs:"100%",sm:"auto"},children:r})]}),n&&(0,E.jsx)(i.A,{sx:{px:{xs:2,sm:3},bgcolor:"background.paper"},children:n}),o&&(0,E.jsx)(i.A,{sx:{bgcolor:"background.paper"},children:o}),d&&(0,E.jsx)(O,{showBanner:b}),c?(0,E.jsx)(i.A,{flexShrink:0,children:c}):null,(0,E.jsx)(i.A,{sx:_(_(_(_({bgcolor:"background.paper",p:{xs:1.5,sm:"18px 24px"},position:"relative",boxSizing:"border-box"},null!=f&&f>0?_({maxWidth:f,width:"100%"},"left"===(void 0===x?"center":x)?g?{marginTop:0,marginBottom:0,marginLeft:{xs:1.5,sm:3},marginRight:"auto",alignSelf:"flex-start"}:{marginTop:{xs:1.5,sm:3},marginBottom:{xs:1.5,sm:3},marginLeft:{xs:1.5,sm:3},marginRight:"auto"}:{marginTop:g?0:{xs:1.5,sm:3},marginBottom:g?0:{xs:1.5,sm:3},marginLeft:"auto",marginRight:"auto"}):{m:{xs:1.5,sm:3}}),g?{flex:1,minHeight:0,display:"flex",flexDirection:"column"}
1:{minHeight:{xs:"calc(100dvh - 140px)",sm:"calc(100vh - 140px)"}}),b?{mt:2}:{}),m),children:l})]})}},49012:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(42969),i=r(68523);r(14232);var s=r(37876);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let o=function(e){return function(t){return t.isAuthorized?(0,s.jsx)(e,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){(0,n.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t)):(0,s.jsx)(i.default,{statusCode:404})}}},68523:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var n=r(27925),i=r(14232),s=r(59234),a=r(3513),o=r(33713),c=r(46783),l=r(48230),u=r.n(l);let d=r.p+"static/media/error.5ab482faf5722534.png";var p=r(33191),h=r.n(p),g=r(37876),f={helpfulLinksTitle:"Here are some helpful links:",projects:"Projects",appearance:"Appearance",reporting:"Reporting",accessDeniedErrorMessage:"403 Error",accessDeniedErrorMessageTitle:"Access denied",accessDeniedErrorMessageSubTitle:"You do not have permission to access the requested page.",missingUrlErrorMessage:"404 Error",missingUrlErrorMessageTitle:"We couldn't find this page.",missingUrlErrorMessageSubTitle:"You may have entered an old URL or clicked on a URL from a previous version of this application. The page you're looking for may have been removed or relocated."},x={en:f,"en-US":f,"fr-CA":{helpfulLinksTitle:"Voici quelques liens utiles:",projects:"Projets",appearance:"Apparence",reporting:"Rapports",accessDeniedErrorMessage:"403 Erreur",accessDeniedErrorMessageTitle:"Acc\xe8s refus\xe9",accessDeniedErrorMessageSubTitle:"Vous nâavez pas la permission dâacc\xe9der \xe0 la page demand\xe9e.",missingUrlErrorMessage:"404 Erreur",missingUrlErrorMessageTitle:"Oups! D\xe9sol\xe9 que vous semblez avoir entr\xe9 une URL erron\xe9e",missingUrlErrorMessageSubTitle:"Vous avez peut-\xeatre entr\xe9 une ancienne URL ou cliqu\xe9 sur une URL \xe0 partir d'une version pr\xe9c\xe9dente de cette application. S'il vous pla\xeet utiliser la navigation sur la gauche pour trouver la page correcte."}},m=[{href:"/admin/projects",labelKey:"projects"},{href:"/admin/sites/editors/home-page",labelKey:"appearance"},{href:"/admin/reporting/summary",labelKey:"reporting"}];let b=function(e){var t=e.statusCode,r=i.useState("en"),l=(0,n.A)(r,2),p=l[0],f=l[1];(0,i.useEffect)(function(){f(h().get("current_language")||"en")},[]);var b=x[p]||x.en,A="403"===t||403===t?{errCode:b.accessDeniedErrorMessage,title:b.accessDeniedErrorMessageTitle,subTitle:b.accessDeniedErrorMessageSubTitle}:{errCode:b.missingUrlErrorMessage,title:b.missingUrlErrorMessageTitle,subTitle:b.missingUrlErrorMessageSubTitle};return(0,g.jsxs)(s.A,{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",bgcolor:"background.paper",borderRadius:1,m:3,sx:{height:"calc(100vh - 50px)"},children:[(0,g.jsx)(s.A,{component:"img",src:d,alt:A.title,sx:{height:300,width:"auto",maxWidth:"100%"}}),(0,g.jsxs)(s.A,{mt:3,maxWidth:448,textAlign:"center",px:2,children:[(0,g.jsx)(c.A,{variant:"h4",component:"p",fontWeight:600,color:"text.primary",sx:{lineHeight:2},children:A.errCode}),(0,g.jsx)(c.A,{variant:"body1",fontWeight:600,sx:{mt:.5},children:A.title}),(0,g.jsx)(c.A,{variant:"body2",color:"text.secondary",sx:{mt:1},children:A.subTitle}),(0,g.jsxs)(s.A,{mt:5,children:[(0,g.jsx)(c.A,{variant:"body2",color:"text.secondary",children:b.helpfulLinksTitle}),(0,g.jsx)(o.A,{direction:"row",justifyContent:"space-between",mx:"auto",mt:2,sx:{width:256},children:m.map(function(e){var t=e.href,r=e.labelKey;return(0,g.jsx)(a.A,{component:u(),href:t,underline:"hover",variant:"body2",children:b[r]},t)})})]})]})]})}},83861:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(23745),i=r(67251),s=r(29898),a=r(52672),o=r(76966),c=r(42969),l=r(7379),u=r.n(l);function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}var p=function(e){function t(){var e,r,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.default)(this,t),e=t,r=[o],e=(0,a.default)(e),n=(0,s.default)(this,d()?Reflect.construct(e,r||[],(0,a.default)(this).constructor):e.apply(this,r)),u().call(n,o),n.permalink=o.permalink,n}return(0,o.default)(t,e),(0,n.default)(t)}(u());(0,c.default)(p,"baseURL","/static_pages/generate_permalink"),(0,c.default)(p,"_type","generate_permalink");let h=p},83938:(e,t,r)=>{r.d(t,{S6:()=>g,VK:()=>h,Xt:()=>p,tk:()=>d,xR:()=>u});
1var n=r(63857),i=r(60180),s=r.n(i),a=r(33117),o=r.n(a),c=r(57620),l=r(83861),u=function(e){var t;return t=(0,n.A)(s().mark(function t(r,n){var i;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r({type:c.A.PERMALINK_REQUEST}),t.prev=1,t.next=4,l.A.fetch("",{},{name:e});case 4:i=t.sent,r({type:c.A.PERMALINK_SUCCESS,permalink:i.permalink}),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),r({type:c.A.PERMALINK_FAILURE,errorMessage:t.t0.errorMessage});case 11:case"end":return t.stop()}},t,null,[[1,8]])})),function(e,r){return t.apply(this,arguments)}},d=function(){var e;return e=(0,n.A)(s().mark(function e(t,r){var n,i,a,l,u,d;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=(n=r().staticPage.page).id,a=n.name,l=n.permalink,u=n.leftContentData,t({type:c.A.SAVE_STATIC_PAGE_REQUEST}),d=o().new({id:i,name:a,permalink:l,leftContentData:u}),e.prev=3,e.next=6,d.save();case 6:t({type:c.A.SAVE_STATIC_PAGE_SUCCESS}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),t({type:c.A.SAVE_STATIC_PAGE_FAILURE,errorMessage:e.t0.message||e.t0.statusText||e.t0.status,errors:d.errors.extract()});case 12:case"end":return e.stop()}},e,null,[[3,9]])})),function(t,r){return e.apply(this,arguments)}},p=function(e,t){return{type:c.A.UPDATE_STATIC_PAGE,key:e,value:t}},h=function(){return{type:c.A.RESET_STATIC_PAGE}},g=function(e){return{type:c.A.SET_ACTIVE_STATIC_PAGE,page:e}}}}]); 2//# sourceMappingURL=56145-d9be02703740a044.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.