PageSourceSearch

https://app.prnewswire.com/static/js/5869.9cd58759.chunk.js

js prnewswire.com collected 2026-09-24 07:35:15 UTC 13,180 bytes, 84 lines download raw bytes

1"use strict";(globalThis.webpackChunkomc_ui_2_0||=[]).push([[5869],{94650(e,t,o){o.d(t,{A:()=>y});var r=o(71316),a=o(74047),l=o(42087),n=o(5418),s=o(92526),i=o(38843),c=o(56943),m=o(59051),d=o.n(m),u=o(9950),h=o(48661),p=o(44414);const x=e=>{var t,o;let{schTimeStr:i}=e;const[c]=(0,h.B)("createRelease"),m=(0,l.GV)(s.CQ),{userPreference:{is12hrFormat:x}}=(0,n.y)(a.BR),f=(null===Intl||void 0===Intl||null===(t=Intl.DateTimeFormat)||void 0===t||null===(o=t.call(Intl).resolvedOptions())||void 0===o?void 0:o.timeZone)||d().tz.guess(),v=(0,u.useMemo)(()=>i?d().tz(i,r.Nh,m):null,[i,m]),g=(0,u.useMemo)(()=>v?v.clone().tz(f):null,[v,f]),b=(0,u.useMemo)(()=>!(!v||!g)&&v.utcOffset()!==g.utcOffset(),[v,g]),w=(0,u.useMemo)(()=>{if(!g)return"";const e=x?"LT (z)":"HH:mm (z)";return g.format(e)},[g,x]);return b?(0,p.jsxs)("div",{"data-testid":"local-time",className:"local-time-wrapper body-text-small px-2 d-inline-block line-height-32 mt-1",children:[c("yourLocalTime","In your local time."),(0,p.jsxs)("b",{children:[" ",w," "]})]}):null},f=(0,u.memo)(x);var v=o(72004),g=o(25045),b=o.n(g),w=o(52298);const y=e=>{var t;let{schTimeStr:o,onTimeChange:m,isValidDateTimeSelected:d,localDateTimeStr:x}=e;const{t:g}=(0,h.B)(),y=(0,l.GV)(i.iz),j=(0,l.GV)(s.CQ),S=(0,l.GV)(s.Mv),A=(0,l.GV)(s.BD),E=(0,l.GV)(i.fd),{userPreference:{is12hrFormat:T}}=(0,n.y)(a.BR),D=E?b().tz(j).add(3,"hours"):b().tz(j).add(30,"minute"),H=null!==y&&void 0!==y&&null!==(t=y.scheduleDateTimeUTC)&&void 0!==t&&t.length?(0,c.mn)(y.scheduleDateTimeUTC,j):D.format(r.Nh),[C,N]=(0,u.useState)(H),_=o?b()(o,T?"hh:mm A":"HH:mm"):b()((0,c.rY)(H,"HH:mm"),"HH:mm"),[k,L]=(0,u.useState)(_.format(T?"hh":"HH")),[I,M]=(0,u.useState)(_.format("mm")),[V,$]=(0,u.useState)(T?_.format("A"):"");(0,u.useEffect)(()=>{if(o){const e=b()(o,T?"hh:mm A":"HH:mm");L(e.format(T?"hh":"HH")),M(e.format("mm")),$(T?e.format("A"):"")}},[o,T]);const R=e=>{let t,{hour:o=k,minute:r=I,ampm:a=V}=e;L(o),M(r),$(a),t=T?b()(`${o}:${r} ${a}`,"hh:mm A").format("HH:mm"):`${o}:${r}`;const l=T?b()(t,"HH:mm").format("hh:mm A"):t,n=(0,c.Ji)(C,l);N(n),m(l)};return(0,p.jsxs)("div",{className:"omc-mt-1.5","data-testid":"timePicker",children:[(0,p.jsx)("label",{htmlFor:"timePickerInput","data-testid":"timePickerLabel",className:(0,v.A)("omc-block !omc-leading-[20px] !omc-font-medium !omc-body-14 mb-1",d?"":"!omc-text-red-500"),children:g("createRelease:time","Time")}),(0,p.jsxs)("div",{"data-testid":"timePickerInput",className:(0,v.A)("omc-relative omc-flex flex-row omc-items-center space-x-2 omc-gap-2",d?"":"omc-border omc-border-solid !omc-border-red-500 omc-p-1.5 !omc-rounded-md !omc-shadow-[0_0_4px_1px_rgba(239,68,68,0.5)] "),children:[(0,p.jsx)(w.C,{name:"hour","data-testid":"hour-dropdown",value:k,size:"sm",onChange:e=>R({hour:e}),showSelectedCheckIcon:!0,items:Array.from({length:T?12:24},(e,t)=>{const o=T?String((t+1)%12||12).padStart(2,"0"):String(t).padStart(2,"0");return{label:o,value:o}})}),(0,p.jsx)(w.C,{name:"minute","data-testid":"minute-dropdown",value:I,size:"sm",onChange:e=>R({minute:e}),showSelectedCheckIcon:!0,items:Array.from({length:60},(e,t)=>{const o=String(t).padStart(2,"0");return{label:o,value:o}})}),T&&(0,p.jsx)(w.C,{name:"ampm","data-testid":"ampm-dropdown",value:V,size:"sm",showSelectedCheckIcon:!0,onChange:e=>R({ampm:e}),items:[{label:"AM",value:"AM"},{label:"PM",value:"PM"}]}),(0,p.jsx)("span",{className:"omc-text-sm omc-text-gray-600 omc-body-14 !omc-font-medium omc-leading-[20px]","data-testid":"timezone",children:g(`dateTime:${(0,c.ys)(S,A)}`)})]}),(0,p.jsx)("span",{children:(0,p.jsx)(f,{schTimeStr:x||C})})]})}},52298(e,t,o){o.d(t,{C:()=>s});var r=o(9950),a=o(35943);var l=o(44414);const n=e=>(0,l.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{d:"M9.00016 16.1701L4.83016 12.0001L3.41016 13.4101L9.00016 19.0001L21.0002 7.00009L19.5902 5.59009L9.00016 16.1701Z"})}),s=e=>{var t,o;let{placeholder:s="Select",value:i="",name:c="",label:m="",desc:d="",items:u=[],onChange:h,issues:p,validate:x,size:f,showSelectedCheckIcon:v}=e;const g=(0,r.useRef)(null),b=(0,r.useRef)(null),[w,y]=(0,r.useState)(!1),[j,S]=(0,r.useState)([]),A="sm"===f?"omc-w-16":"lg"===f?"omc-w-32":"omc-w-full",E=(0,r.useMemo)(()=>new Event("input",{bubbles:!0,cancelable:!0}),[]),T=e=>{"Escape"===e.key?y(!1):"ArrowDown"===e.key?(e.preventDefault(),D(e.currentTarget)):"ArrowUp"===e.key&&(e.preventDefault(),H(e.currentTarget))},D=e=>{const t=Array.from(document.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not
1([tabindex="-1"])')).filter(e=>!e.hasAttribute("disabled")),o=t.indexOf(e);t[(o+1)%t.length].focus()},H=e=>{const t=Array.from(document.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(e=>!e.hasAttribute("disabled")),o=t.indexOf(e);t[(o-1+t.length)%t.length].focus()},C=e=>()=>{if(h(e),void 0!==x){const t=x(e);S(t)}null!==g.current&&(g.current.value=e,g.current.dispatchEvent(E),y(!1))};return(e=>{let{ref:t,callback:o}=e;(0,r.useEffect)(()=>{const e=e=>{null===t||void 0===t||!t.current||null!==t&&void 0!==t&&t.current.contains(e.target)||o()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t,o])})({ref:b,callback:()=>y(!1)}),(0,r.useEffect)(()=>{null!==p&&void 0!==p&&p.length&&S(p)},[p]),(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{ref:b,className:"omc-flex omc-flex-col","data-testid":"dropdown",children:[m&&(0,l.jsx)(l.Fragment,{children:m}),d&&(0,l.jsx)(l.Fragment,{children:d}),(0,l.jsxs)("div",{className:"omc-relative",children:[(0,l.jsx)("input",{ref:g,"data-testid":"dropdown-input",readOnly:!0,type:"text",onKeyDown:e=>{"Escape"===e.key?y(!1):"ArrowDown"===e.key&&(e.preventDefault(),D(e.currentTarget))},className:`omc-text-lg ${A} omc-h-[40px]  omc-rounded omc-border omc-border-solid omc-border-gray-60 omc-p-2 hover:omc-cursor-pointer omc-pr-8 ellipsify-1\n          ${j&&j.length?"omc-border-notify-danger":"omc-border-gray-60 "}                    \n          ${j&&j.length?"!omc-placeholder-notify-danger":""}    \n          `,name:c,value:null!==(t=null===(o=u.find(e=>e.value===i))||void 0===o?void 0:o.label)&&void 0!==t?t:"",placeholder:s,onFocus:()=>{null!==g.current&&y(!0)},autoComplete:"off"}),(0,l.jsx)("div",{className:"omc-pointer-events-none omc-absolute omc-inset-y-0 omc-right-0 omc-flex omc-items-center omc-pr-2",children:(0,l.jsx)(a.m,{})}),w&&(0,l.jsx)("ul",{className:"omc-absolute omc-z-10 omc-mt-1 omc-max-h-60 omc-w-full omc-list-none omc-overflow-x-auto omc-rounded-md omc-border omc-border-solid omc-border-gray-20 omc-bg-white omc-p-0 omc-shadow-xl",children:u.map((e,t)=>{var o;return(0,l.jsxs)("li",{className:"omc-m-[1px] omc-border-none omc-outline-none focus-visible:omc-outline-none omc-flex flex-row omc-items-center",onClick:C(e.value),children:[v&&e.value===i&&(0,l.jsx)("span",{className:"","aria-hidden":"true",children:(0,l.jsx)(n,{})}),(0,l.jsx)("button",{onKeyDown:T,className:"omc-w-full omc-rounded-md omc-border-none omc-bg-white omc-p-2 omc-text-sm omc-text-left hover:omc-bg-gray-20",children:null!==(o=e.markup)&&void 0!==o?o:e.label})]},t)})})]}),(0,l.jsx)("div",{children:null===j||void 0===j?void 0:j.map((e,t)=>(0,l.jsx)("div",{className:"omc-pt-2 omc-text-sm omc-text-notify-danger",children:e},t))})]})})}},45869(e,t,o){o.d(t,{A:()=>k});var r=o(9950),a=o(72348),l=o.n(a),n=o(48661),s=o(25045),i=o.n(s),c=o(14491),m=o(35657),d=o(86781),u=o(68459);const h=(0,c.Ay)(m.In)``,p=((0,c.Ay)(m.pd)``,(0,c.Ay)(d.A)``),x=(0,c.Ay)(u.A)`
2  display: flex;
3  flex-direction: column;
4`,f=c.Ay.label.attrs({className:"body-14"})``,v=c.Ay.div`
5  position: relative;
6`,g=(c.Ay.div`
7  position: relative;
8  .time-zone-text {
9    position: absolute;
10    top: 8.4px;
11    right: 3px;
12  }
13
14  .clock-icon {
15    transform: translate(-218px, 8px);
16  }
17
18  input {
19    height: 40px;
20    border: 1px solid var(--gray-60-color);
21    border-radius: 4px;
22    font-weight: 400;
23    font-size: 14px;
24    line-height: 24px;
25    color: var(--gray-90-color);
26    padding-left: 35px;
27  }
28
29  svg.schedule_time_clock {
30    height: 24px;
31    width: 24px;
32    fill: var(--gray-80-color);
33    margin-bottom: 0px !important;
34  }
35
36  .sc-invalid {
37    border: 1px solid var(--danger-color) !important;
38    box-shadow: 0 0 4px var(--danger-color) !important;
39    border-radius: 4px;
40
41    svg {
42      fill: var(--danger-color) !important;
43    }
44    p {
45      color: var(--danger-color) !important;
46    }
47    input,
48    label {
49      color: var(--danger-color) !important;
50    }
51    input {
52      border: none !important;
53    }
54    .form-check-label {
55      color: var(--danger-color) !important;
56      &::before {
57        border: 2px solid var(--danger-color) !important;
58      }
59      &::after {
60        border: 2px solid var(--danger-color) !important;
61        background-color: var(--danger-color) !important;
62      }
63    }
64
65    button,
66    .time-picker-container {
67      border: 1px solid var(--danger-color) !important;
68      box-shadow: 0 0 4px var(--danger-color) !important;
69    }
70  }
71`,c.Ay.label.attrs({className:"body-14"})`
72  position: absolute;
73  top: ${e=>{let{theme:t}=e;return 9/t.defaultRem+"rem"}};
74  right: ${e=>{let{isfrench:t}=e;return t?"calc(100% - 90px)":"calc(100% - 115px)"}};
75`,c.Ay.label`
76  &.eorime-down-arrow {
77    position: absolute;
78    right: calc(2px);
79    top: 9.6px;
80    svg {
81      fill: var(--gray-80-color);
82    }
83  }
84`);var b=o(71316),w=o(42087),y=o(92526),j=o(56943),S=o(24214),A=o(64133),E=o(95500),T=o(27788),D=o(94650),H=o(5418),C=o(74047),N=o(44414);const _=e=>{let{selectedDate:t,onChange:o,disablePreDate:a=!1,updateOutDatedTime:s=!1}=e;const c=`eodate-${(new Date).getTime()}`,m=(0,w.jL)(),[d,u]=(0,n.B)(),_=(0,w.GV)(y.CQ),[k,L]=(0,r.useState)(null!==t&&void 0!==t&&t.length?(0,j.mn)(t,_):(0,j.O6)(_)),{userPreference:{is12hrFormat:I}}=(0,H.y)(C.BR),{filingType:M}=(0,w.GV)(T.ic),{startDateTimeStr:V,endDateTimeStr:$}=(0,S.Ol)(k),[R,z]=(0,S.G2)([...I?a?[A.Q.VALID_TIME_SELECTED_12H]:[A.Q.PREV_PR_VALID_TIME_SELECTED_12H]:a?[A.Q.VALID_TIME_SELECTED_24H]:[A.Q.PREV_PR_VALID_TIME_SELECTED_24H],...a?[A.Q.SELECTED_TIME_ELIGIBLE_FOR_RELEASE]:[]],!0),[F,P]=(0,r.useState)((0,j.rY)(k,I?"12H":"24H")),O=(0,S.o0)(M||"",!a,(0,j.po)(k),F,V),B=(0,r.useMemo)(()=>!R||!!a&&!z,[R,z,a]),G=(0,r.useMemo)(()=>(0,j.Ji)((0,j.po)(k),F),[k,F]);return(0,r.useEffect)(()=>{if(k){const e=(0,j.HB)(k,_);o(e)}},[k]),(0,w.bN)(()=>{P(i()(G).format((0,j.S$)(I?"12H":"24H")))},[u.language,I]),(0,r.useEffect)(()=>{if(R&&s){const e=i()(V,b.Nh).set({seconds:0});i()(k,b.Nh).set({seconds:0}).isSameOrAfter(e)||(console.info("Schedule updated due to outdation"),L(V),P((0,j.rY)(V,I?"12H":"24H")))}},[V,s]),(0,r.useEffect)(()=>()=>{m((0,E.Mw)())},[]),(0,w.bN)(()=>{F&&null!==O&&void 0!==O&&O.filingValidTimeSelected&&P((0,j.rY)(G,I?"12H":"24H"))},[F,null===O||void 0===O?void 0:O.filingValidTimeSelected],700),(0,N.jsxs)(p,{children:[(0,N.jsxs)(x,{xs:5,className:"schedule-date-picker !omc-mt-1",children:[(0,N.jsx)(f,{htmlFor:c,children:d("regFiling:date","Date*")}),(0,N.jsxs)(v,{children:[(0,N.jsx)(l(),{id:c,selected:new Date(k),onChange:e=>{const t=i()(e).format(b.Xj);L((0,j.Ji)((0,j.po)(t),F))},dateFormat:"fr-CA"===u.language?b.c5:b.jN,...a?{minDate:new Date(V),maxDate:new Date($)}:{},showIcon:!0,icon:(0,N.jsx)("label",{htmlFor:c,"aria-hidden":"true",className:"h-auto mb-0 px-2",children:(0,N.jsx)(h,{name:"calendar"})})}),(0,N.jsx)(g,{htmlFor:c,"aria-hidden":"true",className:"eorime-d
84own-arrow",children:(0,N.jsx)(h,{name:"arrow-drop-down"})})]})]}),(0,N.jsx)(x,{"data-testid":"schedule-time-picker",children:(0,N.jsx)(D.A,{schTimeStr:F,localDateTimeStr:k,onTimeChange:e=>{const t=(0,j.E5)(e),o=(0,j.Ji)((0,j.po)(k),t);if(P(t),i()(t,(0,j.RT)(I?"12H":"24H"),!0).isValid()){const e=i()(o),t=i()(V,b.Nh).set({seconds:0}),r=e.format(b.Nh);a?e.isSameOrAfter(t)&&L(r):L(r)}},isValidDateTimeSelected:!B})})]})},k=(0,r.memo)(_)},35943(e,t,o){var r=o(44414);o.d(t,["m",0,e=>{let{gradient:t,...o}=e;const a=Math.random().toString(16).slice(2);return t?(0,r.jsxs)("svg",{...o,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:`url(#${a})`,children:[(0,r.jsx)("path",{d:"M7 10L12 15L17 10H7Z"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:a,x1:"0",y1:"0.5",x2:"16.5",y2:"17",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#f9714a"}),(0,r.jsx)("stop",{offset:"0.600625",stopColor:"#b3507c"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#076286"})]})})]}):(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M7 10L12 15L17 10H7Z",fill:"#677078"})})}])},86781(e,t,o){var r=o(48738),a=o.n(r),l=o(9950),n=o(44089),s=o(44414);const i=l.forwardRef((e,t)=>{let{bsPrefix:o,className:r,as:l="div",...i}=e;const c=(0,n.oU)(o,"row"),m=(0,n.gy)(),d=(0,n.Jm)(),u=`${c}-cols`,h=[];return m.forEach(e=>{const t=i[e];let o;delete i[e],null!=t&&"object"===typeof t?({cols:o}=t):o=t;const r=e!==d?`-${e}`:"";null!=o&&h.push(`${u}${r}-${o}`)}),(0,s.jsx)(l,{ref:t,...i,className:a()(r,c,...h)})});i.displayName="Row";const c=i;o.d(t,["A",0,c])}}]);

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.