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EAAH,KAAQ,EAAKD,SAASC,iBAAoBoB,GAGzE,EAAKM,QAAQZ,aAAa,EAAKf,SAAU,EAAK4B,MAChD,GACF,EAQQ,YAAAC,WAAR,SAAmBC,GAGbA,GAAS,GACX7C,KAAKe,SAASC,gBAAgBC,cAAc6B,OAAOD,EAAO,GAG5D7C,KAAK8B,cACP,EAEQ,YAAAiB,QAAR,WACOC,MAAMC,QAAQjD,KAAKe,SAASC,gBAAgBC,iBAC/CjB,KAAKe,SAASC,gBAAgBC,cAAgB,IAGhDjB,KAAKe,SAASC,gBAAgBC,cAAciC,KAAK,IAAI0G,EAAwB,CAAC,IAE9E5J,KAAK8B,cACP,E,mUAvH6B,GAD9B,IAAAsB,eAAc,wBACFyG,E,CAAb,CAAwC,I","sources":["webpack://iadviser/./src/components/qce/components/grids/criminal-offence-history.html","webpack://iadviser/./src/components/qce/components/grids/date-and-description-items.html","webpack://iadviser/./src/components/qce/components/grids/decline-cancellation-condition-history.html","webpack://iadviser/./src/components/qce/components/grids/driving-offence-conviction-history.html","webpack://iadviser/./src/components/qce/components/grids/drug-alcohol-disqualification-history.html","webpack://iadviser/./src/components/qce/components/grids/home-contents-loss-history.html","webpack://iadviser/./src/components/qce/components/grids/interested-party-details.html","webpack://iadviser/./src/components/qce/components/grids/specified-extension.html","webpack://iadviser/./src/components/qce/components/grids/criminal-offence-history.css","webpack://iadviser/./src/components/qce/components/grids/criminal-offence-history.ts","webpack://iadviser/./src/components/qce/components/grids/date-and-description-items.ts","webpack://iadviser/./src/components/qce/components/grids/decline-cancellation-condition-history.css","webpack://iadviser/./src/components/qce/components/grids/decline-cancellation-condition-history.ts","webpack://iadviser/./src/components/qce/components/grids/driving-offence-conviction-history.ts","webpack://iadviser/./src/components/qce/components/grids/drug-alcohol-disqualification-history.css","webpack://iadviser/./src/components/qce/components/grids/drug-alcohol-disqualification-history.ts","webpack://iadviser/./src/components/qce/components/grids/home-contents-loss-history.css","webpack://iadviser/./src/components/qce/components/grids/home-contents-loss-history.ts","webpack://iadviser/./src/components/qce/components/grids/interested-party-details.css","webpack://iadviser/./src/components/qce/components/grids/interested-party-details.ts","webpack://iadviser/./src/components/qce/components/grids/specified-extension.ts"],"sourcesContent":["// Module\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n \";\n// Exports\nexport default code;","// extracted by mini-css-extract-plugin\nexport default {\"btn\":\"btn____C431j\",\"btn--flat\":\"btn--flat____K6kR0 btn____C431j\",\"btn--submit\":\"btn--submit____ouddF btn____C431j\",\"btn--delete\":\"btn--delete____ECY5N btn____C431j\",\"btn--link\":\"btn--link____G8BB4 btn____C431j\",\"btn--inline-text-link\":\"btn--inline-text-link_____Or58 btn--link____G8BB4 btn____C431j\",\"btn--footer\":\"btn--footer____TNjyU btn____C431j\",\"btn--footer-submit\":\"btn--footer-submit____yHz8U btn--submit____ouddF btn____C431j btn--footer____TNjyU btn____C431j\",\"btn--footer-cancel\":\"btn--footer-cancel____J0kPn\",\"btn--footer---cancel\":\"btn--footer---cancel____y5It2\",\"btn--footer-delete\":\"btn--footer-delete____Bydi3 btn--delete____ECY5N btn____C431j btn--footer____TNjyU btn____C431j\",\"btn--qce-dropdown\":\"btn--qce-dropdown____jrKse btn--footer-submit____yHz8U btn--submit____ouddF btn____C431j btn--footer____TNjyU btn____C431j\",\"btn--footer-combo\":\"btn--footer-combo____tMT5O btn--footer____TNjyU btn____C431j\",\"btn--lmi-bicalc\":\"btn--lmi-bicalc____VEHuc btn____C431j\",\"btn--lmi-risk\":\"btn--lmi-risk____sShst btn____C431j\",\"btn--lmi-policy-comparison\":\"btn--lmi-policy-comparison____AyiBL btn____C431j\",\"btn--lmi-policy-coach\":\"btn--lmi-policy-coach____vqdEx btn____C431j\",\"btn--andrew-nock\":\"btn--andrew-nock____LdQUC btn____C431j\",\"btn--construction-cost-consultants\":\"btn--construction-cost-consultants____xkCKI btn____C431j\",\"btn--5-star\":\"btn--5-star____eVLUU btn____C431j\",\"btn--thermoscan\":\"btn--thermoscan____lAIs9 btn____C431j\",\"btn--risk-survey-services\":\"btn--risk-survey-services____jGyhW btn____C431j\",\"btn--risk-management\":\"btn--risk-management____NWmwv btn____C431j\",\"btn--lmi-bicalc--disabled\":\"btn--lmi-bicalc--disabled____vcuJc btn--lmi-bicalc____VEHuc btn____C431j\",\"btn--lmi-risk--disabled\":\"btn--lmi-risk--disabled____jNocH btn--lmi-risk____sShst btn____C431j\",\"btn--lmi-policy-comparison--disabled\":\"btn--lmi-policy-comparison--disabled____j8WX5 btn--lmi-policy-comparison____AyiBL btn____C431j\",\"btn--initial-insured-location-risk\":\"btn--initial-insured-location-risk____Knu0I btn--flat____K6kR0 btn____C431j btn____C431j\",\"btn--icon\":\"btn--icon____do7Ek btn____C431j\",\"btn--icon-no-border\":\"btn--icon-no-border____lHAvD\",\"btn--icon-add\":\"btn--icon-add____BXZ5y btn--icon____do7Ek btn____C431j\",\"btn--add-risk\":\"btn--add-risk____CrJdK btn--icon____do7Ek btn____C431j\",\"btn--icon-close\":\"btn--icon-close____Y6epK\",\"task-access-modal__close\":\"task-access-modal__close____RJ_dn\",\"btn--icon-delete\":\"btn--icon-delete____r1Usb btn--icon____do7Ek btn____C431j\",\"btn--icon-download\":\"btn--icon-download____WY2fi btn--icon____do7Ek btn____C431j\",\"btn--icon-edit\":\"btn--icon-edit____QZzsR btn--icon____do7Ek btn____C431j\",\"btn--icon-email\":\"btn--icon-email____n9Ji7 btn--icon____do7Ek btn____C431j\",\"btn--icon-download-email\":\"btn--icon-download-email____ZMacZ btn--icon____do7Ek btn____C431j\",\"btn--icon-folder\":\"btn--icon-folder____nHcRV btn--icon____do7Ek btn____C431j\",\"btn--icon-folder-locked\":\"btn--icon-folder-locked____wgcWi btn--icon____do7Ek btn____C431j\",\"btn--icon-folder-locked-active\":\"btn--icon-folder-locked-active____PfWZg btn--icon____do7Ek btn____C431j\",\"btn--icon-history\":\"btn--icon-history____PRIdm btn--icon____do7Ek btn____C431j\",\"btn--icon-info\":\"btn--icon-info____H9eJD btn--icon____do7Ek btn____C431j\",\"btn--icon-task\":\"btn--icon-task____u_Xwa btn--icon____do7Ek btn____C431j\",\"btn--icon-link\":\"btn--icon-link____pFhmY btn--icon____do7Ek btn____C431j\",\"btn--icon-unlink\":\"btn--icon-unlink____X4_Ii btn--icon-delete____r1Usb btn--icon____do7Ek btn____C431j\",\"btn--icon-map\":\"btn--icon-map____K8Khz btn--icon____do7Ek btn____C431j\",\"btn--icon-more\":\"btn--icon-more____DZi57 btn--icon____do7Ek btn____C431j\",\"btn--icon-open-in-new-window\":\"btn--icon-open-in-new-window____myHMY btn--icon____do7Ek btn____C431j\",\"btn--icon-favourite--selected\":\"btn--icon-favourite--selected____feRFU btn--icon____do7Ek btn____C431j\",\"btn--icon-favourite--deselected\":\"btn--icon-favourite--deselected____oR8Ln btn--icon____do7Ek btn____C431j\",\"btn--icon-preview\":\"btn--icon-preview____d76wb btn--icon____do7Ek btn____C431j\",\"btn--icon-pre-printed\":\"btn--icon-pre-printed____Agqeb btn--icon____do7Ek btn____C431j\",\"btn--icon-print\":\"btn--icon-print____GqmM_ btn--icon____do7Ek btn____C431j\",\"btn--icon-save\":\"btn--icon-save____iGfSo btn--icon____do7Ek btn____C431j\",\"btn--icon-settings\":\"btn--icon-settings____VeTMm btn--icon____do7Ek btn____C431j\",\"btn--icon-show-details\":\"btn--icon-show-details____PqGz_ btn--icon____do7Ek btn____C431j\",\"btn--icon-show-details--alert\":\"btn--icon-show-details--alert____oLxN8 btn--icon____do7Ek btn____C431j\",\"btn--icon-show-summary\":\"btn--icon-show-summary____PiOIR btn--icon____do7Ek btn____C431j\",\"btn--icon-attachment\":\"btn--icon-attachment____s0WKF btn--icon____do7Ek btn____C431j\",\"btn--icon-tag\":\"btn--icon-tag____G24Gv btn--icon____do7Ek btn____C431j\",\"btn--icon-undo\":\"btn--icon-undo____N_XWs btn--icon____do7Ek btn____C431j\",\"btn--icon-sync\":\"btn--icon-sync____uXLpA btn--icon____do7Ek btn____C431j\",\"btn--icon-arrow-forward\":\"btn--icon-arrow-forward____Z6PyP btn--icon____do7Ek btn____C431j\",\"btn--aside-collapse\":\"btn--aside-collapse____etIVI btn--icon____do7Ek btn____C431j\",\"btn--icon-expand-more\":\"btn--icon-expand-more____ZTpHw btn--icon____do7Ek btn____C431j\",\"btn--icon-expand-less\":\"btn--icon-expand-less____O7Aop btn--icon____do7Ek btn____C431j\",\"btn--icon-general\":\"btn--icon-general____saW1y btn--icon____do7Ek btn____C431j\",\"btn--icon-sales\":\"btn--icon-sales____a1vSC btn--icon____do7Ek btn____C431j\",\"btn--icon-branch\":\"btn--icon-branch____VX3ta btn--icon____do7Ek btn____C431j\",\"btn--icon-contact\":\"btn--icon-contact____lkmaJ btn--icon____do7Ek btn____C431j\",\"btn--icon-consent\":\"btn--icon-consent____BvmJH btn--icon____do7Ek btn____C431j\",\"btn--icon-questions\":\"btn--icon-questions____jVth_ btn--icon____do7Ek btn____C431j\",\"btn--icon-associated\":\"btn--icon-associated____rWK8K btn--icon____do7Ek btn____C431j\",\"btn--icon-notes\":\"btn--icon-notes____aGkcB btn--icon____do7Ek btn____C431j\",\"btn--back\":\"btn--back____c1FPW\",\"btn--back-to-sign-in\":\"btn--back-to-sign-in____xfFBy btn--back____c1FPW\",\"btn--icon-advanced-search\":\"btn--icon-advanced-search____OogMm btn--icon____do7Ek btn____C431j\",\"btn--wizard\":\"btn--wizard____pDhFz btn____C431j\",\"btn--wizard-back\":\"btn--wizard-back____VyUs3 btn--wizard____pDhFz btn____C431j\",\"btn--wizard-next\":\"btn--wizard-next____i52WS btn--wizard____pDhFz btn____C431j\",\"task-delete-confirm-modal__delete\":\"task-delete-confirm-modal__delete____T3puI\",\"task-delete-confirm-modal__cancel\":\"task-delete-confirm-modal__cancel____yJUEX\",\"button-options\":\"button-options____c16jR\",\"cancel\":\"cancel____ERiuD\",\"tasksubmit\":\"tasksubmit____Bgks_\",\"forgotPasswordBtn\":\"forgotPasswordBtn____S4thO\",\"show-complet-tasks\":\"show-complet-tasks____F8rg6\",\"card\":\"card_____XnXy\",\"card-content\":\"card-content____SXjnb\",\"card-heading\":\"card-heading____l748V\",\"control-group\":\"control-group____oWFho\",\"label-group\":\"label-group____w24Cq\",\"label-group-item\":\"label-group-item____E7wJw\",\"constrained-width\":\"constrained-width____bom4s\",\"button-group\":\"button-group____WCF6O\",\"card--alert\":\"card--alert____M8DgM card_____XnXy\",\"card-heading--alert\":\"card-heading--alert____cwh8L card-heading____l748V\",\"card--status-message\":\"card--status-message____gRwFe\",\"card--status-message--left\":\"card--status-message--left____cW17q card--status-message____gRwFe\",\"card-heading--sticky-header\":\"card-heading--sticky-header____vnZ66\",\"card-heading--no-icon\":\"card-heading--no-icon____BEDm1 card-heading____l748V\",\"card-heading--bold-title\":\"card-heading--bold-title____X9rno\",\"bg-blue-sky\":\"bg-blue-sky____Gwpso\",\"card-heading--advanced-search-results\":\"card-heading--advanced-search-results____X1HmR\",\"fieldset\":\"fieldset____Hs7_q\",\"fieldset-instruction\":\"fieldset-instruction____hJk7i\",\"fieldset--no-padding\":\"fieldset--no-padding____nx91m fieldset____Hs7_q\",\"fieldset--alt\":\"fieldset--alt____Lb3tL fieldset____Hs7_q\",\"input-search\":\"input-search____v0g5B\",\"view-password\":\"view-password____DZpFY\",\"ia-currency-input\":\"ia-currency-input____eIiEw\",\"ia-currency-negative\":\"ia-currency-negative____qMsVr\",\"select--mini\":\"select--mini____MQlI5\",\"required-label\":\"required-label____gxOgy\",\"alert\":\"alert____twZnw\",\"alert--important\":\"alert--important____M6jMi\",\"input-label\":\"input-label____fCgnx\",\"w-100\":\"w-100____hIq5m\",\"search-input-wrapper\":\"search-input-wrapper____VyaWb\",\"search-input--results\":\"search-input--results____S7h_O\",\"search-input--result\":\"search-input--result____BXkI5\",\"search-input--result--highlighted\":\"search-input--result--highlighted____PxeGg\",\"date-range-selections\":\"date-range-selections____nnTm1\",\"date-arrow-forward\":\"date-arrow-forward____LyZRf\",\"qce-dropdown\":\"qce-dropdown____PbPPW\",\"qce-or\":\"qce-or____VeBge\",\"qce-dropdown-with-dropdown\":\"qce-dropdown-with-dropdown____inlyv\",\"qce-vehicle-registration-search\":\"qce-vehicle-registration-search____wqJxh\",\"row-gap\":\"row-gap____nTEmR\",\"row-group\":\"row-group____RyYba\",\"row-group--three\":\"row-group--three____xe2fP row-group____RyYba\",\"grid-14\":\"grid-14____j1LaY\",\"row-group--auto\":\"row-group--auto____oFhW3 row-group____RyYba\",\"space\":\"space____SLwIF\",\"display-none--lg\":\"display-none--lg____KmC7p\",\"display-none--md\":\"display-none--md____cnsIe\",\"table\":\"table____REddP\",\"table-heading-row\":\"table-heading-row____tJrpH\",\"table-row\":\"table-row____EJWxS\",\"table-result-row\":\"table-result-row____WfR6a\",\"break-word\":\"break-word_____pm3S\",\"no-wrap\":\"no-wrap____W6Pp3\",\"table-result-row--disabled\":\"table-result-row--disabled____Y1Cgr\",\"table-modal\":\"table-modal____T9C3C table____REddP\",\"table-enhanced\":\"table-enhanced____ZbqQ9\",\"table--no-border-bottom\":\"table--no-border-bottom____rKeiv table____REddP\",\"height-45\":\"height-45____loSDe\",\"edit-column\":\"edit-column____dW6Lg\",\"delete-column\":\"delete-column____UDLPb\",\"date-table-heading\":\"date-table-heading____oN1Ch\",\"button-edit\":\"button-edit____m3qhC\",\"button-delete\":\"button-delete____vK9Zv\",\"table-row-selected\":\"table-row-selected____ANkk6\",\"table-row-alert\":\"table-row-alert____JQYeJ\",\"table-filter-row\":\"table-filter-row____CuwKv\",\"table-filter-row--endcap\":\"table-filter-row--endcap____RKard\",\"filter-column\":\"filter-column____HuScc\",\"table-pagination\":\"table-pagination____QgiiW\",\"table-pagination-with-filter\":\"table-pagination-with-filter____wHmP5 table-pagination____QgiiW\",\"table-button-group\":\"table-button-group____iAk37\",\"table-child-container\":\"table-child-container____E21ae\",\"table-child-card\":\"table-child-card____gzHSU\",\"child-table--selected-row\":\"child-table--selected-row____cMops\",\"child-table\":\"child-table____gAJmF table____REddP\",\"custom-pagination\":\"custom-pagination____ThvTw\",\"pagination-count\":\"pagination-count____iJG1X\",\"pagination-button\":\"pagination-button____klZJk btn____C431j\",\"pagination-prev\":\"pagination-prev____mLBCB pagination-button____klZJk btn____C431j\",\"pagination-next\":\"pagination-next____sD8Kf pagination-button____klZJk btn____C431j\",\"pagination-disabled\":\"pagination-disabled____xMAHo pagination-button____klZJk btn____C431j\",\"pagination-prev-disabled\":\"pagination-prev-disabled____fC2Dq pagination-disabled____xMAHo pagination-button____klZJk btn____C431j\",\"pagination-next-disabled\":\"pagination-next-disabled____JJMED pagination-disabled____xMAHo pagination-button____klZJk btn____C431j\",\"pagination\":\"pagination____DZfyS\",\"pagination-top\":\"pagination-top____O2jR7 pagination____DZfyS\",\"pagination-bottom\":\"pagination-bottom____S7yXM pagination____DZfyS\",\"pagination-bottom--documents\":\"pagination-bottom--documents____HpNJF pagination-bottom____S7yXM pagination____DZfyS\",\"table-cell-btn-icon\":\"table-cell-btn-icon____ktKHz\",\"folder-table\":\"folder-table____VKPSZ table--no-border-bottom____rKeiv table____REddP\",\"doc-table-group--heading\":\"doc-table-group--heading____kPi0S\",\"doc-table-group--heading-open\":\"doc-table-group--heading-open____jsj2a doc-table-group--heading____kPi0S\",\"doc-table-group--heading-with-options\":\"doc-table-group--heading-with-options____v1YCB\",\"constrained-width--folder-name\":\"constrained-width--folder-name____J_YCj constrained-width____bom4s\",\"disable-entity\":\"disable-entity____LGD5j\",\"button-options--add\":\"button-options--add____w4zCJ button-options____c16jR\",\"information-icon\":\"information-icon____aH_4j\",\"deleted-icon\":\"deleted-icon____Kf56F\",\"exclamation-icon\":\"exclamation-icon____qJRnC\",\"success-icon\":\"success-icon____xrzH0\",\"text-align-center\":\"text-align-center____PoZfV\",\"word-break\":\"word-break_____WHSa\",\"btn-group\":\"btn-group____NYorO\",\"accordion-content\":\"accordion-content____BPD6F\",\"toggle-collapse\":\"toggle-collapse____MNhwi\",\"toggle-collapse--disabled\":\"toggle-collapse--disabled____bivkg toggle-collapse____MNhwi\",\"toggle-expand\":\"toggle-expand____v5PEC toggle-collapse____MNhwi\",\"folder\":\"folder____keUMW\",\"folder-locked\":\"folder-locked____ZSbYY folder____keUMW\",\"yesNo-filter-width\":\"yesNo-filter-width____eCt7S\",\"w-5\":\"w-5____tEMej\",\"w-10\":\"w-10____XWSBr\",\"w-15\":\"w-15____iwl84\",\"w-20\":\"w-20____EDTmg\",\"w-25\":\"w-25____ytNuY\",\"w-30\":\"w-30____iqw8R\",\"w-35\":\"w-35____UaVJf\",\"w-40\":\"w-40____uB1Ly\",\"w-45\":\"w-45____dy3GB\",\"w-50\":\"w-50____ZRcPH\",\"w-60\":\"w-60____FX8bm\",\"table--sticky-header\":\"table--sticky-header____Cr2hW\",\"table--sticky-footer\":\"table--sticky-footer____DTSjk\",\"table--sticky-column\":\"table--sticky-column____PfeoV\",\"table--sticky-column2\":\"table--sticky-column2____pr1C9 table--sticky-column____PfeoV\",\"table--sticky-column-right\":\"table--sticky-column-right____rLrhx table--sticky-column____PfeoV\",\"scrollable-table-container\":\"scrollable-table-container____aE0ep\",\"task-options-modal\":\"task-options-modal____Q7ayD\",\"recent-link-name\":\"recent-link-name____WOCxk\"};","import { generateGuidString } from 'resources/utilities/insecure-guid';\r\nimport { ComponentBase } from '../component-base';\r\nimport { customElement } from 'aurelia-framework';\r\nimport { environment } from 'environment';\r\n\r\n// DisplayTypeId 610000050\r\n\r\nimport styles from './criminal-offence-history.css';\r\nimport { IQceGridResponse } from '../../qce-typings';\r\nimport moment from 'moment';\r\n\r\nclass CriminalOffenceHistoryModel {\r\n private Guid = generateGuidString();\r\n private Id = null;\r\n private DateOfOffenceConviction = null;\r\n private NameOfInsured = null;\r\n private FineAmount = null;\r\n private OffenceTypeId = null;\r\n private PenaltyDetail = null;\r\n private PenaltyImposedId = null;\r\n private PeriodImprisonmentPeriodicDetention = null;\r\n\r\n constructor(model: any) {\r\n Object.assign(this, model);\r\n }\r\n}\r\n\r\n@customElement('criminal-offence-history')\r\nexport class CriminalOffenceHistory extends ComponentBase {\r\n\r\n private styles = styles;\r\n private offenceTypes = [];\r\n private penaltiesImposed = [];\r\n\r\n // private inputMaskOptions: any = {\r\n // alias: 'currency',\r\n // digits: 2,\r\n // max: '999999999.99',\r\n // clearMaskOnLostFocus: true,\r\n // };\r\n\r\n private inputMaskOptions: any = {\r\n decimalPlaces : 2,\r\n minimumValue : 0,\r\n maximumValue : '999999999.99',\r\n emptyInputBehavior: 'focus'\r\n };\r\n\r\n async bind() {\r\n super.bind();\r\n\r\n if (!this.question.currentResponse.gridResponses) {\r\n this.question.currentResponse.gridResponses = [];\r\n }\r\n\r\n this.question.currentResponse.gridTypeCode = 'CRIMINAL_OFFENCE_HISTORY';\r\n\r\n const offenceTypesEndpoint = environment.refData.offenceTypes;\r\n const penaltiesImposedEndpoint = environment.refData.penaltiesImposed;\r\n\r\n const offenceTypesUri = offenceTypesEndpoint.uri([610000050, null]);\r\n const penaltiesImposedUri = penaltiesImposedEndpoint.uri([610000050]);\r\n\r\n const offenceTypes = await this.http.fetch(offenceTypesUri, { method: offenceTypesEndpoint.method });\r\n const penaltiesImposed = await this.http.fetch(penaltiesImposedUri, { method: penaltiesImposedEndpoint.method });\r\n\r\n if (offenceTypes.ok) {\r\n this.offenceTypes = await offenceTypes.json();\r\n }\r\n\r\n if (penaltiesImposed.ok) {\r\n this.penaltiesImposed = await penaltiesImposed.json();\r\n }\r\n }\r\n\r\n fieldChanged(isInput = false, claim?) {\r\n this.taskQueue.queueTask(() => {\r\n super.fieldChanged(isInput);\r\n\r\n if (this.question.currentResponse.gridResponses.length) {\r\n // Any value item\r\n const currentWorkflowItem = this.question.questionFlow.find(q => q.responseTypeId === 600000001);\r\n\r\n this.question.currentResponse.responsePresent = true;\r\n this.question.currentResponse = { ...this.question.currentResponse, ...currentWorkflowItem };\r\n } else {\r\n const currentWorkflowItem = this.question.questionFlow.find(q => q.responseTypeId === -1);\r\n\r\n this.question.currentResponse.responsePresent = false;\r\n this.question.currentResponse = { ...this.question.currentResponse, ...currentWorkflowItem };\r\n }\r\n\r\n this.context.fieldChanged(this.question, this.group);\r\n });\r\n }\r\n\r\n offenceMatcher = (a, b) => {\r\n if (a && b) {\r\n return parseInt(a) === parseInt(b);\r\n }\r\n }\r\n\r\n penaltyMatcher = (a, b) => {\r\n if (a && b) {\r\n return parseInt(a) === parseInt(b);\r\n }\r\n }\r\n\r\n private deleteItem(index: number) {\r\n if (index >= 0) {\r\n this.question.currentResponse.gridResponses.splice(index, 1);\r\n }\r\n\r\n this.fieldChanged();\r\n }\r\n\r\n private addItem() {\r\n if (!Array.isArray(this.question.currentResponse.gridResponses)) {\r\n this.question.currentResponse.gridResponses = [];\r\n }\r\n\r\n this.question.currentResponse.gridResponses.push(new CriminalOffenceHistoryModel({}) as unknown as IQceGridResponse);\r\n\r\n this.fieldChanged();\r\n }\r\n}\r\n","import { generateGuidString } from 'resources/utilities/insecure-guid';\r\nimport { ComponentBase } from '../component-base';\r\nimport { customElement } from 'aurelia-framework';\r\nimport { IQceGridResponse } from '../../qce-typings';\r\n\r\n// DisplayTypeId 610000101\r\n\r\nclass DateAndDescriptionItemModel {\r\n private Guid = generateGuidString();\r\n private Id = null;\r\n private ItemDate = null;\r\n private ItemDescription = null;\r\n\r\n constructor(model: any) {\r\n Object.assign(this, model);\r\n }\r\n}\r\n\r\n@customElement('date-and-description-items')\r\nexport class DateAndDescriptionItems extends ComponentBase {\r\n\r\n async bind() {\r\n super.bind();\r\n\r\n if (!this.question.currentResponse.gridResponses) {\r\n this.question.currentResponse.gridResponses = [];\r\n }\r\n\r\n this.question.currentResponse.gridTypeCode = 'DATE_AND_DESCRIPTION';\r\n}\r\n\r\n fieldChanged(isInput = false, claim?) {\r\n this.taskQueue.queueTask(() => {\r\n super.fieldChanged(isInput);\r\n\r\n if (this.question.currentResponse.gridResponses.length) {\r\n // Any value item\r\n const currentWorkflowItem = this.question.questionFlow.find(q => q.responseTypeId === 600000001);\r\n\r\n this.question.currentResponse.responsePresent = true;\r\n this.question.currentResponse = { ...this.question.currentResponse, ...currentWorkflowItem };\r\n } else {\r\n const currentWorkflowItem = this.question.questionFlow.find(q => q.responseTypeId === -1);\r\n\r\n this.question.currentResponse.responsePresent = false;\r\n this.question.currentResponse = { ...this.question.currentResponse, ...currentWorkflowItem };\r\n }\r\n\r\n this.context.fieldChanged(this.question, this.group);\r\n });\r\n }\r\n\r\n eventMatcher = (a, b) => {\r\n if (a && b) {\r\n return parseInt(a) === parseInt(b);\r\n }\r\n }\r\n\r\n private deleteItem(index: number) {\r\n if (index >= 0) {\r\n this.question.currentResponse.gridResponses.splice(index, 1);\r\n }\r\n\r\n this.fieldChanged();\r\n }\r\n\r\n private addItem() {\r\n if (!Array.isArray(this.question.currentResponse.gridResponses)) {\r\n this.question.currentResponse.gridResponses = [];\r\n }\r\n\r\n this.question.currentResponse.gridResponses.push(new DateAndDescriptionItemModel({}) as unknown as IQceGridResponse);\r\n\r\n this.fieldChanged();\r\n }\r\n}\r\n","// extracted by mini-css-extract-plugin\nexport default {\"btn\":\"btn____A2rNp\",\"btn--flat\":\"btn--flat____tUAGO btn____A2rNp\",\"btn--submit\":\"btn--submit____DOztE btn____A2rNp\",\"btn--delete\":\"btn--delete____NrmYw btn____A2rNp\",\"btn--link\":\"btn--link____ccfMm btn____A2rNp\",\"btn--inline-text-link\":\"btn--inline-text-link____K3h6F btn--link____ccfMm btn____A2rNp\",\"btn--footer\":\"btn--footer____RpY7L btn____A2rNp\",\"btn--footer-submit\":\"btn--footer-submit____otTXr btn--submit____DOztE btn____A2rNp btn--footer____RpY7L btn____A2rNp\",\"btn--footer-cancel\":\"btn--footer-cancel____Vsapx\",\"btn--footer---cancel\":\"btn--footer---cancel____V_Nye\",\"btn--footer-delete\":\"btn--footer-delete____ObIgg btn--delete____NrmYw btn____A2rNp btn--footer____RpY7L btn____A2rNp\",\"btn--qce-dropdown\":\"btn--qce-dropdown____ibegL btn--footer-submit____otTXr btn--submit____DOztE btn____A2rNp btn--footer____RpY7L btn____A2rNp\",\"btn--footer-combo\":\"btn--footer-combo____o3ZVG btn--footer____RpY7L btn____A2rNp\",\"btn--lmi-bicalc\":\"btn--lmi-bicalc____SYdYp btn____A2rNp\",\"btn--lmi-risk\":\"btn--lmi-risk____I8xhR btn____A2rNp\",\"btn--lmi-policy-comparison\":\"btn--lmi-policy-comparison____vGIxF btn____A2rNp\",\"btn--lmi-policy-coach\":\"btn--lmi-policy-coach____BJP_p btn____A2rNp\",\"btn--andrew-nock\":\"btn--andrew-nock____QzJu1 btn____A2rNp\",\"btn--construction-cost-consultants\":\"btn--construction-cost-consultants____KoCZL btn____A2rNp\",\"btn--5-star\":\"btn--5-star____m3yKa btn____A2rNp\",\"btn--thermoscan\":\"btn--thermoscan____DUGIo btn____A2rNp\",\"btn--risk-survey-services\":\"btn--risk-survey-services____CDAJZ btn____A2rNp\",\"btn--risk-management\":\"btn--risk-management____iu0G2 btn____A2rNp\",\"btn--lmi-bicalc--disabled\":\"btn--lmi-bicalc--disabled____zraSb btn--lmi-bicalc____SYdYp btn____A2rNp\",\"btn--lmi-risk--disabled\":\"btn--lmi-risk--disabled____k5qVF btn--lmi-risk____I8xhR btn____A2rNp\",\"btn--lmi-policy-comparison--disabled\":\"btn--lmi-policy-comparison--disabled____dIgIZ btn--lmi-policy-comparison____vGIxF btn____A2rNp\",\"btn--initial-insured-location-risk\":\"btn--initial-insured-location-risk____q8s8q btn--flat____tUAGO btn____A2rNp btn____A2rNp\",\"btn--icon\":\"btn--icon____MhIoU btn____A2rNp\",\"btn--icon-no-border\":\"btn--icon-no-border____rxBPN\",\"btn--icon-add\":\"btn--icon-add____zUcxn btn--icon____MhIoU btn____A2rNp\",\"btn--add-risk\":\"btn--add-risk____cg_RF btn--icon____MhIoU btn____A2rNp\",\"btn--icon-close\":\"btn--icon-close____C7qrv\",\"task-access-modal__close\":\"task-access-modal__close____WudAV\",\"btn--icon-delete\":\"btn--icon-delete____UoiJv btn--icon____MhIoU btn____A2rNp\",\"btn--icon-download\":\"btn--icon-download____GC6U7 btn--icon____MhIoU btn____A2rNp\",\"btn--icon-edit\":\"btn--icon-edit____X47tK btn--icon____MhIoU btn____A2rNp\",\"btn--icon-email\":\"btn--icon-email____oUNSv btn--icon____MhIoU btn____A2rNp\",\"btn--icon-download-email\":\"btn--icon-download-email____YUQdo btn--icon____MhIoU btn____A2rNp\",\"btn--icon-folder\":\"btn--icon-folder____HJWji btn--icon____MhIoU btn____A2rNp\",\"btn--icon-folder-locked\":\"btn--icon-folder-locked____B8OaX btn--icon____MhIoU btn____A2rNp\",\"btn--icon-folder-locked-active\":\"btn--icon-folder-locked-active____f1zMl btn--icon____MhIoU btn____A2rNp\",\"btn--icon-history\":\"btn--icon-history____Amtvh btn--icon____MhIoU btn____A2rNp\",\"btn--icon-info\":\"btn--icon-info____Tb9fU btn--icon____MhIoU btn____A2rNp\",\"btn--icon-task\":\"btn--icon-task____WYA3i btn--icon____MhIoU btn____A2rNp\",\"btn--icon-link\":\"btn--icon-link____V_G37 btn--icon____MhIoU btn____A2rNp\",\"btn--icon-unlink\":\"btn--icon-unlink____ZBoAR btn--icon-delete____UoiJv btn--icon____MhIoU btn____A2rNp\",\"btn--icon-map\":\"btn--icon-map____HauzC btn--icon____MhIoU btn____A2rNp\",\"btn--icon-more\":\"btn--icon-more____DUGHA btn--icon____MhIoU btn____A2rNp\",\"btn--icon-open-in-new-window\":\"btn--icon-open-in-new-window____wOIxA btn--icon____MhIoU btn____A2rNp\",\"btn--icon-favourite--selected\":\"btn--icon-favourite--selected____qtAV0 btn--icon____MhIoU btn____A2rNp\",\"btn--icon-favourite--deselected\":\"btn--icon-favourite--deselected____j3K3_ btn--icon____MhIoU btn____A2rNp\",\"btn--icon-preview\":\"btn--icon-preview____WaaFU btn--icon____MhIoU btn____A2rNp\",\"btn--icon-pre-printed\":\"btn--icon-pre-printed____JQFJA btn--icon____MhIoU btn____A2rNp\",\"btn--icon-print\":\"btn--icon-print____gZSeV btn--icon____MhIoU btn____A2rNp\",\"btn--icon-save\":\"btn--icon-save____EvL1P btn--icon____MhIoU btn____A2rNp\",\"btn--icon-settings\":\"btn--icon-settings____uiYUq btn--icon____MhIoU btn____A2rNp\",\"btn--icon-show-details\":\"btn--icon-show-details_____W_Zz btn--icon____MhIoU btn____A2rNp\",\"btn--icon-show-details--alert\":\"btn--icon-show-details--alert____cVAsV btn--icon____MhIoU btn____A2rNp\",\"btn--icon-show-summary\":\"btn--icon-show-summary____KmO4c btn--icon____MhIoU btn____A2rNp\",\"btn--icon-attachment\":\"btn--icon-attachment____yxcZR btn--icon____MhIoU btn____A2rNp\",\"btn--icon-tag\":\"btn--icon-tag____SCeTv btn--icon____MhIoU btn____A2rNp\",\"btn--icon-undo\":\"btn--icon-undo____wiCpc btn--icon____MhIoU btn____A2rNp\",\"btn--icon-sync\":\"btn--icon-sync____ufWU9 btn--icon____MhIoU btn____A2rNp\",\"btn--icon-arrow-forward\":\"btn--icon-arrow-forward____FnYwc btn--icon____MhIoU btn____A2rNp\",\"btn--aside-collapse\":\"btn--aside-collapse____y1LWQ btn--icon____MhIoU btn____A2rNp\",\"btn--icon-expand-more\":\"btn--icon-expand-more____fQ6Ub btn--icon____MhIoU btn____A2rNp\",\"btn--icon-expand-less\":\"btn--icon-expand-less____MOlQN btn--icon____MhIoU btn____A2rNp\",\"btn--icon-general\":\"btn--icon-general____N6zSs btn--icon____MhIoU btn____A2rNp\",\"btn--icon-sales\":\"btn--icon-sales____bXoxk btn--icon____MhIoU btn____A2rNp\",\"btn--icon-branch\":\"btn--icon-branch____cnNtW btn--icon____MhIoU btn____A2rNp\",\"btn--icon-contact\":\"btn--icon-contact____fk5tA btn--icon____MhIoU btn____A2rNp\",\"btn--icon-consent\":\"btn--icon-consent____imdcg btn--icon____MhIoU btn____A2rNp\",\"btn--icon-questions\":\"btn--icon-questions____UrdQU btn--icon____MhIoU btn____A2rNp\",\"btn--icon-associated\":\"btn--icon-associated____xkqLx btn--icon____MhIoU btn____A2rNp\",\"btn--icon-notes\":\"btn--icon-notes____tQiPb btn--icon____MhIoU btn____A2rNp\",\"btn--back\":\"btn--back____A0lhw\",\"btn--back-to-sign-in\":\"btn--back-to-sign-in____JOUqS btn--back____A0lhw\",\"btn--icon-advanced-search\":\"btn--icon-advanced-search____cREF1 btn--icon____MhIoU btn____A2rNp\",\"btn--wizard\":\"btn--wizard____M_ghJ btn____A2rNp\",\"btn--wizard-back\":\"btn--wizard-back____Irm45 btn--wizard____M_ghJ btn____A2rNp\",\"btn--wizard-next\":\"btn--wizard-next____bRt_4 btn--wizard____M_ghJ btn____A2rNp\",\"task-delete-confirm-modal__delete\":\"task-delete-confirm-modal__delete____btmxO\",\"task-delete-confirm-modal__cancel\":\"task-delete-confirm-modal__cancel____DPN9_\",\"button-options\":\"button-options____kCTnB\",\"cancel\":\"cancel____c_E7a\",\"tasksubmit\":\"tasksubmit____Oj4sA\",\"forgotPasswordBtn\":\"forgotPasswordBtn____hLX1E\",\"show-complet-tasks\":\"show-complet-tasks____oq7bx\",\"card\":\"card____VCWFw\",\"card-content\":\"card-content____Jg65U\",\"card-heading\":\"card-heading____bGnrZ\",\"control-group\":\"control-group____N_mj3\",\"label-group\":\"label-group____LaAa6\",\"label-group-item\":\"label-group-item____NOWjb\",\"constrained-width\":\"constrained-width____K5fdA\",\"button-group\":\"button-group____6hOxC\",\"card--alert\":\"card--alert____RnZKW card____VCWFw\",\"card-heading--alert\":\"card-heading--alert____d65tN card-heading____bGnrZ\",\"card--status-message\":\"card--status-message____LFI8V\",\"card--status-message--left\":\"card--status-message--left____tctGK card--status-message____LFI8V\",\"card-heading--sticky-header\":\"card-heading--sticky-header____Nh8Lu\",\"card-heading--no-icon\":\"card-heading--no-icon____CQy35 card-heading____bGnrZ\",\"card-heading--bold-title\":\"card-heading--bold-title____a76OM\",\"bg-blue-sky\":\"bg-blue-sky____XT7qc\",\"card-heading--advanced-search-results\":\"card-heading--advanced-search-results____gbjVa\",\"fieldset\":\"fieldset____m21VQ\",\"fieldset-instruction\":\"fieldset-instruction____Lm2j3\",\"fieldset--no-padding\":\"fieldset--no-padding____whQcp fieldset____m21VQ\",\"fieldset--alt\":\"fieldset--alt____i1pOM fieldset____m21VQ\",\"input-search\":\"input-search____bLaKi\",\"view-password\":\"view-password____txIEN\",\"ia-currency-input\":\"ia-currency-input____wEAR2\",\"ia-currency-negative\":\"ia-currency-negative____fxQCt\",\"select--mini\":\"select--mini____JUNdU\",\"required-label\":\"required-label____PquX1\",\"alert\":\"alert____yuoWP\",\"alert--important\":\"alert--important____e89mx\",\"input-label\":\"input-label____FePYB\",\"w-100\":\"w-100____YfL8D\",\"search-input-wrapper\":\"search-input-wrapper____PGoRR\",\"search-input--results\":\"search-input--results____RbI0o\",\"search-input--result\":\"search-input--result____KGiVV\",\"search-input--result--highlighted\":\"search-input--result--highlighted____U2pmk\",\"date-range-selections\":\"date-range-selections____cCo3Z\",\"date-arrow-forward\":\"date-arrow-forward____FkCRa\",\"qce-dropdown\":\"qce-dropdown____HMHPx\",\"qce-or\":\"qce-or____DAljE\",\"qce-dropdown-with-dropdown\":\"qce-dropdown-with-dropdown____vAwnu\",\"qce-vehicle-registration-search\":\"qce-vehicle-registration-search____gUlLY\",\"row-gap\":\"row-gap____jdXLU\",\"row-group\":\"row-group____Zc1UR\",\"row-group--three\":\"row-group--three____xoNpW row-group____Zc1UR\",\"grid-14\":\"grid-14____lvLVk\",\"row-group--auto\":\"row-group--auto____jCxQM row-group____Zc1UR\",\"space\":\"space____yYbwr\",\"display-none--lg\":\"display-none--lg____Gddyc\",\"display-none--md\":\"display-none--md____XkqbK\",\"table\":\"table____aOXja\",\"table-heading-row\":\"table-heading-row____Z0RYy\",\"table-row\":\"table-row____DrHJf\",\"table-result-row\":\"table-result-row____fYqbX\",\"break-word\":\"break-word____igTuO\",\"no-wrap\":\"no-wrap____TzDCb\",\"table-result-row--disabled\":\"table-result-row--disabled____EGW48\",\"table-modal\":\"table-modal____LxGcJ table____aOXja\",\"table-enhanced\":\"table-enhanced____OLxap\",\"table--no-border-bottom\":\"table--no-border-bottom____Ec3OX table____aOXja\",\"height-45\":\"height-45_____TUgV\",\"edit-column\":\"edit-column____y1WCo\",\"delete-column\":\"delete-column____rUa3w\",\"date-table-heading\":\"date-table-heading____RbX4T\",\"button-edit\":\"button-edit____ZBjRE\",\"button-delete\":\"button-delete____MQxcV\",\"table-row-selected\":\"table-row-selected____TzSBf\",\"table-row-alert\":\"table-row-alert____MQMLw\",\"table-filter-row\":\"table-filter-row____ZrxmO\",\"table-filter-row--endcap\":\"table-filter-row--endcap_____2nA1\",\"filter-column\":\"filter-column____A0hr8\",\"table-pagination\":\"table-pagination____TRgdM\",\"table-pagination-with-filter\":\"table-pagination-with-filter____iMnNA table-pagination____TRgdM\",\"table-button-group\":\"table-button-group____Jf9dF\",\"table-child-container\":\"table-child-container____h9h0Q\",\"table-child-card\":\"table-child-card____Gx4P5\",\"child-table--selected-row\":\"child-table--selected-row____HAzfI\",\"child-table\":\"child-table____KbBYi table____aOXja\",\"custom-pagination\":\"custom-pagination____ge3sc\",\"pagination-count\":\"pagination-count____kSl5s\",\"pagination-button\":\"pagination-button____scQoP btn____A2rNp\",\"pagination-prev\":\"pagination-prev____t5o6R pagination-button____scQoP btn____A2rNp\",\"pagination-next\":\"pagination-next____w5YVq pagination-button____scQoP btn____A2rNp\",\"pagination-disabled\":\"pagination-disabled____g3USq pagination-button____scQoP btn____A2rNp\",\"pagination-prev-disabled\":\"pagination-prev-disabled____iYmWo pagination-disabled____g3USq pagination-button____scQoP btn____A2rNp\",\"pagination-next-disabled\":\"pagination-next-disabled____A2Wby pagination-disabled____g3USq pagination-button____scQoP btn____A2rNp\",\"pagination\":\"pagination____UXuKO\",\"pagination-top\":\"pagination-top____GqC_j pagination____UXuKO\",\"pagination-bottom\":\"pagination-bottom____qEXvx pagination____UXuKO\",\"pagination-bottom--documents\":\"pagination-bottom--documents____mxcxg pagination-bottom____qEXvx pagination____UXuKO\",\"table-cell-btn-icon\":\"table-cell-btn-icon____jgKu9\",\"folder-table\":\"folder-table____KEA0V table--no-border-bottom____Ec3OX table____aOXja\",\"doc-table-group--heading\":\"doc-table-group--heading____NWTJP\",\"doc-table-group--heading-open\":\"doc-table-group--heading-open____IWwLa doc-table-group--heading____NWTJP\",\"doc-table-group--heading-with-options\":\"doc-table-group--heading-with-options____HONyi\",\"constrained-width--folder-name\":\"constrained-width--folder-name____ufd46 constrained-width____K5fdA\",\"disable-entity\":\"disable-entity____eK_HE\",\"button-options--add\":\"button-options--add_____RR3w button-options____kCTnB\",\"information-icon\":\"information-icon____Z0Fcs\",\"deleted-icon\":\"deleted-icon____jfgmg\",\"exclamation-icon\":\"exclamation-icon____Ebl4o\",\"success-icon\":\"success-icon____AO7c2\",\"text-align-center\":\"text-align-center____hGdDT\",\"word-break\":\"word-break____jMGtm\",\"btn-group\":\"btn-group____gqto6\",\"accordion-content\":\"accordion-content____CSKWc\",\"toggle-collapse\":\"toggle-collapse____ldrVI\",\"toggle-collapse--disabled\":\"toggle-collapse--disabled____tBONO toggle-collapse____ldrVI\",\"toggle-expand\":\"toggle-expand____bJbh5 toggle-collapse____ldrVI\",\"folder\":\"folder____JkvVs\",\"folder-locked\":\"folder-locked____AckCf folder____JkvVs\",\"yesNo-filter-width\":\"yesNo-filter-width____ZGIl0\",\"w-5\":\"w-5____Trmc6\",\"w-10\":\"w-10____Df_me\",\"w-15\":\"w-15____BpiFd\",\"w-20\":\"w-20____lTjPo\",\"w-25\":\"w-25____L7_YW\",\"w-30\":\"w-30____QsoYK\",\"w-35\":\"w-35____Ion3X\",\"w-40\":\"w-40____TmOUD\",\"w-45\":\"w-45____KXPn2\",\"w-50\":\"w-50____bEXCI\",\"w-60\":\"w-60____nFmj5\",\"table--sticky-header\":\"table--sticky-header____dZmjO\",\"table--sticky-footer\":\"table--sticky-footer____FWsI2\",\"table--sticky-column\":\"table--sticky-column____KuLuU\",\"table--sticky-column2\":\"table--sticky-column2____rBK6E table--sticky-column____KuLuU\",\"table--sticky-column-right\":\"table--sticky-column-right____coN5K table--sticky-column____KuLuU\",\"scrollable-table-container\":\"scrollable-table-container____gZD9_\",\"task-options-modal\":\"task-options-modal____Ba2pv\",\"recent-link-name\":\"recent-link-name____y41tj\"};","import { generateGuidString } from 'resources/utilities/insecure-guid';\r\nimport { ComponentBase } from '../component-base';\r\nimport { customElement } from 'aurelia-framework';\r\nimport { environment } from 'environment';\r\n\r\n// DisplayTypeId 610000050\r\n\r\nimport styles from './decline-cancellation-condition-history.css';\r\nimport { IQceGridResponse } from '../../qce-typings';\r\nimport moment from 'moment';\r\n\r\nclass DeclineCancellationConditionHistoryModel {\r\n private Guid = generateGuidString();\r\n private Id = null;\r\n private DateOfEvent = null;\r\n private InsuranceType = null;\r\n private NameOfInsured = null;\r\n private InsuranceEventTypeId = null;\r\n private EventDetail = null;\r\n\r\n constructor(model: any) {\r\n Object.assign(this, model);\r\n }\r\n}\r\n\r\n@customElement('decline-cancellation-condition-history')\r\nexport class DeclineCancellationConditionHistory extends ComponentBase {\r\n private styles = styles;\r\n private insuranceEventTypes = [];\r\n\r\n async bind() {\r\n super.bind();\r\n\r\n if (!this.question.currentResponse.gridResponses) {\r\n this.question.currentResponse.gridResponses = [];\r\n }\r\n\r\n this.question.currentResponse.gridTypeCode = 'DECLINE_CANCELLATION_CONDITION_HISTORY'; \r\n\r\n const insuranceEventTypesEndpoint = environment.refData.insuranceEventType;\r\n\r\n const insuranceEventTypesUri = insuranceEventTypesEndpoint.uri();\r\n\r\n const insuranceEventTypes = await this.http.fetch(insuranceEventTypesUri, { method: insuranceEventTypesEndpoint.method });\r\n\r\n if (insuranceEventTypes.ok) {\r\n this.insuranceEventTypes = await insuranceEventTypes.json();\r\n }\r\n }\r\n \r\n fieldChanged(isInput = false, claim?) { \r\n this.taskQueue.queueTask(() => {\r\n super.fieldChanged(isInput);\r\n\r\n if (this.question.currentResponse.gridResponses.length) {\r\n // Any value item\r\n const currentWorkflowItem = this.question.questionFlow.find(q => q.responseTypeId === 600000001);\r\n\r\n this.question.currentResponse.responsePresent = true;\r\n this.question.currentResponse = { ...this.question.currentResponse, ...currentWorkflowItem };\r\n } else {\r\n const currentWorkflowItem = this.question.questionFlow.find(q => q.responseTypeId === -1);\r\n\r\n this.question.currentResponse.responsePresent = false;\r\n this.question.currentResponse = { ...this.question.currentResponse, ...currentWorkflowItem };\r\n }\r\n\r\n this.context.fieldChanged(this.question, this.group);\r\n });\r\n }\r\n\r\n eventMatcher = (a, b) => {\r\n if (a && b) {\r\n return parseInt(a) === parseInt(b);\r\n }\r\n }\r\n\r\n private deleteItem(index: number) {\r\n if (index >= 0) {\r\n this.question.currentResponse.gridResponses.splice(index, 1);\r\n }\r\n\r\n this.fieldChanged();\r\n }\r\n\r\n private addItem() {\r\n if (!Array.isArray(this.question.currentResponse.gridResponses)) {\r\n this.question.currentResponse.gridResponses = [];\r\n }\r\n\r\n this.question.currentResponse.gridResponses.push(new DeclineCancellationConditionHistoryModel({}) as unknown as IQceGridResponse);\r\n\r\n this.fieldChanged();\r\n }\r\n}\r\n","import { generateGuidString } from 'resources/utilities/insecure-guid';\r\nimport { ComponentBase } from '../component-base';\r\nimport { customElement } from 'aurelia-framework';\r\nimport { environment } from 'environment';\r\n\r\n// DisplayTypeId 610000054\r\n\r\nimport styles from './accident-damage-theft-history.css';\r\nimport { IQceGridResponse } from '../../qce-typings';\r\nimport moment from 'moment';\r\n\r\nclass DrivingOffenceConvictionHistoryModel {\r\n private Guid = generateGuidString();\r\n private Id = null;\r\n private DateOfOffence = null;\r\n private DriverName = null;\r\n private FineAmount = null;\r\n private OffenceTypeId = null;\r\n private PenaltyDetail = null;\r\n private PenaltyImposedId = null;\r\n private PeriodImprisonmentPeriodicDetention = null;\r\n\r\n constructor(model: any) {\r\n Object.assign(this, model);\r\n }\r\n}\r\n\r\n@customElement('driving-offence-conviction-history')\r\nexport class DrivingOffenceConvictionHistory extends ComponentBase {\r\n\r\n private styles = styles;\r\n private offenceTypes = [];\r\n private penaltiesImposed = [];\r\n\r\n private captureDriverName = false;\r\n private capturePenaltyImposed = false;\r\n private captureFineAmount = false;\r\n private captureImprisonmentDetentionPeriod = false;\r\n private offenceType = null;\r\n\r\n // private inputMaskOptions: any = {\r\n // alias: 'currency',\r\n // digits: 2,\r\n // max: '999999999.99',\r\n // clearMaskOnLostFocus: true,\r\n // };\r\n\r\n private inputMaskOptions: any = {\r\n decimalPlaces : 2,\r\n minimumValue : 0,\r\n maximumValue : '999999999.99',\r\n emptyInputBehavior: 'focus'\r\n };\r\n\r\n async bind() {\r\n super.bind();\r\n\r\n if (!this.question.currentResponse.gridResponses) {\r\n this.question.currentResponse.gridResponses = [];\r\n }\r\n\r\n this.question.currentResponse.gridTypeCode = 'DRIVING_OFFENCE_CONVICTION_HISTORY';\r\n\r\n if (this.question.questionAttributes.length > 0) {\r\n for (const attribute of this.question.questionAttributes) {\r\n if (attribute.attributeName === 'Capture Driver Name') {\r\n this.captureDriverName = attribute.attributeValue === 'Yes';\r\n } else if (attribute.attributeName === 'Capture Penalty Imposed') {\r\n this.capturePenaltyImposed = attribute.attributeValue === 'Yes';\r\n } else if (attribute.attributeName === 'Capture Fine Amount') {\r\n this.captureFineAmount = attribute.attributeValue === 'Yes';\r\n } else if (attribute.attributeName === 'Capture Imprisonment / Detention Period') {\r\n this.captureImprisonmentDetentionPeriod = attribute.attributeValue === 'Yes';\r\n } else if (attribute.attributeName === 'Offence Type Key') {\r\n this.offenceType = attribute.attributeValue;\r\n }\r\n }\r\n }\r\n\r\n const offenceTypesEndpoint = environment.refData.offenceTypes;\r\n const penaltiesImposedEndpoint = environment.refData.penaltiesImposed;\r\n\r\n const offenceTypesUri = offenceTypesEndpoint.uri([610000054, this.offenceType]);\r\n const penaltiesImposedUri = penaltiesImposedEndpoint.uri([610000054]);\r\n\r\n const offenceTypes = await this.http.fetch(offenceTypesUri, { method: offenceTypesEndpoint.method });\r\n const penaltiesImposed = await this.http.fetch(penaltiesImposedUri, { method: penaltiesImposedEndpoint.method });\r\n\r\n if (offenceTypes.ok) {\r\n this.offenceTypes = await offenceTypes.json();\r\n }\r\n\r\n if (penaltiesImposed.ok) {\r\n this.penaltiesImposed = await penaltiesImposed.json();\r\n }\r\n }\r\n\r\n fieldChanged(isInput = false, claim?) {\r\n this.taskQueue.queueTask(() => {\r\n super.fieldChanged(isInput);\r\n\r\n if (this.question.currentResponse.gridResponses.length) {\r\n // Any value item\r\n const currentWorkflowItem = this.question.questionFlow.find(q => q.responseTypeId === 600000001);\r\n\r\n this.question.currentResponse.responsePresent = true;\r\n this.question.currentResponse = { ...this.question.currentResponse, ...currentWorkflowItem };\r\n } else {\r\n const currentWorkflowItem = this.question.questionFlow.find(q => q.responseTypeId === -1);\r\n\r\n this.question.currentResponse.responsePresent = false;\r\n this.question.currentResponse = { ...this.question.currentResponse, ...currentWorkflowItem };\r\n }\r\n\r\n this.context.fieldChanged(this.question, this.group);\r\n });\r\n }\r\n\r\n offenceMatcher = (a, b) => {\r\n if (a && b) {\r\n return parseInt(a) === parseInt(b);\r\n }\r\n }\r\n\r\n penaltyMatcher = (a, b) => {\r\n if (a && b) {\r\n return parseInt(a) === parseInt(b);\r\n }\r\n }\r\n\r\n private deleteItem(index: number) {\r\n if (index >= 0) {\r\n this.question.currentResponse.gridResponses.splice(index, 1);\r\n }\r\n\r\n this.fieldChanged();\r\n }\r\n\r\n private addItem() {\r\n if (!Array.isArray(this.question.currentResponse.gridResponses)) {\r\n this.question.currentResponse.gridResponses = [];\r\n }\r\n\r\n this.question.currentResponse.gridResponses.push(new DrivingOffenceConvictionHistoryModel({}) as unknown as IQceGridResponse);\r\n\r\n this.fieldChanged();\r\n }\r\n}\r\n","// extracted by mini-css-extract-plugin\nexport default {\"btn\":\"btn____Zoeia\",\"btn--flat\":\"btn--flat____HuVMV btn____Zoeia\",\"btn--submit\":\"btn--submit____CEic9 btn____Zoeia\",\"btn--delete\":\"btn--delete____v4grf btn____Zoeia\",\"btn--link\":\"btn--link____FOlOE btn____Zoeia\",\"btn--inline-text-link\":\"btn--inline-text-link____AnJXC btn--link____FOlOE btn____Zoeia\",\"btn--footer\":\"btn--footer____H4MXi btn____Zoeia\",\"btn--footer-submit\":\"btn--footer-submit____UyUOK btn--submit____CEic9 btn____Zoeia btn--footer____H4MXi btn____Zoeia\",\"btn--footer-cancel\":\"btn--footer-cancel____Xsai6\",\"btn--footer---cancel\":\"btn--footer---cancel____tmGuv\",\"btn--footer-delete\":\"btn--footer-delete____xN9_U btn--delete____v4grf btn____Zoeia btn--footer____H4MXi btn____Zoeia\",\"btn--qce-dropdown\":\"btn--qce-dropdown____VujgH btn--footer-submit____UyUOK btn--submit____CEic9 btn____Zoeia btn--footer____H4MXi btn____Zoeia\",\"btn--footer-combo\":\"btn--footer-combo____xjqOP btn--footer____H4MXi btn____Zoeia\",\"btn--lmi-bicalc\":\"btn--lmi-bicalc____t4898 btn____Zoeia\",\"btn--lmi-risk\":\"btn--lmi-risk____f5PZ8 btn____Zoeia\",\"btn--lmi-policy-comparison\":\"btn--lmi-policy-comparison____vn2QJ btn____Zoeia\",\"btn--lmi-policy-coach\":\"btn--lmi-policy-coach____wx0ht btn____Zoeia\",\"btn--andrew-nock\":\"btn--andrew-nock____JSRo4 btn____Zoeia\",\"btn--construction-cost-consultants\":\"btn--construction-cost-consultants____vOtnC btn____Zoeia\",\"btn--5-star\":\"btn--5-star____HwJT_ btn____Zoeia\",\"btn--thermoscan\":\"btn--thermoscan____MbFzE btn____Zoeia\",\"btn--risk-survey-services\":\"btn--risk-survey-services____MbxgJ btn____Zoeia\",\"btn--risk-management\":\"btn--risk-management____GNv69 btn____Zoeia\",\"btn--lmi-bicalc--disabled\":\"btn--lmi-bicalc--disabled____y6khT btn--lmi-bicalc____t4898 btn____Zoeia\",\"btn--lmi-risk--disabled\":\"btn--lmi-risk--disabled____ZR9zK btn--lmi-risk____f5PZ8 btn____Zoeia\",\"btn--lmi-policy-comparison--disabled\":\"btn--lmi-policy-comparison--disabled____fEZGy btn--lmi-policy-comparison____vn2QJ btn____Zoeia\",\"btn--initial-insured-location-risk\":\"btn--initial-insured-location-risk____vbVxm btn--flat____HuVMV btn____Zoeia btn____Zoeia\",\"btn--icon\":\"btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-no-border\":\"btn--icon-no-border____vFdjx\",\"btn--icon-add\":\"btn--icon-add____ULyGd btn--icon____E5qnQ btn____Zoeia\",\"btn--add-risk\":\"btn--add-risk____PPmRJ btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-close\":\"btn--icon-close____P3KPt\",\"task-access-modal__close\":\"task-access-modal__close____G6YMN\",\"btn--icon-delete\":\"btn--icon-delete____L07aD btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-download\":\"btn--icon-download____p_alT btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-edit\":\"btn--icon-edit____X8l1N btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-email\":\"btn--icon-email____X5o67 btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-download-email\":\"btn--icon-download-email____mTe8w btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-folder\":\"btn--icon-folder____R2D_V btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-folder-locked\":\"btn--icon-folder-locked____cYHk7 btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-folder-locked-active\":\"btn--icon-folder-locked-active____BSAFO btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-history\":\"btn--icon-history____pGLk7 btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-info\":\"btn--icon-info____ox7oR btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-task\":\"btn--icon-task____nFfL4 btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-link\":\"btn--icon-link____RPGEF btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-unlink\":\"btn--icon-unlink____jbk51 btn--icon-delete____L07aD btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-map\":\"btn--icon-map____vBKip btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-more\":\"btn--icon-more____VTNcB btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-open-in-new-window\":\"btn--icon-open-in-new-window____Z_Pzg btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-favourite--selected\":\"btn--icon-favourite--selected____LNixg btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-favourite--deselected\":\"btn--icon-favourite--deselected____oPOrP btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-preview\":\"btn--icon-preview____pLxlG btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-pre-printed\":\"btn--icon-pre-printed____ZBr8W btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-print\":\"btn--icon-print____ygDF5 btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-save\":\"btn--icon-save____GMYiV btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-settings\":\"btn--icon-settings____UORlR btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-show-details\":\"btn--icon-show-details____iLl3J btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-show-details--alert\":\"btn--icon-show-details--alert____llIJu btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-show-summary\":\"btn--icon-show-summary____ECZ0w btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-attachment\":\"btn--icon-attachment____qR3ve btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-tag\":\"btn--icon-tag____NRBtW btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-undo\":\"btn--icon-undo____L92Ha btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-sync\":\"btn--icon-sync____OGpNZ btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-arrow-forward\":\"btn--icon-arrow-forward____NoY2f btn--icon____E5qnQ btn____Zoeia\",\"btn--aside-collapse\":\"btn--aside-collapse____nWAVW btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-expand-more\":\"btn--icon-expand-more____QaC31 btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-expand-less\":\"btn--icon-expand-less_____IV8x btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-general\":\"btn--icon-general____Gg2PL btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-sales\":\"btn--icon-sales____B5sFA btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-branch\":\"btn--icon-branch____Tew5E btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-contact\":\"btn--icon-contact____YXjPS btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-consent\":\"btn--icon-consent____NBTOV btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-questions\":\"btn--icon-questions____zeNY0 btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-associated\":\"btn--icon-associated____TES8e btn--icon____E5qnQ btn____Zoeia\",\"btn--icon-notes\":\"btn--icon-notes____BStqA btn--icon____E5qnQ btn____Zoeia\",\"btn--back\":\"btn--back____YKAgS\",\"btn--back-to-sign-in\":\"btn--back-to-sign-in____QawWU btn--back____YKAgS\",\"btn--icon-advanced-search\":\"btn--icon-advanced-search____ApvO_ btn--icon____E5qnQ btn____Zoeia\",\"btn--wizard\":\"btn--wizard____PB8Fv btn____Zoeia\",\"btn--wizard-back\":\"btn--wizard-back____IjUPk btn--wizard____PB8Fv btn____Zoeia\",\"btn--wizard-next\":\"btn--wizard-next____eevG7 btn--wizard____PB8Fv btn____Zoeia\",\"task-delete-confirm-modal__delete\":\"task-delete-confirm-modal__delete____ls6Ab\",\"task-delete-confirm-modal__cancel\":\"task-delete-confirm-modal__cancel____I5ZEU\",\"button-options\":\"button-options____ZcbJ0\",\"cancel\":\"cancel____axoY9\",\"tasksubmit\":\"tasksubmit____S3Jrx\",\"forgotPasswordBtn\":\"forgotPasswordBtn____euPqC\",\"show-complet-tasks\":\"show-complet-tasks____X3ddO\",\"card\":\"card____mZp3e\",\"card-content\":\"card-content____L2aDO\",\"card-heading\":\"card-heading____LA_8e\",\"control-group\":\"control-group____v7nFG\",\"label-group\":\"label-group____o5x_7\",\"label-group-item\":\"label-group-item____o4nqY\",\"constrained-width\":\"constrained-width____e_Htd\",\"button-group\":\"button-group____gpsjQ\",\"card--alert\":\"card--alert____tdLmo card____mZp3e\",\"card-heading--alert\":\"card-heading--alert____h2aqs card-heading____LA_8e\",\"card--status-message\":\"card--status-message____C9i9J\",\"card--status-message--left\":\"card--status-message--left____XwuHa card--status-message____C9i9J\",\"card-heading--sticky-header\":\"card-heading--sticky-header____k2hvI\",\"card-heading--no-icon\":\"card-heading--no-icon____SmCkq card-heading____LA_8e\",\"card-heading--bold-title\":\"card-heading--bold-title____vV_WK\",\"bg-blue-sky\":\"bg-blue-sky____dtwZX\",\"card-heading--advanced-search-results\":\"card-heading--advanced-search-results____cNt0e\",\"fieldset\":\"fieldset____xZQuw\",\"fieldset-instruction\":\"fieldset-instruction____jnkp2\",\"fieldset--no-padding\":\"fieldset--no-padding____P7Exo fieldset____xZQuw\",\"fieldset--alt\":\"fieldset--alt____nCrzW fieldset____xZQuw\",\"input-search\":\"input-search____BR6dk\",\"view-password\":\"view-password____PYFza\",\"ia-currency-input\":\"ia-currency-input____FZwFN\",\"ia-currency-negative\":\"ia-currency-negative____iETRo\",\"select--mini\":\"select--mini____DwZII\",\"required-label\":\"required-label____I5X3c\",\"alert\":\"alert____Fgwzw\",\"alert--important\":\"alert--important____ft7Vd\",\"input-label\":\"input-label____KZlPw\",\"w-100\":\"w-100____k6ESv\",\"search-input-wrapper\":\"search-input-wrapper____tmI2U\",\"search-input--results\":\"search-input--results____VaTPd\",\"search-input--result\":\"search-input--result____E6KCf\",\"search-input--result--highlighted\":\"search-input--result--highlighted____vXOkD\",\"date-range-selections\":\"date-range-selections____pdLGK\",\"date-arrow-forward\":\"date-arrow-forward____S5pGn\",\"qce-dropdown\":\"qce-dropdown____GwQUP\",\"qce-or\":\"qce-or____PK1V_\",\"qce-dropdown-with-dropdown\":\"qce-dropdown-with-dropdown____w8YBm\",\"qce-vehicle-registration-search\":\"qce-vehicle-registration-search____kXPTn\",\"row-gap\":\"row-gap____WmcCQ\",\"row-group\":\"row-group____rFynR\",\"row-group--three\":\"row-group--three____N1bo4 row-group____rFynR\",\"grid-14\":\"grid-14____j0mTV\",\"row-group--auto\":\"row-group--auto____qfT8R row-group____rFynR\",\"space\":\"space____0iB2F\",\"display-none--lg\":\"display-none--lg____lCFPc\",\"display-none--md\":\"display-none--md____aic2e\",\"table\":\"table____uAHxD\",\"table-heading-row\":\"table-heading-row____U3qtP\",\"table-row\":\"table-row____hXY7J\",\"table-result-row\":\"table-result-row____JjBvz\",\"break-word\":\"break-word____VyNVa\",\"no-wrap\":\"no-wrap____Zzfmi\",\"table-result-row--disabled\":\"table-result-row--disabled____yxrYR\",\"table-modal\":\"table-modal____yJt2j table____uAHxD\",\"table-enhanced\":\"table-enhanced____X54C8\",\"table--no-border-bottom\":\"table--no-border-bottom____aijuz table____uAHxD\",\"height-45\":\"height-45____U0IQD\",\"edit-column\":\"edit-column____cjpKR\",\"delete-column\":\"delete-column____Mv4vY\",\"date-table-heading\":\"date-table-heading____YXdSY\",\"button-edit\":\"button-edit____ujXMD\",\"button-delete\":\"button-delete____bsGA8\",\"table-row-selected\":\"table-row-selected____P2Odc\",\"table-row-alert\":\"table-row-alert____CvJkJ\",\"table-filter-row\":\"table-filter-row____oBHaJ\",\"table-filter-row--endcap\":\"table-filter-row--endcap____MeXZL\",\"filter-column\":\"filter-column____TM2Zk\",\"table-pagination\":\"table-pagination____zDotj\",\"table-pagination-with-filter\":\"table-pagination-with-filter____KbMvq table-pagination____zDotj\",\"table-button-group\":\"table-button-group____OiCab\",\"table-child-container\":\"table-child-container____avBMa\",\"table-child-card\":\"table-child-card____QvNuU\",\"child-table--selected-row\":\"child-table--selected-row____nK07O\",\"child-table\":\"child-table____gJSPS table____uAHxD\",\"custom-pagination\":\"custom-pagination____zFR0o\",\"pagination-count\":\"pagination-count____NIDaw\",\"pagination-button\":\"pagination-button____FbtlW btn____Zoeia\",\"pagination-prev\":\"pagination-prev____TsN5G pagination-button____FbtlW btn____Zoeia\",\"pagination-next\":\"pagination-next____L59zH pagination-button____FbtlW btn____Zoeia\",\"pagination-disabled\":\"pagination-disabled____BZaae pagination-button____FbtlW btn____Zoeia\",\"pagination-prev-disabled\":\"pagination-prev-disabled_____puIo pagination-disabled____BZaae pagination-button____FbtlW btn____Zoeia\",\"pagination-next-disabled\":\"pagination-next-disabled____EVcpc pagination-disabled____BZaae pagination-button____FbtlW btn____Zoeia\",\"pagination\":\"pagination____cZnh7\",\"pagination-top\":\"pagination-top____SaD5P pagination____cZnh7\",\"pagination-bottom\":\"pagination-bottom____Up6fc pagination____cZnh7\",\"pagination-bottom--documents\":\"pagination-bottom--documents____peAnV pagination-bottom____Up6fc pagination____cZnh7\",\"table-cell-btn-icon\":\"table-cell-btn-icon____iVsl3\",\"folder-table\":\"folder-table____LMz1D table--no-border-bottom____aijuz table____uAHxD\",\"doc-table-group--heading\":\"doc-table-group--heading____RHeZV\",\"doc-table-group--heading-open\":\"doc-table-group--heading-open____Z_t_w doc-table-group--heading____RHeZV\",\"doc-table-group--heading-with-options\":\"doc-table-group--heading-with-options____wq5Xs\",\"constrained-width--folder-name\":\"constrained-width--folder-name____VSfHL constrained-width____e_Htd\",\"disable-entity\":\"disable-entity____zlo1a\",\"button-options--add\":\"button-options--add____mn4sL button-options____ZcbJ0\",\"information-icon\":\"information-icon____PAqfG\",\"deleted-icon\":\"deleted-icon____seaA3\",\"exclamation-icon\":\"exclamation-icon____rmqPG\",\"success-icon\":\"success-icon____DUTxc\",\"text-align-center\":\"text-align-center____jWxLe\",\"word-break\":\"word-break____cj2NM\",\"btn-group\":\"btn-group____xa0Gc\",\"accordion-content\":\"accordion-content____qlGBO\",\"toggle-collapse\":\"toggle-collapse____vKB8S\",\"toggle-collapse--disabled\":\"toggle-collapse--disabled____CE7Ax toggle-collapse____vKB8S\",\"toggle-expand\":\"toggle-expand____VuobL toggle-collapse____vKB8S\",\"folder\":\"folder____ji1MY\",\"folder-locked\":\"folder-locked_____2aTp folder____ji1MY\",\"yesNo-filter-width\":\"yesNo-filter-width____qkqKO\",\"w-5\":\"w-5____Zmu34\",\"w-10\":\"w-10____R0fRc\",\"w-15\":\"w-15____w7RJn\",\"w-20\":\"w-20____csr7H\",\"w-25\":\"w-25____AhMr6\",\"w-30\":\"w-30____Afh6y\",\"w-35\":\"w-35____C6AkX\",\"w-40\":\"w-40____vWrnz\",\"w-45\":\"w-45____Tvtuz\",\"w-50\":\"w-50____ygba0\",\"w-60\":\"w-60____mPFwd\",\"table--sticky-header\":\"table--sticky-header____q97iu\",\"table--sticky-footer\":\"table--sticky-footer____mSGaQ\",\"table--sticky-column\":\"table--sticky-column____rzgty\",\"table--sticky-column2\":\"table--sticky-column2____u5NMw table--sticky-column____rzgty\",\"table--sticky-column-right\":\"table--sticky-column-right____pHseJ table--sticky-column____rzgty\",\"scrollable-table-container\":\"scrollable-table-container____viu0I\",\"task-options-modal\":\"task-options-modal____hSH_a\",\"recent-link-name\":\"recent-link-name____qfWCI\"};","import { generateGuidString } from 'resources/utilities/insecure-guid';\r\nimport { ComponentBase } from '../component-base';\r\nimport { customElement } from 'aurelia-framework';\r\nimport { environment } from 'environment';\r\n\r\n// DisplayTypeId 610000053\r\n\r\nimport styles from './drug-alcohol-disqualification-history.css';\r\nimport { IQceGridResponse } from '../../qce-typings';\r\nimport moment from 'moment';\r\n\r\nclass DrugAlcoholDisqualificationHistoryModel {\r\n private Guid = generateGuidString();\r\n private Id = null;\r\n private DateOfOffence = null;\r\n private DriverName = null;\r\n private FineAmount = null;\r\n private DrugAlcoholTypeId = null;\r\n private PenaltyDetail = null;\r\n private PenaltyImposedId = null;\r\n private PeriodImprisonmentPeriodicDetention = null;\r\n\r\n constructor(model: any) {\r\n Object.assign(this, model);\r\n }\r\n}\r\n\r\n@customElement('drug-alcohol-disqualification-history')\r\nexport class DrugAlcoholDisqualificationHistory extends ComponentBase {\r\n\r\n private styles = styles;\r\n private drugAlcoholTypes = [];\r\n private penaltiesImposed = [];\r\n\r\n // private inputMaskOptions: any = {\r\n // alias: 'currency',\r\n // digits: 2,\r\n // max: '999999999.99',\r\n // clearMaskOnLostFocus: true,\r\n // };\r\n\r\n private inputMaskOptions: any = {\r\n decimalPlaces : 2,\r\n minimumValue : 0,\r\n maximumValue : '999999999.99',\r\n emptyInputBehavior: 'focus'\r\n };\r\n\r\n async bind() {\r\n super.bind();\r\n\r\n if (!this.question.currentResponse.gridResponses) {\r\n this.question.currentResponse.gridResponses = [];\r\n }\r\n\r\n this.question.currentResponse.gridTypeCode = 'DRUG_ALCOHOL_DISQUALIFICATION_HISTORY';\r\n\r\n const drugAlcoholTypeEndpoint = environment.refData.drugAlcoholType;\r\n const penaltiesImposedEndpoint = environment.refData.penaltiesImposed;\r\n\r\n const drugAlcoholTypeUri = drugAlcoholTypeEndpoint.uri();\r\n const penaltiesImposedUri = penaltiesImposedEndpoint.uri([610000053]);\r\n\r\n const drugAlcoholTypes = await this.http.fetch(drugAlcoholTypeUri, { method: drugAlcoholTypeEndpoint.method });\r\n const penaltiesImposed = await this.http.fetch(penaltiesImposedUri, { method: penaltiesImposedEndpoint.method });\r\n\r\n if (drugAlcoholTypes.ok) {\r\n this.drugAlcoholTypes = await drugAlcoholTypes.json();\r\n }\r\n\r\n if (penaltiesImposed.ok) {\r\n this.penaltiesImposed = await penaltiesImposed.json();\r\n }\r\n }\r\n\r\n fieldChanged(isInput = false, claim?) {\r\n this.taskQueue.queueTask(() => {\r\n super.fieldChanged(isInput);\r\n\r\n if (this.question.currentResponse.gridResponses.length) {\r\n // Any value item\r\n const currentWorkflowItem = this.question.questionFlow.find(q => q.responseTypeId === 600000001);\r\n\r\n this.question.currentResponse.responsePresent = true;\r\n this.question.currentResponse = { ...this.question.currentResponse, ...currentWorkflowItem };\r\n } else {\r\n const currentWorkflowItem = this.question.questionFlow.find(q => q.responseTypeId === -1);\r\n\r\n this.question.currentResponse.responsePresent = false;\r\n this.question.currentResponse = { ...this.question.currentResponse, ...currentWorkflowItem };\r\n }\r\n\r\n this.context.fieldChanged(this.question, this.group);\r\n });\r\n }\r\n\r\n drugAlcoholTypesMatcher = (a, b) => {\r\n if (a && b) {\r\n return parseInt(a) === parseInt(b);\r\n }\r\n }\r\n\r\n penaltyMatcher = (a, b) => {\r\n if (a && b) {\r\n return parseInt(a) === parseInt(b);\r\n }\r\n }\r\n\r\n private deleteItem(index: number) {\r\n if (index >= 0) {\r\n this.question.currentResponse.gridResponses.splice(index, 1);\r\n }\r\n\r\n this.fieldChanged();\r\n }\r\n\r\n private addItem() {\r\n if (!Array.isArray(this.question.currentResponse.gridResponses)) {\r\n this.question.currentResponse.gridResponses = [];\r\n }\r\n\r\n this.question.currentResponse.gridResponses.push(new DrugAlcoholDisqualificationHistoryModel({}) as unknown as IQceGridResponse);\r\n\r\n this.fieldChanged();\r\n }\r\n}\r\n","// extracted by mini-css-extract-plugin\nexport default {\"btn\":\"btn____yMnOd\",\"btn--flat\":\"btn--flat____e6X4l btn____yMnOd\",\"btn--submit\":\"btn--submit____TLBiH btn____yMnOd\",\"btn--delete\":\"btn--delete____zFPpG btn____yMnOd\",\"btn--link\":\"btn--link____aXcTi btn____yMnOd\",\"btn--inline-text-link\":\"btn--inline-text-link____WATDU btn--link____aXcTi btn____yMnOd\",\"btn--footer\":\"btn--footer____yEDb5 btn____yMnOd\",\"btn--footer-submit\":\"btn--footer-submit____jn2lv btn--submit____TLBiH btn____yMnOd btn--footer____yEDb5 btn____yMnOd\",\"btn--footer-cancel\":\"btn--footer-cancel____u6zzK\",\"btn--footer---cancel\":\"btn--footer---cancel____b1pTt\",\"btn--footer-delete\":\"btn--footer-delete____zu90y btn--delete____zFPpG btn____yMnOd btn--footer____yEDb5 btn____yMnOd\",\"btn--qce-dropdown\":\"btn--qce-dropdown____V_lme btn--footer-submit____jn2lv btn--submit____TLBiH btn____yMnOd btn--footer____yEDb5 btn____yMnOd\",\"btn--footer-combo\":\"btn--footer-combo____dE_V7 btn--footer____yEDb5 btn____yMnOd\",\"btn--lmi-bicalc\":\"btn--lmi-bicalc____DeMTL btn____yMnOd\",\"btn--lmi-risk\":\"btn--lmi-risk____k2JBt btn____yMnOd\",\"btn--lmi-policy-comparison\":\"btn--lmi-policy-comparison____CuaGW btn____yMnOd\",\"btn--lmi-policy-coach\":\"btn--lmi-policy-coach____r4V3Q btn____yMnOd\",\"btn--andrew-nock\":\"btn--andrew-nock____Q2TJ4 btn____yMnOd\",\"btn--construction-cost-consultants\":\"btn--construction-cost-consultants____OEWmf btn____yMnOd\",\"btn--5-star\":\"btn--5-star____AYJqG btn____yMnOd\",\"btn--thermoscan\":\"btn--thermoscan____lz9N6 btn____yMnOd\",\"btn--risk-survey-services\":\"btn--risk-survey-services____xDXRM btn____yMnOd\",\"btn--risk-management\":\"btn--risk-management____avPQE btn____yMnOd\",\"btn--lmi-bicalc--disabled\":\"btn--lmi-bicalc--disabled____L54nh btn--lmi-bicalc____DeMTL btn____yMnOd\",\"btn--lmi-risk--disabled\":\"btn--lmi-risk--disabled____qJJiK btn--lmi-risk____k2JBt btn____yMnOd\",\"btn--lmi-policy-comparison--disabled\":\"btn--lmi-policy-comparison--disabled____QDYSu btn--lmi-policy-comparison____CuaGW btn____yMnOd\",\"btn--initial-insured-location-risk\":\"btn--initial-insured-location-risk____jyZY6 btn--flat____e6X4l btn____yMnOd btn____yMnOd\",\"btn--icon\":\"btn--icon____sR83b btn____yMnOd\",\"btn--icon-no-border\":\"btn--icon-no-border____H6RSr\",\"btn--icon-add\":\"btn--icon-add____SLo9E btn--icon____sR83b btn____yMnOd\",\"btn--add-risk\":\"btn--add-risk____SocPR btn--icon____sR83b btn____yMnOd\",\"btn--icon-close\":\"btn--icon-close____ELwhJ\",\"task-access-modal__close\":\"task-access-modal__close____lmcQY\",\"btn--icon-delete\":\"btn--icon-delete____tPca0 btn--icon____sR83b btn____yMnOd\",\"btn--icon-download\":\"btn--icon-download____qj8EP btn--icon____sR83b btn____yMnOd\",\"btn--icon-edit\":\"btn--icon-edit____Uj_Pp btn--icon____sR83b btn____yMnOd\",\"btn--icon-email\":\"btn--icon-email____OSLYc btn--icon____sR83b btn____yMnOd\",\"btn--icon-download-email\":\"btn--icon-download-email____UD6ju btn--icon____sR83b btn____yMnOd\",\"btn--icon-folder\":\"btn--icon-folder____KNPQh btn--icon____sR83b btn____yMnOd\",\"btn--icon-folder-locked\":\"btn--icon-folder-locked____EZwEb btn--icon____sR83b btn____yMnOd\",\"btn--icon-folder-locked-active\":\"btn--icon-folder-locked-active____C_qAz btn--icon____sR83b btn____yMnOd\",\"btn--icon-history\":\"btn--icon-history____Gsprm btn--icon____sR83b btn____yMnOd\",\"btn--icon-info\":\"btn--icon-info____FV2dl btn--icon____sR83b btn____yMnOd\",\"btn--icon-task\":\"btn--icon-task____sblPC btn--icon____sR83b btn____yMnOd\",\"btn--icon-link\":\"btn--icon-link____bbABt btn--icon____sR83b btn____yMnOd\",\"btn--icon-unlink\":\"btn--icon-unlink____IRxZt btn--icon-delete____tPca0 btn--icon____sR83b btn____yMnOd\",\"btn--icon-map\":\"btn--icon-map____Bpz2q btn--icon____sR83b btn____yMnOd\",\"btn--icon-more\":\"btn--icon-more____cRMo4 btn--icon____sR83b btn____yMnOd\",\"btn--icon-open-in-new-window\":\"btn--icon-open-in-new-window____ZbLQe btn--icon____sR83b btn____yMnOd\",\"btn--icon-favourite--selected\":\"btn--icon-favourite--selected____qXen6 btn--icon____sR83b btn____yMnOd\",\"btn--icon-favourite--deselected\":\"btn--icon-favourite--deselected____vRsoJ btn--icon____sR83b btn____yMnOd\",\"btn--icon-preview\":\"btn--icon-preview____Egl3U btn--icon____sR83b btn____yMnOd\",\"btn--icon-pre-printed\":\"btn--icon-pre-printed____uE510 btn--icon____sR83b btn____yMnOd\",\"btn--icon-print\":\"btn--icon-print____BfVfM btn--icon____sR83b btn____yMnOd\",\"btn--icon-save\":\"btn--icon-save____RcE4k btn--icon____sR83b btn____yMnOd\",\"btn--icon-settings\":\"btn--icon-settings____OQ0Sz btn--icon____sR83b btn____yMnOd\",\"btn--icon-show-details\":\"btn--icon-show-details____FtD4R btn--icon____sR83b btn____yMnOd\",\"btn--icon-show-details--alert\":\"btn--icon-show-details--alert____ZXI0I btn--icon____sR83b btn____yMnOd\",\"btn--icon-show-summary\":\"btn--icon-show-summary____h6J0S btn--icon____sR83b btn____yMnOd\",\"btn--icon-attachment\":\"btn--icon-attachment____Y05hn btn--icon____sR83b btn____yMnOd\",\"btn--icon-tag\":\"btn--icon-tag____i9QZv btn--icon____sR83b btn____yMnOd\",\"btn--icon-undo\":\"btn--icon-undo____UPaB0 btn--icon____sR83b btn____yMnOd\",\"btn--icon-sync\":\"btn--icon-sync____zjanY btn--icon____sR83b btn____yMnOd\",\"btn--icon-arrow-forward\":\"btn--icon-arrow-forward____m8w7j btn--icon____sR83b btn____yMnOd\",\"btn--aside-collapse\":\"btn--aside-collapse____Ot0cT btn--icon____sR83b btn____yMnOd\",\"btn--icon-expand-more\":\"btn--icon-expand-more____dnKk7 btn--icon____sR83b btn____yMnOd\",\"btn--icon-expand-less\":\"btn--icon-expand-less____riUUK btn--icon____sR83b btn____yMnOd\",\"btn--icon-general\":\"btn--icon-general____Utryu btn--icon____sR83b btn____yMnOd\",\"btn--icon-sales\":\"btn--icon-sales____FAifC btn--icon____sR83b btn____yMnOd\",\"btn--icon-branch\":\"btn--icon-branch____JBWC3 btn--icon____sR83b btn____yMnOd\",\"btn--icon-contact\":\"btn--icon-contact____T9TuG btn--icon____sR83b btn____yMnOd\",\"btn--icon-consent\":\"btn--icon-consent____c2vwX btn--icon____sR83b btn____yMnOd\",\"btn--icon-questions\":\"btn--icon-questions____EwzXH btn--icon____sR83b btn____yMnOd\",\"btn--icon-associated\":\"btn--icon-associated____WSeJi btn--icon____sR83b btn____yMnOd\",\"btn--icon-notes\":\"btn--icon-notes____RrwH_ btn--icon____sR83b btn____yMnOd\",\"btn--back\":\"btn--back____tTOVi\",\"btn--back-to-sign-in\":\"btn--back-to-sign-in____n8MjP btn--back____tTOVi\",\"btn--icon-advanced-search\":\"btn--icon-advanced-search____kX_7c btn--icon____sR83b btn____yMnOd\",\"btn--wizard\":\"btn--wizard____MvkKj btn____yMnOd\",\"btn--wizard-back\":\"btn--wizard-back____rUR3X btn--wizard____MvkKj btn____yMnOd\",\"btn--wizard-next\":\"btn--wizard-next____gTpBH btn--wizard____MvkKj btn____yMnOd\",\"task-delete-confirm-modal__delete\":\"task-delete-confirm-modal__delete____wRqJ3\",\"task-delete-confirm-modal__cancel\":\"task-delete-confirm-modal__cancel____xs8LU\",\"button-options\":\"button-options____I6W9_\",\"cancel\":\"cancel____cnUTk\",\"tasksubmit\":\"tasksubmit____eeEXt\",\"forgotPasswordBtn\":\"forgotPasswordBtn____xDODV\",\"show-complet-tasks\":\"show-complet-tasks____ADyjW\",\"card\":\"card____UJ6jb\",\"card-content\":\"card-content____clrFq\",\"card-heading\":\"card-heading____bs08v\",\"control-group\":\"control-group____ABQeI\",\"label-group\":\"label-group____D1qek\",\"label-group-item\":\"label-group-item____QmMgL\",\"constrained-width\":\"constrained-width____HHSSq\",\"button-group\":\"button-group____u4Lpk\",\"card--alert\":\"card--alert____TyV6H card____UJ6jb\",\"card-heading--alert\":\"card-heading--alert____tIiiw card-heading____bs08v\",\"card--status-message\":\"card--status-message____OgsCk\",\"card--status-message--left\":\"card--status-message--left____qUhe3 card--status-message____OgsCk\",\"card-heading--sticky-header\":\"card-heading--sticky-header____SeHNK\",\"card-heading--no-icon\":\"card-heading--no-icon____Etxdi card-heading____bs08v\",\"card-heading--bold-title\":\"card-heading--bold-title____IGgwQ\",\"bg-blue-sky\":\"bg-blue-sky____aNMD4\",\"card-heading--advanced-search-results\":\"card-heading--advanced-search-results____DAKMh\",\"fieldset\":\"fieldset____ipicR\",\"fieldset-instruction\":\"fieldset-instruction____F3ZQI\",\"fieldset--no-padding\":\"fieldset--no-padding____urF_S fieldset____ipicR\",\"fieldset--alt\":\"fieldset--alt____cBw5P fieldset____ipicR\",\"input-search\":\"input-search____tKqWt\",\"view-password\":\"view-password____rabDw\",\"ia-currency-input\":\"ia-currency-input____fBaa8\",\"ia-currency-negative\":\"ia-currency-negative____aC25n\",\"select--mini\":\"select--mini____hYGIx\",\"required-label\":\"required-label____aj3Ws\",\"alert\":\"alert____ayQML\",\"alert--important\":\"alert--important____jJR2_\",\"input-label\":\"input-label____U7O_r\",\"w-100\":\"w-100____qk8ZX\",\"search-input-wrapper\":\"search-input-wrapper_____rZJ8\",\"search-input--results\":\"search-input--results____snt5L\",\"search-input--result\":\"search-input--result____Ek334\",\"search-input--result--highlighted\":\"search-input--result--highlighted____CwmOC\",\"date-range-selections\":\"date-range-selections____wNKyr\",\"date-arrow-forward\":\"date-arrow-forward____vVkzS\",\"qce-dropdown\":\"qce-dropdown____h6NXU\",\"qce-or\":\"qce-or____bsfVb\",\"qce-dropdown-with-dropdown\":\"qce-dropdown-with-dropdown_____8qBx\",\"qce-vehicle-registration-search\":\"qce-vehicle-registration-search____SvXgQ\",\"row-gap\":\"row-gap____Mk_j_\",\"row-group\":\"row-group____DBNqY\",\"row-group--three\":\"row-group--three____ZtvPe row-group____DBNqY\",\"grid-14\":\"grid-14____nOShv\",\"row-group--auto\":\"row-group--auto____Bz4Z3 row-group____DBNqY\",\"space\":\"space____iGpef\",\"display-none--lg\":\"display-none--lg____BEMmN\",\"display-none--md\":\"display-none--md____xt24R\",\"table\":\"table____wJ3Ve\",\"table-heading-row\":\"table-heading-row____pxTqF\",\"table-row\":\"table-row____HLobY\",\"table-result-row\":\"table-result-row____EEJ61\",\"break-word\":\"break-word____EhFTb\",\"no-wrap\":\"no-wrap____ZWG7T\",\"table-result-row--disabled\":\"table-result-row--disabled____AWiW3\",\"table-modal\":\"table-modal____lfIuX table____wJ3Ve\",\"table-enhanced\":\"table-enhanced____L3ASv\",\"table--no-border-bottom\":\"table--no-border-bottom____fMCue table____wJ3Ve\",\"height-45\":\"height-45____Ab6Hd\",\"edit-column\":\"edit-column____ZM9hb\",\"delete-column\":\"delete-column____FaoFE\",\"date-table-heading\":\"date-table-heading____HBxCZ\",\"button-edit\":\"button-edit____Lvkbi\",\"button-delete\":\"button-delete____oRJ6p\",\"table-row-selected\":\"table-row-selected____kxxe_\",\"table-row-alert\":\"table-row-alert____A3zE_\",\"table-filter-row\":\"table-filter-row____xE2xs\",\"table-filter-row--endcap\":\"table-filter-row--endcap____HgmGd\",\"filter-column\":\"filter-column____NlWin\",\"table-pagination\":\"table-pagination____KtDkp\",\"table-pagination-with-filter\":\"table-pagination-with-filter____HEMA9 table-pagination____KtDkp\",\"table-button-group\":\"table-button-group____RtvRX\",\"table-child-container\":\"table-child-container____QKaWp\",\"table-child-card\":\"table-child-card____j1zoa\",\"child-table--selected-row\":\"child-table--selected-row____d3AyC\",\"child-table\":\"child-table____A2B_H table____wJ3Ve\",\"custom-pagination\":\"custom-pagination____y8vOT\",\"pagination-count\":\"pagination-count____Q0fqI\",\"pagination-button\":\"pagination-button____jlsCi btn____yMnOd\",\"pagination-prev\":\"pagination-prev____C8gwY pagination-button____jlsCi btn____yMnOd\",\"pagination-next\":\"pagination-next____SbR78 pagination-button____jlsCi btn____yMnOd\",\"pagination-disabled\":\"pagination-disabled____BqyJZ pagination-button____jlsCi btn____yMnOd\",\"pagination-prev-disabled\":\"pagination-prev-disabled____km2ny pagination-disabled____BqyJZ pagination-button____jlsCi btn____yMnOd\",\"pagination-next-disabled\":\"pagination-next-disabled____PzYP9 pagination-disabled____BqyJZ pagination-button____jlsCi btn____yMnOd\",\"pagination\":\"pagination____tt4Xc\",\"pagination-top\":\"pagination-top____al8CU pagination____tt4Xc\",\"pagination-bottom\":\"pagination-bottom____roZMS pagination____tt4Xc\",\"pagination-bottom--documents\":\"pagination-bottom--documents____h9h7c pagination-bottom____roZMS pagination____tt4Xc\",\"table-cell-btn-icon\":\"table-cell-btn-icon____rnlpv\",\"folder-table\":\"folder-table____wYPuZ table--no-border-bottom____fMCue table____wJ3Ve\",\"doc-table-group--heading\":\"doc-table-group--heading____lRJdx\",\"doc-table-group--heading-open\":\"doc-table-group--heading-open_____IuF0 doc-table-group--heading____lRJdx\",\"doc-table-group--heading-with-options\":\"doc-table-group--heading-with-options____a3SjJ\",\"constrained-width--folder-name\":\"constrained-width--folder-name____imALI constrained-width____HHSSq\",\"disable-entity\":\"disable-entity____WAZyt\",\"button-options--add\":\"button-options--add____LWluv button-options____I6W9_\",\"information-icon\":\"information-icon____AI60v\",\"deleted-icon\":\"deleted-icon____X2WIb\",\"exclamation-icon\":\"exclamation-icon____Q1tAW\",\"success-icon\":\"success-icon____Ex_TE\",\"text-align-center\":\"text-align-center____clYld\",\"word-break\":\"word-break____rcer9\",\"btn-group\":\"btn-group____lS3kE\",\"accordion-content\":\"accordion-content____TfCNt\",\"toggle-collapse\":\"toggle-collapse____LAlkN\",\"toggle-collapse--disabled\":\"toggle-collapse--disabled____ZAckx toggle-collapse____LAlkN\",\"toggle-expand\":\"toggle-expand____LtiOe toggle-collapse____LAlkN\",\"folder\":\"folder____j0bpW\",\"folder-locked\":\"folder-locked____g59tf folder____j0bpW\",\"yesNo-filter-width\":\"yesNo-filter-width____AgQmj\",\"w-5\":\"w-5____RM7tX\",\"w-10\":\"w-10____IpiFa\",\"w-15\":\"w-15____IA7oq\",\"w-20\":\"w-20____rAIKx\",\"w-25\":\"w-25____SeX0o\",\"w-30\":\"w-30____knjpl\",\"w-35\":\"w-35____PqXq0\",\"w-40\":\"w-40____yecBK\",\"w-45\":\"w-45____P0jD4\",\"w-50\":\"w-50____QbB1d\",\"w-60\":\"w-60____QbIhT\",\"table--sticky-header\":\"table--sticky-header____vVJ4w\",\"table--sticky-footer\":\"table--sticky-footer____wWDYX\",\"table--sticky-column\":\"table--sticky-column____lX1Y4\",\"table--sticky-column2\":\"table--sticky-column2____oy6E0 table--sticky-column____lX1Y4\",\"table--sticky-column-right\":\"table--sticky-column-right____KaoXR table--sticky-column____lX1Y4\",\"scrollable-table-container\":\"scrollable-table-container____ML880\",\"task-options-modal\":\"task-options-modal____vYOJY\",\"recent-link-name\":\"recent-link-name____HCme4\"};","import { generateGuidString } from 'resources/utilities/insecure-guid';\r\nimport { ComponentBase } from '../component-base';\r\nimport { customElement } from 'aurelia-framework';\r\nimport { environment } from 'environment';\r\n\r\n// DisplayTypeId 610000050\r\n\r\nimport styles from './home-contents-loss-history.css';\r\nimport { IQceGridResponse } from '../../qce-typings';\r\nimport moment from 'moment';\r\n\r\nclass HomeContentsLossHistoryModel {\r\n private Guid = generateGuidString();\r\n private Id = null;\r\n private ClaimAmount = null;\r\n private ClaimMadeFlag = null;\r\n private DateOfLoss = null;\r\n private InsurerName = null;\r\n private LossDetail = null;\r\n private LossTypeId = null;\r\n\r\n constructor(model: any) {\r\n Object.assign(this, model);\r\n }\r\n}\r\n\r\n@customElement('home-contents-loss-history')\r\nexport class HomeContentsLossHistory extends ComponentBase {\r\n\r\n private styles = styles;\r\n private lossTypes = [];\r\n\r\n // private inputMaskOptions: any = {\r\n // alias: 'currency',\r\n // digits: 2,\r\n // max: '999999999.99',\r\n // clearMaskOnLostFocus: true,\r\n // };\r\n\r\n private inputMaskOptions: any = {\r\n decimalPlaces : 2,\r\n minimumValue : 0,\r\n maximumValue : '999999999.99',\r\n emptyInputBehavior: 'focus'\r\n };\r\n\r\n async bind() {\r\n super.bind();\r\n\r\n this.question.currentResponse.gridTypeCode = 'HOME_CONTENTS_LOSS_HISTORY';\r\n\r\n const lossTypeEndpoint = environment.refData.lossType;\r\n\r\n const lossTypeUri = lossTypeEndpoint.uri();\r\n\r\n const lossTypes = await this.http.fetch(lossTypeUri, { method: lossTypeEndpoint.method });\r\n\r\n if (lossTypes.ok) {\r\n this.lossTypes = await lossTypes.json();\r\n }\r\n }\r\n\r\n fieldChanged(isInput = false, claim?) {\r\n this.taskQueue.queueTask(() => {\r\n super.fieldChanged(isInput);\r\n\r\n if (this.question.currentResponse.gridResponses.length) {\r\n // Any value item\r\n const currentWorkflowItem = this.question.questionFlow.find(q => q.responseTypeId === 600000001);\r\n\r\n this.question.currentResponse.responsePresent = true;\r\n this.question.currentResponse = { ...this.question.currentResponse, ...currentWorkflowItem };\r\n } else {\r\n const currentWorkflowItem = this.question.questionFlow.find(q => q.responseTypeId === -1);\r\n\r\n this.question.currentResponse.responsePresent = false;\r\n this.question.currentResponse = { ...this.question.currentResponse, ...currentWorkflowItem };\r\n }\r\n\r\n this.context.fieldChanged(this.question, this.group);\r\n });\r\n }\r\n\r\n lossTypesMatcher = (a, b) => {\r\n if (a && b) {\r\n return parseInt(a) === parseInt(b);\r\n }\r\n }\r\n\r\n private deleteItem(index: number) {\r\n if (index >= 0) {\r\n this.question.currentResponse.gridResponses.splice(index, 1);\r\n }\r\n\r\n this.fieldChanged();\r\n }\r\n\r\n private addItem() {\r\n if (!Array.isArray(this.question.currentResponse.gridResponses)) {\r\n this.question.currentResponse.gridResponses = [];\r\n }\r\n\r\n this.question.currentResponse.gridResponses.push(new HomeContentsLossHistoryModel({}) as unknown as IQceGridResponse);\r\n\r\n this.fieldChanged();\r\n }\r\n}\r\n","// extracted by mini-css-extract-plugin\nexport default {\"btn\":\"btn____NLwFx\",\"btn--flat\":\"btn--flat____jGJb_ btn____NLwFx\",\"btn--submit\":\"btn--submit____Tp7_Y btn____NLwFx\",\"btn--delete\":\"btn--delete____jxdkh btn____NLwFx\",\"btn--link\":\"btn--link____H4WZ3 btn____NLwFx\",\"btn--inline-text-link\":\"btn--inline-text-link____Skoq2 btn--link____H4WZ3 btn____NLwFx\",\"btn--footer\":\"btn--footer____GlXj1 btn____NLwFx\",\"btn--footer-submit\":\"btn--footer-submit____UBEpY btn--submit____Tp7_Y btn____NLwFx btn--footer____GlXj1 btn____NLwFx\",\"btn--footer-cancel\":\"btn--footer-cancel____Q3PUh\",\"btn--footer---cancel\":\"btn--footer---cancel____UOY4v\",\"btn--footer-delete\":\"btn--footer-delete____bIYD4 btn--delete____jxdkh btn____NLwFx btn--footer____GlXj1 btn____NLwFx\",\"btn--qce-dropdown\":\"btn--qce-dropdown____Rf5Ch btn--footer-submit____UBEpY btn--submit____Tp7_Y btn____NLwFx btn--footer____GlXj1 btn____NLwFx\",\"btn--footer-combo\":\"btn--footer-combo____uaBFz btn--footer____GlXj1 btn____NLwFx\",\"btn--lmi-bicalc\":\"btn--lmi-bicalc____Ms67U btn____NLwFx\",\"btn--lmi-risk\":\"btn--lmi-risk____wtOD6 btn____NLwFx\",\"btn--lmi-policy-comparison\":\"btn--lmi-policy-comparison____E8WrV btn____NLwFx\",\"btn--lmi-policy-coach\":\"btn--lmi-policy-coach____iUywF btn____NLwFx\",\"btn--andrew-nock\":\"btn--andrew-nock____Uof3x btn____NLwFx\",\"btn--construction-cost-consultants\":\"btn--construction-cost-consultants____iwAzZ btn____NLwFx\",\"btn--5-star\":\"btn--5-star____uFJYx btn____NLwFx\",\"btn--thermoscan\":\"btn--thermoscan____O6IoQ btn____NLwFx\",\"btn--risk-survey-services\":\"btn--risk-survey-services____AfN3x btn____NLwFx\",\"btn--risk-management\":\"btn--risk-management____UxuiP btn____NLwFx\",\"btn--lmi-bicalc--disabled\":\"btn--lmi-bicalc--disabled____UUlQ3 btn--lmi-bicalc____Ms67U btn____NLwFx\",\"btn--lmi-risk--disabled\":\"btn--lmi-risk--disabled____Ebq_K btn--lmi-risk____wtOD6 btn____NLwFx\",\"btn--lmi-policy-comparison--disabled\":\"btn--lmi-policy-comparison--disabled____BNm0M btn--lmi-policy-comparison____E8WrV btn____NLwFx\",\"btn--initial-insured-location-risk\":\"btn--initial-insured-location-risk____yfNmw btn--flat____jGJb_ btn____NLwFx btn____NLwFx\",\"btn--icon\":\"btn--icon____vIemH btn____NLwFx\",\"btn--icon-no-border\":\"btn--icon-no-border____lzhRi\",\"btn--icon-add\":\"btn--icon-add____k0VHe btn--icon____vIemH btn____NLwFx\",\"btn--add-risk\":\"btn--add-risk____xsiSU btn--icon____vIemH btn____NLwFx\",\"btn--icon-close\":\"btn--icon-close_____TZwh\",\"task-access-modal__close\":\"task-access-modal__close____EOTwd\",\"btn--icon-delete\":\"btn--icon-delete____SYcRH btn--icon____vIemH btn____NLwFx\",\"btn--icon-download\":\"btn--icon-download____uKZcI btn--icon____vIemH btn____NLwFx\",\"btn--icon-edit\":\"btn--icon-edit____y9zxs btn--icon____vIemH btn____NLwFx\",\"btn--icon-email\":\"btn--icon-email____AVzxo btn--icon____vIemH btn____NLwFx\",\"btn--icon-download-email\":\"btn--icon-download-email____ihMOi btn--icon____vIemH btn____NLwFx\",\"btn--icon-folder\":\"btn--icon-folder____R0FZc btn--icon____vIemH btn____NLwFx\",\"btn--icon-folder-locked\":\"btn--icon-folder-locked____XWVdY btn--icon____vIemH btn____NLwFx\",\"btn--icon-folder-locked-active\":\"btn--icon-folder-locked-active____zlFgk btn--icon____vIemH btn____NLwFx\",\"btn--icon-history\":\"btn--icon-history____XL23E btn--icon____vIemH btn____NLwFx\",\"btn--icon-info\":\"btn--icon-info____Mhs_U btn--icon____vIemH btn____NLwFx\",\"btn--icon-task\":\"btn--icon-task____SSSyF btn--icon____vIemH btn____NLwFx\",\"btn--icon-link\":\"btn--icon-link____B2jkH btn--icon____vIemH btn____NLwFx\",\"btn--icon-unlink\":\"btn--icon-unlink____UdgJ2 btn--icon-delete____SYcRH btn--icon____vIemH btn____NLwFx\",\"btn--icon-map\":\"btn--icon-map_____2pJp btn--icon____vIemH btn____NLwFx\",\"btn--icon-more\":\"btn--icon-more____KpQuP btn--icon____vIemH btn____NLwFx\",\"btn--icon-open-in-new-window\":\"btn--icon-open-in-new-window____r5xeO btn--icon____vIemH btn____NLwFx\",\"btn--icon-favourite--selected\":\"btn--icon-favourite--selected____Sc2FN btn--icon____vIemH btn____NLwFx\",\"btn--icon-favourite--deselected\":\"btn--icon-favourite--deselected____CLZPD btn--icon____vIemH btn____NLwFx\",\"btn--icon-preview\":\"btn--icon-preview____EJZ9o btn--icon____vIemH btn____NLwFx\",\"btn--icon-pre-printed\":\"btn--icon-pre-printed____SiVsg btn--icon____vIemH btn____NLwFx\",\"btn--icon-print\":\"btn--icon-print____ZmBrm btn--icon____vIemH btn____NLwFx\",\"btn--icon-save\":\"btn--icon-save____vMG8g btn--icon____vIemH btn____NLwFx\",\"btn--icon-settings\":\"btn--icon-settings____QIzCv btn--icon____vIemH btn____NLwFx\",\"btn--icon-show-details\":\"btn--icon-show-details____wuM7s btn--icon____vIemH btn____NLwFx\",\"btn--icon-show-details--alert\":\"btn--icon-show-details--alert____wkdSQ btn--icon____vIemH btn____NLwFx\",\"btn--icon-show-summary\":\"btn--icon-show-summary____QBZTJ btn--icon____vIemH btn____NLwFx\",\"btn--icon-attachment\":\"btn--icon-attachment____R6n7A btn--icon____vIemH btn____NLwFx\",\"btn--icon-tag\":\"btn--icon-tag____Bv4Fi btn--icon____vIemH btn____NLwFx\",\"btn--icon-undo\":\"btn--icon-undo____d5Qxw btn--icon____vIemH btn____NLwFx\",\"btn--icon-sync\":\"btn--icon-sync____AtJk0 btn--icon____vIemH btn____NLwFx\",\"btn--icon-arrow-forward\":\"btn--icon-arrow-forward____C5gFd btn--icon____vIemH btn____NLwFx\",\"btn--aside-collapse\":\"btn--aside-collapse____VTvsZ btn--icon____vIemH btn____NLwFx\",\"btn--icon-expand-more\":\"btn--icon-expand-more____eMBdk btn--icon____vIemH btn____NLwFx\",\"btn--icon-expand-less\":\"btn--icon-expand-less____DT6yf btn--icon____vIemH btn____NLwFx\",\"btn--icon-general\":\"btn--icon-general____XuNcL btn--icon____vIemH btn____NLwFx\",\"btn--icon-sales\":\"btn--icon-sales____DcG6Y btn--icon____vIemH btn____NLwFx\",\"btn--icon-branch\":\"btn--icon-branch____ezAGT btn--icon____vIemH btn____NLwFx\",\"btn--icon-contact\":\"btn--icon-contact____rUbS1 btn--icon____vIemH btn____NLwFx\",\"btn--icon-consent\":\"btn--icon-consent____st01d btn--icon____vIemH btn____NLwFx\",\"btn--icon-questions\":\"btn--icon-questions____GjPLz btn--icon____vIemH btn____NLwFx\",\"btn--icon-associated\":\"btn--icon-associated____HYVAh btn--icon____vIemH btn____NLwFx\",\"btn--icon-notes\":\"btn--icon-notes____yRZ8q btn--icon____vIemH btn____NLwFx\",\"btn--back\":\"btn--back____m2wLM\",\"btn--back-to-sign-in\":\"btn--back-to-sign-in____MEt9c btn--back____m2wLM\",\"btn--icon-advanced-search\":\"btn--icon-advanced-search____KIkpA btn--icon____vIemH btn____NLwFx\",\"btn--wizard\":\"btn--wizard____xJx6Y btn____NLwFx\",\"btn--wizard-back\":\"btn--wizard-back____fdAQd btn--wizard____xJx6Y btn____NLwFx\",\"btn--wizard-next\":\"btn--wizard-next____MLNJ6 btn--wizard____xJx6Y btn____NLwFx\",\"task-delete-confirm-modal__delete\":\"task-delete-confirm-modal__delete____OOxGz\",\"task-delete-confirm-modal__cancel\":\"task-delete-confirm-modal__cancel____pLZh1\",\"button-options\":\"button-options____FAQEK\",\"cancel\":\"cancel____MCi7L\",\"tasksubmit\":\"tasksubmit____snv9w\",\"forgotPasswordBtn\":\"forgotPasswordBtn____lhttH\",\"show-complet-tasks\":\"show-complet-tasks____okkiu\",\"card\":\"card____oK3Ji\",\"card-content\":\"card-content____j5kz6\",\"card-heading\":\"card-heading____Z7qA5\",\"control-group\":\"control-group____tfDHm\",\"label-group\":\"label-group____KpS20\",\"label-group-item\":\"label-group-item____zN9gm\",\"constrained-width\":\"constrained-width____OYHch\",\"button-group\":\"button-group____DV1O2\",\"card--alert\":\"card--alert____aN5y5 card____oK3Ji\",\"card-heading--alert\":\"card-heading--alert____MIhz2 card-heading____Z7qA5\",\"card--status-message\":\"card--status-message____gjrXo\",\"card--status-message--left\":\"card--status-message--left____Ls96Y card--status-message____gjrXo\",\"card-heading--sticky-header\":\"card-heading--sticky-header____Ew1Tj\",\"card-heading--no-icon\":\"card-heading--no-icon____ZcNTf card-heading____Z7qA5\",\"card-heading--bold-title\":\"card-heading--bold-title____QPZ7f\",\"bg-blue-sky\":\"bg-blue-sky_____PNht\",\"card-heading--advanced-search-results\":\"card-heading--advanced-search-results____Yyzh9\",\"fieldset\":\"fieldset____SUcF8\",\"fieldset-instruction\":\"fieldset-instruction____leP46\",\"fieldset--no-padding\":\"fieldset--no-padding____vA0Ei fieldset____SUcF8\",\"fieldset--alt\":\"fieldset--alt____MJmn8 fieldset____SUcF8\",\"input-search\":\"input-search____CSRK3\",\"view-password\":\"view-password____ZNfWI\",\"ia-currency-input\":\"ia-currency-input____IU6_P\",\"ia-currency-negative\":\"ia-currency-negative____w8WeJ\",\"select--mini\":\"select--mini____o0oKc\",\"required-label\":\"required-label____spODp\",\"alert\":\"alert____mjRwo\",\"alert--important\":\"alert--important____YMiT1\",\"input-label\":\"input-label____YM7sU\",\"w-100\":\"w-100____Hg_Yw\",\"search-input-wrapper\":\"search-input-wrapper____sKPKJ\",\"search-input--results\":\"search-input--results____oQsmo\",\"search-input--result\":\"search-input--result____CFsgI\",\"search-input--result--highlighted\":\"search-input--result--highlighted____MU4rW\",\"date-range-selections\":\"date-range-selections____Ul_7E\",\"date-arrow-forward\":\"date-arrow-forward____HKJl5\",\"qce-dropdown\":\"qce-dropdown____vHogo\",\"qce-or\":\"qce-or____Wryqa\",\"qce-dropdown-with-dropdown\":\"qce-dropdown-with-dropdown____aOruP\",\"qce-vehicle-registration-search\":\"qce-vehicle-registration-search____YKCJZ\",\"row-gap\":\"row-gap____AXlMX\",\"row-group\":\"row-group_____tCy8\",\"row-group--three\":\"row-group--three____RpvSO row-group_____tCy8\",\"grid-14\":\"grid-14____lWUYb\",\"row-group--auto\":\"row-group--auto____Nvqwc row-group_____tCy8\",\"space\":\"space____lfOcL\",\"display-none--lg\":\"display-none--lg____1WU9f\",\"display-none--md\":\"display-none--md____EV1Ou\",\"table\":\"table____gq1CN\",\"table-heading-row\":\"table-heading-row_____V4EA\",\"table-row\":\"table-row____bwQSF\",\"table-result-row\":\"table-result-row____PWumA\",\"break-word\":\"break-word____HMI3i\",\"no-wrap\":\"no-wrap____JQNtS\",\"table-result-row--disabled\":\"table-result-row--disabled____o0vnS\",\"table-modal\":\"table-modal____AglWC table____gq1CN\",\"table-enhanced\":\"table-enhanced____aMykA\",\"table--no-border-bottom\":\"table--no-border-bottom____n3sjp table____gq1CN\",\"height-45\":\"height-45____WvQab\",\"edit-column\":\"edit-column____EdNZ3\",\"delete-column\":\"delete-column____tJ6Fl\",\"date-table-heading\":\"date-table-heading____eiE3b\",\"button-edit\":\"button-edit____qU2xi\",\"button-delete\":\"button-delete____dEE_E\",\"table-row-selected\":\"table-row-selected____IkMXr\",\"table-row-alert\":\"table-row-alert____a8bWL\",\"table-filter-row\":\"table-filter-row____u8yM5\",\"table-filter-row--endcap\":\"table-filter-row--endcap____L3hnO\",\"filter-column\":\"filter-column____MZeHN\",\"table-pagination\":\"table-pagination____hmXjY\",\"table-pagination-with-filter\":\"table-pagination-with-filter____veSYy table-pagination____hmXjY\",\"table-button-group\":\"table-button-group____pRUvd\",\"table-child-container\":\"table-child-container____sKO5L\",\"table-child-card\":\"table-child-card____mzUky\",\"child-table--selected-row\":\"child-table--selected-row____yMr2P\",\"child-table\":\"child-table____dUPnQ table____gq1CN\",\"custom-pagination\":\"custom-pagination____NJlz7\",\"pagination-count\":\"pagination-count____z2BmE\",\"pagination-button\":\"pagination-button_____CFWx btn____NLwFx\",\"pagination-prev\":\"pagination-prev____fxUHa pagination-button_____CFWx btn____NLwFx\",\"pagination-next\":\"pagination-next____hWRpv pagination-button_____CFWx btn____NLwFx\",\"pagination-disabled\":\"pagination-disabled____pom1h pagination-button_____CFWx btn____NLwFx\",\"pagination-prev-disabled\":\"pagination-prev-disabled____MPnMe pagination-disabled____pom1h pagination-button_____CFWx btn____NLwFx\",\"pagination-next-disabled\":\"pagination-next-disabled____DR0Y9 pagination-disabled____pom1h pagination-button_____CFWx btn____NLwFx\",\"pagination\":\"pagination____UqxAB\",\"pagination-top\":\"pagination-top____i7wt3 pagination____UqxAB\",\"pagination-bottom\":\"pagination-bottom____OhMVN pagination____UqxAB\",\"pagination-bottom--documents\":\"pagination-bottom--documents____CfWAY pagination-bottom____OhMVN pagination____UqxAB\",\"table-cell-btn-icon\":\"table-cell-btn-icon____Sjr6B\",\"folder-table\":\"folder-table____lVL4L table--no-border-bottom____n3sjp table____gq1CN\",\"doc-table-group--heading\":\"doc-table-group--heading____K3rfC\",\"doc-table-group--heading-open\":\"doc-table-group--heading-open____Cw5Ru doc-table-group--heading____K3rfC\",\"doc-table-group--heading-with-options\":\"doc-table-group--heading-with-options____Lp70k\",\"constrained-width--folder-name\":\"constrained-width--folder-name____QFXBa constrained-width____OYHch\",\"disable-entity\":\"disable-entity____Zg6gp\",\"button-options--add\":\"button-options--add____We3IP button-options____FAQEK\",\"information-icon\":\"information-icon____s2Hoh\",\"deleted-icon\":\"deleted-icon____o6BHt\",\"exclamation-icon\":\"exclamation-icon____Ogf4P\",\"success-icon\":\"success-icon____ujJUd\",\"text-align-center\":\"text-align-center____Cuq7k\",\"word-break\":\"word-break____LrWLW\",\"btn-group\":\"btn-group____SCfwJ\",\"accordion-content\":\"accordion-content____zsKLb\",\"toggle-collapse\":\"toggle-collapse____UgdyJ\",\"toggle-collapse--disabled\":\"toggle-collapse--disabled____u40ET toggle-collapse____UgdyJ\",\"toggle-expand\":\"toggle-expand____miwbZ toggle-collapse____UgdyJ\",\"folder\":\"folder____oUEyH\",\"folder-locked\":\"folder-locked____XgxCZ folder____oUEyH\",\"yesNo-filter-width\":\"yesNo-filter-width____U_du0\",\"w-5\":\"w-5____YptoM\",\"w-10\":\"w-10____seBHo\",\"w-15\":\"w-15____g9JLB\",\"w-20\":\"w-20____ChlBx\",\"w-25\":\"w-25____qVlNd\",\"w-30\":\"w-30____yPnko\",\"w-35\":\"w-35____Y5MZ1\",\"w-40\":\"w-40____P_8MJ\",\"w-45\":\"w-45____dnY1n\",\"w-50\":\"w-50____ArI5C\",\"w-60\":\"w-60____PtR4j\",\"table--sticky-header\":\"table--sticky-header____Oprwf\",\"table--sticky-footer\":\"table--sticky-footer____mza71\",\"table--sticky-column\":\"table--sticky-column____ldK3o\",\"table--sticky-column2\":\"table--sticky-column2____QUDi8 table--sticky-column____ldK3o\",\"table--sticky-column-right\":\"table--sticky-column-right____aXjbI table--sticky-column____ldK3o\",\"scrollable-table-container\":\"scrollable-table-container____KusDb\",\"task-options-modal\":\"task-options-modal____xqxBP\",\"recent-link-name\":\"recent-link-name____sIJMb\"};","import { generateGuidString } from 'resources/utilities/insecure-guid';\r\nimport { ComponentBase } from '../component-base';\r\nimport { customElement } from 'aurelia-framework';\r\nimport { environment } from 'environment';\r\nimport { IQceGridResponse } from '../../qce-typings';\r\nimport styles from './interested-party-details.css';\r\nimport { getAppClientType } from 'resources/parse-jwt';\r\n\r\n// DisplayTypeId 610000100\r\n\r\nclass InterestedPartyDetailsModel {\r\n private Guid = generateGuidString();\r\n private Id = null;\r\n private InterestedPartyId = null;\r\n private InterestedPartyName = null;\r\n private NatureOfInterestId = null;\r\n private StreetAddress = null;\r\n private Suburb = null;\r\n private StateCode = null;\r\n private Region = null;\r\n private PostCode = null;\r\n\r\n constructor(model: any) {\r\n Object.assign(this, model);\r\n }\r\n}\r\n\r\n@customElement('interested-party-details')\r\nexport class InterestedPartyDetails extends ComponentBase {\r\n private styles = styles;\r\n private captureNatureOfInterest = false;\r\n private natureOfInterestLookupKey = 'N/A';\r\n private interestedPartyNameAnswerType = 'Free Text';\r\n private interestedPartyNameLookupKey = 'N/A';\r\n private captureInterestedPartyAddress = false;\r\n private addressMandatory = false;\r\n private interestedPartyTypes = [];\r\n private natureOfInterestTypes = [];\r\n private appClientType = getAppClientType();\r\n\r\n async bind() {\r\n super.bind();\r\n\r\n if (!this.question.currentResponse.gridResponses) {\r\n this.question.currentResponse.gridResponses = [];\r\n }\r\n\r\n this.question.currentResponse.gridTypeCode = 'INTERESTED_PARTY_DETAILS';\r\n\r\n\r\n if (this.question.questionAttributes.length > 0) {\r\n for (const attribute of this.question.questionAttributes) {\r\n if (attribute.attributeName === 'Capture Nature Of Interest') {\r\n this.captureNatureOfInterest = attribute.attributeValue === 'Yes';\r\n } else if (attribute.attributeName === 'Nature Of Interest Lookup Key') {\r\n this.natureOfInterestLookupKey = attribute.attributeValue;\r\n\r\n if(this.natureOfInterestLookupKey !== 'N/A'){\r\n const endpoint = environment.refData.natureOfInterestTypes;\r\n const uri = endpoint.uri([this.natureOfInterestLookupKey]);\r\n const result = await this.http.fetch(uri, { method: endpoint.method });\r\n if (result.ok) {\r\n this.natureOfInterestTypes = await result.json();\r\n }\r\n }\r\n } else if (attribute.attributeName === 'Interested Party Name Answer Type') {\r\n this.interestedPartyNameAnswerType = attribute.attributeValue;\r\n } else if (attribute.attributeName === 'Interested Party Name Lookup Key') {\r\n this.interestedPartyNameLookupKey = attribute.attributeValue;\r\n\r\n if(this.interestedPartyNameLookupKey !== 'N/A'){\r\n const endpoint = environment.refData.interestedPartyTypes;\r\n const uri = endpoint.uri([this.interestedPartyNameLookupKey]);\r\n const result = await this.http.fetch(uri, { method: endpoint.method });\r\n if (result.ok) {\r\n this.interestedPartyTypes = await result.json();\r\n }\r\n }\r\n } else if (attribute.attributeName === 'Capture Interested Party Address') {\r\n this.captureInterestedPartyAddress = attribute.attributeValue === 'Yes';\r\n } else if (attribute.attributeName === 'Address Mandatory') {\r\n this.addressMandatory = attribute.attributeValue === 'Yes';\r\n }\r\n }\r\n }\r\n}\r\n\r\n fieldChanged(isInput = false, claim?) {\r\n this.taskQueue.queueTask(() => {\r\n super.fieldChanged(isInput);\r\n\r\n if (this.question.currentResponse.gridResponses.length) {\r\n // Any value item\r\n const currentWorkflowItem = this.question.questionFlow.find(q => q.responseTypeId === 600000001);\r\n\r\n this.question.currentResponse.responsePresent = true;\r\n this.question.currentResponse = { ...this.question.currentResponse, ...currentWorkflowItem };\r\n } else {\r\n const currentWorkflowItem = this.question.questionFlow.find(q => q.responseTypeId === -1);\r\n\r\n this.question.currentResponse.responsePresent = false;\r\n this.question.currentResponse = { ...this.question.currentResponse, ...currentWorkflowItem };\r\n }\r\n\r\n this.context.fieldChanged(this.question, this.group);\r\n });\r\n }\r\n\r\n eventMatcher = (a, b) => {\r\n if (a && b) {\r\n return parseInt(a) === parseInt(b);\r\n }\r\n }\r\n\r\n stateCodeMatcher = (a, b) => {\r\n if (a && b) {\r\n return a === b;\r\n }\r\n }\r\n\r\n private deleteItem(index: number) {\r\n if (index >= 0) {\r\n this.question.currentResponse.gridResponses.splice(index, 1);\r\n }\r\n\r\n this.fieldChanged();\r\n }\r\n\r\n private addItem() {\r\n if (!Array.isArray(this.question.currentResponse.gridResponses)) {\r\n this.question.currentResponse.gridResponses = [];\r\n }\r\n\r\n this.question.currentResponse.gridResponses.push(new InterestedPartyDetailsModel({}) as unknown as IQceGridResponse);\r\n\r\n this.fieldChanged();\r\n }\r\n}\r\n","import { generateGuidString } from 'resources/utilities/insecure-guid';\r\nimport { ComponentBase } from '../component-base';\r\nimport { customElement } from 'aurelia-framework';\r\nimport { environment } from 'environment';\r\n\r\n// DisplayTypeId 610000010\r\n\r\nimport styles from './accident-damage-theft-history.css';\r\nimport { IQceGridResponse } from '../../qce-typings';\r\nimport * as moment from 'moment';\r\n\r\nclass SpecifiedExtensionModel {\r\n private Guid = generateGuidString();\r\n private Id = null;\r\n private SpecifiedExtensionAmount = null;\r\n private SpecifiedExtensionDescription = null;\r\n private SpecifiedExtensionTypeId = null;\r\n private YearPurchased = null;\r\n private SerialNumber = null;\r\n\r\n constructor(model: any) {\r\n Object.assign(this, model);\r\n }\r\n}\r\n\r\ninterface InputmaskOptions extends Inputmask.Options {\r\n autoGroup?: boolean;\r\n}\r\n\r\nconst inputMaskOptions: InputmaskOptions = {\r\n alias: 'numeric',\r\n digits: '0',\r\n placeholder: '',\r\n autoGroup: false,\r\n groupSeparator: '',\r\n autoUnmask: true,\r\n min: '-99999999',\r\n max: '99999999',\r\n rightAlign: false,\r\n allowMinus: false\r\n};\r\n\r\n@customElement('specified-extension')\r\nexport class SpecifiedExtension extends ComponentBase {\r\n private styles = styles;\r\n private captureSpecifiedExtensionType = false;\r\n private specifiedExtensionType = 'N/A';\r\n private specifiedExtensionTypes = [];\r\n private extensionTypeDisplayName = 'Extension Type';\r\n private descriptionDisplayName = 'Description';\r\n private sumInsuredDisplayName = 'Sum Insured';\r\n private captureYearPurchased = false;\r\n private yearPurchasedDisplayName = 'N/A';\r\n private captureSerialNumber = false;\r\n private serialNumberDisplayName = 'N/A';\r\n\r\n private specifiedExtensionAmountInputMaskOptions: any = {\r\n decimalPlaces : 2,\r\n minimumValue : 0,\r\n maximumValue : '999999999.99',\r\n emptyInputBehavior: 'focus'\r\n };\r\n\r\n public yearInputMaskOptions = { ...inputMaskOptions };\r\n\r\n async bind() {\r\n super.bind();\r\n\r\n // year\r\n this.yearInputMaskOptions.allowMinus = false;\r\n this.yearInputMaskOptions.alias = 'datetime';\r\n this.yearInputMaskOptions.inputFormat = 'yyyy';\r\n this.yearInputMaskOptions.showMaskOnFocus = false;\r\n this.yearInputMaskOptions.showMaskOnHover = true;\r\n this.yearInputMaskOptions.min = '1750';\r\n this.yearInputMaskOptions.max = moment.utc().add('1', 'years').format('YYYY').toString();\r\n\r\n if (!this.question.currentResponse.gridResponses) {\r\n this.question.currentResponse.gridResponses = [];\r\n }\r\n\r\n this.question.currentResponse.gridTypeCode = 'SPECIFIED_EXTENSION';\r\n\r\n if (this.question.questionAttributes.length > 0) {\r\n for (const attribute of this.question.questionAttributes) {\r\n if (attribute.attributeName === 'Capture Specified Extension Type') {\r\n this.captureSpecifiedExtensionType = attribute.attributeValue === 'Yes';\r\n } else if (attribute.attributeName === 'Specified Extension Type Key') {\r\n this.specifiedExtensionType = attribute.attributeValue;\r\n\r\n if(this.specifiedExtensionType !== 'N/A'){\r\n const endpoint = environment.refData.specifiedExtensionTypes;\r\n const uri = endpoint.uri([this.specifiedExtensionType]);\r\n const result = await this.http.fetch(uri, { method: endpoint.method });\r\n if (result.ok) {\r\n this.specifiedExtensionTypes = await result.json();\r\n }\r\n }\r\n } else if (attribute.attributeName === 'Extension Type Display Name') {\r\n this.extensionTypeDisplayName = attribute.attributeValue;\r\n } else if (attribute.attributeName === 'Description Display Name') {\r\n this.descriptionDisplayName = attribute.attributeValue;\r\n } else if (attribute.attributeName === 'Sum Insured Display Name') {\r\n this.sumInsuredDisplayName = attribute.attributeValue;\r\n } else if (attribute.attributeName === 'Capture Year Purchased') {\r\n this.captureYearPurchased = attribute.attributeValue === 'Yes';\r\n } else if (attribute.attributeName === 'Year Purchased Display Name') {\r\n this.yearPurchasedDisplayName = attribute.attributeValue;\r\n } else if (attribute.attributeName === 'Capture Serial Number') {\r\n this.captureSerialNumber = attribute.attributeValue === 'Yes';\r\n } else if (attribute.attributeName === 'Serial Number Display Name') {\r\n this.serialNumberDisplayName = attribute.attributeValue;\r\n }\r\n }\r\n }\r\n }\r\n\r\n fieldChanged(isInput = false, claim?) {\r\n this.taskQueue.queueTask(() => {\r\n super.fieldChanged(isInput);\r\n\r\n if (this.question.currentResponse.gridResponses.length) {\r\n // Any value item\r\n const currentWorkflowItem = this.question.questionFlow.find(q => q.responseTypeId === 600000001);\r\n\r\n this.question.currentResponse.responsePresent = true;\r\n this.question.currentResponse = { ...this.question.currentResponse, ...currentWorkflowItem };\r\n } else {\r\n const currentWorkflowItem = this.question.questionFlow.find(q => q.responseTypeId === -1);\r\n\r\n this.question.currentResponse.responsePresent = false;\r\n this.question.currentResponse = { ...this.question.currentResponse, ...currentWorkflowItem };\r\n }\r\n\r\n this.context.fieldChanged(this.question, this.group);\r\n });\r\n }\r\n\r\n specifiedExtensionTypeMatcher = (a, b) => {\r\n if (a && b) {\r\n return parseInt(a) === parseInt(b);\r\n }\r\n }\r\n\r\n private deleteItem(index: number) {\r\n //const itemIndex = this.question.currentResponse.gridResponses.findIndex(r => r.id === id);\r\n\r\n if (index >= 0) {\r\n this.question.currentResponse.gridResponses.splice(index, 1);\r\n }\r\n\r\n this.fieldChanged();\r\n }\r\n\r\n private addItem() {\r\n if (!Array.isArray(this.question.currentResponse.gridResponses)) {\r\n this.question.currentResponse.gridResponses = [];\r\n }\r\n\r\n this.question.currentResponse.gridResponses.push(new SpecifiedExtensionModel({}) as unknown as IQceGridResponse);\r\n\r\n this.fieldChanged();\r\n }\r\n\r\n}\r\n "],"names":["model","Guid","Id","DateOfOffenceConviction","NameOfInsured","FineAmount","OffenceTypeId","PenaltyDetail","PenaltyImposedId","PeriodImprisonmentPeriodicDetention","Object","assign","this","styles","offenceTypes","penaltiesImposed","inputMaskOptions","decimalPlaces","minimumValue","maximumValue","emptyInputBehavior","offenceMatcher","a","b","parseInt","penaltyMatcher","bind","question","currentResponse","gridResponses","gridTypeCode","offenceTypesEndpoint","environment","penaltiesImposedEndpoint","offenceTypesUri","uri","penaltiesImposedUri","http","fetch","method","ok","json","fieldChanged","isInput","claim","taskQueue","queueTask","length","currentWorkflowItem","questionFlow","find","q","responseTypeId","responsePresent","context","group","deleteItem","index","splice","addItem","Array","isArray","push","CriminalOffenceHistoryModel","customElement","CriminalOffenceHistory","ItemDate","ItemDescription","eventMatcher","DateAndDescriptionItemModel","DateAndDescriptionItems","DateOfEvent","InsuranceType","InsuranceEventTypeId","EventDetail","insuranceEventTypes","insuranceEventTypesEndpoint","insuranceEventTypesUri","DeclineCancellationConditionHistoryModel","DeclineCancellationConditionHistory","DateOfOffence","DriverName","captureDriverName","capturePenaltyImposed","captureFineAmount","captureImprisonmentDetentionPeriod","offenceType","questionAttributes","attribute","attributeName","attributeValue","DrivingOffenceConvictionHistoryModel","DrivingOffenceConvictionHistory","DrugAlcoholTypeId","drugAlcoholTypes","drugAlcoholTypesMatcher","drugAlcoholTypeEndpoint","drugAlcoholTypeUri","DrugAlcoholDisqualificationHistoryModel","DrugAlcoholDisqualificationHistory","ClaimAmount","ClaimMadeFlag","DateOfLoss","InsurerName","LossDetail","LossTypeId","lossTypes","lossTypesMatcher","lossTypeEndpoint","lossTypeUri","HomeContentsLossHistoryModel","HomeContentsLossHistory","InterestedPartyId","InterestedPartyName","NatureOfInterestId","StreetAddress","Suburb","StateCode","Region","PostCode","captureNatureOfInterest","natureOfInterestLookupKey","interestedPartyNameAnswerType","interestedPartyNameLookupKey","captureInterestedPartyAddress","addressMandatory","interestedPartyTypes","natureOfInterestTypes","appClientType","stateCodeMatcher","endpoint","result","InterestedPartyDetailsModel","InterestedPartyDetails","SpecifiedExtensionAmount","SpecifiedExtensionDescription","SpecifiedExtensionTypeId","YearPurchased","SerialNumber","alias","digits","placeholder","autoGroup","groupSeparator","autoUnmask","min","max","rightAlign","allowMinus","captureSpecifiedExtensionType","specifiedExtensionType","specifiedExtensionTypes","extensionTypeDisplayName","descriptionDisplayName","sumInsuredDisplayName","captureYearPurchased","yearPurchasedDisplayName","captureSerialNumber","serialNumberDisplayName","specifiedExtensionAmountInputMaskOptions","yearInputMaskOptions","specifiedExtensionTypeMatcher","inputFormat","showMaskOnFocus","showMaskOnHover","add","format","toString","SpecifiedExtensionModel","SpecifiedExtension"],"sourceRoot":""}