PageSourceSearch

http://www.shippop.com/_next/static/chunks/97.ecb763cc1cecc0ee995c.js

js shippop.com collected 2026-10-02 03:37:42 UTC 5,599 bytes, 2 lines download raw bytes

1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[97],{"+kAY":function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=function(){function e(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(o,t,n){return t&&e(o.prototype,t),n&&e(o,n),o}}(),i=t("q1tI"),r=s(i),a=s(t("17x9"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function u(e,o){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||"object"!==typeof o&&"function"!==typeof o?e:o}var d=function(e){function o(){var e,t,n;l(this,o);for(var i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];return t=n=u(this,(e=o.__proto__||Object.getPrototypeOf(o)).call.apply(e,[this].concat(r))),n.state={fbLoaded:!1,shouldShowDialog:void 0},u(n,t)}return function(e,o){if("function"!==typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function, not "+typeof o);e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(e,o):e.__proto__=o)}(o,e),n(o,[{key:"componentDidMount",value:function(){this.setFbAsyncInit(),this.reloadSDKAsynchronously()}},{key:"componentDidUpdate",value:function(e){e.pageId===this.props.pageId&&e.appId===this.props.appId&&e.shouldShowDialog===this.props.shouldShowDialog&&e.htmlRef===this.props.htmlRef&&e.minimized===this.props.minimized&&e.themeColor===this.props.themeColor&&e.loggedInGreeting===this.props.loggedInGreeting&&e.loggedOutGreeting===this.props.loggedOutGreeting&&e.greetingDialogDisplay===this.props.greetingDialogDisplay&&e.greetingDialogDelay===this.props.greetingDialogDelay&&e.autoLogAppEvents===this.props.autoLogAppEvents&&e.xfbml===this.props.xfbml&&e.version===this.props.version&&e.language===this.props.language||(this.setFbAsyncInit(),this.reloadSDKAsynchronously())}},{key:"componentWillUnmount",value:function(){void 0!==window.FB&&window.FB.CustomerChat.hide()}},{key:"setFbAsyncInit",value:function(){var e=this,o=this.props,t=o.appId,n=o.autoLogAppEvents,i=o.xfbml,r=o.version;window.fbAsyncInit=function(){window.FB.init({appId:t,autoLogAppEvents:n,xfbml:i,version:"v"+r}),e.setState({fbLoaded:!0})}}},{key:"loadSDKAsynchronously",value:function(){var e=this.props.language;!function(o,t,n){var i,r=o.getElementsByTagName(t)[0];o.getElementById(n)||((i=o.createElement(t)).id=n,i.src="https://connect.facebook.net/"+e+"/sdk/xfbml.customerchat.js",r.parentNode.insertBefore(i,r))}(document,"script","facebook-jssdk")}},{key:"removeFacebookSDK",value:function(){["facebook-jssdk","fb-root"].forEach((function(e){var o=document.getElementById(e);o&&o.parentNode&&o.parentNode.removeChild(o)})),delete window.FB}},{key:"reloadSDKAsynchronously",value:function(){this.removeFacebookSDK(),this.loadSDKAsynchronously()}},{key:"controlPlugin",value:function(){this.props.shouldShowDialog?window.FB.CustomerChat.showDialog():window.FB.CustomerChat.hideDialog()}},{key:"subscribeEvents",value:function(){var e=this.props,o=e.onCustomerChatDialogShow,t=e.onCustomerChatDialogHide;o&&window.FB.Event.subscribe("customerchat.dialogShow",o),t&&window.FB.Event.subscribe("customerchat.dialogHide",t)}},{key:"createMarkup",value:function(){var e=this.props,o=e.pageId,t=e.htmlRef,n=e.minimized,i=e.themeColor,r=e.loggedInGreeting,a=e.loggedOutGreeting,s=e.greetingDialogDisplay,l=e.greetingDialogDelay;return{__html:'<div\n        class="fb-customerchat"\n        page_id="'+o+'"\n        '+(void 0!==t?'ref="'+t+'"':"")+"\n        "+(void 0!==n?'minimized="'+n+'"':"")+"\n        "+(void 0!==i?'theme_color="'+i+'"':"")+"\n        "+(void 0!==r?'logged_in_greeting="'+r+'"':"")+"\n        "+(void 0!==a?'logged_out_greeting="'+a+'"':"")+"\n        "+(void 0!==s?'greeting_dialog_display="'+s+'"':"")+"\n        "+(void 0!==l?'greeting_dialog_delay="'+l+'"':"")+"\n      ></div>"}}},{key:"render",value:function(){var e=this,o=this.state,t=o.fbLoaded,n=o.shouldShowDialog;return t&&n!==this.props.shouldShowDialog&&(document.addEventListener("DOMNodeInserted",(function(o){var t=o.target;t.className&&"string"===typeof t.className&&t.className.includes("fb_dialog")&&e.controlPlugin()}),!1),this.subscribeEvents()),r.default.createElement("div",{key:Date(),dangerouslySetInnerHTML:this.createMarkup()})}}]),o}(i.Component);d.propTypes={pageId:a.default.string.isRequired,appId:a.default.string.isRequired,shouldShowDialog:a.default.bool,htmlRef:a.default.string,minimized:a.default.bool,themeColor:a.default.string,loggedInGreeting:a.default.string,loggedOutGreeting:a.default.string,greetingDialogDisplay:a.default.oneOf(["show","hide","fade"]),greetingDialogDelay:a.default.number,autoLogAppEvents:a.default.bool,xfbml:a.default.bool,version:a.default.string,language:a.default.string,onCustomerChatDialogShow:a.default.func,onCustomerChatDialogHide:a.default.func},d.defaultProps={shouldShowDialog:!1,htmlRef:void 0,minimized:void 0,theme
1Color:void 0,loggedInGreeting:void 0,loggedOutGreeting:void 0,greetingDialogDisplay:void 0,greetingDialogDelay:void 0,autoLogAppEvents:!0,xfbml:!0,version:"2.11",language:"en_US",onCustomerChatDialogShow:void 0,onCustomerChatDialogHide:void 0},o.default=d},"5BQM":function(e,o,t){"use strict";var n,i=t("+kAY"),r=(n=i)&&n.__esModule?n:{default:n};e.exports=r.default}}]);
2//# sourceMappingURL=97.ecb763cc1cecc0ee995c.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.