import{aK as B}from"./index-Bi4pIh8m.js";var H={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApproveQuoteRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"command"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ApproveQuoteCommandType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"approveQuoteRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"command"},value:{kind:"Variable",name:{kind:"Name",value:"command"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"orderId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:135}};H.loc.source={body:`mutation ApproveQuoteRequest($command: ApproveQuoteCommandType!) {
  approveQuoteRequest(command: $command) {
    id
    orderId
  }
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function f(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(a){f(a,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){f(a,n)}),e.definitions&&e.definitions.forEach(function(a){f(a,n)})}var V={};(function(){H.definitions.forEach(function(n){if(n.name){var i=new Set;f(n,i),V[n.name.value]=i}})})();function ee(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function ge(e,n){var i={kind:e.kind,definitions:[ee(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=V[n]||new Set,o=new Set,d=new Set;for(a.forEach(function(t){d.add(t)});d.size>0;){var l=d;d=new Set,l.forEach(function(t){if(!o.has(t)){o.add(t);var r=V[t]||new Set;r.forEach(function(m){d.add(m)})}})}return o.forEach(function(t){var r=ee(e,t);r&&i.definitions.push(r)}),i}ge(H,"ApproveQuoteRequest");var J={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ChangeQuoteComment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"command"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ChangeQuoteCommentCommandType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"changeQuoteComment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"command"},value:{kind:"Variable",name:{kind:"Name",value:"command"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:127}};J.loc.source={body:`mutation ChangeQuoteComment($command: ChangeQuoteCommentCommandType!) {
  changeQuoteComment(command: $command) {
    id
  }
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function v(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(a){v(a,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){v(a,n)}),e.definitions&&e.definitions.forEach(function(a){v(a,n)})}var q={};(function(){J.definitions.forEach(function(n){if(n.name){var i=new Set;v(n,i),q[n.name.value]=i}})})();function ne(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function Ne(e,n){var i={kind:e.kind,definitions:[ne(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=q[n]||new Set,o=new Set,d=new Set;for(a.forEach(function(t){d.add(t)});d.size>0;){var l=d;d=new Set,l.forEach(function(t){if(!o.has(t)){o.add(t);var r=q[t]||new Set;r.forEach(function(m){d.add(m)})}})}return o.forEach(function(t){var r=ne(e,t);r&&i.definitions.push(r)}),i}Ne(J,"ChangeQuoteComment");var M={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ChangeQuoteItemQuantity"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"command"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ChangeQuoteItemQuantityCommandType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"changeQuoteItemQuantity"},arguments:[{kind:"Argument",name:{kind:"Name",value:"command"},value:{kind:"Variable",name:{kind:"Name",value:"command"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:142}};M.loc.source={body:`mutation ChangeQuoteItemQuantity($command: ChangeQuoteItemQuantityCommandType!) {
  changeQuoteItemQuantity(command: $command) {
    id
  }
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function k(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(a){k(a,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){k(a,n)}),e.definitions&&e.definitions.forEach(function(a){k(a,n)})}var I={};(function(){M.definitions.forEach(function(n){if(n.name){var i=new Set;k(n,i),I[n.name.value]=i}})})();function ie(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function he(e,n){var i={kind:e.kind,definitions:[ie(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=I[n]||new Set,o=new Set,d=new Set;for(a.forEach(function(t){d.add(t)});d.size>0;){var l=d;d=new Set,l.forEach(function(t){if(!o.has(t)){o.add(t);var r=I[t]||new Set;r.forEach(function(m){d.add(m)})}})}return o.forEach(function(t){var r=ie(e,t);r&&i.definitions.push(r)}),i}he(M,"ChangeQuoteItemQuantity");var W={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeclineQuoteRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"command"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeclineQuoteCommandType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"declineQuoteRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"command"},value:{kind:"Variable",name:{kind:"Name",value:"command"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:123}};W.loc.source={body:`mutation DeclineQuoteRequest($command: DeclineQuoteCommandType!) {
  declineQuoteRequest(command: $command) {
    id
  }
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function p(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(a){p(a,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){p(a,n)}),e.definitions&&e.definitions.forEach(function(a){p(a,n)})}var C={};(function(){W.definitions.forEach(function(n){if(n.name){var i=new Set;p(n,i),C[n.name.value]=i}})})();function ae(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function ye(e,n){var i={kind:e.kind,definitions:[ae(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=C[n]||new Set,o=new Set,d=new Set;for(a.forEach(function(t){d.add(t)});d.size>0;){var l=d;d=new Set,l.forEach(function(t){if(!o.has(t)){o.add(t);var r=C[t]||new Set;r.forEach(function(m){d.add(m)})}})}return o.forEach(function(t){var r=ae(e,t);r&&i.definitions.push(r)}),i}ye(W,"DeclineQuoteRequest");var X={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RemoveQuoteItem"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"command"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RemoveQuoteItemCommandType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"removeQuoteItem"},arguments:[{kind:"Argument",name:{kind:"Name",value:"command"},value:{kind:"Variable",name:{kind:"Name",value:"command"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:118}};X.loc.source={body:`mutation RemoveQuoteItem($command: RemoveQuoteItemCommandType!) {
  removeQuoteItem(command: $command) {
    id
  }
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function S(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(a){S(a,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){S(a,n)}),e.definitions&&e.definitions.forEach(function(a){S(a,n)})}var A={};(function(){X.definitions.forEach(function(n){if(n.name){var i=new Set;S(n,i),A[n.name.value]=i}})})();function te(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function be(e,n){var i={kind:e.kind,definitions:[te(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=A[n]||new Set,o=new Set,d=new Set;for(a.forEach(function(t){d.add(t)});d.size>0;){var l=d;d=new Set,l.forEach(function(t){if(!o.has(t)){o.add(t);var r=A[t]||new Set;r.forEach(function(m){d.add(m)})}})}return o.forEach(function(t){var r=te(e,t);r&&i.definitions.push(r)}),i}be(X,"RemoveQuoteItem");var Y={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SubmitQuoteRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"command"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SubmitQuoteCommandType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"submitQuoteRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"command"},value:{kind:"Variable",name:{kind:"Name",value:"command"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:120}};Y.loc.source={body:`mutation SubmitQuoteRequest($command: SubmitQuoteCommandType!) {
  submitQuoteRequest(command: $command) {
    id
  }
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function g(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(a){g(a,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){g(a,n)}),e.definitions&&e.definitions.forEach(function(a){g(a,n)})}var O={};(function(){Y.definitions.forEach(function(n){if(n.name){var i=new Set;g(n,i),O[n.name.value]=i}})})();function de(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function Fe(e,n){var i={kind:e.kind,definitions:[de(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=O[n]||new Set,o=new Set,d=new Set;for(a.forEach(function(t){d.add(t)});d.size>0;){var l=d;d=new Set,l.forEach(function(t){if(!o.has(t)){o.add(t);var r=O[t]||new Set;r.forEach(function(m){d.add(m)})}})}return o.forEach(function(t){var r=de(e,t);r&&i.definitions.push(r)}),i}Fe(Y,"SubmitQuoteRequest");var Z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateQuoteAddresses"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"command"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateQuoteAddressesCommandType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateQuoteAddresses"},arguments:[{kind:"Argument",name:{kind:"Name",value:"command"},value:{kind:"Variable",name:{kind:"Name",value:"command"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:133}};Z.loc.source={body:`mutation UpdateQuoteAddresses($command: UpdateQuoteAddressesCommandType!) {
  updateQuoteAddresses(command: $command) {
    id
  }
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function N(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(a){N(a,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){N(a,n)}),e.definitions&&e.definitions.forEach(function(a){N(a,n)})}var x={};(function(){Z.definitions.forEach(function(n){if(n.name){var i=new Set;N(n,i),x[n.name.value]=i}})})();function re(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function we(e,n){var i={kind:e.kind,definitions:[re(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=x[n]||new Set,o=new Set,d=new Set;for(a.forEach(function(t){d.add(t)});d.size>0;){var l=d;d=new Set,l.forEach(function(t){if(!o.has(t)){o.add(t);var r=x[t]||new Set;r.forEach(function(m){d.add(m)})}})}return o.forEach(function(t){var r=re(e,t);r&&i.definitions.push(r)}),i}we(Z,"UpdateQuoteAddresses");var _={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateQuoteAttachments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"command"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateQuoteAttachmentsCommandType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateQuoteAttachments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"command"},value:{kind:"Variable",name:{kind:"Name",value:"command"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:139}};_.loc.source={body:`mutation UpdateQuoteAttachments($command: UpdateQuoteAttachmentsCommandType!) {
  updateQuoteAttachments(command: $command) {
    id
  }
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function h(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(a){h(a,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){h(a,n)}),e.definitions&&e.definitions.forEach(function(a){h(a,n)})}var P={};(function(){_.definitions.forEach(function(n){if(n.name){var i=new Set;h(n,i),P[n.name.value]=i}})})();function oe(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function De(e,n){var i={kind:e.kind,definitions:[oe(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=P[n]||new Set,o=new Set,d=new Set;for(a.forEach(function(t){d.add(t)});d.size>0;){var l=d;d=new Set,l.forEach(function(t){if(!o.has(t)){o.add(t);var r=P[t]||new Set;r.forEach(function(m){d.add(m)})}})}return o.forEach(function(t){var r=oe(e,t);r&&i.definitions.push(r)}),i}De(_,"UpdateQuoteAttachments");var $={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"quoteAttachment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"QuoteAttachmentType"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"contentType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"size"},arguments:[],directives:[]}]}}],loc:{start:0,end:86}};$.loc.source={body:`fragment quoteAttachment on QuoteAttachmentType {
  name
  url
  contentType
  size
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function y(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(a){y(a,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){y(a,n)}),e.definitions&&e.definitions.forEach(function(a){y(a,n)})}var G={};(function(){$.definitions.forEach(function(n){if(n.name){var i=new Set;y(n,i),G[n.name.value]=i}})})();function le(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function Ee(e,n){var i={kind:e.kind,definitions:[le(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=G[n]||new Set,o=new Set,d=new Set;for(a.forEach(function(t){d.add(t)});d.size>0;){var l=d;d=new Set,l.forEach(function(t){if(!o.has(t)){o.add(t);var r=G[t]||new Set;r.forEach(function(m){d.add(m)})}})}return o.forEach(function(t){var r=le(e,t);r&&i.definitions.push(r)}),i}Ee($,"quoteAttachment");var Q={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"quoteProductProperty"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Property"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"propertyType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hidden"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"propertyValueType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayOrder"},arguments:[],directives:[]}]}}],loc:{start:0,end:128}};Q.loc.source={body:`fragment quoteProductProperty on Property {
  name
  value
  propertyType
  hidden
  propertyValueType
  label
  displayOrder
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function b(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(a){b(a,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){b(a,n)}),e.definitions&&e.definitions.forEach(function(a){b(a,n)})}var L={};(function(){Q.definitions.forEach(function(n){if(n.name){var i=new Set;b(n,i),L[n.name.value]=i}})})();function me(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function $e(e,n){var i={kind:e.kind,definitions:[me(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=L[n]||new Set,o=new Set,d=new Set;for(a.forEach(function(t){d.add(t)});d.size>0;){var l=d;d=new Set,l.forEach(function(t){if(!o.has(t)){o.add(t);var r=L[t]||new Set;r.forEach(function(m){d.add(m)})}})}return o.forEach(function(t){var r=me(e,t);r&&i.definitions.push(r)}),i}$e(Q,"quoteProductProperty");var c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"quoteLineItemFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"QuoteItemType"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"listPrice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"money"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"selectedTierPrice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"price"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"money"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"product"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"brandName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"properties"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"quoteProductProperty"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"productType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"availabilityData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"availableQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isInStock"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"configurationItems"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"customText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"files"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:586}};c.loc.source={body:`#import "@/core/api/graphql/common/fragments/money.graphql"
#import "./quoteProductProperty.graphql"

fragment quoteLineItemFields on QuoteItemType {
  id
  sku
  productId
  name
  imageUrl
  listPrice {
    ...money
  }
  selectedTierPrice {
    quantity
    price {
      ...money
    }
  }
  product {
    id
    slug
    brandName
    properties {
      ...quoteProductProperty
    }
    productType
    availabilityData {
      availableQuantity
      isInStock
    }
  }
  configurationItems {
    id
    name
    customText
    type
    files {
      name
      url
    }
  }
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var ue={};function Se(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var i=n.name.value;return ue[i]?!1:(ue[i]=!0,!0)})}c.definitions=c.definitions.concat(Se(B.definitions));c.definitions=c.definitions.concat(Se(Q.definitions));function F(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(a){F(a,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){F(a,n)}),e.definitions&&e.definitions.forEach(function(a){F(a,n)})}var z={};(function(){c.definitions.forEach(function(n){if(n.name){var i=new Set;F(n,i),z[n.name.value]=i}})})();function ce(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function Qe(e,n){var i={kind:e.kind,definitions:[ce(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=z[n]||new Set,o=new Set,d=new Set;for(a.forEach(function(t){d.add(t)});d.size>0;){var l=d;d=new Set,l.forEach(function(t){if(!o.has(t)){o.add(t);var r=z[t]||new Set;r.forEach(function(m){d.add(m)})}})}return o.forEach(function(t){var r=ce(e,t);r&&i.definitions.push(r)}),i}Qe(c,"quoteLineItemFields");var T={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"quoteAddressFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"QuoteAddressType"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"line1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"line2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"regionId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"regionName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}}],loc:{start:0,end:199}};T.loc.source={body:`fragment quoteAddressFields on QuoteAddressType {
  firstName
  lastName
  line1
  line2
  city
  countryCode
  countryName
  regionId
  regionName
  postalCode
  phone
  email
  addressType
  key
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function w(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(a){w(a,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){w(a,n)}),e.definitions&&e.definitions.forEach(function(a){w(a,n)})}var U={};(function(){T.definitions.forEach(function(n){if(n.name){var i=new Set;w(n,i),U[n.name.value]=i}})})();function se(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function Te(e,n){var i={kind:e.kind,definitions:[se(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=U[n]||new Set,o=new Set,d=new Set;for(a.forEach(function(t){d.add(t)});d.size>0;){var l=d;d=new Set,l.forEach(function(t){if(!o.has(t)){o.add(t);var r=U[t]||new Set;r.forEach(function(m){d.add(m)})}})}return o.forEach(function(t){var r=se(e,t);r&&i.definitions.push(r)}),i}Te(T,"quoteAddressFields");var u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetQuote"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"storeId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"currencyCode"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"cultureName"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"quote"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"storeId"},value:{kind:"Variable",name:{kind:"Name",value:"storeId"}}},{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"currencyCode"},value:{kind:"Variable",name:{kind:"Name",value:"currencyCode"}}},{kind:"Argument",name:{kind:"Name",value:"cultureName"},value:{kind:"Variable",name:{kind:"Name",value:"cultureName"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cancelledDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cancelReason"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"comment"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCancelled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"attachments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"quoteAttachment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"quoteLineItemFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"addresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"quoteAddressFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"totals"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"grandTotalInclTax"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"money"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"subTotalExlTax"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"money"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"shippingTotal"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"money"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"taxTotal"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"money"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"adjustmentQuoteExlTax"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"money"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"grandTotalExlTax"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"money"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"discountTotal"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"money"},directives:[]}]}}]}}]}}]}}],loc:{start:0,end:1058}};u.loc.source={body:`#import "../../fragments/quoteAttachment.graphql"
#import "../../fragments/quoteLineItemFields.graphql"
#import "../../fragments/quoteAddressFields.graphql"
#import "@/core/api/graphql/common/fragments/money.graphql"

query GetQuote($id: String, $storeId: String, $userId: String, $currencyCode: String, $cultureName: String) {
  quote(id: $id, storeId: $storeId, userId: $userId, currencyCode: $currencyCode, cultureName: $cultureName) {
    id
    number
    createdDate
    cancelledDate
    cancelReason
    comment
    isCancelled
    status
    attachments {
      ...quoteAttachment
    }
    items {
      ...quoteLineItemFields
    }
    addresses {
      ...quoteAddressFields
    }
    totals {
      grandTotalInclTax {
        ...money
      }
      subTotalExlTax {
        ...money
      }
      shippingTotal {
        ...money
      }
      taxTotal {
        ...money
      }
      adjustmentQuoteExlTax {
        ...money
      }
      grandTotalExlTax {
        ...money
      }
      discountTotal {
        ...money
      }
    }
  }
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var fe={};function R(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var i=n.name.value;return fe[i]?!1:(fe[i]=!0,!0)})}u.definitions=u.definitions.concat(R($.definitions));u.definitions=u.definitions.concat(R(c.definitions));u.definitions=u.definitions.concat(R(T.definitions));u.definitions=u.definitions.concat(R(B.definitions));function D(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(a){D(a,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){D(a,n)}),e.definitions&&e.definitions.forEach(function(a){D(a,n)})}var j={};(function(){u.definitions.forEach(function(n){if(n.name){var i=new Set;D(n,i),j[n.name.value]=i}})})();function ve(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function Re(e,n){var i={kind:e.kind,definitions:[ve(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=j[n]||new Set,o=new Set,d=new Set;for(a.forEach(function(t){d.add(t)});d.size>0;){var l=d;d=new Set,l.forEach(function(t){if(!o.has(t)){o.add(t);var r=j[t]||new Set;r.forEach(function(m){d.add(m)})}})}return o.forEach(function(t){var r=ve(e,t);r&&i.definitions.push(r)}),i}Re(u,"GetQuote");var s={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetQuotes"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"storeId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"cultureName"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"currencyCode"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sort"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"keyword"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"quotes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"storeId"},value:{kind:"Variable",name:{kind:"Name",value:"storeId"}}},{kind:"Argument",name:{kind:"Name",value:"cultureName"},value:{kind:"Variable",name:{kind:"Name",value:"cultureName"}}},{kind:"Argument",name:{kind:"Name",value:"currencyCode"},value:{kind:"Variable",name:{kind:"Name",value:"currencyCode"}}},{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"Variable",name:{kind:"Name",value:"sort"}}},{kind:"Argument",name:{kind:"Name",value:"keyword"},value:{kind:"Variable",name:{kind:"Name",value:"keyword"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"customerId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totals"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"grandTotalInclTax"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"money"},directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:615}};s.loc.source={body:`#import "@/core/api/graphql/common/fragments/money.graphql"

query GetQuotes(
  $storeId: String
  $cultureName: String
  $currencyCode: String
  $userId: String
  $sort: String
  $keyword: String
  $first: Int
  $after: String
) {
  quotes(
    storeId: $storeId
    cultureName: $cultureName
    currencyCode: $currencyCode
    userId: $userId
    sort: $sort
    keyword: $keyword
    first: $first
    after: $after
  ) {
    totalCount
    items {
      id
      createdDate
      customerId
      number
      status
      totals {
        grandTotalInclTax {
          ...money
        }
      }
    }
  }
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var ke={};function Ve(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var i=n.name.value;return ke[i]?!1:(ke[i]=!0,!0)})}s.definitions=s.definitions.concat(Ve(B.definitions));function E(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(a){E(a,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){E(a,n)}),e.definitions&&e.definitions.forEach(function(a){E(a,n)})}var K={};(function(){s.definitions.forEach(function(n){if(n.name){var i=new Set;E(n,i),K[n.name.value]=i}})})();function pe(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function qe(e,n){var i={kind:e.kind,definitions:[pe(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=K[n]||new Set,o=new Set,d=new Set;for(a.forEach(function(t){d.add(t)});d.size>0;){var l=d;d=new Set,l.forEach(function(t){if(!o.has(t)){o.add(t);var r=K[t]||new Set;r.forEach(function(m){d.add(m)})}})}return o.forEach(function(t){var r=pe(e,t);r&&i.definitions.push(r)}),i}qe(s,"GetQuotes");export{H as a,J as b,M as c,s as d,W as e,X as f,Y as g,Z as h,_ as i,u as j};
//# sourceMappingURL=getQuotesQuery-BbVaZPhP.js.map
