PageSourceSearch

https://montaleparfums.us/cdn/shopifycloud/checkout-web/assets/c1/shared-permissions.DaHnWepz.js

js montaleparfums.us collected 2026-09-29 23:28:33 UTC 3,546 bytes, 1 lines download raw bytes

1import{b9 as u,ba as l}from"./utilities-previous.C42MP_Mw.js";const c="2026-10",_="2023-04";function N(e){throw new u(`Unsupported API version: ${e}`)}function o(e){return e==="unstable"?"2025-07":e}function h(e,t){if(i(e,t))return!1;const n=o(e);return o(t)<n}function k(e,t){return i(e,t)?!1:!h(e,t)}function i(e,t){const n=o(e);return o(t)===n}function f(e){return{laterThan:t=>h(e,t),earlierThan:t=>k(e,t),equalTo:t=>i(e,t)}}function g(e){return e?f(e).laterThan(c)?c:e:_}function I(e){return f(e).laterThan("2025-07")}function E(e,t){return typeof e=="function"?e(t):e}function U(e){return e.endsWith("/")?e.slice(0,-1):e}const d=["cart","checkout","storefront"],T=new RegExp(`^shopify:/{0,2}(${d.join("|")})`);function L(e,t){const[n,r]=e.match(T)||[];return n?d.includes(r)?t[r]?.(e,n)??e:e:(e.startsWith("shopify:")&&console.error(new u(`Invalid shopify URL: ${e}`)),e)}function M(e,t){const n=new URL(e).host;return r=>{const a=r.split("storefront/")[1].split("/");a.join("/")==="api/graphql.json"&&a.splice(1,0,t);const m=a.join("/");return`https://${n}/${m}`}}function S(e){return t=>{if(!e)return t;const n=new URL(e);return new URL(t).searchParams.forEach((r,s)=>{n.searchParams.append(s,r)}),n.toString()}}function O(){return(e,t)=>e.replace(t,"")}const C={"Checkout::PaymentMethod::Render":!0,"Checkout::PaymentMethod::RenderRequiredAction":!0,"Checkout::PaymentMethod::HostedFields::RenderAfter":!0,"Checkout::GiftCard::Render":!0},R=new Set(Object.keys(C));function b(e){return R.has(e)}function V(e,t){const n=E(e.features,t);return l(n)}const A=new Map([["processing",["Checkout::PaymentMethod::RenderRequiredAction"]],["thankYou",["Checkout::ThankYou::Dynamic::Render","Checkout::ThankYou::CartLineDetails::RenderAfter","Checkout::ThankYou::CartLines::RenderAfter","Checkout::ThankYou::CustomerInformation::RenderAfter","Checkout::CartLineDetails::RenderAfter","Checkout::CartLineDetails::RenderLineComponents","Checkout::CartLines::RenderAfter","Checkout::CustomerInformation::RenderAfter","purchase.thank-you.chat.render","purchase.thank-you.header.render-after","purchase.thank-you.footer.render-after","purchase.thank-you.announcement.render"]]]);function D(e){const t=A.get(e.type)??[];return new Set(t)}const p=/^(?:Checkout::(?!ThankYou::)|purchase\.(?!thank-you\.)).+/;function Y(e){return p.test(e)}var P=(e=>(e.CheckoutExtensionsPositioning="read_checkout_extensions_positioning",e.CustomerAddress="read_customer_address",e.CustomerEmail="read_customer_email",e.CustomerName="read_customer_name",e.CustomerPersonalData="read_customer_personal_data",e.CustomerPhone="read_customer_phone",e.NetworkAccessScope="read_checkout_external_data",e.CheckoutExtensionPayments="write_checkout_extension_payments",e.CheckoutExtensionRedeemables="write_checkout_extension_redeemables",e.PaymentSessionModal="write_payment_session_modals",e))(P||{});function y(e){return e.approvalScopes.has("read_checkout_external_data")&&e.capabilities.networkAccess}class w{#e=new Map;syncExtension(t){this.#e.set(t.id,{extensionType:t.type,hasNetworkAccess:y(t),hasApiAccess:t.capabilities.apiAccess})}removeExtension(t){this.#e.delete(t)}has(t,n){const r=t==="networkAccess"?"hasNetworkAccess":"hasApiAccess";for(const s of this.#e.values())if(!(n?.extensionType&&s.extensionType!==n.extensionType)&&s[r])return!0;return!1}}class F{#e=new Map;app(t){let n=this.#e.get(t);return n||(n=new w,this.#e.set(t,n)),n}}export{P as A,_ as D,b as a,Y as b,y as c,F as d,N as e,U as f,g,E as h,I as i,O as j,S as k,V as l,D as m,L as r,M as s,f as t};

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.