PageSourceSearch

https://www.faber-castell.com.my/dist/FC.Ecom/modules/Shop-components-CartIncentive.8f345813.js

js faber-castell.com.my collected 2026-10-04 04:06:31 UTC 1,862 bytes, 1 lines download raw bytes

1"use strict";(self["FC.EcomwebpackJsonp"]=self["FC.EcomwebpackJsonp"]||[]).push([[5305,5369],{14422:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i,getCartAmount:()=>c});var n=r(27378),a=r(68780);function c(){var e=(0,a.v9)((function(e){return e.cart})).items.reduce((function(e,t){return e+t.quantity}),0);return e>99?"99+":e}const i=function(){var e=c();return n.createElement(n.Fragment,null,e)}},64984:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});var n=r(27378),a=r(68780),c=r(14422),i=r(47012),o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,c=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=c.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=c.return)&&r.call(c)}finally{if(a)throw a.error}}return i};const l=function(e){var t=e.commonTexts,r=(0,a.v9)((function(e){return e.cart})),l=(null==t?void 0:t.minValueForFreeShipping)||0,u=o((0,n.useState)(""),2),s=u[0],m=u[1],v=o((0,n.useState)(0),2),f=v[0],d=v[1];(0,n.useEffect)((function(){if(!r.loading&&r.cartSummary.totalPriceWithTax){var e,t=function(){var e=l-r.cartSummary.totalPriceWithTax.value;return(e=Math.round(100*(e+Number.EPSILON))/100)>0?e:0}();d((e=r.cartSummary.totalPriceWithTax.value)>l?100:100/l*e);var n=p(t);m(n)}}),[r]);var p=function(e){return e>0?null==t?void 0:t.description.replace("{ValueToGo}",(0,i.getPriceValueFormatted)(e,r.cartSummary.totalPriceWithTax.currencyIsoCode)):null==t?void 0:t.objectiveAchieved};return n.createElement(n.Fragment,null,n.createElement("p",{className:"hdl-3"},null==t?void 0:t.title.format(l.toString())," (",n.createElement(c.default,null),")"),n.createElement("span",{className:"shopping-cart-incentive__description"},s),n.createElement("div",{className:"shopping-cart-incentive__progress"},n.createElement("div",{className:"shopping-cart-incentive__success",style:{width:f+"%"}})))}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.