1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4721],{78402:function(e,r,n){"use strict";var t=n(64836);r.Z=void 0;var i=t(n(64938)),o=n(85893),s=(0,i.default)((0,o.jsx)("path",{d:"M18.92 6.01C18.72 5.42 18.16 5 17.5 5H15V3H9v2H6.5c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.5-4.5h11L19 11H5z"}),"LocalTaxi");r.Z=s},58893:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/activity-site/[slug]/private-transfer",function(){return n(98147)}])},95063:function(e,r,n){"use strict";n.d(r,{e:function(){return t}});var t=function(e){return e&&"object"==typeof e&&Object.keys(e).length>0}},84255:function(e,r,n){"use strict";n.d(r,{Z:function(){return i}});var t=n(85893);function i(e){return!0===e.condition?(0,t.jsx)(t.Fragment,{children:e.render()}):void 0!==e.otherwise?(0,t.jsx)(t.Fragment,{children:e.otherwise()}):(0,t.jsx)(t.Fragment,{})}n(67294)},28899:function(e,r,n){"use strict";var t,i;n.d(r,{H:function(){return t}}),(i=t||(t={})).PRIVATE_TRANSFER="PRIVATE_TRANSFER",i.SHUTTLE_AND_BUS="SHUTTLE_AND_BUS"},98147:function(e,r,n){"use strict";n.r(r),n.d(r,{__N_SSG:function(){return eQ},default:function(){return eN},findBySlug:function(){return eA}});var t,i=n(85893),o=n(53707),s=n(13587),a=n(99226),l=n(53156),c=n(26447),d=n(98456),u=n(15861),x=n(54799),m=n(48452),h=n(86886),f=n(96486),p=n(2962),j=n(11163),g=n(67294),Z=n(77058),v=n(1163),b=n(95063),y=n(78928),S=n(64456),C=n(58082),P=n(15342),B=n(84255),W=n(40199),w=n(26042),L=n(69396),k=n(14671),D=n(47568),O=n(70655);function _(){return(_=(0,D.Z)(function(e,r){var n;return(0,O.__generator)(this,function(t){var i,o;return(n=new URL("".concat("https://partner.ozeroute.com/api/","content-manager/airport-transfer-page/get"))).searchParams.append("locale",e),n.searchParams.append("id",r),[2,fetch("".concat(n)).then((i=(0,D.Z)(function(e){return(0,O.__generator)(this,function(r){switch(r.label){case 0:return[4,e.json()];case 1:return[2,r.sent()]}})}),function(e){return i.apply(this,arguments)})).then((o=(0,D.Z)(function(e){return(0,O.__generator)(this,function(r){return[2,e.data]})}),function(e){return o.apply(this,arguments)})).catch(function(e){return{}})]})})).apply(this,arguments)}function R(){return(R=(0,D.Z)(function(e){var r;return(0,O.__generator)(this,function(n){var t,i;return r=new URL("".concat("https://partner.ozeroute.com/api/","content-manager/airport-transfer-page/set")),[2,fetch("".concat(r),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((t=(0,D.Z)(function(e){return(0,O.__generator)(this,function(r){switch(r.label){case 0:return[4,e.json()];case 1:return[2,r.sent()]}})}),function(e){return t.apply(this,arguments)})).then((i=(0,D.Z)(function(e){return(0,O.__generator)(this,function(r){return[2,e.data]})}),function(e){return i.apply(this,arguments)})).catch(function(e){})]})})).apply(this,arguments)}var V,F={locale:"fr",pageId:"paris-beauvais",seo:{title:"paris-beauvais",metaDescription:"Lorem ipsum dolor sit amet, consectetur adipiscing elit"},mainBanner:{content:"OZE ROUTE",image:{src:"defaut-banner.png",alt:"default"}},mainContent:{primaryBloc:{title:"Transfert priv\xe9 : taxi et VTC Paris Beauvais",shortDescription:"Forte d'une exp\xe9rience de plusieurs ann\xe9es dans le transfert des passagers, Oz\xe9route vous propose son service de mobilit\xe9 priv\xe9 depuis et vers l'a\xe9roport Paris Beauvais. Un chauffeur priv\xe9 sera \xe0 votre disposition pour vous emmener \xe0 votre destination ( a\xe9roport CDG, DisneyLand, Op\xe9ra, Champ Elys\xe9e, a\xe9roport Orly, Ast\xe9rix )...",longDescription:"Forte d'une exp\xe9rience de plusieurs ann\xe9es dans le transfert des passagers, Oz\xe9route vous propose son service de mobilit\xe9 priv\xe9 depuis et vers l'a\xe9roport Paris Beauvais. Un chauffeur priv\xe9 sera \xe0 votre disposition pour vous emmener \xe0 votre destination ( a\xe9roport CDG, DisneyLand, Op\xe9ra, Champ Elys\xe9e, a\xe9roport Orly, Ast\xe9rix )...",image:{src:"default.png",alt:"default"}},secondaryBloc:{title:"LES ATOUTS DE NOS SERVICES",fields:[{title:"Pas de frais li\xe9s au trafic sur la route",image:{src:"default.png",alt:"default"}},{title:"Pas de frais li\xe9s au retard de lâavion",image:{src:"default.png",alt:"default"}},{title:"Un voyage avec les meilleurs chauffeurs",image:{src:"default.png",alt:"default"}},]},tertiaryBloc:{left:{title:"Un transfert avec les meilleurs chauffeurs priv\xe9s",shortDe
1scription:"En choisissant un service de transfert priv\xe9 Oz\xe9route, vous profitez dâun v\xe9hicule enti\xe8rement \xe0 votre disposition pendant la dur\xe9e de votre voyage. Vous nâaurez plus de soucis avec des correspondances, des horaires et des heures de trajets pas toujours simples..",longDescription:"En choisissant un service de transfert priv\xe9 Oz\xe9route, vous profitez dâun v\xe9hicule enti\xe8rement \xe0 votre disposition pendant la dur\xe9e de votre voyage. Vous nâaurez plus de soucis avec des correspondances, des horaires et des heures de trajets pas toujours simples..",image:{src:"default.png",alt:"default"}},right:{title:"Des tarifs fixes et abordables",shortDescription:"Besoin de profiter de services de qualit\xe9 tout en restant \xe9conome ? Optez pour un service de chauffeur priv\xe9 \xe0 vos c\xf4t\xe9s. Vous ne prenez pas le risque de payer plus que vous ne le devez et vous pouvez profiter des services dâun chauffeur priv\xe9 exp\xe9riment\xe9...",longDescription:"Besoin de profiter de services de qualit\xe9 tout en restant \xe9conome ? Optez pour un service de chauffeur priv\xe9 \xe0 vos c\xf4t\xe9s. Vous ne prenez pas le risque de payer plus que vous ne le devez et vous pouvez profiter des services dâun chauffeur priv\xe9 exp\xe9riment\xe9...",image:{src:"default.png",alt:"default"}}},quaternaryBloc:{title:"Des v\xe9hicules spacieux pour plus de confort",shortDescription:"Nos services Oz\xe9route de chauffeur priv\xe9 de l'a\xe9roport Beauvais se sont modernis\xe9s et se modernisent encore \xe0 chaque nouvelle ann\xe9e. En effet, pour votre confort, vous pouvez aujourdâhui voyager dans un v\xe9hicule spacieux tout en restant \xe9conomique. Vous pouvez choisir le type de v\xe9hicule que vous souhaitez : une petite voiture, un v\xe9hicule familial ou un autocar pour les voyages en groupe. Quel que soit le v\xe9hicule que vous choisissez, vous serez s\xfbr de vous sentir \xe0 lâaise. Un chauffeur priv\xe9 exp\xe9riment\xe9 est pr\xe9sent pour vous dans les meilleures conditions possibles, et vous aurez tout ce dont vous avez besoin \xe0 bord. Avec des si\xe8ges confortables, un \xe9quipement high-tech et un syst\xe8me de confort sophistiqu\xe9, vous ne pourrez quâ\xeatre satisfait.",longDescription:"",image:{src:"default.png",alt:"default"}}}};(V=t||(t={}))[V.global=0]="global",V[V.seo=1]="seo",V[V.mainBanner=2]="mainBanner",V[V.primaryBloc=3]="primaryBloc",V[V.secondaryBloc=4]="secondaryBloc",V[V.tertiaryBloc=5]="tertiaryBloc",V[V.tertiaryLeftBloc=6]="tertiaryLeftBloc",V[V.tertiaryRightBloc=7]="tertiaryRightBloc",V[V.quaternaryBloc=8]="quaternaryBloc";var q=(0,k.Z)(function(e,r){return{isLoading:!1,scopeOfWork:t.global,isError:!1,content:void 0,setSeo:function(n){var i=r().content,o=(0,L.Z)((0,w.Z)({},i),{seo:n});e(function(e){return(0,L.Z)((0,w.Z)({},e),{scopeOfWork:t.seo})}),r().saveContent(o)},saveMainBanner:function(n){var i=r().content,o=(0,L.Z)((0,w.Z)({},i),{mainBanner:n});e(function(e){return(0,L.Z)((0,w.Z)({},e),{scopeOfWork:t.mainBanner})}),r().saveContent(o)},setContent:function(r){e(function(e){return(0,L.Z)((0,w.Z)({},e),{isLoading:!1,isError:!1,content:r})})},getContent:function(r,n){e(function(e){return(0,L.Z)((0,w.Z)({},e),{isLoading:!0,isError:!1,scopeOfWork:t.global})}),(function(e,r){return _.apply(this,arguments)})(r,n).then(function(r){e(function(e){return(0,L.Z)((0,w.Z)({},e),{isLoading:!1,isError:!1,content:r})})})},saveDefaultContent:function(e,n){var t=(0,L.Z)((0,w.Z)({},F),{locale:e,pageId:n});r().saveContent(t)},saveContent:function(r){e(function(e){return(0,L.Z)((0,w.Z)({},e),{isLoading:!0,isError:!1})}),(function(e){return R.apply(this,arguments)})(r).then(function(r){e(function(e){return(0,L.Z)((0,w.Z)({},e),{isLoading:!1,scopeOfWork:t.global,isError:!1,content:r})})})},savePrimaryBlocContent:function(n){var i=r().content,o=(0,L.Z)((0,w.Z)({},i),{mainContent:(0,L.Z)((0,w.Z)({},i.mainContent),{primaryBloc:n})});e(function(e){return(0,L.Z)((0,w.Z)({},e),{scopeOfWork:t.primaryBloc})}),r().saveContent(o)},saveSecondaryBlocContent:function(n){var i=r().content,o=(0,L.Z)((0,w.Z)({},i),{mainContent:(0,L.Z)((0,w.Z)({},i.mainContent),{secondaryBloc:n})});e(function(e){return(0,L.Z)((0,w.Z)({},e),{scopeOfWork:t.secondaryBloc})}),r().saveContent(o)},saveTertiaryLeftBlocContent:function(n){var i=r().content,o=(0,L.Z)((0,w.Z)({},i),{mainContent:(0,L.Z)((0,w.Z)({},i.mainContent),{tertiaryBloc:(0,L.Z)((0,w.Z)({}
1,i.mainContent.tertiaryBloc),{left:n})})});e(function(e){return(0,L.Z)((0,w.Z)({},e),{scopeOfWork:t.tertiaryLeftBloc})}),r().saveContent(o)},saveTertiaryRightBlocContent:function(n){var i=r().content,o=(0,L.Z)((0,w.Z)({},i),{mainContent:(0,L.Z)((0,w.Z)({},i.mainContent),{tertiaryBloc:(0,L.Z)((0,w.Z)({},i.mainContent.tertiaryBloc),{right:n})})});e(function(e){return(0,L.Z)((0,w.Z)({},e),{scopeOfWork:t.tertiaryRightBloc})}),r().saveContent(o)},saveQuaternaryBlocContent:function(n){var i=r().content,o=(0,L.Z)((0,w.Z)({},i),{mainContent:(0,L.Z)((0,w.Z)({},i.mainContent),{quaternaryBloc:n})});e(function(e){return(0,L.Z)((0,w.Z)({},e),{scopeOfWork:t.quaternaryBloc})}),r().saveContent(o)}}}),z=n(3302),T=n(78402),E=n(55113),I=n(18377),Q=n(31635),A=n(77435),N=n(20868),M=n(73996),U=n(48117),H=n(70649),X=n(28413),G=n(62796),$=n(28899),Y=n(46351),J=function(e){var r,n,o,a=(0,g.useState)(!1),m=a[0],p=a[1],j=(0,Q.$G)("common").t,Z=q(),v=Z.content,b=Z.isLoading,y=Z.scopeOfWork,S=Z.saveMainBanner,C=(0,f.get)(v,"mainBanner",void 0);return(0,i.jsx)(N.$,{banner:{url:(null==C?void 0:null===(r=C.image)||void 0===r?void 0:r.src)?(0,A.w)(null==C?void 0:null===(n=C.image)||void 0===n?void 0:n.src):"",height:649,contentPosition:{bottom:85}},children:(0,i.jsxs)(l.Z,{maxWidth:"lg",disableGutters:!0,children:[(0,i.jsxs)(I.Z,{sx:{position:"relative"},children:[(0,i.jsx)(P.a,{children:(0,i.jsx)(x.Z,{sx:{position:"absolute",top:0,left:-50,border:"solid 1px #ddd"},onClick:function(){return p(!0)},children:b&&y===t.mainBanner?(0,i.jsx)(d.Z,{size:24}):(0,i.jsx)(s.Z,{})})}),(0,i.jsxs)(h.ZP,{container:!0,justifyContent:"space-between",children:[(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsxs)(E.Z,{elevation:12,sx:{maxWidth:450,position:"relative"},children:[(0,i.jsx)(E.Z,{sx:{p:1,position:"absolute",top:-40,left:0,width:"100%",backgroundColor:"primary.main",color:"#fff"},children:(0,i.jsxs)(c.Z,{direction:"row",spacing:1,children:[(0,i.jsx)(T.Z,{}),(0,i.jsxs)(u.Z,{sx:{fontSize:"0.95rem",fontWeight:600,lineHeight:1.5},children:[j("Transfert Priv\xe9")," ",e.activitySite.name]})]})}),(0,i.jsx)(I.Z,{sx:{p:2},children:(0,i.jsx)(Y.r,{defaultValues:(o=e.activitySite,{provision:!1,provisionDuration:"",direction:H.A.FROM,directionType:X.r.ONE_WAY,activitySite:(0,f.isUndefined)(o)?null:o,place:null,passengers:(0,G.lK)(1,0,0),dateOfGo:(0,U.pz)(new Date),timeOfGo:(0,U.Xn)(),flight:void 0,terminal:void 0,service:$.H.PRIVATE_TRANSFER,from:null,to:null}),settings:{insideActivitySites:!1}})})]})}),(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsx)(u.Z,{sx:{fontSize:70,fontWeight:800,fontStyle:"italic",fontFamily:"Open Sans",color:"primary.main",textTransform:"uppercase",letterSpacing:"-4px",lineHeight:"55px",display:{xs:"none",md:"block"},position:"absolute",top:-130,right:0,p:1},children:(null==C?void 0:C.content)||e.activitySite.name})})]})]}),(0,i.jsx)(W.v,{anchor:"right",open:m,onClose:function(){return p(!1)},onOpen:function(){return p(!0)},children:(0,i.jsx)(M.y,{onSubmit:function(e){return S(e)},defaultValues:C,isLoading:b&&y===t.mainBanner})})]})})},K=n(81458),ee=n(57922),er=n(83321),en=n(25675),et=n.n(en),ei=n(32866),eo=n(95496),es=n(52778),ea=n(22715),el=n(56815),ec=n(66242),ed=n(83965),eu=n(13486),ex=n(66684),em=n(87536),eh=n(7258),ef=n(19298),ep=(0,ex.Z)(function(e){return{fieldset:{border:"solid 1px #C4C4C4",borderRadius:e.shape.borderRadius,padding:e.spacing(1),position:"relative"}}}),ej=eh.Ry().shape({title:eh.Z_().required(),shortDescription:eh.Z_().required(),image:eh.Ry().shape({src:eh.Z_().required(),alt:eh.Z_().required(),width:eh.Rx().nullable(!0),height:eh.Rx().nullable(!0)}).required()}).required(),eg=function(e){var r,n=ep(),o=q(),s=o.isLoading,a=o.scopeOfWork,l=(0,em.cI)({mode:"onSubmit",defaultValues:(null==e?void 0:e.defaultValues)||{title:"",shortDescription:"",longDescription:"",image:{src:"",alt:""}},resolver:(0,eo.X)(ej),reValidateMode:"onChange"}),m=l.watch();return(0,i.jsx)("form",{onSubmit:l.handleSubmit(function(r){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,r)}),children:(0,i.jsxs)(h.ZP,{container:!0,spacing:4,children:[(0,i.jsx)(h.ZP,{item:!0,xs:12,md:12,children:(0,i.jsx)(em.Qr,{control:l.control,name:"title",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({In
1putLabelProps:{shrink:!0},fullWidth:!0},r),{label:"Titre"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"title",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}})}),(0,i.jsx)(h.ZP,{item:!0,xs:12,md:12,children:(0,i.jsx)(em.Qr,{control:l.control,name:"shortDescription",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({InputLabelProps:{shrink:!0},fullWidth:!0},r),{multiline:!0,rows:5,label:"Br\xe8ve description"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"shortDescription",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}})}),(0,i.jsx)(h.ZP,{item:!0,xs:12,md:12,children:(0,i.jsx)(em.Qr,{control:l.control,name:"longDescription",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({InputLabelProps:{shrink:!0},fullWidth:!0},r),{multiline:!0,rows:5,label:"Description"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"longDescription",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}})}),(0,i.jsxs)(h.ZP,{item:!0,xs:12,children:[m.image.src&&(0,i.jsxs)("fieldset",{className:n.fieldset,children:[(0,i.jsx)("legend",{children:(0,i.jsx)(u.Z,{color:"textSecondary",children:"Image"})}),(0,i.jsxs)(c.Z,{direction:"row",spacing:2,children:[(0,i.jsx)(ec.Z,{elevation:0,sx:{maxWidth:345},children:(0,i.jsx)(ed.Z,{component:"img",height:"194",image:(0,A.w)(m.image.src),alt:"",sx:{p:1,border:"solid 1px #ddd"}})}),(0,i.jsxs)(I.Z,{children:[(0,i.jsx)(em.Qr,{control:l.control,name:"image.alt",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({fullWidth:!0},r),{placeholder:"Alt",label:"ALT"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"image.alt",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}}),(0,i.jsxs)(c.Z,{direction:"row",spacing:1,sx:{mt:2},children:[(0,i.jsx)(em.Qr,{control:l.control,name:"image.width",render:function(e){var r=e.field;return(0,i.jsxs)(c.Z,{direction:"column",spacing:1,children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({fullWidth:!0},r),{type:"number",label:"Largeur"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"image.width",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}}),(0,i.jsx)(em.Qr,{control:l.control,name:"image.height",render:function(e){var r=e.field;return(0,i.jsxs)(c.Z,{direction:"column",spacing:1,children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({fullWidth:!0},r),{type:"number",label:"Hauteur"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"image.height",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}})]})]})]}),(0,i.jsx)(x.Z,{sx:{position:"absolute",top:-10,right:10,backgroundColor:"#fff",border:"solid 1px #C4C4C4"},color:"error",onClick:function(){return l.setValue("image.src","")},children:(0,i.jsx)(es.Z,{})})]}),(null==m?void 0:null===(r=m.image)||void 0===r?void 0:r.src)===""&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ef.T,{label:"S\xe9lectionner une image",uploadFileName:"image",onSuccess:function(e){return l.setValue("image.src",e)},onError:function(e){},onprogress:function(e){}}),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"image.src",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})]}),(0,i.jsx)(h.ZP,{item:!0,xs:12,children:(0,i.jsxs)(h.ZP,{container:!0,justifyContent:"space-between",children:[(0,i.jsx)(h.ZP,{item:!0}),(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsxs)(I.Z,{sx:{m:1,position:"relative"},children:[(0,i.jsx)(er.Z,{variant:"contained",color:"primary",type:"submit",disabled:s&&a===t.primaryBloc,children:"Soumettre"}),s&&a===t.primaryBloc&&(0,i.jsx)(d.Z,{size:24,sx:{color:eu.Z[500],position:"absolute",top:"50%",left:"50%",marginTop:"-12px",marginLeft:"-12px"}})]})})]})})]})})},eZ=n(64701),ev=n(87220),eb=n(60181),ey=n(75503),eS=function(){var e,r=(0,Z.$)("common").t,n=(0,g.useState)(!1),o=n[0],a=n[1],l=(0,g.useState)(!1),c=l[0],m=l[1],p=q(),j=p.content,v=p.isLoading,b=p.scopeOfWork,y=p.savePrimaryBlocContent,S=(0,f.get)(j,"mainContent.primaryBloc",void 0),C=function(){m(!c)};return void 0===S&&!1===v?(0,i.jsx)(i.Fragment,{}):void 0===S&&!0===v?(0,i.jsx)(K.Z,{}):(0,i.jsxs)(I.Z,{sx:{position:"relative"},children:[(0,i.jsx)(P.a,{children:(0,i.jsx)(x.Z,{sx:{position:"absolute",top:0,left:-50,border:"solid 1px #ddd"},onClick:function(){return a(!0)},children:v&&b===t.primaryBloc?(0,i.jsx)(d.Z,{size:24}):(0,i.jsx)(s.Z,{})})}),(0,i.jsxs)(h.ZP,{container:!0,alignItems:"center",children:[(0,i.jsx)(h.ZP,{item:!0,xs:12,md:7,children:(0,i.jsxs)(I.Z,{sx:{maxWidth:570},children:[(0,i.jsx)(u.Z,{variant:"h1",color:"primary",sx:{mb:2,fontWeight:600},children:S.title}),(0,i.jsx)(u.Z,{color:"textSecondary",align:"justify",children:(0,i.jsx)(eZ.V,{content:S.shortDescription})}),S.longDescription&&(0,i.jsxs)(I.Z,{children:[(0,i.jsx)(ee.Z,{in:c,timeout:"auto",unmountOnExit:!0,children:(0,i.jsx)(I.Z,{sx:{maxWidth:570,mb:3},children:(0,i.jsx)(u.Z,{color:"textSecondary",children:(0,i.jsx)(eZ.V,{content:S.longDescription})})})}),(0,i.jsx)(er.Z,{sx:{float:"right"},color:"secondary",onClick:C,endIcon:c?(0,i.jsx)(eb.Z,{}):(0,i.jsx)(ey.Z,{}),children:r(c?"Lire moins":"Lire la suite")})]})]})}),(0,i.jsx)(h.ZP,{item:!0,xs:12,md:5,children:(0,i.jsx)(et(),{loader:ev.MY,src:S.image.src,alt:(null===(e=S.image)||void 0===e?void 0:e.alt)||"",width:555,height:354})})]}),(0,i.jsx)(W.v,{anchor:"right",open:o,onClose:function(){return a(!1)},onOpen:function(){return a(!0)},children:(0,i.jsx)(eg,{onSubmit:function(e){return y(e)},defaultValues:S})})]})},eC=(0,ex.Z)(function(e){return{fieldset:{border:"solid 1px #C4C4C4",borderRadius:e.shape.borderRadius,padding:e.spacing(1),position:"relative"}}
1}),eP=eh.Ry().shape({title:eh.Z_().required(),shortDescription:eh.Z_().required(),image:eh.Ry().shape({src:eh.Z_().required(),alt:eh.Z_().required(),width:eh.Rx().nullable(!0),height:eh.Rx().nullable(!0)}).required()}).required(),eB=function(e){var r,n=eC(),o=q(),s=o.isLoading,a=o.scopeOfWork,l=(0,em.cI)({mode:"onSubmit",defaultValues:(null==e?void 0:e.defaultValues)||{title:"",shortDescription:"",longDescription:"",image:{src:"",alt:""}},resolver:(0,eo.X)(eP),reValidateMode:"onChange"}),m=l.watch();return(0,i.jsx)("form",{onSubmit:l.handleSubmit(function(r){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,r)}),children:(0,i.jsxs)(h.ZP,{container:!0,spacing:4,children:[(0,i.jsx)(h.ZP,{item:!0,xs:12,md:12,children:(0,i.jsx)(em.Qr,{control:l.control,name:"title",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({InputLabelProps:{shrink:!0},fullWidth:!0},r),{label:"Titre"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"title",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}})}),(0,i.jsx)(h.ZP,{item:!0,xs:12,md:12,children:(0,i.jsx)(em.Qr,{control:l.control,name:"shortDescription",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({InputLabelProps:{shrink:!0},fullWidth:!0},r),{multiline:!0,rows:5,label:"Br\xe8ve description"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"shortDescription",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}})}),(0,i.jsx)(h.ZP,{item:!0,xs:12,md:12,children:(0,i.jsx)(em.Qr,{control:l.control,name:"longDescription",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({InputLabelProps:{shrink:!0},fullWidth:!0},r),{multiline:!0,rows:5,label:"Description"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"longDescription",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}})}),(0,i.jsxs)(h.ZP,{item:!0,xs:12,children:[m.image.src&&(0,i.jsxs)("fieldset",{className:n.fieldset,children:[(0,i.jsx)("legend",{children:(0,i.jsx)(u.Z,{color:"textSecondary",children:"Image"})}),(0,i.jsxs)(c.Z,{direction:"row",spacing:2,children:[(0,i.jsx)(ec.Z,{elevation:0,sx:{maxWidth:345},children:(0,i.jsx)(ed.Z,{component:"img",height:"194",image:(0,A.w)(m.image.src),alt:"",sx:{p:1,border:"solid 1px #ddd"}})}),(0,i.jsxs)(I.Z,{children:[(0,i.jsx)(em.Qr,{control:l.control,name:"image.alt",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({fullWidth:!0},r),{placeholder:"Alt",label:"ALT"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"image.alt",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}}),(0,i.jsxs)(c.Z,{direction:"row",spacing:1,sx:{mt:2},children:[(0,i.jsx)(em.Qr,{control:l.control,name:"image.width",render:function(e){var r=e.field;return(0,i.jsxs)(c.Z,{direction:"column",spacing:1,children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({fullWidth:!0},r),{type:"number",label:"Largeur"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"image.width",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}}),(0,i.jsx)(em.Qr,{control:l.control,name:"image.height",render:function(e){var r=e.field;return(0,i.jsxs)(c.Z,{direction:"column",spacing:1,children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({fullWidth:!0},r),{type:"number",label:"Hauteur"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"image.height",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}})]})]})]}),(0,i.jsx)(x.Z,{sx:{position:"absolute",top:-10,right:10,backgroundColor:"#fff",border:"solid 1px #C4C4C4"},color:"error",onClick:function(){return l.setValue("image.src","")},children:(0,i.jsx)(es.Z,{})})]}),(null==m?void 0:null===(r=m.image)||void 0===r?void 0:r.src)===""&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ef.T,{label:"S\xe9lectionner une image",uploadFileName:"image",onSuccess:function(e){return l.setValue("image.src",e)},onError:function(e){},onprogress:function(e){}}),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"image.src",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})]}),(0,i.jsx)(h.ZP,{item:!0,xs:12,children:(0,i.jsxs)(h.ZP,{container:!0,justifyContent:"space-between",children:[(0,i.jsx)(h.ZP,{item:!0}),(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsxs)(I.Z,{sx:{m:1,position:"relative"},children:[(0,i.jsx)(er.Z,{variant:"contained",color:"primary",type:"submit",disabled:s&&a===t.quaternaryBloc,children:"Soumettre"}),s&&a===t.quaternaryBloc&&(0,i.jsx)(d.Z,{size:24,sx:{color:eu.Z[500],position:"absolute",top:"50%",left:"50%",marginTop:"-12px",marginLeft:"-12px"}})]})})]})})]})})},eW=function(){var e,r=(0,Z.$)("common").t,n=(0,g.useState)(!1),o=n[0],a=n[1],c=(0,g.useState)(!1),m=c[0],p=c[1],j=q(),v=j.content,b=j.isLoading,y=j.scopeOfWork,S=j.saveQuaternaryBlocContent,C=(0,f.get)(v,"mainContent.quaternaryBloc",void 0),B=function(){p(!m)};return void 0===C&&!1===b?(0,i.jsx)(i.Fragment,{}):void 0===C&&!0===b?(0,i.jsx)(K.Z,{}):(0,i.jsxs)(I.Z,{sx:{mt:6,mb:3,display:"flex",alignItems:"center",justifyContent:"center",backgroundImage:"url(/assets/images/word_map.png)",backgroundSize:"80%",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"100%",height:700},children:[(0,i.jsx)(l.Z,{maxWidth:"lg",children:(0,i.jsxs)(I.Z,{sx:{position:"relative"},children:[(0,i.jsx)(P.a,{children:(0,i.jsx)(x.Z,{sx:{position:"absolute",top:0,left:-50,border:"solid 1px #ddd"},onClick:function(){return a(!0)},children:b&&y===t.quaternaryBloc?(0,i.jsx)(d.Z,{size:24}):(0,i.jsx)(s.Z,{})})}),(0,i.jsxs)(h.ZP,{container:!0,spacing:3,children:[(0,i.jsx)(h.ZP,{item:!0,xs:12,md:5,children:(0,i.jsx)(et(),{loader:ev.MY,src:C.image.src,alt:(null===(e=C.image)||void 0===e?void 0:e.alt)||"",width:555,height:354})}),(0,i.jsx)(h.ZP,{item:!0,xs:12,md:7,children:(0,i.jsxs)(h.ZP,{container:!0,direction:"column",spacing:3,children:[(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsx)(u.Z,{align:"left",variant:"h2",sx:{mb:2,fontWeight:600},children:C.title})}),(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsx)(u.Z,{align:"justify",sx:{mb:2},color:"textSecondary",children:(0,i.jsx)(eZ.V,{content:C.shortDescription})})}),C.longDescription&&(0,i.jsxs)(h.ZP,{item:!0,children:[(0,i.jsx)(ee.Z,{in:m,timeout:"auto",unmountOnExit:!0,children:(0,i.jsx)(I.Z,{sx:{maxWidth:570,mb:3},children:(0,i.jsx)(u.Z,{color:"textSecondary",align:"justify",children:(0,i.jsx)(eZ.V,{content:C.longDescription})})})}),(0,i.jsx)(er.Z,{sx:{float:"right"},color:"secondary",onClick:B,endIcon:m?(0,i.jsx)(eb.Z,{}):(0,i.jsx)(ey.Z,{}),children:r(m?"Lire moins":"Lire la suite")})]})]})})]})]})}),(0,i.jsx)(W.v,{anchor:"right",open:o,onClose:function(){return a(!1)},onOpen:function(){return a(!0)},children:(0,i.jsx)(eB,{onSubmit:function(e){return S(e)},defaultValues:C})})]})},ew=(0,ex.Z)(function(e){return{fieldset:{border:"solid 1px #C4C4C4",borderRadius:e.shape.borderRadius,padding:e.spacing(1),position:"relative"}}
1}),eL=eh.Ry().shape({title:eh.Z_().required(),fields:eh.IX().of(eh.Ry().shape({title:eh.Z_().required(),image:eh.Ry().shape({src:eh.Z_().required(),alt:eh.Z_().required(),width:eh.Rx().nullable(!0),height:eh.Rx().nullable(!0)}).required()}))}).required(),ek=function(e){var r=ew(),n=q(),o=n.isLoading,s=n.scopeOfWork,a=(0,em.cI)({mode:"onSubmit",defaultValues:(null==e?void 0:e.defaultValues)||{title:"",fields:[{title:"",image:void 0},]},resolver:(0,eo.X)(eL),reValidateMode:"onChange"}),l=(0,em.Dq)({control:a.control,name:"fields"}).fields,m=a.watch();return(0,i.jsx)("form",{onSubmit:a.handleSubmit(function(r){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,r)}),children:(0,i.jsxs)(h.ZP,{container:!0,spacing:5,children:[(0,i.jsx)(h.ZP,{item:!0,xs:12,md:12,children:(0,i.jsx)(em.Qr,{control:a.control,name:"title",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({InputLabelProps:{shrink:!0},fullWidth:!0},r),{label:"Titre"})),(0,i.jsx)(ei.B,{errors:a.formState.errors,name:"title",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!a.formState.errors,children:r})}})]})}})}),l.map(function(e,n){var t;return(0,i.jsx)(h.ZP,{item:!0,xs:12,md:12,children:(0,i.jsxs)(c.Z,{direction:"column",spacing:2,sx:{borderLeft:"solid 4px #C4C4C4",pl:2},children:[(0,i.jsx)(em.Qr,{control:a.control,name:"fields.".concat(n,".title"),render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({InputLabelProps:{shrink:!0},fullWidth:!0},r),{multiline:!0,rows:2,label:"Description - ".concat(n+1)})),(0,i.jsx)(ei.B,{errors:a.formState.errors,name:"fields.[".concat(n,"].title"),render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!a.formState.errors,children:r})}})]})}}),m.fields[n].image.src&&(0,i.jsxs)("fieldset",{className:r.fieldset,children:[(0,i.jsx)("legend",{children:(0,i.jsx)(u.Z,{color:"textSecondary",children:"Image - ".concat(n+1)})}),(0,i.jsxs)(c.Z,{direction:"row",spacing:2,children:[(0,i.jsx)(ec.Z,{elevation:0,sx:{maxWidth:345},children:(0,i.jsx)(ed.Z,{component:"img",height:"194",image:(0,A.w)(m.fields[n].image.src),alt:"",sx:{p:1,border:"solid 1px #ddd"}})}),(0,i.jsxs)(I.Z,{children:[(0,i.jsx)(em.Qr,{control:a.control,name:"fields.".concat(n,".image.alt"),render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({fullWidth:!0},r),{placeholder:"Alt",label:"ALT"})),(0,i.jsx)(ei.B,{errors:a.formState.errors,name:"fields.".concat(n,".image.alt"),render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!a.formState.errors,children:r})}})]})}}),(0,i.jsxs)(c.Z,{direction:"row",spacing:1,sx:{mt:2},children:[(0,i.jsx)(em.Qr,{control:a.control,name:"fields.".concat(n,".image.width"),render:function(e){var r=e.field;return(0,i.jsxs)(c.Z,{direction:"column",spacing:1,children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({fullWidth:!0},r),{type:"number",label:"Largeur"})),(0,i.jsx)(ei.B,{errors:a.formState.errors,name:"fields.".concat(n,".image.width"),render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!a.formState.errors,children:r})}})]})}}),(0,i.jsx)(em.Qr,{control:a.control,name:"fields.".concat(n,".image.height"),render:function(e){var r=e.field;return(0,i.jsxs)(c.Z,{direction:"column",spacing:1,children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({fullWidth:!0},r),{type:"number",label:"Hauteur"})),(0,i.jsx)(ei.B,{errors:a.formState.errors,name:"fields.".concat(n,".image.height"),render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!a.formState.errors,children:r})}})]})}})]})]})]}),(0,i.jsx)(x.Z,{sx:{position:"absolute",top:-10,right:10,backgroundColor:"#fff",border:"solid 1px #C4C4C4"},color:"error",onClick:function(){return a.setValue("fields.".concat(n,".image.src"),"")},children:(0,i.jsx)(es.Z,{})})]}),(null===(t=null==m?void 0:m.fields[n].image)||void 0===t?void 0:t.src)===""&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ef.T,{label:"S\xe9lectionner une image",uploadFileName:"image",onSuccess:function(e){return a.setValue("fields.".concat(n,".image.src"),e)},onError:function(e){},onprogress:function(e){}}),(0,i.jsx)(ei.B,{errors:a.formState.errors,name:"fields.".concat(n,".image.src"),render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!a.formState.errors,children:r})}})]})]})},e.id)}),(0,i.jsx)(h.ZP,{item:!0,xs:12,children:(0,i.jsxs)(h.ZP,{container:!0,justifyContent:"space-between",children:[(0,i.jsx)(h.ZP,{item:!0}),(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsxs)(I.Z,{sx:{m:1,position:"relative"},children:[(0,i.jsx)(er.Z,{variant:"contained",color:"primary",type:"submit",disabled:o&&s===t.secondaryBloc,children:"Soumettre"}),o&&s===t.secondaryBloc&&(0,i.jsx)(d.Z,{size:24,sx:{color:eu.Z[500],position:"absolute",top:"50%",left:"50%",marginTop:"-12px",marginLeft:"-12px"}})]})})]})})]})})},eD=function(){var e=(0,g.useState)(!1),r=e[0],n=e[1],o=q(),a=o.content,c=o.isLoading,m=o.scopeOfWork,p=o.saveSecondaryBlocContent,j=(0,f.get)(a,"mainContent.secondaryBloc",void 0);return void 0===j&&!1===c?(0,i.jsx)(i.Fragment,{}):void 0===j&&!0===c?(0,i.jsx)(K.Z,{}):(0,i.jsxs)(l.Z,{maxWidth:"lg",children:[(0,i.jsxs)(I.Z,{sx:{position:"relative"},children:[(0,i.jsx)(P.a,{children:(0,i.jsx)(x.Z,{sx:{position:"absolute",top:30,left:-50,border:"solid 1px #ddd"},onClick:function(){return n(!0)},children:c&&m===t.secondaryBloc?(0,i.jsx)(d.Z,{size:24}):(0,i.jsx)(s.Z,{})})}),(0,i.jsxs)(h.ZP,{container:!0,direction:"column",spacing:4,children:[(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsx)(I.Z,{sx:{mt:2},children:(0,i.jsx)(u.Z,{variant:"h5",align:"center",style:{fontWeight:700},children:j.title})})}),(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsx)(h.ZP,{container:!0,spacing:4,justifyContent:"center",children:j.fields.map(function(e,r){return(0,i.jsx)(h.ZP,{item:!0,xs:12,md:4,children:void 0!==e.image&&(0,i.jsx)(eO,{icon:(0,i.jsx)(et(),{loader:ev.MY,src:e.image.src,alt:e.image.alt,width:140,height:140}),text:e.title})},r)})})}),(0,i.jsx)(h.ZP,{item:!0})]}),(0,i.jsx)(W.v,{anchor:"right",open:r,onClose:function(){return n(!1)},onOpen:function(){return n(!0)},children:(0,i.jsx)(ek,{onSubmit:function(e){return p(e)},defaultValues:j})})]})," "]})},eO=function(e){return(0,i.jsxs)(h.ZP,{container:!0,direction:"column",children:[(0,i.jsx)(h.ZP,{item:!0,container:!0,justifyContent:"center",children:(0,i.jsx)("div",{children:e.icon})}),(0,i.jsx)(h.ZP,{item:!0,style:{marginTop:"1rem"},children:(0,i.jsx)(u.Z,{style:{textAlign:"center",fontWeight:500},children:e.text})})]})},e_=(0,ex.Z)(function(e){return{fieldset:{border:"solid 1px #C4C4C4",borderRadius:e.shape.borderRadius,padding:e.spacing(1),position:"relative"}}
1}),eR=eh.Ry().shape({title:eh.Z_().required(),shortDescription:eh.Z_().required(),image:eh.Ry().shape({src:eh.Z_().optional(),alt:eh.Z_().optional(),width:eh.Rx().nullable(!0),height:eh.Rx().nullable(!0)}).optional()}).required(),eV=function(e){var r,n=e_(),o=q(),s=o.isLoading,a=o.scopeOfWork,l=(0,em.cI)({mode:"onSubmit",defaultValues:(null==e?void 0:e.defaultValues)||{title:"",shortDescription:"",longDescription:"",image:{src:"",alt:""}},resolver:(0,eo.X)(eR),reValidateMode:"onChange"}),m=l.watch();return(0,i.jsx)("form",{onSubmit:l.handleSubmit(function(r){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,r)}),children:(0,i.jsxs)(h.ZP,{container:!0,spacing:4,children:[(0,i.jsx)(h.ZP,{item:!0,xs:12,md:12,children:(0,i.jsx)(em.Qr,{control:l.control,name:"title",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({InputLabelProps:{shrink:!0},fullWidth:!0},r),{label:"Titre"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"title",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}})}),(0,i.jsx)(h.ZP,{item:!0,xs:12,md:12,children:(0,i.jsx)(em.Qr,{control:l.control,name:"shortDescription",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({InputLabelProps:{shrink:!0},fullWidth:!0},r),{multiline:!0,rows:5,label:"Br\xe8ve description"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"shortDescription",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}})}),(0,i.jsx)(h.ZP,{item:!0,xs:12,md:12,children:(0,i.jsx)(em.Qr,{control:l.control,name:"longDescription",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({InputLabelProps:{shrink:!0},fullWidth:!0},r),{multiline:!0,rows:5,label:"Description"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"longDescription",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}})}),(0,i.jsxs)(h.ZP,{item:!0,xs:12,children:[m.image.src&&(0,i.jsxs)("fieldset",{className:n.fieldset,children:[(0,i.jsx)("legend",{children:(0,i.jsx)(u.Z,{color:"textSecondary",children:"Image"})}),(0,i.jsxs)(c.Z,{direction:"row",spacing:2,children:[(0,i.jsx)(ec.Z,{elevation:0,sx:{maxWidth:345},children:(0,i.jsx)(ed.Z,{component:"img",height:"194",image:(0,A.w)(m.image.src),alt:"",sx:{p:1,border:"solid 1px #ddd"}})}),(0,i.jsxs)(I.Z,{children:[(0,i.jsx)(em.Qr,{control:l.control,name:"image.alt",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({fullWidth:!0},r),{placeholder:"Alt",label:"ALT"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"image.alt",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}}),(0,i.jsxs)(c.Z,{direction:"row",spacing:1,sx:{mt:2},children:[(0,i.jsx)(em.Qr,{control:l.control,name:"image.width",render:function(e){var r=e.field;return(0,i.jsxs)(c.Z,{direction:"column",spacing:1,children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({fullWidth:!0},r),{type:"number",label:"Largeur"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"image.width",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}}),(0,i.jsx)(em.Qr,{control:l.control,name:"image.height",render:function(e){var r=e.field;return(0,i.jsxs)(c.Z,{direction:"column",spacing:1,children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({fullWidth:!0},r),{type:"number",label:"Hauteur"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"image.height",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}})]})]})]}),(0,i.jsx)(x.Z,{sx:{position:"absolute",top:-10,right:10,backgroundColor:"#fff",border:"solid 1px #C4C4C4"},color:"error",onClick:function(){return l.setValue("image.src","")},children:(0,i.jsx)(es.Z,{})})]}),(null==m?void 0:null===(r=m.image)||void 0===r?void 0:r.src)===""&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ef.T,{label:"S\xe9lectionner une image",uploadFileName:"image",onSuccess:function(e){return l.setValue("image.src",e)},onError:function(e){},onprogress:function(e){}}),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"image.src",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})]}),(0,i.jsx)(h.ZP,{item:!0,xs:12,children:(0,i.jsxs)(h.ZP,{container:!0,justifyContent:"space-between",children:[(0,i.jsx)(h.ZP,{item:!0}),(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsxs)(I.Z,{sx:{m:1,position:"relative"},children:[(0,i.jsx)(er.Z,{variant:"contained",color:"primary",type:"submit",disabled:s&&a===t.tertiaryLeftBloc,children:"Soumettre"}),s&&a===t.tertiaryLeftBloc&&(0,i.jsx)(d.Z,{size:24,sx:{color:eu.Z[500],position:"absolute",top:"50%",left:"50%",marginTop:"-12px",marginLeft:"-12px"}})]})})]})})]})})},eF=function(){var e,r,n,o=(0,Z.$)("common").t,a=(0,g.useState)(!1),l=a[0],c=a[1],m=(0,g.useState)(!1),p=m[0],j=m[1],v=q(),b=v.content,y=v.isLoading,S=v.scopeOfWork,C=v.saveTertiaryLeftBlocContent,B=(0,f.get)(b,"mainContent.tert
1iaryBloc.left",void 0),w=function(){j(!p)};return void 0===B&&!1===y?(0,i.jsx)(i.Fragment,{}):void 0===B&&!0===y?(0,i.jsx)(K.Z,{}):(0,i.jsxs)(I.Z,{sx:{position:"relative"},children:[(0,i.jsx)(P.a,{children:(0,i.jsx)(x.Z,{sx:{position:"absolute",top:0,left:-50,border:"solid 1px #ddd"},onClick:function(){return c(!0)},children:y&&S===t.tertiaryLeftBloc?(0,i.jsx)(d.Z,{size:24}):(0,i.jsx)(s.Z,{})})}),(0,i.jsxs)(h.ZP,{container:!0,direction:"column",justifyContent:"space-between",sx:{height:"100%"},children:[!(0,f.isUndefined)(null==B?void 0:null===(e=B.image)||void 0===e?void 0:e.src)&&!(0,f.isEmpty)(null==B?void 0:null===(r=B.image)||void 0===r?void 0:r.src)&&(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsx)(et(),{loader:ev.MY,src:B.image.src,alt:(null===(n=B.image)||void 0===n?void 0:n.alt)||"",width:555,height:354})}),(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsxs)(I.Z,{sx:{maxWidth:570},children:[(0,i.jsx)(u.Z,{variant:"h2",sx:{mb:2,fontWeight:600},children:B.title}),(0,i.jsx)(u.Z,{color:"textSecondary",align:"justify",children:(0,i.jsx)(eZ.V,{content:B.shortDescription})})]})}),B.longDescription&&(0,i.jsxs)(h.ZP,{item:!0,children:[(0,i.jsx)(ee.Z,{in:p,timeout:"auto",unmountOnExit:!0,children:(0,i.jsx)(I.Z,{sx:{maxWidth:570,mb:3},children:(0,i.jsx)(u.Z,{color:"textSecondary",align:"justify",children:(0,i.jsx)(eZ.V,{content:B.longDescription})})})}),(0,i.jsx)(er.Z,{sx:{float:"right"},color:"secondary",onClick:w,endIcon:p?(0,i.jsx)(eb.Z,{}):(0,i.jsx)(ey.Z,{}),children:o(p?"Lire moins":"Lire la suite")})]})]}),(0,i.jsx)(W.v,{anchor:"right",open:l,onClose:function(){return c(!1)},onOpen:function(){return c(!0)},children:(0,i.jsx)(eV,{onSubmit:function(e){return C(e)},defaultValues:B})})]})},eq=(0,ex.Z)(function(e){return{fieldset:{border:"solid 1px #C4C4C4",borderRadius:e.shape.borderRadius,padding:e.spacing(1),position:"relative"}}}),ez=eh.Ry().shape({title:eh.Z_().required(),shortDescription:eh.Z_().required(),image:eh.Ry().shape({src:eh.Z_().optional(),alt:eh.Z_().optional(),width:eh.Rx().nullable(!0),height:eh.Rx().nullable(!0)}).optional()}).required(),eT=function(e){var r,n=eq(),o=q(),s=o.isLoading,a=o.scopeOfWork,l=(0,em.cI)({mode:"onSubmit",defaultValues:(null==e?void 0:e.defaultValues)||{title:"",shortDescription:"",longDescription:"",image:{src:"",alt:""}},resolver:(0,eo.X)(ez),reValidateMode:"onChange"}),m=l.watch();return(0,i.jsx)("form",{onSubmit:l.handleSubmit(function(r){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,r)}),children:(0,i.jsxs)(h.ZP,{container:!0,spacing:4,children:[(0,i.jsx)(h.ZP,{item:!0,xs:12,md:12,children:(0,i.jsx)(em.Qr,{control:l.control,name:"title",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({InputLabelProps:{shrink:!0},fullWidth:!0},r),{label:"Titre"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"title",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}})}),(0,i.jsx)(h.ZP,{item:!0,xs:12,md:12,children:(0,i.jsx)(em.Qr,{control:l.control,name:"shortDescription",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({InputLabelProps:{shrink:!0},fullWidth:!0},r),{multiline:!0,rows:5,label:"Br\xe8ve description"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"shortDescription",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}})}),(0,i.jsx)(h.ZP,{item:!0,xs:12,md:12,children:(0,i.jsx)(em.Qr,{control:l.control,name:"longDescription",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({InputLabelProps:{shrink:!0},fullWidth:!0},r),{multiline:!0,rows:5,label:"Description"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"longDescription",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}})}),(0,i.jsxs)(h.ZP,{item:!0,xs:12,children:[m.image.src&&(0,i.jsxs)("fieldset",{className:n.fieldset,children:[(0,i.jsx)("legend",{children:(0,i.jsx)(u.Z,{color:"textSecondary",children:"Image"})}),(0,i.jsxs)(c.Z,{direction:"row",spacing:2,children:[(0,i.jsx)(ec.Z,{elevation:0,sx:{maxWidth:345},children:(0,i.jsx)(ed.Z,{component:"img",height:"194",image:(0,A.w)(m.image.src),alt:"",sx:{p:1,border:"solid 1px #ddd"}})}),(0,i.jsxs)(I.Z,{children:[(0,i.jsx)(em.Qr,{control:l.control,name:"image.alt",render:function(e){var r=e.field;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({fullWidth:!0},r),{placeholder:"Alt",label:"ALT"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"image.alt",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}}),(0,i.jsxs)(c.Z,{direction:"row",spacing:1,sx:{mt:2},children:[(0,i.jsx)(em.Qr,{control:l.control,name:"image.width",render:function(e){var r=e.field;return(0,i.jsxs)(c.Z,{direction:"column",spacing:1,children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({fullWidth:!0},r),{type:"number",label:"Largeur"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"image.width",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}}),(0,i.jsx)(em.Qr,{control:l.control,name:"image.height",render:function(e){var r=e.field;return(0,i.jsxs)(c.Z,{direction:"column",spacing:1,children:[(0,i.jsx)(ea.Z,(0,L.Z)((0,w.Z)({fullWidth:!0},r),{type:"number",label:"Hauteur"})),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"image.height",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})}})]})]})]}),(0,i.jsx)(x.Z,{sx:{position:"absolute",top:-10,right:10,backgroundColor:"#fff",border:"solid 1px #C4C4C4"},color:"error",onClick:function(){return l.setValue("image.src","")},children:(0,i.jsx)(es.Z,{})})]}),(null==m?void 0:null===(r=m.image)||void 0===r?void 0:r.src)===""&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ef.T,{label:"S\xe9lectionner une image",uploadFileName:"image",onSuccess:function(e){return l.setValue("image.src",e)},onError:function(e){},onprogress:function(e){}}),(0,i.jsx)(ei.B,{errors:l.formState.errors,name:"image.src",render:function(e){var r=e.message;return(0,i.jsx)(el.Z,{error:!!l.formState.errors,children:r})}})]})]}),(0,i.jsx)(h.ZP,{item:!0,xs:12,children:(0,i.jsxs)(h.ZP,{container:!0,justifyContent:"space-between",children:[(0,i.jsx)(h.ZP,{item:!0}),(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsxs)(I.Z,{sx:{m:1,position:"relative"},children:[(0,i.jsx)(er.Z,{variant:"contained",color:"primary",type:"submit",disabled:s&&a===t.tertiaryRightBloc,children:"Soumettre"}),s&&a===t.tertiaryRightBloc&&(0,i.jsx)(d.Z,{size:24,sx:{color:eu.Z[500],position:"absolute",top:"50%",left:"50%",marginTop:"-12px",marginLeft:"-12px"}})]})})]})})]})})},eE=function(){var e,r,n,o=(0,Z.$)("common").t,a=(0,g.useState)(!1),l=a[0],c=a[1],m=(0,g.useState)(!1),p=m[0],j=m[1],v=q(),b=v.content,y=v.isLoading,S=v.scopeOfWork,C=v.saveTertiaryRightBlocContent,B=(0,f.get)(b,"mainContent.tert
1iaryBloc.right",void 0),w=function(){j(!p)};return void 0===B&&!1===y?(0,i.jsx)(i.Fragment,{}):void 0===B&&!0===y?(0,i.jsx)(K.Z,{}):(0,i.jsxs)(I.Z,{sx:{position:"relative"},children:[(0,i.jsx)(P.a,{children:(0,i.jsx)(x.Z,{sx:{position:"absolute",top:0,left:-50,border:"solid 1px #ddd"},onClick:function(){return c(!0)},children:y&&S===t.tertiaryRightBloc?(0,i.jsx)(d.Z,{size:24}):(0,i.jsx)(s.Z,{})})}),(0,i.jsxs)(h.ZP,{container:!0,direction:"column",justifyContent:"space-between",sx:{height:"100%"},children:[!(0,f.isUndefined)(null==B?void 0:null===(e=B.image)||void 0===e?void 0:e.src)&&!(0,f.isEmpty)(null==B?void 0:null===(r=B.image)||void 0===r?void 0:r.src)&&(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsx)(et(),{loader:ev.MY,src:B.image.src,alt:(null===(n=B.image)||void 0===n?void 0:n.alt)||"",width:555,height:354})}),(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsxs)(I.Z,{sx:{maxWidth:570},children:[(0,i.jsx)(u.Z,{variant:"h2",sx:{mb:2,fontWeight:600},children:B.title}),(0,i.jsx)(u.Z,{color:"textSecondary",align:"justify",children:(0,i.jsx)(eZ.V,{content:B.shortDescription})})]})}),B.longDescription&&(0,i.jsxs)(h.ZP,{item:!0,children:[(0,i.jsx)(ee.Z,{in:p,timeout:"auto",unmountOnExit:!0,children:(0,i.jsx)(I.Z,{sx:{maxWidth:570,mb:3},children:(0,i.jsx)(u.Z,{color:"textSecondary",align:"justify",children:(0,i.jsx)(eZ.V,{content:B.longDescription})})})}),(0,i.jsx)(er.Z,{sx:{float:"right"},color:"secondary",onClick:w,endIcon:p?(0,i.jsx)(eb.Z,{}):(0,i.jsx)(ey.Z,{}),children:o(p?"Lire moins":"Lire la suite")})]})]}),(0,i.jsx)(W.v,{anchor:"right",open:l,onClose:function(){return c(!1)},onOpen:function(){return c(!0)},children:(0,i.jsx)(eT,{onSubmit:function(e){return C(e)},defaultValues:B})})]})},eI=function(){return(0,i.jsx)(I.Z,{sx:{mt:3},children:(0,i.jsxs)(h.ZP,{container:!0,spacing:3,children:[(0,i.jsx)(h.ZP,{item:!0,xs:12,md:6,children:(0,i.jsx)(eF,{})}),(0,i.jsx)(h.ZP,{item:!0,xs:12,md:6,children:(0,i.jsx)(eE,{})})]})})},eQ=!0;function eA(e,r){return e.find(function(e){return e.slug===r})||{}}var eN=function(e){var r,n=(0,S.f)(),w=n.session;n.refetchSession;var L=(0,Z.$)("common").t,k=(0,j.useRouter)(),D=(0,g.useState)(!1),O=D[0],_=D[1],R=q(),V=R.saveDefaultContent,F=R.setContent,T=R.content,E=R.setSeo,I=R.scopeOfWork,Q=R.isLoading,A=(0,f.get)(T,"seo",null==e?void 0:null===(r=e.contentPage)||void 0===r?void 0:r.seo);if((0,g.useEffect)(function(){F(e.contentPage)},[e.contentPage]),k.isFallback||Q&&I===t.global)return(0,i.jsxs)(y.Z,{children:[(0,i.jsx)(a.Z,{sx:{height:50}}),(0,i.jsx)(l.Z,{maxWidth:"lg",children:(0,i.jsx)(c.Z,{sx:{width:"100%",height:"100%"},direction:"row",justifyContent:"center",alignItems:"center",children:(0,i.jsx)(d.Z,{})})})]});if(!T&&!Q&&!k.isFallback&&!(0,b.e)(e.contentPage))return(0,i.jsxs)(y.Z,{children:[(0,i.jsx)(a.Z,{sx:{height:50}}),(0,i.jsx)(l.Z,{maxWidth:"lg",children:(0,i.jsxs)(c.Z,{sx:{width:"100%"},direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,i.jsx)(u.Z,{variant:"h3",sx:{fontWeight:700},children:L("Page Not Found")}),(null==w?void 0:w.user)&&(0,i.jsx)(a.Z,{children:(0,i.jsx)(x.Z,{onClick:function(){var e;V(k.locale,String(k.query.slug))},children:(0,i.jsx)(o.Z,{})})})]})})]});var N="".concat("https://partner.ozeroute.com").concat(k.locale&&(null==k?void 0:k.locale)!==(null==k?void 0:k.defaultLocale)?"/"+k.locale:"").concat((0,v.gL)(e.activitySite,k.locale));return(0,i.jsx)(y.Z,{children:(0,i.jsxs)(m.Z,{theme:C.o,children:[(0,i.jsxs)(a.Z,{children:[(0,i.jsx)(P.a,{children:(0,i.jsx)(x.Z,{sx:{position:"absolute",top:30,left:20,border:"solid 1px #ddd",zIndex:9990},onClick:function(){return _(!0)},children:Q&&I===t.seo?(0,i.jsx)(d.Z,{size:24}):(0,i.jsx)(s.Z,{})})}),void 0!==A&&(0,i.jsx)(p.PB,{title:A.title,description:A.metaDescription,canonical:N}),(0,i.jsx)(B.Z,{condition:Q&&I===t.global,render:function(){return(0,i.jsx)(l.Z,{maxWidth:"lg",children:"Loading......."})},otherwise:function(){return(0,i.jsx)(l.Z,{maxWidth:"xl",disableGutters:!0,children:(0,i.jsxs)(h.ZP,{container:!0,direction:"column",alignItems:"stretch",spacing:3,children:[(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsx)(h.ZP,{container:!0,direction:"column",children:(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsx)(J,{activitySite:e.activitySite,activitySites:e.activitySites})})})}),(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsx)(l.Z,{maxWidth:"lg",children:(0,i.jsx)(eS,{})})}),(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsx)(eD,{})}),(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsx)(l.Z,{maxWidth:"xl",sx:{backgroundColor:"#F6F6F6",pt:1,pb:4,mt:2},children:(0,i.jsx)(l.Z,{maxWidth:"lg",children:(0,i.jsx)(eI,{})})})}),(0,i.jsx)(h.ZP,{item:!0,children:(0,i.jsx)(l.Z,{maxWidth:"xl",children:(0,i.jsx)(eW,{})})})]})})}}),(0,i.jsx)(W.v,{anchor:"right",open:O,onClose:function(){return _(!1)},onOpen:function(){return _(!0)},scopeOfWork:"SEO",children:(0,i.jsx)(z.b,{onSubmit:function(e){return E(e)},defaultValues:A,isLoading:!1})})]})," "]})})}}},function(e){e.O(0,[6132,7082,4654,3227,8777,6684,6980,7290,9005,2300,5246,2579,8928,7997,9882,5969,9774,2888,179],function(){return e(e.s=58893)}),_N_E=e.O()}]);
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.