{"version":3,"sources":["wwwroot/js/event/es6-promise.auto.min.js","wwwroot/js/event/axios.min.js","wwwroot/js/event/store.min.js","wwwroot/js/event/sweetalert.10.13.0.min.js","wwwroot/js/event/CDForm.js"],"names":[],"mappings":"AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACRA;AACA;ACDA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"cd_event.min.js","sourcesContent":["!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):t.ES6Promise=e()}(this,function(){\"use strict\";function t(t){var e=typeof t;return null!==t&&(\"object\"===e||\"function\"===e)}function e(t){return\"function\"==typeof t}function n(t){B=t}function r(t){G=t}function o(){return function(){return process.nextTick(a)}}function i(){return\"undefined\"!=typeof z?function(){z(a)}:c()}function s(){var t=0,e=new J(a),n=document.createTextNode(\"\");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function u(){var t=new MessageChannel;return t.port1.onmessage=a,function(){return t.port2.postMessage(0)}}function c(){var t=setTimeout;return function(){return t(a,1)}}function a(){for(var t=0;t\n\t * @license MIT\n\t */\ne.exports=function(e){return null!=e&&(n(e)||r(e)||!!e._isBuffer)}},function(e,t,n){\"use strict\";function r(e){this.defaults=e,this.interceptors={request:new s,response:new s}}var o=n(6),i=n(2),s=n(17),u=n(18);r.prototype.request=function(e){\"string\"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(o,{method:\"get\"},this.defaults,e),e.method=e.method.toLowerCase();var t=[u,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},i.forEach([\"delete\",\"get\",\"head\",\"options\"],function(e){r.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}}),i.forEach([\"post\",\"put\",\"patch\"],function(e){r.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){\"use strict\";function r(e,t){!i.isUndefined(e)&&i.isUndefined(e[\"Content-Type\"])&&(e[\"Content-Type\"]=t)}function o(){var e;return\"undefined\"!=typeof XMLHttpRequest?e=n(8):\"undefined\"!=typeof process&&(e=n(8)),e}var i=n(2),s=n(7),u={\"Content-Type\":\"application/x-www-form-urlencoded\"},a={adapter:o(),transformRequest:[function(e,t){return s(t,\"Content-Type\"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(r(t,\"application/x-www-form-urlencoded;charset=utf-8\"),e.toString()):i.isObject(e)?(r(t,\"application/json;charset=utf-8\"),JSON.stringify(e)):e}],transformResponse:[function(e){if(\"string\"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:\"XSRF-TOKEN\",xsrfHeaderName:\"X-XSRF-TOKEN\",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};a.headers={common:{Accept:\"application/json, text/plain, */*\"}},i.forEach([\"delete\",\"get\",\"head\"],function(e){a.headers[e]={}}),i.forEach([\"post\",\"put\",\"patch\"],function(e){a.headers[e]=i.merge(u)}),e.exports=a},function(e,t,n){\"use strict\";var r=n(2);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){\"use strict\";var r=n(2),o=n(9),i=n(12),s=n(13),u=n(14),a=n(10),c=\"undefined\"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(15);e.exports=function(e){return new Promise(function(t,f){var p=e.data,d=e.headers;r.isFormData(p)&&delete d[\"Content-Type\"];var l=new XMLHttpRequest,h=\"onreadystatechange\",m=!1;if(\"undefined\"==typeof window||!window.XDomainRequest||\"withCredentials\"in l||u(e.url)||(l=new window.XDomainRequest,h=\"onload\",m=!0,l.onprogress=function(){},l.ontimeout=function(){}),e.auth){var y=e.auth.username||\"\",w=e.auth.password||\"\";d.Authorization=\"Basic \"+c(y+\":\"+w)}if(l.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,l[h]=function(){if(l&&(4===l.readyState||m)&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf(\"file:\"))){var n=\"getAllResponseHeaders\"in l?s(l.getAllResponseHeaders()):null,r=e.responseType&&\"text\"!==e.responseType?l.response:l.responseText,i={data:r,status:1223===l.status?204:l.status,statusText:1223===l.status?\"No Content\":l.statusText,headers:n,config:e,request:l};o(t,f,i),l=null}},l.onerror=function(){f(a(\"Network Error\",e,null,l)),l=null},l.ontimeout=function(){f(a(\"timeout of \"+e.timeout+\"ms exceeded\",e,\"ECONNABORTED\",l)),l=null},r.isStandardBrowserEnv()){var g=n(16),v=(e.withCredentials||u(e.url))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;v&&(d[e.xsrfHeaderName]=v)}if(\"setRequestHeader\"in l&&r.forEach(d,function(e,t){\"undefined\"==typeof p&&\"content-type\"===t.toLowerCase()?delete d[t]:l.setRequestHeader(t,e)}),e.withCredentials&&(l.withCredentials=!0),e.responseType)try{l.responseType=e.responseType}catch(t){if(\"json\"!==e.responseType)throw t}\"function\"==typeof e.onDownloadProgress&&l.addEventListener(\"progress\",e.onDownloadProgress),\"function\"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener(\"progress\",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){l&&(l.abort(),f(e),l=null)}),void 0===p&&(p=null),l.send(p)})}},function(e,t,n){\"use strict\";var r=n(10);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r(\"Request failed with status code \"+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){\"use strict\";var r=n(11);e.exports=function(e,t,n,o,i){var s=new Error(e);return r(s,t,n,o,i)}},function(e,t){\"use strict\";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){\"use strict\";function r(e){return encodeURIComponent(e).replace(/%40/gi,\"@\").replace(/%3A/gi,\":\").replace(/%24/g,\"$\").replace(/%2C/gi,\",\").replace(/%20/g,\"+\").replace(/%5B/gi,\"[\").replace(/%5D/gi,\"]\")}var o=n(2);e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(o.isURLSearchParams(t))i=t.toString();else{var s=[];o.forEach(t,function(e,t){null!==e&&\"undefined\"!=typeof e&&(o.isArray(e)?t+=\"[]\":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+\"=\"+r(e))}))}),i=s.join(\"&\")}return i&&(e+=(e.indexOf(\"?\")===-1?\"?\":\"&\")+i),e}},function(e,t,n){\"use strict\";var r=n(2),o=[\"age\",\"authorization\",\"content-length\",\"content-type\",\"etag\",\"expires\",\"from\",\"host\",\"if-modified-since\",\"if-unmodified-since\",\"last-modified\",\"location\",\"max-forwards\",\"proxy-authorization\",\"referer\",\"retry-after\",\"user-agent\"];e.exports=function(e){var t,n,i,s={};return e?(r.forEach(e.split(\"\\n\"),function(e){if(i=e.indexOf(\":\"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;\"set-cookie\"===t?s[t]=(s[t]?s[t]:[]).concat([n]):s[t]=s[t]?s[t]+\", \"+n:n}}),s):s}},function(e,t,n){\"use strict\";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute(\"href\",t),t=o.href),o.setAttribute(\"href\",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,\"\"):\"\",host:o.host,search:o.search?o.search.replace(/^\\?/,\"\"):\"\",hash:o.hash?o.hash.replace(/^#/,\"\"):\"\",hostname:o.hostname,port:o.port,pathname:\"/\"===o.pathname.charAt(0)?o.pathname:\"/\"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement(\"a\");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t){\"use strict\";function n(){this.message=\"String contains an invalid character\"}function r(e){for(var t,r,i=String(e),s=\"\",u=0,a=o;i.charAt(0|u)||(a=\"=\",u%1);s+=a.charAt(63&t>>8-u%1*8)){if(r=i.charCodeAt(u+=.75),r>255)throw new n;t=t<<8|r}return s}var o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";n.prototype=new Error,n.prototype.code=5,n.prototype.name=\"InvalidCharacterError\",e.exports=r},function(e,t,n){\"use strict\";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,i,s){var u=[];u.push(e+\"=\"+encodeURIComponent(t)),r.isNumber(n)&&u.push(\"expires=\"+new Date(n).toGMTString()),r.isString(o)&&u.push(\"path=\"+o),r.isString(i)&&u.push(\"domain=\"+i),s===!0&&u.push(\"secure\"),document.cookie=u.join(\"; \")},read:function(e){var t=document.cookie.match(new RegExp(\"(^|;\\\\s*)(\"+e+\")=([^;]*)\"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,\"\",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,n){\"use strict\";function r(){this.handlers=[]}var o=n(2);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){\"use strict\";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n(2),i=n(19),s=n(20),u=n(6),a=n(21),c=n(22);e.exports=function(e){r(e),e.baseURL&&!a(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.forEach([\"delete\",\"get\",\"head\",\"post\",\"put\",\"patch\",\"common\"],function(t){delete e.headers[t]});var t=e.adapter||u.adapter;return t(e).then(function(t){return r(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return s(t)||(r(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){\"use strict\";var r=n(2);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t){\"use strict\";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t){\"use strict\";e.exports=function(e){return/^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(e)}},function(e,t){\"use strict\";e.exports=function(e,t){return t?e.replace(/\\/+$/,\"\")+\"/\"+t.replace(/^\\/+/,\"\"):e}},function(e,t){\"use strict\";function n(e){this.message=e}n.prototype.toString=function(){return\"Cancel\"+(this.message?\": \"+this.message:\"\")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,n){\"use strict\";function r(e){if(\"function\"!=typeof e)throw new TypeError(\"executor must be a function.\");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new o(e),t(n.reason))})}var o=n(23);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r(function(t){e=t});return{token:t,cancel:e}},e.exports=r},function(e,t){\"use strict\";e.exports=function(e){return function(t){return e.apply(null,t)}}}])});\n//# sourceMappingURL=axios.min.map","/* Copyright (c) 2010-2013 Marcus Westin */\n\"use strict\";(function(e,t){typeof define==\"function\"&&define.amd?define([],t):typeof exports==\"object\"?module.exports=t():e.store=t()})(this,function(){function o(){try{return r in t&&t[r]}catch(e){return!1}}var e={},t=typeof window!=\"undefined\"?window:global,n=t.document,r=\"localStorage\",i=\"script\",s;e.disabled=!1,e.version=\"1.3.20\",e.set=function(e,t){},e.get=function(e,t){},e.has=function(t){return e.get(t)!==undefined},e.remove=function(e){},e.clear=function(){},e.transact=function(t,n,r){r==null&&(r=n,n=null),n==null&&(n={});var i=e.get(t,n);r(i),e.set(t,i)},e.getAll=function(){},e.forEach=function(){},e.serialize=function(e){return JSON.stringify(e)},e.deserialize=function(e){if(typeof e!=\"string\")return undefined;try{return JSON.parse(e)}catch(t){return e||undefined}};if(o())s=t[r],e.set=function(t,n){return n===undefined?e.remove(t):(s.setItem(t,e.serialize(n)),n)},e.get=function(t,n){var r=e.deserialize(s.getItem(t));return r===undefined?n:r},e.remove=function(e){s.removeItem(e)},e.clear=function(){s.clear()},e.getAll=function(){var t={};return e.forEach(function(e,n){t[e]=n}),t},e.forEach=function(t){for(var n=0;ndocument.w=window'),a.close(),u=a.w.frames[0].document,s=u.createElement(\"div\")}catch(f){s=n.createElement(\"div\"),u=n.body}var l=function(t){return function(){var n=Array.prototype.slice.call(arguments,0);n.unshift(s),u.appendChild(s),s.addBehavior(\"#default#userData\"),s.load(r);var i=t.apply(e,n);return u.removeChild(s),i}},c=new RegExp(\"[!\\\"#$%&'()*+,/\\\\\\\\:;<=>?@[\\\\]^`{|}~]\",\"g\"),h=function(e){return e.replace(/^d/,\"___$&\").replace(c,\"___\")};e.set=l(function(t,n,i){return n=h(n),i===undefined?e.remove(n):(t.setAttribute(n,e.serialize(i)),t.save(r),i)}),e.get=l(function(t,n,r){n=h(n);var i=e.deserialize(t.getAttribute(n));return i===undefined?r:i}),e.remove=l(function(e,t){t=h(t),e.removeAttribute(t),e.save(r)}),e.clear=l(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(r);for(var n=t.length-1;n>=0;n--)e.removeAttribute(t[n].name);e.save(r)}),e.getAll=function(t){var n={};return e.forEach(function(e,t){n[e]=t}),n},e.forEach=l(function(t,n){var r=t.XMLDocument.documentElement.attributes;for(var i=0,s;s=r[i];++i)n(s.name,e.deserialize(t.getAttribute(s.name)))})}try{var p=\"__storejs__\";e.set(p,p),e.get(p)!=p&&(e.disabled=!0),e.remove(p)}catch(f){e.disabled=!0}return e.enabled=!e.disabled,e});","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=t||self).Sweetalert2=e()}(this,function(){\"use strict\";function r(t){return(r=\"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 a(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function o(t,e){for(var n=0;nt.clientHeight)}function lt(t){var e=window.getComputedStyle(t),t=parseFloat(e.getPropertyValue(\"animation-duration\")||\"0\"),e=parseFloat(e.getPropertyValue(\"transition-duration\")||\"0\");return 0\\n
\\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n \\n

    \\n \\n
    \\n
    \\n
    \\n \\n \\n
    \\n \\n \\n
    \\n \\n
    \\n \\n \\n
    \\n
    \\n
    \\n
    \\n \\n \\n \\n
    \\n
    \\n
    \\n
    \\n
    \\n \\n').replace(/(^|\\n)\\s*/g,\"\"),kt=function(t){var e,n,o,i,r,a=!!(i=k())&&(i.parentNode.removeChild(i),bt([document.documentElement,document.body],[$[\"no-backdrop\"],$[\"toast-shown\"],$[\"has-column\"]]),!0);pt()?K(\"SweetAlert2 requires document to initialize\"):((r=document.createElement(\"div\")).className=$.container,a&&vt(r,$[\"no-transition\"]),_(r,Ct),(i=\"string\"==typeof(e=t.target)?document.querySelector(e):e).appendChild(r),a=t,(e=x()).setAttribute(\"role\",a.toast?\"alert\":\"dialog\"),e.setAttribute(\"aria-live\",a.toast?\"polite\":\"assertive\"),a.toast||e.setAttribute(\"aria-modal\",\"true\"),r=i,\"rtl\"===window.getComputedStyle(r).direction&&vt(k(),$.rtl),t=E(),a=yt(t,$.input),e=yt(t,$.file),n=t.querySelector(\".\".concat($.range,\" input\")),o=t.querySelector(\".\".concat($.range,\" output\")),i=yt(t,$.select),r=t.querySelector(\".\".concat($.checkbox,\" input\")),t=yt(t,$.textarea),a.oninput=ft,e.onchange=ft,i.onchange=ft,r.onchange=ft,t.oninput=ft,n.oninput=function(t){ft(t),o.value=n.value},n.onchange=function(t){ft(t),n.nextSibling.value=n.value})},At=function(t,e){t.jquery?xt(e,t):_(e,t.toString())},xt=function(t,e){if(t.textContent=\"\",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Bt=function(){if(pt())return!1;var t,e=document.createElement(\"div\"),n={WebkitAnimation:\"webkitAnimationEnd\",OAnimation:\"oAnimationEnd oanimationend\",animation:\"animationend\"};for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&void 0!==e.style[t])return n[t];return!1}();function Pt(t,e,n){st(t,n[\"show\".concat(m(e),\"Button\")],\"inline-block\"),_(t,n[\"\".concat(e,\"ButtonText\")]),t.setAttribute(\"aria-label\",n[\"\".concat(e,\"ButtonAriaLabel\")]),t.className=$[e],z(t,n,\"\".concat(e,\"Button\")),vt(t,n[\"\".concat(e,\"ButtonClass\")])}function Et(t,e){var n,o,i=k();i&&(o=i,\"string\"==typeof(n=e.backdrop)?o.style.background=n:n||vt([document.documentElement,document.body],$[\"no-backdrop\"]),!e.backdrop&&e.allowOutsideClick&&W('\"allowOutsideClick\" parameter requires `backdrop` parameter to be set to `true`'),o=i,(n=e.position)in $?vt(o,$[n]):(W('The \"position\" parameter is not valid, defaulting to \"center\"'),vt(o,$.center)),n=i,!(o=e.grow)||\"string\"!=typeof o||(o=\"grow-\".concat(o))in $&&vt(n,$[o]),z(i,e,\"container\"),(e=document.body.getAttribute(\"data-swal2-queue-step\"))&&(i.setAttribute(\"data-queue-step\",e),document.body.removeAttribute(\"data-swal2-queue-step\")))}function St(t,e){t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)}function Ot(t,e,n){var o,i;n.inputLabel&&(t.id=$.input,o=document.createElement(\"label\"),i=$[\"input-label\"],o.setAttribute(\"for\",t.id),o.className=i,vt(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement(\"beforebegin\",o))}var Tt={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Lt=[\"input\",\"file\",\"range\",\"select\",\"radio\",\"checkbox\",\"textarea\"],qt=function(t){if(!Mt[t.input])return K('Unexpected type of input! Expected \"text\", \"email\", \"password\", \"number\", \"tel\", \"select\", \"radio\", \"checkbox\", \"textarea\", \"file\" or \"url\", got \"'.concat(t.input,'\"'));var e=It(t.input),n=Mt[t.input](e,t);rt(n),setTimeout(function(){nt(n)})},Dt=function(t,e){var n=et(E(),t);if(n)for(var o in!function(t){for(var e=0;e=o.progressSteps.length&&W(\"Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)\"),o.progressSteps.forEach(function(t,e){var n,t=(n=t,t=document.createElement(\"li\"),vt(t,$[\"progress-step\"]),_(t,n),t);i.appendChild(t),e===r&&vt(t,$[\"active-progress-step\"]),e!==o.progressSteps.length-1&&(t=o,e=document.createElement(\"li\"),vt(e,$[\"progress-step-line\"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e=e,i.appendChild(e))})}function Nt(t,e){var n=M();z(n,e,\"header\"),Rt(0,e),n=t,t=e,(n=Tt.innerParams.get(n))&&t.icon===n.icon&&B()?zt(B(),t):(Ft(),t.icon&&(-1!==Object.keys(X).indexOf(t.icon)?(n=A(\".\".concat($.icon,\".\").concat(X[t.icon])),rt(n),Kt(n,t),zt(n,t),vt(n,t.showClass.icon)):K('Unknown icon! Expected \"success\", \"error\", \"warning\", \"info\" or \"question\", got \"'.concat(t.icon,'\"')))),function(t){var e=S();if(!t.imageUrl)return at(e);rt(e,\"\"),e.setAttribute(\"src\",t.imageUrl),e.setAttribute(\"alt\",t.imageAlt),it(e,\"width\",t.imageWidth),it(e,\"height\",t.imageHeight),e.className=$.image,z(e,t,\"image\")}(e),n=e,t=P(),st(t,n.title||n.titleText),n.title&&mt(n.title,t),n.titleText&&(t.innerText=n.titleText),z(t,n,\"title\"),n=e,e=R(),_(e,n.closeButtonHtml),z(e,n,\"closeButton\"),st(e,n.showCloseButton),e.setAttribute(\"aria-label\",n.closeButtonAriaLabel)}function Ut(t,e){var n,o;o=e,n=x(),it(n,\"width\",o.width),it(n,\"padding\",o.padding),o.background&&(n.style.background=o.background),Jt(n,o),Et(0,e),Nt(t,e),Ht(t,e),ht(0,e),o=e,t=H(),st(t,o.footer),o.footer&&mt(o.footer,t),z(t,o,\"footer\"),\"function\"==typeof e.didRender?e.didRender(x()):\"function\"==typeof e.onRender&&e.onRender(x())}function _t(){return L()&&L().click()}var Ft=function(){for(var t=n(),e=0;e\\n \\n
    \\n
    \\n '):\"error\"===e.icon?_(t,'\\n \\n \\n \\n \\n '):_(t,Zt({question:\"?\",warning:\"!\",info:\"i\"}[e.icon]))},Yt=function(t,e){if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(var n=0,o=[\".swal2-success-line-tip\",\".swal2-success-line-long\",\".swal2-x-mark-line-left\",\".swal2-x-mark-line-right\"];n').concat(t,\"\")},Qt=[],Jt=function(t,e){t.className=\"\".concat($.popup,\" \").concat(wt(t)?e.showClass.popup:\"\"),e.toast?(vt([document.documentElement,document.body],$[\"toast-shown\"]),vt(t,$.toast)):vt(t,$.modal),z(t,e,\"popup\"),\"string\"==typeof e.customClass&&vt(t,e.customClass),e.icon&&vt(t,$[\"icon-\".concat(e.icon)])};function $t(t){var e=x();e||Mn.fire(),e=x();var n=I(),o=D();!t&&wt(L())&&(t=L()),rt(n),t&&(at(t),o.setAttribute(\"data-button-to-replace\",t.className)),o.parentNode.insertBefore(o,t),vt([e,n],$.loading),rt(o),e.setAttribute(\"data-loading\",!0),e.setAttribute(\"aria-busy\",!0),e.focus()}function Xt(){return new Promise(function(t){var e=window.scrollX,n=window.scrollY;ee.restoreFocusTimeout=setTimeout(function(){ee.previousActiveElement&&ee.previousActiveElement.focus?(ee.previousActiveElement.focus(),ee.previousActiveElement=null):document.body&&document.body.focus(),t()},100),void 0!==e&&void 0!==n&&window.scrollTo(e,n)})}function Gt(){if(ee.timeout)return function(){var t=V(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty(\"transition\"),t.style.width=\"100%\";var n=parseInt(window.getComputedStyle(t).width),n=parseInt(e/n*100);t.style.removeProperty(\"transition\"),t.style.width=\"\".concat(n,\"%\")}(),ee.timeout.stop()}function te(){if(ee.timeout){var t=ee.timeout.start();return dt(t),t}}var ee={},ne=!1,oe={};function ie(t){for(var e=t.target;e&&e!==document;e=e.parentNode)for(var n in oe){var o=e.getAttribute(n);if(o)return void oe[n].fire({template:o})}}function re(t){return Object.prototype.hasOwnProperty.call(se,t)}function ae(t){return le[t]}function ce(t){for(var e in t)re(o=e)||W('Unknown parameter \"'.concat(o,'\"')),t.toast&&(n=e,-1!==de.indexOf(n)&&W('The parameter \"'.concat(n,'\" is incompatible with toasts'))),ae(n=e)&&v(n,ae(n));var n,o}var se={title:\"\",titleText:\"\",text:\"\",html:\"\",footer:\"\",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:\"swal2-show\",backdrop:\"swal2-backdrop-show\",icon:\"swal2-icon-show\"},hideClass:{popup:\"swal2-hide\",backdrop:\"swal2-backdrop-hide\",icon:\"swal2-icon-hide\"},customClass:{},target:\"body\",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:\"OK\",confirmButtonAriaLabel:\"\",confirmButtonColor:void 0,denyButtonText:\"No\",denyButtonAriaLabel:\"\",denyButtonColor:void 0,cancelButtonText:\"Cancel\",cancelButtonAriaLabel:\"\",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,showCloseButton:!1,closeButtonHtml:\"×\",closeButtonAriaLabel:\"Close this dialog\",loaderHtml:\"\",showLoaderOnConfirm:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:\"\",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:\"\",inputLabel:\"\",inputValue:\"\",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:\"center\",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,willOpen:void 0,didOpen:void 0,onRender:void 0,didRender:void 0,onClose:void 0,onAfterClose:void 0,willClose:void 0,didClose:void 0,onDestroy:void 0,didDestroy:void 0,scrollbarPadding:!0},ue=[\"allowEscapeKey\",\"allowOutsideClick\",\"background\",\"buttonsStyling\",\"cancelButtonAriaLabel\",\"cancelButtonColor\",\"cancelButtonText\",\"closeButtonAriaLabel\",\"closeButtonHtml\",\"confirmButtonAriaLabel\",\"confirmButtonColor\",\"confirmButtonText\",\"currentProgressStep\",\"customClass\",\"denyButtonAriaLabel\",\"denyButtonColor\",\"denyButtonText\",\"didClose\",\"didDestroy\",\"footer\",\"hideClass\",\"html\",\"icon\",\"iconColor\",\"imageAlt\",\"imageHeight\",\"imageUrl\",\"imageWidth\",\"onAfterClose\",\"onClose\",\"onDestroy\",\"progressSteps\",\"reverseButtons\",\"showCancelButton\",\"showCloseButton\",\"showConfirmButton\",\"showDenyButton\",\"text\",\"title\",\"titleText\",\"willClose\"],le={animation:'showClass\" and \"hideClass',onBeforeOpen:\"willOpen\",onOpen:\"didOpen\",onRender:\"didRender\",onClose:\"willClose\",onAfterClose:\"didClose\",onDestroy:\"didDestroy\"},de=[\"allowOutsideClick\",\"allowEnterKey\",\"backdrop\",\"focusConfirm\",\"focusDeny\",\"focusCancel\",\"heightAuto\",\"keydownListenerCapture\"],pe=Object.freeze({isValidParameter:re,isUpdatableParameter:function(t){return-1!==ue.indexOf(t)},isDeprecatedParameter:ae,argsToParams:function(n){var o={};return\"object\"!==r(n[0])||C(n[0])?[\"title\",\"html\",\"icon\"].forEach(function(t,e){e=n[e];\"string\"==typeof e||C(e)?o[t]=e:void 0!==e&&K(\"Unexpected type of \".concat(t,'! Expected \"string\" or \"Element\", got ').concat(r(e)))}):s(o,n[0]),o},isVisible:function(){return wt(x())},clickConfirm:_t,clickDeny:function(){return q()&&q().click()},clickCancel:function(){return j()&&j().click()},getContainer:k,getPopup:x,getTitle:P,getContent:E,getHtmlContainer:function(){return t($[\"html-container\"])},getImage:S,getIcon:B,getIcons:n,getInputLabel:function(){return t($[\"input-label\"])},getCloseButton:R,getActions:I,getConfirmButton:L,getDenyButton:q,getCancelButton:j,getLoader:D,getHeader:M,getFooter:H,getTimerProgressBar:V,getFocusableElements:N,getValidationMessage:T,isLoading:function(){return x().hasAttribute(\"data-loading\")},fire:function(){for(var t=arguments.length,e=new Array(t),n=0;nwindow.innerHeight&&(tt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue(\"padding-right\")),document.body.style.paddingRight=\"\".concat(tt.previousBodyPadding+function(){var t=document.createElement(\"div\");t.className=$[\"scrollbar-measure\"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}(),\"px\"))}function he(){return!!window.MSInputMethodContext&&!!document.documentMode}function ge(){var t=k(),e=x();t.style.removeProperty(\"align-items\"),e.offsetTop<0&&(t.style.alignItems=\"flex-start\")}var ve=function(){navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)||x().scrollHeight>window.innerHeight-44&&(k().style.paddingBottom=\"\".concat(44,\"px\"))},be=function(){var e,t=k();t.ontouchstart=function(t){e=ye(t)},t.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())}},ye=function(t){var e=t.target,n=k();return!we(t)&&!Ce(t)&&(e===n||!(ut(n)||\"INPUT\"===e.tagName||ut(E())&&E().contains(e)))},we=function(t){return t.touches&&t.touches.length&&\"stylus\"===t.touches[0].touchType},Ce=function(t){return t.touches&&1\")),kt(t)}function Ie(t){var e=k(),n=x();\"function\"==typeof t.willOpen?t.willOpen(n):\"function\"==typeof t.onBeforeOpen&&t.onBeforeOpen(n);var o=window.getComputedStyle(document.body).overflowY;$e(e,n,t),setTimeout(function(){Qe(e,n)},10),U()&&(Je(e,t.scrollbarPadding,o),g(document.body.children).forEach(function(t){t===k()||function(t,e){if(\"function\"==typeof t.contains)return t.contains(e)}(t,k())||(t.hasAttribute(\"aria-hidden\")&&t.setAttribute(\"data-previous-aria-hidden\",t.getAttribute(\"aria-hidden\")),t.setAttribute(\"aria-hidden\",\"true\"))})),G()||ee.previousActiveElement||(ee.previousActiveElement=document.activeElement),Ze(n,t),bt(e,$[\"no-transition\"])}function Me(t){var e=x();t.target===e&&(t=k(),e.removeEventListener(Bt,Me),t.style.overflowY=\"auto\")}function He(t,e){t.closePopup({isConfirmed:!0,value:e})}function Ve(t,e,n){var o=N();if(o.length)return(e+=n)===o.length?e=0:-1===e&&(e=o.length-1),o[e].focus();x().focus()}var Re=[\"swal-title\",\"swal-html\",\"swal-footer\"],Ne=function(t){var n={};return g(t.querySelectorAll(\"swal-param\")).forEach(function(t){Ye(t,[\"name\",\"value\"]);var e=t.getAttribute(\"name\"),t=t.getAttribute(\"value\");\"boolean\"==typeof se[e]&&\"false\"===t&&(t=!1),\"object\"===r(se[e])&&(t=JSON.parse(t)),n[e]=t}),n},Ue=function(t){var n={};return g(t.querySelectorAll(\"swal-button\")).forEach(function(t){Ye(t,[\"type\",\"color\",\"aria-label\"]);var e=t.getAttribute(\"type\");n[\"\".concat(e,\"ButtonText\")]=t.innerHTML,n[\"show\".concat(m(e),\"Button\")]=!0,t.hasAttribute(\"color\")&&(n[\"\".concat(e,\"ButtonColor\")]=t.getAttribute(\"color\")),t.hasAttribute(\"aria-label\")&&(n[\"\".concat(e,\"ButtonAriaLabel\")]=t.getAttribute(\"aria-label\"))}),n},_e=function(t){var e={},t=t.querySelector(\"swal-image\");return t&&(Ye(t,[\"src\",\"width\",\"height\",\"alt\"]),t.hasAttribute(\"src\")&&(e.imageUrl=t.getAttribute(\"src\")),t.hasAttribute(\"width\")&&(e.imageWidth=t.getAttribute(\"width\")),t.hasAttribute(\"height\")&&(e.imageHeight=t.getAttribute(\"height\")),t.hasAttribute(\"alt\")&&(e.imageAlt=t.getAttribute(\"alt\"))),e},Fe=function(t){var e={},t=t.querySelector(\"swal-icon\");return t&&(Ye(t,[\"type\",\"color\"]),t.hasAttribute(\"type\")&&(e.icon=t.getAttribute(\"type\")),t.hasAttribute(\"color\")&&(e.iconColor=t.getAttribute(\"color\")),e.iconHtml=t.innerHTML),e},ze=function(t){var n={},e=t.querySelector(\"swal-input\");e&&(Ye(e,[\"type\",\"label\",\"placeholder\",\"value\"]),n.input=e.getAttribute(\"type\")||\"text\",e.hasAttribute(\"label\")&&(n.inputLabel=e.getAttribute(\"label\")),e.hasAttribute(\"placeholder\")&&(n.inputPlaceholder=e.getAttribute(\"placeholder\")),e.hasAttribute(\"value\")&&(n.inputValue=e.getAttribute(\"value\")));t=t.querySelectorAll(\"swal-input-option\");return t.length&&(n.inputOptions={},g(t).forEach(function(t){Ye(t,[\"value\"]);var e=t.getAttribute(\"value\"),t=t.innerHTML;n.inputOptions[e]=t})),n},We=function(t,e){var n,o={};for(n in e){var i=e[n],r=t.querySelector(i);r&&(Ye(r,[]),o[i.replace(/^swal-/,\"\")]=r.innerHTML)}return o},Ke=function(t){var e=Re.concat([\"swal-param\",\"swal-button\",\"swal-image\",\"swal-icon\",\"swal-input\",\"swal-input-option\"]);g(t.querySelectorAll(\"*\")).forEach(function(t){t=t.tagName.toLowerCase();-1===e.indexOf(t)&&W(\"Unrecognized element <\".concat(t,\">\"))})},Ye=function(e,n){g(e.attributes).forEach(function(t){-1===n.indexOf(t.name)&&W(['Unrecognized attribute \"'.concat(t.name,'\" on <').concat(e.tagName.toLowerCase(),\">.\"),\"\".concat(n.length?\"Allowed attributes are: \".concat(n.join(\", \")):\"To set the value, use HTML within the element.\")])})},Ze=function(t,e){\"function\"==typeof e.didOpen?setTimeout(function(){return e.didOpen(t)}):\"function\"==typeof e.onOpen&&setTimeout(function(){return e.onOpen(t)})},Qe=function(t,e){Bt&<(e)?(t.style.overflowY=\"hidden\",e.addEventListener(Bt,Me)):t.style.overflowY=\"auto\"},Je=function(t,e,n){var o;(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||\"MacIntel\"===navigator.platform&&1 0 ? label.text().replace(\"*\",\"\") : hForm.elements[i].name });\r\n\r\n //return false;\r\n }\r\n }\r\n\r\n if (requiredFields.length>0) {\r\n console.log(requiredFields);\r\n var fieldsHtml = \"
    \";\r\n for (var i = 0; i < requiredFields.length; i++) {\r\n fieldsHtml += requiredFields[i].label + \"
    \";\r\n }\r\n\r\n Swal.fire({\r\n title: 'Missing Required Fields',\r\n icon: 'warning',\r\n html:\r\n `The following ${requiredFields.length} required fields are missing.
    ${fieldsHtml}`,\r\n showCloseButton: false,\r\n showCancelButton: false,\r\n focusConfirm: false,\r\n confirmButtonText: \"Ok\"\r\n })\r\n return false;\r\n }\r\n\r\n\r\n\r\n var bannedQueryParms = ['fbclid', 'mscklid', 'zanpid']; \r\n var formArray = $(\"form\").serializeArray();\r\n var surveyData = {}; \r\n $.each(formArray, function () {\r\n if (surveyData[this.name] !== undefined) {\r\n if (!surveyData[this.name].push) {\r\n surveyData[this.name] = [surveyData[this.name]];\r\n }\r\n surveyData[this.name].push(this.value || '');\r\n\r\n } else {\r\n surveyData[this.name] = this.value || ''; \r\n } \r\n }); \r\n\r\n try {\r\n var params = new URLSearchParams(window.location.search);\r\n var paramObj = [];\r\n for (var value of params.keys()) {\r\n if (!bannedQueryParms.includes(value)) {\r\n paramObj.push({\r\n param: value,\r\n value: params.get(value)\r\n });\r\n }\r\n }\r\n surveyData[\"__url_params\"] = paramObj;\r\n } catch (error) {\r\n console.error(error);\r\n }\r\n var resultAsString = JSON.stringify(surveyData);\r\n\r\n var loader = document.getElementById(\"CampaignDeputyLoader\");\r\n loader.style.display = 'block';\r\n \r\n axios.post(`${CD_FORM_URL_BASE}/api/v1.0/Event/${cd_formId}`,surveyData,{ withCredentials: true })\r\n .then(function (response) {\r\n cd_event_success_then(redirectTo, redirectDelay, cd_formId)\r\n }).catch(function (error) {\r\n //give it one more go\r\n if (logdna) {\r\n logdna.info('Failure posting 1st message', { error: error });\r\n }\r\n axios.post(`${CD_FORM_URL_BASE}/api/v1.0/Event/${cd_formId}`, surveyData, { withCredentials: true })\r\n .then(function (response) {\r\n cd_event_success_then(redirectTo, redirectDelay, cd_formId)\r\n }).catch(function (error) {\r\n console.error(error);\r\n if (logdna) {\r\n logdna.error('Failure posting 2st message', { error: error });\r\n }\r\n loader.style.display = 'none';\r\n Swal.fire({\r\n icon: 'error',\r\n title: 'Oops...',\r\n text: 'Something went wrong. You can try to submit your form again as the issue could be a brief temporary issue!'\r\n });\r\n }); \r\n }); \r\n\r\n return false;\r\n }); \r\n\r\n }\r\n\r\n //console.log(cdForms);\r\n});\r\n\r\nfunction cd_event_success_then(redirectTo, redirectDelay, cd_formId) {\r\n var loader = document.getElementById(\"CampaignDeputyLoader\");\r\n loader.style.display = 'none';\r\n if (redirectDelay === 0) {\r\n cd_onNavigateToUrlv2(null, { url: redirectTo });\r\n } else {\r\n cd_onNavigateToUrlv2(null, { url: `/event/thankyou/${cd_formId}` });\r\n } \r\n}\r\n\r\nvar CD_FORM_URL_BASE = \"https://actions.campaigndeputy.com\"; //var so we can override in dev\r\nvar CD_FORM_URL_BASE_FAILOVER = \"https://actions.campaigndeputy.io\";\r\nvar CD_FORM_CREATE_STYLE = true;\r\n\r\nvar cdeputyCss = {\r\n body: \"sv_body cd-body\",\r\n matrix: {\r\n root: \"table table-striped\"\r\n },\r\n pageDescription: \"cd-form-description\",\r\n navigationButton: \"button btn-lg\",\r\n question: {\r\n mainRoot: \"sv_q sv_qstn cd-question\",\r\n flowRoot: \"sv_q_flow sv_qstn\",\r\n titleLeftRoot: \"sv_qstn_left\",\r\n title: \"sv_q_title cd-question-title\",\r\n number: \"cd-question-number\",\r\n description: \"sv_q_description\",\r\n comment: \"\",\r\n required: \"\",\r\n titleRequired: \"\",\r\n hasError: \"\",\r\n indent: 7,\r\n footer: \"sv_q_footer\"\r\n },\r\n navigation: {\r\n complete: \"sv_complete_btn cd-complete-btn\",\r\n },\r\n text: \"sv_q_text_root cd-text-root\",\r\n dropdown : {\r\n root: \"\",\r\n control: \"sv_q_dropdown_control cd-dropdown-control\",\r\n selectWrapper: \"sv_select_wrapper\",\r\n other: \"sv_q_dd_other\"\r\n },\r\n multipletext: {\r\n root: \"sv_q_mt\",\r\n itemTitle: \"sv_q_mt_title\",\r\n row: \"sv_q_mt_row\",\r\n itemValue: \"sv_q_mt_item_value cd-text-root\"\r\n },\r\n checkbox: { \r\n item: \"sv_q_checkbox cd-checkbox\",\r\n itemControl: \"sv_q_checkbox_control_item cdeputy-checkbox-input\",\r\n materialDecorator: \"checkbox-material cd-checkmark\",\r\n label: \"sv_q_checkbox_label cd_q_checkbox_label\",\r\n controlLabel: \"sv_q_checkbox_control_label cd_q_checkbox_control_label\"\r\n },\r\n radiogroup: {\r\n root: \"sv_qcbc\",\r\n item: \"sv_q_radiogroup cd-question-radiogroup\",\r\n itemChecked: \"checked\",\r\n itemInline: \"sv_q_radiogroup_inline\",\r\n itemDecorator: \"sv-hidden\",\r\n label: \"sv_q_radiogroup_label cd-question-radio-label\",\r\n labelChecked: \"\",\r\n itemControl: \"sv_q_radiogroup_control_item cd-question-radio-item\",\r\n controlLabel: \"\",\r\n materialDecorator: \"circle\",\r\n other: \"sv_q_other sv_q_radiogroup_other\",\r\n clearButton: \"sv_q_radiogroup_clear\",\r\n column: \"sv_q_select_column\"\r\n },\r\n pageTitle: \"sv_page_title cd-page-title\"\r\n\r\n};\r\n\r\nfunction cd_sendDataToServer(survey, options, cd_formId) {\r\n var surveyData = survey.data; \r\n var FORM_KEY = \"cd-form-\" + cd_formId;\r\n var MODAL_CONTAINER = \"cd-modal-form-\" + cd_formId;\r\n var bannedQueryParms = ['fbclid', 'mscklid','zanpid']\r\n\r\n ////if (cd_IsEmptyOrSpaces(_CD_REF_CODE) === false) {\r\n //// surveyData[\"__refcode\"] = _CD_REF_CODE;\r\n ////}\r\n ////if (cd_IsEmptyOrSpaces(_CD_REF_CODE2) === false) {\r\n //// surveyData[\"__refcode2\"] = _CD_REF_CODE2;\r\n ////}\r\n ////if (cd_IsEmptyOrSpaces(_CD_INTERNAL_UID) === false) {\r\n //// surveyData[\"__cdptyid\"] = _CD_INTERNAL_UID;\r\n ////}\r\n ////if (cd_IsEmptyOrSpaces(_CD_INTERNAL_REF) === false) {\r\n //// surveyData[\"__cdptyref\"] = _CD_INTERNAL_REF;\r\n ////} \r\n ////if (cd_IsEmptyOrSpaces(_CD_UTM_SOURCE) === false) {\r\n //// surveyData[\"__utm_source\"] = _CD_UTM_SOURCE;\r\n ////} \r\n ////if (cd_IsEmptyOrSpaces(_CD_UTM_MEDIUM) === false) {\r\n //// surveyData[\"__utm_medium\"] = _CD_UTM_MEDIUM;\r\n ////} \r\n ////if (cd_IsEmptyOrSpaces(_CD_UTM_CAMPAIGN) === false) {\r\n //// surveyData[\"__utm_campaign\"] = _CD_UTM_CAMPAIGN;\r\n ////} \r\n ////if (cd_IsEmptyOrSpaces(_CD_UTM_TERM) === false) {\r\n //// surveyData[\"__utm_term\"] = _CD_UTM_TERM;\r\n ////} \r\n ////if (cd_IsEmptyOrSpaces(_CD_UTM_CONTENT) === false) {\r\n //// surveyData[\"__utm_content\"] = _CD_UTM_CONTENT;\r\n ////} \r\n \r\n try { \r\n var params = new URLSearchParams(window.location.search);\r\n var paramObj = [];\r\n for (var value of params.keys()) {\r\n if (!bannedQueryParms.includes(value)) {\r\n paramObj.push({\r\n param: value,\r\n value: params.get(value)\r\n });\r\n }\r\n } \r\n surveyData[\"__url_params\"] = paramObj;\r\n } catch (error) {\r\n console.error(error); \r\n }\r\n\r\n var resultAsString = JSON.stringify(surveyData); \r\n\r\n var loader = document.getElementById(\"CampaignDeputyLoader\");\r\n loader.style.display = 'block';\r\n\r\n options.showDataSaving();\r\n //console.log()\r\n //alert(resultAsString); //send Ajax request to your web server.\r\n axios.post(`${CD_FORM_URL_BASE}/api/event/${cd_formId}`,\r\n surveyData\r\n )\r\n .then(function (response) {\r\n store.set(FORM_KEY, { isCompleted: true });\r\n //loader.style.display = 'none'; continue to show for the redirect\r\n console.log(\"CD Form Submitted\");\r\n options.showDataSavingSuccess(\" \");\r\n options.showDataSavingClear();\r\n\r\n setTimeout(function () {\r\n document.getElementById(MODAL_CONTAINER).classList.remove(\"cd-form-show\");\r\n }, 1000);\r\n }).catch(function (error) {\r\n console.log(error);\r\n loader.style.display = 'none';\r\n options.showDataSavingError();\r\n });\r\n}\r\n\r\nfunction cd_onNavigateToUrl(sender, options) {\r\n //\r\n console.log(\"Going to:\" + options.url);\r\n var navigateToUrl = options.url;\r\n\r\n if (cd_IsEmptyOrSpaces(navigateToUrl)) {\r\n return;\r\n }\r\n\r\n\r\n if (cd_IsEmptyOrSpaces(_CD_REF_CODE) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"refcode\", _CD_REF_CODE);\r\n }\r\n if (cd_IsEmptyOrSpaces(_CD_REF_CODE2) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"refcode2\", _CD_REF_CODE2);\r\n }\r\n if (cd_IsEmptyOrSpaces(_CD_INTERNAL_UID) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"cdptyid\", _CD_INTERNAL_UID);\r\n }\r\n if (cd_IsEmptyOrSpaces(_CD_INTERNAL_REF) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"cdptyref\", _CD_INTERNAL_REF);\r\n } \r\n if (cd_IsEmptyOrSpaces(_CD_UTM_SOURCE) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"utm_source\", _CD_UTM_SOURCE); \r\n }\r\n if (cd_IsEmptyOrSpaces(_CD_UTM_MEDIUM) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"utm_medium\", _CD_UTM_MEDIUM); \r\n }\r\n if (cd_IsEmptyOrSpaces(_CD_UTM_CAMPAIGN) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"utm_campaign\", _CD_UTM_CAMPAIGN);\r\n }\r\n if (cd_IsEmptyOrSpaces(_CD_UTM_TERM) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"utm_term\", _CD_UTM_TERM);\r\n }\r\n if (cd_IsEmptyOrSpaces(_CD_UTM_CONTENT) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"utm_content\", _CD_UTM_CONTENT); \r\n } \r\n if (cd_IsEmptyOrSpaces(_CD_REF_CODE_CDMC) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"refcodecdmc\", _CD_UTM_CONTENT);\r\n }\r\n if (cd_IsEmptyOrSpaces(_CD_REF_CODE_CDV) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"refcodecdv\", _CD_UTM_CONTENT);\r\n }\r\n options.url = navigateToUrl;\r\n\r\n console.log(\"Going to:\" + options.url);\r\n}\r\nfunction cd_onNavigateToUrlv2(sender, options) {\r\n //\r\n console.log(\"Going to:\" + options.url);\r\n var navigateToUrl = options.url;\r\n\r\n if (cd_IsEmptyOrSpaces(navigateToUrl)) {\r\n return;\r\n }\r\n\r\n\r\n if (cd_IsEmptyOrSpaces(_CD_REF_CODE) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"refcode\", _CD_REF_CODE);\r\n }\r\n if (cd_IsEmptyOrSpaces(_CD_REF_CODE2) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"refcode2\", _CD_REF_CODE2);\r\n }\r\n if (cd_IsEmptyOrSpaces(_CD_INTERNAL_UID) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"cdptyid\", _CD_INTERNAL_UID);\r\n }\r\n if (cd_IsEmptyOrSpaces(_CD_INTERNAL_REF) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"cdptyref\", _CD_INTERNAL_REF);\r\n }\r\n if (cd_IsEmptyOrSpaces(_CD_UTM_SOURCE) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"utm_source\", _CD_UTM_SOURCE);\r\n }\r\n if (cd_IsEmptyOrSpaces(_CD_UTM_MEDIUM) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"utm_medium\", _CD_UTM_MEDIUM);\r\n }\r\n if (cd_IsEmptyOrSpaces(_CD_UTM_CAMPAIGN) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"utm_campaign\", _CD_UTM_CAMPAIGN);\r\n }\r\n if (cd_IsEmptyOrSpaces(_CD_UTM_TERM) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"utm_term\", _CD_UTM_TERM);\r\n }\r\n if (cd_IsEmptyOrSpaces(_CD_UTM_CONTENT) === false) {\r\n navigateToUrl = cd_setUrlParams(navigateToUrl, \"utm_content\", _CD_UTM_CONTENT);\r\n }\r\n console.log(\"Going to:\" + options.url);\r\n\r\n window.location = navigateToUrl;\r\n\r\n}\r\n\r\nfunction cd_setUrlParams(url, key, value) {\r\n url = url.split('?');\r\n usp = new URLSearchParams(url[1]);\r\n usp.set(key, value);\r\n url[1] = usp.toString();\r\n return url.join('?');\r\n}\r\n\r\nfunction cd_IsEmptyOrSpaces(str) {\r\n return str === null || str === undefined || str.match(/^ *$/) !== null;\r\n}\r\nfunction cd_form_close_modal(FORM_KEY, MODAL_CONTAINER) {\r\n var formHistory = store.get(FORM_KEY);\r\n if (typeof formHistory !== 'undefined') {\r\n if (typeof formHistory.closedCount !== 'undefined') {\r\n formHistory.closedCount = formHistory.closedCount + 1;\r\n } else {\r\n formHistory.closedCount = 1;\r\n }\r\n store.set(FORM_KEY, formHistory);\r\n } else {\r\n store.set(FORM_KEY, { isCompleted: false, closedCount: 1 });\r\n }\r\n document.getElementById(MODAL_CONTAINER).classList.remove(\"cd-form-show\");\r\n}\r\n\r\nfunction cd_setup_form_load(cdFormId) {\r\n var MODAL_CONTAINER = \"cd-modal-form-\" + cdFormId;\r\n var FORM_CONTAINER = \"cd-form-container-\" + cdFormId;\r\n var FORM_KEY = \"cd-form-\" + cdFormId;\r\n var formHistory = store.get(FORM_KEY);\r\n var isPopUp = document.getElementById(MODAL_CONTAINER).getAttribute(\"data-cdeputy-form-popup\") == \"true\";\r\n\r\n if (typeof formHistory !== 'undefined') {\r\n console.log(formHistory);\r\n if (formHistory.isCompleted || formHistory.closedCount > 3) {\r\n if (isPopUp === true) {\r\n return;\r\n }\r\n }\r\n }\r\n axios.post(`${CD_FORM_URL_BASE}/api/v1/Config/${cdFormId}`)\r\n //axios.post(\"http://localhost:62421/api/v1/Config/\" + cdFormId)\r\n .then(function (response) {\r\n var cdForm = response.data.form;\r\n\r\n var divContainer = document.getElementById(MODAL_CONTAINER);\r\n\r\n divContainer.setAttribute(\"class\", \"cd-form\");\r\n var header = document.createElement(\"header\");\r\n header.setAttribute(\"class\", \"cd-form-modal-header\");\r\n var title = document.createElement(\"h2\");\r\n title.setAttribute(\"class\", \"cd-form-modal-header-title\");\r\n\r\n modal = document.createElement(\"div\");\r\n modal.setAttribute(\"class\", \"cd-form-modal-dialog \"); // + (fieldConfig.cssClass || \" \"));\t\t\t\t \r\n //modal.appendChild(header);\r\n if (isPopUp === true) {\r\n divContainer.addEventListener(\"click\", function (event) {\r\n if (event.target.id === divContainer.id) {\r\n cd_form_close_modal(FORM_KEY, MODAL_CONTAINER);\r\n }\r\n });\r\n divContainer.setAttribute(\"class\", \"cd-form-modal cd-form\");\r\n var close = document.createElement(\"button\");\r\n close.innerHTML = \"X\";\r\n close.setAttribute(\"class\", \"cd-form-modal-header-close cd-close-button\");\r\n //close.setAttribute(\"style\",\"float:right;\"); \r\n modal.appendChild(close);\r\n close.addEventListener('click', function (event) {\r\n cd_form_close_modal(FORM_KEY, MODAL_CONTAINER);\r\n });\r\n }\r\n header.appendChild(title);\r\n\r\n divContainer.appendChild(modal);\r\n\r\n var modalBody = document.createElement(\"div\");\r\n modalBody.setAttribute(\"id\", FORM_CONTAINER);\r\n modal.appendChild(modalBody);\r\n\r\n var survey = new Survey.Model(cdForm.formConfig, FORM_CONTAINER, cdeputyCss);\r\n //survey.css = cdeputyCss;\r\n survey.surveyShowDataSaving = true;\r\n survey.onComplete.add(function (result, options) {\r\n cd_sendDataToServer(result, options, cdFormId);\r\n });\r\n survey.onNavigateToUrl.add(function (sender, options) {\r\n cd_onNavigateToUrl(sender, options, cdFormId);\r\n });\r\n \r\n //title.innerHTML = survey.title;\r\n divContainer.classList.add(\"cd-form-show\");\r\n\r\n\r\n loader = document.createElement(\"div\");\r\n loader.setAttribute(\"id\", \"CampaignDeputyLoader\");\r\n loader.setAttribute(\"style\", \"position:fixed;top:0;left:0;width:100%;height:100%;z-index: 100000;background-color:rgba(0, 0, 0, 0.5);display:none;\");\r\n loader.innerHTML = \"
    \";\r\n document.getElementsByTagName('body')[0].appendChild(loader);\r\n //loader.setAttribute(\"id\",\"CampaignDeputyLoader\"); loader.style.display = 'block';\r\n\r\n if (CD_FORM_CREATE_STYLE && cdForm.style) {\r\n var styleElem = document.createElement('style');\r\n styleElem.type = 'text/css';\r\n\r\n var css = \".cdeputy-lds-ring{display:inline-block;position:relative;width:64px;height:64px}.cdeputy-lds-ring div{box-sizing:border-box;display:block;position:absolute;width:51px;height:51px;margin:6px;border:6px solid #5e5e5e;border-radius:50%;animation:cdeputy-lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#5e5e5e transparent transparent transparent}.cdeputy-lds-ring div:nth-child(1){animation-delay:-.45s}.cdeputy-lds-ring div:nth-child(2){animation-delay:-.3s}.cdeputy-lds-ring div:nth-child(3){animation-delay:-.15s}@keyframes cdeputy-lds-ring{\\n0% {transform:rotate(0)}\\n100% {transform:rotate(360deg)}}\\n\";\r\n\r\n css = css + \" #\" + MODAL_CONTAINER + \" {\";\r\n if (cdForm.style.fontColor)\r\n css = css + \"\\color:\" + cdForm.style.fontColor + \" !important;\";\r\n css = css + \"}\";\r\n\r\n css = css + \" #\" + MODAL_CONTAINER + \" .cd-form-modal-dialog {\";\r\n if (cdForm.style.backgroundColor) {\r\n css = css + \"\\nbackground:\" + cdForm.style.backgroundColor + \" !important;\";\r\n } else {\r\n css = css + \"\\nbackground: #fff;\";\r\n }\r\n css = css + \"}\";\r\n\r\n css = css + \" #\" + MODAL_CONTAINER + \" .cd-page-title {\";\r\n if (cdForm.style.titleFontColor)\r\n css = css + \"\\ncolor:\" + cdForm.style.titleFontColor + \" !important;\";\r\n\r\n if (cdForm.style.titleBackgroundColor)\r\n css = css + \"\\nbackground-color:\" + cdForm.style.titleBackgroundColor + \" !important;\";\r\n\r\n if (cdForm.style.titleFontSize)\r\n css = css + \"\\nfont-size:\" + cdForm.style.titleFontSize + \"px !important;\";\r\n\r\n css = css + \"padding-top:0.35em;padding-bottom:0.35em;padding-left:7px\";\r\n css = css + \"}\";\r\n\r\n css = css + \" #\" + MODAL_CONTAINER + \" .cd-form-description {\";\r\n if (cdForm.style.descriptionFontSize)\r\n css = css + \"\\nfont-size:\" + cdForm.style.descriptionFontSize + \"px !important;\";\r\n css = css + \"}\";\r\n\r\n\r\n css = css + \" #\" + MODAL_CONTAINER + \" .cd-page-title span {\";\r\n if (cdForm.style.titleFontColor)\r\n css = css + \"\\ncolor:\" + cdForm.style.titleFontColor + \" !important;\";\r\n\r\n if (cdForm.style.titleBackgroundColor)\r\n css = css + \"\\nbackground-color:\" + cdForm.style.titleBackgroundColor + \" !important;\";\r\n\r\n if (cdForm.style.titleFontSize)\r\n css = css + \"\\nfont-size:\" + cdForm.style.titleFontSize + \"px !important;\";\r\n\r\n css = css + \"padding-top:0.35em;padding-bottom:0.35em;padding-left:7px\";\r\n css = css + \"}\";\r\n\r\n css = css + \" #\" + MODAL_CONTAINER + \" .cd-complete-btn{font-size:16px;\";\r\n if (cdForm.style.buttonColor) {\r\n css = css + \"background-color:\" + cdForm.style.buttonColor + \" !important;\";\r\n } else {\r\n css = css + \"background-color:#2196F3 !important;\";\r\n }\r\n if (cdForm.style.buttonFontColor)\r\n css = css + \"color:\" + cdForm.style.buttonFontColor + \" !important;\";\r\n\r\n css = css + \"}\";\r\n\r\n\r\n css = css + \".sv_main .sv_p_root > .sv_row:nth-child(even) {background-color: unset !important;}\";\r\n css = css + \".sv_main .sv_p_root > .sv_row:nth-child(odd) {background-color: unset !important;}\";\r\n css = css + \".sv_main .sv_container {color: unset !important;}\"\r\n css = css + \".sv_custom_header {background-color: unset !important;}\";\r\n\r\n css = css + \".cd-body{padding:0px 0px 1em 0px !important;}\";\r\n css = css + \".sv_main .sv_p_root > .sv_row {border-bottom: unset;}\";\r\n css = css + \".sv_main .sv_container .sv_body .sv_p_root .sv_q_title {font-weight: 600;font-size: 1em;margin: 0.25em 0;}\";\r\n css = css + \".cd-body{border-top:none !important;}\";\r\n css = css + \".cd-form .cd_q_checkbox_label {position: relative;}\\n\"\r\n /* Hide the browser's default checkbox */\r\n css = css + \".cd-form .cdeputy-checkbox-input {position: absolute;opacity: 0;cursor: pointer;height: 0;width: 0;}\\n\"\r\n /* Create a custom checkbox */\r\n css = css + \".cd-form .cd-checkmark {position: absolute;top: 0;left: 0;height: 25px;width: 25px;background-color: #eee;}\"\r\n css = css + \".cd-form:hover input ~ .cd-checkmark {background-color: #ccc;}\";\r\n css = css + \".cd-text-root { width:100%;}\";\r\n if (cdForm.style.buttonColor) {\r\n css = css + \" #\" + MODAL_CONTAINER + \" input:checked ~ .cd-checkmark {background-color:\" + cdForm.style.buttonColor + \" !important;}\";\r\n } else {\r\n css = css + \" #\" + MODAL_CONTAINER + \" input:checked ~ .cd-checkmark {background-color: #2196F3;}\";\r\n }\r\n\r\n\r\n /* Create the checkmark/indicator (hidden when not checked) */\r\n css = css + \".cd-checkmark:after {content: \\\"\\\";position: absolute;display: none;}\";\r\n\r\n /* Show the checkmark when checked */\r\n css = css + \".cd-form input:checked ~ .cd-checkmark:after {display: block;}\";\r\n\r\n if (cdForm.style.buttonFontColor) {\r\n css = css + \".cd-form .cd-checkmark:after {left: 9px;top: 5px;width: 5px;height: 10px;border: solid \" + cdForm.style.buttonFontColor + \";border-width: 0 3px 3px 0;-webkit-transform: rotate(45deg);-ms-transform: rotate(45deg);transform: rotate(45deg);}\";\r\n } else {\r\n css = css + \".cd-form .cd-checkmark:after {left: 9px;top: 5px;width: 5px;height: 10px;border: solid white;border-width: 0 3px 3px 0;-webkit-transform: rotate(45deg);-ms-transform: rotate(45deg);transform: rotate(45deg);}\";\r\n\r\n }\r\n\r\n\r\n css = css + \".cd_q_checkbox_control_label {margin-left: 30px;}\";\r\n css = css + \".cd-form {width: 100%;}\";\r\n\r\n if (isPopUp === true) {\r\n css = css + \".cd-form-modal {width: 100%;height: 100%;position: fixed;top: 0;left: 0;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAHklEQVQ4T2NkYGDYzEABYBw1gGE0DBhGw4BhWIQBACBYC0GfFSf4AAAAAElFTkSuQmCC);background:rgba(0, 0, 0, 0.7);display: none;overflow-y: auto;}\";\r\n css = css + \".cd-close-button {-webkit-appearance: none;font-size: 0.75em;text-shadow: none;line-height: 1.5em;display: inline-block;padding: 1px 3px;margin: 0 10px 0 0;position: relative;border-radius: 1px;border: 3px solid transparent;background: #337ab7;color: white;cursor: pointer;white-space: nowrap;text-overflow: ellipsis;text-decoration: none !important;text-align: center;font-weight: normal !important;}\";\r\n css = css + \".cd-form-modal-header {}\";\r\n css = css + \".cd-body{padding:0px 0px 1em 0px !important;}\";\r\n css = css + \".cd-page-title{margin-top:0px !important;}\";\r\n css = css + \".cd-form-show {display: block!important;}\";\r\n css = css + \".cd-form-modal-header-close{position: absolute;right:-35px;top:-25px;background-color:#FFF;color:#000;z-index: 999;}\";\r\n css = css + \".cd-form-modal-dialog {width: 95%;max-width: 1000px;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);}\";\r\n }\r\n css = css + \".sv_main{background-color:unset !important;}.sv_main .sv_body{ background-color:unset !important;}\";\r\n\r\n\r\n //console.log(css);\r\n if (styleElem.styleSheet) {\r\n styleElem.styleSheet.cssText = css;\r\n }\r\n else {\r\n styleElem.appendChild(document.createTextNode(css));\r\n }\r\n\r\n // Append the Style element to the Head\r\n var head = document.getElementsByTagName('head')[0];\r\n head.appendChild(styleElem);\r\n\r\n }\r\n })\r\n //.catch(function (error) {\r\n // alert(error); //resultElement.innerHTML = generateErrorHTMLOutput(error);\r\n //}); \r\n}"]}