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]="c8afe78b-b012-4cc5-b8a0-ad234f5415c9",e._sentryDebugIdIdentifier="sentry-dbid-c8afe78b-b012-4cc5-b8a0-ad234f5415c9")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[32092,71117],{7008:(e,t,n)=>{"use strict";n.d(t,{Hu:()=>o,Oo:()=>s,nO:()=>i});var r=/[#%&{}\\<>*?/$!'":@+\[\]=,\/;\|\^~]/gm,i=function(e){return e.replace(r,"")},s=function(e){return e instanceof File?new File([e],i(e.name),{type:e.type}):e},o=function(e){return r.test(e.name)}},37900:(e,t,n)=>{"use strict";n.d(t,{A:()=>W});var r=n(42969),i=n(59234),s=n(46783),o=n(14232),a=n(7194),c=n(63857),l=n(60180),u=n.n(l),d=n(40259),p=n(14221),g=n(79753),h=n(60578),f=n(73614),x=n(98512),m=n(21471),b=n(50225),j=n(66035),v=n(40553),y=n(45911),A=n(31123);let w=function(e,t,n){var r="";switch(e){case"twitter":return"https://twitter.com/intent/tweet?url=".concat(t,"&text=").concat(n);case"facebook":return"https://www.facebook.com/sharer/sharer.php?u=".concat(t,""e=").concat(n);case"mail":return"mailto:?body=".concat(n," ").concat(t);case"linkedin":return"https://www.linkedin.com/sharing/share-offsite/?url=".concat(t);default:return r}};var S=n(54237),k=n(17580),O=n(37876),T=n(31777),E=n(83129);let C=(0,T.Ng)(null,function(e){return(0,E.zH)({fetchSite:a.Cc,launchSite:a.$p},e)})(function(e){var t,n=e.fetchSite,r=e.launchSite,a=e.showBanner,l=(0,S.useTranslation)(["common","site-settings","errors"]).t,T=(0,k.Sf)(),E=(0,o.useState)(!1),C=E[0],D=E[1],P=(0,o.useState)(!1),W=P[0],_=P[1],M=(0,o.useId)(),I=(0,o.useId)(),L=window.location.origin,U=function(e){var t=l("site-settings:siteSettings.socialShareLink"),n=w(e,window.location.origin,t);window.open(n)},R=function(){var e=w("mail",window.location.origin,l("site-settings:siteSettings.mailLinkText"));window.open(e)},H=(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,r();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,n();case 8:D(!1),_(!0);case 10:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});return(0,O.jsxs)(O.Fragment,{children:[(void 0===a||a)&&(0,O.jsxs)(x.A,{severity:"info",sx:{mx:3,mt:2,mb:0,alignItems:"center"},action:(0,O.jsx)(m.A,{variant:"contained","data-testid":"confirm-modal-button",onClick:function(){return D(!0)},children:l("site-settings:siteSettings.launchYourSite")}),children:[(0,O.jsx)(s.A,{variant:"body1",sx:{fontWeight:500},children:l("site-settings:siteSettings.launchSite.title")}),(0,O.jsx)(s.A,{variant:"body2",color:"text.secondary",children:l("site-settings:siteSettings.launchSite.descriptionTwo")})]}),(0,O.jsxs)(b.A,{open:C,onClose:function(){return D(!1)},maxWidth:"sm",fullWidth:!0,role:"alertdialog","aria-labelledby":M,children:[(0,O.jsx)(y.A,{id:M,children:l("site-settings:siteSettings.launchSite")}),(0,O.jsxs)(v.A,{children:[(0,O.jsx)(s.A,{variant:"body2",sx:{mb:2},children:l("site-settings:siteSettings.launchSiteDescription")}),(0,O.jsx)(s.A,{variant:"body2",children:l("site-settings:siteSettings.launchSitePrompt")})]}),(0,O.jsxs)(j.A,{children:[(0,O.jsx)(m.A,{onClick:function(){return D(!1)},children:l("site-settings:siteSettings.no")}),(0,O.jsx)(m.A,{variant:"contained","data-testid":"launch-button",onClick:function(){H()},children:l("site-settings:siteSettings.yes")})]})]}),(0,O.jsxs)(b.A,{open:W,onClose:function(){return _(!1)},maxWidth:!1,fullWidth:!0,"aria-labelledby":I,slotProps:{paper:{sx:{maxWidth:410,width:"100%",p:3.5}}},children:[(0,O.jsxs)(y.A,{id:I,sx:{display:"flex",alignItems:"center",gap:1,p:0},children:[(0,O.jsx)(p.A,{color:"info",fontSize:"small","aria-hidden":!0}),l("site-settings:siteSettings.congratulations")]}),(0,O.jsxs)(v.A,{sx:{p:3.5},children:[(0,O.jsx)(s.A,{variant:"body2",component:"h3",fontWeight:500,sx:{mt:2,mb:1},children:l("site-settings:siteSettings.launchSite.paraOne")}),(0,O.jsx)(i.A,{sx:{bgcolor:"grey.50",px:1,py:1,minHeight:40,display:"flex",alignItems:"center",borderRadius:1},children:(0,O.jsx)(s.A,{variant:"body2",children:L})}),(0,O.jsx)(m.A,{variant:"outlined","data-testid":"visit-site",onClick:function(){return window.open(L)},sx:{mt:1,minWidth:136},children:l("site-settings:siteSettings.visitSite")}),(0,O.jsx)(s.A,{variant:"body2",component:"h3",fontWeight:500,sx:{mt:3,mb:1},children:l("site-settings:siteSettings.launchSite.paraTwo")}),(0,O.jsx)(m.A,{"data-testid":"create-project",variant:"outlined",onClick:function(){return window.open("/admin/projects")},children:l("site-settings:siteSettings.createAProject")}),(0,O.jsx)(s.A,{variant:"body2",component:"h3",fontWeight:500,sx:{mt:3,mb:1},children:l("site-settings:siteSettings.launchSite.paraThree")}),(0,O.jsxs)(i.A,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:[(0,O.jsx)(A.A,{"data-testid":"twitter","aria-label":"Twitter",onClick:function(){return U("twitter")},sx:{width:40,height:40,color:"#1da1f2",bgcolor:"rgba(29, 161, 242, 0.12)"},children:(0,O.jsx)(f.A,{})}),(0,O.jsx)(A.A,{"data-testid":"facebook","aria-label":"Facebook",onClick:function(){return U("facebook")}
1,sx:{width:40,height:40,color:"#4267b2",bgcolor:"rgba(66, 103, 178, 0.12)"},children:(0,O.jsx)(d.A,{})}),(0,O.jsx)(A.A,{"data-testid":"linkedin","aria-label":"LinkedIn",onClick:function(){return U("linkedin")},sx:{width:40,height:40,color:"#0e76a8",bgcolor:"rgba(14, 118, 168, 0.12)"},children:(0,O.jsx)(g.A,{})}),(0,O.jsx)(A.A,{"data-testid":"mail","aria-label":"Email",onClick:function(){return R()},sx:{width:40,height:40,color:"text.secondary",bgcolor:"rgba(89, 89, 89, 0.12)"},children:(0,O.jsx)(h.A,{})})]})]}),(0,O.jsx)(j.A,{sx:{pr:1.5},children:(0,O.jsx)(m.A,{variant:"outlined",onClick:function(){return _(!1)},children:l("site-settings:siteSettings.close")})})]})]})});function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach(function(t){(0,r.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let W=function(e){var t=e.title,n=e.actions,r=e.filters,a=e.navigation,c=e.bulkActions,l=e.content,u=e.isSiteSettingsPage,d=void 0!==u&&u,p=e.isSiteLaunched,g=e.stretchContentHeight,h=void 0!==g&&g,f=e.contentCardMaxWidth,x=e.contentCardAlign,m=e.contentSx,b=d&&void 0!==p&&p,j=o.Children.toArray(n).some(Boolean);return(0,O.jsxs)(i.A,{sx:P({height:"100%"},h&&{flex:1,minHeight:0,display:"flex",flexDirection:"column"}),children:[(0,O.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,O.jsx)(s.A,{component:"h1",variant:"h5",color:"text.primary",fontWeight:500,minWidth:0,py:.5,children:t}),j&&(0,O.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:n})]}),r&&(0,O.jsx)(i.A,{sx:{px:{xs:2,sm:3},bgcolor:"background.paper"},children:r}),a&&(0,O.jsx)(i.A,{sx:{bgcolor:"background.paper"},children:a}),d&&(0,O.jsx)(C,{showBanner:b}),c?(0,O.jsx)(i.A,{flexShrink:0,children:c}):null,(0,O.jsx)(i.A,{sx:P(P(P(P({bgcolor:"background.paper",p:{xs:1.5,sm:"18px 24px"},position:"relative",boxSizing:"border-box"},null!=f&&f>0?P({maxWidth:f,width:"100%"},"left"===(void 0===x?"center":x)?h?{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:h?0:{xs:1.5,sm:3},marginBottom:h?0:{xs:1.5,sm:3},marginLeft:"auto",marginRight:"auto"}):{m:{xs:1.5,sm:3}}),h?{flex:1,minHeight:0,display:"flex",flexDirection:"column"}:{minHeight:{xs:"calc(100dvh - 140px)",sm:"calc(100vh - 140px)"}}),b?{mt:2}:{}),m),children:l})]})}},49012:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(42969),i=n(68523);n(14232);var s=n(37876);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}let a=function(e){return function(t){return t.isAuthorized?(0,s.jsx)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,r.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t)):(0,s.jsx)(i.default,{statusCode:404})}}},65588:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r,i=n(63857),s=n(67251),o=n(23745),a=n(60180),c=n.n(a),l=n(93287),u=n(40714),d=n(7008),p=(0,o.default)(function e(){(0,s.default)(this,e)},null,[{key:"perform",value:(r=(0,i.A)(c().mark(function e(t){var n,r,i,s;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw Error("Missing required argument: file");case 2:return(n=new FormData).append("data[attributes][file]",(0,d.Hu)(t)?(0,d.Oo)(t):t),r={},u.A||(r["X-API-Token"]="Bearer ".concat(l.A.apiToken)),e.next=8,fetch("/api/v2/file_uploads",{method:"POST",body:n,headers:r});case 8:if(!(i=e.sent).ok){e.next=17;break}return e.next=12,i.json();case 12:return s=e.sent.data.attributes.url,e.abrupt("return",s);case 16:return e.abrupt("return",location.origin+s);case 17:throw i;case 18:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)})}])}
1,68523:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(27925),i=n(14232),s=n(59234),o=n(3513),a=n(33713),c=n(46783),l=n(48230),u=n.n(l);let d=n.p+"static/media/error.5ab482faf5722534.png";var p=n(33191),g=n.n(p),h=n(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,n=i.useState("en"),l=(0,r.A)(n,2),p=l[0],f=l[1];(0,i.useEffect)(function(){f(g().get("current_language")||"en")},[]);var b=x[p]||x.en,j="403"===t||403===t?{errCode:b.accessDeniedErrorMessage,title:b.accessDeniedErrorMessageTitle,subTitle:b.accessDeniedErrorMessageSubTitle}:{errCode:b.missingUrlErrorMessage,title:b.missingUrlErrorMessageTitle,subTitle:b.missingUrlErrorMessageSubTitle};return(0,h.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,h.jsx)(s.A,{component:"img",src:d,alt:j.title,sx:{height:300,width:"auto",maxWidth:"100%"}}),(0,h.jsxs)(s.A,{mt:3,maxWidth:448,textAlign:"center",px:2,children:[(0,h.jsx)(c.A,{variant:"h4",component:"p",fontWeight:600,color:"text.primary",sx:{lineHeight:2},children:j.errCode}),(0,h.jsx)(c.A,{variant:"body1",fontWeight:600,sx:{mt:.5},children:j.title}),(0,h.jsx)(c.A,{variant:"body2",color:"text.secondary",sx:{mt:1},children:j.subTitle}),(0,h.jsxs)(s.A,{mt:5,children:[(0,h.jsx)(c.A,{variant:"body2",color:"text.secondary",children:b.helpfulLinksTitle}),(0,h.jsx)(a.A,{direction:"row",justifyContent:"space-between",mx:"auto",mt:2,sx:{width:256},children:m.map(function(e){var t=e.href,n=e.labelKey;return(0,h.jsx)(o.A,{component:u(),href:t,underline:"hover",variant:"body2",children:b[n]},t)})})]})]})]})}},71324:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/site/navigations",function(){return n(84179)}])},84179:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>w,default:()=>S});var r=n(23745),i=n(67251),s=n(29898),o=n(52672),a=n(76966),c=n(42969),l=n(14232),u=n(54237),d=n(77328),p=n.n(d),g=n(37900),h=n(79837),f=n(60964),x=n(37876);function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}var b=function(e){function t(){(0,i.default)(this,t);for(var e,n,r,a=arguments.length,u=Array(a),d=0;d<a;d++)u[d]=arguments[d];return n=t,r=[].concat(u),n=(0,o.default)(n),e=(0,s.default)(this,m()?Reflect.construct(n,r||[],(0,o.default)(this).constructor):n.apply(this,r)),(0,c.default)(e,"render",function(){return(0,x.jsxs)(l.Fragment,{children:[(0,x.jsx)(p(),{children:(0,x.jsxs)("title",{children:[e.props.t("common:common.admin")," |"," ",e.props.t("navigation:navigation.heading")]})}),(0,x.jsx)(g.A,{title:e.props.t("navigation:navigation.heading"),navigation:(0,x.jsx)(h.A,{}),content:(0,x.jsx)(f.A,{})})]})}),e}return(0,a.default)(t,e),(0,r.default)(t)}(l.Component);let j=(0,u.withTranslation)(["common","navigation"])(b);var v=n(20640),y=n(49012),A=(0,v.A)((0,y.A)(j)),w=!0;let S=A},84227:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(54237);let i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(function(e){return r.i18n.t("errors:errors.codes.".concat(e.code),e.meta||{})}).join(", ")}}},e=>{e.O(0,[62501,6853,65595,8145,40990,28672,23638,61284,26122,9161,6305,20640,82150,30313,49496,90636,46593,38792],()=>e(e.s=71324)),_N_E=e.O()}]); 2//# sourceMappingURL=navigations-26e610673dd033fb.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.