whatmore-react-assets 1.0.339 → 1.0.341
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 282.03412783.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[282],{3867:function(t,o,i){"use strict";var n=i(8816),r=i(417),e=i(4885),a=i(7753),c=i(6417);o.Z=function(t){var o;const[i]=(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),_=(t.productLink,t.fontSize),f=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)(n.Z,{sx:{color:i,fontSize:_+"px"}},"star-icon"+o))),m-Math.floor(m)>.2?(0,c.jsx)(r.Z,{sx:{color:i,fontSize:_+"px"}},"star-half-icon"):m-Math.floor(m)==0?(0,c.jsx)(c.Fragment,{}):(0,c.jsx)(e.Z,{sx:{color:i,fontSize:_+"px"}},"star-outline-icon"),[...Array(Math.floor(5-m))].map(((t,o)=>(0,c.jsx)(e.Z,{sx:{color:i,fontSize:_+"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:i,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*_+"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",f,"important"),t.style.setProperty("font-size",.8*_+"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,i){"use strict";i.d(o,{p_:function(){return l},Rb:function(){return _},jx:function(){return d}});var n=i(6233),r=i(6040),e=i.n(r),a=i(9854);function c(t,o){var i;return null!==(i=(0,a.Qx)(o)[t])&&void 0!==i?i: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]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"INR";if(!t||void 0==typeof t)return"";if(!s())return"70993772860"==i||"72534294803"==i?"$"+o+u(p(t)):c(null!==n&&void 0!==n?n:"INR",i)+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,i)+o+u(p(t*e))}async function l(t,o,i){for(let c=0;c<t.products.length;c++){var r,e,a;const s=await(0,n.vX)(t.products[c],o,i);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 _(t,o,i){var r,e,a;const c=await(0,n.vX)(t,o,i);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,i){"use strict";function n(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()}))}i.d(o,{s:function(){return n}})},5456:function(t,o,i){"use strict";i.d(o,{B:function(){return n}});const n=function(t,o){return!(isNaN(o)||!o||("string"===typeof o||o instanceof String)&&!o.trim().length)&&!(parseInt(o)<=parseInt(t))}},6233:function(t,o,i){"use strict";i.d(o,{jg:function(){return _t},TE:function(){return mt},rY:function(){return ft},OM:function(){return ht},vX:function(){return vt},Y4:function(){return dt},ln:function(){return lt}});var n=i(9854);function r(t){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var n in i)t[n]=i[n]}return t}var e=function t(o,i){function n(t,n,e){if("undefined"!==typeof document){"number"===typeof(e=r({},i,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(n,t)+a}}return Object.create({set:n,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var i=document.cookie?document.cookie.split("; "):[],n={},r=0;r<i.length;r++){var e=i[r].split("="),a=e.slice(1).join("=");try{var c=decodeURIComponent(e[0]);if(n[c]=o.read(a,c),t===c)break}catch(s){}}return t?n[t]:n}},remove:function(t,o){n(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(i)},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={STRCGMYX28X:"https://"+window.location.hostname,STRBG6F06XL:"https://"+window.location.hostname,STR1QF8R1DW:"https://"+window.location.hostname},s={STRCGMYX28X:3,STRBG6F06XL:117,STR1QF8R1DW:119},u={STRCGMYX28X:"nw3koAz7Hto68rxqiSDrqnMjztjbHNx7ykL9wjgfjC7Ur1mlKvQXx5bpmKYmXstGbtDrOZLN4Z7N0s1MAbWMGNKJsgAlQlUhGnqX1YxbGk3TRoylHggI6Ff050u596yR",STRBG6F06XL:"lm1W2C/SI57r29COyX9BEab=37i0J6/R7?baVkFmDje1J/bo8vHG8XYlCk!0LMR1",STR1QF8R1DW:"06e026ab-a7a8-42d2-9876-33828cbd681a"},p="ansxwhatmore-access-token";function d(t){return t.product_metadata.sku_id}function l(t){return s[t]}function _(t){return c[t]}async function f(t,o){const i=_(o);return function(t){const o=t.data.product_data;"options"in o&&0!=o.options.length||(o.options=[{product_option_id:"invalid",product_option_value:[{product_option_value_id:"invalid",option_value_id:"46",name:"invalid",image:"",quantity:"1",subtract:"1",price:"0.0000",price_prefix:"+",special_price:"0.0000",special_price_prefix:"+",weight:"0.00000000",weight_prefix:"+",sku:"8903568188345"}],option_id:"1",name:"invalid",type:"radio",value:"",required:"1"}]);const i=o.options[0].product_option_id;var n=Object.entries(o.options[0].product_option_value).map((t=>{const n=t[1];return{id:o.product_id+"::"+i+"::"+n.product_option_value_id,product_id:o.product_id,title:"",price:100*o.price,compare_at_price:100*o.mrp,available:parseInt(n.quantity)>0,option1:n.name,option2:null,option3:null,options:[n.name]}}));const r=(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:r}}(await fetch(i+"/getProductDetails",{method:"POST",body:JSON.stringify({merchant_store_id:l(o),sku:d(t)}),headers:{[p]:u[o]}}).then((t=>t.json())).catch((t=>console.error(t))))}async function m(t,o,i){_(i);const n=t.split("::"),r=n[0],e=n[1],a=n[2];return whatmoreatc(r,o,e,a),await new Promise((t=>setTimeout(t,1500))),"whatmoreatc_success"in localStorage&&"true"==localStorage.getItem("whatmoreatc_success")?{ok:!0,status:200,json:function(){return{}}}:{ok:!1,status:500,json:function(){return{}}}}const h={STRR72TX6AT:"https://www.cbazaar.com"};function v(t){return t.product_metadata.sku_id}function w(t){return h[t]}async function y(t,o){function i(t){const o=t.data.product_data[0];var i=[{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 n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{id:o.product_id,title:o.product_title,body_html:"",variants:i,options:n}}const n=w(o);return i(await fetch(n+"/productsv3api/getproductdetails/"+v(t),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t))))}const S={STRRPY8YRZE:"https://idaho-o.com"},b=(window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),"Y2tfZTI1OWVmNWVlNzg5MzIzYzIzOWU3ZDE0NjQwNmUwZmZkZGY4NDQ5Yzpjc19iYzdkZjI0MGEwYTgzNDhlZjNhMTI4ZTA3MDRkMmMwNmU5ZGM4NTM5");function T(t){return t.product_metadata.sku_id}function g(t){return S[t]}async function R(t,o){const i=g(o);return function(t){const o=t;var i=Object.entries(o.attributes[0].options).map(((t,i)=>{var n;return{id:(null!==(n=o.variations[i])&&void 0!==n?n: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 n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{id:o.product_id,title:o.product_title,body_html:o.description,variants:i,options:n}}(await fetch(i+"/wp-json/wc/v3/products/"+T(t),{method:"GET",headers:{Authorization:"Basic "+b}}).then((t=>t.json())).catch((t=>console.error(t))))}async function j(t,o,i){const n=t.split(":"),r=n[0],e=n[1],a=n[2],c=g(i)+"/wp-admin/admin-ajax.php",s={Authorization:"Basic "+b},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 k;const x={STRMM0QP0CU:"https://"+window.location.hostname},D=null!==(k=a.get("form_key"))&&void 0!==k?k:"undefined",N=(window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),"ds243corrt3qkd1rhoeyfes3ztefxjae");function P(t){return t.product_metadata.sku_id}function M(t){return x[t]}async function C(t,o){var i=await async function(t){const o=M(t);return(await fetch(o+"/rest/V1/products/attributes/ready_to_wear_sizes",{method:"GET",headers:{Authorization:"Bearer "+N}}).then((t=>t.json())).catch((t=>console.error(t)))).options.reduce(((t,o,i)=>(o.value&&o.label&&(t[o.value]=o.label),t)),{})}(o),n=[];return t.split(",").forEach((t=>{t in i&&n.push(t+":"+i[t])})),n}async function O(t){var o=[];return t.options.forEach((t=>{t.values.forEach((i=>{"Ready to wear"==i.title&&o.push(t.option_id+":"+i.option_type_id)}))})),o.length>0?o[0]:void 0}async function U(t,o){async function i(t){const i=t,n=i.extension_attributes.is_ready_to_ware,r=i.custom_attributes.reduce(((t,o,i)=>(t[o.attribute_code]=o.value,t)),{});async function e(){var t;return{id:i.id,title:i.name,body_html:r.description,variants:[{id:"single_option::"+i.id,product_id:i.id,title:"",price:100*(null!==(t=r.special_price)&&void 0!==t?t:i.price),compare_at_price:100*i.price,available:!0,option1:i.extension_attributes.stock_item.item_id,option2:null,option3:null,options:[i.extension_attributes.stock_item.item_id]}],images:[{id:i.id,product_id:i.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::"+i.id]}],options:[{id:i.product_id,product_id:i.product_id,name:"Size",position:1,values:[i.extension_attributes.stock_item.item_id]}]}}if(0==n)return await e();if(!("ready_to_wear_sizes"in r))return await e();const a=await C(r.ready_to_wear_sizes,o),c=await O(t);return c?await async function(t,o){const n=t.map(((t,n)=>{var e;const a=i.extension_attributes.stock_item.item_id,c=t.split(":")[0],s=t.split(":")[1];return{id:"multi_option::"+i.id+":"+a+":"+s+":"+c+":"+o,product_id:i.id,title:"",price:100*(null!==(e=r.special_price)&&void 0!==e?e:i.price),compare_at_price:100*i.price,available:!0,option1:s,option2:null,option3:null,options:null}})),e=t.map(((t,o)=>{t.split(":")[0];return t.split(":")[1]}));return{id:i.id,title:i.name,body_html:r.description,variants:n,images:[{id:i.id,product_id:i.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::"+i.id]}],options:[{id:i.product_id,product_id:i.product_id,name:"Size",position:1,values:e}]}}(a,c):await e()}const n=M(o),r=await fetch(n+"/rest/default/V1/products/"+P(t),{method:"GET",headers:{Authorization:"Bearer "+N,"User-Agent":"PostmanRuntime/7.32.3"}}).then((t=>t.json())).catch((t=>console.error(t)));return await i(r)}async function G(t,o,i){var n,r;if(t.startsWith("single_option::")){const n=t.split("::")[1],r=M(i)+"/ajaxcart",e={Authorization:"Bearer "+N},a=new FormData;a.append("product",n),a.append("item",n),a.append("qty",o),a.append("form_key",D);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!==(n=e[4])&&void 0!==n?n:void 0),u=null!==(r=e[5])&&void 0!==r?r:void 0,p=M(i)+"/ajaxcart",d={Authorization:"Bearer "+N},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",D);return await fetch(p,{method:"POST",headers:d,body:l}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const A={STRK70X2OVV:"http://dev-panash.panashindia.com",STR3PNIYEZ6:"https://www.panashindia.com"};function B(t){return t.product_metadata.sku_id}function L(t){return A[t]}async function z(t,o){function i(t){const o=t.data.product_data;var i=[{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:!0,option1:null,option2:null,option3:null,options:[]}];const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{id:o.product_id,title:o.product_title,body_html:"",variants:i,options:n}}const n=L(o);return i(await fetch(n+"/productsv3api/Productdetails/index/sku/"+B(t),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t))))}const E={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"},F={STRNV8MHJTF:1,STR6HU283UZ:1,STR9T3LLEJB:5,STRWJMIOJNX:2,STR1D5ONOZX:4,STRUDQ36YAC:3},I=window.location.hostname.substring(10,4)+"_cart",Z=window.location.hostname.substring(10,4)+"_carts",X=window.location.hostname.substring(10,4)+"_curr";function $(t){return t.product_link.match(/\/([^\/]+)\/?$/)[1].replace(".html","")}function K(t){return F[t]}function Y(t){return E[t]}function H(t){var o;return null!==(o=a.get(X))&&void 0!==o?o:"INR"}async function J(t,o){const i=Y(o);return function(t){const o=t.data.product_data[0];var i=Object.entries(o.variation).map((t=>{const o=t[1],i=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:i,option2:null,option3:null,options:[i]}}));const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{id:o.product_id,title:o.product_title,body_html:o.description,variants:i,options:n}}(await fetch(i+"/get-product?url_key="+$(t)+"&store="+K(o)+"¤cy="+H(),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t))))}async function W(t,o,i){const n=Y(i),r=a.get(I),e=a.get(Z);var c={varient_id:t,qty:o,store:K(i)};r&&e&&(c={varient_id:t,qty:o,store:K(i),cart_id:r,cart_session:e});return await fetch(n+"/add-product",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then((t=>t.json())).then((t=>(r||(a.set(I,t.data.cart_id,{expires:365}),a.set(Z,t.data.cart_session,{expires:365})),{ok:!0,status:200,json:function(){return{}}})))}const V={STRJ5VPPT3U:"https://"+window.location.hostname};function q(t){return t.product_link.match(/\/([^\/]+)\/?$/)[1].replace(".html","")}function Q(t){return V[t]}async function tt(t,o){const i=Q(o);return function(t){const o=t;null==o.variations&&(o.variations=["no-variations"]);var i=Object.entries(o.variations).map((t=>{const i=t[1];return{id:o.product_id+"::"+i,product_id:o.product_id,title:"",price:100*o.price,compare_at_price:100*o.mrp,available:!0,option1:i,option2:null,option3:null,options:[i]}}));const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{id:o.product_id,title:o.product_title,body_html:o.description,variants:i,options:n}}((await fetch(i+"/catalog/whatsmoreproducts?slug="+q(t),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t)))).product_detail)}async function ot(t,o,i){const n=Q(i),r=t.split("::"),e=r[0],a=r.length>1?r[1]:"";return await fetch(n+"/cart/addtocart?productid="+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 it="https://www.ninecolours.com";function nt(t){const o=t.product_link.split("-");return o[o.length-1]}function rt(t){return"STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t}function et(t){return"STRRPY8YRZE"==t}function at(t){return"STR5KA9X0OZ"==t||"STRR72TX6AT"==t}function ct(t){return"STRMM0QP0CU"==t}function st(t){return"STRJ5VPPT3U"==t}function ut(t){return"STRCGMYX28X"==t||"STRBG6F06XL"==t||"STR1QF8R1DW"==t}function pt(t){return"STRK70X2OVV"==t||"STR3PNIYEZ6"==t}async function dt(t,o){if(rt(o))return async function(t,o){const i=Y(o);return function(t){const o=t.data.product_data[0];var i=Object.entries(o.variation).map((t=>{const o=t[1],i=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:i,option2:null,option3:null}}));const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:o.product_id,title:o.product_title,body_html:o.description,variants:i,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:n}]}}}(await fetch(i+"/get-product?url_key="+$(t)+"&store="+K(o)+"¤cy="+H(),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if(et(o))return async function(t,o){const i=g(o);return function(t){const o=t;var i=Object.entries(o.attributes[0].options).map(((t,i)=>{var n;return{id:(null!==(n=o.variations[i])&&void 0!==n?n: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 n=i.map((t=>t.option1));return{product:{id:o.id,title:o.name,body_html:o.short_description,variants:i,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:n}]}}}(await fetch(i+"/wp-json/wc/v3/products/"+T(t),{method:"GET",headers:{Authorization:"Basic "+b}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if(at(o))return async function(t,o){function i(t){const o=t.data.product_data[0];var i=[{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 n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:o.product_id,title:o.product_title,body_html:"",variants:i,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:n}]}}}const n=w(o);return i(await fetch(n+"/productsv3api/getproductdetails/"+v(t),{method:"GET",headers:{redirect:"follow"}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if(pt(o))return async function(t,o){function i(t){const o=t.data.product_data;var i=[{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:!0,option1:null,option2:null,option3:null}];const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:o.product_id,title:o.product_title,body_html:"",variants:i,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:n}]}}}const n=L(o);return i(await fetch(n+"/productsv3api/Productdetails/index/sku/"+B(t),{method:"GET",headers:{redirect:"follow"}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if(ct(o))return async function(t,o){async function i(t){const i=t,n=i.extension_attributes.is_ready_to_ware,r=i.custom_attributes.reduce(((t,o,i)=>(t[o.attribute_code]=o.value,t)),{});async function e(){var t;return{product:{id:i.id,title:i.name,body_html:r.description,variants:[{id:"single_option::"+i.id,product_id:i.id,title:"",price:null!==(t=r.special_price)&&void 0!==t?t:i.price,compare_at_price:i.price,available:!0,option1:i.extension_attributes.stock_item.item_id,option2:null,option3:null}],images:[{id:i.id,product_id:i.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:[i.id]}],options:[{id:i.product_id,product_id:i.product_id,name:"Size",position:1,values:[i.extension_attributes.stock_item.item_id]}]}}}if(0==n)return await e();if(!("ready_to_wear_sizes"in r))return await e();const a=await C(r.ready_to_wear_sizes,o),c=await O(t);return c?await async function(t,o){const n=t.map(((t,n)=>{var e;const a=i.extension_attributes.stock_item.item_id,c=t.split(":")[0],s=t.split(":")[1];return{id:"multi_option::"+i.id+":"+a+":"+s+":"+c+":"+o,product_id:i.id,title:"",price:null!==(e=r.special_price)&&void 0!==e?e:i.price,compare_at_price:i.price,available:!0,option1:s,option2:null,option3:null,options:null}})),e=t.map(((t,o)=>(t.split(":")[0],t.split(":")[1])));return{product:{id:i.id,title:i.name,body_html:r.description,variants:n,images:[{id:i.id,product_id:i.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:[i.id]}],options:[{id:i.product_id,product_id:i.product_id,name:"Size",position:1,values:e}]}}}(a,c):await e()}const n=M(o),r=await fetch(n+"/rest/default/V1/products/"+P(t),{method:"GET",headers:{Authorization:"Bearer "+N}}).then((t=>t.json())).catch((t=>console.error(t)));return await i(r)}(t,o);if(st(o))return async function(t,o){const i=Q(o);return function(t){const o=t;null==o.variations&&(o.variations=["no-variations"]);var i=Object.entries(o.variations).map((t=>{const i=t[1];return{id:o.product_id+"::"+i,product_id:o.product_id,title:"",price:o.price,compare_at_price:o.mrp,available:!0,option1:i,option2:null,option3:null}}));const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:o.product_id,title:o.product_title,body_html:o.description,variants:i,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:n}]}}}((await fetch(i+"/catalog/whatsmoreproducts?slug="+q(t),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t)))).product_detail)}(t,o);if(ut(o))return async function(t,o){const i=_(o);return function(t){const o=t.data.product_data;"options"in o&&0!=o.options.length||(o.options=[{product_option_id:"invalid",product_option_value:[{product_option_value_id:"invalid",option_value_id:"46",name:"invalid",image:"",quantity:"1",subtract:"1",price:"0.0000",price_prefix:"+",special_price:"0.0000",special_price_prefix:"+",weight:"0.00000000",weight_prefix:"+",sku:"8903568188345"}],option_id:"1",name:"invalid",type:"radio",value:"",required:"1"}]);const i=o.options[0].product_option_id;var n=Object.entries(o.options[0].product_option_value).map((t=>{const n=t[1];return{id:o.product_id+"::"+i+"::"+n.product_option_value_id,product_id:o.product_id,title:"",price:o.price,compare_at_price:o.mrp,available:parseInt(n.quantity)>0,option1:n.name,option2:null,option3:null}}));const r=(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:r}]}}}(await fetch(i+"/getProductDetails",{method:"POST",body:JSON.stringify({merchant_store_id:l(o),sku:d(t)}),headers:{[p]:u[o]}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if("STRGA3S8N41"==o){function i(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 n=it;return i(await fetch(n+"/whatmore-productfetch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_code:nt(t)})}).then((t=>t.json())).catch((t=>console.error(t))))}return{}}async function lt(t,o){if(rt(o))return J(t,o);if(et(o))return R(t,o);if(at(o))return y(t,o);if(pt(o))return z(t,o);if(ct(o))return U(t,o);if(st(o))return tt(t,o);if(ut(o))return f(t,o);if("STRGA3S8N41"==o){function i(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 n=it;return i(await fetch(n+"/whatmore-productfetch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_code:nt(t)})}).then((t=>t.json())).catch((t=>console.error(t))))}return{}}async function _t(t,o,i){if(rt(i))return await W(t,o,i);if(et(i))return await j(t,o,i);if(ct(i))return G(t,o,i);if(st(i))return ot(t,o,i);if(ut(i))return m(t,o,i);if("STRGA3S8N41"==i){const i=it;return await fetch(i+"/whatmore-addtocart ",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_id:t,qty:o})})}return{}}async function ft(t,o,i){if(rt(i))return async function(t,o,i){await W(t,o,i);const r="https://"+window.location.hostname;var e;e=(0,n.lj)(i)?"".concat(r,"/checkout")+"?"+(0,n.aw)(i)+"&"+(0,n.n9)(i)+"&"+(0,n.Uc)(i):"".concat(r,"/checkout"),window.location.href=e}(t,o,i);if(et(i))return async function(t,o,i){await j(t,o,i);const r="https://"+window.location.hostname;var e;e=(0,n.lj)(i)?"".concat(r,"/cart")+"?"+(0,n.aw)(i)+"&"+(0,n.n9)(i)+"&"+(0,n.Uc)(i):"".concat(r,"/cart"),window.location.href=e}(t,o,i);if(ct(i))return async function(t,o,i){await G(t,o,i);const r="https://"+window.location.hostname;var e;e=(0,n.lj)(i)?"".concat(r,"/checkout/cart")+"?"+(0,n.aw)(i)+"&"+(0,n.n9)(i)+"&"+(0,n.Uc)(i):"".concat(r,"/checkout/cart"),window.location.href=e}(t,o,i);if(st(i))return async function(t,o,i){await ot(t,o,i);const r="https://"+window.location.hostname;var e;e=(0,n.lj)(i)?"".concat(r,"/checkout")+"?"+(0,n.aw)(i)+"&"+(0,n.n9)(i)+"&"+(0,n.Uc)(i):"".concat(r,"/checkout"),window.location.href=e}(t,o,i);if(ut(i))return async function(t,o,i){await m(t,o,i);const r="https://"+window.location.hostname;var e;e=(0,n.lj)(i)?"".concat(r,"/checkout")+"?"+(0,n.aw)(i)+"&"+(0,n.n9)(i)+"&"+(0,n.Uc)(i):"".concat(r,"/checkout"),window.location.href=e}(t,o,i);if("STRGA3S8N41"==i){await _t(t,o,i);const e="https://"+window.location.hostname;var r;r=(0,n.lj)(i)?"".concat(e,"/cart")+"?"+(0,n.aw)(i)+"&"+(0,n.n9)(i)+"&"+(0,n.Uc)(i):"".concat(e,"/cart"),window.location.href=r}return{}}async function mt(t){if(rt(t))return async function(t){const o="https://"+window.location.hostname;var i;i=(0,n.lj)(t)?"".concat(o,"/cart")+"?"+(0,n.aw)(t)+"&"+(0,n.n9)(t)+"&"+(0,n.Uc)(t):"".concat(o,"/cart"),window.location.href=i}(t);if(et(t))return async function(t){const o="https://"+window.location.hostname;var i;i=(0,n.lj)(t)?"".concat(o,"/cart")+"?"+(0,n.aw)(t)+"&"+(0,n.n9)(t)+"&"+(0,n.Uc)(t):"".concat(o,"/cart"),window.location.href=i}(t);if(ct(t))return async function(t){const o="https://"+window.location.hostname;var i;i=(0,n.lj)(t)?"".concat(o,"/checkout/cart")+"?"+(0,n.aw)(t)+"&"+(0,n.n9)(t)+"&"+(0,n.Uc)(t):"".concat(o,"/checkout/cart"),window.location.href=i}(t);if(st(t))return async function(t){const o="https://"+window.location.hostname;var i;i=(0,n.lj)(t)?"".concat(o,"/cart")+"?"+(0,n.aw)(t)+"&"+(0,n.n9)(t)+"&"+(0,n.Uc)(t):"".concat(o,"/cart"),window.location.href=i}(t);if(ut(t))return async function(t){const o="https://"+window.location.hostname;var i;i=(0,n.lj)(t)?"".concat(o,"/cart")+"?"+(0,n.aw)(t)+"&"+(0,n.n9)(t)+"&"+(0,n.Uc)(t):"".concat(o,"/cart"),window.location.href=i}(t);if("STRGA3S8N41"==t){const i="https://"+window.location.hostname;var o;o=(0,n.lj)(t)?"".concat(i,"/cart")+"?"+(0,n.aw)(t)+"&"+(0,n.n9)(t)+"&"+(0,n.Uc)(t):"".concat(i,"/cart"),window.location.href=o}return{}}function ht(t){if(rt(t))return function(t){const o=a.get(I),i=Y(t);return fetch(i+"/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(et(t))return function(t){const o=g(t);return fetch(o+"/wp-json/wc/v3/cart`",{method:"GET",headers:{Authorization:"Basic "+b}}).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(ct(t))return function(t){const o=M(t);return fetch(o+"/wp-json/wc/v3/cart`",{method:"GET",headers:{Authorization:"Basic "+N}}).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(st(t))return Promise.resolve({json:function(){return{item_count:0}}});if(ut(t))return Promise.resolve({json:function(){return{item_count:0}}});if("STRGA3S8N41"==t){return fetch(it+"/whatmore-cartcount ",{method:"GET",headers:{"Content-Type":"application/json"}})}return{}}async function vt(t,o,i){if(rt(i))return async function(t,o){const i=await J(t,o);return{price:i.variants[0].price/100,compare_at_price:i.variants[0].compare_at_price/100,currency_code:H()}}(t,i);if(et(i))return async function(t,o){const i=await R(t,o);return{price:i.variants[0].price/100,compare_at_price:i.variants[0].compare_at_price/100,currency_code:"INR"}}(t,i);if(ct(i))return async function(t,o){const i=await U(t,o);return{price:i.variants[0].price/100,compare_at_price:i.variants[0].compare_at_price/100,currency_code:"INR"}}(t,i);if(st(i))return async function(t,o){const i=await tt(t,o);return{price:i.variants[0].price/100,compare_at_price:i.variants[0].compare_at_price/100,currency_code:"INR"}}(t,i);if(at(i))return async function(t,o){const i=await y(t,o);return{price:i.variants[0].price/100,compare_at_price:i.variants[0].compare_at_price/100,currency_code:i.variants[0].currency_code}}(t,i);if(pt(i))return async function(t,o){const i=await z(t,o);return{price:i.variants[0].price/100,compare_at_price:i.variants[0].compare_at_price/100,currency_code:i.variants[0].currency_code}}(t,i);if(ut(i))return async function(t,o){const i=await f(t,o);return{price:i.variants[0].price/100,compare_at_price:i.variants[0].compare_at_price/100,currency_code:"INR"}}(t,i);if("STRGA3S8N41"==i){const o=await lt(t,i);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,i){"use strict";var n=i(5318);o.Z=void 0;var r=n(i(5045)),e=i(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,i){"use strict";var n=i(5318);o.Z=void 0;var r=n(i(5045)),e=i(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,i){"use strict";var n=i(5318);o.Z=void 0;var r=n(i(5045)),e=i(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,i){const n=i(500);t.exports=function(t){if("string"!==typeof t)return;const o=t.toUpperCase();return Object.prototype.hasOwnProperty.call(n,o)?n[o]:void 0},t.exports.currencySymbolMap=n},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([[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,n;const[l,p,c]=(0,o.Z)(),h=(0,i.MO)("whatmorePrimaryFont"),u=((0,i.MO)("whatmorePrimaryColor"),(0,i.MO)("whatmoreSecondaryColor")),f=(0,i.MO)("whatmoreShopId"),[x,m]=(0,r.useState)(!1),w=t.storyId,g=(0,a.V)(t.imageUrl),v=t.title,y=t.onClick,b=t.template,j=(0,s.f6)(f),z="template-stories-a"===b?"50%":"30%",k="portrait"==l?1:(0,s.Zy)(f),S=Math.floor(t.tileSize*k),C=.12*S*(0,s.LM)(f),F=null!==(e=(0,s.Q)(f))&&void 0!==e?e:h,L=null!==(n=(0,s.u2)(f))&&void 0!==n?n:[u,j,u,j,u];return(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,height:"fit-content",width:S*(0,s.jJ)(f)+"px",marginLeft:"10px",marginRight:"10px",marginTop:"10px",marginBottom:"10px",cursor:"pointer"},onClick:()=>{m(!0),y(w)},className:[x?"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:z,boxShadow:"0px 2px 1px 0px "+L[0]+"50, 0px -2px 1px 0px "+L[1]+"50, 2px 0px 1px 0px "+L[2]+"50, -2px 0px 1px 0px "+L[3]+"80, 2px -2px 1px 0px "+L[4]+"80, -2px 2px 1px 0px "+L[0]+"DA, 2px 2px 1px 0px "+L[1]+"DA, -2px -2px 1px 0px "+L[2]+"DA"},children:(0,d.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:S+"px",width:S+"px",borderRadius:z,border:"3px solid white",backgroundColor:"gray",overflow:"hidden"},children:(0,d.jsx)("img",{src:g,style:{objectFit:"cover",height:S+"px",width:S+"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",C+"px","important")},style:{textAlign:"center",color:(0,s.WS)(f),fontFamily:F,fontWeight:"normal",lineHeight:"110%",margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis"},children:v.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(){}}]);
|