\n\n\n","import mod from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InputDateSplit.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InputDateSplit.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./InputDateSplit.vue?vue&type=template&id=f296fb4a\"\nimport script from \"./InputDateSplit.vue?vue&type=script&lang=js\"\nexport * from \"./InputDateSplit.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar floor = Math.floor;\nvar charAt = uncurryThis(''.charAt);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\nvar SUBSTITUTION_SYMBOLS = /\\$([$&'`]|\\d{1,2}|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&'`]|\\d{1,2})/g;\n\n// `GetSubstitution` abstract operation\n// https://tc39.es/ecma262/#sec-getsubstitution\nmodule.exports = function (matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return replace(replacement, symbols, function (match, ch) {\n var capture;\n switch (charAt(ch, 0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return stringSlice(str, 0, position);\n case \"'\": return stringSlice(str, tailPos);\n case '<':\n capture = namedCaptures[stringSlice(ch, 1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n};\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"radio-options w-100 mt-2\",attrs:{\"id\":`${_vm.db.saveField}${_vm.db.objectId ? _vm.db.objectId : ''}`}},[(_vm.args.label)?_c('label',{staticClass:\"sub-label\"},[_vm._v(_vm._s(_vm.args.label))]):_vm._e(),_vm._l((_vm.options),function(option,index){return [(!option.disabled)?_c('label',{key:index + _vm.db.saveField,staticClass:\"radio\",class:{ 'active' : _vm.data.includes(option.value), 'disabled' : _vm.skipped, 'error-border': [..._vm.jsErrors, ..._vm.errorsPost, ..._vm.serverErrors].length},on:{\"click\":function($event){return _vm.add(_vm.options[index].value)}}},[_c('span',[_vm._v(_vm._s(option.label))])]):_vm._e(),(option.disabled)?_c('label',{key:index + _vm.db.saveField,staticClass:\"radio disabled muted\"},[_c('span',[_vm._v(_vm._s(option.label))])]):_vm._e()]}),_vm._t(\"default\"),(_vm.args.skippable)?_c('div',{staticClass:\"add-or flex-shrink-0 mb-20\"},[_c('label',{staticClass:\"fancy-checkbox-container\"},[_vm._v(\"'Skip' \"),_c('input',{attrs:{\"type\":\"checkbox\"},domProps:{\"value\":_vm.skipped,\"checked\":_vm.skipped ? 'checked': null},on:{\"click\":_vm.skipQuestion}}),_c('span',{staticClass:\"checkmark\"})])]):_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n
\n \n\n \n \n \n\n \n\n\n \n\n \n\n
\n \n
\n
\n\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InputRadioMutiple.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InputRadioMutiple.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./InputRadioMutiple.vue?vue&type=template&id=2927dcd4&scoped=true\"\nimport script from \"./InputRadioMutiple.vue?vue&type=script&lang=js\"\nexport * from \"./InputRadioMutiple.vue?vue&type=script&lang=js\"\nimport style0 from \"./InputRadioMutiple.vue?vue&type=style&index=0&id=2927dcd4&prod&scoped=true&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2927dcd4\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('QuestionBase',{attrs:{\"question\":_vm.question,\"errors\":[..._vm.serverErrors, ..._vm.jsErrors],\"valid\":_vm.data !== null}},[_c('InputRadio',{ref:\"input\",attrs:{\"args\":_vm.args,\"server-errors\":_vm.serverErrors,\"options\":_vm.booleanYesNo,\"no-save\":false,\"db\":_vm.db,\"disabled\":!!_vm.children.length},on:{\"jsErrors\":function($event){_vm.jsErrors=$event}},model:{value:(_vm.data),callback:function ($$v) {_vm.data=$$v},expression:\"data\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n\n\n\n","import mod from \"-!../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChildrenYN.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChildrenYN.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ChildrenYN.vue?vue&type=template&id=3264d465\"\nimport script from \"./ChildrenYN.vue?vue&type=script&lang=js\"\nexport * from \"./ChildrenYN.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('QuestionBase',{attrs:{\"question\":_vm.question,\"errors\":[..._vm.serverErrors, ..._vm.jsErrors],\"valid\":_vm.data !== null}},[_c('InputRadio',{ref:\"input\",attrs:{\"args\":_vm.args,\"server-errors\":_vm.serverErrors,\"options\":_vm.booleanYesNo,\"no-save\":false,\"db\":_vm.db,\"disabled\":!!_vm.dependants.length},on:{\"jsErrors\":function($event){_vm.jsErrors=$event}},model:{value:(_vm.data),callback:function ($$v) {_vm.data=$$v},expression:\"data\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n\n\n\n","import mod from \"-!../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DependantsYN.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DependantsYN.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./DependantsYN.vue?vue&type=template&id=064f050c\"\nimport script from \"./DependantsYN.vue?vue&type=script&lang=js\"\nexport * from \"./DependantsYN.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InputRadioMutiple.vue?vue&type=style&index=0&id=2927dcd4&prod&scoped=true&lang=scss\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('QuestionnaireBase',{attrs:{\"title\":_vm.title,\"form\":_vm.form,\"finishFunction\":null,\"showNavigationButtons\":true},scopedSlots:_vm._u([{key:\"default\",fn:function(){return [_c(_vm.show,{key:1,ref:_vm.show,tag:\"component\",model:{value:(_vm.form),callback:function ($$v) {_vm.form=$$v},expression:\"form\"}}),(_vm.load in _vm.$options.components)?_c(_vm.load,{directives:[{name:\"show\",rawName:\"v-show\",value:(false),expression:\"false\"}],key:\"load\",ref:_vm.load,tag:\"component\",model:{value:(_vm.form),callback:function ($$v) {_vm.form=$$v},expression:\"form\"}}):_vm._e()]},proxy:true}])})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"fieldset\"},[_c('h3',{staticClass:\"fieldset-heading\"},[_vm._v(\"Children\")]),_c('ChildrenYN',{attrs:{\"children\":_vm.form.children,\"number-of-children\":_vm.form.profileChildrenNumber},on:{\"numberOfChildren\":function($event){_vm.form.profileChildrenNumber=$event}},model:{value:(_vm.form.children_have),callback:function ($$v) {_vm.$set(_vm.form, \"children_have\", $$v)},expression:\"form.children_have\"}}),(_vm.form.children_have)?_c('div',{staticClass:\"question-box with-arrow\"},[_c('ChildrenShort',{ref:\"childrenShort\",attrs:{\"number-of-children\":_vm.form.profileChildrenNumber},on:{\"numberOfChildren\":function($event){_vm.form.profileChildrenNumber=$event},\"refresh\":_vm.refresh},model:{value:(_vm.form.children),callback:function ($$v) {_vm.$set(_vm.form, \"children\", $$v)},expression:\"form.children\"}})],1):_vm._e(),_c('Pregnant',{model:{value:(_vm.form.profilePregnant),callback:function ($$v) {_vm.$set(_vm.form, \"profilePregnant\", $$v)},expression:\"form.profilePregnant\"}}),(_vm.form.profilePregnant)?_c('div',{staticClass:\"question-box with-arrow\"},[_c('PregnantDate',{model:{value:(_vm.form.profilePregnantDueDate),callback:function ($$v) {_vm.$set(_vm.form, \"profilePregnantDueDate\", $$v)},expression:\"form.profilePregnantDueDate\"}})],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n
\n
Children
\n \n
\n \n
\n \n
\n \n
\n\n
\n\n\n\n","import mod from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Children.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Children.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Children.vue?vue&type=template&id=15180594\"\nimport script from \"./Children.vue?vue&type=script&lang=js\"\nexport * from \"./Children.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"fieldset\"},[_c('h3',{staticClass:\"fieldset-heading\"},[_vm._v(\"Dependants\")]),_c('DependantsYN',{attrs:{\"dependants\":_vm.form.dependants,\"number-of-dependants\":_vm.form.profileDependantsNumber},on:{\"numberOfDependants\":function($event){_vm.form.profileDependantsNumber=$event}},model:{value:(_vm.form.dependants_have),callback:function ($$v) {_vm.$set(_vm.form, \"dependants_have\", $$v)},expression:\"form.dependants_have\"}}),(_vm.form.dependants_have)?_c('div',{staticClass:\"question-box with-arrow\"},[_c('DependantsShort',{ref:\"dependantsShort\",attrs:{\"number-of-dependants\":_vm.form.profileDependantsNumber},on:{\"numberOfDependants\":function($event){_vm.form.profileDependantsNumber=$event},\"refresh\":_vm.refresh},model:{value:(_vm.form.dependants),callback:function ($$v) {_vm.$set(_vm.form, \"dependants\", $$v)},expression:\"form.dependants\"}})],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n
\n
Dependants
\n \n
\n \n
\n
\n\n\n\n","import mod from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dependants.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dependants.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Dependants.vue?vue&type=template&id=1ba68e37\"\nimport script from \"./Dependants.vue?vue&type=script&lang=js\"\nexport * from \"./Dependants.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n \n \n \n \n \n \n\n\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dependants.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dependants.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Dependants.vue?vue&type=template&id=37c19045\"\nimport script from \"./Dependants.vue?vue&type=script&lang=js\"\nexport * from \"./Dependants.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export const clientPersonOptions = {\n computed: {\n storePeople() {\n return this.$store.getters.people\n },\n partner() {\n // find partner (there will be two partners one for each family member)\n if (!this.storePeople) return null\n return this.storePeople.find(\n (person) => person.partner && person.partner !== this.$store.getters.client.id\n );\n },\n partnerRelationshipOnly () {\n return this.partnerListOptions.map(\n option => {\n return {\n label: option,\n value: option.toLowerCase()\n }\n }\n )\n },\n relationshipOptions() {\n let list = [];\n\n for (let i in this.partnerListOptions) {\n list.push({\n label: this.partnerListOptions[i],\n value: this.partnerListOptions[i].toLowerCase()\n });\n }\n for (let i in this.relationshipListOptions) {\n list.push({\n label: this.relationshipListOptions[i],\n value: this.relationshipListOptions[i].toLowerCase()\n });\n }\n if (!this.partner) return list;\n\n let relationship =\n 'relationship' in this.partner\n ? this.partner.relationship\n : 'relationship_to_client' in this.partner\n ? this.partner.relationship_to_client\n : 'NO RELATIONSHIP';\n\n\n for (let i in this.relationshipListOptions) {\n list.push({\n label: `${relationship}'s ${this.relationshipListOptions[i]}`,\n value: `${relationship}'s ${this.relationshipListOptions[\n i\n ].toLowerCase()}`\n });\n }\n return list;\n }\n },\n data() {\n return {\n friendRelationshipOnly: [\n {\n label: 'Friend',\n value: 'friend'\n },\n ],\n dependantUntilOptions: [\n {\n label: 'Until age 18',\n value: 'Until age 18'\n },\n {\n label: 'Until age 21',\n value: 'Until age 21'\n },\n {\n label: 'Until age 25',\n value: 'Until age 25'\n },\n {\n label: 'Until age 30',\n value: 'Until age 30'\n },\n {\n label: 'For life',\n value: 'For life'\n }\n ],\n childRelationshipOption: [\n {\n label: 'Son',\n value: 'son'\n },\n {\n label: 'Daughter',\n value: 'daughter'\n },\n ],\n childListOptions: [\n 'son',\n 'daughter'\n ],\n partnerListRelationships: [\n \"husband's\",\n \"wife's\",\n \"partner's\",\n \"civil partner's\",\n \"intended husband's\",\n \"intended wife's\"\n ],\n partnerListOptions: [\n 'husband',\n 'wife',\n 'partner',\n 'civil partner',\n 'intended husband',\n 'intended wife'\n ],\n relationshipListOptions: [\n 'son',\n 'daughter',\n 'brother',\n 'sister',\n 'niece',\n 'nephew',\n 'mother',\n 'father',\n 'cousin',\n 'friend',\n 'grandson',\n 'granddaughter',\n 'godfather',\n 'goddaughter',\n 'godson',\n 'godmother',\n 'stepfather',\n 'stepmother',\n 'stepson',\n 'stepdaughter'\n ]\n }\n },\n methods: {\n isPartner(person) {\n if (person && person.relationship_to_client) {\n return !!this.partnerListOptions.includes(person.relationship_to_client);\n } else if (person && person.relationship) {\n return !!this.partnerListOptions.includes(person.relationship);\n }\n return false;\n },\n }\n}\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports.VueSelect=t():e.VueSelect=t()}(\"undefined\"!=typeof self?self:this,(function(){return(()=>{var e={646:e=>{e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},860:e=>{e.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},206:e=>{e.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},319:(e,t,n)=>{var o=n(646),i=n(860),s=n(206);e.exports=function(e){return o(e)||i(e)||s()}},8:e=>{function t(n){return\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},t(n)}e.exports=t}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})};var o={};return(()=>{\"use strict\";n.r(o),n.d(o,{VueSelect:()=>m,default:()=>O,mixins:()=>_});var e=n(319),t=n.n(e),i=n(8),s=n.n(i),r=n(713),a=n.n(r);const l={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(e){var t=this;this.autoscroll&&e&&this.$nextTick((function(){return t.maybeAdjustScroll()}))}},methods:{maybeAdjustScroll:function(){var e,t=(null===(e=this.$refs.dropdownMenu)||void 0===e?void 0:e.children[this.typeAheadPointer])||!1;if(t){var n=this.getDropdownViewport(),o=t.getBoundingClientRect(),i=o.top,s=o.bottom,r=o.height;if(in.bottom)return this.$refs.dropdownMenu.scrollTop=t.offsetTop-(n.height-r)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},c={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var e=0;e=0;e--)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadDown:function(){for(var e=this.typeAheadPointer+1;e0&&void 0!==arguments[0]?arguments[0]:null;return this.mutableLoading=null==e?!this.mutableLoading:e}}};function p(e,t,n,o,i,s,r,a){var l,c=\"function\"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),s&&(c._scopeId=\"data-v-\"+s),r?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=l):i&&(l=a?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:c}}const h={Deselect:p({},(function(){var e=this.$createElement,t=this._self._c||e;return t(\"svg\",{attrs:{xmlns:\"http://www.w3.org/2000/svg\",width:\"10\",height:\"10\"}},[t(\"path\",{attrs:{d:\"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z\"}})])}),[],!1,null,null,null).exports,OpenIndicator:p({},(function(){var e=this.$createElement,t=this._self._c||e;return t(\"svg\",{attrs:{xmlns:\"http://www.w3.org/2000/svg\",width:\"14\",height:\"10\"}},[t(\"path\",{attrs:{d:\"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z\"}})])}),[],!1,null,null,null).exports},d={inserted:function(e,t,n){var o=n.context;if(o.appendToBody){var i=o.$refs.toggle.getBoundingClientRect(),s=i.height,r=i.top,a=i.left,l=i.width,c=window.scrollX||window.pageXOffset,u=window.scrollY||window.pageYOffset;e.unbindPosition=o.calculatePosition(e,o,{width:l+\"px\",left:c+a+\"px\",top:u+r+s+\"px\"}),document.body.appendChild(e)}},unbind:function(e,t,n){n.context.appendToBody&&(e.unbindPosition&&\"function\"==typeof e.unbindPosition&&e.unbindPosition(),e.parentNode&&e.parentNode.removeChild(e))}};const f=function(e){var t={};return Object.keys(e).sort().forEach((function(n){t[n]=e[n]})),JSON.stringify(t)};var y=0;const g=function(){return++y};function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function v(e){for(var t=1;t-1}},filter:{type:Function,default:function(e,t){var n=this;return e.filter((function(e){var o=n.getOptionLabel(e);return\"number\"==typeof o&&(o=o.toString()),n.filterBy(e,o,t)}))}},createOption:{type:Function,default:function(e){return\"object\"===s()(this.optionList[0])?a()({},this.label,e):e}},resetOnOptionsChange:{default:!1,validator:function(e){return[\"function\",\"boolean\"].includes(s()(e))}},clearSearchOnBlur:{type:Function,default:function(e){var t=e.clearSearchOnSelect,n=e.multiple;return t&&!n}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:\"auto\"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:\"[type=search]\"},mapKeydown:{type:Function,default:function(e,t){return e}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(e,t,n){var o=n.width,i=n.top,s=n.left;e.style.top=i,e.style.left=s,e.style.width=o}},dropdownShouldOpen:{type:Function,default:function(e){var t=e.noDrop,n=e.open,o=e.mutableLoading;return!t&&(n&&!o)}},uid:{type:[String,Number],default:function(){return g()}}},data:function(){return{search:\"\",open:!1,isComposing:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return void 0===this.value||this.$options.propsData.hasOwnProperty(\"reduce\")},selectedValue:function(){var e=this.value;return this.isTrackingValues&&(e=this.$data._value),null!=e&&\"\"!==e?[].concat(e):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var e=this,t={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:v({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,\"aria-autocomplete\":\"list\",\"aria-labelledby\":\"vs\".concat(this.uid,\"__combobox\"),\"aria-controls\":\"vs\".concat(this.uid,\"__listbox\"),ref:\"search\",type:\"search\",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{\"aria-activedescendant\":\"vs\".concat(this.uid,\"__option-\").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return e.isComposing=!0},compositionend:function(){return e.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(t){return e.search=t.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:\"openIndicator\",role:\"presentation\",class:\"vs__open-indicator\"}},listHeader:t,listFooter:t,header:v({},t,{deselect:this.deselect}),footer:v({},t,{deselect:this.deselect})}},childComponents:function(){return v({},h,{},this.components)},stateClasses:function(){return{\"vs--open\":this.dropdownOpen,\"vs--single\":!this.multiple,\"vs--multiple\":this.multiple,\"vs--searching\":this.searching&&!this.noDrop,\"vs--searchable\":this.searchable&&!this.noDrop,\"vs--unsearchable\":!this.searchable,\"vs--loading\":this.mutableLoading,\"vs--disabled\":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var e=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return e;var t=this.search.length?this.filter(e,this.search,this):e;if(this.taggable&&this.search.length){var n=this.createOption(this.search);this.optionExists(n)||t.unshift(n)}return t},isValueEmpty:function(){return 0===this.selectedValue.length},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(e,t){var n=this;!this.taggable&&(\"function\"==typeof n.resetOnOptionsChange?n.resetOnOptionsChange(e,t,n.selectedValue):n.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(e){this.isTrackingValues&&this.setInternalValueFromOptions(e)}},multiple:function(){this.clearSelection()},open:function(e){this.$emit(e?\"open\":\"close\")},search:function(e){e.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on(\"option:created\",this.pushTag)},methods:{setInternalValueFromOptions:function(e){var t=this;Array.isArray(e)?this.$data._value=e.map((function(e){return t.findOptionFromReducedValue(e)})):this.$data._value=this.findOptionFromReducedValue(e)},select:function(e){this.$emit(\"option:selecting\",e),this.isOptionSelected(e)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(e):(this.taggable&&!this.optionExists(e)&&this.$emit(\"option:created\",e),this.multiple&&(e=this.selectedValue.concat(e)),this.updateValue(e),this.$emit(\"option:selected\",e)),this.onAfterSelect(e)},deselect:function(e){var t=this;this.$emit(\"option:deselecting\",e),this.updateValue(this.selectedValue.filter((function(n){return!t.optionComparator(n,e)}))),this.$emit(\"option:deselected\",e)},clearSelection:function(){this.updateValue(this.multiple?[]:null)},onAfterSelect:function(e){var t=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=\"\"),this.noDrop&&this.multiple&&this.$nextTick((function(){return t.$refs.search.focus()}))},updateValue:function(e){var t=this;void 0===this.value&&(this.$data._value=e),null!==e&&(e=Array.isArray(e)?e.map((function(e){return t.reduce(e)})):this.reduce(e)),this.$emit(\"input\",e)},toggleDropdown:function(e){var n=e.target!==this.searchEl;n&&e.preventDefault();var o=[].concat(t()(this.$refs.deselectButtons||[]),t()([this.$refs.clearButton]||0));void 0===this.searchEl||o.filter(Boolean).some((function(t){return t.contains(e.target)||t===e.target}))?e.preventDefault():this.open&&n?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(e){var t=this;return this.selectedValue.some((function(n){return t.optionComparator(n,e)}))},isOptionDeselectable:function(e){return this.isOptionSelected(e)&&this.deselectFromDropdown},optionComparator:function(e,t){return this.getOptionKey(e)===this.getOptionKey(t)},findOptionFromReducedValue:function(e){var n=this,o=[].concat(t()(this.options),t()(this.pushedTags)).filter((function(t){return JSON.stringify(n.reduce(t))===JSON.stringify(e)}));return 1===o.length?o[0]:o.find((function(e){return n.optionComparator(e,n.$data._value)}))||e},closeSearchOptions:function(){this.open=!1,this.$emit(\"search:blur\")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var e=null;this.multiple&&(e=t()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(e)}},optionExists:function(e){var t=this;return this.optionList.some((function(n){return t.optionComparator(n,e)}))},normalizeOptionForSlot:function(e){return\"object\"===s()(e)?e:a()({},this.label,e)},pushTag:function(e){this.pushedTags.push(e)},onEscape:function(){this.search.length?this.search=\"\":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var e=this.clearSearchOnSelect,t=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:e,multiple:t})&&(this.search=\"\"),void this.closeSearchOptions()}this.mousedown=!1,0!==this.search.length||0!==this.options.length||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit(\"search:focus\")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onSearchKeyDown:function(e){var t=this,n=function(e){return e.preventDefault(),!t.isComposing&&t.typeAheadSelect()},o={8:function(e){return t.maybeDeleteValue()},9:function(e){return t.onTab()},27:function(e){return t.onEscape()},38:function(e){if(e.preventDefault(),t.open)return t.typeAheadUp();t.open=!0},40:function(e){if(e.preventDefault(),t.open)return t.typeAheadDown();t.open=!0}};this.selectOnKeyCodes.forEach((function(e){return o[e]=n}));var i=this.mapKeydown(o,this);if(\"function\"==typeof i[e.keyCode])return i[e.keyCode](e)},onSearchKeyPress:function(e){this.open||32!==e.keyCode||(e.preventDefault(),this.open=!0)}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(\"div\",{staticClass:\"v-select\",class:e.stateClasses,attrs:{dir:e.dir}},[e._t(\"header\",null,null,e.scope.header),e._v(\" \"),n(\"div\",{ref:\"toggle\",staticClass:\"vs__dropdown-toggle\",attrs:{id:\"vs\"+e.uid+\"__combobox\",role:\"combobox\",\"aria-expanded\":e.dropdownOpen.toString(),\"aria-owns\":\"vs\"+e.uid+\"__listbox\",\"aria-label\":\"Search for option\"},on:{mousedown:function(t){return e.toggleDropdown(t)}}},[n(\"div\",{ref:\"selectedOptions\",staticClass:\"vs__selected-options\"},[e._l(e.selectedValue,(function(t){return e._t(\"selected-option-container\",[n(\"span\",{key:e.getOptionKey(t),staticClass:\"vs__selected\"},[e._t(\"selected-option\",[e._v(\"\\n \"+e._s(e.getOptionLabel(t))+\"\\n \")],null,e.normalizeOptionForSlot(t)),e._v(\" \"),e.multiple?n(\"button\",{ref:\"deselectButtons\",refInFor:!0,staticClass:\"vs__deselect\",attrs:{disabled:e.disabled,type:\"button\",title:\"Deselect \"+e.getOptionLabel(t),\"aria-label\":\"Deselect \"+e.getOptionLabel(t)},on:{click:function(n){return e.deselect(t)}}},[n(e.childComponents.Deselect,{tag:\"component\"})],1):e._e()],2)],{option:e.normalizeOptionForSlot(t),deselect:e.deselect,multiple:e.multiple,disabled:e.disabled})})),e._v(\" \"),e._t(\"search\",[n(\"input\",e._g(e._b({staticClass:\"vs__search\"},\"input\",e.scope.search.attributes,!1),e.scope.search.events))],null,e.scope.search)],2),e._v(\" \"),n(\"div\",{ref:\"actions\",staticClass:\"vs__actions\"},[n(\"button\",{directives:[{name:\"show\",rawName:\"v-show\",value:e.showClearButton,expression:\"showClearButton\"}],ref:\"clearButton\",staticClass:\"vs__clear\",attrs:{disabled:e.disabled,type:\"button\",title:\"Clear Selected\",\"aria-label\":\"Clear Selected\"},on:{click:e.clearSelection}},[n(e.childComponents.Deselect,{tag:\"component\"})],1),e._v(\" \"),e._t(\"open-indicator\",[e.noDrop?e._e():n(e.childComponents.OpenIndicator,e._b({tag:\"component\"},\"component\",e.scope.openIndicator.attributes,!1))],null,e.scope.openIndicator),e._v(\" \"),e._t(\"spinner\",[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:e.mutableLoading,expression:\"mutableLoading\"}],staticClass:\"vs__spinner\"},[e._v(\"Loading...\")])],null,e.scope.spinner)],2)]),e._v(\" \"),n(\"transition\",{attrs:{name:e.transition}},[e.dropdownOpen?n(\"ul\",{directives:[{name:\"append-to-body\",rawName:\"v-append-to-body\"}],key:\"vs\"+e.uid+\"__listbox\",ref:\"dropdownMenu\",staticClass:\"vs__dropdown-menu\",attrs:{id:\"vs\"+e.uid+\"__listbox\",role:\"listbox\",tabindex:\"-1\"},on:{mousedown:function(t){return t.preventDefault(),e.onMousedown(t)},mouseup:e.onMouseUp}},[e._t(\"list-header\",null,null,e.scope.listHeader),e._v(\" \"),e._l(e.filteredOptions,(function(t,o){return n(\"li\",{key:e.getOptionKey(t),staticClass:\"vs__dropdown-option\",class:{\"vs__dropdown-option--deselect\":e.isOptionDeselectable(t)&&o===e.typeAheadPointer,\"vs__dropdown-option--selected\":e.isOptionSelected(t),\"vs__dropdown-option--highlight\":o===e.typeAheadPointer,\"vs__dropdown-option--disabled\":!e.selectable(t)},attrs:{id:\"vs\"+e.uid+\"__option-\"+o,role:\"option\",\"aria-selected\":o===e.typeAheadPointer||null},on:{mouseover:function(n){e.selectable(t)&&(e.typeAheadPointer=o)},click:function(n){n.preventDefault(),n.stopPropagation(),e.selectable(t)&&e.select(t)}}},[e._t(\"option\",[e._v(\"\\n \"+e._s(e.getOptionLabel(t))+\"\\n \")],null,e.normalizeOptionForSlot(t))],2)})),e._v(\" \"),0===e.filteredOptions.length?n(\"li\",{staticClass:\"vs__no-options\"},[e._t(\"no-options\",[e._v(\"\\n Sorry, no matching options.\\n \")],null,e.scope.noOptions)],2):e._e(),e._v(\" \"),e._t(\"list-footer\",null,null,e.scope.listFooter)],2):n(\"ul\",{staticStyle:{display:\"none\",visibility:\"hidden\"},attrs:{id:\"vs\"+e.uid+\"__listbox\",role:\"listbox\"}})]),e._v(\" \"),e._t(\"footer\",null,null,e.scope.footer)],2)}),[],!1,null,null,null).exports,_={ajax:u,pointer:c,pointerScroll:l},O=m})(),o})()}));\n//# sourceMappingURL=vue-select.js.map","export const textHelpers = {\n methods: {\n capitalise(value) {\n if (value) {\n let words = value.split(/[ ,]+/).filter(Boolean);\n let result = '';\n for (let i = 0; i < words.length; i++) {\n let word = words[i].toLowerCase();\n result += word[0].toUpperCase() + word.substr(1);\n if (i !== words.length - 1) result += ' '\n }\n return result;\n }\n return value;\n },\n firstWord(string, plural = false) {\n let name = String(string).split(' ')[0];\n if (plural) name += \"'s\";\n return name;\n },\n hisHer(gender, capitalise = false) {\n if (capitalise) return gender === 'male' ? 'His' : 'Her';\n return gender === 'male' ? 'his' : 'her';\n },\n himHer(gender, capitalise = false) {\n if (capitalise) return gender === 'male' ? 'Him' : 'Her';\n return gender === 'male' ? 'him' : 'her';\n },\n heShe(gender, capitalise = false) {\n if (capitalise) return gender === 'male' ? 'He' : 'She';\n return gender === 'male' ? 'he' : 'she';\n },\n relationName(person, capitalise) {\n let string = 'my ';\n if (capitalise) string = this.capitalise(string);\n if (person.relationship) string += `${person.relationship} `;\n return (string += this.fullName(person));\n },\n highlightCapitalisedWords(string, textClass = 'text-red') {\n if (!string) return string;\n var capitalisedWords = string.match(/\\b[A-Z]{2,}\\b/g);\n for (let i in capitalisedWords) {\n string = string.replaceAll(\n capitalisedWords[i],\n `${capitalisedWords[i]}`\n );\n }\n return string;\n },\n isAre(args) {\n // init\n let string = '';\n if (!('errorMessage' in args))\n args.errorMessage = 'CONFIRM RECIPIENTS WITH CLIENT';\n if (!('reverse' in args)) args.reverse = false;\n let groups = args.list.filter(\n (personGroup) => personGroup.type === 'group'\n );\n let pro = args.list.filter((item) => item.type === 'professional');\n let hasGroup = !!(groups && groups.length);\n\n // start\n if (args.list && args.list.length) {\n if (pro.length && args.list.length === 1) string = args.word;\n\n if (args.list.length === 1 && !hasGroup) {\n string = 'is';\n } else if (args.list.length > 1 || hasGroup) {\n string = 'are';\n }\n if (args.reverse) {\n string[string.length - 1] === 'are'\n ? (string = string.slice(0, -1))\n : (string = string + 'are');\n }\n return string;\n }\n return `${args.errorMessage}`;\n },\n hasHave(args) {\n // init\n let string = '';\n if (!('errorMessage' in args))\n args.errorMessage = 'CONFIRM RECIPIENTS WITH CLIENT';\n if (!('reverse' in args)) args.reverse = false;\n let groups = args.list.filter(\n (personGroup) => personGroup.type === 'group'\n );\n let pro = args.list.filter((item) => item.type === 'professional');\n let hasGroup = !!(groups && groups.length);\n\n // start\n if (args.list && args.list.length) {\n if (pro.length && args.list.length === 1) string = args.word;\n\n if (args.list.length === 1 && !hasGroup) {\n string = 'has';\n } else if (args.list.length > 1 || hasGroup) {\n string = 'have';\n }\n if (args.reverse) {\n string[string.length - 1] === 'have'\n ? (string = string.slice(0, -1))\n : (string = string + 'have');\n }\n return string;\n }\n return `${args.errorMessage}`;\n },\n oneOrMore(args) {\n // init\n let string = '';\n if (!('errorMessage' in args))\n args.errorMessage = 'CONFIRM RECIPIENTS WITH CLIENT';\n if (!('reverse' in args)) args.reverse = false;\n let groups = args.list.filter(\n (personGroup) => personGroup.type === 'group'\n );\n let pro = args.list.filter((item) => item.type === 'professional');\n let hasGroup = !!(groups && groups.length);\n\n // start\n if (args.list && args.list.length) {\n if (pro.length && args.list.length === 1) string = args.word;\n\n if (args.list.length === 1 && !hasGroup) {\n string = args.word;\n } else if (args.list.length > 1 || hasGroup) {\n string = args.word + 's';\n }\n if (args.reverse) {\n string[string.length - 1] === 's'\n ? (string = string.slice(0, -1))\n : (string = string + 's');\n }\n return string;\n }\n return `${args.errorMessage}`;\n },\n capitalFirst(string) {\n return string[0].toUpperCase() + string.slice(1);\n },\n listWords(args) {\n // init\n let words = 'words' in args ? args.words : [];\n\n let andOr = 'andOr' in args ? args.andOr : ' and ';\n let separator = 'separator' in args ? args.separator : ', ';\n\n let string = '';\n // start\n for (var i = 0; i < words.length; i++) {\n let word = words[i];\n // spaces, and, or\n if (i !== 0 && i !== words.length - 1)\n string += separator;\n if (i !== 0 && i === words.length - 1) string += andOr;\n string += ` ${word}`\n }\n return string;\n }\n }\n};\n","var global = require('../internals/global');\nvar classof = require('../internals/classof');\n\nvar String = global.String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return String(argument);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar isCallable = require('../internals/is-callable');\nvar isRegExp = require('../internals/is-regexp');\nvar toString = require('../internals/to-string');\nvar getMethod = require('../internals/get-method');\nvar regExpFlags = require('../internals/regexp-flags');\nvar getSubstitution = require('../internals/get-substitution');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar REPLACE = wellKnownSymbol('replace');\nvar RegExpPrototype = RegExp.prototype;\nvar TypeError = global.TypeError;\nvar getFlags = uncurryThis(regExpFlags);\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\nvar max = Math.max;\n\nvar stringIndexOf = function (string, searchValue, fromIndex) {\n if (fromIndex > string.length) return -1;\n if (searchValue === '') return fromIndex;\n return indexOf(string, searchValue, fromIndex);\n};\n\n// `String.prototype.replaceAll` method\n// https://tc39.es/ecma262/#sec-string.prototype.replaceall\n$({ target: 'String', proto: true }, {\n replaceAll: function replaceAll(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, replacement;\n var position = 0;\n var endOfLastMatch = 0;\n var result = '';\n if (searchValue != null) {\n IS_REG_EXP = isRegExp(searchValue);\n if (IS_REG_EXP) {\n flags = toString(requireObjectCoercible('flags' in RegExpPrototype\n ? searchValue.flags\n : getFlags(searchValue)\n ));\n if (!~indexOf(flags, 'g')) throw TypeError('`.replaceAll` does not allow non-global regexes');\n }\n replacer = getMethod(searchValue, REPLACE);\n if (replacer) {\n return call(replacer, searchValue, O, replaceValue);\n } else if (IS_PURE && IS_REG_EXP) {\n return replace(toString(O), searchValue, replaceValue);\n }\n }\n string = toString(O);\n searchString = toString(searchValue);\n functionalReplace = isCallable(replaceValue);\n if (!functionalReplace) replaceValue = toString(replaceValue);\n searchLength = searchString.length;\n advanceBy = max(1, searchLength);\n position = stringIndexOf(string, searchString, 0);\n while (position !== -1) {\n replacement = functionalReplace\n ? toString(replaceValue(searchString, position, string))\n : getSubstitution(searchString, string, position, [], undefined, replaceValue);\n result += stringSlice(string, endOfLastMatch, position) + replacement;\n endOfLastMatch = position + searchLength;\n position = stringIndexOf(string, searchString, position + advanceBy);\n }\n if (endOfLastMatch < string.length) {\n result += stringSlice(string, endOfLastMatch);\n }\n return result;\n }\n});\n","import {httpQuestionnaire} from \"@/services\";\n\nexport const childrenNumberHelpers = {\n computed: {\n childrenNumber: {\n set(value) {\n this.$emit('numberOfChildren', value)\n },\n get() {\n return this.numberOfChildren\n }\n }\n },\n methods: {\n async setNumberOfChildrenYN(event) {\n // set to no children\n if (event === false) {\n await this.patchChildrenNumber(0)\n } else {\n // set profileNumberOfChildren to the number of children created\n await this.patchChildrenNumber(this.children.length)\n }\n },\n setNumberOfChildrenData() {\n this.patchChildrenNumber(this.data.length)\n },\n async patchChildrenNumber(value) {\n\n return httpQuestionnaire.patch('client_client', {\n profileChildrenNumber: value\n }).then(\n () => {\n this.childrenNumber = value\n return true\n }\n ).catch(\n error => {\n console.log(error)\n return false\n }\n )\n },\n }\n}\n","import {httpQuestionnaire} from \"@/services\";\nimport {clone} from \"@/mixins/clone\";\nimport { scrollTo } from \"@/mixins/scrollTo\";\n\nexport const objectSaveHelpers = {\n name: 'objectSaveHelpers',\n mixins: [clone, scrollTo],\n data () {\n return {\n loading: false\n }\n },\n methods: {\n saveObject(object, ref, callbackFunction=null, formObject=null, objectId=null) {\n console.log('save object main')\n if (object && object.id) this.patch(object, ref, formObject, objectId)\n else if (object && !object.id) this.post(object, callbackFunction, ref, formObject, objectId)\n else if (!object && ref) this.closeCard(ref)\n else if (callbackFunction) callbackFunction()\n },\n get() {\n httpQuestionnaire.get(this.db.loadLocation).then(\n response => {\n this.data = response.data\n this.$nextTick(() => {\n if (this.db.callbackFunction) this.db.callbackFunction()\n this.$emit('get')\n })\n }\n ).catch(\n error => {\n console.log(error)\n }\n )\n },\n // eslint-disable-next-line no-unused-vars\n post(object, callbackFunction=null, ref=null, formObject=null, objectId=null) {\n console.log('post ob save', object, callbackFunction, ref, formObject, objectId)\n this.clearErrors(formObject)\n // let data = {...object, access_code: this.$store.getters.accessCode}\n if (this.noSave) {\n // push or put object to array if not refreshing from server\n this.data = object\n if (formObject) this.forms[formObject] = null\n else this.form = null\n if (this.jsErrors) this.jsErrors = []\n if (callbackFunction) callbackFunction()\n } else {\n this.loading = true\n console.log('save this', object)\n httpQuestionnaire.post(this.db.saveLocation, object).then(\n (response) => {\n this.loading = false\n // this.get()\n // send refresh emit rather than get directly to ensure all people in fieldset are in sync\n if (this.db.syncMultipleObjectOnSave) this.$emit('refresh')\n else if (this.db.fetchObjectsOnSave) {\n // fetch objects and push to form\n this.get()\n } else {\n // push or put object to array if not refreshing from server\n if (Array.isArray(this.data)) {\n this.data.push(response.data)\n } else {\n this.data = response.data\n }\n }\n if (formObject) this.forms[formObject] = null\n else this.form = null\n\n if (this.jsErrors) this.jsErrors = []\n // collapse item\n try {\n if (ref) this.closeCard(ref)\n } catch (error) {\n console.log('ref close card error', error)\n }\n if (callbackFunction) callbackFunction()\n }\n ).catch(\n error => {\n this.loading = false\n this.handleErrors(error.response.data, formObject, objectId)\n }\n )\n }\n\n },\n patch(object, ref, formObject=null, objectId=null) {\n console.log('patch object', objectId)\n this.clearErrors()\n this.loading = true\n // let data = {...object, access_code: this.$store.getters.accessCode}\n httpQuestionnaire.patch(this.db.saveLocation, object).then(\n () => {\n this.loading = false\n // collapse item\n this.closeCard(ref)\n this.$emit('refreshPatch')\n }\n ).catch(\n error => {\n console.log(error)\n this.loading = false\n this.handleErrors(error.response.data, formObject, objectId)\n }\n )\n },\n deleteObject(id, callbackFunction=null) {\n this.clearErrors()\n let params = {\n id: id\n }\n httpQuestionnaire.delete(this.db.deleteLocation, {params: params}).then(\n () => {\n // this.get()\n if (Array.isArray(this.data)) {\n let index = this.data.findIndex(object => object.id === id)\n this.data.splice(index, 1)\n } else {\n this.data = null\n }\n if (callbackFunction) callbackFunction()\n if (this.db.deleteCallbackFunction) this.db.deleteCallbackFunction()\n this.$emit('refreshDelete')\n }\n ).catch(\n error => {\n console.log(error)\n }\n )\n },\n clearErrors(formObject=null) {\n if (formObject) this.errorsPost[formObject] = {}\n else this.errorsPost = {}\n },\n handleErrors(errors, formObject=null, objectId=null) {\n let keys = Object.keys(errors)\n\n // if multiple forms with multiple errors of the same field then this will scroll to the first form\n // which may not be the desired behaviour\n\n // if object id then scroll to existing object field with id else new forms will not have an\n // id so try scroll to field without object id\n let id = `#${keys[0]}${objectId ? objectId : ''}`\n try {\n this.scrollTo(id) // goto field () may not be in order of listed fields\n } catch (error) {\n console.log('error scrolling to field', id, error)\n }\n\n\n if (formObject) this.errorsPost[formObject] = errors\n else this.errorsPost = errors\n },\n closeCard (ref) {\n if (ref in this.$refs) this.$refs[ref][0].show = false\n this.scrollTo(`#${ref}`)\n }\n }\n}\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('QuestionBase',{attrs:{\"errors\":[..._vm.errorsPost, ..._vm.serverErrors, ..._vm.jsErrors],\"question\":_vm.question,\"valid\":_vm.data !== null}},[_c('InputSelect',{attrs:{\"args\":_vm.args,\"db\":_vm.db,\"errors-post\":_vm.errorsPost,\"js-errors\":_vm.jsErrors,\"no-save\":_vm.noSave,\"options\":_vm.dependantUntilOptions,\"skipped\":_vm.skipped},on:{\"jsErrors\":function($event){_vm.jsErrors=$event},\"serverErrors\":function($event){_vm.serverErrors=$event},\"skipped\":function($event){_vm.skipped=$event}},model:{value:(_vm.data),callback:function ($$v) {_vm.data=$$v},expression:\"data\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n\n\n","import mod from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DependantUntil.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DependantUntil.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./DependantUntil.vue?vue&type=template&id=198ee9a6\"\nimport script from \"./DependantUntil.vue?vue&type=script&lang=js\"\nexport * from \"./DependantUntil.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"question-multipart-wrapper d-flex flex-wrap align-items-end\"},[_c('QuestionBase',{attrs:{\"question\":_vm.question,\"valid\":!!_vm.data,\"errors\":[..._vm.serverErrors, ..._vm.errorsPost, ..._vm.jsErrors]}},[(_vm.data || _vm.data === null)?_c('InputDateSplit',{attrs:{\"db\":_vm.db,\"args\":_vm.args,\"skipped\":_vm.skipped,\"no-save\":_vm.noSave},on:{\"skipped\":function($event){_vm.skipped=$event},\"serverErrors\":function($event){_vm.serverErrors=$event},\"jsErrors\":function($event){_vm.jsErrors=$event}},model:{value:(_vm.data),callback:function ($$v) {_vm.data=$$v},expression:\"data\"}}):_vm._e()],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n
\n \n \n \n
\n\n\n","import mod from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dob.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dob.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Dob.vue?vue&type=template&id=12780363\"\nimport script from \"./Dob.vue?vue&type=script&lang=js\"\nexport * from \"./Dob.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { textHelpers } from '@/mixins/textHelpers';\n\nexport const personHelpers = {\n mixins: [textHelpers],\n methods: {\n fullName(\n person,\n firstName = false,\n strong = false,\n firstInitial = false,\n noMiddleName = false\n ) {\n\n if (person) {\n if (person.name) {\n if (firstName && person.type !== 'group') return this.firstWord(person.name);\n if (firstInitial) return person.name[0];\n return person.name;\n }\n let name = '';\n if (firstInitial) name = person.name_first[0] + ' ';\n else name = person.name_first + ' ';\n if (person.name_middle && !noMiddleName)\n name += person.name_middle + ' ';\n name += person.name_last;\n if (firstName && person.type !== 'group') return this.firstWord(name);\n if (strong) return `${name}`;\n return `${name}`;\n }\n return 'NO PERSON SET';\n },\n personAddress(address, strong = false, separator = ' ') {\n if (!address) return 'NO ADDRESS';\n let string = '';\n if (address.line_1) string += address.line_1 + separator;\n if (address.line_2) string += address.line_2 + separator;\n if (address.post_town) string += address.post_town + separator;\n if (address.postcode) string += address.postcode;\n if (strong)\n return `${string}`;\n return string;\n },\n listPeopleAddressDob(args) {\n // init\n let string = '';\n let people = args.people;\n if (!('andOr' in args)) args.andOr = ' and ';\n if (!('relationship' in args)) args.relationship = true;\n if (!('noDob' in args)) args.noDob = false;\n if (!('space' in args)) args.space = ', ';\n if (!('address' in args)) args.address = false;\n if (!('addressSeparator' in args)) args.addressSeparator = ' ';\n if (!('addressPre' in args)) args.addressPre = 'of ';\n\n if (!('listItems' in args)) args.listItems = false;\n if (!('errorMessage' in args)) args.errorMessage = 'NO PEOPLE SET';\n if (!('errorBold' in args)) args.errorBold = true;\n if (!('firstName' in args)) args.firstName = false\n if (!('personBold' in args)) args.personBold = false\n\n\n // guards\n if (!people.length) {\n if (args.errorBold) {\n return `${args.errorMessage}`;\n }\n return args.errorMessage;\n }\n\n // start\n for (let i = 0; i < people.length; i++) {\n // spaces(, ), and/or\n if (i !== 0 && i !== people.length - 1 && !args.listItems)\n string += args.space;\n if (i === people.length - 1 && i !== 0 && !args.listItems)\n string += args.andOr;\n\n // name address dob\n let name = '';\n if (people[i].type === 'charity') {\n // charity display name as is (no first names)\n name += `${people[i].name}`;\n } else {\n name += `${this.fullName(people[i], args.firstName, args.personBold)}`;\n\n }\n if (args.address)\n name += `${args.addressPre}${this.personAddress(\n people[i].address,\n true,\n args.addressSeparator\n )}`;\n if (!args.noDob)\n name += ` born ${this.formatDob({\n date: people[i].dob,\n strong: true\n })}`;\n // group 'your' prefix\n if (people[i].type === 'group') name = `your ${name}`\n if (args.listItems) string += `