1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="79916442-2c12-44b7-b3a3-ef0114e1e3ee",e._sentryDebugIdIdentifier="sentry-dbid-79916442-2c12-44b7-b3a3-ef0114e1e3ee")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[875],{11174:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSG:()=>y,default:()=>v});var i=a(37876),s=a(14232),r=a(89099),n=a(85352),o=a(1005),l=a(61588),d=a(14887),c=a(43846),p=a(5242),m=a(60260),h=a(73956),g=a(21026),u=a(66773),f=a(60880),b=a(58019),x=a(3192),y=!0;function v({globalSettings:e}){let t=(0,r.useRouter)(),{leadId:a}=t.query,{Canvas:y}=(0,n.i)(),{lang:k,segment:j}=(0,g.t)(),{source:N,campaign:S}=(0,h.L)(),[_,w]=(0,s.useState)((0,d.yF)());(0,s.useEffect)(()=>{let{phone:e,email:a,...i}=t.query;("string"==typeof e||"string"==typeof a)&&(w(t=>({...t,customer:{...t.customer,email:a,phone:[e.slice(0,3),e.slice(3)]}})),t.replace({query:i},void 0,{shallow:!0}))},[t,t.query]);let[C,A]=(0,s.useState)(!1),[I,E]=(0,s.useState)(!1);(0,s.useEffect)(()=>{E("localhost"===window.location.hostname||window.location.hostname.includes("vercel.app"))},[]);let[D,T]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=new Date,t=e.getDay(),a=e.getHours();T(t>=1&&t<=5&&a>=9&&a<16)},[]);let[q,z]=(0,s.useState)(null),[R,B]=(0,s.useState)(!1),[L,V]=(0,s.useState)(null),[F,M]=(0,s.useState)(null);(0,s.useEffect)(()=>{M((0,p.Xb)())},[]);let O=(0,m._x)({ids:{},linkSource:"qr",segment:j,lang:k,source:N,campaign:S}),U=(0,m._x)({ids:{},linkSource:"mobile",segment:j,lang:k,source:N,campaign:S});async function P(e){e.preventDefault(),A(!0),z(null);try{if(!a||"string"!=typeof a)throw Error("Inget lead-ID hittades. V\xe4nligen g\xe5 tillbaka och f\xf6rs\xf6k igen.");console.log("Submitting form for leadId:",a);let e=await fetch("/api/starta-med-lunar/submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({leadId:a,application:_})}),t=await e.json();if(!e.ok||!t.success)throw Error(t.error||"N\xe5got gick fel vid inl\xe4mning av ans\xf6kan");console.log("Submission successful, case ID:",t.caseId),V(t.caseId),B(!0)}catch(e){console.error("Error submitting form:",e),z(e instanceof Error?e.message:"Ett ov\xe4ntat fel intr\xe4ffade. V\xe4nligen f\xf6rs\xf6k igen.")}finally{A(!1)}}return R&&L?(0,i.jsxs)(o.A,{globalSettings:e,headerStyle:"dark",title:"Tack f\xf6r din ans\xf6kan - Starta aktiebolag",description:"Din ans\xf6kan f\xf6r aktiebolag har mottagits.",pageTitle:"Tack f\xf6r din ans\xf6kan",noIndex:!0,docType:"page",children:[(0,i.jsx)("style",{children:f.x}),(0,i.jsx)(u.m,{children:(0,i.jsxs)("div",{className:"success-container",children:[(0,i.jsxs)("div",{className:"success-header",children:[(0,i.jsxs)("h1",{className:"success-title",children:[(0,i.jsx)(b.h,{type:b.A.CIRCLED_CHECK,style:{width:"1em",verticalAlign:"middle"}})," ","Perfekt!"]}),(0,i.jsx)("p",{className:"success-description",children:"Du \xe4r nu p\xe5 god v\xe4g att starta ditt aktiebolag. F\xf6r att fullf\xf6lja din registrering beh\xf6ver du nu ans\xf6ka om ett f\xf6retagskonto. Det g\xf6r du enkelt med Lunars app â scanna och kom ig\xe5ng!"})]}),(0,i.jsxs)("div",{className:"success-grid",children:[(0,i.jsxs)("div",{className:"steps-section",children:[(0,i.jsx)("h2",{className:"steps-title",children:"N\xe4sta steg"}),(0,i.jsxs)("div",{className:"steps-list",children:[(0,i.jsxs)("div",{className:"step-item",children:[(0,i.jsx)("div",{className:"step-number",children:"1"}),(0,i.jsxs)("div",{className:"step-content",children:[(0,i.jsx)("h3",{className:"step-title",children:"Ladda ner Lunar-appen"}),F?(0,i.jsx)("div",{className:"step-app-download",children:(0,i.jsx)(c.A,{linkAppStore:"https://play.google.com/store/apps/details?id=com.lunarway.app&hl=sv&gl=SE",linkGooglePlay:"https://apps.apple.com/se/app/lunar-bank-app/id1068850213",onelinkUrl:U,orientation:"vertical"})}):(0,i.jsx)("p",{className:"step-description",children:"Scanna QR-koden till h\xf6ger f\xf6r att ladda ner appen."})]})]}),(0,i.jsxs)("div",{className:"step-item",children:[(0,i.jsx)("div",{className:"step-number",children:"2"}),(0,i.jsxs)("div",{className:"step-content",children:[(0,i.jsx)("h3",{className:"step-title",children:"Ans\xf6k om ett f\xf6retagskonto och skippa Verksamt-steget"}),(0,i.jsxs)("div",{style:{display:"flex",gap:"16px",marginTop:12},children:[(0,i.jsxs)("div",{style:{flex:1},children:[(0,i.jsx)("div",{style:{marginBottom:"6px"},children:'V\xe4lj "Starta ett aktiebolag" i appen och f\xf6lj stegen.'}),(0,i.jsx)("div",{children:(0,i.jsx)(x.A,{type:"vimeoFiles",vimeoUrl:"https://vimeo.com/1189721735",width:718,height:1470,duration:0,muted:!1,thumbnail:"https://i.vimeocdn.com/video/2154303176-1b0bc666e189741d5fe6906b639beb5c7797263ab2221cc002dd1132c98dbcbd-d?region=us",videoFiles:[{link:"https://player.vimeo.com/progressive_redirect/playback/1189721735/rendition/360p/file.mp4%20%28360p%29.mp4?loc=external&oauth2_token_id=1716451392&signature=10c2ae0181eb0702277e0307c4c5e97cedf81767749babb5b108b96c7bb37583",quality:"360
1p",size:745677,width:312,height:640},{link:"https://player.vimeo.com/progressive_redirect/playback/1189721735/rendition/540p/file.mp4%20%28540p%29.mp4?loc=external&oauth2_token_id=1716451392&signature=de3472e8529ae0861c40de4b3e140670693b274631053bbb91238d613d5623d9",quality:"540p",size:1114549,width:468,height:960},{link:"https://player.vimeo.com/progressive_redirect/playback/1189721735/rendition/720p/file.mp4%20%28720p%29.mp4?loc=external&oauth2_token_id=1716451392&signature=d6869f04f5f8c8e0905d6559994b49718ee9dedc1927fb681d025500dfa79cc8",quality:"720p",size:1850697,width:668,height:1366}],autoplay:!0,loop:!0,controls:!0,containerSize:[718,1470],sizes:[]})})]}),(0,i.jsxs)("div",{style:{flex:1},children:[(0,i.jsx)("div",{style:{marginBottom:"6px"},children:"Hoppa \xf6ver Verksamt-steget â vi tar hand om det \xe5t dig!"}),(0,i.jsx)("div",{children:(0,i.jsx)(x.A,{type:"vimeoFiles",vimeoUrl:"https://vimeo.com/1189721717",width:718,height:1468,duration:0,muted:!1,thumbnail:"https://i.vimeocdn.com/video/2154302718-a841774e8580fb88828d0fc5cf0a4d62ea39602261e7fb47589ec09a095edd89-d?region=us",videoFiles:[{link:"https://player.vimeo.com/progressive_redirect/playback/1189721717/rendition/360p/file.mp4%20%28360p%29.mp4?loc=external&oauth2_token_id=1716451392&signature=e49cb1224d39755c2252e9ebce54efce980a7c2d34757299ddb38d5e747f1aa7",quality:"360p",size:460065,width:314,height:640},{link:"https://player.vimeo.com/progressive_redirect/playback/1189721717/rendition/540p/file.mp4%20%28540p%29.mp4?loc=external&oauth2_token_id=1716451392&signature=47a1efa7ac9aae50e62fab4a6fff136d7e394331a19a0cdbaf78dc1ad62d6667",quality:"540p",size:646539,width:470,height:960},{link:"https://player.vimeo.com/progressive_redirect/playback/1189721717/rendition/720p/file.mp4%20%28720p%29.mp4?loc=external&oauth2_token_id=1716451392&signature=dce922023cd61c607db78b7df0c9b72b3619a964c6415cefcd6e8098fe44e0e5",quality:"720p",size:983746,width:668,height:1366}],autoplay:!0,loop:!0,controls:!0,containerSize:[718,1468],sizes:[]})})]})]})]})]}),(0,i.jsxs)("div",{className:"step-item",children:[(0,i.jsx)("div",{className:"step-number",children:"3"}),(0,i.jsxs)("div",{className:"step-content",children:[(0,i.jsx)("h3",{className:"step-title",children:"Vi granskar hela din ans\xf6kan"}),(0,i.jsx)("p",{className:"step-description",children:"Vi g\xe5r igenom de uppgifter du angett h\xe4r samt de som du anger i appen och \xe5terkommer till dig inom kort. V\xe4nligen notera att du kommer beh\xf6va ange en del uppgifter en g\xe5ng till i appen."})]})]})]})]}),(0,i.jsx)("div",{className:"qr-section",children:F?null:(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"qr-title",children:"Scanna f\xf6r att ladda ner appen"}),O&&(0,i.jsx)("div",{className:"qr-wrapper",children:(0,i.jsx)("div",{className:"qr-box",children:(0,i.jsx)(y,{text:O,options:{width:250,errorCorrectionLevel:"M",margin:2}})})})]})})]})]})})]}):(0,i.jsx)(o.A,{globalSettings:e,headerStyle:"dark",title:"Starta aktiebolag - Lunar",description:"Ans\xf6k om registrering av aktiebolag. Vi hanterar hela processen \xe5t dig.",pageTitle:"Starta aktiebolag",noIndex:!0,docType:"page",children:(0,i.jsx)(u.m,{children:(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"10px",marginTop:"40px"},children:[(0,i.jsx)("h1",{style:{margin:0,fontSize:"32px",fontWeight:"bold"},children:"Vi hj\xe4lper dig att starta aktiebolag"}),("test"in t.query||I)&&(0,i.jsx)("button",{type:"button",onClick:()=>{w({customer:{firstName:"Anna",lastName:"Andersson",email:"[email protected]",phone:["+46","701234567"]},company:{street:"Storgatan 12",addressCo:"",postalCode:"11122",city:"Stockholm",email:"[email protected]"},companyName:"Innovativ Tech AB",companyAltName:"Smart Solutions AB",companyAltNameTwo:"",companyBusinessActivity:"Utveckling och f\xf6rs\xe4ljning av mjukvarul\xf6sningar f\xf6r f\xf6retag samt d\xe4rmed f\xf6renlig verksamhet.",businessActivityTemplate:"",boardMembers:[{personalIdentityNumber:"19900101-1234",firstName:"Anna",lastName:"Andersson",street:"Storgatan 12",citizenships:"Sverige",countryOfResidence:"Sverige",addressCo:"",postalCode:"11122",city:"Stockholm",roles:{founder:!0,boardMember:!0,boardChairman:!0,boardDeputy:!1,ceo:!0,viceCeo:!1}},{personalIdentityNumber:"19900101-1234",firstName:"Anna",lastName:"Andersson",street:"Storgatan 12",citizenships:"Sverige",countryOfResidence:"Sverige",addressCo:"",postalCode:"11122",city:"Stockholm",roles:{founder:!1,boardMember:!1,boardChairman:!0,boardDeputy:!0,ceo:!1,viceCeo:!1}}],signingRights:"board",signingRightsCustom:"",shareCapital:"25000",shareDistribution:[{boardMemberIndex:0,shares:250}],hasAuditor:!1,auditorType:"",auditor:{personalIdentityNumber:"",firstName:"",lastName:"",email:"",ph
1one:["+46",""],street:"",addressCo:"",postalCode:"",city:""},auditorCompany:{orgNumber:"",name:"",street:"",addressCo:"",postalCode:"",city:"",mainResponsible:{personalIdentityNumber:"",firstName:"",lastName:"",email:"",phone:["+46",""],street:"",addressCo:"",postalCode:"",city:""}},boardSeat:"Stockholm",digitalMeeting:"with-postal",fiscalYear:"jan-dec",termsAccepted:!1})},style:{padding:"8px 16px",fontSize:"14px",backgroundColor:"#f5f5f5",border:"1px solid #ddd",borderRadius:"6px",cursor:"pointer",color:"#666",fontWeight:"500"},title:"Fyll i formul\xe4ret med exempeldata f\xf6r testning",children:"\uD83E\uDDEA Fyll med testdata"})]}),(0,i.jsx)("p",{style:{marginBottom:"20px",color:"#666",fontSize:"16px"},children:"Att starta ett aktiebolag kan k\xe4nnas kr\xe5ngligt, men p\xe5 Lunar hj\xe4lper vi dig hela v\xe4gen f\xf6r att registrera ett aktiebolag. Genom denna tj\xe4nst hanterar vi hela processen \xe5t dig. Vi pratar med Bolagsverket f\xf6r din r\xe4kning, samt erbjuder dig att f\xe5 ett bankkonto under processen."}),(0,i.jsx)("p",{style:{marginBottom:"24px",color:"#666",fontSize:"16px"},children:"F\xf6r att vi ska kunna hj\xe4lpa dig beh\xf6ver vi att du fyller i nedan formul\xe4r och d\xe4refter fullf\xf6ljer din ans\xf6kan om bankkonto i Lunar-appen."}),D&&(0,i.jsx)("div",{className:"mb-large",children:(0,i.jsx)("div",{children:(0,i.jsxs)("p",{style:{margin:0,color:"#555"},children:[(0,i.jsx)(b.h,{type:b.A.QUESTIONMARK_CIRCLE,style:{width:"1.5em",verticalAlign:"middle",marginRight:"4px"}}),"Beh\xf6ver du hj\xe4lp med formul\xe4ret? Ring oss p\xe5"," ",(0,i.jsx)("a",{href:"tel:+46108085101",style:{color:"#00a827",textDecoration:"none"},children:"+46 10 808 51 01"})]})})}),q&&(0,i.jsxs)("div",{style:{background:"#ffebee",border:"1px solid #f44336",padding:"15px",borderRadius:"4px",marginBottom:"20px",color:"#c62828"},children:[(0,i.jsx)("strong",{children:"Fel:"})," ",q]}),!a&&(0,i.jsxs)("div",{style:{background:"#fff3e0",border:"1px solid #ff9800",padding:"15px",borderRadius:"4px",marginBottom:"20px",color:"#e65100"},children:[(0,i.jsx)("strong",{children:"Varning:"})," Inget lead-ID hittades i URL:en. Kontrollera att du har \xf6ppnat r\xe4tt l\xe4nk."]}),(0,i.jsx)(l.$,{formData:_,updateField:(e,t)=>{w(a=>({...a,[e]:t}))},onSubmit:P,isLoading:C})]})})})}},40186:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/foretag/starta-med-lunar/apply",function(){return a(11174)}])}},e=>{e.O(0,[3761,409,8019,4068,7512,1588,636,6593,8792],()=>e(e.s=40186)),_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.