PageSourceSearch

https://app.prnewswire.com/static/js/5776.9a7d57f7.chunk.js

js prnewswire.com collected 2026-09-24 07:33:54 UTC 70,839 bytes, 905 lines download raw bytes

1"use strict";(globalThis.webpackChunkomc_ui_2_0||=[]).push([[5776],{34033(e,r,t){var a,o=t(9950);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},l.apply(null,arguments)}function s(e,r){let{title:t,titleId:s,...i}=e;return o.createElement("svg",l({width:10,height:12,viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":s},i),t?o.createElement("title",{id:s},t):null,a||(a=o.createElement("path",{id:"Vector",d:"M8.5 10.5H3V3.5H8.5M8.5 2.5H3C2.73478 2.5 2.48043 2.60536 2.29289 2.79289C2.10536 2.98043 2 3.23478 2 3.5V10.5C2 10.7652 2.10536 11.0196 2.29289 11.2071C2.48043 11.3946 2.73478 11.5 3 11.5H8.5C8.76522 11.5 9.01957 11.3946 9.20711 11.2071C9.39464 11.0196 9.5 10.7652 9.5 10.5V3.5C9.5 3.23478 9.39464 2.98043 9.20711 2.79289C9.01957 2.60536 8.76522 2.5 8.5 2.5ZM7 0.5H1C0.734784 0.5 0.48043 0.605357 0.292893 0.792893C0.105357 0.98043 0 1.23478 0 1.5V8.5H1V1.5H7V0.5Z",fill:"#007FA9"})))}const i=o.forwardRef(s);t.p;t.d(r,["h",0,i])},84910(e,r,t){var a,o,l,s,i,n,d,c,p,u,h,m,x,g,f,b,v,y,w,C,j,k=t(9950);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},S.apply(null,arguments)}function N(e,r){let{title:t,titleId:N,...H}=e;return k.createElement("svg",S({width:201,height:200,viewBox:"0 0 201 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":N},H),t?k.createElement("title",{id:N},t):null,a||(a=k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 42L80 62V77L10 97C10 97 0 90 0 69.5C0 49 10 42 10 42Z",fill:"#FFFDCC"})),o||(o=k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M124 15C123.448 15 123 15.4477 123 16V22.5858L118.343 17.9289C117.953 17.5384 117.319 17.5384 116.929 17.9289C116.538 18.3195 116.538 18.9526 116.929 19.3431L121.586 24H115C114.448 24 114 24.4477 114 25C114 25.5523 114.448 26 115 26H121.586L116.929 30.6569C116.538 31.0474 116.538 31.6805 116.929 32.0711C117.319 32.4616 117.953 32.4616 118.343 32.0711L123 27.4142V34C123 34.5523 123.448 35 124 35C124.552 35 125 34.5523 125 34V27.4142L129.657 32.0711C130.047 32.4616 130.681 32.4616 131.071 32.0711C131.462 31.6805 131.462 31.0474 131.071 30.6569L126.414 26H133C133.552 26 134 25.5523 134 25C134 24.4477 133.552 24 133 24H126.414L131.071 19.3431C131.462 18.9526 131.462 18.3195 131.071 17.9289C130.681 17.5384 130.047 17.5384 129.657 17.9289L125 22.5858V16C125 15.4477 124.552 15 124 15Z",fill:"#EBECED"})),l||(l=k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M171 55C170.448 55 170 55.4477 170 56V62.5858L165.343 57.9289C164.953 57.5384 164.319 57.5384 163.929 57.9289C163.538 58.3195 163.538 58.9526 163.929 59.3431L168.586 64H162C161.448 64 161 64.4477 161 65C161 65.5523 161.448 66 162 66H168.586L163.929 70.6569C163.538 71.0474 163.538 71.6805 163.929 72.0711C164.319 72.4616 164.953 72.4616 165.343 72.0711L170 67.4142V74C170 74.5523 170.448 75 171 75C171.552 75 172 74.5523 172 74V67.4142L176.657 72.0711C177.047 72.4616 177.681 72.4616 178.071 72.0711C178.462 71.6805 178.462 71.0474 178.071 70.6569L173.414 66H180C180.552 66 181 65.5523 181 65C181 64.4477 180.552 64 180 64H173.414L178.071 59.3431C178.462 58.9526 178.462 58.3195 178.071 57.9289C177.681 57.5384 177.047 57.5384 176.657 57.9289L172 62.5858V56C172 55.4477 171.552 55 171 55Z",fill:"#EBECED"})),s||(s=k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 116C16.4477 116 16 116.448 16 117V123.586L11.3431 118.929C10.9526 118.538 10.3195 118.538 9.92893 118.929C9.53841 119.319 9.53841 119.953 9.92893 120.343L14.5858 125H8C7.44772 125 7 125.448 7 126C7 126.552 7.44772 127 8 127H14.5858L9.92893 131.657C9.53841 132.047 9.53841 132.681 9.92893 133.071C10.3195 133.462 10.9526 133.462 11.3431 133.071L16 128.414V135C16 135.552 16.4477 136 17 136C17.5523 136 18 135.552 18 135V128.414L22.6569 133.071C23.0474 133.462 23.6805 133.462 24.0711 133.071C24.4616 132.681 24.4616 132.047 24.0711 131.657L19.4142 127H26C26.5523 127 27 12
16.552 27 126C27 125.448 26.5523 125 26 125H19.4142L24.0711 120.343C24.4616 119.953 24.4616 119.319 24.0711 118.929C23.6805 118.538 23.0474 118.538 22.6569 118.929L18 123.586V117C18 116.448 17.5523 116 17 116Z",fill:"#EBECED"})),i||(i=k.createElement("g",{filter:"url(#filter0_i)"},k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80 86H120L140 170C140 170 133 185 100 185C67 185 60 170 60 170L80 86Z",fill:"white"}))),n||(n=k.createElement("path",{d:"M80 85H79.2101L79.0272 85.7684L59.0272 169.768L58.9465 170.107L59.0938 170.423L60 170C59.0938 170.423 59.0942 170.424 59.0946 170.425L59.0956 170.427L59.0981 170.432L59.1051 170.447C59.1107 170.458 59.1181 170.473 59.1274 170.492C59.1461 170.529 59.1723 170.58 59.2068 170.644C59.2757 170.771 59.3774 170.95 59.5168 171.174C59.7955 171.621 60.2244 172.244 60.8412 172.984C62.0755 174.465 64.0585 176.41 67.087 178.343C73.1502 182.213 83.3449 186 100 186C116.655 186 126.85 182.213 132.913 178.343C135.942 176.41 137.924 174.465 139.159 172.984C139.776 172.244 140.205 171.621 140.483 171.174C140.623 170.95 140.724 170.771 140.793 170.644C140.828 170.58 140.854 170.529 140.873 170.492C140.882 170.473 140.889 170.458 140.895 170.447L140.902 170.432L140.904 170.427L140.905 170.425C140.906 170.424 140.906 170.423 140 170L140.906 170.423L141.053 170.107L140.973 169.768L120.973 85.7684L120.79 85H120H80Z",stroke:"#677078",strokeWidth:2})),d||(d=k.createElement("rect",{x:73,y:116,width:23,height:2,rx:1,fill:"#CCCFD2"})),c||(c=k.createElement("rect",{x:112,y:157,width:23,height:2,rx:1,fill:"#CCCFD2"})),p||(p=k.createElement("rect",{x:71,y:123,width:12,height:2,rx:1,fill:"#CCCFD2"})),u||(u=k.createElement("g",{filter:"url(#filter1_i)"},k.createElement("rect",{x:80,y:54,width:40,height:30,fill:"white"}
1))),h||(h=k.createElement("rect",{x:79,y:53,width:42,height:32,stroke:"#677078",strokeWidth:2})),m||(m=k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M83.5 77C87.6421 77 91 73.6421 91 69.5C91 65.3579 87.6421 62 83.5 62C79.3579 62 76 65.3579 76 69.5C76 73.6421 79.3579 77 83.5 77Z",fill:"#FFFDCC",stroke:"#677078",strokeWidth:2})),x||(x=k.createElement("g",{filter:"url(#filter2_i)"},k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100 34L122 54H78L100 34Z",fill:"white"}))),g||(g=k.createElement("path",{d:"M80.5866 53L100 35.3515L119.413 53H80.5866Z",stroke:"#677078",strokeWidth:2})),f||(f=k.createElement("rect",{x:74,y:52,width:52,height:2,rx:1,fill:"#677078"})),b||(b=k.createElement("rect",{x:74,y:84,width:52,height:2,rx:1,fill:"#677078"})),v||(v=k.createElement("g",{filter:"url(#filter3_i)"},k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 110H29V104.5C29 99.8056 32.8056 96 37.5 96H41C43.7614 96 46 98.2386 46 101C46 101.552 46.4477 102 47 102H48.3333C52.0152 102 55 104.985 55 108.667C55 109.403 55.597 110 56.3333 110H67",fill:"white"}))),y||(y=k.createElement("path",{d:"M20 110H29V104.5C29 99.8056 32.8056 96 37.5 96H41C43.7614 96 46 98.2386 46 101V101C46 101.552 46.4477 102 47 102H48.3333C52.0152 102 55 104.985 55 108.667V108.667C55 109.403 55.597 110 56.3333 110H67",stroke:"#677078",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),w||(w=k.createElement("g",{filter:"url(#filter4_i)"},k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M112 125H122V124C122 118.477 126.477 114 132 114H138V112C138 106.477 142.477 102 148 102H164C169.523 102 174 106.477 174 112V117H183.333C187.015 117 190 119.985 190 123.667C190 124.403 190.597 125 191.333 125H200",fill:"white"}))),C||(C=k.createElement("path",{d:"M112 125H122V124C122 118.477 126.477 114 132 114H138V112C138 106.477 142.477 102 148 102H164C169.523 102 174 106.477 174 112V117H183.333C187.015 117 190 119.985 190 123.667V123.667C190 124.403 190.597 125 191.333 125H200",stroke:"#677078",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),j||(j=k.createElement("defs",null,k.createElement("filter",{id:"filter0_i",x:57.8931,y:84,width:84.2139,height:103,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},k.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),k.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),k.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),k.createElement("feOffset",{dx:-10,dy:-5}),k.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:-1,k3:1}),k.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.97 0 0 0 0 0.97 0 0 0 0 0.97 0 0 0 1 0"}),k.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow"})),k.createElement("filter",{id:"filter1_i",x:78,y:52,width:44,height:34,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},k.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),k.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),k.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),k.createElement("feOffset",{dx:-10,dy:-5}),k.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:-1,k3:1}),k.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.97 0 0 0 0 0.97 0 0 0 0 0.97 0 0 0 1 0"}),k.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow"})),k.createElement("filter",{id:"filter2_i",x:78,y:34,width:44,height:20,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},k.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),k.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),k.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),k.createElement("feOffset",{dx:-10,dy:-5}),k.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:-1,k3:1}),k.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.97 0 0 0 0 0.97 0 0 0 0 0.97 0 0 0 1 0"}),k.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow"})),k.createElement("filter",{id:"filter3_i",x:19,y:95,width:49,height:16,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"}
1,k.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),k.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),k.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),k.createElement("feOffset",{dx:-5,dy:1}),k.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:-1,k3:1}),k.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.97 0 0 0 0 0.97 0 0 0 0 0.97 0 0 0 1 0"}),k.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow"})),k.createElement("filter",{id:"filter4_i",x:111,y:101,width:90,height:25,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},k.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),k.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),k.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),k.createElement("feOffset",{dx:-5,dy:1}),k.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:-1,k3:1}),k.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.97 0 0 0 0 0.97 0 0 0 0 0.97 0 0 0 1 0"}),k.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow"})))))}const H=k.forwardRef(N);t.p;t.d(r,["h",0,H])},25977(e,r,t){var a=t(14491);a.AH`
2  display: flex;
3  justify-content: center;
4  align-items: center;
5`;const o=a.AH`
6  input::-webkit-outer-spin-button,
7  input::-webkit-inner-spin-button {
8    -webkit-appearance: none;
9    margin: 0;
10  }
11  input[type='number'] {
12    -moz-appearance: textfield;
13  }
14`,l=a.i7`
15  0% {
16    opacity: 0;
17  }
18  100% {
19    opacity: 1;
20  }
21`,s=a.AH`
22  button {
23    border: none;
24    font-style: unset;
25
26    &:active,
27    &:focus {
28      background-color: var(--white-color);
29      span {
30        color: var(--gray-90-color);
31      }
32      svg {
33        color: var(--gray-90-color);
34      }
35      &:hover {
36        span {
37          color: var(--white-color);
38        }
39        svg {
40          color: var(--white-color);
41        }
42      }
43    }
44    &:hover {
45      background-color: var(--gray-20-color);
46
47      span {
48        color: var(--gray-90-color);
49      }
50      svg {
51        color: var(--gray-90-color);
52      }
53    }
54
55    svg.indicator {
56      margin-right: 7px;
57    }
58
59    span {
60      color: var(--gray-80-color);
61      min-width: unset;
62      overflow-x: unset;
63      text-overflow: unset;
64    }
65  }
66`;t.d(r,["AJ",0,l,"LK",0,s,"Qk",0,o])},7605(e,r,t){t.d(r,{A:()=>y});var a=t(9950),o=t(48661),l=t(5418),s=t(74047),i=t(14491),n=t(34033),d=t(35657);const c=(0,i.Ay)(n.h)`
67  width: 14px;
68  height: 14px;
69  margin-right: 5px;
70
71  path {
72    fill: var(--primary-color-blue);
73  }
74
75  &:hover {
76    path {
77      fill: var(--primary-color-focus);
78    }
79  }
80`,p=(0,i.Ay)(d.$n)`
81  margin-right: 17px;
82  padding: 0;
83  font-size: 14px;
84  color: var(--primary-color-blue) !important;
85  font-size: 14px;
86  line-height: 16px !important;
87  &:hover {
88    path {
89      fill: var(--primary-color-focus);
90    }
91  }
92`;var u=t(56943),h=t(4406),m=t(42087),x=t(78503),g=t(72004),f=t(95912),b=t(44414);const v=e=>{let{portalId:r,isV2:t}=e;const[i]=(0,o.B)(),{createDistribution:{openCreateDistributionModal:n}}=(0,l.y)(s.BR),{orderEdit:d}=(0,h.EI)(),{isImpersonated:v}=(0,m.GV)(x.Qn),y=!!v||d,w=(0,u.SS)(null!==r&&void 0!==r?r:""),C=(0,a.useCallback)(()=>{n(w.toString(),!0)},[n,w]),j=t?i("general:createSaveDistribution","Create saved distribution from order"):i("general:createASaveDistribution","Create a new saved distribution from order"),k=e=>(0,b.jsxs)(f.oW3,{children:[(0,b.jsx)(f.md8,{asChild:!0,children:e}),(0,b.jsx)(f.bS4,{side:"bottom",align:"center",className:"!omc-bg-neutral-800 !omc-text-gray-50 !omc-z-max",children:i("general:noPermissionAction","You do not have permissions to perform this action.")})]});return 0===w?null:t?y?(0,b.jsx)("p",{onClick:C,className:(0,g.A)("omc-m-0 omc-cursor-pointer omc-truncate omc-px-3 omc-py-2.5 omc-text-lg1 omc-text-neutral-800"),children:j}):k((0,b.jsx)("p",{className:(0,g.A)("omc-m-0 omc-truncate omc-px-3 omc-py-2.5 omc-text-lg1 omc-text-neutral-800 omc-opacity-50 !omc-pointer-events-auto"),onClick:e=>{e.preventDefault(),e.stopPropagation()},children:j})):y?(0,b.jsxs)(p,{level:"link",className:"body-14",onClick:C,title:j,children:[(0,b.jsx)(c,{}),(0,b.jsx)("span",{className:"text-truncate",children:j})]}):k((0,b.jsx)("div",{tabIndex:0,className:(0,g.A)("omc-inline-block !omc-pointer-events-auto"),onClick:e=>{e.preventDefault(),e.stopPropagation()},children:(0,b.jsxs)(p,{level:"link",className:(0,g.A)("body-14","omc-opacity-50"),onClick:e=>{e.preventDefault(),e.stopPropagation()},title:j,children:[(0,b.jsx)(c,{}),(0,b.jsx)("span",{className:"text-truncate",children:j})]})}))},y=(0,a.memo)(v)},18399(e,r,t){var a=t(48661),o=t(35657),l=t(44414);const s=e=>{let{children:r,content:t,direction:s="bottom"}=e,i=!0;const[n]=(0,a.B)();return(0,l.jsx)(o.m_,{content:(e=>{if(e)switch(e.toLowerCase()){case"distributed":return n("orderHistory:distributedToolTip","This release has been distributed.");case"order placed":return n("orderHistory:orderPlacedToolTip","This release was recently created.");case"proof ready":return n("orderHistory:proofReadyToolTip","This release has a proof ready for approval.");case"awaiting distribution":return n("orderHistory:awaitingDistributionToolTip","This release is awaiting distribution.");case"change requested":return n("orderHistory:changesRequestedToolTip","Changes are under review for this release.");case"editorial processing":return n("orderHistory:reviewToolTip","This release is in editorial review.");case"cancelled":return n("orderHistory:cancelledToolTip","This release has been cancelled.");case"draft":return n("orderHistory:draftToolTip","This release is a draft only.");case"on hold":return n("orderHistory:onHoldToolTip","This release is on hold.");case"expand":return n("orderHistory:expandToolTip","Main status for all languages in this order.");default:return""}else i=!1})(t),direction:s,showOnHover:i,"data-testid":"status-tooltip",children:r})};t.d(r,["A",0,s])}
92,95658(e,r,t){var a=t(71316);const o=Object.freeze({"proof ready":"Change Requested"}),l=e=>!!e&&"change requested"===e.toLowerCase();t.d(r,["$R",0,o,"D_",0,l,"K7",0,(e,r,t)=>{switch(e=e?e.toLowerCase():""){case"draft":return`${a.$_.draftLink(t)}${r.portalId}`;case"proof ready":return`${a.$_.proofReadyLink(t)}${r.taskId}`;case"distributed":return r.releaseURL;default:return""}},"Oi",0,e=>e?e[0].toLowerCase()+e.slice(1):"","Td",0,e=>e?e.toLowerCase().replace(/ /g,""):"","YC",0,function(e,r,t){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return"Proof Ready"===e&&null!==a&&"0"===a?"no-cursor-pointer":"Distributed"===e&&""!==r||"Proof Ready"===e&&!l(t)||"Draft"===e?"text-clickable":"no-cursor-pointer"},"mJ",0,e=>(e=>e?e.toLocaleLowerCase().replace(/\s+/gi,"-"):"")(e)])},59031(e,r,t){var a=t(14491),o=t(44414);const l=a.Ay.div`
93  height: 133px;
94  background-color: var(--white-color);
95  display: flex;
96  flex-direction: column;
97  justify-content: flex-end;
98  padding: 15px 16px;
99  margin-bottom: 16px;
100`,s=a.Ay.h2`
101  margin: 0;
102  font-weight: bold;
103`,i=a.Ay.h1`
104  margin: 0;
105  font-weight: bold;
106`,n=a.Ay.span`
107  text-transform: uppercase;
108  padding: 3px 5px;
109  color: var(--white-color) !important;
110  background-color: var(--purple-dark-color);
111  width: 42px;
112  border-radius: 4px;
113  height: 20px;
114  margin-left: 12px;
115`,d=e=>{let{title:r,subtitle:t,tag:a,level:d=2}=e;const c=1===d?i:s;return(0,o.jsxs)(l,{className:"page-summary drop-shadow-10",children:[(0,o.jsxs)("div",{className:"d-flex align-items-center",children:[(0,o.jsx)(c,{"data-testid":"title",className:"ellipsify-1",children:r}),a?(0,o.jsx)(n,{"data-testid":"tag",className:"body-text-small text-center",children:a}):null]}),(0,o.jsx)("span",{"data-testid":"sub-title",className:"body-16 ellipsify-1",children:t})]})};t.d(r,["A",0,d])},39515(e,r,t){t.d(r,{A:()=>c});var a=t(35657),o=t(25977);const l=t(14491).Ay.div`
116  ${o.LK}
117  .toolbar-search-box {
118    position: relative;
119    display: none;
120
121    .text-search {
122      position: absolute;
123      top: 11px;
124      left: 11px;
125    }
126
127    .text-cancel {
128      position: absolute;
129      top: 10px;
130      right: 10px;
131      cursor: pointer;
132    }
133
134    input {
135      width: 0px;
136      border-radius: 4px;
137      padding-left: 36px;
138      padding-right: 40px;
139    }
140
141    &.active {
142      display: block;
143      input {
144        width: 100%;
145      }
146    }
147  }
148`;var s=t(72004),i=t(9950),n=t(44414);const d=e=>{let{searchText:r,setSearchText:t,isSearchBoxOpen:o,setIsSearchBoxOpen:i,placeholder:d,matchPattern:c,id:p,disableAutoFocus:u=!1,disableSearchBarClose:h=!1,disableToggleSearch:m=!1,disableSearch:x=!1,inputClasses:g,iconClasses:f}=e;const b=()=>{o&&t(""),i&&i(!o)};return(0,n.jsxs)(l,{children:[(0,n.jsx)(a.$n,{"aria-label":"search",circle:!0,size:"md",id:"drillDownSearch",className:"navigator text-body "+(o?"hide":""),onClick:b,disabled:m,"data-testid":"search-toggle-btn",children:(0,n.jsx)(a.In,{fill:"currentColor",height:"17.49",name:"search",width:"17.49"})}),(0,n.jsxs)("div",{"data-testid":"search-box",className:"toolbar-search-box "+(o?"active":""),children:[(0,n.jsx)(a.In,{fill:"currentColor",height:"17.49",name:"search",width:"17.49",className:(0,s.A)("text-search",f)}),o&&(0,n.jsx)(a.pd,{autoFocus:!u,className:(0,s.A)("omc-w-full omc-border omc-border-solid !omc-border-neutral-300",g),id:p,placeholder:d,value:r,onChange:e=>{const r=e.target.value;r&&r.match(c)||!r?t(r):e.preventDefault()},disabled:x,"data-testid":"search-input"}),!h&&(0,n.jsx)(a.In,{"data-testid":"toggle-search-icon",fill:"currentColor",height:"20",name:"clear",width:"20",className:"text-cancel",onClick:b})]})]})},c=(0,i.memo)(d)},1123(e,r,t){t.d(r,{A:()=>x});var a=t(9950),o=t(48661),l=t(14491),s=t(35657);const i=(0,l.Ay)(s.In)`
149  width: 14px;
150  height: 14px;
151  margin-right: 5px;
152  fill: var(--primary-color-blue);
153`,n=(0,l.Ay)(s.$n)`
154  margin-right: 17px;
155  padding: 0;
156  font-size: 14px;
157  color: var(--primary-color-blue) !important;
158  font-size: 14px;
159  line-height: 16px;
160`;var d=t(71316),c=t(42087),p=t(50659),u=t(56943),h=t(72004),m=t(44414);const x=e=>{let{orderId:r="0",isDraft:t=!1,displayStatus:l,opid:s="",isV2:x}=e;const[g]=(0,o.B)(),f=(0,c.jL)(),{navigateTo:b}=(0,c.Zp)(),[v,y]=(0,a.useState)(0),w="Proof Ready"===l&&"0"===r,C=()=>{const e={displayStatus:l};f((0,p.ok)({path:"",value:e})),b({pathname:d.GJ.orderDetails,search:`?${d.Rr}=${v}${s?`&opid=${s}`:""}`})};return(0,a.useEffect)(()=>{const e=r?parseFloat(r):0;y(t&&e>0?e:(0,u.SS)(r))},[r,t]),0!==v?x?(0,m.jsx)("p",{onClick:C,className:(0,h.A)("omc-m-0 omc-cursor-pointer omc-px-3 omc-py-2.5 omc-text-lg1 omc-text-neutral-800",w&&"omc-pointer-events-none omc-opacity-50"),children:g("createRelease:viewOrderDetailsSmall","View order details")}):(0,m.jsxs)(n,{level:"link",onClick:C,className:(0,h.A)(w?"":"hover:has-[svg]:fill-primary-focus"),disabled:w,children:[(0,m.jsx)(i,{name:"view",className:(0,h.A)(w&&"omc-opacity-50")}
160),g("createRelease:viewOrderDetails","View Order Details")]}):null}},35776(e,r,t){t.r(r),t.d(r,{OrderHistory:()=>or,default:()=>lr});var a,o=t(59051),l=t.n(o),s=t(9950),i=t(48661),n=t(35657),d=t(76363),c=t(84711),p=t(87946),u=t.n(p),h=t(42087),m=t(59031),x=t(92526);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},g.apply(null,arguments)}function f(e,r){let{title:t,titleId:o,...l}=e;return s.createElement("svg",g({width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":o},l),t?s.createElement("title",{id:o},t):null,a||(a=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.478 2.6217C6.95803 2.6217 2.47803 7.1017 2.47803 12.6217C2.47803 18.1417 6.95803 22.6217 12.478 22.6217C17.998 22.6217 22.478 18.1417 22.478 12.6217C22.478 7.1017 17.998 2.6217 12.478 2.6217ZM11.478 17.6217V11.6217H13.478V17.6217H11.478ZM11.478 7.6217V9.6217H13.478V7.6217H11.478Z",fill:"#007FA9"})))}const b=s.forwardRef(f);t.p;var v;function y(){return y=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},y.apply(null,arguments)}function w(e,r){let{title:t,titleId:a,...o}=e;return s.createElement("svg",y({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":a},o),t?s.createElement("title",{id:a},t):null,v||(v=s.createElement("path",{d:"M13.65 2.35C12.2 0.9 10.21 0 8.00001 0C3.58001 0 0.0100098 3.58 0.0100098 8C0.0100098 12.42 3.58001 16 8.00001 16C11.73 16 14.84 13.45 15.73 10H13.65C12.83 12.33 10.61 14 8.00001 14C4.69001 14 2.00001 11.31 2.00001 8C2.00001 4.69 4.69001 2 8.00001 2C9.66001 2 11.14 2.69 12.22 3.78L9.00001 7H16V0L13.65 2.35Z",fill:"#677078"})))}const C=s.forwardRef(w);t.p;var j=t(9372),k=t(16702),S=t(31308),N=t(56943),H=t(71316),E=t(44414);const L=e=>{let{menuItems:r,onOptClick:t,children:a,defaultValue:o,menuPosition:l,disabled:d=!1}=e;const[c]=(0,i.B)(),p=(0,s.useCallback)(()=>r.map(e=>{const r={onClick(){t(e.id)}};return{...e,...r,label:c(`orderHistory:${e.locizeKey}`,e.label),"data-testid":`enhanced-dropdown-${e.id}`}}),[r,t,c]);return(0,E.jsx)(n.UO,{defaultIsOpen:!1,disabled:d,isOpen:void 0,defaultValue:o,menuItems:p(),defaultChecked:!0,menuProps:{position:l,className:"enhanced-dropdown-menu text-body"},"data-testid":"easy-select",children:a})},I=(0,s.memo)(L);var A=t(25977),O=t(14491);const R=O.Ay.div`
161  ${A.LK}
162
163  .enhanced-dropdown-menu {
164    min-width: 220px;
165    div {
166      button {
167        padding: 8px 16px;
168        line-height: 24px;
169        &:hover,
170        &:active,
171        &:focus {
172          background-color: var(--gray-10-color);
173        }
174        span {
175          color: var(--gray-90-color);
176        }
177      }
178    }
179  }
180`,T=e=>(0,E.jsx)(R,{"data-testid":"toolbar-select",children:(0,E.jsxs)(I,{disabled:e.disableDropdown,menuItems:e.options,onOptClick:e.onSelect,menuPosition:"bottomRight",children:[e.icon,e.display,(0,E.jsx)(n.In,{name:"arrow-drop-down"})]})});var P=t(99198),B=t.n(P),D=t(85494),$=t.n(D);let V;const M=e=>
180{const[r]=(0,i.B)(),[t,a]=(0,s.useState)(""),[o,l]=(0,s.useState)("999"),[n,d]=(0,s.useState)(!1),[c,p]=(0,s.useState)(0);(0,s.useEffect)(()=>()=>{V&&clearTimeout(V)},[]),(0,s.useEffect)(()=>{c&&(V&&clearTimeout(V),V=setTimeout(()=>{d(!1),p(0)},H.cE))},[c]),(0,s.useEffect)(()=>{const r=e.totalPages.toString().length,t=Array(r).fill("9").join("");l(t),a("")},[e.totalPages,e.currentPage]);const u=(0,s.useCallback)(e=>{const r=e.target.value;a(r)},[]),h=()=>{if(""!==t){const r=Number(t);t&&r>=1&&r<=e.totalPages?e.onSubmit(r-1):(a(""),p(c+1),n||d(!0))}};return(0,E.jsxs)("div",{className:"tb-page-input-wrapper",children:[(0,E.jsxs)("label",{className:"body-text form-label",htmlFor:"page-number",children:[r("orderHistory:goToPage","Go to Page"),":"]}),(0,E.jsx)($(),{mask:o,maskChar:null,placeholder:"0",value:t,onChange:u,onKeyUp:e=>{"Enter"===e.key&&h()},onBlur:h,disabled:e.disabled}),n&&(0,E.jsxs)("div",{className:"invalid-page-message",children:[(0,E.jsx)(b,{})," ",r("general:invalidPageNumber","The page you entered does not exist.")]})]})},F=O.Ay.div`
181  // This style sheet is in accordance with the classnames
182  // used for react-paginator's ReactPaginate props
183  ${A.LK}
184  flex-grow: 1;
185  display: flex;
186  justify-content: flex-end;
187  align-items: center;
188
189  button:disabled {
190    color: var(--gray-40-color) !important;
191  }
192
193  button.navigator {
194    border: none;
195    display: flex;
196    justify-content: center;
197
198    &:hover,
199    &:active,
200    &:focus {
201      background-color: var(--gray-20-color);
202    }
203  }
204  .page-info {
205    padding: 0px 8px;
206  }
207
208  .tb-page-input-wrapper {
209    ${A.Qk};
210    margin-left: 6px;
211
212    label {
213      margin: 0;
214    }
215
216    input {
217      width: 48px;
218      padding: 8px;
219      margin-left: 8px;
220      border: 1px solid var(--gray-60-color);
221      border-radius: 4px;
222    }
223
224    .invalid-page-message {
225      top: calc(100% + 4px);
226      position: absolute;
227      background-color: var(--white-color);
228      padding: 16px;
229      right: 0;
230      background: var(--white-color);
231      box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
232      border-radius: 4px;
233      z-index: 100;
234    }
235  }
236  .tb-paginator {
237    display: flex;
238    padding-left: 0;
239    list-style: none;
240    margin: 0;
241    align-items: center;
242
243    .tb-page-arrow {
244      height: 40px;
245      width: 40px;
246      display: flex;
247      align-items: center;
248      justify-content: center;
249      border-radius: 20px;
250
251      &.disabled {
252        cursor: default;
253        .tb-page-link {
254          cursor: default;
255        }
256        svg {
257          fill: var(--gray-40-color);
258        }
259      }
260
261      &:first-child {
262        margin-right: 4px;
263      }
264
265      &:last-child {
266        margin-left: 4px;
267      }
268
269      svg {
270        fill: var(--gray-80-color);
271      }
272
273      &:not(.disabled):hover {
274        background-color: var(--gray-20-color);
275        svg {
276          fill: var(--gray-90-color);
277        }
278      }
279    }
280
281    .tb-page-item {
282      height: 24px;
283      min-width: 24px;
284      display: flex;
285      justify-content: center;
286      align-items: center;
287      border-radius: 4px;
288      margin: 0px 4px;
289
290      &:hover {
291        background-color: var(--gray-20-color);
292        text-decoration: none;
293        cursor: pointer;
294      }
295
296      .tb-page-link {
297        color: var(--gray-80-color);
298        font-size: 14px;
299        line-height: 24px;
300        text-decoration: none;
301        padding: 0px 8px;
302
303        &:hover {
304          color: var(--gray-90-color);
305        }
306      }
307
308      &.active {
309        border: 1px solid var(--primary-color-blue);
310        cursor: default;
311        .tb-page-link {
312          cursor: default;
313        }
314      }
315    }
316  }
317`,_=e=>{const r=r=>{e.setPageNumber(r)};return(0,E.jsxs)(F,{children:[(0,E.jsx)(B(),{breakLabel:"...",pageClassName:"tb-page-item",pageLinkClassName:"tb-page-link",previousClassName:"tb-page-arrow",previousLinkClassName:"tb-page-link",nextClassName:"tb-page-arrow",nextLinkClassName:"tb-page-link",breakClassName:"tb-page-item",breakLinkClassName:"tb-page-link",containerClassName:"tb-paginator",activeClassName:"active",previousLabel:(0,E.jsx)(n.In,{height:"20",width:"20",name:"arrow-back"}),nextLabel:(0,E.jsx)(n.In,{height:"20",width:"20",name:"arrow-forward"}),onPageChange:e=>{r(e.selected)},pageRangeDisplayed:3,marginPagesDisplayed:1,pageCount:e.totalPages,renderOnZeroPageCount:()=>null,forcePage:e.currentPage}),e.totalPages>0?(0,E.jsx)(M,{totalPages:e.totalPages,onSubmit:e=>{r(e)},currentPage:e.currentPage,disabled:e.disablePageInput}):null]})},z=(0,s.memo)(_);var U=t(39515);const G=O.Ay.div`
318  .searchExpanded {
319    width: 370px;
320  }
321
322  .grid-toolbar {
323    display: flex;
324    align-items: center;
325    min-height: 55px;
326    padding: 0 15px;
327    position: relative;
328    justify-content: space-between;
329
330    .sa-paginator,
331    .sa-search {
332      margin-left: 8px;
333    }
334  }
335`,K=e=>{const[r]=(0,i.B)();return(0,E.jsx)(G,{children:(0,E.jsxs)("div",{className:"grid-toolbar",children:[(0,E.jsx)(T,{options:e.filterOptions,onSelect:e.setFilterBy,icon:(0,E.jsx)(n.In,{name:"filter",className:"indicator"}),display:e.filterText,disableDropdown:e.disableDropdown}),e.isSearchBoxOpen?null:(0,E.jsx)(z,{totalPages:e.totalPages,currentPage:e.currentPage,setPageNumber:e.setPageNumber,disablePageInput:e.disableDropdown}),(0,E.jsx)("div",{className:e.isSearchBoxOpen?"searchExpanded":"ms-3",children:(0,E.jsx)(U.A,{placeholder:r("orderHistory:searchText","Search by order number"),searchText:e.searchText,setSearchText:e.setSearchText,isSearchBoxOpen:e.isSearchBoxOpen,setIsSearchBoxOpen:e.setIsSearchBoxOpen,matchPattern:/^[0-9-]
335*$/,id:"orderHistoryStatusSearch",disableSearch:e.disableSearch,disableToggleSearch:e.disableToggleSearch})})]})})},Z="p30days",q="p3months",Y="p12months",J="allOrder",W=[{id:Z,label:"Past 30 days",value:Z,locizeKey:"past30Days"},{id:q,label:"Past 3 months",value:q,locizeKey:"past3Months"},{id:Y,label:"Past 12 months",value:Y,locizeKey:"past12Months",isDefaultSelection:!0},...Array.from({length:2},(e,r)=>{const t=(new Date).getFullYear()-r;return{id:`dynamic-${t}`,label:`${t}`,value:`dynamic-${t}`,locizeKey:""}}),{id:J,label:"All Orders (Past 2 Years)",value:J,locizeKey:"allOrders"}],Q=[{heading:"Release Name",value:"headline",isSortable:!1,isSortDesc:!1,locizeKey:"colReleaseName"},{heading:"Status",value:"status",isSortable:!1,isSortDesc:!1,locizeKey:"colStatus"},{heading:"Placed By",value:"author",isSortable:!1,isSortDesc:!1,locizeKey:"colPlacedBy"},{heading:"Last edited",value:"LastModifiedOn",isSortable:!0,isSortDesc:!0,locizeKey:"lastEdited"},{heading:"Order",value:"portalId",isSortable:!1,isSortDesc:!1,locizeKey:"colOrder"}];const{HOSTED_URLS:X,REGION_MAPPING:ee}=window._env_;var re=t(28254);const te=e=>{let{sortBy:r,sortType:t,toggleSort:a,hasError:o=!1}=e;const[l]=(0,i.B)(),n=(0,s.useCallback)(e=>()=>{a(e.value)},[a]);return(0,E.jsx)("thead",{children:(0,E.jsx)("tr",{children:Q.map((e,a)=>(0,E.jsx)("th",{"data-testid":`header-${e.value}`,onClick:!o&&e.isSortable?n(e):void 0,className:e.isSortable?"cursour-pointer":"",children:(0,E.jsxs)("div",{className:"col-wrapper",children:[l(`orderHistory:${e.locizeKey}`,e.heading),!o&&e.isSortable?(0,E.jsx)(re.A,{sortType:r===e.value?t:""}):null]})},`header-${e.value}`))})})};var ae,oe=t(62378);function le(){return le=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},le.apply(null,arguments)}function se(e,r){let{title:t,titleId:a,...o}=e;return s.createElement("svg",le({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":a},o),t?s.createElement("title",{id:a},t):null,ae||(ae=s.createElement("path",{d:"M10 17L15 12L10 7V17Z",fill:"#677078"})))}const ie=s.forwardRef(se);t.p;var ne=t(95658),de=t(41397),ce=t(78503),pe=t(78813),ue=t(90246),he=t(92965);const me=e=>{let{title:r,release:t,index:a=0,geocode:o,isShared:l,createdBy:n}=e;const[d]=(0,i.B)(),c=(0,h.GV)(x.cn),p=(0,h.GV)(ce.H4),{isDraftShareEnabledDistribute:u}=(0,h.Uu)();if((0,de.isEmpty)(r)){const e=t.portalId;r=`${d("general:releaseSubmissionNotice")} ${d("dateTime:date",{date:t.firstEnqueryDateCreated||t.dateCreated,formatParams:{...(0,N.VD)(o,"medium",null===c||void 0===c?void 0:c.bureau_name)}})} ${d("dateTime:time",{date:t.firstEnqueryDateCreated||t.dateCreated,formatParams:{...(0,N.VD)(o,"medium",null===c||void 0===c?void 0:c.bureau_name)}})} ${e?` - ${e}`:""}`}const m=(0,s.useMemo)(()=>u&&l&&(0,N.xo)(p,n||""),[u,l,p,n]);return(0,E.jsxs)("div",{className:"d-flex flex-row omc-gap-2 debashis-headline-link",children:[(0,E.jsx)("span",{title:r,children:r}),m?(0,E.jsx)(pe.A,{placement:"bottom",trigger:["hover","click","focus"],overlay:(0,E.jsx)(ue.A,{className:"tooltip-body shared-tooltip-body",id:`uniq-${a}`,children:(0,E.jsxs)("div",{children:[(0,E.jsx)("span",{className:"d-flex text-wrap body-14 bold",children:d("createRelease:sharedBy","Shared by ")}),(0,E.jsx)("span",{className:"body-14",children:n})]})}),children:(0,E.jsx)("div",{className:"ms-auto text-gray-90",tabIndex:0,children:(0,E.jsx)(he.h,{})})}):null]})};var xe=t(18399),ge=t(2482),fe=t(22891);const be=e=>{let{tasks:r,isExpanded:t,geocode:a,release:o,onEventCall:l,onRowDataHover:s}=e;const[n]=(0,i.B)();return r&&r.length>1?(0,E.jsx)(E.Fragment,{children:r.map((e,r)=>(0,E.jsxs)("tr",{"data-testid":`task-${e.displayStatus}`,onKeyUp:r=>((e,r)=>{const t="Distributed"===r.displayStatus&&""!==r.releaseURL,a="Proof Ready"===r.displayStatus;(t||a)&&"Enter"===e.key&&l(o,r,r.orderId)})(r,e),onClick:()=>{return r=e.displayStatus,t=o.portalId,"proof ready"===(null===r||void 0===r?void 0:r.toLowerCase())&&"0"===t?null:l(o,e,e.orderId);var r,t},tabIndex:0,className:`${s(o,e.orderId)} nested-data ${t?"open":""}`,children:[(0,E.jsxs)("td",{className:"left-indent",children:[(0,E.jsx)("span",{className:`${s(o,e.orderId)} headline`,children:(0,E.jsx)(me,{title:e.headline,status:e.displayStatus,release:o,isTask:!0,index:r,geocode:a,isShared:!1,createdBy:""})}),(0,E.jsx)("span",{className:"subheadline",children:n(`language:${(0,ge.B)(e.language)}`,e.language)})]}),(0,E.jsxs)("td",{className:"left-indent",children:[e.isOnHold&&!fe.TY.includes(null===e||void 0===e?void 0:e.displayStatus.toLowerCase())&&(0,E.jsx)("span",{className:"on-hold-indicator",children:n("orderHistory:onHold","ON HOLD")}),(0,E.jsx)(xe.A,{content:e.isOnHold?"ON HOLD":e.displayStatus,direction:"bottom-right",children:(0,E.jsx)("span",{tabIndex:-1,
335className:`order-status ${s(o,e.orderId)} ${(0,ne.mJ)(e.displayStatus)}`,children:n(`orderHistory:${(0,ne.Td)(e.displayStatus)}`,`${e.displayStatus}`)})})]}),(0,E.jsx)("td",{children:"---"}),(0,E.jsx)("td",{children:"---"}),(0,E.jsx)("td",{className:"omc-whitespace-nowrap",children:e.orderId})]},`tbl-data-task-${r}`))}):null};var ve=t(1123),ye=t(72004),we=t(7605),Ce=t(50659);const je=(e,r,t)=>`p${e}-o${t}-t${r}`.replace(/-/g,""),ke=e=>{const[r]=(0,i.B)(),[t,a]=(0,s.useState)([]),o=(0,h.GV)(x.Mv),l=(0,h.GV)(x.cn),n=(0,h.GV)(ce.H4),{isOrderProofV2Enabled:d}=(0,h.Uu)(),c=(0,s.useRef)([]),{navigateTo:p}=(0,h.Zp)(),m=(0,h.jL)(),g=(0,s.useMemo)(()=>{const{data:r}=e;return r.map(e=>{var r;return{...e,tasks:null===(r=e.tasks)||void 0===r?void 0:r.filter(e=>!("Complete"===e.status&&""===e.clearTime.trim()))}})},[e.data]);(0,s.useEffect)(()=>{const e=[],r=["editorial processing","proof ready","order placed","awaiting distribution","changes requested"];g.forEach(t=>{var a;if(r.includes(null===(a=t.displayStatus)||void 0===a?void 0:a.toLowerCase())&&t.tasks&&t.tasks.length>1){const r=je(t.portalId||"",t.taskId,t.orderId);e.push(r)}}),a(e)},[g]);const f=(e,r,t)=>"Proof Ready"===e.displayStatus&&r||(t&&e.tasks&&e.tasks.length?e.tasks[0].orderId:e.orderId),b=(e,r)=>{var t;const a=null===(t=e.tasks)||void 0===t?void 0:t.find(e=>e.orderId===r),l=r?null===a||void 0===a?void 0:a.displayStatus:e.displayStatus,s=r?null===a||void 0===a?void 0:a.releaseURL:e.releaseURL,i="Distributed"===l?"_blank":"_self",n="Draft"===l||"Proof Ready"===l&&!(0,ne.D_)(e.topTaskStatus)||"Distributed"===l&&""!==s,d=!0,c={orderId:e.tasks&&e.tasks.length?e.tasks[0].orderId:e.orderId,portalId:(null===e||void 0===e?void 0:e.portalId)||"",taskId:f(e,r,d),releaseURL:e.tasks&&e.tasks.length?r?null===a||void 0===a?void 0:a.releaseURL:e.tasks[0].releaseURL:e.releaseURL},p=n&&l?(0,ne.K7)(l,c,o):"";return e.tasks&&1===e.tasks.length&&p||n?{clickableUrl:p,targetStatus:i}:null},v=(e,r,t)=>{const a=b(e,null===r||void 0===r?void 0:r.orderId),{portalId:o}=e,l=(0,N.SS)(null!==o&&void 0!==o?o:""),s=r?null===r||void 0===r?void 0:r.displayStatus:null===e||void 0===e?void 0:e.displayStatus,i={displayStatus:s},n=t||f(e,null===r||void 0===r?void 0:r.orderId,!0);d&&"proof ready"===(null===s||void 0===s?void 0:s.toLowerCase())?(m((0,Ce.ok)({path:"",value:i})),p({pathname:H.GJ.orderDetails,search:`?${H.Rr}=${l}${n?`&opid=${n}`:""}`})):a&&window.open(a.clickableUrl,a.targetStatus,"noopener,noreferrer")},y=(e,r)=>{var t;const{displayStatus:a,releaseURL:o}=e,l=null===(t=e.tasks)||void 0===t?void 0:t.find(e=>e.orderId===r),s=r?null===l||void 0===l?void 0:l.displayStatus:a,i=r?null===l||void 0===l?void 0:l.releaseURL:o;return"Distributed"===s&&""!==i||"Proof Ready"===s||"Draft"===s?"text-clickable":"no-cursor-pointer"},w=e=>{var r;const t=null!==(r=u()(e.target,"localName"))&&void 0!==r?r:"";if(t&&"button"!==t&&["NumpadEnter","Enter"].includes(e.code)){const r=e.currentTarget.getAttribute("data-index");var a;if(c.current&&r)null===(a=c.current[parseInt(r,10)])||void 0===a||a.click()}},C=(e,r)=>"proof ready"===(null===e||void 0===e?void 0:e.toLowerCase())&&"0"===r;return(0,E.jsx)(E.Fragment,{children:g.map((e,i)=>{var d,p,u;const h=je(e.portalId||"",e.taskId,e.orderId),m=e.tasks&&(null===(d=e.tasks)||void 0===d?void 0:d.length)>2?r("orderHistory:additionalLanguages"," Additional Languages"):r("orderHistory:additionalLanguage"," Additional Language"),x=e.tasks&&e.tasks[0]?(0,ge.B)(null===e||void 0===e?void 0:e.tasks[0].language):"",g=(j=e.displayStatus,k=e.topTaskStatus,(0,ne.D_)(k)?k:j);var j,k;const S=f(e,"",!0);return(0,E.jsxs)(s.Fragment,{children:[(0,E.jsxs)("tr",{"data-index":i,tabIndex:b(e)?0:-1,onKeyUp:w,className:`${(0,ne.YC)(e.displayStatus,e.releaseURL||"",e.topTaskStatus,e.portalId)} ${t.includes(h)?"active":""}`,children:[(0,E.jsxs)("td",{children:[e.tasks&&Array.isArray(e.tasks)&&e.tasks.length>1?(0,E.jsx)("button",{className:"expand",onClick:e=>((e,r)=>{if(r.stopPropagation(),t.includes(e)){const r=t.findIndex(r=>e===r),o=[...t];-1!==r&&(o.splice(r,1),a(o))}else a([...t,e])})(h,e),type:"button","data-testid":"expand-btn",children:t.includes(h)?(0,E.jsx)(oe.h,{}):(0,E.jsx)(ie,{})}):null,(0,E.jsx)("span",{"data-testid":"grid-status1",className:(0,ye.A)("headline",(0,ne.YC)(e.displayStatus,e.releaseURL||"",e.topTaskStatus,e.portalId)),onClick:()=>C(e.displayStatus,e.portalId)?null:v(e),ref:e=>{e&&(c.current[i]=e)},children:(0,E.jsx)(me,{title:e.headline,status:e.displayStatus,release:e,geocode:o,isShared:e.isShared,createdBy:null!==(p=e.createdBy)&&void 0!==p?p:""})}),(0,E.jsx)("span",{className:"subheadline",children:e.tasks&&e.tasks[0]?`${r(`language:${x}`,`${null===e||void 0===e?void 0:e.tasks[0].language}`)}${e.tasks.length>1?", +"+(e.tasks.length-1)+m:""}`:""}),(0,E.jsxs)("div",{className:"d-flex flex-column",children:[(0,E.jsx)(ve.A,{orderId:e.portalId,opid:S,displayStatus:e.displayStatus}),e.isShared&&(0,N.xo)(n,e.createdBy)?null:(0,E.jsx)(we.A,{portalId:(null!==(u=e.portalId)&&void 0!==u?u:0).toString()})]})]}),(0,E.jsxs)("td",{className:"status-cell",children:[e.isOnHold&&!fe.TY.includes(null===e||void 0===e?void 0:e.displayStatus.toLowerCase())&&(0,E.jsx)("span",{className:"on-hold-indicator",children:r("orderHistory:onHold","ON HOLD")}),(0,E.jsx)(xe.A,{content:e.isOnHold?"ON HOLD":e.tasks&&e.tasks.length>1?"expand":g,direction:"bottom-right",children:(0,E.jsx)("span",{"data-testid":"grid-status",tabIndex:-1,
335className:(0,ye.A)("order-status",(0,ne.mJ)(g),(0,ne.YC)(e.displayStatus,e.releaseURL||"",e.topTaskStatus,e.portalId)),onClick:()=>C(e.displayStatus,e.portalId)?null:v(e),children:r(`orderHistory:${(0,ne.Td)(g)}`,`${H=e.displayStatus,L=g,L===ne.$R[H.toLowerCase()]||"Change Requested"===L?r("orderHistory:changesRequested"," Changes Requested"):L}`)})})]}),(0,E.jsx)("td",{children:e.author}),(0,E.jsxs)("td",{children:[(0,E.jsx)("p",{className:"order-date",children:r("dateTime:date",{date:e.dateModified,formatParams:{...(0,N.VD)(o,"medium",null===l||void 0===l?void 0:l.bureau_name)}})}),(0,E.jsx)("p",{className:"order-time",children:r("dateTime:time",{date:e.dateModified,formatParams:{...(0,N.VD)(o,"medium",null===l||void 0===l?void 0:l.bureau_name)}})})]}),(0,E.jsx)("td",{className:"orderNumber",children:e.orderId})]}),(0,E.jsx)(be,{release:e,tasks:e.tasks,isExpanded:t.includes(h),geocode:o,onEventCall:v,onRowDataHover:y})]},"row-"+h);var H,L})})};var Se=t(88957);const Ne=()=>(0,E.jsx)("tr",{"data-testid":"order-history-grid-loader",children:(0,E.jsx)("td",{colSpan:5,children:(0,E.jsx)(Se.eO,{viewBox:"0 0 620 230"})})}),He=(0,s.memo)(Ne),Ee=e=>{const[r]=(0,i.B)();return(0,E.jsx)(k.A,{errorHeading:r("general:errorFallbackHeading","Something went wrong on our end"),message:r("general:errorFallbackMessage","Sorry, something went wrong with displaying results."),errorCode:e.errorCorrelationId,widgetHeading:r("orderHistory:orderHistoryAndStatus","Order History & Status"),imageKey:"image-2",onRetry:e.handleOrderHistoryCompleteData,isCompleteOrderList:!0})};var Le=t(39145),Ie=t(39767);const Ae=()=>{const[e]=(0,i.B)();return(0,E.jsx)("tr",{"data-testid":"order-history-grid-empty",children:(0,E.jsx)("td",{colSpan:5,children:(0,E.jsxs)("div",{className:"no-release-found",children:[(0,E.jsx)("div",{className:"title",children:e("orderHistory:noOrderPlaced","You have not placed any orders yet. Your future orders and activity will be displayed here.")}),(0,E.jsxs)(Ie.N_,{to:{pathname:H.ut.createPressRelease},className:"btn-send-press-release",children:[" ",e("orderHistory:submitPressRelease","Submit a Press Release")]}),(0,E.jsx)("div",{className:"image-container",children:(0,E.jsx)(Le.h,{})})]})})})};var Oe=t(86781),Re=t(68459),Te=t(84910);const Pe=O.Ay.tr`
336  .grid-no-result {
337    width: 100% !important;
338
339    .title {
340      font-size: 16px;
341      line-height: 24px;
342      font-weight: 700;
343      color: var(--gray-90-color);
344      margin: 32px 0;
345    }
346
347    .error-status-title {
348      margin: 16px 0;
349    }
350    .lighhouse-img {
351      text-align: center;
352    }
353    .btn-send-press-release {
354      font-size: 14px;
355      font-weight: 400;
356      line-height: 24px;
357      color: var(--primary-color-blue);
358      border: 1px solid var(--primary-color-blue);
359      border-radius: 20px;
360      padding: 10px;
361      text-decoration: none;
362      margin-bottom: 16px;
363    }
364
365    .change-filter {
366      margin-right: 10px;
367    }
368    .error-status_button {
369      margin-top: 20px;
370      margin-bottom: 25px;
371    }
372
373    .error-status-back {
374      cursor: pointer;
375      font-family: Proxima Nova;
376      font-style: normal;
377      font-weight: normal;
378      font-size: 14px;
379      line-height: 24px;
380      display: flex;
381      align-items: center;
382      color: var(--primary-color-blue);
383      padding: 0px 0px 20px 0px;
384    }
385    .image-container {
386      display: flex;
387      flex: 1;
388      width: 100%;
389      justify-content: center;
390      margin-bottom: 52px;
391    }
392  }
393`,Be=e=>{let{setFilterBy:r,setSearchText:t,setIsSearchBoxOpen:a}=e;const[o]=(0,i.B)(),l=e=>()=>{r(e),t(""),a(!1)};return(0,E.jsx)(Pe,{children:(0,E.jsxs)("td",{className:"grid-no-result",colSpan:5,children:[(0,E.jsxs)(Oe.A,{children:[(0,E.jsxs)(Re.A,{md:6,"data-testid":"no-result-panel",children:[(0,E.jsx)("p",{className:"title error-status-title","data-testid":"no-result-panel-text1",children:o("orderHistory:errorStatusTitle","Oops! There are no press release orders that match your search criteria.")}),(0,E.jsxs)("span",{"data-testid":"no-result-panel-text2",children:[o("orderHistory:errorStatusTxt","Please double check that the number entered matches the order.")," "]}),(0,E.jsxs)("div",{children:[(0,E.jsx)("p",{className:"title error-status-title","data-testid":"no-result-panel-text3",children:o("orderHistory:errorStatusNote","Note")}),(0,E.jsx)("ul",{className:"omc-list-disc",children:(0,E.jsx)("li",{children:o("orderHistory:errorStatusNoteTxt","You can search by either a confirmation number or an order number. Confirmation and order numbers must be entered exactly as they are listed")})})]})]}),(0,E.jsx)(Re.A,{md:6,className:"lighhouse-img",children:(0,E.jsx)(Te.h,{})})]}),(0,E.jsxs)("div",{className:"error-status_button",children:[(0,E.jsx)(n.$n,{className:"change-filter",level:"secondary",size:"md",onClick:l(Z),"data-testid":"past30days-btn",children:o("orderHistory:viewOrders30days","View Orders From the Past 30 Days")}),(0,E.jsx)(n.$n,{className:"change-filter",level:"secondary",size:"md",onClick:l(q),children:o("orderHistory:viewOrders3Months","View Orders From the Past 3 Months")}),(0,E.jsx)(n.$n,{className:"change-filter",level:"secondary",size:"md",onClick:l(J),children:o("orderHistory:viewAllOrders","View All Orders From the Past 2 Years")})]}),(0,E.jsx)("div",{children:(0,E.jsxs)("span",{className:"error-status-back",onClick:()=>{t(""),a(!1)},"data-testid":"gridnoresult-reset-btn",children:[(0,E.jsx)(n.In,{height:"20",width:"20",name:"arrow-back"})," ",o("orderHistory:back","Back")]})})]})})},De=()=>{const e=(0,h.GV)(x.$J),[r]=(0,i.B)();
393return(0,E.jsxs)("div",{className:"error-status-help-details","data-testid":"orderhistory-canada-contactinfo",children:[(0,E.jsxs)(Oe.A,{children:[(0,E.jsx)(Re.A,{md:7,children:(0,E.jsx)("p",{className:"error-status-detail-text",children:r("orderHistory:regionClientHelp","REGIONAL CLIENT HELP")})}),(0,E.jsx)(Re.A,{md:5})]}),(0,E.jsx)(Oe.A,{children:"string"!==typeof e?e.map((e,t)=>{let{EMAIL:a,PHONE:o,DIVISION_INFO_LOCIZE_KEY:l,DIVISION_INFO:s}=e;return(0,E.jsxs)(Re.A,{md:"auto",className:"error-status-contact","data-testid":"canada-contact-info",children:[(0,E.jsx)("p",{className:"contact-region-title",children:r(l,s)}),(0,E.jsxs)("p",{className:"error-status-contact-label",children:[r("orderHistory:regionEmailLabel","EMAIL")," :"," ",(0,E.jsx)("span",{className:"error-status-email","data-testid":"support-email",children:a})]}),(0,E.jsxs)("p",{className:"error-status-contact-label",children:[r("orderHistory:regionPhoneLabel","PHONE")," :"," ",(0,E.jsx)("span",{className:"error-status-phone","data-testid":"support-phone",children:o})]})]},`support-contact-${t}`)}):null})]})},$e=()=>{const e=(0,h.GV)(x.$J);let r="",t="";e.length>0&&"string"!==typeof e&&(r=e[0].EMAIL,t=e[0].PHONE);const[a]=(0,i.B)();return(0,E.jsxs)("div",{className:"error-status-help-details","data-testid":"orderhistory-us-contactinfo",children:[(0,E.jsxs)(Oe.A,{children:[(0,E.jsx)(Re.A,{md:7,children:(0,E.jsx)("p",{className:"error-status-detail-text",children:a("orderHistory:contentServiceTitle","If you have any questions or wish to discuss your distribution\n        orders further, please call Content Services.")})}),(0,E.jsx)(Re.A,{md:5})]}),(0,E.jsxs)(Oe.A,{className:"error-status-details",children:[(0,E.jsx)(Re.A,{md:5,className:"error-status-contact",children:a("orderHistory:contentServiceSubTitle","Customer Content Services")}),(0,E.jsxs)(Re.A,{md:6,children:[(0,E.jsxs)("p",{className:"error-status-contact-label",children:[a("orderHistory:regionEmailLabel","EMAIL")," :"," ",(0,E.jsx)("span",{className:"error-status-email","data-testid":"support-email",children:r})]}),(0,E.jsxs)("p",{className:"error-status-contact-label",children:[a("orderHistory:regionPhoneLabel","PHONE")," :"," ",(0,E.jsx)("span",{className:"error-status-phone","data-testid":"support-phone",children:t})]})]}),(0,E.jsx)(Re.A,{md:1})]})]})},Ve=()=>{const[e]=(0,i.B)(),r=(0,h.GV)(x.vY),t=(0,h.GV)(x.BD);let a="",o="";return r.length>0&&"string"!==typeof r&&(a=r[0].EMAIL,o=r[0].PHONE),(0,E.jsxs)("div",{className:"error-status-help-details","data-testid":"orderhistory-emea-contactinfo",children:[(0,E.jsxs)(Oe.A,{children:[(0,E.jsx)(Re.A,{md:7,children:(0,E.jsx)("p",{className:"error-status-detail-text",children:e("orderHistory:clientServiceTitle","If you have any questions about order number or wish to discuss your distribution\n                  orders further, please contact the Client Services Team")})}),(0,E.jsx)(Re.A,{md:5})]}),(0,E.jsxs)(Oe.A,{className:"error-status-details",children:[(0,E.jsx)(Re.A,{md:5,className:"error-status-contact",children:t?e("orderHistory:clientServiceSubTitleIn","India Client Services Team"):e("orderHistory:clientServiceSubTitle","Client Services Team")}),(0,E.jsxs)(Re.A,{md:6,children:[(0,E.jsxs)("p",{className:"error-status-contact-label",children:[e("orderHistory:regionEmailLabel","EMAIL")," :"," ",(0,E.jsx)("span",{className:"error-status-email","data-testid":"support-email",children:a})]}),(0,E.jsxs)("p",{className:"error-status-contact-label",children:[e("orderHistory:regionPhoneLabel","PHONE")," :"," ",(0,E.jsx)("span",{className:"error-status-phone","data-testid":"support-phone",children:o})]})]}),(0,E.jsx)(Re.A,{md:1})]})]})};var Me=t(45358);const Fe=O.Ay.div`
394  .error-status-help {
395    display: flex;
396    flex-direction: column;
397    align-items: flex-start;
398    margin-top: 10px;
399    border: 1px solid var(--gray-20-color);
400    border-radius: 4px;
401    margin-bottom: 10px;
402    .error-status-help-text {
403      padding: 16px 0px 16px 30px;
404      border-bottom: 1px solid var(--gray-20-color);
405      width: 100%;
406      font-family: Proxima Nova;
407      font-style: normal;
408      font-weight: bold;
409      font-size: 16px;
410      line-height: 24px;
411      display: flex;
412      align-items: center;
413      color: var(--gray-90-color);
414    }
415    .error-status-help-details {
416      width: 100%;
417    }
418
419    .error-status-contact {
420      padding-left: 40px;
421      padding-right: 50px;
422      margin-top: 20px;
423      margin-bottom: 40px;
424      border-right: 1px solid var(--gray-20-color);
425    }
426    .error-status-contact:last-child {
427      border-right: none !important;
428    }
429    .error-status-contact,
430    .contact-region-title {
431      font-family: Proxima Nova;
432      font-style: normal;
433      font-weight: bold;
434      font-size: 16px;
435      line-height: 24px;
436      color: var(--gray-90-color);
437    }
438    .contact-region-title {
439      font-weight: normal;
440    }
441    .error-status-email {
442      font-family: Proxima Nova;
443      font-style: normal;
444      font-weight: normal;
445      font-size: 14px;
446      line-height: 24px;
447      display: flex;
448      align-items: center;
449      color: var(--primary-color-blue);
450      padding-left: 5px;
451    }
452    .error-status-contact-label {
453      font-family: Proxima Nova;
454      font-style: normal;
455      font-weight: bold;
456      font-size: 12px;
457      line-height: 16px;
458      display: flex;
459      align-items: center;
460      letter-spacing: 0.07em;
461      color: var(--gray-90-color);
462    }
463    .error-status-phone {
464      font-family: Proxima Nova;
465      font-style: normal;
466      font-weight: normal;
467      font-size: 14px;
468      line-height: 24px;
469      display: flex;
470      align-items: center;
471      color: var(--gray-90-color);
472      padding-left: 5px;
473    }
474    .error-status-detail-text {
475      padding-top: 40px;
476      padding-left: 20px;
477      font-family: Proxima Nova;
478      font-style: normal;
479      font-weight: normal;
480      font-size: 16px;
481      line-height: 24px;
482      color: var(--gray-90-color);
483    }
484  }
485`,_e=()=>{const e=(0,h.GV)(x.eS).toLocaleLowerCase(),[r]=(0,i.B)();return(0,E.jsx)(Fe,{children:(0,E.jsx)("div",{className:"error-status-help",children:(0,E.jsxs)(Me.A,{fluid:!0,children:[(0,E.jsx)(Oe.A,{children:(0,E.jsx)(Re.A,{className:"error-status-help-text",children:r("orderHistory:errorStatusHelpTitle","Need Help Finding an Order?")})}),"canada"===e?(0,E.jsx)(De,{}):"us"===e?(0,E.jsx)($e,{}):(0,E.jsx)(Ve,{})]})})})};var ze=t(86791),Ue=t.n(ze);const Ge="39px",Ke="56px",Ze=O.Ay.div`
486  table.order-history-grid {
487    border-top: 1px solid var(--gray-20-color);
488    width: 100%;
489
490    thead {
491      tr {
492        border-bottom: 1px solid var(--gray-20-color);
493        th {
494          height: ${Ge};
495          color: var(--gray-90-color);
496          line-height: 16px;
497          font-size: 12px;
498          font-weight: 400;
499          letter-spacing: 0.07em;
500          text-transform: uppercase;
501          padding: 5px 12px 0 12px;
502
503          &.cursour-pointer {
504            cursor: pointer;
505          }
506
507          &:nth-child(1) {
508            width: 200px;
509          }
510          &:nth-child(2) {
511            width: 400px;
512          }
513          &:nth-child(3) {
514            width: 150px;
515          }
516          &:nth-child(4) {
517            width: 175px;
518          }
519          &:nth-child(5) {
520            width: 120px;
521          }
522
523          .col-wrapper {
524            display: flex;
525            align-items: center;
526          }
527
528          &.focused {
529            .sorter-icon {
530              path {
531                fill: var(--primary-color-blue);
532              }
533            }
534          }
535        }
536      }
537    }
538
539    tbody {
540      tr {
541        position: relative;
542        border-bottom: 0.1px solid var(--gray-20-color);
543        /* cursor: pointer; */
544        &:hover {
545          background-color: var(--gray-20-color);
546        }
547        &.no-cursor-pointer {
548          cursor: default;
549        }
550        &.no-pointer-events {
551          pointer-events: none;
552          .expand {
553            pointer-events: auto;
554          }
555        }
556        td {
557          position: relative;
558          height: ${Ke};
559          padding: 8px 12px 8px 12px;
560          font-size: 14px;
561          font-weight: 400;
562          font-style: normal;
563          color: var(--gray-90-color);
564
565          &:nth-child(1) {
566            width: 200px;
567          }
568          &:nth-child(2) {
569            max-width: 400px;
570          }
571          &:nth-child(3) {
572            max-width: 150px;
573            overflow: hidden;
574            text-overflow: ellipsis;
575            white-space: nowrap;
576            text-transform: capitalize;
577          }
578
579          &.status-cell {
580            position: relative;
581            .on-hold-indicator {
582              position: absolute;
583              top: 0;
584              font-size: 12px;
585              color: var(--gray-80-color);
586            }
587          }
588
589          .expand {
590            position: absolute;
591            left: -12px;
592            top: 17px;
593            cursor: pointer;
594            border: none;
595            background: no-repeat;
596          }
597          .headline {
598            display: flex;
599            font-size: 14px;
600            font-weight: 700;
601            font-style: normal;
602            line-height: 24px;
603            color: var(--gray-90-color);
604            text-transform: none;
605            cursor: pointer;
606            &.no-cursor-pointer {
607              cursor: default;
608            }
609
610            a,
611            span {
612              text-decoration: none;
613              color: inherit;
614              white-space: nowrap;
615              overflow: hidden;
616              text-overflow: ellipsis;
617              width: 415px;
618            }
619          }
620          .subheadline {
621            font-size: 12px;
622            font-weight: 400;
623            font-style: normal;
624            line-height: 16px;
625            color: var(--gray-80-color);
626          }
627          &.order-number {
628            color: var(--primary-color-blue);
629            line-height: 24px;
630          }
631          .order-status {
632            position: relative;
633            font-size: 12px;
634            font-weight: 400;
635            font-style: normal;
636            line-height: 12px;
637            border-width: 1px;
638            border-style: solid;
639            padding: 5px 8px 5px 29px;
640            border-radius: 28px;
641            background-color: var(--gray-20-color);
642            white-space: nowrap;
643            overflow: hidden;
644            text-overflow: ellipsis;
645            max-width: 154px;
646            display: inline-block;
647            vertical-align: middle;
648            cursor: pointer;
649
650            &.no-cursor-pointer {
651              cursor: default;
652            }
653
654            &::before {
655              position: absolute;
656              content: '';
657              width: 16px;
658              height: 16px;
659              border-radius: 50%;
660              top: 3px;
661              left: 6px;
662            }
663
664            &.draft {
665              color: var(--draft-btn-txt-color);
666              border-color: var(--draft-btn-border-dot-color);
667              &::before {
668                background-color: var(--draft-btn-border-dot-color);
669              }
670            }
671            &.order-placed {
672              color: var(--orderplaced-btn-txt-color);
673              border-color: var(--orderplaced-btn-border-dot-color);
674              &::before {
675                background-color: var(--orderplaced-btn-border-dot-color);
676              }
677            }
678            &.editorial-processing {
679              color: var(--review-btn-txt-color);
680              border-color: var(--review-btn-border-dot-color);
681              &::before {
682                background-color: var(--review-btn-border-dot-color);
683              }
684            }
685            &.proof-ready {
686              color: var(--proofready-btn-txt-color);
687              border-color: var(--proofready-btn-border-dot-color);
688              &::before {
689                background-color: var(--proofready-btn-border-dot-color);
690              }
691            }
692            &.change-requested {
693              color: var(--changerequested-btn-txt-color);
694              border-color: var(--changerequested-btn-border-dot-color);
695              &::before {
696                background-color: var(--changerequested-btn-border-dot-color);
697              }
698            }
699            &.awaiting-distribution {
700              color: var(--awaitingdistribution-btn-txt-color);
701              border-color: var(--awaitingdistribution-btn-border-dot-color);
702              &::before {
703                background-color: var(--awaitingdistribution-btn-border-dot-color);
704              }
705            }
706            &.distributed {
707              color: var(--distributed-btn-txt-color);
708              border-color: var(--distributed-btn-border-dot-color);
709              &::before {
710                background-color: var(--distributed-btn-border-dot-color);
711              }
712            }
713            &.cancelled {
714              color: var(--cancelled-btn-txt-color);
715              border-color: var(--cancelled-btn-border-dot-color);
716              &::before {
717                background-color: var(--cancelled-btn-border-dot-color);
718              }
719            }
720          }
721          .no-release-found {
722            display: flex;
723            flex-direction: column;
724            align-items: flex-start;
725            .title {
726              font-size: 16px;
727              line-height: 24px;
728              font-weight: 700;
729              color: var(--gray-90-color);
730              margin: 32px 0;
731            }
732            .btn-send-press-release {
733              font-size: 14px;
734              font-weight: 400;
735              line-height: 24px;
736              color: var(--primary-color-blue);
737              border: 1px solid var(--primary-color-blue);
738              border-radius: 20px;
739              padding: 4px 10px;
740              text-decoration: none;
741              margin-bottom: 16px;
742              &:hover {
743                background-color: var(--primary-color-hover);
744                color: var(--white-color);
745              }
746              &:active,
747              &:focus {
748                color: var(--brand-medium-blue-color);
749                background-color: var(--white-color);
750                border: 2px solid var(--brand-medium-blue-color);
751                box-shadow: 0px 0px 8px var(--primary-color-blue);
752              }
753            }
754            .image-container {
755              display: flex;
756              flex: 1;
757              width: 100%;
758              justify-content: center;
759              margin-bottom: 52px;
760            }
761          }
762          p {
763            margin: 0;
764            &.order-date {
765              font-size: 14px;
766              font-weight: 400;
767              font-style: normal;
768              line-height: 24px;
769              color: var(--gray-90-color);
770            }
771            &.order-time {
772              font-size: 12px;
773              font-weight: 400;
774              font-style: normal;
775              line-height: 16px;
776              color: var(--gray-80-color);
777            }
778          }
779        }
780        &.nested-data {
781          display: none;
782          background-color: var(--info-light-color);
783
784          &:hover {
785            background-color: var(--gray-10-color);
786          }
787
788          &.open {
789            display: revert;
790            animation: ${A.AJ} 0.9s ease-in-out;
791          }
792
793          td.left-indent {
794            padding-left: 32px;
795            .on-hold-indicator {
796              position: absolute;
797              top: 0;
798              font-size: 12px;
799              color: var(--gray-80-color);
800            }
801          }
802        }
803        &.active {
804          border: 2px solid var(--distributed-btn-border-dot-color);
805          td {
806            &:first-child {
807              &::before {
808                position: absolute;
809                content: '';
810                width: 4px;
811                height: 100%;
812                top: 0;
813                left: 0;
814                background-color: var(--distributed-btn-border-dot-color);
815              }
816            }
817            .headline {
818              color: var(--primary-color-blue);
819            }
820            .subheadline {
821              color: var(--gray-40-color);
822            }
823            .expand {
824              top: 24px;
825              padding: 0;
826              left: 1px;
827            }
828          }
829        }
830
831        .error-message {
832          color: var(--danger-color);
833          text-align: center !important;
834        }
835      }
836
837      .text-clickable .headline {
838        color: var(--primary-color-blue) !important;
839      }
840    }
841  }
842`,qe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e&&e.length>0?e.reduce((e,r)=>(e[r.id]=r,e),{}):{}}(W),Ye=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const r=e.find(e=>e.isDefaultSelection);return e&&e.length>0?(null===r||void 0===r?void 0:r.value)||e[0].value:""}(W),Je=e=>{let{isLoading:r,errorMessage:t,hasError:a,totalRecords:o,data:n,errorCode:d,onToolbarChange:c,setInfoVisibility:p,onLoad:u,refetch:m}=e;const[g]=(0,i.B)(),{filterBy:f,setFilterBy:b,pageNumber:v,setPageNumber:y,totalPages:w,searchText:C,setSearchText:j,sortBy:k,sortType:S,toggleSort:N,isSearchBoxOpen:L,setIsSearchBoxOpen:I,reload:A,reset:O}=(0,h.$i)({defaultFilterBy:Ye,totalRecordCount:o,recordsPerPage:H.Zo,onToolbarChange:c}),R=(0,h.GV)(x.tE);(0,s.useEffect)(()=>{u({reload:A,reset:O})},[u,A,O]);return(0,s.useEffect)(()=>{p(f===J)},[f,p]),(0,E.jsx)(Ze,{"data-testid":"order-history-grid",children:(0,E.jsxs)("div",{id:"order-history-grid-container",children:[(0,E.jsx)(K,{filterOptions:W,filterBy:f,setFilterBy:b,filterText:`${g("orderHistory:filterBy","Filter By")}: ${g(`orderHistory:${qe[f].locizeKey}`,`${qe[f].label}`)}`,totalPages:w,currentPage:v,setPageNumber:y,disablePageInput:a,searchText:C,setSearchText:j,isSearchBoxOpen:L,setIsSearchBoxOpen:I,disableSearch:a,disableToggleSearch:a,disableDropdown:a}),(0,E.jsxs)("table",{className:"order-history-grid",children:[(0,E.jsx)(te,{sortBy:k,sortType:S,toggleSort:N,hasError:a}),(0,E.jsx)("tbody",{children:r?(0,E.jsx)(He,{}):a?(0,E.jsx)("tr",{children:(0,E.jsx)("td",{colSpan:6,className:"noPadding","data-testid":"grid-error",children:(0,E.jsx)(Ee,{message:t,errorCorrelationId:d,handleOrderHistoryCompleteData:()=>{const e=l()(),r=e.utc().format(H.lr),t=e.utc().subtract(1,"years").format(H.lr);m({accountNumber:R,pageNumber:1,pageSize:60,searchText:"",resetResult:!1,startDate:t,endDate:r,sorting:"",isDrillDown:!0})}})})}):n&&n.length>0?(0,E.jsx)(ke,{data:n}):""!==C&&Ue()(n)?(0,E.jsx)(Be,{setFilterBy:b,setSearchText:j,setIsSearchBoxOpen:I}):Ue()(n)?(0,E.jsx)(Ae,{}):null})]}),""!==C&&Ue()(n)?(0,E.jsx)(_e,{}):null]})})},We=(e,r)=>{if(r&&Object.keys(e).length>0){const{filterBy:t,sortBy:a,sortType:o,...s}=e,i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(e){case Z:return{startDate:l().utc().subtract(30,"days").format(H.lr),endDate:l().utc().format(H.lr)};case q:return{startDate:l().utc().subtract(3,"months").format(H.lr),endDate:l().utc().format(H.lr)};case Y:return{startDate:l().utc().subtract(12,"months").format(H.lr),endDate:l().utc().format(H.lr)};case J:return{startDate:l().utc().subtract(2,"years").format(H.lr),endDate:l().utc().format(H.lr)};default:if(e.includes("dynamic")){const[,r]=e.split("-"),t=Number(r);return{startDate:l().utc([t]).startOf("year").format(H.lr),endDate:(new Date).getFullYear()===t?l().utc().format(H.lr):l().utc([t]).endOf("year").format(H.lr)}}return{startDate:"",endDate:""}}}(t),n=((e,r)=>({sorting:e&&r?`${e} ${"asc"===r?"Asc":"Desc"}`:""}))(a,o);return{...s,...i,...n,isDrillDown:!0,accountNumber:r}}return null},Qe=O.Ay.div`
843  #order_history_page {
844    color: var(--gray-90-color);
845
846    .container {
847      padding: 24px 20px;
848      position: relative;
849
850      .allorder-info {
851        display: flex;
852        align-items: center;
853        position: absolute;
854        top: 6px;
855        right: 20px;
856        width: 324px;
857        height: 56px;
858        background: var(--white-color);
859        color: var(--gray-90-color);
860        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
861        border-radius: 4px;
862
863        svg {
864          margin: 0px 16px;
865        }
866      }
867    }
868    .grid-header {
869      display: flex;
870      .reload-button {
871        margin-left: 8px;
872        padding: 10px;
873        width: 40px;
874        height: 40px;
875        border-radius: 20px;
876        border: 2px solid var(--white-color);
877        cursor: pointer;
878        &:focus {
879          box-shadow: 0px 0px 8px var(--primary-color-blue);
880          background-color: var(--white-color);
881        }
882        &:hover {
883          background-color: var(--gray-20-color);
884        }
885        &:disabled {
886          background-color: var(--white-color);
887        }
888        svg {
889          width: 16px;
890          height: 16px;
891          color: var(--gray-80-color);
892          &:focus {
893            color: var(--gray-80-color);
894          }
895          &:hover {
896            color: var(--gray-90-color);
897          }
898          &:disabled {
899            color: var(--gray-40-color);
900          }
901        }
902      }
903    }
904  }
905`;var Xe=t(5418),er=t(74047);const rr=()=>(0,E.jsx)("h2",{children:"Unable to load"}),tr=l().utc().format(H.lr),ar=l().utc().subtract(1,"years").format(H.lr),or=()=>{const[e]=(0,i.B)(),r=(0,h.jL)(),t=(0,h.GV)(x.tE),a=(0,h.GV)(x.cn),{irisUpdateManager:{lastUpdatePinged:o}}
905=(0,Xe.y)(er.BR),[l,p]=(0,s.useState)(!1),g=(0,s.useRef)(null),{isArticleIrisSubmitEnabled:f}=(0,h.Uu)();(0,h.Kp)(e("header:currentOrders","Current Orders"));const{data:v,loading:y,error:w,refetch:L,networkStatus:I}=(0,d.IT)(S.rz,{variables:{accountNumber:t,pageNumber:1,pageSize:60,searchText:"",resetResult:!1,startDate:ar,endDate:tr,sorting:"",isDrillDown:!0},pollInterval:H.aW,notifyOnNetworkStatusChange:!0}),{hasError:A,errorMessage:O,result:R,totalRecords:T,errorCorrelationId:P}=(0,s.useMemo)(()=>{var e,r;let t=null;return w&&(t=(0,N.cx)(w)),{errorCorrelationId:(null===(e=t)||void 0===e?void 0:e.xCorrelationId)||"",errorMessage:(null===(r=t)||void 0===r?void 0:r.errorMessage)||"",hasError:!!t,totalRecords:u()(v,"orderHistory.totalRecord",0),result:u()(v,"orderHistory.result",[])}},[v,w]),B=(0,s.useCallback)(e=>{var r;const t=We(e,null===a||void 0===a?void 0:a.account_id);L({...t,searchText:(null!==(r=null===e||void 0===e?void 0:e.searchText)&&void 0!==r?r:"").trim()})},[null===a||void 0===a?void 0:a.account_id,r]),D=(0,s.useCallback)(e=>{g.current=e},[]);return(0,h.w5)(()=>{L()},[o]),(0,E.jsx)(j.A,{errorMessage:(0,E.jsx)(rr,{}),fallback:r=>(0,E.jsx)(k.A,{onRetry:r,errorHeading:e("general:errorFallbackHeading","Something went wrong on our end"),message:e("general:errorFallbackMessage","Sorry, something went wrong with displaying results."),errorCode:P,widgetHeading:e("header:orderHistory","Order History & Approval"),imageKey:"image-2"}),children:(0,E.jsx)(Qe,{"data-testid":"order_history_page",children:(0,E.jsxs)("div",{id:"order_history_page",children:[(0,E.jsx)(m.A,{"data-testid":"order_history_page_summary",title:e("header:orderHistory","Order History & Approval"),subtitle:e("orderHistory:orderHistoryAndStatusSubHeader","Review your press release activity and view current status.")}),(0,E.jsxs)("div",{className:"container bg-white",children:[l&&(0,E.jsxs)("div",{className:"allorder-info",children:[(0,E.jsx)(b,{"aria-hidden":"true"})," ",e("orderHistory:limitedResultMsg","Results are limited to 2 years in the past.")]}),(0,E.jsxs)("div",{className:"grid-header",children:[(0,E.jsx)("h2",{className:"bold",children:f?e("orderHistory:pressReleaseAndArticleOrders","Press Release & Article Orders"):e("orderHistory:pressReleaseOrders","Press Release Orders")}),(0,E.jsx)(n.m_,{content:e("orderHistory:refreshResults","Refresh results"),direction:"bottom-right",showOnHover:!0,children:(0,E.jsx)(n.$n,{"data-testid":"reload-btn",className:"reload-button","aria-label":e("orderHistory:refreshResults","Refresh results"),onClick:()=>{g.current&&g.current.reset()},children:(0,E.jsx)(C,{"aria-hidden":"true"})})})]}),(0,E.jsx)("div",{className:"drop-shadow-10",children:(0,E.jsx)(Je,{isLoading:y&&I!==c.pT.poll,hasError:A,errorMessage:O,data:R,totalRecords:T,onToolbarChange:B,setInfoVisibility:p,errorCode:P,onLoad:D,refetch:L})})]})]})})})},lr=(0,s.memo)(or)}}]);

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.