(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{"forms/0026/applications/customElements/instructions-required-fields.html":function(e,t){e.exports="<template bindable=\"type\"> <ul show.bind=\"type =='pub'\"> <li>Publication title</li> <li>Project manager</li> <li>Department responsible for the grant</li> <li>Budget</li> </ul> <ul show.bind=\"type == 'pub-rpt'\"> <li>Publikationens titel/Title of the publication</li> <li>Projektledare/Project manager</li> <li>Medelsförvaltare/Grant administrator</li> <li>Budget</li> </ul> <ul show.bind=\"type == 'grandproject'\"> <li>Project title</li> <li>Project manager</li> <li>Department responsible for the grant</li> <li>Project period</li> <li>Budget, including budget for at least 3 fellow applicants.</li> <li>Budget for Postdocs</li> <li>Budget for doctoral students</li> </ul> <ul show.bind=\"type == 'postdoc2' || type == 'researchnetwork'\"> <li>Project title</li> <li>Project manager</li> <li>Project period</li> <li>Department responsible for the grant</li> <li>Budget</li> </ul> <ul show.bind=\"type =='prj2'\"> <li>Project title</li> <li>Project manager</li> <li>Project period</li> <li>Department responsible for the grant</li> <li>Number of participants</li> <li>Budget</li> </ul> <ul show.bind=\"type =='rn-srp'\"> <li>Project title</li> <li>Project manager</li> <li>Budget</li> </ul> <ul show.bind=\"type =='conf'\"> <li>Conference title</li> <li>Project manager</li> <li>Department responsible for the grant</li> <li>Budget</li> </ul> </template> "},"forms/0026/applications/customElements/instructions-sign.html":function(e,t,r){e.exports='<template bindable="type"> <require from="./instructions-required-fields.html"></require> <div class="panel-group col-12 col-md-12 mt-2 ml-4 hidden-print" id="accordion" role="tablist" aria-multiselectable="true"> <div class="panel panel-default"> <div class="panel-heading" role="tab" id="headingOne"> <h5 class="panel-title"> <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> This application contains options for digital or manual signatures. <br/>Click here for more information. </a> </h5> </div> <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne"> <div class="panel-body"> <ul class="mt-4 mr-5"> <li> <b>The project manager and the grant administrator’s authorised representative need to sign this form using BankID.</b> <ul> <li> For the grant administrator’s authorised representative’s signature you need to send a request for signature notification. You send the notification from this form. </li> <li> The grant administrator’s authorised representative will get an e-mail with instructions on how to sign. </li> <li> Once the co-signature is provided it will show up at the bottom of this form. You will get a notification from Apply by email about the signature. </li> <li> Before signing the application, these fields need to be filled in: <instructions-required-fields type="${type}"></instructions-required-fields> </li> <li> It will not be possible to change these fields once the project manager signed the application or after sending a request for signature from a grant administrator’s authorised representative. The above listed fields <i> will be locked. </i> Then you will need to create a new application if you want to update these fields. </li> </ul> </li> <li> <b>If BankID cannot be used.</b> <ul> <li> In Type of signature dropdown, Select <ul> <i>Generate signature form</i> <li>Print the signature form.</li> <li> Provide necessary singatures on paper and scan the form. </li> <li>Attach the document to this application.</li> </ul> </li> </ul> </li> </ul> </div> </div> </div> </div> </template> '},"forms/0026/applications/customElements/validation-messages.html":function(e,t){e.exports='<template bindable="messages"> <div style="background-color:#fafad2;z-index:2000;position:relative" if.bind="messages.length > 0"> <ul> <li class="d-inline-block">Missing mandatory information:</li> <li repeat.for="message of messages" class="d-inline-block"> ${message}, &nbsp; </li> </ul> </div> </template> '},"forms/0026/applications/doctoral-student":function(e,t,r){"use strict";r.r(t),r.d(t,"DoctoralStudentViewMmodel",(function(){return s}));var a,o=r("aurelia-framework"),i=r("aurelia-event-aggregator"),n=r("16wM"),s=(o.d.getLogger("0026-doctoral-student"),Object(o.j)(i.a)(a=function(){function e(e){this.ea=e}var t=e.prototype;return t.activate=function(e){this.form=e,this.subscriptions=[],this.index=this.form.groupIndex},t.attached=function(){this.form.instanceId||(this.form.instanceId=Object(n.a)())},e}())||a)},"forms/0026/applications/doctoral-student.html":function(e,t){e.exports='<template> <div class="row"> <div class="col-12 col-md-6"> <div class="form-group"> <input type="hidden" value.bind="form.instanceId" form-field/> </div> </div> </div>  </template> '},"forms/0026/applications/fellow-applicant":function(e,t,r){"use strict";r.r(t),r.d(t,"FellowApplicantViewModel",(function(){return b}));var a,o=r("aurelia-framework"),i=r("aurelia-validation"),n=r("aurelia-event-aggregator"),s=r("Zf3E"),l=r("16wM"),d=r("4BB+"),c=r("WgLK"),m=r("0Rxk"),u=r("zPLg"),p=r("whoc");function f(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}o.d.getLogger("0026-fellow-applicant");var b=Object(o.j)(n.a,d.a,c.a,Element)(a=function(){function e(e,t,r,a){this.ea=e,this.countryService=t,this.attachmentService=r,this.countries=[],this.currentYear=(new Date).getFullYear(),this.elementId=a.attributes["au-target-id"].value}var t=e.prototype;return t.activate=function(e){var t=this;return this.form=e||{},this.subscriptions=[],this.index=this.form.groupIndex,"true"===this.form.fellowApplicantOrcidNotApplicable&&(this.form.fellowApplicantOrcidNotApplicable=!0),this.countryService.getCountries().then((function(e){t.countries=e}))},t.attached=function(){var e=this;this.form.instanceId||(this.form.instanceId=Object(l.a)()),this.subscriptions.push(this.ea.subscribe(u.a,(function(t){e.onFormFieldChanged(t)}))),this.subscriptions.push(this.ea.subscribe(s.a,(function(t){t.name==="cv_"+e.form.instanceId&&(e.form.attachementCV=t.isUploaded,e.attachmentId=t.id)}))),this.subscriptions.push(this.ea.subscribe(m.a,(function(t){return e.onGroupItemRemoved(t)}))),Object(p.a)();var t=i.ValidationRules.ensure((function(e){return e.name})).required().withMessage("Fellow applicant - Name").ensure((function(e){return e.title})).required().withMessage("Fellow applicant - Title").ensure((function(e){return e.educationUniversity})).required().withMessage("Fellow applicant - Higher education institution/University").ensure((function(e){return e.educationDepartment})).required().withMessage("Fellow applicant - Department").ensure((function(e){return e.selectedCountry})).required().withMessage("Fellow applicant - Country").ensure((function(e){return e.gender})).required().withMessage("Fellow applicant - Gender").ensure((function(e){return e.ssn})).required().withMessage("Fellow applicant - Personal identity number/date of birth").matches(/^(19|20)?[0-9]{6}[- ]?[0-9X]{4}$/).withMessage("Fellow applicant - Personal identity number/date of birth").ensure((function(e){return e.fellowApplicantOrcid})).required().matches(/^(\d{4}-){3}\d{3}(\d|X|x)$/).when((function(e){return!0!==e.fellowApplicantOrcidNotApplicable})).withMessage("Fellow applicant - ORCID is formatted wrong").ensure((function(e){return e.email})).required().withMessage("Fellow applicant - Email").email().withMessage("Fellow applicant - Invalid email format").ensure((function(e){return e.yearOfDegree})).required().withMessage("Fellow applicant - Year of doctoral degree").ensure((function(e){return e.attachementCV})).satisfies((function(e){return!0===e})).withMessage("Fellow applicant - Attachment: CV");"researchnetwork"!==this.form.applicationType&&"grandproject"!==this.form.applicationType&&t.ensure((function(e){return e.fa_lkp})).required().withMessage("Fellow applicant - Employee benefits (LKP)").ensure((function(e){return e.fa_overheadPercentage})).required().withMessage("Fellow applicant - Overhead cost"),t.on(this.form)},t.onGroupItemRemoved=function(e){e.reference===this.form.instanceId&&void 0!==this.attachmentId&&null!==this.attachmentId&&this.attachmentService.remove(this.attachmentId)},t.onFormFieldChanged=function(e){e.groupIndex===this.form.groupIndex&&"fellowApplicantOrcidNotApplicable"===e.name&&(e.value?this.form.fellowApplicantOrcid="Not applicable":this.form.fellowApplicantOrcid="")},t.detached=function(){for(var e,t=f(this.subscriptions);!(e=t()).done;){e.value.dispose()}},e}())||a},"forms/0026/applications/fellow-applicant.html":function(e,t){e.exports='<template> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Name</label> <input type="text" value.bind="form.name" form-field class="form-control" placeholder="Enter name of fellow applicant"/> </div> <div class="form-group col-12 col-md-6"> <label>Gender</label> <select value.bind="form.gender" class="form-control" form-field> <option></option> <option value="woman">Woman</option> <option value="man">Man</option> <option value="other">Other</option> </select> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Title</label> <input type="text" value.bind="form.title" form-field class="form-control" placeholder="Enter title"/> <small class="form-text text-muted"> &nbsp; </small> <small class="form-text text-muted"> &nbsp; </small> </div> <div class="form-group col-12 col-md-6"> <label>Personal identity number/Date of birth</label> <input type="text" value.bind="form.ssn" form-field class="form-control" placeholder="Enter personal identity number/date of birth"/> <small class="form-text text-muted"> Swedish personal identity number (YYYYMMDD-NNNN).<br/> For non Swedish residents fill in date of birth plus \'-XXXX\' (YYYYMMDD-XXXX) </small> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Higher education institution/University</label> <input type="text" value.bind="form.educationUniversity" form-field class="form-control" placeholder="Enter higher education institution/University"/> </div> <div class="form-group col-12 col-md-6"> <label>ORCID </label>&nbsp; <input type="checkbox" checked.bind="form.fellowApplicantOrcidNotApplicable" form-field/>&nbsp;<label class="text-muted">Not applicable</label> <input if.bind="form.fellowApplicantOrcidNotApplicable === true" readonly="readonly" type="text" form-field value.bind="form.fellowApplicantOrcid" class="form-control" placeholder="Enter ORCID if applicable"/> <input if.bind="form.fellowApplicantOrcidNotApplicable !== true" type="text" form-field value.bind="form.fellowApplicantOrcid" class="form-control" placeholder="Enter ORCID if applicable"/> <small class="form-text text-muted"> If applicable, must be formatted as NNNN-NNNN-NNNN-NNNN. </small> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Department</label> <input type="text" value.bind="form.educationDepartment" form-field class="form-control" placeholder="Enter department"/> </div> <div class="form-group col-12 col-md-6"> <label>Email</label> <input type="email" value.bind="form.email" form-field class="form-control" placeholder="Enter email"/> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Country</label> <select value.bind="form.selectedCountry" class="form-control" form-field> <option value.bind="null"></option> <option repeat.for="country of countries" value.bind="country.name">${country.name}</option> </select> </div> <div class="form-group col-12 col-md-6"> <label>Year of doctoral degree</label> <select value.bind="form.yearOfDegree" class="form-control" form-field> <option></option> <option if.bind="form.applicationType===\'researchnetwork\'">No doctoral degree</option> <option repeat.for="i of 72">${currentYear-i}</option> </select> </div> </div> <div class="row"> <div class="form-group col-12"> <input type="hidden" value.bind="form.instanceId" form-field/> <attachment name="cv_${form.instanceId}" description="CV" max-pages="2" accept="application/pdf" index="100${$index}" type="Document" reference-id.bind="form.applicationId"></attachment> <hr/> </div> </div> </template> '},"forms/0026/applications/grandproject":function(e,t,r){"use strict";r.r(t),r.d(t,"ViewModel",(function(){return g}));var a,o=r("aurelia-framework"),i=r("aurelia-event-aggregator"),n=r("aurelia-validation"),s=r("Zf3E"),l=r("zPLg"),d=r("4BB+"),c=r("0Rxk"),m=r("whoc"),u=r("eGVH"),p=r("tuJm");function f(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var b=o.d.getLogger("0026-grandproject"),g=Object(o.j)(i.a,d.a)(a=function(){function e(e,t){this.ea=e,this.countryService=t,this.isloading=!0,this.countries=[],this.projectManagerSelectedCountry="",this.currentYear=(new Date).getFullYear()}var t=e.prototype;return t.activate=function(e){var t=this;this.form=e,this.validationMessagesApplicationSignature=[],this.validationMessagesCoSignature=[],this.signValidationRules=[{key:"projectTitle",message:"Project title"},{key:"projectManager",message:"Name of project manager"},{key:"totalSalaryCost",message:"Budget"},{key:"totalOverheadCost",message:"Total overhead costs"},{key:"AllTotalOtherCosts",message:"Other costs total"},{key:"department",message:"Department responsible for the grant"},{key:"years",message:"Project period"},{key:"fellowApplicants",message:"Fellow applicants",minCount:3}],this.coSignValidationRules=[].concat(this.signValidationRules,[{key:"prefektName",message:"Name of grant's administrator"},{key:"prefektEmail",message:"Email of grant's administrator"}]),this.coFormVm={referenceId:e.applicationId,coSignatureSigned:!0},this.form.fellowApplicants||(this.form.fellowApplicants=[]),this.form.doctoralStudents||(this.form.doctoralStudents=[]),this.form.postdocs||(this.form.postdocs=[]),this.countryService.getCountries().then((function(e){t.countries=e})),Object(m.a)(),n.ValidationRules.ensure((function(e){return e.appSignatureSigned})).satisfies((function(e){return!0===e})).withMessage("Sign with BankID").when((function(e){return"BankID"==e.signatureType})).ensure((function(e){return e.coSignatureSigned})).satisfies((function(e){return!0===e})).withMessage("Co signature missing").when((function(e){return"BankID"==e.signatureType})).ensure((function(e){return e.projectManager})).required().withMessage("Name of project manager").ensure((function(e){return e.years})).required().withMessage("Project period").ensure((function(e){return e.projectTitle})).required().withMessage("Project title").ensure((function(e){return e.projectSummary})).required().withMessage("Project summary").ensure((function(e){return e.disciplines})).required().withMessage("Research disciplines").ensure((function(e){return e.keywords})).required().withMessage("Keywords").ensure((function(e){return e.department})).required().withMessage("Department responsible for the project").ensure((function(e){return e.otherFundingSources})).required().withMessage("A grant is being applied for from another funder?").ensure((function(e){return e.commentOtherFundingSources})).required().when((function(e){return"yes"===e.otherFundingSources})).withMessage("Other funding sources").ensure((function(e){return e.attachmentProjectDescription})).satisfies((function(e){return!0===e})).withMessage("Attachment: Project description").ensure((function(e){return e.attachmentReferences})).satisfies((function(e){return!0===e})).withMessage("Attachment: References").ensure((function(e){return e.attachementSignatures})).satisfies((function(e){return!0===e})).withMessage("Attachment: Signatures").when((function(e){return"signatureForm"==e.signatureType})).ensure((function(e){return e.projectManagerTitle})).required().withMessage("Project manager - Title").ensure((function(e){return e.projectManagerEducationUniversity})).required().withMessage("Project manager - Higher education institution/University").ensure((function(e){return e.projectManagerEducationDepartment})).required().withMessage("Project manager - Department").ensure((function(e){return e.projectManagerAddress})).required().withMessage("Project manager - Street address").ensure((function(e){return e.projectManagerPostalCode})).required().withMessage("Project manager - Postal code").ensure((function(e){return e.projectManagerCity})).required().withMessage("Project manager - City").ensure((function(e){return e.projectManagerSelectedCountry})).required().withMessage("Project manager - Country").ensure((function(e){return e.projectManagerGender})).required().withMessage("Project manager - Gender").ensure((function(e){return e.projectManagerSSN})).matches(/^(19|20)?[0-9]{6}[- ]?[0-9X]{4}$/).withMessage("Project manager - Personal identity number/date of birth").required().withMessage("Project manager - Personal identity number/date of birth").ensure((function(e){return e.projectManagerPhone})).required().withMessage("Project manager - Phone").satisfiesRule("int_phoneno").withMessage("Project manager - Phone: missing country code").ensure((function(e){return e.projectManagerOrcid})).required().matches(/^(\d{4}-){3}\d{3}(\d|X|x)$/).when((function(e){return!0!==e.orcidNotApplicable})).withMessage("Project manager - ORCID is formatted wrong").ensure((function(e){return e.projectManagerEmail})).required().withMessage("Project manager - Email").email("Project manager - Invalid email format").ensure((function(e){return e.projectManagerYearOfDegree})).required().withMessage("Project manager - Year of doctoral degree").ensure((function(e){return e.attachmentProjectManagerCV})).satisfies((function(e){return!0===e})).withMessage("Attachment: Project Manager - CV").ensure((function(e){return e.budgetComment})).required().withMessage("Budget Comment").ensure((function(e){return e.ethicalConsiderations})).required().withMessage("Ethical considerations").ensure((function(e){return e.confirmTerms})).satisfies((function(e){return!0===e})).withMessage("Privacy policy").ensure((function(e){return e.overheadPercentage})).required().withMessage("Overhead cost").ensure((function(e){return e.fellowApplicants})).satisfies((function(e){return e.length>=3})).withMessage("Grand project requires at least 3 fellow applicants in addition to project manager").ensure((function(e){return e.totalAppliedSum})).satisfies((function(e){return e>0})).withMessage("Total applied sum should exceed 0 SEK").ensure((function(e){return e.totalAppliedSum})).satisfies((function(e){return e<=2e7})).when((function(e){return 4==e.years})).withMessage("Total applied sum cannot exceed 20 000 000 SEK").ensure((function(e){return e.totalAppliedSum})).satisfies((function(e){return e<=25e6})).when((function(e){return 5==e.years})).withMessage("Total applied sum cannot exceed 25 000 000 SEK").on(this.form)},t.attached=function(){var e=this;this.isloading=!1,this.subscriptions=[],this.subscriptions.push(this.ea.subscribe(l.a,(function(t){e.onFormFieldChanged(t)}))),this.subscriptions.push(this.ea.subscribe(c.a,(function(t){e.onGroupItemRemoved(t)}))),this.subscriptions.push(this.ea.subscribe(s.a,(function(t){"projectDescription"===t.name&&(e.form.attachmentProjectDescription=t.isUploaded),"signatures"===t.name&&(e.form.attachementSignatures=t.isUploaded),"references"===t.name&&(e.form.attachmentReferences=t.isUploaded),"projectManagerCV"===t.name&&(e.form.attachmentProjectManagerCV=t.isUploaded)})),this.ea.subscribe(u.a,(function(t){"cosign"==t.type&&(e.form.coSignatureSigned=!0),"application"==t.type&&(e.form.appSignatureSigned=!0)}))),this.form.openAccessPublication=2e5,this.form.selectedUniversity="Södertörn University",this.validationMessagesApplicationSignature=Object(p.a)(this.signValidationRules,this.form),this.validationMessagesCoSignature=Object(p.a)(this.coSignValidationRules,this.form)},t.onFormFieldChanged=function(e){var t=e.name;if("orcidNotApplicable"===t&&(!0===this.form.orcidNotApplicable?this.form.projectManagerOrcid="Not applicable":this.form.projectManagerOrcid=""),"years"===t){var r=parseInt(e.value,10);this.clearColumns(r+1)}if((t.indexOf("monthlySalaryY")>-1||t.indexOf("ftePercentageY")>-1)&&this.calcSalaryCosts(t,e.groupName),t.indexOf("salaryY")>-1){var a=t[t.length-1];this.calcTotalSalaryCosts(a)}if("overheadPercentage"===t)for(var o=1;o<=5;o++)this.calcTotalSalaryCosts(o);t.indexOf("premisesCostsY")>-1&&this.calcTotalPremisesCosts(),t.indexOf("investigationCostsY")>-1&&this.calcTotalInvestigationCosts(),t.indexOf("travelCostsY")>-1&&this.calcTotalTravelCosts(),t.indexOf("otherCostsY")>-1&&this.calcTotalOtherCostsTotal(),this.validationMessagesApplicationSignature=Object(p.a)(this.signValidationRules,this.form),this.validationMessagesCoSignature=Object(p.a)(this.coSignValidationRules,this.form)},t.onGroupItemRemoved=function(e){for(var t=1;t<=5;t++)this.calcTotalSalaryCosts(t)},t.clearColumns=function(e){this.form["overheadCostY"+e]=0,this.form["premisesCostsY"+e]=0,this.form["investigationCostsY"+e]=0,this.form["travelCostsY"+e]=0,this.form["otherCostsY"+e]=0,this.form["monthlySalaryY"+e]=0,this.form["ftePercentageY"+e]=0,this.form["otherCostsTotalY"+e]=0;for(var t,r=f(this.form.fellowApplicants);!(t=r()).done;){var a=t.value;a["monthlySalaryY"+e]=0,a["ftePercentageY"+e]=0}for(var o,i=f(this.form.doctoralStudents);!(o=i()).done;){var n=o.value;n["monthlySalaryY"+e]=0,n["ftePercentageY"+e]=0}for(var s,l=f(this.form.postdocs);!(s=l()).done;){var d=s.value;d["monthlySalaryY"+e]=0,d["ftePercentageY"+e]=0}},t.printSignaturePage=function(){var e=this;this.print=!0,setTimeout((function(){window.print(),e.print=!1,setTimeout((function(){return e.signatureswrapper.scrollIntoView()}),100)}),100)},t.calcSalaryCosts=function(e,t){var r=e[e.length-1];if("doctoralStudents"==t)for(var a,o=f(this.form.doctoralStudents);!(a=o()).done;){var i=a.value,n=parseInt(i["monthlySalaryY"+r],10),s=parseFloat(i["ftePercentageY"+r],10),l=Math.round(n*(s/100)*12);i["salaryY"+r]=l}else if("postdocs"==t)for(var d,c=f(this.form.postdocs);!(d=c()).done;){var m=d.value,u=parseInt(m["monthlySalaryY"+r],10),p=parseFloat(m["ftePercentageY"+r],10),h=Math.round(u*(p/100)*12);m["salaryY"+r]=h}else if("fellowApplicants"==t)for(var g,y=f(this.form.fellowApplicants);!(g=y()).done;){var v=g.value,x=parseInt(v["monthlySalaryY"+r],10),S=parseFloat(v["ftePercentageY"+r],10),w=Math.round(x*(S/100)*12);b.info(w),v["salaryY"+r]=w}else{var Y=parseInt(this.form["monthlySalaryY"+r],10),C=parseFloat(this.form["ftePercentageY"+r],10),j=Math.round(Y*(C/100)*12);this.form["salaryY"+r]=j}},t.calcTotalSalaryCosts=function(e){var t=parseInt(this.form["salaryY"+e],10);isNaN(t)&&(t=0);for(var r,a=f(this.form.fellowApplicants);!(r=a()).done;){var o=r.value,i=parseInt(o["salaryY"+e],10);isNaN(i)||(t+=i)}for(var n,s=f(this.form.doctoralStudents);!(n=s()).done;){var l=n.value,d=parseInt(l["salaryY"+e],10);isNaN(d)||(t+=d)}for(var c,m=f(this.form.postdocs);!(c=m()).done;){var u=c.value,p=parseInt(u["salaryY"+e],10);isNaN(p)||(t+=p)}var h=parseFloat(this.form.overheadPercentage,10)/100;h||(h=0);var b=parseInt(t,10),g=Math.round(1.56*t,10),y=(g=parseInt(g,10))*h;this.form["salarySumY"+e]=Math.round(b),this.form["salarySumCostY"+e]=Math.round(g),this.form["overheadCostY"+e]=Math.round(y),this.form["salaryTotalCostY"+e]=Math.round(g+y)},t.calcTotalPremisesCosts=function(){for(var e=0,t=1;t<6;t++)e+=parseInt(this.form["premisesCostsY"+t],10)||0;this.form.totalPremisesCosts=parseInt(e,10)},t.calcTotalInvestigationCosts=function(){for(var e=0,t=1;t<6;t++)e+=parseInt(this.form["investigationCostsY"+t],10)||0;this.form.totalInvestigationCosts=parseInt(e,10)},t.calcTotalTravelCosts=function(){for(var e=0,t=1;t<6;t++)e+=parseInt(this.form["travelCostsY"+t],10)||0;this.form.totalTravelCosts=parseInt(e,10)},t.calcTotalOtherCostsTotal=function(){for(var e=0,t=1;t<6;t++)e+=parseInt(this.form["otherCostsY"+t],10)||0;this.form.totalOtherCostsTotal=parseInt(e,10)},t.detached=function(){for(var e,t=f(this.subscriptions);!(e=t()).done;){e.value.dispose()}},e}())||a},"forms/0026/applications/grandproject.html":function(e,t,r){e.exports='<template> <style>input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}</style> <div class="row"> <div class="col-12 col-md-4 mt-2"> <img class="responsive-img w-100" src="https://apply-pub.s3.eu-north-1.amazonaws.com/ostersjostiftelsen/logo.png" alt="Östersjöstiftelsen"/> </div> <div class="col-12 col-md-8 mt-2"> <p class="text-right"><strong>APPLICATION - GRAND PROJECT</strong></p> </div> <div class="row"> <require from="./customElements/instructions-sign.html"></require> <instructions-sign type="grandproject"></instructions-sign> </div> <div class="col-12" show.bind="!print"> <div class="form-section"> <h4 class="form-section-header">PROJECT</h4> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Name of project manager</label> <input type="text" value.bind="form.projectManager" form-field applicant-name placeholder="Enter name of the project manager" class="form-control" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </div> <div class="form-group col-12 col-md-3"> <label>Grant type</label> <select value.bind="form.grantType" class="form-control" form-field> <option selected="selected" value="grandproject">Grand Project</option> </select> </div> <div class="form-group col-12 col-md-3"> <label>Project period</label> <select value.bind="form.years" class="form-control" form-field disabled.bind="form.hasBeenNotified || form.appSignatureSigned"> <option></option> <option value="4">4 years</option> <option value="5">5 years</option> </select> </div> <div class="form-group col-12"> <label>Project title</label> <textareaex value.bind="form.projectTitle" application-description form-field placeholder="Enter project title" maxlength="400" rows="2" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"> </textareaex> </div> <div class="form-group col-12"> <label>Project summary</label> <textareaex type="text" value.bind="form.projectSummary" form-field placeholder="Write project summary" rows="10" maxlength="1500"></textareaex> </div> <div class="form-group col-12"> <label>Research disciplines, 1 to 3</label> <textareaex type="text" value.bind="form.disciplines" form-field placeholder="Enter at least 1 and max 3 research disciplines" maxlength="200" rows="2"> </textareaex> </div> <div class="form-group col-12"> <label>Keywords (max 5)</label> <textareaex type="text" value.bind="form.keywords" form-field placeholder="Enter keywords, max 5" maxlength="200" rows="2"> </textareaex> </div> </div> <div class="row"> <div class="form-group col-12"> <label>Department responsible for the project</label> <select value.bind="form.department" class="form-control" form-field disabled.bind="form.hasBeenNotified || form.appSignatureSigned"> <option value="">-- select from list --</option> <option value="Police Education">Police Education</option> <option value="The School of Culture and Education"> The School of Culture and Education </option> <option value="The School of Historical and Contemporary Studies"> The School of Historical and Contemporary Studies </option> <option value="The School of Natural Sciences, Technology and Environmental Studies"> The School of Natural Sciences, Technology and Environmental Studies </option> <option value="The School of Social Sciences"> The School of Social Sciences </option> <option value="Teacher Education">Teacher Education</option> </select> </div> <div class="form-group col-12"> <label>Grant administrator</label> <input type="text" value.bind="form.selectedUniversity" class="form-control" disabled="disabled"/> <input type="hidden" value.bind="form.selectedUniversity" form-field class="form-control"/> </div> <div class="form-group col-12"> <label>Ethical considerations</label> <small class="form-text text-muted"> Comment on and justfy if the project entails no ethical problems, if it requires certain ethical considerations, <br/> whether it is to be assessed by the Swedish Ethical Review Authority or has already obtained ethical approval. </small> <textareaex type="text" value.bind="form.ethicalConsiderations" form-field placeholder="Enter any ethical considerations" rows="10" maxlength="3000"></textareaex> </div> <div class="form-group col-12"> <label>A grant is being applied for from another funder?</label> <select class="form-control" value.bind="form.otherFundingSources" form-field> <option></option> <option value="yes">Yes</option> <option value="no">No</option> </select> </div> <div class="form-group col-12" if.bind="form.otherFundingSources===\'yes\'"> <label>Other funding sources</label> <small class="form-text text-muted"> State the research funder(s), if funds for the same or a similar project are also applied for from another funder. </small> <textareaex type="text" value.bind="form.commentOtherFundingSources" form-field placeholder="Enter other funding sources" rows="5" maxlength="1000"></textareaex> </div> <div class="col-12"> <hr/> </div> <div class="col-12"> <label>Upload your project description as PDF file, max 15 pages</label> <attachment name="projectDescription" description="Project description" max-pages="15" accept="application/pdf" index="100" type="Document" reference-id.bind="form.applicationId"></attachment> </div> <div class="col-12"> <label>Upload your references as PDF file, max 5 pages</label> <attachment name="references" description="References" max-pages="5" accept="application/pdf" index="200" type="Document" reference-id.bind="form.applicationId"></attachment> </div> </div> </div> </div> <div class="col-12" show.bind="!print"> <div class="form-section"> <h4 class="form-section-header">PROJECT Manager</h4> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Name</label> <input type="text" disabled="disabled" value.bind="form.projectManager" class="form-control"/> </div> <div class="form-group col-12 col-md-6"> <label>Gender</label> <select value.bind="form.projectManagerGender" class="form-control" form-field> <option></option> <option value="woman">Woman</option> <option value="man">Man</option> <option value="other">Other</option> </select> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Title</label> <input type="text" value.bind="form.projectManagerTitle" form-field class="form-control" placeholder="Enter title"/> </div> <div class="form-group col-12 col-md-6"> <label>Personal identity number/Date of birth</label> <input type="text" value.bind="form.projectManagerSSN" form-field class="form-control" placeholder="Enter personal identity number/date of birth"/> <small class="form-text text-muted"> Swedish personal identity number (YYYYMMDD-NNNN). For non Swedish residents fill in date of birth plus \'-XXXX\' (YYYYMMDD-XXXX) </small> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Higher education institution/University</label> <input type="text" value.bind="form.projectManagerEducationUniversity" form-field class="form-control" placeholder="Enter higher education institution/University"/> </div> <div class="form-group col-12 col-md-6"> <label>ORCID</label>&nbsp; <input type="checkbox" checked.bind="form.orcidNotApplicable" form-field/>&nbsp;<label class="text-muted">Not applicable</label> <input if.bind="form.orcidNotApplicable !== true" type="text" value.bind="form.projectManagerOrcid" form-field class="form-control" placeholder="Enter ORCID if applicable"/> <input if.bind="form.orcidNotApplicable === true" disabled="disabled" type="text" value.bind="form.projectManagerOrcid" form-field class="form-control" placeholder="Enter ORCID if applicable"/> <small class="form-text text-muted"> If applicable, must be formatted as NNNN-NNNN-NNNN-NNNN. </small> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Department</label> <input type="text" value.bind="form.projectManagerEducationDepartment" form-field class="form-control" placeholder="Enter department"/> </div> <div class="form-group col-12 col-md-6"> <label>Phone (must begin with country code (i.e. +46))</label> <input type="text" value.bind="form.projectManagerPhone" form-field class="form-control" placeholder="Enter phone number"/> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Street address</label> <input type="text" value.bind="form.projectManagerAddress" form-field class="form-control" placeholder="Enter street address"/> </div> <div class="form-group col-12 col-md-6"> <label>Email</label> <input type="email" value.bind="form.projectManagerEmail" form-field class="form-control" placeholder="Enter email"/> </div> </div> <div class="row"> <div class="form-group col-12 col-md-3"> <label>Postal code</label> <input type="text" value.bind="form.projectManagerPostalCode" form-field class="form-control" placeholder="Enter postal code"/> </div> <div class="form-group col-12 col-md-3"> <label>City</label> <input type="text" value.bind="form.projectManagerCity" form-field class="form-control" placeholder="Enter city "/> </div> <div class="form-group col-12 col-md-6"> <label>Year of doctoral degree</label> <select value.bind="form.projectManagerYearOfDegree" class="form-control" form-field> <option></option> <option repeat.for="i of 72">${currentYear-i}</option> </select> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Country</label> <select value.bind="form.projectManagerSelectedCountry" class="form-control" form-field> <option></option> <option repeat.for="country of countries" model.bind="country.name"> ${country.name} </option> </select> </div> </div> <div class="row"> <div class="form-group col-12"> <attachment name="projectManagerCV" description="CV" max-pages="2" accept="application/pdf" index="300" type="Document" reference-id.bind="form.applicationId"></attachment> </div> </div> </div> </div> <div class="col-12" show.bind="!print"> <div class="form-section"> <button if.bind="!(form.hasBeenNotified || form.appSignatureSigned)" class="btn btn-sm btn-outline-secondary float-right hidden-print" click.delegate="addGroupItem(\'fellowApplicants\')"> <i class="fa fa-plus"></i> Add </button> <h4 class="form-section-header"> Fellow applicants (${form.fellowApplicants.length}) </h4> <div class="row" repeat.for="item of form.fellowApplicants"> <div class="col-12"> <span style="display:none">${item.applicationType=\'grandproject\'}</span> <button if.bind="!(form.hasBeenNotified || form.appSignatureSigned)" type="button" class="close float-right hidden-print mb-2" click.delegate="removeGroupItem(\'fellowApplicants\', $index, item.instanceId)"> <span aria-hidden="true">&times;</span> </button> <p class="group-title mt-2">Fellow applicant&nbsp;${$index + 1}</p> </div> <compose view-model="./fellow-applicant" model.bind="item" class="col-12"></compose> </div> </div> </div> <div class="col-12" show.bind="!print"> <div class="form-section"> <button class="btn btn-sm btn-outline-secondary float-right hidden-print" click.delegate="addGroupItem(\'doctoralStudents\')" if.bind="!(form.hasBeenNotified || form.appSignatureSigned)"> <i class="fa fa-plus"></i> Add </button> <h4 class="form-section-header"> Doctoral students (${form.doctoralStudents.length}) </h4> <div class="row" repeat.for="item of form.doctoralStudents"> <div class="col-12"> <button type="button" class="close float-right hidden-print mb-2" click.delegate="removeGroupItem(\'doctoralStudents\', $index, item.instanceId)" if.bind="!(form.hasBeenNotified || form.appSignatureSigned)"> <span aria-hidden="true">&times;</span> </button> <p class="group-title mt-2">Doctoral student&nbsp;${$index + 1}</p> </div> <compose view-model="./doctoral-student" model.bind="item" class="col-12"></compose> </div> </div> </div> <div class="col-12" show.bind="!print"> <div class="form-section"> <button class="btn btn-sm btn-outline-secondary float-right hidden-print" click.delegate="addGroupItem(\'postdocs\')" if.bind="!(form.hasBeenNotified || form.appSignatureSigned)"> <i class="fa fa-plus"></i> Add </button> <h4 class="form-section-header">PostDocs (${form.postdocs.length})</h4> <div class="row" repeat.for="item of form.postdocs"> <div class="col-12"> <button type="button" class="close float-right hidden-print mb-2" click.delegate="removeGroupItem(\'postdocs\', $index, item.instanceId)" if.bind="!(form.hasBeenNotified || form.appSignatureSigned)"> <span aria-hidden="true">&times;</span> </button> <p class="group-title mt-2">Postdoc&nbsp;${$index + 1}</p> </div> <compose view-model="./post-doc" model.bind="item" class="col-12"></compose> </div> </div> </div> <div class="col-12" show.bind="!print"> <div class="form-section"> <h4 class="form-section-header">Budget (SEK)</h4> <div class="row"> <div class="col-12"> <table class="spreadsheet"> <tr> <th> Salary cost for ${form.projectManager} (Project Manager) </th> <th style="width:110px">Year 1</th> <th style="width:110px">Year 2</th> <th style="width:110px">Year 3</th> <th style="width:110px">Year 4</th> <th style="width:110px" show.bind="form.years===\'5\'"> Year 5 </th> <th style="width:110px">Total</th> </tr> <tr> <td> <input type="text" value="Monthly salary" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.monthlySalaryY1 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.monthlySalaryY2 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.monthlySalaryY3 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.monthlySalaryY4 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" value.bind="form.monthlySalaryY5 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td class="disabled"></td> </tr> <tr> <td class="text-right"> <input type="text" value="Percent of Full-Time Equivalent" disabled="disabled" class="form-control"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="form.ftePercentageY1" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="form.ftePercentageY2" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="form.ftePercentageY3" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="form.ftePercentageY4" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td show.bind="form.years===\'5\'"> <input type="number" min="0" max="100" step="10" value.bind="form.ftePercentageY5" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td class="disabled"></td> </tr> <tr> <td class="text-right"> <input type="text" value="Yearly salary" disabled="disabled" class="form-control"/> </td> <td> <input type="test" disabled="disabled" value.bind="form.salaryY1 | currency" form-field class="form-control text-right" sum="yearlySalarySum"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.salaryY2 | currency" form-field class="form-control text-right" sum="yearlySalarySum"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.salaryY3 | currency" form-field class="form-control text-right" sum="yearlySalarySum"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.salaryY4 | currency" form-field class="form-control text-right" sum="yearlySalarySum"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" disabled="disabled" value.bind="form.salaryY5 | currency" form-field class="form-control text-right" sum="yearlySalarySum"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.yearlySalarySum | currency" disabled="disabled" form-field class="form-control text-right"/> </td> </tr> <template repeat.for="item of form.fellowApplicants"> <tr> <th colspan="6">Salary cost for ${item.name}</th> </tr> <tr> <td class="text-right"> <input type="text" value="Monthly salary" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="item.monthlySalaryY1 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="item.monthlySalaryY2 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="item.monthlySalaryY3 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="item.monthlySalaryY4 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" value.bind="item.monthlySalaryY5 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td class="disabled"></td> </tr> <tr> <td class="text-right"> <input type="text" value="Percent of Full-Time Equivalent" disabled="disabled" class="form-control"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="item.ftePercentageY1" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="item.ftePercentageY2" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="item.ftePercentageY3" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="item.ftePercentageY4" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td show.bind="form.years===\'5\'"> <input type="number" min="0" max="100" step="10" value.bind="item.ftePercentageY5" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td class="disabled"></td> </tr> <tr> <td class="text-right"> <input type="text" value="Yearly salary" disabled="disabled" class="form-control"/> </td> <td> <input type="text" disabled="disabled" value.bind="item.salaryY1 | currency" form-field sum="yearlySalarySum" class="form-control text-right"/> </td> <td> <input type="text" disabled="disabled" value.bind="item.salaryY2 | currency" form-field sum="yearlySalarySum" class="form-control text-right"/> </td> <td> <input type="text" disabled="disabled" value.bind="item.salaryY3 | currency" form-field sum="yearlySalarySum" class="form-control text-right"/> </td> <td> <input type="text" disabled="disabled" value.bind="item.salaryY4 | currency" form-field sum="yearlySalarySum" class="form-control text-right"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" disabled="disabled" value.bind="item.salaryY5 | currency" form-field sum="yearlySalarySum" class="form-control text-right"/> </td> <td> <input type="text" disabled="disabled" value.bind="item.yearlySalarySum | currency" form-field class="form-control text-right"/> </td> </tr> </template> <template repeat.for="item of form.doctoralStudents"> <tr> <th colspan="5"> Salary cost for doctoral student ${$index + 1} </th> </tr> <tr> <td class="text-right"> <input type="text" value="Monthly salary" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="item.monthlySalaryY1 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="item.monthlySalaryY2 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="item.monthlySalaryY3 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="item.monthlySalaryY4 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" value.bind="item.monthlySalaryY5 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td class="disabled"></td> </tr> <tr> <td class="text-right"> <input type="text" value="Percent of Full-Time Equivalent" disabled="disabled" class="form-control" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="item.ftePercentageY1" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="item.ftePercentageY2" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="item.ftePercentageY3" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="item.ftePercentageY4" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td show.bind="form.years===\'5\'"> <input type="number" min="0" max="100" step="10" value.bind="item.ftePercentageY5" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td class="disabled"></td> </tr> <tr> <td class="text-right"> <input type="text" value="Yearly salary" disabled="disabled" class="form-control"/> </td> <td> <input type="text" disabled="disabled" value.bind="item.salaryY1 | currency" form-field sum="totalSalary" class="form-control text-right"/> </td> <td> <input type="text" disabled="disabled" value.bind="item.salaryY2 | currency" form-field sum="totalSalary" class="form-control text-right"/> </td> <td> <input type="text" disabled="disabled" value.bind="item.salaryY3 | currency" form-field sum="totalSalary" class="form-control text-right"/> </td> <td> <input type="text" disabled="disabled" value.bind="item.salaryY4 | currency" form-field sum="totalSalary" class="form-control text-right"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" disabled="disabled" value.bind="item.salaryY5 | currency" form-field sum="totalSalary" class="form-control text-right"/> </td> <td> <input type="text" disabled="disabled" value.bind="item.totalSalary | currency" form-field class="form-control text-right"/> </td> </tr> </template> <template repeat.for="item of form.postdocs"> <tr> <th colspan="5">Salary cost for postdoc ${$index + 1}</th> </tr> <tr> <td class="text-right"> <input type="text" value="Monthly salary" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="item.monthlySalaryY1 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="item.monthlySalaryY2 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="item.monthlySalaryY3 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="item.monthlySalaryY4 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" value.bind="item.monthlySalaryY5 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td class="disabled"></td> </tr> <tr> <td class="text-right"> <input type="text" value="Percent of Full-Time Equivalent" disabled="disabled" class="form-control"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="item.ftePercentageY1" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="item.ftePercentageY2" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="item.ftePercentageY3" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="item.ftePercentageY4" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td show.bind="form.years===\'5\'"> <input type="number" min="0" max="100" step="10" value.bind="item.ftePercentageY5" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td class="disabled"></td> </tr> <tr> <td class="text-right"> <input type="text" value="Yearly salary" disabled="disabled" class="form-control"/> </td> <td> <input type="text" disabled="disabled" value.bind="item.salaryY1 | currency" form-field sum="totalSalary" class="form-control text-right"/> </td> <td> <input type="text" disabled="disabled" value.bind="item.salaryY2 | currency" form-field sum="totalSalary" class="form-control text-right"/> </td> <td> <input type="text" disabled="disabled" value.bind="item.salaryY3 | currency" form-field sum="totalSalary" class="form-control text-right"/> </td> <td> <input type="text" disabled="disabled" value.bind="item.salaryY4 | currency" form-field sum="totalSalary" class="form-control text-right"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" disabled="disabled" value.bind="item.salaryY5 | currency" form-field sum="totalSalary" class="form-control text-right"/> </td> <td> <input type="text" disabled="disabled" value.bind="item.totalSalary | currency" form-field class="form-control text-right"/> </td> </tr> </template> </table> <table class="spreadsheet"> <tr> <th>Salary cost totals</th> <th style="width:110px">Year 1</th> <th style="width:110px">Year 2</th> <th style="width:110px">Year 3</th> <th style="width:110px">Year 4</th> <th style="width:110px" show.bind="form.years===\'5\'"> Year 5 </th> <th style="width:110px">Total</th> </tr> <tr> <td class="text-right"> <input type="text" value="Yearly salary total" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.salarySumY1 | currency" sum="totalYearlySalary" form-field class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" value.bind="form.salarySumY2 | currency" sum="totalYearlySalary" form-field class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" value.bind="form.salarySumY3 | currency" sum="totalYearlySalary" form-field class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" value.bind="form.salarySumY4 | currency" sum="totalYearlySalary" form-field class="form-control text-right" disabled="disabled"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" value.bind="form.salarySumY5 | currency" sum="totalYearlySalary" form-field class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalYearlySalary | currency" form-field class="form-control text-right"/> </td> </tr> <tr> <td class="text-right"> <input type="text" value="Yearly salary total employee benefits included (56%)" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.salarySumCostY1 | currency" sum="totalYearlySalaryInclBen" form-field class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" value.bind="form.salarySumCostY2 | currency" sum="totalYearlySalaryInclBen" form-field class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" value.bind="form.salarySumCostY3 | currency" sum="totalYearlySalaryInclBen" form-field class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" value.bind="form.salarySumCostY4 | currency" sum="totalYearlySalaryInclBen" form-field class="form-control text-right" disabled="disabled"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" value.bind="form.salarySumCostY5 | currency" sum="totalYearlySalaryInclBen" form-field class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalYearlySalaryInclBen | currency" sum="totalSalaryCost" form-field class="form-control text-right"/> </td> </tr> <tr> <td> <div class="d-flex flex-row"> <input type="text" value="Overhead costs (${form.overheadPercentage} %)" disabled="disabled" class="form-control"/> <input type="number" step="1" max="100" min="0" value.bind="form.overheadPercentage" form-field class="form-control text-right" style="width:120px" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </div> </td> <td> <input type="text" value.bind="form.overheadCostY1 | currency" form-field sum="totalOverheadCost" class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" value.bind="form.overheadCostY2 | currency" form-field sum="totalOverheadCost" class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" value.bind="form.overheadCostY3 | currency" form-field sum="totalOverheadCost" class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" value.bind="form.overheadCostY4 | currency" form-field sum="totalOverheadCost" class="form-control text-right" disabled="disabled"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" value.bind="form.overheadCostY5 | currency" form-field sum="totalOverheadCost" class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalOverheadCost | currency" sum="totalSalaryCost" form-field class="form-control text-right"/> </td> </tr> <tr> <td class="text-right"> <input type="text" value="Salary total costs" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.salaryTotalCostY1 | currency" form-field class="form-control text-right" disabled="disabled" sum="appliedSumY1"/> </td> <td> <input type="text" value.bind="form.salaryTotalCostY2 | currency" form-field class="form-control text-right" disabled="disabled" sum="appliedSumY2"/> </td> <td> <input type="text" value.bind="form.salaryTotalCostY3 | currency" form-field class="form-control text-right" disabled="disabled" sum="appliedSumY3"/> </td> <td> <input type="text" value.bind="form.salaryTotalCostY4 | currency" form-field class="form-control text-right" disabled="disabled" sum="appliedSumY4"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" value.bind="form.salaryTotalCostY5 | currency" form-field class="form-control text-right" disabled="disabled" sum="appliedSumY5"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalSalaryCost | currency" form-field class="form-control text-right"/> </td> </tr> </table> </div> </div> <div class="row"> <div class="col-12"> <table class="spreadsheet"> <tr> <th>Other direct costs</th> <th style="width:110px">Year 1</th> <th style="width:110px">Year 2</th> <th style="width:110px">Year 3</th> <th style="width:110px">Year 4</th> <th style="width:110px" show.bind="form.years===\'5\'"> Year 5 </th> <th style="width:110px">Total</th> </tr> <tr> <td> <input type="text" value="Costs of premises" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.premisesCostsY1 | currency" form-field sum="otherCostsTotalY1" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.premisesCostsY2 | currency" form-field sum="otherCostsTotalY2" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.premisesCostsY3 | currency" form-field sum="otherCostsTotalY3" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.premisesCostsY4 | currency" form-field sum="otherCostsTotalY4" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" value.bind="form.premisesCostsY5 | currency" form-field sum="otherCostsTotalY5" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalPremisesCosts | currency" sum="AllTotalOtherCosts" form-field class="form-control text-right"/> </td> </tr> <tr> <td> <input type="text" value="Investigation costs" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.investigationCostsY1 | currency" form-field sum="otherCostsTotalY1" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.investigationCostsY2 | currency" form-field sum="otherCostsTotalY2" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.investigationCostsY3 | currency" form-field sum="otherCostsTotalY3" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.investigationCostsY4 | currency" form-field sum="otherCostsTotalY4" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" value.bind="form.investigationCostsY5 | currency" form-field sum="otherCostsTotalY5" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalInvestigationCosts | currency" sum="AllTotalOtherCosts" form-field class="form-control text-right"/> </td> </tr> <tr> <td> <input type="text" value="Costs for conferences and travel" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.travelCostsY1 | currency" form-field sum="otherCostsTotalY1" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.travelCostsY2 | currency" form-field sum="otherCostsTotalY2" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.travelCostsY3| currency" form-field sum="otherCostsTotalY3" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.travelCostsY4 | currency" form-field sum="otherCostsTotalY4" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" value.bind="form.travelCostsY5 | currency" form-field sum="otherCostsTotalY5" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalTravelCosts | currency" sum="AllTotalOtherCosts" form-field class="form-control text-right"/> </td> </tr> <tr> <td> <input type="text" value="Other costs" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.otherCostsY1 | currency" form-field sum="otherCostsTotalY1" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.otherCostsY2 | currency" form-field sum="otherCostsTotalY2" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.otherCostsY3 | currency" form-field sum="otherCostsTotalY3" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.otherCostsY4 | currency" form-field sum="otherCostsTotalY4" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" value.bind="form.otherCostsY5 | currency" form-field sum="otherCostsTotalY5" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalOtherCostsTotal | currency" sum="AllTotalOtherCosts" form-field class="form-control text-right"/> </td> </tr> <tr> <th class="text-right">Other costs total</th> <td> <input type="text" disabled="disabled" value.bind="form.otherCostsTotalY1 | currency" form-field class="form-control text-right" sum="appliedSumY1"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.otherCostsTotalY2 | currency" form-field class="form-control text-right" sum="appliedSumY2"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.otherCostsTotalY3 | currency" form-field class="form-control text-right" sum="appliedSumY3"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.otherCostsTotalY4 | currency" form-field class="form-control text-right" sum="appliedSumY4"/> </td> <td show.bind="form.years===\'5\'"> <input type="text" disabled="disabled" value.bind="form.otherCostsTotalY5 | currency" form-field class="form-control text-right" sum="appliedSumY5"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.AllTotalOtherCosts | currency" form-field class="form-control text-right"/> </td> </tr> </table> <table class="spreadsheet"> <th class="text-right">Total applied sum per year</th> <td style="width:110px"> <input type="text" value.bind="form.appliedSumY1 | currency" disabled="disabled" form-field sum="appliedSum" class="form-control text-right"/> </td> <td style="width:110px"> <input type="text" value.bind="form.appliedSumY2 | currency" disabled="disabled" form-field sum="appliedSum" class="form-control text-right"/> </td> <td style="width:110px"> <input type="text" value.bind="form.appliedSumY3 | currency" disabled="disabled" form-field sum="appliedSum" class="form-control text-right"/> </td> <td style="width:110px"> <input type="text" value.bind="form.appliedSumY4 | currency" disabled="disabled" form-field sum="appliedSum" class="form-control text-right"/> </td> <td style="width:110px" show.bind="form.years===\'5\'"> <input type="text" value.bind="form.appliedSumY5 | currency" disabled="disabled" form-field sum="appliedSum" class="form-control text-right"/> </td> <td style="width:110px"> <input type="text" value.bind="form.appliedSum | currency" disabled="disabled" sum="totalAppliedSum" form-field class="form-control text-right"/> </td> </table> <table class="spreadsheet"> <tr> <th class="text-right">Dissemination of project results</th> <td style="width:420px"> <input type="text" value.bind="form.openAccessPublication | currency" disabled="disabled" sum="totalAppliedSum" class="form-control text-right"/> </td> </tr> </table> <table class="spreadsheet"> <tr> <th class="text-right">Total funds applied for (SEK)</th> <td style="width:420px"> <input type="text" value.bind="form.totalAppliedSum | currency" form-field disabled="disabled" class="form-control text-right"/> </td> </tr> </table> </div> <div class="form-group col-12"> <label>Budget commentary </label> <textareaex type="text" value.bind="form.budgetComment" form-field placeholder="Write budget commentary" rows="6" maxlength="4000"></textareaex> </div> </div> </div> </div> <div class="col-12" show.bind="!print" ref="signatureswrapper"> <div class="form-section"> <h4 class="form-section-header">Signature</h4> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Type of signature</label> <select value.bind="form.signatureType" class="form-control" form-field> <option></option> <option value="BankID">BankID</option> <option value="signatureForm"> Generate signature form (when BankID is not available) </option> </select> </div> </div> <div if.bind="form.signatureType == \'BankID\'"> <require from="./customElements/validation-messages.html"></require> <div class="row mx-0"> <div class="card col-12"> <div class="card-body hidden-print"> <div if.bind="form.coSignatureSigned && form.appSignatureSigned"> All signatures have been provided and their proof of signature is located at the bottom of this form. </div> <div if.bind="!(form.coSignatureSigned && form.appSignatureSigned)"> <h5 class="card-title">Project manager\'s signature:</h5> <span if.bind="!form.appSignatureSigned"> When you sign the application your proof of signature will show up below and some fields will be locked. Once signed you cannot remove your signature but you can still change most values in the form. </span> <div class="d-block" if.bind="validationMessagesApplicationSignature.length > 0"> <button class="btn btn-primary d-inline" disabled="disabled"> Signera </button> <img src="https://apply-pub.s3.eu-north-1.amazonaws.com/apply/BankID_logo.png" height="75" width="75" class="d-inline"/> </div> <validation-messages messages.bind="validationMessagesApplicationSignature"> </validation-messages> <compose if.bind="validationMessagesApplicationSignature.length == 0" view-model="../../../resources/elements/signature-box" model.bind="{\n                      referenceId: form.applicationId, \n                      referenceType: \'application\',\n                    }"></compose> </div> </div> </div> <div class="hidden-print card col-12" if.bind="!form.coSignatureSigned"> <require from="../cosign-box"></require> <cosign-box form.bind="form" disabled.bind="validationMessagesCoSignature.length > 0"></cosign-box> <validation-messages messages.bind="validationMessagesCoSignature"> </validation-messages> </div> </div> </div> <div if.bind="form.signatureType == \'signatureForm\'"> <div class="mt-2 alert alert-info" style="overflow:auto"> <button class="btn btn-secondary btn-sm hidden-print pull-right" click.trigger="printSignaturePage()"> <i class="fa fa-print"></i> Generate certificate for signature </button> <p class="form-text"> <b>Click the button to print the signature form. Sign the the form and then upload a picture or a scanned document </b> </p> </div> <attachment name="signatures" description="Signatures" accept="application/pdf,image/*" index="100000" reference-id.bind="form.applicationId" max-file-size="3000000" max-pages="1"> </attachment> </div> </div> </div> <div class="col-10 offset-1 p-4" show.bind="print"> <h4 class="mb-4">Signatures</h4> <p><b>Project title:</b> ${form.projectTitle}</p> <p><b>Project manager:</b> ${form.projectManager}</p> <p><b>Project period:</b> ${form.years}</p> <p> <b>Total funds applied for (SEK):</b> ${form.totalAppliedSum | currency} </p> <p><b>Grant administrator:</b> Södertörns högskola</p> <p><b>Department responsible for the project:</b> ${form.department}</p> <p></p> <p>&nbsp;</p> <p>&nbsp;</p> <p> A signature on the application is required not only from the applicant but also from the grant administrator\'s authorised representative (usually the head of department, <i>prefekt</i>). </p> <p> This signature confirms that the project as it is described in the application, including positions, fees and assignments for researchers not employed at the University at the time of the application, can be accommodated for the period and on the scale specified in the application. </p> <p>&nbsp;</p> <hr/> <p> Place and date <span style="margin-left:40px">${form.projectManager} (Project manager)</span> </p> <p>&nbsp;</p> <hr/> <p> Place and date <span style="margin-left:40px">(The grant administrator’s authorised representative)</span> </p> <p>&nbsp;</p> <hr/> <p>Clarification of signature</p> </div> <div class="col-12 keep-togheter" show.bind="!print"> <div class="form-section"> <h4 class="form-section-header">Privacy policy</h4> <div class="form-group form-check"> <input type="checkbox" checked.bind="form.confirmTerms" form-field/> <label class="form-check-label"> I confirm that I have read the Foundation’s <a target="_blank" href="https://ostersjostiftelsen.se/en/about-the-foundation/data-privacy-policy-of-the-foundation-for-baltic-and-east-european-studies"> Data Privacy Policy</a>. This policy describes how the Foundation processes and protects personal data. </label> </div> </div> </div> </div> <div class="form-section page-break-before" if.bind="form.signatureType == \'BankID\' && (coFormVm.coSignatureSigned)"> <compose view-model="../cosign/grandproject" model.bind="coFormVm"></compose> </div> </template> '},"forms/0026/applications/post-doc":function(e,t,r){"use strict";r.r(t),r.d(t,"PostdocViewMmodel",(function(){return s}));var a,o=r("aurelia-framework"),i=r("aurelia-event-aggregator"),n=r("16wM"),s=(o.d.getLogger("0026-post-doc"),Object(o.j)(i.a)(a=function(){function e(e){this.ea=e}var t=e.prototype;return t.activate=function(e){this.form=e,this.subscriptions=[],this.index=this.form.groupIndex},t.attached=function(){this.form.instanceId||(this.form.instanceId=Object(n.a)())},e}())||a)},"forms/0026/applications/post-doc.html":function(e,t){e.exports='<template> <div class="row"> <div class="col-12 col-md-6"> <div class="form-group"> <input type="hidden" value.bind="form.instanceId" form-field/> </div> </div> </div> </template> '},"forms/0026/applications/postdoc1":function(e,t,r){"use strict";r.r(t),r.d(t,"ViewModel",(function(){return p}));var a,o=r("aurelia-framework"),i=r("aurelia-event-aggregator"),n=r("aurelia-validation"),s=r("Zf3E"),l=r("zPLg"),d=r("4BB+"),c=r("whoc");function m(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}o.d.getLogger("0026-postdoc1");var p=Object(o.j)(i.a,d.a)(a=function(){function e(e,t){this.ea=e,this.countryService=t,this.isloading=!0,this.countries=[],this.projectManagerSelectedCountry="",this.currentYear=(new Date).getFullYear()}var t=e.prototype;return t.activate=function(e){var t=this;this.form=e,this.form.years=2,this.countryService.getCountries().then((function(e){t.countries=e})),Object(c.a)(),n.ValidationRules.ensure((function(e){return e.projectManager})).required().withMessage("Name of project manager").ensure((function(e){return e.projectTitle})).required().withMessage("Project title").ensure((function(e){return e.projectSummary})).required().withMessage("Project summary").ensure((function(e){return e.disciplines})).required().withMessage("Research disciplines").ensure((function(e){return e.keywords})).required().withMessage("Keywords").ensure((function(e){return e.department})).required().withMessage("Department responsible for the project").ensure((function(e){return e.otherFundingSources})).required().withMessage("A grant is being applied for from another funder?").ensure((function(e){return e.commentOtherFundingSources})).required().when((function(e){return"yes"===e.otherFundingSources})).withMessage("Other funding sources").ensure((function(e){return e.attachmentProjectDescription})).satisfies((function(e){return!0===e})).withMessage("Attachment: Project description").ensure((function(e){return e.attachmentReferences})).satisfies((function(e){return!0===e})).withMessage("Attachment: References").ensure((function(e){return e.attachmentProjectManagerCV})).satisfies((function(e){return!0===e})).withMessage("Attachment: Project Manager - CV").ensure((function(e){return e.projectManagerTitle})).required().withMessage("Project manager - Title").ensure((function(e){return e.projectManagerEducationUniversity})).required().withMessage("Project manager - Higher education institution/University").ensure((function(e){return e.projectManagerEducationDepartment})).required().withMessage("Project manager - Department").ensure((function(e){return e.projectManagerAddress})).required().withMessage("Project manager - Street address").ensure((function(e){return e.projectManagerPostalCode})).required().withMessage("Project manager - Postal code").ensure((function(e){return e.projectManagerCity})).required().withMessage("Project manager - City").ensure((function(e){return e.projectManagerSelectedCountry})).required().withMessage("Project manager - Country").ensure((function(e){return e.projectManagerGender})).required().withMessage("Project manager - Gender").ensure((function(e){return e.projectManagerSSN})).required().ensure((function(e){return e.projectManagerSSN})).matches(/^(19|20)?[0-9]{6}[- ]?[0-9X]{4}$/).withMessage("Project manager - Personal identity number/date of birth").required().withMessage("Project manager - Personal identity number/date of birth").ensure((function(e){return e.projectManagerPhone})).required().withMessage("Project manager - Phone").satisfiesRule("int_phoneno").withMessage("Project manager - Phone: missing country code").ensure((function(e){return e.projectManagerOrcid})).required().matches(/^(\d{4}-){3}\d{3}(\d|X|x)$/).when((function(e){return!0!==e.orcidNotApplicable})).withMessage("Project manager - ORCID is formatted wrong").ensure((function(e){return e.projectManagerEmail})).required().withMessage("Project manager - Email").email("Project manager - Invalid email format").ensure((function(e){return e.projectManagerYearOfDegree})).required().withMessage("Project manager - Year of doctoral degree").ensure((function(e){return e.projectManagerPlannedYearOfDegree})).required().when((function(e){return"noDoctoralDegree"===e.projectManagerYearOfDegree})).withMessage("Project manager - Specify planned date for doctoral degree").ensure((function(e){return e.projectManagerPlannedYearOfDegree})).satisfies((function(e){return new Date(e).getFullYear()==t.currentYear})).when((function(e){return"noDoctoralDegree"===e.projectManagerYearOfDegree})).withMessage("Project manager - Planned date for doctoral degree date must be before "+this.currentYear+"-12-31)").ensure((function(e){return e.totalAppliedSum})).satisfies((function(e){return e>6e4})).when((function(e){return 2==e.years})).withMessage("Total applied sum should exceed 60 000 SEK").ensure((function(e){return e.budgetComment})).required().withMessage("Budget Comment").ensure((function(e){return e.ethicalConsiderations})).required().withMessage("Ethical considerations").ensure((function(e){return e.confirmTerms})).satisfies((function(e){return!0===e})).withMessage("Privacy policy").ensure((function(e){return e.approvalGrantAdmin})).satisfies((function(e){return!0===e})).withMessage("Approval by grant administrator").ensure((function(e){return e.overheadPercentage})).required().withMessage("Overhead cost").on(this.form)},t.attached=function(){var e=this;this.isloading=!1,this.subscriptions=[],this.subscriptions.push(this.ea.subscribe(l.a,(function(t){e.onFormFieldChanged(t)}))),this.subscriptions.push(this.ea.subscribe(s.a,(function(t){"projectDescription"===t.name&&(e.form.attachmentProjectDescription=t.isUploaded),"references"===t.name&&(e.form.attachmentReferences=t.isUploaded),"projectManagerCV"===t.name&&(e.form.attachmentProjectManagerCV=t.isUploaded)}))),this.form.openAccessPublication=6e4,this.form.years=2},t.onFormFieldChanged=function(e){var t=e.name;if("orcidNotApplicable"===t&&(!0===this.form.orcidNotApplicable?this.form.projectManagerOrcid="Not applicable":this.form.projectManagerOrcid=""),(t.indexOf("monthlySalaryY")>-1||t.indexOf("ftePercentageY")>-1)&&this.calcSalaryCosts(t),t.indexOf("salaryY")>-1){var r=t[t.length-1];this.calcTotalSalaryCosts(r)}if("overheadPercentage"===t)for(var a=1;a<=2;a++)this.calcTotalSalaryCosts(a);t.indexOf("premisesCostsY")>-1&&this.calcTotalPremisesCosts(),t.indexOf("investigationCostsY")>-1&&this.calcTotalInvestigationCosts(),t.indexOf("travelCostsY")>-1&&this.calcTotalTravelCosts(),t.indexOf("otherCostsY")>-1&&this.calcTotalOtherCostsTotal()},t.calcSalaryCosts=function(e){var t=e[e.length-1],r=parseInt(this.form["monthlySalaryY"+t],10),a=parseFloat(this.form["ftePercentageY"+t],10),o=Math.round(r*(a/100)*12);this.form["salaryY"+t]=o},t.calcTotalSalaryCosts=function(e){var t=parseInt(this.form["salaryY"+e],10);isNaN(t)&&(t=0);var r=parseFloat(this.form.overheadPercentage,10)/100;r||(r=0);var a=parseInt(t,10),o=Math.round(1.56*t,10),i=(o=parseInt(o,10))*r;this.form["salarySumY"+e]=Math.round(a),this.form["salarySumCostY"+e]=Math.round(o),this.form["overheadCostY"+e]=Math.round(i),this.form["salaryTotalCostY"+e]=Math.round(o+i)},t.calcTotalPremisesCosts=function(){for(var e=0,t=1;t<3;t++)e+=parseInt(this.form["premisesCostsY"+t],10)||0;this.form.totalPremisesCosts=parseInt(e,10)},t.calcTotalInvestigationCosts=function(){for(var e=0,t=1;t<3;t++)e+=parseInt(this.form["investigationCostsY"+t],10)||0;this.form.totalInvestigationCosts=parseInt(e,10)},t.calcTotalTravelCosts=function(){for(var e=0,t=1;t<3;t++)e+=parseInt(this.form["travelCostsY"+t],10)||0;this.form.totalTravelCosts=parseInt(e,10)},t.calcTotalOtherCostsTotal=function(){for(var e=0,t=1;t<3;t++)e+=parseInt(this.form["otherCostsY"+t],10)||0;this.form.totalOtherCostsTotal=parseInt(e,10)},t.detached=function(){for(var e,t=m(this.subscriptions);!(e=t()).done;){e.value.dispose()}},e}())||a},"forms/0026/applications/postdoc1.html":function(e,t){e.exports='<template> <style>input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}</style> <div class="row"> <div class="col-12 col-md-4 mt-2"> <img class="responsive-img w-100" src="https://apply-pub.s3.eu-north-1.amazonaws.com/ostersjostiftelsen/logo.png" alt="Östersjöstiftelsen"/> </div> <div class="col-12 col-md-8 mt-2"> <p class="text-right"><strong>APPLICATION - POSTDOC, STAGE 1</strong></p> </div> <div class="col-12"> <div class="form-section"> <h4 class="form-section-header">PROJECT</h4> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Name of project manager</label> <input type="text" value.bind="form.projectManager" form-field applicant-name placeholder="Enter name of the project manager" class="form-control"/> </div> <div class="form-group col-12 col-md-3"> <label>Grant type</label> <select value.bind="form.projectType" class="form-control" form-field> <option selected="selected" value="postdoc">Postdoc</option> </select> </div> <div class="form-group col-12 col-md-3"> <label>Project period</label> <select value.bind="form.years" class="form-control" form-field> <option value="2">2 years</option> </select> </div> <div class="form-group col-12"> <label>Project title</label> <textareaex value.bind="form.projectTitle" application-description form-field placeholder="Enter project title" maxlength="400" rows="2"> </textareaex> </div> <div class="form-group col-12"> <label>Project summary</label> <textareaex type="text" value.bind="form.projectSummary" form-field placeholder="Write project summary" rows="10" maxlength="1500"></textareaex> </div> <div class="form-group col-12"> <label>Research disciplines, 1 to 3</label> <textareaex type="text" value.bind="form.disciplines" form-field placeholder="Enter at least 1 and max 3 research disciplines" maxlength="200" rows="2"> </textareaex> </div> <div class="form-group col-12"> <label>Keywords (max 5)</label> <textareaex type="text" value.bind="form.keywords" form-field placeholder="Enter keywords, max 5" maxlength="200" rows="2"> </textareaex> </div> </div> <div class="row"> <div class="form-group col-12"> <label>Department responsible for the project</label> <select value.bind="form.department" class="form-control" form-field> <option value="">-- select from list --</option> <option value="Police Education">Police Education</option> <option value="The School of Culture and Education">The School of Culture and Education</option> <option value="The School of Historical and Contemporary Studies"> The School of Historical and Contemporary Studies </option> <option value="The School of Natural Sciences, Technology and Environmental Studies"> The School of Natural Sciences, Technology and Environmental Studies </option> <option value="The School of Social Sciences">The School of Social Sciences</option> <option value="Teacher Education">Teacher Education</option> </select> </div> <div class="form-group col-12"> <label>Grant administrator</label> <select class="form-control"> <option selected="selected">Södertörn University</option> </select> </div> <div class="form-group col-12"> <label>Ethical considerations</label> <small class="form-text text-muted"> Comment on and justfy if the project entails no ethical problems, if it requires certain ethical considerations, <br/> whether it is to be assessed by the Swedish Ethical Review Authority or has already obtained ethical approval. </small> <textareaex type="text" value.bind="form.ethicalConsiderations" form-field placeholder="Enter any ethical considerations" rows="10" maxlength="3000"></textareaex> </div> <div class="form-group col-12"> <label>A grant is being applied for from another funder?</label> <select class="form-control" value.bind="form.otherFundingSources" form-field> <option></option> <option value="yes">Yes</option> <option value="no">No</option> </select> </div> <div class="form-group col-12" if.bind="form.otherFundingSources===\'yes\'"> <label>Other funding sources</label> <small class="form-text text-muted"> State the research funder(s), if funds for the same or a similar project are also applied for from another funder. </small> <textareaex type="text" value.bind="form.commentOtherFundingSources" form-field placeholder="Enter other funding sources" rows="5" maxlength="1000"></textareaex> </div> <div class="col-12"> <hr/> </div> <div class="col-12"> <label>Upload your project description as PDF file, max 4 pages</label> <attachment name="projectDescription" description="Project description" max-pages="4" accept="application/pdf" index="100" type="Document" reference-id.bind="form.applicationId"></attachment> </div> <div class="col-12"> <label>Upload your references as PDF file, max 5 pages</label> <attachment name="references" description="References" max-pages="5" accept="application/pdf" index="200" type="Document" reference-id.bind="form.applicationId"></attachment> </div> </div> </div> </div> <div class="col-12"> <div class="form-section"> <h4 class="form-section-header">PROJECT Manager</h4> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Name</label> <input type="text" disabled="disabled" value.bind="form.projectManager" class="form-control"/> </div> <div class="form-group col-12 col-md-6"> <label>Gender</label> <select value.bind="form.projectManagerGender" class="form-control" form-field> <option></option> <option value="woman">Woman</option> <option value="man">Man</option> <option value="other">Other</option> </select> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Title</label> <input type="text" value.bind="form.projectManagerTitle" form-field class="form-control" placeholder="Enter title"/> </div> <div class="form-group col-12 col-md-6"> <label>Personal identity number/Date of birth</label> <input type="text" value.bind="form.projectManagerSSN" form-field class="form-control" placeholder="Enter personal identity number/date of birth"/> <small class="form-text text-muted"> Swedish personal identity number (YYYYMMDD-NNNN). <br/> For non Swedish residents fill in date of birth plus \'-XXXX\' (YYYYMMDD-XXXX). </small> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Higher education institution/University</label> <input type="text" value.bind="form.projectManagerEducationUniversity" form-field class="form-control" placeholder="Enter higher education institution/University"/> </div> <div class="form-group col-12 col-md-6"> <label>ORCID</label>&nbsp; <input type="checkbox" checked.bind="form.orcidNotApplicable" form-field/>&nbsp;<label class="text-muted">Not applicable</label> <input if.bind="form.orcidNotApplicable !== true" type="text" value.bind="form.projectManagerOrcid" form-field class="form-control" placeholder="Enter ORCID if applicable"/> <input if.bind="form.orcidNotApplicable === true" disabled="disabled" type="text" value.bind="form.projectManagerOrcid" form-field class="form-control" placeholder="Enter ORCID if applicable"/> <small class="form-text text-muted"> If applicable, must be formatted as NNNN-NNNN-NNNN-NNNN. </small> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Department</label> <input type="text" value.bind="form.projectManagerEducationDepartment" form-field class="form-control" placeholder="Enter department"/> </div> <div class="form-group col-12 col-md-6"> <label>Phone (must begin with country code (i.e. +46)).</label> <input type="text" value.bind="form.projectManagerPhone" form-field class="form-control" placeholder="Enter phone number"/> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Street address</label> <input type="text" value.bind="form.projectManagerAddress" form-field class="form-control" placeholder="Enter street address"/> </div> <div class="form-group col-12 col-md-6"> <label>Email</label> <input type="email" value.bind="form.projectManagerEmail" form-field class="form-control" placeholder="Enter email"/> </div> </div> <div class="row"> <div class="form-group col-12 col-md-3"> <label>Postal code</label> <input type="text" value.bind="form.projectManagerPostalCode" form-field class="form-control" placeholder="Enter postal code"/> </div> <div class="form-group col-12 col-md-3"> <label>City</label> <input type="text" value.bind="form.projectManagerCity" form-field class="form-control" placeholder="Enter city "/> </div> <div class="form-group col-12 col-md-6"> <label>Year of doctoral degree</label> <select value.bind="form.projectManagerYearOfDegree" class="form-control" form-field> <option></option> <option value="noDoctoralDegree">No doctoral degree</option> <option repeat.for="i of 72">${currentYear-i}</option> </select> <small class="form-text text-muted"> If the applicant does not have a doctoral degree by the application date choose \'no doctoral degree\' and then specify planned date. </small> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Country</label> <select value.bind="form.projectManagerSelectedCountry" class="form-control" form-field> <option model.bind="null"></option> <option repeat.for="country of countries" model.bind="country.name">${country.name}</option> </select> </div> <div class="form-group col-12 col-md-6" if.bind="form.projectManagerYearOfDegree === \'noDoctoralDegree\'"> <label>Specify planned date for doctoral degree</label> <input type="text" maxlength="20" value.bind="form.projectManagerPlannedYearOfDegree" class="form-control" date-picker data-date-format="YYYY-MM-DD" form-field placeholder="Enter date"/> <small class="form-text text-muted"> The planned date must be before the start of the grant period (not later than ${currentYear}-12-31). </small> </div> </div> <div class="row"> <div class="col-12"> <attachment name="projectManagerCV" description="CV" max-pages="2" accept="application/pdf" index="300" type="Document" reference-id.bind="form.applicationId"></attachment> </div> </div> </div> </div> <div class="col-12"> <div class="form-section"> <h4 class="form-section-header">Budget (SEK)</h4> <div class="row"> <div class="col-12"> <table class="spreadsheet"> <tr> <th>Salary cost for ${form.projectManager} (Project Manager)</th> <th style="width:140px">Year 1</th> <th style="width:140px">Year 2</th> <th style="width:140px">Total</th> </tr> <tr> <td> <input type="text" value="Monthly salary" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.monthlySalaryY1 | currency" form-field class="form-control text-right"/> </td> <td> <input type="text" value.bind="form.monthlySalaryY2 | currency" form-field class="form-control text-right"/> </td> <td class="disabled"></td> </tr> <tr> <td class="text-right"> <input type="text" value="Percent of Full-Time Equivalent" disabled="disabled" class="form-control"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="form.ftePercentageY1" form-field class="form-control text-right"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="form.ftePercentageY2" form-field class="form-control text-right"/> </td> <td class="disabled">&nbsp;</td> </tr> <tr> <td class="text-right"> <input type="text" value="Yearly salary" disabled="disabled" class="form-control"/> </td> <td> <input type="test" disabled="disabled" value.bind="form.salaryY1 | currency" form-field class="form-control text-right" sum="yearlySalarySum"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.salaryY2 | currency" form-field class="form-control text-right" sum="yearlySalarySum"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.yearlySalarySum | currency" disabled="disabled" form-field class="form-control text-right"/> </td> </tr> </table> <table class="spreadsheet"> <tr> <th>Salary cost totals</th> <th style="width:140px">Year 1</th> <th style="width:140px">Year 2</th> <th style="width:140px">Total</th> </tr> <tr> <td class="text-right"> <input type="text" value="Yearly salary total" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.salarySumY1 | currency" sum="totalYearlySalary" form-field class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" value.bind="form.salarySumY2 | currency" sum="totalYearlySalary" form-field class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalYearlySalary | currency" form-field class="form-control text-right"/> </td> </tr> <tr> <td class="text-right"> <input type="text" value="Yearly salary total employee benefits included (56%)" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.salarySumCostY1 | currency" sum="totalYearlySalaryInclBen" form-field class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" value.bind="form.salarySumCostY2 | currency" sum="totalYearlySalaryInclBen" form-field class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalYearlySalaryInclBen | currency" sum="totalSalaryCost" form-field class="form-control text-right"/> </td> </tr> <tr> <td> <div class="d-flex flex-row"> <input type="text" value="Overhead costs (${form.overheadPercentage} %)" disabled="disabled" class="form-control"/> <input type="number" step="1" max="100" min="0" value.bind="form.overheadPercentage" form-field class="form-control text-right" style="width:120px"/> </div> </td> <td> <input type="text" value.bind="form.overheadCostY1 | currency" form-field sum="totalOverheadCost" class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" value.bind="form.overheadCostY2 | currency" form-field sum="totalOverheadCost" class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalOverheadCost | currency" sum="totalSalaryCost" form-field class="form-control text-right"/> </td> </tr> <tr> <td class="text-right"> <input type="text" value="Salary total costs" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.salaryTotalCostY1 | currency" form-field class="form-control text-right" disabled="disabled" sum="appliedSumY1"/> </td> <td> <input type="text" value.bind="form.salaryTotalCostY2 | currency" form-field class="form-control text-right" disabled="disabled" sum="appliedSumY2"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalSalaryCost | currency" form-field class="form-control text-right"/> </td> </tr> </table> </div> </div> <div class="row"> <div class="col-12"> <table class="spreadsheet"> <tr> <th>Other direct costs</th> <th style="width:140px">Year 1</th> <th style="width:140px">Year 2</th> <th style="width:140px">Total</th> </tr> <tr> <td> <input type="text" value="Costs of premises" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.premisesCostsY1 | currency" form-field sum="otherCostsTotalY1" class="form-control text-right"/> </td> <td> <input type="text" value.bind="form.premisesCostsY2 | currency" form-field sum="otherCostsTotalY2" class="form-control text-right"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalPremisesCosts | currency" sum="AllTotalOtherCosts" form-field class="form-control text-right"/> </td> </tr> <tr> <td> <input type="text" value="Investigation costs" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.investigationCostsY1 | currency" form-field sum="otherCostsTotalY1" class="form-control text-right"/> </td> <td> <input type="text" value.bind="form.investigationCostsY2 | currency" form-field sum="otherCostsTotalY2" class="form-control text-right"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalInvestigationCosts | currency" sum="AllTotalOtherCosts" form-field class="form-control text-right"/> </td> </tr> <tr> <td> <input type="text" value="Costs for conferences and travel" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.travelCostsY1 | currency" form-field sum="otherCostsTotalY1" class="form-control text-right"/> </td> <td> <input type="text" value.bind="form.travelCostsY2 | currency" form-field sum="otherCostsTotalY2" class="form-control text-right"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalTravelCosts | currency" sum="AllTotalOtherCosts" form-field class="form-control text-right"/> </td> </tr> <tr> <td> <input type="text" value="Other costs" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.otherCostsY1 | currency" form-field sum="otherCostsTotalY1" class="form-control text-right"/> </td> <td> <input type="text" value.bind="form.otherCostsY2 | currency" form-field sum="otherCostsTotalY2" class="form-control text-right"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalOtherCostsTotal | currency" sum="AllTotalOtherCosts" form-field class="form-control text-right"/> </td> </tr> <tr> <th class="text-right">Other costs total</th> <td> <input type="text" disabled="disabled" value.bind="form.otherCostsTotalY1 | currency" form-field class="form-control text-right" sum="appliedSumY1"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.otherCostsTotalY2 | currency" form-field class="form-control text-right" sum="appliedSumY2"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.AllTotalOtherCosts | currency" form-field class="form-control text-right"/> </td> </tr> </table> <table class="spreadsheet"> <tr> <th class="text-right">Total applied sum per year</th> <td style="width:140px"> <input type="text" value.bind="form.appliedSumY1 | currency" disabled="disabled" form-field sum="appliedSum" class="form-control text-right"/> </td> <td style="width:140px"> <input type="text" value.bind="form.appliedSumY2 | currency" disabled="disabled" form-field sum="appliedSum" class="form-control text-right"/> </td> <td style="width:140px"> <input type="text" value.bind="form.appliedSum | currency" disabled="disabled" sum="totalAppliedSum" form-field class="form-control text-right"/> </td> </tr> </table> <table class="spreadsheet"> <tr> <th class="text-right">Dissemination of project results</th> <td style="width:420px"> <input type="text" value.bind="form.openAccessPublication | currency" disabled="disabled" sum="totalAppliedSum" class="form-control text-right"/> </td> </tr> </table> <table class="spreadsheet"> <tr> <th class="text-right">Total funds applied for (SEK)</th> <td style="width:420px"> <input type="text" value.bind="form.totalAppliedSum | currency" form-field disabled="disabled" class="form-control text-right"/> </td> </tr> </table> </div> <div class="form-group col-12"> <label>Budget commentary </label> <textareaex type="text" value.bind="form.budgetComment" form-field placeholder="Write budget commentary" rows="6" maxlength="3000"></textareaex> </div> </div> </div> </div> <div class="col-12"> <div class="form-section"> <h4 class="form-section-header">Privacy policy</h4> <div class="form-group form-check"> <input type="checkbox" checked.bind="form.confirmTerms" form-field/> <label class="form-check-label"> I confirm that I have read the Foundation’s <a target="_blank" href="https://ostersjostiftelsen.se/en/about-the-foundation/data-privacy-policy-of-the-foundation-for-baltic-and-east-european-studies"> Data Privacy Policy</a>. This policy describes how the Foundation processes and protects personal data. </label> </div> </div> </div> <div class="col-12"> <div class="form-section"> <h4 class="form-section-header">APPROVAL BY GRANT ADMINISTRATOR</h4> <div class="form-group form-check"> <input type="checkbox" checked.bind="form.approvalGrantAdmin" form-field/> <label class="form-check-label"> I confirm that I have secured approval from the grant administrator i.e. Södertörn University (head of department in charge, <i>prefekt</i>) that funds are being applied for from the Foundation for Baltic and East European Studies. </label> </div> </div> </div> </div> </template> '},"forms/0026/applications/postdoc2":function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"ViewModel",(function(){return x}));var a,o=r("q6Lm"),i=r("zPLg"),n=r("aurelia-framework"),s=r("aurelia-event-aggregator"),l=r("aurelia-validation"),d=r("Zf3E"),c=r("sIG3"),m=r("bcc5"),u=r("ixID"),p=r("4BB+"),f=r("whoc"),h=r("JPg5"),b=r("eGVH"),g=r("tuJm");function y(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}n.d.getLogger("0026-postdoc2");var x=Object(n.j)(s.a,m.a,u.a,p.a)(a=function(){function t(e,t,r,a){this.ea=e,this.applicationService=t,this.applicationFormFieldService=r,this.countryService=a,this.isloading=!0,this.isValid=!1,this.currentYear=(new Date).getFullYear()}var r=t.prototype;return r.activate=function(t){var r=this;this.form=t,this.validationMessagesApplicationSignature=[],this.validationMessagesCoSignature=[],this.signValidationRules=[{key:"projectTitle",message:"Project title"},{key:"projectManager",message:"Name of project manager"},{key:"yearlySalarySum",message:"Yearly salary total"},{key:"totalOverheadCost",message:"Total overhead costs"},{key:"AllTotalOtherCosts",message:"Other costs total"},{key:"department",message:"Department responsible for the grant"},{key:"totalAppliedSum",message:"Total applied sum"}],this.coSignValidationRules=[].concat(this.signValidationRules,[{key:"prefektName",message:"Name of grant's administrator"},{key:"prefektEmail",message:"Email of grant's administrator"}]),this.coFormVm={referenceId:t.applicationId,coSignatureSigned:!0},this.countryService.getCountries().then((function(e){r.countries=e})),Object(f.a)(),l.ValidationRules.ensure((function(e){return e.appSignatureSigned})).satisfies((function(e){return!0===e})).withMessage("Sign with BankID").when((function(e){return"BankID"==e.signatureType})).ensure((function(e){return e.coSignatureSigned})).satisfies((function(e){return!0===e})).withMessage("Co signature missing").when((function(e){return"BankID"==e.signatureType})).ensure((function(e){return e.projectManager})).required().withMessage("Name of project manager").ensure((function(e){return e.projectTitle})).required().withMessage("Project title").ensure((function(e){return e.projectSummary})).required().withMessage("Project summary").ensure((function(e){return e.disciplines})).required().withMessage("Research disciplines").ensure((function(e){return e.keywords})).required().withMessage("Keywords").ensure((function(e){return e.department})).required().withMessage("Department responsible for the project").ensure((function(e){return e.otherFundingSources})).required().withMessage("A grant is being applied for from another funder?").ensure((function(e){return e.commentOtherFundingSources})).required().when((function(e){return"yes"===e.otherFundingSources})).withMessage("Other funding sources").ensure((function(e){return e.attachementProjectDescription})).satisfies((function(e){return!0===e})).withMessage("Attachment: Project description").ensure((function(e){return e.attachementReferences})).satisfies((function(e){return!0===e})).withMessage("Attachment: References").ensure((function(e){return e.attachementProjectManagerCV})).satisfies((function(e){return!0===e})).withMessage("Attachment: Project Manager - CV").ensure((function(e){return e.projectManagerTitle})).required().withMessage("Project manager - Title").ensure((function(e){return e.projectManagerEducationUniversity})).required().withMessage("Project manager - Higher education institution/University").ensure((function(e){return e.projectManagerEducationDepartment})).required().withMessage("Project manager - Department").ensure((function(e){return e.projectManagerAddress})).required().withMessage("Project manager - Street address").ensure((function(e){return e.projectManagerPostalCode})).required().withMessage("Project manager - Postal code").ensure((function(e){return e.projectManagerCity})).required().withMessage("Project manager - City").ensure((function(e){return e.projectManagerSelectedCountry})).required().withMessage("Project manager - Country").ensure((function(e){return e.projectManagerGender})).required().withMessage("Project manager - Gender").ensure((function(e){return e.projectManagerSSN})).matches(/^(19|20)?[0-9]{6}[- ]?[0-9X|x]{4}$/).withMessage("Project manager - Personal identity number/date of birth").required().ensure((function(e){return e.projectManagerPhone})).required().withMessage("Project manager - Phone").satisfiesRule("int_phoneno").withMessage("Project manager - Phone: missing country code").ensure((function(e){return e.projectManagerEmail})).required().withMessage("Project manager - Email").email("Project manager - Invalid email format").ensure((function(e){return e.projectManagerYearOfDegree})).required().withMessage("Project manager - Year of doctoral degree").ensure((function(e){return e.projectManagerPlannedYearOfDegree})).required().when((function(e){return"noDoctoralDegree"===e.projectManagerYearOfDegree})).withMessage("Project manager - Specify planned date for doctoral degree").ensure((function(e){return e.projectManagerPlannedYearOfDegree})).satisfies((function(e){return new Date(e).getFullYear()==r.currentYear})).when((function(e){return"noDoctoralDegree"===e.projectManagerYearOfDegree})).withMessage("Project manager - Planned date for doctoral degree date must be before "+this.currentYear+"-12-31)").ensure((function(e){return e.attachementSignatures})).satisfies((function(e){return!0===e})).withMessage("Attachment: Signatures").when((function(e){return"signatureForm"==e.signatureType})).ensure((function(e){return e.totalAppliedSum})).satisfies((function(e){return e>6e4})).when((function(e){return 2==e.years})).withMessage("Total applied sum should exceed 60 000 SEK").ensure((function(e){return e.budgetComment})).required().withMessage("Budget Comment").ensure((function(e){return e.ethicalConsiderations})).required().withMessage("Ethical considerations").ensure((function(e){return e.confirmTerms})).satisfies((function(e){return!0===e})).withMessage("Privacy policy").ensure((function(e){return e.overheadPercentage})).required().withMessage("Overhead cost").on(this.form);var a=function(t,a,o){return new e((function(e,i){r.applicationService.list().then((function(r){r.some((function(e){return e.type==t&&e.daysOld<a&&e.status==o}))?e(r.filter((function(e){return e.type==t&&e.daysOld<a&&e.status==o}))[0]):i(function(e){return new Error("Could not find reference application type "+e)}(t))}))}))};return new e((function(n,s){var l=new o.a;if(r.form.years=2,t.postdoc1ref)return r.isValid=!0,void n(!0);a("POSTDOC1",200,"Beviljad").then((function(a){var o,s;setTimeout((o=a.applicationNumber,void(r.form.postdoc1ref=o)),500),(s=a.applicationId,new e((function(e,t){r.applicationFormFieldService.getFormFields(s).then((function(t){return e(t)}))}))).then((function(e){if(e.fellowApplicants)for(var o in e.fellowApplicants)r.ea.publish(new h.a("fellowApplicants"));r.form=function(e,t){if(t.projectManager=e.projectManager,t.projectManagerAddress=e.projectManagerAddress,t.projectManagerCity=e.projectManagerCity,t.projectManagerSelectedCountry=e.projectManagerSelectedCountry,t.projectManagerEducationDepartment=e.projectManagerEducationDepartment,t.projectManagerEducationUniversity=e.projectManagerEducationUniversity,t.projectManagerEmail=e.projectManagerEmail,t.projectManagerGender=e.projectManagerGender,t.projectManagerPhone=e.projectManagerPhone,t.projectManagerPostalCode=e.projectManagerPostalCode,t.projectManagerSSN=e.projectManagerSSN,t.projectManagerOrcid=e.projectManagerOrcid,t.orcidNotApplicable=e.orcidNotApplicable,t.projectManagerTitle=e.projectManagerTitle,t.projectManagerYearOfDegree=e.projectManagerYearOfDegree,t.doctoralDegreePlannedDate=e.doctoralDegreePlannedDate,t.projectSummary=e.projectSummary,t.projectTitle=e.projectTitle,t.projectType=e.projectType,t.appliedSum=e.appliedSum,t.appliedSumY1=e.appliedSumY1,t.appliedSumY2=e.appliedSumY2,t.budgetComment=e.budgetComment,t.department=e.department,t.disciplines=e.disciplines,t.ethicalConsiderations=e.ethicalConsiderations,t.fellowApplicants=e.fellowApplicants,t.ftePercentageY1=e.ftePercentageY1,t.ftePercentageY2=e.ftePercentageY2,t.investigationCostsY1=e.investigationCostsY1,t.investigationCostsY2=e.investigationCostsY2,t.keywords=e.keywords,t.monthlySalaryY1=e.monthlySalaryY1,t.monthlySalaryY2=e.monthlySalaryY2,t.openAccessPublication=e.openAccessPublication,t.otherCostsTotalY1=e.otherCostsTotalY1,t.otherCostsTotalY2=e.otherCostsTotalY2,t.otherCostsY1=e.otherCostsY1,t.otherCostsY2=e.otherCostsY2,t.otherFundingSources=e.otherFundingSources,t.commentOtherFundingSources=e.commentOtherFundingSources,t.overheadCostY1=e.overheadCostY1,t.overheadCostY2=e.overheadCostY2,t.totalOverheadCost=e.totalOverheadCost,t.overheadPercentage=e.overheadPercentage,t.premisesCostsY1=e.premisesCostsY1,t.premisesCostsY2=e.premisesCostsY2,t.totalPremisesCosts=e.totalPremisesCosts,t.salarySumCostY1=e.salarySumCostY1,t.salarySumCostY2=e.salarySumCostY2,t.totalYearlySalaryInclBen=e.totalYearlySalaryInclBen,t.salarySumY1=e.salarySumY1,t.salarySumY2=e.salarySumY2,t.totalYearlySalary=e.totalYearlySalary,t.salaryTotalCostY1=e.salaryTotalCostY1,t.salaryTotalCostY2=e.salaryTotalCostY2,t.totalSalaryCost=e.totalSalaryCost,t.salaryY1=e.salaryY1,t.salaryY2=e.salaryY2,t.yearlySalarySum=e.yearlySalarySum,t.travelCostsY1=e.travelCostsY1,t.travelCostsY2=e.travelCostsY2,t.totalTravelCosts=e.totalTravelCosts,t.totalAppliedSum=e.totalAppliedSum,t.years=e.years,t.confirmTerms=e.confirmTerms,t.country=e.country,t.totalInvestigationCosts=e.totalInvestigationCosts,t.totalOtherCostsTotal=e.totalOtherCostsTotal,t.AllTotalOtherCosts=e.AllTotalOtherCosts,t.fellowApplicants)for(var r,a=y(t.fellowApplicants);!(r=a()).done;){var o=r.value;o.applicationId=t.applicationId,o.instanceId=null}return t}(l.createForm(e,a.applicationId),t)})).then((function(e){return r.isValid=!0})).then((function(e){return n(!0)})).then((function(e){return function(){for(var e=0,t=Object.entries(r.form);e<t.length;e++){var a=t[e],o=a[0],n=a[1];if("applicationNumber"!==o)if("fellowApplicants"===o&&void 0!==n)for(var s,l=y(r.form.fellowApplicants);!(s=l()).done;)for(var d=s.value,c=0,m=Object.entries(d);c<m.length;c++){var u=m[c],p=u[0],f=u[1];if("fellowApplicants"!=p&&("groupIndex"!=p&&"groupName"!=p)){var h=new i.a(p,f,"undefined",d.groupName,d.groupIndex);r.ea.publish(h)}}else"undefined"!=o&&r.ea.publish(new i.a(o,n))}}()})).then((function(e){r.applicationService.setDescription(r.form.applicationId,r.form.projectTitle)})).then((function(e){r.applicationService.setApplicantName(r.form.applicationId,r.form.projectManager)}))})).catch((function(e){r.ea.publish(new c.a),n(!0)}))}))},r.attached=function(){var e=this;this.isloading=!1,this.subscriptions=[];var t=this.ea.subscribe(i.a,(function(t){e.onFormFieldChanged(t)})),r=this.ea.subscribe(d.a,(function(t){"projectDescription"===t.name&&(e.form.attachementProjectDescription=t.isUploaded),"references"===t.name&&(e.form.attachementReferences=t.isUploaded),"projectManagerCV"===t.name&&(e.form.attachementProjectManagerCV=t.isUploaded),"signatures"===t.name&&(e.form.attachementSignatures=t.isUploaded)}));this.subscriptions.push(t,r,this.ea.subscribe(b.a,(function(t){"cosign"==t.type&&(e.form.coSignatureSigned=!0),"application"==t.type&&(e.form.appSignatureSigned=!0)}))),this.form.openAccessPublication=6e4,this.print=!1,this.form.selectedUniversity="Södertörn University",this.form.years="2",this.validationMessagesApplicationSignature=Object(g.a)(this.signValidationRules,this.form),this.validationMessagesCoSignature=Object(g.a)(this.coSignValidationRules,this.form)},r.onFormFieldChanged=function(e){var t=e.name;if("orcidNotApplicable"===t&&(!0===this.form.orcidNotApplicable?this.form.projectManagerOrcid="Not applicable":this.form.projectManagerOrcid=""),(t.indexOf("monthlySalaryY")>-1||t.indexOf("ftePercentageY")>-1)&&this.calcSalaryCosts(t),t.indexOf("salaryY")>-1){var r=t[t.length-1];this.calcTotalSalaryCosts(r)}if("overheadPercentage"===t)for(var a=1;a<=2;a++)this.calcTotalSalaryCosts(a);t.indexOf("premisesCostsY")>-1&&this.calcTotalPremisesCosts(),t.indexOf("investigationCostsY")>-1&&this.calcTotalInvestigationCosts(),t.indexOf("travelCostsY")>-1&&this.calcTotalTravelCosts(),t.indexOf("otherCostsY")>-1&&this.calcTotalOtherCostsTotal(),this.validationMessagesApplicationSignature=Object(g.a)(this.signValidationRules,this.form),this.validationMessagesCoSignature=Object(g.a)(this.coSignValidationRules,this.form)},r.onGroupItemRemoved=function(e){for(var t=1;t<=2;t++)this.calcTotalSalaryCosts(t)},r.calcSalaryCosts=function(e){var t=e[e.length-1],r=parseInt(this.form["monthlySalaryY"+t],10),a=parseFloat(this.form["ftePercentageY"+t],10),o=Math.round(r*(a/100)*12);this.form["salaryY"+t]=o},r.calcTotalSalaryCosts=function(e){var t=parseInt(this.form["salaryY"+e],10);isNaN(t)&&(t=0);var r=parseFloat(this.form.overheadPercentage,10)/100;r||(r=0);var a=parseInt(t,10),o=Math.round(1.56*t,10),i=(o=parseInt(o,10))*r;this.form["salarySumY"+e]=Math.round(a),this.form["salarySumCostY"+e]=Math.round(o),this.form["overheadCostY"+e]=Math.round(i),this.form["salaryTotalCostY"+e]=Math.round(o+i)},r.printSignaturePage=function(){var e=this;this.print=!0,setTimeout((function(){window.print(),e.print=!1,setTimeout((function(){return e.signatureswrapper.scrollIntoView()}),100)}),100)},r.calcTotalPremisesCosts=function(){for(var e=0,t=1;t<3;t++)e+=parseInt(this.form["premisesCostsY"+t],10)||0;this.form.totalPremisesCosts=parseInt(e,10)},r.calcTotalInvestigationCosts=function(){for(var e=0,t=1;t<3;t++)e+=parseInt(this.form["investigationCostsY"+t],10)||0;this.form.totalInvestigationCosts=parseInt(e,10)},r.calcTotalTravelCosts=function(){for(var e=0,t=1;t<3;t++)e+=parseInt(this.form["travelCostsY"+t],10)||0;this.form.totalTravelCosts=parseInt(e,10)},r.calcTotalOtherCostsTotal=function(){for(var e=0,t=1;t<3;t++)e+=parseInt(this.form["otherCostsY"+t],10)||0;this.form.totalOtherCostsTotal=parseInt(e,10)},r.detached=function(){for(var e,t=y(this.subscriptions);!(e=t()).done;){e.value.dispose()}},t}())||a}.call(this,r("9oTK"))},"forms/0026/applications/postdoc2.html":function(e,t,r){e.exports='<template> <style>input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}</style> <div show.bind="!isValid" class="alert alert-danger mt-4 p-3 col-12"> You are not allowed to apply for step 2. </div> <div show.bind="isValid" class="row"> <div class="col-12 col-md-4 mt-2"> <img class="responsive-img w-100" src="https://apply-pub.s3.eu-north-1.amazonaws.com/ostersjostiftelsen/logo.png" alt="Östersjöstiftelsen"/> </div> <div class="col-12 col-md-8 mt-2"> <p class="text-right"><strong>APPLICATION - POSTDOC, STAGE 2</strong></p> </div> <div class="row"> <require from="./customElements/instructions-sign.html"></require> <instructions-sign type="postdoc2"></instructions-sign> </div> <div class="col-12" show.bind="!print"> <div class="form-section"> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Reference application</label> <input type="text" value.bind="form.postdoc1ref" form-field readonly="readonly" class="form-control"/> </div> </div> <h4 class="form-section-header">PROJECT</h4> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Name of project manager</label> <input type="text" value.bind="form.projectManager" form-field applicant-name placeholder="Enter name of the project manager" class="form-control" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </div> <div class="form-group col-12 col-md-3"> <label>Grant type</label> <select value.bind="form.grantType" class="form-control" form-field> <option selected="selected" value="postdoc">Postdoc</option> </select> </div> <div class="form-group col-12 col-md-3"> <label>Project period</label> <select value.bind="form.years" class="form-control" form-field> <option value="2">2 years</option> </select> </div> <div class="form-group col-12"> <label>Project title</label> <textareaex value.bind="form.projectTitle" application-description form-field placeholder="Enter project title" maxlength="400" rows="2" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"> </textareaex> </div> <div class="form-group col-12"> <label>Project summary</label> <textareaex type="text" value.bind="form.projectSummary" form-field placeholder="Write project summary" rows="10" maxlength="1500"></textareaex> </div> <div class="form-group col-12"> <label>Research disciplines, 1 to 3</label> <textareaex type="text" value.bind="form.disciplines" form-field placeholder="Enter at least 1 and max 3 research disciplines" maxlength="200" rows="2"> </textareaex> </div> <div class="form-group col-12"> <label>Keywords (max 5)</label> <textareaex type="text" value.bind="form.keywords" form-field placeholder="Enter keywords, max 5" maxlength="200" rows="2"> </textareaex> </div> </div> <div class="row"> <div class="form-group col-12"> <label>Department responsible for the project</label> <select value.bind="form.department" class="form-control" form-field disabled.bind="form.hasBeenNotified || form.appSignatureSigned"> <option value="Police Education">Police Education</option> <option value="The School of Culture and Education"> The School of Culture and Education </option> <option value="The School of Historical and Contemporary Studies"> The School of Historical and Contemporary Studies </option> <option value="The School of Natural Sciences, Technology and Environmental Studies"> The School of Natural Sciences, Technology and Environmental Studies </option> <option value="The School of Social Sciences"> The School of Social Sciences </option> <option value="Teacher Education">Teacher Education</option> </select> </div> <div class="form-group col-12"> <label>Grant administrator</label> <input type="text" value.bind="form.selectedUniversity" class="form-control" disabled="disabled"/> <input type="hidden" value.bind="form.selectedUniversity" form-field class="form-control"/> </div> <div class="form-group col-12"> <label>Ethical considerations</label> <small class="form-text text-muted"> Comment on and justfy if the project entails no ethical problems, if it requires certain ethical considerations, <br/> whether it is to be assessed by the Swedish Ethical Review Authority or has already obtained ethical approval. </small> <textareaex type="text" value.bind="form.ethicalConsiderations" form-field placeholder="Enter any ethical considerations" rows="10" maxlength="3000"></textareaex> </div> <div class="form-group col-12"> <label>A grant is being applied for from another funder?</label> <select class="form-control" value.bind="form.otherFundingSources" form-field> <option></option> <option value="yes">Yes</option> <option value="no">No</option> </select> </div> <div class="form-group col-12" show.bind="form.otherFundingSources===\'yes\'"> <label>Other funding sources</label> <small class="form-text text-muted"> State the research funder(s), if funds for the same or a similar project are also applied for from another funder. </small> <textareaex type="text" value.bind="form.commentOtherFundingSources" form-field placeholder="Enter other funding sources" rows="5" maxlength="1000"></textareaex> </div> <div class="col-12"> <hr/> </div> <div class="col-12"> <label>Upload your project description as PDF file, max 6 pages</label> <attachment name="projectDescription" description="Project description" max-pages="6" accept="application/pdf" index="100" type="Document" reference-id.bind="form.applicationId"> </attachment> </div> <div class="col-12"> <label>Upload your references as PDF file, max 5 pages</label> <attachment name="references" description="References" max-pages="5" accept="application/pdf" index="200" type="Document" reference-id.bind="form.applicationId"></attachment> </div> </div> </div> </div> <div class="col-12" show.bind="!print"> <div class="form-section"> <h4 class="form-section-header">PROJECT Manager</h4> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Name</label> <input type="text" disabled="disabled" value.bind="form.projectManager" class="form-control"/> </div> <div class="form-group col-12 col-md-6"> <label>Gender</label> <select value.bind="form.projectManagerGender" class="form-control" form-field> <option></option> <option value="woman">Woman</option> <option value="man">Man</option> <option value="other">Other</option> </select> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Title</label> <input type="text" value.bind="form.projectManagerTitle" form-field class="form-control" placeholder="Enter title"/> </div> <div class="form-group col-12 col-md-6"> <label>Personal identity number/Date of birth</label> <input type="text" value.bind="form.projectManagerSSN" form-field class="form-control" placeholder="Enter personal identity number/date of birth"/> <small class="form-text text-muted"> Swedish personal identity number (YYYYMMDD-NNNN). <br/> For non Swedish residents fill in date of birth plus \'-XXXX\' (YYYYMMDD-XXXX). </small> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Higher education institution/University</label> <input type="text" value.bind="form.projectManagerEducationUniversity" form-field class="form-control" placeholder="Enter higher education institution/University"/> </div> <div class="form-group col-12 col-md-6"> <label>ORCID</label>&nbsp; <input type="checkbox" checked.bind="form.orcidNotApplicable" form-field/>&nbsp;<label class="text-muted">Not applicable</label> <input if.bind="form.orcidNotApplicable !== true" type="text" value.bind="form.projectManagerOrcid" form-field class="form-control" placeholder="Enter ORCID if applicable"/> <input if.bind="form.orcidNotApplicable === true" disabled="disabled" type="text" value.bind="form.projectManagerOrcid" form-field class="form-control" placeholder="Enter ORCID if applicable"/> <small class="form-text text-muted"> If applicable, must be formatted as NNNN-NNNN-NNNN-NNNN. </small> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Department</label> <input type="text" value.bind="form.projectManagerEducationDepartment" form-field class="form-control" placeholder="Enter department"/> </div> <div class="form-group col-12 col-md-6"> <label>Phone (must begin with country code (i.e. +46)).</label> <input type="text" value.bind="form.projectManagerPhone" form-field class="form-control" placeholder="Enter phone number"/> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Street address</label> <input type="text" value.bind="form.projectManagerAddress" form-field class="form-control" placeholder="Enter street address"/> </div> <div class="form-group col-12 col-md-6"> <label>Email</label> <input type="email" value.bind="form.projectManagerEmail" form-field class="form-control" placeholder="Enter email"/> </div> </div> <div class="row"> <div class="form-group col-12 col-md-3"> <label>Postal code</label> <input type="text" value.bind="form.projectManagerPostalCode" form-field class="form-control" placeholder="Enter postal code"/> </div> <div class="form-group col-12 col-md-3"> <label>City</label> <input type="text" value.bind="form.projectManagerCity" form-field class="form-control" placeholder="Enter city "/> </div> <div class="form-group col-12 col-md-6"> <label>Year of doctoral degree</label> <select value.bind="form.projectManagerYearOfDegree" class="form-control" form-field> <option></option> <option value="noDoctoralDegree">No doctoral degree</option> <option repeat.for="i of 72">${currentYear-i}</option> </select> <small class="form-text text-muted"> If the applicant does not have a doctoral degree by the application date choose \'no doctoral degree\' and then specify planned date. </small> </div> </div> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Country</label> <select value.bind="form.projectManagerSelectedCountry" class="form-control" form-field> <option model.bind="null"></option> <option repeat.for="country of countries" model.bind="country.name"> ${country.name} </option> </select> </div> <div class="form-group col-12 col-md-6" if.bind="form.projectManagerYearOfDegree === \'noDoctoralDegree\'"> <label>Specify planned date for doctoral degree</label> <input type="text" maxlength="20" value.bind="form.projectManagerPlannedYearOfDegree" class="form-control" date-picker data-date-format="YYYY-MM-DD" form-field placeholder="Enter date"/> <small class="form-text text-muted"> The planned date must be before the start of the grant period (not later than ${currentYear}-12-31). </small> </div> </div> <div class="row"> <div class="col-12"> <attachment name="projectManagerCV" description="CV" max-pages="2" accept="application/pdf" index="300" type="Document" reference-id.bind="form.applicationId"></attachment> </div> </div> </div> </div> <div class="col-12" show.bind="!print"> <div class="form-section"> <h4 class="form-section-header">Budget (SEK)</h4> <div class="row"> <div class="col-12"> <table class="spreadsheet"> <tr> <th> Salary cost for ${form.projectManager} (Project Manager) </th> <th style="width:140px">Year 1</th> <th style="width:140px">Year 2</th> <th style="width:140px">Total</th> </tr> <tr> <td> <input type="text" value="Monthly salary" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.monthlySalaryY1 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.monthlySalaryY2 | currency" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td class="disabled"></td> </tr> <tr> <td class="text-right"> <input type="text" value="Percent of Full-Time Equivalent" disabled="disabled" class="form-control"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="form.ftePercentageY1" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="number" min="0" max="100" step="10" value.bind="form.ftePercentageY2" form-field class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td class="disabled"></td> </tr> <tr> <td class="text-right"> <input type="text" value="Yearly salary" disabled="disabled" class="form-control"/> </td> <td> <input type="test" disabled="disabled" value.bind="form.salaryY1 | currency" form-field class="form-control text-right" sum="yearlySalarySum"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.salaryY2 | currency" form-field class="form-control text-right" sum="yearlySalarySum"/> </td> <td> <input type="text" value.bind="form.yearlySalarySum | currency" disabled="disabled" form-field class="form-control text-right"/> </td> </tr> </table> <table class="spreadsheet"> <tr> <th>Salary cost totals</th> <th style="width:140px">Year 1</th> <th style="width:140px">Year 2</th> <th style="width:140px">Total</th> </tr> <tr> <td class="text-right"> <input type="text" value="Yearly salary total" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.salarySumY1 | currency" form-field sum="totalYearlySalary" class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" value.bind="form.salarySumY2 | currency" form-field sum="totalYearlySalary" class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalYearlySalary | currency" form-field class="form-control text-right"/> </td> </tr> <tr> <td class="text-right"> <input type="text" value="Yearly salary total employee benefits included (56%)" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.salarySumCostY1 | currency" form-field sum="totalYearlySalaryInclBen" class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" value.bind="form.salarySumCostY2 | currency" form-field sum="totalYearlySalaryInclBen" class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalYearlySalaryInclBen | currency" sum="totalSalaryCost" form-field class="form-control text-right"/> </td> </tr> <tr> <td> <div class="d-flex flex-row"> <input type="text" value="Overhead costs (${form.overheadPercentage} %)" disabled="disabled" class="form-control"/> <input type="number" step="1" max="100" min="0" value.bind="form.overheadPercentage" form-field class="form-control text-right" style="width:120px" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </div> </td> <td> <input type="text" value.bind="form.overheadCostY1 | currency" form-field sum="totalOverheadCost" class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" value.bind="form.overheadCostY2 | currency" form-field sum="totalOverheadCost" class="form-control text-right" disabled="disabled"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalOverheadCost | currency" sum="totalSalaryCost" form-field class="form-control text-right"/> </td> </tr> <tr> <td class="text-right"> <input type="text" value="Salary total costs" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.salaryTotalCostY1 | currency" form-field class="form-control text-right" disabled="disabled" sum="appliedSumY1"/> </td> <td> <input type="text" value.bind="form.salaryTotalCostY2 | currency" form-field class="form-control text-right" disabled="disabled" sum="appliedSumY2"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalSalaryCost | currency" form-field class="form-control text-right"/> </td> </tr> </table> </div> </div> <div class="row"> <div class="col-12"> <table class="spreadsheet"> <tr> <th>Other direct costs</th> <th style="width:140px">Year 1</th> <th style="width:140px">Year 2</th> <th style="width:140px">Total</th> </tr> <tr> <td> <input type="text" value="Costs of premises" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.premisesCostsY1 | currency" form-field sum="otherCostsTotalY1" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.premisesCostsY2 | currency" form-field sum="otherCostsTotalY2" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalPremisesCosts | currency" sum="AllTotalOtherCosts" form-field class="form-control text-right"/> </td> </tr> <tr> <td> <input type="text" value="Investigation costs" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.investigationCostsY1 | currency" form-field sum="otherCostsTotalY1" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.investigationCostsY2 | currency" form-field sum="otherCostsTotalY2" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalInvestigationCosts | currency" sum="AllTotalOtherCosts" form-field class="form-control text-right"/> </td> </tr> <tr> <td> <input type="text" value="Costs for conferences and travel" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.travelCostsY1 | currency" form-field sum="otherCostsTotalY1" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.travelCostsY2 | currency" form-field sum="otherCostsTotalY2" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalTravelCosts | currency" sum="AllTotalOtherCosts" form-field class="form-control text-right"/> </td> </tr> <tr> <td> <input type="text" value="Other costs" disabled="disabled" class="form-control"/> </td> <td> <input type="text" value.bind="form.otherCostsY1 | currency" form-field sum="otherCostsTotalY1" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" value.bind="form.otherCostsY2 | currency" form-field sum="otherCostsTotalY2" class="form-control text-right" disabled.bind="form.hasBeenNotified || form.appSignatureSigned"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.totalOtherCostsTotal | currency" sum="AllTotalOtherCosts" form-field class="form-control text-right"/> </td> </tr> <tr> <th class="text-right">Other costs total</th> <td> <input type="text" disabled="disabled" value.bind="form.otherCostsTotalY1 | currency" form-field class="form-control text-right" sum="appliedSumY1"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.otherCostsTotalY2 | currency" form-field class="form-control text-right" sum="appliedSumY2"/> </td> <td> <input type="text" disabled="disabled" value.bind="form.AllTotalOtherCosts | currency" form-field class="form-control text-right"/> </td> </tr> </table> <table class="spreadsheet"> <tr> <th class="text-right">Total applied sum per year</th> <td style="width:140px"> <input type="text" value.bind="form.appliedSumY1 | currency" disabled="disabled" form-field sum="appliedSum" class="form-control text-right"/> </td> <td style="width:140px"> <input type="text" value.bind="form.appliedSumY2 | currency" disabled="disabled" form-field sum="appliedSum" class="form-control text-right"/> </td> <td style="width:140px"> <input type="text" value.bind="form.appliedSum | currency" disabled="disabled" sum="totalAppliedSum" form-field class="form-control text-right"/> </td> </tr> </table> <table class="spreadsheet"> <tr> <th class="text-right">Dissemination of project results</th> <td style="width:420px"> <input type="text" value.bind="form.openAccessPublication | currency" disabled="disabled" sum="totalAppliedSum" class="form-control text-right"/> </td> </tr> </table> <table class="spreadsheet"> <tr> <th class="text-right">Total funds applied for (SEK)</th> <td style="width:420px"> <input type="text" value.bind="form.totalAppliedSum | currency" form-field disabled="disabled" class="form-control text-right"/> </td> </tr> </table> </div> <div class="form-group col-12"> <label>Budget commentary </label> <textareaex type="text" value.bind="form.budgetComment" form-field placeholder="Write budget commentary" rows="6" maxlength="3000"></textareaex> </div> </div> </div> </div> <div class="col-12" show.bind="!print" ref="signatureswrapper"> <div class="form-section"> <h4 class="form-section-header">Signature</h4> <div class="row"> <div class="form-group col-12 col-md-6"> <label>Type of signature</label> <select value.bind="form.signatureType" class="form-control" form-field> <option></option> <option value="BankID">BankID</option> <option value="signatureForm"> Generate signature form (when BankID is not available) </option> </select> </div> </div> <div if.bind="form.signatureType == \'BankID\'"> <require from="./customElements/validation-messages.html"></require> <div class="row mx-0"> <div class="card col-12"> <div class="card-body hidden-print"> <div if.bind="form.coSignatureSigned && form.appSignatureSigned"> All signatures have been provided and their proof of signature is located at the bottom of this form. </div> <div if.bind="!(form.coSignatureSigned && form.appSignatureSigned)"> <h5 class="card-title">Project manager\'s signature:</h5> <span if.bind="!form.appSignatureSigned"> When you sign the application your proof of signature will show up below and some fields will be locked. Once signed you cannot remove your signature but you can still change most values in the form. </span> <div class="d-block" if.bind="validationMessagesApplicationSignature.length > 0"> <button class="btn btn-primary d-inline" disabled="disabled"> Signera </button> <img src="https://apply-pub.s3.eu-north-1.amazonaws.com/apply/BankID_logo.png" height="75" width="75" class="d-inline"/> </div> <validation-messages messages.bind="validationMessagesApplicationSignature"> </validation-messages> <compose if.bind="validationMessagesApplicationSignature.length == 0" view-model="../../../resources/elements/signature-box" model.bind="{\n                      referenceId: form.applicationId, \n                      referenceType: \'application\',\n                    }"></compose> </div> </div> </div> <div class="hidden-print card col-12" if.bind="!form.coSignatureSigned"> <require from="../cosign-box"></require> <cosign-box form.bind="form" disabled.bind="validationMessagesCoSignature.length > 0"></cosign-box> <validation-messages messages.bind="validationMessagesCoSignature"> </validation-messages> </div> </div> </div> <div if.bind="form.signatureType == \'signatureForm\'"> <div class="mt-2 alert alert-info" style="overflow:auto"> <button class="btn btn-secondary btn-sm hidden-print pull-right" click.trigger="printSignaturePage()"> <i class="fa fa-print"></i> Generate certificate for signature </button> <p class="form-text"> <b>Click the button to print the signature form. Sign the the form and then upload a picture or a scanned document </b> </p> </div> <attachment name="signatures" description="Signatures" accept="application/pdf,image/*" index="100000" reference-id.bind="form.applicationId" max-file-size="3000000" max-pages="1"> </attachment> </div> </div> </div> <div class="col-10 offset-1 p-4" show.bind="print"> <h4 class="mb-4">Signatures</h4> <p><b>Project title:</b> ${form.projectTitle}</p> <p><b>Project manager:</b> ${form.projectManager}</p> <p><b>Project period:</b> 2</p> <p> <b>Total funds applied for (SEK):</b> ${form.totalAppliedSum | currency} </p> <p><b>Grant administrator:</b> Södertörns högskola</p> <p><b>Department responsible for the project:</b> ${form.department}</p> <p></p> <p>&nbsp;</p> <p>&nbsp;</p> <p> A signature on the application is required not only from the applicant but also from the grant administrator’s authorised representative (usually the head of department, <i>prefekt</i>). </p> <p> This signature confirms that the project as it is described in the application, including positions, fees and assignments for researchers not employed at the University at the time of the application, can be accommodated for the period and on the scale specified in the application. </p> <p>&nbsp;</p> <hr/> <p> Place and date <span style="margin-left:40px">${form.projectManager} (Project manager)</span> </p> <p>&nbsp;</p> <hr/> <p> Place and date <span style="margin-left:40px">(The grant administrator’s authorised representative)</span> </p> <p>&nbsp;</p> <hr/> <p>Clarification of signature</p> </div> <div class="col-12" show.bind="!print"> <div class="form-section"> <h4 class="form-section-header">Privacy policy</h4> <div class="form-group form-check"> <input type="checkbox" checked.bind="form.confirmTerms" form-field/> <label class="form-check-label"> I confirm that I have read the Foundation’s <a target="_blank" href="https://ostersjostiftelsen.se/en/about-the-foundation/data-privacy-policy-of-the-foundation-for-baltic-and-east-european-studies"> Data Privacy Policy</a>. This policy describes how the Foundation processes and protects personal data. </label> </div> </div> </div> </div> <div class="form-section page-break-before" if.bind="form.signatureType == \'BankID\' && (coFormVm.coSignatureSigned)"> <compose view-model="../cosign/postdoc2" model.bind="coFormVm"></compose> </div> </template> '},tuJm:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("aurelia-validation");var a=function(e,t){var r=[];return e.forEach((function(e){var a=e.key,o=e.message,i=e.minCount,n=e.maxSum,s=e.minSum;t.hasOwnProperty(a)&&t[a]||r.push(o);var l=t[a];if(l){a.toLowerCase().includes("email")&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)&&r.push("Invalid Email format on "+o),i&&l.length<i&&r.push("Number of "+o+" to low."),n&&l>n&&r.push(o+" cannot exceed "+n),s&&l<s&&r.push(o+" must be more than "+s)}})),r}}}]);
//# sourceMappingURL=app~ec16dc8d.849e7095589877928890.bundle.map