enqueueScripts([function(){ !function(e){function t(t){for(var n,u,a=t[0],c=t[1],l=t[2],d=0,s=[];de.length)&&(t=e.length);for(var r=0,n=new Array(t);r0),(t=document.querySelectorAll(".vtex-login-2-x-portalContainer"))&&t.forEach((function(t){t.style.display="none"})),(e=document.querySelectorAll(".vtex-minicart-2-x-popupWrapper"))&&e.forEach((function(t){t.style.display="none"}))}return window.addEventListener("scroll",t),function(){return window.removeEventListener("scroll",t)}}),[]),window.addEventListener("scroll",(function(){var t,e=document.querySelector(".vtex-flex-layout-0-x-flexRow--contentSearch"),c=document.querySelector("body");t=e.offsetHeight<300?e.offsetHeight-50:e.offsetHeight-100;var o=c.offsetHeight-1150,i=window.scrollY,n=document.querySelector(".vtex-flex-layout-0-x-flexCol--filterCol");e&&(i>=t&&i<=o?(n.classList.add(d),n.style.marginTop="".concat(100,"px")):(n.classList.remove(d),n.style.marginTop="0"))}));var x={display:"none"};return c?n.a.createElement("div",{style:x,className:"\n ".concat(u," ").concat(k?y:"","\n ")},s):n.a.createElement(i.Fragment,null,n.a.createElement("div",{style:x,className:"\n ".concat(u," ").concat(k?"":f,"\n ")},s))}}],[[8,"common"]]]); },function(){ !function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=3)}([function(e,t){e.exports=React},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPublicPath=t.register=void 0;var n="__RENDER_8_RUNTIME__",r="__RENDER_8_COMPONENTS__",a=!("undefined"==typeof window||!window.document);a&&!window.global&&(window.global=window),window[r]=window[r]||{},t.register=function(e,t,o,a,i){var l="".concat(o,"/").concat(i),c="".concat(a,"/").concat(i),u=function(){return function(e,t){try{var o=e();return o.__esModule?o.default:o.default||o}catch(e){throw new Error("An error happened while requiring the app ".concat(t,", please check your app's code.\\n").concat(e.stack))}}(e,l)};if(window[n]&&window[n].registerComponent){var s=!!window.__RENDER_LAZY__;window[n].registerComponent(t,s?u:u(),o,i,s)}else{var d=u();window[n]&&window[n].withHMR?window[r][l]=window[r][c]=window[n].withHMR(t,d):window[r][l]=window[r][c]=d}return{}},t.getPublicPath=function(e){var t=window.__hostname__,o="/_v/public/assets/v1/published/";return a&&window.__RUNTIME__&&(t=__RUNTIME__.assetServerPublishedHost||window.location.hostname,o=__RUNTIME__.assetServerPublishedPath||"/_v/public/assets/v1/published/"),"https://"+t+o+"".concat(e,"/public/react/")}},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},function(e,t,o){"use strict";o.r(t),function(e){var t=o(1);o.p=Object(t.getPublicPath)("pilatos21.modal-component@0.0.1");var n=Object(t.register)((function(){return o(6)}),e,"pilatos21.modal-component@0.0.1","pilatos21.modal-component@0.x","ModalComponent");n.renderHotReload,n.setupHMR}.call(this,o(4)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,o){e.exports={estrategiaModalDcto:"pilatos21-modal-component-0-x-estrategiaModalDcto",estrategiaModalDctoClose:"pilatos21-modal-component-0-x-estrategiaModalDctoClose"}},function(e,t,o){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o=36e5&&d(!0):d(!0)};e();var t=setInterval(e,1e3);return function(){return clearInterval(t)}}),[]),Object(a.useEffect)((function(){if("/"===window.location.pathname){var e=function(){window.scrollY>100?m(!0):m(!1)};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}return m(!0),function(){}}),[]),s&&p&&i.a.createElement("div",{className:w.estrategiaModalDcto},i.a.createElement("button",{className:w.estrategiaModalDctoClose,onClick:function(){d(!1),localStorage.setItem("modalclosed",Date.now().toString())}},"X"),i.a.createElement("a",{href:n},i.a.createElement("img",{src:t,alt:"Modal Desktop",className:w.desktopImageModal}),i.a.createElement("img",{src:o,alt:"Modal Mob",className:w.mobileImageModal})))}s.schema={title:"Custom modal dcto",type:"object",properties:{imageDesktop:{title:"Image modal Desktop",default:"",type:"string",widget:{"ui:widget":"image-uploader"}},imageMobile:{title:"Image modal Mobile",default:"",type:"string",widget:{"ui:widget":"image-uploader"}},linkModal:{type:"string",title:"Link modal"}}};t.default=s}]); },function(){ !function(e){function n(n){for(var r,u,c=n[0],a=n[1],l=n[2],f=0,p=[];fe.length)&&(t=e.length);for(var r=0,n=new Array(t);r=n||e<0||b&&t-c>=o}function x(){var t=v();if(j(t))return _(t);a=setTimeout(x,function(t){var e=n-(t-f);return b?s(e,o-(t-c)):e}(t))}function _(t){return a=void 0,y&&i?m(t):(i=r=void 0,u)}function h(){var t=v(),e=j(t);if(i=arguments,r=this,f=t,e){if(void 0===a)return w(f);if(b)return a=setTimeout(x,n),m(f)}return void 0===a&&(a=setTimeout(x,n)),u}return n=g(n)||0,d(e)&&(l=!!e.leading,o=(b="maxWait"in e)?p(g(e.maxWait)||0,n):o,y="trailing"in e?!!e.trailing:y),h.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=f=r=a=void 0},h.flush=function(){return void 0===a?u:_(v())},h}function d(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function g(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(d(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=d(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(e,"");var a=r.test(t);return a||o.test(t)?u(t.slice(2),a?2:8):i.test(t)?NaN:+t}t.exports=function(t,n,e){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return d(e)&&(i="leading"in e?!!e.leading:i,r="trailing"in e?!!e.trailing:r),b(t,n,{leading:i,maxWait:n,trailing:r})}}}]); },function(){ (window.webpackJsonpvtex_react_portal_0_4_1=window.webpackJsonpvtex_react_portal_0_4_1||[]).push([["Overlay"],[function(e,t){e.exports=React},,function(e,t){e.exports=ReactDOM},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},function(e,t,n){"use strict";n.r(t);var r=n(6),a=n(0),i=n.n(a),o=n(2),c=n.n(o),s=n(3),l=n.n(s),u=["portalContainer","portalWrapper"],d=function(e){var t=e.children,n=e.target,r=e.zIndex,a=void 0===r?2147483647:r,o=e.cover,s=l()(u);return n||(n=window&&window.document&&window.document.body),n?c.a.createPortal(i.a.createElement("div",{className:s.portalContainer,style:Object.assign(Object.assign({position:"fixed",top:0,left:0},o?{bottom:0,right:0,pointerEvents:"none"}:{}),{zIndex:a})},i.a.createElement("div",{className:s.portalWrapper,style:{pointerEvents:"auto"}},t)),n):null},v=n(5),f=n.n(v),w=function(e,t){switch(e){case"left":return t.left;case"right":return t.right;case"center":return(t.right+t.left)/2;default:return t.left}},p=function(e){switch(e){case"left":return"justify-start";case"right":return"justify-end";case"center":return"justify-center";default:return"justify-start"}};t.default=function(e){var t=e.children,n=e.fullWindow,o=e.target,c=e.alignment,s=void 0===c?"left":c,l=Object(a.useRef)(null),u=Object(a.useState)(),v=Object(r.a)(u,2),m=v[0],g=v[1],E=Object(a.useCallback)(f()((function(){if(!n&&l.current){var e=l.current.getBoundingClientRect();g({x:w(s,e),y:e.top})}}),200,{leading:!1}),[s,n]);return Object(a.useEffect)((function(){return E(),window&&(window.addEventListener("scroll",E),window.addEventListener("load",E),window.addEventListener("resize",E),window.addEventListener("visibilitychange",E)),function(){window&&(window.removeEventListener("scroll",E),window.removeEventListener("load",E),window.removeEventListener("resize",E),window.removeEventListener("visibilitychange",E))}}),[s,n,E,t]),n?i.a.createElement(d,{target:o,cover:!0},t):i.a.createElement("div",{ref:l,style:{width:"auto",height:1,marginTop:-1}},m&&i.a.createElement(d,{target:o},i.a.createElement("div",{className:"flex ".concat(p(s)),style:{position:"absolute",left:m.x,top:m.y}},i.a.createElement("div",{className:"absolute"},t))))}},,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(1);n.p=Object(t.getPublicPath)("vtex.react-portal@0.4.1");var r=Object(t.register)((function(){return n(4)}),e,"vtex.react-portal@0.4.1","vtex.react-portal@0.x","Overlay");r.renderHotReload,r.setupHMR}.call(this,n(7)(e))}],[[8,"common",0]]]); },function(){ !function(e){function t(t){for(var n,a,u=t[0],c=t[1],l=t[2],s=0,d=[];se.length)&&(t=e.length);for(var r=0,n=new Array(t);r0;){var s=r;r=new Set,s.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=d(e,n);a&&i.definitions.push(a)})),i}(i,"addItem")}}]); },function(){ (window.webpackJsonpvtex_store_resources_0_101_2=window.webpackJsonpvtex_store_resources_0_101_2||[]).push([["MutationAddToCart"],{46:function(e,t,r){"use strict";r.r(t),function(e){var t=r(0);r.p=Object(t.getPublicPath)("vtex.store-resources@0.101.2");var o=Object(t.register)((function(){return r(47)}),e,"vtex.store-resources@0.101.2","vtex.store-resources@0.x","MutationAddToCart");o.renderHotReload,o.setupHMR}.call(this,r(2)(e))},47:function(e,t,r){"use strict";r.r(t);var o=r(14),s=r.n(o);t.default=s.a}},[[46,"common",0]]]); },function(){ (window.webpackJsonpvtex_store_resources_0_101_2=window.webpackJsonpvtex_store_resources_0_101_2||[]).push([[1],{15:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateItems"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderFormId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"items"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"OrderFormItemInput"}}},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.101.2",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"e9aad89b443b514df7702214f16eadac972100b5f5d981d2fdee442a0d4545ff",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateItems"},arguments:[{kind:"Argument",name:{kind:"Name",value:"orderFormId"},value:{kind:"Variable",name:{kind:"Name",value:"orderFormId"}}},{kind:"Argument",name:{kind:"Name",value:"items"},value:{kind:"Variable",name:{kind:"Name",value:"items"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cacheId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"orderFormId"},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:"seller"},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:"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:"__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:"__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:"__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:2787}};i.loc.source={body:'mutation updateItems($orderFormId: String, $items: [OrderFormItemInput]) @context(sender: "vtex.store-resources@0.101.2") @runtimeMeta(hash: "e9aad89b443b514df7702214f16eadac972100b5f5d981d2fdee442a0d4545ff") {\n updateItems(orderFormId: $orderFormId, items: $items) {\n cacheId\n orderFormId\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 seller\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 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 __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 __typename\n }\n __typename\n }\n clientProfileData {\n email\n firstName\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 r=s;s=new Set,r.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,"updateItems")}}]); },function(){ (window.webpackJsonpvtex_store_resources_0_101_2=window.webpackJsonpvtex_store_resources_0_101_2||[]).push([["MutationUpdateItems"],{48:function(e,t,r){"use strict";r.r(t),function(e){var t=r(0);r.p=Object(t.getPublicPath)("vtex.store-resources@0.101.2");var s=Object(t.register)((function(){return r(49)}),e,"vtex.store-resources@0.101.2","vtex.store-resources@0.x","MutationUpdateItems");s.renderHotReload,s.setupHMR}.call(this,r(2)(e))},49:function(e,t,r){"use strict";r.r(t);var s=r(15),o=r.n(s);t.default=o.a}},[[48,"common",1]]]); },function(){ (window.webpackJsonpvtex_store_resources_0_101_2=window.webpackJsonpvtex_store_resources_0_101_2||[]).push([["MutationUpdateOrderFormCheckin"],{4:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateOrderFormCheckin"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderFormId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"checkin"}},type:{kind:"NamedType",name:{kind:"Name",value:"OrderFormCheckinInput"}},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.101.2",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"4f6d870f4f74e625bff440795e57791d479172b93fcfb78b503c18980ae0d047",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateOrderFormCheckin"},arguments:[{kind:"Argument",name:{kind:"Name",value:"orderFormId"},value:{kind:"Variable",name:{kind:"Name",value:"orderFormId"}}},{kind:"Argument",name:{kind:"Name",value:"checkin"},value:{kind:"Variable",name:{kind:"Name",value:"checkin"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isCheckedIn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"checkedInPickupPointId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shippingData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"selectedAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"receiverName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"complement"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"neighborhood"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"geoCoordinates"},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:"__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:702}};i.loc.source={body:'mutation updateOrderFormCheckin($orderFormId: String, $checkin: OrderFormCheckinInput) @context(sender: "vtex.store-resources@0.101.2") @runtimeMeta(hash: "4f6d870f4f74e625bff440795e57791d479172b93fcfb78b503c18980ae0d047") {\n updateOrderFormCheckin(orderFormId: $orderFormId, checkin: $checkin) {\n isCheckedIn\n checkedInPickupPointId\n shippingData {\n selectedAddresses {\n id\n street\n number\n receiverName\n complement\n neighborhood\n country\n state\n geoCoordinates\n postalCode\n city\n reference\n addressName\n addressType\n __typename\n }\n __typename\n }\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 m=s;s=new Set,m.forEach((function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach((function(e){s.add(e)})))}))}return r.forEach((function(n){var a=d(e,n);a&&i.definitions.push(a)})),i}(i,"updateOrderFormCheckin")},50:function(e,n,i){"use strict";i.r(n),function(e){var n=i(0);i.p=Object(n.getPublicPath)("vtex.store-resources@0.101.2");var a=Object(n.register)((function(){return i(51)}),e,"vtex.store-resources@0.101.2","vtex.store-resources@0.x","MutationUpdateOrderFormCheckin");a.renderHotReload,a.setupHMR}.call(this,i(2)(e))},51:function(e,n,i){"use strict";i.r(n);var a=i(4),d=i.n(a);n.default=d.a}},[[50,"common"]]]); },function(){ (window.webpackJsonpvtex_store_resources_0_101_2=window.webpackJsonpvtex_store_resources_0_101_2||[]).push([["MutationUpdateOrderFormProfile"],{5:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateOrderFormProfile"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderFormId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NamedType",name:{kind:"Name",value:"OrderFormProfileInput"}},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.101.2",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"d708938c56e09315adf2a9f1bfef969b43f24573f04a5ec4710d02af46bc16a1",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateOrderFormProfile"},arguments:[{kind:"Argument",name:{kind:"Name",value:"orderFormId"},value:{kind:"Variable",name:{kind:"Name",value:"orderFormId"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"orderFormId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:332}};i.loc.source={body:'mutation updateOrderFormProfile($orderFormId: String, $fields: OrderFormProfileInput) @context(sender: "vtex.store-resources@0.101.2") @runtimeMeta(hash: "d708938c56e09315adf2a9f1bfef969b43f24573f04a5ec4710d02af46bc16a1") {\n updateOrderFormProfile(orderFormId: $orderFormId, fields: $fields) {\n orderFormId\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var r={};function a(e,n){for(var i=0;i0;){var u=d;d=new Set,u.forEach((function(e){o.has(e)||(o.add(e),(r[e]||new Set).forEach((function(e){d.add(e)})))}))}return o.forEach((function(n){var r=a(e,n);r&&i.definitions.push(r)})),i}(i,"updateOrderFormProfile")},52:function(e,n,i){"use strict";i.r(n),function(e){var n=i(0);i.p=Object(n.getPublicPath)("vtex.store-resources@0.101.2");var r=Object(n.register)((function(){return i(53)}),e,"vtex.store-resources@0.101.2","vtex.store-resources@0.x","MutationUpdateOrderFormProfile");r.renderHotReload,r.setupHMR}.call(this,i(2)(e))},53:function(e,n,i){"use strict";i.r(n);var r=i(5),a=i.n(r);n.default=a.a}},[[52,"common"]]]); },function(){ (window.webpackJsonpvtex_store_resources_0_101_2=window.webpackJsonpvtex_store_resources_0_101_2||[]).push([["MutationUpdateOrderFormShipping"],{54:function(e,n,i){"use strict";i.r(n),function(e){var n=i(0);i.p=Object(n.getPublicPath)("vtex.store-resources@0.101.2");var a=Object(n.register)((function(){return i(55)}),e,"vtex.store-resources@0.101.2","vtex.store-resources@0.x","MutationUpdateOrderFormShipping");a.renderHotReload,a.setupHMR}.call(this,i(2)(e))},55:function(e,n,i){"use strict";i.r(n);var a=i(6),d=i.n(a);n.default=d.a},6:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateOrderFormShipping"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderFormId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"address"}},type:{kind:"NamedType",name:{kind:"Name",value:"OrderFormAddressInput"}},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.101.2",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"19dd6d2a72b6185d2571f337b5a4ccbc3fa48377a7b015dc015bd623103c5ece",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateOrderFormShipping"},arguments:[{kind:"Argument",name:{kind:"Name",value:"orderFormId"},value:{kind:"Variable",name:{kind:"Name",value:"orderFormId"}}},{kind:"Argument",name:{kind:"Name",value:"address"},value:{kind:"Variable",name:{kind:"Name",value:"address"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"orderFormId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCheckedIn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"checkedInPickupPointId"},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:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1009}};i.loc.source={body:'mutation updateOrderFormShipping($orderFormId: String, $address: OrderFormAddressInput) @context(sender: "vtex.store-resources@0.101.2") @runtimeMeta(hash: "19dd6d2a72b6185d2571f337b5a4ccbc3fa48377a7b015dc015bd623103c5ece") {\n updateOrderFormShipping(orderFormId: $orderFormId, address: $address) {\n orderFormId\n isCheckedIn\n checkedInPickupPointId\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 __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function d(e,n){for(var i=0;i0;){var m=s;s=new Set,m.forEach((function(e){t.has(e)||(t.add(e),(a[e]||new Set).forEach((function(e){s.add(e)})))}))}return t.forEach((function(n){var a=d(e,n);a&&i.definitions.push(a)})),i}(i,"updateOrderFormShipping")}},[[54,"common"]]]); },function(){ (window.webpackJsonpvtex_store_resources_0_101_2=window.webpackJsonpvtex_store_resources_0_101_2||[]).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){r.has(e)||(r.add(e),(a[e]||new Set).forEach((function(e){s.add(e)})))}))}return r.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.101.2");var a=Object(n.register)((function(){return t(63)}),e,"vtex.store-resources@0.101.2","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),c=t(3),r=t.n(c),s=t(26),o=t(7),d=t(31),u=t(32),l=t.n(u),m=r.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,u=void 0===o?{}:o,l=u.manifest,v=u.iOSIcons,f=u.splashes,p=u.pwaSettings,k=u.loading,b=u.error,h=Object(d.usePixel)().push,g=Object(s.useRuntime)().workspace,S=Object(c.useRef)(null),_=Object(c.useRef)(!1),N=Object(c.useState)(!1),w=Object(i.a)(N,2),O=w[0],x=w[1],E=Object(c.useState)(!1),P=Object(i.a)(E,2),D=P[0],j=P[1];Object(c.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(c.useEffect)((function(){var e=localStorage.getItem("webAppInstalled");e&&x(e);var n=localStorage.getItem("webAppInstallDismissed");n&&j(n)}),[]);var y=Object(c.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(c.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 r.a.createElement(m.Provider,{value:F},A&&r.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)(v?v.map((function(e){return{rel:"apple-touch-icon",sizes:e.sizes,href:"".concat(n).concat(e.src)}})):[]),Object(a.a)(f?f.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(c.useContext)(m)}}},7:function(e,n){e.exports=ReactApollo}},[[62,"common"]]]); }], document.currentScript.dataset.index)