PageSourceSearch

https://crypto.com/content-hub/_next/static/chunks/app/%5Blocale%5D/layout-b8215345750e0c09.js

js crypto.com collected 2026-09-24 08:25:36 UTC 10,838 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{1634:(e,t,r)=>{"use strict";r.d(t,{F:()=>s,Y:()=>l});var n=r(47310),o=r(96606),a=r(18327);let i=(0,o.createContext)(void 0),l=e=>{let{children:t,deviceType:r}=e,o=(0,a.Y)(r);return(0,n.jsx)(i.Provider,{value:o,children:t})},s=()=>{let e=(0,o.useContext)(i);if(void 0===e)throw Error("useDevice must be used within a DeviceProvider");return e}},9684:(e,t,r)=>{Promise.resolve().then(r.bind(r,48205)),Promise.resolve().then(r.bind(r,49728)),Promise.resolve().then(r.bind(r,35968)),Promise.resolve().then(r.bind(r,50854)),Promise.resolve().then(r.bind(r,90654))},11943:(e,t,r)=>{"use strict";t.IntlContext=r(96606).createContext(void 0)},18327:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o});var n=r(96606);let o=e=>{let[t,r]=(0,n.useState)(""),o=()=>{let e=window.innerWidth;r(e<768?"mobile":e<1128?"tablet":e<1280?"desktop":"largeDesktop")};(0,n.useEffect)(()=>(o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)),[]);let a="mobile"===e&&""===t||"mobile"===t,i="tablet"===e&&""===t||"tablet"===t;return{isMobile:a,isTablet:i,isBrowser:"desktop"===e||"desktop"===t,isLargerThanDesktop:"desktop"===t||"largeDesktop"===t,isLargerThanLargeDesktop:"largeDesktop"===t,deviceSize:t,isDesktop:!1===a&&!1===i}}},25725:(e,t,r)=>{"use strict";r.r(t);var n=r(9097),o={};for(let e in n)"default"!==e&&(o[e]=()=>n[e]);r.d(t,o)},35968:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var n=r(39302),o=r(14824),a=r.n(o),i=r(25725),l=r(96606),s=r(40655),c=(0,l.forwardRef)(function(e,t){let{defaultLocale:r,href:o,locale:c,localeCookie:u,onClick:f,prefetch:d,unprefixed:m,...p}=e,h=(0,s.A)(),v=null!=c&&c!==h,g=c||h,b=function(){let[e,t]=(0,l.useState)();return(0,l.useEffect)(()=>{t(window.location.host)},[]),e}(),y=b&&m&&(m.domains[b]===g||!Object.keys(m.domains).includes(b)&&h===r&&!c)?m.pathname:o,w=(0,i.usePathname)();return v&&(d&&console.error("The `prefetch` prop is currently not supported when using the `locale` prop on `Link` to switch the locale.`"),d=!1),l.createElement(a(),(0,n._)({ref:t,href:y,hrefLang:v?c:void 0,onClick:function(e){(function(e,t,r,n){if(!e||n===r||null==n||!t)return;let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.pathname;return"/"===e?t:t.replace(e,"")}(t),{name:a,...i}=e;i.path||(i.path=""!==o?o:"/");let l="".concat(a,"=").concat(n,";");for(let[e,t]of Object.entries(i))l+="".concat("maxAge"===e?"max-age":e),"boolean"!=typeof t&&(l+="="+t),l+=";";document.cookie=l})(u,w,h,c),f&&f(e)},prefetch:d},p))})},39302:(e,t,r)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{_:()=>n})},40655:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(25725),o=r(82841);let a="locale",i=!1;function l(){let e,t=(0,n.useParams)();try{e=(0,o.useLocale)()}catch(r){if("string"!=typeof(null==t?void 0:t[a]))throw r;i||(console.warn("Deprecation warning: `useLocale` has returned a default from `useParams().locale` since no `NextIntlClientProvider` ancestor was found for the calling component. This behavior will be removed in the next major version. Please ensure all Client Components that use `next-intl` are wrapped in a `NextIntlClientProvider`."),i=!0),e=t[a]}return e}},48205:(e,t,r)=>{"use strict";r.d(t,{default:()=>u});var n=r(47310),o=r(96606);function a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)"__proto__"!==n&&(e[n]=r[n])}return e}var i=function e(t,r){function n(e,n,o){if("undefined"!=typeof document){"number"==typeof(o=a({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var l in o)o[l]&&(i+="; "+l,!0!==o[l]&&(i+="="+o[l].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+i}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},o=0;o<r.length;o++){var a=r[o].split("="),i=a.slice(1).join("=");try{var l=decodeURIComponent(a[0]);if(l in n||(n[l]=t.read(i,l)),e===l)break}catch{}}return e?n[e]:n}},remove:function(e,t){n(e,"",a({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,a({},this.attributes,t))},withConverter:function(t){return e(a({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
1URIComponent)}},{path:"/"}),l=r(18327),s=r(84301),c=r(1634);let u=e=>{let{children:t,deviceType:r,locale:a,language:u,countryCode:f}=e,d=(0,l.Y)(r),m=i.get("currency")||"USD",[p,h]=(0,o.useState)(m),{Header:v,Footer:g}=(0,s.ef)({environment:"production",countryCode:f,language:u,locale:a,currency:p,onClickLanguageRegion:e=>{let t=window.location.href.split("/");t[3]=e;let r=t.join("/");window.open(r,"_self")},onClickCurrency:e=>{console.log("selected currency",e),h(e)},isMobile:d.isMobile,source:"cdc-market"});return(0,n.jsxs)(c.Y,{deviceType:r,children:[(0,n.jsx)(v,{}),t,(0,n.jsx)(g,{})]})}},49728:(e,t,r)=>{"use strict";r.d(t,{IdentifyOnAuth:()=>i});var n=r(96606),o=r(72455),a=r(70569);let i=()=>{let{authUser:e,isAuth:t}=(0,o.Y9)(),r=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{(()=>{if(r.current)return;let n=(0,a.P)();if(n&&t&&e&&0===e.code&&"success"===e.message){let t=e.data.user.uuid;n.identify(t,{name:e.data.user.name,email:e.data.user.email}),r.current=!0}})()},[t,e]),null}},50798:(e,t,r)=>{"use strict";function n(e,t){var r=t&&t.cache?t.cache:s,n=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:function(e,t){var r,n,i=1===e.length?o:a;return r=t.cache.create(),n=t.serializer,i.bind(this,e,r,n)})(e,{cache:r,serializer:n})}function o(e,t,r,n){var o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function a(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),a=t.get(o);return void 0===a&&(a=e.apply(this,n),t.set(o,a)),a}r.r(t),r.d(t,{memoize:()=>n,strategies:()=>c});var i=function(){return JSON.stringify(arguments)},l=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),s={create:function(){return new l}},c={variadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,a.bind(this,e,r,n)},monadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,o.bind(this,e,r,n)}}},50854:(e,t,r)=>{"use strict";r.d(t,{default:()=>f});var n=r(39302),o=r(25725),a=r(96606),i=r(40655);function l(e){return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&!function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e)}function s(e,t){let r;return"string"==typeof e?r=c(t,e):(r={...e},e.pathname&&(r.pathname=c(t,e.pathname))),r}function c(e,t){let r=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),r+=t}r(55036);var u=r(35968);let f=(0,a.forwardRef)(function(e,t){let{href:r,locale:c,localeCookie:f,localePrefixMode:d,prefix:m,...p}=e,h=(0,o.usePathname)(),v=(0,i.A)(),g=c!==v,[b,y]=(0,a.useState)(()=>l(r)&&("never"!==d||g)?s(r,m):r);return(0,a.useEffect)(()=>{h&&y(function(e,t){var r,n;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(!l(e))return e;let c=(r=i,(n=a)===r||n.startsWith("".concat(r,"/")));return(t!==o||c)&&null!=i?s(e,i):e}(r,c,v,h,m))},[v,r,c,h,m]),a.createElement(u.default,(0,n._)({ref:t,href:b,locale:c,localeCookie:f},p))});f.displayName="ClientLink"},50950:(e,t,r)=>{"use strict";var n=r(50798);function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(".")}function a(e){return o(e.namespace,e.key)}function i(e){console.error(e)}function l(e,t){return n.memoize(e,{cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:n.strategies.variadic})}function s(e,t){return l(function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new e(...r)},t)}t.createCache=function(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}},t.createIntlFormatters=function(e){return{getDateTimeFormat:s(Intl.DateTimeFormat,e.dateTime),getNumberFormat:s(Intl.NumberFormat,e.number),getPluralRules:s(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:s(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:s(Intl.ListFormat,e.list),getDisplayNames:s(Intl.DisplayNames,e.displayNames)}},t.defaultGetMessageFallback=a,t.defaultOnError=i,t.initializeConfig=function(e){let{getMessageFallback:t,messages:r,onError:n,...o}=e;return{...o,messages:r,onError:n||i,getMessageFallback:t||a}},t.joinPath=o,t.memoFn=l}
1,70569:(e,t,r)=>{"use strict";let n;r.d(t,{P:()=>a});var o=r(10003);function a(){if(!n){let e="XgozqWHnR6BRRc9BgJCTNz3PzDntyajA";if(!e)return;n=o.N.load({writeKey:e})}return n}},79062:(e,t,r)=>{"use strict";var n=r(96606),o=r(11943);function a(){let e=n.useContext(o.IntlContext);if(!e)throw Error(void 0);return e}t.useIntlContext=a,t.useLocale=function(){return a().locale}},82841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(79062);r(96606),r(11943),t.useLocale=n.useLocale},84630:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(96606),o=r(50950),a=r(11943);r(50798);var i=function(e){return e&&e.__esModule?e:{default:e}}(n);t.IntlProvider=function(e){let{children:t,defaultTranslationValues:r,formats:l,getMessageFallback:s,locale:c,messages:u,now:f,onError:d,timeZone:m}=e,p=n.useMemo(()=>o.createCache(),[c]),h=n.useMemo(()=>o.createIntlFormatters(p),[p]),v=n.useMemo(()=>({...o.initializeConfig({locale:c,defaultTranslationValues:r,formats:l,getMessageFallback:s,messages:u,now:f,onError:d,timeZone:m}),formatters:h,cache:p}),[p,r,l,h,s,c,u,f,d,m]);return i.default.createElement(a.IntlContext.Provider,{value:v},t)}},90654:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var n=r(39302),o=r(96606),a=r(84630);function i(e){let{locale:t,...r}=e;if(!t)throw Error("Failed to determine locale in `NextIntlClientProvider`, please provide the `locale` prop explicitly.\n\nSee https://next-intl.dev/docs/configuration#locale");return o.createElement(a.IntlProvider,(0,n._)({locale:t},r))}}},e=>{e.O(0,[5867,2009,7258,3,4824,4402,8773,8299,3690,7358],()=>e(e.s=9684)),_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.