1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,11637,e=>{"use strict";var r,a=e.i(47167),t=e.i(43476),i=e.i(71645),n=function(){return(n=Object.assign||function(e){for(var r,a=1,t=arguments.length;a<t;a++)for(var i in r=arguments[a])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e}).apply(this,arguments)},s=function(e){var r;e?function(e){if(e)for(;e.lastChild;)e.lastChild.remove()}("string"==typeof e?document.getElementById(e):e):(r=document.querySelector(".grecaptcha-badge"))&&r.parentNode&&document.body.removeChild(r.parentNode)},o=function(e,r){s(r),window.___grecaptcha_cfg=void 0;var a,t=document.querySelector("#"+e);t&&t.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))&&a.remove()},l=function(e){var r=e.render,a=e.onLoadCallbackName,t=e.language,i=e.onLoad,n=e.useRecaptchaNet,s=e.useEnterprise,o=e.scriptProps,l=void 0===o?{}:o,c=l.nonce,d=void 0===c?"":c,u=l.defer,p=l.async,m=l.id,f=l.appendTo,h=(void 0===m?"":m)||"google-recaptcha-v3";if(document.querySelector("#"+h))i();else{var y,g="https://www."+((y={useEnterprise:s,useRecaptchaNet:n}).useRecaptchaNet?"recaptcha.net":"google.com")+"/recaptcha/"+(y.useEnterprise?"enterprise.js":"api.js"),b=document.createElement("script");b.id=h,b.src=g+"?render="+r+("explicit"===r?"&onload="+a:"")+(t?"&hl="+t:""),d&&(b.nonce=d),b.defer=!!(void 0!==u&&u),b.async=!!(void 0!==p&&p),b.onload=i,("body"===f?document.body:document.getElementsByTagName("head")[0]).appendChild(b)}},c=function(e){void 0===a.default||a.default.env,console.warn(e)};(r||(r={})).SCRIPT_NOT_AVAILABLE="Recaptcha script is not available";var d=(0,i.createContext)({executeRecaptcha:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")}});function u(e){var a=e.reCaptchaKey,t=e.useEnterprise,s=void 0!==t&&t,u=e.useRecaptchaNet,p=void 0!==u&&u,m=e.scriptProps,f=e.language,h=e.container,y=e.children,g=(0,i.useState)(null),b=g[0],x=g[1],v=(0,i.useRef)(a),w=JSON.stringify(m),j=JSON.stringify(null==h?void 0:h.parameters);(0,i.useEffect)(function(){if(a){var e=(null==m?void 0:m.id)||"google-recaptcha-v3",t=(null==m?void 0:m.onLoadCallbackName)||"onRecaptchaLoadCallback";return window[t]=function(){var e=s?window.grecaptcha.enterprise:window.grecaptcha,r=n({badge:"inline",size:"invisible",sitekey:a},(null==h?void 0:h.parameters)||{});v.current=e.render(null==h?void 0:h.element,r)},l({render:(null==h?void 0:h.element)?"explicit":a,onLoadCallbackName:t,useEnterprise:s,useRecaptchaNet:p,scriptProps:m,language:f,onLoad:function(){if(window&&window.grecaptcha){var e=s?window.grecaptcha.enterprise:window.grecaptcha;e.ready(function(){x(e)})}else c("<GoogleRecaptchaProvider /> "+r.SCRIPT_NOT_AVAILABLE)},onError:function(){c("Error loading google recaptcha script")}}),function(){o(e,null==h?void 0:h.element)}}c("<GoogleReCaptchaProvider /> recaptcha key not provided")},[s,p,w,j,f,a,null==h?void 0:h.element]);var C=(0,i.useCallback)(function(e){if(!b||!b.execute)throw Error("<GoogleReCaptchaProvider /> Google Recaptcha has not been loaded");return b.execute(v.current,{action:e})},[b,v]),N=(0,i.useMemo)(function(){return{executeRecaptcha:b?C:void 0,container:null==h?void 0:h.element}},[C,b,null==h?void 0:h.element]);return i.default.createElement(d.Provider,{value:N},y)}d.Consumer;var p=function(){return(0,i.useContext)(d)};function m(e){var r=this,a=e.action,t=e.onVerify,n=e.refreshReCaptcha,s=p();(0,i.useEffect)(function(){var e,i,n,o=s.executeRecaptcha;o&&(e=void 0,i=void 0,n=function(){var e;return function(e,r){var a,t,i,n,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(n){return function(o){var l=[n,o];if(a)throw TypeError("Generator is already executing.");for(;s;)try{if(a=1,t&&(i=2&l[0]?t.return:l[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,l[1])
1).done)return i;switch(t=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,t=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){s=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){s.label=l[1];break}if(6===l[0]&&s.label<i[1]){s.label=i[1],i=l;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(l);break}i[2]&&s.ops.pop(),s.trys.pop();continue}l=r.call(e,s)}catch(e){l=[6,e],t=0}finally{a=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(r){switch(r.label){case 0:return[4,o(a)];case 1:return e=r.sent(),t?t(e):c("Please define an onVerify function"),[2]}})},new(i||(i=Promise))(function(a,t){function s(e){try{l(n.next(e))}catch(e){t(e)}}function o(e){try{l(n.throw(e))}catch(e){t(e)}}function l(e){var r;e.done?a(e.value):((r=e.value)instanceof i?r:new i(function(e){e(r)})).then(s,o)}l((n=n.apply(r,e||[])).next())}))},[a,t,n,s]);var o=s.container;return"string"==typeof o?i.default.createElement("div",{id:o}):null}function f(e,r){return e(r={exports:{}},r.exports),r.exports}var h="function"==typeof Symbol&&Symbol.for,y=h?Symbol.for("react.element"):60103,g=h?Symbol.for("react.portal"):60106,b=h?Symbol.for("react.fragment"):60107,x=h?Symbol.for("react.strict_mode"):60108,v=h?Symbol.for("react.profiler"):60114,
1w=h?Symbol.for("react.provider"):60109,j=h?Symbol.for("react.context"):60110,C=h?Symbol.for("react.async_mode"):60111,N=h?Symbol.for("react.concurrent_mode"):60111,k=h?Symbol.for("react.forward_ref"):60112,F=h?Symbol.for("react.suspense"):60113,A=h?Symbol.for("react.suspense_list"):60120,S=h?Symbol.for("react.memo"):60115,E=h?Symbol.for("react.lazy"):60116,P=h?Symbol.for("react.block"):60121,$=h?Symbol.for("react.fundamental"):60117,D=h?Symbol.for("react.responder"):60118,M=h?Symbol.for("react.scope"):60119;function T(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case y:switch(e=e.type){case C:case N:case b:case v:case x:case F:return e;default:switch(e=e&&e.$$typeof){case j:case k:case E:case S:case w:return e;default:return r}}case g:return r}}}function R(e){return T(e)===N}var B={AsyncMode:C,ConcurrentMode:N,ContextConsumer:j,ContextProvider:w,Element:y,ForwardRef:k,Fragment:b,Lazy:E,Memo:S,Portal:g,Profiler:v,StrictMode:x,Suspense:F,isAsyncMode:function(e){return R(e)||T(e)===C},isConcurrentMode:R,isContextConsumer:function(e){return T(e)===j},isContextProvider:function(e){return T(e)===w},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===y},isForwardRef:function(e){return T(e)===k},isFragment:function(e){return T(e)===b},isLazy:function(e){return T(e)===E},isMemo:function(e){return T(e)===S},isPortal:function(e){return T(e)===g},isProfiler:function(e){return T(e)===v},isStrictMode:function(e){return T(e)===x},isSuspense:function(e){return T(e)===F},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===b||e===N||e===v||e===x||e===F||e===A||"object"==typeof e&&null!==e&&(e.$$typeof===E||e.$$typeof===S||e.$$typeof===w||e.$$typeof===j||e.$$typeof===k||e.$$typeof===$||e.$$typeof===D||e.$$typeof===M||e.$$typeof===P)},typeOf:T},q=f(function(e,r){}),O=(q.AsyncMode,q.ConcurrentMode,q.ContextConsumer,q.ContextProvider,q.Element,q.ForwardRef,q.Fragment,q.Lazy,q.Memo,q.Portal,q.Profiler,q.StrictMode,q.Suspense,q.isAsyncMode,q.isConcurrentMode,q.isContextConsumer,q.isContextProvider,q.isElement,q.isForwardRef,q.isFragment,q.isLazy,q.isMemo,q.isPortal,q.isProfiler,q.isStrictMode,q.isSuspense,q.isValidElementType,q.typeOf,f(function(e){e.exports=B})),V={};V[O.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[O.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var L=e.i(53145),_=e.i(44705);let U=async(e,r,a,t,i)=>{let n=e.pages?.[r]?.fieldsets?.flatMap(e=>e.columns?.flatMap(e=>e.fields||[])||[])||[],s=n.map(e=>e.alias),o=await a(s);return!o&&e.showValidationSummary&&Object.entries(s.reduce((e,r)=>{let a=t(r),i=n.find(e=>e.alias===r);return!a&&i?.required&&(e[r]={message:"This field is required"}),e},{})).forEach(([e,r])=>{i(e,{type:"required",message:r.message})}),o},I=e=>new Promise((r,a)=>{let t=new FileReader;t.onload=()=>{let e=t.result;"string"==typeof e?r(e):a(Error("Expected a string from readAsDataURL, got non-string result."))},t.onerror=()=>a(t.error??Error("File read error")),t.readAsDataURL(e)}),z=async e=>{let r={};for(let[a,t]of Object.entries(e))if(null!=t){if(t instanceof File){let e=await I(t);r[a]=[{fileName:t.name,fileContents:e}];continue}if(Array.isArray(t)){let e=await Promise.all(t.map(async e=>{if(e instanceof File){let r=await I(e);return{fileName:e.name,fileContents:r}}return String(e)}));r[a]=e;continue}r[a]=String(t)}return r},H=async e=>{try{let r=await fetch(`${e}/umbraco/akqa/api/v1/AntiForgery/token`,{credentials:"include"});if(r.ok){let e=await r.json(),a=e.headerName,t=e.token;if(a&&t)return{headerName:a,token:t}}}catch{}return null},G=async(e,r,a)=>{if(!a)throw Error("Antiforgery token missing");let t=`https://api.psg.fr/umbraco/forms/delivery/api/v1/entries/${r}`,i=JSON.stringify({values:await z(e),contentId:null,culture:null,additionalData:null}),n={"Content-Type":"application/json",Accept:"application/json","Api-Key":"b2dc39d7-05d3-49f8-bf97-da0d73ae65a1","psg-fe":"true"};a&&(n[a.headerName]=a.token);let s=await fetch(t,{method:"POST",headers:n,credentials:"include",body:i}),o=null;try{o=await s.json()}catch{}if(422===s.status){let e=o;return{error:e?.title??"Form validation failed",fieldErrors:e?.errors??{}}}if(!s.ok&&202!==s.status)return{error:o?.error??"Form submission failed",fieldErrors:o?.errors};let l=o??{};return{success:!0,messageOnSubmit:l.messageOnSubmit,gotoPageOnSubmitRoute:l.gotoPageOnSubmitRoute}};var K=e.i(67815),J=e.i(51360);let W="1F8D45F8-76E6-4550-A0F5-9637B8454619",Z="E3FBF6C4-F46C-495E-AFF8-4B3C227B4A98";var Q=e.i(84584),X=e.i(88915);let Y=(0,i.forwardRef)(({className:e,error:r,variant:a,required:i,...n},s)=>(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{type:"date",className:(0,J.cn)("typography-body-5 border-background-secondary bg-background-secondary px-lg py-xs h-10 w-full rounded-none border pr-10","focus:border-border-secondary focus:ring-border-secondary focus:ring-1 focus:outline-none","disabled:cursor-not-allowed disabled:opacity-50","placeholder:text-content-tertiary","[&::-webkit-calendar-picker-indicator]:absolute [&::-webkit-calendar-picker-indicator]:inset-0 [&::-webkit-calendar-picker-indicator]:h-full [&::-webkit-calendar-picker-indicator]:w-full [&::-webkit-calendar-picker-indicator]:cursor-pointer [&::-webkit-calendar-picker-indicator]:opacity-0",(r||"error"===a)&&"border-background-negative",e),ref:s,"aria-invalid":r||"error"===a?"true":"false","aria-required":i?"true":"false",...n}),(0,t.jsx)("div",{className:"text-content-secondary pointer-events-none absolute top-1/2 right-4 z-10 flex h-6 w-6 -translate-y-1/2 items-center justify-center",children:(0,t.jsx)(X.Icon,{name:"calendar",className:"fill-content-primary h-full w-full","aria-hidden":"true"})})]}));Y.displayName="DateInput";let ee=(0,i.forwardRef)(({className:e,error:r,variant:a,required:i,...n},s)=>(0,t.jsx)("textarea",{className:(0,J.cn)("text-content-secondary typography-body-5 border-background-secondary bg-background-secondary p-lg min-h-[80px] w-full rounded-none border","focus:border-border-secondary focus:ring-border-secondary focus:ring-1 focus:outline-none","disabled:cursor-not-allowed disabled:opacity-50","placeholder:text-content-tertiary resize-vertical",(r||"error"===a)&&"border-background-negative",e),ref:s,"aria-invalid":r||"error"===a?"true":"false","aria-required":i?"true":"false",...n}));ee.displayName="Textarea";let er=(0,i.forwardRef)(({className:e,error:r,variant:a,options:i,placeholder:n,children:s,required:o,...l},c)=>(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{className:(0,J.cn)("typography-body-5 border-background-secondary bg-background-secondary px-lg py-xs h-12 w-full rounded-none border","focus:border-border-secondary focus:ring-border-secondary focus:ring-1 focus:outline-none","disabled:cursor-not-allowed disabled:opacity-50","appearance-none pr-10",(r||"error"===a)&&"border-background-negative",e),ref:c,"aria-invalid":r||"error"===a?"true":"false","aria-required":o?"true":"false",...l,children:[n&&(0,t.jsx)("option",{value:"",disabled:!0,children:n}),i?i.map(e=>(0,t.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value)):s]}),(0,t.jsx)("div",{className:"text-content-secondary pointer-events-none absolute top-1/2 right-4 z-10 flex h-6 w-6 -translate-y-1/2 items-center justify-center",children:(0,t.jsx)(X.Icon,{name:"chevron-down",className:"fill-content-primary h-full w-full","aria-hidden":"true"})})]}));er.displayName="Select";let ea=(0,i.forwardRef)(({className:e,error:r,variant:a,label:i,description:n,children:s,required:o,...l},c)=>{let d=(0,t.jsx)("input",{type:"checkbox",className:(0,J.cn)("peer sr-only","disabled:cursor-not-allowed disabled:opacity-50",e),ref:c,"aria-invalid":r||"error"===a?"true":"false","aria-required":o?"true":"false",...l}),u=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",fill:"none",className:"block h-10 w-10 peer-checked:hidden","aria-hidden":"true",children:(0,t.jsx)("path",{className:"stroke-border-secondary fill-background-primary",d:"M10.5 10.5
1h19v19h-19z"})}),(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",fill:"none",className:"hidden h-10 w-10 peer-checked:block","aria-hidden":"true",children:[(0,t.jsx)("path",{className:"stroke-border-secondary fill-background-primary",d:"M10.5 10.5h19v19h-19z"}),(0,t.jsx)("path",{className:"stroke-content-primary",d:"m16 20 3 3 6-6"})]})]});return i||s||n?(0,t.jsxs)("label",{className:"space-x-sm mb-0 flex cursor-pointer items-center",children:[(0,t.jsxs)("div",{className:"relative flex h-12 w-12 items-center justify-center p-1",children:[d,u]}),(0,t.jsxs)("div",{className:"flex-1",children:[(i||s)&&(0,t.jsx)("span",{className:"typography-body-5 block",children:i||s}),n&&(0,t.jsx)("span",{className:"typography-body-6 text-content-secondary block",children:n})]})]}):(0,t.jsxs)("label",{className:"relative inline-block cursor-pointer",children:[d,u]})});ea.displayName="Checkbox";let et=(0,i.forwardRef)(({className:e,error:r,variant:a,label:n,description:s,children:o,required:l,"aria-describedby":c,...d},u)=>{let p=(0,i.useId)(),m=`${p}-description`,f=`${p}-error`,h=r||"error"===a,y=[s?m:null,h?f:null,c].filter(Boolean).join(" "),g=(0,t.jsx)("input",{type:"radio",id:p,className:(0,J.cn)("peer sr-only","disabled:cursor-not-allowed disabled:opacity-50",e),ref:u,"aria-describedby":y||void 0,...d}),b=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",fill:"none",className:"block h-10 w-10 peer-checked:hidden","aria-hidden":"true",children:(0,t.jsx)("circle",{cx:"20",cy:"20",r:"9.5",className:(0,J.cn)("stroke-border-secondary fill-background-primary",h&&"stroke-background-negative")})}),(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",fill:"none",className:"hidden h-10 w-10 peer-checked:block","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"20",cy:"20",r:"9.5",className:(0,J.cn)("stroke-border-secondary fill-background-primary",h&&"stroke-background-negative")}),(0,t.jsx)("circle",{cx:"20",cy:"20",r:"5",className:"fill-dark-background-primary"})]})]});return n||o||s?(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("label",{htmlFor:p,className:"space-x-sm mb-0 flex cursor-pointer items-center",children:[(0,t.jsxs)("div",{className:"relative flex h-12 w-12 items-center justify-center p-1",children:[g,b]}),(0,t.jsx)("div",{className:"flex-1",children:(n||o)&&(0,t.jsx)("div",{className:"typography-body-5",children:n||o})})]}),s&&(0,t.jsx)("div",{id:m,className:"typography-body-6 text-content-secondary ml-12",children:s}),h&&(0,t.jsx)("div",{id:f,className:"sr-only",role:"alert","aria-live":"polite",children:"Radio button has an error"})]}):(0,t.jsxs)("label",{htmlFor:p,className:"relative inline-block cursor-pointer",children:[g,b]})});et.displayName="Radio";var ei=e.i(90132);let en=({children:e,label:r,error:a,helpText:n,required:s,className:o,labelProps:l})=>{let c=(0,i.useId)(),d=`input-${c}`,u=a?`error-${c}`:void 0,p=n?`help-${c}`:void 0,m=[u,p].filter(Boolean).join(" "),f=(0,i.isValidElement)(e)?(0,i.cloneElement)(e,{id:d,"aria-describedby":m||void 0,"aria-invalid":a?"true":"false","aria-required":s?"true":"false"}):e;return(0,t.jsxs)("div",{className:(0,J.cn)("grid grid-rows-[auto_1fr_auto] gap-2",o),children:[r&&(0,t.jsx)(ei.Label,{className:(0,J.cn)("typography-body-5",{"text-content-negative":a}),required:s,htmlFor:d,...l,children:r}),(0,t.jsx)("div",{className:"min-h-[40px]",children:f}),a&&(0,t.jsx)("p",{id:u,className:"typography-body-6 text-content-negative",role:"alert",children:a}),n&&!a&&(0,t.jsx)("div",{id:p,className:"typography-body-6",children:(0,t.jsx)("p",{children:n})})]})},es=({onFileSelect:e,accept:r="image/jpeg,image/png",displayFormats:a,multiple:n=!1,maxSize:s=5,className:o,children:l,disabled:c=!1,error:d=!1,"aria-describedby":u,"aria-label":p,id:m,dictionary:f})=>{let[h,y]=(0,i.useState)(!1),g=(0,i.useRef)(null),[b,x]=(0,i.useState)([]),v=a=>{if(!a||!s){x(a?Array.from(a):[]),e(a);return}let t=Array.from(a).filter(e=>{if(e.size>1024*s*1024)return console.warn(`File ${e.name} exceeds the ${s}MB limit and was filtered out.`),!1;if(r){let a=e.name.split(".").pop()?.toLowerCase();if(!r.split(",").map(e=>e.trim().toLowerCase()).some(r=>r.startsWith(".")?`.${a}`===r:e.type===r))return console.warn(`File ${e.name}
1 has an invalid extension and was filtered out.`),!1}return!0});t.length!==a.length&&console.warn("Some files were filtered out due to size or extension restrictions.");let i=new DataTransfer;t.forEach(e=>i.items.add(e)),x(t),e(i.files)},w=()=>{!c&&g.current&&g.current.click()},j=a||(r?r.split(",").map(e=>e.trim()).filter(e=>e.startsWith(".")).join(", "):"All file types"),C={onDragOver:e=>{e.preventDefault(),c||y(!0)},onDragLeave:e=>{e.preventDefault(),y(!1)},onDrop:e=>{e.preventDefault(),y(!1),c||v(e.dataTransfer.files)},onClick:w,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),w())},role:"button",tabIndex:c?-1:0,"aria-label":p||`Upload files. Accepted formats: ${j}. Maximum size: ${s}MB${n?". Multiple files allowed":""}`,"aria-describedby":u};return l?(0,t.jsxs)("div",{className:(0,J.cn)("relative",!c&&"cursor-pointer",c&&"cursor-not-allowed opacity-50",o),...C,children:[l,(0,t.jsx)("input",{ref:g,type:"file",accept:r,multiple:n,onChange:e=>v(e.target.files),className:"sr-only",disabled:c,id:m,"aria-invalid":d?"true":"false"})]}):(0,t.jsxs)("div",{className:(0,J.cn)("typography-body-5 border-border-secondary bg-background-secondary p-2xl rounded-sm border-2 border-dashed text-center transition-colors",h&&"border-background-brand-red bg-background-brand-red/5",!c&&"hover:border-border-primary hover:bg-background-primary/50 cursor-pointer",c&&"cursor-not-allowed opacity-50",d&&"border-background-negative",o),...C,children:[(0,t.jsx)("div",{className:"mb-lg flex justify-center",children:(0,t.jsx)(X.Icon,{name:"upload",className:"text-content-secondary h-6 w-6","aria-hidden":"true"})}),(0,t.jsx)("p",{className:"typography-body-5-semibold text-content-primary mb-sm",children:f?.dragAndDrop||"Drag and drop files here"}),(0,t.jsxs)("div",{className:"gap-sm mb-xl flex justify-center",children:[(0,t.jsx)("div",{className:"typography-body-6 text-content-primary bg-background-primary px-sm py-xs rounded-sm",children:r?`${j}`:"All file types"}),s&&(0,t.jsxs)("div",{className:"typography-body-6 text-content-primary bg-background-primary px-sm py-xs rounded-sm",children:[s,"MB"]}),n&&(0,t.jsx)("div",{className:"typography-body-6 text-content-primary bg-background-primary px-sm py-xs rounded-sm",children:f?.multipleFilesAllowed||"Multiple files allowed"})]}),(0,t.jsx)("input",{ref:g,type:"file",accept:r,multiple:n,onChange:e=>v(e.target.files),className:"sr-only",disabled:c,id:m,"aria-invalid":d?"true":"false"}),(0,t.jsx)(K.Button,{type:"button",variant:"tertiary",size:"small",className:"w-full",children:f?.selectFiles||"Select files"}),b.length>0&&(0,t.jsx)("div",{className:"mt-4",children:b.map(e=>e.name).join(", ")})]})};function eo(e){return{id:e.id,caption:e.caption,alias:e.alias,type:e.type,required:e.required,pattern:e.pattern||void 0,patternInvalidErrorMessage:e.patternInvalidErrorMessage||void 0,requiredErrorMessage:e.requiredErrorMessage||void 0,helpText:e.helpText||void 0,preValues:e.preValues,settings:e.settings,fileUploadOptions:e.fileUploadOptions}}let el=e=>{let r={};return e.required&&(r.required=e.requiredErrorMessage||`${e.caption} is required`),e.pattern&&(r.pattern={value:new RegExp(e.pattern),message:e.patternInvalidErrorMessage||`${e.caption} format is invalid`}),r},ec=({field:e,error:r,children:a})=>(0,t.jsx)(en,{label:e.caption,error:r,helpText:e.helpText||void 0,required:e.required,className:"",children:a},e.id),ed=({field:e,register:r,errors:a})=>(0,t.jsx)(ec,{field:e,error:a[e.alias]?.message,children:(0,t.jsx)(Q.Input,{type:"text",...r(e.alias,el(e)),error:!!a[e.alias]})}),eu=({field:e,register:r,errors:a})=>(0,t.jsx)(ec,{field:e,error:a[e.alias]?.message,children:(0,t.jsx)(Q.Input,{type:"password",...r(e.alias,el(e)),error:!!a[e.alias]})}),ep=({field:e,register:r,errors:a})=>(0,t.jsx)(ec,{field:e,error:a[e.alias]?.message,children:(0,t.jsx)(ee,{...r(e.alias,el(e)),error:!!a[e.alias],rows:4})}),em=({field:e,register:r,errors:a})=>(0,t.jsx)(ec,{field:e,error:a[e.alias]?.message,children:(0,t.jsx)(Y,{...r(e.alias,el(e)),error:!!a[e.alias]})}),ef=({field:e,control:r,errors:a})=>(0,t.jsx)(ec,{field:e,error:a[e.alias]?.message,children:(0,t.jsx)(L.Controller,{name:e.alias,control:r,rules:el(e),render:({field:r})=>(0,t.jsx)(er,{value:"string"==typeof r.value?r.value:"",onChange:r.onChange,error:!!a[e.alias],placeholder:e.settings?.selectPrompt||"Select",options:e.preValues?.map(e=>({value:e.value,label:e.caption||e.value}))})})}),eh=({field:e,control:r,errors:a})=>(0,t.jsx)(ec,{field:e,error:a[e.alias]?.message,children:(0,t.jsx)(L.Controller,{name:e.alias,control:r,rules:el(e),defaultValue:!1,render:({field:r})=>(0,t.jsx)(ea,{checked:!!r.value,onChange:e=>r.onChange(e.target.checked),error:!!a[e.alias],label:e.caption||"",description:e.helpText||void 0})})}),ey={"3F92E01B-29E2-4A30-BF33-9DF5580ED52C":(e,r,a,i)=>(0,t.jsx)(ed,{field:e,register:r,errors:i}),"FB37BC60-D41E-11DE-AEAE-37C155D89593":(e,r,a,i)=>(0,t.jsx)(eu,{field:e,register:r,errors:i}),"023F09AC-1445-4BCB-B8FA-AB49F33BD046":(e,r,a,i)=>(0,t.jsx)(ep,{field:e,register:r,errors:i}),"F8B4C3B8-AF28-11DE-9DD8-EF5956D89593":(e,r,a,i)=>(0,t.jsx)(em,{field:e,register:r,errors:i}),"0DD29D42-A6A5-11DE-A2F2-222256D89593":(e,r,a,i)=>(0,t.jsx)(ef,{field:e,control:a,errors:i}),"D5C0C390-AE9A-11DE-A69E-666455D89593":(e,r,a,i)=>(0,t.jsx)(eh,{field:e,control:a,errors:i}),"FAB43F20-A6BF-11DE-A28F-9B5755D89593":(e,r,a,i,n)=>
1(0,t.jsxs)(en,{error:i[e.alias]?.message,required:e.required,children:[e.caption&&(0,t.jsx)("h3",{className:(0,J.cn)("typography-body-5",{"text-content-negative":i[e.alias]}),children:e.caption}),(0,t.jsx)(L.Controller,{name:e.alias,control:a,rules:el(e),defaultValue:[],render:({field:r})=>{let a=Array.isArray(r.value)?r.value:[];return(0,t.jsx)("div",{className:"gap-sm flex flex-col",children:e.preValues?.map((e,i)=>(0,t.jsx)(ea,{checked:a.includes(e.value),onChange:a=>{var t,i;let n,s;return t=e.value,i=a.target.checked,n=Array.isArray(r.value)?r.value:[],s=i?[...n,t]:n.filter(e=>e!==t),void r.onChange(s)},label:e.caption||e.value},`${e.value}-${i}`))})}}),e.helpText&&(0,t.jsx)("p",{className:"typography-body-6 text-content-secondary mt-sm",children:e.helpText})]},e.id),"903DF9B0-A78C-11DE-9FC1-DB7A56D89593":(e,r,a,i,n)=>(0,t.jsxs)(en,{error:i[e.alias]?.message,required:e.required,children:[e.caption&&(0,t.jsx)("h3",{className:(0,J.cn)("typography-body-5",{"text-content-negative":i[e.alias]}),children:e.caption}),(0,t.jsx)(L.Controller,{name:e.alias,control:a,rules:el(e),render:({field:r})=>(0,t.jsx)("div",{children:e.preValues?.map(a=>(0,t.jsx)(et,{name:e.alias,value:a.value,checked:r.value===a.value,onChange:()=>r.onChange(a.value),label:a.caption||a.value},a.value))})}),e.helpText&&(0,t.jsx)("p",{className:"typography-body-3 text-content-secondary mt-sm",children:e.helpText||""})]},e.id),"84A17CF8-B711-46A6-9840-0E4A072AD000":(e,r,a,i,n)=>{let s=e?.fileUploadOptions||{allowAllUploadExtensions:!0,allowedUploadExtensions:[],allowMultipleFileUploads:!1},o=r=>{if(!s.allowAllUploadExtensions){let a=r.name.split(".").pop()?.toLowerCase();if(!a)return String(e.settings?.errorMessageForMissingFileExtension);if(!s.allowedUploadExtensions.includes(a))return String(e.settings?.errorMessageForInvalidFileExtension)}return!!/^[a-zA-Z0-9\s\-_.]+$/.test(r.name)||String(e.settings?.errorMessageForInvalidCharacterInFileName)},l=s.allowAllUploadExtensions?{mimeTypes:void 0,displayFormats:"All file types"}:{mimeTypes:s.allowedUploadExtensions.map(e=>`.${e},application/${"pdf"===e?"pdf":"vnd.openxmlformats-officedocument.wordprocessingml.document"}`).join(","),displayFormats:s.allowedUploadExtensions.map(e=>e.toUpperCase()).join(", ")};return(0,t.jsx)(en,{label:e.caption,error:i[e.alias]?.message,helpText:e.helpText||void 0,required:e.required,className:"",children:(0,t.jsx)(L.Controller,{name:e.alias,control:a,rules:{...el(e),validate:r=>{let a=!(e.required&&(!r||Array.isArray(r)&&0===r.length))||e.requiredErrorMessage||"This field is required";if(!0!==a)return a;let t=!(!s.allowMultipleFileUploads&&Array.isArray(r))||String(e.settings?.errorMessageForMultipleFileUpload);if(!0!==t)return t;if(r instanceof File)return o(r);if(Array.isArray(r)){for(let e of r)if(e instanceof File){let r=o(e);if(!0!==r)return r}}return!0}},render:({field:r})=>(0,t.jsxs)("div",{children:[(0,t.jsx)(es,{onFileSelect:e=>{e?s.allowMultipleFileUploads?r.onChange(Array.from(e)):r.onChange(e[0]):r.onChange(null)},error:!!i[e.alias],multiple:s.allowMultipleFileUploads,accept:l.mimeTypes,displayFormats:l.displayFormats,maxSize:10,"aria-label":`${e.caption} - ${l.displayFormats}${s.allowMultipleFileUploads?" (Multiple files allowed)":""}`,dictionary:n}),e.settings?.selectedFilesListHeading&&e.settings?.showLabel&&Array.isArray(r.value)&&(0,t.jsxs)("div",{className:"mt-xs border-border-secondary p-sm rounded-sm border",children:[(0,t.jsx)("h4",{className:"typography-body-5 text-content-primary mt-sm mb-md",children:e.settings.selectedFilesListHeading}),r.value&&(0,t.jsx)("ul",{className:"mt-xs gap-sm flex flex-col",children:Array.isArray(r.value)?r.value.map(e=>(0,t.jsx)("li",{className:"typography-body-6 bg-background-secondary p-sm rounded-sm",children:e.name},`${e.name}-${e.lastModified}`)):(0,t.jsx)("li",{className:"typography-body-4",children:r.value.name})})]})]})})},e.id)},"DA206CAE-1C52-434E-B21A-4A7C198AF877":(e,r,a,i,n)=>(0,t.jsx)("input",{type:"hidden",...r(e.alias)},e.id),[Z]:(e,r,a,i,n)=>(0,t.jsxs)("div",{className:"mb-4xl",children:[e.caption&&(0,t.jsx)("h3",{className:"typography-headline-1 mb-2xl",children:e.caption}),e.settings?.bodyText&&(0,t.jsx)("p",{className:"typography-body-4 mt-sm",children:e.settings.bodyText})]},e.id),[W]:(e,r,a,i,n)=>(0,t.jsx)("div",{className:"typography-body-1 py-1",dangerouslySetInnerHTML:{__html:e.helpText||e.caption||""}},e.id),"A72C9DF9-3847-47CF-AFB8-B86773FD12CD":(e,r,a,i,n)=>(0,t.jsx)(en,{error:i[e.alias]?.message,children:(0,t.jsx)(L.Controller,{name:e.alias,control:a,rules:el(e),defaultValue:!1,render:({field:r})=>(0,t.jsx)(ea,{checked:!!r.value,onChange:e=>r.onChange(e.target.checked),error:!!i[e.alias],label:e.caption,description:e.helpText||void 0})})},e.id),"B69DEAEB-ED75-4DC9-BFB8-D036BF9D3730":e=>(0,t.jsx)("div",{className:"hidden"},e.id),"663AA19B-423D-4F38-A1D6-C840C926EF86":e=>(0,t.jsx)("div",{className:"hidden"},e.id)},eg=({formData:e,register:r,control:a,errors:i,isSubmitting:n,submitStatus:s,submitMessage:o,dictionary:l,onSubmit:c,isFormVisible:d,currentPage:u,isLastPage:p,handleNextPage:m,handlePreviousPage:f,children:h})=>(0,t.jsxs)("div",{className:"px-lg md:pt-3xl md:px-3xl pb-3xl mx-auto w-full max-w-[43.625rem]",children:[d&&(0,t.jsxs)("form",{onSubmit:c,className:"w-full",children:[e.showValidationSummary&&0!==Object.keys(i).length?(0,t.jsxs)("div",{className:"mb-4xl p-md bg-background-negative/10 border-content-negative rounded-md border-l-4",children:[""!==l.errorSummaryHeading&&void 0!==l.errorSummaryHeading&&(0,t.jsx)("h3",{className:"typography-subheading-4-bold mb-sm text-content-negative",children:l.errorSummaryHeading}),(0,t.jsx)("ul",{className:"pl-lg list-disc",children:Object.entries(i).map(([e,r])=>(0,t.jsx)("li",{className:"typography-body-4 text-content-negative",children:r?.message||"Invalid field"},e))})]}):null,e.pages?.map((n,s)=>(0,t.jsxs)("div",{className:s===u?"block":"hidden",children:[n.caption&&(0,t.jsx)("h2",{className:"typography-subheading-3-bold mb-2xl",children:n.caption}),n.fieldsets?.map((n,o)=>{let c,d,u=(0,t.jsxs)(t.Fragment,{children:[n.caption&&(0,t.jsx)("h2",{className:(0,J.cn)("typography-subheading-4-bold mb-lg"),children:n.caption}),(0,t.jsx)("div",{className:(0,J.cn)("gap-lg grid grid-cols-1",n.columns?.length===2&&"sm:grid-cols-2",n.columns?.length===3&&"sm:grid-cols-3",n.columns?.length===4&&"sm:grid-cols-4"),children:n.columns?.map(n=>n.fields?.map(n=>{let s,o=eo(n),c=((e,r)=>{if(r.hideFieldValidation)return null;switch(r.fieldIndicationType?.toLowerCase()){case"required":return e.required?r.indicator:null;case"optional":return e.required?null:r.indicator;case"both":return e.required?r.indicator:"(Optional)";default:return null}})(n,e);return(0,t.jsxs)("div",{className:"relative",children:[(ey[(s=eo(o)).type.id.toUpperCase()]||((e,r,a,i,n)=>(0,t.jsx)(en,{label:e.caption,error:i[e.alias]?.message,helpText:e.helpText||`Unknown field type: ${e.type.id}
1`,required:e.required,children:(0,t.jsx)(Q.Input,{type:"text",...r(e.alias,el(e)),error:!!i[e.alias]})},e.id)))(s,r,a,i,l),c&&(0,t.jsx)("span",{className:"text-content-negative absolute top-0 -right-2",children:c})]},n.id)}))})]});return(c=[Z.toUpperCase(),W.toUpperCase()],(d=n.columns?.flatMap(e=>e.fields||[])||[]).length>0&&d.every(e=>c.includes(e.type.id.toUpperCase()))&&!n.caption)?(0,t.jsx)("div",{children:u},`${e.id}-fieldset-${s}-${o}`):(0,t.jsx)("section",{className:"mb-4xl flex flex-col",children:u},`${e.id}-fieldset-${s}-${o}`)})]},`${e.id}-page-${s}`)),h,(0,t.jsxs)("div",{className:"mt-4xl flex justify-between",children:[u>0&&(0,t.jsx)(K.Button,{type:"button",variant:"secondary",size:"medium",onClick:f,disabled:n,children:l.formPreviousPage}),p?(0,t.jsx)(K.Button,{type:"submit",disabled:n,children:n?l.submitting:l.submit}):(0,t.jsx)(K.Button,{type:"button",variant:"primary",size:"medium",onClick:m,disabled:n,children:l.formNextPage})]})]}),"idle"!==s&&(0,t.jsx)("div",{className:(0,J.cn)("p-md rounded-sm",{"bg-background-negative/10 text-dark-content-negative":"error"===s,"bg-background-positive/10 text-dark-content-positive":"success"===s,"mt-2xl":d}),children:"Payload Too Large"===o||"Request Entity Too Large"===o?l.formExceedsLimit:o})]}),eb=({siteKey:e,onVerify:r,theme:a="light",size:n="normal"})=>{let s=(0,i.useRef)(null),{setValue:o}=(0,L.useFormContext)();return(0,i.useEffect)(()=>{let t=document.createElement("script");return t.src="https://www.google.com/recaptcha/api.js?render=explicit",t.async=!0,t.defer=!0,t.onload=()=>{window.grecaptcha&&s.current&&window.grecaptcha.render(s.current.id,{sitekey:e,callback:e=>{r(e),o("recaptcha2_token",e)},theme:a,size:n})},document.body.appendChild(t),()=>{document.body.removeChild(t)}},[e,r,o,a,n]),(0,t.jsx)("div",{id:"recaptcha2_element",ref:s})},ex=({siteKey:e,action:r,onVerify:a,scoreThreshold:t=.5})=>{let{setValue:n}=(0,L.useFormContext)();return(0,i.useEffect)(()=>{let i=document.createElement("script");i.src=`https://www.google.com/recaptcha/api.js?render=${e}`,i.async=!0,i.defer=!0;let s=async()=>{try{let i=await window.grecaptcha.execute(e,{action:r});a(i),n("recaptcha3_token",i),n("recaptcha3_score_threshold",t)}catch(e){console.error("reCAPTCHA v3 error:",e)}};return i.onload=()=>{window.grecaptcha.ready(s)},document.body.appendChild(i),()=>{document.body.removeChild(i)}},[e,r,a,n,t]),null},ev=({formData:e,className:r,dictionary:a,onSubmitAction:n,recaptcha2SiteKey:s,recaptcha3SiteKey:o})=>{let l=(({formData:e,onSubmit:r})=>{let a=(0,_.useRouter)(),{executeRecaptcha:t}=p(),[n,s]=(0,i.useState)({submitStatus:"idle",submitMessage:"",isFormVisible:!0,currentPage:0}),o=e.pages?.length||1,l=n.currentPage===o-1,{register:c,handleSubmit:d,control:u,formState:{errors:m,isSubmitting:f},setError:h,reset:y,trigger:g,getValues:b,setValue:x}=(0,L.useForm)({mode:e.hideFieldValidation?"onSubmit":"onChange",defaultValues:{recaptcha_token:""}}),v=async r=>{r&&r.preventDefault(),n.currentPage>=o-1||await U(e,n.currentPage,g,b,h)&&s(e=>({...e,currentPage:e.currentPage+1}))},w=async i=>{try{var n,o;if(s(e=>({...e,submitStatus:"idle",submitMessage:"",isFormVisible:!0})),!t){console.warn("reCAPTCHA validation failed: not initialized"),h("recaptcha_token",{type:"required",message:"reCAPTCHA not initialized"});return}let l=await t("form_submit");if(!l){console.warn("reCAPTCHA validation failed: no token received"),h("recaptcha_token",{type:"required",message:"Please complete the reCAPTCHA verification"});return}i.recaptcha_token=l,r&&await r(i);let c=await H("https://api.psg.fr");if(!c)throw Error("Antiforgery token missing");let d=await G(i,e.id,c);if(d.success){let r;n={messageOnSubmit:d.messageOnSubmit,gotoPageOnSubmitRoute:d.gotoPageOnSubmitRoute},y(),s({submitStatus:"success",submitMessage:n?.messageOnSubmit??e.messageOnSubmit??"Form submitted successfully!",isFormVisible:!1,currentPage:0}),(r=n?.gotoPageOnSubmitRoute?.path??e.gotoPageOnSubmitRoute?.path)&&a.push(r)}else if(d.fieldErrors)throw o=d.fieldErrors,Object.entries(o).forEach(([e,r])=>{h(e,{type:"server",message:(Array.isArray(r)?r:[r]).join(", ")})}),Error("Form validation failed");else throw Error(d.error??"Form submission failed")}catch(e){s(r=>({submitStatus:"error",submitMessage:e instanceof Error?e.message:"An unexpected error occurred",isFormVisible:!0,currentPage:r.currentPage}))}};return{register:c,control:u,errors:m,isSubmitting:f,submitStatus:n.submitStatus,submitMessage:n.submitMessage,is
1FormVisible:n.isFormVisible,currentPage:n.currentPage,totalPages:o,isLastPage:l,handleNextPage:v,handlePreviousPage:e=>{e&&e.preventDefault(),n.currentPage>0&&s(e=>({...e,currentPage:e.currentPage-1}))},onFormSubmit:d(w),setValue:x}})({formData:e,onSubmit:n});return e?(0,t.jsxs)(eg,{formData:e,register:l.register,control:l.control,errors:l.errors,isSubmitting:l.isSubmitting,submitStatus:l.submitStatus,submitMessage:l.submitMessage,dictionary:a,onSubmit:l.onFormSubmit,isFormVisible:l.isFormVisible,currentPage:l.currentPage,isLastPage:l.isLastPage,handleNextPage:l.handleNextPage,handlePreviousPage:l.handlePreviousPage,children:[s&&(0,t.jsx)("div",{className:"mb-4xl",children:(0,t.jsx)(eb,{siteKey:s,onVerify:e=>{l.setValue("recaptcha2_token",e)}})}),o&&(0,t.jsx)(ex,{siteKey:o,action:"form_submit",onVerify:e=>{l.setValue("recaptcha3_token",e)}})]}):null},ew=({formData:e,dictionary:r})=>{let[a,n]=(0,i.useState)(!1),s=(0,L.useForm)({defaultValues:{recaptcha_token:""}}),{setValue:o}=s,l=(0,i.useCallback)(e=>{e?o("recaptcha_token",e,{shouldValidate:!0}):console.warn("reCAPTCHA validation failed: no token received")},[o]);return(0,t.jsxs)(L.FormProvider,{...s,children:[(0,t.jsx)(m,{onVerify:l,refreshReCaptcha:a}),(0,t.jsx)(ev,{formData:e,dictionary:r,onSubmitAction:()=>n(e=>!e)})]})};e.s(["FormRecaptchaProvider",0,({formData:e,dictionary:r,locale:a})=>(0,t.jsx)(u,{reCaptchaKey:"6Ld_tmIrAAAAAL2D6N7URDS7mrl3aelapSFGuHbL",scriptProps:{async:!0,defer:!0,appendTo:"head",nonce:void 0},language:a,children:(0,t.jsx)(ew,{formData:e,dictionary:r})})],11637)}]);
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.