"use strict";(self.webpackChunkuniweb_builder=self.webpackChunkuniweb_builder||[]).push([[56501,47942],{42395:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(11129),o=n(50838);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>O});var r=n(11129),o=n.n(r),a=n(4291),c=n(42395),l=n(46011);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t=e}));a&&a>o.current&&(n.current.add(a),o.current=a,c.trackEvent("scroll_depth",{page_id:e.getPageId(),request_url:e.options.pathname,data:{scroll_depth:a}}))}}),[e]),u=(0,r.useCallback)((function(){a.current&&clearTimeout(a.current),a.current=setTimeout((function(){var t=window.pageYOffset||document.documentElement.scrollTop,n=window.innerHeight,r=document.documentElement.scrollHeight-n,o=r>0?Math.min(100,t/r*100):0;e.scrollY=t,i(o)}),100)}),[e,i]);(0,r.useEffect)((function(){var n,r;return t?(n=e.scrollY||0,r=!1):(n=0,r=!0),window.addEventListener("scroll",u,{passive:!0}),setTimeout((function(){window.scrollTo(0,n),r&&e.resetBlockStates()})),function(){window.removeEventListener("scroll",u),a.current&&clearTimeout(a.current)}}),[e,t,u])}(n,a),(0,r.useEffect)((function(){t.submitEvent("",{hitType:"pageview",page:"/".concat(l)})}),[l]),n.isBuilt()||n.buildPage();var i=t.getRootClassName(),s=n.getPageMeta(),f=s.title,m=s.description,d=t.localize(t.name);return f=d?"".concat(d," | ").concat(f):f,o().createElement(o().Fragment,null,f||m?o().createElement(c.Z,{title:f,description:m}):null,o().createElement("div",{className:"flex-1".concat(i?" ".concat(i):"")},o().createElement(u,e)))},f=n.p+"4d216e6cf038393457959ef7909505bd.webp";var m=n(8053),d=n(19619),p=n.n(d),h=n(52640);function b(){return r.createElement("div",{className:"screen",style:{backgroundImage:"url('".concat(f,"')")}},r.createElement("span",{className:"hero-text"},(0,m.NC)({en:"Under"}),r.createElement("br",null),(0,m.NC)({en:"Construction"})),r.createElement("span",{className:"subtext"},(0,m.NC)({en:"Site nearly ready",fr:"Site bientôt prêt"})),r.createElement("div",{className:"progress-bar-container"},r.createElement("div",{className:"progress-bar"},r.createElement("div",{className:"progress-bar-fill"})),r.createElement("div",{className:"progress-bar-text"},r.createElement("span",null,"0%"),r.createElement("span",null,"100%"))))}p()(h.Z,{insert:"head",singleton:!1}),h.Z.locals;var v=n(1610);function g(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&c.length>0?i+=":ital,wght@0,".concat(a.join(";0,"),";1,").concat(c.join(";1,")):a.length>0?i+=":wght@".concat(a.join(";")):c.length>0&&(i+=":ital,wght@1,".concat(c.join(";1,"))),n.push(i)}else if("custom"===t){var u=e.files;u.length&&(r+=u.map((function(e){return function(e,t){var n,r,o=e.font_weight,a=e.font_style,c=(n=e.font_file.split("/"),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],c=!0,l=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{c||null==n.return||n.return()}finally{if(l)throw o}}return a}}(n,r)||g(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=c[0],i=c[1].split(".").pop().toLowerCase(),u="https://assets.uniweb.app/dist/".concat(l,"/base.").concat(i),s="src:";switch(i){case"woff":s+="url('".concat(u,"') format('woff');");break;case"woff2":s+="url('".concat(u,"') format('woff2');");break;case"ttf":s+="url('".concat(u,"') format('truetype');");break;case"otf":s+="url('".concat(u,"') format('opentype');")}return"@font-face {\n font-family: ".concat(t,";\n ").concat(s,"\n font-weight: ").concat(parseInt(o),";\n font-style: ").concat(a,";\n font-display: fallback;\n }\n ")}(e,o)})).join("\n"))}})),t.google="https://fonts.googleapis.com/css2?".concat(n.join("&"),"&display=swap"),t.custom=r}return t};const k=function(e){var t,n=e.fontsData,o=E(n),a=o.google,c=o.custom,l=[];return a&&(l=[r.createElement(w,{key:"google_fonts",src:a})]),c&&(l=[].concat(function(e){if(Array.isArray(e))return y(e)}(t=l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[r.createElement(v.Style,{key:"fonts",hasSourceMap:!1,name:"fonts"},"".concat(c))])),l};function x(e){var t=e.themeData,n=(e.themes,(null==t?void 0:t.importedFonts)||[]);return r.createElement(r.Fragment,null,n&&n.length?r.createElement(k,{fontsData:n}):null,r.createElement(v.Style,{hasSourceMap:!1,name:"color-themes"},function(e){var t,n=(null==e?void 0:e.fonts)||(null==e||null===(t=e.fonts)||void 0===t?void 0:t[0])||{},r=(null==n?void 0:n.heading)||(null==n?void 0:n.header_font)||"",o=(null==n?void 0:n.body)||(null==n?void 0:n.body_font)||"",a="";o&&(a+="\n * {font-family:".concat(o,"}")),r&&(a+="\n h1,h2,h3 {font-family:".concat(r,"}"));var c=null==e?void 0:e.vars,l=(null==e?void 0:e.elements)||{},i=l&&"undefined"!==l?"string"==typeof l?JSON.parse(l):l:{},u=["primary","secondary","accent","neutral"],s=["50","100","200","300","400","500","600","700","800","900","950"],f=["bg-color","text-color","heading-color","link-color","link-active-color","link-hover-color","icon-color","btn-color","btn-text-color","btn-hover-color","btn-hover-text-color","btn-alt-color","btn-alt-text-color","btn-alt-hover-color","btn-alt-hover-text-color","callout","muted","highlight"],m=["light","medium","dark"].map((function(e){var t=e,n=(null==c?void 0:c[t])||{},r=(null==c?void 0:c.light)||{},o=[];u.forEach((function(e){s.forEach((function(t){var a="--".concat(e,"-").concat(t),c=n[a]||r[a]||"";o.push("".concat(a,": ").concat(c,";"))}))}));var a=i[t]||{},l=i.light||{},m=[];return f.forEach((function(e){var t=a[e]||l[e]||"";t&&m.push("--".concat(e,": ").concat(t,";"))})),"\n .context__".concat(e," {\n ").concat(o.join("\n"),"\n\n\n ").concat(m.join("\n"),"\n }\n ")})).join("\n"),d=function(e,t){var n='[class*="context__"]',r=e?"".concat(n," ").concat(e):n;t&&(r="".concat(r,":").concat(t));var o="";return e&&(o=(o=e.split(".")[0]).split(":")[0]),"".concat(o,":where(").concat(r,")")},p=function(e){var t=[];return e.forEach((function(e){var n="var(--".concat(e,")");switch(e){case"bg-color":t.push("".concat(d()," {background: ").concat(n,";}"));break;case"heading-color":n="var(--".concat(e,", --text-color)"),t.push("".concat(d(":where(h1, h2, h3)")," {color: ").concat(n,";}"));break;case"text-color":t.push("".concat(d()," {color: ").concat(n,";}"));break;case"link-color":n="var(--".concat(e,", --text-color)"),t.push("".concat(d("a","")," {color: ").concat(n,";}"));break;case"link-active-color":n="var(--".concat(e,", --text-color)"),t.push("".concat(d("a.active")," {color: ").concat(n,";}"));break;case"link-hover-color":n="var(--".concat(e,", --text-color)"),t.push("".concat(d("a","hover")," {color: ").concat(n,";}"));break;case"icon-color":n="var(--".concat(e,", --text-color)"),t.push("".concat(d("svg")," {color: ").concat(n,";}"));break;case"btn-color":t.push("".concat(d("button:not(.btn-secondary)")," {background: ").concat(n,";}"));break;case"btn-text-color":n="var(--".concat(e,", --text-color)"),t.push("".concat(d("button:not(.btn-secondary)")," {color: ").concat(n,";}"));break;case"btn-hover-color":t.push("".concat(d("button:not(.btn-secondary)","hover")," {background: ").concat(n,";}"));break;case"btn-hover-text-color":n="var(--".concat(e,", --text-color)"),t.push("".concat(d("button:not(.btn-secondary)","hover")," {color: ").concat(n,";}"));break;case"btn-alt-color":t.push("".concat(d("button.btn-secondary")," {background: ").concat(n,";}"));break;case"btn-alt-text-color":n="var(--".concat(e,", --text-color)"),t.push("".concat(d("button.btn-secondary")," {color: ").concat(n,";}"));break;case"btn-alt-hover-color":t.push("".concat(d("button.btn-secondary","hover")," {background: ").concat(n,";}"));break;case"btn-alt-hover-text-color":n="var(--".concat(e,", --text-color)"),t.push("".concat(d("button.btn-secondary","hover")," {color: ").concat(n,";}"))}})),t}(f),h=p.join("\n");return"".concat(m,"\n\n ").concat(".context__light {--light-mix: white;} .context__medium {--light-mix: rgb(117,116,116);} .context__dark {--light-mix: black;}","\n\n ").concat(h,"\n\n ").concat(a,"\n\n")}(t)))}const S=function(e){var t,n,c=(0,a.useParams)(),l=null==e?void 0:e.siteId,i=c.contentId;i=l||i;var u=(null==c?void 0:c["*"])||"",f=e.lang||uniweb.language(),m=uniweb.activeWebsite,d=(0,r.useCallback)((function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=[];try{r=JSON.parse(n)}catch(e){}var o=null===(e=r)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.value;return f||o||uniweb.language()}),[f]),p=m.getData(),h=(0,a.useNavigate)(),v=(0,a.useLocation)(),g=d(p.language),y=m.getDataSource(),w=y.data,E=y.meta,k=y.type,S=void 0===k?"":k,j=y.id;w&&uniweb.newProfile(S,j,{data:w,head:E,lang:g});var P=uniweb.Profile.useCompleteProfile(r.useState,r.useEffect,S,j,i,{lang:g});if(S&&j&&!P)return null;m.setMainProfile(P),m.getLanguage()!==g&&m.setLang(g);var R=null==p||null===(t=p.themes)||void 0===t?void 0:t.variant;if(R&&m.setRootClassName(R),!p)return uniweb.showError("Insufficient permissions. Your session might have expired. Please log in and then try again.",(function(){h("/account/signin")}));if(Array.isArray(p)&&!p.length)return uniweb.showError("Couldn't find the published website. Please contact the support.");var A=m.createPage(u),O=(null===(n=v.state)||void 0===n?void 0:n.timeStep)||0;O>m.timeStep&&(m.timeStep=O);var _=Oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n{n.d(t,{Z:()=>a});var r=n(9927),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".screen {\n width: 100vw;\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n flex-direction: column;\n text-transform: uppercase;\n background-size: cover;\n}\n\n.hero-text {\n color: white;\n font-size: 100px;\n font-weight: bold;\n line-height: 1.1;\n text-align: center;\n margin-bottom: 30px;\n}\n\n.subtext {\n color: white;\n font-size: 18px;\n margin-bottom: 64px; /* 16 rem since Tailwind's base size is 4px */\n}\n\n.progress-bar-container {\n display: flex;\n flex-direction: column;\n}\n\n.progress-bar {\n width: 362px;\n background-color: #e5e7eb; /* gray-200 */\n border-radius: 9999px;\n height: 10px; /* 2.5 rem */\n}\n\n.progress-bar-fill {\n background-color: #3b82f6; /* blue-400 */\n height: 10px;\n border-radius: 9999px;\n width: 80%; /* 4/5 */\n}\n\n.progress-bar-text {\n width: 362px;\n display: flex;\n justify-content: space-between;\n color: white;\n margin-top: 12px;\n}\n\n.dark .progress-bar {\n background-color: #374151; /* gray-700 */\n}\n",""]);const a=o},50838:(e,t,n)=>{var r=n(62050);t.s=r.createRoot,r.hydrateRoot}}]);