PageSourceSearch

https://www.gettyimages.ie/components/customer-notifications/static/5636.812150c168dc9796.js

js gettyimages.ie collected 2026-10-02 03:45:42 UTC 16,537 bytes, 2 lines download raw bytes

1(self.rspackChunkcustomer_notifications=self.rspackChunkcustomer_notifications||[]).push([[5636],{8522:function(t,e,n){"use strict";var i,r=n(4152);function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(null,arguments)}e.A=t=>r.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:20,height:18,className:"global-notification-banner__alert",viewBox:"0 0 20.611 17.995"},t),i||(i=r.createElement("path",{d:"M10.21.083 0 17.767h20.42zm.004 15.806c-.904 0-1.521-.643-1.521-1.524 0-.907.625-1.532 1.517-1.532.903 0 1.506.625 1.517 1.532 0 .88-.6 1.524-1.513 1.524m1.158-4.095H9.19l-.356-6.156h2.892z"})))},4284:function(t,e,n){var i={"./espaws/global.scss":["1156",[1883,3581]],"./getty/global.scss":["6732",[5901,7559]],"./wireimage/global.scss":["363",[1883,3086]],"./istock/global.scss":["5342",[9305,6611]],"./filmmagic/global.scss":["3194",[1883,3669]]};function r(t){if(!n.o(i,t))return Promise.resolve().then(function(){var e=Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e});var e=i[t],r=e[0];return Promise.all(e[1].map(function(t){return n.e(t)})).then(function(){return n(r)})}r.keys=function(){return Object.keys(i)},r.id=4284,t.exports=r},6430:function(t,e,n){var i={"./espaws.js":["6378",[829]],"./ImportGlobalStyles.js":["1023",[]],"./wireimage.js":["773",[9102]],"./istock.js":["6746",[9305,4323]],"./ImportTheme.js":["8229",[]],"./filmmagic.js":["5878",[759]],"./getty.js":["537",[5901,1301]]};function r(t){if(!n.o(i,t))return Promise.resolve().then(function(){var e=Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e});var e=i[t],r=e[0];return Promise.all(e[1].map(function(t){return n.e(t)})).then(function(){return n(r)})}r.keys=function(){return Object.keys(i)},r.id=6430,t.exports=r},8260:function(t,e,n){"use strict";n.d(e,{A:function(){return l}});var i=n(1987),r=n(4152),s=n(1896),a=n.n(s);let o=new Map([["onboarding_video_tooltip",(0,r.lazy)(()=>Promise.all([n.e(8361),n.e(9876),n.e(7948),n.e(9339)]).then(n.bind(n,1395)))],["getty_single_seat_pricing_tooltip",(0,r.lazy)(()=>n.e(3116).then(n.bind(n,5645)))]]),c=t=>{let e,{config:n,templateProps:r}=t,s=(e=n.template,o.get(e));return(0,i.jsx)(s,{...r})};c.propTypes={config:a().shape({template:a().string.isRequired}).isRequired,templateProps:a().object.isRequired};var l=c},4637:function(t,e,n){"use strict";n.d(e,{A:function(){return N}});
1var i=n(1987),r=n(4152),s=n.n(r),a=n(1896),o=n.n(a),c=n(796),l=n(4739),u=n(8773),d=n(8625),p=n(5138),f=n(7573),m="EySQ8PgLyVYbcg2a";let _=t=>{let{body_text:e="",cta_text:n="",data_sub_status:r="",cta_data_nav:s="",href:a=""}=t;return(0,i.jsxs)("div",{className:m,children:[(0,i.jsx)("figure",{}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{"data-sub-status":r,children:(0,i.jsx)(f.A,{children:e})}),(0,i.jsx)("a",{className:"Jf_5EcsRBkv1Wr2m","data-nav":s,"data-ui-location":"header_side_panel_right",href:a,children:(0,i.jsx)(f.A,{children:n})})]})]})};_.propTypes={body_text:o().string,cta_text:o().string,data_sub_status:o().string,cta_data_nav:o().string,href:o().string};let g=t=>{let{body_text:e,onClick:n,ga_interaction:s,ga_payload_cta:a}=t,o=(0,r.useRef)();return(0,r.useEffect)(()=>{let t=o.current.querySelector("a"),e=()=>n({ga_interaction:s,ga_payload_cta:a});return t?.addEventListener("click",e),()=>t?.removeEventListener("click",e)},[o,n,s,a]),(0,i.jsxs)("div",{className:m,children:[(0,i.jsx)("figure",{}),(0,i.jsx)("p",{ref:o,children:(0,i.jsx)(f.A,{children:e})})]})};g.propTypes={body_text:o().string.isRequired,onClick:o().func.isRequired,ga_interaction:o().string.isRequired,ga_payload_cta:o().shape({ui_element_location:o().string.isRequired,merch_unit_interaction:o().string.isRequired,merch_unit_selection:o().string.isRequired,cta_text:o().string.isRequired,subscription_sku:o().string.isRequired,is_promotion:o().bool.isRequired}).isRequired};var h={userPanel:"fderN_2SbWErgVNC",headerPanel:"PkoKQxL2Pb0t10hv",headerTextPanel:"lUzen4fD3UI6vsm2",header:"k8UzmbxR9XEW9JMN",body:"skVRyhMZIesH_fb7",iconPanel:"oFaxfrchoaISumhP"};let y=t=>{let{body_text:e,onClick:s,ga_interaction:a,ga_payload_cta:o}=t,c=n(2362)(`./new-customer-ppv-${e.icon}.gif`),l=(0,r.useRef)();return(0,r.useEffect)(()=>{let t=l.current.querySelector("a"),e=()=>s({ga_interaction:a,ga_payload_cta:o});return t?.addEventListener("click",e),()=>t?.removeEventListener("click",e)},[l,s,a,o]),(0,i.jsxs)("div",{className:h.userPanel,id:h.userPanel,children:[(0,i.jsxs)("div",{className:h.headerPanel,children:[(0,i.jsx)("div",{className:h.headerTextPanel,children:(0,i.jsx)("p",{className:h.header,children:e.header})}),(0,i.jsx)("div",{className:h.iconPanel,children:(0,i.jsx)("img",{alt:"icon",className:h.icon,src:c})})]}),(0,i.jsx)("p",{className:h.body,ref:l,children:(0,i.jsx)(f.A,{children:e.text_first})}),e.text_second&&(0,i.jsx)("p",{className:h.body,children:e.text_second})]})};y.propTypes={body_text:o().shape({header:o().string.isRequired,icon:o().string.isRequired,text_first:o().string.isRequired,text_second:o().string}).isRequired,onClick:o().func.isRequired,ga_interaction:o().string.isRequired,ga_payload_cta:o().shape({ui_element_location:o().string,merch_unit_interaction:o().string,merch_unit_selection:o().string}).isRequired};var v=n(5870),w=n.n(v);let x=t=>{let{body_text:e,cta_text:n="",cta:r="",onClick:s,ga_interaction:a,ga_payload_cta:o}=t,c=async()=>{s({ga_interaction:a,ga_payload_cta:o});try{let t=await w().get(r,{headers:{Accept:"application/json"}});200===t.status&&(window.location.href=t.data.redirectPath)}catch(t){Promise.reject(t)}};return(0,i.jsxs)("div",{className:"JCWyV_ZyFAIMgqeD",children:[(0,i.jsx)("figure",{}),(0,i.jsxs)("p",{className:"jiP8foERXQeXlYb4",children:[(0,i.jsx)(f.A,{children:e}),n&&(0,i.jsx)("button",{className:"ROZoaWC9gFQRzSYa","data-testid":"cta",onClick:c,type:"button",children:(0,i.jsx)(f.A,{children:n})})]})]})};x.propTypes={body_text:o().string.isRequired,cta:o().string,cta_text:o().string,ga_interaction:o().string.isRequired,ga_payload_cta:o().shape({ui_element_location:o().string.isRequired,merch_unit_interaction:o().string.isRequired,merch_unit_selection:o().string.isRequired}).isRequired,onClick:o().func.isRequired};var j=n(8522);let b=t=>{let{text:e="",cta:n="",cta_text:r=""}=t;return(0,i.jsxs)("div",{className:"W6IxHzT0wVUqUM4J",children:[(0,i.jsx)("div",{children:(0,i.jsx)(j.A,{className:"pWqcCW7VxEZRRE3e"})}),(0,i.jsxs)("div",{className:"YuwuHxukiMCrrXLp",children:[(0,i.jsx)("p",{children:(0,i.jsx)(f.A,{children:e})}),n&&(0,i.jsx)("a",{href:n,children:(0,i.jsx)(f.A,{children:r})})]})]})};b.propTypes={text:o().string,cta:o().string,cta_text:o().string};let k={istock_clock_notification:_,warning_notification:b,customer_retention:g,new_customer_ppv:y,
1custom_media_auto_refill_error:x},C=t=>{let e,n,{children:a=null}=t,{nickname:o}=(0,p.Z)(),f=(()=>{let t=s().useContext(c.A);if(void 0===t)throw Error("useCustomerNotificationsUserPanelData must be used within a CustomerNotificationsProvider");return t.customerNotifications&&t.customerNotifications.userPanel?t.customerNotifications.userPanel:{}})(),m=("getty"===o?(e=".side-panel.side-panel--right",n={threshold:1}):"istock"===o&&(e='[data-testid="AccountPanelRight"]',n={root:document.body}),function(t,e){let[n,i]=(0,r.useState)(!1),s=document.querySelector(t);return(0,r.useEffect)(()=>{if(!s)return;let t=new IntersectionObserver(t=>{let[e]=t;e?i(e.isIntersecting):i(!1)},e);return t.observe(s),()=>t.unobserve(s)},[]),n}(e,n));if(0===Object.entries(f).length)return a;let _=t=>{let e=null;t.ga_payload_cta&&(e=t.ga_payload_cta.is_promotion?(0,l.A)({event_name:"select_promotion",notification_description:"monthly_retention_consecutive_post_expiration",ui_element_location:"account_panel",item_id:t.ga_payload_cta.subscription_sku,creative_name:"panel_notification",item_category:t.ga_payload_cta.subscription_sku?"subscription":void 0}):(0,u.A)({event:"notification_cta_click",notification_description:t.ga_payload_cta.merch_unit_selection,cta_text:t.ga_payload_cta.cta_text,ui_element_location:"account_panel",item_id:t.ga_payload_cta.subscription_sku})),(0,d.C)(e)};return m&&Object.entries(f).forEach(t=>{let e,[n,i]=t;e=null,i.ga_payload_cta&&(e=i.ga_payload_cta.is_promotion?(0,l.A)({event_name:"view_promotion",notification_description:"monthly_retention_consecutive_post_expiration",ui_element_location:"account_panel",item_id:i.ga_payload_cta.subscription_sku,creative_name:"panel_notification",item_category:i.ga_payload_cta.subscription_sku?"subscription":void 0}):(0,u.A)({event:"notification_shown",notification_description:i.ga_payload_cta.merch_unit_selection,cta_text:i.ga_payload_cta.cta_text,ui_element_location:"account_panel",item_id:i.ga_payload_cta.subscription_sku})),(0,d.C)(e)}),(0,i.jsx)(i.Fragment,{children:Object.entries(f).map(t=>{let[e,n]=t,r=k[n.template];return r?(0,i.jsx)(r,{...n,onClick:_},e):null})})};C.propTypes={children:o().node};var N=C},796:function(t,e,n){"use strict";e.A=(0,n(4152).createContext)({customerNotifications:()=>"context not defined"})},874:function(t,e,n){"use strict";n.d(e,{A:function(){return b}});var i=n(1987),r=n(4152),s=n(1896),a=n.n(s),o=n(600),c=n(3307),l=n(2776);let u={headers:{Accept:"application/json"}};var d=n(4233),p=n(8540),f=n(9129),m=class{constructor(t,e){this.name=t,this.data=e}dismiss(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.name;(0,p.j)(t)}localDismiss(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.name;(0,f.g)(t)}},_=n(8260),g=n(2236);let h="cns.entryExternal";class y{#t;constructor(t){this.#t=t}#e(t){let{payload:e}=(0,d.g)();return e||(t?{page:t}:{})}#n(){try{if("u"<typeof window)return null;return new URLSearchParams(window.location.search).get("wbHeroPreviewId")}catch(t){return null}}async #i(t,e,n){let i={page:t||"customer-notifications"},r=this.#n();r&&(i.previewId=r);let s=(0,g.fc)();return await this.#t.post("/components/customer-notifications/api/structured-content",{Dismissals:s,AssetMetadata:{AssetType:e||null}},{params:i,headers:n})}#r(){try{return"true"===window.sessionStorage.getItem(h)}catch(t){return!1}}#s(t){try{window.sessionStorage.setItem(h,String(t))}catch(t){}}#a(){try{let t;if("u"<typeof window)return null;let{document:e,location:n}=window;if(!e||!n)return null;return t=!!e.referrer&&(new URL(e.referrer,n.href).origin!==n.origin||this.#r()),this.#s(t),t}catch(t){return!1}}#o(){let t={Accept:"application/json"},e=this.#a();return null!==e&&(t["x-entry-referrer"]=e?"external":"direct"),t}async #c(t,e){return this.#t.post("/components/customer-notifications/api/notifications",t,{headers:e})}#l(t){if(!t)return;let{client:e,tooltip:n}=t;if(e||n){let t,r;t=new CustomEvent("CNSClients:ready",{detail:{clients:new Map(Object.entries(e??{}).map(t=>{let[e,n]=t;return[e,new m(e,n)]}))}}),document.dispatchEvent(t),r=new CustomEvent("CNS:tooltips",{detail:{tooltips:new Map(Object.entries(n??{}).map(t=>{let[e,{config:n,...r}]=t;return[e,(0,i.jsx)(_.A,{config:n,templateProps:r},e)]}))}}),document.dispatchEvent(r)}}async #u(t,e){let n=this.#o();if(!t)return this.#d(await this.#c(e,n));let i={...e,strip_structured_formats:!0},[r,s]=await Promise.all([this.#i(e.page,e.asset_type,n),this.#c(i,n)]),a=this.#d(r);return{...this.#d(s),...a}}#d(t){return t?.data||{}}getData=(()=>{var t=this;return async function(e){let{structuredEnabled:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.#e(e);
1if(i?.is_cns_disabled)return null;try{let e=await t.#u(n,i);return t.#l(e),e}catch(t){return{}}}})()}var v=n(1537),w=n(796);async function x(t,e){if("u"<typeof window)return null;let{user:n}=window;if(!n||n.isBot)return null;let i=window.tracking_data?.page_name,r=await t.getData(i,{structuredEnabled:e});return r?{...r,structuredContent:r.structuredContent||r}:null}let j=t=>{let e,{children:n}=t,{customerNotificationsService:s}=(e=(0,l.V)(),(0,r.useMemo)(()=>({customerNotificationsService:new y({get:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.get(t,{...u,...n})},post:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.post(t,n,{...u,...i})}})}),[e])),a=(0,c.useExperience)("CnsStructuredContent").isActive(),d=(0,o.A)("CustomerNotifications",()=>x(s,a));return d={...d,...(0,v.pk)(),time_zone_offset:new Date().getTimezoneOffset()},(0,i.jsx)(w.A.Provider,{value:{customerNotifications:d},children:n})};j.propTypes={children:a().any};var b=j},8540:function(t,e,n){"use strict";var i=n(5870),r=n.n(i),s=n(4233);let a=async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={dismissal:{[t]:!0},...e},i=(0,s.g)(),a={...i,payload:{...i.payload,...n}};if(!i.payload||!1!==i.payload.known_user)return await r().post("/notifications/dismiss",a.payload,{headers:{Accept:"application/json"}})};n.d(e,{},{j:a})},9129:function(t,e,n){"use strict";var i=n(1537);n.d(e,{},{g:t=>{let{notifications:e}=(0,i.pk)(),n=void 0===e?{}:e;n[t]&&n[t].dismissals?(n[t].dismissals+=1,n[t].timestamp=Date()):n[t]={dismissals:1,timestamp:Date()},(0,i.sW)(n)}})},2236:function(t,e,n){"use strict";var i=n(5870),r=n.n(i),s=n(2590);let a="structuredContentDismissals";function o(){var t=function(t){if(!t)return null;try{let e=JSON.parse(t);return e&&"object"==typeof e?e:null}catch{return null}}("u">typeof window?window.localStorage.getItem(a):null);if(!t)return{};let e={};for(let[n,i]of Object.entries(t)){let t=function(t){if(!t||"object"!=typeof t||!("dismissalCount"in t)||!("dateTimeDismissed"in t))return null;let e=Number(t.dismissalCount),n=t.dateTimeDismissed,i={dismissalCount:e>0?e:1,dateTimeDismissed:"string"==typeof n?n:new Date().toISOString()};return t.metadata&&"object"==typeof t.metadata&&(i.metadata=t.metadata),i}(i);t&&(e[n]=t)}return e}function c(t,e){let n=function(t,e){if(!t)return null;let n=o(),i=n[t],r={dismissalCount:i?i.dismissalCount+1:1,dateTimeDismissed:new Date().toISOString()};e&&Object.keys(e).length>0&&(r.metadata=e),n[t]=r;if("u">typeof window)try{window.localStorage.setItem(a,JSON.stringify(n))}catch(t){}return r}(t,e);return"u"<typeof window||!t||r().put(`/components/customer-notifications/api/structured-content/${encodeURIComponent(t)}/dismiss`,e||{}).catch(t=>{(0,s.d)(t)}),n}function l(){let t=o(),e=[];for(let[n,i]of Object.entries(t)){let t={StructuredContentId:n,LatestDismissDate:i.dateTimeDismissed,DismissedCount:i.dismissalCount};i.metadata&&Object.assign(t,i.metadata),e.push(t)}return e}n.d(e,{fc:function(){return l},tk:function(){return c}})},1537:function(t,e,n){"use strict";n.d(e,{Lr:function(){return r},pk:function(){return a},sW:function(){return s}});var i=[{name:"ac_ec_toaster",type:"json"},{name:"ac_rnb_toaster",type:"json"},{name:"dismiss_announce_new_sites",type:"text"},{name:"dismiss_new_istock_languages",type:"text"},{name:"eu_cookie_banner",type:"text"},{name:"eu_cookie_consent_test",type:"json"},{name:"ibm",type:"integer"},{name:"mid_term_upgrade_toaster",type:"json"},{name:"newly_registered",type:"string"},{name:"notifications",type:"json"},{name:"outdated_browser",type:"text"}];let r=()=>"u">typeof window?window.localStorage:void 0,s=t=>{let e=r();e&&e.setItem("notifications",JSON.stringify(t))},a=()=>{let t={};for(let e of i){let n=null!=r()?r().getItem(e.name):void 0;n&&("json"===e.type?t[e.name]=JSON.parse(n):t[e.name]=n)}return t}},4233:function(t,e,n){"use strict";var i=n(1537);let r=()=>{if("u">typeof window&&window.notificationsContext){let t=(t=>{try{return JSON.parse(atob(t))}catch(t){return null}})(window.notificationsContext);if(null!=t?t.payload:void 0){let e,n=((e=[t.payload]).push((0,i.pk)()),e.push({time_zone_offset:new Date().getTimezoneOffset()}),Object.assign(...e));return t.payload=n,t}}return{}};n.d(e,{},{Q:()=>{let t=r();return t.payload?t.payload:{}},g:r})},2362:function(t,e,n){var i={"./new-customer-ppv-clock.gif":"6956","./new-customer-ppv-stars.gif":"7177"};function r(t){return n(s(t))}function s(t){if(!n.o(i,t)){var e=Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)}
1,r.resolve=s,t.exports=r,r.id=2362},6956:function(t,e,n){"use strict";t.exports=n.p+"static/new-customer-ppv-clock-7057852b1687c46b.gif"},7177:function(t,e,n){"use strict";t.exports=n.p+"static/new-customer-ppv-stars-f4de445301edc6a4.gif"}}]);
2//# sourceMappingURL=5636.812150c168dc9796.js.map

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.