{"version":3,"sources":["webpack:///./Scripts/src/v2/app/Components/BreakpointFunctions.ts","webpack:///./Scripts/src/v2/app/Components/CarouselScroll.ts","webpack:///./Scripts/src/v2/app/Helpers/CheckElementOverflow.ts","webpack:///./Scripts/src/v2/app/Helpers/CheckURLValidity.ts","webpack:///./Scripts/src/v2/app/ViewModels/Products/ItemGroup.ts","webpack:///./Scripts/src/v2/app/Components/SearchSuggest.ts","webpack:///./Scripts/src/v2/app/Globals/Extenders/TrackChange.ts","webpack:///./Scripts/src/v2/app/Components/GridViewFilterHide.ts","webpack:///./Scripts/src/v2/app/Components/Greeter.ts","webpack:///./Scripts/src/v2/css/ribbon-labels.scss?5699","webpack:///./Scripts/src/v2/app/Globals/KnockoutValidationSettings.ts","webpack:///./Scripts/src/v2/app/ViewModels/Products/Components/RefreshProductList.ts","webpack:///./Scripts/src/v2/css/ribbon-labels.scss","webpack:///./Scripts/src/v2/css/product-details.scss?8db0","webpack:///./Scripts/src/v2/css/product-details.scss"],"names":["BreakpointFunction","functions","window","matchMedia","matches","console","debug","xxlFunc","xlFunc","lgFunc","mdFunc","smFunc","xsFunc","scrolling","scrollContentV","direction","amount","$","animate","scrollTop","scrollContentH","scrollLeft","checkOverflow","target","container","axis","isOverflowing","toLowerCase","css","checkURLValidity","url","isValidURL","fetch","method","then","res","ok","err","error","EventListeners","_createClass","_classCallCheck","_defineProperty","on","this","event","preventDefault","mouseenter","mouseleave","ItemGroupVM","DataModel","HasAnySupplyListItems","videos","_this","ko","observable","IsNew","IsOnSale","ItemRowModel","observableArray","Row","PopupImage","LoadPopupImage","AddToContract","OnSale","OnContract","data","type","modal","IsRx","StockStatus","AutoFormatNumber","AlertModal","GetSelectionQty","MatchUMQty","UpdateQty","itemID","self","AccessoryRowModel","findIndex","x","ItemID","AddToCartVM","AddToContractFunction","AddToCart","LA_Alert","pureComputed","array","length","each","i","item","UoMPrices","k","UoM","QtySelected","originalValue","Description","push","localStorage","setItem","open","ProductUrl","tally","ItemsToAdd","toString","AddChoicesToCart","RefreshModel","arraysToUpdate","UoMQtySelectMatch","itemRows","j","prices","IsInCart","UMQtySelected","UMQty","DefaultUMQty","uom","Quantity","setOriginalValue","isDirty","Promise","resolve","row","ApprovalType","SelectedApprover","SelectApprover","ContractPricingLevels","AddressBook","RestrictionComment","CustName","CustPhone","CustEmail","AltItemsHtml","RestrictionItems","ShowRetrictionModal","recNo","parseInt","UrlSegments","Question","trim","Title","Content","IsPrivateQuestion","InputLoading","request","ItemGroupRecNo","FirstName","PrivateUserQuestion","payload","init","JSON","stringify","toJS","reject","AjaxPost","endpoint","cbFunction","response","message","template","find","first","msgAlert","clone","prop","text","insertBefore","show","split","errFunction","ItemListModels","ItemListModel","SelectedItem","SupplyLists","AddToList","CreateNewList","validation","KnockoutValidationSettings","ItemList","Items","AccessoryList","AccessoryItems","ProcessItemRows","WebSiteDescription","Object","assign","ImageName","ItemImagePrimary","Display","extend","trackChange","splice","subscribe","qty","idx","obj","UoMSelected","AddedToCart","Videos","ParseDate","forEach","ListenEvent","clickJumpToTop","CarouselScroll","carousel","hideCarouselScrollArrows","thumbsH","thumbsHContainer","thumbsV","thumbsVContainer","removeClass","addClass","hide","isLoading","WaitForElementToDisplay","header","cartVM","CartItems","HeaderRequestID","change","unwrap","LastRequestID","success","tooltip","scrollToVidMobile","el","attr","location","href","scrollToVidDesktop","changeVideoPoster","size","element","video","filename","slice","concat","setAttribute","videoPosterFunctions","updateVideoPoster","addEventListener","hash","substr","cardsHeight","height","resize","lastSearchTerm","getItem","not","regex","RegExp","replacement","replace","str","undefined","html","removeItem","index","vids","document","querySelectorAll","e","networkState","ajaxComplete","imgUrl","bind","vid","get","vidTime","currentTime","paused","pause","xhr","options","includes","Model","dataLayerItems","products","log","map","brand","VendName","id","category","name","SDname","price","Price","variant","position","analytics","DataLayerModelFactory","impressions","ecommerce","dataLayer","parent","parseFloat","vm","product","DataLayerTxItem","allProducts","originalItem","toFixed","diff","quantity","Math","abs","addToCart","removeFromCart","SearchSuggest","resultsLength","latestKeyword","Bloodhound","datumTokenizer","tokenizers","whitespace","queryTokenizer","remote","wildcard","prepare","query","settings","htmlString","encodeURIComponent","indexOf","transform","searchSuggestModelList","keyword","val","productURL","Heading","Slugify","typeaheadOptions","hint","highlight","minLength","typeaheadDt","displayKey","source","limit","templates","suggestion","LowestPrice","nStr","x1","x2","rgx","test","MoneyCommas","footer","typeahead","selectedItem","dataset","click","encoded","key","resolveTypeahead","info","LogFile","extenders","track","startingValue","newValue","GridViewFilterHide","next","children","Greeter","hour","Date","getHours","innerHTML","content","module","locals","exports","registerExtenders","decorateInputElement","parseInputAttributes","writeInputAttributes","errorElementClass","errorMessageClass","insertMessages","messagesOnModified","messageTemplate","grouping","live","cartItems","itemList","arrays","_ref","FindIntersect","matchedItems","apply","_toConsumableArray","koArray","arrayIndex","cartItem","UoMPackSize","QtyOrdered","Cart","uomInCart","filter","umQtySelected","valueHasMutated","updateArray"],"mappings":"iNASO,SAASA,EAAmBC,GAC3BC,OAAOC,WAAW,uBAAuBC,UACzCC,QAAQC,MAAM,wBACVL,EAAUM,SACVN,EAAUM,WAGdL,OAAOC,WAAW,0BAA0BC,SACxCF,OAAOC,WAAW,uBAAuBC,UACzCC,QAAQC,MAAM,uBACVL,EAAUO,QACVP,EAAUO,UAIlBN,OAAOC,WAAW,0BAA0BC,SACxCF,OAAOC,WAAW,sBAAsBC,UACxCC,QAAQC,MAAM,uBACVL,EAAUQ,QACVR,EAAUQ,UAIlBP,OAAOC,WAAW,yBAAyBC,SACvCF,OAAOC,WAAW,sBAAsBC,UACxCC,QAAQC,MAAM,uBACVL,EAAUS,QACVT,EAAUS,UAIlBR,OAAOC,WAAW,yBAAyBC,SACvCF,OAAOC,WAAW,sBAAsBC,UACxCC,QAAQC,MAAM,uBACVL,EAAUU,QACVV,EAAUU,UAIlBT,OAAOC,WAAW,yBAAyBC,UAC3CC,QAAQC,MAAM,uBACVL,EAAUW,QACVX,EAAUW,UCnDtB,IACIC,GAAY,EAEhB,SA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BlCD,EAAOE,QAAU,EAAQ,EAAR,EAAmE,IAEtFrR,KAAK,CAACmR,EAAO3R,EAAI,ilNAAolN","file":"chunk-27-item-group.b316b33c0af87659a8df.js","sourcesContent":["export interface IBreakpointFunctions {\r\n xxlFunc?: Function;\r\n xlFunc?: Function;\r\n lgFunc?: Function;\r\n mdFunc?: Function;\r\n smFunc?: Function;\r\n xsFunc?: Function;\r\n}\r\n\r\nexport function BreakpointFunction(functions: IBreakpointFunctions) {\r\n if (window.matchMedia('(min-width: 1400px)').matches) {\r\n console.debug(\"Media breakpoint XXL\");\r\n if (functions.xxlFunc) {\r\n functions.xxlFunc();\r\n }\r\n }\r\n if (window.matchMedia('(max-width: 1399.98px)').matches) {\r\n if (window.matchMedia('(min-width: 1200px)').matches) {\r\n console.debug(\"Media breakpoint XL\");\r\n if (functions.xlFunc) {\r\n functions.xlFunc();\r\n }\r\n }\r\n }\r\n if (window.matchMedia('(max-width: 1199.98px)').matches) {\r\n if (window.matchMedia('(min-width: 992px)').matches) {\r\n console.debug(\"Media breakpoint LG\");\r\n if (functions.lgFunc) {\r\n functions.lgFunc();\r\n }\r\n }\r\n }\r\n if (window.matchMedia('(max-width: 991.98px)').matches) {\r\n if (window.matchMedia('(min-width: 768px)').matches) {\r\n console.debug(\"Media breakpoint MD\");\r\n if (functions.mdFunc) {\r\n functions.mdFunc();\r\n }\r\n }\r\n }\r\n if (window.matchMedia('(max-width: 767.98px)').matches) {\r\n if (window.matchMedia('(min-width: 576px)').matches) {\r\n console.debug(\"Media breakpoint SM\");\r\n if (functions.smFunc) {\r\n functions.smFunc();\r\n }\r\n }\r\n }\r\n if (window.matchMedia('(max-width: 575.98px)').matches) {\r\n console.debug(\"Media breakpoint XS\");\r\n if (functions.xsFunc) {\r\n functions.xsFunc();\r\n }\r\n }\r\n}","let step = 80,\r\n scrolling = false;\r\n\r\nfunction scrollContentV(direction) {\r\n var amount = (direction === \"up\" ? \"-=1px\" : \"+=1px\");\r\n $(\"#thumbs-container-v\").animate({\r\n scrollTop: amount\r\n }, 1, function () {\r\n if (scrolling) {\r\n scrollContentV(direction);\r\n }\r\n });\r\n}\r\n\r\nfunction scrollContentH(direction) {\r\n var amount = (direction === \"left\" ? \"-=1px\" : \"+=1px\");\r\n $(\"#thumbs-container-h\").animate({\r\n scrollLeft: amount\r\n }, 1, function () {\r\n if (scrolling) {\r\n scrollContentH(direction);\r\n }\r\n });\r\n}\r\n\r\nexport function clickCarouselScroll() {\r\n $('#scroll-arrow-up').on('click', this, function (event) {\r\n event.preventDefault();\r\n $('#thumbs-container-v').animate({\r\n scrollTop: \"-=\" + step + \"px\"\r\n });\r\n }).mouseenter(function (event) {\r\n scrolling = true;\r\n scrollContentV(\"up\");\r\n }).mouseleave(function (event) {\r\n scrolling = false;\r\n });\r\n\r\n $('#scroll-arrow-down').on('click', this, function (event) {\r\n event.preventDefault();\r\n $('#thumbs-container-v').animate({\r\n scrollTop: \"+=\" + step + \"px\"\r\n });\r\n }).mouseenter(function (event) {\r\n scrolling = true;\r\n scrollContentV(\"down\");\r\n }).mouseleave(function (event) {\r\n scrolling = false;\r\n });\r\n\r\n $('#scroll-arrow-left').on('click', this, function (event) {\r\n event.preventDefault();\r\n $('#thumbs-container-h').animate({\r\n scrollLeft: \"-=\" + step + \"px\"\r\n });\r\n }).mouseenter(function (event) {\r\n scrolling = true;\r\n scrollContentH(\"left\");\r\n }).mouseleave(function (event) {\r\n scrolling = false;\r\n });\r\n\r\n $('#scroll-arrow-right').on('click', this, function (event) {\r\n event.preventDefault();\r\n $('#thumbs-container-h').animate({\r\n scrollLeft: \"+=\" + step + \"px\"\r\n });\r\n }).mouseenter(function (event) {\r\n scrolling = true;\r\n scrollContentH(\"right\");\r\n }).mouseleave(function (event) {\r\n scrolling = false;\r\n });\r\n}","export function checkOverflow(target: HTMLElement, container: HTMLElement, axis: string) {\r\n let isOverflowing = false;\r\n\r\n switch (axis.toLowerCase()) {\r\n case \"x\":\r\n isOverflowing = $(target).css('width') > $(container).css('width');\r\n break;\r\n case \"y\":\r\n isOverflowing = $(target).css('height') > $(container).css('height');\r\n break;\r\n default:\r\n isOverflowing = false;\r\n break;\r\n }\r\n\r\n return isOverflowing;\r\n}","export function checkURLValidity(url) {\r\n let isValidURL = false;\r\n fetch(url, { method: 'HEAD' })\r\n .then(res => {\r\n if (res.ok) {\r\n console.debug(\"URL is valid: \", url);\r\n isValidURL = true;\r\n } else {\r\n console.debug(\"URL is not valid: \", url);\r\n isValidURL = false;\r\n }\r\n }).catch(err => console.error('checkURLValidity Error:', err));\r\n\r\n return isValidURL;\r\n}","import \"../../../css/product-details.scss\";\r\nimport \"../../../css/ribbon-labels.scss\";\r\nimport { ICartHeaders } from \"../../../global\";\r\nimport { BreakpointFunction } from \"../../Components/BreakpointFunctions\";\r\nimport * as Carousel from '../../Components/CarouselScroll';\r\nimport { AlertModal } from \"../../Components/index\";\r\nimport \"../../Globals/Extenders/TrackChange\";\r\nimport { ListenEvent } from \"../../Globals/index\";\r\nimport { checkOverflow } from \"../../Helpers/CheckElementOverflow\";\r\nimport { checkURLValidity } from \"../../Helpers/CheckURLValidity\";\r\nimport { AutoFormatNumber, ParseDate, UrlSegments } from \"../../Helpers/index\";\r\nimport { WaitForElementToDisplay } from \"../../Helpers/WaitForElementToDisplay\";\r\nimport { DataLayerModelFactory, DataLayerTxItem } from \"../../Services/DataLayer/index\";\r\nimport { AjaxPost, IAjaxPostConfig } from \"../../Services/index\";\r\nimport AddToCartVM from \"./Components/AddToCart\";\r\nimport { RefreshModel } from \"./Components/index\";\r\nimport { ItemListModels, ItemRowModel } from \"./Models/index\";\r\nimport { KnockoutValidationSettings } from \"../../Globals/KnockoutValidationSettings\";\r\n\r\nclass EventListeners {\r\n static CarouselScroll = Carousel.clickCarouselScroll;\r\n}\r\n\r\nexport class ItemGroupVM {\r\n\r\n private isLoading = ko.observable(true);\r\n\r\n private IsNew: boolean;\r\n private IsOnSale: boolean;\r\n\r\n private CallOutRibbon = () => {\r\n if (this.IsNew) {\r\n return \"text-center new-item-alert\";\r\n }\r\n if (this.IsOnSale) {\r\n return \"text-center sale-alert\";\r\n }\r\n else {\r\n return \"text-center ribbon-alert\";\r\n }\r\n }\r\n\r\n private Row = new ItemRowModel();\r\n private ItemRowModel: KnockoutObservableArray = ko.observableArray([]);\r\n private AccessoryRowModel: KnockoutObservableArray = ko.observableArray([]);\r\n private PopupImage = this.Row.PopupImage;\r\n private LoadPopupImage = this.Row.LoadPopupImage;\r\n private AddToContract = this.Row.AddToContract;\r\n private OnSale = this.Row.OnSale;\r\n private OnContract = this.Row.OnContract;\r\n private CarouselClick = (data, type) => {\r\n if (type !== \"V\") {\r\n console.debug(\"Not a video\");\r\n this.PopupImage(data);\r\n this.LoadPopupImage(data);\r\n $(\"#imageModal\").modal('show');\r\n }\r\n if (type === \"V\") {\r\n console.debug(\"Image link to video\");\r\n }\r\n }\r\n private IsRx = this.Row.IsRx;\r\n private StockStatus = this.Row.StockStatus;\r\n private FormatNumber = AutoFormatNumber;\r\n\r\n private ContractItems: any[];\r\n private AlertModal = new AlertModal();\r\n\r\n private GetSelectionQty = this.Row.GetSelectionQty;\r\n private MatchUMQty = this.Row.MatchUMQty;\r\n private UpdateQty = this.Row.UpdateQty;\r\n private ArrayToUpdate = (itemID: string) => {\r\n let self = this;\r\n let accessoryIndex = self.AccessoryRowModel().findIndex((x => x.ItemID === itemID));\r\n let isAccessory = accessoryIndex !== -1 ? true : false;\r\n let arrayToUpdate = isAccessory === true ? self.AccessoryRowModel : self.ItemRowModel;\r\n\r\n return arrayToUpdate;\r\n }\r\n\r\n private AddToContractFunction = AddToCartVM.AddToContractFunction;\r\n private AddToCart = AddToCartVM.AddToCart;\r\n private LA_Alert = AddToCartVM.LA_Alert;\r\n private ItemsToAdd = ko.pureComputed(() => {\r\n let self = this;\r\n let array = [];\r\n if (self.ItemRowModel().length > 0)\r\n $.each(self.ItemRowModel(), function (i, item) {\r\n $.each(item.UoMPrices(), function (k, UoM) {\r\n // console.log(\"ITEMROWMODEL IN GROUP: \" + UoM.QtySelected.originalValue !== UoM.QtySelected());\r\n if (UoM.QtySelected.originalValue !== UoM.QtySelected()) {\r\n UoM.Description = item.Description || item.ItemID;\r\n UoM.AddToContract = item.AddToContract;\r\n UoM.OnSale = item.OnSale;\r\n UoM.OnContract = item.OnContract;\r\n array.push(UoM)\r\n }\r\n })\r\n })\r\n if (self.AccessoryRowModel().length > 0)\r\n $.each(self.AccessoryRowModel(), function (i, item) {\r\n $.each(item.UoMPrices(), function (k, UoM) {\r\n if (UoM.QtySelected.originalValue !== UoM.QtySelected()) {\r\n UoM.Description = item.Description;\r\n UoM.AddToContract = item.AddToContract;\r\n UoM.OnSale = item.OnSale;\r\n UoM.OnContract = item.OnContract;\r\n array.push(UoM)\r\n }\r\n })\r\n })\r\n return array;\r\n }, this);\r\n\r\n\r\n public HiglightSelectedAltItem = (data) => { \r\n localStorage.setItem('LastSearchTerm', data.ItemID)\r\n window.open(data.ProductUrl);\r\n }\r\n\r\n\r\n private ItemsCount = ko.pureComputed(() => { \r\n let self = this\r\n let tally = 0;\r\n if (self.ItemsToAdd())\r\n tally = self.ItemsToAdd().length;\r\n return (tally > 1 ? tally.toString() + \" Items Chosen\" : tally == 0 ? \"No Item Chosen\" : \"1 Item Chosen\"); \r\n }, this);\r\n\r\n private AddChoicesToCart = AddToCartVM.AddChoicesToCart;\r\n private RefreshModel = RefreshModel;\r\n private CheckWhichUoM = (arraysToUpdate) => {\r\n\r\n let self = this;\r\n\r\n function cleanItemRows(itemRows) {\r\n $.each(itemRows.UoMPrices(), function (j, uom) {\r\n if (uom.QtySelected()) {\r\n if (itemRows.UMQtySelected() === uom.UMQty) {\r\n itemRows.Quantity(uom.QtySelected());\r\n\r\n itemRows.Quantity.setOriginalValue(uom.QtySelected());\r\n uom.QtySelected.setOriginalValue(uom.QtySelected());\r\n\r\n }\r\n }\r\n uom.QtySelected.isDirty(false);\r\n });\r\n }\r\n\r\n // Match what is in cart with what is on item list\r\n function UoMQtySelectMatch(item) {\r\n $.each(item.UoMPrices(), function (j, prices) {\r\n if (prices.QtySelected()) {\r\n\r\n prices.IsInCart(true);\r\n item.UMQtySelected(prices.UMQty);\r\n self.GetSelectionQty(prices, item);\r\n }\r\n else {\r\n item.UMQtySelected(item.DefaultUMQty);\r\n }\r\n });\r\n cleanItemRows(item);\r\n };\r\n\r\n return new Promise(function (resolve) {\r\n // Check UoM Selected in row data and match with the UI Selected UoM Price\r\n $.each(self.ItemRowModel(), function (i, row) {\r\n UoMQtySelectMatch(row);\r\n })\r\n if (self.AccessoryRowModel().length > 0) {\r\n $.each(self.AccessoryRowModel(), function (i, item) {\r\n UoMQtySelectMatch(item);\r\n })\r\n }\r\n return resolve(true);\r\n });\r\n }\r\n\r\n private ApprovalType = new AddToCartVM().ApprovalType;\r\n private SelectedApprover = new AddToCartVM().SelectedApprover;\r\n private SelectApprover = new AddToCartVM().SelectApprover;\r\n private ContractPricingLevels = new AddToCartVM().ContractPricingLevels\r\n private AddressBook = new AddToCartVM().AddressBook;\r\n private Comment = new AddToCartVM().RestrictionComment;\r\n private CustName = new AddToCartVM().CustName;\r\n private CustPhone = new AddToCartVM().CustPhone;\r\n private CustEmail = new AddToCartVM().CustEmail;\r\n private AltItemsHtml = AddToCartVM.AltItemsHtml;\r\n private RestrictionItems = new AddToCartVM().RestrictionItems;\r\n private ShowRetrictionModal = new AddToCartVM().ShowRetrictionModal;\r\n private Videos: KnockoutObservableArray = ko.observableArray([]);\r\n private Question: KnockoutObservable = ko.observable(null);\r\n private FirstName: KnockoutObservable = ko.observable(null);\r\n private IsPrivateQuestion: KnockoutObservable = ko.observable(null);\r\n private InputLoading: KnockoutObservable = ko.observable(false);\r\n private AskQuestion = () => {\r\n let self = this;\r\n let recNo = parseInt(UrlSegments(2).toString());\r\n if (!self.Question() || self.Question().toString().trim() === \"\") {\r\n self.AlertModal.Title(\"No question asked\")\r\n self.AlertModal.Content(\"Question cannot be empty!\");\r\n $('#alertModal').modal('show');\r\n return;\r\n }\r\n\r\n if (self.IsPrivateQuestion() === \"null\" || self.IsPrivateQuestion().toString().trim() === \"\") {\r\n self.AlertModal.Title(\"Select question privacy\")\r\n self.AlertModal.Content(\"We post user questions and answers to help other customers like you!
\"\r\n + \" Choose Yes to ask anonymously.
\"\r\n + \" Choose No to publicly display your name with your question.\");\r\n $('#alertModal').modal('show');\r\n return;\r\n }\r\n\r\n self.InputLoading(true);\r\n\r\n let request = {\r\n ItemGroupRecNo: recNo,\r\n Question: self.Question,\r\n FirstName: self.FirstName,\r\n PrivateUserQuestion: self.IsPrivateQuestion,\r\n }\r\n\r\n function AskQuestion(payload) {\r\n let ajaxPost: IAjaxPostConfig = {\r\n endpoint: '/products/ask-question/' + payload.ItemGroupRecNo,\r\n payload: JSON.stringify(ko.toJS(payload)),\r\n cbFunction: function (response) {\r\n if (response.message === \"Success: Question sent. \") {\r\n const container = $(\".floating-alert-container\");\r\n const template = container.find('.alert').first();\r\n let msgAlert = template.first().clone();\r\n msgAlert.prop('id', 'ask-question-alert');\r\n msgAlert.find('span').first().text('Your question has been sent!');\r\n msgAlert.insertBefore(template).show();\r\n }\r\n if (response.message.split(':')[0] === \"Error\") {\r\n }\r\n }\r\n }\r\n\r\n return new Promise((resolve, reject) => {\r\n\r\n return new AjaxPost({\r\n endpoint: '/products/ask-question/' + payload.ItemGroupRecNo,\r\n payload: JSON.stringify(ko.toJS(payload)),\r\n cbFunction: function (response) {\r\n if (response.message === \"Success: Question sent. \") {\r\n const container = $(\".floating-alert-container\");\r\n const template = container.find('.alert').first();\r\n let msgAlert = template.first().clone();\r\n msgAlert.prop('id', 'ask-question-alert');\r\n msgAlert.find('span').first().text('Your question has been sent!');\r\n msgAlert.insertBefore(template).show();\r\n }\r\n if (response.message.split(':')[0] === \"Error\") {\r\n }\r\n resolve(response);\r\n },\r\n errFunction: function (err) {\r\n reject(err);\r\n }\r\n });\r\n })\r\n }\r\n\r\n let init = true;\r\n if (init) {\r\n AskQuestion(request)\r\n .then(() => {\r\n self.Question(null);\r\n self.FirstName(null);\r\n self.IsPrivateQuestion(\"null\");\r\n $(\"#privateQuestion option:selected\").prop(\"selected\", false);\r\n $(\"#privateQuestion option:first\").prop(\"selected\", \"selected\");\r\n self.InputLoading(false);\r\n init = false;\r\n });\r\n }\r\n }\r\n\r\n private ItemListModel = new ItemListModels();\r\n private SelectedItem = this.ItemListModel.SelectedItem;\r\n private SupplyLists = this.ItemListModel.SupplyLists;\r\n private HasAnySupplyListItems;\r\n private AddToList = this.ItemListModel.AddToList;\r\n private CreateNewList = this.ItemListModel.CreateNewList;\r\n\r\n private LastRequestID: KnockoutObservable = ko.observable(0);\r\n\r\n constructor(DataModel: any, HasAnySupplyListItems: Boolean, videos: any) {\r\n ko.validation.init(KnockoutValidationSettings, true);\r\n let self = this,\r\n ItemList: Array = DataModel.Items,\r\n AccessoryList: Array = DataModel.AccessoryItems,\r\n ProcessItemRows = function (row: any) {\r\n if (row.WebSiteDescription)\r\n delete Object.assign(row, { ['Description']: row['WebSiteDescription'] })['WebSiteDescription'];\r\n row.ImageName != '' ? row.ItemImagePrimary = row.ImageName : row.ItemImagePrimary = null;\r\n row.ItemGroupRecNo = parseInt(UrlSegments()[2]);\r\n row.OnContract = ko.observable(row.OnContract);\r\n row.UoMPrices = ko.observableArray(row.UoMPrices);\r\n $.each(row.UoMPrices(), function (k, uom) {\r\n uom.Display = ko.observable(row.UoMPrices()[k].Display);\r\n uom.QtySelected = ko.observable(0).extend({ trackChange: true });\r\n uom.IsInCart = ko.observable(false);\r\n row.UoMPrices.splice(k, 1, uom);\r\n });\r\n row.Quantity = ko.observable(0).extend({ trackChange: true });\r\n row.Quantity.subscribe((qty) => {\r\n $.each(row.UoMPrices(), (idx, obj) => {\r\n if (obj.UMQty === row.UMQtySelected()) {\r\n if (row.Quantity.isDirty()) {\r\n obj.QtySelected(parseInt(qty));\r\n }\r\n if (row.Quantity() === 0 && obj.QtySelected.isDirty()) {\r\n obj.QtySelected(parseInt(qty));\r\n }\r\n }\r\n })\r\n });\r\n row.UoMSelected = ko.observable(row.UoMPrices()[0].UoM)\r\n row.UMQtySelected = ko.observable(row.UoMPrices()[0].UMQty);\r\n row.AddedToCart = ko.observable(false);\r\n // Inject fake data\r\n //if (!row.QtyAvail) row.QtyAvail = 100;\r\n //if (!row.QtyEAtoAlloc) row.QtyEAtoAlloc = 2000;\r\n };\r\n\r\n self.IsNew = DataModel.IsNew;\r\n //self..AddChoicesToCart.IsOnSale = DataModel.OnSale;\r\n self.AddToContract = DataModel.AddToContract;\r\n\r\n\r\n\r\n self.Videos(videos);\r\n\r\n ParseDate(ItemList, ItemList, [\"ALERTOrgDate\", \"ALERTUpdateDate\", \"INFOEstShipDate\"]);\r\n ParseDate(AccessoryList, AccessoryList, [\"ALERTOrgDate\", \"ALERTUpdateDate\", \"INFOEstShipDate\"]);\r\n\r\n\r\n if (ItemList !== null && ItemList.length > 0) {\r\n ItemList.forEach((row) => {\r\n ProcessItemRows(row);\r\n self.ItemRowModel().push(row);\r\n });\r\n }\r\n\r\n if (AccessoryList !== null && AccessoryList.length > 0) {\r\n AccessoryList.forEach((row) => {\r\n ProcessItemRows(row);\r\n self.AccessoryRowModel().push(row);\r\n });\r\n }\r\n\r\n self.HasAnySupplyListItems = HasAnySupplyListItems;\r\n\r\n // Event listeners\r\n new AddToCartVM.EventListeners(self);\r\n new ListenEvent.clickJumpToTop();\r\n\r\n // Carousel controls and event listeners\r\n new EventListeners.CarouselScroll();\r\n\r\n $(window).on('load', function () {\r\n $('.carousel').carousel('pause');\r\n });\r\n\r\n // Check if the carousel thumbnails scroll is required (thumbs overflow), hide if it isn't\r\n let hideCarouselScrollArrows = () => {\r\n let thumbsH = $('#thumbs-container-h').find('ul').first()[0],\r\n thumbsHContainer = $('#thumbs-container-h')[0];\r\n let thumbsV = $('#thumbs-container-v').find('ul').first()[0],\r\n thumbsVContainer = $('#thumbs-container-v')[0];\r\n\r\n if (thumbsH) {\r\n console.debug(\"Thumbs-H overflow: \", checkOverflow(thumbsH, thumbsHContainer, \"x\"));\r\n if (checkOverflow(thumbsH, thumbsHContainer, \"x\")) {\r\n $('#scroll-arrow-left').removeClass('d-none').addClass('d-flex');\r\n $('#scroll-arrow-right').removeClass('d-none').addClass('d-flex');\r\n $('#thumbs-container-h').find('ul').first().removeClass('px-2')\r\n }\r\n }\r\n\r\n if (thumbsV) {\r\n console.debug(\"Thumbs-V overflow: \", checkOverflow(thumbsV, thumbsVContainer, \"y\"));\r\n if (checkOverflow(thumbsV, thumbsVContainer, \"y\")) {\r\n $('#scroll-arrow-up').removeClass('d-none').addClass('d-flex');\r\n $('#scroll-arrow-down').removeClass('d-none').addClass('d-flex');\r\n }\r\n }\r\n }\r\n\r\n\r\n $(() => {\r\n $('.preloader').hide();\r\n self.isLoading(false);\r\n\r\n WaitForElementToDisplay(\"#item-group\", 1500, hideCarouselScrollArrows);\r\n\r\n let header: ICartHeaders = window.cartVM.header;\r\n\r\n // Subscribe to header updates\r\n let arraysToUpdate = [self.ItemRowModel, self.AccessoryRowModel];\r\n self.RefreshModel(header.CartItems(), arraysToUpdate)\r\n\r\n header.HeaderRequestID.subscribe((change) => {\r\n console.debug(\"Current header request id\", ko.unwrap(self.LastRequestID()));\r\n console.debug(\"Header request id changed to\", change);\r\n let diff = (change - self.LastRequestID()) !== 0;\r\n\r\n if (diff) {\r\n self.RefreshModel(header.CartItems(), arraysToUpdate).then((success) => {\r\n console.debug(\"Model refreshed with request id\", header.HeaderRequestID());\r\n self.LastRequestID(header.HeaderRequestID());\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n })\r\n }\r\n })\r\n\r\n if (DataModel.Videos.length > 0) {\r\n\r\n const scrollToVidMobile = () => {\r\n console.debug(\"Show videos for mobile\");\r\n $('.list-group-item').each((i, el) => { $(el).removeClass('active show').attr('aria-selected', 'false') });\r\n $('.tab-pane').each((i, el) => { $(el).removeClass('active show') });\r\n $('a[href=\"#videos-tab\"]').addClass('active show').attr('aria-selected', 'true');\r\n $('#videos-tab').addClass('active show');\r\n\r\n window.location.href = \"#videos-mobile\";\r\n },\r\n\r\n scrollToVidDesktop = () => {\r\n console.debug(\"Show videos for desktop\");\r\n window.location.href = \"#videos\";\r\n },\r\n\r\n scrollToVideos = () => {\r\n if (window.location.hash.substr(1) === \"videos\") {\r\n console.debug(\"Video hash matched\");\r\n BreakpointFunction({\r\n xxlFunc: scrollToVidDesktop,\r\n xlFunc: scrollToVidDesktop,\r\n lgFunc: scrollToVidDesktop,\r\n mdFunc: scrollToVidMobile,\r\n smFunc: scrollToVidMobile,\r\n xsFunc: scrollToVidMobile\r\n });\r\n }\r\n };\r\n\r\n const changeVideoPoster = (size: string) => {\r\n let videoElementsContainer = $('.video-loop-item');\r\n videoElementsContainer.each((i, element) => {\r\n let video = ($(element).find('video').first())[0];\r\n let src = ($(video).find('source').first().attr('src')).split('SD/')[1];\r\n let filename = src.slice(0, -4)\r\n console.debug(`Video element at index ${i} :`, { video, filename });\r\n video.setAttribute(\"poster\", \"/Content/ProductImages/\" + size + \"/\" + filename + \".jpg\");\r\n })\r\n }\r\n\r\n const videoPosterFunctions = {\r\n xxlFunc: () => { changeVideoPoster(\"720x540\") },\r\n xlFunc: () => { changeVideoPoster(\"460x345\") },\r\n lgFunc: () => { changeVideoPoster(\"384x288\") },\r\n mdFunc: () => { changeVideoPoster(\"460x345\") },\r\n smFunc: () => { changeVideoPoster(\"340x255\") },\r\n xsFunc: () => { changeVideoPoster(\"460x345\") }\r\n },\r\n\r\n updateVideoPoster = () => { BreakpointFunction(videoPosterFunctions) };\r\n\r\n WaitForElementToDisplay(\"#item-group\", 500, () => {\r\n updateVideoPoster();\r\n window.addEventListener('resize', updateVideoPoster);\r\n scrollToVideos();\r\n });\r\n }\r\n })\r\n\r\n WaitForElementToDisplay(\"#productCarousel .image-container img\", 300, () => {\r\n let cardsHeight = $(\"#productCarousel\").height();\r\n $(\"#productCarousel\").css(\"min-height\", cardsHeight + \"px\");\r\n\r\n $(window).resize(function () {\r\n cardsHeight = $(\"#productCarousel\").height();\r\n $(\"#productCarousel\").css(\"min-height\", cardsHeight + \"px\");\r\n })\r\n });\r\n\r\n // Last Search Term\r\n $(() => {\r\n let lastSearchTerm = localStorage.getItem('LastSearchTerm');\r\n\r\n if (lastSearchTerm) {\r\n $('.grid-row').find('span, small').not('.input-group-prepend, .input-group-append, .custom-field').each(function (i, element) {\r\n if (!element)\r\n return;\r\n\r\n let regex = new RegExp('\\\\S*((' + lastSearchTerm + '))\\\\S*', 'ig');\r\n var content = $(element).text(),\r\n replacement = content.replace(regex, function (str) {\r\n return '' + str + '';\r\n });\r\n\r\n // if ($(element) != undefined) $(element).parent().parent().parent().parent() \r\n //console.log(\"element Item Group DIv========\", $(\"#\" + lastSearchTerm) )\r\n if ($(\"#\" + lastSearchTerm) != undefined && $(\"#\" + lastSearchTerm).length >0)\r\n {\r\n //$(\"#\" + lastSearchTerm).removeClass(\"grid-row\")\r\n $(\"#\" + lastSearchTerm).addClass(\"search_found_match\")\r\n $(\"#\" + lastSearchTerm).addClass(\"border-top\")\r\n $(\"#\" + lastSearchTerm).addClass(\"border-left\")\r\n $(\"#\" + lastSearchTerm).addClass(\"border-right\")\r\n }\r\n\r\n $(element).html(replacement);\r\n });\r\n localStorage.removeItem('LastSearchTerm');\r\n }\r\n });\r\n\r\n // Popper tooltips\r\n $(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n })\r\n\r\n // Select first UoM by default on DOM ready. \r\n $(() => {\r\n self.ItemRowModel().forEach(function (item, index) {\r\n if (item.UoMPrices())\r\n item.UMQtySelected(item.UoMPrices()[0].UMQty)\r\n })\r\n\r\n if (self.AccessoryRowModel().length > 0) {\r\n self.AccessoryRowModel().forEach(function (item, index) {\r\n if (item.UoMPrices())\r\n item.UMQtySelected(item.UoMPrices()[0].UMQty)\r\n })\r\n }\r\n });\r\n\r\n // Set placeholder image if video source not found on DOM ready.\r\n $(() => {\r\n let vids = document.querySelectorAll(\"video\");\r\n\r\n // for all the videos in the page\r\n for (var x = 0; x < vids.length; x++) {\r\n\r\n // add an event listening for errors\r\n vids[x].addEventListener('error', function (e) {\r\n\r\n // if the error is caused by the video not loading\r\n if (this.networkState > 2) {\r\n\r\n // add an image with the message \"video not found\"\r\n this.setAttribute(\"poster\", \"http://dummyimage.com/459x344/000/fff.jpg&text=Video+Not+Found\");\r\n }\r\n }, true);\r\n }\r\n })\r\n\r\n // Set placeholder image if video thumbnails not found after all ajax calls are complete.\r\n let vidThumbs = (() => {\r\n $('.video-thumbs').each((i, el) => {\r\n let imgUrl = $(el).attr('src');\r\n if (!checkURLValidity(imgUrl)) {\r\n $(el).attr('src', '/Content/img/sprites/video-icon.svg');\r\n }\r\n if (!checkURLValidity(imgUrl)) {\r\n $(el).attr('src', imgUrl);\r\n }\r\n });\r\n });\r\n\r\n $(document).ajaxComplete(() => { vidThumbs(); })\r\n\r\n // Reset carousel videos on slide change\r\n let resetVid = (() => {\r\n $('#slideshow').find('video').each((i, el: HTMLVideoElement) => {\r\n let vid: HTMLVideoElement = $(el).get(0);\r\n let vidTime = vid.currentTime;\r\n if (!vid.paused) {\r\n vid.pause();\r\n vidTime = 0;\r\n\r\n console.debug(\"Video playback stopped: \", [vid, vidTime]);\r\n }\r\n })\r\n });\r\n\r\n $('#slideshow').bind('slide.bs.carousel', (() => { resetVid() }));\r\n\r\n $(document).ajaxComplete((event, xhr, options) => {\r\n console.debug(\"options.url: \", options.url);\r\n if (options.url.includes(\"GetProductsForPurchaseSelection_byItemGroupRecNo\")) {\r\n }\r\n })\r\n\r\n // Analytics data layer implementation\r\n $(() => {\r\n\r\n let Model: any = DataModel;\r\n let Items: any[] = Model.Items;\r\n let AccessoryItems: any[] = Model.AccessoryItems;\r\n let dataLayerItems: any[] = Items.concat(AccessoryItems);\r\n\r\n let products = [];\r\n console.log()\r\n if (dataLayerItems.length) {\r\n\r\n if (dataLayerItems != null && dataLayerItems != []) {\r\n products = dataLayerItems.map((obj, index) => {\r\n if (obj != null) {\r\n return {\r\n brand: obj.VendName,\r\n id: obj.ItemID,\r\n category: obj.Description,\r\n name: obj.SDname,\r\n // take the first UoM \r\n price: obj.UoMPrices()[0].Price,\r\n variant: obj.UoMPrices()[0].UoM,\r\n position: index\r\n }\r\n }\r\n });\r\n }\r\n }\r\n\r\n let analytics = new DataLayerModelFactory().impressions(products, \"productView\", \"Item Group Product View\");\r\n\r\n if (analytics.ecommerce.impressions.length) {\r\n window.dataLayer.push(analytics);\r\n }\r\n\r\n $('.fa-cart-plus').not('.multiupdate').parent().on('click', function () {\r\n let itemID = $(this).attr('data-id');\r\n let UoM = $('#' + itemID).find('label.item-price.active').attr('data-uom');\r\n let price = parseFloat($('#' + itemID).find('label.item-price.active').attr('data-price'));\r\n\r\n let vm = window.vm;\r\n\r\n let product: DataLayerTxItem = new DataLayerTxItem();\r\n\r\n Object.assign(product, products.find(function (item) {\r\n return item.id === itemID;\r\n }));\r\n\r\n let allProducts = vm.ItemRowModel().concat(vm.AccessoryRowModel());\r\n\r\n let originalItem = Object.assign({}, allProducts.find(function (item) {\r\n return item.ItemID === itemID;\r\n }));\r\n\r\n product.variant = UoM;\r\n product.price = price.toFixed(2);\r\n\r\n let diff = 0;\r\n if (originalItem.Quantity != undefined) {\r\n diff = originalItem.Quantity() - originalItem.Quantity.originalValue;\r\n }\r\n\r\n delete product.position;\r\n\r\n if (diff > 0) {\r\n product.quantity = Math.abs(diff);\r\n console.debug(\"Item added: \", product);\r\n window.dataLayer.push(new DataLayerModelFactory().addToCart(product));\r\n }\r\n if (diff < 0) {\r\n product.quantity = ~diff + 1;\r\n console.debug(\"Item removed: \", product);\r\n window.dataLayer.push(new DataLayerModelFactory().removeFromCart(product));\r\n }\r\n });\r\n })\r\n\r\n $(\".siteloader\").hide();\r\n $(\"#itemContainer\").removeClass(\"d-none\");\r\n $(\"#itemContainerMobile\").removeClass(\"d-none\");\r\n if (ItemList.length > 0) {\r\n $(\"#items-tab\").removeClass(\"d-none\");\r\n $(\"#items-tab\").addClass(\"active\");\r\n }\r\n if (AccessoryList.length > 0) {\r\n $(\"#accessories-tab\").removeClass(\"d-none\");\r\n $(\"#accessories-tab\").addClass(\"active\");\r\n }\r\n }\r\n}","import { Slugify } from \"../Helpers/index\";\r\nclass SearchSuggest {\r\n\r\n constructor() {\r\n let resultsLength = 0;\r\n let latestKeyword = \"\";\r\n\r\n let products = new Bloodhound({\r\n //hint: false,\r\n datumTokenizer: Bloodhound.tokenizers.obj.whitespace('Heading'),\r\n queryTokenizer: Bloodhound.tokenizers.whitespace,\r\n remote: {\r\n url: '/Search/SearchSuggest/%QUERY',\r\n wildcard: '%QUERY',\r\n prepare: function (query, settings) { //check if it has any html encoded string\r\n let htmlString = encodeURIComponent(query);\r\n if (htmlString.indexOf(\"%\") > -1) {\r\n settings.url = '/Search/SearchSuggest?keyword=' + htmlString;\r\n return settings;\r\n } else {\r\n settings.url = '/Search/SearchSuggest/' + query;\r\n return settings;\r\n }\r\n },\r\n transform: function (data) {\r\n $(\"#null-results\").show(); \r\n\r\n if (!data.searchSuggestModelList)\r\n {\r\n if (data)\r\n return;\r\n }\r\n\r\n let keyword = $('#product-query').val();\r\n\r\n let array = $.map(data.searchSuggestModelList, function (item, i) {\r\n\r\n if (item.ItemGroupRecNo > 0) {\r\n item.productURL = typeof item.Heading != 'undefined' ?\r\n item.Heading !== null ?\r\n \"/products/details/\" + item.ItemGroupRecNo + \"/\" + Slugify(item.Heading) + \"/\" :\r\n \"/products/details/\" + item.ItemGroupRecNo + \"/\" : null;\r\n item.keyword = keyword;\r\n }\r\n\r\n if (item.ItemGroupRecNo === -1) {\r\n item.keyword = keyword;\r\n item.productURL = \"/ItemList/ContractPricingList?ItemID=\" + item.ItemID;\r\n }\r\n return item;\r\n });\r\n\r\n resultsLength = array.length;\r\n latestKeyword = keyword.toString();\r\n return array;\r\n }\r\n }\r\n });\r\n\r\n let typeaheadOptions = {\r\n hint: true,\r\n highlight: true,\r\n minLength: 3\r\n },\r\n typeaheadDt = {\r\n name: 'Products',\r\n displayKey: 'keyword',\r\n source: products,\r\n limit: 5, // Must be at least 8 or else some keywords don't show up\r\n templates: {\r\n //notFound: function () {\r\n // return '
No product records match that query
';\r\n //},\r\n suggestion: function (data) {\r\n function MoneyCommas(nStr) {\r\n nStr = nStr.toFixed(2);\r\n nStr += '';\r\n let x = nStr.split('.');\r\n let x1 = x[0];\r\n let x2 = x.length > 1 ? '.' + x[1] : '';\r\n let rgx = /(\\d+)(\\d{3})/;\r\n while (rgx.test(x1)) {\r\n x1 = x1.replace(rgx, '$1' + ',' + '$2');\r\n }\r\n return x1 + x2;\r\n }\r\n console.log(\"data=================\", data)\r\n if (!data)\r\n return;\r\n\r\n let displayImage = data.ImageName !== null ?\r\n '
'\r\n + '
' : '
';\r\n\r\n return '
'\r\n + displayImage\r\n + '
' + data.Heading + '
'\r\n + ' from $' + (data.LowestPrice !== null ? MoneyCommas(data.LowestPrice) : \"\") + ''\r\n + '
'\r\n + '
';\r\n },\r\n footer: function () {\r\n let hasSlash = latestKeyword.indexOf(\"/\") > -1\r\n let endpoint = hasSlash ? \"/Search?keyword=\" : \"/Search/\";\r\n\r\n if (resultsLength <= 5)\r\n return '';\r\n else {\r\n return '';\r\n }\r\n }\r\n }\r\n };\r\n\r\n $(() => {\r\n \r\n $('#product-search #product-query').typeahead(typeaheadOptions, typeaheadDt);\r\n\r\n $('#product-query').on('typeahead:selected', function (event, selectedItem, dataset) {\r\n event.preventDefault();\r\n //Store search term before redirect, retrieve later to highlight\r\n localStorage.setItem('LastSearchTerm', $(this).val().toString());\r\n window.location.href = selectedItem.productURL;\r\n });\r\n $('#search-icon-button').click(function () {\r\n let keyword = $('#product-query').val().toString().trim();\r\n if (keyword !== \"\") {\r\n localStorage.setItem('LastSearchTerm', keyword);\r\n return window.location.href = \"/Search?keyword=\" + encodeURIComponent(keyword);\r\n }\r\n else {\r\n return;\r\n }\r\n })\r\n $('#product-query').on('keyup', this, function (event) {\r\n\r\n let keyword = $(this).val().toString();\r\n let encoded = encodeURIComponent(keyword.trim());\r\n\r\n let hasSlash = encoded.indexOf(\"%\") > -1;\r\n let endpoint = hasSlash ? \"/Search?keyword=\" : \"/Search/\";\r\n\r\n if (event.key === \"Enter\") {\r\n //Store search term before redirect, retrieve later to highlight\r\n localStorage.setItem('LastSearchTerm', keyword);\r\n $(this).typeahead('close');\r\n window.location.href = endpoint + encoded;\r\n };\r\n });\r\n });\r\n }\r\n}\r\n\r\nnew Promise((resolveTypeahead) => {\r\n new SearchSuggest();\r\n resolveTypeahead();\r\n\r\n}).then((resolveTypeahead) => {\r\n if (resolveTypeahead !== null) {\r\n console.info(\"Search suggest typeahead loaded\");\r\n }\r\n}).catch((error) => {\r\n console.error(error);\r\n console.log(\"Error in typeahead promise chain, logfile dump: \", window.LogFile);\r\n});","declare global {\r\n interface KnockoutExtenders {\r\n trackChange: (target: any, value: any) => KnockoutObservable;\r\n }\r\n}\r\n\r\nexport function TrackChange(target, track) {\r\n if (track) {\r\n target.isDirty = ko.observable(false);\r\n target.originalValue = target();\r\n target.setOriginalValue = function (startingValue) {\r\n target.originalValue = startingValue;\r\n };\r\n target.subscribe(function (newValue) {\r\n // use != not !== so numbers will equate naturally\r\n target.isDirty(newValue != target.originalValue);\r\n });\r\n }\r\n return target;\r\n};\r\n\r\nlet trackChange = ko.extenders.trackChange = TrackChange;\r\n\r\nexport default trackChange;","export function GridViewFilterHide() {\r\n $('.grid-filter').each((i, el) => {\r\n $(el).next().children().hide();\r\n $(el).hide();\r\n })\r\n}","export function Greeter() {\r\n\r\n let date = new Date(),\r\n hour = date.getHours(),\r\n\r\n greeting = function () {\r\n return hour < 12 ? \"Good morning,\"\r\n : hour >= 12 && hour <= 18 ? \"Good afternoon,\"\r\n : \"Good evening,\"\r\n };\r\n\r\n $.each(document.querySelectorAll('.greeting'), function (i, element) {\r\n element.innerHTML = greeting();\r\n });\r\n}","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!./ribbon-labels.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!./ribbon-labels.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!./ribbon-labels.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","export const KnockoutValidationSettings = {\r\n registerExtenders: true,\r\n decorateInputElement: true,\r\n parseInputAttributes: true,\r\n writeInputAttributes: true,\r\n // Override the default to use Bootstrap 4 error classes\r\n errorElementClass: 'is-invalid',\r\n errorMessageClass: 'invalid-tooltip',\r\n\r\n insertMessages: true,\r\n messagesOnModified: false,\r\n messageTemplate: null,\r\n grouping: { live: true }\r\n}","import { ICartRowItem } from \"../../../Cart/types/ICartRowItem\";\r\nimport { FindIntersect } from \"../../../Helpers/FindIntersect\";\r\n\r\nexport function RefreshModel (cartItems: Array, arraysToUpdate: KnockoutObservableArray[]) {\r\n console.debug(\"Cart items count\", cartItems.length);\r\n\r\n let updateArray = (itemList, arrays: KnockoutObservableArray[]) => {\r\n var matches = arrays.map((array) => {\r\n return FindIntersect(array(), itemList, key => key.ItemID);\r\n });\r\n\r\n console.debug(\"Cart matches in ItemArrays\", matches);\r\n\r\n var matchedItems = [].concat(...matches);\r\n console.info(\"Item matches on page\", matchedItems.length);\r\n\r\n // Update arrays with cart data\r\n arrays.forEach((koArray, i) => {\r\n if (koArray().length < 1) {\r\n return;\r\n }\r\n console.debug(\"Array to update\", { arrayIndex: i, array: koArray() });\r\n // Go through each item in the array\r\n koArray().forEach((item, index) => {\r\n //Reset values\r\n item.AddedToCart(false);\r\n item.Quantity(0);\r\n item.UoMPrices().forEach((prices) => {\r\n prices.QtySelected(0);\r\n prices.QtySelected.setOriginalValue(0);\r\n prices.IsInCart(false);\r\n });\r\n item.UMQtySelected(item.DefaultUMQty);\r\n\r\n // Go through the cart item matches\r\n matchedItems.forEach((cartItem) => {\r\n if (item.ItemID === cartItem.ItemID) {\r\n // Go through UoM list\r\n item.UoMPrices().forEach((prices) => {\r\n // Set the values to match the cart values\r\n if (prices.UMQty === cartItem.UoMPackSize) {\r\n prices.QtySelected(cartItem.QtyOrdered);\r\n prices.QtySelected.setOriginalValue(cartItem.QtyOrdered);\r\n prices.IsInCart(cartItem.QtyOrdered > 0);\r\n\r\n console.debug(\"Item match compare\", { Cart: cartItem, UoM: prices });\r\n koArray.splice(index, 1, item);\r\n }\r\n })\r\n }\r\n })\r\n\r\n // Create array of items in cart\r\n let uomInCart: any[] = item.UoMPrices().filter((x) => { return x.IsInCart() });\r\n\r\n // Stop if there is no match\r\n if (uomInCart.length < 1) {\r\n return;\r\n }\r\n\r\n // Set the flag to true if any item in UoM list is added to cart\r\n item.AddedToCart(uomInCart.length > 0);\r\n\r\n // Select first matching UoM in cart\r\n let umQtySelected = uomInCart[0].UMQty || null;\r\n if (umQtySelected) {\r\n item.UMQtySelected(umQtySelected);\r\n }\r\n\r\n // Set the quantity based on the above criteria\r\n let quantity = uomInCart[0].QtySelected() || null;\r\n if (quantity) {\r\n item.Quantity(quantity);\r\n item.Quantity.setOriginalValue(quantity);\r\n }\r\n\r\n koArray.splice(index, 1, item);\r\n });\r\n\r\n koArray.valueHasMutated();\r\n console.debug(\"Array after splicing in cart matches\", koArray());\r\n })\r\n }\r\n\r\n return new Promise((resolve) => {\r\n updateArray(cartItems, arraysToUpdate);\r\n resolve();\r\n });\r\n};","exports = module.exports = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".ribbon-label{color:#fff;position:absolute;z-index:1}.ribbon-label:before{content:\\\"\\\";position:absolute;border:none;top:-5px;bottom:-5px;left:0;right:0;transform:perspective(20em) rotateX(-45deg);transform-origin:left;outline:1px solid rgba(0,0,0,0)}.ribbon-label.ribbon-label-blue:before{background-color:#00468e !important}.ribbon-label.ribbon-label-red:before{background-color:#a71635 !important}.ribbon-label.ribbon-label-orange:before{background-color:#e87e00 !important}.ribbon-label.ribbon-label-green:before{background-color:#2e732e !important}.ribbon-label.ribbon-label-none:before{display:none}.ribbon-label p{font-size:.7em;color:#fff !important;opacity:.99;padding:2px 5px 2px 5px}\", \"\"]);\n\n","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!./product-details.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!./product-details.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!./product-details.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","exports = module.exports = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".product-images #slideshow a.carousel-control-prev,.product-images #slideshow a.carousel-control-next{top:70px;bottom:70px}.product-images #slideshow a.carousel-control-prev i,.product-images #slideshow a.carousel-control-next i{color:#bbb}.product-images #slideshow video{aspect-ratio:4/3}.product-carousel-image{cursor:-moz-zoom-in;cursor:-webkit-zoom-in;cursor:zoom-in;width:100%;margin:0 auto}@media(min-width: 1200px)and (max-width: 1399.98px){#product-image-carousel{max-width:460px}}#scroll-container-h{overflow:hidden;height:80px}#scroll-arrow-left,#scroll-arrow-right{border:1px rgba(0,0,0,0) solid;cursor:pointer;color:#bbb}#scroll-arrow-left:hover,#scroll-arrow-right:hover{color:#00468e;border:1px #a6a5a5 solid}#scroll-arrow-left:active,#scroll-arrow-right:active{color:#a71635;border:1px #3e3e3e solid}#thumbs-container-h{overflow-x:scroll;overflow-y:hidden;white-space:nowrap;height:100px}#thumbs-container-h ul li{border:1px rgba(0,0,0,0) solid;cursor:pointer;color:#bbb;width:80px;cursor:pointer}#thumbs-container-h ul li:hover{color:#00468e;border:1px #a6a5a5 solid}#thumbs-container-h ul li:active{color:#a71635;border:1px #3e3e3e solid}#scroll-container-v{overflow:hidden;width:200px}@media(min-width: 992px)and (max-width: 1199.98px){#scroll-container-v{width:250px}}@media(min-width: 768px)and (max-width: 991.98px){#scroll-container-v{width:260px}}@media(min-width: 576px)and (max-width: 767.98px){#scroll-container-v{width:385px}}@media(max-width: 575.98px){#scroll-container-v{width:430px}}#scroll-arrow-up,#scroll-arrow-down{border:1px rgba(0,0,0,0) solid;cursor:pointer;color:#bbb}#scroll-arrow-up:hover,#scroll-arrow-down:hover{color:#00468e;border:1px #a6a5a5 solid}#scroll-arrow-up:active,#scroll-arrow-down:active{color:#a71635;border:1px #3e3e3e solid}#thumbs-container-v{overflow-y:scroll;width:120px;height:275px}@media(max-width: 1199.98px){#thumbs-container-v{height:195px}}@media(max-width: 767.98px){#thumbs-container-v{height:100px}}@media(max-width: 575.98px){#thumbs-container-v{height:80px}}#thumbs-container-v ul li{border:1px rgba(0,0,0,0) solid;cursor:pointer;color:#bbb;width:80px;cursor:pointer}#thumbs-container-v ul li:hover{color:#00468e;border:1px #a6a5a5 solid}#thumbs-container-v ul li:active{color:#a71635;border:1px #3e3e3e solid}.similar-products .product-carousel{min-height:auto !important}@media(min-width: 1400px)and (max-width: 1919.98px){.similar-products * .product{flex-basis:calc(20% - 12px)}}.featured-section .section-tab-primary{width:238px;min-width:238px;max-width:238px}@media(min-width: 1200px){.featured-section .section-tab-primary{width:268px;min-width:268px;max-width:268px}}#category-group-grid.image-rows{width:calc(100% + 12px);margin:0 0 0 -6px}.image-rows{justify-content:flex-start;width:100%;display:flex;flex-wrap:wrap;align-content:flex-start;list-style:none;margin:0;overflow:auto;box-sizing:border-box}@media(max-width: 767.98px){.image-rows{margin-bottom:20px}}@media(max-width: 575.98px){.image-rows{margin-bottom:15px}}.product{position:relative;box-sizing:border-box;margin:6px;padding:0;box-shadow:inset 0 0 0 1px #ececec;border-radius:3px;text-align:center;overflow:hidden}.product p{padding:5px;color:#3e3e3e;font-size:13px;font-weight:600;text-align:center}@media(min-width: 1400px)and (max-width: 1919.98px){.product{flex-basis:calc(16.66666% - 12px)}}@media(min-width: 992px)and (max-width: 1399.98px){.product{flex-basis:calc(20% - 12px)}}@media(min-width: 768px)and (max-width: 991.98px){.product{flex-basis:calc(33.33333% - 12px)}.product p{padding-left:20px;padding-right:20px}}@media(max-width: 767.98px){.product{flex-basis:calc(50% - 12px)}.product p{font-size:13px}}.product-carousel{position:relative;z-index:3;width:calc(100% - 20px);padding:0 20px}.product-carousel .carousel-control-prev{left:-24px}.product-carousel .carousel-control-next{right:-24px}.product-carousel .carousel-control-prev,.product-carousel .carousel-control-next{width:50px;opacity:.08}.product-carousel:hover .carousel-control-prev,.product-carousel:hover .carousel-control-next{opacity:1}.product-carousel .carousel-inner:before{left:0;background-image:linear-gradient(to left, rgba(255, 255, 255, 0), #ffffff)}.product-carousel .carousel-inner:after{right:0;background-image:linear-gradient(to right, rgba(255, 255, 255, 0), #ffffff)}.product-carousel .carousel-inner:before,.product-carousel .carousel-inner:after{content:\\\"\\\";position:absolute;top:0;z-index:2;height:100%;width:30px;pointer-events:none}.product-category-card{display:none;height:60px;align-self:center;transition:background 250ms ease-in-out}.product-category-card:hover{background-color:#ebebef}.section .highlight .highlight-img img,.category .highlight .highlight-img img{min-width:100%;height:100%;object-fit:cover;padding:1px 1px 0}.section .highlight .highlight-heading,.category .highlight .highlight-heading{text-align:center;vertical-align:middle;border-radius:0 0 3px 3px}.section .highlight .highlight-heading .highlight-btn,.category .highlight .highlight-heading .highlight-btn{display:block;padding-right:1.33rem;padding-left:1.33rem;border:1px solid #fff;border-radius:.2rem}.section .highlight .highlight-heading{min-height:30px}.category .highlight .highlight-heading{min-height:138px;max-height:138px;font-weight:400}.category .highlight .highlight-heading .highlight-btn{margin-bottom:35px}#featured-items-grid .product::after,#featured-items-grid .loader,.product-sections .product::after,.product-sections .loader,.image-rows .product::after,.image-rows .loader{opacity:0 !important;pointer-events:none}.product-header h1{color:#1c1c1c;margin-bottom:24px;padding-top:15px}.DescriptionContainer>p:first-child{margin-top:1rem}.DownloadableDocuments{padding:12px 0px 12px 0px}.documents-loop-wrapper{display:flex;flex-wrap:wrap}.documents-loop-item{flex:1 0 34%;margin-left:0%;margin-right:.3%}.video-loop-wrapper{display:flex;flex-wrap:wrap;flex:1;margin-bottom:-30px !important}.video-loop-item{flex:0 1 calc(25% - 30px);margin:0 15px 30px}.video-loop-item video{width:312px;height:234px}@media(min-width: 1200px)and (max-width: 1399.98px){.video-loop-item{flex:0 1 calc(33.3333336% - 28px);margin:0 14px 30px}.video-loop-item video{width:340px;height:255px}}@media(min-width: 992px)and (max-width: 1199.98px){.video-loop-item{flex:0 1 calc(50% - 20px);margin:0 10px 30px}.video-loop-item video{width:444px;height:333px}}@media(min-width: 768px)and (max-width: 991.98px){.video-loop-item{flex:0 1 calc(50% - 20px);margin:0 10px 30px}.video-loop-item video{width:324px;height:243px}}@media(max-width: 767.98px){.video-loop-item{flex:0 1;margin:0 0 30px}.video-loop-item video{width:100%;height:unset}}@media(max-width: 991.98px){#questions-tab{margin-bottom:-30px}}\", \"\"]);\n\n"],"sourceRoot":""}