1"use strict";(self.webpackChunkportail_landing=self.webpackChunkportail_landing||[]).push([[5475],{24952:function(tt,W,c){c.d(W,{f:function(){return H}});var R=c(81728),D=c(18987),x=c(11874),j=c(64628),z=(m,l,s)=>new Promise((g,P)=>{var I=A=>{try{M(s.next(A))}catch(B){P(B)}},b=A=>{try{M(s.throw(A))}catch(B){P(B)}},M=A=>A.done?g(A.value):Promise.resolve(A.value).then(I,b);M((s=s.apply(m,l)).next())});j.Ay.use(R.I4,{accessToken:"5HjUrjCQsr8KPwu2QYCkLwtt",bridge:!1,use:[R.YB],apiOptions:{cache:{clear:"auto",type:"memory"}}});const H=(0,x.nY)("cms",{state:()=>({story:null,experimentId:null,experimentEvent:null,experimentPersonProperty:null,abEnabled:!1}),getters:{seo(m){var l,s;return((s=(l=m.story)==null?void 0:l.content)==null?void 0:s.seo)||{}},storyFullSlug(m){var l;return(l=m.story)==null?void 0:l.full_slug},linkedData(m){var l,s,g;const P=(s=(l=m.story)==null?void 0:l.content)==null?void 0:s.ldjson,I=P&&P[0]&&P[0].ldjson;if(I)try{return JSON.parse(I)}catch(b){console.error(`Story ${(g=m.story)==null?void 0:g.full_slug} has invalid ld+json:`,I==null?void 0:I.slice(0,20))}return null}},actions:{useStoryblokBridge(m){},getStory(){return this.story},getSeo(){var m,l;return((l=(m=this.story)==null?void 0:m.content)==null?void 0:l.seo)||{}},setStory(m){this.story=m},fetchStory(m){return z(this,arguments,function*({slug:l=null,forcedVariantSlug:s=null,$ssrContext:g=null}){var P,I;if(!l)throw new Error("You must provide either a slug or an id");const b=i=>encodeURIComponent(`pae_${i}_variant`),M=i=>{let u;return g?u=g.cookies[b(i)]:u=D.A.get(b(i)),u?decodeURIComponent(u):null},A=(i,u)=>{i=i?encodeURIComponent(i):null;const F=new Date("2038-01-19 04:14:07");g?(console.log("SSR: setCookieVariant",i,b(u)),i?(g.res.cookie(b(u),i,{expires:F}),console.log("SSR: Cookie variant set",i,b(u))):g.res.clearCookie(b(u))):i?D.A.set(b(u),i,{expires:F}):D.A.remove(b(u))};console.log("Retrieving story:",`cdn/stories/${l}`,"| version:","published");const{data:B}=yield(0,R.LA)().get(`cdn/stories/${l}`,{version:"published",resolve_relations:"pages,author,expert_author"}).catch(i=>{throw this.setStory(null),console.error(i,{url:`cdn/stories/${l}`,version:"published"}),i}),w=B.story;(P=B.rels)==null||P.forEach(i=>{if(i.uuid)for(const u of["author","expert_author"])w.content[u]===i.uuid&&(w.content[u]=i)});const y=(I=w.content.pages)==null?void 0:I.map(i=>B.rels.find(u=>i===u.uuid));let L=null,O=null;y&&y.length?(O=y.findIndex(i=>w.content.default_page.id===i.uuid),O===-1&&(O=0),L=y[O]):L=w;const $=w.content.experiment_id,Q=!!(g!=null&&g.isBot);let K=L;const J=!!y&&y.length>=1&&!Q&&$;let E;if(s)E=y.findIndex(i=>i.full_slug===s),this.abEnabled=!1,K=y[E];else if(!J)this.abEnabled=!1;else{const i=M($)||null;if(i)E=y.findIndex(u=>u.full_slug===i),E===-1&&(console.error("[A/B] Forced variant",i," not found, reverting to default",O),E=O),console.log("[A/B] Forced variant from cookies:",i,"index:",E),this.abEnabled=!s;else{let u;try{if(u=w.content.page_weights.tbody.map(k=>parseFloat(k.body[0].value)),u.length!==y.length)throw new Error(`Variant weights ${u.length} do not match number of variants ${y.length}, ignoring distribution.`);const F=u.reduce((k,G)=>k+G);if(F!==1)throw new Error(`Weights do not add up to 1 (${F}), ignoring`);const X=u.map((k=>G=>k+=G)(0)),N=Math.random();E=X.findIndex(k=>k>=N),console.info("[A/B]: Rolled a dice over",u,"got",N,"[",E,"]"),this.abEnabled=!0}catch(F){E=O,this.abEnabled=!1,console.error(F,"Invalid variant weight definition, defaulting to ",O)}}K=y[E],console.log("[A/B] Assigned index",E,"story:",K.full_slug)}this.setStory(K),this.experimentId=$||null,this.abEnabled?(this.experimentEvent=w.content.experiment_event,this.experimentPersonProperty=w.content.experiment_person_property,A(K.full_slug,$)):$&&A(null,$)})},setActiveVariant(){var m;if(typeof window=="undefined"||!this.story||!this.abEnabled||!window.posthog)return;if(!this.experimentId||!this.storyFullSlug||!this.experimentEvent||!this.experimentPersonProperty){console.error("Attempted to send active variant event but missing data");return}const l=this.experimentEvent;console.log(`AB enabled. 2experimentId: `,this.experimentId,` 3experimentEvent: `,this.experimentEvent,` 4experimentPersonProperty: `,this.experimentPersonProperty,` 5activeVariantSlug: `,this.storyFullSlug),(m=window.posthog)==null||m.capture(l,{experimentId:this.experimentId,activeVariantSlug:this.storyFullSlug,$set:{[this.experimentPersonProperty]:this.storyFullSlug,[this.experimentEvent]:this.experimentId},$set_once:{[`${this.experimentPersonProperty}_initial`]:this.storyFullSlug,[`${this.experimentEvent}_initial`]:this.experimentId}})}}})},48206:function(tt,W,c){c.d(W,{A:function(){return m}});var R=function(){var s=this,g=s._self._c;return g("section",{staticClass:"signup-landing flex-center columns main-section"}
5,[g("header",[s._m(0),s._v(" "),s._m(1)]),s._v(" "),g("router-link",{staticClass:"btn-green uppercase",attrs:{to:{name:"devenir"}}},[s._v(` 6 `+s._s(s.data.btn)+` 7 `)])],1)},D=[function(){var l=this,s=l._self._c;return s("h3",{staticClass:"section-title"},[l._v(` 8 `+l._s(l.data.header.title)+` 9 `)])},function(){var l=this,s=l._self._c;return s("h4",{staticClass:"section-sub-title"},[l._v(` 10 `+l._s(l.data.header.subTitle)+` 11 `)])}],x={name:"BaseSignup",data(){return{data:{header:{title:"Devenez auto-entrepreneur en quelques clics !",subTitle:"Relaxez-vous, nous nous occupons de tout"},btn:"Je cr\xE9e mon auto-entreprise"}}}},j=x,z=c(14486),H=(0,z.A)(j,R,D,!1,null,"72086b94",null),m=H.exports},87603:function(tt,W,c){c.r(W),c.d(W,{default:function(){return dt}});var R=function(){var n=this,r=n._self._c,v=n._self._setupProxy;return r("main",{staticClass:"informer",attrs:{id:"main-content"}},[v.kbPostStoryblok?r(v.KbPost,{directives:[{name:"editable",rawName:"v-editable",value:v.cmsStore.story,expression:"cmsStore.story"}],attrs:{post:v.kbPostStoryblok,is404:!1,"is-content-editor":!1}}):n._e(),n._v(" "),r(v.BaseSignup)],1)},D=[],x=c(64628),j=c(58208),z=c(88998),H=c(30009),m=c(11874),l=c(24387),s=c(83385),g=c(24952),P=c(51893),I=c(99320),b=c(2278);function M(e){const n={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,r=>n[r])}function A(e){return e?e.linktype==="url"&&e.url?e.url:e.linktype==="story"&&e.cached_url?`/${e.cached_url}`:"#":"#"}function B(e,n,r,v={}){const{additionalClasses:p="",target:_="_self"}=v,a=`cta-button-a cta-button-a-${r}${p?" "+p:""}`;return`<a href="${n}" class="${a}" target="${_}">${e}</a>`}function w(e){var n,r,v,p,_;const a=(r=M((n=e.link)==null?void 0:n.url))!=null?r:"",f=(v=M(e.text))!=null?v:"Cliquez ici",h=e.color||"blue",C=(_=(p=e.link)==null?void 0:p.target)!=null?_:"_self";return`<p class="cta-button">${B(f,a,h,{target:C})}</p>`}function y(e){const n={green:"info-content",blue:"blue-info-box",quote:"quote-info-box",notify:"notify-box"},r={green:"Le saviez-vous ?",blue:"Bon \xE0 savoir",quote:"T\xE9moignages et avis",notify:"Information importante"},v=e.variant||"blue",p=n[v]||"blue-info-box",_=e.title||r[v]||"Information",a=e.content?$.render(e.content):"";return`<article class="info-box ${p}"> 12 <p class="info-box-icon"></p> 13 <p class="inline-block">${_}</p> 14 ${a} 15 <button class="jump-out"></button> 16</article><p></p>`}function L(e){return`<lite-youtube videoid="${e.videoId||""}"></lite-youtube>`}function O(e){var n,r,v;const p=e.card_title||"",_=e.card_content?$.render(e.card_content):"",a=((n=e.card_image)==null?void 0:n.filename)||"",f=a?`<img src="${a}" alt="" class="tldr-image">`:"",h=(r=e.cta)==null?void 0:r[0],C=h==null?void 0:h.text,V=((v=h==null?void 0:h.link)==null?void 0:v.url)||"#",S=(h==null?void 0:h.color)||"blue",Y=B(C,V,S,{additionalClasses:"tldr-cta text-sm"});return`<div class="tldr-card"> 17 <div class="tldr-card-left"> 18 <div class="d-flex justify-content-between"> 19 <h3 class="tldr-title">${p}</h3> 20 <div class="d-block d-md-none">${f}</div> 21 </div> 22 <div class="tldr-divider"></div> 23 <div class="tldr-benefits-content text-sm"> 24 ${_} 25 </div> 26 </div> 27 <div class="tldr-card-right"> 28 <div class="d-none d-md-block">${f}</div> 29 ${Y} 30 </div> 31</div>`}const $=(0,I.AM)({resolvers:{[b.Fh.IMAGE]:(e,n)=>{var r,v;const p=n.originalResolvers.get(b.Fh.IMAGE),_=(r=p==null?void 0:p(e,n))!=null?r:"",a=e.marks,f=a==null?void 0:a.find(h=>h.type==="link");return(v=f==null?void 0:f.attrs)!=null&&v.href?n.render("a",{href:f.attrs.href,target:f.attrs.target||"_self"},_):_},[b.Fh.TABLE]:(e,n)=>{let r=Array.isArray(e.children)?e.children.join(""):e.children||"";return r=r.replace(/<th(\s|>)/g,"<td$1").replace(/<\/th>/g,"</td>"),n.render("table",{class:"kb-table-default-style kb-table-normal"},r)},blok:e=>{var n;const r=(n=e==null?void 0:e.attrs)==null?void 0:n.body;return r?(Array.isArray(r)?r:[r]).map(p=>{switch(p.component){case"kb_button":return w(p);case"kb_info_box":return y(p);case"kb_youtube_embed":return L(p);case"kb_tldr_card":return O(p);default:return console.warn("Unknown KB component type:",p.component),""}}).join(""):""}},optimizeImages:{class:"kb-optimized-image",loading:"lazy",width:800,height:600,srcset:[400,800,1200,1600],sizes:["(max-width: 640px) 100v
31w","(max-width: 1024px) 50vw","800px"],filters:{format:"webp",quality:80}}});var Q=c(7358),K=c(48206),J=Object.defineProperty,E=Object.defineProperties,i=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,N=(e,n,r)=>n in e?J(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,k=(e,n)=>{for(var r in n||(n={}))F.call(n,r)&&N(e,r,n[r]);if(u)for(var r of u(n))X.call(n,r)&&N(e,r,n[r]);return e},G=(e,n)=>E(e,i(n)),ot=(e,n,r)=>new Promise((v,p)=>{var _=h=>{try{f(r.next(h))}catch(C){p(C)}},a=h=>{try{f(r.throw(h))}catch(C){p(C)}},f=h=>h.done?v(h.value):Promise.resolve(h.value).then(_,a);f((r=r.apply(e,n)).next())});const it={computed:k({},(0,m.aH)(g.f,["story"])),mounted(){(0,g.f)().useStoryblokBridge(this.story)},serverPrefetch(){return ot(this,null,function*(){yield(0,g.f)(this.$pinia).fetchStory({slug:"pae-kb-content/statut-auto-entrepreneur",$ssrContext:this.$ssrContext}).catch(n=>{console.error(n),(0,P.e)().setPageNotFound(!0)})})}};var lt=(0,x.pM)(G(k({},it),{__name:"StatutAutoEntrepreneurStoryblok",setup(e){const n=(0,g.f)(),r=t=>{var o;if(!t||typeof t=="string")return;const d=t==null?void 0:t.content;if(d!=null&&d.first_name)return{id:0,first_name:d.first_name,last_name:d.last_name||"",description:d.bio||void 0,avatar:((o=d.avatar)==null?void 0:o.filename)||void 0}},v=t=>{var o,d,nt,rt;const T=t.content,ct=$.render(T.intro),vt=(T.chapters||[]).map((U,pt)=>{const q=(pt+1).toString(),_t=`chapter-${q}`;return{id:q,title:U.title?U.title.trim():"",content:$.render(U.content),html_id:_t,post:q,side_title:U.navigation_title||U.title.trim(),storyblok_editable:{_editable:U._editable}}});return{id:999999,slug:"STORYBLOK_STORY",title:T.title.trim(),description:ct,publication_date:T.date_modified||t.published_at,updated:T.date_published||t.first_published_at,chapters:vt,show_side_nav:!0,show_cta:!0,single_page_subcategory:!1,custom_cta:{id:0,name:"Default CTA",description:"Cr\xE9ez votre auto-entreprise simplement et rapidement !",text:"Cr\xE9er mon auto-entreprise",btn_bg_color:"#1EB386",btn_text_color:"#FFFFFF",url:"/devenir-auto-entrepreneur",logo:"portail"},current_rating:Number.parseFloat((d=(o=T.ratings)==null?void 0:o[0])==null?void 0:d.current_rating)||void 0,ratings:Number.parseInt((rt=(nt=T.ratings)==null?void 0:nt[0])==null?void 0:rt.ratings)||void 0,author:r(T.author),expert_author:r(T.expert_author),reading_time:Number.parseInt(T.reading_time)||void 0}},p=(0,x.EW)(()=>v(n.story)),_=(0,x.EW)(()=>n.story),a=(0,x.EW)(()=>{var t,o,d;return(d=(o=(t=_.value)==null?void 0:t.content)==null?void 0:o.seo)==null?void 0:d[0]}),f=(0,x.EW)(()=>{var t;return(t=a.value)==null?void 0:t.og_image}),h=1200,C=630,V=(0,x.EW)(()=>{var t;if((t=f.value)!=null&&t.filename)return`${f.value.filename}/m/${h}x${C}/smart`}),S=(0,x.EW)(()=>{var t,o;const d=(o=(t=_.value)==null?void 0:t.content)==null?void 0:o.author;if(!(!d||typeof d=="string"))return d==null?void 0:d.content}),Y=(0,x.EW)(()=>{var t;const o=(t=a.value)==null?void 0:t.keywords;if(o)return o.split(",").map(d=>d.trim()).filter(Boolean)}),et=(0,l.lq)(),Z=(0,x.EW)(()=>{var t,o;return(o=(t=a.value)==null?void 0:t.canonical_url)!=null&&o.url?a.value.canonical_url.url:`${s.l.canonicalDomain}${et.path}`});return(0,z.Q5)({title:()=>{var t;return(t=a.value)==null?void 0:t.title},description:()=>{var t;return(t=a.value)==null?void 0:t.description},robots:()=>{var t;return(t=a.value)==null?void 0:t.robots},ogTitle:()=>{var t;return(t=a.value)==null?void 0:t.title},ogDescription:()=>{var t;return(t=a.value)==null?void 0:t.description},ogType:()=>{var t;return((t=a.value)==null?void 0:t.og_type)||"website"},ogUrl:()=>Z.value,ogImage:()=>{var t,o;return V.value?{url:V.value,alt:(o=(t=f.value)==null?void 0:t.alt)!=null?o:void 0,width:h,height:C}:void 0},articleSection:()=>{var t;return(t=a.value)!=null&&t.article_section?a.value.article_section:void 0},articleAuthor:()=>S.value?[`${S.value.first_name} ${S.value.last_name||""}`.trim()]:[],articleTag:()=>Y.value,articlePublishedTime:()=>{var t,o;return(o=(t=_.value)==null?void 0:t.content)==null?void 0:o.date_published},articleModifiedTime:()=>{var t,o;return(o=(t=_.value)==null?void 0:t.content)==null?void 0:o.date_modified},twitterCard:"summary_large_image",twitterTitle:()=>{var t;
31return(t=a.value)==null?void 0:t.title},twitterDescription:()=>{var t;return(t=a.value)==null?void 0:t.description},twitterImage:()=>V.value}),(0,H.u)({link:[{rel:"canonical",href:()=>Z.value}],meta:[{name:"article:publisher",content:s.l.facebookPageUrl}]}),(0,j.Fp)([(0,j.mk)({headline:()=>{var t,o,d;return((t=a.value)==null?void 0:t.title)||((d=(o=_.value)==null?void 0:o.content)==null?void 0:d.title)},description:()=>{var t;return(t=a.value)==null?void 0:t.description},datePublished:()=>{var t,o;return(o=(t=_.value)==null?void 0:t.content)==null?void 0:o.date_published},dateModified:()=>{var t,o,d;return((o=(t=_.value)==null?void 0:t.content)==null?void 0:o.date_modified)||((d=_.value)==null?void 0:d.published_at)},inLanguage:"fr",author:()=>{var t,o,d;return(t=S.value)!=null&&t.first_name?(0,j.TO)({name:`${S.value.first_name} ${S.value.last_name||""}`.trim(),description:S.value.bio||void 0,image:((o=S.value.avatar)==null?void 0:o.filename)||void 0,url:((d=S.value.url)==null?void 0:d.cached_url)||void 0}):!1},image:()=>{var t;return(t=f.value)!=null&&t.filename?{"@type":"ImageObject",url:f.value.filename,width:f.value.width||void 0,height:f.value.height||void 0}:void 0},keywords:()=>Y.value,articleSection:()=>{var t;return(t=a.value)!=null&&t.article_section?[a.value.article_section]:void 0}})]),{__sfc:!0,cmsStore:n,convertStoryblokAuthor:r,convertStoryblokToLegacy:v,kbPostStoryblok:p,story:_,seo:a,ogImg:f,OG_IMAGE_WIDTH:h,OG_IMAGE_HEIGHT:C,ogImgResized:V,author:S,keywords:Y,route:et,canonicalUrl:Z,KbPost:Q.A,BaseSignup:K.A}}})),at=lt,st=c(14486),ut=(0,st.A)(at,R,D,!1,null,"32495c31",null),dt=ut.exports}}]);
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.