1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8646],{68062:function(e,t,l){l.d(t,{a:function(){return n}});var i=l(40611);class n extends i.Z{async getPub(e,t){try{if(this.instance)return(await this.instance.get("/app-design?size=".concat(e,"&page=").concat(t))).data}catch(e){console.error(e)}}async incrementClick(e){try{if(this.instance)return(await this.instance.post("/app-design/click-counter",{id:e})).data}catch(e){console.error(e)}}}},40611:function(e,t,l){l.d(t,{Z:function(){return n}});var i=l(25995);class n{constructor(){this.instance=i.Z.create({baseURL:"".concat("https://ws.maritima.fr/api")})}}},850:function(e,t,l){l.d(t,{Z:function(){return c}});var i=l(3827),n=l(64090),a=l(48344);l(86978),l(70501),l(87644);var s=l(58481),r=l(20703);function c(e){let{concours:t}=e,l=(0,n.useRef)([]),c=(0,n.useRef)([]);return void 0===t?(0,i.jsx)(a.tq,{slidesPerView:1,loop:!0,pagination:{clickable:!0},autoplay:{delay:3e3},navigation:!0,modules:[s.tl,s.W_,s.pt],className:"mySwiper",style:{marginTop:50},children:[void 0,void 0,void 0].map((e,t)=>(0,i.jsx)(a.o5,{children:(0,i.jsx)("div",{className:"skeleton-image w-[100%] h-[300px] rounded-md flex items-center",children:(0,i.jsxs)("div",{className:"container-loader",children:[(0,i.jsx)("span",{className:"loader-tiny"}),(0,i.jsx)("span",{className:"loader-tall"}),(0,i.jsx)("svg",{width:"20",height:"30",viewBox:"0 0 49 121",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M36.5733 0C33.8798 0 31.5326 0.711841 29.5799 2.1259C28.7141 2.75117 27.9542 3.49187 27.3386 4.32876C26.7518 3.52073 26.0784 2.78965 25.3185 2.16438C23.587 0.73108 21.2975 0 18.5079 0C15.901 0 13.727 0.596408 12.0532 1.76036C11.5049 2.14514 10.9854 2.55878 10.4852 3.00128C9.9273 1.76998 8.69601 0.942709 7.30118 0.942709H3.50149C1.57759 0.942709 0 2.5203 0 4.45382V116.78C0 118.714 1.56797 120.292 3.50149 120.292H7.43586C9.35975 120.292 10.9373 118.714 10.9373 116.78V15.5643C10.9373 14.0829 11.149 12.9478 11.5819 12.1686C11.9859 11.4376 12.4957 10.9181 13.1017 10.6295C13.7655 10.3217 14.4677 10.1582 15.1795 10.1582C16.3627 10.1582 17.267 10.4949 17.9403 11.1971C18.6137 11.8897 18.96 13.044 18.96 14.6216V116.79C18.96 118.724 20.528 120.301 22.4519 120.301H26.3862C28.3101 120.301 29.8781 118.724 29.8781 116.79V15.5643C29.8781 14.0444 30.0897 12.8901 30.5226 12.1109C30.9266 11.3702 31.4365 10.8604 32.0232 10.5718C32.6677 10.264 33.3603 10.1101 34.0626 10.1101C35.2458 10.1101 36.1596 10.4564 36.8522 11.1778C37.5448 11.8897 37.8911 13.0536 37.8911 14.6312V116.8C37.8911 118.733 39.4591 120.311 41.383 120.311H45.3174C47.2413 120.311 48.8188 118.733 48.8188 116.8V12.0917C48.8188 8.48438 47.7896 5.54082 45.7599 3.33796C43.7109 1.12548 40.6134 0 36.5733 0Z",fill:"#c0c0c0"})}),(0,i.jsx)("span",{className:"loader-tall"}),(0,i.jsx)("span",{className:"loader-tiny"})]})})},t))}):(0,i.jsx)(a.tq,{slidesPerView:1,pagination:{clickable:!0},navigation:!0,modules:[s.tl,s.W_,s.pt],className:"mySwiper",children:null==t?void 0:t.map((e,n)=>{var s,o;return(0,i.jsx)(a.o5,{children:(0,i.jsxs)("div",{className:"w-full flex flex-col md:flex-row rounded-lg overflow-hidden",children:[(0,i.jsx)("div",{className:"w-[100%] md:w-[40%] flex flex-col ",style:{backgroundColor:null==e?void 0:e.color},children:(0,i.jsxs)("div",{className:"p-5 h-[90%] flex flex-col justify-around items-baseline text-white md:ml-[25px] text-left",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"hidden md:block md:mb-5",children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"37",viewBox:"0 0 38 39",fill:"none",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_552_10455)",children:[(0,i.jsx)("path",{d:"M2.47379 11.6436H1.22249C0.547326 11.6436 0 12.1962 0 12.8779V25.8411C0 26.5228 0.547326 27.0755 1.22249 27.0755H2.47379C3.14895 27.0755 3.69627 26.5228 3.69627 25.8411V12.8779C3.69627 12.1962 3.14895 11.6436 2.47379 11.6436Z",fill:"white"}),(0,i.jsx)("path",{d:"M8.02262 6.04102H6.77132C6.09615 6.04102 5.54883 6.59367 5.54883 7.2754V31.4436C5.54883 32.1254 6.09615 32.678 6.77132 32.678H8.02262C8.69778 32.678 9.2451 32.1254 9.2451 31.4436V7.2754C9.2451 6.59367 8.69778 6.04102 8.02262 6.04102Z",fill:"white"}),(0,i.jsx)("path",{d:"M22.8872 0H22.879C22.0002 0 21.2284 0.234825 20.5842 0.702396C20.3331 0.885268 20.115 1.09308 19.9318 1.32167C19.7589 1.09723 19.5634 0.895659 19.3514 0.719021C18.7814 0.243137 18.0261 0 17.1123 0C16.2602 0 15.5482 0.195341 14.9945 0.581867C14.8484 0.683693 14.7105 0.791754 14.5829 0.901893C14.3668 0.538227 13.9717 0.301324 13.5333 0.301324H12.3211C11.6481 0.301324 11.0986 0.854
1097 11.0986 1.53571V37.4847C11.0986 38.1642 11.6461 38.7191 12.3211 38.7191H13.5765C14.2495 38.7191 14.799 38.1663 14.799 37.4847V5.08718C14.799 4.63207 14.8628 4.28503 14.9904 4.05644C15.1118 3.83824 15.2559 3.6907 15.4288 3.60965C15.6346 3.51406 15.8383 3.46834 16.0503 3.46834C16.3961 3.46834 16.6616 3.56601 16.8591 3.76759C17.0547 3.96916 17.1534 4.31205 17.1534 4.78585V37.4826C17.1534 38.1621 17.7009 38.717 18.3759 38.717H19.6313C20.3043 38.717 20.8538 38.1642 20.8538 37.4826V5.08718C20.8538 4.6196 20.9176 4.26633 21.0452 4.03774C21.1667 3.81746 21.3087 3.66992 21.4774 3.58887C21.6771 3.49328 21.8767 3.44756 22.0866 3.44756C22.4324 3.44756 22.6999 3.54939 22.9037 3.7572C23.1053 3.965 23.2062 4.30997 23.2062 4.78377V37.4805C23.2062 38.1601 23.7536 38.7149 24.4287 38.7149H25.6841C26.3571 38.7149 26.9066 38.1621 26.9066 37.4805V3.97747C26.9066 2.79296 26.567 1.82457 25.9002 1.10347C25.2251 0.371979 24.2126 0 22.8934 0L22.8872 0Z",fill:"white"}),(0,i.jsx)("path",{d:"M31.2267 6.04102H29.9754C29.3003 6.04102 28.7529 6.59367 28.7529 7.2754V31.4436C28.7529 32.1254 29.3003 32.678 29.9754 32.678H31.2267C31.9019 32.678 32.4492 32.1254 32.4492 31.4436V7.2754C32.4492 6.59367 31.9019 6.04102 31.2267 6.04102Z",fill:"white"}),(0,i.jsx)("path",{d:"M36.7775 11.6436H35.5262C34.851 11.6436 34.3037 12.1962 34.3037 12.8779V25.8411C34.3037 26.5228 34.851 27.0755 35.5262 27.0755H36.7775C37.4527 27.0755 38 26.5228 38 25.8411V12.8779C38 12.1962 37.4527 11.6436 36.7775 11.6436Z",fill:"white"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_552_10455",children:(0,i.jsx)("rect",{width:"38",height:"38.717",fill:"white"})})})]})}),(0,i.jsx)("div",{className:"text-[5.5vw] md:text-[2vw] font-bold ",children:null==e?void 0:e.title}),(0,i.jsx)("div",{className:"text-[3vw] md:text-[1vw] font-semibold",children:null==e?void 0:e.description})]}),(0,i.jsx)("button",{onClick:()=>{let t=null==e?void 0:e.url;window.open(t,"_blank")},ref:e=>c.current[n]=e,className:" bg-[#fff] inline-block md:w-fit w-full rounded-[15px] p-[8px] text-[#151047] mt-[20px] md:mt-[0px] text-[3.5vw] md:text-[1vw] font-bold items-center uppercase md:mb-[0px] mr-[20px] mb:mr-[0px]",children:e.btn_txt})]})}),(0,i.jsx)("div",{className:"w-[100%] md:w-[60%] ",children:(0,i.jsx)(r.default,{ref:e=>l.current[n]=e,src:"".concat("https://ws.maritima.fr/api","/").concat(null===(o=t[n])||void 0===o?void 0:null===(s=o.medias[0])||void 0===s?void 0:s.url),style:{objectFit:"contain"},priority:!0,alt:null==e?void 0:e.title,width:0,height:0,sizes:"100vw"})})]})},n)})})}l(55902)},57399:function(e,t,l){l.d(t,{Z:function(){return a}});var i=l(3827);l(64090);var n=l(8931);function a(e){var t;let{pubs:l}=e;if(l&&"object"==typeof l&&Object.keys(l).length>0&&(null==l?void 0:l.bottom)&&(null==l?void 0:null===(t=l.bottom)||void 0===t?void 0:t.length)>0)return l.bottom.map(e=>(0,i.jsxs)("div",{className:"w-full flex items-center justify-center",children:[(0,i.jsx)(n.Z,{pub:e,linkClassName:"hidden md:block",width:1400,height:250}),(0,i.jsx)(n.Z,{pub:e,linkClassName:"block md:hidden",width:640,height:200})]},e.id))}},8931:function(e,t,l){l.d(t,{Z:function(){return c}});var i=l(3827),n=l(64090),a=l(20703),s=l(8792),r=l(68062);function c(e){let{pub:t,width:l,height:c,sizes:o,className:d,linkClassName:u,target:h,alt:m="publicite"}=e,[p,f]=n.useState(!1),C=new r.a;return(n.useEffect(()=>{f(!1)},[null==t?void 0:t.url]),(null==t?void 0:t.url)&&!p)?(0,i.jsx)(s.default,{target:h,href:(null==t?void 0:t.link)?t.link:"#",className:u,onClick:()=>{var e;C.incrementClick(null==t?void 0:null===(e=t.app_design_has_medias_publicity)||void 0===e?void 0:e.appDesignId)},children:(0,i.jsx)(a.default,{src:"https://ws.maritima.fr/api/"+t.url,alt:m,width:l,height:c,sizes:o,className:d,onError:()=>f(!0)})}):null}},72381:function(e,t,l){l.r(t),l.d(t,{PubContext:function(){return c},PubProvider:function(){return o}});var i=l(3827),n=l(64090),a=l(68062),s=l(85088);function r(){{let{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}}let c=(0,n.createContext)({}),o=e=>{let{children:t}=e,l=new a.a;new s.Z;
1let[o,d]=(0,n.useState)({}),[u,h]=(0,n.useState)({width:0,height:0}),[m,p]=(0,n.useState)(!1),[f,C]=(0,n.useState)(!1),{height:v,width:x}=function(){let[e,t]=(0,n.useState)(r());return(0,n.useEffect)(()=>{function e(){t(r())}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}(),w=async()=>{await l.getPub("desktop","home").then(e=>{var t,l;(null==e?void 0:null===(t=e.top)||void 0===t?void 0:t[0])!==null&&(null==e?void 0:null===(l=e.bottom)||void 0===l?void 0:l[0])!==null&&(d(e),C(!0),p(!1))})},g=async()=>{await l.getPub("mobile","home").then(e=>{var t;(null==e?void 0:null===(t=e.top)||void 0===t?void 0:t[0])!==null&&(null==e?void 0:e.bottom[0])!==null&&(d(e),p(!0),C(!1))})};return(0,n.useEffect)(()=>{x<768&&!m?(d({}),g()):x>=768&&!f&&(d({}),w())},[x]),(0,i.jsx)(c.Provider,{value:{pubs:o,width:x},children:t})}},85088:function(e,t,l){l.d(t,{Z:function(){return i}});class i{constructor(){this.formatTextUrl=e=>e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/--+/g,"-").replace(/^-+|-+$/g,"").toLowerCase():"",this.formatTextUrlVideo=e=>e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/--+/g,"-").replace(/^-+|-+$/g,"").replace(/\//g,"-").toLowerCase():"",this.generateArticleUrl=(e,t,l,i)=>{try{if(e&&t&&l&&i){let n=this.formatTextUrl(i),a=this.formatTextUrl(e),s=this.formatTextUrl(t);return"/actualites/".concat(a,"/").concat(s,"/").concat(l,"/").concat(n)}}catch(e){return console.log(e),"/404"}},this.replaceSpacesAndAccents=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/--+/g,"-").replace(/^-+|-+$/g,"").toLocaleLowerCase(),this.markAsRead=async e=>{let t=JSON.parse(localStorage.getItem("articles")||"[]");t.push(e.title.trim()),localStorage.setItem("articles",JSON.stringify(t))},this.articleIsRead=e=>!!JSON.parse(localStorage.getItem("articles")||"[]").includes(e.title.trim())}}}}]);
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.