PageSourceSearch

https://www.shipbob.com/wp-content/themes/shipbob-2022/dist/chunk/4117.5f17ec7ab4e2b1da9439.chunk.js

js shipbob.com collected 2026-09-24 07:14:10 UTC 10,544 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkshipbob_2022=self.webpackChunkshipbob_2022||[]).push([[4117],{63148:function(t,e,i){i.d(e,{D4:function(){return d},RA:function(){return _},f6:function(){return c}}),i(9391);var s=i(61151),n=i(69076),o=i(28631),r=i(34506),h=i(19180),a=i(95357);class l extends r.A{constructor(t,e,i,n){super(),this.extent=t,this.pixelRatio_=i,this.resolution=e,this.state="function"==typeof n?s.A.IDLE:n,this.image_=null,this.loader="function"==typeof n?n:null}changed(){this.dispatchEvent(o.A.CHANGE)}getExtent(){return this.extent}getImage(){return this.image_}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){if(this.state==s.A.IDLE&&this.loader){this.state=s.A.LOADING,this.changed();const t=this.getResolution(),e=Array.isArray(t)?t[0]:t;(0,h.hq)(()=>this.loader(this.getExtent(),e,this.getPixelRatio())).then(t=>{"image"in t&&(this.image_=t.image),"extent"in t&&(this.extent=t.extent),"resolution"in t&&(this.resolution=t.resolution),"pixelRatio"in t&&(this.pixelRatio_=t.pixelRatio),(t instanceof HTMLImageElement||a.XM&&t instanceof ImageBitmap||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement)&&(this.image_=t),this.state=s.A.LOADED}).catch(t=>{this.state=s.A.ERROR,console.error(t)}).finally(()=>this.changed())}}setImage(t){this.image_=t}setResolution(t){this.resolution=t}}function c(t,e,i){const s=t;let r=!0,h=!1,l=!1;const c=[(0,n.Jz)(s,o.A.LOAD,function(){l=!0,h||e()})];return s.src&&a.DT?(h=!0,s.decode().then(function(){r&&e()}).catch(function(t){r&&(l?e():i())})):c.push((0,n.Jz)(s,o.A.ERROR,i)),function(){r=!1,c.forEach(n.JH)}}function _(t,e){return e&&(t.src=e),t.src&&a.DT?new Promise((e,i)=>t.decode().then(()=>e(t)).catch(s=>t.complete&&t.width?e(t):i(s))):function(t){return new Promise((e,i)=>{function s(){o(),e(t)}function n(){o(),i(new Error("Image load error"))}function o(){t.removeEventListener("load",s),t.removeEventListener("error",n)}t.addEventListener("load",s),t.addEventListener("error",n)})}(t)}function d(t,e){return e&&(t.src=e),t.src&&a.DT&&a.XM?t.decode().then(()=>createImageBitmap(t)).catch(e=>{if(t.complete&&t.width)return t;throw e}):_(t)}e.Ay=l},99536:function(t,e,i){var s=i(63148),n=i(61151);class o extends s.Ay{constructor(t,e,i,s,o){super(t,e,i,void 0!==o?n.A.IDLE:n.A.LOADED),this.loader_=void 0!==o?o:null,this.canvas_=s,this.error_=null}getError(){return this.error_}handleLoad_(t){t?(this.error_=t,this.state=n.A.ERROR):this.state=n.A.LOADED,this.changed()}load(){this.state==n.A.IDLE&&(this.state=n.A.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))}getImage(){return this.canvas_}}e.A=o},61151:function(t,e){e.A={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},1e3:function(t,e,i){var s=i(63148),n=i(93745),o=i(40048),r=i(43009),h=i(95357);class a extends n.A{constructor(t,e,i,s,n,o){super(t,e,o),this.crossOrigin_=null==s?void 0:s.crossOrigin,this.referrerPolicy_=null==s?void 0:s.referrerPolicy,this.src_=i,this.key=i,this.image_,h.Wl?this.image_=new OffscreenCanvas(1,1):(this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_),void 0!==this.referrerPolicy_&&(this.image_.referrerPolicy=this.referrerPolicy_)),this.unlisten_=null,this.tileLoadFunction_=n}getImage(){return this.image_}setImage(t){this.image_=t,this.state=o.A.LOADED,this.unlistenImage_(),this.changed()}getCrossOrigin(){return this.crossOrigin_}getReferrerPolicy(){return this.referrerPolicy_}handleImageError_(){this.state=o.A.ERROR,this.unlistenImage_(),this.image_=function(){const t=(0,r.Y)(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}(),this.changed()}handleImageLoad_(){if(h.Wl)this.state=o.A.LOADED;else{const t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=o.A.LOADED:this.state=o.A.EMPTY}this.unlistenImage_(),this.changed()}load(){this.state==o.A.ERROR&&(this.state=o.A.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_),void 0!==this.referrerPolicy_&&(this.image_.referrerPolicy=this.referrerPolicy_)),this.state==o.A.IDLE&&(this.state=o.A.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,s.f6)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}disposeInternal(){this.unlistenImage_(),this.image_=null,super.disposeInternal()}}e.A=a},21146:function(t,e){e.A=class{constructor(t,e,i){this.decay_=t,this.minVelocity_=e,this.delay_=i,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;let i=e-3;for(;i>0&&this.points_[i+2]>t;)i-=3;const s=this.points_[e+2]-this.points_[i+2];if(s<1e3/60)return!1;const n=this.points_[e]-this.points_[i],o=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(o,n),this.initialVelocity_=Math.sqrt(n*n+o*o)/s,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}}
1,24875:function(t,e,i){var s=i(1763);class n extends s.A{constructor(t,e,i,s,n,o){super(t,e,n),this.originalEvent=i,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==s&&s,this.activePointers=o}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(t){this.pixel_=t}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(t){this.coordinate_=t}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}}e.A=n},13631:function(t,e,i){var s=i(24875),n=i(29523),o=i(69076),r=i(28631),h=i(34506),a=i(95357),l=i(97627);class c extends h.A{constructor(t,e){super(t),this.map_=t,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===e?1:e,this.down_=null;const i=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=i,this.pointerdownListenerKey_=(0,o.KT)(i,l.A.POINTERDOWN,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,o.KT)(i,l.A.POINTERMOVE,this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(r.A.TOUCHMOVE,this.boundHandleTouchMove_,!!a.FT&&{passive:!1})}emulateClick_(t){let e=new s.A(n.A.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new s.A(n.A.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(()=>{this.clickTimeoutId_=void 0;const e=new s.A(n.A.SINGLECLICK,this.map_,t);this.dispatchEvent(e)},250)}updateActivePointers_(t){const e=t,i=e.pointerId;if(e.type==n.A.POINTERUP||e.type==n.A.POINTERCANCEL){delete this.trackedTouches_[i];for(const t in this.trackedTouches_)if(this.trackedTouches_[t].target!==e.target){delete this.trackedTouches_[t];break}}else e.type!=n.A.POINTERDOWN&&e.type!=n.A.POINTERMOVE||(this.trackedTouches_[i]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new s.A(n.A.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(o.JH),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return 0===t.button}handlePointerDown_(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);const e=new s.A(n.A.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),0===this.dragListenerKeys_.length){const t=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,o.KT)(t,n.A.POINTERMOVE,this.handlePointerMove_,this),(0,o.KT)(t,n.A.POINTERUP,this.handlePointerUp_,this),(0,o.KT)(this.element_,n.A.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push((0,o.KT)(this.element_.getRootNode(),n.A.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new s.A(n.A.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new s.A(n.A.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"==typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,o.JH)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(r.A.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,o.JH)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(o.JH),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}e.A=c}
1,29523:function(t,e,i){var s=i(28631);e.A={SINGLECLICK:"singleclick",CLICK:s.A.CLICK,DBLCLICK:s.A.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},1763:function(t,e,i){var s=i(47103);class n extends s.Ay{constructor(t,e,i){super(t),this.map=e,this.frameState=void 0!==i?i:null}}e.A=n},34811:function(t,e){e.A={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},61006:function(t,e){e.A={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"}}}]);
2//# sourceMappingURL=4117.5f17ec7ab4e2b1da9439.chunk.js.map

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.