PageSourceSearch

https://volumesdirect.com/cdn/shop/t/2/assets/Account.bundle.js?v=156229856861133244411600193812

js volumesdirect.com collected 2026-10-02 11:12:25 UTC 14,262 bytes, 6 lines download raw bytes

1(window.wpJsonpPaskit=window.wpJsonpPaskit||[]).push([[6],{11:(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return Forms_Forms});var jquery=__webpack_require__(0),jquery_default=__webpack_require__.n(jquery);function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}var Quantity=(function(){function Quantity2(el){_classCallCheck(this,Quantity2),this.$el=$(el),this.$inputParent=this.$el.find(".form-field--qty-input"),this.$input=this.$el.find("[data-quantity-input]"),this.$selectParent=this.$el.find(".form-field--qty-select"),this.$select=this.$el.find("[data-quantity-select]"),this._watchSelect=this._watchSelect.bind(this),this._watchInput=this._watchInput.bind(this),this.$select.on("change.quantity",this._watchSelect),this.$input.on("change.quantity",this._watchInput)}return _createClass(Quantity2,[{key:"unload",value:function(){this.$el.off(".quantity")}},{key:"_validateValue",value:function(event){var baseValue=parseInt(event.currentTarget.value,10);return isNaN(baseValue)?1:baseValue}}
1,{key:"_watchSelect",value:function(event){var value=this._validateValue(event);this.$input.val(value).trigger("change"),value>=10&&(this.$inputParent.removeClass("hidden").addClass("visible"),this.$input.focus().removeAttr("tabindex").select(),this.$selectParent.removeClass("visible").addClass("hidden"),this.$select.attr("tabindex","-1"))}},{key:"_watchInput",value:function(event){this.$input.val(this._validateValue(event))}}]),Quantity2})();function Forms_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function Forms_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function Forms_createClass(Constructor,protoProps,staticProps){return protoProps&&Forms_defineProperties(Constructor.prototype,protoProps),staticProps&&Forms_defineProperties(Constructor,staticProps),Constructor}var Forms_Forms=(function(){function Forms(el){var _this=this,selector=arguments.length>1&&arguments[1]!==void 0?arguments[1]:".form-field-input";Forms_classCallCheck(this,Forms),this.$el=jquery_default()(el),this.filledClass="form-field-filled",this.fieldSelector=selector,this.quantityItems=[],this.$quantityWrapper=this.$el.find("[data-quantity-wrapper]"),this._toggleFilled=this._toggleFilled.bind(this),this.$el.on("focus.forms",this.fieldSelector,this._toggleFilled),this.$el.on("blur.forms",this.fieldSelector,this._toggleFilled),this._checkFilled(),this.$quantityWrapper.length&&this.$quantityWrapper.each(function(i,el2){_this.quantityItems.push(new Quantity(el2))})}return Forms_createClass(Forms,[{key:"unload",value:function(){this.$el.off(".forms"),this.quantityItems.forEach(function(quantityItem){quantityItem.unload()})}},{key:"_checkFilled",value:function(){var _this2=this;this.$el.find(this.fieldSelector).each(function(i,el){jquery_default()(el).hasClass(_this2.filledClass)||_this2._toggleFilled(null,el)})}},{key:"_toggleFilled",value:function(){var event=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,el=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,target=event?event.currentTarget:el,$target=jquery_default()(target),value=target.value,isFilled=value.length>0;try{isFilled=isFilled||$target.is(":-webkit-autofill"),$target.toggleClass(this.filledClass,isFilled)}catch(e){$target.toggleClass(this.filledClass,isFilled)}}}]),Forms})()}),12:(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return transition});/*!
2 * @pixelunion/animations v0.1.0
3 * (c) 2019 Pixel Union
4 * Released under the UNLICENSED license.
5*/function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread2(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};
5i%2?ownKeys(source,!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(source).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function raf(){return new Promise(function(resolve){window.requestAnimationFrame(resolve)})}var Animation=(function(){function Animation2(options){_classCallCheck(this,Animation2),this._el=options.el,this.cancelRunning=null,this._state=options.state||"initial",this.initialState=this._state,this.stateAttribute=options.stateAttribute||"data-animation-state",this.stateChangeAttribute=options.stateChangeAttribute||"data-animation",this.endEvent=options.endEvent||"transitionend",this.hold=!!options.hold,this.onStart=options.onStart||function(){},this.activeEventHandler=null}return _createClass(Animation2,[{key:"isState",value:function(state){return state===this._state}},{key:"animateTo",value:function(state){var _this=this,options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},from=this._el.dataset[this.stateAttribute]||this._state,to=state||this.initialState,force=options.force,hold="hold"in options?options.hold:this.hold;return new Promise(function(resolve){if(_this.cancelRunning&&_this.cancelRunning(),from===to){_this._el.removeAttribute(_this.stateChangeAttribute),resolve(from,null);return}var running=!0;if(_this.cancelRunning=function(){running=!1,resolve(null,null)},_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),_this.activeEventHandler=null,force){_this._el.setAttribute(_this.stateChangeAttribute,"".concat(from,"=>").concat(to)),_this.onStart({el:_this._el,from:from,to:to}),typeof options.onStart=="function"&&options.onStart({el:_this._el,from:from,to:to}),_this._el.setAttribute(_this.stateAttribute,to),_this._state=to,hold||_this._el.removeAttribute(_this.stateChangeAttribute),resolve(to,null);return}raf().then(function(){if(!running)throw new Error("cancelled");return _this._el.setAttribute(_this.stateChangeAttribute,"".concat(from,"=>").concat(to)),_this.onStart({el:_this._el,from:from,to:to}),typeof options.onStart=="function"&&options.onStart({el:_this._el,from:from,to:to}),raf()}).then(function(){if(!running)throw new Error("cancelled");_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),_this.activeEventHandler=function(e){e.target!==_this._el||!running||(_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),hold||_this._el.removeAttribute(_this.stateChangeAttribute),resolve(to,e))},_this._el.addEventListener(_this.endEvent,_this.activeEventHandler),_this._el.setAttribute(_this.stateAttribute,to),_this._state=to}).catch(function(error){if(error.message!=="cancelled")throw error})})}},{key:"unload",value:function(){this._el.removeEventListener(this.endEvent,this.activeEventHandler),this.activeEventHandler=null}},{key:"el",get:function(){return this._el}},{key:"state",get:function(){return this._state}}]),Animation2})(),AnimationsManager=(function(){function AnimationsManager2(){_classCallCheck(this,AnimationsManager2),this.animations=new Map}return _createClass(AnimationsManager2,[{key:"add",value:function(options){if(this.animations.has(options.el))return this.animations.get(options.el);var animation2=new Animation(options);return this.animations.set(options.el,animation2),animation2}},{key:"remove",value:function(animation2){this.animations.delete(animation2.el),animation2.unload()}},{key:"removeAll",value:function(){this.animations.forEach(function(animation2){return animation2.unload()})}}]),AnimationsManager2})();function animation(options){var setOptions={endEvent:"animationend",hold:!0};return new Animation(_objectSpread2({options:options},setOptions))}function transition(options){return new Animation(options)}}),82:(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"default",function(){return Account});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__),_Forms__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(11),_pixelunion_animations__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(12);function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}var Account=(function(){function Account2(){_classCallCheck(this,Account2),this.$accountContents=jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-template-account]"),this.$loginContent=jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-template-account-login]"),this.$addressesContent=jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-template-account-addresses]"),this.$addressButtonFocus=null,this.checkFillAnimation=null,this.checkAnimation=null,this._loginToggle=this._loginToggle.bind(this),this.$loginContent.length&&this._initLoginPage(),this.$addressesContent.length&&(this.defaultAddressCheckbox=this.$addressesContent[0].querySelector(".checkmark"),this.defaultAddressCheck=this.$addressesContent[0].querySelector(".checkmark__check"),this.checkFillAnimation=Object(_pixelunion_animations__WEBPACK_IMPORTED_MODULE_2__.a)({el:this.defaultAddressCheckbox}),this.checkAnimation=Object(_pixelunion_animations__WEBPACK_IMPORTED_MODULE_2__.a)({el:this.defaultAddressCheck}),this._initAddressPage()),this.$accountContents.length&&this._init()}return _createClass(Account2,[{key:"_init",value:function(){new _Forms__WEBPACK_IMPORTED_MODULE_1__.a(this.$accountContents)}},{key:"_initLoginPage",value:function(){this.$loginToggle=this.$loginContent.find("[data-login-toggle]"),this.$login=this.$loginContent.find("[data-account-login-main]"),this.$recovery=this.$loginContent.find("[data-account-login-recovery]"),this.$recoveryHasMessage=this.$recovery.find("[data-recovery-has-message]"),this.$loginToggle.on("click",this._loginToggle),this.$recoveryHasMessage.length&&this._loginToggle(
5)}},{key:"_loginToggle",value:function(){var event=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;event&&event.preventDefault(),this.$login.toggleClass("visible"),this.$recovery.toggleClass("visible")}},{key:"_initAddressPage",value:function(){var _this=this,$customerAddresses=this.$addressesContent.find("[data-address-id]");this.$addressesContent.on("click","[data-edit-address]",function(event){var $target=jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.currentTarget),itemId=$target.attr("data-edit-address");$customerAddresses.removeClass("visible"),_this.$addressButtonFocus=$target,jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-address-id="'.concat(itemId,'"]')).addClass("visible").find(".form-field-input").eq(0).focus()}),this.$addressesContent.on("click","[data-edit-address-cancel]",function(){$customerAddresses.removeClass("visible"),jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-address-id="new"]').addClass("visible"),_this.$addressButtonFocus.focus(),_this.$addressButtonFocus=null}),this.$addressesContent.on("click","[data-delete-address]",function(event){var itemId=jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.target).attr("data-delete-address");Shopify.CustomerAddress.destroy(itemId,"")}),$customerAddresses.each(function(i,el){var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).attr("data-address-id"),countryEl="customer_addr_".concat(id,"_country"),provinceEl="customer_addr_".concat(id,"_province"),options={hideElement:"address_province_container_".concat(id)};new Shopify.CountryProvinceSelector(countryEl,provinceEl,options)}),this.$addressesContent.on("click","#address_default_address_new",function(){var state="checked";_this.defaultAddressCheckbox.dataset.animationState==="checked"&&(state="unchecked"),_this.checkFillAnimation.animateTo(state),_this.checkAnimation.animateTo(state)})}}]),Account2})()})}]);
6//# sourceMappingURL=/cdn/shop/t/2/assets/Account.bundle.js.map?v=156229856861133244411600193812

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.