(function(){"use strict";function n(n){function i(i){var r=i;n.sessionStorage.setItem(t,JSON.stringify(r))}function r(){var i=n.sessionStorage.getItem(t);return i?JSON.parse(i):[]}function u(){n.sessionStorage.removeItem(t)}var t="App.StoredDataForTransfer";return{set:i,get:r,empty:u}}angular.module("app").service("transferdataService",n);n.$inject=["$window"]})(),function(){"use strict";function n(n,t){function o(t,i,r,u){u==null&&(u=i);u.serverError=u.captchaError=!1;i.captchaInstance==null?f(t,i,r,u):n.get("/data/trailcaptcha/?query="+encodeURI(i.captchaResponse)+"&id="+encodeURI(i.captchaInstance)).then(function(n){n.data.isOk?(i.captchaTrail=n.data.trail,f(t,i,r,u)):(hoasCaptcha.ReloadImage(),u.captchaResponse="",u.captchaError=!0,u.sendIsDisabled=!1)},function(){hoasCaptcha.ReloadImage();u.captchaResponse="";u.serverError=!0;u.sendIsDisabled=!1})}function f(i,r,f,e){var o,h;r.applicantLanguage=f==="fi"?"SUO":"ENG";console.log("sending data to "+i);o=s(r);e==null&&(e=r);e.formSnapshot=u();console.log(o);h=e.formSnapshot;n({method:"POST",url:i,data:o,dataType:"json",headers:{"Content-Type":"application/json"}}).then(function(n){console.log("post success");console.log(n);e.applicationSent=!0;window.scrollTo(0,0);var i=l(r.title,f);if(i!==""){if(i==="tilitietolomake"){t.set(e.terminating);switch(f){case"fi":i="/lomakkeet/tilitietolomake/";break;case"sv":i="/se/blanketter/blankett-for-kontouppgifter/";break;case"en":i="/en/forms/form-for-account-details/";break;default:i="/lomakkeet/tilitietolomake/"}}setTimeout(function(){window.location=i},12e4)}},function(n){console.log("post failed");console.log(n);e.captchaError=n.status==403;e.serverError=!e.captchaError;e.sendIsDisabled=!1})}function s(n){var t=_.clone(n);return t.applicants&&(r(t,t.applicants,"applicant"),t.applicants=null),t.terminating&&(r(t,t.terminating,"terminating"),t.terminating=null),t.children&&(r(t,t.children,"child"),t.children=null),t.applicant&&(e(t,t.applicant,null,"applicant"),t.applicant=null),t.applicationSpecialRequirements&&(t.applicationSpecialRequirements=i(t.applicationSpecialRequirements)),t.applicationApartmentType&&(t.applicationApartmentType=i(t.applicationApartmentType)),t.housingPreferences&&(t.housingPreferences=i(t.housingPreferences)),t.terminatingApartmentInspectorInfo&&(t.terminatingApartmentInspectorInfo=i(t.terminatingApartmentInspectorInfo)),t.terminatingApartmentNumber&&(t.terminatingApartmentNumber=c(t.terminatingApartmentNumber,3)),t.applicantRoommateAdditionalInformation&&(t.applicantRoommateAdditionalInformation=i(t.applicantRoommateAdditionalInformation)),t.applicantDetailsForRoomieApartment&&(t.applicantDetailsForRoomieApartment=i(t.applicantDetailsForRoomieApartment)),t.applicant1MovingWithChildren!==undefined&&t.applicant1MovingWithChildren!==null&&(t.applicant1MovingWithChildren=t.applicant1MovingWithChildren?"Kyllä":"Ei"),t.applicant1ExpectChild!==undefined&&t.applicant1ExpectChild!==null&&(t.applicant1ExpectChild=t.applicant1ExpectChild?"Kyllä":"Ei"),t.applicantMovingWithChildren!==undefined&&t.applicantMovingWithChildren!==null&&(t.applicantMovingWithChildren=t.applicantMovingWithChildren?"Kyllä":"Ei"),t.applicantExpectChild!==undefined&&t.applicantExpectChild!==null&&(t.applicantExpectChild=t.applicantExpectChild?"Kyllä":"Ei"),t.applicationConfirmation!==undefined&&t.applicationConfirmation!==null&&(t.applicationConfirmation=t.applicationConfirmation?"Kyllä":"Ei"),t.applicant1WithRoommate!==undefined&&(t.applicant1WithRoommate=t.applicant1WithRoommate?"Kyllä":"Ei"),t.terminatingStreetAddress&&(t.terminatingApartmentCellNumber?(t.terminatingStreetAddress=t.terminatingStreetAddress+" "+t.terminatingApartmentNumber+" "+t.terminatingApartmentCellNumber.toString(),t.terminatingApartmentNumber=null,t.terminatingApartmentCellNumber=null):(t.terminatingStreetAddress=t.terminatingStreetAddress+" "+t.terminatingApartmentNumber,t.terminatingApartmentNumber=null)),t.regionRequests&&(t.regionRequests=h(t.regionRequests)),t.formSnapshot=u(),t}function i(n){return n.filter(function(n){return n||n===0}).join(", ")}function h(n){return n.filter(function(n){return n||n===0}).join("; ")}function c(n,t){for(var i=""+n.toString();i.length<t;)i="0"+i;return i}function e(n,t,i,r){var u,f,e,o;for(u in t)t.hasOwnProperty(u)&&t[u]&&(f=u.split(r),f[0]==""&&(e="",i!=null?(o=parseInt(i)+1,e=r+o+f[1]):e=r+f[1],n[e]=t[u]))}function r(n,t,i){t&&t.length>0&&t.forEach(function(t,r){e(n,t,r,i)})}function l(n,t){if(t==="en")switch(n){case"normaalihakemus":return"/en/applicants/what-kind-of-apartment-can-i-apply-for/priority-when-offering-apartments/who-has-priority-for-being-offered-a-hoas-apartment/";case"vaihtoopiskelijahakemus":return"/exchange/applicants/submitting-and-updating-an-application/what-happens-after-i-submit-my-application/what-happens-after-i-submit-my-application/";case"asumisoikeudensiirto":return"/en/tenants/living-in-hoas-housing/applying-for-another-Hoas-apartment/transfer-of-right-to-occupancy/";case"tilitiedot":return"/en/moving/for-the-tenant-moving-out/getting-the-deposit-back/how-do-I-get-my-deposit-back/";case"irtisanominen":return"tilitietolomake";case"tarjouksenperuutus":return"/en/applicants/apartment-offer/refusing-an-apartment-offer/can-i-get-another-apartment-offer/";case"tarjouksenperuutusoppilaitos":return"/exchange/applicants/furnished-apartment-offer/refusing-an-apartment-offer/refusing-an-apartment-offer/";case"hakemuksenpaivitys":return"/en/applicants/#priority-when-offering-apartments";case"autopaikka":return"/en/tenants/living-in-hoas-housing/additional-services-for-tenants/parking-spaces/";case"kesaasunto":return"/en/applicants/what-kind-of-apartment-can-i-apply-for/temporary-stays/temporary-stays-in-the-spring-and-summer/";default:return""}else if(t==="sv")switch(n){case"normaalihakemus":return"/se/for-den-sokande/hoas-bostader/under-vilka-grunder-hyrs-en-bostad-ut/under-vilka-grunder-hyrs-en-bostad-ut/";case"vaihtoopiskelijahakemus":return"/exchange/applicants/submitting-and-updating-an-application/what-happens-after-i-submit-my-application/what-happens-after-i-submit-my-application/";case"asumisoikeudensiirto":return"/se/for-hyresgasten/att-bo-hos-hoas/sokande-av-en-bostad-om-du-redan-har-en-bostad-hos-hoas/overforing-av-boenderatt/";case"tilitiedot":return"/se/flytta/till-dig-som-flyttar-ut/att-fa-garantin-tillbaka/hur-far-jag-garantin-tillbaka/";case"irtisanominen":return"tilitietolomake";case"tarjouksenperuutus":return"/se/for-den-sokande/bostadserbjudande/att-tacka-nej-till-ett-bostadserbjudande/kan-jag-fa-ett-nytt-erbjudande/";case"tarjouksenperuutusoppilaitos":return"/exchange/applicants/furnished-apartment-offer/refusing-an-apartment-offer/refusing-an-apartment-offer/";case"hakemuksenpaivitys":return"/se/for-den-sokande/#under-vilka-grunder-hyrs-en-bostad-ut";case"autopaikka":return"/se/for-hyresgasten/att-bo-hos-hoas/extratjanster-for-hyresgaster/bilplatser/";case"kesaasunto":return"/se/for-den-sokande/hoas-bostader/tillfalligt-boende/tillfalligt-boende-pa-varen-och-sommaren/";default:return""}else switch(n){case"normaalihakemus":return"/hakevalle/minkalaista-asuntoa-voin-hakea/milla-perusteella-asunnot-vuokrataan/milla-perusteilla-asunnot-vuokrataan/";case"vaihtoopiskelijahakemus":return"/exchange/applicants/submitting-and-updating-an-application/what-happens-after-i-submit-my-application/what-happens-after-i-submit-my-application/";case"hakemuksenpaivitys":return"/hakevalle/#milla-perusteella-asunnot-vuokrataan";case"tarjouksenperuutus":return"/hakevalle/asuntotarjous/asuntotarjouksen-hylkaaminen/voinko-saada-uuden-asuntotarjouksen/";case"tarjouksenperuutusoppilaitos":return"/exchange/applicants/furnished-apartment-offer/refusing-an-apartment-offer/refusing-an-apartment-offer/";case"irtisanominen":return"tilitietolomake";case"asumisoikeudensiirto":return"/asuvalle/asuminen-hoasilla/asunnon-hakeminen-jos-asut-jo-hoasilla/asumisoikeuden-siirto/";case"kesaasunto":return"/hakevalle/minkalaista-asuntoa-voin-hakea/valiaikainen-asuminen/valiaikainen-asuminen-kevat-ja-kesaaikaan/";case"tilitiedot":return"/muuttavalle/poismuuttavalle/vakuusmaksu-takaisin/vakuusmaksun-palauttaminen/";case"autopaikka":return"/asuvalle/asuminen-hoasilla/lisapalvelut-asukkaille/autopaikat/";default:return""}}function u(){var n=[];return n.push(["__language",language]),$("#page-content h1, #page-content h3, #page-content form div.a-tip, #page-content form div.alert-warning:not(.consent),#page-content form :input, #applicationApartmentAddress, #page-content form select,#page-content form textarea, #page-content form .rz-pointer.rz-pointer-min").each(function(){var t=$(this),e,u,r,o,i,f;if(t.is("h1")||t.is("h3"))return n.push(["__header",t.text().trim()]),!0;if(t.is(".a-tip,.alert-warning")&&t.is(":visible"))return e=t.html().trim(),e&&n.push(["__tip",e]),!0;if((u=t.val(),u||(u=t.attr("aria-valuenow")),!u)||(r=t[0].id,r=="g-recaptcha-response"||r=="jsonBody"||r=="BDC_VCID_hoasCaptcha"||r=="BDC_BackWorkaround_hoasCaptcha")||r.indexOf("HasSSN")>0||t.hasClass("captchachina"))return!0;if(o=r?$("label[for="+r+"]"):null,i=o?o.text().trim():"",!i&&t.is("select")&&(f=t.closest("div[class~='row']"),i=$(">div[ng-bind-html]",f).text().trim()),t.is(":checked")){if(t.hasClass("region-selection-input")&&$("#any-area").is(":checked"))return!0;u=localizedYes}else{if(t.is(":radio"))return!0;if(t.is(":checkbox")){if(r.indexOf("applicationApartmentType")==0||r.indexOf("housingPreferences")==0||r.indexOf("applicationSpecialRequirements")==0||r.indexOf("applicationNeedLift")==0||r.indexOf("applicationDisabledHousing")==0||t.hasClass("region-selection-input"))return!0;u=localizedNo}else t.is("select")&&(u=t.children("option:selected").text().trim())}i||(i=t.parent().siblings("label").text().trim());i==localizedYes?(f=t.closest(".step"),i=$("h3",f).text().trim()):i==localizedNo&&(u=localizedNo,f=t.closest(".step"),i=$("h3",f).text().trim());i||(f=t.closest("div[class~='row']"),i=$("label",f).text().trim());r=="applicationConfirmation"&&(i=t.siblings("span").text().trim());i.indexOf(" *",i.length-2)>0&&(i=i.slice(0,-2));n.push([i,u])}),console.log(n),n}function a(n,t){var i=document.getElementById("makePdfForm"),r;i&&document.body.removeChild(i);i=document.createElement("form");i.setAttribute("id","makePdfForm");i.setAttribute("method","post");i.setAttribute("target","_blank");i.setAttribute("action","/makepdf/"+n);r=document.createElement("input");r.setAttribute("type","hidden");r.setAttribute("id","jsonBody");r.setAttribute("name","jsonBody");r.setAttribute("value",angular.toJson(t));i.appendChild(r);document.body.appendChild(i);i.submit()}this.submitData=o;this.downloadPdf=a;this.getFormSnapshot=u}angular.module("app").service("apiService",n);n.$inject=["$http","transferdataService"]}(),function(){"use strict";function n(){function n(n){return{applicantSchoolInFinland:null,applicantFacultylInFinland:null,applicantSchool:null,applicantDegree:null,applicantStudyStartDate:null,applicantEstimatedCompletionDate:null,applicantLastName:null,applicantFirstNames:null,applicantStreetAddress:null,applicantPostalNumber:null,applicantCity:null,applicantCountry:"",applicantPhone:null,applicantEmail:null,applicantGender:null,applicantNationality:n.value,applicantPassportNumber:null,applicantIDCardNumber:null,applicantPersonalIdentityNumber:null,applicantServiceLanguage:null,applicantDomicile:null,applicantCurrentAccomodationType:null,applicantMonthlyIncome:null,applicantWealth:null,applicantStudentLoansTaken:null,applicantUnderage:null,applicantMovingWithChildren:null,applicantAloneWithChildren:null,applicantExpectChild:null,applicantExpectedDate:null,applicantWithRoommate:null,applicantRoommateId:null,applicantGuardianLastName:null,applicantGuardianFirstNames:null,applicantGuardianPersonalIdentityNumber:null,applicantGuardianNationality:n.value,applicantGuardianStreetAddress:null,applicantGuardianPostalNumber:null,applicantGuardianCity:null,applicantGuardianCountry:null,applicantGuardianPhone:null,applicantGuardianEmail:null,applicantStudyPlace:null,applicantStudyStreetAddress:null,applicantStudyPostalNumber:null,applicantStudyCity:null}}return{createApplicant:n}}angular.module("app").factory("applicantFactory",n)}(),function(){"use strict";function n(){function n(n){return{childFirstNames:null,childLastName:null,childNationality:n.value,childPersonalIdentityNumber:null}}return{createChild:n}}angular.module("app").factory("childFactory",n)}(),function(){"use strict";function n(n,t){var r=[{label:n.resources.CountryAfghanistan,value:n.resources.CountryAfghanistan_FI,isSepa:!1},{label:n.resources.CountryAlbania,value:n.resources.CountryAlbania_FI,isSepa:!1},{label:n.resources.CountryAlgeria,value:n.resources.CountryAlgeria_FI,isSepa:!1},{label:n.resources.CountryAmericanSamoa,value:n.resources.CountryAmericanSamoa_FI,isSepa:!1},{label:n.resources.CountryAndorra,value:n.resources.CountryAndorra_FI,isSepa:!1},{label:n.resources.CountryAngola,value:n.resources.CountryAngola_FI,isSepa:!1},{label:n.resources.CountryAntiguaandBarbuda,value:n.resources.CountryAntiguaandBarbuda_FI,isSepa:!1},{label:n.resources.CountryAzerbaijan,value:n.resources.CountryAzerbaijan_FI,isSepa:!1},{label:n.resources.CountryArgentina,value:n.resources.CountryArgentina_FI,isSepa:!1},{label:n.resources.CountryAustralia,value:n.resources.CountryAustralia_FI,isSepa:!1},{label:n.resources.CountryAustria,value:n.resources.CountryAustria_FI,isSepa:!0},{label:n.resources.CountryBahamas,value:n.resources.CountryBahamas_FI,isSepa:!1},{label:n.resources.CountryBahrain,value:n.resources.CountryBahrain_FI,isSepa:!1},{label:n.resources.CountryBangladesh,value:n.resources.CountryBangladesh_FI,isSepa:!1},{label:n.resources.CountryArmenia,value:n.resources.CountryArmenia_FI,isSepa:!1},{label:n.resources.CountryBarbados,value:n.resources.CountryBarbados_FI,isSepa:!1},{label:n.resources.CountryBelgium,value:n.resources.CountryBelgium_FI,isSepa:!0},{label:n.resources.CountryBermuda,value:n.resources.CountryBermuda_FI,isSepa:!1},{label:n.resources.CountryBhutan,value:n.resources.CountryBhutan_FI,isSepa:!1},{label:n.resources.CountryBolivia,value:n.resources.CountryBolivia_FI,isSepa:!1},{label:n.resources.CountryBosniaandHerzegovina,value:n.resources.CountryBosniaandHerzegovina_FI,isSepa:!1},{label:n.resources.CountryBotswana,value:n.resources.CountryBotswana_FI,isSepa:!1},{label:n.resources.CountryBouvetIsland,value:n.resources.CountryBouvetIsland_FI,isSepa:!1},{label:n.resources.CountryBrazil,value:n.resources.CountryBrazil_FI,isSepa:!1},{label:n.resources.CountryBelize,value:n.resources.CountryBelize_FI,isSepa:!1},{label:n.resources.CountryBritishIndianOceanTerritory,value:n.resources.CountryBritishIndianOceanTerritory_FI,isSepa:!1},{label:n.resources.CountrySolomonIslands,value:n.resources.CountrySolomonIslands_FI,isSepa:!1},{label:n.resources.CountryVirginIslandsBritish,value:n.resources.CountryVirginIslandsBritish_FI,isSepa:!1},{label:n.resources.CountryBruneiDarussalam,value:n.resources.CountryBruneiDarussalam_FI,isSepa:!1},{label:n.resources.CountryBulgaria,value:n.resources.CountryBulgaria_FI,isSepa:!0},{label:n.resources.CountryMyanmar,value:n.resources.CountryMyanmar_FI,isSepa:!1},{label:n.resources.CountryBurundi,value:n.resources.CountryBurundi_FI,isSepa:!1},{label:n.resources.CountryBelarus,value:n.resources.CountryBelarus_FI,isSepa:!1},{label:n.resources.CountryCambodia,value:n.resources.CountryCambodia_FI,isSepa:!1},{label:n.resources.CountryCameroon,value:n.resources.CountryCameroon_FI,isSepa:!1},{label:n.resources.CountryCanada,value:n.resources.CountryCanada_FI,isSepa:!1},{label:n.resources.CountryCaboVerde,value:n.resources.CountryCaboVerde_FI,isSepa:!1},{label:n.resources.CountryCaymanIslands,value:n.resources.CountryCaymanIslands_FI,isSepa:!1},{label:n.resources.CountryCentralAfricanRepublic,value:n.resources.CountryCentralAfricanRepublic_FI,isSepa:!1},{label:n.resources.CountrySriLanka,value:n.resources.CountrySriLanka_FI,isSepa:!1},{label:n.resources.CountryChad,value:n.resources.CountryChad_FI,isSepa:!1},{label:n.resources.CountryChile,value:n.resources.CountryChile_FI,isSepa:!1},{label:n.resources.CountryChina,value:n.resources.CountryChina_FI,isSepa:!1},{label:n.resources.CountryTaiwan,value:n.resources.CountryTaiwan_FI,isSepa:!1},{label:n.resources.CountryColombia,value:n.resources.CountryColombia_FI,isSepa:!1},{label:n.resources.CountryComoros,value:n.resources.CountryComoros_FI,isSepa:!1},{label:n.resources.CountryMayotte,value:n.resources.CountryMayotte_FI,isSepa:!0},{label:n.resources.CountryCongoCongoBrazzaville,value:n.resources.CountryCongoCongoBrazzaville_FI,isSepa:!1},{label:n.resources.CountryCongoCongoKinshasa,value:n.resources.CountryCongoCongoKinshasa_FI,isSepa:!1},{label:n.resources.CountryCookIslands,value:n.resources.CountryCookIslands_FI,isSepa:!1},{label:n.resources.CountryCostaRica,value:n.resources.CountryCostaRica_FI,isSepa:!1},{label:n.resources.CountryCroatia,value:n.resources.CountryCroatia_FI,isSepa:!0},{label:n.resources.CountryCuba,value:n.resources.CountryCuba_FI,isSepa:!1},{label:n.resources.CountryCyprus,value:n.resources.CountryCyprus_FI,isSepa:!0},{label:n.resources.CountryCzechRepublic,value:n.resources.CountryCzechRepublic_FI,isSepa:!0},{label:n.resources.CountryBenin,value:n.resources.CountryBenin_FI,isSepa:!1},{label:n.resources.CountryDenmark,value:n.resources.CountryDenmark_FI,isSepa:!0},{label:n.resources.CountryDominica,value:n.resources.CountryDominica_FI,isSepa:!1},{label:n.resources.CountryDominicanRepublic,value:n.resources.CountryDominicanRepublic_FI,isSepa:!1},{label:n.resources.CountryEcuador,value:n.resources.CountryEcuador_FI,isSepa:!1},{label:n.resources.CountryElSalvador,value:n.resources.CountryElSalvador_FI,isSepa:!1},{label:n.resources.CountryEquatorialGuinea,value:n.resources.CountryEquatorialGuinea_FI,isSepa:!1},{label:n.resources.CountryEthiopia,value:n.resources.CountryEthiopia_FI,isSepa:!1},{label:n.resources.CountryEritrea,value:n.resources.CountryEritrea_FI,isSepa:!1},{label:n.resources.CountryEstonia,value:n.resources.CountryEstonia_FI,isSepa:!0},{label:n.resources.CountryFalklandIslandsMalvinas,value:n.resources.CountryFalklandIslandsMalvinas_FI,isSepa:!1},{label:n.resources.CountrySouthGeorgiaandtheSouthSandwichIslands,value:n.resources.CountrySouthGeorgiaandtheSouthSandwichIslands_FI,isSepa:!1},{label:n.resources.CountryFiji,value:n.resources.CountryFiji_FI,isSepa:!1},{label:n.resources.CountryFinland,value:n.resources.CountryFinland_FI,isSepa:!0},{label:n.resources.CountryFrance,value:n.resources.CountryFrance_FI,isSepa:!0},{label:n.resources.CountryFrenchGuiana,value:n.resources.CountryFrenchGuiana_FI,isSepa:!0},{label:n.resources.CountryFrenchPolynesia,value:n.resources.CountryFrenchPolynesia_FI,isSepa:!1},{label:n.resources.CountryDjibouti,value:n.resources.CountryDjibouti_FI,isSepa:!1},{label:n.resources.CountryGabon,value:n.resources.CountryGabon_FI,isSepa:!1},{label:n.resources.CountryGeorgia,value:n.resources.CountryGeorgia_FI,isSepa:!1},{label:n.resources.CountryGambia,value:n.resources.CountryGambia_FI,isSepa:!1},{label:n.resources.CountryPalestinianTerritory,value:n.resources.CountryPalestinianTerritory_FI,isSepa:!1},{label:n.resources.CountryGermany,value:n.resources.CountryGermany_FI,isSepa:!0},{label:n.resources.CountryGhana,value:n.resources.CountryGhana_FI,isSepa:!1},{label:n.resources.CountryGibraltar,value:n.resources.CountryGibraltar_FI,isSepa:!0},{label:n.resources.CountryKiribati,value:n.resources.CountryKiribati_FI,isSepa:!1},{label:n.resources.CountryGreece,value:n.resources.CountryGreece_FI,isSepa:!0},{label:n.resources.CountryGrenada,value:n.resources.CountryGrenada_FI,isSepa:!1},{label:n.resources.CountryGuadeloupe,value:n.resources.CountryGuadeloupe_FI,isSepa:!0},{label:n.resources.CountryGuam,value:n.resources.CountryGuam_FI,isSepa:!1},{label:n.resources.CountryGuatemala,value:n.resources.CountryGuatemala_FI,isSepa:!1},{label:n.resources.CountryGuinea,value:n.resources.CountryGuinea_FI,isSepa:!1},{label:n.resources.CountryGuyana,value:n.resources.CountryGuyana_FI,isSepa:!1},{label:n.resources.CountryHaiti,value:n.resources.CountryHaiti_FI,isSepa:!1},{label:n.resources.CountryHonduras,value:n.resources.CountryHonduras_FI,isSepa:!1},{label:n.resources.CountryHongKong,value:n.resources.CountryHongKong_FI,isSepa:!1},{label:n.resources.CountryHungary,value:n.resources.CountryHungary_FI,isSepa:!0},{label:n.resources.CountryIceland,value:n.resources.CountryIceland_FI,isSepa:!0},{label:n.resources.CountryIndia,value:n.resources.CountryIndia_FI,isSepa:!1},{label:n.resources.CountryIndonesia,value:n.resources.CountryIndonesia_FI,isSepa:!1},{label:n.resources.CountryIran,value:n.resources.CountryIran_FI,isSepa:!1},{label:n.resources.CountryIraq,value:n.resources.CountryIraq_FI,isSepa:!1},{label:n.resources.CountryIreland,value:n.resources.CountryIreland_FI,isSepa:!0},{label:n.resources.CountryIsrael,value:n.resources.CountryIsrael_FI,isSepa:!1},{label:n.resources.CountryItaly,value:n.resources.CountryItaly_FI,isSepa:!0},{label:n.resources.CountryCotedIvoire,value:n.resources.CountryCotedIvoire_FI,isSepa:!1},{label:n.resources.CountryJamaica,value:n.resources.CountryJamaica_FI,isSepa:!1},{label:n.resources.CountryJapan,value:n.resources.CountryJapan_FI,isSepa:!1},{label:n.resources.CountryKazakstan,value:n.resources.CountryKazakstan_FI,isSepa:!1},{label:n.resources.CountryJordan,value:n.resources.CountryJordan_FI,isSepa:!1},{label:n.resources.CountryKenya,value:n.resources.CountryKenya_FI,isSepa:!1},{label:n.resources.CountryKoreaDemocraticPeoplesRepublicofNorthKorea,value:n.resources.CountryKoreaDemocraticPeoplesRepublicofNorthKorea_FI,isSepa:!1},{label:n.resources.CountryKoreaRepublicofSouthKorea,value:n.resources.CountryKoreaRepublicofSouthKorea_FI,isSepa:!1},{label:n.resources.CountryKuwait,value:n.resources.CountryKuwait_FI,isSepa:!1},{label:n.resources.CountryKyrgyzstan,value:n.resources.CountryKyrgyzstan_FI,isSepa:!1},{label:n.resources.CountryLaoPeoplesDemocraticRepublic,value:n.resources.CountryLaoPeoplesDemocraticRepublic_FI,isSepa:!1},{label:n.resources.CountryLebanon,value:n.resources.CountryLebanon_FI,isSepa:!1},{label:n.resources.CountryLesotho,value:n.resources.CountryLesotho_FI,isSepa:!1},{label:n.resources.CountryLatvia,value:n.resources.CountryLatvia_FI,isSepa:!0},{label:n.resources.CountryLiberia,value:n.resources.CountryLiberia_FI,isSepa:!1},{label:n.resources.CountryLibyanArabJamahiriya,value:n.resources.CountryLibyanArabJamahiriya_FI,isSepa:!1},{label:n.resources.CountryLiechtenstein,value:n.resources.CountryLiechtenstein_FI,isSepa:!0},{label:n.resources.CountryLithuania,value:n.resources.CountryLithuania_FI,isSepa:!0},{label:n.resources.CountryLuxembourg,value:n.resources.CountryLuxembourg_FI,isSepa:!0},{label:n.resources.CountryMacau,value:n.resources.CountryMacau_FI,isSepa:!1},{label:n.resources.CountryMadagascar,value:n.resources.CountryMadagascar_FI,isSepa:!1},{label:n.resources.CountryMalawi,value:n.resources.CountryMalawi_FI,isSepa:!1},{label:n.resources.CountryMalaysia,value:n.resources.CountryMalaysia_FI,isSepa:!1},{label:n.resources.CountryMaldives,value:n.resources.CountryMaldives_FI,isSepa:!1},{label:n.resources.CountryMali,value:n.resources.CountryMali_FI,isSepa:!1},{label:n.resources.CountryMalta,value:n.resources.CountryMalta_FI,isSepa:!0},{label:n.resources.CountryMartinique,value:n.resources.CountryMartinique_FI,isSepa:!0},{label:n.resources.CountryMauritania,value:n.resources.CountryMauritania_FI,isSepa:!1},{label:n.resources.CountryMauritius,value:n.resources.CountryMauritius_FI,isSepa:!1},{label:n.resources.CountryMexico,value:n.resources.CountryMexico_FI,isSepa:!1},{label:n.resources.CountryMonaco,value:n.resources.CountryMonaco_FI,isSepa:!0},{label:n.resources.CountryMongolia,value:n.resources.CountryMongolia_FI,isSepa:!1},{label:n.resources.CountryMoldova,value:n.resources.CountryMoldova_FI,isSepa:!1},{label:n.resources.CountryMontenegro,value:n.resources.CountryMontenegro_FI,isSepa:!1},{label:n.resources.CountryMontserrat,value:n.resources.CountryMontserrat_FI,isSepa:!1},{label:n.resources.CountryMorocco,value:n.resources.CountryMorocco_FI,isSepa:!1},{label:n.resources.CountryMozambique,value:n.resources.CountryMozambique_FI,isSepa:!1},{label:n.resources.CountryOman,value:n.resources.CountryOman_FI,isSepa:!1},{label:n.resources.CountryNamibia,value:n.resources.CountryNamibia_FI,isSepa:!1},{label:n.resources.CountryNauru,value:n.resources.CountryNauru_FI,isSepa:!1},{label:n.resources.CountryNepal,value:n.resources.CountryNepal_FI,isSepa:!1},{label:n.resources.CountryNetherlands,value:n.resources.CountryNetherlands_FI,isSepa:!0},{label:n.resources.CountryNetherlandsAntilles,value:n.resources.CountryNetherlandsAntilles_FI,isSepa:!1},{label:n.resources.CountryNewCaledonia,value:n.resources.CountryNewCaledonia_FI,isSepa:!1},{label:n.resources.CountryVanuatu,value:n.resources.CountryVanuatu_FI,isSepa:!1},{label:n.resources.CountryNewZealand,value:n.resources.CountryNewZealand_FI,isSepa:!1},{label:n.resources.CountryNicaragua,value:n.resources.CountryNicaragua_FI,isSepa:!1},{label:n.resources.CountryNiger,value:n.resources.CountryNiger_FI,isSepa:!1},{label:n.resources.CountryNigeria,value:n.resources.CountryNigeria_FI,isSepa:!1},{label:n.resources.CountryNiue,value:n.resources.CountryNiue_FI,isSepa:!1},{label:n.resources.CountryNorway,value:n.resources.CountryNorway_FI,isSepa:!0},{label:n.resources.CountryNorthernMarianaIslands,value:n.resources.CountryNorthernMarianaIslands_FI,isSepa:!1},{label:n.resources.CountryMicronesia,value:n.resources.CountryMicronesia_FI,isSepa:!1},{label:n.resources.CountryMarshallIslands,value:n.resources.CountryMarshallIslands_FI,isSepa:!1},{label:n.resources.CountryPalau,value:n.resources.CountryPalau_FI,isSepa:!1},{label:n.resources.CountryPakistan,value:n.resources.CountryPakistan_FI,isSepa:!1},{label:n.resources.CountryPanama,value:n.resources.CountryPanama_FI,isSepa:!1},{label:n.resources.CountryPapuaNewGuinea,value:n.resources.CountryPapuaNewGuinea_FI,isSepa:!1},{label:n.resources.CountryParaguay,value:n.resources.CountryParaguay_FI,isSepa:!1},{label:n.resources.CountryPeru,value:n.resources.CountryPeru_FI,isSepa:!1},{label:n.resources.CountryPhilippines,value:n.resources.CountryPhilippines_FI,isSepa:!1},{label:n.resources.CountryPitcairn,value:n.resources.CountryPitcairn_FI,isSepa:!1},{label:n.resources.CountryPoland,value:n.resources.CountryPoland_FI,isSepa:!0},{label:n.resources.CountryPortugal,value:n.resources.CountryPortugal_FI,isSepa:!0},{label:n.resources.CountryGuineaBissau,value:n.resources.CountryGuineaBissau_FI,isSepa:!1},{label:n.resources.CountryEastTimor,value:n.resources.CountryEastTimor_FI,isSepa:!1},{label:n.resources.CountryPuertoRico,value:n.resources.CountryPuertoRico_FI,isSepa:!1},{label:n.resources.CountryQatar,value:n.resources.CountryQatar_FI,isSepa:!1},{label:n.resources.CountryReunion,value:n.resources.CountryReunion_FI,isSepa:!0},{label:n.resources.CountryRomania,value:n.resources.CountryRomania_FI,isSepa:!0},{label:n.resources.CountryRussianFederation,value:n.resources.CountryRussianFederation_FI,isSepa:!1},{label:n.resources.CountryRwanda,value:n.resources.CountryRwanda_FI,isSepa:!1},{label:n.resources.CountrySaintBarthelemy,value:n.resources.CountrySaintBarthelemy_FI,isSepa:!0},{label:n.resources.CountrySaintHelenaAscensionandTristandeCunha,value:n.resources.CountrySaintHelenaAscensionandTristandeCunha_FI,isSepa:!1},{label:n.resources.CountrySaintKittsandNevis,value:n.resources.CountrySaintKittsandNevis_FI,isSepa:!1},{label:n.resources.CountryAnguilla,value:n.resources.CountryAnguilla_FI,isSepa:!1},{label:n.resources.CountrySaintLucia,value:n.resources.CountrySaintLucia_FI,isSepa:!1},{label:n.resources.CountrySaintMartin,value:n.resources.CountrySaintMartin_FI,isSepa:!0},{label:n.resources.CountrySaintPierreandMiquelon,value:n.resources.CountrySaintPierreandMiquelon_FI,isSepa:!0},{label:n.resources.CountrySaintVincentandtheGrenadines,value:n.resources.CountrySaintVincentandtheGrenadines_FI,isSepa:!1},{label:n.resources.CountrySanMarino,value:n.resources.CountrySanMarino_FI,isSepa:!0},{label:n.resources.CountrySaoTomeandPrincipe,value:n.resources.CountrySaoTomeandPrincipe_FI,isSepa:!1},{label:n.resources.CountrySaudiArabia,value:n.resources.CountrySaudiArabia_FI,isSepa:!1},{label:n.resources.CountrySenegal,value:n.resources.CountrySenegal_FI,isSepa:!1},{label:n.resources.CountrySerbia,value:n.resources.CountrySerbia_FI,isSepa:!1},{label:n.resources.CountrySeychelles,value:n.resources.CountrySeychelles_FI,isSepa:!1},{label:n.resources.CountrySierraLeone,value:n.resources.CountrySierraLeone_FI,isSepa:!1},{label:n.resources.CountrySingapore,value:n.resources.CountrySingapore_FI,isSepa:!1},{label:n.resources.CountrySlovakia,value:n.resources.CountrySlovakia_FI,isSepa:!0},{label:n.resources.CountryVietnam,value:n.resources.CountryVietnam_FI,isSepa:!1},{label:n.resources.CountrySlovenia,value:n.resources.CountrySlovenia_FI,isSepa:!0},{label:n.resources.CountrySomalia,value:n.resources.CountrySomalia_FI,isSepa:!1},{label:n.resources.CountrySouthAfrica,value:n.resources.CountrySouthAfrica_FI,isSepa:!1},{label:n.resources.CountryZimbabwe,value:n.resources.CountryZimbabwe_FI,isSepa:!1},{label:n.resources.CountrySpain,value:n.resources.CountrySpain_FI,isSepa:!0},{label:n.resources.CountrySouthSudan,value:n.resources.CountrySouthSudan_FI,isSepa:!1},{label:n.resources.CountrySudan,value:n.resources.CountrySudan_FI,isSepa:!1},{label:n.resources.CountryWesternSahara,value:n.resources.CountryWesternSahara_FI,isSepa:!1},{label:n.resources.CountrySuriname,value:n.resources.CountrySuriname_FI,isSepa:!1},{label:n.resources.CountrySwaziland,value:n.resources.CountrySwaziland_FI,isSepa:!1},{label:n.resources.CountrySweden,value:n.resources.CountrySweden_FI,isSepa:!0},{label:n.resources.CountrySwitzerland,value:n.resources.CountrySwitzerland_FI,isSepa:!0},{label:n.resources.CountrySyrianArabRepublic,value:n.resources.CountrySyrianArabRepublic_FI,isSepa:!1},{label:n.resources.CountryTajikistan,value:n.resources.CountryTajikistan_FI,isSepa:!1},{label:n.resources.CountryThailand,value:n.resources.CountryThailand_FI,isSepa:!1},{label:n.resources.CountryTogo,value:n.resources.CountryTogo_FI,isSepa:!1},{label:n.resources.CountryTokelau,value:n.resources.CountryTokelau_FI,isSepa:!1},{label:n.resources.CountryTonga,value:n.resources.CountryTonga_FI,isSepa:!1},{label:n.resources.CountryTrinidadandTobago,value:n.resources.CountryTrinidadandTobago_FI,isSepa:!1},{label:n.resources.CountryUnitedArabEmirates,value:n.resources.CountryUnitedArabEmirates_FI,isSepa:!1},{label:n.resources.CountryTunisia,value:n.resources.CountryTunisia_FI,isSepa:!1},{label:n.resources.CountryTurkey,value:n.resources.CountryTurkey_FI,isSepa:!1},{label:n.resources.CountryTurkmenistan,value:n.resources.CountryTurkmenistan_FI,isSepa:!1},{label:n.resources.CountryTurksandCaicosIslands,value:n.resources.CountryTurksandCaicosIslands_FI,isSepa:!1},{label:n.resources.CountryTuvalu,value:n.resources.CountryTuvalu_FI,isSepa:!1},{label:n.resources.CountryUganda,value:n.resources.CountryUganda_FI,isSepa:!1},{label:n.resources.CountryUkraine,value:n.resources.CountryUkraine_FI,isSepa:!1},{label:n.resources.CountryMacedonia,value:n.resources.CountryMacedonia_FI,isSepa:!1},{label:n.resources.CountryEgypt,value:n.resources.CountryEgypt_FI,isSepa:!1},{label:n.resources.CountryUnitedKingdom,value:n.resources.CountryUnitedKingdom_FI,isSepa:!0},{label:n.resources.CountryGuernsey,value:n.resources.CountryGuernsey_FI,isSepa:!0},{label:n.resources.CountryJersey,value:n.resources.CountryJersey_FI,isSepa:!0},{label:n.resources.CountryTanzania,value:n.resources.CountryTanzania_FI,isSepa:!1},{label:n.resources.CountryUnitedStates,value:n.resources.CountryUnitedStates_FI,isSepa:!1},{label:n.resources.CountryVirginIslandsUS,value:n.resources.CountryVirginIslandsUS_FI,isSepa:!1},{label:n.resources.CountryBurkinaFaso,value:n.resources.CountryBurkinaFaso_FI,isSepa:!1},{label:n.resources.CountryUruguay,value:n.resources.CountryUruguay_FI,isSepa:!1},{label:n.resources.CountryUzbekistan,value:n.resources.CountryUzbekistan_FI,isSepa:!1},{label:n.resources.CountryVenezuela,value:n.resources.CountryVenezuela_FI,isSepa:!1},{label:n.resources.CountryWallisandFutuna,value:n.resources.CountryWallisandFutuna_FI,isSepa:!1},{label:n.resources.CountrySamoa,value:n.resources.CountrySamoa_FI,isSepa:!1},{label:n.resources.CountryYemen,value:n.resources.CountryYemen_FI,isSepa:!1},{label:n.resources.CountryZambia,value:n.resources.CountryZambia_FI,isSepa:!1}],i;this.getCountries=function(){return _.orderBy(r,["label"],["asc"])};this.isCountryInSepa=function(n){return _.some(r,function(t){return t.value==n&&t.isSepa})};i=[];t.get("/data/GetApartments/?query=&lang="+currentPageLanguage).then(function(n){n.data.length!==0&&(i=n.data)},function(n){console.log(n)});this.getAvailableApartments=function(){return i}}angular.module("app").service("countryService",n);n.$inject=["$window","$http"]}(),function(){"use strict";function n(n){var r=[],t,i;n.get("/data/GetSchools/?query=&lang="+currentPageLanguage).then(function(n){n.data.length!==0&&(r=n.data)},function(n){console.log(n)});t=[];n.get("/data/GetExchangeSchools/?query=&exchangeSchoolType=ExchangeSchools").then(function(n){n.data.length!==0&&(t=n.data)},function(n){console.log(n)});i=[];n.get("/data/GetExchangeSchools/?query=&exchangeSchoolType=InternationalFaculties").then(function(n){n.data.length!==0&&(i=n.data)},function(n){console.log(n)});this.getSchools=function(n){if(!n)return null;var t=[];return t=_.pickBy(r,function(t){return t.degree==n}),_.orderBy(t,["degree","school"],["asc","asc"])};this.getAllSchools=function(){return n.get("/data/GetSchools/?query=&lang="+currentPageLanguage)};this.getExchangeFaculties=function(){return t};this.getInternationalFaculties=function(){return i}}angular.module("app").service("schoolService",n);n.$inject=["$http"]}(),function(){"use strict";function n(n){this.getRegions=function(){return n.get("/data/GetRegions/")}}angular.module("app").service("regionService",n);n.$inject=["$http"]}(),function(){"use strict";function n(){function n(n){return{terminatingLastName:null,terminatingFirstNames:null,terminatingPersonalIdentityNumber:null,terminatingNationality:n.value,terminatingPassportNumber:null,terminatingIDCardNumber:null,terminatingNewAddressUnknown:null,terminatingNewStreetAddress:null,terminatingNewPostalCode:null,terminatingNewCity:null,terminatingPhone:null,terminatingEmail:null,terminatingContactDisclosureProhibition:"Kyllä"}}return{createTerminating:n}}angular.module("app").factory("terminatingFactory",n)}()