PageSourceSearch

https://app.prnewswire.com/static/js/9614.4d81262e.chunk.js

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

1"use strict";(globalThis.webpackChunkomc_ui_2_0||=[]).push([[9614],{29583(e,t,l){var n=l(87946),i=l.n(n),o=l(11961),d=l(92526),r=l(38843),a=l(79939),s=l(78503),c=l(50659),u=l(31030),m=l(45084),v=l(56943),g=l(22221),f=l(82804);l.d(t,["t",0,()=>{const e=(0,g.j)(),t=(0,g.G)(d.tE),l=(0,g.G)(r.XJ),n=(0,g.G)(a.Kr),p=(0,g.G)(s.H4),h=(0,g.G)(e=>(0,r.Qt)(e).selectedDocId),M=(0,g.G)(e=>(0,a.Qt)(e).selectedDocId),[C,{loading:I}]=(0,f.X)(o.Me);return{handleDeleteFile:o=>{let{documentIds:d,isArticle:r=!1}=o;return new Promise((o,a)=>{e(r?(0,u.BT)(m.ih.deleteContentFromDraftOrder):(0,c.BT)(m.Z3.deleteContentFromDraftOrder)),C({variables:{documentIds:d,accountNumber:t,draftOrderId:r?n:l,emailId:p}}).then(t=>{var l;const n=(0,v.cx)(t);if(n)return void a(n);const s=(null!==(l=i()(t,"data.deleteContentFromDraftOrder.orderDocuments",[]))&&void 0!==l?l:[]).filter(e=>!e.isDeleted);e(r?(0,u.FT)({path:"orderDocuments",value:s}):(0,c.ok)({path:"orderDocuments",value:s}));const m=r?M:h;!!m&&d.includes(parseInt(m,10))&&e(r?(0,u.WF)({path:"validationKeys",value:{}}):(0,c.WF)({path:"validationKeys",value:{}})),e((0,c.hS)({documentIds:d.map(e=>e.toString())})),o(t)}).catch(e=>a(e)).finally(()=>{e(r?(0,u.Qf)(m.ih.deleteContentFromDraftOrder):(0,c.Qf)(m.Z3.deleteContentFromDraftOrder))})})},isDeleting:I}}])},79939(e,t,l){var n=l(85913),i=l(71316),o=l(64847),d=l(43762),r=l(92526),a=l(78503),s=l(56943),c=l(41397),u=l(45575),m=l(69305);const v=e=>{var t;const l=e.createArticle.article;return{...l,orderDocuments:(null!==(t=null===l||void 0===l?void 0:l.orderDocuments)&&void 0!==t?t:[]).map(e=>{var t;return{...e,documentName:decodeURIComponent(null!==(t=e.documentName)&&void 0!==t?t:"")}})}},g=(0,n.Mz)([v],e=>null!==e&&void 0!==e&&e.draftOrderId?parseFloat(e.draftOrderId.toString()):null),f=(0,n.Mz)([v],e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.orderMultimediaAssets)&&void 0!==t?t:[]}),p=(0,n.Mz)([f],e=>e.map(e=>e.assetId)),h=(0,n.Mz)([v],e=>{var t,l;return null!==(t=(null!==(l=null===e||void 0===e?void 0:e.orderMultimediaAssets)&&void 0!==l?l:[]).find(e=>!0===e.isHeaderImage))&&void 0!==t?t:null}),M=(0,n.Mz)([v],e=>{var t;return(null!==(t=null===e||void 0===e?void 0:e.orderMultimediaAssets)&&void 0!==t?t:[]).filter(e=>!0!==e.isHeaderImage)}),C=((0,n.Mz)([f],e=>(null!==e&&void 0!==e?e:[]).filter(e=>e.isManualUpload&&e.assetType===o.UR.assetFiles.images.assetType).reduce((e,t)=>{var l;return e[(0,u.A)()]={name:t.fileName,isUploadInitialized:!0,isValid:!0,isUploading:!1,assetId:t.assetId,url:t.url,heightPx:t.heightInPixels,widthPx:t.widthInPixels,archiveForAYear:t.archiveForAYear,caption:t.caption,assetType:t.assetType,captions:(null!==(l=t.captions)&&void 0!==l?l:[]).map(e=>{var t;return{...e,delete:null!==(t=e.delete)&&void 0!==t&&t}})},e},{})),(0,n.Mz)([f],e=>new Set((null!==e&&void 0!==e?e:[]).filter(e=>e.isManualUpload&&e.assetType===o.UR.assetFiles.images.assetType).map(e=>e.assetId))),e=>{var t;return null!==(t=e.createArticle.article.aiFlowType)&&void 0!==t?t:0}),I=(0,n.Mz)([C],e=>e===i.hM.ARTICLE_BLOGPOST||e===i.hM.ARTICLE_UPLOAD),z=e=>e.createArticle.article.sources,x=(0,n.Mz)([z],e=>e),y=((0,n.Mz)([z],e=>{if(!e||0===e.length)return null;const[t]=e,[l]=(null===t||void 0===t?void 0:t.languages)||[];return(null===l||void 0===l?void 0:l.name)||null}),(0,n.Mz)([v],e=>"number"===typeof(null===e||void 0===e?void 0:e.clonedFromDraftOrderId)&&(null===e||void 0===e?void 0:e.clonedFromDraftOrderId)>0)),A=(0,n.Mz)([v],e=>{var t;return(null!==(t=e.orderDocuments)&&void 0!==t?t:[]).filter(e=>!e.isDeleted)}),D=(0,n.Mz)([A],e=>(null!==e&&void 0!==e?e:[]).reduce((e,t)=>(null!==t&&void 0!==t&&t.isPrimaryContent&&t.documentName.endsWith(".html")&&t.fileType===d.db.RELEASE_DOCUMENT&&(e[t.documentName]=t),e),{})),T=e=>e.createArticle.previewRelease,w=e=>{const t=A(e),l=D(e),n=T(e),o=I(e);if(n.selectedDocId){const e=t.find(e=>e.documentId===parseInt((null===n||void 0===n?void 0:n.selectedDocId)||"0"));if(o){var d,r;const n=t.find(e=>i.vg.aiFlowArticleHTMLDocument.test(e.documentName)&&e.isPrimaryContent);return null!==(d=l[`${null===n||void 0===n?void 0:n.documentName}`])&&void 0!==d?d:l[`${null===e||void 0===e?void 0:e.documentId}_${null!==(r=null===e||void 0===e?void 0:e.languageCode)&&void 0!==r?r:"en-US"}.html`]}var a;return l[`${null===e||void 0===e?void 0:e.documentId}_${null!==(a=null===e||void 0===e?void 0:e.languageCode)&&void 0!==a?a:"en-US"}.html`]}return null},N=(0,n.Mz)([A],e=>{const t=(null!==e&&void 0!==e?e:[]).filter(e=>e.documentName.endsWith(".docx")&&e.fileType===d.db.RELEASE_DOCUMENT),l=[];return 0===t.length||l.push({documentId:t[0].documentId,documentName:t[0].documentName,languageCode:null}),l}),b=(0,n.Mz)([A],e=>{const t=(null!==e&&void 0!==e?e:[]).filter(e=>i.vg.aiFlowArticleHTMLDocument.test(e.documentName)&&e.fileType===d.db.RELEASE_DOCUMENT),l=[];return 0===t.length||l.push({documentId:t[0].documentId,documentName:t[0].documentName,languageCode:null}),l}),j=(0,n.Mz)([N,b,I],(e,t,l)=>l&&t.length>0?t:e),O=((0,n.Mz)([j,T],(e,t)=>e.length&&t.selectedDocId?e.find(e=>e.documentId===parseInt(t.selectedDocId||"0")):null),(0,n.Mz)([A],e=>e.reduce((e,t)=>
1(t.isDeleted||1!==t.fileType||null!==t&&void 0!==t&&t.isPrimaryContent||(e[(0,u.A)()]={name:t.documentName,isUploadInitialized:!0,isValid:!0,isUploading:!1,documentId:t.documentId,fileType:t.fileType,languageCode:null===t||void 0===t?void 0:t.languageCode}),e),{}))),E=(0,n.Mz)([v],e=>{var t;return(null===e||void 0===e||null===(t=e.orderDocuments)||void 0===t?void 0:t.filter(e=>!e.isDeleted&&1===e.fileType).length)||0}),F=(0,n.Mz)([v],e=>{var t;const l=null===e||void 0===e||null===(t=e.orderLastStepNavigated)||void 0===t?void 0:t.lastStepNavigated;return i.n_[l]||l}),R=(0,n.Mz)([v],e=>(0,s.h2)((null===e||void 0===e?void 0:e.draftName)||"")),U=(0,n.Mz)([v],e=>(null===e||void 0===e?void 0:e.customerSubmitted)||!1),S=(0,n.Mz)([v],e=>(null===e||void 0===e?void 0:e.portalId)||""),L=(0,n.Mz)([v],e=>{var t;const l=[...null!==(t=null===e||void 0===e?void 0:e.sources)&&void 0!==t?t:[]],n={};return l.forEach(e=>{var t;return null===(t=e.languages)||void 0===t?void 0:t.map(e=>{const t=(0,s.OT)(e.languageCode);return n[t.name]?n[t.name].push(e.name):n[t.name]=[e.name],!0})}),Object.keys(n).sort().reduce((e,t)=>(e[t]=n[t],e),{})}),P=((0,n.Mz)([v],e=>{const t=(0,c.get)(e,"editorialContactInformation.confirmationEmails",""),l=(0,c.get)(e,"editorialContactInformation.additionalVisibilityReportEmails",""),n=t&&t.split(",")||[],i=l&&l.split(",")||[];return{confirmationMail:n,confirmationMailCount:n&&n.length,visiblityReportMail:i,visiblityReportMailCount:i&&i.length}}),(0,n.Mz)([v,r.cn,a.Qn,r.CQ,r.eS,L],(e,t,l,n,i,o)=>({userInfo:l,activeAgency:t,activeTimezone:n,activeRegion:i,draftOrder:{...e,sources:o}}))),_=(0,n.Mz)([m.Dw,U],(e,t)=>e||t),G=(0,n.Mz)([v],e=>(null===e||void 0===e?void 0:e.languageCode)||"en"),H=(0,n.Mz)([e=>e.createArticle.article.distributionProducts],e=>(e||[]).reduce((e,t)=>(e[t.prdCd]=!0,e),{})),B=(0,n.Mz)([e=>e.createArticle.article.distributionProducts],e=>(e||[]).reduce((e,t)=>{var l,n,i;const o=null!==(l=null===(n=t.offeringMap)||void 0===n||null===(i=n[t.prdCd])||void 0===i?void 0:i.includedPrds)&&void 0!==l?l:[];return o.length>0&&o.forEach(t=>{e[t.prdCd]=!0}),e},{}));l.d(t,["Bb",0,O,"Cn",0,_,"DQ",0,f,"G",0,j,"Gd",0,G,"Gr",0,y,"Kr",0,g,"Qt",0,T,"UG",0,E,"Ub",0,H,"WJ",0,x,"WT",0,M,"Y_",0,S,"aZ",0,U,"g7",0,F,"j6",0,I,"kI",0,b,"lZ",0,C,"q8",0,B,"rp",0,w,"se",0,P,"sw",0,D,"t$",0,h,"u8",0,p,"xA",0,v,"xj",0,R,"zs",0,A])},69305(e,t,l){var n=l(85913);const i=e=>e.createArticle,o=(0,n.Mz)([i],e=>e.isDraftSyncing),d=(0,n.Mz)([i],e=>e.syncReleaseDocState),r=(0,n.Mz)([i],e=>e.previewRelease.validationKeys);(0,n.Mz)([i],e=>e.recommendations.showRecommendationWarningBanner);l.d(t,["Dw",0,e=>{var t;const l=null!==(t=e.createArticle.savingArticleInfoKeys)&&void 0!==t?t:{};return Object.values(l).some(Boolean)},"K3",0,r,"Ke",0,e=>{const{hasError:t,errMsg:l,loadingType:n}=e.createArticle;return{hasError:"initializing"===n&&t,errMsg:l}},"M2",0,e=>e.createArticle.showValidationWarnings,"cT",0,e=>e.createArticle.validationHits,"hM",0,e=>e.createArticle.isInitialized,"lR",0,e=>e.createArticle.savingArticleInfoKeys,"oZ",0,e=>e.createArticle.fieldValidation,"of",0,e=>e.createArticle.wordCount,"qW",0,e=>e.createArticle.wordCountLoading,"qj",0,o,"w7",0,d])},50612(e,t,l){l.d(t,{A:()=>r});var n=l(48661),i=l(95912),o=l(44414);const d=e=>(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"warning icon",role:"img",...e,children:(0,o.jsx)("g",{children:(0,o.jsx)("path",{d:"M1 21L12 2L23 21H1ZM4.45 19H19.55L12 6L4.45 19ZM12 18C12.2833 18 12.5208 17.9042 12.7125 17.7125C12.9042 17.5208 13 17.2833 13 17C13 16.7167 12.9042 16.4792 12.7125 16.2875C12.5208 16.0958 12.2833 16 12 16C11.7167 16 11.4792 16.0958 11.2875 16.2875C11.0958 16.4792 11 16.7167 11 17C11 17.2833 11.0958 17.5208 11.2875 17.7125C11.4792 17.9042 11.7167 18 12 18ZM11 15H13V10H11V15Z"})})}),r=e=>{let{isOpen:t,closeModal:l,cancelModal:r,onConfirm:a,title:s="",description:c="",actionButtonText:u=""}=e;const[m]=(0,n.B)();return(0,o.jsx)(i.Jlq,{open:t,onOpenChange:l,"data-testid":"delete-file-modal",children:(0,o.jsx)(i._cd,{className:"!omc-p-0 !omc-gap-0 !omc-max-w-[540px] omc-overflow-hidden",children:(0,o.jsxs)(i.Xhe,{children:[(0,o.jsxs)(i.wMf,{"data-testid":"delete-file-modal-header",className:"omc-flex !omc-flex-row !omc-items-center omc-justify-between omc-bg-red-50",children:[(0,o.jsxs)("div",{className:"omc-flex omc-gap-2",children:[(0,o.jsx)(d,{className:"omc-fill-red-600"}),(0,o.jsx)(i.fCQ,{className:"!omc-font-medium omc-text-neutral-600",children:s})]}),(0,o.jsx)(i.t2X,{asChild:!0,children:(0,o.jsx)(i.ben,{onClick:l,variant:"tertiary",size:"sm",className:"!omc-bg-transparent","data-testid":"modal-confirmation-close-btn",children:(0,o.jsx)(i.Gn1,{name:"close",fill:"#525252"})})})]}),(0,o.jsx)("div",{className:"omc-px-4 omc-py-5 omc-text-lg1 omc-text-neutral-800","data-testid":"delete-file-modal-body",children:(0,o.jsx)("p",{children:c})}),(0,o.jsx)(i.s$1,{className:"omc-flex omc-justify-end",children:(0,o.jsxs)("div",{className:"omc-flex omc-gap-3",children:[(0,o.jsx)(i.ben,{size:"md",variant:"tertiary",onClick:r,"data-testid":"cancel-delete-file--btn",children:m("general:cancel","Cancel")}),(0,o.jsx)(i.ben,{size:"md",variant:"danger",onClick:a,"data-testid":"confirm-delete-file-btn",children:u})]})})]})})})}}}]);

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.