1"use strict";(globalThis.webpackChunkomc_ui_2_0||=[]).push([[2241],{72241(e,t,o){o.r(t),o.d(t,{default:()=>ee});var c,r,l,i,n,a,s,m,d,u,h,x=o(48661),p=o(43580),g=o(42087),f=o(12581),v=o(29390),y=o(35822),b=o(76363),w=o(32995),D=o(92526),j=o(38843),E=o(70439),P=o(3689),C=o(90748),N=o(9950),_=o(72986),G=o(42411),R=o(2422),k=o(80331),I=o(71316),A=o(72004),V=o(22647),B=o(35657),F=o(13531),O=o(50659),T=o(84882),q=o(19841),S=o(76326),H=o(95912);function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var c in o)({}).hasOwnProperty.call(o,c)&&(e[c]=o[c])}return e},M.apply(null,arguments)}function L(e,t){let{title:o,titleId:x,...p}=e;return N.createElement("svg",M({width:131,height:184,viewBox:"0 0 131 184",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":x},p),o?N.createElement("title",{id:x},o):null,c||(c=N.createElement("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H131V184H8C3.58172 184 0 180.418 0 176V8Z",fill:"#F5F3FF"})),r||(r=N.createElement("path",{d:"M65.625 68.8047C75.8994 68.8047 84.125 76.92 84.125 86.8047C84.125 96.6894 75.8994 104.805 65.625 104.805C55.3506 104.805 47.125 96.6894 47.125 86.8047C47.125 76.92 55.3506 68.8047 65.625 68.8047Z",stroke:"#DDD6FE",strokeWidth:5})),l||(l=N.createElement("path",{d:"M65.625 79.8047C69.8895 79.8047 73.125 83.058 73.125 86.8047C73.125 90.5514 69.8895 93.8047 65.625 93.8047C61.3605 93.8047 58.125 90.5514 58.125 86.8047C58.125 83.058 61.3605 79.8047 65.625 79.8047Z",stroke:"#DDD6FE",strokeWidth:5})),i||(i=N.createElement("circle",{cx:65.125,cy:86.3047,r:32,stroke:"#DDD6FE",strokeWidth:5})),n||(n=N.createElement("g",{clipPath:"url(#clip0_4124_28896)"},N.createElement("rect",{x:11.875,y:110.477,width:58,height:35,fill:"white"}),N.createElement("rect",{x:11.875,y:105.477,width:58,height:5,fill:"#D4D4D4"}),N.createElement("rect",{x:15,y:115,width:19,height:16,fill:"#0B5DC1"}),N.createElement("rect",{x:37,y:115,width:30,height:6,fill:"#D4D4D4"}),N.createElement("rect",{x:37,y:125,width:20,height:6,fill:"#D4D4D4"}),N.createElement("rect",{x:14.875,y:135.477,width:52,height:4,fill:"#D4D4D4"}))),a||(a=N.createElement("rect",{x:11.875,y:105.477,width:58,height:40,rx:4,stroke:"#D4D4D4"})),s||(s=N.createElement("g",{clipPath:"url(#clip1_4124_28896)"},N.createElement("rect",{x:78.125,y:61.4766,width:58,height:35,fill:"white"}),N.createElement("rect",{x:78.125,y:56.4766,width:58,height:5,fill:"#D4D4D4"}),N.createElement("rect",{x:80.875,y:65.4766,width:13,height:11,fill:"#0B5DC1"}),N.createElement("rect",{x:95.875,y:65.4766,width:20,height:4,fill:"#D4D4D4"}),N.createElement("rect",{x:95.875,y:71.4766,width:13,height:4,fill:"#D4D4D4"}),N.createElement("rect",{x:80.875,y:79.4766,width:35,height:3,fill:"#D4D4D4"}))),m||(m=N.createElement("rect",{x:78.125,y:56.4766,width:41,height:30,rx:4,stroke:"#D4D4D4"})),d||(d=N.createElement("g",{clipPath:"url(#clip2_4124_28896)"},N.createElement("rect",{x:14.625,y:41.5234,width:58,height:35,fill:"white"}),N.createElement("rect",{x:14.625,y:36.5234,width:58,height:5,fill:"#D4D4D4"}),N.createElement("rect",{x:17.625,y:45.4766,width:9,height:8,fill:"#0B5DC1"}),N.createElement("rect",{x:27.625,y:45.4766,width:19,height:3,fill:"#D4D4D4"}),N.createElement("rect",{x:27.625,y:50.4766,width:13,height:3,fill:"#D4D4D4"}),N.createElement("rect",{x:17.625,y:55.4766,width:29,height:2,fill:"#D4D4D4"}))),u||(u=N.createElement("rect",{x:14.625,y:36.5234,width:35,height:25,rx:4,stroke:"#D4D4D4"})),h||(h=N.createElement("defs",null,N.createElement("clipPath",{id:"clip0_4124_28896"},N.createElement("rect",{x:11.875,y:105.477,width:58,height:40,rx:4,fill:"white"})),N.createElement("clipPath",{id:"clip1_4124_28896"},N.createElement("rect",{x:78.125,y:56.4766,width:41,height:30,rx:4,fill:"white"})),N.createElement("clipPath",{id:"clip2_4124_28896"},N.createElement("rect",{x:14.625,y:36.5234,width:35,height:25,rx:4,fill:"white"})))))}const W=N.forwardRef(L);o.p;var U=o(676),z=o(11961),K=o(45084),Q=o(56943),Z=o(5418),X=o(74047),J=o(44414);const{CUSTOM_GPP_PRICING_AMOUNT:Y}=window._env_,$=()=>{const[e]=(0,x.B)(),t=(0,g.jL)(),o=(0,g.GV)(j.XJ),c=(0,g.GV)(D.tE),{addNotification:r}=(0,Z.y)(X.V2),l=(0,g.GV)(e=>e.createPressRelease.draftOrder.isCustomGPP),[i,{loading:n}]=(0,g.XO)(z.Qr,{context:{debounceKey:U.L.mutations.setIsCustomGPP}}),a=t=>{r({type:"error",title:e("general:errorTitle"),subtitle:(0,Q.oL)(e("general:errorFallbackHeading"),t),dismissT
1ime:I.wN})};return(0,J.jsxs)("div",{className:"omc-flex omc-flex-row omc-w-full omc-border omc-border-solid omc-border-neutral-300 omc-rounded-xl omc-mb-4","data-testid":"custom-gpp-banner",children:[(0,J.jsx)("div",{className:"omc-flex omc-flex-shrink-0 omc-items-center omc-justify-center",children:(0,J.jsx)(W,{"aria-hidden":"true",width:131,height:184,className:"omc-rounded-tl-xl omc-rounded-bl-xl"})}),(0,J.jsxs)("div",{className:"omc-flex omc-flex-col omc-flex-1 omc-justify-between omc-gap-2 omc-p-5",children:[(0,J.jsxs)("div",{children:[(0,J.jsx)("p",{className:"omc-text-neutral-800 omc-text-xl omc-font-bold omc-m-0",children:e("createRelease:customGppTitle","Request a custom campaign with industry targeting, audience persona targeting, headline A/B testing, and a detailed campaign report")}),(0,J.jsx)("p",{className:"omc-text-neutral-600 omc-text-lg1 omc-mt-2 omc-mb-0",children:e("createRelease:customGppDesc","Please note: The customized nature of this product makes it unsuitable for releases with tight scheduling requirements. It will not officially be added to your order until one of our representatives reaches out to you to confirm your details.")})]}),(0,J.jsxs)("div",{className:"omc-flex omc-flex-row omc-justify-between omc-items-center omc-mt-2",children:[(0,J.jsxs)("span",{className:"omc-text-neutral-800 omc-text-lg1 omc-font-bold",children:[e("createRelease:customGppPricingLabel","Starting at")," ",Y]}),l?(0,J.jsxs)("button",{disabled:!0,"data-testid":"custom-gpp-requested-btn",className:"omc-flex omc-items-center omc-px-2 omc-py-1.5 omc-rounded omc-border omc-border-solid omc-border-neutral-300 omc-bg-white omc-text-primary-500 omc-text-[14px] omc-leading-[22px] omc-font-medium",children:[(0,J.jsx)(H.Gn1,{name:"check",className:"omc-fill-primary-500 omc-mr-2 !omc-size-5"}),e("createRelease:customGppRequestedBtn","Requested")]}):(0,J.jsx)("button",{onClick:()=>{o&&o!==I.Qn&&(t((0,O.BT)(K.Z3.setIsCustomGPP)),i({variables:{isCustomGPP:!0,accountNumber:c,draftOrderId:o}}).then(e=>{const o=(0,Q.cx)(e);if(o)a(o);else{var c;const o=null===e||void 0===e||null===(c=e.data)||void 0===c?void 0:c.setIsCustomGppToDraftOrder;o&&t((0,O.ok)({path:"",value:{...o}}))}}).catch(e=>{console.error("Could not set custom GPP");const t=(0,Q.cx)(e);t&&a(t)}).finally(()=>{t((0,O.Qf)(K.Z3.setIsCustomGPP))}))},disabled:n,"data-testid":"custom-gpp-request-btn",className:"omc-flex omc-items-center omc-px-2 omc-py-1.5 omc-rounded omc-border omc-border-solid omc-border-neutral-300 omc-bg-white omc-text-primary-500 omc-text-[14px] omc-leading-[22px] omc-font-medium",children:n?e("createRelease:customGppRequestedBtnRequesting","Requesting..."):e("createRelease:customGppRequestBtn","Request more information")})]})]})]})},ee=()=>{var e,t,o;const[c]=(0,x.B)(),r=(0,g.jL)(),l=(0,g.GV)(D.tE),i=(0,g.GV)(j.XJ),n=(0,g.GV)(e=>e.app.isHotChocolate)?w.pP:w.Bv,a=(0,g.GV)(C.WG),s=(0,g.GV)(D.s9),m=(0,g.GV)(j.m2),d=(0,g.GV)(C.of),u=(0,g.GV)(C.qW),h=(0,g.GV)(D.Mv),{isRecommendationsTabEnabled:H,isPricingFeatureEnabled:M,isCustomGppLeadGenEnabled:L}=(0,g.Uu)();(0,k.b)([I.Pn.isNewslineProductSelected,I.Pn.doSelectedProductsServeAllReleaseLanguages]);const W=(0,f.U)(),U=(0,g.GV)(C.vr),z=(0,g.GV)(C.QU),K=(0,g.GV)(C.md),Q=(0,N.useMemo)(()=>{if(!z||null===K||void 0===K||!K.length)return[];const e=new Map(K.map(e=>[e.prdCd,e]));return Object.entries(z).filter(e=>{let[t]=e;return"__typename"!==t}).flatMap(t=>{let[o,c]=t;if(!c||"object"!==typeof c)return[];const r=Object.entries(c).filter(e=>{let[t,o]=e;return"__typename"!==t&&null!==o&&Array.isArray(o)&&o.length>0}).map(t=>{let[o,c]=t;const r=c.map(t=>e.get(t.productCode)).filter(Boolean);return r.length>0?{productType:o,products:r}:null}).filter(Boolean);return r.length>0?{recommendationPlanType:o,recommendationPlanData:r}:[]}).filter(e=>Object.keys(e).length>0)},[z,K]),Z=m.length>0?m.split(","):[],{data:X,loading:Y}=(0,b.IT)(n,{variables:{accountNumber:l,orderId:i,userInfo:{name:null===s||void 0===s?void 0:s.name,email:null===s||void 0===s?void 0:s.email,account_id:null===s||void 0===s?void 0:s.account_id,account_name:null===s||void 0===s?void 0:s.account_name,account_geocode:null===s||void 0===s?void 0:s.account_geocode,account_bureau_code:null===s||void 0===s?void 0:s.account_bureau_code},releaseLanguages:Z,wordCount:d},skip:u,notifyOnNetworkStatusChange:!0});return(0,J.jsxs)(f.D.Provider,{value:W,children:[(0,J.jsx)(T.A,{}),M&&"1"===h&&(0,S.m)((0,J.jsx)(q.A,{}),document.getElementById(S.q.sofHeaderRightContent),S.q.sofHeaderRightContent),(0,J.jsxs)("div",{className:"omc-mt-1.5",children:[(0,J.jsx)(E.A,{titleKey:(0,P.v)().recommendedForStory.titleKey,descriptionKey:(0,P.v)().recommendedForStory.descriptionKey,icon:(0,P.v)().recommendedForStory.icon,bgColor:(0,P.v)().recommendedForStory.bgColor}),a?(0,J.jsxs)("div",{role:"alert",className:"omc-px-4 omc-py-3 omc-bg-orange-100 omc-rounded-sm omc-inline-flex omc-justify-between omc-items-center omc-mb-3",children:[(0,J.jsx)("div",{className:"omc-mr-2",children:(0,J.jsx)(V.i,{fill:"#DE4543","aria-hidden":"true"})}),(0,J.jsxs)("div",{className:"omc-flex-1 omc-justify-start",children:[(0,J.jsx)("span",{className:"omc-text-neutral-800 omc-text-lg1 omc-font-bold omc-leading-tight",children:c("createRelease:recommendedWarningMessage_Part1","Recommendations may have changed ")}),(0,J.jsx)("span",{className:"omc-text-neutral-800 omc-text-lg1 omc-font-medium omc-leading-tight",children:c("createRelease:recommendedWarningMessage_Part2","based on your updated content. Items previously added to your order still remain. Review your order summary to make changes.")})]}),(0,J.jsx)(B.$n,{onClick:()=>r((0,O.dm)(!1)),level:"tertiary",size:"sm",className:"omc-ml-1 !omc-border-none
1!omc-bg-transparent","data-testid":"recommendation-warning-banner-close-btn","aria-label":c("general:close","Close"),children:(0,J.jsx)(F.U,{"aria-hidden":"true"})})]}):null,(0,J.jsxs)("div",{className:"omc-flex omc-justify-between omc-items-center omc-px-1",children:[(0,J.jsxs)("div",{className:"omc-flex omc-justify-start omc-items-center omc-gap-3",children:[(0,J.jsx)("h3",{className:"omc-justify-start omc-text-neutral-800 omc-text-xl omc-font-medium omc-m-0",children:c("createRelease:solutionsBuiltForYou","Solutions built for you")}),(0,J.jsx)("div",{className:"omc-px-2.5 omc-py-0.5 omc-bg-violet-100 omc-rounded-sm omc-flex omc-justify-center omc-items-center omc-gap-1.5",children:(0,J.jsx)("div",{className:"omc-justify-start omc-text-violet-600 omc-text-sm omc-font-medium omc-uppercase omc-tracking-tight",children:c("general:poweredByAi","POWERED BY AI")})})]}),!M&&(0,J.jsxs)("div",{className:"omc-justify-start omc-text-neutral-600 omc-text-lg1 omc-font-medium omc-ml-2",children:["*",c("createRelease:rateCardPricingAppliesForItemsShown","Rate card pricing applies for items shown")]})]}),H?(0,J.jsxs)("div",{className:"omc-my-3",children:[U&&(0,J.jsx)(R.A,{}),!U&&(null===K||void 0===K?void 0:K.length)>0&&(0,J.jsx)("div",{className:"omc-flex omc-flex-wrap omc-justify-start omc-items-start omc-gap-6",children:Q.map(e=>(0,J.jsx)(_.A,{plan:e},e.recommendationPlanType))})]}):null,L&&(0,J.jsx)($,{}),H?(0,J.jsxs)("div",{className:"omc-flex omc-flex-col omc-mt-5",children:[(null===X||void 0===X?void 0:X.fullDistributionHistory.result)&&(null===X||void 0===X||null===(e=X.fullDistributionHistory.result)||void 0===e?void 0:e.length)>0&&(0,J.jsx)("h3",{className:"omc-text-lg omc-font-medium omc-m-0",children:c("createRelease:previouslyUsed","Previously used")}),(0,J.jsxs)("div",{className:"omc-flex omc-flex-row omc-flex-wrap omc-mt-2",children:[Y&&(0,J.jsx)(y.A,{}),!Y&&(null===X||void 0===X||null===(t=X.fullDistributionHistory.result)||void 0===t?void 0:t.length)>0?null===X||void 0===X||null===(o=X.fullDistributionHistory.result)||void 0===o?void 0:o.map((e,t)=>{var o,c;const r=W.checkIsProductAddedToCart(e),l=W.checkIsProductIncludedInCart(e);return(0,J.jsxs)("div",{className:(0,A.A)(l?"omc-ring-1 omc-ring-neutral-400 omc-border-neutral-400 omc-z-[1]":r?"omc-ring-1 omc-ring-omc-blue omc-border-b omc-border-omc-blue omc-z-[2]":"",0===t&&"omc-rounded-t-xl",t===(null===X||void 0===X?void 0:X.fullDistributionHistory.result.length)-1?"omc-rounded-b-xl":r||l?"":"omc-border-b-0","omc-relative omc-w-full omc-border omc-border-solid omc-border-neutral-300 omc-overflow-hidden"),children:[(0,J.jsx)(p.A,{product:e,isPreviouslyPurchasedPrd:!0,unitPrice:null!==(o=e.unitPrice)&&void 0!==o?o:0},e.prdCd),(null===W||void 0===W?void 0:W.isQuickViewOpen)&&(null===W||void 0===W||null===(c=W.currentProduct)||void 0===c?void 0:c.prdCd)===e.prdCd&&(0,J.jsx)(v.A,{})]},e.prdCd)}):null]})]}):null]}),(0,J.jsx)(G.A,{})]})}}}]);
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.