PageSourceSearch

https://www.coinfiliate.com/_next/static/chunks/app/(home)/partner-shop/%5Bslug%5D/page-a320ed72cf285a70.js

js coinfiliate.com collected 2026-10-02 01:26:39 UTC 5,253 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8449],{17777:()=>{},21522:(e,t,a)=>{"use strict";function n(e,t){for(let i of(e.toggleAttribute("data-tier-estimate",t),e.querySelectorAll("#merchant-cashback-value, .affiliate-link-pill-reward"))){var a,n;t?(i.hasAttribute("data-original-reward-label")||(i.dataset.originalRewardLabel=null!=(a=i.textContent)?a:""),i.hasAttribute("data-original-text-rate")||(i.dataset.originalTextRate=String(i.classList.contains("is-text-rate"))),i.textContent="Estimate by tier","merchant-cashback-value"===i.id&&i.classList.add("is-text-rate")):i.hasAttribute("data-original-reward-label")&&(i.textContent=null!=(n=i.dataset.originalRewardLabel)?n:"",i.classList.toggle("is-text-rate","true"===i.dataset.originalTextRate),delete i.dataset.originalRewardLabel,delete i.dataset.originalTextRate)}}a.d(t,{R:()=>n})},50650:(e,t,a)=>{Promise.resolve().then(a.bind(a,39338)),Promise.resolve().then(a.t.bind(a,36777,23)),Promise.resolve().then(a.t.bind(a,70869,23)),Promise.resolve().then(a.bind(a,16314)),Promise.resolve().then(a.bind(a,71411)),Promise.resolve().then(a.bind(a,70197)),Promise.resolve().then(a.bind(a,71009)),Promise.resolve().then(a.bind(a,72157)),Promise.resolve().then(a.bind(a,19566)),Promise.resolve().then(a.bind(a,80339)),Promise.resolve().then(a.bind(a,623)),Promise.resolve().then(a.bind(a,96891)),Promise.resolve().then(a.bind(a,51845)),Promise.resolve().then(a.t.bind(a,17777,23)),Promise.resolve().then(a.bind(a,14757)),Promise.resolve().then(a.t.bind(a,58318,23)),Promise.resolve().then(a.t.bind(a,64499,23))},71009:(e,t,a)=>{"use strict";a.d(t,{default:()=>i});var n=a(22072);function i(){return(0,n.useEffect)(()=>{let e=!1,t=0,n=!1,i=async()=>{await a.e(2385).then(a.bind(a,42385)),await a.e(8315).then(a.bind(a,50696));let{hydratePartnerShopDetail:t}=await a.e(5593).then(a.bind(a,5593));e||await t()},r=()=>{n||e||(n=!0,t=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(()=>{i()})}))};return"complete"===document.readyState?r():window.addEventListener("load",r,{once:!0}),()=>{e=!0,window.removeEventListener("load",r),window.cancelAnimationFrame(t)}},[]),null}},71411:(e,t,a)=>{"use strict";a.d(t,{default:()=>u});var n=a(12596),i=a(29096),r=a(25269),s=a(22072),l=a(21522);let d=(2n**63n-1n)/10000n;function o(e){return"$".concat(e/100n,".").concat((e%100n).toString().padStart(2,"0"))}function u(e){let{partnerShopId:t}=e,{isAuthenticated:a}=(0,r.Z)();
1return a?(0,n.jsx)(c,{partnerShopId:t}):null}function c(e){var t;let{partnerShopId:a}=e,u=(0,r.IT)(i.FH.rewards.tiers.queries.getCurrentUserEstimateLinks,{partnerShopId:a}),[c,m]=(0,s.useState)(null),[h,b]=(0,s.useState)("100.00"),[v,x]=(0,s.useState)(null),[g,f]=(0,s.useState)(""),[p,w]=(0,s.useState)(0);(0,s.useEffect)(()=>{if(!v)return;let e=window.setInterval(()=>w(e=>e+1),6e4);return()=>window.clearInterval(e)},[v]);let k=(0,r.IT)(i.FH.rewards.tiers.queries.getCurrentUserFlexOffersCashbackEstimate,v?{...v,refreshToken:p}:"skip"),P=(null==u?void 0:u.some(e=>e.linkId===c))?c:null==u||null==(t=u[0])?void 0:t.linkId,C=!!(null==u?void 0:u.length);return((0,s.useEffect)(()=>{let e=document.querySelector(".detail-page-shell");if(e&&C)return(0,l.R)(e,!0),()=>(0,l.R)(e,!1)},[C,a]),null==u?void 0:u.length)?(0,n.jsxs)("section",{className:"mx-auto my-6 max-w-5xl rounded-2xl border bg-white p-6","aria-labelledby":"shop-tier-estimate-heading",children:[(0,n.jsx)("h2",{id:"shop-tier-estimate-heading",className:"text-xl font-semibold",children:"Estimate cashback for your tier"}),(0,n.jsxs)("form",{onSubmit:function(e){var t;e.preventDefault();let a=/^(\d{1,16})(?:\.(\d{1,2}))?$/.exec(h.trim()),n=a?100n*BigInt(a[1])+BigInt((null!=(t=a[2])?t:"").padEnd(2,"0")||"0"):0n;if(!P||n<=0n||n>d)return void f("Enter a valid USD purchase amount with up to two decimal places.");f(""),x({partnerShopLinkId:P,purchaseUsdCents:n})},className:"mt-4 flex flex-wrap items-end gap-3",children:[(0,n.jsxs)("label",{className:"grid gap-1 text-sm",children:["Offer",(0,n.jsx)("select",{className:"h-10 rounded-md border px-3",value:null!=P?P:"",onChange:e=>{m(e.target.value),x(null)},children:u.map(e=>(0,n.jsx)("option",{value:e.linkId,children:e.name},e.linkId))})]}),(0,n.jsxs)("label",{className:"grid gap-1 text-sm",children:["Purchase amount (USD)",(0,n.jsx)("input",{className:"h-10 rounded-md border px-3",inputMode:"decimal",value:h,onChange:e=>{b(e.target.value),x(null)},maxLength:20,required:!0})]}),(0,n.jsx)("button",{className:"h-10 rounded-md bg-slate-950 px-4 text-white",type:"submit",children:"Calculate estimate"})]}),(0,n.jsx)("div",{role:"status",className:"mt-3 text-sm",children:g||(v?void 0===k?"Calculating…":"ready"===k.status?"".concat(k.tierKey,": up to ").concat(o(k.estimatedCashbackUsdCents)," on ").concat(o(k.purchaseUsdCents),"."):"Estimate unavailable. The offer or tier may need to be refreshed.":"")}),(0,n.jsx)("p",{className:"mt-3 text-sm text-slate-600",children:"Illustrative maximum based on the merchant’s current sale commission. Final cashback uses confirmed commission and the tier evaluated at settlement, including any qualifying upgrade."})]}):null}}},e=>{e.O(0,[9027,902,3474,8514,8318,4499,2861,3938,7751,7323,6968,4325,4327,7358],()=>e(e.s=50650)),_N_E=e.O()}]);

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.