4157
| <![CDATA[<script>(function() {var fragmentElement = document.querySelector('#fragment-904515-whda'); var configuration = {"bgColor":{"cssClass":"quaternary","rgbValue":"rgb(255, 205, 153)"},"alinhado":"center"};/*!
* cleave.js - 1.6.0
* https://github.com/nosir/cleave.js
* Apache License Version 2.0
*
* Copyright (C) 2012-2020 Max Huang https://github.com/nosir/
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Cleave=t():e.Cleave=t()}(this,function(){return function(e){function t(i){if(r[i])return r[i].exports;var n=r[i]={exports:{},id:i,loaded:!1};return e[i].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){(function(t){"use strict";var i=function(e,t){var r=this,n=!1;if("string"==typeof e?(r.element=document.querySelector(e),n=document.querySelectorAll(e).length>1):"undefined"!=typeof e.length&&e.length>0?(r.element=e[0],n=e.length>1):r.element=e,!r.element)throw new Error("[cleave.js] Please check the element");if(n)try{console.warn("[cleave.js] Multiple input fields matched, cleave.js will only take the first one.")}catch(a){}t.initValue=r.element.value,r.properties=i.DefaultProperties.assign({},t),r.init()};i.prototype={init:function(){var e=this,t=e.properties;return t.numeral||t.phone||t.creditCard||t.time||t.date||0!==t.blocksLength||t.prefix?(t.maxLength=i.Util.getMaxLength(t.blocks),e.isAndroid=i.Util.isAndroid(),e.lastInputValue="",e.isBackward="",e.onChangeListener=e.onChange.bind(e),e.onKeyDownListener=e.onKeyDown.bind(e),e.onFocusListener=e.onFocus.bind(e),e.onCutListener=e.onCut.bind(e),e.onCopyListener=e.onCopy.bind(e),e.initSwapHiddenInput(),e.element.addEventListener("input",e.onChangeListener),e.element.addEventListener("keydown",e.onKeyDownListener),e.element.addEventListener("focus",e.onFocusListener),e.element.addEventListener("cut",e.onCutListener),e.element.addEventListener("copy",e.onCopyListener),e.initPhoneFormatter(),e.initDateFormatter(),e.initTimeFormatter(),e.initNumeralFormatter(),void((t.initValue||t.prefix&&!t.noImmediatePrefix)&&e.onInput(t.initValue))):void e.onInput(t.initValue)},initSwapHiddenInput:function(){var e=this,t=e.properties;if(t.swapHiddenInput){var r=e.element.cloneNode(!0);e.element.parentNode.insertBefore(r,e.element),e.elementSwapHidden=e.element,e.elementSwapHidden.type="hidden",e.element=r,e.element.id=""}},initNumeralFormatter:function(){var e=this,t=e.properties;t.numeral&&(t.numeralFormatter=new i.NumeralFormatter(t.numeralDecimalMark,t.numeralIntegerScale,t.numeralDecimalScale,t.numeralThousandsGroupStyle,t.numeralPositiveOnly,t.stripLeadingZeroes,t.prefix,t.signBeforePrefix,t.tailPrefix,t.delimiter))},initTimeFormatter:function(){var e=this,t=e.properties;t.time&&(t.timeFormatter=new i.TimeFormatter(t.timePattern,t.timeFormat),t.blocks=t.timeFormatter.getBlocks(),t.blocksLength=t.blocks.length,t.maxLength=i.Util.getMaxLength(t.blocks))},initDateFormatter:function(){var e=this,t=e.properties;t.date&&(t.dateFormatter=new i.DateFormatter(t.datePattern,t.dateMin,t.dateMax),t.blocks=t.dateFormatter.getBlocks(),t.blocksLength=t.blocks.length,t.maxLength=i.Util.getMaxLength(t.blocks))},initPhoneFormatter:function(){var e=this,t=e.properties;if(t.phone)try{t.phoneFormatter=new i.PhoneFormatter(new t.root.Cleave.AsYouTypeFormatter(t.phoneRegionCode),t.delimiter)}catch(r){throw new Error("[cleave.js] Please include phone-type-formatter.{country}.js lib")}},onKeyDown:function(e){var t=this,r=e.which||e.keyCode;t.lastInputValue=t.element.value,t.isBackward=8===r},onChange:function(e){var t=this,r=t.properties,n=i.Util;t.isBackward=t.isBackward||"deleteContentBackward"===e.inputType;var a=n.getPostDelimiter(t.lastInputValue,r.delimiter,r.delimiters);t.isBackward&&a?r.postDelimiterBackspace=a:r.postDelimiterBackspace=!1,this.onInput(this.element.value)},onFocus:function(){var e=this,t=e.properties;e.lastInputValue=e.element.value,t.prefix&&t.noImmediatePrefix&&!e.element.value&&this.onInput(t.prefix),i.Util.fixPrefixCursor(e.element,t.prefix,t.delimiter,t.delimiters)},onCut:function(e){i.Util.checkFullSelection(this.element.value)&&(this.copyClipboardData(e),this.onInput(""))},onCopy:function(e){i.Util.checkFullSelection(this.element.value)&&this.copyClipboardData(e)},copyClipboardData:function(e){var t=this,r=t.properties,n=i.Util,a=t.element.value,o="";o=r.copyDelimiter?a:n.stripDelimiters(a,r.delimiter,r.delimiters);try{e.clipboardData?e.clipboardData.setData("Text",o):window.clipboardData.setData("Text",o),e.preventDefault()}catch(l){}},onInput:function(e){var t=this,r=t.properties,n=i.Util,a=n.getPostDelimiter(e,r.delimiter,r.delimiters);return r.numeral||!r.postDelimiterBackspace||a||(e=n.headStr(e,e.length-r.postDelimiterBackspace.length)),r.phone?(!r.prefix||r.noImmediatePrefix&&!e.length?r.result=r.phoneFormatter.format(e):r.result=r.prefix+r.phoneFormatter.format(e).slice(r.prefix.length),void t.updateValueState()):r.numeral?(r.prefix&&r.noImmediatePrefix&&0===e.length?r.result="":r.result=r.numeralFormatter.format(e),void t.updateValueState()):(r.date&&(e=r.dateFormatter.getValidatedDate(e)),r.time&&(e=r.timeFormatter.getValidatedTime(e)),e=n.stripDelimiters(e,r.delimiter,r.delimiters),e=n.getPrefixStrippedValue(e,r.prefix,r.prefixLength,r.result,r.delimiter,r.delimiters,r.noImmediatePrefix,r.tailPrefix,r.signBeforePrefix),e=r.numericOnly?n.strip(e,/[^\d]/g):e,e=r.uppercase?e.toUpperCase():e,e=r.lowercase?e.toLowerCase():e,r.prefix&&(r.tailPrefix?e+=r.prefix:e=r.prefix+e,0===r.blocksLength)?(r.result=e,void t.updateValueState()):(r.creditCard&&t.updateCreditCardPropsByValue(e),e=n.headStr(e,r.maxLength),r.result=n.getFormattedValue(e,r.blocks,r.blocksLength,r.delimiter,r.delimiters,r.delimiterLazyShow),void t.updateValueState()))},updateCreditCardPropsByValue:function(e){var t,r=this,n=r.properties,a=i.Util;a.headStr(n.result,4)!==a.headStr(e,4)&&(t=i.CreditCardDetector.getInfo(e,n.creditCardStrictMode),n.blocks=t.blocks,n.blocksLength=n.blocks.length,n.maxLength=a.getMaxLength(n.blocks),n.creditCardType!==t.type&&(n.creditCardType=t.type,n.onCreditCardTypeChanged.call(r,n.creditCardType)))},updateValueState:function(){var e=this,t=i.Util,r=e.properties;if(e.element){var n=e.element.selectionEnd,a=e.element.value,o=r.result;if(n=t.getNextCursorPosition(n,a,o,r.delimiter,r.delimiters),e.isAndroid)return void window.setTimeout(function(){e.element.value=o,t.setSelection(e.element,n,r.document,!1),e.callOnValueChanged()},1);e.element.value=o,r.swapHiddenInput&&(e.elementSwapHidden.value=e.getRawValue()),t.setSelection(e.element,n,r.document,!1),e.callOnValueChanged()}},callOnValueChanged:function(){var e=this,t=e.properties;t.onValueChanged.call(e,{target:{name:e.element.name,value:t.result,rawValue:e.getRawValue()}})},setPhoneRegionCode:function(e){var t=this,r=t.properties;r.phoneRegionCode=e,t.initPhoneFormatter(),t.onChange()},setRawValue:function(e){var t=this,r=t.properties;e=void 0!==e&&null!==e?e.toString():"",r.numeral&&(e=e.replace(".",r.numeralDecimalMark)),r.postDelimiterBackspace=!1,t.element.value=e,t.onInput(e)},getRawValue:function(){var e=this,t=e.properties,r=i.Util,n=e.element.value;return t.rawValueTrimPrefix&&(n=r.getPrefixStrippedValue(n,t.prefix,t.prefixLength,t.result,t.delimiter,t.delimiters,t.noImmediatePrefix,t.tailPrefix,t.signBeforePrefix)),n=t.numeral?t.numeralFormatter.getRawValue(n):r.stripDelimiters(n,t.delimiter,t.delimiters)},getISOFormatDate:function(){var e=this,t=e.properties;return t.date?t.dateFormatter.getISOFormatDate():""},getISOFormatTime:function(){var e=this,t=e.properties;return t.time?t.timeFormatter.getISOFormatTime():""},getFormattedValue:function(){return this.element.value},destroy:function(){var e=this;e.element.removeEventListener("input",e.onChangeListener),e.element.removeEventListener("keydown",e.onKeyDownListener),e.element.removeEventListener("focus",e.onFocusListener),e.element.removeEventListener("cut",e.onCutListener),e.element.removeEventListener("copy",e.onCopyListener)},toString:function(){return"[Cleave Object]"}},i.NumeralFormatter=r(1),i.DateFormatter=r(2),i.TimeFormatter=r(3),i.PhoneFormatter=r(4),i.CreditCardDetector=r(5),i.Util=r(6),i.DefaultProperties=r(7),("object"==typeof t&&t?t:window).Cleave=i,e.exports=i}).call(t,function(){return this}())},function(e,t){"use strict";var r=function(e,t,i,n,a,o,l,s,c,u){var d=this;d.numeralDecimalMark=e||".",d.numeralIntegerScale=t>0?t:0,d.numeralDecimalScale=i>=0?i:2,d.numeralThousandsGroupStyle=n||r.groupStyle.thousand,d.numeralPositiveOnly=!!a,d.stripLeadingZeroes=o!==!1,d.prefix=l||""===l?l:"",d.signBeforePrefix=!!s,d.tailPrefix=!!c,d.delimiter=u||""===u?u:",",d.delimiterRE=u?new RegExp("\\"+u,"g"):""};r.groupStyle={thousand:"thousand",lakh:"lakh",wan:"wan",none:"none"},r.prototype={getRawValue:function(e){return e.replace(this.delimiterRE,"").replace(this.numeralDecimalMark,".")},format:function(e){var t,i,n,a,o=this,l="";switch(e=e.replace(/[A-Za-z]/g,"").replace(o.numeralDecimalMark,"M").replace(/[^\dM-]/g,"").replace(/^\-/,"N").replace(/\-/g,"").replace("N",o.numeralPositiveOnly?"":"-").replace("M",o.numeralDecimalMark),o.stripLeadingZeroes&&(e=e.replace(/^(-)?0+(?=\d)/,"$1")),i="-"===e.slice(0,1)?"-":"",n="undefined"!=typeof o.prefix?o.signBeforePrefix?i+o.prefix:o.prefix+i:i,a=e,e.indexOf(o.numeralDecimalMark)>=0&&(t=e.split(o.numeralDecimalMark),a=t[0],l=o.numeralDecimalMark+t[1].slice(0,o.numeralDecimalScale)),"-"===i&&(a=a.slice(1)),o.numeralIntegerScale>0&&(a=a.slice(0,o.numeralIntegerScale)),o.numeralThousandsGroupStyle){case r.groupStyle.lakh:a=a.replace(/(\d)(?=(\d\d)+\d$)/g,"$1"+o.delimiter);break;case r.groupStyle.wan:a=a.replace(/(\d)(?=(\d{4})+$)/g,"$1"+o.delimiter);break;case r.groupStyle.thousand:a=a.replace(/(\d)(?=(\d{3})+$)/g,"$1"+o.delimiter)}return o.tailPrefix?i+a.toString()+(o.numeralDecimalScale>0?l.toString():"")+o.prefix:n+a.toString()+(o.numeralDecimalScale>0?l.toString():"")}},e.exports=r},function(e,t){"use strict";var r=function(e,t,r){var i=this;i.date=[],i.blocks=[],i.datePattern=e,i.dateMin=t.split("-").reverse().map(function(e){return parseInt(e,10)}),2===i.dateMin.length&&i.dateMin.unshift(0),i.dateMax=r.split("-").reverse().map(function(e){return parseInt(e,10)}),2===i.dateMax.length&&i.dateMax.unshift(0),i.initBlocks()};r.prototype={initBlocks:function(){var e=this;e.datePattern.forEach(function(t){"Y"===t?e.blocks.push(4):e.blocks.push(2)})},getISOFormatDate:function(){var e=this,t=e.date;return t[2]?t[2]+"-"+e.addLeadingZero(t[1])+"-"+e.addLeadingZero(t[0]):""},getBlocks:function(){return this.blocks},getValidatedDate:function(e){var t=this,r="";return e=e.replace(/[^\d]/g,""),t.blocks.forEach(function(i,n){if(e.length>0){var a=e.slice(0,i),o=a.slice(0,1),l=e.slice(i);switch(t.datePattern[n]){case"d":"00"===a?a="01":parseInt(o,10)>3?a="0"+o:parseInt(a,10)>31&&(a="31");break;case"m":"00"===a?a="01":parseInt(o,10)>1?a="0"+o:parseInt(a,10)>12&&(a="12")}r+=a,e=l}}),this.getFixedDateString(r)},getFixedDateString:function(e){var t,r,i,n=this,a=n.datePattern,o=[],l=0,s=0,c=0,u=0,d=0,m=0,p=!1;4===e.length&&"y"!==a[0].toLowerCase()&&"y"!==a[1].toLowerCase()&&(u="d"===a[0]?0:2,d=2-u,t=parseInt(e.slice(u,u+2),10),r=parseInt(e.slice(d,d+2),10),o=this.getFixedDate(t,r,0)),8===e.length&&(a.forEach(function(e,t){switch(e){case"d":l=t;break;case"m":s=t;break;default:c=t}}),m=2*c,u=l<=c?2*l:2*l+2,d=s<=c?2*s:2*s+2,t=parseInt(e.slice(u,u+2),10),r=parseInt(e.slice(d,d+2),10),i=parseInt(e.slice(m,m+4),10),p=4===e.slice(m,m+4).length,o=this.getFixedDate(t,r,i)),4!==e.length||"y"!==a[0]&&"y"!==a[1]||(d="m"===a[0]?0:2,m=2-d,r=parseInt(e.slice(d,d+2),10),i=parseInt(e.slice(m,m+2),10),p=2===e.slice(m,m+2).length,o=[0,r,i]),6!==e.length||"Y"!==a[0]&&"Y"!==a[1]||(d="m"===a[0]?0:4,m=2-.5*d,r=parseInt(e.slice(d,d+2),10),i=parseInt(e.slice(m,m+4),10),p=4===e.slice(m,m+4).length,o=[0,r,i]),o=n.getRangeFixedDate(o),n.date=o;var h=0===o.length?e:a.reduce(function(e,t){switch(t){case"d":return e+(0===o[0]?"":n.addLeadingZero(o[0]));case"m":return e+(0===o[1]?"":n.addLeadingZero(o[1]));case"y":return e+(p?n.addLeadingZeroForYear(o[2],!1):"");case"Y":return e+(p?n.addLeadingZeroForYear(o[2],!0):"")}},"");return h},getRangeFixedDate:function(e){var t=this,r=t.datePattern,i=t.dateMin||[],n=t.dateMax||[];return!e.length||i.length<3&&n.length<3?e:r.find(function(e){return"y"===e.toLowerCase()})&&0===e[2]?e:n.length&&(n[2]<e[2]||n[2]===e[2]&&(n[1]<e[1]||n[1]===e[1]&&n[0]<e[0]))?n:i.length&&(i[2]>e[2]||i[2]===e[2]&&(i[1]>e[1]||i[1]===e[1]&&i[0]>e[0]))?i:e},getFixedDate:function(e,t,r){return e=Math.min(e,31),t=Math.min(t,12),r=parseInt(r||0,10),(t<7&&t%2===0||t>8&&t%2===1)&&(e=Math.min(e,2===t?this.isLeapYear(r)?29:28:30)),[e,t,r]},isLeapYear:function(e){return e%4===0&&e%100!==0||e%400===0},addLeadingZero:function(e){return(e<10?"0":"")+e},addLeadingZeroForYear:function(e,t){return t?(e<10?"000":e<100?"00":e<1e3?"0":"")+e:(e<10?"0":"")+e}},e.exports=r},function(e,t){"use strict";var r=function(e,t){var r=this;r.time=[],r.blocks=[],r.timePattern=e,r.timeFormat=t,r.initBlocks()};r.prototype={initBlocks:function(){var e=this;e.timePattern.forEach(function(){e.blocks.push(2)})},getISOFormatTime:function(){var e=this,t=e.time;return t[2]?e.addLeadingZero(t[0])+":"+e.addLeadingZero(t[1])+":"+e.addLeadingZero(t[2]):""},getBlocks:function(){return this.blocks},getTimeFormatOptions:function(){var e=this;return"12"===String(e.timeFormat)?{maxHourFirstDigit:1,maxHours:12,maxMinutesFirstDigit:5,maxMinutes:60}:{maxHourFirstDigit:2,maxHours:23,maxMinutesFirstDigit:5,maxMinutes:60}},getValidatedTime:function(e){var t=this,r="";e=e.replace(/[^\d]/g,"");var i=t.getTimeFormatOptions();return t.blocks.forEach(function(n,a){if(e.length>0){var o=e.slice(0,n),l=o.slice(0,1),s=e.slice(n);switch(t.timePattern[a]){case"h":parseInt(l,10)>i.maxHourFirstDigit?o="0"+l:parseInt(o,10)>i.maxHours&&(o=i.maxHours+"");break;case"m":case"s":parseInt(l,10)>i.maxMinutesFirstDigit?o="0"+l:parseInt(o,10)>i.maxMinutes&&(o=i.maxMinutes+"")}r+=o,e=s}}),this.getFixedTimeString(r)},getFixedTimeString:function(e){var t,r,i,n=this,a=n.timePattern,o=[],l=0,s=0,c=0,u=0,d=0,m=0;return 6===e.length&&(a.forEach(function(e,t){switch(e){case"s":l=2*t;break;case"m":s=2*t;break;case"h":c=2*t}}),m=c,d=s,u=l,t=parseInt(e.slice(u,u+2),10),r=parseInt(e.slice(d,d+2),10),i=parseInt(e.slice(m,m+2),10),o=this.getFixedTime(i,r,t)),4===e.length&&n.timePattern.indexOf("s")<0&&(a.forEach(function(e,t){switch(e){case"m":s=2*t;break;case"h":c=2*t}}),m=c,d=s,t=0,r=parseInt(e.slice(d,d+2),10),i=parseInt(e.slice(m,m+2),10),o=this.getFixedTime(i,r,t)),n.time=o,0===o.length?e:a.reduce(function(e,t){switch(t){case"s":return e+n.addLeadingZero(o[2]);case"m":return e+n.addLeadingZero(o[1]);case"h":return e+n.addLeadingZero(o[0])}},"")},getFixedTime:function(e,t,r){return r=Math.min(parseInt(r||0,10),60),t=Math.min(t,60),e=Math.min(e,60),[e,t,r]},addLeadingZero:function(e){return(e<10?"0":"")+e}},e.exports=r},function(e,t){"use strict";var r=function(e,t){var r=this;r.delimiter=t||""===t?t:" ",r.delimiterRE=t?new RegExp("\\"+t,"g"):"",r.formatter=e};r.prototype={setFormatter:function(e){this.formatter=e},format:function(e){var t=this;t.formatter.clear(),e=e.replace(/[^\d+]/g,""),e=e.replace(/^\+/,"B").replace(/\+/g,"").replace("B","+"),e=e.replace(t.delimiterRE,"");for(var r,i="",n=!1,a=0,o=e.length;a<o;a++)r=t.formatter.inputDigit(e.charAt(a)),/[\s()-]/g.test(r)?(i=r,n=!0):n||(i=r);return i=i.replace(/[()]/g,""),i=i.replace(/[\s-]/g,t.delimiter)}},e.exports=r},function(e,t){"use strict";var r={blocks:{uatp:[4,5,6],amex:[4,6,5],diners:[4,6,4],discover:[4,4,4,4],mastercard:[4,4,4,4],dankort:[4,4,4,4],instapayment:[4,4,4,4],jcb15:[4,6,5],jcb:[4,4,4,4],maestro:[4,4,4,4],visa:[4,4,4,4],mir:[4,4,4,4],unionPay:[4,4,4,4],general:[4,4,4,4]},re:{uatp:/^(?!1800)1\d{0,14}/,amex:/^3[47]\d{0,13}/,discover:/^(?:6011|65\d{0,2}|64[4-9]\d?)\d{0,12}/,diners:/^3(?:0([0-5]|9)|[689]\d?)\d{0,11}/,mastercard:/^(5[1-5]\d{0,2}|22[2-9]\d{0,1}|2[3-7]\d{0,2})\d{0,12}/,dankort:/^(5019|4175|4571)\d{0,12}/,instapayment:/^63[7-9]\d{0,13}/,jcb15:/^(?:2131|1800)\d{0,11}/,jcb:/^(?:35\d{0,2})\d{0,12}/,maestro:/^(?:5[0678]\d{0,2}|6304|67\d{0,2})\d{0,12}/,mir:/^220[0-4]\d{0,12}/,visa:/^4\d{0,15}/,unionPay:/^(62|81)\d{0,14}/},getStrictBlocks:function(e){var t=e.reduce(function(e,t){return e+t},0);return e.concat(19-t)},getInfo:function(e,t){var i=r.blocks,n=r.re;t=!!t;for(var a in n)if(n[a].test(e)){var o=i[a];return{type:a,blocks:t?this.getStrictBlocks(o):o}}return{type:"unknown",blocks:t?this.getStrictBlocks(i.general):i.general}}};e.exports=r},function(e,t){"use strict";var r={noop:function(){},strip:function(e,t){return e.replace(t,"")},getPostDelimiter:function(e,t,r){if(0===r.length)return e.slice(-t.length)===t?t:"";var i="";return r.forEach(function(t){e.slice(-t.length)===t&&(i=t)}),i},getDelimiterREByDelimiter:function(e){return new RegExp(e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"g")},getNextCursorPosition:function(e,t,r,i,n){return t.length===e?r.length:e+this.getPositionOffset(e,t,r,i,n)},getPositionOffset:function(e,t,r,i,n){var a,o,l;return a=this.stripDelimiters(t.slice(0,e),i,n),o=this.stripDelimiters(r.slice(0,e),i,n),l=a.length-o.length,0!==l?l/Math.abs(l):0},stripDelimiters:function(e,t,r){var i=this;if(0===r.length){var n=t?i.getDelimiterREByDelimiter(t):"";return e.replace(n,"")}return r.forEach(function(t){t.split("").forEach(function(t){e=e.replace(i.getDelimiterREByDelimiter(t),"")})}),e},headStr:function(e,t){return e.slice(0,t)},getMaxLength:function(e){return e.reduce(function(e,t){return e+t},0)},getPrefixStrippedValue:function(e,t,r,i,n,a,o,l,s){if(0===r)return e;if(e===t&&""!==e)return"";if(s&&"-"==e.slice(0,1)){var c="-"==i.slice(0,1)?i.slice(1):i;return"-"+this.getPrefixStrippedValue(e.slice(1),t,r,c,n,a,o,l,s)}if(i.slice(0,r)!==t&&!l)return o&&!i&&e?e:"";if(i.slice(-r)!==t&&l)return o&&!i&&e?e:"";var u=this.stripDelimiters(i,n,a);return e.slice(0,r)===t||l?e.slice(-r)!==t&&l?u.slice(0,-r-1):l?e.slice(0,-r):e.slice(r):u.slice(r)},getFirstDiffIndex:function(e,t){for(var r=0;e.charAt(r)===t.charAt(r);)if(""===e.charAt(r++))return-1;return r},getFormattedValue:function(e,t,r,i,n,a){var o="",l=n.length>0,s="";return 0===r?e:(t.forEach(function(t,c){if(e.length>0){var u=e.slice(0,t),d=e.slice(t);s=l?n[a?c-1:c]||s:i,a?(c>0&&(o+=s),o+=u):(o+=u,u.length===t&&c<r-1&&(o+=s)),e=d}}),o)},fixPrefixCursor:function(e,t,r,i){if(e){var n=e.value,a=r||i[0]||" ";if(e.setSelectionRange&&t&&!(t.length+a.length<=n.length)){var o=2*n.length;setTimeout(function(){e.setSelectionRange(o,o)},1)}}},checkFullSelection:function(e){try{var t=window.getSelection()||document.getSelection()||{};return t.toString().length===e.length}catch(r){}return!1},setSelection:function(e,t,r){if(e===this.getActiveElement(r)&&!(e&&e.value.length<=t))if(e.createTextRange){var i=e.createTextRange();i.move("character",t),i.select()}else try{e.setSelectionRange(t,t)}catch(n){console.warn("The input element type does not support selection")}},getActiveElement:function(e){var t=e.activeElement;return t&&t.shadowRoot?this.getActiveElement(t.shadowRoot):t},isAndroid:function(){return navigator&&/android/i.test(navigator.userAgent)},isAndroidBackspaceKeydown:function(e,t){return!!(this.isAndroid()&&e&&t)&&t===e.slice(0,-1)}};e.exports=r},function(e,t){(function(t){"use strict";var r={assign:function(e,r){return e=e||{},r=r||{},e.creditCard=!!r.creditCard,e.creditCardStrictMode=!!r.creditCardStrictMode,e.creditCardType="",e.onCreditCardTypeChanged=r.onCreditCardTypeChanged||function(){},e.phone=!!r.phone,e.phoneRegionCode=r.phoneRegionCode||"AU",e.phoneFormatter={},e.time=!!r.time,e.timePattern=r.timePattern||["h","m","s"],e.timeFormat=r.timeFormat||"24",e.timeFormatter={},e.date=!!r.date,e.datePattern=r.datePattern||["d","m","Y"],e.dateMin=r.dateMin||"",e.dateMax=r.dateMax||"",e.dateFormatter={},e.numeral=!!r.numeral,e.numeralIntegerScale=r.numeralIntegerScale>0?r.numeralIntegerScale:0,e.numeralDecimalScale=r.numeralDecimalScale>=0?r.numeralDecimalScale:2,e.numeralDecimalMark=r.numeralDecimalMark||".",e.numeralThousandsGroupStyle=r.numeralThousandsGroupStyle||"thousand",e.numeralPositiveOnly=!!r.numeralPositiveOnly,e.stripLeadingZeroes=r.stripLeadingZeroes!==!1,e.signBeforePrefix=!!r.signBeforePrefix,e.tailPrefix=!!r.tailPrefix,e.swapHiddenInput=!!r.swapHiddenInput,e.numericOnly=e.creditCard||e.date||!!r.numericOnly,e.uppercase=!!r.uppercase,e.lowercase=!!r.lowercase,e.prefix=e.creditCard||e.date?"":r.prefix||"",e.noImmediatePrefix=!!r.noImmediatePrefix,e.prefixLength=e.prefix.length,e.rawValueTrimPrefix=!!r.rawValueTrimPrefix,e.copyDelimiter=!!r.copyDelimiter,e.initValue=void 0!==r.initValue&&null!==r.initValue?r.initValue.toString():"",e.delimiter=r.delimiter||""===r.delimiter?r.delimiter:r.date?"/":r.time?":":r.numeral?",":(r.phone," "),e.delimiterLength=e.delimiter.length,e.delimiterLazyShow=!!r.delimiterLazyShow,e.delimiters=r.delimiters||[],e.blocks=r.blocks||[],e.blocksLength=e.blocks.length,e.root="object"==typeof t&&t?t:window,e.document=r.document||e.root.document,e.maxLength=0,e.backspace=!1,e.result="",e.onValueChanged=r.onValueChanged||function(){},e}};e.exports=r}).call(t,function(){return this}())}])});
!function(){function n(n,t){var e=n.split("."),l=U;e[0]in l||!l.execScript||l.execScript("var "+e[0]);for(var r;e.length&&(r=e.shift());)e.length||void 0===t?l=l[r]?l[r]:l[r]={}:l[r]=t}function t(n,t){function e(){}e.prototype=t.prototype,n.M=t.prototype,n.prototype=new e,n.prototype.constructor=n,n.N=function(n,e,l){for(var r=Array(arguments.length-2),i=2;i<arguments.length;i++)r[i-2]=arguments[i];return t.prototype[e].apply(n,r)}}function e(n,t){null!=n&&this.a.apply(this,arguments)}function l(n){n.b=""}function r(n,t){n.sort(t||i)}function i(n,t){return n>t?1:n<t?-1:0}function u(n){var t,e=[],l=0;for(t in n)e[l++]=n[t];return e}function a(n,t){this.b=n,this.a={};for(var e=0;e<t.length;e++){var l=t[e];this.a[l.b]=l}}function o(n){return n=u(n.a),r(n,function(n,t){return n.b-t.b}),n}function s(n,t){switch(this.b=n,this.g=!!t.v,this.a=t.c,this.i=t.type,this.h=!1,this.a){case J:case K:case L:case O:case Z:case k:case Y:this.h=!0}this.f=t.defaultValue}function f(){this.a={},this.f=this.j().a,this.b=this.g=null}function p(n,t){for(var e=o(n.j()),l=0;l<e.length;l++){var r=e[l],i=r.b;if(null!=t.a[i]){n.b&&delete n.b[r.b];var u=11==r.a||10==r.a;if(r.g)for(var r=c(t,i)||[],a=0;a<r.length;a++){var s=n,f=i,h=u?r[a].clone():r[a];s.a[f]||(s.a[f]=[]),s.a[f].push(h),s.b&&delete s.b[f]}else r=c(t,i),u?(u=c(n,i))?p(u,r):b(n,i,r.clone()):b(n,i,r)}}}function c(n,t){var e=n.a[t];if(null==e)return null;if(n.g){if(!(t in n.b)){var l=n.g,r=n.f[t];if(null!=e)if(r.g){for(var i=[],u=0;u<e.length;u++)i[u]=l.b(r,e[u]);e=i}else e=l.b(r,e);return n.b[t]=e}return n.b[t]}return e}function h(n,t,e){var l=c(n,t);return n.f[t].g?l[e||0]:l}function g(n,t){var e;if(null!=n.a[t])e=h(n,t,void 0);else n:{if(e=n.f[t],void 0===e.f){var l=e.i;if(l===Boolean)e.f=!1;else if(l===Number)e.f=0;else{if(l!==String){e=new l;break n}e.f=e.h?"0":""}}e=e.f}return e}function m(n,t){return n.f[t].g?null!=n.a[t]?n.a[t].length:0:null!=n.a[t]?1:0}function b(n,t,e){n.a[t]=e,n.b&&(n.b[t]=e)}function d(n,t){var e,l=[];for(e in t)0!=e&&l.push(new s(e,t[e]));return new a(n,l)}/*
Protocol Buffer 2 Copyright 2008 Google Inc.
All other code copyright its respective owners.
Copyright (C) 2010 The Libphonenumber Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
function y(){f.call(this)}function v(){f.call(this)}function _(){f.call(this)}function $(){}function S(){}function w(){}/*
Copyright (C) 2010 The Libphonenumber Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
function x(){this.a={}}function A(n){return 0==n.length||un.test(n)}function N(n,t){if(null==t)return null;t=t.toUpperCase();var e=n.a[t];if(null==e){if(e=tn[t],null==e)return null;e=(new w).a(_.j(),e),n.a[t]=e}return e}function C(n){return n=nn[n],null==n?"ZZ":n[0]}function j(n){this.H=RegExp(" "),this.C="",this.m=new e,this.w="",this.i=new e,this.u=new e,this.l=!0,this.A=this.o=this.F=!1,this.G=x.b(),this.s=0,this.b=new e,this.B=!1,this.h="",this.a=new e,this.f=[],this.D=n,this.J=this.g=B(this,this.D)}function B(n,t){var e;if(null!=t&&isNaN(t)&&t.toUpperCase()in tn){if(e=N(n.G,t),null==e)throw Error("Invalid region code: "+t);e=g(e,10)}else e=0;return e=N(n.G,C(e)),null!=e?e:an}function R(n){for(var t=n.f.length,e=0;e<t;++e){var r=n.f[e],i=g(r,1);if(n.w==i)return!1;var u;u=n;var a=r,o=g(a,1);if(-1!=o.indexOf("|"))u=!1;else{o=o.replace(on,"\\d"),o=o.replace(sn,"\\d"),l(u.m);var s;s=u;var a=g(a,2),f="999999999999999".match(o)[0];f.length<s.a.b.length?s="":(s=f.replace(new RegExp(o,"g"),a),s=s.replace(RegExp("9","g")," ")),0<s.length?(u.m.a(s),u=!0):u=!1}if(u)return n.w=i,n.B=pn.test(h(r,4)),n.s=0,!0}return n.l=!1}function E(n,t){for(var e=[],l=t.length-3,r=n.f.length,i=0;i<r;++i){var u=n.f[i];0==m(u,3)?e.push(n.f[i]):(u=h(u,3,Math.min(l,m(u,3)-1)),0==t.search(u)&&e.push(n.f[i]))}n.f=e}function F(n,t){n.i.a(t);var e=t;if(rn.test(e)||1==n.i.b.length&&ln.test(e)){var r,e=t;"+"==e?(r=e,n.u.a(e)):(r=en[e],n.u.a(r),n.a.a(r)),t=r}else n.l=!1,n.F=!0;if(!n.l){if(!n.F)if(P(n)){if(q(n))return I(n)}else if(0<n.h.length&&(e=n.a.toString(),l(n.a),n.a.a(n.h),n.a.a(e),e=n.b.toString(),r=e.lastIndexOf(n.h),l(n.b),n.b.a(e.substring(0,r))),n.h!=H(n))return n.b.a(" "),I(n);return n.i.toString()}switch(n.u.b.length){case 0:case 1:case 2:return n.i.toString();case 3:if(!P(n))return n.h=H(n),V(n);n.A=!0;default:return n.A?(q(n)&&(n.A=!1),n.b.toString()+n.a.toString()):0<n.f.length?(e=T(n,t),r=D(n),0<r.length?r:(E(n,n.a.toString()),R(n)?G(n):n.l?M(n,e):n.i.toString())):V(n)}}function I(n){return n.l=!0,n.A=!1,n.f=[],n.s=0,l(n.m),n.w="",V(n)}function D(n){for(var t=n.a.toString(),e=n.f.length,l=0;l<e;++l){var r=n.f[l],i=g(r,1);if(new RegExp("^(?:"+i+")$").test(t))return n.B=pn.test(h(r,4)),t=t.replace(new RegExp(i,"g"),h(r,2)),M(n,t)}return""}function M(n,t){var e=n.b.b.length;return n.B&&0<e&&" "!=n.b.toString().charAt(e-1)?n.b+" "+t:n.b+t}function V(n){var t=n.a.toString();if(3<=t.length){for(var e=n.o&&0==n.h.length&&0<m(n.g,20)?c(n.g,20)||[]:c(n.g,19)||[],l=e.length,r=0;r<l;++r){var i=e[r];0<n.h.length&&A(g(i,4))&&!h(i,6)&&null==i.a[5]||(0!=n.h.length||n.o||A(g(i,4))||h(i,6))&&fn.test(g(i,2))&&n.f.push(i)}return E(n,t),t=D(n),0<t.length?t:R(n)?G(n):n.i.toString()}return M(n,t)}function G(n){var t=n.a.toString(),e=t.length;if(0<e){for(var l="",r=0;r<e;r++)l=T(n,t.charAt(r));return n.l?M(n,l):n.i.toString()}return n.b.toString()}function H(n){var t,e=n.a.toString(),r=0;return 1!=h(n.g,10)?t=!1:(t=n.a.toString(),t="1"==t.charAt(0)&&"0"!=t.charAt(1)&&"1"!=t.charAt(1)),t?(r=1,n.b.a("1").a(" "),n.o=!0):null!=n.g.a[15]&&(t=new RegExp("^(?:"+h(n.g,15)+")"),t=e.match(t),null!=t&&null!=t[0]&&0<t[0].length&&(n.o=!0,r=t[0].length,n.b.a(e.substring(0,r)))),l(n.a),n.a.a(e.substring(r)),e.substring(0,r)}function P(n){var t=n.u.toString(),e=new RegExp("^(?:\\+|"+h(n.g,11)+")"),e=t.match(e);return null!=e&&null!=e[0]&&0<e[0].length&&(n.o=!0,e=e[0].length,l(n.a),n.a.a(t.substring(e)),l(n.b),n.b.a(t.substring(0,e)),"+"!=t.charAt(0)&&n.b.a(" "),!0)}function q(n){if(0==n.a.b.length)return!1;var t,r=new e;n:{if(t=n.a.toString(),0!=t.length&&"0"!=t.charAt(0))for(var i,u=t.length,a=1;3>=a&&a<=u;++a)if(i=parseInt(t.substring(0,a),10),i in nn){r.a(t.substring(a)),t=i;break n}t=0}return 0!=t&&(l(n.a),n.a.a(r.toString()),r=C(t),"001"==r?n.g=N(n.G,""+t):r!=n.D&&(n.g=B(n,r)),n.b.a(""+t).a(" "),n.h="",!0)}function T(n,t){var e=n.m.toString();if(0<=e.substring(n.s).search(n.H)){var r=e.search(n.H),e=e.replace(n.H,t);return l(n.m),n.m.a(e),n.s=r,e.substring(0,n.s+1)}return 1==n.f.length&&(n.l=!1),n.w="",n.i.toString()}var U=this;e.prototype.b="",e.prototype.set=function(n){this.b=""+n},e.prototype.a=function(n,t,e){if(this.b+=String(n),null!=t)for(var l=1;l<arguments.length;l++)this.b+=arguments[l];return this},e.prototype.toString=function(){return this.b};var Y=1,k=2,J=3,K=4,L=6,O=16,Z=18;f.prototype.set=function(n,t){b(this,n.b,t)},f.prototype.clone=function(){var n=new this.constructor;return n!=this&&(n.a={},n.b&&(n.b={}),p(n,this)),n},t(y,f);var z=null;t(v,f);var Q=null;t(_,f);var W=null;y.prototype.j=function(){var n=z;return n||(z=n=d(y,{0:{name:"NumberFormat",I:"i18n.phonenumbers.NumberFormat"},1:{name:"pattern",required:!0,c:9,type:String},2:{name:"format",required:!0,c:9,type:String},3:{name:"leading_digits_pattern",v:!0,c:9,type:String},4:{name:"national_prefix_formatting_rule",c:9,type:String},6:{name:"national_prefix_optional_when_formatting",c:8,defaultValue:!1,type:Boolean},5:{name:"domestic_carrier_code_formatting_rule",c:9,type:String}})),n},y.j=y.prototype.j,v.prototype.j=function(){var n=Q;return n||(Q=n=d(v,{0:{name:"PhoneNumberDesc",I:"i18n.phonenumbers.PhoneNumberDesc"},2:{name:"national_number_pattern",c:9,type:String},9:{name:"possible_length",v:!0,c:5,type:Number},10:{name:"possible_length_local_only",v:!0,c:5,type:Number},6:{name:"example_number",c:9,type:String}})),n},v.j=v.prototype.j,_.prototype.j=function(){var n=W;return n||(W=n=d(_,{0:{name:"PhoneMetadata",I:"i18n.phonenumbers.PhoneMetadata"},1:{name:"general_desc",c:11,type:v},2:{name:"fixed_line",c:11,type:v},3:{name:"mobile",c:11,type:v},4:{name:"toll_free",c:11,type:v},5:{name:"premium_rate",c:11,type:v},6:{name:"shared_cost",c:11,type:v},7:{name:"personal_number",c:11,type:v},8:{name:"voip",c:11,type:v},21:{name:"pager",c:11,type:v},25:{name:"uan",c:11,type:v},27:{name:"emergency",c:11,type:v},28:{name:"voicemail",c:11,type:v},29:{name:"short_code",c:11,type:v},30:{name:"standard_rate",c:11,type:v},31:{name:"carrier_specific",c:11,type:v},33:{name:"sms_services",c:11,type:v},24:{name:"no_international_dialling",c:11,type:v},9:{name:"id",required:!0,c:9,type:String},10:{name:"country_code",c:5,type:Number},11:{name:"international_prefix",c:9,type:String},17:{name:"preferred_international_prefix",c:9,type:String},12:{name:"national_prefix",c:9,type:String},13:{name:"preferred_extn_prefix",c:9,type:String},15:{name:"national_prefix_for_parsing",c:9,type:String},16:{name:"national_prefix_transform_rule",c:9,type:String},18:{name:"same_mobile_and_fixed_line_pattern",c:8,defaultValue:!1,type:Boolean},19:{name:"number_format",v:!0,c:11,type:y},20:{name:"intl_number_format",v:!0,c:11,type:y},22:{name:"main_country_for_code",c:8,defaultValue:!1,type:Boolean},23:{name:"leading_digits",c:9,type:String},26:{name:"leading_zero_possible",c:8,defaultValue:!1,type:Boolean}})),n},_.j=_.prototype.j,$.prototype.a=function(n){throw new n.b,Error("Unimplemented")},$.prototype.b=function(n,t){if(11==n.a||10==n.a)return t instanceof f?t:this.a(n.i.prototype.j(),t);if(14==n.a){if("string"==typeof t&&X.test(t)){var e=Number(t);if(0<e)return e}return t}if(!n.h)return t;if(e=n.i,e===String){if("number"==typeof t)return String(t)}else if(e===Number&&"string"==typeof t&&("Infinity"===t||"-Infinity"===t||"NaN"===t||X.test(t)))return Number(t);return t};var X=/^-?[0-9]+$/;t(S,$),S.prototype.a=function(n,t){var e=new n.b;return e.g=this,e.a=t,e.b={},e},t(w,S),w.prototype.b=function(n,t){return 8==n.a?!!t:$.prototype.b.apply(this,arguments)},w.prototype.a=function(n,t){return w.M.a.call(this,n,t)};/*
Copyright (C) 2010 The Libphonenumber Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
var nn={55:["BR"]},tn={BR:[null,[null,null,"(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-24679]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",null,null,null,null,null,null,[8,9,10,11]],[null,null,"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}",null,null,null,"1123456789",null,null,[10],[8]],[null,null,"(?:[189][1-9]|2[12478])(?:7|9\\d)\\d{7}|(?:3[1-578]|[46][1-9]|5[13-5]|7[13-579])(?:[6-9]|9\\d)\\d{7}",null,null,null,"11961234567",null,null,[10,11],[8]],[null,null,"800\\d{6,7}",null,null,null,"800123456",null,null,[9,10]],[null,null,"(?:300|[59]00\\d?)\\d{6}",null,null,null,"300123456",null,null,[9,10]],[null,null,"(?:300\\d(?:\\d{2})?|4(?:0(?:0\\d|20)|370))\\d{4}",null,null,null,"40041234",null,null,[8,10]],[null,null,null,null,null,null,null,null,null,[-1]],[null,null,null,null,null,null,null,null,null,[-1]],"BR",55,"00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","0",null,null,"0(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2",null,null,[[null,"(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","300|4(?:0(?:0|20)|370)"]],[null,"(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["[3589]00"],"0$1"],[null,"(\\d{3,5})","$1",["1[125689]"]],[null,"(\\d{4})(\\d{4})","$1-$2",["[2-9](?:0[1-9]|[1-9])"]],[null,"(\\d{5})(\\d{4})","$1-$2",["9(?:0[1-9]|[1-9])"]],[null,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["[1-9][1-9]"],"($1)","0 $CC ($1)"],[null,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[1-9][1-9]9"],"($1)","0 $CC ($1)"]],[[null,"(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","300|4(?:0(?:0|20)|370)"]],[null,"(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["[3589]00"],"0$1"],[null,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["[1-9][1-9]"],"($1)","0 $CC ($1)"],[null,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[1-9][1-9]9"],"($1)","0 $CC ($1)"]],[null,null,null,null,null,null,null,null,null,[-1]],null,null,[null,null,"(?:300\\d|40(?:0\\d|20))\\d{4}",null,null,null,null,null,null,[8]],[null,null,null,null,null,null,null,null,null,[-1]],null,null,[null,null,null,null,null,null,null,null,null,[-1]]]};x.b=function(){return x.a?x.a:x.a=new x};var en={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"},ln=RegExp("[++]+"),rn=RegExp("([0-90-9٠-٩۰-۹])"),un=/^\(?\$1\)?$/,an=new _;b(an,11,"NA");var on=/\[([^\[\]])*\]/g,sn=/\d(?=[^,}][^,}])/g,fn=RegExp("^[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*)+$"),pn=/[- ]/;j.prototype.K=function(){this.C="",l(this.i),l(this.u),l(this.m),this.s=0,this.w="",l(this.b),this.h="",l(this.a),this.l=!0,this.A=this.o=this.F=!1,this.f=[],this.B=!1,this.g!=this.J&&(this.g=B(this,this.D))},j.prototype.L=function(n){return this.C=F(this,n)},n("Cleave.AsYouTypeFormatter",j),n("Cleave.AsYouTypeFormatter.prototype.inputDigit",j.prototype.L),n("Cleave.AsYouTypeFormatter.prototype.clear",j.prototype.K)}.call("object"==typeof global&&global?global:window);
var campos = document.querySelectorAll(".ddm-form-builder-app div.form-group");
var lfrButton = document.querySelector("button.lfr-ddm-form-submit");
var botaoEnviar = document.querySelector("#btnSubmit");
var telefoneCampo;
// setInterval(function() {
// lfrButton.classList.add("d-none");
// }, 100);
campos.forEach(function (elem) {
if (elem.innerText.includes("Telefone")) {
telefoneCampo = elem.querySelector("input");
}
});
var cleaveTelefone = new Cleave(telefoneCampo, {
phone: true,
phoneRegionCode: "BR"
});
function requisicao(token){
console.log(token)
lfrButton.click();
};}());</script>]]>
|
5158
| <![CDATA[<script type="text/javascript">
// <![CDATA[
(function() {var $ = AUI.$;var _ = AUI._;
var onVote = function(event) {
if (window.Analytics) {
Analytics.send('VOTE', 'Ratings', {
className: event.className,
classPK: event.classPK,
ratingType: event.ratingType,
score: event.score
});
}
};
var onDestroyPortlet = function() {
Liferay.detach('ratings:vote', onVote);
Liferay.detach('destroyPortlet', onDestroyPortlet);
};
Liferay.on('ratings:vote', onVote);
Liferay.on('destroyPortlet', onDestroyPortlet);
})();(function() {var $ = AUI.$;var _ = AUI._;
var onDestroyPortlet = function() {
Liferay.detach('messagePosted', onMessagePosted);
Liferay.detach('destroyPortlet', onDestroyPortlet);
};
Liferay.on('destroyPortlet', onDestroyPortlet);
var onMessagePosted = function(event) {
if (window.Analytics) {
Analytics.send('posted', 'Comment', {
className: event.className,
classPK: event.classPK,
commentId: event.commentId,
text: event.text
});
}
};
Liferay.on('messagePosted', onMessagePosted);
})();(function() {var $ = AUI.$;var _ = AUI._;
var onShare = function(data) {
if (window.Analytics) {
Analytics.send('shared', 'SocialBookmarks', {
className: data.className,
classPK: data.classPK,
type: data.type,
url: data.url
});
}
};
var onDestroyPortlet = function() {
Liferay.detach('socialBookmarks:share', onShare);
Liferay.detach('destroyPortlet', onDestroyPortlet);
};
Liferay.on('socialBookmarks:share', onShare);
Liferay.on('destroyPortlet', onDestroyPortlet);
})();(function() {var $ = AUI.$;var _ = AUI._;
var pathnameRegexp = /\/documents\/(\d+)\/(\d+)\/(.+?)\/([^&]+)/;
function handleDownloadClick(event) {
if (event.target.nodeName.toLowerCase() === 'a' && window.Analytics) {
var anchor = event.target;
var match = pathnameRegexp.exec(anchor.pathname);
var fileEntryId =
anchor.dataset.analyticsFileEntryId ||
(anchor.parentElement &&
anchor.parentElement.dataset.analyticsFileEntryId);
if (fileEntryId && match) {
var getParameterValue = function(parameterName) {
var result = null;
anchor.search
.substr(1)
.split('&')
.forEach(function(item) {
var tmp = item.split('=');
if (tmp[0] === parameterName) {
result = decodeURIComponent(tmp[1]);
}
});
return result;
};
Analytics.send('documentDownloaded', 'Document', {
groupId: match[1],
fileEntryId: fileEntryId,
preview: !!window._com_liferay_document_library_analytics_isViewFileEntry,
title: decodeURIComponent(match[3].replace(/\+/gi, ' ')),
version: getParameterValue('version')
});
}
}
}
var onDestroyPortlet = function() {
document.body.removeEventListener('click', handleDownloadClick);
};
Liferay.once('destroyPortlet', onDestroyPortlet);
var onPortletReady = function() {
document.body.addEventListener('click', handleDownloadClick);
};
Liferay.once('portletReady', onPortletReady);
})();
if (Liferay.Data.ICONS_INLINE_SVG) {
svg4everybody(
{
attributeName: 'data-href',
polyfill: true,
validate: function (src, svg, use) {
return !src || !src.startsWith('#');
}
}
);
}
Liferay.Portlet.register('com_liferay_site_navigation_site_map_web_portlet_SiteNavigationSiteMapPortlet_INSTANCE_EJNkpsrRicjQ');
Liferay.Portlet.onLoad(
{
canEditTitle: false,
columnPos: 0,
isStatic: 'end',
namespacedId: 'p_p_id_com_liferay_site_navigation_site_map_web_portlet_SiteNavigationSiteMapPortlet_INSTANCE_EJNkpsrRicjQ_',
portletId: 'com_liferay_site_navigation_site_map_web_portlet_SiteNavigationSiteMapPortlet_INSTANCE_EJNkpsrRicjQ',
refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d1473\x26p_p_id\x3dcom_liferay_site_navigation_site_map_web_portlet_SiteNavigationSiteMapPortlet_INSTANCE_EJNkpsrRicjQ\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Fweb\x252Fguest\x252Fimprensa',
refreshURLData: {}
}
);
(function() {var $ = AUI.$;var _ = AUI._;
var assetEntryId =
'';
if (assetEntryId) {
window.location.hash = assetEntryId;
}
})();
Liferay.Portlet.register('com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_62EB9IbYSKoG');
Liferay.Portlet.onLoad(
{
canEditTitle: false,
columnPos: 0,
isStatic: 'end',
namespacedId: 'p_p_id_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_62EB9IbYSKoG_',
portletId: 'com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_62EB9IbYSKoG',
refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d1473\x26p_p_id\x3dcom_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_62EB9IbYSKoG\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Fweb\x252Fguest\x252Fimprensa',
refreshURLData: {}
}
);
Liferay.Portlet.register('com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_name_navigation_menu');
Liferay.Portlet.onLoad(
{
canEditTitle: false,
columnPos: 0,
isStatic: 'end',
namespacedId: 'p_p_id_com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_name_navigation_menu_',
portletId: 'com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_name_navigation_menu',
refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d1473\x26p_p_id\x3dcom_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_name_navigation_menu\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Fweb\x252Fguest\x252Fimprensa',
refreshURLData: {}
}
);
Liferay.Portlet.register('com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_lgpd_navigation_menu');
Liferay.Portlet.onLoad(
{
canEditTitle: false,
columnPos: 0,
isStatic: 'end',
namespacedId: 'p_p_id_com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_lgpd_navigation_menu_',
portletId: 'com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_lgpd_navigation_menu',
refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d1473\x26p_p_id\x3dcom_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_lgpd_navigation_menu\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Fweb\x252Fguest\x252Fimprensa',
refreshURLData: {}
}
);
Liferay.Portlet.register('com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo');
Liferay.Portlet.onLoad(
{
canEditTitle: false,
columnPos: 0,
isStatic: 'end',
namespacedId: 'p_p_id_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_',
portletId: 'com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo',
refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d1473\x26p_p_id\x3dcom_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Fweb\x252Fguest\x252Fimprensa',
refreshURLData: {}
}
);
Liferay.Loader.require('metal-dom/src/all/dom', 'dynamic-data-mapping-form-field-type@4.0.107/CheckboxMultiple/CheckboxMultiple.es', 'dynamic-data-mapping-form-field-type@4.0.107/Numeric/Numeric.es', 'dynamic-data-mapping-form-field-type@4.0.107/Options/Options.es', 'dynamic-data-mapping-form-field-type@4.0.107/Select/Select.es', 'dynamic-data-mapping-form-field-type@4.0.107/DatePicker/DatePicker.es', 'dynamic-data-mapping-form-field-type@4.0.107/FieldSet/FieldSet.es', 'dynamic-data-mapping-form-field-type@4.0.107/Password/Password.es', 'dynamic-data-mapping-form-field-type@4.0.107/Checkbox/Checkbox.es', 'dynamic-data-mapping-form-field-type@4.0.107/Editor/Editor.es', 'dynamic-data-mapping-form-field-type@4.0.107/KeyValue/KeyValue.es', 'dynamic-data-mapping-form-field-type@4.0.107/Text/Text.es', 'dynamic-data-mapping-form-field-type@4.0.107/Validation/Validation.es', 'dynamic-data-mapping-form-renderer@4.0.67/js/containers/Form/Form.es', 'dynamic-data-mapping-form-field-type@4.0.107/Radio/Radio.es', 'dynamic-data-mapping-form-field-type@4.0.107/Grid/Grid.es', 'dynamic-data-mapping-form-field-type@4.0.107/DocumentLibrary/DocumentLibrary.es', 'dynamic-data-mapping-form-field-type@4.0.107/Paragraph/Paragraph.es', 'dynamic-data-mapping-form-field-type@4.0.107/Captcha/Captcha.es', function(metalDomSrcAllDom, dynamicDataMappingFormFieldType40107CheckboxMultipleCheckboxMultipleEs, dynamicDataMappingFormFieldType40107NumericNumericEs, dynamicDataMappingFormFieldType40107OptionsOptionsEs, dynamicDataMappingFormFieldType40107SelectSelectEs, dynamicDataMappingFormFieldType40107DatePickerDatePickerEs, dynamicDataMappingFormFieldType40107FieldSetFieldSetEs, dynamicDataMappingFormFieldType40107PasswordPasswordEs, dynamicDataMappingFormFieldType40107CheckboxCheckboxEs, dynamicDataMappingFormFieldType40107EditorEditorEs, dynamicDataMappingFormFieldType40107KeyValueKeyValueEs, dynamicDataMappingFormFieldType40107TextTextEs, dynamicDataMappingFormFieldType40107ValidationValidationEs, dynamicDataMappingFormRenderer4067JsContainersFormFormEs, dynamicDataMappingFormFieldType40107RadioRadioEs, dynamicDataMappingFormFieldType40107GridGridEs, dynamicDataMappingFormFieldType40107DocumentLibraryDocumentLibraryEs, dynamicDataMappingFormFieldType40107ParagraphParagraphEs, dynamicDataMappingFormFieldType40107CaptchaCaptchaEs) {
(function(){
var dom = metalDomSrcAllDom;
(function() {var $ = AUI.$;var _ = AUI._;
var focusInPortletHandler = dom.delegate(
document,
'focusin',
'.portlet',
function(event) {
dom.addClasses(dom.closest(event.delegateTarget, '.portlet'), 'open');
}
);
var focusOutPortletHandler = dom.delegate(
document,
'focusout',
'.portlet',
function(event) {
dom.removeClasses(dom.closest(event.delegateTarget, '.portlet'), 'open');
}
);
})();})();
(function(){
var dynamicDataMappingFormFieldType40107CheckboxMultipleCheckboxMultipleEs1 = dynamicDataMappingFormFieldType40107CheckboxMultipleCheckboxMultipleEs;
var dynamicDataMappingFormFieldType40107NumericNumericEs1 = dynamicDataMappingFormFieldType40107NumericNumericEs;
var dynamicDataMappingFormFieldType40107OptionsOptionsEs1 = dynamicDataMappingFormFieldType40107OptionsOptionsEs;
var dynamicDataMappingFormFieldType40107SelectSelectEs1 = dynamicDataMappingFormFieldType40107SelectSelectEs;
var dynamicDataMappingFormFieldType40107DatePickerDatePickerEs1 = dynamicDataMappingFormFieldType40107DatePickerDatePickerEs;
var dynamicDataMappingFormFieldType40107FieldSetFieldSetEs1 = dynamicDataMappingFormFieldType40107FieldSetFieldSetEs;
var dynamicDataMappingFormFieldType40107PasswordPasswordEs1 = dynamicDataMappingFormFieldType40107PasswordPasswordEs;
var dynamicDataMappingFormFieldType40107CheckboxCheckboxEs1 = dynamicDataMappingFormFieldType40107CheckboxCheckboxEs;
var dynamicDataMappingFormFieldType40107EditorEditorEs1 = dynamicDataMappingFormFieldType40107EditorEditorEs;
var dynamicDataMappingFormFieldType40107KeyValueKeyValueEs1 = dynamicDataMappingFormFieldType40107KeyValueKeyValueEs;
var dynamicDataMappingFormFieldType40107TextTextEs1 = dynamicDataMappingFormFieldType40107TextTextEs;
var dynamicDataMappingFormFieldType40107ValidationValidationEs1 = dynamicDataMappingFormFieldType40107ValidationValidationEs;
var Formes = dynamicDataMappingFormRenderer4067JsContainersFormFormEs;
var dynamicDataMappingFormFieldType40107RadioRadioEs1 = dynamicDataMappingFormFieldType40107RadioRadioEs;
var dynamicDataMappingFormFieldType40107GridGridEs1 = dynamicDataMappingFormFieldType40107GridGridEs;
var dynamicDataMappingFormFieldType40107DocumentLibraryDocumentLibraryEs1 = dynamicDataMappingFormFieldType40107DocumentLibraryDocumentLibraryEs;
var dynamicDataMappingFormFieldType40107ParagraphParagraphEs1 = dynamicDataMappingFormFieldType40107ParagraphParagraphEs;
var dynamicDataMappingFormFieldType40107CaptchaCaptchaEs1 = dynamicDataMappingFormFieldType40107CaptchaCaptchaEs;
(function() {
try {
var context = Object.assign(
{"submitLabel":"Submeter","templateNamespace":"ddm.wizard_form","editable":false,"groupId":"20124","readOnly":false,"rules":[],"editingLanguageId":"pt_BR","viewMode":true,"locale":{"ISO3Country":"BRA","ISO3Language":"por","country":"BR","displayCountry":"Brazil","displayLanguage":"Portuguese","displayName":"Portuguese (Brazil)","displayScript":"","displayVariant":"","extensionKeys":[],"language":"pt","script":"","unicodeLocaleAttributes":[],"unicodeLocaleKeys":[],"variant":""},"spritemap":"https:\/\/www.bnb.gov.br\/o\/bnb-dxp-theme\/images\/clay\/icons.svg","showRequiredFieldsWarning":true,"pages":[{"showRequiredFieldsWarning":true,"description":"","localizedDescription":{"pt_BR":""},"rows":[{"columns":[{"size":12,"fields":[{"fieldName":"NomeCompleto","evaluable":true,"predefinedValue":"","tooltip":"","type":"text","dir":"ltr","locale":"pt_BR","localizedValue":{"pt_BR":""},"showLabel":true,"enabled":true,"required":true,"valid":false,"displayStyle":"singleline","instanceId":"ms53doJj","repeatable":false,"options":[{"label":"Opção","value":"Opção"}],"tip":"","placeholder":"","value":"","validation":{"expression":{"name":"regularExpression","value":"match(NomeCompleto, \"{parameter}\")"},"fieldName":"","dataType":"","parameter":"^[A-Za-z\\sáàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ?!]*$","errorMessage":"Caracteres especiais não permitidos"},"visible":true,"dataType":"string","errorMessage":"Este campo é obrigatório.","readOnly":false,"label":"Nome Completo","visibilityExpression":"","autocompleteEnabled":false,"name":"_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_ddm$$NomeCompleto$ms53doJj$0$$pt_BR","localizable":true}]}]},{"columns":[{"size":12,"fields":[{"fieldName":"Veículo","evaluable":true,"predefinedValue":"","tooltip":"","type":"text","dir":"ltr","locale":"pt_BR","localizedValue":{"pt_BR":""},"showLabel":true,"enabled":true,"required":true,"valid":false,"displayStyle":"singleline","instanceId":"ng4nOWLC","repeatable":false,"options":[{"label":"Opção","value":"Opção"}],"tip":"","placeholder":"","value":"","validation":{"expression":{"name":"regularExpression","value":"match(Veículo, \"{parameter}\")"},"fieldName":"","dataType":"","parameter":"^[A-Za-z\\s&áàâãéèêíïóôõöúçñÁÀÂÃÉÈÊÍÏÓÔÕÖÚÇÑ0-9]*$","errorMessage":"Caracteres especiais não permitidos"},"visible":true,"dataType":"string","errorMessage":"Este campo é obrigatório.","readOnly":false,"label":"Veículo","visibilityExpression":"","autocompleteEnabled":false,"name":"_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_ddm$$Veículo$ng4nOWLC$0$$pt_BR","localizable":true}]}]},{"columns":[{"size":12,"fields":[{"fieldName":"Email","evaluable":true,"predefinedValue":"","tooltip":"","type":"text","dir":"ltr","locale":"pt_BR","localizedValue":{"pt_BR":""},"showLabel":true,"enabled":true,"required":true,"valid":false,"displayStyle":"singleline","instanceId":"2qvkjOLa","repeatable":false,"options":[{"label":"Opção","value":"Opção"}],"tip":"","placeholder":"","value":"","validation":{"expression":{"name":"email","value":"isEmailAddress(Email)"},"fieldName":"","dataType":"","parameter":"","errorMessage":"Insira um e-mail válido"},"visible":true,"dataType":"string","errorMessage":"Este campo é obrigatório.","readOnly":false,"label":"E-mail","visibilityExpression":"","autocompleteEnabled":false,"name":"_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_ddm$$Email$2qvkjOLa$0$$pt_BR","localizable":true}]}]},{"columns":[{"size":6,"fields":[{"fieldName":"Telefone","evaluable":true,"predefinedValue":"","tooltip":"","type":"text","dir":"ltr","locale":"pt_BR","localizedValue":{"pt_BR":""},"showLabel":true,"enabled":true,"required":true,"valid":false,"displayStyle":"singleline","instanceId":"C9c6QxpX","repeatable":false,"options":[{"label":"Opção","value":"Opção"}],"tip":"","placeholder":"(XX) XXXXX-XXXX","value":"","validation":{"expression":{"name":"regularExpression","value":"match(Telefone, \"{parameter}\")"},"fieldName":"","dataType":"","parameter":"[0-9\\s]{12,13}","errorMessage":"Insira um telefone válido, com DDD."},"visible":true,"dataType":"string","errorMessage":"Este campo é obrigatório.","readOnly":false,"label":"Telefone","visibilityExpression":"","autocompleteEnabled":false,"name":"_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_ddm$$Telefone$C9c6QxpX$0$$pt_BR","localizable":true}]},{"size":6,"fields":[{"fieldName":"Estado","evaluable":true,"predefinedValue":[],"type":"select","dir":"ltr","locale":"pt_BR","localizedValue":{"pt_BR":[]},"showLabel":true,"enabled":true,"required":true,"valid":false,"instanceId":"2RH1TPNg","strings":{"emptyList":"Nenhum resultado foi encontrado.","search":"Buscar","dynamicallyLoadedData":"Dados dinamicamente carregados","chooseOptions":"Escolher opções","chooseAnOption":"Escolha uma opção"},"alphabeticalOrder":false,"repeatable":false,"options":[{"label":"Acre","value":"Acre"},{"label":"Alagoas","value":"Alagoas"},{"label":"Amapá","value":"Amapá"},{"label":"Amazonas","value":"Amazonas"},{"label":"Bahia","value":"Bahia"},{"label":"Ceará","value":"Ceará"},{"label":"Distrito Federal","value":"DistritoFederal"},{"label":"Espirito Santo","value":"EspiritoSanto"},{"label":"Goiás","value":"Goiás"},{"label":"Maranhão","value":"Maranhão"},{"label":"Mato Grosso","value":"MatoGrosso"},{"label":"Mato Grosso do Sul","value":"MatoGrossoDoSul"},{"label":"Minas Gerais","value":"MinasGerais"},{"label":"Paraná","value":"Paraná"},{"label":"Paraíba","value":"Paraíba"},{"label":"Pará","value":"Pará"},{"label":"Pernambuco","value":"Pernambuco"},{"label":"Piauí","value":"Piauí"},{"label":"Rio de Janeiro","value":"RioDeJaneiro"},{"label":"Rio Grande do Norte","value":"RioGrandeDoNorte"},{"label":"Rio Grande do Sul","value":"RioGrandeDoSul"},{"label":"Rondonia","value":"Rondonia"},{"label":"Roraima","value":"Roraima"},{"label":"Santa Catarina","value":"SantaCatarina"},{"label":"Sergipe","value":"Sergipe"},{"label":"São Paulo ","value":"SãoPaulo"},{"label":"Tocantins","value":"Tocantins"}],"tip":"","value":[],"visible":true,"dataType":"string","errorMessage":"Este campo é obrigatório.","multiple":false,"readOnly":false,"label":"Estado","visibilityExpression":"","name":"_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_ddm$$Estado$2RH1TPNg$0$$pt_BR","localizable":true,"dataSourceType":"manual"}]}]},{"columns":[{"size":12,"fields":[{"fieldName":"Assunto","evaluable":true,"predefinedValue":"","tooltip":"","type":"text","dir":"ltr","locale":"pt_BR","localizedValue":{"pt_BR":""},"showLabel":true,"enabled":true,"required":true,"valid":false,"displayStyle":"singleline","instanceId":"6QXz0TZC","repeatable":false,"options":[{"label":"Opção","value":"Opção"}],"tip":"","placeholder":"","value":"","validation":{"expression":{"name":"regularExpression","value":"match(Assunto, \"{parameter}\")"},"fieldName":"","dataType":"","parameter":"^[A-Za-z\\s&áàâãéèêíïóôõöúçñÁÀÂÃÉÈÊÍÏÓÔÕÖÚÇÑ0-9]*$","errorMessage":"Caracteres especiais não permitidos"},"visible":true,"dataType":"string","errorMessage":"Este campo é obrigatório.","readOnly":false,"label":"Assunto","visibilityExpression":"","autocompleteEnabled":false,"name":"_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_ddm$$Assunto$6QXz0TZC$0$$pt_BR","localizable":true}]}]},{"columns":[{"size":12,"fields":[{"fieldName":"Mensagem","evaluable":true,"predefinedValue":"","tooltip":"","type":"text","dir":"ltr","locale":"pt_BR","localizedValue":{"pt_BR":""},"showLabel":true,"enabled":true,"required":true,"valid":false,"displayStyle":"multiline","instanceId":"4w68PCn9","repeatable":false,"options":[{"label":"Opção","value":"Opção"}],"tip":"","placeholder":"","value":"","validation":{"expression":{"name":"regularExpression","value":"match(Mensagem, \"{parameter}\")"},"fieldName":"","dataType":"","parameter":"[^#@()<>*$]*","errorMessage":"Caracteres especiais não permitidos (#,@,),(,<,>,*,$)"},"visible":true,"dataType":"string","errorMessage":"Este campo é obrigatório.","readOnly":false,"label":"Mensagem","visibilityExpression":"","autocompleteEnabled":false,"name":"_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_ddm$$Mensagem$4w68PCn9$0$$pt_BR","localizable":true}]}]},{"columns":[{"size":6,"fields":[{"fieldName":"PrazoDeAtendimentoData","evaluable":true,"predefinedValue":"","type":"date","dir":"ltr","locale":"pt_BR","localizedValue":{"pt_BR":""},"showLabel":true,"enabled":true,"required":true,"years":[2019,2020,2021,2022,2023],"valid":false,"instanceId":"5fGDGxYk","repeatable":false,"options":[],"tip":"","value":"","visible":true,"months":["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],"dataType":"string","errorMessage":"Este campo é obrigatório.","readOnly":false,"label":"Prazo de Atendimento (Data)","visibilityExpression":"","firstDayOfWeek":0,"name":"_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_ddm$$PrazoDeAtendimentoData$5fGDGxYk$0$$pt_BR","localizable":true,"weekdaysShort":["D","S","T","Q","Q","S","Sáb."]}]},{"size":6,"fields":[{"fieldName":"PrazoDeAtendimentoHora","evaluable":true,"predefinedValue":[],"type":"select","dir":"ltr","locale":"pt_BR","localizedValue":{"pt_BR":[]},"showLabel":true,"enabled":true,"required":true,"valid":false,"instanceId":"r6g1Grse","strings":{"emptyList":"Nenhum resultado foi encontrado.","search":"Buscar","dynamicallyLoadedData":"Dados dinamicamente carregados","chooseOptions":"Escolher opções","chooseAnOption":"Escolha uma opção"},"alphabeticalOrder":false,"repeatable":false,"options":[{"label":"07h","value":"_07h"},{"label":"08h","value":"_08h"},{"label":"09h","value":"_09h"},{"label":"10h","value":"_10h"},{"label":"11h","value":"_11h"},{"label":"12h","value":"_12h"},{"label":"13h","value":"_13h"},{"label":"14h","value":"_14h"},{"label":"15h","value":"_15h"},{"label":"16h","value":"_16h"},{"label":"17h","value":"_17h"},{"label":"18h","value":"_18h"},{"label":"19h","value":"_19h"},{"label":"20h","value":"_20h"},{"label":"21h","value":"_21h"},{"label":"22h","value":"_22h"},{"label":"23h","value":"_23h"},{"label":"00h","value":"_00h"}],"tip":"","value":[],"visible":true,"dataType":"string","errorMessage":"Este campo é obrigatório.","multiple":false,"readOnly":false,"label":"Prazo de Atendimento (Hora)","visibilityExpression":"","name":"_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_ddm$$PrazoDeAtendimentoHora$r6g1Grse$0$$pt_BR","localizable":true,"dataSourceType":"manual"}]}]}],"title":"","enabled":true,"localizedTitle":{"pt_BR":""}}],"strings":{"next":"Próximo","previous":"Anterior"},"showSubmitButton":true,"portletId":"com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo","paginationMode":"wizard","containerId":"ddmForms6sjg4GY","currentPage":"1","evaluatorURL":"\/o\/dynamic-data-mapping-form-context-provider\/","portletNamespace":"_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_","element":"#ddmForms6sjg4GY > *:first-child"},
Liferay.getComponentCache('ddmForms6sjg4GY')
);
var componentConfig = {
cacheState: context.cacheState,
destroyOnNavigate: true,
portletId: context.portletId
};
if (context.defaultEventHandler) {
Liferay.componentReady(
context.defaultEventHandler
).then(
function(defaultEventHandler) {
context.defaultEventHandler = defaultEventHandler;
if (true) {
Liferay.component(
'ddmForms6sjg4GY',
new Formes.default(context, '#ddmForms6sjg4GY'),
componentConfig
);
}
else {
Liferay.component(
'ddmForms6sjg4GY',
new Formes.default(context),
componentConfig
);
}
}
);
}
else {
if (true) {
Liferay.component(
'ddmForms6sjg4GY',
new Formes.default(context, '#ddmForms6sjg4GY'),
componentConfig
);
}
else {
Liferay.component(
'ddmForms6sjg4GY',
new Formes.default(context),
componentConfig
);
}
}
}
catch (err) {
console.error(err);
}
})();})();
});AUI().use('liferay-menu', 'liferay-notice', 'aui-base', 'liferay-session', 'liferay-form', 'liferay-poller', function(A) {(function() {var $ = AUI.$;var _ = AUI._;
if (A.UA.mobile) {
Liferay.Util.addInputCancel();
}
})();(function() {var $ = AUI.$;var _ = AUI._;
new Liferay.Menu();
var liferayNotices = Liferay.Data.notices;
for (var i = 1; i < liferayNotices.length; i++) {
new Liferay.Notice(liferayNotices[i]);
}
})();(function() {var $ = AUI.$;var _ = AUI._;
Liferay.Session = new Liferay.SessionBase(
{
autoExtend: true,
redirectOnExpire: false,
redirectUrl: 'https\x3a\x2f\x2fwww\x2ebnb\x2egov\x2ebr\x2fweb\x2fguest',
sessionLength: 900,
sessionTimeoutOffset: 70,
warningLength: 0
}
);
})();(function() {var $ = AUI.$;var _ = AUI._;
Liferay.Form.register(
{
id: '_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_fm'
, fieldRules: [
]
, validateOnBlur: true
}
);
var onDestroyPortlet = function(event) {
if (event.portletId === 'com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo') {
delete Liferay.Form._INSTANCES['_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_fm'];
}
};
Liferay.on('destroyPortlet', onDestroyPortlet);
Liferay.fire(
'_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_formReady',
{
formName: '_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_fm'
}
);
})();(function() {var $ = AUI.$;var _ = AUI._;
function _com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_clearInterval(intervalId) {
if (intervalId) {
clearInterval(intervalId);
}
}
var _com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_intervalId;
function _com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_clearPortletHandlers(event) {
_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_clearInterval(_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_intervalId);
Liferay.detach('destroyPortlet', _com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_clearPortletHandlers);
}
Liferay.on('destroyPortlet', _com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_clearPortletHandlers);
function _com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_fireFormView() {
Liferay.fire('ddmFormView', {
formId: '900030',
title: 'Contato Imprensa'
});
}
function _com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_startAutoExtendSession() {
_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_clearInterval(_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_intervalId);
var tenSeconds = 10000;
var time = Liferay.Session.get('sessionLength') || tenSeconds;
_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_intervalId = setInterval(
_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_extendSession,
time / 2
);
}
function _com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_extendSession() {
Liferay.Session.extend();
}
function _com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_enableForm() {
var container = document.querySelector(
'#ddmForms6sjg4GYcontainer'
);
container.classList.remove('ddm-form-builder-app-not-ready');
}
function _com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_initForm() {
_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_enableForm();
_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_fireFormView();
_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_startAutoExtendSession();
}
_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_sessionIntervalId = setInterval(function() {
if (Liferay.Session || rememberMe) {
clearInterval(_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_sessionIntervalId);
_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_form = Liferay.component(
'ddmForms6sjg4GY'
);
if (_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_form) {
_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_initForm();
}
else {
Liferay.componentReady(
'ddmForms6sjg4GY'
).then(function(component) {
_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_form = component;
if (component) {
_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_FvQtMersboSo_initForm();
}
});
}
}
}, 1000);
})();});
// ]]>
</script>]]>
|