(window.webpackJsonpvtex_checkout_resources_0_50_0=window.webpackJsonpvtex_checkout_resources_0_50_0||[]).push([["Utils"],{22:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"installedApp"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.checkout-resources@0.50.0",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"installedApp"},name:{kind:"Name",value:"installedAppPublic"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"c5e5d72c1f41ab3ea9e46058dede8332c20b231846a1b57c10038a405074c11b",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"version"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:258}};i.loc.source={body:'query installedApp($slug: String!) @context(sender: "vtex.checkout-resources@0.50.0") {\n installedApp: installedAppPublic(slug: $slug) @runtimeMeta(hash: "c5e5d72c1f41ab3ea9e46058dede8332c20b231846a1b57c10038a405074c11b") {\n version\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function t(e,n){for(var i=0;i0;){var l=c;c=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(a[e]||new Set).forEach((function(e){c.add(e)})))}))}return o.forEach((function(n){var a=t(e,n);a&&i.definitions.push(a)})),i}(i,"installedApp")},6:function(e,n){e.exports=ReactApollo},62:function(e,n,i){"use strict";i.r(n),function(e){var n=i(0);i.p=Object(n.getPublicPath)("vtex.checkout-resources@0.50.0");var a=Object(n.register)((function(){return i(65)}),e,"vtex.checkout-resources@0.50.0","vtex.checkout-resources@0.x","Utils");a.renderHotReload,a.setupHMR}.call(this,i(1)(e))},65:function(e,n,i){"use strict";i.r(n);var a=i(6),t=i(22),r=i.n(t),o="/checkout/#/cart",c="/cart";n.default={useCheckoutURL:function(){var e,n=Object(a.useQuery)(r.a,{ssr:!1,variables:{slug:"vtex.checkout"}}).data,i=null===(e=null==n?void 0:n.installedApp)||void 0===e?void 0:e.version,t=i&&parseInt(i.split(".")[0]);return{url:t>0?c:o,major:t}}}}},[[62,"common"]]]);