1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6498],{10395:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/components/IMTFApplicationForm/ApplicationSectionTwo",function(){return i(57516)}])},76158:function(e,t,i){"use strict";i.d(t,{D:function(){return r}});let r=(0,i(36792).QS)({})},56771:function(e,t,i){"use strict";i.d(t,{w_:function(){return s}});var r=i(67294),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},l=r.createContext&&r.createContext(a),n=function(){return(n=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},o=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(i[r[a]]=e[r[a]]);return i};function s(e){return function(t){return r.createElement(c,n({attr:n({},e.attr)},t),function e(t){return t&&t.map(function(t,i){return r.createElement(t.tag,n({key:i},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var i,a=e.attr,l=e.size,s=e.title,c=o(e,["attr","size","title"]),m=l||t.size||"1em";return t.className&&(i=t.className),e.className&&(i=(i?i+" ":"")+e.className),r.createElement("svg",n({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,c,{className:i,style:n(n({color:e.color||t.color},t.style),e.style),height:m,width:m,xmlns:"http://www.w3.org/2000/svg"}),s&&r.createElement("title",null,s),e.children)};return void 0!==l?r.createElement(l.Consumer,null,function(e){return t(e)}):t(a)}},57516:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return u}});var r=i(85893),a=i(67294),l=i(87536),n=i(2914),o=i(1029),s=i.n(o),c=i(13433),m=i(76158);function u(e){var t,i,o,u,d,p,f,b;let{grantData:v,setCurrentScreen:h,grantDataToSubmit:x,setGrantDataToSubmit:N,onCreateGrant:j,onSaveGrant:A}=e,g=(0,a.useRef)(null),{register:_,handleSubmit:F,watch:O,setValue:y,formState:{errors:E}}=(0,l.cI)(),T=null===(t=(0,c.l)(m.D))||void 0===t?void 0:t.imtfApplicationFieldsValue;return(0,r.jsxs)("div",{className:s().formPartTwo,children:[(0,r.jsxs)("div",{className:"".concat(s().sectionNav," d-flex overflow-auto align-items-center mb-5"),children:[(0,r.jsxs)("div",{className:"".concat(s().backtoSection," d-flex align-items-center"),onClick:()=>h(0),children:[(0,r.jsx)(n._HU,{size:25,className:"me-1"})," Back to Section 1"]}),(0,r.jsx)("button",{type:"button",className:"border-0 bg-transparent position-relative text-center",children:"Section 1"}),(0,r.jsx)("button",{type:"button",className:"border-0 bg-transparent position-relative text-center",children:"Section 2"}),(0,r.jsx)("button",{type:"button",className:"border-0 bg-transparent position-relative text-center",disabled:!0,children:"Section 3"}),(0,r.jsx)("button",{type:"button",className:"border-0 bg-transparent position-relative text-center",disabled:!0,children:"Section 4"})]}),(0,r.jsx)("div",{className:s().ApplicationForm,children:(0,r.jsxs)("form",{onSubmit:F(e=>{var t;if(!(null===(t=g.current)||void 0===t?void 0:t.checked)){alert("Please tick the box below");return}N({...x,...e,maximumAmountPaidConfirm:"TRUE"}),h(2),(0,m.D)({...(0,m.D)(),imtfApplicationFieldsValue:{...T,...e,maximumAmountPaidConfirm:"TRUE"}})}),children:[(0,r.jsx)("h3",{className:"".concat(s().formTitle," mb-3 text-primary"),children:"C - Estimated Seafarers benefitted"}),(0,r.jsx)("div",{className:"row mb-4",children:(0,r.jsxs)("div",{className:"col-12 col-md-6 mb-3",children:[(0,r.jsx)("label",{className:"form-label",children:"THE ESTIMATED NUMBER OF SEAFARERS THE PROJECT WILL BENEFIT"}),(0,r.jsx)("input",{..._("seaFarersNumber",{required:!0,pattern:{value:/^[0-9]+$/,message:"Please enter number"}}),type:"text",className:"form-control",defaultValue:(null==T?void 0:T.seaFarersNumber)?null==T?void 0:T.seaFarersNumber:(null==v?void 0:v.gaTheEstimatedNumberOfSeafarersFilipinoSeafarersForAmosupApplicationsTheProjectWillBenefit)&&(null==v?void 0:v.gaTheEstimatedNumberOfSeafarersFilipinoSeafarersForAmosupApplicationsTheProjectWillBenefit)!=="undefined"&&(null==v?void 0:v.gaTheEstimatedNumberOfSeafarersFilipinoSeafarersForAmosupApplicationsTheProjectWillBenefit)!=="null"?v.gaTheEstimatedNumberOfSeafarersFilipinoSeafarersForAmosupApplicationsTheProjectWillBenefit:""}),(null===(i=E.seaFarersNumber)||void 0===i?void 0:i.message)&&(0,r.jsx)("p",{className:"alert alert-danger",role:"alert",children:"".concat(null===(o=E.seaFarersNumber)||void 0===o?void 0:o.message)}),(null===(u=E.seaFarersNumber)||void 0===u?void 0:u.type)==="required"&&(0,r.jsx)("p",{className:"alert alert-danger",role:"alert",children:"Number of seafarers required"})]})}),(0,r.jsx)("h3",{className:"".concat(s().formTitle," mb-3 text-primary"),children:"D - Amount Applied For"}),(0,r.jsxs)("div",{className:"row mb-4",children:[(0,r.jsxs)("div",{className:"col-12 col-md-6 mb-3",children:[(0,r.jsx)("label",{className:"form-label",children:"Amount Applied For (US$)"}),(0,r.jsx)("input",{..._("amountApplied",{required:!0,pattern:{value:/^[1-9]\d*(\.\d+)?$/,message:"Please enter amount in number"}}),type:"text",placeholder:"US$ Input",className:"form-control",defaultValue:(null==T?void 0:T.amountApplied)?null==T?void 0:T.amountApplied:(null==v?void 0:v.gaAmountAppliedForUs)&&(null==v?void 0:v.gaAmountAppliedForUs)!=="undefined"&&(null==v?void 0:v.gaAmountAppliedForUs)!=="null"?v.gaAmountAppliedForUs:""}),(null===(d=E.amountApplied)||void 0===d?void 0:d.message)&&(0,r.jsx)("p",{className:"alert alert-danger",role:"alert",children:"".concat(null===(p=E.amountApplied)||void 0===p?void 0:p.message)}),(null===(f=E.amountApplied)||void 0===f?void 0:f.type)==="required"&&(0,r.jsx)("p",{className:"alert alert-danger",role:"alert",children:"Amount paid is required"})]}),(0,r.jsx)("div",{className:"col-12 mb-3",children:(0,r.jsx)("div",{className:"form-check mb-2",children:(0,r.jsxs)("label",{className:"form-check-label",children:[(0,r.jsx)("input",{ref:g,className:"form-check-input me-3",type:"checkbox",defaultChecked:null==T?void 0:T.maximumAmountPaidConfirm}),"I confirm the amount applied for is a maximum of 90% of the total cost of the project"]})})})]}),(0,r.jsx)("h3",{className:"".concat(s().formTitle," mb-3 text-primary"),children:"E - Objective of Grant"}),(0,r.jsxs)("div",{className:"row mb-4",children:[(0,r.jsx)("div",{className:"col-12 mb-3",children:(0,r.jsx)("label",{children:"Details of project use (including number of seaferers trained / how IMEC members can utilise it)"})}),(0,r.jsxs)("div",{className:"col-12 mb-3",children:[(0,r.jsx)("textarea",{..._("grantObjective",{required:!0}),className:"form-control",placeholder:"Input",defaultValue:(null==T?void 0:T.grantObjective)?null==T?void 0:T.grantObjective:(null==v?void 0:v.gaObjectiveOfGrantApplication)&&(null==v?void 0:v.gaObjectiveOfGrantApplication)!=="undefined"&&(null==v?void 0:v.gaObjectiveOfGrantApplication)!=="null"?v.gaObjectiveOfGrantApplication:""}),(null===(b=E.grantObjective)||void 0===b?void 0:b.type)==="required"&&(0,r.jsx)("p",{className:"alert alert-danger",role:"alert",children:"Please specify objective of this grant"})]})]}),(0,r.jsxs)("div",{className:"mb-4 text-end",children:[(0,r.jsx)("button",{type:"submit",className:"btn btn-light",onClick:F(e=>{var t;if(!(null===(t=g.current)||void 0===t?void 0:t.checked)){alert("Please tick the box below");return}A({...e,maximumAmountPaidConfirm:"TRUE"})}),children:"Save"}),(0,r.jsx)("button",{type:"submit",className:"btn btn-primary ms-4",children:"Next"})]})]})})]})}},1029:function(e){e.exports={badge:"imtfApplicationForm_badge__1PjVj",formPartOne:"imtfApplicationForm_formPartOne__vCGTF",backtoSection:"imtfApplicationForm_backtoSection__VlYg4","me-1":"imtfApplicationForm_me-1___1BB_",sectionNav:"imtfApplicationForm_sectionNav__TedPB",ApplicationForm:"imtfApplicationForm_ApplicationForm___iTh9",formTitle:"imtfApplicationForm_formTitle__l_6Jk",uploadFiles:"imtfApplicationForm_uploadFiles__JIPRZ",filesName:"imtfApplicationForm_filesName__eKpP9",popupContent:"imtfApplicationForm_popupContent__4ZRPk"}}},function(e){e.O(0,[5445,8584,7536,2888,9774,179],function(){return e(e.s=10395)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.