1(globalThis.webpackChunkomc_ui_2_0||=[]).push([[4355],{19929(e,a,r){"use strict";r.r(a),r.d(a,{default:()=>Aa});var i=r(86781),l=r(45358),t=r(68459),o=r(48661),n=r(14491);const s=n.Ay.h1` 2 font-size: 24px; 3 font-weight: 700; 4 line-height: 36px; 5 color: var(--gray-90-color); 6 padding-left: 6px; 7 margin-bottom: 6px; 8`,d=n.Ay.div` 9 padding: 12px; 10 margin-left: 6px; 11 background-color: var(--gray-10-color); 12 border-radius: 8px; 13`,c=n.Ay.div.attrs({className:"bg-white drop-shadow-25"})` 14 position: relative; 15 width: 100%; 16 max-width: 633px; 17 border-radius: 8px; 18 padding: 18px; 19 margin-bottom: 18px; 20 .distribution-label { 21 ${e=>{let{invalid:a,disabled:r}=e;return!r&&a?"color: var(--danger-color) !important;":""}}; 22 23 &::before { 24 ${e=>{let{invalid:a,disabled:r}=e;return!r&&a?"border: 2px solid var(--danger-color) !important;":""}}; 25 } 26 } 27 28 ${e=>{let{disabled:a}=e;return a?"\n &::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--gray-80-color);\n opacity: 0.2;\n border-radius: inherit;\n z-index: 1;\n }\n ":""}} 29 30 ${e=>{let{invalid:a,disabled:r}=e;return!r&&a?"border: 1px solid var(--danger-color); box-shadow: 0 0 4px var(--danger-color) !important;":""}}; 31`;var m=r(9950);const u=n.Ay.h2.attrs({className:"body-16"})` 32 font-weight: 700; 33`,p=n.Ay.div` 34 padding: 18px; 35 background-color: var(--gray-10-color); 36 border-radius: 8px; 37 margin-top: ${e=>e.marginTop||"0"}; 38`,g=n.Ay.h3.attrs({className:"body-14"})``,h=n.Ay.div` 39 margin-bottom: 8px; 40 &.invalid { 41 label { 42 color: var(--danger-color); 43 } 44 input[type='checkbox']:not(:checked) { 45 color: var(--danger-color); 46 border-color: var(--danger-color); 47 } 48 } 49`,x=n.Ay.div` 50 display: flex; 51 align-items: center; 52 margin-bottom: 8px; 53 .selection-list-item { 54 label { 55 margin-left: 16px; 56 font-weight: 700; 57 } 58 } 59`,b=(n.Ay.label.attrs({className:"body-14"})` 60 margin-left: 16px; 61 font-weight: 700; 62`,n.Ay.div``),f=n.Ay.h3.attrs({className:"body-14"})` 63 display: flex; 64 flex-direction: column; 65 justify-content: flex-end; 66 height: 43px; 67`,v=n.Ay.div` 68 display: flex; 69 align-items: center; 70 gap: 16px; 71 72 [type='radio']:checked + label:before { 73 border: 2px solid var(--primary-color-blue); 74 } 75 [type='radio']:not(:checked) + label:before { 76 border: 2px solid var(--gray-80-color); 77 } 78 [type='radio']:checked + label::after { 79 background-color: var(--primary-color-blue); 80 } 81 .form-check-label { 82 &:hover { 83 &::before { 84 border: 2px solid var(--primary-color-hover) !important; 85 } 86 &::after { 87 background: var(--primary-color-hover) !important; 88 } 89 } 90 } 91 [type='radio']:disabled + label { 92 color: var(--gray-60-color); 93 cursor: not-allowed; 94 &:hover { 95 &::before { 96 border: 2px solid var(--gray-60-color) !important; 97 } 98 &::after { 99 background: var(--gray-60-color) !important; 100 } 101 } 102 } 103 [type='radio']:disabled + label:before { 104 border-color: var(--gray-60-color); 105 cursor: not-allowed; 106 } 107 [type='radio']:disabled + label::after { 108 background-color: var(--gray-60-color); 109 cursor: not-allowed; 110 } 111`,y=n.Ay.label.attrs({className:"body-14"})``,N=n.Ay.div` 112 display: flex; 113 flex-direction: column; 114 margin-top: 16px; 115`,j=n.Ay.h3.attrs({className:"body-14"})` 116 &:nth-child(3) { 117 margin-top: 16px; 118 } 119`,I=n.Ay.label.attrs({className:"body-14"})` 120 color: var(--danger-color) !important; 121`;var F=r(45869),C=r(35657),S=r(42087),A=r(95500),T=r(64133),E=r(44414);const w=e=>{let{eoInfo:a,setEoInfo:r,isInvalidHeadline:i,isInvalidScheduledDate:l,eoInfoTouched:t,setEoInfoTouched:n}=e;const s=(0,S.jL)(),[d]=(0,o.B)();return(0,m.useEffect)(()=>()=>{s((0,A.cZ)({key:T.Q.PREV_PR_VALID_TIME_SELECTED_12H,value:!0})),s((0,A.cZ)({key:T.Q.PREV_PR_VALID_TIME_SELECTED_24H,value:!0}))},[]),(0,E.jsxs)(N,{children:[(0,E.jsx)(j,{children:d("regFiling:headlineOfRelease","Headline of release*")}
121),(0,E.jsx)(C.pd,{type:"text",onChange:e=>{r({...a,headline:e.target.value}),n({...t,headline:!0})},value:a.headline,maxLength:100,className:i?"invalid-input":""}),i?(0,E.jsx)(I,{children:d("regFilingValidations:headlineOfReleaseValidationMessage","Please enter a valid headline of release.")}):null,(0,E.jsx)(j,{children:d("regFiling:scheduleDateOfRelease","Scheduled date of release")}),(0,E.jsx)(F.A,{selectedDate:a.scheduledDate,updateOutDatedTime:!Boolean(a.scheduledDate),onChange:e=>{r({...a,scheduledDate:e}),n({...t,scheduledDate:!0})}},"eoInfoInput"),l?(0,E.jsx)(I,{children:d("regFilingValidations:dateRequiredMessage","Please select a valid date.")}):null]})},R={headline:"",scheduledDate:""},V={headline:!1,scheduledDate:!1};var D=r(27788),_=r(40662),k=r(92526),L=r(71316),P=r(56943),O=r(41397),M=r(71385),G=r(5418),U=r(73178);const{HEADLINE:H,SCHEDULE_RELEASE:$}=T.Q,B=e=>{let{onRegForSubmittedPRChange:a}=e;const[r]=(0,o.B)(),i=(0,S.jL)(),l=(0,S.GV)(D.j$),t=(0,S.GV)(k.tE),{headLineofRelease:n,scheduledRelease:s}=(0,S.GV)(D.A5),d=(0,S.GV)(D.wQ),c=(0,S.GV)(D.KJ),u=(0,S.GV)(D.A1),{filingType:p}=(0,S.GV)(D.ic),{addNotification:g}=(0,G.y)(U.V),[h,x]=(0,m.useState)(!(!n&&!s)),[N,j]=(0,m.useState)(!1),[I,F]=(0,m.useState)({...R,headline:n,scheduledDate:s}),[C,T]=(0,m.useState)(V),{isFormValid:B,isValidHL:K,isValidSD:z}=(0,m.useMemo)(()=>{var e,a;const r={isValidHL:!C.headline||(!h||((null===(e=I.headline)||void 0===e?void 0:e.length)||0)>0),isValidSD:!C.scheduledDate||(!h||((null===(a=I.scheduledDate)||void 0===a?void 0:a.length)||0)>0)};return{...r,isFormValid:r.isValidHL&&r.isValidSD}},[h,I.headline,I.scheduledDate,C]),[q,W]=(0,M.G)([H,$],!1),[Q]=(0,S.XO)(_.Ee),Y=e=>{const r="yes"===e.target.value;x(r),a(r),j(!0),r||(F(e=>({...e,headline:"",scheduledDate:null})),T(e=>({...e,headline:!0,scheduledDate:!0})))},Z=e=>{g({type:"error",title:r("general:errorTitle"),subtitle:(0,P.oL)(r("general:errorFallbackHeading"),e),dismissTime:L.wN})};return(0,S.bN)(()=>{const e=I.headline||I.scheduledDate||N;c&&B&&l&&l>0&&e&&(i((0,A.Nb)(L.mH.reg_filing_details)),Q({variables:{accountNumber:t,draftOrderId:l,headLineofRelease:I.headline,scheduledRelease:I.scheduledDate,filingType:p,filingDate:u}}).then(e=>{const a=(0,P.cx)(e);a?Z(a):i((0,A.m$)({path:"",value:(0,O.get)(e,"data.saveRegFilingDetails",{})}))}).catch(e=>{(0,P.cx)(e)&&Z(e)}).finally(()=>{i((0,A.YE)(L.mH.reg_filing_details)),T(V),j(!1)}))},[B,l,t,I,c,N]),(0,m.useEffect)(()=>{i((0,A.m$)({path:"existingSubmission",value:h})),h||T(V)},[h]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(b,{children:[(0,E.jsx)(f,{className:"omc-mb-1.5",children:r("regFiling:accompanyPreviouslySubmitted","Does this filing accompany a previously submitted press release?")}),(0,E.jsxs)(v,{children:[(0,E.jsxs)("div",{children:[(0,E.jsx)("input",{...d?{disabled:!0}:{},type:"radio",name:"regForSubmittedPR",id:"regForSubmittedPR1",value:"no",onChange:Y,...h?{}:{checked:!0}}),(0,E.jsx)(y,{className:"form-check-label",htmlFor:"regForSubmittedPR1",children:r("regFiling:fileSeperately","No, I\u2019d like to file separately")})]}),(0,E.jsxs)("div",{children:[(0,E.jsx)("input",{...d?{disabled:!0}:{},type:"radio",name:"regForSubmittedPR",id:"regForSubmittedPR2",value:"yes",onChange:Y,...h?{checked:!0}:{}}),(0,E.jsx)(y,{className:"form-check-label",htmlFor:"regForSubmittedPR2",children:r("regFiling:fileAccompanies","Yes, accompanies a submitted press release")})]})]})]}),h?(0,E.jsx)(w,{eoInfo:I,setEoInfo:F,eoInfoTouched:C,setEoInfoTouched:T,isInvalidHeadline:!K||!q,isInvalidScheduledDate:!z||!W}):null]})};var K=r(22776),z=r(82804),q=r(72004);const W={sedar:!1,cse:!1,sec:!1,nordic:!1},Q=n.Ay.div` 122 display: flex; 123 flex-direction: column; 124 margin-left: 33.6px; 125 margin-bottom: 8px; 126 max-width: 400px; 127`,Y=n.Ay.label.attrs({className:"body-14"})``,Z=n.Ay.label.attrs({className:"body-14"})` 128 color: var(--danger-color) !important; 129`,X=e=>{let{profileNumber:a,setProfileNumber:r,isInvalid:i}=e;const[l]=(0,o.B)();return(0,E.jsxs)(Q,{children:[(0,E.jsx)(Y,{htmlFor:"reg-sedar-profile",children:l("regFiling:sedarProfileNumber","8 digit SEDAR+ profile number")}),(0,E.jsx)(C.pd,{id:"reg-sedar-profile",type:"text",value:a,onChange:e=>{var a;return r(null===(a=e.target.value)||void 0===a?void 0:a.replace(/[^0-9]/g,""))},pattern:"\\d{1,8}
129",maxLength:8,className:i?"invalid-input":""}),i?(0,E.jsx)(Z,{children:l("regFilingValidations:sedarProfileNameValidationMessage","Please enter a valid SEDAR+ profile number")}):null]})},J=n.Ay.div` 130 display: flex; 131 flex-direction: column; 132 margin-left: 33.6; 133 margin-bottom: 8px; 134 max-width: 400px; 135`,ee=n.Ay.label.attrs({className:"body-14"})``,ae=n.Ay.label.attrs({className:"body-14"})` 136 color: var(--danger-color) !important; 137`,re=e=>{let{cikNumber:a,setCikNumber:r,secType:i,setSecType:l,isInvalidCIK:t,isInvalidSecType:n}=e;const[s]=(0,o.B)();return(0,E.jsxs)(J,{children:[(0,E.jsx)(ee,{htmlFor:"reg-sec-cik",children:s("regFiling:cikNumber","10 digit cik number")}),(0,E.jsx)(C.pd,{id:"reg-sec-cik",type:"text",value:a,onChange:e=>{var a;return r(null===(a=e.target.value)||void 0===a?void 0:a.replace(/[^0-9]/g,""))},pattern:"\\d{1,10}",maxLength:10,className:t?"invalid-input":""}),t?(0,E.jsx)(ae,{children:s("regFilingValidations:cikNumberValidationMessage","Please enter a valid CIK number.")}):null,(0,E.jsx)(ee,{htmlFor:"reg-sec-form-type",className:"omc-mt-1.5",children:s("regFiling:formType8k6k","Form type 8K, 6K")}),(0,E.jsx)(C.pd,{id:"reg-sec-form-type",type:"text",value:i,onChange:e=>l(e.target.value),maxLength:25}),n?(0,E.jsx)(ae,{children:s("regFilingValidations:charLengthLimit","Please enter less than 50 characters.")}):null]})};var ie=r(90890);const{PROFILE_NUMBER:le,CIK_NUMBER:te,FORM_TYPE:oe}=T.Q,ne=()=>{const{formValidationState:e,setFormValidationState:a}=(0,m.useContext)(ie.G),[r]=(0,o.B)(),i=(0,S.jL)(),l=(0,S.GV)(D.j$),t=(0,S.GV)(k.tE),{reg_sedar:n,reg_cansec:s,reg_sec:d,reg_nordic:c}=(0,S.GV)(D.RU),{addNotification:u}=(0,G.y)(U.V),[p,b]=(0,m.useState)({...W,sedar:!!n,cse:!!s,sec:!!d,nordic:!!c}),[f,v]=(0,m.useState)((null===n||void 0===n?void 0:n.profileNumber)||""),[y,N]=(0,m.useState)((null===d||void 0===d?void 0:d.profileNumber)||""),[j,I]=(0,m.useState)((null===d||void 0===d?void 0:d.formType)||""),[F,C,T]=(0,M.G)([le,te,oe],!1),w=(0,m.useMemo)(()=>!F&&!C&&!T,[F,C,T]),{isFilingTypeValid:R,isValidPN:V,isValidCIKN:H,isValidST:$}=(0,m.useMemo)(()=>{const r={isValidPN:!0,isValidCIKN:!0,isValidST:!0,isFilingTypeValid:!0};return p.sedar&&f.length>0&&f.length<8&&(r.isValidPN=!1),p.sec&&y.length>0&&y.length<10&&(r.isValidCIKN=!1),p.sec&&j.length>25&&(r.isValidST=!1),a({...e,...r}),{...r,isFilingTypeValid:r.isFilingTypeValid&&r.isValidPN&&r.isValidCIKN&&r.isValidST}},[p,f,y,j,n,s,d,c]),[B]=(0,z.X)(_.n$),Q=e=>{const a=(0,O.get)(e,"currentTarget.name",""),r=(0,O.get)(e,"currentTarget.checked",!1);a&&b(e=>({...e,[a]:r}))},Y=e=>{u({type:"error",title:r("general:errorTitle"),subtitle:(0,P.oL)(r("general:errorFallbackHeading"),e),dismissTime:L.wN})};return(0,S.bN)(()=>{!p.sedar&&f&&v(""),!p.sec&&y&&N(""),!p.sec&&j&&I("")},[p,f,y,j]),(0,S.bN)(()=>{const e={accountNumber:t,draftOrderId:l,regFilings:[]};p.sedar&&e.regFilings.push({regFilingTypeId:1,profileNumber:f}),p.cse&&e.regFilings.push({regFilingTypeId:2}),p.sec&&e.regFilings.push({regFilingTypeId:3,profileNumber:y,formType:j}),p.nordic&&e.regFilings.push({regFilingTypeId:4}),l&&l>0?R&&(i((0,A.Nb)(L.mH.reg_filing_types)),B({variables:e}).then(e=>{const a=(0,P.cx)(e);a?Y(a):i((0,A.m$)({path:"",value:(0,O.get)(e,"data.saveRegFilingTypes",{})}))}).catch(e=>{const a=(0,P.cx)(e);a&&Y(a)}).finally(()=>i((0,A.YE)(L.mH.reg_filing_types)))):i((0,A.m$)({path:"",value:{draftOrderId:-1}}))},[R,l,t,p.sedar,p.cse,p.sec,p.nordic,f,y,j]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(g,{className:"omc-mb-1.5",children:r("regFilingValidations:selectFileType","Which documents do you want to file?")}),(0,E.jsxs)(h,{className:(0,q.A)(w?"invalid":""),children:[(0,E.jsx)(x,{children:(0,E.jsx)(K.A.Check,{type:"checkbox",id:"sedar",name:"sedar",label:r("regFiling:sedar","SEDAR+"),...p.sedar?{checked:!0}:{},onChange:Q,className:"selection-list-item "})}),p.sedar?(0,E.jsx)(X,{profileNumber:f,setProfileNumber:v,isInvalid:!V||!F}):null,(0,E.jsx)(x,{children:(0,E.jsx)(K.A.Check,{type:"checkbox",id:"cse",name:"cse",label:r("regFiling:canadianSecuritiesExchange","Canadian Securities Exchange"),...p.cse?{checked:!0}:{},onChange:Q,className:"selection-list-item "})}),(0,E.jsx)(x,{children:(0,E.jsx)(K.A.Check,{type:"checkbox",id:"sec",name:"sec",label:r("regFiling:form8kOr6k","Form 8-K or 6-K with SEC"),...p.sec?{checked:!0}:{},onChange:Q,className:"selection-list-item "})}),p.sec?(0,E.jsx)(re,{cikNumber:y,setCikNumber:N,secType:j,setSecType:I,isInvalidCIK:!H||!C,isInvalidSecType:!$||!T}):null,(0,E.jsx)(x,{children:(0,E.jsx)(K.A.Check,{type:"checkbox",id:"nordic",name:"nordic",label:r("regFiling:nordicDisclosure","NORDIC Disclosure"),...p.nordic?{checked:!0}:{},onChange:Q,className:"selection-list-item "})})]})]})};var se=r(71213),de=r(24214);const ce=()=>{const[e]=(0,o.B)(),a=(0,S.GV)(se.RU),r=(0,S.GV)(se.W),[i,l]=(0,m.useState)(!1),t=(0,de.P0)(L.os.filingType);return(0,E.jsxs)(c,{ref:t,...r?{invalid:!0}:{},children:[(0,E.jsx)(u,{className:"omc-mb-1.5",children:e("regFilingValidations:selectFileLocation","Select where you\u2019d like to File")}),(0,E.jsxs)(p,{children:[(0,E.jsx)(ne,{}),(0,E.jsx)(B,{onRegForSubmittedPRChange:e=>{l(e)}})]}),(null===a||void 0===a?void 0:a.reg_sedar)&&i&&(0,E.jsx)(p,{marginTop:"20px",children:(0,E.jsxs)("div",{children:[(0,E.jsx)("h4",{className:"body-14 bold",children:e("createRelease:regQuickFilSADARNOTETITLE")}),(0,E.jsx)("ul",{className:"body-14",children:(0,E.jsx)("li",{children:e("createRelease:regQuickFilSEDARNOTE2")})})]})})]})},me=(0,n.Ay)(C.In)` 138 color: var(--gray-80-color); 139 &:first-child { 140 width: 24px; 141 } 142`,ue=(0,n.Ay)(C.OK)` 143 .rvr-Header__2MY { 144 div { 145 display: flex; 146 align-items: center; 147 148 span { 149 margin: 0 10px 0 8px; 150 font-size: 16px; 151 font-weight: 700; 152 line-height: 24px; 153 } 154 } 155 } 156`,pe=n.Ay.div` 157 display: flex; 158 margin-top: 25px; 159 flex-direction: column; 160`,ge=n.Ay.h3.attrs({className:"body-14 w-100 bold"})``,he=n.Ay.p.attrs({className:"body-14 w-100"})``,xe=()=>{const[e]=(0,o.B)(),[a,r]=(0,m.useState)(!1),i=(0,S.GV)(D.wQ);return(0,E.jsx)(c,{...i?{disabled:!0}:{},children:(0,E.jsx)(C.nD,{children:(0,E.jsxs)(ue,{onClick:()=>r(e=>!e),children:[(0,E.jsx)(ue.Header,{tabIndex:i?-1:0,onKeyUp:e=>{var a;L.x0.includes(e.code)&&(null===e||void 0===e||null===(a=e.currentTarget)||void 0===a||a.click())},children:(0,E.jsxs)("div",{children:[(0,E.jsx)(me,{name:"info"}),(0,E.jsx)("span",{children:e("regFiling:additionalFilingDetails","ADDITIONAL FILING DETAILS")}),(0,E.jsx)(me,{name:a?"chevron-up":"chevron-down"})]})}),(0,E.jsx)(ue.Body,{children:(0,E.jsxs)(pe,{children:[(0,E.jsx)(ge,{children:e("regFiling:sedarInfoTitle","FILING WITH SEDAR+")}),(0,E.jsx)(he,{children:e("regFiling:sedarInfoContent","Requests received after 12:00 AM will be processed the following business day. Once your release(s) cross the wire, our regulatory department will submit it to SEDAR+ for processing.")}),(0,E.jsx)(ge,{children:e("regFiling:canadianSecuritiesInfoTitle","FILING WITH THE CANADIAN SECURITIES EXCHANGE")}),(0,E.jsx)(he,{children:e("regFiling:canadianSecuritiesInfoContent","Requests received after 12:00 AM will be processed the following business day. Once your release crosses the wire, our regulatory department will file with the CSE. If they have any questions, they will contact you directly.")}),(0,E.jsx)(ge,{children:e("regFiling:8kOr6kInfoTitle","FILING A FORM 8-K OR 6-K WITH SEC")}),(0,E.jsx)(he,{children:e("regFiling:8kOr6kInfoContent","To comply with SEC regulations, a reporting issuer is required to file a Form 6-K or Form 8-K.")}),(0,E.jsx)(ge,{children:e("regFiling:nordicDisclosureInfoTitle","FILING WITH NORDIC DISCLOSURE")}),(0,E.jsx)(he,{children:e("regFiling:nordicDisclosureInfoContent1","To comply with FSA and Nasdaq OMX regulations, a reporting issuer is required to file documents with Nordic Disclosure.")}),(0,E.jsx)(he,{children:e("regFiling:nordicDisclosureInfoContent2","As Nordic Disclosure and wire dissemination must go out simultaneously, please ensure you give both departments enough time to process the release and any changes you may submit.")})]})})]})})})},be=(0,n.Ay)(t.A)``,fe=n.Ay.h2.attrs({className:"body-16 bold"})``;(0,n.Ay)(C.$n)` 161 &:disabled { 162 color: var(--gray-40-color) !important; 163 svg { 164 fill: var(--gray-40-color); 165 } 166 } 167`,(0,n.Ay)(C.In)``;var ve=r(68092),ye=r(43762),Ne=r(64847),je=r(11961),Ie=r(87946),Fe=r.n(Ie);const Ce=n.Ay.div` 168 background-color: var(--white-color); 169 overflow: hidden; 170 min-height: 55px; 171 border: 1px solid var(--white-color); 172 173 &.selected { 174 background-color: var(--active-file-item-bg-color) !important; 175 border: 1px solid var(--active-file-item-border-color) !important; 176 } 177 178 .action { 179 width: 30px; 180 margin: 0px 5px; 181 182 &.valid svg { 183 fill: var(--gray-80-color); 184 } 185 } 186 187 button[disabled] > svg { 188 fill: var(--gray-60-color) !important; 189 } 190 191 .file-icon-wrapper { 192 svg path { 193 fill: var(--gray-60-color); 194 } 195 196 &.valid svg path { 197 fill: var(--gray-80-color); 198 } 199 } 200 201 .file-name-wrapper { 202 flex: 1; 203 padding-left: 8px; 204 padding-right: 15px; 205 overflow: hidden; 206 } 207 208 .file-action-wrapper { 209 display: flex; 210 align-items: center; 211 justify-content: end; 212 213 button.action { 214 border: none; 215 background-color: transparent; 216 } 217 } 218`;var Se=r(87950),Ae=r(11249),Te=r(22647),Ee=r(78813),we=r(90246),Re=r(20909);const Ve=e=>{let{tooltipMessage:a,invalidityType:r}=e;const[i]=(0,o.B)(),[l,t]=a;return(0,E.jsx)(Ee.A,{placement:"bottom",trigger:["hover","click","focus"],overlay:(0,E.jsx)(we.A,{className:"tooltip-body body-text",id:"uniq",children:i(l,t)}),children:(0,E.jsx)("button",{className:"status-indicator action",type:"button","aria-label":"status",children:Object.keys(ye.ty).includes(r)?(0,E.jsx)(Te.i,{fill:"#DE4543"}):(0,E.jsx)(Re.h,{})})})};var De=r(83119),_e=r(38843),ke=r(80331);const Le=e=>{var a,r,i,l;let{documentId:t}=e;const[n]=(0,o.B)(),s=(0,S.GV)(_e.i4),{relDocMetaState:d}=(0,m.useContext)(S.WF),c=null!==(a=null===(r=d[t])||void 0===r?void 0:r.languageCode)&&void 0!==a?a:"",u=null!==(i=null===(l=d[t])||void 0===l?void 0:l.isTranslationNeeded)&&void 0!==i&&i,[p]=(0,ke.b)([`releaseDoc.${t}.language`]);return(0,E.jsxs)("div",{className:"omc-flex omc-justify-between omc-items-center omc-text-gray-40",children:[(0,E.jsx)("span",{className:(0,q.A)(c.length>0?"omc-text-success-green":p?"":"omc-text-notify-danger","px-1"),title:c.length>0?n(`createRelease:${c}`,c):"",children:(0,E.jsx)(C.In,{name:"globe"})}),"yes"===s?(0,E.jsx)("span",{className:(0,q.A)(u?"omc-text-gray-80":"","omc-px-1"),title:u?n("createRelease:translationRequested","Translation Services Requested"):"",children:(0,E.jsx)(C.In,{name:"pitch-stage"})}):null]})};var Pe=r(91793),Oe=r(60145),Me=r(78503),Ge=r(37809),Ue=r(64687),He=r(13531);const $e=e=>{let{hideLanguageColumn:a=!1,fileKey:r,fileInfo:{isUploading:i,isValid:l,invalidityType:t,isU
218ploadInitialized:n,name:s,documentId:d,message:c},onRemove:u}=e;const{addNotification:p,removeNotification:g}=(0,G.y)(U.V),[h]=(0,o.B)(),x=(0,S.jL)(),b=(0,P.gm)(s),f=(0,S.GV)(k.tE),v=(0,S.GV)(se.j$),y=(0,S.GV)(Me.H4),[N,{loading:j}]=(0,S.XO)(je.Me),I=(0,S.GV)(k.Mv),{currId:F,setCurrId:C,currDocMetaState:T,nextId:w,prevId:R,isCurrDocMetaComplete:V}=(0,m.useContext)(Pe.WF),{fetchFilePreview:D}=(0,Oe.u)(),_=e=>{e.preventDefault(),e.stopPropagation(),u&&!i&&(l?(x((0,A.Nb)(L.mH.reg_filing_delete_document)),N({variables:{accountNumber:f,documentId:d,draftOrderId:v,emailId:y}}).then(e=>{var a;const i=(null!==(a=Fe()(e,"data.deleteContentFromDraftOrder.orderDocuments",[]))&&void 0!==a?a:[]).filter(e=>!e.isDeleted);u(r),x((0,A.m$)({path:"filingDocuments",value:i})),0===i.length&&C?C(-1):C&&d===F&&C(-1!==w?w:-1!==R?R:-1)}).finally(()=>{x((0,A.YE)(L.mH.reg_filing_delete_document))})):u(r))};return(0,m.useEffect)(()=>{if(!l){const[e,a]=c||[];t===ye.ty.CORRUPT&&p({type:"error",subtitle:h(e,a),id:De.Od.cprErrorCorrupt}),t===ye.zu.SIZE&&p({type:"warning",subtitle:h(e,a),id:De.Od.cprWarningFileSize}),t===ye.zu.TYPE&&p({type:"warning",subtitle:h(e,a),id:De.Od.cprWarningFileType})}},[l,t,x,c]),(0,m.useEffect)(()=>()=>{g(De.Od.cprWarningFileType),g(De.Od.cprWarningFileSize),g(De.Od.cprErrorCorrupt)},[x]),(0,E.jsxs)(Ce,{className:(0,q.A)("omc-flex omc-items-center","2"!==I||-1===F||F!==d||a?"":"selected"),onClick:e=>{e.preventDefault(),e.stopPropagation(),"2"===I&&d&&C&&l&&!T.isSaving&&!a&&(-1!==F&&F===d||(V?C(d):p({type:"info",subtitle:h("errorCodes:NEXT_STEP_VALIDATION_KITE","Please enter more information before going to the next step."),id:De.Od.cprCaptionMissing})))},children:[(0,E.jsx)("div",{className:(0,q.A)("2"!==I||a?"omc-w-[80%]":"omc-w-[60%]","omc-p-4"),children:(0,E.jsxs)("div",{className:"omc-flex",children:[(0,E.jsx)("div",{className:(0,q.A)(l?"valid":"","file-icon-wrapper"),children:(0,E.jsx)(Ge.U,{})}),(0,E.jsxs)("div",{className:(0,q.A)(l?"valid":"","omc-flex-1 omc-pl-[12px] omc-pr-[15px] omc-overflow-hidden","omc-flex","omc-text-xl omc-font-medium"),title:`${b.name||"Untitled"}${b.ext}`,children:[(0,E.jsx)("div",{className:"omc-truncate file-name omc-max-w-screen-sm",children:b.name||"Untitled"}),(0,E.jsx)("span",{className:"file-extension",children:b.ext})]})]})}),"2"!==I||a?null:(0,E.jsx)("div",{className:"omc-px-[24px] omc-py-4 omc-w-[20%] omc-flex omc-justify-center",children:d?(0,E.jsx)(Le,{documentId:d}):null}),(0,E.jsx)("div",{className:"file-action-wrapper w-20 omc-pr-4",children:n?(0,E.jsx)(E.Fragment,{children:j?(0,E.jsx)(E.Fragment,{children:(0,E.jsx)("button",{className:"omc-border-none omc-bg-transparent omc-p-0",type:"button","aria-label":"loader",children:(0,E.jsx)(Ae.h,{className:"spinner"})})}):i?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("button",{className:"omc-border-none omc-bg-transparent omc-p-0",type:"button","aria-label":"loader",children:(0,E.jsx)(Ae.h,{className:"spinner"})}),(0,E.jsx)("button",{className:"omc-border-none omc-bg-transparent omc-p-0",disabled:!0,type:"button","aria-label":"close",children:(0,E.jsx)(He.U,{})})]}):l?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("button",{className:"omc-border-none omc-bg-white omc-p-0",onClick:_,type:"button","aria-label":"trash",children:(0,E.jsx)(Ue.A,{className:"omc-text-black"})}),(0,E.jsx)("button",{type:"button",className:"action valid",onClick:e=>{e.preventDefault(),e.stopPropagation(),d&&f?D(f,d,null!==s&&void 0!==s?s:"Untitled"):console.warn("Preview cannot be loaded as docID/accountId is invali
218d")},disabled:!s||Ne.wN.test(s),"aria-label":"preview",children:(0,E.jsx)(Se.h,{})})]}):t?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("button",{className:"omc-border-none omc-bg-white omc-p-0",onClick:_,type:"button","aria-label":"trash",children:(0,E.jsx)(Ue.A,{className:"omc-text-black"})}),(0,E.jsx)(Ve,{invalidityType:t,tooltipMessage:c||["errorCodes:FILE_TYPE","File type not supported"]})]}):null}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("button",{className:"omc-border-none omc-bg-transparent omc-p-0",type:"button","aria-label":"loader",children:(0,E.jsx)(Ae.h,{className:"spinner"})}),(0,E.jsx)("button",{className:"omc-border-none omc-bg-transparent omc-p-0",onClick:_,type:"button","aria-label":"close",children:(0,E.jsx)(He.U,{})})]})})]})},Be=(0,m.memo)($e),Ke=e=>{let{fileStates:a,onRemove:r,hideLanguageColumn:i=!1}=e;const[l]=(0,o.B)(),t=(0,S.GV)(k.Mv),{currId:n,setCurrId:s,setNextId:d,setPrevId:c}=(0,m.useContext)(Pe.WF),u=(0,m.useMemo)(()=>Object.keys(a).reduce((e,r)=>{const{documentId:i,isValid:l}=a[r];return l&&i&&-1!==i&&e.push(i),e},[]),[a]);return(0,m.useEffect)(()=>{if(u.length>0&&d&&c&&s){const l=u.findIndex(e=>e===n);var e,a,r;if(-1!==l)s(null!==(e=Fe()(u,`${l}`))&&void 0!==e?e:-1),c(null!==(a=Fe()(u,""+(l-1)))&&void 0!==a?a:-1),d(null!==(r=Fe()(u,`${l+1}`))&&void 0!==r?r:-1);else if(-1===n){var i;s(u[0]||-1),c(-1),d(null!==(i=Fe()(u,"1"))&&void 0!==i?i:-1)}}0===u.length&&-1!==n&&s&&s(-1)},[u,n,d,c,s]),(0,E.jsx)("div",{className:"omc-max-h-[275px] omc-overflow-y-auto",children:(0,E.jsxs)("div",{className:"omc-w-full omc-bg-white",children:[(0,E.jsxs)("div",{className:"omc-flex omc-border-bottom-dashed omc-pt-3 omc-pr-[18px] omc-pb-4 omc-pl-4",children:[(0,E.jsx)("div",{className:(0,q.A)("2"!==t||i?"omc-w-[80%]":"omc-w-[60%]"),children:(0,E.jsx)("p",{className:"omc-mb-0 omc-text-sm omc-font-normal omc-text-gray-80 omc-uppercase",children:l("createRelease:fileName","File Name")})}),"2"!==t||i?null:(0,E.jsx)("div",{className:" omc-w-[20%] omc-text-center",children:(0,E.jsx)("p",{className:"omc-mb-0 omc-text-sm omc-font-normal omc-text-gray-80 omc-uppercase",children:l("createRelease:language","Language")})}),(0,E.jsx)("div",{className:"omc-w-[20%]",children:(0,E.jsx)("p",{className:"omc-mb-0 omc-text-sm omc-font-normal omc-text-gray-80 omc-uppercase omc-text-end",children:l("general:actions","Actions")})})]}),(0,E.jsx)("div",{className:"files-wrapper",children:Object.keys(a).map(e=>(0,E.jsx)("div",{className:"omc-border-solid omc-border-b-[1px] omc-border-x-0 omc-border-t-0 omc-border-b-border-dashed last:omc-border-b-0",children:(0,E.jsx)(Be,{fileKey:e,fileInfo:a[e],onRemove:r,hideLanguageColumn:i})},e))})]})})},ze=(0,m.memo)(Ke),qe=n.Ay.div` 219 display: flex; 220 justify-content: flex-end; 221 align-items: center; 222 223 .error { 224 svg { 225 fill: var(--danger-color) !important; 226 } 227 } 228 229 .warning { 230 svg { 231 fill: var(--warning-color) !important; 232 } 233 } 234 235 .info { 236 svg { 237 fill: var(--brand-medium-blue-color) !important; 238 } 239 } 240`,We=e=>{let{warningStatus:a,errorStatus:r,infoStatus:i,fileLimit:l}=e;const[t]=(0,o.B)(),{addNotification:n,removeNotification:s}=(0,G.y)(U.V);return(0,m.useEffect)(()=>{i.LIMIT&&n({type:"info",subtitle:t("errorCodes:FILE_COUNT_LIMIT_MESSAGE",{count:l}),id:De.Od.cprInfoFileLimit}),r.SPEC_CHARS_IN_NAME&&n({type:"error",subtitle:t("errorCodes:FILE_NAME_NO_SPEC_CHARS"),id:De.Od.cprErrorSpecCharInFileName})},[i.LIMIT,r.SPEC_CHARS_IN_NAME,n,t]),(0,m.useEffect)(()=>()=>{s(De.Od.cprInfoFileLimit),s(De.Od.cprErrorSpecCharInFileName)},[s,t]),(0,E.jsxs)(qe,{children:[(0,E.jsxs)("div",{className:"status-indicator warning omc-mb-1",children:[a.TYPE&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("span",{className:"body-text-small omc-ml-3",children:t("errorCodes:STATUS_WARNING_TYPE","File type")}),(0,E.jsx)(Re.h,{className:"omc-ml-1.5"})]}),a.SIZE&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("span",{className:"body-text-small omc-ml-3",children:t("errorCodes:STATUS_WARNING_SIZE","File size")}),(0,E.jsx)(Re.h,{className:"omc-ml-1.5"})]})]}),(0,E.jsx)("div",{className:"status-indicator error omc-mb-1",children:r.CORRUPT&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("span",{className:"body-text-small omc-ml-3",children:t("errorCodes:STATUS_ERROR_CORRUPT","Corrupt File")}),(0,E.jsx)(C.In,{name:"warning",className:"omc-ml-1.5"})]})}),(0,E.jsx)("div",{className:"status-indicator error omc-mb-1",children:r.SPEC_CHARS_IN_NAME&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("span",{className:"body-text-small omc-ml-3",children:t("errorCodes:STATUS_WARNING_NAME_SPEC_CHAR","File name")}
240),(0,E.jsx)(C.In,{name:"warning",className:"omc-ml-1.5"})]})}),(0,E.jsx)("div",{className:"status-indicator info omc-mb-1",children:i.LIMIT&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("span",{className:"body-text-small omc-ml-3",children:t("errorCodes:STATUS_INFO_LIMIT",{count:l})}),(0,E.jsx)(C.In,{name:"info-2",className:"omc-ml-1.5"})]})})]})},Qe=(0,m.memo)(We),Ye=e=>{let{infoStatus:a,errorStatus:r,warningStatus:i,fileStates:l,fileLimit:t,onRemove:o,hideLanguageColumn:n=!1}=e;return(0,E.jsxs)("div",{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,E.jsx)(Qe,{infoStatus:a,errorStatus:r,warningStatus:i,fileLimit:t}),(0,E.jsx)("div",{children:(0,E.jsx)(ze,{fileStates:l,onRemove:o,hideLanguageColumn:n})})]})};var Ze=r(56156);const{FILING_DOCUMENTS:Xe}=T.Q,Je=e=>(0,O.get)(e,`data.addFileToDraftOrder.orderDocuments[${e.data.addFileToDraftOrder.orderDocuments.length-1}]`,null),ea=()=>{const e=(0,m.useRef)(null),[a]=(0,o.B)(),r=(0,S.jL)(),i=(0,S.GV)(k.tE),l=(0,S.GV)(D.j$),t=(0,S.GV)(D.wQ),n=(0,S.GV)(D.uN),s=(0,de.P0)(L.os.filingUpload),[d]=(0,M.G)([Xe],!1),u=(0,m.useCallback)(e=>({accountNumber:i,draftOrderId:l,file:e,fileType:ye.db.REG_SEDAR_DOCUMENT}),[i,l]),p=(0,m.useCallback)((e,a)=>{const i=(0,O.get)(e,"data.addFileToDraftOrder.orderDocuments",[]);r((0,A.m$)({path:"filingDocuments",value:i}))},[r]),{isUploading:g,fileStates:h,fileCount:x,attachFiles:b,removeFile:f,infoStatus:v,errorStatus:y,warningStatus:N}=(0,ve.l)(je.Il,u,Je,p,{fileLimit:Ne.UR.releaseFiles.fileLimit,fileUploadConcurrency:Ne.UR.releaseFiles.uploadConcurrency,preloadedFilesData:n,constraints:{validateType:!0,allowedFileTypes:Ne.UR.releaseFiles.validMimeTypes,fileTypeRegex:Ne.UR.releaseFiles.fileTypeRegex,fileTypeMessagei18Params:["errorCodes:FILE_UPLOAD_CONTACT_FILE_TYPE_NOT_SUPPORTED","File type is not supported."],validateSize:!0,allowedFileSizeKB:Ne.UR.releaseFiles.maxSizeKB,fileSizeMessagei18Params:["errorCodes:FILE_SIZE",{size:Ne.UR.releaseFiles.maxSizeKB/1e3+"MB"}],validateSpecialCharactersInName:!0,blacklistedSpecialCharactersInName:Ne.UR.releaseFiles.blacklistedSpecCharsPattern}});return(0,m.useEffect)(()=>{r(g?(0,A.Nb)(L.mH.reg_filing_upload_document):(0,A.YE)(L.mH.reg_filing_upload_document))},[g,r]),(0,E.jsxs)(c,{ref:s,...t?{disabled:!0}:{},...d?{}:{invalid:!0},children:[(0,E.jsx)("div",{children:(0,E.jsx)(be,{md:9,children:(0,E.jsx)(fe,{children:a("regFiling:uploadRequiredDocuments","Upload Required Documents")})})}),(0,E.jsx)("div",{children:(0,E.jsxs)(be,{md:12,children:[(0,E.jsx)(Ze.A,{isBtnDisabled:x>=Ne.UR.emailOrFaxFiles.fileLimit,onUploadBtnClick:()=>{var a;return null===e||void 0===e||null===(a=e.current)||void 0===a?void 0:a.click()},isZeroFileUploadValidation:!1,className:"drag-drop-zone omc-mt-2",onAttach:b,ref:e,secondLineText:a("createRelease:releaseFileTypeSupported","Supported file types: .doc, .docx, .txt, .pdf, .xls, .xlsx, .csv, .pptx, .ppt, .html, .htm"),uploadBtnText:a("createRelease:uploadDocument","Upload Document")}),0!==x?(0,E.jsx)("div",{className:"file-list-wrapper omc-w-full omc-border omc-border-solid omc-border-border-dashed omc-rounded-[3px] omc-mt-4",children:(0,E.jsx)(Ye,{fileStates:h,infoStatus:v,errorStatus:y,warningStatus:N,fileLimit:Ne.UR.releaseFiles.fileLimit,onRemove:f,hideLanguageColumn:!0})}):null]})})]})},aa=n.Ay.h2.attrs({className:"body-16 bold"})``,ra=n.Ay.div` 241 margin-top: 10px; 242 background-color: var(--gray-10-color); 243 padding: 12px; 244 245 [type='radio']:checked + label:before { 246 border: 2px solid var(--primary-color-blue); 247 } 248 [type='radio']:not(:checked) + label:before { 249 border: 2px solid var(--gray-80-color); 250 } 251 [type='radio']:checked + label::after { 252 background-color: var(--primary-color-blue); 253 } 254 .form-check-label { 255 &:hover { 256 &::before { 257 border: 2px solid var(--primary-color-hover) !important; 258 } 259 &::after { 260 background: var(--primary-color-hover) !important; 261 } 262 } 263 } 264 265 > div { 266 &:first-child { 267 width: 20%; 268 } 269 &:last-child { 270 width: 30%; 271 } 272 } 273`,ia=n.Ay.label.attrs({className:"body-14"})``,la=n.Ay.div` 274 margin-left: 24px; 275 margin-bottom: 12px; 276`;var ta=r(74047);const{FILING_DATE:oa}=T.Q,na=()=>{const[e]=(0,o.B)(),a=(0,S.jL)(),r=(0,S.GV)(k.tE),i=(0,S.GV)(D.j$),l=(0,S.GV)(D.wQ),t=(0,S.GV)(D.A1),{filingType:n}=(0,S.GV)(D.ic),{headLineofRelease:s,scheduledRelease:d}=(0,S.GV)(D.A5),{addNotification:u}=(0,G.y)(ta.V2),p=(0,de.P0)(L.os.filingDate),[g]=(0,de.G2)([oa],!1),[h,x]=(0,m.useState)(n||""),[b,f]=(0,m.useState)(t),[v]=(0,S.XO)(_.Ee),y=e=>x(e.target.value),N=e=>x(e.target.value),j=a=>{u({type:"error",title:e("general:errorTitle"),subtitle:(0,P.oL)(e("general:errorFallbackHeading"),a),dism
276issTime:L.wN})};return(0,S.bN)(()=>{h&&i&&i>0&&(a((0,A.Nb)(L.mH.reg_filing_details_filingdate)),v({variables:{accountNumber:r,draftOrderId:i,headLineofRelease:s,scheduledRelease:d,filingType:null!==h&&void 0!==h?h:null,filingDate:"as soon as possible"===(null===h||void 0===h?void 0:h.toLowerCase())?null:b}}).then(e=>{const r=(0,P.cx)(e);r?j(r):a((0,A.m$)({path:"",value:(0,O.get)(e,"data.saveRegFilingDetails",{})}))}).catch(e=>{const a=(0,P.cx)(e);a&&j(a)}).finally(()=>a((0,A.YE)(L.mH.reg_filing_details_filingdate))))},[i,r,h,b]),(0,E.jsxs)(c,{ref:p,...l?{disabled:!0}:{},...g?{}:{invalid:!0},children:[(0,E.jsx)(aa,{children:e("regFiling:filingDate","Filing Date")}),(0,E.jsxs)(ra,{children:[(0,E.jsxs)("div",{children:[(0,E.jsx)("input",{type:"radio",name:"filingDate",id:"filingDate1",value:"Schedule",onChange:y,onFocus:N,...null!==h&&void 0!==h&&h.toLowerCase().includes("schedule")?{checked:!0}:{}}),(0,E.jsx)(ia,{className:"form-check-label distribution-label",htmlFor:"filingDate1",children:e("regFiling:schedule","Schedule")})]}),null!==h&&void 0!==h&&h.toLowerCase().includes("schedule")?(0,E.jsx)(la,{children:(0,E.jsx)(F.A,{selectedDate:t,onChange:e=>f(e),disablePreDate:!0,updateOutDatedTime:!Boolean(t)},"filingDate")}):null,(0,E.jsxs)("div",{children:[(0,E.jsx)("input",{type:"radio",name:"filingDate",id:"filingDate2",value:"As soon as possible",onChange:y,onFocus:N,...null!==h&&void 0!==h&&h.toLowerCase().includes("as soon as possible")?{checked:!0}:{}}),(0,E.jsx)(ia,{className:"form-check-label distribution-label",htmlFor:"filingDate2",children:e("regFiling:asSoonAsPossible","As soon as possible")})]})]})]})};var sa=r(50310),da=r.n(sa);r(30776);const ca=n.Ay.h2.attrs({className:"body-16 bold"})``,ma=n.Ay.div` 277 margin-top: 10px; 278 background-color: var(--gray-10-color); 279 border-radius: 8px; 280 padding: 16px; 281`,ua=(0,n.Ay)(i.A)` 282 margin-top: 16px; 283 &:first-child { 284 margin-top: 0; 285 } 286`,pa=(0,n.Ay)(t.A)` 287 display: flex; 288 flex-direction: column; 289`,ga=n.Ay.label.attrs({className:"body-14"})``,ha=n.Ay.label.attrs({className:"body-14"})` 290 color: var(--danger-color) !important; 291`,xa=(0,n.Ay)(C.pd)` 292 &[data-invalid] { 293 border: 1px solid red; 294 box-shadow: 0 0 4px red; 295 } 296`,ba=n.Ay.textarea` 297 display: flex; 298 height: ${e=>e.h?`${e.h}px`:"100%"}; 299 color: var(--gray-90-color); 300 border: 1px solid var(--gray-60-color); 301 border-radius: 4px; 302 resize: none; 303 padding: 8px; 304 305 &:focus { 306 border-color: var(--primary-color); 307 box-shadow: 0 0 4px var(--primary-color); 308 outline: 0 none; 309 } 310 311 &[data-invalid] { 312 border: 1px solid red; 313 box-shadow: 0 0 4px red; 314 } 315`,fa=(0,n.Ay)(da())` 316 display: flex; 317 flex: 1; 318 319 input { 320 flex: 1; 321 height: 40px !important; 322 width: auto !important; 323 border: 1px solid var(--gray-60-color) !important; 324 border-radius: 0px 4px 4px 0px; 325 326 &:focus { 327 border-color: var(--primary-blue-hover) !important; 328 box-shadow: 0 0 4px var(--primary-blue-hover); 329 outline: 0 none; 330 } 331 332 &[data-invalid] { 333 border: 1px solid red; 334 box-shadow: 0 0 4px red; 335 } 336 } 337 .flag-dropdown { 338 width: 42px; 339 border: 1px solid var(--gray-60-color) !important; 340 border-radius: 4px 0px 0px 4px; 341 height: ${e=>{let{theme:a}=e;return 40/a.defaultRem+"rem"}}; 342 } 343 &:focus-within { 344 .flag-dropdown { 345 border-color: var(--primary-blue-hover) !important; 346 } 347 } 348 &.data-invalid { 349 input:not(.search-box) { 350 border-color: var(--danger-color) !important; 351 box-shadow: 0 0 4px var(--danger-color); 352 &::placeholder { 353 color: var(--danger-color) !important; 354 } 355 } 356 .flag-dropdown { 357 border-color: var(--danger-color) !important; 358 } 359 } 360 .search { 361 padding: 0 !important; 362 border-bottom: 1px solid var(--gray-60-color); 363 .search-emoji { 364 position: absolute; 365 top: 6px; 366 left: 5px; 367 } 368 .search-box { 369 padding-left: 30px !important; 370 border: none !important; 371 margin-left: 0 !important; 372 width: calc(100% - 0px) !important; 373 height: 30px !important; 374 375 &:focus { 376 box-shadow: none; 377 } 378 } 379 } 380`,va=n.Ay.p.attrs({className:"d-flex justify-content-end body-14 m-0 mt-2 d-none"})``,ya={firstName:"",lastName:"",phone:"",mobile:"",specialInstruction:""},Na={firstName:!1,lastName:!1,phone:!1,mobile:!1,specialInstruction:!1},{CONTACTINTO_FIRSTNAME:ja,CONTACTINTO_LASTNAME:Ia,CONTACTINTO_PHONE:Fa,CONTACTINTO_MOBILE:Ca}=T.Q,Sa=()=>{var e;const{formValidationState:a,setFormValidationState:r}=(0,m.useContext)(ie.G),[i]=(0,o.B)(),l=(0,S.jL)(),{firstName:t,lastName:n,phone:s}=(0,S.GV)(Me.Qn),{firstName:d,lastName:u,phoneNumber:p,afterHoursPhoneNumber:g}=(0,S.GV)(D.kp),h=(0,S.GV)(D.hq),x=(0,S.GV)(D.wQ),b=(0,S.GV)(D.j$),f=(0,S.GV)(k.tE),v=(0,S.GV)(k.Mv),y=(0,S.GV)(D.KJ),{addNotification:N,removeNotification:j}=(0,G.y)(U.V),I=(0,de.P0)(L.os.filingContact);(0,m.useEffect)(()=>{var e;const a=null===(e=I.current)||void 0===e?void 0:e.querySelectorAll('.flag-dropdown .selected-flag[role="button"]');
380null===a||void 0===a||a.forEach(e=>{e.getAttribute("aria-label")||e.setAttribute("aria-label",i("regFiling:selectCountryCode","Select country code"))})},[i]);const{filteredPrimaryPhone:F}=(0,m.useMemo)(()=>({filteredPrimaryPhone:["1","2"].includes(v)&&s&&null!==s&&void 0!==s&&s.replace(/^1.*$/g,"")&&null!==s&&void 0!==s&&s.replace(/^\+.*$/g,"")?`1${s}`:s}),[v,s]),C=(0,m.useMemo)(()=>!b||b&&b<0,[b]),[T,w]=(0,m.useState)({...ya,firstName:d||t,lastName:u||n,phone:p||F,mobile:g,specialInstruction:h}),[R,V]=(0,m.useState)({...Na,firstName:C,lastName:C,phone:C,mobile:C,specialInstruction:C}),[M,H]=(0,m.useState)(!1),[$,B,K,z]=(0,de.G2)([ja,Ia,Fa,Ca],!1),{formValid:W,isInpFirstNameValid:Q,isInpLastNameValid:Y,isInpPhoneValid:Z,isInpMobileValid:X,isFirstNameNotContainSplChar:J,isLastNameNotContainSplChar:ee}=(0,m.useMemo)(()=>{var e,i,l,t,o,n,s,d,c,m,u,p,g,h;const x={isInpFirstNameValid:!R.firstName||!(null===(e=T.firstName)||void 0===e||!e.trim())&&(null===(i=T.firstName)||void 0===i?void 0:i.trim().length)>0,isFirstNameNotContainSplChar:!(R.firstName&&null!==(l=T.firstName)&&void 0!==l&&l.trim()&&(null===(t=T.firstName)||void 0===t?void 0:t.trim().length)>0)||!/[<>]/.test(T.firstName),isInpLastNameValid:!R.lastName||!(null===(o=T.lastName)||void 0===o||!o.trim())&&(null===(n=T.lastName)||void 0===n?void 0:n.trim().length)>0,isLastNameNotContainSplChar:!(R.lastName&&null!==(s=T.lastName)&&void 0!==s&&s.trim()&&(null===(d=T.lastName)||void 0===d?void 0:d.trim().length)>0)||!/[<>]/.test(T.lastName),isInpPhoneValid:!R.phone||!(null===(c=T.phone)||void 0===c||!c.trim())&&(null===(m=T.phone)||void 0===m||null===(u=m.trim())||void 0===u?void 0:u.length)>=L.Vs,isInpMobileValid:!R.mobile||null===(p=T.mobile)||void 0===p||!p.trim()||(null===(g=T.mobile)||void 0===g||null===(h=g.trim())||void 0===h?void 0:h.length)>=L.Vs};return r({...a,...x}),{...x,formValid:Object.values(x).every(e=>e)}},[T,R]),[ae]=(0,S.XO)(_.Hz),re=(e,a)=>{w(r=>({...r,[e]:a})),V(a=>({...a,[e]:!0}))},le=e=>{N({type:"error",title:i("general:errorTitle"),subtitle:(0,P.oL)(i("general:errorFallbackHeading"),e),dismissTime:L.wN})},te=(0,m.useCallback)(e=>{const a=e.currentTarget.value.trim();a!==T.specialInstruction&&(w(e=>({...e,specialInstruction:a})),V(e=>({...e,specialInstruction:!0})))},[T.specialInstruction]);return(0,m.useEffect)(()=>{y&&l((0,A.m$)({path:"",value:{contactInfo:{firstName:T.firstName,lastName:T.lastName,phoneNumber:T.phone,afterHoursPhoneNumber:T.mobile},specialInstruction:T.specialInstruction}}))},[y]),(0,S.bN)(()=>{Object.values(R).some(e=>e)&&W&&y&&b&&b>0&&(l((0,A.Nb)(L.mH.reg_filing_contact_special_instruction)),ae({variables:{accountNumber:f,draftOrderId:b,firstName:T.firstName,lastName:T.lastName,phoneNumber:T.phone,afterHoursPhoneNumber:T.mobile,specialInstruction:T.specialInstruction}}).then(e=>{const a=(0,P.cx)(e);a?le(a):l((0,A.m$)({path:"",value:(0,O.get)(e,"data.saveRegFilingContactSpecialInstruction",{})}))}).catch(e=>{const a=(0,P.cx)(e);a&&le(a)}).finally(()=>{l((0,A.YE)(L.mH.reg_filing_contact_special_instruction)),V(Na)}))},[W,b,f,T,R,y]),(0,m.useEffect)(()=>{M||w(e=>({...e,specialInstruction:h||""}))},[h,M]),(0,E.jsxs)(c,{ref:I,...x?{disabled:!0}:{},children:[(0,E.jsx)(ca,{children:i("regFiling:contactInformation","Contact Information")}),(0,E.jsxs)(ma,{children:[(0,E.jsxs)(ua,{children:[(0,E.jsxs)(pa,{md:6,children:[(0,E.jsx)(ga,{htmlFor:"reg-contact-first-name",children:i("regFiling:contactFirstName","First name*")}),(0,E.jsx)(xa,{id:"reg-contact-first-name",tabIndex:x?-1:0,value:T.firstName,onChange:e=>re("firstName",e.currentTarget.value),maxLength:L.Zd,"aria-describedby":$&&Q?J?void 0:"reg-contact-first-name-char-error":"reg-contact-first-name-error","aria-invalid":!$||!Q||!J,...$&&Q&&J?{}:{"data-invalid":!0}}),$&&Q?null:(0,E.jsx)(ha,{id:"reg-contact-first-name-error",htmlFor:"reg-contact-first-name",children:i("regFilingValidations:contactNameRequiredMessage","Please enter first name.")}),J?null:(0,E.jsx)(ha,{id:"reg-contact-first-name-char-error",htmlFor:"reg-contact-first-name",children:i("createRelease:specialCharErrorMessage","Please remove special characters including: < and >")})]}),(0,E.jsxs)(pa,{md:6,children:[(0,E.jsx)(ga,{htmlFor:"reg-contact-last-name",children:i("regFiling:contactLastName","Last name*")}),(0,E.jsx)(xa,{id:"reg-contact-last-name",tabIndex:x?-1:0,value:T.lastName,onChange:e=>re("lastName",e.currentTarget.value),maxLength:L.Zd,"aria-describedby":B&&Y?ee?void 0:"reg-contact-last-name-char-error":"reg-contact-last-name-error","aria-invalid":!B||!Y||!ee,...B&&Y&&ee?{}:{"data-invalid":!0}}),B&&Y?null:(0,E.jsx)(ha,{id:"reg-contact-last-name-error",htmlFor:"reg-contact-last-name",children:i("regFilingValidations:contactNameRequiredMessage","Please enter last name.")}),ee?null:(0,E.jsx)(ha,{id:"reg-contact-last-name-char-error",htmlFor:"reg-contact-last-name",children:i("createRelease:specialCharErrorMessage","Please remove special characters including: < and >")})]})]}),(0,E.jsxs)(ua,{children:[(0,E.jsxs)(pa,{md:6,children:[(0,E.jsx)(ga,{htmlFor:"reg-contact-phone",children:i("regFiling:contactPhoneNumber","Contact phone number*")}),(0,E.jsx)(fa,{...x?{disableDropdown:!0,disabled:!0}:{},inputProps:{id:"reg-contact-phone","aria-label":i("regFiling:contactPhoneNumber","Contact phone number"),"aria-describedby":K&&Z?void 0:"reg-contact-phone-error","aria-invalid":!K||!Z},placeholder:"123-456-7890",value:T.phone,onChange:e=>re("phone",e),containerClass:(0,q.A)(K&&Z?"":"data-invalid")}),K&&Z?null:(0,E.jsx)(ha,{id:"reg-contact-phone-error",role:"alert",children:i("regFilingValidations:phoneNumberValidationMessage","Please provide valid phone number")})]}),(0,E.jsxs)(pa,{md:6,className:"mr-0",children:[(0,E.jsx)(ga,{htmlFor:"reg-contact-mobile",children:i("regFiling:mobileNumber","Mobile Number")}),(0,E.jsx)(fa,{...x?{disableDropdown:!0,disabled:!0}:{},inputProps:{id:"reg-contact-mobile","aria-label":i("regFiling:mobileNumber","Mobile Number"),"aria-describedby":z&&X?void 0:"reg-contact-mobile-error","aria-invalid":!z||!X},placeholder:"123-456-7890",value:T.mobile,onChange:e=>re("mobile",e),containerClass:(0,q.A)(z&&X?"":"data-invalid")}),z&&X?null:(0,E.jsx)(ha,{id:"reg-contact-mobile-error",role:"alert",children:i("regFilingValidations:mobileNumberValidationMessage","Please provide valid mobile number")})]})]}),(0,E.jsx)(ua,{children:(0,E.jsxs)(pa,{md:12,children:[(0,E.jsx)(ga,{htmlFor:"reg-contact-special-instructions",children:i("regFiling:specialInstructions","Special Instructions")}),(0,E.jsx)(ba,{id:"reg-contact-special-instructions",tabIndex:x?-1:0,h:72,onFocus:()=>H(e=>!e),onBlur:te,value:T.specialInstruction,onChange:e=>re("specialInstruction",e.currentTarget.value),maxLength:L.P5}
380),(0,E.jsx)(va,{children:i("regFiling:specilInstructionsCountInfo",{count:(null===(e=T.specialInstruction)||void 0===e?void 0:e.length)||0,limit:L.P5})}),(0,E.jsxs)("div",{className:"omc-flex omc-justify-between omc-pt-1.5 omc-text-sm",children:[(0,E.jsx)("span",{children:i("createRelease:specialInstructionMaxChar",{minLength:1,maxLength:L.P5})}),(0,E.jsx)("span",{children:i("createRelease:pressReleaseHighlightEnteredCharacter",{count:(T.specialInstruction||"").length})})]})]})})]})]})},Aa=()=>{const[e]=(0,o.B)();return(0,E.jsx)(i.A,{children:(0,E.jsx)(l.A,{children:(0,E.jsxs)(t.A,{md:12,className:"omc-p-3 omc-mb-[18px]",children:[(0,E.jsx)(s,{children:e("regFiling:uploadFinancialCompTitle","Upload your Financial Compliance Documents")}),(0,E.jsxs)(d,{children:[(0,E.jsx)(ce,{}),(0,E.jsx)(xe,{}),(0,E.jsx)(ea,{}),(0,E.jsx)(na,{}),(0,E.jsx)(Sa,{})]})]})})})}},4978(e){e.exports=function(e,a,r){var i=-1,l=e.length;a<0&&(a=-a>l?0:l+a),(r=r>l?l:r)<0&&(r+=l),l=a>r?0:r-a>>>0,a>>>=0;for(var t=Array(l);++i<l;)t[i]=e[i+a];return t}},99042(e,a,r){var i=r(44206),l=r(97840),t=r(97059),o=r(24567);e.exports=function(e,a,r){if(!o(r))return!1;var n=typeof a;return!!("number"==n?l(r)&&t(a,r.length):"string"==n&&a in r)&&i(r[a],e)}},48251(e,a,r){var i=r(4978),l=r(99042),t=r(25171),o=Math.ceil,n=Math.max;e.exports=function(e,a,r){a=(r?l(e,a,r):void 0===a)?1:n(t(a),0);var s=null==e?0:e.length;if(!s||a<1)return[];for(var d=0,c=0,m=Array(o(s/a));d<s;)m[c++]=i(e,d,d+=a);return m}},45358(e,a,r){"use strict";var i=r(48738),l=r.n(i),t=r(9950),o=r(44089),n=r(44414);const s=t.forwardRef((e,a)=>{let{bsPrefix:r,fluid:i=!1,as:t="div",className:s,...d}=e;const c=(0,o.oU)(r,"container"),m="string"===typeof i?`-${i}`:"-fluid";return(0,n.jsx)(t,{ref:a,...d,className:l()(s,i?`${c}${m}`:c)})});s.displayName="Container";const d=s;r.d(a,["A",0,d])}}]);
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.