PageSourceSearch

https://www.cox.com/etc.clientlibs/cox-cms-react/clientlibs/client…/resources/static/js/1984.14360fcb.chunk.js

js cox.com collected 2026-09-24 08:26:38 UTC 4,351 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcox_cms_react=self.webpackChunkcox_cms_react||[]).push([[1984,9603],{99603:function(e,n,t){t.r(n),t.d(n,{AemModalTypes:function(){return s},default:function(){return A}});let s=function(e){return e.basicModal="basicModal",e}({});var a=t(19296),i=t(83297),r=t(21239),o=t(78697),d=t(24718),l=t(29065),c=t(79996),p=t(41808),m=t(48515),h=t(46306),u=t(96678),v=t(84843),x=t(67099),b=t(2885),y=t(1600),C=t(38984),M=t(67973),k=t(2479);const j=(0,x.A)(c.Ay);var B=t(44408);const T={basicModal:e=>{const{modalId:n="",show:t,componentName:s="",description:a,tokenProperties:i,title:x="",headline:B="",subhead:T="",pmrbtnText:g="",pmrbtnLink:A="",sndbtnText:f="",sndbtnLink:L="",pmrbtnType:I,pmrbtnLinkType:N,pmrbtnLinkId:E="",pmrbtnChatText:w="",sndbtnType:O,sndbtnLinkType:X,sndbtnLinkId:S="",sndbtnChatText:F="",children:_,modalType:R="",isInEditor:$=!1,pmrbtnClick:H,sndbtnClick:J,handleClose:P,ruleExpression:V="",isWidget:D=!1,fileName:Z="",src:q=""}=e,{setModalEvent:U}=(0,d.f)(),[W,Y]=(0,r.useState)(t),[z,G]=(0,r.useState)(0),[K,Q]=(0,r.useState)(""),ee=(0,r.useRef)(null),{udo:ne}=(0,h.V6)(),{themeClass:te}=(0,v.A)(),se=a?(0,M.aX)(a,i,null===ne||void 0===ne?void 0:ne.localeName):"",ae=K||V,ie=(0,u.A)(ae),re=e=>{let n;try{var t;if((null===e||void 0===e?void 0:e.length)>0)return null===e||void 0===e||null===(t=e[0])||void 0===t?void 0:t.map(e=>{let t={...e.props};const s=t&&JSON.stringify(t);return n=(0,M.LJ)(s,ie,z,!1,!0,!0),t=n&&JSON.parse(n),(0,r.cloneElement)(e,t)})}catch(s){const e=`Error in rendering modal with bad character in ${n}`;return console.error(e),(0,C.vV)("ReactAuthorableModal",s,{message:e}),(0,C.Uf)({errorMessage:e,errorName:"Modal Error",actionName:C.g6.MODAL_ERROR}),(0,k.jsx)(l.A,{isBanner:!0})}},oe=()=>R===c.HM.video?(0,k.jsx)(k.Fragment,{children:_}):R!==c.HM.custom||$?R===c.HM.custom?(0,k.jsx)(k.Fragment,{children:_}):(0,k.jsx)(k.Fragment,{}):(0,k.jsx)(k.Fragment,{children:re(_)});return(0,k.jsx)(k.Fragment,{children:$?(0,k.jsx)("div",{"data-testid":"react-modal-editor-view",children:(0,k.jsxs)("div",{id:n,className:"basic-modal modal-editor-view "+s+" "+te,"data-testid":`basic-modal-${n}`,children:[(0,k.jsx)(o.Ay,{...e}),(0,k.jsx)(p.A,{...e,isParsed:!1,children:oe()}),(0,k.jsx)(m.Ay,{...e})]})}):(0,k.jsxs)(j,{...e,isAEM:!0,id:n,show:W,"data-testid":"react-basic-modal",componentName:s,handleClose:()=>{P&&P(),(0,y.sw)("activeModalIndex"),(0,y.sw)("activeModalExpression"),Q(""),Y(!1),U(!0)},primaryBtnText:(0,M.aX)(g,i),primaryBtnLink:(0,M.aX)(A,i),primaryBtnClick:H,primaryBtnType:I,primaryBtnLinkType:N,primaryBtnLinkId:E,primaryBtnChatText:w,secondaryBtnText:(0,M.aX)(f,i),secondaryBtnLink:(0,M.aX)(L,i),secondaryBtnClick:J,secondaryBtnType:O,secondaryBtnLinkType:X,secondaryBtnLinkId:S,secondaryBtnChatText:F,title:(0,M.aX)(x,i),subhead:(0,M.aX)(T,i),headline:(0,M.aX)(B,i),description:se,handleOpen:e=>{var n,t,s;const a=(null===e||void 0===e||null===(n=e.detail)||void 0===n?void 0:n.index)||0,i=(null===e||void 0===e||null===(t=e.detail)||void 0===t?void 0:t.ruleExpression)||(null===e||void 0===e||null===(s=e.detail)||void 0===s?void 0:s.offerId)||V;
1G(a),Q(i),(0,y.ZB)("activeModalIndex",a),(0,y.ZB)("activeModalExpression",i),Y(!0),U(!0)},src:(0,b.iu)(q,b.Yk.MODAL_BASIC,Z),children:[!D&&(0,k.jsx)("div",{ref:ee,style:{display:"none"},children:oe()}),oe()]})})}};class g extends i.Container{constructor(e){super(e),this.state={componentMapping:this.props.componentMapping||i.ComponentMapping}}get containerAttributes(){const e=this.containerProps;return e.className=e.className+" "+this.props.baseCssClass,e["data-cmp-is"]="container",e["data-panelcontainer"]="container",e["data-testid"]="reactcontainer",e}render(){var e;const{modal:n=s.basicModal,isInEditor:t=!1,baseCssClass:a,modalId:i=""}=this.props,r=null===(e=this.props.cqItems)||void 0===e?void 0:e.embed,o=T[n];return(0,k.jsxs)(k.Fragment,{children:[(0,B.A)(t,`(${i}) Modal`),(0,k.jsxs)("div",{...this.containerAttributes,className:"container",children:[(0,k.jsx)("div",{className:`${a}`,children:o?(0,k.jsxs)(o,{...this.props,children:[this.childComponents,this.placeholderComponent]}):null}),!t&&(!r||!Object.hasOwn(r,"youtubeVideoId"))&&(0,k.jsxs)("div",{style:{display:"none"},children:[this.childComponents,this.placeholderComponent]})]})]})}}var A=(0,a.withStandardBaseCssClass)(g,"cmp-modal")}}]);

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.