1(self.webpackChunktruMobile=self.webpackChunktruMobile||[]).push([[3708,94327],{69494:(I,E,_)=>{"use strict";_.d(E,{o:()=>x});var g=_(80529),O=_(85784),k=_(45763),M=_(49741),e=_(94650);let x=(()=>{class C{constructor(f,o,d){this.httpClient=f,this.basePath="http://localhost:8000",this.defaultHeaders=new g.WM,this.configuration=new M.V,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&(Array.isArray(o)&&o.length>0&&(o=o[0]),"string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new O.H}addToHttpParams(f,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(f,o,d):this.addToHttpParamsRecursive(f,o)}addToHttpParamsRecursive(f,o,d){if(null==o)return f;if("object"==typeof o)if(Array.isArray(o))o.forEach(i=>f=this.addToHttpParamsRecursive(f,i,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");f=f.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(i=>f=this.addToHttpParamsRecursive(f,o[i],null!=d?`${d}.${i}`:i));else{if(null==d)throw Error("key may not be null if value is not object or array");f=f.append(d,o)}return f}brokerEdocsGet(f,o,d,i,a,n,r,s,m,p,w,v,c,D,V,N,Y,$,j,F,q,G,Z,H,W,Q="body",X=!1,L){let h=new g.LE({encoder:this.encoder});null!=f&&(h=this.addToHttpParams(h,f,"status_of_document_desc_fr")),null!=o&&(h=this.addToHttpParams(h,o,"filename")),null!=d&&(h=this.addToHttpParams(h,d,"attachment_type_code")),null!=i&&(h=this.addToHttpParams(h,i,"additional_description")),null!=a&&(h=this.addToHttpParams(h,a,"encoding_type")),null!=n&&(h=this.addToHttpParams(h,n,"content_type")),null!=r&&(h=this.addToHttpParams(h,r,"attachment_type_code_desc_fr")),null!=s&&(h=this.addToHttpParams(h,s,"status_of_document_desc")),null!=m&&(h=this.addToHttpParams(h,m,"attachment_type_code_desc")),null!=p&&(h=this.addToHttpParams(h,p,"cycle_business_purpose_desc")),null!=w&&(h=this.addToHttpParams(h,w,"attachment_description")),null!=v&&(h=this.addToHttpParams(h,v,"company_code")),null!=c&&(h=this.addToHttpParams(h,c,"company_code_desc")),null!=D&&(h=this.addToHttpParams(h,D,"cycle_business_purpose_desc_fr")),null!=V&&(h=this.addToHttpParams(h,V,"cycle_business_purpose")),null!=N&&(h=this.addToHttpParams(h,N,"transaction_date")),null!=Y&&(h=this.addToHttpParams(h,Y,"transaction_effective_date")),null!=$&&(h=this.addToHttpParams(h,$,"message_address_destination")),null!=j&&(h=this.addToHttpParams(h,j,"created_at")),null!=F&&(h=this.addToHttpParams(h,F,"updated_at")),null!=q&&(h=this.addToHttpParams(h,q,"includes")),null!=G&&(h=this.addToHttpParams(h,G,"columns")),null!=Z&&(h=this.addToHttpParams(h,Z,"page")),null!=H&&(h=this.addToHttpParams(h,H,"page_limit")),null!=W&&(h=this.addToHttpParams(h,W,"order_by"));let K=this.defaultHeaders,A=L&&L.httpHeaderAccept;void 0===A&&(A=this.configuration.selectHeaderAccept(["application/json"])),void 0!==A&&(K=K.set("Accept",A));let J=L&&L.context;void 0===J&&(J=new g.qT);let S="json";return A&&(S=A.startsWith("text")?"text":this.configuration.isJsonMime(A)?"json":"blob"),this.httpClient.request("get",`${this.configuration.basePath}/broker_edocs`,{context:J,params:h,responseType:S,withCredentials:this.configuration.withCredentials,headers:K,observe:Q,reportProgress:X})}brokerEdocsIdDelete(f,o="body",d=!1,i){if(null==f)throw new Error("Required parameter id was null or undefined when calling brokerEdocsIdDelete.");let a=this.defaultHeaders,n=i&&i.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(a=a.set("Accept",n));let r=i&&i.context;void 0===r&&(r=new g.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let m=`/broker_edocs/${this.configuration.encodeParam({name:"id",value:f,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`;return this.httpClient.request("delete",`${this.configuration.basePath}${m}`,{context:r,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:d})}brokerEdocsIdDownloadGet(f,o="body",d=!1,i){if(null==f)throw new Error("Required parameter id was null or undefined when calling brokerEdocsIdDownloadGet.");let a=this.defaultHeaders,n=i&&i.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(a=a.set("Accept",n));let r=i&&i.context;void 0===r&&(r=new g.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let m=`/broker_edocs/${this.configuration.encodeParam({name:"id",value:f,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/download`;return this.httpClient.request("get",`${this.configuration.basePath}${m}`,{context:r,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:d})}
1brokerEdocsIdGet(f,o,d,i="body",a=!1,n){if(null==f)throw new Error("Required parameter id was null or undefined when calling brokerEdocsIdGet.");let r=new g.LE({encoder:this.encoder});null!=o&&(r=this.addToHttpParams(r,o,"includes")),null!=d&&(r=this.addToHttpParams(r,d,"columns"));let s=this.defaultHeaders,m=n&&n.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(s=s.set("Accept",m));let p=n&&n.context;void 0===p&&(p=new g.qT);let w="json";m&&(w=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let v=`/broker_edocs/${this.configuration.encodeParam({name:"id",value:f,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`;return this.httpClient.request("get",`${this.configuration.basePath}${v}`,{context:p,params:r,responseType:w,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:a})}brokerEdocsIdPut(f,o,d="body",i=!1,a){if(null==f)throw new Error("Required parameter id was null or undefined when calling brokerEdocsIdPut.");if(null==o)throw new Error("Required parameter edoc was null or undefined when calling brokerEdocsIdPut.");let n=this.defaultHeaders,r=a&&a.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=a&&a.context;void 0===s&&(s=new g.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(n=n.set("Content-Type",p));let w="json";r&&(w=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob");let v=`/broker_edocs/${this.configuration.encodeParam({name:"id",value:f,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`;return this.httpClient.request("put",`${this.configuration.basePath}${v}`,{context:s,body:o,responseType:w,withCredentials:this.configuration.withCredentials,headers:n,observe:d,reportProgress:i})}brokerEdocsPost(f,o="body",d=!1,i){if(null==f)throw new Error("Required parameter brokerPostEdoc was null or undefined when calling brokerEdocsPost.");let a=this.defaultHeaders,n=i&&i.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(a=a.set("Accept",n));let r=i&&i.context;void 0===r&&(r=new g.qT);const m=this.configuration.selectHeaderContentType(["application/json"]);void 0!==m&&(a=a.set("Content-Type",m));let p="json";return n&&(p=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.request("post",`${this.configuration.basePath}/broker_edocs`,{context:r,body:f,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:d})}}return C.\u0275fac=function(f){return new(f||C)(e.LFG(g.eN),e.LFG(k.G,8),e.LFG(M.V,8))},C.\u0275prov=e.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})()},40685:(I,E,_)=>{"use strict";_.d(E,{E:()=>k});var g=_(15439);function k(M,e="en",x,C){"fr"===e&&(e="fr-ca");const y=g.utc(M),f=g(M).locale(e).utc(M).format("DD MMM, YYYY").replace(".","");return C?g(M).locale(e).utc(M).format("DD MMM, YYYY").replace(".",""):x?y:f}},53808:(I,E,_)=>{"use strict";_.d(E,{UZ:()=>a,q3:()=>
1o});var g=_(15439),k=_(17489);let e,x;function C(n){if(n.second_withdrawal_amount&&new Date(n.second_withdrawal_date)<new Date){const r=g(),s=g(n.second_withdrawal_date),m=r.daysInMonth()>s.date()?s.date():r.daysInMonth(),p=g([r.year(),r.month(),m]);return r.date()>s.date()?p.add(1,"month").format("YYYY-MM-DD"):p.format("YYYY-MM-DD")}return n.second_withdrawal_date}function y(n){return"CAD"===n?"CA$":"USD"===n?"$":""}function f(n){return n?"mo"===n?.toLowerCase()?"m":"an"===n?.toLowerCase()?"y":"":""}function o(n){const r=(0,k.get)(n,"payment_info",[])[0];if(r&&"MO"===r.payment_plan_code){if(d(r.next_withdrawal_date))return!!r.next_withdrawal_amount&&{paymentAmount:y(r.currency)+" "+r.next_withdrawal_amount+"/"+f(r.payment_plan_code),paymentDate:g(r.next_withdrawal_date).format("DD MMM, YYYY")};if(d(r.second_withdrawal_date))return!!r.second_withdrawal_amount&&{paymentAmount:y(r.currency)+" "+r.second_withdrawal_amount+"/"+f(r.payment_plan_code),paymentDate:g(r.second_withdrawal_date).format("DD MMM, YYYY")};if(r.second_withdrawal_date&&"0000-00-00"!==r.second_withdrawal_date&&!d(r.second_withdrawal_date)&&r.second_withdrawal_amount)return{paymentAmount:y(r.currency)+" "+r.second_withdrawal_amount+"/"+f(r.payment_plan_code),paymentDate:g(C(r)).format("DD MMM, YYYY")}}return!1}function d(n){return g().diff(g(n).endOf("day"))<=0}function i(n,r){return new Date(n).getTime()>new Date(r).getTime()?n:r}function a(n,r,s){if("transaction_date"===s&&!e&&!x&&(e=n,x=r),"transaction_effective_date"===s)return i(n,r);if("payment_info"===s&&e&&x){const m=n[0],p=r[0];let w=[];return e===x?m&&m.hasOwnProperty("next_withdrawal_amount")&&m.hasOwnProperty("second_withdrawal_amount")&&p&&p.hasOwnProperty("next_withdrawal_amount")&&p.hasOwnProperty("second_withdrawal_amount")&&m.next_withdrawal_amount===p.next_withdrawal_amount&&m.second_withdrawal_amount===p.second_withdrawal_amount&&(w=w.concat(m)):w=i(e,x)===e?w.concat(m):w.concat(p),w.filter(v=>v)}}},42170:(I,E,_)=>{"use strict";_.d(E,{En:()=>C,GC:()=>e,gZ:()=>y});var g=_(17489),k=_(53808),M=_(22134);let e=(()=>{class i{static mergePolicies(n){let r=function o(i){return i.reduce((a,n)=>{const r=a.find(s=>function f(i,a){return(i.policy_number.endsWith("H")?i.policy_number.slice(0,-1):i.policy_number)===(a.policy_number.endsWith("H")?a.policy_number.slice(0,-1):a.policy_number)}(s[0],n));return r?r.push(n):a.push([n]),a},[])}(n);return r=r.map(s=>{if(s.lengt&&(s[0].future=!0),1===s.length)return s.pop();if(s.length>1){s[1].future=!0,y(s[0])&&y(s[1])||(s[0].future=!1,s[1].future=!1);const m="AUTO"===s[0].line_of_business_code?s[0]:s[1],p="HABL"===s[0].line_of_business_code?s[0]:s[1];return m.mergedPolicyCobinedId=m.id+"&"+p.id,m.mergedPolicyLineCodes="Property, Private Passenger Auto",g.mergeWith(m,p,k.UZ)}}),r}static getSummaryTabs(n){const r=m=>{if(!m)return;const p=m.split(" "),w=p[0],v=p[1];if(w.length<=3&&/^\d+$/.test(w))return w;if(M.Ak.includes(m))return m;if(M.Ak.includes(w))return w;const c=g.startCase(w.toLowerCase());return M.Ak.includes(c)?c:v&&M.Ak.includes(`${c} ${g.startCase(v.toLowerCase())}`)?`${c} ${g.startCase(v.toLowerCase())}`:v&&M.Ak.includes(g.startCase(v.toLowerCase()))?g.startCase(v.toLowerCase()):m},s=m=>m&&"NULL"!==m?m:"";return n.reduce((m,p)=>{const w=p?.mergedPolicyCobinedId?p.mergedPolicyCobinedId.split("&")[0]:null,v=p?.mergedPolicyCobinedId?p.mergedPolicyCobinedId.split("&")[1]:null;return m[p?.id]=[].concat((p?.vehicles||[]).map(c=>({id:c.id,policyId:p?.policy_id,policyNumber:p?.policy_number,key:"vehicles",icon:"vehicle_bg",altTag:"Auto Policy",policy:p,oId:w,vehicle_year:c.vehicle_year,title:`${s(c.vehicle_year?.split("-")[0])} ${s(c.vehicle_make)} ${s(c.vehicle_model)}`,subtitle:"",advancedDetail:{name:"VIN",value:c.vin_serial_number,make:r(c?.vehicle_make),model:c.vehicle_model}}))).concat((p?.properties||[]).map(c=>{if(!c?.mobile_homes?.length||1!=+c?.occupancy_code||1!=+c?.mobile_homes[0]?.occupancy_code)return{id:c.id,policy:p,policyId:p?.policy_id,policyNumber:p?.policy_number,key:"properties",altTag:"90"===c.habitational_coverage_form_code?"Travel Policy":"Home Policy",icon:"90"===c.habitational_coverage_form_code?"medical_bg":"home_bg",medicalTravel:"90"===c.habitational_coverage_form_code,oId:v,title:"90"===c.habitational_coverage_form_code?`${s(c.habitational_coverage_form_code_desc)}`:c?.location?.city?`${s(d(c,p))}, ${s(c.location?.city)}`:`${s(d(c,p))}`,customTitle:"90"===c.habitational_coverage_form_code?`${s(c.habitational_coverage_form_code_desc)}`:`${s(d(c,p))}`,advancedDetail:{name:"Postal Code",value:`${s(c.location?.postal_code)}`}}})).concat((p?.water_crafts||[]).map(c=>{if(c.items.length)return{id:c.id,policy:p,policyId:p?.id,policyNumber:p?.policy_number,key:"water_crafts",icon:"watercraft_bg",altTag:"Water Craft Policy",oId:v,title:c.make_description||c.year_built?`${s(c?.make_description)} ${s(c?.year_built?.split("-")[0])}`:c?.items?.length>0?`${s(c.items[0]?.make_description)} ${s(c.items[0]?.year_built?.split("-")[0])}`:"-",value:c.items[0].item_value,identificationSerialNumber:c.identification_serial_number||c.items[0]?.identification_serial_number,classCodeDesc:c.class_code_desc,advancedDetail:{name:"Type",value:c.class_code_desc||"-"}}})).concat(g.flatten(g.map(p?.properties||[],"mobile_homes")).map(c=>({id:c.id,policyNumber:p?.policy_number,policyId:p?.id,policy:p,key:"mobile_homes",icon:"mobile_home_bg",altTag:"Mobile Home Policy",oId:v,title:c?`${s(c.make)} ${s(c.model)}`:"-",customTitle:`${s(p?.properties.find(D=>D.id===c.property_id)?.year_built?p?.properties.find(D=>D.id===c.property_id)?.year_built?.split("-")[0]:"")} ${s(c.make)} ${s(c.model)}`,advancedDetail:{name:"VIN",value:`${s(c.identification_serial_number)}`}}))).concat((p?.personal_items||[]).map(c=>{if(c?.property_class_code_desc||c.property_class_code_desc)return{id:c.id,policy:p,policyId:p?.id,policy_number:p?.policy_number,oId:v,key:"personal_items",icon:"personal_bg",altTag:"Personal Item",title:c?.property_class_code_desc?c.property_class_code_desc:`${s(p?.original_insureds_name)}`,subtitle:"",advancedDetail:{name:" ",value:" "}}})),m},{})}}return i.knownVehiclesMakes=[],i})();function x(i){return new Date(i).getTime()>(new Date).getTime()}function C(i){return i.future=i.future??!0,x(i.policy_effective_date)&&x(i.transaction_effective_date)&&x(i.policy_expiration_date)&&["RII","REW","NBS","XLN","RWL","SYN"].includes(i.cycle_business_purpose)&&i.future}function y(i){if(Array.isArray(i)){const a=[];return i.map(n=>{C(n)&&a.push(n)}),a.length===i.length}return C(i)}function d(i,a){return i.location?.street_address_line_1?i.location?.street_address_line_1:i.location?.street_address_line_2?i.location?.street_address_line_2:a.street_address_line_1?a.street_address_line_1:a.street_address_line_2?a.street_address_line_2:"-"}},60940:(I,E,_)=>{"use strict";_.d(E,{r:()=>e});var g=_(94650),O=_(89383),k=_(34793),M=_(95386);let e=(()=>{class x{constructor(y,f,o){this.translate=y,this.router=f,this.getTranslationService=o}setTitle(y){this.getTitleTranslationAndWriteToHeader(y),this.getTranslationService.getSelectedLanguage().subscribe(()=>{this.getTitleTranslationAndWriteToHeader(y)})}getTitleTranslationAndWriteToHeader(y){const f=document.getElementById("header-title-holder");this.translate.get(y).toPromise().then(o=>{if(f)if(f.innerText="","string"!=typeof o)Object.values(o).forEac
1h((d,i,a)=>{const n=document.createElement("i");n.className="fa fa-chevron-right",n.setAttribute("style"," padding-left: 15px; padding-right: 20px; font-size: 15px; color: #D8D8D8; height: 14px; width: 8.24px;");const r=document.createTextNode(d);f?.appendChild(r),i!==a.length-1&&f?.appendChild(n)});else{const d=document.createTextNode(o);f?.appendChild(d)}})}setTitleNoTranslation(y,f,o){const d=document.createElement("span");if(f)d.innerHTML=y;else{const a=document.createTextNode(y);d.appendChild(a)}o&&this.translate.get(o).subscribe(a=>{const n=document.createTextNode(a);d.appendChild(n)});const i=document.getElementById("header-title-holder");i&&(i.innerText="",i.appendChild(d))}isValidLanguage(y){return this.translate.get(y)}}return x.\u0275fac=function(y){return new(y||x)(g.LFG(O.sK),g.LFG(k.F0),g.LFG(M.T))},x.\u0275prov=g.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})()},3708:(I,E,_)=>{"use strict";_.d(E,{h:()=>ae});var g=_(94327),O=_(22134),k=_(21607),M=_(42170),e=_(94650),x=_(34793),C=_(2601),y=_(69494),f=_(85657),o=_(36895),d=_(60940),i=_(89383),a=_(45510),n=_(95386),r=_(42329),s=_(44497),m=_(1737),p=_(97392),w=_(4859),v=_(28255),c=_(90158),D=_(40685);function V(l,T){if(1&l&&(e.TgZ(0,"span",10),e._uU(1),e.qZA()),2&l){const t=e.oxw();e.xp6(1),e.hij(" ",null!=t.currentEdoc&&t.currentEdoc.transaction_response_date&&"0000-00-00"!==(null==t.currentEdoc?null:t.currentEdoc.transaction_response_date)?t.formatDateTimeZone(null==t.currentEdoc?null:t.currentEdoc.transaction_response_date,t.language,!0,!0):t.notAvailable," ")}}function N(l,T){if(1&l&&e._uU(0),2&l){const t=e.oxw();e.hij(" ",null!=t.currentEdoc&&t.currentEdoc.transaction_effective_date&&"0000-00-00"!==(null==t.currentEdoc?null:t.currentEdoc.transaction_effective_date)?t.formatDateTimeZone(null==t.currentEdoc?null:t.currentEdoc.transaction_effective_date,t.language,!0,!0):t.notAvailable," ")}}function Y(l,T){if(1&l&&(e.TgZ(0,"span",11),e._uU(1),e.qZA()),2&l){const t=e.oxw();e.xp6(1),e.hij(" ",(null==t.currentEdoc||null==t.currentEdoc.policy?null:t.currentEdoc.policy.policy_number)||t.notAvailable," ")}}function $(l,T){if(1&l&&(e._uU(0),e.ALo(1,"titlecase")),2&l){const t=e.oxw();e.hij(" ",e.lcZ(1,1,(null==t.currentEdoc||null==t.currentEdoc.attachment_description?null:t.currentEdoc.attachment_description.slice(0,20))+((null==t.currentEdoc||null==t.currentEdoc.attachment_description?null:t.currentEdoc.attachment_description.length)>20?"...":""))||t.notAvailable," ")}}function j(l,T){if(1&l&&(e.TgZ(0,"span",11),e._uU(1),e.qZA()),2&l){const t=e.oxw();e.xp6(1),e.hij(" ",(null==t.currentEdoc?null:t.currentEdoc.line_of_business_code_desc)||t.notAvailable," ")}}function F(l,T){if(1&l&&e._uU(0),2&l){const t=e.oxw();e.hij(" ",(null==t.currentEdoc||null==t.currentEdoc.company_code_desc?null:t.currentEdoc.company_code_desc.slice(0,20))+((null==t.currentEdoc||null==t.currentEdoc.company_code_desc?null:t.currentEdoc.company_code_desc.length)>20?"...":"")||t.notAvailable," ")}}let q=(()=>{class l{constructor(t,u,b){this.cookieService=t,this.authGuardService=u,this.translateService=b,this.notAvailable="N/A",this.addViewOption=!1,this.impersonatMode=!1,this.language=this.translateService.currentLang,this.formatDateTimeZone=D.E}ngOnInit(){this.impersonatMode=this.authGuardService.isImpersonating(),this.addViewOption=!!window.location.href.includes("add-view"),this.currentEdoc=this.document}ngOnChanges(t){this.impersonatMode=this.authGuardService.isImpersonating(),this.addViewOption=!!window.location.href.includes("add-view"),this.currentEdoc=this.document}getCurrentUserId(){return this.cookieService.check("impersonating")?this.cookieService.get("impersonating"):JSON.parse(this.cookieService.get("user")).id}}return l.\u0275fac=function(t){return new(t||l)(e.Y36(f.N),e.Y36(a.P),e.Y36(i.sK))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-document-view-details"]],inputs:{documentId:"documentId",document:"document",userRole:"userRole",selectedTab:"selectedTab"},features:[e.TTD],decls:25,vars:20,consts:[["tabindex","0",1,"headline"],[1,"policy-details__item","details__item"],["tabindex","0",1,"details__item__label"],["tabindex","0","class","details__item__value","style","font-weight: bold",4,"ngIf","ngIfElse"],["tabindex","0","class","details__item__value","style","font-weight: bold"],["brokerdate",""],["tabindex","0","class","details__item__value",4,"ngIf","ngIfElse"],["tabindex","0","class","details__item__value",3,"tooltip"],["brokerDesc",""],["brokerCompany",""],["tabindex","0",1,"details__item__value",2,"font-weight","bold"],["tabindex","0",1,"details__item__value"]],template:function(t,u){if(1&t&&(e.TgZ(0,"h2",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div")(4,"div",1)(5,"span",2),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.YNc(8,V,2,1,"span",3),e.YNc(9,N,1,1,"ng-template",4,5,e.W1O),e.qZA(),e.TgZ(11,"div",1)(12,"span",2),e._uU(13),e.ALo(14,"translate"),e.qZA(),e.YNc(15,Y,2,1,"span",6),e.YNc(16,$,2,3,"ng-template",7,8,e.W1O),e.qZA(),e.TgZ(18,"div",1)(19,"span",2),e._uU(20),e.ALo(21,"translate"),e.qZA(),e.YNc(22,j,2,1,"span",6),e.YNc(23,F,1,1,"ng-template",7,9,e.W1O),e.qZA()()),2&t){const b=e.MAs(10),P=e.MAs(17),U=e.MAs(24);e.xp6(1),e.hij(" ",e.lcZ(2,12,"my_documents.document_details"),"\n"),e.xp6(5),e.hij(" ","Client"===u.userRole||"Client"===u.selectedTab||u.addViewOption||u.impersonatMode?e.lcZ(7,14,"my_documents.issued_on"):"Effective"," "),e.xp6(2),e.Q6J("ngIf","Client"===u.userRole||"Client"===u.selectedTab||u.addViewOption||u.impersonatMode)("ngIfElse",b),e.xp6(5),e.hij(" ","Client"===u.userRole||"Client"===u.selectedTab||u.addViewOption||u.impersonatMode?e.lcZ(14,16,"my_documents.related_policy"):"Description"," "),e.xp6(2),e.Q6J("ngIf","Client"===u.userRole||"Client"===u.selectedTab||u.addViewOption||u.impersonatMode)("ngIfElse",P),e.xp6(1),e.s9C("tooltip",(null==u.currentEdoc||null==u.currentEdoc.attachment_description?null:u.currentEdoc.attachment_description.length)>20?null==u.currentEdoc?null:u.currentEdoc.attachment_description:""),e.xp6(4),e.hij(" ","Client"===u.userRole||"Client"===u.selectedTab||u.addViewOption||u.impersonatMode?e.lcZ(21,18,"settings.new_type"):"Company"," "),e.xp6(2),e.Q6J("ngIf","Client"===u.userRole||"Client"===u.selectedTab||u.addViewOption||u.impersonatMode)("ngIfElse",U),e.xp6(1),e.s9C("tooltip",(null==u.currentEdoc||null==u.currentEdoc.company_code_desc?
1null:u.currentEdoc.company_code_desc.length)>20?null==u.currentEdoc?null:u.currentEdoc.company_code_desc:"")}},dependencies:[o.O5,c.i9,o.rS,i.X$]}),l})();const G=["pdfContainer"],Z=function(l){return{policyIds:l}},H=function(){return["/documents"]};function W(l,T){if(1&l&&(e.TgZ(0,"button",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&l){const t=e.oxw(3);e.Q6J("queryParams",e.VKq(5,Z,null==t.document?null:t.document.policy_id))("routerLink",e.DdM(7,H)),e.xp6(1),e.hij(" ",e.lcZ(2,3,"my_insurance.policy_documents")," ")}}const Q=function(l){return{"margin-top-future":l}};function X(l,T){if(1&l&&(e.TgZ(0,"div",33),e._UZ(1,"app-document-view-details",34),e.qZA()),2&l){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(5,Q,t.isFuturePolicy)),e.xp6(1),e.Q6J("documentId",null==t.document?null:t.document.id)("document",t.document)("selectedTab",t.selectedTab)("userRole",t.userRole)}}function L(l,T){1&l&&(e.TgZ(0,"div",35)(1,"div",36),e._UZ(2,"mat-icon",37),e.ALo(3,"translate"),e.TgZ(4,"span",29),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"span"),e._uU(8),e.ALo(9,"translate"),e.qZA()()()),2&l&&(e.xp6(2),e.s9C("tooltip",e.lcZ(3,3,"my_insurance.policy_not_yet_effect")),e.xp6(3),e.Oqu(e.lcZ(6,5,"my_insurance.policy_not_yet_effect")),e.xp6(3),e.Oqu(e.lcZ(9,7,"my_insurance.future_policy")))}function h(l,T){if(1&l&&(e.TgZ(0,"h2",26),e._uU(1),e.qZA()),2&l){const t=e.oxw(3);e.xp6(1),e.hij(" ",null==t.document?null:t.document.business_purpose_type_desc," ")}}function K(l,T){if(1&l&&(e.TgZ(0,"h2",26),e._uU(1),e.qZA()),2&l){const t=e.oxw(3);e.xp6(1),e.hij(" ",null==t.document?null:t.document.cycle_business_purpose_desc," ")}}function A(l,T){if(1&l&&(e.TgZ(0,"div",48)(1,"div",49),e._UZ(2,"div",50),e.qZA(),e.TgZ(3,"div",51),e._uU(4),e.qZA()()),2&l){const t=e.oxw(4);e.xp6(2),e.Udp("width",t.pdfProgress,"%"),e.xp6(2),e.hij("",t.pdfProgress,"%")}}function J(l,T){if(1&l&&(e.TgZ(0,"div",38),e.YNc(1,A,5,3,"div",39),e.TgZ(2,"div",40)(3,"div",41),e._UZ(4,"div",42)(5,"div",43),e.qZA(),e.TgZ(6,"div",44),e._UZ(7,"div",45)(8,"div",45)(9,"div",46)(10,"div",45)(11,"div",47)(12,"div",45)(13,"div",46),e.qZA()()()),2&l){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.pdfProgress>=0)}}function S(l,T){if(1&l){const t=e.EpF();e.TgZ(0,"pdf-viewer",52,53),e.NdJ("after-load-complete",function(){e.CHM(t);const b=e.oxw(3);return e.KtG(b.onLoaded())})("error",function(b){e.CHM(t);const P=e.oxw(3);return e.KtG(P.onError(b))})("on-progress",function(b){e.CHM(t);const P=e.oxw(3);return e.KtG(P.onLoadProgress(b))}),e.qZA()}if(2&l){const t=e.oxw(3);e.ekj("pdf-loading",t.pdfLoading),e.Q6J("autoresize",!0)("fit-to-page",!1)("original-size",!1)("render-text",!1)("src",t.edocSrc)}}function ee(l,T){if(1&l){const t=e.EpF();e.TgZ(0,"div",54)(1,"div",55),e._UZ(2,"mat-icon",56),e.TgZ(3,"span",29),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"span",57),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"button",58),e.NdJ("click",function(){e.CHM(t);const b=e.oxw(3);return e.KtG(b.download())}),e._uU(10),e.ALo(11,"translate"),e.qZA()()()}2&l&&(e.xp6(4),e.Oqu(e.lcZ(5,3,"No preview available")),e.xp6(3),e.Oqu(e.lcZ(8,5,"No preview available")),e.xp6(3),e.hij(" ",e.lcZ(11,7,"general.download")," "))}function te(l,T){if(1&l&&(e.TgZ(0,"button",59),e._UZ(1,"mat-icon",60),e.TgZ(2,"span",29),e._uU(3,"Go to policy documents"),e.qZA(),e.TgZ(4,"span",61),e._uU(5),e.ALo(6,"translate"),e.qZA()()),2&l){const t=e.oxw(3);e.Q6J("queryParams",e.VKq(5,Z,null==t.document?null:t.document.policy_id))("routerLink",e.DdM(7,H)),e.xp6(5),e.Oqu(e.l
1cZ(6,3,"my_documents.policies_document"))}}const ne=function(l){return{"margin-top-impersonate":l}};function oe(l,T){if(1&l){const t=e.EpF();e.TgZ(0,"div")(1,"div",2)(2,"span"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"button",3),e._UZ(6,"mat-icon",4),e.qZA(),e.TgZ(7,"mat-menu",null,5)(9,"button",6),e.NdJ("click",function(){e.CHM(t);const b=e.oxw(2);return e.KtG(b.download())}),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.YNc(12,W,3,8,"button",7),e.qZA()(),e.TgZ(13,"div",8),e.NdJ("scroll",function(b){e.CHM(t);const P=e.oxw(2);return e.KtG(P.containerScroll(b))}),e.TgZ(14,"div",9),e.YNc(15,X,2,7,"div",10),e.qZA(),e.TgZ(16,"div",11),e.YNc(17,L,10,9,"div",12),e.TgZ(18,"div",13)(19,"div",14),e.YNc(20,h,2,1,"h2",15),e.TgZ(21,"div",16)(22,"mat-icon",17),e.NdJ("click",function(){e.CHM(t);const b=e.oxw(2);return e.KtG(b.gotoPrevDoc())}),e.qZA(),e.TgZ(23,"mat-icon",18),e.NdJ("click",function(){e.CHM(t);const b=e.oxw(2);return e.KtG(b.gotoNextDoc())}),e.qZA()()(),e.YNc(24,K,2,1,"ng-template",null,19,e.W1O),e.TgZ(26,"div",20),e.YNc(27,J,14,1,"div",21),e.YNc(28,S,2,7,"pdf-viewer",22),e.qZA(),e.YNc(29,ee,12,9,"ng-template",null,23,e.W1O),e.qZA()(),e.TgZ(31,"div",24)(32,"div",25)(33,"h2",26),e._uU(34,"Actions"),e.qZA(),e.TgZ(35,"div")(36,"button",27),e.NdJ("click",function(){e.CHM(t);const b=e.oxw(2);return e.KtG(b.download())}),e._UZ(37,"mat-icon",28),e.TgZ(38,"span",29),e._uU(39,"Download this document"),e.qZA(),e.TgZ(40,"span",30),e._uU(41),e.ALo(42,"translate"),e.qZA()(),e.YNc(43,te,7,8,"button",31),e.qZA()()()()()}if(2&l){const t=e.MAs(8),u=e.MAs(25),b=e.MAs(30),P=e.oxw(2);e.xp6(3),e.Oqu(e.lcZ(4,17,"add_edocs.view_document")),e.xp6(2),e.Q6J("matMenuTriggerFor",t),e.xp6(5),e.hij(" ",e.lcZ(11,19,"general.download")," "),e.xp6(2),e.Q6J("ngIf","Client"===P.userRole||P.impersonatMode||P.viewAddOption),e.xp6(2),e.Q6J("ngClass",e.VKq(23,ne,P.isImpersonating())),e.xp6(1),e.Q6J("ngIf",P.document),e.xp6(2),e.Q6J("ngIf",P.isFuturePolicy),e.xp6(3),e.Q6J("ngIf","Client"===P.userRole||"Client"===P.selectedTab||P.impersonatMode||P.viewAddOption)("ngIfElse",u),e.xp6(7),e.Q6J("ngIf",P.pdfLoading&&!P.previewFailed),e.xp6(1),e.Q6J("ngIf",!P.previewFailed)("ngIfElse",b),e.xp6(3),e.Q6J("ngClass",e.VKq(25,ne,P.isImpersonating())),e.xp6(1),e.Q6J("ngClass",e.VKq(27,Q,P.isFuturePolicy)),e.xp6(4),e.Q6J("disabled",!P.edocSrc),e.xp6(5),e.Oqu(e.l
1cZ(42,21,"general.download")),e.xp6(2),e.Q6J("ngIf","Client"===P.userRole||P.impersonatMode)}}function ie(l,T){if(1&l&&(e.TgZ(0,"div"),e.YNc(1,oe,44,29,"div",0),e.qZA()),2&l){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.errorMessage)}}function re(l,T){if(1&l){const t=e.EpF();e.TgZ(0,"div",62)(1,"div",63),e._UZ(2,"mat-icon",56),e.TgZ(3,"span",29),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"span",57),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"span",64),e._uU(10),e.ALo(11,"translate"),e.TgZ(12,"a",65),e._uU(13),e.ALo(14,"translate"),e.qZA()(),e.TgZ(15,"button",66),e.NdJ("click",function(){e.CHM(t);const b=e.oxw();return e.KtG(b.navigateBack())}),e._uU(16),e.ALo(17,"translate"),e.qZA()()()}2&l&&(e.xp6(4),e.Oqu(e.lcZ(5,5,"my_documents.no_docs_available_for_this_folder")),e.xp6(3),e.Oqu(e.lcZ(8,7,"my_documents.no_docs_available_for_this_folder")),e.xp6(3),e.hij("",e.lcZ(11,9,"general.please")," "),e.xp6(3),e.Oqu(e.lcZ(14,11,"header_nav.new_contact_us")),e.xp6(3),e.hij(" ",e.lcZ(17,13,"general.back")," "))}let ae=(()=>{class l{constructor(t,u,b,P,U,R,B,z,se,de,le,ce,ue){this.activatedRoute=t,this.router=u,this.edocsService=b,this.brokerEdocsService=P,this.cookieService=U,this.location=R,this.headerService=B,this.translateService=z,this.authGuardService=se,this.getTranslationService=de,this.permissionsService=le,this.alertService=ce,this.route=ue,this.errorMessage="",this.isFuturePolicy=!1,this.loaded=!1,this.impersonatMode=!1,this.viewAddOption=!1,this.userRole="",this.selectedTab="",this.pageNumber=1,this.noMoreResult=!1,this.isMobile=!1,this.policyDocuments=[],this.hasNext=!0,this.hasPrev=!0,this.previewFailed=!1,this.pdfLoading=!1,this.pdfProgress=0}ngOnInit(){this.impersonatMode=this.authGuardService.isImpersonating(),this.viewAddOption=window.location.href.includes("add-view"),this.currentDocID=+this.activatedRoute.snapshot.params.id,this.userRole=(0,O.x3)(this.permissionsService),this.activatedRoute.fragment.subscribe(t=>{t&&(this.selectedTab=t)}),"no-document-found"===this.activatedRoute.snapshot.params.id?this.errorMessage="No Document Found!":"Client"===this.selectedTab||"Client"===this.userRole||this.authGuardService.isImpersonating()||window.location.href.includes("add-view")?this.currentDocID&&this.edocsService.edocsIdGet(String(this.currentDocID),"policy").subscribe(t=>{this.document=t,this.getClientDocumentFile(t)},t=>{this.errorMessage=`${t?.error?.errors?.length?t?.error?.errors[0]?.message:"An error occured"}`}):this.currentDocID&&this.brokerEdocsService.brokerEdocsIdGet(String(this.currentDocID)).subscribe(t=>{t&&(this.document=t,this.getBrokerDocumentFile(t))})}isImpersonating(){return this.authGuardService.isImpersonating()}syncDocumentUrl(t){if(null==t||""===t)return;this.currentDocID=+t;const[u,b]=this.router.url.split("#"),[P,U]=u.split("?"),R=P.split("/");if(!R.length)return;R[R.length-1]=String(t);let B=R.join("/");U&&(B+=`?${U}`);const z=this.selectedTab||b;z&&(B+=`#${z}`),this.location.replaceState(B)}gotoNextDoc(){this.previewFailed=!1;const t=this.policyDocuments.findIndex(u=>u.id===this.document?.id);"Client"===this.selectedTab||"Client"===this.userRole||this.authGuardService.isImpersonating()||window.location.href.includes("add-view")?-1!==t&&t<this.policyDocuments.length-1?(this.hasNext=!0,this.hasPrev=!1,this.getClientDocumentFile(this.policyDocuments[t+1])):this.hasNext=!1:-1!==t&&t<this.policyDocuments.length-1?(this.hasNext=!0,this.hasPrev=!1,this.getBrokerDocumentFile(this.policyDocuments[t+1])):this.hasNext=!1}gotoPrevDoc(){this.previewFailed=!1;const t=this.policyDocuments.findIndex(u=>u.id===this.document?.id);"Client"===this.selectedTab||"Client"===this.userRole||this.authGuardService.isImpersonating()||window.location.href.includes("add-view")?-1!==t&&0!==t?(this.hasPrev=!0,this.hasNext=!1,this.getClientDocumentFile(this.policyDocuments[t-1])):this.hasPrev=!1:-1!==t&&0!==t?(this.hasPrev=!0,this.getBrokerDocumentFile(this.policyDocuments[t-1])):this.hasPrev=!1}getClientDocumentFile(t){this.document=t,this.syncDocumentUrl(t?.id),this.documentTitle=this.document?this.document?.description?.split(",")[0]:"",this.document&&(this.isFuturePolicy=!!this.document?.policy&&(0,M.gZ)(this.document.policy)),this.edocsService.edocsIdDownloadGet(this.document?.id).toPromise().then(u=>{this.getPolicyEdocs(1).then(b=>{this.policyDocuments=b?.data}),this.loadDocPdf(u)}).catch(u=>{this.loaded=!0,this.hasNext&&this.policyDocuments?.length>1?this.gotoNextDoc():this.hasPrev&&this.policyDocuments?.length>1?this.gotoPrevDoc():this.errorMessage=`${u?.error?.errors?.length?u?.error?.errors[0]?.message:"An error occured"}`})}getBrokerDocumentFile(t){this.document=t,this.syncDocumentUrl(t?.id),this.mimeType=t.content_type,this.isFuturePolicy=!1,this.brokerEdocsService.brokerEdocsIdDownloadGet(this.document?.id).toPromise().then(u=>{this.documentPath=u,this.loadDocPdf(u),this.loaded=!0}).catch(u=>{this.loaded=!0,this.hasNext?this.gotoNextDoc():this.hasPrev?this.gotoPrevDoc():this.errorMessage=`${u?.error?.errors?.length?u?.error?.errors[0]?.message:"An error occured"}`})}loadDocPdf(t){this.pdfLoading=!0,this.pdfProgress=0,"Client"===this.selectedTab||"Client"===this.userRole||this.authGuardService.isImpersonating()||window.location.href.includes("add-view")?(this.edocSrc={url:t?.downloadUrl},this.loaded=!0):(t&&(this.edocSrc={url:t.url}),this.loaded=!0)}getPolicyEdocs(t){return"Client"===this.selectedTab||"Client"===this.userRole||this.authGuardService.isImpersonating()||window.location.href.includes("add-view")?this.edocsService.edocsGet(void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,this.document.policy_id,void 0,void 0,void 0,"policy",void 0,t,"500","transaction_response_date,desc").toProm
1ise():this.brokerEdocsService.brokerEdocsGet(void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t,"500","transaction_response_date,desc").toPromise()}onScrollDown(){this.noMoreResult||(this.loaded=!0,this.pageNumber=this.pageNumber+1,this.getPolicyEdocs(this.pageNumber).then(t=>{this.policyDocuments?.concat(t.data),this.noMoreResult=!t.next_page_url,this.loaded=!1}))}ngDoCheck(){k.tj.querySelectorAll("canvas").forEach(t=>{t.setAttribute("tabindex","0"),t.setAttribute("role","document")})}toggleLanguage(){return this.getTranslationService.getSelectedLanguage().subscribe(t=>{this.translateService.currentLang!==t&&this.translateService.use(t)})}getUserId(){return this.cookieService.check("impersonating")?`&policy.relatedInsureds.user_id=${this.cookieService.get("impersonating")}`:""}download(){"Client"===this.selectedTab||"Client"===this.userRole||this.authGuardService.isImpersonating()||window.location.href.includes("add-view")?this.edocsService.edocsIdDownloadGet(String(this.document?.id??this.currentDocID??"")).toPromise().then(t=>{(0,O.xt)(`${this.document.filename}`,g,t?.downloadUrl,this.mimeType)}).catch(t=>{this.alertService.openDanger(`${t?.error?.errors?.length?t?.error?.errors[0]?.message:"An error occured"}`)}):(0,O.xt)(`${this.document.filename}`,g,this.documentPath,this.mimeType)}navigateBack(){this.location.back()}ngOnDestroy(){this.edocSrc=null,this.mimeType=null,this.toggleLanguage().unsubscribe()}onLoaded(){console.log("PDF loaded"),k.tj.getElementsByClassName("ng2-pdf-viewer-container")[0].setAttribute("tabindex","0"),this.pdfLoading=!1,this.pdfProgress=100}onLoadProgress(t){console.log("PDF progressing",t),t&&t.loaded&&t.total&&(this.pdfProgress=Math.round(t.loaded/t.total*100))}onError(t){console.log(t),this.previewFailed=!0,this.pdfLoading=!1}containerScroll(t){k.tj.getElementById("details")}}return l.\u0275fac=function(t){return new(t||l)(e.Y36(x.gz),e.Y36(x.F0),e.Y36(C.a),e.Y36(y.o),e.Y36(f.N),e.Y36(o.Ye),e.Y36(d.r),e.Y36(i.sK),e.Y36(a.P),e.Y36(n.T),e.Y36(r.q),e.Y36(s.f),e.Y36(x.gz))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-document-view"]],viewQuery:function(t,u){if(1&t&&e.Gf(G,5),2&t){let b;e.iGM(b=e.CRH())&&(u.pdfContainer=b.first)}},decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngIf"],[1,"header"],["mat-button","",3,"matMenuTriggerFor"],["color","primary","svgIcon","vertical-menu"],["menu","matMenu"],["mat-menu-item","",1,"test__pink-card-download","cursor-pointer",3,"click"],["class","test__policy-documents cursor-pointer","mat-menu-item","",3,"queryParams","routerLink",4,"ngIf"],[1,"container","flex-container","bootstrap-wrapper","row",3,"scroll"],["id","details",1,"col-sm-12","col-md-3","details","doc____top",2,"padding-left","0",3,"ngClass"],["class","policy-details details-info-card edoc-info rounded-border-bg-white","style","flex-grow: 1",3,"ngClass",4,"ngIf"],[1,"doc-pdf","col-sm-6","col-md-6"],["class","future-policy-flag primary-bg",4,"ngIf"],[1,"rounded-border-bg-white","center",2,"display","block"],[1,"edoc-header"],["class","headline","tabindex","0",4,"ngIf","ngIfElse"],[1,"shuffle"],["svgIcon","arrow-left",1,"primary-svg",3,"click"],["svgIcon","arrow-right",1,"primary-svg",3,"click"],["broker",""],[1,"pdf-viewer-wrapper",2,"position","relative"],["class","pdf-loading-overlay",4,"ngIf"],["class","test__pdf-doc","role","document","style","display: block",3,"autoresize","fit-to-page","original-size","render-text","src","pdf-loading","after-load-complete","error","on-progress",4,"ngIf","ngIfElse"],["pdfErrorTemplate",""],["id","actions",1,"col-sm-12","col-md-3","actions","doc____top",2,"padding-right","0",3,"ngClass"],[1,"intact-client-center-and-quick-links","rounded-border-bg-white","quick-links",2,"min-width","185px","flex-grow","1",3,"ngClass"],["tabindex","0",1,"headline"],["tabindex","0",1,"test__download","cursor-pointer",3,"disabled","click"],["alt"," Download this document","id","downloadThisDOcument","svgIcon","download",2,"padding-bottom","4px"],[1,"cdk-visually-hidden"],[2,"padding","4px 8px"],["class","test__my-documents cursor-pointer","style","display: flex","tabindex","0",3,"queryParams","routerLink",4,"ngIf"],["mat-menu-item","",1,"test__policy-documents","cursor-pointer",3,"queryParams","routerLink"],[1,"policy-detail
1s","details-info-card","edoc-info","rounded-border-bg-white",2,"flex-grow","1",3,"ngClass"],[3,"documentId","document","selectedTab","userRole"],[1,"future-policy-flag","primary-bg"],["tabindex","0"],["svgIcon","futureInfo",1,"svg-fill-white",3,"tooltip"],[1,"pdf-loading-overlay"],["class","pdf-progress-container",4,"ngIf"],[1,"pdf-skeleton"],[1,"pdf-skeleton-header"],[1,"skeleton-line","skeleton-title"],[1,"skeleton-line","skeleton-subtitle"],[1,"pdf-skeleton-content"],[1,"skeleton-line"],[1,"skeleton-line","skeleton-short"],[1,"skeleton-line","skeleton-medium"],[1,"pdf-progress-container"],[1,"pdf-progress-bar"],[1,"pdf-progress-fill"],[1,"pdf-progress-text"],["role","document",1,"test__pdf-doc",2,"display","block",3,"autoresize","fit-to-page","original-size","render-text","src","after-load-complete","error","on-progress"],["pdfContainer",""],[1,""],[1,"no-documents-found","w-100"],["svgIcon","sorry"],["tabindex","0",1,"no-docs-available"],["color","primary","mat-raised-button","","tabindex","0",1,"test__download",3,"click"],["tabindex","0",1,"test__my-documents","cursor-pointer",2,"display","flex",3,"queryParams","routerLink"],["alt","Go to policy documents","id","Gotopolicydocuments","svgIcon","navToDocuments",1,"svg-fill-white"],[2,"padding","0 8px"],[1,"container"],[1,"no-documents-found"],["tabindex","0",1,"contact-us"],["routerLink","/support-ticket","tabindex","0",1,"primary-color","cursor-pointer"],["color","primary","mat-raised-button","","tabindex","0",1,"test__back",3,"click"]],template:function(t,u){1&t&&(e.YNc(0,ie,2,1,"div",0),e.YNc(1,re,18,15,"ng-template",1)),2&t&&(e.Q6J("ngIf",u.loaded),e.xp6(1),e.Q6J("ngIf",u.errorMessage))},dependencies:[o.mk,o.O5,m.rQ,x.rH,x.yS,p.Hw,w.lW,v.VK,v.OP,v.p6,c.i9,q,i.X$],styles:[".margin-top-future[_ngcontent-%COMP%]{margin-top:44px!important}.no-documents-found[_ngcontent-%COMP%]{width:100%!important;background-color:#fff;width:460px;margin:auto;padding:48px 64px 32px;border-radius:8px;height:350px;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}@media only screen and (max-width: 768px){.no-documents-found[_ngcontent-%COMP%]{width:100%}}.no-documents-found[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:88px;width:67px;cursor:auto;margin-bottom:32px}.no-documents-found[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-bottom:21px}.no-documents-found[_ngcontent-%COMP%] span.no-docs-available[_ngcontent-%COMP%]{color:#8c8c8c;font-family:Roboto;font-size:16px;font-weight:500;line-height:21px;text-align:center}.no-documents-found[_ngcontent-%COMP%] span.contact-us[_ngcontent-%COMP%]{color:#4d4d4d;font-family:Source Sans Pro;font-size:14px;line-height:18px;text-align:center}.no-documents-found[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-top:auto;width:50%}.hidden[_ngcontent-%COMP%]{display:none!important}.header[_ngcontent-%COMP%]{position:fixed;top:0;z-index:2;width:100%;background-color:#fafafa;display:-webkit-box;display:-webkit-flex;display:flex;padding:70px 24px 15px 16px;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:16px;font-weight:700;color:gray;letter-spacing:1px;max-width:290px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{right:0;position:absolute}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:26px;font-weight:600}@media only screen and (min-width: 1025px){.header[_ngcontent-%COMP%]{display:none!important}}@media only screen and (max-width: 1024px){.flex-container[_ngcontent-%COMP%], .tru-flex-column[_ngcontent-%COMP%], .tru-flex-center[_ngcontent-%COMP%], .tru-flex-row[_ngcontent-%COMP%]{-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-webkit-flex-direction:column!important;flex-direction:column!important}.flex-container[_ngcontent-%COMP%] .details-info-card[_ngcontent-%COMP%], .tru-flex-row[_ngcontent-%COMP%] .details-info-card[_ngcontent-%COMP%], .tru-flex-column[_ngcontent-%COMP%] .details-info-card[_ngcontent-%COMP%], .tru-flex-center[_ngcontent-%COMP%] .details-info-card[_ngcontent-%COMP%], .flex-container[_ngcontent-%COMP%] .rounded-border-bg-white[_ngcontent-%COMP%], .tru-flex-row[_ngcontent-%COMP%] .rounded-border-bg-white[_ngcontent-%COMP%], .tru-flex-column[_ngcontent-%COMP%] .rounded-border-bg-white[_ngcontent-%COMP%], .tru-flex-center[_ngcontent-%COMP%] .rounded-border-bg-white[_ngcontent-%COMP%]{max-width:none!important;max-width:initial!important;width:-webkit-calc(100% - 24px)!important;width:calc(100% - 24px)!important;margin-right:0!important;margin-left:0!important;border-radius:0!important;border-radius:initial!important}.quick-links[_ngcontent-%COMP%]{display:none!important}.container[_ngcontent-%COMP%]{padding:98px 0 0;width:100%}.container[_ngcontent-%COMP%] .details[_ngcontent-%COMP%]{max-width:none!important;max-width:initial!important;top:120px!important}.container[_ngcontent-%COMP%] .doc-pdf[_ngcontent-%COMP%]{top:300px;max-width:100%}}
1@media only screen and (max-width: 415px){.policy-details[_ngcontent-%COMP%]{display:none!important}.header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}}.edoc-info[_ngcontent-%COMP%]{max-width:none!important;max-width:initial!important}.container[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.container[_ngcontent-%COMP%] .details[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{position:fixed;top:100px;max-width:18.65%}.container[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{right:48px}.container[_ngcontent-%COMP%] .doc-pdf[_ngcontent-%COMP%]{margin:auto}.container[_ngcontent-%COMP%]{-ms-overflow-style:none!important;scrollbar-width:none!important}.edoc-header[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:100%;padding:0 24px}.edoc-header[_ngcontent-%COMP%] .shuffle[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:flex}.edoc-header[_ngcontent-%COMP%] .shuffle[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:18.789px;height:15.822px}.edoc-header[_ngcontent-%COMP%] .shuffle[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]:nth-child(1){margin-right:12px}.edoc-header[_ngcontent-%COMP%] .shuffle[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%] svg path{fill:var(--main-color)!important}.has-breadcrumb[_ngcontent-%COMP%] .details[_ngcontent-%COMP%], .has-breadcrumb[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{top:128px!important}.margin-top-impersonate[_ngcontent-%COMP%]{margin-top:48px}.no-documents-found[_ngcontent-%COMP%] .test__download[_ngcontent-%COMP%]{margin-top:0!important}.pdf-viewer-wrapper[_ngcontent-%COMP%]{position:relative;min-height:400px}.pdf-loading-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(255,255,255,.95);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;z-index:10;border-radius:8px}.pdf-loading-overlay[_ngcontent-%COMP%] .pdf-skeleton[_ngcontent-%COMP%]{width:100%;max-width:800px;background-color:#fff;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;gap:16px}.pdf-loading-overlay[_ngcontent-%COMP%] .pdf-skeleton[_ngcontent-%COMP%] .pdf-skeleton-header[_ngcontent-%COMP%]{margin-top:0;margin-bottom:24px;padding-top:32px;padding-bottom:16px;border-bottom:2px solid #f0f0f0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;gap:12px}.pdf-loading-overlay[_ngcontent-%COMP%] .pdf-skeleton[_ngcontent-%COMP%] .pdf-skeleton-content[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;gap:12px;-webkit-box-flex:1;-webkit-flex:1;flex:1}.pdf-loading-overlay[_ngcontent-%COMP%] .pdf-skeleton[_ngcontent-%COMP%] .skeleton-line[_ngcontent-%COMP%]{height:16px;background:-webkit-gradient(linear,left top,right top,from(#f0f0f0),color-stop(50%,#e0e0e0),to(#f0f0f0));background:linear-gradient(90deg,#f0f0f0 0%,#e0e0e0 50%,#f0f0f0 100%);background-size:200% 100%;-webkit-animation:skeleton-loading 1.5s ease-in-out infinite;animation:skeleton-loading 1.5s ease-in-out infinite;border-radius:4px}.pdf-loading-overlay[_ngcontent-%COMP%] .pdf-skeleton[_ngcontent-%COMP%] .skeleton-line.skeleton-title[_ngcontent-%COMP%]{height:24px;width:60%;margin-bottom:4px}.pdf-loading-overlay[_ngcontent-%COMP%] .pdf-skeleton[_ngcontent-%COMP%] .skeleton-line.skeleton-subtitle[_ngcontent-%COMP%]{height:18px;width:40%}.pdf-loading-overlay[_ngcontent-%COMP%] .pdf-skeleton[_ngcontent-%COMP%] .skeleton-line.skeleton-short[_ngcontent-%COMP%]{width:35%}.pdf-loading-overlay[_ngcontent-%COMP%] .pdf-skeleton[_ngcontent-%COMP%] .skeleton-line.skeleton-medium[_ng
1content-%COMP%]{width:55%}.pdf-loading-overlay[_ngcontent-%COMP%] .pdf-skeleton[_ngcontent-%COMP%] .skeleton-line[_ngcontent-%COMP%]:not(.skeleton-title):not(.skeleton-subtitle):not(.skeleton-short):not(.skeleton-medium){width:100%}.pdf-loading-overlay[_ngcontent-%COMP%] .pdf-progress-container[_ngcontent-%COMP%]{width:100%;max-width:800px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-align:center;-webkit-align-items:center;align-items:center;gap:12px;margin-bottom:24px;padding:0 40px}.pdf-loading-overlay[_ngcontent-%COMP%] .pdf-progress-container[_ngcontent-%COMP%] .pdf-progress-bar[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:6px;background-color:#e0e0e0;border-radius:3px;overflow:hidden;position:relative}.pdf-loading-overlay[_ngcontent-%COMP%] .pdf-progress-container[_ngcontent-%COMP%] .pdf-progress-bar[_ngcontent-%COMP%] .pdf-progress-fill[_ngcontent-%COMP%]{height:100%;background:-webkit-gradient(linear,left top,right top,from(#1976d2),to(#42a5f5));background:linear-gradient(90deg,#1976d2 0%,#42a5f5 100%);background:-webkit-gradient(linear,left top,right top,from(var(--main-color, #1976d2)),to(#42a5f5));background:linear-gradient(90deg,var(--main-color, #1976d2) 0%,#42a5f5 100%);border-radius:3px;-webkit-transition:width .3s ease;transition:width .3s ease;box-shadow:0 2px 4px rgba(25,118,210,.3)}.pdf-loading-overlay[_ngcontent-%COMP%] .pdf-progress-container[_ngcontent-%COMP%] .pdf-progress-text[_ngcontent-%COMP%]{color:#4d4d4d;font-family:Source Sans Pro,sans-serif;font-size:14px;font-weight:500;line-height:18px;white-space:nowrap;min-width:45px;text-align:right}.pdf-loading-overlay[_ngcontent-%COMP%] .pdf-loading-spinner[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:11}.pdf-loading-overlay[_ngcontent-%COMP%] .pdf-loading-text[_ngcontent-%COMP%]{color:#4d4d4d;font-family:Source Sans Pro,sans-serif;font-size:14px;line-height:18px;margin:0}@-webkit-keyframes skeleton-loading{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes skeleton-loading{0%{background-position:200% 0}to{background-position:-200% 0}}.test__pdf-doc.pdf-loading[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}"]}),l})()},94327:function(I,E){var O;void 0!==(O=function(){"use strict";function M(o,d,i){var a=new XMLHttpRequest;a.open("GET",o),a.responseType="blob",a.onload=function(){f(a.response,d,i)},a.onerror=function(){console.error("could not download file")},a.send()}function e(o){var d=new XMLHttpRequest;d.open("HEAD",o,!1);try{d.send()}catch{}return 200<=d.status&&299>=d.status}function x(o){try{o.dispatchEvent(new MouseEvent("click"))}catch{var d=document.createEvent("MouseEvents");
vendor: 2,079 bytes, line 1
1d.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),o.dispatchEvent(d)}}var C="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,y=C.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),f=C.saveAs||("object"!=typeof window||window!==C?function(){}:"download"in HTMLAnchorElement.prototype&&!y?function(o,d,i){var a=C.URL||C.webkitURL,n=document.createElement("a");n.download=d=d||o.name||"download",n.rel="noopener","string"==typeof o?(n.href=o,n.origin===location.origin?x(n):e(n.href)?M(o,d,i):x(n,n.target="_blank")):(n.href=a.createObjectURL(o),setTimeout(function(){a.revokeObjectURL(n.href)},4e4),setTimeout(function(){x(n)},0))}:"msSaveOrOpenBlob"in navigator?function(o,d,i){if(d=d||o.name||"download","string"!=typeof o)navigator.msSaveOrOpenBlob(function k(o,d){return typeof d>"u"?d={autoBom:!1}:"object"!=typeof d&&(console.warn("Deprecated: Expected third argument to be a object"),d={autoBom:!d}),d.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\ufeff",o],{type:o.type}):o}(o,i),d);else if(e(o))M(o,d,i);else{var a=document.createElement("a");a.href=o,a.target="_blank",setTimeout(function(){x(a)})}}:function(o,d,i,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof o)return M(o,d,i);var n="application/octet-stream"===o.type,r=/constructor/i.test(C.HTMLElement)||C.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||n&&r||y)&&typeof FileReader<"u"){var m=new FileReader;m.onloadend=function(){var v=m.result;v=s?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=v:location=v,a=null},m.readAsDataURL(o)}else{var p=C.URL||C.webkitURL,w=p.createObjectURL(o);a?a.location=w:location.href=w,a=null,setTimeout(function(){p.revokeObjectURL(w)},4e4)}});C.saveAs=f.saveAs=f,I.exports=f}.apply(E,[]))&&(I.exports=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.