hellosign-embedded
Advanced tools
Comparing version 2.0.0-5 to 2.0.0-6
{ | ||
"name": "hellosign-embedded", | ||
"version": "2.0.0-5", | ||
"version": "2.0.0-6", | ||
"description": "Embed HelloSign signature requests and templates from within your web application.", | ||
"main": "index.js", | ||
"license": "ISC", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "webpack", | ||
"test": "jest src" | ||
"test": "jest src", | ||
"version": "node scripts/version.js" | ||
}, | ||
@@ -24,3 +25,3 @@ "repository": { | ||
"name": "HelloSign", | ||
"email": "api@hellosign.com", | ||
"email": "apisupport@hellosign.com", | ||
"url": "https://hellosign.com" | ||
@@ -31,3 +32,3 @@ }, | ||
}, | ||
"homepage": "https://github.com/hellosign/hellosign-embedded#readme", | ||
"homepage": "https://github.com/hellosign/hellosign-embedded", | ||
"dependencies": { | ||
@@ -41,3 +42,2 @@ "common-tags": "^1.8.0", | ||
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.53", | ||
"@babel/plugin-proposal-export-default-from": "^7.0.0-rc.0", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.53", | ||
@@ -44,0 +44,0 @@ "@babel/plugin-transform-object-assign": "^7.0.0-beta.53", |
@@ -1,1 +0,1 @@ | ||
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.HelloSign=n():e.HelloSign=n()}(window,function(){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(n){return e[n]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=3)}([function(e,n,t){(function(r){function i(){var e;try{e=n.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(n=e.exports=t(12)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},n.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff),!t)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&"%c"===e&&(o=++i)}),e.splice(o,0,r)},n.save=function(e){try{null==e?n.storage.removeItem("debug"):n.storage.debug=e}catch(e){}},n.load=i,n.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;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&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},n.enable(i())}).call(this,t(11))},function(e,n){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,n){function t(){}t.prototype={on:function(e,n,t){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:n,ctx:t}),this},once:function(e,n,t){var r=this;function i(){r.off(e,i),n.apply(t,arguments)}return i._=n,this.on(e,i,t)},emit:function(e){for(var n=[].slice.call(arguments,1),t=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=t.length;r<i;r++)t[r].fn.apply(t[r].ctx,n);return this},off:function(e,n){var t=this.e||(this.e={}),r=t[e],i=[];if(r&&n)for(var o=0,a=r.length;o<a;o++)r[o].fn!==n&&r[o].fn._!==n&&i.push(r[o]);return i.length?t[e]=i:delete t[e],this}},e.exports=t},function(e,n,t){t(4),t(5),t(6),e.exports=t(14)},function(e,n,t){(function(e){!function(e){var n=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),t=function(e){var t={next:function(){var n=e.shift();return{done:void 0===n,value:n}}};return n&&(t[Symbol.iterator]=function(){return t}),t},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},i=function(e){return decodeURIComponent(e).replace(/\+/g," ")};"URLSearchParams"in e&&"a=1"===new URLSearchParams("?a=1").toString()||function(){var o=function(e){if(Object.defineProperty(this,"_entries",{writable:!0,value:{}}),"string"==typeof e)""!==e&&this._fromString(e);else if(e instanceof o){var n=this;e.forEach(function(e,t){n.append(t,e)})}},a=o.prototype;a.append=function(e,n){e in this._entries?this._entries[e].push(n.toString()):this._entries[e]=[n.toString()]},a.delete=function(e){delete this._entries[e]},a.get=function(e){return e in this._entries?this._entries[e][0]:null},a.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},a.has=function(e){return e in this._entries},a.set=function(e,n){this._entries[e]=[n.toString()]},a.forEach=function(e,n){var t;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){t=this._entries[r];for(var i=0;i<t.length;i++)e.call(n,t[i],r,this)}},a.keys=function(){var e=[];return this.forEach(function(n,t){e.push(t)}),t(e)},a.values=function(){var e=[];return this.forEach(function(n){e.push(n)}),t(e)},a.entries=function(){var e=[];return this.forEach(function(n,t){e.push([t,n])}),t(e)},n&&(a[Symbol.iterator]=a.entries),a.toString=function(){var e=[];return this.forEach(function(n,t){e.push(r(t)+"="+r(n))}),e.join("&")},Object.defineProperty(a,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){this._entries={};for(var n,t=(e=e.replace(/^\?/,"")).split("&"),r=0;r<t.length;r++)n=t[r].split("="),this.append(i(n[0]),n.length>1?i(n[1]):"")}}),e.URLSearchParams=o}(),"function"!=typeof URLSearchParams.prototype.sort&&(URLSearchParams.prototype.sort=function(){var e=this,n=[];this.forEach(function(t,r){n.push([r,t]),e._entries||e.delete(r)}),n.sort(function(e,n){return e[0]<n[0]?-1:e[0]>n[0]?1:0}),e._entries&&(e._entries={});for(var t=0;t<n.length;t++)this.append(n[t][0],n[t][1])})}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(e){return!1}}()||function(){var n=e.URL,t=function(n,t){"string"!=typeof n&&(n=String(n));var r,i=document;if(t&&(void 0===e.location||t!==e.location.href)){(r=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=t,i.head.appendChild(r);try{if(0!==r.href.indexOf(t))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+t+" due to "+e)}}var o=i.createElement("a");if(o.href=n,r&&(i.body.appendChild(o),o.href=o.href),":"===o.protocol||!/:/.test(o.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var a=new URLSearchParams(this.search),s=!0,u=!0,c=this;["append","delete","set"].forEach(function(e){var n=a[e];a[e]=function(){n.apply(a,arguments),s&&(u=!1,c.search=a.toString(),u=!0)}}),Object.defineProperty(this,"searchParams",{value:a,enumerable:!0});var l=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==l&&(l=this.search,u&&(s=!1,this.searchParams._fromString(this.search),s=!0))}})},r=t.prototype;["hash","host","hostname","port","protocol"].forEach(function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(n){this._anchorElement[e]=n},enumerable:!0})}(e)}),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],n=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(n?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),t.createObjectURL=function(e){return n.createObjectURL.apply(n,arguments)},t.revokeObjectURL=function(e){return n.revokeObjectURL.apply(n,arguments)},e.URL=t}(),void 0!==e.location&&!("origin"in e.location)){var n=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:n,enumerable:!0})}catch(t){setInterval(function(){e.location.origin=n()},100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}).call(this,t(1))},function(e,n,t){(function(e){!function(e){"use strict";var n=e.URLSearchParams?e.URLSearchParams:null,t=n&&"a=1"===new n({a:1}).toString(),r=n&&"+"===new n("s=%2B").get("s"),i="__URLSearchParams__",o=c.prototype,a=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&t&&r)){o.append=function(e,n){p(this[i],e,n)},o.delete=function(e){delete this[i][e]},o.get=function(e){var n=this[i];return e in n?n[e][0]:null},o.getAll=function(e){var n=this[i];return e in n?n[e].slice(0):[]},o.has=function(e){return e in this[i]},o.set=function(e,n){this[i][e]=[""+n]},o.toString=function(){var e,n,t,r,o=this[i],a=[];for(n in o)for(t=l(n),e=0,r=o[n];e<r.length;e++)a.push(t+"="+l(r[e]));return a.join("&")};var s=!!r&&n&&!t&&e.Proxy;e.URLSearchParams=s?new Proxy(n,{construct:function(e,n){return new e(new c(n[0]).toString())}}):c;var u=e.URLSearchParams.prototype;u.polyfill=!0,u.forEach=u.forEach||function(e,n){var t=h(this.toString());Object.getOwnPropertyNames(t).forEach(function(r){t[r].forEach(function(t){e.call(n,t,r,this)},this)},this)},u.sort=u.sort||function(){var e,n,t,r=h(this.toString()),i=[];for(e in r)i.push(e);for(i.sort(),n=0;n<i.length;n++)this.delete(i[n]);for(n=0;n<i.length;n++){var o=i[n],a=r[o];for(t=0;t<a.length;t++)this.append(o,a[t])}},u.keys=u.keys||function(){var e=[];return this.forEach(function(n,t){e.push(t)}),d(e)},u.values=u.values||function(){var e=[];return this.forEach(function(n){e.push(n)}),d(e)},u.entries=u.entries||function(){var e=[];return this.forEach(function(n,t){e.push([t,n])}),d(e)},a&&(u[e.Symbol.iterator]=u[e.Symbol.iterator]||u.entries)}function c(e){((e=e||"")instanceof URLSearchParams||e instanceof c)&&(e=e.toString()),this[i]=h(e)}function l(e){var n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return n[e]})}function f(e){return decodeURIComponent(e.replace(/\+/g," "))}function d(n){var t={next:function(){var e=n.shift();return{done:void 0===e,value:e}}};return a&&(t[e.Symbol.iterator]=function(){return t}),t}function h(e){var n={};if("object"==typeof e)for(var t in e)e.hasOwnProperty(t)&&p(n,t,e[t]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var r=e.split("&"),i=0;i<r.length;i++){var o=r[i],a=o.indexOf("=");-1<a?p(n,f(o.slice(0,a)),f(o.slice(a+1))):o&&p(n,f(o),"")}}return n}function p(e,n,t){var r="string"==typeof t?t:null!==t&&void 0!==t&&"function"==typeof t.toString?t.toString():JSON.stringify(t);n in e?e[n].push(r):e[n]=[r]}}(void 0!==e?e:"undefined"!=typeof window?window:this)}).call(this,t(1))},function(e,n,t){var r=t(7);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};t(9)(r,i);r.locals&&(e.exports=r.locals)},function(e,n,t){(e.exports=t(8)(!1)).push([e.i,".x-hellosign-embedded {\n height: 100%; }\n .x-hellosign-embedded--in-modal {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%; }\n\n.x-hellosign-embedded__modal-screen {\n display: block;\n background-color: rgba(0, 0, 0, 0.5);\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%; }\n @media screen and (max-width: 767px) {\n .x-hellosign-embedded__modal-screen {\n display: none; } }\n\n.x-hellosign-embedded__modal-content {\n box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.25);\n position: absolute;\n top: 5vh;\n left: 50%;\n transform: translateX(-50%);\n height: 90vh;\n min-height: 400px;\n width: 80vw;\n min-width: 512px;\n max-width: 1024px; }\n @media screen and (max-width: 767px) {\n .x-hellosign-embedded__modal-content {\n overflow: hidden;\n box-shadow: none;\n height: 100%;\n min-height: 0;\n width: 100%;\n min-width: 0;\n transform: none;\n left: 0;\n top: 0; } }\n\n@media screen and (max-width: 767px) {\n .x-hellosign-embedded__modal-close {\n display: none; } }\n\n.x-hellosign-embedded__modal-close-button {\n -webkit-appearance: none;\n position: absolute;\n height: 40px;\n width: 40px;\n top: 10px;\n right: 10px;\n border: none;\n border-radius: 3px;\n background-color: #1a1a1a;\n transition: background-color 0.35s ease;\n will-change: background-color;\n box-shadow: 0px 3px 9px 0px rgba(0, 0, 0, 0.25);\n cursor: pointer; }\n .x-hellosign-embedded__modal-close-button:hover {\n background-color: #00B3E6; }\n .x-hellosign-embedded__modal-close-button::before, .x-hellosign-embedded__modal-close-button::after {\n content: '';\n position: absolute;\n width: 1px;\n background-color: white;\n height: 20px;\n top: 10px; }\n .x-hellosign-embedded__modal-close-button::before {\n transform: rotateZ(45deg); }\n .x-hellosign-embedded__modal-close-button::after {\n transform: rotateZ(-45deg); }\n\n.x-hellosign-embedded__iframe {\n min-height: 400px;\n background-color: #F7F8F9;\n height: 100%;\n width: 100%;\n border: none; }\n",""])},function(e,n){e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t=function(e,n){var t=e[1]||"",r=e[3];if(!r)return t;if(n&&"function"==typeof btoa){var i=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),o=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[t].concat(o).concat([i]).join("\n")}return[t].join("\n")}(n,e);return n[2]?"@media "+n[2]+"{"+t+"}":t}).join("")},n.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(t&&!a[2]?a[2]=t:t&&(a[2]="("+a[2]+") and ("+t+")"),n.push(a))}},n}},function(e,n,t){var r={},i=function(e){var n;return function(){return void 0===n&&(n=e.apply(this,arguments)),n}}(function(){return window&&document&&document.all&&!window.atob}),o=function(e){var n={};return function(e,t){if("function"==typeof e)return e();if(void 0===n[e]){var r=function(e,n){return n?n.querySelector(e):document.querySelector(e)}.call(this,e,t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}n[e]=r}return n[e]}}(),a=null,s=0,u=[],c=t(10);function l(e,n){for(var t=0;t<e.length;t++){var i=e[t],o=r[i.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](i.parts[a]);for(;a<i.parts.length;a++)o.parts.push(g(i.parts[a],n))}else{var s=[];for(a=0;a<i.parts.length;a++)s.push(g(i.parts[a],n));r[i.id]={id:i.id,refs:1,parts:s}}}}function f(e,n){for(var t=[],r={},i=0;i<e.length;i++){var o=e[i],a=n.base?o[0]+n.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):t.push(r[a]={id:a,parts:[s]})}return t}function d(e,n){var t=o(e.insertInto);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=u[u.length-1];if("top"===e.insertAt)r?r.nextSibling?t.insertBefore(n,r.nextSibling):t.appendChild(n):t.insertBefore(n,t.firstChild),u.push(n);else if("bottom"===e.insertAt)t.appendChild(n);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=o(e.insertAt.before,t);t.insertBefore(n,i)}}function h(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var n=u.indexOf(e);n>=0&&u.splice(n,1)}function p(e){var n=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return t.nc}();r&&(e.attrs.nonce=r)}return m(n,e.attrs),d(e,n),n}function m(e,n){Object.keys(n).forEach(function(t){e.setAttribute(t,n[t])})}function g(e,n){var t,r,i,o;if(n.transform&&e.css){if(!(o=n.transform(e.css)))return function(){};e.css=o}if(n.singleton){var u=s++;t=a||(a=p(n)),r=b.bind(null,t,u,!1),i=b.bind(null,t,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(t=function(e){var n=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",m(n,e.attrs),d(e,n),n}(n),r=function(e,n,t){var r=t.css,i=t.sourceMap,o=void 0===n.convertToAbsoluteUrls&&i;(n.convertToAbsoluteUrls||o)&&(r=c(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,t,n),i=function(){h(t),t.href&&URL.revokeObjectURL(t.href)}):(t=p(n),r=function(e,n){var t=n.css,r=n.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}.bind(null,t),i=function(){h(t)});return r(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;r(e=n)}else i()}}e.exports=function(e,n){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(n=n||{}).attrs="object"==typeof n.attrs?n.attrs:{},n.singleton||"boolean"==typeof n.singleton||(n.singleton=i()),n.insertInto||(n.insertInto="head"),n.insertAt||(n.insertAt="bottom");var t=f(e,n);return l(t,n),function(e){for(var i=[],o=0;o<t.length;o++){var a=t[o];(s=r[a.id]).refs--,i.push(s)}e&&l(f(e,n),n);for(o=0;o<i.length;o++){var s;if(0===(s=i[o]).refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete r[s.id]}}}};var y=function(){var e=[];return function(n,t){return e[n]=t,e.filter(Boolean).join("\n")}}();function b(e,n,t,r){var i=t?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(n,i);else{var o=document.createTextNode(i),a=e.childNodes;a[n]&&e.removeChild(a[n]),a.length?e.insertBefore(o,a[n]):e.appendChild(o)}}},function(e,n){e.exports=function(e){var n="undefined"!=typeof window&&window.location;if(!n)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var t=n.protocol+"//"+n.host,r=t+n.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,n){var i,o=n.trim().replace(/^"(.*)"$/,function(e,n){return n}).replace(/^'(.*)'$/,function(e,n){return n});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?t+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(e,n){var t,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var e=s(d);l=!0;for(var n=c.length;n;){for(u=c,c=[];++f<n;)u&&u[f].run();f=-1,n=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(n){try{return r.call(null,e)}catch(n){return r.call(this,e)}}}(e)}}function p(e,n){this.fun=e,this.array=n}function m(){}i.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];c.push(new p(e,n)),1!==c.length||l||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,n,t){function r(e){var t;function r(){if(r.enabled){var e=r,i=+new Date,o=i-(t||i);e.diff=o,e.prev=t,e.curr=i,t=i;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=n.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var u=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(t,r){if("%%"===t)return t;u++;var i=n.formatters[r];if("function"==typeof i){var o=a[u];t=i.call(e,o),a.splice(u,1),u--}return t}),n.formatArgs.call(e,a),(r.log||n.log||console.log.bind(console)).apply(e,a)}}return r.namespace=e,r.enabled=n.enabled(e),r.useColors=n.useColors(),r.color=function(e){var t,r=0;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return n.colors[Math.abs(r)%n.colors.length]}(e),r.destroy=i,"function"==typeof n.init&&n.init(r),n.instances.push(r),r}function i(){var e=n.instances.indexOf(this);return-1!==e&&(n.instances.splice(e,1),!0)}(n=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},n.disable=function(){n.enable("")},n.enable=function(e){var t;n.save(e),n.names=[],n.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(t=0;t<i;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")));for(t=0;t<n.instances.length;t++){var o=n.instances[t];o.enabled=n.enabled(o.namespace)}},n.enabled=function(e){if("*"===e[e.length-1])return!0;var t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return!0;return!1},n.humanize=t(13),n.instances=[],n.names=[],n.skips=[],n.formatters={}},function(e,n){var t=1e3,r=60*t,i=60*r,o=24*i,a=365.25*o;function s(e,n,t){if(!(e<n))return e<1.5*n?Math.floor(e/n)+" "+t:Math.ceil(e/n)+" "+t+"s"}e.exports=function(e,n){n=n||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!n)return;var s=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===u&&!1===isNaN(e))return n.long?function(e){return s(e,o,"day")||s(e,i,"hour")||s(e,r,"minute")||s(e,t,"second")||e+" ms"}(e):function(e){if(e>=o)return Math.round(e/o)+"d";if(e>=i)return Math.round(e/i)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,n,t){"use strict";t.r(n);var r=t(2),i=t.n(r),o=function(){function e(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(n,t,r){return t&&e(n.prototype,t),r&&e(n,r),n}}(),a=function(e,n){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["",""],["",""]);var s=function(){function e(){for(var n=this,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.tag=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return"function"==typeof e?n.interimTag.bind(n,e):"string"==typeof e?n.transformEndResult(e):(e=e.map(n.transformString.bind(n)),n.transformEndResult(e.reduce(n.processSubstitutions.bind(n,r))))},r.length>0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map(function(e){return"function"==typeof e?e():e}),this.tag}return o(e,[{key:"interimTag",value:function(e,n){for(var t=arguments.length,r=Array(t>2?t-2:0),i=2;i<t;i++)r[i-2]=arguments[i];return this.tag(a,e.apply(void 0,[n].concat(r)))}},{key:"processSubstitutions",value:function(e,n,t){var r=this.transformSubstitution(e.shift(),n);return"".concat(n,r,t)}},{key:"transformString",value:function(e){return this.transformers.reduce(function(e,n){return n.onString?n.onString(e):e},e)}},{key:"transformSubstitution",value:function(e,n){return this.transformers.reduce(function(e,t){return t.onSubstitution?t.onSubstitution(e,n):e},e)}},{key:"transformEndResult",value:function(e){return this.transformers.reduce(function(e,n){return n.onEndResult?n.onEndResult(e):e},e)}}]),e}(),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(n){if(""===e)return n.trim();if("start"===(e=e.toLowerCase())||"left"===e)return n.replace(/^\s*/,"");if("end"===e||"right"===e)return n.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}};var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(n){if("initial"===e){var t=n.match(/^[^\S\n]*(?=\S)/gm),r=t&&Math.min.apply(Math,function(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n<e.length;n++)t[n]=e[n];return t}return Array.from(e)}(t.map(function(e){return e.length})));if(r){var i=new RegExp("^.{"+r+"}","gm");return n.replace(i,"")}return n}if("all"===e)return n.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+e)}}},l=function(e,n){return{onEndResult:function(t){if(null==e||null==n)throw new Error("replaceResultTransformer requires at least 2 arguments.");return t.replace(e,n)}}},f=function(e,n){return{onSubstitution:function(t,r){if(null==e||null==n)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==t?t:t.toString().replace(e,n)}}},d={separator:"",conjunction:"",serial:!1},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return{onSubstitution:function(n,t){if(Array.isArray(n)){var r=n.length,i=e.separator,o=e.conjunction,a=e.serial,s=t.match(/(\n?[^\S\n]+)$/);if(n=s?n.join(i+s[1]):n.join(i+" "),o&&r>1){var u=n.lastIndexOf(i);n=n.slice(0,u)+(a?i:"")+" "+o+n.slice(u+1)}}return n}}},p=function(e){return{onSubstitution:function(n,t){if(null==e||"string"!=typeof e)throw new Error("You need to specify a string character to split by.");return"string"==typeof n&&n.includes(e)&&(n=n.split(e)),n}}},m=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e},g=function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(m):m(e)?e:""}}},y=(new s(h({separator:","}),c,u),new s(h({separator:",",conjunction:"and"}),c,u),new s(h({separator:",",conjunction:"or"}),c,u),new s(p("\n"),g,h,c,u),new s(p("\n"),h,c,u,f(/&/g,"&"),f(/</g,"<"),f(/>/g,">"),f(/"/g,"""),f(/'/g,"'"),f(/`/g,"`"))),b=(new s(l(/(?:\n(?:\s*))+/g," "),u),new s(l(/(?:\n\s*)/g,""),u),new s(h({separator:","}),l(/(?:\s+)/g," "),u),new s(h({separator:",",conjunction:"or"}),l(/(?:\s+)/g," "),u),new s(h({separator:",",conjunction:"and"}),l(/(?:\s+)/g," "),u),new s(h,c,u),new s(h,l(/(?:\s+)/g," "),u),new s(c,u),new s(c("all"),u),t(0)),_=t.n(b),v=_()("".concat("hellosign-embedded",":info")),E=_()("".concat("hellosign-embedded",":warn")),w=_()("".concat("hellosign-embedded",":error"));v.log=console.log.bind(console),E.log=console.warn.bind(console);var C={info:v,warn:E,error:w},S={BASE:"x-hellosign-embedded",BASE_IN_MODAL:"x-hellosign-embedded--in-modal",IFRAME:"x-hellosign-embedded__iframe",MODAL_CLOSE:"x-hellosign-embedded__modal-close",MODAL_CLOSE_BTN:"x-hellosign-embedded__modal-close-button",MODAL_CONTENT:"x-hellosign-embedded__modal-content",MODAL_SCREEN:"x-hellosign-embedded__modal-screen"},R={ERROR:"error",INITIALIZE:"initialize",SEND:"send",CLOSE:"close",CREATE_TEMPLATE:"createTemplate",DECLINE:"decline",OPEN:"open",REASSIGN:"reassign",SIGN:"sign"},T={NAME:"x-hellosign-embedded"},O={DA_DK:"da_DK",DE_DE:"de_DE",EN_US:"en_US",ES_ES:"es_ES",ES_MX:"es_MX",FR_FR:"fr_FR",NL_NL:"nl_NL",PL_PL:"pl_PL",PT_BR:"pt_BR",SV_SE:"sv_SE",ZH_CN:"zh_CN"},x={APP_CONFIGURE:"hellosign:configure",APP_ERROR:"hellosign:error",APP_INITIALIZE:"hellosign:initialize",APP_VERIFY_DOMAIN_REQUEST:"hellosign:verifyDomainRequest",APP_VERIFY_DOMAIN_RESPONSE:"hellosign:verifyDomainResponse",USER_CLOSE_REQUEST:"hellosign:userCloseRequest",USER_CREATE_TEMPLATE:"hellosign:userCreateTemplate",USER_DECLINE_REQUEST:"hellosign:userDeclineRequest",USER_REASSIGN_REQUEST:"hellosign:userReassignRequest",USER_SEND_REQUEST:"hellosign:userSendRequest",USER_SIGN_REQUEST:"hellosign:userSignRequest"},L={EMBEDDED_SIGN:"embeddedSign",EMBEDDED_TEMPLATE:"embeddedTemplate",EMBEDDED_REQUEST:"embeddedRequest",UNKNOWN:"unknown"},k={allowCancel:!0,debug:!1,locale:O.EN_US,skipDomainVerification:!1,timeout:3e4};function F(){var e=P(['\n <div class="','">\n <iframe class="','" name="','" src="','" />\n </div>\n </div>\n ']);return F=function(){return e},e}function A(){var e=P(["\n <div class=",">\n <button class=",' role="button" title="Close signature request"></button>\n </div>\n ']);return A=function(){return e},e}function U(){var e=P(['\n <div class="'," ",'">\n <div class="','"></div>\n ']);return U=function(){return e},e}function D(){var e=P(['\n <div class="','">\n <iframe class="','" name="','" src="','" />\n </div>\n ']);return D=function(){return e},e}function P(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function I(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){H(e,n,t[n])})}return e}function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function N(e,n,t){return(N="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,n,t){var r=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=q(e)););return e}(e,n);if(r){var i=Object.getOwnPropertyDescriptor(r,n);return i.get?i.get.call(t):i.value}})(e,n,t||e)}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,n){return(B=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var G=function(e){function n(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),H(z(z(e=function(e,n){return!n||"object"!==M(n)&&"function"!=typeof n?z(e):n}(this,q(n).call(this)))),"_baseConfig",null),H(z(z(e)),"_baseEl",null),H(z(z(e)),"_config",null),H(z(z(e)),"_embeddedType",null),H(z(z(e)),"_iFrameURL",null),H(z(z(e)),"_iFrameEl",null),H(z(z(e)),"_initTimeout",null),H(z(z(e)),"_isOpen",!1),H(z(z(e)),"_onEmbeddedClick",e._onEmbeddedClick.bind(z(z(e)))),H(z(z(e)),"_onInitTimeout",e._onInitTimeout.bind(z(z(e)))),H(z(z(e)),"_onMessage",e._onMessage.bind(z(z(e)))),C.info("created new HelloSign instance with options",t),!t||"object"!==M(t))throw new TypeError("Configuration must be an object");return e._baseConfig=I({},t),e}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&B(e,n)}(n,i.a),function(e,n,t){n&&j(e.prototype,n),t&&j(e,t)}(n,[{key:"_applyClientId",value:function(e){var n=this._config.clientId;if(!n)throw new TypeError('"clientId" is required');if("string"!=typeof n)throw new TypeError('"clientId" must be a string');e.append("client_id",n)}},{key:"_applyDebug",value:function(e){var n=this._config.debug;if("boolean"!=typeof n)throw new TypeError('"debug" must be a boolean');e.append("debug",n?1:0)}},{key:"_applyFinalButtonText",value:function(e){if("finalButtonText"in this._config){var n=this._config.finalButtonText;if("string"!=typeof n)throw new TypeError('"finalButtonText" must be a string');if(!["Send","Continue"].includes(n))throw new TypeError('"finalButtonText" must be either "Send" or "Continue"');e.append("final_button_text",n)}}},{key:"_applyHideHeader",value:function(e){if("hideHeader"in this._config){var n=this._config.hideHeader;if("boolean"!=typeof n)throw new TypeError('"hideHeader" must be a boolean');e.append("hideHeader",n)}}},{key:"_applyLocale",value:function(e){var n=this._config.locale;if("string"!=typeof n)throw new TypeError('"locale" must be a string');if(!Object.values(O).includes(n))throw new TypeError('"'.concat(n,'" is not a supported locale'));e.append("user_culture",n)}},{key:"_applyParentURL",value:function(e){e.append("parent_url",document.location.href)}},{key:"_applyRedirectTo",value:function(e){if("redirectTo"in this._config){var n=this._config.redirectTo;if("string"!=typeof n)throw new TypeError('"redirectTo" must be a string');e.append("redirect_url",n)}}},{key:"_applyRequestingEmail",value:function(e){if("requestingEmail"in this._config){var n=this._config.requestingEmail;if("string"!=typeof n)throw new TypeError('"requestingEmail" must be a string');e.append("requester",n)}}},{key:"_applySkipDomainVerification",value:function(e){var n=this._config.skipDomainVerification;if("boolean"!=typeof n)throw new TypeError('"skipDomainVerification" must be a boolean');e.append("skip_domain_verification",n?1:0)}},{key:"_applyWhiteLabeling",value:function(e){if("whiteLabeling"in this._config){var n=this._config.whiteLabeling;if("object"!==M(n))throw new TypeError('"whiteLabeling" must be an object');e.append("white_labeling_options",JSON.stringify(n))}}},{key:"_applyVersion",value:function(e){e.append("js_version","2.0.0")}},{key:"_getFrameParams",value:function(e){var n=new URLSearchParams(e.search);return this._applyClientId(n),this._applyDebug(n),this._applyFinalButtonText(n),this._applyHideHeader(n),this._applyLocale(n),this._applyParentURL(n),this._applyRedirectTo(n),this._applyRequestingEmail(n),this._applySkipDomainVerification(n),this._applyVersion(n),this._applyWhiteLabeling(n),n}},{key:"_updateFrameUrl",value:function(e){var n=new URL(e),t=this._getFrameParams(n);n.search=t.toString(),this._iFrameURL=n}},{key:"_updateEmbeddedType",value:function(e){e.includes("embeddedSign")?this._embeddedType=L.EMBEDDED_SIGN:e.includes("embeddedTemplate")?this._embeddedType=L.EMBEDDED_TEMPLATE:e.includes("embeddedRequest")?this._embeddedType=L.EMBEDDED_REQUEST:this._embeddedType=L.UNKNOWN}},{key:"_renderMarkup",value:function(){var e=document.createElement("div");return this._config.container?e.innerHTML=y(D(),S.BASE,S.IFRAME,T.NAME,this._iFrameURL.href):e.innerHTML=y(U(),S.BASE,S.BASE_IN_MODAL,S.MODAL_SCREEN)+(this._config.allowCancel?y(A(),S.MODAL_CLOSE,S.MODAL_CLOSE_BTN):"")+y(F(),S.MODAL_CONTENT,S.IFRAME,T.NAME,this._iFrameURL.href),e.firstChild}},{key:"_appendMarkup",value:function(){this._baseEl=this._renderMarkup(),this._baseEl.addEventListener("click",this._onEmbeddedClick),this._iFrameEl=this._baseEl.getElementsByClassName(S.IFRAME).item(0),this._config.container?this._config.container.appendChild(this._baseEl):document.body.appendChild(this._baseEl)}},{key:"_clearMarkup",value:function(){this._baseEl.parentElement.removeChild(this._baseEl)}},{key:"_sendMessage",value:function(e){C.info("posting message",e);var n=this._iFrameURL.href;this._iFrameEl.contentWindow.postMessage(e,n)}},{key:"_sendConfigurationMessage",value:function(){C.info("sending app configuration message"),this._sendMessage({type:x.APP_CONFIGURE,payload:{allowCancel:this._config.allowCancel}})}},{key:"_sendDomainVerificationMessage",value:function(e){C.info("sending domain verification message",e),this._sendMessage({type:x.APP_VERIFY_DOMAIN_RESPONSE,payload:{token:e}})}},{key:"_sendInitializationErrorMessage",value:function(){C.info("sending initialization error message"),this._sendMessage({type:x.APP_ERROR,payload:{message:"App failed to initialize before timeout"}})}},{key:"_clearInitTimeout",value:function(){this._initTimeout&&(C.info("clearing initialization timeout"),clearTimeout(this._initTimeout),this._initTimeout=null)}},{key:"_startInitTimeout",value:function(){this._embeddedType===L.EMBEDDED_SIGN&&(C.info("starting initialization timeout"),this._clearInitTimeout(),this._initTimeout=setTimeout(this._onInitTimeout,this._config.timeout))}},{key:"_maybeStartInitTimeout",value:function(){this._embeddedType===L.EMBEDDED_SIGN&&this._startInitTimeout()}},{key:"_appDidError",value:function(e){C.error("app encountered an error with code:",e.code),this.emit(R.ERROR,e)}},{key:"_appDidInitialize",value:function(e){C.info("app was initialized"),this.emit(R.INITIALIZE,e),this._sendConfigurationMessage(),this._clearInitTimeout()}},{key:"_appDidRequestDomainVerification",value:function(e){var n=e.token;C.info("app requested domain verification",n),this._sendDomainVerificationMessage(n)}},{key:"_userDidCloseRequest",value:function(){C.info("user requested that the window be closed"),this.close()}},{key:"_userDidCreateTemplate",value:function(e){C.info("user created the signature request template"),this.emit(R.CREATE_TEMPLATE,e)}},{key:"_userDidDeclineRequest",value:function(e){C.info("user declined the signature request"),this.emit(R.DECLINE,e)}},{key:"_userDidReassignRequest",value:function(e){C.info("user reassigned the signature request with reason:",e.reason),this.emit(R.REASSIGN,e)}},{key:"_userDidSendRequest",value:function(e){C.info("user sent the signature request"),this.emit(R.SEND,e)}},{key:"_userDidSignRequest",value:function(e){C.info("user signed the signature request"),this.emit(R.SIGN,e)}},{key:"_onEmbeddedClick",value:function(e){e.srcElement.classList.contains(S.MODAL_CLOSE_BTN)&&(e.preventDefault(),this.close())}},{key:"_onInitTimeout",value:function(){C.error("app failed to initialize before timeout"),alert("Something went wrong when preparing your signature request. Please try again."),this._sendInitializationErrorMessage(),this._clearInitTimeout(),this.close()}},{key:"_onMessage",value:function(e){var n=e.data,t=e.origin;C.info("received message",n,t),t===this._iFrameURL.origin&&"object"===M(n)&&this._delegateMessage(n)}},{key:"_delegateMessage",value:function(e){var n=e.type,t=e.payload;switch(n){case x.APP_ERROR:this._appDidError(t);break;case x.APP_INITIALIZE:this._appDidInitialize(t);break;case x.APP_VERIFY_DOMAIN_REQUEST:this._appDidRequestDomainVerification(t);break;case x.USER_CLOSE_REQUEST:this._userDidCloseRequest(t);break;case x.USER_CREATE_TEMPLATE:this._userDidCreateTemplate(t);break;case x.USER_DECLINE_REQUEST:this._userDidDeclineRequest(t);break;case x.USER_REASSIGN_REQUEST:this._userDidReassignRequest(t);break;case x.USER_SEND_REQUEST:this._userDidSendRequest(t);break;case x.USER_SIGN_REQUEST:this._userDidSignRequest(t);break;default:C.warn("unhandled cross-origin window message")}}},{key:"open",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(C.info("open()",e,n),this._isOpen&&this.close(),this._config=I({},k,this._baseConfig,n),this._config.container&&!(this._config.container instanceof HTMLElement))throw new TypeError('"container" must be an element');this._updateFrameUrl(e),this._updateEmbeddedType(e),this._appendMarkup(),this._maybeStartInitTimeout(),this._isOpen=!0,window.addEventListener("message",this._onMessage),this.emit(R.OPEN,{iFrameUrl:this._iFrameURL.href,url:e})}},{key:"close",value:function(){C.info("close()"),this._isOpen&&(this._clearInitTimeout(),this._clearMarkup(),this._baseEl.removeEventListener("click",this._onEmbeddedClick),this._config=null,this._baseEl=null,this._embeddedType=null,this._iFrameEl=null,this._iFrameURL=null,this._isOpen=!1,window.removeEventListener("message",this._onMessage),this.emit(R.CLOSE))}},{key:"emit",value:function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];C.info.apply(C,["emit()"].concat(r)),(e=N(q(n.prototype),"emit",this)).call.apply(e,[this].concat(r))}},{key:"element",get:function(){return this._baseEl}},{key:"isOpen",get:function(){return this._isOpen}}]),n}();H(G,"classNames",S),H(G,"events",R),H(G,"locales",O);n.default=G}]).default}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.HelloSign=t():e.HelloSign=t()}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={classNames:{BASE:"x-hellosign-embedded",BASE_IN_MODAL:"x-hellosign-embedded--in-modal",IFRAME:"x-hellosign-embedded__iframe",MODAL_CLOSE:"x-hellosign-embedded__modal-close",MODAL_CLOSE_BTN:"x-hellosign-embedded__modal-close-button",MODAL_CONTENT:"x-hellosign-embedded__modal-content",MODAL_SCREEN:"x-hellosign-embedded__modal-screen"},events:{ERROR:"error",INITIALIZE:"initialize",SEND:"send",CLOSE:"close",CREATE_TEMPLATE:"createTemplate",DECLINE:"decline",MESSAGE:"message",OPEN:"open",REASSIGN:"reassign",SIGN:"sign"},iframe:{NAME:"x-hellosign-embedded"},locales:{DA_DK:"da_DK",DE_DE:"de_DE",EN_US:"en_US",ES_ES:"es_ES",ES_MX:"es_MX",FR_FR:"fr_FR",NL_NL:"nl_NL",PL_PL:"pl_PL",PT_BR:"pt_BR",SV_SE:"sv_SE",ZH_CN:"zh_CN"},messages:{APP_CONFIGURE:"hellosign:configure",APP_ERROR:"hellosign:error",APP_INITIALIZE:"hellosign:initialize",APP_VERIFY_DOMAIN_REQUEST:"hellosign:verifyDomainRequest",APP_VERIFY_DOMAIN_RESPONSE:"hellosign:verifyDomainResponse",USER_CLOSE_REQUEST:"hellosign:userCloseRequest",USER_CREATE_TEMPLATE:"hellosign:userCreateTemplate",USER_DECLINE_REQUEST:"hellosign:userDeclineRequest",USER_REASSIGN_REQUEST:"hellosign:userReassignRequest",USER_SEND_REQUEST:"hellosign:userSendRequest",USER_SIGN_REQUEST:"hellosign:userSignRequest"},types:{EMBEDDED_SIGN:"embeddedSign",EMBEDDED_TEMPLATE:"embeddedTemplate",EMBEDDED_REQUEST:"embeddedRequest",UNKNOWN:"unknown"}};t.default=r},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["",""],["",""]);var o=function(){function e(){for(var t=this,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tag=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return"function"==typeof e?t.interimTag.bind(t,e):"string"==typeof e?t.transformEndResult(e):(e=e.map(t.transformString.bind(t)),t.transformEndResult(e.reduce(t.processSubstitutions.bind(t,r))))},r.length>0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map(function(e){return"function"==typeof e?e():e}),this.tag}return r(e,[{key:"interimTag",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return this.tag(i,e.apply(void 0,[t].concat(r)))}},{key:"processSubstitutions",value:function(e,t,n){var r=this.transformSubstitution(e.shift(),t);return"".concat(t,r,n)}},{key:"transformString",value:function(e){return this.transformers.reduce(function(e,t){return t.onString?t.onString(e):e},e)}},{key:"transformSubstitution",value:function(e,t){return this.transformers.reduce(function(e,n){return n.onSubstitution?n.onSubstitution(e,t):e},e)}},{key:"transformEndResult",value:function(e){return this.transformers.reduce(function(e,t){return t.onEndResult?t.onEndResult(e):e},e)}}]),e}(),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(t){if(""===e)return t.trim();if("start"===(e=e.toLowerCase())||"left"===e)return t.replace(/^\s*/,"");if("end"===e||"right"===e)return t.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}};var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(t){if("initial"===e){var n=t.match(/^[^\S\n]*(?=\S)/gm),r=n&&Math.min.apply(Math,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(n.map(function(e){return e.length})));if(r){var i=new RegExp("^.{"+r+"}","gm");return t.replace(i,"")}return t}if("all"===e)return t.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+e)}}},u=function(e,t){return{onEndResult:function(n){if(null==e||null==t)throw new Error("replaceResultTransformer requires at least 2 arguments.");return n.replace(e,t)}}},l=function(e,t){return{onSubstitution:function(n,r){if(null==e||null==t)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==n?n:n.toString().replace(e,t)}}},c=function(e,t){return{onString:function(n){if(null==e||null==t)throw new Error("replaceStringTransformer requires at least 2 arguments.");return n.replace(e,t)}}},f={separator:"",conjunction:"",serial:!1},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return{onSubstitution:function(t,n){if(Array.isArray(t)){var r=t.length,i=e.separator,o=e.conjunction,a=e.serial,s=n.match(/(\n?[^\S\n]+)$/);if(t=s?t.join(i+s[1]):t.join(i+" "),o&&r>1){var u=t.lastIndexOf(i);t=t.slice(0,u)+(a?i:"")+" "+o+t.slice(u+1)}}return t}}},h=function(e){return{onSubstitution:function(t,n){if(null==e||"string"!=typeof e)throw new Error("You need to specify a string character to split by.");return"string"==typeof t&&t.includes(e)&&(t=t.split(e)),t}}},p=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e},m=function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(p):p(e)?e:""}}},g=new o(d({separator:","}),s,a),y=new o(d({separator:",",conjunction:"and"}),s,a),v=new o(d({separator:",",conjunction:"or"}),s,a),_=new o(h("\n"),m,d,s,a),b=new o(h("\n"),d,s,a,l(/&/g,"&"),l(/</g,"<"),l(/>/g,">"),l(/"/g,"""),l(/'/g,"'"),l(/`/g,"`")),E=new o(u(/(?:\n(?:\s*))+/g," "),a),w=new o(u(/(?:\n\s*)/g,""),a),C=new o(d({separator:","}),u(/(?:\s+)/g," "),a),S=new o(d({separator:",",conjunction:"or"}),u(/(?:\s+)/g," "),a),R=new o(d({separator:",",conjunction:"and"}),u(/(?:\s+)/g," "),a),T=new o(d,s,a),L=new o(d,u(/(?:\s+)/g," "),a),O=new o(s,a),x=new o(s("all"),a);n.d(t,"TemplateTag",function(){return o}),n.d(t,"trimResultTransformer",function(){return a}),n.d(t,"stripIndentTransformer",function(){return s}),n.d(t,"replaceResultTransformer",function(){return u}),n.d(t,"replaceSubstitutionTransformer",function(){return l}),n.d(t,"replaceStringTransformer",function(){return c}),n.d(t,"inlineArrayTransformer",function(){return d}),n.d(t,"splitStringTransformer",function(){return h}),n.d(t,"removeNonPrintingValuesTransformer",function(){return m}),n.d(t,"commaLists",function(){return g}),n.d(t,"commaListsAnd",function(){return y}),n.d(t,"commaListsOr",function(){return v}),n.d(t,"html",function(){return _}),n.d(t,"codeBlock",function(){return _}),n.d(t,"source",function(){return _}),n.d(t,"safeHtml",function(){return b}),n.d(t,"oneLine",function(){return E}),n.d(t,"oneLineTrim",function(){return w}),n.d(t,"oneLineCommaLists",function(){return C}),n.d(t,"oneLineCommaListsOr",function(){return S}),n.d(t,"oneLineCommaListsAnd",function(){return R}),n.d(t,"inlineLists",function(){return T}),n.d(t,"oneLineInlineLists",function(){return L}),n.d(t,"stripIndent",function(){return O}),n.d(t,"stripIndents",function(){return x})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={allowCancel:!0,debug:!1,locale:function(e){return e&&e.__esModule?e:{default:e}}(n(0)).default.locales.EN_US,skipDomainVerification:!1,timeout:3e4};t.default=r},function(e,t){var n=1e3,r=60*n,i=60*r,o=24*i,a=365.25*o;function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===u&&!1===isNaN(e))return t.long?function(e){return s(e,o,"day")||s(e,i,"hour")||s(e,r,"minute")||s(e,n,"second")||e+" ms"}(e):function(e){if(e>=o)return Math.round(e/o)+"d";if(e>=i)return Math.round(e/i)+"h";if(e>=r)return Math.round(e/r)+"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))}},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,i=+new Date,o=i-(n||i);e.diff=o,e.prev=n,e.curr=i,n=i;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var u=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;u++;var i=t.formatters[r];if("function"==typeof i){var o=a[u];n=i.call(e,o),a.splice(u,1),u--}return n}),t.formatArgs.call(e,a),(r.log||t.log||console.log.bind(console)).apply(e,a)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=i,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(4),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,l=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&h())}function h(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(r){function i(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(5)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&"%c"===e&&(o=++i)}),e.splice(o,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=i,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;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+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(i())}).call(this,n(6))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(7));var i=(0,r.default)("".concat("hellosign-embedded",":info")),o=(0,r.default)("".concat("hellosign-embedded",":warn")),a=(0,r.default)("".concat("hellosign-embedded",":error"));i.log=console.log.bind(console),o.log=console.warn.bind(console);var s={info:i,warn:o,error:a};t.default=s},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(9)),i=n(2),o=u(n(8)),a=u(n(3)),s=u(n(0));function u(e){return e&&e.__esModule?e:{default:e}}function l(){var e=h(['\n <iframe class="','" name="','" src="','" />\n </div>\n </div>\n ']);return l=function(){return e},e}function c(){var e=h(["\n <div class=",">\n <button class=",' role="button" title="Close signature request"></button>\n </div>\n ']);return c=function(){return e},e}function f(){var e=h(['\n <div class="'," ",'">\n <div class="','"></div>\n <div class="','">\n ']);return f=function(){return e},e}function d(){var e=h(['\n <div class="','">\n <iframe class="','" name="','" src="','" />\n </div>\n ']);return d=function(){return e},e}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){E(e,t,n[t])})}return e}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),E(b(b(e=function(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?b(e):t}(this,v(t).call(this)))),"_baseConfig",null),E(b(b(e)),"_baseEl",null),E(b(b(e)),"_config",null),E(b(b(e)),"_embeddedType",null),E(b(b(e)),"_iFrameURL",null),E(b(b(e)),"_iFrameEl",null),E(b(b(e)),"_initTimeout",null),E(b(b(e)),"_isOpen",!1),E(b(b(e)),"_onEmbeddedClick",e._onEmbeddedClick.bind(b(b(e)))),E(b(b(e)),"_onInitTimeout",e._onInitTimeout.bind(b(b(e)))),E(b(b(e)),"_onMessage",e._onMessage.bind(b(b(e)))),o.default.info("created new HelloSign instance with options",n),!n||"object"!==m(n))throw new TypeError("Configuration must be an object");return e._baseConfig=p({},n),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(t,r.default),function(e,t,n){t&&g(e.prototype,t),n&&g(e,n)}(t,[{key:"_applyClientId",value:function(e){var t=this._config.clientId;if(!t)throw new TypeError('"clientId" is required');if("string"!=typeof t)throw new TypeError('"clientId" must be a string');e.append("client_id",t)}},{key:"_applyDebug",value:function(e){var t=this._config.debug;if("boolean"!=typeof t)throw new TypeError('"debug" must be a boolean');e.append("debug",t?1:0)}},{key:"_applyFinalButtonText",value:function(e){if("finalButtonText"in this._config){var t=this._config.finalButtonText;if("string"!=typeof t)throw new TypeError('"finalButtonText" must be a string');if(!["Send","Continue"].includes(t))throw new TypeError('"finalButtonText" must be either "Send" or "Continue"');e.append("final_button_text",t)}}},{key:"_applyHideHeader",value:function(e){if("hideHeader"in this._config){var t=this._config.hideHeader;if("boolean"!=typeof t)throw new TypeError('"hideHeader" must be a boolean');e.append("hideHeader",t)}}},{key:"_applyLocale",value:function(e){var t=this._config.locale;if("string"!=typeof t)throw new TypeError('"locale" must be a string');if(!Object.values(s.default.locales).includes(t))throw new TypeError('"'.concat(t,'" is not a supported locale'));e.append("user_culture",t)}},{key:"_applyParentURL",value:function(e){e.append("parent_url",document.location.href)}},{key:"_applyRedirectTo",value:function(e){if("redirectTo"in this._config){var t=this._config.redirectTo;if("string"!=typeof t)throw new TypeError('"redirectTo" must be a string');e.append("redirect_url",t)}}},{key:"_applyRequestingEmail",value:function(e){if("requestingEmail"in this._config){var t=this._config.requestingEmail;if("string"!=typeof t)throw new TypeError('"requestingEmail" must be a string');e.append("requester",t)}}},{key:"_applySkipDomainVerification",value:function(e){var t=this._config.skipDomainVerification;if("boolean"!=typeof t)throw new TypeError('"skipDomainVerification" must be a boolean');e.append("skip_domain_verification",t?1:0)}},{key:"_applyWhiteLabeling",value:function(e){if("whiteLabeling"in this._config){var t=this._config.whiteLabeling;if("object"!==m(t))throw new TypeError('"whiteLabeling" must be an object');e.append("white_labeling_options",JSON.stringify(t))}}},{key:"_applyVersion",value:function(e){e.append("js_version","2.0.0")}},{key:"_getFrameParams",value:function(e){var t=new URLSearchParams(e.search);return this._applyClientId(t),this._applyDebug(t),this._applyFinalButtonText(t),this._applyHideHeader(t),this._applyLocale(t),this._applyParentURL(t),this._applyRedirectTo(t),this._applyRequestingEmail(t),this._applySkipDomainVerification(t),this._applyVersion(t),this._applyWhiteLabeling(t),t}},{key:"_updateFrameUrl",value:function(e){var t=new URL(e),n=this._getFrameParams(t);t.search=n.toString(),this._iFrameURL=t}},{key:"_updateEmbeddedType",value:function(e){e.includes("embeddedSign")?this._embeddedType=s.default.types.EMBEDDED_SIGN:e.includes("embeddedTemplate")?this._embeddedType=s.default.types.EMBEDDED_TEMPLATE:e.includes("embeddedRequest")?this._embeddedType=s.default.types.EMBEDDED_REQUEST:this._embeddedType=s.default.types.UNKNOWN}},{key:"_renderMarkup",value:function(){var e=document.createElement("div");return this._config.container?e.innerHTML=(0,i.safeHtml)(d(),s.default.classNames.BASE,s.default.classNames.IFRAME,s.default.iframe.NAME,this._iFrameURL.href):e.innerHTML=(0,i.safeHtml)(f(),s.default.classNames.BASE,s.default.classNames.BASE_IN_MODAL,s.default.classNames.MODAL_SCREEN,s.default.classNames.MODAL_CONTENT)+(this._config.allowCancel?(0,i.safeHtml)(c(),s.default.classNames.MODAL_CLOSE,s.default.classNames.MODAL_CLOSE_BTN):"")+(0,i.safeHtml)(l(),s.default.classNames.IFRAME,s.default.iframe.NAME,this._iFrameURL.href),e.firstChild}},{key:"_appendMarkup",value:function(){this._baseEl=this._renderMarkup(),this._baseEl.addEventListener("click",this._onEmbeddedClick),this._iFrameEl=this._baseEl.getElementsByClassName(s.default.classNames.IFRAME).item(0),this._config.container?this._config.container.appendChild(this._baseEl):document.body.appendChild(this._baseEl)}},{key:"_clearMarkup",value:function(){this._baseEl.parentElement.removeChild(this._baseEl)}},{key:"_sendMessage",value:function(e){o.default.info("posting message",e);var t=this._iFrameURL.href;this._iFrameEl.contentWindow.postMessage(e,t)}},{key:"_sendConfigurationMessage",value:function(){o.default.info("sending app configuration message"),this._sendMessage({type:s.default.messages.APP_CONFIGURE,payload:{allowCancel:this._config.allowCancel}})}},{key:"_sendDomainVerificationMessage",value:function(e){o.default.info("sending domain verification message",e),this._sendMessage({type:s.default.messages.APP_VERIFY_DOMAIN_RESPONSE,payload:{token:e}})}},{key:"_sendInitializationErrorMessage",value:function(){o.default.info("sending initialization error message"),this._sendMessage({type:s.default.messages.APP_ERROR,payload:{message:"App failed to initialize before timeout"}})}},{key:"_clearInitTimeout",value:function(){this._initTimeout&&(o.default.info("clearing initialization timeout"),clearTimeout(this._initTimeout),this._initTimeout=null)}},{key:"_startInitTimeout",value:function(){this._embeddedType===s.default.types.EMBEDDED_SIGN&&(o.default.info("starting initialization timeout"),this._clearInitTimeout(),this._initTimeout=setTimeout(this._onInitTimeout,this._config.timeout))}},{key:"_maybeStartInitTimeout",value:function(){this._embeddedType===s.default.types.EMBEDDED_SIGN&&this._startInitTimeout()}},{key:"_appDidError",value:function(e){o.default.error("app encountered an error with code:",e.code),this.emit(s.default.events.ERROR,e)}},{key:"_appDidInitialize",value:function(e){o.default.info("app was initialized"),this.emit(s.default.events.INITIALIZE,e),this._sendConfigurationMessage(),this._clearInitTimeout()}},{key:"_appDidRequestDomainVerification",value:function(e){var t=e.token;o.default.info("app requested domain verification",t),this._sendDomainVerificationMessage(t)}},{key:"_appDidSendMessage",value:function(e){var t=e.data,n=e.origin;o.default.info("received message",t,n),this.emit(s.default.events.MESSAGE,t),this._delegateMessage(t)}},{key:"_userDidCloseRequest",value:function(){o.default.info("user requested that the window be closed"),this.close()}},{key:"_userDidCreateTemplate",value:function(e){o.default.info("user created the signature request template"),this.emit(s.default.events.CREATE_TEMPLATE,e)}},{key:"_userDidDeclineRequest",value:function(e){o.default.info("user declined the signature request"),this.emit(s.default.events.DECLINE,e)}},{key:"_userDidReassignRequest",value:function(e){o.default.info("user reassigned the signature request with reason:",e.reason),this.emit(s.default.events.REASSIGN,e)}},{key:"_userDidSendRequest",value:function(e){o.default.info("user sent the signature request"),this.emit(s.default.events.SEND,e)}},{key:"_userDidSignRequest",value:function(e){o.default.info("user signed the signature request"),this.emit(s.default.events.SIGN,e)}},{key:"_onEmbeddedClick",value:function(e){e.srcElement.classList.contains(s.default.classNames.MODAL_CLOSE_BTN)&&(e.preventDefault(),this.close())}},{key:"_onInitTimeout",value:function(){o.default.error("app failed to initialize before timeout"),alert("Something went wrong when preparing your signature request. Please try again."),this._sendInitializationErrorMessage(),this._clearInitTimeout(),this.close()}},{key:"_onMessage",value:function(e){origin===this._iFrameURL.origin&&"object"===("undefined"==typeof data?"undefined":m(data))&&this._appDidSendMessage(e)}},{key:"_delegateMessage",value:function(e){var t=e.type,n=e.payload;switch(t){case s.default.messages.APP_ERROR:this._appDidError(n);break;case s.default.messages.APP_INITIALIZE:this._appDidInitialize(n);break;case s.default.messages.APP_VERIFY_DOMAIN_REQUEST:this._appDidRequestDomainVerification(n);break;case s.default.messages.USER_CLOSE_REQUEST:this._userDidCloseRequest(n);break;case s.default.messages.USER_CREATE_TEMPLATE:this._userDidCreateTemplate(n);break;case s.default.messages.USER_DECLINE_REQUEST:this._userDidDeclineRequest(n);break;case s.default.messages.USER_REASSIGN_REQUEST:this._userDidReassignRequest(n);break;case s.default.messages.USER_SEND_REQUEST:this._userDidSendRequest(n);break;case s.default.messages.USER_SIGN_REQUEST:this._userDidSignRequest(n);break;default:o.default.warn("unhandled cross-origin window message")}}},{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o.default.info("open()",e,t),this._isOpen&&this.close(),this._config=p({},a.default,this._baseConfig,t),this._config.container&&!(this._config.container instanceof HTMLElement))throw new TypeError('"container" must be an element');this._updateFrameUrl(e),this._updateEmbeddedType(e),this._appendMarkup(),this._maybeStartInitTimeout(),this._isOpen=!0,window.addEventListener("message",this._onMessage),this.emit(s.default.events.OPEN,{iFrameUrl:this._iFrameURL.href,url:e})}},{key:"close",value:function(){o.default.info("close()"),this._isOpen&&(this._clearInitTimeout(),this._clearMarkup(),this._baseEl.removeEventListener("click",this._onEmbeddedClick),this._config=null,this._baseEl=null,this._embeddedType=null,this._iFrameEl=null,this._iFrameURL=null,this._isOpen=!1,window.removeEventListener("message",this._onMessage),this.emit(s.default.events.CLOSE))}},{key:"emit",value:function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];o.default.info.apply(o.default,["emit()"].concat(r)),(e=y(v(t.prototype),"emit",this)).call.apply(e,[this].concat(r))}},{key:"element",get:function(){return this._baseEl}},{key:"isOpen",get:function(){return this._isOpen}}]),t}();E(w,"classNames",s.default.classNames),E(w,"events",s.default.events),E(w,"locales",s.default.locales),E(w,"messages",s.default.messages);var C=w;t.default=C},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(e,t,n){var r={},i=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),o=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=function(e,t){return t?t.querySelector(e):document.querySelector(e)}.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),a=null,s=0,u=[],l=n(11);function c(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=r[i.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](i.parts[a]);for(;a<i.parts.length;a++)o.parts.push(g(i.parts[a],t))}else{var s=[];for(a=0;a<i.parts.length;a++)s.push(g(i.parts[a],t));r[i.id]={id:i.id,refs:1,parts:s}}}}function f(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=t.base?o[0]+t.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function d(e,t){var n=o(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=u[u.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),u.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=o(e.insertAt.before,n);n.insertBefore(t,i)}}function h(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=u.indexOf(e);t>=0&&u.splice(t,1)}function p(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return m(t,e.attrs),d(e,t),t}function m(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function g(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var u=s++;n=a||(a=p(t)),r=v.bind(null,n,u,!1),i=v.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",m(t,e.attrs),d(e,t),t}(t),r=function(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=l(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),i=function(){h(n),n.href&&URL.revokeObjectURL(n.href)}):(n=p(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){h(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=i()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return c(n,t),function(e){for(var i=[],o=0;o<n.length;o++){var a=n[o];(s=r[a.id]).refs--,i.push(s)}e&&c(f(e,t),t);for(o=0;o<i.length;o++){var s;if(0===(s=i[o]).refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete r[s.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function v(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),o=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(o).concat([i]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){(e.exports=n(13)(!1)).push([e.i,".x-hellosign-embedded {\n height: 100%; }\n .x-hellosign-embedded--in-modal {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%; }\n\n.x-hellosign-embedded__modal-screen {\n display: block;\n background-color: rgba(0, 0, 0, 0.5);\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%; }\n @media screen and (max-width: 767px) {\n .x-hellosign-embedded__modal-screen {\n display: none; } }\n\n.x-hellosign-embedded__modal-content {\n box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.25);\n position: absolute;\n top: 5vh;\n left: 50%;\n transform: translateX(-50%);\n height: 90vh;\n min-height: 400px;\n width: 80vw;\n min-width: 512px;\n max-width: 1024px; }\n @media screen and (max-width: 767px) {\n .x-hellosign-embedded__modal-content {\n overflow: hidden;\n box-shadow: none;\n height: 100%;\n min-height: 0;\n width: 100%;\n min-width: 0;\n transform: none;\n left: 0;\n top: 0; } }\n\n.x-hellosign-embedded__modal-close {\n position: absolute;\n top: 0;\n right: -60px;\n height: 40px;\n width: 40px; }\n @media screen and (max-width: 767px) {\n .x-hellosign-embedded__modal-close {\n display: none; } }\n\n.x-hellosign-embedded__modal-close-button {\n -webkit-appearance: none;\n height: 100%;\n width: 100%;\n border: none;\n background-color: #1a1a1a;\n transition: background-color 0.35s ease;\n will-change: background-color;\n box-shadow: 0px 3px 9px 0px rgba(0, 0, 0, 0.25);\n cursor: pointer; }\n .x-hellosign-embedded__modal-close-button:hover {\n background-color: #00B3E6; }\n .x-hellosign-embedded__modal-close-button::before, .x-hellosign-embedded__modal-close-button::after {\n content: '';\n position: absolute;\n width: 1px;\n background-color: white;\n height: 20px;\n top: 10px; }\n .x-hellosign-embedded__modal-close-button::before {\n transform: rotateZ(45deg); }\n .x-hellosign-embedded__modal-close-button::after {\n transform: rotateZ(-45deg); }\n\n.x-hellosign-embedded__iframe {\n min-height: 400px;\n background-color: #F7F8F9;\n height: 100%;\n width: 100%;\n border: none; }\n",""])},function(e,t,n){var r=n(14);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(12)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(function(e){!function(e){"use strict";var t=e.URLSearchParams?e.URLSearchParams:null,n=t&&"a=1"===new t({a:1}).toString(),r=t&&"+"===new t("s=%2B").get("s"),i="__URLSearchParams__",o=l.prototype,a=!(!e.Symbol||!e.Symbol.iterator);if(!(t&&n&&r)){o.append=function(e,t){p(this[i],e,t)},o.delete=function(e){delete this[i][e]},o.get=function(e){var t=this[i];return e in t?t[e][0]:null},o.getAll=function(e){var t=this[i];return e in t?t[e].slice(0):[]},o.has=function(e){return e in this[i]},o.set=function(e,t){this[i][e]=[""+t]},o.toString=function(){var e,t,n,r,o=this[i],a=[];for(t in o)for(n=c(t),e=0,r=o[t];e<r.length;e++)a.push(n+"="+c(r[e]));return a.join("&")};var s=!!r&&t&&!n&&e.Proxy;e.URLSearchParams=s?new Proxy(t,{construct:function(e,t){return new e(new l(t[0]).toString())}}):l;var u=e.URLSearchParams.prototype;u.polyfill=!0,u.forEach=u.forEach||function(e,t){var n=h(this.toString());Object.getOwnPropertyNames(n).forEach(function(r){n[r].forEach(function(n){e.call(t,n,r,this)},this)},this)},u.sort=u.sort||function(){var e,t,n,r=h(this.toString()),i=[];for(e in r)i.push(e);for(i.sort(),t=0;t<i.length;t++)this.delete(i[t]);for(t=0;t<i.length;t++){var o=i[t],a=r[o];for(n=0;n<a.length;n++)this.append(o,a[n])}},u.keys=u.keys||function(){var e=[];return this.forEach(function(t,n){e.push(n)}),d(e)},u.values=u.values||function(){var e=[];return this.forEach(function(t){e.push(t)}),d(e)},u.entries=u.entries||function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),d(e)},a&&(u[e.Symbol.iterator]=u[e.Symbol.iterator]||u.entries)}function l(e){((e=e||"")instanceof URLSearchParams||e instanceof l)&&(e=e.toString()),this[i]=h(e)}function c(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return t[e]})}function f(e){return decodeURIComponent(e.replace(/\+/g," "))}function d(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return a&&(n[e.Symbol.iterator]=function(){return n}),n}function h(e){var t={};if("object"==typeof e)for(var n in e)e.hasOwnProperty(n)&&p(t,n,e[n]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var r=e.split("&"),i=0;i<r.length;i++){var o=r[i],a=o.indexOf("=");-1<a?p(t,f(o.slice(0,a)),f(o.slice(a+1))):o&&p(t,f(o),"")}}return t}function p(e,t,n){var r="string"==typeof n?n:null!==n&&void 0!==n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);t in e?e[t].push(r):e[t]=[r]}}(void 0!==e?e:"undefined"!=typeof window?window:this)}).call(this,n(1))},function(e,t,n){(function(e){!function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},i=function(e){return decodeURIComponent(e).replace(/\+/g," ")};"URLSearchParams"in e&&"a=1"===new URLSearchParams("?a=1").toString()||function(){var o=function(e){if(Object.defineProperty(this,"_entries",{value:{}}),"string"==typeof e){if(""!==e)for(var t,n=(e=e.replace(/^\?/,"")).split("&"),r=0;r<n.length;r++)t=n[r].split("="),this.append(i(t[0]),t.length>1?i(t[1]):"")}else if(e instanceof o){var a=this;e.forEach(function(e,t){a.append(e,t)})}},a=o.prototype;a.append=function(e,t){e in this._entries?this._entries[e].push(t.toString()):this._entries[e]=[t.toString()]},a.delete=function(e){delete this._entries[e]},a.get=function(e){return e in this._entries?this._entries[e][0]:null},a.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},a.has=function(e){return e in this._entries},a.set=function(e,t){this._entries[e]=[t.toString()]},a.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var i=0;i<n.length;i++)e.call(t,n[i],r,this)}},a.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),n(e)},a.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),n(e)},a.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),n(e)},t&&(a[Symbol.iterator]=a.entries),a.toString=function(){var e=[];return this.forEach(function(t,n){e.push(r(n)+"="+r(t))}),e.join("&")},e.URLSearchParams=o}()}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t));var r,i=document;if(n&&(void 0===e.location||n!==e.location.href)){(r=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=n,i.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var o=i.createElement("a");if(o.href=t,r&&(i.body.appendChild(o),o.href=o.href),":"===o.protocol||!/:/.test(o.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o})},r=n.prototype;["hash","host","hostname","port","protocol","search"].forEach(function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0},searchParams:{get:function(){var e=new URLSearchParams(this.search),t=this;return["append","delete","set"].forEach(function(n){var r=e[n];e[n]=function(){r.apply(e,arguments),t.search=e.toString()}}),e},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval(function(){e.location.origin=t()},100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}).call(this,n(1))},function(e,t,n){n(17),n(16),n(15),e.exports=n(10)}]).default}); |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
594034
22
7
1
80
4397