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CAMCtD,OAAAA,EAAAA,EAAAA,CAAA,CAATsD,EAAAA,GAAQ,+BAMCtD,OAAAA,EAAAA,EAAAA,CAAA,CAATsD,EAAAA,GAAQ,0CAhFAwP,EAA8B9S,OAAAA,EAAAA,EAAAA,CAAA,CAF1CnE,EAAAA,gBACAoE,EAAAA,GACY6S,GAyREA,EAAAA,QAAAA,qCCjUf,kCAAO,MAAMtO,EAAkB,CAC3B,CACI/T,KAAM,cACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,gBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,iBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,sBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,YACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,YACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,yBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,gBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,iCACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,eACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,iBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,2BACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,OACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,mBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,gBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,eACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,gBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,OACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,iBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,qBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,cACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,oBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,mBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,gBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,OACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,gBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,mBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,8BACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,YACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,YACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,OACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,YACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,gBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,oCACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,YACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,YACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,OACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,OACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,cACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,OACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,gBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,YACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,YACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,OACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,mBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,YACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,cACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,gBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,cACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,YACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,OACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,iBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,cACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,kBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,2BACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,OACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,YACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,mBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,OACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,cACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,cACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,mBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,eACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,wBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,cACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,eACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,4BACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,mCACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,wBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,eACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,eACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,YACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,4BACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,kBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,eACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,gBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,cACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,cACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,YACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,0BACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,cACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,cACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,OACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,sBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,eACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,2BACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,uBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,iBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,gBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,aACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,eACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,YACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,UACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,2BACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,uBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,oBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,iBACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,QACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,SACNqE,cAAe,KACf8P,gBAAiB,OAErB,CACInU,KAAM,WACNqE,cAAe,KACf8P,gBAAiB","sources":["webpack:///./src/modules/lds-customer-account-payment/lds-checkout-customer-account-payment.view.tsx?7abf","webpack:///./src/themes/fabrikam/views/cart.view.tsx?1f01","webpack:///./src/themes/fabrikam/views/footer-category.view.tsx?e898","webpack:///./src/themes/fabrikam/views/order-confirmation.view.tsx?ace0","webpack:///./src/modules/lds-footer/lds-footer.tsx?9ec7","webpack:///../../src/index.ts?0e3e","webpack:///./src/themes/fabrikam/views/checkout-customer-account-payment.view.tsx?e39c","webpack:///./src/modules/lds-country-picker/lds-country-picker.tsx?60b7","webpack:///../../../src/module-state-manager/with-module-state.tsx?61ca","webpack:///./src/helpers/localization/locale.helper.ts?6a52","webpack:///../../src/checkout-state.ts?acd8","webpack:///./src/modules/lds-country-picker/lds-country-picker.view.tsx?81fc","webpack:///../../../src/module-state-manager/module-state.ts?7579","webpack:///./src/modules/lds-cookie-compliance/components/accept-button.tsx?c95e","webpack:///./src/modules/lds-cookie-compliance/components/links.tsx?36ea","webpack:///./src/modules/lds-cookie-compliance/lds-cookie-compliance.tsx?e251","webpack:///../../../src/module-state-manager/index.ts?8e3a","webpack:///./src/modules/lds-cookie-compliance/lds-cookie-compliance.view.tsx?a974","webpack:///../../src/checkout-utilities.data.ts?b2cc","webpack:///./src/modules/lds-footer/components/FooterImageLink.tsx?ab60","webpack:///./src/modules/lds-footer/components/SiteLinks.tsx?96c5","webpack:///./src/modules/lds-footer/components/TermsAndConditions.tsx?57f4","webpack:///./src/modules/lds-footer/components/FooterLinks.tsx?3d70","webpack:///./src/modules/lds-footer/components/TermsOfService.tsx?7b35","webpack:///./src/modules/lds-footer/components/CopyRight.tsx?4586","webpack:///./src/modules/lds-footer/components/FooterLegal.tsx?2fa9","webpack:///./src/modules/lds-footer/lds-footer.view.tsx?7255","webpack:///../../src/checkout-state-data-action.ts?8344","webpack:///./src/modules/lds-customer-account-payment/components/get-account-payment-form-edit-mode.tsx?12b2","webpack:///./src/modules/lds-customer-account-payment/components/get-account-payment-form-summary-mode.tsx?fbde","webpack:///./src/modules/lds-customer-account-payment/lds-checkout-customer-account-payment.tsx?095a","webpack:///./src/modules/lds-country-picker/countryList.ts?d637"],"sourcesContent":["// /*--------------------------------------------------------------\r\n// * Copyright (c) Microsoft Corporation. All rights reserved.\r\n// * See License.txt in the project root for license information.\r\n// *--------------------------------------------------------------*/\r\n\r\nimport { Module, Node } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nimport { ICheckoutCustomerAccountPaymentViewProps } from './lds-checkout-customer-account-payment';\r\nimport { IAccountPaymentEditViewForm, IGetAccountPaymentEditViewFormInput } from './components/get-account-payment-form-edit-mode';\r\nimport { IAccountPaymentSummaryViewForm } from './components/get-account-payment-form-summary-mode';\r\n//@ts-ignore\r\nimport { Primary } from '@churchofjesuschrist/eden-buttons';\r\nimport styled from 'styled-components';\r\n\r\nexport const SummaryForm: React.FC = ({\r\n formProps,\r\n label,\r\n paymentAmount,\r\n addPaymentButton,\r\n appliedLine,\r\n bottomBorder\r\n}) => {\r\n return (\r\n \r\n <>\r\n {label}\r\n {paymentAmount}\r\n {addPaymentButton}\r\n {appliedLine}\r\n {bottomBorder}\r\n \r\n \r\n );\r\n};\r\n\r\nexport interface EditFormProps {\r\n accountForm: IAccountPaymentEditViewForm;\r\n submitProps?: IGetAccountPaymentEditViewFormInput;\r\n}\r\ninterface IEditFormExtended extends IAccountPaymentEditViewForm {\r\n paymentLabel?: string;\r\n}\r\n\r\nexport const EditForm: React.FC = ({\r\n formProps,\r\n addPaymentButton,\r\n alert,\r\n accountDetails,\r\n appliedLine,\r\n bottomBorder,\r\n paymentLabel\r\n}) => {\r\n const PaymentButtonLabel = styled.div`\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: flex-end;\r\n margin-top: 15px;\r\n `;\r\n\r\n return (\r\n \r\n <>\r\n
\r\n \r\n {alert}\r\n {/*@ts-ignore */}\r\n {paymentLabel}\r\n \r\n {appliedLine}\r\n
\r\n {accountDetails}\r\n {bottomBorder}\r\n \r\n
\r\n );\r\n};\r\n\r\nconst CheckoutCustomerAccountView: React.FC = props => {\r\n const { checkoutCustomerAccount, summaryView, editView, moduleState } = props;\r\n //@ts-ignore\r\n const paymentLabel = props.resources.applyPaymentLabel;\r\n return (\r\n \r\n {moduleState.isReady && summaryView && }\r\n {!moduleState.isReady && editView && }\r\n \r\n );\r\n};\r\n\r\nexport default CheckoutCustomerAccountView;\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport { IInvoiceSummaryLines } from '@msdyn365-commerce-modules/invoice-payment-summary';\r\nimport { IOrderSummaryLines } from '@msdyn365-commerce-modules/order-summary-utilities';\r\nimport { ArrayExtensions } from '@msdyn365-commerce-modules/retail-actions';\r\nimport { INodeProps, Node } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nimport { ICartViewProps, IOrderSummaryErrors } from '@msdyn365-commerce-modules/cart/src/modules/cart/./cart';\r\nimport { ICartlinesViewProps } from '@msdyn365-commerce-modules/cart/src/modules/cart/./components/cart-line-items';\r\nimport { ICartLineItemViewProps } from '@msdyn365-commerce-modules/cart/src/modules/cart/./components/cart-line-items-promotion';\r\n//@ts-ignore\r\nimport { Primary } from '@churchofjesuschrist/eden-buttons';\r\n\r\nconst _renderCartlines = (\r\n cartLines: ICartlinesViewProps[] | undefined,\r\n cartEmptyText: string,\r\n CartlinesWrapper: INodeProps,\r\n storeSelector: React.ReactNode | undefined,\r\n backToShoppingButton: React.ReactNode,\r\n waitingComponent: React.ReactNode,\r\n cartLoadingStatus: string,\r\n cartDataResult: boolean\r\n): JSX.Element[] | JSX.Element => {\r\n if (cartLoadingStatus) {\r\n return <>{cartLoadingStatus};\r\n }\r\n if (cartLines) {\r\n return cartLines.map(cartLine => {\r\n return (\r\n
\r\n {cartLine.cartline}\r\n {storeSelector && cartLine.pickUpInStore ? (\r\n {cartLine.pickUpInStore.defaultComponent}\r\n ) : null}\r\n {cartLine.addToOrderTemplate ? (\r\n \r\n {cartLine.remove}\r\n {/* {cartLine.addToWishlist} */}\r\n {cartLine.addToOrderTemplate}\r\n \r\n ) : (\r\n <>\r\n {cartLine.remove}\r\n {/* {cartLine.addToWishlist} */}\r\n \r\n )}\r\n
\r\n );\r\n });\r\n }\r\n\r\n return cartDataResult ? (\r\n
\r\n

{cartEmptyText}

\r\n {backToShoppingButton}\r\n
\r\n ) : (\r\n <>{waitingComponent}\r\n );\r\n};\r\n\r\n/**\r\n * Method will render error block.\r\n * @param errorData -The order summary errors interface.\r\n * @returns Jsx element.\r\n */\r\nconst _renderErrorBlock = (errorData: IOrderSummaryErrors | undefined): JSX.Element | null => {\r\n if (!errorData || !ArrayExtensions.hasElements(errorData.errors)) {\r\n return null;\r\n }\r\n return (\r\n \r\n {errorData.header}\r\n {errorData.errors}\r\n \r\n );\r\n};\r\n\r\n/**\r\n * Method will render invoice summary lines.\r\n * @param invoiceSummaryLines -The invoicesummary lines interface.\r\n * @param OrderSummaryItems -The order summary items props.\r\n * @param props -The cartview props.\r\n * @returns Jsx element.\r\n */\r\nconst _renderInvoiceSummarylines = (\r\n invoiceSummaryLines: IInvoiceSummaryLines | undefined,\r\n OrderSummaryItems: INodeProps,\r\n props: ICartViewProps\r\n): JSX.Element | null => {\r\n if (!invoiceSummaryLines) {\r\n props.context.telemetry.error('InvoiceSummary content is empty, module wont render');\r\n return null;\r\n }\r\n return (\r\n \r\n {invoiceSummaryLines.invoices}\r\n {invoiceSummaryLines.giftCard}\r\n {invoiceSummaryLines.loyalty}\r\n {invoiceSummaryLines.orderTotal}\r\n \r\n );\r\n};\r\n\r\n/**\r\n * Method will render order summary lines.\r\n * @param orderSummaryLines -The ordersummary lines interface.\r\n * @param OrderSummaryItems -The order summary items props.\r\n * @param props -The cartview props.\r\n * @returns Jsx element.\r\n */\r\nconst _renderOrderSummarylines = (\r\n orderSummaryLines: IOrderSummaryLines | undefined,\r\n OrderSummaryItems: INodeProps,\r\n props: ICartViewProps\r\n): JSX.Element | null => {\r\n if (!orderSummaryLines) {\r\n props.context.telemetry.error('OrderSummary content is empty, module wont render');\r\n return null;\r\n }\r\n return (\r\n \r\n {/* {props.promoCode} */}\r\n {orderSummaryLines.subtotal}\r\n {orderSummaryLines.shipping}\r\n {orderSummaryLines.otherCharge}\r\n {orderSummaryLines.tax}\r\n {orderSummaryLines.totalDiscounts ? orderSummaryLines.totalDiscounts : null}\r\n {orderSummaryLines.orderTotal}\r\n \r\n );\r\n};\r\n\r\n/**\r\n * Method will render cart promotions.\r\n * @param promotions -The cartline item view props.\r\n * @returns Jsx element.\r\n */\r\nconst _renderPromotions = (promotions: ICartLineItemViewProps): JSX.Element | undefined => {\r\n return (\r\n <>\r\n \r\n {promotions.promotionMessage}\r\n {promotions.promotionSeeAllLink}\r\n {promotions.promotionDialog}\r\n \r\n \r\n );\r\n};\r\n\r\n/**\r\n * Method will render cartlines group title.\r\n * @param cartLine -The cartline view props.\r\n * @param titleSeparate -The title separate.\r\n * @returns Jsx element.\r\n */\r\nconst renderCartLinesGroupTitle = (cartLine: ICartlinesViewProps, titleSeparate: string) => {\r\n const isBopisSelected: boolean | undefined = cartLine.pickUpInStore?.isBopisSelected;\r\n return (\r\n <>\r\n \r\n {isBopisSelected ? (\r\n

\r\n {cartLine.pickUpInStore?.deliveryOption}\r\n {titleSeparate}\r\n {cartLine.pickUpInStore?.orgUnitName}\r\n

\r\n ) : null}\r\n
\r\n \r\n );\r\n};\r\n\r\n/**\r\n * Method will render cartlines groups header title.\r\n * @param pickUpText -The pickup text for group.\r\n * @param shippingText -The shipping text for group.\r\n * @param emailShippingText -The email shipping text for group.\r\n * @param titleSeparate -The title separator.\r\n * @param cartLine -The cartline view props.\r\n * @param emailDeliveryModeCode -The email delivery code from channel.\r\n * @returns Jsx element.\r\n */\r\nconst renderCartLinesGroupHeader = (\r\n pickUpText: string,\r\n shippingText: string,\r\n emailShippingText: string,\r\n titleSeparate: string,\r\n cartLine: ICartlinesViewProps,\r\n emailDeliveryModeCode?: string\r\n) => {\r\n const isBopisSelected: boolean | undefined = cartLine.pickUpInStore?.isBopisSelected;\r\n let groupTitle: string;\r\n\r\n groupTitle = isBopisSelected ? pickUpText : shippingText;\r\n groupTitle = cartLine.data && cartLine.data.cartline.DeliveryMode === emailDeliveryModeCode ? emailShippingText : groupTitle;\r\n\r\n return (\r\n <>\r\n
\r\n

\r\n

{groupTitle}

\r\n {renderCartLinesGroupTitle(cartLine, titleSeparate)}\r\n
\r\n \r\n );\r\n};\r\n\r\n/**\r\n * Method will render cartlines in groups.\r\n * @param props -The cartline.\r\n * @returns Jsx element.\r\n */\r\nconst renderCartLinesGroup = (props: ICartViewProps): JSX.Element | undefined => {\r\n if (props.cartLinesGroup && ArrayExtensions.hasElements(props.cartLinesGroup)) {\r\n return (\r\n
\r\n {props.cartLinesGroup.map(cartlines => {\r\n return (\r\n
\r\n {renderCartLinesGroupHeader(\r\n props.resources.pickUpText,\r\n props.resources.shippingText,\r\n props.resources.emailshippingText,\r\n props.resources.titleSeparate,\r\n cartlines[0],\r\n props.context.actionContext.requestContext.channel?.EmailDeliveryModeCode\r\n )}\r\n {_renderCartlines(\r\n cartlines,\r\n props.resources.emptyCartText,\r\n props.CartlinesWrapper,\r\n props.storeSelector,\r\n props.backToShoppingButton,\r\n props.waitingComponent,\r\n props.cartLoadingStatus,\r\n props.cartDataResult\r\n )}\r\n
\r\n );\r\n })}\r\n
\r\n );\r\n }\r\n\r\n return props.cartDataResult ? (\r\n
\r\n
\r\n

{props.resources.emptyCartText}

\r\n {/* {props.backToShoppingButton} */}\r\n {/*@ts-ignore */}\r\n \r\n
\r\n
\r\n ) : (\r\n <>{props.waitingComponent}\r\n );\r\n};\r\n\r\nconst CartView: React.FC = (props: ICartViewProps) => (\r\n
\r\n {props.title}\r\n {!props.cart?.hasInvoiceLine && props.promotionOptions && _renderPromotions(props.promotionOptions)}\r\n {props.multiplePickUpEnabled ? (\r\n renderCartLinesGroup(props)\r\n ) : (\r\n \r\n {_renderCartlines(\r\n props.cartlines,\r\n props.resources.emptyCartText,\r\n props.CartlinesWrapper,\r\n props.storeSelector,\r\n props.backToShoppingButton,\r\n props.waitingComponent,\r\n props.cartLoadingStatus,\r\n props.cartDataResult\r\n )}\r\n \r\n )}\r\n {props.orderSummaryHeading && (\r\n \r\n {props.orderSummaryHeading}\r\n {props.cart?.hasInvoiceLine\r\n ? _renderInvoiceSummarylines(props.invoiceSummaryLineitems, props.OrderSummaryItems, props)\r\n : _renderOrderSummarylines(props.orderSummaryLineitems, props.OrderSummaryItems, props)}\r\n {_renderErrorBlock(props.OrderSummaryErrors)}\r\n {props.checkoutAsSignInUserButton}\r\n {props.checkoutAsGuestButton}\r\n {props.backToShoppingButton}\r\n {props.createTemplateFromCartButton}\r\n \r\n )}\r\n {props.storeSelector}\r\n
\r\n);\r\n\r\nexport default CartView;\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport { Module, Node } from '@msdyn365-commerce-modules/utilities';\r\nimport React, { ReactNode } from 'react';\r\n\r\nimport styled from 'styled-components';\r\n\r\n// import { IFooterCategoryViewProps } from '@msdyn365-commerce-modules/footer/src/modules/footer-category/./footer-category';\r\nimport { IFooterCategoryViewProps } from './IFooterCategoryConfig';\r\n\r\nconst Division = styled.hr`\r\n margin-bottom: 61px;\r\n`;\r\n\r\nexport const FooterCategoryView: React.FC = props => {\r\n const { categories, FooterList, FooterListItem, data } = props;\r\n const policies = data.policy.result;\r\n\r\n if (!categories || categories.length === 0) {\r\n props.context.telemetry.error('Footer content is empty, module wont render');\r\n return null;\r\n }\r\n\r\n let privacyPolicy: any;\r\n let salesAndRefundPolicy: any;\r\n let termsOfUse: any;\r\n\r\n policies?.map(policy => {\r\n if (policy.Id === 5637145327) {\r\n privacyPolicy = policy;\r\n }\r\n if (policy.Id === 5637144576) {\r\n salesAndRefundPolicy = policy;\r\n }\r\n if (policy.Id === 5637145326) {\r\n termsOfUse = policy;\r\n }\r\n });\r\n\r\n return (\r\n \r\n {categories.map((category: ReactNode, index: number) => {\r\n return (\r\n \r\n {category}\r\n \r\n );\r\n })}\r\n \r\n {salesAndRefundPolicy?.DESCRIPTION}\r\n \r\n \r\n \r\n {termsOfUse?.DESCRIPTION}\r\n \r\n \r\n {privacyPolicy?.DESCRIPTION}\r\n \r\n \r\n \r\n \r\n Cookie Preferences\r\n \r\n \r\n
© 2024 by Intellectual Reserve, Inc. All rights reserved.
\r\n
\r\n );\r\n};\r\n\r\nexport default FooterCategoryView;\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport { Module, Node } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\nimport { getFallbackImageUrl } from '@msdyn365-commerce-modules/retail-actions';\r\nimport { Image } from '@msdyn365-commerce/core';\r\nimport {\r\n IHelp,\r\n IOrderSummary,\r\n IPaymentMethods\r\n} from '@msdyn365-commerce-modules/order-management/src/modules/order-confirmation/../../common';\r\nimport {\r\n IGroup,\r\n IGroupDelivery,\r\n IGroups\r\n} from '@msdyn365-commerce-modules/order-management/src/modules/order-confirmation/../../common/get-groups';\r\nimport { IOrderInformation } from '@msdyn365-commerce-modules/order-management/src/modules/order-confirmation/../../common/get-order-information';\r\nimport { ISalesLine } from '@msdyn365-commerce-modules/order-management/src/modules/order-confirmation/../../common/get-sales-line';\r\nimport { IOrderConfirmationViewProps } from '@msdyn365-commerce-modules/order-management/src/modules/order-confirmation/./order-confirmation';\r\nimport { ICoreContext } from '@msdyn365-commerce/core-internal';\r\n//@ts-ignore\r\nimport { Primary } from '@churchofjesuschrist/eden-buttons';\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\nimport styled from 'styled-components';\r\n\r\nimport { getAttributeValuesAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/ProductsDataActions.g';\r\n\r\nimport { getStoreHoursAsync, getRetailChannelAsync, getWarehouseAsync } from '../../../actions/DataActionExtension.g';\r\n\r\ninterface IGroupsExtended extends IGroups {\r\n context: ICoreContext;\r\n resources?: any;\r\n bopis?: any;\r\n}\r\n\r\ninterface IGroupExtended extends IGroup {\r\n context: ICoreContext;\r\n resources?: any;\r\n bopis?: any;\r\n}\r\n\r\ninterface ISalesLineExtended extends ISalesLine {\r\n context: ICoreContext;\r\n quantity?: number;\r\n resources: any;\r\n showAddress?: boolean;\r\n}\r\n\r\ninterface IOrderConfirmationExtended extends IOrderInformation {\r\n orderType: any;\r\n resources: any;\r\n}\r\n\r\ninterface IOrderConfirmationPaymentExtended extends IPaymentMethods {\r\n paymentKey?: any;\r\n orderType?: any;\r\n resources?: any;\r\n salesOrder?: any;\r\n bankDeposit?: any;\r\n}\r\ninterface IOrderConfirmationGroupExtended extends IGroupDelivery {\r\n salesLines?: any;\r\n bopis?: any;\r\n}\r\n\r\nexport const OrderConfirmationOrderInfomation: React.FC = ({\r\n orderInformationProps,\r\n receiptEmail,\r\n createdDate,\r\n channelReferenceId,\r\n orderType,\r\n resources\r\n}) => {\r\n const OrderWrapper = styled.div`\r\n display: flex !important;\r\n font-family: 'Ensign:Sans', Arial, 'noto sans', sans-serif;\r\n font-weight: normal;\r\n font-size: 16px;\r\n line-height: 21px;\r\n text-transform: none;\r\n display: block;\r\n margin-bottom: 10px;\r\n width: 100%;\r\n `;\r\n const ConfirmationId = styled.div`\r\n font-weight: 600;\r\n margin-left: 5px;\r\n `;\r\n //@ts-ignore\r\n const confirmationId = channelReferenceId.props.children[0].props.children[1].props.children;\r\n\r\n return (\r\n \r\n {createdDate}\r\n {orderType === 'Pickup Order' || orderType === 'Curbside pickup' ? (\r\n channelReferenceId\r\n ) : (\r\n \r\n
{resources.confirmationIdLabel}
\r\n {`${confirmationId}`}\r\n
\r\n )}\r\n\r\n {receiptEmail}\r\n
\r\n );\r\n};\r\n\r\nexport const OrderConfirmationSalesLine: React.FC = props => {\r\n const {\r\n data,\r\n // @ts-ignore\r\n count,\r\n context,\r\n quantity,\r\n showAddress,\r\n address\r\n } = props;\r\n const dimensions = data.product?.Dimensions?.map((dimension, index) => {\r\n return
{dimension.DimensionValue?.Value}
;\r\n });\r\n\r\n const fallbackImageUrl = getFallbackImageUrl(data.product?.ItemId, context.actionContext.requestContext.apiSettings);\r\n const SalesLineWrapper = styled.div`\r\n display: flex;\r\n width: 50%;\r\n margin-bottom: 15px;\r\n margin-top: 15px;\r\n\r\n @media (max-width: 660px) {\r\n width: 100%;\r\n justify-content: center;\r\n }\r\n @media (max-width: 840px) {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: flex-start;\r\n }\r\n `;\r\n\r\n const ItemDetails = styled.div`\r\n padding-left: 15px;\r\n @media (max-width: 840px) {\r\n padding-left: 0px;\r\n padding-bottom: 5px;\r\n }\r\n `;\r\n const ItemAddress = styled.div`\r\n border-left: 1px solid rgb(130, 121, 107);\r\n padding-left: 15px;\r\n @media (max-width: 840px) {\r\n padding-left: 0px;\r\n border-left: none;\r\n border-top: 1px solid rgb(130, 121, 107);\r\n padding-top: 5px;\r\n }\r\n `;\r\n\r\n //style settings for image can include width: w and height: h\r\n const imageGridSettings = { sm: { w: 100 } };\r\n\r\n return (\r\n \r\n {/* */}\r\n \r\n \r\n
{data.product?.Name}
\r\n {dimensions?.map((dimension, index) => dimension)}\r\n
\r\n {props.resources.quantityLabel}\r\n {quantity ? quantity : count}\r\n
\r\n
\r\n {data.salesStatus === 'processing' ? props.resources.processingLabel : data.salesStatus}\r\n
\r\n
\r\n {showAddress && {address}}\r\n
\r\n );\r\n};\r\n\r\nexport const OrderConfirmationGroupDelivery: React.FC = ({\r\n deliveryProps,\r\n heading,\r\n address,\r\n pickupDateTimeslot,\r\n salesLines,\r\n bopis\r\n}) => {\r\n return (\r\n \r\n {heading}\r\n {address}\r\n {bopis && bopis.PHONE &&
{bopis.PHONE}
}\r\n {pickupDateTimeslot}\r\n
\r\n );\r\n};\r\n\r\nexport const OrderConfirmationGroup: React.FC = ({\r\n groupProps,\r\n delivery,\r\n salesLinesProps,\r\n salesLines,\r\n data,\r\n context,\r\n resources,\r\n bopis\r\n}) => {\r\n const OrderGroup = styled.div`\r\n display: flex;\r\n justify-content: flex-start;\r\n flex-wrap: wrap;\r\n align-items: center;\r\n width: 100%;\r\n\r\n @media (max-width: 660px) {\r\n justify-content: space-evenly;\r\n }\r\n `;\r\n let isVisible: any = [];\r\n //@ts-ignore\r\n if (salesLines && salesLines[0] && salesLines[0].address && salesLines[0].address.props) {\r\n isVisible = salesLines.filter((saleLine: any, index: any) => {\r\n saleLine.data.product.ExtensionProperties[0].Value.BooleanValue === true ? true : null;\r\n return (\r\n saleLine.data.product.ExtensionProperties[0].Value.BooleanValue === true &&\r\n //@ts-ignore\r\n salesLines[index].address.props.address.Street !== salesLines[0].address.props.address.Street\r\n );\r\n // return saleLine.data.product.ExtensionProperties[0].Value.BooleanValue === true\r\n });\r\n }\r\n let deliveryLabel;\r\n if (isVisible.length !== 0 && delivery && delivery.shippingItemsToYou) {\r\n //@ts-ignore\r\n deliveryLabel = delivery.shippingItemsToYou.props.children.split(' ');\r\n deliveryLabel.shift();\r\n deliveryLabel.unshift(resources.deliveringLabel);\r\n // delivery.shippingItemsToYou.props.children = deliveryLabel.join(' ');\r\n }\r\n\r\n return (\r\n
\r\n {delivery && isVisible.length === 0 && }\r\n
{deliveryLabel && deliveryLabel.join(' ')}
\r\n {delivery && !deliveryLabel && delivery.shippingItemsToYou}\r\n {salesLines && (\r\n \r\n {salesLines.map((salesLine: ISalesLine, index) => {\r\n let showAddress = isVisible.length === 0 ? false : true;\r\n return (\r\n \r\n );\r\n })}\r\n \r\n )}\r\n
\r\n );\r\n};\r\n\r\nexport const OrderConfirmationGroups: React.FC = props => {\r\n return (\r\n \r\n {props.groups.map((group: IGroup, index: number) => (\r\n \r\n ))}\r\n \r\n );\r\n};\r\n\r\nexport const OrderConfirmationOrderSummary: React.FC = ({\r\n orderSummaryProps,\r\n heading,\r\n subtotal,\r\n shipping,\r\n tax,\r\n totalAmount,\r\n earnedPoints\r\n}) => {\r\n return (\r\n \r\n {heading}\r\n {subtotal}\r\n {shipping}\r\n {tax}\r\n {totalAmount}\r\n {earnedPoints}\r\n \r\n );\r\n};\r\n\r\nexport const OrderConfirmationPayment: React.FC = props => {\r\n const { paymentMethodsProps, title, methods, paymentKey, orderType, resources, salesOrder, bankDeposit } = props;\r\n if (paymentKey === '7') {\r\n if (\r\n salesOrder &&\r\n salesOrder.ShippingAddress &&\r\n salesOrder.ShippingAddress.ThreeLetterISORegionName &&\r\n salesOrder.ShippingAddress.ThreeLetterISORegionName === 'KOR'\r\n ) {\r\n return (\r\n \r\n {title}\r\n {resources.orderConfirmationKCP}\r\n \r\n );\r\n } else {\r\n return (\r\n \r\n {title}\r\n {methods}\r\n \r\n );\r\n }\r\n } else if (paymentKey !== '7' && salesOrder.AttributeValues[0].TextValue) {\r\n return (\r\n \r\n {title}\r\n {resources.unitOrderPayment}\r\n \r\n );\r\n } else if (bankDeposit && bankDeposit.length > 0) {\r\n return (\r\n \r\n {title}\r\n {resources.bankPayment}\r\n \r\n );\r\n } else if (\r\n paymentKey !== '7' &&\r\n (orderType === 'Pickup Order' ||\r\n orderType === 'Curbside pickup' ||\r\n orderType === 'Pickup' ||\r\n orderType === 'Curbside' ||\r\n orderType === 'Curbside Pick up' ||\r\n orderType === 'Pick Up')\r\n ) {\r\n return (\r\n \r\n {title}\r\n {resources.storePayment}\r\n \r\n );\r\n } else {\r\n return (\r\n \r\n {title}\r\n {methods}\r\n \r\n );\r\n }\r\n};\r\n\r\nexport const OrderConfirmationHelp: React.FC = ({ helpProps, needHelpLabel, helpLineNumberLabel, contactNumber }) => (\r\n \r\n {needHelpLabel}\r\n {helpLineNumberLabel}\r\n {contactNumber}\r\n \r\n);\r\n\r\nconst OrderConfirmationView: React.FC = props => {\r\n const [checkoutProducts, setCheckoutProducts] = React.useState([]);\r\n const [adobeCheck, setAdobeCheck] = React.useState(false);\r\n const [bopisStore, setBopisStore] = React.useState();\r\n const [channel, setChannel] = React.useState();\r\n const [warehouse, setWarehouse] = React.useState();\r\n const backToShoppingUrl = Msdyn365.getUrlSync('home', props.context.actionContext) || '';\r\n const orderType = props.groups?.groups[0].data.deliveryType;\r\n const BackToShoppingWrapper = styled.div`\r\n margin-bottom: 15px;\r\n `;\r\n let paymentKey =\r\n //@ts-ignore\r\n props.payment && props.payment.methods && props.payment.methods[0] && props.payment.methods[0].key\r\n ? //@ts-ignore\r\n props.payment.methods[0].key\r\n : '7';\r\n\r\n let bankDepositPrimary;\r\n let bankDepositSecondary;\r\n if (props.salesOrder && props.salesOrder.AttributeValues) {\r\n bankDepositPrimary = props.salesOrder.AttributeValues.filter((attribute: any) => {\r\n return attribute.Name === 'BankDepositPrimaryMessage';\r\n });\r\n bankDepositSecondary = props.salesOrder.AttributeValues.filter((attribute: any) => {\r\n return attribute.Name === 'BankDepositSecondaryMessage';\r\n });\r\n }\r\n const getSku = async (Product: any) => {\r\n const ctx = { callerContext: props.context.actionContext };\r\n const { ProductId, Price, ItemId } = Product.salesLine;\r\n const { Name, Dimensions } = Product.product;\r\n\r\n const productAttributes = await getAttributeValuesAsync(ctx, ProductId, props.context.request.channel!.RecordId, 0).catch(\r\n (err: any) => {\r\n console.log(err);\r\n }\r\n );\r\n const language = Dimensions?.filter((dimension: any) => {\r\n return dimension.DimensionTypeValue === 4;\r\n });\r\n const Style = Dimensions?.filter((dimension: any) => {\r\n return dimension.DimensionTypeValue === 1;\r\n });\r\n const Size = Dimensions?.filter((dimension: any) => {\r\n return dimension.DimensionTypeValue === 3;\r\n });\r\n let fulfillableSku;\r\n if (productAttributes) {\r\n fulfillableSku = productAttributes.filter((item: any) => {\r\n return item.RecordId === 5637144592;\r\n });\r\n }\r\n\r\n const adobeItem = {\r\n info: {\r\n sku: fulfillableSku ? fulfillableSku[0].TextValue : '',\r\n id: ItemId,\r\n name: Name,\r\n language: language && language[0] && language[0].DimensionValue ? language[0].DimensionValue.Value : '',\r\n style: Style && Style[0] && Style[0].DimensionValue ? Style[0].DimensionValue.Value : '',\r\n size: Size && Size[0] && Size[0].DimensionValue ? Size[0].DimensionValue.Value : ''\r\n },\r\n quantity: Product.salesLine.Quantity,\r\n price: {\r\n basePrice: Price\r\n }\r\n };\r\n\r\n setCheckoutProducts((prevState: any) => [...prevState, adobeItem]);\r\n };\r\n\r\n let paymentTypeName: any;\r\n\r\n if (paymentKey === '7' || (props.salesOrder && props.salesOrder.TenderLines && props.salesOrder.TenderLines[0].CardTypeId !== '')) {\r\n paymentTypeName = props.salesOrder && props.salesOrder.TenderLines ? 'Credit/Debit' : '';\r\n } else if (\r\n paymentKey !== '7' &&\r\n props.salesOrder?.AttributeValues &&\r\n // @ts-ignore\r\n props.salesOrder.AttributeValues[0].TextValue\r\n ) {\r\n //@ts-ignore\r\n paymentTypeName = 'Unit Order';\r\n } else if (bankDepositPrimary && bankDepositSecondary && bankDepositPrimary.length > 0) {\r\n paymentTypeName = 'Bank Deposit';\r\n } else if (\r\n paymentKey !== '7' &&\r\n //@ts-ignore\r\n (orderType === 'Pickup Order' ||\r\n //@ts-ignore\r\n orderType === 'Curbside pickup' ||\r\n //@ts-ignore\r\n orderType === 'Pickup' ||\r\n //@ts-ignore\r\n orderType === 'Curbside' ||\r\n //@ts-ignore\r\n orderType === 'Curbside Pick up' ||\r\n //@ts-ignore\r\n orderType === 'Pick Up')\r\n ) {\r\n //@ts-ignore\r\n paymentTypeName = props.resources.storePayment;\r\n }\r\n\r\n const AdobeAnalyticsCheckout = async () => {\r\n let orderId = window.sessionStorage.getItem('orderId');\r\n if (orderId !== props.salesOrder?.ChannelReferenceId && adobeCheck !== true) {\r\n if (window && window['digitalData']) {\r\n window['digitalData'].push({\r\n event: 'Purchase',\r\n transaction: {\r\n id: props.salesOrder ? props.salesOrder.ChannelReferenceId : '',\r\n item: checkoutProducts,\r\n total: {\r\n transactionTotal: props.salesOrder ? props.salesOrder.GrossAmount : '',\r\n currency: props.salesOrder ? props.salesOrder.CurrencyCode : ''\r\n },\r\n attributes: {\r\n paymentMethod: paymentTypeName\r\n }\r\n }\r\n });\r\n }\r\n }\r\n };\r\n\r\n React.useEffect(() => {\r\n const orderHistory = sessionStorage.getItem('orderHistory');\r\n if (props.salesLines && checkoutProducts.length === 0) {\r\n props.salesLines.map((item: any) => {\r\n void getSku(item.data);\r\n });\r\n }\r\n if (props.salesLines && checkoutProducts.length === props.salesLines.length && orderHistory !== 'true') {\r\n AdobeAnalyticsCheckout();\r\n setAdobeCheck(true);\r\n }\r\n if (props.salesOrder && adobeCheck === true) {\r\n window.sessionStorage.setItem('orderId', props.salesOrder.ChannelReferenceId ? props.salesOrder.ChannelReferenceId : '');\r\n }\r\n }, [checkoutProducts, adobeCheck]);\r\n let pickupStore: any;\r\n\r\n const getPickupStore = async () => {\r\n const ctx = { callerContext: props.context.actionContext };\r\n let stores = await getStoreHoursAsync(ctx, 'ZAF');\r\n if (stores) {\r\n pickupStore = stores.filter((store: any) => {\r\n return (\r\n store.ZIPCODE === props.salesOrder?.ShippingAddress?.ZipCode &&\r\n store.STREET === props.salesOrder?.ShippingAddress?.Street\r\n );\r\n });\r\n }\r\n setBopisStore(pickupStore[0]);\r\n\r\n return stores;\r\n };\r\n const getRetailChannel = async () => {\r\n const ctx = { callerContext: props.context.actionContext };\r\n\r\n // @ts-ignore\r\n const channel = await getRetailChannelAsync(ctx, props.context.request.channel?.RecordId);\r\n let warehouseId = props.salesOrder && props.salesOrder.InventoryLocationId ? props.salesOrder.InventoryLocationId : '';\r\n\r\n const warehouse = await getWarehouseAsync(ctx, warehouseId);\r\n\r\n setChannel(channel);\r\n setWarehouse(warehouse);\r\n };\r\n\r\n React.useEffect(() => {\r\n sessionStorage.setItem('taxIdCheck', 'false');\r\n sessionStorage.setItem('idNum', '');\r\n sessionStorage.setItem('TaxId', '');\r\n sessionStorage.setItem('taxIdRegion', '');\r\n sessionStorage.setItem('emailOnCart', 'false');\r\n sessionStorage.setItem('paymentTypeId', '');\r\n sessionStorage.setItem('email', '');\r\n sessionStorage.setItem('phone', '');\r\n\r\n void getPickupStore();\r\n void getRetailChannel();\r\n }, []);\r\n\r\n return (\r\n \r\n {props.heading}\r\n {props.alert}\r\n {props.loading}\r\n {warehouse && channel && props.orderInfomation && (\r\n
\r\n {channel && channel.NotificationCity ? (\r\n
\r\n

{channel.NotificationDescription || ''}

\r\n
{channel.NotificationStreet || ''}
\r\n
\r\n {channel.NotificationCity || ''}, {channel.NotificationState || ''} {channel.NotificationZipCode || ''}\r\n
\r\n
{channel.NotificationRegionId || ''}
\r\n
\r\n ) : null}\r\n {warehouse && warehouse.NotificationCity ? (\r\n
\r\n

{warehouse.NotificationDescription || ''}

\r\n
{warehouse.NotificationStreet || ''}
\r\n
\r\n {warehouse.NotificationCity || ''}, {warehouse.NotificationState || ''}{' '}\r\n {warehouse.NotificationZipCode || ''}\r\n
\r\n
{warehouse.NotificationRegionId || ''}
\r\n
\r\n ) : null}\r\n
\r\n )}\r\n {/* @ts-ignore */}\r\n {bankDepositSecondary && bankDepositSecondary[0] ? bankDepositSecondary[0].TextValue : ''}\r\n {bankDepositPrimary && bankDepositPrimary[0] ? (\r\n // @ts-ignore\r\n
\r\n ) : (\r\n ''\r\n )}\r\n
\r\n {props.orderInfomation && (\r\n \r\n )}\r\n \r\n {props.resources.backToShopping}\r\n \r\n {props.groups && (\r\n \r\n )}\r\n {props.payment && (\r\n \r\n )}\r\n {props.orderSummary && }\r\n {props.help && }\r\n \r\n );\r\n};\r\n\r\nexport default OrderConfirmationView;\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as React from 'react';\r\n\r\nimport { ILdsFooterData } from './lds-footer.data';\r\nimport { ILdsFooterProps } from './lds-footer.props.autogenerated';\r\n\r\nexport interface ILdsFooterViewProps extends ILdsFooterProps {}\r\n\r\n/**\r\n *\r\n * LdsFooter component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass LdsFooter extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n return this.props.renderView(this.props);\r\n }\r\n}\r\n\r\nexport default LdsFooter;\r\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport checkoutStateDataAction from './checkout-state-data-action';\n\nexport * from './checkout-state';\nexport * from './checkout-state-data-action';\nexport * from './module-state-manager';\nexport * from './checkout-utilities.data';\n\nexport { checkoutStateDataAction };\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport { Module, Node } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nimport { ICheckoutCustomerAccountPaymentViewProps } from '@msdyn365-commerce-modules/checkout/src/modules/checkout-customer-account-payment/./checkout-customer-account-payment';\r\nimport {\r\n IAccountPaymentEditViewForm,\r\n IGetAccountPaymentEditViewFormInput\r\n} from '@msdyn365-commerce-modules/checkout/src/modules/checkout-customer-account-payment/./components/get-account-payment-form-edit-mode';\r\nimport { IAccountPaymentSummaryViewForm } from '@msdyn365-commerce-modules/checkout/src/modules/checkout-customer-account-payment/./components/get-account-payment-form-summary-mode';\r\n//@ts-ignore\r\nimport { Primary } from '@churchofjesuschrist/eden-buttons';\r\nimport styled from 'styled-components';\r\n\r\nexport const SummaryForm: React.FC = ({\r\n formProps,\r\n label,\r\n paymentAmount,\r\n addPaymentButton,\r\n appliedLine,\r\n bottomBorder\r\n}) => (\r\n \r\n <>\r\n {label}\r\n {paymentAmount}\r\n {addPaymentButton}\r\n {appliedLine}\r\n {bottomBorder}\r\n \r\n \r\n);\r\n\r\nexport interface EditFormProps {\r\n accountForm: IAccountPaymentEditViewForm;\r\n submitProps?: IGetAccountPaymentEditViewFormInput;\r\n}\r\ninterface IEditFormExtended extends IAccountPaymentEditViewForm {\r\n paymentLabel?: string;\r\n paymentApplied?: string;\r\n}\r\n\r\nexport const EditForm: React.FC = ({\r\n formProps,\r\n addPaymentButton,\r\n alert,\r\n accountDetails,\r\n appliedLine,\r\n bottomBorder,\r\n paymentLabel,\r\n paymentApplied\r\n}) => {\r\n const PaymentButtonLabel = styled.div`\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: flex-end;\r\n margin-top: 15px;\r\n `;\r\n return (\r\n \r\n <>\r\n
\r\n \r\n {alert}\r\n {/*@ts-ignore */}\r\n {paymentLabel}\r\n \r\n {appliedLine ?
{paymentApplied}
: null}\r\n {/* {appliedLine} */}\r\n
\r\n {accountDetails}\r\n {bottomBorder}\r\n \r\n
\r\n );\r\n};\r\n\r\nconst CheckoutCustomerAccountView: React.FC = props => {\r\n // const { checkoutCustomerAccount, summaryView, editView, moduleState } = props;\r\n const { checkoutCustomerAccount, editView } = props;\r\n //@ts-ignore\r\n const paymentLabel = props.resources.applyPaymentLabel;\r\n //@ts-ignore\r\n const paymentApplied = props.resources.paymentApplied;\r\n return (\r\n \r\n {/* {moduleState.isReady && summaryView && } */}\r\n {editView && }\r\n \r\n );\r\n};\r\n\r\nexport default CheckoutCustomerAccountView;\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport * as MsDyn365 from '@msdyn365-commerce/core';\r\nimport { ICookieSetOptions, IImageDimension, ILocaleItems } from '@msdyn365-commerce/core-internal';\r\nimport { StringExtensions } from '@msdyn365-commerce-modules/retail-actions';\r\nimport {\r\n Button,\r\n getPayloadObject,\r\n getTelemetryAttributes,\r\n getTelemetryObject,\r\n IModuleProps,\r\n INodeProps,\r\n ITelemetryContent,\r\n Modal,\r\n ModalBody,\r\n ModalFooter,\r\n ModalHeader,\r\n onTelemetryClick\r\n} from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nimport { ILdsCountryPickerData } from './lds-country-picker.data';\r\nimport { IActionLinkData, ILdsCountryPickerProps } from './lds-country-picker.props.autogenerated';\r\n\r\n/**\r\n * CountryPicker view props interface.\r\n */\r\nexport interface ICountryPickerViewProps extends ILdsCountryPickerProps {\r\n modalContainer: IModuleProps;\r\n modalHeaderContainer: INodeProps;\r\n modalFooterContainer: INodeProps;\r\n modalBodyContainer: INodeProps;\r\n heading?: React.ReactNode;\r\n subheading?: React.ReactNode;\r\n link?: React.ReactNode;\r\n countryList?: React.ReactNode[];\r\n isModalOpen?: boolean;\r\n state?: ICountryPickerState;\r\n stayOnCurrentSiteButton?: React.ReactNode;\r\n onContinue: (value?: any, countryCode?: any) => void;\r\n}\r\n\r\n/**\r\n * ICountryPickerState: Interface for Country picker State.\r\n */\r\nexport interface ICountryPickerState {\r\n isModalOpen: boolean;\r\n}\r\n\r\n/**\r\n *\r\n * CountryPicker component.\r\n * @extends {React.PureComponent>}\r\n */\r\nexport class CountryPicker extends React.PureComponent, ICountryPickerState> {\r\n private readonly _telemetryContent: ITelemetryContent = getTelemetryObject(\r\n this.props.context.request.telemetryPageName!,\r\n this.props.friendlyName,\r\n this.props.telemetry\r\n );\r\n\r\n private readonly _preferredSiteStorageKey: string = '_msdyn365___site_';\r\n\r\n private readonly _cookieExpirationTime = 5_184_000;\r\n\r\n public constructor(props: ILdsCountryPickerProps) {\r\n super(props);\r\n let isCookieValueSet: boolean = false;\r\n if (props.context.request.cookies.get(this._preferredSiteStorageKey).value) {\r\n isCookieValueSet = true;\r\n }\r\n this.state = {\r\n isModalOpen: !isCookieValueSet && this.props.context.request.marketSettings !== undefined\r\n };\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n const { heading, subheading, countryList, actionLink } = this.props.config;\r\n\r\n const isConsentGiven = this.props.context.request.cookies.isConsentGiven();\r\n\r\n if (!isConsentGiven) {\r\n return null;\r\n }\r\n\r\n const countryPickerHeading = heading && (\r\n \r\n );\r\n\r\n const countryPickerSubHeading = subheading && (\r\n \r\n );\r\n\r\n const countryPickerActionLink = actionLink && this.createLink(actionLink);\r\n const currentSiteButton = (\r\n \r\n );\r\n\r\n const viewprops: ICountryPickerViewProps = {\r\n ...this.props,\r\n state: this.state,\r\n isModalOpen: this.state.isModalOpen,\r\n onContinue: this.handleClickCustom,\r\n modalContainer: {\r\n moduleProps: this.props,\r\n tag: Modal,\r\n className: 'ms-country-picker__dialog',\r\n isOpen: true,\r\n 'aria-label': 'country-picker',\r\n toggle: this.closeModal,\r\n modalTransition: { timeout: 0 },\r\n shouldUpdateFocusToFirstElement: true\r\n },\r\n modalHeaderContainer: {\r\n tag: ModalHeader,\r\n className: 'ms-country-picker__modal-header',\r\n toggle: this.closeModal,\r\n closeButtonTabIndex: 1\r\n },\r\n modalFooterContainer: {\r\n tag: ModalFooter,\r\n className: 'ms-countryPicker__modal-footer'\r\n },\r\n modalBodyContainer: {\r\n tag: ModalBody,\r\n className: 'ms-counrtyPicker__modal-body'\r\n },\r\n heading: countryPickerHeading,\r\n subheading: countryPickerSubHeading,\r\n link: countryPickerActionLink,\r\n countryList: countryList && this.renderCountryList(),\r\n stayOnCurrentSiteButton: currentSiteButton\r\n };\r\n\r\n return this.props.renderView(viewprops);\r\n }\r\n private handleClickCustom = (storageValue?: string, twoLetterCode?: string) => {\r\n this._writeToCookie(this._preferredSiteStorageKey, storageValue, twoLetterCode);\r\n };\r\n\r\n /**\r\n * Initiate close modal.\r\n */\r\n public readonly closeModal = (): void => {\r\n this.setState({\r\n isModalOpen: false\r\n });\r\n };\r\n\r\n public handleParagraphChange(event: MsDyn365.ContentEditableEvent): void {\r\n this.props.config.subheading = event.target.value;\r\n }\r\n\r\n public handleTextChange(event: MsDyn365.ContentEditableEvent): void {\r\n this.props.config.heading!.text = event.target.value;\r\n }\r\n\r\n public handleLinkTextChange(event: MsDyn365.ContentEditableEvent): void {\r\n if (this.props.config.actionLink?.linkText) {\r\n this.props.config.actionLink.linkText = event.target.value;\r\n }\r\n }\r\n\r\n public createLink(link?: IActionLinkData): React.ReactNode | null {\r\n if (!StringExtensions.isNullOrEmpty(link?.linkUrl.destinationUrl)) {\r\n const linkText = link?.linkText ?? '';\r\n const payLoad = getPayloadObject('click', this._telemetryContent, '', '');\r\n const attributes = getTelemetryAttributes(this._telemetryContent, payLoad);\r\n const editableLink: MsDyn365.ILinksData = {\r\n ariaLabel: link?.ariaLabel,\r\n className: 'ms-countryPicker__link',\r\n linkText,\r\n linkUrl: link?.linkUrl.destinationUrl,\r\n openInNewTab: link?.openInNewTab,\r\n role: 'link',\r\n additionalProperties: attributes!,\r\n onClick: onTelemetryClick(this._telemetryContent, payLoad, linkText)\r\n };\r\n return (\r\n \r\n );\r\n }\r\n return null;\r\n }\r\n\r\n public renderCountryList(): React.ReactNode[] | undefined {\r\n const marketSettings = this.props.context.request.marketSettings;\r\n if (!marketSettings) {\r\n return undefined;\r\n }\r\n const localeItems = marketSettings.localeItems;\r\n const countryLinks = localeItems.map((value: ILocaleItems) => {\r\n return this.renderCountry(value);\r\n });\r\n\r\n return countryLinks;\r\n }\r\n\r\n public renderCountry(localeItem: ILocaleItems): React.ReactNode | null {\r\n const countryList = this.props.config.countryList;\r\n let baseUrl = localeItem.localeBaseUrl;\r\n baseUrl = this._appendProtocolToUrl(baseUrl);\r\n const matchedCountryItem = countryList?.find(item => item.url === baseUrl);\r\n if (!matchedCountryItem) {\r\n return null;\r\n }\r\n const imageSize: IImageDimension = { q: 'w=48&h=48&m=6', w: 0, h: 0 };\r\n const defaultImageSettings: MsDyn365.IImageSettings = {\r\n viewports: {\r\n xs: imageSize,\r\n lg: imageSize,\r\n xl: imageSize\r\n },\r\n lazyload: true\r\n };\r\n const image = matchedCountryItem.image;\r\n const imageProps = {\r\n gridSettings: this.props.context.request.gridSettings!,\r\n imageSettings: image?.imageSettings ?? defaultImageSettings\r\n };\r\n return (\r\n \r\n {image && (\r\n \r\n )}\r\n
\r\n {matchedCountryItem.displayString}\r\n {matchedCountryItem.displaySubString}\r\n
\r\n \r\n );\r\n }\r\n\r\n /**\r\n * Writes the current site base url to cookie and closes the country picker modal dialog.\r\n */\r\n private readonly _handleStayOnSiteButtonClick = (): void => {\r\n const currentBaseUrl = this.props.context.request.marketSettings?.currentBaseUrl;\r\n if (currentBaseUrl) {\r\n const urlToStore = this._appendProtocolToUrl(currentBaseUrl);\r\n this._writeToCookie(this._preferredSiteStorageKey, urlToStore);\r\n }\r\n this.closeModal();\r\n };\r\n\r\n /**\r\n * Handles click event of country selection.\r\n * @param storageKey - Cookie storage key.\r\n * @param storageValue - Preffered site url.\r\n * @returns - This method just writes the cookie to the browser.\r\n */\r\n private readonly _handleClick = (storageKey?: string, storageValue?: string) => () => {\r\n this._writeToCookie(storageKey, storageValue);\r\n };\r\n\r\n /**\r\n * Handles click event of country selection.\r\n * @param storageKey - Cookie storage key.\r\n * @param storageValue - Preffered site url.\r\n */\r\n private readonly _writeToCookie = (storageKey?: string, storageValue?: string, twoLetterCode?: string): void => {\r\n if (!storageKey || !storageValue) {\r\n return;\r\n }\r\n const cookieOptions: ICookieSetOptions = { secure: true, sameSite: 'none' };\r\n cookieOptions.maxAge = this._cookieExpirationTime;\r\n this.props.context.request.cookies.set(storageKey, storageValue, cookieOptions);\r\n this.props.context.request.cookies.set('d365mkt', twoLetterCode, cookieOptions);\r\n };\r\n\r\n /**\r\n * Appends protocol to an url.\r\n * @param baseUrl - Url to be formatted.\r\n * @returns - URL after appending protocol.\r\n */\r\n private readonly _appendProtocolToUrl = (baseUrl: string): string => {\r\n return !baseUrl.includes('https://') ? `https://${baseUrl}` : baseUrl;\r\n };\r\n}\r\n\r\nexport default CountryPicker;\r\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { IModule } from '@msdyn365-commerce/core';\nimport { ArrayExtensions } from '@msdyn365-commerce-modules/retail-actions';\nimport isMatch from 'lodash/isMatch';\nimport { observer } from 'mobx-react';\nimport * as React from 'react';\n\nimport { getModuleStates, updateModuleStates } from './module-state';\nimport { IModuleState, IModuleStateManager, IModuleStateProps, IModuleStates } from './module-state.data';\n\nexport interface IProps extends IModule, IModuleStateProps {\n enableControl?: boolean;\n}\n\nconst sectionContainerModuleId = 'section-container';\nconst paymentInstrumentModuleId = 'payment-instrument';\n\nconst withModuleState =

(WrappedComponent: React.ComponentType

): React.ComponentType

=> {\n /**\n *\n * ModuleState component.\n * @extends {React.Component

}\n */\n @observer\n class ModuleState extends React.Component

{\n constructor(props: P) {\n super(props);\n this.initializeState();\n }\n\n public shouldComponentUpdate(nextProps: IModuleStateProps): boolean {\n if (this.props === nextProps) {\n return false;\n }\n return true;\n }\n\n public render(): JSX.Element | null {\n const { id } = this.props;\n return ;\n }\n\n private readonly initializeState = (): void => {\n const { id, typeName, context } = this.props;\n const states = getModuleStates(context.actionContext);\n if (!states) {\n this.props.telemetry.error('withModuleState initializeState() - states not found');\n return;\n }\n\n if (states[id]) {\n // State has been initialized\n return;\n }\n\n updateModuleStates(\n {\n ...states,\n [id]: {\n id,\n typeName,\n hasInitialized: false,\n hasError: false,\n isRequired: true,\n isCancellable: true,\n isSubmitContainer: false,\n status: undefined,\n childIds: []\n }\n },\n context.actionContext\n );\n };\n\n /**\n * GetModuleStateManager\n * Get module state manager by id.\n * @param id\n */\n private readonly getModuleStateManager = (id: string): IModuleStateManager => {\n const moduleState = this.get()[id];\n return {\n ...moduleState!,\n hasInitialized: this.validate(id, { hasInitialized: true }, true), // All has initialized is initialized\n hasError: this.validate(id, { hasError: true }), // Partial has error is error\n isReady: this.validate(id, { status: 'ready' }, true, true), // All ready is ready (exclued disabled and skipped)\n isUpdating: this.validate(id, { status: 'updating' }), // Partial updating is updating\n isPending: this.validate(id, { status: 'pending' }), // Partial pending is pending\n isSkipped: this.validate(id, { status: 'skipped' }, true, true), // All skipped is skipped (exclued disabled)\n isDisabled: this.validate(id, { status: 'disabled' }, true), // All disabled is disabled\n isCancelAllowed: this.validate(id, { isCancellable: true }, true, true), // Partial not allowed is not allowed\n shouldSubmitContainer: this.validate(id, { isSubmitContainer: true }), // Partial submit is submit.\n hasExternalSubmitGroup: this.hasExternalSubmitGroup(),\n hasModuleState: this.hasModuleState(id),\n setIsRequired: (value: boolean): void => {\n this.update(id, { isRequired: value });\n },\n setIsCancellable: (value: boolean): void => {\n this.update(id, { isCancellable: value });\n },\n setIsSubmitContainer: (value: boolean): void => {\n this.update(id, { isSubmitContainer: value });\n },\n setHasError: (value: boolean): void => {\n this.update(id, { hasError: value });\n },\n onReady: (): void => {\n this.update(id, { status: 'ready' });\n },\n onUpdating: (): void => {\n this.update(id, { status: 'updating' });\n },\n onPending: (): void => {\n this.update(id, { status: 'pending' });\n },\n onSkip: (): void => {\n this.update(id, { status: 'skipped' });\n },\n onDisable: (): void => {\n this.update(id, { status: 'disabled' });\n },\n getModule: (moduleId: string): IModuleStateManager => this.getModuleStateManager(moduleId),\n getModuleByTypeName: (typeName: string): IModuleStateManager => this.getModuleStateManagerByTypeName(typeName),\n init: (options?: Partial): void => {\n if (moduleState?.hasInitialized) {\n // State has been initialized\n return;\n }\n this.update(id, {\n hasInitialized: true,\n ...options\n });\n }\n };\n };\n\n /**\n * GetModuleStateManagerByTypeName\n * Get module state manager by type name.\n * @param typeName\n */\n private readonly getModuleStateManagerByTypeName = (typeName: string): IModuleStateManager => {\n const moduleStates = getModuleStates(this.props.context.actionContext);\n const moduleState = Object.values(moduleStates).find(_moduleState => _moduleState?.typeName === typeName);\n return this.getModuleStateManager((moduleState && moduleState.id) || '');\n };\n\n /**\n * Get\n * Get all module states.\n */\n private readonly get = (): IModuleStates => {\n return getModuleStates(this.props.context.actionContext);\n };\n\n /**\n * Update\n * Update module state.\n * @param id\n * @param value\n */\n private readonly update = (id: string, value: Partial): void => {\n // Console.log('withModuleState - update', id, value);\n const modules = this.get();\n if (!modules[id]) {\n this.props.telemetry.error(`withModuleState update() - Module state with id ${id} is not found.`);\n return;\n }\n modules[id] = {\n ...modules[id]!,\n ...value\n };\n };\n\n private readonly _validateLeaf = (id: string, source: Partial): boolean => {\n const modules = this.get();\n const module = modules[id];\n if (!module) {\n return false;\n }\n return isMatch(module, source);\n };\n\n private readonly _validateContainer = (\n id: string,\n source: Partial,\n allMatched?: boolean,\n skipSkippableItem?: boolean\n ): boolean => {\n const modules = this.get();\n const module = modules[id];\n if (!module) {\n // Module doesn't has module state\n return !!allMatched;\n }\n\n if (skipSkippableItem && (module.status === 'disabled' || module.status === 'skipped')) {\n // Skip disabled or skipped modules\n return !!allMatched;\n }\n\n // It is leaf module\n if (!module.childIds || module.childIds.length === 0) {\n return this._validateLeaf(id, source);\n }\n\n let childIds = module.childIds;\n\n if (this.props.context.app.config.shouldEnableSinglePaymentAuthorizationCheckout) {\n // For new checkout flow, we bypass the isReady check for payment section container to enable the place order button.\n childIds = childIds.filter(childId => !this._isPaymentSectionContainer(childId));\n }\n\n // It is container module\n const method = allMatched ? 'every' : 'some';\n return childIds[method](childId => this._validateContainer(childId, source, allMatched, skipSkippableItem));\n };\n\n /**\n * Check if it is a section container with payment module.\n * @param moduleId -- The id of the module.\n * @returns If it is a section container with payment module.\n */\n private readonly _isPaymentSectionContainer = (moduleId: string): boolean => {\n if (!moduleId.includes(sectionContainerModuleId)) {\n return false;\n }\n\n const modules = this.get();\n const module = modules[moduleId];\n\n if (module && ArrayExtensions.hasElements(module.childIds.filter(childId => childId.includes(paymentInstrumentModuleId)))) {\n return true;\n }\n\n return false;\n };\n\n /**\n * Validate\n * Validate current module and all its child module match the provided condition.\n * @param id\n * @param source\n * @param allMatched\n * @param skipSkippableItem\n */\n private readonly validate = (\n id: string,\n source: Partial,\n allMatched?: boolean,\n skipSkippableItem?: boolean\n ): boolean => {\n const modules = this.get();\n const module = modules[id];\n if (!module) {\n return false;\n }\n\n // It is leaf module\n if (!module.childIds || module.childIds.length === 0) {\n return this._validateLeaf(id, source);\n }\n\n // It is container module\n return this._validateContainer(id, source, allMatched, skipSkippableItem);\n };\n\n /**\n * HasExternalSubmitGroup\n * Module will use external submit group.\n */\n private readonly hasExternalSubmitGroup = (): boolean => {\n return !!this.props.enableControl;\n };\n\n /**\n * HasModuleState\n * Module is using module state manager.\n * @param id\n */\n private readonly hasModuleState = (id: string): boolean => {\n const modules = this.get();\n const module = modules[id];\n return !!module;\n };\n }\n\n return ModuleState;\n};\n\nexport default withModuleState;\n","import { IRequestContext } from '@msdyn365-commerce/core-internal';\r\nimport { ILocale } from '../../interfaces/ILocale';\r\n\r\nexport const setLocale = (locale: ILocale, requestContext: IRequestContext) => {\r\n // TODO: Set locale in a cookie, then add it to the URL\r\n\r\n if (typeof window !== 'undefined') {\r\n const path = window.location.pathname;\r\n const pathSplit = path.split('/');\r\n pathSplit.shift();\r\n pathSplit.splice(0, 2, locale.country, locale.language);\r\n const pathName = `/${pathSplit.join('/')}`;\r\n\r\n window.document.cookie = `${requestContext.canonicalDomain}/${locale.country}/${locale.language};max-age=31536000; Secure`;\r\n requestContext.sitePath = pathName;\r\n\r\n window.location.assign(pathName);\r\n }\r\n\r\n // const cookieName: string = '_msdyn365___site_';\r\n\r\n // const cookieExpirationInSeconds: number = 5_184_000;\r\n\r\n // if (this.props.context.request.cookies.isConsentGiven()) {\r\n // const cookieConfig = { maxAge: cookieExpirationInSeconds };\r\n // this.props.context.request.cookies.set(cookieName, e.currentTarget.href, cookieConfig);\r\n // }\r\n // window.location.assign(e.currentTarget.href);\r\n};\r\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { IGiftCardExtend } from '@msdyn365-commerce/global-state';\nimport { Address, GiftCard, TenderLine, TokenizedPaymentCard } from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\nimport { action, computed, observable } from 'mobx';\n\n/**\n * State information related to what is needed to succesfully perform a checkout.\n */\nexport class CheckoutState {\n @observable private _tokenizedPaymentCard: TokenizedPaymentCard | undefined;\n\n @computed public get tokenizedPaymentCard(): Readonly | undefined {\n return this._tokenizedPaymentCard;\n }\n\n @observable private _tenderLine: TenderLine | undefined;\n\n @computed public get tenderLine(): Readonly | undefined {\n return this._tenderLine;\n }\n\n @observable private _billingAddress: Address | undefined;\n\n @computed public get billingAddress(): Readonly

| undefined {\n return this._billingAddress;\n }\n\n @observable private _shippingAddress: Address | undefined;\n\n @computed public get shippingAddress(): Readonly
| undefined {\n return this._shippingAddress;\n }\n\n @observable private _cardPrefix: string | undefined;\n\n @computed public get cardPrefix(): Readonly | undefined {\n return this._cardPrefix;\n }\n\n @observable private _giftCards: GiftCard[] = [];\n\n @computed public get giftCards(): readonly GiftCard[] {\n return this._giftCards;\n }\n\n @observable private _giftCardExtends: IGiftCardExtend[] = [];\n\n @computed public get giftCardExtends(): readonly IGiftCardExtend[] {\n return this._giftCardExtends;\n }\n\n @observable private _loyaltyCardNumber?: string;\n\n @computed public get loyaltyCardNumber(): Readonly | undefined {\n return this._loyaltyCardNumber;\n }\n\n @observable private _loyaltyAmount: number = 0;\n\n @computed public get loyaltyAmount(): Readonly | number {\n return this._loyaltyAmount;\n }\n\n @observable private _guestCheckoutEmail: string = '';\n\n @computed public get guestCheckoutEmail(): Readonly | string {\n return this._guestCheckoutEmail;\n }\n\n @observable private _isTermsAndConditionAccepted: boolean = false;\n\n @computed public get isTermsAndConditionAccepted(): Readonly | boolean {\n return this._isTermsAndConditionAccepted;\n }\n\n @observable private _customerAccountAmount: number = 0;\n\n @computed public get customerAccountAmount(): Readonly | number {\n return this._customerAccountAmount;\n }\n\n @action\n public updateTokenizedPaymentCard(newTokenizedPaymentCard: TokenizedPaymentCard): void {\n this._tokenizedPaymentCard = newTokenizedPaymentCard;\n }\n\n @action\n public updateTenderLine(newTenderLine: TenderLine | undefined): void {\n this._tenderLine = newTenderLine;\n }\n\n @action\n public updateShippingAddress(newShippingAddress: Address): void {\n this._shippingAddress = newShippingAddress;\n }\n\n @action\n public updateBillingAddress(newBillingAddress: Address): void {\n this._billingAddress = newBillingAddress;\n }\n\n @action\n public updateCardPrefix(newCardPrefix: string): void {\n this._cardPrefix = newCardPrefix;\n }\n\n @action\n public removeGiftCard(giftCardNumber: string): void {\n this._giftCards = this._giftCards.filter(giftCard => giftCard.Id !== giftCardNumber);\n }\n\n @action\n public removeGiftCardExtend(giftCardNumber: string): void {\n this._giftCardExtends = this._giftCardExtends.filter(giftCard => giftCard.Id !== giftCardNumber);\n }\n\n @action\n public addGiftCard(giftCard: GiftCard): void {\n this._giftCards = [giftCard, ...this._giftCards];\n }\n\n @action\n public addGiftCardExtend(giftCard: IGiftCardExtend): void {\n this._giftCardExtends = [giftCard, ...this._giftCards];\n }\n\n @action\n public updateLoyaltyCardNumber(newLoyaltyCardNumber: string): void {\n this._loyaltyCardNumber = newLoyaltyCardNumber;\n }\n\n @action\n public updateLoyaltyAmount(newAmount: number): void {\n this._loyaltyAmount = newAmount;\n }\n\n @action\n public updateGuestCheckoutEmail(newGuestCheckoutEmail: string): void {\n this._guestCheckoutEmail = newGuestCheckoutEmail;\n }\n\n @action\n public updateTermsAndConditionsAcceptance(newIsTermsAndConditionAccepted: boolean): void {\n this._isTermsAndConditionAccepted = newIsTermsAndConditionAccepted;\n }\n\n @action\n public updateCustomerAccountAmount(newAmount: number): void {\n this._customerAccountAmount = newAmount;\n }\n}\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport { Module, Node } from '@msdyn365-commerce-modules/utilities';\r\n// import { Module } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n// import { getCartState } from '@msdyn365-commerce/global-state';\r\nimport { countryCodeList } from './countryList';\r\n\r\nimport { ICountryPickerViewProps } from './lds-country-picker';\r\nimport { CountryOption } from '../../interfaces/country-option.interface';\r\nimport { LanguageOption } from '../../interfaces/language-option.interface';\r\n// @ts-ignore\r\nimport { Primary } from '@churchofjesuschrist/eden-buttons';\r\nimport { setLocale } from '../../helpers/localization/locale.helper';\r\nimport { ILocale } from '../../interfaces/ILocale';\r\n\r\n/**\r\n * Functional component which renders country picker module.\r\n * @param props - Configuration for the country picker component.\r\n * @returns React.FC - Functional component of the country picker module.\r\n */\r\nexport const countryPickerView: React.FC = (props: ICountryPickerViewProps) => {\r\n const [country, setCountry] = React.useState();\r\n const [language, setLanguage] = React.useState();\r\n const [cartState, setCartState] = React.useState();\r\n const [selectedCountry, setSelectedCountry] = React.useState('USA');\r\n const [selectedLanguage, setSelectedLanguage] = React.useState('EN');\r\n\r\n const getCurrentCountry = async () => {\r\n const countryCodes: any = countryCodeList.filter((country: any) => {\r\n return country.twoLetterCode === props.context.request.marketSettings?.countryRegion;\r\n });\r\n let country;\r\n // @ts-ignore\r\n if (props.data.countries.result && countryCodes && countryCodes[0]) {\r\n //@ts-ignore\r\n country = props.data.countries.result.filter(country => {\r\n // if (userCountry && userCountry[0]) {\r\n //@ts-ignore\r\n // return country.countryRegionId === userCountry[0].Value.StringValue;\r\n return country.countryRegionId === countryCodes[0].threeLetterCode;\r\n // } else {\r\n // return;\r\n // }\r\n });\r\n }\r\n\r\n if (country) {\r\n setSelectedCountry(country[0].countryRegionId);\r\n //@ts-ignore\r\n setCountry({ value: country[0].countryRegionId, label: country[0].CountryName });\r\n\r\n setCartState(cartState);\r\n }\r\n };\r\n const getCurrentLanguage = async () => {\r\n const currentLanguage =\r\n props.context.request.locale.length > 2 ? props.context.request.locale.split('-')[0] : props.context.request.locale;\r\n let language;\r\n // @ts-ignore\r\n if (props.data.languages.result) {\r\n // @ts-ignore\r\n language = props.data.languages.result.filter(language => {\r\n const langId = language.LanguageId!.split('-');\r\n\r\n return langId[0] === currentLanguage;\r\n });\r\n }\r\n if (language && language[0]) {\r\n setSelectedLanguage(language[0].LanguageId || 'en');\r\n //@ts-ignore\r\n setLanguage({ value: language[0].LanguageId, label: language[0].languageName });\r\n }\r\n return currentLanguage;\r\n };\r\n React.useEffect(() => {\r\n void getCurrentCountry();\r\n void getCurrentLanguage();\r\n // @ts-ignore\r\n }, [props.data.languages.status, props.data.countries.status]);\r\n const {\r\n isModalOpen,\r\n modalContainer,\r\n // modalHeaderContainer,\r\n // modalBodyContainer,\r\n heading,\r\n modalFooterContainer,\r\n subheading,\r\n link,\r\n countryList,\r\n stayOnCurrentSiteButton,\r\n resources\r\n } = props;\r\n\r\n // @ts-ignore\r\n const countriesList = props?.data?.countries?.result;\r\n // @ts-ignore\r\n const languagesList = props?.data?.languages?.result;\r\n\r\n const countries: CountryOption[] = [];\r\n const languages: LanguageOption[] = [];\r\n\r\n countriesList?.map((country: any) => {\r\n const option: CountryOption = { label: country.CountryName || '', value: country.countryRegionId || '', country: country };\r\n countries.push(option);\r\n });\r\n\r\n languagesList?.map((language: any) => {\r\n const option: LanguageOption = { label: language.languageName || '', value: language.LanguageId || '', language: language };\r\n languages.push(option);\r\n });\r\n\r\n let sortedRegions: any;\r\n if (countries) {\r\n sortedRegions = countries.sort((a, b) => (a.label > b.label ? 1 : b.label > a.label ? -1 : 0));\r\n }\r\n let sortedLanguages: any;\r\n if (languages) {\r\n sortedLanguages = languages.sort((a, b) => (a.label > b.label ? 1 : b.label > a.label ? -1 : 0));\r\n }\r\n\r\n const onCountryChange = (option: any) => {\r\n const country = countries.filter(country => {\r\n return country.value === option;\r\n });\r\n\r\n setCountry(country[0]);\r\n };\r\n\r\n const onLanguageChange = (option: any) => {\r\n const language = languages.filter(lang => {\r\n return lang.value === option;\r\n });\r\n\r\n setLanguage(language[0]);\r\n };\r\n\r\n const setLocalization = () => {\r\n const countryCodes = countryCodeList.filter((countryCodeItem: any) => {\r\n return countryCodeItem.threeLetterCode === country?.value;\r\n });\r\n // const urlForCookie = props.context.request.url.requestUrl.origin;\r\n const urlForCookie = window.location.origin;\r\n let cookieUrl: string;\r\n if (\r\n selectedCountry.toLocaleLowerCase() === props.config.baseURLCountry.toLocaleLowerCase() &&\r\n selectedLanguage === props.config.baseURLLanguage.toLocaleLowerCase()\r\n ) {\r\n cookieUrl = urlForCookie;\r\n } else {\r\n cookieUrl = `${urlForCookie}/${country?.value.toLocaleLowerCase() || 'usa'}/${language?.value || 'en'}`;\r\n }\r\n\r\n props.onContinue(cookieUrl, countryCodes[0].twoLetterCode);\r\n const locale: ILocale = {\r\n country: country?.value.toLocaleLowerCase() || '',\r\n language: language?.value || ''\r\n };\r\n if (\r\n selectedCountry.toLocaleLowerCase() === props.config.baseURLCountry.toLocaleLowerCase() &&\r\n selectedLanguage === props.config.baseURLLanguage.toLocaleLowerCase()\r\n ) {\r\n window.location.assign(urlForCookie);\r\n } else {\r\n setLocale(locale, props.context.actionContext.requestContext);\r\n }\r\n };\r\n return isModalOpen && countryList ? (\r\n \r\n
\r\n {heading}\r\n {subheading}\r\n
\r\n
\r\n

\r\n {resources.countryLanguageDescriptionOne} {resources.countryLanguageDescriptionTwo}\r\n

\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n

\r\n {resources.countryLanguageDescriptionThree}{' '}\r\n \r\n {props.config.globalServiceCenterLink?.linkText}\r\n {' '}\r\n {resources.countryLanguageDescriptionFour}{' '}\r\n \r\n {props.config.distributionServiceLink?.linkText}\r\n \r\n {resources.countryLanguageDescriptionFive ? resources.countryLanguageDescriptionFive : ''}\r\n

\r\n
\r\n setLocalization()} fullWidth={true}>\r\n {resources.countryLanguageContinueButtonText}\r\n \r\n {/* \r\n {heading}\r\n {subheading}\r\n \r\n \r\n {countryList.map(country => (\r\n <>{country}\r\n ))}\r\n */}\r\n \r\n {stayOnCurrentSiteButton}\r\n {link}\r\n \r\n
\r\n ) : null;\r\n};\r\n\r\nexport default countryPickerView;\r\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { CacheType, IActionContext, IActionInput } from '@msdyn365-commerce/core';\n\nimport { IModuleStates } from './module-state.data';\n\n/**\n * GetModulesInput.\n */\nexport class ModuleStatesCacheKey implements IActionInput {\n public getCacheKey = () => 'ModuleState';\n\n public getCacheObjectType = () => 'ModuleState';\n\n public dataCacheType = (): CacheType => 'none';\n}\n\nexport function getModuleStates(ctx: IActionContext): IModuleStates {\n const cacheKey = new ModuleStatesCacheKey();\n\n let moduleStates = ctx.get(cacheKey.getCacheObjectType(), cacheKey.getCacheKey());\n if (moduleStates) {\n return moduleStates;\n }\n ctx.update(cacheKey, {});\n moduleStates = ctx.get(cacheKey.getCacheObjectType(), cacheKey.getCacheKey());\n return moduleStates;\n}\n\nexport function updateModuleStates(value: IModuleStates, ctx: IActionContext): void {\n const cacheKey = new ModuleStatesCacheKey();\n ctx.update(cacheKey, value);\n}\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport { getPayloadObject, getTelemetryAttributes, IPayLoad, ITelemetryContent } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n//@ts-ignore\r\nimport { Primary } from '@churchofjesuschrist/eden-buttons';\r\n\r\nexport interface ICookieComplianceAcceptButton {\r\n acceptCookiesButtonText?: string;\r\n acceptCookiesButtonAriaLabel?: string;\r\n\r\n /**\r\n * The telemetry content\r\n */\r\n telemetryContent?: ITelemetryContent;\r\n onClose(): void;\r\n}\r\n\r\nexport const CookieComplianceAcceptButton: React.FC = ({\r\n acceptCookiesButtonText,\r\n acceptCookiesButtonAriaLabel,\r\n telemetryContent,\r\n onClose\r\n}) => {\r\n const payLoad: IPayLoad = getPayloadObject('click', telemetryContent!, 'accept cookies');\r\n const attributes = getTelemetryAttributes(telemetryContent!, payLoad);\r\n\r\n return (\r\n \r\n {acceptCookiesButtonText}\r\n \r\n );\r\n};\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\nimport { getPayloadObject, getTelemetryAttributes, ITelemetryContent, onTelemetryClick } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nimport { IActionLinksData } from '../lds-cookie-compliance.props.autogenerated';\r\n\r\nexport interface ICookieComplianceLinks {\r\n links: IActionLinksData[];\r\n requestContext: Msdyn365.IRequestContext;\r\n telemetryContent: ITelemetryContent;\r\n onTextChange?(index: number): (event: Msdyn365.ContentEditableEvent) => void;\r\n}\r\n\r\n/**\r\n *\r\n * ContentCardLinks component.\r\n * @extends {React.PureComponent}\r\n */\r\nexport class CookieComplianceLinks extends React.PureComponent {\r\n public render(): JSX.Element {\r\n const editableLinks = this._mapEditableLinks(this.props.links);\r\n return (\r\n \r\n {editableLinks && editableLinks.length > 0 ? (\r\n \r\n ) : null}\r\n \r\n );\r\n }\r\n\r\n private readonly _mapEditableLinks = (linkdata: IActionLinksData[]): Msdyn365.ILinksData[] | null => {\r\n if (!linkdata || linkdata.length === 0) {\r\n return null;\r\n }\r\n const editableLinks: Msdyn365.ILinksData[] = [];\r\n linkdata.forEach((link, index) => {\r\n // Construct telemetry attribute to render\r\n const payLoad = getPayloadObject('click', this.props.telemetryContent, '', '');\r\n const linkText = link.linkText ? link.linkText : '';\r\n payLoad.contentAction.etext = linkText;\r\n const attributes = getTelemetryAttributes(this.props.telemetryContent, payLoad);\r\n const editableLink: Msdyn365.ILinksData = {\r\n ariaLabel: link.ariaLabel,\r\n className: 'link',\r\n linkText: link.linkText,\r\n linkUrl: link.linkUrl.destinationUrl,\r\n openInNewTab: link.openInNewTab,\r\n role: 'link',\r\n additionalProperties: attributes,\r\n onClick: onTelemetryClick(this.props.telemetryContent, payLoad, linkText)\r\n };\r\n editableLinks.push(editableLink);\r\n });\r\n\r\n return editableLinks;\r\n };\r\n}\r\n\r\nexport default CookieComplianceLinks;\r\n","/* eslint-disable security/detect-object-injection */\r\n/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport * as MsDyn365 from '@msdyn365-commerce/core';\r\nimport { ArrayExtensions } from '@msdyn365-commerce-modules/retail-actions';\r\nimport { getTelemetryObject, IAlertProps, IModuleProps, INodeProps, ITelemetryContent } from '@msdyn365-commerce-modules/utilities';\r\nimport classnames from 'classnames';\r\nimport * as React from 'react';\r\n\r\nimport { CookieComplianceAcceptButton, CookieComplianceLinks } from './components';\r\nimport { ILdsCookieComplianceConfig, ILdsCookieComplianceProps } from './lds-cookie-compliance.props.autogenerated';\r\n\r\n/**\r\n * Alert state interface.\r\n */\r\nexport interface IAlertState {\r\n visible: boolean;\r\n}\r\n\r\n/**\r\n * Cookie compliance view props interface.\r\n */\r\nexport interface ICookieComplianceViewProps extends ILdsCookieComplianceProps<{}> {\r\n CookieComplianceBanner: IModuleProps;\r\n AlertProps: IAlertProps;\r\n Content: INodeProps;\r\n text?: React.ReactNode;\r\n links?: React.ReactNode;\r\n acceptButton?: React.ReactNode;\r\n className: string;\r\n onDismiss(): void;\r\n}\r\n\r\n/**\r\n *\r\n * CookieCompliance component.\r\n * @extends {React.PureComponent>}\r\n */\r\nclass CookieCompliance extends React.PureComponent, IAlertState> {\r\n private readonly cookieRef: React.RefObject;\r\n\r\n private readonly telemetryContent: ITelemetryContent = getTelemetryObject(\r\n this.props.context.request.telemetryPageName!,\r\n this.props.friendlyName,\r\n this.props.telemetry\r\n );\r\n\r\n public constructor(props: ILdsCookieComplianceProps) {\r\n super(props);\r\n this.state = { visible: false };\r\n this.cookieRef = React.createRef();\r\n this._onDismiss = this._onDismiss.bind(this);\r\n }\r\n\r\n public componentDidMount(): void {\r\n const { context } = this.props;\r\n\r\n if (context && context.request && context.request.cookies && !context.request.cookies.isConsentGiven()) {\r\n this.setState({ visible: true });\r\n }\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n const { config, context, resources, telemetry } = this.props;\r\n const { acceptCookiesButtonText, acceptCookiesAriaLabel } = resources;\r\n const { visible } = this.state;\r\n\r\n const isConsentGiven = context && context.request && context.request.cookies && context.request.cookies.isConsentGiven();\r\n let moduleConfig: ILdsCookieComplianceConfig;\r\n\r\n try {\r\n moduleConfig = config;\r\n } catch (error) {\r\n telemetry.error(`Something went wrong while rendering the alert module ------${error}`);\r\n return
{error}
;\r\n }\r\n\r\n if (isConsentGiven && !visible) {\r\n this.props.context.telemetry.error('Cookie Compliance content is empty, module wont render.');\r\n return null;\r\n }\r\n\r\n if (!MsDyn365.msdyn365Commerce.isBrowser) {\r\n return <>;\r\n }\r\n\r\n const viewProps = {\r\n ...this.props,\r\n onDismiss: this._onDismiss,\r\n CookieComplianceBanner: {\r\n moduleProps: this.props,\r\n className: classnames('ms-cookie-compliance', moduleConfig.className),\r\n ref: this.cookieRef\r\n },\r\n AlertProps: {\r\n className: 'ms-cookie-compliance__container',\r\n color: 'white',\r\n fade: false\r\n },\r\n Content: {\r\n className: 'ms-cookie-compliance__content'\r\n },\r\n text: moduleConfig.content && (\r\n \r\n ),\r\n links: ArrayExtensions.hasElements(moduleConfig.actionLinks) && (\r\n \r\n ),\r\n acceptButton: (\r\n \r\n )\r\n };\r\n\r\n return this.props.renderView(viewProps) as React.ReactElement;\r\n }\r\n\r\n /**\r\n * Handles Link content change event.\r\n * @param linkIndex - Index of link in linkarray.\r\n * @returns Void.\r\n */\r\n public handleLinkTextChange = (linkIndex: number) => (event: MsDyn365.ContentEditableEvent): void => {\r\n if (this.props.config.actionLinks?.[linkIndex]) {\r\n this.props.config.actionLinks[linkIndex].linkText = event.target.value;\r\n }\r\n };\r\n\r\n /**\r\n * Handles content change event.\r\n * @param event - Event.\r\n */\r\n public handleContentChange = (event: MsDyn365.ContentEditableEvent): void => {\r\n this.props.config.content = event.target.value;\r\n };\r\n\r\n private _onDismiss(): void {\r\n const { context } = this.props;\r\n\r\n if (context && context.request && context.request.cookies) {\r\n context.request.cookies.setConsentCookie();\r\n location.reload();\r\n }\r\n this.setState({ visible: false });\r\n }\r\n}\r\n\r\nexport default CookieCompliance;\r\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport withModuleState from './with-module-state';\n\nexport * from './module-state';\nexport * from './module-state.data';\n\nexport { withModuleState };\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport { Alert, Module, Node } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nimport { ICookieComplianceViewProps } from './lds-cookie-compliance';\r\n\r\nconst CookieComplianceView: React.FC = props => {\r\n const { CookieComplianceBanner, AlertProps, Content, acceptButton, text, links } = props;\r\n\r\n return (\r\n \r\n \r\n \r\n {text}\r\n {links}\r\n \r\n {acceptButton}\r\n \r\n \r\n );\r\n};\r\nexport default CookieComplianceView;\r\n","/*--------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * See License.txt in the project root for license information.\n *--------------------------------------------------------------*/\n\n/**\n * EnabledPaymentsForOBO enum.\n */\n export enum EnabledPaymentsForOBO {\n OnCustomerAccount = 1,\n ExpressPayment = 0,\n Loyalty = 0,\n GiftCard = 0,\n PaymentInstrument = 0,\n ApplePay = 0\n}\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport * as React from 'react';\r\nimport { IldsFooterProps } from '../lds-footer.data';\r\n\r\nexport const FooterImageLink: React.FC = ({ Links }) => {\r\n // const footerImageLink = Links ? Links.footerImageLink : '';\r\n const footerImage = Links ? Links.image : '';\r\n\r\n return (\r\n
\r\n \r\n
\r\n );\r\n};\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport * as React from 'react';\r\nimport { IldsFooterProps } from '../lds-footer.data';\r\n\r\n// @ts-ignore\r\nimport { Text5 } from '@churchofjesuschrist/eden-text';\r\n\r\nconst SiteLinks: React.FC = ({ Links }) => {\r\n const contactUs = Links ? Links.contactLink : '';\r\n const help = Links ? Links.helpLink : '';\r\n const storeLocator = Links ? Links.storeLocator : '';\r\n const feedback = Links ? Links.feedbackLink : '';\r\n\r\n return (\r\n
\r\n \r\n {contactUs && contactUs.linkText ? contactUs.linkText : 'Contact Us'}\r\n \r\n \r\n {storeLocator && storeLocator.linkText ? storeLocator.linkText : 'Store Locator'}\r\n \r\n \r\n {help && help.linkText ? help.linkText : 'Help'}\r\n \r\n \r\n {feedback && feedback.linkText ? feedback.linkText : 'Feedback'}\r\n \r\n
\r\n );\r\n};\r\n\r\nexport default SiteLinks;\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport * as React from 'react';\r\nimport { IldsFooterProps } from '../lds-footer.data';\r\n\r\nconst TermsAndConditions: React.FC = ({ salesAndRefundPolicy, impressum, salesTitle, impressumTitle, onClick }) => {\r\n return (\r\n
\r\n
\r\n \r\n salesAndRefundPolicy && salesAndRefundPolicy.PolicyType ? onClick(salesAndRefundPolicy.PolicyType) : ''\r\n }\r\n target='_blank'\r\n rel='noreferrer'\r\n style={{ cursor: 'pointer' }}\r\n >\r\n {salesTitle ||\r\n salesAndRefundPolicy?.DESCRIPTION ||\r\n salesAndRefundPolicy?.Description ||\r\n salesAndRefundPolicy?.PolicyType}\r\n \r\n
\r\n
\r\n (impressum && impressum.PolicyType ? onClick(impressum.PolicyType) : '')}\r\n target='_blank'\r\n rel='noreferrer'\r\n style={{ cursor: 'pointer' }}\r\n >\r\n {impressumTitle || impressum?.DESCRIPTION || impressum?.Description || impressum?.PolicyType}\r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default TermsAndConditions;\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport * as React from 'react';\r\nimport SiteLinks from './SiteLinks';\r\nimport TermsAndConditions from './TermsAndConditions';\r\nimport { IldsFooterProps } from '../lds-footer.data';\r\n\r\nexport const FooterLinks: React.FC = ({\r\n salesAndRefundPolicy,\r\n Links,\r\n resources,\r\n config,\r\n impressum,\r\n impressumTitle,\r\n salesTitle,\r\n onClick,\r\n context\r\n}) => {\r\n return (\r\n
\r\n \r\n \r\n \r\n
\r\n );\r\n};\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport * as React from 'react';\r\nimport { IldsFooterProps } from '../lds-footer.data';\r\n\r\nconst TermsOfService: React.FC = ({ termsOfUse, privacyPolicy, termsTitle, privacyTitle, onClick }) => {\r\n return (\r\n
\r\n (termsOfUse && termsOfUse.PolicyType ? onClick(termsOfUse.PolicyType) : '')}\r\n target='_blank'\r\n rel='noreferrer'\r\n style={{ cursor: 'pointer' }}\r\n >\r\n {termsTitle || termsOfUse?.DESCRIPTION || termsOfUse?.Description || termsOfUse?.PolicyType}\r\n \r\n (privacyPolicy && privacyPolicy.PolicyType ? onClick(privacyPolicy.PolicyType) : '')}\r\n target='_blank'\r\n rel='noreferrer'\r\n style={{ cursor: 'pointer' }}\r\n >\r\n {privacyTitle || privacyPolicy?.DESCRIPTION || privacyPolicy?.Description || privacyPolicy?.PolicyType}\r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default TermsOfService;\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport * as React from 'react';\r\nimport { IldsFooterProps } from '../lds-footer.data';\r\n// @ts-ignore\r\nimport { Text5 } from '@churchofjesuschrist/eden-text';\r\nimport { format } from '@msdyn365-commerce-modules/utilities';\r\n\r\nconst CopyRight: React.FC = ({ resources }) => {\r\n const currentDate = new Date();\r\n\r\n const currentYear = currentDate.getFullYear();\r\n\r\n const currentYearString = currentYear.toString();\r\n\r\n const copyRightText = format(resources.copyRight, currentYearString);\r\n\r\n return (\r\n
\r\n
\r\n

{copyRightText}

\r\n
\r\n
\r\n

{resources.allRightsReserved}

\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default CopyRight;\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport * as React from 'react';\r\nimport TermsOfService from './TermsOfService';\r\nimport CopyRight from './CopyRight';\r\nimport { IldsFooterProps } from '../lds-footer.data';\r\n\r\nexport const FooterLegal: React.FC = ({\r\n termsOfUse,\r\n privacyPolicy,\r\n resources,\r\n config,\r\n privacyTitle,\r\n termsTitle,\r\n onClick\r\n}) => {\r\n return (\r\n
\r\n \r\n \r\n
\r\n );\r\n};\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as React from 'react';\r\nimport { ILdsFooterViewProps } from './lds-footer';\r\nimport { FooterImageLink } from './components/FooterImageLink';\r\nimport { FooterLinks } from './components/FooterLinks';\r\nimport { FooterLegal } from './components/FooterLegal';\r\nimport { lDSPublisherPolicyAsync } from '../../actions/DataActionExtension.g';\r\n\r\nexport default (props: ILdsFooterViewProps) => {\r\n // const [policyInfo, setPolicyInfo] = React.useState();\r\n const [privacyInfo, setPrivacyInfo] = React.useState();\r\n const [privacyTitle, setPrivacyTitle] = React.useState();\r\n const [salesInfo, setSalesInfo] = React.useState();\r\n const [salesTitle, setSalesTitle] = React.useState();\r\n const [termsInfo, setTermsInfo] = React.useState();\r\n const [termsTitle, setTermsTitle] = React.useState();\r\n const [impressumInfo, setImpressumInfo] = React.useState();\r\n const [impressumTitle, setImpressumTitle] = React.useState();\r\n const policies: any = props.data.policy?.result;\r\n\r\n let privacyPolicy: any;\r\n let salesAndRefundPolicy: any;\r\n let termsOfUse: any;\r\n let impressum: any;\r\n const Links = props.config;\r\n\r\n const PRIVACY_POLICY_ID = process.env.PRIVACY_POLICY_ID;\r\n const SALES_AND_REFUND_ID = process.env.SALES_AND_REFUND_ID;\r\n const TERMS_OF_USE_ID = process.env.TERMS_OF_USE_ID;\r\n\r\n //CRP 1\r\n // const privacyPolicy = 5637145327\r\n // const salesAndRefundPolicy = 5637144576\r\n // const termsOfUse = 5637145326\r\n\r\n //CRP 2\r\n // const privacyPolicy = 5637149076\r\n // const salesAndRefundPolicy = 5637149077\r\n // const termsOfUse = 5637149078\r\n\r\n policies?.map((policy: any) => {\r\n if (\r\n policy.Id === parseInt(PRIVACY_POLICY_ID || '', 10) ||\r\n policy.POLICYTYPE?.includes('Privacy Notice') ||\r\n policy.PolicyType?.includes('Privacy Notice')\r\n ) {\r\n privacyPolicy = policy;\r\n }\r\n if (\r\n policy.Id === parseInt(SALES_AND_REFUND_ID || '', 10) ||\r\n policy.POLICYTYPE?.includes('Sales and Refund') ||\r\n policy.PolicyType?.includes('Sales and Refund') ||\r\n policy.PolicyType?.includes('Sales & Refund') ||\r\n policy.PolicyType?.includes('Terms of Use and Sale')\r\n ) {\r\n salesAndRefundPolicy = policy;\r\n }\r\n if (\r\n policy.Id === parseInt(TERMS_OF_USE_ID || '', 10) ||\r\n policy.POLICYTYPE?.includes('Global Terms of Use') ||\r\n policy.PolicyType?.includes('Global Terms of Use') ||\r\n policy.PolicyType?.includes('Return Policy')\r\n ) {\r\n termsOfUse = policy;\r\n }\r\n if (policy.POLICYTYPE?.includes('Impressum') || policy.PolicyType?.includes('Impressum')) {\r\n impressum = policy;\r\n }\r\n });\r\n\r\n const getSalesData = async (policy: string) => {\r\n const ctx = { callerContext: props.context.actionContext };\r\n // let results: any;\r\n\r\n const results = await lDSPublisherPolicyAsync(ctx, policy).catch((err: any) => {\r\n console.log(err);\r\n });\r\n\r\n if (results) {\r\n sessionStorage.setItem('salesData', results.Title || '');\r\n setSalesInfo(results);\r\n } else {\r\n sessionStorage.setItem('salesData', '');\r\n setSalesInfo('');\r\n }\r\n\r\n return results;\r\n };\r\n const getTermsData = async (policy: string) => {\r\n const ctx = { callerContext: props.context.actionContext };\r\n // let results: any;\r\n\r\n const results = await lDSPublisherPolicyAsync(ctx, policy).catch((err: any) => {\r\n console.log(err);\r\n });\r\n\r\n if (results) {\r\n sessionStorage.setItem('termsData', results.Title || '');\r\n setTermsInfo(results);\r\n } else {\r\n sessionStorage.setItem('termsData', '');\r\n setTermsInfo('');\r\n }\r\n\r\n return results;\r\n };\r\n const getPrivacyData = async (policy: string) => {\r\n const ctx = { callerContext: props.context.actionContext };\r\n // let results: any;\r\n\r\n const results = await lDSPublisherPolicyAsync(ctx, policy).catch((err: any) => {\r\n console.log(err);\r\n });\r\n\r\n if (results) {\r\n sessionStorage.setItem('privacyData', results.Title || '');\r\n setPrivacyInfo(results);\r\n } else {\r\n sessionStorage.setItem('privacyData', '');\r\n setPrivacyInfo('');\r\n }\r\n\r\n return results;\r\n };\r\n const getImpressumData = async (policy: string) => {\r\n const ctx = { callerContext: props.context.actionContext };\r\n // let results: any;\r\n\r\n const results = await lDSPublisherPolicyAsync(ctx, policy).catch((err: any) => {\r\n console.log(err);\r\n });\r\n\r\n if (results) {\r\n sessionStorage.setItem('impressumData', results.Title || '');\r\n setImpressumInfo(results);\r\n } else {\r\n sessionStorage.setItem('impressumData', '');\r\n setImpressumInfo('');\r\n }\r\n\r\n return results;\r\n };\r\n\r\n React.useEffect(() => {\r\n const salesInfo = sessionStorage.getItem('salesData');\r\n const impressumInfo = sessionStorage.getItem('impressumData');\r\n const termsInfo = sessionStorage.getItem('termsData');\r\n const privacyInfo = sessionStorage.getItem('privacyData');\r\n const countryInfo = sessionStorage.getItem('countryFooter');\r\n const localeInfo = sessionStorage.getItem('localeFooter');\r\n\r\n if (\r\n salesAndRefundPolicy &&\r\n termsOfUse &&\r\n privacyPolicy &&\r\n impressum &&\r\n !salesInfo &&\r\n !termsInfo &&\r\n !privacyInfo &&\r\n !salesInfo &&\r\n !impressumInfo\r\n ) {\r\n sessionStorage.setItem('localeFooter', props.context.request.locale);\r\n sessionStorage.setItem('countryFooter', JSON.stringify(props.context.request.channel?.CountryRegionId));\r\n void getSalesData(salesAndRefundPolicy.PolicyType);\r\n void getTermsData(termsOfUse.PolicyType);\r\n void getPrivacyData(privacyPolicy.PolicyType);\r\n void getImpressumData(impressum.PolicyType);\r\n } else if (salesAndRefundPolicy && termsOfUse && privacyPolicy && !salesInfo && !termsInfo && !privacyInfo && !salesInfo) {\r\n void getSalesData(salesAndRefundPolicy.PolicyType);\r\n void getTermsData(termsOfUse.PolicyType);\r\n void getPrivacyData(privacyPolicy.PolicyType);\r\n } else if (\r\n localeInfo !== props.context.request.locale ||\r\n countryInfo !== JSON.stringify(props.context.request.channel?.CountryRegionId)\r\n ) {\r\n sessionStorage.setItem('localeFooter', props.context.request.locale);\r\n sessionStorage.setItem('countryFooter', JSON.stringify(props.context.request.channel?.CountryRegionId));\r\n if (salesAndRefundPolicy) {\r\n void getSalesData(salesAndRefundPolicy.PolicyType);\r\n } else {\r\n sessionStorage.setItem('salesData', '');\r\n }\r\n if (termsOfUse) {\r\n void getTermsData(termsOfUse.PolicyType);\r\n } else {\r\n sessionStorage.setItem('termsData', '');\r\n }\r\n if (privacyPolicy) {\r\n void getPrivacyData(privacyPolicy.PolicyType);\r\n } else {\r\n sessionStorage.setItem('privacyData', '');\r\n }\r\n if (impressum) {\r\n void getImpressumData(impressum.PolicyType);\r\n } else {\r\n sessionStorage.setItem('impressumData', '');\r\n }\r\n }\r\n if (salesInfo) {\r\n setSalesTitle(salesInfo);\r\n } else {\r\n setSalesTitle('');\r\n }\r\n if (termsInfo) {\r\n setTermsTitle(termsInfo);\r\n } else {\r\n setTermsTitle('');\r\n }\r\n if (privacyInfo) {\r\n setPrivacyTitle(privacyInfo);\r\n } else {\r\n setPrivacyTitle('');\r\n }\r\n if (impressumInfo) {\r\n setImpressumTitle(impressumInfo);\r\n } else {\r\n setImpressumTitle('');\r\n }\r\n }, [salesInfo, termsInfo, privacyInfo, impressumInfo]);\r\n\r\n const onClick = async (policyType: string) => {\r\n const encodedString = encodeURIComponent(policyType);\r\n\r\n window.open(`${window.location.origin}${props.context.request.sitePath}/termsandconditions?policy=${encodedString}`);\r\n };\r\n return (\r\n <>\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n \r\n );\r\n};\r\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport {\n CacheType,\n createObservableDataAction,\n IAction,\n IActionContext,\n IActionInput,\n IAny,\n ICommerceApiSettings,\n ICreateActionContext,\n IGeneric\n} from '@msdyn365-commerce/core';\nimport { buildCacheKey } from '@msdyn365-commerce-modules/retail-actions';\n\nimport { CheckoutState } from './checkout-state';\n\n/**\n * CheckoutState - action input.\n */\nexport class CheckoutStateInput implements IActionInput {\n private readonly apiSettings: ICommerceApiSettings;\n\n constructor(apiSettings: ICommerceApiSettings) {\n this.apiSettings = apiSettings;\n }\n\n public getCacheKey = () => buildCacheKey('CheckoutState', this.apiSettings);\n\n public getCacheObjectType = () => 'CheckoutState';\n\n public dataCacheType = (): CacheType => 'request';\n}\n\n/**\n * CheckoutState - action.\n * @param input\n * @param ctx\n */\nexport async function checkoutStateAction(input: CheckoutStateInput, ctx: IActionContext): Promise {\n return new CheckoutState();\n}\n\n/**\n * CheckoutState - create new input for create action.\n * @param inputData\n */\nconst createInput = (inputData: ICreateActionContext>): IActionInput => {\n return new CheckoutStateInput(inputData.requestContext.apiSettings);\n};\n\n/**\n * CheckoutState - create action.\n */\nexport const checkoutStateActionDataAction = createObservableDataAction({\n action: >checkoutStateAction,\n input: createInput\n});\n\nexport default checkoutStateActionDataAction;\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport { Customer } from '@msdyn365-commerce/retail-proxy';\r\nimport { Alert, Button, INodeProps, NodeTag } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nimport { ILdsCheckoutCustomerAccountPaymentResources } from '../lds-checkout-customer-account-payment.props.autogenerated';\r\n\r\nexport interface IGetAccountPaymentEditViewFormInput {\r\n resources: ILdsCheckoutCustomerAccountPaymentResources;\r\n amount: number;\r\n maxAmount: number;\r\n customer: Customer | undefined;\r\n customerCreatedDate: string;\r\n availableCredit: string;\r\n showCreditLimit: boolean;\r\n errorMessage: string | undefined;\r\n creditSectionIsExpanded: boolean;\r\n orderTotal: string;\r\n excessCredit: string | undefined;\r\n appliedAmount: string | undefined;\r\n onAddPayment(): Promise;\r\n onChangePaymentAmount(newAmount: number): void;\r\n onToggleCreditSection(): void;\r\n onRemovePayment(): Promise;\r\n}\r\n\r\nexport interface IAccountPaymentEditViewForm {\r\n formProps: INodeProps;\r\n inputLabel: React.ReactNode;\r\n inputAmount: React.ReactNode;\r\n addPaymentButton: React.ReactNode;\r\n customerName: React.ReactNode;\r\n customerAccountNumber: React.ReactNode;\r\n customerSince: React.ReactNode;\r\n accountCredit: React.ReactNode;\r\n alert: React.ReactNode;\r\n accountDetails: React.ReactNode;\r\n appliedLine: React.ReactNode;\r\n bottomBorder: React.ReactNode;\r\n}\r\n\r\n/**\r\n * On Add Account Payment Function.\r\n * @param onAddPayment -On Add Payment Function.\r\n * @returns Call of Add payment function.\r\n */\r\nexport const onAddAccountPayment = (onAddPayment: () => Promise) => async (event: React.SyntheticEvent): Promise => {\r\n event.preventDefault();\r\n await onAddPayment();\r\n};\r\n\r\n/**\r\n * On Change Amount Function.\r\n * @param onChangePaymentAmount -On Change Payment Amount Function.\r\n * @returns Call of Change payment Amount function.\r\n */\r\nconst onChangeAmountHandler = (onChangePaymentAmount: (newAmount: number) => void) => (event: React.ChangeEvent) => {\r\n const value = Number.parseFloat(event.target.value || '0');\r\n onChangePaymentAmount(value);\r\n};\r\n\r\nexport const getAccountPaymentFormEditMode = (options: IGetAccountPaymentEditViewFormInput): IAccountPaymentEditViewForm => {\r\n const {\r\n resources,\r\n onAddPayment,\r\n amount,\r\n onChangePaymentAmount,\r\n maxAmount,\r\n customer,\r\n customerCreatedDate,\r\n availableCredit,\r\n showCreditLimit,\r\n errorMessage,\r\n onToggleCreditSection,\r\n creditSectionIsExpanded,\r\n orderTotal,\r\n excessCredit,\r\n onRemovePayment,\r\n appliedAmount\r\n } = options;\r\n\r\n const {\r\n addPaymentButtonLabel,\r\n inputAmountLabel,\r\n inputAmountAriaLabel,\r\n customerSinceLabel,\r\n accountCreditLabel,\r\n creditDetailsSectionLabel,\r\n orderTotalLabel,\r\n availableCreditLabel,\r\n creditExcessLabel,\r\n appliedCustomerAccountPaymentLabel,\r\n removeCustomerAccountPaymentLabel,\r\n accountCreditDetails\r\n } = resources;\r\n\r\n const inputLabel = (\r\n \r\n {inputAmountLabel}\r\n \r\n );\r\n\r\n const formProps = {\r\n className: 'ms-checkout-customer-account__form-edit',\r\n onSubmit: onAddAccountPayment(onAddPayment),\r\n tag: 'form' as NodeTag\r\n };\r\n\r\n const addPaymentButton = (\r\n maxAmount || amount < 0}\r\n >\r\n {addPaymentButtonLabel}\r\n \r\n );\r\n\r\n const inputAmount = (\r\n \r\n );\r\n\r\n const customerName =
{customer?.Name}
;\r\n\r\n const customerAccountNumber =
#{customer?.AccountNumber}
;\r\n\r\n const customerSince = (\r\n
\r\n {customerSinceLabel}\r\n {customerCreatedDate}\r\n
\r\n );\r\n\r\n const accountCredit = (\r\n <>\r\n {accountCreditLabel}\r\n {showCreditLimit && {availableCredit}}\r\n \r\n \r\n );\r\n\r\n const accountDetails = creditSectionIsExpanded ? (\r\n
\r\n <>\r\n
\r\n \r\n \r\n {creditDetailsSectionLabel}\r\n \r\n
\r\n \r\n
\r\n {availableCreditLabel}\r\n {availableCredit}\r\n
\r\n
\r\n {orderTotalLabel}\r\n {orderTotal}\r\n
\r\n
\r\n {creditExcessLabel}\r\n {excessCredit}\r\n
\r\n
\r\n ) : (\r\n undefined\r\n );\r\n\r\n const alert = (\r\n \r\n {errorMessage}\r\n \r\n );\r\n\r\n const appliedLine = appliedAmount ? (\r\n
\r\n {appliedCustomerAccountPaymentLabel}\r\n {appliedAmount}\r\n \r\n {removeCustomerAccountPaymentLabel}\r\n \r\n
\r\n ) : (\r\n undefined\r\n );\r\n\r\n const bottomBorder =
;\r\n\r\n return {\r\n formProps,\r\n inputLabel,\r\n inputAmount,\r\n addPaymentButton,\r\n customerName,\r\n customerAccountNumber,\r\n customerSince,\r\n accountCredit,\r\n alert,\r\n accountDetails,\r\n appliedLine,\r\n bottomBorder\r\n };\r\n};\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport { Button, INodeProps, NodeTag } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nimport { ILdsCheckoutCustomerAccountPaymentResources } from '../lds-checkout-customer-account-payment.props.autogenerated';\r\n\r\nexport interface IGetAccountPaymentSummaryViewFormInput {\r\n resources: ILdsCheckoutCustomerAccountPaymentResources;\r\n amount: number;\r\n appliedAmount: string | undefined;\r\n}\r\n\r\nexport interface IAccountPaymentSummaryViewForm {\r\n formProps: INodeProps;\r\n label: React.ReactNode;\r\n paymentAmount: React.ReactNode;\r\n addPaymentButton: React.ReactNode;\r\n appliedLine: React.ReactNode;\r\n bottomBorder: React.ReactNode;\r\n}\r\n\r\nexport const getAccountPaymentFormSummaryMode = (options: IGetAccountPaymentSummaryViewFormInput): IAccountPaymentSummaryViewForm => {\r\n const { resources, amount, appliedAmount } = options;\r\n\r\n const { addPaymentButtonLabel, inputAmountSummaryLabel, appliedCustomerAccountPaymentLabel } = resources;\r\n\r\n const label = (\r\n \r\n );\r\n\r\n const formProps = {\r\n className: 'ms-checkout-customer-account__form-summary',\r\n tag: 'form' as NodeTag\r\n };\r\n\r\n const paymentAmount = ;\r\n\r\n const addPaymentButton = (\r\n \r\n );\r\n\r\n const appliedLine = appliedAmount ? (\r\n
\r\n {appliedCustomerAccountPaymentLabel}\r\n {appliedAmount}\r\n
\r\n ) : (\r\n undefined\r\n );\r\n\r\n const bottomBorder =
;\r\n\r\n return {\r\n formProps,\r\n label,\r\n paymentAmount,\r\n addPaymentButton,\r\n appliedLine,\r\n bottomBorder\r\n };\r\n};\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport { CustomerBalances } from '@msdyn365-commerce/retail-proxy';\r\nimport { IModuleStateManager, withModuleState } from '@msdyn365-commerce-modules/checkout-utilities';\r\nimport { IModuleProps } from '@msdyn365-commerce-modules/utilities';\r\nimport classnames from 'classnames';\r\nimport get from 'lodash/get';\r\nimport { computed, reaction } from 'mobx';\r\nimport { observer } from 'mobx-react';\r\nimport * as React from 'react';\r\n\r\nimport { ICheckoutCustomerAccountPaymentData } from './lds-checkout-customer-account-payment.data';\r\nimport { ILdsCheckoutCustomerAccountPaymentProps } from './lds-checkout-customer-account-payment.props.autogenerated';\r\nimport { getAccountPaymentFormEditMode, IAccountPaymentEditViewForm } from './components/get-account-payment-form-edit-mode';\r\nimport { getAccountPaymentFormSummaryMode, IAccountPaymentSummaryViewForm } from './components/get-account-payment-form-summary-mode';\r\n\r\nexport interface ICheckoutCustomerAccountPaymentViewProps\r\n extends ILdsCheckoutCustomerAccountPaymentProps {\r\n checkoutCustomerAccount: IModuleProps;\r\n summaryView: IAccountPaymentSummaryViewForm;\r\n editView: IAccountPaymentEditViewForm;\r\n moduleState: IModuleStateManager;\r\n}\r\n\r\nexport interface ICheckoutCustomerAccountPaymentState {\r\n paymentAmount: number;\r\n isCreditSectionExpanded: boolean;\r\n}\r\n\r\n/**\r\n *\r\n * CheckoutCustomerAccount component.\r\n * @extends {React.Component>}\r\n */\r\n// @ts-expect-error\r\n@withModuleState\r\n@observer\r\nexport class CheckoutCustomerAccountPayment extends React.Component<\r\n ICheckoutCustomerAccountPaymentViewProps,\r\n ICheckoutCustomerAccountPaymentState\r\n> {\r\n @computed get isCustomerAccountPaymentEnabled(): boolean {\r\n const customerInfo = get(this.props, 'data.customerInformation.result');\r\n const platform = get(this.props, 'context.request.app.platform');\r\n\r\n return (\r\n customerInfo &&\r\n customerInfo.AllowOnAccountPayment === true &&\r\n platform &&\r\n (platform.enableCustomerAccountPayment === 'all' ||\r\n (platform.enableCustomerAccountPayment === 'b2b' && customerInfo.IsB2b === true) ||\r\n (platform.enableCustomerAccountPayment === 'b2c' && customerInfo.IsB2b === false))\r\n );\r\n }\r\n\r\n @computed get getLoyaltyAmount(): number {\r\n const checkoutState = this.props.data.checkout.result;\r\n if (!checkoutState || !checkoutState.loyaltyAmount) {\r\n return 0;\r\n }\r\n return checkoutState.loyaltyAmount;\r\n }\r\n\r\n @computed get getGiftCardAmount(): number {\r\n const checkoutState = this.props.data.checkout.result;\r\n if (!checkoutState || !checkoutState.giftCards || checkoutState.giftCards.length === 0) {\r\n return 0;\r\n }\r\n\r\n let giftCardAmount: number = 0;\r\n checkoutState.giftCards.forEach(giftCard => {\r\n giftCardAmount += giftCard.Balance || 0;\r\n });\r\n\r\n return giftCardAmount;\r\n }\r\n\r\n @computed get maxPaymentAmount(): number {\r\n const cart = this.props.data.checkout.result ? this.props.data.checkout.result.checkoutCart.cart : undefined;\r\n if (!cart) {\r\n return 0;\r\n }\r\n\r\n // Use customer account after gift card and loyalty.\r\n const amountDue = Math.max(0, (cart.TotalAmount || 0) - this.getLoyaltyAmount - this.getGiftCardAmount);\r\n\r\n // If the user has a mandatory credit limit, then the max amount must not be more than that\r\n if (this.props.data.customerInformation?.result?.MandatoryCreditLimit) {\r\n return Math.min(this.getAvailableCredit(this.props.data.creditBalances?.result), amountDue);\r\n }\r\n return amountDue;\r\n }\r\n\r\n @computed get errorMessage(): string | undefined {\r\n if (this.state.paymentAmount > this.maxPaymentAmount || this.state.paymentAmount < 0) {\r\n return this.props.resources.invalidAmountMessage;\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n @computed get currencyCode(): string | undefined {\r\n return get(this.props, 'context.request.channel.Currency');\r\n }\r\n\r\n @computed get availableCredit(): number {\r\n const creditBalances = get(this.props, 'data.creditBalances.result');\r\n\r\n return creditBalances ? this.getAvailableCredit(creditBalances) : 0;\r\n }\r\n\r\n @computed get orderTotal(): number {\r\n const orderTotal = get(this.props, 'data.checkout.result.checkoutCart.cart.TotalAmount');\r\n\r\n return orderTotal ? orderTotal : 0;\r\n }\r\n\r\n @computed get formattedExcessCredit(): string | undefined {\r\n const excessCredit = this.availableCredit - this.orderTotal;\r\n return excessCredit < 0 ? this.props.context.cultureFormatter.formatCurrency(excessCredit, this.currencyCode) : undefined;\r\n }\r\n\r\n private readonly baseClassName: string = 'ms-checkout-customer-account';\r\n\r\n public constructor(props: ICheckoutCustomerAccountPaymentViewProps) {\r\n super(props);\r\n this.state = { paymentAmount: this.maxPaymentAmount, isCreditSectionExpanded: false };\r\n }\r\n\r\n public async componentDidMount(): Promise {\r\n await this.init();\r\n\r\n // When the cart.TotalAmount gets updated (like if selecting the delivery option adds a charge) we need to update the amount based on the new total amount.\r\n reaction(\r\n () =>\r\n this.props.data.checkout.result &&\r\n this.props.data.checkout.result.checkoutCart.cart &&\r\n this.props.data.checkout.result.checkoutCart.cart.TotalAmount,\r\n (totalAmount: any) => {\r\n this.updateMaxAmount(this.maxPaymentAmount);\r\n }\r\n );\r\n }\r\n\r\n public shouldComponentUpdate(\r\n nextProps: ILdsCheckoutCustomerAccountPaymentProps,\r\n nextState: ICheckoutCustomerAccountPaymentState\r\n ): boolean {\r\n if (this.state === nextState && this.props.data === nextProps.data) {\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n const customerInfo = this.props.data.customerInformation.result;\r\n\r\n if (!this.isCustomerAccountPaymentEnabled) {\r\n this.props.context.telemetry.information(\r\n 'customer account payments will not display, because the feature is disabled or not enabled for this type of customer'\r\n );\r\n return null;\r\n }\r\n\r\n const checkoutState = this.props.data.checkout.result;\r\n const cart = checkoutState ? checkoutState.checkoutCart.cart : undefined;\r\n const hasInvoiceLine = checkoutState?.checkoutCart.hasInvoiceLine;\r\n const creditBalances = this.props.data.creditBalances.result;\r\n\r\n if (!cart || hasInvoiceLine) {\r\n return null;\r\n }\r\n const resources = this.props.resources;\r\n const locale = get(this.props, 'context.request.locale') || 'en-us';\r\n\r\n const customerSinceDate = new Date(customerInfo?.CreatedDateTime || 0).toLocaleDateString(locale);\r\n\r\n const props = {\r\n ...this.props,\r\n checkoutCustomerAccount: {\r\n moduleProps: this.props,\r\n className: classnames(this.baseClassName)\r\n },\r\n editView: getAccountPaymentFormEditMode({\r\n onAddPayment: this.addPayment,\r\n resources,\r\n amount: this.state.paymentAmount,\r\n onChangePaymentAmount: this.onChangePaymentAmount,\r\n maxAmount: this.maxPaymentAmount,\r\n customer: customerInfo,\r\n customerCreatedDate: customerSinceDate,\r\n availableCredit: this.props.context.cultureFormatter.formatCurrency(\r\n this.getAvailableCredit(creditBalances),\r\n this.currencyCode\r\n ),\r\n showCreditLimit: customerInfo?.MandatoryCreditLimit || false,\r\n errorMessage: this.errorMessage,\r\n onToggleCreditSection: this.toggleCreditSection,\r\n creditSectionIsExpanded: this.state.isCreditSectionExpanded,\r\n orderTotal: this.props.context.cultureFormatter.formatCurrency(this.orderTotal, this.currencyCode),\r\n excessCredit: this.formattedExcessCredit,\r\n onRemovePayment: this.removePayment,\r\n appliedAmount:\r\n checkoutState && checkoutState.customerAccountAmount > 0\r\n ? this.props.context.cultureFormatter.formatCurrency(checkoutState.customerAccountAmount, this.currencyCode)\r\n : undefined\r\n }),\r\n summaryView: getAccountPaymentFormSummaryMode({\r\n resources,\r\n amount: this.state.paymentAmount,\r\n appliedAmount:\r\n checkoutState && checkoutState.customerAccountAmount > 0\r\n ? this.props.context.cultureFormatter.formatCurrency(checkoutState.customerAccountAmount, this.currencyCode)\r\n : undefined\r\n })\r\n };\r\n\r\n return this.props.renderView(props) as React.ReactElement;\r\n }\r\n\r\n private readonly getAvailableCredit = (creditBalances: CustomerBalances | undefined) => {\r\n let availableCredit = 0;\r\n\r\n if (!creditBalances) {\r\n return 0;\r\n }\r\n\r\n if (creditBalances.InvoiceAccountCreditLimit === 0) {\r\n availableCredit = creditBalances.CreditLimit - creditBalances.Balance - creditBalances.PendingBalance;\r\n } else {\r\n availableCredit =\r\n creditBalances.InvoiceAccountCreditLimit -\r\n creditBalances.InvoiceAccountBalance -\r\n creditBalances.InvoiceAccountPendingBalance;\r\n }\r\n\r\n return availableCredit;\r\n };\r\n\r\n private readonly addPayment = async (): Promise => {\r\n const checkoutState = this.props.data.checkout.result;\r\n\r\n if (!checkoutState) {\r\n this.props.context.telemetry.error('checkout state not found');\r\n return;\r\n }\r\n\r\n this.setState({ paymentAmount: this.maxPaymentAmount });\r\n\r\n await checkoutState.updateCustomerAccountAmount({ newAmount: this.state.paymentAmount });\r\n this.props.context.telemetry.information('customer account payment amount updated');\r\n };\r\n\r\n private readonly toggleCreditSection = (): void => {\r\n this.setState({\r\n isCreditSectionExpanded: !this.state.isCreditSectionExpanded\r\n });\r\n };\r\n\r\n private readonly init = async (): Promise => {\r\n this.props.moduleState.init({\r\n onCancel: this.handleCancelOrSubmit,\r\n onSubmit: this.handleCancelOrSubmit,\r\n onEdit: this.onEdit\r\n });\r\n\r\n if (this.props.data.checkout.result && this.props.data.checkout.result.customerAccountAmount !== 0) {\r\n this.props.moduleState.onReady();\r\n }\r\n };\r\n\r\n private readonly onChangePaymentAmount = (newAmount: number): void => {\r\n this.setState({\r\n paymentAmount: newAmount\r\n });\r\n };\r\n\r\n private readonly updateMaxAmount = (newAmount: number): void => {\r\n // If the user has already set an amount, we should not override that in the UI because it will be confusing.\r\n if (this.props.data.checkout.result && this.props.data.checkout.result.customerAccountAmount === 0) {\r\n this.setState({\r\n // We should never allow a negative amount.\r\n paymentAmount: Math.max(0, newAmount)\r\n });\r\n }\r\n };\r\n\r\n private readonly onEdit = (): void => {\r\n this.props.moduleState.onUpdating();\r\n };\r\n\r\n private readonly handleCancelOrSubmit = () => {\r\n const checkoutState = this.props.data.checkout.result;\r\n if (checkoutState && checkoutState.customerAccountAmount > 0) {\r\n this.props.moduleState.onReady();\r\n } else {\r\n // Skip the module\r\n this.props.moduleState.onSkip();\r\n }\r\n };\r\n\r\n private readonly removePayment = async (): Promise => {\r\n const checkoutState = this.props.data.checkout.result;\r\n\r\n if (!checkoutState) {\r\n this.props.context.telemetry.error('checkout state not found');\r\n return;\r\n }\r\n\r\n this.setState({\r\n paymentAmount: 0\r\n });\r\n\r\n await checkoutState.updateCustomerAccountAmount({ newAmount: 0 });\r\n this.props.context.telemetry.information('customer account payment removed');\r\n };\r\n}\r\n\r\nexport default CheckoutCustomerAccountPayment;\r\n","export const countryCodeList = [\r\n {\r\n name: 'Afghanistan',\r\n twoLetterCode: 'AF',\r\n threeLetterCode: 'AFG'\r\n },\r\n {\r\n name: 'Åland Islands',\r\n twoLetterCode: 'AX',\r\n threeLetterCode: 'ALA'\r\n },\r\n {\r\n name: 'Albania',\r\n twoLetterCode: 'AL',\r\n threeLetterCode: 'ALB'\r\n },\r\n {\r\n name: 'Algeria',\r\n twoLetterCode: 'DZ',\r\n threeLetterCode: 'DZA'\r\n },\r\n {\r\n name: 'American Samoa',\r\n twoLetterCode: 'AS',\r\n threeLetterCode: 'ASM'\r\n },\r\n {\r\n name: 'Andorra',\r\n twoLetterCode: 'AD',\r\n threeLetterCode: 'AND'\r\n },\r\n {\r\n name: 'Angola',\r\n twoLetterCode: 'AO',\r\n threeLetterCode: 'AGO'\r\n },\r\n {\r\n name: 'Anguilla',\r\n twoLetterCode: 'AI',\r\n threeLetterCode: 'AIA'\r\n },\r\n {\r\n name: 'Antarctoca',\r\n twoLetterCode: 'AQ',\r\n threeLetterCode: 'ATA'\r\n },\r\n {\r\n name: 'Antigua and Barbuda',\r\n twoLetterCode: 'AG',\r\n threeLetterCode: 'ATG'\r\n },\r\n {\r\n name: 'Argentina',\r\n twoLetterCode: 'AR',\r\n threeLetterCode: 'ARG'\r\n },\r\n {\r\n name: 'Armenia',\r\n twoLetterCode: 'AM',\r\n threeLetterCode: 'ARM'\r\n },\r\n {\r\n name: 'Aruba',\r\n twoLetterCode: 'AW',\r\n threeLetterCode: 'ABW'\r\n },\r\n {\r\n name: 'Australia',\r\n twoLetterCode: 'AU',\r\n threeLetterCode: 'AUS'\r\n },\r\n {\r\n name: 'Austria',\r\n twoLetterCode: 'AT',\r\n threeLetterCode: 'AUT'\r\n },\r\n {\r\n name: 'Azerbaijan',\r\n twoLetterCode: 'AZ',\r\n threeLetterCode: 'AZE'\r\n },\r\n {\r\n name: 'Bahamas',\r\n twoLetterCode: 'BS',\r\n threeLetterCode: 'BHS'\r\n },\r\n {\r\n name: 'Bahrain',\r\n twoLetterCode: 'BH',\r\n threeLetterCode: 'BHR'\r\n },\r\n {\r\n name: 'Bangladesh',\r\n twoLetterCode: 'BD',\r\n threeLetterCode: 'BGD'\r\n },\r\n {\r\n name: 'Barbados',\r\n twoLetterCode: 'BB',\r\n threeLetterCode: 'BRB'\r\n },\r\n {\r\n name: 'Belarus',\r\n twoLetterCode: 'BY',\r\n threeLetterCode: 'BLR'\r\n },\r\n {\r\n name: 'Belgium',\r\n twoLetterCode: 'BE',\r\n threeLetterCode: 'BEL'\r\n },\r\n {\r\n name: 'Belize',\r\n twoLetterCode: 'BZ',\r\n threeLetterCode: 'BLZ'\r\n },\r\n {\r\n name: 'Benin',\r\n twoLetterCode: 'BJ',\r\n threeLetterCode: 'BEN'\r\n },\r\n {\r\n name: 'Bermuda',\r\n twoLetterCode: 'BM',\r\n threeLetterCode: 'BMU'\r\n },\r\n {\r\n name: 'Bhutan',\r\n twoLetterCode: 'BT',\r\n threeLetterCode: 'BTN'\r\n },\r\n {\r\n name: 'Bolivia',\r\n twoLetterCode: 'BO',\r\n threeLetterCode: 'BOL'\r\n },\r\n {\r\n name: 'Bonaire',\r\n twoLetterCode: 'BQ',\r\n threeLetterCode: 'BES'\r\n },\r\n {\r\n name: 'Bosnia and Herzegovina',\r\n twoLetterCode: 'BA',\r\n threeLetterCode: 'BIH'\r\n },\r\n {\r\n name: 'Botswana',\r\n twoLetterCode: 'BW',\r\n threeLetterCode: 'BWA'\r\n },\r\n {\r\n name: 'Bouvet Island',\r\n twoLetterCode: 'BV',\r\n threeLetterCode: 'BVT'\r\n },\r\n {\r\n name: 'Brazil',\r\n twoLetterCode: 'BR',\r\n threeLetterCode: 'BRA'\r\n },\r\n {\r\n name: 'British Indian Ocean Territory',\r\n twoLetterCode: 'IO',\r\n threeLetterCode: 'IOT'\r\n },\r\n {\r\n name: 'Brunei',\r\n twoLetterCode: 'BN',\r\n threeLetterCode: 'BRN'\r\n },\r\n {\r\n name: 'Bulgaria',\r\n twoLetterCode: 'BG',\r\n threeLetterCode: 'BGR'\r\n },\r\n {\r\n name: 'Burkina Faso',\r\n twoLetterCode: 'BF',\r\n threeLetterCode: 'BFA'\r\n },\r\n {\r\n name: 'Burundi',\r\n twoLetterCode: 'BI',\r\n threeLetterCode: 'BDI'\r\n },\r\n {\r\n name: 'Cabo Verde',\r\n twoLetterCode: 'CV',\r\n threeLetterCode: 'CPV'\r\n },\r\n {\r\n name: 'Cambodia',\r\n twoLetterCode: 'KH',\r\n threeLetterCode: 'KHM'\r\n },\r\n {\r\n name: 'Cameroon',\r\n twoLetterCode: 'CM',\r\n threeLetterCode: 'CMR'\r\n },\r\n {\r\n name: 'Canada',\r\n twoLetterCode: 'CA',\r\n threeLetterCode: 'CAN'\r\n },\r\n {\r\n name: 'Cayman Islands',\r\n twoLetterCode: 'KY',\r\n threeLetterCode: 'CYM'\r\n },\r\n {\r\n name: 'Central African Republic',\r\n twoLetterCode: 'CF',\r\n threeLetterCode: 'CAF'\r\n },\r\n {\r\n name: 'Chad',\r\n twoLetterCode: 'TD',\r\n threeLetterCode: 'TCD'\r\n },\r\n {\r\n name: 'Chile',\r\n twoLetterCode: 'CL',\r\n threeLetterCode: 'CHL'\r\n },\r\n {\r\n name: 'China',\r\n twoLetterCode: 'CN',\r\n threeLetterCode: 'CHN'\r\n },\r\n {\r\n name: 'Christmas Island',\r\n twoLetterCode: 'CX',\r\n threeLetterCode: 'CXR'\r\n },\r\n {\r\n name: 'Cocos Islands',\r\n twoLetterCode: 'CC',\r\n threeLetterCode: 'CCK'\r\n },\r\n {\r\n name: 'Colombia',\r\n twoLetterCode: 'CO',\r\n threeLetterCode: 'COL'\r\n },\r\n {\r\n name: 'Comoros',\r\n twoLetterCode: 'KM',\r\n threeLetterCode: 'COM'\r\n },\r\n {\r\n name: 'Congo',\r\n twoLetterCode: 'CG',\r\n threeLetterCode: 'COG'\r\n },\r\n {\r\n name: 'DR Congo',\r\n twoLetterCode: 'CD',\r\n threeLetterCode: 'COD'\r\n },\r\n {\r\n name: 'Cook Islands',\r\n twoLetterCode: 'CK',\r\n threeLetterCode: 'COK'\r\n },\r\n {\r\n name: 'Costa Rica',\r\n twoLetterCode: 'CR',\r\n threeLetterCode: 'CRI'\r\n },\r\n {\r\n name: `Côte d'Ivoire`,\r\n twoLetterCode: 'CI',\r\n threeLetterCode: 'CIV'\r\n },\r\n {\r\n name: 'Croatia',\r\n twoLetterCode: 'HR',\r\n threeLetterCode: 'HRV'\r\n },\r\n {\r\n name: 'Cuba',\r\n twoLetterCode: 'CU',\r\n threeLetterCode: 'CUB'\r\n },\r\n {\r\n name: 'Curaçao',\r\n twoLetterCode: 'CW',\r\n threeLetterCode: 'CUW'\r\n },\r\n {\r\n name: 'Cyprus',\r\n twoLetterCode: 'CY',\r\n threeLetterCode: 'CYP'\r\n },\r\n {\r\n name: 'Czech Republic',\r\n twoLetterCode: 'CZ',\r\n threeLetterCode: 'CZE'\r\n },\r\n {\r\n name: 'Denmark',\r\n twoLetterCode: 'DK',\r\n threeLetterCode: 'DNK'\r\n },\r\n {\r\n name: 'Djibouti',\r\n twoLetterCode: 'DJ',\r\n threeLetterCode: 'DJI'\r\n },\r\n {\r\n name: 'Dominica',\r\n twoLetterCode: 'DM',\r\n threeLetterCode: 'DMA'\r\n },\r\n {\r\n name: 'Dominican Republic',\r\n twoLetterCode: 'DO',\r\n threeLetterCode: 'DOM'\r\n },\r\n {\r\n name: 'Ecuador',\r\n twoLetterCode: 'EC',\r\n threeLetterCode: 'ECU'\r\n },\r\n {\r\n name: 'Egypt',\r\n twoLetterCode: 'EG',\r\n threeLetterCode: 'EGY'\r\n },\r\n {\r\n name: 'El Salvador',\r\n twoLetterCode: 'SV',\r\n threeLetterCode: 'SLV'\r\n },\r\n {\r\n name: 'Equatorial Guinea',\r\n twoLetterCode: 'GQ',\r\n threeLetterCode: 'GNQ'\r\n },\r\n {\r\n name: 'Eritrea',\r\n twoLetterCode: 'ER',\r\n threeLetterCode: 'ERI'\r\n },\r\n {\r\n name: 'Estonia',\r\n twoLetterCode: 'EE',\r\n threeLetterCode: 'EST'\r\n },\r\n {\r\n name: 'Eswatini',\r\n twoLetterCode: 'SZ',\r\n threeLetterCode: 'SWZ'\r\n },\r\n {\r\n name: 'Ethiopia',\r\n twoLetterCode: 'ET',\r\n threeLetterCode: 'ETH'\r\n },\r\n {\r\n name: 'Falkland Islands',\r\n twoLetterCode: 'FK',\r\n threeLetterCode: 'FLK'\r\n },\r\n {\r\n name: 'Faroe Islands',\r\n twoLetterCode: 'FO',\r\n threeLetterCode: 'FRO'\r\n },\r\n {\r\n name: 'Fiji',\r\n twoLetterCode: 'FJ',\r\n threeLetterCode: 'FJI'\r\n },\r\n {\r\n name: 'Finland',\r\n twoLetterCode: 'FI',\r\n threeLetterCode: 'FIN'\r\n },\r\n {\r\n name: 'France',\r\n twoLetterCode: 'FR',\r\n threeLetterCode: 'FRA'\r\n },\r\n {\r\n name: 'French Guiana',\r\n twoLetterCode: 'GF',\r\n threeLetterCode: 'GUF'\r\n },\r\n {\r\n name: 'French Polynesia',\r\n twoLetterCode: 'PF',\r\n threeLetterCode: 'PYF'\r\n },\r\n {\r\n name: 'French Southern Territories',\r\n twoLetterCode: 'TF',\r\n threeLetterCode: 'ATF'\r\n },\r\n {\r\n name: 'Gabon',\r\n twoLetterCode: 'GA',\r\n threeLetterCode: 'GAB'\r\n },\r\n {\r\n name: 'Gambia',\r\n twoLetterCode: 'GM',\r\n threeLetterCode: 'GMB'\r\n },\r\n {\r\n name: 'Georgia',\r\n twoLetterCode: 'GE',\r\n threeLetterCode: 'GEO'\r\n },\r\n {\r\n name: 'Germany',\r\n twoLetterCode: 'DE',\r\n threeLetterCode: 'DEU'\r\n },\r\n {\r\n name: 'Ghana',\r\n twoLetterCode: 'GH',\r\n threeLetterCode: 'GHA'\r\n },\r\n {\r\n name: 'Gibraltar',\r\n twoLetterCode: 'GI',\r\n threeLetterCode: 'GIB'\r\n },\r\n {\r\n name: 'Greece',\r\n twoLetterCode: 'GR',\r\n threeLetterCode: 'GRC'\r\n },\r\n {\r\n name: 'Greenland',\r\n twoLetterCode: 'GL',\r\n threeLetterCode: 'GRL'\r\n },\r\n {\r\n name: 'Grenada',\r\n twoLetterCode: 'GD',\r\n threeLetterCode: 'GRD'\r\n },\r\n {\r\n name: 'Guadeloupe',\r\n twoLetterCode: 'GP',\r\n threeLetterCode: 'GLP'\r\n },\r\n {\r\n name: 'Guam',\r\n twoLetterCode: 'GU',\r\n threeLetterCode: 'GUM'\r\n },\r\n {\r\n name: 'Guatemala',\r\n twoLetterCode: 'GT',\r\n threeLetterCode: 'GTM'\r\n },\r\n {\r\n name: 'Guernsey',\r\n twoLetterCode: 'GG',\r\n threeLetterCode: 'GGY'\r\n },\r\n {\r\n name: 'Guinea',\r\n twoLetterCode: 'GN',\r\n threeLetterCode: 'GIN'\r\n },\r\n {\r\n name: 'Guinea-Bissau',\r\n twoLetterCode: 'GW',\r\n threeLetterCode: 'GNB'\r\n },\r\n {\r\n name: 'Guyana',\r\n twoLetterCode: 'GY',\r\n threeLetterCode: 'GUY'\r\n },\r\n {\r\n name: 'Haiti',\r\n twoLetterCode: 'HT',\r\n threeLetterCode: 'HTI'\r\n },\r\n {\r\n name: 'Heard Island and McDonald Islands',\r\n twoLetterCode: 'HM',\r\n threeLetterCode: 'HMD'\r\n },\r\n {\r\n name: 'Honduras',\r\n twoLetterCode: 'HN',\r\n threeLetterCode: 'HND'\r\n },\r\n {\r\n name: 'Hong Kong',\r\n twoLetterCode: 'HK',\r\n threeLetterCode: 'HKG'\r\n },\r\n {\r\n name: 'Hungary',\r\n twoLetterCode: 'HU',\r\n threeLetterCode: 'HUN'\r\n },\r\n {\r\n name: 'Iceland',\r\n twoLetterCode: 'IS',\r\n threeLetterCode: 'ISL'\r\n },\r\n {\r\n name: 'India',\r\n twoLetterCode: 'IN',\r\n threeLetterCode: 'IND'\r\n },\r\n {\r\n name: 'Indonesia',\r\n twoLetterCode: 'ID',\r\n threeLetterCode: 'IDN'\r\n },\r\n {\r\n name: 'Iran',\r\n twoLetterCode: 'IR',\r\n threeLetterCode: 'IRN'\r\n },\r\n {\r\n name: 'Iraq',\r\n twoLetterCode: 'IQ',\r\n threeLetterCode: 'IRQ'\r\n },\r\n {\r\n name: 'Ireland',\r\n twoLetterCode: 'IE',\r\n threeLetterCode: 'IRL'\r\n },\r\n {\r\n name: 'Isle of Man',\r\n twoLetterCode: 'IM',\r\n threeLetterCode: 'IMN'\r\n },\r\n {\r\n name: 'Israel',\r\n twoLetterCode: 'IL',\r\n threeLetterCode: 'ISR'\r\n },\r\n {\r\n name: 'Italy',\r\n twoLetterCode: 'IT',\r\n threeLetterCode: 'ITA'\r\n },\r\n {\r\n name: 'Jamaica',\r\n twoLetterCode: 'JM',\r\n threeLetterCode: 'JAM'\r\n },\r\n {\r\n name: 'Japan',\r\n twoLetterCode: 'JP',\r\n threeLetterCode: 'JPN'\r\n },\r\n {\r\n name: 'Jersey',\r\n twoLetterCode: 'JE',\r\n threeLetterCode: 'JEY'\r\n },\r\n {\r\n name: 'Jordan',\r\n twoLetterCode: 'JO',\r\n threeLetterCode: 'JOR'\r\n },\r\n {\r\n name: 'Kazakhstan',\r\n twoLetterCode: 'KZ',\r\n threeLetterCode: 'KAZ'\r\n },\r\n {\r\n name: 'Kenya',\r\n twoLetterCode: 'KE',\r\n threeLetterCode: 'KEN'\r\n },\r\n {\r\n name: 'Kiribati',\r\n twoLetterCode: 'KI',\r\n threeLetterCode: 'KIR'\r\n },\r\n {\r\n name: 'Kosovo',\r\n twoLetterCode: 'XK',\r\n threeLetterCode: 'KOS'\r\n },\r\n {\r\n name: 'Kuwait',\r\n twoLetterCode: 'KW',\r\n threeLetterCode: 'KWT'\r\n },\r\n {\r\n name: 'Kyrgyzstan',\r\n twoLetterCode: 'KG',\r\n threeLetterCode: 'KGZ'\r\n },\r\n {\r\n name: 'Laos',\r\n twoLetterCode: 'LA',\r\n threeLetterCode: 'LAO'\r\n },\r\n {\r\n name: 'Latvia',\r\n twoLetterCode: 'LV',\r\n threeLetterCode: 'LVA'\r\n },\r\n {\r\n name: 'Lebanon',\r\n twoLetterCode: 'LB',\r\n threeLetterCode: 'LBN'\r\n },\r\n {\r\n name: 'Lesotho',\r\n twoLetterCode: 'LS',\r\n threeLetterCode: 'LSO'\r\n },\r\n {\r\n name: 'Liberia',\r\n twoLetterCode: 'LR',\r\n threeLetterCode: 'LBR'\r\n },\r\n {\r\n name: 'Libya',\r\n twoLetterCode: 'LY',\r\n threeLetterCode: 'LBY'\r\n },\r\n {\r\n name: 'Liechtenstein',\r\n twoLetterCode: 'LI',\r\n threeLetterCode: 'LIE'\r\n },\r\n {\r\n name: 'Lithuania',\r\n twoLetterCode: 'LT',\r\n threeLetterCode: 'LTU'\r\n },\r\n {\r\n name: 'Luxembourg',\r\n twoLetterCode: 'LU',\r\n threeLetterCode: 'LUX'\r\n },\r\n {\r\n name: 'Macao',\r\n twoLetterCode: 'MO',\r\n threeLetterCode: 'MAC'\r\n },\r\n {\r\n name: 'Macedonia',\r\n twoLetterCode: 'MK',\r\n threeLetterCode: 'MKD'\r\n },\r\n {\r\n name: 'Madagascar',\r\n twoLetterCode: 'MG',\r\n threeLetterCode: 'MDG'\r\n },\r\n {\r\n name: 'Malawi',\r\n twoLetterCode: 'MW',\r\n threeLetterCode: 'MWI'\r\n },\r\n {\r\n name: 'Malaysia',\r\n twoLetterCode: 'MY',\r\n threeLetterCode: 'MYS'\r\n },\r\n {\r\n name: 'Maldives',\r\n twoLetterCode: 'MV',\r\n threeLetterCode: 'MDV'\r\n },\r\n {\r\n name: 'Mali',\r\n twoLetterCode: 'ML',\r\n threeLetterCode: 'MLI'\r\n },\r\n {\r\n name: 'Malta',\r\n twoLetterCode: 'MT',\r\n threeLetterCode: 'MLT'\r\n },\r\n {\r\n name: 'Marshall Islands',\r\n twoLetterCode: 'MH',\r\n threeLetterCode: 'MHL'\r\n },\r\n {\r\n name: 'Martinique',\r\n twoLetterCode: 'MQ',\r\n threeLetterCode: 'MTQ'\r\n },\r\n {\r\n name: 'Mauritania',\r\n twoLetterCode: 'MR',\r\n threeLetterCode: 'MRT'\r\n },\r\n {\r\n name: 'Mauritius',\r\n twoLetterCode: 'MU',\r\n threeLetterCode: 'MUS'\r\n },\r\n {\r\n name: 'Mayotte',\r\n twoLetterCode: 'YT',\r\n threeLetterCode: 'MYT'\r\n },\r\n {\r\n name: 'Mexico',\r\n twoLetterCode: 'MX',\r\n threeLetterCode: 'MEX'\r\n },\r\n {\r\n name: 'Micronesia',\r\n twoLetterCode: 'FM',\r\n threeLetterCode: 'FSM'\r\n },\r\n {\r\n name: 'Moldova',\r\n twoLetterCode: 'MD',\r\n threeLetterCode: 'MDA'\r\n },\r\n {\r\n name: 'Monaco',\r\n twoLetterCode: 'MC',\r\n threeLetterCode: 'MCO'\r\n },\r\n {\r\n name: 'Mongolia',\r\n twoLetterCode: 'MN',\r\n threeLetterCode: 'MNG'\r\n },\r\n {\r\n name: 'Montenegro',\r\n twoLetterCode: 'ME',\r\n threeLetterCode: 'MNE'\r\n },\r\n {\r\n name: 'Montserrat',\r\n twoLetterCode: 'MS',\r\n threeLetterCode: 'MSR'\r\n },\r\n {\r\n name: 'Morocco',\r\n twoLetterCode: 'MA',\r\n threeLetterCode: 'MAR'\r\n },\r\n {\r\n name: 'Mozambique',\r\n twoLetterCode: 'MZ',\r\n threeLetterCode: 'MOZ'\r\n },\r\n {\r\n name: 'Myanmar',\r\n twoLetterCode: 'MM',\r\n threeLetterCode: 'MMR'\r\n },\r\n {\r\n name: 'Namibia',\r\n twoLetterCode: 'NA',\r\n threeLetterCode: 'NAM'\r\n },\r\n {\r\n name: 'Nauru',\r\n twoLetterCode: 'NR',\r\n threeLetterCode: 'NRU'\r\n },\r\n {\r\n name: 'Nepal',\r\n twoLetterCode: 'NP',\r\n threeLetterCode: 'NPL'\r\n },\r\n {\r\n name: 'Netherlands',\r\n twoLetterCode: 'NL',\r\n threeLetterCode: 'NLD'\r\n },\r\n {\r\n name: 'New Caledonia',\r\n twoLetterCode: 'NC',\r\n threeLetterCode: 'NCL'\r\n },\r\n {\r\n name: 'New Zealand',\r\n twoLetterCode: 'NZ',\r\n threeLetterCode: 'NZL'\r\n },\r\n {\r\n name: 'Nicaragua',\r\n twoLetterCode: 'NI',\r\n threeLetterCode: 'NIC'\r\n },\r\n {\r\n name: 'Niger',\r\n twoLetterCode: 'NE',\r\n threeLetterCode: 'NER'\r\n },\r\n {\r\n name: 'Nigeria',\r\n twoLetterCode: 'NG',\r\n threeLetterCode: 'NGA'\r\n },\r\n {\r\n name: 'Niue',\r\n twoLetterCode: 'NU',\r\n threeLetterCode: 'NIU'\r\n },\r\n {\r\n name: 'Norfold Island',\r\n twoLetterCode: 'NF',\r\n threeLetterCode: 'NFK'\r\n },\r\n {\r\n name: 'North Korea',\r\n twoLetterCode: 'KP',\r\n threeLetterCode: 'PRK'\r\n },\r\n {\r\n name: 'North Macedonia',\r\n twoLetterCode: 'MK',\r\n threeLetterCode: 'MKD'\r\n },\r\n {\r\n name: 'Northern Mariana Islands',\r\n twoLetterCode: 'MP',\r\n threeLetterCode: 'MNP'\r\n },\r\n {\r\n name: 'Norway',\r\n twoLetterCode: 'NO',\r\n threeLetterCode: 'NOR'\r\n },\r\n {\r\n name: 'Oman',\r\n twoLetterCode: 'OM',\r\n threeLetterCode: 'OMN'\r\n },\r\n {\r\n name: 'Pakistan',\r\n twoLetterCode: 'PK',\r\n threeLetterCode: 'PAK'\r\n },\r\n {\r\n name: 'Palau',\r\n twoLetterCode: 'PW',\r\n threeLetterCode: 'PLW'\r\n },\r\n {\r\n name: 'Palestine',\r\n twoLetterCode: 'PS',\r\n threeLetterCode: 'PSE'\r\n },\r\n {\r\n name: 'Panama',\r\n twoLetterCode: 'PA',\r\n threeLetterCode: 'PAN'\r\n },\r\n {\r\n name: 'Papua New Guinea',\r\n twoLetterCode: 'PG',\r\n threeLetterCode: 'PNG'\r\n },\r\n {\r\n name: 'Paraguay',\r\n twoLetterCode: 'PY',\r\n threeLetterCode: 'PRY'\r\n },\r\n {\r\n name: 'Peru',\r\n twoLetterCode: 'PE',\r\n threeLetterCode: 'PER'\r\n },\r\n {\r\n name: 'Philippines',\r\n twoLetterCode: 'PH',\r\n threeLetterCode: 'PHL'\r\n },\r\n {\r\n name: 'Poland',\r\n twoLetterCode: 'PL',\r\n threeLetterCode: 'POL'\r\n },\r\n {\r\n name: 'Portugal',\r\n twoLetterCode: 'PT',\r\n threeLetterCode: 'PRT'\r\n },\r\n {\r\n name: 'Puerto Rico',\r\n twoLetterCode: 'PR',\r\n threeLetterCode: 'PRI'\r\n },\r\n {\r\n name: 'Qatar',\r\n twoLetterCode: 'QA',\r\n threeLetterCode: 'QAT'\r\n },\r\n {\r\n name: 'Réunion',\r\n twoLetterCode: 'RE',\r\n threeLetterCode: 'REU'\r\n },\r\n {\r\n name: 'Romania',\r\n twoLetterCode: 'RO',\r\n threeLetterCode: 'ROU'\r\n },\r\n {\r\n name: 'Russia',\r\n twoLetterCode: 'RU',\r\n threeLetterCode: 'RUS'\r\n },\r\n {\r\n name: 'Rwanda',\r\n twoLetterCode: 'RW',\r\n threeLetterCode: 'RWA'\r\n },\r\n {\r\n name: 'Saint Barthélemy',\r\n twoLetterCode: 'BL',\r\n threeLetterCode: 'BLM'\r\n },\r\n {\r\n name: 'Saint Helena',\r\n twoLetterCode: 'SH',\r\n threeLetterCode: 'SHN'\r\n },\r\n {\r\n name: 'Saint Kitts and Nevis',\r\n twoLetterCode: 'KN',\r\n threeLetterCode: 'KNA'\r\n },\r\n {\r\n name: 'Saint Lucia',\r\n twoLetterCode: 'LC',\r\n threeLetterCode: 'LCA'\r\n },\r\n {\r\n name: 'Saint Martin',\r\n twoLetterCode: 'MF',\r\n threeLetterCode: 'MAF'\r\n },\r\n {\r\n name: 'Saint Pierre and Miquelon',\r\n twoLetterCode: 'PM',\r\n threeLetterCode: 'SPM'\r\n },\r\n {\r\n name: 'Saint Vincent and the Grenadines',\r\n twoLetterCode: 'VC',\r\n threeLetterCode: 'VCT'\r\n },\r\n {\r\n name: 'Samoa',\r\n twoLetterCode: 'WS',\r\n threeLetterCode: 'WSM'\r\n },\r\n {\r\n name: 'San Marino',\r\n twoLetterCode: 'SM',\r\n threeLetterCode: 'SMR'\r\n },\r\n {\r\n name: 'Sao Tome and Principe',\r\n twoLetterCode: 'ST',\r\n threeLetterCode: 'STP'\r\n },\r\n {\r\n name: 'Saudi Arabia',\r\n twoLetterCode: 'SA',\r\n threeLetterCode: 'SAU'\r\n },\r\n {\r\n name: 'Senegal',\r\n twoLetterCode: 'SN',\r\n threeLetterCode: 'SEN'\r\n },\r\n {\r\n name: 'Serbia',\r\n twoLetterCode: 'RS',\r\n threeLetterCode: 'SRB'\r\n },\r\n {\r\n name: 'Seychelles',\r\n twoLetterCode: 'SC',\r\n threeLetterCode: 'SYC'\r\n },\r\n {\r\n name: 'Sierra Leone',\r\n twoLetterCode: 'SL',\r\n threeLetterCode: 'SLE'\r\n },\r\n {\r\n name: 'Singapore',\r\n twoLetterCode: 'SG',\r\n threeLetterCode: 'SGP'\r\n },\r\n {\r\n name: 'Sint Maarten (Dutch part)',\r\n twoLetterCode: 'SX',\r\n threeLetterCode: 'SXM'\r\n },\r\n {\r\n name: 'Slovakia',\r\n twoLetterCode: 'SK',\r\n threeLetterCode: 'SVK'\r\n },\r\n {\r\n name: 'Slovenia',\r\n twoLetterCode: 'SI',\r\n threeLetterCode: 'SVN'\r\n },\r\n {\r\n name: 'Solomon Islands',\r\n twoLetterCode: 'SB',\r\n threeLetterCode: 'SLB'\r\n },\r\n {\r\n name: 'Somalia',\r\n twoLetterCode: 'SO',\r\n threeLetterCode: 'SOM'\r\n },\r\n {\r\n name: 'South Africa',\r\n twoLetterCode: 'ZA',\r\n threeLetterCode: 'ZAF'\r\n },\r\n {\r\n name: 'South Georgia',\r\n twoLetterCode: 'GS',\r\n threeLetterCode: 'SGS'\r\n },\r\n {\r\n name: 'South Korea',\r\n twoLetterCode: 'KR',\r\n threeLetterCode: 'KOR'\r\n },\r\n {\r\n name: 'South Sudan',\r\n twoLetterCode: 'SS',\r\n threeLetterCode: 'SSD'\r\n },\r\n {\r\n name: 'Spain',\r\n twoLetterCode: 'ES',\r\n threeLetterCode: 'ESP'\r\n },\r\n {\r\n name: 'Sri Lanka',\r\n twoLetterCode: 'LK',\r\n threeLetterCode: 'LKA'\r\n },\r\n {\r\n name: 'Sudan',\r\n twoLetterCode: 'SD',\r\n threeLetterCode: 'SDN'\r\n },\r\n {\r\n name: 'Suriname',\r\n twoLetterCode: 'SR',\r\n threeLetterCode: 'SUR'\r\n },\r\n {\r\n name: 'Svalbard and Jan Mayen[',\r\n twoLetterCode: 'SJ',\r\n threeLetterCode: 'SJM'\r\n },\r\n {\r\n name: 'Sweden',\r\n twoLetterCode: 'SE',\r\n threeLetterCode: 'SWE'\r\n },\r\n {\r\n name: 'Switzerland',\r\n twoLetterCode: 'CH',\r\n threeLetterCode: 'CHE'\r\n },\r\n {\r\n name: 'Syria',\r\n twoLetterCode: 'SY',\r\n threeLetterCode: 'SYR'\r\n },\r\n {\r\n name: 'Taiwan',\r\n twoLetterCode: 'TW',\r\n threeLetterCode: 'TWN'\r\n },\r\n {\r\n name: 'Tajikistan',\r\n twoLetterCode: 'TJ',\r\n threeLetterCode: 'TJK'\r\n },\r\n {\r\n name: 'Tanzania',\r\n twoLetterCode: 'TZ',\r\n threeLetterCode: 'TZA'\r\n },\r\n {\r\n name: 'Thailand',\r\n twoLetterCode: 'TH',\r\n threeLetterCode: 'THA'\r\n },\r\n {\r\n name: 'Timor-Leste',\r\n twoLetterCode: 'TL',\r\n threeLetterCode: 'TLS'\r\n },\r\n {\r\n name: 'Togo',\r\n twoLetterCode: 'TG',\r\n threeLetterCode: 'TGO'\r\n },\r\n {\r\n name: 'Tokelau',\r\n twoLetterCode: 'TK',\r\n threeLetterCode: 'TKL'\r\n },\r\n {\r\n name: 'Tonga',\r\n twoLetterCode: 'TO',\r\n threeLetterCode: 'TON'\r\n },\r\n {\r\n name: 'Trinidad and Tobago',\r\n twoLetterCode: 'TT',\r\n threeLetterCode: 'TTO'\r\n },\r\n {\r\n name: 'Tunisia',\r\n twoLetterCode: 'TN',\r\n threeLetterCode: 'TUN'\r\n },\r\n {\r\n name: 'Turkey',\r\n twoLetterCode: 'TR',\r\n threeLetterCode: 'TUR'\r\n },\r\n {\r\n name: 'Turkmenistan',\r\n twoLetterCode: 'TM',\r\n threeLetterCode: 'TKM'\r\n },\r\n {\r\n name: 'Turks and Caicos Islands',\r\n twoLetterCode: 'TC',\r\n threeLetterCode: 'TCA'\r\n },\r\n {\r\n name: 'Tuvalu',\r\n twoLetterCode: 'TV',\r\n threeLetterCode: 'TUV'\r\n },\r\n {\r\n name: 'Uganda',\r\n twoLetterCode: 'UG',\r\n threeLetterCode: 'UGA'\r\n },\r\n {\r\n name: 'Ukraine',\r\n twoLetterCode: 'UA',\r\n threeLetterCode: 'UKR'\r\n },\r\n {\r\n name: 'United Arab Emirates',\r\n twoLetterCode: 'AE',\r\n threeLetterCode: 'ARE'\r\n },\r\n {\r\n name: 'United Kingdom',\r\n twoLetterCode: 'GB',\r\n threeLetterCode: 'GBR'\r\n },\r\n {\r\n name: 'United States',\r\n twoLetterCode: 'US',\r\n threeLetterCode: 'USA'\r\n },\r\n {\r\n name: 'Uruguay',\r\n twoLetterCode: 'UY',\r\n threeLetterCode: 'URY'\r\n },\r\n {\r\n name: 'Uzbekistan',\r\n twoLetterCode: 'UZ',\r\n threeLetterCode: 'UZB'\r\n },\r\n {\r\n name: 'Vanuatu',\r\n twoLetterCode: 'VU',\r\n threeLetterCode: 'VUT'\r\n },\r\n {\r\n name: 'Vatican City',\r\n twoLetterCode: 'VA',\r\n threeLetterCode: 'VAT'\r\n },\r\n {\r\n name: 'Venezuela',\r\n twoLetterCode: 'VE',\r\n threeLetterCode: 'VEN'\r\n },\r\n {\r\n name: 'Vietnam',\r\n twoLetterCode: 'VN',\r\n threeLetterCode: 'VNM'\r\n },\r\n {\r\n name: 'Virgin Islands (British)',\r\n twoLetterCode: 'VG',\r\n threeLetterCode: 'VGB'\r\n },\r\n {\r\n name: 'Virgin Islands (U.S)',\r\n twoLetterCode: 'VI',\r\n threeLetterCode: 'VIR'\r\n },\r\n {\r\n name: 'Wallis and Futuna',\r\n twoLetterCode: 'WF',\r\n threeLetterCode: 'WLF'\r\n },\r\n {\r\n name: 'Western Sahara',\r\n twoLetterCode: 'EH',\r\n threeLetterCode: 'ESH'\r\n },\r\n {\r\n name: 'Yemen',\r\n twoLetterCode: 'YE',\r\n threeLetterCode: 'YEM'\r\n },\r\n {\r\n name: 'Zambia',\r\n twoLetterCode: 'ZM',\r\n threeLetterCode: 'ZMB'\r\n },\r\n {\r\n name: 'Zimbabwe',\r\n twoLetterCode: 'ZW',\r\n threeLetterCode: 'ZWE'\r\n }\r\n];\r\n"],"names":["SummaryForm","_ref","formProps","label","paymentAmount","addPaymentButton","appliedLine","bottomBorder","React","Node","Object","assign","EditForm","_ref2","alert","accountDetails","paymentLabel","PaymentButtonLabel","styled","div","Primary","props","CheckoutCustomerAccountView","checkoutCustomerAccount","summaryView","editView","moduleState","resources","applyPaymentLabel","Module","isReady","_renderCartlines","cartLines","cartEmptyText","CartlinesWrapper","storeSelector","backToShoppingButton","waitingComponent","cartLoadingStatus","cartDataResult","map","cartLine","className","key","cartlineId","cartline","pickUpInStore","ContainerProps","defaultComponent","addToOrderTemplate","remove","renderCartLinesGroupHeader","pickUpText","shippingText","emailShippingText","titleSeparate","emailDeliveryModeCode","_cartLine$pickUpInSto4","groupTitle","isBopisSelected","data","DeliveryMode","toLowerCase","renderCartLinesGroupTitle","_cartLine$pickUpInSto","_cartLine$pickUpInSto2","_cartLine$pickUpInSto3","deliveryOption","orgUnitName","CartView","_props$cart","_props$cart2","errorData","promotions","id","renderModuleAttributes","title","cart","hasInvoiceLine","promotionOptions","promotionMessageWrapper","promotionMessage","promotionSeeAllLink","promotionDialog","multiplePickUpEnabled","cartLinesGroup","ArrayExtensions","hasElements","cartlines","_props$context$action","emailshippingText","context","actionContext","requestContext","channel","EmailDeliveryModeCode","emptyCartText","renderCartLinesGroup","orderSummaryHeading","OrderSummaryWrapper","_renderInvoiceSummarylines","invoiceSummaryLines","OrderSummaryItems","invoices","giftCard","loyalty","orderTotal","telemetry","error","invoiceSummaryLineitems","_renderOrderSummarylines","orderSummaryLines","subtotal","shipping","otherCharge","tax","totalDiscounts","orderSummaryLineitems","OrderSummaryErrors","errors","Wrapper","header","checkoutAsSignInUserButton","checkoutAsGuestButton","createTemplateFromCartButton","Division","hr","FooterCategoryView","_salesAndRefundPolicy","_salesAndRefundPolicy2","_termsOfUse","_termsOfUse2","_privacyPolicy","_privacyPolicy2","categories","FooterList","FooterListItem","policies","policy","result","length","privacyPolicy","salesAndRefundPolicy","termsOfUse","Id","createElement","category","index","style","paddingRight","href","URL","DESCRIPTION","class","consent","role","async","type","crossorigin","importance","src","tabindex","lang","OrderConfirmationOrderInfomation","orderInformationProps","receiptEmail","createdDate","channelReferenceId","orderType","OrderWrapper","ConfirmationId","confirmationId","children","confirmationIdLabel","OrderConfirmationSalesLine","_data$product","_data$product2","_data$product$Primary","_data$product3","_data$product4","count","quantity","showAddress","address","dimensions","product","Dimensions","dimension","_dimension$DimensionV","DimensionValue","Value","fallbackImageUrl","getFallbackImageUrl","ItemId","apiSettings","SalesLineWrapper","ItemDetails","ItemAddress","Image","PrimaryImageUrl","fallBackSrc","gridSettings","sm","w","fontWeight","Name","quantityLabel","salesStatus","processingLabel","OrderConfirmationGroupDelivery","deliveryProps","heading","pickupDateTimeslot","salesLines","bopis","PHONE","OrderConfirmationGroup","_ref3","groupProps","delivery","salesLinesProps","OrderGroup","deliveryLabel","isVisible","filter","saleLine","ExtensionProperties","BooleanValue","Street","shippingItemsToYou","split","shift","unshift","deliveringLabel","width","join","salesLine","LineId","Quantity","undefined","OrderConfirmationGroups","groupsProps","groups","group","OrderConfirmationOrderSummary","_ref4","orderSummaryProps","totalAmount","earnedPoints","OrderConfirmationPayment","paymentMethodsProps","methods","paymentKey","salesOrder","bankDeposit","ShippingAddress","ThreeLetterISORegionName","orderConfirmationKCP","AttributeValues","TextValue","unitOrderPayment","bankPayment","storePayment","OrderConfirmationHelp","_ref5","helpProps","needHelpLabel","helpLineNumberLabel","contactNumber","OrderConfirmationView","_props$groups","_props$salesOrder","checkoutProducts","setCheckoutProducts","adobeCheck","setAdobeCheck","bopisStore","setBopisStore","setChannel","warehouse","setWarehouse","backToShoppingUrl","Msdyn365","deliveryType","BackToShoppingWrapper","bankDepositPrimary","bankDepositSecondary","payment","attribute","paymentTypeName","TenderLines","CardTypeId","pickupStore","orderHistory","sessionStorage","getItem","item","ctx","callerContext","ProductId","Price","Product","productAttributes","getAttributeValuesAsync","request","RecordId","catch","err","console","log","language","DimensionTypeValue","Style","Size","fulfillableSku","adobeItem","info","sku","name","size","price","basePrice","prevState","getSku","_props$salesOrder2","window","ChannelReferenceId","push","event","transaction","total","transactionTotal","GrossAmount","currency","CurrencyCode","attributes","paymentMethod","AdobeAnalyticsCheckout","setItem","stores","getStoreHoursAsync","store","_props$salesOrder3","_props$salesOrder4","ZIPCODE","ZipCode","STREET","getPickupStore","_props$context$reques","getRetailChannelAsync","warehouseId","InventoryLocationId","getWarehouseAsync","getRetailChannel","moduleProps","loading","orderInfomation","display","flexDirection","justifyContent","NotificationCity","NotificationDescription","NotificationStreet","NotificationState","NotificationZipCode","NotificationRegionId","dangerouslySetInnerHTML","__html","backToShopping","orderSummary","help","LdsFooter","render","this","renderView","paymentApplied","CountryPicker","constructor","super","_telemetryContent","getTelemetryObject","telemetryPageName","friendlyName","_preferredSiteStorageKey","_cookieExpirationTime","handleClickCustom","storageValue","twoLetterCode","_writeToCookie","closeModal","setState","isModalOpen","_handleStayOnSiteButtonClick","_this$props$context$r","currentBaseUrl","marketSettings","urlToStore","_appendProtocolToUrl","_handleClick","storageKey","cookieOptions","secure","sameSite","maxAge","cookies","set","baseUrl","includes","isCookieValueSet","get","value","state","_heading$tag","subheading","countryList","actionLink","config","isConsentGiven","countryPickerHeading","MsDyn365","tag","text","editProps","onEdit","handleTextChange","countryPickerSubHeading","handleParagraphChange","countryPickerActionLink","createLink","currentSiteButton","Button","onClick","tabIndex","stayOnCurrentSiteButtonText","viewprops","_objectSpread","onContinue","modalContainer","Modal","isOpen","toggle","modalTransition","timeout","shouldUpdateFocusToFirstElement","modalHeaderContainer","ModalHeader","closeButtonTabIndex","modalFooterContainer","ModalFooter","modalBodyContainer","ModalBody","link","renderCountryList","stayOnCurrentSiteButton","target","handleLinkTextChange","_this$props$config$ac","linkText","StringExtensions","isNullOrEmpty","linkUrl","destinationUrl","_link$linkText","payLoad","getPayloadObject","getTelemetryAttributes","editableLink","ariaLabel","openInNewTab","additionalProperties","onTelemetryClick","onTextChange","localeItems","renderCountry","localeItem","_image$imageSettings","_image$src","localeBaseUrl","matchedCountryItem","find","url","imageSize","q","h","defaultImageSettings","viewports","xs","lg","xl","lazyload","image","imageProps","imageSettings","displayString","altText","loadFailureBehavior","shouldSkipToMainImage","displaySubString","withModuleState","WrappedComponent","_super","ModuleState","_this","call","initializeState","_b","typeName","states","getModuleStates","updateModuleStates","__assign","_a","hasInitialized","hasError","isRequired","isCancellable","isSubmitContainer","status","childIds","getModuleStateManager","validate","isUpdating","isPending","isSkipped","isDisabled","isCancelAllowed","shouldSubmitContainer","hasExternalSubmitGroup","hasModuleState","setIsRequired","update","setIsCancellable","setIsSubmitContainer","setHasError","onReady","onUpdating","onPending","onSkip","onDisable","getModule","moduleId","getModuleByTypeName","getModuleStateManagerByTypeName","init","options","moduleStates","values","_moduleState","modules","_validateLeaf","source","module","isMatch","_validateContainer","allMatched","skipSkippableItem","app","shouldEnableSinglePaymentAuthorizationCheckout","childId","_isPaymentSectionContainer","enableControl","__extends","prototype","shouldComponentUpdate","nextProps","__decorate","observer","setLocale","locale","pathSplit","location","pathname","splice","country","pathName","document","cookie","canonicalDomain","sitePath","CheckoutState","_giftCards","_giftCardExtends","_loyaltyAmount","_guestCheckoutEmail","_isTermsAndConditionAccepted","_customerAccountAmount","defineProperty","_tokenizedPaymentCard","_tenderLine","_billingAddress","_shippingAddress","_cardPrefix","_loyaltyCardNumber","updateTokenizedPaymentCard","newTokenizedPaymentCard","updateTenderLine","newTenderLine","updateShippingAddress","newShippingAddress","updateBillingAddress","newBillingAddress","updateCardPrefix","newCardPrefix","removeGiftCard","giftCardNumber","removeGiftCardExtend","addGiftCard","__spreadArrays","addGiftCardExtend","updateLoyaltyCardNumber","newLoyaltyCardNumber","updateLoyaltyAmount","newAmount","updateGuestCheckoutEmail","newGuestCheckoutEmail","updateTermsAndConditionsAcceptance","newIsTermsAndConditionAccepted","updateCustomerAccountAmount","observable","computed","action","countryPickerView","_props$data","_props$data2","_props$config$globalS","_props$config$globalS2","_props$config$distrib","_props$config$distrib2","setCountry","setLanguage","cartState","setCartState","selectedCountry","setSelectedCountry","selectedLanguage","setSelectedLanguage","countryCodes","countryCodeList","countryRegion","countries","countryRegionId","threeLetterCode","CountryName","getCurrentCountry","currentLanguage","languages","LanguageId","languageName","getCurrentLanguage","countriesList","languagesList","sortedRegions","sortedLanguages","option","sort","a","b","paddingTop","paddingLeft","countryLanguageDescriptionOne","countryLanguageDescriptionTwo","countrySelectLabel","placeholder","countrySelectPlaceholder","onChange","e","onCountryChange","height","disabled","region","selected","languageSelectLabel","languageSelectPlaceholder","onLanguageChange","countryLanguageDescriptionThree","globalServiceCenterLink","countryLanguageDescriptionFour","distributionServiceLink","countryLanguageDescriptionFive","setLocalization","countryCodeItem","urlForCookie","origin","cookieUrl","toLocaleLowerCase","baseURLCountry","baseURLLanguage","fullWidth","countryLanguageContinueButtonText","ModuleStatesCacheKey","getCacheKey","getCacheObjectType","dataCacheType","cacheKey","CookieComplianceAcceptButton","acceptCookiesButtonText","acceptCookiesButtonAriaLabel","telemetryContent","onClose","CookieComplianceLinks","_mapEditableLinks","linkdata","editableLinks","forEach","contentAction","etext","links","CookieCompliance","linkIndex","actionLinks","handleContentChange","content","visible","cookieRef","_onDismiss","bind","componentDidMount","acceptCookiesAriaLabel","moduleConfig","isBrowser","viewProps","onDismiss","CookieComplianceBanner","classnames","ref","AlertProps","color","fade","Content","acceptButton","setConsentCookie","reload","CookieComplianceView","Alert","EnabledPaymentsForOBO","FooterImageLink","Links","footerImage","alt","SiteLinks","contactUs","contactLink","helpLink","storeLocator","feedback","feedbackLink","Text5","rel","TermsAndConditions","impressum","salesTitle","impressumTitle","PolicyType","cursor","Description","FooterLinks","footerInfo","TermsOfService","termsTitle","privacyTitle","CopyRight","currentYearString","Date","getFullYear","toString","copyRightText","format","copyRight","allRightsReserved","FooterLegal","_props$data$policy","privacyInfo","setPrivacyInfo","setPrivacyTitle","salesInfo","setSalesInfo","setSalesTitle","termsInfo","setTermsInfo","setTermsTitle","impressumInfo","setImpressumInfo","setImpressumTitle","_policy$POLICYTYPE","_policy$PolicyType","_policy$POLICYTYPE2","_policy$PolicyType2","_policy$PolicyType3","_policy$PolicyType4","_policy$POLICYTYPE3","_policy$PolicyType5","_policy$PolicyType6","_policy$POLICYTYPE4","_policy$PolicyType7","parseInt","process","POLICYTYPE","getSalesData","results","lDSPublisherPolicyAsync","Title","getTermsData","getPrivacyData","getImpressumData","_props$context$reques2","countryInfo","localeInfo","JSON","stringify","CountryRegionId","_props$context$reques3","encodedString","encodeURIComponent","policyType","open","CheckoutStateInput","buildCacheKey","createObservableDataAction","input","inputData","onAddAccountPayment","onAddPayment","preventDefault","onChangeAmountHandler","onChangePaymentAmount","Number","parseFloat","getAccountPaymentFormEditMode","amount","maxAmount","customer","customerCreatedDate","availableCredit","showCreditLimit","errorMessage","onToggleCreditSection","creditSectionIsExpanded","excessCredit","onRemovePayment","appliedAmount","addPaymentButtonLabel","inputAmountLabel","inputAmountAriaLabel","customerSinceLabel","accountCreditLabel","creditDetailsSectionLabel","orderTotalLabel","availableCreditLabel","creditExcessLabel","appliedCustomerAccountPaymentLabel","removeCustomerAccountPaymentLabel","accountCreditDetails","inputLabel","onSubmit","inputAmount","onInput","min","max","customerName","customerAccountNumber","AccountNumber","customerSince","accountCredit","assertive","includeAlertClass","getAccountPaymentFormSummaryMode","inputAmountSummaryLabel","CheckoutCustomerAccountPayment","baseClassName","getAvailableCredit","creditBalances","InvoiceAccountCreditLimit","CreditLimit","Balance","PendingBalance","InvoiceAccountBalance","InvoiceAccountPendingBalance","addPayment","checkoutState","checkout","maxPaymentAmount","information","toggleCreditSection","isCreditSectionExpanded","onCancel","handleCancelOrSubmit","customerAccountAmount","updateMaxAmount","Math","removePayment","customerInfo","platform","AllowOnAccountPayment","enableCustomerAccountPayment","IsB2b","loyaltyAmount","giftCards","giftCardAmount","_this$props$data$cust","checkoutCart","amountDue","TotalAmount","getLoyaltyAmount","getGiftCardAmount","_this$props$data$cred","customerInformation","MandatoryCreditLimit","invalidAmountMessage","cultureFormatter","formatCurrency","currencyCode","reaction","nextState","isCustomerAccountPaymentEnabled","customerSinceDate","CreatedDateTime","toLocaleDateString","formattedExcessCredit"],"sourceRoot":""}