(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fa8797e8"],{"04de":function(t,e,n){"use strict";n.r(e);n("498a");var s=function(){var t=this,e=t._self._c;return e("b-container",[e("h1",[t._v("Policy Forms and Documents")]),e("br"),e("b-container",{staticClass:"singlePanel"},[e("br"),e("b-row",{staticClass:"justify-content-center"},[e("b-col",{attrs:{md:"8"}},[t._v(" This page contains a list of all the general documents of interest to policy holders. ")])],1),1===t.stateDropDownType||2===t.stateDropDownType?e("b-row",[e("b-col",{attrs:{"offset-lg":"2",lg:"6"}},[e("b-row",{attrs:{"align-v":"center"}},[e("b-col",[e("b-form-group",{attrs:{label:"Please choose the state in which your property is located.","label-for":"input-State"}},[e("b-form-select",{attrs:{id:"input-state",options:t.stateList,size:"sm",value:"0",placeholder:"State"},on:{change:t.OnStateChange},model:{value:t.state,callback:function(e){t.state="string"===typeof e?e.trim():e},expression:"state"}})],1)],1)],1)],1)],1):t._e(),e("b-row",{staticClass:"errorRow"}),0!=t.stateDropDownType?e("b-row",{staticClass:"errorRow"}):t._e(),e("b-row",{attrs:{"align-v":"center"}},[e("b-col",{attrs:{"offset-lg":"3",lg:"6"}},t._l(t.dwellingResources,(function(t,n){return e("resource",{key:t.customContentId,attrs:{index:n,customContent:t}})})),1)],1),t.generalResources.length>0?e("b-row",{staticClass:"policyForms",attrs:{"align-v":"center"}},[e("b-col",{attrs:{"offset-lg":"3",lg:"4"}},[e("hr")])],1):t._e(),e("b-row",{attrs:{"align-v":"center"}},[e("b-col",{attrs:{"offset-lg":"3",lg:"6"}},t._l(t.generalResources,(function(t,n){return e("resource",{key:t.customContentId,attrs:{index:n,customContent:t}})})),1)],1),t.rcbapResources.length>0?e("b-row",{staticClass:"policyForms",attrs:{"align-v":"center"}},[e("b-col",{attrs:{"offset-lg":"3",lg:"4"}},[e("hr")])],1):t._e(),e("b-row",{attrs:{"align-v":"center"}},[e("b-col",{attrs:{"offset-lg":"3",lg:"6"}},t._l(t.rcbapResources,(function(t,n){return e("resource",{key:t.customContentId,attrs:{index:n,customContent:t}})})),1)],1),t.femaResources.length>0?e("b-row",{staticClass:"policyForms",attrs:{"align-v":"center"}},[e("b-col",{attrs:{"offset-lg":"3",lg:"4"}},[e("hr")])],1):t._e(),e("b-row",{attrs:{"align-v":"center"}},[e("b-col",{attrs:{"offset-lg":"3",lg:"6"}},t._l(t.femaResources,(function(t,n){return e("resource",{key:t.customContentId,attrs:{index:n,customContent:t}})})),1)],1),t.otherResources.length>0?e("b-row",{staticClass:"policyForms",attrs:{"align-v":"center"}},[e("b-col",{attrs:{"offset-lg":"3",lg:"4"}},[e("hr")])],1):t._e(),e("b-row",{attrs:{"align-v":"center"}},[e("b-col",{attrs:{offset:"3",md:"6"}},t._l(t.otherResources,(function(t,n){return e("resource",{key:t.customContentId,attrs:{index:n,customContent:t}})})),1)],1)],1),e("b-container",{staticClass:"buttonBar"},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("div",{staticClass:"buttonContainer"},[e("button",{staticClass:"btn wideButton buttonProcess",attrs:{type:"button"},on:{click:t.Cancel}},[t._v("Cancel")])])])],1)],1)],1)},o=[],r=(n("99af"),n("4de4"),n("caad"),n("14d9"),n("fb6a"),n("4e82"),n("b64b"),n("d3b7"),n("2532"),n("2319")),i=n("74b0"),c=n("743b"),a=n("a3ca"),u={name:"PolicyFormsDocuments",components:{Resource:a["a"]},data:function(){return{state:"",stateList:[],dbStateList:[],entityStateList:[],allResources:[],entityResources:[],stateDropDownType:0,subtypeID:0,subTitle:"0",dwellingResources:[],generalResources:[],rcbapResources:[],femaResources:[],otherResources:[]}},created:function(){var t=this;c["a"].getCustomContent(8).then((function(e){!i["a"].isNull(e)&&e.length>0&&(1===e.length?t.stateDropDownType=1:4===e.length?t.stateDropDownType=2:t.stateDropDownType=0,t.entityStateList=e,t.LoadStates()),c["a"].getCustomContent(7).then((function(e){if(!i["a"].isNull(e)&&e.length>0)if(1===t.stateDropDownType||2===t.stateDropDownType)for(var n=0,s=Object.keys(e);n<s.length;n++){var o=s[n];e[o].entityId!==t.$root.theme.themeEntityID&&1!==e[o].entityId||t.allResources.push(e[o])}else{for(var r=0,c=Object.keys(e);r<c.length;r++){var a=c[r];e[a].entityId!==t.$root.theme.themeEntityID&&1!==e[a].entityId||t.entityResources.push(e[a])}t.SetDocumentVisibility()}})).catch((function(e){t.errors.push(e)}))})).catch((function(e){t.errors.push(e)}))},methods:{OnStateChange:function(){this.MapContentSubtype(),"0"==this.subTitle&&0==this.subtypeID||(this.entityResources=[],this.FilterContent()),this.SetDocumentVisibility()},FilterContent:function(){var t=this.subtypeID,e=this.subTitle,n=[],s=[];switch(this.stateDropDownType){case 1:n=this.allResources.filter((function(t){return t.subTitle===e})),s=this.allResources.filter((function(t){return 1===t.entityId})),this.entityResources=n.concat(s);break;case 2:n=this.allResources.filter((function(e){return e.contentSubTypeId===t})),s=this.allResources.filter((function(t){return"GEN"===t.subTitle})),this.entityResources=n.concat(s);break;default:}},LoadStates:function(){var t=this;r["a"].getStateList(1).then((function(e){t.dbStateList=e;for(var n=0,s=Object.keys(e);n<s.length;n++){var o=s[n];1===t.stateDropDownType?(0==o||t.entityStateList[0].content.includes(e[o].value))&&t.stateList.push({value:e[o].value,text:e[o].text}):2===t.stateDropDownType&&(0==o||t.entityStateList[0].content.includes(e[o].value)||t.entityStateList[1].content.includes(e[o].value)||t.entityStateList[2].content.includes(e[o].value)||t.entityStateList[3].content.includes(e[o].value))&&t.stateList.push({value:e[o].value,text:e[o].text})}t.stateList[0].text="SELECT",t.stateList[0].value=0})).catch((function(e){t.errors.push(e)}))},MapContentSubtype:function(){1===this.stateDropDownType?this.subTitle=this.state:2===this.stateDropDownType&&(this.entityStateList[0].content.includes(this.state)?this.subtypeID=3:this.entityStateList[1].content.includes(this.state)?this.subtypeID=4:this.entityStateList[2].content.includes(this.state)?this.subtypeID=5:this.entityStateList[3].content.includes(this.state)?this.subtypeID=6:this.subtypeID=0)},SetDocumentVisibility:function(){this.entityResources.sort((function(t,e){return t.orderId-e.orderId})),this.dwellingResources=this.entityResources.slice(0,2),this.generalResources=this.entityResources.slice(2,4),this.rcbapResources=this.entityResources.slice(4,6),this.femaResources=this.entityResources.slice(6,14),this.otherResources=this.entityResources.slice(14,this.entityResources.length)},Cancel:function(){this.$router.go(-1)}}},l=u,h=(n("dbd3"),n("2877")),f=Object(h["a"])(l,s,o,!1,null,"1cb5d664",null);e["default"]=f.exports},1512:function(t,e,n){},2319:function(t,e,n){"use strict";var s=n("c7eb"),o=n("1da1"),r=n("74b0");e["a"]={getCountryList:function(t){return this.checkCache("CountryList",t).then((function(e){return null==e||0==e.length?r["a"].makeServiceCallWithRefresh("get","api/Lookup/"+t):e})).catch((function(t){}))},getStateList:function(t){return this.checkCache("StateList",t).then((function(e){return null==e||0==e.length?r["a"].makeServiceCallWithRefresh("get","api/Lookup/"+t):e})).catch((function(t){}))},getPolicyDisplayStatus:function(t){return this.checkCache("PolicyDisplayStatus",t).then((function(e){return null==e||0==e.length?r["a"].makeServiceCallWithRefresh("get","api/Lookup/"+t):e})).catch((function(t){}))},getClaimRelationToInsuredList:function(t){return this.checkCache("ClaimRelationToInsured",t).then((function(e){return null==e||0==e.length?r["a"].makeServiceCallWithRefresh("get","api/Lookup/"+t):e})).catch((function(t){}))},checkCache:function(t,e){var n=arguments;return Object(o["a"])(Object(s["a"])().mark((function o(){var i;return Object(s["a"])().wrap((function(s){while(1)switch(s.prev=s.next){case 0:return i=n.length>2&&void 0!==n[2]?n[2]:null,s.abrupt("return",r["a"].checkCache("Lookup",t,e,i));case 2:case"end":return s.stop()}}),o)})))()},setCache:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return r["a"].setCache("Lookup",t,e,n,s)}}},"25f0":function(t,e,n){"use strict";var s=n("5e77").PROPER,o=n("cb2d"),r=n("825a"),i=n("577e"),c=n("d039"),a=n("90d8"),u="toString",l=RegExp.prototype,h=l[u],f=c((function(){return"/a/b"!==h.call({source:"a",flags:"b"})})),p=s&&h.name!==u;(f||p)&&o(l,u,(function(){var t=r(this),e=i(t.source),n=i(a(t));return"/"+e+"/"+n}),{unsafe:!0})},"498a":function(t,e,n){"use strict";var s=n("23e7"),o=n("58a8").trim,r=n("c8d2");s({target:"String",proto:!0,forced:r("trim")},{trim:function(){return o(this)}})},"90d8":function(t,e,n){"use strict";var s=n("c65b"),o=n("1a2d"),r=n("3a9b"),i=n("ad6d"),c=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in c||o(t,"flags")||!r(c,t)?e:s(i,t)}},"99af":function(t,e,n){"use strict";var s=n("23e7"),o=n("d039"),r=n("e8b5"),i=n("861d"),c=n("7b0b"),a=n("07fa"),u=n("3511"),l=n("8418"),h=n("65f0"),f=n("1dde"),p=n("b622"),b=n("1212"),d=p("isConcatSpreadable"),y=b>=51||!o((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),g=function(t){if(!i(t))return!1;var e=t[d];return void 0!==e?!!e:r(t)},m=!y||!f("concat");s({target:"Array",proto:!0,arity:1,forced:m},{concat:function(t){var e,n,s,o,r,i=c(this),f=h(i,0),p=0;for(e=-1,s=arguments.length;e<s;e++)if(r=-1===e?i:arguments[e],g(r))for(o=a(r),u(p+o),n=0;n<o;n++,p++)n in r&&l(f,p,r[n]);else u(p+1),l(f,p++,r);return f.length=p,f}})},a3ca:function(t,e,n){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"resourceItem"},[e("a",{attrs:{id:t.customContent.customContentId,title:t.customContent.content},on:{click:function(e){return t.OnResourceClick()}}},[t._v(" "+t._s(t.customContent.title)+" ")])])},o=[],r=(n("d3b7"),n("25f0"),{name:"Resource",props:{customContent:Object,policyID:String},data:function(){return{title:"",content:"",linkURL:"",customContentId:"",linkImage:""}},methods:{OnResourceClick:function(){null!=this.customContent.linkURL&&""!=this.customContent.linkURL&&("/"===this.customContent.linkURL[0]?window.open(this.customContent.linkURL+"/"+this.policyID.toString(),"_blank"):window.open(this.customContent.linkURL,"_blank"))}}}),i=r,c=n("2877"),a=Object(c["a"])(i,s,o,!1,null,null,null);e["a"]=a.exports},c8d2:function(t,e,n){"use strict";var s=n("5e77").PROPER,o=n("d039"),r=n("5899"),i="​᠎";t.exports=function(t){return o((function(){return!!r[t]()||i[t]()!==i||s&&r[t].name!==t}))}},dbd3:function(t,e,n){"use strict";n("1512")}}]);