PageSourceSearch

https://www.cvs.com/~/_next/static/chunks/2721.f33ce67a986d86b9.js

js cvs.com collected 2026-09-27 20:56:56 UTC 7,092 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2721],{42721:(e,t,n)=>{n.r(t),n.d(t,{a:()=>o,b:()=>a,c:()=>c,g:()=>b});var s=function(e,t,n,s){return new(n||(n=Promise))(function(r,i){function a(e){try{c(s.next(e))}catch(e){i(e)}}function o(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,o)}c((s=s.apply(e,t||[])).next())})},r=function(e,t){var n,s,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(o){return function(c){var u=[o,c];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,s&&(r=2&u[0]?s.return:u[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,u[1])).done)return r;switch(s=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,s=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){a.label=u[1];break}if(6===u[0]&&a.label<r[1]){a.label=r[1],r=u;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(u);break}r[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],s=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},i=function(e){var t=null==e?void 0:e.toLowerCase();if(void 0!==t&&("es.cvs.com"===t||"www.cvs.com"===t||(t.startsWith("es-")||t.startsWith("www-"))&&t.endsWith(".cvs.com")))return"https://".concat(t)},a=function(e){var t=void 0===e?{}:e;t.isAuthenticated,t.isOtchs;var n="undefined"!=typeof window?i(window.location.hostname):void 0;if(void 0!==n)return n;if("undefined"==typeof window)return"";var s=window.location.hostname;return s.includes("localhost")||s.includes(".preview.cvs.com")?"https://www-qa2.cvs.com":""},o=function(){return new URLSearchParams(window.location.search).get("benefitId")},c=function(){return s(void 0,void 0,void 0,function(){var e,t;return r(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,fetch("https://dev1-api.cvshealth.com/retail/member/service/v1/headerfallback")];case 1:return[4,n.sent().json()];case 2:return e=n.sent(),console.warn("fetching fallback header data from BFF layer"),[3,4];case 3:return console.error(n.sent()),[3,4];case 4:try{if(t=void 0,e)return t=e.js.map(function(e){return p(e)}),[2,{success:!0,html:e.hydrated,scriptEls:t}];return[2,{success:!1}]}catch(e){return console.error(e),[2,{success:!1}]}}})})},u=function(e){return e?Object.fromEntries(e.split("&").map(function(e){return e.split("=")})):{}}
1,l=function(e){var t,n,s,r,i,a,o,c=e.headerRequestParams,l=e.footerRequestParams,h=e.baseUrl,v=e.isOtchs,f=e.isAuthenticated,p=e.isHeaderTemplate,b=e.benefitId,w=d({baseUrl:h,isAuthenticated:f,isOtchs:v}),m=!(null==c?void 0:c.serviceProps.includes("slim_header=true")),g="undefined"!=typeof window?null==(t=window.navigator)?void 0:t.userAgent:void 0,_=void 0!==g&&/CVS-Retail-Mobile-Prod|CVS_iPHONE_APP|CVS_iPAD_APP|CVS_ANDROID_APP/i.test(g);if(p){var O=new URLSearchParams(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({spanish_visible:String(null!=(n=null==c?void 0:c.spanishVisible)?n:""),page_name:null!=(s=null==c?void 0:c.pageName)?s:"",route_path:null!=(r=null==c?void 0:c.routePath)?r:"",search_bar:String(null!=(i=null==c?void 0:c.searchBarVisible)?i:""),target_component:null!=(a=null==c?void 0:c.targetComponent)?a:"",catalog_subcategories:String(m)},v&&{is_otchs:"true"}),f&&{is_authenticated:"true"}),v&&b&&{benefit_id:String(b)}),_&&{is_cvs_webview:"true"}),u(null==c?void 0:c.serviceProps)));return"".concat(w,"/v1/ui/header?").concat(O.toString())}var y=new URLSearchParams(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({page_name:null!=(o=null==l?void 0:l.pageName)?o:""},(null==l?void 0:l.hideUpperFooter)&&{hide_upper_footer:"true"}),(null==l?void 0:l.lob)&&{lob:l.lob}),v&&{is_otchs:"true"}),f&&{is_authenticated:"true"}),(null==l?void 0:l.slim)&&{slim:"true"}),(null==l?void 0:l.showMinuteClinic)&&{show_minute_clinic:"true"}),_&&{is_cvs_webview:"true"}),u(null==l?void 0:l.serviceProps)));return"".concat(w,"/v1/ui/footer?").concat(y.toString())},d=function(e){var t,n,s=e.baseUrl,r=e.isAuthenticated,i=e.isOtchs,o=v(s,"undefined"!=typeof window?window.location.hostname:null!=(n=null==(t=process.env)?void 0:t.HOSTNAME)?n:void 0),c=null!=o?o:a({isAuthenticated:r,isOtchs:i});return null==c?void 0:c.concat(i?"/benefits/gnav-component-server-otchs":"/retail-component-server")},h=function(e){var t=null==e?void 0:e.toLowerCase();if(void 0!==t){if("es.cvs.com"===t||t.startsWith("es-"))return"es";if("www.cvs.com"===t||t.startsWith("www-"))return"www"}},v=function(e,t){if(void 0!==e&&""!==e.trim())try{var n,s=new URL(e);if(void 0===i(s.hostname))return s.origin+s.pathname;var r=h(t),a=h(s.hostname);if(void 0===r||void 0===a||r===a)return s.origin+s.pathname;return n=s.hostname,s.hostname="es.cvs.com"===n||"www.cvs.com"===n?"".concat(r,".cvs.com"):n.startsWith("es-")||n.startsWith("www-")?"".concat(r,"-").concat(n.split("-").slice(1).join("-")):n,s.origin+s.pathname}catch(t){return e}},f=function(e){var t=e.scriptSrc,n=e.baseUrl,s=e.isOtchs,r=e.isHeaderTemplate,i=t.split("|"),a=document.createElement("script");if(2===i.length){"nomodule"===i[0]?a.setAttribute(i[0],""):a.setAttribute("type",i[0]);var o=d({baseUrl:n,isOtchs:s}),c="".concat(o,"/v1/ui/").concat(r?"header-build":"footer-build","/").concat(i[1]);a.setAttribute("src",c)}return a},p=function(e){var t=e.split("|"),n=document.createElement("script");if(2===t.length){"nomodule"===t[0]?n.setAttribute(t[0],""):n.setAttribute("type",t[0]);var s="".concat(a(),"/retail-component-server/v1/ui/header-build/").concat(t[1]);n.setAttribute("src",s)}return n}
1,b=function(e){var t=e.headerRequestParams,n=e.footerRequestParams,i=e.isOtchs,a=e.isAuthenticated,o=e.baseUrl,c=e.isHeaderTemplate,u=e.benefitId;return s(void 0,void 0,void 0,function(){var e,s,d,h,v,p;return r(this,function(r){switch(r.label){case 0:e=l({headerRequestParams:t,footerRequestParams:n,baseUrl:o,isOtchs:i,isAuthenticated:a,isHeaderTemplate:c,benefitId:u}),s=Object.assign(Object.assign({},{headers:{"Content-Type":"application/json"}}),{credentials:"include"}),r.label=1;case 1:return r.trys.push([1,5,,6]),[4,fetch(e,s)];case 2:if(d=r.sent(),h=void 0,!d.ok)return[3,4];return[4,d.text()];case 3:return h=(v=JSON.parse(r.sent())).js.map(function(e){return f({scriptSrc:e,baseUrl:o,isOtchs:i,isHeaderTemplate:c})}),[2,{success:!0,html:v.hydrated,scriptEls:h,status:d.status,statusText:d.statusText}];case 4:throw d;case 5:if((p=r.sent())instanceof Response)return console.error(p.statusText),[2,{success:!1,status:p.status,statusText:p.statusText}];return console.error(p.message),[2,{success:!1,status:500,statusText:p.message}];case 6:return[2]}})})}}}]);

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.