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mBACPwE,QAASvC,EAAO,KAAOA,EAAO,IAAK,oBAAgBwC,GAAiBgD,EAAS,IAAK,CAAC,aACnFnY,SAAU0W,EAAYxX,QAAUuX,EAAWvX,OAAe,MACzD,EACD,QAAagU,EAAA,EAAM,CAAEA,KAAM,gBAC1B,EAAGwC,WAIZ,QAAoB,IAAI,IAC5B,QAAoB,MAAOC,EAAa,CACpCmB,EAAW5X,QAUR,WAAc,QAAoB,MAAO4W,EAAa,EACrD,QAAa,IAAO,CAAErC,QAAS,iCAVhC,WAAc,QAAoB,MAAOmC,EAAa,EACrD,QAAoB,SAAU,CAC5BlF,MAAO,qBACPjB,GAAIyC,EACJxZ,MAAOke,EAAY1X,MACnBtG,OAAQ+d,EAAazX,MACrB2T,MAAO,CAAC,WAAa,SACpB,KAAM,EAAGgD,UAQxB,G","sources":["webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/cw.pages.rewards.js","webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/lib/cw.dtTools.js","webpack://shipley-du-lib/./node_modules/moment/locale/ sync ^\\.\\/.*$","webpack://shipley-du-lib/./common/js/du/appEnum/AlertSeverity.ts","webpack://shipley-du-lib/./common/js/du/components/form/checkbox.vue?be2d","webpack://shipley-du-lib/./common/js/du/components/form/checkbox.vue","webpack://shipley-du-lib/./common/js/du/components/form/checkbox.vue?f028","webpack://shipley-du-lib/./common/js/du/interfaces/utility/IClickableAlertMessage.ts","webpack://shipley-du-lib/./common/js/du/components/utility/alert.vue?8475","webpack://shipley-du-lib/./common/js/du/components/utility/alert.vue?5e44","webpack://shipley-du-lib/./common/js/du/components/utility/alert.vue","webpack://shipley-du-lib/./common/js/du/components/utility/pdfViewer.vue?5d6e","webpack://shipley-du-lib/./common/js/du/components/utility/pdfViewer.vue?9576","webpack://shipley-du-lib/./common/js/du/components/utility/pdfViewer.vue"],"sourcesContent":["import moment from \"moment\";\r\nimport Mustache from \"mustache\";\r\nimport \"bootstrap/dist/js/bootstrap\";\r\nimport \"flot\";\r\nimport \"flot/jquery.flot.time\";\r\nimport \"flot/jquery.flot.stack\";\r\nimport \"flot/jquery.flot.categories\";\r\nimport \"flot/jquery.flot.pie\";\r\nimport \"jquery.flot.tooltip\";\r\nimport * as BootstrapDialog from \"bootstrap3-dialog\";\r\nimport \"../cw/lib/cw.dtTools\";\r\n\r\nimport { createNonRoutedApp } from \"@du/AppStartup\";\r\nimport pdfViewer from \"@components/utility/pdfViewer\";\r\n\r\n(function (cw, $) {\r\n \"use strict\";\r\n $.extend(true, cw, {\r\n pages: {\r\n rewards: {\r\n args: null,\r\n url: \"/account/rewards\",\r\n title: \"Rewards\",\r\n rewardPointStatus: {\r\n Active: 1,\r\n PendingApproval: 2,\r\n DeniedApproval: 3,\r\n },\r\n expiredStatusColor: cw.constants.colors[4],\r\n panes: {\r\n getRewarded: 1,\r\n myRewards: 2,\r\n pointHistory: 3,\r\n },\r\n redeemStatus: {\r\n Unknown: 0,\r\n Success: 1,\r\n SuccessButGiftcardProcessing: 2,\r\n BadInput: 500,\r\n BillingAccountSelectionRequired: 501,\r\n NotEnoughPointsToRedeemSelection: 502,\r\n SystemError: 503,\r\n VendorDoesNotHaveInventory: 504,\r\n BillingAccountIsPastDue: 505,\r\n NoActiveProductsOnAccount: 506,\r\n },\r\n myRewardsDataTable: null,\r\n myPointsHistoryDataTable: null,\r\n LOWEST_REWARD_DENOMINATION_LOW_BALANCE_5: 5,\r\n LOWEST_REWARD_DENOMINATION_LOW_BALANCE_10: 10,\r\n REWARD_DENOMINATION_15: 15,\r\n REWARD_DENOMINATION_25: 25,\r\n REWARD_DENOMINATION_50: 50,\r\n ledgerRecordType: {\r\n Reward: 1,\r\n Redeem: 2,\r\n },\r\n init: function (args) {\r\n var self = this;\r\n\r\n this.args = args || {};\r\n\r\n self.getLookups(function () {\r\n self.bindInteractions(args);\r\n cw.loadingIndicator.stop();\r\n });\r\n },\r\n getDashSummaryData: function (s1acctId, callback) {\r\n var self = cw.pages.rewards;\r\n cw.webservices.getJson(\"rewards/get-points-balance\", s1acctId, function (dData) {\r\n if (!self.args) {\r\n self.args = {};\r\n }\r\n if (dData && dData.length > 0) {\r\n self.args.dashboardSummary = dData[0];\r\n } else {\r\n self.args.dashboardSummary = {};\r\n }\r\n callback(dData);\r\n });\r\n },\r\n getLookups: function (callback) {\r\n var self = this;\r\n if (!self.args.lookups) {\r\n cw.loadingIndicator.start();\r\n cw.webservices.getJson(\r\n \"rewards/get-rewards-lookup/\" + self.args.selectedS1AccountId,\r\n null,\r\n function (lookups) {\r\n self.args.lookups = lookups;\r\n callback(self.lookups);\r\n cw.loadingIndicator.stop();\r\n }\r\n );\r\n } else {\r\n callback(self.args.lookups);\r\n }\r\n },\r\n bindInteractions: function (args) {\r\n var self = this;\r\n\r\n if (window.history) {\r\n window.history.pushState({ title: self.title, url: self.url }, self.title, self.url);\r\n }\r\n\r\n if (args.$viewport) {\r\n cw.loadingIndicator.start();\r\n\r\n var tmplArgs = $.extend(\r\n {\r\n hideExpiringTransactions:\r\n args.dashboardSummary.PendingTransactionPoints > 0 &&\r\n args.dashboardSummary.ExpiringIn30DaysPointTotal <= 0,\r\n hidePendingTransactions: args.dashboardSummary.PendingTransactionPoints <= 0,\r\n },\r\n args.dashboardSummary\r\n );\r\n\r\n cw.templating.GetRenderedTemplateHTML(\r\n \"CwRewards.html\",\r\n cw.appEnum.TemplateType.CwWidget,\r\n {\r\n breadCrumbs: cw.pages.dashboard.getBreadcrumbMarkup([\r\n { Title: cw.pages.dashboard.title, url: cw.pages.dashboard.url },\r\n { Title: self.title, url: self.url, isActive: true },\r\n ]),\r\n dashboardSummary: tmplArgs,\r\n RewardsTosUrl: self.args.brandObj.RewardsTosUrl,\r\n CanRedeemNewRewards: self.args.CanRedeemNewRewards,\r\n },\r\n function (renderedTmpl) {\r\n args.$viewport.empty();\r\n args.$viewport.append(renderedTmpl);\r\n $(\"html, body\").scrollTop(0);\r\n self.postHTMLInit(args);\r\n if (self.args.CanRedeemNewRewards) {\r\n self.loadGetRewardedPane(true);\r\n } else {\r\n self.loadMyRewardsPane();\r\n }\r\n }\r\n );\r\n } else {\r\n cw.pages.dashboard.bindApplicationEvents(args);\r\n self.postHTMLInit(args);\r\n if (self.args.CanRedeemNewRewards) {\r\n self.loadGetRewardedPane(true);\r\n } else {\r\n self.loadMyRewardsPane();\r\n }\r\n }\r\n },\r\n postHTMLInit: function (args) {\r\n var self = this;\r\n $(\"#get-rewarded\").tab(\"show\");\r\n\r\n var $rInWrap = $(\".rewards-inner-wrapper\");\r\n var w = $rInWrap.width();\r\n var winH = $rInWrap.height();\r\n var orgW = w;\r\n var orientation = cw.utility.getScreenOrientation();\r\n\r\n if (orientation >= 0) {\r\n if (orientation === 90 || orientation === 270) {\r\n orgW = winH;\r\n }\r\n\r\n $rInWrap.css({ maxWidth: w + \"px\" });\r\n\r\n window.addEventListener(\"orientationchange\", function (event) {\r\n if (self.myPointsHistoryDataTable) {\r\n $rInWrap.css({ maxWidth: \"100%\" });\r\n w = $rInWrap.width();\r\n var screenAngle = cw.utility.getScreenOrientation();\r\n\r\n if (w > orgW && (screenAngle === 0 || screenAngle === 180)) {\r\n w = orgW;\r\n } else if (w > winH && (screenAngle === 90 || screenAngle === 270)) {\r\n w = winH;\r\n }\r\n\r\n $rInWrap.css({ maxWidth: w + \"px\" });\r\n self.myPointsHistoryDataTable.columns.adjust().draw();\r\n $rInWrap.css({ maxWidth: \"100%\" });\r\n }\r\n });\r\n }\r\n\r\n $('a[data-toggle=\"tab\"]').off(\"shown.bs.tab\");\r\n $('a[data-toggle=\"tab\"]').on(\"shown.bs.tab\", function (e) {\r\n //e.target // newly activated tab\r\n //e.relatedTarget // previous active tab\r\n\r\n var selectedPaneHash = e.target.hash;\r\n switch (selectedPaneHash) {\r\n case \"#get-rewarded\":\r\n self.loadGetRewardedPane(false);\r\n break;\r\n case \"#my-rewards\":\r\n self.loadMyRewardsPane();\r\n break;\r\n case \"#point-history\":\r\n self.loadPointHistoryPane();\r\n break;\r\n }\r\n\r\n //$('.rewards-inner-wrapper').css({ maxWidth: '100%' });\r\n\r\n cw.analytics(function () {\r\n _hsq.push([\"setPath\", self.url + selectedPaneHash]);\r\n _hsq.push([\"trackPageView\"]);\r\n });\r\n\r\n var analyticsObj = {\r\n event: \"rewards-\" + selectedPaneHash.replace(\"#\", \"\") + \"-tab-view\",\r\n };\r\n\r\n cw.analytics(function () {\r\n dataLayer.push(analyticsObj);\r\n });\r\n\r\n return true;\r\n });\r\n\r\n $('.rewards-wrapper a[data-toggle=\"tab\"]').on(\"click\");\r\n $('.rewards-wrapper a[data-toggle=\"tab\"]').on(\"click\", function (e) {\r\n e.preventDefault();\r\n $(this).tab(\"show\");\r\n });\r\n\r\n self.initSummaryPane($(\".rewards-wrapper .rewards-summary-wrapper\"), args.dashboardSummary);\r\n },\r\n initSummaryPane: function ($target, rewardSummaryObj) {\r\n var self = cw.pages.rewards;\r\n //TODO: fix the styles from these\r\n //$target.find('.legend-target > div').tooltip({trigger:'hover'});\r\n\r\n var data = [\r\n {\r\n label: \"\", //\"New this billing period\",\r\n data: rewardSummaryObj.RecentlyAddedPointAmount,\r\n color: cw.constants.shipleyGreen,\r\n },\r\n {\r\n label: \"\", // \"Existing\",\r\n data: rewardSummaryObj.ExistingPoints,\r\n color: cw.constants.shipleyBlue,\r\n },\r\n ];\r\n\r\n if (rewardSummaryObj.PendingTransactionPoints) {\r\n data.push({\r\n label: \"\", // \"Pending Transaction\",\r\n data: rewardSummaryObj.PendingTransactionPoints,\r\n color: cw.constants.ctaOrange,\r\n });\r\n }\r\n\r\n if (\r\n rewardSummaryObj.PendingTransactionPoints === 0 ||\r\n (rewardSummaryObj.ExpiringIn30DaysPointTotal > 0 && rewardSummaryObj.PendingTransactionPoints > 0)\r\n ) {\r\n data.unshift({\r\n label: \"\", //\"Expiring within 30 days\",\r\n data: rewardSummaryObj.ExpiringIn30DaysPointTotal,\r\n color: cw.constants.ctaYellow,\r\n });\r\n }\r\n\r\n //make it look pretty when we have no data\r\n if (rewardSummaryObj.UnusedPointTotal === 0 && rewardSummaryObj.PendingTransactionPoints <= 0) {\r\n data = [\r\n {\r\n label: \"\",\r\n data: 1,\r\n color: cw.constants.shipleyBlue,\r\n },\r\n ];\r\n }\r\n\r\n var options = {\r\n legend: {\r\n show: false,\r\n },\r\n series: {\r\n pie: {\r\n show: true,\r\n innerRadius: 0.92,\r\n radius: 1,\r\n },\r\n },\r\n grid: {\r\n hoverable: false,\r\n },\r\n label: {\r\n show: false,\r\n formatter: function () {\r\n return \"\";\r\n },\r\n },\r\n tooltip: false,\r\n tooltipOpts: {\r\n cssClass: \"flotTip\",\r\n content: \"%p pts. %s\",\r\n defaultTheme: false,\r\n },\r\n };\r\n\r\n //$('.graph-target').height($('.graph-wrapper').height());\r\n var $inner = $target.find(\".graph-inner\");\r\n\r\n if (!$inner.height()) {\r\n $inner.height($(\".graph-wrapper\").height() * 0.66);\r\n }\r\n\r\n $.plot($inner, data, options);\r\n\r\n $target\r\n .find(\".points-amount\")\r\n .html(\r\n ' ' +\r\n rewardSummaryObj.UnusedPointTotal +\r\n 'pts'\r\n );\r\n\r\n //rebind the legend\r\n cw.templating.GetRenderedTemplateHTML(\r\n \"CwRewards.html\",\r\n cw.appEnum.TemplateType.CwWidget,\r\n {\r\n breadCrumbs: cw.pages.dashboard.getBreadcrumbMarkup([\r\n { Title: cw.pages.dashboard.title, url: cw.pages.dashboard.url },\r\n { Title: self.title, url: self.url, isActive: true },\r\n ]),\r\n dashboardSummary: rewardSummaryObj,\r\n CanRedeemNewRewards: self.args.CanRedeemNewRewards,\r\n },\r\n function (renderedTmpl) {\r\n var $newLeg = $(renderedTmpl).find(\".legend-target\");\r\n $target.find(\".legend-target\").replaceWith($newLeg);\r\n }\r\n );\r\n\r\n var $htmlWrapper = $target.find(\".rewards-html-wrapper .carousel\");\r\n if ($htmlWrapper.length > 0) {\r\n $htmlWrapper.carousel();\r\n //$htmlWrapper.carousel({interval: 2000000});\r\n }\r\n },\r\n getCurrentPointBalance: function () {\r\n var pts = $(\".rewards-summary-wrapper .points-amount-val\").html();\r\n if ($.isNumeric(pts) && parseInt(pts) > 0) {\r\n return parseInt(pts);\r\n }\r\n\r\n return 0;\r\n },\r\n hasAvailableBalance: function (denom, balance) {\r\n var self = this;\r\n return denom * self.args.lookups.RewardPointToDollarMultiplier < balance;\r\n },\r\n hasInventoryAvailable: function (denom, inv) {\r\n var self = this;\r\n return inv <= denom;\r\n },\r\n getLowestRewardDenomination: function (balance, inventory) {\r\n var self = cw.pages.rewards;\r\n var inv = inventory.range.start;\r\n var lowestDenom =\r\n inv < self.LOWEST_REWARD_DENOMINATION_LOW_BALANCE_5\r\n ? self.LOWEST_REWARD_DENOMINATION_LOW_BALANCE_5\r\n : inv;\r\n\r\n if (\r\n self.hasAvailableBalance(self.REWARD_DENOMINATION_15, balance) &&\r\n self.hasInventoryAvailable(self.REWARD_DENOMINATION_15, inv)\r\n ) {\r\n lowestDenom = self.REWARD_DENOMINATION_15;\r\n } else if (\r\n self.hasAvailableBalance(self.LOWEST_REWARD_DENOMINATION_LOW_BALANCE_10, balance) &&\r\n self.hasInventoryAvailable(self.LOWEST_REWARD_DENOMINATION_LOW_BALANCE_10, inv)\r\n ) {\r\n lowestDenom = self.LOWEST_REWARD_DENOMINATION_LOW_BALANCE_10;\r\n }\r\n return lowestDenom;\r\n },\r\n loadGetRewardedPane: function (firstLoad) {\r\n var self = cw.pages.rewards;\r\n var $loadingInd = $(\"#get-rewarded .loading-ind\");\r\n var $content = $(\"#get-rewarded .tab-content-target\");\r\n var $gcFilter = $(\"#get-rewarded .gc-vendor-filter\");\r\n\r\n var redeemBtnClickHandler = function (e) {\r\n e.preventDefault();\r\n var $this = $(this);\r\n var vendorCode = $this.data(\"vendorCode\");\r\n var RewardsTosUrl = $this.data(\"RewardsTosUrl\");\r\n var balance = self.getCurrentPointBalance();\r\n var dollarBal = balance / self.args.lookups.RewardPointToDollarMultiplier;\r\n var inv = self.args.vendorInv.inventories[vendorCode];\r\n var vendor = self.args.vendorInv.vendors.filterSingle(function (v) {\r\n return v.vendorCode === vendorCode;\r\n });\r\n var lowestDenom = self.getLowestRewardDenomination(balance, inv);\r\n\r\n var defaultDenoms = [lowestDenom, self.REWARD_DENOMINATION_25, self.REWARD_DENOMINATION_50];\r\n var isInternalReward = vendorCode.startsWith(self.args.lookups.InternalVendorCode);\r\n var internalBlurb = \"\";\r\n if (isInternalReward) {\r\n internalBlurb = \"Dollar value will be applied to your account.\";\r\n if (dollarBal > 0) {\r\n defaultDenoms = [\r\n lowestDenom,\r\n self.REWARD_DENOMINATION_25,\r\n self.REWARD_DENOMINATION_50,\r\n dollarBal,\r\n ];\r\n }\r\n\r\n defaultDenoms = defaultDenoms.sort(function (a, b) {\r\n return a - b;\r\n });\r\n }\r\n\r\n var denominations =\r\n inv.fixed && inv.fixed.length > 0\r\n ? inv.fixed\r\n .filter(function (f) {\r\n if (f.value >= lowestDenom) {\r\n return f;\r\n }\r\n })\r\n .map(function (i) {\r\n return i.value;\r\n })\r\n : defaultDenoms;\r\n\r\n var isDenominationAvailable = function (amount, invObj) {\r\n if (invObj && invObj.fixed && invObj.fixed.length > 0) {\r\n return (\r\n invObj.fixed.filter(function (f) {\r\n if (f.value === amount && (f.count === null || f.count > 0)) {\r\n return f;\r\n }\r\n }).length > 0\r\n );\r\n }\r\n\r\n if (invObj && invObj.range) {\r\n return invObj.range.start <= amount && invObj.range.end >= amount;\r\n }\r\n\r\n return false;\r\n };\r\n\r\n //filter any dup values\r\n denominations = denominations.filter(function (demon, index, me) {\r\n return me.indexOf(demon) === index;\r\n });\r\n\r\n var denomOpts = denominations.map(function (d) {\r\n //Don't add a button if inventory doesn't support it\r\n if (inv.range.start > d && inv.range.end < d) {\r\n return;\r\n }\r\n var disabled = !isDenominationAvailable(d, inv) || dollarBal < d ? \" disabled\" : \"\";\r\n var colSpan = denominations.length === 4 ? \"6\" : \"4\";\r\n return (\r\n '
Add additional services to your account to maximize your rewards.
\" +\r\n \"\t\t