{"version":3,"file":"commons.async.3c2adae2ecf1464ac637.chunk.js","mappings":";;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACzNA;AACA;AACA;AACA;;;;;;;;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACHA;AAEA;AAEA;AAAA;AAyBA;AAtBA;AAAA;AAEA;AACA;;;AAAA;AAEA;AAAA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;;;AAAA;AAvBA;AAAA;;AAAA;AAEA;AAAA;;;AAGA;AAEA;AAAA;;;AAgBA;AACA;AAAA;AAzBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACIA;AACA;AACA;AAMA;AAAA;AAIA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAGA;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAnCA;AADA;;AACA;AAoCA;AAAA;AApCA;AAsCA;AAAA;AAgBA;AAZA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAcA;AAXA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAcA;AAXA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3HA;AACA;AACA;AAEA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAKA;AALA;AAOA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;;;AAAA;AAEA;AAAA;AAAA;AAEA;AACA;;;AAAA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AAlCA;AAAA;;AAAA;AAsBA;AAAA;;;AAGA;AAhCA;AADA;AAGA;AACA;AACA;AAJA;AA0CA;AAAA;AA1CA;AA4CA;AAAA;AA6BA;AAxBA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAIA;AAAA;AA7BA;;;;;;;;;;;;;;;;;;;;;;;;;;ACrDA;AACA;AAGA;AACA;AAAA;AAAA;AAKA;AACA;AACA;AACA;AAEA;AACA;AACA;AAbA;AADA;AAEA;AADA;AAcA;AAAA;AAdA","sources":["webpack://client-app/./src/application/policy.scss","webpack://client-app/./src/application/policy.html","webpack://client-app/./src/resources/dialogs/notice.html","webpack://client-app/./src/application/form-pages/pageBase.ts","webpack://client-app/./src/application/gql/SendLoginLink.tsgql.ts","webpack://client-app/./src/application/policy.ts","webpack://client-app/./src/resources/dialogs/notice.ts"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"../resources/img/nh.jpg\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_1___ = new URL(\"../resources/img/sh.jpg\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_2___ = new URL(\"../resources/img/com.jpg\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_3___ = new URL(\"../resources/img/prs.jpg\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_4___ = new URL(\"../resources/img/ch.jpg\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_5___ = new URL(\"../resources/img/sb.jpg\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_6___ = new URL(\"../resources/img/tick.png\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_7___ = new URL(\"../resources/img/cross.png\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_8___ = new URL(\"../resources/img/warning.png\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\nvar ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);\nvar ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___);\nvar ___CSS_LOADER_URL_REPLACEMENT_3___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_3___);\nvar ___CSS_LOADER_URL_REPLACEMENT_4___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_4___);\nvar ___CSS_LOADER_URL_REPLACEMENT_5___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_5___);\nvar ___CSS_LOADER_URL_REPLACEMENT_6___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_6___);\nvar ___CSS_LOADER_URL_REPLACEMENT_7___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_7___);\nvar ___CSS_LOADER_URL_REPLACEMENT_8___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_8___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `div#policies .policy-row {\n width: 100%;\n margin-bottom: 7px;\n background-color: #f3f3f3;\n transition: background-color 0.2s ease-out;\n -webkit-transition: background-color 0.2s ease-out;\n -moz-transition: background-color 0.2s ease-out;\n -ms-transition: background-color 0.2s ease-out;\n -o-transition: background-color 0.2s ease-out;\n position: relative;\n cursor: pointer;\n}\ndiv#policies .policy-row:hover {\n background-color: #ddd;\n}\ndiv#policies .policy-row:hover .policy-img::after {\n background: rgba(0, 0, 0, 0.6);\n}\ndiv#policies .policy-row:hover ex-icon {\n opacity: 1;\n}\ndiv#policies .policy-row .policy-title {\n float: left;\n display: table;\n position: relative;\n height: 130px;\n width: 30%;\n overflow: hidden;\n text-align: center;\n color: #fff;\n font-size: 1.2em;\n}\ndiv#policies .policy-row .policy-title span {\n display: table-cell;\n vertical-align: middle;\n text-align: center;\n z-index: 1;\n padding: 10px;\n}\ndiv#policies .policy-row .policy-img {\n position: absolute;\n top: 0;\n left: 0;\n height: 130px;\n width: 30%;\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n background-color: #ececec;\n}\ndiv#policies .policy-row .policy-img.policy-NEWHOMES {\n background-image: url(${___CSS_LOADER_URL_REPLACEMENT_0___});\n}\ndiv#policies .policy-row .policy-img.policy-SOCIALHOUSING {\n background-image: url(${___CSS_LOADER_URL_REPLACEMENT_1___});\n}\ndiv#policies .policy-row .policy-img.policy-COMMERCIAL {\n background-image: url(${___CSS_LOADER_URL_REPLACEMENT_2___});\n}\ndiv#policies .policy-row .policy-img.policy-PRS {\n background-image: url(${___CSS_LOADER_URL_REPLACEMENT_3___});\n}\ndiv#policies .policy-row .policy-img.policy-COMPLETED {\n background-image: url(${___CSS_LOADER_URL_REPLACEMENT_4___});\n}\ndiv#policies .policy-row .policy-img.policy-SELFBUILD {\n background-image: url(${___CSS_LOADER_URL_REPLACEMENT_5___});\n}\ndiv#policies .policy-row .policy-img::after {\n display: block;\n content: \"\";\n width: 100%;\n height: 130px;\n position: absolute;\n left: 0;\n right: 0;\n background: rgba(0, 0, 0, 0.7);\n transition: background-color 0.2s ease-out;\n -webkit-transition: background-color 0.2s ease-out;\n -moz-transition: background-color 0.2s ease-out;\n -ms-transition: background-color 0.2s ease-out;\n -o-transition: background-color 0.2s ease-out;\n top: 0;\n left: 0;\n}\ndiv#policies .policy-row .policy-text-ctr {\n margin-left: 30%;\n width: 70%;\n height: 130px;\n display: table;\n}\ndiv#policies .policy-row .policy-text-ctr .policy-text {\n padding: 0 60px 0 30px;\n display: table-cell;\n vertical-align: middle;\n}\ndiv#policies .policy-row ex-icon {\n position: absolute;\n top: 55px;\n right: 20px;\n font-size: 23px;\n opacity: 0;\n transition: opacity 0.2s ease-out;\n -webkit-transition: opacity 0.2s ease-out;\n -moz-transition: opacity 0.2s ease-out;\n -ms-transition: opacity 0.2s ease-out;\n -o-transition: opacity 0.2s ease-out;\n}\ndiv#policies .top-bar {\n padding: 5px 25px;\n}\ndiv#policies .top-bar div h3 {\n padding: 5px 15px;\n}\ndiv#policies .wizard-ctr {\n padding: 20px;\n}\ndiv#policies ul {\n list-style: none;\n}\ndiv#policies ul li {\n margin: 0 0 25px -10px;\n}\ndiv#policies ul li:before {\n content: \"\";\n display: inline-block;\n position: absolute;\n left: 0;\n width: 18px;\n height: 18px;\n background-size: contain;\n}\ndiv#policies ul.tick li:before {\n background-image: url(${___CSS_LOADER_URL_REPLACEMENT_6___});\n}\ndiv#policies ul.cross li:before {\n background-image: url(${___CSS_LOADER_URL_REPLACEMENT_7___});\n}\ndiv#policies ul.warning li:before {\n background-image: url(${___CSS_LOADER_URL_REPLACEMENT_8___});\n}\ndiv#policies ul ul.sublist {\n list-style: disc;\n margin-top: 10px;\n}\ndiv#policies ul ul.sublist li {\n margin: 5px 0 5px -20px;\n}\ndiv#policies ul ul.sublist li:before {\n display: none;\n}\ndiv#policies .box {\n background: #fff;\n border: solid 1px #aaa;\n padding: 0 20px;\n margin: 15px 0;\n}\ndiv#policies .box table {\n padding: 0;\n border-spacing: 0;\n}\ndiv#policies .box table td {\n padding: 0 20px 5px 0;\n}\ndiv#policies .back-arrow {\n cursor: pointer;\n margin-right: 10px;\n position: relative;\n top: 2px;\n}\ndiv#policies .back-arrow:hover {\n color: #aaa;\n}\n\n@media (max-width: 480px) {\n div#policies .policy-row .policy-title {\n font-size: 0.85em;\n }\n div#policies .policy-row .policy-text-ctr .policy-text {\n font-size: 0.7em;\n line-height: 1.4em;\n }\n}\n@media (max-width: 360px) {\n div#policies .policy-row .policy-title {\n font-size: 0.7em;\n }\n div#policies .policy-row .policy-text-ctr .policy-text {\n font-size: 0.65em;\n line-height: 1.3em;\n }\n}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/application/policy.scss\",\"webpack://./src/style/mixins.scss\"],\"names\":[],\"mappings\":\"AAII;EACI,WAAA;EACA,kBAAA;EACA,yBAAA;ECsBN,0CDrB0B;ECsB1B,kDDtB0B;ECuB1B,+CDvB0B;ECwB1B,8CDxB0B;ECyB1B,6CDzB0B;EACpB,kBAAA;EACA,eAAA;AACR;AACQ;EACI,sBAAA;AACZ;AACY;EACI,8BAAA;AAChB;AAEY;EACI,UAAA;AAAhB;AAIQ;EACI,WAAA;EACA,cAAA;EACA,kBAAA;EACA,aAAA;EACA,UAAA;EACA,gBAAA;EACA,kBAAA;EACA,WAAA;EACA,gBAAA;AAFZ;AAIY;EACI,mBAAA;EACA,sBAAA;EACA,kBAAA;EACA,UAAA;EACA,aAAA;AAFhB;AAMQ;EACI,kBAAA;EACA,MAAA;EACA,OAAA;EACA,aAAA;EACA,UAAA;EACA,4BAAA;EACA,sBAAA;EACA,2BAAA;EACA,yBAAA;AAJZ;AAMY;EAAoB,yDAAA;AAHhC;AAIY;EAAyB,yDAAA;AADrC;AAEY;EAAsB,yDAAA;AAClC;AAAY;EAAe,yDAAA;AAG3B;AAFY;EAAqB,yDAAA;AAKjC;AAJY;EAAqB,yDAAA;AAOjC;AALY;EACI,cAAA;EACA,WAAA;EACA,WAAA;EACA,aAAA;EACA,kBAAA;EACA,OAAA;EACA,QAAA;EACA,8BAAA;ECzCd,0CD0CkC;ECzClC,kDDyCkC;ECxClC,+CDwCkC;ECvClC,8CDuCkC;ECtClC,6CDsCkC;EACpB,MAAA;EACA,OAAA;AAWhB;AAPQ;EACI,gBAAA;EACA,UAAA;EACA,aAAA;EACA,cAAA;AASZ;AAPY;EACI,sBAAA;EACA,mBAAA;EACA,sBAAA;AAShB;AALQ;EACI,kBAAA;EACA,SAAA;EACA,WAAA;EACA,eAAA;EACA,UAAA;EClEV,iCDmE8B;EClE9B,yCDkE8B;ECjE9B,sCDiE8B;EChE9B,qCDgE8B;EC/D9B,oCD+D8B;AAWhC;AAPI;EACI,iBAAA;AASR;AANY;EACI,iBAAA;AAQhB;AAHI;EACI,aAAA;AAKR;AAFI;EACI,gBAAA;AAIR;AAFQ;EACI,sBAAA;AAIZ;AADQ;EACI,WAAA;EACA,qBAAA;EACA,kBAAA;EACA,OAAA;EACA,WAAA;EACA,YAAA;EACA,wBAAA;AAGZ;AACY;EACI,yDAAA;AAChB;AAIY;EACI,yDAAA;AAFhB;AAOY;EACI,yDAAA;AALhB;AASQ;EACI,gBAAA;EACA,gBAAA;AAPZ;AASY;EACI,uBAAA;AAPhB;AAUY;EACI,aAAA;AARhB;AAaI;EACI,gBAAA;EACA,sBAAA;EACA,eAAA;EACA,cAAA;AAXR;AAaQ;EACI,UAAA;EACA,iBAAA;AAXZ;AAaY;EACI,qBAAA;AAXhB;AAgBI;EACI,eAAA;EACA,kBAAA;EACA,kBAAA;EACA,QAAA;AAdR;AAgBQ;EACI,WAAA;AAdZ;;AAmBA;EAGY;IACI,iBAAA;EAlBd;EAsBc;IACI,gBAAA;IACA,kBAAA;EApBlB;AACF;AA0BA;EAGY;IACI,gBAAA;EA1Bd;EA8Bc;IACI,iBAAA;IACA,kBAAA;EA5BlB;AACF\",\"sourcesContent\":[\"@import \\\"../style/mixins.scss\\\";\\r\\n\\r\\ndiv#policies {\\r\\n\\r\\n .policy-row {\\r\\n width: 100%;\\r\\n margin-bottom: 7px;\\r\\n background-color: #f3f3f3;\\r\\n @include transition(background-color 0.2s ease-out);\\r\\n position: relative;\\r\\n cursor: pointer;\\r\\n\\r\\n &:hover {\\r\\n background-color: #ddd;\\r\\n\\r\\n .policy-img::after {\\r\\n background: rgba(0,0,0,0.6);\\r\\n }\\r\\n\\r\\n ex-icon {\\r\\n opacity: 1;\\r\\n }\\r\\n }\\r\\n\\r\\n .policy-title {\\r\\n float: left;\\r\\n display: table;\\r\\n position: relative;\\r\\n height: 130px;\\r\\n width: 30%;\\r\\n overflow: hidden;\\r\\n text-align: center;\\r\\n color: #fff;\\r\\n font-size: 1.2em;\\r\\n\\r\\n span {\\r\\n display: table-cell;\\r\\n vertical-align: middle;\\r\\n text-align: center;\\r\\n z-index: 1;\\r\\n padding: 10px;\\r\\n }\\r\\n }\\r\\n\\r\\n .policy-img {\\r\\n position: absolute;\\r\\n top: 0;\\r\\n left: 0;\\r\\n height: 130px;\\r\\n width: 30%;\\r\\n background-repeat: no-repeat;\\r\\n background-size: cover;\\r\\n background-position: center;\\r\\n background-color: #ececec;\\r\\n \\r\\n &.policy-NEWHOMES { background-image: url('../resources/img/nh.jpg'); }\\r\\n &.policy-SOCIALHOUSING { background-image: url('../resources/img/sh.jpg'); }\\r\\n &.policy-COMMERCIAL { background-image: url('../resources/img/com.jpg'); }\\r\\n &.policy-PRS { background-image: url('../resources/img/prs.jpg'); }\\r\\n &.policy-COMPLETED { background-image: url('../resources/img/ch.jpg'); }\\r\\n &.policy-SELFBUILD { background-image: url('../resources/img/sb.jpg'); }\\r\\n \\r\\n &::after {\\r\\n display: block;\\r\\n content: '';\\r\\n width:100%;\\r\\n height: 130px;\\r\\n position: absolute;\\r\\n left: 0;\\r\\n right: 0;\\r\\n background: rgba(0,0,0,0.7);\\r\\n @include transition(background-color 0.2s ease-out);\\r\\n top:0;\\r\\n left:0;\\r\\n }\\r\\n }\\r\\n\\r\\n .policy-text-ctr {\\r\\n margin-left: 30%;\\r\\n width: 70%;\\r\\n height: 130px;\\r\\n display: table;\\r\\n\\r\\n .policy-text {\\r\\n padding: 0 60px 0 30px;\\r\\n display: table-cell; \\r\\n vertical-align: middle; \\r\\n }\\r\\n }\\r\\n\\r\\n ex-icon {\\r\\n position: absolute;\\r\\n top: 55px;\\r\\n right: 20px;\\r\\n font-size: 23px;\\r\\n opacity: 0;\\r\\n @include transition(opacity 0.2s ease-out);\\r\\n }\\r\\n }\\r\\n\\r\\n .top-bar {\\r\\n padding: 5px 25px;\\r\\n\\r\\n div {\\r\\n h3 {\\r\\n padding: 5px 15px;\\r\\n }\\r\\n }\\r\\n }\\r\\n\\r\\n .wizard-ctr {\\r\\n padding: 20px;\\r\\n }\\r\\n\\r\\n ul {\\r\\n list-style: none;\\r\\n\\r\\n li {\\r\\n margin: 0 0 25px -10px;\\r\\n }\\r\\n\\r\\n li:before {\\r\\n content: '';\\r\\n display: inline-block;\\r\\n position: absolute;\\r\\n left: 0;\\r\\n width: 18px;\\r\\n height: 18px;\\r\\n background-size: contain;\\r\\n }\\r\\n\\r\\n &.tick {\\r\\n li:before {\\r\\n background-image: url(../resources/img/tick.png);\\r\\n }\\r\\n }\\r\\n\\r\\n &.cross {\\r\\n li:before {\\r\\n background-image: url(../resources/img/cross.png);\\r\\n }\\r\\n }\\r\\n\\r\\n &.warning {\\r\\n li:before {\\r\\n background-image: url(../resources/img/warning.png);\\r\\n }\\r\\n }\\r\\n\\r\\n ul.sublist {\\r\\n list-style: disc;\\r\\n margin-top: 10px;\\r\\n\\r\\n li {\\r\\n margin: 5px 0 5px -20px;\\r\\n }\\r\\n\\r\\n li:before {\\r\\n display: none;\\r\\n }\\r\\n }\\r\\n }\\r\\n\\r\\n .box {\\r\\n background: #fff;\\r\\n border: solid 1px #aaa;\\r\\n padding: 0 20px;\\r\\n margin: 15px 0;\\r\\n\\r\\n table {\\r\\n padding: 0;\\r\\n border-spacing: 0;\\r\\n\\r\\n td {\\r\\n padding: 0 20px 5px 0;\\r\\n }\\r\\n }\\r\\n }\\r\\n\\r\\n .back-arrow {\\r\\n cursor: pointer;\\r\\n margin-right: 10px;\\r\\n position: relative;\\r\\n top: 2px;\\r\\n\\r\\n &:hover {\\r\\n color: #aaa;\\r\\n }\\r\\n }\\r\\n}\\r\\n\\r\\n@media (max-width:480px) {\\r\\n div#policies {\\r\\n .policy-row {\\r\\n .policy-title {\\r\\n font-size: 0.85em;\\r\\n }\\r\\n\\r\\n .policy-text-ctr {\\r\\n .policy-text {\\r\\n font-size: 0.7em;\\r\\n line-height: 1.4em;;\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n}\\r\\n\\r\\n@media (max-width:360px) {\\r\\n div#policies {\\r\\n .policy-row {\\r\\n .policy-title {\\r\\n font-size: 0.7em;\\r\\n }\\r\\n\\r\\n .policy-text-ctr {\\r\\n .policy-text {\\r\\n font-size: 0.65em;\\r\\n line-height: 1.3em;;\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n}\\r\\n\",\"@mixin breakpoint($point) {\\r\\n @if $point == desktop {\\r\\n @media (min-width: 1281px) {\\r\\n @content;\\r\\n }\\r\\n }\\r\\n @else if $point == laptop {\\r\\n @media (min-width: 1024px) {\\r\\n @content;\\r\\n }\\r\\n }\\r\\n @else if $point == tablet {\\r\\n @media (min-width: 768px) {\\r\\n @content;\\r\\n }\\r\\n }\\r\\n @else if $point == phablet {\\r\\n @media (min-width: 481px) {\\r\\n @content;\\r\\n }\\r\\n }\\r\\n @else if $point == mobile {\\r\\n @media (min-width: 320px) {\\r\\n @content;\\r\\n }\\r\\n }\\r\\n}\\r\\n\\r\\n@mixin transition($value) {\\r\\n transition: $value;\\r\\n -webkit-transition: $value;\\r\\n -moz-transition: $value;\\r\\n -ms-transition: $value;\\r\\n -o-transition: $value;\\r\\n}\\r\\n\\r\\n@mixin transform($value) {\\r\\n -webkit-transform: $value;\\r\\n -ms-transform: $value;\\r\\n transform: $value;\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Module\nvar code = \"<template>\\r\\n <require from=\\\"./policy.scss\\\"></require>\\r\\n <div id=\\\"policies\\\">\\r\\n <div class=\\\"form-ctr\\\" style=\\\"overflow: hidden;\\\">\\r\\n <h1>Make a Claim</h1>\\r\\n\\r\\n <div if.bind=\\\"!selectedPolicy\\\" class=\\\"policies\\\">\\r\\n <h3>Please select your policy type</h3>\\r\\n <div repeat.for=\\\"policy of policies\\\" class=\\\"policy-row\\\" click.delegate=\\\"selectedPolicy = policy.id\\\">\\r\\n <div class=\\\"policy-img policy-${policy.id}\\\"></div>\\r\\n <div class=\\\"policy-title\\\">\\r\\n <span>${policy.title}</span>\\r\\n </div>\\r\\n <div class=\\\"policy-text-ctr\\\">\\r\\n <div class=\\\"policy-text\\\" innerhtml.bind=\\\"policy.description\\\"></div>\\r\\n </div>\\r\\n <ex-icon icon=\\\"arrow-right\\\"></ex-icon>\\r\\n </div>\\r\\n </div>\\r\\n\\r\\n <div show.bind=\\\"!!selectedPolicy\\\">\\r\\n <h2>\\r\\n <ex-icon icon=\\\"arrow-left\\\" class=\\\"back-arrow\\\" click.delegate=\\\"backToSelectPolicy()\\\"></ex-icon>\\r\\n ${selectedPolicyTitle}\\r\\n </h2>\\r\\n\\r\\n <div class=\\\"top-bar\\\">\\r\\n <div>\\r\\n <h3 if.bind=\\\"brand === 'pg'\\\">As with most insurance Policies, Premier Guarantee provides cover for specified risks. It is also subject to certain restrictions and exclusions. Please read the following and refer to your Policy Document.</h3>\\r\\n <h3 if.bind=\\\"brand === 'labc'\\\">As with most insurance Policies, LABC Warranty provides cover for specified risks. It is also subject to certain restrictions and exclusions. Please read the following and refer to your Policy Document.</h3>\\r\\n </div>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"wizard-ctr\\\">\\r\\n <wizard view-model.ref=\\\"wizard\\\" show-stepper.bind=\\\"false\\\" show-dots.bind=\\\"true\\\">\\r\\n <wizard-step step-title=\\\"1/3 - What is not covered?\\\">\\r\\n\\r\\n <div if.bind=\\\"selectedPolicy === 'NEWHOMES' || selectedPolicy === 'SOCIALHOUSING' || selectedPolicy === 'PRS'\\\" class=\\\"rel\\\">\\r\\n <h5>The below list outlines some key areas and items not included in your cover.<br>A full list of exclusions is available in the Policy wording:</h5>\\r\\n <ul class=\\\"cross\\\">\\r\\n <li>External landscaping, gardens, paved areas, and their features.</li>\\r\\n <li>Snagging issues, which are purely cosmetic such as minor blemishes, change in colour, chips and scratches to fittings and do not impair the structural stability or weather tightness of the <strong>Home</strong>.</li>\\r\\n <li>Assistance in financial disputes and contractual issues.</li>\\r\\n <li>Any alteration, modification or addition to the <strong>Home</strong> after the issue of the <strong>Certificate of Insurance</strong> for which the <strong>Underwriter</strong> is not aware.</li>\\r\\n <li>Any loss due to a lack of maintenance of the <strong>Home</strong> or normal wear and tear or improper use of the <strong>Home</strong>.</li>\\r\\n <li>Anything the <strong>Policyholder</strong> knew about prior to purchasing the <strong>Home</strong>.</li>\\r\\n <li>Economic loss of any description including costs arising from inconvenience or distress, loss of enjoyment, loss of use, reduction in value of the <strong>Property Insured</strong>, loss of income or business opportunity. <strong>Unless expressly provided for in your Warranty</strong></li>\\r\\n <li>Loss or damage caused by or consequent upon the following:\\r\\n <ul class=\\\"sublist\\\">\\r\\n <li>fire</li>\\r\\n <li>lightning</li>\\r\\n <li>explosion</li>\\r\\n <li>typhoon, hurricane, cyclone</li>\\r\\n <li>volcanic eruption</li>\\r\\n <li>earthquake</li>\\r\\n <li>storm, tempest</li>\\r\\n <li>flood</li>\\r\\n <li>subterranean fire or other convulsion of nature</li>\\r\\n <li>aircraft or other aerial devices or articles therefrom</li>\\r\\n <li>escapes of water from tanks, apparatus or pipes</li>\\r\\n <li>malicious persons</li>\\r\\n <li>theft, attempted theft</li>\\r\\n <li>impact</li>\\r\\n <li>any accidental cause</li>\\r\\n </ul>\\r\\n </li>\\r\\n </ul>\\r\\n </div>\\r\\n\\r\\n <div if.bind=\\\"selectedPolicy === 'COMMERCIAL'\\\" class=\\\"rel\\\">\\r\\n <h5>The below list outlines some key areas and items not included in your cover.<br>A full list of exclusions is available in the Policy wording:</h5>\\r\\n <ul class=\\\"cross\\\">\\r\\n <li>Snagging issues, which are purely cosmetic such as minor blemishes, change in colour, chips and scratches to fittings and do not impair the structural stability or weather tightness of the property.</li>\\r\\n <li>Assistance in financial disputes and contractual issues.</li>\\r\\n <li>Any alteration, modification or addition to the property after the issue of the <strong>Certificate of Insurance</strong> for which the <strong>Underwriter</strong> is not aware.</li>\\r\\n <li>Any loss due to a lack of maintenance of the property or normal wear and tear or improper use of the property. </li>\\r\\n <li>Anything the <strong>Policyholder</strong> knew about prior to purchasing the property. </li>\\r\\n <li>Loss caused by a <strong>Defect</strong> in any element of existing works.</li>\\r\\n <li>Damage caused by ingress of water below external ground floor level. </li>\\r\\n <li>Economic loss of any description including costs arising from inconvenience or distress, loss of enjoyment, loss of use, reduction in value of the <strong>Property Insured</strong>, loss of income or business opportunity. <strong>Unless expressly provided for in your Warranty</strong></li>\\r\\n <li>Loss or damage caused by or consequent upon the following:\\r\\n <ul class=\\\"sublist\\\">\\r\\n <li>fire</li>\\r\\n <li>lightning</li>\\r\\n <li>explosion</li>\\r\\n <li>typhoon, hurricane, cyclone</li>\\r\\n <li>volcanic eruption</li>\\r\\n <li>earthquake</li>\\r\\n <li>storm, tempest</li>\\r\\n <li>flood</li>\\r\\n <li>subterranean fire or other convulsion of nature</li>\\r\\n <li>aircraft or other aerial devices or articles therefrom</li>\\r\\n <li>escapes of water from tanks, apparatus or pipes</li>\\r\\n <li>malicious persons</li>\\r\\n <li>theft, attempted theft</li>\\r\\n <li>impact</li>\\r\\n <li>any accidental cause</li>\\r\\n </ul>\\r\\n </li>\\r\\n </ul>\\r\\n </div>\\r\\n\\r\\n <div if.bind=\\\"selectedPolicy === 'SELFBUILD'\\\" class=\\\"rel\\\">\\r\\n <h5>The below list outlines some key areas and items not included in your cover.<br>A full list of exclusions is available in the Policy wording:</h5>\\r\\n <ul class=\\\"cross\\\">\\r\\n <li>External landscaping, gardens, paved areas, and their features.</li>\\r\\n <li>Snagging issues, which are purely cosmetic such as minor blemishes, change in colour, chips and scratches to fittings and do not impair the structural stability or weather tightness of the <strong>Home</strong>.</li>\\r\\n <li>Assistance in financial disputes and contractual issues.</li>\\r\\n <li>Any alteration, modification or addition to the <strong>Home</strong> after the issue of the <strong>Certificate of Insurance</strong> for which the <strong>Underwriter</strong> is not aware.</li>\\r\\n <li>Any loss due to a lack of maintenance of the <strong>Home</strong> or normal wear and tear or improper use of the <strong>Home</strong>.</li>\\r\\n <li>Anything the <strong>Policyholder</strong> knew about prior to the inception of the Warranty or the purchasing the <strong>Home</strong>.</li>\\r\\n <li>Loss caused by a <strong>Defect</strong> in any element of existing works.</li>\\r\\n <li>Economic loss of any description including costs arising from inconvenience or distress, loss of enjoyment, loss of use, reduction in value of the <strong>Property Insured</strong>, loss of income or business opportunity. <strong>Unless expressly provided for in your Warranty</strong></li>\\r\\n <li>Loss or damage caused by or consequent upon the following:\\r\\n <ul class=\\\"sublist\\\">\\r\\n <li>fire</li>\\r\\n <li>lightning</li>\\r\\n <li>explosion</li>\\r\\n <li>typhoon, hurricane, cyclone</li>\\r\\n <li>volcanic eruption</li>\\r\\n <li>earthquake</li>\\r\\n <li>storm, tempest</li>\\r\\n <li>flood</li>\\r\\n <li>subterranean fire or other convulsion of nature</li>\\r\\n <li>aircraft or other aerial devices or articles therefrom</li>\\r\\n <li>escapes of water from tanks, apparatus or pipes</li>\\r\\n <li>malicious persons</li>\\r\\n <li>theft, attempted theft</li>\\r\\n <li>impact</li>\\r\\n <li>any accidental cause</li>\\r\\n </ul>\\r\\n </li>\\r\\n </ul>\\r\\n </div>\\r\\n\\r\\n <div if.bind=\\\"selectedPolicy === 'COMPLETED'\\\" class=\\\"rel\\\">\\r\\n <h5>The below list outlines some key areas and items not included in your cover.<br>A full list of exclusions is available in the Policy wording:</h5>\\r\\n <ul class=\\\"cross\\\">\\r\\n <li>External landscaping, gardens, paved areas, and their features.</li>\\r\\n <li>Snagging issues, which are purely cosmetic such as minor blemishes, change in colour, chips and scratches to fittings and do not impair the structural stability or weather tightness of the <strong>Home</strong>.</li>\\r\\n <li>Assistance in financial disputes and contractual issues.</li>\\r\\n <li>Any alteration, modification or addition to the <strong>Home</strong> after the issue of the <strong>Certificate of Insurance</strong> for which the <strong>Underwriter</strong> is not aware.</li>\\r\\n <li>Any loss due to a lack of maintenance of the <strong>Home</strong> or normal wear and tear or improper use of the <strong>Home</strong>.</li>\\r\\n <li>Anything the <strong>Policyholder</strong> knew about prior to the purchasing the <strong>Home</strong>.</li>\\r\\n <li>Loss caused by a <strong>Defect</strong> in any element of existing works.</li>\\r\\n <li>Economic loss of any description including costs arising from inconvenience or distress, loss of enjoyment, loss of use, reduction in value of the <strong>Property Insured</strong>, loss of income or business opportunity. <strong>Unless expressly provided for in your Warranty</strong></li>\\r\\n <li>Loss or damage caused by or consequent upon the following:\\r\\n <ul class=\\\"sublist\\\">\\r\\n <li>fire</li>\\r\\n <li>lightning</li>\\r\\n <li>explosion</li>\\r\\n <li>typhoon, hurricane, cyclone</li>\\r\\n <li>volcanic eruption</li>\\r\\n <li>earthquake</li>\\r\\n <li>storm, tempest</li>\\r\\n <li>flood</li>\\r\\n <li>subterranean fire or other convulsion of nature</li>\\r\\n <li>aircraft or other aerial devices or articles therefrom</li>\\r\\n <li>escapes of water from tanks, apparatus or pipes</li>\\r\\n <li>malicious persons</li>\\r\\n <li>theft, attempted theft</li>\\r\\n <li>impact</li>\\r\\n <li>any accidental cause</li>\\r\\n </ul>\\r\\n </li>\\r\\n </ul>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"centre\\\">\\r\\n <form-button label=\\\"Confirm and continue\\\" click.delegate=\\\"wizard.forward()\\\"></form-button>\\r\\n </div>\\r\\n </wizard-step>\\r\\n <wizard-step step-title=\\\"2/3 - Restrictions on cover\\\">\\r\\n \\r\\n <div if.bind=\\\"selectedPolicy === 'NEWHOMES' || selectedPolicy === 'SOCIALHOUSING' || selectedPolicy === 'PRS'\\\" class=\\\"rel\\\">\\r\\n <ul class=\\\"warning\\\">\\r\\n <li>\\r\\n Any claim under the <strong>Excess</strong> value, as defined on <strong>your Certificate of Insurance</strong>.\\r\\n \\r\\n <div class=\\\"box\\\">\\r\\n <h4>Typical Excesses</h4>\\r\\n <p>Please note any applicable <strong>Excess</strong> will be subject to indexation and apply for each separate cause of loss or damage.</p>\\r\\n <table>\\r\\n <tr>\\r\\n <td class=\\\"bold\\\">Defect Insurance Period</td>\\r\\n <td>minimum of £100</td>\\r\\n </tr>\\r\\n <tr>\\r\\n <td class=\\\"bold\\\">Structural Insurance Period</td>\\r\\n <td>minimum of £1,000</td>\\r\\n </tr>\\r\\n <tr>\\r\\n <td class=\\\"bold\\\">Common Parts</td>\\r\\n <td>minimum of £5,000 or £10,000 subject to COI</td>\\r\\n </tr>\\r\\n </table>\\r\\n <p>Please see <strong>your Certificate of Insurance</strong> for the correct <strong>Excess</strong> applicable to <strong>your Policy</strong>.</p>\\r\\n </div>\\r\\n </li>\\r\\n <li>Any claim amount over the <strong>Financial Limit</strong> for each applicable section of cover, as detailed in <strong>your Policy</strong> wording.</li>\\r\\n <li>Any claim prior to the <strong>Policy</strong> start date or after the <strong>Policy</strong> expiry date, as defined on <strong>your Certificate of Insurance</strong>.</li>\\r\\n <li>Any claim which falls outside the terms and conditions of the <strong>Policy</strong> or which is specifically excluded by the <strong>Policy</strong>.</li>\\r\\n </ul>\\r\\n </div>\\r\\n\\r\\n <div if.bind=\\\"selectedPolicy === 'COMMERCIAL'\\\" class=\\\"rel\\\">\\r\\n <ul class=\\\"warning\\\">\\r\\n <li>\\r\\n Any claim under the <strong>Excess</strong> value, as defined on <strong>your Certificate of Insurance</strong>.\\r\\n \\r\\n <div class=\\\"box\\\">\\r\\n <h4>Excess</h4>\\r\\n <p>Please note any applicable <strong>Excess</strong>, which is variable, based on sum assured, will be subject to indexation and apply for each separate cause of loss or damage.</p>\\r\\n <p>Please see <strong>your Certificate of Insurance</strong> for the correct <strong>Excess</strong> applicable to <strong>your Policy</strong>.</p>\\r\\n </div>\\r\\n </li>\\r\\n <li>Any claim amount over the <strong>Financial Limit</strong> for each applicable section of cover, as detailed in <strong>your Policy</strong> wording.</li>\\r\\n <li>Any claim prior to the <strong>Policy</strong> start date or after the <strong>Policy</strong> expiry date, as defined on <strong>your Certificate of Insurance</strong>.</li>\\r\\n <li>Any claim which falls outside the terms and conditions of the <strong>Policy</strong> or which is specifically excluded by the <strong>Policy</strong>.</li>\\r\\n </ul>\\r\\n </div>\\r\\n\\r\\n <div if.bind=\\\"selectedPolicy === 'SELFBUILD'\\\" class=\\\"rel\\\">\\r\\n <ul class=\\\"warning\\\">\\r\\n <li>\\r\\n Any claim under the <strong>Excess</strong> value, as defined on <strong>your Certificate of Insurance</strong>.\\r\\n \\r\\n <div class=\\\"box\\\">\\r\\n <h4>Typical Excess</h4>\\r\\n <p>Please note any applicable <strong>Excess</strong> will be subject to indexation and apply for each separate cause of loss or damage.</p>\\r\\n <p>Minimum of between £1,000.00 and £1,250.00</p>\\r\\n <p>Please see <strong>your Certificate of Insurance</strong> for the correct <strong>Excess</strong> applicable to <strong>your Policy</strong>.</p>\\r\\n </div>\\r\\n </li>\\r\\n <li>Any claim amount over the <strong>Financial Limit</strong> for each applicable section of cover, as detailed in <strong>your Policy</strong> wording.</li>\\r\\n <li>Any claim prior to the <strong>Policy</strong> start date or after the <strong>Policy</strong> expiry date, as defined on <strong>your Certificate of Insurance</strong>.</li>\\r\\n <li>Any claim which falls outside the terms and conditions of the <strong>Policy</strong> or which is specifically excluded by the <strong>Policy</strong>.</li>\\r\\n </ul>\\r\\n </div>\\r\\n\\r\\n <div if.bind=\\\"selectedPolicy === 'COMPLETED'\\\" class=\\\"rel\\\">\\r\\n <ul class=\\\"warning\\\">\\r\\n <li>\\r\\n Any claim under the <strong>Excess</strong> value, as defined on <strong>your Certificate of Insurance</strong>.\\r\\n \\r\\n <div class=\\\"box\\\">\\r\\n <h4>Typical Excess</h4>\\r\\n <p>Please note any applicable <strong>Excess</strong> will be subject to indexation and apply for each separate cause of loss or damage.</p>\\r\\n <p>Minimum of £1,250.00</p>\\r\\n <p>Please see <strong>your Certificate of Insurance</strong> for the correct <strong>Excess</strong> applicable to <strong>your Policy</strong>.</p>\\r\\n </div>\\r\\n </li>\\r\\n <li>Any claim amount over the <strong>Financial Limit</strong> for each applicable section of cover, as detailed in <strong>your Policy</strong> wording.</li>\\r\\n <li>Any claim prior to the <strong>Policy</strong> start date or after the <strong>Policy</strong> expiry date, as defined on <strong>your Certificate of Insurance</strong>.</li>\\r\\n <li>Any claim which falls outside the terms and conditions of the <strong>Policy</strong> or which is specifically excluded by the <strong>Policy</strong>.</li>\\r\\n </ul>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"centre\\\">\\r\\n <form-button label=\\\"Confirm and continue\\\" click.delegate=\\\"wizard.forward()\\\"></form-button>\\r\\n </div>\\r\\n </wizard-step>\\r\\n <wizard-step step-title=\\\"3/3 - What are your obligations?\\\">\\r\\n <div class=\\\"rel\\\">\\r\\n <h4>You must ensure that:</h4>\\r\\n <ul class=\\\"tick\\\">\\r\\n <li>All <strong>Policy</strong> conditions have been adhered to.</li>\\r\\n <li>Any claims are reported in line with the requirements outlined in the <strong>Policy</strong> wording.</li>\\r\\n <li>The <strong>Home</strong> is adequately maintained and that all reasonable steps are taken to minimise loss or damage.\\r\\n The <strong>Underwriter</strong> will not be responsible for costs that result from <strong>your</strong> unreasonable delays\\r\\n or <strong>your</strong> failure to take reasonable steps to prevent loss or damage.</li>\\r\\n <li>Notified and/or exhaust cover more suitably applicable to <strong>your</strong> issue from any other insurances, guarantees or warranties.</li>\\r\\n </ul>\\r\\n\\r\\n <div if.bind=\\\"selectedPolicy === 'NEWHOMES' || selectedPolicy === 'SOCIALHOUSING' || selectedPolicy === 'PRS'\\\" class=\\\"box\\\">\\r\\n <h4 if.bind=\\\"selectedPolicy === 'NEWHOMES'\\\">The first 2 years of your New Homes Warranty</h4>\\r\\n <h4 if.bind=\\\"selectedPolicy === 'SOCIALHOUSING'\\\">The first year of your Social Housing Warranty</h4>\\r\\n <h4 if.bind=\\\"selectedPolicy === 'PRS'\\\">The first year of your Private Rental Scheme Warranty</h4>\\r\\n <p>If <strong>you</strong> are within the first\\r\\n <span if.bind=\\\"selectedPolicy === 'NEWHOMES'\\\">2 years of <strong>your</strong> New Homes Warranty</span>\\r\\n <span if.bind=\\\"selectedPolicy === 'SOCIALHOUSING'\\\">year of <strong>your</strong> Social Housing Warranty</span>\\r\\n <span if.bind=\\\"selectedPolicy === 'PRS'\\\">year of <strong>your</strong> Private Rental Scheme Warranty</span>\\r\\n and have issues relating to the pre sales service or post sales service of <strong>your Developer</strong> which <strong>you</strong> are not insured for under <strong>your</strong> Warranty, please\\r\\n <a if.bind=\\\"brand === 'pg'\\\" href=\\\"https://www.premierguarantee.com/contact/\\\">contact us</a>\\r\\n <a if.bind=\\\"brand === 'labc'\\\" href=\\\"https://www.labcwarranty.co.uk/get-in-touch/\\\">contact us</a> \\r\\n and we will arrange for a Consumer Code for Homebuilders pack to be provided to <strong>you</strong>.</p>\\r\\n <p><a href=\\\"https://www.consumercode.co.uk/\\\" target=\\\"_blank\\\">www.consumercode.co.uk</a></p>\\r\\n </div>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"centre\\\">\\r\\n <form-button label=\\\"Confirm and continue\\\" click.delegate=\\\"goToClaimForm()\\\"></form-button>\\r\\n </div>\\r\\n </wizard-step>\\r\\n </wizard>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n</template>\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"<template>\\r\\n <ux-dialog>\\r\\n <ux-dialog-body>\\r\\n <h3>${title}</h3>\\r\\n <p>${text}</p>\\r\\n <button click.delegate=\\\"dismiss()\\\">OK</button>\\r\\n </ux-dialog-body>\\r\\n </ux-dialog>\\r\\n</template>\\r\\n\";\n// Exports\nexport default code;","import { bindValidationResult } from \"resources/behaviour/bindValidationResult\";\r\nimport { ValidationError } from \"class-validator\";\r\nimport { computedFrom } from \"aurelia-framework\";\r\n\r\nexport class PageBase {\r\n @bindValidationResult() errorResult: ValidationError[];\r\n\r\n @computedFrom('errorResult')\r\n get isValid() {\r\n return !(this.errorResult && this.errorResult.length > 0) ;\r\n }\r\n\r\n @computedFrom('errorResult')\r\n get validationMessages() {\r\n if (this.errorResult && this.errorResult.length > 0) {\r\n let errors: string[] = [];\r\n\r\n this.errorResult.forEach(x => {\r\n if (x.constraints) {\r\n const e = Object.keys(x.constraints).map(k => { return x.constraints[k]; });\r\n errors = [...errors, ...e];\r\n }\r\n });\r\n\r\n return errors;\r\n } else {\r\n return [];\r\n }\r\n }\r\n}\r\n","/* tslint:disable */\r\n//----------------------\r\n// <auto-generated>\r\n// Generated using the Tocsoft.GraphQLCodeGen toolchain https://github.com/tocsoft/GraphQLCodeGen\r\n// </auto-generated>\r\n//----------------------\r\n// ReSharper disable InconsistentNaming\r\n\r\nimport {HttpClient} from 'aurelia-fetch-client';\nimport {inject} from 'aurelia-framework';\nimport { apiUrl } from '../../constants'\n\r\ninterface fetchClient {\r\n fetch(url: RequestInfo, init: RequestInit): Promise<Response>\r\n}\r\n\r\nclass GraphQLResponse\r\n{\r\n data: any\r\n errors: Array<{ message: string }>\r\n}\r\n\r\nfunction SendLoginLinkError(message:string, httpResponse:Response, graphqlResponse?: GraphQLResponse) {\r\n this.name = 'SendLoginLinkError';\r\n this.message = message || 'Error fetching graphql response';\r\n this.stack = (new Error()).stack;\r\n this.httpResponse = httpResponse;\r\n if(graphqlResponse && graphqlResponse.errors){\r\n this.errors = graphqlResponse.errors.map(x=>x.message);\r\n }\r\n }\r\n SendLoginLinkError.prototype = Object.create(Error.prototype);\r\n SendLoginLinkError.prototype.constructor = SendLoginLinkError;\r\n \r\nexport { SendLoginLinkError }\r\n\r\n@inject(HttpClient, apiUrl)\nexport class SendLoginLinkClient {\r\n\r\n constructor(public client: fetchClient, public url: string) { }\r\n\t\r\n\tsendLoginLink_sendAccessToken(\tupdate? :SendAccessTokenRequestInput) : Promise<SendLoginLinkSendAccessTokenResult>{\r\n return this.client.fetch(this.url, {\r\n method : 'POST',\r\n body : JSON.stringify({\r\n query : `mutation sendAccessToken($update: SendAccessTokenRequestInput) {\r\n sendAccessToken(request: $update) {\r\n success\r\n }\r\n}\r\n`,\r\n variables : {\r\n\t\t\t\t\tupdate : update ,\r\n }\r\n })\r\n }).then(response=>{\r\n if(response.status != 200){\r\n // error result\r\n throw new SendLoginLinkError(\"http error running 'sendLoginLink_sendAccessToken', see httpResponse for more details.\", response)\r\n }else{\r\n return response.json().then((json:GraphQLResponse)=>{\r\n \r\n if(json.errors && json.errors.length > 0){\r\n throw new SendLoginLinkError(\"graphql error(s) running 'sendLoginLink_sendAccessToken', see errors collection fro more details\", response, json)\r\n }\r\n\r\n const result: any = SendLoginLinkSendAccessTokenResult.fromJS(json.data); \r\n \r\n return result;\r\n })\r\n }\r\n })\r\n }\t\r\n}\r\n\r\nexport class SendAccessTokenRequestInput {\r\n\t\tdocumentId? :string;\r\n\t\temailAddress? :string;\r\n\r\n static fromJS(json:any):SendAccessTokenRequestInput{\r\n if(json == null || json == undefined){\r\n return null;\r\n }\r\n \r\n var result = new SendAccessTokenRequestInput();\r\n\r\n\tresult.documentId = json[\"documentId\"];\r\n\tresult.emailAddress = json[\"emailAddress\"];\r\n\r\n return result;\r\n }\r\n}\r\n\r\nexport class SendLoginLinkSendAccessTokenResult {\r\n\t\tsendAccessToken? :SuccessResultResult;\r\n\r\n static fromJS(json:any):SendLoginLinkSendAccessTokenResult{\r\n if(json == null || json == undefined){\r\n return null;\r\n }\r\n \r\n var result = new SendLoginLinkSendAccessTokenResult();\r\n\r\nresult.sendAccessToken= SuccessResultResult.fromJS(json[\"sendAccessToken\"]);\r\n\r\n return result;\r\n }\r\n}\r\n\r\nexport class SuccessResultResult {\r\n\t\tsuccess :boolean;\r\n\r\n static fromJS(json:any):SuccessResultResult{\r\n if(json == null || json == undefined){\r\n return null;\r\n }\r\n \r\n var result = new SuccessResultResult();\r\n\r\n\tresult.success = json[\"success\"];\r\n\r\n return result;\r\n }\r\n}\r\n\r\n\r\n","import { autoinject, computedFrom, BindingEngine, Disposable, observable } from \"aurelia-framework\";\r\nimport environment from '../environment';\r\nimport { Router } from \"aurelia-router\";\r\nimport { Wizard } from \"resources/elements/wizard/wizard\";\r\nimport { Helpers } from \"./helpers\";\r\nimport { PolicyType } from \"./gql/createUpdateApplication.tsgql\";\r\nimport { BrandService } from \"../services/brandService\";\r\n\r\n@autoinject\r\nexport class Policy {\r\n constructor(\r\n private router: Router,\r\n private bindingEngine: BindingEngine,\r\n private brandService: BrandService) { }\r\n\r\n policies: Product[];\r\n @observable({ changeHandler: 'scrollToTop' }) selectedPolicy: PolicyType;\r\n wizard: Wizard;\r\n subscriptions: Disposable[] = [];\r\n\r\n attached() {\r\n this.policies = Product.Policies;\r\n\r\n this.subscriptions.push(this.bindingEngine.propertyObserver(this.wizard, 'currentStepIndex').subscribe(this.scrollToTop));\r\n }\r\n\r\n detached() {\r\n this.subscriptions.forEach(x => x.dispose());\r\n }\r\n\r\n scrollToTop() {\r\n Helpers.scrollTo(0);\r\n }\r\n\r\n get brand() {\r\n return this.brandService.brand;\r\n }\r\n\r\n @computedFrom('selectedPolicy')\r\n get selectedPolicyTitle() {\r\n return this.selectedPolicy ? this.policies.find(x => x.id === this.selectedPolicy).title : '';\r\n }\r\n\r\n backToSelectPolicy() {\r\n this.selectedPolicy = null;\r\n this.wizard.goto(0);\r\n }\r\n\r\n goToClaimForm() {\r\n this.router.navigateToRoute('application-form', { pt: this.selectedPolicy});\r\n }\r\n}\r\n\r\nexport class Product {\r\n id: PolicyType;\r\n title: string;\r\n description: string;\r\n\r\n static getProductDetails(pt : PolicyType) : string{\r\n return this.Policies.find(x => x.id === pt).title;\r\n }\r\n\r\n static Policies : Product[] = [\r\n { id: PolicyType.NEWHOMES, title: 'New Homes', description: 'Our New Homes Warranty covers the building, converting or refurbishing of private residential developments.' } as Product,\r\n { id: PolicyType.SOCIALHOUSING, title: 'Social Housing', description: 'Our Social Housing Warranty provides Housing Associations with up to 12 years cover on new build developments and conversions.' } as Product,\r\n { id: PolicyType.PRS, title: 'Private Rental Scheme Warranty', description: `Our Private Rental Scheme (PRS) provides the Warranty backing required by funders and investors in purpose-built private rental schemes${ environment.brand === 'pg' ? ' (including Channel Islands)' : ''}.` } as Product,\r\n { id: PolicyType.COMMERCIAL, title: 'Commercial', description: `Our Commercial Buildings Warranty has been designed for <strong>Developers</strong> working on commercial projects and mixed-use developments${ environment.brand === 'pg' ? ' (including Channel Islands)' : ''}.` } as Product,\r\n { id: PolicyType.SELFBUILD, title: 'Self Build', description: 'Our Self Build Warranty is designed to protect your <strong>Home</strong> from problems after completion. Protection for 10 years after you finish your <strong>Home</strong>.' } as Product,\r\n { id: PolicyType.COMPLETED, title: 'Completed Housing Warranty', description: 'Our Completed Housing Scheme can provide cover for properties which have been built without the benefit of a Warranty in place. Cover is provided up to the balance of 10 years.' } as Product\r\n ];\r\n\r\n static PoliciesForAdminOnly: Product[] = [\r\n { id: PolicyType.INSOLVENCY, title: 'Insolvency', description: 'Insolvency' },\r\n { id: PolicyType.ASUCDIG, title: 'ASUC DIG', description: 'ASUC DIG' },\r\n { id: PolicyType.ASUCBIG, title: 'ASUC BIG', description: 'ASUC BIG' },\r\n { id: PolicyType.ROADSEWERBONDS, title: 'R&S Bond', description: 'R&S Bond' }\r\n ];\r\n\r\n static PoliciesForAdminAll: Product[] = [\r\n ...Product.Policies,\r\n ...Product.PoliciesForAdminOnly\r\n ];\r\n}\r\n","import { DialogController } from 'aurelia-dialog';\r\nimport { autoinject, observable } from 'aurelia-framework';\r\n\r\n@autoinject()\r\nexport class NoticeDialog {\r\n constructor(private controller: DialogController) { }\r\n\r\n title: string;\r\n text: string;\r\n\r\n activate(model : any) {\r\n this.title = model.title;\r\n this.text = model.text;\r\n }\r\n\r\n dismiss() {\r\n this.controller.ok();\r\n }\r\n}\r\n"],"names":[],"sourceRoot":""}