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,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,yBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,gBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,iCACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,eACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,iBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,2BACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,OACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,mBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,gBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,eACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,gBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,OACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,iBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,qBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,cACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,oBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,mBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,gBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,OACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,gBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,mBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,8BACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,YACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,YACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,OACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,YACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,gBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,oCACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,YACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,YACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,OACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,OACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,cACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,OACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,gBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,YACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,YACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,OACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,mBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,YACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,cACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,gBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,cACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,YACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,OACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,iBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,cACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,kBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,2BACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,OACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,YACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,mBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,OACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,cACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,cACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,mBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,eACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,wBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,cACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,eACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,4BACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,mCACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,wBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,eACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,eACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,YACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,4BACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,kBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,eACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,gBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,cACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,cACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,YACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,0BACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,cACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,aACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,WACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,cACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,OACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,QACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,sBACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,eACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,2BACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,SACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,UACNC,cAAe,KACfC,gBAAiB,OAErB,CACIF,KAAM,uBACNC,cAAe,KACfC,gBAAiB,OAErB,CAC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6B,EAAa,QAAU,SACd,SAAAI,GAAW,OAAA7G,EAAKwG,mBAAmBK,EAASR,EAAQI,EAAYC,OAQ3E1G,EAAA8G,2BAA6B,SAAChB,GAC3C,IAAKA,EAAS1vB,SAlNO,qBAmNjB,OAAO,EAGX,IACMkwB,EADUtG,EAAK1pB,MACEwvB,GAEvB,SAAIQ,IAAUtyB,EAAAA,gBAAgBC,YAAYqyB,EAAO1B,SAAS7oB,QAAO,SAAA8qB,GAAW,OAAAA,EAAQzwB,SAxN9D,4BAuOT4pB,EAAA8E,SAAW,SACxBhjB,EACAukB,EACAI,EACAC,GAEA,IACMJ,EADUtG,EAAK1pB,MACEwL,GACvB,QAAKwkB,IAKAA,EAAO1B,UAAuC,IAA3B0B,EAAO1B,SAASl1B,OAKjCswB,EAAKwG,mBAAmB1kB,EAAIukB,EAAQI,EAAYC,GAJ5C1G,EAAKoG,cAActkB,EAAIukB,KAWrBrG,EAAAqF,uBAAyB,WACtC,QAASrF,EAAKhwB,MAAM+2B,eAQP/G,EAAAsF,eAAiB,SAACxjB,GAG/B,QAFgBke,EAAK1pB,MACEwL,IA/PvBke,EAAKiE,kBAAiB,EAkQ9B,OArQ0B+C,EAAAA,EAAAA,IAAAjD,EAAAD,GAMfC,EAAA3C,UAAAxa,sBAAP,SAA6BC,GACzB,OAAI9W,KAAKC,QAAU6W,GAMhBkd,EAAA3C,UAAAvwB,OAAP,WACY,IAAAiR,EAAO/R,KAAKC,MAAK8R,GACzB,OAAO9S,EAAAA,cAAC60B,GAAgBQ,EAAAA,EAAAA,IAAA,GAAKt0B,KAAKC,MAAK,CAAEyU,YAAa1U,KAAK80B,sBAAsB/iB,OAfnFiiB,GAAWtc,EAAAA,EAAAA,IAAA,CADhBG,EAAAA,IAAQ,uCACHmc,GAAN,CAA0B/0B,EAAAA","sources":["webpack://lds-commerce/./src/helpers/localization/locale.helper.ts?71a2","webpack://lds-commerce/./src/modules/lds-cookie-compliance/components/accept-button.tsx?60b1","webpack://lds-commerce/./src/modules/lds-cookie-compliance/components/links.tsx?2fbd","webpack://lds-commerce/./src/modules/lds-cookie-compliance/lds-cookie-compliance.tsx?7a76","webpack://lds-commerce/./src/modules/lds-cookie-compliance/lds-cookie-compliance.view.tsx?4cad","webpack://lds-commerce/./src/modules/lds-country-picker/countryList.ts?a899","webpack://lds-commerce/./src/modules/lds-country-picker/lds-country-picker.tsx?2e69","webpack://lds-commerce/./src/modules/lds-country-picker/lds-country-picker.view.tsx?7d3b","webpack://lds-commerce/./src/modules/lds-customer-account-payment/components/get-account-payment-form-edit-mode.tsx?b464","webpack://lds-commerce/./src/modules/lds-customer-account-payment/components/get-account-payment-form-summary-mode.tsx?f163","webpack://lds-commerce/./src/modules/lds-customer-account-payment/lds-checkout-customer-account-payment.tsx?cee1","webpack://lds-commerce/./src/modules/lds-customer-account-payment/lds-checkout-customer-account-payment.view.tsx?c813","webpack://lds-commerce/./src/modules/lds-footer/lds-footer.tsx?6222","webpack://lds-commerce/./src/modules/lds-footer/components/FooterImageLink.tsx?e5e0","webpack://lds-commerce/./src/modules/lds-footer/components/SiteLinks.tsx?9ef9","webpack://lds-commerce/./src/modules/lds-footer/components/TermsAndConditions.tsx?56d6","webpack://lds-commerce/./src/modules/lds-footer/components/FooterLinks.tsx?5e89","webpack://lds-commerce/./src/modules/lds-footer/components/TermsOfService.tsx?1c44","webpack://lds-commerce/./src/modules/lds-footer/components/CopyRight.tsx?3162","webpack://lds-commerce/./src/modules/lds-footer/components/FooterLegal.tsx?b786","webpack://lds-commerce/./src/modules/lds-footer/lds-footer.view.tsx?44e3","webpack://lds-commerce/./src/themes/fabrikam/views/cart.view.tsx?780e","webpack://lds-commerce/./src/themes/fabrikam/views/checkout-customer-account-payment.view.tsx?66b5","webpack://lds-commerce/./src/themes/fabrikam/views/footer-category.view.tsx?3d33","webpack://lds-commerce/./src/themes/fabrikam/views/order-confirmation.view.tsx?f0cd","webpack://lds-commerce/../../src/checkout-state-data-action.ts?8344","webpack://lds-commerce/../../src/checkout-state.ts?acd8","webpack://lds-commerce/../../src/checkout-utilities.data.ts?b2cc","webpack://lds-commerce/../../../src/module-state-manager/module-state.ts?7579","webpack://lds-commerce/../../../src/module-state-manager/with-module-state.tsx?61ca"],"sourcesContent":["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","/*--------------------------------------------------------------\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","/*--------------------------------------------------------------\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","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","/*!\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","/*!\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","/*--------------------------------------------------------------\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","// /*--------------------------------------------------------------\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.\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","/*--------------------------------------------------------------\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","/*--------------------------------------------------------------\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 * 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. 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 {\r\n getStoreHoursAsync,\r\n getRetailChannelAsync,\r\n getWarehouseAsync,\r\n stateNameTranslationAsync\r\n} 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 context?: any;\r\n resources?: 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' || orderType === '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 const updateStateName = async () => {\r\n const ctx = { callerContext: context.actionContext };\r\n let response;\r\n // @ts-ignore\r\n if (address && address.props && address.props.address) {\r\n response = await stateNameTranslationAsync(\r\n ctx,\r\n // @ts-ignore\r\n address.props.address.ThreeLetterISORegionName,\r\n // @ts-ignore\r\n address.props.address.State,\r\n context.request.locale\r\n ).catch((err: any) => {\r\n return console.log(err);\r\n });\r\n }\r\n // @ts-ignore\r\n if (response && response.DisplayName && address && address.props && address.props.address) {\r\n // @ts-ignore\r\n address.props.address.State = response.DisplayName;\r\n }\r\n };\r\n React.useEffect(() => {\r\n void updateStateName();\r\n }, []);\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 context,\r\n resources\r\n}) => {\r\n const [pickupText, setPickupText] = React.useState('');\r\n const updateStateName = async () => {\r\n const ctx = { callerContext: context.actionContext };\r\n let response;\r\n // @ts-ignore\r\n if (address && address.props && address.props.address) {\r\n response = await stateNameTranslationAsync(\r\n ctx,\r\n // @ts-ignore\r\n address.props.address.ThreeLetterISORegionName,\r\n // @ts-ignore\r\n address.props.address.State,\r\n context.request.locale\r\n ).catch((err: any) => {\r\n return console.log(err);\r\n });\r\n }\r\n // @ts-ignore\r\n if (response && response.DisplayName && address && address.props && address.props.address) {\r\n // @ts-ignore\r\n address.props.address.State = response.DisplayName;\r\n // @ts-ignore\r\n address.props.address.StateName = response.DisplayName;\r\n }\r\n };\r\n React.useEffect(() => {\r\n void updateStateName();\r\n }, []);\r\n // @ts-ignore\r\n if (heading && heading.props && heading.props.children) {\r\n // @ts-ignore\r\n if (heading.props.children === 'Levantar' && pickupText === '') {\r\n // @ts-ignore\r\n // heading.props.children = 'Recoger';\r\n setPickupText('Recoger');\r\n } else if (\r\n // @ts-ignore\r\n context.request.locale.toLowerCase() !== 'en-us' &&\r\n pickupText === ''\r\n ) {\r\n // @ts-ignore\r\n if (heading.props.children.toLowerCase() === 'pickup order' || heading.props.children.toLowerCase() === 'pickup')\r\n // @ts-ignore\r\n // heading.props.children = resources.pickUpTextConfirmation;\r\n setPickupText(resources.pickUpTextConfirmation);\r\n }\r\n }\r\n\r\n return (\r\n \r\n {pickupText || 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 \r\n )}\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 const orderTypeCheck = orderType.toLowerCase();\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 paymentKey !== '103' &&\r\n (orderTypeCheck === 'pickup Order' ||\r\n orderTypeCheck === 'curbside pickup' ||\r\n orderTypeCheck === 'pickup' ||\r\n orderTypeCheck === 'curbside' ||\r\n orderTypeCheck === 'curbside Pick up' ||\r\n orderTypeCheck === '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 const orderTypeCheck = orderType ? orderType.toLowerCase() : '';\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 (orderTypeCheck === 'pickup order' ||\r\n orderTypeCheck === 'curbside pickup' ||\r\n orderTypeCheck === 'pickup' ||\r\n orderTypeCheck === 'curbside' ||\r\n orderTypeCheck === 'curbside pick up' ||\r\n orderTypeCheck === '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 // @ts-ignore\r\n if (window && window['digitalData']) {\r\n // @ts-ignore\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","/*!\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","/*!\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, Note, 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 @observable private _customerReference: string = '';\n @observable private _customerRequisition: string = '';\n @observable private _note: Note = {};\n\n @computed public get guestCheckoutEmail(): Readonly | string {\n return this._guestCheckoutEmail;\n }\n\n @computed public get customerReference(): Readonly | string {\n return this._customerReference;\n }\n\n @computed public get customerRequisition(): Readonly | string {\n return this._customerRequisition;\n }\n\n @computed public get note(): Readonly | Note[] {\n return this._note;\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(\n newGuestCheckoutEmail: string,\n customerReference: string,\n customerRequisition: string,\n note: Note\n ): void {\n this._guestCheckoutEmail = newGuestCheckoutEmail;\n this._customerReference = customerReference;\n this._customerRequisition = customerRequisition;\n this._note = note;\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","/*--------------------------------------------------------------\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","/*!\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","/*!\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"],"names":["setLocale","locale","requestContext","window","pathSplit","location","pathname","split","shift","splice","country","language","pathName","join","document","cookie","canonicalDomain","sitePath","assign","CookieComplianceAcceptButton","_ref","acceptCookiesButtonText","acceptCookiesButtonAriaLabel","telemetryContent","onClose","payLoad","getPayloadObject","attributes","getTelemetryAttributes","React","Primary","Object","type","className","onClick","CookieComplianceLinks","constructor","_mapEditableLinks","linkdata","length","editableLinks","forEach","link","index","this","props","linkText","contentAction","etext","editableLink","ariaLabel","linkUrl","destinationUrl","openInNewTab","role","additionalProperties","onTelemetryClick","push","render","links","Msdyn365","editProps","onTextChange","CookieCompliance","super","getTelemetryObject","context","request","telemetryPageName","friendlyName","telemetry","handleLinkTextChange","linkIndex","event","_this$props$config$ac","config","actionLinks","target","value","handleContentChange","content","state","visible","cookieRef","_onDismiss","bind","componentDidMount","cookies","isConsentGiven","setState","resources","acceptCookiesAriaLabel","moduleConfig","error","MsDyn365","isBrowser","viewProps","_objectSpread","onDismiss","CookieComplianceBanner","moduleProps","classnames","ref","AlertProps","color","fade","Content","text","onEdit","ArrayExtensions","hasElements","acceptButton","renderView","setConsentCookie","reload","Module","Alert","Node","countryCodeList","name","twoLetterCode","threeLetterCode","CountryPicker","_telemetryContent","_preferredSiteStorageKey","_cookieExpirationTime","handleClickCustom","storageValue","_writeToCookie","closeModal","isModalOpen","_handleStayOnSiteButtonClick","_this$props$context$r","currentBaseUrl","marketSettings","urlToStore","_appendProtocolToUrl","_handleClick","storageKey","cookieOptions","secure","sameSite","maxAge","set","baseUrl","includes","isCookieValueSet","get","undefined","_heading$tag","heading","subheading","countryList","actionLink","countryPickerHeading","tag","handleTextChange","countryPickerSubHeading","handleParagraphChange","countryPickerActionLink","createLink","currentSiteButton","Button","tabIndex","stayOnCurrentSiteButtonText","viewprops","onContinue","modalContainer","Modal","isOpen","toggle","modalTransition","timeout","shouldUpdateFocusToFirstElement","modalHeaderContainer","ModalHeader","closeButtonTabIndex","modalFooterContainer","ModalFooter","modalBodyContainer","ModalBody","renderCountryList","stayOnCurrentSiteButton","StringExtensions","isNullOrEmpty","_link$linkText","localeItems","map","renderCountry","localeItem","_image$imageSettings","_image$src","localeBaseUrl","matchedCountryItem","find","item","url","imageSize","q","w","h","defaultImageSettings","viewports","xs","lg","xl","lazyload","image","imageProps","gridSettings","imageSettings","key","displayString","href","src","altText","loadFailureBehavior","shouldSkipToMainImage","displaySubString","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","async","countryCodes","filter","_props$context$reques","countryRegion","data","countries","result","countryRegionId","label","CountryName","getCurrentCountry","currentLanguage","languages","LanguageId","languageName","getCurrentLanguage","status","countriesList","languagesList","sortedRegions","sortedLanguages","option","sort","a","b","style","paddingTop","paddingLeft","countryLanguageDescriptionOne","countryLanguageDescriptionTwo","width","countrySelectLabel","placeholder","countrySelectPlaceholder","onChange","e","onCountryChange","height","disabled","region","selected","languageSelectLabel","languageSelectPlaceholder","lang","onLanguageChange","countryLanguageDescriptionThree","globalServiceCenterLink","countryLanguageDescriptionFour","distributionServiceLink","countryLanguageDescriptionFive","setLocalization","countryCodeItem","urlForCookie","origin","cookieUrl","toLocaleLowerCase","baseURLCountry","baseURLLanguage","actionContext","fullWidth","countryLanguageContinueButtonText","onAddAccountPayment","onAddPayment","preventDefault","onChangeAmountHandler","onChangePaymentAmount","Number","parseFloat","getAccountPaymentFormEditMode","options","amount","maxAmount","customer","customerCreatedDate","availableCredit","showCreditLimit","errorMessage","onToggleCreditSection","creditSectionIsExpanded","orderTotal","excessCredit","onRemovePayment","appliedAmount","addPaymentButtonLabel","inputAmountLabel","inputAmountAriaLabel","customerSinceLabel","accountCreditLabel","creditDetailsSectionLabel","orderTotalLabel","availableCreditLabel","creditExcessLabel","appliedCustomerAccountPaymentLabel","removeCustomerAccountPaymentLabel","accountCreditDetails","inputLabel","id","formProps","onSubmit","addPaymentButton","inputAmount","onInput","min","max","customerName","Name","customerAccountNumber","AccountNumber","customerSince","accountCredit","accountDetails","alert","assertive","includeAlertClass","appliedLine","bottomBorder","getAccountPaymentFormSummaryMode","inputAmountSummaryLabel","paymentAmount","CheckoutCustomerAccountPayment","baseClassName","getAvailableCredit","creditBalances","InvoiceAccountCreditLimit","CreditLimit","Balance","PendingBalance","InvoiceAccountBalance","InvoiceAccountPendingBalance","addPayment","checkoutState","checkout","maxPaymentAmount","updateCustomerAccountAmount","newAmount","information","toggleCreditSection","isCreditSectionExpanded","init","moduleState","onCancel","handleCancelOrSubmit","customerAccountAmount","onReady","updateMaxAmount","Math","onUpdating","onSkip","removePayment","customerInfo","platform","AllowOnAccountPayment","enableCustomerAccountPayment","IsB2b","loyaltyAmount","giftCards","giftCardAmount","giftCard","_this$props$data$cust","cart","checkoutCart","amountDue","TotalAmount","getLoyaltyAmount","getGiftCardAmount","_this$props$data$cred","customerInformation","MandatoryCreditLimit","invalidAmountMessage","cultureFormatter","formatCurrency","currencyCode","reaction","totalAmount","shouldComponentUpdate","nextProps","nextState","isCustomerAccountPaymentEnabled","hasInvoiceLine","customerSinceDate","Date","CreatedDateTime","toLocaleDateString","checkoutCustomerAccount","editView","formattedExcessCredit","summaryView","__decorate","computed","withModuleState","observer","SummaryForm","EditForm","_ref2","paymentLabel","PaymentButtonLabel","styled","div","applyPaymentLabel","isReady","LdsFooter","FooterImageLink","Links","footerImage","alt","contactUs","contactLink","help","helpLink","storeLocator","feedback","feedbackLink","Text5","rel","salesAndRefundPolicy","impressum","salesTitle","impressumTitle","PolicyType","cursor","DESCRIPTION","Description","FooterLinks","SiteLinks","TermsAndConditions","dangerouslySetInnerHTML","__html","footerInfo","termsOfUse","privacyPolicy","termsTitle","privacyTitle","currentYearString","getFullYear","toString","copyRightText","format","copyRight","allRightsReserved","FooterLegal","TermsOfService","CopyRight","_props$data$policy","privacyInfo","setPrivacyInfo","setPrivacyTitle","salesInfo","setSalesInfo","setSalesTitle","termsInfo","setTermsInfo","setTermsTitle","impressumInfo","setImpressumInfo","setImpressumTitle","policies","policy","_policy$POLICYTYPE","_policy$PolicyType","_policy$POLICYTYPE2","_policy$PolicyType2","_policy$PolicyType3","_policy$PolicyType4","_policy$POLICYTYPE3","_policy$PolicyType5","_policy$PolicyType6","_policy$POLICYTYPE4","_policy$PolicyType7","Id","parseInt","process","POLICYTYPE","getSalesData","ctx","callerContext","results","lDSPublisherPolicyAsync","catch","err","console","log","sessionStorage","setItem","Title","getTermsData","getPrivacyData","getImpressumData","_props$context$reques2","getItem","countryInfo","localeInfo","JSON","stringify","channel","CountryRegionId","_props$context$reques3","encodedString","encodeURIComponent","policyType","open","_renderCartlines","cartLines","cartEmptyText","CartlinesWrapper","storeSelector","backToShoppingButton","waitingComponent","cartLoadingStatus","cartDataResult","cartLine","cartlineId","cartline","pickUpInStore","ContainerProps","defaultComponent","addToOrderTemplate","remove","renderCartLinesGroupHeader","pickUpText","shippingText","emailShippingText","titleSeparate","emailDeliveryModeCode","_cartLine$pickUpInSto4","groupTitle","isBopisSelected","DeliveryMode","toLowerCase","renderCartLinesGroupTitle","_cartLine$pickUpInSto","_cartLine$pickUpInSto2","_cartLine$pickUpInSto3","deliveryOption","orgUnitName","_props$cart","_props$cart2","errorData","promotions","renderModuleAttributes","title","promotionOptions","promotionMessageWrapper","promotionMessage","promotionSeeAllLink","promotionDialog","multiplePickUpEnabled","cartLinesGroup","cartlines","_props$context$action","emailshippingText","EmailDeliveryModeCode","emptyCartText","renderCartLinesGroup","orderSummaryHeading","OrderSummaryWrapper","_renderInvoiceSummarylines","invoiceSummaryLines","OrderSummaryItems","invoices","loyalty","invoiceSummaryLineitems","_renderOrderSummarylines","orderSummaryLines","subtotal","shipping","otherCharge","tax","totalDiscounts","orderSummaryLineitems","OrderSummaryErrors","errors","Wrapper","header","checkoutAsSignInUserButton","checkoutAsGuestButton","createTemplateFromCartButton","paymentApplied","Division","hr","FooterCategoryView","_salesAndRefundPolicy","_salesAndRefundPolicy2","_termsOfUse","_termsOfUse2","_privacyPolicy","_privacyPolicy2","categories","FooterList","FooterListItem","category","paddingRight","URL","class","consent","crossorigin","importance","tabindex","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","response","stateNameTranslationAsync","ThreeLetterISORegionName","State","DisplayName","updateStateName","Image","PrimaryImageUrl","fallBackSrc","sm","fontWeight","quantityLabel","salesStatus","processingLabel","OrderConfirmationGroupDelivery","deliveryProps","pickupDateTimeslot","salesLines","bopis","pickupText","setPickupText","StateName","pickUpTextConfirmation","PHONE","OrderConfirmationGroup","_ref3","groupProps","delivery","salesLinesProps","OrderGroup","deliveryLabel","isVisible","saleLine","ExtensionProperties","BooleanValue","Street","shippingItemsToYou","unshift","deliveringLabel","salesLine","LineId","Quantity","OrderConfirmationGroups","groupsProps","groups","group","OrderConfirmationOrderSummary","_ref4","orderSummaryProps","earnedPoints","OrderConfirmationPayment","paymentMethodsProps","methods","paymentKey","salesOrder","bankDeposit","orderTypeCheck","ShippingAddress","orderConfirmationKCP","AttributeValues","TextValue","unitOrderPayment","bankPayment","storePayment","OrderConfirmationHelp","_ref5","helpProps","needHelpLabel","helpLineNumberLabel","contactNumber","_props$groups","_props$salesOrder","checkoutProducts","setCheckoutProducts","adobeCheck","setAdobeCheck","bopisStore","setBopisStore","setChannel","warehouse","setWarehouse","backToShoppingUrl","deliveryType","BackToShoppingWrapper","bankDepositPrimary","bankDepositSecondary","payment","attribute","paymentTypeName","TenderLines","CardTypeId","pickupStore","orderHistory","ProductId","Price","Product","productAttributes","getAttributeValuesAsync","RecordId","DimensionTypeValue","Style","Size","fulfillableSku","adobeItem","info","sku","size","price","basePrice","prevState","getSku","_props$salesOrder2","ChannelReferenceId","transaction","total","transactionTotal","GrossAmount","currency","CurrencyCode","paymentMethod","AdobeAnalyticsCheckout","stores","getStoreHoursAsync","store","_props$salesOrder3","_props$salesOrder4","ZIPCODE","ZipCode","STREET","getPickupStore","getRetailChannelAsync","warehouseId","InventoryLocationId","getWarehouseAsync","getRetailChannel","loading","orderInfomation","NotificationCity","NotificationDescription","NotificationStreet","NotificationState","NotificationZipCode","NotificationRegionId","backToShopping","orderSummary","CheckoutStateInput","_this","getCacheKey","buildCacheKey","getCacheObjectType","dataCacheType","createObservableDataAction","action","input","CheckoutState","inputData","_giftCards","_giftCardExtends","_loyaltyAmount","_guestCheckoutEmail","_customerReference","_customerRequisition","_note","_isTermsAndConditionAccepted","_customerAccountAmount","defineProperty","prototype","_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","updateGuestCheckoutEmail","newGuestCheckoutEmail","customerReference","customerRequisition","note","updateTermsAndConditionsAcceptance","newIsTermsAndConditionAccepted","observable","EnabledPaymentsForOBO","ModuleStatesCacheKey","getModuleStates","cacheKey","moduleStates","update","updateModuleStates","WrappedComponent","_super","ModuleState","call","initializeState","_b","typeName","states","__assign","_a","hasInitialized","hasError","isRequired","isCancellable","isSubmitContainer","childIds","getModuleStateManager","validate","isUpdating","isPending","isSkipped","isDisabled","isCancelAllowed","shouldSubmitContainer","hasExternalSubmitGroup","hasModuleState","setIsRequired","setIsCancellable","setIsSubmitContainer","setHasError","onPending","onDisable","getModule","moduleId","getModuleByTypeName","getModuleStateManagerByTypeName","values","_moduleState","modules","_validateLeaf","source","module","isMatch","_validateContainer","allMatched","skipSkippableItem","app","shouldEnableSinglePaymentAuthorizationCheckout","childId","_isPaymentSectionContainer","enableControl","__extends"],"sourceRoot":""}