@gofynd/theme-template 3.2.8 → 3.2.9

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.
@@ -344,17 +344,35 @@ h5,
344
344
  border: 1px solid var(--Overlay-Popup-Divider-Stroke, #e0e0e0);
345
345
  background: var(--Theme-Page-Background, #fff);
346
346
  }
347
+ @media only screen and (max-width: 480px) {
348
+ .compare-product-card__cardContainer___zMPZh {
349
+ padding: 8px;
350
+ gap: 8px !important;
351
+ }
352
+ }
347
353
  .compare-product-card__cardContainer___zMPZh .compare-product-card__cardImageContainer___gwmlm {
348
354
  width: 107px;
349
355
  gap: 4px;
350
356
  border-radius: 12px;
351
357
  }
358
+ @media only screen and (max-width: 480px) {
359
+ .compare-product-card__cardContainer___zMPZh .compare-product-card__cardImageContainer___gwmlm {
360
+ width: 76px !important;
361
+ height: 100% !important;
362
+ }
363
+ }
352
364
  .compare-product-card__cardContainer___zMPZh .compare-product-card__cardImageContainer___gwmlm img {
353
365
  width: 107px;
354
366
  height: 100%;
355
367
  object-fit: cover;
356
368
  border-radius: 12px;
357
369
  }
370
+ @media only screen and (max-width: 480px) {
371
+ .compare-product-card__cardContainer___zMPZh .compare-product-card__cardImageContainer___gwmlm img {
372
+ width: 76px;
373
+ height: 100% !important;
374
+ }
375
+ }
358
376
  .compare-product-card__cardContainer___zMPZh .compare-product-card__cardDetailWrapper___AA6eM {
359
377
  display: flex;
360
378
  flex-direction: column;
@@ -371,12 +389,24 @@ h5,
371
389
  flex-direction: column;
372
390
  gap: 4px;
373
391
  }
392
+ @media only screen and (max-width: 480px) {
393
+ .compare-product-card__cardContainer___zMPZh .compare-product-card__priceBtnSection___iinFL {
394
+ gap: 8px;
395
+ }
396
+ }
374
397
  .compare-product-card__cardContainer___zMPZh .compare-product-card__priceBtnSection___iinFL h5 {
375
398
  color: var(--textBody, #3c3131);
376
399
  font-size: 14px;
377
400
  font-weight: 600;
378
401
  letter-spacing: -0.28px;
379
402
  }
403
+ @media only screen and (max-width: 480px) {
404
+ .compare-product-card__cardContainer___zMPZh .compare-product-card__priceBtnSection___iinFL h5 {
405
+ font-size: 12px;
406
+ font-weight: 400;
407
+ letter-spacing: -0.24px;
408
+ }
409
+ }
380
410
  .compare-product-card__cardContainer___zMPZh .compare-product-card__priceBtnSection___iinFL .compare-product-card__category___zIlKv {
381
411
  color: var(--textHeading, #26201a);
382
412
  font-size: 12px;
@@ -388,12 +418,23 @@ h5,
388
418
  gap: 8px;
389
419
  align-items: center;
390
420
  }
421
+ @media only screen and (max-width: 480px) {
422
+ .compare-product-card__cardContainer___zMPZh .compare-product-card__priceBtnSection___iinFL .compare-product-card__priceInfo___xTmrK {
423
+ gap: 0 !important;
424
+ align-items: normal;
425
+ flex-direction: column;
426
+ }
427
+ }
391
428
  .compare-product-card__cardContainer___zMPZh .compare-product-card__priceBtnSection___iinFL .compare-product-card__priceInfo___xTmrK h4 {
392
429
  color: var(--textHeading, #26201a);
393
430
  font-size: 16px;
394
431
  font-weight: 600;
395
432
  letter-spacing: -0.32px;
396
433
  }
434
+ .compare-product-card__cardContainer___zMPZh .compare-product-card__priceBtnSection___iinFL .compare-product-card__priceInfo___xTmrK .compare-product-card__priceContainer___ryFbU {
435
+ display: flex;
436
+ gap: 8px;
437
+ }
397
438
  .compare-product-card__cardContainer___zMPZh .compare-product-card__priceBtnSection___iinFL .compare-product-card__priceInfo___xTmrK .compare-product-card__actualPrice___nDaUJ {
398
439
  color: var(--textLabel, #7d7676);
399
440
  font-size: 12px;
@@ -422,6 +463,19 @@ h5,
422
463
  font-size: 14px;
423
464
  font-weight: 500;
424
465
  letter-spacing: -0.28px;
466
+ display: flex;
467
+ align-items: center;
468
+ justify-content: center;
469
+ }
470
+ @media only screen and (max-width: 480px) {
471
+ .compare-product-card__cardContainer___zMPZh .compare-product-card__addToCartBtnSection____OZ_c {
472
+ font-size: 12px;
473
+ font-weight: 500;
474
+ letter-spacing: -0.24px;
475
+ padding: 6.795px 18.12px;
476
+ height: 32px;
477
+ margin-top: 8px;
478
+ }
425
479
  }
426
480
  .compare-product-card__shimmerWrapper___YuAk_ .compare-product-card__cardContainer___zMPZh {
427
481
  padding: 16px;
@@ -433,11 +487,21 @@ h5,
433
487
  border: 1px solid var(--Overlay-Popup-Divider-Stroke, #e0e0e0);
434
488
  background: var(--Theme-Page-Background, #fff);
435
489
  }
490
+ @media only screen and (max-width: 480px) {
491
+ .compare-product-card__shimmerWrapper___YuAk_ .compare-product-card__cardContainer___zMPZh {
492
+ gap: 8px !important;
493
+ }
494
+ }
436
495
  .compare-product-card__shimmerWrapper___YuAk_ .compare-product-card__imageShimmer___X9_wx {
437
496
  width: 110px !important;
438
- height: 128px !important;
497
+ height: 100% !important;
439
498
  border-radius: 12px;
440
499
  }
500
+ @media only screen and (max-width: 480px) {
501
+ .compare-product-card__shimmerWrapper___YuAk_ .compare-product-card__imageShimmer___X9_wx {
502
+ width: 76px !important;
503
+ }
504
+ }
441
505
  .compare-product-card__shimmerWrapper___YuAk_ .compare-product-card__lineShimmer___WCQwb {
442
506
  border-radius: 12px;
443
507
  }
@@ -1 +1 @@
1
- !function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("firestone",["react"],t):"object"==typeof exports?exports.firestone=t(require("react")):e.firestone=t(e.react)}("undefined"!=typeof self?self:this,(e=>(()=>{"use strict";var t={4814:(e,t,r)=>{r.d(t,{A:()=>c});var n,a=r(9155);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends.apply(null,arguments)}const c=function SvgAddress(e){return a.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),n||(n=a.createElement("path",{fill:"#4D4D4E",d:"m10.001 5.16 4.167 3.75v6.508h-1.667v-5h-5v5H5.835V8.91zm0-2.242-8.333 7.5h2.5v6.667h5v-5h1.667v5h5v-6.667h2.5z"})))}},7962:(e,t,r)=>{r.d(t,{A:()=>c});var n,a=r(9155);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends.apply(null,arguments)}const c=function SvgCall(e){return a.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),n||(n=a.createElement("path",{fill:"#4D4D4E",d:"M5.45 4.167c.05.741.175 1.466.375 2.158l-1 1c-.342-1-.558-2.058-.633-3.158zm8.217 10.016c.708.2 1.433.325 2.166.375V15.8a12.9 12.9 0 0 1-3.166-.625zM6.25 2.5H3.333a.836.836 0 0 0-.833.833C2.5 11.158 8.842 17.5 16.667 17.5a.836.836 0 0 0 .833-.833v-2.909a.836.836 0 0 0-.833-.833 9.5 9.5 0 0 1-2.975-.475.7.7 0 0 0-.259-.042.85.85 0 0 0-.591.242l-1.834 1.833a12.62 12.62 0 0 1-5.491-5.491L7.35 7.158a.84.84 0 0 0 .208-.85 9.5 9.5 0 0 1-.475-2.975.836.836 0 0 0-.833-.833"})))}},7010:(e,t,r)=>{r.d(t,{A:()=>c});var n,a=r(9155);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends.apply(null,arguments)}const c=function SvgEmail(e){return a.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),n||(n=a.createElement("path",{fill:"#4D4D4E",d:"M18.335 4.999c0-.917-.75-1.667-1.667-1.667H3.335c-.917 0-1.667.75-1.667 1.667v10c0 .916.75 1.666 1.667 1.666h13.333c.917 0 1.667-.75 1.667-1.666zm-1.667 0-6.667 4.158-6.666-4.158zm0 10H3.335V6.665L10 10.832l6.667-4.167z"})))}},9825:(e,t,r)=>{r.d(t,{A:()=>_});var n,a,c=r(9155);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends.apply(null,arguments)}const _=function SvgOrders(e){return c.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),c.createElement("mask",{id:"orders_svg__a",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},n||(n=c.createElement("path",{fill:"#D9D9D9",d:"M0 0h20v20H0z"}))),a||(a=c.createElement("g",{mask:"url(#orders_svg__a)"},c.createElement("path",{fill:"#4D4D4E",d:"M4.418 17.918q-.625 0-1.063-.437a1.45 1.45 0 0 1-.437-1.063v-9.5q0-.625.437-1.063a1.45 1.45 0 0 1 1.063-.437h1.833q0-1.562 1.094-2.657Q8.44 1.668 10 1.668q1.563 0 2.657 1.093 1.093 1.094 1.093 2.657h1.834q.624 0 1.062.437.438.438.438 1.063v9.5q0 .625-.438 1.063a1.45 1.45 0 0 1-1.062.437zm0-1.25h11.167q.082 0 .166-.083.084-.084.084-.167v-9.5q0-.083-.084-.167-.082-.083-.166-.083H4.418q-.083 0-.167.083-.083.084-.083.167v9.5q0 .084.083.167t.167.083m5.583-5.417q1.563 0 2.657-1.093 1.093-1.094 1.093-2.657h-1.25q0 1.042-.729 1.771a2.4 2.4 0 0 1-1.77.73 2.4 2.4 0 0 1-1.772-.73 2.4 2.4 0 0 1-.729-1.77h-1.25q0 1.562 1.094 2.656Q8.44 11.251 10 11.251m-2.5-5.833h5q0-1.042-.729-1.77a2.4 2.4 0 0 0-1.77-.73 2.4 2.4 0 0 0-1.772.73 2.4 2.4 0 0 0-.729 1.77"}))))}},9781:(e,t,r)=>{r.d(t,{default:()=>_});var n=r(9155),a=r.n(n),c=r(8788);const _=function Shimmer(e){let{height:t="100vh",width:r="100%",className:n=""}=e;return a().createElement("div",{style:{"--height":t,"--width":r},className:`${c.Zg} ${n}`})}},266:(e,t,r)=>{r.d(t,{Hs:()=>s,Sv:()=>o});var n=r(9825),a=r(7962),c=r(7010),_=r(4814);n.A,a.A,c.A,_.A;const o="en-US",s="en-IN"},4429:(e,t,r)=>{r.d(t,{N8:()=>currencyFormat,OE:()=>formatLocale});var n=r(266);const currencyFormat=function(e,t){const r=`${arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en-IN"}-u-nu-latn`;if(null!=e){const n=e.toLocaleString(r);return t&&/^[A-Z]+$/.test(t)?`${t} ${n}`:t?`${t}${n}`:n}return""};const formatLocale=function(e,t){if(("en"===e||!e)&&(arguments.length>2&&void 0!==arguments[2]&&arguments[2]))return n.Hs;if("en"===e||!e)return n.Sv;const r=e.includes("-")?e:`${e}${t?"-"+t:""}`;return(e=>{try{return new Intl.Locale(e),!0}catch{return!1}})(r)?r:n.Sv}},8788:(e,t,r)=>{r.d(t,{Zg:()=>n});var n="shimmer__shimmerBox___LToot"},9155:t=>{t.exports=e}},r={};function __webpack_require__(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,__webpack_require__),a.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{__webpack_require__.r(n),__webpack_require__.d(n,{default:()=>compare_product_card});var e=__webpack_require__(9155),t=__webpack_require__.n(e),r="compare-product-card__cardContainer___zMPZh",a="compare-product-card__cardDetailWrapper___AA6eM",c="compare-product-card__cardImageContainer___gwmlm",_="compare-product-card__discount___qoq0r",o="compare-product-card__lineShimmer___WCQwb",s=__webpack_require__(4429),i=__webpack_require__(9781);const compare_product_card=n=>{let{productItem:l,addProduct:d=(()=>{}),isLoading:m=!1}=n;const getScreenSize=()=>{const e="undefined"!=typeof window?window.innerWidth:1200;return e<=768?"mobile":e<=1024?"tablet":"desktop"},[u,p]=(0,e.useState)(getScreenSize());(0,e.useEffect)((()=>{const handleResize=()=>p(getScreenSize());return window.addEventListener("resize",handleResize),()=>window.removeEventListener("resize",handleResize)}),[]);let v=(f=l?.name,h=78,f?f.length>h?`${f.slice(0,h)}...`:f:"");var f,h;console.log(v,"productName",v.length);const formatPrice=(e,t)=>{const r=(0,s.OE)("en","IN",!0);return(0,s.N8)(e,t,r)},g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"range";if(!e?.price)return"";const r=e.price?.effective;if(!r)return"";const n=r.currency_symbol;switch(t){case"min":return formatPrice(r.min,n);case"max":return formatPrice(r.max,n);default:return r.min!==r.max?`${formatPrice(r.min,n)} - ${formatPrice(r.max,n)}`:formatPrice(r.min,n)}}(l),w=(e=>{const t=e?.price?.marked;if(!t)return"";const r=t.currency_symbol;return formatPrice(t.min,r)})(l);return m||!l?t().createElement("div",{className:"compare-product-card__shimmerWrapper___YuAk_"},t().createElement("div",{className:r},t().createElement("div",{className:c},t().createElement(i.default,{className:"compare-product-card__imageShimmer___X9_wx"})),t().createElement("div",{className:a},t().createElement(i.default,{className:`${o} compare-product-card__firstLine___KmRgB`}),t().createElement(i.default,{className:`${o} compare-product-card__secondLine___OSckN`}),t().createElement(i.default,{className:`${o} compare-product-card__thirdLine___SpowO`}),t().createElement(i.default,{className:"compare-product-card__buttonShimmer___zW3TJ compare-product-card__btnGap___pcI1C"})))):t().createElement("div",{className:r},t().createElement("div",{className:c},t().createElement("img",{src:l?.media?.[0]?.url,alt:l?.media?.[0]?.alt})),t().createElement("div",{className:a},t().createElement("div",{className:"compare-product-card__cardDetailContainer___nV8M3"},t().createElement("div",{className:"compare-product-card__priceBtnSection___iinFL"},t().createElement("h5",null,v),t().createElement("span",{className:"compare-product-card__category___zIlKv"},l?.brand?.name),t().createElement("div",{className:"compare-product-card__priceInfo___xTmrK"},t().createElement("h4",null,g),t().createElement("span",{className:"compare-product-card__actualPrice___nDaUJ"},w),t().createElement("span",{className:_},l?.discount&&t().createElement("span",{className:_},"(",l.discount,")")))),t().createElement("div",{className:"compare-product-card__actionsWrapper___VC60Q"},t().createElement("button",{className:"compare-product-card__addToCartBtnSection____OZ_c",onClick:d},"ADD TO COMPARE")))))}})(),n})()));
1
+ !function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("firestone",["react"],t):"object"==typeof exports?exports.firestone=t(require("react")):e.firestone=t(e.react)}("undefined"!=typeof self?self:this,(e=>(()=>{"use strict";var t={4814:(e,t,r)=>{r.d(t,{A:()=>c});var n,a=r(9155);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends.apply(null,arguments)}const c=function SvgAddress(e){return a.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),n||(n=a.createElement("path",{fill:"#4D4D4E",d:"m10.001 5.16 4.167 3.75v6.508h-1.667v-5h-5v5H5.835V8.91zm0-2.242-8.333 7.5h2.5v6.667h5v-5h1.667v5h5v-6.667h2.5z"})))}},7962:(e,t,r)=>{r.d(t,{A:()=>c});var n,a=r(9155);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends.apply(null,arguments)}const c=function SvgCall(e){return a.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),n||(n=a.createElement("path",{fill:"#4D4D4E",d:"M5.45 4.167c.05.741.175 1.466.375 2.158l-1 1c-.342-1-.558-2.058-.633-3.158zm8.217 10.016c.708.2 1.433.325 2.166.375V15.8a12.9 12.9 0 0 1-3.166-.625zM6.25 2.5H3.333a.836.836 0 0 0-.833.833C2.5 11.158 8.842 17.5 16.667 17.5a.836.836 0 0 0 .833-.833v-2.909a.836.836 0 0 0-.833-.833 9.5 9.5 0 0 1-2.975-.475.7.7 0 0 0-.259-.042.85.85 0 0 0-.591.242l-1.834 1.833a12.62 12.62 0 0 1-5.491-5.491L7.35 7.158a.84.84 0 0 0 .208-.85 9.5 9.5 0 0 1-.475-2.975.836.836 0 0 0-.833-.833"})))}},7010:(e,t,r)=>{r.d(t,{A:()=>c});var n,a=r(9155);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends.apply(null,arguments)}const c=function SvgEmail(e){return a.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),n||(n=a.createElement("path",{fill:"#4D4D4E",d:"M18.335 4.999c0-.917-.75-1.667-1.667-1.667H3.335c-.917 0-1.667.75-1.667 1.667v10c0 .916.75 1.666 1.667 1.666h13.333c.917 0 1.667-.75 1.667-1.666zm-1.667 0-6.667 4.158-6.666-4.158zm0 10H3.335V6.665L10 10.832l6.667-4.167z"})))}},9825:(e,t,r)=>{r.d(t,{A:()=>i});var n,a,c=r(9155);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends.apply(null,arguments)}const i=function SvgOrders(e){return c.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),c.createElement("mask",{id:"orders_svg__a",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},n||(n=c.createElement("path",{fill:"#D9D9D9",d:"M0 0h20v20H0z"}))),a||(a=c.createElement("g",{mask:"url(#orders_svg__a)"},c.createElement("path",{fill:"#4D4D4E",d:"M4.418 17.918q-.625 0-1.063-.437a1.45 1.45 0 0 1-.437-1.063v-9.5q0-.625.437-1.063a1.45 1.45 0 0 1 1.063-.437h1.833q0-1.562 1.094-2.657Q8.44 1.668 10 1.668q1.563 0 2.657 1.093 1.093 1.094 1.093 2.657h1.834q.624 0 1.062.437.438.438.438 1.063v9.5q0 .625-.438 1.063a1.45 1.45 0 0 1-1.062.437zm0-1.25h11.167q.082 0 .166-.083.084-.084.084-.167v-9.5q0-.083-.084-.167-.082-.083-.166-.083H4.418q-.083 0-.167.083-.083.084-.083.167v9.5q0 .084.083.167t.167.083m5.583-5.417q1.563 0 2.657-1.093 1.093-1.094 1.093-2.657h-1.25q0 1.042-.729 1.771a2.4 2.4 0 0 1-1.77.73 2.4 2.4 0 0 1-1.772-.73 2.4 2.4 0 0 1-.729-1.77h-1.25q0 1.562 1.094 2.656Q8.44 11.251 10 11.251m-2.5-5.833h5q0-1.042-.729-1.77a2.4 2.4 0 0 0-1.77-.73 2.4 2.4 0 0 0-1.772.73 2.4 2.4 0 0 0-.729 1.77"}))))}},9781:(e,t,r)=>{r.d(t,{default:()=>i});var n=r(9155),a=r.n(n),c=r(8788);const i=function Shimmer(e){let{height:t="100vh",width:r="100%",className:n=""}=e;return a().createElement("div",{style:{"--height":t,"--width":r},className:`${c.Zg} ${n}`})}},266:(e,t,r)=>{r.d(t,{Hs:()=>o,Sv:()=>_});var n=r(9825),a=r(7962),c=r(7010),i=r(4814);n.A,a.A,c.A,i.A;const _="en-US",o="en-IN"},6249:(e,t,r)=>{r.d(t,{useMobile:()=>n.useMobile});var n=r(8618);r(1566),r(4070)},8618:(e,t,r)=>{r.d(t,{useMobile:()=>useMobile});var n=r(9155),a=r(4429);const useMobile=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:768;const[t,r]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{if(!(0,a.Wx)())return;const handleResize=()=>{"undefined"!=typeof window&&r(window?.innerWidth<=e)};return handleResize(),window?.addEventListener("resize",handleResize),()=>{window?.removeEventListener("resize",handleResize)}}),[e]),t}},4070:(e,t,r)=>{r(9155)},1566:(e,t,r)=>{r(9155)},4429:(e,t,r)=>{r.d(t,{N8:()=>currencyFormat,OE:()=>formatLocale,Wx:()=>isRunningOnClient});var n=r(266);function isRunningOnClient(){return"undefined"!=typeof window&&globalThis===window}const currencyFormat=function(e,t){const r=`${arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en-IN"}-u-nu-latn`;if(null!=e){const n=e.toLocaleString(r);return t&&/^[A-Z]+$/.test(t)?`${t} ${n}`:t?`${t}${n}`:n}return""};const formatLocale=function(e,t){if(("en"===e||!e)&&(arguments.length>2&&void 0!==arguments[2]&&arguments[2]))return n.Hs;if("en"===e||!e)return n.Sv;const r=e.includes("-")?e:`${e}${t?"-"+t:""}`;return(e=>{try{return new Intl.Locale(e),!0}catch{return!1}})(r)?r:n.Sv}},8788:(e,t,r)=>{r.d(t,{Zg:()=>n});var n="shimmer__shimmerBox___LToot"},9155:t=>{t.exports=e}},r={};function __webpack_require__(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,__webpack_require__),a.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{__webpack_require__.r(n),__webpack_require__.d(n,{default:()=>compare_product_card});var e=__webpack_require__(9155),t=__webpack_require__.n(e),r="compare-product-card__cardContainer___zMPZh",a="compare-product-card__cardDetailWrapper___AA6eM",c="compare-product-card__cardImageContainer___gwmlm",i="compare-product-card__discount___qoq0r",_="compare-product-card__lineShimmer___WCQwb",o=__webpack_require__(4429),s=__webpack_require__(9781),l=__webpack_require__(6249);const compare_product_card=n=>{let{productItem:d,addProduct:u=(()=>{}),isLoading:m=!1}=n;const p=(0,l.useMobile)(480),getScreenSize=()=>{const e="undefined"!=typeof window?window.innerWidth:1200;return e<=768?"mobile":e<=1024?"tablet":"desktop"},[f,v]=(0,e.useState)(getScreenSize());(0,e.useEffect)((()=>{const handleResize=()=>v(getScreenSize());return window.addEventListener("resize",handleResize),()=>window.removeEventListener("resize",handleResize)}),[]);const h=p?(w=d?.name,g=46,w?w.length>g?`${w.slice(0,g)}...`:w:""):d?.name||"";var w,g;console.log(h,"productName",h.length);const formatPrice=(e,t)=>{const r=(0,o.OE)("en","IN",!0);return(0,o.N8)(e,t,r)},b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"range";if(!e?.price)return"";const r=e.price?.effective;if(!r)return"";const n=r.currency_symbol;switch(t){case"min":return formatPrice(r.min,n);case"max":return formatPrice(r.max,n);default:return r.min!==r.max?`${formatPrice(r.min,n)} - ${formatPrice(r.max,n)}`:formatPrice(r.min,n)}}(d),E=(e=>{const t=e?.price?.marked;if(!t)return"";const r=t.currency_symbol;return formatPrice(t.min,r)})(d);return m||!d?t().createElement("div",{className:"compare-product-card__shimmerWrapper___YuAk_"},t().createElement("div",{className:r},t().createElement("div",{className:c},t().createElement(s.default,{className:"compare-product-card__imageShimmer___X9_wx"})),t().createElement("div",{className:a},t().createElement(s.default,{className:`${_} compare-product-card__firstLine___KmRgB`}),t().createElement(s.default,{className:`${_} compare-product-card__secondLine___OSckN`}),t().createElement(s.default,{className:`${_} compare-product-card__thirdLine___SpowO`}),t().createElement(s.default,{className:"compare-product-card__buttonShimmer___zW3TJ compare-product-card__btnGap___pcI1C"})))):t().createElement("div",{className:r},t().createElement("div",{className:c},t().createElement("img",{src:d?.media?.[0]?.url,alt:d?.media?.[0]?.alt})),t().createElement("div",{className:a},t().createElement("div",{className:"compare-product-card__cardDetailContainer___nV8M3"},t().createElement("div",{className:"compare-product-card__priceBtnSection___iinFL"},t().createElement("h5",null,h),!p&&t().createElement("span",{className:"compare-product-card__category___zIlKv"},d?.brand?.name),t().createElement("div",{className:"compare-product-card__priceInfo___xTmrK"},t().createElement("h4",null,b),t().createElement("div",{className:"compare-product-card__priceContainer___ryFbU"},t().createElement("span",{className:"compare-product-card__actualPrice___nDaUJ"},E),t().createElement("span",{className:i},d?.discount&&t().createElement("span",{className:i},"(",d.discount,")"))))),t().createElement("button",{className:"compare-product-card__addToCartBtnSection____OZ_c",onClick:u},"ADD TO COMPARE"))))}})(),n})()));
package/dist/index.css CHANGED
@@ -40089,16 +40089,12 @@ h5,
40089
40089
  }
40090
40090
  .checkout-payment-content__noOptionContainer___uCGHg .checkout-payment-content__noOptionText___zceGG {
40091
40091
  display: flex;
40092
- width: 580px;
40092
+ max-width: 580px;
40093
+ width: 100%;
40093
40094
  flex-direction: column;
40094
40095
  align-items: center;
40095
40096
  gap: 8px;
40096
40097
  }
40097
- @media only screen and (max-width: 768px) {
40098
- .checkout-payment-content__noOptionContainer___uCGHg .checkout-payment-content__noOptionText___zceGG {
40099
- width: 100%;
40100
- }
40101
- }
40102
40098
  .checkout-payment-content__noOptionContainer___uCGHg .checkout-payment-content__noOptionText___zceGG h3 {
40103
40099
  color: var(--textHeading, #26201a);
40104
40100
  text-align: center;
@@ -40127,6 +40123,9 @@ h5,
40127
40123
  font-size: 12px;
40128
40124
  }
40129
40125
  }
40126
+ .checkout-payment-content__noOptionContainer___uCGHg .checkout-payment-content__noOptionText___zceGG .checkout-payment-content__contact_us___KWS91 {
40127
+ margin-top: 12px;
40128
+ }
40130
40129
 
40131
40130
  /**color by character**/
40132
40131
  /** Font family **/