enqueueScripts([function(){ (window.webpackJsonpvtex_order_manager_0_12_0=window.webpackJsonpvtex_order_manager_0_12_0||[]).push([["OrderForm"],[function(e,r){e.exports=React},,function(e,r,t){"use strict";var u;t.r(r),t.d(r,"QueueStatus",(function(){return u})),t.d(r,"TASK_CANCELLED_CODE",(function(){return n})),t.d(r,"UNSYNC_ORDER_FORM_VALUE",(function(){return o})),t.d(r,"DEFAULT_ORDER_FORM",(function(){return a})),function(e){e.PENDING="Pending",e.FULFILLED="Fulfilled"}(u||(u={}));var n="TASK_CANCELLED",o=-1,a={id:"default-order-form",items:[],value:o,totalizers:[],marketingData:{},canEditData:!1,loggedIn:!1,paymentData:{isValid:!1,installmentOptions:[],paymentSystems:[],payments:[],availableAccounts:[]},messages:{couponMessages:[],generalMessages:[]},shipping:{isValid:!1,deliveryOptions:[],pickupOptions:[]}};r.default={QueueStatus:u,TASK_CANCELLED_CODE:n}},,function(e,r,t){"use strict";t.r(r);var u=t(1);t.d(r,"OrderQueueProvider",(function(){return u.b})),t.d(r,"useOrderQueue",(function(){return u.e})),t.d(r,"useQueueStatus",(function(){return u.f}));var n=t(2);t.d(r,"QueueStatus",(function(){return n.QueueStatus})),r.default={OrderQueueProvider:u.b,useOrderQueue:u.e,useQueueStatus:u.f,QueueStatus:n.QueueStatus}},,,function(e,r){e.exports=ReactApollo},,function(e,r){e.exports=__RENDER_8_COMPONENTS__["vtex.checkout-resources@0.x/QueryOrderForm"]},function(e,r){e.exports=__RENDER_8_COMPONENTS__["vtex.checkout-resources@0.x/MutationClearOrderFormMessages"]},function(e,r){e.exports=__RENDER_8_RUNTIME__},function(e,r){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ToastContext"]},function(e,r){e.exports=__RENDER_8_COMPONENTS__["vtex.checkout-splunk@0.x/useSplunk"]},,function(e,r,t){"use strict";t.r(r),function(e){var r=t(3);t.p=Object(r.getPublicPath)("vtex.order-manager@0.12.0");var u=Object(r.register)((function(){return t(16)}),e,"vtex.order-manager@0.12.0","vtex.order-manager@0.x","OrderForm");u.renderHotReload,u.setupHMR}.call(this,t(5)(e))},function(e,r,t){"use strict";t.r(r),t.d(r,"OrderFormProvider",(function(){return b}));var u=t(6),n=t.n(u),o=t(8),a=t(14),s=t(0),c=t(7),i=t(9),d=t.n(i),f=t(10),l=t.n(f),O=t(11),_=t(12),p=t.n(_),v=t(1);t.d(r,"useOrderForm",(function(){return v.d}));var m=t(13),E=t.n(m),g=t(4);var b=Object(v.c)({defaultOrderForm:v.a,useGetOrderForm:function(e){var r=e.setOrderForm,t=Object(O.useRuntime)(),u=t.page,n=t.query,o=u.includes("checkout"),a=Object(s.useRef)({refreshOutdatedData:o,orderFormId:null==n?void 0:n.orderFormId}),i=Object(c.useQuery)(d.a,{ssr:!1,fetchPolicy:"no-cache",variables:a.current}),f=i.data,l=i.loading,_=i.error,p=i.refetch,v=Object(g.useOrderQueue)().enqueue,m=Object(g.useQueueStatus)();return Object(s.useEffect)((function(){o&&v((function(){return p({refreshOutdatedData:!0}).then((function(e){return e.data.orderForm}))})).then((function(e){m.current===g.QueueStatus.FULFILLED&&r(e)}))}),[v,p,o,r,m]),Object(s.useMemo)((function(){return{data:f,loading:l,error:_}}),[f,l,_])},useClearOrderFormMessages:function(){var e=Object(c.useMutation)(l.a),r=Object(a.a)(e,1)[0];return Object(s.useCallback)(function(){var e=Object(o.a)(n.a.mark((function e(t){var u,o;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({variables:t});case 2:return u=e.sent,o=u.data,e.abrupt("return",{data:null==o?void 0:o.clearOrderFormMessages});case 5:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),[r])},useToast:function(){return Object(s.useContext)(p.a)},useLogger:function(){var e=E()().logSplunk;return{log:Object(s.useCallback)((function(r){var t=r.type,u=r.level,n=r.event,o=r.workflowType,a=r.workflowInstance;e({type:t,level:u,event:n,workflowType:o,workflowInstance:a})}),[e])}}}).OrderFormProvider;r.default={OrderFormProvider:b,useOrderForm:v.d}},function(e,r){e.exports=regeneratorRuntime}],[[15,"common",0]]]); },function(){ (window.webpackJsonpvtex_order_manager_0_12_0=window.webpackJsonpvtex_order_manager_0_12_0||[]).push([["OrderQueue"],{0:function(e,t){e.exports=React},2:function(e,t,u){"use strict";var r;u.r(t),u.d(t,"QueueStatus",(function(){return r})),u.d(t,"TASK_CANCELLED_CODE",(function(){return n})),u.d(t,"UNSYNC_ORDER_FORM_VALUE",(function(){return a})),u.d(t,"DEFAULT_ORDER_FORM",(function(){return s})),function(e){e.PENDING="Pending",e.FULFILLED="Fulfilled"}(r||(r={}));var n="TASK_CANCELLED",a=-1,s={id:"default-order-form",items:[],value:a,totalizers:[],marketingData:{},canEditData:!1,loggedIn:!1,paymentData:{isValid:!1,installmentOptions:[],paymentSystems:[],payments:[],availableAccounts:[]},messages:{couponMessages:[],generalMessages:[]},shipping:{isValid:!1,deliveryOptions:[],pickupOptions:[]}};t.default={QueueStatus:r,TASK_CANCELLED_CODE:n}},21:function(e,t,u){"use strict";u.r(t),function(e){var t=u(3);u.p=Object(t.getPublicPath)("vtex.order-manager@0.12.0");var r=Object(t.register)((function(){return u(4)}),e,"vtex.order-manager@0.12.0","vtex.order-manager@0.x","OrderQueue");r.renderHotReload,r.setupHMR}.call(this,u(5)(e))},4:function(e,t,u){"use strict";u.r(t);var r=u(1);u.d(t,"OrderQueueProvider",(function(){return r.b})),u.d(t,"useOrderQueue",(function(){return r.e})),u.d(t,"useQueueStatus",(function(){return r.f}));var n=u(2);u.d(t,"QueueStatus",(function(){return n.QueueStatus})),t.default={OrderQueueProvider:r.b,useOrderQueue:r.e,useQueueStatus:r.f,QueueStatus:n.QueueStatus}}},[[21,"common",0]]]); },function(){ !function(e){function n(n){for(var r,c,u=n[0],a=n[1],l=n[2],w=0,f=[];w=r&&a<=o},o=function(t){return new Date=r&&a<=o},o=function(t){return new Datet.length)&&(e=t.length);for(var n=0,r=new Array(e);n0;){var o=s;s=new Set,o.forEach((function(e){d.has(e)||(d.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return d.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}(a,"AverageRatingByProductId")},22:function(e,n){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AppSettings"},variableDefinitions:[],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.reviews-and-ratings@3.20.1",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"appSettings"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.reviews-and-ratings",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"727658d38126b8ac073e45b06008ef6d58de77b44d3e958987d69f2c87f0f64c",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allowAnonymousReviews"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"requireApproval"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"useLocation"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultOpen"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultStarsRating"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultOpenCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"showGraph"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displaySummaryIfNone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayInlineIfNone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displaySummaryTotalReviews"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displaySummaryAddButton"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:487}};a.loc.source={body:'query AppSettings @context(sender: "vtex.reviews-and-ratings@3.20.1") {\n appSettings @context(provider: "vtex.reviews-and-ratings") @runtimeMeta(hash: "727658d38126b8ac073e45b06008ef6d58de77b44d3e958987d69f2c87f0f64c") {\n allowAnonymousReviews\n requireApproval\n useLocation\n defaultOpen\n defaultStarsRating\n defaultOpenCount\n showGraph\n displaySummaryIfNone\n displayInlineIfNone\n displaySummaryTotalReviews\n displaySummaryAddButton\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=s;s=new Set,o.forEach((function(e){d.has(e)||(d.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return d.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}(a,"AppSettings")},3:function(e,n,a){e.exports={stars:"vtex-reviews-and-ratings-3-x-stars",starpicker:"vtex-reviews-and-ratings-3-x-starpicker",star:"vtex-reviews-and-ratings-3-x-star","star--filled":"vtex-reviews-and-ratings-3-x-star--filled","star--empty":"vtex-reviews-and-ratings-3-x-star--empty",graphContent:"vtex-reviews-and-ratings-3-x-graphContent",graphContainer:"vtex-reviews-and-ratings-3-x-graphContainer",graphText:"vtex-reviews-and-ratings-3-x-graphText",graphTextLabel:"vtex-reviews-and-ratings-3-x-graphTextLabel",graphBarContainer:"vtex-reviews-and-ratings-3-x-graphBarContainer",graphBar:"vtex-reviews-and-ratings-3-x-graphBar",graphBarPercent:"vtex-reviews-and-ratings-3-x-graphBarPercent"}}}]); },function(){ (window.webpackJsonpvtex_reviews_and_ratings_3_20_1=window.webpackJsonpvtex_reviews_and_ratings_3_20_1||[]).push([["RatingSummary"],{0:function(e,t){e.exports=React},1:function(e,t){e.exports=ReactIntl},100:function(e,t,n){"use strict";n.r(t),function(e){var t=n(5);n.p=Object(t.getPublicPath)("vtex.reviews-and-ratings@3.20.1");var a=Object(t.register)((function(){return n(101)}),e,"vtex.reviews-and-ratings@3.20.1","vtex.reviews-and-ratings@3.x","RatingSummary");a.renderHotReload,a.setupHMR}.call(this,n(17)(e))},101:function(e,t,n){"use strict";n.r(t);var a=n(2),i=n(0),r=n.n(i),o=n(29),s=n(4),c=n(12),u=n.n(c),l=n(9),d=n.n(l),v=n(1),m=n(8),g=n(7),f=n.n(g),p=n(22),w=n.n(p),_=n(13),E=n(28),h=n.n(E),y=n(21),k=n.n(y),S=n(30),N=n(23),R={total:0,average:0,hasTotal:!1,hasAverage:!1,settings:{defaultOpen:!1,defaultStarsRating:5,defaultOpenCount:0,allowAnonymousReviews:!1,requireApproval:!0,useLocation:!1,showGraph:!1,displaySummaryIfNone:!1,displayInlineIfNone:!1,displaySummaryTotalReviews:!0,displaySummaryAddButton:!1},userAuthenticated:!1},b=function(e,t){switch(t.type){case"SET_TOTAL":return Object.assign(Object.assign({},e),{total:t.args.total,hasTotal:!0});case"SET_AVERAGE":return Object.assign(Object.assign({},e),{average:t.args.average,hasAverage:!0});case"SET_SETTINGS":return Object.assign(Object.assign({},e),{settings:t.args.settings});case"SET_AUTHENTICATED":return Object.assign(Object.assign({},e),{userAuthenticated:t.args.authenticated});default:return e}},T=["summaryContainer","loginLink","summaryButtonContainer","summaryTotalReviews"],O=Object(v.defineMessages)({loadingReviews:{id:"store/reviews.list.loadingReviews",defaultMessage:"Loading reviews..."}});t.default=function(){var e,t,n=Object(v.useIntl)(),c=Object(s.useApolloClient)(),l=d()(T),g=(null!==(e=u()())&&void 0!==e?e:{}).product,p=null!=g?g:{},E=p.productId,y=p.productName,I=p.linkText,x=Object(i.useReducer)(b,R),A=Object(a.a)(x,2),j=A[0],P=A[1],D=(m.canUseDOM?{url:window.location.pathname+window.location.hash,pathName:window.location.pathname}:{url:global.__pathname__,pathName:global.__pathname__}).url,C=Object(s.useQuery)(h.a,{variables:{productId:E},skip:!E,fetchPolicy:"network-only",ssr:!1}),M=C.data,B=C.loading,U=C.refetch,V=Object(s.useQuery)(k.a,{variables:{productId:E},skip:!E,fetchPolicy:"network-only",ssr:!1}),L=V.data,q=V.loading,H=V.refetch;Object(i.useEffect)((function(){c.query({query:w.a}).then((function(e){var t=e.data.appSettings;P({type:"SET_SETTINGS",args:{settings:t}})}))}),[c]),Object(i.useEffect)((function(){if(!B&&M){var e=M.totalReviewsByProductId;P({type:"SET_TOTAL",args:{total:e}})}}),[M,B,U]),Object(i.useEffect)((function(){if(!q&&L){var e=L.averageRatingByProductId.average;P({type:"SET_AVERAGE",args:{average:e}})}}),[L,q,H]),Object(i.useEffect)((function(){var e=function(){U(),H()};return N.a.on("reviewSaved",e),window.__RENDER_8_SESSION__.sessionPromise.then((function(e){var t,n,a=e.response;if(a&&a.namespaces){var i=a.namespaces;(null===(n=null===(t=null==i?void 0:i.authentication)||void 0===t?void 0:t.storeUserId)||void 0===n?void 0:n.value)&&P({type:"SET_AUTHENTICATED",args:{authenticated:!0}})}})),function(){return N.a.remove("reviewSaved",e)}}),[U,H]);var F=Object(S.a)();return r.a.createElement("div",{className:"".concat(l.summaryContainer," review-summary mw8 center")},E&&j.hasTotal&&j.hasAverage?0!==j.total||j.settings.displaySummaryIfNone?r.a.createElement(i.Fragment,null,j.total>0&&r.a.createElement(o.Helmet,null,r.a.createElement("script",{type:"application/ld+json"},JSON.stringify({"@context":"http://schema.org","@type":"Product","@id":"".concat(F,"/").concat(I,"/p"),aggregateRating:{"@type":"AggregateRating",ratingValue:j.average.toString(),reviewCount:j.total.toString()},name:y}))),r.a.createElement("span",{className:"t-heading-4 v-mid"},r.a.createElement(_.a,{rating:j.average}))," ",j.settings.displaySummaryTotalReviews?r.a.createElement("span",{className:"".concat(l.summaryTotalReviews," review__rating--count dib v-mid")},"(",j.total,")"):null,j.settings.displaySummaryAddButton?(null===(t=j.settings)||void 0===t?void 0:t.allowAnonymousReviews)||j.settings&&!j.settings.allowAnonymousReviews&&j.userAuthenticated?r.a.createElement("div",{className:"".concat(l.summaryButtonContainer)},r.a.createElement(f.a,{onClick:function(){var e;(e=document.getElementById("reviews-main-container"))&&e.scrollIntoView()}},r.a.createElement(v.FormattedMessage,{id:"store/reviews.list.writeReview"}))):r.a.createElement("div",{className:"".concat(l.summaryButtonContainer)},r.a.createElement(m.Link,{page:"store.login",query:"returnUrl=".concat(encodeURIComponent(D)),className:"".concat(l.loginLink," h1 w2 tc flex items-center w-100-s h-100-s pa4-s")},r.a.createElement(v.FormattedMessage,{id:"store/reviews.list.login"}))):null):null:r.a.createElement(i.Fragment,null,n.formatMessage(O.loadingReviews)))}},12:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},23:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a={on:function(e,t){document.addEventListener(e,(function(e){return t(e.detail)}))},dispatch:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;document.dispatchEvent(new CustomEvent(e,{detail:t}))},remove:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;document.removeEventListener(e,t)}}},28:function(e,t){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TotalReviewsByProductId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productId"}},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.reviews-and-ratings@3.20.1",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalReviewsByProductId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"productId"},value:{kind:"Variable",name:{kind:"Name",value:"productId"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.reviews-and-ratings",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"a626a91c1e3cfc874e72632c0768c5033720c1f322a01562a4ea5d0191d4179b",block:!1}}]}]}]}}],loc:{start:0,end:290}};n.loc.source={body:'query TotalReviewsByProductId($productId: String!) @context(sender: "vtex.reviews-and-ratings@3.20.1") {\n totalReviewsByProductId(productId: $productId) @context(provider: "vtex.reviews-and-ratings") @runtimeMeta(hash: "a626a91c1e3cfc874e72632c0768c5033720c1f322a01562a4ea5d0191d4179b")\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){o.has(e)||(o.add(e),(a[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var a=i(e,t);a&&n.definitions.push(a)})),n}(n,"TotalReviewsByProductId")},29:function(e,t){e.exports=ReactHelmet},30:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(8),i=function(){var e=a.canUseDOM?window.location.hostname:global.__hostname__,t=a.canUseDOM?window.__RUNTIME__.rootPath:global.__RUNTIME__.rootPath;return"".concat("https","://").concat(e).concat(null!=t?t:"")}},4:function(e,t){e.exports=ReactApollo},7:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Button"]},8:function(e,t){e.exports=__RENDER_8_RUNTIME__},9:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]}},[[100,"common",0]]]); },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);re?e:t},S=function(t,e){var n=parseInt(t,10);return Number.isNaN(n)?1:q(parseInt(t,10),e)},f=["quantitySelectorDropdownMobileContainer","quantitySelectorDropdownContainer","quantitySelectorInputMobileContainer","quantitySelectorInputContainer"],h=function(t){var e=t.itemId,n=t.selectedQuantity,a=t.size,l=void 0===a?"small":a,u=t.onChange,c=t.availableQuantity,s=Object(i.useState)("dropdown"),m=Object(d.a)(s,2),y=m[0],h=m[1],w=Object(i.useState)("".concat(n)),C=Object(d.a)(w,2),g=C[0],M=C[1],Q=b()().isMobile,E=r()(f),I=function(t){for(var e=Math.min(9,t),n=[],a=1;a<=e;++a)n.push({value:a,label:"".concat(a)});return t>=10&&n.push({value:10,label:"".concat(10,"+")}),n}(c),N=function(t){var e=S(t,c),n=function(t,e){var n=parseInt(t,10);return Number.isNaN(n)||n<1?"":"".concat(q(n,e))}(t,c);"dropdown"===y&&e>=Math.min(c+1,10)&&h("input"),M(n),u({value:e})};return"dropdown"===y?o.a.createElement("div",{className:Q?E.quantitySelectorDropdownMobileContainer:E.quantitySelectorDropdownContainer},o.a.createElement(v.a,{id:"".concat(Q?"quantity-dropdown-mobile":"quantity-dropdown","-").concat(e),testId:"".concat(Q?"quantity-dropdown-mobile":"quantity-dropdown","-").concat(e),options:I,size:l,value:n,onChange:function(t){return N(t.target.value)},placeholder:" "})):o.a.createElement("div",{className:Q?E.quantitySelectorInputMobileContainer:E.quantitySelectorInputContainer},o.a.createElement(p.a,{id:"".concat(Q?"quantity-input-mobile":"quantity-input","-").concat(e),size:l,value:g,maxLength:5,onChange:function(t){return N(t.target.value)},onBlur:function(){""===g&&M("1");var t=S(g,c);te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1||(n.volume=e,d(Object.assign(Object.assign({},s),{volume:e}))))},setNetworkStatus:function(e){d(Object.assign(Object.assign({},s),{networkStatus:e}))},toggleMute:function(e){e.stopPropagation(),e.preventDefault(),n&&(n.muted=!n.muted,d(Object.assign(Object.assign({},s),{isMuted:n.muted})))},toggleFullscreenMode:function(){return document.fullscreenElement?document.exitFullscreen():null==r?void 0:r.requestFullscreen()},changeState:function(e,t){d(Object.assign(Object.assign({},s),Object(a.a)({},e,t)))}}}}]]); },function(){ (window.webpackJsonpgrupocaiopartnerco_store_video_0_1_1=window.webpackJsonpgrupocaiopartnerco_store_video_0_1_1||[]).push([["Video"],[function(e,t){e.exports=React},,,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},,,,,,,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconPlay"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconPause"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconVolumeOff"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconVolumeOn"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/createCssHandlesContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconExpand"]},,function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonLdScriptProps=t.JsonLd=t.helmetJsonLdProp=void 0;var n=o(24);Object.defineProperty(t,"helmetJsonLdProp",{enumerable:!0,get:function(){return n.helmetJsonLdProp}}),Object.defineProperty(t,"JsonLd",{enumerable:!0,get:function(){return n.JsonLd}}),Object.defineProperty(t,"jsonLdScriptProps",{enumerable:!0,get:function(){return n.jsonLdScriptProps}})},,function(e,t,o){"use strict";o.r(t),function(e){var t=o(1);o.p=Object(t.getPublicPath)("grupocaiopartnerco.store-video@0.1.1");var n=Object(t.register)((function(){return o(29)}),e,"grupocaiopartnerco.store-video@0.1.1","grupocaiopartnerco.store-video@0.x","Video");n.renderHotReload,n.setupHMR}.call(this,o(7)(e))},function(e,t,o){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o":">",'"':""","'":"'"}),i=new RegExp("["+Object.keys(c).join("")+"]","g"),s=function(e){return c[e]},l=function(e,t){switch(typeof t){case"object":if(null===t)return;return t;case"number":case"boolean":case"bigint":return t;case"string":return t.replace(i,s);default:return}}},,,,,function(e,t,o){"use strict";o.r(t);var n=o(0),r=o.n(n),a=o(21),c=o(5),i=o.n(c),s=["videoContainer","videoElement"],l=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/;var u=function(e){var t=e.width,o=e.height,n=e.autoPlay,a=e.loop,c=e.playsInline,u=e.src,p=e.description,d=e.classes,_=i()(s,{classes:d}).handles,m="autoplay=".concat(n,"&loop=").concat(a,"&playsinline=").concat(Boolean(c),"&enablejsapi=1&iv_load_policy=3&modestbranding=1"),v=u.match(l),f=null==v?void 0:v[5];return r.a.createElement("div",{className:"relative ".concat(_.videoContainer)},r.a.createElement("iframe",{"data-testid":"vimeo-player",width:t,height:o,title:p,className:"".concat(_.videoElement),src:"https://player.vimeo.com/video/".concat(f,"?").concat(m),frameBorder:"0",allowFullScreen:!0,allow:"autoplay"}))},p=o(9),d=["videoContainer","videoElement"],_=/(?:youtube(?:-nocookie)?\.com\/(?:[^/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/;var m=function(e){var t=e.width,o=e.height,n=e.autoPlay,a=e.controlsType,c=e.loop,s=e.playsInline,l=e.muted,u=e.src,p=e.description,m=e.classes,v=i()(d,{classes:m}).handles,f=u.match(_),h=null==f?void 0:f[1],y="autoplay=".concat(n,"&loop=").concat(c?"1&playlist=".concat(h):"0","&enablejsapi=1&iv_load_policy=3&modestbranding=1&rel=0&controls=").concat("none"===a?0:1,"&playsinline=").concat(s?"1":"0","&mute=").concat(n||l?"1":"0");return r.a.createElement("div",{className:"relative ".concat(v.videoContainer)},r.a.createElement("iframe",{"data-testid":"youtube-player",width:t,height:o,title:p,className:"".concat(v.videoElement),src:"https://www.youtube.com/embed/".concat(h,"?").concat(y),frameBorder:"0",allowFullScreen:!0,allow:"autoplay"}))},v=/vimeo/,f=/youtube|youtu.be/;function h(e){var t=e.src,o=e.name,n=e.description,c=e.poster,i=e.uploadDate,s=v.test(t),l=f.test(t),d=function(){return r.a.createElement("script",Object(a.jsonLdScriptProps)({"@context":"http://schema.org","@type":"VideoObject",name:o,description:n,contentUrl:t,uploadDate:i?new Date(i):void 0,thumbnailUrl:null!=c?c:t}))},_=p.b;return s&&(_=u),l&&(_=m),r.a.createElement(r.a.Fragment,null,r.a.createElement(d,null),r.a.createElement(_,e))}h.schema={title:"admin/editor.video.title"},h.cssHandles=p.a;t.default=h}],[[23,"common",0]]]); },function(){ !function(t){function n(n){for(var r,u,c=n[0],a=n[1],f=n[2],s=0,d=[];st.length)&&(n=t.length);for(var e=0,r=new Array(n);e=0||(o[e]=t[e]);return o}e.d(n,"a",(function(){return r}))},function(t,n,e){"use strict";function r(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n}e.d(n,"a",(function(){return r}))}]); },function(){ (window.webpackJsonpvtex_modal_layout_0_14_2=window.webpackJsonpvtex_modal_layout_0_14_2||[]).push([[1],{18:function(t,n,e){"use strict";e.d(n,"b",(function(){return c})),e.d(n,"a",(function(){return d}));var i=e(23),o=e(24),s=(e(19),e(0)),a=e.n(s),r=e(8),u=e.n(r),p=!1,l=a.a.createContext(null),c="entering",d="entered",h=function(t){function n(n,e){var i;i=t.call(this,n,e)||this;var o,s=e&&!e.isMounting?n.enter:n.appear;return i.appearStatus=null,n.in?s?(o="exited",i.appearStatus=c):o=d:o=n.unmountOnExit||n.mountOnEnter?"unmounted":"exited",i.state={status:o},i.nextCallback=null,i}Object(o.a)(n,t),n.getDerivedStateFromProps=function(t,n){return t.in&&"unmounted"===n.status?{status:"exited"}:null};var e=n.prototype;return e.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},e.componentDidUpdate=function(t){var n=null;if(t!==this.props){var e=this.state.status;this.props.in?e!==c&&e!==d&&(n=c):e!==c&&e!==d||(n="exiting")}this.updateStatus(!1,n)},e.componentWillUnmount=function(){this.cancelNextCallback()},e.getTimeouts=function(){var t,n,e,i=this.props.timeout;return t=n=e=i,null!=i&&"number"!=typeof i&&(t=i.exit,n=i.enter,e=void 0!==i.appear?i.appear:n),{exit:t,enter:n,appear:e}},e.updateStatus=function(t,n){void 0===t&&(t=!1),null!==n?(this.cancelNextCallback(),n===c?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},e.performEnter=function(t){var n=this,e=this.props.enter,i=this.context?this.context.isMounting:t,o=this.props.nodeRef?[i]:[u.a.findDOMNode(this),i],s=o[0],a=o[1],r=this.getTimeouts(),l=i?r.appear:r.enter;!t&&!e||p?this.safeSetState({status:d},(function(){n.props.onEntered(s)})):(this.props.onEnter(s,a),this.safeSetState({status:c},(function(){n.props.onEntering(s,a),n.onTransitionEnd(l,(function(){n.safeSetState({status:d},(function(){n.props.onEntered(s,a)}))}))})))},e.performExit=function(){var t=this,n=this.props.exit,e=this.getTimeouts(),i=this.props.nodeRef?void 0:u.a.findDOMNode(this);n&&!p?(this.props.onExit(i),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(i),t.onTransitionEnd(e.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(i)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(i)}))},e.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},e.safeSetState=function(t,n){n=this.setNextCallback(n),this.setState(t,n)},e.setNextCallback=function(t){var n=this,e=!0;return this.nextCallback=function(i){e&&(e=!1,n.nextCallback=null,t(i))},this.nextCallback.cancel=function(){e=!1},this.nextCallback},e.onTransitionEnd=function(t,n){this.setNextCallback(n);var e=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this),i=null==t&&!this.props.addEndListener;if(e&&!i){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[e,this.nextCallback],s=o[0],a=o[1];this.props.addEndListener(s,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},e.render=function(){var t=this.state.status;if("unmounted"===t)return null;var n=this.props,e=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,Object(i.a)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(l.Provider,{value:null},"function"==typeof e?e(t,o):a.a.cloneElement(a.a.Children.only(e),o))},n}(a.a.Component);function x(){}h.contextType=l,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:x,onEntering:x,onEntered:x,onExit:x,onExiting:x,onExited:x},h.UNMOUNTED="unmounted",h.EXITED="exited",h.ENTERING=c,h.ENTERED=d,h.EXITING="exiting";n.c=h}}]); },function(){ (window.webpackJsonpvtex_modal_layout_0_14_2=window.webpackJsonpvtex_modal_layout_0_14_2||[]).push([[0],{15:function(e,t,n){"use strict";n.r(t),n.d(t,"CSS_HANDLES",(function(){return D})),n.d(t,"default",(function(){return T}));var o=n(9),r=n(4),a=n(16),i=n(0),c=n.n(i),l=n(3),u=n.n(l),s=function(e){var t=e.children,n=e.open,o=Object(i.useRef)();return Object(i.useEffect)((function(){n&&o.current&&o.current.focus()}),[n]),c.a.createElement(c.a.Fragment,null,c.a.cloneElement(t,{ref:o}))},d=n(20),f=n(21);function p(e){var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:window.document}var m=n(6),v=n.n(m);function h(e){var t,n,o=p(e);return o.body===e?(t=o,null!==(n=p(t).defaultView)&&void 0!==n?n:window).innerWidth>o.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function y(e,t){var n=-1;return e.some((function(e,o){return!!t(e)&&(n=o,!0)})),n}function b(e){var t,n=e.container,o=[];if(h(n)){var r=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();o.push({value:n.style.paddingRight,key:"padding-right",el:n}),n.style.paddingRight="".concat((t=n,(parseInt(window.getComputedStyle(t).paddingRight,10)||0)+r),"px")}var a=n.parentElement,i="HTML"===(null==a?void 0:a.nodeName)&&"scroll"===window.getComputedStyle(a).overflowY?a:n;o.push({value:v.a.hiddenContainer,key:"className",el:i}),i.classList.add(v.a.hiddenContainer);return function(){o.forEach((function(e){var t=e.value,n=e.el,o=e.key;"className"===o?n.classList.remove(v.a.hiddenContainer):t?n.style.setProperty(o,t):n.style.removeProperty(o)}))}}var O=function(){function e(){Object(d.a)(this,e),this.modals=[],this.closeMethods=[],this.containers=[]}return Object(f.a)(e,[{key:"add",value:function(e,t,n){var o=this.modals.indexOf(e);if(-1!==o)return o;o=this.modals.length,this.modals.push(e),this.closeMethods.push(n);var r=y(this.containers,(function(e){return e.container===t}));return-1!==r?(this.containers[r].modals.push(e),o):(this.containers.push({modals:[e],container:t,restore:null}),o)}},{key:"mount",value:function(e){var t=y(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),n=this.containers[t];n.restore||(n.restore=b(n))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1!==t){var n=y(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),o=this.containers[n];return this.modals.splice(t,1),this.closeMethods.splice(t,1),o.modals.splice(o.modals.indexOf(e),1),0===o.modals.length&&(o.restore&&o.restore(),this.containers.splice(n,1)),t}}},{key:"removeTopModal",value:function(){return 0===this.modals.length?-1:this.remove(this.modals[this.modals.length-1])}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}(),x=n(17);function g(e){var t=e.children,n=e.open,o=e.onClick,r=e.transitionDuration,a=e.handles,i=c.a.useRef(null);return c.a.createElement(x.a,{in:n,timeout:r,ref:i},c.a.createElement("div",{className:"".concat(a.backdropContainer," ").concat(v.a.backdropContainer),"data-testid":"modal-backdrop-container"},c.a.createElement("div",{role:"presentation",onClick:function(e){o&&o(e)},className:"".concat(a.backdrop," bg-base--inverted o-50 h-100")},t)))}var k=c.a.memo(g),w=function(){};function E(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.delay,o=void 0===n?0:n,r=t.easing,a=void 0===r?u:r,i=t.duration,c=void 0===i?l:i;return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof c?c:d(c)," ").concat(a," ").concat("string"==typeof o?o:d(o))})).join(",")}var p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r