PageSourceSearch

https://www.madmaps.com/cdn/shopifycloud/checkout-web/assets/c1/co…onent-ProductDisclosuresDetails.CD0hoEyk.js

js madmaps.com collected 2026-09-25 18:53:22 UTC 2,513 bytes, 1 lines download raw bytes

1import{u as i,S as u}from"./esnext-vendor.B9Da21W6.js";import{L as d,a5 as m,a6 as o,k as h,G as y,a7 as g,m as x}from"./hydrate.DZ4YTm7p.js";import{S as b}from"./addresses-is-address-empty.Bn2lNY_L.js";import"./graphql-PaymentSessionMutation.CAXCwUvV.js";import"./app.DbSrjjlA.js";import"./hooks-useShopPayExternalAppContext.DWwMuRnz.js";import"./hooks-useReplaceShopPayInHistory.DPpLejwu.js";function k(r,{relativeUrlBase:t}={}){const n=A(r);return n?a(n,f(n),t):null}function A(r){if(!r)return null;if(typeof r!="string")return r;try{const t=JSON.parse(r);return l(t)?t:null}catch{return null}}function l(r){return typeof r=="object"&&r!==null&&"type"in r&&typeof r.type=="string"}function e(r,t,n){return Array.isArray(r)?r.filter(l).map((c,s)=>i(u,{children:a(c,t,n)},s)):null}function a(r,t,n){switch(r.type){case"root":return i(u,{children:e(r.children,t,n)});case"paragraph":return i("p",{children:e(r.children,t,n)});case"heading":{const c=`h${S(r.level,t)}`;return i(c,{children:e(r.children,t,n)})}case"list":return r.listType==="ordered"?i("ol",{children:e(r.children,t,n)}):i("ul",{children:e(r.children,t,n)});case"list-item":return i("li",{children:e(r.children,t,n)});case"link":{const c=T(r.url,n);return c?i(d,{href:c,target:r.target==="_blank"?"_blank":"auto",children:e(r.children,t,n)}):i(u,{children:e(r.children,t,n)})}case"text":return D(r);default:return null}}function D(r){let t=r.value;return r.italic&&(t=i("em",{children:t})),r.bold&&(t=i("strong",{children:t})),t}function f(r){let t=r.type==="heading"?p(r.level):void 0;if("children"in r&&Array.isArray(r.children))for(const n of r.children){if(!l(n))continue;const c=f(n);c!==void 0&&(t===void 0||c<t)&&(t=c)}return t}function S(r,t){const n=p(r)??t??1;return Math.min(6,4+Math.max(0,n-(t??n)))}function p(r){return r!==void 0&&r>=1&&r<=6?r:void 0}function T(r,t){if(r.startsWith("/")&&!r.startsWith("//")){if(!t)return null;try{return new URL(r,t).href}catch{return null}}let n;try{n=new URL(r)}catch{return null}return n.protocol==="http:"||n.protocol==="https:"?n.href:null}function C({content:r}){const{url:t}=b();return i(m,{children:k(r,{relativeUrlBase:t.storefront()})})}function _({disclosures:r}){return i(h,{gap:"large-200",children:r.map(t=>i(o,{children:i(h,{gap:"small-200",children:[i(y,{gridTemplateColumns:"auto minmax(0, 1fr)",gap:"base",alignItems:"center",children:[i(g,{disclosure:t,size:"large"}),i(x,{level:2,children:t.title})]}),i(o,{children:i(C,{content:t.content})})]})},t.id))})}export{_ as default};

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.