1import{u as _,e as S,a as b}from"./DOtdmKGA.js";import{_ as E,a as f,P as L,b as g,o as m,h as y,w as x,f as h,Q as w,t as p,c as P,e as R}from"./BgRogt3a.js";import{u as D}from"./zBoNC0QQ.js";const N={name:"CommonShopButton",props:{label:{type:String,default:null},hideAmount:{type:Boolean,default:!1},trackEvent:{type:String,default:""}},computed:{...f(_,["shop"]),...f(S,["total"]),btnLabel(){return this.label||this.shop.hShopBtnLabel},isOnProductsPage(){var e;return(e=(this._.provides[L]||this.$route).name)==null?void 0:e.startsWith("products")}},methods:{...g(D,["openModal"]),openShop(){this.isOnProductsPage?(this.openModal("shop"),this.$bus.$emit("MODAL:OPENSHOP")):this.$router.push(this.localePath("/products")),this.$track({event:this.trackEvent,click_label:this.btnLabel})}}},O={class:"label f-serif-bold"},B={key:0,class:"shop-amount f-serif-bold"};function F(e,n,t,i,s,a){const c=b;return m(),y(c,null,{default:x(()=>[h("button",{class:"common-shop-button ui-fragments-button link",onClick:n[0]||(n[0]=w((...o)=>a.openShop&&a.openShop(...o),["prevent"]))},[h("span",O,p(a.btnLabel),1),e.total>0&&!t.hideAmount?(m(),P("span",B,p(e.total),1)):R("",!0)])]),_:1})}const H=E(N,[["render",F],["__scopeId","data-v-67fe2d9a"]]);var u={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"LinkExternal"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HLinkExternalRecord"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hExternalLinkLabel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hExternalLinkUrl"},arguments:[],directives:[]}]}}],loc:{start:0,end:107}};u.loc.source={body:`fragment LinkExternal on HLinkExternalRecord { 2 __typename 3 id 4 hExternalLinkLabel 5 hExternalLinkUrl 6} 7`,name:"GraphQL request",locationOffset:{line:1,column:1}};function l(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){l(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){l(i,n)}),e.definitions&&e.definitions.forEach(function(i){l(i,n)})}var d={};(function(){u.definitions.forEach(function(n){if(n.name){var t=new Set;l(n,t),d[n.name.value]=t}})})();function k(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function C(e,n){var t={kind:e.kind,definitions:[k(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=d[n]||new Set,s=new Set,a=new Set;for(i.forEach(function(o){a.add(o)});a.size>0;){var c=a;a=new Set,c.forEach(function(o){if(!s.has(o)){s.add(o);var r=d[o]||new Set;r.forEach(function(v){a.add(v)})}})}return s.forEach(function(o){var r=k(e,o);r&&t.definitions.push(r)}),t}C(u,"LinkExternal");export{H as _,u as d};
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.