1import{a3 as Q,h as x,g as S,bD as ke,y as Pe,cG as ye,r as Z,j as n,bo as L,k as $,B as W,da as Se,z as F,aU as ie,aA as Re,c5 as Ue,co as Me,bM as Ee,P as Fe,E as M,d as E,q as Ie,W as _,aN as we,bs as Be}from"./csw-BtSoxXyh.js";const Ae="Här visas dina senast anmälda skador. Har du nyligen anmält en skada kan det ta nÃ¥gra dagar innan den visas. Vill du se en tidigare skadeanmälan?",Oe="Kontakta oss sÃ¥ hjälper vi dig",Ge="Skadenummer",He="Kategori",$e="Gäller för",Le="Skadedatum",Ve="Anmälda skador",_e={step1:{text:"Du skickar in anmälan",progressText:"Registrerad"},step2:{text:"Vi gÃ¥r igenom informationen",progressText:"PÃ¥gÃ¥ende"},step3:{text:"Vi kontrollerar din försäkring",progressText:"Avslutad"},step4:{text:"Du fÃ¥r besked"}},qe={accessDenied:{header:"Behörighetsfel",text:"Du har inte behörighet till den här översikten. (Felkod: ${errorCodes})"},timeoutError:{header:"NÃ¥got gick fel",text:"Försök igen och kontakta oss om problemet kvarstÃ¥r. (Felkod: ${errorCodes})"},default:{header:"NÃ¥got gick fel",text:"Försök igen och kontakta oss om problemet kvarstÃ¥r. (Felkod: ${errorCodes})"}},q={intro:Ae,contactUs:Oe,claimNumber:Ge,claimCategory:He,claimRefers:$e,claimDate:Le,panelHeader:Ve,progressBar:_e,errors:qe},Ke="Kontakta oss",We="Här ser du detaljer för ditt ärende. Missade du nÃ¥got i din skadeanmälan kan du komplettera din anmälan. ",ze=" om du har nÃ¥gra frÃ¥gor.",Je="Detaljer",Qe="Skadeanmälan",Ye="Om försäkringen",Ze="Skadenummer",Xe="Skadedatum",er="Status",rr="Gäller för",nr="Försäkringsnummer",tr="Kategori",sr="Tillbaka",ir="Typ av skada",or="Gör komplettering",ar={OPEN:"Registrerad",ONGOING:"PÃ¥gÃ¥ende",CLOSED:"Ã
tgärdad",FINISHED:"Ã
tgärdad"},oe={contactUs:Ke,introPartOne:We,introPartTwo:ze,panelHeader:Je,aboutDamageReport:Qe,theInsurance:Ye,headerClaimNumber:Ze,headerClaimDate:Xe,headerClaimStatus:er,headerReference:rr,headerAgreement:nr,headerClaimType:tr,goBack:sr,subCategory:ir,editClaim:or,statusTranslations:ar},K="/insurance/nonlife/registered-claims/search",cr="/insurance/nonlife/property/claims/v1/details/${claimNumber}",lr="/insurance/nonlife/motor/claims/v2/details/${claimNumber}/${registrationPlateNumber}",ae="/insurance/nonlife/property/claims/v1/details/texts",ce="/insurance/nonlife/motor/claims/v2/details/texts",j={getClaimsForPerson:K,constructionDetails:cr,motorDetails:lr,constructionDetailsTexts:ae,motorDetailsTexts:ce};function le(){function e({claimNumber:s}){return Q(j.constructionDetails,{claimNumber:s})}function r({claimNumber:s,registrationPlateNumber:l}){return Q(j.motorDetails,{claimNumber:s,registrationPlateNumber:l})}function t(){return j.motorDetailsTexts}function u(){return j.constructionDetailsTexts}function c(){return j.getClaimsForPerson}return{getClaimsForPersonUrl:c,getConstructionDetailsTextsUrl:u,getConstructionDetailsUrl:e,getMotorDetailsTextsUrl:t,getMotorDetailsUrl:r}}const d=le(),ue={MOTOR:"MOTOR",CONSUMER:"CONSUMER"};function ur(e={}){return x.deepMerge({claimNumber:null,hasTriggeredGoto:!1,services:{}},e)}function re(e){return e.hasTriggeredGoto}function y(e,r){return e.services[r]={calling:!1,response:null,errors:null},e}function G(e,r,t){return e.services[r].calling=t,e}function H(e,r,t){return e.services[r].response=t.response,e.services[r].errors=t.errors,e.services[r].calling=!1,e}function v(e,r){return!!e.services[r]}function mr(e,r){return v(e,r)?e.services[r].calling:!1}function X(e,r){return v(e,r)?e.services[r].errors||[]:[]}function I(e,r){return X(e,r).length>0}function R(e,r){if(v(e,r))return e.services[r].response}function D(e){return x.get(e,"agreementObjectReference",null)}function w(e){const r=R(e,d.getClaimsForPersonUrl());return r?r.claims:[]}function C(e,r){return w(e).filter(function(t){return t.claimNumber===r})[0]}function U(e,r){return!!R(e,r)}function dr(e,r){return v(e,r)&&(e.services[r].response||e.services[r].errors)}function V(e,r){return!v(e,r)||I(e,r)||mr(e,r)?!1:!U(e,r)}function fr(e){const r=e.claimNumber;if(!r)return!1;const t=d.getConstructionDetailsUrl({claimNumber:r});return V(e,t)}function gr(e){if(!e.claimNumber)return!1;
1const t=d.getConstructionDetailsTextsUrl();return V(e,t)}function hr(e){const r=e.claimNumber;if(!r)return!1;const t=C(e,r),u=d.getMotorDetailsUrl({claimNumber:r,registrationPlateNumber:D(t)});return V(e,u)}function pr(e){if(!e.claimNumber)return!1;const t=d.getMotorDetailsTextsUrl();return V(e,t)}function xr(e){return V(e,d.getClaimsForPersonUrl())}function z(e){return I(e,d.getClaimsForPersonUrl())}function me(e){const r=X(e,d.getClaimsForPersonUrl()),t=ke(r);let u;return Pe(r[0])?u=S("errors.timeoutError",q):ye(r[0])?u=S("errors.accessDenied",q):u=S("errors.default",q),{header:u.header,text:Q(u.text,{errorCodes:t})}}function ee(e){return e==="ONGOING"||e==="OPEN"}function J(e){return x.get(e,"status",null)}function Cr(e,r){const t=J(C(e,r));return ee(t)}function br(e){return w(e).filter(function(r){return ee(J(r))})}function de(e){return U(e,d.getClaimsForPersonUrl())?w(e).filter(function(t){return ee(J(t))}).length>0:!1}function fe(e){const r=J(e);return!e||!r?"-":S("statusTranslations."+r,oe)}function Nr(e){return x.get(e,"claimNumber",null)}function vr(e){return x.get(e,"claimDate",null)}function jr(e){return x.get(e,"agreementId",null)}function Dr(e){return x.get(e,"claimCategory",null)}function Tr(e){return x.get(e,"claimSubCategory",null)}function kr(e){return U(e,d.getClaimsForPersonUrl())}function Pr(e){return x.get(e,"claimType",null)}function yr(e){return X(e,d.getClaimsForPersonUrl()).length>0?!0:w(e).length>0}function ge(e){return e.claimType===ue.CONSUMER}function he(e){return e.claimType===ue.MOTOR}function Y(e){return(x.values(e.services).filter(function(t){return t.calling})||[]).length>0}function Sr(e){const r=e.claimNumber;if(!r)return!1;const t=C(e,r);if(!t)return!1;const u=D(t),c=R(e,d.getMotorDetailsUrl({claimNumber:r,registrationPlateNumber:u})),s=R(e,d.getMotorDetailsTextsUrl());return c&&s}function Rr(e){const r=e.claimNumber;if(!r)return!1;const t=R(e,d.getConstructionDetailsUrl({claimNumber:r})),u=R(e,d.getConstructionDetailsTextsUrl());return t&&u}function pe(e,r){return!r||!U(e,d.getClaimsForPersonUrl())?!1:!!C(e,r)}function Ur(e,r){if(!pe(e,r))return!1;const t=C(e,r),u=d.getConstructionDetailsUrl({claimNumber:r});return ge(t)&&!v(e,u)}function Mr(e,r){if(!pe(e,r))return!1;const t=C(e,r),u=D(t);if(!u)return!1;const c=d.getMotorDetailsUrl({claimNumber:r,registrationPlateNumber:u});return he(t)&&!v(e,c)}function xe(e){const r=e.claimNumber;if(Ur(e,r)){const t=d.getConstructionDetailsUrl({claimNumber:r});return y(e,t)}else if(Mr(e,r)){const t=C(e,r),u=d.getMotorDetailsUrl({claimNumber:r,registrationPlateNumber:D(t)});return y(e,u)}else return e}function ne(e){const r=e.claimNumber;return r?U(e,d.getConstructionDetailsUrl({claimNumber:r})):!1}function te(e){const r=e.claimNumber;if(!r)return!1;const t=C(e,r);return t?U(e,d.getMotorDetailsUrl({claimNumber:r,registrationPlateNumber:D(t)})):!1}function Er(e){const r=e.claimNumber;if(!r||!U(e,d.getClaimsForPersonUrl()))return!1;const t=d.getConstructionDetailsUrl({claimNumber:r});if(I(e,t))return!0;const u=C(e,r),c=D(u),s=d.getMotorDetailsUrl({claimNumber:r,registrationPlateNumber:c});return I(e,s)}function Fr(e){const r=e.claimNumber;if(!r)return!1;const t=C(e,r);return t?ge(t)||he(t):!1}function Ir(e){const r=R(e,d.getConstructionDetailsUrl({claimNumber:e.claimNumber}));return(x.get(r,"claim.structureAssignment.tasks",[])||[]).length>0}function wr(e){const r=C(e,e.claimNumber),t=R(e,d.getMotorDetailsUrl({claimNumber:e.claimNumber,registrationPlateNumber:D(r)}));return(x.get(t,"claim.vehicleAssignment.tasks",[])||[]).length>0}function p(e){return S(e,q)}function Br({elq:e}){const r=Z({elq:e});function t({errorTexts:c}){return n.jsx(ie,{className:"my-0",dismissible:!1,headerText:c.header,errorText:c.text,dataTestId:"insurance-claims-errors"})}function u({state:c,triggerEvent:s,size:l}){const a=de(c)||z(c);return z(c)?n.jsx(L,{initiallyExpanded:a,caption:p("panelHeader"),children:n.jsx("div",{className:"card mb-0",children:n.jsx("div",{className:"card-body",children:n.jsx(t,{errorTexts:me(c)})})})}):n.jsx(L,{initiallyExpanded:a,caption:p("panelHeader"),children:n.jsxs($.Fragment,{children:[n.jsxs("div",{className:"card-body bg-white",children:[n.jsx("p",{className:"card-text mb-0",children:p("intro")}),n.jsx(W,{dataTestId:"contact-us",className:"mb-0 d-print-inline-block",buttonType:"link",label:p("contactUs"),onClick:function(i){i.preventDefault(),s("contactUsChosen")}}),n.jsx("div",{className:"mt-2",children:n.jsx(Se,{steps:[{done:!1,icon:F.CONTRACT_32,text:p("progressBar.step1.text"),progressText:p("progressBar.step1.progressText")},{done:!1,icon:F.CLIPBOARD_32,text:p("progressBar.step2.text"),progressText:p("progressBar.step2.progressText")},{done:!1,icon:F.UMBRELLA_32,text:p("progressBar.step3.text"),progressText:p("progressBar.step3.progressText")},{done:!1,icon:F.CHAT_32,text:p("progressBar.step4.text"),progressText:p("progressBar.step4.progressText")}]})})]}),n.jsxs("table",{className:"table table-clickable my-0 delimiter-xs","data-test-id":"
1claim-list",children:[n.jsx("thead",{children:l==="large"?n.jsxs("tr",{children:[n.jsx("th",{scope:"col",children:p("claimNumber")}),n.jsx("th",{scope:"col",children:p("claimCategory")}),n.jsx("th",{scope:"col",children:p("claimRefers")}),n.jsx("th",{className:"text-right",scope:"col",children:p("claimDate")})]}):n.jsxs("tr",{children:[n.jsxs("th",{scope:"col",children:[p("claimNumber")," & ",p("claimCategory")]}),n.jsxs("th",{scope:"col",children:[p("claimDate")," & ",n.jsx("span",{className:"text-nowrap",children:p("claimRefers")})]})]})}),n.jsx("tbody",{children:w(c).map(function(i){return n.jsxs("tr",{"data-test-id":"insurance-claim-"+i.claimNumber,className:"link-complex",onClick:function(f){f.preventDefault(),s("insuranceClaimChosen",{claimNumber:i.claimNumber,claimType:Pr(i)})},children:[l==="large"?n.jsx("td",{children:n.jsx("a",{href:"/",children:i.claimNumber})}):n.jsxs("td",{children:[n.jsx("a",{href:"/",children:i.claimNumber}),n.jsx("br",{}),n.jsx("span",{className:"text-muted text-sm",children:i.claimCategory})]}),l==="large"&&n.jsx("td",{children:i.claimCategory}),l==="large"&&n.jsx("td",{children:i.agreementObjectReference}),l==="large"?n.jsx("td",{className:"text-right",children:i.claimDate}):n.jsxs("td",{children:[i.claimDate,n.jsx("br",{}),n.jsx("span",{className:"text-muted text-sm",children:i.agreementObjectReference})]})]},i.claimNumber)})})]})]})})}return function(s){return yr(s.state)?n.jsx(r,{sizeBreakpoints:{small:0,large:600},children:n.jsx(u,{state:s.state,triggerEvent:s.triggerEvent,size:s.size})}):null}}const Ar="Skadenummer",Or="Kategori",Gr="Skadedatum",Hr="Pågående skadeärenden",$r="Visa alla skadeärenden",Lr={claimNumber:Ar,claimCategory:Or,claimDate:Gr,panelHeader:Hr,allClaimsButton:$r};function P(e){return S(e,Lr)}function Vr({elq:e}){const r=Z({elq:e}),t=function({triggerEvent:c}){return n.jsx("div",{className:"card-footer text-right",children:n.jsx(W,{buttonType:"link",label:P("allClaimsButton"),dataTestId:"show-all-button",onClick:function(){c({name:"allInsuranceClaimsChosen"})}})})},u=function({activeInsuranceClaims:c,triggerEvent:s,size:l}){return n.jsx(L,{initiallyExpanded:!0,caption:P("panelHeader"),children:n.jsxs($.Fragment,{children:[n.jsxs("table",{className:"table table-clickable my-0","data-test-id":"active-claim-list",children:[n.jsx("thead",{children:l==="large"?n.jsxs("tr",{children:[n.jsx("th",{scope:"col",style:{width:272},children:P("claimCategory")}),n.jsx("th",{scope:"col",children:P("claimNumber")}),n.jsx("th",{scope:"col",className:"text-right",children:P("claimDate")})]}):n.jsxs("tr",{children:[n.jsxs("th",{scope:"col",children:[P("claimNumber")," & ",P("claimCategory")]}),n.jsx("th",{scope:"col",children:P("claimDate")})]})}),n.jsx("tbody",{children:c.map(function(a){return n.jsxs("tr",{"data-test-id":"active-insurance-claim-"+a.claimNumber,className:"link-complex",onClick:function(i){i.preventDefault(),s({name:"insuranceClaimChosen",data:a.claimNumber})},children:[l==="large"?n.jsx("td",{children:a.claimCategory}):n.jsxs("td",{children:[n.jsx("a",{href:"/",children:a.claimNumber}),n.jsx("br",{}),n.jsx("span",{className:"text-muted text-sm",children:a.claimCategory})]}),l==="large"&&n.jsx("td",{children:n.jsx("a",{href:"/",children:a.claimNumber})}),l==="large"?n.jsx("td",{className:"text-right",children:a.claimDate}):n.jsx("td",{children:a.claimDate})]},a.claimNumber)})})]}),n.jsx(t,{triggerEvent:s})]})})};return function(s){return s.hasAnyActiveInsuranceClaims?n.jsx(r,{sizeBreakpoints:{small:0,large:600},children:n.jsx(u,{...s})}):null}}function b(e){return S(e,oe)}function _r({elq:e}){const r=Z({elq:e});function t({errorTexts:l}){return n.jsx(ie,{className:"my-0",dismissible:!1,headerText:l.header,errorText:l.text,dataTestId:"insurance-claims-errors"})}function u({claimNumber:l,claimDate:a,claimStatus:i,subCategory:f}){return n.jsxs($.Fragment,{children:[n.jsxs("div",{children:[n.jsxs("b",{children:[b("subCategory"),":"]})," ",f]}),n.jsxs("div",{children:[n.jsxs("b",{children:[b("headerClaimNumber"),":"]})," ",l||"-"]}),n.jsxs("div",{children:[n.jsxs("b",{children:[b("headerClaimDate"),":"]})," ",a||"-"]}
1),n.jsxs("div",{children:[n.jsxs("b",{children:[b("headerClaimStatus"),":"]})," ",i||"-"]})]})}function c({agreementObjectReference:l,agreementId:a,claimCategory:i}){return n.jsxs($.Fragment,{children:[l&&n.jsxs("div",{children:[n.jsxs("b",{children:[b("headerReference"),":"]})," ",l]}),n.jsxs("div",{children:[n.jsxs("b",{children:[b("headerAgreement"),":"]})," ",a||"-"]}),n.jsxs("div",{children:[n.jsxs("b",{children:[b("headerClaimType"),":"]})," ",i||"-"]})]})}function s({state:l,claimNumber:a,triggerEvent:i,size:f}){if(z(l))return n.jsx(L,{initiallyExpanded:!0,caption:b("panelHeader"),children:n.jsx("div",{className:"card mb-0",children:n.jsx("div",{className:"card-body",children:n.jsx(t,{errorTexts:me(l)})})})});if(w(l).length===0)return null;if(Y(l))return n.jsx(Re,{});const m=C(l,a);return n.jsx(L,{initiallyExpanded:!0,caption:b("panelHeader"),children:n.jsx("div",{className:"card mb-0","data-test-id":"insurance-claim-details-panel",children:n.jsxs($.Fragment,{children:[n.jsx("div",{className:"card-body card-text pb-0",children:n.jsx(Ue,{linkText:b("contactUs"),postText:b("introPartTwo"),onClick:function(){i("contactUsChosen")},dataTestId:"contact-us"})}),n.jsx("div",{className:"by-1",children:n.jsx(Me,{largeBreakpoint:"700",data:[{icon:F.DAMAGE_32,header:b("aboutDamageReport"),bodyElement:n.jsx(u,{subCategory:Tr(m),claimNumber:Nr(m),claimDate:vr(m),claimStatus:fe(m)})},{icon:F.UMBRELLA_32,header:b("theInsurance"),bodyElement:n.jsx(c,{agreementObjectReference:D(m),agreementId:jr(m),claimCategory:Dr(m)})}]})}),n.jsx("div",{className:"card-body",children:n.jsxs(Ee,{fullWidth:f==="small",children:[Cr(l,a)&&n.jsx(W,{dataTestId:"edit-claim",layoutOrder:"2",buttonType:"secondary",label:b("editClaim"),arrow:!0,onClick:function(){i("editClaimChosen")}}),n.jsx(W,{dataTestId:"go-back",layoutOrder:"1",buttonType:"link",label:b("goBack"),onClick:function(){i("goBackChosen")}})]})})]})})})}return function(a){return n.jsx(r,{sizeBreakpoints:{small:0,large:420},children:n.jsx(s,{state:a.state,claimNumber:a.claimNumber,triggerEvent:a.triggerEvent,size:a.size})})}}const qr="Skadeanmälan",Kr="Status",Wr={header:qr,subheading:Kr};function se(e){return S(e,Wr)}function zr(){function e({claimStatus:r,state:t}){if(ne(t)||te(t)||Y(t))return null;if(kr(t))return n.jsxs("span",{children:[n.jsxs("b",{children:[se("subheading"),":"]})," ",r]})}return function({state:t,claimNumber:u}){if(z(t))return null;function c(a){return!(ne(a)||te(a)||Y(a))}const s=C(t,u);function l(){return n.jsxs("div",{"data-test-id":"insurance-claims-header",children:[se("header")+" ",n.jsx("span",{"data-test-id":"claim-number-header",className:"text-nowrap",children:u})]})}return n.jsx(Fe,{heading:n.jsx(l,{}),subheading:c(t)?n.jsx(e,{claimStatus:fe(s),state:t}):null})}}function Jr({ajax:e,model:r,customerId:t,profile:u,controller:c}){const s=x.extend({},M),l=E(),a=E(),i=E(),f=E(),m=E(),g=le();function T(){return[l,i,a,m,f]}function B(o){return o.done&&typeof o.done=="function"}function Ce(o){return[{code:o.status,message:o.statusText}]}function A(o){return B(o)?{response:null,errors:Ce(o)}:{response:o.response,errors:o.errors}}function be(){r.swap(G,K,!0),e.apip({url:K,type:"GET",headers:{"X-LF-PROFILE":JSON.stringify({customerId:t,profileType:u.profileType,subject_user_id:u.profileType==="SUPPORT_USER"?t:void 0})}}).always(function(o){const h=A(o);r.swap(function(N){const O=H(N,K,h);return xe(O)}),l.resolve()})}function Ne(o){r.swap(G,o,!0),e.apip({url:o,type:"GET"}).always(function(h){const N=A(h);r.swap(function(O){const k=H(O,o,N);return!I(k,o)&&Ir(k)?y(k,ae):k}),a.resolve()})}function ve(o){r.swap(G,o,!0),e.apip({url:o,type:"GET"}).always(h=>{const N=A(h);r.swap(H,o,N),i.resolve()})}function je(o){r.swap(G,o,!0),e.apip({url:o,type:"GET"}).always(function(h){const N=A(h);r.swap(function(O){const k=H(O,o,N);return!I(k,o)&&wr(k)?y(k,ce):k}),f.resolve()})}function De(o){r.swap(G,o,!0),e.apip({url:o,type:"GET"}).always(h=>{const N=A(h);r.swap(H,o,N),m.resolve()})}function Te(o){if(xr(o))be();else if(fr(o)){const h=g.getConstructionDetailsUrl({claimNumber:o.claimNumber});Ne(h)}
1else if(gr(o))ve(g.getConstructionDetailsTextsUrl());else if(hr(o)){const h=C(o,o.claimNumber),N=g.getMotorDetailsUrl({claimNumber:o.claimNumber,registrationPlateNumber:D(h)});je(N)}else if(pr(o))De(g.getMotorDetailsTextsUrl());else if(Sr(o)){if(!re(o)){const h=C(o,o.claimNumber);c.trigger("gotoMotorDetails",{claimNumber:o.claimNumber,registrationPlateNumber:D(h)}),r.swap(function(N){return N.hasTriggeredGoto=!0,N})}}else Rr(o)?re(o)||(c.trigger("gotoConstructionDetails",{claimNumber:o.claimNumber}),r.swap(function(h){return h.hasTriggeredGoto=!0,h})):dr(r.deref(),g.getClaimsForPersonUrl())&&(Er(r.deref())||!Fr(r.deref()))&&x.forEach(T(),h=>h.resolve())}return{start:function(){s.listenTo(r,"change",function(){Te(r.deref())})},stop:function(){s.stopListening()},getGetClaimsForPersonServicePromise:function(){return l},getConstructionDetailsServicePromise:function(){return a},getConstructionDetailsTextsServicePromise:function(){return i},getMotorDetailsServicePromise:function(){return f},getMotorDetailsTextsServicePromise:function(){return m},getPromises:T}}function Yr({ajax:e,elq:r=new we,profile:t,customerId:u}){const c={};x.extend(c,M);const s=Ie(ur({})),l=Jr({ajax:e,model:s,profile:t,customerId:u,controller:c});return l.start(),c.headerView=(function(){function a(){const i=j.getClaimsForPerson;v(s.deref(),i)||s.swap(y,i)}return{prepare:a,render:function(i,{claimNumber:f}){a();const m=_({target:i,Component:zr(),getProps:function(){return{state:s.deref(),claimNumber:f}}});m.render();const g=x.extend({},M);return g.listenTo(s,"change",m.render),g.remove=function(){m.unmountComponent(),g.stopListening()},g},getPromise:function(){return E().resolve()}}})(),c.insuranceClaimsView=(function(){function a(){const i=j.getClaimsForPerson;v(s.deref(),i)||s.swap(y,i)}return{prepare:a,render:function(i){a();const f=_({target:i,Component:Br({elq:r}),getProps:function(){return{state:s.deref(),triggerEvent:function(g,T){g==="insuranceClaimChosen"&&c.trigger("insuranceClaimChosen",{claimNumber:T.claimNumber}),g==="contactUsChosen"&&c.trigger("contactUsChosen")}}}});f.render();const m=x.extend({},M);return m.listenTo(s,"change",f.render),m.remove=function(){f.unmountComponent(),m.stopListening()},m},getPromise:function(){return l.getGetClaimsForPersonServicePromise()}}})(),c.insuranceClaimDetailsView=(function(){function a(i={}){const f=i.claimNumber;v(s.deref(),j.getClaimsForPerson)?s.swap(function(m){return m.claimNumber=f,xe(m)}):s.swap(function(m){return m.claimNumber=f,y(m,j.getClaimsForPerson)})}return{prepare:a,render:function(i,f={}){a(f);const m=f.claimNumber,g=_({target:i,Component:_r({elq:r}),getProps:function(){return{state:s.deref(),claimNumber:m,triggerEvent:function(B){B==="contactUsChosen"?c.trigger("contactUsChosen"):B==="goBackChosen"?c.trigger("goBackChosen"):B==="editClaimChosen"&&c.trigger("editClaimChosen",{claimDate:C(s.deref(),m).claimDate})}}}});g.render();const T=x.extend({},M);return T.listenTo(s,"change",g.render),T.remove=function(){g.unmountComponent(),T.stopListening()},T},getPromise:function(){return Be(l.getGetClaimsForPersonServicePromise(),l.getConstructionDetailsServicePromise(),l.getConstructionDetailsTextsServicePromise(),l.getMotorDetailsServicePromise(),l.getMotorDetailsTextsServicePromise())}}})(),c.activeInsuranceClaimsView=(function(){function a(){const i=j.getClaimsForPerson;v(s.deref(),i)||s.swap(y,i)}return{prepare:a,render:function(i){a();const f=_({target:i,Component:Vr({elq:r}),getProps:function(){return{hasAnyActiveInsuranceClaims:de(s.deref()),activeInsuranceClaims:br(s.deref()),triggerEvent:function(g){g.name==="insuranceClaimChosen"?c.trigger("insuranceClaimChosen",g.data):g.name==="allInsuranceClaimsChosen"&&c.trigger("allInsuranceClaimsChosen")}}}});f.render();const m=x.extend({},M);return m.listenTo(s,"change",f.render),m.remove=function(){f.unmountComponent(),m.stopListening()},m},getPromise:function(){return l.getGetClaimsForPersonServicePromise()}}})(),c}export{Yr as default};
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.