PageSourceSearch

https://www.cardcash.com/static/js/CategoryBuyMainPage.ed014363.js

js cardcash.com collected 2026-10-01 11:44:20 UTC 10,734 bytes, 2 lines download raw bytes

1"use strict";(this.__LOADABLE_LOADED_CHUNKS__=this.__LOADABLE_LOADED_CHUNKS__||[]).push([[5113],{55274:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(67294),a=r(95439),i=r(40684),o=r(28216),s=(0,i.ZP)({resolved:{},chunkName:function(){return"MessageContainer"},isReady:function(e){var t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:function(){return r.e(6880).then(r.bind(r,68621))},requireAsync:function(e){var t=this,r=this.resolve(e);return this.resolved[r]=!1,this.importAsync(e).then((function(e){return t.resolved[r]=!0,e}))},requireSync:function(e){var t=this.resolve(e);return r(t)},resolve:function(){return 68621}});const c=function(){var e=(0,o.v9)((function(e){return e.userActions.selectedCategory?(0,a.cR)({merchantArray:e.merchantsBuy.sortedByName,currentSearch:e.userActions.buySearchText,filterCards:e.userActions.filterCards,categories:e.categories.allCategories,categoryName:e.userActions.selectedCategory}):(0,a.Ct)({merchantArray:e.merchantsBuy.sortedByName,currentSearch:e.userActions.buySearchText,filterCards:e.userActions.filterCards})})),t=(0,o.v9)((function(e){return(0,a.B$)({currentSearch:e.userActions.buySearchText})}));return n.createElement(n.Fragment,null,t&&e&&e.length<1&&n.createElement(s,{classes:"discount-buy-error-message",message:"Sorry, no cards match this search.",icon:"https://cdn.cardcash.com/website/ui/elements/error-icon.svg"}))}},36237:(e,t,r)=>{r.d(t,{Z:()=>m});var n=r(70885),a=r(74316),i=r(67294),o=r(57595),s=r(95439),c=r(28216),u=(0,a.Z)("div",{target:"e1equu6q1"})({name:"jg5iu5",styles:"display:grid;grid-template-columns:1fr 1fr 1fr 1fr;width:100%;grid-gap:20px;grid-row-gap:82px;margin-top:67px;@media (max-width: 1300px){grid-template-columns:1fr 1fr 1fr;}@media (max-width: 925px){grid-template-columns:1fr 1fr;}@media (max-width: 767px){grid-template-columns:1fr 1fr 1fr;}@media (max-width: 575px){grid-template-columns:1fr 1fr;}@media (max-width: 450px){margin-top:73px;}"}),l=(0,a.Z)("div",{target:"e1equu6q0"})({name:"6vtre5",styles:"border-radius:10px;height:60px;padding-right:50px;padding-left:50px;display:flex;justify-content:center;align-items:center;color:#12b2ea;background-color:rgba(18, 178, 234, 0.1);width:fit-content;font-weight:bold;width:fit-content;cursor:pointer;margin:0 auto;margin-top:50px;font-size:20px"});const m=function(){var e=(0,c.v9)((function(e){return e.userActions.selectedCategory?(0,s.cR)({merchantArray:e.merchantsBuy.sortedByName,currentSearch:e.userActions.buySearchText,filterCards:e.userActions.filterCards,categories:e.categories.allCategories,categoryName:e.userActions.selectedCategory}):(0,s.Ct)({merchantArray:e.merchantsBuy.sortedByName,currentSearch:e.userActions.buySearchText,filterCards:e.userActions.filterCards})})),t=(0,c.v9)((function(e){return e.userActions.buySearchText})),r=(0,i.useState)(0),a=(0,n.Z)(r,2),m=a[0],d=a[1],f=(0,i.useState)(28),h=(0,n.Z)(f,2),g=h[0],y=h[1];return i.createElement(i.Fragment,null,i.createElement(u,{className:"animated fadeIn"},e.slice(0,(null==t?void 0:t.length)>0?3e3:g).map((function(e){return i.createElement(o.Z,{key:e.id,moveToMerchantDetail:e.slug,name:e.name,cardsAvailable:e.cardsAvailable,upToPercentage:e.upToPercentage,img:e.image})}))),e.length>g&&m<2&&t.length<1&&i.createElement(l,{onClick:function(){y(0===m?128:3e3),d(m+1)}},0===m?"Load more":"Load all"))}},73872:(e,t,r)=>{r.r(t),r.d(t,{default:()=>N});var n=r(70885),a=r(74316),i=r(67294),o=r(64593),s=r(26575),c=r(38323),u=r(40684),l=r(21867),m=r(36237),d=r(65877),f=r(83244),h=r(44859),g=r(55274),y=r(28216);var v=(0,u.ZP)({resolved:{},chunkName:function(){return"BuyPageCardsHeader"},isReady:function(e){var t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:function(){return Promise.all([r.e(2978),r.e(2362)]).then(r.bind(r,30513))},requireAsync:function(e){var t=this,r=this.resolve(e);return this.resolved[r]=!1,this.importAsync(e).then((function(e){return t.resolved[r]=!0,e}))},requireSync:function(e){var t=this.resolve(e);return r(t)},resolve:function(){return 30513}}),p=(0,u.ZP)({resolved:{},chunkName:function(){return"Dropdown"},isReady:function(e){var t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:function(){return Promise.all([r.e(2978),r.e(4983)]).then(r.bind(r,77134))},requireAsync:function(e){var t=this,r=this.resolve(e);return this.resolved[r]=!1,this.importAsync(e).then((function(e){return t.resolved[r]=!0,e}))},requireSync:function(e){var t=this.resolve(e);return r(t)},resolve:function(){return 77134}}),x=(0,u.ZP)({resolved:{},chunkName:function(){return"CategoriesContainerLargeScreens"},isReady:function(e){var t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:function(){return r.e(1309).then(r.bind(r,90639))},requireAsync:function(e){var t=this,r=this.resolve(e);return this.resolved[r]=!1,this.importAsync(e).then((function(e){return t.resolved[r]=!0,e}))},requireSync:function(e){var t=this.resolve(e);return r(t)},resolve:function(){return 90639}}),A=(0,u.ZP)({resolved:{},chunkName:function(){return"QuickBuyMobileButton"},isReady:function(e){var t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:function(){return r.e(5806).then(r.bind(r,54381))},requireAsync:function(e){var t=this,r=this.resolve(e);return this.resolved[r]=!1,this.importAsync(e).then((function(e){return t.resolved[r]=!0,e}))},requireSync:function(e){var t=this.resolve(e);return r(t)},resolve:function(){return 54381}},{ssr:!1}),b=(0,u.ZP)({resolved:{},chunkName:function(){return"BuyTabletButtons"},isReady:function(e){var t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:function(){return r.e(8867).then(r.bind(r,89295))},requireAsync:function(e){var t=this,r=this.resolve(e);return this.resolved[r]=!1,this.importAsync(e).then((function(e){return t.resolved[r]=!0,e}))},requireSync:function(e){var t=this.resolve(e);return r(t)},resolve:function(){return 89295}}),E=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return"CATEGORY_PAGE_VIEW"+(e?":".concat(e):"")},C=(0,a.Z)("div",{target:"e117reqb2"})({name:"1r0mehw",styles:"display:grid;grid-template-columns:250px 1fr;margin-top:40px;grid-gap:30px;margin-bottom:110px;@media (max-width: 950px){grid-gap:0px;}@media (max-width: 950px){grid-gap:0px;}@media (max-width: 767px){display:block;}"}),w=(0,a.Z)("div",{target:"e117reqb1"})({name:"1fbzrvi",styles:"display:grid;grid-template-columns:1fr 1fr;align-items:center;@media (max-width: 500px){grid-template-columns:1.4fr 1fr;grid-gap:15px;}@media (max-width: 440px){grid-template-columns:1.6fr 1fr;}@media (max-width: 375px){grid-template-columns:1.3fr 1fr;}@media (max-width: 340px){grid-template-columns:1fr 1fr;}"}),S=(0,a.Z)("div",{target:"e117reqb0"})({name:"17rtrk2",styles:"width:227px;justify-self:flex-end;@media (max-width: 500px){width:auto;justify-self:flex-start;}"});const N=function(){var e=(0,y.I0)(),t=(0,y.v9)((function(e){return e.userActions.buySearchText})),r=(0,y.v9)((function(e){return e.userActions.selectedCategory})),a=(0,y.v9)((function(e){return(0,h.U)({categories:e.categories.allCategories,categoryName:e.userActions.selectedCategory})})),u=(0,i.useState)(r),N=(0,n.Z)(u,2),Z=N[0],B=N[1];(0,i.useEffect)((function(){Z!==r&&(q(),k(),B(r))}),[r,t]);var q=function(){a&&e((0,f.BX)(E(a),{cat_id:a}))},k=function(){a&&e((0,f.RL)(E(a.categoryId)))};return i.createElement("div",{className:"mar-t-128-108 discount-buy-main-page-container orange-caret"},i.createElement(o.q,{title:"Buy Discount ".concat(a.categoryName," Gift Cards | CardCash")}),i.createElement(l.Z,{components:[{component:function(){return i.createElement(A,{setDisplay:"768px"})},break:1,maxBreak:768}]}),i.createElement("div",null,i.createElement(s.Z,null),i.createElement(c.Z,{setClassName:"buy-header-category",headerImg:a.images.bannerName,name:a.categoryName,categorySaleImage:a.images.saleBanner,categoryId:a.categoryId}),i.createElement(C,{className:"main-container-page-width"},i.createElement(l.Z,{components:[{component:function(){return i.createElement(x,{guaranteeText:"45-day guarantee",categoryName:a.categoryName})},break:767,maxBreak:Number.MAX_SAFE_INTEGER}],defaultComponent:function(){return i.createElement(x,{guaranteeText:"45-day guarantee",categoryName:a.categoryName})}}),i.createElement("div",null,a.message&&i.createElement(d.Z,{message:a.message}),i.createElement(l.Z,{components:[{component:function(){return i.createElement(b,{guaranteeText:"45-day guarantee"})},break:1,maxBreak:768}],defaultComponent:function(){return i.createElement(b,{guaranteeText:"45-day guarantee"})}}),i.createElement(w,null,i.createElement(v,{categoryName:a.categoryName,page:"buyCategories"}),i.createElement(S,null,i.createElement(p,null))),i.createElement(g.Z,null),i.createElement(m.Z,null)))))}},65877:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(74316),a=r(67294),i=(0,n.Z)("div",{target:"e1fo36kl0"})({name:"1b07bq4",styles:"width:100%;height:61px;border-radius:10px;background-color:rgba(119, 121, 132, 0.1);font-size:14px;font-weight:500;line-height:1.71;color:#1f2021;margin-bottom:30px;display:flex;align-items:center;padding-left:30px;@media (max-width: 550px){font-size:13px;height:auto;padding:10px;text-align:center;}@media (max-width: 450px){font-size:12px;}"});const o=function(e){var t=e.message;return a.createElement(i,null,t)}},44859:(e,t,r)=>{function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}
1}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw o}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{U:()=>i});var i=(0,r(20573).P1)((function(e){var t,r=e.categories,a=e.categoryName,i=n(r);try{for(i.s();!(t=i.n()).done;){var o,s=n(t.value.categories);try{for(s.s();!(o=s.n()).done;){var c=o.value;if(c.url===a)return c}}catch(e){s.e(e)}finally{s.f()}}}catch(e){i.e(e)}finally{i.f()}}),(function(e){return e}))}}]);
2//# sourceMappingURL=CategoryBuyMainPage.ed014363.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.