PageSourceSearch

https://app.prnewswire.com/static/js/5794.5e8d5374.chunk.js

js prnewswire.com collected 2026-09-24 07:35:26 UTC 12,937 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkomc_ui_2_0||=[]).push([[5794],{62968(e,t,o){o.d(t,{A:()=>w});var a=o(9950),n=o(48661),r=o(95491),i=o.n(r),s=o(95912),l=o(37740),d=o(32673);const c={Alabama:"Ala.",Alaska:"Alaska",Arizona:"Ariz.",Arkansas:"Ark.",California:"Calif.",Colorado:"Colo.",Connecticut:"Conn.",Delaware:"Del.",Florida:"Fla.",Georgia:"Ga.",Hawaii:"Hawaii",Idaho:"Idaho",Illinois:"Ill.",Indiana:"Ind.",Iowa:"Iowa",Kansas:"Kan.",Kentucky:"Ky.",Louisiana:"La.",Maine:"Maine",Maryland:"Md.",Massachusetts:"Mass.",Michigan:"Mich.",Minnesota:"Minn.",Mississippi:"Miss.",Missouri:"Mo.",Montana:"Mont.",Nebraska:"Neb.",Nevada:"Nev.","New Hampshire":"N.H.","New Jersey":"N.J.","New Mexico":"N.M.","New York":"N.Y.","North Carolina":"N.C.","North Dakota":"N.D.",Ohio:"Ohio",Oklahoma:"Okla.",Oregon:"Ore.",Pennsylvania:"Pa.","Rhode Island":"R.I.","South Carolina":"S.C.","South Dakota":"S.D.",Tennessee:"Tenn.",Texas:"Texas",Utah:"Utah",Vermont:"Vt.",Virginia:"Va.",Washington:"Wash.","West Virginia":"W.Va.",Wisconsin:"Wis.",Wyoming:"Wyo."},u=["ATLANTA","BALTIMORE","BOSTON","CHICAGO","CINCINNATI","CLEVELAND","DALLAS","DENVER","DETROIT","HONOLULU","HOUSTON","INDIANAPOLIS","LAS VEGAS","LOS ANGELES","MIAMI","MILWAUKEE","MINNEAPOLIS","NEW ORLEANS","NEW YORK","OKLAHOMA CITY","PHILADELPHIA","PHOENIX","PITTSBURGH","ST. LOUIS","SALT LAKE CITY","SAN ANTONIO","SAN DIEGO","SAN FRANCISCO","SEATTLE","WASHINGTON"],m=["AMSTERDAM","BAGHDAD","BAGDAD","BANGKOK","BEIJING","BEIRUT","BEYROUTH","BERLIN","BRUSSELS","BRUXELLES","CAIRO","LE CAIRE","DJIBOUTI","DUBLIN","GENEVA","GENEVE","GIBRALTAR","GUATEMALA CITY","GUATEMALA","HAVANA","LA HAVANE","HELSINKI","HONG KONG","ISLAMABAD","ISTANBUL","JERUSALEM","JOHANNESBURG","KUWAIT CITY","KOWEIT","LONDON","LONDRES","LUXEMBOURG","MACAU","MACAO","MADRID","MEXICO CITY","MEXICO","MILAN","MONACO","MOSCOW","MOSCOU","MUNICH","NEW DELHI","PANAMA CITY","PANAMA","PARIS","PRAGUE","RIO DE JANEIRO","ROME","SAN MARINO","SAINT-MARIN","SAO PAULO","SHANGHAI","SINGAPORE","SINGAPOUR","STOCKHOLM","SYDNEY","TOKYO","VATICAN CITY","CIT\xc9 DU VATICAN","VIENNA","VIENNE","ZURICH"],N=["MONTREAL","TORONTO","QUEBEC","QUEBEC CITY","QU\xc9BEC","QU\xc9BEC CITY","VILLE DE QU\xc9BEC"],A={Alberta:"AB","British Columbia":"BC","Colombie-\u200bBritannique":"BC",Manitoba:"MB","New Brunswick":"NB","Nouveau-Brunswick":"NB",Newfoundland:"NL",Labrador:"NL","Terre-Neuve-et-Labrador":"NL","Nova Scotia":"NS","Nouvelle-\xc9cosse":"NS","Northwest Territories":"NT","Territoires du Nord-Ouest":"NT",Nunavut:"NU",Ontario:"ON","Prince Edward Island":"PE","\xcele-du-Prince-\xc9do\u200buard":"PE",Quebec:"QC","Qu\xe9bec":"QC",Saskatchewan:"SK",Yukon:"YT"},p=[...u,...m,...N],v=new Set(u),I=new Set(m),C=new Set(N),g=new Set(["England","Scotland","Wales","Northern Ireland"]),h=new Set(["Bermuda","Corsica","Faeroe Islands","Faroe Islands","Greenland","Guadeloupe","Guam","Martinique","Puerto Rico","Sardinia","Sicily","Sikkim","Tibet"]);var E=o(72004),T=o(11961),L=o(42087),S=o(38843),O=o(92526),f=o(50659),b=o(43017),y=o(71316),M=o(45084),x=o(56943),D=o(44414);const w=e=>{let{placeholder:t="",value:o="",name:r="",label:u="",desc:m="",onChange:N,issues:w,validate:U,onFocus:R,onBlur:B,disabled:H=!1,className:k="",languageCode:G,isValid:P=!0,errorPlaceholder:V="",skipInternalMutation:K=!1}=e;const[$,W]=(0,n.B)(),Y=(0,L.jL)(),j=(0,L.GV)(S.XJ),F=(0,L.GV)(S.zs),_=(0,L.GV)(S.xc),J=(0,L.GV)(O.tE),Q=(0,L.GV)(O.Mv),X=(0,L.GV)(S.vF),[z]=(0,l.n)(T.On,{onCompleted:e=>{var t;null!==e&&void 0!==e&&null!==(t=e.updateHTMLDocument)&&void 0!==t&&t.orderDocuments&&Y((0,f.ok)({path:"orderDocuments",value:e.updateHTMLDocument.orderDocuments}))},onError:e=>{console.error("Error updating HTML document:",e)}}),[q]=(0,d._)(b.Z),Z=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const o=_[t];if(o)return o;try{var a,n,r,i,s,l,d,c,u,m;Y((0,f.BT)(M.Z3.previewLoading));const o=await q({variables:{extractDocContentAccountNumber2:J,extractDocContentDocumentId2:Number(e),disableCache:!0,IsItAStructuredXhtmlDocument:!0,IsUsingNewExtractDocEndpoint:!0,DocumentContentType:y.im.pressRelease}}),N=null===o||void 0===o||null===(a=o.data)||void 0===a?void 0:a.extractDocContent;if(!N)return;const A={docId:t,headline:null!==(n=N.headline)&&void 0!==n?n:"",headline2:null!==(r=N.headline2)&&void 0!==r?r:"",subHeadline:null!==(i=N.subHeadline)&&void 0!==i?i:"",bodyText:(0,x.zu)(String(null!==(s=N.bodyText)&&void 0!==s?s:""),Q),mediaContact:null!==(l=N.mediaContact)&&void 0!==l?l:"",location:null!==(d=N.location)&&void 0!==d?d:"",date:null!==(c=N.date)&&void 0!==c?c:"",pressReleaseHighlight:null!==(u=N.pressReleaseHighlight)&&void 0!==u?u:"",isMediaContactPresentInBodyText:null!==(m=N.isMediaContactPresentInBodyText)&&void 0!==m&&m};return Y((0,f.P6)({documentId:t,value:A})),A}catch(N){return void console.error(`Failed to extract document content for ${t}:`,N)}finally{Y((0,f.Qf)(M.Z3.previewLoading))}},[ee]=(0,l.n)(T.Ei,{onCompleted:async e=>{var t;if((null===e||void 0===e||null===(t=e.updateOrderReleaseDetails)||void 0===t?void 0:t.length)>0&&(Y((0,f.ok)({path:"orderReleaseDetails",value:e.updateOrderReleaseDetails.map(e=>({orderId:e.orderId,dateLineLocation:e.dateLineLocation,languageCode:e.languageCode}))})),!K&&G&&j&&J)){const t="2"===Q&&X&&1===X.length,n=F.filter(e=>{return!e.isPrimaryContent&&!e.isDeleted&&(!!t||(null===(o=e.languageCode)||void 0===o?void 0:o.toLowerCase())===G.toLowerCase());var o});for(const r of n){var o;const t=r.documentId.toString(),n=(0,x.Jn)(r.languageCode||G||""),i=`${t}_${n}.html`,s=null===(o=e.updateOrderReleaseDetails.find(e=>{var t;return(null===(t=e.languageCode)||void 0===t?void 0:t.toLowerCase())===n.toLowerCase()}))||void 0===o?void 0:o.dateLineLocation,l=(null!==s&&void 0!==s?s:"").trim();if(!l)continue;const d=F.find(e=>e.documentName===i&&e.isPrimaryContent&&!e.isDeleted);if(d){const e=_[t],o=null!==e&&void 0!==e?e:await Z(d.documentId.toString(),t);if(!o){console.warn(`Skipping dateline HTML sync: extraction data unavailable for document ${t}`);continue}Y((0,f.P6)({documentId:t,value:{...o,location:l}}));try{await z({variables:{accountNumber:J,draftOrderId:parseInt(j.toString(),10),parentDocumentId:t,documentId:d.documentId,headline:o.headline,headline2:o.headline2,subHeadline:o.subHeadline,location:l,date:o.date,bodyText:o.bodyText,mediaContact:o.mediaContact,pressReleaseHighlight:o.pressReleaseHighlight,languageCode:n,fileType:r.fileType,IsTranslationNeeded:r.isTranslationNeeded,isCustomerEdited:!0}})}catch(a){console.error("Failed to sync HTML document with new dateline:",a)}}}}},onError:e=>{console.error("Error updating order release details:",e)}}),te=(0,a.useMemo)(()=>new Event("input",{bubbles:!0,cancelable:!0}),[]),oe=(0,a.useRef)(null),ae=(0,a.useRef)(null),ne=(0,a.useRef)(null),re=(0,a.useRef)(!1),[ie,se]=(0,a.useState)(!1),[le,de]=(0,a.useState)([]),[ce,ue]=(0,a.useState)([]),[me,Ne]=(0,a.useState)([]),Ae=()=>{ne.current=null},pe=async e=>{if(j&&G)try{const t="2"===Q&&X&&1===X.length?[{dateLineLocation:e,languageCode:"en-CA"},{dateLineLocation:e,languageCode:"fr-CA"}]:[{dateLineLocation:e,languageCode:(0,x.Jn)(G)}];await ee({variables:{orderId:parseInt(j.toString(),10),orderReleaseDetails:t}})}catch(t){console.error("Failed to update dateline location:",t)}},ve=e=>()=>{N(e),U&&Ne(U($,e)),oe.current&&(oe.current.value=e,oe.current.dispatchEvent(te)),re.current=!0,K||pe(e),se(!1),ue([]),Ae()},Ie=(0,a.useCallback)(i()(async()=>{var e;const t=(null===(e=oe.current)||void 0===e?void 0:e.value)||"";if(!t.length)return;const o=(e=>{if(!e||e.length<2)return[];const t=e.toUpperCase().trim(),o=[],a=[];for(const n of p)n.startsWith(t)?o.push(n):n.includes(t)&&a.push(n);return[...o,...a]})(t);ue(o);
1try{const e={input:t,sessionToken:(ne.current||(ne.current=new google.maps.places.AutocompleteSessionToken),ne.current),language:W.language},{suggestions:a}=await google.maps.places.AutocompleteSuggestion.fetchAutocompleteSuggestions(e);if(a&&a.length>0){const e=a.map(e=>e.placePrediction).filter(e=>null!==e&&void 0!==e);de(e),se(!0)}else de([]),se(o.length>0)}catch(a){console.error("Error fetching autocomplete suggestions:",a),de([]),se(o.length>0)}},300),[]),Ce=e=>async()=>{re.current=!0;try{const n=e.toPlace();if(await n.fetchFields({fields:["addressComponents","displayName","formattedAddress"]}),Ae(),n.addressComponents&&n.addressComponents.length>0){var t;const a=n.displayName||(null===(t=e.text)||void 0===t?void 0:t.toString())||"";let r=((e,t)=>{if(t&&t.toLowerCase().includes("united nations headquarters"))return"UNITED NATIONS";let o="",a="",n="",r="",i="";e.forEach(e=>{e.types.includes("locality")&&(o=e.longText||""),(e.types.includes("sublocality_level_1")||e.types.includes("sublocality")&&!a)&&(a=e.longText||""),e.types.includes("administrative_area_level_3")&&(n=e.longText||""),e.types.includes("administrative_area_level_1")&&(r=e.longText||""),e.types.includes("country")&&(i=e.longText||"")}),i.startsWith("The ")&&(i=i.substring(4));const s=i.toLowerCase();let l;l="united states"===s?v:"canada"===s?C:I;const d=o||a||n||(l.has(r.toUpperCase().trim())?r:"");if(d&&l.has(d.toUpperCase().trim()))return d.toUpperCase().trim();if("united states"===s&&d&&r){const e=c[r]||r;return`${d.toUpperCase()}, ${e}`}if("canada"===s&&d&&r){const e=A[r]||r;return`${d.toUpperCase()}, ${e}`}if("united kingdom"===s&&d){const e=g.has(r)?r:"United Kingdom";return`${d.toUpperCase()}, ${e}`}return"united arab emirates"===s&&d?`${d.toUpperCase()}, UAE`:d&&r&&h.has(r)?`${d.toUpperCase()}, ${r}`:d&&i?`${d.toUpperCase()}, ${i}`:!d&&r&&i?`${r.toUpperCase()}, ${i}`:i?i.toUpperCase():d&&r?`${d.toUpperCase()}, ${r}`:d?d.toUpperCase():""})(n.addressComponents,a);var o;if(!r)r=n.displayName||n.formattedAddress||(null===(o=e.text)||void 0===o?void 0:o.toString())||"";N(r),U&&Ne(U($,r)),oe.current&&(oe.current.value=r,oe.current.dispatchEvent(te)),K||pe(r)}else{var a;const t=(null===(a=e.text)||void 0===a?void 0:a.toString())||"";N(t),K||pe(t)}se(!1)}catch(r){var n;console.error("Error fetching place details:",r);const t=(null===(n=e.text)||void 0===n?void 0:n.toString())||"";N(t),K||pe(t),se(!1)}},ge=e=>{ae.current&&!ae.current.contains(e.target)&&se(!1)};return(0,a.useEffect)(()=>(document.addEventListener("mousedown",ge),()=>document.removeEventListener("mousedown",ge)),[]),(0,a.useEffect)(()=>{null!==w&&void 0!==w&&w.length&&Ne(w)},[w]),(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)("div",{ref:ae,onKeyDown:e=>{"Escape"===e.key&&se(!1)},className:(0,E.A)("omc-flex omc-flex-col",k),children:[u&&(0,D.jsx)("p",{className:"!omc-m-0 omc-text-xl omc-font-medium omc-text-black",children:u}),(0,D.jsxs)(s.Xhe,{className:"omc-relative !omc-mt-2",children:[(0,D.jsx)(s.Gn1,{name:"search","aria-hidden":"true",className:"omc-absolute omc-fill-neutral-500 omc-size-5 omc-z-10 omc-left-2 omc-top-2.5 "}),(0,D.jsx)(s.rxn,{ref:oe,type:"text",name:r,value:o,placeholder:P||o?t:V,onChange:e=>{if(N(e.target.value),re.current=!1,U&&Ne(U($,e.target.value)),!e.target.value.length)return de([]),ue([]),void se(!1);Ie()},onFocus:()=>{var e,t;null!==(e=oe.current)&&void 0!==e&&null!==(t=e.value)&&void 0!==t&&t.length&&!ie&&Ie(),R&&R()},onBlur:()=>{K||re.current||pe(o),re.current=!1,B&&B()},autoComplete:"off",disabled:H,className:(0,E.A)("focus:!omc-shadow-none !omc-text-xl disabled:!omc-bg-neutral-100 disabled:!omc-text-neutral-400 !omc-pl-8 ",P||o?"!omc-border-gray-40":"!omc-border-red-600 placeholder:!omc-text-red-600"),"data-testid":`dateline-location-input-${G||"default"}`}),ie&&(0,D.jsxs)("div",{className:"omc-w-auto omc-absolute omc-p-0 omc-z-10 omc-mt-1 omc-max-h-60 omc-overflow-y-auto omc-rounded-md omc-border omc-border-gray-20 omc-bg-white omc-shadow-xl",children:[ce.map(e=>(0,D.jsx)("div",{className:"omc-m-[1px] omc-border-none omc-outline-none focus-visible:omc-outline-none",onMouseDown:ve(e),children:(0,D.jsx)(s.ben,{variant:"tertiary",className:"!omc-text-black !omc-w-full !omc-justify-start hover:!omc-bg-gray-20 !omc-px-2 ",onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),ve(e)())},children:e})},`standalone-${e}`)),le.map(e=>{var t;const o=(null===(t=e.text)||void 0===t?void 0:t.toString())||"";return(0,D.jsx)("div",{className:"omc-m-[1px] omc-border-none omc-outline-none focus-visible:omc-outline-none",onMouseDown:Ce(e),children:(0,D.jsx)(s.ben,{variant:"tertiary",className:"!omc-text-black !omc-w-full !omc-justify-start hover:!omc-bg-gray-20 !omc-px-2 ",onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),Ce(e)())},children:o})},e.placeId)})]})]}),(0,D.jsx)("div",{children:me.map((e,t)=>(0,D.jsx)("div",{className:"omc-pt-2 omc-text-sm omc-text-notify-danger",children:e},t))})]})})}},97921(e,t,o){var a=o(71316),n=o(42087),r=o(9950);o.d(t,["c",0,()=>{const{isAIAssistantEnabled:e,isAIUploadAndEditFlowEnabled:t}=(0,n.Uu)(),o=(0,n.sq)(),i=o.has(a.BO),s=o.get(a.BO);return(0,r.useMemo)(()=>({isEnabled:i&&("1"===s&&e||"2"===s&&t)}),[i,e,t,s])}])}}]);

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.