whatmore-react-assets 1.0.263
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/README.md +2 -0
- package/package.json +22 -0
- package/static/css/12.b9791533.chunk.css +1 -0
- package/static/css/136.6572a5b0.chunk.css +1 -0
- package/static/css/166.6e010f1d.chunk.css +1 -0
- package/static/css/204.b9791533.chunk.css +1 -0
- package/static/css/245.6572a5b0.chunk.css +1 -0
- package/static/css/517.fbff760e.chunk.css +1 -0
- package/static/css/55.15ad4f53.chunk.css +1 -0
- package/static/css/580.1849eaac.chunk.css +1 -0
- package/static/css/602.fbff760e.chunk.css +1 -0
- package/static/css/850.1582bd5c.chunk.css +1 -0
- package/static/css/92.6572a5b0.chunk.css +1 -0
- package/static/css/926.0adf7962.chunk.css +1 -0
- package/static/css/95.10d95045.chunk.css +1 -0
- package/static/js/12.8e334d14.chunk.js +1 -0
- package/static/js/136.2b2236a7.chunk.js +1 -0
- package/static/js/166.978660a0.chunk.js +1 -0
- package/static/js/204.fcae35ae.chunk.js +1 -0
- package/static/js/240.0c14b670.chunk.js +2 -0
- package/static/js/245.58ce61c6.chunk.js +1 -0
- package/static/js/267.8288d78f.chunk.js +2 -0
- package/static/js/282.fbe49074.chunk.js +2 -0
- package/static/js/302.41f7dffe.chunk.js +1 -0
- package/static/js/367.0e2349d8.chunk.js +2 -0
- package/static/js/423.4d5ac85a.chunk.js +1 -0
- package/static/js/517.8b40fdc1.chunk.js +1 -0
- package/static/js/55.f26df2af.chunk.js +1 -0
- package/static/js/561.95fd0242.chunk.js +1 -0
- package/static/js/576.469daa2e.chunk.js +1 -0
- package/static/js/580.25fbf2bb.chunk.js +1 -0
- package/static/js/602.806edcd9.chunk.js +1 -0
- package/static/js/642.ef5b3d84.chunk.js +1 -0
- package/static/js/648.d2b1b5aa.chunk.js +1 -0
- package/static/js/664.82dacddc.chunk.js +1 -0
- package/static/js/725.a59f0bbb.chunk.js +2 -0
- package/static/js/850.c2c8be95.chunk.js +1 -0
- package/static/js/853.af135048.chunk.js +1 -0
- package/static/js/92.d5105c19.chunk.js +1 -0
- package/static/js/95.66a96829.chunk.js +1 -0
- package/static/js/972.dd8141d3.chunk.js +1 -0
- package/static/js/985.4bcdae89.chunk.js +1 -0
- package/whatmore.css +0 -0
- package/whatmore.js +2 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 282.fbe49074.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[282],{3867:function(t,o,n){"use strict";var i=n(8816),r=n(417),e=n(4885),a=n(7753),c=n(6417);o.Z=function(t){var o;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[s,u]=(0,a.j1)("productRatings"),p=(0,a.MO)("whatmorePrimaryFont"),d=(0,a.MO)("whatmoreUITheme"),l=(t.storeId,t.productId),f=(t.productLink,t.fontSize),_=null!==(o=t.fontColor)&&void 0!==o?o:"gray";if(null===s||"undefined"==typeof s||!(l in s)||s[l].avgRating>5)return(0,c.jsx)(c.Fragment,{});const m=s[l].avgRating,h=s[l].totalRatings;return(0,c.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,c.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(m))].map(((t,o)=>(0,c.jsx)(i.Z,{sx:{color:n,fontSize:f+"px"}},"star-icon"+o))),m-Math.floor(m)>.2?(0,c.jsx)(r.Z,{sx:{color:n,fontSize:f+"px"}},"star-half-icon"):m-Math.floor(m)==0?(0,c.jsx)(c.Fragment,{}):(0,c.jsx)(e.Z,{sx:{color:n,fontSize:f+"px"}},"star-outline-icon"),[...Array(Math.floor(5-m))].map(((t,o)=>(0,c.jsx)(e.Z,{sx:{color:n,fontSize:f+"px"}},"star-outline-icon-"+o))),(0,c.jsx)("div",{children:(0,c.jsx)("div",{width:"2px"})}),(0,c.jsx)("div",{children:(0,c.jsx)("div",{style:{backgroundColor:n,borderRadius:"round"==d?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,c.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*f+"px","important"),t.style.setProperty("font-family",p,"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,"\xa0"]})})}),(0,c.jsx)("div",{children:(0,c.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",_,"important"),t.style.setProperty("font-size",.8*f+"px","important"),t.style.setProperty("font-family",p,"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","("+h+")"]})})]})})}},9219:function(t,o,n){"use strict";n.d(o,{p_:function(){return l},Rb:function(){return f},jx:function(){return d}});var i=n(6585),r=n(6040),e=n.n(r),a=n(9854);function c(t,o){var n;return null!==(n=(0,a.Qx)(o)[t])&&void 0!==n?n:e()(t)}function s(){return null!=window.Shopify||"undefined"!=typeof window.Shopify}function u(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function p(t){if(t%1>=.1){return t.toString().split(".")[0].length>=4?parseInt(t):t.toFixed(2)}return parseInt(t)}function d(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=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(!s())return"70993772860"==n||"72534294803"==n?"$"+o+u(p(t)):c(null!==i&&void 0!==i?i:"INR",n)+o+u(p(t));const r=window.Shopify.currency?window.Shopify.currency.active:"INR",e=parseFloat(window.Shopify.currency?window.Shopify.currency.rate:"1.0");return c(r,n)+o+u(p(t*e))}async function l(t,o,n){for(let c=0;c<t.products.length;c++){var r,e,a;const s=await(0,i.vX)(t.products[c],o,n);t.products[c].price=null!==(r=s.price)&&void 0!==r?r:t.products[c].price,t.products[c].compare_price=null!==(e=s.compare_at_price)&&void 0!==e?e:t.products[c].compare_price,t.products[c].currency=null!==(a=s.currency_code)&&void 0!==a?a:t.products[c].currency}return t}async function f(t,o,n){var r,e,a;const c=await(0,i.vX)(t,o,n);return t.price=null!==(r=c.price)&&void 0!==r?r:t.price,t.compare_price=null!==(e=c.compare_at_price)&&void 0!==e?e:t.compare_price,t.currency=null!==(a=c.currency_code)&&void 0!==a?a:t.currency,t}},5945:function(t,o,n){"use strict";function i(t){return"undefined"==typeof t||"undefined"==t||null==t?"":t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}n.d(o,{s:function(){return i}})},5456:function(t,o,n){"use strict";n.d(o,{B:function(){return i}});const i=function(t,o){return!(isNaN(o)||!o||("string"===typeof o||o instanceof String)&&!o.trim().length)&&!(parseInt(o)<=parseInt(t))}},6585:function(t,o,n){"use strict";n.d(o,{jg:function(){return q},TE:function(){return tt},rY:function(){return Q},OM:function(){return ot},vX:function(){return nt},Y4:function(){return W},ln:function(){return X}});var i=n(9854);function r(t){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var i in n)t[i]=n[i]}return t}var e=function t(o,n){function i(t,i,e){if("undefined"!==typeof document){"number"===typeof(e=r({},n,e)).expires&&(e.expires=new Date(Date.now()+864e5*e.expires)),e.expires&&(e.expires=e.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in e)e[c]&&(a+="; "+c,!0!==e[c]&&(a+="="+e[c].split(";")[0]));return document.cookie=t+"="+o.write(i,t)+a}}return Object.create({set:i,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],i={},r=0;r<n.length;r++){var e=n[r].split("="),a=e.slice(1).join("=");try{var c=decodeURIComponent(e[0]);if(i[c]=o.read(a,c),t===c)break}catch(s){}}return t?i[t]:i}},remove:function(t,o){i(t,"",r({},o,{expires:-1}))},withAttributes:function(o){return t(this.converter,r({},this.attributes,o))},withConverter:function(o){return t(r({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(o)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),a=e;const c={STRR72TX6AT:"https://www.cbazaar.com"};function s(t){return t.product_metadata.sku_id}function u(t){return c[t]}async function p(t,o){function n(t){const o=t.data.product_data[0];var n=[{id:o.product_id,product_id:o.product_id,title:o.product_title,price:100*o.price,compare_at_price:100*o.mrp,currency_code:o.currency_code,available:!o.outOfStock,option1:null,option2:null,option3:null,options:[]}];const i=(n=n.filter((t=>1==t.available))).map((t=>t.option1));return{id:o.product_id,title:o.product_title,body_html:"",variants:n,options:i}}const i=u(o);return n(await fetch(i+"/productsv3api/getproductdetails/"+s(t),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t))))}const d={STRRPY8YRZE:"https://idaho-o.com"},l=(window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),"Y2tfZTI1OWVmNWVlNzg5MzIzYzIzOWU3ZDE0NjQwNmUwZmZkZGY4NDQ5Yzpjc19iYzdkZjI0MGEwYTgzNDhlZjNhMTI4ZTA3MDRkMmMwNmU5ZGM4NTM5");function f(t){return t.product_metadata.sku_id}function _(t){return d[t]}async function m(t,o){const n=_(o);return function(t){const o=t;var n=Object.entries(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:"",price:100*o.price,compare_at_price:100*o.price,available:"instock"===o.stock_status,option1:t[1],option2:null,option3:null,options:[t[1]]}}));const i=(n=n.filter((t=>1==t.available))).map((t=>t.option1));return{id:o.product_id,title:o.product_title,body_html:o.description,variants:n,options:i}}(await fetch(n+"/wp-json/wc/v3/products/"+f(t),{method:"GET",headers:{Authorization:"Basic "+l}}).then((t=>t.json())).catch((t=>console.error(t))))}async function h(t,o,n){const i=t.split(":"),r=i[0],e=i[1],a=i[2],c=_(n)+"/wp-admin/admin-ajax.php",s={Authorization:"Basic "+l},u=new FormData;u.append("action","woocommerce_ajax_add_to_cart"),u.append("product_id",e),u.append("product_sku",""),u.append("quantity",o),u.append("variation_id",r),u.append("variation[attribute_pa_size]",a?a.toLowerCase():"");return await fetch(c,{method:"POST",headers:s,body:u}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}var w;const v={STRMM0QP0CU:"https://"+window.location.hostname},y=null!==(w=a.get("form_key"))&&void 0!==w?w:"undefined",S=(window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),"02ds791x6wmqrp9rx13xsiiax39xpfaj");function b(t){return t.product_metadata.sku_id}function T(t){return v[t]}async function R(t,o){var n=await async function(t){const o=T(t);return(await fetch(o+"/rest/V1/products/attributes/ready_to_wear_sizes",{method:"GET",headers:{Authorization:"Bearer "+S}}).then((t=>t.json())).catch((t=>console.error(t)))).options.reduce(((t,o,n)=>(t[o.value]=o.label,t)),{})}(o),i=[];return t.split(",").forEach((t=>{t in n&&i.push(t+":"+n[t])})),i}async function g(t){var o=[];return t.options.forEach((t=>{t.values.forEach((n=>{"Ready to wear"==n.title&&o.push(t.option_id+":"+n.option_type_id)}))})),o[0]}async function j(t,o){async function n(t){const n=t,i=n.extension_attributes.is_ready_to_ware,r=n.custom_attributes.reduce(((t,o,n)=>(t[o.attribute_code]=o.value,t)),{});if(0==i)return{id:n.id,title:n.name,body_html:r.description,variants:[{id:"single_option::"+n.id,product_id:n.id,title:"",price:100*n.price,compare_at_price:100*n.price,available:!0,option1:n.extension_attributes.stock_item.item_id,option2:null,option3:null,options:[n.extension_attributes.stock_item.item_id]}],images:[{id:n.id,product_id:n.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::"+n.id]}],options:[{id:n.product_id,product_id:n.product_id,name:"Size",position:1,values:[n.extension_attributes.stock_item.item_id]}]};{const i=await R(r.ready_to_wear_sizes,o),e=await g(t),a=i.map(((t,o)=>{const i=n.extension_attributes.stock_item.item_id,r=t.split(":")[0],a=t.split(":")[1];return{id:"multi_option::"+n.id+":"+i+":"+a+":"+r+":"+e,product_id:n.id,title:"",price:100*n.price,compare_at_price:100*n.price,available:!0,option1:a,option2:null,option3:null,options:null}})),c=i.map(((t,o)=>{t.split(":")[0];return t.split(":")[1]}));return{id:n.id,title:n.name,body_html:r.description,variants:a,images:[{id:n.id,product_id:n.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::"+n.id]}],options:[{id:n.product_id,product_id:n.product_id,name:"Size",position:1,values:c}]}}}const i=T(o),r=await fetch(i+"/rest/default/V1/products/"+b(t),{method:"GET",headers:{Authorization:"Bearer "+S,"User-Agent":"PostmanRuntime/7.32.3"}}).then((t=>t.json())).catch((t=>console.error(t)));return await n(r)}async function k(t,o,n){var i,r;if(t.startsWith("single_option::")){const i=t.split("::")[1],r=T(n)+"/ajaxcart",e={Authorization:"Bearer "+S},a=new FormData;a.append("product",i),a.append("item",i),a.append("qty",o),a.append("form_key",y);return await fetch(r,{method:"POST",headers:e,body:a}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const e=t.split("::")[1].split(":"),a=e[0],c=(e[1],e[2]),s=(e[3],null!==(i=e[4])&&void 0!==i?i:void 0),u=null!==(r=e[5])&&void 0!==r?r:void 0,p=T(n)+"/ajaxcart",d={Authorization:"Bearer "+S},l=new FormData;l.append("product",a),l.append("item",a),l.append("qty",o),l.append("options["+s+"]",u),l.append("options[size_"+s+"]",c),l.append("form_key",y);return await fetch(p,{method:"POST",headers:d,body:l}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}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"},D={STRNV8MHJTF:1,STR6HU283UZ:1,STR9T3LLEJB:5,STRWJMIOJNX:2,STR1D5ONOZX:4,STRUDQ36YAC:3},N=window.location.hostname.substring(10,4)+"_cart",P=window.location.hostname.substring(10,4)+"_carts",M=window.location.hostname.substring(10,4)+"_curr";function C(t){return t.product_link.match(/\/([^\/]+)\/?$/)[1].replace(".html","")}function U(t){return D[t]}function A(t){return x[t]}function O(t){var o;return null!==(o=a.get(M))&&void 0!==o?o:"INR"}async function B(t,o){const n=A(o);return function(t){const o=t.data.product_data[0];var n=Object.entries(o.variation).map((t=>{const o=t[1],n=o.configrable_atribute_value;return{id:o.id_product,product_id:o.id_product,title:"",price:100*o.selling_price,compare_at_price:100*o.price,available:"in-stock"==o.stock_status,option1:n,option2:null,option3:null,options:[n]}}));const i=(n=n.filter((t=>1==t.available))).map((t=>t.option1));return{id:o.product_id,title:o.product_title,body_html:o.description,variants:n,options:i}}(await fetch(n+"/get-product?url_key="+C(t)+"&store="+U(o)+"¤cy="+O(),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t))))}async function L(t,o,n){const i=A(n),r=a.get(N),e=a.get(P);var c={varient_id:t,qty:o,store:U(n)};r&&e&&(c={varient_id:t,qty:o,store:U(n),cart_id:r,cart_session:e});return await fetch(i+"/add-product",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then((t=>t.json())).then((t=>(r||(a.set(N,t.data.cart_id,{expires:365}),a.set(P,t.data.cart_session,{expires:365})),{ok:!0,status:200,json:function(){return{}}})))}const G={STRJ5VPPT3U:"https://partners.yespoho.in"};function z(t){return t.product_link.match(/\/([^\/]+)\/?$/)[1].replace(".html","")}function E(t){return G[t]}async function Z(t,o){const n=E(o);return function(t){const o=t[0];null==o.variations&&(o.variations=["no-variations"]);var n=Object.entries(o.variations).map((t=>{const n=t[1];return{id:o.product_id+"::"+n,product_id:o.product_id,title:"",price:100*o.price,compare_at_price:100*o.mrp,available:!0,option1:n,option2:null,option3:null,options:[n]}}));const i=(n=n.filter((t=>1==t.available))).map((t=>t.option1));return{id:o.product_id,title:o.product_title,body_html:o.description,variants:n,options:i}}(await fetch(n+"/api/product-details/"+z(t),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t))))}async function F(t,o,n){const i=E(n),r=t.split("::"),e=r[0],a=r.length>1?r[1]:"";return await fetch(i+"/cart/addtocart?product_id="+e+("no-variations"===a||t?"":"&variation_value="+a)+"&qty="+o,{method:"GET"}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const $="https://www.ninecolours.com";function I(t){const o=t.product_link.split("-");return o[o.length-1]}function K(t){return"STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t}function Y(t){return"STRRPY8YRZE"==t}function H(t){return"STR5KA9X0OZ"==t||"STRR72TX6AT"==t}function J(t){return"STRMM0QP0CU"==t}function V(t){return"STRJ5VPPT3U"==t}async function W(t,o){if(K(o))return async function(t,o){const n=A(o);return function(t){const o=t.data.product_data[0];var n=Object.entries(o.variation).map((t=>{const o=t[1],n=o.configrable_atribute_value;return{id:o.id_product,product_id:o.id_product,title:"",price:o.selling_price,compare_at_price:o.price,available:"in-stock"==o.stock_status,option1:n,option2:null,option3:null}}));const i=(n=n.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:o.product_id,title:o.product_title,body_html:o.description,variants:n,images:[{id:o.product_id,product_id:o.product_id,position:1,src:o.thumbnail_image,variant_ids:[o.product_id]}],options:[{id:o.product_id,product_id:o.product_id,name:"Size",position:1,values:i}]}}}(await fetch(n+"/get-product?url_key="+C(t)+"&store="+U(o)+"¤cy="+O(),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if(Y(o))return async function(t,o){const n=_(o);return function(t){const o=t;var n=Object.entries(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:"",price:o.price,compare_at_price:o.price,available:"instock"===o.stock_status,option1:t[1],option2:null,option3:null}}));const i=n.map((t=>t.option1));return{product:{id:o.id,title:o.name,body_html:o.short_description,variants:n,images:[{id:o.images[0].id,product_id:o.id,position:1,src:o.images[0].src,variant_ids:[o.variations[0]]}],options:[{id:o.product_id,product_id:o.product_id,name:"Size",position:1,values:i}]}}}(await fetch(n+"/wp-json/wc/v3/products/"+f(t),{method:"GET",headers:{Authorization:"Basic "+l}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if(H(o))return async function(t,o){function n(t){const o=t.data.product_data[0];var n=[{id:o.product_id,product_id:o.product_id,title:o.product_title,price:o.price,compare_at_price:o.mrp,currency_code:o.currency_code,available:!o.outOfStock,option1:null,option2:null,option3:null}];const i=(n=n.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:o.product_id,title:o.product_title,body_html:"",variants:n,images:[{id:o.product_id,product_id:o.product_id,position:1,src:o.thumbnail_image,variant_ids:[o.product_id]}],options:[{id:o.product_id,product_id:o.product_id,name:"Size",position:1,values:i}]}}}const i=u(o);return n(await fetch(i+"/productsv3api/getproductdetails/"+s(t),{method:"GET",headers:{redirect:"follow"}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if(J(o))return async function(t,o){async function n(t){const n=t,i=n.extension_attributes.is_ready_to_ware,r=n.custom_attributes.reduce(((t,o,n)=>(t[o.attribute_code]=o.value,t)),{});if(0==i)return{product:{id:n.id,title:n.name,body_html:r.description,variants:[{id:"single_option::"+n.id,product_id:n.id,title:"",price:n.price,compare_at_price:n.price,available:!0,option1:n.extension_attributes.stock_item.item_id,option2:null,option3:null}],images:[{id:n.id,product_id:n.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:[n.id]}],options:[{id:n.product_id,product_id:n.product_id,name:"Size",position:1,values:[n.extension_attributes.stock_item.item_id]}]}};{const i=await R(r.ready_to_wear_sizes,o),e=await g(t),a=i.map(((t,o)=>{const i=n.extension_attributes.stock_item.item_id,r=t.split(":")[0],a=t.split(":")[1];return{id:"multi_option::"+n.id+":"+i+":"+a+":"+r+":"+e,product_id:n.id,title:"",price:n.price,compare_at_price:n.price,available:!0,option1:a,option2:null,option3:null,options:null}})),c=i.map(((t,o)=>(t.split(":")[0],t.split(":")[1])));return{product:{id:n.id,title:n.name,body_html:r.description,variants:a,images:[{id:n.id,product_id:n.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:[n.id]}],options:[{id:n.product_id,product_id:n.product_id,name:"Size",position:1,values:c}]}}}}const i=T(o),r=await fetch(i+"/rest/default/V1/products/"+b(t),{method:"GET",headers:{Authorization:"Bearer "+S}}).then((t=>t.json())).catch((t=>console.error(t)));return await n(r)}(t,o);if(V(o))return async function(t,o){const n=E(o);return function(t){const o=t[0];null==o.variations&&(o.variations=["no-variations"]);var n=Object.entries(o.variations).map((t=>{const n=t[1];return{id:o.product_id+"::"+n,product_id:o.product_id,title:"",price:o.price,compare_at_price:o.mrp,available:!0,option1:n,option2:null,option3:null}}));const i=(n=n.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:o.product_id,title:o.product_title,body_html:o.description,variants:n,images:[{id:o.product_id,product_id:o.product_id,position:1,src:o.thumbnail_image,variant_ids:[o.product_id]}],options:[{id:o.product_id,product_id:o.product_id,name:"Size",position:1,values:i}]}}}(await fetch(n+"/api/product-details/"+z(t),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if("STRGA3S8N41"==o){function n(t){const o=t.data.product_data[0];return{product:{id:o.product_id,title:o.product_title,body_html:o.description,variants:[{id:o.product_id,product_id:o.product_id,title:o.product_title,price:o.price,compare_at_price:o.mrp,currency_code:o.currency_code,option1:"variant-1",option2:null,option3:null}],images:[{id:o.product_id,product_id:o.product_id,position:1,src:o.thumbnail_image[0],variant_ids:[o.product_id]}]}}}const i=$;return n(await fetch(i+"/whatmore-productfetch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_code:I(t)})}).then((t=>t.json())).catch((t=>console.error(t))))}return{}}async function X(t,o){if(K(o))return B(t,o);if(Y(o))return m(t,o);if(H(o))return p(t,o);if(J(o))return j(t,o);if(V(o))return Z(t,o);if("STRGA3S8N41"==o){function n(t){const o=t.data.product_data[0];return{id:o.product_id,title:o.product_title,body_html:o.description,variants:[{id:o.product_id,title:"variant-1",option1:"variant-1",option2:null,option3:null,available:!0,price:o.price,compare_at_price:o.mrp,currency_code:o.currency_code,options:["variant-1"]}],options:[{name:"variant",position:1,values:["variant-1"]}]}}const i=$;return n(await fetch(i+"/whatmore-productfetch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_code:I(t)})}).then((t=>t.json())).catch((t=>console.error(t))))}return{}}async function q(t,o,n){if(K(n))return await L(t,o,n);if(Y(n))return await h(t,o,n);if(J(n))return k(t,o,n);if(V(n))return F(t,o,n);if("STRGA3S8N41"==n){const n=$;return await fetch(n+"/whatmore-addtocart ",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_id:t,qty:o})})}return{}}async function Q(t,o,n){if(K(n))return async function(t,o,n){await L(t,o,n);const r="https://"+window.location.hostname;var e;e=(0,i.lj)(n)?"".concat(r,"/checkout")+"?"+(0,i.aw)(n)+"&"+(0,i.n9)(n)+"&"+(0,i.Uc)(n):"".concat(r,"/checkout"),window.location.href=e}(t,o,n);if(Y(n))return async function(t,o,n){await h(t,o,n);const r="https://"+window.location.hostname;var e;e=(0,i.lj)(n)?"".concat(r,"/cart")+"?"+(0,i.aw)(n)+"&"+(0,i.n9)(n)+"&"+(0,i.Uc)(n):"".concat(r,"/cart"),window.location.href=e}(t,o,n);if(J(n))return async function(t,o,n){await k(t,o,n);const r="https://"+window.location.hostname;var e;e=(0,i.lj)(n)?"".concat(r,"/checkout/cart")+"?"+(0,i.aw)(n)+"&"+(0,i.n9)(n)+"&"+(0,i.Uc)(n):"".concat(r,"/checkout/cart"),window.location.href=e}(t,o,n);if(V(n))return async function(t,o,n){await F(t,o,n);const r="https://"+window.location.hostname;var e;e=(0,i.lj)(n)?"".concat(r,"/checkout")+"?"+(0,i.aw)(n)+"&"+(0,i.n9)(n)+"&"+(0,i.Uc)(n):"".concat(r,"/checkout"),window.location.href=e}(t,o,n);if("STRGA3S8N41"==n){await q(t,o,n);const e="https://"+window.location.hostname;var r;r=(0,i.lj)(n)?"".concat(e,"/cart")+"?"+(0,i.aw)(n)+"&"+(0,i.n9)(n)+"&"+(0,i.Uc)(n):"".concat(e,"/cart"),window.location.href=r}return{}}async function tt(t){if(K(t))return async function(t){const o="https://"+window.location.hostname;var n;n=(0,i.lj)(t)?"".concat(o,"/cart")+"?"+(0,i.aw)(t)+"&"+(0,i.n9)(t)+"&"+(0,i.Uc)(t):"".concat(o,"/cart"),window.location.href=n}(t);if(Y(t))return async function(t){const o="https://"+window.location.hostname;var n;n=(0,i.lj)(t)?"".concat(o,"/cart")+"?"+(0,i.aw)(t)+"&"+(0,i.n9)(t)+"&"+(0,i.Uc)(t):"".concat(o,"/cart"),window.location.href=n}(t);if(J(t))return async function(t){const o="https://"+window.location.hostname;var n;n=(0,i.lj)(t)?"".concat(o,"/checkout/cart")+"?"+(0,i.aw)(t)+"&"+(0,i.n9)(t)+"&"+(0,i.Uc)(t):"".concat(o,"/checkout/cart"),window.location.href=n}(t);if(V(t))return async function(t){const o="https://"+window.location.hostname;var n;n=(0,i.lj)(t)?"".concat(o,"/cart")+"?"+(0,i.aw)(t)+"&"+(0,i.n9)(t)+"&"+(0,i.Uc)(t):"".concat(o,"/cart"),window.location.href=n}(t);if("STRGA3S8N41"==t){const n="https://"+window.location.hostname;var o;o=(0,i.lj)(t)?"".concat(n,"/cart")+"?"+(0,i.aw)(t)+"&"+(0,i.n9)(t)+"&"+(0,i.Uc)(t):"".concat(n,"/cart"),window.location.href=o}return{}}function ot(t){if(K(t))return function(t){const o=a.get(N),n=A(t);return fetch(n+"/get-cart",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cart_id:o})}).then((t=>t.json())).then((t=>({json:function(){return{item_count:t.data.item_count}}})))}(t);if(Y(t))return function(t){const o=_(t);return fetch(o+"/wp-json/wc/v3/cart`",{method:"GET",headers:{Authorization:"Basic "+l}}).then((t=>t.json())).then((t=>({json:function(){var o;return{item_count:null!==(o=t.data.item_count)&&void 0!==o?o:0}}})))}(t);if(J(t))return function(t){const o=T(t);return fetch(o+"/wp-json/wc/v3/cart`",{method:"GET",headers:{Authorization:"Basic "+S}}).then((t=>t.json())).then((t=>({json:function(){var o;return{item_count:null!==(o=t.data.item_count)&&void 0!==o?o:0}}})))}(t);if(V(t))return Promise.resolve({json:function(){return{item_count:0}}});if("STRGA3S8N41"==t){return fetch($+"/whatmore-cartcount ",{method:"GET",headers:{"Content-Type":"application/json"}})}return{}}async function nt(t,o,n){if(K(n))return async function(t,o){const n=await B(t,o);return{price:n.variants[0].price/100,compare_at_price:n.variants[0].compare_at_price/100,currency_code:O()}}(t,n);if(Y(n))return async function(t,o){const n=await m(t,o);return{price:n.variants[0].price/100,compare_at_price:n.variants[0].compare_at_price/100,currency_code:"INR"}}(t,n);if(J(n))return async function(t,o){const n=await j(t,o);return{price:n.variants[0].price/100,compare_at_price:n.variants[0].compare_at_price/100,currency_code:"INR"}}(t,n);if(V(n))return async function(t,o){const n=await Z(t,o);return{price:n.variants[0].price/100,compare_at_price:n.variants[0].compare_at_price/100,currency_code:"INR"}}(t,n);if(H(n))return async function(t,o){const n=await p(t,o);return{price:n.variants[0].price/100,compare_at_price:n.variants[0].compare_at_price/100,currency_code:n.variants[0].currency_code}}(t,n);if("STRGA3S8N41"==n){const o=await X(t,n);return{price:o.variants[0].price,compare_at_price:o.variants[0].compare_at_price,currency_code:o.variants[0].currency_code}}return{}}},8816:function(t,o,n){"use strict";var i=n(5318);o.Z=void 0;var r=i(n(5045)),e=n(6417),a=(0,r.default)((0,e.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");o.Z=a},417:function(t,o,n){"use strict";var i=n(5318);o.Z=void 0;var r=i(n(5045)),e=n(6417),a=(0,r.default)((0,e.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");o.Z=a},4885:function(t,o,n){"use strict";var i=n(5318);o.Z=void 0;var r=i(n(5045)),e=n(6417),a=(0,r.default)((0,e.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");o.Z=a},6040:function(t,o,n){const i=n(500);t.exports=function(t){if("string"!==typeof t)return;const o=t.toUpperCase();return Object.prototype.hasOwnProperty.call(i,o)?i[o]:void 0},t.exports.currencySymbolMap=i},500:function(t){t.exports={AED:"\u062f.\u0625",AFN:"\u060b",ALL:"L",AMD:"\u058f",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20bc",BAM:"KM",BBD:"$",BDT:"\u09f3",BGN:"\u043b\u0432",BHD:".\u062f.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20bf",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xa5",CNY:"\xa5",COP:"$",COU:"COU",CRC:"\u20a1",CUC:"$",CUP:"\u20b1",CVE:"$",CZK:"K\u010d",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062f\u062c",EEK:"kr",EGP:"\xa3",ERN:"Nfk",ETB:"Br",ETH:"\u039e",EUR:"\u20ac",FJD:"$",FKP:"\xa3",GBP:"\xa3",GEL:"\u20be",GGP:"\xa3",GHC:"\u20b5",GHS:"GH\u20b5",GIP:"\xa3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20aa",IMP:"\xa3",INR:"\u20b9",IQD:"\u0639.\u062f",IRR:"\ufdfc",ISK:"kr",JEP:"\xa3",JMD:"J$",JOD:"JD",JPY:"\xa5",KES:"KSh",KGS:"\u043b\u0432",KHR:"\u17db",KMF:"CF",KPW:"\u20a9",KRW:"\u20a9",KWD:"KD",KYD:"$",KZT:"\u20b8",LAK:"\u20ad",LBP:"\xa3",LKR:"\u20a8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043d",MMK:"K",MNT:"\u20ae",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20a8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20a6",NIO:"C$",NOK:"kr",NPR:"\u20a8",NZD:"$",OMR:"\ufdfc",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20b1",PKR:"\u20a8",PLN:"z\u0142",PYG:"Gs",QAR:"\ufdfc",RMB:"\uffe5",RON:"lei",RSD:"\u0414\u0438\u043d.",RUB:"\u20bd",RWF:"R\u20a3",SAR:"\ufdfc",SBD:"$",SCR:"\u20a8",SDG:"\u062c.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xa3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xa3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xa3",SZL:"E",THB:"\u0e3f",TJS:"SM",TMT:"T",TND:"\u062f.\u062a",TOP:"T$",TRL:"\u20a4",TRY:"\u20ba",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20b4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043b\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20ab",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20a3",XSU:"Sucre",XUA:"XUA",YER:"\ufdfc",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"}},5892:function(){},4444:function(){},1811:function(){},6143:function(){},7850:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[302],{2575:function(e,t,r){r.d(t,{Z:function(){return ae}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(n){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),a=Math.abs,c=String.fromCharCode,s=Object.assign;function i(e){return e.trim()}function o(e,t,r){return e.replace(t,r)}function u(e,t){return e.indexOf(t)}function f(e,t){return 0|e.charCodeAt(t)}function l(e,t,r){return e.slice(t,r)}function h(e){return e.length}function d(e){return e.length}function p(e,t){return t.push(e),e}var v=1,m=1,g=0,b=0,y=0,w="";function k(e,t,r,n,a,c,s){return{value:e,root:t,parent:r,type:n,props:a,children:c,line:v,column:m,length:s,return:""}}function x(e,t){return s(k("",null,null,"",null,null,0),e,{length:-e.length},t)}function C(){return y=b>0?f(w,--b):0,m--,10===y&&(m=1,v--),y}function $(){return y=b<g?f(w,b++):0,m++,10===y&&(m=1,v++),y}function A(){return f(w,b)}function S(){return b}function O(e,t){return l(w,e,t)}function _(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function E(e){return v=m=1,g=h(w=e),b=0,[]}function j(e){return w="",e}function P(e){return i(O(b-1,I(91===e?e+2:40===e?e+1:e)))}function R(e){for(;(y=A())&&y<33;)$();return _(e)>2||_(y)>3?"":" "}function z(e,t){for(;--t&&$()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return O(e,S()+(t<6&&32==A()&&32==$()))}function I(e){for(;$();)switch(y){case e:return b;case 34:case 39:34!==e&&39!==e&&I(y);break;case 40:41===e&&I(e);break;case 92:$()}return b}function N(e,t){for(;$()&&e+y!==57&&(e+y!==84||47!==A()););return"/*"+O(t,b-1)+"*"+c(47===e?e:$())}function G(e){for(;!_(A());)$();return O(e,b)}var M="-ms-",T="-moz-",W="-webkit-",Z="comm",L="rule",q="decl",D="@keyframes";function F(e,t){for(var r="",n=d(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function H(e,t,r,n){switch(e.type){case"@import":case q:return e.return=e.return||e.value;case Z:return"";case D:return e.return=e.value+"{"+F(e.children,n)+"}";case L:e.value=e.props.join(",")}return h(r=F(e.children,n))?e.return=e.value+"{"+r+"}":""}function B(e,t){switch(function(e,t){return(((t<<2^f(e,0))<<2^f(e,1))<<2^f(e,2))<<2^f(e,3)}(e,t)){case 5103:return W+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return W+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+T+e+M+e+e;case 6828:case 4268:return W+e+M+e+e;case 6165:return W+e+M+"flex-"+e+e;case 5187:return W+e+o(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return W+e+M+"flex-item-"+o(e,/flex-|-self/,"")+e;case 4675:return W+e+M+"flex-line-pack"+o(e,/align-content|flex-|-self/,"")+e;case 5548:return W+e+M+o(e,"shrink","negative")+e;case 5292:return W+e+M+o(e,"basis","preferred-size")+e;case 6060:return W+"box-"+o(e,"-grow","")+W+e+M+o(e,"grow","positive")+e;case 4554:return W+o(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return o(o(o(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return o(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return o(o(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4095:case 3583:case 4068:case 2532:return o(e,/(.+)-inline(.+)/,W+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(h(e)-1-t>6)switch(f(e,t+1)){case 109:if(45!==f(e,t+4))break;case 102:return o(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+T+(108==f(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?B(o(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==f(e,t+1))break;case 6444:switch(f(e,h(e)-3-(~u(e,"!important")&&10))){case 107:return o(e,":",":"+W)+e;case 101:return o(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(45===f(e,14)?"inline-":"")+"box$3$1"+W+"$2$3$1"+M+"$2box$3")+e}break;case 5936:switch(f(e,t+11)){case 114:return W+e+M+o(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+M+o(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+M+o(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+M+e+e}return e}function J(e){return j(K("",null,null,null,[""],e=E(e),0,[0],e))}function K(e,t,r,n,a,s,i,f,l){for(var d=0,v=0,m=i,g=0,b=0,y=0,w=1,k=1,x=1,O=0,_="",E=a,j=s,I=n,M=_;k;)switch(y=O,O=$()){case 40:if(108!=y&&58==M.charCodeAt(m-1)){-1!=u(M+=o(P(O),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:M+=P(O);break;case 9:case 10:case 13:case 32:M+=R(y);break;case 92:M+=z(S()-1,7);continue;case 47:switch(A()){case 42:case 47:p(U(N($(),S()),t,r),l);break;default:M+="/"}break;case 123*w:f[d++]=h(M)*x;case 125*w:case 59:case 0:switch(O){case 0:case 125:k=0;case 59+v:b>0&&h(M)-m&&p(b>32?V(M+";",n,r,m-1):V(o(M," ","")+";",n,r,m-2),l);break;case 59:M+=";";default:if(p(I=Q(M,t,r,d,v,a,f,_,E=[],j=[],m),s),123===O)if(0===v)K(M,t,I,I,E,s,m,f,j);else switch(g){case 100:case 109:case 115:K(e,I,I,n&&p(Q(e,I,I,0,0,a,f,_,a,E=[],m),j),a,j,m,f,n?E:j);break;default:K(M,I,I,I,[""],j,0,f,j)}}d=v=b=0,w=x=1,_=M="",m=i;break;case 58:m=1+h(M),b=y;default:if(w<1)if(123==O)--w;else if(125==O&&0==w++&&125==C())continue;switch(M+=c(O),O*w){case 38:x=v>0?1:(M+="\f",-1);break;case 44:f[d++]=(h(M)-1)*x,x=1;break;case 64:45===A()&&(M+=P($())),g=A(),v=m=h(_=M+=G(S())),O++;break;case 45:45===y&&2==h(M)&&(w=0)}}return s}function Q(e,t,r,n,c,s,u,f,h,p,v){for(var m=c-1,g=0===c?s:[""],b=d(g),y=0,w=0,x=0;y<n;++y)for(var C=0,$=l(e,m+1,m=a(w=u[y])),A=e;C<b;++C)(A=i(w>0?g[C]+" "+$:o($,/&\f/g,g[C])))&&(h[x++]=A);return k(e,t,r,0===c?L:f,h,p,v)}function U(e,t,r){return k(e,t,r,Z,c(y),l(e,2,-2),0)}function V(e,t,r,n){return k(e,t,r,q,l(e,0,n),l(e,n+1,-1),n)}var X=function(e,t,r){for(var n=0,a=0;n=a,a=A(),38===n&&12===a&&(t[r]=1),!_(a);)$();return O(e,b)},Y=function(e,t){return j(function(e,t){var r=-1,n=44;do{switch(_(n)){case 0:38===n&&12===A()&&(t[r]=1),e[r]+=X(b-1,t,r);break;case 2:e[r]+=P(n);break;case 4:if(44===n){e[++r]=58===A()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=c(n)}}while(n=$());return e}(E(e),t))},ee=new WeakMap,te=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ee.get(r))&&!n){ee.set(e,!0);for(var a=[],c=Y(t,a),s=r.props,i=0,o=0;i<c.length;i++)for(var u=0;u<s.length;u++,o++)e.props[o]=a[i]?c[i].replace(/&\f/g,s[u]):s[u]+" "+c[i]}}},re=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ne=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case q:e.return=B(e.value,e.length);break;case D:return F([x(e,{value:o(e.value,"@","@"+W)})],n);case L:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return F([x(e,{props:[o(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return F([x(e,{props:[o(t,/:(plac\w+)/,":-webkit-input-$1")]}),x(e,{props:[o(t,/:(plac\w+)/,":-moz-$1")]}),x(e,{props:[o(t,/:(plac\w+)/,M+"input-$1")]})],n)}return""}))}}],ae=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a=e.stylisPlugins||ne;var c,s,i={},o=[];c=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)i[t[r]]=!0;o.push(e)}));var u,f,l=[H,(f=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],h=function(e){var t=d(e);return function(r,n,a,c){for(var s="",i=0;i<t;i++)s+=e[i](r,n,a,c)||"";return s}}([te,re].concat(a,l));s=function(e,t,r,n){u=r,F(J(e?e+"{"+t.styles+"}":t.styles),h),n&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new n({key:t,container:c,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p}},9302:function(e,t,r){r.d(t,{C:function(){return u},T:function(){return l},b:function(){return d},w:function(){return f}});var n=r(7313),a=r.t(n,2),c=r(2575),s=r(7462),i=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},o=(r(3752),(0,n.createContext)("undefined"!==typeof HTMLElement?(0,c.Z)({key:"css"}):null));var u=o.Provider,f=function(e){return(0,n.forwardRef)((function(t,r){var a=(0,n.useContext)(o);return e(t,a,r)}))},l=(0,n.createContext)({});var h=i((function(e){return i((function(t){return function(e,t){return"function"===typeof t?t(e):(0,s.Z)({},e,t)}(e,t)}))})),d=function(e){var t=(0,n.useContext)(l);return e.theme!==t&&(t=h(t)(e.theme)),(0,n.createElement)(l.Provider,{value:t},e.children)};a.useInsertionEffect&&a.useInsertionEffect},3752:function(e,t,r){r.d(t,{O:function(){return p}});var n=function(e){for(var t,r=0,n=0,a=e.length;a>=4;++n,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(a){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)},a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var c=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,i=function(e){return 45===e.charCodeAt(1)},o=function(e){return null!=e&&"boolean"!==typeof e},u=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return i(e)?e:e.replace(c,"-$&").toLowerCase()})),f=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,r){return h={name:t,styles:r,next:h},t}))}return 1===a[e]||i(e)||"number"!==typeof t||0===t?t:t+"px"};function l(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return h={name:r.name,styles:r.styles,next:h},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)h={name:n.name,styles:n.styles,next:h},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=l(e,t,r[a])+";";else for(var c in r){var s=r[c];if("object"!==typeof s)null!=t&&void 0!==t[s]?n+=c+"{"+t[s]+"}":o(s)&&(n+=u(c)+":"+f(c,s)+";");else if(!Array.isArray(s)||"string"!==typeof s[0]||null!=t&&void 0!==t[s[0]]){var i=l(e,t,s);switch(c){case"animation":case"animationName":n+=u(c)+":"+i+";";break;default:n+=c+"{"+i+"}"}}else for(var h=0;h<s.length;h++)o(s[h])&&(n+=u(c)+":"+f(c,s[h])+";")}return n}(e,t,r);case"function":if(void 0!==e){var a=h,c=r(e);return h=a,l(e,t,c)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var h,d=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var p=function(e,t,r){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var a=!0,c="";h=void 0;var s=e[0];null==s||void 0===s.raw?(a=!1,c+=l(r,t,s)):c+=s[0];for(var i=1;i<e.length;i++)c+=l(r,t,e[i]),a&&(c+=s[i]);d.lastIndex=0;for(var o,u="";null!==(o=d.exec(c));)u+="-"+o[1];return{name:n(c)+u,styles:c,next:h}}},7462:function(e,t,r){function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{Z:function(){return n}})}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 367.0e2349d8.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[367],{6367:function(e,t,r){var n;n=e=>(()=>{var t={"./node_modules/css-mediaquery/index.js":(e,t)=>{"use strict";t.match=function(e,t){return s(e).some((function(e){var r=e.inverse,n="all"===e.type||t.type===e.type;if(n&&r||!n&&!r)return!1;var o=e.expressions.every((function(e){var r=e.feature,n=e.modifier,o=e.value,a=t[r];if(!a)return!1;switch(r){case"orientation":case"scan":return a.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=f(o),a=f(a);break;case"resolution":o=c(o),a=c(a);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=u(o),a=u(a);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,a=parseInt(a,10)||0}switch(n){case"min":return a>=o;case"max":return a<=o;default:return a===o}}));return o&&!r||!o&&r}))},t.parse=s;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,n=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,o=/^(?:(min|max)-)?(.+)/,a=/(em|rem|px|cm|mm|in|pt|pc)?$/,i=/(dpi|dpcm|dppx)?$/;function s(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),a=t[1],i=t[2],s=t[3]||"",u={};return u.inverse=!!a&&"not"===a.toLowerCase(),u.type=i?i.toLowerCase():"all",s=s.match(/\([^\)]+\)/g)||[],u.expressions=s.map((function(e){var t=e.match(n),r=t[1].toLowerCase().match(o);return{modifier:r[1],feature:r[2],value:t[2]}})),u}))}function u(e){var t,r=Number(e);return r||(r=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),r}function c(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function f(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},"./node_modules/hyphenate-style-name/index.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=/[A-Z]/g,o=/^ms-/,a={};function i(e){return"-"+e.toLowerCase()}const s=function(e){if(a.hasOwnProperty(e))return a[e];var t=e.replace(n,i);return a[e]=o.test(t)?"-"+t:t}},"./node_modules/matchmediaquery/index.js":(e,t,r)=>{"use strict";var n=r("./node_modules/css-mediaquery/index.js").match,o="undefined"!==typeof window?window.matchMedia:null;function a(e,t,r){var a=this;if(o&&!r){var i=o.call(window,e);this.matches=i.matches,this.media=i.media,i.addListener(s)}else this.matches=n(e,t),this.media=e;function s(e){a.matches=e.matches,a.media=e.media}this.addListener=function(e){i&&i.addListener(e)},this.removeListener=function(e){i&&i.removeListener(e)},this.dispose=function(){i&&i.removeListener(s)}}e.exports=function(e,t,r){return new a(e,t,r)}},"./node_modules/object-assign/index.js":e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(o){return!1}}()?Object.assign:function(e,a){for(var i,s,u=o(e),c=1;c<arguments.length;c++){for(var f in i=Object(arguments[c]))r.call(i,f)&&(u[f]=i[f]);if(t){s=t(i);for(var l=0;l<s.length;l++)n.call(i,s[l])&&(u[s[l]]=i[s[l]])}}return u}},"./node_modules/prop-types/checkPropTypes.js":(e,t,r)=>{"use strict";var n=function(){},o=r("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),a={},i=r("./node_modules/prop-types/lib/has.js");function s(e,t,r,s,u){for(var c in e)if(i(e,c)){var f;try{if("function"!==typeof e[c]){var l=Error((s||"React class")+": "+r+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}f=e[c](t,c,s,r,null,o)}catch(p){f=p}if(!f||f instanceof Error||n((s||"React class")+": type specification of "+r+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var d=u?u():"";n("Failed "+r+" type: "+f.message+(null!=d?d:""))}}}n=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(r){}},s.resetWarningCache=function(){a={}},e.exports=s},"./node_modules/prop-types/factoryWithTypeCheckers.js":(e,t,r)=>{"use strict";var n=r("./node_modules/react-is/index.js"),o=r("./node_modules/object-assign/index.js"),a=r("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),i=r("./node_modules/prop-types/lib/has.js"),s=r("./node_modules/prop-types/checkPropTypes.js"),u=function(){};function c(){return null}u=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(r){}},e.exports=function(e,t){var r="function"===typeof Symbol&&Symbol.iterator,f="<<anonymous>>",l={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:y(c),arrayOf:function(e){return y((function(t,r,n,o,i){if("function"!==typeof e)return new p("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new p("Invalid "+o+" `"+i+"` of type `"+b(s)+"` supplied to `"+n+"`, expected an array.");for(var u=0;u<s.length;u++){var c=e(s,u,n,o,i+"["+u+"]",a);if(c instanceof Error)return c}return null}))},element:y((function(t,r,n,o,a){var i=t[r];return e(i)?null:new p("Invalid "+o+" `"+a+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:y((function(e,t,r,o,a){var i=e[t];return n.isValidElementType(i)?null:new p("Invalid "+o+" `"+a+"` of type `"+b(i)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return y((function(t,r,n,o,a){if(!(t[r]instanceof e)){var i=e.name||f;return new p("Invalid "+o+" `"+a+"` of type `"+((s=t[r]).constructor&&s.constructor.name?s.constructor.name:f)+"` supplied to `"+n+"`, expected instance of `"+i+"`.")}var s;return null}))},node:y((function(e,t,r,n,o){return h(e[t])?null:new p("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return y((function(t,r,n,o,s){if("function"!==typeof e)return new p("Property `"+s+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var u=t[r],c=b(u);if("object"!==c)return new p("Invalid "+o+" `"+s+"` of type `"+c+"` supplied to `"+n+"`, expected an object.");for(var f in u)if(i(u,f)){var l=e(u,f,n,o,s+"."+f,a);if(l instanceof Error)return l}return null}))},oneOf:function(e){if(!Array.isArray(e))return u(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),c;function t(t,r,n,o,a){for(var i=t[r],s=0;s<e.length;s++)if(d(i,e[s]))return null;var u=JSON.stringify(e,(function(e,t){return"symbol"===g(t)?String(t):t}));return new p("Invalid "+o+" `"+a+"` of value `"+String(i)+"` supplied to `"+n+"`, expected one of "+u+".")}return y(t)},oneOfType:function(e){if(!Array.isArray(e))return u("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var t=0;t<e.length;t++){var r=e[t];if("function"!==typeof r)return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+j(r)+" at index "+t+"."),c}return y((function(t,r,n,o,s){for(var u=[],c=0;c<e.length;c++){var f=(0,e[c])(t,r,n,o,s,a);if(null==f)return null;f.data&&i(f.data,"expectedType")&&u.push(f.data.expectedType)}return new p("Invalid "+o+" `"+s+"` supplied to `"+n+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(e){return y((function(t,r,n,o,i){var s=t[r],u=b(s);if("object"!==u)return new p("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+n+"`, expected `object`.");for(var c in e){var f=e[c];if("function"!==typeof f)return v(n,o,i,c,g(f));var l=f(s,c,n,o,i+"."+c,a);if(l)return l}return null}))},exact:function(e){return y((function(t,r,n,s,u){var c=t[r],f=b(c);if("object"!==f)return new p("Invalid "+s+" `"+u+"` of type `"+f+"` supplied to `"+n+"`, expected `object`.");var l=o({},t[r],e);for(var d in l){var y=e[d];if(i(e,d)&&"function"!==typeof y)return v(n,s,u,d,g(y));if(!y)return new p("Invalid "+s+" `"+u+"` key `"+d+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(t[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=y(c,d,n,s,u+"."+d,a);if(m)return m}return null}))}};function d(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function p(e,t){this.message=e,this.data=t&&"object"===typeof t?t:{},this.stack=""}function y(e){var r={},n=0;function o(o,i,s,c,l,d,y){if(c=c||f,d=d||s,y!==a){if(t){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("undefined"!==typeof console){var v=c+":"+s;!r[v]&&n<3&&(u("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),r[v]=!0,n++)}}return null==i[s]?o?null===i[s]?new p("The "+l+" `"+d+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+l+" `"+d+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(i,s,c,l,d)}var i=o.bind(null,!1);return i.isRequired=o.bind(null,!0),i}function m(e){return y((function(t,r,n,o,a,i){var s=t[r];return b(s)!==e?new p("Invalid "+o+" `"+a+"` of type `"+g(s)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,r,n,o){return new p((e||"React class")+": "+t+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function h(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(h);if(null===t||e(t))return!0;var n=function(e){var t=e&&(r&&e[r]||e["@@iterator"]);if("function"===typeof t)return t}(t);if(!n)return!1;var o,a=n.call(t);if(n!==t.entries){for(;!(o=a.next()).done;)if(!h(o.value))return!1}else for(;!(o=a.next()).done;){var i=o.value;if(i&&!h(i[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function g(e){if("undefined"===typeof e||null===e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function j(e){var t=g(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,l.checkPropTypes=s,l.resetWarningCache=s.resetWarningCache,l.PropTypes=l,l}},"./node_modules/prop-types/index.js":(e,t,r)=>{var n=r("./node_modules/react-is/index.js");e.exports=r("./node_modules/prop-types/factoryWithTypeCheckers.js")(n.isElement,!0)},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"./node_modules/prop-types/lib/has.js":e=>{e.exports=Function.call.bind(Object.prototype.hasOwnProperty)},"./node_modules/react-is/cjs/react-is.development.js":(e,t)=>{"use strict";!function(){var e="function"===typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function j(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:var p=e.type;switch(p){case c:case f:case o:case i:case a:case d:return p;default:var v=p&&p.$$typeof;switch(v){case u:case l:case m:case y:case s:return v;default:return t}}case n:return t}}}var x=c,O=f,w=u,_=s,S=r,P=l,C=o,E=m,T=y,k=n,I=i,M=a,R=d,$=!1;function A(e){return j(e)===f}t.AsyncMode=x,t.ConcurrentMode=O,t.ContextConsumer=w,t.ContextProvider=_,t.Element=S,t.ForwardRef=P,t.Fragment=C,t.Lazy=E,t.Memo=T,t.Portal=k,t.Profiler=I,t.StrictMode=M,t.Suspense=R,t.isAsyncMode=function(e){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(e)||j(e)===c},t.isConcurrentMode=A,t.isContextConsumer=function(e){return j(e)===u},t.isContextProvider=function(e){return j(e)===s},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return j(e)===l},t.isFragment=function(e){return j(e)===o},t.isLazy=function(e){return j(e)===m},t.isMemo=function(e){return j(e)===y},t.isPortal=function(e){return j(e)===n},t.isProfiler=function(e){return j(e)===i},t.isStrictMode=function(e){return j(e)===a},t.isSuspense=function(e){return j(e)===d},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===f||e===i||e===a||e===d||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===s||e.$$typeof===u||e.$$typeof===l||e.$$typeof===h||e.$$typeof===b||e.$$typeof===g||e.$$typeof===v)},t.typeOf=j}()},"./node_modules/react-is/index.js":(e,t,r)=>{"use strict";e.exports=r("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":(e,t,r)=>{"use strict";function n(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var a=0;a<o;a++){var i=r[a];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}function o(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=e.length;if(t.length!==r)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}r.r(t),r.d(t,{shallowEqualArrays:()=>o,shallowEqualObjects:()=>n})},"./src/Component.ts":function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r("./src/useMediaQuery.ts"));t.default=function(e){var t=e.children,r=e.device,o=e.onChange,i=n(e,["children","device","onChange"]),s=(0,a.default)(i,r,o);return"function"===typeof t?t(s):s?t:null}},"./src/Context.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(0,r("react").createContext)(void 0);t.default=n},"./src/index.ts":function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Context=t.toQuery=t.useMediaQuery=t.default=void 0;var o=n(r("./src/useMediaQuery.ts"));t.useMediaQuery=o.default;var a=n(r("./src/Component.ts"));t.default=a.default;var i=n(r("./src/toQuery.ts"));t.toQuery=i.default;var s=n(r("./src/Context.ts"));t.Context=s.default},"./src/mediaQuery.ts":function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=a(r("./node_modules/prop-types/index.js")),s=i.default.oneOfType([i.default.string,i.default.number]),u={all:i.default.bool,grid:i.default.bool,aural:i.default.bool,braille:i.default.bool,handheld:i.default.bool,print:i.default.bool,projection:i.default.bool,screen:i.default.bool,tty:i.default.bool,tv:i.default.bool,embossed:i.default.bool},c={orientation:i.default.oneOf(["portrait","landscape"]),scan:i.default.oneOf(["progressive","interlace"]),aspectRatio:i.default.string,deviceAspectRatio:i.default.string,height:s,deviceHeight:s,width:s,deviceWidth:s,color:i.default.bool,colorIndex:i.default.bool,monochrome:i.default.bool,resolution:s,type:Object.keys(u)},f=o(c,["type"]),l=n({minAspectRatio:i.default.string,maxAspectRatio:i.default.string,minDeviceAspectRatio:i.default.string,maxDeviceAspectRatio:i.default.string,minHeight:s,maxHeight:s,minDeviceHeight:s,maxDeviceHeight:s,minWidth:s,maxWidth:s,minDeviceWidth:s,maxDeviceWidth:s,minColor:i.default.number,maxColor:i.default.number,minColorIndex:i.default.number,maxColorIndex:i.default.number,minMonochrome:i.default.number,maxMonochrome:i.default.number,minResolution:s,maxResolution:s},f),d=n(n({},u),l);t.default={all:d,types:u,matchers:c,features:l}},"./src/toQuery.ts":function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r("./node_modules/hyphenate-style-name/index.js")),a=n(r("./src/mediaQuery.ts"));t.default=function(e){var t=[];return Object.keys(a.default.all).forEach((function(r){var n=e[r];null!=n&&t.push(function(e,t){var r=(0,o.default)(e);return"number"===typeof t&&(t="".concat(t,"px")),!0===t?r:!1===t?"not ".concat(r):"(".concat(r,": ").concat(t,")")}(r,n))})),t.join(" and ")}},"./src/useMediaQuery.ts":function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r("react"),a=n(r("./node_modules/matchmediaquery/index.js")),i=n(r("./node_modules/hyphenate-style-name/index.js")),s=r("./node_modules/shallow-equal/dist/index.esm.js"),u=n(r("./src/toQuery.ts")),c=n(r("./src/Context.ts")),f=function(e){if(e)return Object.keys(e).reduce((function(t,r){return t[(0,i.default)(r)]=e[r],t}),{})},l=function(){var e=(0,o.useRef)(!1);return(0,o.useEffect)((function(){e.current=!0}),[]),e.current},d=function(e){var t=function(){return function(e){return e.query||(0,u.default)(e)}(e)},r=(0,o.useState)(t),n=r[0],a=r[1];return(0,o.useEffect)((function(){var e=t();n!==e&&a(e)}),[e]),n};t.default=function(e,t,r){var n=function(e){var t=(0,o.useContext)(c.default),r=function(){return f(e)||f(t)},n=(0,o.useState)(r),a=n[0],i=n[1];return(0,o.useEffect)((function(){var e=r();(0,s.shallowEqualObjects)(a,e)||i(e)}),[e,t]),a}(t),i=d(e);if(!i)throw new Error("Invalid or missing MediaQuery!");var u=function(e,t){var r=function(){return(0,a.default)(e,t||{},!!t)},n=(0,o.useState)(r),i=n[0],s=n[1],u=l();return(0,o.useEffect)((function(){if(u){var e=r();return s(e),function(){e&&e.dispose()}}}),[e,t]),i}(i,n),p=function(e){var t=(0,o.useState)(e.matches),r=t[0],n=t[1];return(0,o.useEffect)((function(){var t=function(e){n(e.matches)};return e.addListener(t),n(e.matches),function(){e.removeListener(t)}}),[e]),r}(u),y=l();return(0,o.useEffect)((function(){y&&r&&r(p)}),[p]),(0,o.useEffect)((function(){return function(){u&&u.dispose()}}),[]),p}},react:t=>{"use strict";t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={exports:{}};return t[e].call(a.exports,a,a.exports,n),a.exports}return n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n("./src/index.ts")})(),e.exports=n(r(7313))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[423],{1195:function(e,t,r){var n=r(5318);t.Z=void 0;var o=n(r(5045)),a=r(6417),i=(0,o.default)((0,a.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");t.Z=i},7108:function(e,t,r){var n=r(5318);t.Z=void 0;var o=n(r(5045)),a=r(6417),i=(0,o.default)((0,a.jsx)("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}),"Fullscreen");t.Z=i},9723:function(e,t,r){var n=r(5318);t.Z=void 0;var o=n(r(5045)),a=r(6417),i=(0,o.default)((0,a.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");t.Z=i},4561:function(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!==typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(7313)),a=g(r(5192)),i=g(r(1168)),u=g(r(3061)),l=r(1407),s=r(9873),c=r(3579),f=g(r(4303)),d=g(r(7776)),p=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function g(e){return e&&e.__esModule?e:{default:e}}function y(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function b(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(l){u=!0,o=l}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function D(e,t){return D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},D(e,t)}function P(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=M(e);if(t){var o=M(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return j(this,r)}}function j(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x(e)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var C=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D(e,t)}(c,e);var t,r,n,a=P(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),E(x(t=a.call(this,e)),"onDragStart",(function(e,r){if((0,d.default)("Draggable: onDragStart: %j",r),!1===t.props.onStart(e,(0,s.createDraggableData)(x(t),r)))return!1;t.setState({dragging:!0,dragged:!0})})),E(x(t),"onDrag",(function(e,r){if(!t.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",r);var n=(0,s.createDraggableData)(x(t),r),o={x:n.x,y:n.y};if(t.props.bounds){var a=o.x,i=o.y;o.x+=t.state.slackX,o.y+=t.state.slackY;var u=w((0,s.getBoundPosition)(x(t),o.x,o.y),2),l=u[0],c=u[1];o.x=l,o.y=c,o.slackX=t.state.slackX+(a-o.x),o.slackY=t.state.slackY+(i-o.y),n.x=o.x,n.y=o.y,n.deltaX=o.x-t.state.x,n.deltaY=o.y-t.state.y}if(!1===t.props.onDrag(e,n))return!1;t.setState(o)})),E(x(t),"onDragStop",(function(e,r){if(!t.state.dragging)return!1;if(!1===t.props.onStop(e,(0,s.createDraggableData)(x(t),r)))return!1;(0,d.default)("Draggable: onDragStop: %j",r);var n={dragging:!1,slackX:0,slackY:0};if(Boolean(t.props.position)){var o=t.props.position,a=o.x,i=o.y;n.x=a,n.y=i}t.setState(n)})),t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:m({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return t=c,n=[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.position,n=t.prevPropsPosition;return!r||n&&r.x===n.x&&r.y===n.y?null:((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:r,prevPropsPosition:n}),{x:r.x,y:r.y,prevPropsPosition:m({},r)})}}],(r=[{key:"componentDidMount",value:function(){"undefined"!==typeof window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var e,t,r;return null!==(e=null===(t=this.props)||void 0===t||null===(r=t.nodeRef)||void 0===r?void 0:r.current)&&void 0!==e?e:i.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,r=(t.axis,t.bounds,t.children),n=t.defaultPosition,a=t.defaultClassName,i=t.defaultClassNameDragging,c=t.defaultClassNameDragged,d=t.position,g=t.positionOffset,y=(t.scale,b(t,p)),v={},w=null,S=!Boolean(d)||this.state.dragging,O=d||n,D={x:(0,s.canDragX)(this)&&S?this.state.x:O.x,y:(0,s.canDragY)(this)&&S?this.state.y:O.y};this.state.isElementSVG?w=(0,l.createSVGTransform)(D,g):v=(0,l.createCSSTransform)(D,g);var P=(0,u.default)(r.props.className||"",a,(E(e={},i,this.state.dragging),E(e,c,this.state.dragged),e));return o.createElement(f.default,h({},y,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(r),{className:P,style:m(m({},r.props.style),v),transform:w}))}}])&&O(t.prototype,r),n&&O(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);t.default=C,E(C,"displayName","Draggable"),E(C,"propTypes",m(m({},f.default.propTypes),{},{axis:a.default.oneOf(["both","x","y","none"]),bounds:a.default.oneOfType([a.default.shape({left:a.default.number,right:a.default.number,top:a.default.number,bottom:a.default.number}),a.default.string,a.default.oneOf([!1])]),defaultClassName:a.default.string,defaultClassNameDragging:a.default.string,defaultClassNameDragged:a.default.string,defaultPosition:a.default.shape({x:a.default.number,y:a.default.number}),positionOffset:a.default.shape({x:a.default.oneOfType([a.default.number,a.default.string]),y:a.default.oneOfType([a.default.number,a.default.string])}),position:a.default.shape({x:a.default.number,y:a.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe})),E(C,"defaultProps",m(m({},f.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},4303:function(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!==typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(7313)),a=f(r(5192)),i=f(r(1168)),u=r(1407),l=r(9873),s=r(3579),c=f(r(7776));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(l){u=!0,o=l}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function v(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var D={start:"touchstart",move:"touchmove",stop:"touchend"},P={start:"mousedown",move:"mousemove",stop:"mouseup"},j=P,x=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(s,e);var t,r,n,a=v(s);function s(){var e;y(this,s);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return O(w(e=a.call.apply(a,[this].concat(r))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),O(w(e),"mounted",!1),O(w(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"===typeof t.button&&0!==t.button)return!1;var r=e.findDOMNode();if(!r||!r.ownerDocument||!r.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var n=r.ownerDocument;if(!(e.props.disabled||!(t.target instanceof n.defaultView.Node)||e.props.handle&&!(0,u.matchesSelectorAndParentsTo)(t.target,e.props.handle,r)||e.props.cancel&&(0,u.matchesSelectorAndParentsTo)(t.target,e.props.cancel,r))){"touchstart"===t.type&&t.preventDefault();var o=(0,u.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var a=(0,l.getControlPosition)(t,o,w(e));if(null!=a){var i=a.x,s=a.y,f=(0,l.createCoreData)(w(e),i,s);(0,c.default)("DraggableCore: handleDragStart: %j",f),(0,c.default)("calling",e.props.onStart),!1!==e.props.onStart(t,f)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,u.addUserSelectStyles)(n),e.setState({dragging:!0,lastX:i,lastY:s}),(0,u.addEvent)(n,j.move,e.handleDrag),(0,u.addEvent)(n,j.stop,e.handleDragStop))}}})),O(w(e),"handleDrag",(function(t){var r=(0,l.getControlPosition)(t,e.state.touchIdentifier,w(e));if(null!=r){var n=r.x,o=r.y;if(Array.isArray(e.props.grid)){var a=n-e.state.lastX,i=o-e.state.lastY,u=p((0,l.snapToGrid)(e.props.grid,a,i),2);if(a=u[0],i=u[1],!a&&!i)return;n=e.state.lastX+a,o=e.state.lastY+i}var s=(0,l.createCoreData)(w(e),n,o);if((0,c.default)("DraggableCore: handleDrag: %j",s),!1!==e.props.onDrag(t,s)&&!1!==e.mounted)e.setState({lastX:n,lastY:o});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(d){var f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(f)}}})),O(w(e),"handleDragStop",(function(t){if(e.state.dragging){var r=(0,l.getControlPosition)(t,e.state.touchIdentifier,w(e));if(null!=r){var n=r.x,o=r.y;if(Array.isArray(e.props.grid)){var a=n-e.state.lastX||0,i=o-e.state.lastY||0,s=p((0,l.snapToGrid)(e.props.grid,a,i),2);a=s[0],i=s[1],n=e.state.lastX+a,o=e.state.lastY+i}var f=(0,l.createCoreData)(w(e),n,o);if(!1===e.props.onStop(t,f)||!1===e.mounted)return!1;var d=e.findDOMNode();d&&e.props.enableUserSelectHack&&(0,u.removeUserSelectStyles)(d.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",f),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),d&&((0,c.default)("DraggableCore: Removing handlers"),(0,u.removeEvent)(d.ownerDocument,j.move,e.handleDrag),(0,u.removeEvent)(d.ownerDocument,j.stop,e.handleDragStop))}}})),O(w(e),"onMouseDown",(function(t){return j=P,e.handleDragStart(t)})),O(w(e),"onMouseUp",(function(t){return j=P,e.handleDragStop(t)})),O(w(e),"onTouchStart",(function(t){return j=D,e.handleDragStart(t)})),O(w(e),"onTouchEnd",(function(t){return j=D,e.handleDragStop(t)})),e}return t=s,(r=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,u.addEvent)(e,D.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,u.removeEvent)(t,P.move,this.handleDrag),(0,u.removeEvent)(t,D.move,this.handleDrag),(0,u.removeEvent)(t,P.stop,this.handleDragStop),(0,u.removeEvent)(t,D.stop,this.handleDragStop),(0,u.removeEvent)(e,D.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,u.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){var e,t,r;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(r=t.nodeRef)||void 0===r?void 0:r.current:i.default.findDOMNode(this)}},{key:"render",value:function(){return o.cloneElement(o.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.Component);t.default=x,O(x,"displayName","DraggableCore"),O(x,"propTypes",{allowAnyClick:a.default.bool,disabled:a.default.bool,enableUserSelectHack:a.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:a.default.arrayOf(a.default.number),handle:a.default.string,cancel:a.default.string,nodeRef:a.default.object,onStart:a.default.func,onDrag:a.default.func,onStop:a.default.func,onMouseDown:a.default.func,scale:a.default.number,className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),O(x,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},9461:function(e,t,r){var n=r(4561),o=n.default,a=n.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=a},1407:function(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=p,t.addEvent=function(e,t,r,n){if(!e)return;var o=l({capture:!0},n);e.addEventListener?e.addEventListener(t,r,o):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r},t.addUserSelectStyles=function(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&p(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){var r=d(e,t,"px");return s({},(0,a.browserPrefixToKey)("transform",a.default),r)},t.createSVGTransform=function(e,t){return d(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.getTranslation=d,t.innerHeight=function(e){var t=e.clientHeight,r=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(r.paddingTop),t-=(0,o.int)(r.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,r=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(r.paddingLeft),t-=(0,o.int)(r.paddingRight)},t.matchesSelector=f,t.matchesSelectorAndParentsTo=function(e,t,r){var n=e;do{if(f(n,t))return!0;if(n===r)return!1;n=n.parentNode}while(n);return!1},t.offsetXYFromParent=function(e,t,r){var n=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-n.left)/r,a=(e.clientY+t.scrollTop-n.top)/r;return{x:o,y:a}},t.outerHeight=function(e){var t=e.clientHeight,r=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(r.borderTopWidth),t+=(0,o.int)(r.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,r=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(r.borderLeftWidth),t+=(0,o.int)(r.borderRightWidth)},t.removeClassName=g,t.removeEvent=function(e,t,r,n){if(!e)return;var o=l({capture:!0},n);e.removeEventListener?e.removeEventListener(t,r,o):e.detachEvent?e.detachEvent("on"+t,r):e["on"+t]=null},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&g(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(r){}};var o=r(3579),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!==typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=a?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=e[u]}o.default=e,r&&r.set(e,o);return o}(r(4580));function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c="";function f(e,t){return c||(c=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,o.isFunction)(e[t])}))),!!(0,o.isFunction)(e[c])&&e[c](t)}function d(e,t,r){var n=e.x,o=e.y,a="translate(".concat(n).concat(r,",").concat(o).concat(r,")");if(t){var i="".concat("string"===typeof t.x?t.x:t.x+r),u="".concat("string"===typeof t.y?t.y:t.y+r);a="translate(".concat(i,", ").concat(u,")")+a}return a}function p(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function g(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},4580:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=n;var r=["Moz","Webkit","O","ms"];function n(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"===typeof window)return"";var a=null===(e=window.document)||void 0===e||null===(t=e.documentElement)||void 0===t?void 0:t.style;if(!a)return"";if(n in a)return"";for(var i=0;i<r.length;i++)if(o(n,r[i])in a)return r[i];return""}function o(e,t){return t?"".concat(t).concat(function(e){for(var t="",r=!0,n=0;n<e.length;n++)r?(t+=e[n].toUpperCase(),r=!1):"-"===e[n]?r=!0:t+=e[n];return t}(e)):e}var a=n();t.default=a},7776:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){0}},9873:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,r){var o=e.state,i=!(0,n.isNum)(o.lastX),u=a(e);return i?{node:u,deltaX:0,deltaY:0,lastX:t,lastY:r,x:t,y:r}:{node:u,deltaX:t-o.lastX,deltaY:r-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:r}},t.createDraggableData=function(e,t){var r=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/r,y:e.state.y+t.deltaY/r,deltaX:t.deltaX/r,deltaY:t.deltaY/r,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,r){if(!e.props.bounds)return[t,r];var i=e.props.bounds;i="string"===typeof i?i:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(i);var u=a(e);if("string"===typeof i){var l,s=u.ownerDocument,c=s.defaultView;if(!((l="parent"===i?u.parentNode:s.querySelector(i))instanceof c.HTMLElement))throw new Error('Bounds selector "'+i+'" could not find an element.');var f=l,d=c.getComputedStyle(u),p=c.getComputedStyle(f);i={left:-u.offsetLeft+(0,n.int)(p.paddingLeft)+(0,n.int)(d.marginLeft),top:-u.offsetTop+(0,n.int)(p.paddingTop)+(0,n.int)(d.marginTop),right:(0,o.innerWidth)(f)-(0,o.outerWidth)(u)-u.offsetLeft+(0,n.int)(p.paddingRight)-(0,n.int)(d.marginRight),bottom:(0,o.innerHeight)(f)-(0,o.outerHeight)(u)-u.offsetTop+(0,n.int)(p.paddingBottom)-(0,n.int)(d.marginBottom)}}(0,n.isNum)(i.right)&&(t=Math.min(t,i.right));(0,n.isNum)(i.bottom)&&(r=Math.min(r,i.bottom));(0,n.isNum)(i.left)&&(t=Math.max(t,i.left));(0,n.isNum)(i.top)&&(r=Math.max(r,i.top));return[t,r]},t.getControlPosition=function(e,t,r){var n="number"===typeof t?(0,o.getTouch)(e,t):null;if("number"===typeof t&&!n)return null;var i=a(r),u=r.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,o.offsetXYFromParent)(n||e,u,r.props.scale)},t.snapToGrid=function(e,t,r){var n=Math.round(t/e[0])*e[0],o=Math.round(r/e[1])*e[1];return[n,o]};var n=r(3579),o=r(1407);function a(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},3579:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,r){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(r," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(var r=0,n=e.length;r<n;r++)if(t.apply(t,[e[r],r,e]))return e[r]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"===typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"===typeof e&&!isNaN(e)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[517],{9262:function(n,t,e){"use strict";e(7313),e(9821),e(2634),e(6417)},8675:function(n,t,e){"use strict";e.d(t,{Z:function(){return w}});var i,o,r=e(3271),a=e(5098),c=e(7313),l=e(9821),s=e(2634),u=e(5180),d=e(168),f=e(686);const h=(0,f.F4)(i||(i=(0,d.Z)(["\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(1.05);\n }\n"]))),x=(0,f.F4)(o||(o=(0,d.Z)(["\n 0% {\n transform: scale(1.05);\n }\n 100% {\n transform: scale(1);\n }\n"]))),m="\n ".concat(h,"; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n"),g="\n ".concat(x,"; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n");var p=e(7753),v=e(7129),j=e(6417);var w=function(n){var t,e,[i,o]=(0,l.Z)();const[d]=(0,p.j1)("whatmorePrimaryFont");var f=(0,c.useContext)(v.V);const h=n.event,x=n.onClick,w=null===(t=n.isOnFocus)||void 0===t||t,b=(n.playOnUnfocus,null!==(e=n.animateOnFocus)&&void 0!==e&&e);return(0,j.jsxs)(r.xu,{animation:b?w?m:g:"none",marginTop:f.tileTopMargin,marginBottom:f.tileBottomMMargin,marginLeft:f.tileLeftMargin,marginRight:f.tileRightMargin,width:o,height:i,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{x(h)},cursor:"pointer",children:[(0,j.jsx)(a.Ee,{width:"full",height:"full",src:h.thumbnail_image,objectFit:"cover",fallback:(0,j.jsx)(u.Z,{width:o,height:i}),borderRadius:"lg"}),(0,j.jsx)(r.xu,{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden"},width:"full",height:"full",borderRadius:"lg",overflow:"hidden",className:"whatmore-ios-css-relative-fix",children:(0,j.jsxs)(r.Kq,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,j.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,j.jsx)(r.Kq,{direction:"column",justifyContent:"flex-start",children:(0,j.jsx)(r.xu,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,j.jsx)(r.Kq,{direction:"row",justifyContent:"space-between",children:(0,j.jsx)(s.Z,{event:h,fontSize:.05*i+"px",maxWidth:.8*o})})})})}),(0,j.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,j.jsx)(r.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,j.jsx)(r.xu,{width:"full",borderRadius:"lg",children:(0,j.jsxs)(r.Kq,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,j.jsx)(r.xv,{color:"white",fontSize:.08*o+"px",fontWeight:"normal",align:"left",children:" "}),(0,j.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"normal",align:"left",sx:{fontFamily:d+" !important",color:"white !important"},children:h.title.substring(0,40)}),(0,j.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"bold",align:"left",sx:{fontFamily:d+" !important",color:"white !important"},children:h.presenter_name.substring(0,15)})]})})})})]})})]})}},5523:function(n,t,e){"use strict";e.r(t);var i=e(7313),o=e(8675),r=(e(9262),e(4664)),a=e(7616),c=(e(6143),e(7244),e(123),e(9302)),l=e(2575),s=e(3271),u=e(9821),d=e(8866),f=(e(2279),e(7753)),h=e(9316),x=e(7129),m=e(9854),g=e(6966),p=e(7300),v=e(7148),j=e(6417);const w=(0,l.Z)({key:"whatmore-css-hv"});function b(n,t){var e=[];const i=t;for(let o=0;o<n.length;o+=i){const t=n.slice(o,o+i);e.push(t)}return e}function y(n){var t;const[e,o]=(0,i.useState)(!1),[r,a]=(0,i.useState)(!1),[c]=(0,f.j1)("whatmoreSecondaryColorShade600"),[l]=(0,f.j1)("whatmoreSecondaryColorShade300"),[u]=(0,f.j1)("whatmorePrimaryFont"),d=null!==(t=n.baseFontSize)&&void 0!==t?t:10,x=n.onClick;return(0,j.jsx)(s.xu,{width:"fit-content",height:"fit-content",paddingY:"4px",boxShadow:"lg",borderRadius:"md",backgroundColor:e?l:c,animation:r?h.mT:null,onClick:n=>{n.stopPropagation(),a(!0),x()},sx:{cursor:"pointer"},onMouseEnter:()=>{o(!0)},onMouseLeave:()=>{o(!1)},children:(0,j.jsx)(s.Kq,{direction:"row",width:"fit-content",alignContent:"center",children:(0,j.jsxs)(s.xv,{fontSize:d,fontWeight:"normal",sx:{fontFamily:u+" !important",color:"white !important"},children:["\xa0"," view more ","\xa0"]})})})}function C(n){var t;const[e,r,a]=(0,u.Z)();var[c,l]=(0,i.useState)(0);const d=n.events,f=n.onClick,h=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,x=b(d,Math.floor(Math.min(a,d.length)));return(0,j.jsx)(s.M5,{children:(0,j.jsxs)(s.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,j.jsx)(j.Fragment,{children:x.map(((n,t)=>t>c?(0,j.jsx)(j.Fragment,{}):(0,j.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,j.jsx)(s.xu,{style:{margin:"10px"},children:(0,p.B6)(n)||(0,p.WJ)(n)?(0,j.jsx)(v.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{f(n)}}):(0,j.jsx)(o.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{f(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,j.jsx)(j.Fragment,{children:c<x.length-1?(0,j.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,j.jsx)(y,{baseFontSize:.1*r,onClick:()=>{c>=x.length-1||l((n=>n+h))}})}):(0,j.jsx)(j.Fragment,{})})]})})}function F(n){var t;const[e,r,a,c]=(0,u.Z)();var[l,d]=(0,i.useState)(0);const f=n.events,h=n.onClick,x=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,m=b(f,Math.floor(Math.min(a,f.length)));return(0,j.jsx)(s.M5,{paddingLeft:c+"px",paddingRight:c+"px",children:(0,j.jsxs)(s.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,j.jsx)(j.Fragment,{children:m.map(((n,t)=>t>l?(0,j.jsx)(j.Fragment,{}):(0,j.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,j.jsx)(s.xu,{style:{margin:"10px"},children:(0,p.B6)(n)||(0,p.WJ)(n)?(0,j.jsx)(v.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{h(n)}}):(0,j.jsx)(o.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{h(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,j.jsx)(j.Fragment,{children:l<m.length-1?(0,j.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,j.jsx)(y,{baseFontSize:.1*r,onClick:()=>{l>=m.length-1||d((n=>n+x))}})}):(0,j.jsx)(j.Fragment,{})})]})})}t.default=function(n){var t;const[e,o,l]=(0,d.Z)(),[u]=(0,f.j1)("whatmoreShopId"),[h]=(0,f.j1)("whatmorePrimaryColor"),[p]=(0,f.j1)("whatmoreSecondaryColor"),[v]=(0,f.j1)("whatmoreTitleFont"),[b]=(0,f.j1)("whatmoreTitleFontSize"),{whatmoreRootId:y}=(0,i.useContext)(g.I),S=n.events,k=n.onClick,M=null!==(t=(0,m.aR)(u))&&void 0!==t?t:v;function O(n){k(n)}return delete a.ZP.styles.global,(0,j.jsx)(c.C,{value:w,children:(0,j.jsx)("div",{children:(0,j.jsx)(r.x,{theme:a.ZP,cssVarsRoot:y,resetCSS:!1,children:(0,j.jsxs)(x.V.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[n.heading.trim().length>0?(0,j.jsx)(s.M5,{children:(0,j.jsx)(s.xv,{bgColor:h,bgClip:"text",fontSize:b,sx:{fontFamily:M+" !important"},align:"center",children:n.heading})}):(0,j.jsx)(j.Fragment,{}),"landscape"===e?(0,j.jsx)(F,{events:S,onClick:O,seeMoreIncrement:1}):(0,j.jsx)(C,{events:S,onClick:O,seeMoreIncrement:2})]})})})})}},9316:function(n,t,e){"use strict";e.d(t,{mT:function(){return s}});var i,o,r,a=e(168),c=e(686);const l=(0,c.F4)(i||(i=(0,a.Z)(["\n 0% { transform: scale(1); }\n 50%, { transform: scale(0.95); }\n 100% { transform: scale(1); }\n"]))),s="\n ".concat(l," 0.2s linear;\n"),u=(0,c.F4)(o||(o=(0,a.Z)(["\n 100% { \n -webkit-transform: rotate(360deg); \n transform:rotate(360deg); \n }\n"]))),d=("\n ".concat(u," 0.5s infinite linear;\n"),(0,c.F4)(r||(r=(0,a.Z)(["\n 0% { \n opacity: 1;\n transform: translateY(100%);\n }\n 10%{\n transform: translateY(0%);\n }\n 12%{\n transform: translateY(-5%);\n }\n 20%{\n transform: translateY(0%);\n }\n 95%{\n opacity: 1;\n transform: scale(1);\n }\n 100%{\n opacity: 0;\n }\n"]))));"\n ".concat(d," ").concat(3,"s ease-in-out;\n")},2634:function(n,t,e){"use strict";var i=e(3271),o=e(4897),r=e(499),a=e(6417);t.Z=function(n){var t,e=n.event,c=n.fontSize,l=null!==(t=n.maxWidth)&&void 0!==t?t:"100%",{status:s,bannerText:u,timeToStartInMins:d}=o.Z.getEventStatus(e);return s.name===r.Z.LIVE.name?(0,a.jsx)(i.xu,{maxWidth:l,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:s.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,a.jsx)(i.xv,{fontSize:c,fontWeight:"bold",color:"white",children:u})})}):(0,a.jsx)(i.xu,{maxWidth:l,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:s.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,a.jsx)(i.xv,{fontSize:c,fontWeight:"medium",children:u})})})}},5180:function(n,t,e){"use strict";var i=e(3271),o=e(208),r=e(6417);t.Z=function(n){var t,e,a;const c=null!==(t=n.height)&&void 0!==t?t:"100%",l=null!==(e=n.width)&&void 0!==e?e:"100%",s=null!==(a=n.borderRadius)&&void 0!==a?a:"lg";return(0,r.jsx)(i.xu,{borderRadius:s,overflow:"hidden",children:(0,r.jsx)(o.Od,{height:c,width:l,speed:.5,startColor:"gray.400",endColor:"white"})})}},8624:function(n,t,e){var i=e(7289).Symbol;n.exports=i},8665:function(n,t,e){var i=e(8624),o=e(3596),r=e(8186),a=i?i.toStringTag:void 0;n.exports=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":a&&a in Object(n)?o(n):r(n)}},2306:function(n,t,e){var i=e(5510),o=/^\s+/;n.exports=function(n){return n?n.slice(0,i(n)+1).replace(o,""):n}},2692:function(n,t,e){var i="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;n.exports=i},3596:function(n,t,e){var i=e(8624),o=Object.prototype,r=o.hasOwnProperty,a=o.toString,c=i?i.toStringTag:void 0;n.exports=function(n){var t=r.call(n,c),e=n[c];try{n[c]=void 0;var i=!0}catch(l){}var o=a.call(n);return i&&(t?n[c]=e:delete n[c]),o}},8186:function(n){var t=Object.prototype.toString;n.exports=function(n){return t.call(n)}},7289:function(n,t,e){var i=e(2692),o="object"==typeof self&&self&&self.Object===Object&&self,r=i||o||Function("return this")();n.exports=r},5510:function(n){var t=/\s/;n.exports=function(n){for(var e=n.length;e--&&t.test(n.charAt(e)););return e}},2279:function(n,t,e){var i=e(1845),o=e(6170),r=e(7923),a=Math.max,c=Math.min;n.exports=function(n,t,e){var l,s,u,d,f,h,x=0,m=!1,g=!1,p=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function v(t){var e=l,i=s;return l=s=void 0,x=t,d=n.apply(i,e)}function j(n){return x=n,f=setTimeout(b,t),m?v(n):d}function w(n){var e=n-h;return void 0===h||e>=t||e<0||g&&n-x>=u}function b(){var n=o();if(w(n))return y(n);f=setTimeout(b,function(n){var e=t-(n-h);return g?c(e,u-(n-x)):e}(n))}function y(n){return f=void 0,p&&l?v(n):(l=s=void 0,d)}function C(){var n=o(),e=w(n);if(l=arguments,s=this,h=n,e){if(void 0===f)return j(h);if(g)return clearTimeout(f),f=setTimeout(b,t),v(h)}return void 0===f&&(f=setTimeout(b,t)),d}return t=r(t)||0,i(e)&&(m=!!e.leading,u=(g="maxWait"in e)?a(r(e.maxWait)||0,t):u,p="trailing"in e?!!e.trailing:p),C.cancel=function(){void 0!==f&&clearTimeout(f),x=0,l=h=s=f=void 0},C.flush=function(){return void 0===f?d:y(o())},C}},1845:function(n){n.exports=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}},9752:function(n){n.exports=function(n){return null!=n&&"object"==typeof n}},2060:function(n,t,e){var i=e(8665),o=e(9752);n.exports=function(n){return"symbol"==typeof n||o(n)&&"[object Symbol]"==i(n)}},6170:function(n,t,e){var i=e(7289);n.exports=function(){return i.Date.now()}},7923:function(n,t,e){var i=e(2306),o=e(1845),r=e(2060),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;n.exports=function(n){if("number"==typeof n)return n;if(r(n))return NaN;if(o(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=o(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=i(n);var e=c.test(n);return e||l.test(n)?s(n.slice(2),e?2:8):a.test(n)?NaN:+n}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[55],{51:function(e,t,n){n.d(t,{Z:function(){return i}});n(7313);var o=n(6417);var i=function(e){return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("span",{className:"whatmore-loading-indicator"})})}},3175:function(e,t,n){var o=n(208),i=n(51),r=n(6417);t.Z=function(e){var t,n;const a=null!==(t=e.height)&&void 0!==t?t:"100%",d=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,r.jsxs)("div",{style:{width:d,height:a,overflow:"hidden"},children:[(0,r.jsx)(o.Od,{height:"100%",width:"100%",speed:0,startColor:"#202020",endColor:"#606060"}),(0,r.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,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,r.jsx)(i.Z,{})})})]})}},4998:function(e,t,n){n.d(t,{D:function(){return o}});const o=async function(e,t,n,o){if("STRNV8MHJTF"!=e&&"STR6HU283UZ"!=e&&"STR9T3LLEJB"!=e&&"STRWJMIOJNX"!=e&&"STRUDQ36YAC"!=e&&"STR1D5ONOZX"!=e){var i=await fetch("https://"+window.location.hostname+"/cart.js",{cache:"reload"}).then((e=>e.json()));if("27358003275"==e||"63748341981"==e||"68237558034"==e)document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0,detail:{cart:i,openMiniCart:!0}}));else if("19506115"==e)window.PXUTheme.jsAjaxCart.showDrawer(),window.PXUTheme.jsAjaxCart.updateView();else if("54465429691"==e)refreshCart(i),window.setTimeout((function(){$.fancybox.close(),$(".cart-button").click()}),500);else if("25427564"==e||"4243849314"==e){(new theme.CartDrawer).open()}else"62602182872"==e||"57362710572"==e?(CartJS.getCart(),$(".block-cart").addClass("active")):"60492578980"==e||"12183765088"==e||"58546946211"==e||"42070737058"==e||"71321583919"==e||"68492624171"==e?(document.documentElement.dispatchEvent(new CustomEvent("ajaxProduct:added",{bubbles:!0,detail:{}})),document.documentElement.dispatchEvent(new CustomEvent("cart:open",{bubbles:!0,detail:{}}))):document.documentElement.dispatchEvent(new CustomEvent("product:added",{bubbles:!0,detail:{}}));setTimeout(t,n)}else{console.log("Executing cart refresh script..");document.getElementById("whatsmorecart").value=Math.random()}}},2887:function(e,t,n){var o=n(7313),i=(n(6422),n(3175)),r=n(6417);t.Z=function(e){var t,n,a;const[d,s]=(0,o.useState)(!1),c=o.useRef(0),l=(0,o.useRef)(null),u=null!==(t=e.timeUpdateCallback)&&void 0!==t?t:()=>{},p=null!==(n=e.height)&&void 0!==n?n:"100%",h=null!==(a=e.width)&&void 0!==a?a:"100%";return(0,o.useEffect)((()=>{c.current=0;const e=setInterval((()=>{c.current=c.current+.03,l.current&&u(c.current,5),c.current>=5&&(c.current=0)}),30);return()=>{clearInterval(e)}}),[e.isPlaying]),(0,r.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:h,height:p,overflow:"hidden"},children:[(0,r.jsx)("div",{style:{width:d?"100%":"0px",height:d?"100%":"0px"},children:(0,r.jsx)("img",{ref:l,src:e.url,style:{objectFit:"cover",height:p,width:h,backgroundColor:"white"},alt:"image player",onLoad:()=>{s(!0)}})}),d?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(i.Z,{width:"100%",height:"100%"})]})}},4892:function(e,t,n){n.d(t,{Z:function(){return u}});var o=n(7313),i=n(3933),r=n(868),a=n(8984),d=n(7300),s=(n(6422),n(2887)),c=n(6417);var l=function(e){var t,n;const r=(0,o.useRef)(null),[a,d,s]=(0,i.YD)({triggerOnce:!0}),l=null!==(t=e.height)&&void 0!==t?t:"100%",u=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,o.useEffect)((()=>{r.current&&(e.isPlaying?r.current.play():r.current.pause())}),[e.isPlaying,d]),(0,c.jsx)("div",{ref:a,style:{width:l,height:u,overflow:"hidden"},children:d?(0,c.jsx)("video",{ref:r,className:"whatmore-video-player",width:u,height:l,preload:"auto",loop:!0,playsInline:!0,muted:!0,autoPlay:!0,src:e.url,style:{backgroundColor:"white"}}):(0,c.jsx)("div",{width:u,height:l,ref:e=>{e&&e.style.setProperty("display","block","important")}})})};var u=function(e){var t,n,u;const[p,h,f]=(0,i.YD)({triggerOnce:!0});if((0,d.WJ)(e.event))return(0,c.jsx)(s.Z,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback});const v=null!==(t=e.pauseFromPlayTimeInMs)&&void 0!==t?t:200;if((0,a.KE)())return(0,c.jsx)(l,{height:"100%",width:"100%",url:(0,r.V)(e.url),isPlaying:e.isPlaying,pauseFromPlayTimeInMs:v});const m=(0,o.useRef)(null),w=null!==(n=e.height)&&void 0!==n?n:"100%",g=null!==(u=e.width)&&void 0!==u?u:"100%";return(0,o.useEffect)((()=>{m.current&&(e.isPlaying?m.current.play():m.current.pause())}),[e.isPlaying,h]),(0,c.jsx)("div",{ref:p,style:{width:w,height:g,overflow:"hidden"},children:h?(0,c.jsx)("video",{ref:m,className:"whatmore-video-player",width:g,height:w,preload:"auto",loop:!0,playsInline:!0,muted:!0,src:(0,r.V)(e.url),style:{backgroundColor:"white"}}):(0,c.jsx)("div",{width:g,height:w,ref:e=>{e&&e.style.setProperty("display","block","important")}})})}},6055:function(e,t,n){n.r(t),n.d(t,{default:function(){return A}});var o=n(7313),i=n(9854),r=n(2860),a=n(7753),d=n(5160),s=(n(4844),n(6967)),c=n(4959),l=n(4892),u=n(6805),p=n(9821);var h=function(e){const[t,n,o,i,r]=(0,p.Z)(),[d]=(0,a.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[s]=(0,a.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),c=r[u.YP]===u.$w?s/100:d/100*1.2;return[t*c,n*c,r]},f=n(9723),v=n(9461),m=n.n(v),w=n(1195),g=n(7108),b=(n(7244),n(123),n(6417));var x=function(e){const t=o.useRef(null);var[n,r,d]=h();const[s]=(0,a.j1)("whatmoreEmbedAppVideoTitle"),[p]=(0,a.j1)("whatmoreEmbedAppPositionPortrait"),[v]=(0,a.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[x]=(0,a.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[y]=(0,a.j1)("whatmoreEmbedAppPositionLandscape"),[j]=(0,a.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[E]=(0,a.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),P=(0,a.MO)("whatmoreShopId");var S=p,_=v,C=x;d[u.YP]===u.$w&&(S=y,_=j,C=E);const[T,k]=(0,o.useState)(["initial",window.pageYOffset]),[z,I]=(0,o.useState)(!1);function A(e,t){k(e),e[1]<=100?I(!1):t!=z&&I(t)}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-e)<100||(A([n>e?"scrolled-down":"scrolled-up",n],!0),e=n>0?n:0),t=!1},o=()=>{t||(window.requestAnimationFrame(n),t=!0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)}),[T]),(0,c.O3)({ref:t,handler:()=>{A(["scrolled-up",T[1]],!0)}});const O=e.event,N=e.inVideoClick,L=e.closeClick,Z=.3*r,M=.6*r,V=.1*r,D=.1*(.5*r),R="10px",J=(0,i.Z$)(P);var B=!1,F=0,H=0;function Y(e){B=e}return(0,b.jsx)("div",{children:z&&(0,i.lV)(P)?(0,b.jsx)("div",{style:"left"===S?{left:"1px",bottom:C+"px",position:"fixed",zIndex:J}:{right:"5px",bottom:C+"px",position:"fixed",zIndex:J},children:(0,b.jsxs)("div",{onClick:()=>{A(["initial",T[1]],!1)},style:{margin:"1px",width:r+"px",height:n+"px"},className:"left"===S?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,b.jsx)("div",{style:{boxShadow:"0px 0px 10px 3px #B0B0B0",borderRadius:R,overflow:"hidden"},children:(0,b.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,b.jsx)(l.Z,{url:O.thumbnail_image,isPlaying:!1,event:O})})}),(0,b.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,b.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,b.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,b.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,b.jsx)(w.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"white",fontSize:Z+"px"},style:{position:"relative",zIndex:1,left:D+"px",bottom:D+"px"},onClick:L})})}),(0,b.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,b.jsx)(g.Z,{sx:{color:"white",fontSize:2*Z+"px",filter:"drop-shadow(0 0 15px black);"}})})]})})]})}):(0,b.jsx)(m(),{nodeRef:t,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,o;n=t.x,o=t.y,F=n,H=o},onDrag:(e,t)=>{Y(!0)},onStop:(e,t)=>{B&&(Math.abs(t.x-F)>5||Math.abs(t.y-H)>5)?Y(!1):N(O)},children:(0,b.jsx)("div",{ref:t,style:"left"===S?{left:_+"px",bottom:C+"px",position:"fixed",zIndex:J}:{right:_+"px",bottom:C+"px",position:"fixed",zIndex:J},children:(0,b.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:r+"px",height:n+"px"}),className:"left"===S?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,b.jsx)("div",{style:{boxShadow:"0px 0px 10px 3px #B0B0B0",borderRadius:R,overflow:"hidden",position:"relative"},children:(0,b.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,b.jsx)(l.Z,{url:O.thumbnail_image,isMuted:!0,isPlaying:!0,event:O})})}),(0,b.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,b.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,b.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,b.jsx)(w.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 15px black);",color:"white",fontSize:Z+"px"},onClick:L,style:{position:"relative",zIndex:1,left:V+"px",bottom:V+"px"}})}),(0,b.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,b.jsx)(f.Z,{sx:{color:"white",fontSize:M+"px",filter:"drop-shadow(0 0 15px black);"}})}),(0,b.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:R,borderBottomRightRadius:R,backgroundImage:s?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,b.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*Z+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",s]})})]})})]})})})})},y=n(58),j=n(8984),E=(n(7247),n(1824),n(4669)),P=n(4998),S=n(9302),_=n(2575),C=n(7300),T=n(6524);const k=(0,_.Z)({key:"whatmore-css-ppv"}),z=o.lazy((()=>Promise.all([n.e(648),n.e(576),n.e(853),n.e(267),n.e(926),n.e(985),n.e(282),n.e(204)]).then(n.bind(n,3008))));function I(e){return e.split(/[?#]/)[0]}var A=function(e){const[t,n]=(0,o.useState)(),[c,l]=(0,o.useState)(),[u]=(0,a.j1)("isInDesignMode"),[p]=(0,a.j1)("isDemoBrand"),[h]=(0,a.j1)("whatmoreEmbedAppUseVariant"),[f,v]=(0,o.useState)(-2),[m]=(0,a.j1)("whatmoreVariantId"),[w]=(0,a.j1)("whatmoreShopId");var[g]=(0,a.j1)("whatmoreProductId");const _=(0,a.MO)("isLandingSharedLink"),A=(0,a.MO)("whatmoreShareTemplateId"),O=((0,a.MO)("whatmoreShareStoryId"),(0,a.MO)("whatmoreShareEventId"));g=(0,i.iX)(w)?I(window.location.href):g;const[N,L]=(0,o.useState)((()=>"true"===h?m:g));var Z=r.Gc+"/v1/brand/"+w+"/product-events";(0,o.useEffect)((()=>{(0,s.hb)()}),[]),(0,o.useEffect)((()=>{(0,E.ll)(w)}),[]),(0,o.useEffect)((()=>{null==t||0==t.length||c||!(0,j.KE)()||(0,a.MO)("whatmoreVideoPlayerPoolInitiated")||(0,y.b5)(y.UD)}),[t]),(0,o.useEffect)((()=>{v(-1),fetch(Z.toString()+"?client_product_id="+N.toString()+"&status="+"upcoming".toString()+"&event_type=video").then((e=>e.json())).then((e=>(n(e),e))).then((e=>((0,i.yo)(w)&&function(e,t){setTimeout((async()=>{const n=e.reduce(((e,t)=>[...e,...t.products]),[]).filter((e=>e.client_product_id==t))[0];if(!n||n.product_link==I(window.location.href))return;const o={product_id:n.product_id,product_link:I(window.location.href)};fetch(r.Gc+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)})}),500)}(e,N),e))).catch((e=>{l(e.message)}))}),[N]),(0,o.useEffect)((()=>{v(-2)}),[t]),(0,o.useEffect)((()=>{let e=history.pushState;history.pushState=function(){let t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};let t=history.replaceState;history.replaceState=function(){let e=t.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),e},window.addEventListener("popstate",(()=>{window.dispatchEvent(new Event("locationchange"))})),window.addEventListener("locationchange",(function(){if("true"===h){const e=function(e){for(var t=window.location.search.substring(1).split("&"),n=0;n<t.length;n++){var o=t[n].split("=");if(o[0]==e)return o[1]}return!1}("variant");e&&""!==e&&L(e)}}))}),[]),(0,o.useEffect)((()=>{null==t||0==t.length||c||_&&"template-embed"==(0,T.z)(A)&&null!=O&&t.forEach(((e,t)=>{O==e.event_id&&M(e,!0,t)}))}),[t]);const M=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,j.KE)()&&!t&&(0,y.QV)(),(0,C.B6)(e)||(0,C.WJ)(e))return u||p||(async()=>{(0,d.wh)(e),(0,E.Tc)(w,r.h7,r.dU),(0,s.H4)(e.event_id,e.products,"product_page","video_popup")})(),void v(n)};function V(){return(0,b.jsx)(b.Fragment,{})}return null==t||0==t.length||c?(0,b.jsx)("div",{}):(0,b.jsx)(S.C,{value:k,children:"no-product"===N||-1===f||0===t.length?(0,b.jsx)(V,{}):-2===f&&t.length>0?(0,b.jsx)("div",{children:(0,b.jsx)(x,{event:t[0],inVideoClick:M,closeClick:e=>{e.stopPropagation(),v(-1)}})}):(0,b.jsx)("div",{children:(0,b.jsx)(o.Suspense,{children:(0,b.jsx)(z,{events:t,index:f,onBack:function(){(0,i.n2)(w)&&(0,a.MO)("whatmoreAddedToCart")&&(0,P.D)(w,(()=>{}),100,window.location.hostname),v(-2)},template:"template-product-page"})})})})}},868:function(e,t,n){n.d(t,{V:function(){return d}});var o=n(9854),i=n(7753);const r={"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"},a={"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"},d=function(e){const t=(0,i.MO)("whatmoreShopId");if(e.startsWith("https://cdn.shopify.com"))return e;if("AWSCDN"==(0,o.zp)(t))return e;if("AZURECDN"==(0,o.zp)(t)){if(e.includes(".azureedge.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}}if("BUNNYCDN"==(0,o.zp)(t)){if(e.includes(".b-cdn.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(a))if(e.includes(t))return e.replace(t,a[t]);return e}}return e}},7300:function(e,t,n){n.d(t,{B6:function(){return o},WJ:function(){return i},yC:function(){return r}});const o=function(e){return"video"===e.event_type},i=function(e){return"image"===e.event_type},r=function(e){return"livestream"===e.event_type}},6524:function(e,t,n){n.d(t,{Q:function(){return a},z:function(){return r}});const o={ta:"template-a",ta1:"template-a-1",tb:"template-b",tc:"template-c",td:"template-d",te:"template-e",te:"template-embed",tsa:"template-stories-a",tsb:"template-stories-b",tfa:"template-feed-a",tca:"template-collections-a",tcb:"template-collections-b",tcc:"template-collections-c",tcd:"template-collections-d",tce:"template-collections-e"},i={"template-a":"ta","template-a-1":"ta1","template-c":"tc","template-d":"td","template-e":"te","template-b":"tb","template-embed":"te","template-stories-a":"tsa","template-stories-b":"tsb","template-feed-a":"tfa","template-collections-a":"tca","template-collections-b":"tcb","template-collections-c":"tcc","template-collections-d":"tcd","template-collections-e":"tce"},r=function(e){return o[e]},a=function(e){return i[e]}},6805:function(e,t,n){n.d(t,{$I:function(){return d},$w:function(){return c},AK:function(){return r},AL:function(){return a},YP:function(){return i},me:function(){return o},rE:function(){return s}});const o="device_type",i="device_mode",r="mobile",a="tablet",d="desktop",s="portrait",c="landscape"},6422:function(e,t,n){var o=n(7313),i=n(7753);t.Z=function(e){const[t,n]=(0,i.j1)("muted");return(0,o.useEffect)((()=>{}),[]),[t,n]}},8866:function(e,t,n){var o=n(7313);function i(){return[window.innerHeight,window.innerWidth]}t.Z=function(e){var[t,n]=i();const[r,a]=(0,o.useState)(["portrait",t,n]);return(0,o.useLayoutEffect)((()=>{function e(){var[e,t]=i();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)}}),[]),r}},9821:function(e,t,n){var o=n(6367),i=n(7753),r=n(8866),a=n(6805);t.Z=function(e){const[t,n,d]=(0,r.Z)(),[s]=(0,i.j1)("whatmoreLandscapePadding"),[c]=(0,i.j1)("whatmoreVideoTileSize"),l=(0,o.useMediaQuery)({query:"(min-width: 1025px)"}),u=(0,o.useMediaQuery)({query:"(min-width: 481px)"}),p=!("portrait"!=t||!u),h=c/100*1.3*.5,f=c/100;var v=Math.min(d,n),[m,w,g,b]=[.6*v*(16/9),.6*v,1.4,0];function x(e){return Math.round(10*e)/10}var y={DEVICE_TYPE:a.AK,DEVICE_MODE:a.rE};if(l){const e=w*h,t=m*h;[m,w,g,b]=[t,e,(d-2*s)/(1.1*e),s],y[a.me]=a.$I,y[a.YP]=a.$w}else if(p){var j=.8*w,E=.8*m;"portrait"==t?(j*=f,E*=f,[m,w,g,b]=[E,j,x(d/(1.2*j)),0],y[a.me]=a.AL,y[a.YP]=a.rE):([m,w,g,b]=[E,j,(d-2*s)/(1.1*j),s],y[a.me]=a.AL,y[a.YP]=a.$w)}else{j=w,E=m;"portrait"==t?(j*=f,E*=f,[m,w,g,b]=[E,j,x(d/(1.2*j)),0],y[a.me]=a.AK,y[a.YP]=a.rE):(j=.7*w,E=.7*m,[m,w,g,b]=[E,j,(d-2*s)/(1.1*j),s],y[a.me]=a.AK,y[a.YP]=a.$w)}return[m,w,g,b,y]}},5160:function(e,t,n){n.d(t,{$L:function(){return d},JX:function(){return a},rp:function(){return s},wh:function(){return i},wz:function(){return r}});var o=n(2860);n(7753);function i(e){console.debug("updating user view count for event.");const t={event_id:e.event_id,increase_by:1};fetch(o.Gc+"/event/metrics/views",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>(console.debug("updating user view count response : HTTP "+e.status),e.json()))).then((e=>{console.debug("updating user view count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating user view count user for event : ",e)}))}function r(e,t){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(o.Gc+"/event/metrics/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(console.debug("updating user event-product click count response : HTTP "+e.status),e.json()))).then((e=>{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 a(e,t,n){console.debug("updating event-product add to cart count for event {} and product {}.",e.event_id,t.product_id);const i={event_id:e.event_id,product_id:t.product_id,increase_by:n};fetch(o.Gc+"/event/metrics/add_to_cart",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(i)}).then((e=>(console.debug("updating user event-product add to cart count response : HTTP "+e.status),e.json()))).then((e=>{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 d(e,t){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(o.Gc+"/event/metrics/buy_now",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(console.debug("updating user event-product buy now count response : HTTP "+e.status),e.json()))).then((e=>{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)}))}async function s(){let{storeId:e="",eventId:t=0,productId:n="",variantId:i="",cartToken:r="",checkoutToken:a="",quantity:d=0,price:s="",actionType:c="",trackingId:l=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u={event_id:t,product_id:n,cart_token:r,checkout_token:a,quantity:d,price:s,variant_id:i,action_type:c,tracking_id:l};console.debug("initiating ATC metadata event for eventId {}, productId {}, variantId {} ",t,n,i);const p=await fetch(o.Gc+"/cart-metadata/"+e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(u)}).then((e=>(console.debug("initiating ATC metadata event for eventId {}, productId {}, variantId {} : HTTP "+e.status),e.json()))).catch((e=>{console.error("error initiating ATC metadata event for eventId {}, productId {}, variantId {} : ",t,n,i)}));return p}},4669:function(e,t,n){n.d(t,{Tc:function(){return u},ll:function(){return l}});var o=n(1824),i=n(7786),r=n(9854);n(7753);const a="Whatmore Video Shopping",d="Video View",s={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},c={homepage:"Home Page",product_page:"Product Page"};async function l(e){if((0,r.Dv)(e)&&null!==(0,r.hf)(e)&&(i.ZP.initialize((0,r.hf)(e)),console.debug("Whatmore: initialized GA4")),(0,r.hv)(e)&&null!==(0,r.BH)(e)){const t=(0,r.OQ)(e);o.ZP.initialize((0,r.BH)(e),{useExistingGa:t}),console.debug("Whatmore: initialized GA3")}}async function u(e,t,n){(0,r.hv)(e)&&null!==(0,r.BH)(e)&&(o.ZP.event({category:a,action:d,label:c[t]+":"+s[n]}),console.debug("Whatmore: pushed view event to GA3")),(0,r.Dv)(e)&&null!==(0,r.hf)(e)&&(i.ZP.event({category:a,action:d+":"+c[t]+":"+s[n],value:1,nonInteraction:!1}),console.debug("Whatmore: pushed view event to GA4"))}},123:function(){},7244:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[561],{1729:function(e,t,n){"use strict";var r=n(9165);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5192:function(e,t,n){e.exports=n(1729)()},9165:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1824:function(e,t,n){"use strict";n.d(t,{ZP:function(){return pe}});var r={};n.r(r),n.d(r,{addTrackers:function(){return B},default:function(){return ce},event:function(){return ne},exception:function(){return re},ga:function(){return K},initialize:function(){return $},modalview:function(){return ee},outboundLink:function(){return ae},pageview:function(){return X},plugin:function(){return oe},send:function(){return Y},set:function(){return H},testModeAPI:function(){return ie},timing:function(){return te}});var o=n(7313),a=n(5192),i=n.n(a);function c(e){console.warn("[react-ga]",e)}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var l=["to","target"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function b(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"===u(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O="_blank",_=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(i,e);var t,n,r,a=b(i);function i(){var e;g(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(m(e=a.call.apply(a,[this].concat(n))),"handleClick",(function(t){var n=e.props,r=n.target,o=n.eventLabel,a=n.to,c=n.onClick,u=n.trackerNames,l={label:o},s=r!==O,f=!(t.ctrlKey||t.shiftKey||t.metaKey||1===t.button);s&&f?(t.preventDefault(),i.trackLink(l,(function(){window.location.href=a}),u)):i.trackLink(l,(function(){}),u),c&&c(t)})),e}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.to,n=e.target,r=f(f({},p(e,l)),{},{target:n,href:t,onClick:this.handleClick});return n===O&&(r.rel="".concat(r.rel?r.rel:""," noopener noreferrer").trim()),delete r.eventLabel,delete r.trackerNames,o.createElement("a",r)}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);w(_,"trackLink",(function(){c("ga tracking not enabled")})),_.propTypes={eventLabel:i().string.isRequired,target:i().string,to:i().string,onClick:i().func,trackerNames:i().arrayOf(i().string)},_.defaultProps={target:null,to:null,onClick:null,trackerNames:null};function j(e){return"string"===typeof(t=e)&&-1!==t.indexOf("@")?(c("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):e;var t}function k(e){return e&&e.toString().replace(/^\s+|\s+$/g,"")}var P=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function S(e){return k(e).replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(e,t,n){return t>0&&t+e.length!==n.length&&e.search(P)>-1&&":"!==n.charAt(t-2)&&("-"!==n.charAt(t+e.length)||"-"===n.charAt(t-1))&&n.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)}))}var A=!1;function C(e){console.info("[react-ga]",e)}var E=[],T={calls:E,ga:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];E.push([].concat(t))},resetCalls:function(){E.length=0}},I=["category","action","label","value","nonInteraction","transport"];function x(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function G(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var M="undefined"===typeof window||"undefined"===typeof document,R=!1,z=!0,U=!1,F=!0,V=!0,J=function(){var e;return U?T.ga.apply(T,arguments):!M&&(window.ga?(e=window).ga.apply(e,arguments):c("ReactGA.initialize must be called first or GoogleAnalytics should be loaded manually"))};function Z(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=e||"";return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(n=S(e)),t&&(n=j(n)),n}(e,z,V)}function Q(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n[0];"string"===typeof o?(!F&&Array.isArray(e)||J.apply(void 0,n),Array.isArray(e)&&e.forEach((function(e){J.apply(void 0,G(["".concat(e,".").concat(o)].concat(n.slice(1))))}))):c("ga command must be a string")}function W(e,t){e?t&&(t.debug&&!0===t.debug&&(R=!0),!1===t.titleCase&&(z=!1),!1===t.redactEmail&&(V=!1),t.useExistingGa)||(t&&t.gaOptions?J("create",e,t.gaOptions):J("create",e,"auto")):c("gaTrackingID is required in initialize()")}function B(e,t){return Array.isArray(e)?e.forEach((function(e){"object"===q(e)?W(e.trackingId,e):c("All configs must be an object")})):W(e,t),!0}function $(e,t){if(t&&!0===t.testMode)U=!0;else{if(M)return;t&&!0===t.standardImplementation||function(e){if(!A){A=!0;var t="https://www.google-analytics.com/analytics.js";e&&e.gaAddress?t=e.gaAddress:e&&e.debug&&(t="https://www.google-analytics.com/analytics_debug.js");var n,r,o,a,i,c,u,l=e&&e.onerror;n=window,r=document,o="script",a=t,i="ga",n.GoogleAnalyticsObject=i,n.ga=n.ga||function(){(n.ga.q=n.ga.q||[]).push(arguments)},n.ga.l=1*new Date,c=r.createElement(o),u=r.getElementsByTagName(o)[0],c.async=1,c.src=a,c.onerror=l,u.parentNode.insertBefore(c,u)}}(t)}F=!t||"boolean"!==typeof t.alwaysSendToDefaultTracker||t.alwaysSendToDefaultTracker,B(e,t)}function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length>0&&(J.apply(void 0,t),R&&(C("called ga('arguments');"),C("with arguments: ".concat(JSON.stringify(t))))),window.ga}function H(e,t){e?"object"===q(e)?(0===Object.keys(e).length&&c("empty `fieldsObject` given to .set()"),Q(t,"set",e),R&&(C("called ga('set', fieldsObject);"),C("with fieldsObject: ".concat(JSON.stringify(e))))):c("Expected `fieldsObject` arg to be an Object"):c("`fieldsObject` is required in .set()")}function Y(e,t){Q(t,"send",e),R&&(C("called ga('send', fieldObject);"),C("with fieldObject: ".concat(JSON.stringify(e))),C("with trackers: ".concat(JSON.stringify(t))))}function X(e,t,n){if(e){var r=k(e);if(""!==r){var o={};if(n&&(o.title=n),Q(t,"send",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hitType:"pageview",page:r},o)),R){C("called ga('send', 'pageview', path);");var a="";n&&(a=" and title: ".concat(n)),C("with path: ".concat(r).concat(a))}}else c("path cannot be an empty string in .pageview()")}else c("path is required in .pageview()")}function ee(e,t){if(e){var n,r="/"===(n=k(e)).substring(0,1)?n.substring(1):n;if(""!==r){var o="/modal/".concat(r);Q(t,"send","pageview",o),R&&(C("called ga('send', 'pageview', path);"),C("with path: ".concat(o)))}else c("modalName cannot be an empty string or a single / in .modalview()")}else c("modalName is required in .modalview(modalName)")}function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.variable,r=e.value,o=e.label,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(t&&n&&"number"===typeof r){var i={hitType:"timing",timingCategory:Z(t),timingVar:Z(n),timingValue:r};o&&(i.timingLabel=Z(o)),Y(i,a)}else c("args.category, args.variable AND args.value are required in timing() AND args.value has to be a number")}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.action,r=e.label,o=e.value,a=e.nonInteraction,i=e.transport,u=x(e,I),l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(t&&n){var s={hitType:"event",eventCategory:Z(t),eventAction:Z(n)};r&&(s.eventLabel=Z(r)),"undefined"!==typeof o&&("number"!==typeof o?c("Expected `args.value` arg to be a Number."):s.eventValue=o),"undefined"!==typeof a&&("boolean"!==typeof a?c("`args.nonInteraction` must be a boolean."):s.nonInteraction=a),"undefined"!==typeof i&&("string"!==typeof i?c("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(i)&&c("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),s.transport=i)),Object.keys(u).filter((function(e){return"dimension"===e.substr(0,"dimension".length)})).forEach((function(e){s[e]=u[e]})),Object.keys(u).filter((function(e){return"metric"===e.substr(0,"metric".length)})).forEach((function(e){s[e]=u[e]})),Y(s,l)}else c("args.category AND args.action are required in event()")}function re(e,t){var n=e.description,r=e.fatal,o={hitType:"exception"};n&&(o.exDescription=Z(n)),"undefined"!==typeof r&&("boolean"!==typeof r?c("`args.fatal` must be a boolean."):o.exFatal=r),Y(o,t)}var oe={require:function(e,t,n){if(e){var r=k(e);if(""!==r){var o=n?"".concat(n,".require"):"require";if(t){if("object"!==q(t))return void c("Expected `options` arg to be an Object");0===Object.keys(t).length&&c("Empty `options` given to .require()"),K(o,r,t),R&&C("called ga('require', '".concat(r,"', ").concat(JSON.stringify(t)))}else K(o,r),R&&C("called ga('require', '".concat(r,"');"))}else c("`name` cannot be an empty string in .require()")}else c("`name` is required in .require()")},execute:function(e,t){for(var n,r,o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];if(1===a.length?n=a[0]:(r=a[0],n=a[1]),"string"!==typeof e)c("Expected `pluginName` arg to be a String.");else if("string"!==typeof t)c("Expected `action` arg to be a String.");else{var u="".concat(e,":").concat(t);n=n||null,r&&n?(K(u,r,n),R&&(C("called ga('".concat(u,"');")),C('actionType: "'.concat(r,'" with payload: ').concat(JSON.stringify(n))))):n?(K(u,n),R&&(C("called ga('".concat(u,"');")),C("with payload: ".concat(JSON.stringify(n))))):(K(u),R&&C("called ga('".concat(u,"');")))}}};function ae(e,t,n){if("function"===typeof t)if(e&&e.label){var r={hitType:"event",eventCategory:"Outbound",eventAction:"Click",eventLabel:Z(e.label)},o=!1,a=setTimeout((function(){o=!0,t()}),250);r.hitCallback=function(){clearTimeout(a),o||t()},Y(r,n)}else c("args.label is required in outboundLink()");else c("hitCallback function is required")}var ie=T,ce={initialize:$,ga:K,set:H,send:Y,pageview:X,modalview:ee,timing:te,event:ne,exception:re,plugin:oe,outboundLink:ae,testModeAPI:T};function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}_.origTrackLink=_.trackLink,_.trackLink=ae;var fe=_,pe=le(le({},r),{},{OutboundLink:fe})},5377:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=e||"";t&&(a=r(e));n&&(a=o(a));return a};var n=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function r(e){return e.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(e,t,r){return t>0&&t+e.length!==r.length&&e.search(n)>-1&&":"!==r.charAt(t-2)&&("-"!==r.charAt(t+e.length)||"-"===r.charAt(t-1))&&r.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)}))}function o(e){return"string"===typeof(t=e)&&-1!==t.indexOf("@")?(console.warn("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):e;var t}},6318:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var r=u(n(171)),o=u(n(5377)),a=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],c=["page","hitType"];function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],u=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"===typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function m(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var w=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),m(this,"reset",(function(){t.isInitialized=!1,t._testMode=!1,t._currentMeasurementId,t._hasLoadedGA=!1,t._isQueuing=!1,t._queueGtag=[]})),m(this,"_gtag",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];t._testMode||t._isQueuing?t._queueGtag.push(n):r.default.apply(void 0,n)})),m(this,"_loadGA",(function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"https://www.googletagmanager.com/gtag/js";if("undefined"!==typeof window&&"undefined"!==typeof document&&!t._hasLoadedGA){var o=document.createElement("script");o.async=!0,o.src="".concat(r,"?id=").concat(e),n&&o.setAttribute("nonce",n),document.body.appendChild(o),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},t._hasLoadedGA=!0}})),m(this,"_toGtagOptions",(function(e){if(e){var t={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"};return Object.entries(e).reduce((function(e,n){var r=d(n,2),o=r[0],a=r[1];return t[o]?e[t[o]]=a:e[o]=a,e}),{})}})),m(this,"initialize",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Require GA_MEASUREMENT_ID");var r="string"===typeof e?[{trackingId:e}]:e;t._currentMeasurementId=r[0].trackingId;var o=n.gaOptions,a=n.gtagOptions,i=n.nonce,c=n.testMode,u=void 0!==c&&c,l=n.gtagUrl;if(t._testMode=u,u||t._loadGA(t._currentMeasurementId,i,l),t.isInitialized||(t._gtag("js",new Date),r.forEach((function(e){var n=g(g(g({},t._toGtagOptions(g(g({},o),e.gaOptions))),a),e.gtagOptions);Object.keys(n).length?t._gtag("config",e.trackingId,n):t._gtag("config",e.trackingId)}))),t.isInitialized=!0,!u){var s=f(t._queueGtag);for(t._queueGtag=[],t._isQueuing=!1;s.length;){var p=s.shift();t._gtag.apply(t,f(p)),"get"===p[0]&&(t._isQueuing=!0)}}})),m(this,"set",(function(e){e?"object"===s(e)?(0===Object.keys(e).length&&console.warn("empty `fieldsObject` given to .set()"),t._gaCommand("set",e)):console.warn("Expected `fieldsObject` arg to be an Object"):console.warn("`fieldsObject` is required in .set()")})),m(this,"_gaCommandSendEvent",(function(e,n,r,o,a){t._gtag("event",n,g(g({event_category:e,event_label:r,value:o},a&&{non_interaction:a.nonInteraction}),t._toGtagOptions(a)))})),m(this,"_gaCommandSendEventParameters",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("string"===typeof n[0])t._gaCommandSendEvent.apply(t,f(n.slice(1)));else{var o=n[0],i=o.eventCategory,c=o.eventAction,u=o.eventLabel,s=o.eventValue,p=(o.hitType,l(o,a));t._gaCommandSendEvent(i,c,u,s,p)}})),m(this,"_gaCommandSendTiming",(function(e,n,r,o){t._gtag("event","timing_complete",{name:n,value:r,event_category:e,event_label:o})})),m(this,"_gaCommandSendPageview",(function(e,n){if(n&&Object.keys(n).length){var r=t._toGtagOptions(n),o=r.title,a=r.location,c=l(r,i);t._gtag("event","page_view",g(g(g(g({},e&&{page_path:e}),o&&{page_title:o}),a&&{page_location:a}),c))}else e?t._gtag("event","page_view",{page_path:e}):t._gtag("event","page_view")})),m(this,"_gaCommandSendPageviewParameters",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("string"===typeof n[0])t._gaCommandSendPageview.apply(t,f(n.slice(1)));else{var o=n[0],a=o.page,i=(o.hitType,l(o,c));t._gaCommandSendPageview(a,i)}})),m(this,"_gaCommandSend",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o="string"===typeof n[0]?n[0]:n[0].hitType;switch(o){case"event":t._gaCommandSendEventParameters.apply(t,n);break;case"pageview":t._gaCommandSendPageviewParameters.apply(t,n);break;case"timing":t._gaCommandSendTiming.apply(t,f(n.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(o));break;default:console.warn("Send command doesn't exist: ".concat(o))}})),m(this,"_gaCommandSet",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];"string"===typeof n[0]&&(n[0]=m({},n[0],n[1])),t._gtag("set",t._toGtagOptions(n[0]))})),m(this,"_gaCommand",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];switch(e){case"send":t._gaCommandSend.apply(t,r);break;case"set":t._gaCommandSet.apply(t,r);break;default:console.warn("Command doesn't exist: ".concat(e))}})),m(this,"ga",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("string"===typeof n[0])t._gaCommand.apply(t,n);else{var o=n[0];t._gtag("get",t._currentMeasurementId,"client_id",(function(e){t._isQueuing=!1;var n=t._queueGtag;for(o({get:function(n){return"clientId"===n?e:"trackingId"===n?t._currentMeasurementId:"apiVersion"===n?"1":void 0}});n.length;){var r=n.shift();t._gtag.apply(t,f(r))}})),t._isQueuing=!0}return t.ga})),m(this,"event",(function(e,n){if("string"===typeof e)t._gtag("event",e,t._toGtagOptions(n));else{var r=e.action,a=e.category,i=e.label,c=e.value,u=e.nonInteraction,l=e.transport;if(!a||!r)return void console.warn("args.category AND args.action are required in event()");var s={hitType:"event",eventCategory:(0,o.default)(a),eventAction:(0,o.default)(r)};i&&(s.eventLabel=(0,o.default)(i)),"undefined"!==typeof c&&("number"!==typeof c?console.warn("Expected `args.value` arg to be a Number."):s.eventValue=c),"undefined"!==typeof u&&("boolean"!==typeof u?console.warn("`args.nonInteraction` must be a boolean."):s.nonInteraction=u),"undefined"!==typeof l&&("string"!==typeof l?console.warn("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(l)&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),s.transport=l)),t._gaCommand("send",s)}})),m(this,"send",(function(e){t._gaCommand("send",e)})),this.reset()}var t,n,u;return t=e,n=[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}}],n&&v(t.prototype,n),u&&v(t,u),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.GA4=w;var O=new w;t.default=O},171:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;"undefined"!==typeof window&&("undefined"===typeof window.gtag&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(r=window).gtag.apply(r,t))};t.default=n},7786:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.ZP=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var u=i?Object.getOwnPropertyDescriptor(e,c):null;u&&(u.get||u.set)?Object.defineProperty(o,c,u):o[c]=e[c]}o.default=e,n&&n.set(e,o);return o}(n(6318));function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}o.GA4;var i=o.default;t.ZP=i}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[576],{5098:function(e,r,t){t.d(r,{Ee:function(){return c}});var a=t(7313),n=t(7653),i=t(7872),s=t(4959);var o=(0,n.Gp)((function(e,r){const{htmlWidth:t,htmlHeight:n,alt:i,...s}=e;return a.createElement("img",{width:t,height:n,ref:r,alt:i,...s})}));i.Ts&&(o.displayName="NativeImage");var c=(0,n.Gp)((function(e,r){const{fallbackSrc:t,fallback:c,src:l,srcSet:m,align:d,fit:p,loading:u,ignoreFallback:f,crossOrigin:g,fallbackStrategy:h="beforeLoadOrError",referrerPolicy:y,...v}=e,x=null!=u||f||!(void 0!==t||void 0!==c),k=function(e){const{loading:r,src:t,srcSet:n,onLoad:i,onError:o,crossOrigin:c,sizes:l,ignoreFallback:m}=e,[d,p]=(0,a.useState)("pending");(0,a.useEffect)((()=>{p(t?"loading":"pending")}),[t]);const u=(0,a.useRef)(),f=(0,a.useCallback)((()=>{if(!t)return;g();const e=new Image;e.src=t,c&&(e.crossOrigin=c),n&&(e.srcset=n),l&&(e.sizes=l),r&&(e.loading=r),e.onload=e=>{g(),p("loaded"),null==i||i(e)},e.onerror=e=>{g(),p("failed"),null==o||o(e)},u.current=e}),[t,c,n,l,i,o,r]),g=()=>{u.current&&(u.current.onload=null,u.current.onerror=null,u.current=null)};return(0,s.Gw)((()=>{if(!m)return"loading"===d&&f(),()=>{g()}}),[d,f,m]),m?"loaded":d}({...e,ignoreFallback:x}),_=((e,r)=>"loaded"!==e&&"beforeLoadOrError"===r||"failed"===e&&"onError"===r)(k,h),b={ref:r,objectFit:p,objectPosition:d,...x?v:(0,i.CE)(v,["onError","onLoad"])};return _?c||a.createElement(n.m$.img,{as:o,className:"chakra-image__placeholder",src:t,...b}):a.createElement(n.m$.img,{as:o,src:l,srcSet:m,crossOrigin:g,loading:u,referrerPolicy:y,className:"chakra-image",...b})}));(0,n.Gp)(((e,r)=>a.createElement(n.m$.img,{ref:r,as:o,className:"chakra-image",...e})));i.Ts&&(c.displayName="Image")},3271:function(e,r,t){t.d(r,{oM:function(){return m},Ct:function(){return d},xu:function(){return p},M5:function(){return g},Cd:function(){return f},iz:function(){return x},kC:function(){return k},rU:function(){return E},LZ:function(){return j},bK:function(){return u},Kq:function(){return R},xv:function(){return q},Eq:function(){return M},Uc:function(){return O}});var a=t(7313),n=t(7653),i=t(7872),s=t(190),o={path:a.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},a.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),a.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),a.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},c=(0,n.Gp)(((e,r)=>{const{as:t,viewBox:s,color:c="currentColor",focusable:l=!1,children:m,className:d,__css:p,...u}=e,f={ref:r,focusable:l,className:(0,i.cx)("chakra-icon",d),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:c,...p}},g=null!==s&&void 0!==s?s:o.viewBox;if(t&&"string"!==typeof t)return a.createElement(n.m$.svg,{as:t,...f,...u});const h=null!==m&&void 0!==m?m:o.path;return a.createElement(n.m$.svg,{verticalAlign:"middle",viewBox:g,...f,...u},h)}));i.Ts&&(c.displayName="Icon");var l=t(87),m=(0,n.Gp)((function(e,r){const{ratio:t=4/3,children:s,className:o,...c}=e,l=a.Children.only(s),m=(0,i.cx)("chakra-aspect-ratio",o);return a.createElement(n.m$.div,{ref:r,position:"relative",className:m,_before:{height:0,content:'""',display:"block",paddingBottom:(0,i.XQ)(t,(e=>"".concat(1/e*100,"%")))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...c},l)}));i.Ts&&(m.displayName="AspectRatio");var d=(0,n.Gp)((function(e,r){const t=(0,n.mq)("Badge",e),{className:o,...c}=(0,s.Lr)(e);return a.createElement(n.m$.span,{ref:r,className:(0,i.cx)("chakra-badge",e.className),...c,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...t}})}));i.Ts&&(d.displayName="Badge");var p=(0,n.m$)("div");i.Ts&&(p.displayName="Box");var u=(0,n.Gp)((function(e,r){const{size:t,centerContent:n=!0,...i}=e,s=n?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return a.createElement(p,{ref:r,boxSize:t,__css:{...s,flexShrink:0,flexGrow:0},...i})}));i.Ts&&(u.displayName="Square");var f=(0,n.Gp)((function(e,r){const{size:t,...n}=e;return a.createElement(u,{size:t,ref:r,borderRadius:"9999px",...n})}));i.Ts&&(f.displayName="Circle");var g=(0,n.m$)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});i.Ts&&(g.displayName="Center");var h={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}},y=((0,n.Gp)((function(e,r){const{axis:t="both",...i}=e;return a.createElement(n.m$.div,{ref:r,__css:h[t],...i,position:"absolute"})})),(0,n.Gp)((function(e,r){const t=(0,n.mq)("Code",e),{className:o,...c}=(0,s.Lr)(e);return a.createElement(n.m$.code,{ref:r,className:(0,i.cx)("chakra-code",e.className),...c,__css:{display:"inline-block",...t}})})));i.Ts&&(y.displayName="Code");var v=(0,n.Gp)((function(e,r){const{className:t,centerContent:o,...c}=(0,s.Lr)(e),l=(0,n.mq)("Container",e);return a.createElement(n.m$.div,{ref:r,className:(0,i.cx)("chakra-container",t),...c,__css:{...l,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})}));i.Ts&&(v.displayName="Container");var x=(0,n.Gp)((function(e,r){const{borderLeftWidth:t,borderBottomWidth:o,borderTopWidth:c,borderRightWidth:l,borderWidth:m,borderStyle:d,borderColor:p,...u}=(0,n.mq)("Divider",e),{className:f,orientation:g="horizontal",__css:h,...y}=(0,s.Lr)(e),v={vertical:{borderLeftWidth:t||l||m||"1px",height:"100%"},horizontal:{borderBottomWidth:o||c||m||"1px",width:"100%"}};return a.createElement(n.m$.hr,{ref:r,"aria-orientation":g,...y,__css:{...u,border:"0",borderColor:p,borderStyle:d,...v[g],...h},className:(0,i.cx)("chakra-divider",f)})}));i.Ts&&(x.displayName="Divider");var k=(0,n.Gp)((function(e,r){const{direction:t,align:i,justify:s,wrap:o,basis:c,grow:l,shrink:m,...d}=e,p={display:"flex",flexDirection:t,alignItems:i,justifyContent:s,flexWrap:o,flexBasis:c,flexGrow:l,flexShrink:m};return a.createElement(n.m$.div,{ref:r,__css:p,...d})}));i.Ts&&(k.displayName="Flex");var _=(0,n.Gp)((function(e,r){const{templateAreas:t,gap:i,rowGap:s,columnGap:o,column:c,row:l,autoFlow:m,autoRows:d,templateRows:p,autoColumns:u,templateColumns:f,...g}=e,h={display:"grid",gridTemplateAreas:t,gridGap:i,gridRowGap:s,gridColumnGap:o,gridAutoColumns:u,gridColumn:c,gridRow:l,gridAutoFlow:m,gridAutoRows:d,gridTemplateRows:p,gridTemplateColumns:f};return a.createElement(n.m$.div,{ref:r,__css:h,...g})}));function b(e){return(0,i.XQ)(e,(e=>"auto"===e?"auto":"span ".concat(e,"/span ").concat(e)))}i.Ts&&(_.displayName="Grid");(0,n.Gp)((function(e,r){const{area:t,colSpan:s,colStart:o,colEnd:c,rowEnd:l,rowSpan:m,rowStart:d,...p}=e,u=(0,i.YU)({gridArea:t,gridColumn:b(s),gridRow:b(m),gridColumnStart:o,gridColumnEnd:c,gridRowStart:d,gridRowEnd:l});return a.createElement(n.m$.div,{ref:r,__css:u,...p})}));var N=(0,n.Gp)((function(e,r){const t=(0,n.mq)("Heading",e),{className:o,...c}=(0,s.Lr)(e);return a.createElement(n.m$.h2,{ref:r,className:(0,i.cx)("chakra-heading",e.className),...c,__css:t})}));i.Ts&&(N.displayName="Heading");(0,n.Gp)((function(e,r){const t=(0,n.mq)("Mark",e),i=(0,s.Lr)(e);return a.createElement(p,{ref:r,...i,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...t}})}));var w=(0,n.Gp)((function(e,r){const t=(0,n.mq)("Kbd",e),{className:o,...c}=(0,s.Lr)(e);return a.createElement(n.m$.kbd,{ref:r,className:(0,i.cx)("chakra-kbd",o),...c,__css:{fontFamily:"mono",...t}})}));i.Ts&&(w.displayName="Kbd");var E=(0,n.Gp)((function(e,r){const t=(0,n.mq)("Link",e),{className:o,isExternal:c,...l}=(0,s.Lr)(e);return a.createElement(n.m$.a,{target:c?"_blank":void 0,rel:c?"noopener":void 0,ref:r,className:(0,i.cx)("chakra-link",o),...l,__css:t})}));i.Ts&&(E.displayName="Link");(0,n.Gp)((function(e,r){const{isExternal:t,target:s,rel:o,className:c,...l}=e;return a.createElement(n.m$.a,{...l,ref:r,className:(0,i.cx)("chakra-linkbox__overlay",c),rel:t?"noopener noreferrer":o,target:t?"_blank":s,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})})),(0,n.Gp)((function(e,r){const{className:t,...s}=e;return a.createElement(n.m$.div,{ref:r,position:"relative",...s,className:(0,i.cx)("chakra-linkbox",t),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})}));var[T,G]=(0,l.kr)({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<List />\" "}),S=(0,n.Gp)((function(e,r){const t=(0,n.jC)("List",e),{children:i,styleType:o="none",stylePosition:c,spacing:m,...d}=(0,s.Lr)(e),p=(0,l.WR)(i),u=m?{"& > *:not(style) ~ *:not(style)":{mt:m}}:{};return a.createElement(T,{value:t},a.createElement(n.m$.ul,{ref:r,listStyleType:o,listStylePosition:c,role:"list",__css:{...t.container,...u},...d},p))}));i.Ts&&(S.displayName="List");var C=(0,n.Gp)(((e,r)=>{const{as:t,...n}=e;return a.createElement(S,{ref:r,as:"ol",styleType:"decimal",marginStart:"1em",...n})}));i.Ts&&(C.displayName="OrderedList");var L=(0,n.Gp)((function(e,r){const{as:t,...n}=e;return a.createElement(S,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...n})}));i.Ts&&(L.displayName="UnorderedList");var $=(0,n.Gp)((function(e,r){const t=G();return a.createElement(n.m$.li,{ref:r,...e,__css:t.item})}));i.Ts&&($.displayName="ListItem");var W=(0,n.Gp)((function(e,r){const t=G();return a.createElement(c,{ref:r,role:"presentation",...e,__css:t.icon})}));i.Ts&&(W.displayName="ListIcon");var B=(0,n.Gp)((function(e,r){const{columns:t,spacingX:s,spacingY:o,spacing:c,minChildWidth:l,...m}=e,d=(0,n.Fg)(),p=l?function(e,r){return(0,i.XQ)(e,(e=>{const t=(0,n.LP)("sizes",e,(a=e,(0,i.hj)(a)?"".concat(a,"px"):a))(r);var a;return(0,i.Ft)(e)?null:"repeat(auto-fit, minmax(".concat(t,", 1fr))")}))}(l,d):(u=t,(0,i.XQ)(u,(e=>(0,i.Ft)(e)?null:"repeat(".concat(e,", minmax(0, 1fr))"))));var u;return a.createElement(_,{ref:r,gap:c,columnGap:s,rowGap:o,templateColumns:p,...m})}));i.Ts&&(B.displayName="SimpleGrid");var j=(0,n.m$)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});i.Ts&&(j.displayName="Spacer");var I="& > *:not(style) ~ *:not(style)";var z=e=>a.createElement(n.m$.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}}),R=(0,n.Gp)(((e,r)=>{const{isInline:t,direction:s,align:o,justify:c,spacing:m="0.5rem",wrap:d,children:p,divider:u,className:f,shouldWrapChildren:g,...h}=e,y=t?"row":null!==s&&void 0!==s?s:"column",v=(0,a.useMemo)((()=>function(e){const{spacing:r,direction:t}=e,a={column:{marginTop:r,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:r},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:r,marginStart:0},"row-reverse":{marginTop:0,marginEnd:r,marginBottom:0,marginStart:0}};return{flexDirection:t,[I]:(0,i.XQ)(t,(e=>a[e]))}}({direction:y,spacing:m})),[y,m]),x=(0,a.useMemo)((()=>function(e){const{spacing:r,direction:t}=e,a={column:{my:r,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:r,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:r,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:r,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,i.XQ)(t,(e=>a[e]))}}({spacing:m,direction:y})),[m,y]),k=!!u,_=!g&&!k,b=(0,l.WR)(p),N=_?b:b.map(((e,r)=>{const t="undefined"!==typeof e.key?e.key:r,n=r+1===b.length,i=g?a.createElement(z,{key:t},e):e;if(!k)return i;const s=(0,a.cloneElement)(u,{__css:x}),o=n?null:s;return a.createElement(a.Fragment,{key:t},i,o)})),w=(0,i.cx)("chakra-stack",f);return a.createElement(n.m$.div,{ref:r,display:"flex",alignItems:o,justifyContent:c,flexDirection:v.flexDirection,flexWrap:d,className:w,__css:k?{}:{[I]:v[I]},...h},N)}));i.Ts&&(R.displayName="Stack");var F=(0,n.Gp)(((e,r)=>a.createElement(R,{align:"center",...e,direction:"row",ref:r})));i.Ts&&(F.displayName="HStack");var X=(0,n.Gp)(((e,r)=>a.createElement(R,{align:"center",...e,direction:"column",ref:r})));i.Ts&&(X.displayName="VStack");var q=(0,n.Gp)((function(e,r){const t=(0,n.mq)("Text",e),{className:o,align:c,decoration:l,casing:m,...d}=(0,s.Lr)(e),p=(0,i.YU)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return a.createElement(n.m$.p,{ref:r,className:(0,i.cx)("chakra-text",e.className),...p,...d,__css:t})}));function A(e){return"number"===typeof e?"".concat(e,"px"):e}i.Ts&&(q.displayName="Text");var M=(0,n.Gp)((function(e,r){const{spacing:t="0.5rem",spacingX:o,spacingY:c,children:l,justify:m,direction:d,align:p,className:u,shouldWrapChildren:f,...g}=e,h=(0,a.useMemo)((()=>{const{spacingX:e=t,spacingY:r=t}={spacingX:o,spacingY:c};return{"--chakra-wrap-x-spacing":r=>(0,i.XQ)(e,(e=>A((0,s.fr)("space",e)(r)))),"--chakra-wrap-y-spacing":e=>(0,i.XQ)(r,(r=>A((0,s.fr)("space",r)(e)))),"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:m,alignItems:p,flexDirection:d,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}}),[t,o,c,m,p,d]),y=f?a.Children.map(l,((e,r)=>a.createElement(O,{key:r},e))):l;return a.createElement(n.m$.div,{ref:r,className:(0,i.cx)("chakra-wrap",u),overflow:"hidden",...g},a.createElement(n.m$.ul,{className:"chakra-wrap__list",__css:h},y))}));i.Ts&&(M.displayName="Wrap");var O=(0,n.Gp)((function(e,r){const{className:t,...s}=e;return a.createElement(n.m$.li,{ref:r,__css:{display:"flex",alignItems:"flex-start"},className:(0,i.cx)("chakra-wrap__listitem",t),...s})}));i.Ts&&(O.displayName="WrapItem")},168:function(e,r,t){function a(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}t.d(r,{Z:function(){return a}})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[580],{3580:function(t,e,n){n.r(e),n.d(e,{default:function(){return h}});var r=n(7313),o=n(8866),i=n(7753),s=(n(9111),n(123),n(9778),n(9854)),a=n(868),d=n(6417);var l=function(t){var e;const[n]=(0,i.j1)("whatmorePrimaryFont"),[o]=(0,i.j1)("whatmorePrimaryColor"),[l]=(0,i.j1)("whatmoreSecondaryColor"),[p]=(0,i.j1)("whatmoreShopId"),[c,h]=(0,r.useState)(!1),u=t.storyId,f=(0,a.V)(t.imageUrl),x=t.title,m=t.onClick,w=t.template,g=(0,s.f6)(p),v="template-stories-a"===w?"50%":"30%",y=Math.floor(t.tileSize),j=.12*y*(0,s.LM)(p),b=null!==(e=(0,s.u2)(p))&&void 0!==e?e:[l,g,l,g,l];return(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:y+"px",marginLeft:"10px",marginRight:"10px",marginTop:"10px",marginBottom:"10px",cursor:"pointer"},onClick:()=>{h(!0),m(u)},className:[c?"whatmore-scale-on-tap":""].join(" "),children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:v,boxShadow:"0px 2px 1px 0px "+b[0]+"50, 0px -2px 1px 0px "+b[1]+"50, 2px 0px 1px 0px "+b[2]+"50, -2px 0px 1px 0px "+b[3]+"80, 2px -2px 1px 0px "+b[4]+"80, -2px 2px 1px 0px "+b[0]+"DA, 2px 2px 1px 0px "+b[1]+"DA, -2px -2px 1px 0px "+b[2]+"DA"},children:(0,d.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:y+"px",width:y+"px",borderRadius:v,border:"3px solid white",backgroundColor:"gray",overflow:"hidden"},children:(0,d.jsx)("img",{src:f,style:{objectFit:"cover",height:y+"px",width:y+"px",backgroundColor:"white"},alt:"story image"})})}),(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"100%",marginTop:"10px"},children:(0,d.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-size",j+"px","important")},style:{textAlign:"center",color:(0,s.WS)(p),fontFamily:n,fontWeight:"normal",lineHeight:"110%",margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis"},children:x.substring(0,24)})})]})},p=n(9302);const c=(0,n(2575).Z)({key:"whatmore-stories-css"});var h=function(t){const[e,n,r]=(0,o.Z)(),[a]=(0,i.j1)("whatmoreLandscapePadding"),[h]=(0,i.j1)("whatmoreStoryTileSize"),[u]=(0,i.j1)("whatmoreStoryTileSizeDesktop"),[f]=(0,i.j1)("whatmoreShopId");var x=t.eventsStories;const m=t.onClick,w=t.template,g="landscape"===e?n*(u/100)*.3:r*(h/100)*.5;return(0,d.jsx)(p.C,{value:c,children:(0,d.jsx)("div",{style:{left:a+"px",right:a+"px",marginBottom:"portrait"==e?(0,s.cj)(f):(0,s.TM)(f)},children:"landscape"==e&&!(0,s.DF)(f)||"portrait"==e&&!(0,s.J)(f)?(0,d.jsx)(d.Fragment,{}):(0,d.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"landscape"===e?"center":"flex-start",height:"fit-content",width:"100%"},className:"whatmore-story-horizontal-flex",children:x.map(((t,e)=>(0,d.jsx)(l,{storyId:t.id,tileSize:g,onClick:t=>{m(e)},template:w,imageUrl:t.thumbnail_image,title:t.title},"whatmore-story-"+t.id)))})})})}},868:function(t,e,n){n.d(e,{V:function(){return a}});var r=n(9854),o=n(7753);const i={"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"},s={"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"},a=function(t){const e=(0,o.MO)("whatmoreShopId");if(t.startsWith("https://cdn.shopify.com"))return t;if("AWSCDN"==(0,r.zp)(e))return t;if("AZURECDN"==(0,r.zp)(e)){if(t.includes(".azureedge.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(i))if(t.includes(e))return t.replace(e,i[e]);return t}}if("BUNNYCDN"==(0,r.zp)(e)){if(t.includes(".b-cdn.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(s))if(t.includes(e))return t.replace(e,s[e]);return t}}return t}},8866:function(t,e,n){var r=n(7313);function o(){return[window.innerHeight,window.innerWidth]}e.Z=function(t){var[e,n]=o();const[i,s]=(0,r.useState)(["portrait",e,n]);return(0,r.useLayoutEffect)((()=>{function t(){var[t,e]=o();s(t>e?["portrait",t,e]:["landscape",t,e])}return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),screen.orientation&&screen.orientation.addEventListener("change",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t),screen.orientation&&screen.orientation.removeEventListener("change",t)}}),[]),i}},9111:function(){},123:function(){},9778:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[602],{9262:function(n,t,e){e(7313),e(9821),e(2634),e(6417)},8091:function(n,t,e){e.r(t),e.d(t,{default:function(){return y}});var i=e(7313),o=e(8675),r=(e(9262),e(4664)),a=e(7616),l=(e(6143),e(7244),e(123),e(9302)),s=e(2575),d=e(3271),c=e(8866),h=e(7753),u=e(7129),f=e(9854),x=e(6966),m=e(9821),g=e(3933),p=e(6417);function j(n){const{ref:t,inView:e,entry:i}=(0,g.YD)({triggerOnce:!1});return(0,p.jsx)(d.Kq,{direction:"row",height:"fit-content",width:"100%",justifyContent:"center",alignItems:"center",children:n.data.map(((i,o)=>(0,p.jsx)("div",{ref:t,children:e?n.renderElement({eventData:i}):(0,p.jsx)("div",{height:n.defaultHeight,width:n.defaultWidth})},"key"+o)))})}function v(n){var t;const[e,i,o]=(0,m.Z)(),r=null!==(t=n.elementsPerRow)&&void 0!==t?t:Math.floor(Math.min(o,n.dataList.length)),a=function(n,t){var e=[];const i=t;for(let o=0;o<n.length;o+=i){const t=n.slice(o,o+i);e.push(t)}return e}(n.dataList,r);return(0,p.jsx)(d.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-start",alignItems:"center",children:a.map(((t,o)=>(0,p.jsx)(j,{renderElement:n.renderElement,data:t,defaultHeight:e,defaultWidth:i},"key-"+o)))})}var w=e(7300),b=e(7148);const C=(0,s.Z)({key:"whatmore-css-hv"});var y=function(n){var t;const[e,s,g]=(0,c.Z)(),[j,y,R]=(0,m.Z)(),[k]=(0,h.j1)("whatmoreShopId"),[Z]=(0,h.j1)("whatmorePrimaryColor"),[F]=(0,h.j1)("whatmoreSecondaryColor"),[S]=(0,h.j1)("whatmoreTitleFont"),[M]=(0,h.j1)("whatmoreTitleFontSize"),{whatmoreRootId:O}=(0,i.useContext)(x.I),L=n.events,W=n.onClick,z=null!==(t=(0,f.aR)(k))&&void 0!==t?t:S;function q(n){W(n)}const B=parseInt(Math.floor(R));return delete a.ZP.styles.global,(0,p.jsx)(l.C,{value:C,children:(0,p.jsx)("div",{children:(0,p.jsx)(r.x,{theme:a.ZP,cssVarsRoot:O,resetCSS:!1,children:(0,p.jsxs)(u.V.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[n.heading.trim().length>0?(0,p.jsx)(d.M5,{children:(0,p.jsx)(d.xv,{bgColor:Z,bgClip:"text",fontSize:M,sx:{fontFamily:z+" !important"},align:"center",children:n.heading})}):(0,p.jsx)(p.Fragment,{}),"landscape"===e?(0,p.jsx)(v,{renderElement:n=>{const t=n.eventData;return(0,p.jsx)("div",{style:{margin:"10px"},children:(0,w.B6)(t)||(0,w.WJ)(t)?(0,p.jsx)(b.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{q(t)}}):(0,p.jsx)(o.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{q(t)}})})},dataList:L,elementsPerRow:B}):(0,p.jsx)(v,{renderElement:n=>{const t=n.eventData;return(0,p.jsx)("div",{style:{margin:"10px"},children:(0,p.jsx)(b.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{q(t)}})})},dataList:L,elementsPerRow:B})]})})})})}},8675:function(n,t,e){e.d(t,{Z:function(){return w}});var i,o,r=e(3271),a=e(5098),l=e(7313),s=e(9821),d=e(2634),c=e(5180),h=e(168),u=e(686);const f=(0,u.F4)(i||(i=(0,h.Z)(["\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(1.05);\n }\n"]))),x=(0,u.F4)(o||(o=(0,h.Z)(["\n 0% {\n transform: scale(1.05);\n }\n 100% {\n transform: scale(1);\n }\n"]))),m="\n ".concat(f,"; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n"),g="\n ".concat(x,"; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n");var p=e(7753),j=e(7129),v=e(6417);var w=function(n){var t,e,[i,o]=(0,s.Z)();const[h]=(0,p.j1)("whatmorePrimaryFont");var u=(0,l.useContext)(j.V);const f=n.event,x=n.onClick,w=null===(t=n.isOnFocus)||void 0===t||t,b=(n.playOnUnfocus,null!==(e=n.animateOnFocus)&&void 0!==e&&e);return(0,v.jsxs)(r.xu,{animation:b?w?m:g:"none",marginTop:u.tileTopMargin,marginBottom:u.tileBottomMMargin,marginLeft:u.tileLeftMargin,marginRight:u.tileRightMargin,width:o,height:i,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{x(f)},cursor:"pointer",children:[(0,v.jsx)(a.Ee,{width:"full",height:"full",src:f.thumbnail_image,objectFit:"cover",fallback:(0,v.jsx)(c.Z,{width:o,height:i}),borderRadius:"lg"}),(0,v.jsx)(r.xu,{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden"},width:"full",height:"full",borderRadius:"lg",overflow:"hidden",className:"whatmore-ios-css-relative-fix",children:(0,v.jsxs)(r.Kq,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,v.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,v.jsx)(r.Kq,{direction:"column",justifyContent:"flex-start",children:(0,v.jsx)(r.xu,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,v.jsx)(r.Kq,{direction:"row",justifyContent:"space-between",children:(0,v.jsx)(d.Z,{event:f,fontSize:.05*i+"px",maxWidth:.8*o})})})})}),(0,v.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,v.jsx)(r.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,v.jsx)(r.xu,{width:"full",borderRadius:"lg",children:(0,v.jsxs)(r.Kq,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,v.jsx)(r.xv,{color:"white",fontSize:.08*o+"px",fontWeight:"normal",align:"left",children:" "}),(0,v.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"normal",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:f.title.substring(0,40)}),(0,v.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"bold",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:f.presenter_name.substring(0,15)})]})})})})]})})]})}},2634:function(n,t,e){var i=e(3271),o=e(4897),r=e(499),a=e(6417);t.Z=function(n){var t,e=n.event,l=n.fontSize,s=null!==(t=n.maxWidth)&&void 0!==t?t:"100%",{status:d,bannerText:c,timeToStartInMins:h}=o.Z.getEventStatus(e);return d.name===r.Z.LIVE.name?(0,a.jsx)(i.xu,{maxWidth:s,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:d.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,a.jsx)(i.xv,{fontSize:l,fontWeight:"bold",color:"white",children:c})})}):(0,a.jsx)(i.xu,{maxWidth:s,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:d.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,a.jsx)(i.xv,{fontSize:l,fontWeight:"medium",children:c})})})}},5180:function(n,t,e){var i=e(3271),o=e(208),r=e(6417);t.Z=function(n){var t,e,a;const l=null!==(t=n.height)&&void 0!==t?t:"100%",s=null!==(e=n.width)&&void 0!==e?e:"100%",d=null!==(a=n.borderRadius)&&void 0!==a?a:"lg";return(0,r.jsx)(i.xu,{borderRadius:d,overflow:"hidden",children:(0,r.jsx)(o.Od,{height:l,width:s,speed:.5,startColor:"gray.400",endColor:"white"})})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[642],{51:function(e,t,n){n.d(t,{Z:function(){return i}});n(7313);var r=n(6417);var i=function(e){return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("span",{className:"whatmore-loading-indicator"})})}},7129:function(e,t,n){n.d(t,{V:function(){return r}});const r=(0,n(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},3175:function(e,t,n){var r=n(208),i=n(51),o=n(6417);t.Z=function(e){var t,n;const a=null!==(t=e.height)&&void 0!==t?t:"100%",s=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,o.jsxs)("div",{style:{width:s,height:a,overflow:"hidden"},children:[(0,o.jsx)(r.Od,{height:"100%",width:"100%",speed:0,startColor:"#202020",endColor:"#606060"}),(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)(i.Z,{})})})]})}},2887:function(e,t,n){var r=n(7313),i=(n(6422),n(3175)),o=n(6417);t.Z=function(e){var t,n,a;const[s,d]=(0,r.useState)(!1),l=r.useRef(0),u=(0,r.useRef)(null),h=null!==(t=e.timeUpdateCallback)&&void 0!==t?t:()=>{},c=null!==(n=e.height)&&void 0!==n?n:"100%",p=null!==(a=e.width)&&void 0!==a?a:"100%";return(0,r.useEffect)((()=>{l.current=0;const e=setInterval((()=>{l.current=l.current+.03,u.current&&h(l.current,5),l.current>=5&&(l.current=0)}),30);return()=>{clearInterval(e)}}),[e.isPlaying]),(0,o.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:p,height:c,overflow:"hidden"},children:[(0,o.jsx)("div",{style:{width:s?"100%":"0px",height:s?"100%":"0px"},children:(0,o.jsx)("img",{ref:u,src:e.url,style:{objectFit:"cover",height:c,width:p,backgroundColor:"white"},alt:"image player",onLoad:()=>{d(!0)}})}),s?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(i.Z,{width:"100%",height:"100%"})]})}},4892:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(7313),i=n(3933),o=n(868),a=n(8984),s=n(7300),d=(n(6422),n(2887)),l=n(6417);var u=function(e){var t,n;const o=(0,r.useRef)(null),[a,s,d]=(0,i.YD)({triggerOnce:!0}),u=null!==(t=e.height)&&void 0!==t?t:"100%",h=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,r.useEffect)((()=>{o.current&&(e.isPlaying?o.current.play():o.current.pause())}),[e.isPlaying,s]),(0,l.jsx)("div",{ref:a,style:{width:u,height:h,overflow:"hidden"},children:s?(0,l.jsx)("video",{ref:o,className:"whatmore-video-player",width:h,height:u,preload:"auto",loop:!0,playsInline:!0,muted:!0,autoPlay:!0,src:e.url,style:{backgroundColor:"white"}}):(0,l.jsx)("div",{width:h,height:u,ref:e=>{e&&e.style.setProperty("display","block","important")}})})};var h=function(e){var t,n,h;const[c,p,f]=(0,i.YD)({triggerOnce:!0});if((0,s.WJ)(e.event))return(0,l.jsx)(d.Z,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback});const x=null!==(t=e.pauseFromPlayTimeInMs)&&void 0!==t?t:200;if((0,a.KE)())return(0,l.jsx)(u,{height:"100%",width:"100%",url:(0,o.V)(e.url),isPlaying:e.isPlaying,pauseFromPlayTimeInMs:x});const w=(0,r.useRef)(null),v=null!==(n=e.height)&&void 0!==n?n:"100%",m=null!==(h=e.width)&&void 0!==h?h:"100%";return(0,r.useEffect)((()=>{w.current&&(e.isPlaying?w.current.play():w.current.pause())}),[e.isPlaying,p]),(0,l.jsx)("div",{ref:c,style:{width:v,height:m,overflow:"hidden"},children:p?(0,l.jsx)("video",{ref:w,className:"whatmore-video-player",width:m,height:v,preload:"auto",loop:!0,playsInline:!0,muted:!0,src:(0,o.V)(e.url),style:{backgroundColor:"white"}}):(0,l.jsx)("div",{width:m,height:v,ref:e=>{e&&e.style.setProperty("display","block","important")}})})}},8631:function(e,t,n){var r=n(7313),i=n(9854),o=n(7753),a=(n(9111),n(123),n(9778),n(4892)),s=n(7129),d=n(9821),l=n(6417);t.Z=function(e){var t;const[n,u,h,c,p]=(0,d.Z)(),[f]=(0,o.j1)("whatmorePrimaryFont"),[x]=(0,o.j1)("whatmorePrimaryColor"),[w]=(0,o.j1)("whatmoreSecondaryColor"),[v]=(0,o.j1)("whatmoreShopId"),[m]=(0,o.j1)("whatmoreCollectionsTileSize"),[g,y]=(0,r.useState)(!1),j=(0,i.f6)(v);(0,r.useContext)(s.V);const b=e.event,C=e.onClick,k=e.removeBorders,P=n*m*.01,E=u*m*.01,S=null!==(t=e.borderRadius)&&void 0!==t?t:"0%";return(0,l.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:E+"px",margin:k?"0px":"5px",cursor:"pointer"},onClick:()=>{y(!0),C(b)},className:[g?"whatmore-scale-on-tap":""].join(" "),children:(0,l.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:S,overflow:"hidden",boxShadow:k?"":"0px 1px 1px 0px "+w+"50, 0px -1px 1px 0px "+j+"50, 1px 0px 1px 0px "+w+"50, -1px 0px 1px 0px "+j+"80, 1px -1px 1px 0px "+w+"80, -1px 1px 1px 0px "+j+"DA, 1px 1px 1px 0px "+w+"DA, -1px -1px 1px 0px "+j+"DA"},children:(0,l.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:P+"px",width:E+"px",borderRadius:S,border:"2px solid white",backgroundColor:"gray",overflow:"hidden"},children:(0,l.jsx)(a.Z,{height:"100%",width:"100%",url:b.thumbnail_image,isPlaying:!0,event:b})})})})}},6066:function(e,t,n){var r=n(7313),i=n(9854),o=n(7753),a=(n(9111),n(123),n(9778),n(4892)),s=n(7129),d=n(9821),l=n(6417);t.Z=function(e){var t;const[n,u,h,c,p]=(0,d.Z)(),[f]=(0,o.j1)("whatmorePrimaryFont"),[x]=(0,o.j1)("whatmorePrimaryColor"),[w]=(0,o.j1)("whatmoreSecondaryColor"),[v]=(0,o.j1)("whatmoreShopId"),[m]=(0,o.j1)("whatmoreCollectionsTileSize"),[g,y]=(0,r.useState)(!1),j=(0,i.f6)(v);(0,r.useContext)(s.V);const b=e.event1,C=e.event2,k=e.onClick,P=.01*m,E=n*P,S=n*P*.5,z=u*P,R=null!==(t=e.borderRadius)&&void 0!==t?t:"10%",Z="15%",A=e.removeBorders;return(0,l.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",flexShrink:0,height:E+"px",width:z+"px",margin:A?"0px":"5px",cursor:"pointer"},children:(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:A?"0px":R,boxShadow:A?"":"0px 1px 1px 0px "+w+"50, 0px -1px 1px 0px "+j+"50, 1px 0px 1px 0px "+w+"50, -1px 0px 1px 0px "+j+"80, 1px -1px 1px 0px "+w+"80, -1px 1px 1px 0px "+j+"DA, 1px 1px 1px 0px "+w+"DA, -1px -1px 1px 0px "+j+"DA"},onClick:()=>{y(!0),k(b)},className:[g?"whatmore-scale-on-tap":""].join(" "),children:[(0,l.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:S+"px",width:z+"px",borderTopLeftRadius:A?"0px":Z,borderTopRightRadius:A?"0px":Z,border:"2px solid white",backgroundColor:"gray",overflow:"hidden"},children:(0,l.jsx)(a.Z,{height:"100%",width:"100%",url:b.thumbnail_image,isPlaying:!0,event:b})}),(0,l.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:S+"px",width:z+"px",borderBottomLeftRadius:A?"0px":Z,borderBottomRightRadius:A?"0px":Z,border:"2px solid white",backgroundColor:"gray",overflow:"hidden"},children:(0,l.jsx)(a.Z,{height:"100%",width:"100%",url:C.thumbnail_image,isPlaying:!0,event:C})})]})})}},8782:function(e,t,n){n.d(t,{P:function(){return s}});var r=n(3933),i=n(8866),o=(n(123),n(6417));function a(e){const{ref:t,inView:n,entry:i}=(0,r.YD)({triggerOnce:e.retainAlreadyRenderedElements});return(0,o.jsx)("div",{ref:t,children:n?e.renderElement({eventData:e.data}):(0,o.jsx)("div",{style:{minWidth:e.defaultHeight,minHeight:e.defaultWidth}})})}function s(e){var t;const[n,r,s]=(0,i.Z)();return(0,o.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"landscape"===n?"center":"flex-start",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:"0.5%"},className:"whatmore-carousel-horizontal-flex",children:e.dataList.map(((t,n)=>(0,o.jsx)(a,{renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+n)))})}},868:function(e,t,n){n.d(t,{V:function(){return s}});var r=n(9854),i=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"},a={"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"},s=function(e){const t=(0,i.MO)("whatmoreShopId");if(e.startsWith("https://cdn.shopify.com"))return e;if("AWSCDN"==(0,r.zp)(t))return e;if("AZURECDN"==(0,r.zp)(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,r.zp)(t)){if(e.includes(".b-cdn.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(a))if(e.includes(t))return e.replace(t,a[t]);return e}}return e}},6805:function(e,t,n){n.d(t,{$I:function(){return s},$w:function(){return l},AK:function(){return o},AL:function(){return a},YP:function(){return i},me:function(){return r},rE:function(){return d}});const r="device_type",i="device_mode",o="mobile",a="tablet",s="desktop",d="portrait",l="landscape"},6422:function(e,t,n){var r=n(7313),i=n(7753);t.Z=function(e){const[t,n]=(0,i.j1)("muted");return(0,r.useEffect)((()=>{}),[]),[t,n]}},8866:function(e,t,n){var r=n(7313);function i(){return[window.innerHeight,window.innerWidth]}t.Z=function(e){var[t,n]=i();const[o,a]=(0,r.useState)(["portrait",t,n]);return(0,r.useLayoutEffect)((()=>{function e(){var[e,t]=i();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)}}),[]),o}},9821:function(e,t,n){var r=n(6367),i=n(7753),o=n(8866),a=n(6805);t.Z=function(e){const[t,n,s]=(0,o.Z)(),[d]=(0,i.j1)("whatmoreLandscapePadding"),[l]=(0,i.j1)("whatmoreVideoTileSize"),u=(0,r.useMediaQuery)({query:"(min-width: 1025px)"}),h=(0,r.useMediaQuery)({query:"(min-width: 481px)"}),c=!("portrait"!=t||!h),p=l/100*1.3*.5,f=l/100;var x=Math.min(s,n),[w,v,m,g]=[.6*x*(16/9),.6*x,1.4,0];function y(e){return Math.round(10*e)/10}var j={DEVICE_TYPE:a.AK,DEVICE_MODE:a.rE};if(u){const e=v*p,t=w*p;[w,v,m,g]=[t,e,(s-2*d)/(1.1*e),d],j[a.me]=a.$I,j[a.YP]=a.$w}else if(c){var b=.8*v,C=.8*w;"portrait"==t?(b*=f,C*=f,[w,v,m,g]=[C,b,y(s/(1.2*b)),0],j[a.me]=a.AL,j[a.YP]=a.rE):([w,v,m,g]=[C,b,(s-2*d)/(1.1*b),d],j[a.me]=a.AL,j[a.YP]=a.$w)}else{b=v,C=w;"portrait"==t?(b*=f,C*=f,[w,v,m,g]=[C,b,y(s/(1.2*b)),0],j[a.me]=a.AK,j[a.YP]=a.rE):(b=.7*v,C=.7*w,[w,v,m,g]=[C,b,(s-2*d)/(1.1*b),d],j[a.me]=a.AK,j[a.YP]=a.$w)}return[w,v,m,g,j]}},9111:function(){},123:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},6143:function(){},7850:function(){},9778:function(){}}]);
|