whatmore-react-assets 1.0.1019 → 1.0.1021
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/css/150.4e431eee.chunk.css +2 -0
- package/static/css/299.e2240c87.chunk.css +2 -0
- package/static/css/436.59976cb2.chunk.css +2 -0
- package/static/css/465.1c72edff.chunk.css +1 -0
- package/static/css/530.e2240c87.chunk.css +2 -0
- package/static/css/580.ff6f5f73.chunk.css +2 -0
- package/static/css/582.3373f4ca.chunk.css +2 -0
- package/static/css/622.dc868ab3.chunk.css +2 -0
- package/static/css/678.599c1ca5.chunk.css +2 -0
- package/static/css/692.87a3bb51.chunk.css +2 -0
- package/static/css/708.dc868ab3.chunk.css +2 -0
- package/static/css/74.87a3bb51.chunk.css +2 -0
- package/static/css/77.1c72edff.chunk.css +1 -0
- package/static/css/836.1c72edff.chunk.css +1 -0
- package/static/css/84.dc868ab3.chunk.css +2 -0
- package/static/css/891.1672d707.chunk.css +2 -0
- package/static/css/926.a9bfc3e2.chunk.css +1 -0
- package/static/css/965.dc868ab3.chunk.css +2 -0
- package/static/js/13.b216da25.chunk.js +1 -0
- package/static/js/150.b2fc5aac.chunk.js +1 -0
- package/static/js/236.ecfb0a1b.chunk.js +1 -0
- package/static/js/240.9c510ae9.chunk.js +2 -0
- package/static/js/249.4dde40af.chunk.js +1 -0
- package/static/js/299.f75473d6.chunk.js +16 -0
- package/static/js/{302.b9ab2db2.chunk.js → 302.41f7dffe.chunk.js} +1 -1
- package/static/js/351.3d3ea3c1.chunk.js +2 -0
- package/static/js/{423.7666df18.chunk.js → 423.4d5ac85a.chunk.js} +1 -1
- package/static/js/436.a0b419a1.chunk.js +1 -0
- package/static/js/440.30f8a9f8.chunk.js +1 -0
- package/static/js/{465.9d9b0065.chunk.js → 465.073e7e2b.chunk.js} +1 -1
- package/static/js/530.3e8065b6.chunk.js +45 -0
- package/static/js/{548.fd822b0d.chunk.js → 548.835e0a00.chunk.js} +1 -1
- package/static/js/577.646fa55d.chunk.js +1 -0
- package/static/js/580.afc90797.chunk.js +1 -0
- package/static/js/582.751462b2.chunk.js +1 -0
- package/static/js/587.b5d32ccb.chunk.js +2 -0
- package/static/js/622.598b8aa3.chunk.js +1 -0
- package/static/js/678.642b5db3.chunk.js +2 -0
- package/static/js/688.0b0c8d7e.chunk.js +1 -0
- package/static/js/692.6381752c.chunk.js +1 -0
- package/static/js/708.4e568e02.chunk.js +1 -0
- package/static/js/74.a6af3b11.chunk.js +1 -0
- package/static/js/766.1b840213.chunk.js +1 -0
- package/static/js/{77.c2b0c0f3.chunk.js → 77.153c6aa9.chunk.js} +1 -1
- package/static/js/818.710634b1.chunk.js +117 -0
- package/static/js/819.c2077f1e.chunk.js +2 -0
- package/static/js/824.ba5d6f79.chunk.js +2 -0
- package/static/js/{836.fd781645.chunk.js → 836.dcb74027.chunk.js} +1 -1
- package/static/js/84.a41ead24.chunk.js +1 -0
- package/static/js/891.b3b25bd5.chunk.js +1 -0
- package/static/js/920.7075d76c.chunk.js +1 -0
- package/static/js/950.2283a32d.chunk.js +1 -0
- package/static/js/965.c8276a4a.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/css/191.35f97ebb.chunk.css +0 -2
- package/static/css/299.e325bb93.chunk.css +0 -2
- package/static/css/381.6f769dad.chunk.css +0 -2
- package/static/css/436.1471d6e3.chunk.css +0 -2
- package/static/css/465.4dd2fc0f.chunk.css +0 -1
- package/static/css/530.e325bb93.chunk.css +0 -2
- package/static/css/608.55d08668.chunk.css +0 -2
- package/static/css/61.646138cd.chunk.css +0 -2
- package/static/css/622.55d08668.chunk.css +0 -2
- package/static/css/704.4c845eb0.chunk.css +0 -2
- package/static/css/720.55d08668.chunk.css +0 -2
- package/static/css/77.4dd2fc0f.chunk.css +0 -1
- package/static/css/820.42b647f6.chunk.css +0 -2
- package/static/css/836.4dd2fc0f.chunk.css +0 -1
- package/static/css/862.4c845eb0.chunk.css +0 -2
- package/static/css/872.740de75c.chunk.css +0 -2
- package/static/css/926.36fbef9a.chunk.css +0 -1
- package/static/css/965.55d08668.chunk.css +0 -2
- package/static/js/123.e78df675.chunk.js +0 -2
- package/static/js/13.f1f86e40.chunk.js +0 -1
- package/static/js/191.cb4bdf56.chunk.js +0 -1
- package/static/js/299.87a80fce.chunk.js +0 -2
- package/static/js/305.ad601df2.chunk.js +0 -1
- package/static/js/351.62a14617.chunk.js +0 -2
- package/static/js/381.19a33473.chunk.js +0 -1
- package/static/js/436.3ad32015.chunk.js +0 -1
- package/static/js/440.61837b0d.chunk.js +0 -1
- package/static/js/530.0cac0f4e.chunk.js +0 -1
- package/static/js/576.4ab6f670.chunk.js +0 -1
- package/static/js/582.d8621734.chunk.js +0 -1
- package/static/js/608.b7399a75.chunk.js +0 -1
- package/static/js/61.fba7fc7c.chunk.js +0 -1
- package/static/js/622.a99a7cd2.chunk.js +0 -1
- package/static/js/688.af1f94fa.chunk.js +0 -1
- package/static/js/704.20b65b11.chunk.js +0 -1
- package/static/js/720.a1ad101f.chunk.js +0 -1
- package/static/js/731.ec8644ec.chunk.js +0 -1
- package/static/js/751.e90cd01f.chunk.js +0 -1
- package/static/js/766.f901fd75.chunk.js +0 -1
- package/static/js/818.2a870151.chunk.js +0 -1
- package/static/js/819.0610382e.chunk.js +0 -2
- package/static/js/820.62071231.chunk.js +0 -1
- package/static/js/824.b0ffdd51.chunk.js +0 -2
- package/static/js/862.df41dcd9.chunk.js +0 -1
- package/static/js/872.833e95e1.chunk.js +0 -2
- package/static/js/957.e0aa3a4c.chunk.js +0 -2
- package/static/js/965.30d3a489.chunk.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[582],{5582:function(e,t,n){n.r(t),n.d(t,{default:function(){return H}});var a=n(7753),i=n(7313),r=n(2860),o=n(5160),s=n(9854),l=n(6967),c=n(8984),d=n(58),u=n(4669),_=n(513),p=n(5109),m=n(7300),h=n(6524),v=n(7643),f=n(778),g=n(8181),y=n(6095),w=n(6417);const b=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(367),n.e(351),n.e(751),n.e(926),n.e(688),n.e(820)]).then(n.bind(n,4095)))),S=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(367),n.e(576),n.e(751),n.e(305),n.e(530)]).then(n.bind(n,5523)))),I=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(367),n.e(423),n.e(751),n.e(926),n.e(731),n.e(622)]).then(n.bind(n,3827)))),k=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(367),n.e(423),n.e(751),n.e(926),n.e(731),n.e(965)]).then(n.bind(n,6071)))),x=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(367),n.e(423),n.e(751),n.e(926),n.e(731),n.e(608)]).then(n.bind(n,1291)))),E=i.lazy((()=>Promise.all([n.e(302),n.e(751),n.e(381)]).then(n.bind(n,3580)))),j=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(576),n.e(351),n.e(123),n.e(751),n.e(926),n.e(688),n.e(818),n.e(191)]).then(n.bind(n,3818)))),T=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(367),n.e(351),n.e(751),n.e(926),n.e(688),n.e(305),n.e(436)]).then(n.bind(n,1492)))),C=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(367),n.e(751),n.e(688),n.e(872)]).then(n.bind(n,9085)))),D=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(367),n.e(576),n.e(751),n.e(688),n.e(305),n.e(299)]).then(n.bind(n,4362)))),L=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(576),n.e(351),n.e(123),n.e(751),n.e(926),n.e(688),n.e(818),n.e(61)]).then(n.bind(n,4658)))),O=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(367),n.e(423),n.e(751),n.e(926),n.e(720)]).then(n.bind(n,8767))));var A=function(e){const[t]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[A]=(0,a.j1)("whatmoreTopBottomPadding"),[N]=(0,a.j1)("whatmoreStoriesTopBottomPadding"),{whatmoreIsStoriesTemplate:K}=(0,i.useContext)(p.I),[R]=(0,a.j1)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:q}=(0,i.useContext)(p.I),P=(0,a.MO)("isLandingSharedLink"),W=(0,a.MO)("whatmoreShareTemplateId"),M=(0,a.MO)("whatmoreShareStoryId"),G=(0,a.MO)("whatmoreShareEventId"),{whatmoreWidgetSourceDetails:H,whatmoreUserInfo:B}=(0,i.useContext)(p.I),z=P&&q===(0,h.zv)(W),[V,F]=(0,i.useState)(z),[U,Y]=(0,i.useState)(-1),[J,Q]=(0,i.useState)(null);let Z=e.events,X=[];if("template-banner-a"!==q){let e=0;for(let t=0;t<(null===Z||void 0===Z?void 0:Z.length);t++){var $,ee,te,ne;const n=(null===Z||void 0===Z||null===($=Z[t])||void 0===$||null===(ee=$.products)||void 0===ee?void 0:ee.length)>0&&(null===Z||void 0===Z||null===(te=Z[t])||void 0===te||null===(ne=te.products)||void 0===ne?void 0:ne.every((e=>"oos"===(null===e||void 0===e?void 0:e.product_status))));!(0,m.B6)(Z[t])&&!(0,m.WJ)(Z[t])||n&&"12326200"!==R||(X.push({...null===Z||void 0===Z?void 0:Z[t],index:e}),e++)}}var ae=null;K&&!ae&&(ae=function(e){var t=e.reduce(((e,t,n)=>{var a,i=t.storyset_id;return i in e?(e[i].total_events=e[i].total_events+1,e[i].events.push(t)):e[i]={id:t.storyset_id,title:t.storyset_name,thumbnail_image:t.storyset_thumbnail_image,total_events:1,start_event_index:n,storyset_dynamic_thumbnail:null!==(a=null===t||void 0===t?void 0:t.storyset_dynamic_thumbnail)&&void 0!==a&&a,events:[t]},e}),{}),n=Object.values(t);return n.sort(((e,t)=>e.start_event_index-t.start_event_index)),n}(X));const ie=H.landingLocationType,re=H.templateType;function oe(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,c.KE)()&&!a&&(0,d.QV)(),t||n||(async()=>{const t=ae[e].events[0],n=(0,h.NY)(ie)+(0,h.dS)(re)+"_"+(null===t||void 0===t?void 0:t.event_id);(0,o.wh)(t),(0,u.Tc)(R,r.Xh,r.OW),(0,l.H4)(t.event_id,t.products,"homepage","stories",n,null===t||void 0===t?void 0:t.location,null===B||void 0===B?void 0:B.userType)})();var s=0;null!=i&&ae[e].events.map(((e,t)=>{e.event_id==i&&(s=t)})),Y(s),Q(e)}function se(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,c.KE)()&&!a&&(0,d.QV)(),(0,m.B6)(e)||(0,m.WJ)(e))return t||n||(async()=>{const t=(0,h.NY)(ie)+(0,h.dS)(re)+"_"+(null===e||void 0===e?void 0:e.event_id);(0,o.wh)(e),(0,u.Tc)(R,r.Xh,r.pR),(0,l.H4)(e.event_id,e.products,"homepage","carousel",t)})(),void Y(e.index)}function le(e){return(0,w.jsx)(w.Fragment,{})}return(0,i.useEffect)((()=>{if(z)if((0,y.A)("whatmore-video-player",(()=>{F(!1)})),null!=M&&K){const e=ae.find((e=>M==e.id));if(e)return void oe(ae.indexOf(e),!0,G)}else if(null!=G){const e=X.find((e=>G==e.event_id));if(e)return void se(e,!0)}}),[]),(0,w.jsxs)(w.Fragment,{children:[V&&(0,w.jsx)(g.Z,{}),(0,w.jsx)("div",{className:"whatmore-widget-container",style:{marginTop:(K?N:A)+"px",marginBottom:(K?N:A)+"px"},children:"template-b"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(b,{events:X,onClick:se,heading:e.heading})}):"template-a-1"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(S,{events:X,onClick:se,heading:e.heading})}):"template-feed-a"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(D,{events:X,onClick:se,heading:e.heading})}):"template-collections-a"===q||"template-c"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(I,{events:X,index:U,setScreen:Y,onClick:se,heading:e.heading})})}):"template-collections-b"===q||"template-d"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(k,{events:X,index:U,setScreen:Y,onClick:se,heading:e.heading})})}):"template-collections-c"===q||"template-e"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(x,{events:X,index:U,setScreen:Y,onClick:se,heading:e.heading})})}):"template-collections-d"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(b,{events:X,index:U,setScreen:Y,onClick:se,heading:e.heading})})}):"template-collections-e"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(T,{events:X,index:U,setScreen:Y,onClick:se,heading:e.heading})})}):"template-collections-stories"===q||"template-stories"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(O,{events:X,index:U,setScreen:Y,onClick:se,heading:e.heading})})}):"template-f"===q||"template-collections-f"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(C,{events:X,onClick:se,heading:e.heading})})}):"template-banner-a"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.BANNER_WIDGET_VIEW,event:Z[0],triggerFlag:!t&&!n,children:(0,w.jsx)(L,{events:Z})})}):K?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.STORIES_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(E,{eventsStories:ae,onClick:oe,template:q})})}):(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(T,{events:X,onClick:se,heading:e.heading})})})}),-1==U||-2==U?(0,w.jsx)(le,{}):(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.EVENT_VIEW,event:Z[U],productList:Z[U].products,cta:Z[U].cta,triggerFlag:!t&&!n,children:(0,w.jsx)(j,{events:X,index:U,onBack:function(e){(0,s.n2L)(R)&&(0,a.MO)("whatmoreAddedToCart")&&(0,_.D)(R,(()=>{}),100,window.location.hostname,e),Y(-1),F(!1)},slideDirection:K||"horizontal"===(0,s.e8z)(R)?"horizontal":"vertical",eventsStories:ae,initialStoryIndex:J,template:q})})})]})};const N=function(e,t,n){const i=(0,a.MO)("whatmoreShopId");var r=t.reduce(((e,t,n)=>(t.products.map((e=>e.client_product_id)).forEach((t=>{t in e||(e[t]=!0)})),e)),{}),o=Object.keys(r);if("60960964855"==i&&"undefined"!=typeof fera&&"function"===typeof fera.getRatings){var s={};fera.getRatings(o,(e=>{new Promise(((t,n)=>{e.forEach((e=>{s[e.external_product_id]={avgRating:e.average,totalRatings:e.count}})),t(s)})).then((e=>n(e)))}))}if("23114481744"==i){const e="1e6MQXxzYR19mpw9Km6Dcm86";s={};fetch("https://api.juniphq.com/v1/products?filter[remote_ids]="+o.toString(),{headers:{"Junip-Store-Key":e}}).then((e=>e.json())).then((e=>(e.products.forEach((e=>{s[e.remote_id]={avgRating:parseFloat(e.rating_average).toFixed(1),totalRatings:e.rating_count}})),s))).then((e=>n(e))).catch((e=>console.error(e)))}};var K=n(3388),R=n(7381),q=n(4522),P=n(7008);const W=[{event_id:2333,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:204,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/sadabahaar-chanderi-suit-set",client_product_id:"6780183806018",price:"2800.00",currency:"INR",title:"Sadabahaar Chanderi Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/products/5_72f81f91-e027-4497-9dfe-20480b862c54.jpg?v=1684509430",compare_price:"6999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_b9c6f02e-6d5e-4250-97f8-71551c18c4e8.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/b9c6f02e-6d5e-4250-97f8-71551c18c4e8.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:1,event_state:"ready",poster_image:null,total_views:37,total_like:1,total_share:0,total_whatsapp:0},{event_id:2335,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:2108,brand:"whatmore-dev",product_link:"https://www.ordinaree.com/products/grease-black-designer-blackless-long-dress-for-women-online",client_product_id:"7210211311652",price:"5040.00",currency:"INR",title:"Grease Backless Long Dress",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0106/4897/7444/products/DSC_0377_45ee56eb-1240-4a17-9332-841809f132cf.jpg?v=1673001396",compare_price:"5600.00",product_metadata:null,product_status:"active"},{product_id:1955,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/black-anarkali-and-pant-with-dupatta",client_product_id:"7600010723466",price:"4125.00",currency:"INR",title:"BLACK ANARKALI AND PANT WITH DUPATTA",description:"BLACK ANARKALI AND PANT WITH DUPATTA",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/salwarsuitonlineindia-07285.jpg?v=1669434027&width=823",compare_price:"5200.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_e433898b-a5ec-4af6-b74f-2153ad609ffb.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/e433898b-a5ec-4af6-b74f-2153ad609ffb.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:4,event_state:"ready",poster_image:null,total_views:31,total_like:0,total_share:0,total_whatsapp:0},{event_id:2336,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:632,brand:"whatmore-dev",product_link:"https://www.meerasplussizestore.com/products/basil-brick-ajrakh-handblock-printed-kurta",client_product_id:"6864880173194",price:"876.00",currency:"INR",title:"Basil & Brick Ajrakh Handblock Printed Kurta",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0363/0075/0986/products/Dark-Green-Maroon-Pati-Ajrakh-Kurti-SCL_6948.jpg?v=1653729466",compare_price:"2190.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_5ddea9a1-4839-4db8-aa1c-843c14dd1cbb.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/5ddea9a1-4839-4db8-aa1c-843c14dd1cbb.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:5,event_state:"ready",poster_image:null,total_views:21,total_like:0,total_share:0,total_whatsapp:0},{event_id:2338,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:1728,brand:"whatmore-dev",product_link:"https://suta.in/products/ratri-kamal",client_product_id:"6916488003649",price:"4200.00",currency:"INR",title:"Ratri kamal",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/products/ratri-kamal-293774.jpg?v=1668084259",compare_price:null,product_metadata:null,product_status:"active"},{product_id:1732,brand:"whatmore-dev",product_link:"https://suta.in/products/kedar-ki-dor-blouse",client_product_id:"6625859502145",price:"4200.00",currency:"INR",title:"Kedar Ki Dor",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/files/DSC01009.jpg?v=1712326816",compare_price:null,product_metadata:null,product_status:"active"},{product_id:1736,brand:"whatmore-dev",product_link:"https://suta.in/products/swarna-kamal",client_product_id:"6916483317825",price:"4200.00",currency:"INR",title:"Swarna Kamal",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/products/swarna-kamal-472043.jpg?v=1668093054",compare_price:null,product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_496a26de-50cd-4823-8731-a97e0757efcf.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_496a26de-50cd-4823-8731-a97e0757efcf.mp4?v=1677477938",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:6,event_state:"ready",poster_image:null,total_views:28,total_like:0,total_share:0,total_whatsapp:0},{event_id:3255,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:3636,brand:"whatmore-dev",product_link:"https://buysohi.com/products/sohear8383",client_product_id:"7679599771864",price:"543.00",currency:"INR",title:"Gold Plated Pearl Stud",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0626/0218/2872/products/SS22_SOHEAR8383_1.jpg?v=1651755514",compare_price:"1699.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-01-24",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_b0045891-f042-47d4-a87a-187c96a1857e.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/b0045891-f042-47d4-a87a-187c96a1857e.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:7,event_state:"ready",poster_image:null,total_views:36,total_like:1,total_share:3,total_whatsapp:0},{event_id:3877,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:1955,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/black-anarkali-and-pant-with-dupatta",client_product_id:"7600010723466",price:"4125.00",currency:"INR",title:"BLACK ANARKALI AND PANT WITH DUPATTA",description:"BLACK ANARKALI AND PANT WITH DUPATTA",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/salwarsuitonlineindia-07285.jpg?v=1669434027&width=823",compare_price:"5200.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-02-03",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_CoH_liSAYOj.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_CoH_liSAYOj_b1999a62-134d-4301-9808-5d09e64a8979.mp4?v=1677477812",presenter_email:null,presenter_phone:null,room_id:null,event_type:"video",is_active:!0,rank:20,event_state:"ready",poster_image:null,total_views:16,total_like:0,total_share:0,total_whatsapp:0},{event_id:4188,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:4459,brand:"whatmore-dev",product_link:"https://theethnic.co/products/black-ruching-jacket-kurta-set",client_product_id:"8011323769076",price:"7499.00",currency:"INR",title:"Black Ruching Jacket Kurta Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0650/7937/8164/products/1_5102cd2e-a419-4682-abf1-d9619e6e96d7.jpg?v=1674275880",compare_price:"9999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-02-07",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_c398aa0e-f0ac-4aba-91f5-4b1bcc5b1d51.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_7acda7d8-9762-47c7-9ee2-35e14db4c3fb.mp4?v=1677477803",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:23,event_state:"ready",poster_image:null,total_views:8,total_like:0,total_share:1,total_whatsapp:0},{event_id:28701,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:364,cta_link:"https://lovechild.in/collections/fragrances",client_cta_id:"https://lovechild.in/collections/fragrances",cta_title:"Explore",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-01-10",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_20c05e5e-43cd-45cd-b1a4-5c942fb732d1.mp4",discount_coupon_image:"",event_hls_url:"https://d1zl4k1t5o4s75.cloudfront.net/whatmoredev/1080p_20c05e5e-43cd-45cd-b1a4-5c942fb732d1.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:57,event_state:"ready",poster_image:null,total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:28767,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-01-11",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_4820fd98-246f-46b7-8af6-be1e949ff0e2.mp4?v=1704973716",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_4820fd98-246f-46b7-8af6-be1e949ff0e2.mp4?v=1704973708",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:58,event_state:"ready",poster_image:null,total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:48,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:24,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/evil-eye-adjustable-ring-gold",client_product_id:"6923301748874",price:"1250.00",currency:"INR",title:"Evil Eye adjustable ring - Gold",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/WhatsAppImage2020-09-21at11.38.01AM_1_700x_c51dd690-b6d8-4059-b3e0-13a2edf3feea.jpg?v=1656673474",compare_price:"1300",product_metadata:null,product_status:"active"},{product_id:23,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/rose-water-200ml",client_product_id:"6923319771274",price:"250.00",currency:"INR",title:"ROSE WATER 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/RoseWaterFront-01_250x_2x_c4cd34f3-625d-463a-bf36-3b159322b7ed.png?v=1656673764",compare_price:null,product_metadata:null,product_status:"active"},{product_id:21,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/honey-lemon-face-cleanser-200ml-1",client_product_id:"6923307647114",price:"1300.00",currency:"INR",title:"HONEY & LEMON FACE CLEANSER 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/C5D_9156-01_250x_2x_2f91ab64-e5a4-42f1-baf3-5f3ecffb2b50_1.png?v=1656673584",compare_price:"1340",product_metadata:null,product_status:"active"},{product_id:22,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/honey-lemon-face-cleanser-200ml-1",client_product_id:"6923317051530",price:"350.00",currency:"INR",title:"HONEY AND ROSE BODY CREAM 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/2_250x_2x_47ffd4b3-4100-4afb-b4c8-a09867e40ddb.png?v=1656673726",compare_price:null,product_metadata:null,product_status:"active"}],cta:[{cta_id:73,cta_link:"https://honeyandspice.in/collections/central-indian",client_cta_id:"https://honeyandspice.in/collections/central-indian",cta_title:"Shop Now",thumbnail_image:"",cta_type:""}],title:"BTS of HoneyAndSpice",description:"",brand:"whatmore-dev",scheduled_date:"2023-08-10",status:"upcoming",start_time:"19:00",end_time:"20:00",actual_start_time:null,actual_end_time:null,presenter_name:"Honey and Spice",thumbnail_image:"https://d28nus7q7qajdn.cloudfront.net/videos/whatmore-video-01942fec-68a5-4417-aa28-a0bff121a3ec.mp4",discount_coupon_image:"",event_hls_url:"https://d28nus7q7qajdn.cloudfront.net/videos/whatmore-video-2f0d18e6-a519-4e70-b8b3-529b90a04c28.mp4",presenter_email:null,presenter_phone:"+919888988889",room_id:null,event_type:"video",is_active:!0,rank:59,event_state:"ready",poster_image:null,total_views:13,total_like:0,total_share:0,total_whatsapp:0},{event_id:33888,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:402,cta_link:"https://custom.com",client_cta_id:"https://custom.com",cta_title:"custom",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_2b78b138-b18f-45e3-b8dc-6ce59075872f.mp4?v=1708937498",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_2b78b138-b18f-45e3-b8dc-6ce59075872f.mp4?v=1708937490",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:60,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2b78b138-b18f-45e3-b8dc-6ce59075872f.webp?v=1708937505",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:33890,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:402,cta_link:"https://custom.com",client_cta_id:"https://custom.com",cta_title:"custom",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.mp4?v=1708937809",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.mp4?v=1708937801",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:61,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.webp?v=1708937816",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:33947,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:403,cta_link:"https://test.com",client_cta_id:"https://test.com",cta_title:"test",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_81844dee-68c7-425e-96bf-d3ac63c664e7.mp4?v=1708947355",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_81844dee-68c7-425e-96bf-d3ac63c664e7.mp4?v=1708947347",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:62,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_81844dee-68c7-425e-96bf-d3ac63c664e7.webp?v=1708947362",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41975,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:482,cta_link:"https://tests.com",client_cta_id:"https://tests.com",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_51411814-cff2-491f-aca3-303e84307049.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_51411814-cff2-491f-aca3-303e84307049.mp4?v=1714033514",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:69,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_51411814-cff2-491f-aca3-303e84307049.webp?v=1714033531",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41976,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:481,cta_link:"https://test1231.com",client_cta_id:"https://test1231.com",cta_title:" ",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_c2a47941-cafb-4765-ac6c-d6414679c6bd.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_c2a47941-cafb-4765-ac6c-d6414679c6bd.mp4?v=1714033514",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:70,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_c2a47941-cafb-4765-ac6c-d6414679c6bd.webp?v=1714033530",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41977,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:403,cta_link:"https://test.com",client_cta_id:"https://test.com",cta_title:"test",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_a0f26d1d-462b-4548-848c-806702cf9c95.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_a0f26d1d-462b-4548-848c-806702cf9c95.mp4?v=1714033513",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:71,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_a0f26d1d-462b-4548-848c-806702cf9c95.webp?v=1714033530",total_views:0,total_like:0,total_share:0,total_whatsapp:0}];var M=function(e){const[t,n]=(0,i.useState)(),[o,u]=(0,i.useState)(),{whatmoreIsStoriesTemplate:_}=(0,i.useContext)(p.I),{whatmoreIsCollectionsTemplate:m}=(0,i.useContext)(p.I),{whatmoreIsBannerTemplate:v}=(0,i.useContext)(p.I),[g]=(0,a.j1)("whatmoreShopId"),[y]=(0,a.j1)("whatmoreCollectionId"),b=(0,a.MO)("whatmoreLandingLocationType"),S=(0,a.MO)("whatmoreLoggingActive"),{whatmoreWidgetSourceDetails:I}=(0,i.useContext)(p.I),{whatmoreUserInfo:k,whatmoreIsPreviewMode:x}=(0,i.useContext)(p.I),{whatmoreCollectionUrl:E}=(0,i.useContext)(p.I),[j]=(0,a.j1)("isInDesignMode"),[T]=(0,a.j1)("isDemoBrand"),C=(0,s.cZT)(g)?(0,s._uv)(g)?E:window.location.href.split(/[?#]/)[0]:y,[D,L]=(0,a.j1)("productRatings"),[O,M]=(0,i.useState)(!1);var G=(0,s.efR)(g)?r.Dm+"/v2/events/":r.Gc+"/v2/events/",H=(0,s.efR)(g)?r.Dm+"/v3/events/":r.Gc+"/v3/events/",B=(0,s.efR)(g)?r.Dm+"/v4/events/":r.Gc+"/v4/events/",z=(0,s.efR)(g)?r.Dm+"/get_eventset/":r.Gc+"/get_eventset/",V=(0,s.efR)(g)?r.Dm+"/v2/collection":r.Gc+"/v2/collection",F=(0,s.efR)(g)?r.Dm+"/v3/collection":r.Gc+"/v3/collection",U=(0,s.efR)(g)?r.Dm+"/v2/brand/"+g+"/product-events":r.Gc+"/v2/brand/"+g+"/product-events",Y=e.shopId,J="live,upcoming",Q="true";return(0,i.useEffect)((()=>{(0,l.hb)();const e=()=>{const e="_whatmore_bulk_events",t=JSON.parse(localStorage.getItem(e))||[];t&&t.length>0&&((0,P.K)(t),localStorage.removeItem(e))};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||o||!(0,c.KE)()||(0,a.MO)("whatmoreVideoPlayerPoolInitiated")||(0,d.b5)(d.UD)}),[t]),(0,i.useEffect)((()=>{var e;if(b.startsWith("product"))if((0,s.C86)(g))e=G.toString()+Y.toString()+"?status="+J.toString()+"&is_active="+Q.toString();else{var t=(0,a.MO)("whatmoreProductId");t=(0,s.iXA)(g)?function(e,t){return"STRQMPNF7QK"==t?encodeURIComponent(e):e.split(/[?#]/)[0]}(window.location.href,g):t,e=U.toString()+"?client_product_id="+t.toString()+"&status="+J.toString()+"&event_type=video"}else if(m||"invalid-url"!==E)e=(0,s.YGB)(g)?"".concat(F.toString(),"?store_id=").concat(Y.toString(),"&client_collection_id=").concat("index"==b&&(0,s.igW)(g).length>0?(0,s.igW)(g)[0]:C):"".concat(V.toString(),"?store_id=").concat(Y.toString(),"&client_collection_id=").concat("index"==b&&(0,s.igW)(g).length>0?(0,s.igW)(g)[0]:C);else if(v){const t=h.ls,n=(0,h.H1)(b);e=z.toString()+Y.toString()+"?eventset_type="+t+"&source="+n+"&source_id="+g}else{var i,r,o,c;if(("72201044272"==g||"2665447536"==g&&x)&&!_)e=H.toString()+Y.toString()+"?status="+J.toString()+"&is_active="+Q.toString()+"&latitude="+(null!==(i=null===(r=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===r?void 0:r.latitude)&&void 0!==i?i:"")+"&longitude="+(null!==(o=null===(c=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===c?void 0:c.longitude)&&void 0!==o?o:"")+"&user_type="+(null!==k&&void 0!==k&&k.userType?"olduser":"newuser");else e=(0,s.YGB)(g)&&!_?B.toString()+Y.toString()+"?status="+J.toString()+"&is_active="+Q.toString():G.toString()+Y.toString()+"?status="+J.toString()+"&is_active="+Q.toString()+(_?"&template_type=stories":"")}fetch(e).then((e=>e.json())).then((e=>{var t;if(v){const t=h.ls;return(0,K.OC)(e,t)}return(0,s.YGB)(g)&&(null===e||void 0===e||null===(t=e.questions)||void 0===t?void 0:t.length)>0&&(null==localStorage.getItem("_whatmore_qview_index")&&localStorage.setItem("_whatmore_qview_index",0),(0,l.xV)(null===e||void 0===e?void 0:e.questions)),(0,K.kW)(e,m||"invalid-url"!==E)})).then((e=>(S&&console.debug("initial received events size : "+e.length),_||m||v?e:(0,K.e8)(e,Y)))).then((e=>(null!=e&&0!=e.length&&(0,s.LUY)(g)&&function(e,t,n){const i=setInterval((()=>{null===(0,a.MO)("productRatings")&&N(e,t,n)}),1e3);setTimeout((()=>{clearInterval(i)}),1e4)}(g,e,(e=>{L(e)})),e))).then((e=>{n((T||j)&&null==e?W:e),M(!0)})).catch((e=>{u(e.message)}))}),[]),(0,i.useEffect)((()=>{"index"===b?t&&t.length>0&&(0,q.PB)({userInteractionType:f.K.HOMEPAGE_VISITED,widgetSourceDetails:I}):"collection"===b&&(t&&t.length>0||(0,s.miB)(g))&&(0,q.PB)({userInteractionType:f.K.COLLECTION_PAGE_VISITED,widgetSourceDetails:I})}),[t]),O&&(null==t||0==t.length||o)&&p.$.forEach((e=>{var t,n,a,i;const r=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-stories-a"]'),o=null!==(n=e.querySelector('.whatmore-template-type[data-wh="template-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-a-1"]'))&&void 0!==n?n:e.querySelector('.whatmore-template-type[data="template-a"]')||e.querySelector('.whatmore-template-type[data="template-b"]')||e.querySelector('.whatmore-template-type[data="template-f"]')||e.querySelector('.whatmore-template-type[data="template-stories"]')||e.querySelector('.whatmore-template-type[data="template-e"]')||e.querySelector('.whatmore-template-type[data="template-a-1"]'),s=null!==(a=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-d"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-e"]'))&&void 0!==a?a:e.querySelector('.whatmore-template-type[data="template-collections-a"]')||e.querySelector('.whatmore-template-type[data="template-collections-b"]')||e.querySelector('.whatmore-template-type[data="template-collections-c"]')||e.querySelector('.whatmore-template-type[data="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data="template-collections-e"]')||e.querySelector('.whatmore-template-type[data="template-collections-d"]'),l=null!==(i=e.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==i?i:e.querySelector('.whatmore-template-type[data="template-banner-a"]'),c=e;if(_){const t=e.querySelector(".whatmore-shimmer-stories");t&&(t.style.display="none")}else if(!m){const t=e.querySelector(".loading-skeleton-wrapper");t&&(t.style.display="none")}(l||s||o||r)&&(o&&c||r&&c||l&&c||s&&c)&&(c.style.minHeight="0px")})),null==t||0==t.length||o?(0,w.jsx)("div",{}):(S&&(0,R.EI)(t),function(e){if(null!=e){var t=0;e.forEach((e=>{e.index=t++}))}}(t),S&&console.debug("final transformed events data : "+JSON.stringify(t)),S&&console.debug("valid events size : "+t.length),(0,w.jsx)(A,{heading:e.heading,events:t}))},G=n(3933);var H=function(e){const[t]=(0,a.j1)("whatmoreShopId"),[n]=(0,a.j1)("whatmoreHeading"),[r,o]=(0,i.useState)(["initial",window.pageYOffset]),[l,c]=(0,i.useState)(!1),d="2665447536"==t?30:10,_=(0,a.MO)("isLandingSharedLink");(0,i.useEffect)((()=>{if((0,u.ll)(t),!(0,s.wc0)(t))return;const e=d;let n=window.pageYOffset,a=!1;const i=()=>{const t=window.pageYOffset;var i,r;Math.abs(t-n)<e?a=!1:(r=!0,o(i=[t>n?"scrolled-down":"scrolled-up",t]),i[1]>d&&c(r),n=t>0?t:0,a=!1)},r=()=>{a||(window.requestAnimationFrame(i),a=!0)};return window.addEventListener("scroll",r),()=>window.removeEventListener("scroll",r)}),[]);const[p,m,h]=(0,G.YD)({triggerOnce:!0});return(0,w.jsx)("div",{ref:p,style:{display:"block"},children:l||m||_||!(0,s.wc0)(t)?(0,w.jsx)(M,{heading:n,shopId:t}):(0,w.jsx)("div",{})})}},8181:function(e,t,n){var a=n(7313),i=n(8866),r=n(7753),o=n(6417);const s=a.memo((()=>{if(!(0,r.MO)("isLandingSharedLink"))return(0,o.jsx)(o.Fragment,{});const[e]=(0,i.Z)();return(0,o.jsxs)("div",{className:"shimmer-container ".concat(e),children:["portrait"===e?(0,o.jsx)("div",{className:"shimmer-item portrait-full",children:(0,o.jsx)("div",{className:"shimmer-effect"})}):Array(3).fill().map(((e,t)=>(0,o.jsx)("div",{className:"shimmer-item landscape-item ".concat(1===t?"center-item":""),children:(0,o.jsx)("div",{className:"shimmer-effect"})},t))),(0,o.jsx)("style",{children:"\n .shimmer-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n z-index: 1000;\n }\n\n .portrait {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.6);\n }\n\n .landscape {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.8);\n }\n\n .shimmer-item {\n scroll-snap-align: start;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n transition: transform 0.3s ease;\n }\n\n .portrait-full {\n width: 100vw;\n height: 100vh;\n margin: 0; \n }\n\n .landscape-item {\n width: 250px;\n height: 450px;\n background: #D3D3D3;\n border-radius: 8px;\n margin-left: -50px; \n }\n\n .center-item {\n width: 360px;\n height: 620px;\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); \n z-index: 10; \n }\n\n .shimmer-effect {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 25%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 75%);\n animation: shimmer 2s infinite;\n background-size: 200% 100%;\n }\n\n @keyframes shimmer {\n 0% {\n background-position: -200% 0;\n }\n 100% {\n background-position: 200% 0;\n }\n }\n "})]})}));t.Z=s},3388:function(e,t,n){n.d(t,{OC:function(){return s},e8:function(){return r},kT:function(){return a},kW:function(){return o},xg:function(){return i}});const a=function(e,t){return!((void 0==e.products||0==e.products.length)&&(void 0==e.cta||0==e.cta.length))},i=function(e,t){return!(void 0==e.products||0==e.products.length)},r=function(e,t){if(null!=e)return e.filter((e=>1==a(e)))},o=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e)return t?e.events[0].events:e.events};const s=function(e,t){var n;if(null==e)return[];if(!("eventsets"in e))return[];const a=null!==(n=e.eventsets[t])&&void 0!==n?n:null;return a?function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach((e=>{e.events.forEach((e=>{t.push(e)}))})),t}(a):[]}},6095:function(e,t,n){function a(e,t){let n=0;let a=new MutationObserver((function(){document.querySelector("."+e)?(t(),a.disconnect()):0==n&&(n=1,setTimeout((()=>{t(),a.disconnect()}),8e3))}));a.observe(document.body,{childList:!0,subtree:!0})}n.d(t,{A:function(){return a}})},4522:function(e,t,n){n.d(t,{gW:function(){return s},GF:function(){return l},y4:function(){return d},PB:function(){return u},Z2:function(){return c}});var a=n(9854),i=n(7753),r=n(778);var o=n(733);const s={[r.K.EVENT_VIEW]:"whatmore_video_click_event",[r.K.VIDEO_LIKED]:"whatmore_video_like_event",[r.K.VIDEO_SHARE_CTA_CLICKED]:"whatmore_video_share_event",[r.K.PRODUCT_TILE_ATC_CLICKED]:"whatmore_video_atc_event",[r.K.SHOPNOW_ATC_CLICKED]:"whatmore_video_atc_event",[r.K.SHOPNOW_CLICKED]:"whatmore_product_tile_click_event",[r.K.PRODUCT_TILE_SHOPNOW_CLICKED]:"whatmore_product_tile_click_event"};function l(e){var t;let{userInteractionType:n,userInteractionMetadata:l,widgetSourceDetails:c,event:d,productList:u,ctaList:_}=e;(0,o.s)({userInteractionType:n,userInteractionMetadata:l,widgetSourceDetails:c,event:d,productList:u,ctaList:_}),n in s&&function(e,t){const n=(0,i.MO)("whatmoreShopId");(e!=r.K.EVENT_VIEW||(0,a.UAB)(n))&&(e!=r.K.SHOPNOW_ATC_CLICKED&&e!=r.K.PRODUCT_TILE_ATC_CLICKED||(0,a.Tn_)(n))&&(e!=r.K.VIDEO_LIKED||(0,a.sKB)(n))&&(e!=r.K.VIDEO_SHARE_CTA_CLICKED||(0,a.YOU)(n))&&(e!=r.K.PRODUCT_TILE_SHOPNOW_CLICKED&&e!=r.K.SHOPNOW_CLICKED||(0,a.ejq)(n))&&"function"==typeof fbq&&(async()=>{fbq("trackCustom",s[e],{id:null===t||void 0===t?void 0:t.client_product_id,product_url:null===t||void 0===t?void 0:t.product_link})})()}(n,null!==(t=null===u||void 0===u?void 0:u[1])&&void 0!==t?t:null===u||void 0===u?void 0:u[0])}function c(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:s}=e;(0,o.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:s})}function d(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:s}=e;(0,o.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:s})}function u(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:s}=e;(0,o.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:s})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[608],{1291:function(e,t,r){r.r(t);var o=r(7313),a=r(6090),i=r(7616),l=r(5109),n=(r(6143),r(7850),r(4444),r(7244),r(123),r(5892),r(1811),r(9302)),s=r(2575),c=r(8866),h=r(7753),m=r(7129),d=r(8631),p=r(9821),g=r(8782),u=r(7381),w=r(9854),f=r(5380),x=r(3933),y=r(6417);const v=(0,s.Z)({key:"whatmore-css-cv"});t.default=function(e){var t;const[r,s,C]=(0,c.Z)(),[S,M,j,O,P]=(0,p.Z)(),k=(0,h.MO)("whatmoreCollectionsTileSize"),T=(0,h.MO)("whatmoreCollectionsTileSizePortrait"),R="portrait"===r?T:k,Z="portrait"==r?0:(0,h.MO)("whatmoreLandscapePadding"),b=(0,h.MO)("whatmoreCollectionsTilesSpacing"),z=(0,h.MO)("whatmoreShopId"),[I]=(0,h.MO)("whatmorePrimaryColor"),{whatmoreRootId:E}=(0,o.useContext)(l.I),{whatmoreIsCollectionsTemplate:F}=(0,o.useContext)(l.I),V=e.events,q=e.onClick,L=(0,h.MO)("whatmoreTitleFont"),B="portrait"==r?(0,h.MO)("whatmoreTitleFontSizePortrait"):(0,h.MO)("whatmoreTitleFontSize"),H=null!==(t=(0,w.aRS)(z))&&void 0!==t?t:L;function W(e){q(e)}delete i.ZP.styles.global;const Y=.055*M;var A=[];for(let o=0;o<V.length;)A.push((0,y.jsx)(d.Z,{mode:r,event:V[o],onClick:()=>{W(V[o-1])},removeBorders:!0,borderRadius:"5%",fontSize:Y},"collections-tile-"+o)),o+=1;(0,o.useEffect)((()=>{(0,u.Oo)("Video shopping powered by Whatmore!")}),[]),(0,o.useEffect)((()=>{l.$.forEach((e=>{var t;const r=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||e.querySelector('.whatmore-template-type[data-wh="template-e"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-c"]')||e.querySelector('.whatmore-template-type[data="template-e"]');if(!r)return;r&&e&&(e.style.minHeight="0px")}))}),[]);const[D,X,_]=(0,x.YD)({triggerOnce:!1});return(0,y.jsx)(n.C,{value:v,children:(0,y.jsx)("div",{className:F?"whatmore-collection-events":"whatmore-carousel-events",children:(0,y.jsx)(a.x,{theme:i.ZP,cssVarsRoot:E,resetCSS:!1,children:(0,y.jsxs)(m.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[e.heading.trim().length>0&&!F&&(0,w.wXY)(z)?(0,y.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,y.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",H,"important"),e.style.setProperty("font-size",B+"px","important"))},style:{color:I,backgroundClip:"text",textAlign:"center",fontWeight:(0,w.wOV)(z),lineHeight:(0,w.vY4)(z),letterSpacing:(0,w.X2K)(z)},children:e.heading})}):(0,y.jsx)(y.Fragment,{}),(0,y.jsx)("div",{ref:D,style:{marginLeft:Z+"px",marginRight:Z+"px"},children:(0,y.jsx)(g.P,{renderElement:e=>(0,y.jsx)(y.Fragment,{children:e.eventData}),dataList:A,spacing:b,defaultHeight:S*R*.01+"px",defaultWidth:M*R*.01+"px",retainAlreadyRenderedElements:!0})}),(0,w.dhc)(z)&&F&&!X&&-1==e.index&&(0,y.jsx)(f.Z,{event:V[0],inVideoClick:W,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[61,191,465],{4658:function(t,e,n){n.r(e),n.d(e,{default:function(){return R}});var o=n(7313),r=n(6090),i=n(7616),a=(n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811),n(9302)),l=n(2575),s=n(7129),d=n(5109),c=(n(3439),n(7753)),p=n(7931),u=n(9018),v=n(9854),x=n(3933),h=n(8866),f=n(868),g=n(342),m=n(3437),y=n(3455),w=n(6417);var j=function(t){var e;const n=t.isMuted,o=null!==(e=t.iconSize)&&void 0!==e?e:30;function r(){t.onToggle()}return(0,w.jsx)("div",{style:{cursor:"pointer"},children:n?(0,w.jsx)(y.Z,{sx:{color:"white",fontSize:o,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{r()}}):(0,w.jsx)(m.Z,{sx:{color:"white",fontSize:o,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{r()}})})},b=n(1896),C=n(8984),I=n(58),S=n(6119),M=n(4522),k=n(778),P=n(3433);function Z(t){const[e,n]=(0,o.useState)(t.initialMuteState),r=t.events,i=t.activeEventIndex,a=t.setActiveEventIndex,l=(0,c.MO)("whatmoreShopId"),s="portrait"===t.mode;function d(){(0,v.hr)(l)&&t.isCTAPresent||(n(!e),(0,C.KE)()&&(0,I.QV)(),t.onMuteToggle())}const x=t.event;return(0,w.jsx)("div",{style:{position:(0,v.SJ)(l)?"absolute":"relative",top:(0,v.SJ)(l)?0:"",zIndex:1,bottom:(0,v.SJ)(l)?"":"100%",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,w.jsxs)("div",{className:"banner-event-overlay",style:{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",width:"100%",paddingRight:"1%",paddingLeft:"1%",paddingTop:"1%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:[!(t.isCTAPresent&&(0,v.hr)(l)||"video"!==x.event_type)&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{style:{width:"100%",height:"100%"},onClick:()=>d()}),(0,w.jsx)(j,{isMuted:e,onToggle:()=>{d()}})]}),r.length>1&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{classname:"banner-navigation-overlay",style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:t=>{t.stopPropagation(),a(0===i?r.length-1:i-1)},children:(0,w.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px"},children:(0,w.jsx)(p.Z,{})})})}),(0,w.jsx)("div",{style:{position:"absolute",right:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:t=>{t.stopPropagation(),a(i===r.length-1?0:i+1)},children:(0,w.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px",textAlign:"center"},children:(0,w.jsx)(u.Z,{})})})}),(0,v.cRS)(l)&&(0,w.jsx)("div",{style:{display:"flex",position:"absolute",bottom:"7%",left:"50%",transform:"translateX(-50%)",gap:"24px",zIndex:1},children:r.map(((t,e)=>{const n=e===i;return(0,w.jsx)("button",{onClick:t=>{t.stopPropagation(),a(e)},style:{width:n?"25px":s?"12px":"14px",height:s?"12px":"14px",borderRadius:n?"10px":"50%",backgroundColor:n?(0,v.YFz)(l):"#f8eeec",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.3)"}},e)}))})]})]}),(0,w.jsx)("div",{style:{width:"100%",height:"100%"},onClick:()=>d()})]})})}var z=function(t){var e,n,r;const[i,a,l]=(0,h.Z)(),[s,p]=(0,o.useState)(!0),{whatmoreUITheme:u}=(0,o.useContext)(d.I),m=(0,c.MO)("whatmoreVideoTileSize"),{ref:y,inView:j,entry:C}=(0,x.YD)({triggerOnce:!1}),{whatmoreWidgetSourceDetails:I}=(0,o.useContext)(d.I),z=(0,c.MO)("whatmoreShopId"),L=t.events,R=t.activeEventIndex,T=t.setActiveEventIndex,E=L[R],A=((0,v.nzC)(z),(0,g.uv)(E)),F=(0,g.WN)(E);if("portrait"===i&&!A)return(0,w.jsx)(w.Fragment,{});if("landscape"===i&&!F)return(0,w.jsx)(w.Fragment,{});const N=(0,f.V)("portrait"===i?A:F),_=m/100*(0,v.b4p)(z),V=m/100*(0,v.GmU)(z),B="portrait"===i?(0,v.oOc)(z):(0,v.snl)(z),D="portrait"===i?l*_:l*V,O=D*B,J=null!=(null===(e=E.cta)||void 0===e||null===(n=e[1])||void 0===n?void 0:n.cta_link);return(0,o.useEffect)((()=>{d.$.forEach((t=>{var e;if(!(null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-banner-a"]')))return;const n=t.querySelector(".whatmore-base");n&&(n.style.minHeight="0px")}))}),[]),(0,w.jsxs)("div",{ref:y,onClick:()=>{var t,e;(0,M.GF)({userInteractionType:k.K.BANNER_WIDGET_CLICKED,widgetSourceDetails:I,event:L[R]}),(0,v.hr)(z)&&J&&!(0,v.j1_)(z)&&window.open(null===(t=E.cta)||void 0===t||null===(e=t[1])||void 0===e?void 0:e.cta_link,"_self")},style:{position:"relative",margin:"0 auto",width:(0,v.SJ)(z)?"100%":D,minHeight:(0,v.SJ)(z)?l*B:"",height:(0,v.SJ)(z)?"auto":O,borderWidth:(0,v.alU)(z),borderColor:(0,v.qPe)(z),overflow:"hidden",cursor:"pointer"},children:[(0,w.jsx)(b.Z,{height:"100%",width:"100%",url:N,isPlaying:j,event:E,isVideoMuted:s,setDuration:t.setDuration,source:P.j.BANNER}),(0,w.jsx)(Z,{isCTAPresent:J,events:L,activeEventIndex:R,setActiveEventIndex:T,event:E,mode:i,onMuteToggle:()=>p(!s),initialMuteState:s}),(0,v.j1_)(z)&&(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"portrait"===i?"12%":"20%"},className:"whatmore-ios-css-relative-fix",children:(0,w.jsx)("div",{children:(0,w.jsx)(S.Z,{event:E,cta:null===E||void 0===E||null===(r=E.cta)||void 0===r?void 0:r[1],fontFactor:.6})})})]})};const L=(0,l.Z)({key:"whatmore-css-bv"});var R=function(t){const{whatmoreRootId:e}=(0,o.useContext)(d.I),[n,l]=(0,o.useState)(0),c=t.events,[p,u]=(0,o.useState)(-1);let v;return(0,o.useEffect)((()=>{v&&clearInterval(v);const t="video"===c[n].event_type,e=t?1e3*p:6e3;return t?-1!=p&&(v=setInterval((()=>{l((t=>t===c.length-1?0:t+1))}),e)):v=setInterval((()=>{l((t=>t===c.length-1?0:t+1))}),e),()=>{clearInterval(v)}}),[p,n]),delete i.ZP.styles.global,(0,w.jsx)(a.C,{value:L,children:(0,w.jsx)("div",{className:"whatmore-banner-events",children:(0,w.jsx)(r.x,{theme:i.ZP,cssVarsRoot:e,resetCSS:!1,children:(0,w.jsx)(s.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,w.jsx)(z,{activeEventIndex:n,events:c,setActiveEventIndex:l,setDuration:u})})})})})}},3867:function(t,e,n){var o=n(8816),r=n(417),i=n(4885),a=n(7753),l=n(5109),s=n(7313),d=n(6417);e.Z=function(t){var e;const{whatmoreUITheme:n}=(0,s.useContext)(l.I),[c]=(0,a.j1)("whatmoreSecondaryColor"),[p,u]=(0,a.j1)("productRatings"),v=(0,a.MO)("whatmorePrimaryFont"),x=(t.storeId,t.productId),h=(t.productLink,t.fontSize),f=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===p||"undefined"==typeof p||!(x in p)||p[x].avgRating>5)return(0,d.jsx)(d.Fragment,{});const g=p[x].avgRating,m=p[x].totalRatings;return(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(g))].map(((t,e)=>(0,d.jsx)(o.Z,{sx:{color:c,fontSize:h+"px"}},"star-icon"+e))),g-Math.floor(g)>.2?(0,d.jsx)(r.Z,{sx:{color:c,fontSize:h+"px"}},"star-half-icon"):g-Math.floor(g)==0?(0,d.jsx)(d.Fragment,{}):(0,d.jsx)(i.Z,{sx:{color:c,fontSize:h+"px"}},"star-outline-icon"),[...Array(Math.floor(5-g))].map(((t,e)=>(0,d.jsx)(i.Z,{sx:{color:c,fontSize:h+"px"}},"star-outline-icon-"+e))),(0,d.jsx)("div",{children:(0,d.jsx)("div",{width:"2px"})}),(0,d.jsx)("div",{children:(0,d.jsx)("div",{style:{backgroundColor:c,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,d.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*h+"px","important"),t.style.setProperty("font-family",v,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",g,"\xa0"]})})}),(0,d.jsx)("div",{children:(0,d.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",f,"important"),t.style.setProperty("font-size",.8*h+"px","important"),t.style.setProperty("font-family",v,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+m+")"]})})]})})}},7129:function(t,e,n){n.d(e,{V:function(){return o}});const o=(0,n(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},9363:function(t,e,n){n.d(e,{$:function(){return a},s:function(){return i}});var o=n(9854),r=n(7753);function i(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=(0,r.MO)("whatmoreShopId");return"shopify"!=(0,o.Ipo)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}function a(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const n=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],o=/\.(jpeg|jpg|gif|png|svg|webp)$/i,r=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==o&&void 0!==o&&o.test(n)?"image":null!==r&&void 0!==r&&r.test(n)?"video":void 0}},5456:function(t,e,n){n.d(e,{B:function(){return o}});const o=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},1195:function(t,e,n){var o=n(4836);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.default)((0,i.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");e.Z=a},7931:function(t,e,n){var o=n(4836);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.default)((0,i.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore");e.Z=a},9018:function(t,e,n){var o=n(4836);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.default)((0,i.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");e.Z=a},9723:function(t,e,n){var o=n(4836);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.default)((0,i.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82z"}),"PlayArrowRounded");e.Z=a},8816:function(t,e,n){var o=n(4836);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.default)((0,i.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");e.Z=a},417:function(t,e,n){var o=n(4836);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");e.Z=a},4885:function(t,e,n){var o=n(4836);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarOutline");e.Z=a},3439:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[622],{3827:function(e,t,o){o.r(t);var r=o(7313),i=o(6090),n=o(7616),l=(o(6143),o(7850),o(4444),o(7244),o(123),o(5892),o(1811),o(9302)),a=o(2575),s=o(8866),p=o(7753),x=o(7129),d=o(5109),h=o(8631),c=o(6066),m=o(8782),u=o(9821),g=o(7381),f=o(5380),w=o(3933),v=o(9854),j=o(6417);const C=(0,a.Z)({key:"whatmore-css-cv"});t.default=function(e){const t=e.events,[o,a,y]=(0,s.Z)(),[b,S,k,R,Z]=(0,u.Z)(),[M,P]=(0,r.useState)(Array(t.length).fill(0).map((()=>Math.random()))),T=(0,p.MO)("whatmoreCollectionsTileSize"),B=(0,p.MO)("whatmoreCollectionsTileSizePortrait"),L="portrait"===o?B:T,O="portrait"==o?0:(0,p.MO)("whatmoreLandscapePadding"),I=(0,p.MO)("whatmoreCollectionsTilesSpacing"),{whatmoreIsCollectionsTemplate:A}=(0,r.useContext)(d.I),D=(0,p.MO)("whatmoreShopId"),{whatmoreRootId:E}=(0,r.useContext)(d.I),F=e.onClick;function V(e){F(e)}(0,r.useEffect)((()=>{(0,g.Oo)("Video shopping powered by Whatmore!")}),[]),delete n.ZP.styles.global;var z=[];for(let r=0,i=!1;r<t.length;)i&&r!=t.length-1&&M[r]>.2?(z.push((0,j.jsx)(c.Z,{mode:o,event1:t[r],event2:t[r+1],onClick:()=>{V(t[r-1])}},"collections-tile-"+r)),r+=2,i=!i):(z.push((0,j.jsx)(h.Z,{mode:o,event:t[r],onClick:()=>{V(t[r-1])},borderRadius:"10%",removeBorders:!1},"collections-tile-"+r)),r+=1,i=!i);(0,r.useEffect)((()=>{d.$.forEach((e=>{var t;if(!(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-a"]')))return;e&&(e.style.minHeight="0px")}))}),[]);const[_,q,H]=(0,w.YD)({triggerOnce:!1});return(0,j.jsx)(l.C,{value:C,children:(0,j.jsx)("div",{className:A?"whatmore-collection-events":"whatmore-carousel-events",children:(0,j.jsx)(i.x,{theme:n.ZP,cssVarsRoot:E,resetCSS:!1,children:(0,j.jsxs)(x.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,j.jsx)("div",{ref:_,style:{marginLeft:O+"px",marginRight:O+"px"},children:(0,j.jsx)(m.P,{renderElement:e=>(0,j.jsx)(j.Fragment,{children:e.eventData}),dataList:z,spacing:I,defaultHeight:b*L*.01+"px",defaultWidth:S*L*.01+"px",retainAlreadyRenderedElements:!0})}),(0,v.dhc)(D)&&A&&!q&&-1==e.index&&(0,j.jsx)(f.Z,{event:t[0],inVideoClick:V,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})}},6066:function(e,t,o){var r=o(7313),i=o(9854),n=o(7753),l=(o(9111),o(123),o(9778),o(4892)),a=o(7129),s=o(9821),p=o(6417);t.Z=function(e){var t;const[o,x,d,h,c]=(0,s.Z)(),[m]=(0,n.j1)("whatmoreSecondaryColor"),[u]=(0,n.j1)("whatmoreShopId"),[g]=(0,n.j1)("whatmoreCollectionsTileSize"),[f]=(0,n.j1)("whatmoreCollectionsTileSizePortrait"),w="portrait"===e.mode?f:g,[v,j]=(0,r.useState)(!1),C=(0,i.f63)(u);(0,r.useContext)(a.V);const y=e.event1,b=e.event2,S=e.onClick,k=.01*w,R=o*k,Z=o*k*.5,M=x*k,P=null!==(t=e.borderRadius)&&void 0!==t?t:"10%",T="15%",B=e.removeBorders;return(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",flexShrink:0,height:R+"px",width:M+"px",marginLeft:B?"2px":"5px",marginRight:B?"2px":"5px",marginTop:B?"2px":"5px",marginBottom:B?"2px":"5px",cursor:"pointer"},children:(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:B?"0px":P,boxShadow:B?"":"0px 1px 1px 0px "+m+"50, 0px -1px 1px 0px "+C+"50, 1px 0px 1px 0px "+m+"50, -1px 0px 1px 0px "+C+"80, 1px -1px 1px 0px "+m+"80, -1px 1px 1px 0px "+C+"DA, 1px 1px 1px 0px "+m+"DA, -1px -1px 1px 0px "+C+"DA"},onClick:()=>{j(!0),S(y)},className:[v?"whatmore-scale-on-tap":""].join(" "),children:[(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:Z+"px",width:M+"px",borderTopLeftRadius:B?"0px":T,borderTopRightRadius:B?"0px":T,borderBottom:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,p.jsx)(l.Z,{height:"100%",width:"100%",url:y.thumbnail_image,isPlaying:!0,event:y})}),(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:Z+"px",width:M+"px",borderBottomLeftRadius:B?"0px":T,borderBottomRightRadius:B?"0px":T,borderTop:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,p.jsx)(l.Z,{height:"100%",width:"100%",url:b.thumbnail_image,isPlaying:!0,event:b})})]})})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[688],{9219:function(t,n,o){o.d(n,{p_:function(){return p},Rb:function(){return v},jx:function(){return l}});var i=o(6230),r=o(6040),e=o.n(r),c=o(9854);function a(t,n){var o,i;return"STRI2XC0BMX"==n||"STRDG36BBP5"==n?null!==(i=(0,c.QxN)(n)[t])&&void 0!==i?i:t+" ":null!==(o=(0,c.QxN)(n)[t])&&void 0!==o?o:e()(t)}function u(){return null!=window.Shopify||"undefined"!=typeof window.Shopify}function s(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function d(t){if(t%1>=.1){return t.toString().split(".")[0].length>=4?parseInt(t):t.toFixed(2)}return parseInt(t)}function l(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"INR";if(!t||void 0==typeof t)return"";if(!u()){if("70993772860"==o||"72534294803"==o)return"$"+n+s(d(t));"STRY2V4XO5L"!=o&&"STRTFEDEDAP"!=o||(n="");const r="STRY2V4XO5L"==o||"STRTFEDEDAP"==o?t.toFixed(2):d(t);return a(null!==i&&void 0!==i?i:"INR",o)+n+s(r)}const r=t/100;if("57677938765"==o&&"object"==typeof Currency&&"INR"!==Currency.currentCurrency){var e;const t=null!==(e=a(Currency.currentCurrency,o))&&void 0!==e?e:"",i=Currency.convert(r,"INR",Currency.currentCurrency),c=isNaN(i)?"":s(d(i));return"".concat(t).concat(n).concat(c)}if("1972174947"==o&&"object"==typeof DoublyGlobalCurrency&&"PKR"!==DoublyGlobalCurrency.currentCurrency){var c;const t=null!==(c=a(DoublyGlobalCurrency.currentCurrency,o))&&void 0!==c?c:"",i=DoublyGlobalCurrency.convert(r,"PKR",DoublyGlobalCurrency.currentCurrency),e=isNaN(i)?"":s(d(i));return"".concat(t).concat(n).concat(e)}if("4392910921"==o&&"object"==typeof Currency&&"USD"!==Currency.currentCurrency){var l;const t=null!==(l=a(Currency.currentCurrency,o))&&void 0!==l?l:"",i=Currency.convert(r,"USD",Currency.currentCurrency),e=isNaN(i)?"":s(d(i));return"".concat(t).concat(n).concat(e)}const p=window.Shopify.currency?window.Shopify.currency.active:i;return"24638181"==o?s(d(r))+n+a(p,o):a(p,o)+n+s(d(r))}async function p(t,n,o){for(let a=0;a<t.products.length;a++){var r,e,c;const u=await(0,i.vX)(t.products[a],n,o);t.products[a].price=null!==(r=u.price)&&void 0!==r?r:t.products[a].price,t.products[a].compare_price=null!==(e=u.compare_at_price)&&void 0!==e?e:t.products[a].compare_price,t.products[a].currency=null!==(c=u.currency_code)&&void 0!==c?c:t.products[a].currency,"STRTFEDEDAP"==o&&(t.products[a].discount=u.discount)}return t}async function v(t,n,o){var r,e,c;const a=await(0,i.vX)(t,n,o);return t.price=null!==(r=a.price)&&void 0!==r?r:t.price,t.compare_price=null!==(e=a.compare_at_price)&&void 0!==e?e:t.compare_price,t.currency=null!==(c=a.currency_code)&&void 0!==c?c:t.currency,t}},5945:function(t,n,o){o.d(n,{s:function(){return r}});var i=o(7753);function r(t){const n=(0,i.MO)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==n||"72442478904"==n?t:t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}},6230:function(t,n,o){o.d(n,{jg:function(){return yt},TE:function(){return St},rY:function(){return Tt},OM:function(){return gt},vX:function(){return bt},ln:function(){return wt}});var i=o(9854),r=o(8507);const e={STRDG36BBP5:"https://flash.andaazfashion.com",STRI2XC0BMX:"https://www.andaazfashion.com"};function c(t){const n=r.Z.get("andaaz_currency_code");return n||null}async function a(t,n){const o=function(t){return e[t]}(n),i=await fetch("".concat(o,"/whatmore/index/index/?url=").concat(function(t){var n,o;return null===t||void 0===t||null===(n=t.product_link)||void 0===n||null===(o=n.split(".com/"))||void 0===o?void 0:o[1]}(t)).concat(null==c()?"¤cy_code=GBP":"¤cy_code="+c()),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t)));return function(t){const n=t.data.product_data;var o=[{id:n.product_id,product_id:n.product_id,title:n.product_title,price:n.price,compare_at_price:n.mrp,currency_code:n.currency_code,available:"in_stock"==n.stock_status,option1:null,option2:null,option3:null}];const i=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{id:n.product_id,title:n.product_title,body_html:"",variants:o,options:i}}(i)}const u={STRCGMYX28X:"https://"+window.location.hostname,STRBG6F06XL:"https://"+window.location.hostname,STR1QF8R1DW:"https://"+window.location.hostname},s={S:0,M:1,L:2,XL:3,XXL:4};async function d(t){const n=localStorage.getItem("_whatmore_kt"),o=localStorage.getItem("_whatmore_kt_start_time");if(n&&o&&(new Date).getTime()<=parseInt(o)+6e5)return n;const i=await async function(t){const n="https://api.whatmore.live/product/access/ans?store_id=".concat(t);return await fetch(n).then((t=>t.json()))}(t);return localStorage.setItem("_whatmore_kt",i.token),localStorage.setItem("_whatmore_kt_start_time",(new Date).getTime()),i.token}function l(t){return u[t]}async function p(t,n){const o=l(n),i=await fetch(o+"/kartify/products?skus=".concat(function(t){return t.product_metadata.sku_id}(t)),{headers:{apiKey:await d(n)}}).then((t=>t.json())).catch((t=>console.error(t)));return function(t){var n,o,i,r,e,c,a;const u=null===(n=t.products)||void 0===n?void 0:n[0];"options"in u&&0!=u.options.length||(u.options=[{product_option_id:"invalid",product_option_value:[{product_option_value_id:"invalid",option_value_id:"46",name:"invalid",image:"",quantity:"1",subtract:"1",price:"0.0000",price_prefix:"+",special_price:"0.0000",special_price_prefix:"+",weight:"0.00000000",weight_prefix:"+",sku:"8903568188345"}],option_id:"1",name:"invalid",type:"radio",value:"",required:"1"}]);var d=u.variants.map((t=>{var n,o;return{id:u.product_id+"::"+(null===t||void 0===t?void 0:t.product_option_id)+"::"+(null===t||void 0===t?void 0:t.product_option_value_id),product_id:u.product_id,title:null===t||void 0===t?void 0:t.title,price:null===t||void 0===t||null===(n=t.itemPrice)||void 0===n?void 0:n.netSellerPayable,compare_at_price:null===t||void 0===t||null===(o=t.itemPrice)||void 0===o?void 0:o.mrp,available:t.status&&t.live,option1:""==t.size?null:t.size,option2:null,option3:null,options:[null===t||void 0===t?void 0:t.size]}}));(d=d.filter((t=>1==t.available))).sort(((t,n)=>s[t.option1]-s[n.option1]));const l=d.map((t=>t.option1)),p=[null===u||void 0===u||null===(o=u.variants)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.imageUrl];return{id:u.product_id,title:null===(r=u.variants)||void 0===r||null===(e=r[0])||void 0===e?void 0:e.title,body_html:u.short_description,variants:d,options:l.length>0&&!l.includes(null)?[{id:u.product_id,product_id:u.product_id,name:""!==(null===(c=d)||void 0===c||null===(a=c[0])||void 0===a?void 0:a.size)?"Size":"",position:1,values:l}]:[],images:p}}(i)}async function v(t,n,o){l(o);const i=t.split("::"),r=i[0],e="null"==i[1]?null:i[1],c="null"==i[2]?null:i[2];return whatmoreatc(r,n,e,c),await new Promise((t=>setTimeout(t,1500))),"whatmoreatc_success"in localStorage&&"true"==localStorage.getItem("whatmoreatc_success")?{ok:!0,status:200,json:function(){return{}}}:{ok:!1,status:500,json:function(){return{}}}}const _={STRR72TX6AT:"https://www.cbazaar.com"};async function h(t,n){function o(t){const n=t.data.product_data[0];var o=[{id:n.product_id,product_id:n.product_id,title:n.product_title,price:100*n.price,compare_at_price:100*n.mrp,currency_code:n.currency_code,available:!n.outOfStock,option1:null,option2:null,option3:null,options:[]}];const i=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{id:n.product_id,title:n.product_title,body_html:"",variants:o,options:i}}const i=function(t){return _[t]}(n),r=await fetch(i+"/productsv3api/getproductdetails/"+function(t){return t.product_metadata.sku_id}(t),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t)));return o(r)}const f={STR2FOC6KG9:"https://api.whatmore.live/private/do/product/info?store_id=STR2FOC6KG9&product_id=",STRDOIDF6O7:"https://api.whatmore.live/private/do/product/info?store_id=STRDOIDF6O7&product_id="};async function m(t,n){const o=function(t){return f[t]}(n),i=await fetch(o+function(t){var n;return null===t||void 0===t||null===(n=t.product_metadata)||void 0===n?void 0:n.product_id}(t)).then((t=>t.json())).catch((t=>console.error(t)));return function(t){var n,o;const i=[];var r=t.data.product_data;null===r||void 0===r||null===(n=r.options)||void 0===n||null===(o=n.items)||void 0===o||o.forEach((t=>{if(null!==t&&void 0!==t&&t.stage){var n,o;null===t||void 0===t||null===(n=t.stage)||void 0===n||null===(o=n.items)||void 0===o||o.forEach((n=>{if(null!==n&&void 0!==n&&n.stage){var o,e;null===n||void 0===n||null===(o=n.stage)||void 0===o||null===(e=o.items)||void 0===e||e.forEach((o=>{const e={id:null===o||void 0===o?void 0:o.id,title:null===r||void 0===r?void 0:r.product_title,price:null===o||void 0===o?void 0:o.price,image:null===o||void 0===o?void 0:o.thumbnail_image,available:!0,option1:null===t||void 0===t?void 0:t.variant,option2:null===n||void 0===n?void 0:n.variant,option3:null===o||void 0===o?void 0:o.variant,swatchUrl1:null===t||void 0===t?void 0:t.swatchUrl,swatchUrl2:null===n||void 0===n?void 0:n.swatchUrl,swatchUrl3:null===o||void 0===o?void 0:o.swatchUrl};i.push(e)}))}else{const o={id:null===n||void 0===n?void 0:n.id,title:null===r||void 0===r?void 0:r.product_title,price:null===n||void 0===n?void 0:n.price,image:null===n||void 0===n?void 0:n.thumbnail_image,available:!0,option1:null===t||void 0===t?void 0:t.variant,option2:null===n||void 0===n?void 0:n.variant,option3:null,swatchUrl1:null===t||void 0===t?void 0:t.swatchUrl,swatchUrl2:null===n||void 0===n?void 0:n.swatchUrl};i.push(o)}}))}else{const n={id:null===t||void 0===t?void 0:t.id,title:null===r||void 0===r?void 0:r.product_title,price:null===t||void 0===t?void 0:t.price,available:!0,image:null===t||void 0===t?void 0:t.thumbnail_image,option1:null===t||void 0===t?void 0:t.variant,option2:null,option3:null,swatchUrl1:null===t||void 0===t?void 0:t.swatchUrl};i.push(n)}}));const e=[];i.forEach((t=>{var n,o,i,c,a,u,s,d,l;null!==t&&void 0!==t&&t.option1&&(0==e.length&&e.push({name:null===r||void 0===r||null===(n=r.options)||void 0===n?void 0:n.id,position:1,values:[]}),!e[0].values.includes(t.option1)&&e[0].values.push(t.option1));null!==t&&void 0!==t&&t.option2&&(1==e.length&&e.push({name:null===r||void 0===r||null===(o=r.options)||void 0===o?void 0:o.items[0].stage.id,position:2,values:[]}),!e[1].values.includes(t.option2)&&e[1].values.push(t.option2));null!==t&&void 0!==t&&t.option3&&(2==e.length&&e.push({name:null===r||void 0===r||null===(i=r.options)||void 0===i||null===(c=i.items)||void 0===c||null===(a=c[0])||void 0===a||null===(u=a.stage)||void 0===u||null===(s=u.items)||void 0===s||null===(d=s[0])||void 0===d||null===(l=d.stage)||void 0===l?void 0:l.id,position:3,values:[]}),!e[2].values.includes(t.option3)&&e[2].values.push(t.option3))}));const c=e.findIndex((t=>{var n,o;return null===t||void 0===t||null===(n=t.name)||void 0===n||null===(o=n.toLowerCase())||void 0===o?void 0:o.includes("color")}));return{id:r.product_id,title:r.product_title,body_html:r.description,variants:i,options:e,images:-1!==c?i.map((t=>({optionsrc:null===t||void 0===t?void 0:t["swatchUrl".concat(c+1)],src:null===t||void 0===t?void 0:t.image,color:null===t||void 0===t?void 0:t["option".concat(c+1)]}))):i.map((t=>null===t||void 0===t?void 0:t.image))}}(i)}const w={STRRPY8YRZE:"https://idaho-o.com"},y=(window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),"Y2tfZTI1OWVmNWVlNzg5MzIzYzIzOWU3ZDE0NjQwNmUwZmZkZGY4NDQ5Yzpjc19iYzdkZjI0MGEwYTgzNDhlZjNhMTI4ZTA3MDRkMmMwNmU5ZGM4NTM5");function T(t){return w[t]}async function S(t,n){const o=T(n),i=await fetch(o+"/wp-json/wc/v3/products/"+function(t){return t.product_metadata.sku_id}(t),{method:"GET",headers:{Authorization:"Basic "+y}}).then((t=>t.json())).catch((t=>console.error(t)));return function(t){var n;const o=t;var i=o.attributes[0].options.map(((t,n)=>{var i;return{id:(null!==(i=o.variations[n])&&void 0!==i?i:o.variations[0])+":"+o.id+":"+t[1],product_id:o.id,title:o.name,price:o.price,compare_at_price:o.price,available:"instock"===o.stock_status,option1:t,option2:null,option3:null,options:[t]}}));const r=(i=i.filter((t=>1==t.available))).map((t=>t.option1)),e=null===o||void 0===o||null===(n=o.images)||void 0===n?void 0:n.map((t=>null===t||void 0===t?void 0:t.src));return{id:o.product_id,title:o.name,body_html:o.description,variants:i,images:e,options:[{id:o.product_id,product_id:o.product_id,name:o.attributes[0].name.toUpperCase(),position:1,values:r}]}}(i)}async function g(t,n,o){const i=t.split(":"),r=i[0],e=i[1],c=i[2],a=T(o)+"/wp-admin/admin-ajax.php",u={Authorization:"Basic "+y},s=new FormData;s.append("action","woocommerce_ajax_add_to_cart"),s.append("product_id",e),s.append("product_sku",""),s.append("quantity",n),s.append("variation_id",r),s.append("variation[attribute_pa_size]",c?c.toLowerCase():"");return await fetch(a,{method:"POST",headers:u,body:s}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const b={STRVHD8LG12:"https://prod.indina.in"};async function R(t,n){const o=function(t){return b[t]}(n),i=await fetch("".concat(o,"/api/products/").concat(function(t){var n,o;return null===t||void 0===t||null===(n=t.product_link)||void 0===n||null===(o=n.split("/products/"))||void 0===o?void 0:o[1]}(t)),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t)));return function(t){var n,o,i,r;const e=t;var c=[{id:e.id,product_id:e.id,title:e.name,price:null===(n=e.product_attributes)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.final_price,compare_at_price:null===(i=e.product_attributes)||void 0===i||null===(r=i[0])||void 0===r?void 0:r.price,currency_code:"INR",available:!0,option1:null,option2:null,option3:null}];const a=(c=c.filter((t=>1==t.available))).map((t=>t.option1));return{id:e.id,title:e.name,body_html:"",variants:c,options:a}}(i)}const k={STRGXL92H5M:"https://webapi.jaipurrugs.com"};async function j(t){const n=localStorage.getItem("_whatmore_jrugs_kt"),o=localStorage.getItem("_whatmore_jrugs_end_time");if(n&&o&&(new Date).getTime()<=parseInt(o))return n;const i=await async function(t){return await fetch("https://webapi.jaipurrugs.com/api/oauth/access_token",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:"test@pixxeldigital.com",Password:"test@123",client_id:"DD92F35C-FA0F-48A8-AF09-13197463D6CF",client_secret:"373C883D-350F-4823-BEDD-F85241777825",grant_type:"password"})}).then((t=>t.json()))}();return localStorage.setItem("_whatmore_jrugs_kt",i.token),localStorage.setItem("_whatmore_jrugs_end_time",(new Date).getTime()+6e5),i.token}async function C(t,n){const o=function(t){return k[t]}(n);return function(t){const n=null===t||void 0===t?void 0:t[0],o=[{id:n.product_id,product_id:n.product_id,title:n.product_title,price:n.price,available:"in_stock"==n.stock_status,compare_at_price:n.mrp,option1:null,option2:null,option3:null}];return{id:n.product_id,title:n.product_title,body_html:n.description,variants:o,currency_code:n.currency_code,options:[]}}(await fetch(o+"/api/WebsiteMaster/test/Whatmore-product-detail",{method:"POST",body:JSON.stringify({product_id:t.product_id}),headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(await j())}}).then((t=>t.json())).catch((t=>console.error(t))))}var P;const N={STRMM0QP0CU:"https://"+window.location.hostname},D=null!==(P=r.Z.get("form_key"))&&void 0!==P?P:"undefined",U=(window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),"ds243corrt3qkd1rhoeyfes3ztefxjae");function I(t){return N[t]}async function O(t,n){var o=await async function(t){const n=I(t);return(await fetch(n+"/rest/V1/products/attributes/ready_to_wear_sizes",{method:"GET",headers:{Authorization:"Bearer "+U}}).then((t=>t.json())).catch((t=>console.error(t)))).options.reduce(((t,n,o)=>(n.value&&n.label&&(t[n.value]=n.label),t)),{})}(n),i=[];return t.split(",").forEach((t=>{t in o&&i.push(t+":"+o[t])})),i}async function G(t,n){async function o(t){const o=t,i=o.extension_attributes.is_ready_to_ware,r=o.custom_attributes.reduce(((t,n,o)=>(t[n.attribute_code]=n.value,t)),{});async function e(){var t;return{id:o.id,title:o.name,body_html:r.description,variants:[{id:"single_option::"+o.id,product_id:o.id,title:"",price:100*(null!==(t=r.special_price)&&void 0!==t?t:o.price),compare_at_price:100*o.price,available:!0,option1:o.extension_attributes.stock_item.item_id,option2:null,option3:null,options:[o.extension_attributes.stock_item.item_id]}],images:[{id:o.id,product_id:o.id,position:1,src:"https://ik.imagekit.io/wb2spwtue/kreeva/tr:h-433,w-315,q-80,cm-pad_resize/media/catalog/product"+r.thumbnail,variant_ids:["single_option::"+o.id]}],options:[{id:o.product_id,product_id:o.product_id,name:"Size",position:1,values:[o.extension_attributes.stock_item.item_id]}]}}if(0==i)return await e();if(!("ready_to_wear_sizes"in r))return await e();const c=await O(r.ready_to_wear_sizes,n),a=await async function(t){var n=[];return t.options.forEach((t=>{t.values.forEach((o=>{"Ready to wear"==o.title&&n.push(t.option_id+":"+o.option_type_id)}))})),n.length>0?n[0]:void 0}(t);return a?await async function(t,n){const i=t.map(((t,i)=>{var e;const c=o.extension_attributes.stock_item.item_id,a=t.split(":")[0],u=t.split(":")[1];return{id:"multi_option::"+o.id+":"+c+":"+u+":"+a+":"+n,product_id:o.id,title:"",price:100*(null!==(e=r.special_price)&&void 0!==e?e:o.price),compare_at_price:100*o.price,available:!0,option1:u,option2:null,option3:null,options:null}})),e=t.map(((t,n)=>{t.split(":")[0];return t.split(":")[1]}));return{id:o.id,title:o.name,body_html:r.description,variants:i,images:[{id:o.id,product_id:o.id,position:1,src:"https://ik.imagekit.io/wb2spwtue/kreeva/tr:h-433,w-315,q-80,cm-pad_resize/media/catalog/product"+r.thumbnail,variant_ids:["single_option::"+o.id]}],options:[{id:o.product_id,product_id:o.product_id,name:"Size",position:1,values:e}]}}(c,a):await e()}const i=I(n),r=await fetch(i+"/rest/default/V1/products/"+function(t){return t.product_metadata.sku_id}(t),{method:"GET",headers:{Authorization:"Bearer "+U,"User-Agent":"PostmanRuntime/7.32.3"}}).then((t=>t.json())).catch((t=>console.error(t)));return await o(r)}async function E(t,n,o){var i,r;if(t.startsWith("single_option::")){const i=t.split("::")[1],r=I(o)+"/ajaxcart",e={Authorization:"Bearer "+U},c=new FormData;c.append("product",i),c.append("item",i),c.append("qty",n),c.append("form_key",D);return await fetch(r,{method:"POST",headers:e,body:c}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const e=t.split("::")[1].split(":"),c=e[0],a=(e[1],e[2]),u=(e[3],null!==(i=e[4])&&void 0!==i?i:void 0),s=null!==(r=e[5])&&void 0!==r?r:void 0,d=I(o)+"/ajaxcart",l={Authorization:"Bearer "+U},p=new FormData;p.append("product",c),p.append("item",c),p.append("qty",n),p.append("options["+u+"]",s),p.append("options[size_"+u+"]",a),p.append("form_key",D);return await fetch(d,{method:"POST",headers:l,body:p}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const X={STRK70X2OVV:"http://dev-panash.panashindia.com",STR3PNIYEZ6:"https://www.panashindia.com"};async function z(t,n){function o(t){const n=t.data.product_data;var o=[{id:n.product_id,product_id:n.product_id,title:n.product_title,price:100*n.price,compare_at_price:100*n.mrp,currency_code:n.currency_code,available:!0,option1:null,option2:null,option3:null,options:[]}];const i=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{id:n.product_id,title:n.product_title,body_html:"",variants:o,options:i}}const i=function(t){return X[t]}(n),r=await fetch(i+"/productsv3api/Productdetails/index/sku/"+function(t){return t.product_metadata.sku_id}(t),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t)));return o(r)}const A={STRVIY73X3V:"https://staging.samyakk.com",STRBXUH5UGQ:"https://www.samyakk.com"};async function M(t,n){const o=function(t){return A[t]}(n),i=await fetch(o+"/rest/V2/get/product/"+function(t){var n,o;return null===t||void 0===t||null===(n=t.product_link)||void 0===n||null===(o=n.split(".com/"))||void 0===o?void 0:o[1]}(t),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t)));return function(t){var n;const o=t;var i=[{id:o.id,product_id:o.id,title:o.name,price:o.price,currency_code:null!==(n=o.currency_code)&&void 0!==n?n:"INR",available:o.stock_status,option1:null,option2:null,option3:null}];return i=i.filter((t=>1==t.available)),{id:o.id,title:o.name,body_html:"",variants:i,options:[]}}(i)}const F={STRY2V4XO5L:"https://usqa.utsav.bz",STRTFEDEDAP:"https://www.utsavfashion.com"};function Z(t){var n;return null!==(n=r.Z.get("currency_code"))&&void 0!==n?n:"USD"}async function B(t,n){const o=function(t){return F[t]}(n),i=await fetch(o+"/rest/default/V1/utsav/product/detail?url=".concat(function(t){var n,o;return null===t||void 0===t||null===(n=t.product_link)||void 0===n||null===(o=n.split("/product/"))||void 0===o?void 0:o[1]}(t)),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).then((t=>JSON.parse(t))).catch((t=>console.error(t)));return function(t){var n;const o=t.data.product_data;var i=[{id:o.product_id,product_id:o.product_id,title:o.product_title,price:o.price,available:"in_stock"==o.Stock_status,compare_at_price:o.mrp,currency_code:null!==(n=o.currency_code)&&void 0!==n?n:"INR",option1:null,option2:null,option3:null}];return i=i.filter((t=>1==t.available)),{id:o.product_id,title:o.product_title,body_html:"",options:[],variants:i,discount:o.discount_percentage}}(i)}const x={STRNV8MHJTF:"https://cart-pim.wforwoman.com/api/v1/whatmore",STR6HU283UZ:"https://cart-pim.wforwoman.com/api/v1/whatmore",STR9T3LLEJB:"https://cart-pim.wforwoman.com/api/v1/whatmore",STRWJMIOJNX:"https://cart-pim.wforwoman.com/api/v1/whatmore",STR1D5ONOZX:"https://cart-pim.wforwoman.com/api/v1/whatmore",STRUDQ36YAC:"https://cart-pim.wforwoman.com/api/v1/whatmore"},J={STRNV8MHJTF:1,STR6HU283UZ:1,STR9T3LLEJB:5,STRWJMIOJNX:2,STR1D5ONOZX:4,STRUDQ36YAC:3},V=window.location.hostname.substring(10,4)+"_cart",Y=window.location.hostname.substring(10,4)+"_carts",L=window.location.hostname.substring(10,4)+"_curr";function W(t){return J[t]}function q(t){return x[t]}function Q(t){var n;return null!==(n=r.Z.get(L))&&void 0!==n?n:"INR"}async function H(t,n){const o=q(n),i=await fetch(o+"/get-product?url_key="+function(t){return t.product_link.match(/\/([^\/]+)\/?$/)[1].replace(".html","")}(t)+"&store="+W(n)+"¤cy="+Q(),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t)));return function(t){const n=t.data.product_data[0];var o=Object.entries(n.variation).map((t=>{const n=t[1],o=n.configrable_atribute_value;return{id:n.id_product,product_id:n.id_product,title:"",price:100*n.selling_price,compare_at_price:100*n.price,available:"in-stock"==n.stock_status,option1:o,option2:null,option3:null,options:[o]}}));const i=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{id:n.product_id,title:n.product_title,body_html:n.description,variants:o,options:i}}(i)}async function K(t,n,o){const i=q(o),e=r.Z.get(V),c=r.Z.get(Y);var a={varient_id:t,qty:n,store:W(o)};e&&c&&(a={varient_id:t,qty:n,store:W(o),cart_id:e,cart_session:c});return await fetch(i+"/add-product",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then((t=>t.json())).then((t=>(e||(r.Z.set(V,t.data.cart_id,{expires:365}),r.Z.set(Y,t.data.cart_session,{expires:365})),{ok:!0,status:200,json:function(){return{}}})))}const $={STRJ5VPPT3U:"https://"+window.location.hostname,STR45JIP5JW:"https://"+window.location.hostname};function tt(t){return $[t]}async function nt(t,n){const o=tt(n),i=await fetch(o+"/catalog/whatsmoreproducts?slug="+function(t){return t.product_link.match(/\/([^\/]+)\/?$/)[1].replace(".html","")}(t),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t)));return function(t){const n=t;null==n.variations&&(n.variations="no-variations");var o=Object.entries(n.variations.split(",")).map((t=>{const o=t[1];return{id:n.product_id+"::"+o,product_id:n.product_id,title:"",price:100*n.price,compare_at_price:100*n.mrp,available:!0,option1:o,option2:null,option3:null,options:[o]}}));const i=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{id:n.product_id,title:n.product_title,body_html:n.description,variants:o,options:i}}(i.product_detail)}async function ot(t,n,o){const i=tt(o),r=t.split("::"),e=r[0],c=r.length>1?r[1]:"";return await fetch(i+"/cart/addtocart?productid="+e+("no-variations"!==c&&t?"&variation_value="+c:"")+"&qty="+n,{method:"GET"}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const it="https://www.ninecolours.com";function rt(t){const n=t.product_link.split("-");return n[n.length-1]}function et(t){return"STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t}function ct(t){return"STRRPY8YRZE"==t}function at(t){return"STR5KA9X0OZ"==t||"STRR72TX6AT"==t}function ut(t){return"STRMM0QP0CU"==t}function st(t){return"STRJ5VPPT3U"==t||"STR45JIP5JW"==t}function dt(t){return"STRCGMYX28X"==t||"STRBG6F06XL"==t||"STR1QF8R1DW"==t}function lt(t){return"STRK70X2OVV"==t||"STR3PNIYEZ6"==t}function pt(t){return"STRVIY73X3V"==t||"STRBXUH5UGQ"==t}function vt(t){return"STRGXL92H5M"==t}function _t(t){return"STRY2V4XO5L"==t||"STRTFEDEDAP"==t}function ht(t){return"STRDG36BBP5"==t||"STRI2XC0BMX"==t}function ft(t){return"STRVHD8LG12"==t}function mt(t){return"STR2FOC6KG9"==t||"STRDOIDF6O7"==t}async function wt(t,n){if(et(n))return H(t,n);if(ct(n))return S(t,n);if(at(n))return h(t,n);if(lt(n))return z(t,n);if(ut(n))return G(t,n);if(st(n))return nt(t,n);if(dt(n))return p(t,n);if(pt(n))return M(t,n);if(vt(n))return C(t,n);if(_t(n))return B(t,n);if(ht(n))return a(t,n);if(ft(n))return R(t,n);if(mt(n))return m(t,n);if("STRGA3S8N41"==n){function o(t){const n=t.data.product_data[0];return{id:n.product_id,title:n.product_title,body_html:n.description,variants:[{id:n.product_id,title:"variant-1",option1:"variant-1",option2:null,option3:null,available:!0,price:n.price,compare_at_price:n.mrp,currency_code:n.currency_code,options:["variant-1"]}],options:[{name:"variant",position:1,values:["variant-1"]}]}}const i=it;return o(await fetch(i+"/whatmore-productfetch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_code:rt(t)})}).then((t=>t.json())).catch((t=>console.error(t))))}return{}}async function yt(t,n,o){if(et(o))return await K(t,n,o);if(ct(o))return await g(t,n,o);if(ut(o))return E(t,n,o);if(st(o))return ot(t,n,o);if(dt(o))return v(t,n,o);if(mt(o))return async function(t,n,o){console.log(t,"vid");const i=t;return"function"===typeof window.addToCartWM?window.addToCartWM(i):console.error("addToCartWM function is not available."),{ok:!0,status:200,json:function(){return{}}}}(t);if("STRGA3S8N41"==o){const o=it;return await fetch(o+"/whatmore-addtocart ",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_id:t,qty:n})})}return{}}async function Tt(t,n,o){if(et(o))return async function(t,n,o){await K(t,n,o);const r="https://"+window.location.hostname;var e;e=(0,i.lj5)(o)?"".concat(r,"/checkout")+"?"+(0,i.awP)(o)+"&"+(0,i.n9s)(o)+"&"+(0,i.Uch)(o):"".concat(r,"/checkout"),window.location.href=e}(t,n,o);if(ct(o))return async function(t,n,o){await g(t,n,o);const r="https://"+window.location.hostname;var e;e=(0,i.lj5)(o)?"".concat(r,"/cart")+"?"+(0,i.awP)(o)+"&"+(0,i.n9s)(o)+"&"+(0,i.Uch)(o):"".concat(r,"/cart"),window.location.href=e}(t,n,o);if(ut(o))return async function(t,n,o){await E(t,n,o);const r="https://"+window.location.hostname;var e;e=(0,i.lj5)(o)?"".concat(r,"/checkout/cart")+"?"+(0,i.awP)(o)+"&"+(0,i.n9s)(o)+"&"+(0,i.Uch)(o):"".concat(r,"/checkout/cart"),window.location.href=e}(t,n,o);if(st(o))return async function(t,n,o){await ot(t,n,o);const r="https://"+window.location.hostname;var e;e=(0,i.lj5)(o)?"".concat(r,"/checkout")+"?"+(0,i.awP)(o)+"&"+(0,i.n9s)(o)+"&"+(0,i.Uch)(o):"".concat(r,"/checkout"),window.location.href=e}(t,n,o);if(dt(o))return async function(t,n,o){await v(t,n,o);const r="https://"+window.location.hostname;var e;e=(0,i.lj5)(o)?"".concat(r,"/checkout")+"?"+(0,i.awP)(o)+"&"+(0,i.n9s)(o)+"&"+(0,i.Uch)(o):"".concat(r,"/checkout"),window.location.href=e}(t,n,o);if("STRGA3S8N41"==o){await yt(t,n,o);const e="https://"+window.location.hostname;var r;r=(0,i.lj5)(o)?"".concat(e,"/cart")+"?"+(0,i.awP)(o)+"&"+(0,i.n9s)(o)+"&"+(0,i.Uch)(o):"".concat(e,"/cart"),window.location.href=r}return{}}async function St(t){if(et(t))return async function(t){const n="https://"+window.location.hostname;var o;o=(0,i.lj5)(t)?"".concat(n,"/cart")+"?"+(0,i.awP)(t)+"&"+(0,i.n9s)(t)+"&"+(0,i.Uch)(t):"".concat(n,"/cart"),window.location.href=o}(t);if(ct(t))return async function(t){const n="https://"+window.location.hostname;var o;o=(0,i.lj5)(t)?"".concat(n,"/cart")+"?"+(0,i.awP)(t)+"&"+(0,i.n9s)(t)+"&"+(0,i.Uch)(t):"".concat(n,"/cart"),window.location.href=o}(t);if(ut(t))return async function(t){const n="https://"+window.location.hostname;var o;o=(0,i.lj5)(t)?"".concat(n,"/checkout/cart")+"?"+(0,i.awP)(t)+"&"+(0,i.n9s)(t)+"&"+(0,i.Uch)(t):"".concat(n,"/checkout/cart"),window.location.href=o}(t);if(st(t))return async function(t){const n="https://"+window.location.hostname;var o;o=(0,i.lj5)(t)?"".concat(n,"/cart")+"?"+(0,i.awP)(t)+"&"+(0,i.n9s)(t)+"&"+(0,i.Uch)(t):"".concat(n,"/cart"),window.location.href=o}(t);if(dt(t))return async function(t){const n="https://"+window.location.hostname;var o;o=(0,i.lj5)(t)?"".concat(n,"/cart")+"?"+(0,i.awP)(t)+"&"+(0,i.n9s)(t)+"&"+(0,i.Uch)(t):"".concat(n,"/cart"),window.location.href=o}(t);if(mt(t))return function(t){const n="https://"+window.location.hostname;var o;o="".concat(n,"/bp"),window.location.href=o}();if("STRGA3S8N41"==t){const o="https://"+window.location.hostname;var n;n=(0,i.lj5)(t)?"".concat(o,"/cart")+"?"+(0,i.awP)(t)+"&"+(0,i.n9s)(t)+"&"+(0,i.Uch)(t):"".concat(o,"/cart"),window.location.href=n}return{}}function gt(t){if(et(t))return function(t){const n=r.Z.get(V),o=q(t);return fetch(o+"/get-cart",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cart_id:n})}).then((t=>t.json())).then((t=>({json:function(){return{item_count:t.data.item_count}}})))}(t);if(ct(t))return function(t){const n=T(t);return fetch(n+"/wp-json/wc/v3/cart",{method:"GET",headers:{Authorization:"Basic "+y}}).then((t=>t.json())).then((t=>({json:function(){var n;return{item_count:null!==(n=t.data.item_count)&&void 0!==n?n:0}}})))}(t);if(ut(t))return function(t){const n=I(t);return fetch(n+"/wp-json/wc/v3/cart`",{method:"GET",headers:{Authorization:"Basic "+U}}).then((t=>t.json())).then((t=>({json:function(){var n;return{item_count:null!==(n=t.data.item_count)&&void 0!==n?n:0}}})))}(t);if(st(t))return Promise.resolve({json:function(){return{item_count:0}}});if(dt(t))return Promise.resolve({json:function(){return{item_count:0}}});if(mt(t))return async function(t){let n=0;return"function"==typeof window.getCartCount&&(n=await window.getCartCount()),Promise.resolve({json:function(){return{item_count:n}}})}();if("STRGA3S8N41"==t){return fetch(it+"/whatmore-cartcount ",{method:"GET",headers:{"Content-Type":"application/json"}})}return{}}async function bt(t,n,o){if(et(o))return async function(t,n){const o=await H(t,n);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:Q()}}(t,o);if(ct(o))return async function(t,n){const o=await S(t,n);return{price:o.variants[0].price,compare_at_price:o.variants[0].compare_at_price,currency_code:"INR"}}(t,o);if(ut(o))return async function(t,n){const o=await G(t,n);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:"INR"}}(t,o);if(st(o))return async function(t,n){const o=await nt(t,n);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:"INR"}}(t,o);if(at(o))return async function(t,n){const o=await h(t,n);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:o.variants[0].currency_code}}(t,o);if(lt(o))return async function(t,n){const o=await z(t,n);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:o.variants[0].currency_code}}(t,o);if(dt(o))return async function(t,n){var o,i,r,e;const c=await p(t,n);return{price:null===(o=c.variants[0])||void 0===o||null===(i=o.itemPrice)||void 0===i?void 0:i.netSellerPayable,compare_at_price:null===(r=c.variants[0])||void 0===r||null===(e=r.itemPrice)||void 0===e?void 0:e.mrp,currency_code:"INR"}}(t,o);if(pt(o))return async function(t,n){var o,i,r,e;const c=await M(t,n);return{price:null===(o=c.variants)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.price,compare_at_price:null,currency_code:null===(r=c.variants)||void 0===r||null===(e=r[0])||void 0===e?void 0:e.currency_code}}(t,o);if(vt(o))return async function(t,n){var o,i;const r=await C(t,n);return{price:null===(o=r.variants[0])||void 0===o?void 0:o.price,compare_at_price:null===(i=r.variants[0])||void 0===i?void 0:i.compare_at_price,currency_code:r.currency_code}}(t,o);if(_t(o))return async function(t,n){var o,i,r,e;const c=await B(t,n);return{price:null===(o=c.variants)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.price,compare_at_price:null===(r=c.variants)||void 0===r||null===(e=r[0])||void 0===e?void 0:e.compare_at_price,currency_code:Z(),discount:c.discount}}(t,o);if(ht(o))return async function(t,n){const o=await a(t,n);return{price:o.variants[0].price,compare_at_price:o.variants[0].compare_at_price,currency_code:o.variants[0].currency_code}}(t,o);if(ft(o))return async function(t,n){const o=await R(t,n);return{price:o.variants[0].price,compare_at_price:o.variants[0].compare_at_price,currency_code:o.variants[0].currency_code}}(t,o);if(mt(o))return async function(t,n){return{price:(await m(t,n)).variants[0].price,compare_at_price:0,currency_code:"INR"}}(t,o);if("STRGA3S8N41"==o){const n=await wt(t,o);return{price:n.variants[0].price,compare_at_price:n.variants[0].compare_at_price,currency_code:n.variants[0].currency_code}}return{}}},7053:function(t,n,o){o.d(n,{p:function(){return e}});var i=o(6230),r=o(4844);async function e(t,n,o){return"shopify"==n?(0,r.bN)(t,o):(0,i.ln)(t,o)}},6143:function(){}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[704],{3388:function(e,t,n){n.d(t,{OC:function(){return l},e8:function(){return r},kT:function(){return i},kW:function(){return a},xg:function(){return o}});const i=function(e,t){return!((void 0==e.products||0==e.products.length)&&(void 0==e.cta||0==e.cta.length))},o=function(e,t){return!(void 0==e.products||0==e.products.length)},r=function(e,t){if(null!=e)return e.filter((e=>1==i(e)))},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e)return t?e.events[0].events:e.events};const l=function(e,t){var n;if(null==e)return[];if(!("eventsets"in e))return[];const i=null!==(n=e.eventsets[t])&&void 0!==n?n:null;return i?function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach((e=>{e.events.forEach((e=>{t.push(e)}))})),t}(i):[]}},5380:function(e,t,n){n.d(t,{Z:function(){return v}});var i=n(4959),o=n(7313),r=n(4892),a=n(6805),l=n(7753),s=n(9821);var d=function(e){const[t,n,i,o,r]=(0,s.Z)(),[d]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),h=r[a.YP]===a.$w?c/100:d/100*1.2;return[t*h,n*h,r]},c=n(9723),h=n(9461),u=n.n(h),p=n(1195),f=n(7108),m=(n(7244),n(123),n(9854)),x=n(5109),g=n(6417);var v=function(e){var t;const n=o.useRef(null);var[s,h,v]=d();const{whatmoreUITheme:w}=(0,o.useContext)(x.I),[j]=(0,l.j1)("whatmoreEmbedAppVideoTitle"),[b]=(0,l.j1)("whatmoreEmbedAppPositionPortrait"),[y]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[E]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[I]=(0,l.j1)("whatmoreEmbedAppPositionLandscape"),[S]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[P]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),z=(0,l.MO)("whatmoreShopId");var _=b,C=y,L=E;v[a.YP]===a.$w&&(_=I,C=S,L=P);const[A,k]=(0,o.useState)(["initial",window.pageYOffset]),[M,O]=(0,o.useState)(!1),T=null!==(t=e.isSpotlight)&&void 0!==t&&t,V=v[a.YP]===a.$w?.7*(0,m.zGA)(z):(0,m.zGA)(z),Y=T?V:1;s*=Y,h*=Y;const D=T?(0,m.G0o)(z):_,Z=T?(0,m.X8j)(z):(0,m.lVn)(z),[$,F]=(0,o.useState)(!T&&(0,m.eXi)(z));function N(e,t){k(e),e[1]<=100?O(!1):t!=M&&(O(t),F(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-e)<100||(N([n>e?"scrolled-down":"scrolled-up",n],!0),e=n>0?n:0),t=!1},i=()=>{t||(window.requestAnimationFrame(n),t=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)}),[A]),(0,i.O3)({ref:n,handler:()=>{N(["scrolled-up",A[1]],!0)}});const R=e.event,K=e.inVideoClick,W=e.closeClick,B=.3*h,G=.6*h,H=.1*h,q=.1*(.5*h),Q="round"==w?"10px":"0px",U=(0,m.Z$A)(z);var X=!1,J=0,ee=0;function te(e){X=e}return(0,g.jsx)("div",{children:$&&!Z?(0,g.jsx)(g.Fragment,{}):M&&Z?(0,g.jsx)("div",{style:"left"===D?{left:"1px",bottom:T?(0,m.vnu)(z)+"px":L+"px",position:"fixed",zIndex:U}:{right:"5px",bottom:T?(0,m.vnu)(z)+"px":L+"px",position:"fixed",zIndex:U},children:(0,g.jsxs)("div",{onClick:()=>{N(["initial",A[1]],!1)},style:{margin:"1px",width:h+"px",height:s+"px"},className:"left"===D?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,g.jsx)("div",{style:{overflow:"hidden"},children:(0,g.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,g.jsx)(r.Z,{url:R.thumbnail_image,isPlaying:!1,event:R})})}),(0,g.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,g.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,g.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,g.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,g.jsx)(p.Z,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:B+"px"},style:{position:"relative",zIndex:1,left:q+"px",bottom:q+"px"},onClick:W})})}),(0,g.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,g.jsx)(f.Z,{sx:{color:"white",fontSize:2*B+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,g.jsx)(u(),{nodeRef:n,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var n,i;n=t.x,i=t.y,J=n,ee=i},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{X&&(Math.abs(t.x-J)>5||Math.abs(t.y-ee)>5)?te(!1):K(R)},children:(0,g.jsx)("div",{ref:n,style:"left"===D?{left:T?(0,m.$II)(z)+"px":C+"px",bottom:T?(0,m.vnu)(z)+"px":L+"px",position:"fixed",zIndex:U}:{right:T?(0,m.$II)(z)+"px":C+"px",bottom:T?(0,m.vnu)(z)+"px":L+"px",position:"fixed",zIndex:U},children:(0,g.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:h+"px",height:s+"px"}),className:"left"===D?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,g.jsx)("div",{style:{overflow:"hidden",position:"relative"},children:(0,g.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,g.jsx)(r.Z,{url:R.thumbnail_image,isMuted:!0,isPlaying:!0,event:R})})}),(0,g.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,g.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,g.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,g.jsx)(p.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:B+"px"},onClick:W,style:{position:"relative",zIndex:1,left:H+"px",bottom:H+"px"}})}),(0,g.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,g.jsx)(c.Z,{sx:{color:(0,m.Ya_)(z),fontSize:G+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,g.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:Q,borderBottomRightRadius:Q,backgroundImage:j?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,g.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*B+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",j]})})]})})]})})})})}},2209:function(e,t,n){n.r(t);var i=n(7313),o=n(9854),r=n(2860),a=n(7753),l=n(5160),s=n(6967),d=n(5380),c=n(58),h=n(8984),u=n(4669),p=n(513),f=n(9302),m=n(7381),x=n(2575),g=n(7300),v=n(6524),w=n(3388),j=n(7643),b=n(778),y=n(5109),E=n(6417);const I=(0,x.Z)({key:"whatmore-css-wsv"}),S=i.lazy((()=>Promise.all([n.e(819),n.e(576),n.e(351),n.e(123),n.e(926),n.e(688),n.e(818),n.e(77)]).then(n.bind(n,3818))));t.default=function(e){const[t,n]=(0,i.useState)(),[x,P]=(0,i.useState)(),[z]=(0,a.j1)("isInDesignMode"),[_]=(0,a.j1)("isDemoBrand"),[C,L]=(0,i.useState)(-2),[A]=(0,a.j1)("whatmoreShopId"),k=(0,a.MO)("isLandingSharedLink"),M=(0,a.MO)("whatmoreShareTemplateId"),O=((0,a.MO)("whatmoreShareStoryId"),(0,a.MO)("whatmoreShareEventId")),T=(0,a.MO)("whatmoreLandingLocationType"),V=(0,a.MO)("whatmoreLoggingActive"),{whatmoreWidgetSourceDetails:Y}=(0,i.useContext)(y.I);var D=(0,o.efR)(A)?r.Dm+"/get_eventset/":r.Gc+"/get_eventset/";(0,i.useEffect)((()=>{(0,s.hb)()}),[]),(0,i.useEffect)((()=>{(0,u.ll)(A)}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||x||!(0,h.KE)()||(0,a.MO)("whatmoreVideoPlayerPoolInitiated")||(0,c.b5)(c.UD)}),[t]),(0,i.useEffect)((()=>{L(-1);const e=v.NX,t=(0,v.H1)(T),i=D.toString()+A.toString()+"?eventset_type="+e+"&source="+t+"&source_id="+A;fetch(i).then((e=>e.json())).then((t=>(0,w.OC)(t,e))).then((e=>(n(e),e))).catch((e=>{P(e.message)}))}),[]),(0,i.useEffect)((()=>{L(-2)}),[t]),(0,i.useEffect)((()=>{null==t||0==t.length||x||k&&"template-embed"==(0,v.zv)(M)&&null!=O&&t.forEach(((e,t)=>{O==e.event_id&&F(e,!0,t)}))}),[t]);const Z=Y.landingLocationType,$=Y.templateType,F=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((0,h.KE)()&&!t&&(0,c.QV)(),(0,g.B6)(e)||(0,g.WJ)(e))return z||_||(async()=>{const t=(0,v.NY)(Z)+(0,v.dS)($)+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.wh)(e),(0,u.Tc)(A,r.h7,r.dU),(0,s.H4)(e.event_id,e.products,"spotlight","video_popup",t)})(),void L(n)};function N(){return(0,E.jsx)(E.Fragment,{})}return null==t||0==t.length||x?(0,E.jsx)("div",{}):(V&&(0,m.EI)(t),(0,o.B$L)(A)&&C<0&&null!==localStorage.getItem("_whatmore_spotlight_viewed")?(0,E.jsx)(E.Fragment,{}):(localStorage.setItem("_whatmore_spotlight_viewed",!0),(0,E.jsx)(f.C,{value:I,children:-1===C||0===t.length?(0,E.jsx)(N,{}):-2===C&&t.length>0?(0,E.jsx)("div",{children:(0,E.jsx)(j.u,{userInteractionType:b.K.SPOTLIGHT_WIDGET_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!z&&!_,children:(0,E.jsx)(d.Z,{event:t[0],inVideoClick:F,closeClick:e=>{e.stopPropagation(),L(-1)},isSpotlight:!0})})}):(0,E.jsx)("div",{children:(0,E.jsx)(i.Suspense,{children:(0,E.jsx)(j.u,{userInteractionType:b.K.EVENT_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!z&&!_,children:(0,E.jsx)(S,{events:t,index:C,onBack:function(){(0,o.n2L)(A)&&(0,a.MO)("whatmoreAddedToCart")&&(0,p.D)(A,(()=>{}),100,window.location.hostname),L(-2)},template:"template-embed"})})})})})))}},6805:function(e,t,n){n.d(t,{$I:function(){return l},$w:function(){return d},AK:function(){return r},AL:function(){return a},YP:function(){return o},me:function(){return i},rE:function(){return s}});const i="device_type",o="device_mode",r="mobile",a="tablet",l="desktop",s="portrait",d="landscape"},9821:function(e,t,n){var i=n(6367),o=n(7753),r=n(8866),a=n(6805);t.Z=function(e){const[t,n,l]=(0,r.Z)(),[s]=(0,o.j1)("whatmoreLandscapePadding"),[d]=(0,o.j1)("whatmoreVideoTileSize"),[c]=(0,o.j1)("whatmoreVideoTileSizePortrait"),h=(0,i.useMediaQuery)({query:"(min-width: 1025px)"}),u=(0,i.useMediaQuery)({query:"(min-width: 481px)"}),p="portrait"==t?c:d,f=!("portrait"!=t||!u),m=p/100*1.3*.5,x=p/100;var g=Math.min(l,n),[v,w,j,b]=[.6*g*(16/9),.6*g,1.4,0];function y(e){return Math.round(10*e)/10}var E={DEVICE_TYPE:a.AK,DEVICE_MODE:a.rE};if(h){const e=w*m,t=v*m;[v,w,j,b]=[t,e,(l-2*s)/(1.1*e),s],E[a.me]=a.$I,E[a.YP]=a.$w}else if(f){var I=.8*w,S=.8*v;"portrait"==t?(I*=x,S*=x,[v,w,j,b]=[S,I,y(l/(1.2*I)),0],E[a.me]=a.AL,E[a.YP]=a.rE):([v,w,j,b]=[S,I,(l-2*s)/(1.1*I),s],E[a.me]=a.AL,E[a.YP]=a.$w)}else{I=w,S=v;"portrait"==t?(I=I*x*.9,S=S*x*.9,[v,w,j,b]=[S,I,y(l/(1.15*I)),0],E[a.me]=a.AK,E[a.YP]=a.rE):(I=.7*w,S=.7*v,[v,w,j,b]=[S,I,(l-2*s)/(1.1*I),s],E[a.me]=a.AK,E[a.YP]=a.$w)}return[v,w,j,b,E]}},7244:function(){}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[720],{8767:function(e,t,i){i.r(t),i.d(t,{default:function(){return b}});var n=i(7313),o=i(6090),r=i(7616),a=i(5109),l=(i(6143),i(7850),i(4444),i(7244),i(123),i(5892),i(1811),i(9302)),s=i(2575),d=i(8866),c=i(7753),h=i(7129),p=i(9854),m=(i(9111),i(9778),i(4892)),u=i(9821),x=i(6417);var f=function(e){var t;const[i,o,r,a,l]=(0,u.Z)(),s=(0,c.MO)("whatmoreSecondaryColor"),d=(0,c.MO)("whatmorePrimaryFont"),h=(0,c.MO)("whatmoreShopId"),f=(0,c.MO)("whatmoreCollectionsTileSize"),w=(0,c.MO)("whatmoreCollectionsTileSizePortrait"),v="portrait"===e.mode?w:f,[g,y]=(0,n.useState)(!1),j=(0,p.f63)(h),b=e.event,E=e.onClick,S=e.removeBorders,P=o*v*.01,C=(0,p.eHp)(h);return(0,x.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:S?"2px":(0,p.VwM)(h)+"px",marginTop:S?"2px":"5px",marginBottom:S?"2px":"5px",cursor:"pointer"},onClick:()=>{y(!0),E(b)},className:[g?"whatmore-scale-on-tap":""].join(" "),children:[(0,x.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,borderRadius:"50%",overflow:"hidden",boxShadow:S?"":"0px 1px 1px 0px "+s+"50, 0px -1px 1px 0px "+j+"50, 1px 0px 1px 0px "+s+"50, -1px 0px 1px 0px "+j+"80, 1px -1px 1px 0px "+s+"80, -1px 1px 1px 0px "+j+"DA, 1px 1px 1px 0px "+s+"DA, -1px -1px 1px 0px "+j+"DA"},children:(0,x.jsx)(x.Fragment,{children:(0,x.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:P*C+"px",width:P*C+"px",borderRadius:"50%",backgroundColor:s,overflow:"hidden"},children:(0,x.jsx)(m.Z,{height:"100%",width:"100%",url:b.thumbnail_image,isPlaying:!0,event:b})})})}),(0,x.jsx)("div",{style:{fontFamily:d,paddingTop:"10px",fontSize:null!==(t=e.fontSize)&&void 0!==t?t:10},children:(0,x.jsx)("p",{children:b.title})})]})},w=i(8782),v=i(7381),g=i(5380),y=i(3933);const j=(0,s.Z)({key:"whatmore-css-cv"});var b=function(e){const[t,i,s]=(0,d.Z)(),[m,b,E,S,P]=(0,u.Z)(),C=(0,c.MO)("whatmoreCollectionsTileSize"),z=(0,c.MO)("whatmoreCollectionsTileSizePortrait"),M="portrait"===t?z:C,L="portrait"==t?0:(0,c.MO)("whatmoreLandscapePadding"),A=(0,c.MO)("whatmoreCollectionsTilesSpacing"),I=(0,c.MO)("whatmoreShopId"),[k]=(0,c.MO)("whatmorePrimaryColor"),{whatmoreRootId:O}=(0,n.useContext)(a.I),R=e.events,F=e.onClick,{whatmoreIsCollectionsTemplate:Z}=((0,c.MO)("whatmoreTitleFont"),(0,n.useContext)(a.I));function T(e){F(e)}"portrait"==t?(0,c.MO)("whatmoreTitleFontSizePortrait"):(0,c.MO)("whatmoreTitleFontSize"),(0,p.aRS)(I);const[V,Y,D]=(0,y.YD)({triggerOnce:!1});delete r.ZP.styles.global;const $=.055*b;var H=[];for(let n=0;n<R.length;)H.push((0,x.jsx)(f,{mode:t,event:R[n],onClick:()=>{T(R[n-1])},removeBorders:(0,p.Xtg)(I),fontSize:$},"collections-tile-"+n)),n+=1;return(0,n.useEffect)((()=>{(0,v.Oo)("Video shopping powered by Whatmore!")}),[]),(0,n.useEffect)((()=>{a.$.forEach((e=>{var t;const i=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-stories"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data="template-stories"]');if(!i)return;i&&e&&(e.style.minHeight="0px")}))}),[]),(0,x.jsx)(l.C,{value:j,children:(0,x.jsx)("div",{className:Z?"whatmore-collection-events":"whatmore-carousel-events",children:(0,x.jsx)(o.x,{theme:r.ZP,cssVarsRoot:O,resetCSS:!1,children:(0,x.jsxs)(h.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,x.jsx)("div",{ref:V,style:{marginLeft:L+"px",marginRight:L+"px"},children:(0,x.jsx)(w.P,{renderElement:e=>(0,x.jsx)(x.Fragment,{children:e.eventData}),dataList:H,spacing:A,defaultHeight:m*M*.01+"px",defaultWidth:b*M*.01+"px",retainAlreadyRenderedElements:!0})}),(0,p.dhc)(I)&&!Y&&-1==e.index&&(0,x.jsx)(g.Z,{event:R[0],inVideoClick:T,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})}},7129:function(e,t,i){i.d(t,{V:function(){return n}});const n=(0,i(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8782:function(e,t,i){i.d(t,{P:function(){return l}});var n=i(3933),o=i(7313),r=(i(123),i(6417));function a(e){const{ref:t,inView:i,entry:o}=(0,n.YD)({triggerOnce:e.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:t,children:i?e.renderElement({eventData:null===e||void 0===e?void 0:e.data}):(0,r.jsx)("div",{style:{minWidth:e.defaultHeight,minHeight:e.defaultWidth}})})}function l(e){var t,i;return(0,o.useEffect)((()=>{const e=document.querySelector(".whatmore-carousel-horizontal-flex");let t,i=!1;function n(e){e.touches&&(null===e||void 0===e?void 0:e.touches.length)>0?(i=!0,t=e.touches[0].clientX):(i=!0,t=e.clientX)}function o(n){if(!i)return;const o=n.touches?n.touches[0].clientX:n.clientX;e.style.pointerEvents="none";const r=2*(t-o);e.scrollLeft+=r,t=o}function r(t){e.style.pointerEvents="auto",i=!1}return e&&("ontouchstart"in window&&(e.addEventListener("touchstart",n),e.addEventListener("touchmove",o),e.addEventListener("touchend",r)),e.addEventListener("mousedown",n),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)),()=>{e&&("ontouchstart"in window&&(e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",o),e.removeEventListener("touchend",r)),e.removeEventListener("mousedown",n),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r))}}),[]),(0,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3},className:"whatmore-carousel-horizontal-flex",children:null===e||void 0===e||null===(i=e.dataList)||void 0===i?void 0:i.map(((t,i)=>(0,r.jsx)(a,{renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+i)))})}},5380:function(e,t,i){i.d(t,{Z:function(){return v}});var n=i(4959),o=i(7313),r=i(4892),a=i(6805),l=i(7753),s=i(9821);var d=function(e){const[t,i,n,o,r]=(0,s.Z)(),[d]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),h=r[a.YP]===a.$w?c/100:d/100*1.2;return[t*h,i*h,r]},c=i(9723),h=i(9461),p=i.n(h),m=i(1195),u=i(7108),x=(i(7244),i(123),i(9854)),f=i(5109),w=i(6417);var v=function(e){var t;const i=o.useRef(null);var[s,h,v]=d();const{whatmoreUITheme:g}=(0,o.useContext)(f.I),[y]=(0,l.j1)("whatmoreEmbedAppVideoTitle"),[j]=(0,l.j1)("whatmoreEmbedAppPositionPortrait"),[b]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[E]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[S]=(0,l.j1)("whatmoreEmbedAppPositionLandscape"),[P]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[C]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),z=(0,l.MO)("whatmoreShopId");var M=j,L=b,A=E;v[a.YP]===a.$w&&(M=S,L=P,A=C);const[I,k]=(0,o.useState)(["initial",window.pageYOffset]),[O,R]=(0,o.useState)(!1),F=null!==(t=e.isSpotlight)&&void 0!==t&&t,Z=v[a.YP]===a.$w?.7*(0,x.zGA)(z):(0,x.zGA)(z),T=F?Z:1;s*=T,h*=T;const V=F?(0,x.G0o)(z):M,Y=F?(0,x.X8j)(z):(0,x.lVn)(z),[D,$]=(0,o.useState)(!F&&(0,x.eXi)(z));function H(e,t){k(e),e[1]<=100?R(!1):t!=O&&(R(t),$(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const i=()=>{const i=window.pageYOffset;Math.abs(i-e)<100||(H([i>e?"scrolled-down":"scrolled-up",i],!0),e=i>0?i:0),t=!1},n=()=>{t||(window.requestAnimationFrame(i),t=!0)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)}),[I]),(0,n.O3)({ref:i,handler:()=>{H(["scrolled-up",I[1]],!0)}});const N=e.event,_=e.inVideoClick,B=e.closeClick,q=.3*h,W=.6*h,X=.1*h,K=.1*(.5*h),G="round"==g?"10px":"0px",Q=(0,x.Z$A)(z);var U=!1,J=0,ee=0;function te(e){U=e}return(0,w.jsx)("div",{children:D&&!Y?(0,w.jsx)(w.Fragment,{}):O&&Y?(0,w.jsx)("div",{style:"left"===V?{left:"1px",bottom:F?(0,x.vnu)(z)+"px":A+"px",position:"fixed",zIndex:Q}:{right:"5px",bottom:F?(0,x.vnu)(z)+"px":A+"px",position:"fixed",zIndex:Q},children:(0,w.jsxs)("div",{onClick:()=>{H(["initial",I[1]],!1)},style:{margin:"1px",width:h+"px",height:s+"px"},className:"left"===V?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,w.jsx)("div",{style:{overflow:"hidden"},children:(0,w.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,w.jsx)(r.Z,{url:N.thumbnail_image,isPlaying:!1,event:N})})}),(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,w.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,w.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,w.jsx)(m.Z,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:q+"px"},style:{position:"relative",zIndex:1,left:K+"px",bottom:K+"px"},onClick:B})})}),(0,w.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,w.jsx)(u.Z,{sx:{color:"white",fontSize:2*q+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,w.jsx)(p(),{nodeRef:i,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var i,n;i=t.x,n=t.y,J=i,ee=n},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{U&&(Math.abs(t.x-J)>5||Math.abs(t.y-ee)>5)?te(!1):_(N)},children:(0,w.jsx)("div",{ref:i,style:"left"===V?{left:F?(0,x.$II)(z)+"px":L+"px",bottom:F?(0,x.vnu)(z)+"px":A+"px",position:"fixed",zIndex:Q}:{right:F?(0,x.$II)(z)+"px":L+"px",bottom:F?(0,x.vnu)(z)+"px":A+"px",position:"fixed",zIndex:Q},children:(0,w.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:h+"px",height:s+"px"}),className:"left"===V?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,w.jsx)("div",{style:{overflow:"hidden",position:"relative"},children:(0,w.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,w.jsx)(r.Z,{url:N.thumbnail_image,isMuted:!0,isPlaying:!0,event:N})})}),(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,w.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,w.jsx)(m.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:q+"px"},onClick:B,style:{position:"relative",zIndex:1,left:X+"px",bottom:X+"px"}})}),(0,w.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,w.jsx)(c.Z,{sx:{color:(0,x.Ya_)(z),fontSize:W+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,w.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:G,borderBottomRightRadius:G,backgroundImage:y?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,w.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*q+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",y]})})]})})]})})})})}},6805:function(e,t,i){i.d(t,{$I:function(){return l},$w:function(){return d},AK:function(){return r},AL:function(){return a},YP:function(){return o},me:function(){return n},rE:function(){return s}});const n="device_type",o="device_mode",r="mobile",a="tablet",l="desktop",s="portrait",d="landscape"},9821:function(e,t,i){var n=i(6367),o=i(7753),r=i(8866),a=i(6805);t.Z=function(e){const[t,i,l]=(0,r.Z)(),[s]=(0,o.j1)("whatmoreLandscapePadding"),[d]=(0,o.j1)("whatmoreVideoTileSize"),[c]=(0,o.j1)("whatmoreVideoTileSizePortrait"),h=(0,n.useMediaQuery)({query:"(min-width: 1025px)"}),p=(0,n.useMediaQuery)({query:"(min-width: 481px)"}),m="portrait"==t?c:d,u=!("portrait"!=t||!p),x=m/100*1.3*.5,f=m/100;var w=Math.min(l,i),[v,g,y,j]=[.6*w*(16/9),.6*w,1.4,0];function b(e){return Math.round(10*e)/10}var E={DEVICE_TYPE:a.AK,DEVICE_MODE:a.rE};if(h){const e=g*x,t=v*x;[v,g,y,j]=[t,e,(l-2*s)/(1.1*e),s],E[a.me]=a.$I,E[a.YP]=a.$w}else if(u){var S=.8*g,P=.8*v;"portrait"==t?(S*=f,P*=f,[v,g,y,j]=[P,S,b(l/(1.2*S)),0],E[a.me]=a.AL,E[a.YP]=a.rE):([v,g,y,j]=[P,S,(l-2*s)/(1.1*S),s],E[a.me]=a.AL,E[a.YP]=a.$w)}else{S=g,P=v;"portrait"==t?(S=S*f*.9,P=P*f*.9,[v,g,y,j]=[P,S,b(l/(1.15*S)),0],E[a.me]=a.AK,E[a.YP]=a.rE):(S=.7*g,P=.7*v,[v,g,y,j]=[P,S,(l-2*s)/(1.1*S),s],E[a.me]=a.AK,E[a.YP]=a.$w)}return[v,g,y,j,E]}},9111:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},6143:function(){},7850:function(){},9778:function(){}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[731],{7129:function(e,t,i){i.d(t,{V:function(){return n}});const n=(0,i(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8631:function(e,t,i){var n=i(7313),o=i(9854),r=i(7753),a=(i(9111),i(123),i(9778),i(4892)),l=i(7129),d=i(9821),s=i(5109),c=i(6417);t.Z=function(e){var t;const[i,p,h,x,u]=(0,d.Z)(),[m]=(0,r.j1)("whatmoreSecondaryColor"),[f]=(0,r.j1)("whatmoreShopId"),[w]=(0,r.j1)("whatmoreCollectionsTileSize"),[v]=(0,r.j1)("whatmoreCollectionsTileSizePortrait"),g="portrait"===e.mode?v:w,y=(0,r.j1)("whatmorePrimaryFont"),{whatmoreWidgetSourceDetails:j}=(0,n.useContext)(s.I),[b,E]=(0,n.useState)(!1),P=(0,o.f63)(f),z=j.landingLocationType;(0,n.useContext)(l.V);const L=e.event,S=e.onClick,C=e.removeBorders,A=i*g*.01,k=p*g*.01,I=null!==(t=e.borderRadius)&&void 0!==t?t:"0%";return(0,c.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:(0,o.XnJ)(f)?"auto":k+"px",marginLeft:C?"2px":"5px",marginRight:C?"2px":(0,o.VwM)(f)+"px",marginTop:C?"2px":"5px",marginBottom:C?"2px":"5px",cursor:"pointer"},onClick:()=>{E(!0),S(L)},className:[b?"whatmore-scale-on-tap":""].join(" "),children:[(0,c.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:I,overflow:"hidden",boxShadow:C?"":"0px 1px 1px 0px "+m+"50, 0px -1px 1px 0px "+P+"50, 1px 0px 1px 0px "+m+"50, -1px 0px 1px 0px "+P+"80, 1px -1px 1px 0px "+m+"80, -1px 1px 1px 0px "+P+"DA, 1px 1px 1px 0px "+m+"DA, -1px -1px 1px 0px "+P+"DA"},children:(0,c.jsx)("div",{className:"whatmore-collection-event-tile",style:{flexShrink:0,objectFit:"cover",height:A+"px",width:"40273707171"==f?"auto":k+"px",borderRadius:I,backgroundColor:"gray",overflow:"hidden"},children:(0,c.jsx)(a.Z,{height:"100%",width:"100%",url:L.thumbnail_image,isPlaying:!0,event:L})})}),z.startsWith("product")&&(0,c.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"8px 4px 0 4px"},children:(0,c.jsx)("p",{ref:t=>{var i;t&&(t.style.setProperty("font-family",y,"important"),t.style.setProperty("font-size",(null!==(i=e.fontSize)&&void 0!==i?i:10)+"px","important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},children:null===L||void 0===L?void 0:L.title})})]})}},8782:function(e,t,i){i.d(t,{P:function(){return l}});var n=i(3933),o=i(7313),r=(i(123),i(6417));function a(e){const{ref:t,inView:i,entry:o}=(0,n.YD)({triggerOnce:e.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:t,children:i?e.renderElement({eventData:null===e||void 0===e?void 0:e.data}):(0,r.jsx)("div",{style:{minWidth:e.defaultHeight,minHeight:e.defaultWidth}})})}function l(e){var t,i;return(0,o.useEffect)((()=>{const e=document.querySelector(".whatmore-carousel-horizontal-flex");let t,i=!1;function n(e){e.touches&&(null===e||void 0===e?void 0:e.touches.length)>0?(i=!0,t=e.touches[0].clientX):(i=!0,t=e.clientX)}function o(n){if(!i)return;const o=n.touches?n.touches[0].clientX:n.clientX;e.style.pointerEvents="none";const r=2*(t-o);e.scrollLeft+=r,t=o}function r(t){e.style.pointerEvents="auto",i=!1}return e&&("ontouchstart"in window&&(e.addEventListener("touchstart",n),e.addEventListener("touchmove",o),e.addEventListener("touchend",r)),e.addEventListener("mousedown",n),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)),()=>{e&&("ontouchstart"in window&&(e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",o),e.removeEventListener("touchend",r)),e.removeEventListener("mousedown",n),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r))}}),[]),(0,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3},className:"whatmore-carousel-horizontal-flex",children:null===e||void 0===e||null===(i=e.dataList)||void 0===i?void 0:i.map(((t,i)=>(0,r.jsx)(a,{renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+i)))})}},5380:function(e,t,i){i.d(t,{Z:function(){return v}});var n=i(4959),o=i(7313),r=i(4892),a=i(6805),l=i(7753),d=i(9821);var s=function(e){const[t,i,n,o,r]=(0,d.Z)(),[s]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),p=r[a.YP]===a.$w?c/100:s/100*1.2;return[t*p,i*p,r]},c=i(9723),p=i(9461),h=i.n(p),x=i(1195),u=i(7108),m=(i(7244),i(123),i(9854)),f=i(5109),w=i(6417);var v=function(e){var t;const i=o.useRef(null);var[d,p,v]=s();const{whatmoreUITheme:g}=(0,o.useContext)(f.I),[y]=(0,l.j1)("whatmoreEmbedAppVideoTitle"),[j]=(0,l.j1)("whatmoreEmbedAppPositionPortrait"),[b]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[E]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[P]=(0,l.j1)("whatmoreEmbedAppPositionLandscape"),[z]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[L]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),S=(0,l.MO)("whatmoreShopId");var C=j,A=b,k=E;v[a.YP]===a.$w&&(C=P,A=z,k=L);const[I,R]=(0,o.useState)(["initial",window.pageYOffset]),[M,V]=(0,o.useState)(!1),Y=null!==(t=e.isSpotlight)&&void 0!==t&&t,Z=v[a.YP]===a.$w?.7*(0,m.zGA)(S):(0,m.zGA)(S),F=Y?Z:1;d*=F,p*=F;const D=Y?(0,m.G0o)(S):C,$=Y?(0,m.X8j)(S):(0,m.lVn)(S),[N,T]=(0,o.useState)(!Y&&(0,m.eXi)(S));function _(e,t){R(e),e[1]<=100?V(!1):t!=M&&(V(t),T(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const i=()=>{const i=window.pageYOffset;Math.abs(i-e)<100||(_([i>e?"scrolled-down":"scrolled-up",i],!0),e=i>0?i:0),t=!1},n=()=>{t||(window.requestAnimationFrame(i),t=!0)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)}),[I]),(0,n.O3)({ref:i,handler:()=>{_(["scrolled-up",I[1]],!0)}});const O=e.event,H=e.inVideoClick,W=e.closeClick,X=.3*p,B=.6*p,q=.1*p,K=.1*(.5*p),G="round"==g?"10px":"0px",Q=(0,m.Z$A)(S);var J=!1,U=0,ee=0;function te(e){J=e}return(0,w.jsx)("div",{children:N&&!$?(0,w.jsx)(w.Fragment,{}):M&&$?(0,w.jsx)("div",{style:"left"===D?{left:"1px",bottom:Y?(0,m.vnu)(S)+"px":k+"px",position:"fixed",zIndex:Q}:{right:"5px",bottom:Y?(0,m.vnu)(S)+"px":k+"px",position:"fixed",zIndex:Q},children:(0,w.jsxs)("div",{onClick:()=>{_(["initial",I[1]],!1)},style:{margin:"1px",width:p+"px",height:d+"px"},className:"left"===D?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,w.jsx)("div",{style:{overflow:"hidden"},children:(0,w.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,w.jsx)(r.Z,{url:O.thumbnail_image,isPlaying:!1,event:O})})}),(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,w.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,w.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,w.jsx)(x.Z,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:X+"px"},style:{position:"relative",zIndex:1,left:K+"px",bottom:K+"px"},onClick:W})})}),(0,w.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,w.jsx)(u.Z,{sx:{color:"white",fontSize:2*X+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,w.jsx)(h(),{nodeRef:i,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var i,n;i=t.x,n=t.y,U=i,ee=n},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{J&&(Math.abs(t.x-U)>5||Math.abs(t.y-ee)>5)?te(!1):H(O)},children:(0,w.jsx)("div",{ref:i,style:"left"===D?{left:Y?(0,m.$II)(S)+"px":A+"px",bottom:Y?(0,m.vnu)(S)+"px":k+"px",position:"fixed",zIndex:Q}:{right:Y?(0,m.$II)(S)+"px":A+"px",bottom:Y?(0,m.vnu)(S)+"px":k+"px",position:"fixed",zIndex:Q},children:(0,w.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:p+"px",height:d+"px"}),className:"left"===D?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,w.jsx)("div",{style:{overflow:"hidden",position:"relative"},children:(0,w.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,w.jsx)(r.Z,{url:O.thumbnail_image,isMuted:!0,isPlaying:!0,event:O})})}),(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,w.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,w.jsx)(x.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:X+"px"},onClick:W,style:{position:"relative",zIndex:1,left:q+"px",bottom:q+"px"}})}),(0,w.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,w.jsx)(c.Z,{sx:{color:(0,m.Ya_)(S),fontSize:B+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,w.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:G,borderBottomRightRadius:G,backgroundImage:y?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,w.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*X+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",y]})})]})})]})})})})}},6805:function(e,t,i){i.d(t,{$I:function(){return l},$w:function(){return s},AK:function(){return r},AL:function(){return a},YP:function(){return o},me:function(){return n},rE:function(){return d}});const n="device_type",o="device_mode",r="mobile",a="tablet",l="desktop",d="portrait",s="landscape"},9821:function(e,t,i){var n=i(6367),o=i(7753),r=i(8866),a=i(6805);t.Z=function(e){const[t,i,l]=(0,r.Z)(),[d]=(0,o.j1)("whatmoreLandscapePadding"),[s]=(0,o.j1)("whatmoreVideoTileSize"),[c]=(0,o.j1)("whatmoreVideoTileSizePortrait"),p=(0,n.useMediaQuery)({query:"(min-width: 1025px)"}),h=(0,n.useMediaQuery)({query:"(min-width: 481px)"}),x="portrait"==t?c:s,u=!("portrait"!=t||!h),m=x/100*1.3*.5,f=x/100;var w=Math.min(l,i),[v,g,y,j]=[.6*w*(16/9),.6*w,1.4,0];function b(e){return Math.round(10*e)/10}var E={DEVICE_TYPE:a.AK,DEVICE_MODE:a.rE};if(p){const e=g*m,t=v*m;[v,g,y,j]=[t,e,(l-2*d)/(1.1*e),d],E[a.me]=a.$I,E[a.YP]=a.$w}else if(u){var P=.8*g,z=.8*v;"portrait"==t?(P*=f,z*=f,[v,g,y,j]=[z,P,b(l/(1.2*P)),0],E[a.me]=a.AL,E[a.YP]=a.rE):([v,g,y,j]=[z,P,(l-2*d)/(1.1*P),d],E[a.me]=a.AL,E[a.YP]=a.$w)}else{P=g,z=v;"portrait"==t?(P=P*f*.9,z=z*f*.9,[v,g,y,j]=[z,P,b(l/(1.15*P)),0],E[a.me]=a.AK,E[a.YP]=a.rE):(P=.7*g,z=.7*v,[v,g,y,j]=[z,P,(l-2*d)/(1.1*P),d],E[a.me]=a.AK,E[a.YP]=a.$w)}return[v,g,y,j,E]}},9111:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},6143:function(){},7850:function(){},9778:function(){}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[751],{1332:function(e,t,n){var c=n(7313),a=(n(8743),n(7753)),o=n(5254),r=n(6417);t.Z=function(e){return(0,c.useEffect)((()=>{const e=(0,o.oo)((0,a.MO)("whatmoreSecondaryColor"));!function(e,t,n,c){const a="rgba(".concat(e,",").concat(t,",").concat(n,",").concat(c,")"),o="\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ".concat(a,", 1.8em -1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.5), -1.8em -1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.7), 1.8em -1.8em 0 0em ").concat(a,", 2.5em 0em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.5), 1.8em -1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.7), 2.5em 0em 0 0em ").concat(a,", 1.75em 1.75em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.5), 2.5em 0em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.7), 1.75em 1.75em 0 0em ").concat(a,", 0em 2.5em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.5), 1.75em 1.75em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.7), 0em 2.5em 0 0em ").concat(a,", -1.8em 1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.5), 0em 2.5em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.7), -1.8em 1.8em 0 0em ").concat(a,", -2.6em 0em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.5), -1.8em 1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.7), -2.6em 0em 0 0em ").concat(a,", -1.8em -1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.5), -2.6em 0em 0 0em rgba(").concat(e,", ").concat(t,", ").concat(n,", 0.7), -1.8em -1.8em 0 0em ").concat(a,";\n }\n }\n "),r=document.createElement("style");r.type="text/css",r.innerHTML=o,document.head.appendChild(r)}(e[0],e[1],e[2],.2)}),[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("span",{className:"whatmore-loading-indicator"})})}},3175:function(e,t,n){var c=n(1332),a=n(5180),o=n(6417);t.Z=function(e){var t,n;const r=null!==(t=e.height)&&void 0!==t?t:"100%",i=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,o.jsxs)("div",{style:{width:i,height:r,overflow:"hidden",minHeight:r,minWidth:i},children:[(0,o.jsx)(a.Z,{height:r,width:i}),(0,o.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignContent:"center",width:"100%",height:"100%",position:"relative",zIndex:1,bottom:"100%",className:"whatmore-ios-css-relative-fix"},children:(0,o.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,o.jsx)(c.Z,{})})})]})}},5180:function(e,t,n){var c=n(6417);t.Z=function(e){var t,n,a;const o=null!==(t=e.height)&&void 0!==t?t:"100%",r=null!==(n=e.width)&&void 0!==n?n:"100%",i=null!==(a=e.borderRadius)&&void 0!==a?a:"10px";return(0,c.jsx)("div",{style:{height:o,width:o,borderRadius:i,overflow:"hidden",minHeight:o,minWidth:r,maxHeight:o,maxWidth:r},children:(0,c.jsx)("div",{style:{minHeight:o,minWidth:r},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},2887:function(e,t,n){var c=n(7313),a=n(3175),o=n(6417);t.Z=function(e){var t,n,r;const[i,m]=(0,c.useState)(!1),s=c.useRef(0),d=(0,c.useRef)(null),l=null!==(t=e.timeUpdateCallback)&&void 0!==t?t:()=>{},u=null!==(n=e.height)&&void 0!==n?n:"100%",h=null!==(r=e.width)&&void 0!==r?r:"100%";return(0,c.useEffect)((()=>{s.current=0;const e=setInterval((()=>{s.current=s.current+.03,d.current&&l(s.current,5),s.current>=5&&(s.current=0)}),30);return()=>{clearInterval(e)}}),[e.isPlaying]),(0,o.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:h,height:u,overflow:"hidden"},children:[(0,o.jsx)("div",{style:{width:i?"100%":"0px",height:i?"100%":"0px"},children:(0,o.jsx)("img",{ref:d,src:e.url,style:{objectFit:"cover",height:u,width:h,backgroundColor:"white"},alt:"image player",onLoad:()=>{m(!0)}})}),i?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(a.Z,{width:h,height:u})]})}},4892:function(e,t,n){n.d(t,{Z:function(){return g}});var c=n(7313),a=n(3933),o=n(868),r=n(8984),i=n(7300),m=n(2887),s=n(4862),d=n(7753),l=n(342),u=(n(9854),n(6417));var h=function(e){var t,n;const o=(0,c.useRef)(null),[i,m,h]=(0,a.YD)({triggerOnce:!0}),g=(0,d.MO)("whatmoreShopId"),p=null!==(t=e.height)&&void 0!==t?t:"100%",b=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,c.useEffect)((()=>{o.current&&(e.isPlaying?o.current.play():((s.G6||(0,r.gE)())&&o.current.play(),"57939755089"==g?setTimeout((()=>{o.current.pause()}),300):o.current.pause()))}),[e.isPlaying,m]),(0,u.jsx)("div",{ref:i,style:{width:p,height:b,overflow:"hidden",display:"flex",alignItems:"center"},children:m?(0,u.jsxs)("video",{ref:o,className:"whatmore-video-player-muted",width:b,height:p,preload:"metadata",loop:!0,src:e.url,playsInline:!0,poster:e.isPlaying&&"STRTFEDEDAP"!==g&&"STRY2V4XO5L"!==g?e.url:e.poster,muted:!0,style:{backgroundColor:"white",borderRadius:e.borderRadius},children:[(0,u.jsx)("source",{src:e.url,type:"video/mp4"}),(0,u.jsx)("source",{src:(0,l.vW)(e.url),type:"video/mp4"})]}):(0,u.jsx)("div",{width:b,height:p,ref:e=>{e&&e.style.setProperty("display","block","important")}})})};var g=function(e){var t,n,s,g;const[p,b,v]=(0,a.YD)({triggerOnce:!0}),f=(0,d.MO)("whatmoreShopId");if((0,i.WJ)(e.event))return(0,u.jsx)(m.Z,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback});const w=null!==(t=e.pauseFromPlayTimeInMs)&&void 0!==t?t:200;var y;if((0,r.KE)())return(0,u.jsx)(h,{borderRadius:e.borderRadius,height:"100%",width:"100%",poster:null===e||void 0===e||null===(y=e.event)||void 0===y?void 0:y.poster_image,url:(0,o.V)(e.url),isPlaying:e.isPlaying,pauseFromPlayTimeInMs:w});const _=(0,c.useRef)(null),x=null!==(n=e.height)&&void 0!==n?n:"100%",j=null!==(s=e.width)&&void 0!==s?s:"100%";return(0,c.useEffect)((()=>{_.current&&(e.isPlaying?_.current.play():_.current.pause())}),[e.isPlaying,b]),(0,u.jsx)("div",{ref:p,style:{width:x,height:j,overflow:"hidden",display:"flex",alignItems:"center"},children:b?(0,u.jsxs)("video",{ref:_,className:"whatmore-video-player-muted",width:j,height:x,preload:"metadata",loop:!0,playsInline:!0,muted:!0,poster:"57939755089"==f?"":null===e||void 0===e||null===(g=e.event)||void 0===g?void 0:g.poster_image,style:{backgroundColor:"white"},children:[(0,u.jsx)("source",{src:(0,o.V)(e.url),type:"video/mp4"}),(0,u.jsx)("source",{src:(0,l.vW)(e.url),type:"video/mp4"})]}):(0,u.jsx)("div",{width:j,height:x,ref:e=>{e&&e.style.setProperty("display","block","important")}})})}},868:function(e,t,n){n.d(t,{V:function(){return i}});var c=n(9854),a=n(7753);const o={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.azureedge.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.azureedge.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.azureedge.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets.azureedge.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.azureedge.net"},r={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.b-cdn.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.b-cdn.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.b-cdn.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets-old.b-cdn.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.b-cdn.net"},i=function(e){const t=(0,a.MO)("whatmoreShopId");if(!e)return e;if(e.startsWith("https://cdn.shopify.com"))return e;if("AWSCDN"==(0,c.zpr)(t))return e;if("AZURECDN"==(0,c.zpr)(t)){if(e.includes(".azureedge.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(o))if(e.includes(t))return e.replace(t,o[t]);return e}}if("BUNNYCDN"==(0,c.zpr)(t)){if(e.includes(".b-cdn.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(r))if(e.includes(t))return e.replace(t,r[t]);return e}}return e}},342:function(e,t,n){n.d(t,{$W:function(){return i},WN:function(){return r},uv:function(){return o},vW:function(){return m}});var c=n(9854);const a=(0,n(7753).MO)("whatmoreShopId"),o=function(e){var t;return"event_media_urls"in e?"image"===e.event_type?e.event_media_urls.primary.portrait.content_image_original:"secondary"in e.event_media_urls&&e.event_media_urls.secondary.portrait.content_video_1080p?e.event_media_urls.secondary.portrait.content_video_1080p:null!==(t=e.event_media_urls.primary.portrait.content_video_1080p)&&void 0!==t?t:null:e.event_hls_url},r=function(e){return"event_media_urls"in e?"image"===e.event_type?e.event_media_urls.primary.landscape.content_image_original:"secondary"in e.event_media_urls&&e.event_media_urls.secondary.landscape.content_video_1080p?e.event_media_urls.secondary.landscape.content_video_1080p:e.event_media_urls.primary.landscape.content_video_1080p:e.event_hls_url},i=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,c.QFt)(a);if(!t)return e;const n=e.split("whatmore_")[1].split("?")[0];return"https://whatmore-brand-video-assets-720p.b-cdn.net/".concat(t,"/").concat(n)}return e},m=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,c.QFt)(a);if(!t)return e;const n=e.split("whatmore_")[1].split("?")[0];return"https://whatmore-brand-thumbnail-video-assets.b-cdn.net/".concat(t,"/").concat(n)}return e}},8743:function(){},123:function(){}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[766],{513:function(e,t,n){n.d(t,{D:function(){return i}});const o=function(){fetch("/cart.json").then((e=>e.json())).then((e=>{fetch("/cart?view=item").then((e=>e.text())).then((t=>{const n=(new DOMParser).parseFromString(t,"text/html"),o=n.getElementById("CartDrawer"),r=document.getElementById("CartDrawer");o&&r&&(r.innerHTML=o.innerHTML);n.querySelector("#CartDrawer .totals__subtotal-value");const c=document.querySelector("cart-drawer");c&&c.classList.remove("is-empty");const a=document.querySelector("cart-drawer-items");a&&a.classList.remove("is-empty");const i=document.getElementById("cart-icon-bubble");if(i.querySelector(".cart-count-bubble")){i.querySelectorAll('.cart-count-bubble span[aria-hidden="true"]').forEach((t=>{t.textContent=e.item_count}))}else{const t=document.createElement("div");t.className="cart-count-bubble",t.innerHTML='\n <span aria-hidden="true">'.concat(e.item_count,'</span>\n <span class="visually-hidden">').concat(e.item_count," items</span>\n "),i.appendChild(t)}i.click();document.getElementById("CartDrawer-Overlay").addEventListener("click",(()=>{const e=document.querySelector("cart-drawer");e&&e.classList.remove("active"),document.body.classList.remove("overflow-hidden")}))}))}))},r=()=>{try{var e=document.querySelector("mini-cart")||document.querySelector("cart-drawer")||document.querySelector("product-form"),t=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/";if(Shopify.locale.length>0&&(t+=Shopify.locale+"/"),null!==e&&"function"===typeof e.renderContents){var n=e.getSectionsToRender().map((e=>e.id));fetch(t+"cart?sections="+n.toString(),{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(t){try{return t.clone().json().then((function(t){try{var n={sections:t};e.renderContents(n)}catch(o){console.error(o)}}))}catch(n){console.error(n)}}))}}catch(o){console.error(o)}},c=e=>{const t=document.querySelector("#halo-cart-sidebar .halo-sidebar-wrapper .previewCart-wrapper"),n="is-loading";t.classList.add(n),t.insertAdjacentHTML("afterbegin",'\n <div class="loading-overlay loading-overlay--custom">\n <div class="loading-overlay__spinner">\n <svg aria-hidden="true" focusable="false" role="presentation" class="spinner" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">\n <circle class="path" fill="none" stroke-width="6" cx="33" cy="33" r="30"></circle>\n </svg>\n </div>\n </div>\n '),fetch(window.routes.root+"/cart?view=ajax_side_cart",{method:"GET",cache:"no-cache"}).then((e=>e.text())).then((e=>{const o=(new DOMParser).parseFromString(e,"text/html");t.innerHTML=o.body.innerHTML,t.classList.remove(n)})).finally((()=>{document.body.querySelector("[data-cart-count]").textContent=cart.item_count,document.dispatchEvent(new CustomEvent("cart-update",{detail:e}));document.getElementById("cart-icon-bubble").click()}))},a=()=>{var e=document.querySelector("cart-notification")||document.querySelector("cart-drawer"),t=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/";if(Shopify.locale.length>0&&(t+=Shopify.locale+"/"),null!==e&&"function"===typeof e.renderContents)fetch(t+"cart?sections=cart-drawer,cart-icon-bubble",{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(t){var n=document.querySelector("cart-drawer.drawer.is-empty");null!==n&&n.classList.remove("is-empty");try{return t.clone().json().then((function(t){try{var n={sections:t};e.renderContents(n)}catch(o){console.error(o)}}))}catch(o){console.error(o)}}))},i=async function(e,t,n,i){let d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"cart-icon";if("STRNV8MHJTF"!=e&&"STR6HU283UZ"!=e&&"STR9T3LLEJB"!=e&&"STRWJMIOJNX"!=e&&"STRUDQ36YAC"!=e&&"STR1D5ONOZX"!=e){var u=await fetch("https://"+window.location.hostname+"/cart.js",{cache:"reload"}).then((e=>e.json()));if("57939755089"==e||"27358003275"==e||"63748341981"==e||"68237558034"==e||"63046287536"==e||"9734029408"==e||"83411075365"==e||"36300750986"==e||"16957273"==e||"9483952"==e||"57265094752"==e||"58538459329"==e||"80266658086"==e||"46784020646"==e||"52982579389"==e||"76291703063"==e||"68546691304"==e||"27951333450"==e&&"cart-icon"==d)document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0,detail:{cart:u,openMiniCart:!0}}));else if("19506115"==e)window.PXUTheme.jsAjaxCart.showDrawer(),window.PXUTheme.jsAjaxCart.updateView();else if("54465429691"==e||"41096085665"==e)refreshCart(u),window.setTimeout((function(){$.fancybox.close(),$(".cart-button").click()}),500);else if("25427564"==e||"4243849314"==e||"57708314789"==e){(new theme.CartDrawer).open()}else if("62602182872"==e||"57362710572"==e)CartJS.getCart(),$(".block-cart").addClass("active");else if("55820812447"==e||"83096174866"==e||"63791857821"==e||"70963003672"==e||"20157815"==e||"60492578980"==e||"12183765088"==e||"58546946211"==e||"42070737058"==e||"71321583919"==e||"68492624171"==e||"74541891876"==e||"21187677"==e||"74021110038"==e||"58193838255"==e||"25151799349"==e||"72651899165"==e||"52022313149"==e||"64983957725"==e||"69610111257"==e||"61209641060"==e||"87043703105"==e||"69699436842"==e)document.documentElement.dispatchEvent(new CustomEvent("ajaxProduct:added",{bubbles:!0,detail:{}})),document.documentElement.dispatchEvent(new CustomEvent("cart:open",{bubbles:!0,detail:{}}));else if("2665447536"==e||"51364757670"==e||"45740720296"==e)fetch("/?section_id=cart-drawer").then((e=>e.text())).then((e=>{const t=(new DOMParser).parseFromString(e,"text/html").getElementById("cart-drawer").innerHTML;$("#cart-drawer").html(t),$('[aria-controls="cart-drawer"]')[0].click(),$(".header__cart-count .count-bubble ").html(cart.item_count).css("opacity",1)}));else if("57824805033"==e||"59504656436"==e||"58112966749"==e||"9989358"==e||"26958037078"==e)o();else if("80856187185"==e||"71256211737"==e)fetch("/cart?section_id=mini-cart").then((e=>e.text())).then((e=>{const t=(new DOMParser).parseFromString(e,"text/html").querySelector(".mini-cart__inner").innerHTML;$(".mini-cart__inner").html(t).addClass("active__drawer")})).catch((e=>{console.error(e)})),o();else if("61094723750"==e||"45034766485"==e)SLIDECART&&(SLIDECART_UPDATE(),SLIDECART_OPEN());else if("10272035"==e){const e=document.querySelector(".cart-drawer"),t=e.parentNode;t.classList.add("menu-opening"),t.setAttribute("open","open"),e.style.visibility="visible",e.style.transform="translate(0)"}else if("1972174947"==e||"55194878152"==e||"49198989466"==e)document.documentElement.dispatchEvent(new CustomEvent("cart:refresh:opend",{bubbles:!0,detail:{}}));else if("64463667449"==e||"63897370681"==e||"81998840121"==e||"70964478228"==e)document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0})),document.documentElement.dispatchEvent(new CustomEvent("cart:updated",{bubbles:!0,detail:{cart:u}})),document.getElementById("mini-cart").open=!0;else if("81545986363"==e)document.dispatchEvent(new CustomEvent("theme:cartchanged",{bubbles:!0})),document.dispatchEvent(new CustomEvent("theme:open-cart-drawer",{bubbles:!0}));else if("41346334884"==e||"74448077083"==e||"26562420"==e||"26759856318"==e)document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:refresh")),document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:open"));else if("6873415750"==e)document.dispatchEvent(new CustomEvent("cart:change",{bubbles:!0,detail:{cart:u}})),document.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0}));else if("59547517063"==e||"59612954814"==e)a();else if("61086662810"==e)r();else if("5827756145"==e){let e=document.getElementById("cart-config");e=JSON.parse(e.innerHTML||"{}"),"undefined"!==typeof window.Shopify&&"undefined"!==typeof window.Shopify.theme&&"undefined"!==typeof window.Shopify.theme.ajaxCart&&"function"===typeof window.Shopify.theme.ajaxCart.updateView&&(Shopify.theme.ajaxCart.updateView({cart_url:"/cart"},u),Shopify.theme.ajaxCart.showDrawer(e))}else if("73454354741"==e)0!==Object.keys(u).length&&c(u);else if("71830962487"==e)"undefined"!==typeof window.Shopify&&"function"===typeof window.Shopify.onCartUpdate&&-1===Shopify.onCartUpdate.toString().indexOf("There are now")&&window.Shopify.onCartUpdate(u,!0);else if("81516986679"==e||"1293622"==e||"73143124251"==e)document.documentElement.dispatchEvent(new CustomEvent("apps:product-added-to-cart",{bubbles:!0}));else{if("58273038492"==e&&$("#cart-drawer").toggleClass("active"),"62335516854"==e)(new theme.CartDrawer).open();document.documentElement.dispatchEvent(new CustomEvent("product:added",{bubbles:!0,detail:{}})),s(u)}setTimeout(t,n)}else{console.log("Executing cart refresh script..");document.getElementById("whatsmorecart").value=Math.random()}function s(e){var t,n;try{var o=e.item_count;if($("[data-cart-item-count]").html(o),$(".header__cart-count").html(o),$(".site-header__cart-count span[data-cart-count]").html(o),$("#CartCount [data-cart-count]").length>0?$("#CartCount [data-cart-count]").html(o):$("#CartCount").length>0&&$("#CartCount").html($("#CartCount").html().replace(/(\d+)/,e.item_count)),$("#CartCount.hide").length>0&&$("#CartCount.hide").removeClass("hide"),$("#site-cart-handle .count-holder .count").length>0&&$("#site-cart-handle .count-holder .count").html($("#site-cart-handle .count-holder .count").html().replace(/(\d+)/,e.item_count)),$("#minicart .count.cart-target").length>0&&$("#minicart .count.cart-target").html($("#minicart .count.cart-target").html().replace(/(\d+)/,e.item_count)),$("#sidebar #meta .count").length>0&&$("#sidebar #meta .count").html($("#sidebar #meta .count").html().replace(/(\d+)/,e.item_count)),$(".site-header__cart .site-header__cart-indicator").length>0&&($(".site-header__cart .site-header__cart-indicator").html($(".site-header__cart .site-header__cart-indicator").html().replace(/(\d+)/,e.item_count)),e.item_count>0&&$(".site-header__cart .site-header__cart-indicator").removeClass("hide")),$(".cart-count").length>0&&$(".cart-count").html($(".cart-count").html().replace(/(\d+)/,e.item_count)),$(".cartCount[data-cart-count]").length>0&&$(".cartCount[data-cart-count]").html($(".cartCount[data-cart-count]").html().replace(/(\d+)/,e.item_count)),$("[data-js-cart-count-desktop]").length>0&&($("[data-js-cart-count-desktop]").html(e.item_count),$("[data-js-cart-count-desktop]").attr("data-js-cart-count-desktop",e.item_count)),$(".cart-item-count-header").length>0){var r=$(".cart-item-count-header").first();!0===r.hasClass("cart-item-count-header--total")?r.find(".money").length&&(r=r.find(".money").first()).html(bndlr.formatPrice(e.items_subtotal_price)):r.html(r.html().replace(/(\d+)/,e.item_count))}if($("#CartCost").length>0&&"undefined"!==typeof theme&&"undefined"!==typeof theme.moneyFormat){var c=utils.formatMoney(e.items_subtotal_price,theme.moneyFormat);$("#CartCost").html(c)}if("function"==typeof refreshCart&&refreshCart(e),"undefined"!==typeof slate&&"undefined"!==typeof slate.cart&&"function"==typeof slate.cart.updateCart&&slate.cart.updateCart(),"undefined"!==typeof ajaxCart&&"function"===typeof ajaxCart.load&&ajaxCart.load(),$(".mega-nav-count.nav-main-cart-amount.count-items").length>0&&($(".mega-nav-count.nav-main-cart-amount.count-items").html($(".mega-nav-count.nav-main-cart-amount.count-items").html().replace(/(\d+)/,e.item_count)),$(".mega-nav-count.nav-main-cart-amount.count-items.hidden").removeClass("hidden")),$("#cart-icon-bubble").length>0){var a='#cart-icon-bubble .cart-count-bubble span[aria-hidden="true"]';$(a).length>0?$(a).html($(a).html().replace(/(\d+)/,e.item_count)):$("#cart-icon-bubble").append('<div class="cart-count-bubble"><span aria-hidden="true">'+e.item_count+"</span></div>")}"undefined"!==typeof Shopify&&"undefined"!==typeof Shopify.updateQuickCart&&Shopify.updateQuickCart(e),"undefined"!==typeof bcActionList&&"function"===typeof bcActionList.atcBuildMiniCartSlideTemplate&&(bcActionList.atcBuildMiniCartSlideTemplate(e),"function"===typeof openMiniCart&&openMiniCart()),$(".custom-cart-eye-txt").length>0&&$(".custom-cart-eye-txt").html($(".custom-cart-eye-txt").html().replace(/(\d+)/,e.item_count)),$(".cart_count").length>0&&$(".cart_count").each((function(t,n){$(n).html($(n).html().replace(/(\d+)/,e.item_count))})),$(".cart-count-bubble [data-cart-count]").length>0&&$(".cart-count-bubble [data-cart-count]").html($(".cart-count-bubble [data-cart-count]").html().replace(/(\d+)/,e.item_count)),$(".cart-count-bubble span.visually-hidden").length>0&&$(".cart-count-bubble span.visually-hidden").html($(".cart-count-bubble span.visually-hidden").html().replace(/(\d+)/,e.item_count)),$(".header-cart-count .cart_count_val").length>0&&($(".header-cart-count .cart_count_val").html(e.item_count),$(".header-cart-count").removeClass("empty_cart_count")),"undefined"!==typeof Shopify&&"undefined"!==typeof Shopify.updateCartInfo&&$(".top-cart-holder .cart-target form .cart-info .cart-content").length>0&&Shopify.updateCartInfo(e,".top-cart-holder .cart-target form .cart-info .cart-content");var i=new CustomEvent("wetheme-toggle-right-drawer",{detail:{type:"cart",forceOpen:void 0,params:{cart:e}}});document.documentElement.dispatchEvent(i),"undefined"!==typeof window.vndHlp&&"function"===typeof window.vndHlp.refreshCart&&window.vndHlp.refreshCart(e);try{if("function"===typeof window.renderCart)if(window.renderCart(e),e.items.length>0)$(".mini-cart.is-empty").removeClass("is-empty")}catch(w){}try{"undefined"!==typeof window.SATCB&&"undefined"!==typeof window.SATCB.Helpers&&"function"===typeof window.SATCB.Helpers.openCartSlider&&window.SATCB.Helpers.openCartSlider()}catch(w){}try{document.dispatchEvent(new CustomEvent("theme:cart:change",{detail:{cart:e,cartCount:e.item_count},bubbles:!0}))}catch(w){}if("undefined"!==typeof window.cartStore&&"function"===typeof window.cartStore.setState&&window.cartStore.setState({justAdded:{},popupActive:!0,item_count:e.item_count,items:e.items,cart:e}),"undefined"!==typeof window.Shopify&&"function"===typeof window.Shopify.onCartUpdate&&-1===Shopify.onCartUpdate.toString().indexOf("There are now")&&window.Shopify.onCartUpdate(e,!0),"undefined"!==typeof theme&&"undefined"!==typeof theme.Cart&&"function"===typeof theme.Cart.setCurrentData&&theme.Cart.setCurrentData(e),"undefined"!==typeof window.halo&&"function"===typeof window.halo.updateSidebarCart){window.halo.updateSidebarCart(e);var d=$("[data-cart-sidebar]");d.length>0&&d[0].click()}if("undefined"!==typeof window.Shopify&&"undefined"!==typeof window.Shopify.theme&&"undefined"!==typeof window.Shopify.theme.ajaxCart&&"function"===typeof window.Shopify.theme.ajaxCart.updateView&&Shopify.theme.ajaxCart.updateView({cart_url:"/cart"},e),"undefined"!==typeof window.theme&&"undefined"!==typeof window.theme.cart&&"function"===typeof window.theme.cart.updateAllHtml)try{window.theme.cart.updateAllHtml(),window.theme.cart.updateTotals(e),document.querySelector(".header--cart-toggle").click()}catch(w){}if("function"===typeof monster_setCartItems)try{monster_setCartItems(e.items)}catch(w){console.error(w)}try{"undefined"!==typeof window.refreshCartContents&&window.refreshCartContents(e)}catch(w){}$(".header-actions [data-header-cart-count]").length>0&&$(".header-actions [data-header-cart-count]").html(e.item_count),window.dispatchEvent(new Event("update_cart")),"undefined"!==typeof clientSpecifics&&"undefined"!==typeof clientSpecifics.update_cart&&clientSpecifics.update_cart.trigger(e)}catch(w){console.log(w)}try{var u=document.querySelector(".minicart__outerbox"),s=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/";if(Shopify.locale.length>0&&(s+=Shopify.locale+"/"),null!==u&&"function"===typeof window.cartContentUpdate){sectionsToRender=u.dataset.section;fetch(s+"cart?sections="+sectionsToRender,{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(t){try{return t.clone().json().then((function(t){e.sections=t,window.cartContentUpdate(e,u,sectionsToRender)}))}catch(w){console.error(w)}}))}}catch(w){console.error(w)}if("undefined"!==typeof window.SLIDECART_UPDATE)try{window.SLIDECART_UPDATE()}catch(w){console.log(w)}if("undefined"!==typeof window.SLIDECART_OPEN&&setTimeout((function(){try{window.SLIDECART_OPEN()}catch(w){console.log(w)}}),500),"undefined"!==typeof Shopify&&"undefined"!==typeof Shopify.theme&&"undefined"!==typeof Shopify.theme.jsAjaxCart&&"function"===typeof Shopify.theme.jsAjaxCart.updateView&&Shopify.theme.jsAjaxCart.updateView(),"undefined"!==typeof CartJS&&"function"===typeof CartJS.getCart)try{CartJS.getCart()}catch(w){console.log(w)}try{$(".sp-cart .sp-dropdown-toggle").length&&"undefined"!==typeof Shopify&&"function"===typeof Shopify.getCart&&Shopify.getCart(),$("form.cart-drawer").length>0&&($(".cart-drawer input").first().trigger("blur"),setTimeout((function(){$(".cart-drawer input").first().trigger("input")}),350))}catch(w){console.log(w)}try{var l=document.querySelector("m-cart-drawer");null!==l&&"function"===typeof l.onCartDrawerUpdate&&(l.onCartDrawerUpdate(),"function"===typeof l.open&&l.open())}catch(w){console.log(w)}try{document.dispatchEvent(new CustomEvent("cart:refresh"))}catch(w){}try{document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0}))}catch(w){}if("undefined"!==typeof window.HsCartDrawer&&"function"===typeof window.HsCartDrawer.updateSlideCart&&debounce("hscartdrawer",(function(){try{HsCartDrawer.updateSlideCart()}catch(w){console.log(w)}}),100),"function"===typeof window.HS_SLIDE_CART_UPDATE&&debounce("hscartdrawer2",(function(){try{window.HS_SLIDE_CART_UPDATE()}catch(w){console.log(w)}}),100),"undefined"!==typeof window.HS_SLIDE_CART_OPEN&&"function"===typeof window.HS_SLIDE_CART_OPEN&&debounce("hscartdraweropen",(function(){try{window.HS_SLIDE_CART_OPEN()}catch(w){console.log(w)}}),100),"undefined"!==typeof theme&&"undefined"!==typeof theme.Cart&&"function"===typeof theme.Cart.updateCart&&theme.Cart.updateCart(),"undefined"!==typeof window.cart&&"function"===typeof window.cart.getCart&&window.cart.getCart(),"function"===typeof window.updateMiniCartContents)try{window.updateMiniCartContents()}catch(w){}if("function"===typeof window.loadEgCartDrawer)try{window.loadEgCartDrawer()}catch(w){}try{document.dispatchEvent(new CustomEvent("cart:build"))}catch(w){}try{document.dispatchEvent(new CustomEvent("obsidian:upsell:refresh")),document.dispatchEvent(new CustomEvent("obsidian:upsell:open"))}catch(w){}var p=document.getElementById("site-cart");if(null!==p)try{p.show()}catch(w){}if("undefined"!==typeof window.theme&&"function"===typeof window.theme.updateCartSummaries)try{window.theme.updateCartSummaries()}catch(w){}if("undefined"!==typeof window.CD_REFRESHCART)try{window.CD_REFRESHCART()}catch(w){console.log(w)}if("undefined"!==typeof window.CD_OPENCART&&setTimeout((function(){try{window.CD_OPENCART()}catch(w){console.log(w)}}),500),"function"===typeof window.buildCart)try{window.buildCart()}catch(w){console.log(w)}if("undefined"!==typeof window.PXUTheme&&"undefined"!==typeof window.PXUTheme.jsAjaxCart&&"function"===typeof window.PXUTheme.jsAjaxCart.updateView)try{window.PXUTheme.jsAjaxCart.updateView()}catch(w){}if("undefined"!==typeof window.theme&&"function"===typeof window.theme.addedToCartHandler)try{window.theme.addedToCartHandler({})}catch(w){}try{i=new Event("tcustomizer-event-cart-change");document.dispatchEvent(i)}catch(w){}try{document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:refresh",{bubbles:!0})),setTimeout((function(){document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:open"))}),500)}catch(w){}try{var h=document.querySelector("cart-notification")||document.querySelector("cart-drawer");s=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/";if(Shopify.locale.length>0&&(s+=Shopify.locale+"/"),null!==h&&"function"===typeof h.renderContents)fetch(s+"cart?sections=cart-drawer,cart-icon-bubble",{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(e){var t=document.querySelector("cart-drawer.drawer.is-empty");null!==t&&t.classList.remove("is-empty");try{return e.clone().json().then((function(e){try{var t={sections:e};h.renderContents(t)}catch(w){console.error(w)}}))}catch(w){console.error(w)}}))}catch(w){console.error(w)}try{var f=document.querySelector("mini-cart")||document.querySelector("cart-drawer")||document.querySelector("product-form");s=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/";if(Shopify.locale.length>0&&(s+=Shopify.locale+"/"),null!==f&&"function"===typeof f.renderContents){var m=f.getSectionsToRender().map((e=>e.id));fetch(s+"cart?sections="+m.toString(),{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(e){try{return e.clone().json().then((function(e){try{var t={sections:e};f.renderContents(t)}catch(w){console.error(w)}}))}catch(w){console.error(w)}}))}}catch(w){console.error(w)}try{f=document.querySelector("mini-cart")||document.querySelector("cart-drawer")||document.querySelector("product-form"),s=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/";if(null!==f&&"function"===typeof f.renderContents)m=f.getSectionsToRender().map((e=>null===e||void 0===e?void 0:e.section)),fetch(s+"cart?sections="+m.toString(),{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(e){try{return e.clone().json().then((function(e){try{var t={sections:e};f.renderContents(t)}catch(w){console.error(w)}}))}catch(w){console.error(w)}}))}catch(w){console.error(w)}null===(t=document)||void 0===t||null===(n=t.documentElement)||void 0===n||n.dispatchEvent(new CustomEvent("cart:refresh:opend",{bubbles:!0,detail:{}})),console.log("entered")}}},58:function(e,t,n){n.d(t,{Bi:function(){return i},P7:function(){return u},QV:function(){return d},UD:function(){return r},b5:function(){return a}});var o=n(7753);const r=6;function c(){const e=(0,o.MO)("whatmoreVideoPlayerPool");var t=document.createElement("video");return t.setAttribute("class","whatmore-video-player whatmore-main-video-player-from-pool"),t.setAttribute("width","100%"),t.setAttribute("src","https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4"),t.muted=!0,t.setAttribute("height","100%"),t.setAttribute("preload","metadata"),t.setAttribute("loop",""),t.setAttribute("playsinline",""),t.setAttribute("x-webkit-airplay","allow"),t.controls=!1,e.appendChild(t),t}const a=function(e){for(let t=1;t<=e;t++)c();(0,o.bU)("whatmoreVideoPlayerPoolInitiated",!0)};const i=function(e,t,n,r,c){(0,o.MO)("whatmoreVideoPlayerPool");const a=function(e,t,n,r){var c=(a=(0,o.MO)("whatmoreVideoPlayerPool").children,a.length>0?a[0]:null);var a;if(!c)throw new Error("Whatmore :: not enough blessed videos available in video pool.");return c.setAttribute("src",e),c.muted=t,c.play().then((()=>{!n&&c.pause()})).catch((e=>{})),c}(t,n,r);return e.innerHTML="",e.appendChild(a),a},d=async function(){const e=(0,o.MO)("whatmoreVideoPlayerPool"),t=(0,o.MO)("whatmoreVideoPlayerPoolInitiated");t||a(r);var n=[];for(let o of e.children){o.muted=!0;var c=o.play().then((e=>(!t&&o.pause(),e)));n.push(c)}await Promise.all(n).then((e=>{(0,o.bU)("whatmoreVideoPlayerPoolBlessed",!0)})).catch((e=>{console.error("Whatmore :: Error while blessing "+e.message)}))},u=function(e){const t=(0,o.MO)("whatmoreVideoPlayerPool"),n=e.children[0];n.muted=!0,!n.paused&&n.pause(),t.appendChild(n)}},8984:function(e,t,n){n.d(t,{KE:function(){return c},gE:function(){return r}});var o=n(4862);const r=function(){return o.gn},c=function(){return r()||o.Q5}},7300:function(e,t,n){n.d(t,{B6:function(){return o},WJ:function(){return r},yC:function(){return c}});const o=function(e){return"video"===e.event_type},r=function(e){return"image"===e.event_type},c=function(e){return"livestream"===e.event_type}},8866:function(e,t,n){var o=n(7313);function r(){return[window.innerHeight,window.innerWidth]}t.Z=function(e){var[t,n]=r();const[c,a]=(0,o.useState)([t>n?"portrait":"landscape",t,n]);return(0,o.useLayoutEffect)((()=>{function e(){var[e,t]=r();a(e>t?["portrait",e,t]:["landscape",e,t])}return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),screen.orientation&&screen.orientation.addEventListener("change",e),e(),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e),screen.orientation&&screen.orientation.removeEventListener("change",e)}}),[]),c}},5160:function(e,t,n){n.d(t,{$L:function(){return p},JX:function(){return l},Z6:function(){return i},lY:function(){return u},uD:function(){return h},wh:function(){return a},wz:function(){return s},x0:function(){return d}});var o,r=n(2860);const c=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o;function a(e){c&&console.debug("updating user view count for event.");const t={event_id:e.event_id,increase_by:1};fetch(r.Gc+"/event/metrics/views",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>(c&&console.debug("updating user view count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating user view count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating user view count user for event : ",e)}))}function i(e,t){c&&console.debug("updating like count for event.");const n={event_id:e.event_id,increase_by:t};fetch(r.Gc+"/event/metrics/like",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(c&&console.debug("updating like count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating like count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating like count user for event : ",e)}))}function d(e){c&&console.debug("updating share count for event.");const t={event_id:e.event_id,increase_by:1};fetch(r.Gc+"/event/metrics/share",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>(c&&console.debug("updating share count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating share count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating share count user for event : ",e)}))}function u(e,t){c&&console.debug("updating wa click count for event.");const n={event_id:e.event_id,increase_by:t};fetch(r.Gc+"/event/metrics/whatsapp",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(c&&console.debug("updating whatsapp click count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating whatsapp click count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating whatsapp click count user for event : ",e)}))}function s(e,t){c&&console.debug("updating event-product click count for event {} and product {}.",e.event_id,t.product_id);const n={event_id:e.event_id,product_id:t.product_id,increase_by:1};fetch(r.Gc+"/event/metrics/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(c&&console.debug("updating user event-product click count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating user event-product click count response : "+JSON.stringify(e))})).catch((t=>{console.error("error updating user event-product click count for event {} : ",e.event_id,t)}))}function l(e,t,n){c&&console.debug("updating event-product add to cart count for event {} and product {}.",e.event_id,t.product_id);const o={event_id:e.event_id,product_id:t.product_id,increase_by:n};fetch(r.Gc+"/event/metrics/add_to_cart",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)}).then((e=>(c&&console.debug("updating user event-product add to cart count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating user event-product add to cart count response : "+JSON.stringify(e))})).catch((t=>{console.error("error updating user event-product add to cart count for event {} : ",e.event_id,t)}))}function p(e,t){c&&console.debug("updating event-product buy now count for event {} and product {}.",e.event_id,t.product_id);const n={event_id:e.event_id,product_id:t.product_id,increase_by:1};fetch(r.Gc+"/event/metrics/buy_now",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(c&&console.debug("updating user event-product buy now count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating user event-product buy now count response : "+JSON.stringify(e))})).catch((t=>{console.error("error updating user event-product buy now count for event {} : ",e.event_id,t)}))}function h(e){const t={event_id:e.event.event_id,cta_id:e.cta.cta_id,increase_by:1};fetch(r.Gc+"/event/metrics/cta/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>(c&&console.debug("updating user cta click count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating user cta click count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating cta click count : ",e)}))}},4669:function(e,t,n){n.d(t,{Tc:function(){return h},ll:function(){return p}});var o,r=n(1824),c=n(7786),a=n(9854);const i="Whatmore Video Shopping",d=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o,u="Video View",s={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},l={homepage:"Home Page",product_page:"Product Page"};async function p(e){if((0,a.DvX)(e)&&null!==(0,a.hfN)(e)&&(c.ZP.initialize((0,a.hfN)(e)),d&&console.debug("Whatmore: initialized GA4")),(0,a.hvq)(e)&&null!==(0,a.BHj)(e)){const t=(0,a.OQz)(e);r.ZP.initialize((0,a.BHj)(e),{useExistingGa:t}),d&&console.debug("Whatmore: initialized GA3")}}async function h(e,t,n){(0,a.hvq)(e)&&null!==(0,a.BHj)(e)&&(r.ZP.event({category:i,action:u,label:l[t]+":"+s[n]}),d&&console.debug("Whatmore: pushed view event to GA3")),(0,a.DvX)(e)&&null!==(0,a.hfN)(e)&&(c.ZP.event({category:i,action:u+":"+l[t]+":"+s[n],value:1,nonInteraction:!1}),d&&console.debug("Whatmore: pushed view event to GA4"))}},733:function(e,t,n){n.d(t,{s:function(){return p}});var o=n(7381),r=n(9854),c=n(7753),a=n(7008);const i=function(e,t,n,o){var r;return{landing_location_type:t.landingLocationType,template_type:t.templateType,whatmore_event:{id:e.event_id,eventset_id:null!==(r=e.eventset_id)&&void 0!==r?r:null,cta_list:o.map((e=>e.cta_id)),product_list:n.map((e=>e.product_id))}}};var d=n(778),u=n(2751),s=n(6967);const l=function(){return{user_id:(0,s.hb)(),session_id:(0,s.sQ)(),user_group:"group-a",user_agent:navigator.userAgent,store_id:(0,c.MO)("whatmoreShopId"),hostname:window.location.hostname,page_path:window.location.pathname,event_id:(0,u.x0)(),event_timestamp:Math.round((new Date).getTime()/1e3)}},p=function(){var e;let{userInteractionType:t="",userInteractionMetadata:n={},widgetSourceDetails:u={},event:s="",productList:p=[],ctaList:h=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const f=(0,c.MO)("isInDesignMode"),m=(0,c.MO)("isDemoBrand"),w=(0,c.MO)("whatmoreShopId"),y="72201044272"==w&&"event-view"==t?null!==(e=JSON.parse(localStorage.getItem("_user_wh_lc")))&&void 0!==e?e:{latitude:"",longitude:""}:{};if(n={...n,...y,user_type:null!=localStorage.getItem("w_user_type")?"olduser":"newuser"},!(0,r.AAS)(w)||m||f)return;const v="_whatmore_bulk_events",g=l(),_=(0,d.r)(t,n),C=i(s,u,p,h),b=(0,c.MO)("whatmoreLoggingActive"),S={...g,interaction_data:_,data:C},E=JSON.parse(localStorage.getItem(v))||[];if(E.push(S),localStorage.setItem(v,JSON.stringify(E)),b&&(0,o.EI)(S),clearTimeout(localStorage.getItem("_whatmore_bulk_timer_id")),E.length>=10)(0,a.K)(E),localStorage.removeItem(v);else if(E.length>0){let e=setTimeout((()=>{(0,a.K)(E),localStorage.removeItem(v)}),14e3);localStorage.setItem("_whatmore_bulk_timer_id",e)}}},778:function(e,t,n){n.d(t,{K:function(){return o},r:function(){return r}});const o=Object.freeze({EVENT_VIEW:"event-view",PRODUCT_CTA_VIEW:"product-cta-view",SHOPNOW_ATC_CLICKED:"shop-now-atc-clicked",SHOPNOW_BUYNOW_CLICKED:"shop-now-buy-now-clicked",PRODUCT_TILE_ATC_CLICKED:"product-tile-atc-clicked",PRODUCT_TILE_SHOPNOW_CLICKED:"product-tile-shopnow-clicked",VIDEO_LIKED:"video-liked",VIDEO_UNLIKED:"video-unliked",VIDEO_SHARE_CTA_CLICKED:"video-share-cta-clicked",VIDEO_MUTED:"video-muted",HOMEPAGE_CAROUSEL_SWIPED:"homepage-carousel-swiped",HOMEPAGE_VISITED:"homepage-visited",COLLECTION_PAGE_VISITED:"collection-page-visited",PDP_VISITED:"product-page-visited",HOMEPAGE_CAROUSEL_WIDGET_VIEW:"homepage-carousel-widget-view",BANNER_WIDGET_VIEW:"banner-widget-view",STORIES_WIDGET_VIEW:"stories-widget-view",COLLECTION_WIDGET_VIEW:"collection-widget-view",SPOTLIGHT_WIDGET_VIEW:"spotlight-widget-view",PDP_POPUP_WIDGET_VIEW:"pdp-popup-widget-view",VIDEO_PLAYBACK:"video-playback",SHOPNOW_CLICKED:"shopnow-clicked",WHATSAPP_ICON_CLICKED:"whatsapp-icon-clicked",BANNER_WIDGET_CLICKED:"banner-widget-clicked",QUESTION_VIEWED:"question-viewed",QUESTION_ANSWERED:"question-answered",QUESTION_CLOSED:"question-closed"}),r=function(e,t){return{name:e,metadata:t}}},7643:function(e,t,n){n.d(t,{u:function(){return d}});var o=n(3933),r=n(5109),c=n(7313),a=n(733),i=n(6417);const d=function(e){var t;const{ref:n,inView:d,entry:u}=(0,o.YD)({triggerOnce:!1,threshold:null!==(t=e.threshold)&&void 0!==t?t:1}),{whatmoreWidgetSourceDetails:s}=(0,c.useContext)(r.I);return(0,c.useEffect)((()=>{var t,n,o,r;d&&null!==(t=e.triggerFlag)&&void 0!==t&&t&&(0,a.s)({userInteractionType:e.userInteractionType,userInteractionMetadata:null!==(n=e.userInteractionMetadata)&&void 0!==n?n:{},widgetSourceDetails:s,event:e.event,productList:null!==(o=e.productList)&&void 0!==o?o:[],ctaList:null!==(r=e.ctaList)&&void 0!==r?r:[]})}),[d]),(0,i.jsx)("div",{ref:n,children:e.children})}}}]);
|