(window.webpackJsonpLIS=window.webpackJsonpLIS||[]).push([[4],{664:function(t,n,r){"use strict";r.r(n),r.d(n,"OutdoorActivePdfDownload",(function(){return l}));var e=r(113);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)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,n,r="function"==typeof Symbol?Symbol:{},e=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function u(r,e,o,i){var u=e&&e.prototype instanceof f?e:f,l=Object.create(u.prototype);return c(l,"_invoke",function(r,e,o){var i,c,u,f=0,l=o||[],p=!1,v={p:0,n:0,v:t,a:s,f:s.bind(t,4),d:function(n,r){return i=n,c=0,u=t,v.n=r,a}};function s(r,e){for(c=r,u=e,n=0;!p&&f&&!o&&n<l.length;n++){var o,i=l[n],s=v.p,d=i[2];r>3?(o=d===e)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=s&&((o=r<2&&s<i[1])?(c=0,v.v=e,v.n=i[1]):s<d&&(o=r<3||i[0]>e||e>d)&&(i[4]=r,i[5]=e,v.n=d,c=0))}if(o||r>1)return a;throw p=!0,e}return function(o,l,d){if(f>1)throw TypeError("Generator is already running");for(p&&1===l&&s(l,d),c=l,u=d;(n=c<2?t:u)||!p;){i||(c?c<3?(c>1&&(v.n=-1),s(c,u)):v.n=u:v.v=u);try{if(f=2,i){if(c||(o="next"),n=i[o]){if(!(n=n.call(i,u)))throw TypeError("iterator result is not an object");if(!n.done)return n;u=n.value,c<2&&(c=0)}else 1===c&&(n=i.return)&&n.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((n=(p=v.n<0)?u:r.call(e,v))!==a)break}catch(n){i=t,c=1,u=n}finally{f=1}}return{value:n,done:p}}}(r,o,i),!0),l}var a={};function f(){}function l(){}function p(){}n=Object.getPrototypeOf;var v=[][e]?n(n([][e]())):(c(n={},e,(function(){return this})),n),s=p.prototype=f.prototype=Object.create(v);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,o,"GeneratorFunction")),t.prototype=Object.create(s),t}return l.prototype=p,c(s,"constructor",p),c(p,"constructor",l),l.displayName="GeneratorFunction",c(p,o,"GeneratorFunction"),c(s),c(s,o,"Generator"),c(s,e,(function(){return this})),c(s,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:u,m:d}})()}function c(t,n,r,e){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(c=function(t,n,r,e){if(n)o?o(t,n,{value:r,enumerable:!e,configurable:!e,writable:!e}):t[n]=r;else{var i=function(n,r){c(t,n,(function(t){return this._invoke(n,r,t)}))};i("next",0),i("throw",1),i("return",2)}})(t,n,r,e)}function u(t,n,r,e,o,i,c){try{var u=t[i](c),a=u.value}catch(t){return void r(t)}u.done?n(a):Promise.resolve(a).then(e,o)}function a(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,f(e.key),e)}}function f(t){var n=function(t,n){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var e=r.call(t,n||"default");if("object"!=o(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==o(n)?n:n+""}var l=function(){return function(t,n,r){return n&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(n,r){var o=this;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.node=n,this.outdoorActiveId=r,this.node.addEventListener("click",(function(t){t.preventDefault(),o.onNodeClick()})),Object(e.c)((function(){o.node.parentNode&&(o.node.parentNode.removeChild(o.node),console.warn("Removing outdoor active PDF download button: Error loading outdooractive sdk"))}))}),[{key:"onNodeClick",value:(t=i().m((function t(){var n,r;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Object(e.b)();case 1:n=t.v,r=document.createElement("div"),n.pdfDialog(this.outdoorActiveId,r),r.click();case 2:return t.a(2)}}),t,this)})),n=function(){var n=this,r=arguments;return new Promise((function(e,o){var i=t.apply(n,r);function c(t){u(i,e,o,c,a,"next",t)}function a(t){u(i,e,o,c,a,"throw",t)}c(void 0)}))},function(){return n.apply(this,arguments)})}]);var t,n}()}}]);