enqueueScripts([function(){ (window.webpackJsonpvtex_store_resources_0_104_3=window.webpackJsonpvtex_store_resources_0_104_3||[]).push([["OrderFormContext"],{1:function(e,r){e.exports=PropTypes},3:function(e,r){e.exports=React},30:function(e,r,t){"use strict";var o=t(60),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function i(e){return o.isMemo(e)?s:c[e.$$typeof]||n}c[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[o.Memo]=s;var u=Object.defineProperty,f=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(r,t,o){if("string"!=typeof t){if(y){var n=m(t);n&&n!==y&&e(r,n,o)}var s=f(t);p&&(s=s.concat(p(t)));for(var c=i(r),l=i(t),b=0;b0;){var o=s;s=new Set,o.forEach((function(e){c.has(e)||(c.add(e),(a[e]||new Set).forEach((function(e){s.add(e)})))}))}return c.forEach((function(n){var a=i(e,n);a&&t.definitions.push(a)})),t}(t,"pwaData")},62:function(e,n,t){"use strict";t.r(n),function(e){var n=t(0);t.p=Object(n.getPublicPath)("vtex.store-resources@0.104.3");var a=Object(n.register)((function(){return t(63)}),e,"vtex.store-resources@0.104.3","vtex.store-resources@0.x","PWAContext");a.renderHotReload,a.setupHMR}.call(this,t(2)(e))},63:function(e,n,t){"use strict";t.r(n);var a=t(27),i=t(28),r=t(3),c=t.n(r),s=t(26),o=t(7),u=t(31),d=t(32),l=t.n(d),m=c.a.createContext(null);n.default={PWAContext:m,PWAProvider:Object(o.graphql)(l.a,{options:function(){return{ssr:!1}}})((function(e){var n=e.rootPath,t=e.children,o=e.data,d=void 0===o?{}:o,l=d.manifest,f=d.iOSIcons,v=d.splashes,p=d.pwaSettings,k=d.loading,b=d.error,h=Object(u.usePixel)().push,g=Object(s.useRuntime)().workspace,S=Object(r.useRef)(null),_=Object(r.useRef)(!1),N=Object(r.useState)(!1),w=Object(i.a)(N,2),O=w[0],x=w[1],E=Object(r.useState)(!1),P=Object(i.a)(E,2),D=P[0],j=P[1];Object(r.useEffect)((function(){var e=function(e){var n=p.promptOnCustomEvent,t=p.disablePrompt;return!("default"!==n&&!_.current)||(e.preventDefault(),t||(S.current=e,_.current=!0),!1)};return window.addEventListener("beforeinstallprompt",e),function(){return window.removeEventListener("beforeinstallprompt",e)}}),[_,p]),Object(r.useEffect)((function(){var e=localStorage.getItem("webAppInstalled");e&&x(e);var n=localStorage.getItem("webAppInstallDismissed");n&&j(n)}),[]);var y=Object(r.useCallback)((function(){var e=S.current;e&&(e.prompt(),e.userChoice.then((function(e){"accepted"===e.outcome?localStorage.setItem("webAppInstalled","true"):localStorage.setItem("webAppInstallDismissed","true"),h({event:"installWebApp",userChoice:e.outcome}),S.current=null})))}),[]),F=Object(r.useMemo)((function(){if(p){var e=p.disablePrompt,n=p.promptOnCustomEvent,t=navigator&&!!navigator.userAgent.match(/(iPod|iPhone|iPad)/);return{showInstallPrompt:y,settings:{promptOnCustomEvent:e||t||D||O?"":n}}}}),[y,p,O]),A=!k&&l&&!b,C="master"===g?"":"?workspace=".concat(g);return c.a.createElement(m.Provider,{value:F},A&&c.a.createElement(s.Helmet,{meta:[{name:"theme-color",content:l.theme_color},{name:"apple-mobile-web-app-capable",content:"yes"}],link:[{rel:"manifest",href:"".concat(n,"/pwa/manifest.json").concat(C)}].concat(Object(a.a)(f?f.map((function(e){return{rel:"apple-touch-icon",sizes:e.sizes,href:"".concat(n).concat(e.src)}})):[]),Object(a.a)(v?v.map((function(e){return{href:"".concat(n).concat(e.src),sizes:e.sizes,rel:"apple-touch-startup-image"}})):[])).filter(Boolean)}),t)})),usePWA:function(){return Object(r.useContext)(m)}}},7:function(e,n){e.exports=ReactApollo}},[[62,"common"]]]); },function(){ (window.webpackJsonpvtex_store_resources_0_104_3=window.webpackJsonpvtex_store_resources_0_104_3||[]).push([[3],{17:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"orderForm"},variableDefinitions:[],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"orderForm"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"scope"},value:{kind:"StringValue",value:"private",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"020b1028608943f78741260a0ca28daf0ce427eb3d39e61cd88b9546e16aa324",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cacheId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellers"},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:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"orderFormId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userProfileId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"customData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"customApps"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fields"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"itemMetadata"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{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:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assemblyOptions"},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:"composition"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{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:"seller"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"priceTable"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"price"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalizers"},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:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},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:"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:"detailUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productRefId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"additionalInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"brandName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"canHaveAttachment"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productCategoryIds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productCategories"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"skuName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellingPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"listPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parentItemIndex"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parentAssemblyBinding"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cartIndex"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellingPriceWithAssemblies"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assemblyOptions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"added"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"item"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellingPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellingPriceWithAssemblies"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assemblyOptions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"added"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"item"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellingPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellingPriceWithAssemblies"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"normalizedQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"choiceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"extraQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"removed"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"removedQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"initialQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"parentPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"normalizedQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"choiceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"extraQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"removed"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"removedQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"initialQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"parentPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"seller"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"priceDefinition"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"calculatedSellingPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellingPrices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"shippingData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"neighborhood"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"complement"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reference"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"geoCoordinates"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"receiverName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"availableAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"neighborhood"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"complement"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reference"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"geoCoordinates"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"receiverName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"clientProfileData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"storePreferencesData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"countryCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currencyCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timeZone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"checkedInPickupPointId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCheckedIn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:3547}};i.loc.source={body:'query orderForm @context(sender: "vtex.store-resources@0.104.3") {\n orderForm @context(scope: "private") @runtimeMeta(hash: "020b1028608943f78741260a0ca28daf0ce427eb3d39e61cd88b9546e16aa324") {\n cacheId\n sellers {\n id\n name\n __typename\n }\n orderFormId\n userProfileId\n customData {\n customApps {\n id\n fields\n __typename\n }\n __typename\n }\n itemMetadata {\n items {\n id\n name\n assemblyOptions {\n id\n name\n composition {\n items {\n id\n seller\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n priceTable {\n type\n values {\n id\n price\n __typename\n }\n __typename\n }\n __typename\n }\n value\n totalizers {\n id\n name\n value\n __typename\n }\n items {\n id\n productId\n name\n imageUrl\n detailUrl\n productRefId\n additionalInfo {\n brandName\n __typename\n }\n canHaveAttachment\n productCategoryIds\n productCategories\n skuName\n quantity\n sellingPrice\n listPrice\n parentItemIndex\n parentAssemblyBinding\n cartIndex\n sellingPriceWithAssemblies\n assemblyOptions {\n added {\n item {\n name\n sellingPrice\n quantity\n sellingPriceWithAssemblies\n assemblyOptions {\n added {\n item {\n name\n sellingPrice\n quantity\n sellingPriceWithAssemblies\n __typename\n }\n normalizedQuantity\n choiceType\n extraQuantity\n __typename\n }\n removed {\n removedQuantity\n initialQuantity\n name\n __typename\n }\n parentPrice\n __typename\n }\n __typename\n }\n normalizedQuantity\n choiceType\n extraQuantity\n __typename\n }\n removed {\n removedQuantity\n initialQuantity\n name\n __typename\n }\n parentPrice\n __typename\n }\n seller\n priceDefinition {\n calculatedSellingPrice\n total\n sellingPrices {\n quantity\n value\n __typename\n }\n __typename\n }\n __typename\n }\n shippingData {\n address {\n id\n neighborhood\n complement\n number\n street\n postalCode\n city\n reference\n addressName\n addressType\n geoCoordinates\n state\n receiverName\n country\n __typename\n }\n availableAddresses {\n id\n neighborhood\n complement\n number\n street\n postalCode\n city\n reference\n addressName\n addressType\n geoCoordinates\n state\n receiverName\n country\n __typename\n }\n __typename\n }\n clientProfileData {\n email\n firstName\n lastName\n __typename\n }\n storePreferencesData {\n countryCode\n currencyCode\n timeZone\n __typename\n }\n checkedInPickupPointId\n isCheckedIn\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function d(e,n){for(var i=0;i0;){var l=s;s=new Set,l.forEach((function(e){m.has(e)||(m.add(e),(a[e]||new Set).forEach((function(e){s.add(e)})))}))}return m.forEach((function(n){var a=d(e,n);a&&i.definitions.push(a)})),i}(i,"orderForm")}}]); },function(){ (window.webpackJsonpvtex_store_resources_0_104_3=window.webpackJsonpvtex_store_resources_0_104_3||[]).push([["QueryOrderForm"],{78:function(e,r,t){"use strict";t.r(r),function(e){var r=t(0);t.p=Object(r.getPublicPath)("vtex.store-resources@0.104.3");var s=Object(r.register)((function(){return t(79)}),e,"vtex.store-resources@0.104.3","vtex.store-resources@0.x","QueryOrderForm");s.renderHotReload,s.setupHMR}.call(this,t(2)(e))},79:function(e,r,t){"use strict";t.r(r);var s=t(17),o=t.n(s);r.default=o.a}},[[78,"common",3]]]); },function(){ (window.webpackJsonpvtex_store_resources_0_104_3=window.webpackJsonpvtex_store_resources_0_104_3||[]).push([["QueryProductSearchV3"],{39:function(e,n){var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"advertisement"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"adResponseId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"adRequestId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"cacheId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productReference"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"linkText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"brand"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"brandId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categoryId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"releaseDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"priceRange"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellingPrice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"highPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lowPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"listPrice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"highPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lowPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"specificationGroups"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originalName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"specifications"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originalName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"skuSpecifications"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originalName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originalName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"productClusters"},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:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"clusterHighlights"},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:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"properties"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ItemFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SKU"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"itemId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nameComplete"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"complementName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ean"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"variations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"referenceId"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"measurementUnit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unitMultiplier"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"images"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cacheId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageLabel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageTag"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SellerFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Seller"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellerId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellerName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellerDefault"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CommertialOfferFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Offer"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountHighlights"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"teasers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"conditions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"minimumQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parameters"},arguments:[],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:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"effects"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"parameters"},arguments:[],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:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"Price"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ListPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Tax"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxPercentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"spotPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"PriceWithoutDiscount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"RewardValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"PriceValidUntil"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"AvailableQuantity"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"InstallmentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Installment"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"InterestRate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"TotalValuePlusInterestRate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"NumberOfInstallments"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"PaymentSystemName"},arguments:[],directives:[]}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"productSearchV3"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fullText"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"selectedFacets"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"SelectedFacetInput"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderBy"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"from"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"to"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"hideUnavailableItems"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"skusFilter"}},type:{kind:"NamedType",name:{kind:"Name",value:"ItemsFilter"}},defaultValue:{kind:"EnumValue",value:"ALL_AVAILABLE"},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"simulationBehavior"}},type:{kind:"NamedType",name:{kind:"Name",value:"SimulationBehavior"}},defaultValue:{kind:"EnumValue",value:"default"},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"installmentCriteria"}},type:{kind:"NamedType",name:{kind:"Name",value:"InstallmentsCriteria"}},defaultValue:{kind:"EnumValue",value:"MAX_WITHOUT_INTEREST"},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productOriginVtex"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fuzzy"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"operator"}},type:{kind:"NamedType",name:{kind:"Name",value:"Operator"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchState"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"excludedPaymentSystems"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includedPaymentSystems"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"variant"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"showSponsored"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"advertisementOptions"}},type:{kind:"NamedType",name:{kind:"Name",value:"AdvertisementOptions"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"origin"}},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.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productSearch"},arguments:[{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}},{kind:"Argument",name:{kind:"Name",value:"fullText"},value:{kind:"Variable",name:{kind:"Name",value:"fullText"}}},{kind:"Argument",name:{kind:"Name",value:"selectedFacets"},value:{kind:"Variable",name:{kind:"Name",value:"selectedFacets"}}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"Variable",name:{kind:"Name",value:"orderBy"}}},{kind:"Argument",name:{kind:"Name",value:"from"},value:{kind:"Variable",name:{kind:"Name",value:"from"}}},{kind:"Argument",name:{kind:"Name",value:"to"},value:{kind:"Variable",name:{kind:"Name",value:"to"}}},{kind:"Argument",name:{kind:"Name",value:"hideUnavailableItems"},value:{kind:"Variable",name:{kind:"Name",value:"hideUnavailableItems"}}},{kind:"Argument",name:{kind:"Name",value:"simulationBehavior"},value:{kind:"Variable",name:{kind:"Name",value:"simulationBehavior"}}},{kind:"Argument",name:{kind:"Name",value:"productOriginVtex"},value:{kind:"Variable",name:{kind:"Name",value:"productOriginVtex"}}},{kind:"Argument",name:{kind:"Name",value:"fuzzy"},value:{kind:"Variable",name:{kind:"Name",value:"fuzzy"}}},{kind:"Argument",name:{kind:"Name",value:"operator"},value:{kind:"Variable",name:{kind:"Name",value:"operator"}}},{kind:"Argument",name:{kind:"Name",value:"searchState"},value:{kind:"Variable",name:{kind:"Name",value:"searchState"}}},{kind:"Argument",name:{kind:"Name",value:"variant"},value:{kind:"Variable",name:{kind:"Name",value:"variant"}}},{kind:"Argument",name:{kind:"Name",value:"showSponsored"},value:{kind:"Variable",name:{kind:"Name",value:"showSponsored"}}},{kind:"Argument",name:{kind:"Name",value:"advertisementOptions"},value:{kind:"Variable",name:{kind:"Name",value:"advertisementOptions"}}},{kind:"Argument",name:{kind:"Name",value:"origin"},value:{kind:"Variable",name:{kind:"Name",value:"origin"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.search-graphql",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"31d3fa494df1fc41efef6d16dd96a96e6911b8aed7a037868699a1f3f4d365de",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"products"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"advertisement"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"campaignId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"actionCost"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"adRequestId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"adResponseId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"Variable",name:{kind:"Name",value:"skusFilter"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ItemFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"sellers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SellerFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"commertialOffer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CommertialOfferFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"Installments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"criteria"},value:{kind:"Variable",name:{kind:"Name",value:"installmentCriteria"}}},{kind:"Argument",name:{kind:"Name",value:"excludedPaymentSystems"},value:{kind:"Variable",name:{kind:"Name",value:"excludedPaymentSystems"}}},{kind:"Argument",name:{kind:"Name",value:"includedPaymentSystems"},value:{kind:"Variable",name:{kind:"Name",value:"includedPaymentSystems"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InstallmentFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"selectedProperties"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"rule"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"deliveryPromisesBadges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"typeName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pickupId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pickupName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"specification"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"recordsFiltered"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"correction"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"misspelled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"breadcrumb"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"fuzzy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"operator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"searchState"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"redirect"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryPromisesEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"searchId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:4733}};i.loc.source={body:'fragment ProductFragment on Product @context(sender: "vtex.store-resources@0.104.3") {\n advertisement {\n adId\n adResponseId\n adRequestId\n __typename\n }\n cacheId\n productId\n description\n productName\n productReference\n linkText\n brand\n brandId\n link\n categories\n categoryId\n releaseDate\n priceRange {\n sellingPrice {\n highPrice\n lowPrice\n __typename\n }\n listPrice {\n highPrice\n lowPrice\n __typename\n }\n __typename\n }\n specificationGroups {\n name\n originalName\n specifications {\n name\n originalName\n values\n __typename\n }\n __typename\n }\n skuSpecifications {\n field {\n name\n originalName\n __typename\n }\n values {\n name\n originalName\n __typename\n }\n __typename\n }\n productClusters {\n id\n name\n __typename\n }\n clusterHighlights {\n id\n name\n __typename\n }\n properties {\n name\n values\n __typename\n }\n}\n\nfragment ItemFragment on SKU @context(sender: "vtex.store-resources@0.104.3") {\n itemId\n name\n nameComplete\n complementName\n ean\n variations {\n name\n values\n __typename\n }\n referenceId {\n Key\n Value\n __typename\n }\n measurementUnit\n unitMultiplier\n images {\n cacheId\n imageId\n imageLabel\n imageTag\n imageUrl\n imageText\n __typename\n }\n}\n\nfragment SellerFragment on Seller @context(sender: "vtex.store-resources@0.104.3") {\n sellerId\n sellerName\n sellerDefault\n}\n\nfragment CommertialOfferFragment on Offer @context(sender: "vtex.store-resources@0.104.3") {\n discountHighlights {\n name\n __typename\n }\n teasers {\n name\n conditions {\n minimumQuantity\n parameters {\n name\n value\n __typename\n }\n __typename\n }\n effects {\n parameters {\n name\n value\n __typename\n }\n __typename\n }\n __typename\n }\n Price\n ListPrice\n Tax\n taxPercentage\n spotPrice\n PriceWithoutDiscount\n RewardValue\n PriceValidUntil\n AvailableQuantity\n}\n\nfragment InstallmentFragment on Installment @context(sender: "vtex.store-resources@0.104.3") {\n Value\n InterestRate\n TotalValuePlusInterestRate\n NumberOfInstallments\n Name\n PaymentSystemName\n}\n\nquery productSearchV3($query: String, $fullText: String, $selectedFacets: [SelectedFacetInput], $orderBy: String, $from: Int, $to: Int, $hideUnavailableItems: Boolean = false, $skusFilter: ItemsFilter = ALL_AVAILABLE, $simulationBehavior: SimulationBehavior = default, $installmentCriteria: InstallmentsCriteria = MAX_WITHOUT_INTEREST, $productOriginVtex: Boolean = false, $fuzzy: String, $operator: Operator, $searchState: String, $excludedPaymentSystems: [String], $includedPaymentSystems: [String], $variant: String, $showSponsored: Boolean, $advertisementOptions: AdvertisementOptions, $origin: String) @context(sender: "vtex.store-resources@0.104.3") {\n productSearch(query: $query, fullText: $fullText, selectedFacets: $selectedFacets, orderBy: $orderBy, from: $from, to: $to, hideUnavailableItems: $hideUnavailableItems, simulationBehavior: $simulationBehavior, productOriginVtex: $productOriginVtex, fuzzy: $fuzzy, operator: $operator, searchState: $searchState, variant: $variant, showSponsored: $showSponsored, advertisementOptions: $advertisementOptions, origin: $origin) @context(provider: "vtex.search-graphql") @runtimeMeta(hash: "31d3fa494df1fc41efef6d16dd96a96e6911b8aed7a037868699a1f3f4d365de") {\n products {\n ...ProductFragment\n advertisement {\n adId\n campaignId\n actionCost\n adRequestId\n adResponseId\n __typename\n }\n items(filter: $skusFilter) {\n ...ItemFragment\n sellers {\n ...SellerFragment\n commertialOffer {\n ...CommertialOfferFragment\n Installments(criteria: $installmentCriteria, excludedPaymentSystems: $excludedPaymentSystems, includedPaymentSystems: $includedPaymentSystems) {\n ...InstallmentFragment\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n selectedProperties {\n key\n value\n __typename\n }\n rule {\n id\n __typename\n }\n deliveryPromisesBadges {\n typeName\n pickupId\n pickupName\n __typename\n }\n specification\n __typename\n }\n recordsFiltered\n correction {\n misspelled\n __typename\n }\n breadcrumb {\n name\n href\n __typename\n }\n fuzzy\n operator\n searchState\n redirect\n options {\n deliveryPromisesEnabled\n __typename\n }\n searchId\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=r;r=new Set,l.forEach((function(e){m.has(e)||(m.add(e),(a[e]||new Set).forEach((function(e){r.add(e)})))}))}return m.forEach((function(n){var a=t(e,n);a&&i.definitions.push(a)})),i}(i,"productSearchV3")},94:function(e,n,i){"use strict";i.r(n),function(e){var n=i(0);i.p=Object(n.getPublicPath)("vtex.store-resources@0.104.3");var a=Object(n.register)((function(){return i(95)}),e,"vtex.store-resources@0.104.3","vtex.store-resources@0.x","QueryProductSearchV3");a.renderHotReload,a.setupHMR}.call(this,i(2)(e))},95:function(e,n,i){"use strict";i.r(n);var a=i(39),t=i.n(a);n.default=t.a}},[[94,"common"]]]); },function(){ (window.webpackJsonpvtex_store_resources_0_104_3=window.webpackJsonpvtex_store_resources_0_104_3||[]).push([["QueryItemsWithSimulation"],{37:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"itemsWithSimulation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"items"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"ItemInput"}}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"itemsWithSimulation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"items"},value:{kind:"Variable",name:{kind:"Name",value:"items"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"abb57d42211b568850c5f079dca14cec570c9b02d69538069650e942dd86c63b",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"itemId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellerId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"commertialOffer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"AvailableQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Price"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ListPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"PriceValidUntil"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Installments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"InterestRate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"TotalValuePlusInterestRate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"NumberOfInstallments"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:602}};i.loc.source={body:'query itemsWithSimulation($items: [ItemInput]) @context(sender: "vtex.store-resources@0.104.3") {\n itemsWithSimulation(items: $items) @runtimeMeta(hash: "abb57d42211b568850c5f079dca14cec570c9b02d69538069650e942dd86c63b") {\n itemId\n sellers {\n sellerId\n commertialOffer {\n AvailableQuantity\n Price\n ListPrice\n PriceValidUntil\n Installments {\n Value\n InterestRate\n TotalValuePlusInterestRate\n NumberOfInstallments\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function a(e,n){for(var i=0;i0;){var l=s;s=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(t[e]||new Set).forEach((function(e){s.add(e)})))}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(i,"itemsWithSimulation")},80:function(e,n,i){"use strict";i.r(n),function(e){var n=i(0);i.p=Object(n.getPublicPath)("vtex.store-resources@0.104.3");var t=Object(n.register)((function(){return i(81)}),e,"vtex.store-resources@0.104.3","vtex.store-resources@0.x","QueryItemsWithSimulation");t.renderHotReload,t.setupHMR}.call(this,i(2)(e))},81:function(e,n,i){"use strict";i.r(n);var t=i(37),a=i.n(t);n.default=a.a}},[[80,"common"]]]); },function(){ (window.webpackJsonpvtex_store_resources_0_104_3=window.webpackJsonpvtex_store_resources_0_104_3||[]).push([["QueryAutocompleteSearchSuggestions"],{34:function(e,n){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"autocompleteSearchSuggestions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fullText"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchState"}},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.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"autocompleteSearchSuggestions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fullText"},value:{kind:"Variable",name:{kind:"Name",value:"fullText"}}},{kind:"Argument",name:{kind:"Name",value:"searchState"},value:{kind:"Variable",name:{kind:"Name",value:"searchState"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.search-graphql",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"069177eb2c038ccb948b55ca406e13189adcb5addcb00c25a8400450d20e0108",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searches"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"term"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"attributes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"labelValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:501}};a.loc.source={body:'query autocompleteSearchSuggestions($fullText: String!, $searchState: String) @context(sender: "vtex.store-resources@0.104.3") {\n autocompleteSearchSuggestions(fullText: $fullText, searchState: $searchState) @context(provider: "vtex.search-graphql") @runtimeMeta(hash: "069177eb2c038ccb948b55ca406e13189adcb5addcb00c25a8400450d20e0108") {\n searches {\n term\n attributes {\n key\n value\n labelValue\n __typename\n }\n __typename\n }\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function t(e,n){for(var a=0;a0;){var o=u;u=new Set,o.forEach((function(e){d.has(e)||(d.add(e),(i[e]||new Set).forEach((function(e){u.add(e)})))}))}return d.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}(a,"autocompleteSearchSuggestions")},70:function(e,n,a){"use strict";a.r(n),function(e){var n=a(0);a.p=Object(n.getPublicPath)("vtex.store-resources@0.104.3");var i=Object(n.register)((function(){return a(71)}),e,"vtex.store-resources@0.104.3","vtex.store-resources@0.x","QueryAutocompleteSearchSuggestions");i.renderHotReload,i.setupHMR}.call(this,a(2)(e))},71:function(e,n,a){"use strict";a.r(n);var i=a(34),t=a.n(i);n.default=t.a}},[[70,"common"]]]); },function(){ (window.webpackJsonpvtex_store_resources_0_104_3=window.webpackJsonpvtex_store_resources_0_104_3||[]).push([["QuerySuggestionProducts"],{115:function(e,n,i){"use strict";i.r(n),function(e){var n=i(0);i.p=Object(n.getPublicPath)("vtex.store-resources@0.104.3");var a=Object(n.register)((function(){return i(116)}),e,"vtex.store-resources@0.104.3","vtex.store-resources@0.x","QuerySuggestionProducts");a.renderHotReload,a.setupHMR}.call(this,i(2)(e))},116:function(e,n,i){"use strict";i.r(n);var a=i(44),t=i.n(a);n.default=t.a},44:function(e,n){var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"advertisement"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"adResponseId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"adRequestId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"cacheId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productReference"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"linkText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"brand"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"brandId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categoryId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"releaseDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"priceRange"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellingPrice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"highPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lowPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"listPrice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"highPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lowPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"specificationGroups"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originalName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"specifications"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originalName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"skuSpecifications"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originalName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originalName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"productClusters"},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:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"clusterHighlights"},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:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"properties"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ItemFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SKU"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"itemId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nameComplete"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"complementName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ean"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"variations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"referenceId"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"measurementUnit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unitMultiplier"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"images"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cacheId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageLabel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageTag"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SellerFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Seller"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellerId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellerName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellerDefault"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CommertialOfferFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Offer"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountHighlights"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"teasers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"conditions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"minimumQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parameters"},arguments:[],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:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"effects"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"parameters"},arguments:[],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:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"Price"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ListPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Tax"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxPercentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"spotPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"PriceWithoutDiscount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"RewardValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"PriceValidUntil"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"AvailableQuantity"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"InstallmentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Installment"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"InterestRate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"TotalValuePlusInterestRate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"NumberOfInstallments"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"PaymentSystemName"},arguments:[],directives:[]}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"productSuggestions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fullText"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"facetKey"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"facetValue"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"origin"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productOriginVtex"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"simulationBehavior"}},type:{kind:"NamedType",name:{kind:"Name",value:"SimulationBehavior"}},defaultValue:{kind:"EnumValue",value:"default"},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"hideUnavailableItems"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderBy"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"count"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shippingOptions"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"variant"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"advertisementOptions"}},type:{kind:"NamedType",name:{kind:"Name",value:"AdvertisementOptions"}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productSuggestions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fullText"},value:{kind:"Variable",name:{kind:"Name",value:"fullText"}}},{kind:"Argument",name:{kind:"Name",value:"facetKey"},value:{kind:"Variable",name:{kind:"Name",value:"facetKey"}}},{kind:"Argument",name:{kind:"Name",value:"facetValue"},value:{kind:"Variable",name:{kind:"Name",value:"facetValue"}}},{kind:"Argument",name:{kind:"Name",value:"origin"},value:{kind:"Variable",name:{kind:"Name",value:"origin"}}},{kind:"Argument",name:{kind:"Name",value:"productOriginVtex"},value:{kind:"Variable",name:{kind:"Name",value:"productOriginVtex"}}},{kind:"Argument",name:{kind:"Name",value:"simulationBehavior"},value:{kind:"Variable",name:{kind:"Name",value:"simulationBehavior"}}},{kind:"Argument",name:{kind:"Name",value:"hideUnavailableItems"},value:{kind:"Variable",name:{kind:"Name",value:"hideUnavailableItems"}}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"Variable",name:{kind:"Name",value:"orderBy"}}},{kind:"Argument",name:{kind:"Name",value:"count"},value:{kind:"Variable",name:{kind:"Name",value:"count"}}},{kind:"Argument",name:{kind:"Name",value:"shippingOptions"},value:{kind:"Variable",name:{kind:"Name",value:"shippingOptions"}}},{kind:"Argument",name:{kind:"Name",value:"variant"},value:{kind:"Variable",name:{kind:"Name",value:"variant"}}},{kind:"Argument",name:{kind:"Name",value:"advertisementOptions"},value:{kind:"Variable",name:{kind:"Name",value:"advertisementOptions"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.search-graphql",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"3eca26a431d4646a8bbce2644b78d3ca734bf8b4ba46afe4269621b64b0fb67d",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"count"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"misspelled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"operator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"products"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ItemFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"sellers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SellerFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"commertialOffer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CommertialOfferFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"Installments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InstallmentFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"selectedProperties"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"rule"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"specification"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"searchId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:3792}};i.loc.source={body:'fragment ProductFragment on Product @context(sender: "vtex.store-resources@0.104.3") {\n advertisement {\n adId\n adResponseId\n adRequestId\n __typename\n }\n cacheId\n productId\n description\n productName\n productReference\n linkText\n brand\n brandId\n link\n categories\n categoryId\n releaseDate\n priceRange {\n sellingPrice {\n highPrice\n lowPrice\n __typename\n }\n listPrice {\n highPrice\n lowPrice\n __typename\n }\n __typename\n }\n specificationGroups {\n name\n originalName\n specifications {\n name\n originalName\n values\n __typename\n }\n __typename\n }\n skuSpecifications {\n field {\n name\n originalName\n __typename\n }\n values {\n name\n originalName\n __typename\n }\n __typename\n }\n productClusters {\n id\n name\n __typename\n }\n clusterHighlights {\n id\n name\n __typename\n }\n properties {\n name\n values\n __typename\n }\n}\n\nfragment ItemFragment on SKU @context(sender: "vtex.store-resources@0.104.3") {\n itemId\n name\n nameComplete\n complementName\n ean\n variations {\n name\n values\n __typename\n }\n referenceId {\n Key\n Value\n __typename\n }\n measurementUnit\n unitMultiplier\n images {\n cacheId\n imageId\n imageLabel\n imageTag\n imageUrl\n imageText\n __typename\n }\n}\n\nfragment SellerFragment on Seller @context(sender: "vtex.store-resources@0.104.3") {\n sellerId\n sellerName\n sellerDefault\n}\n\nfragment CommertialOfferFragment on Offer @context(sender: "vtex.store-resources@0.104.3") {\n discountHighlights {\n name\n __typename\n }\n teasers {\n name\n conditions {\n minimumQuantity\n parameters {\n name\n value\n __typename\n }\n __typename\n }\n effects {\n parameters {\n name\n value\n __typename\n }\n __typename\n }\n __typename\n }\n Price\n ListPrice\n Tax\n taxPercentage\n spotPrice\n PriceWithoutDiscount\n RewardValue\n PriceValidUntil\n AvailableQuantity\n}\n\nfragment InstallmentFragment on Installment @context(sender: "vtex.store-resources@0.104.3") {\n Value\n InterestRate\n TotalValuePlusInterestRate\n NumberOfInstallments\n Name\n PaymentSystemName\n}\n\nquery productSuggestions($fullText: String!, $facetKey: String, $facetValue: String, $origin: String, $productOriginVtex: Boolean = false, $simulationBehavior: SimulationBehavior = default, $hideUnavailableItems: Boolean = false, $orderBy: String, $count: Int, $shippingOptions: [String], $variant: String, $advertisementOptions: AdvertisementOptions) @context(sender: "vtex.store-resources@0.104.3") {\n productSuggestions(fullText: $fullText, facetKey: $facetKey, facetValue: $facetValue, origin: $origin, productOriginVtex: $productOriginVtex, simulationBehavior: $simulationBehavior, hideUnavailableItems: $hideUnavailableItems, orderBy: $orderBy, count: $count, shippingOptions: $shippingOptions, variant: $variant, advertisementOptions: $advertisementOptions) @context(provider: "vtex.search-graphql") @runtimeMeta(hash: "3eca26a431d4646a8bbce2644b78d3ca734bf8b4ba46afe4269621b64b0fb67d") {\n count\n misspelled\n operator\n products {\n ...ProductFragment\n items {\n ...ItemFragment\n sellers {\n ...SellerFragment\n commertialOffer {\n ...CommertialOfferFragment\n Installments {\n ...InstallmentFragment\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n selectedProperties {\n key\n value\n __typename\n }\n rule {\n id\n __typename\n }\n specification\n __typename\n }\n searchId\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 r=l;l=new Set,r.forEach((function(e){m.has(e)||(m.add(e),(a[e]||new Set).forEach((function(e){l.add(e)})))}))}return m.forEach((function(n){var a=t(e,n);a&&i.definitions.push(a)})),i}(i,"productSuggestions")}},[[115,"common"]]]); },function(){ (window.webpackJsonpvtex_store_resources_0_104_3=window.webpackJsonpvtex_store_resources_0_104_3||[]).push([["QueryTopSearches"],{117:function(e,n,a){"use strict";a.r(n),function(e){var n=a(0);a.p=Object(n.getPublicPath)("vtex.store-resources@0.104.3");var i=Object(n.register)((function(){return a(118)}),e,"vtex.store-resources@0.104.3","vtex.store-resources@0.x","QueryTopSearches");i.renderHotReload,i.setupHMR}.call(this,a(2)(e))},118:function(e,n,a){"use strict";a.r(n);var i=a(45),t=a.n(i);n.default=t.a},45:function(e,n){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"topSearches"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchState"}},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.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"topSearches"},arguments:[{kind:"Argument",name:{kind:"Name",value:"searchState"},value:{kind:"Variable",name:{kind:"Name",value:"searchState"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.search-graphql",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"2bc9eefece58aa409f8d03dd582af43cb9acbb052fe4aa44a185e763782da88c",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searches"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"term"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:333}};a.loc.source={body:'query topSearches($searchState: String) @context(sender: "vtex.store-resources@0.104.3") {\n topSearches(searchState: $searchState) @context(provider: "vtex.search-graphql") @runtimeMeta(hash: "2bc9eefece58aa409f8d03dd582af43cb9acbb052fe4aa44a185e763782da88c") {\n searches {\n term\n __typename\n }\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function t(e,n){for(var a=0;a0;){var s=c;c=new Set,s.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){c.add(e)})))}))}return o.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}(a,"topSearches")}},[[117,"common"]]]); },function(){ !function(e){function t(t){for(var r,u,a=t[0],c=t[1],l=t[2],d=0,s=[];de.length)&&(t=e.length);for(var n=0,r=new Array(t);nthis.cancelTask(n,e)},resolve:void 0,reject:void 0};n.args.push(n.cancellationToken),this.queue.push(n),this.scheduler.schedule(()=>this.next());const i=new Promise((e,t)=>{n.resolve=e,n.reject=t});return i.cancel=e=>n.cancellationToken.cancel(e),i}cancel(){this.currentTask&&this.cancelTask(this.currentTask,s.cancel);const e=this.queue.splice(0);return e.length&&(e.forEach(e=>this.cancelTask(e,s.cancel)),this.emit(o)),this.wait()}indexOf(e){var t;if((null===(t=this.currentTask)||void 0===t?void 0:t.callback)===e)return 0;const n=this.queue.filter(e=>{var t;return!(null===(t=e.cancellationToken)||void 0===t?void 0:t.cancelled)}).findIndex(t=>t.callback===e);return n<0?n:n+(void 0!==this.currentTask?1:0)}close(e){return!this._isClosed&&(this._isClosed=!0,e)?this.cancel():this.wait()}async wait(){return this.currentTask||0!==this.queue.length?new Promise(e=>{this.waiters.push(e)}):Promise.resolve()}on(e,t){var n;this.events=null!==(n=this.events)&&void 0!==n?n:{},(this.events[e]||(this.events[e]=[])).push(t)}once(e,t){const n=(...i)=>{this.removeListener(e,n),t.apply(this,i)};this.on(e,n)}removeListener(e,t){if(this.events){const n=this.events[e];if(n){let e=0;for(;ee.apply(this,t))}catch(t){console.error(`${this.name}: Exception in '${e}' event handler`,t)}}next(){if(!this.currentTask){let t=this.queue.shift();for(;null==t?void 0:t.cancellationToken.cancelled;)t=this.queue.shift();if(t)try{this.currentTask=t,t.timeout&&(t.timeoutHandle=setTimeout(()=>{this.emit(l),this.cancelTask(t,s.timeout)},t.timeout));const n=t.callback.apply(void 0,t.args);n&&((e=n)&&"function"==typeof e.then)?n.then(e=>{t.result=e,this.doneTask(t)},e=>{this.doneTask(t,e)}):(t.result=n,this.doneTask(t))}catch(e){this.doneTask(t,e)}else this.callWaiters()}var e}cancelTask(e,t){e.cancellationToken.cancelled=!0,e.cancellationToken.reason=t,this.doneTask(e)}doneTask(e,t){e.timeoutHandle&&clearTimeout(e.timeoutHandle),e.cancellationToken.cancel=u,t?(this.emit(a,t),e.reject.call(void 0,t)):e.cancellationToken.cancelled?e.reject.call(void 0,e.cancellationToken.reason):e.resolve.call(void 0,e.result),this.currentTask===e&&(this.currentTask=void 0,this.queue.length?this.scheduler.schedule(()=>this.next()):(this.emit(o),this.callWaiters()))}callWaiters(){this.waiters.splice(0).forEach(e=>e())}}c.defaultScheduler={schedule:e=>setTimeout(()=>e(),0)},c.defaultScheduler={schedule:"function"==typeof e?t=>e(()=>t()):e=>setTimeout(()=>e(),0)};const d={id:"default-order-form",items:[],value:-1,totalizers:[],marketingData:{},canEditData:!1,loggedIn:!1,paymentData:{isValid:!1,installmentOptions:[],paymentSystems:[],payments:[],availableAccounts:[]},messages:{couponMessages:[],generalMessages:[]},shipping:{isValid:!1,deliveryOptions:[],pickupOptions:[]}};class f{constructor(){this.queue=new c,this.taskIdMap={},this.listeners={},this.isEmpty=!0,this.queue.on("drained",()=>{this.isEmpty=!0,this.emit("Fulfilled")})}isWaiting(e){return!!this.taskIdMap[e]}enqueue(e,t){this.isEmpty&&(this.isEmpty=!1,this.emit("Pending")),t&&this.taskIdMap[t]&&this.taskIdMap[t].promise.cancel();const n=()=>(t&&this.taskIdMap[t]&&delete this.taskIdMap[t],new Promise((t,n)=>{const i=async()=>{try{const n=await e();t(n)}catch(e){if(!navigator.onLine)return;n(e)}window.removeEventListener("online",i)};window.addEventListener("online",i),navigator.onLine&&i()})),i=this.queue.push(n),r=i.cancel;return i.cancel=()=>r({code:"TASK_CANCELLED",index:this.queue.indexOf(n)}),t&&(this.taskIdMap[t]={task:e,promise:i}),i}listen(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);return()=>{const n=this.listeners[e].indexOf(t);-1!==n&&this.listeners[e].splice(n,1)}}emit(e){this.listeners[e]&&this.listeners[e].forEach(e=>e())}}const h=Object(i.createContext)(void 0),m=()=>{const{status:e}=g();return e},v=({children:e})=>{const[t]=Object(i.useState)(()=>new f),n=Object(i.useRef)("Fulfilled");Object(i.useLayoutEffect)(()=>t.listen("Pending",()=>n.current="Pending"),[t]),Object(i.useLayoutEffect)(()=>t.listen("Fulfilled",()=>n.current="Fulfilled"),[t]);const s=Object(i.useMemo)(()=>({enqueue:t.enqueue.bind(t),listen:t.listen.bind(t),isWaiting:t.isWaiting.bind(t),status:n}),[t,n]);return r.a.createElement(h.Provider,{value:s},e)};function g(){const e=Object(i.useContext)(h);if(void 0===e)throw new Error("useOrderQueue must be used within a OrderQueueProvider");return e}var p,T,y,w,b;const k=null!==(b=!("undefined"==typeof window||!window.document||!window.document.createElement)&&(null===(w=null===(y=null===(T=null===(p=window)||void 0===p?void 0:p.__RUNTIME__)||void 0===T?void 0:T.settings)||void 0===y?void 0:y["vtex.store"])||void 0===w?void 0:w.enableOrderFormOptimization))&&void 0!==b&&b,O=Object(i.createContext)({orderForm:d,setOrderForm:()=>{},error:void 0,loading:!1});function E(){const e=Object(i.useContext)(O);if(void 0===e)throw new Error("useOrderForm must be used within a OrderFormProvider");return e}function F(){var e;return"undefined"==typeof document?null:JSON.parse(null!==(e=localStorage.getItem("orderform"))&&void 0!==e?e:"null")}function I(e,t){return"function"==typeof t?{...e,...t({...e,value:-1===e.value?0:e.value})}:{...e,...t}}function _({useOrderFormMessages:e,useGetOrderForm:t,useLogger:n,defaultOrderForm:s}){return{OrderFormProvider:({children:o})=>{var a,l;const{log:u}=null!==(a=null==n?void 0:n())&&void 0!==a?a:{},c="undefined"!=typeof document&&!navigator.onLine,[d,f]=Object(i.useReducer)(I,null!==(l=c?F():s)&&void 0!==l?l:s),{loading:h,data:v,error:g}=t({orderForm:d,setOrderForm:f}),[p,T]=Object(i.useState)(!c),y=m();Object(i.useEffect)(()=>{if(h||g||!v)return;const e=F();if(null!=e&&(!((e,t)=>-1===e.value||k&&e.id!==t.id&&"default-order-form"!==e.id)(e,v.orderForm)||"Fulfilled"!==y.current))return T(!1),void f(t=>t.id!==s.id?t:e);f(v.orderForm),T(!1)},[v,g,h,y]),Object(i.useEffect)(()=>{((e,t)=>{try{localStorage.setItem("orderform",JSON.stringify(e))}catch(e){null==t||t({type:"Error",level:"Critical",event:e,workflowType:"OrderManager",workflowInstance:"save-local-orderform"})}})(d,u)},[u,d]),e(d,f);const w=Object(i.useMemo)(()=>"default-order-form"!==d.id?{error:g,orderForm:{...d,value:-1===d.value?0:d.value,messages:{...d.messages,generalMessages:[]}},initialFetchComplete:!0,setOrderForm:f,loading:p}:{error:g,orderForm:{...d,value:-1===d.value?0:d.value,messages:{...d.messages,generalMessages:[]}},initialFetchComplete:!1,setOrderForm:f,loading:p},[g,d,p]);return r.a.createElement(O.Provider,{value:w},o)}}}function M({useToast:e,useClearOrderFormMessages:t,useGetOrderForm:n,useLogger:r,defaultOrderForm:s}){return _({useOrderFormMessages:(({useClearOrderFormMessages:e,useToast:t})=>(n,r)=>{const[s,o]=Object(i.useState)([]),{showToast:a,toastState:l}=t(),{enqueue:u}=g(),c=m(),d=e();Object(i.useEffect)(()=>{!l.isToastVisible&&s.length&&(a(s[0].text),o(e=>e.slice(1)))},[a,l.isToastVisible,s]),Object(i.useEffect)(()=>{var e,t;if(!(null===(t=null===(e=n.messages)||void 0===e?void 0:e.generalMessages)||void 0===t?void 0:t.length))return;o(e=>{var t,i;return e.concat(null!==(i=null===(t=n.messages)||void 0===t?void 0:t.generalMessages)&&void 0!==i?i:[])}),r(e=>({...e,messages:{...e.messages,generalMessages:[]}}));u(async()=>{const{data:e}=await d({orderFormId:n.id});return e.clearOrderFormMessages}).then(e=>{"Fulfilled"===c.current&&r(e)},e=>{if("TASK_CANCELLED"!==e.code)throw e})},[d,u,n.id,n.messages,c,r])})({useToast:e,useClearOrderFormMessages:t}),useGetOrderForm:n,useLogger:r,defaultOrderForm:s})}}).call(this,n(18).setImmediate)},18:function(e,t,n){var i="undefined"!=typeof global&&global||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function s(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new s(r.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new s(r.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(19),t.setImmediate="undefined"!=typeof self&&self.setImmediate||"undefined"!=typeof global&&global.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||"undefined"!=typeof global&&global.clearImmediate||this&&this.clearImmediate},19:function(e,t,n){(function(e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,s,o,a,l=1,u={},c=!1,d=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){m(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((s=new MessageChannel).port1.onmessage=function(e){m(e.data)},i=function(e){s.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(e){var t=d.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):i=function(e){setTimeout(m,0,e)}:(o="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&m(+e.data.slice(o.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),i=function(e){t.postMessage(o+e,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n1)for(var n=1;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r{let n=e.slice(0);for(let e=0;e<=_^]/g,"-")).toLowerCase()}!function(){for(var e=arguments.length,n=new Array(e),t=0;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,i=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){var e=t.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==t.return||t.return()}finally{if(i)throw o}}}}function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return c}));var r=t(0),a=t(1),o=t.n(a);function c(e){return Object(r.useMemo)((function(){var n=e.variant,t=void 0===n?"primary":n,r=e.disabled,a=void 0!==r&&r,c=e.size,i=void 0===c?"regular":c,u=function(e,n){var t;switch(e){case"primary":t=n?"bg-disabled b--muted-5 c-on-disabled":"bg-action-primary b--action-primary c-on-action-primary hover-bg-action-primary hover-b--action-primary hover-c-on-action-primary";break;case"secondary":t="bg-action-secondary b--action-secondary c-on-action-secondary hover-bg-action-secondary hover-b--action-secondary hover-c-on-action-secondary"}return{container:t}}(t,a),l=function(e){var n,t;switch(e){case"small":n="min-h-small t-action--small",t="ph5";break;case"large":n="min-h-large t-action--large",t="ph7";break;default:n="min-h-regular t-action",t="ph6"}return{container:n,label:t}}(i);return{container:o()("bw1 fw5 ba v-mid pa0 lh-solid br2","inline-flex items-center no-underline",u.container,l.container),label:o()("w-100 tc",l.label)}}),[e])}},,,function(e,n,t){"use strict";t.d(n,"a",(function(){return u}));var r=t(17),a=t(13),o=t(2),c=t(0),i=t(4);var u=function(e,n,t){var u=Object(c.useState)("#"),l=Object(a.a)(u,2),s=l[0],d=l[1],f=Object(o.useRuntime)().route.queryString;return Object(c.useEffect)((function(){if(e){var a=[{type:i.a.queryString,namespace:"queryString",context:f}].concat(Object(r.a)(null!=t?t:[])).reduce((function(e,t){return function(e){for(var n=e.link,t=e.namespace,r=e.context,a=e.contextType,o=e.escapeLinkRegex,c=Object(i.b)(a)(r),u=n,l=0,s=Object.keys(c);le.length)&&(t=e.length);for(var n=0,r=new Array(t);nvoid 0===e,a=e=>null===e||s(e),c=e=>Array.isArray(e);const u=e=>"object"==typeof e;var o=e=>!a(e)&&!c(e)&&u(e),l=e=>o(e)&&e.nodeType===Node.ELEMENT_NODE;const d={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit"},m="blur",f="change",p="input",g="max",b="min",h="maxLength",v="minLength",O="pattern",y="required",j="validate",S=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/,_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/\\(\\)?/g;var V=e=>!c(e)&&(x.test(e)||!S.test(e)),E=e=>{const t=[];return e.replace(_,(e,r,n,i)=>{t.push(n?i.replace(w,"$1"):r||e)}),t};function k(e,t,r){let n=-1;const i=V(t)?[t]:E(t),s=i.length,a=s-1;for(;++nObject.entries(e).reduce((e,[t,r])=>V(t)?Object.assign(Object.assign({},e),{[t]:r}):(k(e,t,r),e),{}),L=(e,t,r)=>{const n=t.split(/[,[\].]+?/).filter(Boolean).reduce((e,t)=>a(e)?e:e[t],e);return s(n)||n===e?e[t]||r:n},P=(e,t)=>{l(e)&&e.removeEventListener&&(e.removeEventListener(p,t),e.removeEventListener(f,t),e.removeEventListener(m,t))},N=e=>!!e&&"radio"===e.type,I=e=>!!e&&"checkbox"===e.type;function q(e){return!e||e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE&&q(e.parentNode)}var F=e=>o(e)&&!Object.keys(e).length;function C(e){return c(e)?e:E(e)}function M(e,t){return 1==t.length?e:function(e,t){const r=V(t)?[t]:C(t),n=t.length;let i=0;for(;ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t;const s=Array(i);for(;++n{!function(e,t){const r=V(t)?[t]:C(t),n=M(e,r),i=r[r.length-1],s=!(null!=n)||delete n[i];let a=void 0;for(let t=0;t0&&(a=e);++no(e)&&!F(e)).length&&delete a[t]),a=i}}}(e,t)}),e}const $={isValid:!1,value:""};var A=e=>c(e)?e.reduce((e,{ref:{checked:t,value:r}})=>t?{isValid:!0,value:r}:e,$):$,D=e=>!!e&&"file"===e.type,J=e=>!!e&&"select-multiple"===e.type,W=e=>""===e;const T={value:!1,isValid:!1},z={value:!0,isValid:!0};var U=e=>{if(c(e)){if(e.length>1){const t=e.filter(({ref:{checked:e}})=>e).map(({ref:{value:e}})=>e);return{value:t,isValid:!!t.length}}const{checked:t,value:r,attributes:n}=e[0].ref;return t?n&&!s(n.value)?s(r)||W(r)?z:{value:r,isValid:!0}:z:T}return T};function H(e,t){const{name:r,value:n}=t,i=e[r];return D(t)?t.files:N(t)?i?A(i.options).value:"":J(t)?(s=t.options,[...s].filter(({selected:e})=>e).map(({value:e})=>e)):I(t)?!!i&&U(i.options).value:n;var s}var G=e=>"string"==typeof e,K=(e,t)=>{const r={},n=G(t),i=c(t),a=t&&t.nest;for(const c in e)(s(t)||a||n&&c.startsWith(t)||i&&t.find(e=>c.startsWith(e)))&&(r[c]=H(e,e[c].ref));return r},Q=(e,{type:t,types:r,message:n})=>o(e)&&e.type===t&&e.message===n&&((e={},t={})=>Object.entries(e).reduce((e,[r,n])=>!!e&&(t[r]&&t[r]===n),!0))(e.types,r);var X=e=>e instanceof RegExp,Y=e=>{const t=o(e)&&!X(e);return{value:t?e.value:e,message:t?e.message:""}},Z=e=>"function"==typeof e,ee=e=>"boolean"==typeof e;function te(e,t,r="validate"){const n=G(e);if(n||ee(e)&&!e){return{type:r,message:n?e:"",ref:t}}}var re=(e,t,r,n,i)=>{if(!t)return{};const s=r[e];return Object.assign(Object.assign({},s),{types:Object.assign(Object.assign({},s&&s.types?s.types:{}),{[n]:i||!0})})},ne=async(e,t,{ref:r,ref:{type:n,value:i,name:s},options:c,required:u,maxLength:l,minLength:d,min:m,max:f,pattern:p,validate:S})=>{const x=e.current,_={},w=N(r),V=I(r),E=w||V,k=W(i),R=re.bind(null,s,t,_),L=(e,n,i,a=h,c=v)=>{const u=e?n:i;if(_[s]=Object.assign({type:e?a:c,message:u,ref:r},R(e?a:c,u)),!t)return _};if(u&&(!w&&!V&&(k||a(i))||ee(i)&&!i||V&&!U(c).isValid||w&&!A(c).isValid)){const{value:e,message:n}=G(u)?{value:!!u,message:u}:Y(u);if(e&&(_[s]=Object.assign({type:y,message:n,ref:E?x[s].options[0].ref:r},R(y,n)),!t))return _}if(!a(m)||!a(f)){let e,s;const{value:c,message:u}=Y(f),{value:o,message:l}=Y(m);if("number"===n||!n&&!isNaN(i)){const t=r.valueAsNumber||parseFloat(i);a(c)||(e=t>c),a(o)||(s=tnew Date(c)),G(o)&&(s=te,u=d&&a{r.reduce(async(a,[c,u],o)=>{if(!F(await a)&&!t||!Z(u))return i(a);let l;const d=te(await u(e),n,c);return d?(l=Object.assign(Object.assign({},d),R(c,d.message)),t&&(_[s]=l)):l=a,r.length-1===o?i(l):l},{})});if(!F(i)&&(_[s]=Object.assign({ref:n},i),!t))return _}}return _};const ie=(e,t)=>c(e.inner)?e.inner.reduce((e,{path:r,message:n,type:i})=>Object.assign(Object.assign({},e),e[r]&&t?{[r]:re(r,t,e,i,n)}:{[r]:e[r]||Object.assign({message:n,type:i},t?{types:{[i]:n||!0}}:{})}),{}):{[e.path]:{message:e.message,type:e.type}};async function se(e,t,r,n,i){if(n)return n(r,i);try{return{values:await e.validate(r,{abortEarly:!1,context:i}),errors:{}}}catch(e){return{values:{},errors:R(ie(e,t))}}}var ae=(e,t,r)=>s(e[t])?L(e,t,r):e[t];var ce=e=>a(e)||!u(e);const ue=(e,t)=>{const r=(t,r,n)=>{const i=n?`${e}.${r}`:`${e}[${r}]`;return ce(t)?i:ue(i,t)};return c(t)?t.map((e,t)=>r(e,t)):Object.entries(t).map(([e,t])=>r(t,e,!0))};var oe=(e,t)=>function e(t){return t.reduce((t,r)=>t.concat(c(r)?e(r):r),[])}(ue(e,t)),le=(e,t,r,n,i)=>{let a;return r.add(t),F(e)?a=i||void 0:s(e[t])?(a=L(R(e),t),c(i)&&c(a)&&a.length!==i.length&&(a=i),s(a)||oe(t,a).forEach(e=>r.add(e))):(a=e[t],r.add(t)),s(a)?o(n)?ae(n,t):n:a},de=({hasError:e,isBlurEvent:t,isOnSubmit:r,isReValidateOnSubmit:n,isOnBlur:i,isReValidateOnBlur:s,isSubmitted:a})=>r&&n||r&&!a||i&&!t&&!e||s&&!t&&e||n&&a,me=(e,t)=>{const r=R(K(e));return t?L(r,t,r):r};function fe(e,t){let r=!1;if(!c(e)||!c(t)||e.length!==t.length)return!0;for(let n=0;ne.startsWith(t+"[");var ge=(e,t)=>[...e].reduce((e,r)=>!!pe(t,r)||e,!1);var be=e=>({isOnSubmit:!e||e===d.onSubmit,isOnBlur:e===d.onBlur,isOnChange:e===d.onChange});const{useRef:he,useState:ve,useCallback:Oe,useEffect:ye}=n;function je({mode:e=d.onSubmit,reValidateMode:t=d.onChange,validationSchema:r,validationResolver:n,validationContext:i,defaultValues:u={},submitFocusError:g=!0,validateCriteriaMode:b}={}){const h=he({}),v="all"===b,O=he({}),y=he({}),j=he({}),S=he(new Set),x=he(new Set),_=he(new Set),w=he(new Set),E=he(!0),C=he({}),M=he(u),$=he(!1),A=he(!1),T=he(!1),z=he(!1),U=he(0),X=he(!1),Y=he(),te=he({}),re=he(i),ie=he(new Set),[,ue]=ve(),{isOnBlur:oe,isOnSubmit:pe}=he(be(e)).current,je="undefined"==typeof window,Se=!(!r&&!n),xe="undefined"!=typeof document&&!je&&!s(window.HTMLElement),_e=xe&&"Proxy"in window,we=he({dirty:!_e,dirtyFields:!_e,isSubmitted:pe,submitCount:!_e,touched:!_e,isSubmitting:!_e,isValid:!_e}),{isOnBlur:Ve,isOnSubmit:Ee}=he(be(t)).current,ke=Oe(()=>{$.current||ue({})},[]),Re=Oe((e,t,r,n)=>{let i=r||function({errors:e,name:t,error:r,validFields:n,fieldsWithValidation:i}){const s=F(r),a=F(e),c=L(r,t),u=L(e,t);return!(s&&n.has(t)||u&&u.isManual)&&(!!(a!==s||!a&&!u||s&&i.has(t)&&!n.has(t))||c&&!Q(u,c))}({errors:O.current,error:t,name:e,validFields:w.current,fieldsWithValidation:_.current});if(F(t)?((_.current.has(e)||Se)&&(w.current.add(e),i=i||L(O.current,e)),O.current=B(O.current,[e])):(w.current.delete(e),i=i||!L(O.current,e),k(O.current,e,t[e])),i&&!n)return ke(),!0},[ke,Se]),Le=Oe((e,t)=>{const r=e.ref,n=e.options,{type:i}=r,s=xe&&l(r)&&a(t)?"":t;var c;return N(r)&&n?n.forEach(({ref:e})=>e.checked=e.value===s):D(r)?W(s)||(c=s,"undefined"!=typeof FileList&&c instanceof FileList)?r.files=s:r.value=s:J(r)?[...r.options].forEach(e=>e.selected=s.includes(e.value)):I(r)&&n?n.length>1?n.forEach(({ref:e})=>e.checked=s.includes(e.value)):n[0].ref.checked=!!s:r.value=s,!!i},[xe]),Pe=e=>{if(!h.current[e]||!we.current.dirty&&!we.current.dirtyFields)return!1;const t=ge(ie.current,e),r=x.current.size;let n=C.current[e]!==H(h.current,h.current[e].ref);if(t){const t=e.substring(0,e.indexOf("["));n=fe(me(h.current,t),L(M.current,t))}const i=(t?z.current:x.current.has(e))!==n;return n?x.current.add(e):x.current.delete(e),z.current=t?n:!!x.current.size,we.current.dirty?i:r!==x.current.size},Ne=Oe(e=>{if(Pe(e)||!L(y.current,e)&&we.current.touched)return!!k(y.current,e,!0)},[]),Ie=Oe((e,t,r)=>{const n=c(t);for(const i in t){const s=`${r||e}${n?`[${i}]`:"."+i}`;o(t[i])&&Ie(e,t[i],s);const a=h.current[s];a&&(Le(a,t[i]),Ne(s))}},[Le,Ne]),qe=Oe((e,t)=>{const r=h.current[e];if(r){Le(r,t);const n=Ne(e);if(ee(n))return n}else ce(t)||Ie(e,t)},[Ne,Le,Ie]),Fe=Oe(async(e,t)=>{const r=h.current[e];if(!r)return!1;const n=await ne(h,v,r);return Re(e,n,!1,t),F(n)},[Re,v]),Ce=Oe(async e=>{const{errors:t}=await se(r,v,me(h.current),n,re.current),i=E.current;return E.current=F(t),c(e)?(e.forEach(e=>{const r=L(t,e);r?k(O.current,e,r):B(O.current,[e])}),ke()):Re(e,L(t,e)?{[e]:L(t,e)}:{},i!==E.current),F(O.current)},[ke,Re,v,n,r]),Me=Oe(async e=>{const t=e||Object.keys(h.current);if(Se)return Ce(t);if(c(t)){const e=await Promise.all(t.map(async e=>await Fe(e,!0)));return ke(),e.every(Boolean)}return await Fe(t)},[Ce,Fe,ke,Se]),Be=e=>{const t=(e.match(/\w+/)||[])[0];return A.current||S.current.has(e)||S.current.has(t)&&!V(e)&&ie.current.has(t)};function $e(e,t,r){let n=!1;const i=c(e);(i?e:[e]).forEach(e=>{const r=G(e);n=!(!qe(r?e:Object.keys(e)[0],r?t:Object.values(e)[0])&&!i)||Be(e)}),(n||i)&&ke(),(r||i&&t)&&Me(i?void 0:e)}Y.current=Y.current?Y.current:async({type:e,target:t})=>{const i=t?t.name:"",s=h.current,a=O.current,c=s[i],u=L(a,i);let o;if(!c)return;const l=e===m,d=de({hasError:!!u,isBlurEvent:l,isOnSubmit:pe,isReValidateOnSubmit:Ee,isOnBlur:oe,isReValidateOnBlur:Ve,isSubmitted:T.current}),f=Pe(i);let p=Be(i)||f;if(l&&!L(y.current,i)&&we.current.touched&&(k(y.current,i,!0),p=!0),d)return p&&ke();if(Se){const{errors:e}=await se(r,v,me(s),n,re.current),t=E.current;E.current=F(e),o=L(e,i)?{[i]:L(e,i)}:{},t!==E.current&&(p=!0)}else o=await ne(h,v,c);!Re(i,o)&&p&&ke()};const Ae=Oe((e={})=>{const t=F(M.current)?K(h.current):M.current;se(r,v,R(Object.assign(Object.assign({},t),e)),n,re.current).then(({errors:e})=>{const t=E.current;E.current=F(e),t!==E.current&&ke()})},[ke,v,n]),De=(e,t)=>{!s(Y.current)&&e&&function(e,t,r,n){if(!r)return;const{ref:i,ref:{name:s,type:a},mutationWatcher:u}=r;if(!a)return void delete e[s];const o=e[s];if((N(i)||I(i))&&o){const{options:r}=o;c(r)&&r.length?(r.forEach(({ref:e,mutationWatcher:i},s)=>{(e&&q(e)||n)&&(P(e,t),i&&i.disconnect(),B(r,[`[${s}]`]))}),r&&!r.filter(Boolean).length&&delete e[s]):delete e[s]}else(q(i)||n)&&(P(i,t),u&&u.disconnect(),delete e[s])}(h.current,Y.current,e,t)},Je=Oe((e,t)=>{if(!e||e&&ge(ie.current,e.ref.name)&&!t)return;De(e,t);const{name:r}=e.ref;O.current=B(O.current,[r]),y.current=B(y.current,[r]),C.current=B(C.current,[r]),[x,_,w,S].forEach(e=>e.current.delete(r)),(we.current.isValid||we.current.touched)&&(ke(),Se&&Ae())},[ke,Se,Ae]);const We=({name:e,type:t,types:r,message:n,preventRender:i})=>{const s=h.current[e];Q(O.current[e],{type:t,message:n,types:r})||(k(O.current,e,{type:t,types:r,message:n,ref:s?s.ref:{},isManual:!0}),i||ke())};function Te(e){F(h.current)||(c(e)?e:[e]).forEach(e=>Je(h.current[e],!0))}function ze(e,t={}){if(!e.name)return console.warn("Missing name @",e);const{name:r,type:n,value:i}=e,a=Object.assign({ref:e},t),u=h.current,o=N(e)||I(e);let d,g=u[r],b=!0,O=!1;if(o?g&&c(g.options)&&g.options.find(({ref:e})=>i===e.value):g)return void(u[r]=Object.assign(Object.assign({},g),t));if(n){const i=function(e,t){const r=new MutationObserver(()=>{q(e)&&(r.disconnect(),t())});return r.observe(window.document,{childList:!0,subtree:!0}),r}(e,()=>Je(a));g=o?Object.assign({options:[...g&&g.options||[],{ref:e,mutationWatcher:i}],ref:{type:n,name:r}},t):Object.assign(Object.assign({},a),{mutationWatcher:i})}else g=a;if(u[r]=g,F(M.current)||(d=ae(M.current,r),b=s(d),O=ge(ie.current,r),b||O||Le(g,d)),Se&&!O&&we.current.isValid?Ae():F(t)||(_.current.add(r),!pe&&we.current.isValid&&ne(h,v,g).then(e=>{const t=E.current;F(e)?w.current.add(r):E.current=!1,t!==E.current&&ke()})),C.current[r]||O&&b||(C.current[r]=b?H(u,g.ref):d),!n)return;!function({field:e,handleChange:t,isRadioOrCheckbox:r}){const{ref:n}=e;l(n)&&n.addEventListener&&t&&(n.addEventListener(r?f:p,t),n.addEventListener(m,t))}({field:o&&g.options?g.options[g.options.length-1]:g,isRadioOrCheckbox:o,handleChange:Y.current})}function Ue(e,t){if(!je)if(G(e))ze({name:e},t);else{if(!o(e)||!("name"in e))return t=>t&&ze(t,e);ze(e,t)}}const He=Oe(e=>async t=>{let i,s;t&&(t.preventDefault(),t.persist());const a=h.current;we.current.isSubmitting&&(X.current=!0,ke());try{if(Se){s=K(a);const{errors:e,values:t}=await se(r,v,R(s),n,re.current);O.current=e,i=e,s=t}else{const{errors:e,values:t}=await Object.values(a).reduce(async(e,t)=>{if(!t)return e;const r=await e,{ref:n,ref:{name:i}}=t;if(!a[i])return Promise.resolve(r);const s=await ne(h,v,t);return s[i]?(k(r.errors,i,s[i]),w.current.delete(i),Promise.resolve(r)):(_.current.has(i)&&w.current.add(i),r.values[i]=H(a,n),Promise.resolve(r))},Promise.resolve({errors:{},values:{}}));i=e,s=t}F(i)?(O.current={},await e(R(s),t)):(g&&xe&&((e,t)=>{for(const r in e)if(L(t,r)){const t=e[r];if(t){if(l(t.ref)&&t.ref.focus){t.ref.focus();break}if(t.options){t.options[0].ref.focus();break}}}})(a,i),O.current=i)}finally{T.current=!0,X.current=!1,U.current=U.current+1,ke()}},[xe,ke,Se,g,v,n,r]),Ge=e=>{const t=K(h.current),r=F(t)?M.current:t;return e&&e.nest?R(r):r};ye(()=>()=>{$.current=!0,h.current&&Object.values(h.current).forEach(e=>Je(e,!0))},[Je]),Se||(E.current=w.current.size>=_.current.size&&F(O.current));const Ke={dirty:z.current,dirtyFields:x.current,isSubmitted:T.current,submitCount:U.current,touched:y.current,isSubmitting:X.current,isValid:pe?T.current&&F(O.current):E.current};return{watch:function(e,t){const r=s(t)?s(M.current)?{}:M.current:t,n=K(h.current,e),i=S.current;if(G(e))return le(n,e,i,r,ie.current.has(e)?j.current[e]:void 0);if(c(e))return e.reduce((e,t)=>{let s;return s=F(h.current)&&o(r)?ae(r,t):le(n,t,i,r),Object.assign(Object.assign({},e),{[t]:s})},{});A.current=!0;const a=!F(n)&&n||t||M.current;return e&&e.nest?R(a):a},control:Object.assign(Object.assign({register:Ue,unregister:Te,removeFieldEventListener:De,getValues:Ge,setValue:$e,reRender:ke,triggerValidation:Me},Se?{validateSchemaIsValid:Ae}:{}),{formState:Ke,mode:{isOnBlur:oe,isOnSubmit:pe},reValidateMode:{isReValidateOnBlur:Ve,isReValidateOnSubmit:Ee},errorsRef:O,touchedFieldsRef:y,fieldsRef:h,resetFieldArrayFunctionRef:te,validFieldsRef:w,fieldsWithValidationRef:_,watchFieldArrayRef:j,fieldArrayNamesRef:ie,isDirtyRef:z,readFormStateRef:we,defaultValuesRef:M}),handleSubmit:He,setValue:Oe($e,[ke,qe,Me]),triggerValidation:Me,getValues:Oe(Ge,[]),reset:Oe(e=>{if(xe)for(const e of Object.values(h.current))if(e&&l(e.ref)&&e.ref.closest)try{e.ref.closest("form").reset();break}catch(e){}e&&(M.current=e),Object.values(te.current).forEach(e=>Z(e)&&e()),O.current={},h.current={},y.current={},w.current=new Set,_.current=new Set,C.current={},S.current=new Set,x.current=new Set,A.current=!1,T.current=!1,z.current=!1,E.current=!0,U.current=0,ke()},[]),register:Oe(Ue,[M.current,C.current,j.current]),unregister:Oe(Te,[]),clearError:Oe((function(e){s(e)?O.current={}:B(O.current,c(e)?e:[e]),ke()}),[]),setError:Oe((function(e,t="",r){G(e)?We(Object.assign({name:e},o(t)?{types:t,type:""}:{type:t,message:r})):c(e)&&(e.forEach(e=>We(Object.assign(Object.assign({},e),{preventRender:!0}))),ke())}),[]),errors:O.current,formState:_e?new Proxy(Ke,{get:(e,t)=>t in e?(we.current[t]=!0,e[t]):{}}):Ke}}function Se(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i{var{name:t,rules:r,as:i,onBlur:a,onChange:c,onChangeName:u=d.onChange,onBlurName:l=d.onBlur,valueName:m,defaultValue:f,control:p}=e,g=Se(e,["name","rules","as","onBlur","onChange","onChangeName","onBlurName","valueName","defaultValue","control"]);const b=_e(),{defaultValuesRef:h,setValue:v,register:O,unregister:y,errorsRef:j,removeFieldEventListener:S,triggerValidation:x,mode:{isOnSubmit:_,isOnBlur:w},reValidateMode:{isReValidateOnBlur:V,isReValidateOnSubmit:E},formState:{isSubmitted:k},fieldsRef:R,fieldArrayNamesRef:P}=p||b.control,[N,I]=Object(n.useState)(s(f)?L(h.current,t):f),q=Object(n.useRef)(N),F=ee(N),C=()=>!de({hasError:!!L(j.current,t),isOnBlur:w,isOnSubmit:_,isReValidateOnBlur:V,isReValidateOnSubmit:E,isSubmitted:k}),M=e=>{const t=((e,t)=>ce(e)||!o(e.target)||o(e.target)&&!e.type?e:t||s(e.target.value)?e.target.checked:e.target.value)(e,F);return I(t),q.current=t,t},B=()=>{ge(P.current,t)&&R.current[t]&&S(R.current[t],!0),O(Object.defineProperty({name:t},"value",{set(e){I(e),q.current=e},get:()=>q.current}),Object.assign({},r))};Object(n.useEffect)(()=>{R.current[t]||(B(),I(s(f)?L(h.current,t):f))}),Object(n.useEffect)(()=>(B(),()=>{ge(P.current,t)||y(t)}),[t]);const $=w||V,A=Object.assign(Object.assign(Object.assign(Object.assign({name:t},g),c?{[u]:(D=c,(...e)=>v(t,M(D(e)),C()))}:{[u]:e=>{const r=M(e);v(t,r,C())}}),a||$?{[l]:(...e)=>{a&&a(e),$&&x(t)}}:{}),{[m||(F?"checked":"value")]:N});var D;return Object(n.isValidElement)(i)?Object(n.cloneElement)(i,A):Object(n.createElement)(i,A)},Le=(e,t)=>e+"/"+t,Pe=e=>{const t=e.split("/");return"#"===t[0]&&t.shift(),t},Ne=/^[a-z][a-z0-9+.-]*:/i,Ie=e=>Ne.test(e),qe=/^#(\/(([^#/~])|(~[01]))*)*/i,Fe=(e,t,r)=>{if(Ie(e)){const r=new URL(e);if(r.hash)return Fe(r.hash,t,t[`${r.origin}${r.pathname}`])}else if(n=e,qe.test(n)&&r)return Pe(e).reduce((e,t)=>{if(e)return e[t]},r);var n;return t[e]},Ce=(e,t,r)=>{let n={};if(e.$ref){const i=e.$ref;if(r.indexOf(i)>-1)return n;r.push(i),n=Object.assign({},Fe(i,t))}else n=Object.assign({},e);return Object.keys(n).reduce((e,n)=>("object"!=typeof e[n]||null===e[n]||Array.isArray(e[n])||r.indexOf(e[n].$ref)>-1||(e[n]=Ce(e[n],t,r.slice())),e),n)},Me={integer:e=>parseInt(e),number:e=>parseFloat(e),boolean:e=>"true"===e},Be=(e,t)=>Object.keys(t).sort().reduce((r,n)=>{const i=Pe(n);return i&&t[n]?(i.reduce((e,r,i,s)=>{var a;return e.currentSubSchema=e.currentSubSchema?e.currentSubSchema[r]:void 0,"properties"!==r||e.insideProperties?(i===s.length-1&&e.currentSubSchema?e.currentJSON[r]=e.currentSubSchema.type&&Me[e.currentSubSchema.type]?Me[e.currentSubSchema.type](t[n]):null!==(a=e.targetData)&&void 0!==a?a:{}:!e.currentJSON[r]&&e.currentSubSchema&&(e.currentJSON[r]={}),e.currentJSON=e.currentJSON[r],Object.assign(Object.assign({},e),{insideProperties:!1})):Object.assign(Object.assign({},e),{insideProperties:!0})},{currentJSON:r,currentSubSchema:e,insideProperties:!1,targetData:t[n]}),r):r},{}),$e=(e,t,r)=>{var n;const{schema:i}=r,s=Pe(e).reduce((e,t)=>{var r;const{JSONSchema:n,currentData:i}=e;if(!(n&&"object"===n.type||e.insideProperties))return Object.assign(Object.assign({},e),{JSONSchema:void 0,invalidPointer:!0});if("properties"===t&&!e.insideProperties){const i=e.isRequired;return Object.assign(Object.assign({},e),{JSONSchema:n.properties,fatherIsRequired:i,pointer:Le(e.pointer,t),insideProperties:!0,currentRequiredField:null!==(r=n.required)&&void 0!==r?r:[]})}const s=!!i,a=i?i[t]:i,c=e.currentRequiredField.indexOf(t)>-1;return Object.assign(Object.assign({},e),{JSONSchema:n[t],currentData:a,fatherExists:s,isRequired:c,invalidPointer:!1,objectName:t,pointer:Le(e.pointer,t),insideProperties:!1})},{JSONSchema:i,currentData:t,fatherExists:!0,fatherIsRequired:!0,invalidPointer:!1,isRequired:!0,objectName:"",pointer:"#",insideProperties:!1,currentRequiredField:null!==(n=i.required)&&void 0!==n?n:[]});return{JSONSchema:s.JSONSchema,invalidPointer:s.invalidPointer,isRequired:s.fatherIsRequired&&s.isRequired||!s.fatherIsRequired&&s.isRequired&&s.fatherExists,objectName:s.objectName,pointer:s.pointer}},Ae=Object(n.createContext)(null);function De(){return Object(n.useContext)(Ae)}const Je=e=>{const{formProps:t,onChange:r,validationMode:s="onSubmit",revalidateMode:a="onChange",submitFocusError:c=!0,defaultValues:u}=e,o=je({defaultValues:u,mode:s,reValidateMode:a,submitFocusError:c}),l=i.a.useRef(!0);if("function"==typeof r){const t=o.watch();!1===l.current&&r(Be(e.schema,t))}const d=Object(n.useMemo)(()=>(e=>{const t=(e,r,n)=>Object.keys(r).reduce((i,s)=>{if("object"==typeof r[s]&&null!==r[s]&&!Array.isArray(r[s]))return Object.assign(Object.assign({},t(Le(e,s),r[s],n)),i);const a=r[s];if("$id"===s&&a&&(i[a]=r,!Ie(a)))try{i[new URL(a,n).href]=r}catch(e){if(!(e instanceof TypeError))throw e}return i},{[e]:r});let r=void 0;if(e.$id&&Ie(e.$id))try{r=new URL(e.$id)}catch(e){if(r=void 0,!(e instanceof TypeError))throw e}return r?Object.assign({[r.href]:e},t("#",e,r)):t("#",e,r)})(e.schema),[e.schema]),m=Object(n.useMemo)(()=>Ce(e.schema,d,[]),[e.schema,d]),f=Object(n.useMemo)(()=>Object.assign(Object.assign({},o),{schema:m,idMap:d,customValidators:e.customValidators}),[o,m,d,e.customValidators]),p=Object.assign({},t);return p.onSubmit=o.handleSubmit(async(t,r)=>{if(e.onSubmit)return e.onSubmit({data:Be(e.schema,t),event:r,methods:f})}),e.noNativeValidate&&(p.noValidate=e.noNativeValidate),!0===l.current&&(l.current=!1),i.a.createElement(Ae.Provider,{value:f},i.a.createElement("form",Object.assign({},p),e.children))};var We,Te,ze,Ue;(Ue=We||(We={})).generic="generic",Ue.radio="radio",Ue.select="select",Ue.input="input",Ue.textArea="textArea",Ue.checkbox="checkbox",function(e){e.default="default",e.radio="radio",e.select="select",e.input="input",e.hidden="hidden",e.password="password",e.textArea="textArea",e.checkbox="checkbox"}(Te||(Te={})),function(e){e.required="__form_error_required__",e.maxLength="__form_error_maxLength__",e.minLength="__form_error_minLength__",e.maxValue="__form_error_maxValue__",e.minValue="__form_error_minValue__",e.pattern="__form_error_pattern__",e.notInteger="__form_error_notInteger__",e.notFloat="__form_error_notFloat__",e.multipleOf="__form_error_multipleOf__",e.notInEnum="__form_error_notInEnum",e.undefinedError="__form_error_undefinedError__"}(ze||(ze={}));const He=(e,t)=>{const r=Math.pow(10,t||0);return String(Math.round(e*r)/r)},Ge=e=>{const t=void 0!==e.multipleOf?"integer"===e.type?parseInt(e.multipleOf):parseFloat(e.multipleOf):"integer"===e.type?1:"any";let r=void 0;if(e.multipleOf){const t=e.multipleOf.toString().split(".")[1];r=t?t.length:0}return[t,r]},Ke=e=>{const[t]=Ge(e);let r=void 0!==e.exclusiveMinimum?e.exclusiveMinimum:void 0!==e.minimum?e.minimum:void 0;return void 0!==r&&void 0!==e.exclusiveMinimum&&(r+=t&&"any"!=t?t:1e-4),r},Qe=e=>{const[t]=Ge(e);let r=void 0!==e.exclusiveMaximum?parseFloat(e.exclusiveMaximum):void 0!==e.maximum?parseFloat(e.maximum):void 0;return void 0!==r&&void 0!==e.exclusiveMaximum&&(r-=t&&"any"!=t?t:1e-4),r};function Xe(e,t){return Object.keys(e).reduce((r,n)=>(r[n]=r=>e[n](r,t),r),{})}const Ye=(e,t)=>{const{JSONSchema:r,isRequired:n}=e,i=Object.keys(t).length>0||r.enum,s=Object.assign({},i?{validate:Object.assign(Object.assign({},Xe(t,e)),r.enum?{enumValidator:e=>{if(!r.enum||!e)return!0;for(const t of r.enum)if(t==e)return!0;return ze.notInEnum}}:void 0)}:void 0);switch(n&&(s.required=ze.required),r.type){case"integer":case"number":return((e,t)=>{const r=Ke(e),n=Qe(e);return t.validate=Object.assign(Object.assign({},t.validate),{multipleOf:t=>"integer"!==e.type||!t||e.multipleOf&&(parseInt(t)%parseInt(e.multipleOf)==0||ze.multipleOf)}),"integer"===e.type?t.pattern={value:/^([+-]?[1-9]\d*|0)$/,message:ze.notInteger}:t.pattern={value:/^([+-]?[0-9]+([.][0-9]+))?$/,message:ze.notFloat},(r||0===r)&&(t.min={value:r,message:ze.minValue}),(n||0===n)&&(t.max={value:n,message:ze.maxValue}),t})(r,s);case"string":return c=s,(a=r).minLength&&(c.minLength={value:a.minLength,message:ze.minLength}),a.maxLength&&(c.maxLength={value:a.maxLength,message:ze.maxLength}),a.pattern&&(c.pattern={value:new RegExp(a.pattern),message:ze.pattern}),c;case"boolean":return s;default:return{}}var a,c},Ze=(e,t)=>$e(e,t,De()),et=(e,t)=>{var r;const n=Pe(e);let i=!1;return null===(r=n.reduce((e,t)=>"properties"!==t||i?(i=!1,{currentData:e.currentData?e.currentData[t]:void 0,insideProperties:!0}):(i=!0,Object.assign(Object.assign({},e),{insideProperties:!0})),{currentData:t,insideProperties:!1}).currentData)||void 0===r?void 0:r.toString()},tt=(e,t,r)=>{var n;const{JSONSchema:i,isRequired:s,objectName:a}=t;let c,u,o;if("number"===i.type||"integer"===i.type){const e=Ge(i);o=e[0],c=Ke(i),u=Qe(i)}return{name:a,pointer:r,isRequired:s,formContext:e,type:We.generic,validator:Ye(t,null!==(n=e.customValidators)&&void 0!==n?n:{}),getError:()=>((e,t,r,n,i,s,a,c)=>{if("array"===t.type){const e=n.getValues({nest:!0})[i];if(e){const r=e.filter(e=>!1!==e).length||0;if(t.minItems&&rt.maxItems)return{message:ze.maxLength,expected:t.maxItems}}}if(!e)return;const u={message:"string"==typeof e.message?e.message:ze.undefinedError,expected:void 0};switch(e.message){case ze.required:u.message=ze.required,u.expected=r;break;case ze.maxLength:u.message=ze.maxLength,u.expected=t.maxLength;break;case ze.minLength:u.message=ze.minLength,u.expected=t.minLength;break;case ze.maxValue:u.message=ze.maxValue,u.expected=a;break;case ze.minValue:u.message=ze.minValue,u.expected=s;break;case ze.multipleOf:u.message=ze.multipleOf,u.expected=c;break;case ze.pattern:u.message=ze.pattern,u.expected=t.pattern;break;case ze.notInEnum:u.message=ze.notInEnum,u.expected=t.enum}return u})(e.errors[r]?e.errors[r]:void 0,i,s,e,r,c,u,o),getObject:()=>i,getCurrentValue:()=>e.getValues()[r]}},rt=e=>{const t=De(),r=Be(t.schema,t.getValues()),n=Ze(e,r);return tt(t,n,e)},nt=e=>e?e.toString():"",it=e=>e.enum?e.enum.map(nt):[],st=(e,t,r)=>e+"-checkbox-input-"+(r[t]?r[t]:""),at=e=>{const{register:t}=e.formContext,{validator:r}=e,n=e.getObject();let i,s,a,c,u=[];if("array"===n.type){if(n.items.enum)u=it(n.items);else if("string"===n.items.type)u=it(n);else if("number"===n.items.type||"integer"===n.items.type){const e=Ge(n);if(a=e[0],c=e[1],i=Ke(n),s=Qe(n),void 0!==i&&void 0!==s&&"any"!=a)for(let e=i;e<=s;e+=a)u.push(He(e,c||0))}n.uniqueItems&&(u=[...new Set(u)])}else"boolean"===n.type&&(u=["true"]);return Object.assign(Object.assign({},e),{type:We.checkbox,isSingle:"boolean"===n.type,getItemInputProps:i=>{const s={key:""};return s.name="array"===n.type?`${e.pointer}[${i}]`:e.pointer,s.ref=t(r),s.type="checkbox",s.id=st(e.pointer,i,u),s.value=u[i],s},getItemLabelProps:t=>{const r={};return r.id=((e,t,r)=>e+"-checkbox-label-"+(r[t]?r[t]:""))(e.pointer,t,u),r.htmlFor=st(e.pointer,t,u),r},getItems:()=>u})},ct=e=>at(rt(e)),ut=(e,t)=>e+"-"+t+"-input",ot=(e,t)=>{const{register:r}=e.formContext,{validator:n}=e,i=e.getObject();let s,a,c,u;const o={key:""};if("string"===i.type)o.pattern=i.pattern,o.minLength=i.minLength,o.maxLength=i.maxLength;else if("number"===i.type||"integer"===i.type){const e=Ge(i);c=e[0],u=e[1],s=Ke(i),a=Qe(i),o.min=""+s,o.max=""+a,o.step="any"===c?"any":He(c,u||0)}return Object.assign(Object.assign({},e),{type:We.input,getLabelProps:()=>{const r={};return r.id=((e,t)=>e+"-"+t+"-label")(e.pointer,t),r.htmlFor=ut(e.pointer,t),r},getInputProps:()=>(o.name=e.pointer,o.ref=r(n),o.type=t,o.required=e.isRequired,o.id=ut(e.pointer,t),o)})},lt=()=>({}),dt=e=>Object.assign(Object.assign({},ot(e,"hidden")),{isRequired:!1,getLabelProps:lt}),mt=e=>dt(rt(e)),ft=e=>{const t=e.getObject();let r="text";if("string"===t.type)switch(t.format){case"date":r="date";break;case"date-time":r="datetime-local";break;case"email":r="email";break;case"hostname":case"uri":r="url"}else"integer"!==t.type&&"number"!==t.type||(r="number");return ot(e,r)},pt=e=>ft(rt(e)),gt=(e,t,r)=>e+"-radio-input-"+(r[t]?r[t]:""),bt=e=>{const{register:t}=e.formContext,{validator:r}=e,n=e.getObject();let i,s,a,c,u=[];if("string"===n.type)u=it(n);else if("number"===n.type||"integer"===n.type){const e=Ge(n);if(a=e[0],c=e[1],i=Ke(n),s=Qe(n),void 0!==i&&void 0!==s&&"any"!=a)for(let e=i;e<=s;e+=a)u.push(He(e,c||0))}else"boolean"===n.type&&(u=["true","false"]);return Object.assign(Object.assign({},e),{type:We.radio,getLabelProps:()=>{const t={};return t.id=e.pointer+"-label",t.htmlFor=void 0!==n.title?n.title:e.pointer,t},getItemInputProps:n=>{const i={key:""};return i.name=e.pointer,i.ref=t(r),i.type="radio",i.required=e.isRequired,i.id=gt(e.pointer,n,u),i.value=u[n],i},getItemLabelProps:t=>{const r={};return r.id=((e,t,r)=>e+"-radio-label-"+(r[t]?r[t]:""))(e.pointer,t,u),r.htmlFor=gt(e.pointer,t,u),r},getItems:()=>u})},ht=e=>bt(rt(e)),vt=e=>e+"-select",Ot=e=>{const{register:t}=e.formContext,{validator:r}=e,n=e.getObject();let i,s,a,c,u=[""];if("string"===n.type)u=u.concat(it(n));else if("number"===n.type||"integer"===n.type){const e=Ge(n);if(a=e[0],c=e[1],i=Ke(n),s=Qe(n),void 0!==i&&void 0!==s&&"any"!=a)for(let e=i;e<=s;e+=a)u.push(He(e,c||0))}else"boolean"===n.type&&(u=["true","false"]);return Object.assign(Object.assign({},e),{type:We.select,validator:r,getLabelProps:()=>{const t={};return t.id=e.pointer+"-label",t.htmlFor=vt(e.pointer),t},getSelectProps:()=>{const n={};return n.name=e.pointer,n.ref=t(r),n.required=e.isRequired,n.id=vt(e.pointer),n},getItemOptionProps:t=>{const r={};return r.id=((e,t,r)=>e+"-select-option-"+(r[t]?r[t]:""))(e.pointer,t,u),r.value=u[t],r},getItems:()=>u})},yt=e=>Ot(rt(e)),jt=e=>ot(e,"password"),St=e=>jt(rt(e)),xt=e=>e+"-textarea-input",_t=e=>{const{register:t}=e.formContext,{validator:r}=e,n=e.getObject(),i={};return"string"===n.type&&(i.minLength=n.minLength,i.maxLength=n.maxLength),Object.assign(Object.assign({},e),{type:We.textArea,getLabelProps:()=>{const t={};return t.id=e.pointer+"-textarea-label",t.htmlFor=xt(e.pointer),t},getTextAreaProps:()=>(i.name=e.pointer,i.ref=t(r),i.required=e.isRequired,i.id=xt(e.pointer),i)})},wt=e=>_t(rt(e));function Vt(e){const t=e.getObject(),r=[];switch(t.type){case"string":t.enum?r.push(Ot(e)):r.push(ft(e));break;case"integer":case"number":r.push(ft(e));break;case"array":case"boolean":r.push(at(e))}return r}const Et=e=>{const t=De(),r=Be(t.schema,t.getValues());return function e(t,r,n,i,s){let a=[];const{JSONSchema:c}=r,u=tt(t,r,n);if("object"===c.type)return Object.keys(c.properties).reduce(function(t,r,n,i){return(s,a)=>{const c=r&&r.properties?r.properties[a]:void 0,u=Le(Le(t,"properties"),a),o=$e(u,i,n),l=e(n,o,u,c,i);return s.concat(l)}}(n,i,t,s),[]);if(!i)return a.concat(Vt(u));switch(i.type){case Te.default:a=a.concat(Vt(u));break;case Te.checkbox:a.push(at(u));break;case Te.hidden:a.push(dt(u));break;case Te.input:a.push(ft(u));break;case Te.password:a.push(jt(u));break;case Te.radio:a.push(bt(u));break;case Te.select:a.push(Ot(u));break;case Te.textArea:a.push(_t(u))}return a}(t,Ze(e.pointer,r),e.pointer,e.UISchema,r)}}]]); },function(){ (window.webpackJsonpvtex_store_form_0_10_1=window.webpackJsonpvtex_store_form_0_10_1||[]).push([[1],{11:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"c",(function(){return m})),r.d(t,"d",(function(){return b})),r.d(t,"b",(function(){return d}));var n=r(4),a=r(0),o=r.n(a),c=r(10),l=r.n(c),u=r(1),i=r(5),s=function(e){var t=e.pointer,r=e.value,a=Object(u.g)(t);return o.a.createElement("input",Object(n.a)({},a.getInputProps(),{value:r}))},m=function(e){var t=e.pointer,r=e.label,n=e.placeholder,a=Object(u.j)(t);return o.a.createElement(d,{inputObject:a,label:r,placeholder:n})},b=function(e){var t=e.pointer,r=e.label,n=e.placeholder,a=Object(u.h)(t);return o.a.createElement(d,{inputObject:a,label:r,placeholder:n})},d=function(e){var t,r,a=e.inputObject,c=e.placeholder,u=a.getError(),s=a.getObject(),m=null!==(r=null!==(t=e.label)&&void 0!==t?t:s.title)&&void 0!==r?r:a.name;return o.a.createElement(l.a,Object(n.a)({},a.getInputProps(),{label:m,error:!!u,errorMessage:Object(i.a)(u),placeholder:c}))}},22:function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return m}));var n=r(4),a=r(0),o=r.n(a),c=r(18),l=r.n(c),u=r(1),i=r(5),s=function(e){var t=Object(u.m)(e.pointer);return o.a.createElement(m,{textAreaObject:t,label:e.label,placeholder:e.placeholder})},m=function(e){var t,r,a=e.textAreaObject,c=e.placeholder,u=a.getError(),s=a.getObject(),m=null!==(r=null!==(t=e.label)&&void 0!==t?t:s.title)&&void 0!==r?r:a.name;return o.a.createElement(l.a,Object(n.a)({},a.getTextAreaProps(),{label:m,error:!!u,errorMessage:Object(i.a)(u),placeholder:c}))}},23:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return s}));var n=r(0),a=r.n(n),o=r(19),c=r.n(o),l=r(1),u=r(5),i=function(e){var t=e.pointer,r=e.label,n=Object(l.k)(t);return a.a.createElement(s,{radioObject:n,label:r})},s=function(e){var t,r,n=e.radioObject,o=n.getError(),i=n.getObject(),s=null!==(r=null!==(t=e.label)&&void 0!==t?t:i.title)&&void 0!==r?r:n.name;return a.a.createElement(l.a,{name:n.pointer,control:n.formContext.control,rules:n.validator,as:a.a.createElement(c.a,{name:s,required:n.isRequired,hideBorder:!0,label:s,options:n.getItems().map((function(e){return{value:e,label:e}})),error:!!o,errorMessage:Object(u.a)(o)})})}},24:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return s}));var n=r(0),a=r.n(n),o=r(20),c=r.n(o),l=r(1),u=r(5),i=function(e){var t=Object(l.l)(e.pointer);return a.a.createElement(s,{selectObject:t,label:e.label})},s=function(e){var t,r,o=e.selectObject,i=o.getError(),s=o.getObject(),m=null!==(r=null!==(t=e.label)&&void 0!==t?t:s.title)&&void 0!==r?r:o.name,b=o.getItems(),d=Object(n.useMemo)((function(){return b.map((function(e){return{value:e,label:e}}))}),[b]);return a.a.createElement(a.a.Fragment,null,a.a.createElement(l.a,{name:o.pointer,control:o.formContext.control,rules:o.validator,as:a.a.createElement(c.a,{name:m,multi:!1,label:m,options:d,error:!!i,errorMessage:Object(u.a)(i)})}))}},25:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return s}));var n=r(4),a=r(0),o=r.n(a),c=r(14),l=r.n(c),u=r(1),i=function(e){var t=Object(u.f)(e.pointer);return o.a.createElement(s,{checkboxObject:t,label:e.label})},s=function(e){var t,r,a=e.checkboxObject,c=a.getObject(),u=null!==(r=null!==(t=e.label)&&void 0!==t?t:c.title)&&void 0!==r?r:a.name;if(a.isSingle){var i=a.formContext.watch(a.pointer);return o.a.createElement(o.a.Fragment,null,o.a.createElement(l.a,Object(n.a)({},a.getItemInputProps(0),{label:u,required:a.isRequired,checked:Boolean(i),value:"true",onChange:function(){var e=a.pointer;a.formContext.setValue(e,!i)}})))}return o.a.createElement(o.a.Fragment,null,a.getItems().map((function(e,t){var r=a.formContext.watch("".concat(a.pointer,"[").concat(t,"]"));return o.a.createElement(l.a,Object(n.a)({},a.getItemInputProps(t),{key:"".concat(e).concat(t),label:u,required:a.isRequired,value:e},r?{checked:!0}:{checked:!1},{onChange:function(){var e=a.pointer;a.formContext.setValue(e,!r)},checked:Boolean(r)}))})))}},28:function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r(0),a=r.n(n),o=r(1),c=r(11),l=r(22),u=r(23),i=r(24),s=r(25),m=function(e){switch(e.baseObject.type){case o.d.input:var t=e.baseObject;return a.a.createElement(c.b,{inputObject:t});case o.d.radio:var r=e.baseObject;return a.a.createElement(u.a,{radioObject:r});case o.d.select:var n=e.baseObject;return a.a.createElement(i.a,{selectObject:n});case o.d.textArea:var m=e.baseObject;return a.a.createElement(l.a,{textAreaObject:m});case o.d.checkbox:var b=e.baseObject;return a.a.createElement(s.a,{checkboxObject:b});default:return a.a.createElement(a.a.Fragment,null)}},b=function(e){var t=e.pointer,r=e.uiSchema,n=Object(o.i)({pointer:t,UISchema:r});return a.a.createElement(a.a.Fragment,null,n.map((function(e){return a.a.createElement("div",{key:"".concat(e.type).concat(e.pointer)},a.a.createElement(m,{baseObject:e}))})))}},5:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(2),a=r(1),o=Object(n.defineMessages)({required:{id:"store/form.error.required"},maxLength:{id:"store/form.error.maxLength"},minLength:{id:"store/form.error.minLength"},maxValue:{id:"store/form.error.maxValue"},minValue:{id:"store/form.error.minValue"},notFloat:{id:"store/form.error.notFloat"},notInteger:{id:"store/form.error.notInteger"},pattern:{id:"store/form.error.pattern"},notInEnum:{id:"store/form.error.notInEnum"},multipleOf:{id:"store/form.error.multipleOf"},genericError:{id:"store/form.error.undefinedError"}}),c=function(e){var t,r,c,l,u,i=Object(n.useIntl)();if(!e)return"";switch(e.message){case a.b.required:return i.formatMessage(o.required);case a.b.maxLength:return i.formatMessage(o.maxLength,{value:null===(t=e.expected)||void 0===t?void 0:t.toString()});case a.b.minLength:return i.formatMessage(o.minLength,{value:null===(r=e.expected)||void 0===r?void 0:r.toString()});case a.b.maxValue:return i.formatMessage(o.maxValue,{value:null===(c=e.expected)||void 0===c?void 0:c.toString()});case a.b.minValue:return i.formatMessage(o.minValue,{value:null===(l=e.expected)||void 0===l?void 0:l.toString()});case a.b.notFloat:return i.formatMessage(o.notFloat);case a.b.notInteger:return i.formatMessage(o.notInteger);case a.b.notInEnum:return i.formatMessage(o.notInEnum);case a.b.pattern:return i.formatMessage(o.pattern);case a.b.multipleOf:return i.formatMessage(o.multipleOf,{value:null===(u=e.expected)||void 0===u?void 0:u.toString()});default:return i.formatMessage(o.genericError)}}}}]); },function(){ (window.webpackJsonpvtex_store_form_0_10_1=window.webpackJsonpvtex_store_form_0_10_1||[]).push([["Form"],[function(e,n){e.exports=React},,function(e,n){e.exports=ReactIntl},,,,,function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.native-types@0.x/IOMessage"]},,,function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Input"]},,function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Alert"]},function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Button"]},function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Checkbox"]},function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"a",(function(){return u}));var r=t(0),a={loading:!1,userInputError:null,serverError:null,success:null};function i(e,n){switch(n.type){case"SET_LOADING":return{loading:!0,userInputError:null,serverError:null,success:null};case"SET_SUCCESS":return{loading:!1,userInputError:!1,serverError:null,success:!0};case"SET_USER_INPUT_ERROR":return Object.assign(Object.assign({},e),{loading:!1,userInputError:!0,success:!1});case"SET_SERVER_INTERNAL_ERROR":return Object.assign(Object.assign({},e),{loading:!1,serverError:!0,success:!1});default:return e}}var o=function(){return Object(r.useReducer)(i,a)},u=t.n(r).a.createContext(a)},,function(e,n){e.exports=ReactApollo},function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Textarea"]},function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/RadioGroup"]},function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Dropdown"]},,,,,,function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return b}));var r=t(0),a=t.n(r),i=t(2),o=t(13),u=t.n(o),c=t(12),s=t.n(c),d=t(26),m=t.n(d),l=t(7),f=t.n(l),v=t(15),p=["formSubmitContainer","formSubmitButton","formErrorServer","formErrorUserInput"],E=Object(i.defineMessages)({submitButton:{id:"store/form.submit.buttonLabel"},userInputError:{id:"store/form.submit.error.userInputError"},serverError:{id:"store/form.submit.error.serverError"}});function b(e){var n=e.label,t=void 0===n?E.submitButton.id:n,i=Object(r.useContext)(v.a),o=i.loading,c=i.userInputError,d=i.serverError,l=m()(p);return a.a.createElement("div",{className:l.formSubmitContainer},a.a.createElement("div",{className:l.formSubmitButton},a.a.createElement(u.a,{type:"submit",isLoading:o},a.a.createElement(f.a,{id:t}))),a.a.createElement("div",{className:l.formErrorUserInput},c&&a.a.createElement(s.a,{type:"error"},a.a.createElement(f.a,{id:E.userInputError.id}))),a.a.createElement("div",{className:l.formErrorServer},d&&a.a.createElement(s.a,{type:"error"},a.a.createElement(f.a,{id:E.serverError.id}))))}},,,function(e,n){e.exports=regeneratorRuntime},function(e,n){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getPublicSchema"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"dataEntity"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"schema"}},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.store-form@0.10.1",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"documentPublicSchema"},arguments:[{kind:"Argument",name:{kind:"Name",value:"dataEntity"},value:{kind:"Variable",name:{kind:"Name",value:"dataEntity"}}},{kind:"Argument",name:{kind:"Name",value:"schema"},value:{kind:"Variable",name:{kind:"Name",value:"schema"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.store-graphql",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"f3722824087d2db9766a00227bb44916dfa425060002028aba80d740d8bb31fe",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"schema"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:334}};t.loc.source={body:'query getPublicSchema($dataEntity: String!, $schema: String!) @context(sender: "vtex.store-form@0.10.1") {\n documentPublicSchema(dataEntity: $dataEntity, schema: $schema) @context(provider: "vtex.store-graphql") @runtimeMeta(hash: "f3722824087d2db9766a00227bb44916dfa425060002028aba80d740d8bb31fe") {\n schema\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var r={};function a(e,n){for(var t=0;t0;){var c=u;u=new Set,c.forEach((function(e){o.has(e)||(o.add(e),(r[e]||new Set).forEach((function(e){u.add(e)})))}))}return o.forEach((function(n){var r=a(e,n);r&&t.definitions.push(r)})),t}(t,"getPublicSchema")},function(e,n){e.exports=__RENDER_8_RUNTIME__},function(e,n){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"createDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"dataEntity"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"document"}},type:{kind:"NamedType",name:{kind:"Name",value:"DocumentInputV2"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"schema"}},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.store-form@0.10.1",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"9a7fad14a6c8d79d3df1d4064732f32b732d3379365246f93502e86f26628f2f",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createDocumentV2"},arguments:[{kind:"Argument",name:{kind:"Name",value:"dataEntity"},value:{kind:"Variable",name:{kind:"Name",value:"dataEntity"}}},{kind:"Argument",name:{kind:"Name",value:"document"},value:{kind:"Variable",name:{kind:"Name",value:"document"}}},{kind:"Argument",name:{kind:"Name",value:"schema"},value:{kind:"Variable",name:{kind:"Name",value:"schema"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.store-graphql",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cacheId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"documentId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:412}};t.loc.source={body:'mutation createDocument($dataEntity: String!, $document: DocumentInputV2, $schema: String) @context(sender: "vtex.store-form@0.10.1") @runtimeMeta(hash: "9a7fad14a6c8d79d3df1d4064732f32b732d3379365246f93502e86f26628f2f") {\n createDocumentV2(dataEntity: $dataEntity, document: $document, schema: $schema) @context(provider: "vtex.store-graphql") {\n cacheId\n id\n href\n documentId\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var r={};function a(e,n){for(var t=0;t0;){var c=u;u=new Set,c.forEach((function(e){o.has(e)||(o.add(e),(r[e]||new Set).forEach((function(e){u.add(e)})))}))}return o.forEach((function(n){var r=a(e,n);r&&t.definitions.push(r)})),t}(t,"createDocument")},,,,,,,,,function(e,n,t){"use strict";t.r(n),function(e){var n=t(3);t.p=Object(n.getPublicPath)("vtex.store-form@0.10.1");var r=Object(n.register)((function(){return t(62)}),e,"vtex.store-form@0.10.1","vtex.store-form@0.x","Form");r.renderHotReload,r.setupHMR}.call(this,t(9)(e))},,,,,,,,,,,,,,,,,,,,function(e,n,t){"use strict";t.r(n);var r=t(0),a=t.n(r),i=t(17),o=t(2),u=t(12),c=t.n(u),s=t(28),d=t(27),m=t(31),l=t.n(m),f=t(21),v=t.n(f),p=t(29),E=t(8),b=t(1),k=t(32),h=t(33),g=t.n(h),S=function(e,n){return"".concat(e,"/").concat(n)},N=function(e,n){return n.errors?e.concat(n.errors):e},y=function(e,n){var t,r,a,i;return(null===(i=null===(a=null===(r=null===(t=null==n?void 0:n.extensions)||void 0===t?void 0:t.exception)||void 0===r?void 0:r.response)||void 0===a?void 0:a.data)||void 0===i?void 0:i.errors)?e.concat(n.extensions.exception.response.data.errors.reduce(N,[])):e},_=function(e,n,t){e[n]?e[n].push(t):e[n]=[t]},x=function(e,n){var t=S(S(e.schemaId,"properties"),n);return _(e.nodes,t,b.b.required),{nodes:e.nodes,schemaId:e.schemaId}},O=function(e,n){switch(n.ErrorType){case"required":Array.isArray(n.Value)&&(e=n.Value.reduce(x,{nodes:e,schemaId:n.SchemaId}).nodes);break;case"format":case"type":_(e,n.SchemaId,b.b.pattern);break;case"maximum":_(e,n.SchemaId,b.b.maxValue);break;case"minimum":_(e,n.SchemaId,b.b.minValue);break;case"enum":_(e,n.SchemaId,b.b.notInEnum);break;case"minLength":_(e,n.SchemaId,b.b.minLength);break;case"maxLength":_(e,n.SchemaId,b.b.maxLength)}return e},R=t(15),D=function(e){var n=e.data,t=e.properties,r=Object.assign({},n);return Object.entries(t).forEach((function(e){var n,t=Object(E.a)(e,2),a=t[0];"date-time"===(null===(n=t[1])||void 0===n?void 0:n.format)&&r[a]&&(r[a]=new Date(r[a]).toISOString())})),r};function I(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return T(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return T(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){var e=t.next();return o=e.done,e},e:function(e){u=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(u)throw i}}}}function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t