{"version":3,"sources":["webpack:///./src/js/forms/store/transfer-request-store.js","webpack:///./src/js/forms/store/transfer-modules.js","webpack:///./src/js/forms/store/helpers.js"],"names":["deadline","sections","display","store_key","component","status_array","generateStatusArray","component_array","generateComponentArray","modules","property_information","namespaced","state","project_name","tax_map_number","fund_recipient","current_uses","acreage_requested","greenbelt_land_market_value_from_appraisal","transfer_type","temporary_duration","transfer_reason","describe_uses_change","describe_how_property_changed","getters","getField","mutations","updateField","requester_information","agency","name","address","street_1","street_2","city","zip","contact","title","phone","email","compensation","describe_compensation","is_offering_land","land","total_acreage_offered","current_owner","describe_replacement_land_characteristics","replacement_land_market_value_from_appraisal","is_offering_cash","cash","total_offered","how_amount_determined","transfer_draft_terms","attachments","greenbelt_property_plats","greenbelt_property_appraisals","replacement_property_plats","replacement_property_appraisals","other","getFileList","category","addFileToStore","file","push","removeFileFromStore","file_index","map","item","indexOf","splice","actions","commit","dispatch","payload","path","value","root","agreement","grantor","signature","signature_points","date","grantee","setGrantor","Date","setGrantee","forEach","section","filter"],"mappings":"kHAAA,kNAGO,MAAMA,EAAW,KAEXC,EAAW,CACvB,CACCC,QAAS,WACTC,UAAW,uBACXC,UAAW,IAAM,iDAElB,CACCF,QAAS,YACTC,UAAW,wBACXC,UAAW,IAAM,iDAElB,CACCF,QAAS,eACTC,UAAW,eACXC,UAAW,IAAM,iDAElB,CACCF,QAAS,cACTC,UAAW,cACXC,UAAW,IAAM,iDAElB,CACCF,QAAS,YACTC,UAAW,YACXC,UAAW,IAAM,kDAINC,EAAeC,eAAoBL,GACnCM,EAAkBC,eAAuBP,GAEvC,iBACXQ,I,kCCrCJ,qQAEO,MAAMC,EAAuB,CACnCC,YAAY,EACZC,MAAO,CACNC,aAAc,KACdC,eAAgB,KAChBC,eAAgB,KAChBC,aAAc,KAEdC,kBAAmB,KACnBC,2CAA4C,KAC5CC,cAAe,KACfC,mBAAoB,KACpBC,gBAAiB,KACjBC,qBAAsB,KACtBC,8BAA+B,MAGhCC,QAA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AEpD,EAAF,OAAS2D,EAAT,SAAiBC,GAAYC,GAChDF,EAAO,sBAAuBE,GAC9BD,EAAS,+BAAgC,CAAEE,KAAM,CAAC,cAAeD,EAAQb,UAAYe,MAAO/D,EAAM6D,EAAQb,WAAY,CAAEgB,MAAM,OAKpHC,EAAY,CACxBlE,YAAY,EACZC,MAAO,CACNkE,QAAS,CACRC,UAAW,KACXC,iBAAkB,GAClBlD,KAAM,KACNO,MAAO,KACP4C,KAAM,MAEPC,QAAS,CACRH,UAAW,KACXC,iBAAkB,GAClBlD,KAAM,KACNO,MAAO,KACP4C,KAAM,OAGRzD,QAAS,CACRC,iBAEDC,UAAW,CACVC,mBACAwD,WAAWvE,GAAO,UAACmE,IAClBnE,EAAMkE,QAAQC,UAAYA,EAC1BnE,EAAMkE,QAAQG,KAAO,IAAIG,MAE1BC,WAAWzE,GAAO,UAACmE,IAClBnE,EAAMsE,QAAQH,UAAYA,EAC1BnE,EAAMsE,QAAQD,KAAO,IAAIG,S,kCCrJrB,SAAS9E,EAAoBL,GACnC,MAAMI,EAAe,GAIrB,OAHAJ,EAASqF,QAASC,IACjBlF,EAAakF,EAAQpF,WAAa,OAE5BE,EAGD,SAASG,EAAuBP,GACtC,OAAOA,EACNuF,OAAQ,EAAGrF,eAA8B,gBAAdA,GAC3B+D,IAAK,EAAG9D,eAAgBA,GAX1B","file":"js/chunk-1ce61bee.f49e1454.js","sourcesContent":["import * as modules from './transfer-modules.js';\nimport { generateStatusArray, generateComponentArray} from './helpers';\n\nexport const deadline = null;\n\nexport const sections = [\n\t{\n\t\tdisplay: \"Property\",\n\t\tstore_key: \"property_information\",\n\t\tcomponent: () => import('@/js/forms/transfer-request/Property-Information')\n\t},\n\t{\n\t\tdisplay: \"Requester\",\n\t\tstore_key: \"requester_information\",\n\t\tcomponent: () => import('@/js/forms/transfer-request/Requester-Information')\n\t},\n\t{\n\t\tdisplay: \"Compensation\",\n\t\tstore_key: \"compensation\",\n\t\tcomponent: () => import('@/js/forms/transfer-request/Compensation')\n\t},\n\t{\n\t\tdisplay: \"Attachments\",\n\t\tstore_key: \"attachments\",\n\t\tcomponent: () => import('@/js/forms/transfer-request/Attachments')\n\t},\n\t{\n\t\tdisplay: \"Agreement\",\n\t\tstore_key: \"agreement\",\n\t\tcomponent: () => import('@/js/forms/transfer-request/Agreement')\n\t},\n];\n\nexport const status_array = generateStatusArray(sections);\nexport const component_array = generateComponentArray(sections);\n\nexport default {\n\t...modules,\n}\n","import { getField, updateField } from 'vuex-map-fields';\n\nexport const property_information = {\n\tnamespaced: true,\n\tstate: {\n\t\tproject_name: null,\n\t\ttax_map_number: null,\n\t\tfund_recipient: null,\n\t\tcurrent_uses: null,\n\n\t\tacreage_requested: null,\n\t\tgreenbelt_land_market_value_from_appraisal: null,\n\t\ttransfer_type: null,\n\t\ttemporary_duration: null,\n\t\ttransfer_reason: null,\n\t\tdescribe_uses_change: null,\n\t\tdescribe_how_property_changed: null\n\n\t},\n\tgetters: {\n\t\tgetField\n\t},\n\tmutations: {\n\t\tupdateField\n\t},\n}\n\nexport const requester_information = {\n\tnamespaced: true,\n\tstate: {\n\t\tagency: {\n\t\t\tname: null,\n\t\t\taddress: {\n\t\t\t\tstreet_1: null,\n\t\t\t\tstreet_2: null,\n\t\t\t\tcity: null,\n\t\t\t\tstate: null,\n\t\t\t\tzip: null\n\t\t\t}\n\t\t},\n\t\tcontact: {\n\t\t\tname: null,\n\t\t\ttitle: null,\n\t\t\tphone: null,\n\t\t\temail: null\n\t\t}\n\t},\n\tgetters: {\n\t\tgetField\n\t},\n\tmutations: {\n\t\tupdateField\n\t},\n}\n\nexport const compensation = {\n\tnamespaced: true,\n\tstate: {\n\t\tdescribe_compensation: null,\n\t\tis_offering_land: null,\n\t\tland: {\n\t\t\ttax_map_number: null,\n\t\t\ttotal_acreage_offered: null,\n\t\t\tcurrent_owner: null,\n\t\t\tcurrent_uses: null,\n\t\t\tdescribe_replacement_land_characteristics: null,\n\t\t\treplacement_land_market_value_from_appraisal: null\n\t\t},\n\t\tis_offering_cash: null,\n\t\tcash: {\n\t\t\ttotal_offered: null,\n\t\t\thow_amount_determined: null,\n\t\t},\n\t\ttransfer_draft_terms: null\n\t},\n\tgetters: {\n\t\tgetField\n\t},\n\tmutations: {\n\t\tupdateField\n\t},\n}\n\nexport const attachments = {\n\tnamespaced: true,\n\tstate: {\n\t\tgreenbelt_property_plats: [],\n\t\tgreenbelt_property_appraisals: [],\n\t\treplacement_property_plats: [],\n\t\treplacement_property_appraisals: [],\n\t\tother: []\n\t},\n\tgetters: {\n\t\tgetField,\n\t\tgetFileList: (state) => (category) => {\n\t\t\treturn state[category];\n\t\t}\n\t},\n\tmutations: {\n\t\tupdateField,\n\t\taddFileToStore(state, { category, file }){\n\t\t\tstate[category].push(file);\n\t\t},\n\t\tremoveFileFromStore(state, { category, file }){\n\t\t\tconst file_index = state[category].map(item => item.name).indexOf(file.name);\n\t\t\tstate[category].splice(file_index, 1);\n\t\t}\n\t},\n\tactions: {\n\t\taddFileToStore({ state, commit, dispatch }, payload){\n\t\t\tcommit('addFileToStore', payload);\n\t\t\tdispatch('application/patchApplication', { path: ['attachments', payload.category] , value: state[payload.category]}, { root: true });\n\t\t},\n\t\tremoveFileFromStore({ state, commit, dispatch }, payload){\n\t\t\tcommit('removeFileFromStore', payload);\n\t\t\tdispatch('application/patchApplication', { path: ['attachments', payload.category] , value: state[payload.category]}, { root: true });\n\t\t}\n\t}\n}\n\nexport const agreement = {\n\tnamespaced: true,\n\tstate: {\n\t\tgrantor: {\n\t\t\tsignature: null,\n\t\t\tsignature_points: [],\n\t\t\tname: null,\n\t\t\ttitle: null,\n\t\t\tdate: null\n\t\t},\n\t\tgrantee: {\n\t\t\tsignature: null,\n\t\t\tsignature_points: [],\n\t\t\tname: null,\n\t\t\ttitle: null,\n\t\t\tdate: null\n\t\t}\n\t},\n\tgetters: {\n\t\tgetField\n\t},\n\tmutations: {\n\t\tupdateField,\n\t\tsetGrantor(state, {signature}){\n\t\t\tstate.grantor.signature = signature;\n\t\t\tstate.grantor.date = new Date();\n\t\t},\n\t\tsetGrantee(state, {signature}){\n\t\t\tstate.grantee.signature = signature;\n\t\t\tstate.grantee.date = new Date();\n\t\t}\n\t}\n}\n","export function generateStatusArray(sections){\n\tconst status_array = {};\n\tsections.forEach( section => {\n\t\tstatus_array[section.store_key] = null;\n\t})\n\treturn status_array;\n}\n\nexport function generateComponentArray(sections){\n\treturn sections\n\t.filter( ({ store_key }) => store_key !== 'attachments' ) // Print view does not need to display attachments\n\t.map( ({ component }) => component );\n}\n"],"sourceRoot":""}