Created
November 6, 2019 18:01
-
-
Save dropefernandes/c0642149bb00d328034884c84fa910d2 to your computer and use it in GitHub Desktop.
Widget Quotation Travels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /******/ (function(modules) { // webpackBootstrap | |
| /******/ // The module cache | |
| /******/ var installedModules = {}; | |
| /******/ | |
| /******/ // The require function | |
| /******/ function __webpack_require__(moduleId) { | |
| /******/ | |
| /******/ // Check if module is in cache | |
| /******/ if(installedModules[moduleId]) { | |
| /******/ return installedModules[moduleId].exports; | |
| /******/ } | |
| /******/ // Create a new module (and put it into the cache) | |
| /******/ var module = installedModules[moduleId] = { | |
| /******/ i: moduleId, | |
| /******/ l: false, | |
| /******/ exports: {} | |
| /******/ }; | |
| /******/ | |
| /******/ // Execute the module function | |
| /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); | |
| /******/ | |
| /******/ // Flag the module as loaded | |
| /******/ module.l = true; | |
| /******/ | |
| /******/ // Return the exports of the module | |
| /******/ return module.exports; | |
| /******/ } | |
| /******/ | |
| /******/ | |
| /******/ // expose the modules object (__webpack_modules__) | |
| /******/ __webpack_require__.m = modules; | |
| /******/ | |
| /******/ // expose the module cache | |
| /******/ __webpack_require__.c = installedModules; | |
| /******/ | |
| /******/ // define getter function for harmony exports | |
| /******/ __webpack_require__.d = function(exports, name, getter) { | |
| /******/ if(!__webpack_require__.o(exports, name)) { | |
| /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); | |
| /******/ } | |
| /******/ }; | |
| /******/ | |
| /******/ // define __esModule on exports | |
| /******/ __webpack_require__.r = function(exports) { | |
| /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | |
| /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | |
| /******/ } | |
| /******/ Object.defineProperty(exports, '__esModule', { value: true }); | |
| /******/ }; | |
| /******/ | |
| /******/ // create a fake namespace object | |
| /******/ // mode & 1: value is a module id, require it | |
| /******/ // mode & 2: merge all properties of value into the ns | |
| /******/ // mode & 4: return value when already ns object | |
| /******/ // mode & 8|1: behave like require | |
| /******/ __webpack_require__.t = function(value, mode) { | |
| /******/ if(mode & 1) value = __webpack_require__(value); | |
| /******/ if(mode & 8) return value; | |
| /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; | |
| /******/ var ns = Object.create(null); | |
| /******/ __webpack_require__.r(ns); | |
| /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); | |
| /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); | |
| /******/ return ns; | |
| /******/ }; | |
| /******/ | |
| /******/ // getDefaultExport function for compatibility with non-harmony modules | |
| /******/ __webpack_require__.n = function(module) { | |
| /******/ var getter = module && module.__esModule ? | |
| /******/ function getDefault() { return module['default']; } : | |
| /******/ function getModuleExports() { return module; }; | |
| /******/ __webpack_require__.d(getter, 'a', getter); | |
| /******/ return getter; | |
| /******/ }; | |
| /******/ | |
| /******/ // Object.prototype.hasOwnProperty.call | |
| /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; | |
| /******/ | |
| /******/ // __webpack_public_path__ | |
| /******/ __webpack_require__.p = ""; | |
| /******/ | |
| /******/ | |
| /******/ // Load entry module and return exports | |
| /******/ return __webpack_require__(__webpack_require__.s = "./src/main.js"); | |
| /******/ }) | |
| /************************************************************************/ | |
| /******/ ({ | |
| /***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/style/quotation/hero.scss": | |
| /*!********************************************************************************************************************!*\ | |
| !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/style/quotation/hero.scss ***! | |
| \********************************************************************************************************************/ | |
| /*! no static exports found */ | |
| /***/ (function(module, exports, __webpack_require__) { | |
| eval("exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.i, \".quotation {\\n background-color: #fff;\\n border-radius: 8px;\\n box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.1);\\n color: #324b68;\\n flex-wrap: wrap;\\n align-self: center;\\n max-width: 480px;\\n min-width: 272px;\\n padding: 12px;\\n text-align: left;\\n z-index: 2;\\n width: 45%;\\n font-family: rubik, sans-serif;\\n line-height: 1.4em; }\\n .quotation__validation {\\n bottom: -16px;\\n color: #ff3796;\\n font-size: .7em;\\n line-height: 1em;\\n margin: 0 12px;\\n max-width: 100%;\\n position: absolute;\\n text-align: left;\\n display: none; }\\n .quotation .show {\\n display: block; }\\n .quotation__container__form {\\n display: flex;\\n flex-wrap: wrap; }\\n .quotation__container__form--group {\\n -webkit-box-align: end;\\n align-items: flex-end;\\n display: -webkit-box;\\n display: flex;\\n -webkit-box-flex: 1;\\n flex: 1 1 auto;\\n flex-wrap: wrap;\\n font-size: 16px;\\n position: relative;\\n width: 100%;\\n margin-top: 30px; }\\n .quotation__container__form--group:first-child {\\n margin-top: 0; }\\n .quotation__container__form--group .label-default {\\n font-weight: 700;\\n width: 100%; }\\n .quotation__container__form--group__datepicker {\\n background: url(https://www.ciclic.com.br/assets/img/calendar.8c29b1c5.svg) no-repeat 0;\\n background-size: 22,5px;\\n padding-left: 20px;\\n line-height: 1.6em;\\n text-align: right;\\n border: transparent;\\n font-family: oscine, sans-serif;\\n color: #324b68;\\n font-size: 14px; }\\n .quotation__container__form--group__datepicker:focus {\\n outline: none; }\\n .quotation__container__form--group__multiple {\\n display: -webkit-box;\\n display: flex;\\n -webkit-box-flex: 1;\\n flex-grow: 1;\\n flex-wrap: wrap;\\n min-width: 214px;\\n width: 50%; }\\n .quotation__container__form--group__multiple--datepicker {\\n cursor: pointer;\\n display: -webkit-box;\\n display: flex;\\n flex-wrap: wrap;\\n margin: 0 12px; }\\n .quotation__container__form--group__multiple--datepicker .datepicker--label {\\n width: 100%;\\n font-size: 80%; }\\n .quotation__container__form--group__multiple .open .datepicker {\\n display: block; }\\n .quotation__container__form--group__multiple--label {\\n display: block;\\n margin: 0 12px;\\n width: 100%;\\n font-size: 80%;\\n line-height: 1.4em;\\n font-family: oscine, sans-serif; }\\n .quotation__container__form--label {\\n font-family: oscine, sans-serif;\\n font-weight: 700;\\n width: 100%;\\n display: block;\\n margin: 0 12px 10px; }\\n .quotation__container__form--select {\\n appearance: none;\\n -webkit-appearance: none;\\n background-color: transparent;\\n background-image: url(https://ciclic.com.br/assets/img/arrow-down.ea2a730d.svg);\\n background-repeat: no-repeat;\\n background-position: right 8px center;\\n background-size: 14px;\\n border-radius: 0;\\n border: none;\\n border-bottom: 1px solid #324b68;\\n color: #324b68;\\n cursor: pointer;\\n -webkit-box-flex: 1;\\n flex-grow: 1;\\n font-size: .9em;\\n outline: none;\\n padding: 8px 17px 8px 0;\\n position: relative;\\n margin: 0 12px;\\n min-width: 190px;\\n z-index: 0; }\\n .quotation__container__form--input {\\n border: none;\\n border-bottom: 1px solid #324b68;\\n margin: 0 12px;\\n outline: none;\\n width: 100%;\\n color: #324b68;\\n font-size: .9em;\\n padding: 8px 0; }\\n .quotation__container__form__action {\\n border: none;\\n border-radius: 2em;\\n cursor: pointer;\\n display: inline-block;\\n font-size: .8em;\\n line-height: 1em;\\n max-width: 100%;\\n min-width: -webkit-fit-content;\\n min-width: -moz-fit-content;\\n min-width: fit-content;\\n padding: .5em;\\n vertical-align: middle;\\n text-align: center;\\n text-decoration: none;\\n text-transform: uppercase;\\n user-select: none;\\n white-space: nowrap;\\n zoom: 1;\\n background-color: #324b68;\\n color: #fff;\\n margin: 40px 12px 12px;\\n font-size: 1em;\\n font-family: oscine, sans-serif;\\n font-weight: 700;\\n width: 100%; }\\n .quotation__container__powered {\\n width: 100%;\\n text-align: center;\\n margin-top: 30px; }\\n .quotation__container__powered--label {\\n font-size: 20px;\\n font-family: oscine, sans-serif;\\n font-weight: normal; }\\n .quotation__container__powered svg {\\n width: 130px;\\n margin-bottom: 20px; }\\n\", \"\"]);\n\n\n//# sourceURL=webpack:///./src/style/quotation/hero.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js"); | |
| /***/ }), | |
| /***/ "./node_modules/css-loader/dist/runtime/api.js": | |
| /*!*****************************************************!*\ | |
| !*** ./node_modules/css-loader/dist/runtime/api.js ***! | |
| \*****************************************************/ | |
| /*! no static exports found */ | |
| /***/ (function(module, exports, __webpack_require__) { | |
| "use strict"; | |
| eval("\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \"{\").concat(content, \"}\");\n }\n\n return content;\n }).join('');\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery) {\n if (typeof modules === 'string') {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = modules[_i]; // skip already imported module\n // this implementation is not 100% perfect for weird media query combinations\n // when a module is imported multiple times with different media queries.\n // I hope this will never occur (Hey this way we have smaller bundles)\n\n if (item[0] == null || !alreadyImportedModules[item[0]]) {\n if (mediaQuery && !item[2]) {\n item[2] = mediaQuery;\n } else if (mediaQuery) {\n item[2] = \"(\".concat(item[2], \") and (\").concat(mediaQuery, \")\");\n }\n\n list.push(item);\n }\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring\n\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot).concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n return \"/*# \".concat(data, \" */\");\n}\n\n//# sourceURL=webpack:///./node_modules/css-loader/dist/runtime/api.js?"); | |
| /***/ }), | |
| /***/ "./node_modules/style-loader/lib/addStyles.js": | |
| /*!****************************************************!*\ | |
| !*** ./node_modules/style-loader/lib/addStyles.js ***! | |
| \****************************************************/ | |
| /*! no static exports found */ | |
| /***/ (function(module, exports, __webpack_require__) { | |
| eval("/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n\nvar stylesInDom = {};\n\nvar\tmemoize = function (fn) {\n\tvar memo;\n\n\treturn function () {\n\t\tif (typeof memo === \"undefined\") memo = fn.apply(this, arguments);\n\t\treturn memo;\n\t};\n};\n\nvar isOldIE = memoize(function () {\n\t// Test for IE <= 9 as proposed by Browserhacks\n\t// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n\t// Tests for existence of standard globals is to allow style-loader\n\t// to operate correctly into non-standard environments\n\t// @see https://github.com/webpack-contrib/style-loader/issues/177\n\treturn window && document && document.all && !window.atob;\n});\n\nvar getElement = (function (fn) {\n\tvar memo = {};\n\n\treturn function(selector) {\n\t\tif (typeof memo[selector] === \"undefined\") {\n\t\t\tvar styleTarget = fn.call(this, selector);\n\t\t\t// Special case to return head of iframe instead of iframe itself\n\t\t\tif (styleTarget instanceof window.HTMLIFrameElement) {\n\t\t\t\ttry {\n\t\t\t\t\t// This will throw an exception if access to iframe is blocked\n\t\t\t\t\t// due to cross-origin restrictions\n\t\t\t\t\tstyleTarget = styleTarget.contentDocument.head;\n\t\t\t\t} catch(e) {\n\t\t\t\t\tstyleTarget = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmemo[selector] = styleTarget;\n\t\t}\n\t\treturn memo[selector]\n\t};\n})(function (target) {\n\treturn document.querySelector(target)\n});\n\nvar singleton = null;\nvar\tsingletonCounter = 0;\nvar\tstylesInsertedAtTop = [];\n\nvar\tfixUrls = __webpack_require__(/*! ./urls */ \"./node_modules/style-loader/lib/urls.js\");\n\nmodule.exports = function(list, options) {\n\tif (typeof DEBUG !== \"undefined\" && DEBUG) {\n\t\tif (typeof document !== \"object\") throw new Error(\"The style-loader cannot be used in a non-browser environment\");\n\t}\n\n\toptions = options || {};\n\n\toptions.attrs = typeof options.attrs === \"object\" ? options.attrs : {};\n\n\t// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n\t// tags it will allow on a page\n\tif (!options.singleton && typeof options.singleton !== \"boolean\") options.singleton = isOldIE();\n\n\t// By default, add <style> tags to the <head> element\n\tif (!options.insertInto) options.insertInto = \"head\";\n\n\t// By default, add <style> tags to the bottom of the target\n\tif (!options.insertAt) options.insertAt = \"bottom\";\n\n\tvar styles = listToStyles(list, options);\n\n\taddStylesToDom(styles, options);\n\n\treturn function update (newList) {\n\t\tvar mayRemove = [];\n\n\t\tfor (var i = 0; i < styles.length; i++) {\n\t\t\tvar item = styles[i];\n\t\t\tvar domStyle = stylesInDom[item.id];\n\n\t\t\tdomStyle.refs--;\n\t\t\tmayRemove.push(domStyle);\n\t\t}\n\n\t\tif(newList) {\n\t\t\tvar newStyles = listToStyles(newList, options);\n\t\t\taddStylesToDom(newStyles, options);\n\t\t}\n\n\t\tfor (var i = 0; i < mayRemove.length; i++) {\n\t\t\tvar domStyle = mayRemove[i];\n\n\t\t\tif(domStyle.refs === 0) {\n\t\t\t\tfor (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();\n\n\t\t\t\tdelete stylesInDom[domStyle.id];\n\t\t\t}\n\t\t}\n\t};\n};\n\nfunction addStylesToDom (styles, options) {\n\tfor (var i = 0; i < styles.length; i++) {\n\t\tvar item = styles[i];\n\t\tvar domStyle = stylesInDom[item.id];\n\n\t\tif(domStyle) {\n\t\t\tdomStyle.refs++;\n\n\t\t\tfor(var j = 0; j < domStyle.parts.length; j++) {\n\t\t\t\tdomStyle.parts[j](item.parts[j]);\n\t\t\t}\n\n\t\t\tfor(; j < item.parts.length; j++) {\n\t\t\t\tdomStyle.parts.push(addStyle(item.parts[j], options));\n\t\t\t}\n\t\t} else {\n\t\t\tvar parts = [];\n\n\t\t\tfor(var j = 0; j < item.parts.length; j++) {\n\t\t\t\tparts.push(addStyle(item.parts[j], options));\n\t\t\t}\n\n\t\t\tstylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};\n\t\t}\n\t}\n}\n\nfunction listToStyles (list, options) {\n\tvar styles = [];\n\tvar newStyles = {};\n\n\tfor (var i = 0; i < list.length; i++) {\n\t\tvar item = list[i];\n\t\tvar id = options.base ? item[0] + options.base : item[0];\n\t\tvar css = item[1];\n\t\tvar media = item[2];\n\t\tvar sourceMap = item[3];\n\t\tvar part = {css: css, media: media, sourceMap: sourceMap};\n\n\t\tif(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});\n\t\telse newStyles[id].parts.push(part);\n\t}\n\n\treturn styles;\n}\n\nfunction insertStyleElement (options, style) {\n\tvar target = getElement(options.insertInto)\n\n\tif (!target) {\n\t\tthrow new Error(\"Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.\");\n\t}\n\n\tvar lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];\n\n\tif (options.insertAt === \"top\") {\n\t\tif (!lastStyleElementInsertedAtTop) {\n\t\t\ttarget.insertBefore(style, target.firstChild);\n\t\t} else if (lastStyleElementInsertedAtTop.nextSibling) {\n\t\t\ttarget.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);\n\t\t} else {\n\t\t\ttarget.appendChild(style);\n\t\t}\n\t\tstylesInsertedAtTop.push(style);\n\t} else if (options.insertAt === \"bottom\") {\n\t\ttarget.appendChild(style);\n\t} else if (typeof options.insertAt === \"object\" && options.insertAt.before) {\n\t\tvar nextSibling = getElement(options.insertInto + \" \" + options.insertAt.before);\n\t\ttarget.insertBefore(style, nextSibling);\n\t} else {\n\t\tthrow 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\");\n\t}\n}\n\nfunction removeStyleElement (style) {\n\tif (style.parentNode === null) return false;\n\tstyle.parentNode.removeChild(style);\n\n\tvar idx = stylesInsertedAtTop.indexOf(style);\n\tif(idx >= 0) {\n\t\tstylesInsertedAtTop.splice(idx, 1);\n\t}\n}\n\nfunction createStyleElement (options) {\n\tvar style = document.createElement(\"style\");\n\n\toptions.attrs.type = \"text/css\";\n\n\taddAttrs(style, options.attrs);\n\tinsertStyleElement(options, style);\n\n\treturn style;\n}\n\nfunction createLinkElement (options) {\n\tvar link = document.createElement(\"link\");\n\n\toptions.attrs.type = \"text/css\";\n\toptions.attrs.rel = \"stylesheet\";\n\n\taddAttrs(link, options.attrs);\n\tinsertStyleElement(options, link);\n\n\treturn link;\n}\n\nfunction addAttrs (el, attrs) {\n\tObject.keys(attrs).forEach(function (key) {\n\t\tel.setAttribute(key, attrs[key]);\n\t});\n}\n\nfunction addStyle (obj, options) {\n\tvar style, update, remove, result;\n\n\t// If a transform function was defined, run it on the css\n\tif (options.transform && obj.css) {\n\t result = options.transform(obj.css);\n\n\t if (result) {\n\t \t// If transform returns a value, use that instead of the original css.\n\t \t// This allows running runtime transformations on the css.\n\t \tobj.css = result;\n\t } else {\n\t \t// If the transform function returns a falsy value, don't add this css.\n\t \t// This allows conditional loading of css\n\t \treturn function() {\n\t \t\t// noop\n\t \t};\n\t }\n\t}\n\n\tif (options.singleton) {\n\t\tvar styleIndex = singletonCounter++;\n\n\t\tstyle = singleton || (singleton = createStyleElement(options));\n\n\t\tupdate = applyToSingletonTag.bind(null, style, styleIndex, false);\n\t\tremove = applyToSingletonTag.bind(null, style, styleIndex, true);\n\n\t} else if (\n\t\tobj.sourceMap &&\n\t\ttypeof URL === \"function\" &&\n\t\ttypeof URL.createObjectURL === \"function\" &&\n\t\ttypeof URL.revokeObjectURL === \"function\" &&\n\t\ttypeof Blob === \"function\" &&\n\t\ttypeof btoa === \"function\"\n\t) {\n\t\tstyle = createLinkElement(options);\n\t\tupdate = updateLink.bind(null, style, options);\n\t\tremove = function () {\n\t\t\tremoveStyleElement(style);\n\n\t\t\tif(style.href) URL.revokeObjectURL(style.href);\n\t\t};\n\t} else {\n\t\tstyle = createStyleElement(options);\n\t\tupdate = applyToTag.bind(null, style);\n\t\tremove = function () {\n\t\t\tremoveStyleElement(style);\n\t\t};\n\t}\n\n\tupdate(obj);\n\n\treturn function updateStyle (newObj) {\n\t\tif (newObj) {\n\t\t\tif (\n\t\t\t\tnewObj.css === obj.css &&\n\t\t\t\tnewObj.media === obj.media &&\n\t\t\t\tnewObj.sourceMap === obj.sourceMap\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tupdate(obj = newObj);\n\t\t} else {\n\t\t\tremove();\n\t\t}\n\t};\n}\n\nvar replaceText = (function () {\n\tvar textStore = [];\n\n\treturn function (index, replacement) {\n\t\ttextStore[index] = replacement;\n\n\t\treturn textStore.filter(Boolean).join('\\n');\n\t};\n})();\n\nfunction applyToSingletonTag (style, index, remove, obj) {\n\tvar css = remove ? \"\" : obj.css;\n\n\tif (style.styleSheet) {\n\t\tstyle.styleSheet.cssText = replaceText(index, css);\n\t} else {\n\t\tvar cssNode = document.createTextNode(css);\n\t\tvar childNodes = style.childNodes;\n\n\t\tif (childNodes[index]) style.removeChild(childNodes[index]);\n\n\t\tif (childNodes.length) {\n\t\t\tstyle.insertBefore(cssNode, childNodes[index]);\n\t\t} else {\n\t\t\tstyle.appendChild(cssNode);\n\t\t}\n\t}\n}\n\nfunction applyToTag (style, obj) {\n\tvar css = obj.css;\n\tvar media = obj.media;\n\n\tif(media) {\n\t\tstyle.setAttribute(\"media\", media)\n\t}\n\n\tif(style.styleSheet) {\n\t\tstyle.styleSheet.cssText = css;\n\t} else {\n\t\twhile(style.firstChild) {\n\t\t\tstyle.removeChild(style.firstChild);\n\t\t}\n\n\t\tstyle.appendChild(document.createTextNode(css));\n\t}\n}\n\nfunction updateLink (link, options, obj) {\n\tvar css = obj.css;\n\tvar sourceMap = obj.sourceMap;\n\n\t/*\n\t\tIf convertToAbsoluteUrls isn't defined, but sourcemaps are enabled\n\t\tand there is no publicPath defined then lets turn convertToAbsoluteUrls\n\t\ton by default. Otherwise default to the convertToAbsoluteUrls option\n\t\tdirectly\n\t*/\n\tvar autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;\n\n\tif (options.convertToAbsoluteUrls || autoFixUrls) {\n\t\tcss = fixUrls(css);\n\t}\n\n\tif (sourceMap) {\n\t\t// http://stackoverflow.com/a/26603875\n\t\tcss += \"\\n/*# sourceMappingURL=data:application/json;base64,\" + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + \" */\";\n\t}\n\n\tvar blob = new Blob([css], { type: \"text/css\" });\n\n\tvar oldSrc = link.href;\n\n\tlink.href = URL.createObjectURL(blob);\n\n\tif(oldSrc) URL.revokeObjectURL(oldSrc);\n}\n\n\n//# sourceURL=webpack:///./node_modules/style-loader/lib/addStyles.js?"); | |
| /***/ }), | |
| /***/ "./node_modules/style-loader/lib/urls.js": | |
| /*!***********************************************!*\ | |
| !*** ./node_modules/style-loader/lib/urls.js ***! | |
| \***********************************************/ | |
| /*! no static exports found */ | |
| /***/ (function(module, exports) { | |
| eval("\n/**\n * When source maps are enabled, `style-loader` uses a link element with a data-uri to\n * embed the css on the page. This breaks all relative urls because now they are relative to a\n * bundle instead of the current page.\n *\n * One solution is to only use full urls, but that may be impossible.\n *\n * Instead, this function \"fixes\" the relative urls to be absolute according to the current page location.\n *\n * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.\n *\n */\n\nmodule.exports = function (css) {\n // get current location\n var location = typeof window !== \"undefined\" && window.location;\n\n if (!location) {\n throw new Error(\"fixUrls requires window.location\");\n }\n\n\t// blank or null?\n\tif (!css || typeof css !== \"string\") {\n\t return css;\n }\n\n var baseUrl = location.protocol + \"//\" + location.host;\n var currentDir = baseUrl + location.pathname.replace(/\\/[^\\/]*$/, \"/\");\n\n\t// convert each url(...)\n\t/*\n\tThis regular expression is just a way to recursively match brackets within\n\ta string.\n\n\t /url\\s*\\( = Match on the word \"url\" with any whitespace after it and then a parens\n\t ( = Start a capturing group\n\t (?: = Start a non-capturing group\n\t [^)(] = Match anything that isn't a parentheses\n\t | = OR\n\t \\( = Match a start parentheses\n\t (?: = Start another non-capturing groups\n\t [^)(]+ = Match anything that isn't a parentheses\n\t | = OR\n\t \\( = Match a start parentheses\n\t [^)(]* = Match anything that isn't a parentheses\n\t \\) = Match a end parentheses\n\t ) = End Group\n *\\) = Match anything and then a close parens\n ) = Close non-capturing group\n * = Match anything\n ) = Close capturing group\n\t \\) = Match a close parens\n\n\t /gi = Get all matches, not the first. Be case insensitive.\n\t */\n\tvar fixedCss = css.replace(/url\\s*\\(((?:[^)(]|\\((?:[^)(]+|\\([^)(]*\\))*\\))*)\\)/gi, function(fullMatch, origUrl) {\n\t\t// strip quotes (if they exist)\n\t\tvar unquotedOrigUrl = origUrl\n\t\t\t.trim()\n\t\t\t.replace(/^\"(.*)\"$/, function(o, $1){ return $1; })\n\t\t\t.replace(/^'(.*)'$/, function(o, $1){ return $1; });\n\n\t\t// already a full url? no change\n\t\tif (/^(#|data:|http:\\/\\/|https:\\/\\/|file:\\/\\/\\/)/i.test(unquotedOrigUrl)) {\n\t\t return fullMatch;\n\t\t}\n\n\t\t// convert the url to a full url\n\t\tvar newUrl;\n\n\t\tif (unquotedOrigUrl.indexOf(\"//\") === 0) {\n\t\t \t//TODO: should we add protocol?\n\t\t\tnewUrl = unquotedOrigUrl;\n\t\t} else if (unquotedOrigUrl.indexOf(\"/\") === 0) {\n\t\t\t// path should be relative to the base url\n\t\t\tnewUrl = baseUrl + unquotedOrigUrl; // already starts with '/'\n\t\t} else {\n\t\t\t// path should be relative to current directory\n\t\t\tnewUrl = currentDir + unquotedOrigUrl.replace(/^\\.\\//, \"\"); // Strip leading './'\n\t\t}\n\n\t\t// send back the fixed url(...)\n\t\treturn \"url(\" + JSON.stringify(newUrl) + \")\";\n\t});\n\n\t// send back the fixed css\n\treturn fixedCss;\n};\n\n\n//# sourceURL=webpack:///./node_modules/style-loader/lib/urls.js?"); | |
| /***/ }), | |
| /***/ "./src/main.js": | |
| /*!*********************!*\ | |
| !*** ./src/main.js ***! | |
| \*********************/ | |
| /*! no exports provided */ | |
| /***/ (function(module, __webpack_exports__, __webpack_require__) { | |
| "use strict"; | |
| eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _views_quotation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./views/quotation */ \"./src/views/quotation.js\");\n\nvar supportedAPI = ['init', 'widgetname'];\n\nfunction app(window) {\n var configurations = {\n someDefaultConfiguration: false\n };\n var globalObject = window[window['JS-Widget']];\n var queue = globalObject.q;\n\n if (queue) {\n for (var i = 0; i < queue.length; i++) {\n if (queue[i][0].toLowerCase() == 'init') {\n configurations = extendObject(configurations, queue[i][1]);\n } else apiHandler(queue[i][0], queue[i][1]);\n }\n }\n\n globalObject = apiHandler;\n globalObject.configurations = configurations;\n}\n\nfunction apiHandler(api, params) {\n if (!api) throw Error('API method required');\n api = api.toLowerCase();\n if (supportedAPI.indexOf(api) === -1) throw Error(\"Method \".concat(api, \" is not supported\"));\n Object(_views_quotation__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(params);\n}\n\nfunction extendObject(a, b) {\n for (var key in b) {\n if (b.hasOwnProperty(key)) a[key] = b[key];\n }\n\n return a;\n}\n\napp(window);\n\n//# sourceURL=webpack:///./src/main.js?"); | |
| /***/ }), | |
| /***/ "./src/style/quotation/hero.scss": | |
| /*!***************************************!*\ | |
| !*** ./src/style/quotation/hero.scss ***! | |
| \***************************************/ | |
| /*! no static exports found */ | |
| /***/ (function(module, exports, __webpack_require__) { | |
| eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./hero.scss */ \"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/style/quotation/hero.scss\");\nif(typeof content === 'string') content = [[module.i, content, '']];\n// Prepare cssTransformation\nvar transform;\n\nvar options = {\"hmr\":true}\noptions.transform = transform\n// add the styles to the DOM\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/lib/addStyles.js */ \"./node_modules/style-loader/lib/addStyles.js\")(content, options);\nif(content.locals) module.exports = content.locals;\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./src/style/quotation/hero.scss?"); | |
| /***/ }), | |
| /***/ "./src/util/mask.js": | |
| /*!**************************!*\ | |
| !*** ./src/util/mask.js ***! | |
| \**************************/ | |
| /*! exports provided: phoneMask */ | |
| /***/ (function(module, __webpack_exports__, __webpack_require__) { | |
| "use strict"; | |
| eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"phoneMask\", function() { return phoneMask; });\nfunction phoneMask(event) {\n var phoneElm = document.getElementById('phone');\n var isClickInside = phoneElm.contains(event.target);\n\n if (isClickInside) {\n event.target.value = event.target.value.replace(/\\D/g, \"\");\n event.target.value = event.target.value.replace(/^(\\d{2})(\\d)/g, \"($1) $2\");\n event.target.value = event.target.value.replace(/(\\d)(\\d{4})$/, \"$1-$2\");\n return event.target.value;\n }\n}\n\n//# sourceURL=webpack:///./src/util/mask.js?"); | |
| /***/ }), | |
| /***/ "./src/util/regex.js": | |
| /*!***************************!*\ | |
| !*** ./src/util/regex.js ***! | |
| \***************************/ | |
| /*! exports provided: isValid */ | |
| /***/ (function(module, __webpack_exports__, __webpack_require__) { | |
| "use strict"; | |
| eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValid\", function() { return isValid; });\nvar phoneRegex = /\\(\\d{2}\\)\\s9?\\d{4}-\\d{4}/g;\nvar emailRegex = /(^$|^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$)/;\nfunction isValid(type, value) {\n if (type === 'phone') return phoneRegex.test(value);\n if (type === 'email') return emailRegex.test(value);\n}\n\n//# sourceURL=webpack:///./src/util/regex.js?"); | |
| /***/ }), | |
| /***/ "./src/util/validate.js": | |
| /*!******************************!*\ | |
| !*** ./src/util/validate.js ***! | |
| \******************************/ | |
| /*! exports provided: validate, show, disappear */ | |
| /***/ (function(module, __webpack_exports__, __webpack_require__) { | |
| "use strict"; | |
| eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"validate\", function() { return validate; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"show\", function() { return show; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"disappear\", function() { return disappear; });\n/* harmony import */ var _regex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex */ \"./src/util/regex.js\");\n\nfunction validate() {\n var idDestination = document.getElementById('idDestination');\n var numberOfPassengers = document.getElementById('numberOfPassengers');\n var numberOfOlderPassengers = document.getElementById('numberOfOlderPassengers');\n var initialDate = document.getElementById('initialDate');\n var endDate = document.getElementById('endDate');\n var name = document.getElementById('name');\n var phone = document.getElementById('phone');\n var email = document.getElementById('email');\n var params = {\n idDestination: idDestination.value,\n numberOfPassengers: numberOfPassengers.value,\n numberOfOlderPassengers: numberOfOlderPassengers.value,\n initialDate: initialDate.value,\n endDate: endDate.value,\n name: name.value,\n phone: phone.value,\n email: email.value\n };\n\n if (params.idDestination && (params.numberOfPassengers !== '0' || params.numberOfOlderPassengers !== '0') && params.initialDate && params.endDate && params.name && params.phone && Object(_regex__WEBPACK_IMPORTED_MODULE_0__[\"isValid\"])('email', params.email) && params.email && Object(_regex__WEBPACK_IMPORTED_MODULE_0__[\"isValid\"])('phone', params.phone)) {\n window.location.href = \"https://ciclic.com.br/seguro-viagem/#/cotacoes/?idDestination=\".concat(params.idDestination, \"&initialDate=\").concat(params.initialDate, \"&endDate=\").concat(params.endDate, \"&numberOfPassengers=\").concat(params.numberOfPassengers, \"&numberOfOlderPassengers=\").concat(params.numberOfOlderPassengers);\n }\n\n if (params.idDestination === 'null') show('idDestination');\n if (params.numberOfPassengers === '0' && params.numberOfOlderPassengers === '0') show('numberOfPassengers');\n if (!params.initialDate) show('initialDate');\n if (!params.endDate) show('endDate');\n if (!params.name) show('name');\n if (!params.phone && !Object(_regex__WEBPACK_IMPORTED_MODULE_0__[\"isValid\"])('phone', params.phone)) show('phone');\n if (!params.email) show('email');\n}\nfunction show(id) {\n var elmMessage = document.getElementsByClassName('quotation__validation');\n if (id === 'idDestination') elmMessage[0].classList.add('show');\n if (id === 'numberOfPassengers') elmMessage[1].classList.add('show');\n if (id === 'initialDate') elmMessage[2].classList.add('show');\n if (id === 'endDate') elmMessage[2].classList.add('show');\n if (id === 'name') elmMessage[3].classList.add('show');\n if (id === 'phone') elmMessage[4].classList.add('show');\n if (id === 'email') elmMessage[5].classList.add('show');\n}\nfunction disappear(id) {\n var elmMessage = document.getElementsByClassName('quotation__validation');\n if (id === 'idDestination') elmMessage[0].classList.remove('show');\n if (id === 'numberOfPassengers') elmMessage[1].classList.remove('show');\n if (id === 'numberOfOlderPassengers') elmMessage[1].classList.remove('show');\n if (id === 'initialDate') elmMessage[2].classList.remove('show');\n if (id === 'endDate') elmMessage[2].classList.remove('show');\n if (id === 'name') elmMessage[3].classList.remove('show');\n if (id === 'phone') elmMessage[4].classList.remove('show');\n if (id === 'email') elmMessage[5].classList.remove('show');\n}\n\n//# sourceURL=webpack:///./src/util/validate.js?"); | |
| /***/ }), | |
| /***/ "./src/views/quotation.html": | |
| /*!**********************************!*\ | |
| !*** ./src/views/quotation.html ***! | |
| \**********************************/ | |
| /*! no static exports found */ | |
| /***/ (function(module, exports) { | |
| eval("module.exports = \"<div id=\\\"quotation-travels\\\" class=\\\"quotation\\\">\\n <div class=\\\"quotation__container\\\">\\n\\n <form class=\\\"quotation__container__form\\\">\\n <div class=\\\"quotation__container__form--group\\\">\\n <label class=\\\"quotation__container__form--label\\\" for=\\\"idDestination\\\">Qual seu destino?</label>\\n <select class=\\\"quotation__container__form--select\\\" name=\\\"\\\" id=\\\"idDestination\\\">\\n <option disabled=\\\"disabled\\\" value=\\\"null\\\" selected=\\\"selected\\\">Escolha seu destino</option>\\n <option value=\\\"AN\\\">América do Norte (inclui EUA)</option>\\n <option value=\\\"EU\\\">Europa</option>\\n <option value=\\\"AL\\\">América Latina</option>\\n <option value=\\\"BR\\\">Brasil</option>\\n <option value=\\\"MD\\\">Multidestinos</option>\\n <option value=\\\"AS\\\">Ásia</option>\\n <option value=\\\"AF\\\">Africa</option>\\n <option value=\\\"OC\\\">Oceania</option>\\n </select>\\n <div class=\\\"quotation__validation\\\">Você precisa selecionar seu destino</div>\\n </div>\\n <div class=\\\"quotation__container__form--group\\\">\\n <label class=\\\"quotation__container__form--label\\\" for=\\\"passengers\\\">Quantidade de Passageiros</label>\\n <div class=\\\"quotation__container__form--group__multiple\\\">\\n <small class=\\\"quotation__container__form--group__multiple--label\\\">\\n De 0 a 69 anos de idade\\n </small>\\n <select aria-label=\\\"Quantidade de passageiros de 0 a 69 anos\\\" id=\\\"numberOfPassengers\\\" class=\\\"quotation__container__form--select\\\" name=\\\"age\\\">\\n <option value=\\\"0\\\" selected>0</option>\\n <option value=\\\"1\\\">1</option>\\n <option value=\\\"2\\\">2</option>\\n <option value=\\\"3\\\">3</option>\\n <option value=\\\"4\\\">4</option>\\n <option value=\\\"5\\\">5</option>\\n <option value=\\\"6\\\">6</option>\\n <option value=\\\"7\\\">7</option>\\n <option value=\\\"8\\\">8</option>\\n <option value=\\\"9\\\">9</option>\\n <option value=\\\"10\\\">10</option>\\n </select>\\n </div>\\n <div class=\\\"quotation__container__form--group__multiple\\\">\\n <small class=\\\"quotation__container__form--group__multiple--label\\\">\\n De 70 a 85 anos de idade\\n </small>\\n <select aria-label=\\\"Quantidade de passageiros de 70 a 85 anos\\\" id=\\\"numberOfOlderPassengers\\\" class=\\\"quotation__container__form--select\\\" name=\\\"ageLessThen89Years\\\">\\n <option value=\\\"0\\\" selected>0</option>\\n <option value=\\\"1\\\">1</option>\\n <option value=\\\"2\\\">2</option>\\n <option value=\\\"3\\\">3</option>\\n <option value=\\\"4\\\">4</option>\\n <option value=\\\"5\\\">5</option>\\n <option value=\\\"6\\\">6</option>\\n <option value=\\\"7\\\">7</option>\\n <option value=\\\"8\\\">8</option>\\n <option value=\\\"9\\\">9</option>\\n <option value=\\\"10\\\">10</option>\\n </select>\\n </div>\\n <div class=\\\"quotation__validation\\\">Você precisa preencher os passageiros</div>\\n </div>\\n\\n <div class=\\\"quotation__container__form--group\\\">\\n <label class=\\\"quotation__container__form--label\\\" for=\\\"dateTravel\\\">Data de viagem</label>\\n <div class=\\\"quotation__container__form--group__multiple\\\">\\n <div class=\\\"quotation__container__form--group__multiple--datepicker\\\">\\n <label class=\\\"datepicker--label\\\" for=\\\"\\\">Ida</label>\\n <input type=\\\"date\\\" id=\\\"initialDate\\\" name=\\\"startDate\\\" class=\\\"quotation__container__form--group__datepicker\\\" placeholder=\\\"dd/mm/aaaa\\\">\\n </div>\\n <div class=\\\"quotation__container__form--group__multiple--datepicker\\\">\\n <label class=\\\"datepicker--label\\\" for=\\\"\\\">Volta</label>\\n <input type=\\\"date\\\" id=\\\"endDate\\\" name=\\\"endDate\\\" class=\\\"quotation__container__form--group__datepicker\\\" placeholder=\\\"dd/mm/aaaa\\\">\\n </div>\\n <div class=\\\"quotation__validation\\\">Selecione sua data de ida e volta</div>\\n </div>\\n </div>\\n\\n <div class=\\\"quotation__container__form--group\\\">\\n <div class=\\\"quotation__container__form--group__multiple\\\">\\n <small class=\\\"quotation__container__form--group__multiple--label label-default\\\">Nome Completo</small>\\n <input type=\\\"text\\\" class=\\\"quotation__container__form--input\\\" id=\\\"name\\\" />\\n <div class=\\\"quotation__validation\\\">Você precisa digitar seu nome completo</div>\\n </div>\\n <div class=\\\"quotation__container__form--group__multiple\\\">\\n <small class=\\\"quotation__container__form--group__multiple--label label-default\\\">Telefone</small>\\n <input type=\\\"phone\\\" class=\\\"quotation__container__form--input\\\" id=\\\"phone\\\" maxlength=\\\"15\\\" />\\n <div class=\\\"quotation__validation\\\">Você precisa digitar seu telefone</div>\\n </div>\\n </div>\\n\\n <div class=\\\"quotation__container__form--group\\\">\\n <small class=\\\"quotation__container__form--group__multiple--label label-default\\\">Email</small>\\n <input type=\\\"email\\\" class=\\\"quotation__container__form--input\\\" id=\\\"email\\\" />\\n <div class=\\\"quotation__validation\\\">Você precisa digitar seu email</div>\\n </div>\\n\\n <button id=\\\"btn-quotation\\\" class=\\\"quotation__container__form__action\\\">\\n Cotar agora\\n </button>\\n </form>\\n\\n <div class=\\\"quotation__container__powered\\\">\\n <p class=\\\"quotation__container__powered--label\\\">\\n Powered by\\n </p>\\n <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" viewBox=\\\"0 0 3072.03 720.5\\\"><defs><linearGradient id=\\\"ciclic-footer_svg__a\\\" x1=\\\"1070.2\\\" y1=\\\"357.2\\\" x2=\\\"1640.56\\\" y2=\\\"27.9\\\" gradientUnits=\\\"userSpaceOnUse\\\"><stop offset=\\\".2\\\" stop-color=\\\"#d3fd58\\\"/><stop offset=\\\".33\\\" stop-color=\\\"#b6f968\\\"/><stop offset=\\\".63\\\" stop-color=\\\"#6cef92\\\"/><stop offset=\\\"1\\\" stop-color=\\\"#07e2ca\\\"/></linearGradient><linearGradient id=\\\"ciclic-footer_svg__b\\\" x1=\\\"2547.51\\\" y1=\\\"114.18\\\" x2=\\\"3071.56\\\" y2=\\\"114.18\\\" xlink:href=\\\"#ciclic-footer_svg__a\\\"/><linearGradient id=\\\"ciclic-footer_svg__c\\\" x1=\\\"-8.3\\\" y1=\\\"414.77\\\" x2=\\\"606.8\\\" y2=\\\"59.64\\\" gradientUnits=\\\"userSpaceOnUse\\\"><stop offset=\\\"0\\\" stop-color=\\\"#d3fd58\\\"/><stop offset=\\\"1\\\" stop-color=\\\"#07e2ca\\\"/></linearGradient></defs><path d=\\\"M1139.92 287.75a72.33 72.33 0 0 1 72.08 67.32c2.63-117 98.29-211.07 215.94-211.07 99 0 152.73 63.27 152.73 63.27a72 72 0 0 0 101.83-101.83S1588.8 0 1427.92 0C1231.31 0 1071.53 157.61 1068 353.36a72.36 72.36 0 0 1 71.92-65.61z\\\" fill=\\\"url(#ciclic-footer_svg__a)\\\"/><path d=\\\"M2592.4 83.85a72.49 72.49 0 0 1 56.51 117.91 215.26 215.26 0 0 1 147-57.76c99 0 152.73 63.27 152.73 63.27a72 72 0 0 0 101.83-101.83S2956.8 0 2795.92 0a358.79 358.79 0 0 0-248.41 99.44 72 72 0 0 1 44.89-15.59z\\\" fill=\\\"url(#ciclic-footer_svg__b)\\\"/><path fill=\\\"#00e1cd\\\" d=\\\"M1922.92 0a71.9 71.9 0 0 0-72 72v576a72 72 0 0 0 144 0V72a71.91 71.91 0 0 0-72-72zm-1071 306a71.9 71.9 0 0 0-72 72v198a72 72 0 0 0 144 0V378a71.91 71.91 0 0 0-72-72z\\\"/><circle fill=\\\"#00e1cd\\\" cx=\\\"851.92\\\" cy=\\\"153\\\" r=\\\"81\\\" transform=\\\"rotate(-1.71 852.922 153.141)\\\"/><path fill=\\\"#00e1cd\\\" d=\\\"M2219.92 306a71.9 71.9 0 0 0-72 72v198a72 72 0 0 0 144 0V378a71.91 71.91 0 0 0-72-72z\\\"/><circle fill=\\\"#00e1cd\\\" cx=\\\"2219.92\\\" cy=\\\"153\\\" r=\\\"81\\\" transform=\\\"rotate(-1.91 2216.501 152.76)\\\"/><path d=\\\"M84.1 563.65a72.23 72.23 0 0 1 119.68-54.48A215.27 215.27 0 0 1 144 360c0-119.29 96.71-216 216-216 99 0 152.74 63.27 152.74 63.27a72 72 0 1 0 101.82-101.83S520.88 0 360 0C161.18 0 0 161.18 0 360a358.8 358.8 0 0 0 100.7 249.72 71.72 71.72 0 0 1-16.6-46.07z\\\" fill=\\\"url(#ciclic-footer_svg__c)\\\"/><path fill=\\\"#00e1cd\\\" d=\\\"M614.74 512.56a72.26 72.26 0 0 0-102.18 0c-.15.17-13.73 16-39.22 31.61a213.35 213.35 0 0 1-47.8 21.71 219.26 219.26 0 0 1-65.54 9.87 215.7 215.7 0 0 1-64.75-9.87 218.9 218.9 0 0 1-47.9-21.72c-25.71-15.62-39.76-31.43-39.9-31.59a72.25 72.25 0 1 0-102.19 102.17c.23.25 23.94 26.68 67 52.76a368.55 368.55 0 0 0 80 36.27 360.29 360.29 0 0 0 215.44 0 368.55 368.55 0 0 0 80-36.27c43.06-26.08 66.77-52.51 67-52.77a72.26 72.26 0 0 0 0-102.17zm1067.91 0a72.25 72.25 0 0 0-102.17 0c-.15.17-13.73 16-39.22 31.61a214 214 0 0 1-47.8 21.71 219.26 219.26 0 0 1-65.54 9.87A215.56 215.56 0 0 1 1212.17 360a72.25 72.25 0 0 0-144.5 0 360.23 360.23 0 0 0 468 343.76 368 368 0 0 0 80-36.27c43.06-26.08 66.77-52.5 67-52.77a72.25 72.25 0 0 0 0-102.16zm1368.18-.18a72.51 72.51 0 0 0-102.53 0c-.16.19-13.73 16-39.19 31.58a213.49 213.49 0 0 1-47.74 21.69 219.29 219.29 0 0 1-65.45 9.85 215.36 215.36 0 0 1-152.25-367.88 72.5 72.5 0 1 0-102.53-102.53A360.44 360.44 0 0 0 2903.71 704a368.59 368.59 0 0 0 80.08-36.29c43.09-26.1 66.82-52.56 67.06-52.82a72.57 72.57 0 0 0-.02-102.51z\\\"/></svg>\\n </div>\\n </div>\\n</div>\";\n\n//# sourceURL=webpack:///./src/views/quotation.html?"); | |
| /***/ }), | |
| /***/ "./src/views/quotation.js": | |
| /*!********************************!*\ | |
| !*** ./src/views/quotation.js ***! | |
| \********************************/ | |
| /*! exports provided: default */ | |
| /***/ (function(module, __webpack_exports__, __webpack_require__) { | |
| "use strict"; | |
| eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return mounted; });\n/* harmony import */ var _util_mask__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/mask */ \"./src/util/mask.js\");\n/* harmony import */ var _util_validate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/validate */ \"./src/util/validate.js\");\n/* harmony import */ var _quotation_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./quotation.html */ \"./src/views/quotation.html\");\n/* harmony import */ var _quotation_html__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_quotation_html__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _style_quotation_hero_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../style/quotation/hero.scss */ \"./src/style/quotation/hero.scss\");\n/* harmony import */ var _style_quotation_hero_scss__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_style_quotation_hero_scss__WEBPACK_IMPORTED_MODULE_3__);\n\n\n\n\nvar elements = [];\nvar body;\nfunction mounted() {\n var temporary = document.createElement('div');\n temporary.innerHTML = _quotation_html__WEBPACK_IMPORTED_MODULE_2___default.a;\n body = document.getElementsByTagName('body')[0];\n\n while (temporary.children.length > 0) {\n elements.push(temporary.children[0]);\n body.appendChild(temporary.children[0]);\n }\n\n document.addEventListener('keypress', _util_mask__WEBPACK_IMPORTED_MODULE_0__[\"phoneMask\"].bind(this));\n document.addEventListener('change', trackingFill.bind(this));\n document.addEventListener('click', onSubmit.bind(this));\n}\n\nfunction trackingFill(event) {\n var id = event.target.id;\n Object(_util_validate__WEBPACK_IMPORTED_MODULE_1__[\"disappear\"])(id);\n}\n\nfunction onSubmit(event) {\n var btn = document.getElementById('btn-quotation');\n var isClickInside = btn.contains(event.target);\n event.preventDefault();\n\n if (isClickInside) {\n Object(_util_validate__WEBPACK_IMPORTED_MODULE_1__[\"validate\"])();\n }\n}\n\n//# sourceURL=webpack:///./src/views/quotation.js?"); | |
| /***/ }) | |
| /******/ }); | |
| //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vd2VicGFjay9ib290c3RyYXAiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtRQUFBO1FBQ0E7O1FBRUE7UUFDQTs7UUFFQTtRQUNBO1FBQ0E7UUFDQTtRQUNBO1FBQ0E7UUFDQTtRQUNBO1FBQ0E7UUFDQTs7UUFFQTtRQUNBOztRQUVBO1FBQ0E7O1FBRUE7UUFDQTtRQUNBOzs7UUFHQTtRQUNBOztRQUVBO1FBQ0E7O1FBRUE7UUFDQTtRQUNBO1FBQ0EsMENBQTBDLGdDQUFnQztRQUMxRTtRQUNBOztRQUVBO1FBQ0E7UUFDQTtRQUNBLHdEQUF3RCxrQkFBa0I7UUFDMUU7UUFDQSxpREFBaUQsY0FBYztRQUMvRDs7UUFFQTtRQUNBO1FBQ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IHJldHVybiBleHBvcnRzXG4gXHRyZXR1cm4gX193ZWJwYWNrX3JlcXVpcmVfXyhfX3dlYnBhY2tfcmVxdWlyZV9fLnMgPSBcIi4vc3JjL21haW4uanNcIik7XG4iXSwic291cmNlUm9vdCI6IiJ9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment