PageSourceSearch

https://www.vendomepress.com/cdn/shopifycloud/checkout-web/assets/c1/abd080c1.Bld-jP37.js

js vendomepress.com collected 2026-10-02 11:02:20 UTC 4,578 bytes, 1 lines download raw bytes

1import{S as e,bs as t,bt as r}from"./4c290a1e.C6TDJ9Fn.js";import{a7 as o,a8 as a}from"./164ad2e3.BbIvMjRY.js";import{m as n}from"./2c1ab0fe.GMbxnz74.js";import"./app.CepNJbvh.js";import"./9f047e05.CCJUgz_L.js";import"./0a7dffce.DfUtZWCu.js";import"./5fda1420.KYpufQ--.js";import"./60a453ce.CkhHeRBc.js";import"./21cc90a2.DAzJmttM.js";import"./bb728e1c.iawBHR84.js";let i=class extends Error{constructor(){super(...arguments),this.name="EditorBridgeError"}};const c={error:!1},s={error:!0};function d(e,t){n(()=>{const r=function(e,t){const r=async r=>{if(r.origin===`https://${function(){if(null==window.Shopify)throw new i("Shopify object is missing");const{shop:e,editorDomain:t}=window.Shopify;if(null==t&&null==e){const e=new URLSearchParams(window.location.search).get("editor_domain");if(null==e)throw new i("Could not find Editor Domain on URL");return e}return t||e}()}`&&r.data.type===e){const e=r.data.payload;let a;try{const r=await t(e);a=r?{...r,error:!1}:c}catch(o){const e=o instanceof Error?o.message:"";a={...s,errorMessage:e}}window.parent.postMessage({id:r.data.id,type:r.data.type,payload:a},r.origin)}};return window.addEventListener("message",r),()=>window.removeEventListener("message",r)}(e,t);return()=>r()},[t,e])}const h={id:"1ddc80dd1747cfb53029784271e481f3361746816882735d1284cb4b37994106",type:"query",name:"Fonts",source:""},u={small:40,medium:60,large:80};class g extends Error{constructor(){super(...arguments),this.name="EditorBridgeError"}}function l(){const n=o(),i=a(),{graphql:{coreGraphql:c}}=e(),s=e=>{n.preview(e)},l=(e,t)=>{i.set(e,{...i.configuration[e],...t})},b=async e=>{const{data:t,error:o}=await c.staticQuery(h,{cache:!1});if(o)throw o;if(!t?.shop)throw new g("Fonts query failed");var a,i;a="primary"===e?"typographyPrimary":"typographySecondary",i=r(t.shop.designSystem?.typography?.[e]??{}),n.set(a,{...n.configuration[a],...i})},_=e=>e?.image.originalSrc,y=e=>e&&"rgba(0,0,0,0)"!==e?t(e):void 0;function w(e){l("header",{position:f(i)[e],alignment:m(i)[e]}),l("buyerJourney",{alignment:p(i)[e]})}return d("StorefrontMessage::BroadcastSettingUpdate",({settingId:e,settingValue:t})=>{if(e.startsWith("checkout_"))switch(e){case"checkout_header_image":{const e="center"===i.configuration.header.alignment&&"inlineSecondary"!==i.configuration.header.position,r="start"===i.configuration.header.alignment,o=e?"center":r?"left":"right";return l("header",{banner:{...i.configuration.header.banner,image:_(t)}}),w(o)}case"checkout_logo_image":{const{logo:r}=i.configuration.header,o=r?.maxWidth&&r?.aspectRatio?10*Math.round(r.maxWidth/r.aspectRatio/10):u.medium;return t?void(e=>{const t=new Image,r=new Promise(e=>{t.onload=()=>{e({width:t.width,height:t.height})}});return t.src=e,r})(_(t)).then(({width:e,height:a})=>{const n=e/a,i=o*n;l("header",{logo:{...r,image:_(t),maxWidth:i,aspectRatio:n}})}).catch(()=>{throw new g(`${e} is not handled!`)}):void l("header",{logo:{...i.configuration.header.logo,image:void 0,maxWidth:o,aspectRatio:1}})}case"checkout_logo_position":return l("header",{colorScheme:"start"===t?"scheme1":void 0}),w(t);case"checkout_logo_size":if(i.configuration.header.logo?.aspectRatio){const e=u[t]*i.configuration.header.logo.aspectRatio;l("header",{logo:{...i.configuration.header.logo,maxWidth:e}})}else l("header",{logo:{...i.configuration.header.logo,maxWidth:u[t],aspectRatio:1}});return;case"checkout_body_background_color":return s({schemes:{scheme1:{base:{background:y(t)}}}});case"checkout_body_background_image":return l("main",{backgroundImage:_(t)});case"checkout_input_background_color_mode":return;case"checkout_sidebar_background_image":return l("orderSummary",{backgroundImage:_(t)});case"checkout_sidebar_background_color":return s({schemes:{scheme2:{base:{background:y(t)}}}});case"checkout_heading_font":return b("secondary");case"checkout_body_font":return b("primary");case"checkout_accent_color":return s({global:{accent:y(t)}});case"checkout_button_color":return s({global:{brand:y(t)}});case"checkout_error_color":return s({global:{critical:y(t)}});default:throw new g(`${e} is not handled!`)}}),null}function m(e){return e.configuration.header?.banner?.image?{left:"start",center:"center",right:"end"}:{left:"start",center:"center",right:"center"}}function f(e){return e.configuration.header?.banner?.image?{left:"start",center:"start",right:"start"}
1:{left:"inline",center:"inline",right:"inlineSecondary"}}function p(e){return e.configuration.header?.banner?.image?{left:"start",center:"start",right:"start"}:{left:"start",center:"center",right:"start"}}export{l 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.