PageSourceSearch

https://thepointsguy.com/35777612791/_next/static/chunks/3695.389b8e369ccca9dc.js

js thepointsguy.com collected 2026-09-24 07:33:36 UTC 4,191 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3695],{73695:function(e,t,r){r.r(t),r.d(t,{NudgeModal:function(){return NudgeModal}});var n=r(85893),s=r(57890),i=r(70776),l=r(95072),a=r(79401),o=r(93967),d=r.n(o),u=r(67294),c=r(57632),m=r(83538),w=r(35211);let NudgeModal=e=>{var t,r;let{heading:o,body:f,cta:p,pid:g,campaign:v,tracking:h={},useLegacyStyling:b=!1}=e,{dismissNudge:N,isOpen:x}=(0,m.H)(null!==(r=null!==(t=null==v?void 0:v.id)&&void 0!==t?t:null==v?void 0:v.name)&&void 0!==r?r:o),k=(0,u.useRef)((0,c.Z)()),D=(0,u.useRef)(!1),O={...(null==v?void 0:v.id)&&{campaignID:v.id},...(null==v?void 0:v.name)&&{campaignName:v.name}},handleClickTracking=()=>{let e=(0,a.p)(p.href)?"INTERNALLINK":"EXTERNALLINK";(0,s.j)({properties:g?{actionOutcome:e,correlationId:k.current,customDimensions:[{key:"linkUrl",value:p.href},...Object.entries(O).map(e=>{let[t,r]=e;return{key:t,value:r}})],outboundUrl:p.href,product:{location:"NUDGE_MODAL",name:h.nameOverride||o,position:0,productId:g,text:h.textOverri
1de||p.label},viewCorrelationId:k.current}:{actionOutcome:e,correlationId:k.current,customDimensions:[{key:"linkUrl",value:p.href},...Object.entries(O).map(e=>{let[t,r]=e;return{key:t,value:r}})],webElement:{elementType:"LINK",location:"NUDGE_MODAL",name:h.nameOverride||o,position:String(0),text:h.textOverride||p.label}},type:g?"ProductClicked":"ElementClicked"})},{ref:y,inView:E}=(0,w.n)(x,h.suppressViewEvents);return((0,u.useEffect)(()=>{E&&x&&!h.suppressViewEvents&&!D.current&&(D.current=!0,(0,s.j)({properties:g?{customDimensions:[{key:"linkUrl",value:p.href},...Object.entries(O).map(e=>{let[t,r]=e;return{key:t,value:r}})],product:{location:"NUDGE_MODAL",name:h.nameOverride||o,position:0,productId:null!=g?g:"",text:h.textOverride||p.label},viewCorrelationId:k.current}:{correlationId:k.current,customDimensions:[{key:"linkUrl",value:p.href},...Object.entries(O).map(e=>{let[t,r]=e;return{key:t,value:r}})],webElement:{elementType:"LINK",location:"NUDGE_MODAL",name:h.nameOverride||o,text:h.textOverride||p.label}},type:g?"ProductViewed":"ElementViewed"}))},[E,x,h,g,o,p]),x)?(0,n.jsxs)("div",{className:"tw-fixed tw-bottom-0 tw-right-0 tw-z-tooltip tw-w-full tw-overflow-hidden tw-bg-white tw-shadow-lg md:tw-max-w-96 md:tw-rounded-2xl",id:"nudge-modal",ref:y,children:[(0,n.jsx)("div",{className:d()("tw-h-2",b?"tw-bg-gradient-to-r tw-from-[#2687DC] tw-via-[#2CD8C6] tw-to-[#A6FFF5]":"tw-bg-green-5")}),(0,n.jsx)("div",{className:"tw-absolute tw-right-0 tw-top-0 tw-z-10 tw-mr-2 tw-mt-4 tw-scale-75",children:(0,n.jsx)(l.Z,{hexColor:"#162433",onClick:N,srText:"Close"})}),(0,n.jsxs)("div",{className:"tw-max-w-4/5 tw-p-6",children:[(0,n.jsx)("h3",{className:"tw-heading-8",dangerouslySetInnerHTML:{__html:o}}),(0,n.jsx)("p",{className:"tw-text-md-regular tw-mt-2",children:f}),(0,n.jsx)("a",{className:"tw-btn tw-btn-small tw-btn-primary tw-mt-6",href:p.href,onClick:()=>handleClickTracking(),rel:"noopener noreferrer",target:"_blank",children:p.label})]}),(0,n.jsx)(i.Y,{customId:"nudge-modal-".concat(o.replace(/[^a-zA-Z]/g,"")),isVisible:x})]}):null}},83538:function(e,t,r){r.d(t,{H:function(){return useNudgeDismissal}});var n=r(43875),s=r(67294);let dismissalKey=e=>"".concat("nudgeModal:").concat(e),isDismissed=e=>{try{return"1"===window.sessionStorage.getItem(dismissalKey(e))}catch(e){return!1}},persistDismissal=e=>{try{window.sessionStorage.setItem(dismissalKey(e),"1")}catch(e){}},useNudgeDismissal=e=>{let[t,r]=(0,s.useState)(()=>!isDismissed(e));return(0,n.Rz)("nudge_modal",t),{dismissNudge:()=>{r(!1),persistDismissal(e)},isOpen:t}}},35211:function(e,t,r){r.d(t,{n:function(){return useNudgeRef}});var n=r(67294),s=r(18357);let useNudgeRef=(e,t)=>{let{ref:r,inView:i}=(0,s.YD)({skip:t,triggerOnce:!0}),l=(0,n.useRef)(null),a=(0,n.useCallback)(e=>{r(e),l.current=e},[r]);return(0,n.useEffect)(()=>{let e=l.current;if(!e)return;let updateOffset=()=>{document.documentElement.style.setProperty("--nudge-fab-offset","".concat(e.offsetHeight+24,"px"))},t=new ResizeObserver(updateOffset);return t.observe(e),updateOffset(),()=>{t.disconnect(),document.documentElement.style.removeProperty("--nudge-fab-offset")}},[e]),{inView:i,ref:a}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.