(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1732],{59435:function(e){var n=1e3,a=60*n,t=60*a,_=24*t,p=365.25*_;function s(e,n,a){if(!(e0)return function(e){if((e=String(e)).length>100)return;var s=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*p;case"days":case"day":case"d":return c*_;case"hours":case"hour":case"hrs":case"hr":case"h":return c*t;case"minutes":case"minute":case"mins":case"min":case"m":return c*a;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===o&&!1===isNaN(e))return c.long?s(i=e,_,"day")||s(i,t,"hour")||s(i,a,"minute")||s(i,n,"second")||i+" ms":function(e){if(e>=_)return Math.round(e/_)+"d";if(e>=t)return Math.round(e/t)+"h";if(e>=a)return Math.round(e/a)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},11227:function(e,n,a){var t=a(34155);function _(){var e;try{e=n.storage.debug}catch(a){}return!e&&"undefined"!==typeof t&&"env"in t&&(e={npm_package_devDependencies_ts_node:"^10.9.1",npm_package_dependencies_react_dropzone:"^10.2.1",npm_package_dependencies_babel_jest:"29.1.0",npm_package_dependencies__reduxjs_toolkit:"^1.5.1",npm_package_dependencies__mantine_rte:"^4.1.4",npm_package_devDependencies_eslint_plugin_storybook:"^0.5.3",npm_package_dependencies_react_spinners:"^0.8.0",npm_package_dependencies__babel_preset_typescript:"^7.13.0",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"grpc",npm_package_devDependencies__types_testing_library__react:"^10.2.0",npm_package_dependencies_xml2js:"^0.4.23",npm_package_dependencies_ts_jest:"29.0.2",npm_package_dependencies_react_toastify:"^5.4.1",npm_package_dependencies_react_progressive_image:"^0.6.0",npm_package_dependencies_react_infinite_scroller:"^1.2.4",npm_package_dependencies_react_dnd_html5_backend:"^10.0.2",npm_package_dependencies_node_sass:"^5",npm_package_dependencies__types_testing_library__jest_dom:"5.14.5",npm_config_version_commit_hooks:"true",npm_config_user_agent:"yarn/1.22.19 npm/? node/v14.21.3 linux arm64",NODE_VERSION:"14.21.3",npm_package_devDependencies__sentry_webpack_plugin:"^1.13.0",npm_package_dependencies_shortid:"^2.2.15",npm_package_dependencies_react_anchorme:"^2.1.0",npm_package_dependencies_postcss_import:"^14.0.2",npm_package_scripts_lint_staged:"lint-staged",npm_config_bin_links:"true",YARN_VERSION:"1.22.19",npm_node_execpath:"/usr/local/bin/node",npm_package_dependencies__sentry_integrations:"^5.21.3",npm_package_dependencies__babel_core:"^7.13.16",npm_config_init_version:"1.0.0",SHLVL:"4",npm_package_devDependencies_url_loader:"^4.1.0",npm_package_devDependencies__storybook_addon_links:"^6.4.0",npm_package_dependencies_react_hook_form:"^4.5.5",npm_package_dependencies_anchorme:"^2.1.2",HOME:"/root",npm_package_devDependencies__typescript_eslint_parser:"^4.24.0",npm_package_devDependencies__next_bundle_analyzer:"^9.1.6",npm_package_dependencies_url:"^0.11.0",npm_package_dependencies_lodash_isempty:"^4.4.0",npm_package_dependencies__types_mixpanel_browser:"^2.35.7",npm_package_dependencies__types_classnames:"^2.3.1",npm_package_scripts_test_w:"jest --watch",npm_package_devDependencies_eslint_config_prettier:"^8.3.0",npm_package_dependencies_react_id_swiper:"^4.0.0",npm_package_scripts_check_typescript:"tsc --project tsconfig.json --pretty --noEmit",npm_package_devDependencies_audit_ci:"^2.4.0",npm_package_dependencies_react_scroll:"^1.8.2",npm_package_dependencies_js_to_scss:"^1.0.0",npm_package_dependencies_axios_mock_adapter:"^1.20.0",npm_package_dependencies__n8tb1t_use_scroll_position:"^2.0.3",npm_package_dependencies__babel_cli:"^7.14.3",npm_config_init_license:"MIT",YARN_WRAP_OUTPUT:"false",npm_package_devDependencies__storybook_addon_postcss:"^2.0.0",npm_package_dependencies_ua_parser_js:"^0.7.28",npm_package_dependencies_slugify:"^1.4.2",npm_package_dependencies_react_stickynode:"^3.0.3",npm_package_dependencies_react_image_crop:"^8.5.0",npm_package_dependencies__fullhuman_postcss_purgecss:"^4.0.3",npm_package_scripts_tailwind:"tailwindcss build src/styles/tailwind.css | postcss > src/styles/dist.tailwind.css",npm_config_version_tag_prefix:"v",npm_package_dependencies_react_virtualized:"^9.21.2",npm_package_dependencies_phone:"^3.1.28",npm_package_dependencies__types_styled_components:"^5.1.9",npm_package_devDependencies_husky:"^7.0.4",npm_package_devDependencies_eslint_plugin_react_hooks:"^4.2.0",npm_package_dependencies_moment:"^2.26.0",npm_package_dependencies_dotenv:"^8.2.0",npm_package_description:"Linquip NextJS client",npm_package_devDependencies_typescript:"^4.2.4",npm_package_devDependencies_babel_loader:"^8.2.2",npm_package_dependencies_react_transition_group:"^4.4.1",npm_package_dependencies_antd:"^4.5.1",OTEL_TRACE_PARENT:"00-319232f91576e6e037d4d26a462aeec5-9ba11ab311ddd400-01",npm_package_readmeFilename:"README.md",npm_package_devDependencies_postcss_cli:"^8.3.1",npm_package_devDependencies_eslint_plugin_tailwind:"^0.2.1",npm_package_dependencies_styled_jsx_plugin_postcss:"^4.0.1",npm_package_dependencies_mobile_detect:"^1.4.5",npm_package_dependencies_jwt_decode:"^3.1.2",npm_package_dependencies_jest_environment_jsdom:"29.1.1",npm_package_dependencies__types_tti_polyfill:"^0.2.1",npm_package_dependencies__types_react:"^17.0.18",npm_package_dependencies__testing_library_react:"^12.1.2",npm_package_devDependencies_prettier:"^2.3.0",npm_package_dependencies_react_vimeo:"^2.0.0",npm_package_dependencies_react_dnd:"^10.0.2",npm_package_dependencies_lint_staged:"^13.0.2",npm_package_scripts_dev:"NODE_ENV=development node builder/prebuild-jobs/index.js && next dev",npm_package_sideEffects_0:"./pages/*",npm_package_devDependencies_eslint_plugin_import:"^2.23.2",npm_package_dependencies_request_ip:"^2.1.3",npm_package_dependencies_react_popper:"^1.3.7",npm_package_dependencies_react_datepicker:"^2.13.0",npm_package_sideEffects_1:"./styles/*",npm_package_dependencies_sass_loader:"^10.1.1",npm_package_dependencies_redux_resource:"^3.1.1",npm_package_dependencies_query_string:"^6.9.0",npm_package_dependencies_lodash_flatten:"^4.4.0",npm_package_dependencies_less_plugin_npm_import:"^2.1.0",npm_package_dependencies__mantine_core:"^4.1.4",npm_package_sideEffects_2:"./public/*",npm_package_private:"true",npm_package_devDependencies__typescript_eslint_eslint_plugin:"^4.24.0",npm_package_dependencies_react_youtube:"^7.11.2",npm_package_dependencies_newrelic:"6.4.2",npm_package_dependencies_babel_plugin_styled_components:"^1.13.2",npm_package_scripts_prepare:"husky install",npm_package_scripts_less:"lessc --npm-import='prefix=~' --modify-var='@primary-color=#1c9eb2' --js -x --source-map ./src/styles/antd/antd.less ./src/styles/antd/antd.css",npm_package_sideEffects_3:"./api/*",npm_config_registry:"https://registry.yarnpkg.com",npm_package_devDependencies__storybook_addon_actions:"^6.4.0",npm_package_dependencies_react_focus_on:"^3.3.0",npm_package_dependencies_postcss_nested:"^5.0.5",npm_package_sideEffects_4:"./apis/*",npm_package_devDependencies__storybook_addon_measure:"^6.4.9",npm_package_dependencies__sentry_browser:"^5.21.4",npm_package_scripts_check_eslint:"eslint src/** --no-error-on-unmatched-pattern --quiet",npm_package_scripts_start:"NODE_ENV=production && node server.js ",npm_package_sideEffects_5:"./api-java/*",npm_config_ignore_scripts:"",npm_config_version:"1.22.19",npm_package_dependencies_storybook_addon_next_router:"^3.1.1",npm_package_dependencies_dotenv_webpack:"^1.7.0",npm_package_dependencies_axios:"^0.21.1",npm_package_dependencies__sentry_node:"6.11.0",npm_package_sideEffects_6:"**/*.css",PATH:"/tmp/yarn--1709543827459-0.6803316397644528:/app/node_modules/.bin:/usr/local/share/.config/yarn/link/node_modules/.bin:/usr/local/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/bin/node_modules/npm/bin/node-gyp-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",NODE:"/usr/local/bin/node",NEXT_TELEMETRY_DISABLED:"1",npm_package_devDependencies_typescript_eslint:"^0.0.1-alpha.0",npm_package_dependencies_swiper:"^5.3.7",npm_package_dependencies_react_ga:"^2.7.0",npm_package_dependencies__babel_plugin_proposal_optional_chaining:"^7.7.5",npm_package_sideEffects_7:"**/*.scss",npm_package_name:"next-linquip",npm_package_lint_staged____ts_js_jsx_tsx_:"eslint --cache --fix",npm_package_devDependencies_eslint_plugin_jsx_a11y:"^6.4.1",npm_package_dependencies_react_redux:"^7.2.1",npm_package_dependencies_react_country_flag:"^3.0.2",npm_package_dependencies_lodash_isequal:"^4.5.0",npm_package_dependencies__types_react_scroll:"^1.8.2",npm_package_dependencies__paypal_react_paypal_js:"^7.8.1",npm_package_dependencies__mantine_hooks:"^4.1.4",npm_package_scripts_audit_ci:"audit-ci --moderate",npm_package_sideEffects_8:"**/*.json",npm_package_devDependencies_supervisor:"^0.12.0",npm_package_devDependencies_eslint_config_airbnb:"^18.0.1",npm_package_dependencies_redux_resource_plugins:"^4.0.0",npm_package_dependencies_react_content_loader:"^6.0.1",npm_package_dependencies__types_react_stickynode:"^3.0.1",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"unix:///dev/otel-grpc.sock",TRACEPARENT:"00-319232f91576e6e037d4d26a462aeec5-9ba11ab311ddd400-01",npm_package_devDependencies_eslint:"^7.26.0",npm_package_dependencies_redux:"^4.0.5",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies_react_compound_slider:"^2.4.0",npm_package_dependencies__auth0_nextjs_auth0:"0.15.0",npm_lifecycle_script:"NODE_ENV=production node builder/prebuild-jobs/index.js && next build",npm_package_dependencies__types_node:"^16.6.1",npm_package_dependencies_next_redux_wrapper:"7.0.2",npm_package_dependencies__types_react_transition_group:"^4.4.1",npm_package_dependencies__svgr_webpack:"^4.3.3",npm_package_scripts_test:"jest",npm_config_version_git_message:"v%s",npm_lifecycle_event:"build",npm_package_devDependencies_eslint_plugin_unused_imports:"^2.0.0",npm_package_dependencies_slick_carousel:"^1.8.1",npm_package_dependencies_jest:"29.1.1",npm_package_dependencies__testing_library_jest_dom:"5.16.5",npm_package_version:"0.1.0",npm_config_argv:'{"remain":[],"cooked":["run","build"],"original":["build"]}',npm_package_dependencies_uuid:"^3.3.2",npm_package_dependencies_unstated_next:"^1.1.0",npm_package_dependencies_less:"^3.12.2",npm_package_dependencies_cookie:"^0.4.1",npm_package_scripts_build:"NODE_ENV=production node builder/prebuild-jobs/index.js && next build",npm_package_dependencies_postcss_preset_env:"^6.7.0",npm_package_dependencies_next_seo:"^4.4.0",npm_package_dependencies__types_request_ip:"^0.0.37",npm_package_scripts_type_generate:"orval --config ./builder/orval/orval.config.ts && eslint src/types/models/backend/** --fix",npm_config_version_git_tag:"true",npm_config_version_git_sign:"",npm_package_devDependencies_eslint_plugin_react:"^7.23.2",npm_package_dependencies_mixpanel_browser:"^2.41.0",npm_package_dependencies_jest_canvas_mock:"2.4.0",npm_package_dependencies_classnames:"^2.2.6",npm_config_strict_ssl:"true",npm_package_devDependencies_eslint_plugin_prettier:"^3.4.0",npm_package_dependencies_react_select:"^3.0.8",npm_package_dependencies__testing_library_react_hooks:"^8.0.1",PWD:"/app",npm_execpath:"/opt/yarn-v1.22.19/bin/yarn.js",npm_package_dependencies_cssnano:"^4.1.10",npm_package_devDependencies_postcss:"^8.3.0",npm_package_dependencies_use_breakpoint:"^1.1.0",npm_package_dependencies_styled_components:"^5.0.1",npm_package_dependencies_lottie_web:"^5.7.8",npm_package_dependencies_date_fns:"^2.10.0",npm_package_dependencies_cookie_parser:"1.4.4",npm_package_scripts_build_storybook:"build-storybook",npm_config_save_prefix:"^",npm_config_ignore_optional:"",npm_package_devDependencies_babel_eslint:"^10.0.3",npm_package_devDependencies__storybook_addon_essentials:"^6.4.0",npm_package_dependencies_next:"12",npm_package_dependencies_isomorphic_unfetch:"^3.0.0",npm_package_dependencies_auth0_js:"^9.14.3",npm_package_dependencies__types_react_redux:"^7.1.16",npm_package_scripts_storybook:"NODE_ENV=development node builder/prebuild-jobs/index.js && start-storybook -p 6006",OTEL_TRACES_EXPORTER:"otlp",npm_package_devDependencies__storybook_react:"^6.4.0",npm_package_dependencies_tailwindcss:"^1.4.6",npm_package_dependencies_lodash_chunk:"^4.2.0",npm_package_dependencies__optimizely_optimizely_sdk:"^4.0.0",INIT_CWD:"/app",npm_package_dependencies_tti_polyfill:"^0.2.2",npm_package_dependencies_react:"^17.0.2",npm_package_dependencies_morgan:"1.10.0",NODE_ENV:"production",__NEXT_PROCESSED_ENV:"true",NEXT_PUBLIC_AUTH0_DOMAIN:"auth.linquip.com",NEXT_PUBLIC_AUTH0_AUDIENCE:"https://www.linquip.com",NEXT_PUBLIC_AUTH0_CLIENT_ID:"X2ptOOhYHkka0zktaW3LmWYrPXChzi8w",NEXT_PUBLIC_AUTH0_CLIENT_SECRET:"70xH5Rprx7ndc8R-DjnLFlFAfp6c9haoU185l02O67gOGyuuCdZU_R_DROstkbUd",NEXT_PUBLIC_SESSION_COOKIE_SECRET:"aE1OUWcLTmSLn8I79hNJPzjTo5-aE1OUWcLTmSLn8I79hNJPzjTo5-aE1OUWcLTmSLn8I79hNJPzjTo5",NEXT_PUBLIC_SESSION_COOKIE_LIFETIME:"28800",NEXT_PUBLIC_AUTH0_SCOPE:"openid offline_access refresh_token",NEXT_PUBLIC_AUTH0_DB_CONNECTION_NAME:"Username-Password-Authentication",ACCESS_TOKEN_NAME:"lpst",NEXT_PUBLIC_CLIENT_ACCESS_TOKEN_NAME:"lpct",NEXT_PUBLIC_GOOGLE_API_CLIENT_ID:"972634241335-l6un5bu3uerqu57ctrcoa7r5junsc8hb.apps.googleusercontent.com",NEXT_PUBLIC_MIX_PANEL_TOKEN:"3fbfadb7405d5346a68b39b651d2df79",API_BASE_URL:"https://www.linquip.com/api",API_JAVA_BASE_URL:"https://www.linquip.com/api-java",NEXT_PUBLIC_API_BASE:"https://www.linquip.com",API_PREVIEW_LINK_BASE_URL:"https://www.linquip.com/api-previewlink/preview-link-data",API_JAVA_INTERNAL_URL:"http://api-java:6000/api-java",NEXT_PUBLIC_SENTRY_DSN:"https://753ca0e822a345009b3edcd2a111ada6@o406174.ingest.sentry.io/5273116",NEXT_PUBLIC_SENTRY_ACTIVATION_STATE:"1",OPTIMIZELY_KEY:"M75HFrXuCvEhaUgnuQNBfM",NEXT_PUBLIC_INTERCOM_ID:"hsn0gxc7",INTERCOME_ACTIVATION_STATE:"1",BASE_URL:"https://www.linquip.com",BUNDLE_ANALYZE:"0",MORGAN_ACTIVATION_STATE:"1",NEWRELIC_ACTIVATION_STATE:"1",NEXT_PUBLIC_GTAG_ID:"GTM-MGQRZR8",NEXT_PUBLIC_GA4_TRACKING_ID:"G-Y4G32122QJ",NEW_RELIC_APP_NAME:"node-13-agent-prod",NEW_RELIC_LICENSE_KEY:"9f66af118ffc4b2f0af8c52f3242faf0366eNRAL",NEW_RELIC_LOG_LEVEL:"info",NEW_RELIC_ALLOW_ALL_HEADERS:"true",NEW_RELIC_ATTRIBUTES_EXCLUDE:"['request.headers.cookie', 'request.headers.authorization', 'request.headers.proxyAuthorization', 'request.headers.setCookie*', 'request.headers.x*', 'response.headers.cookie', 'response.headers.authorization', 'response.headers.proxyAuthorization', 'response.headers.setCookie*', 'response.headers.x*']",NEW_RELIC_NO_CONFIG_FILE:"true",NEW_RELIC_LOG:"stdout",NEXT_PUBLIC_IMAGE_BUCKET_EXPERT:"/images/d32b61kfc4b97l",NEXT_PUBLIC_IMAGE_BUCKET_EQUIPMENT:"/images/d3lzcewo3lg78r",NEXT_PUBLIC_IMAGE_BUCKET_EQUIPMENT_V2:"/images/d3u5xvf9xu1e9a",NEXT_PUBLIC_IMAGE_BUCKET_COMPANY:"/images/dpipoguktxq31",NEXT_PUBLIC_IMAGE_BUCKET_POST:"/images/d12ej0gs7o2n5w",NEXT_PUBLIC_IMAGE_BUCKET_PROFILE:"/images/d32b61kfc4b97l",NEXT_PUBLIC_IMAGE_BUCKET_CATEGORY:"/images/d1s4pqn53m1h9s",NEXT_PUBLIC_STANDARD_PAYMENT_FORM_ACTION:"https://Simplecheckout.authorize.net/payment/CatalogPayment.aspx",NEXT_PUBLIC_PREMIUM_PAYMENT_FORM_ACTION:"https://Simplecheckout.authorize.net/payment/CatalogPayment.aspx",NEXT_PUBLIC_STANDARD_PAYMENT_FORM_INPUT_VALUE:"cd90723f-7918-4123-944e-0d3941dd17c6",NEXT_PUBLIC_PREMIUM_PAYMENT_FORM_INPUT_VALUE:"c6b12790-d804-4924-bc8b-b281da50acb6",NEXT_PUBLIC_STANDARD_PAYMENT_FORM_INPUT_SRC:"//content.authorize.net/images/buy-now-gold.gif",NEXT_PUBLIC_PREMIUM_PAYMENT_FORM_INPUT_SRC:"//content.authorize.net/images/buy-now-gold.gif",NEXT_PUBLIC_STANDARD_POST_FORM_ACTION:"https://Simplecheckout.authorize.net/payment/CatalogPayment.aspx",NEXT_PUBLIC_PREMIUM_POST_FORM_ACTION:"https://Simplecheckout.authorize.net/payment/CatalogPayment.aspx",NEXT_PUBLIC_STANDARD_POST_INPUT_VALUE:"27873173-4da8-4ed5-8b40-ef03dad80f55",NEXT_PUBLIC_PREMIUM_POST_INPUT_VALUE:"671248fa-a79e-4234-bd39-0f663449c07b",NEXT_PUBLIC_STANDARD_POST_INPUT_SRC:"//content.authorize.net/images/buy-now-gold.gif",NEXT_PUBLIC_PREMIUM_POST_INPUT_SRC:"//content.authorize.net/images/buy-now-gold.gif",NEXT_PUBLIC_AUTHORIZE_SIMPLE_CHECKOUT_URL:"https://Simplecheckout.authorize.net/payment/CatalogPayment.aspx",NEXT_PUBLIC_AUTHORIZE_PID_PREMIUM_COMPANY_STANDARD:"d7469fc0-caf2-4cfe-a110-559b84f81317",NEXT_PUBLIC_AUTHORIZE_PID_PREMIUM_COMPANY_GROWTH:"cb0d0ddd-4b4f-4ffc-8110-bd5d9204034e",NEXT_PUBLIC_AUTHORIZE_PID_PREMIUM_COMPANY_PREMIUM:"acb62c54-807a-4b03-971e-3720e25c46ac",NEXT_PUBLIC_FONT_ICON_URL:"https://d1oihcihpfamzl.cloudfront.net/d5e558ba/style.css",NEXT_PUBLIC_PAYPAL_CLIENT_ID:"AcK3hpKWV66lLIAXVrsVW-UwkJn5mkN8Z8zDAsX_GsrbvOUfCXdlPVIzuBwSzqIFjIgY5sLsUhlwg295",NEXT_IS_SERVER:"false"}.DEBUG),e}(n=e.exports=a(11658)).log=function(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},n.formatArgs=function(e){var a=this.useColors;if(e[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+e[0]+(a?"%c ":" ")+"+"+n.humanize(this.diff),!a)return;var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var _=0,p=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(_++,"%c"===e&&(p=_))})),e.splice(p,0,t)},n.save=function(e){try{null==e?n.storage.removeItem("debug"):n.storage.debug=e}catch(a){}},n.load=_,n.useColors=function(){if("undefined"!==typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(e){try{return JSON.stringify(e)}catch(n){return"[UnexpectedJSONParseError]: "+n.message}},n.enable(_())},11658:function(e,n,a){var t;function _(e){function a(){if(a.enabled){var e=a,_=+new Date,p=_-(t||_);e.diff=p,e.prev=t,e.curr=_,t=_;for(var s=new Array(arguments.length),c=0;c0&&void 0!==arguments[0]?arguments[0]:"";return e.charAt(0).toUpperCase()+e.substring(1)}function y(e,n){return n["on"+E(e)]||function(){}}function h(e,n,a,t){try{a.contentWindow.postMessage({method:e,value:n},t)}catch(_){return _}return null}var b=function(e){function n(){var e,a,t;u(this,n);for(var _=arguments.length,c=Array(_),o=0;o<_;o++)c[o]=arguments[o];return a=t=m(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(c))),t.state={imageLoaded:!1,playerOrigin:"*",showingVideo:t.props.autoplay,thumb:null},t.addMessageListener=function(){var e;("undefined"!==typeof window?(e=window).addEventListener.bind(e):f)("message",t.onMessage)},t.onError=function(e){throw t.props.onError&&t.props.onError(e),e},t.onMessage=function(e){var n=e.origin,a=e.data,_=t.props.onReady,p=t.state.playerOrigin;if("*"===p&&t.setState({playerOrigin:n}),!/^https?:\/\/player.vimeo.com/.test(n))return!1;if("string"===typeof a)try{a=JSON.parse(a)}catch(s){g("error parsing message",s),a={event:""}}if("ready"===a.event)return g("player ready"),t.onReady(t._player,"*"===p?n:p),_(a);a.event&&(g("firing event: ",a.event),y(a.event,t.props)(a))},t.onReady=function(e,n){Object.keys(k).forEach((function(a){var _=h("addEventListener",a.toLowerCase(),e,n);_&&t.onError(_)}))},t.playVideo=function(e){e.preventDefault(),t.setState({showingVideo:!0})},t.getIframeUrl=function(){return"//player.vimeo.com/video/"+t.props.videoId+"?"+t.getIframeUrlQuery()},t.getIframeUrlQuery=function(){var e=[];return Object.keys(t.props.playerOptions).forEach((function(n){e.push(n+"="+t.props.playerOptions[n])})),e.join("&")},t.fetchVimeoData=function(){if(!t.state.imageLoaded){var e=t.props.videoId;(0,i.default)("//vimeo.com/api/v2/video/"+e+".json",{prefix:"vimeo"},(function(e,n){e&&(g("jsonp err: ",e.message),t.onError(e)),g("jsonp response",n),t.setState({thumb:n[0].thumbnail_large,imageLoaded:!0})}))}},t.renderImage=function(){if(!t.state.showingVideo&&t.state.imageLoaded){var e={backgroundImage:"url("+t.state.thumb+")",display:t.state.showingVideo?"none":"block",height:"100%",width:"100%"},n=t.props.playButton?(0,p.cloneElement)(t.props.playButton,{onClick:t.playVideo}):s.default.createElement(r.default,{onClick:t.playVideo});return s.default.createElement("div",{className:"vimeo-image",style:e},n)}},t.renderIframe=function(){if(t.state.showingVideo){t.addMessageListener();var e={display:t.state.showingVideo?"block":"none",height:"100%",width:"100%"};return s.default.createElement("div",{className:"vimeo-embed",style:e},s.default.createElement("iframe",{frameBorder:"0",ref:function(e){t._player=e},src:t.getIframeUrl()}))}},t.renderLoading=function(e,n){if(!e)return n||s.default.createElement(d.default,null)},m(t,a)}return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),t(n,[{key:"componentWillReceiveProps",value:function(e){e.videoId!==this.props.videoId&&this.setState({thumb:null,imageLoaded:!1,showingVideo:!1})}},{key:"componentDidMount",value:function(){this.fetchVimeoData()}},{key:"componentDidUpdate",value:function(){this.fetchVimeoData()}},{key:"componentWillUnmount",value:function(){var e;("undefined"!==typeof window?(e=window).removeEventListener.bind(e):f)("message",this.onMessage)}},{key:"render",value:function(){return s.default.createElement("div",{className:this.props.className},this.renderLoading(this.state.imageLoaded,this.props.loading),this.renderImage(),this.renderIframe())}}]),n}(s.default.Component);b.displayName="Vimeo",b.propTypes={autoplay:_.default.bool,className:_.default.string,loading:_.default.element,playButton:_.default.node,playerOptions:_.default.object,videoId:_.default.string.isRequired,onCueChange:_.default.func,onEnded:_.default.func,onError:_.default.func,onLoaded:_.default.func,onPause:_.default.func,onPlay:_.default.func,onProgress:_.default.func,onReady:_.default.func,onSeeked:_.default.func,onTextTrackChanged:_.default.func,onTimeUpdate:_.default.func,onVolumeChange:_.default.func},b.defaultProps=function(){var e=Object.keys(k).concat(["ready"]).reduce((function(e,n){return e["on"+E(n)]=f,e}),{});return e.className="vimeo",e.playerOptions={autoplay:1},e.autoplay=!1,e}(),n.default=b,e.exports=n.default}}]);