PageSourceSearch

https://ngatirangi.com/2.39562e714913425e553a.js

js ngatirangi.com collected 2026-09-30 20:18:41 UTC 27,155 bytes, 2 lines download raw bytes

1(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[2],{
1"./src/app/components/content-blocks/registration-form.tsx":function(e,a,t){"use strict";t.r(a),t.d(a,"RegistrationForm",(function(){return T}));var i=t("./node_modules/@loadable/component/dist/loadable.esm.js"),r=t("./node_modules/@plinknz/tah-website-elements/dist/index.js"),n=t("./node_modules/react/index.js"),o=t("./src/app/config/register/index.ts"),s=t("./src/app/config/register/marae.ts"),l=t("./src/app/service/register/api.ts"),u=t("./src/app/components/form/datepicker.tsx");var c=t("./src/app/components/form/address-finder-input.tsx");var p=t("./src/app/config/register/takiwa.ts"),m=t("./src/app/static-data/whanau-marae.json"),d=t("./src/app/static-data/whanau-marae-secondary.json");async function h(e,a){const t=await Object(p.a)(a),i=await Object(s.a)(a),o=new Array(4).fill(0);function l(e,a,r){if("unknown"===a)return void(e.value="aua");const n=Object.values(i).find(({id:e})=>e===r),o={marae:n.description,maraeId:r,takiwa:t.find(({id:e})=>e===a).description,takiwaId:a,hapu:null,hapuId:null},s=n.hapu[0];1===n.hapu.length&&(o.hapu=s.description,o.hapuId=s.id),e.value=o}function u(e,a,i){const r=e.find(({whanau:e})=>e.includes(i));let n,o;if(r){const{marae:e}=r;return t.forEach(({marae:a,id:t})=>a.forEach(a=>{a&&a.description===e&&(n=a.id,o=t)})),l(a,o,n),n}return-1}const c={name:"maraepicker",title:"Marae Picker",question:{value:{}},iconName:"",widgetIsLoaded:()=>!0,isFit:e=>"maraepicker"===e.getType(),activatedByChanged(){e.JsonObject.metaData.addClass("maraepicker",[],null,"text")},isDefaultRender:!1,render:e=>{const a=e.survey.getQuestionByName("whanauIngoa").value;let i=-1;const s="connectionMaraePrimary"===e.survey.currentPage.name,c="connectionMaraeSecondary"===e.survey.currentPage.name;a&&(s&&(i=u(m,e,a)),c&&(i=u(d,e,a)));let p=t;const h=e.page.name,y=e=>n.createElement("p",{className:"selection-panels-text",key:e.id},e.description);if("connectionMaraeSecondary"===e.survey.currentPage.name){const a=e.survey.pages.find(({name:e})=>"connectionMaraePrimary"===e).questions[0];p=t.map(e=>{const t=e.marae.map(e=>e?{...e,disabled:1===e.hapu.length&&e.id===a.value.maraeId}:e);return{...e,marae:t}})}return n.createElement("div",{className:"selection-panels"},n.createElement("div",{className:"selection-panels-row"},p.map(e=>n.createElement("div",{className:"selection-panels-col",key:e.id},n.createElement("h4",null,e.description)))),o.map((a,s)=>n.createElement("div",{key:s,className:"selection-panels-row"},o.map((a,o)=>{return null===t[o].marae[s]?(u=s*o,n.createElement("label",{key:u,className:"selection-panels-col"})):((a,o)=>{const s=p[o].marae[a],u=Object(r.classNames)("selection-panels-col",{"is-selectable":!s.disabled,"is-disabled":s.disabled});return s?n.createElement(n.Fragment,{key:s.id},n.createElement("input",{type:"radio",name:h,id:s.id,className:"selection-panels-radio",disabled:s.disabled,defaultChecked:s.id===i,onClick:()=>l(e,t[o].id,s.id)}),n.createElement("label",{htmlFor:s.id,className:u},n.createElement("div",{className:"selection-panels-col-inner"},n.createElement("h5",null,s.description),n.createElement("div",null,s.hapu.map(y))))):null})(s,o);var u}))),n.createElement("div",{className:"selection-panels-row"},n.createElement("div",{className:"selection-panels-col"}),n.createElement("div",{className:"selection-panels-col"}),n.createElement("div",{className:"selection-panels-col"}),n.createElement("input",{type:"radio",id:"unknown",className:"selection-panels-radio",name:h,onChange:()=>l(e,"unknown")}),n.createElement("label",{htmlFor:"unknown",className:"selection-panels-col is-selectable"},n.createElement("div",{className:"selection-panels-col-inner"},"I don't know"))))}};e.CustomWidgetCollection.Instance.addCustomWidget(c,"customtype")}var y=t("./src/app/config/register/hapu.ts");function g(e){let a=e.replace(/^whakapapa_/,""),t="";for(;a.length;){const i=a[a.length-1];a=a.slice(0,a.length-1),"w"===i?t=t?"mother's "+t:"mother":"m"===i?t=t?"father's "+t:"father":console.error("Unrecognised whakapapa identifier "+e)}return t[0].toUpperCase()+t.slice(1)}function v(e,a){const t=a+"w",i=a+"m";let r=[];return e[t]&&(r.push({value:`${g(t)}: ${e[t]}`}),r=[...r,...v(e,t)]),e[i]&&(r.push({value:`${g(i)}: ${e[i]}`}),r=[...r,...v(e,i)]),r}var w=t("./src/app/components/loader.tsx"),f=t("./src/app/components/server-suspense.tsx");const k=Object(i.a)(async()=>Promise.all([t.e(0),t.e(1)]).then(t.t.bind(null,"./node_modules/survey-react/survey.react.js",7)).then(e=>({default:e.Survey})));let b=null;const T=({data:{active:e},request:a=l.a})=>{const[i,p]=n.useState(null),[d,g]=n.useState(!1),[T,M]=n.useState(null),R=n.createRef(),[P]=Object(r.useScript)(R,"https://www.google.com/recaptcha/api.js?render=explicit");if(!e&&Object(r.canUseDom)())return null;const N=async e=>{b={...b,recaptcha:e},await a.post(o.a.register,b)};return n.useEffect(()=>{var e,r;P&&0===(null===(e=R.current)||void 0===e?void 0:e.children.length)&&null!==(r=window.grecaptcha)&&void 0!==r&&r.render&&window.grecaptcha.render(R.current,{sitekey:"6LfPSKUZAAAAAKTChRwHUqaXqqFGYiAwoVLkhUCu",size:"invisible",callback:N}),(async()=>
1{if(!(d||T||i))try{g(!0);const e=await Promise.all([t.e(0),t.e(1)]).then(t.t.bind(null,"./node_modules/survey-react/survey.react.js",7));await Promise.all([t.e(0),t.e(1),t.e(52),t.e(50),t.e(49),t.e(51),t.e(53)]).then(t.t.bind(null,"./node_modules/surveyjs-widgets/surveyjs-widgets.js",7)),function(e){e.StylesManager.applyTheme("modern"),e.modernCss.root="form",e.modernCss.row="form-row",e.modernCss.navigationButton="button",e.modernCss.dropdown.control="dropdown",e.modernCss.text.root="input",e.modernCss.question.formGroup="form-group",e.modernCss.footer="form-navigation",e.modernCss.page.title="heading-4",e.modernCss.page.root="",e.modernCss.question.title="heading-6",e.modernCss.question.content="",e.modernCss.question.mainRoot="",e.modernCss.progress="progress",e.modernCss.progressBar="progress-bar",e.modernCss.progressTextInBar="progress-text",e.modernCss.navigation.next="primary next",e.modernCss.navigation.complete="primary next",e.modernCss.navigation.prev="tertiary previous",e.modernCss.question.titleOnAnswer="",e.modernCss.question.mainRoot="form-group",e.surveyLocalization.locales.my={pageNextText:"Haere / Next",pagePrevText:"Hoki / Previous",completeText:"Mutu / Complete",completingSurvey:"Tino Pai - Thank you for registering, we will be in touch with you in due course.",progressText:"{0} / {1}"},e.FunctionFactory.Instance.register("whakapapaVisible",e=>Boolean(e[0])),e.FunctionFactory.Instance.register("maraeVisible",e=>!(null==e||!e[0])&&e[0].marae===e[1])}(e),function(e){const a={name:"datepicker",title:"Daypicker",iconName:"",widgetIsLoaded:()=>!0,isFit:e=>"datepicker"===e.getType(),activatedByChanged(){e.JsonObject.metaData.addClass("datepicker",[],null,"text")},render:e=>n.createElement(u.a,{onChange:a=>{e.value=a}},n.createElement(u.a.Year,null),n.createElement(u.a.Month,null),n.createElement(u.a.Day,null),n.createElement(u.a.Result,null))};e.CustomWidgetCollection.Instance.addCustomWidget(a,"customtype")}(e),(async e=>{const a={name:"addressfinder",title:"Address Finder",isFit:e=>"addressfinder"===e.getType(),activatedByChanged:()=>{e.JsonObject.metaData.addClass("addressfinder",[],null,"text")},validators:[{type:"expression",text:"hello",expression:"addressValidator({ addressfinder })"}],render:e=>{var a,t,i,r,o,s;return n.createElement(n.Fragment,null,n.createElement("div",{className:"form-row"},n.createElement("div",{className:"form-group"},n.createElement(c.a,{id:"address-finder-input",className:"input",placeholder:"Start typing your address here...",addressFinderKey:"496BET7XDRMA38YNUWGL",country:"NZ",onSelected:(a,t)=>{e.value=t}}))),n.createElement("div",{className:"form-row"},n.createElement("div",{className:"form-group"},n.createElement("input",{className:"input",id:"line1",type:"text",placeholder:"Address Line 1",value:(null==e||null===(a=e.value)||void 0===a?void 0:a.address_line_1)||"",onChange:a=>{e.value={...e.value,address_line_1:a.currentTarget.value}}})),n.createElement("div",{className:"form-group"},n.createElement("input",{className:"input",id:"line2",type:"text",placeholder:"Address Line 2",value:(null==e||null===(t=e.value)||void 0===t?void 0:t.address_line_2)||"",onChange:a=>{e.value={...e.value,address_line_2:a.currentTarget.value}}}))),n.createElement("div",{className:"form-row"},n.createElement("div",{className:"form-group"},n.createElement("input",{id:"suburb",className:"input",type:"text",placeholder:"Suburb",value:(null==e||null===(i=e.value)||void 0===i?void 0:i.suburb)||"",onChange:a=>{e.value={...e.value,suburb:a.currentTarget.value}}})),n.createElement("div",{className:"form-group"},n.createElement("input",{id:"city",className:"input",type:"text",placeholder:"City",value:(null==e||null===(r=e.value)||void 0===r?void 0:r.city)||"",onChange:a=>{e.value={...e.value,city:a.currentTarget.value}}}))),n.createElement("div",{className:"form-row"},n.createElement("div",{className:"form-group"},n.createElement("input",{id:"postcode",type:"text",className:"input",placeholder:"Postcode",value:(null==e||null===(o=e.value)||void 0===o?void 0:o.postcode)||"",onChange:a=>{e.value={...e.value,postcode:a.currentTarget.value}}})),n.createElement("div",{className:"form-group"},n.createElement("input",{id:"country",className:"input",type:"text",placeholder:"Country",value:(null==e||null===(s=e.value)||void 0===s?void 0:s.country)||"",onChange:a=>{e.value={...e.value,country:a.currentTarget.value}},required:!0}))))}};e.CustomWidgetCollection.Instance.addCustomWidget(a,"customtype")})(e),await h(e,a);const i=await(async e=>{const a=function(){const e=[];let a=1;for(;a<20;)e.push({type:"text",title:`Tamaiti ${a} Name`,name:"tamaiti"+a,visibleIf:"{tamarikiCount} >= "+a,isRequired:!0}),e.push({type:"dropdown",title:"Gender",name:`tamaiti${a}Gender`,choices:["Female","Male"],visibleIf:"{tamarikiCount} >= "+a,isRequired:!0}),e.push({type:"datepicker",inputType:"date",name:`tamaiti${a}Dob`,title:"Date of Birth",visibleIf:"{tamarikiCount} >= "+a,isRequired:!0}),a+=1;
1return e.unshift({title:"How many tamariki do you have?",type:"dropdown",name:"tamarikiCount",isRequired:!0,choicesMax:a}),e}(),t=m.reduce((e,a)=>[...e,...a.whanau],[]),i=await Object(s.a)(e),r=await Object(y.a)(e);return{pages:[{name:"personalDetails",title:"Personal Details",elements:[{type:"radiogroup",name:"title",title:"Title",colCount:0,choices:["Mrs","Mr","Miss","Ms"]},{type:"text",name:"firstName",title:"First Name(s)",placeHolder:"Ingoa",isRequired:!0},{type:"text",name:"surname",title:"Surname",placeHolder:"Ingoa Whānau",isRequired:!0,startWithNewLine:!1},{type:"text",name:"maidenName",title:"Maiden Name",placeHolder:"Where applicable"},{type:"text",name:"aka",title:"Also known as",placeHolder:"Ingoa kē"},{type:"datepicker",inputType:"date",name:"dob",title:"Date of Birth",isRequired:!0},{type:"radiogroup",name:"gender",title:"Gender",choices:["Female","Male"],isRequired:!0,startWithNewLine:!1},{type:"text",name:"spouse",title:"Spouse/Partner's Full Name",placeHolder:"Hoa Rangatira"}]},{name:"address",title:"Address",questions:[{title:"Address",type:"addressfinder",name:"addressfinder",isRequired:!0}]},{name:"contactDetails",title:"Contact Details",questions:[{title:"Phone",type:"text",name:"phone",startWithNewLine:!1},{title:"Cell",type:"text",name:"cell",startWithNewLine:!1},{title:"Email",type:"text",name:"email",validators:[{type:"email"}]},{title:"How should we contact you?",type:"radiogroup",name:"preferredContact",choices:["Post","Email","Text/SMS"],startWithNewLine:!1},{title:"How did you find out about us?",type:"text",name:"referrer"}]},{name:"tamariki",title:"Tamariki",questions:a},{name:"whanau",questions:[{type:"dropdown",name:"whanauIngoa",title:"Please select your whānau name(optional)",choices:t.sort()}]},{name:"connectionMaraePrimary",title:"Connection to Ngāti Rangi - Marae",questions:[{type:"maraepicker",name:"marae",title:"Please Select Your Primary Marae",isRequired:!0}]},{name:"maraeRaketapauma",title:"Hapū",questions:[{type:"radiogroup",name:"hapuKuratahi",title:"Please choose your hapū from Raketapauma",visibleIf:`maraeVisible({marae}, "${i.Raketapauma.description}")`,isRequired:!0,choices:[r.Rangituhia.description]}]},{name:"maraeKuratahi",title:"Hapū",questions:[{type:"radiogroup",name:"hapuKuratahi",title:"Please choose your hapū from Kuratahi",visibleIf:`maraeVisible({marae}, "${i.Kuratahi.description}")`,isRequired:!0,choices:[r.Parenga.description,r.Rangituhia.description]}]},{name:"maraeTeAoHou",title:"Hapū",questions:[{type:"radiogroup",name:"hapuTeAoHou",title:"Please choose your hapū from Te Ao Hou",visibleIf:`maraeVisible({marae}, "${i["Te Ao Hou"].description}")`,isRequired:!0,choices:[r.Tupoho.description,r["Rangi-ki-tai"].description]}]},{name:"maraeMakaranui",title:"Hapū",questions:[{type:"radiogroup",name:"hapuMakaranui",title:"Please choose your hapū from Makaranui",visibleIf:`maraeVisible({marae}, "${i.Makaranui.description}")`,isRequired:!0,choices:[r.Tamakana.description,r.Uenuku.description]}]},{name:"maraeTirorangi",title:"Hapū",questions:[{type:"radiogroup",name:"hapuTirorangi",title:"Please choose your hapū from Tirorangi",visibleIf:`maraeVisible({marae}, "${i.Tirorangi.description}")`,isRequired:!0,choices:[r.Tongaiti.description,r.Rangiteauria.description]}]},{name:"maraeMangamingi",title:"Hapū",questions:[{type:"radiogroup",name:"hapuMangamingi",title:"Please choose your hapū from Mangamingi",visibleIf:`maraeVisible({marae}, "${i.Mangamingi.description}")`,isRequired:!0,choices:[r.Tamakana.description,r.Uenuku.description]}]},{name:"maraeRaetihi",title:"Hapū",questions:[{type:"radiogroup",name:"hapuRaetihiTePuke",title:"Please choose your hapū from Raetihi (Te Puke)",visibleIf:`maraeVisible({marae}, "${i.Raetihi.description}")`,isRequired:!0,choices:[r.Uenukumanawawiri.description,r.Uenuku.description]}]},{name:"maraeMoteKatoa",title:"Hapū",questions:[{type:"radiogroup",name:"hapuMoteKatoa",title:"Please choose your hapū from Mote Katoa",visibleIf:`maraeVisible({marae}, "${i.Motekatoa.description}")`,isRequired:!0,choices:[r.Uenuku.description,r.Patutokotoko.description]}]},{name:"maraeWaitahuparae",title:"Hapū",questions:[{type:"radiogroup",name:"hapuWaitahuparae",title:"Please choose your hapū from Waitahuparae",visibleIf:`maraeVisible({marae}, "${i.Waitahuparae.description}")`,isRequired:!0,choices:[r.Uenukumanawawiri.description,r.Patutokotoko.description]}]},{name:"connectionLandBlack",title:"Connection to Ngāti Rangi - Land Block",questions:[{type:"text",name:"landBlock",title:"Please identify at least one land block 
1in our rohe that you connect to. Please include the full land block names (and numbers if relevant). E.g. Murimotu 3B2B3",visibleIf:'{marae} == "aua"',isRequired:!0}]},{name:"connectionMaraeSecondary",title:"Connection to Ngāti Rangi - Marae",questions:[{type:"maraePicker",name:"secondaryMarae",title:"Please Select Your Secondary Marae",visibleIf:'{marae} != "aua"',isRequired:!0}]},{name:"secondaryMaraeKuratahi",title:"Hapū",questions:[{type:"radiogroup",name:"secondaryHapuKuratahi",title:"Please choose your hapū from Kuratahi",visibleIf:`maraeVisible({secondaryMarae}, "${i.Kuratahi.description}")`,isRequired:!0,choices:[r.Rangituhia.description,r.Parenga.description]}]},{name:"maraeTeAoHou",title:"Hapū",questions:[{type:"radiogroup",name:"secondaryHapuTeAoHou",title:"Please choose your hapū from Te Ao Hou",visibleIf:`maraeVisible({secondaryMarae}, "${i["Te Ao Hou"].description}")`,isRequired:!0,choices:[r.Tupoho.description,r["Rangi-ki-tai"].description]}]},{name:"maraeTirorangi",title:"Hapū",questions:[{type:"radiogroup",name:"secondaryHapuTirorangi",title:"Please choose your hapū from Tirorangi",visibleIf:`maraeVisible({secondaryMarae}, "${i.Tirorangi.description}")`,isRequired:!0,choices:[r.Tongaiti.description,r.Rangiteauria.description]}]},{name:"maraeMangamingi",title:"Hapū",questions:[{type:"radiogroup",name:"secondaryHapuMangamingi",title:"Please choose your hapū from Mangamingi",visibleIf:`maraeVisible({secondaryMarae}, "${i.Mangamingi.description}")`,isRequired:!0,choices:[r.Tamakana.description,r.Uenuku.description]}]},{name:"maraeRaetihi",title:"Hapū",questions:[{type:"radiogroup",name:"secondaryHapuRaetihiTePuke",title:"Please choose your hapū from Raetihi (Te Puke)",visibleIf:`maraeVisible({secondaryMarae}, "${i.Raetihi.description}")`,isRequired:!0,choices:[r.Uenukumanawawiri.description,r.Uenuku.description]}]},{name:"maraeMoteKatoa",title:"Hapū",questions:[{type:"radiogroup",name:"secondaryHapuMoteKatoa",title:"Please choose your hapū from Mote Katoa",visibleIf:`maraeVisible({secondaryMarae}, "${i.Motekatoa.description}")`,isRequired:!0,choices:[r.Uenuku.description,r.Patutokotoko.description]}]},{name:"maraeWaitahuparae",title:"Hapū",questions:[{type:"radiogroup",name:"secondaryHapuWaitahuparae",title:"Please choose your hapū from Waitahuparae",visibleIf:`maraeVisible({secondaryMarae}, "${i.Waitahuparae.description}")`,isRequired:!0,choices:[r.Uenukumanawawiri.description,r.Patutokotoko.description]}]},{name:"occupation",title:"Occupation and Qualifications",questions:[{type:"text",name:"occupation",title:"Occupation"},{type:"text",name:"industry",title:"Industry"},{type:"text",name:"qualifications",title:"Qualifications & Skills"}]},{name:"teReo",title:"Te Reo Māori",questions:[{type:"radiogroup",name:"tereo",title:"Proficiency",choices:["Native Speaker","Fluent","Basic","None"],isRequired:!0}]},{name:"whakapapa",title:"Whakapapa to Ngāti Rangi",questions:[{type:"html",html:"Please complete your whakapapa to the best of your ability to assist us to confirm your registration as an uri of Ngāti Rangi. Please only include your Ngāti Rangi line."},{type:"text",name:"whakapapa_w",title:"Whaea - Mother"},{type:"text",name:"whakapapa_m",title:"Matua - Father"},{type:"text",name:"whakapapa_ww",visibleIf:"whakapapaVisible({whakapapa_w})",title:"Kuia Whaea - Mother's Mother"},{type:"text",name:"whakapapa_wm",visibleIf:"whakapapaVisible({whakapapa_w})",title:"Tupuna Whaea - Mother's Father"},{type:"text",name:"whakapapa_mw",visibleIf:"whakapapaVisible({whakapapa_m}
1)",title:"Kuia - Father's Mother"},{type:"text",name:"whakapapa_mm",visibleIf:"whakapapaVisible({whakapapa_m})",title:"Tupuna - Father's Father"},{type:"text",name:"whakapapa_www",visibleIf:"whakapapaVisible({whakapapa_ww})",title:"Tupuna Kuia - Mother's Mother's Mother"},{type:"text",name:"whakapapa_wwm",visibleIf:"whakapapaVisible({whakapapa_ww})",title:"Matua Tupuna - Mother's Mother's Father"},{type:"text",name:"whakapapa_wmw",visibleIf:"whakapapaVisible({whakapapa_wm})",title:"Tupuna Kuia - Mother's Father's Mother"},{type:"text",name:"whakapapa_wmm",visibleIf:"whakapapaVisible({whakapapa_wm})",title:"Tupuna Matua - Mother's Father's Father"},{type:"text",name:"whakapapa_mww",visibleIf:"whakapapaVisible({whakapapa_mw})",title:"Tupuna Kuia - Father's Mother's Mother"},{type:"text",name:"whakapapa_mwm",visibleIf:"whakapapaVisible({whakapapa_mw})",title:"Matua Tupuna - Father's Mother's Father"},{type:"text",name:"whakapapa_mmw",visibleIf:"whakapapaVisible({whakapapa_mm})",title:"Tupuna Kuia - Father's Father's Mother"},{type:"text",name:"whakapapa_mmm",visibleIf:"whakapapaVisible({whakapapa_mm}
1)",title:"Tupuna Matua - Father's Father's Father"}]},{name:"privacy",title:"Declaration & Privacy",questions:[{type:"html",html:"We collect personal information from you, including information such as your name, contact information and other information as set out in\n      this form.<br/><br/>\n      Any personal information you provide to us is subject to the Privacy Act 1993.<br/><br/>\n      We collect your personal information in connection with the Trust’s purposes, including to keep you informed about the activities of the Ngāti Rangi Trust, maintain our iwi register,\n      ensure we have up to date information about our beneficiaries, and to ensure you are able to vote on important Ngāti Rangi issues.<br/><br/>\n      We will not disclose your personal information to third parties without your permission.<br/><br/>\n      You have the right to ask for a copy of any personal information we hold about you, and to ask for it to be corrected if you think it is wrong.<br/><br/>\n      If you would like to ask for a copy of your information, or to have it corrected, please contact us at [email protected], or 0800 N RANGI, or PO Box 195, Ohakune."},{name:"privavyAcknowledgement",title:"I understand that the information I provide is subject to the Privacy Act 1993",type:"checkbox",choices:["Āe"],isRequired:!0},{name:"maraeSharingAcknowledgement",title:"I agree to my information being passed on to my respective marae indicated above",type:"checkbox",choices:["Āe"]},{name:"honestyAcknowledgement",title:"I confirm that the information provided in this form is true and correct",type:"checkbox",choices:["Āe"],isRequired:!0},{name:"signed",type:"signaturepad",title:"Please use your mouse to sign your name",isRequired:!0}]}]}})(a),r=new e.Model(i);r.showProgressBar="top",r.locale="my",p(r)}catch(e){console.warn("Error: ",T),M(T||"There was an error trying to retrieve information from the server. Please reload and try again.")}finally{g(!1)}})()},[P,R]),n.createElement("div",{className:"registration-form || constrain-width","data-testid":"registration-form"},d&&n.createElement("div",{className:"splash"},n.createElement(w.a,{size:"large"}))||T&&n.createElement("div",null,n.createElement("p",null,T))||n.createElement(f.a,{fallback:n.createElement("i",null)},n.createElement(k,{model:i,onValidateQuestion:(e,a)=>{"addressfinder"===a.name&&(a.value.address_line_1?a.value.city?a.value.country||(a.error="Address must contain Country"):a.error="Address must contain City":a.error="Address must contain Line 1")},onComplete:async e=>{g(!0);try{const t=await Object(s.a)(a);grecaptcha.execute(),b=function(e,a){var t,i,r;const n=e.data,o={title:n.title,firstName:n.firstName,surname:n.surname,gender:n.gender,phone:n.phone,cell:n.cell,email:n.email,occupation:n.occupation,line1:n.addressfinder.address_line_1||"",line2:n.addressfinder.address_line_2||"",suburb:n.addressfinder.suburb||"",city:n.addressfinder.city||"",postcode:n.addressfinder.postcode||"",dob:n.dob};let s=[],l=[];if("aua"===n.marae)s.push({value:"Land block "+n.landBlock});else if(null!==(t=n.marae)&&void 0!==t&&t.marae&&null!==(i=n.marae)&&void 0!==i&&i.takiwa){var u,c;const e="hapu"+n.marae.marae.replace(/[ ()]/g,""),t=Object.values(a).find(e=>e.description===n.marae.marae),i=1===(null==t?void 0:t.hapu.length)?null==t?void 0:t.hapu[0]:null==t?void 0:t.hapu.find(a=>n[e]===a.description);if(i&&(l=[...l,{type:"hapu",id:i.id,value:i.description},{type:"marae",id:null==t?void 0:t.id,value:null==t?void 0:t.description},{type:"takiwa",value:n.marae.takiwa,id:Number(n.marae.takiwaId)}]),null!==(u=n.secondaryMarae)&&void 0!==u&&u.marae&&null!==(c=n.secondaryMarae)&&void 0!==c&&c.takiwa){const e="secondaryHapu"+n.secondaryMarae.marae.replace(/[ ()]/g,""),t=Object.values(a).find(e=>e.description===n.secondaryMarae.marae);if(t){const a=1===t.hapu.length?t.hapu[0]:t.hapu.find(a=>n[e]===a.description);a&&s.push({value:`Secondary Takiwā: ${n.secondaryMarae.takiwa}, secondary marae: ${t.description}, secondary hapÅ«: ${a.description}`})}}}["spouse","industry","qualifications","aka","referrer"].forEach(e
1=>{if(n[e]){const a=`${e[0].toUpperCase()+e.slice(1)}: ${n[e]}`;s.push({value:a})}}),n.signed&&l.push({type:"attachment",value:n.signed}),n.preferredContact&&s.push({value:"Preferred Contact: "+n.preferredContact});let p="Āe";"Āe"!==(null===(r=n.maraeSharingAcknowledgement)||void 0===r?void 0:r[0])&&(p="Kāo"),s.push({value:"Share information with marae: "+p});const m=[];n.aka&&m.push(n.aka),n.maidenName&&m.push(`${n.firstName} ${n.maidenName}`),n.maidenName&&l.push({type:"aliases",value:m}),n.tereo&&s.push({value:"Te Reo Māori: "+n.tereo});for(let d=1;d<=n.tamarikiCount;d+=1){const e=n["tamaiti"+d],a=n[`tamaiti${d}Gender`],t=n[`tamaiti${d}Dob`];s.push({value:`Tamaiti ${d}: ${e} ${a} ${t}`})}return s=[...s,...v(n,"whakapapa_")],{data:o,interactions:s,links:l,recaptcha:null,tenant:"RANGI"}}(e,t)}catch(t){console.error(t),t instanceof Error&&M(t.message)}finally{g(!1)}}})),n.createElement("div",{ref:R,className:"g-recaptcha"}))}},
1"./src/app/static-data/whanau-marae-secondary.json":function(e){e.exports=JSON.parse('[{"marae":"Raketapauma","whanau":["Hipango (Pūtiki)","Nahona","Waretini"]},{"marae":"Kuratahi","whanau":["Huey","Dewey","Louie"]},{"marae":"Te Ao Hou","whanau":["Hipango (Te Ao Hou)"]},{"marae":"Maungārongo","whanau":["Warera"]},{"marae":"Ngā Mōkai","whanau":["Albert","Hawira"]},{"marae":"Tirorangi","whanau":["Arahanga (Arahanga-Te Hore)","Cribb","Holder (Houra)","Kerei (Tākerei)","Kingi","Makatea","Mareikura","McLeod (Te Patu)","Paki","Pauro (Pauro-Marino)","Pohe","Tahana (Tūroa)","Tairei","Te Patu","Turia","Turoa","Waho"]},{"marae":"Mangamingi","whanau":["Arahanga (Arahanga-Winiata)"]},{"marae":"Tuhi Ariki","whanau":["Hinana","Petaera","Thompson (Tamehana)"]},{"marae":"Raetihi (Te Puke)","whanau":["Roach","Taku","Teki","Thompson"]},{"marae":"Waitahuparae","whanau":["Bishop","Edmonds","Rongonui"]}]')},
1"./src/app/static-data/whanau-marae.json":function(e){e.exports=JSON.parse('[{"marae":"Raketapauma","whanau":["Gray","Haami","McGregor","Pohe","Ranginui","Reo (Reo-Te Kooro)","Reuben","Taku","Williams (Wīremu)","Wiripo (Te Kooro)"]},{"marae":"Makaranui","whanau":["Wallace","Winiata"]},{"marae":"Maungārongo","whanau":["Mareikura","Pauro (Pauro-Marino)"]},{"marae":"Tirohia","whanau":["McLeod (Te Patu)","Te Patu"]},{"marae":"Ngā Mōkai","whanau":["Bishop","Hapuku","Paki","Peeti-Tumango","Petaera","Rerekura","Tauri (Te Utamate)","Tinirau","Waho"]},{"marae":"Tirorangi","whanau":["Akapita (Peehi-Akapita)","Albert","Ashford","Bailey","Bates","Blackburn","Brookes","Broughton","Davenport","Erueti","Hipango (Pūtiki)","Hipango (Te Ao Hou)","Karauria","Kereopa","Maihi","Marino","Marshall (Te Matara)","Martin","McDonnell","Menehira","Metekingi","Nahona","Peretini","Phillips (Piripi)","Pirere","Rangirunga (Te Rangi-i-runga)","Roach","Rupuha","Sutherland (Te Kāhu)","Tahana (Te Aro)","Tangaroa","Takarangi","Tamehana","Te Hore","Teki","Te Kahu (Eruera Te Kāhu)","Tihema","Warera","Wiari","Wilson","Wiripo (Tahukumutia)"]},{"marae":"Mangamingi","whanau":["Rapana","Thompson (Tamehana)"]},{"marae":"Tuhi Ariki","whanau":["Hawira","Hinana","Holder (Houra)","Kopeke","Tairei","Te Wiki","Waara"]},{"marae":"Raetihi (Te Puke)","whanau":["Arahanga (Arahanga-Winiata)","Arahanga (Arahanga-Te Hore)","Condon","Edmonds","Kerei (Tākerei)","Makatea","Phillips","Reweti","Rongonui","Tuatini","Turia"]},{"marae":"Marangai","whanau":["Richards","Taiaroa","Waretini"]},{"marae":"Mote Katoa","whanau":["Cribb"]},{"marae":"Waitahuparae","whanau":["Hikaka","Kingi","Tahana (Tūroa)","Thompson","Turoa","Wikohika"]}]')}
1}]);
2//# sourceMappingURL=2.39562e714913425e553a.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.