{"version":3,"sources":["views/pages/VoucherView/components/Options/Options.js","views/pages/VoucherView/components/PriceInput/PriceInput.js","views/pages/VoucherView/components/SectionCard/SectionCard.js","views/common/component/SuggestedCoupons/components/CouponItem/CouponItem.js","views/common/component/SuggestedCoupons/SuggestedCoupons.js","views/pages/VoucherView/components/BriefInfo/BriefInfo.js","views/pages/VoucherView/components/index.js","views/pages/VoucherView/index.js"],"names":["Options","props","priceOptions","selectedPriceOptions","handleSelectPriceOption","handleChangeVoucherQuantity","quantity","currency","exchangeRate","className","minValue","maxValue","initialValue","onCommitChange","length","map","priceOption","type","classNames","productCode","disabled","onClick","toLowerCase","CURRENCY_TYPE","UTOP","name","toUTop","price","toVND","MAX_PRICE","PriceInput","forwardRef","ref","onCommitAmount","useState","value","setValue","useEffect","placeholder","Number","toLocaleString","min","max","inputMode","pattern","onInput","e","typedValue","target","replace","parsedValue","SectionCard","title","content","hasCollapse","customTitle","brandLogoUrl","brandName","show","setShow","data","LogoUtop","src","CouponItem","code","endDateTime","isAllocated","handleSave","handleClickContent","showBtnShowMore","handleShowMore","nameClassName","endDateClassName","moment","utc","local","format","SuggestedCoupons","isLoading","suggestedCouponList","handleSaveCoupon","handleGotoDetailCoupon","firstCoupon","showSuggestedCouponList","setShowSuggestedCouponList","couponId","couponCode","handleClose","showBtnClose","style","padding","lineHeight","coupon","marginTop","BriefInfo","isLoadingSuggestedCoupons","voucherType","VOUCHER_TYPES","GEN_VOUCHER_WITH_AMOUNT","voucherName","unitPrice","unitListPrice","tags","tag","MESSAGE_KEY","toastOptions","position","autoClose","hideProgressBar","closeOnClick","pauseOnHover","draggable","progress","undefined","checkIfPriceOptionNotAvailable","_outOfStockProductCodes","_currPriceOption","find","VoucherView","idVoucher","useQuery","get","history","useHistory","location","useLocation","dispatch","useDispatch","useSelector","state","TYPE","voucherInfo","shortLinkToShare","outOfStockProductCodes","userInfo","ROOT_TYPE","amountToBuy","selectedVoucherOptions","setSelectedVoucherOptions","showModalWarning","setShowModalWarning","showModalShouldReload","setShowModalShouldReload","showModalRequireLogin","setShowModalRequireLogin","amountInputRef","useRef","isSelectedPriceOptionNotAvailable","useMemo","console","log","cartDataOfThisVoucherFromLS","found","JSON","parse","localStorage","getItem","VOUCHER_CART_KEY","totalPrice","actions","GET_VOUCHER_INFO","request","id","currentChosenPriceOption","prices","expiredDate","listPrice","productName","dataToUpdate","prev","defaultPriceOption","default","CHECK_STOCK_OF_PRODUCT","handleCheckStockOfPriceOption","merchant","viewAsGuest","GET_SUGGESTED_COUPON_LIST","MerchantId","Feature","isOverExpirationDate","Date","getTime","now","useCallback","SAVE_SUGGESTED_COUPON","onSuccess","toast","success","toastId","onFailure","message","errMsgToToast","MESSAGES","error","warn","push","handleClickBtnBuyVoucher","a","current","focus","voucherCartDataToSave","couponToUse","appliedCoupon","setItem","stringify","handleCommitAmountToBuy","amount","handleTriggerWebShareAPI","_shortLinkToShare","navigator","share","text","vi","en","handleCloseModalWarning","prevPathname","goBack","handleCloseModalShouldReload","removeItem","CART_KEYS_MAP","VOUCHER_CART","LOCAL_STORAGE_KEY","window","reload","items","images","imgWrapperClassName","imgClassName","GET_SHORT_LINK_TO_SHARE","url","href","callbackFunction","currencies","idCoupon","mode","COUPON_DETAIL_PAGE_MODES","ALLOCATE","callbackUrl","pathname","search","prevPage","brand","iv","logoUrl","description","term","itemsCount","onClickButton","onClose","scrollable","centered","variant"],"mappings":"6JAAA,4EAwEeA,UAjEf,SAAiBC,GACf,IACEC,EAOED,EAPFC,aACAC,EAMEF,EANFE,qBAFF,EAQIF,EALFG,+BAHF,MAG4B,aAH5B,EAIEC,EAIEJ,EAJFI,4BACAC,EAGEL,EAHFK,SACAC,EAEEN,EAFFM,SACAC,EACEP,EADFO,aAGF,OACE,sBAAKC,UAAU,kBAAf,UACE,sBAAKA,UAAU,qBAAf,UACE,8BACE,sBAAMA,UAAU,QAAhB,uCAGF,cAAC,IAAD,CACEC,SAAU,EACVC,SAAU,GACVC,aAAcN,EACdO,eAAgBR,QAK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GACZwF,WAAY7G,GAAuBnI,SACnCiP,cAAenD,KAGjB,eAAC,IAAD,CACEhJ,MAAM,OACNM,KAAMiF,GACN6G,QAASlC,GACTmC,YAAY,EACZC,UAAQ,EALV,UAOE,cAAC,IAAD,CAAcjP,UAAU,WAAxB,SACE,sBAAMA,UAAU,UAAhB,oBAGF,cAAC,IAAD,CAAYA,UAAU,OAAtB,SACG0K,KACG,iDACA,oIAEN,eAAC,IAAD,CAAc1K,UAAU,WAAxB,UACoC,OAAjC,WAAAmH,GAASK,aAAT,iBAAgBsF,eACf,cAAC,IAAD,CACEoC,QAAQ,QACRtO,QAAS,WACPqG,GAAQyE,KAAK,MAHjB,qCASD,WAAAvE,GAASK,aAAT,iBAAgBsF,eACf,cAAC,IAAD,CAASoC,QAAQ,QAAQtO,QAASiM,GAAlC,iCAON,eAAC,IAAD,CACElK,MAAM,OACNM,KAAMmF,GACN2G,QAAS/B,GACTgC,YAAY,EACZC,UAAQ,EALV,UAOE,cAAC,IAAD,CAAcjP,UAAU,WAAxB,SACE,sBAAMA,UAAU,UAAhB,oBAEF,cAAC,IAAD,CAAYA,UAAU,OAAtB,6GAGA,cAAC,IAAD,CAAcA,UAAU,WAAxB,SACE,cAAC,IAAD,CAASkP,QAAQ,QAAQtO,QAASoM,GAAlC,0CAMJ,eAAC,IAAD,CACErK,MAAM,OACNM,KAAMqF,GACNyG,QAtM+B,WACnCxG,IAAyB,IAsMrByG,YAAY,EACZC,UAAQ,EALV,UAOE,cAAC,IAAD,CAAcjP,UAAU,WAAxB,SACE,sBAAMA,UAAU,UAAhB,4DAEF,cAAC,IAAD,CAAYA,UAAU,OAAtB,2JAGA,cAAC,IAAD,CAAcA,UAAU,WAAxB,SACE,cAAC,IAAD,CAASkP,QAAQ,QAAQtO,QA7MD,WAC9BqG,GAAQyE,KAAR,WA4MM","file":"static/js/29.315996e2.chunk.js","sourcesContent":["import classNames from \"classnames\";\r\nimport React from \"react\";\r\nimport { InputNumberV2 } from \"views/common/component\";\r\nimport { CURRENCY_TYPE } from \"constants/types\";\r\nimport { toVND, toUTop } from \"utils/currencyFormat\";\r\nimport \"./Options.scss\";\r\n\r\nfunction Options(props) {\r\n const {\r\n priceOptions,\r\n selectedPriceOptions,\r\n handleSelectPriceOption = () => {},\r\n handleChangeVoucherQuantity,\r\n quantity,\r\n currency,\r\n exchangeRate,\r\n } = props;\r\n\r\n return (\r\n