PageSourceSearch

https://www.seagate.com/etc.clientlibs/seagate/components/minicart…art.min.5113124f2457018297794bf4bbc7504d.js

js seagate.com collected 2026-09-24 07:04:26 UTC 34,311 bytes, 60 lines download raw bytes

1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(e){return e.raw=e};$jscomp.createTemplateTagFirstArgWithRaw=function(e,b){e.raw=b;return e};var miniCart={};console.log(".....minicart....."+(new Date).toISOString()+" document.readyState "+document.readyState);
2if(null!=document.querySelector(".PrimaryNav-side--cart.dropdown")){var MiniCart=function(e){e=function(b){this.options=b;this.endpoint="true"===b.isPublishEnv?b.publishDomain+"/ww/ecommerce":"/ww/ecommerce";this.productRows=document.querySelector(".product-rows");this.actionSubtotal=document.querySelector(".action-subtotal");this.cartCount=document.querySelectorAll(".cart-count");this.miniCartDropdownMenuButton=document.querySelector('button[aria-controls\x3d"miniCart-dropdown-menu"]');this.miniCartDropdownMenuButtonAriaLabel=
3this.miniCartDropdownMenuButton.getAttribute("aria-label");this.miniCartBody=document.querySelector("section.miniCart");this.miniCartBody.classList.add("hidden");this.loading=document.querySelector("div.minicart.loading-overlay");this.messageEmpty=document.querySelector("p.message-empty");this.toggle=document.querySelectorAll("div.dropdown-toggle[data-minicart-trigger]");this.checkoutCartButton=document.querySelector("a.checkout-cart");this.viewCartButton=document.querySelector("button.view-cart");
4this.freeShipping=document.querySelector(".free-shipping \x3e p");this.progressBar=document.querySelector(".progress-bar");this.dropdownAlert=document.querySelector(".dropdown-alert");this.newAdded=!1;this.newAddSku="";this.cartMenuSection=document.querySelector('[data-navigationmenu-section\x3d"miniCart"]');this.cartMenu=document.querySelector('[data-navigationmenu\x3d"miniCart"]');this.viewCartButtonBind=this.checkoutCartButtonBind=!1;this.cartDropdown=document.querySelector(".PrimaryNav-side--cart.dropdown");
5this.cartErrorMsg=document.querySelector(".PrimaryNav-side--cart .error-message");this.lowQty=1;this.highQty=10;return this};e.prototype.getLang=function(b){return b.split("_")[0]};e.prototype.formatPricing=function(b,a,d){d=(new Intl.NumberFormat(b,{style:"currency",currency:a})).format(d);"fr"==b&&"CAD"==a&&(d=d.replace("$CA","CA$").trim());return d};e.prototype.dropdownToggle=function(b){var a=this;a.toggle.forEach(function(d){d.addEventListener("mouseenter",function(){a.dropdownAlert.classList.add("hidden");
6a.loading.classList.remove("hidden");a.options.action="get_guest_cart";a.loadCartItems(a.options,function(f){a.renderCart(f);var g=[],m=f.data.cartId,h=f.data.items;void 0!==h&&0<h.length&&(h.forEach(function(l){g.push({productID:l.productUid,sku:l.sku,productName:l.name,itemPrice:l.final_price,itemQty:l.quantity})}),f={event:"view mini cart",accountID:a.getAccountId(),cartInfo:{cartID:m,subtotal:f.data.grand_total,itemQty:f.data.total_quantity,currencyCode:f.data.currency},productListItem:g},a.pushAdobeDataLayerEvent(f))})})})};
7e.prototype.addNewSkuToCart=function(b){var a=this;a.newAdded=!0;a.newAddSku=b;var d=!1;a.loadCartItems(a.options,function(f){a.renderCart(f);f=f.data.items;void 0!==f&&0<f.length&&(d=!0)});a.cartMenuSection.classList.add("is-active");a.cartMenu.classList.add("is-active");a.cartDropdown.classList.add("is-active");d&&a.dropdownAlert.classList.remove("hidden")};e.prototype.renderCart=function(b){var a=this;a.loading.classList.add("hidden");var d=b.data.items,f="",g=[],m=a.getLang(a.options.pageLocale);
8a.options.currencyCode="USD";if(void 0!==d&&0<d.length){if(a.newAdded&&""!==a.newAddSku){var h={};d.forEach(function(c){a.newAddSku!==c.sku?g.push(c):h=c});void 0!==h.sku&&g.unshift(h);d=g}a.newAdded=!1;a.newAddSku="";a.options.initLoad=!1;d.forEach(function(c){var k=a.formatPricing(m,c.currencyCode,c.final_price),v=a.formatPricing(m,c.currencyCode,c.regular_price);a.options.currencyCode=c.currencyCode;f+='\n                        \x3cdiv class\x3d"product-row"  data-uid\x3d"'+c.uid+'"\x3e\n                                \x3cdiv class\x3d"product-img"\x3e\n                                    \x3cimg src\x3d"'+
9c.small_image+'" alt\x3d""\x3e\n                                \x3c/div\x3e\n                                \x3cdiv class\x3d"product-info"\x3e\n                                    \x3cp class\x3d"product-name"\x3e'+c.name+"\x3c/p\x3e\n                                    "+(""!==c.hdd_capacity&&void 0!==c.hdd_capacity?'\x3cp class\x3d"product-capacity"\x3e'+a.options.Capacity+": \x3cspan\x3e"+c.hdd_capacity_label+"\x3c/span\x3e\x3c/p\x3e":"")+"\n                                    "+(""!==c.hdd_cache&&
10void 0!==c.hdd_cache?'\x3cp class\x3d"product-capacity"\x3e'+a.options.Cache+": \x3cspan\x3e"+c.hdd_cache_label+"\x3c/span\x3e\x3c/p\x3e":"")+"\n                                    "+(""!==c.hdd_color&&void 0!==c.hdd_color?'\x3cp class\x3d"product-capacity"\x3e'+a.options.Color+": \x3cspan\x3e"+c.hdd_color_label+"\x3c/span\x3e\x3c/p\x3e":"")+"\n                                    "+(""!==c.hdd_drive_design&&void 0!==c.hdd_drive_design?'\x3cp class\x3d"product-capacity"\x3e'+a.options.DriveDesign+
11": \x3cspan\x3e"+c.hdd_drive_design_label+"\x3c/span\x3e\x3c/p\x3e":"")+"\n                                    "+(""!==c.hdd_encryption&&void 0!==c.hdd_encryption?'\x3cp class\x3d"product-capacity"\x3e'+a.options.Encryption+": \x3cspan\x3e"+c.hdd_encryption_label+"\x3c/span\x3e\x3c/p\x3e":"")+"\n                                    "+(""!==c.hdd_password_protection&&void 0!==c.hdd_password_protection?'\x3cp class\x3d"product-capacity"\x3e'+a.options.PasswordProtection+": \x3cspan\x3e"+c.hdd_password_protection_label+
12"\x3c/span\x3e\x3c/p\x3e":"")+"\n                                    "+(""!==c.hdd_toolkit_backup_software&&void 0!==c.hdd_toolkit_backup_software?'\x3cp class\x3d"product-capacity"\x3e'+a.options.TookitBackupSoftware+": \x3cspan\x3e"+c.hdd_toolkit_backup_software_label+"\x3c/span\x3e\x3c/p\x3e":"")+"\n                                    "+(""!==c.hdd_product_type&&void 0!==c.hdd_product_type?'\x3cp class\x3d"product-capacity"\x3e'+a.options.Format+": \x3cspan\x3e"+c.hdd_product_type_label+"\x3c/span\x3e\x3c/p\x3e":
13"")+"\n                                    "+(""!==c.hdd_rv_sensors&&void 0!==c.hdd_rv_sensors?'\x3cp class\x3d"product-capacity"\x3e'+a.options.RVSensors+": \x3cspan\x3e"+c.hdd_rv_sensors_label+"\x3c/span\x3e\x3c/p\x3e":"")+"\n                                    "+(""!==c.hdd_workload_rate_limit&&void 0!==c.hdd_workload_rate_limit?'\x3cp class\x3d"product-capacity"\x3e'+a.options.WorkloadRateLimit+": \x3cspan\x3e"+c.hdd_w
13orkload_rate_limit_label+"\x3c/span\x3e\x3c/p\x3e":"")+"\n                                    "+
14(""!==c.hdd_form_factor&&void 0!==c.hdd_form_factor?'\x3cp class\x3d"product-capacity"\x3e'+a.options.FormFactor+": \x3cspan\x3e"+c.hdd_form_factor_label+"\x3c/span\x3e\x3c/p\x3e":"")+"\n                                    "+(""!==c.hdd_interface&&void 0!==c.hdd_interface?'\x3cp class\x3d"product-capacity"\x3e'+a.options.Interface+": \x3cspan\x3e"+c.hdd_interface_label+"\x3c/span\x3e\x3c/p\x3e":"")+"\n                                    "+(""!==c.hdd_recording_technology&&void 0!==c.hdd_recording_technology?
15'\x3cp class\x3d"product-capacity"\x3e'+a.options.RecordingTechnology+": \x3cspan\x3e"+c.hdd_recording_technology_label+"\x3c/span\x3e\x3c/p\x3e":"")+"\n                                    "+(""!==c.hdd_rpm&&void 0!==c.hdd_rpm?'\x3cp class\x3d"product-capacity"\x3e'+a.options.RPM+": \x3cspan\x3e"+c.hdd_rpm_label+"\x3c/span\x3e\x3c/p\x3e":"")+"\n                                    "+(""!==c.hdd_storage_type&&void 0!==c.hdd_storage_type?'\x3cp class\x3d"product-capacity"\x3e'+a.options.StorageType+
16": \x3cspan\x3e"+c.hdd_storage_type_label+"\x3c/span\x3e\x3c/p\x3e":"")+'\n\n                                    \x3cp class\x3d"product-model"\x3e'+a.options.modelNo+" \x3cspan\x3e"+c.sku+'\x3c/span\x3e\x3c/p\x3e                                    \n                                    \x3cdiv class\x3d"product-prices"\x3e\n                                    \x3cp class\x3d"current-price"\x3e'+k+"\x3c/p\x3e\n                                    "+(c.final_price!=c.regular_price?'\x3cp class\x3d"previous-price"\x3e'+
17v+"\x3c/p\x3e":"")+'\n                                    \x3c/div\x3e\n                                    \x3cdiv class\x3d"product-controls"\x3e\n                                        \x3cdiv class\x3d"control-add-minus" data-product-name\x3d"'+c.name+'" data-sku\x3d"'+c.sku+'" data-product-uid\x3d"'+c.productUid+'" data-product-id\x3d"'+c.productId+'" data-currency-code\x3d"'+c.currencyCode+'" data-final-price-per-sku\x3d"'+c.final_price_per_sku+'" data-regular-price-per-sku\x3d"'+c.regular_price_per_sku+
18'"\x3e\n                                            \x3cbutton aria-label\x3d"Decrease quantity" class\x3d"control-btn minus '+(parseInt(c.quantity)<=a.lowQty?"disabled":"")+'" '+(parseInt(c.quantity)<=a.lowQty?"disabled":"")+'"\x3e\x3c/button\x3e\n                                            \x3cspan class\x3d"control-input"\x3e'+c.quantity+'\x3c/span\x3e\n                                            \x3cbutton aria-label\x3d"Increase quantity" class\x3d"control-btn plus '+(parseInt(c.quantity)>=a.highQty?
19"disabled":"")+'" '+(parseInt(c.quantity)>=a.highQty?"disabled":"")+'\x3e\x3c/button\x3e\n                                        \x3c/div\x3e\n                                        \x3cbutton aria-label\x3d"Remove Product" class\x3d"control-delete" data-quantity\x3d"'+c.quantity+'" data-product-name\x3d"'+c.name+'" data-sku\x3d"'+c.sku+'" data-product-uid\x3d"'+c.productUid+'" data-product-id\x3d"'+c.productId+'" data-currency-code\x3d"'+c.currencyCode+'" data-final-price-per-sku\x3d"'+c.final_price_per_sku+
20'" data-regular-price-per-sku\x3d"'+c.regular_price_per_sku+'"\x3e\n                                            \x3csvg aria-hidden\x3d"true" xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"40" height\x3d"40" viewBox\x3d"0 0 40 40" fill\x3d"none"\x3e\n                                                \x3cpath d\x3d"M17.8575 11.2535H22.1438C22.3211 11.2425 22.4956 11.302 22.6293 11.419C22.763 11.536 22.845 11.701 22.8575 11.8782V13.1277H17.1425V11.8782C17.155 11.7008 17.2372 11.5355 17.3712 11.4185C17.5051 11.3015 17.6799 11.2421 17.8575 11.2535ZM24.2863 13.1277V11.8782C24.2484 11.3463 24.0019 10.851 23.6004 10.4999C23.1989 10.1489 22.6749 9.97064 22.1425 10.004H17.8575C17.3251 9.97064 16.8011 10.1489 16.3996 10.4999C15.9981 10.851 15.7516 11.3463 15.7137 11.8782V13.1277H10.7138C10.5364 13.1167 10.3619 13.1762 10.2282 13.2932C10.0945 13.4102 10.0125 13.5753 10 13.7524C10.0125 13.9296 10.0945 14.0947 10.2282 14.2117C10.3619 14.3287 10.5364 14.3882 10.7138 14.3772H11.4825L12.7013 27.6969C12.8075 28.3644 13.1576 28.9689 13.6837 29.3935C14.2099 29.8181 14.8748 30.0328 15.55 29.9959H24.45C25.1252 30.0328 25.7901 29.8181 26.3163 29.3935C26.8424 28.9689 27.1925 28.3644 27.2987 27.6969L28.5175 14.3772H29.2863C29.4636 14.3882 29.6381 14.3287 29.7718 14.2117C29.9055 14.0947 29.9875 13.9296 30 13.7524C29.9875 13.5753 29.9055 13.4102 29.7718 13.2932C29.6381 13.1762 29.4636 13.1167 29.2863 13.1277H24.2863ZM27.0837 14.3772L25.875 27.5969C25.822 27.9308 25.6469 28.2333 25.3837 28.4456C25.1204 28.658 24.7877 28.7652 24.45 28.7464H15.55C15.2123 28.7652 14.8796 28.658 14.6163 28.4456C14.3531 28.2333 14.178 27.9308 14.125 27.5969L12.9175 14.3772H27.0837ZM16.3875 15.6267C16.5643 15.6085 16.7412 15.6595 16.8811 15.769C17.0209 15.8786 17.1129 16.0381 17.1375 16.214L17.8513 26.8347C17.8514 26.9219 17.8343 27.0083 17.8009 27.0889C17.7675 27.1695 17.7185 27.2427 17.6567 27.3042C17.5949 27.3658 17.5215 27.4145 17.4407 27.4476C17.36 27.48
2007 17.2735 27.4974 17.1863 27.4969C17.0097 27.5149 16.8331 27.4639 16.6934 27.3547C16.5536 27.2455 16.4615 27.0865 16.4363 26.9109L15.7213 16.2902C15.7162 16.2061 15.7296 16.122 15.7605 16.0437C15.7914 15.9653 15.839 15.8947 15.9 15.8366C16.0315 15.7104 16.2054 15.6359 16.3875 15.6267ZM23.6137 15.6267C23.7978 15.6341 23.9729 15.7083 24.1062 15.8354C24.1673 15.8934 24.2149 15.9641 24.2458 16.0424C24.2766 16.1207 24.29 16.2049 24.285 16.2889L23.5713 26.9097C23.546 27.0852 23.4539 27.2442 23.3141 27.3534C23.1744 27.4626 22.9978 27.5136 22.8212 27.4957C22.7337 27.4968 22.6468 27.4806 22.5655 27.4479C22.4843 27.4152 22.4103 27.3667 22.348 27.3052C22.2857 27.2437 22.2362 27.1705 22.2024 27.0897C22.1686 27.0089 22.1512 26.9222 22.1512 26.8347L22.8663 16.214C22.8909 16.0381 22.9828 15.8786 23.1227 15.769C23.2626 15.6595 23.4395 15.6085 23.6162 15.6267H23.6137ZM20 15.6267C20.1773 15.6157 20.3519 15.6752 20.4855 15.7922C20.6192 15.9092 20.7012 16.0743 20.7137 16.2514V26.8722C20.6898 27.0445 20.6042 27.2024 20.4729 27.3167C20.3417 27.4309 20.1735 27.4938 19.9994 27.4938C19.8253 27.4938 19.6571 27.4309 19.5258 27.3167C19.3945 27.2024 19.309 27.0445 19.285 26.8722V16.2514C19.2975 16.074 19.3797 15.9088 19.5137 15.7917C19.6476 15.6747 19.8224 15.6154 20 15.6267Z" fill\x3d"black"/\x3e\n                                            \x3c/svg\x3e\n                                        \x3c/button\x3e\n                                    \x3c/div\x3e\n                                    \x3cdiv class\x3d"product-alert hidden"\x3e\n                                        \x3cdiv class\x3d"alert-icon"\x3e\n                                            \x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"24" height\x3d"24" viewBox\x3d"0 0 24 24" fill\x3d"none"\x3e\n                                            \x3cpath d\x3d"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z" fill\x3d"#F8BE15"/\x3e\n                                            \x3c/svg\x3e\n                                        \x3c/div\x3e\n                                        \x3cdiv class\x3d"alert-text"\x3e\n                                            \x3cspan\x3e'+
21a.options.storeStockWarning+"\x3c/span\x3e\n                                        \x3c/div\x3e\n                                    \x3c/div\x3e\n                                \x3c/div\x3e\n                        \x3c/div\x3e"});a.miniCartBody.classList.remove("hidden");a.messageEmpty.classList.add("hidden");a.productRows.innerHTML=f;var l=b.data.subPriceTotal,r=!1,n=b.data.freeShipping;a.freeShipping.innerHTML=n.shippingProgressMessage;n=Number(n.progressBarPercentage);a.progressBar.setAttribute("style",
22"width: "+n+"%");100==n&&(r=!0);n=a.formatPricing(m,a.options.currencyCode,b.data.subPriceTotal);a.actionSubtotal.innerHTML="\x3cp\x3e"+a.options.Subtotal+" \x3cspan\x3e("+b.data.total_quantity+" "+a.options.items+")\x3c/span\x3e\x3c/p\x3e\n                                    \x3cp\x3e"+n+"\x3c/p\x3e";a.cartCount.forEach(function(c){c.innerHTML=b.data.total_quantity;c.classList.remove("hidden");a.miniCartDropdownMenuButton.setAttribute("aria-label",a.miniCartDropdownMenuButtonAriaLabel.replace("[0]",
23b.data.total_quantity))});n=a.getCustomToken();var w=b.data.cartId,t=b.data.currencyCode,p=[];d.forEach(function(c){p.push({productID:c.productUid,sku:c.sku,productName:c.name,itemPrice:c.final_price,itemQty:c.quantity})});d={event:"initiate checkout",accountID:a.getAccountId(),cartInfo:{cartID:w,subtotal:l,itemQty:d.length,freeShipping:r,currencyCode:t},productListItem:p};a.setSessionCookie("initiateCheckoutEvent",JSON.stringify(d));null==n||""==n?(a.checkoutCartButton.href=a.options.checkoutCartBtn,
24a.checkoutCartButtonBind||(a.checkoutCartButton.addEventListener("click",function(c){a.setSessionCookie("checkoutCartBtn","clicked");a.pushAdobeDataLayerEvent(JSON.parse(a.getCookie("initiateCheckoutEvent")));console.log("#Checkout clicked "+(new Date).toISOString());c=a.getCookie("guest_cart_id___"+a.options.storeCode);var k=a.getMiniCartItemSessionStorage("minicart_items___"+a.options.storeCode);null==c&&null!=k&&JSON.parse(k).data&&JSON.parse(k).data.cartId&&(c=JSON.parse(k).data.cartId,console.log("#guest cart id from minicart_items "+
25c),a.options.guest_cart_id=c,a.setMinutesCookie("guest_cart_id___"+a.options.storeCode,c,a.options.cookieMaxAge),a.setMinutesCookie("cartId",c,a.options.cookieMaxAge))}),a.checkoutCartButtonBind=!0),a.viewCartButtonBind||(a.viewCartButton.addEventListener("click",function(c){a.setSessionCookie("viewCartBtn","clicked");c=a.getCookie("guest_cart_id___"+a.options.storeCode);var k=a.getMiniCartItemSessionStorage("minicart_items___"+a.options.storeCode);null==c&&null!=k&&JSON.parse(k).data&&JSON.parse(k).data.cartId&&
26(c=JSON.parse(k).data.cartId,console.log("#guest cart id from minicart_items "+c),a.options.guest_cart_id=c,a.setMinutesCookie("guest_cart_id___"+a.options.storeCode,c,a.options.cookieMaxAge),a.setMinutesCookie("cartId",c,a.options.cookieMaxAge))}),a.viewCartButtonBind=!0)):(a.checkoutCartButton.href=a.options.checkoutCartBtn,a.checkoutCartButtonBind||(a.checkoutCartButton.addEventListener("click",function(c){a.setSessionCookie("checkoutCartBtn","clicked");a.pushAdobeDataLayerEvent(JSON.parse(a.getCookie("initiateCheckoutEvent")));
27console.log("#Checkout clicked "+(new Date).toISOString())}),a.checkoutCartButtonBind=!0),a.viewCartButtonBind||(a.viewCartButton.addEventListener("click",function(c){a.setSessionCookie("viewCartBtn","clicked")}),a.viewCartButtonBind=!0));
27a.deleteCartItems(b);a.addMinusClick(b)}else a.messageEmpty.classList.remove("hidden"),a.miniCartBody.classList.add("hidden"),a.dropdownAlert.classList.add("hidden"),a.cartCount.forEach(function(c){c.classList.add("hidden");c.innerHTML="0";a.miniCartDropdownMenuButton.setAttribute("aria-label",
28a.miniCartDropdownMenuButtonAriaLabel.replace("[0]","0"))})};e.prototype.addMinusClick=function(b){var a=this,d=b.data.cartId;b.data.items.forEach(function(f){var g=document.querySelector('div[data-uid\x3d"'+f.uid+'"] .control-add-minus'),m=g.querySelector(".control-btn.minus"),h=g.querySelector(".control-btn.plus"),l=g.querySelector(".control-input"),r=g.dataset.currencyCode,n=g.dataset.productUid,w=g.dataset.regularPricePerSku,t=g.dataset.finalPricePerSku,p=g.dataset.sku,c=g.dataset.productName;
29a.options.action="update_guest_cart";m.addEventListener("click",function(k){if(!m.classList.contains("disabled"))if(k=parseInt(l.innerText),k>a.lowQty){m.classList.remove("disabled");var v=a.getCookie("customer_cart_id___"+a.options.storeCode),q=a.getCustomToken();null!=v&&""!==v&&null==q?a.handleErrorMsg("Customer Session Expired"):(l.innerText=k-1,a.options.cart_item_uid=f.uid,a.options.quantity=l.innerText,a.loading.classList.remove("hidden"),a.updateCartItems(a.options,function(u){"undefined"===
30typeof u.data.errorMsg?(a.setMiniCartItemSessionStorage("minicart_items___"+a.options.storeCode,JSON.stringify(u)),a.renderCart(u),u={event:"remove cart",accountID:a.getAccountId(),cartID:d,quantityRemoved:"1",productInfo:{productID:n,sku:p,currencyCode:r,productName:c,modelNum:p,regularPrice:w,promoPrice:t}},a.pushAdobeDataLayerEvent(u)):(console.log(u.data.errorMsg),a.handleErrorMsg(u.data.errorMsg))}))}else k<=a.lowQty&&m.classList.add("disabled")});h.addEventListener("click",function(k){if(!h.classList.contains("disabled")){k=
31a.getCookie("customer_cart_id___"+a.options.storeCode);var v=a.getCustomToken();null!=k&&""!==k&&null==v?a.handleErrorMsg("Customer Session Expired"):(k=parseInt(l.innerText),l.innerText=k+1,a.options.cart_item_uid=f.uid,a.options.quantity=l.innerText,a.loading.classList.remove("hidden"),parseInt(l.innerText)>=a.highQty?h.classList.add("disabled"):h.classList.remove("disabled"),a.updateCartItems(a.options,function(q){"undefined"===typeof q.data.errorMsg?(a.setMiniCartItemSessionStorage("minicart_items___"+
32a.options.storeCode,JSON.stringify(q)),a.renderCart(q),q={event:"add to cart",accountID:a.getAccountId(),cartID:d,quantityAdded:"1",productInfo:{productID:n,sku:p,currencyCode:r,productName:c,modelNum:p,regularPrice:w,promoPrice:t}},a.pushAdobeDataLayerEvent(q)):(console.log(q.data.errorMsg),a.handleErrorMsg(q.data.errorMsg))}))}})})};e.prototype.deleteCartItems=function(b){var a=this,d=b.data.cartId;b.data.items.forEach(function(f){var g=document.querySelector('div[data-uid\x3d"'+f.uid+'"] .control-delete');
33g.addEventListener("click",function(m){m=a.getCookie("customer_cart_id___"+a.options.storeCode);var h=a.getCustomToken();if(null!=m&&""!==m&&null==h)a.handleErrorMsg("Customer Session Expired");else{var l=g.dataset.currencyCode,r=g.dataset.productUid,n=g.dataset.regularPricePerSku,w=g.dataset.finalPricePerSku,t=g.dataset.sku,p=g.dataset.productName,c=g.dataset.quantity;a.loading.classList.remove("hidden");a.options.action="remove_cart_item";a.options.cart_item_uid=f.uid;a.deleteCartItem(a.options,
34function(k){"undefined"===typeof k.data.errorMsg?(a.setMiniCartItemSessionStorage("minicart_items___"+a.options.storeCode,JSON.stringify(k)),a.renderCart(k),k={event:"remove cart",accountID:a.getAccountId(),cartID:d,quantityRemoved:c,productInfo:{productID:r,sku:t,currencyCode:l,productName:p,modelNum:t,regularPrice:n,promoPrice:w}},a.pushAdobeDataLayerEvent(k)):(console.log(k.data.errorMsg),a.handleErrorMsg(k.data.errorMsg))})}})})};e.prototype.updateCartItems=function(b,a){this.options=b;b=new FormData;
35b.append("action",this.options.action);b.append("guest_cart_id",this.options.guest_cart_id);b.append("storeCode",this.options.storeCode);b.append("cart_item_uid",this.options.cart_item_uid);b.append("quantity",this.options.quantity);b.append("customerToken",this.getCustomToken());b.append("customer_cart_id",this.options.customer_cart_id);fetch(this.endpoint,{method:"POST",body:b}).then(function(d){return d.json()}).then(function(d){a(d)}).catch(function(d){})};e.prototype.deleteCartItem=function(b,
36a){this.options=b;b=new FormData;b.append("action",this.options.action);b.append("guest_cart_id",this.options.guest_cart_id);b.append("customer_cart_id",this.options.customer_cart_id);b.append("customerToken",this.getCustomToken());b.append("storeCode",this.options.storeCode);b.append("cart_item_uid",this.options.cart_item_uid);fetch(this.endpoint,{method:"POST",body:b}).then(function(d){return d.json()}).then(function(d){a(d)}).catch(function(d){})};e.prototype.clearCart=function(b,a){this.options=
37b;b=new FormData;b.append("action","clear_cart");b.append("guest_cart_id",this.options.guest_cart_id);b.append("customer_cart_id",this.options.customer_cart_id);b.append("customerToken",this.getCustomToken());b.append("storeCode",this.options.storeCode);b.append("cart_item_uids",this.options.cart_item_uids);fetch(this.endpoint,{method:"POST",body:b}).then(function(d){return d.json()}).then(function(d){a(d)}).catch(function(d){})};e.prototype.getCustomToken=function(){var b=this.getCookie("customer_token");
38return this.options.customer_token=b};e.prototype.loadCartItems=function(b,a){var d=this;d.options=b;b=new FormData;b.append("action",d.options.action);b.append("guest_cart_id",d.options.guest_cart_id);b.append("customer_cart_id",d.options.customer_cart_id);b.append("storeCode",d.options.storeCode);b.append("customerToken",d.getCustomToken());var f=d.getMiniCartItemSessionStorage("minicart_items___"+d.options.storeCode);d.newAdded?a(JSON.parse(f)):null===f||d.options.initLoad?fetch(d.endpoint,{method:"POST",
39body:b}).then(function(g){return g.json()}).then(function(g){"undefined"===typeof g.data.errorMsg?(d.setMiniCartItemSessionStorage("minicart_items___"+d.options.storeCode,JSON.stringify(g)),a(g)):(console.log(g.data.errorMsg),d.handleErrorMsg(g.data.errorMsg))}).catch(function(g){}):a(JSON.parse(f))};e.prototype.generateCustomerCartId=function(b,a){var d=this;b=new FormData;b.append("action","generate_customer_cart_id");b.append("storeCode",d.options.storeCode);b.append("customerToken",d.getCustomToken());
40fetch(d.endpoint,{method:"POST",body:b}).then(function(f){return f.json()}).then(function(f){"undefined"===typeof f.data.errorMsg?(d.options.customer_cart_id=f.data.cartId,d.setSessionCookie("customer_cart_id___"+d.options.storeCode,f.data.cartId),a(f.data.cartId)):(console.log(f.data.errorMsg),d.handleErrorMsg(f.data.errorMsg))}).catch(function(f){})};e.prototype.generateGuestCartId=function(b,a){var d=this;b=new FormData;b.append("action","create_guest_cart_id");b.append("storeCode",d.options.storeCode);
41fetch(d.endpoint,{method:"POST",body:b}).then(function(f){return f.json()}).then(function(f){"undefined"===typeof f.data.errorMsg?(d.options.guest_cart_id=f.data.cartId,d.setMinutesCookie("guest_cart_id___"+d.options.storeCode,f.data.cartId,d.options.cookieMaxAge),d.setMinutesCookie("cartId",f.data.cartId,d.options.cookieMaxAge),a(f.data.cartId)):(console.log(f.data.errorMsg),d.handleErrorMsg(f.data.errorMsg))}).catch(function(f){})};e.prototype.checkGuestCart=function(b,a){b=new FormData;b.append("action",
42"check_guest_cart");b.append("storeCode",this.options.storeCode);b.append("guest_cart_id",this.options.guest_cart_id);fetch(this.endpoint,{method:"POST",body:b}).then(function(d){return d.json()}).then(function(d){a(d)}).catch(function(d){})};e.prototype.mergeCart=function(b,a){var d=this;b=new FormData;b.append("action","merge_cart");b.append("storeCode",d.options.storeCode);b.append("guest_cart_id",d.options.guest_cart_id);b.append("customer_cart_id",d.options.customer_cart_id);b.append("customerToken",
43d.getCustomToken());fetch(d.endpoint,{method:"POST",body:b}).then(function(f){return f.json()}).then(function(f){"undefined"===typeof f.data.errorMsg?(d.setMiniCartItemSessionStorage("minicart_items___"+d.options.storeCode,JSON.stringify(f)),a(f)):(console.log(f.data.errorMsg),d.handleErrorMsg(f.data.errorMsg))}).catch(function(f){})};e.prototype.getCookie=function(b){var a=document.cookie;b+="\x3d";var d=a.indexOf("; "+b);if(-1==d){if(d=a.indexOf(b),0!=d)return null}else d+=2;var f=document.cookie.indexOf(";",
44d);-1==f&&(f=a.length);return unescape(a.substring(d+b.length,f))};e.prototype.setSessionCookie=function(b,a){document.cookie=b+"\x3d"+escape(a)+"; path\x3d/ ;domain\x3d"+("localhost"==window.location.hostname?"localhost":".seagate.com")};e.prototype.setMinutesCookie=function(b,a,d){d=(new Date((new Date).getTime()+6E4*d)).toUTCString();document.cookie=b+"\x3d"+escape(a)+";
44 expires\x3d"+d+"; path\x3d/ ;domain\x3d"+("localhost"==window.location.hostname?"localhost":".seagate.com")};e.prototype.deleteCookie=
45function(b){document.cookie=b+"\x3d; Max-Age\x3d0; path\x3d/; domain\x3d"+("localhost"==window.location.hostname?"localhost":".seagate.com")};e.prototype.deleteCookies=function(b){for(var a=0;a<b.length;a++)this.deleteCookie(b[a])};e.prototype.setMiniCartItemSessionStorage=function(b,a){sessionStorage.setItem(b,a)};e.prototype.getMiniCartItemSessionStorage=function(b){return sessionStorage.getItem(b)?sessionStorage.getItem(b):'{"data":{}}'};e.prototype.deleteMiniCartItemSessionStorage=function(b){sessionStorage.getItem(b)&&
46sessionStorage.removeItem(b)};e.prototype.handleErrorMsg=function(b){if(-1!=b.indexOf("The cart isn't active"))this.deleteCookies(["guest_cart_id___"+this.options.storeCode,"customer_cart_id___"+this.options.storeCode,"cartId","customer_email_hash"]),this.deleteMiniCartItemSessionStorage("minicart_items___"+this.options.storeCode),console.log("Deleted cookie due to the cart isn't active"),window.location.reload();else if(-1!=b.indexOf("Could not find a cart with ID"))this.deleteCookies(["guest_cart_id___"+
47this.options.storeCode,"customer_cart_id___"+this.options.storeCode,"cartId","customer_email_hash"]),this.deleteMiniCartItemSessionStorage("minicart_items___"+this.options.storeCode),console.log("Deleted cookie due to could not find the cart ID"),window.location.reload();else if(-1!=b.indexOf("The current user cannot perform operations on cart"))this.deleteCookies(["guest_cart_id___"+this.options.storeCode,"customer_cart_id___"+this.options.storeCode,"cartId","customer_email_hash"]),this.deleteMiniCartItemSessionStorage("minicart_items___"+
48this.options.storeCode),console.log("The current user cannot perform operations on cart"),window.location.reload();else if(-1!=b.indexOf("INSUFFICIENT_STOCK")||-1!=b.indexOf("The requested qty is not available")||-1!=b.indexOf("This product is out of stock")||-1!=b.indexOf("Some of the products are out of stock")||-1!=b.indexOf("The requested qty exceeds the maximum qty allowed in shopping cart")||-1!=b.indexOf("Product is not salable")||-1!=b.indexOf("Not enough items for sale")){console.log("The requested qty is not available");
49var a=document.querySelector(".EcomProductDetail-message.show-message");a?(a.classList.add("show"),setTimeout(function(){a.classList.remove("show");console.log("Reload page");window.location.reload()},4E3)):(console.log("Reload page"),window.location.reload())}else-1!=b.indexOf("Customer Session Expired")?(console.log("# "+this.options.sessionExpiredMsg),this.deleteCookies(["guest_cart_id___"+this.options.storeCode,"customer_cart_id___"+this.options.storeCode,"cartId","customer_email_hash"]),this.deleteMiniCartItemSessionStorage("minicart_items___"+
50this.options.storeCode),this.setSessionCookie("sessionExpired","true"),window.location.reload()):-1!=b.indexOf("You have the maximum available amount of the pre-order product in your cart")&&(console.log("You have the maximum available amount of the pre-order product in your cart"),(a=this.cartErrorMsg.querySelector("p"))?(a.innerHTML=this.options.preOrderMaxiumMsg,this.cartErrorMsg.classList.add("show"),setTimeout(function(){console.log("Reload page");window.location.reload()},4E3)):(console.log("Reload page"),
51window.location.reload()))};e.prototype.pushAdobeDataLayerEvent=function(b){console.log(b);window.adobeDataLayer.push(b)};e.prototype.getAccountId=function(){var b="guest",a=this.getCookie("customer_token"),d=this.getCookie("customer_email_hash");null!=a&&""!=a&&null!=d&&""!=d&&(b=d);return b};return e}();console.log("...load mini cart...."+(new Date).toISOString()+" document.readyState "+document.readyState);(function(e){miniCart=new MiniCart({storeCode:e.storeCode,pageLocale:e.pageLocale,publishDomain:e.publishDomain,
52modelNo:e.modelNo,Capacity:e.Capacity,Color:e.Color,PasswordProtection:e.PasswordProtection,TookitBackupSoftware:e.TookitBackupSoftware,DriveDesign:e.DriveDesign,Format:e.Format,Encryption:e.Encryption,RVSensors:e.RVSensors,StorageType:e.StorageType,WorkloadRateLimit:e.WorkloadRateLimit,Cache:e.Cache,FormFactor:e.FormFactor,Interface:e.Interface,RPM:e.RPM,Subtotal:e.Subtotal,items:e.items,getFreeShippingMsg:e.getFreeShippingMsg,awayFromFreeShippingMsg:e.awayFromFreeShippingMsg,checkoutCartBtn:e.checkoutCartBtn,
53freeShipping:e.freeShipping,viewCartBtn:e.viewCartBtn,storeStockWarning:e.storeStockWarning,eCommerceLoginUrl:e.eCommerceLoginUrl,sessionExpiredMsg:e.sessionExpiredMsg,cookieMaxAge:Number.parseInt(e.cookieMaxAge),isPublishEnv:e.isPublishEnv,RecordingTechnology:e.RecordingTechnology,preOrderMaxiumMsg:e.preOrderMaxiumMsg});var b=miniCart.getCookie("guest_cart_id___"+e.storeCode),a=miniCart.getCookie("customer_cart_id___"+e.storeCode),d=miniCart.getCustomToken(),f=miniCart.getMiniCartItemSessionStorage("minicart_items___"+
54e.storeCode);miniCart.getCookie("checkoutCartBtn");var g=miniCart.getCookie("viewCartBtn"),m=miniCart.getCookie("sessionExpired");null!=m&&"true"===m&&(miniCart.cartErrorMsg.classList.add("show"),miniCart.deleteCookie("sessionExpired"),setTimeout(function(){miniCart.cartErrorMsg.classList.remove("show")},4E3));null==d||""==d?null!=a&&""!==a?miniCart.handleErrorMsg("Customer Session Expired"):null==b||""==b?null!=f&&JSON.parse(f).data&&JSON.parse(f).data.cartId?(b=JSON.parse(f).data.cartId,console.log("#guest cart id from minicart_items "+
55b),miniCart.options.guest_cart_id=b,miniCart.setMinutesCookie("guest_cart_id___"+miniCart.options.storeCode,b,miniCart.options.cookieMaxAge),miniCart.setMinutesCookie("cartId",b,miniCart.options.cookieMaxAge),miniCart.options.action="get_guest_cart",miniCart.options.initLoad=!0,miniCart.loadCartItems(miniCart.options,function(h){miniCart.renderCart(h)}),miniCart.dropdownToggle(miniCart.options)):miniCart.generateGuestCartId(miniCart.options,function(h){console.log("#guest cart id "+h);miniCart.dropdownToggle(miniCart.options)}):
56(miniCart.options.action="get_guest_cart",miniCart.options.guest_cart_id=b,miniCart.setMinutesCookie("cartId",b,miniCart.options.cookieMaxAge),miniCart.options.initLoad=!0,miniCart.loadCartItems(miniCart.options,function(h){miniCart.renderCart(h)}),miniCart.dropdownToggle(miniCart.options),document.querySelector('.dropdown-links a[href*\x3d"myportal"]')&&document.querySelector('.dropdown-links a[href*\x3d"myportal"]').addEventListener("click",function(h){h=miniCart.getCookie("guest_cart_id___"+miniCart.options.storeCode);
57var l=miniCart.getMiniCartItemSessionStorage("minicart_items___"+miniCart.options.storeCode);null==h&&null!=l&&JSON.parse(l).data&&JSON.parse(l).data.cartId&&(h=JSON.parse(l).data.cartId,console.log("#guest cart id from minicart_items "+h),miniCart.options.guest_cart_id=h,miniCart.setMinutesCookie("guest_cart_id___"+miniCart.options.storeCode,h,miniCart.options.cookieMaxAge),miniCart.setMinutesCookie("cartId",h,miniCart.options.cookieMaxAge))})):null==a||""==a?(miniCart.options.customer_token=d,miniCart.generateCustomerCartId(miniCart.options,
58function(h){console.log("#customer cartId "+h);miniCart.options.customer_cart_id=h;miniCart.setSessionCookie("customer_cart_id___"+e.storeCode,h);"clicked"==g?(console.log("No need to merge cart"),miniCart.deleteCookie("guest_cart_id___"+e.storeCode),miniCart.deleteCookie("cartId"),miniCart.options.action="get_guest_cart",miniCart.options.customer_cart_id=h,miniCart.options.customer_token=d,miniCart.options.initLoad=!0,miniCart.loadCartItems(miniCart.options,function(l){miniCart.renderCart(l)})):
59(miniCart.deleteCookie("guest_cart_id___"+e.storeCode),miniCart.deleteCookie("cartId"),miniCart.options.action="get_guest_cart",miniCart.options.customer_cart_id=h,miniCart.options.customer_token=d,miniCart.options.initLoad=!0,miniCart.loadCartItems(miniCart.options,function(l){miniCart.renderCart(l)}));miniCart.dropdownToggle(miniCart.options)})):(miniCart.deleteCookie("guest_cart_id___"+e.storeCode),miniCart.deleteCookie("cartId"),miniCart.options.action="get_guest_cart",miniCart.options.customer_cart_id=
60a,miniCart.options.customer_token=d,miniCart.options.initLoad=!0,miniCart.loadCartItems(miniCart.options,function(h){miniCart.renderCart(h)}),miniCart.dropdownToggle(miniCart.options))})(eCommerceConfig)};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.