PageSourceSearch

https://www.tumi.com.kw/on/demandware.static/Sites-Tumi_KW-Site/-/en_KW/v1791310578208/js/helpCenter.js

js tumi.com.kw collected 2026-10-07 00:06:20 UTC 17,065 bytes, 1 lines download raw bytes

1!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=157)}({1:function(t,e,n){"use strict";function o(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i="stop-scroll",a={$window:$(window),$html:$("html"),$body:$("body")},c=!1;window.loadedAssets="loadedAssets"in window?window.loadedAssets:[],window.isScrollDisabled="isScrollDisabled"in window&&window.isScrollDisabled,window.currentScrollTop="currentScrollTop"in window?window.currentScrollTop:0;var s=o(o(o(o(o(o(o(o(o(o({scrollTo:function(t,e,n){var o,i="object"===r(t)&&t.length>0,a=(e="number"==typeof e?e:500,0);if(!c){c=!0,o=i?t.offset().top:t;var s=$(".js-page-header");s.length>0&&"fixed"===s.css("position")&&(a=s.outerHeight()),o-=a,(!!i&&$(t).closest(".js-popover").length>0?$(".js-popover.show .popover__content"):$("html, body")).animate({scrollTop:o},e,(function(){"function"==typeof n&&n(),c=!1}))}},disableScroll:function(){window.isScrollDisabled||(s.saveScrollTop(),a.$html.addClass(i),a.$body.addClass(i),s.restoreScrollTop(a.$body),window.isScrollDisabled=!0)},enableScroll:function(){a.$html.removeClass(i),a.$body.removeClass(i),s.restoreScrollTop(),window.isScrollDisabled=!1},saveScrollTop:function(){window.currentScrollTop=a.$window.scrollTop()},restoreScrollTop:function(t){(t||a.$html).scrollTop(window.currentScrollTop)},arabicToNumber:function(t){return t.replace(/[٠-٩]/g,(function(t){return"٠١٢٣٤٥٦٧٨٩".indexOf(t)}))},appendParamToURL:function(t,e,n){if(-1!==t.indexOf(e+"="))return t;var o=-1!==t.indexOf("?")?"&":"?";return t+o+e+"="+encodeURIComponent(n)},removeParamFromURL:function(t,e){if(-1===t.indexOf("?")||-1===t.indexOf(e+"="))return t;var n,o,r=t.split("?")[0],i=t.split("?")[1],a=[];i.indexOf("#")>-1&&(n=i.split("#")[1]||"",i=i.split("#")[0]),o=i.split("&");for(var c=0;c<o.length;c++)o[c].split("=")[0]!==e&&a.push(o[c]);return r+"?"+a.join("&")+(n?"#"+n:"")},appendParamsToUrl:function(t,e){var n=t;for(var o in e)n=this.appendParamToURL(n,o,e[o]);return n},replaceParamInURL:function(t,e,n){var o=-1!==(t=this.removeParamFromURL(t,e)).indexOf("?")?"&":"?";return t+o+e+"="+encodeURIComponent(n)},getQueryString:function(t){var e;if("string"==typeof t){var n=document.createElement("a");return n.href=t,n.search&&(e=n.search.substr(1)),e}},elementInViewport:function(t,e){for(var n=t.offsetTop,o=t.offsetLeft,r=t.offsetWidth,i=t.offsetHeight;t.offsetParent;)n+=(t=t.offsetParent).offsetTop,o+=t.offsetLeft;return void 0!==e&&(n-=e),null!==window.pageXOffset?n<window.pageYOffset+window.innerHeight&&o<window.pageXOffset+window.innerWidth&&n+i>window.pageYOffset&&o+r>window.pageXOffset:"CSS1Compat"===document.compatMode?n<window.document.documentElement.scrollTop+window.document.documentElement.clientHeight&&o<window.document.documentElement.scrollLeft+window.document.documentElement.clientWidth&&n+i>window.document.documentElement.scrollTop&&o+r>window.document.documentElement.scrollLeft:void 0},ajaxUrl:function(t){return this.appendParamToURL(t,"format","ajax")},getQueryStringParams:function(t){if(!t||0===t.length)return{};var e={};return t.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),(function(t,n,o,r){e[n]=decodeURIComponent(r).replace(/\+/g," ")})),e},getParameterValueFromUrl:function(t,e){var n=e||window.location.search;return this.getQueryStringParams(n)[t]},storageAvailable:function(t){var e=[];try{e=window[t];var n="__storage_test__";return e.setItem(n,n),e.removeItem(n),!0}catch(t){}},eventDelay:function(t,e,n,o){var r,i;return e||(e=250),function(){var a=n||this,c=(new Date).getTime(),s=arguments;r&&c<r+e?(clearTimeout(i),i=setTimeout((function(){r=c,t.apply(a,s)}),e)):(r=c,o||t.apply(a,s))}},throttle:function(t,e,n){clearTimeout(t._tId),t._tId=setTimeout((function(){t.call(n)}),e||100)},getTimer:function(){return{id:null,clear:function(){this.id&&(window.clearTimeout(this.id
1),delete this.id)},start:function(t,e){this.id=setTimeout(e,t)}}},getInterval:function(){return{id:null,clear:function(){this.id&&(window.clearInterval(this.id),delete this.id)},start:function(t,e){this.id=setInterval(e,t)}}},getUri:function(t){var e;if(t.tagName&&$(t).attr("href"))e=t;else{if("string"!=typeof t)return null;(e=document.createElement("a")).href=t}return""===e.host&&(e.href=e.href),":"===e.protocol&&(e.protocol=window.location.protocol),0!==e.pathname.indexOf("/")&&(e.pathname="/"+e.pathname),Object.create({protocol:e.protocol,host:e.host,hostname:e.hostname,port:e.port,path:e.pathname,query:e.search,queryParams:e.search.length>1?this.getQueryStringParams(e.search.substr(1)):{},hash:e.hash,url:e.protocol+"//"+e.host+e.pathname,toString:function(){return this.protocol+"//"+this.host+this.port+this.pathname+this.search+this.hash}})},jsonParse:function(t){var e={};if(!t)return e;try{e=JSON.parse(t)}catch(t){return e}return e},canAccessSessionStorage:function(){try{return sessionStorage.setItem("test","test"),sessionStorage.removeItem("test"),!0}catch(t){return!1}},isObject:function(t){var e=r(t);return null!=t&&("object"==e||"function"==e)}},"isObject",(function(t){var e=r(t);return null!=t&&("object"==e||"function"==e)})),"ajaxUpdateElementsContent",(function(t,e){(e||$(document)).find(".js-ajaxupdate-el").each((function(){var e=$
1(this),n=e.data("ajaxupdate-datakey"),o="";n&&(n.split("|").forEach((function(e){o+=s.getNestedValueFromObj(t,e)})),e.addClass("has-value"),o&&"undefined"!==o||(o="",e.removeClass("has-value")),e.html(o))}))})),"ajaxUpdateDataAttribute",(function(t,e,n){t&&e&&n&&e.find(n).each((function(){var e=$(this),n=e.data("ajaxupdate-datakey-target");if(n){var o=e.data("ajaxupdate-datakey-source"),r="";o&&(o.split("|").forEach((function(e){r+=JSON.stringify(s.getNestedValueFromObj(t,e))})),"undefined"===r&&(r=""),e.data(n,JSON.parse(r)).attr("data-"+n,r))}}))})),"getNestedValueFromObj",(function(t,e){if(t&&"object"===r(t)){var n=e.split(/[\[\]]+/).filter((function(t){return""!==t}));if(1===n.length)return t[n[0]];var o=n[0],i=n.slice(1),a=t[o];return s.getNestedValueFromObj(a,i.join("["))}})),"loadCSSFile",(function(t){window.loadedAssets.indexOf(t)>-1||(window.loadedAssets.push(t),$("<link/>",{rel:"stylesheet",type:"text/css",href:t}).appendTo("head"))})),"loadJSFile",(function(t,e){window.loadedAssets.indexOf(t)>-1||(window.loadedAssets.push(t),$.getScript(t,(function(){e&&e()})))})),"debounce",(function(t,e,n){var o,r,i,a,c,s,l=0,u=!1,f=!1,d=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var n=o,i=r;return o=r=void 0,l=e,a=t.apply(i,n)}function h(t){return l=t,c=setTimeout(v,e),u?p(t):a}function m(t){var n=t-s;return void 0===s||n>=e||n<0||f&&t-l>=i}function v(){var t=Date.now();if(m(t))return b(t);c=setTimeout(v,function(t){var n=t-l,o=e-(t-s);return f?Math.min(o,i-n):o}(t))}function b(t){return c=void 0,d&&o?p(t):(o=r=void 0,a)}function g(){var t=Date.now(),n=m(t);if(o=arguments,r=this,s=t,n){if(void 0===c)return h(s);if(f)return c=setTimeout(v,e),p(s)}return void 0===c&&(c=setTimeout(v,e)),a}return e=Number(e)||0,this.isObject(n)&&(u=!!n.leading,i=(f="maxWait"in n)?Math.max(Number(n.maxWait)||0,e):i,d="trailing"in n?!!n.trailing:d),g.cancel=function(){void 0!==c&&clearTimeout(c),l=0,o=s=r=c=void 0},g.flush=function(){return void 0===c?a:b(Date.now())},g})),"allImagesLoaded",(function(t,e){var n=0,o=t.find("img").length;0!==o?t.find("img").on("load",(function(t){++n==o&&e()})):e()})),"observeElementInView",(function(t,e){var n=new IntersectionObserver(e,{root:null,rootMargin:"0px",threshold:.5});$(t).each((function(t,e){n.observe(e)}))})),"loadRemoteIncludes",(function(t){return new Promise((function(e){if(!t)return e("");var n=$(t),o=n.find(".js-remote-include");if(!o.length)return e(n.html());o.each((function(t,r){var i=$(r),a=i.data("url");$.get(a,(function(r){if(i.replaceWith(r),t===o.length-1)return e(n.html())}))}))}))}));t.exports=s},157:function(t,e,n){"use strict";var o=n(158);$(document).ready((function(){o(n(159))}))},158:function(t,e,n){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"function"==typeof t?t():"object"===o(t)&&Object.keys(t).forEach((function(n){"function"!=typeof t[n]||e.includes(n)||t[n]()}))}},159:function(t,e,n){"use strict";var o=n(160),r=n(1),i="show",a="popover-shown",c={$html:$("html"),$articleModal:$(".js-maincontent .js-popover-article"),$pageHeader:$("header.header"),$contactLinkWhatsapp:$("#collapseWhatsapp").find("a.btn"),$contactLinkEmail:$("#collapseEmail").find("a.btn")};c=o.methods.extendCache(c);var s=null,l=null;function u(t){if(t){var e=setTimeout((function(){c.$body.spinner().start()}),500);$.ajax({url:t,method:"GET",success:function(t){var e;e=t,c.$articleModal.find(".popover__body").html(e),c.$articleModal.addClass(i),c.$html.addClass(a),r.disableScroll()},complete:function(){c.$body.spinner().stop(),clearTimeout(e)}})}}o.eventArticleLoad=function(){c.$body.on("click","[data-article-url]",(function(){u($(this).data("articleUrl"))}))},o.initContactLinksData=function(){s=c.$contactLinkWhatsapp.hasClass("disabled")?null:c.$contactLinkWhatsapp.attr("href"),l=c.$contactLinkEmail.hasClass("disabled")?null:c.$contactLinkEmail.attr("href")},o.eventArticleFeedback=function(){c.$body.on("click","[data-is-helpful]",(function(){var t=$(this),e=t.data("isHelpful"),n=t.closest(".btn-group"),o=t.closest(".component-feedback");n.fadeOut("fast",(function(){e?o.find(".js-text-feedback-thanks").fadeIn("fast"):(o.find(".js-text-feedback-sorry").fadeIn("fast"),s?o.find(".js-btn-contact-whatsapp").attr("href",s).closest(".
1js-btn-contact-container").fadeIn("fast"):l&&o.find(".js-btn-contact-email").attr("href",l).closest(".js-btn-contact-container").fadeIn("fast"))}))}))},o.eventSearchNavAnchor=function(){c.$body.on("click",".search-navbar .nav-link:not(.js-redirect-link)",(function(e){e.preventDefault();var n=$(this).attr("href"),o=$(n).offset().top||0,r=document.querySelector(".js-header-wrapper"),i=c.$window.scrollTop(),a=r?r.offsetHeight:0,s=o-((o>i&&o-i>a?0:a)+c.$searchNavbar.outerHeight());t.exports.isScrolling=!0,$("html, body").animate({scrollTop:s},500,(function(){t.exports.isScrolling=!1}))}))},c.$window.on("scroll",(function(){var t=document.querySelector(".js-search-navbar");if(t){var e=document.querySelector(".js-header-wrapper"),n=!e.classList.contains("header-hidden")?e.offsetHeight:0;t.style.top="".concat(n,"px")}})),c.$body.on("mouseup",".collection-list",(function(){$(this).removeClass("grabbing")})),c.$body.on("mousedown",".collection-list",(function(){$(this).addClass("grabbing")})),t.exports=o},160:function(t,e,n){"use strict";var o={$window:$(window),$document:$(document),$body:$("body"),$pageHeader:$("header.header"),$searchNavbar:$(".js-maincontent .js-search-navbar"),$searchInput:$(".js-maincontent .js-search-input"),$searchSuggestions:$(".js-maincontent .js-search-suggestions"),$componentNavbar:$(".js-maincontent .js-component-navbar"),$articleModal:$(".js-maincontent .js-article-modal"),$commentInput:$(".js-maincontent .js-comment-input"),$contactLinkWhatsapp:$("#collapseWhatsapp").find("a.btn"),$contactLinkEmail:$("#collapseEmail").find("a.btn")},r="scrollspy"in o.$body,i=null,a=null;function c(){o.$searchSuggestions.fadeOut("fast",(function(){$(this).empty(),o.$body.trigger("search:suggestions:hide")}))}function s(){var t=o.$searchInput.val().trim(),e=t.length;if(!e||e<3)c();else{var n=o.$searchSuggestions.data("url"),r=o.$searchSuggestions.find(".search-suggestions-content"),i=setTimeout((function(){r.spinner().start()}),500);$.ajax({url:n+encodeURIComponent(t),method:"GET",success:function(t){var e;e=t,o.$body.trigger("search:suggestions:show"),o.$searchSuggestions.html(e).fadeIn("fast")},error:function(){c()},complete:function(){r.spinner().stop(),clearTimeout(i)}})}}function l(t){if(t){var e=setTimeout((function(){o.$body.spinner().start()}),500);$.ajax({url:t,method:"GET",success:function(t){var e;e=t,o.$articleModal.find(".modal-content").html(e),o.$articleModal.modal("show"),o.$body.trigger("suggestion:item:slide",e)},complete:function(){o.$body.spinner().stop(),clearTimeout(e)}})}}function u(){this.style.height="auto",this.scrollHeight&&(this.style.height=this.scrollHeight+"px")}t.exports={isScrolling:!1,methods:{extendCache:function(t){return t&&Object.assign(o,o,t),o},getPageOffset:function(){return o.$pageHeader.height()+o.$searchNavbar.outerHeight()},scrollToActiveItem:function(e,n){if(e&&n&&0!==e.length&&0!==n.length){var o=n.position().left,r=e.scrollLeft()+o-e.outerWidth()/2+n.outerWidth()/2;t.exports.isScrolling=!0,e.animate({scrollLeft:r},400),setTimeout((function(){t.exports.isScrolling=!1}),400)}},scrollToItem:function(){var e=o.$searchNavbar.find(".navbar-nav"),n=e.find(".nav-link.active");t.exports.methods.scrollToActiveItem(e,n)}},initMainNav:function(){var e=o.$componentNavbar.find(".navbar-nav"),n=o.$componentNavbar.find(".nav-link.active").closest(".nav-item"),r="rtl"===$("html").attr("dir");if(!n.length){var i=r?-30:30;return e.animate({scrollLeft:i},400),void setTimeout((function(){e.animate({scrollLeft:0},200)}),1e3)}t.exports.methods.scrollToActiveItem(e,n)},initContactLinksData:function(){i=o.$contactLinkWhatsapp.attr("href"),a=o.$contactLinkEmail.attr("href")},initSearchNavbarPosition:function(){o.$document.on("scroll",(function(){o.$searchNavbar.css("top",o.$pageHeader.height())}))},initClipboardCopy:function(){o.$body.on("click","[data-clipboard-copy]",(function(t){t.preventDefault();var e=$(this),n=e.closest(".js-clipboard-toolip-target"),o=n.length?n:e,r=e.data("clipboard-copy"),i=window.RA_RESOURCE["label.clipboard.confirmation"]||"Copied";navigator.clipboard.writeText(r),o.addClass("position-relative"),$('<span class="d-none position-absolute confirmation-clipboard">'+i+"</span>").appendTo(o).fadeIn("fast",(function(){var t=$(this);t.removeClass("d-none").delay(3e3).fadeOut((function(){t.remove()}))}))}))},eventPageScrollSpy:function(){r&&(o.$body.scrollspy({target:o.$searchNavbar,offset:t.exports.methods.getPageOffset()}),o.$window.on("activate.bs.scrollspy",(function(){t.exports.isScrolling||t.exports.methods.scrollToItem()})))},eventSearchNavAnchor:function(){o.$body.on("click",".search-navbar .nav-link:not(.js-redirect-link)",(function(e){e.preventDefault();var n=$(this).attr("href"),o=($(n).offset().top||0)-t.exports.methods.getPageOffset();t.exports.isScrolling=!0,$("html, body").animate({scrollTop:o},500,(function(){t.exports.isScrolling=!1}))}))},eventSearch:function(){var t,e,n;o.$searchInput.on("input",(t=s,e=500,n=null,function(){var o=arguments;window.clearTimeout(n),n=window.setTimeout((function(){t.apply(null,o)}),e)})),o.$body.on("click",".search-clear button",(function(){o.$searchInput.val(""),c()}))},eventFormTextAreaResize:function(){o.$commentInput.on("input",u).each(u)},eventArticleLoad:function(){o.$body.on("click","[data-article-url]",(function(){l($(this).data("articleUrl"))}))},eventArticleFeedback:function(){o.$body.on("click","[data-is-helpful]",(function(){var t=$(this),e=t.data("isHelpful"),n=t.closest(".btn-group"),o=t.closest(".component-feedback");n.fadeOut("fast",(function(){e?o.find(".js-text-feedback-thanks").fadeIn("fast"):(o.find(".js-text-feedback-sorry").fadeIn("fast"),i?o.find(".js-btn-contact-whatsapp").attr("href",i).closest(".
1js-btn-contact-container").fadeIn("fast"):a&&o.find(".js-btn-contact-email").attr("href",a).closest(".js-btn-contact-container").fadeIn("fast"))}))}))}}}});

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.