@gofynd/theme-template 3.2.9 → 3.2.10
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/dist/components/compare-product-card/compare-product-card.js +1 -1
- package/dist/components/core/modal/modal.js +1 -1
- package/dist/components/filter-modal/filter-modal.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/location-modal/location-modal.js +1 -1
- package/dist/components/product-card/product-card.js +1 -1
- package/dist/components/sort-modal/sort-modal.js +1 -1
- package/dist/index.js +1 -1
- package/dist/page-layouts/cart/Components/chip-item/chip-item.js +1 -1
- package/dist/page-layouts/cart/Components/comment/comment.js +1 -1
- package/dist/page-layouts/cart/Components/coupon/coupon.js +1 -1
- package/dist/page-layouts/cart/Components/delivery-location/delivery-location.js +1 -1
- package/dist/page-layouts/cart/Components/remove-cart-item/remove-cart-item.js +1 -1
- package/dist/page-layouts/compare/compare.js +1 -1
- package/dist/page-layouts/plp/Components/add-to-cart/add-to-cart.js +1 -1
- package/dist/page-layouts/plp/Components/size-guide/size-guide.js +1 -1
- package/dist/page-layouts/single-checkout/address/single-address.js +1 -1
- package/dist/page-layouts/single-checkout/payment/card-form.js +1 -1
- package/dist/page-layouts/single-checkout/payment/checkout-payment-content.js +1 -1
- package/dist/page-layouts/single-checkout/payment/checkout-payment.js +1 -1
- package/dist/page-layouts/single-checkout/payment/juspay-card-from.js +1 -1
- package/dist/page-layouts/single-checkout/payment/zero-pay-btn/zero-pay-btn.js +1 -1
- package/dist/page-layouts/single-checkout/shipment/single-page-shipment.js +1 -1
- package/dist/page-layouts/single-checkout/shipment/single-shipment-content.js +1 -1
- package/dist/pages/cart/cart.js +1 -1
- package/dist/pages/cart/index.js +1 -1
- package/dist/pages/checkout/checkout.js +1 -1
- package/dist/pages/checkout/index.js +1 -1
- package/dist/pages/index.js +1 -1
- package/dist/pages/order-status/index.js +1 -1
- package/dist/pages/order-status/order-status.js +1 -1
- package/dist/pages/product-listing/index.js +1 -1
- package/dist/pages/product-listing/product-listing.js +1 -1
- package/dist/pages/profile/components/add-email-modal/add-email-modal.js +1 -1
- package/dist/pages/profile/components/add-phone-modal/add-phone-modal.js +1 -1
- package/dist/pages/profile/components/confirm-modal/confirm-modal.js +1 -1
- package/dist/pages/profile/email/email.js +1 -1
- package/dist/pages/profile/email/index.js +1 -1
- package/dist/pages/profile/phone/index.js +1 -1
- package/dist/pages/profile/phone/phone.js +1 -1
- package/dist/pages/wishlist/index.js +1 -1
- package/dist/pages/wishlist/wishlist.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fdk-core/utils"),require("framer-motion"),require("react")):"function"==typeof define&&define.amd?define("firestone",["fdk-core/utils","framer-motion","react"],t):"object"==typeof exports?exports.firestone=t(require("fdk-core/utils"),require("framer-motion"),require("react")):e.firestone=t(e["fdk-core/utils"],e["framer-motion"],e.react)}("undefined"!=typeof self?self:this,((e,t,n)=>(()=>{"use strict";var r={4814:(e,t,n)=>{n.d(t,{A:()=>a});var r,i=n(9155);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends.apply(null,arguments)}const a=function SvgAddress(e){return i.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),r||(r=i.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,n)=>{n.d(t,{A:()=>a});var r,i=n(9155);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends.apply(null,arguments)}const a=function SvgCall(e){return i.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),r||(r=i.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,n)=>{n.d(t,{A:()=>a});var r,i=n(9155);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends.apply(null,arguments)}const a=function SvgEmail(e){return i.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),r||(r=i.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,n)=>{n.d(t,{A:()=>o});var r,i,a=n(9155);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends.apply(null,arguments)}const o=function SvgOrders(e){return a.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),a.createElement("mask",{id:"orders_svg__a",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},r||(r=a.createElement("path",{fill:"#D9D9D9",d:"M0 0h20v20H0z"}))),i||(i=a.createElement("g",{mask:"url(#orders_svg__a)"},a.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"}))))}},266:(e,t,n)=>{var r=n(9825),i=n(7962),a=n(7010),o=n(4814);r.A,i.A,a.A,o.A},8618:(e,t,n)=>{n.d(t,{useMobile:()=>useMobile});var r=n(9155),i=n(4429);const useMobile=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:768;const[t,n]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{if(!(0,i.Wx)())return;const handleResize=()=>{"undefined"!=typeof window&&n(window?.innerWidth<=e)};return handleResize(),window?.addEventListener("resize",handleResize),()=>{window?.removeEventListener("resize",handleResize)}}),[e]),t}},4429:(e,t,n)=>{n.d(t,{Wx:()=>isRunningOnClient,in:()=>priceFormatCurrencySymbol});n(266);function roundToDecimals(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const n=Math.pow(10,t);return Math.round(e*n)/n}function isRunningOnClient(){return"undefined"!=typeof window&&globalThis===window}function priceFormatCurrencySymbol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=/^[A-Za-z]+$/.test(e);let r=t;if("string"!=typeof t){let e=t;isNaN(t)||(e=roundToDecimals(t)),"-"===e?.toString()[0]&&(e=e?.toString()?.substring(1)),r=e?e?.toString()?.split(".")?.[0].length>3?`${e?.toString()?.substring(0,e?.toString()?.split(".")?.[0]?.length-3)?.replace(/\B(?=(\d{2})+(?!\d))/g,",")},${e?.toString()?.substring(e?.toString()?.split?.(".")?.[0]?.length-3)}`:e?.toString():0}return`${"-"===t.toString()[0]?"-":""}${n?`${e} ${r}`:`${e}${r}`}`}},8575:(e,t,n)=>{n.d(t,{default:()=>sticky_pay_now});var r=n(9155),i=n.n(r),a=n(9286),o=n(447),s="sticky-pay-now__cartCheckoutBtn___jwQXW",
|
|
1
|
+
!function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fdk-core/utils"),require("framer-motion"),require("react")):"function"==typeof define&&define.amd?define("firestone",["fdk-core/utils","framer-motion","react"],t):"object"==typeof exports?exports.firestone=t(require("fdk-core/utils"),require("framer-motion"),require("react")):e.firestone=t(e["fdk-core/utils"],e["framer-motion"],e.react)}("undefined"!=typeof self?self:this,((e,t,n)=>(()=>{"use strict";var r={4814:(e,t,n)=>{n.d(t,{A:()=>a});var r,i=n(9155);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends.apply(null,arguments)}const a=function SvgAddress(e){return i.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),r||(r=i.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,n)=>{n.d(t,{A:()=>a});var r,i=n(9155);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends.apply(null,arguments)}const a=function SvgCall(e){return i.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),r||(r=i.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,n)=>{n.d(t,{A:()=>a});var r,i=n(9155);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends.apply(null,arguments)}const a=function SvgEmail(e){return i.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),r||(r=i.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,n)=>{n.d(t,{A:()=>o});var r,i,a=n(9155);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends.apply(null,arguments)}const o=function SvgOrders(e){return a.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),a.createElement("mask",{id:"orders_svg__a",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},r||(r=a.createElement("path",{fill:"#D9D9D9",d:"M0 0h20v20H0z"}))),i||(i=a.createElement("g",{mask:"url(#orders_svg__a)"},a.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"}))))}},266:(e,t,n)=>{var r=n(9825),i=n(7962),a=n(7010),o=n(4814);r.A,i.A,a.A,o.A},8618:(e,t,n)=>{n.d(t,{useMobile:()=>useMobile});var r=n(9155),i=n(4429);const useMobile=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:768;const[t,n]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{if(!(0,i.Wx)())return;const handleResize=()=>{"undefined"!=typeof window&&n(window?.innerWidth<=e)};return handleResize(),window?.addEventListener("resize",handleResize),()=>{window?.removeEventListener("resize",handleResize)}}),[e]),t}},4429:(e,t,n)=>{n.d(t,{Wx:()=>isRunningOnClient,in:()=>priceFormatCurrencySymbol});n(266);function roundToDecimals(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const n=Math.pow(10,t);return Math.round(e*n)/n}function isRunningOnClient(){return"undefined"!=typeof window&&globalThis===window}function priceFormatCurrencySymbol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=/^[A-Za-z]+$/.test(e);let r=t;if("string"!=typeof t){let e=t;isNaN(t)||(e=roundToDecimals(t)),"-"===e?.toString()[0]&&(e=e?.toString()?.substring(1)),r=e?e?.toString()?.split(".")?.[0].length>3?`${e?.toString()?.substring(0,e?.toString()?.split(".")?.[0]?.length-3)?.replace(/\B(?=(\d{2})+(?!\d))/g,",")},${e?.toString()?.substring(e?.toString()?.split?.(".")?.[0]?.length-3)}`:e?.toString():0}return`${"-"===t.toString()[0]?"-":""}${n?`${e} ${r}`:`${e}${r}`}`}},8575:(e,t,n)=>{n.d(t,{default:()=>sticky_pay_now});var r=n(9155),i=n.n(r),a=n(9286),o=n(447),s="sticky-pay-now__cartCheckoutBtn___jwQXW",l="sticky-pay-now__checkoutButton___mtO42";const sticky_pay_now=e=>{let{disabled:t=!1,value:n="",onPriceDetailsClick:r=(()=>{}),proceedToPay:c=(()=>{}),btnTitle:_,customClassName:u,enableLinkPaymentOption:d=!1,isJuspay:p=!1}=e;const{t:m}=(0,o.useGlobalTranslation)("translation");return i().createElement(a.AnimatePresence,{mode:"wait"},i().createElement(a.motion.div,{className:`sticky-pay-now__stickyBtnContainer___L7zbD ${u}`,key:"pay-now-container"},i().createElement("div",{className:"sticky-pay-now__stickyBtnContainer1___YFwCC"},!d&&i().createElement("div",{className:"sticky-pay-now__priceContainerMobile___Np09I"},i().createElement("div",{className:"sticky-pay-now__totalPrice___bn4DW"},n),i().createElement("div",{className:"sticky-pay-now__viewPriceBtn___nUnSN sticky-pay-now__viewPBtn___Z8jsC",onClick:r},m("resource.cart.view_price_details"))),p?i().createElement("button",{type:"submit",id:"common_pay_btn",className:`${s} ${l}`,disabled:t},m("resource.common.pay_caps")," "):i().createElement("button",{className:`${s} ${l}`,onClick:c},_||m("resource.cart.pay_now")))))}},447:t=>{t.exports=e},9286:e=>{e.exports=t},9155:e=>{e.exports=n}},i={};function __webpack_require__(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,__webpack_require__),n.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 n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__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 a={};return(()=>{__webpack_require__.r(a),__webpack_require__.d(a,{default:()=>o});var e=__webpack_require__(9155),t=__webpack_require__.n(e),n=__webpack_require__(8618),r=__webpack_require__(8575),i=__webpack_require__(4429);const o=function ZeroPayButton(e){let{payment:a,showPayment:o,onPriceDetailsClick:s}=e;const{proceedToPay:l,getTotalValue:c,getCurrencySymbol:_,isLoading:u}=a,d=(0,n.useMobile)();return t().createElement(t().Fragment,null,o&&0===c?.()&&t().createElement("div",null," ",d&&t().createElement(r.default,{value:(0,i.in)(_,c()),disabled:u,onPriceDetailsClick:s,proceedToPay:()=>{l("PP",{})},btnTitle:"PLACE ORDER"})))}})(),a})()));
|