PageSourceSearch

https://vordur.is/_next/static/chunks/3531.e831981019e4f0e8.js

js vordur.is collected 2026-10-08 07:52:17 UTC 10,652 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3531,1940,138],{61940:function(e,t,n){n.r(t);var i=n(85893),s=n(67294),a=n(41686),o=n(36719),l=n(76030);let r=a.default.div.withConfig({displayName:"Wrapper",componentId:"sc-cb8ba70f-0"})(["display:flex;align-items:center;justify-content:center;width:50%;height:100%;background-color:transparent;"]),u=a.default.div.withConfig({displayName:"Content",componentId:"sc-cb8ba70f-1"})(["width:",";position:relative;display:flex;align-items:center;justify-content:space-between;height:20px;"],(0,o.ifProp)({size:"small"},"25px","60px")),d=a.default.div.withConfig({displayName:"Dot",componentId:"sc-cb8ba70f-2"})(["width:",";height:",";border-radius:20px;background-color:",";position:absolute;&:first-child{left:0;}&:nth-child(2){left:",";}&:last-child{right:0;}"],(0,o.ifProp)({size:"small"},"4px","12px"),(0,o.ifProp)({size:"small"},"4px","12px"),e=>(0,o.palette)(e.color||"primary"),(0,o.ifProp)({size:"small"},"calc(50% - 2px)","calc(50% - 5px)"));t.default=function(e){let{color:t,size:n}=e;return(0,s.useEffect)(()=>{l.default.timeline({loop:!0}).add({targets:".loading-dot",scale:.2,translateY:10,duration:0,easing:"linear"}).add({translateY:0,targets:".loading-dot",easing:"spring(1, 120, 6, 6)",delay:l.default.stagger(70),duration:0,scale:1})},[]),(0,i.jsx)(r,{children:(0,i.jsxs)(u,{size:n||"normal",children:[(0,i.jsx)(d,{className:"loading-dot",color:t,size:n||"normal"}),(0,i.jsx)(d,{className:"loading-dot",color:t,size:n||"normal"}),(0,i.jsx)(d,{className:"loading-dot",color:t,size:n||"normal"})]})})}},87015:function(e,t,n){n.d(t,{Z:function(){return v}});var i=n(82729),s=n(85893);n(67294);var a=n(41686),o=n(36719),l=n(55033),r=n(82962),u=n(5152);function d(){let e=(0,i._)(["\n    height: 100px;\n    min-width: 100px;\n  "]);return d=function(){return e},e}let c=n.n(u)()(()=>n.e(8388).then(n.bind(n,39879)).then(e=>e.Player),{loadableGenerated:{webpack:()=>[39879]},ssr:!1}),p=a.default.div.withConfig({displayName:"Wrapper",componentId:"sc-5c61633-0"})(["position:absolute;display:",";top:0;left:0;right:0;z-index:",";width:100%;height:100%;"],(0,o.ifProp)("$active","inherit","none"),l.Z.zIndex.highest),f=a.default.div.withConfig({displayName:"Overlay",componentId:"sc-5c61633-1"})(["position:absolute;top:0;right:0;align-items:center;justify-content:center;width:100%;height:100vh;height:100%;background-color:",";opacity:0.2;"],(0,o.palette)("background4")),h=(0,a.default)(c).withConfig({displayName:"StyledLottiePlayer",componentId:"sc-5c61633-2"})(["position:fixed;height:125px;min-width:125px;top:calc(50% - 100px);right:0;left:0;opacity:1;",""],r.Z.lessThan("sizeSM")(d()));function v(e){let{active:t}=e;return(0,s.jsxs)(p,{$active:!!t,children:[(0,s.jsx)(f,{}),(0,s.jsx)(h,{autoplay:!0,loop:!0,controls:!1,src:"/js/Vordur-loader.json"})]})}},83531:function(e,t,n){n.r(t),n.d(t,{default:function(){return q}});var i=n(85893),s=n(67294),a=n(11163),o=n.n(a),l=n(5642),r=n(26237),u=n(56635),d=n(91954),c=n(27937),p=n(84696),f=n(65313),h=n(89183),v=n(61940),g=n(87015),m=n(43277),x=n(89225),y=n(64697);function q(e){var t,n;let{assessment:a,QuoteCollectionNo:q,quoteNos:w,icons:k}=e,{addNotification:b}=(0,f.useNotification)(),j=(0,d.PR)(),[S,I]=(0,s.useState)(!1),[N,C]=(0,s.useState)(0),[T,_]=(0,s.useState)(!0),[A,F]=(0,s.useState)(a),P=(0,s.useRef)(N),z=(0,s.useRef)(A),E=(0,s.useRef)(T),R=e=>{P.current=e,(0,m.ri)(e,"rm_baby_step"),localStorage.setItem("rm_baby_step",e.toString()),C(e),W(e)},V=e=>{z.current=e,F(e)},B=e=>{E.current=e,_(e)},G=null===(t=A.questionnaire.questions)||void 0===t?void 0:t.findIndex(e=>"VordurChildProduct.VordurChildBlock___Section1"===e.id),Z=null===(n=A.questionnaire.questions)||void 0===n?void 0:n[N+G],$=(0,s.useMemo)(()=>[...(0,p.pU)(A,k)],[]),M=(0,s.useCallback)(async e=>{try{if($[0].totalSteps===P.current+1&&e.completed){await l.fW.lnhResults((null==j?void 0:j.token)||"",{},{riskassessmentId:e.conversationId}),o().push("/minar-sidur/ahaettumat/barnatrygging/samantekt?conversationId=".concat(e.conversationId));return}R(P.current+1),window.scrollTo(0,0),B((0,p.L8)(Z))}catch(e){b({header:"Villa",text:"Villa hefur komi\xf0 upp. Vinsamlega reyni\xf0 aftur s\xed\xf0ar.",type:"error",timeout:3e3})}},[N]),W=async e=>{let t=a.questionnaire.questions[e+G],{id:n,type:i}=t.questions[0],s=n;
1if("group"===i){let{id:e}=t.questions[0].questions[0];s=e||s}s&&await (0,x.bq)(null==j?void 0:j.token,{QuoteCollectionNo:q,Id:s,quoteNos:w})},L=async(e,t)=>{I(!0);let n=(0,d.PR)();try{let{data:i}=await l.fW.postRiskAssessment("lnh")((null==n?void 0:n.token)||"",z.current,{});V(i);let s=i.questionnaire.questions[P.current+G];if((0,p.L8)(s)&&!t&&(0,p.YT)(s.questions,e)){await M(i),I(!1);return}B((0,p.L8)(s)&&!t)}catch(e){b({header:"Villa",text:"Villa hefur komi\xf0 upp. Vinsamlega reyndu aftur. Ef vandam\xe1li\xf0 heldur \xe1fram l\xe1ttu okkur endilega vita.",type:"error",timeout:5e3})}finally{I(!1)}};(0,h.ZP)("popstate",e=>{window.scrollTo(0,0),e.preventDefault(),P.current-1>=0?(R(P.current-1),B(!0)):o().push("/minar-sidur/ahaettumat/velkomin?insurance=ba")}),(0,s.useEffect)(()=>{let e=(0,p.s2)(A);e||B(!0),R((0,p.O3)(G,"rm_baby_step",e))},[]);let U=e=>{let{answerState:t,questions:n}=e;return[t,...(null==n?void 0:n.length)>0?n.flatMap(e=>U(e)):[]]};return(0,s.useEffect)(()=>{Z.questions.length>0&&B(!Z.questions.flatMap(e=>U(e)).filter(Boolean).some(e=>"valid"!==e))},[Z]),(0,i.jsxs)(u.Hc,{children:[(0,i.jsx)(g.Z,{active:S&&!T}),(0,i.jsx)(c.default,{step:N,onBackClick:()=>o().back(),groups:$,hideBuyButton:!0}),(0,i.jsxs)(u.HN,{children:[(0,i.jsx)(r.Z,{riskAssessment:A,displayButton:B,questions:Z,sectionIndex:N,onClick:L,trackingName:"AHAETTUMAT-Barnatrygging",quoteCollectionNo:q,quoteNos:w,isTopLevel:!0}),T&&(0,i.jsx)(u.Wj,{children:(0,i.jsx)(y.default,{disabled:S,tabIndex:-1,onClick:()=>L(!1),children:S?(0,i.jsx)(v.default,{color:"white"}):"\xc1fram"})})]})]})}},26237:function(e,t,n){n.d(t,{Z:function(){return x}});var i=n(85893),s=n(67294),a=n(96522),o=n(39832),l=n.n(o),r=n(67002),u=n(98097),d=n(63167),c=n(56635),p=n(3098),f=n(91954),h=n(84696),v=n(18016),g=n(6781),m=e=>{var t;let{riskAssessment:n,questions:a,AFGTracker:o,onClick:m,category:x,setAFGTracker:y,trackingName:q,loadingScreen:w,setLoadingScreen:k}=e,b=null==a?void 0:null===(t=a.questions)||void 0===t?void 0:t[o.index],j=(0,f.PR)(),[S,I]=(0,s.useState)(a.answer),[N,C]=(0,s.useState)(!1),[T,_]=(0,s.useState)([b.questions[0]]),[A,F]=(0,s.useState)(0),[P,z]=(0,s.useState)([]),[E,R]=(0,s.useState)(!1),[V,B]=(0,s.useState)((0,i.jsx)(i.Fragment,{})),G=(0,s.useRef)(N),Z=(0,s.useRef)(T),$=e=>{(Z.current[0].id===T[0].id||"valid"===Z.current[0].answerState)&&(G.current=e,C(e))},M=e=>{Z.current=e,_(e)},W=o.screen,L=async(e,t)=>{let i=S[o.index].id,s=e.replace("".concat(i,"."),"");"function"==typeof d.r[s]&&z(await d.r[s](t,n,N))},U=async e=>{let t=S[o.index].id,i=e.replace("".concat(t,"."),""),s=await (0,h.Xq)(i,t,n);s&&B(s)};(0,s.useEffect)(()=>{R(!a.nextUnusedFactor);let e=[],t=(i,s,a)=>{i&&i.map((i,o)=>{var l,r,u;s&&(a=+(null===(l=i.tags.screenNo)||void 0===l?void 0:l[0])||0);let d=null===(r=i.tags.component)||void 0===r?void 0:r[0];if(a==W&&(null==i?void 0:null===(u=i.tags)||void 0===u?void 0:u.display[0])&&d){L(i.id,i),e.push(i),s&&F(o);try{(0,p.I)({name:q,properties:{Type:"Question",Meta:{Question:{Id:i.id,Category:x}}}},null==j?void 0:j.userName,n.conversationId)}catch(e){console.warn(e)}}t(i.questions,!1,a)})};t(b.questions,!0),U(e[0].id),M(e)},[W,A]),(0,s.useEffect)(()=>{var e,t;let n=(null===(e=T[0].tags.screenNo)||void 0===e?void 0:e[0])||0,i={...o,totalQuestionNumber:+n>(null==b?void 0:b.questions.length)-1?+n:(null==b?void 0:b.questions.length)-1};y(i),null===(t=history)||void 0===t||t.pushState({...history.state,AFGTracker:i},"afg_tilbod_step",window.location.href)},[T]),(0,s.useEffect)(()=>{if(b.questions){var e;let t=b.questions.find(e=>{var t,n;return+(null===(n=e.tags)||void 0===n?void 0:null===(t=n.screenNo)||void 0===t?void 0:t[0])===W});if("valid"!==t.answerState||(0,v.ev)(t.questions))return;let n=b.questions.find(e=>{var t,n;return+(null===(n=e.tags)||void 0===n?void 0:null===(t=n.screenNo)||void 0===t?void 0:t[0])===W+1}),i=o.index+1!=(null==a?void 0:a.questions.length),s=(null===(e=localStorage)||void 0===e?void 0:e.getItem("AFGTracker"))!==null?JSON.parse(localStorage.getItem("AFGTracker")):o;if(!n){i&&y({...o,index:o.index+1,screen:1});return}y({...s,screen:s.screen+1});return}},[n]);let Y=e=>{l().apply(n,'$.questionnaire..questions[?(@.id=="'.concat(a.id,'")]'),t=>({...t,answer:e})),I(e)},D=async()=>{w||(k(!0),B((0,i.jsx)(i.Fragment,{})),Z.current.length>
11&&Z.current.forEach(e=>{var t;let i=(0,v.ee)(e.type),s=null===(t=l().query(n,'$.questionnaire..questions[?(@.id=="'.concat(e.id,'")]'))[0])||void 0===t?void 0:t.answer;l().apply(n,'$.questionnaire..questions[?(@.id=="'.concat(e.id,'")]'),e=>({...e,answer:s||i}))}),await (null==m?void 0:m()),k(!1))},H=(e,t,i)=>{let s="number"===t?parseInt((e||"").replace(/\D/g,""),10):e;l().apply(n,'$.questionnaire..questions[?(@.id=="'.concat(null!=i?i:T[0].id,'")]'),e=>({...e,answer:s})),i&&U(i)},O=async e=>{if(A+1===b.questions.length){if("Yes"===e.id&&a.nextUnusedFactor)S.length<=o.index+1&&(Y([...a.answer,{id:a.nextUnusedFactor.id}]),await (null==m?void 0:m()));else{Y([...a.answer].splice(0,o.index+1)),await (null==m?void 0:m(!0));return}}D()},Q=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=arguments.length>2?arguments[2]:void 0,s="string"==typeof e&&(0,r.ut)((null!=i?i:T[0].id).split(".")[1],e)||e;l().apply(n,'$.questionnaire..questions[?(@.id=="'.concat(null!=i?i:T[0].id,'")]'),e=>({...e,answer:s})),t&&O(s)};return(0,i.jsxs)(i.Fragment,{children:[T.map((e,t)=>{var s;return(0,i.jsx)(u.default,{reflex:!0,questions:e,onSelectedClick:Q,displayButton:$,riskAssessment:n,type:null===(s=e.tags.component)||void 0===s?void 0:s[0],onType:H,sectionId:b.id,values:null==P?void 0:P[0],defaultValue:null==P?void 0:P[1],AFGTracker:o,stopAFGAddition:E},t)}),V&&(0,i.jsx)(c.G9,{children:V}),N&&(0,i.jsx)(c.Wj,{children:(0,i.jsx)(g.Y,{onClick:D,children:"\xc1fram"})})]})},x=e=>{var t,n;let{sectionIndex:s,onClick:o,displayButton:l,extraText:r,questions:u,isTopLevel:d,setAFGTracker:c,AFGTracker:p,category:f,...h}=e;return d?(0,i.jsx)(i.Fragment,{children:null==u?void 0:null===(n=u.questions)||void 0===n?void 0:n.map(e=>(0,i.jsx)(a.Z,{questions:e,onClick:o,displayButton:l,sectionIndex:s,extraText:r,category:f,...h},e.id))}):(null==l||l(!1),(0,i.jsx)(m,{setAFGTracker:c,AFGTracker:p,onClick:o,questions:null==u?void 0:null===(t=u.questions)||void 0===t?void 0:t[0],category:f,...h}))}}}]);

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.