widget-web-component 1.0.36 → 1.0.37-dev.20251103-1510
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -957,7 +957,7 @@ e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月
|
|
|
957
957
|
//! moment.js locale configuration
|
|
958
958
|
e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(5439))},5439:function(e,t,n){(e=n.nmd(e)).exports=function(){var t,i;function r(){return t.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function c(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,i=[],r=e.length;for(n=0;n<r;++n)i.push(t(e[n],n));return i}function p(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,i){return It(e,t,n,i,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());return r&&(t=f(e),n=i.call(t.parsedDateParts,(function(e){return null!=e})),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?r:(e._isValid=r,e._isValid)}function _(e){var t=m(NaN);return null!=e?p(f(t),e):f(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=r.momentProperties=[],y=!1;function b(e,t){var n,i,r,s=v.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=f(t)),c(t._locale)||(e._locale=t._locale),s>0)for(n=0;n<s;n++)c(r=t[i=v[n]])||(e[i]=r);return e}function x(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,r.updateOffset(this),y=!1)}function w(e){return e instanceof x||null!=e&&null!=e._isAMomentObject}function C(e){!1===r.suppressDeprecationWarnings&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return p((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,s,o,l=[],c=arguments.length;for(s=0;s<c;s++){if(i="","object"==typeof arguments[s]){for(o in i+="\n["+s+"] ",arguments[0])a(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[s];l.push(i)}C(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var M,I={};function k(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),I[e]||(C(t),I[e]=!0)}function E(e){return typeof Function<"u"&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e,t){var n,i=p({},e);for(n in t)a(t,n)&&(o(e[n])&&o(t[n])?(i[n]={},p(i[n],e[n]),p(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)a(e,n)&&!a(t,n)&&o(e[n])&&(i[n]=p({},i[n]));return i}function P(e){null!=e&&this.set(e)}function O(e,t,n){var i=""+Math.abs(e);return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},N={};function R(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(N[e]=r),t&&(N[t[0]]=function(){return O(r.apply(this,arguments),t[1],t[2])}),n&&(N[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function j(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function F(e,t){return e.isValid()?(t=q(t,e.localeData()),A[t]=A[t]||function(e){var t,n,i=e.match(D);for(t=0,n=i.length;t<n;t++)i[t]=N[i[t]]?N[i[t]]:j(i[t]);return function(t){var r,s="";for(r=0;r<n;r++)s+=E(i[r])?i[r].call(t,e):i[r];return s}}(t),A[t](e)):e.localeData().invalidDate()}function q(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(L.lastIndex=0;n>=0&&L.test(e);)e=e.replace(L,i),L.lastIndex=0,n-=1;return e}var Y={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function V(e){return"string"==typeof e?Y[e]||Y[e.toLowerCase()]:void 0}function H(e){var t,n,i={};for(n in e)a(e,n)&&(t=V(n))&&(i[t]=e[n]);return i}var z,B={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},U=/\d/,W=/\d\d/,$=/\d{3}/,G=/\d{4}/,Z=/[+-]?\d{6}/,K=/\d\d?/,Q=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,J=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,ie=/[+-]?\d+/,re=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,oe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ae=/^[1-9]\d?/,le=/^([1-9]\d|\d)/;function ce(e,t,n){z[e]=E(t)?t:function(e,i){return e&&n?n:t}}function de(e,t){return a(z,e)?z[e](t._strict,t._locale):new RegExp(function(e){return ue(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r})))}(e))}function ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function he(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=he(t)),n}z={};var me={};function fe(e,t){var n,i,r=t;for("string"==typeof e&&(e=[e]),d(t)&&(r=function(e,n){n[t]=pe(e)}),i=e.length,n=0;n<i;n++)me[e[n]]=r}function ge(e,t){fe(e,(function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)}))}function _e(e,t,n){null!=t&&a(me,e)&&me[e](t,n._a,n,e)}function ve(e){return e%4==0&&e%100!=0||e%400==0}function ye(e){return ve(e)?366:365}R("Y",0,0,(function(){var e=this.year();return e<=9999?O(e,4):"+"+e})),R(0,["YY",2],0,(function(){return this.year()%100})),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),ce("Y",ie),ce("YY",K,W),ce("YYYY",ee,G),ce("YYYYY",te,Z),ce("YYYYYY",te,Z),fe(["YYYYY","YYYYYY"],0),fe("YYYY",(function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):pe(e)})),fe("YY",(function(e,t){t[0]=r.parseTwoDigitYear(e)})),fe("Y",(function(e,t){t[0]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return pe(e)+(pe(e)>68?1900:2e3)};var be,xe=we("FullYear",!0);function we(e,t){return function(n){return null!=n?(Se(this,e,n),r.updateOffset(this,t),this):Ce(this,e)}}function Ce(e,t){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Se(e,t,n){var i,r,s,o,a;if(e.isValid()&&!isNaN(n)){switch(i=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}s=n,o=e.month(),a=29!==(a=e.date())||1!==o||ve(s)?a:28,r?i.setUTCFullYear(s,o,a):i.setFullYear(s,o,a)}}function Me(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e,t){return(e%t+t)%t}(t,12);return e+=(t-n)/12,1===n?ve(e)?29:28:31-n%7%2}be=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},R("M",["MM",2],"Mo",(function(){return this.month()+1})),R("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),R("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ce("M",K,ae),ce("MM",K,W),ce("MMM",(function(e,t){return t.monthsShortRegex(e)})),ce("MMMM",(function(e,t){return t.monthsRegex(e)})),fe(["M","MM"],(function(e,t){t[1]=pe(e)-1})),fe(["MMM","MMMM"],(function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[1]=r:f(n).invalidMonth=e}));var Ie="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ke="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ee=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Te=oe,Pe=oe;function Oe(e,t,n){var i,r,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=m([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=be.call(this._shortMonthsParse,o))?r:null:-1!==(r=be.call(this._longMonthsParse,o))?r:null:"MMM"===t?-1!==(r=be.call(this._shortMonthsParse,o))||-1!==(r=be.call(this._longMonthsParse,o))?r:null:-1!==(r=be.call(this._longMonthsParse,o))||-1!==(r=be.call(this._shortMonthsParse,o))?r:null}function De(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=pe(t);else if(!d(t=e.localeData().monthsParse(t)))return e;var n=t,i=e.date();return i=i<29?i:Math.min(i,Me(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,i):e._d.setMonth(n,i),e}function Le(e){return null!=e?(De(this,e),r.updateOffset(this,!0),this):Ce(this,"Month")}function Ae(){function e(e,t){return t.length-e.length}var t,n,i,r,s=[],o=[],a=[];for(t=0;t<12;t++)n=m([2e3,t]),i=ue(this.monthsShort(n,"")),r=ue(this.months(n,"")),s.push(i),o.push(r),a.push(r),a.push(i);s.sort(e),o.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ne(e,t,n,i,r,s,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,i,r,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,i,r,s,o),a}function Re(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function je(e,t,n){var i=7+t-n;return-(7+Re(e,0,i).getUTCDay()-t)%7+i-1}function Fe(e,t,n,i,r){var s,o,a=1+7*(t-1)+(7+n-i)%7+je(e,i,r);return a<=0?o=ye(s=e-1)+a:a>ye(e)?(s=e+1,o=a-ye(e)):(s=e,o=a),{year:s,dayOfYear:o}}function qe(e,t,n){var i,r,s=je(e.year(),t,n),o=Math.floor((e.dayOfYear()-s-1)/7)+1;return o<1?i=o+Ye(r=e.year()-1,t,n):o>Ye(e.year(),t,n)?(i=o-Ye(e.year(),t,n),r=e.year()+1):(r=e.year(),i=o),{week:i,year:r}}function Ye(e,t,n){var i=je(e,t,n),r=je(e+1,t,n);return(ye(e)-i+r)/7}function Ve(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),ce("w",K,ae),ce("ww",K,W),ce("W",K,ae),ce("WW",K,W),ge(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=pe(e)})),R("d",0,"do","day"),R("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),R("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),R("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),ce("d",K),ce("e",K),ce("E",K),ce("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ce("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ce("dddd",(function(e,t){return t.weekdaysRegex(e)})),ge(["dd","ddd","dddd"],(function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:f(n).invalidWeekday=e})),ge(["d","e","E"],(function(e,t,n,i){t[i]=pe(e)}));var He="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ue=oe,We=oe,$e=oe;function Ge(e,t,n){var i,r,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=m([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=be.call(this._weekdaysParse,o))?r:null:"ddd"===t?-1!==(r=be.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=be.call(this._minWeekdaysParse,o))?r:null:"dddd"===t?-1!==(r=be.call(this._weekdaysParse,o))||-1!==(r=be.call(this._shortWeekdaysParse,o))||-1!==(r=be.call(this._minWeekdaysParse,o))?r:null:"ddd"===t?-1!==(r=be.call(this._shortWeekdaysParse,o))||-1!==(r=be.call(this._weekdaysParse,o))||-1!==(r=be.call(this._minWeekdaysParse,o))?r:null:-1!==(r=be.call(this._minWeekdaysParse,o))||-1!==(r=be.call(this._weekdaysParse,o))||-1!==(r=be.call(this._shortWeekdaysParse,o))?r:null}function Ze(){function e(e,t){return t.length-e.length}var t,n,i,r,s,o=[],a=[],l=[],c=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),i=ue(this.weekdaysMin(n,"")),r=ue(this.weekdaysShort(n,"")),s=ue(this.weekdays(n,"")),o.push(i),a.push(r),l.push(s),c.push(i),c.push(r),c.push(s);o.sort(e),a.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Qe(e,t){R(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Xe(e,t){return t._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,Ke),R("k",["kk",2],0,(function(){return this.hours()||24})),R("hmm",0,0,(function(){return""+Ke.apply(this)+O(this.minutes(),2)})),R("hmmss",0,0,(function(){return""+Ke.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)})),R("Hmm",0,0,(function(){return""+this.hours()+O(this.minutes(),2)})),R("Hmmss",0,0,(function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)})),Qe("a",!0),Qe("A",!1),ce("a",Xe),ce("A",Xe),ce("H",K,le),ce("h",K,ae),ce("k",K,ae),ce("HH",K,W),ce("hh",K,W),ce("kk",K,W),ce("hmm",Q),ce("hmmss",X),ce("Hmm",Q),ce("Hmmss",X),fe(["H","HH"],3),fe(["k","kk"],(function(e,t,n){var i=pe(e);t[3]=24===i?0:i})),fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),fe(["h","hh"],(function(e,t,n){t[3]=pe(e),f(n).bigHour=!0})),fe("hmm",(function(e,t,n){var i=e.length-2;t[3]=pe(e.substr(0,i)),t[4]=pe(e.substr(i)),f(n).bigHour=!0})),fe("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=pe(e.substr(0,i)),t[4]=pe(e.substr(i,2)),t[5]=pe(e.substr(r)),f(n).bigHour=!0})),fe("Hmm",(function(e,t,n){var i=e.length-2;t[3]=pe(e.substr(0,i)),t[4]=pe(e.substr(i))})),fe("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=pe(e.substr(0,i)),t[4]=pe(e.substr(i,2)),t[5]=pe(e.substr(r))}));var Je,et=we("Hours",!0),tt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:ke,week:{dow:0,doy:6},weekdays:He,weekdaysMin:Be,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},nt={},it={};function rt(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function st(e){return e&&e.toLowerCase().replace("_","-")}function ot(t){var i=null;if(void 0===nt[t]&&e&&e.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(t))try{i=Je._abbr,n(6700)("./"+t),at(i)}catch{nt[t]=null}return nt[t]}function at(e,t){var n;return e&&((n=c(t)?ct(e):lt(e,t))?Je=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Je._abbr}function lt(e,t){if(null!==t){var n,i=tt;if(t.abbr=e,null!=nt[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=nt[e]._config;else if(null!=t.parentLocale)if(null!=nt[t.parentLocale])i=nt[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;i=n._config}return nt[e]=new P(T(i,t)),it[e]&&it[e].forEach((function(e){lt(e.name,e.config)})),at(e),nt[e]}return delete nt[e],null}function ct(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Je;if(!s(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,i,r,s=0;s<e.length;){for(t=(r=st(e[s]).split("-")).length,n=(n=st(e[s+1]))?n.split("-"):null;t>0;){if(i=ot(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&rt(r,n)>=t-1)break;t--}s++}return Je}(e)}function dt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Me(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,f(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),f(e)._overflowWeeks&&-1===t&&(t=7),f(e)._overflowWeekday&&-1===t&&(t=8),f(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,mt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ft=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],gt=/^\/?Date\((-?\d+)/i,_t=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,vt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yt(e){var t,n,i,r,s,o,a=e._i,l=ut.exec(a)||ht.exec(a),c=mt.length,d=ft.length;if(l){for(f(e).iso=!0,t=0,n=c;t<n;t++)if(mt[t][1].exec(l[1])){r=mt[t][0],i=!1!==mt[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=d;t<n;t++)if(ft[t][1].exec(l[3])){s=(l[2]||" ")+ft[t][0];break}if(null==s)return void(e._isValid=!1)}if(!i&&null!=s)return void(e._isValid=!1);if(l[4]){if(!pt.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=r+(s||"")+(o||""),St(e)}else e._isValid=!1}function bt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function xt(e){var t,n=_t.exec(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(e._i));if(n){if(t=function(e,t,n,i,r,s){var o=[bt(e),ke.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return s&&o.push(parseInt(s,10)),o}(n[4],n[3],n[2],n[5],n[6],n[7]),!function(e,t,n){return!e||ze.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(n[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return vt[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(n[8],n[9],n[10]),e._d=Re.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function wt(e,t,n){return e??t??n}function Ct(e){var t,n,i,s,o,a=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,i,r,s,o,a,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(s=1,o=4,n=wt(t.GG,e._a[0],qe(kt(),1,4).year),i=wt(t.W,1),((r=wt(t.E,1))<1||r>7)&&(l=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,c=qe(kt(),s,o),n=wt(t.gg,e._a[0],c.year),i=wt(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+s,(t.e<0||t.e>6)&&(l=!0)):r=s),i<1||i>Ye(n,s,o)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(a=Fe(n,i,r,s,o),e._a[0]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(o=wt(e._a[0],i[0]),(e._dayOfYear>ye(o)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=Re(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;t<7;t++)e._a[t]=a[t]=e._a[t]??(2===t?1:0);24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Re:Ne).apply(null,a),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(f(e).weekdayMismatch=!0)}}function St(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],f(e).empty=!0;var t,n,i,s,o,a,l,c=""+e._i,d=c.length,u=0;for(l=(i=q(e._f,e._locale).match(D)||[]).length,t=0;t<l;t++)(n=(c.match(de(s=i[t],e))||[])[0])&&((o=c.substr(0,c.indexOf(n))).length>0&&f(e).unusedInput.push(o),c=c.slice(c.indexOf(n)+n.length),u+=n.length),N[s]?(n?f(e).empty=!1:f(e).unusedTokens.push(s),_e(s,n,e)):e._strict&&!n&&f(e).unusedTokens.push(s);f(e).charsLeftOver=d-u,c.length>0&&f(e).unusedInput.push(c),e._a[3]<=12&&!0===f(e).bigHour&&e._a[3]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((i=e.isPM(n))&&t<12&&(t+=12),!i&&12===t&&(t=0)),t)}(e._locale,e._a[3],e._meridiem),null!==(a=f(e).era)&&(e._a[0]=e._locale.erasConvertYear(a,e._a[0])),Ct(e),dt(e)}else xt(e);else yt(e)}function Mt(e){var t=e._i,n=e._f;return e._locale=e._locale||ct(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new x(dt(t)):(u(t)?e._d=t:s(n)?function(e){var t,n,i,r,s,o,a=!1,l=e._f.length;if(0===l)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<l;r++)s=0,o=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],St(t),g(t)&&(o=!0),s+=f(t).charsLeftOver,s+=10*f(t).unusedTokens.length,f(t).score=s,a?s<i&&(i=s,n=t):(null==i||s<i||o)&&(i=s,n=t,o&&(a=!0));p(e,n||t)}(e):n?St(e):function(e){var t=e._i;c(t)?e._d=new Date(r.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=gt.exec(e._i);null===t?(yt(e),!1===e._isValid&&(delete e._isValid,xt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):s(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Ct(e)):o(t)?function(e){if(!e._d){var t=H(e._i);e._a=h([t.year,t.month,void 0===t.day?t.date:t.day,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Ct(e)}}(e):d(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function It(e,t,n,i,r){var a={};return(!0===t||!1===t)&&(i=t,t=void 0),(!0===n||!1===n)&&(i=n,n=void 0),(o(e)&&l(e)||s(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=n,a._i=e,a._f=t,a._strict=i,function(e){var t=new x(dt(Mt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}(a)}function kt(e,t,n,i){return It(e,t,n,i,!1)}r.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Et=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()})),Tt=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:_()}));function Pt(e,t){var n,i;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return kt();for(n=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](n))&&(n=t[i]);return n}var Ot=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Dt(e){var t=H(e),n=t.year||0,i=t.quarter||0,r=t.month||0,s=t.week||t.isoWeek||0,o=t.day||0,l=t.hour||0,c=t.minute||0,d=t.second||0,u=t.millisecond||0;this._isValid=function(e){var t,n,i=!1,r=Ot.length;for(t in e)if(a(e,t)&&(-1===be.call(Ot,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<r;++n)if(e[Ot[n]]){if(i)return!1;parseFloat(e[Ot[n]])!==pe(e[Ot[n]])&&(i=!0)}return!0}(t),this._milliseconds=+u+1e3*d+6e4*c+1e3*l*60*60,this._days=+o+7*s,this._months=+r+3*i+12*n,this._data={},this._locale=ct(),this._bubble()}function Lt(e){return e instanceof Dt}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Nt(e,t){R(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+O(~~(e/60),2)+t+O(~~e%60,2)}))}Nt("Z",":"),Nt("ZZ",""),ce("Z",se),ce("ZZ",se),fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=jt(se,e)}));var Rt=/([\+\-]|\d\d)/gi;function jt(e,t){var n,i,r=(t||"").match(e);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(Rt)||["-",0,0])[1]+pe(n[2]))?0:"+"===n[0]?i:-i}function Ft(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(w(e)||u(e)?e.valueOf():kt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):kt(e).local()}function qt(e){return-Math.round(e._d.getTimezoneOffset())}function Yt(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Vt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ht=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zt(e,t){var n,i,r,s=e,o=null;return Lt(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(o=Vt.exec(e))?(n="-"===o[1]?-1:1,s={y:0,d:pe(o[2])*n,h:pe(o[3])*n,m:pe(o[4])*n,s:pe(o[5])*n,ms:pe(At(1e3*o[6]))*n}):(o=Ht.exec(e))?s={y:Bt(o[2],n="-"===o[1]?-1:1),M:Bt(o[3],n),w:Bt(o[4],n),d:Bt(o[5],n),h:Bt(o[6],n),m:Bt(o[7],n),s:Bt(o[8],n)}:null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(r=function(e,t){var n;return e.isValid()&&t.isValid()?(t=Ft(t,e),e.isBefore(t)?n=Ut(e,t):((n=Ut(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(kt(s.from),kt(s.to)),(s={}).ms=r.milliseconds,s.M=r.months),i=new Dt(s),Lt(e)&&a(e,"_locale")&&(i._locale=e._locale),Lt(e)&&a(e,"_isValid")&&(i._isValid=e._isValid),i}function Bt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ut(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Wt(e,t){return function(n,i){var r;return null!==i&&!isNaN(+i)&&(k(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),$t(this,zt(n,i),e),this}}function $t(e,t,n,i){var s=t._milliseconds,o=At(t._days),a=At(t._months);!e.isValid()||(i=i??!0,a&&De(e,Ce(e,"Month")+a*n),o&&Se(e,"Date",Ce(e,"Date")+o*n),s&&e._d.setTime(e._d.valueOf()+s*n),i&&r.updateOffset(e,o||a))}zt.fn=Dt.prototype,zt.invalid=function(){return zt(NaN)};var Gt=Wt(1,"add"),Zt=Wt(-1,"subtract");function Kt(e){return"string"==typeof e||e instanceof String}function Qt(e){return w(e)||u(e)||Kt(e)||d(e)||function(e){var t=s(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&Kt(e)})).length),t&&n}(e)||function(e){var t,n=o(e)&&!l(e),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=r.length;for(t=0;t<s;t+=1)i=i||a(e,r[t]);return n&&i}(e)||null==e}function Xt(e){var t,n=o(e)&&!l(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<r.length;t+=1)i=i||a(e,r[t]);return n&&i}function Jt(e,t){if(e.date()<t.date())return-Jt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function en(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ct(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tn=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function nn(){return this._locale}var rn=6e4,sn=60*rn,on=3506328*sn;function an(e,t){return(e%t+t)%t}function ln(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-on:new Date(e,t,n).valueOf()}function cn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-on:Date.UTC(e,t,n)}function dn(e,t){return t.erasAbbrRegex(e)}function un(){var e,t,n,i,r,s=[],o=[],a=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=ue(c[e].name),i=ue(c[e].abbr),r=ue(c[e].narrow),o.push(n),s.push(i),a.push(r),l.push(n),l.push(i),l.push(r);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function hn(e,t){R(0,[e,e.length],0,t)}function pn(e,t,n,i,r){var s;return null==e?qe(this,i,r).year:(t>(s=Ye(e,i,r))&&(t=s),mn.call(this,e,t,n,i,r))}function mn(e,t,n,i,r){var s=Fe(e,t,n,i,r),o=Re(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),ce("N",dn),ce("NN",dn),ce("NNN",dn),ce("NNNN",(function(e,t){return t.erasNameRegex(e)})),ce("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?f(n).era=r:f(n).invalidEra=e})),ce("y",ne),ce("yy",ne),ce("yyy",ne),ce("yyyy",ne),ce("yo",(function(e,t){return t._eraYearOrdinalRegex||ne})),fe(["y","yy","yyy","yyyy"],0),fe(["yo"],(function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),t[0]=n._locale.eraYearOrdinalParse?n._locale.eraYearOrdinalParse(e,r):parseInt(e,10)})),R(0,["gg",2],0,(function(){return this.weekYear()%100})),R(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),hn("gggg","weekYear"),hn("ggggg","weekYear"),hn("GGGG","isoWeekYear"),hn("GGGGG","isoWeekYear"),ce("G",ie),ce("g",ie),ce("GG",K,W),ce("gg",K,W),ce("GGGG",ee,G),ce("gggg",ee,G),ce("GGGGG",te,Z),ce("ggggg",te,Z),ge(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=pe(e)})),ge(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),R("Q",0,"Qo","quarter"),ce("Q",U),fe("Q",(function(e,t){t[1]=3*(pe(e)-1)})),R("D",["DD",2],"Do","date"),ce("D",K,ae),ce("DD",K,W),ce("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),fe(["D","DD"],2),fe("Do",(function(e,t){t[2]=pe(e.match(K)[0])}));var fn=we("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),ce("DDD",J),ce("DDDD",$),fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=pe(e)})),R("m",["mm",2],0,"minute"),ce("m",K,le),ce("mm",K,W),fe(["m","mm"],4);var gn=we("Minutes",!1);R("s",["ss",2],0,"second"),ce("s",K,le),ce("ss",K,W),fe(["s","ss"],5);var _n,vn,yn=we("Seconds",!1);for(R("S",0,0,(function(){return~~(this.millisecond()/100)})),R(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),R(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),R(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),R(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),R(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),R(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ce("S",J,U),ce("SS",J,W),ce("SSS",J,$),_n="SSSS";_n.length<=9;_n+="S")ce(_n,ne);function bn(e,t){t[6]=pe(1e3*("0."+e))}for(_n="S";_n.length<=9;_n+="S")fe(_n,bn);vn=we("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var xn=x.prototype;function wn(e){return e}xn.add=Gt,xn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Qt(arguments[0])?(e=arguments[0],t=void 0):Xt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||kt(),i=Ft(n,this).startOf("day"),s=r.calendarFormat(this,i)||"sameElse",o=t&&(E(t[s])?t[s].call(this,n):t[s]);return this.format(o||this.localeData().calendar(s,this,kt(n)))},xn.clone=function(){return new x(this)},xn.diff=function(e,t,n){var i,r,s;if(!this.isValid())return NaN;if(!(i=Ft(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=V(t)){case"year":s=Jt(this,i)/12;break;case"month":s=Jt(this,i);break;case"quarter":s=Jt(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return n?s:he(s)},xn.endOf=function(e){var t,n;if(void 0===(e=V(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?cn:ln,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=sn-an(t+(this._isUTC?0:this.utcOffset()*rn),sn)-1;break;case"minute":t=this._d.valueOf(),t+=rn-an(t,rn)-1;break;case"second":t=this._d.valueOf(),t+=1e3-an(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},xn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=F(this,e);return this.localeData().postformat(t)},xn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||kt(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},xn.fromNow=function(e){return this.from(kt(),e)},xn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||kt(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},xn.toNow=function(e){return this.to(kt(),e)},xn.get=function(e){return E(this[e=V(e)])?this[e]():this},xn.invalidAt=function(){return f(this).overflow},xn.isAfter=function(e,t){var n=w(e)?e:kt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},xn.isBefore=function(e,t){var n=w(e)?e:kt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},xn.isBetween=function(e,t,n,i){var r=w(e)?e:kt(e),s=w(t)?t:kt(t);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(s,n):!this.isAfter(s,n))},xn.isSame=function(e,t){var n,i=w(e)?e:kt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},xn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},xn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},xn.isValid=function(){return g(this)},xn.lang=tn,xn.locale=en,xn.localeData=nn,xn.max=Tt,xn.min=Et,xn.parsingFlags=function(){return p({},f(this))},xn.set=function(e,t){if("object"==typeof e){var n,i=function(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:B[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=H(e)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](e[i[n].unit])}else if(E(this[e=V(e)]))return this[e](t);return this},xn.startOf=function(e){var t,n;if(void 0===(e=V(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?cn:ln,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=an(t+(this._isUTC?0:this.utcOffset()*rn),sn);break;case"minute":t=this._d.valueOf(),t-=an(t,rn);break;case"second":t=this._d.valueOf(),t-=an(t,1e3)}return this._d.setTime(t),r.updateOffset(this,!0),this},xn.subtract=Zt,xn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},xn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},xn.toDate=function(){return new Date(this.valueOf())},xn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?F(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(n,"Z")):F(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},xn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n="moment",i="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+i+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(xn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),xn.toJSON=function(){return this.isValid()?this.toISOString():null},xn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},xn.unix=function(){return Math.floor(this.valueOf()/1e3)},xn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},xn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},xn.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].name;return""},xn.eraNarrow=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].narrow;return""},xn.eraAbbr=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].abbr;return""},xn.eraYear=function(){var e,t,n,i,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=s[e].since<=s[e].until?1:-1,i=this.clone().startOf("day").valueOf(),s[e].since<=i&&i<=s[e].until||s[e].until<=i&&i<=s[e].since)return(this.year()-r(s[e].since).year())*n+s[e].offset;return this.year()},xn.year=xe,xn.isLeapYear=function(){return ve(this.year())},xn.weekYear=function(e){return pn.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},xn.isoWeekYear=function(e){return pn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},xn.quarter=xn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},xn.month=Le,xn.daysInMonth=function(){return Me(this.year(),this.month())},xn.week=xn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},xn.isoWeek=xn.isoWeeks=function(e){var t=qe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},xn.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},xn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ye(this.weekYear(),e.dow,e.doy)},xn.isoWeeksInYear=function(){return Ye(this.year(),1,4)},xn.isoWeeksInISOWeekYear=function(){return Ye(this.isoWeekYear(),1,4)},xn.date=fn,xn.day=xn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=Ce(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},xn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},xn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},xn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},xn.hour=xn.hours=et,xn.minute=xn.minutes=gn,xn.second=xn.seconds=yn,xn.millisecond=xn.milliseconds=vn,xn.utcOffset=function(e,t,n){var i,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=jt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=qt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),s!==e&&(!t||this._changeInProgress?$t(this,zt(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:qt(this)},xn.utc=function(e){return this.utcOffset(0,e)},xn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(qt(this),"m")),this},xn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=jt(re,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},xn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?kt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},xn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},xn.isLocal=function(){return!!this.isValid()&&!this._isUTC},xn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},xn.isUtc=Yt,xn.isUTC=Yt,xn.zoneAbbr=function(){return this._isUTC?"UTC":""},xn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},xn.dates=S("dates accessor is deprecated. Use date instead.",fn),xn.months=S("months accessor is deprecated. Use month instead",Le),xn.years=S("years accessor is deprecated. Use year instead",xe),xn.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),xn.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Mt(t))._a?(e=t._isUTC?m(t._a):kt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),o=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&pe(e[i])!==pe(t[i]))&&o++;return o+s}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Cn=P.prototype;function Sn(e,t,n,i){var r=ct(),s=m().set(i,t);return r[n](s,e)}function Mn(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return Sn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Sn(e,i,n,"month");return r}function In(e,t,n,i){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var r,s=ct(),o=e?s._week.dow:0,a=[];if(null!=n)return Sn(t,(n+o)%7,i,"day");for(r=0;r<7;r++)a[r]=Sn(t,(r+o)%7,i,"day");return a}Cn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return E(i)?i.call(t,n):i},Cn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},Cn.invalidDate=function(){return this._invalidDate},Cn.ordinal=function(e){return this._ordinal.replace("%d",e)},Cn.preparse=wn,Cn.postformat=wn,Cn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return E(r)?r(e,t,n,i):r.replace(/%d/i,e)},Cn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)},Cn.set=function(e){var t,n;for(n in e)a(e,n)&&(E(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Cn.eras=function(e,t){var n,i,s,o=this._eras||ct("en")._eras;for(n=0,i=o.length;n<i;++n)switch("string"==typeof o[n].since&&(s=r(o[n].since).startOf("day"),o[n].since=s.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":s=r(o[n].until).startOf("day").valueOf(),o[n].until=s.valueOf()}return o},Cn.erasParse=function(e,t,n){var i,r,s,o,a,l=this.eras();for(e=e.toUpperCase(),i=0,r=l.length;i<r;++i)if(s=l[i].name.toUpperCase(),o=l[i].abbr.toUpperCase(),a=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[i];break;case"NNNN":if(s===e)return l[i];break;case"NNNNN":if(a===e)return l[i]}else if([s,o,a].indexOf(e)>=0)return l[i]},Cn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},Cn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||un.call(this),e?this._erasAbbrRegex:this._erasRegex},Cn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||un.call(this),e?this._erasNameRegex:this._erasRegex},Cn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||un.call(this),e?this._erasNarrowRegex:this._erasRegex},Cn.months=function(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ee).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone},Cn.monthsShort=function(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ee.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Cn.monthsParse=function(e,t,n){var i,r,s;if(this._monthsParseExact)return Oe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=m([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!n&&!this._monthsParse[i]&&(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},Cn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Ae.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Pe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Cn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Ae.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Te),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Cn.week=function(e){return qe(e,this._week.dow,this._week.doy).week},Cn.firstDayOfYear=function(){return this._week.doy},Cn.firstDayOfWeek=function(){return this._week.dow},Cn.weekdays=function(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ve(n,this._week.dow):e?n[e.day()]:n},Cn.weekdaysMin=function(e){return!0===e?Ve(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Cn.weekdaysShort=function(e){return!0===e?Ve(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Cn.weekdaysParse=function(e,t,n){var i,r,s;if(this._weekdaysParseExact)return Ge.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=m([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},Cn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Cn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=We),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Cn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Cn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Cn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},at("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===pe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",at),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ct);var kn=Math.abs;function En(e,t,n,i){var r=zt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Tn(e){return e<0?Math.floor(e):Math.ceil(e)}function Pn(e){return 4800*e/146097}function On(e){return 146097*e/4800}function Dn(e){return function(){return this.as(e)}}var Ln=Dn("ms"),An=Dn("s"),Nn=Dn("m"),Rn=Dn("h"),jn=Dn("d"),Fn=Dn("w"),qn=Dn("M"),Yn=Dn("Q"),Vn=Dn("y"),Hn=Ln;function zn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Bn=zn("milliseconds"),Un=zn("seconds"),Wn=zn("minutes"),$n=zn("hours"),Gn=zn("days"),Zn=zn("months"),Kn=zn("years"),Qn=Math.round,Xn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Jn(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var ei=Math.abs;function ti(e){return(e>0)-(e<0)||+e}function ni(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,s,o,a,l=ei(this._milliseconds)/1e3,c=ei(this._days),d=ei(this._months),u=this.asSeconds();return u?(e=he(l/60),t=he(e/60),l%=60,e%=60,n=he(d/12),d%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=u<0?"-":"",s=ti(this._months)!==ti(u)?"-":"",o=ti(this._days)!==ti(u)?"-":"",a=ti(this._milliseconds)!==ti(u)?"-":"",r+"P"+(n?s+n+"Y":"")+(d?s+d+"M":"")+(c?o+c+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+i+"S":"")):"P0D"}var ii=Dt.prototype;
|
|
959
959
|
//! moment.js
|
|
960
|
-
return ii.isValid=function(){return this._isValid},ii.abs=function(){var e=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),e.milliseconds=kn(e.milliseconds),e.seconds=kn(e.seconds),e.minutes=kn(e.minutes),e.hours=kn(e.hours),e.months=kn(e.months),e.years=kn(e.years),this},ii.add=function(e,t){return En(this,e,t,1)},ii.subtract=function(e,t){return En(this,e,t,-1)},ii.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=V(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Pn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(On(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},ii.asMilliseconds=Ln,ii.asSeconds=An,ii.asMinutes=Nn,ii.asHours=Rn,ii.asDays=jn,ii.asWeeks=Fn,ii.asMonths=qn,ii.asQuarters=Yn,ii.asYears=Vn,ii.valueOf=Hn,ii._bubble=function(){var e,t,n,i,r,s=this._milliseconds,o=this._days,a=this._months,l=this._data;return s>=0&&o>=0&&a>=0||s<=0&&o<=0&&a<=0||(s+=864e5*Tn(On(a)+o),o=0,a=0),l.milliseconds=s%1e3,e=he(s/1e3),l.seconds=e%60,t=he(e/60),l.minutes=t%60,n=he(t/60),l.hours=n%24,o+=he(n/24),a+=r=he(Pn(o)),o-=Tn(On(r)),i=he(a/12),a%=12,l.days=o,l.months=a,l.years=i,this},ii.clone=function(){return zt(this)},ii.get=function(e){return e=V(e),this.isValid()?this[e+"s"]():NaN},ii.milliseconds=Bn,ii.seconds=Un,ii.minutes=Wn,ii.hours=$n,ii.days=Gn,ii.weeks=function(){return he(this.days()/7)},ii.months=Zn,ii.years=Kn,ii.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,s=Xn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(s=Object.assign({},Xn,t),null!=t.s&&null==t.ss&&(s.ss=t.s-1)),i=function(e,t,n,i){var r=zt(e).abs(),s=Qn(r.as("s")),o=Qn(r.as("m")),a=Qn(r.as("h")),l=Qn(r.as("d")),c=Qn(r.as("M")),d=Qn(r.as("w")),u=Qn(r.as("y")),h=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||o<=1&&["m"]||o<n.m&&["mm",o]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||u<=1&&["y"]||["yy",u])[2]=t,h[3]=+e>0,h[4]=i,Jn.apply(null,h)}(this,!r,s,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ii.toISOString=ni,ii.toString=ni,ii.toJSON=ni,ii.locale=en,ii.localeData=nn,ii.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ni),ii.lang=tn,R("X",0,0,"unix"),R("x",0,0,"valueOf"),ce("x",ie),ce("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),fe("x",(function(e,t,n){n._d=new Date(pe(e))})),r.version="2.30.1",t=kt,r.fn=xn,r.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=m,r.unix=function(e){return kt(1e3*e)},r.months=function(e,t){return Mn(e,t,"months")},r.isDate=u,r.locale=at,r.invalid=_,r.duration=zt,r.isMoment=w,r.weekdays=function(e,t,n){return In(e,t,n,"weekdays")},r.parseZone=function(){return kt.apply(null,arguments).parseZone()},r.localeData=ct,r.isDuration=Lt,r.monthsShort=function(e,t){return Mn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return In(e,t,n,"weekdaysMin")},r.defineLocale=lt,r.updateLocale=function(e,t){if(null!=t){var n,i,r=tt;null!=nt[e]&&null!=nt[e].parentLocale?nt[e].set(T(nt[e]._config,t)):(null!=(i=ot(e))&&(r=i._config),t=T(r,t),null==i&&(t.abbr=e),(n=new P(t)).parentLocale=nt[e],nt[e]=n),at(e)}else null!=nt[e]&&(null!=nt[e].parentLocale?(nt[e]=nt[e].parentLocale,e===at()&&at(e)):null!=nt[e]&&delete nt[e]);return nt[e]},r.locales=function(){return M(nt)},r.weekdaysShort=function(e,t,n){return In(e,t,n,"weekdaysShort")},r.normalizeUnits=V,r.relativeTimeRounding=function(e){return void 0===e?Qn:"function"==typeof e&&(Qn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Xn[e]&&(void 0===t?Xn[e]:(Xn[e]=t,"s"===e&&(Xn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=xn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},6700:(e,t,n)=>{var i={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-ps":4523,"./ar-ps.js":4523,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku-kmr":3775,"./ku-kmr.js":3775,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function r(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=s,e.exports=r,r.id=6700}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[281],{6281:(e,t,n)=>{n.r(t),n.d(t,{ClientCertModule:()=>Qe});var i=n(6895),r=n(6383),s=n(5592),o=n(8739),a=n(7155),l=n(6308),c=n(6709),d=n(7392),u=n(9101),h=n(1561),p=n(4006),m=n(266),f=n(4385),g=n(811),_=n(5601),v=n(3798),y=n(9391),b=n(1572),x=n(182),w=n(4144),C=n(7367),S=n(9602),M=n(3238),I=n(5895),k=n(6257),E=n(1948),T=n(4246),P=n(9299),O=n(6e3),D=n(5861),L=n(7582),A=n(9549),N=n(9933),R=n(5762),j=n(8259),F=n(2340),q=n(1363),Y=n(6830),V=n(4650),H=n(5089),z=n(5412),B=n(4302),U=n(3731);function W(e,t){if(1&e&&(V.ɵɵelementStart(0,"span"),V.ɵɵtext(1),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}function $(e,t){if(1&e&&(V.ɵɵelementStart(0,"span"),V.ɵɵtext(1),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵtextInterpolate2("¿No has recibido el código en el teléfono acabado en ",e.lastNumberPhone,"? Solicítalo de nuevo en ",e.secsCount," segundos")}}const G=function(e,t,n){return{color:e,border:t,background:n}};function Z(e,t){if(1&e&&(V.ɵɵelementContainerStart(0),V.ɵɵelementStart(1,"small",11),V.ɵɵtemplate(2,W,2,1,"span",5),V.ɵɵtemplate(3,$,2,2,"span",5),V.ɵɵelementEnd(),V.ɵɵelementContainerEnd()),2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵproperty("ngStyle",V.ɵɵpureFunction3(3,G,e.data.styles.colors.accentColor,"1px solid "+e.data.styles.colors.accentColor,e.data.styles.colors.accentBgColor)),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.lastNumberPhone),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",e.lastNumberPhone)}}function K(e,t){1&e&&(V.ɵɵelementStart(0,"span"),V.ɵɵtext(1," ¿No has recibido el código en tu teléfono? "),V.ɵɵelementEnd())}function Q(e,t){if(1&e&&(V.ɵɵelementStart(0,"span"),V.ɵɵtext(1),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵtextInterpolate1(" ¿No has recibido el código en el teléfono acabado en ",e.lastNumberPhone,"? ")}}const X=function(e,t){return{color:e,background:t}};function J(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementContainerStart(0),V.ɵɵelementStart(1,"small",11),V.ɵɵtemplate(2,K,2,0,"span",5),V.ɵɵtemplate(3,Q,2,1,"span",5),V.ɵɵelementStart(4,"a",12),V.ɵɵlistener("click",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext();return V.ɵɵresetView(t.resendOTP())})),V.ɵɵtext(5,"Reenviar"),V.ɵɵelementEnd()(),V.ɵɵelementContainerEnd()}if(2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵproperty("ngStyle",V.ɵɵpureFunction3(4,G,e.data.styles.colors.dangerColor,"1px solid "+e.data.styles.colors.dangerColor,e.data.styles.colors.dangerBgColor)),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.lastNumberPhone),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",e.lastNumberPhone),V.ɵɵadvance(1),V.ɵɵproperty("ngStyle",V.ɵɵpureFunction2(8,X,e.data.styles.colors.dangerTextButtonColor,e.data.styles.colors.dangerColor))}}let ee=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.solucitudesService=n,this.activeRoute=i,this.next=new V.EventEmitter(null),this.errPhone=new V.EventEmitter(null),this.resendO=new V.EventEmitter(null),this.secsCount=60,this.lastNumberPhone="XXX"}ngOnInit(){this.form=this.fb.group({code1:[null,[p.Validators.required,p.Validators.maxLength(6),p.Validators.minLength(6)]]}),this.initSecsInterval(),this.activeRoute.queryParams.subscribe((e=>{e&&e.request_id&&(this.requestID=e.request_id)}),(e=>{console.error(e)})),this.solicitud&&this.solicitud.person_phone&&this.setPhone(this.solicitud.person_phone)}setPhone(e){let t="XXX";e&&(t=(""+e).slice(-3)),this.lastNumberPhone=t}initSecsInterval(){this.interv=setInterval((()=>{this.secsCount--,this.secsCount<=0&&this.finishSecsInterval()}),1e3)}finishSecsInterval(){this.interv&&clearInterval(this.interv)}nextStep(){let e={code:this.getCode()};this.next.emit(e)}getCode(){return this.form.get("code1").value}capturePasteEvent(e){return(0,D.Z)((function*(){}))()}errorStep(){this.errPhone.emit(!0)}setInputEvent(e){""!=e.target.value?j(e.target).next().focus():"Backspace"==e.code&&j(e.target).prev().focus()}resendOTP(){this.resendO.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(P.gz))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-otp-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep",errPhone:"errorPhone",resendO:"resendOTP"},decls:16,vars:20,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"title","py-2"],[4,"ngIf"],[1,"flex","gap-2","items-center","justify-start","w-full","max-w-[200px]"],["appearance","outline",1,"w-full","flex-1"],["tabindex","1","maxlength","6","minlength","1","formControlName","code1","type","text","matInput","",3,"change","keyup"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","next-button","mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"],[1,"info-time","w-fit",3,"ngStyle"],[1,"ml-4",3,"ngStyle","click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementStart(5,"div",4),V.ɵɵtemplate(6,Z,4,7,"ng-container",5),V.ɵɵtemplate(7,J,6,11,"ng-container",5),V.ɵɵelementEnd(),V.ɵɵelementStart(8,"div",6)(9,"mat-form-field",7)(10,"mat-label"),V.ɵɵtext(11," Código OTP "),V.ɵɵelementEnd(),V.ɵɵelementStart(12,"input",8),V.ɵɵlistener("change",(function(e){return t.capturePasteEvent(e)}))("keyup",(function(e){return t.setInputEvent(e)})),V.ɵɵelementEnd()()()(),V.ɵɵelementStart(13,"div",9)(14,"button",10),V.ɵɵlistener("click",(function(){return t.nextStep()})),V.ɵɵtext(15,"Siguiente"),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵproperty("formGroup",t.form),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.otp.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,18,t.texts.otp.description||""),V.ɵɵsanitizeHtml),V.ɵɵadvance(3),V.ɵɵproperty("ngIf",t.secsCount&&t.secsCount>0),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!t.secsCount||t.secsCount<=0),V.ɵɵadvance(7),V.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),V.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,i.PC,u.lW,A.KE,A.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,U.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function te(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",1),V.ɵɵelement(1,"div",2)(2,"div",3),V.ɵɵpipe(3,"safeHtml"),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",e.texts.success.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",e.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(3,8,e.texts.success.description||""),V.ɵɵsanitizeHtml)}}let ne=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r}ngOnInit(){}save(){}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(y.o),V.ɵɵdirectiveInject(I.T))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-success-step"]],inputs:{data:"data",texts:"texts"},decls:1,vars:1,consts:[["class"," pt-4 pb-8 flex flex-col animated fadeIn",4,"ngIf"],[1,"pt-4","pb-8","flex","flex-col","animated","fadeIn"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&V.ɵɵtemplate(0,te,4,10,"div",0),2&e&&V.ɵɵproperty("ngIf",!t.data.config.infiniteLoopInCompleted)},dependencies:[i.O5,U.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function ie(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",5)(1,"button",6),V.ɵɵlistener("click",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext();return V.ɵɵresetView(t.retry())})),V.ɵɵtext(2,"Intentarlo nuevamente"),V.ɵɵelementEnd()()}if(2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}function re(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",5)(1,"button",7),V.ɵɵlistener("click",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext();return V.ɵɵresetView(t.newRequest())})),V.ɵɵtext(2,"Crear nueva solicitud"),V.ɵɵelementEnd()()}if(2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}let se=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryOp=new V.EventEmitter(null),this.newReq=new V.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryOp.emit(this.solicitud.request_id)}newRequest(){this.newReq.emit(this.solicitud.request_id)}getIfRetryIsAllowed(){return"failed_with_retry"==this.solicitud}getIfNewRequestIsAllowed(){return"failed_documents_downloaded"==this.solicitud}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(y.o),V.ɵɵdirectiveInject(I.T))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-fail-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{retryOp:"retry",newReq:"newRequest"},decls:7,vars:8,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"text-red-500","title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],["class","flex items-center justify-end gap-2 p-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"div",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementEnd(),V.ɵɵtemplate(5,ie,3,6,"div",4),V.ɵɵtemplate(6,re,3,6,"div",4),V.ɵɵelementEnd()),2&e&&(V.ɵɵadvance(2),V.ɵɵproperty("innerHTML",t.texts.fail.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,6,t.texts.fail.description),V.ɵɵsanitizeHtml),V.ɵɵadvance(2),V.ɵɵproperty("ngIf",t.solicitud&&"failed_with_retry"==t.solicitud.status_code),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.solicitud&&"failed_documents_downloaded"==t.solicitud.status_code))},dependencies:[i.O5,u.lW,U.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();n(6866);var oe=n(3848),ae=n(1763),le=n(5696);function ce(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",22)(1,"belender-checkbox",20),V.ɵɵlistener("changeCheckbox",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(2);return V.ɵɵresetView(n.setAssignment(t))})),V.ɵɵelement(2,"div",25),V.ɵɵelementEnd()()}if(2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("color",e.data.styles.colors.title),V.ɵɵadvance(1),V.ɵɵproperty("innerHTML",null==e.data?null:e.data.config.dataAssignmentText,V.ɵɵsanitizeHtml)}}function de(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",12)(1,"mat-form-field",13)(2,"mat-label"),V.ɵɵtext(3,"Nombre"),V.ɵɵelementEnd(),V.ɵɵelement(4,"input",14),V.ɵɵelementEnd(),V.ɵɵelementStart(5,"mat-form-field",13)(6,"mat-label"),V.ɵɵtext(7,"Primer apellido"),V.ɵɵelementEnd(),V.ɵɵelement(8,"input",15),V.ɵɵelementEnd(),V.ɵɵelementStart(9,"mat-form-field",13)(10,"mat-label"),V.ɵɵtext(11,"Segundo apellido"),V.ɵɵelementEnd(),V.ɵɵelement(12,"input",16),V.ɵɵelementEnd(),V.ɵɵelementStart(13,"mat-form-field",17)(14,"mat-label"),V.ɵɵtext(15,"DNI"),V.ɵɵelementEnd(),V.ɵɵelement(16,"input",18),V.ɵɵelementEnd(),V.ɵɵelementStart(17,"div",19)(18,"belender-checkbox",20),V.ɵɵlistener("changeCheckbox",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext();return V.ɵɵresetView(n.setTerms2(t))})),V.ɵɵelementStart(19,"belender-terms-and-policy-links",21),V.ɵɵlistener("goToTerms",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext();return V.ɵɵresetView(n.gotoTermsAndConditions(t))})),V.ɵɵelementEnd()()(),V.ɵɵelementStart(20,"div",22)(21,"belender-checkbox",20),V.ɵɵlistener("changeCheckbox",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext();return V.ɵɵresetView(n.setTerms(t))})),V.ɵɵtext(22," He leído y acepto los "),V.ɵɵelementStart(23,"a",23),V.ɵɵlistener("click",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext();return V.ɵɵresetView(n.gotoTermsAndConditionsCertificate(t))})),V.ɵɵelementStart(24,"u"),V.ɵɵtext(25,"términos y condiciones"),V.ɵɵelementEnd()(),V.ɵɵtext(26," para la emisión del certificado "),V.ɵɵelementEnd()(),V.ɵɵtemplate(27,ce,3,2,"div",24),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(18),V.ɵɵproperty("color",e.data.styles.colors.title),V.ɵɵadvance(1),V.ɵɵproperty("userId",e.userId)("showPolicyLink",null==e.data?null:e.data.config.showPolicyLink),V.ɵɵadvance(2),V.ɵɵproperty("color",e.data.styles.colors.title),V.ɵɵadvance(6),V.ɵɵproperty("ngIf",null==e.data?null:e.data.config.dataAssignmentCheck)}}function ue(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",19)(1,"belender-checkbox",20),V.ɵɵlistener("changeCheckbox",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(2);return V.ɵɵresetView(n.setTerms2(t))})),V.ɵɵelementStart(2,"belender-terms-and-policy-links",21),V.ɵɵlistener("goToTerms",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(2);return V.ɵɵresetView(n.gotoTermsAndConditions(t))})),V.ɵɵelementEnd()()()}if(2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("color",e.data.styles.colors.title),V.ɵɵadvance(1),V.ɵɵproperty("userId",e.userId)("showPolicyLink",null==e.data?null:e.data.config.showPolicyLink)}}function he(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",22)(1,"belender-checkbox",20),V.ɵɵlistener("changeCheckbox",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(2);return V.ɵɵresetView(n.setAssignment(t))})),V.ɵɵelement(2,"div",25),V.ɵɵelementEnd()()}if(2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("color",e.data.styles.colors.title),V.ɵɵadvance(1),V.ɵɵproperty("innerHTML",null==e.data?null:e.data.config.dataAssignmentText,V.ɵɵsanitizeHtml)}}function pe(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",12)(1,"mat-form-field",13)(2,"mat-label"),V.ɵɵtext(3,"Nombre"),V.ɵɵelementEnd(),V.ɵɵelement(4,"input",14),V.ɵɵelementEnd(),V.ɵɵelementStart(5,"mat-form-field",13)(6,"mat-label"),V.ɵɵtext(7,"Primer apellido"),V.ɵɵelementEnd(),V.ɵɵelement(8,"input",15),V.ɵɵelementEnd(),V.ɵɵelementStart(9,"mat-form-field",13)(10,"mat-label"),V.ɵɵtext(11,"Segundo apellido"),V.ɵɵelementEnd(),V.ɵɵelement(12,"input",16),V.ɵɵelementEnd(),V.ɵɵelementStart(13,"mat-form-field",17)(14,"mat-label"),V.ɵɵtext(15,"DNI"),V.ɵɵelementEnd(),V.ɵɵelement(16,"input",18),V.ɵɵelementEnd(),V.ɵɵelementStart(17,"mat-form-field",17)(18,"mat-label"),V.ɵɵtext(19,"Razón social"),V.ɵɵelementEnd(),V.ɵɵelement(20,"input",26),V.ɵɵelementEnd(),V.ɵɵelementStart(21,"mat-form-field",17)(22,"mat-label"),V.ɵɵtext(23,"CIF"),V.ɵɵelementEnd(),V.ɵɵelement(24,"input",27),V.ɵɵelementEnd(),V.ɵɵtemplate(25,ue,3,3,"div",28),V.ɵɵelementStart(26,"div",22)(27,"belender-checkbox",20),V.ɵɵlistener("changeCheckbox",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext();return V.ɵɵresetView(n.setTerms(t))})),V.ɵɵtext(28," He leído y acepto los "),V.ɵɵelementStart(29,"a",23),V.ɵɵlistener("click",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext();return V.ɵɵresetView(n.gotoTermsAndConditionsCertificate(t))})),V.ɵɵelementStart(30,"u"),V.ɵɵtext(31,"términos y condiciones"),V.ɵɵelementEnd()(),V.ɵɵtext(32," para la emisión del certificado "),V.ɵɵelementEnd()(),V.ɵɵtemplate(33,he,3,2,"div",24),V.ɵɵelementStart(34,"h1"),V.ɵɵtext(35,"safdsfds"),V.ɵɵelementEnd()()}if(2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(25),V.ɵɵproperty("ngIf",!e.data.config.hideCheckLegal),V.ɵɵadvance(2),V.ɵɵproperty("color",e.data.styles.colors.title),V.ɵɵadvance(6),V.ɵɵproperty("ngIf",null==e.data?null:e.data.config.dataAssignmentCheck)}}function me(e,t){1&e&&(V.ɵɵelementStart(0,"div",29),V.ɵɵelement(1,"mat-icon",30),V.ɵɵtext(2," Debes leer y aceptar ambos términos y condiciones para poder continuar "),V.ɵɵelementEnd())}function fe(e,t){1&e&&(V.ɵɵelementContainerStart(0),V.ɵɵelementStart(1,"div",29),V.ɵɵelement(2,"mat-icon",30),V.ɵɵtext(3," Debes aceptar los términos de poder digital "),V.ɵɵelementEnd(),V.ɵɵelementContainerEnd())}const ge={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let _e=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.next=new V.EventEmitter(null),this.goTerms=new V.EventEmitter(null),this.goTermsCert=new V.EventEmitter(null),this.acceptTerms=!1,this.acceptTerms2=!1,this.termsReaded=!1,this.terms2Readed=!1,this.step=0,this.assignment=!1}ngOnInit(){console.error(this.solicitud),this.setForm(this.solicitud?this.solicitud:null)}tabChanged(e){this.step=e,this.setForm(null)}setForm(e){let t=e?e.person_document_number||e.phone:null,n=e&&e.razon_social?e.razon_social:null,i=e&&e.cif?e.cif:null,r=e&&e.person_name?e.person_name:null,s=e&&e.person_last_name?e.person_last_name:null;this.form=this.fb.group(this.step&&0!=this.step?{name:[r||null,[p.Validators.required]],lastname:[s||null,[p.Validators.required]],lastname2:[s||null,[p.Validators.required]],dni:[t||null,[p.Validators.required,p.Validators.maxLength(9),p.Validators.minLength(9)]],razon:[n||null,[p.Validators.required]],cif:[i||null,[p.Validators.required]]}:{name:[r||null,[p.Validators.required]],lastname:[s||null,[p.Validators.required]],lastname2:[s||null,[p.Validators.required]],dni:[t||null,[p.Validators.required,p.Validators.maxLength(9),p.Validators.minLength(9)]]})}nextStep(){let e;e=this.step&&0!=this.step?{name:this.form.get("name").value,lastname:this.form.get("lastname").value,lastname2:this.form.get("lastname2").value,dni:this.form.get("dni").value,razon:this.form.get("razon").value,cif:this.form.get("cif").value}:{name:this.form.get("name").value,lastname:this.form.get("lastname").value,lastname2:this.form.get("lastname2").value,dni:this.form.get("dni").value},this.next.emit(e)}gotoTermsAndConditions(e){e.preventDefault(),e.stopPropagation(),this.termsReaded=!0,this.goTerms.emit(!0)}gotoTermsAndConditionsCertificate(e){e.preventDefault(),e.stopPropagation(),this.terms2Readed=!0,this.goTermsCert.emit(!0)}setAssignment(e){this.assignment=e}getAssignmentValidation(){return!!(!this.data.config.forceChecks||this.termsReaded&&this.terms2Readed)&&(!this.data.config.dataAssignmentCheck||this.assignment)}setTerms(e){this.acceptTerms=e}setTerms2(e){this.acceptTerms2=e}getIsValid(){return(this.data.config.hideCheckLegal||this.acceptTerms)&&this.acceptTerms2}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],inputs:{userId:"userId",flowName:"flowName",data:"data",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep",goTerms:"goToTerms",goTermsCert:"goToTermsCertificate"},features:[V.ɵɵProvidersFeature([{provide:M.sG,useValue:ge},{provide:V.LOCALE_ID,useValue:"es-ES"}])],decls:15,vars:23,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4","custom-html",3,"innerHTML"],[3,"selectedIndex","selectedIndexChange"],["label","Persona física"],["class","my-3 flex flex-col md:flex-row flex-wrap gap-2 md:justify-between",4,"ngIf"],["label","Persona jurídica"],["class","px-2 flex items-center gap-2 py-2 rounded-sm mt-3 bg-orange-500/10 text-orange-500",4,"ngIf"],[4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"],[1,"my-3","flex","flex-col","md:flex-row","flex-wrap","gap-2","md:justify-between"],["appearance","outline",1,"w-full","flex-1","belender-form-field"],["formControlName","name","matInput",""],["formControlName","lastname","matInput",""],["formControlName","lastname2","matInput",""],["appearance","outline",1,"mb-4","w-full","flex-1","belender-form-field"],["formControlName","dni","maxlength","9","placeholder","Ej: 12345678R","matInput",""],[1,"mt-8","flex","justify-start","items-center","w-full","flex-100"],[3,"color","changeCheckbox"],[3,"userId","showPolicyLink","goToTerms"],[1,"mt-3","flex","justify-start","items-center","w-full","flex-100"],["target","_blank",1,"text-sm","hover:text-blue-500",3,"click"],["class","mt-3 flex justify-start items-center w-full flex-100",4,"ngIf"],[1,"custom-html",3,"innerHTML"],["formControlName","razon","placeholder","Ej: Mi Empresa","type","text","matInput",""],["formControlName","cif","placeholder","Ej: 123123123","type","text","matInput",""],["class","mt-8 flex justify-start items-center w-full flex-100",4,"ngIf"],[1,"px-2","flex","items-center","gap-2","py-2","rounded-sm","mt-3","bg-orange-500/10","text-orange-500"],["svgIcon","mat:warning",1,"text-xs","w-4","h-4"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementEnd(),V.ɵɵelementStart(5,"mat-tab-group",4),V.ɵɵlistener("selectedIndexChange",(function(e){return t.tabChanged(e)})),V.ɵɵelementStart(6,"mat-tab",5),V.ɵɵtemplate(7,de,28,5,"div",6),V.ɵɵelementEnd(),V.ɵɵelementStart(8,"mat-tab",7),V.ɵɵtemplate(9,pe,36,3,"div",6),V.ɵɵelementEnd()(),V.ɵɵtemplate(10,me,3,0,"div",8),V.ɵɵtemplate(11,fe,4,0,"ng-container",9),V.ɵɵelementStart(12,"div",10)(13,"button",11),V.ɵɵlistener("click",(function(){return t.nextStep()})),V.ɵɵtext(14," Siguiente "),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵproperty("formGroup",t.form),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.form.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,21,t.texts.form.description||""),V.ɵɵsanitizeHtml),V.ɵɵadvance(2),V.ɵɵproperty("selectedIndex",t.step),V.ɵɵadvance(2),V.ɵɵproperty("ngIf",0==t.step),V.ɵɵadvance(2),V.ɵɵproperty("ngIf",1==t.step),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.data.config.forceChecks&&!t.termsReaded),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",(null==t.data?null:t.data.config.activatePower)&&!(null!=t.solicitud&&t.solicitud.power_activate)),V.ɵɵadvance(2),V.ɵɵstyleProp("color",!t.form.invalid&&t.getIsValid()&&t.getAssignmentValidation()?t.data.styles.colors.btnText:"")("background",!t.form.invalid&&t.getIsValid()&&t.getAssignmentValidation()?t.data.styles.colors.btnBg:"")("border-radius",t.data.styles.btnRound+"px"),V.ɵɵproperty("disabled",t.form.invalid||!t.getIsValid()||!t.getAssignmentValidation()))},dependencies:[i.O5,d.Hw,u.lW,A.KE,A.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,oe.SP,oe.uX,ae.b,le.T,U.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();var ve=n(5145);let ye=(()=>{class e{constructor(e){this.utils=e,this.status="",this.label="Cargando datos.."}ngOnInit(){this.data.config&&this.data.config.infiniteLoopInCompleted?this.label="":ve.Z.forEach((e=>{e.text==this.status&&(this.label=e.label)}))}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(H.F))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-loading-step"]],inputs:{status:"status",data:"data"},decls:5,vars:1,consts:[[1,"fixed-content","h-full"],[1,"h-full","py-10","flex","flex-col","items-center"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"div",0)(1,"div",1),V.ɵɵelement(2,"mat-progress-spinner"),V.ɵɵelementStart(3,"p"),V.ɵɵtext(4),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵadvance(4),V.ɵɵtextInterpolate(t.label))},dependencies:[b.Ou],styles:[".content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),be=(()=>{class e{constructor(){}ngOnInit(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-no-service-step"]],inputs:{data:"data",texts:"texts"},decls:5,vars:10,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementEnd()()),2&e&&(V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.noService.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,8,t.texts.noService.description),V.ɵɵsanitizeHtml))},dependencies:[p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm,U.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),xe=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryOp=new V.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryOp.emit(this.solicitud.request_id)}getTextStatus(){switch(this.solicitud.status_code){case"abandoned_after_waiting_otp_seguridad_social":return"Abandonado después de esperar OTP de Seguridad Social";case"abandoned_after_invalid_otp_seguridad_social":return"Abandonado despues de OTP inválido en Seguridad Social";case"abandoned_after_invalid_otp_aeat":return"Abandonado despues de OTP inválido en AEAT";case"abandoned_after_waiting_otp_aeat":return"Abandonado después de esperar OTP de AEAT";default:return this.solicitud.status_code}}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(y.o),V.ɵɵdirectiveInject(I.T))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-abandoned-step"]],inputs:{solicitud:"solicitud",data:"data",texts:"texts"},outputs:{retryOp:"retry"},decls:10,vars:17,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-md","mb-2","mt-2"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"div",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementStart(5,"div",4),V.ɵɵtext(6),V.ɵɵelementEnd()(),V.ɵɵelementStart(7,"div",5)(8,"button",6),V.ɵɵlistener("click",(function(){return t.retry()})),V.ɵɵtext(9,"Intentarlo nuevamente"),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.abandoned.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,15,t.texts.abandoned.description),V.ɵɵsanitizeHtml),V.ɵɵadvance(3),V.ɵɵtextInterpolate1(" Estado: ",t.getTextStatus()," "),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW,U.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();var we=n(1406);function Ce(e,t){1&e&&(V.ɵɵelementStart(0,"mat-hint",12),V.ɵɵtext(1," La contraseña es requerida "),V.ɵɵelementEnd())}function Se(e,t){1&e&&(V.ɵɵelementStart(0,"mat-hint",12),V.ɵɵtext(1," La contraseña debe tener al menos 8 carácteres "),V.ɵɵelementEnd())}const Me={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let Ie=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.form=new p.FormGroup({}),this.next=new V.EventEmitter(null)}ngOnInit(){this.setForm()}get f(){return this.form.controls}submit(){this.nextStep()}setForm(){this.form=this.fb.group({password:["",[p.Validators.required]]})}nextStep(){let e={password:this.form.get("password").value};this.next.emit(e)}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.FormBuilder),V.ɵɵdirectiveInject(H.F))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-password-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep"},features:[V.ɵɵProvidersFeature([{provide:M.sG,useValue:Me},{provide:V.LOCALE_ID,useValue:"es-ES"}])],decls:17,vars:20,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"my-3","flex","flex-col","md:flex-row","flex-wrap","gap-2","md:justify-between"],[1,"w-full","mb-3"],["label","Seleccione archivo de certificado (.p12)",1,"w-full"],["appearance","outline",1,"w-full","flex-1","belender-form-field"],["formControlName","password","minlength","8","type","password","matInput",""],["class","text-red-500",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"],[1,"text-red-500"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementEnd(),V.ɵɵelementStart(5,"div",4)(6,"div",5),V.ɵɵelement(7,"app-file-upload",6),V.ɵɵelementEnd(),V.ɵɵelementStart(8,"mat-form-field",7)(9,"mat-label"),V.ɵɵtext(10,"Contraseña"),V.ɵɵelementEnd(),V.ɵɵelement(11,"input",8),V.ɵɵtemplate(12,Ce,2,0,"mat-hint",9),V.ɵɵtemplate(13,Se,2,0,"mat-hint",9),V.ɵɵelementEnd()(),V.ɵɵelementStart(14,"div",10)(15,"button",11),V.ɵɵlistener("click",(function(){return t.nextStep()})),V.ɵɵtext(16," Guardar "),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵproperty("formGroup",t.form),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.password.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,18,t.texts.password.description),V.ɵɵsanitizeHtml),V.ɵɵadvance(9),V.ɵɵproperty("ngIf",t.f.password.touched&&t.f.password.invalid&&t.f.password.errors.required),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.f.password.invalid&&t.f.password.errors.minlength),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.form.invalid?"":t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),V.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,u.lW,A.KE,A.bx,A.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.FormGroupDirective,p.FormControlName,we.Y,U.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function ke(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",7),V.ɵɵelement(1,"img",8),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("src",e.data.styles.logoUrl,V.ɵɵsanitizeUrl)}}function Ee(e,t){if(1&e&&V.ɵɵelement(0,"belender-loading-step",18),2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("status",null==e.solicitud?null:e.solicitud.status_code)("data",e.data)}}function Te(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-form-step",19),V.ɵɵlistener("goToTerms",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext(3);return V.ɵɵresetView(t.gotoTermsAndConditions())}))("goToTermsCertificate",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext(3);return V.ɵɵresetView(t.gotoTermsAndConditionsCertificate())}))("nextStep",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.gotoPassword(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("userId",e.userId)("data",e.data)("flowName",e.flowName)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Pe(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-password-step",20),V.ɵɵlistener("nextStep",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.sendPassword(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Oe(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-otp-step",21),V.ɵɵlistener("resendOTP",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext(3);return V.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.requestOTP(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function De(e,t){if(1&e&&V.ɵɵelement(0,"belender-success-step",22),2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)}}function Le(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-fail-step",23),V.ɵɵlistener("retry",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.retryRequest(t))}))("newRequest",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.newRequest(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Ae(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-abandoned-step",24),V.ɵɵlistener("retry",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.retryRequest(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("solicitud",e.solicitud)("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)}}function Ne(e,t){if(1&e&&V.ɵɵelement(0,"belender-no-service-step",25),2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("data",e.data)}}function Re(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",26)(1,"div",27)(2,"h1",28),V.ɵɵtext(3,"No existe la solicitud"),V.ɵɵelementEnd()(),V.ɵɵelementStart(4,"div",29),V.ɵɵtext(5,"No existen solicitudes activas con el código requerido"),V.ɵɵelementEnd()()),2&e){const e=V.ɵɵnextContext(3);V.ɵɵadvance(4),V.ɵɵstyleProp("color",e.data.styles.colors.text)}}function je(e,t){if(1&e&&(V.ɵɵelementContainerStart(0),V.ɵɵtemplate(1,Ee,1,2,"belender-loading-step",9),V.ɵɵtemplate(2,Te,1,5,"belender-form-step",10),V.ɵɵtemplate(3,Pe,1,3,"belender-password-step",11),V.ɵɵtemplate(4,Oe,1,3,"belender-otp-step",12),V.ɵɵtemplate(5,De,1,2,"belender-success-step",13),V.ɵɵtemplate(6,Le,1,3,"belender-fail-step",14),V.ɵɵtemplate(7,Ae,1,3,"belender-abandoned-step",15),V.ɵɵtemplate(8,Ne,1,2,"belender-no-service-step",16),V.ɵɵtemplate(9,Re,6,2,"div",17),V.ɵɵelementContainerEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("ngIf","loading"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","form"==e.getStatus()&&!e.loading),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","password"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","otp"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","success"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","failed"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","abandoned"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","no-service"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","no-exist"==e.getStatus())}}function Fe(e,t){1&e&&V.ɵɵelement(0,"belender-disabled-url")}function qe(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",30),V.ɵɵelement(1,"mat-progress-spinner",31),V.ɵɵelementStart(2,"p",32),V.ɵɵtext(3),V.ɵɵelementEnd()()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("value",e.spinnerValue)("mode",e.spinnerMode),V.ɵɵadvance(2),V.ɵɵtextInterpolate(e.loading)}}function Ye(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",33)(1,"div",26)(2,"div",34),V.ɵɵtext(3,"Error!"),V.ɵɵelementEnd(),V.ɵɵelement(4,"div",35),V.ɵɵelementEnd(),V.ɵɵelementStart(5,"div",36)(6,"button",37),V.ɵɵlistener("click",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext(2);return V.ɵɵresetView(t.error=!1)})),V.ɵɵtext(7,"Ingresar manualmente"),V.ɵɵelementEnd()()()}if(2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(4),V.ɵɵstyleProp("color",e.data.styles.colors.text),V.ɵɵproperty("innerHTML",e.error,V.ɵɵsanitizeHtml)}}function Ve(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",2)(1,"div",3),V.ɵɵtemplate(2,ke,2,1,"div",4),V.ɵɵtemplate(3,je,10,9,"ng-container",1),V.ɵɵtemplate(4,Fe,1,0,"belender-disabled-url",1),V.ɵɵtemplate(5,qe,4,3,"div",5),V.ɵɵtemplate(6,Ye,8,3,"div",6),V.ɵɵelementEnd()()),2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵstyleProp("background",e.data.styles.colors.background),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",e.data.styles.withLogo&&"loading"!=e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.error&&!e.disableURL),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.error&&e.disableURL),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",e.loading&&!e.error),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.loading&&e.error)}}function He(e,t){if(1&e&&(V.ɵɵelementContainerStart(0),V.ɵɵelementStart(1,"div",38),V.ɵɵtext(2),V.ɵɵelementEnd(),V.ɵɵelementContainerEnd()),2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(2),V.ɵɵtextInterpolate1("TestMode ",e.testMode?"ON":"OFF","")}}let ze=class{constructor(e,t,n,i,r,s,o,a){this.cd=e,this.Activatedroute=t,this.utils=n,this.solicitudesService=i,this.customizationService=r,this.notis=s,this.webhooksService=o,this.dialog=a,this.data=null,this.disableActions=!1,this.step="created",this.waitingTime=15,this.loading=null,this.error=!1,this.spinnerMode="indeterminate",this.spinnerValue=0,this.subscribed=!1,this.testMode=!1,this.cntrlIsPressed=!1,this.shiftlIsPressed=!1,this.skipCreationOfRequest=!1,this.autoAcceptTerms=!1,this.disableURL=!1,this.flowName="ClientCertificate"}ngOnInit(){const e=this;this.loading="Obteniendo información de la solicitud",this.Activatedroute.params.subscribe((e=>{this.utils.setLoading(!1),e&&e.idUser?(this.userId=e.idUser,this.setInitialData(this.userId)):this.loading=!1,e&&e.packID&&(this.packId=e.packID)}),(e=>{this.loading=!1})),"pro"!=F.N.env&&(j(document).keydown((function(t){16==t.which&&(this.shiftlIsPressed=!0),17==t.which&&(this.cntrlIsPressed=!0),84==t.which&&this.cntrlIsPressed&&this.shiftlIsPressed&&(e.testMode=!e.testMode,e.cd.markForCheck())})),j(document).keyup((function(e){16==e.which&&(this.shiftlIsPressed=!1),16==e.which&&(this.cntrlIsPressed=!1)})))}ngOnDestroy(){}sendMessageToParent(e){window.top.postMessage(e,"*")}setInitialData(e){this.customizationService.getCustomization(e).then((e=>{console.error("customi:",e),e&&(this.data=e,this.disableURL=e.config.disableUrlWidget,this.financiadorID=e.funder_id||"",this.validateRequestIdInUrl(),this.cd.markForCheck()),this.loading=!1}),(e=>{console.error(e),this.loading=!1}))}validateRequestIdInUrl(){this.Activatedroute.queryParams.subscribe((e=>{e&&e.acceptTerms&&(this.autoAcceptTerms=!0),e&&e.request_id?(this.disableURL=!1,this.requestID=e.request_id,this.setFormFromVcCode(e.request_id)):this.loading=!1}),(e=>{this.loading=!1}))}setFormFromVcCode(e){var t=this;return(0,D.Z)((function*(){t.loading="Obteniendo datos de la solicitud...",t.solicitudesService.getSolicitudByCode(e).then((e=>{e&&e.data?(t.solicitud=e.data,t.setSubscriptionOfRequest(),t.loading=!1,t.skipCreationOfRequest=!0,t.autoAcceptTerms&&t.gotoPassword()):t.loading=!1})).catch((e=>{t.loading=!1}))}))()}setSubscriptionOfRequest(){if(this.socket)return;let e="wss://notifications.dev.belender.net";"qa"==F.N.env&&(e="wss://notifications.qa.belender.net"),"pro"==F.N.env&&(e="wss://notifications.belender.net"),F.N.notificationsBaseUrl&&(e=F.N.notificationsBaseUrl),this.socket=new WebSocket(`${e}?requests_id=${this.requestID}&user_id=${this.userId}`);var t=this;this.socket.onopen=function(e){console.log("Conexión establecida")},this.socket.onmessage=function(e){let n=JSON.parse(e.data);console.warn(n),t.handlePusherNotification(n)},this.socket.onerror=function(e){console.log("WebSocket Error: "+e),console.error(e),t.setSubscriptionOfRequestOld()},this.socket.onclose=function(e){console.log("Conexión cerrada"),t.setSubscriptionOfRequestOld()}}handlePusherNotification(e){this.dataFromFirebase=e,this.dataFromFirebase&&this.dataFromFirebase.status_code&&(this.solicitud.status_code=this.dataFromFirebase.status_code,"invalid_otp_seguridad_social"==this.solicitud.status_code&&this.showAlert("Error!","Código inválido. Por favor, introduzca el código recibido por SMS"),"terms_and_conditions"!=this.solicitud.status_code&&setTimeout((()=>{this.loading=!1,this.cd.markForCheck()}),500))}resendOTP(e){let t={request_id:this.requestID,user_id:this.userId};this.loading="Reenviando OTP...",this.setSubscriptionOfRequest(),this.solicitudesService.resendOTP(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}gotoTerms(e){this.loading="Enviando datos..",e.package_id=this.packId,e.user_id=this.userId,this.testMode?setTimeout((()=>{this.solicitud=new R.l,this.solicitud.status_code="waiting_otp_seguridad_social",this.loading=!1}),4e3):this.skipCreationOfRequest?(this.gotoPassword(),this.setSubscriptionOfRequest()):this.solicitudesService.addSolicitud(e,this.packId,this.userId).then((t=>{t&&t.status&&"error"==t.status?(this.solicitud=e,t.message&&(400==t.code?"Birthdate incorrect"==t.message?(this.solicitud.status_code="form",this.showAlert("Error!","Fecha de nacimiento incorrecta")):(this.solicitud.status_code="no_service",this.loading=!1):(this.solicitud.status_code="form",this.showAlert("Error!",t.message)))):t&&t.status&&"success"==t.status?(this.requestID=t.data.request_id,this.solicitud=t.data,this.sendMessageToParent(t.data),this.gotoPassword()):this.showAlert("Error!","Error desconocido: "+t)})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}setSubscriptionOfRequestOld(){!this.financiadorID||!this.userId||!this.requestID||this.subscribed||(this.subscribed=!0,this.webhooksService.bindRequestChanges(this.financiadorID,this.userId,this.requestID),this.webhooksService.subscribeRequestChanges().subscribe((e=>{e&&this.handlePusherNotification(e)}),(e=>{this.loading=!1})))}sendNewData(e){this.loading="Enviando información..",this.solicitudesService.fixData(this.requestID,e).then((e=>{e.status&&"error"==e.status?e.message&&(this.showAlert("Error!",e),this.loading=!1):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.initWaitingForResponse("Validando nuevos datos, espere por favor.."),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}showAlert(e,t){this.loading=!1,this.notis.showAlert(e,t)}gotoPassword(e){let t=e;t.request_id=this.requestID,t.user_id=this.userId,this.initWaitingForResponse("Iniciando el proceso de emisión de certificado.."),setTimeout((()=>{this.solicitud=new R.l,this.loading=!1,this.solicitud.status_code="waiting_password"}),2e3)}requestOTP(e){this.loading="Enviando información..",setTimeout((()=>{this.solicitud=new R.l,this.solicitud.status_code="waiting_password",this.loading=!1}),2e3)}sendPassword(e){this.loading="Enviando información..",setTimeout((()=>{this.solicitud.status_code="all_documents_downloaded",this.loading=!1}),2e3)}initWaitingForResponse(e){this.loading=e||"Validando información, espere por favor..",setTimeout((()=>{this.loading&&this.askToBack()}),1e4)}askToBack(){this.solicitudesService.getSolicitudByCode(this.requestID).then((e=>{e&&e.data?(this.solicitud=e.data,this.loading=!1):this.loading=!1})).catch((e=>{this.loading=!1}))}gotoErrorPhone(){}setRequestStatus(e){this.solicitud.status_code=e}retryRequest(e){let t={request_id:e,user_id:this.userId};this.loading="Reintentando enviar la solicitud...",this.setSubscriptionOfRequest(),this.solicitudesService.retryRequest(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}newRequest(e){this.solicitud.status_code="created"}getStatus(){return!this.solicitud||this.solicitud&&("created"==this.solicitud.status_code||"form"==this.solicitud.status_code||"terms_and_conditions"==this.solicitud.status_code)?"form":!this.solicitud||"waiting_login_seguridad_social"!=this.solicitud.status_code&&"saved_otp"!=this.solicitud.status_code?!this.solicitud||"waiting_otp_seguridad_social"!=this.solicitud.status_code&&"invalid_otp_seguridad_social"!=this.solicitud.status_code?this.solicitud&&"waiting_password"==this.solicitud.status_code?"password":!this.solicitud||"abandoned_after_bad_phone"!=this.solicitud.status_code&&"abandoned_after_invalid_otp_seguridad_social"!=this.solicitud.status_code&&"abandoned_after_terms_and_conditions"!=this.solicitud.status_code&&"abandoned_after_waiting_otp_seguridad_social"!=this.solicitud.status_code?!this.solicitud||"all_documents_downloaded"!=this.solicitud.status_code&&"partial_documents_downloaded"!=this.solicitud.status_code&&"consent_process_completed"!=this.solicitud.status_code&&"waiting_documents"!=this.solicitud.status_code?!this.solicitud||"bad_phone"!=this.solicitud.status_code&&"phone_not_exist_otp"!=this.solicitud.status_code?!this.solicitud||"failed_with_retry"!=this.solicitud.status_code&&"failed_without_retry"!=this.solicitud.status_code&&"failed_documents_downloaded"!=this.solicitud.status_code?this.solicitud&&"no_service"==this.solicitud.status_code?"no-service":"no-exist":"failed":"error-data":this.data.config&&this.data.config.infiniteLoopInCompleted?"loading":"success":"abandoned":"otp":(this.loading="Estamos procesando su solicitud. Espere un momento por favor","loading")}sendRetry(){}gotoTermsAndConditions(){this.dialog.open(Y.L,{panelClass:"fullscreen-dialog",data:{flow:"presencial"}})}gotoTermsAndConditionsCertificate(){this.dialog.open(q.v,{panelClass:"fullscreen-dialog",data:{flow:"presencial"}})}};ze.ɵfac=function(e){return new(e||ze)(V.ɵɵdirectiveInject(V.ChangeDetectorRef),V.ɵɵdirectiveInject(P.gz),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(C.w),V.ɵɵdirectiveInject(I.T),V.ɵɵdirectiveInject(x.t),V.ɵɵdirectiveInject(z.uw))},ze.ɵcmp=V.ɵɵdefineComponent({type:ze,selectors:[["belender-widget-client-cert"]],inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud"},features:[V.ɵɵProvidersFeature([{provide:A.o2,useValue:{appearance:"standard"}}])],decls:2,vars:2,consts:[["class","h-full widget-belender",4,"ngIf"],[4,"ngIf"],[1,"h-full","widget-belender"],[1,"h-full","w-full","flex-auto","p-0","md:p-3"],["class","img-wrapper p-6 flex justify-center items-center",4,"ngIf"],["class","loading-wrapper animated fadeIn",4,"ngIf"],["class","animated fadeInRight",4,"ngIf"],[1,"img-wrapper","p-6","flex","justify-center","items-center"],["alt","",1,"img-card",3,"src"],[3,"status","data",4,"ngIf"],[3,"userId","data","flowName","texts","solicitud","goToTerms","goToTermsCertificate","nextStep",4,"ngIf"],[3,"data","texts","solicitud","nextStep",4,"ngIf"],[3,"data","texts","solicitud","resendOTP","errorPhone","nextStep",4,"ngIf"],[3,"data","texts",4,"ngIf"],[3,"data","texts","solicitud","retry","newRequest",4,"ngIf"],[3,"solicitud","data","texts","retry",4,"ngIf"],[3,"texts","data",4,"ngIf"],["class","px-6 py-4 flex flex-col",4,"ngIf"],[3,"status","data"],[3,"userId","data","flowName","texts","solicitud","goToTerms","goToTermsCertificate","nextStep"],[3,"data","texts","solicitud","nextStep"],[3,"data","texts","solicitud","resendOTP","errorPhone","nextStep"],[3,"data","texts"],[3,"data","texts","solicitud","retry","newRequest"],[3,"solicitud","data","texts","retry"],[3,"texts","data"],[1,"px-6","py-4","flex","flex-col"],[1,"title","m-0"],[1,"text-red-500"],[1,"subheading-1","pt-4"],[1,"loading-wrapper","animated","fadeIn"],["color","accent","diameter","40",1,"spinner",3,"value","mode"],[1,"mt-6","text-center","text-black",2,"color","black !important"],[1,"animated","fadeInRight"],[1,"text-red-500","title","m-0"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"text-blue-500","bg-blue-50","px-8",3,"click"],[1,"test-mode","px-10","py-2","bg-blue-500/10","text-blue-500","border-blue-500","border","rounded-md"]],template:function(e,t){1&e&&(V.ɵɵtemplate(0,Ve,7,7,"div",0),V.ɵɵtemplate(1,He,3,1,"ng-container",1)),2&e&&(V.ɵɵproperty("ngIf",t.data),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.testMode))},dependencies:[i.O5,u.lW,b.Ou,B.q,ee,ne,se,_e,ye,be,xe,Ie],styles:[".widget-belender[_ngcontent-%COMP%]{position:relative}.widget-belender[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{min-height:360px}.widget-belender[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between}.badge-table[_ngcontent-%COMP%]{max-width:140px!important;border-radius:5px!important;-webkit-border-radius:5px!important;-moz-border-radius:5px!important;-ms-border-radius:5px!important;-o-border-radius:5px!important}.btn-refresh[_ngcontent-%COMP%]{transform:translateY(2px)}.request-data-info[_ngcontent-%COMP%]{transition:all .5s ease!important}.img-card[_ngcontent-%COMP%]{max-width:240px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.loading-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:absolute;top:0;left:0;background:#fff}.mat-flat-button.mat-primary.mat-button-disabled[_ngcontent-%COMP%]{background:red!important}button.mat-flat-button.text-green-500.bg-green-light.mat-button-disabled[_ngcontent-%COMP%]{background:orange!important}.test-mode[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px}"]}),ze=(0,L.gn)([(0,N.c)()],ze);const Be=[{path:":idUser",component:ze},{path:":idUser/:packID",component:ze}];let Ue=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=V.ɵɵdefineNgModule({type:e}),e.ɵinj=V.ɵɵdefineInjector({imports:[P.Bz.forChild(Be),P.Bz,O.d8]}),e})();var We=n(6981),$e=n(1129),Ge=n(969),Ze=n(3300),Ke=n(865);let Qe=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=V.ɵɵdefineNgModule({type:e}),e.ɵinj=V.ɵɵdefineInjector({providers:[_.M,y.o,C.w,x.t,I.T,T.t,{provide:M.Ad,useValue:"es-ES"}],imports:[Ue,i.ez,r.G,s.J,o.TU,a.p0,l.JX,c.p9,d.Ps,u.ot,h.Tx,w.c,p.FormsModule,m.AV,p.ReactiveFormsModule,f.LD,g.vV,v.a,b.Cq,S.FA,M.XK,k.T5,E.Fk,We.x,oe.Nh,c.p9,$e.n,Ge.O,Ze.C,Ke.q]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[378],{2378:(e,t,n)=>{n.r(t),n.d(t,{ManualModule:()=>ut});var i=n(6895),r=n(6383),s=n(5592),o=n(8739),a=n(7155),l=n(6308),c=n(6709),d=n(7392),u=n(9101),h=n(1561),p=n(4006),m=n(266),f=n(4385),g=n(811),_=n(3798),v=n(9391),y=n(1572),b=n(182),x=n(4144),w=n(7367),C=n(9602),S=n(3238),M=n(5895),I=n(6257),k=n(1948),E=n(4246),T=n(7489),P=n(6981),O=n(3848),D=n(1129),L=n(9476),A=n(9299),N=n(6e3),R=n(5861),j=n(7582),F=n(9549),q=n(9933),Y=n(5762),V=n(8259),H=n(2340),z=n(6830),B=n(4650),U=n(5089),W=n(5412),$=n(8008),G=n(5601),Z=n(3731);function K(e,t){if(1&e&&B.ɵɵelement(0,"div",10),2&e){const e=B.ɵɵnextContext();B.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",e.texts.otpSS.title,B.ɵɵsanitizeHtml)}}function Q(e,t){if(1&e&&(B.ɵɵelement(0,"div",11),B.ɵɵpipe(1,"safeHtml")),2&e){const e=B.ɵɵnextContext();B.ɵɵstyleProp("color",e.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(1,3,e.texts.otpSS.description),B.ɵɵsanitizeHtml)}}function X(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}function J(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate2("¿No has recibido el código en el teléfono acabado en ",e.lastThreeNumbersPhone,"? Solicítalo de nuevo en ",e.secsCount," segundos")}}function ee(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1("¿No has recibido el código en tu teléfono? Solicítalo de nuevo en ",e.secsCount," segundos")}}const te=function(e,t,n){return{color:e,border:t,background:n}};function ne(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"small",12),B.ɵɵtemplate(2,X,2,1,"span",5),B.ɵɵtemplate(3,J,2,2,"span",5),B.ɵɵtemplate(4,ee,2,1,"span",5),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction3(4,te,e.data.styles.colors.accentColor,"1px solid "+e.data.styles.colors.accentColor,e.data.styles.colors.accentBgColor)),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.lastThreeNumbersPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&!e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&e.data.config.noRetryInBadPhone)}}function ie(e,t){1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1," ¿No has recibido el código en tu teléfono? "),B.ɵɵelementEnd())}function re(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1(" ¿No has recibido el código en el teléfono acabado en ",e.lastThreeNumbersPhone,"? ")}}function se(e,t){1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1," ¿No has recibido el código en el teléfono? "),B.ɵɵelementEnd())}const oe=function(e,t){return{color:e,background:t}};function ae(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"small",12),B.ɵɵtemplate(2,ie,2,0,"span",5),B.ɵɵtemplate(3,re,2,1,"span",5),B.ɵɵtemplate(4,se,2,0,"span",5),B.ɵɵelementStart(5,"a",13),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext();return B.ɵɵresetView(t.resendOTP())})),B.ɵɵtext(6,"Reenviar"),B.ɵɵelementEnd()(),B.ɵɵelementContainerEnd()}if(2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction3(5,te,e.data.styles.colors.dangerColor,"1px solid "+e.data.styles.colors.dangerColor,e.data.styles.colors.dangerBgColor)),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.lastThreeNumbersPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&!e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction2(9,oe,e.data.styles.colors.dangerTextButtonColor,e.data.styles.colors.dangerColor))}}let le=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.solucitudesService=n,this.activeRoute=i,this.next=new B.EventEmitter(null),this.errPhone=new B.EventEmitter(null),this.resendO=new B.EventEmitter(null),this.secsCount=60}ngOnInit(){this.form=this.fb.group({code1:[null,[p.Validators.required,p.Validators.maxLength(6),p.Validators.minLength(3)]]}),this.initSecsInterval(),this.activeRoute.queryParams.subscribe((e=>{e&&e.request_id&&(this.requestID=e.request_id)}),(e=>{console.error(e)}))}initSecsInterval(){this.interv=setInterval((()=>{this.secsCount--,this.secsCount<=0&&this.finishSecsInterval()}),1e3)}finishSecsInterval(){this.interv&&clearInterval(this.interv)}nextStep(){let e={code:this.getCode()};this.next.emit(e)}getCode(){return this.form.get("code1").value}capturePasteEvent(e){return(0,R.Z)((function*(){}))()}errorStep(){this.errPhone.emit(!0)}setInputEvent(e){""!=e.target.value?V(e.target).next().focus():"Backspace"==e.code&&V(e.target).prev().focus()}resendOTP(){this.resendO.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(G.M),B.ɵɵdirectiveInject(A.gz))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-otp-ss-step"]],inputs:{data:"data",texts:"texts",lastThreeNumbersPhone:"lastThreeNumbersPhone",solicitud:"solicitud"},outputs:{next:"nextStep",errPhone:"errorPhone",resendO:"resendOTP"},decls:12,vars:12,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-1","flex","flex-col"],["class","title m-0",3,"color","font-size","innerHTML",4,"ngIf"],["class","subheading-1 pt-4",3,"color","innerHTML",4,"ngIf"],[1,"title","py-2"],[4,"ngIf"],[1,"flex","gap-2","items-center","justify-start"],["formControlName","code1","maxlength","6","minlength","1","type","text",3,"change","keyup"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","next-button","mat-flat-button","","type","button",1,"px-8",3,"disabled","click"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"info-time","w-fit",3,"ngStyle"],[1,"ml-4",3,"ngStyle","click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵtemplate(2,K,1,5,"div",2),B.ɵɵtemplate(3,Q,2,5,"div",3),B.ɵɵelementStart(4,"div",4),B.ɵɵtemplate(5,ne,5,8,"ng-container",5),B.ɵɵtemplate(6,ae,7,12,"ng-container",5),B.ɵɵelementEnd(),B.ɵɵelementStart(7,"div",6)(8,"input",7),B.ɵɵlistener("change",(function(e){return t.capturePasteEvent(e)}))("keyup",(function(e){return t.setInputEvent(e)})),B.ɵɵelementEnd()()(),B.ɵɵelementStart(9,"div",8)(10,"button",9),B.ɵɵlistener("click",(function(){return t.nextStep()})),B.ɵɵtext(11,"Siguiente"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵproperty("formGroup",t.form),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.texts.otpSS.title&&""!=t.texts.otpSS.title),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.texts.otpSS.description&&""!=t.texts.otpSS.description),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.secsCount&&t.secsCount>0),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!t.secsCount||t.secsCount<=0),B.ɵɵadvance(4),B.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),B.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,i.PC,u.lW,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,Z.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function ce(e,t){if(1&e&&B.ɵɵelement(0,"div",10),2&e){const e=B.ɵɵnextContext();B.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",e.texts.otpAEAT.title,B.ɵɵsanitizeHtml)}}function de(e,t){if(1&e&&(B.ɵɵelement(0,"div",11),B.ɵɵpipe(1,"safeHtml")),2&e){const e=B.ɵɵnextContext();B.ɵɵstyleProp("color",e.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(1,3,e.texts.otpAEAT.description),B.ɵɵsanitizeHtml)}}function ue(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}function he(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate2("¿No has recibido el código en el teléfono acabado en ",e.lastThreeNumbersPhone,"? Solicítalo de nuevo en ",e.secsCount," segundos")}}function pe(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1("¿No has recibido el código en tu teléfono? Solicítalo de nuevo en ",e.secsCount," segundos")}}const me=function(e,t,n){return{color:e,border:t,background:n}};function fe(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"small",12),B.ɵɵtemplate(2,ue,2,1,"span",5),B.ɵɵtemplate(3,he,2,2,"span",5),B.ɵɵtemplate(4,pe,2,1,"span",5),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction3(4,me,e.data.styles.colors.accentColor,"1px solid "+e.data.styles.colors.accentColor,e.data.styles.colors.accentBgColor)),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.lastThreeNumbersPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&!e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&e.data.config.noRetryInBadPhone)}}function ge(e,t){1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1," ¿No has recibido el código en tu teléfono? "),B.ɵɵelementEnd())}function _e(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1(" ¿No has recibido el código en el teléfono acabado en ",e.lastThreeNumbersPhone,"? ")}}function ve(e,t){1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1," ¿No has recibido el código en el teléfono? "),B.ɵɵelementEnd())}const ye=function(e,t){return{color:e,background:t}};function be(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"small",12),B.ɵɵtemplate(2,ge,2,0,"span",5),B.ɵɵtemplate(3,_e,2,1,"span",5),B.ɵɵtemplate(4,ve,2,0,"span",5),B.ɵɵelementStart(5,"a",13),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext();return B.ɵɵresetView(t.resendOTP())})),B.ɵɵtext(6,"Reenviar"),B.ɵɵelementEnd()(),B.ɵɵelementContainerEnd()}if(2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction3(5,me,e.data.styles.colors.dangerColor,"1px solid "+e.data.styles.colors.dangerColor,e.data.styles.colors.dangerBgColor)),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.lastThreeNumbersPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&!e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction2(9,ye,e.data.styles.colors.dangerTextButtonColor,e.data.styles.colors.dangerColor))}}let xe=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.solucitudesService=n,this.activeRoute=i,this.next=new B.EventEmitter(null),this.errPhone=new B.EventEmitter(null),this.resendO=new B.EventEmitter(null),this.secsCount=60}ngOnInit(){this.form=this.fb.group({code1:[null,[p.Validators.required,p.Validators.maxLength(6),p.Validators.minLength(3)]]}),this.initSecsInterval(),this.activeRoute.queryParams.subscribe((e=>{e&&e.request_id&&(this.requestID=e.request_id)}),(e=>{console.error(e)}))}initSecsInterval(){this.interv=setInterval((()=>{this.secsCount--,this.secsCount<=0&&this.finishSecsInterval()}),1e3)}finishSecsInterval(){this.interv&&clearInterval(this.interv)}nextStep(){let e={code:this.getCode()};this.next.emit(e)}getCode(){return this.form.get("code1").value}capturePasteEvent(e){return(0,R.Z)((function*(){}))()}errorStep(){this.errPhone.emit(!0)}setInputEvent(e){""!=e.target.value?V(e.target).next().focus():"Backspace"==e.code&&V(e.target).prev().focus()}resendOTP(){this.resendO.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(G.M),B.ɵɵdirectiveInject(A.gz))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-otp-aeat-step"]],inputs:{data:"data",texts:"texts",lastThreeNumbersPhone:"lastThreeNumbersPhone",solicitud:"solicitud"},outputs:{next:"nextStep",errPhone:"errorPhone",resendO:"resendOTP"},decls:12,vars:12,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-1","flex","flex-col"],["class","title m-0",3,"color","font-size","innerHTML",4,"ngIf"],["class","subheading-1 pt-4",3,"color","innerHTML",4,"ngIf"],[1,"title","py-2"],[4,"ngIf"],[1,"flex","gap-2","items-center","justify-start"],["formControlName","code1","maxlength","6","minlength","1","type","text",3,"change","keyup"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","next-button","mat-flat-button","","type","button",1,"px-8",3,"disabled","click"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"info-time","w-fit",3,"ngStyle"],[1,"ml-4",3,"ngStyle","click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵtemplate(2,ce,1,5,"div",2),B.ɵɵtemplate(3,de,2,5,"div",3),B.ɵɵelementStart(4,"div",4),B.ɵɵtemplate(5,fe,5,8,"ng-container",5),B.ɵɵtemplate(6,be,7,12,"ng-container",5),B.ɵɵelementEnd(),B.ɵɵelementStart(7,"div",6)(8,"input",7),B.ɵɵlistener("change",(function(e){return t.capturePasteEvent(e)}))("keyup",(function(e){return t.setInputEvent(e)})),B.ɵɵelementEnd()()(),B.ɵɵelementStart(9,"div",8)(10,"button",9),B.ɵɵlistener("click",(function(){return t.nextStep()})),B.ɵɵtext(11,"Siguiente"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵproperty("formGroup",t.form),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.texts.otpAEAT.title&&""!=t.texts.otpAEAT.title),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.texts.otpAEAT.description&&""!=t.texts.otpAEAT.description),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.secsCount&&t.secsCount>0),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!t.secsCount||t.secsCount<=0),B.ɵɵadvance(4),B.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),B.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,i.PC,u.lW,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,Z.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function we(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",1),B.ɵɵelement(1,"div",2)(2,"div",3),B.ɵɵpipe(3,"safeHtml"),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",e.texts.success.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",e.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(3,8,e.texts.success.description||""),B.ɵɵsanitizeHtml)}}let Ce=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r}ngOnInit(){}save(){}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(G.M),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(M.T))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-success-step"]],inputs:{data:"data",texts:"texts"},decls:1,vars:1,consts:[["class"," pt-4 pb-8 flex flex-col animated fadeIn",4,"ngIf"],[1,"pt-4","pb-8","flex","flex-col","animated","fadeIn"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&B.ɵɵtemplate(0,we,4,10,"div",0),2&e&&B.ɵɵproperty("ngIf",!t.data.config.infiniteLoopInCompleted)},dependencies:[i.O5,Z.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function Se(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"div",5)(1,"button",6),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext();return B.ɵɵresetView(t.retry())})),B.ɵɵtext(2,"Intentarlo nuevamente"),B.ɵɵelementEnd()()}if(2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}function Me(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"div",5)(1,"button",6),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext();return B.ɵɵresetView(t.newRequest())})),B.ɵɵtext(2,"Crear Nueva Solicitud"),B.ɵɵelementEnd()()}if(2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}let Ie=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryR=new B.EventEmitter(null),this.newR=new B.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryR.emit(this.solicitud.request_id)}newRequest(){this.newR.emit(this.solicitud.request_id)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(G.M),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(M.T))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-fail-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{retryR:"retryRequest",newR:"newRequest"},decls:7,vars:8,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"text-red-500","title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],["class","flex items-center justify-end gap-2 p-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementEnd(),B.ɵɵtemplate(5,Se,3,6,"div",4),B.ɵɵtemplate(6,Me,3,6,"div",4),B.ɵɵelementEnd()),2&e&&(B.ɵɵadvance(2),B.ɵɵproperty("innerHTML",t.texts.fail.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,6,t.texts.fail.description),B.ɵɵsanitizeHtml),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.solicitud&&"failed_with_retry"==t.solicitud.status_code),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.solicitud&&"failed_documents_downloaded"==t.solicitud.status_code))},dependencies:[i.O5,u.lW,Z.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();n(6866);var ke=n(9617);function Ee(e,t){1&e&&(B.ɵɵelementStart(0,"div",8),B.ɵɵelement(1,"belender-spinner",9),B.ɵɵelementEnd()),2&e&&(B.ɵɵadvance(1),B.ɵɵproperty("zoom",.6))}let Te=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.attachmentsService=n,this.packsS=i,this.upload=new B.EventEmitter(null),this.back=new B.EventEmitter(null),this.loadingPack=!1}ngOnInit(){this.form=this.fb.group({}),console.warn("data: ",this.data),this.loadingPack=!0,this.packsS.getPackagesByUserID(this.userId).then((e=>{e&&e.data?this.setPack(e.data):this.loadingPack=!1})).catch((e=>{console.error(e),this.loadingPack=!1}))}setPack(e){this.pack=e.find((e=>e.id==this.packId)),console.error("pack: ",this.pack),this.loadingPack=!1,this.setForm()}setForm(){this.pack&&this.pack.documents&&this.pack.documents.forEach((e=>{this.form.addControl(e,new p.FormControl("",p.Validators.required))}))}uploadFiles(e){this.upload.emit(!0),e.preventDefault(),e.stopPropagation(),console.error("Form: ",this.form);const t=new FormData;this.attachmentsService.uploadFile(t).then((e=>{console.warn(e)})).catch((e=>{console.error(e)}))}goBack(){this.back.emit(!0)}setFile(e,t){t.file&&this.form.get(e).setValue(t.file),console.error(t)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(ke.U))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],inputs:{data:"data",flowName:"flowName",solicitud:"solicitud",flow:"flow",packId:"packId",userId:"userId",texts:"texts"},outputs:{upload:"uploadFiles",back:"goBack"},decls:12,vars:19,consts:[[1,"flex","flex-col","justify-between","h-full","fixed-content",3,"formGroup"],[1,"flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"py-4"],["class","py-10 px-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-2"],["mat-flat-button","","type","button",1,"px-8","hover:opacity-90",3,"disabled","click"],[1,"py-10","px-4"],["text","Cargando documentos",3,"zoom"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementEnd(),B.ɵɵelementStart(5,"div",4)(6,"h1"),B.ɵɵtext(7,"Subida automatica de los docs"),B.ɵɵelementEnd()(),B.ɵɵtemplate(8,Ee,2,1,"div",5),B.ɵɵelementStart(9,"div",6)(10,"button",7),B.ɵɵlistener("click",(function(e){return t.uploadFiles(e)})),B.ɵɵtext(11,"Subir archivos"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵproperty("formGroup",t.form),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",t.texts.form.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,17,t.texts.form.description||""),B.ɵɵsanitizeHtml),B.ɵɵadvance(5),B.ɵɵproperty("ngIf",t.loadingPack),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.form.invalid?"":t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),B.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,u.lW,p.ɵNgNoValidate,p.NgControlStatusGroup,p.FormGroupDirective,$.O,Z.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.dont-show-data[_ngcontent-%COMP%]{opacity:0!important;padding:0!important;overflow:hidden!important;height:0px!important;margin:0!important}"]}),e})();var Pe=n(5145);let Oe=(()=>{class e{constructor(e){this.utils=e,this.status="",this.label="Cargando datos..",this.loaderColor="red"}ngOnInit(){this.data.config&&this.data.config.infiniteLoopInCompleted?this.label="":Pe.Z.forEach((e=>{e.text==this.status&&(this.label=e.label)}))}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(U.F))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-loading-step"]],inputs:{status:"status",loaderColor:"loaderColor",data:"data"},decls:3,vars:2,consts:[[1,"fixed-content","h-full","animated","fadeIn"],[1,"h-full","py-10","flex","flex-col","items-center","min-h-[300px]"],[3,"text","color"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1),B.ɵɵelement(2,"belender-spinner",2),B.ɵɵelementEnd()()),2&e&&(B.ɵɵadvance(2),B.ɵɵproperty("text",t.label)("color",t.loaderColor))},dependencies:[$.O],styles:[".content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),De=(()=>{class e{constructor(){}ngOnInit(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-no-service-step"]],inputs:{data:"data",texts:"texts"},decls:5,vars:10,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementEnd()()),2&e&&(B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",t.texts.noService.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,8,t.texts.noService.description),B.ɵɵsanitizeHtml))},dependencies:[p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm,Z.z]}),e})(),Le=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryR=new B.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryR.emit(this.solicitud.request_id)}getTextStatus(){switch(this.solicitud.status_code){case"abandoned_after_waiting_otp_seguridad_social":return"Abandonado después de esperar OTP de Seguridad Social";case"abandoned_after_invalid_otp_seguridad_social":return"Abandonado despues de OTP inválido en Seguridad Social";case"abandoned_after_invalid_otp_aeat":return"Abandonado despues de OTP inválido en AEAT";case"abandoned_after_waiting_otp_aeat":return"Abandonado después de esperar OTP de AEAT";default:return this.solicitud.status_code}}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(G.M),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(M.T))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-abandoned-step"]],inputs:{data:"data",solicitud:"solicitud",texts:"texts"},outputs:{retryR:"retryRequest"},decls:10,vars:17,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-md","mb-2","mt-2"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementStart(5,"div",4),B.ɵɵtext(6),B.ɵɵelementEnd()(),B.ɵɵelementStart(7,"div",5)(8,"button",6),B.ɵɵlistener("click",(function(){return t.retry()})),B.ɵɵtext(9,"Intentarlo nuevamente"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",t.texts.abandoned.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,15,t.texts.abandoned.description),B.ɵɵsanitizeHtml),B.ɵɵadvance(3),B.ɵɵtextInterpolate1(" Estado: ",t.getTextStatus()," "),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW,Z.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),Ae=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.nr=new B.EventEmitter(null)}ngOnInit(){}newRequest(){this.nr.emit(!0)}gotoRequest(){location.assign(this.currentRequest.widget_url_boxed)}getStatus(){let e=Pe.Z.find((e=>e.text==this.currentRequest.status_code));return e?e.label:"Estado desconocido"}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(G.M),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(M.T))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-duplicated-request-step"]],inputs:{currentRequest:"currentRequest",data:"data",texts:"texts"},outputs:{nr:"newRequest"},decls:15,vars:15,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"flex","gap-2","justify-start","items-center","py-2"],[1,"w-fit","p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-sm"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),B.ɵɵtext(3," Solicitud duplicada! "),B.ɵɵelementEnd(),B.ɵɵelementStart(4,"div",3),B.ɵɵtext(5," Ya existe una solicitud para este cliente. "),B.ɵɵelementEnd(),B.ɵɵelementStart(6,"div",4),B.ɵɵtext(7," Estado de la solicitud actual: "),B.ɵɵelementStart(8,"div",5),B.ɵɵtext(9),B.ɵɵelementEnd()()(),B.ɵɵelementStart(10,"div",6)(11,"button",7),B.ɵɵlistener("click",(function(){return t.newRequest()})),B.ɵɵtext(12,"Nueva solicitud"),B.ɵɵelementEnd(),B.ɵɵelementStart(13,"button",7),B.ɵɵlistener("click",(function(){return t.gotoRequest()})),B.ɵɵtext(14,"Ir a la solicitud actual"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵadvance(5),B.ɵɵtextInterpolate1(" ",t.getStatus()," "),B.ɵɵadvance(2),B.ɵɵstyleProp("border-radius",t.data.styles.btnRound+"px"),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),Ne=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.attachmentsService=n,this.packsS=i,this.setF=new B.EventEmitter(null)}ngOnInit(){}setFlow(e){this.setF.emit(e)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(ke.U))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-switcher-step"]],inputs:{data:"data",texts:"texts"},outputs:{setF:"setFlow"},decls:10,vars:10,consts:[[1,"flex","flex-col","justify-between","h-full","min-h-[330px]","fixed-content"],[1,"flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"flex","items-center","justify-between","gap-2","p-2","h-full"],["mat-flat-button","","type","button",1,"px-8","py-1","bg-blue-500/10","text-blue-500","hover:bg-blue-500/20",3,"click"],["mat-flat-button","","type","button",1,"px-8","py-1","bg-purple-500/10","text-purple-500","hover:bg-purple-500/20",3,"click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementEnd(),B.ɵɵelementStart(5,"div",4)(6,"button",5),B.ɵɵlistener("click",(function(){return t.setFlow("manual")})),B.ɵɵtext(7,"Subida manual de documentos"),B.ɵɵelementEnd(),B.ɵɵelementStart(8,"button",6),B.ɵɵlistener("click",(function(){return t.setFlow("form")})),B.ɵɵtext(9,"Subida automatica de documentos"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",t.texts.form.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,8,t.texts.form.description||""),B.ɵɵsanitizeHtml))},dependencies:[u.lW,Z.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.dont-show-data[_ngcontent-%COMP%]{opacity:0!important;padding:0!important;overflow:hidden!important;height:0px!important;margin:0!important}"]}),e})();var Re=n(1888),je=n(1763);function Fe(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"belender-checkbox",13),B.ɵɵlistener("changeCheckbox",(function(){const t=B.ɵɵrestoreView(e).$implicit,n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.setDoc(t))})),B.ɵɵtext(2),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()}if(2&e){const e=t.$implicit;B.ɵɵadvance(2),B.ɵɵtextInterpolate1(" ",e.name," ")}}function qe(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"div",10)(2,"h2",11),B.ɵɵtext(3),B.ɵɵelementEnd()(),B.ɵɵelementStart(4,"div",12),B.ɵɵtemplate(5,Fe,3,1,"ng-container",9),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()),2&e){const e=t.$implicit;B.ɵɵadvance(3),B.ɵɵtextInterpolate(e.groupName),B.ɵɵadvance(2),B.ɵɵproperty("ngForOf",e.documents)}}function Ye(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",8),B.ɵɵtemplate(1,qe,6,2,"ng-container",9),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngForOf",e.documentsGroup)}}function Ve(e,t){1&e&&(B.ɵɵelementStart(0,"div",14),B.ɵɵelement(1,"belender-spinner",15),B.ɵɵelementEnd()),2&e&&(B.ɵɵadvance(1),B.ɵɵproperty("zoom",.6))}let He=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.attachmentsService=n,this.packsS=i,this.docsS=r,this.upload=new B.EventEmitter(null),this.back=new B.EventEmitter(null),this.loadingPack=!1}ngOnInit(){this.form=this.fb.group({}),this.loadingPack=!0,this.docsS.getAllDocumentsType().then((e=>{console.warn(e),this.documentsGroup=this.divideInGroups(e.data),this.loadingPack=!1}))}divideInGroups(e){let t={};e.forEach((e=>{t[e.portal_name]={groupName:e.portal_name,documents:[]}}));let n=Object.keys(t),i=[];return n.forEach((n=>{t[n].documents=e.filter((e=>"OK"===e.status&&e.portal_name===n)),i.push(t[n])})),console.warn(i),i}setDoc(e){console.log(e)}uploadFiles(e){this.upload.emit(!0),e.preventDefault(),e.stopPropagation(),console.error("Form: ",this.form);const t=new FormData;this.attachmentsService.uploadFile(t).then((e=>{console.warn(e)})).catch((e=>{console.error(e)}))}goBack(){this.back.emit(!0)}setFile(e,t){t.file&&this.form.get(e).setValue(t.file),console.error(t)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(ke.U),B.ɵɵdirectiveInject(Re.S))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-manual-form-step"]],inputs:{data:"data",solicitud:"solicitud",flow:"flow",packId:"packId",userId:"userId",texts:"texts"},outputs:{upload:"uploadFiles",back:"goBack"},decls:10,vars:20,consts:[[1,"flex","flex-col","justify-between","h-full","fixed-content",3,"formGroup"],[1,"flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],["class","py-4 ",4,"ngIf"],["class","py-10 px-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-2"],["mat-flat-button","","type","button",1,"px-8","hover:opacity-90",3,"disabled","click"],[1,"py-4"],[4,"ngFor","ngForOf"],[1,"border-b","border-slate-300","mt-3","w-full"],[1,"pl-1"],[1,"flex","flex-wrap","gap-2","pb-2","pt-1"],[1,"bg-slate-300/10",3,"changeCheckbox"],[1,"py-10","px-4"],["text","Cargando documentos",3,"zoom"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementEnd(),B.ɵɵtemplate(5,Ye,2,1,"div",4),B.ɵɵtemplate(6,Ve,2,1,"div",5),B.ɵɵelementStart(7,"div",6)(8,"button",7),B.ɵɵlistener("click",(function(e){return t.uploadFiles(e)})),B.ɵɵtext(9,"Subir archivos"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵproperty("formGroup",t.form),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",t.texts.form.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,18,t.texts.form.description||""),B.ɵɵsanitizeHtml),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.documentsGroup&&!t.loadingPack),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.loadingPack),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.form.invalid?"":t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),B.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.sg,i.O5,u.lW,p.ɵNgNoValidate,p.NgControlStatusGroup,p.FormGroupDirective,je.b,$.O,Z.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.dont-show-data[_ngcontent-%COMP%]{opacity:0!important;padding:0!important;overflow:hidden!important;height:0px!important;margin:0!important}"]}),e})();function ze(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",7),B.ɵɵelement(1,"img",8),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵproperty("src",e.data.styles.logoUrl,B.ɵɵsanitizeUrl)}}function Be(e,t){if(1&e&&B.ɵɵelement(0,"belender-loading-step",20),2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("status",null==e.solicitud?null:e.solicitud.status_code)("data",e.data)("loaderColor",e.data.styles.colors.title)}}function Ue(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-switcher-step",21),B.ɵɵlistener("setFlow",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.setFlow(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("texts",e.data[e.flowName].texts)("data",e.data)}}function We(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-form-step",22),B.ɵɵlistener("goToTerms",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(3);return B.ɵɵresetView(t.gotoTermsAndConditions())}))("nextStep",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.gotoTerms(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("texts",e.data[e.flowName].texts)("userId",e.userId)("flowName",e.flowName)("packId",e.packId)("data",e.data)("solicitud",e.solicitud)}}function $e(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-manual-form-step",23),B.ɵɵlistener("goToTerms",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(3);return B.ɵɵresetView(t.gotoTermsAndConditions())}))("nextStep",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.gotoTerms(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("texts",e.data[e.flowName].texts)("userId",e.userId)("packId",e.packId)("data",e.data)("solicitud",e.solicitud)}}function Ge(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-otp-ss-step",24),B.ɵɵlistener("resendOTP",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(3);return B.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.requestOTP(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("solicitud",e.solicitud)("lastThreeNumbersPhone",e.lastThreeNumbersPhone)("texts",e.data[e.flowName].texts)}}function Ze(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-otp-aeat-step",24),B.ɵɵlistener("resendOTP",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(3);return B.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.requestOTP(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("solicitud",e.solicitud)("lastThreeNumbersPhone",e.lastThreeNumbersPhone)("texts",e.data[e.flowName].texts)}}function Ke(e,t){if(1&e&&B.ɵɵelement(0,"belender-success-step",25),2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)}}function Qe(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-duplicated-request-step",26),B.ɵɵlistener("newRequest",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.newRequest(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("currentRequest",e.currentRequest)}}function Xe(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-fail-step",27),B.ɵɵlistener("retryRequest",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.retryRequest(t))}))("newRequest",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.newRequest(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("solicitud",e.solicitud)("texts",e.data[e.flowName].texts)}}function Je(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-abandoned-step",28),B.ɵɵlistener("retryRequest",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.retryRequest(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)("solicitud",e.solicitud)}}function et(e,t){if(1&e&&B.ɵɵelement(0,"belender-no-service-step",29),2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("texts",e.data[e.flowName].texts)("data",e.data)}}function tt(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",30)(1,"div",31)(2,"h1",32),B.ɵɵtext(3,"No existe la solicitud"),B.ɵɵelementEnd()(),B.ɵɵelementStart(4,"div",33),B.ɵɵtext(5,"No existen solicitudes activas con el código requerido"),B.ɵɵelementEnd()()),2&e){const e=B.ɵɵnextContext(3);B.ɵɵadvance(4),B.ɵɵstyleProp("color",e.data.styles.colors.text)}}function nt(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵtemplate(1,Be,1,3,"belender-loading-step",9),B.ɵɵtemplate(2,Ue,1,2,"belender-switcher-step",10),B.ɵɵtemplate(3,We,1,6,"belender-form-step",11),B.ɵɵtemplate(4,$e,1,5,"belender-manual-form-step",12),B.ɵɵtemplate(5,Ge,1,4,"belender-otp-ss-step",13),B.ɵɵtemplate(6,Ze,1,4,"belender-otp-aeat-step",13),B.ɵɵtemplate(7,Ke,1,2,"belender-success-step",14),B.ɵɵtemplate(8,Qe,1,2,"belender-duplicated-request-step",15),B.ɵɵtemplate(9,Xe,1,3,"belender-fail-step",16),B.ɵɵtemplate(10,Je,1,3,"belender-abandoned-step",17),B.ɵɵtemplate(11,et,1,2,"belender-no-service-step",18),B.ɵɵtemplate(12,tt,6,2,"div",19),B.ɵɵelementContainerEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵproperty("ngIf","loading"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","initial"==e.getStatus()&&!e.loading),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","form"==e.getStatus()&&!e.loading),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","manual"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","otp_ss"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","otp_aeat"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","success"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","duplicated"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","failed"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","abandoned"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","no-service"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","created"!=e.step)}}function it(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",34),B.ɵɵelement(1,"belender-spinner",35),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵpropertyInterpolate("text",e.loading),B.ɵɵproperty("color",e.data.styles.colors.title)}}function rt(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"div",36)(1,"div",30)(2,"div",37),B.ɵɵtext(3,"Error!"),B.ɵɵelementEnd(),B.ɵɵelement(4,"div",38),B.ɵɵelementEnd(),B.ɵɵelementStart(5,"div",39)(6,"button",40),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(2);return B.ɵɵresetView(t.error=!1)})),B.ɵɵtext(7,"Ingresar manualmente"),B.ɵɵelementEnd()()()}if(2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(4),B.ɵɵstyleProp("color",e.data.styles.colors.text),B.ɵɵproperty("innerHTML",e.error,B.ɵɵsanitizeHtml)}}function st(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",2)(1,"div",3),B.ɵɵtemplate(2,ze,2,1,"div",4),B.ɵɵtemplate(3,nt,13,12,"ng-container",1),B.ɵɵtemplate(4,it,2,2,"div",5),B.ɵɵtemplate(5,rt,8,3,"div",6),B.ɵɵelementEnd()()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵstyleProp("background",e.data.styles.colors.background),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.data.styles.withLogo&&"loading"!=e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.loading&&!e.error),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.loading&&!e.error),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.loading&&e.error)}}function ot(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"div",41),B.ɵɵtext(2),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(2),B.ɵɵtextInterpolate1("TestMode ",e.testMode?"ON":"OFF","")}}let at=class{constructor(e,t,n,i,r,s,o,a){this.cd=e,this.Activatedroute=t,this.utils=n,this.pinService=i,this.customizationService=r,this.notis=s,this.webhooksService=o,this.dialog=a,this.data=null,this.disableActions=!1,this.step="created",this.flowName="",this.loading=null,this.error=!1,this.testMode=!1,this.cntrlIsPressed=!1,this.shiftlIsPressed=!1,this.skipCreationOfRequest=!1,this.autoAcceptTerms=!1,this.lastThreeNumbersPhone=null}ngOnInit(){const e=this;this.loading="Obteniendo información de la solicitud",this.Activatedroute.params.subscribe((e=>{e&&e.idUser?(this.userId=e.idUser,this.setInitialData(this.userId)):this.loading=!1,e&&e.packID&&(this.packId=e.packID),this.utils.setLoading(!1)}),(e=>{this.loading=!1,this.utils.setLoading(!1)})),"pro"!=H.N.env&&(V(document).keydown((function(t){16==t.which&&(this.shiftlIsPressed=!0),17==t.which&&(this.cntrlIsPressed=!0),84==t.which&&this.cntrlIsPressed&&this.shiftlIsPressed&&(e.testMode=!e.testMode,e.cd.markForCheck())})),V(document).keyup((function(e){16==e.which&&(this.shiftlIsPressed=!1),16==e.which&&(this.cntrlIsPressed=!1)})))}ngOnDestroy(){}setInitialData(e){this.customizationService.getCustomization(e).then((e=>{e?(this.data=e,this.financiadorID=e.funder_id||"",this.validateRequestIdInUrl(),this.cd.markForCheck()):this.loading=!1}),(e=>{console.error(e),this.loading=!1}))}validateRequestIdInUrl(){this.Activatedroute.queryParams.subscribe((e=>{e&&e.acceptTerms&&(this.autoAcceptTerms=!0),e&&e.request_id?(this.requestID=e.request_id,this.setFormFromVcCode(e.request_id)):this.loading=!1}),(e=>{this.loading=!1}))}setFormFromVcCode(e){var t=this;return(0,R.Z)((function*(){t.loading="Obteniendo datos de la solicitud...",t.pinService.getSolicitudByCode(e).then((e=>{e&&e.data?(t.solicitud=e.data,t.setSubscriptionOfRequest(),t.loading=!1,t.skipCreationOfRequest=!0,t.autoAcceptTerms&&t.acceptTerms()):t.loading=!1})).catch((e=>{t.loading=!1}))}))()}sendMessageToParent(e){window.top.postMessage(e,"*")}handlePusherNotification(e){this.dataFromFirebase=e,this.dataFromFirebase&&this.dataFromFirebase.person_last_three_phone_number?this.lastThreeNumbersPhone=this.dataFromFirebase.person_last_three_phone_number:"waiting_documents"==this.dataFromFirebase.status_code?this.pinService.sendSecondTask({user_id:this.userId,request_id:this.requestID}).then((e=>{this.loading=!1})).catch((e=>{console.error(e),this.loading=!1})):this.dataFromFirebase&&this.dataFromFirebase.status_code&&("all_documents_downloaded"==this.dataFromFirebase.status_code||"failed_documents_downloaded"==this.dataFromFirebase.status_code||"consent_process_completed"==this.dataFromFirebase.status_code||(this.solicitud.status_code=this.dataFromFirebase.status_code,("invalid_otp_seguridad_social"==this.solicitud.status_code||"invalid_otp_aeat"==this.solicitud.status_code)&&this.showAlert("Error!","Código inválido. Por favor, introduzca el código recibido por SMS")),"terms_and_conditions"!=this.solicitud.status_code&&"saved_otp"!=this.solicitud.status_code&&setTimeout((()=>{this.loading=!1,this.cd.markForCheck()}),500))}setFlow(e){this.solicitud||(this.solicitud={}),this.flowSelected=e,this.solicitud.status_code=e}setSubscriptionOfRequest(){if(this.socket)return;console.error("set subscription!!");let e="wss://notifications.dev.belender.net";"qa"==H.N.env&&(e="wss://notifications.qa.belender.net"),"pro"==H.N.env&&(e="wss://notifications.belender.net"),H.N.notificationsBaseUrl&&(e=H.N.notificationsBaseUrl),this.socket=new WebSocket(`${e}?requests_id=${this.requestID}&user_id=${this.userId}`);var t=this;this.socket.onopen=function(e){console.log("Conexión establecida")},this.socket.onmessage=function(e){let n=JSON.parse(e.data);console.warn(n),t.handlePusherNotification(n)},this.socket.onerror=function(e){console.log("WebSocket Error: "+e),console.error(e),t.setSubscriptionOfRequestOld()},this.socket.onclose=function(e){console.log("Conexión cerrada"),t.setSubscriptionOfRequestOld()}}setSubscriptionOfRequestOld(){!this.financiadorID||!this.userId||!this.requestID||this.subscribed||(this.subscribed=!0,this.webhooksService.bindRequestChanges(this.financiadorID,this.userId,this.requestID),this.webhooksService.subscribeRequestChanges().subscribe((e=>{console.warn("from firebase: ",e),e&&this.handlePusherNotification(e)}),(e=>{this.loading=!1})))}sendNewData(e){this.loading="Enviando información..",this.pinService.fixData(this.requestID,e).then((e=>{e.status&&"error"==e.status?e.message&&(this.showAlert("Error!",e),this.loading=!1):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.initWaitingForResponse("Validando nuevos datos, espere por favor.."),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error)}))}showAlert(e,t){this.loading=!1,this.notis.showAlert(e,t)}gotoTerms(e){e.user_id=this.userId,e.package_id=this.packId,this.loading="Enviando datos..",this.testMode?setTimeout((()=>{this.solicitud=new Y.l,this.solicitud.status_code="waiting_otp_seguridad_social",this.loading=!1}),4e3):this.skipCreationOfRequest?(this.acceptTerms(),this.setSubscriptionOfRequest()):this.pinService.addSolicitud(e).then((t=>{t&&t.status&&"error"==t.status?t.message&&(this.solicitud=e,400==t.code&&"Does not have Pin service"==t.message?(this.solicitud.status_code="no_service",this.loading=!1):400==t.code&&"Incorrect support number"==t.message?(this.showAlert("Error!","Número de soporte inválido!"),this.solicitud.status_code="form"):400==t.code&&"Incorrect date"==t.message?(this.showAlert("Error!","Fecha incorrecta!"),this.solicitud.status_code="form"):(this.solicitud.status_code="form",this.showAlert("Error!",t.message))):t&&t.status&&"success"==t.status?(this.requestID=t.data.request_id,this.solicitud=t.data,this.setSubscriptionOfRequest(),this.sendMessageToParent(t.data),this.acceptTerms()):this.showAlert("Error!","Error desconocido: "+t)})).catch((e=>{console.error("respuesta desde pin service: ",e),e&&e.errorMessage&&this.showAlert("Error!",e.errorMessage)}))}acceptTerms(){let e={user_id:this.userId,request_id:this.requestID,terms_and_conditions:!0};this.initWaitingForResponse("Validando datos, espere por favor.."),this.pinService.acceptTerms(e).then((e=>{e.status&&"error"==e.status?e.message&&"You have a request in progress"==e.message?location.pathname.indexOf("widget-boxed")>-1?location.assign(e.response.widget_url_boxed):location.assign(e.response.widget_url):this.showAlert("Error!",e):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.setSubscriptionOfRequest(),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}requestOTP(e){this.loading="Enviando información..",this.pinService.sendOTP({user_id:this.userId,request_id:this.requestID,code:e.code}).then((e=>{e.status&&"error"==e.status?e.message&&(this.showAlert("Error!",e),this.loading=!1):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.initWaitingForResponse(),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}initWaitingForResponse(e){this.loading=e||"Validando información, espere por favor.."}askToBack(){this.pinService.getSolicitudByCode(this.requestID).then((e=>{e&&e.data?(this.solicitud=e.data,this.loading=!1):this.loading=!1})).catch((e=>{this.loading=!1}))}gotoErrorPhone(){}setRequestStatus(e){this.solicitud.status_code=e}resendOTP(e){let t={request_id:this.requestID,user_id:this.userId};this.loading="Reenviando OTP...",this.setSubscriptionOfRequest(),this.pinService.resendOTP(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}retryRequest(e){let t={request_id:e,user_id:this.userId};this.loading="Reintentando enviar la solicitud...",this.setSubscriptionOfRequest(),this.pinService.retryRequest(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}newRequest(e){this.solicitud.status_code="created"}getStatus(){return!this.solicitud||this.solicitud&&"created"==this.solicitud.status_code?"initial":!this.solicitud||"form"!=this.solicitud.status_code&&"terms_and_conditions"!=this.solicitud.status_code?this.solicitud&&"saved_otp"==this.solicitud.status_code?(this.loading="Estamos procesando su solicitud. Espere un momento por favor","loading"):!this.solicitud||"waiting_otp_seguridad_social"!=this.solicitud.status_code&&"waiting_login_seguridad_social"!=this.solicitud.status_code&&"invalid_otp_seguridad_social"!=this.solicitud.status_code?this.solicitud&&"manual"==this.solicitud.status_code?"manual":!this.solicitud||"waiting_otp_aeat"!=this.solicitud.status_code&&"waiting_login_aeat"!=this.solicitud.status_code&&"invalid_otp_aeat"!=this.solicitud.status_code?this.solicitud&&"no_service"==this.solicitud.status_code?"no-service":!this.solicitud||"all_documents_downloaded"!=this.solicitud.status_code&&"waiting_documents"!=this.solicitud.status_code&&"partial_documents_downloaded"!=this.solicitud.status_code?!this.solicitud||"failed_with_retry"!=this.solicitud.status_code&&"failed_without_retry"!=this.solicitud.status_code&&"failed_documents_downloaded"!=this.solicitud.status_code?!this.solicitud||"abandoned_after_waiting_otp_seguridad_social"!=this.solicitud.status_code&&"abandoned_after_invalid_otp_seguridad_social"!=this.solicitud.status_code&&"abandoned_after_invalid_otp_aeat"!=this.solicitud.status_code&&"abandoned_after_terms_and_conditions"!=this.solicitud.status_code&&"abandoned_after_waiting_otp_aeat"!=this.solicitud.status_code?this.solicitud&&"duplicated"==this.solicitud.status_code?"duplicated":"no-exist":"abandoned":"failed":this.data.config&&this.data.config.infiniteLoopInCompleted?"loading":"success":"otp_aeat":"otp_ss":"form"}sendRetry(){}gotoTermsAndConditions(){this.dialog.open(z.L,{panelClass:"fullscreen-dialog",data:{flow:"clavepin"}})}};at.ɵfac=function(e){return new(e||at)(B.ɵɵdirectiveInject(B.ChangeDetectorRef),B.ɵɵdirectiveInject(A.gz),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(T.v),B.ɵɵdirectiveInject(w.w),B.ɵɵdirectiveInject(M.T),B.ɵɵdirectiveInject(b.t),B.ɵɵdirectiveInject(W.uw))},at.ɵcmp=B.ɵɵdefineComponent({type:at,selectors:[["belender-widget-manual"]],inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud",flowName:"flowName"},features:[B.ɵɵProvidersFeature([{provide:F.o2,useValue:{appearance:"standard"}}])],decls:2,vars:2,consts:[["class","h-full widget-belender ",4,"ngIf"],[4,"ngIf"],[1,"h-full","widget-belender"],[1,"h-full","w-full","flex-auto","p-0","md:p-3"],["class","img-wrapper p-6 flex justify-center items-center",4,"ngIf"],["class","loading-wrapper animated fadeIn",4,"ngIf"],["class","animated fadeInRight",4,"ngIf"],[1,"img-wrapper","p-6","flex","justify-center","items-center"],["alt","",1,"img-card",3,"src"],[3,"status","data","loaderColor",4,"ngIf"],[3,"texts","data","setFlow",4,"ngIf"],[3,"texts","userId","flowName","packId","data","solicitud","goToTerms","nextStep",4,"ngIf"],[3,"texts","userId","packId","data","solicitud","goToTerms","nextStep",4,"ngIf"],[3,"data","solicitud","lastThreeNumbersPhone","texts","resendOTP","errorPhone","nextStep",4,"ngIf"],[3,"data","texts",4,"ngIf"],[3,"data","currentRequest","newRequest",4,"ngIf"],[3,"data","solicitud","texts","retryRequest","newRequest",4,"ngIf"],[3,"data","texts","solicitud","retryRequest",4,"ngIf"],[3,"texts","data",4,"ngIf"],["class","px-6 py-4 flex flex-col",4,"ngIf"],[3,"status","data","loaderColor"],[3,"texts","data","setFlow"],[3,"texts","userId","flowName","packId","data","solicitud","goToTerms","nextStep"],[3,"texts","userId","packId","data","solicitud","goToTerms","nextStep"],[3,"data","solicitud","lastThreeNumbersPhone","texts","resendOTP","errorPhone","nextStep"],[3,"data","texts"],[3,"data","currentRequest","newRequest"],[3,"data","solicitud","texts","retryRequest","newRequest"],[3,"data","texts","solicitud","retryRequest"],[3,"texts","data"],[1,"px-6","py-4","flex","flex-col"],[1,"title","m-0"],[1,"text-red-500"],[1,"subheading-1","pt-4"],[1,"loading-wrapper","animated","fadeIn"],[3,"text","color"],[1,"animated","fadeInRight"],[1,"text-red-500","title","m-0"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"text-blue-500","bg-blue-50","px-8",3,"click"],[1,"test-mode","px-10","py-2","bg-blue-500/10","text-blue-500","border-blue-500","border","rounded-md"]],template:function(e,t){1&e&&(B.ɵɵtemplate(0,st,6,6,"div",0),B.ɵɵtemplate(1,ot,3,1,"ng-container",1)),2&e&&(B.ɵɵproperty("ngIf",t.data),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.testMode))},dependencies:[i.O5,u.lW,$.O,le,xe,Ce,Ie,Te,Oe,De,Le,Ae,Ne,He],styles:[".widget-belender[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{min-height:360px}.card[_ngcontent-%COMP%]{transition:all .2s ease;overflow:hidden;width:500px;max-width:100%;margin:0 auto}.badge-table[_ngcontent-%COMP%]{max-width:140px!important;border-radius:5px!important;-webkit-border-radius:5px!important;-moz-border-radius:5px!important;-ms-border-radius:5px!important;-o-border-radius:5px!important}.btn-refresh[_ngcontent-%COMP%]{transform:translateY(2px)}.request-data-info[_ngcontent-%COMP%]{transition:all .5s ease!important}.img-card[_ngcontent-%COMP%]{max-width:240px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.loading-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center}.mat-flat-button.mat-primary.mat-button-disabled[_ngcontent-%COMP%]{background:red!important}button.mat-flat-button.text-green-500.bg-green-light.mat-button-disabled[_ngcontent-%COMP%]{background:orange!important}.test-mode[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px}"]}),at=(0,j.gn)([(0,q.c)()],at);const lt=[{path:":idUser",component:at},{path:":idUser/:packID",component:at}];let ct=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=B.ɵɵdefineNgModule({type:e}),e.ɵinj=B.ɵɵdefineInjector({imports:[A.Bz.forChild(lt),A.Bz,N.d8]}),e})();var dt=n(969);let ut=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=B.ɵɵdefineNgModule({type:e}),e.ɵinj=B.ɵɵdefineInjector({providers:[T.v,v.o,w.w,b.t,M.T,E.t,{provide:S.Ad,useValue:"es-ES"}],imports:[ct,i.ez,r.G,s.J,o.TU,a.p0,l.JX,c.p9,d.Ps,u.ot,h.Tx,x.c,p.FormsModule,m.AV,p.ReactiveFormsModule,f.LD,g.vV,_.a,y.Cq,C.FA,S.XK,I.T5,k.Fk,P.x,O.Nh,D.n,L.F,dt.O]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[452],{6452:(e,t,n)=>{n.r(t),n.d(t,{ManualModule:()=>lt});var i=n(6895),r=n(6383),s=n(5592),o=n(8739),a=n(7155),l=n(6308),c=n(6709),d=n(7392),u=n(9101),h=n(1561),p=n(4006),m=n(266),f=n(4385),g=n(811),_=n(3798),v=n(9391),y=n(1572),b=n(182),x=n(4144),w=n(7367),C=n(9602),S=n(3238),M=n(5895),I=n(6257),k=n(1948),E=n(4246),T=n(7489),P=n(6981),O=n(3848),D=n(1129),L=n(9476),A=n(9299),N=n(6e3),R=n(5861),j=n(7582),F=n(9549),q=n(9933),Y=n(5762),V=n(8259),H=n(2340),z=n(6830),B=n(4650),U=n(5089),W=n(1888),$=n(5412),G=n(8008),Z=n(4302),K=n(5601),Q=n(3731);function X(e,t){if(1&e&&B.ɵɵelement(0,"div",10),2&e){const e=B.ɵɵnextContext();B.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",e.texts.otpSS.title,B.ɵɵsanitizeHtml)}}function J(e,t){if(1&e&&(B.ɵɵelement(0,"div",11),B.ɵɵpipe(1,"safeHtml")),2&e){const e=B.ɵɵnextContext();B.ɵɵstyleProp("color",e.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(1,3,e.texts.otpSS.description),B.ɵɵsanitizeHtml)}}function ee(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}function te(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate2("¿No has recibido el código en el teléfono acabado en ",e.lastThreeNumbersPhone,"? Solicítalo de nuevo en ",e.secsCount," segundos")}}function ne(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1("¿No has recibido el código en tu teléfono? Solicítalo de nuevo en ",e.secsCount," segundos")}}const ie=function(e,t,n){return{color:e,border:t,background:n}};function re(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"small",12),B.ɵɵtemplate(2,ee,2,1,"span",5),B.ɵɵtemplate(3,te,2,2,"span",5),B.ɵɵtemplate(4,ne,2,1,"span",5),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction3(4,ie,e.data.styles.colors.accentColor,"1px solid "+e.data.styles.colors.accentColor,e.data.styles.colors.accentBgColor)),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.lastThreeNumbersPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&!e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&e.data.config.noRetryInBadPhone)}}function se(e,t){1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1," ¿No has recibido el código en tu teléfono? "),B.ɵɵelementEnd())}function oe(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1(" ¿No has recibido el código en el teléfono acabado en ",e.lastThreeNumbersPhone,"? ")}}function ae(e,t){1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1," ¿No has recibido el código en el teléfono? "),B.ɵɵelementEnd())}const le=function(e,t){return{color:e,background:t}};function ce(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"small",12),B.ɵɵtemplate(2,se,2,0,"span",5),B.ɵɵtemplate(3,oe,2,1,"span",5),B.ɵɵtemplate(4,ae,2,0,"span",5),B.ɵɵelementStart(5,"a",13),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext();return B.ɵɵresetView(t.resendOTP())})),B.ɵɵtext(6,"Reenviar código"),B.ɵɵelementEnd()(),B.ɵɵelementContainerEnd()}if(2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction3(5,ie,e.data.styles.colors.dangerColor,"1px solid "+e.data.styles.colors.dangerColor,e.data.styles.colors.dangerBgColor)),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.lastThreeNumbersPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&!e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction2(9,le,e.data.styles.colors.dangerTextButtonColor,e.data.styles.colors.dangerColor))}}let de=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.solucitudesService=n,this.activeRoute=i,this.next=new B.EventEmitter(null),this.errPhone=new B.EventEmitter(null),this.resendO=new B.EventEmitter(null),this.secsCount=60}ngOnInit(){this.form=this.fb.group({code1:[null,[p.Validators.required,p.Validators.maxLength(6),p.Validators.minLength(3)]]}),this.initSecsInterval(),this.activeRoute.queryParams.subscribe((e=>{e&&e.request_id&&(this.requestID=e.request_id)}),(e=>{console.error(e)}))}initSecsInterval(){this.interv=setInterval((()=>{this.secsCount--,this.secsCount<=0&&this.finishSecsInterval()}),1e3)}finishSecsInterval(){this.interv&&clearInterval(this.interv)}nextStep(){let e={code:this.getCode()};this.next.emit(e)}getCode(){return this.form.get("code1").value}capturePasteEvent(e){return(0,R.Z)((function*(){}))()}errorStep(){this.errPhone.emit(!0)}setInputEvent(e){""!=e.target.value?V(e.target).next().focus():"Backspace"==e.code&&V(e.target).prev().focus()}resendOTP(){this.resendO.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(K.M),B.ɵɵdirectiveInject(A.gz))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-otp-ss-step"]],inputs:{data:"data",texts:"texts",lastThreeNumbersPhone:"lastThreeNumbersPhone",solicitud:"solicitud"},outputs:{next:"nextStep",errPhone:"errorPhone",resendO:"resendOTP"},decls:12,vars:12,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-1","flex","flex-col"],["class","title m-0",3,"color","font-size","innerHTML",4,"ngIf"],["class","subheading-1 pt-4",3,"color","innerHTML",4,"ngIf"],[1,"title","py-2"],[4,"ngIf"],[1,"flex","gap-2","items-center","justify-start"],["formControlName","code1","maxlength","6","minlength","1","type","text",3,"change","keyup"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","next-button","mat-flat-button","","type","button",1,"px-8",3,"disabled","click"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"info-time","w-fit",3,"ngStyle"],[1,"ml-4",3,"ngStyle","click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵtemplate(2,X,1,5,"div",2),B.ɵɵtemplate(3,J,2,5,"div",3),B.ɵɵelementStart(4,"div",4),B.ɵɵtemplate(5,re,5,8,"ng-container",5),B.ɵɵtemplate(6,ce,7,12,"ng-container",5),B.ɵɵelementEnd(),B.ɵɵelementStart(7,"div",6)(8,"input",7),B.ɵɵlistener("change",(function(e){return t.capturePasteEvent(e)}))("keyup",(function(e){return t.setInputEvent(e)})),B.ɵɵelementEnd()()(),B.ɵɵelementStart(9,"div",8)(10,"button",9),B.ɵɵlistener("click",(function(){return t.nextStep()})),B.ɵɵtext(11,"Siguiente"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵproperty("formGroup",t.form),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.texts.otpSS.title&&""!=t.texts.otpSS.title),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.texts.otpSS.description&&""!=t.texts.otpSS.description),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.secsCount&&t.secsCount>0),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!t.secsCount||t.secsCount<=0),B.ɵɵadvance(4),B.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),B.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,i.PC,u.lW,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,Q.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function ue(e,t){if(1&e&&B.ɵɵelement(0,"div",10),2&e){const e=B.ɵɵnextContext();B.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",e.texts.otpAEAT.title,B.ɵɵsanitizeHtml)}}function he(e,t){if(1&e&&(B.ɵɵelement(0,"div",11),B.ɵɵpipe(1,"safeHtml")),2&e){const e=B.ɵɵnextContext();B.ɵɵstyleProp("color",e.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(1,3,e.texts.otpAEAT.description),B.ɵɵsanitizeHtml)}}function pe(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}function me(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate2("¿No has recibido el código en el teléfono acabado en ",e.lastThreeNumbersPhone,"? Solicítalo de nuevo en ",e.secsCount," segundos")}}function fe(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1("¿No has recibido el código en tu teléfono? Solicítalo de nuevo en ",e.secsCount," segundos")}}const ge=function(e,t,n){return{color:e,border:t,background:n}};function _e(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"small",12),B.ɵɵtemplate(2,pe,2,1,"span",5),B.ɵɵtemplate(3,me,2,2,"span",5),B.ɵɵtemplate(4,fe,2,1,"span",5),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction3(4,ge,e.data.styles.colors.accentColor,"1px solid "+e.data.styles.colors.accentColor,e.data.styles.colors.accentBgColor)),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.lastThreeNumbersPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&!e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&e.data.config.noRetryInBadPhone)}}function ve(e,t){1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1," ¿No has recibido el código en tu teléfono? "),B.ɵɵelementEnd())}function ye(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1(" ¿No has recibido el código en el teléfono acabado en ",e.lastThreeNumbersPhone,"? ")}}function be(e,t){1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1," ¿No has recibido el código en el teléfono? "),B.ɵɵelementEnd())}const xe=function(e,t){return{color:e,background:t}};function we(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"small",12),B.ɵɵtemplate(2,ve,2,0,"span",5),B.ɵɵtemplate(3,ye,2,1,"span",5),B.ɵɵtemplate(4,be,2,0,"span",5),B.ɵɵelementStart(5,"a",13),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext();return B.ɵɵresetView(t.resendOTP())})),B.ɵɵtext(6,"Reenviar"),B.ɵɵelementEnd()(),B.ɵɵelementContainerEnd()}if(2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction3(5,ge,e.data.styles.colors.dangerColor,"1px solid "+e.data.styles.colors.dangerColor,e.data.styles.colors.dangerBgColor)),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.lastThreeNumbersPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&!e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction2(9,xe,e.data.styles.colors.dangerTextButtonColor,e.data.styles.colors.dangerColor))}}let Ce=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.solucitudesService=n,this.activeRoute=i,this.next=new B.EventEmitter(null),this.errPhone=new B.EventEmitter(null),this.resendO=new B.EventEmitter(null),this.secsCount=60}ngOnInit(){this.form=this.fb.group({code1:[null,[p.Validators.required,p.Validators.maxLength(6),p.Validators.minLength(3)]]}),this.initSecsInterval(),this.activeRoute.queryParams.subscribe((e=>{e&&e.request_id&&(this.requestID=e.request_id)}),(e=>{console.error(e)}))}initSecsInterval(){this.interv=setInterval((()=>{this.secsCount--,this.secsCount<=0&&this.finishSecsInterval()}),1e3)}finishSecsInterval(){this.interv&&clearInterval(this.interv)}nextStep(){let e={code:this.getCode()};this.next.emit(e)}getCode(){return this.form.get("code1").value}capturePasteEvent(e){return(0,R.Z)((function*(){}))()}errorStep(){this.errPhone.emit(!0)}setInputEvent(e){""!=e.target.value?V(e.target).next().focus():"Backspace"==e.code&&V(e.target).prev().focus()}resendOTP(){this.resendO.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(K.M),B.ɵɵdirectiveInject(A.gz))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-otp-aeat-step"]],inputs:{data:"data",texts:"texts",lastThreeNumbersPhone:"lastThreeNumbersPhone",solicitud:"solicitud"},outputs:{next:"nextStep",errPhone:"errorPhone",resendO:"resendOTP"},decls:12,vars:12,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-1","flex","flex-col"],["class","title m-0",3,"color","font-size","innerHTML",4,"ngIf"],["class","subheading-1 pt-4",3,"color","innerHTML",4,"ngIf"],[1,"title","py-2"],[4,"ngIf"],[1,"flex","gap-2","items-center","justify-start"],["formControlName","code1","maxlength","6","minlength","1","type","text",3,"change","keyup"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","next-button","mat-flat-button","","type","button",1,"px-8",3,"disabled","click"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"info-time","w-fit",3,"ngStyle"],[1,"ml-4",3,"ngStyle","click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵtemplate(2,ue,1,5,"div",2),B.ɵɵtemplate(3,he,2,5,"div",3),B.ɵɵelementStart(4,"div",4),B.ɵɵtemplate(5,_e,5,8,"ng-container",5),B.ɵɵtemplate(6,we,7,12,"ng-container",5),B.ɵɵelementEnd(),B.ɵɵelementStart(7,"div",6)(8,"input",7),B.ɵɵlistener("change",(function(e){return t.capturePasteEvent(e)}))("keyup",(function(e){return t.setInputEvent(e)})),B.ɵɵelementEnd()()(),B.ɵɵelementStart(9,"div",8)(10,"button",9),B.ɵɵlistener("click",(function(){return t.nextStep()})),B.ɵɵtext(11,"Siguiente"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵproperty("formGroup",t.form),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.texts.otpAEAT.title&&""!=t.texts.otpAEAT.title),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.texts.otpAEAT.description&&""!=t.texts.otpAEAT.description),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.secsCount&&t.secsCount>0),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!t.secsCount||t.secsCount<=0),B.ɵɵadvance(4),B.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),B.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,i.PC,u.lW,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,Q.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function Se(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",1),B.ɵɵelement(1,"div",2)(2,"div",3),B.ɵɵpipe(3,"safeHtml"),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",e.texts.success.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",e.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(3,8,e.texts.success.description||""),B.ɵɵsanitizeHtml)}}let Me=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r}ngOnInit(){}save(){}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(K.M),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(M.T))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-success-step"]],inputs:{data:"data",texts:"texts"},decls:1,vars:1,consts:[["class"," pt-4 pb-8 flex flex-col animated fadeIn",4,"ngIf"],[1,"pt-4","pb-8","flex","flex-col","animated","fadeIn"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&B.ɵɵtemplate(0,Se,4,10,"div",0),2&e&&B.ɵɵproperty("ngIf",!t.data.config.infiniteLoopInCompleted)},dependencies:[i.O5,Q.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function Ie(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"div",5)(1,"button",6),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext();return B.ɵɵresetView(t.retry())})),B.ɵɵtext(2,"Intentarlo nuevamente"),B.ɵɵelementEnd()()}if(2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}function ke(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"div",5)(1,"button",6),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext();return B.ɵɵresetView(t.newRequest())})),B.ɵɵtext(2,"Crear Nueva Solicitud"),B.ɵɵelementEnd()()}if(2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}let Ee=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryR=new B.EventEmitter(null),this.newR=new B.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryR.emit(this.solicitud.request_id)}newRequest(){this.newR.emit(this.solicitud.request_id)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(K.M),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(M.T))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-fail-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{retryR:"retryRequest",newR:"newRequest"},decls:7,vars:8,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"text-red-500","title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],["class","flex items-center justify-end gap-2 p-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementEnd(),B.ɵɵtemplate(5,Ie,3,6,"div",4),B.ɵɵtemplate(6,ke,3,6,"div",4),B.ɵɵelementEnd()),2&e&&(B.ɵɵadvance(2),B.ɵɵproperty("innerHTML",t.texts.fail.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,6,t.texts.fail.description),B.ɵɵsanitizeHtml),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.solicitud&&"failed_with_retry"==t.solicitud.status_code),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.solicitud&&"failed_documents_downloaded"==t.solicitud.status_code))},dependencies:[i.O5,u.lW,Q.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();n(6866);var Te=n(9617),Pe=n(1406);function Oe(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"app-file-upload",11),B.ɵɵlistener("change",(function(t){const n=B.ɵɵrestoreView(e).$implicit,i=B.ɵɵnextContext(2);return B.ɵɵresetView(i.setFile(n,t))})),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()}if(2&e){const e=t.$implicit;B.ɵɵadvance(1),B.ɵɵpropertyInterpolate("label",e)}}function De(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",9),B.ɵɵtemplate(1,Oe,2,1,"ng-container",10),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngForOf",e.pack.documents)}}function Le(e,t){1&e&&(B.ɵɵelementStart(0,"div",12),B.ɵɵelement(1,"belender-spinner",13),B.ɵɵelementEnd()),2&e&&(B.ɵɵadvance(1),B.ɵɵproperty("zoom",.6))}let Ae=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.attachmentsService=n,this.packsS=i,this.upload=new B.EventEmitter(null),this.back=new B.EventEmitter(null),this.loadingPack=!1}ngOnInit(){this.form=this.fb.group({}),this.loadingPack=!0,this.packsS.getPackagesByUserID(this.userId).then((e=>{e&&e.data?this.setPack(e.data):this.loadingPack=!1})).catch((e=>{console.error(e),this.loadingPack=!1}))}setPack(e){this.pack=e.find((e=>e.id==this.packId)),console.error("pack: ",this.pack),this.loadingPack=!1,this.setForm()}setForm(){this.pack&&this.pack.documents&&this.pack.documents.forEach((e=>{this.form.addControl(e,new p.FormControl("",p.Validators.required))}))}uploadFiles(e){this.upload.emit(!0),e.preventDefault(),e.stopPropagation(),console.error("Form: ",this.form);const t=new FormData;this.attachmentsService.uploadFile(t).then((e=>{console.warn(e)})).catch((e=>{console.error(e)}))}goBack(){this.back.emit(!0)}setFile(e,t){t.file&&this.form.get(e).setValue(t.file),console.error(t)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(Te.U))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],inputs:{data:"data",flowName:"flowName",solicitud:"solicitud",packId:"packId",userId:"userId",texts:"texts"},outputs:{upload:"uploadFiles",back:"goBack"},decls:12,vars:22,consts:[[1,"flex","flex-col","justify-between","h-full","fixed-content",3,"formGroup"],[1,"flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],["class","py-4",4,"ngIf"],["class","py-10 px-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-2"],["mat-flat-button","","type","button",1,"px-8","bg-slate-100","hover:bg-slate-200","text-slate-900",3,"click"],["mat-flat-button","","type","button",1,"px-8","hover:opacity-90",3,"disabled","click"],[1,"py-4"],[4,"ngFor","ngForOf"],[3,"label","change"],[1,"py-10","px-4"],["text","Cargando documentos",3,"zoom"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementEnd(),B.ɵɵtemplate(5,De,2,1,"div",4),B.ɵɵtemplate(6,Le,2,1,"div",5),B.ɵɵelementStart(7,"div",6)(8,"button",7),B.ɵɵlistener("click",(function(){return t.goBack()})),B.ɵɵtext(9,"Volver"),B.ɵɵelementEnd(),B.ɵɵelementStart(10,"button",8),B.ɵɵlistener("click",(function(e){return t.uploadFiles(e)})),B.ɵɵtext(11,"Subir archivos"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵproperty("formGroup",t.form),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",t.texts.form.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,20,t.texts.form.description||""),B.ɵɵsanitizeHtml),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.pack&&!t.loadingPack),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.loadingPack),B.ɵɵadvance(2),B.ɵɵstyleProp("border-radius",t.data.styles.btnRound+"px"),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.form.invalid?"":t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),B.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.sg,i.O5,u.lW,p.ɵNgNoValidate,p.NgControlStatusGroup,p.FormGroupDirective,G.O,Pe.Y,Q.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.dont-show-data[_ngcontent-%COMP%]{opacity:0!important;padding:0!important;overflow:hidden!important;height:0px!important;margin:0!important}"]}),e})();var Ne=n(5145);let Re=(()=>{class e{constructor(e){this.utils=e,this.status="",this.label="Cargando datos..",this.loaderColor="red"}ngOnInit(){this.data.config&&this.data.config.infiniteLoopInCompleted?this.label="":Ne.Z.forEach((e=>{e.text==this.status&&(this.label=e.label)}))}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(U.F))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-loading-step"]],inputs:{status:"status",loaderColor:"loaderColor",data:"data"},decls:3,vars:2,consts:[[1,"fixed-content","h-full","animated","fadeIn"],[1,"h-full","py-10","flex","flex-col","items-center","min-h-[300px]"],[3,"text","color"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1),B.ɵɵelement(2,"belender-spinner",2),B.ɵɵelementEnd()()),2&e&&(B.ɵɵadvance(2),B.ɵɵproperty("text",t.label)("color",t.loaderColor))},dependencies:[G.O],styles:[".content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),je=(()=>{class e{constructor(){}ngOnInit(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-no-service-step"]],inputs:{data:"data",texts:"texts"},decls:5,vars:10,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementEnd()()),2&e&&(B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",t.texts.noService.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,8,t.texts.noService.description),B.ɵɵsanitizeHtml))},dependencies:[p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm,Q.z]}),e})(),Fe=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryR=new B.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryR.emit(this.solicitud.request_id)}getTextStatus(){switch(this.solicitud.status_code){case"abandoned_after_waiting_otp_seguridad_social":return"Abandonado después de esperar OTP de Seguridad Social";case"abandoned_after_invalid_otp_seguridad_social":return"Abandonado despues de OTP inválido en Seguridad Social";case"abandoned_after_invalid_otp_aeat":return"Abandonado despues de OTP inválido en AEAT";case"abandoned_after_waiting_otp_aeat":return"Abandonado después de esperar OTP de AEAT";default:return this.solicitud.status_code}}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(K.M),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(M.T))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-abandoned-step"]],inputs:{data:"data",solicitud:"solicitud",texts:"texts"},outputs:{retryR:"retryRequest"},decls:10,vars:17,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-md","mb-2","mt-2"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementStart(5,"div",4),B.ɵɵtext(6),B.ɵɵelementEnd()(),B.ɵɵelementStart(7,"div",5)(8,"button",6),B.ɵɵlistener("click",(function(){return t.retry()})),B.ɵɵtext(9,"Intentarlo nuevamente"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",t.texts.abandoned.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,15,t.texts.abandoned.description),B.ɵɵsanitizeHtml),B.ɵɵadvance(3),B.ɵɵtextInterpolate1(" Estado: ",t.getTextStatus()," "),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW,Q.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),qe=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.nr=new B.EventEmitter(null)}ngOnInit(){}newRequest(){this.nr.emit(!0)}gotoRequest(){location.assign(this.currentRequest.widget_url_boxed)}getStatus(){let e=Ne.Z.find((e=>e.text==this.currentRequest.status_code));return e?e.label:"Estado desconocido"}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(K.M),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(M.T))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-duplicated-request-step"]],inputs:{currentRequest:"currentRequest",data:"data",texts:"texts"},outputs:{nr:"newRequest"},decls:15,vars:15,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"flex","gap-2","justify-start","items-center","py-2"],[1,"w-fit","p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-sm"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),B.ɵɵtext(3," Solicitud duplicada! "),B.ɵɵelementEnd(),B.ɵɵelementStart(4,"div",3),B.ɵɵtext(5," Ya existe una solicitud para este cliente. "),B.ɵɵelementEnd(),B.ɵɵelementStart(6,"div",4),B.ɵɵtext(7," Estado de la solicitud actual: "),B.ɵɵelementStart(8,"div",5),B.ɵɵtext(9),B.ɵɵelementEnd()()(),B.ɵɵelementStart(10,"div",6)(11,"button",7),B.ɵɵlistener("click",(function(){return t.newRequest()})),B.ɵɵtext(12,"Nueva solicitud"),B.ɵɵelementEnd(),B.ɵɵelementStart(13,"button",7),B.ɵɵlistener("click",(function(){return t.gotoRequest()})),B.ɵɵtext(14,"Ir a la solicitud actual"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵadvance(5),B.ɵɵtextInterpolate1(" ",t.getStatus()," "),B.ɵɵadvance(2),B.ɵɵstyleProp("border-radius",t.data.styles.btnRound+"px"),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function Ye(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",7),B.ɵɵelement(1,"img",8),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵproperty("src",e.data.styles.logoUrl,B.ɵɵsanitizeUrl)}}function Ve(e,t){if(1&e&&B.ɵɵelement(0,"belender-loading-step",18),2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("status",null==e.solicitud?null:e.solicitud.status_code)("data",e.data)("loaderColor",e.data.styles.colors.title)}}function He(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-form-step",19),B.ɵɵlistener("goToTerms",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(3);return B.ɵɵresetView(t.gotoTermsAndConditions())}))("nextStep",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.gotoTerms(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("texts",e.data[e.flowName].texts)("userId",e.userId)("flowName",e.flowName)("packId",e.packId)("data",e.data)("solicitud",e.solicitud)}}function ze(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-otp-ss-step",20),B.ɵɵlistener("resendOTP",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(3);return B.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.requestOTP(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("solicitud",e.solicitud)("lastThreeNumbersPhone",e.lastThreeNumbersPhone)("texts",e.data[e.flowName].texts)}}function Be(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-otp-aeat-step",20),B.ɵɵlistener("resendOTP",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(3);return B.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.requestOTP(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("solicitud",e.solicitud)("lastThreeNumbersPhone",e.lastThreeNumbersPhone)("texts",e.data[e.flowName].texts)}}function Ue(e,t){if(1&e&&B.ɵɵelement(0,"belender-success-step",21),2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)}}function We(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-duplicated-request-step",22),B.ɵɵlistener("newRequest",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.newRequest(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("currentRequest",e.currentRequest)}}function $e(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-fail-step",23),B.ɵɵlistener("retryRequest",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.retryRequest(t))}))("newRequest",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.newRequest(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("solicitud",e.solicitud)("texts",e.data[e.flowName].texts)}}function Ge(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-abandoned-step",24),B.ɵɵlistener("retryRequest",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.retryRequest(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Ze(e,t){if(1&e&&B.ɵɵelement(0,"belender-no-service-step",25),2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("texts",e.data[e.flowName].texts)("data",e.data)}}function Ke(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",26)(1,"div",27)(2,"h1",28),B.ɵɵtext(3,"No existe la solicitud"),B.ɵɵelementEnd()(),B.ɵɵelementStart(4,"div",29),B.ɵɵtext(5,"No existen solicitudes activas con el código requerido"),B.ɵɵelementEnd()()),2&e){const e=B.ɵɵnextContext(3);B.ɵɵadvance(4),B.ɵɵstyleProp("color",e.data.styles.colors.text)}}function Qe(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵtemplate(1,Ve,1,3,"belender-loading-step",9),B.ɵɵtemplate(2,He,1,6,"belender-form-step",10),B.ɵɵtemplate(3,ze,1,4,"belender-otp-ss-step",11),B.ɵɵtemplate(4,Be,1,4,"belender-otp-aeat-step",11),B.ɵɵtemplate(5,Ue,1,2,"belender-success-step",12),B.ɵɵtemplate(6,We,1,2,"belender-duplicated-request-step",13),B.ɵɵtemplate(7,$e,1,3,"belender-fail-step",14),B.ɵɵtemplate(8,Ge,1,3,"belender-abandoned-step",15),B.ɵɵtemplate(9,Ze,1,2,"belender-no-service-step",16),B.ɵɵtemplate(10,Ke,6,2,"div",17),B.ɵɵelementContainerEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵproperty("ngIf","loading"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","form"==e.getStatus()&&!e.loading),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","otp_ss"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","otp_aeat"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","success"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","duplicated"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","failed"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","abandoned"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","no-service"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","created"!=e.step)}}function Xe(e,t){1&e&&B.ɵɵelement(0,"belender-disabled-url")}function Je(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",30),B.ɵɵelement(1,"belender-spinner",31),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵpropertyInterpolate("text",e.loading),B.ɵɵproperty("color",e.data.styles.colors.title)}}function et(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"div",32)(1,"div",26)(2,"div",33),B.ɵɵtext(3,"Error!"),B.ɵɵelementEnd(),B.ɵɵelement(4,"div",34),B.ɵɵelementEnd(),B.ɵɵelementStart(5,"div",35)(6,"button",36),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(2);return B.ɵɵresetView(t.error=!1)})),B.ɵɵtext(7,"Ingresar manualmente"),B.ɵɵelementEnd()()()}if(2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(4),B.ɵɵstyleProp("color",e.data.styles.colors.text),B.ɵɵproperty("innerHTML",e.error,B.ɵɵsanitizeHtml)}}function tt(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",2)(1,"div",3),B.ɵɵtemplate(2,Ye,2,1,"div",4),B.ɵɵtemplate(3,Qe,11,10,"ng-container",1),B.ɵɵtemplate(4,Xe,1,0,"belender-disabled-url",1),B.ɵɵtemplate(5,Je,2,2,"div",5),B.ɵɵtemplate(6,et,8,3,"div",6),B.ɵɵelementEnd()()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵstyleProp("background",e.data.styles.colors.background),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.data.styles.withLogo&&"loading"!=e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.loading&&!e.error&&!e.disableURL),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.error&&e.disableURL),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.loading&&!e.error),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.loading&&e.error)}}function nt(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"div",37),B.ɵɵtext(2),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(2),B.ɵɵtextInterpolate1("TestMode ",e.testMode?"ON":"OFF","")}}let it=class{constructor(e,t,n,i,r,s,o,a,l){this.cd=e,this.Activatedroute=t,this.utils=n,this.pinService=i,this.customizationService=r,this.docsS=s,this.notis=o,this.webhooksService=a,this.dialog=l,this.data=null,this.disableActions=!1,this.step="created",this.flowName="",this.loading=null,this.error=!1,this.testMode=!1,this.cntrlIsPressed=!1,this.shiftlIsPressed=!1,this.skipCreationOfRequest=!1,this.autoAcceptTerms=!1,this.lastThreeNumbersPhone=null,this.disableURL=!1}ngOnInit(){this.docsS.getAllDocumentsType().then((e=>{console.warn(e)}));const e=this;this.loading="Obteniendo información de la solicitud",this.Activatedroute.params.subscribe((e=>{e&&e.idUser?(this.userId=e.idUser,this.setInitialData(this.userId)):this.loading=!1,e&&e.packID&&(this.packId=e.packID),this.utils.setLoading(!1)}),(e=>{this.loading=!1,this.utils.setLoading(!1)})),"pro"!=H.N.env&&(V(document).keydown((function(t){16==t.which&&(this.shiftlIsPressed=!0),17==t.which&&(this.cntrlIsPressed=!0),84==t.which&&this.cntrlIsPressed&&this.shiftlIsPressed&&(e.testMode=!e.testMode,e.cd.markForCheck())})),V(document).keyup((function(e){16==e.which&&(this.shiftlIsPressed=!1),16==e.which&&(this.cntrlIsPressed=!1)})))}ngOnDestroy(){}setInitialData(e){this.customizationService.getCustomization(e).then((e=>{e?(this.data=e,this.disableURL=e.config.disableUrlWidget,this.financiadorID=e.funder_id||"",this.validateRequestIdInUrl(),this.cd.markForCheck()):this.loading=!1}),(e=>{console.error(e),this.loading=!1}))}validateRequestIdInUrl(){this.Activatedroute.queryParams.subscribe((e=>{e&&e.acceptTerms&&(this.autoAcceptTerms=!0),e&&e.request_id?(this.disableURL=!1,this.requestID=e.request_id,this.setFormFromVcCode(e.request_id)):this.loading=!1}),(e=>{this.loading=!1}))}setFormFromVcCode(e){var t=this;return(0,R.Z)((function*(){t.loading="Obteniendo datos de la solicitud...",t.pinService.getSolicitudByCode(e).then((e=>{e&&e.data?(t.solicitud=e.data,t.setSubscriptionOfRequest(),t.loading=!1,t.skipCreationOfRequest=!0,t.autoAcceptTerms&&t.acceptTerms()):t.loading=!1})).catch((e=>{t.loading=!1}))}))()}sendMessageToParent(e){window.top.postMessage(e,"*")}handlePusherNotification(e){this.dataFromFirebase=e,this.dataFromFirebase&&this.dataFromFirebase.person_last_three_phone_number?this.lastThreeNumbersPhone=this.dataFromFirebase.person_last_three_phone_number:"waiting_documents"==this.dataFromFirebase.status_code?this.pinService.sendSecondTask({user_id:this.userId,request_id:this.requestID}).then((e=>{this.loading=!1})).catch((e=>{console.error(e),this.loading=!1})):this.dataFromFirebase&&this.dataFromFirebase.status_code&&("all_documents_downloaded"==this.dataFromFirebase.status_code||"failed_documents_downloaded"==this.dataFromFirebase.status_code||"consent_process_completed"==this.dataFromFirebase.status_code||(this.solicitud.status_code=this.dataFromFirebase.status_code,("invalid_otp_seguridad_social"==this.solicitud.status_code||"invalid_otp_aeat"==this.solicitud.status_code)&&this.showAlert("Error!","Código inválido. Por favor, introduzca el código recibido por SMS")),"terms_and_conditions"!=this.solicitud.status_code&&"saved_otp"!=this.solicitud.status_code&&setTimeout((()=>{this.loading=!1,this.cd.markForCheck()}),500))}setSubscriptionOfRequest(){if(this.socket)return;console.error("set subscription!!");let e="wss://notifications.dev.belender.net";"qa"==H.N.env&&(e="wss://notifications.qa.belender.net"),"pro"==H.N.env&&(e="wss://notifications.belender.net"),H.N.notificationsBaseUrl&&(e=H.N.notificationsBaseUrl),this.socket=new WebSocket(`${e}?requests_id=${this.requestID}&user_id=${this.userId}`);var t=this;this.socket.onopen=function(e){console.log("Conexión establecida")},this.socket.onmessage=function(e){let n=JSON.parse(e.data);console.warn(n),t.handlePusherNotification(n)},this.socket.onerror=function(e){console.log("WebSocket Error: "+e),console.error(e),t.setSubscriptionOfRequestOld()},this.socket.onclose=function(e){console.log("Conexión cerrada"),t.setSubscriptionOfRequestOld()}}setSubscriptionOfRequestOld(){!this.financiadorID||!this.userId||!this.requestID||this.subscribed||(this.subscribed=!0,this.webhooksService.bindRequestChanges(this.financiadorID,this.userId,this.requestID),this.webhooksService.subscribeRequestChanges().subscribe((e=>{console.warn("from firebase: ",e),e&&this.handlePusherNotification(e)}),(e=>{this.loading=!1})))}sendNewData(e){this.loading="Enviando información..",this.pinService.fixData(this.requestID,e).then((e=>{e.status&&"error"==e.status?e.message&&(this.showAlert("Error!",e),this.loading=!1):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.initWaitingForResponse("Validando nuevos datos, espere por favor.."),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error)}))}showAlert(e,t){this.loading=!1,this.notis.showAlert(e,t)}gotoTerms(e){e.user_id=this.userId,e.package_id=this.packId,this.loading="Enviando datos..",this.testMode?setTimeout((()=>{this.solicitud=new Y.l,this.solicitud.status_code="waiting_otp_seguridad_social",this.loading=!1}),4e3):this.skipCreationOfRequest?(this.acceptTerms(),this.setSubscriptionOfRequest()):this.pinService.addSolicitud(e).then((t=>{t&&t.status&&"error"==t.status?t.message&&(this.solicitud=e,400==t.code&&"Does not have Pin service"==t.message?(this.solicitud.status_code="no_service",this.loading=!1):400==t.code&&"Incorrect support number"==t.message?(this.showAlert("Error!","Número de soporte inválido!"),this.solicitud.status_code="form"):400==t.code&&"Incorrect date"==t.message?(this.showAlert("Error!","Fecha incorrecta!"),this.solicitud.status_code="form"):(this.solicitud.status_code="form",this.showAlert("Error!",t.message))):t&&t.status&&"success"==t.status?(this.requestID=t.data.request_id,this.solicitud=t.data,this.setSubscriptionOfRequest(),this.sendMessageToParent(t.data),this.acceptTerms()):this.showAlert("Error!","Error desconocido: "+t)})).catch((e=>{console.error("respuesta desde pin service: ",e),e&&e.errorMessage&&this.showAlert("Error!",e.errorMessage)}))}acceptTerms(){let e={user_id:this.userId,request_id:this.requestID,terms_and_conditions:!0};this.initWaitingForResponse("Validando datos, espere por favor.."),this.pinService.acceptTerms(e).then((e=>{e.status&&"error"==e.status?e.message&&"You have a request in progress"==e.message?location.pathname.indexOf("widget-boxed")>-1?location.assign(e.response.widget_url_boxed):location.assign(e.response.widget_url):this.showAlert("Error!",e):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.setSubscriptionOfRequest(),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}requestOTP(e){this.loading="Enviando información..",this.pinService.sendOTP({user_id:this.userId,request_id:this.requestID,code:e.code}).then((e=>{e.status&&"error"==e.status?e.message&&(this.showAlert("Error!",e),this.loading=!1):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.initWaitingForResponse(),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}initWaitingForResponse(e){this.loading=e||"Validando información, espere por favor.."}askToBack(){this.pinService.getSolicitudByCode(this.requestID).then((e=>{e&&e.data?(this.solicitud=e.data,this.loading=!1):this.loading=!1})).catch((e=>{this.loading=!1}))}gotoErrorPhone(){}setRequestStatus(e){this.solicitud.status_code=e}resendOTP(e){let t={request_id:this.requestID,user_id:this.userId};this.loading="Reenviando OTP...",this.setSubscriptionOfRequest(),this.pinService.resendOTP(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}retryRequest(e){let t={request_id:e,user_id:this.userId};this.loading="Reintentando enviar la solicitud...",this.setSubscriptionOfRequest(),this.pinService.retryRequest(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}newRequest(e){this.solicitud.status_code="created"}getStatus(){return!this.solicitud||this.solicitud&&("created"==this.solicitud.status_code||"form"==this.solicitud.status_code||"terms_and_conditions"==this.solicitud.status_code)?"form":this.solicitud&&"saved_otp"==this.solicitud.status_code?(this.loading="Estamos procesando su solicitud. Espere un momento por favor","loading"):!this.solicitud||"waiting_otp_seguridad_social"!=this.solicitud.status_code&&"waiting_login_seguridad_social"!=this.solicitud.status_code&&"invalid_otp_seguridad_social"!=this.solicitud.status_code?!this.solicitud||"waiting_otp_aeat"!=this.solicitud.status_code&&"waiting_login_aeat"!=this.solicitud.status_code&&"invalid_otp_aeat"!=this.solicitud.status_code?this.solicitud&&"no_service"==this.solicitud.status_code?"no-service":!this.solicitud||"all_documents_downloaded"!=this.solicitud.status_code&&"waiting_documents"!=this.solicitud.status_code&&"partial_documents_downloaded"!=this.solicitud.status_code?!this.solicitud||"failed_with_retry"!=this.solicitud.status_code&&"failed_without_retry"!=this.solicitud.status_code&&"failed_documents_downloaded"!=this.solicitud.status_code?!this.solicitud||"abandoned_after_waiting_otp_seguridad_social"!=this.solicitud.status_code&&"abandoned_after_invalid_otp_seguridad_social"!=this.solicitud.status_code&&"abandoned_after_invalid_otp_aeat"!=this.solicitud.status_code&&"abandoned_after_terms_and_conditions"!=this.solicitud.status_code&&"abandoned_after_waiting_otp_aeat"!=this.solicitud.status_code?this.solicitud&&"duplicated"==this.solicitud.status_code?"duplicated":"no-exist":"abandoned":"failed":this.data.config&&this.data.config.infiniteLoopInCompleted?"loading":"success":"otp_aeat":"otp_ss"}sendRetry(){}gotoTermsAndConditions(){this.dialog.open(z.L,{panelClass:"fullscreen-dialog",data:{flow:"clavepin"}})}};it.ɵfac=function(e){return new(e||it)(B.ɵɵdirectiveInject(B.ChangeDetectorRef),B.ɵɵdirectiveInject(A.gz),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(T.v),B.ɵɵdirectiveInject(w.w),B.ɵɵdirectiveInject(W.S),B.ɵɵdirectiveInject(M.T),B.ɵɵdirectiveInject(b.t),B.ɵɵdirectiveInject($.uw))},it.ɵcmp=B.ɵɵdefineComponent({type:it,selectors:[["belender-widget-manual"]],inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud",flowName:"flowName"},features:[B.ɵɵProvidersFeature([{provide:F.o2,useValue:{appearance:"standard"}}])],decls:2,vars:2,consts:[["class","h-full widget-belender ",4,"ngIf"],[4,"ngIf"],[1,"h-full","widget-belender"],[1,"h-full","w-full","flex-auto","p-0","md:p-3"],["class","img-wrapper p-6 flex justify-center items-center",4,"ngIf"],["class","loading-wrapper animated fadeIn",4,"ngIf"],["class","animated fadeInRight",4,"ngIf"],[1,"img-wrapper","p-6","flex","justify-center","items-center"],["alt","",1,"img-card",3,"src"],[3,"status","data","loaderColor",4,"ngIf"],[3,"texts","userId","flowName","packId","data","solicitud","goToTerms","nextStep",4,"ngIf"],[3,"data","solicitud","lastThreeNumbersPhone","texts","resendOTP","errorPhone","nextStep",4,"ngIf"],[3,"data","texts",4,"ngIf"],[3,"data","currentRequest","newRequest",4,"ngIf"],[3,"data","solicitud","texts","retryRequest","newRequest",4,"ngIf"],[3,"data","texts","solicitud","retryRequest",4,"ngIf"],[3,"texts","data",4,"ngIf"],["class","px-6 py-4 flex flex-col",4,"ngIf"],[3,"status","data","loaderColor"],[3,"texts","userId","flowName","packId","data","solicitud","goToTerms","nextStep"],[3,"data","solicitud","lastThreeNumbersPhone","texts","resendOTP","errorPhone","nextStep"],[3,"data","texts"],[3,"data","currentRequest","newRequest"],[3,"data","solicitud","texts","retryRequest","newRequest"],[3,"data","texts","solicitud","retryRequest"],[3,"texts","data"],[1,"px-6","py-4","flex","flex-col"],[1,"title","m-0"],[1,"text-red-500"],[1,"subheading-1","pt-4"],[1,"loading-wrapper","animated","fadeIn"],[3,"text","color"],[1,"animated","fadeInRight"],[1,"text-red-500","title","m-0"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"text-blue-500","bg-blue-50","px-8",3,"click"],[1,"test-mode","px-10","py-2","bg-blue-500/10","text-blue-500","border-blue-500","border","rounded-md"]],template:function(e,t){1&e&&(B.ɵɵtemplate(0,tt,7,7,"div",0),B.ɵɵtemplate(1,nt,3,1,"ng-container",1)),2&e&&(B.ɵɵproperty("ngIf",t.data),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.testMode))},dependencies:[i.O5,u.lW,G.O,Z.q,de,Ce,Me,Ee,Ae,Re,je,Fe,qe],styles:[".widget-belender[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{min-height:360px}.card[_ngcontent-%COMP%]{transition:all .2s ease;overflow:hidden;width:500px;max-width:100%;margin:0 auto}.badge-table[_ngcontent-%COMP%]{max-width:140px!important;border-radius:5px!important;-webkit-border-radius:5px!important;-moz-border-radius:5px!important;-ms-border-radius:5px!important;-o-border-radius:5px!important}.btn-refresh[_ngcontent-%COMP%]{transform:translateY(2px)}.request-data-info[_ngcontent-%COMP%]{transition:all .5s ease!important}.img-card[_ngcontent-%COMP%]{max-width:240px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.loading-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center}.mat-flat-button.mat-primary.mat-button-disabled[_ngcontent-%COMP%]{background:red!important}button.mat-flat-button.text-green-500.bg-green-light.mat-button-disabled[_ngcontent-%COMP%]{background:orange!important}.test-mode[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px}"]}),it=(0,j.gn)([(0,q.c)()],it);const rt=[{path:":idUser",component:it},{path:":idUser/:packID",component:it}];let st=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=B.ɵɵdefineNgModule({type:e}),e.ɵinj=B.ɵɵdefineInjector({imports:[A.Bz.forChild(rt),A.Bz,N.d8]}),e})();var ot=n(969),at=n(3300);let lt=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=B.ɵɵdefineNgModule({type:e}),e.ɵinj=B.ɵɵdefineInjector({providers:[T.v,v.o,w.w,b.t,M.T,E.t,{provide:S.Ad,useValue:"es-ES"}],imports:[st,i.ez,r.G,s.J,o.TU,a.p0,l.JX,c.p9,d.Ps,u.ot,h.Tx,x.c,p.FormsModule,m.AV,p.ReactiveFormsModule,f.LD,g.vV,_.a,y.Cq,C.FA,S.XK,I.T5,k.Fk,P.x,O.Nh,D.n,L.F,ot.O,at.C]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[508],{5508:(e,t,n)=>{n.r(t),n.d(t,{ChaveMovelModule:()=>ut});var i=n(6895),r=n(6383),s=n(5592),o=n(4006),a=n(3798),l=n(9391),c=n(182),d=n(7367),u=n(3238),h=n(5895),p=n(4246),m=n(9299),f=n(6e3),g=n(5861),_=n(7582),v=n(9549),y=n(9933),b=n(5762),x=n(8259),w=n(2340),C=n(667),S=n(3842);const M={created:"form",form:"form",terms_and_conditions:"form",waiting_otp_ssd:"otp_ssd",waiting_login_ssd:"otp_ssd",invalid_otp_ssd:"otp_ssd",waiting_otp_irs:"otp_irs",waiting_login_irs:"otp_irs",invalid_otp_irs:"otp_irs",abandoned_after_bad_phone:"abandoned",abandoned_after_terms_and_conditions:"abandoned",abandoned_after_invalid_otp_ssd:"abandoned",abandoned_after_waiting_otp_ssd:"abandoned",abandoned_after_invalid_otp_irs:"abandoned",abandoned_after_waiting_otp_irs:"abandoned",all_documents_downloaded:"success",partial_documents_downloaded:"success",consent_process_completed:"success",partial_documents_downloaded_and_deleted:"success",all_documents_downloaded_and_deleted:"success",failed_with_retry:"failed",failed_without_retry:"failed",failed_documents_downloaded:"failed",consent_process_canceled:"failed",no_service:"no-service",no_chave_movel_service:"no-service",stand_by:"standby","no-phone":"no-phone","no-more-phone":"no-phone",bad_phone:"bad-phone",error_expiration_date:"error-expiration-date",error_birth_date:"error-birth-date",error_support_number:"error-support-number",duplicated:"duplicated"};var I=n(6830),k=n(4650),E=n(5089),T=n(529),P=n(6554);let O=(()=>{class e{constructor(e,t,n){this.utils=e,this.http=t,this.localFetch=n}getSolicitudes(){return this.localFetch.getFetch(w.N.baseUrl+"/requests")}getSolicitudByCode(e){return this.localFetch.freeGetFetch(w.N.baseUrl+"/requests/"+e)}noMatchPhone(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/chave-movel/cancel",e).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}addSolicitud(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/chave-movel",e).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}checkService(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/chave-movel/check-service",e).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}setNoService(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/chave-movel/no-service",e).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}acceptTerms(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/chave-movel/terms",e).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}getNewIdOfRequest(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/"+e+"/get-new-id",{}).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}retryRequest(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/chave-movel/retry",e).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}resendOTP(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/chave-movel/resend-otp",e).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}fixData(e,t){return new Promise(((n,i)=>{this.localFetch.putFetchWhitoutToken(`${w.N.baseUrl}/requests/${e}/person`,t).then((e=>{e?n(e):i(e)})).catch((e=>{i(e)}))}))}sendOTP(e,t){let n="/requests/chave-movel/otp";return t&&(n="/mockscrapper/requests/chave-movel/otp"),new Promise(((t,i)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+n,e).then((e=>{e?t(e):i(e)})).catch((e=>{i(e)}))}))}sendSecondTask(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/chave-movel/secondTask",e).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}sendLinkBySms(e,t){return new Promise(((n,i)=>{this.localFetch.postFetch(`${w.N.baseUrl}/requests/${e}/send-link-sms`,t).then((e=>{e?n(e):i(e)})).catch((e=>{i(e)}))}))}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵinject(E.F),k.ɵɵinject(T.eN),k.ɵɵinject(P.r))},e.ɵprov=k.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var D=n(5206),L=n(8460),A=n(9045),N=n(5412),R=n(4302),j=n(3046),F=n(9112),q=n(9382),Y=n(7392),V=n(9101),H=n(1572),z=n(5601),B=n(9617),U=n(342),W=n(3731);function $(e,t){if(1&e&&k.ɵɵelement(0,"widget-documents",6),2&e){const e=k.ɵɵnextContext(2);k.ɵɵproperty("userId",e.userId)("packId",e.packId)("requestID",e.requestID)}}function G(e,t){if(1&e&&(k.ɵɵelementStart(0,"div",2),k.ɵɵelement(1,"div",3)(2,"div",4),k.ɵɵpipe(3,"safeHtml"),k.ɵɵtemplate(4,$,1,3,"widget-documents",5),k.ɵɵelementEnd()),2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(1),k.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),k.ɵɵproperty("innerHTML",e.texts.success.title,k.ɵɵsanitizeHtml),k.ɵɵadvance(1),k.ɵɵstyleProp("color",e.data.styles.colors.text),k.ɵɵproperty("innerHTML",k.ɵɵpipeBind1(3,9,e.texts.success.description||""),k.ɵɵsanitizeHtml),k.ɵɵadvance(2),k.ɵɵproperty("ngIf",e.showDocuments)}}function Z(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"div",7)(1,"button",8),k.ɵɵlistener("click",(function(){k.ɵɵrestoreView(e);const t=k.ɵɵnextContext();return k.ɵɵresetView(t.gotoRedirect())})),k.ɵɵtext(2),k.ɵɵelementEnd()()}if(2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(1),k.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px"),k.ɵɵadvance(1),k.ɵɵtextInterpolate1(" ",e.data[e.flowName].btnTextCallBack||"Haga click aquí para finalizar"," ")}}let K=(()=>{class e{constructor(e,t,n,i,r){this.formBuilder=e,this.utils=t,this.solicitudesService=n,this.packsS=i,this.cd=r,this.showDocuments=!1}ngOnInit(){this.uploadForm=this.formBuilder.group({file:[""]}),this.data[this.flowName]&&this.data[this.flowName].enableUrlCallBack&&this.data[this.flowName].automaticRedirectCallBack&&this.data[this.flowName].callBackUrl?setTimeout((()=>{location.assign(this.data[this.flowName].callBackUrl)}),2e3):this.data[this.flowName].showDocumentsOnSuccess&&(this.showDocuments=!0)}save(){}gotoRedirect(){this.data[this.flowName].enableUrlCallBack&&this.data[this.flowName].callBackUrl&&location.assign(this.data[this.flowName].callBackUrl)}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵdirectiveInject(o.FormBuilder),k.ɵɵdirectiveInject(E.F),k.ɵɵdirectiveInject(z.M),k.ɵɵdirectiveInject(B.U),k.ɵɵdirectiveInject(k.ChangeDetectorRef))},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-success-step"]],inputs:{data:"data",texts:"texts",packId:"packId",requestID:"requestID",userId:"userId",flowName:"flowName"},decls:2,vars:2,consts:[["class"," pt-4 pb-8 flex flex-col animated fadeIn",4,"ngIf"],["class","flex items-center justify-end gap-2 p-4",4,"ngIf"],[1,"pt-4","pb-8","flex","flex-col","animated","fadeIn"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[3,"userId","packId","requestID",4,"ngIf"],[3,"userId","packId","requestID"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","next-button","mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(k.ɵɵtemplate(0,G,5,11,"div",0),k.ɵɵtemplate(1,Z,3,7,"div",1)),2&e&&(k.ɵɵproperty("ngIf",!t.data.config.infiniteLoopInCompleted),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",t.data[t.flowName].enableUrlCallBack&&!t.data[t.flowName].automaticRedirectCallBack))},dependencies:[i.O5,U.A,V.lW,W.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function Q(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"div",5)(1,"button",6),k.ɵɵlistener("click",(function(){k.ɵɵrestoreView(e);const t=k.ɵɵnextContext();return k.ɵɵresetView(t.retry())})),k.ɵɵtext(2,"Intentarlo nuevamente"),k.ɵɵelementEnd()()}if(2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(1),k.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}function X(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"div",5)(1,"button",7),k.ɵɵlistener("click",(function(){k.ɵɵrestoreView(e);const t=k.ɵɵnextContext();return k.ɵɵresetView(t.newRequest())})),k.ɵɵtext(2,"Crear Nueva Solicitud"),k.ɵɵelementEnd()()}if(2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(1),k.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}let J=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryR=new k.EventEmitter(null),this.newR=new k.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryR.emit(this.solicitud.request_id)}newRequest(){this.newR.emit(this.solicitud.request_id)}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵdirectiveInject(o.UntypedFormBuilder),k.ɵɵdirectiveInject(E.F),k.ɵɵdirectiveInject(z.M),k.ɵɵdirectiveInject(l.o),k.ɵɵdirectiveInject(h.T))},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-fail-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{retryR:"retryRequest",newR:"newRequest"},decls:7,vars:8,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"text-red-500","title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],["class","flex items-center justify-end gap-2 p-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"div",0)(1,"div",1),k.ɵɵelement(2,"div",2)(3,"div",3),k.ɵɵpipe(4,"safeHtml"),k.ɵɵelementEnd(),k.ɵɵtemplate(5,Q,3,6,"div",4),k.ɵɵtemplate(6,X,3,6,"div",4),k.ɵɵelementEnd()),2&e&&(k.ɵɵadvance(2),k.ɵɵproperty("innerHTML",t.texts.fail.title,k.ɵɵsanitizeHtml),k.ɵɵadvance(1),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵproperty("innerHTML",k.ɵɵpipeBind1(4,6,t.texts.fail.description),k.ɵɵsanitizeHtml),k.ɵɵadvance(2),k.ɵɵproperty("ngIf",t.solicitud&&"failed_with_retry"==t.solicitud.status_code),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",t.solicitud&&"failed_documents_downloaded"==t.solicitud.status_code))},dependencies:[i.O5,V.lW,W.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();var ee=n(3755),te=n(3746),ne=n(1763),ie=n(5696),re=n(4144);const se=["termsCheckbox"],oe=["assignmentCheckbox"];function ae(e,t){1&e&&(k.ɵɵelementStart(0,"mat-error"),k.ɵɵtext(1," Deve introduzir uma Cartão de Cidadão ou NIF válido! "),k.ɵɵelementEnd())}function le(e,t){1&e&&(k.ɵɵelementStart(0,"mat-error"),k.ɵɵtext(1," Deve introduzir um número de telefone válido de 9 dígitos! "),k.ɵɵelementEnd())}function ce(e,t){1&e&&(k.ɵɵelementStart(0,"mat-error"),k.ɵɵtext(1," O número de telefone é obrigatório! "),k.ɵɵelementEnd())}function de(e,t){1&e&&(k.ɵɵelementStart(0,"mat-error"),k.ɵɵtext(1," Deve introduzir uma Palavra Passe válida! "),k.ɵɵelementEnd())}function ue(e,t){if(1&e&&(k.ɵɵelementStart(0,"div",18)(1,"mat-form-field",6)(2,"mat-label"),k.ɵɵtext(3,"Email"),k.ɵɵelementEnd(),k.ɵɵelement(4,"input",19),k.ɵɵelementEnd()()),2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(1),k.ɵɵclassMapInterpolate1("",e.disabledInputs.email?"disabled-input":""," w-full flex-1 belender-form-field"),k.ɵɵadvance(3),k.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.email?-1:1)}}function he(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"div",20)(1,"belender-checkbox",21,22),k.ɵɵlistener("changeCheckbox",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext();return k.ɵɵresetView(n.setTerms(t))})),k.ɵɵelementStart(3,"belender-terms-and-policy-links",23),k.ɵɵlistener("goToTerms",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext();return k.ɵɵresetView(n.gotoTermsAndConditions(t))})),k.ɵɵelementEnd()()()}if(2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(1),k.ɵɵproperty("color",e.data.styles.colors.title),k.ɵɵadvance(2),k.ɵɵproperty("userId",e.userId)("showPolicyLink",null==e.data?null:e.data.config.showPolicyLink)("firstSentence",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.firstSentence)("secondSentence",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.secondSentence)("thirdSentence",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.thirdSentence)("policyActionText",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.policyActionText)("termsActionText",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.termsActionText)("customTerms",e.data[e.flowName].customTerms)}}function pe(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"div",20)(1,"belender-checkbox",24,25),k.ɵɵlistener("changeCheckbox",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext();return k.ɵɵresetView(n.setAssignment(t))})),k.ɵɵelement(3,"div",26),k.ɵɵelementEnd()()}if(2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(1),k.ɵɵproperty("color",e.data.styles.colors.title),k.ɵɵadvance(2),k.ɵɵproperty("innerHTML",null==e.data?null:e.data.config.dataAssignmentText,k.ɵɵsanitizeHtml)}}function me(e,t){1&e&&(k.ɵɵelementStart(0,"div",27),k.ɵɵelement(1,"mat-icon",28),k.ɵɵtext(2," Deve ler os termos e condições para continuar. "),k.ɵɵelementEnd())}const fe=function(e){return{"dont-show-data":e}},ge={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let _e=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.cd=n,this.widgetUtils=i,this.dialog=r,this.next=new k.EventEmitter(null),this.esDNI=new k.EventEmitter(null),this.goTerms=new k.EventEmitter(null),this.acceptTerms=!1,this.step=0,this.assignment=!1,this.termsReaded=!1,this.disabledInputs={dni:!1,email:!1,phone:!1},this.noValidate=!1,this.datemask=[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],this.isDni=!1,this.isNie=!1,this.errorDNI=null}ngOnInit(){this.solicitud?(this.setBaseForm(this.solicitud),this.noValidate="terms_and_conditions"==this.solicitud.status_code):this.setBaseForm(null)}sendPestana(){window.parent.open("www.google.com","_blank")}regexDNI(){return e=>{const t=e.value;return t?(this.setRegex(t),this.isDni||this.isNie?null:{regexDNI:!0}):null}}setRegex(e){if(!e)return;let t=this.widgetUtils.ValidateIDType(e);t&&t.type?("dni"===t.type?(this.isDni=!0,this.errorDNI=t.valid?null:"Debes ingresar un Cartão de Cidadão válido!",this.disableEnableInputs()):this.isDni=!1,"nie"===t.type?(this.isNie=!0,this.errorDNI=t.valid?null:"Debes ingresar un NIE válido!",this.disableEnableInputs()):this.isNie=!1):(this.isDni=!1,this.isNie=!1,this.errorDNI="Debes ingresar un Cartão de Cidadão o NIE válido!"),this.cd.markForCheck()}setBaseForm(e){let t=e?e.person_email||e.email||e.email_copy:null,n=e?e.person_phone||e.phone:null,i=e?e.person_document_number||e.dni||e.document_number:null;i&&this.setRegex(i),this.form=this.fb.group(this.isDni?this.data.config.followMail?{dni:[i,this.noValidate?[]:[o.Validators.required,o.Validators.maxLength(9)]],email:[t,o.Validators.required],document_type:["dni"],person_phone:[n,[o.Validators.required,o.Validators.minLength(9),o.Validators.maxLength(9)]],palavra_passe:[null,o.Validators.required]}:{dni:[i,this.noValidate?[]:[o.Validators.required,o.Validators.maxLength(9)]],document_type:["dni"],person_phone:[n,o.Validators.required],palavra_passe:[null,o.Validators.required]}:this.data.config.followMail?{dni:[i,[o.Validators.required,o.Validators.maxLength(9)]],document_type:["nie"],palavra_passe:[null,o.Validators.required],email:[t,o.Validators.required],person_phone:[n,o.Validators.required]}:{dni:[i,[o.Validators.required,o.Validators.maxLength(9)]],person_phone:[n,o.Validators.required],document_type:["nie"],palavra_passe:[null,o.Validators.required]}),this.requestIDFromURL&&this.disableEnableInputs(i,t,n)}disableEnableInputs(e,t,n){this.disabledInputs={dni:!!e,email:!!t,phone:n||!1}}setTermsCheck(e){this.checkComponent.checked=e,this.acceptTerms=e}nextStep(){let e={phone:this.form.get("person_phone").value,check_legal:!0,palavra_passe:this.form.get("palavra_passe").value,document_number:this.form.get("dni").value.toUpperCase()};this.data&&this.data.config&&this.data.config.followMail&&(e.email_copy=this.form.get("email")?this.form.get("email").value:""),this.esDNI.emit(this.isDni),this.next.emit(e)}gotoTermsAndConditions(e){e.preventDefault(),e.stopPropagation(),this.termsReaded=!0,this.goTerms.emit(!0)}gotoSupportAclaration(e){e.preventDefault(),e.stopPropagation(),this.dialog.open(ee.$,{panelClass:"fullscreen-dialog"})}gotoExpirationDate(e){e.preventDefault(),e.stopPropagation(),this.dialog.open(te.R,{panelClass:"fullscreen-dialog"})}setTerms(e){this.acceptTerms=e}setAssignment(e){this.assignment=e}getFormsValid(){let e=!this.form.invalid;return this.data.config.dontShowDataInTerms&&this.solicitud&&this.solicitud.status_code&&"terms_and_conditions"===this.solicitud.status_code&&(e=!0),this.form.get("dni").value||(e=!1),e}getIfValid(){return this.data.config.dontShowDataInTerms&&this.solicitud&&this.solicitud.status_code&&"terms_and_conditions"===this.solicitud.status_code&&(this.acceptTerms=!0),!!this.data.config.hideCheckLegal||this.acceptTerms}getAssignmentValidation(){return!(this.data.config.forceChecks&&!this.termsReaded)&&(!this.data.config.dataAssignmentCheck||this.assignment)}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵdirectiveInject(o.UntypedFormBuilder),k.ɵɵdirectiveInject(E.F),k.ɵɵdirectiveInject(k.ChangeDetectorRef),k.ɵɵdirectiveInject(p.t),k.ɵɵdirectiveInject(N.uw))},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],viewQuery:function(e,t){if(1&e&&(k.ɵɵviewQuery(se,5),k.ɵɵviewQuery(oe,5)),2&e){let e;k.ɵɵqueryRefresh(e=k.ɵɵloadQuery())&&(t.checkComponent=e.first),k.ɵɵqueryRefresh(e=k.ɵɵloadQuery())&&(t.assignmentCheckComponent=e.first)}},inputs:{userId:"userId",flowName:"flowName",data:"data",texts:"texts",solicitud:"solicitud",requestIDFromURL:"requestIDFromURL"},outputs:{next:"nextStep",esDNI:"isDni",goTerms:"goToTerms"},features:[k.ɵɵProvidersFeature([{provide:u.sG,useValue:ge},{provide:k.LOCALE_ID,useValue:"es-ES"}])],decls:31,vars:37,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4","custom-html",3,"innerHTML"],[3,"ngClass"],[1,"mb-3","pt-3","flex","flex-col","md:flex-row","flex-wrap","gap-2","md:justify-between"],["appearance","outline"],["id","dniInput","formControlName","dni","maxlength","9","matInput","",3,"tabindex"],[4,"ngIf"],["id","phoneInput","formControlName","person_phone","maxlength","9","minlength","9","matInput","",3,"tabindex"],[1,"w-full","flex","items-center","flex-wrap","gap-2"],["appearance","outline",1,"w-full","flex-1","belender-form-field"],["id","palavra_passe","tabindex","1","required","","type","password","formControlName","palavra_passe","matInput",""],["class","w-full",4,"ngIf"],["class","mt-6 flex justify-start items-center w-full flex-100",4,"ngIf"],["class","px-2 flex items-center gap-2 py-2 rounded-sm mt-3 bg-orange-500/10 text-orange-500",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","sendBtn","mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"],[1,"w-full"],["id","emailInput","formControlName","email","required","","type","email","placeholder","Introduza o seu e-mail","matInput","",3,"tabindex"],[1,"mt-6","flex","justify-start","items-center","w-full","flex-100"],["id","termsCheckbox",3,"color","changeCheckbox"],["termsCheckbox",""],[3,"userId","showPolicyLink","firstSentence","secondSentence","thirdSentence","policyActionText","termsActionText","customTerms","goToTerms"],[3,"color","changeCheckbox"],["assignmentCheckbox",""],[1,"custom-html",3,"innerHTML"],[1,"px-2","flex","items-center","gap-2","py-2","rounded-sm","mt-3","bg-orange-500/10","text-orange-500"],["svgIcon","mat:warning",1,"text-xs","w-4","h-4"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"form",0)(1,"div",1),k.ɵɵelement(2,"div",2)(3,"div",3),k.ɵɵpipe(4,"safeHtml"),k.ɵɵelementEnd(),k.ɵɵelementStart(5,"div",4)(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),k.ɵɵtext(9,"Cartão de Cidadão ou NIF"),k.ɵɵelementEnd(),k.ɵɵelement(10,"input",7),k.ɵɵtemplate(11,ae,2,0,"mat-error",8),k.ɵɵelementEnd(),k.ɵɵelementStart(12,"mat-form-field",6)(13,"mat-label"),k.ɵɵtext(14,"Telefone (sem prefixo)"),k.ɵɵelementEnd(),k.ɵɵelement(15,"input",9),k.ɵɵtemplate(16,le,2,0,"mat-error",8),k.ɵɵtemplate(17,ce,2,0,"mat-error",8),k.ɵɵelementEnd(),k.ɵɵelementStart(18,"div",10)(19,"mat-form-field",11)(20,"mat-label"),k.ɵɵtext(21,"Palavra Passe"),k.ɵɵelementEnd(),k.ɵɵelement(22,"input",12),k.ɵɵtemplate(23,de,2,0,"mat-error",8),k.ɵɵelementEnd()(),k.ɵɵtemplate(24,ue,5,4,"div",13),k.ɵɵelementEnd()(),k.ɵɵtemplate(25,he,4,9,"div",14),k.ɵɵtemplate(26,pe,4,2,"div",14),k.ɵɵtemplate(27,me,3,0,"div",15),k.ɵɵelementStart(28,"div",16)(29,"button",17),k.ɵɵlistener("click",(function(){return t.nextStep()})),k.ɵɵtext(30," Continuar "),k.ɵɵelementEnd()()()),2&e&&(k.ɵɵproperty("formGroup",t.form),k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),k.ɵɵproperty("innerHTML",t.texts.form.title,k.ɵɵsanitizeHtml),k.ɵɵadvance(1),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵproperty("innerHTML",k.ɵɵpipeBind1(4,33,t.texts.form.description||""),k.ɵɵsanitizeHtml),k.ɵɵadvance(2),k.ɵɵproperty("ngClass",k.ɵɵpureFunction1(35,fe,t.data.config.dontShowDataInTerms&&t.solicitud&&t.solicitud.status_code&&"terms_and_conditions"===t.solicitud.status_code)),k.ɵɵadvance(2),k.ɵɵclassMapInterpolate1("",t.disabledInputs.dni?"disabled-input":""," w-full flex-1 belender-form-field"),k.ɵɵadvance(3),k.ɵɵpropertyInterpolate("tabindex",t.disabledInputs.dni?-1:1),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",!t.isNie&&!t.isDni),k.ɵɵadvance(1),k.ɵɵclassMapInterpolate1("",t.disabledInputs.phone?"disabled-input":""," w-full flex-1 belender-form-field"),k.ɵɵadvance(3),k.ɵɵpropertyInterpolate("tabindex",t.disabledInputs.phone?-1:1),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",t.form.get("person_phone").hasError("minlength")||t.form.get("person_phone").hasError("maxlength")),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",t.form.get("person_phone").hasError("required")),k.ɵɵadvance(6),k.ɵɵproperty("ngIf",t.form.get("palavra_passe").hasError("required")),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",null==t.data||null==t.data.config?null:t.data.config.followMail),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",!t.data.config.hideCheckLegal),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",null==t.data?null:t.data.config.dataAssignmentCheck),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",t.data.config.forceChecks&&!t.termsReaded),k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.getFormsValid()&&t.getIfValid()&&t.getAssignmentValidation()?t.data.styles.colors.btnText:"")("background",t.getFormsValid()&&t.getIfValid()&&t.getAssignmentValidation()?t.data.styles.colors.btnBg:"")("border-radius",t.data.styles.btnRound+"px"),k.ɵɵproperty("disabled",!t.getFormsValid()||!t.getIfValid()||!t.getAssignmentValidation()))},dependencies:[i.mk,i.O5,o.ɵNgNoValidate,o.DefaultValueAccessor,o.NgControlStatus,o.NgControlStatusGroup,o.RequiredValidator,o.MinLengthValidator,o.MaxLengthValidator,o.FormGroupDirective,o.FormControlName,ne.b,ie.T,Y.Hw,V.lW,v.TO,v.KE,v.hX,re.Nt,W.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.dont-show-data[_ngcontent-%COMP%]{opacity:0!important;padding:0!important;overflow:hidden!important;height:0px!important;margin:0!important}.hiden-input[_ngcontent-%COMP%]{height:0!important;max-height:0px!important;overflow:hidden!important;opacity:0!important}"]}),e})(),ve=(()=>{class e{constructor(){}ngOnInit(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-no-service-step"]],inputs:{data:"data",texts:"texts"},decls:5,vars:10,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"form",0)(1,"div",1),k.ɵɵelement(2,"div",2)(3,"div",3),k.ɵɵpipe(4,"safeHtml"),k.ɵɵelementEnd()()),2&e&&(k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),k.ɵɵproperty("innerHTML",t.texts.noService.title,k.ɵɵsanitizeHtml),k.ɵɵadvance(1),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵproperty("innerHTML",k.ɵɵpipeBind1(4,8,t.texts.noService.description),k.ɵɵsanitizeHtml))},dependencies:[o.ɵNgNoValidate,o.NgControlStatusGroup,o.NgForm,W.z]}),e})(),ye=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryR=new k.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryR.emit(this.solicitud.request_id)}getTextStatus(){switch(this.solicitud.status_code){case"abandoned_after_waiting_otp_seguridad_social":return"Abandonado después de esperar OTP de Seguridad Social";case"abandoned_after_invalid_otp_seguridad_social":return"Abandonado despues de OTP inválido en Seguridad Social";case"abandoned_after_invalid_otp_aeat":return"Abandonado despues de OTP inválido en AEAT";case"abandoned_after_waiting_otp_aeat":return"Abandonado después de esperar OTP de AEAT";default:return this.solicitud.status_message||this.solicitud.status_code}}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵdirectiveInject(o.UntypedFormBuilder),k.ɵɵdirectiveInject(E.F),k.ɵɵdirectiveInject(z.M),k.ɵɵdirectiveInject(l.o),k.ɵɵdirectiveInject(h.T))},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-abandoned-step"]],inputs:{data:"data",solicitud:"solicitud",texts:"texts"},outputs:{retryR:"retryRequest"},decls:10,vars:17,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"p-1","px-4","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-sm","mb-2","mt-6"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"div",0)(1,"div",1),k.ɵɵelement(2,"div",2)(3,"div",3),k.ɵɵpipe(4,"safeHtml"),k.ɵɵelementStart(5,"div",4),k.ɵɵtext(6),k.ɵɵelementEnd()(),k.ɵɵelementStart(7,"div",5)(8,"button",6),k.ɵɵlistener("click",(function(){return t.retry()})),k.ɵɵtext(9,"Intentarlo nuevamente"),k.ɵɵelementEnd()()()),2&e&&(k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),k.ɵɵproperty("innerHTML",t.texts.abandoned.title,k.ɵɵsanitizeHtml),k.ɵɵadvance(1),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵproperty("innerHTML",k.ɵɵpipeBind1(4,15,t.texts.abandoned.description),k.ɵɵsanitizeHtml),k.ɵɵadvance(3),k.ɵɵtextInterpolate1(" ",t.getTextStatus()," "),k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[V.lW,W.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();var be=n(5145);let xe=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.nr=new k.EventEmitter(null)}ngOnInit(){}newRequest(){this.nr.emit(!0)}gotoRequest(){location.assign(this.currentRequest.widget_url_boxed)}getStatus(){let e=be.Z.find((e=>e.text==this.currentRequest.status_code));return e?e.label:"Estado desconocido"}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵdirectiveInject(o.UntypedFormBuilder),k.ɵɵdirectiveInject(E.F),k.ɵɵdirectiveInject(z.M),k.ɵɵdirectiveInject(l.o),k.ɵɵdirectiveInject(h.T))},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-duplicated-request-step"]],inputs:{currentRequest:"currentRequest",data:"data",texts:"texts"},outputs:{nr:"newRequest"},decls:15,vars:15,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"flex","gap-2","justify-start","items-center","py-2"],[1,"w-fit","p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-sm"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),k.ɵɵtext(3," Solicitud duplicada! "),k.ɵɵelementEnd(),k.ɵɵelementStart(4,"div",3),k.ɵɵtext(5," Ya existe una solicitud para este cliente. "),k.ɵɵelementEnd(),k.ɵɵelementStart(6,"div",4),k.ɵɵtext(7," Estado de la solicitud actual: "),k.ɵɵelementStart(8,"div",5),k.ɵɵtext(9),k.ɵɵelementEnd()()(),k.ɵɵelementStart(10,"div",6)(11,"button",7),k.ɵɵlistener("click",(function(){return t.newRequest()})),k.ɵɵtext(12,"Nueva solicitud"),k.ɵɵelementEnd(),k.ɵɵelementStart(13,"button",8),k.ɵɵlistener("click",(function(){return t.gotoRequest()})),k.ɵɵtext(14,"Ir a la solicitud actual"),k.ɵɵelementEnd()()()),2&e&&(k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵadvance(5),k.ɵɵtextInterpolate1(" ",t.getStatus()," "),k.ɵɵadvance(2),k.ɵɵstyleProp("border-radius",t.data.styles.btnRound+"px"),k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[V.lW],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),we=(()=>{class e{constructor(){}ngOnInit(){console.error(this.data,this.texts)}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-standby-step"]],inputs:{data:"data",texts:"texts"},decls:5,vars:10,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"form",0)(1,"div",1),k.ɵɵelement(2,"div",2)(3,"div",3),k.ɵɵpipe(4,"safeHtml"),k.ɵɵelementEnd()()),2&e&&(k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.standby?t.texts.standby.titleSize+"px":"20px"),k.ɵɵproperty("innerHTML",t.texts.standby?t.texts.standby.title:"Solicitud en Stand By",k.ɵɵsanitizeHtml),k.ɵɵadvance(1),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵproperty("innerHTML",t.texts.standby?t.texts.standby.description:k.ɵɵpipeBind1(4,8,"Descripcion del estado Stand By"),k.ɵɵsanitizeHtml))},dependencies:[o.ɵNgNoValidate,o.NgControlStatusGroup,o.NgForm,W.z]}),e})(),Ce=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.loading=null,this.nextStep=new k.EventEmitter(null)}ngOnInit(){this.form=this.fb.group({document_expiration_date:[null,[o.Validators.required]]})}next(){this.nextStep.emit(this.form.get("document_expiration_date").value)}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵdirectiveInject(o.UntypedFormBuilder),k.ɵɵdirectiveInject(E.F))},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-error-expiration-step"]],inputs:{data:"data",texts:"texts",loading:"loading"},outputs:{nextStep:"nextStep"},decls:16,vars:14,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"w-full",3,"formGroup"],["appearance","outline",1,"w-full","flex-1","belender-form-field"],["type","date","placeholder","Ej: 22/03/1990","required","","formControlName","document_expiration_date","matInput",""],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),k.ɵɵtext(3," Fecha de vencimiento incorrecta "),k.ɵɵelementEnd(),k.ɵɵelementStart(4,"div",3),k.ɵɵtext(5," Por favor, introduce la fecha de vencimiento del documento "),k.ɵɵelementEnd(),k.ɵɵelementStart(6,"form",4)(7,"mat-form-field",5)(8,"mat-label"),k.ɵɵtext(9,"Fecha de vencimiento del DNI"),k.ɵɵelementEnd(),k.ɵɵelement(10,"input",6),k.ɵɵelementStart(11,"mat-hint"),k.ɵɵtext(12,"DD/MM/YYYY"),k.ɵɵelementEnd()()()(),k.ɵɵelementStart(13,"div",7)(14,"button",8),k.ɵɵlistener("click",(function(){return t.next()})),k.ɵɵtext(15," Enviar "),k.ɵɵelementEnd()()()),2&e&&(k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵadvance(2),k.ɵɵproperty("formGroup",t.form),k.ɵɵadvance(8),k.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),k.ɵɵproperty("disabled",t.form.invalid))},dependencies:[o.ɵNgNoValidate,o.DefaultValueAccessor,o.NgControlStatus,o.NgControlStatusGroup,o.RequiredValidator,o.FormGroupDirective,o.FormControlName,V.lW,v.KE,v.bx,v.hX,re.Nt],styles:[".label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),Se=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.loading=null,this.nextStep=new k.EventEmitter(null)}ngOnInit(){this.form=this.fb.group({support_number:[null,[o.Validators.required]]})}next(){this.nextStep.emit(this.form.get("support_number").value)}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵdirectiveInject(o.UntypedFormBuilder),k.ɵɵdirectiveInject(E.F))},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-error-support-number-step"]],inputs:{data:"data",texts:"texts",loading:"loading"},outputs:{nextStep:"nextStep"},decls:14,vars:14,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"w-full",3,"formGroup"],["appearance","outline",1,"w-full","flex-1","belender-form-field"],["type","number","placeholder","Ej: 1233443","required","","formControlName","support_number","matInput",""],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),k.ɵɵtext(3," Código de soporte inválido "),k.ɵɵelementEnd(),k.ɵɵelementStart(4,"div",3),k.ɵɵtext(5," Por favor, introduce el código de soporte "),k.ɵɵelementEnd(),k.ɵɵelementStart(6,"form",4)(7,"mat-form-field",5)(8,"mat-label"),k.ɵɵtext(9,"Número de soporte"),k.ɵɵelementEnd(),k.ɵɵelement(10,"input",6),k.ɵɵelementEnd()()(),k.ɵɵelementStart(11,"div",7)(12,"button",8),k.ɵɵlistener("click",(function(){return t.next()})),k.ɵɵtext(13," Enviar "),k.ɵɵelementEnd()()()),2&e&&(k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵadvance(2),k.ɵɵproperty("formGroup",t.form),k.ɵɵadvance(6),k.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),k.ɵɵproperty("disabled",t.form.invalid))},dependencies:[o.ɵNgNoValidate,o.DefaultValueAccessor,o.NumberValueAccessor,o.NgControlStatus,o.NgControlStatusGroup,o.RequiredValidator,o.FormGroupDirective,o.FormControlName,V.lW,v.KE,v.hX,re.Nt],styles:[".label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();var Me=n(7795);const Ie=function(e){return{mask:e}};let ke=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.loading=null,this.nextStep=new k.EventEmitter(null),this.datemask=[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/]}ngOnInit(){this.form=this.fb.group({birth_date:[null,[o.Validators.required]]})}next(){this.nextStep.emit(this.form.get("birth_date").value)}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵdirectiveInject(o.UntypedFormBuilder),k.ɵɵdirectiveInject(E.F))},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-error-birthday-step"]],inputs:{data:"data",texts:"texts",loading:"loading"},outputs:{nextStep:"nextStep"},decls:16,vars:17,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"w-full",3,"formGroup"],["appearance","outline",1,"w-full","belender-form-field"],["type","text","required","","formControlName","birth_date","matInput","",3,"textMask"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),k.ɵɵtext(3," Fecha de nacimiento incorrecta "),k.ɵɵelementEnd(),k.ɵɵelementStart(4,"div",3),k.ɵɵtext(5," Por favor, introduce la fecha de nacimiento "),k.ɵɵelementEnd(),k.ɵɵelementStart(6,"form",4)(7,"mat-form-field",5)(8,"mat-label"),k.ɵɵtext(9,"Fecha de nacimiento"),k.ɵɵelementEnd(),k.ɵɵelement(10,"input",6),k.ɵɵelementStart(11,"mat-hint"),k.ɵɵtext(12,"DD/MM/YYYY"),k.ɵɵelementEnd()()()(),k.ɵɵelementStart(13,"div",7)(14,"button",8),k.ɵɵlistener("click",(function(){return t.next()})),k.ɵɵtext(15," Enviar "),k.ɵɵelementEnd()()()),2&e&&(k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵadvance(2),k.ɵɵproperty("formGroup",t.form),k.ɵɵadvance(4),k.ɵɵproperty("textMask",k.ɵɵpureFunction1(15,Ie,t.datemask)),k.ɵɵadvance(4),k.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),k.ɵɵproperty("disabled",t.form.invalid))},dependencies:[o.ɵNgNoValidate,o.DefaultValueAccessor,o.NgControlStatus,o.NgControlStatusGroup,o.RequiredValidator,o.FormGroupDirective,o.FormControlName,Me.hd,V.lW,v.KE,v.bx,v.hX,re.Nt],styles:[".label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();const Ee=["formStep"],Te=["otpStep"];function Pe(e,t){if(1&e&&(k.ɵɵelementStart(0,"div",8),k.ɵɵelement(1,"mat-icon",9),k.ɵɵtext(2),k.ɵɵelementEnd()),2&e){const e=k.ɵɵnextContext(2);k.ɵɵproperty("@fadeInUp",void 0),k.ɵɵadvance(2),k.ɵɵtextInterpolate1(" ",e.warningAlert," ")}}function Oe(e,t){if(1&e&&k.ɵɵelement(0,"belender-widget-logo",10),2&e){const e=k.ɵɵnextContext(2);k.ɵɵproperty("logoUrl",null==e.data.styles?null:e.data.styles.logoUrl)}}function De(e,t){1&e&&(k.ɵɵelementStart(0,"div",11),k.ɵɵelement(1,"mat-progress-spinner",12),k.ɵɵelementEnd()),2&e&&(k.ɵɵadvance(1),k.ɵɵproperty("value",0))}function Le(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-form-step",24,25),k.ɵɵlistener("goToTerms",(function(){k.ɵɵrestoreView(e);const t=k.ɵɵnextContext(3);return k.ɵɵresetView(t.gotoTermsAndConditions())}))("nextStep",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.validateRequest(t))}))("isDni",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.setIsDni(t))})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("userId",e.userId)("flowName",e.flowName)("requestIDFromURL",e.requestIDFromURL)("texts",e.data[e.flowName].texts)("data",e.data)("solicitud",e.solicitud)}}function Ae(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-shared-otp-step",26,27),k.ɵɵlistener("resendOTP",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){k.ɵɵrestoreView(e);const t=k.ɵɵnextContext(3);return k.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.requestOTP(t))})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("otpType","otp_irs"==e.requestStatus?"otpIRS":"otpSSD")("flowType",e.flowName)("data",e.data)("solicitud",e.solicitud)("minLength",6)("lastThreeNumbersPhone",e.lastThreeNumbersPhone)("texts",e.data[e.flowName].texts)}}function Ne(e,t){if(1&e&&k.ɵɵelement(0,"belender-success-step",28),2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("data",e.data)("packId",e.packId)("flowName",e.flowName)("userId",e.userId)("requestID",e.requestID)("texts",e.data[e.flowName].texts)}}function Re(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-duplicated-request-step",29),k.ɵɵlistener("newRequest",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.newRequest(t))})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("data",e.data)("currentRequest",e.currentRequest)}}function je(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-error-birthday-step",30),k.ɵɵlistener("nextStep",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.setBirthDate(t))})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)}}function Fe(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-error-expiration-step",30),k.ɵɵlistener("nextStep",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.setExpiration(t))})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)}}function qe(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-error-support-number-step",30),k.ɵɵlistener("nextStep",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.setSupportNumber(t))})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)}}function Ye(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-fail-step",31),k.ɵɵlistener("retryRequest",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.retryRequest(t))}))("newRequest",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.newRequest(t))})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("data",e.data)("solicitud",e.solicitud)("texts",e.data[e.flowName].texts)}}function Ve(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-abandoned-step",32),k.ɵɵlistener("retryRequest",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.retryRequest(t))})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)("solicitud",e.solicitud)}}function He(e,t){if(1&e&&k.ɵɵelement(0,"belender-no-service-step",33),2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("texts",e.data[e.flowName].texts)("data",e.data)}}function ze(e,t){if(1&e&&k.ɵɵelement(0,"belender-standby-step",33),2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("texts",e.data[e.flowName].texts)("data",e.data)}}function Be(e,t){if(1&e&&(k.ɵɵelementStart(0,"div",34)(1,"div",35)(2,"h1",36),k.ɵɵtext(3,"No existe la solicitud"),k.ɵɵelementEnd()(),k.ɵɵelementStart(4,"div",37),k.ɵɵtext(5," No existen solicitudes activas con el código requerido "),k.ɵɵelementEnd()()),2&e){const e=k.ɵɵnextContext(3);k.ɵɵadvance(4),k.ɵɵstyleProp("color",e.data.styles.colors.text)}}function Ue(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-cancel-request",38),k.ɵɵlistener("updateStatusCode",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.solicitud.status_code=t)})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("request_id",e.requestID)("user_id",e.userId)("textColor",e.data.styles.colors.text)("customText",e.data.config.cancelRequestText)}}function We(e,t){if(1&e&&(k.ɵɵelement(0,"div",39),k.ɵɵpipe(1,"safeHtml")),2&e){const e=k.ɵɵnextContext(3);k.ɵɵstyleProp("color",e.data.styles.colors.text),k.ɵɵproperty("innerHTML",e.data[e.flowName]?null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.aditionalDescription:k.ɵɵpipeBind1(1,3,(null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.aditionalDescription)||""),k.ɵɵsanitizeHtml)}}function $e(e,t){if(1&e&&(k.ɵɵelementContainerStart(0),k.ɵɵtemplate(1,Le,2,6,"belender-form-step",13),k.ɵɵtemplate(2,Ae,2,7,"belender-shared-otp-step",14),k.ɵɵtemplate(3,Ne,1,6,"belender-success-step",15),k.ɵɵtemplate(4,Re,1,2,"belender-duplicated-request-step",16),k.ɵɵtemplate(5,je,1,2,"belender-error-birthday-step",17),k.ɵɵtemplate(6,Fe,1,2,"belender-error-expiration-step",17),k.ɵɵtemplate(7,qe,1,2,"belender-error-support-number-step",17),k.ɵɵtemplate(8,Ye,1,3,"belender-fail-step",18),k.ɵɵtemplate(9,Ve,1,3,"belender-abandoned-step",19),k.ɵɵtemplate(10,He,1,2,"belender-no-service-step",20),k.ɵɵtemplate(11,ze,1,2,"belender-standby-step",20),k.ɵɵtemplate(12,Be,6,2,"div",21),k.ɵɵtemplate(13,Ue,1,4,"belender-cancel-request",22),k.ɵɵtemplate(14,We,2,5,"div",23),k.ɵɵelementContainerEnd()),2&e){const e=k.ɵɵnextContext(2);k.ɵɵadvance(1),k.ɵɵproperty("ngIf","form"==e.requestStatus&&!e.loadingRequestData),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","otp_irs"==e.requestStatus||"otp_ssd"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","success"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","duplicated"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","error-birth-date"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","error-expiration-date"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","error-support-number"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","failed"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","abandoned"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","no-service"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","standby"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","created"!=e.step),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",e.showCancelRequest&&e.data.config.cancelRequest),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",null==e.data[e.flowName]?null:e.data[e.flowName].showAditionalDescription)}}function Ge(e,t){1&e&&k.ɵɵelement(0,"belender-disabled-url")}function Ze(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"div",40)(1,"div",34)(2,"div",41),k.ɵɵtext(3,"Error!"),k.ɵɵelementEnd(),k.ɵɵelement(4,"div",42),k.ɵɵelementEnd(),k.ɵɵelementStart(5,"div",43)(6,"button",44),k.ɵɵlistener("click",(function(){k.ɵɵrestoreView(e);const t=k.ɵɵnextContext(2);return k.ɵɵresetView(t.error=!1)})),k.ɵɵtext(7," Ingresar manualmente "),k.ɵɵelementEnd()()()}if(2&e){const e=k.ɵɵnextContext(2);k.ɵɵadvance(4),k.ɵɵstyleProp("color",e.data.styles.colors.text),k.ɵɵproperty("innerHTML",e.error,k.ɵɵsanitizeHtml)}}function Ke(e,t){if(1&e&&(k.ɵɵelementStart(0,"div",3)(1,"div"),k.ɵɵtemplate(2,Pe,3,2,"div",4),k.ɵɵtemplate(3,Oe,1,1,"belender-widget-logo",5),k.ɵɵtemplate(4,De,2,1,"div",6),k.ɵɵtemplate(5,$e,15,14,"ng-container",2),k.ɵɵtemplate(6,Ge,1,0,"belender-disabled-url",2),k.ɵɵtemplate(7,Ze,8,3,"div",7),k.ɵɵelementEnd()()),2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(1),k.ɵɵclassMapInterpolate1("h-full w-full relative flex-auto p-0 md:p-3 ",e.data.styles.typography,""),k.ɵɵstyleProp("background",e.data.styles.colors.background),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",e.warningAlert&&"success"!=e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",e.getIfShowLogo()),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",e.data.config.infiniteLoopInCompleted&&"loading"===e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",!e.error&&!e.disableURL),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",!e.error&&e.disableURL),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",!e.loading&&e.error)}}function Qe(e,t){if(1&e&&(k.ɵɵelementStart(0,"div",45),k.ɵɵelement(1,"mat-progress-spinner",46),k.ɵɵelementStart(2,"p",47),k.ɵɵtext(3),k.ɵɵelementEnd()()),2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(3),k.ɵɵtextInterpolate1(" ",e.loading," ")}}function Xe(e,t){if(1&e&&(k.ɵɵelementContainerStart(0),k.ɵɵelementStart(1,"div",48),k.ɵɵtext(2),k.ɵɵelementEnd(),k.ɵɵelementContainerEnd()),2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(2),k.ɵɵtextInterpolate1(" TestMode ",e.testMode?"ON":"OFF"," ")}}let Je=class{constructor(e,t,n,i,r,s,o,a,l,c,d){this.cd=e,this.Activatedroute=t,this.utils=n,this.chaveMovelService=i,this.notis=r,this.webhooksService=s,this.flowsS=o,this.customizationService=a,this.customizationStoreService=l,this.deviceInfoService=c,this.dialog=d,this.data=null,this.disableActions=!1,this.step="created",this.clientEnviroment="belender",this.showCancelRequest=!1,this.loading=null,this.error=!1,this.testMode=!1,this.cntrlIsPressed=!1,this.shiftlIsPressed=!1,this.skipCreationOfRequest=!1,this.autoAcceptTerms=!1,this.lastThreeNumbersPhone=null,this.requestIDFromURL=!1,this.paramsSetted=!1,this.stopPropagationOfSuccess=!1,this.picturesTaken=[],this.disableURL=!1,this.selectedLanguage="es",this.isDni=!0,this.loadingRequestData=!1,this.env=w.N,this.intervalToAskBack=null,this.requestedFromDetail=!1,this.intervalCount=0,this.requestStatus="",this.currentHeight=0,this.isScaled=!1,this.flowName="ChaveMovel",localStorage.getItem("belender-language")&&(this.selectedLanguage=localStorage.getItem("belender-language"))}ngOnInit(){this.getWindowsScreenOrientation();const e=this;e.setWarningPortals(),this.loading="Obteniendo información de la solicitud",this.checkClientUrl(),this.userId=this.customizationStoreService.USER_ID,this.packId=this.customizationStoreService.PACK_ID,this.userId?this.setInitialData(this.userId):this.loading=null,"pro"!=w.N.env&&(x(document).keydown((function(t){16==t.which&&(this.shiftlIsPressed=!0),17==t.which&&(this.cntrlIsPressed=!0),84==t.which&&this.cntrlIsPressed&&this.shiftlIsPressed&&(e.testMode=!e.testMode,e.cd.markForCheck())})),x(document).keyup((function(e){16==e.which&&(this.shiftlIsPressed=!1),16==e.which&&(this.cntrlIsPressed=!1)})))}ngOnDestroy(){window.screen&&window.screen.orientation&&this.orientationChangeHandler&&window.screen.orientation.removeEventListener("change",this.orientationChangeHandler)}ngAfterViewChecked(){this.getWidgetCardHeight()}setInitialData(e){var t=this;return(0,g.Z)((function*(){const n=yield t.getFlow(e);if(t.data={config:t.customizationStoreService.FUNDER_CONFIG,styles:t.customizationStoreService.FUNDER_STYLES,[t.flowName]:n},!t.data.config||!t.data.config.funder_id)return t.notis.showAlert("Error!","No se ha configurado la customización del widget para este usuario","error"),t.loading=null,void t.cd.markForCheck();t.financiadorID=t.data.config.funder_id||"",t.disableURL=t.data.config.disableUrlWidget,t.validateRequestIdInUrl(),t.cd.markForCheck()}))()}getFlow(e){var t=this;return(0,g.Z)((function*(){return new Promise((n=>{t.customizationService.getCustomizationByFlow(e,t.flowName).then((e=>{e&&e.data&&n(e.data),n(null)}),(e=>{n(null)}))}))}))()}getWindowsScreenOrientation(){window.screen&&window.screen.orientation?(this.orientationChangeHandler=()=>{this.getWidgetCardHeight()},window.screen.orientation.addEventListener("change",this.orientationChangeHandler)):console.warn("Screen Orientation API not supported.")}getWidgetCardHeight(){let e=x("#widget-wrapper").height()||0;this.isScaled$=this.deviceInfoService.isScaled$.subscribe((t=>{this.isScaled=t,this.isScaled&&(e*=1.5)})),this.sendMessageToParent({type:"widgetHeight",data:e})}setRequestStatus(e){if(this.solicitud)this.solicitud.status_code=e;else{let t=new b.l;t.status_code=e,this.solicitud=t}this.setStatus()}checkClientUrl(){const e=window.location.href;this.clientEnviroment=this.getClientFromUrl(e)}getOTPMinLength(){return this.env?"dev"===this.env.env&&"belender"===this.clientEnviroment?6:"qa"===this.env.env||"dev"===this.env.env&&"opendata"===this.clientEnviroment?3:6:6}getClientFromUrl(e){return e.includes("opendata")?"opendata":"belender"}setWarningPortals(){this.flowsS.getFlows().then((e=>{e&&e.data&&e.data.length&&"OCCASIONAL_FAIL"==e.data.find((e=>"ChaveMovel"==e.name)).status&&(this.warningAlert="Estamos detectando errores ocasionales, si no puede completar su solicitud, inténtelo más tarde")})).catch((e=>{console.error(e)}))}validateRequestIdInUrl(){this.Activatedroute.queryParams.subscribe({next:e=>{e&&this.setParamsToRequest(e),e&&e.acceptTerms&&(this.autoAcceptTerms=!0),e&&e.request_id?(this.disableURL=!1,this.requestID=e.request_id,this.setFormFromVcCode(e.request_id,e),this.requestIDFromURL=!0):this.loading=null},error:()=>{this.loading=null}})}setParamsToRequest(e){this.solicitud||this.setRequestStatus("form"),e.success&&(this.stopPropagationOfSuccess=!0),(e.document_number||e.document)&&!this.solicitud.person_document_number&&(this.solicitud.person_document_number=e.document_number||e.document,this.requestIDFromURL=!0),(e.birth_date||e.birthday)&&!this.solicitud.birth_date&&(this.solicitud.birth_date=e.birth_date||e.birthday,this.requestIDFromURL=!0),(e.document_expiration_date||e.expiration)&&!this.solicitud.person_document_expiration_date&&(this.solicitud.person_document_expiration_date=e.document_expiration_date||e.expiration,this.requestIDFromURL=!0),(e.document_support||e.supportNumber)&&!this.solicitud.document_support&&(this.solicitud.document_support=e.document_support||e.supportNumber,this.requestIDFromURL=!0),e.email&&!this.solicitud.email&&(this.solicitud.email=e.email,this.requestIDFromURL=!0,this.paramsSetted=!0),this.paramsSetted=!0}setFormFromVcCode(e,t){var n=this;return(0,g.Z)((function*(){n.loading="Obteniendo datos de la solicitud...",n.loadingRequestData=!0,n.testMode?setTimeout((()=>{n.solicitud=S.VU.data,n.setRequestStatus(n.solicitud.status_code),n.setSubscriptionOfRequest(),n.loading=null,n.loadingRequestData=!1,n.skipCreationOfRequest=!0,n.autoAcceptTerms?n.acceptTerms():n.setParamsToRequest(t)}),4e3):n.chaveMovelService.getSolicitudByCode(e).then((e=>{e&&e.data?(n.solicitud=e.data,n.setRequestStatus(n.solicitud.status_code),n.setSubscriptionOfRequest(),n.loading=null,n.skipCreationOfRequest=n.solicitud&&n.solicitud.status_code&&"prerequest"!=n.solicitud.status_code,n.autoAcceptTerms?n.acceptTerms():n.setParamsToRequest(t)):n.loading=null,n.loadingRequestData=!1})).catch((e=>{n.loading=null,n.loadingRequestData=!1}))}))()}sendMessageToParent(e){if(e&&e.type&&"widgetHeight"===e.type){if(e.data===this.currentHeight)return;this.currentHeight=e.data}console.log("Message to parent:",e,this.currentHeight),window.top.postMessage(e,"*")}handlePusherNotification(e){if(e&&(this.sendMessageToParent({type:"websocket",data:e}),this.dataFromFirebase=e,e&&e.widget_url&&(this.widgetUrl=e.widget_url),e&&e.widget_url_boxed&&(this.widgetUrlBoxed=e.widget_url_boxed),this.dataFromFirebase)){if(this.dataFromFirebase.hasOwnProperty("match_phone")&&!this.dataFromFirebase.match_phone)return void this.handleBadPhone();this.dataFromFirebase.person_last_three_phone_number&&(this.lastThreeNumbersPhone=this.dataFromFirebase.person_last_three_phone_number),this.dataFromFirebase.status_code&&("consent_process_completed"===this.dataFromFirebase.status_code&&this.disconnectWebsocket(),this.setRequestStatus(this.dataFromFirebase.status_code),"terms_and_conditions"!=this.solicitud.status_code&&"saved_otp"!=this.solicitud.status_code&&setTimeout((()=>{this.loading=null,this.cd.markForCheck()}),500))}}handleBadPhone(){this.disconnectWebsocket(),this.loading="Validando datos, espere por favor...",this.chaveMovelService.noMatchPhone({request_id:this.solicitud&&this.solicitud.request_id?this.solicitud.request_id:this.requestID,user_id:this.userId}).then((e=>{setTimeout((()=>{this.solicitud||(this.solicitud=new b.l,this.setRequestStatus(this.solicitud.status_code)),e&&e.data&&(this.solicitud=e.data,this.setRequestStatus(this.solicitud.status_code)),this.loading=null}),3e3)})).catch((e=>{this.showAlert("Error!",e),setTimeout((()=>{this.solicitud||(this.solicitud=new b.l,this.setRequestStatus(this.solicitud.status_code)),this.setRequestStatus("failed_without_retry"),this.loading=null}),1e3)}))}setSubscriptionOfRequest(){if(this.socket)return;let e="wss://notifications.dev.belender.net";"qa"==w.N.env&&(e="wss://notifications.qa.belender.net"),"pro"==w.N.env&&(e="wss://notifications.belender.net"),w.N.notificationsBaseUrl&&(e=w.N.notificationsBaseUrl),this.socket=new WebSocket(`${e}?requests_id=${this.requestID}&user_id=${this.userId}`);var t=this;this.socket.onopen=function(e){console.log("Conexión establecida")},this.socket.onmessage=function(e){let n=JSON.parse(e.data);console.warn(n),n&&t.handlePusherNotification(n)},this.socket.onerror=function(e){console.log("WebSocket Error: "+e),console.error(e)},this.socket.onclose=function(e){console.log("Conexión cerrada")}}setIsDni(e){this.isDni=e}setSubscriptionOfRequestOld(){}sendNewData(e){this.loading="Enviando información..",this.chaveMovelService.fixData(this.requestID,e).then((e=>{e.status&&"error"==e.status?e.message&&(this.showAlert("Error!",e),this.loading=null):e&&"success"==e.status&&(this.sendMessageToParent({type:"response",data:e.data||e}),this.loading="Validando nuevos datos, espere por favor..",this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error)}))}showAlert(e,t){this.loading=null,this.notis.showAlert(e,t)}setNoService(e){this.loading="Realizando validaciones de usuario..",e.user_id=this.userId,e.package_id=this.packId,this.requestID&&(e.request_id=this.requestID),this.chaveMovelService.addSolicitud(e).then((e=>{e.data&&(this.requestID=e.data.request_id),this.chaveMovelService.setNoService({request_id:this.requestID}).then((()=>{this.setRequestStatus("no_service"),this.loading=null,this.cd.markForCheck()})).catch((e=>{this.setRequestStatus("no_service"),this.loading=null,this.cd.markForCheck()}))}))}validateRequest(e){e.user_id=this.userId,e.package_id=this.packId,this.gotoTerms(e)}parseErrorResponse(e){if(Array.isArray(e)){let t="";return e.forEach((e=>{t+=e+" "})),{title:"Error en algunos datos",description:t}}return"does not have chave movel service"==e.toLowerCase()?{title:"no-service",description:""}:"document number invalid."==e.toLowerCase()?{title:"Número de documento incorrecto!",description:"El número de documento ingresado es incorrecto, por favor ingrese otro"}:"incorrect support number"==e.toLowerCase()?{title:"Número de soporte incorrecto!",description:"El número de soporte ingresado es incorrecto, por favor ingrese otro"}:"incorrect date"==e.toLowerCase()?this.isDni?{title:"Fecha de vencimiento incorrecta!",description:"La fecha de vencimiento del DNI ingresado es incorrecta, por favor ingrese otra"}:{title:"Fecha de nacimiento incorrecta!",description:"La fecha de nacimiento del NIE ingresado es incorrecta, por favor ingrese otra"}:{title:"Error!",description:e}}gotoTerms(e){e.user_id=this.userId,e.package_id=this.packId,this.requestID&&(e.request_id=this.requestID),this.loading="Enviando datos..",this.testMode?setTimeout((()=>{this.solicitud=new b.l,this.setRequestStatus("waiting_otp_seguridad_social"),this.loading=null}),4e3):this.skipCreationOfRequest?(this.acceptTerms(),this.setSubscriptionOfRequest()):this.chaveMovelService.addSolicitud(e).then((t=>{t&&t.status&&"error"==t.status?t.message&&(this.solicitud=e,400==t.code&&"Does not have Pin service"==t.message?(t.data&&(this.requestID=t.data.request_id),this.chaveMovelService.setNoService({request_id:this.requestID}).then((()=>{this.setRequestStatus("no_service"),this.loading=null})).catch((e=>{this.setRequestStatus("no_service"),this.loading=null}))):400==t.code&&"Incorrect support number"==t.message?(this.showAlert("Error!","Número de soporte inválido!"),this.setRequestStatus("form")):400==t.code&&"Incorrect date"==t.message?(this.showAlert("Error!","Fecha incorrecta!"),this.setRequestStatus("form")):(this.setRequestStatus("form"),this.showAlert("Error!",t.message))):t&&t.status&&"success"==t.status?(this.requestID=t.data.request_id,this.solicitud=t.data,this.setRequestStatus(this.solicitud.status_code),this.setSubscriptionOfRequest(),this.sendMessageToParent({type:"response",data:t.data}),this.acceptTerms()):this.showAlert("Error!","Error desconocido: "+t)})).catch((e=>{e&&e.errorMessage&&this.showAlert("Error!",e.errorMessage)}))}acceptTerms(e=!0){let t={user_id:this.userId,request_id:this.requestID,terms_and_conditions:!0};e&&(this.loading="Validando datos, espere por favor.."),this.chaveMovelService.acceptTerms(t).then((e=>{e.status&&"error"==e.status?e.message&&"You have a request in progress"==e.message?location.pathname.indexOf("widget-boxed")>-1?location.assign(e.response.widget_url_boxed):location.assign(e.response.widget_url):e.message&&"Invalid request status: stand_by"==e.message?this.setRequestStatus("stand_by"):this.showAlert("Error!",e.message?e.message:e):e&&"success"==e.status&&(this.sendMessageToParent({type:"response",data:e.data||e}),this.setSubscriptionOfRequest(),this.setRequestStatus(e.data&&e.data.next_step_detail&&e.data.next_step_detail.portal&&"Seguridad Social"===e.data.next_step_detail.portal?"waiting_otp_seguridad_social":e.data&&e.data.next_step_detail&&e.data.next_step_detail.portal&&"AEAT"===e.data.next_step_detail.portal?"waiting_otp_aeat":e.data&&e.data.next_step_detail&&e.data.next_step_detail[0]&&e.data.next_step_detail[0].portal&&"Seguridad Social"===e.data.next_step_detail[0].portal?"waiting_otp_seguridad_social":e.data&&e.data.next_step_detail&&e.data.next_step_detail[0]&&e.data.next_step_detail[0].portal&&"AEAT"===e.data.next_step_detail[0].portal?"waiting_otp_aeat":e.data.status_code),this.loading=null,this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=null}))}requestOTP(e){this.loading="Enviando información..",this.chaveMovelService.sendOTP({user_id:this.userId,request_id:this.requestID,code:e.code},"qa"===w.N.env).then((e=>{e.status&&"error"==e.status?(this.showAlert("Error!",e.message&&"Invalid request status: waiting_login_seguridad_social"==e.message?"Todavía no has recibido el OTP. Inténtalo de nuevo cuando lo recibas":e.message?e.message:e),this.loading=null):e&&"success"==e.status?(this.handleRequestStatus(e.data||e),this.cd.markForCheck()):this.loading=null})).catch((e=>{this.showAlert("Error!",e&&e.error?e.error:e),this.loading=null}))}handleRequestStatus(e){let t=new b.l;e.consent_process_completed?(this.requestedFromDetail=!0,t.status_code="consent_process_completed",this.sendMessageToParent({type:"response",data:{status_message:"El proceso de consentimiento ha finalizado",widget_url:this.solicitud&&this.solicitud.widget_url?this.solicitud.widget_url:this.widgetUrl||"",status_code:"consent_process_completed",user_id:this.solicitud&&this.solicitud.user_id?this.solicitud.user_id:this.userId||"",funder_id:this.solicitud&&this.solicitud.funder_id?this.solicitud.funder_id:"",request_id:this.solicitud&&this.solicitud.request_id?this.solicitud.request_id:this.requestID||"",widget_url_boxed:this.solicitud&&this.solicitud.widget_url_boxed?this.solicitud.widget_url_boxed:this.widgetUrlBoxed||""}}),this.solicitud=t,setTimeout((()=>{this.disconnectWebsocket()}),3e3)):(this.otpComponent&&this.otpComponent.resetOtpNumber(),e.otp_status||e.next_step_detail?e.otp_status&&"VALID"===e.otp_status?Array.isArray(e.next_step_detail)?t.status_code="Seguridad Social"===e.next_step_detail[0].portal?"waiting_otp_seguridad_social":"AEAT"===e.next_step_detail[0].portal?"waiting_otp_aeat":e.status_code:Array.isArray(e.next_step_detail)||(t.status_code="Seguridad Social"===e.next_step_detail.portal?"waiting_otp_seguridad_social":"AEAT"===e.next_step_detail.portal?"waiting_otp_aeat":e.status_code):e.otp_status&&"INVALID"===e.otp_status&&(t.status_code=e.status_code,this.showAlert("Error!","Código inválido. Por favor, introduzca el código recibido por SMS")):(t.status_code="failed",this.showAlert("Error!","Código inválido. Por favor, introduzca el código recibido por SMS")),this.sendMessageToParent({type:"response",data:e})),this.solicitud=t,this.setRequestStatus(this.solicitud.status_code),this.loading=null}askToBack(){this.chaveMovelService.getSolicitudByCode(this.requestID).then((e=>{e&&e.data?(this.solicitud=e.data,this.setRequestStatus(this.solicitud.status_code),this.loading=null):this.loading=null})).catch((e=>{this.loading=null}))}gotoErrorPhone(){}setBirthDate(e){}setExpiration(e){}setSupportNumber(e){}resendOTP(e){let t={request_id:this.requestID,user_id:this.userId};this.loading="Reenviando OTP...",this.setSubscriptionOfRequest(),this.chaveMovelService.resendOTP(t).then((e=>{e&&e.data&&(this.solicitud=e.data,this.setRequestStatus(this.solicitud.status_code)),this.loading=null})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=null}))}retryRequest(e){let t={request_id:(this.solicitud&&this.solicitud.request_id?this.solicitud.request_id:this.requestID)||e,user_id:this.userId};this.loading="Reintentando enviar la solicitud...",this.setSubscriptionOfRequest(),this.chaveMovelService.retryRequest(t).then((e=>{e&&e.data&&(this.solicitud=e.data,this.setRequestStatus(this.solicitud.status_code)),this.loading=null})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=null}))}newRequest(e){this.setRequestStatus("created")}disconnectWebsocket(){this.socket&&this.socket.close()}initIntervalToAskBack(){!this.solicitud||!this.solicitud.request_id||(this.intervalToAskBack=setInterval((()=>{this.askDetailToBack(this.solicitud.request_id),this.intervalCount++,this.intervalCount>20&&this.stopInterval()}),5e3))}stopInterval(){this.intervalToAskBack&&clearInterval(this.intervalToAskBack)}askDetailToBack(e){let t=JSON.parse(JSON.stringify(this.solicitud.status_code));e||this.requestID?this.chaveMovelService.getSolicitudByCode(e).then((e=>{e&&e.data&&t!=e.data.status_code&&(this.solicitud=e.data,this.setRequestStatus(this.solicitud.status_code))})).catch((e=>{this.loading=null,this.loadingRequestData=!1})):this.stopInterval()}setStatus(){if(this.showCancelRequest=!0,this.solicitud){if(this.solicitud){let e=M[this.solicitud.status_code];e&&("success"===e&&this.funderConfig&&this.funderConfig.infiniteLoopInCompleted&&(this.loading=" "),("abandoned"===e||"failed"===e)&&(this.showCancelRequest=!1),this.requestStatus=e)}}else this.requestStatus="form";this.cd.markForCheck()}sendRetry(){}gotoTermsAndConditions(){this.dialog.open(I.L,{panelClass:"fullscreen-dialog",data:{flow:this.flowName}}).afterClosed().subscribe((e=>{e&&this.formComponent.setTermsCheck(!0)}))}pictureTaken(e){this.picturesTaken.push(e._imageAsDataUrl)}getIfShowLogo(){return("loading"!=this.requestStatus&&"success"!=this.requestStatus&&!this.loading||!this.funderConfig.infiniteLoopInCompleted)&&this.funderStyles?.withLogo}};Je.ɵfac=function(e){return new(e||Je)(k.ɵɵdirectiveInject(k.ChangeDetectorRef),k.ɵɵdirectiveInject(m.gz),k.ɵɵdirectiveInject(E.F),k.ɵɵdirectiveInject(O),k.ɵɵdirectiveInject(h.T),k.ɵɵdirectiveInject(c.t),k.ɵɵdirectiveInject(D.s),k.ɵɵdirectiveInject(d.w),k.ɵɵdirectiveInject(L.r),k.ɵɵdirectiveInject(A.H),k.ɵɵdirectiveInject(N.uw))},Je.ɵcmp=k.ɵɵdefineComponent({type:Je,selectors:[["belender-widget-chave-movel"]],viewQuery:function(e,t){if(1&e&&(k.ɵɵviewQuery(Ee,5),k.ɵɵviewQuery(Te,5),k.ɵɵviewQuery(Ee,5)),2&e){let e;k.ɵɵqueryRefresh(e=k.ɵɵloadQuery())&&(t.formComponent=e.first),k.ɵɵqueryRefresh(e=k.ɵɵloadQuery())&&(t.otpComponent=e.first),k.ɵɵqueryRefresh(e=k.ɵɵloadQuery())&&(t.theDiv=e.first)}},inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud"},features:[k.ɵɵProvidersFeature([{provide:v.o2,useValue:{appearance:"standard"}}])],decls:3,vars:3,consts:[["id","widget-wrapper","class","h-full widget-belender",4,"ngIf"],["class","loading-wrapper animated fadeIn",4,"ngIf"],[4,"ngIf"],["id","widget-wrapper",1,"h-full","widget-belender"],["class","flex justify-start px-4 py-3 items-center font-bold gap-3 text-md bg-amber-500/20 rounded-sm border border-amber-500 text-amber-500",4,"ngIf"],[3,"logoUrl",4,"ngIf"],["class","flex justify-center h-full min-h-[300px] items-center",4,"ngIf"],["class","animated fadeInRight",4,"ngIf"],[1,"flex","justify-start","px-4","py-3","items-center","font-bold","gap-3","text-md","bg-amber-500/20","rounded-sm","border","border-amber-500","text-amber-500"],["svgIcon","mat:warning"],[3,"logoUrl"],[1,"flex","justify-center","h-full","min-h-[300px]","items-center"],["color","accent","diameter","40","mode","indeterminate",1,"spinner",3,"value"],[3,"userId","flowName","requestIDFromURL","texts","data","solicitud","goToTerms","nextStep","isDni",4,"ngIf"],[3,"otpType","flowType","data","solicitud","minLength","lastThreeNumbersPhone","texts","resendOTP","errorPhone","nextStep",4,"ngIf"],[3,"data","packId","flowName","userId","requestID","texts",4,"ngIf"],[3,"data","currentRequest","newRequest",4,"ngIf"],[3,"data","texts","nextStep",4,"ngIf"],[3,"data","solicitud","texts","retryRequest","newRequest",4,"ngIf"],[3,"data","texts","solicitud","retryRequest",4,"ngIf"],[3,"texts","data",4,"ngIf"],["class","px-6 py-4 flex flex-col",4,"ngIf"],["flowType","ChaveMovel",3,"request_id","user_id","textColor","customText","updateStatusCode",4,"ngIf"],["class","subheading-1 p-4 custom-html",3,"color","innerHTML",4,"ngIf"],[3,"userId","flowName","requestIDFromURL","texts","data","solicitud","goToTerms","nextStep","isDni"],["formStep",""],[3,"otpType","flowType","data","solicitud","minLength","lastThreeNumbersPhone","texts","resendOTP","errorPhone","nextStep"],["otpStep",""],[3,"data","packId","flowName","userId","requestID","texts"],[3,"data","currentRequest","newRequest"],[3,"data","texts","nextStep"],[3,"data","solicitud","texts","retryRequest","newRequest"],[3,"data","texts","solicitud","retryRequest"],[3,"texts","data"],[1,"px-6","py-4","flex","flex-col"],[1,"title","m-0"],[1,"text-red-500"],[1,"subheading-1","pt-4"],["flowType","ChaveMovel",3,"request_id","user_id","textColor","customText","updateStatusCode"],[1,"subheading-1","p-4","custom-html",3,"innerHTML"],[1,"animated","fadeInRight"],[1,"text-red-500","title","m-0"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"text-blue-500","bg-blue-50","px-8",3,"click"],[1,"loading-wrapper","animated","fadeIn"],["color","accent","diameter","40","value","0","mode","indeterminate",1,"spinner"],[1,"mt-6","text-center","text-black",2,"color","black !important"],[1,"test-mode","px-10","py-2","bg-blue-500/10","text-blue-500","border-blue-500","border","rounded-md"]],template:function(e,t){1&e&&(k.ɵɵtemplate(0,Ke,8,11,"div",0),k.ɵɵtemplate(1,Qe,4,1,"div",1),k.ɵɵtemplate(2,Xe,3,1,"ng-container",2)),2&e&&(k.ɵɵproperty("ngIf",t.data&&!t.loading),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",(t.loading||"loading"===t.requestStatus)&&!t.error),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",t.testMode))},dependencies:[i.O5,R.q,j.X,F.y,q.i,Y.Hw,V.lW,H.Ou,K,J,_e,ve,ye,xe,we,Ce,Se,ke,W.z],styles:[".widget-belender[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{min-height:360px}.card[_ngcontent-%COMP%]{transition:all .2s ease;overflow:hidden;width:500px;max-width:100%;margin:0 auto}.badge-table[_ngcontent-%COMP%]{max-width:140px!important;border-radius:5px!important;-webkit-border-radius:5px!important;-moz-border-radius:5px!important;-ms-border-radius:5px!important;-o-border-radius:5px!important}.btn-refresh[_ngcontent-%COMP%]{transform:translateY(2px)}.request-data-info[_ngcontent-%COMP%]{transition:all .5s ease!important}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.mat-flat-button.mat-primary.mat-button-disabled[_ngcontent-%COMP%]{background:red!important}button.mat-flat-button.text-green-500.bg-green-light.mat-button-disabled[_ngcontent-%COMP%]{background:orange!important}.test-mode[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px}.webcam-wrapper[_ngcontent-%COMP%]{position:relative}.webcam-overlay[_ngcontent-%COMP%]{position:absolute;z-index:99;width:500px;top:0;left:0;width:100%;height:100%;justify-content:center}.webcam-overlay[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%]{background:url(/assets/img/exclude.png);width:100%;height:100%;background-repeat:no-repeat;background-size:cover;opacity:.7;max-width:500px}.loading-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;top:0;left:0;background:#fff}"],data:{animation:[C.$]}}),Je=(0,_.gn)([(0,y.c)()],Je);const et=[{path:":idUser",component:Je},{path:":idUser/:packID",component:Je}];let tt=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=k.ɵɵdefineNgModule({type:e}),e.ɵinj=k.ɵɵdefineInjector({imports:[m.Bz.forChild(et),m.Bz,f.d8]}),e})();var nt=n(6981),it=n(1129),rt=n(9476),st=n(3295),ot=n(1145),at=n(3300),lt=n(865),ct=n(3033),dt=n(5028);let ut=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=k.ɵɵdefineNgModule({type:e}),e.ɵinj=k.ɵɵdefineInjector({providers:[O,l.o,d.w,c.t,h.T,p.t,{provide:u.Ad,useValue:"es-ES"}],imports:[tt,i.ez,r.G,s.J,o.FormsModule,o.ReactiveFormsModule,a.a,nt.x,it.n,rt.F,st.g,ot.j,at.C,Me.QA,lt.q,ct.d,dt.q]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[553],{6553:(e,t,n)=>{n.r(t),n.d(t,{WidgetModule:()=>U});var i=n(6895),r=n(9299),s=n(6e3),o=n(5469),a=n(4650);const l=[{path:"",component:o.B,children:[{path:"sms",loadChildren:()=>Promise.resolve().then(n.bind(n,3006)).then((e=>e.SmsModule))},{path:"SMS",loadChildren:()=>Promise.resolve().then(n.bind(n,3006)).then((e=>e.SmsModule))},{path:"clavepin",loadChildren:()=>Promise.resolve().then(n.bind(n,1916)).then((e=>e.PinModule))},{path:"chave-movel",loadChildren:()=>n.e(508).then(n.bind(n,5508)).then((e=>e.ChaveMovelModule))},{path:"chavemovel",loadChildren:()=>n.e(508).then(n.bind(n,5508)).then((e=>e.ChaveMovelModule))},{path:"SmsPin",loadChildren:()=>n.e(94).then(n.bind(n,2094)).then((e=>e.SmsPinModule))},{path:"smspin",loadChildren:()=>n.e(94).then(n.bind(n,2094)).then((e=>e.SmsPinModule))},{path:"VideoId",loadChildren:()=>Promise.resolve().then(n.bind(n,1724)).then((e=>e.VideoIdModule))},{path:"videoid",loadChildren:()=>Promise.resolve().then(n.bind(n,1724)).then((e=>e.VideoIdModule))},{path:"Presencial",loadChildren:()=>Promise.resolve().then(n.bind(n,8526)).then((e=>e.PersonalModule))},{path:"presencial",loadChildren:()=>Promise.resolve().then(n.bind(n,8526)).then((e=>e.PersonalModule))},{path:"knownclient",loadChildren:()=>Promise.resolve().then(n.bind(n,8526)).then((e=>e.PersonalModule))},{path:"client-cert",loadChildren:()=>Promise.resolve().then(n.bind(n,6281)).then((e=>e.ClientCertModule))},{path:"clientcertificate",loadChildren:()=>n.e(163).then(n.bind(n,4163)).then((e=>e.ClientCertModule))},{path:"digital-power",loadChildren:()=>n.e(883).then(n.bind(n,883)).then((e=>e.PowerModule))},{path:"digitalpower",loadChildren:()=>n.e(883).then(n.bind(n,883)).then((e=>e.PowerModule))},{path:"client-certificate",redirectTo:"clientcertificate"},{path:"client-cert-mock",loadChildren:()=>n.e(822).then(n.bind(n,3822)).then((e=>e.ClientCertModule))},{path:"poder-digital",loadChildren:()=>n.e(883).then(n.bind(n,883)).then((e=>e.PowerModule))},{path:"manual-step",loadChildren:()=>Promise.all([n.e(592),n.e(452)]).then(n.bind(n,6452)).then((e=>e.ManualModule))},{path:"manual",loadChildren:()=>Promise.all([n.e(592),n.e(378)]).then(n.bind(n,2378)).then((e=>e.ManualModule))}]}];let c=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a.ɵɵdefineNgModule({type:e}),e.ɵinj=a.ɵɵdefineInjector({imports:[r.Bz.forChild(l),r.Bz,s.d8]}),e})();var d=n(6383),u=n(5592),h=n(5601),p=n(3798),m=n(9391),f=n(182),g=n(7367),_=n(3238),v=n(5895),y=n(4246),b=n(3006),x=n(4006),w=n(9101),C=n(811),S=n(6709),M=n(9602),I=n(7392),k=n(4144),E=n(1561),T=n(8739),P=n(1572),O=n(1948),D=n(4385),L=n(6308),A=n(6257),N=n(7155),R=n(266),j=n(1916),F=n(9617),q=n(6981),Y=n(1724),V=n(8526),H=n(6281);let z=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a.ɵɵdefineNgModule({type:e}),e.ɵinj=a.ɵɵdefineInjector({imports:[i.ez,I.Ps]}),e})();var B=n(8962);let U=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a.ɵɵdefineNgModule({type:e}),e.ɵinj=a.ɵɵdefineInjector({providers:[h.M,m.o,g.w,f.t,F.U,v.T,y.t,{provide:_.Ad,useValue:"es-ES"}],imports:[i.ez,c,d.G,u.J,p.a,b.SmsModule,j.PinModule,Y.VideoIdModule,V.PersonalModule,H.ClientCertModule,T.TU,N.p0,L.JX,S.p9,I.Ps,w.ot,E.Tx,k.c,x.FormsModule,R.AV,x.ReactiveFormsModule,D.LD,C.vV,p.a,P.Cq,M.FA,_.XK,A.T5,O.Fk,q.x,z,B.A]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[822],{3822:(e,t,n)=>{n.r(t),n.d(t,{ClientCertModule:()=>We});var i=n(6895),r=n(6383),s=n(5592),o=n(8739),a=n(7155),l=n(6308),c=n(6709),d=n(7392),u=n(9101),h=n(1561),p=n(4006),m=n(266),f=n(4385),g=n(811),_=n(5601),v=n(3798),y=n(9391),b=n(1572),x=n(182),w=n(4144),C=n(7367),S=n(9602),M=n(3238),I=n(5895),k=n(6257),E=n(1948),T=n(4246),P=n(9299),O=n(6e3),D=n(5861),L=n(7582),A=n(9549),N=n(9933),R=n(5762),j=n(8259),F=n(2340),q=n(1363),Y=n(6830),V=n(4650),H=n(5089),z=n(5412),B=n(3731);function U(e,t){if(1&e&&(V.ɵɵelementStart(0,"span"),V.ɵɵtext(1),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}function W(e,t){if(1&e&&(V.ɵɵelementStart(0,"span"),V.ɵɵtext(1),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵtextInterpolate2("¿No has recibido el código en el teléfono acabado en ",e.lastNumberPhone,"? Solicítalo de nuevo en ",e.secsCount," segundos")}}const $=function(e,t,n){return{color:e,border:t,background:n}};function G(e,t){if(1&e&&(V.ɵɵelementContainerStart(0),V.ɵɵelementStart(1,"small",11),V.ɵɵtemplate(2,U,2,1,"span",5),V.ɵɵtemplate(3,W,2,2,"span",5),V.ɵɵelementEnd(),V.ɵɵelementContainerEnd()),2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵproperty("ngStyle",V.ɵɵpureFunction3(3,$,e.data.styles.colors.accentColor,"1px solid "+e.data.styles.colors.accentColor,e.data.styles.colors.accentBgColor)),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.lastNumberPhone),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",e.lastNumberPhone)}}function Z(e,t){1&e&&(V.ɵɵelementStart(0,"span"),V.ɵɵtext(1," ¿No has recibido el código en tu teléfono? "),V.ɵɵelementEnd())}function K(e,t){if(1&e&&(V.ɵɵelementStart(0,"span"),V.ɵɵtext(1),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵtextInterpolate1(" ¿No has recibido el código en el teléfono acabado en ",e.lastNumberPhone,"? ")}}const Q=function(e,t){return{color:e,background:t}};function X(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementContainerStart(0),V.ɵɵelementStart(1,"small",11),V.ɵɵtemplate(2,Z,2,0,"span",5),V.ɵɵtemplate(3,K,2,1,"span",5),V.ɵɵelementStart(4,"a",12),V.ɵɵlistener("click",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext();return V.ɵɵresetView(t.resendOTP())})),V.ɵɵtext(5,"Reenviar"),V.ɵɵelementEnd()(),V.ɵɵelementContainerEnd()}if(2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵproperty("ngStyle",V.ɵɵpureFunction3(4,$,e.data.styles.colors.dangerColor,"1px solid "+e.data.styles.colors.dangerColor,e.data.styles.colors.dangerBgColor)),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.lastNumberPhone),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",e.lastNumberPhone),V.ɵɵadvance(1),V.ɵɵproperty("ngStyle",V.ɵɵpureFunction2(8,Q,e.data.styles.colors.dangerTextButtonColor,e.data.styles.colors.dangerColor))}}let J=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.solucitudesService=n,this.activeRoute=i,this.next=new V.EventEmitter(null),this.errPhone=new V.EventEmitter(null),this.resendO=new V.EventEmitter(null),this.secsCount=60,this.lastNumberPhone="XXX"}ngOnInit(){this.form=this.fb.group({code1:[null,[p.Validators.required,p.Validators.maxLength(6),p.Validators.minLength(6)]]}),this.initSecsInterval(),this.activeRoute.queryParams.subscribe((e=>{e&&e.request_id&&(this.requestID=e.request_id)}),(e=>{console.error(e)})),this.solicitud&&this.solicitud.person_phone&&this.setPhone(this.solicitud.person_phone)}setPhone(e){let t="XXX";e&&(t=(""+e).slice(-3)),this.lastNumberPhone=t}initSecsInterval(){this.interv=setInterval((()=>{this.secsCount--,this.secsCount<=0&&this.finishSecsInterval()}),1e3)}finishSecsInterval(){this.interv&&clearInterval(this.interv)}nextStep(){let e={code:this.getCode()};this.next.emit(e)}getCode(){return this.form.get("code1").value}capturePasteEvent(e){return(0,D.Z)((function*(){}))()}errorStep(){this.errPhone.emit(!0)}setInputEvent(e){""!=e.target.value?j(e.target).next().focus():"Backspace"==e.code&&j(e.target).prev().focus()}resendOTP(){this.resendO.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(P.gz))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-otp-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep",errPhone:"errorPhone",resendO:"resendOTP"},decls:16,vars:20,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"title","py-2"],[4,"ngIf"],[1,"flex","gap-2","items-center","justify-start","w-full","max-w-[200px]"],["appearance","outline",1,"w-full","flex-1"],["tabindex","1","maxlength","6","minlength","1","formControlName","code1","type","text","matInput","",3,"change","keyup"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","next-button","mat-flat-button","","type","button",1,"px-8",3,"disabled","click"],[1,"info-time","w-fit",3,"ngStyle"],[1,"ml-4",3,"ngStyle","click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementStart(5,"div",4),V.ɵɵtemplate(6,G,4,7,"ng-container",5),V.ɵɵtemplate(7,X,6,11,"ng-container",5),V.ɵɵelementEnd(),V.ɵɵelementStart(8,"div",6)(9,"mat-form-field",7)(10,"mat-label"),V.ɵɵtext(11," Código OTP "),V.ɵɵelementEnd(),V.ɵɵelementStart(12,"input",8),V.ɵɵlistener("change",(function(e){return t.capturePasteEvent(e)}))("keyup",(function(e){return t.setInputEvent(e)})),V.ɵɵelementEnd()()()(),V.ɵɵelementStart(13,"div",9)(14,"button",10),V.ɵɵlistener("click",(function(){return t.nextStep()})),V.ɵɵtext(15,"Siguiente"),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵproperty("formGroup",t.form),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.otp.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,18,t.texts.otp.description||""),V.ɵɵsanitizeHtml),V.ɵɵadvance(3),V.ɵɵproperty("ngIf",t.secsCount&&t.secsCount>0),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!t.secsCount||t.secsCount<=0),V.ɵɵadvance(7),V.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),V.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,i.PC,u.lW,A.KE,A.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,B.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function ee(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",1),V.ɵɵelement(1,"div",2)(2,"div",3),V.ɵɵpipe(3,"safeHtml"),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",e.texts.success.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",e.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(3,8,e.texts.success.description||""),V.ɵɵsanitizeHtml)}}let te=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r}ngOnInit(){}save(){}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(y.o),V.ɵɵdirectiveInject(I.T))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-success-step"]],inputs:{data:"data",texts:"texts"},decls:1,vars:1,consts:[["class"," pt-4 pb-8 flex flex-col animated fadeIn",4,"ngIf"],[1,"pt-4","pb-8","flex","flex-col","animated","fadeIn"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&V.ɵɵtemplate(0,ee,4,10,"div",0),2&e&&V.ɵɵproperty("ngIf",!t.data.config.infiniteLoopInCompleted)},dependencies:[i.O5,B.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function ne(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",5)(1,"button",6),V.ɵɵlistener("click",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext();return V.ɵɵresetView(t.retry())})),V.ɵɵtext(2,"Intentarlo nuevamente"),V.ɵɵelementEnd()()}if(2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}function ie(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",5)(1,"button",6),V.ɵɵlistener("click",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext();return V.ɵɵresetView(t.newRequest())})),V.ɵɵtext(2,"Crear nueva solicitud"),V.ɵɵelementEnd()()}if(2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}let re=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryOp=new V.EventEmitter(null),this.newReq=new V.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryOp.emit(this.solicitud.request_id)}newRequest(){this.newReq.emit(this.solicitud.request_id)}getIfRetryIsAllowed(){return"failed_with_retry"==this.solicitud}getIfNewRequestIsAllowed(){return"failed_documents_downloaded"==this.solicitud}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(y.o),V.ɵɵdirectiveInject(I.T))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-fail-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{retryOp:"retry",newReq:"newRequest"},decls:7,vars:8,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"text-red-500","title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],["class","flex items-center justify-end gap-2 p-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"div",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementEnd(),V.ɵɵtemplate(5,ne,3,6,"div",4),V.ɵɵtemplate(6,ie,3,6,"div",4),V.ɵɵelementEnd()),2&e&&(V.ɵɵadvance(2),V.ɵɵproperty("innerHTML",t.texts.fail.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,6,t.texts.fail.description),V.ɵɵsanitizeHtml),V.ɵɵadvance(2),V.ɵɵproperty("ngIf",t.solicitud&&"failed_with_retry"==t.solicitud.status_code),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.solicitud&&"failed_documents_downloaded"==t.solicitud.status_code))},dependencies:[i.O5,u.lW,B.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();n(6866);var se=n(1763);const oe={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let ae=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.next=new V.EventEmitter(null),this.goTermsCert=new V.EventEmitter(null),this.acceptTerms=!1}ngOnInit(){this.setForm(this.solicitud?this.solicitud:null)}setForm(e){this.form=this.fb.group({name:[e&&e.person_name?e.person_name:null],lastname:[e&&e.person_last_name?e.person_last_name:null],dni:[(e?e.person_document_number||e.phone:null)||null]})}nextStep(){this.next.emit(!0)}gotoTermsAndConditionsCertificate(e){e.preventDefault(),e.stopPropagation(),this.goTermsCert.emit(!0)}setTerms(e){this.acceptTerms=e}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],inputs:{data:"data",flowName:"flowName",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep",goTermsCert:"goToTermsCertificate"},features:[V.ɵɵProvidersFeature([{provide:M.sG,useValue:oe},{provide:V.LOCALE_ID,useValue:"es-ES"}])],decls:16,vars:19,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"mt-3","flex","justify-start","items-center","w-full","flex-100"],[3,"color","changeCheckbox"],["target","_blank",1,"text-sm","hover:text-blue-500",3,"click"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"disabled","click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementEnd(),V.ɵɵelementStart(5,"div")(6,"div",4)(7,"belender-checkbox",5),V.ɵɵlistener("changeCheckbox",(function(e){return t.setTerms(e)})),V.ɵɵtext(8," He leído y acepto los "),V.ɵɵelementStart(9,"a",6),V.ɵɵlistener("click",(function(e){return t.gotoTermsAndConditionsCertificate(e)})),V.ɵɵelementStart(10,"u"),V.ɵɵtext(11,"términos y condiciones"),V.ɵɵelementEnd()(),V.ɵɵtext(12," para la emisión del certificado "),V.ɵɵelementEnd()()(),V.ɵɵelementStart(13,"div",7)(14,"button",8),V.ɵɵlistener("click",(function(){return t.nextStep()})),V.ɵɵtext(15,"Siguiente"),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵproperty("formGroup",t.form),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.form.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,17,t.texts.form.description||""),V.ɵɵsanitizeHtml),V.ɵɵadvance(4),V.ɵɵproperty("color",t.data.styles.colors.title),V.ɵɵadvance(7),V.ɵɵstyleProp("color",t.acceptTerms?t.data.styles.colors.btnText:"")("background",t.acceptTerms?t.data.styles.colors.btnBg:"")("border-radius",t.data.styles.btnRound+"px"),V.ɵɵproperty("disabled",!t.acceptTerms))},dependencies:[u.lW,p.ɵNgNoValidate,p.NgControlStatusGroup,p.FormGroupDirective,se.b,B.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();var le=n(5145);let ce=(()=>{class e{constructor(e){this.utils=e,this.status="",this.label="Cargando datos.."}ngOnInit(){this.data.config&&this.data.config.infiniteLoopInCompleted?this.label="":le.Z.forEach((e=>{e.text==this.status&&(this.label=e.label)}))}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(H.F))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-loading-step"]],inputs:{status:"status",data:"data"},decls:5,vars:1,consts:[[1,"fixed-content","h-full"],[1,"h-full","py-10","flex","flex-col","items-center"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"div",0)(1,"div",1),V.ɵɵelement(2,"mat-progress-spinner"),V.ɵɵelementStart(3,"p"),V.ɵɵtext(4),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵadvance(4),V.ɵɵtextInterpolate(t.label))},dependencies:[b.Ou],styles:[".content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),de=(()=>{class e{constructor(){}ngOnInit(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-no-service-step"]],inputs:{data:"data",texts:"texts"},decls:5,vars:10,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementEnd()()),2&e&&(V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.noService.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,8,t.texts.noService.description),V.ɵɵsanitizeHtml))},dependencies:[p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm,B.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),ue=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryOp=new V.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryOp.emit(this.solicitud.request_id)}getTextStatus(){switch(this.solicitud.status_code){case"abandoned_after_waiting_otp_seguridad_social":return"Abandonado después de esperar OTP de Seguridad Social";case"abandoned_after_invalid_otp_seguridad_social":return"Abandonado despues de OTP inválido en Seguridad Social";case"abandoned_after_invalid_otp_aeat":return"Abandonado despues de OTP inválido en AEAT";case"abandoned_after_waiting_otp_aeat":return"Abandonado después de esperar OTP de AEAT";default:return this.solicitud.status_code}}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(y.o),V.ɵɵdirectiveInject(I.T))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-abandoned-step"]],inputs:{solicitud:"solicitud",data:"data",texts:"texts"},outputs:{retryOp:"retry"},decls:10,vars:17,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-md","mb-2","mt-2"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"div",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementStart(5,"div",4),V.ɵɵtext(6),V.ɵɵelementEnd()(),V.ɵɵelementStart(7,"div",5)(8,"button",6),V.ɵɵlistener("click",(function(){return t.retry()})),V.ɵɵtext(9,"Intentarlo nuevamente"),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.abandoned.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,15,t.texts.abandoned.description),V.ɵɵsanitizeHtml),V.ɵɵadvance(3),V.ɵɵtextInterpolate1(" Estado: ",t.getTextStatus()," "),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW,B.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function he(e,t){return n=>{const i=n.controls[t];i.errors&&!i.errors.confirmedValidator||i.setErrors(n.controls[e].value!==i.value?{confirmedValidator:!0}:null)}}function pe(e,t){1&e&&(V.ɵɵelementStart(0,"mat-hint",12),V.ɵɵtext(1," La contraseña es requerida "),V.ɵɵelementEnd())}function me(e,t){1&e&&(V.ɵɵelementStart(0,"mat-hint",12),V.ɵɵtext(1," La contraseña debe tener al menos 8 carácteres "),V.ɵɵelementEnd())}function fe(e,t){1&e&&(V.ɵɵelementStart(0,"mat-hint",12),V.ɵɵtext(1," Es necesario repetir la contraseña "),V.ɵɵelementEnd())}function ge(e,t){1&e&&(V.ɵɵelementStart(0,"mat-hint",12),V.ɵɵtext(1," Las contraseñas deben coincidir "),V.ɵɵelementEnd())}function _e(e,t){1&e&&(V.ɵɵelementStart(0,"mat-hint",12),V.ɵɵtext(1," La contraseña debe tener al menos 8 carácteres "),V.ɵɵelementEnd())}const ve={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let ye=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.form=new p.FormGroup({}),this.next=new V.EventEmitter(null)}ngOnInit(){this.setForm()}get f(){return this.form.controls}submit(){this.nextStep()}setForm(){this.form=this.fb.group({password:["",[p.Validators.required]],confirm_password:["",[p.Validators.required]]},{validator:he("password","confirm_password")})}nextStep(){let e={password:this.form.get("password").value,phone:this.form.get("confirm_password").value};this.next.emit(e)}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.FormBuilder),V.ɵɵdirectiveInject(H.F))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-password-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep"},features:[V.ɵɵProvidersFeature([{provide:M.sG,useValue:ve},{provide:V.LOCALE_ID,useValue:"es-ES"}])],decls:22,vars:23,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"my-3","flex","flex-col","md:flex-row","flex-wrap","gap-2","md:justify-between"],["appearance","outline",1,"w-full","flex-1","belender-form-field"],["formControlName","password","minlength","8","type","password","matInput",""],["class","text-red-500",4,"ngIf"],["appearance","outline",1,"mb-4","w-full","flex-1","belender-form-field"],["formControlName","confirm_password","minlength","8","type","password","matInput",""],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"disabled","click"],[1,"text-red-500"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementEnd(),V.ɵɵelementStart(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),V.ɵɵtext(8,"Contraseña"),V.ɵɵelementEnd(),V.ɵɵelement(9,"input",6),V.ɵɵtemplate(10,pe,2,0,"mat-hint",7),V.ɵɵtemplate(11,me,2,0,"mat-hint",7),V.ɵɵelementEnd(),V.ɵɵelementStart(12,"mat-form-field",8)(13,"mat-label"),V.ɵɵtext(14,"Repite Contraseña"),V.ɵɵelementEnd(),V.ɵɵelement(15,"input",9),V.ɵɵtemplate(16,fe,2,0,"mat-hint",7),V.ɵɵtemplate(17,ge,2,0,"mat-hint",7),V.ɵɵtemplate(18,_e,2,0,"mat-hint",7),V.ɵɵelementEnd()(),V.ɵɵelementStart(19,"div",10)(20,"button",11),V.ɵɵlistener("click",(function(){return t.nextStep()})),V.ɵɵtext(21," Guardar "),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵproperty("formGroup",t.form),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.password.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,21,t.texts.password.description),V.ɵɵsanitizeHtml),V.ɵɵadvance(7),V.ɵɵproperty("ngIf",t.f.password.touched&&t.f.password.invalid&&t.f.password.errors.required),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.f.password.invalid&&t.f.password.errors.minlength),V.ɵɵadvance(5),V.ɵɵproperty("ngIf",t.f.confirm_password.touched&&t.f.confirm_password.touched&&t.f.confirm_password.invalid&&t.f.confirm_password.errors.required),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.f.confirm_password.touched&&t.f.confirm_password.touched&&t.f.confirm_password.invalid&&t.f.confirm_password.errors.confirmedValidator),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.f.confirm_password.invalid&&t.f.confirm_password.errors.minlength),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.form.invalid?"":t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),V.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,u.lW,A.KE,A.bx,A.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.FormGroupDirective,p.FormControlName,B.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),be=(()=>{class e{constructor(e,t,n){this.route=e,this.dialogRef=t,this.cd=n}ngOnInit(){}closeModal(){this.dialogRef.close()}accept(){this.dialogRef.close(!0)}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(P.F0),V.ɵɵdirectiveInject(z.so),V.ɵɵdirectiveInject(V.ChangeDetectorRef))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["vex-cert-modal"]],standalone:!0,features:[V.ɵɵStandaloneFeature],decls:27,vars:0,consts:[[1,"-m-6"],[1,"flex","items-center","justify-between","gap-4","px-6","py-3","border-b","border-divider"],[1,"text-xl","flex","items-center"],["type","button","mat-icon-button","",1,"flex-none","ltr:-mr-2","rtl:-ml-2","text-secondary",3,"click"],["svgIcon","mat:close"],[1,"modal-content","p-3"],[1,"table","border","w-full","border-slate-300"],[1,"head","w-full","flex","justify-start","bg-slate-100"],[1,"th","w-1/3","text-left","p-1","border","border-slate-300"],[1,"head","w-full","flex","justify-start"],[1,"footer","mt-4","gap-3","p-4","flex","justify-end"],["mat-flat-button","","type","button",1,"px-8",3,"click"],["color","primary","mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),V.ɵɵtext(3," Selecciona un certificado "),V.ɵɵelementEnd(),V.ɵɵelementStart(4,"button",3),V.ɵɵlistener("click",(function(){return t.closeModal()})),V.ɵɵelement(5,"mat-icon",4),V.ɵɵelementEnd()(),V.ɵɵelementStart(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8),V.ɵɵtext(10,"Asunto"),V.ɵɵelementEnd(),V.ɵɵelementStart(11,"div",8),V.ɵɵtext(12,"Emisor"),V.ɵɵelementEnd(),V.ɵɵelementStart(13,"div",8),V.ɵɵtext(14,"Número de serie"),V.ɵɵelementEnd()(),V.ɵɵelementStart(15,"div",9)(16,"div",8),V.ɵɵtext(17," CHECA OLIVARES ROGER "),V.ɵɵelementEnd(),V.ɵɵelementStart(18,"div",8),V.ɵɵtext(19," AC FNMT Usuarios "),V.ɵɵelementEnd(),V.ɵɵelementStart(20,"div",8),V.ɵɵtext(21," 65JH5J534HK565K676HK676J4K4J "),V.ɵɵelementEnd()()()(),V.ɵɵelementStart(22,"div",10)(23,"button",11),V.ɵɵlistener("click",(function(){return t.closeModal()})),V.ɵɵtext(24,"Cancelar"),V.ɵɵelementEnd(),V.ɵɵelementStart(25,"button",12),V.ɵɵlistener("click",(function(){return t.accept()})),V.ɵɵtext(26,"Aceptar"),V.ɵɵelementEnd()()())},dependencies:[i.ez,d.Ps,d.Hw,u.ot,u.lW,M.si,h.Tx],styles:[".modal-content[_ngcontent-%COMP%]{max-height:60vh;overflow-y:auto}.th[_ngcontent-%COMP%]{white-space:inherit;text-overflow:ellipsis;overflow:hidden}"]}),e})();const xe={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let we=(()=>{class e{constructor(e,t,n){this.fb=e,this.utils=t,this.dialog=n,this.form=new p.FormGroup({}),this.next=new V.EventEmitter(null),this.allGood=!1}ngOnInit(){this.setForm()}submit(){this.nextStep()}setForm(){}openModal(){const e=this;this.dialog.open(be,{panelClass:"vex-dialog-glossy",width:"100%",maxWidth:"600px"}).afterClosed().subscribe((t=>{t&&e.submit(),console.warn(t)}))}nextStep(){this.next.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.FormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(z.uw))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-sign-cert-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep"},features:[V.ɵɵProvidersFeature([{provide:M.sG,useValue:xe},{provide:V.LOCALE_ID,useValue:"es-ES"}])],decls:125,vars:6,consts:[[1,"animated","fadeIn","fixed-content","px-2"],[1,"mb-3","flex","flex-col","gap-2","pdf-text","bg-slate-100/60","px-4","py-6","max-h-[300px]","overflow-y-auto","rounded-md"],[1,"pl-4"],[1,"mt-4","flex","justify-end"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1)(2,"h1"),V.ɵɵtext(3,"AUTORIZACIÓN A OBTENER LA DOCUMENTACIÓN AUTOMÁTICAMENTE CON EL CERTIFICADO DIGITAL"),V.ɵɵelementEnd(),V.ɵɵelementStart(4,"p"),V.ɵɵtext(5,"Los presentes Términos y Condiciones (en adelante, los "),V.ɵɵelementStart(6,"b"),V.ɵɵtext(7,"“Términos y Condiciones”"),V.ɵɵelementEnd(),V.ɵɵtext(8," ) regulan, la descarga, acceso, navegación y uso de la plataforma propiedad de "),V.ɵɵelementStart(9,"b"),V.ɵɵtext(10,"BELENDER"),V.ɵɵelementEnd(),V.ɵɵtext(11," (en adelante, la "),V.ɵɵelementStart(12,"b"),V.ɵɵtext(13,"“Plataforma”"),V.ɵɵelementEnd(),V.ɵɵtext(14," ), la cual es titularidad de ALL4LEND S.L., con CIF B-67425769, con domicilio social en la Calle del Sol 19, Sant Andreu de la Barca, 08740, Barcelona, España. (en adelante, "),V.ɵɵelementStart(15,"b"),V.ɵɵtext(16,"“BELENDER”"),V.ɵɵelementEnd(),V.ɵɵtext(17," )."),V.ɵɵelementEnd(),V.ɵɵelementStart(18,"p"),V.ɵɵtext(19,"Los presentes Términos y Condiciones están dirigidos exclusivamente a los Usuarios registrados en la Plataforma y, en su caso, podrán ser complementados con las Condiciones Particulares aplicables en cada caso según se fijen en la Plataforma, así como con el Aviso Legal, la Política de Privacidad y cualquier otro documento que incluya BELENDER en la Plataforma."),V.ɵɵelementEnd(),V.ɵɵelementStart(20,"h2"),V.ɵɵtext(21,"1. OBJETO DE LA PLATAFORMA Y DESCRIPCIÓN DEL SERVICIO"),V.ɵɵelementEnd(),V.ɵɵelementStart(22,"p"),V.ɵɵtext(23,"BELENDER es una plataforma digital basada en la prestación de un servicio a entidades financieras por medio del cual recopila información, documentación e informes de clientes consumidores (en adelante, los “Usuarios”) que solicitan un préstamo o crédito y que son necesarios para la tramitación de su concesión por la propia entidad financiera, y ello mediante el acceso por parte de BELENDER, en nombre y por cuenta del propio Usuario, a sus portales personales de la Seguridad Social y de la AEAT, de cara a que el Usuario se ahorre toda esta gestión burocrática de solicitud de documentación a las administraciones públicas, tramitándolo directamente BELENDER con la propia entidad financiera. Este servicio es gratuito para el Usuario."),V.ɵɵelementEnd(),V.ɵɵelementStart(24,"p"),V.ɵɵtext(25,"La operativa de esta Plataforma se basa en que FINANCIADOR redirige al Usuario solicitante de un préstamo a la herramienta web de BELENDER. Ya en entorno BELENDER, el Usuario facilita su información personal, otorga el consentimiento legal al uso de la herramienta automática que se pone a su disposición y facilita un código OTP que recibirá de la Seguridad Social y/o AEAT para hacer uso de su sistema Clave PIN o su teléfono informado en la Seguridad Social. "),V.ɵɵelementEnd(),V.ɵɵelementStart(26,"p"),V.ɵɵtext(27,"En concreto, los documentos que se descargan son:"),V.ɵɵelementEnd(),V.ɵɵelementStart(28,"p"),V.ɵɵtext(29,"LISTAR DOCUMENTOS"),V.ɵɵelementEnd(),V.ɵɵelementStart(30,"h2"),V.ɵɵtext(31,"2. ACEPTACIÓN DE LOS TÉRMINOS Y CONDICIONES"),V.ɵɵelementEnd(),V.ɵɵelementStart(32,"p"),V.ɵɵtext(33,"Mediante la aceptación de los Términos y Condiciones, el Usuario se compromete a actuar en todo momento de conformidad con las disposiciones establecidas en el clausulado del presente texto legal. En caso de no estar de acuerdo con todo o parte de estos Términos y Condiciones, el Usuario debe abstenerse de utilizar la Plataforma y los servicios en ella ofrecidos por BELENDER."),V.ɵɵelementEnd(),V.ɵɵelementStart(34,"p"),V.ɵɵtext(35,"El servicio prestado en esta Plataforma se rige por: "),V.ɵɵelementEnd(),V.ɵɵelementStart(36,"ul",2)(37,"li"),V.ɵɵtext(38,"(i) estos Términos y Condiciones;"),V.ɵɵelementEnd(),V.ɵɵelementStart(39,"li"),V.ɵɵtext(40,"(ii) Condiciones Particulares que puedan publicarse en la Plataforma o que queden regulados y reflejados en el Sitio web;"),V.ɵɵelementEnd(),V.ɵɵelementStart(41,"li"),V.ɵɵtext(42,"(iii) las leyes vigentes y aplicables, regulaciones sectoriales y los criterios y prácticas generales."),V.ɵɵelementEnd()(),V.ɵɵelementStart(43,"p"),V.ɵɵtext(44,"Al aceptar los presentes Términos y Condiciones Generales, el usuario manifiesta ser mayor de 18 años y/o tener capacidad legal plena para entender y aceptar el contenido de estos Términos y Condiciones, eximiendo y manteniendo indemne a BELENDER de cualesquiera reclamaciones, denuncias o daños causados por el incumplimiento de esta condición, la cual se entiende como conditio sine qua non para el uso y aprovechamiento de los servicios ofrecidos por BELENDER en la misma. "),V.ɵɵelementEnd(),V.ɵɵelementStart(45,"h2"),V.ɵɵtext(46,"3. CESIÓN DE DATOS"),V.ɵɵelementEnd(),V.ɵɵelementStart(47,"p"),V.ɵɵtext(48,"El solicitante, mediante su autorización expresa, accede a utilizar el servicio de Belender para que le facilite una herramienta que automatiza la obtención de la Documentación ante la administración u organismo públicos competentes. Una vez obtenida, Belender facilitará la Documentación a FINANCIADOR con la exclusiva finalidad de que ésta con la finalidad de que ésta pueda realizar la evaluación de la solvencia de la operación de financiación solicitada por el Usuario y se pueda poner en contacto con usted para asesorarle al respecto."),V.ɵɵelementEnd(),V.ɵɵelementStart(49,"h2"),V.ɵɵtext(50,"4. OBLIGACIONES DE BELENDER"),V.ɵɵelementEnd(),V.ɵɵelementStart(51,"ul",2)(52,"li"),V.ɵɵtext(53,"Mediante estos Términos y Condiciones, BELENDER se compromete con los Usuarios a proporcionarles el servicio de la forma en la que se describe en los presentes Términos y Condiciones."),V.ɵɵelementEnd(),V.ɵɵelementStart(54,"li"),V.ɵɵtext(55,"Tratar con diligencia y absoluta confidencialidad la información y documentación a la que tenga acceso con motivo de la prestación de los servicios y solo para la correcta prestación de los mismos."),V.ɵɵelementEnd(),V.ɵɵelementStart(56,"li"),V.ɵɵtext(57,"Poner todos los medios para resolver a la mayor diligencia cualquier incidencia técnica que pudiera producirse en la Plataforma durante la prestación de los servicios, si bien no garantiza su continua disponibilidad de la misma por motivos ajenos a su voluntad y medios."),V.ɵɵelementEnd(),V.ɵɵelementStart(58,"li"),V.ɵɵtext(59,"Emplear toda la atención y profesionalidad que se consideren razonables para la prestación del servicio que se ofrece."),V.ɵɵelementEnd()(),V.ɵɵelementStart(60,"h2"),V.ɵɵtext(61,"5. OBLIGACIONES DE LOS USUARIOS"),V.ɵɵelementEnd(),V.ɵɵelementStart(62,"ul",2)(63,"li"),V.ɵɵtext(64,"Para participar en la Plataforma y beneficiarse del servicio ofrecido por BELENDER, los Usuarios deben leer y aceptar los presentes Términos y Condiciones, así como cualquier otra condición particular que resultare de aplicación a la presente relación contractual por BELENDER."),V.ɵɵelementEnd(),V.ɵɵelementStart(65,"li"),V.ɵɵtext(66,"Los Usuarios son exclusivamente responsables de garantizar la veracidad de los datos personales proporcionados en el momento de solicitud del servicio a BELENDER, de forma que tanto la identificación, como la prestación de los servicios por parte de BELENDER a través de la Plataforma se pueda llevar a cabo de forma correcta."),V.ɵɵelementEnd(),V.ɵɵelementStart(67,"li"),V.ɵɵtext(68,"Los Usuarios se comprometen a uso diligente y correcto de los servicios ofrecidos por BELENDER, asumiendo toda la responsabilidad que pudiera derivarse de un mal uso de los mismos."),V.ɵɵelementEnd()(),V.ɵɵelementStart(69,"h2"),V.ɵɵtext(70,"6. CONFIDENCIALIDAD"),V.ɵɵelementEnd(),V.ɵɵelementStart(71,"p"),V.ɵɵtext(72,"BELENDER se obligan a guardar secreto y confidencialidad sobre cuantos datos del Usuario le sean facilitados por la entidad bancaria, así como también sobre cuanta información y documentación BELENDER tenga acceso con motivo de la prestación de los servicios objeto de los presentes Términos y Condiciones."),V.ɵɵelementEnd(),V.ɵɵelementStart(73,"p"),V.ɵɵtext(74,"En este sentido, toda la información y documentación compartida con BELENDER con el objetivo de ejecutar la prestación de servicios será considerada confidencial, especialmente los datos de carácter personal de los Usuarios. "),V.ɵɵelementEnd(),V.ɵɵelementStart(75,"h2"),V.ɵɵtext(76,"7. PROTECCIÓN DE DATOS PERSONALES"),V.ɵɵelementEnd(),V.ɵɵelementStart(77,"p"),V.ɵɵtext(78,"Los Usuarios se comprometen a aceptar la Política de Privacidad con anterioridad a la prestación de los servicios por parte de BELENDER."),V.ɵɵelementEnd(),V.ɵɵelementStart(79,"p"),V.ɵɵtext(80,"All4Lend SL, con NIF B67425769 y domicilio en Barcelona, calle Sol 19 (0874), es el responsable del tratamiento de sus datos."),V.ɵɵelementEnd(),V.ɵɵelementStart(81,"p"),V.ɵɵtext(82,"Los Usuarios están informados de que sus datos de carácter personal se almacenan con arreglo a lo dispuesto en el Reglamento (UE) 2016/679, del Parlamento Europeo y del Consejo, de 27 de abril de 2016, relativo a las personas físicas en lo que respecta al tratamiento de datos personales y a la libre circulación de estos datos (en adelante, "),V.ɵɵelementStart(83,"b"),V.ɵɵtext(84,"RGPD"),V.ɵɵelementEnd(),V.ɵɵtext(85," ) y lo establecido en la normativa española vigente en esta materia."),V.ɵɵelementEnd(),V.ɵɵelementStart(86,"p"),V.ɵɵtext(87,"De acuerdo con lo establecido en el RGPD, los datos personales de los Usuarios serán incorporados a nuestro sistema de tratamiento de datos personales en base al consentimiento expreso del interesado y conservándose mientras se mantenga la misma, así como el tiempo necesario para el cumplimiento de responsabilidades por parte de BELENDER. "),V.ɵɵelementEnd(),V.ɵɵelementStart(88,"p"),V.ɵɵtext(89,"Tal y como se informa en el apartado 3, una vez recabados, sus datos serán cedidos a FINANCIADOR para la evaluación de la solvencia de la operación solicitada por usted. Una vez recibidos los datos por la Entidad financiera, la misma los tratará en calidad de responsable del tratamiento de los datos."),V.ɵɵelementEnd(),V.ɵɵelementStart(90,"p"),V.ɵɵtext(91,"BELENDER informa de la posibilidad que tienen los Usuarios de ejercer los siguientes derechos sobre sus datos personales: derecho de acceso, rectificación, supresión u olvido, limitación, oposición, portabilidad y a retirar el consentimiento prestado (sin perjuicio de la legitimad de los tratamientos realizados mientras se prestó dicho consentimiento), lo que también aparece definido y explicado con más detalle en la Política de Privacidad de BELENDER."),V.ɵɵelementEnd(),V.ɵɵelementStart(92,"p"),V.ɵɵtext(93,"Para ello podrá enviar un email a dpo@belender.eu acompañado de una fotocopia del DNI, o dirigir un escrito ejerciendo sus derechos a la siguiente dirección postal: la Calle del Sol 19, Sant Andreu de la Barca, 08740, Barcelona, España. Igualmente, los Usuarios podrán dirigir sus reclamaciones a la Agencia Española de Protección de Datos (https://www.aepd.es/es) si entienden que sus derechos no han sido atendidos correctamente."),V.ɵɵelementEnd(),V.ɵɵelementStart(94,"h2"),V.ɵɵtext(95,"8. PROPIEDAD INTELECTUAL E INDUSTRIAL"),V.ɵɵelementEnd(),V.ɵɵelementStart(96,"p"),V.ɵɵtext(97,"Mediante la aceptación de los presentes Términos y Condiciones, BELENDER manifiesta, y los Usuarios aceptan, que BELENDER es titular de todos los derechos de propiedad intelectual, industrial y cualesquiera otros existentes sobre la Plataforma, nombres de dominio y cualesquiera otros que se entiendan incluidos en la misma."),V.ɵɵelementEnd(),V.ɵɵelementStart(98,"p"),V.ɵɵtext(99,"En este sentido, BELENDER y los Usuarios manifiestan y reconocen que en ningún caso la prestación de los servicios aquí definidos se entenderá como una cesión, autorización, transferencia o licencia de los derechos de propiedad intelectual, industrial y de cualquier otro tipo de los que sea titular o cesionario BELENDER, siendo sólo posible, por parte de los Usuarios, la utilización de cualesquiera contenidos, marcas, nombres de dominio y signos distintivos en el más estricto ámbito del desarrollo de la presente relación contractual, y única y exclusivamente mientras dure la misma."),V.ɵɵelementEnd(),V.ɵɵelementStart(100,"p"),V.ɵɵtext(101,"Asimismo, los Usuarios tienen terminantemente prohibida la utilización, reproducción, copia, distribución, comunicación pública, transformación y/o cualquier otra explotación de, con carácter meramente enunciativo, pero no limitativo, el código fuente, código objeto, nombres de dominio, de parte o de totalidad de la Plataforma, así como, de forma meramente enunciativa, pero no limitativa, cualquier acto de ingeniería inversa respecto de la Plataforma y/o cualquiera de sus contenidos."),V.ɵɵelementEnd(),V.ɵɵelementStart(102,"h2"),V.ɵɵtext(103,"9. RESPONSABILIDAD"),V.ɵɵelementEnd(),V.ɵɵelementStart(104,"p"),V.ɵɵtext(105,"Los Usuarios mantendrán indemne a BELENDER en todo momento frente a cualquier reclamación, queja, sanción, multa o cualquier otra acción judicial y/o administrativa, pública y/o privada, que pueda suponer o haya supuesto un daño patrimonial o moral a BELENDER."),V.ɵɵelementEnd(),V.ɵɵelementStart(106,"p"),V.ɵɵtext(107,"En relación con lo anterior, los Usuarios responderán frente a BELENDER por cualquier incumplimiento o actuación realizada por los mismos contraviniendo los presentes Términos y Condiciones, la legislación aplicable en cualquier materia y cualesquiera condiciones particulares que pudieran existir y que sean aplicables a la presente relación contractual entre BELENDER y el Usuario."),V.ɵɵelementEnd(),V.ɵɵelementStart(108,"h2"),V.ɵɵtext(109,"10.MISCELÁNEA"),V.ɵɵelementEnd(),V.ɵɵelementStart(110,"p"),V.ɵɵtext(111,"En el caso de que cualquiera de las previsiones de estos Términos y Condiciones fuera considerada en todo o en parte contraria a la Ley o inejecutable, quedará eliminada de los mismos y, si ello fuera posible, se sustituirá por otra estipulación con similar efecto a la anulada, continuando en todo caso la validez del contrato en sus estipulaciones restantes, que no se verán afectadas por la nulidad parcial."),V.ɵɵelementEnd(),V.ɵɵelementStart(112,"p"),V.ɵɵtext(113,"Los presentes Términos y Condiciones están redactados en español, sin perjuicio de que se puedan traducir bajo determinadas condiciones a otros idiomas, como el inglés. Sin perjuicio de lo anterior, en caso de duda o conflicto entre la redacción de los Términos y Condiciones en la versión española y cualquier otro idioma, prevalecerá siempre la versión española."),V.ɵɵelementEnd(),V.ɵɵelementStart(114,"p"),V.ɵɵtext(115,"BELENDER se reserva el derecho a modificar la presentación, configuración y contenido de los presentes Términos y Condiciones, así como de la Plataforma, y/o las condiciones requeridas para su acceso y/o utilización, previa notificación por escrito a los Usuarios. El acceso y utilización de los contenidos y servicios tras la entrada en vigor de sus modificaciones o los cambios en las condiciones suponen la aceptación de las mismas."),V.ɵɵelementEnd(),V.ɵɵelementStart(116,"p"),V.ɵɵtext(117,"Los presentes Términos y Condiciones se regirán por la legislación española. En caso de litigio sobre la interpretación, ejecución o validez de estos Términos y Condiciones, serán competentes los Juzgados y Tribunales del territorio de residencia del Usuario."),V.ɵɵelementEnd(),V.ɵɵelementStart(118,"p"),V.ɵɵtext(119,"En virtud de lo dispuesto en el Reglamento (UE) nº 524/2013 del Parlamento Europeo y del Consejo, de 21 de mayo de 2013, relativo a la resolución de litigios en línea en materia de consumo, BELENDER también le informa que, en caso de controversia, los Usuarios residente de la Unión Europea podrán acudir a la “Plataforma Online de Resolución de Conflictos” que ha desarrollado la Comisión Europea, con el fin de intentar resolver extrajudicialmente cualquier controversia que se derive de la prestación de servicios por parte de BELENDER."),V.ɵɵelementEnd(),V.ɵɵelementStart(120,"p"),V.ɵɵtext(121,"Para a acceder a la “Plataforma Online de Resolución de Conflictos” puede hacerlo a través del siguiente enlace: http://ec.europa.eu/consumers/odr/ "),V.ɵɵelementEnd(),V.ɵɵelementStart(122,"div",3)(123,"button",4),V.ɵɵlistener("click",(function(){return t.openModal()})),V.ɵɵtext(124,"Firmar con certificado"),V.ɵɵelementEnd()()()()),2&e&&(V.ɵɵadvance(123),V.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW,p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.pdf-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-weight:700;font-size:17px!important;line-height:18px!important;margin-bottom:15px}.pdf-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:700;font-size:15px!important;margin-top:20px}"]}),e})();function Ce(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",7),V.ɵɵelement(1,"img",8),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("src",e.data.styles.logoUrl,V.ɵɵsanitizeUrl)}}function Se(e,t){if(1&e&&V.ɵɵelement(0,"belender-loading-step",18),2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("status",null==e.solicitud?null:e.solicitud.status_code)("data",e.data)}}function Me(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-form-step",19),V.ɵɵlistener("goToTerms",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext(3);return V.ɵɵresetView(t.gotoTermsAndConditions())}))("goToTermsCertificate",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext(3);return V.ɵɵresetView(t.gotoTermsAndConditionsCertificate())}))("nextStep",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.gotoPassword(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Ie(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-password-step",20),V.ɵɵlistener("nextStep",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.sendPassword(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function ke(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-sign-cert-step",20),V.ɵɵlistener("nextStep",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.sendCert(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Ee(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-otp-step",21),V.ɵɵlistener("resendOTP",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext(3);return V.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.requestOTP(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Te(e,t){if(1&e&&V.ɵɵelement(0,"belender-success-step",22),2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)}}function Pe(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-fail-step",23),V.ɵɵlistener("retry",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.retryRequest(t))}))("newRequest",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.newRequest(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Oe(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-abandoned-step",24),V.ɵɵlistener("retry",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.retryRequest(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("solicitud",e.solicitud)("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)}}function De(e,t){if(1&e&&V.ɵɵelement(0,"belender-no-service-step",25),2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("data",e.data)}}function Le(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",26)(1,"div",27)(2,"h1",28),V.ɵɵtext(3,"No existe la solicitud"),V.ɵɵelementEnd()(),V.ɵɵelementStart(4,"div",29),V.ɵɵtext(5,"No existen solicitudes activas con el código requerido"),V.ɵɵelementEnd()()),2&e){const e=V.ɵɵnextContext(3);V.ɵɵadvance(4),V.ɵɵstyleProp("color",e.data.styles.colors.text)}}function Ae(e,t){if(1&e&&(V.ɵɵelementContainerStart(0),V.ɵɵtemplate(1,Se,1,2,"belender-loading-step",9),V.ɵɵtemplate(2,Me,1,3,"belender-form-step",10),V.ɵɵtemplate(3,Ie,1,3,"belender-password-step",11),V.ɵɵtemplate(4,ke,1,3,"belender-sign-cert-step",11),V.ɵɵtemplate(5,Ee,1,3,"belender-otp-step",12),V.ɵɵtemplate(6,Te,1,2,"belender-success-step",13),V.ɵɵtemplate(7,Pe,1,3,"belender-fail-step",14),V.ɵɵtemplate(8,Oe,1,3,"belender-abandoned-step",15),V.ɵɵtemplate(9,De,1,2,"belender-no-service-step",16),V.ɵɵtemplate(10,Le,6,2,"div",17),V.ɵɵelementContainerEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("ngIf","loading"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","form"==e.getStatus()&&!e.loading),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","password"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","sign"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","otp"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","success"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","failed"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","abandoned"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","no-service"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","no-exist"==e.getStatus())}}function Ne(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",30),V.ɵɵelement(1,"mat-progress-spinner",31),V.ɵɵelementStart(2,"p",32),V.ɵɵtext(3),V.ɵɵelementEnd()()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("value",e.spinnerValue)("mode",e.spinnerMode),V.ɵɵadvance(2),V.ɵɵtextInterpolate(e.loading)}}function Re(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",33)(1,"div",26)(2,"div",34),V.ɵɵtext(3,"Error!"),V.ɵɵelementEnd(),V.ɵɵelement(4,"div",35),V.ɵɵelementEnd(),V.ɵɵelementStart(5,"div",36)(6,"button",37),V.ɵɵlistener("click",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext(2);return V.ɵɵresetView(t.error=!1)})),V.ɵɵtext(7,"Ingresar manualmente"),V.ɵɵelementEnd()()()}if(2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(4),V.ɵɵstyleProp("color",e.data.styles.colors.text),V.ɵɵproperty("innerHTML",e.error,V.ɵɵsanitizeHtml)}}function je(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",2)(1,"div",3),V.ɵɵtemplate(2,Ce,2,1,"div",4),V.ɵɵtemplate(3,Ae,11,10,"ng-container",1),V.ɵɵtemplate(4,Ne,4,3,"div",5),V.ɵɵtemplate(5,Re,8,3,"div",6),V.ɵɵelementEnd()()),2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵstyleProp("background",e.data.styles.colors.background),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",e.data.styles.withLogo&&"loading"!=e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.error),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",e.loading&&!e.error),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.loading&&e.error)}}function Fe(e,t){if(1&e&&(V.ɵɵelementContainerStart(0),V.ɵɵelementStart(1,"div",38),V.ɵɵtext(2),V.ɵɵelementEnd(),V.ɵɵelementContainerEnd()),2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(2),V.ɵɵtextInterpolate1("TestMode ",e.testMode?"ON":"OFF","")}}let qe=class{constructor(e,t,n,i,r,s,o,a){this.cd=e,this.Activatedroute=t,this.utils=n,this.solicitudesService=i,this.customizationService=r,this.notis=s,this.webhooksService=o,this.dialog=a,this.data=null,this.disableActions=!1,this.step="created",this.waitingTime=15,this.loading=null,this.error=!1,this.spinnerMode="indeterminate",this.spinnerValue=0,this.subscribed=!1,this.testMode=!1,this.cntrlIsPressed=!1,this.shiftlIsPressed=!1,this.skipCreationOfRequest=!1,this.autoAcceptTerms=!1,this.flowName="ClientCertificate"}ngOnInit(){const e=this;this.loading="Obteniendo información de la solicitud",this.Activatedroute.params.subscribe((e=>{this.utils.setLoading(!1),e&&e.idUser?(this.userId=e.idUser,this.setInitialData(this.userId)):this.loading=!1,e&&e.packID&&(this.packId=e.packID)}),(e=>{this.loading=!1})),"pro"!=F.N.env&&(j(document).keydown((function(t){16==t.which&&(this.shiftlIsPressed=!0),17==t.which&&(this.cntrlIsPressed=!0),84==t.which&&this.cntrlIsPressed&&this.shiftlIsPressed&&(e.testMode=!e.testMode,e.cd.markForCheck())})),j(document).keyup((function(e){16==e.which&&(this.shiftlIsPressed=!1),16==e.which&&(this.cntrlIsPressed=!1)})))}ngOnDestroy(){}sendMessageToParent(e){window.top.postMessage(e,"*")}setInitialData(e){this.customizationService.getCustomization(e).then((e=>{e&&(this.data=e,this.financiadorID=e.funder_id||"",this.validateRequestIdInUrl(),this.cd.markForCheck()),this.loading=!1}),(e=>{console.error(e),this.loading=!1}))}validateRequestIdInUrl(){this.Activatedroute.queryParams.subscribe((e=>{e&&e.acceptTerms&&(this.autoAcceptTerms=!0),e&&e.request_id?(this.requestID=e.request_id,this.setFormFromVcCode(e.request_id)):this.loading=!1}),(e=>{this.loading=!1}))}setFormFromVcCode(e){var t=this;return(0,D.Z)((function*(){t.loading="Obteniendo datos de la solicitud...",t.solicitudesService.getSolicitudByCode(e).then((e=>{e&&e.data?(t.solicitud=e.data,t.setSubscriptionOfRequest(),t.loading=!1,t.skipCreationOfRequest=!0,t.autoAcceptTerms&&t.gotoPassword()):t.loading=!1})).catch((e=>{t.loading=!1}))}))()}setSubscriptionOfRequest(){if(this.socket)return;let e="wss://notifications.dev.belender.net";"qa"==F.N.env&&(e="wss://notifications.qa.belender.net"),"pro"==F.N.env&&(e="wss://notifications.belender.net"),F.N.notificationsBaseUrl&&(e=F.N.notificationsBaseUrl),this.socket=new WebSocket(`${e}?requests_id=${this.requestID}&user_id=${this.userId}`);var t=this;this.socket.onopen=function(e){console.log("Conexión establecida")},this.socket.onmessage=function(e){let n=JSON.parse(e.data);console.warn(n),t.handlePusherNotification(n)},this.socket.onerror=function(e){console.log("WebSocket Error: "+e),console.error(e),t.setSubscriptionOfRequestOld()},this.socket.onclose=function(e){console.log("Conexión cerrada"),t.setSubscriptionOfRequestOld()}}handlePusherNotification(e){this.dataFromFirebase=e,this.dataFromFirebase&&this.dataFromFirebase.status_code&&(this.solicitud.status_code=this.dataFromFirebase.status_code,"invalid_otp_seguridad_social"==this.solicitud.status_code&&this.showAlert("Error!","Código inválido. Por favor, introduzca el código recibido por SMS"),"terms_and_conditions"!=this.solicitud.status_code&&setTimeout((()=>{this.loading=!1,this.cd.markForCheck()}),500))}resendOTP(e){let t={request_id:this.requestID,user_id:this.userId};this.loading="Reenviando OTP...",this.setSubscriptionOfRequest(),this.solicitudesService.resendOTP(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}gotoTerms(e){this.loading="Enviando datos..",e.package_id=this.packId,e.user_id=this.userId,this.testMode?setTimeout((()=>{this.solicitud=new R.l,this.solicitud.status_code="waiting_otp_seguridad_social",this.loading=!1}),4e3):this.skipCreationOfRequest?(this.gotoPassword(),this.setSubscriptionOfRequest()):this.solicitudesService.addSolicitud(e,this.packId,this.userId).then((t=>{t&&t.status&&"error"==t.status?(this.solicitud=e,t.message&&(400==t.code?"Birthdate incorrect"==t.message?(this.solicitud.status_code="form",this.showAlert("Error!","Fecha de nacimiento incorrecta")):(this.solicitud.status_code="no_service",this.loading=!1):(this.solicitud.status_code="form",this.showAlert("Error!",t.message)))):t&&t.status&&"success"==t.status?(this.requestID=t.data.request_id,this.solicitud=t.data,this.sendMessageToParent(t.data),this.gotoPassword()):this.showAlert("Error!","Error desconocido: "+t)})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}setSubscriptionOfRequestOld(){!this.financiadorID||!this.userId||!this.requestID||this.subscribed||(this.subscribed=!0,this.webhooksService.bindRequestChanges(this.financiadorID,this.userId,this.requestID),this.webhooksService.subscribeRequestChanges().subscribe((e=>{e&&this.handlePusherNotification(e)}),(e=>{this.loading=!1})))}sendNewData(e){this.loading="Enviando información..",this.solicitudesService.fixData(this.requestID,e).then((e=>{e.status&&"error"==e.status?e.message&&(this.showAlert("Error!",e),this.loading=!1):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.initWaitingForResponse("Validando nuevos datos, espere por favor.."),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}showAlert(e,t){this.loading=!1,this.notis.showAlert(e,t)}gotoPassword(e){this.loading="Iniciando el proceso de emisión de certificado..",setTimeout((()=>{this.solicitud=new R.l,this.loading=!1,this.solicitud.status_code="waiting_password"}),2e3)}requestOTP(e){this.loading="Enviando información..",setTimeout((()=>{this.solicitud=new R.l,this.solicitud.status_code="waiting_password",this.loading=!1}),2e3)}sendPassword(e){this.loading="Enviando información..",setTimeout((()=>{this.solicitud.status_code="sign_cert",this.loading=!1}),2e3)}initWaitingForResponse(e){this.loading=e||"Validando información, espere por favor..",setTimeout((()=>{this.loading&&this.askToBack()}),1e4)}askToBack(){this.solicitudesService.getSolicitudByCode(this.requestID).then((e=>{e&&e.data?(this.solicitud=e.data,this.loading=!1):this.loading=!1})).catch((e=>{this.loading=!1}))}gotoErrorPhone(){}setRequestStatus(e){this.solicitud.status_code=e}retryRequest(e){let t={request_id:e,user_id:this.userId};this.loading="Reintentando enviar la solicitud...",this.setSubscriptionOfRequest(),this.solicitudesService.retryRequest(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}sendCert(e){this.loading="Enviando certificado, espere por favor..",setTimeout((()=>{this.solicitud.status_code="all_documents_downloaded",this.loading=!1}),2e3)}newRequest(e){this.solicitud.status_code="created"}getStatus(){return!this.solicitud||this.solicitud&&("created"==this.solicitud.status_code||"form"==this.solicitud.status_code||"terms_and_conditions"==this.solicitud.status_code)?"form":this.solicitud&&("waiting_login_seguridad_social"==this.solicitud.status_code||"qa"!=F.N.env&&"saved_otp"==this.solicitud.status_code)?(this.loading="Estamos procesando su solicitud. Espere un momento por favor","loading"):!this.solicitud||"waiting_otp_seguridad_social"!=this.solicitud.status_code&&"invalid_otp_seguridad_social"!=this.solicitud.status_code?this.solicitud&&"waiting_password"==this.solicitud.status_code?"password":this.solicitud&&"sign_cert"==this.solicitud.status_code?"sign":!this.solicitud||"abandoned_after_bad_phone"!=this.solicitud.status_code&&"abandoned_after_invalid_otp_seguridad_social"!=this.solicitud.status_code&&"abandoned_after_waiting_otp_seguridad_social"!=this.solicitud.status_code?!this.solicitud||"all_documents_downloaded"!=this.solicitud.status_code&&"partial_documents_downloaded"!=this.solicitud.status_code&&"waiting_documents"!=this.solicitud.status_code?!this.solicitud||"bad_phone"!=this.solicitud.status_code&&"phone_not_exist_otp"!=this.solicitud.status_code?!this.solicitud||"failed_with_retry"!=this.solicitud.status_code&&"failed_without_retry"!=this.solicitud.status_code&&"failed_documents_downloaded"!=this.solicitud.status_code?this.solicitud&&"no_service"==this.solicitud.status_code?"no-service":"no-exist":"failed":"error-data":this.data.config&&this.data.config.infiniteLoopInCompleted?"loading":"success":"abandoned":"otp"}sendRetry(){}gotoTermsAndConditions(){this.dialog.open(Y.L,{panelClass:"fullscreen-dialog",data:{flow:"presencial"}})}gotoTermsAndConditionsCertificate(){this.dialog.open(q.v,{panelClass:"fullscreen-dialog",data:{flow:"presencial"}})}};qe.ɵfac=function(e){return new(e||qe)(V.ɵɵdirectiveInject(V.ChangeDetectorRef),V.ɵɵdirectiveInject(P.gz),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(C.w),V.ɵɵdirectiveInject(I.T),V.ɵɵdirectiveInject(x.t),V.ɵɵdirectiveInject(z.uw))},qe.ɵcmp=V.ɵɵdefineComponent({type:qe,selectors:[["belender-widget-client-cert"]],inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud"},features:[V.ɵɵProvidersFeature([{provide:A.o2,useValue:{appearance:"standard"}}])],decls:2,vars:2,consts:[["class","h-full widget-belender",4,"ngIf"],[4,"ngIf"],[1,"h-full","widget-belender"],[1,"h-full","w-full","flex-auto","p-0","md:p-3"],["class","img-wrapper p-6 flex justify-center items-center",4,"ngIf"],["class","loading-wrapper animated fadeIn",4,"ngIf"],["class","animated fadeInRight",4,"ngIf"],[1,"img-wrapper","p-6","flex","justify-center","items-center"],["alt","",1,"img-card",3,"src"],[3,"status","data",4,"ngIf"],[3,"data","texts","solicitud","goToTerms","goToTermsCertificate","nextStep",4,"ngIf"],[3,"data","texts","solicitud","nextStep",4,"ngIf"],[3,"data","texts","solicitud","resendOTP","errorPhone","nextStep",4,"ngIf"],[3,"data","texts",4,"ngIf"],[3,"data","texts","solicitud","retry","newRequest",4,"ngIf"],[3,"solicitud","data","texts","retry",4,"ngIf"],[3,"texts","data",4,"ngIf"],["class","px-6 py-4 flex flex-col",4,"ngIf"],[3,"status","data"],[3,"data","texts","solicitud","goToTerms","goToTermsCertificate","nextStep"],[3,"data","texts","solicitud","nextStep"],[3,"data","texts","solicitud","resendOTP","errorPhone","nextStep"],[3,"data","texts"],[3,"data","texts","solicitud","retry","newRequest"],[3,"solicitud","data","texts","retry"],[3,"texts","data"],[1,"px-6","py-4","flex","flex-col"],[1,"title","m-0"],[1,"text-red-500"],[1,"subheading-1","pt-4"],[1,"loading-wrapper","animated","fadeIn"],["color","accent","diameter","40",1,"spinner",3,"value","mode"],[1,"mt-6","text-center","text-black",2,"color","black !important"],[1,"animated","fadeInRight"],[1,"text-red-500","title","m-0"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"text-blue-500","bg-blue-50","px-8",3,"click"],[1,"test-mode","px-10","py-2","bg-blue-500/10","text-blue-500","border-blue-500","border","rounded-md"]],template:function(e,t){1&e&&(V.ɵɵtemplate(0,je,6,6,"div",0),V.ɵɵtemplate(1,Fe,3,1,"ng-container",1)),2&e&&(V.ɵɵproperty("ngIf",t.data),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.testMode))},dependencies:[i.O5,u.lW,b.Ou,J,te,re,ae,ce,de,ue,ye,we],styles:[".widget-belender[_ngcontent-%COMP%]{position:relative}.widget-belender[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{min-height:360px}.widget-belender[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between}.badge-table[_ngcontent-%COMP%]{max-width:140px!important;border-radius:5px!important;-webkit-border-radius:5px!important;-moz-border-radius:5px!important;-ms-border-radius:5px!important;-o-border-radius:5px!important}.btn-refresh[_ngcontent-%COMP%]{transform:translateY(2px)}.request-data-info[_ngcontent-%COMP%]{transition:all .5s ease!important}.img-card[_ngcontent-%COMP%]{max-width:240px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.loading-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:absolute;top:0;left:0;background:#fff}.mat-flat-button.mat-primary.mat-button-disabled[_ngcontent-%COMP%]{background:red!important}button.mat-flat-button.text-green-500.bg-green-light.mat-button-disabled[_ngcontent-%COMP%]{background:orange!important}.test-mode[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px}"]}),qe=(0,L.gn)([(0,N.c)()],qe);const Ye=[{path:":idUser",component:qe},{path:":idUser/:packID",component:qe}];let Ve=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=V.ɵɵdefineNgModule({type:e}),e.ɵinj=V.ɵɵdefineInjector({imports:[P.Bz.forChild(Ye),P.Bz,O.d8]}),e})();var He=n(6981),ze=n(3848),Be=n(1129),Ue=n(969);let We=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=V.ɵɵdefineNgModule({type:e}),e.ɵinj=V.ɵɵdefineInjector({providers:[_.M,y.o,C.w,x.t,I.T,T.t,{provide:M.Ad,useValue:"es-ES"}],imports:[Ve,i.ez,r.G,s.J,o.TU,a.p0,l.JX,c.p9,d.Ps,u.ot,h.Tx,w.c,p.FormsModule,m.AV,p.ReactiveFormsModule,f.LD,g.vV,v.a,b.Cq,S.FA,M.XK,k.T5,E.Fk,He.x,ze.Nh,c.p9,Be.n,Ue.O]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[852],{7852:(e,t,n)=>{n.r(t),n.d(t,{WidgetBoxedLayoutModule:()=>H});var i=n(6895),r=n(9299),s=n(6e3),o=n(5469),a=n(4650);const l=[{path:"",component:o.B,children:[{path:"sms",loadChildren:()=>Promise.resolve().then(n.bind(n,3006)).then((e=>e.SmsModule))},{path:"SMS",loadChildren:()=>Promise.resolve().then(n.bind(n,3006)).then((e=>e.SmsModule))},{path:"clavepin",loadChildren:()=>Promise.resolve().then(n.bind(n,1916)).then((e=>e.PinModule))},{path:"ClavePIN",loadChildren:()=>Promise.resolve().then(n.bind(n,1916)).then((e=>e.PinModule))},{path:"ClavePin",loadChildren:()=>Promise.resolve().then(n.bind(n,1916)).then((e=>e.PinModule))},{path:"chave-movel",loadChildren:()=>n.e(508).then(n.bind(n,5508)).then((e=>e.ChaveMovelModule))},{path:"chavemovel",loadChildren:()=>n.e(508).then(n.bind(n,5508)).then((e=>e.ChaveMovelModule))},{path:"SmsPin",loadChildren:()=>n.e(94).then(n.bind(n,2094)).then((e=>e.SmsPinModule))},{path:"smspin",loadChildren:()=>n.e(94).then(n.bind(n,2094)).then((e=>e.SmsPinModule))},{path:"VideoId",loadChildren:()=>Promise.resolve().then(n.bind(n,1724)).then((e=>e.VideoIdModule))},{path:"videoid",loadChildren:()=>Promise.resolve().then(n.bind(n,1724)).then((e=>e.VideoIdModule))},{path:"Presencial",loadChildren:()=>Promise.resolve().then(n.bind(n,8526)).then((e=>e.PersonalModule))},{path:"presencial",loadChildren:()=>Promise.resolve().then(n.bind(n,8526)).then((e=>e.PersonalModule))},{path:"knownclient",loadChildren:()=>Promise.resolve().then(n.bind(n,8526)).then((e=>e.PersonalModule))},{path:"digital-power",loadChildren:()=>n.e(883).then(n.bind(n,883)).then((e=>e.PowerModule))},{path:"digitalpower",loadChildren:()=>n.e(883).then(n.bind(n,883)).then((e=>e.PowerModule))},{path:"client-cert",loadChildren:()=>n.e(281).then(n.bind(n,6281)).then((e=>e.ClientCertModule))},{path:"clientcertificate",loadChildren:()=>n.e(163).then(n.bind(n,4163)).then((e=>e.ClientCertModule))},{path:"client-certificate",redirectTo:"clientcertificate"},{path:"client-cert-mock",loadChildren:()=>n.e(822).then(n.bind(n,3822)).then((e=>e.ClientCertModule))},{path:"poder-digital",loadChildren:()=>n.e(883).then(n.bind(n,883)).then((e=>e.PowerModule))},{path:"manual-step",loadChildren:()=>Promise.all([n.e(592),n.e(452)]).then(n.bind(n,6452)).then((e=>e.ManualModule))},{path:"manual",loadChildren:()=>Promise.all([n.e(592),n.e(378)]).then(n.bind(n,2378)).then((e=>e.ManualModule))}]}];let c=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a.ɵɵdefineNgModule({type:e}),e.ɵinj=a.ɵɵdefineInjector({imports:[r.Bz.forChild(l),r.Bz,s.d8]}),e})();var d=n(6383),u=n(4006),h=n(9101),p=n(811),m=n(6709),f=n(3238),g=n(9602),_=n(7392),v=n(4144),y=n(1561),b=n(8739),x=n(1572),w=n(1948),C=n(4385),S=n(6308),M=n(6257),I=n(7155),k=n(266),E=n(5592),T=n(4246),P=n(8526),O=n(1916),D=n(3006),L=n(1724),A=n(6981),N=n(9391),R=n(7367),j=n(5895),F=n(9617),q=n(5601),Y=n(182),V=n(3798);let H=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a.ɵɵdefineNgModule({type:e}),e.ɵinj=a.ɵɵdefineInjector({providers:[q.M,N.o,R.w,Y.t,F.U,j.T,T.t,{provide:f.Ad,useValue:"es-ES"}],imports:[i.ez,c,d.G,E.J,V.a,D.SmsModule,O.PinModule,L.VideoIdModule,P.PersonalModule,b.TU,I.p0,S.JX,m.p9,_.Ps,h.ot,y.Tx,v.c,u.FormsModule,k.AV,u.ReactiveFormsModule,C.LD,p.vV,V.a,x.Cq,g.FA,f.XK,M.T5,w.Fk,A.x]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[883],{883:(e,t,n)=>{n.r(t),n.d(t,{PowerModule:()=>Qe});var i=n(6895),r=n(6383),s=n(5592),o=n(8739),a=n(7155),l=n(6308),c=n(6709),d=n(7392),u=n(9101),h=n(1561),p=n(4006),m=n(266),f=n(4385),g=n(811),_=n(5601),v=n(3798),y=n(9391),b=n(1572),x=n(182),w=n(4144),C=n(7367),S=n(9602),M=n(3238),I=n(5895),k=n(6257),E=n(1948),T=n(4246),P=n(9299),O=n(6e3),D=n(5861),L=n(7582),A=n(9549),N=n(9933),R=n(5762),j=n(8259),F=n(2340),q=n(6830),Y=n(4650),V=n(5089),H=n(5412),z=n(8008),B=n(3364),U=n(1760),W=n(4302),$=n(833);function G(e,t){if(1&e&&(Y.ɵɵelementStart(0,"span"),Y.ɵɵtext(1),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}function Z(e,t){if(1&e&&(Y.ɵɵelementStart(0,"span"),Y.ɵɵtext(1),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵtextInterpolate2("¿No has recibido el código en el teléfono acabado en ",e.lastNumberPhone,"? Solicítalo de nuevo en ",e.secsCount," segundos")}}function K(e,t){if(1&e&&(Y.ɵɵelementStart(0,"span"),Y.ɵɵtext(1),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵtextInterpolate1("¿No has recibido el código en tu teléfono? Solicítalo de nuevo en ",e.secsCount," segundos")}}const Q=function(e,t,n){return{color:e,border:t,background:n}};function X(e,t){if(1&e&&(Y.ɵɵelementContainerStart(0),Y.ɵɵelementStart(1,"small",11),Y.ɵɵtemplate(2,G,2,1,"span",5),Y.ɵɵtemplate(3,Z,2,2,"span",5),Y.ɵɵtemplate(4,K,2,1,"span",5),Y.ɵɵelementEnd(),Y.ɵɵelementContainerEnd()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵproperty("ngStyle",Y.ɵɵpureFunction3(4,Q,e.data.styles.colors.accentColor,"1px solid "+e.data.styles.colors.accentColor,e.data.styles.colors.accentBgColor)),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!e.lastNumberPhone),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",e.lastNumberPhone&&!e.data.config.noRetryInBadPhone),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",e.lastNumberPhone&&e.data.config.noRetryInBadPhone)}}function J(e,t){1&e&&(Y.ɵɵelementStart(0,"span"),Y.ɵɵtext(1," ¿No has recibido el código en tu teléfono? "),Y.ɵɵelementEnd())}function ee(e,t){if(1&e&&(Y.ɵɵelementStart(0,"span"),Y.ɵɵtext(1),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵtextInterpolate1(" ¿No has recibido el código en el teléfono acabado en ",e.lastNumberPhone,"? ")}}function te(e,t){1&e&&(Y.ɵɵelementStart(0,"span"),Y.ɵɵtext(1," ¿No has recibido el código en el teléfono? "),Y.ɵɵelementEnd())}const ne=function(e,t){return{color:e,background:t}};function ie(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementContainerStart(0),Y.ɵɵelementStart(1,"small",11),Y.ɵɵtemplate(2,J,2,0,"span",5),Y.ɵɵtemplate(3,ee,2,1,"span",5),Y.ɵɵtemplate(4,te,2,0,"span",5),Y.ɵɵelementStart(5,"a",12),Y.ɵɵlistener("click",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext();return Y.ɵɵresetView(t.resendOTP())})),Y.ɵɵtext(6,"Reenviar"),Y.ɵɵelementEnd()(),Y.ɵɵelementContainerEnd()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵproperty("ngStyle",Y.ɵɵpureFunction3(5,Q,e.data.styles.colors.dangerColor,"1px solid "+e.data.styles.colors.dangerColor,e.data.styles.colors.dangerBgColor)),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!e.lastNumberPhone),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",e.lastNumberPhone&&!e.data.config.noRetryInBadPhone),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",e.data.config.noRetryInBadPhone),Y.ɵɵadvance(1),Y.ɵɵproperty("ngStyle",Y.ɵɵpureFunction2(9,ne,e.data.styles.colors.dangerTextButtonColor,e.data.styles.colors.dangerColor))}}let re=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.solucitudesService=n,this.activeRoute=i,this.next=new Y.EventEmitter(null),this.errPhone=new Y.EventEmitter(null),this.resendO=new Y.EventEmitter(null),this.secsCount=60,this.lastNumberPhone="XXX"}ngOnInit(){this.form=this.fb.group({code1:[null,[p.Validators.required,p.Validators.maxLength(6),p.Validators.minLength(6)]]}),this.initSecsInterval(),this.activeRoute.queryParams.subscribe((e=>{e&&e.request_id&&(this.requestID=e.request_id)}),(e=>{console.error(e)})),this.solicitud&&this.solicitud.person_phone&&this.setPhone(this.solicitud.person_phone)}setPhone(e){let t="XXX";e&&(t=(""+e).slice(-3)),this.lastNumberPhone=t}initSecsInterval(){this.interv=setInterval((()=>{this.secsCount--,this.secsCount<=0&&this.finishSecsInterval()}),1e3)}finishSecsInterval(){this.interv&&clearInterval(this.interv)}nextStep(){let e={code:this.getCode()};this.next.emit(e)}getCode(){return this.form.get("code1").value}capturePasteEvent(e){return(0,D.Z)((function*(){}))()}errorStep(){this.errPhone.emit(!0)}setInputEvent(e){""!=e.target.value?j(e.target).next().focus():"Backspace"==e.code&&j(e.target).prev().focus()}resendOTP(){this.resendO.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(p.UntypedFormBuilder),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(_.M),Y.ɵɵdirectiveInject(P.gz))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-otp-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep",errPhone:"errorPhone",resendO:"resendOTP"},decls:17,vars:18,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"title","py-2"],[4,"ngIf"],[1,"flex","gap-2","items-center","justify-start","w-full","max-w-[200px]"],["appearance","outline",1,"w-full","flex-1"],["tabindex","1","maxlength","6","minlength","1","formControlName","code1","type","text","matInput","",3,"change","keyup"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","next-button","mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"],[1,"info-time","w-fit",3,"ngStyle"],[1,"ml-4",3,"ngStyle","click"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"form",0)(1,"div",1)(2,"div",2),Y.ɵɵtext(3," Introduce el código recibido por SMS "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(4,"div",3),Y.ɵɵtext(5," Has recibido un SMS procedente de EJEMPLO con un código de 6 dígitos. Por favor, introdúcelo a continuación. "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(6,"div",4),Y.ɵɵtemplate(7,X,5,8,"ng-container",5),Y.ɵɵtemplate(8,ie,7,12,"ng-container",5),Y.ɵɵelementEnd(),Y.ɵɵelementStart(9,"div",6)(10,"mat-form-field",7)(11,"mat-label"),Y.ɵɵtext(12," Código OTP "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(13,"input",8),Y.ɵɵlistener("change",(function(e){return t.capturePasteEvent(e)}))("keyup",(function(e){return t.setInputEvent(e)})),Y.ɵɵelementEnd()()()(),Y.ɵɵelementStart(14,"div",9)(15,"button",10),Y.ɵɵlistener("click",(function(){return t.nextStep()})),Y.ɵɵtext(16,"Siguiente"),Y.ɵɵelementEnd()()()),2&e&&(Y.ɵɵproperty("formGroup",t.form),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size","16px"),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.text)("font-size","14px"),Y.ɵɵadvance(3),Y.ɵɵproperty("ngIf",t.secsCount&&t.secsCount>0),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!t.secsCount||t.secsCount<=0),Y.ɵɵadvance(7),Y.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),Y.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,i.PC,u.lW,A.KE,A.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();var se=n(3731);function oe(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",1),Y.ɵɵelement(1,"div",2)(2,"div",3),Y.ɵɵpipe(3,"safeHtml"),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size","16px"),Y.ɵɵproperty("innerHTML",e.texts.success.title,Y.ɵɵsanitizeHtml),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",e.data.styles.colors.text)("font-size","14px"),Y.ɵɵproperty("innerHTML",Y.ɵɵpipeBind1(3,10,e.texts.success.description||""),Y.ɵɵsanitizeHtml)}}let ae=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r}ngOnInit(){}save(){}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(p.UntypedFormBuilder),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(_.M),Y.ɵɵdirectiveInject(y.o),Y.ɵɵdirectiveInject(I.T))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-success-step"]],inputs:{data:"data",texts:"texts"},decls:1,vars:1,consts:[["class"," pt-4 pb-8 flex flex-col animated fadeIn",4,"ngIf"],[1,"pt-4","pb-8","flex","flex-col","animated","fadeIn"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&Y.ɵɵtemplate(0,oe,4,12,"div",0),2&e&&Y.ɵɵproperty("ngIf",!t.data.config.infiniteLoopInCompleted)},dependencies:[i.O5,se.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function le(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"div",5)(1,"button",6),Y.ɵɵlistener("click",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext();return Y.ɵɵresetView(t.retry())})),Y.ɵɵtext(2,"Intentarlo nuevamente"),Y.ɵɵelementEnd()()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}function ce(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"div",5)(1,"button",7),Y.ɵɵlistener("click",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext();return Y.ɵɵresetView(t.newRequest())})),Y.ɵɵtext(2,"Crear nueva solicitud"),Y.ɵɵelementEnd()()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}let de=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryOp=new Y.EventEmitter(null),this.newReq=new Y.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryOp.emit(this.solicitud.request_id)}newRequest(){this.newReq.emit(this.solicitud.request_id)}getIfRetryIsAllowed(){return"failed_with_retry"==this.solicitud}getIfNewRequestIsAllowed(){return"failed_documents_downloaded"==this.solicitud}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(p.UntypedFormBuilder),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(_.M),Y.ɵɵdirectiveInject(y.o),Y.ɵɵdirectiveInject(I.T))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-fail-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{retryOp:"retry",newReq:"newRequest"},decls:7,vars:8,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"text-red-500","title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],["class","flex items-center justify-end gap-2 p-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"div",0)(1,"div",1),Y.ɵɵelement(2,"div",2)(3,"div",3),Y.ɵɵpipe(4,"safeHtml"),Y.ɵɵelementEnd(),Y.ɵɵtemplate(5,le,3,6,"div",4),Y.ɵɵtemplate(6,ce,3,6,"div",4),Y.ɵɵelementEnd()),2&e&&(Y.ɵɵadvance(2),Y.ɵɵproperty("innerHTML",t.texts.fail.title,Y.ɵɵsanitizeHtml),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",t.data.styles.colors.text),Y.ɵɵproperty("innerHTML",Y.ɵɵpipeBind1(4,6,t.texts.fail.description),Y.ɵɵsanitizeHtml),Y.ɵɵadvance(2),Y.ɵɵproperty("ngIf",t.solicitud&&"failed_with_retry"==t.solicitud.status_code),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.solicitud&&"failed_documents_downloaded"==t.solicitud.status_code))},dependencies:[i.O5,u.lW,se.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();n(6866);var ue=n(1763);function he(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"div",12)(1,"belender-checkbox",8),Y.ɵɵlistener("changeCheckbox",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext();return Y.ɵɵresetView(n.setPower(t))})),Y.ɵɵtext(2," Consiento expresamente a la activación de un poder digital según las condiciones que pueden verse "),Y.ɵɵelementStart(3,"a",13),Y.ɵɵlistener("click",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext();return Y.ɵɵresetView(t.gotoPowerConditions())})),Y.ɵɵelementStart(4,"u"),Y.ɵɵtext(5,"aquí"),Y.ɵɵelementEnd()()()()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵproperty("color",e.data.styles.colors.title)}}const pe={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let me=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.next=new Y.EventEmitter(null),this.goPower=new Y.EventEmitter(null),this.acceptTerms=!1,this.activatePower=!1}ngOnInit(){}setPower(e){this.activatePower=e}gotoPowerConditions(){this.goPower.emit(!0)}nextStep(){this.next.emit(!0)}setTerms(e){this.acceptTerms=e}getIfValid(){return(this.solicitud&&this.solicitud.request_id?this.solicitud?.power_activate:this.data?.config.activatePower)?this.activatePower&&this.acceptTerms:this.acceptTerms}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(p.UntypedFormBuilder),Y.ɵɵdirectiveInject(V.F))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud",flowName:"flowName"},outputs:{next:"nextStep",goPower:"goToPower"},features:[Y.ɵɵProvidersFeature([{provide:M.sG,useValue:pe},{provide:Y.LOCALE_ID,useValue:"es-ES"}])],decls:136,vars:17,consts:[[1,"animated","fadeIn","fixed-content","px-2"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"mb-3","flex","flex-col","gap-2","pdf-text","bg-slate-100/60","px-4","py-6","max-h-[300px]","overflow-y-auto","rounded-md"],[1,"pl-4"],[1,"mb-3","flex","flex-col","md:flex-row","flex-wrap","gap-2","md:justify-between"],[1,"flex","justify-start","items-center","w-full","flex-100"],[3,"color","changeCheckbox"],["class","flex justify-between items-center w-full flex-100",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"],[1,"flex","justify-between","items-center","w-full","flex-100"],["target","_blank",1,"text-sm","hover:text-blue-500",3,"click"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"form",0)(1,"div",1)(2,"div",2),Y.ɵɵtext(3," Activar un poder digital "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(4,"div",3),Y.ɵɵtext(5," Vamos a emitir un poder digital a favor de EJEMPLO para poder obtener la documentación necesaria en solicitudes de financiación. Para poder actualizar tu información, siempre te volveremos a pedir el consentimiento. "),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(6,"div",4)(7,"h1"),Y.ɵɵtext(8,"OTORGAR UN PODER DIGITAL PARA OBTENER LA DOCUMENTACIÓN AUTOMÁTICAMENTE"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(9,"p"),Y.ɵɵtext(10,"Los presentes Términos y Condiciones (en adelante, los "),Y.ɵɵelementStart(11,"b"),Y.ɵɵtext(12,"“Términos y Condiciones”"),Y.ɵɵelementEnd(),Y.ɵɵtext(13," ) regulan, la descarga, acceso, navegación y uso de la plataforma propiedad de "),Y.ɵɵelementStart(14,"b"),Y.ɵɵtext(15,"BELENDER"),Y.ɵɵelementEnd(),Y.ɵɵtext(16," (en adelante, la "),Y.ɵɵelementStart(17,"b"),Y.ɵɵtext(18,"“Plataforma”"),Y.ɵɵelementEnd(),Y.ɵɵtext(19," ), la cual es titularidad de ALL4LEND S.L., con CIF B-67425769, con domicilio social en la Calle del Sol 19, Sant Andreu de la Barca, 08740, Barcelona, España. (en adelante, "),Y.ɵɵelementStart(20,"b"),Y.ɵɵtext(21,"“ BELENDER”"),Y.ɵɵelementEnd(),Y.ɵɵtext(22," ). Los presentes Términos y Condiciones están dirigidos exclusivamente a los Usuarios registrados en la Plataforma y, en su caso, podrán ser complementados con las Condiciones Particulares aplicables en cada caso según se fijen en la Plataforma, así como con el Aviso Legal, la Política de Privacidad y cualquier otro documento que incluya BELENDER en la Plataforma."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(23,"h2"),Y.ɵɵtext(24," 1. OBJETO DE LA PLATAFORMA Y DESCRIPCIÓN DEL SERVICIO"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(25,"p"),Y.ɵɵtext(26,"BELENDER es una plataforma digital basada en la prestación de un servicio a entidades financieras por medio del cual recopila información, documentación e informes de clientes consumidores (en adelante, los "),Y.ɵɵelementStart(27,"b"),Y.ɵɵtext(28,"“Usuarios”"),Y.ɵɵelementEnd(),Y.ɵɵtext(29," ) que solicitan un préstamo o crédito y que son necesarios para la tramitación de su concesión por la propia entidad financiera, y ello mediante el acceso por parte de BELENDER, en nombre y por cuenta del propio Usuario, a sus portales personales de la Seguridad Social y de la AEAT, de cara a que el Usuario se ahorre toda esta gestión burocrática de solicitud de documentación a las administraciones públicas, tramitándolo directamente BELENDER con la propia entidad financiera. Este servicio es gratuito para el Usuario."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(30,"p"),Y.ɵɵtext(31,"La operativa de esta Plataforma se basa en que FINANCIADOR redirige al Usuario solicitante de un préstamo a la herramienta web de BELENDER. Ya en entorno BELENDER, el Usuario facilita su información personal, otorga el consentimiento legal al uso de la herramienta automática que se pone a su disposición y facilita un código OTP que recibirá de la Seguridad Social y/o AEAT para hacer uso de su sistema Clave PIN o su teléfono informado en la Seguridad Social. "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(32,"p"),Y.ɵɵtext(33,"En concreto, los documentos que se descargan son:"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(34,"p"),Y.ɵɵtext(35," LISTAR DOCUMENTOS"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(36,"h2"),Y.ɵɵtext(37,"2. ACEPTACIÓN DE LOS TÉRMINOS Y CONDICIONES"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(38,"p"),Y.ɵɵtext(39,"Mediante la aceptación de los Términos y Condiciones, el Usuario se compromete a actuar en todo momento de conformidad con las disposiciones establecidas en el clausulado del presente texto legal. En caso de no estar de acuerdo con todo o parte de estos Términos y Condiciones, el Usuario debe abstenerse de utilizar la Plataforma y los servicios en ella ofrecidos por BELENDER."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(40,"p"),Y.ɵɵtext(41,"El servicio prestado en esta Plataforma se rige por: "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(42,"ul",5)(43,"li"),Y.ɵɵtext(44,"(i) estos Términos y Condiciones;"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(45,"li"),Y.ɵɵtext(46,"(ii) Condiciones Particulares que puedan publicarse en la Plataforma o que queden regulados y reflejados en el Sitio web;"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(47,"li"),Y.ɵɵtext(48,"(iii) las leyes vigentes y aplicables, regulaciones sectoriales y los criterios y prácticas generales."),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(49,"p"),Y.ɵɵtext(50,"Al aceptar los presentes Términos y Condiciones Generales, el usuario manifiesta ser mayor de 18 años y/o tener capacidad legal plena para entender y aceptar el contenido de estos Términos y Condiciones, eximiendo y manteniendo indemne a BELENDER de cualesquiera reclamaciones, denuncias o daños causados por el incumplimiento de esta condición, la cual se entiende como conditio sine qua non para el uso y aprovechamiento de los servicios ofrecidos por BELENDER en la misma. "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(51,"h2"),Y.ɵɵtext(52,"3. CESIÓN DE DATOS"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(53,"p"),Y.ɵɵtext(54," El solicitante, mediante su autorización expresa, accede a utilizar el servicio de Belender para que le facilite una herramienta que automatiza la obtención de la Documentación ante la administración u organismo públicos competentes. Una vez obtenida, Belender facilitará la Documentación a FINANCIADOR con la exclusiva finalidad de que ésta con la finalidad de que ésta pueda realizar la evaluación de la solvencia de la operación de financiación solicitada por el Usuario y se pueda poner en contacto con usted para asesorarle al respecto."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(55,"h2"),Y.ɵɵtext(56,"4. OBLIGACIONES DE BELENDER"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(57,"ul",5)(58,"li"),Y.ɵɵtext(59,"Mediante estos Términos y Condiciones, BELENDER se compromete con los Usuarios a proporcionarles el servicio de la forma en la que se describe en los presentes Términos y Condiciones."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(60,"li"),Y.ɵɵtext(61,"Tratar con diligencia y absoluta confidencialidad la información y documentación a la que tenga acceso con motivo de la prestación de los servicios y solo para la correcta prestación de los mismos."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(62,"li"),Y.ɵɵtext(63,"Poner todos los medios para resolver a la mayor diligencia cualquier incidencia técnica que pudiera producirse en la Plataforma durante la prestación de los servicios, si bien no garantiza su continua disponibilidad de la misma por motivos ajenos a su voluntad y medios."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(64,"li"),Y.ɵɵtext(65,"Emplear toda la atención y profesionalidad que se consideren razonables para la prestación del servicio que se ofrece."),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(66,"h2"),Y.ɵɵtext(67,"5. OBLIGACIONES DE LOS USUARIOS"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(68,"ul",5)(69,"li"),Y.ɵɵtext(70,"Para participar en la Plataforma y beneficiarse del servicio ofrecido por BELENDER, los Usuarios deben leer y aceptar los presentes Términos y Condiciones, así como cualquier otra condición particular que resultare de aplicación a la presente relación contractual por BELENDER."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(71,"li"),Y.ɵɵtext(72,"Los Usuarios son exclusivamente responsables de garantizar la veracidad de los datos personales proporcionados en el momento de solicitud del servicio a BELENDER, de forma que tanto la identificación, como la prestación de los servicios por parte de BELENDER a través de la Plataforma se pueda llevar a cabo de forma correcta."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(73,"li"),Y.ɵɵtext(74,"Los Usuarios se comprometen a uso diligente y correcto de los servicios ofrecidos por BELENDER, asumiendo toda la responsabilidad que pudiera derivarse de un mal uso de los mismos."),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(75,"h2"),Y.ɵɵtext(76," 6. CONFIDENCIALIDAD"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(77,"p"),Y.ɵɵtext(78,"BELENDER se obligan a guardar secreto y confidencialidad sobre cuantos datos del Usuario le sean facilitados por la entidad bancaria, así como también sobre cuanta información y documentación BELENDER tenga acceso con motivo de la prestación de los servicios objeto de los presentes Términos y Condiciones."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(79,"p"),Y.ɵɵtext(80,"En este sentido, toda la información y documentación compartida con BELENDER con el objetivo de ejecutar la prestación de servicios será considerada confidencial, especialmente los datos de carácter personal de los Usuarios."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(81,"h2"),Y.ɵɵtext(82,"7. PROTECCIÓN DE DATOS PERSONALES"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(83,"p"),Y.ɵɵtext(84,"Los Usuarios se comprometen a aceptar la Política de Privacidad con anterioridad a la prestación de los servicios por parte de BELENDER."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(85,"p"),Y.ɵɵtext(86,"All4Lend SL, con NIF B67425769 y domicilio en Barcelona, calle Sol 19 (0874), es el responsable del tratamiento de sus datos."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(87,"p"),Y.ɵɵtext(88,"Los Usuarios están informados de que sus datos de carácter personal se almacenan con arreglo a lo dispuesto en el Reglamento (UE) 2016/679, del Parlamento Europeo y del Consejo, de 27 de abril de 2016, relativo a las personas físicas en lo que respecta al tratamiento de datos personales y a la libre circulación de estos datos (en adelante, "),Y.ɵɵelementStart(89,"b"),Y.ɵɵtext(90,"RGPD"),Y.ɵɵelementEnd(),Y.ɵɵtext(91," ) y lo establecido en la normativa española vigente en esta materia."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(92,"p"),Y.ɵɵtext(93,"De acuerdo con lo establecido en el RGPD, los datos personales de los Usuarios serán incorporados a nuestro sistema de tratamiento de datos personales en base al consentimiento expreso del interesado y conservándose mientras se mantenga la misma, así como el tiempo necesario para el cumplimiento de responsabilidades por parte de BELENDER. "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(94,"p"),Y.ɵɵtext(95,"Tal y como se informa en el apartado 3, una vez recabados, sus datos serán cedidos a FINANCIADOR para la evaluación de la solvencia de la operación solicitada por usted. Una vez recibidos los datos por la Entidad financiera, la misma los tratará en calidad de responsable del tratamiento de los datos."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(96,"p"),Y.ɵɵtext(97,"BELENDER informa de la posibilidad que tienen los Usuarios de ejercer los siguientes derechos sobre sus datos personales: derecho de acceso, rectificación, supresión u olvido, limitación, oposición, portabilidad y a retirar el consentimiento prestado (sin perjuicio de la legitimad de los tratamientos realizados mientras se prestó dicho consentimiento), lo que también aparece definido y explicado con más detalle en la Política de Privacidad de BELENDER."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(98,"p"),Y.ɵɵtext(99,"Para ello podrá enviar un email a dpo@belender.eu acompañado de una fotocopia del DNI, o dirigir un escrito ejerciendo sus derechos a la siguiente dirección postal: la Calle del Sol 19, Sant Andreu de la Barca, 08740, Barcelona, España. Igualmente, los Usuarios podrán dirigir sus reclamaciones a la Agencia Española de Protección de Datos (https://www.aepd.es/es) si entienden que sus derechos no han sido atendidos correctamente."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(100,"h2"),Y.ɵɵtext(101,"8. PROPIEDAD INTELECTUAL E INDUSTRIAL"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(102,"p"),Y.ɵɵtext(103,"Mediante la aceptación de los presentes Términos y Condiciones, BELENDER manifiesta, y los Usuarios aceptan, que BELENDER es titular de todos los derechos de propiedad intelectual, industrial y cualesquiera otros existentes sobre la Plataforma, nombres de dominio y cualesquiera otros que se entiendan incluidos en la misma."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(104,"p"),Y.ɵɵtext(105,"En este sentido, BELENDER y los Usuarios manifiestan y reconocen que en ningún caso la prestación de los servicios aquí definidos se entenderá como una cesión, autorización, transferencia o licencia de los derechos de propiedad intelectual, industrial y de cualquier otro tipo de los que sea titular o cesionario BELENDER, siendo sólo posible, por parte de los Usuarios, la utilización de cualesquiera contenidos, marcas, nombres de dominio y signos distintivos en el más estricto ámbito del desarrollo de la presente relación contractual, y única y exclusivamente mientras dure la misma."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(106,"p"),Y.ɵɵtext(107,"Asimismo, los Usuarios tienen terminantemente prohibida la utilización, reproducción, copia, distribución, comunicación pública, transformación y/o cualquier otra explotación de, con carácter meramente enunciativo, pero no limitativo, el código fuente, código objeto, nombres de dominio, de parte o de totalidad de la Plataforma, así como, de forma meramente enunciativa, pero no limitativa, cualquier acto de ingeniería inversa respecto de la Plataforma y/o cualquiera de sus contenidos."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(108,"h2"),Y.ɵɵtext(109,"9. RESPONSABILIDAD"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(110,"p"),Y.ɵɵtext(111,"Los Usuarios mantendrán indemne a BELENDER en todo momento frente a cualquier reclamación, queja, sanción, multa o cualquier otra acción judicial y/o administrativa, pública y/o privada, que pueda suponer o haya supuesto un daño patrimonial o moral a BELENDER."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(112,"p"),Y.ɵɵtext(113,"En relación con lo anterior, los Usuarios responderán frente a BELENDER por cualquier incumplimiento o actuación realizada por los mismos contraviniendo los presentes Términos y Condiciones, la legislación aplicable en cualquier materia y cualesquiera condiciones particulares que pudieran existir y que sean aplicables a la presente relación contractual entre BELENDER y el Usuario."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(114,"h2"),Y.ɵɵtext(115,"10.MISCELÁNEA"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(116,"p"),Y.ɵɵtext(117,"En el caso de que cualquiera de las previsiones de estos Términos y Condiciones fuera considerada en todo o en parte contraria a la Ley o inejecutable, quedará eliminada de los mismos y, si ello fuera posible, se sustituirá por otra estipulación con similar efecto a la anulada, continuando en todo caso la validez del contrato en sus estipulaciones restantes, que no se verán afectadas por la nulidad parcial."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(118,"p"),Y.ɵɵtext(119,"Los presentes Términos y Condiciones están redactados en español, sin perjuicio de que se puedan traducir bajo determinadas condiciones a otros idiomas, como el inglés. Sin perjuicio de lo anterior, en caso de duda o conflicto entre la redacción de los Términos y Condiciones en la versión española y cualquier otro idioma, prevalecerá siempre la versión española."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(120,"p"),Y.ɵɵtext(121,"BELENDER se reserva el derecho a modificar la presentación, configuración y contenido de los presentes Términos y Condiciones, así como de la Plataforma, y/o las condiciones requeridas para su acceso y/o utilización, previa notificación por escrito a los Usuarios. El acceso y utilización de los contenidos y servicios tras la entrada en vigor de sus modificaciones o los cambios en las condiciones suponen la aceptación de las mismas."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(122,"p"),Y.ɵɵtext(123,"Los presentes Términos y Condiciones se regirán por la legislación española. En caso de litigio sobre la interpretación, ejecución o validez de estos Términos y Condiciones, serán competentes los Juzgados y Tribunales del territorio de residencia del Usuario."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(124,"p"),Y.ɵɵtext(125,"En virtud de lo dispuesto en el Reglamento (UE) nº 524/2013 del Parlamento Europeo y del Consejo, de 21 de mayo de 2013, relativo a la resolución de litigios en línea en materia de consumo, BELENDER también le informa que, en caso de controversia, los Usuarios residente de la Unión Europea podrán acudir a la “Plataforma Online de Resolución de Conflictos” que ha desarrollado la Comisión Europea, con el fin de intentar resolver extrajudicialmente cualquier controversia que se derive de la prestación de servicios por parte de BELENDER."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(126,"p"),Y.ɵɵtext(127,"Para a acceder a la “Plataforma Online de Resolución de Conflictos” puede hacerlo a través del siguiente enlace: http://ec.europa.eu/consumers/odr/ "),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(128,"div",6)(129,"div",7)(130,"belender-checkbox",8),Y.ɵɵlistener("changeCheckbox",(function(e){return t.setTerms(e)})),Y.ɵɵtext(131," Acepto y firmo digitalmente el documento "),Y.ɵɵelementEnd()(),Y.ɵɵtemplate(132,he,6,1,"div",9),Y.ɵɵelementEnd(),Y.ɵɵelementStart(133,"div",10)(134,"button",11),Y.ɵɵlistener("click",(function(){return t.nextStep()})),Y.ɵɵtext(135,"Continuar"),Y.ɵɵelementEnd()()()),2&e&&(Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size","16px"),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.text)("font-size","14px"),Y.ɵɵadvance(126),Y.ɵɵproperty("color",t.data.styles.colors.title),Y.ɵɵadvance(2),Y.ɵɵproperty("ngIf",t.solicitud&&t.solicitud.request_id?null==t.solicitud?null:t.solicitud.power_activate:null==t.data?null:t.data.config.activatePower),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.getIfValid()?t.data.styles.colors.btnText:"")("background",t.getIfValid()?t.data.styles.colors.btnBg:"")("border-radius",t.data.styles.btnRound+"px"),Y.ɵɵproperty("disabled",!t.getIfValid()))},dependencies:[i.O5,u.lW,p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm,ue.b],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.dont-show-data[_ngcontent-%COMP%]{opacity:0!important;padding:0!important;overflow:hidden!important;height:0px!important;margin:0!important}.pdf-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-weight:700;font-size:17px!important;line-height:18px!important;margin-bottom:15px}.pdf-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:700;font-size:15px!important;margin-top:20px}"]}),e})(),fe=(()=>{class e{constructor(e,t,n){this.fb=e,this.utils=t,this.Activatedroute=n,this.next=new Y.EventEmitter(null),this.accept=!1}ngOnInit(){this.Activatedroute.queryParams.subscribe((e=>{this.setForm(e)}))}nextStep(){let e={phone:this.form.get("phone").value};this.next.emit(e)}setForm(e){this.form=this.fb.group({phone:["",p.Validators.required]}),this.solicitud&&"bad_phone"==this.solicitud.status_code&&this.form.controls.phone.markAsTouched()}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(p.UntypedFormBuilder),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(P.gz))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-error-form-step"]],inputs:{data:"data",flowName:"flowName",texts:"texts",mode:"mode",solicitud:"solicitud"},outputs:{next:"nextStep"},decls:13,vars:14,consts:[[1,"animated","fadeIn","fixed-content",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"mb-3","flex","flex-col","md:flex-row","flex-wrap","gap-2","md:justify-between"],["appearance","outline",1,"mb-4","w-full","flex-1"],["formControlName","phone","matInput",""],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"form",0)(1,"div",1)(2,"div",2),Y.ɵɵtext(3,"Error con el teléfono"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(4,"div",3),Y.ɵɵtext(5,"El teléfono ingresado no coincide con registrado en la Seguridad Social, por favor ingrese otro"),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(6,"div",4)(7,"mat-form-field",5)(8,"mat-label"),Y.ɵɵtext(9,"Teléfono"),Y.ɵɵelementEnd(),Y.ɵɵelement(10,"input",6),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(11,"div",7)(12,"button",8),Y.ɵɵlistener("click",(function(){return t.nextStep()})),Y.ɵɵelementEnd()()()),2&e&&(Y.ɵɵproperty("formGroup",t.form),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.text),Y.ɵɵadvance(8),Y.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),Y.ɵɵproperty("disabled",t.form.invalid))},dependencies:[u.lW,A.KE,A.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.FormGroupDirective,p.FormControlName],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();var ge=n(5145);let _e=(()=>{class e{constructor(e){this.utils=e,this.status="",this.loaderColor="red",this.label="Cargando datos.."}ngOnInit(){this.data.config&&this.data.config.infiniteLoopInCompleted?this.label="":ge.Z.forEach((e=>{e.text==this.status&&(this.label=e.label)}))}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(V.F))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-loading-step"]],inputs:{status:"status",loaderColor:"loaderColor",data:"data"},decls:3,vars:2,consts:[[1,"fixed-content","h-full","animated","fadeIn"],[1,"h-full","py-10","flex","flex-col","items-center","min-h-[300px]"],[3,"text","color"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"div",0)(1,"div",1),Y.ɵɵelement(2,"belender-spinner",2),Y.ɵɵelementEnd()()),2&e&&(Y.ɵɵadvance(2),Y.ɵɵproperty("text",t.label)("color",t.loaderColor))},dependencies:[z.O],styles:[".content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),ve=(()=>{class e{constructor(){}ngOnInit(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-no-service-step"]],inputs:{data:"data",texts:"texts"},decls:5,vars:10,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"form",0)(1,"div",1),Y.ɵɵelement(2,"div",2)(3,"div",3),Y.ɵɵpipe(4,"safeHtml"),Y.ɵɵelementEnd()()),2&e&&(Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),Y.ɵɵproperty("innerHTML",t.texts.noService.title,Y.ɵɵsanitizeHtml),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",t.data.styles.colors.text),Y.ɵɵproperty("innerHTML",Y.ɵɵpipeBind1(4,8,t.texts.noService.description),Y.ɵɵsanitizeHtml))},dependencies:[p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm,se.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),ye=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryOp=new Y.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryOp.emit(this.solicitud.request_id)}getTextStatus(){switch(this.solicitud.status_code){case"abandoned_after_waiting_otp_seguridad_social":return"Abandonado después de esperar OTP de Seguridad Social";case"abandoned_after_invalid_otp_seguridad_social":return"Abandonado despues de OTP inválido en Seguridad Social";case"abandoned_after_invalid_otp_aeat":return"Abandonado despues de OTP inválido en AEAT";case"abandoned_after_waiting_otp_aeat":return"Abandonado después de esperar OTP de AEAT";default:return this.solicitud.status_code}}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(p.UntypedFormBuilder),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(_.M),Y.ɵɵdirectiveInject(y.o),Y.ɵɵdirectiveInject(I.T))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-abandoned-step"]],inputs:{solicitud:"solicitud",data:"data",texts:"texts"},outputs:{retryOp:"retry"},decls:10,vars:17,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-md","mb-2","mt-2"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"div",0)(1,"div",1),Y.ɵɵelement(2,"div",2)(3,"div",3),Y.ɵɵpipe(4,"safeHtml"),Y.ɵɵelementStart(5,"div",4),Y.ɵɵtext(6),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(7,"div",5)(8,"button",6),Y.ɵɵlistener("click",(function(){return t.retry()})),Y.ɵɵtext(9,"Intentarlo nuevamente"),Y.ɵɵelementEnd()()()),2&e&&(Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),Y.ɵɵproperty("innerHTML",t.texts.abandoned.title,Y.ɵɵsanitizeHtml),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",t.data.styles.colors.text),Y.ɵɵproperty("innerHTML",Y.ɵɵpipeBind1(4,15,t.texts.abandoned.description),Y.ɵɵsanitizeHtml),Y.ɵɵadvance(3),Y.ɵɵtextInterpolate1(" Estado: ",t.getTextStatus()," "),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW,se.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),be=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.nr=new Y.EventEmitter(null)}ngOnInit(){}newRequest(){this.nr.emit(!0)}gotoRequest(){location.assign(this.currentRequest.widget_url_boxed)}getStatus(){let e=ge.Z.find((e=>e.text==this.currentRequest.status_code));return e?e.label:"Estado desconocido"}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(p.UntypedFormBuilder),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(_.M),Y.ɵɵdirectiveInject(y.o),Y.ɵɵdirectiveInject(I.T))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-duplicated-request-step"]],inputs:{currentRequest:"currentRequest",data:"data",texts:"texts"},outputs:{nr:"newRequest"},decls:15,vars:15,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"flex","gap-2","justify-start","items-center","py-2"],[1,"w-fit","p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-sm"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),Y.ɵɵtext(3," Solicitud duplicada! "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(4,"div",3),Y.ɵɵtext(5," Ya existe una solicitud para este cliente. "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(6,"div",4),Y.ɵɵtext(7," Estado de la solicitud actual: "),Y.ɵɵelementStart(8,"div",5),Y.ɵɵtext(9),Y.ɵɵelementEnd()()(),Y.ɵɵelementStart(10,"div",6)(11,"button",7),Y.ɵɵlistener("click",(function(){return t.newRequest()})),Y.ɵɵtext(12,"Nueva solicitud"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(13,"button",8),Y.ɵɵlistener("click",(function(){return t.gotoRequest()})),Y.ɵɵtext(14,"Ir a la solicitud actual"),Y.ɵɵelementEnd()()()),2&e&&(Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.text),Y.ɵɵadvance(5),Y.ɵɵtextInterpolate1(" ",t.getStatus()," "),Y.ɵɵadvance(2),Y.ɵɵstyleProp("border-radius",t.data.styles.btnRound+"px"),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function xe(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"vex-power-cert",3),Y.ɵɵlistener("accept",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext();return Y.ɵɵresetView(t.acceptPowerCert())})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵproperty("hideButtons",!1)("flow","DigitalPower")("userId",e.userId)}}function we(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",8),Y.ɵɵelement(1,"img",9),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵproperty("src",e.data.styles.logoUrl,Y.ɵɵsanitizeUrl)}}function Ce(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-intro-step",22),Y.ɵɵlistener("gotoFlow",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(3);return Y.ɵɵresetView(t.goFlow())}))("gotoManual",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(3);return Y.ɵɵresetView(t.gotoManual())})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("data",e.data)}}function Se(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-manual-step",23),Y.ɵɵlistener("goBack",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(3);return Y.ɵɵresetView(t.gotoIntro())})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("data",e.data)("packId",e.packId)("userId",e.userId)}}function Me(e,t){if(1&e&&Y.ɵɵelement(0,"belender-loading-step",24),2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("status",null==e.solicitud?null:e.solicitud.status_code)("data",e.data)("loaderColor",e.data.styles.colors.title)}}function Ie(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-form-step",25),Y.ɵɵlistener("goToPower",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(3);return Y.ɵɵresetView(t.gotoPowerConditions())}))("goToPower",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(3);return Y.ɵɵresetView(t.gotoPowerConditions())}))("nextStep",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.gotoOtp(t))})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("data",e.data)("flowName",e.flowName)("texts",e.data[e.flowName].texts)("solicitud",e.solicitud)}}function ke(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-error-form-step",26),Y.ɵɵlistener("nextStep",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.sendNewData(t))})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("solicitud",e.solicitud)("data",e.data)("texts",e.data[e.flowName].texts)}}function Ee(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-abandoned-step",27),Y.ɵɵlistener("retry",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.retryRequest(t))})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("solicitud",e.solicitud)("data",e.data)("texts",e.data[e.flowName].texts)}}function Te(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-otp-step",28),Y.ɵɵlistener("resendOTP",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(3);return Y.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.requestOTP(t))})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Pe(e,t){if(1&e&&Y.ɵɵelement(0,"belender-success-step",29),2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)}}function Oe(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-duplicated-request-step",30),Y.ɵɵlistener("newRequest",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.newRequest(t))})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("data",e.data)("currentRequest",e.currentRequest)}}function De(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-fail-step",31),Y.ɵɵlistener("retry",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.retryRequest(t))}))("newRequest",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.newRequest(t))})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Le(e,t){if(1&e&&Y.ɵɵelement(0,"belender-no-service-step",32),2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("texts",e.data[e.flowName].texts)("data",e.data)}}function Ae(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",33)(1,"div",34)(2,"h1",35),Y.ɵɵtext(3,"No existe la solicitud"),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(4,"div",36),Y.ɵɵtext(5,"No existen solicitudes activas con el código requerido"),Y.ɵɵelementEnd()()),2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵadvance(4),Y.ɵɵstyleProp("color",e.data.styles.colors.text)}}function Ne(e,t){if(1&e&&(Y.ɵɵelementContainerStart(0),Y.ɵɵtemplate(1,Ce,1,1,"belender-intro-step",10),Y.ɵɵtemplate(2,Se,1,3,"belender-manual-step",11),Y.ɵɵtemplate(3,Me,1,3,"belender-loading-step",12),Y.ɵɵtemplate(4,Ie,1,4,"belender-form-step",13),Y.ɵɵtemplate(5,ke,1,3,"belender-error-form-step",14),Y.ɵɵtemplate(6,Ee,1,3,"belender-abandoned-step",15),Y.ɵɵtemplate(7,Te,1,3,"belender-otp-step",16),Y.ɵɵtemplate(8,Pe,1,2,"belender-success-step",17),Y.ɵɵtemplate(9,Oe,1,2,"belender-duplicated-request-step",18),Y.ɵɵtemplate(10,De,1,3,"belender-fail-step",19),Y.ɵɵtemplate(11,Le,1,2,"belender-no-service-step",20),Y.ɵɵtemplate(12,Ae,6,2,"div",21),Y.ɵɵelementContainerEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","intro"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","manual"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","loading"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","form"==e.getStatus()&&!e.loading),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","error-data"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","abandoned"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","otp"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","success"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","duplicated"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","failed"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","no-service"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","no-exist"==e.getStatus())}}function Re(e,t){1&e&&Y.ɵɵelement(0,"belender-disabled-url")}function je(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",37),Y.ɵɵelement(1,"belender-spinner",38),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵpropertyInterpolate("text",e.loading),Y.ɵɵproperty("color",e.data.styles.colors.title)}}function Fe(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"div",39)(1,"div",33)(2,"div",40),Y.ɵɵtext(3,"Error!"),Y.ɵɵelementEnd(),Y.ɵɵelement(4,"div",41),Y.ɵɵelementEnd(),Y.ɵɵelementStart(5,"div",42)(6,"button",43),Y.ɵɵlistener("click",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(2);return Y.ɵɵresetView(t.error=!1)})),Y.ɵɵtext(7,"Ingresar manualmente"),Y.ɵɵelementEnd()()()}if(2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(4),Y.ɵɵstyleProp("color",e.data.styles.colors.text),Y.ɵɵproperty("innerHTML",e.error,Y.ɵɵsanitizeHtml)}}function qe(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",4)(1,"div"),Y.ɵɵtemplate(2,we,2,1,"div",5),Y.ɵɵtemplate(3,Ne,13,12,"ng-container",2),Y.ɵɵtemplate(4,Re,1,0,"belender-disabled-url",2),Y.ɵɵtemplate(5,je,2,2,"div",6),Y.ɵɵtemplate(6,Fe,8,3,"div",7),Y.ɵɵelementEnd()()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵclassMapInterpolate1("h-full w-full flex-auto p-0 md:p-3 ",e.data.styles.typography,""),Y.ɵɵstyleProp("background",e.data.styles.colors.background),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",e.data.styles.withLogo&&"loading"!=e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!e.error&&!e.disableURL),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!e.error&&e.disableURL),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",e.loading&&!e.error),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!e.loading&&e.error)}}function Ye(e,t){if(1&e&&(Y.ɵɵelementContainerStart(0),Y.ɵɵelementStart(1,"div",44),Y.ɵɵtext(2),Y.ɵɵelementEnd(),Y.ɵɵelementContainerEnd()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(2),Y.ɵɵtextInterpolate1("TestMode ",e.testMode?"ON":"OFF","")}}let Ve=class{constructor(e,t,n,i,r,s,o,a){this.cd=e,this.Activatedroute=t,this.utils=n,this.solicitudesService=i,this.customizationService=r,this.notis=s,this.webhooksService=o,this.dialog=a,this.data=null,this.disableActions=!1,this.step="created",this.waitingTime=15,this.loading=null,this.error=!1,this.spinnerMode="indeterminate",this.spinnerValue=0,this.subscribed=!1,this.testMode=!1,this.cntrlIsPressed=!1,this.shiftlIsPressed=!1,this.skipCreationOfRequest=!1,this.autoAcceptTerms=!1,this.introEnabled=!0,this.manual=!1,this.disableURL=!1,this.viewPowerTerms=!1,this.flowName="PowerActivate"}ngOnInit(){console.warn(this.solicitud);const e=this;this.loading="Obteniendo información de la solicitud",this.Activatedroute.params.subscribe((e=>{this.utils.setLoading(!1),e&&e.idUser?(this.userId=e.idUser,this.setInitialData(this.userId)):this.loading=!1,e&&e.packID&&(this.packId=e.packID)}),(e=>{this.loading=!1,this.utils.setLoading(!1)})),"pro"!=F.N.env&&(j(document).keydown((function(t){16==t.which&&(this.shiftlIsPressed=!0),17==t.which&&(this.cntrlIsPressed=!0),84==t.which&&this.cntrlIsPressed&&this.shiftlIsPressed&&(e.testMode=!e.testMode,e.cd.markForCheck())})),j(document).keyup((function(e){16==e.which&&(this.shiftlIsPressed=!1),16==e.which&&(this.cntrlIsPressed=!1)})))}ngOnDestroy(){}sendMessageToParent(e){window.top.postMessage(e,"*")}gotoPowerConditions(){this.viewPowerTerms=!0}setInitialData(e){this.customizationService.getCustomization(e).then((e=>{e?(this.data=e,this.disableURL=e.config.disableUrlWidget,this.financiadorID=e.funder_id||"",this.validateRequestIdInUrl(),this.introEnabled=this.data.config.introEnabled,this.cd.markForCheck()):this.loading=!1}),(e=>{console.error(e),this.loading=!1}))}validateRequestIdInUrl(){this.Activatedroute.queryParams.subscribe((e=>{e&&e.acceptTerms&&(this.autoAcceptTerms=!0),e&&e.request_id?(this.disableURL=!1,this.requestID=e.request_id,this.setFormFromVcCode(e.request_id)):this.loading=!1}),(e=>{this.loading=!1}))}setFormFromVcCode(e){var t=this;return(0,D.Z)((function*(){t.loading="Obteniendo datos de la solicitud...",t.solicitudesService.getSolicitudByCode(e).then((e=>{e&&e.data?(t.solicitud=e.data,t.setSubscriptionOfRequest(),t.loading=!1,t.skipCreationOfRequest=!0,t.autoAcceptTerms&&t.acceptTerms()):t.loading=!1})).catch((e=>{t.loading=!1}))}))()}handlePusherNotification(e){this.dataFromFirebase=e,this.dataFromFirebase&&this.dataFromFirebase.status_code&&(this.solicitud.status_code=this.dataFromFirebase.status_code,"invalid_otp_seguridad_social"==this.solicitud.status_code&&this.showAlert("Error!","Código inválido. Por favor, introduzca el código recibido por SMS"),"terms_and_conditions"!=this.solicitud.status_code&&setTimeout((()=>{this.loading=!1,this.cd.markForCheck()}),500))}resendOTP(e){let t={request_id:this.requestID,user_id:this.userId};this.loading="Reenviando OTP...",this.setSubscriptionOfRequest(),this.solicitudesService.resendOTP(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}gotoOtp(e){this.loading="Enviando datos..",setTimeout((()=>{this.solicitud=new R.l,this.solicitud.status_code="waiting_otp_seguridad_social",this.loading=!1}),4e3)}setSubscriptionOfRequest(){if(this.socket)return;const e=this;let t="wss://notifications.dev.belender.net";"qa"==F.N.env&&(t="wss://notifications.qa.belender.net"),"pro"==F.N.env&&(t="wss://notifications.belender.net"),F.N.notificationsBaseUrl&&(t=F.N.notificationsBaseUrl),this.socket=new WebSocket(`${t}?requests_id=${this.requestID}&user_id=${this.userId}`),this.socket.onopen=function(e){console.log("Conexión establecida")},this.socket.onmessage=function(t){let n=JSON.parse(t.data);console.warn("message from wss: ",n),e.handlePusherNotification(n)},this.socket.onerror=function(t){console.log("WebSocket Error: "+t),console.error(t),e.setSubscriptionOfRequestOld()},this.socket.onclose=function(t){console.log("Conexión cerrada"),e.setSubscriptionOfRequestOld()}}setSubscriptionOfRequestOld(){!this.financiadorID||!this.userId||!this.requestID||this.subscribed||(this.subscribed=!0,this.webhooksService.bindRequestChanges(this.financiadorID,this.userId,this.requestID),this.webhooksService.subscribeRequestChanges().subscribe((e=>{console.warn("from firebase: ",e),e&&this.handlePusherNotification(e)}),(e=>{this.loading=!1})))}sendNewData(e){this.loading="Enviando información..",this.solicitudesService.fixData(this.requestID,e).then((e=>{e.status&&"error"==e.status?e.message&&(this.showAlert("Error!",e),this.loading=!1):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.initWaitingForResponse("Validando nuevos datos, espere por favor.."),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}showAlert(e,t){this.loading=!1,this.notis.showAlert(e,t)}acceptTerms(){let e={request_id:this.requestID,user_id:this.userId,terms_and_conditions:!0};this.initWaitingForResponse("Validando datos y logueandose a Seguridad Social, espere por favor.."),this.solicitudesService.acceptTerms(e).then((e=>{e.status&&"error"==e.status?e.message&&"You have a request in progress"==e.message?location.pathname.indexOf("widget-boxed")>-1?location.assign(e.response.widget_url_boxed):location.assign(e.response.widget_url):this.showAlert("Error!",e.message?e.message:e):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.solicitud=e.data,this.setSubscriptionOfRequest(),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}requestOTP(e){this.loading="Enviando información..",setTimeout((()=>{this.solicitud=new R.l,this.solicitud.status_code="all_documents_downloaded",this.loading=!1}),2e3)}initWaitingForResponse(e){this.loading=e||"Validando información, espere por favor..",setTimeout((()=>{this.loading&&this.askToBack()}),1e4)}askToBack(){this.solicitudesService.getSolicitudByCode(this.requestID).then((e=>{e&&e.data?(this.solicitud=e.data,this.loading=!1):this.loading=!1})).catch((e=>{this.loading=!1}))}gotoErrorPhone(){}setRequestStatus(e){this.solicitud.status_code=e}retryRequest(e){let t={request_id:e,user_id:this.userId};this.loading="Reintentando enviar la solicitud...",this.setSubscriptionOfRequest(),this.solicitudesService.retryRequest(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}newRequest(e){this.solicitud.status_code="created"}gotoManual(){this.manual=!0,this.cd.markForCheck()}gotoIntro(){this.manual=!1}goFlow(){this.introEnabled=!1}goIntro(){this.manual=!1,this.introEnabled=!0}getStatus(){return this.manual?"manual":this.introEnabled?"intro":!this.solicitud||this.solicitud&&("created"==this.solicitud.status_code||"form"==this.solicitud.status_code||"terms_and_conditions"==this.solicitud.status_code)?"form":this.solicitud&&"qa"!=F.N.env&&"saved_otp"==this.solicitud.status_code?(this.loading="Estamos procesando su solicitud. Espere un momento por favor","loading"):!this.solicitud||"waiting_otp_seguridad_social"!=this.solicitud.status_code&&"waiting_login_seguridad_social"!=this.solicitud.status_code&&"invalid_otp_seguridad_social"!=this.solicitud.status_code?!this.solicitud||"abandoned_after_bad_phone"!=this.solicitud.status_code&&"abandoned_after_invalid_otp_seguridad_social"!=this.solicitud.status_code&&"abandoned_after_terms_and_conditions"!=this.solicitud.status_code&&"abandoned_after_waiting_otp_seguridad_social"!=this.solicitud.status_code?!this.solicitud||"all_documents_downloaded"!=this.solicitud.status_code&&"partial_documents_downloaded"!=this.solicitud.status_code&&"waiting_documents"!=this.solicitud.status_code?!this.solicitud||"bad_phone"!=this.solicitud.status_code&&"phone_not_exist_otp"!=this.solicitud.status_code?!this.solicitud||"failed_with_retry"!=this.solicitud.status_code&&"failed_without_retry"!=this.solicitud.status_code&&"failed_documents_downloaded"!=this.solicitud.status_code?this.solicitud&&"no_service"==this.solicitud.status_code?"no-service":this.solicitud&&"duplicated"==this.solicitud.status_code?"duplicated":"no-exist":"failed":this.data.config.noRetryInBadPhone?"otp":"error-data":this.data.config&&this.data.config.infiniteLoopInCompleted?"loading":"success":"abandoned":"otp"}acceptPowerCert(){this.viewPowerTerms=!1}sendRetry(){}gotoTermsAndConditions(){this.dialog.open(q.L,{panelClass:"fullscreen-dialog",data:{flow:"sms"}})}};Ve.ɵfac=function(e){return new(e||Ve)(Y.ɵɵdirectiveInject(Y.ChangeDetectorRef),Y.ɵɵdirectiveInject(P.gz),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(_.M),Y.ɵɵdirectiveInject(C.w),Y.ɵɵdirectiveInject(I.T),Y.ɵɵdirectiveInject(x.t),Y.ɵɵdirectiveInject(H.uw))},Ve.ɵcmp=Y.ɵɵdefineComponent({type:Ve,selectors:[["belender-widget-power"]],inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud"},features:[Y.ɵɵProvidersFeature([{provide:A.o2,useValue:{appearance:"standard"}}])],decls:3,vars:3,consts:[[3,"hideButtons","flow","userId","accept",4,"ngIf"],["class","h-full widget-belender",4,"ngIf"],[4,"ngIf"],[3,"hideButtons","flow","userId","accept"],[1,"h-full","widget-belender"],["class","img-wrapper p-6 flex justify-center items-center",4,"ngIf"],["class","loading-wrapper animated fadeIn",4,"ngIf"],["class","animated fadeInRight",4,"ngIf"],[1,"img-wrapper","p-6","flex","justify-center","items-center"],["alt","",1,"img-card",3,"src"],["flow","SMS","class","h-full ",3,"data","gotoFlow","gotoManual",4,"ngIf"],["flow","SMS","class","h-full ",3,"data","packId","userId","goBack",4,"ngIf"],[3,"status","data","loaderColor",4,"ngIf"],[3,"data","flowName","texts","solicitud","goToPower","nextStep",4,"ngIf"],[3,"solicitud","data","texts","nextStep",4,"ngIf"],[3,"solicitud","data","texts","retry",4,"ngIf"],[3,"data","texts","solicitud","resendOTP","errorPhone","nextStep",4,"ngIf"],[3,"data","texts",4,"ngIf"],[3,"data","currentRequest","newRequest",4,"ngIf"],[3,"data","texts","solicitud","retry","newRequest",4,"ngIf"],[3,"texts","data",4,"ngIf"],["class","px-6 py-4 flex flex-col",4,"ngIf"],["flow","SMS",1,"h-full",3,"data","gotoFlow","gotoManual"],["flow","SMS",1,"h-full",3,"data","packId","userId","goBack"],[3,"status","data","loaderColor"],[3,"data","flowName","texts","solicitud","goToPower","nextStep"],[3,"solicitud","data","texts","nextStep"],[3,"solicitud","data","texts","retry"],[3,"data","texts","solicitud","resendOTP","errorPhone","nextStep"],[3,"data","texts"],[3,"data","currentRequest","newRequest"],[3,"data","texts","solicitud","retry","newRequest"],[3,"texts","data"],[1,"px-6","py-4","flex","flex-col"],[1,"title","m-0"],[1,"text-red-500"],[1,"subheading-1","pt-4"],[1,"loading-wrapper","animated","fadeIn"],[3,"text","color"],[1,"animated","fadeInRight"],[1,"text-red-500","title","m-0"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"text-blue-500","bg-blue-50","px-8",3,"click"],[1,"test-mode","px-10","py-2","bg-blue-500/10","text-blue-500","border-blue-500","border","rounded-md"]],template:function(e,t){1&e&&(Y.ɵɵtemplate(0,xe,1,3,"vex-power-cert",0),Y.ɵɵtemplate(1,qe,7,10,"div",1),Y.ɵɵtemplate(2,Ye,3,1,"ng-container",2)),2&e&&(Y.ɵɵproperty("ngIf",t.viewPowerTerms),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.data),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.testMode))},dependencies:[i.O5,u.lW,z.O,B.R,U.u,W.q,$.L,re,ae,de,me,fe,_e,ve,ye,be],styles:[".widget-belender[_ngcontent-%COMP%]{position:relative}.widget-belender[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between}.badge-table[_ngcontent-%COMP%]{max-width:140px!important;border-radius:5px!important;-webkit-border-radius:5px!important;-moz-border-radius:5px!important;-ms-border-radius:5px!important;-o-border-radius:5px!important}.btn-refresh[_ngcontent-%COMP%]{transform:translateY(2px)}.request-data-info[_ngcontent-%COMP%]{transition:all .5s ease!important}.img-card[_ngcontent-%COMP%]{max-width:240px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.loading-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:absolute;top:0;left:0;background:#fff}.mat-flat-button.mat-primary.mat-button-disabled[_ngcontent-%COMP%]{background:red!important}button.mat-flat-button.text-green-500.bg-green-light.mat-button-disabled[_ngcontent-%COMP%]{background:orange!important}.test-mode[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px}"]}),Ve=(0,L.gn)([(0,N.c)()],Ve);const He=[{path:":idUser",component:Ve},{path:":idUser/:packID",component:Ve}];let ze=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=Y.ɵɵdefineNgModule({type:e}),e.ɵinj=Y.ɵɵdefineInjector({imports:[P.Bz.forChild(He),P.Bz,O.d8]}),e})();var Be=n(6981),Ue=n(1129),We=n(9476),$e=n(8962),Ge=n(3468),Ze=n(3300),Ke=n(2266);let Qe=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=Y.ɵɵdefineNgModule({type:e}),e.ɵinj=Y.ɵɵdefineInjector({providers:[_.M,y.o,C.w,x.t,I.T,T.t,{provide:M.Ad,useValue:"es-ES"}],imports:[ze,i.ez,r.G,s.J,o.TU,a.p0,l.JX,c.p9,d.Ps,u.ot,h.Tx,w.c,p.FormsModule,m.AV,p.ReactiveFormsModule,f.LD,g.vV,v.a,b.Cq,S.FA,M.XK,k.T5,E.Fk,Be.x,Ue.n,We.F,$e.A,Ge.f,Ze.C,Ke.L]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[94],{2094:(e,t,n)=>{n.r(t),n.d(t,{SmsPinModule:()=>Ge});var i=n(6895),r=n(6383),s=n(5592),o=n(8739),a=n(7155),l=n(6308),c=n(6709),d=n(7392),u=n(9101),h=n(1561),p=n(4006),m=n(266),f=n(4385),g=n(811),_=n(5601),v=n(3798),y=n(9391),b=n(1572),x=n(182),w=n(4144),C=n(7367),S=n(9602),M=n(3238),I=n(5895),k=n(6257),E=n(1948),T=n(4246),P=n(9299),O=n(6e3),D=n(5861),L=n(7582),A=n(9549),N=n(9933),R=n(8259),j=n(2340),F=n(6830),q=n(1931),Y=n(4650),V=n(5089),H=n(9617),z=n(7489),B=n(5412),U=n(8460),W=n(7308),$=n(920),G=n(8364),Z=n(4302),K=n(5439),Q=n.n(K),X=(n(6866),n(3755)),J=n(3746),ee=n(1763),te=n(7795),ne=n(5696),ie=n(3731);const re=["termsCheckbox"],se=["assignmentCheckbox"];function oe(e,t){if(1&e&&(Y.ɵɵelementStart(0,"p",18)(1,"b"),Y.ɵɵtext(2),Y.ɵɵelementEnd()()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(2),Y.ɵɵtextInterpolate1(" ",null==e.labels||null==e.labels.warnings?null:e.labels.warnings.needMoreData," ")}}function ae(e,t){if(1&e&&(Y.ɵɵelementStart(0,"mat-error"),Y.ɵɵtext(1),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵtextInterpolate1(" ",null==e.labels||null==e.labels.warnings?null:e.labels.warnings.invalidDni," ")}}const le=function(e){return{mask:e}};function ce(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"mat-form-field",6)(1,"mat-label"),Y.ɵɵtext(2),Y.ɵɵelementEnd(),Y.ɵɵelement(3,"input",19),Y.ɵɵelementStart(4,"mat-hint")(5,"a",20),Y.ɵɵlistener("click",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext();return Y.ɵɵresetView(n.gotoExpirationDate(t))})),Y.ɵɵelementStart(6,"u"),Y.ɵɵtext(7),Y.ɵɵelementEnd()()()()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵclassMapInterpolate1("",e.disabledInputs.expiration?"disabled-input":""," w-full flex-1 belender-form-field"),Y.ɵɵadvance(2),Y.ɵɵtextInterpolate1(" ",null==e.labels?null:e.labels.expiration,""),Y.ɵɵadvance(1),Y.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.expiration?-1:1),Y.ɵɵproperty("textMask",Y.ɵɵpureFunction1(7,le,e.datemask)),Y.ɵɵadvance(4),Y.ɵɵtextInterpolate(null==e.labels?null:e.labels.findExpiration)}}function de(e,t){if(1&e&&(Y.ɵɵelementStart(0,"mat-form-field",6)(1,"mat-label"),Y.ɵɵtext(2),Y.ɵɵelementEnd(),Y.ɵɵelement(3,"input",21),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵclassMapInterpolate1("",e.disabledInputs.birthday?"disabled-input":""," w-full flex-1 belender-form-field"),Y.ɵɵadvance(2),Y.ɵɵtextInterpolate1(" ",null==e.labels?null:e.labels.birthday," "),Y.ɵɵadvance(1),Y.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.birthday?-1:1),Y.ɵɵproperty("textMask",Y.ɵɵpureFunction1(6,le,e.datemask))}}function ue(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"mat-form-field",6)(1,"mat-label"),Y.ɵɵtext(2),Y.ɵɵelementEnd(),Y.ɵɵelement(3,"input",22),Y.ɵɵelementStart(4,"mat-hint")(5,"a",20),Y.ɵɵlistener("click",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext();return Y.ɵɵresetView(n.gotoSupportAclaration(t))})),Y.ɵɵelementStart(6,"u"),Y.ɵɵtext(7),Y.ɵɵelementEnd()()()()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵclassMapInterpolate1("",e.disabledInputs.supportNumber?"disabled-input":""," w-full flex-1 belender-form-field"),Y.ɵɵadvance(2),Y.ɵɵtextInterpolate(null==e.labels?null:e.labels.support),Y.ɵɵadvance(1),Y.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.supportNumber?-1:1),Y.ɵɵadvance(4),Y.ɵɵtextInterpolate(null==e.labels?null:e.labels.findExpiration)}}function he(e,t){if(1&e&&(Y.ɵɵelementStart(0,"mat-form-field",6)(1,"mat-label"),Y.ɵɵtext(2),Y.ɵɵelementEnd(),Y.ɵɵelement(3,"input",23),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵclassMapInterpolate1("",e.disabledInputs.phone?"disabled-input":""," w-full flex-1 belender-form-field"),Y.ɵɵadvance(2),Y.ɵɵtextInterpolate(null==e.labels?null:e.labels.phone),Y.ɵɵadvance(1),Y.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.phone?-1:1)}}function pe(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",24)(1,"mat-form-field",6)(2,"mat-label"),Y.ɵɵtext(3),Y.ɵɵelementEnd(),Y.ɵɵelement(4,"input",25),Y.ɵɵelementEnd()()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵclassMapInterpolate1("",e.disabledInputs.email?"disabled-input":""," w-full flex-1 belender-form-field"),Y.ɵɵadvance(2),Y.ɵɵtextInterpolate(null==e.labels?null:e.labels.email),Y.ɵɵadvance(1),Y.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.email?-1:1)}}function me(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"div",26)(1,"belender-checkbox",27,28),Y.ɵɵlistener("changeCheckbox",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext();return Y.ɵɵresetView(n.setTerms(t))})),Y.ɵɵelementStart(3,"belender-terms-and-policy-links",29),Y.ɵɵlistener("goToTerms",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext();return Y.ɵɵresetView(n.gotoTermsAndConditions(t))})),Y.ɵɵelementEnd()()()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵproperty("color",e.data.styles.colors.title),Y.ɵɵadvance(2),Y.ɵɵproperty("userId",e.userId)("showPolicyLink",null==e.data?null:e.data.config.showPolicyLink)("lang",e.lang)("firstSentence",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.firstSentence)("secondSentence",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.secondSentence)("thirdSentence",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.thirdSentence)("policyActionText",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.policyActionText)("termsActionText",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.termsActionText)("customTerms",e.data[e.flowName].customTerms)}}function fe(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"div",30)(1,"belender-checkbox",31,32),Y.ɵɵlistener("changeCheckbox",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext();return Y.ɵɵresetView(n.setAssignment(t))})),Y.ɵɵelement(3,"div",33),Y.ɵɵelementEnd()()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵproperty("color",e.data.styles.colors.title),Y.ɵɵadvance(2),Y.ɵɵproperty("innerHTML",null==e.data?null:e.data.config.dataAssignmentText,Y.ɵɵsanitizeHtml)}}function ge(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",34),Y.ɵɵelement(1,"mat-icon",35),Y.ɵɵtext(2),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(2),Y.ɵɵtextInterpolate1(" ",null==e.labels||null==e.labels.warnings?null:e.labels.warnings.haveToReadTerms," ")}}function _e(e,t){if(1&e&&(Y.ɵɵelement(0,"div",3),Y.ɵɵpipe(1,"safeHtml")),2&e){const e=Y.ɵɵnextContext();Y.ɵɵstyleProp("color",e.data.styles.colors.text),Y.ɵɵproperty("innerHTML",Y.ɵɵpipeBind1(1,3,(null==e.texts.form?null:e.texts.form.aditionalDescription)||""),Y.ɵɵsanitizeHtml)}}function ve(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",36),Y.ɵɵelement(1,"mat-progress-spinner",37),Y.ɵɵelementStart(2,"p",38),Y.ɵɵtext(3),Y.ɵɵelementEnd()()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(3),Y.ɵɵtextInterpolate1(" ",e.loading," ")}}const ye=function(e,t,n){return{"justify-start":e,"justify-center":t,"justify-end":n}},be={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let xe=(()=>{class e{constructor(e,t,n,i,r,s,o){this.fb=e,this.solicitudesService=t,this.notis=n,this.utils=i,this.pinService=r,this.cd=s,this.dialog=o,this.next=new Y.EventEmitter(null),this.goTerms=new Y.EventEmitter(null),this.acceptTerms=!1,this.step=0,this.assignment=!1,this.termsReaded=!1,this.isDni=!1,this.isNie=!1,this.disabledInputs={dni:!1,expiration:!1,birthday:!1,supportNumber:!1,email:!1,phone:!1},this.datemask=[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],this.mode="ClavePin"}ngOnInit(){this.setForm(this.solicitud?this.solicitud:null),this.form.get("dni")&&this.setRegex(this.form.get("dni").value)}setRegex(e){e&&(this.isDni=!!e.toUpperCase().match(/^(\d{8})([A-Z])$/),this.isNie=!!e.toUpperCase().match(/^[XYZ]\d{7,8}[A-Z]$/),this.errorDNI=this.isDni||this.isNie?null:"Debes ingresar un DNI o NIE válido!")}setNieFormValidators(){this.form.controls.support_number.setValidators([p.Validators.required]),this.form.controls.birth_date.setValidators([p.Validators.required]),this.form.controls.expired_date.clearValidators(),this.form.get("support_number").updateValueAndValidity(),this.form.get("birth_date").updateValueAndValidity(),this.form.get("expired_date").updateValueAndValidity()}setDniFormValidators(){this.form.controls.support_number.clearValidators(),this.form.controls.birth_date.setValidators([p.Validators.required]),this.form.controls.expired_date.setValidators([p.Validators.required]),this.form.get("support_number").updateValueAndValidity(),this.form.get("birth_date").updateValueAndValidity(),this.form.get("expired_date").updateValueAndValidity()}tabChanged(e){this.step=e}setForm(e){let t=e.document_expiration_date,n=e.birth_date;e.document_expiration_date?t=Q()(e.document_expiration_date).format("DD/MM/YYYY"):e.person_document_expiration_date&&(t=Q()(e.person_document_expiration_date).format("DD/MM/YYYY")),e.birthday?n=Q()(e.birthday).format("DD/MM/YYYY"):e.person_birth_date?n=Q()(e.person_birth_date).format("DD/MM/YYYY"):e.birth_date&&(n=Q()(e.birth_date).format("DD/MM/YYYY"));let i=e?e.person_document_number||e.document_number||e.dni:null,r=n||null,s=e?e.person_phone||e.phone:null,o=e?e.person_email||e.email:null,a=e?t:null,l=e?e.document_support:null;this.form=this.fb.group(this.data.config.followMail?{dni:[i||null,[p.Validators.required,p.Validators.maxLength(9),this.regexDNI()]],expired_date:[a||null],support_number:[l],type:["DNI"],person_phone:[s||""],email:[o],birth_date:[r]}:{dni:[i||null,[p.Validators.required,p.Validators.maxLength(9),this.regexDNI()]],expired_date:[a||null],support_number:[l],type:["DNI"],person_phone:[s||""],birth_date:[r]}),this.requestIDFromURL&&this.disableEnableInputs(i,r,a,l,s,o)}disableEnableInputs(e,t,n,i,r,s){this.disabledInputs={dni:e||!1,birthday:t||!1,expiration:n||!1,supportNumber:i||!1,email:s||!1,phone:r||!1}}regexDNI(){return e=>{const t=e.value;return t?(this.setRegex(t),this.isDni||this.isNie?null:{regexDNI:!0}):null}}validate(){"ClavePin"==this.mode&&this.checkPin(),"SMS"==this.mode&&this.checkSms()}checkPin(){this.loading=this.labels.loadings.sendingData,this.cd.markForCheck();let e=this.getFormObject();e.user_id=this.userId,e.package_id=this.pinPackID,this.pinService.checkService(e).then((e=>{e&&e.status&&"error"==e.status?e.message&&("Incorrect date"==e.message?(this.solicitud.status_code="form",this.showAlert(this.labels.warnings.error,this.labels.warnings.wrongDate)):400==e.code&&"Incorrect support number"==e.message?(this.showAlert(this.labels.warnings.error,this.labels.warnings.wrongSupport),this.solicitud.status_code="form"):400==e.code?this.checkIfHaveAllSmsData()?(this.mode="SMS",this.checkSms()):(this.mode="SMS",this.loading=null):(this.solicitud.status_code="form",this.showAlert("Error!",e.message))):e&&e.status&&"success"==e.status?this.nextStep():this.showAlert(this.labels.warnings.error,this.labels.warnings.unknownError+e),this.cd.markForCheck()})).catch((e=>{e&&e.error&&this.showAlert(this.labels.warnings.error,e.error),this.loading=null,this.cd.markForCheck()}))}checkIfHaveAllSmsData(){let e=this.form.get("dni")?this.form.get("dni").value:null,t=this.form.get("person_phone")?this.form.get("person_phone").value:null,n=this.form.get("birth_date")?this.form.get("birth_date").value:null,i=this.form.get("expired_date")?this.form.get("expired_date").value:null,r=this.form.get("support_number")?this.form.get("support_number").value:null;return this.isDni?e&&t&&i&&n:e&&t&&r&&n}checkSms(){this.loading=this.labels.loadings.checkingSms;let e=this.getFormObject();e.user_id=this.userId,e.package_id=this.smsPackID,this.solicitudesService.checkService(e).then((t=>{t&&t.status&&"error"==t.status?(this.solicitud=e,"Invalid birthdate format"==t.message||"Birthdate incorrect"==t.message?(this.solicitud.status_code="form",this.showAlert(this.labels.warnings.error,this.labels.warnings.wrongBirthday)):"Incorrect date"==t.message?(this.solicitud.status_code="form",this.showAlert(this.labels.warnings.error,this.labels.warnings.wrongDate)):t.message&&(400==t.code?this.showAlert(this.labels.warnings.error,this.labels.warnings.noSms,"error"):(this.solicitud.status_code="form",this.showAlert(this.labels.warnings.error,t.message)))):t&&t.status&&"success"==t.status?this.nextStep():this.showAlert(this.labels.warnings.error,this.labels.warnings.unknownError+t),this.loading=null,this.cd.markForCheck()})).catch((e=>{e&&e.error&&this.showAlert(this.labels.warnings.error,e.error),this.loading=!1,this.cd.markForCheck()}))}showAlert(e,t,n){this.loading=!1,this.notis.showAlert(e,t,n)}getFormObject(){let e={document_number:this.form.get("dni").value.toUpperCase(),check_legal:!0};return"SMS"==this.mode&&(e.phone=this.form.get("person_phone").value,e.birth_date=this.utils.formatDate(this.form.get("birth_date").value)),"ClavePin"==this.mode&&this.isDni&&(e.document_expiration_date=this.utils.formatDate(this.form.get("expired_date").value)),this.isDni||(e.document_support=this.form.get("support_number").value,e.birth_date=this.utils.formatDate(this.form.get("birth_date").value)),this.data&&this.data.config&&this.data.config.followMail&&(e.email_copy=this.form.get("email").value),e}nextStep(){let e=this.getFormObject();this.next.emit({request:e,mode:this.mode})}gotoTermsAndConditions(e){e.preventDefault(),e.stopPropagation(),this.termsReaded=!0,this.goTerms.emit(!0)}gotoSupportAclaration(e){e.preventDefault(),e.stopPropagation(),this.dialog.open(X.$,{panelClass:"fullscreen-dialog"})}gotoExpirationDate(e){e.preventDefault(),e.stopPropagation(),this.dialog.open(J.R,{panelClass:"fullscreen-dialog"})}setTermsCheck(e){this.checkComponent.checked=e,this.acceptTerms=e}setTerms(e){this.acceptTerms=e}setAssignment(e){this.assignment=e}getFormsValid(){let e=this.form&&this.form.get("support_number")?this.form.get("support_number").value:null;return!(this.isNie&&(!e||""==e))}validDocument(){if(this.isDni||this.isNie)return this.errorDNI=null,!0;this.errorDNI=this.labels.warnings.invalidNieOrDni}getAssignmentValidation(){return!(this.data.config.forceChecks&&!this.termsReaded)&&(!this.data.config.dataAssignmentCheck||this.assignment)}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(p.UntypedFormBuilder),Y.ɵɵdirectiveInject(_.M),Y.ɵɵdirectiveInject(I.T),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(z.v),Y.ɵɵdirectiveInject(Y.ChangeDetectorRef),Y.ɵɵdirectiveInject(B.uw))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-form-smspin-step"]],viewQuery:function(e,t){if(1&e&&(Y.ɵɵviewQuery(re,5),Y.ɵɵviewQuery(se,5)),2&e){let e;Y.ɵɵqueryRefresh(e=Y.ɵɵloadQuery())&&(t.checkComponent=e.first),Y.ɵɵqueryRefresh(e=Y.ɵɵloadQuery())&&(t.assignmentCheckComponent=e.first)}},inputs:{data:"data",texts:"texts",solicitud:"solicitud",requestIDFromURL:"requestIDFromURL",pinPackID:"pinPackID",smsPackID:"smsPackID",userId:"userId",flowName:"flowName",labels:"labels",lang:"lang"},outputs:{next:"nextStep",goTerms:"goToTerms"},features:[Y.ɵɵProvidersFeature([{provide:M.sG,useValue:be},{provide:Y.LOCALE_ID,useValue:"es-ES"}])],decls:25,vars:41,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4","custom-html",3,"innerHTML"],["class","mt-3 px-4 py-2 rounded-sm bg-orange-500/10 text-orange-500",4,"ngIf"],[1,"mb-3","pt-3","flex","relative","flex-col","md:flex-row","flex-wrap","gap-2","md:justify-between"],["appearance","outline"],["formControlName","dni","maxlength","9","matInput","",3,"tabindex"],[4,"ngIf"],["appearance","outline",3,"class",4,"ngIf"],["class","w-full",4,"ngIf"],["class","mt-6 flex justify-start items-center w-full",4,"ngIf"],["class","mt-6 flex justify-start items-center w-full flex-100",4,"ngIf"],["class","px-2 flex items-center gap-2 py-2 rounded-sm mt-3 bg-orange-500/10 text-orange-500",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4",3,"ngClass"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"],["class","subheading-1 pt-4 custom-html",3,"color","innerHTML",4,"ngIf"],["class","loading-wrapper animated fadeIn",4,"ngIf"],[1,"mt-3","px-4","py-2","rounded-sm","bg-orange-500/10","text-orange-500"],["required","","formControlName","expired_date","type","text","matInput","",3,"tabindex","textMask"],["target","_blank",1,"text-sm","hover:text-blue-500","cursor-pointer",3,"click"],["formControlName","birth_date","type","text","matInput","",3,"tabindex","textMask"],["required","","maxlength","9","minlength","6","formControlName","support_number","matInput","",3,"tabindex"],["required","","formControlName","person_phone","placeholder","Ej: 123123123","minlength","9","maxlength","9","type","text","matInput","",3,"tabindex"],[1,"w-full"],["formControlName","email","required","","type","email","placeholder","Ingresa tu email","matInput","",3,"tabindex"],[1,"mt-6","flex","justify-start","items-center","w-full"],["id","termsCheckbox",3,"color","changeCheckbox"],["termsCheckbox",""],[3,"userId","showPolicyLink","lang","firstSentence","secondSentence","thirdSentence","policyActionText","termsActionText","customTerms","goToTerms"],[1,"mt-6","flex","justify-start","items-center","w-full","flex-100"],[3,"color","changeCheckbox"],["assignmentCheckbox",""],[1,"custom-html",3,"innerHTML"],[1,"px-2","flex","items-center","gap-2","py-2","rounded-sm","mt-3","bg-orange-500/10","text-orange-500"],["svgIcon","mat:warning",1,"text-xs","w-4","h-4"],[1,"loading-wrapper","animated","fadeIn"],["color","accent","diameter","40","value","0","mode","indeterminate",1,"spinner"],[1,"mt-6","text-center","text-black",2,"color","black !important"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"form",0)(1,"div",1),Y.ɵɵelement(2,"div",2)(3,"div",3),Y.ɵɵpipe(4,"safeHtml"),Y.ɵɵtemplate(5,oe,3,1,"p",4),Y.ɵɵelementEnd(),Y.ɵɵelementStart(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),Y.ɵɵtext(9),Y.ɵɵelementEnd(),Y.ɵɵelement(10,"input",7),Y.ɵɵtemplate(11,ae,2,1,"mat-error",8),Y.ɵɵelementEnd(),Y.ɵɵtemplate(12,ce,8,9,"mat-form-field",9),Y.ɵɵtemplate(13,de,4,8,"mat-form-field",9),Y.ɵɵtemplate(14,ue,8,6,"mat-form-field",9),Y.ɵɵtemplate(15,he,4,5,"mat-form-field",9),Y.ɵɵtemplate(16,pe,5,5,"div",10),Y.ɵɵelementEnd(),Y.ɵɵtemplate(17,me,4,10,"div",11),Y.ɵɵtemplate(18,fe,4,2,"div",12),Y.ɵɵtemplate(19,ge,3,1,"div",13),Y.ɵɵelementStart(20,"div",14)(21,"button",15),Y.ɵɵlistener("click",(function(){return t.validate()})),Y.ɵɵtext(22),Y.ɵɵelementEnd()(),Y.ɵɵtemplate(23,_e,2,5,"div",16),Y.ɵɵelementEnd(),Y.ɵɵtemplate(24,ve,4,1,"div",17)),2&e&&(Y.ɵɵproperty("formGroup",t.form),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),Y.ɵɵproperty("innerHTML",t.texts.form.title,Y.ɵɵsanitizeHtml),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",t.data.styles.colors.text),Y.ɵɵproperty("innerHTML",Y.ɵɵpipeBind1(4,35,t.texts.form.description||""),Y.ɵɵsanitizeHtml),Y.ɵɵadvance(2),Y.ɵɵproperty("ngIf","SMS"==t.mode),Y.ɵɵadvance(2),Y.ɵɵclassMapInterpolate1("",t.disabledInputs.dni?"disabled-input":""," w-full flex-1 belender-form-field"),Y.ɵɵadvance(2),Y.ɵɵtextInterpolate(t.isDni?null==t.labels?null:t.labels.dni:t.isNie?null==t.labels?null:t.labels.nie:null==t.labels?null:t.labels.nieOrDni),Y.ɵɵadvance(1),Y.ɵɵpropertyInterpolate("tabindex",t.disabledInputs.dni?-1:1),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!t.isNie&&!t.isDni),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.isDni),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.isDni&&"SMS"==t.mode||t.isNie),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.isNie),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",(t.isNie||t.isDni)&&"SMS"==t.mode),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",(null==t.data||null==t.data.config?null:t.data.config.followMail)&&(t.isDni||t.isNie)),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","ClavePin"==t.mode),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",(null==t.data?null:t.data.config.dataAssignmentCheck)&&"ClavePin"==t.mode),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.data.config.forceChecks&&!t.termsReaded&&"ClavePin"==t.mode),Y.ɵɵadvance(1),Y.ɵɵproperty("ngClass",Y.ɵɵpureFunction3(37,ye,"left"===t.data.styles.alignButtons,"center"===t.data.styles.alignButtons,"right"===t.data.styles.alignButtons||!t.data.styles.alignButtons)),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",t.validDocument()&&!t.form.invalid&&t.acceptTerms&&t.getAssignmentValidation()?t.data.styles.colors.btnText:"")("background",t.validDocument()&&!t.form.invalid&&t.acceptTerms&&t.getAssignmentValidation()?t.data.styles.colors.btnBg:"")("border-radius",t.data.styles.btnRound+"px"),Y.ɵɵproperty("disabled",!t.validDocument()||t.form.invalid||!t.acceptTerms||!t.getAssignmentValidation()||t.loading),Y.ɵɵadvance(1),Y.ɵɵtextInterpolate1(" ",null==t.labels||null==t.labels.actions?null:t.labels.actions.continue," "),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",null==t.data[t.flowName]?null:t.data[t.flowName].showAditionalDescription),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.loading))},dependencies:[i.mk,i.O5,d.Hw,u.lW,A.TO,A.KE,A.bx,A.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.RequiredValidator,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,b.Ou,ee.b,te.hd,ne.T,ie.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.hiden-input[_ngcontent-%COMP%]{height:0!important;max-height:0px!important;overflow:hidden!important;opacity:0!important}.loading-wrapper[_ngcontent-%COMP%]{width:100%;position:absolute;top:0;left:0;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(255,255,255,.6509803922)}"]}),e})(),we=(()=>{class e{constructor(){}ngOnInit(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-smspin-no-service-step"]],inputs:{data:"data",texts:"texts"},decls:5,vars:10,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"form",0)(1,"div",1),Y.ɵɵelement(2,"div",2)(3,"div",3),Y.ɵɵpipe(4,"safeHtml"),Y.ɵɵelementEnd()()),2&e&&(Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),Y.ɵɵproperty("innerHTML",t.texts.fail.title,Y.ɵɵsanitizeHtml),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",t.data.styles.colors.text),Y.ɵɵproperty("innerHTML",Y.ɵɵpipeBind1(4,8,t.texts.fail.description),Y.ɵɵsanitizeHtml))},dependencies:[p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm,ie.z]}),e})();const Ce=["formStep"];function Se(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",7),Y.ɵɵelement(1,"img",8),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵproperty("src",null==e.data||null==e.data.styles?null:e.data.styles.logoUrl,Y.ɵɵsanitizeUrl)}}function Me(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-form-smspin-step",12,13),Y.ɵɵlistener("nextStep",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.checkRequest(t))}))("goToTerms",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(3);return Y.ɵɵresetView(t.gotoTermsAndConditions())})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("requestIDFromURL",e.requestIDFromURL)("data",e.data)("lang",e.currentLang)("labels",e.labels)("userId",e.userId)("pinPackID",e.pinPackID)("smsPackID",e.smsPackID)("texts",e.data[e.flowName].texts)("flowName",e.flowName)("solicitud",e.solicitud)}}function Ie(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-smspin-no-service-step",14),Y.ɵɵlistener("retry",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(3);return Y.ɵɵresetView(t.gotoForm())})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)}}function ke(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",15)(1,"div",16)(2,"h1",17),Y.ɵɵtext(3),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(4,"div",18),Y.ɵɵtext(5),Y.ɵɵelementEnd()()),2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵadvance(3),Y.ɵɵtextInterpolate(e.labels.warnings.requestNoExist),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",e.data.styles.colors.text),Y.ɵɵadvance(1),Y.ɵɵtextInterpolate(e.labels.warnings.noRequests)}}function Ee(e,t){if(1&e&&(Y.ɵɵelementContainerStart(0),Y.ɵɵtemplate(1,Me,2,10,"belender-form-smspin-step",9),Y.ɵɵtemplate(2,Ie,1,2,"belender-smspin-no-service-step",10),Y.ɵɵtemplate(3,ke,6,4,"div",11),Y.ɵɵelementContainerEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","form"==e.getStatus()&&!e.loading),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","no-service"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","created"!=e.step)}}function Te(e,t){1&e&&Y.ɵɵelement(0,"belender-disabled-url")}const Pe=function(e,t,n){return{"justify-start":e,"justify-center":t,"justify-end":n}};function Oe(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"div",19)(1,"div",15)(2,"div",20),Y.ɵɵtext(3),Y.ɵɵelementEnd(),Y.ɵɵelement(4,"div",21),Y.ɵɵelementEnd(),Y.ɵɵelementStart(5,"div",22)(6,"button",23),Y.ɵɵlistener("click",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(2);return Y.ɵɵresetView(t.error=!1)})),Y.ɵɵtext(7),Y.ɵɵelementEnd()()()}if(2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(3),Y.ɵɵtextInterpolate(e.labels.warnings.error),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",e.data.styles.colors.text),Y.ɵɵproperty("innerHTML",e.error,Y.ɵɵsanitizeHtml),Y.ɵɵadvance(1),Y.ɵɵproperty("ngClass",Y.ɵɵpureFunction3(6,Pe,"left"===e.data.styles.alignButtons,"center"===e.data.styles.alignButtons,"right"===e.data.styles.alignButtons||!e.data.styles.alignButtons)),Y.ɵɵadvance(2),Y.ɵɵtextInterpolate1(" ",e.labels.manual," ")}}function De(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",3)(1,"div"),Y.ɵɵtemplate(2,Se,2,1,"div",4),Y.ɵɵtemplate(3,Ee,4,3,"ng-container",5),Y.ɵɵtemplate(4,Te,1,0,"belender-disabled-url",5),Y.ɵɵtemplate(5,Oe,8,10,"div",6),Y.ɵɵelementEnd()()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵclassMapInterpolate1("h-full w-full flex-auto p-0 md:p-3 ",null==e.data||null==e.data.styles?null:e.data.styles.typography,""),Y.ɵɵstyleProp("background",null==e.data||null==e.data.styles||null==e.data.styles.colors?null:e.data.styles.colors.background),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",null==e.data||null==e.data.styles?null:e.data.styles.withLogo),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!e.error&&!e.disableURL),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!e.error&&e.disableURL),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!e.loading&&e.error)}}function Le(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",24),Y.ɵɵelement(1,"mat-progress-spinner",25),Y.ɵɵelementStart(2,"p",26),Y.ɵɵtext(3),Y.ɵɵelementEnd()()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(3),Y.ɵɵtextInterpolate(e.loading)}}function Ae(e,t){if(1&e&&Y.ɵɵelement(0,"belender-widget-sms",27),2&e){const e=Y.ɵɵnextContext();Y.ɵɵproperty("solicitud",e.solicitud)}}function Ne(e,t){if(1&e&&Y.ɵɵelement(0,"belender-widget-pin",27),2&e){const e=Y.ɵɵnextContext();Y.ɵɵproperty("solicitud",e.solicitud)}}let Re=class{constructor(e,t,n,i,r,s,o,a,l,c,d){this.cd=e,this.Activatedroute=t,this.utils=n,this.solicitudesService=i,this.packagesService=r,this.customizationService=s,this.pinService=o,this.notis=a,this.dialog=l,this.customizationStoreService=c,this.translationService=d,this.data=null,this.disableActions=!1,this.step="created",this.loading=null,this.error=!1,this.waitingTime=15,this.spinnerMode="indeterminate",this.spinnerValue=0,this.mode="smspin",this.shortLinks={crg:"/widget-boxed/smspin/4bdaf3ac-f32b-402d-9e3b-656237ed6c5b/0ca83b8a-7a7c-4ece-b093-4576e3e58238/f44151b2-101c-4f1f-be20-21b74c13065f"},this.requestIDFromURL=!1,this.disableURL=!1,this.flowName="smspin",this.currentLang="",this.labels=q.S.es,this.introEnabled=!1,this.data||(this.loading="Obteniendo información de la solicitud",this.Activatedroute.paramMap.subscribe((e=>{console.error("params: ",e);let t=e.get("shortLink");e&&t&&this.shortLinks[t]?location.assign("https://widget.belender.net"+this.shortLinks[t]):e&&e.get("idUser")&&(this.financiadorID=e.get("idUser")),this.loading=!1}),(e=>{this.loading=!1})))}ngOnInit(){const e=this;this.loading="Obteniendo información de la solicitud",this.Activatedroute.params.subscribe((e=>{e&&e.smsPackID&&(this.smsPackID=e.smsPackID),e&&e.pinPackID&&(this.pinPackID=e.pinPackID),e&&e.idUser?(this.userId=e.idUser,this.initFunctions()):(this.loading=!1,this.utils.setLoading(!1))}),(e=>{this.loading=!1,this.utils.setLoading(!1)})),"pro"!=j.N.env&&(R(document).keydown((function(t){16==t.which&&(this.cntrlIsPressed=!0),84==t.which&&this.cntrlIsPressed&&(e.testMode=!e.testMode,e.cd.markForCheck())})),R(document).keyup((function(e){16==e.which&&(this.cntrlIsPressed=!1)})))}ngOnDestroy(){}getPackagesFromUser(e){this.packagesService.getPackagesByUserID(e).then((e=>{})).catch((e=>{console.error(e)}))}initFunctions(){var e=this;return(0,D.Z)((function*(){var t;e.Activatedroute.queryParams.subscribe((t=(0,D.Z)((function*(t){t.lang?(e.currentLang=t.lang,e.loading=e.translationService.getFirstLoading(e.currentLang),e.setTranslation()):e.loading=e.labels.loadings.gettingData,e.userId?e.setInitialData(e.userId):e.loading=null})),function(e){return t.apply(this,arguments)}))}))()}setInitialData(e){var t=this;return(0,D.Z)((function*(){const n=yield t.getFlow(e);if(t.data={config:t.customizationStoreService.FUNDER_CONFIG,styles:t.customizationStoreService.FUNDER_STYLES,[t.flowName]:n},!t.data.config||!t.data.config.funder_id)return t.showAlert(t.labels.warnings.error,t.labels.warnings.noCustomization,"error"),t.loading=null,void t.cd.markForCheck();t.financiadorID=t.data.config.funder_id||"",t.disableURL=t.data.config.disableUrlWidget,t.introEnabled=t.data.config.introEnabled,t.validateRequestIdInUrl(),t.loading=null,t.cd.markForCheck()}))()}setTranslation(){let e=this.translationService.getLabelsTranslated(this.currentLang);e&&(this.labels=e)}getFlow(e){var t=this;return(0,D.Z)((function*(){return new Promise((n=>{t.customizationService.getCustomizationByFlow(e,t.flowName,t.currentLang).then((e=>{e&&e.data&&n(e.data),n(null)}),(e=>{n(null)}))}))}))()}validateRequestIdInUrl(){this.Activatedroute.queryParams.subscribe((e=>{e&&this.setParamsToRequest(e),e&&e.request_id?(this.disableURL=!1,this.requestID=e.request_id,this.requestIDFromURL=!0,this.askBackIfAlreadyExist(e.request_id)):this.loading=!1}),(e=>{this.loading=!1}))}askBackIfAlreadyExist(e){this.loading="Comprobando si la solicitud ya existe...",this.solicitudesService.getSolicitudByCode(e).then((e=>{if(e&&e.data&&e.data.widget_url){let t=location.pathname,n=e.data.widget_url;t.indexOf("widget-boxed")>-1&&(n=e.data.widget_url_boxed),this.solicitud=e.data,this.loading=!1,n.indexOf("smspin")>-1?(this.solicitud=e.data,this.loading=!1):location.assign(n)}else this.loading=!1})).catch((e=>{console.error(e),this.loading=!1}))}setParamsToRequest(e){this.requestIDFromURL=!0,this.solicitud||(this.solicitud={status_code:"form"}),(e.document_number||e.document)&&!this.solicitud.person_document_number&&(this.solicitud.person_document_number=e.document_number||e.document),(e.birth_date||e.birthday||e.person_birth_date)&&!this.solicitud.birth_date&&(this.solicitud.birth_date=e.birth_date||e.birthday||e.person_birth_date),(e.document_expiration_date||e.expiration||e.person_document_expiration_date)&&!this.solicitud.document_expiration_date&&(this.solicitud.document_expiration_date=e.document_expiration_date||e.expiration||e.person_document_expiration_date),(e.document_support||e.supportNumber)&&!this.solicitud.document_support&&(this.solicitud.document_support=e.document_support||e.supportNumber),e.phone&&!this.solicitud.person_phone&&(this.solicitud.person_phone=e.phone),(e.email||e.person_email)&&!this.solicitud.person_email&&(this.solicitud.person_email=e.email)}gotoForm(){this.solicitud.status_code="created"}gotoStep(e){this.disableActions||this.cd.markForCheck()}checkRequest(e){let t=e.request,n=e.mode;t.user_id=this.userId,"ClavePin"==n&&(t.package_id=this.pinPackID,this.addPinRequest(t)),"SMS"==n&&(t.package_id=this.smsPackID,this.addSmsRequest(t))}addPinRequest(e){this.requestID&&(e.request_id=this.requestID),this.loading="Creando solicitud Clave PIN nueva..",this.pinService.addSolicitud(e).then((t=>{t&&t.status&&"error"==t.status?t.message&&(this.solicitud=e,400==t.code&&"Does not have Pin service"==t.message?(this.solicitud.status_code="no_service",this.loading=!1):"Incorrect date"==t.message?(this.showAlert("Error!","Fecha incorrecta!"),this.solicitud.status_code="form"):(this.showAlert("Error!","Error desconocido"),this.solicitud.status_code="form",this.showAlert("Error!",t.message))):t&&t.status&&"success"==t.status?(this.requestID=t.data.request_id,this.solicitud=t.data,location.pathname.indexOf("widget-boxed")>-1?location.assign(this.solicitud.widget_url_boxed+"&acceptTerms=true"||0):location.assign(this.solicitud.widget_url+"&acceptTerms=true"||0)):this.showAlert("Error!","Error desconocido: "+t),this.loading=null})).catch((e=>{console.error("respuesta desde pin service: ",e),e&&e.errorMessage&&this.showAlert("Error!",e.errorMessage),this.loading=null}))}addSmsRequest(e){this.loading="Creando solicitud SMS nueva..",this.requestID&&(e.request_id=this.requestID),this.solicitudesService.addSolicitud(e,this.smsPackID,this.userId).then((t=>{t&&t.status&&"error"==t.status?(this.solicitud=e,t.message&&(400==t.code?"Birthdate incorrect"==t.message?(this.solicitud.status_code="form",this.showAlert("Error!","Fecha de nacimiento incorrecta")):"Incorrect date"==t.message?(this.solicitud.status_code="form",this.showAlert("Error!","Fecha incorrecta")):(this.solicitud.status_code="no_service",this.loading=!1):(this.solicitud.status_code="form",this.showAlert("Error!",t.message)))):t&&t.status&&"success"==t.status?(this.requestID=t.data.request_id,this.solicitud=t.data,console.warn("data from back: ",t),location.pathname.indexOf("widget-boxed")>-1?location.assign(this.solicitud.widget_url_boxed+"&acceptTerms=true"||0):location.assign(this.solicitud.widget_url+"&acceptTerms=true"||0)):this.showAlert("Error!","Error desconocido: "+t)})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}showAlert(e,t,n){this.loading=!1,this.notis.showAlert(e,t,n)}gotoTermsAndConditions(){this.dialog.open(F.L,{panelClass:"fullscreen-dialog",data:{flow:"smspin"}}).afterClosed().subscribe((e=>{e&&this.formComponent.setTermsCheck(!0)}))}getStatus(){return!this.solicitud||this.solicitud&&("created"==this.solicitud.status_code||"form"==this.solicitud.status_code||"terms_and_conditions"==this.solicitud.status_code||"prerequest"==this.solicitud.status_code)?"form":this.solicitud&&"no_service"==this.solicitud.status_code?"no-service":"no-exist"}};Re.ɵfac=function(e){return new(e||Re)(Y.ɵɵdirectiveInject(Y.ChangeDetectorRef),Y.ɵɵdirectiveInject(P.gz),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(_.M),Y.ɵɵdirectiveInject(H.U),Y.ɵɵdirectiveInject(C.w),Y.ɵɵdirectiveInject(z.v),Y.ɵɵdirectiveInject(I.T),Y.ɵɵdirectiveInject(B.uw),Y.ɵɵdirectiveInject(U.r),Y.ɵɵdirectiveInject(W.D))},Re.ɵcmp=Y.ɵɵdefineComponent({type:Re,selectors:[["belender-widget-sms-pin"]],viewQuery:function(e,t){if(1&e&&Y.ɵɵviewQuery(Ce,5),2&e){let e;Y.ɵɵqueryRefresh(e=Y.ɵɵloadQuery())&&(t.formComponent=e.first)}},inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud"},features:[Y.ɵɵProvidersFeature([{provide:A.o2,useValue:{appearance:"standard"}}])],decls:4,vars:4,consts:[["class","h-full widget-belender",4,"ngIf"],["class","loading-wrapper animated fadeIn",4,"ngIf"],[3,"solicitud",4,"ngIf"],[1,"h-full","widget-belender"],["class","img-wrapper p-6 flex justify-center items-center",4,"ngIf"],[4,"ngIf"],["class","animated fadeInRight",4,"ngIf"],[1,"img-wrapper","p-6","flex","justify-center","items-center"],["alt","",1,"img-card",3,"src"],[3,"requestIDFromURL","data","lang","labels","userId","pinPackID","smsPackID","texts","flowName","solicitud","nextStep","goToTerms",4,"ngIf"],[3,"data","texts","retry",4,"ngIf"],["class","px-6 py-4 flex flex-col",4,"ngIf"],[3,"requestIDFromURL","data","lang","labels","userId","pinPackID","smsPackID","texts","flowName","solicitud","nextStep","goToTerms"],["formStep",""],[3,"data","texts","retry"],[1,"px-6","py-4","flex","flex-col"],[1,"title","m-0"],[1,"text-red-500"],[1,"subheading-1","pt-4"],[1,"animated","fadeInRight"],[1,"text-red-500","title","m-0"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"flex","items-center","justify-end","gap-2","p-4",3,"ngClass"],["mat-flat-button","","type","button",1,"text-blue-500","bg-blue-50","px-8",3,"click"],[1,"loading-wrapper","animated","fadeIn"],["color","accent","diameter","40","value","0","mode","indeterminate",1,"spinner"],[1,"mt-6","text-center","text-black",2,"color","black !important"],[3,"solicitud"]],template:function(e,t){1&e&&(Y.ɵɵtemplate(0,De,6,9,"div",0),Y.ɵɵtemplate(1,Le,4,1,"div",1),Y.ɵɵtemplate(2,Ae,1,1,"belender-widget-sms",2),Y.ɵɵtemplate(3,Ne,1,1,"belender-widget-pin",2)),2&e&&(Y.ɵɵproperty("ngIf",t.data&&t.data.styles&&t.data.styles.colors&&"smspin"==t.mode),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.loading&&!t.error),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.data&&"SMS"==t.mode),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.data&&"ClavePin"==t.mode))},dependencies:[i.mk,i.O5,u.lW,b.Ou,$.n,G.T,Z.q,xe,we],styles:[".card[_ngcontent-%COMP%]{transition:all .2s ease;overflow:hidden;width:500px;max-width:100%;margin:0 auto}.widget-belender[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between}.badge-table[_ngcontent-%COMP%]{max-width:140px!important;border-radius:5px!important;-webkit-border-radius:5px!important;-moz-border-radius:5px!important;-ms-border-radius:5px!important;-o-border-radius:5px!important}.btn-refresh[_ngcontent-%COMP%]{transform:translateY(2px)}.request-data-info[_ngcontent-%COMP%]{transition:all .5s ease!important}.img-card[_ngcontent-%COMP%]{max-width:240px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.loading-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center}.mat-flat-button.mat-primary.mat-button-disabled[_ngcontent-%COMP%]{background:red!important}button.mat-flat-button.text-green-500.bg-green-light.mat-button-disabled[_ngcontent-%COMP%]{background:orange!important}"]}),Re=(0,L.gn)([(0,N.c)()],Re);const je=[{path:":idUser/:pinPackID/:smsPackID",component:Re},{path:":shortLink",component:Re}];let Fe=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=Y.ɵɵdefineNgModule({type:e}),e.ɵinj=Y.ɵɵdefineInjector({imports:[P.Bz.forChild(je),P.Bz,O.d8]}),e})();var qe=n(1916),Ye=n(3006),Ve=n(6981),He=n(3848),ze=n(1129),Be=n(9476),Ue=n(3295),We=n(3300),$e=n(865);let Ge=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=Y.ɵɵdefineNgModule({type:e}),e.ɵinj=Y.ɵɵdefineInjector({providers:[_.M,y.o,C.w,x.t,I.T,T.t,{provide:M.Ad,useValue:"es-ES"}],imports:[Fe,i.ez,r.G,s.J,o.TU,a.p0,l.JX,c.p9,d.Ps,u.ot,h.Tx,w.c,p.FormsModule,m.AV,p.ReactiveFormsModule,f.LD,g.vV,v.a,b.Cq,S.FA,M.XK,k.T5,E.Fk,qe.PinModule,Ye.SmsModule,Ve.x,He.Nh,ze.n,Be.F,Ue.g,We.C,te.QA,$e.q]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[592],{1888:(e,t,n)=>{n.d(t,{S:()=>c});var i=n(6197),r=n(2340),s=n(4650),o=n(5089),a=n(529),l=n(6554);let c=(()=>{class e{constructor(e,t,n){this.utils=e,this.http=t,this.localFetch=n,this.db=(0,i.N8)()}getAllDocumentsType(){return new Promise(((e,t)=>{this.localFetch.getFetch(r.N.baseUrl+"/type-documents").then((n=>{n?e(n):t(n)})).catch((e=>{t(e)}))}))}getDocumentPacks(e){return new Promise(((t,n)=>{this.localFetch.getFetch(r.N.baseUrl+"/funders/"+e+"/pack-documents").then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}savePacks(e,t){return new Promise(((n,i)=>{this.http.post(r.N.baseUrl+"/funders/"+e+"/flows/pack-documents",t).subscribe((e=>{e?n(e):i(e)}),(e=>{i(e)}))}))}}return e.ɵfac=function(t){return new(t||e)(s.ɵɵinject(o.F),s.ɵɵinject(a.eN),s.ɵɵinject(l.r))},e.ɵprov=s.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[179],{9199:(e,t,n)=>{n.d(t,{d:()=>r});var i=n(4650);let r=(()=>{class e{constructor(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵdir=i.ɵɵdefineDirective({type:e,selectors:[["","vexPageLayoutContent",""],["vex-page-layout-content"]],hostAttrs:[1,"vex-page-layout-content"]}),e})()},2237:(e,t,n)=>{n.d(t,{w:()=>s});var i=n(4650);const r=["*"];let s=(()=>{class e{constructor(){this.mode="simple"}get isCard(){return"card"===this.mode}get isSimple(){return"simple"===this.mode}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i.ɵɵdefineComponent({type:e,selectors:[["vex-page-layout"]],hostAttrs:[1,"vex-page-layout"],hostVars:4,hostBindings:function(e,t){2&e&&i.ɵɵclassProp("vex-page-layout-card",t.isCard)("vex-page-layout-simple",t.isSimple)},inputs:{mode:"mode"},ngContentSelectors:r,decls:1,vars:0,template:function(e,t){1&e&&(i.ɵɵprojectionDef(),i.ɵɵprojection(0))},styles:[".vex-page-layout{display:block}.vex-page-layout-simple .vex-page-layout-content{padding-bottom:var(--padding-gutter);padding-top:var(--padding-gutter)}.vex-page-layout-card{padding-bottom:var(--padding)}.vex-page-layout-card .vex-page-layout-header{margin-bottom:calc(var(--page-layout-toolbar-height) * -1);padding-bottom:var(--page-layout-toolbar-height)}.vex-page-layout-card .vex-page-layout-content>*>.mat-tab-group .mat-tab-label,.vex-page-layout-card .vex-page-layout-content>.mat-tab-group .mat-tab-label{height:var(--page-layout-toolbar-height)}.vex-page-layout-card .vex-page-layout-content>*>.mat-tab-group .mat-tab-label.mat-tab-label-active,.vex-page-layout-card .vex-page-layout-content>.mat-tab-group .mat-tab-label.mat-tab-label-active{opacity:1}.vex-page-layout-header{align-items:center;background-color:rgba(var(--color-primary),.1);box-sizing:content-box!important;display:flex;flex-direction:row;height:calc(var(--page-layout-header-height) - var(--page-layout-toolbar-height));padding-left:var(--padding);padding-right:var(--padding);place-content:center flex-start}.vex-page-layout-content{box-sizing:border-box;display:block;padding-left:var(--padding-gutter);padding-right:var(--padding-gutter)}\n"],encapsulation:2}),e})()},6383:(e,t,n)=>{n.d(t,{G:()=>s});var i=n(6895),r=n(4650);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({imports:[i.ez]}),e})()},1207:(e,t,n)=>{n.d(t,{x:()=>_});var i=n(6895),r=n(9299),s=n(3267),o=n(3162),a=n(3762),l=n(5681),c=n(4650);let d=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({providers:[{provide:a.yK,useValue:{latencyThreshold:80}}],imports:[i.ez,o.Cv,a.sS,l.n]}),e})();var u=n(9101),h=n(7392),p=n(4006);let m=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,u.ot,h.Ps,p.ReactiveFormsModule]}),e})();var f=n(9549),g=n(4385);let _=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,r.Bz,s.SJ,d,m,g.LD,f.lN,p.FormsModule,p.ReactiveFormsModule]}),e})()},9331:(e,t,n)=>{n.d(t,{b:()=>it,db:()=>et});var i=n(1481),r=n(4650),s=n(9299),o=n(7582),a=n(9933),l=n(7403),c=n(5412),d=n(8460),u=n(6895),h=n(9101);function p(e,t){1&e&&(r.ɵɵelementStart(0,"div",8)(1,"h1"),r.ɵɵtext(2,"Política de privacidad"),r.ɵɵelementEnd(),r.ɵɵelementStart(3,"h2"),r.ɵɵtext(4,"1.- ¿Quién es el responsable del tratamiento de sus datos?"),r.ɵɵelementEnd(),r.ɵɵelementStart(5,"p"),r.ɵɵtext(6,"El responsable del tratamiento de sus datos personales es ALL4LEND S.L.,(en adelante, “BELENDER”), con N.I.F.: B-67425769 y domicilio social en Calle del Sol 19, Sant Andreu de la Barca, 08740, Barcelona, España."),r.ɵɵelementEnd(),r.ɵɵelementStart(7,"p"),r.ɵɵtext(8,"Le informamos que la titularidad de este Sitio Web (en adelante, el “Sitio Web”), es de BELENDER."),r.ɵɵelementEnd(),r.ɵɵelementStart(9,"p"),r.ɵɵtext(10,"El acceso y/o uso del Sitio Web, le atribuye la condición de Usuario (en adelante, el «Usuario»), e implica la aceptación, desde dicho acceso y/o uso, de la presente Política de Privacidad."),r.ɵɵelementEnd(),r.ɵɵelementStart(11,"p"),r.ɵɵtext(12),r.ɵɵelementEnd(),r.ɵɵelementStart(13,"h2"),r.ɵɵtext(14,"2.- ¿Por qué BELENDER está legitimado para llevar a cabo el tratamiento de datos?"),r.ɵɵelementEnd(),r.ɵɵelementStart(15,"p"),r.ɵɵtext(16,"BELENDER está legitimada para tratar sus datos para poder llevar a cabo la prestación de sus servicios."),r.ɵɵelementEnd(),r.ɵɵelementStart(17,"p"),r.ɵɵtext(18,"BELENDER se toma muy en serio la protección de su privacidad y de sus datos personales. Por lo tanto, su información personal se conserva de forma segura y se trata con el máximo cuidado."),r.ɵɵelementEnd(),r.ɵɵelementStart(19,"p"),r.ɵɵtext(20,"La presente Política de Privacidad regula el acceso y el uso al servicio (en adelante, el “Servicio”) que BELENDER pone a disposición del Usuario interesado en los servicios."),r.ɵɵelementEnd(),r.ɵɵelementStart(21,"p"),r.ɵɵtext(22,"En este sentido, las bases de legitimación utilizadas por BELENDER para el tratamiento de los datos de los Usuarios son:"),r.ɵɵelementEnd(),r.ɵɵelementStart(23,"ul")(24,"li"),r.ɵɵtext(25,"La ejecución de un contrato en el que el Usuario es parte."),r.ɵɵelementEnd(),r.ɵɵelementStart(26,"li"),r.ɵɵtext(27,"El consentimiento de los Usuarios al tratamiento de sus datos personales para las finalidades especificadas en cada caso."),r.ɵɵelementEnd()(),r.ɵɵelementStart(28,"h2"),r.ɵɵtext(29,"3.- ¿Cuáles son las finalidades del tratamiento de sus datos de carácter personal por parte de BELENDER?"),r.ɵɵelementEnd(),r.ɵɵelementStart(30,"p"),r.ɵɵtext(31,"Sus datos de carácter personal recabados por BELENDER podrán ser utilizados para las siguientes finalidades, según el consentimiento otorgado en el formulario de registro correspondiente:"),r.ɵɵelementEnd(),r.ɵɵelementStart(32,"p"),r.ɵɵtext(33,"La prestación de los servicios de BELENDER."),r.ɵɵelementEnd(),r.ɵɵelementStart(34,"p"),r.ɵɵtext(35,"Para la prestación del servicio demandado por el Usuario, BELENDER necesitará tratar datos personales obtenidos a partir de la información que el Usuario facilite a BELENDER"),r.ɵɵelementEnd(),r.ɵɵelementStart(36,"p"),r.ɵɵtext(37,"El envío de comunicaciones comerciales y/o Newsletter por parte de BELENDER:"),r.ɵɵelementEnd(),r.ɵɵelementStart(38,"p"),r.ɵɵtext(39,"Esta finalidad será el envío al usuario registrado, por carta, teléfono, correo electrónico, SMS/MMS, o por otros medios de comunicación electrónica equivalentes por parte de BELENDER de información y comunicaciones comerciales sobre los Servicios que puedan resultar de su interés."),r.ɵɵelementEnd(),r.ɵɵelementStart(40,"h2"),r.ɵɵtext(41,"4.- Veracidad de los datos facilitados por los Usuarios"),r.ɵɵelementEnd(),r.ɵɵelementStart(42,"p"),r.ɵɵtext(43,"El Usuario garantiza que los datos personales facilitados son veraces y se hace responsable de comunicar a BELENDER cualquier modificación de estos. El Usuario responderá, en cualquier caso, de la veracidad de los datos facilitados, reservándose BELENDER el derecho a excluir de los Servicios registrados a todo Usuario que haya facilitado datos falsos, sin perjuicio de las demás acciones que procedan en Derecho."),r.ɵɵelementEnd(),r.ɵɵelementStart(44,"h2"),r.ɵɵtext(45,"5.-Conservación de los datos"),r.ɵɵelementEnd(),r.ɵɵelementStart(46,"p"),r.ɵɵtext(47,"Los datos personales proporcionados se conservarán por parte de BELENDER mientras el Usuario no manifieste su voluntad de darse de baja de los servicios de BELENDER, y ello con la finalidad de recibir información sobre productos de BELENDER. Posteriormente, en caso de ser necesario, BELENDER mantendrá la información bloqueada los plazos legalmente establecidos."),r.ɵɵelementEnd(),r.ɵɵelementStart(48,"h2"),r.ɵɵtext(49,"6.- Derechos del Usuario en relación con sus datos"),r.ɵɵelementEnd(),r.ɵɵelementStart(50,"p"),r.ɵɵtext(51,"El Usuario tiene derecho a:"),r.ɵɵelementEnd(),r.ɵɵelementStart(52,"ul")(53,"li"),r.ɵɵtext(54,"Acceder a sus datos personales."),r.ɵɵelementEnd(),r.ɵɵelementStart(55,"li"),r.ɵɵtext(56,"Solicitar la rectificación de los datos inexactos"),r.ɵɵelementEnd(),r.ɵɵelementStart(57,"li"),r.ɵɵtext(58,"Solicitar su supresión."),r.ɵɵelementEnd(),r.ɵɵelementStart(59,"li"),r.ɵɵtext(60,"Solicitar la limitación del tratamiento de sus datos."),r.ɵɵelementEnd(),r.ɵɵelementStart(61,"li"),r.ɵɵtext(62,"Oponerse al tratamiento de sus datos."),r.ɵɵelementEnd(),r.ɵɵelementStart(63,"li"),r.ɵɵtext(64,"Solicitar su portabilidad."),r.ɵɵelementEnd(),r.ɵɵelementStart(65,"li"),r.ɵɵtext(66,"No ser objeto de decisiones individuales automatizadas."),r.ɵɵelementEnd()(),r.ɵɵelementStart(67,"p"),r.ɵɵtext(68),r.ɵɵelementEnd(),r.ɵɵelementStart(69,"p"),r.ɵɵtext(70,"El Usuario puede también enviar su petición por correo ordinario a la siguiente dirección:"),r.ɵɵelementEnd(),r.ɵɵelementStart(71,"div",9)(72,"p"),r.ɵɵtext(73,"ALL4LEND S.L."),r.ɵɵelementEnd(),r.ɵɵelementStart(74,"p"),r.ɵɵtext(75," N.I.F.: B-67425769"),r.ɵɵelementEnd(),r.ɵɵelementStart(76,"p"),r.ɵɵtext(77,"Calle del Sol 19, Sant Andreu de la Barca, 08740, Barcelona."),r.ɵɵelementEnd()(),r.ɵɵelementStart(78,"p"),r.ɵɵtext(79,"Sin perjuicio de cualquier otro recurso administrativo o acción judicial, el Usuario tendrá derecho a presentar una reclamación ante una Autoridad de Control, en particular en el Estado miembro en el que tenga su residencia habitual, lugar de trabajo o lugar de la supuesta infracción, en caso de que considere que el tratamiento de sus datos personales no es adecuado a la normativa, así como en el caso de no ver satisfecho el ejercicio de sus derechos. La autoridad de control ante la que se haya presentado la reclamación informará al reclamante sobre el curso y el resultado de la reclamación."),r.ɵɵelementEnd(),r.ɵɵelementStart(80,"h2"),r.ɵɵtext(81,"7.- Seguridad de los datos"),r.ɵɵelementEnd(),r.ɵɵelementStart(82,"p"),r.ɵɵtext(83,"La protección de la privacidad y los datos personales de los Usuarios es muy importante para BELENDER. Por lo tanto, BELENDER hace todo lo que está en su mano para impedir que sus datos se utilicen de forma inadecuada, permitiendo el acceso a los mismos únicamente a personal autorizado."),r.ɵɵelementEnd(),r.ɵɵelementStart(84,"p"),r.ɵɵtext(85,"BELENDER mantiene los niveles de seguridad de protección de datos personales conforme a la normativa aplicable y ha establecido todos los medios técnicos a su alcance para evitar la pérdida, mal uso, alteración, acceso no autorizado y robo de los datos que el Usuario facilite a través del Sitio Web sin perjuicio de informarle de que las medidas de seguridad en Internet no son inexpugnables."),r.ɵɵelementEnd(),r.ɵɵelementStart(86,"p"),r.ɵɵtext(87,"BELENDER se compromete a cumplir con el deber de secreto y confidencialidad respecto de los datos personales de acuerdo con la legislación aplicable, así como a conferirles un tratamiento seguro en las cesiones y transferencias internacionales de datos que, en su caso, puedan producirse."),r.ɵɵelementEnd(),r.ɵɵelementStart(88,"p"),r.ɵɵtext(89,"En aquellos servicios del Sitio Web que precisen registrarse como Usuario, se deberá elegir una contraseña. El Usuario es el responsable de mantener la confidencialidad de esta contraseña, así como de todas las actividades que ocurran en la sesión iniciada con su nombre y contraseña."),r.ɵɵelementEnd(),r.ɵɵelementStart(90,"p"),r.ɵɵtext(91,"El Usuario se compromete a notificar BELENDER a la mayor brevedad el uso no autorizado de su nombre de Usuario y/o contraseña o cualquier otro fallo en la seguridad. BELENDER no será responsable por los daños o pérdidas que se pudieran originar debido al no cumplimiento de esta obligación por parte del Usuario."),r.ɵɵelementEnd(),r.ɵɵelementStart(92,"h2"),r.ɵɵtext(93,"8.-Cambios"),r.ɵɵelementEnd(),r.ɵɵelementStart(94,"p"),r.ɵɵtext(95,"BELENDER se reserva el derecho de revisar su Política de Privacidad en el momento que considere oportuno. Por esta razón, le rogamos que compruebe de forma regular esta Política de Privacidad para leer la versión más reciente de la misma."),r.ɵɵelementEnd(),r.ɵɵelementStart(96,"p"),r.ɵɵtext(97,"No obstante, cualquier cambio que se produzca en la presente Política de Privacidad se comunicará al Usuario."),r.ɵɵelementEnd(),r.ɵɵelementStart(98,"h2"),r.ɵɵtext(99,"9.- Links a páginas web"),r.ɵɵelementEnd(),r.ɵɵelementStart(100,"p"),r.ɵɵtext(101,"EL Sitio Web de BELENDER podría contener links a páginas web de compañías y entidades de terceros. BELENDER no puede hacerse responsable de la forma en la que estas compañías tratan la protección de la privacidad y de los datos personales, por lo que le aconsejamos que lea detenidamente las declaraciones de Política de Privacidad de estas páginas web que no son propiedad de BELENDER con relación al uso, procesamiento y protección de datos personales."),r.ɵɵelementEnd(),r.ɵɵelementStart(102,"p"),r.ɵɵtext(103,"Las condiciones que ofrecen estas páginas web pueden no ser las mismas que las que ofrece BELENDER."),r.ɵɵelementEnd(),r.ɵɵelementStart(104,"h2"),r.ɵɵtext(105,"10.- Preguntas"),r.ɵɵelementEnd(),r.ɵɵelementStart(106,"p"),r.ɵɵtext(107),r.ɵɵelementEnd(),r.ɵɵelementStart(108,"h2"),r.ɵɵtext(109,"11.- Aceptación y Consentimiento."),r.ɵɵelementEnd(),r.ɵɵelementStart(110,"p"),r.ɵɵtext(111,"El Usuario declara haber sido informado de las condiciones sobre protección de datos personales, aceptando y consintiendo el tratamiento de estos por parte de BELENDER, en la forma y para las finalidades indicadas en la presente Política de Privacidad."),r.ɵɵelementEnd()()),2&e&&(r.ɵɵadvance(12),r.ɵɵtextInterpolate1("El Usuario podrá contactar con BELENDER en la siguiente dirección de correo electrónico: ","DPO@belender.eu",""),r.ɵɵadvance(56),r.ɵɵtextInterpolate1("El Usuario puede ejercer todos estos derechos a través de la siguiente dirección de email ","DPO@belender.eu"," indicando el motivo de su petición y aportando una copia de su D.N.I."),r.ɵɵadvance(39),r.ɵɵtextInterpolate1("Si tienen alguna pregunta sobre esta Política de Privacidad o el tratamiento de sus datos rogamos que se ponga en contacto con BELENDER mediante correo electrónico dirigido a la siguiente dirección de correo electrónico: ","DPO@belender.eu",""))}function m(e,t){if(1&e&&(r.ɵɵelementContainerStart(0),r.ɵɵelement(1,"div",10),r.ɵɵelementContainerEnd()),2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(1),r.ɵɵproperty("innerHTML",e.policy,r.ɵɵsanitizeHtml)}}function f(e,t){1&e&&(r.ɵɵelementStart(0,"div",11),r.ɵɵtext(1," Cargando políticas de privacidad "),r.ɵɵelementEnd())}let g=(()=>{class e{constructor(e,t){this.customizationStoreService=e,this.data=t,this.loading=!1,console.warn(this.data),this.customizationStoreService.getFunderStyles().subscribe((e=>{Object.keys(e).length>0&&(this.funderStyles=e)})),this.customizationStoreService.getFunderConfig().subscribe((e=>{Object.keys(e).length>0&&(this.funderConfig=e,this.setCustomization(this.funderConfig))}))}setCustomization(e){this.loading=!0,console.error(this.data),this.data&&this.data.flow&&this.data.allData&&this.data.allData[this.data.flow]&&this.data.allData[this.data.flow].texts&&this.data.allData[this.data.flow].texts.policy?this.policy=this.data.allData[this.data.flow].texts.policy:e&&e.policy&&(this.policy=e.policy),this.loading=!1}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵdirectiveInject(d.r),r.ɵɵdirectiveInject(c.WI))},e.ɵcmp=r.ɵɵdefineComponent({type:e,selectors:[["vex-policy"]],decls:10,vars:12,consts:[[1,"mat-typography"],[1,"p-[1rem]","flex","flex-col","items-center"],["class","w-full policy-page max-w-xl",4,"ngIf"],[4,"ngIf"],["class","w-full px-8 py-16 rounded-md bg-blue-500/20 text-blue-500 text-center",4,"ngIf"],["align","end"],["mat-flat-button","","mat-dialog-close","",1,"px-8","bg-slate-300/30"],["mat-flat-button","","type","button","cdkFocusInitial","",1,"px-8",3,"mat-dialog-close"],[1,"w-full","policy-page","max-w-xl"],[1,"p-3","rounded-md","mt-3","mb-3","bg-slate-100"],[1,"w-full","max-w-xl","policy-page",3,"innerHTML"],[1,"w-full","px-8","py-16","rounded-md","bg-blue-500/20","text-blue-500","text-center"]],template:function(e,t){1&e&&(r.ɵɵelementStart(0,"mat-dialog-content",0)(1,"div",1),r.ɵɵtemplate(2,p,112,3,"div",2),r.ɵɵtemplate(3,m,2,1,"ng-container",3),r.ɵɵtemplate(4,f,2,0,"div",4),r.ɵɵelementEnd()(),r.ɵɵelementStart(5,"mat-dialog-actions",5)(6,"button",6),r.ɵɵtext(7,"Cancelar"),r.ɵɵelementEnd(),r.ɵɵelementStart(8,"button",7),r.ɵɵtext(9,"Aceptar"),r.ɵɵelementEnd()()),2&e&&(r.ɵɵadvance(2),r.ɵɵproperty("ngIf",!t.policy&&!t.loading),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",t.policy&&!t.loading),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",t.loading),r.ɵɵadvance(2),r.ɵɵstyleProp("border-radius",t.funderStyles.btnRound+"px"),r.ɵɵadvance(2),r.ɵɵstyleProp("color",t.funderStyles.colors.btnText)("background",t.funderStyles.colors.btnBg)("border-radius",t.funderStyles.btnRound+"px"),r.ɵɵproperty("mat-dialog-close",!0))},dependencies:[u.O5,h.lW,c.ZT,c.xY,c.H8],styles:["h1[_ngcontent-%COMP%]{font-size:30px!important}h2[_ngcontent-%COMP%]{font-size:20px!important;margin-bottom:15px;margin-top:40px}ul[_ngcontent-%COMP%]{padding-left:20px;list-style:disc}p[_ngcontent-%COMP%]{margin:5px 0}"]}),e})();var _=n(9045),v=n(2237),y=n(9199);const b=["configpanel"],x=["widgetCard"];function w(e,t){if(1&e&&(r.ɵɵelementStart(0,"span"),r.ɵɵtext(1),r.ɵɵelementEnd()),2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(1),r.ɵɵtextInterpolate1("Copyright ©2023 ",e.copyrightName,"")}}function C(e,t){if(1&e){const e=r.ɵɵgetCurrentView();r.ɵɵelementStart(0,"div",9)(1,"div",10)(2,"a",11),r.ɵɵlistener("click",(function(t){r.ɵɵrestoreView(e);const n=r.ɵɵnextContext();return r.ɵɵresetView(n.gotoPolicy(t))})),r.ɵɵtext(3,"Política de privacidad"),r.ɵɵelementEnd()(),r.ɵɵelementStart(4,"div",12)(5,"a",11),r.ɵɵlistener("click",(function(t){r.ɵɵrestoreView(e);const n=r.ɵɵnextContext();return r.ɵɵresetView(n.gotoLegal(t))})),r.ɵɵtext(6," Aviso legal"),r.ɵɵelementEnd()()()}}function S(e,t){if(1&e){const e=r.ɵɵgetCurrentView();r.ɵɵelementStart(0,"div",9)(1,"div",12)(2,"a",11),r.ɵɵlistener("click",(function(t){r.ɵɵrestoreView(e);const n=r.ɵɵnextContext();return r.ɵɵresetView(n.gotoLegal(t))})),r.ɵɵtext(3," Aviso legal"),r.ɵɵelementEnd()()()}}let M=class{constructor(e,t){this.deviceInfoService=e,this.dialog=t,this.widgetHeight=0,this.copyrightName="",this.showCopyright=!1,this.isScaled=!1}ngOnInit(){this.getWindowsScreenOrientation(),this.copyrightName=function(){let e=window.location.hostname;return e.indexOf("belender.net")>-1?"Belender":(e.indexOf("bcds.net"),"")}()}ngOnDestroy(){window.screen&&window.screen.orientation&&this.orientationChangeHandler&&window.screen.orientation.removeEventListener("change",this.orientationChangeHandler)}ngDoCheck(){this.getWidgetCardHeight()}getWindowsScreenOrientation(){window.screen&&window.screen.orientation?(this.orientationChangeHandler=()=>{this.getWidgetCardHeight()},window.screen.orientation.addEventListener("change",this.orientationChangeHandler)):console.warn("Screen Orientation API not supported.")}getWidgetCardHeight(){this.widgetCard&&this.widgetHeight!=this.widgetCard.nativeElement.offsetHeight&&(this.widgetHeight=this.widgetCard.nativeElement.offsetHeight,this.isScaled$=this.deviceInfoService.isScaled$.subscribe((e=>{this.isScaled=e,this.isScaled&&(this.widgetHeight=1.5*this.widgetHeight)})),this.sendMessageToParent({type:"widgetHeight",data:this.widgetHeight}))}gotoPolicy(e){e.preventDefault(),e.stopPropagation(),this.dialog.open(g,{panelClass:"fullscreen-dialog"})}gotoLegal(e){e.preventDefault(),e.stopPropagation(),this.dialog.open(l.N,{panelClass:"fullscreen-dialog"})}sendMessageToParent(e){window.top.postMessage(e,"*")}};M.ɵfac=function(e){return new(e||M)(r.ɵɵdirectiveInject(_.H),r.ɵɵdirectiveInject(c.uw))},M.ɵcmp=r.ɵɵdefineComponent({type:M,selectors:[["vex-widget-boxed-layout"]],viewQuery:function(e,t){if(1&e&&(r.ɵɵviewQuery(b,7),r.ɵɵviewQuery(x,5)),2&e){let e;r.ɵɵqueryRefresh(e=r.ɵɵloadQuery())&&(t.configpanel=e.first),r.ɵɵqueryRefresh(e=r.ɵɵloadQuery())&&(t.widgetCard=e.first)}},decls:11,vars:3,consts:[[1,"content","belender-widget-wrapper","h-full","p-1","md:p-2"],[1,"card","rounded-none","h-fit","md:rounded-md","widget-boxed","p-0","shadow-none","md:shadow-md","mt-3","max-w-[726px]"],["widgetCard",""],[1,"belender-page-layout","h-full","p-0","md:p-4"],[1,"h-auto","overflow-y-visible","content-layout","overflow-x-hidden","content-widget","p-0","md:p-3"],[1,"footer","bg-slate-800","text-white","z-50","py-4","px-8","flex","flex-col","md:flex-row","justify-between","items-center"],[1,"copyright","mb-4","md:mb-0"],[4,"ngIf"],["class","links flex flex-col md:flex-row justify-end items-center",4,"ngIf"],[1,"links","flex","flex-col","md:flex-row","justify-end","items-center"],[1,"link","border-none","md:border-r-2","pr-0","md:pr-4"],["target","_blank",1,"text-sm","hover:text-green-500","cursor-pointer",3,"click"],[1,"link","pl-0","md:pl-4"]],template:function(e,t){1&e&&(r.ɵɵelementStart(0,"main",0)(1,"div",1,2)(3,"vex-page-layout",3)(4,"vex-page-layout-content",4),r.ɵɵelement(5,"router-outlet"),r.ɵɵelementEnd()()(),r.ɵɵelementStart(6,"div",5)(7,"div",6),r.ɵɵtemplate(8,w,2,1,"span",7),r.ɵɵelementEnd(),r.ɵɵtemplate(9,C,7,0,"div",8),r.ɵɵtemplate(10,S,4,0,"div",8),r.ɵɵelementEnd()()),2&e&&(r.ɵɵadvance(8),r.ɵɵproperty("ngIf",t.showCopyright),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",t.showCopyright),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",!t.showCopyright))},dependencies:[u.O5,s.lC,v.w,y.d],styles:[".card[_ngcontent-%COMP%]{margin:0 auto 70px;overflow:hidden;border-radius:20px;box-shadow:#0000001a 0 10px 50px}@media (min-width: 600px){.card[_ngcontent-%COMP%]{margin-top:30px!important}}@media (max-width: 600px){.card[_ngcontent-%COMP%]{border-radius:0}}.content[_ngcontent-%COMP%]{overflow:auto;padding-bottom:60px!important}@media (max-width: 992px){.content[_ngcontent-%COMP%]{padding-bottom:120px!important}}.footer[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;width:100%;box-shadow:0 -2px 2px #0000000d}"]}),M=(0,o.gn)([(0,a.c)()],M);var I=n(6e3),k=n(2567),E=n(2340),T=n(529);let P=(()=>{class e{constructor(e,t,n){this.routes=e,this.authS=t,this.http=n}login(e){return new Promise(((t,n)=>{e?this.http.post(E.N.baseUrl+"/login",e).subscribe((i=>{i&&i.status&&"success"==i.status?(localStorage.setItem("belender-user",JSON.stringify(e)),this.setUserData(i),t(i)):n(!1)}),(e=>{n(!1)})):n(!1)}))}setUserData(e){this.authS.setUserData(e.data),this.authS.setUserToken(e.token_type,e.access_token),this.authS.setUserId(e.data.user_id),this.authS.setFunderId(e.data.funder_id)}tryLocalLogin(){let e=localStorage.getItem("belender-user")?JSON.parse(localStorage.getItem("belender-user")):null;return this.login(e)}logout(){localStorage.removeItem("belender-user"),this.authS.setUserData(null),this.authS.setUserToken("",""),this.authS.setUserId(""),this.authS.setLogged(!1),this.routes.navigate(["login"])}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(s.F0),r.ɵɵinject(k.e),r.ɵɵinject(T.eN))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),O=(()=>{class e{constructor(e,t){this.auth=e,this.loginS=t}canActivate(){return new Promise(((e,t)=>{this.auth.isLogged()?e(!0):this.loginS.tryLocalLogin().then((t=>{e(!0)})).catch((e=>{location.assign(location.origin+"/login"),t(!1)}))}))}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(k.e),r.ɵɵinject(P))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac}),e})(),D=(()=>{class e{constructor(e,t){this.loginS=e,this.auth=t}canActivate(){return new Promise(((e,t)=>{this.auth.isLogged()?e(!0):this.loginS.tryLocalLogin().then((t=>{e(!0)})).catch((e=>{location.assign(location.origin+"/login"),t(!1)}))}))}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(P),r.ɵɵinject(k.e))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac}),e})();const L=[{path:"widget",loadChildren:()=>Promise.all([n.e(244),n.e(281),n.e(553)]).then(n.bind(n,6553)).then((e=>e.WidgetModule))},{path:"widget-boxed",component:M,children:[{path:"",loadChildren:()=>Promise.all([n.e(244),n.e(852)]).then(n.bind(n,7852)).then((e=>e.WidgetBoxedLayoutModule))}]}];let A=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[O,D],imports:[s.Bz.forRoot(L,{preloadingStrategy:I.tw,scrollPositionRestoration:"enabled",relativeLinkResolution:"corrected",anchorScrolling:"enabled"}),s.Bz,I.d8]}),e})();var N=n(7122);const R={blue:{light:"rgba(99, 102, 241, .1)",default:"rgb(99, 102, 241)",contrast:"rgb(255, 255, 255)"},gray:{light:"rgba(37, 37, 37, 0.1)",default:"rgb(37, 37, 37)",contrast:"rgb(255, 255, 255)"},red:{light:"rgba(244, 67, 54, 0.1)",default:"rgb(244, 67, 54)",contrast:"rgb(255, 255, 255)"},orange:{light:"rgba(255, 152, 0, 0.1)",default:"rgb(255, 152, 0)",contrast:"rgb(0, 0, 0)"},"deep-orange":{light:"rgba(255, 87, 34, 0.1)",default:"rgb(255, 87, 34)",contrast:"rgb(255, 255, 255)"},amber:{light:"rgba(255, 193, 7, 0.1)",default:"rgb(255, 193, 7)",contrast:"rgb(0, 0, 0)"},green:{light:"rgba(76, 175, 80, 0.1)",default:"rgb(76, 175, 80)",contrast:"rgb(255, 255, 255)"},teal:{light:"rgba(0, 150, 136, 0.1)",default:"rgb(0, 150, 136)",contrast:"rgb(255, 255, 255)"},cyan:{light:"rgba(0, 188, 212, 0.1)",default:"rgb(0, 188, 212)",contrast:"rgb(255, 255, 255)"},purple:{light:"rgba(156, 39, 176, 0.1)",default:"rgb(156, 39, 176)",contrast:"rgb(255, 255, 255)"},"deep-purple":{light:"rgba(103, 58, 183, 0.1)",default:"rgb(103, 58, 183)",contrast:"rgb(255, 255, 255)"},pink:{light:"rgba(233, 30, 99, 0.1)",default:"rgb(233, 30, 99)",contrast:"rgb(255, 255, 255)"}};var j=n(5861);function F(){return(F=(0,j.Z)((function*(){const e=H();return{user_agent:navigator.userAgent,ip:yield q(),browser:$(),device:W(),flowType:V(window.location.href),os:B(),os_version:U(),orientation:z(),isMobile:/Mobi|Android/i.test(navigator.userAgent),isDesktop:!/Mobi|Android/i.test(navigator.userAgent)&&!/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(navigator.userAgent.toLowerCase()),isTablet:/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(navigator.userAgent.toLowerCase()),screen:`{"width": ${e.width}, "height": ${e.height}}`}}))).apply(this,arguments)}function q(){return Y.apply(this,arguments)}function Y(){return(Y=(0,j.Z)((function*(){try{return(yield(yield fetch("https://api.ipify.org?format=json")).json()).ip}catch{return"Not available"}}))).apply(this,arguments)}function V(e){const t=e.split("/"),n=-1===t.indexOf("widget")?t.indexOf("widget-boxed"):t.indexOf("widget");return-1!==n&&n+1<t.length?t[n+1]:null}function H(){return{width:window.screen.width,height:window.screen.height}}function z(){return screen.orientation?screen.orientation.type:window.innerWidth>window.innerHeight?"landscape":"portrait"}function B(){const e=navigator.userAgent;let t="Unknow";return-1!==e.indexOf("Windows")?t="Windows":-1!==e.indexOf("Mac OS X")||-1!==e.indexOf("Macintosh")?t="macOS":-1!==e.indexOf("Linux")?t="Linux":-1!==e.indexOf("Android")?t="Android":-1!==e.indexOf("iOS")?t="iOS":-1!==e.indexOf("CrOS")?t="Chrome OS":-1!==e.indexOf("WinCE")&&(t="Windows CE"),t}function U(){const e=navigator.userAgent;let t="Unknow";if(-1!==e.indexOf("Windows NT 10.0"))t="Windows 10";else if(-1!==e.indexOf("Windows NT 6.3"))t="Windows 8.1";else if(-1!==e.indexOf("Windows NT 6.2"))t="Windows 8";else if(-1!==e.indexOf("Windows NT 6.1"))t="Windows 7";else if(-1!==e.indexOf("Windows NT 6.0"))t="Windows Vista";else if(-1!==e.indexOf("Windows NT 5.1"))t="Windows XP";else if(-1!==e.indexOf("Windows NT 5.0"))t="Windows 2000";else if(-1!==e.indexOf("Mac OS X 10_")){const n=e.match(/Mac OS X 10_([0-9_]+)/);t=n&&n[1]?"macOS "+n[1].replace(/_/g,"."):"macOS"}else if(-1!==e.indexOf("Linux"))t="Linux";else if(-1!==e.indexOf("Android")){const n=e.match(/Android ([0-9.]+)/);t=n&&n[1]?"Android "+n[1]:"Android"}else if(-1!==e.indexOf("iOS")||-1!==e.indexOf("Mac OS")){const n=e.match(/OS ([0-9_]+) like Mac OS X/);t=n&&n[1]?"iOS "+n[1].replace(/_/g,"."):"iOS"}return t}function W(){const e=navigator.userAgent;let t="Unknow";const n=[{pattern:/iPhone/i,model:"iPhone"},{pattern:/iPad/i,model:"iPad"},{pattern:/Android/i,model:"Android Device"},{pattern:/SamsungBrowser\/([0-9.]+)/i,model:"Samsung"},{pattern:/HuaweiBrowser\/([0-9.]+)/i,model:"Huawei"},{pattern:/OPR\/([0-9.]+).*Mobile/i,model:"Opera Mobile"},{pattern:/MiuiBrowser\/([0-9.]+)/i,model:"Xiaomi"},{pattern:/LG-?([A-Za-z0-9]+)/i,model:"LG"},{pattern:/HTC ([A-Za-z0-9]+)/i,model:"HTC"},{pattern:/Nexus ([0-9]+)/i,model:"Nexus"},{pattern:/Pixel ([0-9]+)/i,model:"Pixel"},{pattern:/Windows Phone ([\d.]+)/i,model:"Windows Phone"},{pattern:/Kindle Fire/i,model:"Kindle Fire"},{pattern:/Silk/i,model:"Amazon Silk"},{pattern:/Windows /i,model:"Desktop"}];for(const i of n)if(i.pattern.test(e)){const n=e.match(i.pattern);t=n&&n[1]?`${i.model} ${n[1]}`:i.model;break}return t}function $(){const e=navigator.userAgent;let t="Desconocido";return-1!==e.indexOf("Chrome")&&-1!==e.indexOf("Safari")?t="Chrome":-1!==e.indexOf("Firefox")?t="Firefox":-1!==e.indexOf("Safari")?t="Safari":-1!==e.indexOf("Edge")?t="Edge":-1!==e.indexOf("Opera")||-1!==e.indexOf("OPR/")?t="Opera":-1!==e.indexOf("Trident")&&(t="Internet Explorer"),t}var G=n(1135);function Z(e,t){const n=e=>e&&"object"==typeof e;return n(e)&&n(t)?(Object.keys(t).forEach((i=>{const r=e[i],s=t[i];e[i]=Array.isArray(r)&&Array.isArray(s)?r.concat(s):n(r)&&n(s)?Z(Object.assign({},r),s):s})),e):t}var K,Q=((K=Q||(Q={})).apollo="vex-layout-apollo",K.zeus="vex-layout-zeus",K.hermes="vex-layout-hermes",K.poseidon="vex-layout-poseidon",K.ares="vex-layout-ares",K.ikaros="vex-layout-ikaros",Q),X=(()=>{return(e=X||(X={})).light="vex-style-light",e.default="vex-style-default",e.dark="vex-style-dark",X;var e})();const J={id:Q.apollo,name:"Apollo",style:{colorScheme:X.default,colors:{primary:R.blue},borderRadius:{value:.25,unit:"rem"},button:{borderRadius:void 0}},direction:"ltr",imgSrc:"//vex-landing.visurel.com/assets/img/layouts/apollo.png",layout:"horizontal",boxed:!1,sidenav:{title:"Belender",imageUrl:"assets/img/demo/logo.svg",showCollapsePin:!0,user:{visible:!0},search:{visible:!0},state:"expanded"},toolbar:{fixed:!0,user:{visible:!0}},navbar:{position:"below-toolbar"},footer:{visible:!0,fixed:!0}},ee=[J,Z({...J},{id:Q.poseidon,name:"Poseidon",imgSrc:"//vex-landing.visurel.com/assets/img/layouts/poseidon.png",style:{borderRadius:{value:.5,unit:"rem"},button:{borderRadius:{value:9999,unit:"px"}}},sidenav:{user:{visible:!0},search:{visible:!0}},toolbar:{user:{visible:!1}},footer:{fixed:!1}}),Z({...J},{id:Q.hermes,name:"Hermes",imgSrc:"//vex-landing.visurel.com/assets/img/layouts/hermes.png",layout:"vertical",boxed:!0,sidenav:{user:{visible:!1},search:{visible:!1}},toolbar:{fixed:!1},footer:{fixed:!1}}),Z({...J},{id:Q.ares,name:"Ares",imgSrc:"//vex-landing.visurel.com/assets/img/layouts/ares.png",sidenav:{user:{visible:!1},search:{visible:!1}},toolbar:{fixed:!1},navbar:{position:"in-toolbar"},footer:{fixed:!1}}),Z({...J},{id:Q.zeus,name:"Zeus",imgSrc:"//vex-landing.visurel.com/assets/img/layouts/zeus.png",sidenav:{state:"collapsed"}}),Z({...J},{id:Q.ikaros,name:"Ikaros",imgSrc:"//vex-landing.visurel.com/assets/img/layouts/ikaros.png",layout:"vertical",boxed:!0,sidenav:{user:{visible:!1},search:{visible:!1}},toolbar:{fixed:!1},navbar:{position:"in-toolbar"},footer:{fixed:!1}})];var te=n(4004),ne=n(2289);let ie=(()=>{class e{constructor(e,t){this.router=e,this.breakpointObserver=t,this._quickpanelOpenSubject=new G.X(!1),this.quickpanelOpen$=this._quickpanelOpenSubject.asObservable(),this._sidenavOpenSubject=new G.X(!1),this.sidenavOpen$=this._sidenavOpenSubject.asObservable(),this._sidenavCollapsedSubject=new G.X(!1),this.sidenavCollapsed$=this._sidenavCollapsedSubject.asObservable(),this._sidenavCollapsedOpenSubject=new G.X(!1),this.sidenavCollapsedOpen$=this._sidenavCollapsedOpenSubject.asObservable(),this._configpanelOpenSubject=new G.X(!1),this.configpanelOpen$=this._configpanelOpenSubject.asObservable(),this._searchOpen=new G.X(!1),this.searchOpen$=this._searchOpen.asObservable(),this.isDesktop$=this.breakpointObserver.observe("(min-width: 1280px)").pipe((0,te.U)((e=>e.matches))),this.ltLg$=this.breakpointObserver.observe("(max-width: 1279px)").pipe((0,te.U)((e=>e.matches))),this.gtMd$=this.breakpointObserver.observe("(min-width: 960px)").pipe((0,te.U)((e=>e.matches))),this.ltMd$=this.breakpointObserver.observe("(max-width: 959px)").pipe((0,te.U)((e=>e.matches))),this.gtSm$=this.breakpointObserver.observe("(min-width: 600px)").pipe((0,te.U)((e=>e.matches))),this.isMobile$=this.breakpointObserver.observe("(max-width: 599px)").pipe((0,te.U)((e=>e.matches))),this.isLtLg=()=>this.breakpointObserver.isMatched("(max-width: 1279px)"),this.isMobile=()=>this.breakpointObserver.isMatched("(max-width: 599px)")}openQuickpanel(){this._quickpanelOpenSubject.next(!0)}closeQuickpanel(){this._quickpanelOpenSubject.next(!1)}openSidenav(){this._sidenavOpenSubject.next(!0)}closeSidenav(){this._sidenavOpenSubject.next(!1)}collapseSidenav(){this._sidenavCollapsedSubject.next(!0)}expandSidenav(){this._sidenavCollapsedSubject.next(!1)}collapseOpenSidenav(){this._sidenavCollapsedOpenSubject.next(!0)}collapseCloseSidenav(){this._sidenavCollapsedOpenSubject.next(!1)}openConfigpanel(){this._configpanelOpenSubject.next(!0)}closeConfigpanel(){this._configpanelOpenSubject.next(!1)}openSearch(){this._searchOpen.next(!0)}closeSearch(){this._searchOpen.next(!1)}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(s.F0),r.ɵɵinject(ne.Yg))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),re=(()=>{class e{constructor(e,t){this.document=e,this.layoutService=t,this.defaultConfig=Q.poseidon,this.configs=ee,this._configSubject=new G.X(this.configs.find((e=>e.id===this.defaultConfig))),this.config$=this._configSubject.asObservable(),this.config$.subscribe((e=>this._updateConfig(e)))}select(e){return this.config$.pipe((0,te.U)(e))}setConfig(e){const t=this.configs.find((t=>t.id===e));this._configSubject.next(t)}updateConfig(e){this._configSubject.next(Z({...this._configSubject.getValue()},e))}_updateConfig(e){this._setLayoutClass(e.id),this._setStyle(e.style),this._setDirection(e.direction),this._setSidenavState(e.sidenav.state),this._emitResize()}_setStyle(e){Object.values(X).filter((t=>t!==e.colorScheme)).forEach((e=>{this.document.body.classList.contains(e)&&this.document.body.classList.remove(e)})),this.document.body.classList.add(e.colorScheme),this.document.body.style.setProperty("--border-radius",`${e.borderRadius.value}${e.borderRadius.unit}`);const t=e.button.borderRadius??e.borderRadius;this.document.body.style.setProperty("--button-border-radius",`${t.value}${t.unit}`),this.document.body.style.setProperty("--color-primary",e.colors.primary.default.replace("rgb(","").replace(")","")),this.document.body.style.setProperty("--color-primary-contrast",e.colors.primary.contrast.replace("rgb(","").replace(")",""))}_emitResize(){window&&(window.dispatchEvent(new Event("resize")),setTimeout((()=>window.dispatchEvent(new Event("resize"))),200))}_setDirection(e){this.document.body.dir=e}_setSidenavState(e){"expanded"===e?this.layoutService.expandSidenav():this.layoutService.collapseSidenav()}_setLayoutClass(e){this.configs.forEach((e=>{this.document.body.classList.contains(e.id)&&this.document.body.classList.remove(e.id)})),this.document.body.classList.add(e)}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(u.K0),r.ɵɵinject(ie))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var se=n(7579);let oe=(()=>{class e{constructor(){this.items=[],this._openChangeSubject=new se.x,this.openChange$=this._openChangeSubject.asObservable()}triggerOpenChange(e){this._openChangeSubject.next(e)}isLink(e){return"link"===e.type}isDropdown(e){return"dropdown"===e.type}isSubheading(e){return"subheading"===e.type}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var ae=n(7392),le=n(5895),ce=n(7367),de=n(5089),ue=n(7308);let he=(()=>{class e{constructor(e,t,n){this.utils=e,this.http=t,this.notis=n,this.apiKey="c64f20df286ab488fb1c91a2ed3cf9ec",this.token="ATTA9ff959a5d74920c598df2c9fd30314e41a5894ad23049c639cc8bba2be531d38541FAF61",this.boardKey="63d3d226511802fc84ab6fb3",this.basicUrl="https://api.trello.com/1/",this.testUrl="https://docs.test.nb-ric.com/api/request/clave_pin/verify",this.personalUrl="https://docs.test.nb-ric.com/api/request/natural_person"}getTrelloCards(){return this.http.get(this.basicUrl+"boards/"+this.boardKey+"/cards?key="+this.apiKey+"&token="+this.token)}getInfoCard(e){return this.http.get(this.basicUrl+"lists/"+e+"?key="+this.apiKey+"&token="+this.token)}updateCard(e){return this.http.put(this.basicUrl+"cards/"+e.id+"?key="+this.apiKey+"&token="+this.token,e)}addCard(e){return this.http.post(this.basicUrl+"cards?idList="+e.idList+"&keepFromSource=all&key="+this.apiKey+"&token="+this.token,e)}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(de.F),r.ɵɵinject(T.eN),r.ɵɵinject(le.T))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var pe=n(182),me=n(1572);function fe(e,t){if(1&e&&(r.ɵɵelementStart(0,"div",2),r.ɵɵelement(1,"mat-progress-spinner",3),r.ɵɵelementStart(2,"p",4),r.ɵɵtext(3),r.ɵɵelementEnd()()),2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(3),r.ɵɵtextInterpolate(e.loading||e.systemLoading)}}function ge(e,t){if(1&e){const e=r.ɵɵgetCurrentView();r.ɵɵelementStart(0,"button",5),r.ɵɵlistener("click",(function(){r.ɵɵrestoreView(e);const t=r.ɵɵnextContext();return r.ɵɵresetView(t.toggleScale())})),r.ɵɵelement(1,"mat-icon",6),r.ɵɵelementEnd()}if(2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(1),r.ɵɵproperty("svgIcon",e.isScaled?"mat:zoom_out":"mat:zoom_in")}}let _e=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,d,u,h,p,m,f,g,_){this.configService=e,this.localeId=t,this.auth=n,this.navigationService=i,this.matIconRegistry=r,this.domSanitizer=s,this.notiService=o,this.customizationService=a,this.customizationStoreService=l,this.utils=c,this.cdRef=d,this.translateService=u,this.trelloService=h,this.webhooksService=p,this.router=m,this.deviceInfoService=f,this.route=g,this.renderer=_,this._isWebComponent=!1,this._userId=null,this._requestId=null,this._packageId=null,this._flowType=null,this._documentNumber=null,this._documentExpirationDate=null,this._documentSupport=null,this._phone=null,this._email=null,this._birthDate=null,this._urlPath=null,this.loading=!1,this.systemLoading=null,this.isScaled=!1,this.showScaleButton=!0,this.funderConfigLoaded=!1,this.funderStylesLoaded=!1,this.systemLoading="Cargando sistema",this.auth.bindUserData().subscribe((e=>{e&&(this.financiadorID=e.funder_id,this.userID=e.user_id,this.setSidenavItems(),this.bindFirebaseNotifications(e.funder_id)),this.systemLoading=null})),N.Zr.defaultLocale=this.localeId,this.matIconRegistry.addSvgIconResolver(((e,t)=>{switch(t){case"mat":return this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/img/icons/material-design-icons/two-tone/${e}.svg`);case"logo":return this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/img/icons/logos/${e}.svg`);case"flag":return this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/img/icons/flags/${e}.svg`)}}));const v=R.gray;let y=null;localStorage.getItem("belender-sidenav-closed")&&(y=JSON.parse(localStorage.getItem("belender-sidenav-closed"))?"collapsed":"expanded"),v&&this.configService.updateConfig({style:{colors:{primary:v}},sidenav:{state:y||"collapsed"}})}set isWebComponent(e){this._isWebComponent=e,console.log("isWebComponent received:",e)}get isWebComponent(){return this._isWebComponent}set userID(e){this._userId=e,console.log("userID received:",e)}get userID(){return this._userId}set requestId(e){this._requestId=e,console.log("requestId received:",e)}get requestId(){return this._requestId}set packageId(e){this._packageId=e,console.log("packageId received:",e)}get packageId(){return this._packageId}set flowType(e){this._flowType=e,console.log("flowType received:",e)}get flowType(){return this._flowType}set documentNumber(e){this._documentNumber=e,console.log("documentNumber received:",e)}get documentNumber(){return this._documentNumber}set documentExpirationDate(e){this._documentExpirationDate=e,console.log("documentExpirationDate received:",e)}get documentExpirationDate(){return this._documentExpirationDate}set documentSupport(e){this._documentSupport=e,console.log("documentSupport received:",e)}get documentSupport(){return this._documentSupport}set phone(e){this._phone=e,console.log("phone received:",e)}get phone(){return this._phone}set email(e){this._email=e,console.log("email received:",e)}get email(){return this._email}set birthDate(e){this._birthDate=e,console.log("birthDate received:",e)}get birthDate(){return this._birthDate}set urlPath(e){this._urlPath=e,console.log("urlPath received:",e)}get urlPath(){return this._urlPath}ngOnInit(){console.log("AppComponent initialized with encapsulation:",E.N.isWebComponent?"ShadowDom":"Emulated"),function(){return F.apply(this,arguments)}().then((e=>{this.deviceInfoService.setDeviceInfo(e)})),this.route.queryParams.subscribe((e=>{"true"===e.scaled&&(this.isScaled=!0,this.deviceInfoService.setScaled(this.isScaled),this.updateScale())})),window.location.href.indexOf("widget-boxed")>-1||(this.showScaleButton=!1)}ngAfterViewChecked(){this.utils.getLoading().subscribe((e=>{this.loading=e,this.cdRef.detectChanges()}));let e=function(){let e=window.location.hostname;return e.indexOf("belender.net")>-1?"Belender":e.indexOf("bcds.net")>-1?"BC Digital":"Belender"}();document.title=e}ngOnChanges(){this.isWebComponent&&this.setUrlPath()}setUrlPath(){if(0==this.urlPath?.length||!this.urlPath){const e=["/widget",this.flowType,this.userID,this.packageId],t={request_id:this.requestId,document_number:this.documentNumber,document_expiration_date:this.documentExpirationDate,document_support:this.documentSupport,phone:this.phone,email:this.email,birth_date:this.birthDate};Object.keys(t).forEach((e=>null==t[e]&&delete t[e]));const n=this.router.createUrlTree(e,{queryParams:t});this.urlPath=this.router.serializeUrl(n)}this.router.navigateByUrl(this.urlPath,{skipLocationChange:!0})}bindFirebaseNotifications(e){this.notiService.bindFunderNotifications(e)}toggleScale(){this.isScaled=!this.isScaled,this.deviceInfoService.setScaled(this.isScaled),this.updateScale()}updateScale(){const e=document.body;e&&(this.isScaled?this.renderer.addClass(e,"scaled"):this.renderer.removeClass(e,"scaled"))}setSidenavItems(){this.navigationService.items=[this.getRequestZone(),this.getConfigZone()]}getRequestZone(){return{type:"subheading",label:"SOLICITUDES",children:[{type:"link",label:this.translateService.data.sidenav.all_requests,route:"/solicitudes/all",icon:"mat:assignment"},{type:"link",label:this.translateService.data.sidenav.new_request,route:"/solicitudes/new",icon:"mat:add_circle",className:"text-purple-500"}]}}getWidgetItem(){return{type:"subheading",label:"Widget",children:[{type:"link",label:"Widget",route:"/widget-boxed/sms/"+this.userID+"/626bc43f-f0e2-464b-b550-b5cd3a8c24d4",icon:"mat:extension",target:"_blank"}]}}getConfigZone(){return{type:"subheading",label:this.translateService.data.sidenav.config,children:[{type:"link",label:this.translateService.data.sidenav.customization,route:"config/customization",icon:"mat:format_paint"}]}}getAdminZone(){let e={type:"subheading",hide:!0,label:"Admin config",children:[]};return"BackOffice"==this.auth.getUserRole()&&(e.hide=!1,e.children.push({type:"link",label:"Testing",route:"admin-config/test",icon:"mat:info"}),e.children.push({type:"link",label:"Files",route:"admin-config/files-table",icon:"mat:attachment"}),e.children.push({type:"link",label:"Users",route:"admin-config/users",icon:"mat:supervised_user_circle"})),e}getKycZone(){let e={type:"subheading",hide:!0,label:"KYC",children:[]};return"BackOffice"==this.auth.getUserRole()&&(e.hide=!1,e.children.push({type:"link",label:"Customizate",route:"kyc/custom",icon:"mat:info"},{type:"link",label:"Form",route:"kyc/form",icon:"mat:info"})),e}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵdirectiveInject(re),r.ɵɵdirectiveInject(r.LOCALE_ID),r.ɵɵdirectiveInject(k.e),r.ɵɵdirectiveInject(oe),r.ɵɵdirectiveInject(ae.jv),r.ɵɵdirectiveInject(i.DomSanitizer),r.ɵɵdirectiveInject(le.T),r.ɵɵdirectiveInject(ce.w),r.ɵɵdirectiveInject(d.r),r.ɵɵdirectiveInject(de.F),r.ɵɵdirectiveInject(r.ChangeDetectorRef),r.ɵɵdirectiveInject(ue.D),r.ɵɵdirectiveInject(he),r.ɵɵdirectiveInject(pe.t),r.ɵɵdirectiveInject(s.F0),r.ɵɵdirectiveInject(_.H),r.ɵɵdirectiveInject(s.gz),r.ɵɵdirectiveInject(r.Renderer2))},e.ɵcmp=r.ɵɵdefineComponent({type:e,selectors:[["vex-root"]],hostVars:4,hostBindings:function(e,t){2&e&&r.ɵɵstyleProp("position",t.isWebComponent?"relative":null)("display",t.isWebComponent?"block":null)},inputs:{isWebComponent:["is-web-component","isWebComponent"],userID:["user-id","userID"],requestId:["request-id","requestId"],packageId:["package-id","packageId"],flowType:["flow-type","flowType"],documentNumber:["document-number","documentNumber"],documentExpirationDate:["document-expiration-date","documentExpirationDate"],documentSupport:["document-support","documentSupport"],phone:"phone",email:"email",birthDate:["birth-date","birthDate"],urlPath:["url-path","urlPath"]},features:[r.ɵɵNgOnChangesFeature],decls:3,vars:2,consts:[["class","loading-wrapper animated fadeIn",4,"ngIf"],["class","toggle-scale-button","mat-icon-button","","aria-label","Zoom",3,"click",4,"ngIf"],[1,"loading-wrapper","animated","fadeIn"],["mode","indeterminate","color","primary"],[1,"mt-6","text-center","text-slate-800"],["mat-icon-button","","aria-label","Zoom",1,"toggle-scale-button",3,"click"],[3,"svgIcon"]],template:function(e,t){1&e&&(r.ɵɵelement(0,"router-outlet"),r.ɵɵtemplate(1,fe,4,1,"div",0),r.ɵɵtemplate(2,ge,2,1,"button",1)),2&e&&(r.ɵɵadvance(1),r.ɵɵproperty("ngIf",t.loading||t.systemLoading),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",t.showScaleButton))},dependencies:[u.O5,s.lC,me.Ou,ae.Hw],styles:[".loading-wrapper{position:absolute;top:0;width:100%;height:100%;background:white;z-index:9999999!important;display:flex;justify-content:center;align-items:center;flex-direction:column}.loading-wrapper p{padding:10px 30px;border-radius:100px}body{max-height:100vh;overflow-y:auto}.logo-belender{opacity:1;display:flex;align-items:center;justify-content:flex-start;height:100px;width:100px;zoom:.75;transform:translate(10px)}.curve-belender{opacity:1;border-right:20px solid #7BB062;height:100px;border-top:20px solid #7BB062;border-bottom:20px solid #7BB062;width:100px;border-radius:0 50px 50px 0;display:flex;align-items:center;justify-content:flex-start;animation:compressLogo 2s infinite}.dash-belender{height:18.5px;background:#7BB062;width:51px;position:relative;margin-left:-100px;animation:loopLogo 2s infinite}.img-logo{width:100px;position:absolute;left:calc(50% - 50px);top:calc(50% - 72px);opacity:.4;display:none}@keyframes loopLogo{0%{width:51px;background:#7BB062;transform:rotate(0);border-radius:0}50%{width:18px;background:#fff;transform:rotate(180deg);border-radius:10px}to{width:51px;background:#7BB062;transform:rotate(360deg);border-radius:0}}@keyframes compressLogo{0%{width:100px;transform:rotateY(0)}50%{width:70px}to{width:100px;transform:rotateY(360deg)}}@keyframes rotateLogo{0%{transform:rotateX(0)}to{transform:rotateX(360deg)}}.toggle-scale-button{position:fixed;z-index:20;top:5px;right:20px;padding:.5rem}@media (max-width: 767px){.toggle-scale-button{top:0;right:0}}.toggle-scale-button .mat-icon{width:40px;height:40px;border-radius:40px;background-color:#fff}\n"],encapsulation:3}),e})();var ve=n(1516),ye=n(1207),be=n(9549);let xe=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[{provide:be.o2,useValue:{appearance:"fill"}}],imports:[u.ez,ye.x,ye.x]}),e})();var we=n(7533),Ce=n(259),Se=n(7396),Me=n(7009),Ie=n(4006);let ke=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({imports:[u.ez,Ie.FormsModule,Ie.ReactiveFormsModule,be.lN,h.ot]}),e})();var Ee=n(3238),Te=n(2029),Pe=n(4468),Oe=n(7795),De=n(1452);const Le=[{path:"",component:l.N}];let Ae=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({imports:[s.Bz.forChild(Le),s.Bz,I.d8]}),e})();var Ne=n(6383),Re=n(5028);let je=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[ce.w],imports:[u.ez,Ae,we.q,me.Cq,Ne.G,Re.q]}),e})();const Fe=[{path:"",component:n(3755).$}];let qe=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({imports:[s.Bz.forChild(Fe),s.Bz,I.d8]}),e})();var Ye=n(7838);let Ve=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[ce.w],imports:[qe,we.q,me.Cq,Ne.G,Re.q,Ye.y]}),e})();const He=[{path:"",component:n(3746).R}];let ze=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({imports:[s.Bz.forChild(He),s.Bz,I.d8]}),e})();var Be=n(865);let Ue=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[ce.w],imports:[ze,we.q,me.Cq,Ne.G,Re.q,Ye.y,Be.q]}),e})();const We=[{path:"",component:g}];let $e=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({imports:[s.Bz.forChild(We),s.Bz,I.d8]}),e})(),Ge=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[ce.w],imports:[u.ez,$e,we.q,me.Cq,Ne.G,Re.q]}),e})();var Ze=n(1258),Ke=n(3295),Qe=n(8184);let Xe=(()=>{class e extends Qe.Xj{findHostElement(){let e=document.querySelector("belender-web-component");if(e)return e;const t=e=>{if(e.shadowRoot){const n=e.shadowRoot,i=n.querySelector("belender-web-component");if(i)return i;for(const e of Array.from(n.children)){const n=t(e);if(n)return n}}for(const n of Array.from(e.childNodes)){const e=t(n);if(e)return e}return null};return t(document.documentElement)}_createContainer(){const e=document.createElement("div");e.classList.add("cdk-overlay-container");const t=this.findHostElement();t?t.shadowRoot?(t.shadowRoot.appendChild(e),console.log("✅ Overlay inyectado en shadowRoot del WebComponent")):(t.appendChild(e),console.log("✅ Overlay inyectado dentro del WebComponent")):(document.body.appendChild(e),console.log("⚠️ No se encontró <belender-web-component>, usando <body>")),this._containerElement=e}}return e.ɵfac=function(){let t;return function(n){return(t||(t=r.ɵɵgetInheritedFactory(e)))(n||e)}}(),e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac}),e})();const Je=(0,Ce.ZF)({apiKey:"AIzaSyDy7m74amvuLzKW4sjEHAS8Epu4Q-UE9uk",authDomain:"belender-test.firebaseapp.com",projectId:"belender-test",storageBucket:"belender-test.appspot.com",messagingSenderId:"547098308614",appId:"1:547098308614:web:61ac7bd252b92a3854d387",databaseURL:"https://belender-test-default-rtdb.europe-west1.firebasedatabase.app/"}),et=(0,Se.ad)(Je);let tt=localStorage.getItem("belender-language");function nt(e){return()=>e.use(tt||"sp")}let it=(()=>{class e{constructor(e){if(this.injector=e,E.N.isWebComponent){console.log("📦 Generando BelenderWebComponent class...");const t=(0,De.iD)(_e,{injector:e});window.BelenderWebComponent=t}}ngDoBootstrap(){}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(r.Injector))},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[he,le.T,de.F,k.e,P,Te.F,ue.D,{provide:r.APP_INITIALIZER,useFactory:nt,deps:[ue.D],multi:!0},{provide:Ee.Ad,useValue:"es-ES"},{provide:Pe.gJ,useValue:{headless:!0}},{provide:Qe.Xj,useClass:Xe}],imports:[i.BrowserModule,A,ve.PW,T.JF,xe,we.q,me.Cq,Me.ZX,ke,Pe.FE.forRoot(),Oe.QA,ae.Ps,je,Ve,Ue,Ge,Ze.H,Ke.g]}),e})()},7533:(e,t,n)=>{n.d(t,{q:()=>q});var i=n(6895),r=n(1207),s=n(3683),o=n(9299),a=n(7392),l=n(3238),c=n(4650);let d=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,o.Bz,a.Ps,l.si]}),e})(),u=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez]}),e})();var h=n(9101);let p=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,l.si,o.Bz,a.Ps]}),e})();var m=n(5412),f=n(1561);let g=(()=>{class e{constructor(e,t,n){this.route=e,this.dialogRef=t,this.cd=n,this.searchedItems=[{label:"Tito Forns",path:"/solicitudes",section:"Todas las solicitudes",sectionIcon:"assigment"},{label:"Cosme Fulanito",path:"/solicitudes",section:"Todas las solicitudes",sectionIcon:"assigment"},{label:"Roger Olivares",path:"/solicitudes",section:"Todas las solicitudes",sectionIcon:"assigment"}],this.flow="SMS"}ngOnInit(){}gotoSection(e){this.route.navigate([e]),this.dialogRef.close()}setFlow(e){console.warn(e),this.flow=e,this.cd.markForCheck()}}return e.ɵfac=function(t){return new(t||e)(c.ɵɵdirectiveInject(o.F0),c.ɵɵdirectiveInject(m.so),c.ɵɵdirectiveInject(c.ChangeDetectorRef))},e.ɵcmp=c.ɵɵdefineComponent({type:e,selectors:[["vex-search-modal"]],standalone:!0,features:[c.ɵɵStandaloneFeature],decls:38,vars:2,consts:[[1,"-m-6"],[1,"flex","items-center","justify-between","gap-4","px-6","py-3","border-b","border-divider"],[1,"text-xl","flex","items-center"],["mat-button","","type","button",1,"p-0","text-purple-500","bg-purple-light","rounded-sm","ml-2",3,"matMenuTriggerFor"],[1,"flex","justify-between","items-center"],["svgIcon","mat:expand_more",1,"ml-4"],["type","button","mat-icon-button","",1,"flex-none","ltr:-mr-2","rtl:-ml-2","text-secondary"],["svgIcon","mat:settings"],[1,"flex","items-center","gap-4","px-6","py-3","border-b","border-divider"],["svgIcon","mat:badge",1,"text-secondary","flex-none"],["type","text","placeholder","Número de DNI o NIE",1,"font-medium","bg-transparent","outline-none","flex-auto","placeholder-secondary"],["svgIcon","mat:calendar_month",1,"text-secondary","flex-none"],["type","text","placeholder","Nacimiento (DD/MM/YYYY)",1,"font-medium","bg-transparent","outline-none","flex-auto","placeholder-secondary"],["svgIcon","mat:phone",1,"text-secondary","flex-none"],["type","text","placeholder","Teléfono",1,"font-medium","bg-transparent","outline-none","flex-auto","placeholder-secondary"],[1,"modal-content"],["cdkFocusInitial","","matRipple","",1,"px-2","py-3","hover:bg-hover","transition","duration-200","ease-out","flex","items-center","cursor-pointer","select-none",3,"click"],[1,"flex-auto","text-base","font-medium"],[1,"flex-none","text-md","text-secondary","font-medium","flex","items-center","gap-2"],["svgIcon","mat:chevron_right",1,"icon-sm","flex-none","mr-2","ml-2"],["xPosition","before","yPosition","below"],["flowMenu","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(c.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),c.ɵɵtext(3," Chequear si el usuario tiene flujo "),c.ɵɵelementStart(4,"button",3)(5,"span",4),c.ɵɵtext(6),c.ɵɵelement(7,"mat-icon",5),c.ɵɵelementEnd()()(),c.ɵɵelementStart(8,"button",6),c.ɵɵelement(9,"mat-icon",7),c.ɵɵelementEnd()(),c.ɵɵelementStart(10,"div",8),c.ɵɵelement(11,"mat-icon",9)(12,"input",10),c.ɵɵelementEnd(),c.ɵɵelementStart(13,"div",8),c.ɵɵelement(14,"mat-icon",11)(15,"input",12),c.ɵɵelementEnd(),c.ɵɵelementStart(16,"div",8),c.ɵɵelement(17,"mat-icon",13)(18,"input",14),c.ɵɵelementEnd(),c.ɵɵelementStart(19,"div",15)(20,"div",16),c.ɵɵlistener("click",(function(){return t.gotoSection("dfd")})),c.ɵɵelement(21,"div",17),c.ɵɵelementStart(22,"div",18)(23,"div")(24,"strong"),c.ɵɵtext(25,"Ver si tiene PIN"),c.ɵɵelementEnd()()(),c.ɵɵelement(26,"mat-icon",19),c.ɵɵelementEnd()()(),c.ɵɵelementStart(27,"mat-menu",20,21)(29,"button",22),c.ɵɵlistener("click",(function(){return t.setFlow("SMS")})),c.ɵɵelementStart(30,"span"),c.ɵɵtext(31,"SMS"),c.ɵɵelementEnd()(),c.ɵɵelementStart(32,"button",22),c.ɵɵlistener("click",(function(){return t.setFlow("PIN")})),c.ɵɵelementStart(33,"span"),c.ɵɵtext(34,"PIN"),c.ɵɵelementEnd()(),c.ɵɵelementStart(35,"button",22),c.ɵɵlistener("click",(function(){return t.setFlow("VIDEO")})),c.ɵɵelementStart(36,"span"),c.ɵɵtext(37,"VIDEO ID"),c.ɵɵelementEnd()()()),2&e){const e=c.ɵɵreference(28);c.ɵɵadvance(4),c.ɵɵproperty("matMenuTriggerFor",e),c.ɵɵadvance(2),c.ɵɵtextInterpolate1(" ",t.flow," ")}},dependencies:[i.ez,a.Ps,a.Hw,h.ot,h.lW,l.si,l.wG,f.Tx,f.VK,f.OP,f.p6],styles:[".modal-content[_ngcontent-%COMP%]{max-height:60vh;overflow-y:auto}"]}),e})(),_=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,s.g0,d,u,h.ot,a.Ps,m.Is,l.si,p,g]}),e})();var v=n(8184);let y=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,v.U8]}),e})();var b=n(3848);let x=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez]}),e})(),w=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,h.ot,a.Ps,y,b.Nh,f.Tx,x,o.Bz,l.si]}),e})();var C=n(266);let S=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,a.Ps,l.si,f.Tx,h.ot,x,o.Bz,C.AV]}),e})();var M=n(4144);let I=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,M.c,h.ot,a.Ps]}),e})(),k=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,f.Tx,a.Ps,o.Bz,l.si]}),e})(),E=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,l.si,f.Tx,a.Ps,o.Bz,k]}),e})(),T=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,h.ot,o.Bz,a.Ps]}),e})();var P=n(3798),O=n(7838);let D=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,h.ot,a.Ps,f.Tx,l.si,w,S,I,E,o.Bz,k,T,P.a,O.y]}),e})();var L=n(1948),A=n(455),N=n(2635),R=n(7314);let j=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,h.ot,a.Ps,L.Fk,A.rP,l.si,N.WG,R.KP]}),e})(),F=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez]}),e})(),q=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,r.x,_,D,j,F]}),e})()},3746:(e,t,n)=>{n.d(t,{R:()=>u});var i=n(4650),r=n(8460),s=n(9101),o=n(5412),a=n(6895);function l(e,t){1&e&&i.ɵɵelement(0,"div",4)}let c=(()=>{class e{constructor(){this.alt="",this.loaded=!1}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i.ɵɵdefineComponent({type:e,selectors:[["app-image-loader"]],inputs:{src:"src",alt:"alt"},decls:4,vars:5,consts:[[1,"img-wrapper","p-6","flex","justify-center","items-center"],["class","animated-bg h-full w-full",4,"ngIf"],[1,"img-card",3,"src","alt","load","error"],["img",""],[1,"animated-bg","h-full","w-full"]],template:function(e,t){1&e&&(i.ɵɵelementStart(0,"div",0),i.ɵɵtemplate(1,l,1,0,"div",1),i.ɵɵelementStart(2,"img",2,3),i.ɵɵlistener("load",(function(){return t.loaded=!0}))("error",(function(){return t.loaded=!0})),i.ɵɵelementEnd()()),2&e&&(i.ɵɵadvance(1),i.ɵɵproperty("ngIf",!t.loaded),i.ɵɵadvance(1),i.ɵɵclassProp("hidden",!t.loaded),i.ɵɵproperty("src",t.src,i.ɵɵsanitizeUrl)("alt",t.alt))},dependencies:[a.O5],styles:[".animated-bg[_ngcontent-%COMP%]{aspect-ratio:1/1;max-width:350px}"]}),e})();var d=n(9186);let u=(()=>{class e{constructor(e){this.customizationStoreService=e,this.funderStyles$=this.customizationStoreService.funderStyles$.subscribe((e=>{Object.keys(e).length>0&&(this.funderStyles=e)}))}}return e.ɵfac=function(t){return new(t||e)(i.ɵɵdirectiveInject(r.r))},e.ɵcmp=i.ɵɵdefineComponent({type:e,selectors:[["belender-expiration-date"]],decls:29,vars:18,consts:[[1,"mat-typography"],["id","support_number",1,"p-[1rem]","flex","flex-col","items-center"],[1,"text-3xl","mb-10"],[1,"section-document","max-w-3xl","card","p-6","mb-6"],[1,"flex","flex-col","md:flex-row"],[1,"img-wrapper","w-full"],["alt","Fecha vencimiento DNI",3,"src"],[1,"text-3xl","my-10",2,"text-align","center"],[1,"text-xl",2,"font-weight","bold"],["align","end"],["mat-flat-button","","mat-dialog-close","",1,"px-8","bg-slate-300/30"],["mat-flat-button","","type","button","cdkFocusInitial","",1,"px-8",3,"mat-dialog-close"]],template:function(e,t){1&e&&(i.ɵɵelementStart(0,"mat-dialog-content",0)(1,"div",1)(2,"h1",2),i.ɵɵtext(3,"¿Cómo saber mi fecha vencimiento?"),i.ɵɵelementEnd(),i.ɵɵelementStart(4,"div",3)(5,"div",4)(6,"div",5),i.ɵɵelement(7,"app-image-loader",6),i.ɵɵpipe(8,"assetUrl"),i.ɵɵelement(9,"br")(10,"app-image-loader",6),i.ɵɵpipe(11,"assetUrl"),i.ɵɵelementEnd()()(),i.ɵɵelementStart(12,"h1",7),i.ɵɵtext(13,"Y si mi DNI no tiene fecha de validez,"),i.ɵɵelement(14,"br"),i.ɵɵtext(15,"¿qué dato introduzco?"),i.ɵɵelementEnd(),i.ɵɵelementStart(16,"div",3)(17,"div",4)(18,"div",5)(19,"h2",8),i.ɵɵtext(20,"La fecha de expedición del DNI"),i.ɵɵelementEnd(),i.ɵɵelement(21,"br")(22,"app-image-loader",6),i.ɵɵpipe(23,"assetUrl"),i.ɵɵelementEnd()()()()(),i.ɵɵelementStart(24,"mat-dialog-actions",9)(25,"button",10),i.ɵɵtext(26,"Cerrar"),i.ɵɵelementEnd(),i.ɵɵelementStart(27,"button",11),i.ɵɵtext(28,"Aceptar"),i.ɵɵelementEnd()()),2&e&&(i.ɵɵadvance(7),i.ɵɵproperty("src",i.ɵɵpipeBind1(8,12,"img/illustrations/expiration-date-1.png")),i.ɵɵadvance(3),i.ɵɵproperty("src",i.ɵɵpipeBind1(11,14,"img/illustrations/expiration-date-2.png")),i.ɵɵadvance(12),i.ɵɵproperty("src",i.ɵɵpipeBind1(23,16,"img/illustrations/expiration-date-3.png")),i.ɵɵadvance(3),i.ɵɵstyleProp("border-radius",t.funderStyles.btnRound+"px"),i.ɵɵadvance(2),i.ɵɵstyleProp("color",t.funderStyles.colors.btnText)("background",t.funderStyles.colors.btnBg)("border-radius",t.funderStyles.btnRound+"px"),i.ɵɵproperty("mat-dialog-close",!0))},dependencies:[s.lW,o.ZT,o.xY,o.H8,c,d.z]}),e})()},7403:(e,t,n)=>{n.d(t,{N:()=>m});var i=n(5412),r=n(4650),s=n(8460),o=n(7308),a=n(6895),l=n(1572),c=n(9101);function d(e,t){1&e&&(r.ɵɵelementStart(0,"div",7)(1,"h1"),r.ɵɵtext(2,"Aviso legal"),r.ɵɵelementEnd(),r.ɵɵelementStart(3,"h2"),r.ɵɵtext(4,"1.- Derecho de la información"),r.ɵɵelementEnd(),r.ɵɵelementStart(5,"p"),r.ɵɵtext(6,"Le informamos que este sitio Web es titularidad de ALL4LEND S.L., (en adelante, “BELENDER”), con N.I.F.: B-67425769 y domicilio social en Calle del Sol 19, Sant Andreu de la Barca, 08740, Barcelona, España."),r.ɵɵelementEnd(),r.ɵɵelementStart(7,"p"),r.ɵɵtext(8,"El acceso y/o o uso del sitio web le atribuye la condición de usuario, y acepta, desde dicho acceso y/o uso, el presente Aviso Legal."),r.ɵɵelementEnd(),r.ɵɵelementStart(9,"p"),r.ɵɵtext(10),r.ɵɵelementEnd(),r.ɵɵelementStart(11,"h2"),r.ɵɵtext(12,"2.- Uso del sitio web"),r.ɵɵelementEnd(),r.ɵɵelementStart(13,"p"),r.ɵɵtext(14,"El Usuario asume la responsabilidad del uso del sitio web de BELENDER (en adelante, el “Sitio Web”). El Sitio Web puede proporcionar acceso a multitud de textos, gráficos, dibujos, diseños, fotografías, contenidos multimedia, e informaciones (en adelante, los «Contenidos») pertenecientes a BELENDER o a terceros a los que el Usuario puede tener acceso."),r.ɵɵelementEnd(),r.ɵɵelementStart(15,"p"),r.ɵɵtext(16,"El Usuario se compromete a hacer un uso adecuado de los Contenidos y Servicios ofrecidos a través del Sitio Web y con carácter enunciativo, pero no limitativo, a no emplearlos para:"),r.ɵɵelementEnd(),r.ɵɵelementStart(17,"ul")(18,"li"),r.ɵɵtext(19,"Incurrir en actividades ilícitas, ilegales o contrarias a la buena fe y al orden público."),r.ɵɵelementEnd(),r.ɵɵelementStart(20,"li"),r.ɵɵtext(21,"Provocar daños en los sistemas físicos y lógicos del Sitio Web de BELENDER, de sus proveedores o de terceras personas."),r.ɵɵelementEnd(),r.ɵɵelementStart(22,"li"),r.ɵɵtext(23,"Introducir o difundir en la red virus informáticos o cualesquiera otros sistemas físicos o lógicos que sean susceptibles de provocar los daños anteriormente mencionados."),r.ɵɵelementEnd(),r.ɵɵelementStart(24,"li"),r.ɵɵtext(25,"Intentar acceder, utilizar y/o manipular los datos de BELENDER terceros proveedores y otros usuarios."),r.ɵɵelementEnd(),r.ɵɵelementStart(26,"li"),r.ɵɵtext(27,"Reproducir o copiar, distribuir, permitir el acceso del público a través de cualquier modalidad de comunicación pública, transformar o modificar los Contenidos, a menos que se cuente con la autorización de BELENDER."),r.ɵɵelementEnd(),r.ɵɵelementStart(28,"li"),r.ɵɵtext(29,"Suprimir, ocultar o manipular los Contenidos sujetos a derechos de propiedad intelectual o industrial y demás datos identificativos de dichos derechos de BELENDER o de terceros incorporados a los Contenidos, así como los dispositivos técnicos de protección o cualesquiera mecanismos de información que puedan insertarse en los Contenidos."),r.ɵɵelementEnd()(),r.ɵɵelementStart(30,"p"),r.ɵɵtext(31,"BELENDER advierte de que los materiales contenidos en este sitio web han sido incluidos a mero título informativo, por lo que resultan insuficientes para tomar decisiones o asumir posiciones en un caso concreto."),r.ɵɵelementEnd(),r.ɵɵelementStart(32,"p"),r.ɵɵtext(33,"El Usuario debe tener en cuenta que los materiales contenidos en este sitio web pudieran no reflejar el estado legislativo o jurisprudencial más reciente sobre las cuestiones analizadas. Asimismo, estos materiales pueden ser modificados, desarrollados o actualizados sin notificación previa."),r.ɵɵelementEnd(),r.ɵɵelementStart(34,"p"),r.ɵɵtext(35,"BELENDER tendrá derecho a investigar y denunciar cualquiera de las conductas mencionadas de acuerdo con la Ley, así como a colaborar con las autoridades en la investigación de dichas actuaciones."),r.ɵɵelementEnd(),r.ɵɵelementStart(36,"p"),r.ɵɵtext(37,"BELENDER podrá suspender temporalmente y sin previo aviso, la accesibilidad al Sitio Web con motivo de operaciones de mantenimiento, reparación, actualización o mejora. No obstante, siempre que las circunstancias lo permitan, BELENDER comunicará al Usuario, con antelación suficiente, la fecha prevista para la suspensión de los Servicios. BELENDER no se responsabiliza del uso que los Usuarios puedan hacer de los Contenidos incluidos en el Sitio Web."),r.ɵɵelementEnd(),r.ɵɵelementStart(38,"h2"),r.ɵɵtext(39,"3.- Propiedad Intelectual e Industrial"),r.ɵɵelementEnd(),r.ɵɵelementStart(40,"p"),r.ɵɵtext(41,"Todos los derechos de propiedad intelectual del Contenido del Sitio Web y su diseño gráfico son propiedad exclusiva de BELENDER, o bien de un tercero que ha autorizado la utilización de estos, por lo que es a BELENDER a quien le corresponde el ejercicio exclusivo de los derechos de explotación de estos. Por ello y en virtud de lo dispuesto en la legislación aplicable en materia de Derechos de Propiedad Intelectual e Industrial."),r.ɵɵelementEnd(),r.ɵɵelementStart(42,"p"),r.ɵɵtext(43,"BELENDER no concede ninguna licencia o autorización de uso de ninguna clase sobre sus derechos de propiedad intelectual e industrial o sobre cualquier otra propiedad o derecho relacionado con el Sitio Web, los Servicios o los Contenidos de este."),r.ɵɵelementEnd(),r.ɵɵelementStart(44,"p"),r.ɵɵtext(45,"Se permite la reproducción y almacenamiento temporal de los contenidos del Sitio Web en tanto ello sea estrictamente necesario para el uso y visualización del Sitio Web desde un dispositivo personal."),r.ɵɵelementEnd(),r.ɵɵelementStart(46,"p"),r.ɵɵtext(47,"La legitimidad de los derechos de propiedad intelectual o industrial correspondientes a los Contenidos aportados por los usuarios es responsabilidad exclusiva de los mismos, por lo que el Usuario mantendrá indemne a BELENDER de cualquier reclamación de terceros derivada de la utilización ilícita de Contenidos en el Sitio Web."),r.ɵɵelementEnd(),r.ɵɵelementStart(48,"h2"),r.ɵɵtext(49,"4.- Responsabilidad y Garantías"),r.ɵɵelementEnd(),r.ɵɵelementStart(50,"p"),r.ɵɵtext(51,"BELENDER declara que ha adoptado las medidas necesarias que, dentro de sus posibilidades y el estado de la tecnología, permitan el correcto funcionamiento de su Sitio Web, así como la ausencia de virus y componentes dañinos. Sin embargo, BELENDER no puede hacerse responsable de:"),r.ɵɵelementEnd(),r.ɵɵelementStart(52,"ul")(53,"li"),r.ɵɵtext(54,"La continuidad y disponibilidad de los Contenidos y Servicios."),r.ɵɵelementEnd(),r.ɵɵelementStart(55,"li"),r.ɵɵtext(56,"La ausencia de errores en dichos Contenidos ni la corrección de cualquier defecto que pudiera ocurrir."),r.ɵɵelementEnd(),r.ɵɵelementStart(57,"li"),r.ɵɵtext(58,"La ausencia de virus y/o demás componentes dañinos."),r.ɵɵelementEnd(),r.ɵɵelementStart(59,"li"),r.ɵɵtext(60,"Los daños o perjuicios que cause cualquier persona que vulnere los sistemas de seguridad de BELENDER."),r.ɵɵelementEnd(),r.ɵɵelementStart(61,"li"),r.ɵɵtext(62,"Las aportaciones que se pueden encontrar en estas páginas se han realizado únicamente a título informativo. BELENDER no garantiza la integridad, exactitud y actualidad de sus contenidos."),r.ɵɵelementEnd()(),r.ɵɵelementStart(63,"p"),r.ɵɵtext(64,"BELENDER no asume ninguna responsabilidad sobre los enlaces a otras páginas web que se encuentren en el Sitio Web pudiendo dirigir al Usuario a otros sitios web sobre los que BELENDER no tiene ningún tipo de control, por lo que la inclusión de vínculos a otros sitios web no implica la aprobación de sus contenidos por parte de BELENDER ni la existencia de ningún tipo de asociación entre BELENDER y sus titulares. Por ello el Usuario accede bajo su exclusiva responsabilidad al Contenido y en las condiciones de uso que rijan en los mismos."),r.ɵɵelementEnd(),r.ɵɵelementStart(65,"h2"),r.ɵɵtext(66,"5.- Duración y modificación"),r.ɵɵelementEnd(),r.ɵɵelementStart(67,"p"),r.ɵɵtext(68,"El presente Aviso Legal estará vigente con carácter indefinido, pudiendo BELENDER efectuar cambios sobre las condiciones especificadas en el mismo, y que entrarán en vigor desde el momento de su publicación."),r.ɵɵelementEnd(),r.ɵɵelementStart(69,"p"),r.ɵɵtext(70,"BELENDER podrá suprimir, añadir o cambiar tanto los Contenidos como los Servicios que presta, así como también la forma en la que los mismos aparezcan localizados o presentados. Se entienden como vigentes, las condiciones que estén publicadas en el momento en el que el Usuario acceda al Sitio Web de BELENDER."),r.ɵɵelementEnd(),r.ɵɵelementStart(71,"p"),r.ɵɵtext(72,"El acceso y/o el uso del Sitio Web se entenderán como una aceptación por parte del Usuario del presente Aviso Legal y sus condiciones y, en su caso, los cambios efectuados en las mismas."),r.ɵɵelementEnd()()),2&e&&(r.ɵɵadvance(10),r.ɵɵtextInterpolate1("El usuario (en adelante, el “Usuario”) puede ponerse en contacto con BELENDER a través de la siguiente dirección de correo electrónico: ","dpo@belender.eu",""))}function u(e,t){if(1&e&&(r.ɵɵelementContainerStart(0),r.ɵɵelement(1,"div",8),r.ɵɵelementContainerEnd()),2&e){const e=r.ɵɵnextContext(2);r.ɵɵadvance(1),r.ɵɵproperty("innerHTML",e.legal,r.ɵɵsanitizeHtml)}}function h(e,t){1&e&&(r.ɵɵelementStart(0,"div",9),r.ɵɵelement(1,"mat-progress-spinner",10),r.ɵɵelementEnd())}function p(e,t){if(1&e&&(r.ɵɵelementContainerStart(0),r.ɵɵelementStart(1,"mat-dialog-content",1)(2,"div",2),r.ɵɵtemplate(3,d,73,1,"div",3),r.ɵɵtemplate(4,u,2,1,"ng-container",0),r.ɵɵtemplate(5,h,2,0,"div",4),r.ɵɵelementEnd()(),r.ɵɵelementStart(6,"mat-dialog-actions",5)(7,"button",6),r.ɵɵtext(8),r.ɵɵelementEnd()(),r.ɵɵelementContainerEnd()),2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(3),r.ɵɵproperty("ngIf",!e.legal&&!e.loading),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",e.legal&&!e.loading),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",e.loading),r.ɵɵadvance(2),r.ɵɵstyleProp("border-radius",e.funderStyles.btnRound+"px"),r.ɵɵadvance(1),r.ɵɵtextInterpolate1(" ",e.data&&e.data.lang&&e.closeLabel[e.data.lang]?e.closeLabel[e.data.lang]:"Cerrar"," ")}}let m=(()=>{class e{constructor(e,t,n){this.customizationStoreService=e,this.translationService=t,this.data=n,this.loading=!1,this.closeLabel={es:"Cerrar",en:"Close",it:"Vicino",fr:"Fermer",ca:"Tancar",de:"schließen",pt:"Fechar"}}ngOnInit(){console.warn(this.data.allData),this.customizationStoreService.getFunderStyles().subscribe((e=>{e&&Object.keys(e).length>0&&(this.funderStyles=e)})),this.customizationStoreService.getFunderConfig().subscribe((e=>{e&&Object.keys(e).length>0&&(this.funderConfig=e,this.setCustomization(this.funderConfig))}))}setCustomization(e){this.data&&this.data.flow&&this.data.allData&&this.data.allData[this.data.flow]&&this.data.allData[this.data.flow].texts&&this.data.allData[this.data.flow].texts.policy?this.legal=this.data.allData[this.data.flow].texts.policy:e&&e.policy&&(this.legal=e.policy),this.loading=!1}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵdirectiveInject(s.r),r.ɵɵdirectiveInject(o.D),r.ɵɵdirectiveInject(i.WI))},e.ɵcmp=r.ɵɵdefineComponent({type:e,selectors:[["vex-legal"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"mat-typography"],[1,"p-[1rem]","flex","flex-col","items-center"],["class","w-full max-w-xl",4,"ngIf"],["class","w-full px-8 py-16 flex justify-center items-center",4,"ngIf"],["align","end"],["mat-flat-button","","mat-dialog-close","",1,"px-8","bg-slate-300/30"],[1,"w-full","max-w-xl"],[1,"w-full","max-w-xl","policy-page",3,"innerHTML"],[1,"w-full","px-8","py-16","flex","justify-center","items-center"],["color","accent","diameter","40","value","0","mode","indeterminate",1,"spinner"]],template:function(e,t){1&e&&r.ɵɵtemplate(0,p,9,6,"ng-container",0),2&e&&r.ɵɵproperty("ngIf",t.funderStyles)},dependencies:[a.O5,l.Ou,c.lW,i.ZT,i.xY,i.H8],styles:["h1[_ngcontent-%COMP%]{font-size:30px}h2[_ngcontent-%COMP%]{font-size:20px!important;margin-bottom:15px;margin-top:40px}ul[_ngcontent-%COMP%]{padding-left:20px;list-style:disc}p[_ngcontent-%COMP%]{margin:5px 0}"]}),e})()},3755:(e,t,n)=>{n.d(t,{$:()=>d});var i=n(4650),r=n(8460),s=n(9101),o=n(5412),a=n(9186);function l(e,t){if(1&e&&(i.ɵɵelementStart(0,"button",13),i.ɵɵtext(1,"Cancelar"),i.ɵɵelementEnd()),2&e){const e=i.ɵɵnextContext();i.ɵɵstyleProp("border-radius",e.funderStyles.btnRound+"px")}}function c(e,t){if(1&e&&(i.ɵɵelementStart(0,"button",14),i.ɵɵtext(1,"Aceptar"),i.ɵɵelementEnd()),2&e){const e=i.ɵɵnextContext();i.ɵɵstyleProp("color",e.funderStyles.colors.btnText)("background",e.funderStyles.colors.btnBg)("border-radius",e.funderStyles.btnRound+"px"),i.ɵɵproperty("mat-dialog-close",!0)}}let d=(()=>{class e{constructor(e){this.customizationStoreService=e,this.loading=!0,this.customizationStoreService.getFunderStyles().subscribe((e=>{Object.keys(e).length>0&&(this.funderStyles=e)})),this.customizationStoreService.getFunderConfig().subscribe((e=>{Object.keys(e).length>0&&(this.funderConfig=e,this.setCustomization(this.funderConfig))}))}setCustomization(e){this.loading=!0,this.terms_and_conditions=e.texts_terms_and_conditions,this.loading=!1}}return e.ɵfac=function(t){return new(t||e)(i.ɵɵdirectiveInject(r.r))},e.ɵcmp=i.ɵɵdefineComponent({type:e,selectors:[["vex-support-number"]],decls:36,vars:14,consts:[[1,"mat-typography"],["id","support_number",1,"p-[1rem]","flex","flex-col","items-center"],[1,"text-3xl","mb-10"],[1,"section-document","max-w-3xl","card","p-6","mb-6"],[1,"flex","flex-col","md:flex-row"],[1,"img-wrapper","w-full","md:w-2/3"],["alt","Tarjeta de extranjero",3,"src"],[1,"text","p-1","w-full","md:w-1/3"],["alt","Permiso de residencia",3,"src"],["alt","Certificado Ciudadano UE",3,"src"],["align","end"],["class","px-8 bg-slate-300/30","mat-flat-button","","mat-dialog-close","",3,"border-radius",4,"ngIf"],["class","px-8","mat-flat-button","","type","button","cdkFocusInitial","",3,"color","background","border-radius","mat-dialog-close",4,"ngIf"],["mat-flat-button","","mat-dialog-close","",1,"px-8","bg-slate-300/30"],["mat-flat-button","","type","button","cdkFocusInitial","",1,"px-8",3,"mat-dialog-close"]],template:function(e,t){1&e&&(i.ɵɵelementStart(0,"mat-dialog-content",0)(1,"div",1)(2,"h1",2),i.ɵɵtext(3,"¿Cómo saber mi número de soporte?"),i.ɵɵelementEnd(),i.ɵɵelementStart(4,"div",3)(5,"h2"),i.ɵɵtext(6,"Tarjeta de extranjero"),i.ɵɵelementEnd(),i.ɵɵelementStart(7,"div",4)(8,"div",5),i.ɵɵelement(9,"img",6),i.ɵɵpipe(10,"assetUrl"),i.ɵɵelementEnd(),i.ɵɵelementStart(11,"div",7),i.ɵɵtext(12," 9 caracteres: una letra E seguida de 8 caracteres numéricos. En el caso de que el número de soporte que figura en su tarjeta tenga menos de 8 caracteres numéricos, ha de introducir tantos ceros como caracteres numéricos falten a continuación de la letra E. "),i.ɵɵelementEnd()()(),i.ɵɵelementStart(13,"div",3)(14,"h2"),i.ɵɵtext(15,"Permiso de residencia"),i.ɵɵelementEnd(),i.ɵɵelementStart(16,"div",4)(17,"div",5),i.ɵɵelement(18,"img",8),i.ɵɵpipe(19,"assetUrl"),i.ɵɵelementEnd(),i.ɵɵelementStart(20,"div",7),i.ɵɵtext(21," 9 caracteres: una letra E seguida de 8 caracteres numéricos. En el caso de que el número de soporte que figura en su tarjeta tenga menos de 8 caracteres numéricos, ha de introducir tantos ceros como caracteres numéricos falten a continuación de la letra E. "),i.ɵɵelementEnd()()(),i.ɵɵelementStart(22,"div",3)(23,"h2"),i.ɵɵtext(24,"Certificado Ciudadano UE"),i.ɵɵelementEnd(),i.ɵɵelementStart(25,"div",4)(26,"div",5),i.ɵɵelement(27,"img",9),i.ɵɵpipe(28,"assetUrl"),i.ɵɵelement(29,"img",9),i.ɵɵpipe(30,"assetUrl"),i.ɵɵelementEnd(),i.ɵɵelementStart(31,"div",7),i.ɵɵtext(32," El número de soporte a introducir ha de tener una longitud de 9 posiciones: una letra C seguida de 8 caracteres numéricos. En el caso de que el número de soporte que figura en tu certificado tenga menos de 8 caracteres numéricos, hay que introducir tantos ceros como caracteres numéricos falten a continuación de la letra C. "),i.ɵɵelementEnd()()()()(),i.ɵɵelementStart(33,"mat-dialog-actions",10),i.ɵɵtemplate(34,l,2,2,"button",11),i.ɵɵtemplate(35,c,2,7,"button",12),i.ɵɵelementEnd()),2&e&&(i.ɵɵadvance(9),i.ɵɵproperty("src",i.ɵɵpipeBind1(10,6,"img/illustrations/extranjeros.png"),i.ɵɵsanitizeUrl),i.ɵɵadvance(9),i.ɵɵproperty("src",i.ɵɵpipeBind1(19,8,"img/illustrations/residencia.png"),i.ɵɵsanitizeUrl),i.ɵɵadvance(9),i.ɵɵproperty("src",i.ɵɵpipeBind1(28,10,"img/illustrations/ciudadano.png"),i.ɵɵsanitizeUrl),i.ɵɵadvance(2),i.ɵɵproperty("src",i.ɵɵpipeBind1(30,12,"img/illustrations/ciudadano2.png"),i.ɵɵsanitizeUrl),i.ɵɵadvance(5),i.ɵɵproperty("ngIf",t.funderStyles),i.ɵɵadvance(1),i.ɵɵproperty("ngIf",t.funderStyles))},dependencies:[s.lW,o.ZT,o.xY,o.H8,a.z],styles:["h2[_ngcontent-%COMP%]{font-size:20px!important}"]}),e})()},1363:(e,t,n)=>{n.d(t,{v:()=>d});var i=n(5412),r=n(4650),s=n(7367),o=n(8460),a=n(6895),l=n(9101);function c(e,t){if(1&e&&(r.ɵɵelementContainerStart(0),r.ɵɵelementStart(1,"button",7),r.ɵɵtext(2,"Cancelar"),r.ɵɵelementEnd(),r.ɵɵelementStart(3,"button",8),r.ɵɵtext(4,"Aceptar"),r.ɵɵelementEnd(),r.ɵɵelementContainerEnd()),2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(1),r.ɵɵstyleProp("border-radius",e.funderStyles.btnRound+"px"),r.ɵɵadvance(2),r.ɵɵstyleProp("color",e.funderStyles.colors.btnText)("background",e.funderStyles.colors.btnBg)("border-radius",e.funderStyles.btnRound+"px"),r.ɵɵproperty("mat-dialog-close",!0)}}let d=(()=>{class e{constructor(e,t,n){this.customizationService=e,this.customizationStoreService=t,this.data=n,this.loading=!0,this.customizationStoreService.getFunderConfig().subscribe((e=>{Object.keys(e).length>0&&(this.funderConfig=e)})),this.customizationStoreService.getFunderStyles().subscribe((e=>{Object.keys(e).length>0&&(this.funderStyles=e)})),this.customizationStoreService.getUserID().subscribe((e=>{this.customizationService.getCustomizationByFlow(e,this.getParsedFlowName(this.data.flow)).then((e=>{this.flowConfig=e,this.setCustomization()}))}))}setCustomization(){this.loading=!0,this.terms_and_conditions=this.flowConfig&&this.flowConfig.terms_and_conditions?this.flowConfig.terms_and_conditions:'\n <div class="px-10 py-6 rounded-md text-center bg-orange-500/20 text-orange-600">\n <p>No hay términos y condiciones para este flujo </p> \n </div>',this.loading=!1}getParsedFlowName(e){switch(e){case"sms":case"Sms":return"SMS";case"clavepin":case"ClavePin":case"CLAVEPIN":return"ClavePin";case"videoid":return"VideoID";case"personal":case"presencial":case"client-cert":return"KnownClient";default:return e}}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵdirectiveInject(s.w),r.ɵɵdirectiveInject(o.r),r.ɵɵdirectiveInject(i.WI))},e.ɵcmp=r.ɵɵdefineComponent({type:e,selectors:[["vex-terms-cert"]],decls:35,vars:1,consts:[[1,"mat-typography"],[1,"p-[1rem]","flex","flex-col","items-center"],[1,"w-full","max-w-xl"],[1,"text-2xl","font-bold"],[1,"pt-3","font-bold","text-2xl"],["align","end"],[4,"ngIf"],["mat-flat-button","","mat-dialog-close","",1,"px-8","bg-slate-300/30"],["mat-flat-button","","type","button","cdkFocusInitial","",1,"px-8",3,"mat-dialog-close"]],template:function(e,t){1&e&&(r.ɵɵelementStart(0,"mat-dialog-content",0)(1,"div",1)(2,"div",2)(3,"h1",3),r.ɵɵtext(4,"HOJA DE ACEPTACIÓN DE CERTIFICADO ELECTRONICO CUALIFICADO RÉGIMEN OBLIGATORIO DE USO DEL CERTIFICADO ELECTRONICO: “CERTIFICADO DE PERSONA FÍSICA REPRESENTANTE DE EMPRESA EMITIDO EN SOFTWARE”"),r.ɵɵelementEnd(),r.ɵɵelementStart(5,"p"),r.ɵɵtext(6," a) Que existen unas condiciones generales del servicio incorporadas en el texto de divulgación del certificado o PDS, y una declaración de prácticas de certificación, que regulan la emisión y utilización del certificado electrónico emitido porvinCAsign, cuyo texto íntegro se puede consultar en la dirección de Internet, https://policy.vincasign.net. "),r.ɵɵelementEnd(),r.ɵɵelementStart(7,"p"),r.ɵɵtext(8," b) Que el certificado electrónico emitido y el resto de los elementos que forman parte de la identificación electrónica son únicos para cada usuario. El certificado debe ser protegido por un código secreto (PIN), que sólo conoce el titular y que le será entregado en el momento de la emisión del certificado. Para utilizar el certificado es imprescindible conocer este código. "),r.ɵɵelementEnd(),r.ɵɵelementStart(9,"p"),r.ɵɵtext(10," c) Que este certificado permite al titular del certificado generar firmas electrónicas e identificarse de forma electrónica en aquellos sistemas de información que soporten este tipo de autenticación. "),r.ɵɵelementEnd(),r.ɵɵelementStart(11,"p"),r.ɵɵtext(12," d) Que el FIRMANTE debe custodiar, de forma diligente, el PIN que permite utilizarlo, para evitar que otras personas puedan suplantar su identidad y firmar documentos en su nombre, o acceder a mensajes confidenciales o sistemas de información de acceso restringido. "),r.ɵɵelementEnd(),r.ɵɵelementStart(13,"p"),r.ɵɵtext(14," e) Que, si el FIRMANTE detecta cualquier indicio de que su identificación electrónica ha podido ser utilizada por otras personas, tendrá que suspender el uso del certificado y notificarlo inmediatamente al responsable del servicio de certificación del SUSCRIPTOR, o a vinCAsign, para pedir la revocación del certificado y, en su caso, la emisión de uno nuevo. "),r.ɵɵelementEnd(),r.ɵɵelementStart(15,"p"),r.ɵɵtext(16," f) Que ante cualquier necesidad de información adicional, respecto de la utilización de los certificados emitidos en nombre de vinCAsign, el FIRMANTE se podrá dirigir al SUSCRIPTOR, al responsable del servicio de certificación del SUSCRIPTOR, y/o a VINTEGRIS. "),r.ɵɵelementEnd(),r.ɵɵelementStart(17,"p"),r.ɵɵtext(18," g) Que con el fin de obtener los correspondientes certificados, y dentro del marco del Reglamento (UE) 2016/679 del Parlamento Europeo y del Consejo de 27 de abril de 2016 relativo a la protección de las personas físicas en lo que respecta al tratamiento de datos personales y a la libre circulación de estos datos y por el que se deroga la Directiva 95/46/CE (Reglamento general de protección de datos), el SUSCRIPTOR ha comunicado a vinCAsign los datos identificativos del FIRMANTE con el fin de emitir y gestionar el certificado corporativo de persona física emitido en software, en el ámbito de la relación de trabajo entre dicho FIRMANTE y el SUSCRIPTOR, todo ello a los efectos de lo previsto en el artículo 28 del Reglamento general de protección de datos. "),r.ɵɵelementEnd(),r.ɵɵelementStart(19,"p"),r.ɵɵtext(20," h) Que sabe que, en cumplimiento de lo establecido en los artículos 24.2 y 28 del Reglamento (UE) 910/2014 del Parlamento Europeo y del Consejo de 23 de julio de 2014, los datos contenidos en el certificado corporativo de persona física emitido en software están publicados en la página web de vinCAsign a efectos del Registro de Certificados y de las listas de revocación, toda vez que ha prestado su consentimiento durante el proceso de solicitud. "),r.ɵɵelementEnd(),r.ɵɵelementStart(21,"h1",4),r.ɵɵtext(22," ACTO DE ACEPTACIÓN DEL CERTIFICADO ELECTRÓNICO "),r.ɵɵelementEnd(),r.ɵɵelementStart(23,"p"),r.ɵɵtext(24," Firmo el presente documento para dejar constancia: "),r.ɵɵelementEnd(),r.ɵɵelementStart(25,"p"),r.ɵɵtext(26," Que ha sido informado del contenido del texto de divulgación del certificado o PDS, en el que se incluyen las condiciones generales del servicio aplicable al certificado corporativo de persona física emitido en software. "),r.ɵɵelementEnd(),r.ɵɵelementStart(27,"p"),r.ɵɵtext(28," Que ha sido informado del régimen obligatorio de uso del certificado emitido, sus condiciones de uso y sus responsabilidades. "),r.ɵɵelementEnd(),r.ɵɵelementStart(29,"p"),r.ɵɵtext(30," Que ha sido informado de las circunstancias relativas al tratamiento de sus datos personales para la correcta emisión y gestión del certificado que se emite. "),r.ɵɵelementEnd(),r.ɵɵelementStart(31,"p"),r.ɵɵtext(32," Firma de conformidad, en virtud de la cual ha leído y entiende las obligaciones y responsabilidades que asume. "),r.ɵɵelementEnd()()()(),r.ɵɵelementStart(33,"mat-dialog-actions",5),r.ɵɵtemplate(34,c,5,9,"ng-container",6),r.ɵɵelementEnd()),2&e&&(r.ɵɵadvance(34),r.ɵɵproperty("ngIf",t.funderStyles))},dependencies:[a.O5,l.lW,i.ZT,i.xY,i.H8],styles:["h1[_ngcontent-%COMP%]{font-size:20px!important;font-weight:700}h2[_ngcontent-%COMP%]{font-size:20px!important;font-weight:700;line-height:25px;margin:15px 0}p[_ngcontent-%COMP%]{margin:10px 0}.terms-page[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;background:white;z-index:9999999!important;height:100vh;max-height:100vh}"]}),e})()},1258:(e,t,n)=>{n.d(t,{H:()=>_});var i=n(9299),r=n(1363),s=n(6e3),o=n(4650);const a=[{path:":flow",component:r.v},{path:":flow/:idUser",component:r.v}];let l=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[i.Bz.forChild(a),i.Bz,s.d8]}),e})();var c=n(7533),d=n(1572),u=n(7367),h=n(6383),p=n(6895),m=n(4006),f=n(9101),g=n(5028);let _=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({providers:[u.w],imports:[l,c.q,d.Cq,h.G,p.ez,m.FormsModule,f.ot,g.q]}),e})()},6830:(e,t,n)=>{n.d(t,{L:()=>m});var i=n(5412),r=n(4650),s=n(7367),o=n(7308),a=n(8460),l=n(1572),c=n(6895),d=n(9101);function u(e,t){1&e&&(r.ɵɵelementStart(0,"div",7),r.ɵɵelement(1,"mat-progress-spinner",8),r.ɵɵelementEnd())}function h(e,t){if(1&e&&r.ɵɵelement(0,"div",9),2&e){const e=r.ɵɵnextContext();r.ɵɵproperty("innerHTML",e.texts.terms_and_conditions,r.ɵɵsanitizeHtml)}}function p(e,t){if(1&e&&(r.ɵɵelementContainerStart(0),r.ɵɵelementStart(1,"button",10),r.ɵɵtext(2),r.ɵɵelementEnd(),r.ɵɵelementStart(3,"button",11),r.ɵɵtext(4),r.ɵɵelementEnd(),r.ɵɵelementContainerEnd()),2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(1),r.ɵɵstyleProp("border-radius",e.funderStyles.btnRound+"px"),r.ɵɵadvance(1),r.ɵɵtextInterpolate(e.texts.cancel),r.ɵɵadvance(1),r.ɵɵstyleProp("color",null==e.funderStyles.colors?null:e.funderStyles.colors.btnText)("background",null==e.funderStyles.colors?null:e.funderStyles.colors.btnBg)("border-radius",e.funderStyles.btnRound+"px"),r.ɵɵproperty("mat-dialog-close",!0),r.ɵɵadvance(1),r.ɵɵtextInterpolate(e.texts.accept)}}let m=(()=>{class e{constructor(e,t,n,i){this.customizationService=e,this.translationService=t,this.customizationStoreService=n,this.data=i,this.loading=!0,this.texts={terms_and_conditions:"",cancel:"Cancelar",accept:"Aceptar"},this.buttonsText={it:{cancel:"Anulla",accept:"Accetta"},pt:{cancel:"Cancelar",accept:"Aceitar"},ca:{cancel:"Cancel·lar",accept:"Acceptar"},en:{cancel:"Cancel",accept:"Accept"},de:{cancel:"Abbrechen",accept:"Akzeptieren"},fr:{cancel:"Annuler",accept:"Accepter"}},this.customizationStoreService.getFunderStyles().subscribe((e=>{Object.keys(e).length>0&&(this.funderStyles=e)})),this.customizationStoreService.getFunderConfig().subscribe((e=>{Object.keys(e).length>0&&(this.funderConfig=e)})),this.data&&this.data.allData?(this.funderConfig=this.data.allData.config,this.funderStyles=this.data.allData.styles,this.flowConfig=this.data.allData[this.data.flow],console.error(this.flowConfig),this.setCustomization()):(this.loading=!0,this.customizationStoreService.getUserID().subscribe((e=>{this.customizationService.getCustomizationByFlow(e,this.getParsedFlowName(this.data.flow)).then((e=>{this.flowConfig=e.data,this.setCustomization()})).catch((e=>{this.loading=!1}))}),(e=>{this.loading=!1})))}parseButtons(e){this.buttonsText[e]&&(this.texts.accept=this.buttonsText[e].accept,this.texts.cancel=this.buttonsText[e].cancel)}setCustomization(){this.texts.terms_and_conditions=this.flowConfig&&this.flowConfig.texts&&this.flowConfig.texts.terms_and_conditions?this.flowConfig.texts.terms_and_conditions:this.flowConfig&&this.flowConfig.terms_and_conditions?this.flowConfig.terms_and_conditions:'\n <div class="px-10 py-6 rounded-md text-center bg-orange-500/20 text-orange-600">\n <p>No hay términos y condiciones para este flujo </p> \n </div>',this.data.lang&&this.parseButtons(this.data.lang),this.loading=!1}getParsedFlowName(e){switch(e){case"sms":case"Sms":return"SMS";case"clavepin":case"ClavePin":case"CLAVEPIN":return"ClavePin";case"videoid":return"VideoID";case"personal":case"presencial":case"client-cert":return"KnownClient";case"certificate":return"ClientCertificate";default:return e}}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵdirectiveInject(s.w),r.ɵɵdirectiveInject(o.D),r.ɵɵdirectiveInject(a.r),r.ɵɵdirectiveInject(i.WI))},e.ɵcmp=r.ɵɵdefineComponent({type:e,selectors:[["vex-terms"]],decls:7,vars:3,consts:[[1,"mat-typography"],["id","terms_and_conditions",1,"p-[1rem]","flex","flex-col","items-center"],[1,"w-full","max-w-xl"],["class","flex flex-col p-10 gap-2 items-center",4,"ngIf"],["class","max-w-xl overflow-y-auto",3,"innerHTML",4,"ngIf"],["align","end"],[4,"ngIf"],[1,"flex","flex-col","p-10","gap-2","items-center"],["diameter","30","mode","indeterminate","color","primary"],[1,"max-w-xl","overflow-y-auto",3,"innerHTML"],["mat-flat-button","","mat-dialog-close","",1,"px-8","bg-slate-300/30"],["mat-flat-button","","type","button","cdkFocusInitial","",1,"px-8",3,"mat-dialog-close"]],template:function(e,t){1&e&&(r.ɵɵelementStart(0,"mat-dialog-content",0)(1,"div",1)(2,"div",2),r.ɵɵtemplate(3,u,2,0,"div",3),r.ɵɵtemplate(4,h,1,1,"div",4),r.ɵɵelementEnd()()(),r.ɵɵelementStart(5,"mat-dialog-actions",5),r.ɵɵtemplate(6,p,5,11,"ng-container",6),r.ɵɵelementEnd()),2&e&&(r.ɵɵadvance(3),r.ɵɵproperty("ngIf",t.loading),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",!t.loading),r.ɵɵadvance(2),r.ɵɵproperty("ngIf",t.funderStyles&&!t.loading))},dependencies:[l.Ou,c.O5,d.lW,i.ZT,i.xY,i.H8],styles:["#terms_and_conditions[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:30px!important;font-weight:700}#terms_and_conditions[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:20px!important;font-weight:700;line-height:25px;margin:15px 0}#terms_and_conditions[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:10px 0}.terms-page[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;background:white;z-index:9999999!important;height:100vh;max-height:100vh}"]}),e})()},3295:(e,t,n)=>{n.d(t,{g:()=>_});var i=n(9299),r=n(6830),s=n(6e3),o=n(4650);const a=[{path:":flow",component:r.L},{path:":flow/:idUser",component:r.L}];let l=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[i.Bz.forChild(a),i.Bz,s.d8]}),e})();var c=n(7533),d=n(1572),u=n(7367),h=n(6383),p=n(6895),m=n(4006),f=n(9101),g=n(5028);let _=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({providers:[u.w],imports:[l,c.q,d.Cq,h.G,p.ez,m.FormsModule,f.ot,d.Cq,g.q]}),e})()},1931:(e,t,n)=>{n.d(t,{S:()=>i});const i={es:{nie:"NIE",dni:"DNI",nieOrDni:"DNI o NIE",birthday:"Fecha de nacimiento",expiration:"Fecha de vencimiento del DNI",support:"Código de soporte",phone:"Teléfono",email:"Email",inputEmail:"Ingresa tu email",findExpiration:"¿Dónde la encuentro?",send:"Enviar",unknownState:"Estado desconocido",manual:"Ingresar manualmente",warnings:{error:"Error!",invalidDni:"Debes ingresar un DNI válido!",invalidNie:"Debes ingresar un NIE válido!",invalidNieOrDni:"Debes ingresar un DNI o NIE válido!",errorSomeData:"Error en algunos datos",noPinService:"Sin servicio Clave PIN",noCustomization:"No se ha configurado la customización del widget para este usuario",ocassionalError:"Estamos detectando errores ocasionales, si no puede completar su solicitud, inténtelo más tarde",wrongDni:"Número de documento incorrecto",wrongDniDesc:"El número de documento ingresado es incorrecto, por favor ingrese otro",wrongDate:"Fecha incorrecta",wrongDateDesc:"La fecha de nacimiento es incorrecta. Revísalo, por favor",wrongSupport:"Número de soporte inválido!",inputSupport:"Por favor, introduce el código de soporte",unknownError:"Error desconocido: ",noSms:"Sin servicio SMS",noSmsDesc:"El usuario no tiene servicio de SMS, vamos a intentar ingresar por flujo Clave Pin, por favor, rellene los campos necesarios",noOtp:"Todavía no has recibido el OTP. Inténtalo de nuevo cuando lo recibas",wrongOtp:"Código inválido. Por favor, introduzca el código recibido por SMS",haveToReadTerms:"Debes leer los términos y condiciones para poder continuar",phoneError:"Error con el teléfono",dontHavePhone:"No tengo otro teléfono",badPhoneSS:"El teléfono ingresado no coincide con registrado en la Seguridad Social, por favor ingrese otro",wrongBirthday:"Fecha de nacimiento incorrecta",inputBirthDay:"Por favor, introduce la fecha de nacimiento",wrongExpiration:"Fecha de vencimiento incorrecta",inputExpiration:"Por favor, introduce la fecha de vencimiento del documento",duplicatedRequest:"Solicitud duplicada!",alreadyHaveRequest:"Ya existe una solicitud para este cliente.",currentRequestStatus:"Estado de la solicitud actual: ",requestNoExist:"No existe la solicitud",noRequests:"No existen solicitudes activas con el código requerido",needMoreData:"Necesitamos más datos para validar el acceso a las administraciones públicas"},abandoned:{afterWaitingOtpSS:"Abandonado después de esperar OTP de Seguridad Social",afterInvalidOtpSS:"Abandonado despues de OTP inválido en Seguridad Social",afterInvalidOtpAEAT:"Abandonado despues de OTP inválido en AEAT",afterWaitingOtpAEAT:"Abandonado después de esperar OTP de AEAT"},loadings:{gettingData:"Obteniendo datos de la solicitud...",resendingOtp:"Reenviando OTP...",sendingData:"Enviando datos..",validatingData:"Validando nuevos datos, espere por favor..",validatingAndLoginSS:"Validando datos y logueandose a Seguridad Social, espere por favor..",validatingAndLoginAEAT:"Validando datos y logueandose a AEAT, espere por favor..",resendingRequest:"Reintentando enviar la solicitud...",smsToPin:"Se ha detectado un número de teléfono incorrecto, vamos a probar por flujo Clave PIN",sendingNewPhone:"Enviando nuevo teléfono, aguarde por favor",validatingRequest:"Validando solicitud, espere por favor..",creatingRequest:"Creando solicitud, espere",cancelingRequest:"Cancelando solicitud...",checkingSms:"Verificando servicio SMS.."},actions:{continue:"Continuar",cancel:"Cancelar proceso",back:"Volver",send:"Enviar",retry:"Intentarlo nuevamente",resend:"Reenviar",next:"Siguiente",clickToFinish:"Haga click aquí para finalizar",newRequest:"Nueva solicitud",gotoCurrentRequest:"Ir a la solicitud actual"},otp:{requestingOtp:"Estamos solicitando el código. Por favor, espere un momento.",otpSentToNumber:"El código ha sido enviado al teléfono acabado en",requestingCode:"Estamos solicitando el código. Por favor, espere un momento.",noReceivedCode:"¿No has recibido el código en tu teléfono?",noReceivedCode2:"¿No has recibido el código en el teléfono acabado en",otpCode:"Código OTP (recibido por SMS)"}},en:{nie:"NIE",dni:"DNI",nieOrDni:"DNI or NIE",birthday:"Date of birth",expiration:"ID expiration date",support:"Support code",phone:"Phone",email:"Email",inputEmail:"Enter your email",findExpiration:"Where can I find it?",send:"Send",unknownState:"Unknown status",manual:"Enter manually",warnings:{error:"Error!",invalidDni:"You must enter a valid DNI!",invalidNie:"You must enter a valid NIE!",invalidNieOrDni:"You must enter a valid DNI or NIE!",errorSomeData:"Error in some data",noPinService:"No Clave PIN service",noCustomization:"The widget customization has not been configured for this user",ocassionalError:"We are detecting occasional errors; if you cannot complete your request, please try again later",wrongDni:"Incorrect document number",wrongDniDesc:"The entered document number is incorrect, please enter another one",wrongDate:"Incorrect date",wrongDateDesc:"The date of birth is incorrect. Please check it",wrongSupport:"Invalid support number!",inputSupport:"Please enter the support code",unknownError:"Unknown error: ",noSms:"No SMS service",noSmsDesc:"The user has no SMS service; we will try to access through the Clave PIN flow. Please fill in the required fields",noOtp:"You have not received the OTP yet. Try again when you receive it",wrongOtp:"Invalid code. Please enter the code received by SMS",haveToReadTerms:"You must read the terms and conditions to continue",phoneError:"Phone error",dontHavePhone:"I don’t have another phone",badPhoneSS:"The entered phone number does not match the one registered with Social Security, please enter another one",wrongBirthday:"Incorrect date of birth",inputBirthDay:"Please enter the date of birth",wrongExpiration:"Incorrect expiration date",inputExpiration:"Please enter the document expiration date",duplicatedRequest:"Duplicate request!",alreadyHaveRequest:"A request already exists for this client.",currentRequestStatus:"Current request status: ",requestNoExist:"The request does not exist",noRequests:"There are no active requests with the required code",needMoreData:"We need more data to validate access to public administrations"},abandoned:{afterWaitingOtpSS:"Abandoned after waiting for Social Security OTP",afterInvalidOtpSS:"Abandoned after invalid OTP in Social Security",afterInvalidOtpAEAT:"Abandoned after invalid OTP in AEAT",afterWaitingOtpAEAT:"Abandoned after waiting for AEAT OTP"},loadings:{gettingData:"Retrieving request data...",resendingOtp:"Resending OTP...",sendingData:"Sending data...",validatingData:"Validating new data, please wait...",validatingAndLoginSS:"Validating data and logging into Social Security, please wait...",validatingAndLoginAEAT:"Validating data and logging into AEAT, please wait...",resendingRequest:"Retrying to submit the request...",smsToPin:"An incorrect phone number was detected; we are going to try the Clave PIN flow",sendingNewPhone:"Sending new phone number, please wait",validatingRequest:"Validating request, please wait...",creatingRequest:"Creating request, please wait",cancelingRequest:"Cancelling request...",checkingSms:"Checking SMS service..."},actions:{continue:"Continue",cancel:"Cancel process",back:"Back",send:"Send",retry:"Try again",resend:"Resend",next:"Next",clickToFinish:"Click here to finish",newRequest:"New request",gotoCurrentRequest:"Go to current request"},otp:{requestingOtp:"We are requesting the code. Please wait a moment.",otpSentToNumber:"The code has been sent to the phone ending in",requestingCode:"We are requesting the code. Please wait a moment.",noReceivedCode:"Didn’t receive the code on your phone?",noReceivedCode2:"Didn’t receive the code on the phone ending in",otpCode:"OTP code (received by SMS)"}},ca:{nie:"NIE",dni:"DNI",nieOrDni:"DNI o NIE",birthday:"Data de naixement",expiration:"Data de caducitat del DNI",support:"Codi de suport",phone:"Telèfon",email:"Correu electrònic",inputEmail:"Introdueix el teu correu electrònic",findExpiration:"On la trobo?",send:"Enviar",unknownState:"Estat desconegut",manual:"Introduir manualment",warnings:{error:"Error!",invalidDni:"Has d'introduir un DNI vàlid!",invalidNie:"Has d'introduir un NIE vàlid!",invalidNieOrDni:"Has d'introduir un DNI o NIE vàlid!",errorSomeData:"Error en algunes dades",noPinService:"Sense servei Clave PIN",noCustomization:"No s'ha configurat la personalització del widget per a aquest usuari",ocassionalError:"Estem detectant errors ocasionals; si no pots completar la teva sol·licitud, torna-ho a intentar més tard",wrongDni:"Número de document incorrecte",wrongDniDesc:"El número de document introduït és incorrecte, si us plau, introdueix-ne un altre",wrongDate:"Data incorrecta",wrongDateDesc:"La data de naixement és incorrecta. Revisa-la, si us plau",wrongSupport:"Número de suport no vàlid!",inputSupport:"Si us plau, introdueix el codi de suport",unknownError:"Error desconegut: ",noSms:"Sense servei SMS",noSmsDesc:"L'usuari no té servei d'SMS; intentarem accedir pel flux Clave PIN. Si us plau, omple els camps necessaris",noOtp:"Encara no has rebut l’OTP. Torna-ho a intentar quan el rebis",wrongOtp:"Codi no vàlid. Si us plau, introdueix el codi rebut per SMS",haveToReadTerms:"Has de llegir els termes i condicions per poder continuar",phoneError:"Error amb el telèfon",dontHavePhone:"No tinc un altre telèfon",badPhoneSS:"El telèfon introduït no coincideix amb el registrat a la Seguretat Social, si us plau, introdueix-ne un altre",wrongBirthday:"Data de naixement incorrecta",inputBirthDay:"Si us plau, introdueix la data de naixement",wrongExpiration:"Data de caducitat incorrecta",inputExpiration:"Si us plau, introdueix la data de caducitat del document",duplicatedRequest:"Sol·licitud duplicada!",alreadyHaveRequest:"Ja existeix una sol·licitud per a aquest client.",currentRequestStatus:"Estat de la sol·licitud actual: ",requestNoExist:"La sol·licitud no existeix",noRequests:"No hi ha sol·licituds actives amb el codi requerit",needMoreData:"Necessitem més dades per validar l’accés a les administracions públiques"},abandoned:{afterWaitingOtpSS:"Abandonat després d’esperar l’OTP de la Seguretat Social",afterInvalidOtpSS:"Abandonat després d’un OTP no vàlid a la Seguretat Social",afterInvalidOtpAEAT:"Abandonat després d’un OTP no vàlid a l’AEAT",afterWaitingOtpAEAT:"Abandonat després d’esperar l’OTP de l’AEAT"},loadings:{gettingData:"Obtenint dades de la sol·licitud...",resendingOtp:"Reenviant l’OTP...",sendingData:"Enviant dades...",validatingData:"Validant dades noves, espera, si us plau...",validatingAndLoginSS:"Validant dades i iniciant sessió a la Seguretat Social, espera, si us plau...",validatingAndLoginAEAT:"Validant dades i iniciant sessió a l’AEAT, espera, si us plau...",resendingRequest:"Tornant a intentar enviar la sol·licitud...",smsToPin:"S’ha detectat un número de telèfon incorrecte; provarem el flux Clave PIN",sendingNewPhone:"Enviant el nou telèfon, espera, si us plau",validatingRequest:"Validant la sol·licitud, espera, si us plau...",creatingRequest:"Creant la sol·licitud, espera",cancelingRequest:"Cancel·lant la sol·licitud...",checkingSms:"Verificant el servei SMS..."},actions:{continue:"Continuar",cancel:"Cancel·lar el procés",back:"Tornar",send:"Enviar",retry:"Torna-ho a intentar",resend:"Reenviar",next:"Següent",clickToFinish:"Fes clic aquí per finalitzar",newRequest:"Nova sol·licitud",gotoCurrentRequest:"Anar a la sol·licitud actual"},otp:{requestingOtp:"Estem sol·licitant el codi. Si us plau, espera un moment.",otpSentToNumber:"El codi s’ha enviat al telèfon acabat en",requestingCode:"Estem sol·licitant el codi. Si us plau, espera un moment.",noReceivedCode:"No has rebut el codi al teu telèfon?",noReceivedCode2:"No has rebut el codi al telèfon acabat en",otpCode:"Codi OTP (rebut per SMS)"}},fr:{nie:"NIE",dni:"DNI",nieOrDni:"DNI ou NIE",birthday:"Date de naissance",expiration:"Date d'expiration du DNI",support:"Code de support",phone:"Téléphone",email:"E-mail",inputEmail:"Saisis ton e-mail",findExpiration:"Où la trouver ?",send:"Envoyer",unknownState:"Statut inconnu",manual:"Saisir manuellement",warnings:{error:"Erreur !",invalidDni:"Tu dois saisir un DNI valide !",invalidNie:"Tu dois saisir un NIE valide !",invalidNieOrDni:"Tu dois saisir un DNI ou NIE valide !",errorSomeData:"Erreur dans certaines données",noPinService:"Sans service Clave PIN",noCustomization:"La personnalisation du widget n'a pas été configurée pour cet utilisateur",ocassionalError:"Nous détectons des erreurs occasionnelles ; si tu ne peux pas compléter ta demande, réessaie plus tard",wrongDni:"Numéro de document incorrect",wrongDniDesc:"Le numéro de document saisi est incorrect, merci d’en saisir un autre",wrongDate:"Date incorrecte",wrongDateDesc:"La date de naissance est incorrecte. Vérifie-la, s’il te plaît",wrongSupport:"Numéro de support invalide !",inputSupport:"Merci de saisir le code de support",unknownError:"Erreur inconnue : ",noSms:"Sans service SMS",noSmsDesc:"L'utilisateur n'a pas de service SMS ; nous allons tenter d'accéder via le flux Clave PIN, merci de remplir les champs requis",noOtp:"Tu n'as pas encore reçu l'OTP. Réessaie quand tu l'auras reçu",wrongOtp:"Code invalide. Merci de saisir le code reçu par SMS",haveToReadTerms:"Tu dois lire les termes et conditions pour pouvoir continuer",phoneError:"Erreur avec le téléphone",dontHavePhone:"Je n'ai pas d'autre téléphone",badPhoneSS:"Le numéro de téléphone saisi ne correspond pas à celui enregistré à la Sécurité sociale, merci d'en saisir un autre",wrongBirthday:"Date de naissance incorrecte",inputBirthDay:"Merci de saisir la date de naissance",wrongExpiration:"Date d'expiration incorrecte",inputExpiration:"Merci de saisir la date d'expiration du document",duplicatedRequest:"Demande dupliquée !",alreadyHaveRequest:"Il existe déjà une demande pour ce client.",currentRequestStatus:"Statut actuel de la demande : ",requestNoExist:"La demande n'existe pas",noRequests:"Il n'y a pas de demandes actives avec le code requis",needMoreData:"Nous avons besoin de plus de données pour valider l'accès aux administrations publiques"},abandoned:{afterWaitingOtpSS:"Abandonné après avoir attendu l'OTP de la Sécurité sociale",afterInvalidOtpSS:"Abandonné après un OTP invalide à la Sécurité sociale",afterInvalidOtpAEAT:"Abandonné après un OTP invalide à l'AEAT",afterWaitingOtpAEAT:"Abandonné après avoir attendu l'OTP de l'AEAT"},loadings:{gettingData:"Récupération des données de la demande...",resendingOtp:"Renvoi de l'OTP...",sendingData:"Envoi des données...",validatingData:"Validation des nouvelles données, merci de patienter...",validatingAndLoginSS:"Validation des données et connexion à la Sécurité sociale, merci de patienter...",validatingAndLoginAEAT:"Validation des données et connexion à l'AEAT, merci de patienter...",resendingRequest:"Nouvelle tentative d'envoi de la demande...",smsToPin:"Un numéro de téléphone incorrect a été détecté ; nous allons essayer le flux Clave PIN",sendingNewPhone:"Envoi du nouveau numéro de téléphone, merci de patienter",validatingRequest:"Validation de la demande, merci de patienter...",creatingRequest:"Création de la demande, merci de patienter",cancelingRequest:"Annulation de la demande...",checkingSms:"Vérification du service SMS..."},actions:{continue:"Continuer",cancel:"Annuler le processus",back:"Retour",send:"Envoyer",retry:"Réessayer",resend:"Renvoyer",next:"Suivant",clickToFinish:"Clique ici pour terminer",newRequest:"Nouvelle demande",gotoCurrentRequest:"Aller à la demande actuelle"},otp:{requestingOtp:"Nous demandons le code. Merci de patienter un instant.",otpSentToNumber:"Le code a été envoyé au téléphone se terminant par",requestingCode:"Nous demandons le code. Merci de patienter un instant.",noReceivedCode:"Tu n'as pas reçu le code sur ton téléphone ?",noReceivedCode2:"Tu n'as pas reçu le code sur le téléphone se terminant par",otpCode:"Code OTP (reçu par SMS)"}},it:{nie:"NIE",dni:"DNI",nieOrDni:"DNI o NIE",birthday:"Data di nascita",expiration:"Data di scadenza del DNI",support:"Codice di supporto",phone:"Telefono",email:"Email",inputEmail:"Inserisci la tua email",findExpiration:"Dove la trovo?",send:"Invia",unknownState:"Stato sconosciuto",manual:"Inserisci manualmente",warnings:{error:"Errore!",invalidDni:"Devi inserire un DNI valido!",invalidNie:"Devi inserire un NIE valido!",invalidNieOrDni:"Devi inserire un DNI o NIE valido!",errorSomeData:"Errore in alcuni dati",noPinService:"Servizio Clave PIN non disponibile",noCustomization:"La personalizzazione del widget non è stata configurata per questo utente",ocassionalError:"Stiamo rilevando errori occasionali, se non riesci a completare la tua richiesta, riprova più tardi",wrongDni:"Numero di documento errato",wrongDniDesc:"Il numero di documento inserito è errato, inseriscine un altro per favore",wrongDate:"Data errata",wrongDateDesc:"La data di nascita è errata. Per favore, controllala",wrongSupport:"Codice di supporto non valido!",inputSupport:"Per favore, inserisci il codice di supporto",unknownError:"Errore sconosciuto: ",noSms:"Servizio SMS non disponibile",noSmsDesc:"L'utente non ha il servizio SMS, proveremo ad accedere tramite il flusso Clave PIN, per favore compila i campi necessari",noOtp:"Non hai ancora ricevuto l'OTP. Riprova quando lo ricevi",wrongOtp:"Codice non valido. Per favore, inserisci il codice ricevuto via SMS",haveToReadTerms:"Devi leggere i termini e le condizioni per poter continuare",phoneError:"Errore con il telefono",dontHavePhone:"Non ho un altro telefono",badPhoneSS:"Il telefono inserito non corrisponde a quello registrato presso la Sicurezza Sociale, inseriscine un altro per favore",wrongBirthday:"Data di nascita errata",inputBirthDay:"Per favore, inserisci la data di nascita",wrongExpiration:"Data di scadenza errata",inputExpiration:"Per favore, inserisci la data di scadenza del documento",duplicatedRequest:"Richiesta duplicata!",alreadyHaveRequest:"Esiste già una richiesta per questo cliente.",currentRequestStatus:"Stato della richiesta attuale: ",requestNoExist:"La richiesta non esiste",noRequests:"Non esistono richieste attive con il codice richiesto",needMoreData:"Abbiamo bisogno di più dati per convalidare l'accesso alle amministrazioni pubbliche"},abandoned:{afterWaitingOtpSS:"Abbandonato dopo aver atteso l'OTP della Sicurezza Sociale",afterInvalidOtpSS:"Abbandonato dopo OTP non valido nella Sicurezza Sociale",afterInvalidOtpAEAT:"Abbandonato dopo OTP non valido nell'AEAT",afterWaitingOtpAEAT:"Abbandonato dopo aver atteso l'OTP dell'AEAT"},loadings:{gettingData:"Recupero dei dati della richiesta...",resendingOtp:"Invio nuovamente l'OTP...",sendingData:"Invio dei dati...",validatingData:"Validazione dei nuovi dati, attendere per favore...",validatingAndLoginSS:"Validazione dei dati e accesso alla Sicurezza Sociale, attendere per favore...",validatingAndLoginAEAT:"Validazione dei dati e accesso all'AEAT, attendere per favore...",resendingRequest:"Nuovo tentativo di invio della richiesta...",smsToPin:"È stato rilevato un numero di telefono errato, proveremo tramite il flusso Clave PIN",sendingNewPhone:"Invio del nuovo telefono, attendere per favore",validatingRequest:"Validazione della richiesta, attendere per favore...",creatingRequest:"Creazione della richiesta, attendere per favore",cancelingRequest:"Annullamento della richiesta...",checkingSms:"Verifica del servizio SMS..."},actions:{continue:"Continua",cancel:"Annulla processo",back:"Indietro",send:"Invia",retry:"Riprova",resend:"Reinvia",next:"Avanti",clickToFinish:"Clicca qui per terminare",newRequest:"Nuova richiesta",gotoCurrentRequest:"Vai alla richiesta attuale"},otp:{requestingOtp:"Stiamo richiedendo il codice. Attendere un momento, per favore.",otpSentToNumber:"Il codice è stato inviato al telefono che termina con",requestingCode:"Stiamo richiedendo il codice. Attendere un momento, per favore.",noReceivedCode:"Non hai ricevuto il codice sul tuo telefono?",noReceivedCode2:"Non hai ricevuto il codice sul telefono che termina con",otpCode:"Codice OTP (ricevuto via SMS)"}},pt:{nie:"NIE",dni:"DNI",nieOrDni:"DNI ou NIE",birthday:"Data de nascimento",expiration:"Data de validade do DNI",support:"Código de suporte",phone:"Telefone",email:"E-mail",inputEmail:"Digite seu e-mail",findExpiration:"Onde encontro?",send:"Enviar",unknownState:"Estado desconhecido",manual:"Inserir manualmente",warnings:{error:"Erro!",invalidDni:"Você deve inserir um DNI válido!",invalidNie:"Você deve inserir um NIE válido!",invalidNieOrDni:"Você deve inserir um DNI ou NIE válido!",errorSomeData:"Erro em alguns dados",noPinService:"Sem serviço Clave PIN",noCustomization:"A personalização do widget não foi configurada para este usuário",ocassionalError:"Estamos detectando erros ocasionais; se não conseguir concluir sua solicitação, tente novamente mais tarde",wrongDni:"Número de documento incorreto",wrongDniDesc:"O número de documento informado está incorreto, insira outro por favor",wrongDate:"Data incorreta",wrongDateDesc:"A data de nascimento está incorreta. Verifique, por favor",wrongSupport:"Código de suporte inválido!",inputSupport:"Por favor, insira o código de suporte",unknownError:"Erro desconhecido: ",noSms:"Sem serviço SMS",noSmsDesc:"O usuário não possui serviço de SMS; vamos tentar entrar pelo fluxo Clave PIN, por favor preencha os campos necessários",noOtp:"Você ainda não recebeu o OTP. Tente novamente quando recebê-lo",wrongOtp:"Código inválido. Por favor, insira o código recebido por SMS",haveToReadTerms:"Você deve ler os termos e condições para continuar",phoneError:"Erro com o telefone",dontHavePhone:"Não tenho outro telefone",badPhoneSS:"O telefone informado não coincide com o registrado na Seguridade Social, por favor insira outro",wrongBirthday:"Data de nascimento incorreta",inputBirthDay:"Por favor, insira a data de nascimento",wrongExpiration:"Data de validade incorreta",inputExpiration:"Por favor, insira a data de validade do documento",duplicatedRequest:"Solicitação duplicada!",alreadyHaveRequest:"Já existe uma solicitação para este cliente.",currentRequestStatus:"Status da solicitação atual: ",requestNoExist:"A solicitação não existe",noRequests:"Não existem solicitações ativas com o código informado",needMoreData:"Precisamos de mais dados para validar o acesso às administrações públicas"},abandoned:{afterWaitingOtpSS:"Abandonado após aguardar o OTP da Seguridade Social",afterInvalidOtpSS:"Abandonado após OTP inválido na Seguridade Social",afterInvalidOtpAEAT:"Abandonado após OTP inválido na AEAT",afterWaitingOtpAEAT:"Abandonado após aguardar o OTP da AEAT"},loadings:{gettingData:"Obtendo dados da solicitação...",resendingOtp:"Reenviando OTP...",sendingData:"Enviando dados...",validatingData:"Validando novos dados, aguarde por favor...",validatingAndLoginSS:"Validando dados e acessando a Seguridade Social, aguarde por favor...",validatingAndLoginAEAT:"Validando dados e acessando a AEAT, aguarde por favor...",resendingRequest:"Tentando reenviar a solicitação...",smsToPin:"Detectamos um número de telefone incorreto, vamos tentar pelo fluxo Clave PIN",sendingNewPhone:"Enviando novo telefone, aguarde por favor",validatingRequest:"Validando solicitação, aguarde por favor...",creatingRequest:"Criando solicitação, aguarde por favor",cancelingRequest:"Cancelando solicitação...",checkingSms:"Verificando serviço SMS..."},actions:{continue:"Continuar",cancel:"Cancelar processo",back:"Voltar",send:"Enviar",retry:"Tentar novamente",resend:"Reenviar",next:"Seguinte",clickToFinish:"Clique aqui para finalizar",newRequest:"Nova solicitação",gotoCurrentRequest:"Ir para a solicitação atual"},otp:{requestingOtp:"Estamos solicitando o código. Por favor, aguarde um momento.",otpSentToNumber:"O código foi enviado para o telefone terminado em",requestingCode:"Estamos solicitando o código. Por favor, aguarde um momento.",noReceivedCode:"Não recebeu o código no seu telefone?",noReceivedCode2:"Não recebeu o código no telefone terminado em",otpCode:"Código OTP (recebido por SMS)"}},de:{nie:"NIE",dni:"DNI",nieOrDni:"DNI oder NIE",birthday:"Geburtsdatum",expiration:"Ablaufdatum des DNI",support:"Support-Code",phone:"Telefon",email:"E-Mail",inputEmail:"Gib deine E-Mail ein",findExpiration:"Wo finde ich ihn?",send:"Senden",unknownState:"Unbekannter Status",manual:"Manuell eingeben",warnings:{error:"Fehler!",invalidDni:"Du musst eine gültige DNI eingeben!",invalidNie:"Du musst eine gültige NIE eingeben!",invalidNieOrDni:"Du musst eine gültige DNI oder NIE eingeben!",errorSomeData:"Fehler in einigen Angaben",noPinService:"Kein Clave-PIN-Dienst",noCustomization:"Das Widget wurde für diesen Benutzer nicht konfiguriert",ocassionalError:"Wir stellen gelegentliche Fehler fest. Wenn du deine Anfrage nicht abschließen kannst, versuche es später erneut",wrongDni:"Dokumentennummer falsch",wrongDniDesc:"Die eingegebene Dokumentennummer ist falsch, bitte gib eine andere ein",wrongDate:"Datum falsch",wrongDateDesc:"Das Geburtsdatum ist falsch. Bitte überprüfe es",wrongSupport:"Support-Code ungültig!",inputSupport:"Bitte gib den Support-Code ein",unknownError:"Unbekannter Fehler: ",noSms:"Kein SMS-Dienst",noSmsDesc:"Der Benutzer hat keinen SMS-Dienst. Wir versuchen es über den Clave-PIN-Fluss. Bitte fülle die erforderlichen Felder aus",noOtp:"Du hast den OTP noch nicht erhalten. Versuche es erneut, wenn du ihn erhältst",wrongOtp:"Ungültiger Code. Bitte gib den per SMS erhaltenen Code ein",haveToReadTerms:"Du musst die Allgemeinen Geschäftsbedingungen lesen, um fortzufahren",phoneError:"Fehler mit dem Telefon",dontHavePhone:"Ich habe kein anderes Telefon",badPhoneSS:"Die eingegebene Telefonnummer stimmt nicht mit der bei der Sozialversicherung registrierten überein, bitte gib eine andere ein",wrongBirthday:"Geburtsdatum falsch",inputBirthDay:"Bitte gib das Geburtsdatum ein",wrongExpiration:"Ablaufdatum falsch",inputExpiration:"Bitte gib das Ablaufdatum des Dokuments ein",duplicatedRequest:"Doppelte Anfrage!",alreadyHaveRequest:"Es existiert bereits eine Anfrage für diesen Kunden.",currentRequestStatus:"Status der aktuellen Anfrage: ",requestNoExist:"Die Anfrage existiert nicht",noRequests:"Es gibt keine aktiven Anfragen mit dem angegebenen Code",needMoreData:"Wir benötigen weitere Daten, um den Zugang zu öffentlichen Verwaltungen zu prüfen"},abandoned:{afterWaitingOtpSS:"Abgebrochen nach Warten auf OTP der Sozialversicherung",afterInvalidOtpSS:"Abgebrochen nach ungültigem OTP bei der Sozialversicherung",afterInvalidOtpAEAT:"Abgebrochen nach ungültigem OTP bei der AEAT",afterWaitingOtpAEAT:"Abgebrochen nach Warten auf OTP der AEAT"},loadings:{gettingData:"Antragsdaten werden abgerufen...",resendingOtp:"OTP wird erneut gesendet...",sendingData:"Daten werden gesendet...",validatingData:"Neue Daten werden validiert, bitte warten...",validatingAndLoginSS:"Daten werden validiert und bei der Sozialversicherung angemeldet, bitte warten...",validatingAndLoginAEAT:"Daten werden validiert und bei der AEAT angemeldet, bitte warten...",resendingRequest:"Anfrage wird erneut gesendet...",smsToPin:"Es wurde eine falsche Telefonnummer erkannt, wir versuchen es über den Clave-PIN-Fluss",sendingNewPhone:"Neue Telefonnummer wird gesendet, bitte warten",validatingRequest:"Anfrage wird validiert, bitte warten...",creatingRequest:"Anfrage wird erstellt, bitte warten",cancelingRequest:"Anfrage wird storniert...",checkingSms:"SMS-Dienst wird überprüft..."},actions:{continue:"Weiter",cancel:"Prozess abbrechen",back:"Zurück",send:"Senden",retry:"Erneut versuchen",resend:"Erneut senden",next:"Weiter",clickToFinish:"Hier klicken, um abzuschließen",newRequest:"Neue Anfrage",gotoCurrentRequest:"Zur aktuellen Anfrage"},otp:{requestingOtp:"Wir fordern den Code an. Bitte einen Moment warten.",otpSentToNumber:"Der Code wurde an die Telefonnummer gesendet, die endet auf",requestingCode:"Wir fordern den Code an. Bitte einen Moment warten.",noReceivedCode:"Hast du den Code nicht auf deinem Telefon erhalten?",noReceivedCode2:"Hast du den Code nicht auf dem Telefon erhalten, das endet auf",otpCode:"OTP-Code (per SMS erhalten)"}}}},5028:(e,t,n)=>{n.d(t,{q:()=>C});var i=n(6895),r=n(1561),s=n(9101),o=n(811),a=n(6709),l=n(3238),c=n(9602),d=n(7392),u=n(4144),h=n(8739),p=n(1572),m=n(1948),f=n(4385),g=n(6308),_=n(6257),v=n(7155),y=n(266),b=n(7009),x=n(5412),w=n(4650);let C=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=w.ɵɵdefineNgModule({type:e}),e.ɵinj=w.ɵɵdefineInjector({imports:[i.ez,h.TU,v.p0,g.JX,a.p9,d.Ps,s.ot,r.Tx,u.c,y.AV,f.LD,o.vV,p.Cq,c.FA,l.XK,_.T5,m.Fk,b.ZX,x.Is,h.TU,v.p0,g.JX,a.p9,d.Ps,s.ot,r.Tx,u.c,y.AV,f.LD,o.vV,p.Cq,c.FA,l.XK,_.T5,m.Fk,b.ZX,x.Is]}),e})()},865:(e,t,n)=>{n.d(t,{q:()=>c});var i=n(6895),r=n(4006),s=n(6981),o=n(5028),a=n(2440),l=n(4650);let c=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=l.ɵɵdefineNgModule({type:e}),e.ɵinj=l.ɵɵdefineInjector({imports:[i.ez,s.x,o.q,r.FormsModule,r.ReactiveFormsModule,a.Xz]}),e})()},2340:(e,t,n)=>{n.d(t,{N:()=>i});const i={production:!1,env:"qa",baseUrl:"https://api.qa.belender.net",cdnImgBaseUrl:"https://widget.qa.belender.net/assets/img/",scraperMock:!1,notificationsBaseUrl:"wss://notifications.qa.belender.net",isWebComponent:!0}},4431:(e,t,n)=>{var i=n(5861),r=n(1481),s=n(4650),o=n(9331),a=n(2340);a.N.production&&(0,s.enableProdMode)(),a.N.isWebComponent?window.initBelenderComponent=(0,i.Z)((function*(){if(window.BelenderWebComponent)return window.BelenderWebComponent;yield r.platformBrowser().bootstrapModule(o.b);const e=window.BelenderWebComponent;if(!e)throw new Error("La clase BelenderWebComponent no fue generada por AppModule. Revisar la lógica de createCustomElement.");return e})):r.platformBrowser().bootstrapModule(o.b).catch((e=>console.error(e)))},7838:(e,t,n)=>{n.d(t,{y:()=>r});var i=n(4650);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i.ɵɵdefineNgModule({type:e}),e.ɵinj=i.ɵɵdefineInjector({}),e})()},9186:(e,t,n)=>{n.d(t,{z:()=>o});var i=n(4650),r=n(2340);let s=(()=>{class e{constructor(){this.cdnImgBaseUrl=r.N.cdnImgBaseUrl}getUrl(e){return e.startsWith("img/")?`${this.cdnImgBaseUrl}${e.replace(/^img\//,"")}`:`assets/${e}`}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),o=(()=>{class e{constructor(e){this.assets=e}transform(e){return this.assets.getUrl(e)}}return e.ɵfac=function(t){return new(t||e)(i.ɵɵdirectiveInject(s,16))},e.ɵpipe=i.ɵɵdefinePipe({name:"assetUrl",type:e,pure:!0}),e})()},6981:(e,t,n)=>{n.d(t,{x:()=>r});var i=n(4650);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i.ɵɵdefineNgModule({type:e}),e.ɵinj=i.ɵɵdefineInjector({}),e})()},2567:(e,t,n)=>{n.d(t,{e:()=>s});var i=n(1135),r=n(4650);let s=(()=>{class e{constructor(){this.bUserData=new i.X(null),this.logged=!1}setUserToken(e,t){this.userToken=e+" "+t}getUserToken(){return this.userToken}setUserData(e){this.userData=e,this.logged=!0,this.bUserData.next(e)}getUserData(){return this.userData}bindUserData(){return this.bUserData.asObservable()}setUserId(e){this.userId=e}getUserId(){return this.userId}setFunderId(e){this.financiadorID=e}getFunderId(){return this.financiadorID}isLogged(){return this.logged}setLogged(e){this.logged=e}getUserRole(){return this.userData.role}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},7367:(e,t,n)=>{n.d(t,{w:()=>h});var i=n(5861),r=n(6197),s=n(1135),o=n(2340),a=n(4650),l=n(5089),c=n(529),d=n(6554),u=n(7308);let h=(()=>{class e{constructor(e,t,n,i){this.utils=e,this.http=t,this.localFetch=n,this.translationService=i,this.db=(0,r.N8)(),this._custommization=new s.X(null)}bindCustomizationFromFirebase(e){const t=(0,r.iH)(this.db,`customization/${e}`);(0,r.jM)(t,(e=>{const t=e.val();this._custommization.next(t)}))}getCustomization(e,t){return new Promise(((n,i)=>{const r=this.getFunderStyles(e),s=this.getFunderConfig(e),a=this.getCustomizationByFlow(e,t);Promise.all([r,s,a]).then((e=>{console.log("promise all: ",e)})),this.http.get(o.N.baseUrl+"/users/"+e+"/customization").subscribe((e=>{e?n(e):i(e)}),(e=>{i(e)}))}))}getFunderConfig(e){return new Promise(((t,n)=>{this.http.get(o.N.baseUrl+"/users/"+e+"/customization/config").subscribe((e=>{e?t(e):n(e)}),(e=>{n(e)}))}))}getFunderStyles(e){return new Promise(((t,n)=>{this.http.get(o.N.baseUrl+"/users/"+e+"/customization/style").subscribe((e=>{e?t(e):n(e)}),(e=>{n(e)}))}))}getCustomizationByFlow(e,t,n){var r=this;return new Promise(((s,a)=>{let l=o.N.baseUrl+"/users/"+e+"/customization/flow/"+t;var c;t&&"smspin"===t&&(l=o.N.baseUrl+"/users/"+e+"/customization/"+t),this.http.get(l).subscribe((c=(0,i.Z)((function*(i){i?i.data&&n?r.translationService.getTraductionFromApi(e,t,n).then((e=>{e&&e.data&&e.data.texts&&(i.data.texts=e.data.texts),s(i)})).catch((()=>{s(i)})):s(i):a(i)})),function(e){return c.apply(this,arguments)}),(e=>{a(e)}))}))}subscribeCustomization(){return this._custommization.asObservable()}saveCustomization(e,t){const n=(0,r.N8)();return(0,r.t8)((0,r.iH)(n,"customization/"+e),t),new Promise(((n,i)=>{this.localFetch.postFetch(o.N.baseUrl+"/funders/"+e+"/customization",t).then((e=>{e?n(e):i(!1)})).catch((e=>{i(e)}))}))}}return e.ɵfac=function(t){return new(t||e)(a.ɵɵinject(l.F),a.ɵɵinject(c.eN),a.ɵɵinject(d.r),a.ɵɵinject(u.D))},e.ɵprov=a.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},8460:(e,t,n)=>{n.d(t,{r:()=>s});var i=n(1135),r=n(4650);let s=(()=>{class e{constructor(){this.funderConfig=new i.X({}),this.funderConfig$=this.funderConfig.asObservable(),this.funderStyles=new i.X({}),this.funderStyles$=this.funderStyles.asObservable(),this.userID=new i.X({}),this.userID$=this.userID.asObservable(),this.packID=new i.X({}),this.packID$=this.userID.asObservable()}setUserID(e){this.USER_ID=e,this.userID.next(e)}setPackID(e){this.PACK_ID=e,this.packID.next(e)}setFunderStyles(e){this.FUNDER_STYLES=e,this.funderStyles.next(e)}setFunderConfig(e){this.FUNDER_CONFIG=e,this.funderConfig.next(e)}getUserID(){return this.userID$}getPackID(){return this.packID$}getFunderConfig(){return this.funderConfig$}getFunderStyles(){return this.funderStyles$}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},9045:(e,t,n)=>{n.d(t,{H:()=>s});var i=n(1135),r=n(4650);let s=(()=>{class e{constructor(){this.deviceInfo=new i.X({}),this.deviceInfo$=this.deviceInfo.asObservable(),this.isScaled=new i.X(!1),this.isScaled$=this.isScaled.asObservable()}setDeviceInfo(e){this.deviceInfo.next(e)}setScaled(e){this.isScaled.next(e)}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},6554:(e,t,n)=>{n.d(t,{r:()=>a});var i=n(5861),r=n(4650),s=n(2567),o=n(2029);let a=(()=>{class e{constructor(e,t){this.auth=e,this.handleErrors=t}freeGetFetch(e){var t=this;return(0,i.Z)((function*(){const n=yield fetch(e);return t.handleErrors.handleResponse(n)}))()}postFile(e,t){var n=this;return(0,i.Z)((function*(){let i=n.auth.getUserToken();const r=yield fetch(e,{method:"POST",headers:{Authorization:i},body:t});return n.handleErrors.handleResponse(r)}))()}getFetch(e){var t=this;return(0,i.Z)((function*(){let n=t.auth.getUserToken();const i=yield fetch(e,{method:"GET",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{Authorization:n},referrerPolicy:"no-referrer"});return t.handleErrors.handleResponse(i)}))()}getFetchWhitoutToken(e){var t=this;return(0,i.Z)((function*(){const n=yield fetch(e,{method:"GET"});return t.handleErrors.handleResponse(n)}))()}postFetch(e,t){var n=this;return(0,i.Z)((function*(){let i=n.auth.getUserToken();const r=yield fetch(e,{method:"POST",headers:{Authorization:i,"Content-Type":"application/json"},body:JSON.stringify(t)});return n.handleErrors.handleResponse(r)}))()}postFetchWhitoutToken(e,t){var n=this;return(0,i.Z)((function*(){n.auth.getUserToken();const i=yield fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return n.handleErrors.handleResponse(i)}))()}putFetchWhitoutToken(e,t){var n=this;return(0,i.Z)((function*(){const i=yield fetch(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return n.handleErrors.handleResponse(i)}))()}putFetch(e,t){var n=this;return(0,i.Z)((function*(){let i=n.auth.getUserToken();const r=yield fetch(e,{method:"PUT",headers:{Authorization:i,"Content-Type":"application/json"},body:JSON.stringify(t)});return n.handleErrors.handleResponse(r)}))()}postFileFetchWhitoutToken(e,t){var n=this;return(0,i.Z)((function*(){const i=yield fetch(e,{method:"POST",body:t});return n.handleErrors.handleResponse(i)}))()}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(s.e),r.ɵɵinject(o.F))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},2029:(e,t,n)=>{n.d(t,{F:()=>s});var i=n(5861),r=n(4650);let s=(()=>{class e{constructor(){this.ErrorsMap={birth_day:{status:"error",message:"Fecha de nacimiento incorrecta",code:422},birth_date:{status:"error",message:"Fecha de nacimiento incorrecta",code:422},phone:{status:"error",message:"Teléfono incorrecto",code:422},document_number:{message:"Número de documento inválido",code:422,status:"error"},document_expiration_date:{message:"Fecha de vencimiento incorrecta",code:422,status:"error"},document_support:{message:"Número de documento inválido",code:422,status:"error"},request_id:{message:"El código de solicitud es inválido",code:422,status:"error"},generic:{status:"error",message:"Error desconocido",code:0},code:{status:"error",messages:{"The code must be 6 characters.":"El código debe ser de 6 dígitos","The code must be 3 characters.":"El código debe ser de 3 dígitos"},code:422}}}getError(e,t,n){let i=""+n;return this.ErrorsMap[e]&&this.ErrorsMap[e][t]&&this.ErrorsMap[e][t][i]?this.ErrorsMap[e][t][i]:this.getGenericMessage()}getGenericMessage(){var e=this;return(0,i.Z)((function*(){return e.ErrorsMap.generic}))()}handleResponse(e){var t=this;return(0,i.Z)((function*(){let n=yield e;if(n.status>=200&&n.status<300)return e.json();if(422==n.status){let n=yield e.json(),i="",r=Object.keys(n.message);return r&&r.length&&r.forEach((e=>{console.error(e),t.ErrorsMap[e]?t.ErrorsMap[e].message?i+=" "+t.ErrorsMap[e].message:t.ErrorsMap[e].messages&&(i+=" "+t.ErrorsMap[e].messages[n.message[e][0]]):i+=" "+n.message[e]})),{message:i||n.message,code:422,status:"error"}}{let i=yield e.json(),r=t.ErrorsMap.generic;return i.message&&(r.message=i.message),r.response=i,r.code=+n.status,console.error("response from back: ",r),r}}))()}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},5895:(e,t,n)=>{n.d(t,{T:()=>p});var i=n(5226),r=n.n(i),s=n(6197),o=n(1135),a=n(5412),l=n(4650),c=n(9101);let d=(()=>{class e{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){}onNoClick(){this.dialogRef.close()}}return e.ɵfac=function(t){return new(t||e)(l.ɵɵdirectiveInject(a.so),l.ɵɵdirectiveInject(a.WI))},e.ɵcmp=l.ɵɵdefineComponent({type:e,selectors:[["vex-dialog"]],decls:8,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"py-2"],["mat-dialog-actions","",1,"flex","justify-end","items-center","pt-3"],["mat-button","","cdkFocusInitial","",3,"click"]],template:function(e,t){1&e&&(l.ɵɵelementStart(0,"h1",0),l.ɵɵtext(1),l.ɵɵelementEnd(),l.ɵɵelementStart(2,"div",1)(3,"p"),l.ɵɵtext(4),l.ɵɵelementEnd()(),l.ɵɵelementStart(5,"div",2)(6,"button",3),l.ɵɵlistener("click",(function(){return t.onNoClick()})),l.ɵɵtext(7,"Cerrar"),l.ɵɵelementEnd()()),2&e&&(l.ɵɵadvance(1),l.ɵɵtextInterpolate(t.data.title),l.ɵɵadvance(3),l.ɵɵtextInterpolate(t.data.message))},dependencies:[c.lW],styles:["h1[_ngcontent-%COMP%]{font-size:20px}"]}),e})();var u=n(7009),h=n(8460);let p=(()=>{class e{constructor(e,t,n){this.snackBar=e,this.dialog=t,this.customizationStore=n,this._userNotifications=new o.X([]),this.countNotifications=0,this.userID="123"}showToast(e,t,n){this.snackBar.open(e||"I'm a notification!","Close",{duration:t||4e3,horizontalPosition:"right",verticalPosition:"top",panelClass:n||""})}showAlert(e,t,n,i){let s={title:e,text:t||"",showCancelButton:!!i,confirmButtonText:i&&i.okButtonLabel?i.okButtonLabel:"OK",cancelButtonText:i&&i.cancelButtonLabel?i.cancelButtonLabel:""};this.customizationStore.FUNDER_STYLES&&(n=this.getIconFromString(n)),this.isIcon(n)?s.icon=n||"info":s.imageUrl=n,r().fire(s).then((e=>{e.value?i&&i.okAction&&i.okAction():e.dismiss===r().DismissReason.cancel&&i&&i.cancelAction&&i.cancelAction()}))}getIconFromString(e){return e&&this.customizationStore&&this.customizationStore.FUNDER_STYLES?"success"==e?this.customizationStore.FUNDER_STYLES.successIcon||e:"error"==e?this.customizationStore.FUNDER_STYLES.errorIcon||e:"warning"==e?this.customizationStore.FUNDER_STYLES.warningIcon||e:"info"==e&&this.customizationStore.FUNDER_STYLES.infoIcon||e:"error"}isIcon(e){return!e||"success"==e||"error"==e||"warning"==e||"info"==e||"question"==e}showPrompt(e){return new Promise(((t,n)=>{r().fire({title:e,input:"text",inputAttributes:{autocapitalize:"off"},showCancelButton:!0,confirmButtonText:"Enviar",allowOutsideClick:!0}).then((e=>{e.isConfirmed?t(e.value):n(!1)}))}))}bindFunderNotifications(e){this.userID=e;const t=(0,s.N8)(),n=(0,s.iH)(t,`notifications/${e}`);(0,s.jM)(n,(e=>{let t=e.val(),n=t?this.convertObjectArrayToArray(t):[];t&&this.countNotifications<n.length&&this.showToast("Nueva notificacion",5e3,"info"),this.countNotifications=+n.length,this._userNotifications.next(n&&n.length?n.sort(((e,t)=>this.sortByDate(e,t))):[])}))}sortByDate(e,t){return+new Date(e.date).getTime()-+new Date(t.date).getTime()}convertObjectArrayToArray(e){return Object.keys(e).map((t=>{const n=e[t];return n.key=t,n}))}parseNotificationMap(e){}subscribeMyNotifications(){return this._userNotifications.asObservable()}markAsReaded(e){const t=(0,s.N8)();(0,s.t8)((0,s.iH)(t,`notifications/${this.userID}/${e}/readed`),!0)}openDialog(e){this.dialog.open(d,{data:e||null,width:"400px"}).afterClosed().subscribe((e=>{console.log("The dialog was closed")}))}deleteNotification(e){const t=(0,s.N8)();(0,s.t8)((0,s.iH)(t,`notifications/${this.userID}/${e}`),null).then((e=>{this.showToast("Notificación eliminada",4e3,"danger")}))}}return e.ɵfac=function(t){return new(t||e)(l.ɵɵinject(u.ux),l.ɵɵinject(a.uw),l.ɵɵinject(h.r))},e.ɵprov=l.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},7308:(e,t,n)=>{n.d(t,{D:()=>d});var i=n(5861),r=n(529),s=n(1135),o=n(1931),a=n(2340),l=n(4650),c=n(5895);let d=(()=>{class e{constructor(e,t){this.http=e,this.notis=t,this.data={},this.loadingData=new s.X(!1),this.openAiKey="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",this.availableLanguages={en:"inglés",ca:"catalán",pt:"portugués",de:"alemán",fr:"francés",it:"italiano"},this.loadersLanguage={en:"Retrieving data from the request...",ca:"Obtenint dades de la sol·licitud...",pt:"A recuperar dados da solicitação...",de:"Daten aus der Anfrage werden abgerufen …",fr:"Récupération des données de la requête...",it:"Recupero dei dati dalla richiesta..."}}getLoadingLanguage(){return this.loadingData.asObservable()}use(e){return this.loadingData.next(!0),new Promise((t=>{this.http.get(`./assets/lang/${e||"en"}.json`).subscribe((n=>{localStorage.setItem("belender-language",e),this.data=n||{},this.loadingData.next(!1),t(this.data)}),(e=>{this.data={},t(this.data)}))}))}getLabelsTranslated(e){return o.S&&o.S[e]?o.S[e]:o.S.es}getFirstLoading(e){return this.loadersLanguage[e]?this.loadersLanguage[e]:"Obteniendo datos de la solicitud..."}getLanguage(e){return this.availableLanguages[e]?this.availableLanguages[e]:null}getLanguageText(e){return this.availableLanguages[e]?this.availableLanguages[e]:e}getTraductionFromApi(e,t,n){var r=this;return(0,i.Z)((function*(){let s=`${a.N.baseUrl}/translate?user_id=${e}&language=${n}&flow_name=${t}`;return new Promise(((e,t)=>{var o;r.http.get(s).subscribe((o=(0,i.Z)((function*(i){i&&i?e(i):(r.notis.showToast("No existe una traducción para el idioma "+r.getLanguageText(n),5e3,"error"),t(i))})),function(e){return o.apply(this,arguments)}),(e=>{r.notis.showToast("No existe una traducción para el idioma "+r.getLanguageText(n),5e3,"error"),t(e)}))}))}))()}getTraduction(e,t){var n=this;return(0,i.Z)((function*(){const i=new r.WM({"Content-Type":"application/json",Authorization:`Bearer ${n.openAiKey}`});let s=n.getLanguage(t);const o={model:"gpt-4.1",messages:[{role:"user",content:`Te doy un objeto JSON. Devuélveme el mismo JSON pero con todos los valores de tipo string traducidos al ${s}. \n No modifiques las claves, la estructura ni los tipos (números, booleanos, null deben permanecer iguales). \n Conserva placeholders como {{name}} exactamente. No cambies etiquetas HTML ni markdown dentro de strings.\n Devuélvelo solamente como JSON válido sin texto adicional, no me pongas ni comillas al principio ni la palabra "json". JSON a traducir: ${JSON.stringify(e)}`}],temperature:0};return new Promise(((e,t)=>{s?n.http.post("https://api.openai.com/v1/chat/completions",o,{headers:i}).subscribe((t=>{if(t&&t.choices&&t.choices[0]&&t.choices[0].message&&t.choices[0].message.content)try{let n=JSON.parse(t.choices[0].message.content);console.warn(n),e(n)}catch{e(null)}else e(null)}),(e=>t(e))):e(null)}))}))()}}return e.ɵfac=function(t){return new(t||e)(l.ɵɵinject(r.eN),l.ɵɵinject(c.T))},e.ɵprov=l.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},5089:(e,t,n)=>{n.d(t,{F:()=>l});var i=n(1135),r=n(6418),s=n.n(r),o=n(4650);const a=new(s())("base36");let l=(()=>{class e{constructor(){this.loading=new i.X(!1),this.WarningsSpaces=new i.X(0)}setLoading(e){this.loading.next(e)}getLoading(){return this.loading.asObservable()}setWarningsSpaces(e){this.WarningsSpaces.next(e)}getWarningsSpaces(){return this.WarningsSpaces.asObservable()}uuidv4(){return a.encode(this.uuidv4Aux())}uuidv4Aux(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}formatDate(e){if(e){let t=e.split("/");return t[2]?t[2]+"-"+t[1]+"-"+t[0]:e}return e}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=o.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},182:(e,t,n)=>{n.d(t,{t:()=>o});var i=n(1135),r=n(6197),s=n(4650);let o=(()=>{class e{constructor(){this.db=(0,r.N8)(),this.exampleId="1mlh02m8ukjhqrz1837pbrpt4",this._userSolicitudes=new i.X(null),this.userId="taitoooooID",this._bindedRequest=new i.X(null),this._funderNotifications=new i.X(null)}testConnection(){const e=(0,r.iH)(this.db,"webhooks/solicitudes");(0,r.jM)(e,(e=>{e.val()}))}initBindSolicitudesWebhook(){const e=(0,r.N8)(),t=(0,r.iH)(e,"webhooks/solicitudes/"+this.userId);(0,r.yv)(t,(e=>{this._userSolicitudes.next(e.val())})),(0,r.Jr)(t,(e=>{this._userSolicitudes.next(e.val())})),(0,r.MQ)(t,(e=>{this._userSolicitudes.next(e.val())}))}bindSolicitudesChangesWebhook(){return this._userSolicitudes.asObservable()}setSolicitudChanges(e){const t=(0,r.N8)();(0,r.t8)((0,r.iH)(t,"webhooks/solicitudes/"+this.userId),{data:e})}saveSolicitud(e,t,n){const i=(0,r.N8)();return(0,r.t8)((0,r.iH)(i,`webhooks/${e}/${t}/${n.request_id}`),n)}bindRequestChanges(e,t,n){const i=(0,r.N8)(),s=(0,r.iH)(i,`webhooks/${e}/${t}/${n}`);(0,r.jM)(s,(e=>{this._bindedRequest.next(e.val())}))}subscribeRequestChanges(){return this._bindedRequest.asObservable()}subscribeFunderNotifications(){return this._funderNotifications.asObservable()}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=s.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},3798:(e,t,n)=>{n.d(t,{a:()=>r});var i=n(4650);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i.ɵɵdefineNgModule({type:e}),e.ɵinj=i.ɵɵdefineInjector({}),e})()},4468:(e,t,n)=>{n.d(t,{FE:()=>d,Kj:()=>c,gJ:()=>l});var i=n(5861),r=n(4650);const s="application/pdf",o=`data:${s};base64,`,a=new r.InjectionToken("autofirma.scripts"),l=new r.InjectionToken("autofirma.defaultParams");let c=(()=>{class e{constructor(e,t){this.__autofirma=e,this.__defaultParams=t,this.__autofirma.cargarAppAfirma()}requestPDFSignature(e,t){return this.requestSignature(e,"PAdES",t)}requestSignature(e,t,n){return this.__requestSignature(e,t,n)}__requestSignature(e,t,n){var r=this;return(0,i.Z)((function*(){r.__checkFileIsPDF(e);const s=yield r.__convertBinaryToBase64(e);return new Promise(((e,o)=>{var a;r.__autofirma.sign(s,"SHA512withRSA",t,r.__serializeParams(r.__mergeWithDefaults(n)),(a=(0,i.Z)((function*(t,n){try{const n=r.__convertBase64ToBinary(t);e(n)}catch(e){o(e)}})),function(e,t){return a.apply(this,arguments)}),((e,t)=>o(new Error(`${e}: ${t}`))))}))}))()}__checkFileIsPDF(e){if(e.type!==s)throw new Error("Invalid file type, PDF expected.")}__convertBinaryToBase64(e){return new Promise(((t,n)=>{const i=new FileReader;i.onloadend=()=>{t(i.result.split(",")[1])},i.readAsDataURL(e)}))}__convertBase64ToBinary(e){return fetch(o+e).then((e=>e.blob()))}__serializeParams(e){return e?Object.entries(e).map((e=>this.__serializeParam(e))).join("\n"):null}__serializeParam(e){const[t,n]=e;return"filters"===t?this.__serializeFilters(n):`${t}=${n}`}__serializeFilters(e,t="filters="){return Array.isArray(e)?e.map(((e,t)=>this.__serializeFilters(e,`filters.${t+1}=`))).join("\n"):t+Object.entries(e).map((e=>"disableopeningexternalstores"===e[0]?e[0]:`${e[0]}:${e[1]}`)).join(";")}__mergeWithDefaults(e){if(!this.__defaultParams)return e;if(!e)return this.__defaultParams;const t={...this.__defaultParams,...e},n=this.__mergeWithDefaultFilters(e.filters);return n&&(t.filters=n),t}__mergeWithDefaultFilters(e){if(!this.__defaultParams?.filters)return e;if(!e)return this.__defaultParams.filters;if(!Array.isArray(this.__defaultParams.filters)&&!Array.isArray(e))return{...this.__defaultParams.filters,...e};throw new Error("Array filters are not yet supported!")}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(a),r.ɵɵinject(l,8))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac}),e})(),d=(()=>{class e{static forRoot(){return{ngModule:e,providers:[{provide:a,useValue:AutoScript},c]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({}),e})()}},e=>{e.O(0,[736],(()=>e(e.s=4431))),e.O()}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[429],{7435:(e,t,n)=>{n(8583)},8583:()=>{!function(e){const t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function i(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");const r=e.__Zone_symbol_prefix||"__zone_symbol__";function s(e){return r+e}const o=!0===e[s("forceDuplicateZoneCheck")];if(e.Zone){if(o||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let a=(()=>{class t{constructor(e,t){this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){if(e.Promise!==P.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=t.current;for(;e.parent;)e=e.parent;return e}static get current(){return D.zone}static get currentTask(){return L}static __load_patch(r,s,a=!1){if(P.hasOwnProperty(r)){if(!a&&o)throw Error("Already loaded patch: "+r)}else if(!e["__Zone_disable_"+r]){const o="Zone:"+r;n(o),P[r]=s(e,t,O),i(o,o)}}get parent(){return this._parent}get name(){return this._name}get(e){const t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const n=this._zoneDelegate.intercept(this,e,t),i=this;return function(){return i.runGuarded(n,this,arguments,t)}}run(e,t,n,i){D={parent:D,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,i)}finally{D=D.parent}}runGuarded(e,t=null,n,i){D={parent:D,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,i)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{D=D.parent}}runTask(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||b).name+"; Execution: "+this.name+")");if(e.state===x&&(e.type===T||e.type===E))return;const i=e.state!=S;i&&e._transitionTo(S,C),e.runCount++;const r=L;L=e,D={parent:D,zone:this};try{e.type==E&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{e.state!==x&&e.state!==I&&(e.type==T||e.data&&e.data.isPeriodic?i&&e._transitionTo(C,S):(e.runCount=0,this._updateTaskCount(e,-1),i&&e._transitionTo(x,S,x))),D=D.parent,L=r}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;t;){if(t===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);t=t.parent}}e._transitionTo(w,x);const t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(t){throw e._transitionTo(I,w,x),this._zoneDelegate.handleError(this,t),t}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==w&&e._transitionTo(C,w),e}scheduleMicroTask(e,t,n,i){return this.scheduleTask(new d(k,e,t,n,i,void 0))}scheduleMacroTask(e,t,n,i,r){return this.scheduleTask(new d(E,e,t,n,i,r))}scheduleEventTask(e,t,n,i,r){return this.scheduleTask(new d(T,e,t,n,i,r))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||b).name+"; Execution: "+this.name+")");e._transitionTo(M,C,S);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(I,M),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(x,M),e.runCount=0,e}_updateTaskCount(e,t){const n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(let i=0;i<n.length;i++)n[i]._updateTaskCount(e.type,t)}}return t.__symbol__=s,t})();const l={name:"",onHasTask:(e,t,n,i)=>e.hasTask(n,i),onScheduleTask:(e,t,n,i)=>e.scheduleTask(n,i),onInvokeTask:(e,t,n,i,r,s)=>e.invokeTask(n,i,r,s),onCancelTask:(e,t,n,i)=>e.cancelTask(n,i)};class c{constructor(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const i=n&&n.onHasTask;(i||t&&t._hasTaskZS)&&(this._hasTaskZS=i?n:l,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=l,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=l,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=l,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new a(e,t)}intercept(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}invoke(e,t,n,i,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,i,r):t.apply(n,i)}handleError(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}scheduleTask(e,t){let n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t),n||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=k)throw new Error("Task is missing scheduleFn.");v(t)}return n}invokeTask(e,t,n,i){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,i):t.callback.apply(n,i)}cancelTask(e,t){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(t){this.handleError(e,t)}}_updateTaskCount(e,t){const n=this._taskCounts,i=n[e],r=n[e]=i+t;if(r<0)throw new Error("More tasks executed then were scheduled.");0!=i&&0!=r||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}class d{constructor(t,n,i,r,s,o){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=n,this.data=r,this.scheduleFn=s,this.cancelFn=o,!i)throw new Error("callback is not defined");this.callback=i;const a=this;this.invoke=t===T&&r&&r.useG?d.invokeTask:function(){return d.invokeTask.call(e,a,this,arguments)}}static invokeTask(e,t,n){e||(e=this),A++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==A&&y(),A--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,w)}_transitionTo(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${t}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=e,e==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const u=s("setTimeout"),h=s("Promise"),p=s("then");let m,f=[],g=!1;function _(t){if(m||e[h]&&(m=e[h].resolve(0)),m){let e=m[p];e||(e=m.then),e.call(m,t)}else e[u](t,0)}function v(e){0===A&&0===f.length&&_(y),e&&f.push(e)}function y(){if(!g){for(g=!0;f.length;){const e=f;f=[];for(let t=0;t<e.length;t++){const n=e[t];try{n.zone.runTask(n,null,null)}catch(e){O.onUnhandledError(e)}}}O.microtaskDrainDone(),g=!1}}const b={name:"NO ZONE"},x="notScheduled",w="scheduling",C="scheduled",S="running",M="canceling",I="unknown",k="microTask",E="macroTask",T="eventTask",P={},O={symbol:s,currentZoneFrame:()=>D,onUnhandledError:N,microtaskDrainDone:N,scheduleMicroTask:v,showUncaughtError:()=>!a[s("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:N,patchMethod:()=>N,bindArguments:()=>[],patchThen:()=>N,patchMacroTask:()=>N,patchEventPrototype:()=>N,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>N,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>N,wrapWithCurrentZone:()=>N,filterProperties:()=>[],attachOriginToPatched:()=>N,_redefineProperty:()=>N,patchCallbacks:()=>N,nativeScheduleMicroTask:_};let D={parent:null,zone:new a(null,null)},L=null,A=0;function N(){}i("Zone","Zone"),e.Zone=a}(typeof window<"u"&&window||typeof self<"u"&&self||global);
|
|
960
|
+
return ii.isValid=function(){return this._isValid},ii.abs=function(){var e=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),e.milliseconds=kn(e.milliseconds),e.seconds=kn(e.seconds),e.minutes=kn(e.minutes),e.hours=kn(e.hours),e.months=kn(e.months),e.years=kn(e.years),this},ii.add=function(e,t){return En(this,e,t,1)},ii.subtract=function(e,t){return En(this,e,t,-1)},ii.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=V(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Pn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(On(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},ii.asMilliseconds=Ln,ii.asSeconds=An,ii.asMinutes=Nn,ii.asHours=Rn,ii.asDays=jn,ii.asWeeks=Fn,ii.asMonths=qn,ii.asQuarters=Yn,ii.asYears=Vn,ii.valueOf=Hn,ii._bubble=function(){var e,t,n,i,r,s=this._milliseconds,o=this._days,a=this._months,l=this._data;return s>=0&&o>=0&&a>=0||s<=0&&o<=0&&a<=0||(s+=864e5*Tn(On(a)+o),o=0,a=0),l.milliseconds=s%1e3,e=he(s/1e3),l.seconds=e%60,t=he(e/60),l.minutes=t%60,n=he(t/60),l.hours=n%24,o+=he(n/24),a+=r=he(Pn(o)),o-=Tn(On(r)),i=he(a/12),a%=12,l.days=o,l.months=a,l.years=i,this},ii.clone=function(){return zt(this)},ii.get=function(e){return e=V(e),this.isValid()?this[e+"s"]():NaN},ii.milliseconds=Bn,ii.seconds=Un,ii.minutes=Wn,ii.hours=$n,ii.days=Gn,ii.weeks=function(){return he(this.days()/7)},ii.months=Zn,ii.years=Kn,ii.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,s=Xn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(s=Object.assign({},Xn,t),null!=t.s&&null==t.ss&&(s.ss=t.s-1)),i=function(e,t,n,i){var r=zt(e).abs(),s=Qn(r.as("s")),o=Qn(r.as("m")),a=Qn(r.as("h")),l=Qn(r.as("d")),c=Qn(r.as("M")),d=Qn(r.as("w")),u=Qn(r.as("y")),h=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||o<=1&&["m"]||o<n.m&&["mm",o]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||u<=1&&["y"]||["yy",u])[2]=t,h[3]=+e>0,h[4]=i,Jn.apply(null,h)}(this,!r,s,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ii.toISOString=ni,ii.toString=ni,ii.toJSON=ni,ii.locale=en,ii.localeData=nn,ii.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ni),ii.lang=tn,R("X",0,0,"unix"),R("x",0,0,"valueOf"),ce("x",ie),ce("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),fe("x",(function(e,t,n){n._d=new Date(pe(e))})),r.version="2.30.1",t=kt,r.fn=xn,r.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=m,r.unix=function(e){return kt(1e3*e)},r.months=function(e,t){return Mn(e,t,"months")},r.isDate=u,r.locale=at,r.invalid=_,r.duration=zt,r.isMoment=w,r.weekdays=function(e,t,n){return In(e,t,n,"weekdays")},r.parseZone=function(){return kt.apply(null,arguments).parseZone()},r.localeData=ct,r.isDuration=Lt,r.monthsShort=function(e,t){return Mn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return In(e,t,n,"weekdaysMin")},r.defineLocale=lt,r.updateLocale=function(e,t){if(null!=t){var n,i,r=tt;null!=nt[e]&&null!=nt[e].parentLocale?nt[e].set(T(nt[e]._config,t)):(null!=(i=ot(e))&&(r=i._config),t=T(r,t),null==i&&(t.abbr=e),(n=new P(t)).parentLocale=nt[e],nt[e]=n),at(e)}else null!=nt[e]&&(null!=nt[e].parentLocale?(nt[e]=nt[e].parentLocale,e===at()&&at(e)):null!=nt[e]&&delete nt[e]);return nt[e]},r.locales=function(){return M(nt)},r.weekdaysShort=function(e,t,n){return In(e,t,n,"weekdaysShort")},r.normalizeUnits=V,r.relativeTimeRounding=function(e){return void 0===e?Qn:"function"==typeof e&&(Qn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Xn[e]&&(void 0===t?Xn[e]:(Xn[e]=t,"s"===e&&(Xn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=xn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},6700:(e,t,n)=>{var i={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-ps":4523,"./ar-ps.js":4523,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku-kmr":3775,"./ku-kmr.js":3775,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function r(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=s,e.exports=r,r.id=6700}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[281],{6281:(e,t,n)=>{n.r(t),n.d(t,{ClientCertModule:()=>Qe});var i=n(6895),r=n(6383),s=n(5592),o=n(8739),a=n(7155),l=n(6308),c=n(6709),d=n(7392),u=n(9101),h=n(1561),p=n(4006),m=n(266),f=n(4385),g=n(811),_=n(5601),v=n(3798),y=n(9391),b=n(1572),x=n(182),w=n(4144),C=n(7367),S=n(9602),M=n(3238),I=n(5895),k=n(6257),E=n(1948),T=n(4246),P=n(9299),O=n(6e3),D=n(5861),L=n(7582),A=n(9549),N=n(9933),R=n(5762),j=n(8259),F=n(2340),q=n(1363),Y=n(6830),V=n(4650),H=n(5089),z=n(5412),B=n(4302),U=n(3731);function W(e,t){if(1&e&&(V.ɵɵelementStart(0,"span"),V.ɵɵtext(1),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}function $(e,t){if(1&e&&(V.ɵɵelementStart(0,"span"),V.ɵɵtext(1),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵtextInterpolate2("¿No has recibido el código en el teléfono acabado en ",e.lastNumberPhone,"? Solicítalo de nuevo en ",e.secsCount," segundos")}}const G=function(e,t,n){return{color:e,border:t,background:n}};function Z(e,t){if(1&e&&(V.ɵɵelementContainerStart(0),V.ɵɵelementStart(1,"small",11),V.ɵɵtemplate(2,W,2,1,"span",5),V.ɵɵtemplate(3,$,2,2,"span",5),V.ɵɵelementEnd(),V.ɵɵelementContainerEnd()),2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵproperty("ngStyle",V.ɵɵpureFunction3(3,G,e.data.styles.colors.accentColor,"1px solid "+e.data.styles.colors.accentColor,e.data.styles.colors.accentBgColor)),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.lastNumberPhone),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",e.lastNumberPhone)}}function K(e,t){1&e&&(V.ɵɵelementStart(0,"span"),V.ɵɵtext(1," ¿No has recibido el código en tu teléfono? "),V.ɵɵelementEnd())}function Q(e,t){if(1&e&&(V.ɵɵelementStart(0,"span"),V.ɵɵtext(1),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵtextInterpolate1(" ¿No has recibido el código en el teléfono acabado en ",e.lastNumberPhone,"? ")}}const X=function(e,t){return{color:e,background:t}};function J(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementContainerStart(0),V.ɵɵelementStart(1,"small",11),V.ɵɵtemplate(2,K,2,0,"span",5),V.ɵɵtemplate(3,Q,2,1,"span",5),V.ɵɵelementStart(4,"a",12),V.ɵɵlistener("click",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext();return V.ɵɵresetView(t.resendOTP())})),V.ɵɵtext(5,"Reenviar"),V.ɵɵelementEnd()(),V.ɵɵelementContainerEnd()}if(2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵproperty("ngStyle",V.ɵɵpureFunction3(4,G,e.data.styles.colors.dangerColor,"1px solid "+e.data.styles.colors.dangerColor,e.data.styles.colors.dangerBgColor)),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.lastNumberPhone),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",e.lastNumberPhone),V.ɵɵadvance(1),V.ɵɵproperty("ngStyle",V.ɵɵpureFunction2(8,X,e.data.styles.colors.dangerTextButtonColor,e.data.styles.colors.dangerColor))}}let ee=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.solucitudesService=n,this.activeRoute=i,this.next=new V.EventEmitter(null),this.errPhone=new V.EventEmitter(null),this.resendO=new V.EventEmitter(null),this.secsCount=60,this.lastNumberPhone="XXX"}ngOnInit(){this.form=this.fb.group({code1:[null,[p.Validators.required,p.Validators.maxLength(6),p.Validators.minLength(6)]]}),this.initSecsInterval(),this.activeRoute.queryParams.subscribe((e=>{e&&e.request_id&&(this.requestID=e.request_id)}),(e=>{console.error(e)})),this.solicitud&&this.solicitud.person_phone&&this.setPhone(this.solicitud.person_phone)}setPhone(e){let t="XXX";e&&(t=(""+e).slice(-3)),this.lastNumberPhone=t}initSecsInterval(){this.interv=setInterval((()=>{this.secsCount--,this.secsCount<=0&&this.finishSecsInterval()}),1e3)}finishSecsInterval(){this.interv&&clearInterval(this.interv)}nextStep(){let e={code:this.getCode()};this.next.emit(e)}getCode(){return this.form.get("code1").value}capturePasteEvent(e){return(0,D.Z)((function*(){}))()}errorStep(){this.errPhone.emit(!0)}setInputEvent(e){""!=e.target.value?j(e.target).next().focus():"Backspace"==e.code&&j(e.target).prev().focus()}resendOTP(){this.resendO.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(P.gz))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-otp-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep",errPhone:"errorPhone",resendO:"resendOTP"},decls:16,vars:20,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"title","py-2"],[4,"ngIf"],[1,"flex","gap-2","items-center","justify-start","w-full","max-w-[200px]"],["appearance","outline",1,"w-full","flex-1"],["tabindex","1","maxlength","6","minlength","1","formControlName","code1","type","text","matInput","",3,"change","keyup"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","next-button","mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"],[1,"info-time","w-fit",3,"ngStyle"],[1,"ml-4",3,"ngStyle","click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementStart(5,"div",4),V.ɵɵtemplate(6,Z,4,7,"ng-container",5),V.ɵɵtemplate(7,J,6,11,"ng-container",5),V.ɵɵelementEnd(),V.ɵɵelementStart(8,"div",6)(9,"mat-form-field",7)(10,"mat-label"),V.ɵɵtext(11," Código OTP "),V.ɵɵelementEnd(),V.ɵɵelementStart(12,"input",8),V.ɵɵlistener("change",(function(e){return t.capturePasteEvent(e)}))("keyup",(function(e){return t.setInputEvent(e)})),V.ɵɵelementEnd()()()(),V.ɵɵelementStart(13,"div",9)(14,"button",10),V.ɵɵlistener("click",(function(){return t.nextStep()})),V.ɵɵtext(15,"Siguiente"),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵproperty("formGroup",t.form),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.otp.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,18,t.texts.otp.description||""),V.ɵɵsanitizeHtml),V.ɵɵadvance(3),V.ɵɵproperty("ngIf",t.secsCount&&t.secsCount>0),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!t.secsCount||t.secsCount<=0),V.ɵɵadvance(7),V.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),V.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,i.PC,u.lW,A.KE,A.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,U.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function te(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",1),V.ɵɵelement(1,"div",2)(2,"div",3),V.ɵɵpipe(3,"safeHtml"),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",e.texts.success.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",e.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(3,8,e.texts.success.description||""),V.ɵɵsanitizeHtml)}}let ne=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r}ngOnInit(){}save(){}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(y.o),V.ɵɵdirectiveInject(I.T))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-success-step"]],inputs:{data:"data",texts:"texts"},decls:1,vars:1,consts:[["class"," pt-4 pb-8 flex flex-col animated fadeIn",4,"ngIf"],[1,"pt-4","pb-8","flex","flex-col","animated","fadeIn"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&V.ɵɵtemplate(0,te,4,10,"div",0),2&e&&V.ɵɵproperty("ngIf",!t.data.config.infiniteLoopInCompleted)},dependencies:[i.O5,U.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function ie(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",5)(1,"button",6),V.ɵɵlistener("click",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext();return V.ɵɵresetView(t.retry())})),V.ɵɵtext(2,"Intentarlo nuevamente"),V.ɵɵelementEnd()()}if(2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}function re(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",5)(1,"button",7),V.ɵɵlistener("click",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext();return V.ɵɵresetView(t.newRequest())})),V.ɵɵtext(2,"Crear nueva solicitud"),V.ɵɵelementEnd()()}if(2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}let se=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryOp=new V.EventEmitter(null),this.newReq=new V.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryOp.emit(this.solicitud.request_id)}newRequest(){this.newReq.emit(this.solicitud.request_id)}getIfRetryIsAllowed(){return"failed_with_retry"==this.solicitud}getIfNewRequestIsAllowed(){return"failed_documents_downloaded"==this.solicitud}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(y.o),V.ɵɵdirectiveInject(I.T))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-fail-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{retryOp:"retry",newReq:"newRequest"},decls:7,vars:8,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"text-red-500","title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],["class","flex items-center justify-end gap-2 p-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"div",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementEnd(),V.ɵɵtemplate(5,ie,3,6,"div",4),V.ɵɵtemplate(6,re,3,6,"div",4),V.ɵɵelementEnd()),2&e&&(V.ɵɵadvance(2),V.ɵɵproperty("innerHTML",t.texts.fail.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,6,t.texts.fail.description),V.ɵɵsanitizeHtml),V.ɵɵadvance(2),V.ɵɵproperty("ngIf",t.solicitud&&"failed_with_retry"==t.solicitud.status_code),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.solicitud&&"failed_documents_downloaded"==t.solicitud.status_code))},dependencies:[i.O5,u.lW,U.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();n(6866);var oe=n(3848),ae=n(1763),le=n(5696);function ce(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",22)(1,"belender-checkbox",20),V.ɵɵlistener("changeCheckbox",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(2);return V.ɵɵresetView(n.setAssignment(t))})),V.ɵɵelement(2,"div",25),V.ɵɵelementEnd()()}if(2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("color",e.data.styles.colors.title),V.ɵɵadvance(1),V.ɵɵproperty("innerHTML",null==e.data?null:e.data.config.dataAssignmentText,V.ɵɵsanitizeHtml)}}function de(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",12)(1,"mat-form-field",13)(2,"mat-label"),V.ɵɵtext(3,"Nombre"),V.ɵɵelementEnd(),V.ɵɵelement(4,"input",14),V.ɵɵelementEnd(),V.ɵɵelementStart(5,"mat-form-field",13)(6,"mat-label"),V.ɵɵtext(7,"Primer apellido"),V.ɵɵelementEnd(),V.ɵɵelement(8,"input",15),V.ɵɵelementEnd(),V.ɵɵelementStart(9,"mat-form-field",13)(10,"mat-label"),V.ɵɵtext(11,"Segundo apellido"),V.ɵɵelementEnd(),V.ɵɵelement(12,"input",16),V.ɵɵelementEnd(),V.ɵɵelementStart(13,"mat-form-field",17)(14,"mat-label"),V.ɵɵtext(15,"DNI"),V.ɵɵelementEnd(),V.ɵɵelement(16,"input",18),V.ɵɵelementEnd(),V.ɵɵelementStart(17,"div",19)(18,"belender-checkbox",20),V.ɵɵlistener("changeCheckbox",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext();return V.ɵɵresetView(n.setTerms2(t))})),V.ɵɵelementStart(19,"belender-terms-and-policy-links",21),V.ɵɵlistener("goToTerms",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext();return V.ɵɵresetView(n.gotoTermsAndConditions(t))})),V.ɵɵelementEnd()()(),V.ɵɵelementStart(20,"div",22)(21,"belender-checkbox",20),V.ɵɵlistener("changeCheckbox",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext();return V.ɵɵresetView(n.setTerms(t))})),V.ɵɵtext(22," He leído y acepto los "),V.ɵɵelementStart(23,"a",23),V.ɵɵlistener("click",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext();return V.ɵɵresetView(n.gotoTermsAndConditionsCertificate(t))})),V.ɵɵelementStart(24,"u"),V.ɵɵtext(25,"términos y condiciones"),V.ɵɵelementEnd()(),V.ɵɵtext(26," para la emisión del certificado "),V.ɵɵelementEnd()(),V.ɵɵtemplate(27,ce,3,2,"div",24),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(18),V.ɵɵproperty("color",e.data.styles.colors.title),V.ɵɵadvance(1),V.ɵɵproperty("userId",e.userId)("showPolicyLink",null==e.data?null:e.data.config.showPolicyLink),V.ɵɵadvance(2),V.ɵɵproperty("color",e.data.styles.colors.title),V.ɵɵadvance(6),V.ɵɵproperty("ngIf",null==e.data?null:e.data.config.dataAssignmentCheck)}}function ue(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",19)(1,"belender-checkbox",20),V.ɵɵlistener("changeCheckbox",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(2);return V.ɵɵresetView(n.setTerms2(t))})),V.ɵɵelementStart(2,"belender-terms-and-policy-links",21),V.ɵɵlistener("goToTerms",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(2);return V.ɵɵresetView(n.gotoTermsAndConditions(t))})),V.ɵɵelementEnd()()()}if(2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("color",e.data.styles.colors.title),V.ɵɵadvance(1),V.ɵɵproperty("userId",e.userId)("showPolicyLink",null==e.data?null:e.data.config.showPolicyLink)}}function he(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",22)(1,"belender-checkbox",20),V.ɵɵlistener("changeCheckbox",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(2);return V.ɵɵresetView(n.setAssignment(t))})),V.ɵɵelement(2,"div",25),V.ɵɵelementEnd()()}if(2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("color",e.data.styles.colors.title),V.ɵɵadvance(1),V.ɵɵproperty("innerHTML",null==e.data?null:e.data.config.dataAssignmentText,V.ɵɵsanitizeHtml)}}function pe(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",12)(1,"mat-form-field",13)(2,"mat-label"),V.ɵɵtext(3,"Nombre"),V.ɵɵelementEnd(),V.ɵɵelement(4,"input",14),V.ɵɵelementEnd(),V.ɵɵelementStart(5,"mat-form-field",13)(6,"mat-label"),V.ɵɵtext(7,"Primer apellido"),V.ɵɵelementEnd(),V.ɵɵelement(8,"input",15),V.ɵɵelementEnd(),V.ɵɵelementStart(9,"mat-form-field",13)(10,"mat-label"),V.ɵɵtext(11,"Segundo apellido"),V.ɵɵelementEnd(),V.ɵɵelement(12,"input",16),V.ɵɵelementEnd(),V.ɵɵelementStart(13,"mat-form-field",17)(14,"mat-label"),V.ɵɵtext(15,"DNI"),V.ɵɵelementEnd(),V.ɵɵelement(16,"input",18),V.ɵɵelementEnd(),V.ɵɵelementStart(17,"mat-form-field",17)(18,"mat-label"),V.ɵɵtext(19,"Razón social"),V.ɵɵelementEnd(),V.ɵɵelement(20,"input",26),V.ɵɵelementEnd(),V.ɵɵelementStart(21,"mat-form-field",17)(22,"mat-label"),V.ɵɵtext(23,"CIF"),V.ɵɵelementEnd(),V.ɵɵelement(24,"input",27),V.ɵɵelementEnd(),V.ɵɵtemplate(25,ue,3,3,"div",28),V.ɵɵelementStart(26,"div",22)(27,"belender-checkbox",20),V.ɵɵlistener("changeCheckbox",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext();return V.ɵɵresetView(n.setTerms(t))})),V.ɵɵtext(28," He leído y acepto los "),V.ɵɵelementStart(29,"a",23),V.ɵɵlistener("click",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext();return V.ɵɵresetView(n.gotoTermsAndConditionsCertificate(t))})),V.ɵɵelementStart(30,"u"),V.ɵɵtext(31,"términos y condiciones"),V.ɵɵelementEnd()(),V.ɵɵtext(32," para la emisión del certificado "),V.ɵɵelementEnd()(),V.ɵɵtemplate(33,he,3,2,"div",24),V.ɵɵelementStart(34,"h1"),V.ɵɵtext(35,"safdsfds"),V.ɵɵelementEnd()()}if(2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(25),V.ɵɵproperty("ngIf",!e.data.config.hideCheckLegal),V.ɵɵadvance(2),V.ɵɵproperty("color",e.data.styles.colors.title),V.ɵɵadvance(6),V.ɵɵproperty("ngIf",null==e.data?null:e.data.config.dataAssignmentCheck)}}function me(e,t){1&e&&(V.ɵɵelementStart(0,"div",29),V.ɵɵelement(1,"mat-icon",30),V.ɵɵtext(2," Debes leer y aceptar ambos términos y condiciones para poder continuar "),V.ɵɵelementEnd())}function fe(e,t){1&e&&(V.ɵɵelementContainerStart(0),V.ɵɵelementStart(1,"div",29),V.ɵɵelement(2,"mat-icon",30),V.ɵɵtext(3," Debes aceptar los términos de poder digital "),V.ɵɵelementEnd(),V.ɵɵelementContainerEnd())}const ge={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let _e=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.next=new V.EventEmitter(null),this.goTerms=new V.EventEmitter(null),this.goTermsCert=new V.EventEmitter(null),this.acceptTerms=!1,this.acceptTerms2=!1,this.termsReaded=!1,this.terms2Readed=!1,this.step=0,this.assignment=!1}ngOnInit(){console.error(this.solicitud),this.setForm(this.solicitud?this.solicitud:null)}tabChanged(e){this.step=e,this.setForm(null)}setForm(e){let t=e?e.person_document_number||e.phone:null,n=e&&e.razon_social?e.razon_social:null,i=e&&e.cif?e.cif:null,r=e&&e.person_name?e.person_name:null,s=e&&e.person_last_name?e.person_last_name:null;this.form=this.fb.group(this.step&&0!=this.step?{name:[r||null,[p.Validators.required]],lastname:[s||null,[p.Validators.required]],lastname2:[s||null,[p.Validators.required]],dni:[t||null,[p.Validators.required,p.Validators.maxLength(9),p.Validators.minLength(9)]],razon:[n||null,[p.Validators.required]],cif:[i||null,[p.Validators.required]]}:{name:[r||null,[p.Validators.required]],lastname:[s||null,[p.Validators.required]],lastname2:[s||null,[p.Validators.required]],dni:[t||null,[p.Validators.required,p.Validators.maxLength(9),p.Validators.minLength(9)]]})}nextStep(){let e;e=this.step&&0!=this.step?{name:this.form.get("name").value,lastname:this.form.get("lastname").value,lastname2:this.form.get("lastname2").value,dni:this.form.get("dni").value,razon:this.form.get("razon").value,cif:this.form.get("cif").value}:{name:this.form.get("name").value,lastname:this.form.get("lastname").value,lastname2:this.form.get("lastname2").value,dni:this.form.get("dni").value},this.next.emit(e)}gotoTermsAndConditions(e){e.preventDefault(),e.stopPropagation(),this.termsReaded=!0,this.goTerms.emit(!0)}gotoTermsAndConditionsCertificate(e){e.preventDefault(),e.stopPropagation(),this.terms2Readed=!0,this.goTermsCert.emit(!0)}setAssignment(e){this.assignment=e}getAssignmentValidation(){return!!(!this.data.config.forceChecks||this.termsReaded&&this.terms2Readed)&&(!this.data.config.dataAssignmentCheck||this.assignment)}setTerms(e){this.acceptTerms=e}setTerms2(e){this.acceptTerms2=e}getIsValid(){return(this.data.config.hideCheckLegal||this.acceptTerms)&&this.acceptTerms2}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],inputs:{userId:"userId",flowName:"flowName",data:"data",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep",goTerms:"goToTerms",goTermsCert:"goToTermsCertificate"},features:[V.ɵɵProvidersFeature([{provide:M.sG,useValue:ge},{provide:V.LOCALE_ID,useValue:"es-ES"}])],decls:15,vars:23,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4","custom-html",3,"innerHTML"],[3,"selectedIndex","selectedIndexChange"],["label","Persona física"],["class","my-3 flex flex-col md:flex-row flex-wrap gap-2 md:justify-between",4,"ngIf"],["label","Persona jurídica"],["class","px-2 flex items-center gap-2 py-2 rounded-sm mt-3 bg-orange-500/10 text-orange-500",4,"ngIf"],[4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"],[1,"my-3","flex","flex-col","md:flex-row","flex-wrap","gap-2","md:justify-between"],["appearance","outline",1,"w-full","flex-1","belender-form-field"],["formControlName","name","matInput",""],["formControlName","lastname","matInput",""],["formControlName","lastname2","matInput",""],["appearance","outline",1,"mb-4","w-full","flex-1","belender-form-field"],["formControlName","dni","maxlength","9","placeholder","Ej: 12345678R","matInput",""],[1,"mt-8","flex","justify-start","items-center","w-full","flex-100"],[3,"color","changeCheckbox"],[3,"userId","showPolicyLink","goToTerms"],[1,"mt-3","flex","justify-start","items-center","w-full","flex-100"],["target","_blank",1,"text-sm","hover:text-blue-500",3,"click"],["class","mt-3 flex justify-start items-center w-full flex-100",4,"ngIf"],[1,"custom-html",3,"innerHTML"],["formControlName","razon","placeholder","Ej: Mi Empresa","type","text","matInput",""],["formControlName","cif","placeholder","Ej: 123123123","type","text","matInput",""],["class","mt-8 flex justify-start items-center w-full flex-100",4,"ngIf"],[1,"px-2","flex","items-center","gap-2","py-2","rounded-sm","mt-3","bg-orange-500/10","text-orange-500"],["svgIcon","mat:warning",1,"text-xs","w-4","h-4"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementEnd(),V.ɵɵelementStart(5,"mat-tab-group",4),V.ɵɵlistener("selectedIndexChange",(function(e){return t.tabChanged(e)})),V.ɵɵelementStart(6,"mat-tab",5),V.ɵɵtemplate(7,de,28,5,"div",6),V.ɵɵelementEnd(),V.ɵɵelementStart(8,"mat-tab",7),V.ɵɵtemplate(9,pe,36,3,"div",6),V.ɵɵelementEnd()(),V.ɵɵtemplate(10,me,3,0,"div",8),V.ɵɵtemplate(11,fe,4,0,"ng-container",9),V.ɵɵelementStart(12,"div",10)(13,"button",11),V.ɵɵlistener("click",(function(){return t.nextStep()})),V.ɵɵtext(14," Siguiente "),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵproperty("formGroup",t.form),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.form.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,21,t.texts.form.description||""),V.ɵɵsanitizeHtml),V.ɵɵadvance(2),V.ɵɵproperty("selectedIndex",t.step),V.ɵɵadvance(2),V.ɵɵproperty("ngIf",0==t.step),V.ɵɵadvance(2),V.ɵɵproperty("ngIf",1==t.step),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.data.config.forceChecks&&!t.termsReaded),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",(null==t.data?null:t.data.config.activatePower)&&!(null!=t.solicitud&&t.solicitud.power_activate)),V.ɵɵadvance(2),V.ɵɵstyleProp("color",!t.form.invalid&&t.getIsValid()&&t.getAssignmentValidation()?t.data.styles.colors.btnText:"")("background",!t.form.invalid&&t.getIsValid()&&t.getAssignmentValidation()?t.data.styles.colors.btnBg:"")("border-radius",t.data.styles.btnRound+"px"),V.ɵɵproperty("disabled",t.form.invalid||!t.getIsValid()||!t.getAssignmentValidation()))},dependencies:[i.O5,d.Hw,u.lW,A.KE,A.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,oe.SP,oe.uX,ae.b,le.T,U.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();var ve=n(5145);let ye=(()=>{class e{constructor(e){this.utils=e,this.status="",this.label="Cargando datos.."}ngOnInit(){this.data.config&&this.data.config.infiniteLoopInCompleted?this.label="":ve.Z.forEach((e=>{e.text==this.status&&(this.label=e.label)}))}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(H.F))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-loading-step"]],inputs:{status:"status",data:"data"},decls:5,vars:1,consts:[[1,"fixed-content","h-full"],[1,"h-full","py-10","flex","flex-col","items-center"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"div",0)(1,"div",1),V.ɵɵelement(2,"mat-progress-spinner"),V.ɵɵelementStart(3,"p"),V.ɵɵtext(4),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵadvance(4),V.ɵɵtextInterpolate(t.label))},dependencies:[b.Ou],styles:[".content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),be=(()=>{class e{constructor(){}ngOnInit(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-no-service-step"]],inputs:{data:"data",texts:"texts"},decls:5,vars:10,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementEnd()()),2&e&&(V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.noService.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,8,t.texts.noService.description),V.ɵɵsanitizeHtml))},dependencies:[p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm,U.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),xe=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryOp=new V.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryOp.emit(this.solicitud.request_id)}getTextStatus(){switch(this.solicitud.status_code){case"abandoned_after_waiting_otp_seguridad_social":return"Abandonado después de esperar OTP de Seguridad Social";case"abandoned_after_invalid_otp_seguridad_social":return"Abandonado despues de OTP inválido en Seguridad Social";case"abandoned_after_invalid_otp_aeat":return"Abandonado despues de OTP inválido en AEAT";case"abandoned_after_waiting_otp_aeat":return"Abandonado después de esperar OTP de AEAT";default:return this.solicitud.status_code}}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(y.o),V.ɵɵdirectiveInject(I.T))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-abandoned-step"]],inputs:{solicitud:"solicitud",data:"data",texts:"texts"},outputs:{retryOp:"retry"},decls:10,vars:17,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-md","mb-2","mt-2"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"div",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementStart(5,"div",4),V.ɵɵtext(6),V.ɵɵelementEnd()(),V.ɵɵelementStart(7,"div",5)(8,"button",6),V.ɵɵlistener("click",(function(){return t.retry()})),V.ɵɵtext(9,"Intentarlo nuevamente"),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.abandoned.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,15,t.texts.abandoned.description),V.ɵɵsanitizeHtml),V.ɵɵadvance(3),V.ɵɵtextInterpolate1(" Estado: ",t.getTextStatus()," "),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW,U.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();var we=n(1406);function Ce(e,t){1&e&&(V.ɵɵelementStart(0,"mat-hint",12),V.ɵɵtext(1," La contraseña es requerida "),V.ɵɵelementEnd())}function Se(e,t){1&e&&(V.ɵɵelementStart(0,"mat-hint",12),V.ɵɵtext(1," La contraseña debe tener al menos 8 carácteres "),V.ɵɵelementEnd())}const Me={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let Ie=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.form=new p.FormGroup({}),this.next=new V.EventEmitter(null)}ngOnInit(){this.setForm()}get f(){return this.form.controls}submit(){this.nextStep()}setForm(){this.form=this.fb.group({password:["",[p.Validators.required]]})}nextStep(){let e={password:this.form.get("password").value};this.next.emit(e)}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.FormBuilder),V.ɵɵdirectiveInject(H.F))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-password-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep"},features:[V.ɵɵProvidersFeature([{provide:M.sG,useValue:Me},{provide:V.LOCALE_ID,useValue:"es-ES"}])],decls:17,vars:20,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"my-3","flex","flex-col","md:flex-row","flex-wrap","gap-2","md:justify-between"],[1,"w-full","mb-3"],["label","Seleccione archivo de certificado (.p12)",1,"w-full"],["appearance","outline",1,"w-full","flex-1","belender-form-field"],["formControlName","password","minlength","8","type","password","matInput",""],["class","text-red-500",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"],[1,"text-red-500"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementEnd(),V.ɵɵelementStart(5,"div",4)(6,"div",5),V.ɵɵelement(7,"app-file-upload",6),V.ɵɵelementEnd(),V.ɵɵelementStart(8,"mat-form-field",7)(9,"mat-label"),V.ɵɵtext(10,"Contraseña"),V.ɵɵelementEnd(),V.ɵɵelement(11,"input",8),V.ɵɵtemplate(12,Ce,2,0,"mat-hint",9),V.ɵɵtemplate(13,Se,2,0,"mat-hint",9),V.ɵɵelementEnd()(),V.ɵɵelementStart(14,"div",10)(15,"button",11),V.ɵɵlistener("click",(function(){return t.nextStep()})),V.ɵɵtext(16," Guardar "),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵproperty("formGroup",t.form),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.password.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,18,t.texts.password.description),V.ɵɵsanitizeHtml),V.ɵɵadvance(9),V.ɵɵproperty("ngIf",t.f.password.touched&&t.f.password.invalid&&t.f.password.errors.required),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.f.password.invalid&&t.f.password.errors.minlength),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.form.invalid?"":t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),V.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,u.lW,A.KE,A.bx,A.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.FormGroupDirective,p.FormControlName,we.Y,U.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function ke(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",7),V.ɵɵelement(1,"img",8),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("src",e.data.styles.logoUrl,V.ɵɵsanitizeUrl)}}function Ee(e,t){if(1&e&&V.ɵɵelement(0,"belender-loading-step",18),2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("status",null==e.solicitud?null:e.solicitud.status_code)("data",e.data)}}function Te(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-form-step",19),V.ɵɵlistener("goToTerms",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext(3);return V.ɵɵresetView(t.gotoTermsAndConditions())}))("goToTermsCertificate",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext(3);return V.ɵɵresetView(t.gotoTermsAndConditionsCertificate())}))("nextStep",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.gotoPassword(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("userId",e.userId)("data",e.data)("flowName",e.flowName)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Pe(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-password-step",20),V.ɵɵlistener("nextStep",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.sendPassword(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Oe(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-otp-step",21),V.ɵɵlistener("resendOTP",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext(3);return V.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.requestOTP(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function De(e,t){if(1&e&&V.ɵɵelement(0,"belender-success-step",22),2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)}}function Le(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-fail-step",23),V.ɵɵlistener("retry",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.retryRequest(t))}))("newRequest",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.newRequest(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Ae(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-abandoned-step",24),V.ɵɵlistener("retry",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.retryRequest(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("solicitud",e.solicitud)("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)}}function Ne(e,t){if(1&e&&V.ɵɵelement(0,"belender-no-service-step",25),2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("data",e.data)}}function Re(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",26)(1,"div",27)(2,"h1",28),V.ɵɵtext(3,"No existe la solicitud"),V.ɵɵelementEnd()(),V.ɵɵelementStart(4,"div",29),V.ɵɵtext(5,"No existen solicitudes activas con el código requerido"),V.ɵɵelementEnd()()),2&e){const e=V.ɵɵnextContext(3);V.ɵɵadvance(4),V.ɵɵstyleProp("color",e.data.styles.colors.text)}}function je(e,t){if(1&e&&(V.ɵɵelementContainerStart(0),V.ɵɵtemplate(1,Ee,1,2,"belender-loading-step",9),V.ɵɵtemplate(2,Te,1,5,"belender-form-step",10),V.ɵɵtemplate(3,Pe,1,3,"belender-password-step",11),V.ɵɵtemplate(4,Oe,1,3,"belender-otp-step",12),V.ɵɵtemplate(5,De,1,2,"belender-success-step",13),V.ɵɵtemplate(6,Le,1,3,"belender-fail-step",14),V.ɵɵtemplate(7,Ae,1,3,"belender-abandoned-step",15),V.ɵɵtemplate(8,Ne,1,2,"belender-no-service-step",16),V.ɵɵtemplate(9,Re,6,2,"div",17),V.ɵɵelementContainerEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("ngIf","loading"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","form"==e.getStatus()&&!e.loading),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","password"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","otp"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","success"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","failed"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","abandoned"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","no-service"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","no-exist"==e.getStatus())}}function Fe(e,t){1&e&&V.ɵɵelement(0,"belender-disabled-url")}function qe(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",30),V.ɵɵelement(1,"mat-progress-spinner",31),V.ɵɵelementStart(2,"p",32),V.ɵɵtext(3),V.ɵɵelementEnd()()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("value",e.spinnerValue)("mode",e.spinnerMode),V.ɵɵadvance(2),V.ɵɵtextInterpolate(e.loading)}}function Ye(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",33)(1,"div",26)(2,"div",34),V.ɵɵtext(3,"Error!"),V.ɵɵelementEnd(),V.ɵɵelement(4,"div",35),V.ɵɵelementEnd(),V.ɵɵelementStart(5,"div",36)(6,"button",37),V.ɵɵlistener("click",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext(2);return V.ɵɵresetView(t.error=!1)})),V.ɵɵtext(7,"Ingresar manualmente"),V.ɵɵelementEnd()()()}if(2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(4),V.ɵɵstyleProp("color",e.data.styles.colors.text),V.ɵɵproperty("innerHTML",e.error,V.ɵɵsanitizeHtml)}}function Ve(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",2)(1,"div",3),V.ɵɵtemplate(2,ke,2,1,"div",4),V.ɵɵtemplate(3,je,10,9,"ng-container",1),V.ɵɵtemplate(4,Fe,1,0,"belender-disabled-url",1),V.ɵɵtemplate(5,qe,4,3,"div",5),V.ɵɵtemplate(6,Ye,8,3,"div",6),V.ɵɵelementEnd()()),2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵstyleProp("background",e.data.styles.colors.background),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",e.data.styles.withLogo&&"loading"!=e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.error&&!e.disableURL),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.error&&e.disableURL),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",e.loading&&!e.error),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.loading&&e.error)}}function He(e,t){if(1&e&&(V.ɵɵelementContainerStart(0),V.ɵɵelementStart(1,"div",38),V.ɵɵtext(2),V.ɵɵelementEnd(),V.ɵɵelementContainerEnd()),2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(2),V.ɵɵtextInterpolate1("TestMode ",e.testMode?"ON":"OFF","")}}let ze=class{constructor(e,t,n,i,r,s,o,a){this.cd=e,this.Activatedroute=t,this.utils=n,this.solicitudesService=i,this.customizationService=r,this.notis=s,this.webhooksService=o,this.dialog=a,this.data=null,this.disableActions=!1,this.step="created",this.waitingTime=15,this.loading=null,this.error=!1,this.spinnerMode="indeterminate",this.spinnerValue=0,this.subscribed=!1,this.testMode=!1,this.cntrlIsPressed=!1,this.shiftlIsPressed=!1,this.skipCreationOfRequest=!1,this.autoAcceptTerms=!1,this.disableURL=!1,this.flowName="ClientCertificate"}ngOnInit(){const e=this;this.loading="Obteniendo información de la solicitud",this.Activatedroute.params.subscribe((e=>{this.utils.setLoading(!1),e&&e.idUser?(this.userId=e.idUser,this.setInitialData(this.userId)):this.loading=!1,e&&e.packID&&(this.packId=e.packID)}),(e=>{this.loading=!1})),"pro"!=F.N.env&&(j(document).keydown((function(t){16==t.which&&(this.shiftlIsPressed=!0),17==t.which&&(this.cntrlIsPressed=!0),84==t.which&&this.cntrlIsPressed&&this.shiftlIsPressed&&(e.testMode=!e.testMode,e.cd.markForCheck())})),j(document).keyup((function(e){16==e.which&&(this.shiftlIsPressed=!1),16==e.which&&(this.cntrlIsPressed=!1)})))}ngOnDestroy(){}sendMessageToParent(e){window.top.postMessage(e,"*")}setInitialData(e){this.customizationService.getCustomization(e).then((e=>{console.error("customi:",e),e&&(this.data=e,this.disableURL=e.config.disableUrlWidget,this.financiadorID=e.funder_id||"",this.validateRequestIdInUrl(),this.cd.markForCheck()),this.loading=!1}),(e=>{console.error(e),this.loading=!1}))}validateRequestIdInUrl(){this.Activatedroute.queryParams.subscribe((e=>{e&&e.acceptTerms&&(this.autoAcceptTerms=!0),e&&e.request_id?(this.disableURL=!1,this.requestID=e.request_id,this.setFormFromVcCode(e.request_id)):this.loading=!1}),(e=>{this.loading=!1}))}setFormFromVcCode(e){var t=this;return(0,D.Z)((function*(){t.loading="Obteniendo datos de la solicitud...",t.solicitudesService.getSolicitudByCode(e).then((e=>{e&&e.data?(t.solicitud=e.data,t.setSubscriptionOfRequest(),t.loading=!1,t.skipCreationOfRequest=!0,t.autoAcceptTerms&&t.gotoPassword()):t.loading=!1})).catch((e=>{t.loading=!1}))}))()}setSubscriptionOfRequest(){if(this.socket)return;let e="wss://notifications.dev.belender.net";"qa"==F.N.env&&(e="wss://notifications.qa.belender.net"),"pro"==F.N.env&&(e="wss://notifications.belender.net"),F.N.notificationsBaseUrl&&(e=F.N.notificationsBaseUrl),this.socket=new WebSocket(`${e}?requests_id=${this.requestID}&user_id=${this.userId}`);var t=this;this.socket.onopen=function(e){console.log("Conexión establecida")},this.socket.onmessage=function(e){let n=JSON.parse(e.data);console.warn(n),t.handlePusherNotification(n)},this.socket.onerror=function(e){console.log("WebSocket Error: "+e),console.error(e),t.setSubscriptionOfRequestOld()},this.socket.onclose=function(e){console.log("Conexión cerrada"),t.setSubscriptionOfRequestOld()}}handlePusherNotification(e){this.dataFromFirebase=e,this.dataFromFirebase&&this.dataFromFirebase.status_code&&(this.solicitud.status_code=this.dataFromFirebase.status_code,"invalid_otp_seguridad_social"==this.solicitud.status_code&&this.showAlert("Error!","Código inválido. Por favor, introduzca el código recibido por SMS"),"terms_and_conditions"!=this.solicitud.status_code&&setTimeout((()=>{this.loading=!1,this.cd.markForCheck()}),500))}resendOTP(e){let t={request_id:this.requestID,user_id:this.userId};this.loading="Reenviando OTP...",this.setSubscriptionOfRequest(),this.solicitudesService.resendOTP(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}gotoTerms(e){this.loading="Enviando datos..",e.package_id=this.packId,e.user_id=this.userId,this.testMode?setTimeout((()=>{this.solicitud=new R.l,this.solicitud.status_code="waiting_otp_seguridad_social",this.loading=!1}),4e3):this.skipCreationOfRequest?(this.gotoPassword(),this.setSubscriptionOfRequest()):this.solicitudesService.addSolicitud(e,this.packId,this.userId).then((t=>{t&&t.status&&"error"==t.status?(this.solicitud=e,t.message&&(400==t.code?"Birthdate incorrect"==t.message?(this.solicitud.status_code="form",this.showAlert("Error!","Fecha de nacimiento incorrecta")):(this.solicitud.status_code="no_service",this.loading=!1):(this.solicitud.status_code="form",this.showAlert("Error!",t.message)))):t&&t.status&&"success"==t.status?(this.requestID=t.data.request_id,this.solicitud=t.data,this.sendMessageToParent(t.data),this.gotoPassword()):this.showAlert("Error!","Error desconocido: "+t)})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}setSubscriptionOfRequestOld(){!this.financiadorID||!this.userId||!this.requestID||this.subscribed||(this.subscribed=!0,this.webhooksService.bindRequestChanges(this.financiadorID,this.userId,this.requestID),this.webhooksService.subscribeRequestChanges().subscribe((e=>{e&&this.handlePusherNotification(e)}),(e=>{this.loading=!1})))}sendNewData(e){this.loading="Enviando información..",this.solicitudesService.fixData(this.requestID,e).then((e=>{e.status&&"error"==e.status?e.message&&(this.showAlert("Error!",e),this.loading=!1):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.initWaitingForResponse("Validando nuevos datos, espere por favor.."),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}showAlert(e,t){this.loading=!1,this.notis.showAlert(e,t)}gotoPassword(e){let t=e;t.request_id=this.requestID,t.user_id=this.userId,this.initWaitingForResponse("Iniciando el proceso de emisión de certificado.."),setTimeout((()=>{this.solicitud=new R.l,this.loading=!1,this.solicitud.status_code="waiting_password"}),2e3)}requestOTP(e){this.loading="Enviando información..",setTimeout((()=>{this.solicitud=new R.l,this.solicitud.status_code="waiting_password",this.loading=!1}),2e3)}sendPassword(e){this.loading="Enviando información..",setTimeout((()=>{this.solicitud.status_code="all_documents_downloaded",this.loading=!1}),2e3)}initWaitingForResponse(e){this.loading=e||"Validando información, espere por favor..",setTimeout((()=>{this.loading&&this.askToBack()}),1e4)}askToBack(){this.solicitudesService.getSolicitudByCode(this.requestID).then((e=>{e&&e.data?(this.solicitud=e.data,this.loading=!1):this.loading=!1})).catch((e=>{this.loading=!1}))}gotoErrorPhone(){}setRequestStatus(e){this.solicitud.status_code=e}retryRequest(e){let t={request_id:e,user_id:this.userId};this.loading="Reintentando enviar la solicitud...",this.setSubscriptionOfRequest(),this.solicitudesService.retryRequest(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}newRequest(e){this.solicitud.status_code="created"}getStatus(){return!this.solicitud||this.solicitud&&("created"==this.solicitud.status_code||"form"==this.solicitud.status_code||"terms_and_conditions"==this.solicitud.status_code)?"form":!this.solicitud||"waiting_login_seguridad_social"!=this.solicitud.status_code&&"saved_otp"!=this.solicitud.status_code?!this.solicitud||"waiting_otp_seguridad_social"!=this.solicitud.status_code&&"invalid_otp_seguridad_social"!=this.solicitud.status_code?this.solicitud&&"waiting_password"==this.solicitud.status_code?"password":!this.solicitud||"abandoned_after_bad_phone"!=this.solicitud.status_code&&"abandoned_after_invalid_otp_seguridad_social"!=this.solicitud.status_code&&"abandoned_after_terms_and_conditions"!=this.solicitud.status_code&&"abandoned_after_waiting_otp_seguridad_social"!=this.solicitud.status_code?!this.solicitud||"all_documents_downloaded"!=this.solicitud.status_code&&"partial_documents_downloaded"!=this.solicitud.status_code&&"consent_process_completed"!=this.solicitud.status_code&&"waiting_documents"!=this.solicitud.status_code?!this.solicitud||"bad_phone"!=this.solicitud.status_code&&"phone_not_exist_otp"!=this.solicitud.status_code?!this.solicitud||"failed_with_retry"!=this.solicitud.status_code&&"failed_without_retry"!=this.solicitud.status_code&&"failed_documents_downloaded"!=this.solicitud.status_code?this.solicitud&&"no_service"==this.solicitud.status_code?"no-service":"no-exist":"failed":"error-data":this.data.config&&this.data.config.infiniteLoopInCompleted?"loading":"success":"abandoned":"otp":(this.loading="Estamos procesando su solicitud. Espere un momento por favor","loading")}sendRetry(){}gotoTermsAndConditions(){this.dialog.open(Y.L,{panelClass:"fullscreen-dialog",data:{flow:"presencial"}})}gotoTermsAndConditionsCertificate(){this.dialog.open(q.v,{panelClass:"fullscreen-dialog",data:{flow:"presencial"}})}};ze.ɵfac=function(e){return new(e||ze)(V.ɵɵdirectiveInject(V.ChangeDetectorRef),V.ɵɵdirectiveInject(P.gz),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(C.w),V.ɵɵdirectiveInject(I.T),V.ɵɵdirectiveInject(x.t),V.ɵɵdirectiveInject(z.uw))},ze.ɵcmp=V.ɵɵdefineComponent({type:ze,selectors:[["belender-widget-client-cert"]],inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud"},features:[V.ɵɵProvidersFeature([{provide:A.o2,useValue:{appearance:"standard"}}])],decls:2,vars:2,consts:[["class","h-full widget-belender",4,"ngIf"],[4,"ngIf"],[1,"h-full","widget-belender"],[1,"h-full","w-full","flex-auto","p-0","md:p-3"],["class","img-wrapper p-6 flex justify-center items-center",4,"ngIf"],["class","loading-wrapper animated fadeIn",4,"ngIf"],["class","animated fadeInRight",4,"ngIf"],[1,"img-wrapper","p-6","flex","justify-center","items-center"],["alt","",1,"img-card",3,"src"],[3,"status","data",4,"ngIf"],[3,"userId","data","flowName","texts","solicitud","goToTerms","goToTermsCertificate","nextStep",4,"ngIf"],[3,"data","texts","solicitud","nextStep",4,"ngIf"],[3,"data","texts","solicitud","resendOTP","errorPhone","nextStep",4,"ngIf"],[3,"data","texts",4,"ngIf"],[3,"data","texts","solicitud","retry","newRequest",4,"ngIf"],[3,"solicitud","data","texts","retry",4,"ngIf"],[3,"texts","data",4,"ngIf"],["class","px-6 py-4 flex flex-col",4,"ngIf"],[3,"status","data"],[3,"userId","data","flowName","texts","solicitud","goToTerms","goToTermsCertificate","nextStep"],[3,"data","texts","solicitud","nextStep"],[3,"data","texts","solicitud","resendOTP","errorPhone","nextStep"],[3,"data","texts"],[3,"data","texts","solicitud","retry","newRequest"],[3,"solicitud","data","texts","retry"],[3,"texts","data"],[1,"px-6","py-4","flex","flex-col"],[1,"title","m-0"],[1,"text-red-500"],[1,"subheading-1","pt-4"],[1,"loading-wrapper","animated","fadeIn"],["color","accent","diameter","40",1,"spinner",3,"value","mode"],[1,"mt-6","text-center","text-black",2,"color","black !important"],[1,"animated","fadeInRight"],[1,"text-red-500","title","m-0"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"text-blue-500","bg-blue-50","px-8",3,"click"],[1,"test-mode","px-10","py-2","bg-blue-500/10","text-blue-500","border-blue-500","border","rounded-md"]],template:function(e,t){1&e&&(V.ɵɵtemplate(0,Ve,7,7,"div",0),V.ɵɵtemplate(1,He,3,1,"ng-container",1)),2&e&&(V.ɵɵproperty("ngIf",t.data),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.testMode))},dependencies:[i.O5,u.lW,b.Ou,B.q,ee,ne,se,_e,ye,be,xe,Ie],styles:[".widget-belender[_ngcontent-%COMP%]{position:relative}.widget-belender[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{min-height:360px}.widget-belender[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between}.badge-table[_ngcontent-%COMP%]{max-width:140px!important;border-radius:5px!important;-webkit-border-radius:5px!important;-moz-border-radius:5px!important;-ms-border-radius:5px!important;-o-border-radius:5px!important}.btn-refresh[_ngcontent-%COMP%]{transform:translateY(2px)}.request-data-info[_ngcontent-%COMP%]{transition:all .5s ease!important}.img-card[_ngcontent-%COMP%]{max-width:240px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.loading-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:absolute;top:0;left:0;background:#fff}.mat-flat-button.mat-primary.mat-button-disabled[_ngcontent-%COMP%]{background:red!important}button.mat-flat-button.text-green-500.bg-green-light.mat-button-disabled[_ngcontent-%COMP%]{background:orange!important}.test-mode[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px}"]}),ze=(0,L.gn)([(0,N.c)()],ze);const Be=[{path:":idUser",component:ze},{path:":idUser/:packID",component:ze}];let Ue=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=V.ɵɵdefineNgModule({type:e}),e.ɵinj=V.ɵɵdefineInjector({imports:[P.Bz.forChild(Be),P.Bz,O.d8]}),e})();var We=n(6981),$e=n(1129),Ge=n(969),Ze=n(3300),Ke=n(865);let Qe=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=V.ɵɵdefineNgModule({type:e}),e.ɵinj=V.ɵɵdefineInjector({providers:[_.M,y.o,C.w,x.t,I.T,T.t,{provide:M.Ad,useValue:"es-ES"}],imports:[Ue,i.ez,r.G,s.J,o.TU,a.p0,l.JX,c.p9,d.Ps,u.ot,h.Tx,w.c,p.FormsModule,m.AV,p.ReactiveFormsModule,f.LD,g.vV,v.a,b.Cq,S.FA,M.XK,k.T5,E.Fk,We.x,oe.Nh,c.p9,$e.n,Ge.O,Ze.C,Ke.q]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[378],{2378:(e,t,n)=>{n.r(t),n.d(t,{ManualModule:()=>ut});var i=n(6895),r=n(6383),s=n(5592),o=n(8739),a=n(7155),l=n(6308),c=n(6709),d=n(7392),u=n(9101),h=n(1561),p=n(4006),m=n(266),f=n(4385),g=n(811),_=n(3798),v=n(9391),y=n(1572),b=n(182),x=n(4144),w=n(7367),C=n(9602),S=n(3238),M=n(5895),I=n(6257),k=n(1948),E=n(4246),T=n(7489),P=n(6981),O=n(3848),D=n(1129),L=n(9476),A=n(9299),N=n(6e3),R=n(5861),j=n(7582),F=n(9549),q=n(9933),Y=n(5762),V=n(8259),H=n(2340),z=n(6830),B=n(4650),U=n(5089),W=n(5412),$=n(8008),G=n(5601),Z=n(3731);function K(e,t){if(1&e&&B.ɵɵelement(0,"div",10),2&e){const e=B.ɵɵnextContext();B.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",e.texts.otpSS.title,B.ɵɵsanitizeHtml)}}function Q(e,t){if(1&e&&(B.ɵɵelement(0,"div",11),B.ɵɵpipe(1,"safeHtml")),2&e){const e=B.ɵɵnextContext();B.ɵɵstyleProp("color",e.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(1,3,e.texts.otpSS.description),B.ɵɵsanitizeHtml)}}function X(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}function J(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate2("¿No has recibido el código en el teléfono acabado en ",e.lastThreeNumbersPhone,"? Solicítalo de nuevo en ",e.secsCount," segundos")}}function ee(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1("¿No has recibido el código en tu teléfono? Solicítalo de nuevo en ",e.secsCount," segundos")}}const te=function(e,t,n){return{color:e,border:t,background:n}};function ne(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"small",12),B.ɵɵtemplate(2,X,2,1,"span",5),B.ɵɵtemplate(3,J,2,2,"span",5),B.ɵɵtemplate(4,ee,2,1,"span",5),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction3(4,te,e.data.styles.colors.accentColor,"1px solid "+e.data.styles.colors.accentColor,e.data.styles.colors.accentBgColor)),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.lastThreeNumbersPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&!e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&e.data.config.noRetryInBadPhone)}}function ie(e,t){1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1," ¿No has recibido el código en tu teléfono? "),B.ɵɵelementEnd())}function re(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1(" ¿No has recibido el código en el teléfono acabado en ",e.lastThreeNumbersPhone,"? ")}}function se(e,t){1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1," ¿No has recibido el código en el teléfono? "),B.ɵɵelementEnd())}const oe=function(e,t){return{color:e,background:t}};function ae(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"small",12),B.ɵɵtemplate(2,ie,2,0,"span",5),B.ɵɵtemplate(3,re,2,1,"span",5),B.ɵɵtemplate(4,se,2,0,"span",5),B.ɵɵelementStart(5,"a",13),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext();return B.ɵɵresetView(t.resendOTP())})),B.ɵɵtext(6,"Reenviar"),B.ɵɵelementEnd()(),B.ɵɵelementContainerEnd()}if(2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction3(5,te,e.data.styles.colors.dangerColor,"1px solid "+e.data.styles.colors.dangerColor,e.data.styles.colors.dangerBgColor)),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.lastThreeNumbersPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&!e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction2(9,oe,e.data.styles.colors.dangerTextButtonColor,e.data.styles.colors.dangerColor))}}let le=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.solucitudesService=n,this.activeRoute=i,this.next=new B.EventEmitter(null),this.errPhone=new B.EventEmitter(null),this.resendO=new B.EventEmitter(null),this.secsCount=60}ngOnInit(){this.form=this.fb.group({code1:[null,[p.Validators.required,p.Validators.maxLength(6),p.Validators.minLength(3)]]}),this.initSecsInterval(),this.activeRoute.queryParams.subscribe((e=>{e&&e.request_id&&(this.requestID=e.request_id)}),(e=>{console.error(e)}))}initSecsInterval(){this.interv=setInterval((()=>{this.secsCount--,this.secsCount<=0&&this.finishSecsInterval()}),1e3)}finishSecsInterval(){this.interv&&clearInterval(this.interv)}nextStep(){let e={code:this.getCode()};this.next.emit(e)}getCode(){return this.form.get("code1").value}capturePasteEvent(e){return(0,R.Z)((function*(){}))()}errorStep(){this.errPhone.emit(!0)}setInputEvent(e){""!=e.target.value?V(e.target).next().focus():"Backspace"==e.code&&V(e.target).prev().focus()}resendOTP(){this.resendO.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(G.M),B.ɵɵdirectiveInject(A.gz))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-otp-ss-step"]],inputs:{data:"data",texts:"texts",lastThreeNumbersPhone:"lastThreeNumbersPhone",solicitud:"solicitud"},outputs:{next:"nextStep",errPhone:"errorPhone",resendO:"resendOTP"},decls:12,vars:12,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-1","flex","flex-col"],["class","title m-0",3,"color","font-size","innerHTML",4,"ngIf"],["class","subheading-1 pt-4",3,"color","innerHTML",4,"ngIf"],[1,"title","py-2"],[4,"ngIf"],[1,"flex","gap-2","items-center","justify-start"],["formControlName","code1","maxlength","6","minlength","1","type","text",3,"change","keyup"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","next-button","mat-flat-button","","type","button",1,"px-8",3,"disabled","click"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"info-time","w-fit",3,"ngStyle"],[1,"ml-4",3,"ngStyle","click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵtemplate(2,K,1,5,"div",2),B.ɵɵtemplate(3,Q,2,5,"div",3),B.ɵɵelementStart(4,"div",4),B.ɵɵtemplate(5,ne,5,8,"ng-container",5),B.ɵɵtemplate(6,ae,7,12,"ng-container",5),B.ɵɵelementEnd(),B.ɵɵelementStart(7,"div",6)(8,"input",7),B.ɵɵlistener("change",(function(e){return t.capturePasteEvent(e)}))("keyup",(function(e){return t.setInputEvent(e)})),B.ɵɵelementEnd()()(),B.ɵɵelementStart(9,"div",8)(10,"button",9),B.ɵɵlistener("click",(function(){return t.nextStep()})),B.ɵɵtext(11,"Siguiente"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵproperty("formGroup",t.form),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.texts.otpSS.title&&""!=t.texts.otpSS.title),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.texts.otpSS.description&&""!=t.texts.otpSS.description),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.secsCount&&t.secsCount>0),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!t.secsCount||t.secsCount<=0),B.ɵɵadvance(4),B.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),B.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,i.PC,u.lW,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,Z.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function ce(e,t){if(1&e&&B.ɵɵelement(0,"div",10),2&e){const e=B.ɵɵnextContext();B.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",e.texts.otpAEAT.title,B.ɵɵsanitizeHtml)}}function de(e,t){if(1&e&&(B.ɵɵelement(0,"div",11),B.ɵɵpipe(1,"safeHtml")),2&e){const e=B.ɵɵnextContext();B.ɵɵstyleProp("color",e.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(1,3,e.texts.otpAEAT.description),B.ɵɵsanitizeHtml)}}function ue(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}function he(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate2("¿No has recibido el código en el teléfono acabado en ",e.lastThreeNumbersPhone,"? Solicítalo de nuevo en ",e.secsCount," segundos")}}function pe(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1("¿No has recibido el código en tu teléfono? Solicítalo de nuevo en ",e.secsCount," segundos")}}const me=function(e,t,n){return{color:e,border:t,background:n}};function fe(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"small",12),B.ɵɵtemplate(2,ue,2,1,"span",5),B.ɵɵtemplate(3,he,2,2,"span",5),B.ɵɵtemplate(4,pe,2,1,"span",5),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction3(4,me,e.data.styles.colors.accentColor,"1px solid "+e.data.styles.colors.accentColor,e.data.styles.colors.accentBgColor)),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.lastThreeNumbersPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&!e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&e.data.config.noRetryInBadPhone)}}function ge(e,t){1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1," ¿No has recibido el código en tu teléfono? "),B.ɵɵelementEnd())}function _e(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1(" ¿No has recibido el código en el teléfono acabado en ",e.lastThreeNumbersPhone,"? ")}}function ve(e,t){1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1," ¿No has recibido el código en el teléfono? "),B.ɵɵelementEnd())}const ye=function(e,t){return{color:e,background:t}};function be(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"small",12),B.ɵɵtemplate(2,ge,2,0,"span",5),B.ɵɵtemplate(3,_e,2,1,"span",5),B.ɵɵtemplate(4,ve,2,0,"span",5),B.ɵɵelementStart(5,"a",13),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext();return B.ɵɵresetView(t.resendOTP())})),B.ɵɵtext(6,"Reenviar"),B.ɵɵelementEnd()(),B.ɵɵelementContainerEnd()}if(2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction3(5,me,e.data.styles.colors.dangerColor,"1px solid "+e.data.styles.colors.dangerColor,e.data.styles.colors.dangerBgColor)),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.lastThreeNumbersPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&!e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction2(9,ye,e.data.styles.colors.dangerTextButtonColor,e.data.styles.colors.dangerColor))}}let xe=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.solucitudesService=n,this.activeRoute=i,this.next=new B.EventEmitter(null),this.errPhone=new B.EventEmitter(null),this.resendO=new B.EventEmitter(null),this.secsCount=60}ngOnInit(){this.form=this.fb.group({code1:[null,[p.Validators.required,p.Validators.maxLength(6),p.Validators.minLength(3)]]}),this.initSecsInterval(),this.activeRoute.queryParams.subscribe((e=>{e&&e.request_id&&(this.requestID=e.request_id)}),(e=>{console.error(e)}))}initSecsInterval(){this.interv=setInterval((()=>{this.secsCount--,this.secsCount<=0&&this.finishSecsInterval()}),1e3)}finishSecsInterval(){this.interv&&clearInterval(this.interv)}nextStep(){let e={code:this.getCode()};this.next.emit(e)}getCode(){return this.form.get("code1").value}capturePasteEvent(e){return(0,R.Z)((function*(){}))()}errorStep(){this.errPhone.emit(!0)}setInputEvent(e){""!=e.target.value?V(e.target).next().focus():"Backspace"==e.code&&V(e.target).prev().focus()}resendOTP(){this.resendO.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(G.M),B.ɵɵdirectiveInject(A.gz))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-otp-aeat-step"]],inputs:{data:"data",texts:"texts",lastThreeNumbersPhone:"lastThreeNumbersPhone",solicitud:"solicitud"},outputs:{next:"nextStep",errPhone:"errorPhone",resendO:"resendOTP"},decls:12,vars:12,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-1","flex","flex-col"],["class","title m-0",3,"color","font-size","innerHTML",4,"ngIf"],["class","subheading-1 pt-4",3,"color","innerHTML",4,"ngIf"],[1,"title","py-2"],[4,"ngIf"],[1,"flex","gap-2","items-center","justify-start"],["formControlName","code1","maxlength","6","minlength","1","type","text",3,"change","keyup"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","next-button","mat-flat-button","","type","button",1,"px-8",3,"disabled","click"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"info-time","w-fit",3,"ngStyle"],[1,"ml-4",3,"ngStyle","click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵtemplate(2,ce,1,5,"div",2),B.ɵɵtemplate(3,de,2,5,"div",3),B.ɵɵelementStart(4,"div",4),B.ɵɵtemplate(5,fe,5,8,"ng-container",5),B.ɵɵtemplate(6,be,7,12,"ng-container",5),B.ɵɵelementEnd(),B.ɵɵelementStart(7,"div",6)(8,"input",7),B.ɵɵlistener("change",(function(e){return t.capturePasteEvent(e)}))("keyup",(function(e){return t.setInputEvent(e)})),B.ɵɵelementEnd()()(),B.ɵɵelementStart(9,"div",8)(10,"button",9),B.ɵɵlistener("click",(function(){return t.nextStep()})),B.ɵɵtext(11,"Siguiente"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵproperty("formGroup",t.form),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.texts.otpAEAT.title&&""!=t.texts.otpAEAT.title),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.texts.otpAEAT.description&&""!=t.texts.otpAEAT.description),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.secsCount&&t.secsCount>0),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!t.secsCount||t.secsCount<=0),B.ɵɵadvance(4),B.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),B.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,i.PC,u.lW,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,Z.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function we(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",1),B.ɵɵelement(1,"div",2)(2,"div",3),B.ɵɵpipe(3,"safeHtml"),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",e.texts.success.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",e.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(3,8,e.texts.success.description||""),B.ɵɵsanitizeHtml)}}let Ce=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r}ngOnInit(){}save(){}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(G.M),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(M.T))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-success-step"]],inputs:{data:"data",texts:"texts"},decls:1,vars:1,consts:[["class"," pt-4 pb-8 flex flex-col animated fadeIn",4,"ngIf"],[1,"pt-4","pb-8","flex","flex-col","animated","fadeIn"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&B.ɵɵtemplate(0,we,4,10,"div",0),2&e&&B.ɵɵproperty("ngIf",!t.data.config.infiniteLoopInCompleted)},dependencies:[i.O5,Z.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function Se(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"div",5)(1,"button",6),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext();return B.ɵɵresetView(t.retry())})),B.ɵɵtext(2,"Intentarlo nuevamente"),B.ɵɵelementEnd()()}if(2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}function Me(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"div",5)(1,"button",6),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext();return B.ɵɵresetView(t.newRequest())})),B.ɵɵtext(2,"Crear Nueva Solicitud"),B.ɵɵelementEnd()()}if(2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}let Ie=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryR=new B.EventEmitter(null),this.newR=new B.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryR.emit(this.solicitud.request_id)}newRequest(){this.newR.emit(this.solicitud.request_id)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(G.M),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(M.T))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-fail-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{retryR:"retryRequest",newR:"newRequest"},decls:7,vars:8,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"text-red-500","title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],["class","flex items-center justify-end gap-2 p-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementEnd(),B.ɵɵtemplate(5,Se,3,6,"div",4),B.ɵɵtemplate(6,Me,3,6,"div",4),B.ɵɵelementEnd()),2&e&&(B.ɵɵadvance(2),B.ɵɵproperty("innerHTML",t.texts.fail.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,6,t.texts.fail.description),B.ɵɵsanitizeHtml),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.solicitud&&"failed_with_retry"==t.solicitud.status_code),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.solicitud&&"failed_documents_downloaded"==t.solicitud.status_code))},dependencies:[i.O5,u.lW,Z.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();n(6866);var ke=n(9617);function Ee(e,t){1&e&&(B.ɵɵelementStart(0,"div",8),B.ɵɵelement(1,"belender-spinner",9),B.ɵɵelementEnd()),2&e&&(B.ɵɵadvance(1),B.ɵɵproperty("zoom",.6))}let Te=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.attachmentsService=n,this.packsS=i,this.upload=new B.EventEmitter(null),this.back=new B.EventEmitter(null),this.loadingPack=!1}ngOnInit(){this.form=this.fb.group({}),console.warn("data: ",this.data),this.loadingPack=!0,this.packsS.getPackagesByUserID(this.userId).then((e=>{e&&e.data?this.setPack(e.data):this.loadingPack=!1})).catch((e=>{console.error(e),this.loadingPack=!1}))}setPack(e){this.pack=e.find((e=>e.id==this.packId)),console.error("pack: ",this.pack),this.loadingPack=!1,this.setForm()}setForm(){this.pack&&this.pack.documents&&this.pack.documents.forEach((e=>{this.form.addControl(e,new p.FormControl("",p.Validators.required))}))}uploadFiles(e){this.upload.emit(!0),e.preventDefault(),e.stopPropagation(),console.error("Form: ",this.form);const t=new FormData;this.attachmentsService.uploadFile(t).then((e=>{console.warn(e)})).catch((e=>{console.error(e)}))}goBack(){this.back.emit(!0)}setFile(e,t){t.file&&this.form.get(e).setValue(t.file),console.error(t)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(ke.U))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],inputs:{data:"data",flowName:"flowName",solicitud:"solicitud",flow:"flow",packId:"packId",userId:"userId",texts:"texts"},outputs:{upload:"uploadFiles",back:"goBack"},decls:12,vars:19,consts:[[1,"flex","flex-col","justify-between","h-full","fixed-content",3,"formGroup"],[1,"flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"py-4"],["class","py-10 px-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-2"],["mat-flat-button","","type","button",1,"px-8","hover:opacity-90",3,"disabled","click"],[1,"py-10","px-4"],["text","Cargando documentos",3,"zoom"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementEnd(),B.ɵɵelementStart(5,"div",4)(6,"h1"),B.ɵɵtext(7,"Subida automatica de los docs"),B.ɵɵelementEnd()(),B.ɵɵtemplate(8,Ee,2,1,"div",5),B.ɵɵelementStart(9,"div",6)(10,"button",7),B.ɵɵlistener("click",(function(e){return t.uploadFiles(e)})),B.ɵɵtext(11,"Subir archivos"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵproperty("formGroup",t.form),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",t.texts.form.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,17,t.texts.form.description||""),B.ɵɵsanitizeHtml),B.ɵɵadvance(5),B.ɵɵproperty("ngIf",t.loadingPack),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.form.invalid?"":t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),B.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,u.lW,p.ɵNgNoValidate,p.NgControlStatusGroup,p.FormGroupDirective,$.O,Z.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.dont-show-data[_ngcontent-%COMP%]{opacity:0!important;padding:0!important;overflow:hidden!important;height:0px!important;margin:0!important}"]}),e})();var Pe=n(5145);let Oe=(()=>{class e{constructor(e){this.utils=e,this.status="",this.label="Cargando datos..",this.loaderColor="red"}ngOnInit(){this.data.config&&this.data.config.infiniteLoopInCompleted?this.label="":Pe.Z.forEach((e=>{e.text==this.status&&(this.label=e.label)}))}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(U.F))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-loading-step"]],inputs:{status:"status",loaderColor:"loaderColor",data:"data"},decls:3,vars:2,consts:[[1,"fixed-content","h-full","animated","fadeIn"],[1,"h-full","py-10","flex","flex-col","items-center","min-h-[300px]"],[3,"text","color"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1),B.ɵɵelement(2,"belender-spinner",2),B.ɵɵelementEnd()()),2&e&&(B.ɵɵadvance(2),B.ɵɵproperty("text",t.label)("color",t.loaderColor))},dependencies:[$.O],styles:[".content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),De=(()=>{class e{constructor(){}ngOnInit(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-no-service-step"]],inputs:{data:"data",texts:"texts"},decls:5,vars:10,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementEnd()()),2&e&&(B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",t.texts.noService.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,8,t.texts.noService.description),B.ɵɵsanitizeHtml))},dependencies:[p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm,Z.z]}),e})(),Le=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryR=new B.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryR.emit(this.solicitud.request_id)}getTextStatus(){switch(this.solicitud.status_code){case"abandoned_after_waiting_otp_seguridad_social":return"Abandonado después de esperar OTP de Seguridad Social";case"abandoned_after_invalid_otp_seguridad_social":return"Abandonado despues de OTP inválido en Seguridad Social";case"abandoned_after_invalid_otp_aeat":return"Abandonado despues de OTP inválido en AEAT";case"abandoned_after_waiting_otp_aeat":return"Abandonado después de esperar OTP de AEAT";default:return this.solicitud.status_code}}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(G.M),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(M.T))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-abandoned-step"]],inputs:{data:"data",solicitud:"solicitud",texts:"texts"},outputs:{retryR:"retryRequest"},decls:10,vars:17,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-md","mb-2","mt-2"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementStart(5,"div",4),B.ɵɵtext(6),B.ɵɵelementEnd()(),B.ɵɵelementStart(7,"div",5)(8,"button",6),B.ɵɵlistener("click",(function(){return t.retry()})),B.ɵɵtext(9,"Intentarlo nuevamente"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",t.texts.abandoned.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,15,t.texts.abandoned.description),B.ɵɵsanitizeHtml),B.ɵɵadvance(3),B.ɵɵtextInterpolate1(" Estado: ",t.getTextStatus()," "),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW,Z.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),Ae=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.nr=new B.EventEmitter(null)}ngOnInit(){}newRequest(){this.nr.emit(!0)}gotoRequest(){location.assign(this.currentRequest.widget_url_boxed)}getStatus(){let e=Pe.Z.find((e=>e.text==this.currentRequest.status_code));return e?e.label:"Estado desconocido"}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(G.M),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(M.T))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-duplicated-request-step"]],inputs:{currentRequest:"currentRequest",data:"data",texts:"texts"},outputs:{nr:"newRequest"},decls:15,vars:15,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"flex","gap-2","justify-start","items-center","py-2"],[1,"w-fit","p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-sm"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),B.ɵɵtext(3," Solicitud duplicada! "),B.ɵɵelementEnd(),B.ɵɵelementStart(4,"div",3),B.ɵɵtext(5," Ya existe una solicitud para este cliente. "),B.ɵɵelementEnd(),B.ɵɵelementStart(6,"div",4),B.ɵɵtext(7," Estado de la solicitud actual: "),B.ɵɵelementStart(8,"div",5),B.ɵɵtext(9),B.ɵɵelementEnd()()(),B.ɵɵelementStart(10,"div",6)(11,"button",7),B.ɵɵlistener("click",(function(){return t.newRequest()})),B.ɵɵtext(12,"Nueva solicitud"),B.ɵɵelementEnd(),B.ɵɵelementStart(13,"button",7),B.ɵɵlistener("click",(function(){return t.gotoRequest()})),B.ɵɵtext(14,"Ir a la solicitud actual"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵadvance(5),B.ɵɵtextInterpolate1(" ",t.getStatus()," "),B.ɵɵadvance(2),B.ɵɵstyleProp("border-radius",t.data.styles.btnRound+"px"),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),Ne=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.attachmentsService=n,this.packsS=i,this.setF=new B.EventEmitter(null)}ngOnInit(){}setFlow(e){this.setF.emit(e)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(ke.U))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-switcher-step"]],inputs:{data:"data",texts:"texts"},outputs:{setF:"setFlow"},decls:10,vars:10,consts:[[1,"flex","flex-col","justify-between","h-full","min-h-[330px]","fixed-content"],[1,"flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"flex","items-center","justify-between","gap-2","p-2","h-full"],["mat-flat-button","","type","button",1,"px-8","py-1","bg-blue-500/10","text-blue-500","hover:bg-blue-500/20",3,"click"],["mat-flat-button","","type","button",1,"px-8","py-1","bg-purple-500/10","text-purple-500","hover:bg-purple-500/20",3,"click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementEnd(),B.ɵɵelementStart(5,"div",4)(6,"button",5),B.ɵɵlistener("click",(function(){return t.setFlow("manual")})),B.ɵɵtext(7,"Subida manual de documentos"),B.ɵɵelementEnd(),B.ɵɵelementStart(8,"button",6),B.ɵɵlistener("click",(function(){return t.setFlow("form")})),B.ɵɵtext(9,"Subida automatica de documentos"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",t.texts.form.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,8,t.texts.form.description||""),B.ɵɵsanitizeHtml))},dependencies:[u.lW,Z.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.dont-show-data[_ngcontent-%COMP%]{opacity:0!important;padding:0!important;overflow:hidden!important;height:0px!important;margin:0!important}"]}),e})();var Re=n(1888),je=n(1763);function Fe(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"belender-checkbox",13),B.ɵɵlistener("changeCheckbox",(function(){const t=B.ɵɵrestoreView(e).$implicit,n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.setDoc(t))})),B.ɵɵtext(2),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()}if(2&e){const e=t.$implicit;B.ɵɵadvance(2),B.ɵɵtextInterpolate1(" ",e.name," ")}}function qe(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"div",10)(2,"h2",11),B.ɵɵtext(3),B.ɵɵelementEnd()(),B.ɵɵelementStart(4,"div",12),B.ɵɵtemplate(5,Fe,3,1,"ng-container",9),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()),2&e){const e=t.$implicit;B.ɵɵadvance(3),B.ɵɵtextInterpolate(e.groupName),B.ɵɵadvance(2),B.ɵɵproperty("ngForOf",e.documents)}}function Ye(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",8),B.ɵɵtemplate(1,qe,6,2,"ng-container",9),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngForOf",e.documentsGroup)}}function Ve(e,t){1&e&&(B.ɵɵelementStart(0,"div",14),B.ɵɵelement(1,"belender-spinner",15),B.ɵɵelementEnd()),2&e&&(B.ɵɵadvance(1),B.ɵɵproperty("zoom",.6))}let He=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.attachmentsService=n,this.packsS=i,this.docsS=r,this.upload=new B.EventEmitter(null),this.back=new B.EventEmitter(null),this.loadingPack=!1}ngOnInit(){this.form=this.fb.group({}),this.loadingPack=!0,this.docsS.getAllDocumentsType().then((e=>{console.warn(e),this.documentsGroup=this.divideInGroups(e.data),this.loadingPack=!1}))}divideInGroups(e){let t={};e.forEach((e=>{t[e.portal_name]={groupName:e.portal_name,documents:[]}}));let n=Object.keys(t),i=[];return n.forEach((n=>{t[n].documents=e.filter((e=>"OK"===e.status&&e.portal_name===n)),i.push(t[n])})),console.warn(i),i}setDoc(e){console.log(e)}uploadFiles(e){this.upload.emit(!0),e.preventDefault(),e.stopPropagation(),console.error("Form: ",this.form);const t=new FormData;this.attachmentsService.uploadFile(t).then((e=>{console.warn(e)})).catch((e=>{console.error(e)}))}goBack(){this.back.emit(!0)}setFile(e,t){t.file&&this.form.get(e).setValue(t.file),console.error(t)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(ke.U),B.ɵɵdirectiveInject(Re.S))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-manual-form-step"]],inputs:{data:"data",solicitud:"solicitud",flow:"flow",packId:"packId",userId:"userId",texts:"texts"},outputs:{upload:"uploadFiles",back:"goBack"},decls:10,vars:20,consts:[[1,"flex","flex-col","justify-between","h-full","fixed-content",3,"formGroup"],[1,"flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],["class","py-4 ",4,"ngIf"],["class","py-10 px-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-2"],["mat-flat-button","","type","button",1,"px-8","hover:opacity-90",3,"disabled","click"],[1,"py-4"],[4,"ngFor","ngForOf"],[1,"border-b","border-slate-300","mt-3","w-full"],[1,"pl-1"],[1,"flex","flex-wrap","gap-2","pb-2","pt-1"],[1,"bg-slate-300/10",3,"changeCheckbox"],[1,"py-10","px-4"],["text","Cargando documentos",3,"zoom"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementEnd(),B.ɵɵtemplate(5,Ye,2,1,"div",4),B.ɵɵtemplate(6,Ve,2,1,"div",5),B.ɵɵelementStart(7,"div",6)(8,"button",7),B.ɵɵlistener("click",(function(e){return t.uploadFiles(e)})),B.ɵɵtext(9,"Subir archivos"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵproperty("formGroup",t.form),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",t.texts.form.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,18,t.texts.form.description||""),B.ɵɵsanitizeHtml),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.documentsGroup&&!t.loadingPack),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.loadingPack),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.form.invalid?"":t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),B.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.sg,i.O5,u.lW,p.ɵNgNoValidate,p.NgControlStatusGroup,p.FormGroupDirective,je.b,$.O,Z.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.dont-show-data[_ngcontent-%COMP%]{opacity:0!important;padding:0!important;overflow:hidden!important;height:0px!important;margin:0!important}"]}),e})();function ze(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",7),B.ɵɵelement(1,"img",8),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵproperty("src",e.data.styles.logoUrl,B.ɵɵsanitizeUrl)}}function Be(e,t){if(1&e&&B.ɵɵelement(0,"belender-loading-step",20),2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("status",null==e.solicitud?null:e.solicitud.status_code)("data",e.data)("loaderColor",e.data.styles.colors.title)}}function Ue(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-switcher-step",21),B.ɵɵlistener("setFlow",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.setFlow(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("texts",e.data[e.flowName].texts)("data",e.data)}}function We(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-form-step",22),B.ɵɵlistener("goToTerms",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(3);return B.ɵɵresetView(t.gotoTermsAndConditions())}))("nextStep",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.gotoTerms(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("texts",e.data[e.flowName].texts)("userId",e.userId)("flowName",e.flowName)("packId",e.packId)("data",e.data)("solicitud",e.solicitud)}}function $e(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-manual-form-step",23),B.ɵɵlistener("goToTerms",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(3);return B.ɵɵresetView(t.gotoTermsAndConditions())}))("nextStep",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.gotoTerms(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("texts",e.data[e.flowName].texts)("userId",e.userId)("packId",e.packId)("data",e.data)("solicitud",e.solicitud)}}function Ge(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-otp-ss-step",24),B.ɵɵlistener("resendOTP",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(3);return B.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.requestOTP(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("solicitud",e.solicitud)("lastThreeNumbersPhone",e.lastThreeNumbersPhone)("texts",e.data[e.flowName].texts)}}function Ze(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-otp-aeat-step",24),B.ɵɵlistener("resendOTP",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(3);return B.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.requestOTP(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("solicitud",e.solicitud)("lastThreeNumbersPhone",e.lastThreeNumbersPhone)("texts",e.data[e.flowName].texts)}}function Ke(e,t){if(1&e&&B.ɵɵelement(0,"belender-success-step",25),2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)}}function Qe(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-duplicated-request-step",26),B.ɵɵlistener("newRequest",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.newRequest(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("currentRequest",e.currentRequest)}}function Xe(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-fail-step",27),B.ɵɵlistener("retryRequest",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.retryRequest(t))}))("newRequest",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.newRequest(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("solicitud",e.solicitud)("texts",e.data[e.flowName].texts)}}function Je(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-abandoned-step",28),B.ɵɵlistener("retryRequest",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.retryRequest(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)("solicitud",e.solicitud)}}function et(e,t){if(1&e&&B.ɵɵelement(0,"belender-no-service-step",29),2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("texts",e.data[e.flowName].texts)("data",e.data)}}function tt(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",30)(1,"div",31)(2,"h1",32),B.ɵɵtext(3,"No existe la solicitud"),B.ɵɵelementEnd()(),B.ɵɵelementStart(4,"div",33),B.ɵɵtext(5,"No existen solicitudes activas con el código requerido"),B.ɵɵelementEnd()()),2&e){const e=B.ɵɵnextContext(3);B.ɵɵadvance(4),B.ɵɵstyleProp("color",e.data.styles.colors.text)}}function nt(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵtemplate(1,Be,1,3,"belender-loading-step",9),B.ɵɵtemplate(2,Ue,1,2,"belender-switcher-step",10),B.ɵɵtemplate(3,We,1,6,"belender-form-step",11),B.ɵɵtemplate(4,$e,1,5,"belender-manual-form-step",12),B.ɵɵtemplate(5,Ge,1,4,"belender-otp-ss-step",13),B.ɵɵtemplate(6,Ze,1,4,"belender-otp-aeat-step",13),B.ɵɵtemplate(7,Ke,1,2,"belender-success-step",14),B.ɵɵtemplate(8,Qe,1,2,"belender-duplicated-request-step",15),B.ɵɵtemplate(9,Xe,1,3,"belender-fail-step",16),B.ɵɵtemplate(10,Je,1,3,"belender-abandoned-step",17),B.ɵɵtemplate(11,et,1,2,"belender-no-service-step",18),B.ɵɵtemplate(12,tt,6,2,"div",19),B.ɵɵelementContainerEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵproperty("ngIf","loading"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","initial"==e.getStatus()&&!e.loading),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","form"==e.getStatus()&&!e.loading),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","manual"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","otp_ss"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","otp_aeat"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","success"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","duplicated"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","failed"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","abandoned"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","no-service"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","created"!=e.step)}}function it(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",34),B.ɵɵelement(1,"belender-spinner",35),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵpropertyInterpolate("text",e.loading),B.ɵɵproperty("color",e.data.styles.colors.title)}}function rt(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"div",36)(1,"div",30)(2,"div",37),B.ɵɵtext(3,"Error!"),B.ɵɵelementEnd(),B.ɵɵelement(4,"div",38),B.ɵɵelementEnd(),B.ɵɵelementStart(5,"div",39)(6,"button",40),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(2);return B.ɵɵresetView(t.error=!1)})),B.ɵɵtext(7,"Ingresar manualmente"),B.ɵɵelementEnd()()()}if(2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(4),B.ɵɵstyleProp("color",e.data.styles.colors.text),B.ɵɵproperty("innerHTML",e.error,B.ɵɵsanitizeHtml)}}function st(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",2)(1,"div",3),B.ɵɵtemplate(2,ze,2,1,"div",4),B.ɵɵtemplate(3,nt,13,12,"ng-container",1),B.ɵɵtemplate(4,it,2,2,"div",5),B.ɵɵtemplate(5,rt,8,3,"div",6),B.ɵɵelementEnd()()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵstyleProp("background",e.data.styles.colors.background),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.data.styles.withLogo&&"loading"!=e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.loading&&!e.error),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.loading&&!e.error),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.loading&&e.error)}}function ot(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"div",41),B.ɵɵtext(2),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(2),B.ɵɵtextInterpolate1("TestMode ",e.testMode?"ON":"OFF","")}}let at=class{constructor(e,t,n,i,r,s,o,a){this.cd=e,this.Activatedroute=t,this.utils=n,this.pinService=i,this.customizationService=r,this.notis=s,this.webhooksService=o,this.dialog=a,this.data=null,this.disableActions=!1,this.step="created",this.flowName="",this.loading=null,this.error=!1,this.testMode=!1,this.cntrlIsPressed=!1,this.shiftlIsPressed=!1,this.skipCreationOfRequest=!1,this.autoAcceptTerms=!1,this.lastThreeNumbersPhone=null}ngOnInit(){const e=this;this.loading="Obteniendo información de la solicitud",this.Activatedroute.params.subscribe((e=>{e&&e.idUser?(this.userId=e.idUser,this.setInitialData(this.userId)):this.loading=!1,e&&e.packID&&(this.packId=e.packID),this.utils.setLoading(!1)}),(e=>{this.loading=!1,this.utils.setLoading(!1)})),"pro"!=H.N.env&&(V(document).keydown((function(t){16==t.which&&(this.shiftlIsPressed=!0),17==t.which&&(this.cntrlIsPressed=!0),84==t.which&&this.cntrlIsPressed&&this.shiftlIsPressed&&(e.testMode=!e.testMode,e.cd.markForCheck())})),V(document).keyup((function(e){16==e.which&&(this.shiftlIsPressed=!1),16==e.which&&(this.cntrlIsPressed=!1)})))}ngOnDestroy(){}setInitialData(e){this.customizationService.getCustomization(e).then((e=>{e?(this.data=e,this.financiadorID=e.funder_id||"",this.validateRequestIdInUrl(),this.cd.markForCheck()):this.loading=!1}),(e=>{console.error(e),this.loading=!1}))}validateRequestIdInUrl(){this.Activatedroute.queryParams.subscribe((e=>{e&&e.acceptTerms&&(this.autoAcceptTerms=!0),e&&e.request_id?(this.requestID=e.request_id,this.setFormFromVcCode(e.request_id)):this.loading=!1}),(e=>{this.loading=!1}))}setFormFromVcCode(e){var t=this;return(0,R.Z)((function*(){t.loading="Obteniendo datos de la solicitud...",t.pinService.getSolicitudByCode(e).then((e=>{e&&e.data?(t.solicitud=e.data,t.setSubscriptionOfRequest(),t.loading=!1,t.skipCreationOfRequest=!0,t.autoAcceptTerms&&t.acceptTerms()):t.loading=!1})).catch((e=>{t.loading=!1}))}))()}sendMessageToParent(e){window.top.postMessage(e,"*")}handlePusherNotification(e){this.dataFromFirebase=e,this.dataFromFirebase&&this.dataFromFirebase.person_last_three_phone_number?this.lastThreeNumbersPhone=this.dataFromFirebase.person_last_three_phone_number:"waiting_documents"==this.dataFromFirebase.status_code?this.pinService.sendSecondTask({user_id:this.userId,request_id:this.requestID}).then((e=>{this.loading=!1})).catch((e=>{console.error(e),this.loading=!1})):this.dataFromFirebase&&this.dataFromFirebase.status_code&&("all_documents_downloaded"==this.dataFromFirebase.status_code||"failed_documents_downloaded"==this.dataFromFirebase.status_code||"consent_process_completed"==this.dataFromFirebase.status_code||(this.solicitud.status_code=this.dataFromFirebase.status_code,("invalid_otp_seguridad_social"==this.solicitud.status_code||"invalid_otp_aeat"==this.solicitud.status_code)&&this.showAlert("Error!","Código inválido. Por favor, introduzca el código recibido por SMS")),"terms_and_conditions"!=this.solicitud.status_code&&"saved_otp"!=this.solicitud.status_code&&setTimeout((()=>{this.loading=!1,this.cd.markForCheck()}),500))}setFlow(e){this.solicitud||(this.solicitud={}),this.flowSelected=e,this.solicitud.status_code=e}setSubscriptionOfRequest(){if(this.socket)return;console.error("set subscription!!");let e="wss://notifications.dev.belender.net";"qa"==H.N.env&&(e="wss://notifications.qa.belender.net"),"pro"==H.N.env&&(e="wss://notifications.belender.net"),H.N.notificationsBaseUrl&&(e=H.N.notificationsBaseUrl),this.socket=new WebSocket(`${e}?requests_id=${this.requestID}&user_id=${this.userId}`);var t=this;this.socket.onopen=function(e){console.log("Conexión establecida")},this.socket.onmessage=function(e){let n=JSON.parse(e.data);console.warn(n),t.handlePusherNotification(n)},this.socket.onerror=function(e){console.log("WebSocket Error: "+e),console.error(e),t.setSubscriptionOfRequestOld()},this.socket.onclose=function(e){console.log("Conexión cerrada"),t.setSubscriptionOfRequestOld()}}setSubscriptionOfRequestOld(){!this.financiadorID||!this.userId||!this.requestID||this.subscribed||(this.subscribed=!0,this.webhooksService.bindRequestChanges(this.financiadorID,this.userId,this.requestID),this.webhooksService.subscribeRequestChanges().subscribe((e=>{console.warn("from firebase: ",e),e&&this.handlePusherNotification(e)}),(e=>{this.loading=!1})))}sendNewData(e){this.loading="Enviando información..",this.pinService.fixData(this.requestID,e).then((e=>{e.status&&"error"==e.status?e.message&&(this.showAlert("Error!",e),this.loading=!1):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.initWaitingForResponse("Validando nuevos datos, espere por favor.."),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error)}))}showAlert(e,t){this.loading=!1,this.notis.showAlert(e,t)}gotoTerms(e){e.user_id=this.userId,e.package_id=this.packId,this.loading="Enviando datos..",this.testMode?setTimeout((()=>{this.solicitud=new Y.l,this.solicitud.status_code="waiting_otp_seguridad_social",this.loading=!1}),4e3):this.skipCreationOfRequest?(this.acceptTerms(),this.setSubscriptionOfRequest()):this.pinService.addSolicitud(e).then((t=>{t&&t.status&&"error"==t.status?t.message&&(this.solicitud=e,400==t.code&&"Does not have Pin service"==t.message?(this.solicitud.status_code="no_service",this.loading=!1):400==t.code&&"Incorrect support number"==t.message?(this.showAlert("Error!","Número de soporte inválido!"),this.solicitud.status_code="form"):400==t.code&&"Incorrect date"==t.message?(this.showAlert("Error!","Fecha incorrecta!"),this.solicitud.status_code="form"):(this.solicitud.status_code="form",this.showAlert("Error!",t.message))):t&&t.status&&"success"==t.status?(this.requestID=t.data.request_id,this.solicitud=t.data,this.setSubscriptionOfRequest(),this.sendMessageToParent(t.data),this.acceptTerms()):this.showAlert("Error!","Error desconocido: "+t)})).catch((e=>{console.error("respuesta desde pin service: ",e),e&&e.errorMessage&&this.showAlert("Error!",e.errorMessage)}))}acceptTerms(){let e={user_id:this.userId,request_id:this.requestID,terms_and_conditions:!0};this.initWaitingForResponse("Validando datos, espere por favor.."),this.pinService.acceptTerms(e).then((e=>{e.status&&"error"==e.status?e.message&&"You have a request in progress"==e.message?location.pathname.indexOf("widget-boxed")>-1?location.assign(e.response.widget_url_boxed):location.assign(e.response.widget_url):this.showAlert("Error!",e):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.setSubscriptionOfRequest(),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}requestOTP(e){this.loading="Enviando información..",this.pinService.sendOTP({user_id:this.userId,request_id:this.requestID,code:e.code}).then((e=>{e.status&&"error"==e.status?e.message&&(this.showAlert("Error!",e),this.loading=!1):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.initWaitingForResponse(),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}initWaitingForResponse(e){this.loading=e||"Validando información, espere por favor.."}askToBack(){this.pinService.getSolicitudByCode(this.requestID).then((e=>{e&&e.data?(this.solicitud=e.data,this.loading=!1):this.loading=!1})).catch((e=>{this.loading=!1}))}gotoErrorPhone(){}setRequestStatus(e){this.solicitud.status_code=e}resendOTP(e){let t={request_id:this.requestID,user_id:this.userId};this.loading="Reenviando OTP...",this.setSubscriptionOfRequest(),this.pinService.resendOTP(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}retryRequest(e){let t={request_id:e,user_id:this.userId};this.loading="Reintentando enviar la solicitud...",this.setSubscriptionOfRequest(),this.pinService.retryRequest(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}newRequest(e){this.solicitud.status_code="created"}getStatus(){return!this.solicitud||this.solicitud&&"created"==this.solicitud.status_code?"initial":!this.solicitud||"form"!=this.solicitud.status_code&&"terms_and_conditions"!=this.solicitud.status_code?this.solicitud&&"saved_otp"==this.solicitud.status_code?(this.loading="Estamos procesando su solicitud. Espere un momento por favor","loading"):!this.solicitud||"waiting_otp_seguridad_social"!=this.solicitud.status_code&&"waiting_login_seguridad_social"!=this.solicitud.status_code&&"invalid_otp_seguridad_social"!=this.solicitud.status_code?this.solicitud&&"manual"==this.solicitud.status_code?"manual":!this.solicitud||"waiting_otp_aeat"!=this.solicitud.status_code&&"waiting_login_aeat"!=this.solicitud.status_code&&"invalid_otp_aeat"!=this.solicitud.status_code?this.solicitud&&"no_service"==this.solicitud.status_code?"no-service":!this.solicitud||"all_documents_downloaded"!=this.solicitud.status_code&&"waiting_documents"!=this.solicitud.status_code&&"partial_documents_downloaded"!=this.solicitud.status_code?!this.solicitud||"failed_with_retry"!=this.solicitud.status_code&&"failed_without_retry"!=this.solicitud.status_code&&"failed_documents_downloaded"!=this.solicitud.status_code?!this.solicitud||"abandoned_after_waiting_otp_seguridad_social"!=this.solicitud.status_code&&"abandoned_after_invalid_otp_seguridad_social"!=this.solicitud.status_code&&"abandoned_after_invalid_otp_aeat"!=this.solicitud.status_code&&"abandoned_after_terms_and_conditions"!=this.solicitud.status_code&&"abandoned_after_waiting_otp_aeat"!=this.solicitud.status_code?this.solicitud&&"duplicated"==this.solicitud.status_code?"duplicated":"no-exist":"abandoned":"failed":this.data.config&&this.data.config.infiniteLoopInCompleted?"loading":"success":"otp_aeat":"otp_ss":"form"}sendRetry(){}gotoTermsAndConditions(){this.dialog.open(z.L,{panelClass:"fullscreen-dialog",data:{flow:"clavepin"}})}};at.ɵfac=function(e){return new(e||at)(B.ɵɵdirectiveInject(B.ChangeDetectorRef),B.ɵɵdirectiveInject(A.gz),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(T.v),B.ɵɵdirectiveInject(w.w),B.ɵɵdirectiveInject(M.T),B.ɵɵdirectiveInject(b.t),B.ɵɵdirectiveInject(W.uw))},at.ɵcmp=B.ɵɵdefineComponent({type:at,selectors:[["belender-widget-manual"]],inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud",flowName:"flowName"},features:[B.ɵɵProvidersFeature([{provide:F.o2,useValue:{appearance:"standard"}}])],decls:2,vars:2,consts:[["class","h-full widget-belender ",4,"ngIf"],[4,"ngIf"],[1,"h-full","widget-belender"],[1,"h-full","w-full","flex-auto","p-0","md:p-3"],["class","img-wrapper p-6 flex justify-center items-center",4,"ngIf"],["class","loading-wrapper animated fadeIn",4,"ngIf"],["class","animated fadeInRight",4,"ngIf"],[1,"img-wrapper","p-6","flex","justify-center","items-center"],["alt","",1,"img-card",3,"src"],[3,"status","data","loaderColor",4,"ngIf"],[3,"texts","data","setFlow",4,"ngIf"],[3,"texts","userId","flowName","packId","data","solicitud","goToTerms","nextStep",4,"ngIf"],[3,"texts","userId","packId","data","solicitud","goToTerms","nextStep",4,"ngIf"],[3,"data","solicitud","lastThreeNumbersPhone","texts","resendOTP","errorPhone","nextStep",4,"ngIf"],[3,"data","texts",4,"ngIf"],[3,"data","currentRequest","newRequest",4,"ngIf"],[3,"data","solicitud","texts","retryRequest","newRequest",4,"ngIf"],[3,"data","texts","solicitud","retryRequest",4,"ngIf"],[3,"texts","data",4,"ngIf"],["class","px-6 py-4 flex flex-col",4,"ngIf"],[3,"status","data","loaderColor"],[3,"texts","data","setFlow"],[3,"texts","userId","flowName","packId","data","solicitud","goToTerms","nextStep"],[3,"texts","userId","packId","data","solicitud","goToTerms","nextStep"],[3,"data","solicitud","lastThreeNumbersPhone","texts","resendOTP","errorPhone","nextStep"],[3,"data","texts"],[3,"data","currentRequest","newRequest"],[3,"data","solicitud","texts","retryRequest","newRequest"],[3,"data","texts","solicitud","retryRequest"],[3,"texts","data"],[1,"px-6","py-4","flex","flex-col"],[1,"title","m-0"],[1,"text-red-500"],[1,"subheading-1","pt-4"],[1,"loading-wrapper","animated","fadeIn"],[3,"text","color"],[1,"animated","fadeInRight"],[1,"text-red-500","title","m-0"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"text-blue-500","bg-blue-50","px-8",3,"click"],[1,"test-mode","px-10","py-2","bg-blue-500/10","text-blue-500","border-blue-500","border","rounded-md"]],template:function(e,t){1&e&&(B.ɵɵtemplate(0,st,6,6,"div",0),B.ɵɵtemplate(1,ot,3,1,"ng-container",1)),2&e&&(B.ɵɵproperty("ngIf",t.data),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.testMode))},dependencies:[i.O5,u.lW,$.O,le,xe,Ce,Ie,Te,Oe,De,Le,Ae,Ne,He],styles:[".widget-belender[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{min-height:360px}.card[_ngcontent-%COMP%]{transition:all .2s ease;overflow:hidden;width:500px;max-width:100%;margin:0 auto}.badge-table[_ngcontent-%COMP%]{max-width:140px!important;border-radius:5px!important;-webkit-border-radius:5px!important;-moz-border-radius:5px!important;-ms-border-radius:5px!important;-o-border-radius:5px!important}.btn-refresh[_ngcontent-%COMP%]{transform:translateY(2px)}.request-data-info[_ngcontent-%COMP%]{transition:all .5s ease!important}.img-card[_ngcontent-%COMP%]{max-width:240px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.loading-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center}.mat-flat-button.mat-primary.mat-button-disabled[_ngcontent-%COMP%]{background:red!important}button.mat-flat-button.text-green-500.bg-green-light.mat-button-disabled[_ngcontent-%COMP%]{background:orange!important}.test-mode[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px}"]}),at=(0,j.gn)([(0,q.c)()],at);const lt=[{path:":idUser",component:at},{path:":idUser/:packID",component:at}];let ct=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=B.ɵɵdefineNgModule({type:e}),e.ɵinj=B.ɵɵdefineInjector({imports:[A.Bz.forChild(lt),A.Bz,N.d8]}),e})();var dt=n(969);let ut=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=B.ɵɵdefineNgModule({type:e}),e.ɵinj=B.ɵɵdefineInjector({providers:[T.v,v.o,w.w,b.t,M.T,E.t,{provide:S.Ad,useValue:"es-ES"}],imports:[ct,i.ez,r.G,s.J,o.TU,a.p0,l.JX,c.p9,d.Ps,u.ot,h.Tx,x.c,p.FormsModule,m.AV,p.ReactiveFormsModule,f.LD,g.vV,_.a,y.Cq,C.FA,S.XK,I.T5,k.Fk,P.x,O.Nh,D.n,L.F,dt.O]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[452],{6452:(e,t,n)=>{n.r(t),n.d(t,{ManualModule:()=>lt});var i=n(6895),r=n(6383),s=n(5592),o=n(8739),a=n(7155),l=n(6308),c=n(6709),d=n(7392),u=n(9101),h=n(1561),p=n(4006),m=n(266),f=n(4385),g=n(811),_=n(3798),v=n(9391),y=n(1572),b=n(182),x=n(4144),w=n(7367),C=n(9602),S=n(3238),M=n(5895),I=n(6257),k=n(1948),E=n(4246),T=n(7489),P=n(6981),O=n(3848),D=n(1129),L=n(9476),A=n(9299),N=n(6e3),R=n(5861),j=n(7582),F=n(9549),q=n(9933),Y=n(5762),V=n(8259),H=n(2340),z=n(6830),B=n(4650),U=n(5089),W=n(1888),$=n(5412),G=n(8008),Z=n(4302),K=n(5601),Q=n(3731);function X(e,t){if(1&e&&B.ɵɵelement(0,"div",10),2&e){const e=B.ɵɵnextContext();B.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",e.texts.otpSS.title,B.ɵɵsanitizeHtml)}}function J(e,t){if(1&e&&(B.ɵɵelement(0,"div",11),B.ɵɵpipe(1,"safeHtml")),2&e){const e=B.ɵɵnextContext();B.ɵɵstyleProp("color",e.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(1,3,e.texts.otpSS.description),B.ɵɵsanitizeHtml)}}function ee(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}function te(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate2("¿No has recibido el código en el teléfono acabado en ",e.lastThreeNumbersPhone,"? Solicítalo de nuevo en ",e.secsCount," segundos")}}function ne(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1("¿No has recibido el código en tu teléfono? Solicítalo de nuevo en ",e.secsCount," segundos")}}const ie=function(e,t,n){return{color:e,border:t,background:n}};function re(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"small",12),B.ɵɵtemplate(2,ee,2,1,"span",5),B.ɵɵtemplate(3,te,2,2,"span",5),B.ɵɵtemplate(4,ne,2,1,"span",5),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction3(4,ie,e.data.styles.colors.accentColor,"1px solid "+e.data.styles.colors.accentColor,e.data.styles.colors.accentBgColor)),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.lastThreeNumbersPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&!e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&e.data.config.noRetryInBadPhone)}}function se(e,t){1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1," ¿No has recibido el código en tu teléfono? "),B.ɵɵelementEnd())}function oe(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1(" ¿No has recibido el código en el teléfono acabado en ",e.lastThreeNumbersPhone,"? ")}}function ae(e,t){1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1," ¿No has recibido el código en el teléfono? "),B.ɵɵelementEnd())}const le=function(e,t){return{color:e,background:t}};function ce(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"small",12),B.ɵɵtemplate(2,se,2,0,"span",5),B.ɵɵtemplate(3,oe,2,1,"span",5),B.ɵɵtemplate(4,ae,2,0,"span",5),B.ɵɵelementStart(5,"a",13),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext();return B.ɵɵresetView(t.resendOTP())})),B.ɵɵtext(6,"Reenviar código"),B.ɵɵelementEnd()(),B.ɵɵelementContainerEnd()}if(2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction3(5,ie,e.data.styles.colors.dangerColor,"1px solid "+e.data.styles.colors.dangerColor,e.data.styles.colors.dangerBgColor)),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.lastThreeNumbersPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&!e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction2(9,le,e.data.styles.colors.dangerTextButtonColor,e.data.styles.colors.dangerColor))}}let de=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.solucitudesService=n,this.activeRoute=i,this.next=new B.EventEmitter(null),this.errPhone=new B.EventEmitter(null),this.resendO=new B.EventEmitter(null),this.secsCount=60}ngOnInit(){this.form=this.fb.group({code1:[null,[p.Validators.required,p.Validators.maxLength(6),p.Validators.minLength(3)]]}),this.initSecsInterval(),this.activeRoute.queryParams.subscribe((e=>{e&&e.request_id&&(this.requestID=e.request_id)}),(e=>{console.error(e)}))}initSecsInterval(){this.interv=setInterval((()=>{this.secsCount--,this.secsCount<=0&&this.finishSecsInterval()}),1e3)}finishSecsInterval(){this.interv&&clearInterval(this.interv)}nextStep(){let e={code:this.getCode()};this.next.emit(e)}getCode(){return this.form.get("code1").value}capturePasteEvent(e){return(0,R.Z)((function*(){}))()}errorStep(){this.errPhone.emit(!0)}setInputEvent(e){""!=e.target.value?V(e.target).next().focus():"Backspace"==e.code&&V(e.target).prev().focus()}resendOTP(){this.resendO.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(K.M),B.ɵɵdirectiveInject(A.gz))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-otp-ss-step"]],inputs:{data:"data",texts:"texts",lastThreeNumbersPhone:"lastThreeNumbersPhone",solicitud:"solicitud"},outputs:{next:"nextStep",errPhone:"errorPhone",resendO:"resendOTP"},decls:12,vars:12,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-1","flex","flex-col"],["class","title m-0",3,"color","font-size","innerHTML",4,"ngIf"],["class","subheading-1 pt-4",3,"color","innerHTML",4,"ngIf"],[1,"title","py-2"],[4,"ngIf"],[1,"flex","gap-2","items-center","justify-start"],["formControlName","code1","maxlength","6","minlength","1","type","text",3,"change","keyup"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","next-button","mat-flat-button","","type","button",1,"px-8",3,"disabled","click"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"info-time","w-fit",3,"ngStyle"],[1,"ml-4",3,"ngStyle","click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵtemplate(2,X,1,5,"div",2),B.ɵɵtemplate(3,J,2,5,"div",3),B.ɵɵelementStart(4,"div",4),B.ɵɵtemplate(5,re,5,8,"ng-container",5),B.ɵɵtemplate(6,ce,7,12,"ng-container",5),B.ɵɵelementEnd(),B.ɵɵelementStart(7,"div",6)(8,"input",7),B.ɵɵlistener("change",(function(e){return t.capturePasteEvent(e)}))("keyup",(function(e){return t.setInputEvent(e)})),B.ɵɵelementEnd()()(),B.ɵɵelementStart(9,"div",8)(10,"button",9),B.ɵɵlistener("click",(function(){return t.nextStep()})),B.ɵɵtext(11,"Siguiente"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵproperty("formGroup",t.form),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.texts.otpSS.title&&""!=t.texts.otpSS.title),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.texts.otpSS.description&&""!=t.texts.otpSS.description),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.secsCount&&t.secsCount>0),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!t.secsCount||t.secsCount<=0),B.ɵɵadvance(4),B.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),B.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,i.PC,u.lW,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,Q.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function ue(e,t){if(1&e&&B.ɵɵelement(0,"div",10),2&e){const e=B.ɵɵnextContext();B.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",e.texts.otpAEAT.title,B.ɵɵsanitizeHtml)}}function he(e,t){if(1&e&&(B.ɵɵelement(0,"div",11),B.ɵɵpipe(1,"safeHtml")),2&e){const e=B.ɵɵnextContext();B.ɵɵstyleProp("color",e.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(1,3,e.texts.otpAEAT.description),B.ɵɵsanitizeHtml)}}function pe(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}function me(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate2("¿No has recibido el código en el teléfono acabado en ",e.lastThreeNumbersPhone,"? Solicítalo de nuevo en ",e.secsCount," segundos")}}function fe(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1("¿No has recibido el código en tu teléfono? Solicítalo de nuevo en ",e.secsCount," segundos")}}const ge=function(e,t,n){return{color:e,border:t,background:n}};function _e(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"small",12),B.ɵɵtemplate(2,pe,2,1,"span",5),B.ɵɵtemplate(3,me,2,2,"span",5),B.ɵɵtemplate(4,fe,2,1,"span",5),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction3(4,ge,e.data.styles.colors.accentColor,"1px solid "+e.data.styles.colors.accentColor,e.data.styles.colors.accentBgColor)),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.lastThreeNumbersPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&!e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&e.data.config.noRetryInBadPhone)}}function ve(e,t){1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1," ¿No has recibido el código en tu teléfono? "),B.ɵɵelementEnd())}function ye(e,t){if(1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵtextInterpolate1(" ¿No has recibido el código en el teléfono acabado en ",e.lastThreeNumbersPhone,"? ")}}function be(e,t){1&e&&(B.ɵɵelementStart(0,"span"),B.ɵɵtext(1," ¿No has recibido el código en el teléfono? "),B.ɵɵelementEnd())}const xe=function(e,t){return{color:e,background:t}};function we(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"small",12),B.ɵɵtemplate(2,ve,2,0,"span",5),B.ɵɵtemplate(3,ye,2,1,"span",5),B.ɵɵtemplate(4,be,2,0,"span",5),B.ɵɵelementStart(5,"a",13),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext();return B.ɵɵresetView(t.resendOTP())})),B.ɵɵtext(6,"Reenviar"),B.ɵɵelementEnd()(),B.ɵɵelementContainerEnd()}if(2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction3(5,ge,e.data.styles.colors.dangerColor,"1px solid "+e.data.styles.colors.dangerColor,e.data.styles.colors.dangerBgColor)),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.lastThreeNumbersPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.lastThreeNumbersPhone&&!e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.data.config.noRetryInBadPhone),B.ɵɵadvance(1),B.ɵɵproperty("ngStyle",B.ɵɵpureFunction2(9,xe,e.data.styles.colors.dangerTextButtonColor,e.data.styles.colors.dangerColor))}}let Ce=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.solucitudesService=n,this.activeRoute=i,this.next=new B.EventEmitter(null),this.errPhone=new B.EventEmitter(null),this.resendO=new B.EventEmitter(null),this.secsCount=60}ngOnInit(){this.form=this.fb.group({code1:[null,[p.Validators.required,p.Validators.maxLength(6),p.Validators.minLength(3)]]}),this.initSecsInterval(),this.activeRoute.queryParams.subscribe((e=>{e&&e.request_id&&(this.requestID=e.request_id)}),(e=>{console.error(e)}))}initSecsInterval(){this.interv=setInterval((()=>{this.secsCount--,this.secsCount<=0&&this.finishSecsInterval()}),1e3)}finishSecsInterval(){this.interv&&clearInterval(this.interv)}nextStep(){let e={code:this.getCode()};this.next.emit(e)}getCode(){return this.form.get("code1").value}capturePasteEvent(e){return(0,R.Z)((function*(){}))()}errorStep(){this.errPhone.emit(!0)}setInputEvent(e){""!=e.target.value?V(e.target).next().focus():"Backspace"==e.code&&V(e.target).prev().focus()}resendOTP(){this.resendO.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(K.M),B.ɵɵdirectiveInject(A.gz))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-otp-aeat-step"]],inputs:{data:"data",texts:"texts",lastThreeNumbersPhone:"lastThreeNumbersPhone",solicitud:"solicitud"},outputs:{next:"nextStep",errPhone:"errorPhone",resendO:"resendOTP"},decls:12,vars:12,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-1","flex","flex-col"],["class","title m-0",3,"color","font-size","innerHTML",4,"ngIf"],["class","subheading-1 pt-4",3,"color","innerHTML",4,"ngIf"],[1,"title","py-2"],[4,"ngIf"],[1,"flex","gap-2","items-center","justify-start"],["formControlName","code1","maxlength","6","minlength","1","type","text",3,"change","keyup"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","next-button","mat-flat-button","","type","button",1,"px-8",3,"disabled","click"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"info-time","w-fit",3,"ngStyle"],[1,"ml-4",3,"ngStyle","click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵtemplate(2,ue,1,5,"div",2),B.ɵɵtemplate(3,he,2,5,"div",3),B.ɵɵelementStart(4,"div",4),B.ɵɵtemplate(5,_e,5,8,"ng-container",5),B.ɵɵtemplate(6,we,7,12,"ng-container",5),B.ɵɵelementEnd(),B.ɵɵelementStart(7,"div",6)(8,"input",7),B.ɵɵlistener("change",(function(e){return t.capturePasteEvent(e)}))("keyup",(function(e){return t.setInputEvent(e)})),B.ɵɵelementEnd()()(),B.ɵɵelementStart(9,"div",8)(10,"button",9),B.ɵɵlistener("click",(function(){return t.nextStep()})),B.ɵɵtext(11,"Siguiente"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵproperty("formGroup",t.form),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.texts.otpAEAT.title&&""!=t.texts.otpAEAT.title),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.texts.otpAEAT.description&&""!=t.texts.otpAEAT.description),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.secsCount&&t.secsCount>0),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!t.secsCount||t.secsCount<=0),B.ɵɵadvance(4),B.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),B.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,i.PC,u.lW,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,Q.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function Se(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",1),B.ɵɵelement(1,"div",2)(2,"div",3),B.ɵɵpipe(3,"safeHtml"),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",e.texts.success.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",e.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(3,8,e.texts.success.description||""),B.ɵɵsanitizeHtml)}}let Me=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r}ngOnInit(){}save(){}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(K.M),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(M.T))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-success-step"]],inputs:{data:"data",texts:"texts"},decls:1,vars:1,consts:[["class"," pt-4 pb-8 flex flex-col animated fadeIn",4,"ngIf"],[1,"pt-4","pb-8","flex","flex-col","animated","fadeIn"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&B.ɵɵtemplate(0,Se,4,10,"div",0),2&e&&B.ɵɵproperty("ngIf",!t.data.config.infiniteLoopInCompleted)},dependencies:[i.O5,Q.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function Ie(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"div",5)(1,"button",6),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext();return B.ɵɵresetView(t.retry())})),B.ɵɵtext(2,"Intentarlo nuevamente"),B.ɵɵelementEnd()()}if(2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}function ke(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"div",5)(1,"button",6),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext();return B.ɵɵresetView(t.newRequest())})),B.ɵɵtext(2,"Crear Nueva Solicitud"),B.ɵɵelementEnd()()}if(2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}let Ee=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryR=new B.EventEmitter(null),this.newR=new B.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryR.emit(this.solicitud.request_id)}newRequest(){this.newR.emit(this.solicitud.request_id)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(K.M),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(M.T))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-fail-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{retryR:"retryRequest",newR:"newRequest"},decls:7,vars:8,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"text-red-500","title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],["class","flex items-center justify-end gap-2 p-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementEnd(),B.ɵɵtemplate(5,Ie,3,6,"div",4),B.ɵɵtemplate(6,ke,3,6,"div",4),B.ɵɵelementEnd()),2&e&&(B.ɵɵadvance(2),B.ɵɵproperty("innerHTML",t.texts.fail.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,6,t.texts.fail.description),B.ɵɵsanitizeHtml),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.solicitud&&"failed_with_retry"==t.solicitud.status_code),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.solicitud&&"failed_documents_downloaded"==t.solicitud.status_code))},dependencies:[i.O5,u.lW,Q.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();n(6866);var Te=n(9617),Pe=n(1406);function Oe(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"app-file-upload",11),B.ɵɵlistener("change",(function(t){const n=B.ɵɵrestoreView(e).$implicit,i=B.ɵɵnextContext(2);return B.ɵɵresetView(i.setFile(n,t))})),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()}if(2&e){const e=t.$implicit;B.ɵɵadvance(1),B.ɵɵpropertyInterpolate("label",e)}}function De(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",9),B.ɵɵtemplate(1,Oe,2,1,"ng-container",10),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵproperty("ngForOf",e.pack.documents)}}function Le(e,t){1&e&&(B.ɵɵelementStart(0,"div",12),B.ɵɵelement(1,"belender-spinner",13),B.ɵɵelementEnd()),2&e&&(B.ɵɵadvance(1),B.ɵɵproperty("zoom",.6))}let Ae=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.attachmentsService=n,this.packsS=i,this.upload=new B.EventEmitter(null),this.back=new B.EventEmitter(null),this.loadingPack=!1}ngOnInit(){this.form=this.fb.group({}),this.loadingPack=!0,this.packsS.getPackagesByUserID(this.userId).then((e=>{e&&e.data?this.setPack(e.data):this.loadingPack=!1})).catch((e=>{console.error(e),this.loadingPack=!1}))}setPack(e){this.pack=e.find((e=>e.id==this.packId)),console.error("pack: ",this.pack),this.loadingPack=!1,this.setForm()}setForm(){this.pack&&this.pack.documents&&this.pack.documents.forEach((e=>{this.form.addControl(e,new p.FormControl("",p.Validators.required))}))}uploadFiles(e){this.upload.emit(!0),e.preventDefault(),e.stopPropagation(),console.error("Form: ",this.form);const t=new FormData;this.attachmentsService.uploadFile(t).then((e=>{console.warn(e)})).catch((e=>{console.error(e)}))}goBack(){this.back.emit(!0)}setFile(e,t){t.file&&this.form.get(e).setValue(t.file),console.error(t)}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(Te.U))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],inputs:{data:"data",flowName:"flowName",solicitud:"solicitud",packId:"packId",userId:"userId",texts:"texts"},outputs:{upload:"uploadFiles",back:"goBack"},decls:12,vars:22,consts:[[1,"flex","flex-col","justify-between","h-full","fixed-content",3,"formGroup"],[1,"flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],["class","py-4",4,"ngIf"],["class","py-10 px-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-2"],["mat-flat-button","","type","button",1,"px-8","bg-slate-100","hover:bg-slate-200","text-slate-900",3,"click"],["mat-flat-button","","type","button",1,"px-8","hover:opacity-90",3,"disabled","click"],[1,"py-4"],[4,"ngFor","ngForOf"],[3,"label","change"],[1,"py-10","px-4"],["text","Cargando documentos",3,"zoom"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementEnd(),B.ɵɵtemplate(5,De,2,1,"div",4),B.ɵɵtemplate(6,Le,2,1,"div",5),B.ɵɵelementStart(7,"div",6)(8,"button",7),B.ɵɵlistener("click",(function(){return t.goBack()})),B.ɵɵtext(9,"Volver"),B.ɵɵelementEnd(),B.ɵɵelementStart(10,"button",8),B.ɵɵlistener("click",(function(e){return t.uploadFiles(e)})),B.ɵɵtext(11,"Subir archivos"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵproperty("formGroup",t.form),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",t.texts.form.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,20,t.texts.form.description||""),B.ɵɵsanitizeHtml),B.ɵɵadvance(2),B.ɵɵproperty("ngIf",t.pack&&!t.loadingPack),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.loadingPack),B.ɵɵadvance(2),B.ɵɵstyleProp("border-radius",t.data.styles.btnRound+"px"),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.form.invalid?"":t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),B.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.sg,i.O5,u.lW,p.ɵNgNoValidate,p.NgControlStatusGroup,p.FormGroupDirective,G.O,Pe.Y,Q.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.dont-show-data[_ngcontent-%COMP%]{opacity:0!important;padding:0!important;overflow:hidden!important;height:0px!important;margin:0!important}"]}),e})();var Ne=n(5145);let Re=(()=>{class e{constructor(e){this.utils=e,this.status="",this.label="Cargando datos..",this.loaderColor="red"}ngOnInit(){this.data.config&&this.data.config.infiniteLoopInCompleted?this.label="":Ne.Z.forEach((e=>{e.text==this.status&&(this.label=e.label)}))}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(U.F))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-loading-step"]],inputs:{status:"status",loaderColor:"loaderColor",data:"data"},decls:3,vars:2,consts:[[1,"fixed-content","h-full","animated","fadeIn"],[1,"h-full","py-10","flex","flex-col","items-center","min-h-[300px]"],[3,"text","color"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1),B.ɵɵelement(2,"belender-spinner",2),B.ɵɵelementEnd()()),2&e&&(B.ɵɵadvance(2),B.ɵɵproperty("text",t.label)("color",t.loaderColor))},dependencies:[G.O],styles:[".content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),je=(()=>{class e{constructor(){}ngOnInit(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-no-service-step"]],inputs:{data:"data",texts:"texts"},decls:5,vars:10,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"form",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementEnd()()),2&e&&(B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",t.texts.noService.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,8,t.texts.noService.description),B.ɵɵsanitizeHtml))},dependencies:[p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm,Q.z]}),e})(),Fe=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryR=new B.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryR.emit(this.solicitud.request_id)}getTextStatus(){switch(this.solicitud.status_code){case"abandoned_after_waiting_otp_seguridad_social":return"Abandonado después de esperar OTP de Seguridad Social";case"abandoned_after_invalid_otp_seguridad_social":return"Abandonado despues de OTP inválido en Seguridad Social";case"abandoned_after_invalid_otp_aeat":return"Abandonado despues de OTP inválido en AEAT";case"abandoned_after_waiting_otp_aeat":return"Abandonado después de esperar OTP de AEAT";default:return this.solicitud.status_code}}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(K.M),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(M.T))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-abandoned-step"]],inputs:{data:"data",solicitud:"solicitud",texts:"texts"},outputs:{retryR:"retryRequest"},decls:10,vars:17,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-md","mb-2","mt-2"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1),B.ɵɵelement(2,"div",2)(3,"div",3),B.ɵɵpipe(4,"safeHtml"),B.ɵɵelementStart(5,"div",4),B.ɵɵtext(6),B.ɵɵelementEnd()(),B.ɵɵelementStart(7,"div",5)(8,"button",6),B.ɵɵlistener("click",(function(){return t.retry()})),B.ɵɵtext(9,"Intentarlo nuevamente"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵproperty("innerHTML",t.texts.abandoned.title,B.ɵɵsanitizeHtml),B.ɵɵadvance(1),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵproperty("innerHTML",B.ɵɵpipeBind1(4,15,t.texts.abandoned.description),B.ɵɵsanitizeHtml),B.ɵɵadvance(3),B.ɵɵtextInterpolate1(" Estado: ",t.getTextStatus()," "),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW,Q.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),qe=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.nr=new B.EventEmitter(null)}ngOnInit(){}newRequest(){this.nr.emit(!0)}gotoRequest(){location.assign(this.currentRequest.widget_url_boxed)}getStatus(){let e=Ne.Z.find((e=>e.text==this.currentRequest.status_code));return e?e.label:"Estado desconocido"}}return e.ɵfac=function(t){return new(t||e)(B.ɵɵdirectiveInject(p.UntypedFormBuilder),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(K.M),B.ɵɵdirectiveInject(v.o),B.ɵɵdirectiveInject(M.T))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-duplicated-request-step"]],inputs:{currentRequest:"currentRequest",data:"data",texts:"texts"},outputs:{nr:"newRequest"},decls:15,vars:15,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"flex","gap-2","justify-start","items-center","py-2"],[1,"w-fit","p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-sm"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(B.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),B.ɵɵtext(3," Solicitud duplicada! "),B.ɵɵelementEnd(),B.ɵɵelementStart(4,"div",3),B.ɵɵtext(5," Ya existe una solicitud para este cliente. "),B.ɵɵelementEnd(),B.ɵɵelementStart(6,"div",4),B.ɵɵtext(7," Estado de la solicitud actual: "),B.ɵɵelementStart(8,"div",5),B.ɵɵtext(9),B.ɵɵelementEnd()()(),B.ɵɵelementStart(10,"div",6)(11,"button",7),B.ɵɵlistener("click",(function(){return t.newRequest()})),B.ɵɵtext(12,"Nueva solicitud"),B.ɵɵelementEnd(),B.ɵɵelementStart(13,"button",7),B.ɵɵlistener("click",(function(){return t.gotoRequest()})),B.ɵɵtext(14,"Ir a la solicitud actual"),B.ɵɵelementEnd()()()),2&e&&(B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.text),B.ɵɵadvance(5),B.ɵɵtextInterpolate1(" ",t.getStatus()," "),B.ɵɵadvance(2),B.ɵɵstyleProp("border-radius",t.data.styles.btnRound+"px"),B.ɵɵadvance(2),B.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function Ye(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",7),B.ɵɵelement(1,"img",8),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵproperty("src",e.data.styles.logoUrl,B.ɵɵsanitizeUrl)}}function Ve(e,t){if(1&e&&B.ɵɵelement(0,"belender-loading-step",18),2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("status",null==e.solicitud?null:e.solicitud.status_code)("data",e.data)("loaderColor",e.data.styles.colors.title)}}function He(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-form-step",19),B.ɵɵlistener("goToTerms",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(3);return B.ɵɵresetView(t.gotoTermsAndConditions())}))("nextStep",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.gotoTerms(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("texts",e.data[e.flowName].texts)("userId",e.userId)("flowName",e.flowName)("packId",e.packId)("data",e.data)("solicitud",e.solicitud)}}function ze(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-otp-ss-step",20),B.ɵɵlistener("resendOTP",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(3);return B.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.requestOTP(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("solicitud",e.solicitud)("lastThreeNumbersPhone",e.lastThreeNumbersPhone)("texts",e.data[e.flowName].texts)}}function Be(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-otp-aeat-step",20),B.ɵɵlistener("resendOTP",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(3);return B.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.requestOTP(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("solicitud",e.solicitud)("lastThreeNumbersPhone",e.lastThreeNumbersPhone)("texts",e.data[e.flowName].texts)}}function Ue(e,t){if(1&e&&B.ɵɵelement(0,"belender-success-step",21),2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)}}function We(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-duplicated-request-step",22),B.ɵɵlistener("newRequest",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.newRequest(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("currentRequest",e.currentRequest)}}function $e(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-fail-step",23),B.ɵɵlistener("retryRequest",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.retryRequest(t))}))("newRequest",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.newRequest(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("solicitud",e.solicitud)("texts",e.data[e.flowName].texts)}}function Ge(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-abandoned-step",24),B.ɵɵlistener("retryRequest",(function(t){B.ɵɵrestoreView(e);const n=B.ɵɵnextContext(3);return B.ɵɵresetView(n.retryRequest(t))})),B.ɵɵelementEnd()}if(2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Ze(e,t){if(1&e&&B.ɵɵelement(0,"belender-no-service-step",25),2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("texts",e.data[e.flowName].texts)("data",e.data)}}function Ke(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",26)(1,"div",27)(2,"h1",28),B.ɵɵtext(3,"No existe la solicitud"),B.ɵɵelementEnd()(),B.ɵɵelementStart(4,"div",29),B.ɵɵtext(5,"No existen solicitudes activas con el código requerido"),B.ɵɵelementEnd()()),2&e){const e=B.ɵɵnextContext(3);B.ɵɵadvance(4),B.ɵɵstyleProp("color",e.data.styles.colors.text)}}function Qe(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵtemplate(1,Ve,1,3,"belender-loading-step",9),B.ɵɵtemplate(2,He,1,6,"belender-form-step",10),B.ɵɵtemplate(3,ze,1,4,"belender-otp-ss-step",11),B.ɵɵtemplate(4,Be,1,4,"belender-otp-aeat-step",11),B.ɵɵtemplate(5,Ue,1,2,"belender-success-step",12),B.ɵɵtemplate(6,We,1,2,"belender-duplicated-request-step",13),B.ɵɵtemplate(7,$e,1,3,"belender-fail-step",14),B.ɵɵtemplate(8,Ge,1,3,"belender-abandoned-step",15),B.ɵɵtemplate(9,Ze,1,2,"belender-no-service-step",16),B.ɵɵtemplate(10,Ke,6,2,"div",17),B.ɵɵelementContainerEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵproperty("ngIf","loading"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","form"==e.getStatus()&&!e.loading),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","otp_ss"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","otp_aeat"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","success"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","duplicated"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","failed"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","abandoned"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","no-service"==e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf","created"!=e.step)}}function Xe(e,t){1&e&&B.ɵɵelement(0,"belender-disabled-url")}function Je(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",30),B.ɵɵelement(1,"belender-spinner",31),B.ɵɵelementEnd()),2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(1),B.ɵɵpropertyInterpolate("text",e.loading),B.ɵɵproperty("color",e.data.styles.colors.title)}}function et(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"div",32)(1,"div",26)(2,"div",33),B.ɵɵtext(3,"Error!"),B.ɵɵelementEnd(),B.ɵɵelement(4,"div",34),B.ɵɵelementEnd(),B.ɵɵelementStart(5,"div",35)(6,"button",36),B.ɵɵlistener("click",(function(){B.ɵɵrestoreView(e);const t=B.ɵɵnextContext(2);return B.ɵɵresetView(t.error=!1)})),B.ɵɵtext(7,"Ingresar manualmente"),B.ɵɵelementEnd()()()}if(2&e){const e=B.ɵɵnextContext(2);B.ɵɵadvance(4),B.ɵɵstyleProp("color",e.data.styles.colors.text),B.ɵɵproperty("innerHTML",e.error,B.ɵɵsanitizeHtml)}}function tt(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",2)(1,"div",3),B.ɵɵtemplate(2,Ye,2,1,"div",4),B.ɵɵtemplate(3,Qe,11,10,"ng-container",1),B.ɵɵtemplate(4,Xe,1,0,"belender-disabled-url",1),B.ɵɵtemplate(5,Je,2,2,"div",5),B.ɵɵtemplate(6,et,8,3,"div",6),B.ɵɵelementEnd()()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(1),B.ɵɵstyleProp("background",e.data.styles.colors.background),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.data.styles.withLogo&&"loading"!=e.getStatus()),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.loading&&!e.error&&!e.disableURL),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.error&&e.disableURL),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",e.loading&&!e.error),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",!e.loading&&e.error)}}function nt(e,t){if(1&e&&(B.ɵɵelementContainerStart(0),B.ɵɵelementStart(1,"div",37),B.ɵɵtext(2),B.ɵɵelementEnd(),B.ɵɵelementContainerEnd()),2&e){const e=B.ɵɵnextContext();B.ɵɵadvance(2),B.ɵɵtextInterpolate1("TestMode ",e.testMode?"ON":"OFF","")}}let it=class{constructor(e,t,n,i,r,s,o,a,l){this.cd=e,this.Activatedroute=t,this.utils=n,this.pinService=i,this.customizationService=r,this.docsS=s,this.notis=o,this.webhooksService=a,this.dialog=l,this.data=null,this.disableActions=!1,this.step="created",this.flowName="",this.loading=null,this.error=!1,this.testMode=!1,this.cntrlIsPressed=!1,this.shiftlIsPressed=!1,this.skipCreationOfRequest=!1,this.autoAcceptTerms=!1,this.lastThreeNumbersPhone=null,this.disableURL=!1}ngOnInit(){this.docsS.getAllDocumentsType().then((e=>{console.warn(e)}));const e=this;this.loading="Obteniendo información de la solicitud",this.Activatedroute.params.subscribe((e=>{e&&e.idUser?(this.userId=e.idUser,this.setInitialData(this.userId)):this.loading=!1,e&&e.packID&&(this.packId=e.packID),this.utils.setLoading(!1)}),(e=>{this.loading=!1,this.utils.setLoading(!1)})),"pro"!=H.N.env&&(V(document).keydown((function(t){16==t.which&&(this.shiftlIsPressed=!0),17==t.which&&(this.cntrlIsPressed=!0),84==t.which&&this.cntrlIsPressed&&this.shiftlIsPressed&&(e.testMode=!e.testMode,e.cd.markForCheck())})),V(document).keyup((function(e){16==e.which&&(this.shiftlIsPressed=!1),16==e.which&&(this.cntrlIsPressed=!1)})))}ngOnDestroy(){}setInitialData(e){this.customizationService.getCustomization(e).then((e=>{e?(this.data=e,this.disableURL=e.config.disableUrlWidget,this.financiadorID=e.funder_id||"",this.validateRequestIdInUrl(),this.cd.markForCheck()):this.loading=!1}),(e=>{console.error(e),this.loading=!1}))}validateRequestIdInUrl(){this.Activatedroute.queryParams.subscribe((e=>{e&&e.acceptTerms&&(this.autoAcceptTerms=!0),e&&e.request_id?(this.disableURL=!1,this.requestID=e.request_id,this.setFormFromVcCode(e.request_id)):this.loading=!1}),(e=>{this.loading=!1}))}setFormFromVcCode(e){var t=this;return(0,R.Z)((function*(){t.loading="Obteniendo datos de la solicitud...",t.pinService.getSolicitudByCode(e).then((e=>{e&&e.data?(t.solicitud=e.data,t.setSubscriptionOfRequest(),t.loading=!1,t.skipCreationOfRequest=!0,t.autoAcceptTerms&&t.acceptTerms()):t.loading=!1})).catch((e=>{t.loading=!1}))}))()}sendMessageToParent(e){window.top.postMessage(e,"*")}handlePusherNotification(e){this.dataFromFirebase=e,this.dataFromFirebase&&this.dataFromFirebase.person_last_three_phone_number?this.lastThreeNumbersPhone=this.dataFromFirebase.person_last_three_phone_number:"waiting_documents"==this.dataFromFirebase.status_code?this.pinService.sendSecondTask({user_id:this.userId,request_id:this.requestID}).then((e=>{this.loading=!1})).catch((e=>{console.error(e),this.loading=!1})):this.dataFromFirebase&&this.dataFromFirebase.status_code&&("all_documents_downloaded"==this.dataFromFirebase.status_code||"failed_documents_downloaded"==this.dataFromFirebase.status_code||"consent_process_completed"==this.dataFromFirebase.status_code||(this.solicitud.status_code=this.dataFromFirebase.status_code,("invalid_otp_seguridad_social"==this.solicitud.status_code||"invalid_otp_aeat"==this.solicitud.status_code)&&this.showAlert("Error!","Código inválido. Por favor, introduzca el código recibido por SMS")),"terms_and_conditions"!=this.solicitud.status_code&&"saved_otp"!=this.solicitud.status_code&&setTimeout((()=>{this.loading=!1,this.cd.markForCheck()}),500))}setSubscriptionOfRequest(){if(this.socket)return;console.error("set subscription!!");let e="wss://notifications.dev.belender.net";"qa"==H.N.env&&(e="wss://notifications.qa.belender.net"),"pro"==H.N.env&&(e="wss://notifications.belender.net"),H.N.notificationsBaseUrl&&(e=H.N.notificationsBaseUrl),this.socket=new WebSocket(`${e}?requests_id=${this.requestID}&user_id=${this.userId}`);var t=this;this.socket.onopen=function(e){console.log("Conexión establecida")},this.socket.onmessage=function(e){let n=JSON.parse(e.data);console.warn(n),t.handlePusherNotification(n)},this.socket.onerror=function(e){console.log("WebSocket Error: "+e),console.error(e),t.setSubscriptionOfRequestOld()},this.socket.onclose=function(e){console.log("Conexión cerrada"),t.setSubscriptionOfRequestOld()}}setSubscriptionOfRequestOld(){!this.financiadorID||!this.userId||!this.requestID||this.subscribed||(this.subscribed=!0,this.webhooksService.bindRequestChanges(this.financiadorID,this.userId,this.requestID),this.webhooksService.subscribeRequestChanges().subscribe((e=>{console.warn("from firebase: ",e),e&&this.handlePusherNotification(e)}),(e=>{this.loading=!1})))}sendNewData(e){this.loading="Enviando información..",this.pinService.fixData(this.requestID,e).then((e=>{e.status&&"error"==e.status?e.message&&(this.showAlert("Error!",e),this.loading=!1):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.initWaitingForResponse("Validando nuevos datos, espere por favor.."),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error)}))}showAlert(e,t){this.loading=!1,this.notis.showAlert(e,t)}gotoTerms(e){e.user_id=this.userId,e.package_id=this.packId,this.loading="Enviando datos..",this.testMode?setTimeout((()=>{this.solicitud=new Y.l,this.solicitud.status_code="waiting_otp_seguridad_social",this.loading=!1}),4e3):this.skipCreationOfRequest?(this.acceptTerms(),this.setSubscriptionOfRequest()):this.pinService.addSolicitud(e).then((t=>{t&&t.status&&"error"==t.status?t.message&&(this.solicitud=e,400==t.code&&"Does not have Pin service"==t.message?(this.solicitud.status_code="no_service",this.loading=!1):400==t.code&&"Incorrect support number"==t.message?(this.showAlert("Error!","Número de soporte inválido!"),this.solicitud.status_code="form"):400==t.code&&"Incorrect date"==t.message?(this.showAlert("Error!","Fecha incorrecta!"),this.solicitud.status_code="form"):(this.solicitud.status_code="form",this.showAlert("Error!",t.message))):t&&t.status&&"success"==t.status?(this.requestID=t.data.request_id,this.solicitud=t.data,this.setSubscriptionOfRequest(),this.sendMessageToParent(t.data),this.acceptTerms()):this.showAlert("Error!","Error desconocido: "+t)})).catch((e=>{console.error("respuesta desde pin service: ",e),e&&e.errorMessage&&this.showAlert("Error!",e.errorMessage)}))}acceptTerms(){let e={user_id:this.userId,request_id:this.requestID,terms_and_conditions:!0};this.initWaitingForResponse("Validando datos, espere por favor.."),this.pinService.acceptTerms(e).then((e=>{e.status&&"error"==e.status?e.message&&"You have a request in progress"==e.message?location.pathname.indexOf("widget-boxed")>-1?location.assign(e.response.widget_url_boxed):location.assign(e.response.widget_url):this.showAlert("Error!",e):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.setSubscriptionOfRequest(),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}requestOTP(e){this.loading="Enviando información..",this.pinService.sendOTP({user_id:this.userId,request_id:this.requestID,code:e.code}).then((e=>{e.status&&"error"==e.status?e.message&&(this.showAlert("Error!",e),this.loading=!1):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.initWaitingForResponse(),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}initWaitingForResponse(e){this.loading=e||"Validando información, espere por favor.."}askToBack(){this.pinService.getSolicitudByCode(this.requestID).then((e=>{e&&e.data?(this.solicitud=e.data,this.loading=!1):this.loading=!1})).catch((e=>{this.loading=!1}))}gotoErrorPhone(){}setRequestStatus(e){this.solicitud.status_code=e}resendOTP(e){let t={request_id:this.requestID,user_id:this.userId};this.loading="Reenviando OTP...",this.setSubscriptionOfRequest(),this.pinService.resendOTP(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}retryRequest(e){let t={request_id:e,user_id:this.userId};this.loading="Reintentando enviar la solicitud...",this.setSubscriptionOfRequest(),this.pinService.retryRequest(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}newRequest(e){this.solicitud.status_code="created"}getStatus(){return!this.solicitud||this.solicitud&&("created"==this.solicitud.status_code||"form"==this.solicitud.status_code||"terms_and_conditions"==this.solicitud.status_code)?"form":this.solicitud&&"saved_otp"==this.solicitud.status_code?(this.loading="Estamos procesando su solicitud. Espere un momento por favor","loading"):!this.solicitud||"waiting_otp_seguridad_social"!=this.solicitud.status_code&&"waiting_login_seguridad_social"!=this.solicitud.status_code&&"invalid_otp_seguridad_social"!=this.solicitud.status_code?!this.solicitud||"waiting_otp_aeat"!=this.solicitud.status_code&&"waiting_login_aeat"!=this.solicitud.status_code&&"invalid_otp_aeat"!=this.solicitud.status_code?this.solicitud&&"no_service"==this.solicitud.status_code?"no-service":!this.solicitud||"all_documents_downloaded"!=this.solicitud.status_code&&"waiting_documents"!=this.solicitud.status_code&&"partial_documents_downloaded"!=this.solicitud.status_code?!this.solicitud||"failed_with_retry"!=this.solicitud.status_code&&"failed_without_retry"!=this.solicitud.status_code&&"failed_documents_downloaded"!=this.solicitud.status_code?!this.solicitud||"abandoned_after_waiting_otp_seguridad_social"!=this.solicitud.status_code&&"abandoned_after_invalid_otp_seguridad_social"!=this.solicitud.status_code&&"abandoned_after_invalid_otp_aeat"!=this.solicitud.status_code&&"abandoned_after_terms_and_conditions"!=this.solicitud.status_code&&"abandoned_after_waiting_otp_aeat"!=this.solicitud.status_code?this.solicitud&&"duplicated"==this.solicitud.status_code?"duplicated":"no-exist":"abandoned":"failed":this.data.config&&this.data.config.infiniteLoopInCompleted?"loading":"success":"otp_aeat":"otp_ss"}sendRetry(){}gotoTermsAndConditions(){this.dialog.open(z.L,{panelClass:"fullscreen-dialog",data:{flow:"clavepin"}})}};it.ɵfac=function(e){return new(e||it)(B.ɵɵdirectiveInject(B.ChangeDetectorRef),B.ɵɵdirectiveInject(A.gz),B.ɵɵdirectiveInject(U.F),B.ɵɵdirectiveInject(T.v),B.ɵɵdirectiveInject(w.w),B.ɵɵdirectiveInject(W.S),B.ɵɵdirectiveInject(M.T),B.ɵɵdirectiveInject(b.t),B.ɵɵdirectiveInject($.uw))},it.ɵcmp=B.ɵɵdefineComponent({type:it,selectors:[["belender-widget-manual"]],inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud",flowName:"flowName"},features:[B.ɵɵProvidersFeature([{provide:F.o2,useValue:{appearance:"standard"}}])],decls:2,vars:2,consts:[["class","h-full widget-belender ",4,"ngIf"],[4,"ngIf"],[1,"h-full","widget-belender"],[1,"h-full","w-full","flex-auto","p-0","md:p-3"],["class","img-wrapper p-6 flex justify-center items-center",4,"ngIf"],["class","loading-wrapper animated fadeIn",4,"ngIf"],["class","animated fadeInRight",4,"ngIf"],[1,"img-wrapper","p-6","flex","justify-center","items-center"],["alt","",1,"img-card",3,"src"],[3,"status","data","loaderColor",4,"ngIf"],[3,"texts","userId","flowName","packId","data","solicitud","goToTerms","nextStep",4,"ngIf"],[3,"data","solicitud","lastThreeNumbersPhone","texts","resendOTP","errorPhone","nextStep",4,"ngIf"],[3,"data","texts",4,"ngIf"],[3,"data","currentRequest","newRequest",4,"ngIf"],[3,"data","solicitud","texts","retryRequest","newRequest",4,"ngIf"],[3,"data","texts","solicitud","retryRequest",4,"ngIf"],[3,"texts","data",4,"ngIf"],["class","px-6 py-4 flex flex-col",4,"ngIf"],[3,"status","data","loaderColor"],[3,"texts","userId","flowName","packId","data","solicitud","goToTerms","nextStep"],[3,"data","solicitud","lastThreeNumbersPhone","texts","resendOTP","errorPhone","nextStep"],[3,"data","texts"],[3,"data","currentRequest","newRequest"],[3,"data","solicitud","texts","retryRequest","newRequest"],[3,"data","texts","solicitud","retryRequest"],[3,"texts","data"],[1,"px-6","py-4","flex","flex-col"],[1,"title","m-0"],[1,"text-red-500"],[1,"subheading-1","pt-4"],[1,"loading-wrapper","animated","fadeIn"],[3,"text","color"],[1,"animated","fadeInRight"],[1,"text-red-500","title","m-0"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"text-blue-500","bg-blue-50","px-8",3,"click"],[1,"test-mode","px-10","py-2","bg-blue-500/10","text-blue-500","border-blue-500","border","rounded-md"]],template:function(e,t){1&e&&(B.ɵɵtemplate(0,tt,7,7,"div",0),B.ɵɵtemplate(1,nt,3,1,"ng-container",1)),2&e&&(B.ɵɵproperty("ngIf",t.data),B.ɵɵadvance(1),B.ɵɵproperty("ngIf",t.testMode))},dependencies:[i.O5,u.lW,G.O,Z.q,de,Ce,Me,Ee,Ae,Re,je,Fe,qe],styles:[".widget-belender[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{min-height:360px}.card[_ngcontent-%COMP%]{transition:all .2s ease;overflow:hidden;width:500px;max-width:100%;margin:0 auto}.badge-table[_ngcontent-%COMP%]{max-width:140px!important;border-radius:5px!important;-webkit-border-radius:5px!important;-moz-border-radius:5px!important;-ms-border-radius:5px!important;-o-border-radius:5px!important}.btn-refresh[_ngcontent-%COMP%]{transform:translateY(2px)}.request-data-info[_ngcontent-%COMP%]{transition:all .5s ease!important}.img-card[_ngcontent-%COMP%]{max-width:240px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.loading-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center}.mat-flat-button.mat-primary.mat-button-disabled[_ngcontent-%COMP%]{background:red!important}button.mat-flat-button.text-green-500.bg-green-light.mat-button-disabled[_ngcontent-%COMP%]{background:orange!important}.test-mode[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px}"]}),it=(0,j.gn)([(0,q.c)()],it);const rt=[{path:":idUser",component:it},{path:":idUser/:packID",component:it}];let st=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=B.ɵɵdefineNgModule({type:e}),e.ɵinj=B.ɵɵdefineInjector({imports:[A.Bz.forChild(rt),A.Bz,N.d8]}),e})();var ot=n(969),at=n(3300);let lt=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=B.ɵɵdefineNgModule({type:e}),e.ɵinj=B.ɵɵdefineInjector({providers:[T.v,v.o,w.w,b.t,M.T,E.t,{provide:S.Ad,useValue:"es-ES"}],imports:[st,i.ez,r.G,s.J,o.TU,a.p0,l.JX,c.p9,d.Ps,u.ot,h.Tx,x.c,p.FormsModule,m.AV,p.ReactiveFormsModule,f.LD,g.vV,_.a,y.Cq,C.FA,S.XK,I.T5,k.Fk,P.x,O.Nh,D.n,L.F,ot.O,at.C]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[508],{5508:(e,t,n)=>{n.r(t),n.d(t,{ChaveMovelModule:()=>ut});var i=n(6895),r=n(6383),s=n(5592),o=n(4006),a=n(3798),l=n(9391),c=n(182),d=n(7367),u=n(3238),h=n(5895),p=n(4246),m=n(9299),f=n(6e3),g=n(5861),_=n(7582),v=n(9549),y=n(9933),b=n(5762),x=n(8259),w=n(2340),C=n(667),S=n(3842);const M={created:"form",form:"form",terms_and_conditions:"form",waiting_otp_ssd:"otp_ssd",waiting_login_ssd:"otp_ssd",invalid_otp_ssd:"otp_ssd",waiting_otp_irs:"otp_irs",waiting_login_irs:"otp_irs",invalid_otp_irs:"otp_irs",abandoned_after_bad_phone:"abandoned",abandoned_after_terms_and_conditions:"abandoned",abandoned_after_invalid_otp_ssd:"abandoned",abandoned_after_waiting_otp_ssd:"abandoned",abandoned_after_invalid_otp_irs:"abandoned",abandoned_after_waiting_otp_irs:"abandoned",all_documents_downloaded:"success",partial_documents_downloaded:"success",consent_process_completed:"success",partial_documents_downloaded_and_deleted:"success",all_documents_downloaded_and_deleted:"success",failed_with_retry:"failed",failed_without_retry:"failed",failed_documents_downloaded:"failed",consent_process_canceled:"failed",no_service:"no-service",no_chave_movel_service:"no-service",stand_by:"standby","no-phone":"no-phone","no-more-phone":"no-phone",bad_phone:"bad-phone",error_expiration_date:"error-expiration-date",error_birth_date:"error-birth-date",error_support_number:"error-support-number",duplicated:"duplicated"};var I=n(6830),k=n(4650),E=n(5089),T=n(529),P=n(6554);let O=(()=>{class e{constructor(e,t,n){this.utils=e,this.http=t,this.localFetch=n}getSolicitudes(){return this.localFetch.getFetch(w.N.baseUrl+"/requests")}getSolicitudByCode(e){return this.localFetch.freeGetFetch(w.N.baseUrl+"/requests/"+e)}noMatchPhone(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/chave-movel/cancel",e).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}addSolicitud(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/chave-movel",e).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}checkService(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/chave-movel/check-service",e).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}setNoService(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/chave-movel/no-service",e).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}acceptTerms(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/chave-movel/terms",e).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}getNewIdOfRequest(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/"+e+"/get-new-id",{}).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}retryRequest(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/chave-movel/retry",e).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}resendOTP(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/chave-movel/resend-otp",e).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}fixData(e,t){return new Promise(((n,i)=>{this.localFetch.putFetchWhitoutToken(`${w.N.baseUrl}/requests/${e}/person`,t).then((e=>{e?n(e):i(e)})).catch((e=>{i(e)}))}))}sendOTP(e,t){let n="/requests/chave-movel/otp";return t&&(n="/mockscrapper/requests/chave-movel/otp"),new Promise(((t,i)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+n,e).then((e=>{e?t(e):i(e)})).catch((e=>{i(e)}))}))}sendSecondTask(e){return new Promise(((t,n)=>{this.localFetch.postFetchWhitoutToken(w.N.baseUrl+"/requests/chave-movel/secondTask",e).then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}sendLinkBySms(e,t){return new Promise(((n,i)=>{this.localFetch.postFetch(`${w.N.baseUrl}/requests/${e}/send-link-sms`,t).then((e=>{e?n(e):i(e)})).catch((e=>{i(e)}))}))}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵinject(E.F),k.ɵɵinject(T.eN),k.ɵɵinject(P.r))},e.ɵprov=k.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var D=n(5206),L=n(8460),A=n(9045),N=n(5412),R=n(4302),j=n(3046),F=n(9112),q=n(9382),Y=n(7392),V=n(9101),H=n(1572),z=n(5601),B=n(9617),U=n(342),W=n(3731);function $(e,t){if(1&e&&k.ɵɵelement(0,"widget-documents",6),2&e){const e=k.ɵɵnextContext(2);k.ɵɵproperty("userId",e.userId)("packId",e.packId)("requestID",e.requestID)}}function G(e,t){if(1&e&&(k.ɵɵelementStart(0,"div",2),k.ɵɵelement(1,"div",3)(2,"div",4),k.ɵɵpipe(3,"safeHtml"),k.ɵɵtemplate(4,$,1,3,"widget-documents",5),k.ɵɵelementEnd()),2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(1),k.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),k.ɵɵproperty("innerHTML",e.texts.success.title,k.ɵɵsanitizeHtml),k.ɵɵadvance(1),k.ɵɵstyleProp("color",e.data.styles.colors.text),k.ɵɵproperty("innerHTML",k.ɵɵpipeBind1(3,9,e.texts.success.description||""),k.ɵɵsanitizeHtml),k.ɵɵadvance(2),k.ɵɵproperty("ngIf",e.showDocuments)}}function Z(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"div",7)(1,"button",8),k.ɵɵlistener("click",(function(){k.ɵɵrestoreView(e);const t=k.ɵɵnextContext();return k.ɵɵresetView(t.gotoRedirect())})),k.ɵɵtext(2),k.ɵɵelementEnd()()}if(2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(1),k.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px"),k.ɵɵadvance(1),k.ɵɵtextInterpolate1(" ",e.data[e.flowName].btnTextCallBack||"Haga click aquí para finalizar"," ")}}let K=(()=>{class e{constructor(e,t,n,i,r){this.formBuilder=e,this.utils=t,this.solicitudesService=n,this.packsS=i,this.cd=r,this.showDocuments=!1}ngOnInit(){this.uploadForm=this.formBuilder.group({file:[""]}),this.data[this.flowName]&&this.data[this.flowName].enableUrlCallBack&&this.data[this.flowName].automaticRedirectCallBack&&this.data[this.flowName].callBackUrl?setTimeout((()=>{location.assign(this.data[this.flowName].callBackUrl)}),2e3):this.data[this.flowName].showDocumentsOnSuccess&&(this.showDocuments=!0)}save(){}gotoRedirect(){this.data[this.flowName].enableUrlCallBack&&this.data[this.flowName].callBackUrl&&location.assign(this.data[this.flowName].callBackUrl)}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵdirectiveInject(o.FormBuilder),k.ɵɵdirectiveInject(E.F),k.ɵɵdirectiveInject(z.M),k.ɵɵdirectiveInject(B.U),k.ɵɵdirectiveInject(k.ChangeDetectorRef))},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-success-step"]],inputs:{data:"data",texts:"texts",packId:"packId",requestID:"requestID",userId:"userId",flowName:"flowName"},decls:2,vars:2,consts:[["class"," pt-4 pb-8 flex flex-col animated fadeIn",4,"ngIf"],["class","flex items-center justify-end gap-2 p-4",4,"ngIf"],[1,"pt-4","pb-8","flex","flex-col","animated","fadeIn"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[3,"userId","packId","requestID",4,"ngIf"],[3,"userId","packId","requestID"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","next-button","mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(k.ɵɵtemplate(0,G,5,11,"div",0),k.ɵɵtemplate(1,Z,3,7,"div",1)),2&e&&(k.ɵɵproperty("ngIf",!t.data.config.infiniteLoopInCompleted),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",t.data[t.flowName].enableUrlCallBack&&!t.data[t.flowName].automaticRedirectCallBack))},dependencies:[i.O5,U.A,V.lW,W.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function Q(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"div",5)(1,"button",6),k.ɵɵlistener("click",(function(){k.ɵɵrestoreView(e);const t=k.ɵɵnextContext();return k.ɵɵresetView(t.retry())})),k.ɵɵtext(2,"Intentarlo nuevamente"),k.ɵɵelementEnd()()}if(2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(1),k.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}function X(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"div",5)(1,"button",7),k.ɵɵlistener("click",(function(){k.ɵɵrestoreView(e);const t=k.ɵɵnextContext();return k.ɵɵresetView(t.newRequest())})),k.ɵɵtext(2,"Crear Nueva Solicitud"),k.ɵɵelementEnd()()}if(2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(1),k.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}let J=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryR=new k.EventEmitter(null),this.newR=new k.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryR.emit(this.solicitud.request_id)}newRequest(){this.newR.emit(this.solicitud.request_id)}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵdirectiveInject(o.UntypedFormBuilder),k.ɵɵdirectiveInject(E.F),k.ɵɵdirectiveInject(z.M),k.ɵɵdirectiveInject(l.o),k.ɵɵdirectiveInject(h.T))},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-fail-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{retryR:"retryRequest",newR:"newRequest"},decls:7,vars:8,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"text-red-500","title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],["class","flex items-center justify-end gap-2 p-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"div",0)(1,"div",1),k.ɵɵelement(2,"div",2)(3,"div",3),k.ɵɵpipe(4,"safeHtml"),k.ɵɵelementEnd(),k.ɵɵtemplate(5,Q,3,6,"div",4),k.ɵɵtemplate(6,X,3,6,"div",4),k.ɵɵelementEnd()),2&e&&(k.ɵɵadvance(2),k.ɵɵproperty("innerHTML",t.texts.fail.title,k.ɵɵsanitizeHtml),k.ɵɵadvance(1),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵproperty("innerHTML",k.ɵɵpipeBind1(4,6,t.texts.fail.description),k.ɵɵsanitizeHtml),k.ɵɵadvance(2),k.ɵɵproperty("ngIf",t.solicitud&&"failed_with_retry"==t.solicitud.status_code),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",t.solicitud&&"failed_documents_downloaded"==t.solicitud.status_code))},dependencies:[i.O5,V.lW,W.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();var ee=n(3755),te=n(3746),ne=n(1763),ie=n(5696),re=n(4144);const se=["termsCheckbox"],oe=["assignmentCheckbox"];function ae(e,t){1&e&&(k.ɵɵelementStart(0,"mat-error"),k.ɵɵtext(1," Deve introduzir uma Cartão de Cidadão ou NIF válido! "),k.ɵɵelementEnd())}function le(e,t){1&e&&(k.ɵɵelementStart(0,"mat-error"),k.ɵɵtext(1," Deve introduzir um número de telefone válido de 9 dígitos! "),k.ɵɵelementEnd())}function ce(e,t){1&e&&(k.ɵɵelementStart(0,"mat-error"),k.ɵɵtext(1," O número de telefone é obrigatório! "),k.ɵɵelementEnd())}function de(e,t){1&e&&(k.ɵɵelementStart(0,"mat-error"),k.ɵɵtext(1," Deve introduzir uma Palavra Passe válida! "),k.ɵɵelementEnd())}function ue(e,t){if(1&e&&(k.ɵɵelementStart(0,"div",18)(1,"mat-form-field",6)(2,"mat-label"),k.ɵɵtext(3,"Email"),k.ɵɵelementEnd(),k.ɵɵelement(4,"input",19),k.ɵɵelementEnd()()),2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(1),k.ɵɵclassMapInterpolate1("",e.disabledInputs.email?"disabled-input":""," w-full flex-1 belender-form-field"),k.ɵɵadvance(3),k.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.email?-1:1)}}function he(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"div",20)(1,"belender-checkbox",21,22),k.ɵɵlistener("changeCheckbox",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext();return k.ɵɵresetView(n.setTerms(t))})),k.ɵɵelementStart(3,"belender-terms-and-policy-links",23),k.ɵɵlistener("goToTerms",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext();return k.ɵɵresetView(n.gotoTermsAndConditions(t))})),k.ɵɵelementEnd()()()}if(2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(1),k.ɵɵproperty("color",e.data.styles.colors.title),k.ɵɵadvance(2),k.ɵɵproperty("userId",e.userId)("showPolicyLink",null==e.data?null:e.data.config.showPolicyLink)("firstSentence",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.firstSentence)("secondSentence",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.secondSentence)("thirdSentence",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.thirdSentence)("policyActionText",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.policyActionText)("termsActionText",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.termsActionText)("customTerms",e.data[e.flowName].customTerms)}}function pe(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"div",20)(1,"belender-checkbox",24,25),k.ɵɵlistener("changeCheckbox",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext();return k.ɵɵresetView(n.setAssignment(t))})),k.ɵɵelement(3,"div",26),k.ɵɵelementEnd()()}if(2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(1),k.ɵɵproperty("color",e.data.styles.colors.title),k.ɵɵadvance(2),k.ɵɵproperty("innerHTML",null==e.data?null:e.data.config.dataAssignmentText,k.ɵɵsanitizeHtml)}}function me(e,t){1&e&&(k.ɵɵelementStart(0,"div",27),k.ɵɵelement(1,"mat-icon",28),k.ɵɵtext(2," Deve ler os termos e condições para continuar. "),k.ɵɵelementEnd())}const fe=function(e){return{"dont-show-data":e}},ge={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let _e=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.cd=n,this.widgetUtils=i,this.dialog=r,this.next=new k.EventEmitter(null),this.esDNI=new k.EventEmitter(null),this.goTerms=new k.EventEmitter(null),this.acceptTerms=!1,this.step=0,this.assignment=!1,this.termsReaded=!1,this.disabledInputs={dni:!1,email:!1,phone:!1},this.noValidate=!1,this.datemask=[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],this.isDni=!1,this.isNie=!1,this.errorDNI=null}ngOnInit(){this.solicitud?(this.setBaseForm(this.solicitud),this.noValidate="terms_and_conditions"==this.solicitud.status_code):this.setBaseForm(null)}sendPestana(){window.parent.open("www.google.com","_blank")}regexDNI(){return e=>{const t=e.value;return t?(this.setRegex(t),this.isDni||this.isNie?null:{regexDNI:!0}):null}}setRegex(e){if(!e)return;let t=this.widgetUtils.ValidateIDType(e);t&&t.type?("dni"===t.type?(this.isDni=!0,this.errorDNI=t.valid?null:"Debes ingresar un Cartão de Cidadão válido!",this.disableEnableInputs()):this.isDni=!1,"nie"===t.type?(this.isNie=!0,this.errorDNI=t.valid?null:"Debes ingresar un NIE válido!",this.disableEnableInputs()):this.isNie=!1):(this.isDni=!1,this.isNie=!1,this.errorDNI="Debes ingresar un Cartão de Cidadão o NIE válido!"),this.cd.markForCheck()}setBaseForm(e){let t=e?e.person_email||e.email||e.email_copy:null,n=e?e.person_phone||e.phone:null,i=e?e.person_document_number||e.dni||e.document_number:null;i&&this.setRegex(i),this.form=this.fb.group(this.isDni?this.data.config.followMail?{dni:[i,this.noValidate?[]:[o.Validators.required,o.Validators.maxLength(9)]],email:[t,o.Validators.required],document_type:["dni"],person_phone:[n,[o.Validators.required,o.Validators.minLength(9),o.Validators.maxLength(9)]],palavra_passe:[null,o.Validators.required]}:{dni:[i,this.noValidate?[]:[o.Validators.required,o.Validators.maxLength(9)]],document_type:["dni"],person_phone:[n,o.Validators.required],palavra_passe:[null,o.Validators.required]}:this.data.config.followMail?{dni:[i,[o.Validators.required,o.Validators.maxLength(9)]],document_type:["nie"],palavra_passe:[null,o.Validators.required],email:[t,o.Validators.required],person_phone:[n,o.Validators.required]}:{dni:[i,[o.Validators.required,o.Validators.maxLength(9)]],person_phone:[n,o.Validators.required],document_type:["nie"],palavra_passe:[null,o.Validators.required]}),this.requestIDFromURL&&this.disableEnableInputs(i,t,n)}disableEnableInputs(e,t,n){this.disabledInputs={dni:!!e,email:!!t,phone:n||!1}}setTermsCheck(e){this.checkComponent.checked=e,this.acceptTerms=e}nextStep(){let e={phone:this.form.get("person_phone").value,check_legal:!0,palavra_passe:this.form.get("palavra_passe").value,document_number:this.form.get("dni").value.toUpperCase()};this.data&&this.data.config&&this.data.config.followMail&&(e.email_copy=this.form.get("email")?this.form.get("email").value:""),this.esDNI.emit(this.isDni),this.next.emit(e)}gotoTermsAndConditions(e){e.preventDefault(),e.stopPropagation(),this.termsReaded=!0,this.goTerms.emit(!0)}gotoSupportAclaration(e){e.preventDefault(),e.stopPropagation(),this.dialog.open(ee.$,{panelClass:"fullscreen-dialog"})}gotoExpirationDate(e){e.preventDefault(),e.stopPropagation(),this.dialog.open(te.R,{panelClass:"fullscreen-dialog"})}setTerms(e){this.acceptTerms=e}setAssignment(e){this.assignment=e}getFormsValid(){let e=!this.form.invalid;return this.data.config.dontShowDataInTerms&&this.solicitud&&this.solicitud.status_code&&"terms_and_conditions"===this.solicitud.status_code&&(e=!0),this.form.get("dni").value||(e=!1),e}getIfValid(){return this.data.config.dontShowDataInTerms&&this.solicitud&&this.solicitud.status_code&&"terms_and_conditions"===this.solicitud.status_code&&(this.acceptTerms=!0),!!this.data.config.hideCheckLegal||this.acceptTerms}getAssignmentValidation(){return!(this.data.config.forceChecks&&!this.termsReaded)&&(!this.data.config.dataAssignmentCheck||this.assignment)}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵdirectiveInject(o.UntypedFormBuilder),k.ɵɵdirectiveInject(E.F),k.ɵɵdirectiveInject(k.ChangeDetectorRef),k.ɵɵdirectiveInject(p.t),k.ɵɵdirectiveInject(N.uw))},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],viewQuery:function(e,t){if(1&e&&(k.ɵɵviewQuery(se,5),k.ɵɵviewQuery(oe,5)),2&e){let e;k.ɵɵqueryRefresh(e=k.ɵɵloadQuery())&&(t.checkComponent=e.first),k.ɵɵqueryRefresh(e=k.ɵɵloadQuery())&&(t.assignmentCheckComponent=e.first)}},inputs:{userId:"userId",flowName:"flowName",data:"data",texts:"texts",solicitud:"solicitud",requestIDFromURL:"requestIDFromURL"},outputs:{next:"nextStep",esDNI:"isDni",goTerms:"goToTerms"},features:[k.ɵɵProvidersFeature([{provide:u.sG,useValue:ge},{provide:k.LOCALE_ID,useValue:"es-ES"}])],decls:31,vars:37,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4","custom-html",3,"innerHTML"],[3,"ngClass"],[1,"mb-3","pt-3","flex","flex-col","md:flex-row","flex-wrap","gap-2","md:justify-between"],["appearance","outline"],["id","dniInput","formControlName","dni","maxlength","9","matInput","",3,"tabindex"],[4,"ngIf"],["id","phoneInput","formControlName","person_phone","maxlength","9","minlength","9","matInput","",3,"tabindex"],[1,"w-full","flex","items-center","flex-wrap","gap-2"],["appearance","outline",1,"w-full","flex-1","belender-form-field"],["id","palavra_passe","tabindex","1","required","","type","password","formControlName","palavra_passe","matInput",""],["class","w-full",4,"ngIf"],["class","mt-6 flex justify-start items-center w-full flex-100",4,"ngIf"],["class","px-2 flex items-center gap-2 py-2 rounded-sm mt-3 bg-orange-500/10 text-orange-500",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","sendBtn","mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"],[1,"w-full"],["id","emailInput","formControlName","email","required","","type","email","placeholder","Introduza o seu e-mail","matInput","",3,"tabindex"],[1,"mt-6","flex","justify-start","items-center","w-full","flex-100"],["id","termsCheckbox",3,"color","changeCheckbox"],["termsCheckbox",""],[3,"userId","showPolicyLink","firstSentence","secondSentence","thirdSentence","policyActionText","termsActionText","customTerms","goToTerms"],[3,"color","changeCheckbox"],["assignmentCheckbox",""],[1,"custom-html",3,"innerHTML"],[1,"px-2","flex","items-center","gap-2","py-2","rounded-sm","mt-3","bg-orange-500/10","text-orange-500"],["svgIcon","mat:warning",1,"text-xs","w-4","h-4"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"form",0)(1,"div",1),k.ɵɵelement(2,"div",2)(3,"div",3),k.ɵɵpipe(4,"safeHtml"),k.ɵɵelementEnd(),k.ɵɵelementStart(5,"div",4)(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),k.ɵɵtext(9,"Cartão de Cidadão ou NIF"),k.ɵɵelementEnd(),k.ɵɵelement(10,"input",7),k.ɵɵtemplate(11,ae,2,0,"mat-error",8),k.ɵɵelementEnd(),k.ɵɵelementStart(12,"mat-form-field",6)(13,"mat-label"),k.ɵɵtext(14,"Telefone (sem prefixo)"),k.ɵɵelementEnd(),k.ɵɵelement(15,"input",9),k.ɵɵtemplate(16,le,2,0,"mat-error",8),k.ɵɵtemplate(17,ce,2,0,"mat-error",8),k.ɵɵelementEnd(),k.ɵɵelementStart(18,"div",10)(19,"mat-form-field",11)(20,"mat-label"),k.ɵɵtext(21,"Palavra Passe"),k.ɵɵelementEnd(),k.ɵɵelement(22,"input",12),k.ɵɵtemplate(23,de,2,0,"mat-error",8),k.ɵɵelementEnd()(),k.ɵɵtemplate(24,ue,5,4,"div",13),k.ɵɵelementEnd()(),k.ɵɵtemplate(25,he,4,9,"div",14),k.ɵɵtemplate(26,pe,4,2,"div",14),k.ɵɵtemplate(27,me,3,0,"div",15),k.ɵɵelementStart(28,"div",16)(29,"button",17),k.ɵɵlistener("click",(function(){return t.nextStep()})),k.ɵɵtext(30," Continuar "),k.ɵɵelementEnd()()()),2&e&&(k.ɵɵproperty("formGroup",t.form),k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),k.ɵɵproperty("innerHTML",t.texts.form.title,k.ɵɵsanitizeHtml),k.ɵɵadvance(1),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵproperty("innerHTML",k.ɵɵpipeBind1(4,33,t.texts.form.description||""),k.ɵɵsanitizeHtml),k.ɵɵadvance(2),k.ɵɵproperty("ngClass",k.ɵɵpureFunction1(35,fe,t.data.config.dontShowDataInTerms&&t.solicitud&&t.solicitud.status_code&&"terms_and_conditions"===t.solicitud.status_code)),k.ɵɵadvance(2),k.ɵɵclassMapInterpolate1("",t.disabledInputs.dni?"disabled-input":""," w-full flex-1 belender-form-field"),k.ɵɵadvance(3),k.ɵɵpropertyInterpolate("tabindex",t.disabledInputs.dni?-1:1),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",!t.isNie&&!t.isDni),k.ɵɵadvance(1),k.ɵɵclassMapInterpolate1("",t.disabledInputs.phone?"disabled-input":""," w-full flex-1 belender-form-field"),k.ɵɵadvance(3),k.ɵɵpropertyInterpolate("tabindex",t.disabledInputs.phone?-1:1),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",t.form.get("person_phone").hasError("minlength")||t.form.get("person_phone").hasError("maxlength")),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",t.form.get("person_phone").hasError("required")),k.ɵɵadvance(6),k.ɵɵproperty("ngIf",t.form.get("palavra_passe").hasError("required")),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",null==t.data||null==t.data.config?null:t.data.config.followMail),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",!t.data.config.hideCheckLegal),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",null==t.data?null:t.data.config.dataAssignmentCheck),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",t.data.config.forceChecks&&!t.termsReaded),k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.getFormsValid()&&t.getIfValid()&&t.getAssignmentValidation()?t.data.styles.colors.btnText:"")("background",t.getFormsValid()&&t.getIfValid()&&t.getAssignmentValidation()?t.data.styles.colors.btnBg:"")("border-radius",t.data.styles.btnRound+"px"),k.ɵɵproperty("disabled",!t.getFormsValid()||!t.getIfValid()||!t.getAssignmentValidation()))},dependencies:[i.mk,i.O5,o.ɵNgNoValidate,o.DefaultValueAccessor,o.NgControlStatus,o.NgControlStatusGroup,o.RequiredValidator,o.MinLengthValidator,o.MaxLengthValidator,o.FormGroupDirective,o.FormControlName,ne.b,ie.T,Y.Hw,V.lW,v.TO,v.KE,v.hX,re.Nt,W.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.dont-show-data[_ngcontent-%COMP%]{opacity:0!important;padding:0!important;overflow:hidden!important;height:0px!important;margin:0!important}.hiden-input[_ngcontent-%COMP%]{height:0!important;max-height:0px!important;overflow:hidden!important;opacity:0!important}"]}),e})(),ve=(()=>{class e{constructor(){}ngOnInit(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-no-service-step"]],inputs:{data:"data",texts:"texts"},decls:5,vars:10,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"form",0)(1,"div",1),k.ɵɵelement(2,"div",2)(3,"div",3),k.ɵɵpipe(4,"safeHtml"),k.ɵɵelementEnd()()),2&e&&(k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),k.ɵɵproperty("innerHTML",t.texts.noService.title,k.ɵɵsanitizeHtml),k.ɵɵadvance(1),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵproperty("innerHTML",k.ɵɵpipeBind1(4,8,t.texts.noService.description),k.ɵɵsanitizeHtml))},dependencies:[o.ɵNgNoValidate,o.NgControlStatusGroup,o.NgForm,W.z]}),e})(),ye=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryR=new k.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryR.emit(this.solicitud.request_id)}getTextStatus(){switch(this.solicitud.status_code){case"abandoned_after_waiting_otp_seguridad_social":return"Abandonado después de esperar OTP de Seguridad Social";case"abandoned_after_invalid_otp_seguridad_social":return"Abandonado despues de OTP inválido en Seguridad Social";case"abandoned_after_invalid_otp_aeat":return"Abandonado despues de OTP inválido en AEAT";case"abandoned_after_waiting_otp_aeat":return"Abandonado después de esperar OTP de AEAT";default:return this.solicitud.status_message||this.solicitud.status_code}}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵdirectiveInject(o.UntypedFormBuilder),k.ɵɵdirectiveInject(E.F),k.ɵɵdirectiveInject(z.M),k.ɵɵdirectiveInject(l.o),k.ɵɵdirectiveInject(h.T))},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-abandoned-step"]],inputs:{data:"data",solicitud:"solicitud",texts:"texts"},outputs:{retryR:"retryRequest"},decls:10,vars:17,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"p-1","px-4","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-sm","mb-2","mt-6"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"div",0)(1,"div",1),k.ɵɵelement(2,"div",2)(3,"div",3),k.ɵɵpipe(4,"safeHtml"),k.ɵɵelementStart(5,"div",4),k.ɵɵtext(6),k.ɵɵelementEnd()(),k.ɵɵelementStart(7,"div",5)(8,"button",6),k.ɵɵlistener("click",(function(){return t.retry()})),k.ɵɵtext(9,"Intentarlo nuevamente"),k.ɵɵelementEnd()()()),2&e&&(k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),k.ɵɵproperty("innerHTML",t.texts.abandoned.title,k.ɵɵsanitizeHtml),k.ɵɵadvance(1),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵproperty("innerHTML",k.ɵɵpipeBind1(4,15,t.texts.abandoned.description),k.ɵɵsanitizeHtml),k.ɵɵadvance(3),k.ɵɵtextInterpolate1(" ",t.getTextStatus()," "),k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[V.lW,W.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();var be=n(5145);let xe=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.nr=new k.EventEmitter(null)}ngOnInit(){}newRequest(){this.nr.emit(!0)}gotoRequest(){location.assign(this.currentRequest.widget_url_boxed)}getStatus(){let e=be.Z.find((e=>e.text==this.currentRequest.status_code));return e?e.label:"Estado desconocido"}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵdirectiveInject(o.UntypedFormBuilder),k.ɵɵdirectiveInject(E.F),k.ɵɵdirectiveInject(z.M),k.ɵɵdirectiveInject(l.o),k.ɵɵdirectiveInject(h.T))},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-duplicated-request-step"]],inputs:{currentRequest:"currentRequest",data:"data",texts:"texts"},outputs:{nr:"newRequest"},decls:15,vars:15,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"flex","gap-2","justify-start","items-center","py-2"],[1,"w-fit","p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-sm"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),k.ɵɵtext(3," Solicitud duplicada! "),k.ɵɵelementEnd(),k.ɵɵelementStart(4,"div",3),k.ɵɵtext(5," Ya existe una solicitud para este cliente. "),k.ɵɵelementEnd(),k.ɵɵelementStart(6,"div",4),k.ɵɵtext(7," Estado de la solicitud actual: "),k.ɵɵelementStart(8,"div",5),k.ɵɵtext(9),k.ɵɵelementEnd()()(),k.ɵɵelementStart(10,"div",6)(11,"button",7),k.ɵɵlistener("click",(function(){return t.newRequest()})),k.ɵɵtext(12,"Nueva solicitud"),k.ɵɵelementEnd(),k.ɵɵelementStart(13,"button",8),k.ɵɵlistener("click",(function(){return t.gotoRequest()})),k.ɵɵtext(14,"Ir a la solicitud actual"),k.ɵɵelementEnd()()()),2&e&&(k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵadvance(5),k.ɵɵtextInterpolate1(" ",t.getStatus()," "),k.ɵɵadvance(2),k.ɵɵstyleProp("border-radius",t.data.styles.btnRound+"px"),k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[V.lW],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),we=(()=>{class e{constructor(){}ngOnInit(){console.error(this.data,this.texts)}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-standby-step"]],inputs:{data:"data",texts:"texts"},decls:5,vars:10,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"form",0)(1,"div",1),k.ɵɵelement(2,"div",2)(3,"div",3),k.ɵɵpipe(4,"safeHtml"),k.ɵɵelementEnd()()),2&e&&(k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.standby?t.texts.standby.titleSize+"px":"20px"),k.ɵɵproperty("innerHTML",t.texts.standby?t.texts.standby.title:"Solicitud en Stand By",k.ɵɵsanitizeHtml),k.ɵɵadvance(1),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵproperty("innerHTML",t.texts.standby?t.texts.standby.description:k.ɵɵpipeBind1(4,8,"Descripcion del estado Stand By"),k.ɵɵsanitizeHtml))},dependencies:[o.ɵNgNoValidate,o.NgControlStatusGroup,o.NgForm,W.z]}),e})(),Ce=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.loading=null,this.nextStep=new k.EventEmitter(null)}ngOnInit(){this.form=this.fb.group({document_expiration_date:[null,[o.Validators.required]]})}next(){this.nextStep.emit(this.form.get("document_expiration_date").value)}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵdirectiveInject(o.UntypedFormBuilder),k.ɵɵdirectiveInject(E.F))},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-error-expiration-step"]],inputs:{data:"data",texts:"texts",loading:"loading"},outputs:{nextStep:"nextStep"},decls:16,vars:14,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"w-full",3,"formGroup"],["appearance","outline",1,"w-full","flex-1","belender-form-field"],["type","date","placeholder","Ej: 22/03/1990","required","","formControlName","document_expiration_date","matInput",""],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),k.ɵɵtext(3," Fecha de vencimiento incorrecta "),k.ɵɵelementEnd(),k.ɵɵelementStart(4,"div",3),k.ɵɵtext(5," Por favor, introduce la fecha de vencimiento del documento "),k.ɵɵelementEnd(),k.ɵɵelementStart(6,"form",4)(7,"mat-form-field",5)(8,"mat-label"),k.ɵɵtext(9,"Fecha de vencimiento del DNI"),k.ɵɵelementEnd(),k.ɵɵelement(10,"input",6),k.ɵɵelementStart(11,"mat-hint"),k.ɵɵtext(12,"DD/MM/YYYY"),k.ɵɵelementEnd()()()(),k.ɵɵelementStart(13,"div",7)(14,"button",8),k.ɵɵlistener("click",(function(){return t.next()})),k.ɵɵtext(15," Enviar "),k.ɵɵelementEnd()()()),2&e&&(k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵadvance(2),k.ɵɵproperty("formGroup",t.form),k.ɵɵadvance(8),k.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),k.ɵɵproperty("disabled",t.form.invalid))},dependencies:[o.ɵNgNoValidate,o.DefaultValueAccessor,o.NgControlStatus,o.NgControlStatusGroup,o.RequiredValidator,o.FormGroupDirective,o.FormControlName,V.lW,v.KE,v.bx,v.hX,re.Nt],styles:[".label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),Se=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.loading=null,this.nextStep=new k.EventEmitter(null)}ngOnInit(){this.form=this.fb.group({support_number:[null,[o.Validators.required]]})}next(){this.nextStep.emit(this.form.get("support_number").value)}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵdirectiveInject(o.UntypedFormBuilder),k.ɵɵdirectiveInject(E.F))},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-error-support-number-step"]],inputs:{data:"data",texts:"texts",loading:"loading"},outputs:{nextStep:"nextStep"},decls:14,vars:14,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"w-full",3,"formGroup"],["appearance","outline",1,"w-full","flex-1","belender-form-field"],["type","number","placeholder","Ej: 1233443","required","","formControlName","support_number","matInput",""],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),k.ɵɵtext(3," Código de soporte inválido "),k.ɵɵelementEnd(),k.ɵɵelementStart(4,"div",3),k.ɵɵtext(5," Por favor, introduce el código de soporte "),k.ɵɵelementEnd(),k.ɵɵelementStart(6,"form",4)(7,"mat-form-field",5)(8,"mat-label"),k.ɵɵtext(9,"Número de soporte"),k.ɵɵelementEnd(),k.ɵɵelement(10,"input",6),k.ɵɵelementEnd()()(),k.ɵɵelementStart(11,"div",7)(12,"button",8),k.ɵɵlistener("click",(function(){return t.next()})),k.ɵɵtext(13," Enviar "),k.ɵɵelementEnd()()()),2&e&&(k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵadvance(2),k.ɵɵproperty("formGroup",t.form),k.ɵɵadvance(6),k.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),k.ɵɵproperty("disabled",t.form.invalid))},dependencies:[o.ɵNgNoValidate,o.DefaultValueAccessor,o.NumberValueAccessor,o.NgControlStatus,o.NgControlStatusGroup,o.RequiredValidator,o.FormGroupDirective,o.FormControlName,V.lW,v.KE,v.hX,re.Nt],styles:[".label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();var Me=n(7795);const Ie=function(e){return{mask:e}};let ke=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.loading=null,this.nextStep=new k.EventEmitter(null),this.datemask=[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/]}ngOnInit(){this.form=this.fb.group({birth_date:[null,[o.Validators.required]]})}next(){this.nextStep.emit(this.form.get("birth_date").value)}}return e.ɵfac=function(t){return new(t||e)(k.ɵɵdirectiveInject(o.UntypedFormBuilder),k.ɵɵdirectiveInject(E.F))},e.ɵcmp=k.ɵɵdefineComponent({type:e,selectors:[["belender-error-birthday-step"]],inputs:{data:"data",texts:"texts",loading:"loading"},outputs:{nextStep:"nextStep"},decls:16,vars:17,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"w-full",3,"formGroup"],["appearance","outline",1,"w-full","belender-form-field"],["type","text","required","","formControlName","birth_date","matInput","",3,"textMask"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"]],template:function(e,t){1&e&&(k.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),k.ɵɵtext(3," Fecha de nacimiento incorrecta "),k.ɵɵelementEnd(),k.ɵɵelementStart(4,"div",3),k.ɵɵtext(5," Por favor, introduce la fecha de nacimiento "),k.ɵɵelementEnd(),k.ɵɵelementStart(6,"form",4)(7,"mat-form-field",5)(8,"mat-label"),k.ɵɵtext(9,"Fecha de nacimiento"),k.ɵɵelementEnd(),k.ɵɵelement(10,"input",6),k.ɵɵelementStart(11,"mat-hint"),k.ɵɵtext(12,"DD/MM/YYYY"),k.ɵɵelementEnd()()()(),k.ɵɵelementStart(13,"div",7)(14,"button",8),k.ɵɵlistener("click",(function(){return t.next()})),k.ɵɵtext(15," Enviar "),k.ɵɵelementEnd()()()),2&e&&(k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),k.ɵɵadvance(2),k.ɵɵstyleProp("color",t.data.styles.colors.text),k.ɵɵadvance(2),k.ɵɵproperty("formGroup",t.form),k.ɵɵadvance(4),k.ɵɵproperty("textMask",k.ɵɵpureFunction1(15,Ie,t.datemask)),k.ɵɵadvance(4),k.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),k.ɵɵproperty("disabled",t.form.invalid))},dependencies:[o.ɵNgNoValidate,o.DefaultValueAccessor,o.NgControlStatus,o.NgControlStatusGroup,o.RequiredValidator,o.FormGroupDirective,o.FormControlName,Me.hd,V.lW,v.KE,v.bx,v.hX,re.Nt],styles:[".label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();const Ee=["formStep"],Te=["otpStep"];function Pe(e,t){if(1&e&&(k.ɵɵelementStart(0,"div",8),k.ɵɵelement(1,"mat-icon",9),k.ɵɵtext(2),k.ɵɵelementEnd()),2&e){const e=k.ɵɵnextContext(2);k.ɵɵproperty("@fadeInUp",void 0),k.ɵɵadvance(2),k.ɵɵtextInterpolate1(" ",e.warningAlert," ")}}function Oe(e,t){if(1&e&&k.ɵɵelement(0,"belender-widget-logo",10),2&e){const e=k.ɵɵnextContext(2);k.ɵɵproperty("logoUrl",null==e.data.styles?null:e.data.styles.logoUrl)}}function De(e,t){1&e&&(k.ɵɵelementStart(0,"div",11),k.ɵɵelement(1,"mat-progress-spinner",12),k.ɵɵelementEnd()),2&e&&(k.ɵɵadvance(1),k.ɵɵproperty("value",0))}function Le(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-form-step",24,25),k.ɵɵlistener("goToTerms",(function(){k.ɵɵrestoreView(e);const t=k.ɵɵnextContext(3);return k.ɵɵresetView(t.gotoTermsAndConditions())}))("nextStep",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.validateRequest(t))}))("isDni",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.setIsDni(t))})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("userId",e.userId)("flowName",e.flowName)("requestIDFromURL",e.requestIDFromURL)("texts",e.data[e.flowName].texts)("data",e.data)("solicitud",e.solicitud)}}function Ae(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-shared-otp-step",26,27),k.ɵɵlistener("resendOTP",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){k.ɵɵrestoreView(e);const t=k.ɵɵnextContext(3);return k.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.requestOTP(t))})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("otpType","otp_irs"==e.requestStatus?"otpIRS":"otpSSD")("flowType",e.flowName)("data",e.data)("solicitud",e.solicitud)("minLength",6)("lastThreeNumbersPhone",e.lastThreeNumbersPhone)("texts",e.data[e.flowName].texts)}}function Ne(e,t){if(1&e&&k.ɵɵelement(0,"belender-success-step",28),2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("data",e.data)("packId",e.packId)("flowName",e.flowName)("userId",e.userId)("requestID",e.requestID)("texts",e.data[e.flowName].texts)}}function Re(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-duplicated-request-step",29),k.ɵɵlistener("newRequest",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.newRequest(t))})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("data",e.data)("currentRequest",e.currentRequest)}}function je(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-error-birthday-step",30),k.ɵɵlistener("nextStep",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.setBirthDate(t))})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)}}function Fe(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-error-expiration-step",30),k.ɵɵlistener("nextStep",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.setExpiration(t))})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)}}function qe(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-error-support-number-step",30),k.ɵɵlistener("nextStep",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.setSupportNumber(t))})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)}}function Ye(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-fail-step",31),k.ɵɵlistener("retryRequest",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.retryRequest(t))}))("newRequest",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.newRequest(t))})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("data",e.data)("solicitud",e.solicitud)("texts",e.data[e.flowName].texts)}}function Ve(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-abandoned-step",32),k.ɵɵlistener("retryRequest",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.retryRequest(t))})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)("solicitud",e.solicitud)}}function He(e,t){if(1&e&&k.ɵɵelement(0,"belender-no-service-step",33),2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("texts",e.data[e.flowName].texts)("data",e.data)}}function ze(e,t){if(1&e&&k.ɵɵelement(0,"belender-standby-step",33),2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("texts",e.data[e.flowName].texts)("data",e.data)}}function Be(e,t){if(1&e&&(k.ɵɵelementStart(0,"div",34)(1,"div",35)(2,"h1",36),k.ɵɵtext(3,"No existe la solicitud"),k.ɵɵelementEnd()(),k.ɵɵelementStart(4,"div",37),k.ɵɵtext(5," No existen solicitudes activas con el código requerido "),k.ɵɵelementEnd()()),2&e){const e=k.ɵɵnextContext(3);k.ɵɵadvance(4),k.ɵɵstyleProp("color",e.data.styles.colors.text)}}function Ue(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"belender-cancel-request",38),k.ɵɵlistener("updateStatusCode",(function(t){k.ɵɵrestoreView(e);const n=k.ɵɵnextContext(3);return k.ɵɵresetView(n.solicitud.status_code=t)})),k.ɵɵelementEnd()}if(2&e){const e=k.ɵɵnextContext(3);k.ɵɵproperty("request_id",e.requestID)("user_id",e.userId)("textColor",e.data.styles.colors.text)("customText",e.data.config.cancelRequestText)}}function We(e,t){if(1&e&&(k.ɵɵelement(0,"div",39),k.ɵɵpipe(1,"safeHtml")),2&e){const e=k.ɵɵnextContext(3);k.ɵɵstyleProp("color",e.data.styles.colors.text),k.ɵɵproperty("innerHTML",e.data[e.flowName]?null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.aditionalDescription:k.ɵɵpipeBind1(1,3,(null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.aditionalDescription)||""),k.ɵɵsanitizeHtml)}}function $e(e,t){if(1&e&&(k.ɵɵelementContainerStart(0),k.ɵɵtemplate(1,Le,2,6,"belender-form-step",13),k.ɵɵtemplate(2,Ae,2,7,"belender-shared-otp-step",14),k.ɵɵtemplate(3,Ne,1,6,"belender-success-step",15),k.ɵɵtemplate(4,Re,1,2,"belender-duplicated-request-step",16),k.ɵɵtemplate(5,je,1,2,"belender-error-birthday-step",17),k.ɵɵtemplate(6,Fe,1,2,"belender-error-expiration-step",17),k.ɵɵtemplate(7,qe,1,2,"belender-error-support-number-step",17),k.ɵɵtemplate(8,Ye,1,3,"belender-fail-step",18),k.ɵɵtemplate(9,Ve,1,3,"belender-abandoned-step",19),k.ɵɵtemplate(10,He,1,2,"belender-no-service-step",20),k.ɵɵtemplate(11,ze,1,2,"belender-standby-step",20),k.ɵɵtemplate(12,Be,6,2,"div",21),k.ɵɵtemplate(13,Ue,1,4,"belender-cancel-request",22),k.ɵɵtemplate(14,We,2,5,"div",23),k.ɵɵelementContainerEnd()),2&e){const e=k.ɵɵnextContext(2);k.ɵɵadvance(1),k.ɵɵproperty("ngIf","form"==e.requestStatus&&!e.loadingRequestData),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","otp_irs"==e.requestStatus||"otp_ssd"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","success"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","duplicated"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","error-birth-date"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","error-expiration-date"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","error-support-number"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","failed"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","abandoned"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","no-service"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","standby"==e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf","created"!=e.step),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",e.showCancelRequest&&e.data.config.cancelRequest),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",null==e.data[e.flowName]?null:e.data[e.flowName].showAditionalDescription)}}function Ge(e,t){1&e&&k.ɵɵelement(0,"belender-disabled-url")}function Ze(e,t){if(1&e){const e=k.ɵɵgetCurrentView();k.ɵɵelementStart(0,"div",40)(1,"div",34)(2,"div",41),k.ɵɵtext(3,"Error!"),k.ɵɵelementEnd(),k.ɵɵelement(4,"div",42),k.ɵɵelementEnd(),k.ɵɵelementStart(5,"div",43)(6,"button",44),k.ɵɵlistener("click",(function(){k.ɵɵrestoreView(e);const t=k.ɵɵnextContext(2);return k.ɵɵresetView(t.error=!1)})),k.ɵɵtext(7," Ingresar manualmente "),k.ɵɵelementEnd()()()}if(2&e){const e=k.ɵɵnextContext(2);k.ɵɵadvance(4),k.ɵɵstyleProp("color",e.data.styles.colors.text),k.ɵɵproperty("innerHTML",e.error,k.ɵɵsanitizeHtml)}}function Ke(e,t){if(1&e&&(k.ɵɵelementStart(0,"div",3)(1,"div"),k.ɵɵtemplate(2,Pe,3,2,"div",4),k.ɵɵtemplate(3,Oe,1,1,"belender-widget-logo",5),k.ɵɵtemplate(4,De,2,1,"div",6),k.ɵɵtemplate(5,$e,15,14,"ng-container",2),k.ɵɵtemplate(6,Ge,1,0,"belender-disabled-url",2),k.ɵɵtemplate(7,Ze,8,3,"div",7),k.ɵɵelementEnd()()),2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(1),k.ɵɵclassMapInterpolate1("h-full w-full relative flex-auto p-0 md:p-3 ",e.data.styles.typography,""),k.ɵɵstyleProp("background",e.data.styles.colors.background),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",e.warningAlert&&"success"!=e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",e.getIfShowLogo()),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",e.data.config.infiniteLoopInCompleted&&"loading"===e.requestStatus),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",!e.error&&!e.disableURL),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",!e.error&&e.disableURL),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",!e.loading&&e.error)}}function Qe(e,t){if(1&e&&(k.ɵɵelementStart(0,"div",45),k.ɵɵelement(1,"mat-progress-spinner",46),k.ɵɵelementStart(2,"p",47),k.ɵɵtext(3),k.ɵɵelementEnd()()),2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(3),k.ɵɵtextInterpolate1(" ",e.loading," ")}}function Xe(e,t){if(1&e&&(k.ɵɵelementContainerStart(0),k.ɵɵelementStart(1,"div",48),k.ɵɵtext(2),k.ɵɵelementEnd(),k.ɵɵelementContainerEnd()),2&e){const e=k.ɵɵnextContext();k.ɵɵadvance(2),k.ɵɵtextInterpolate1(" TestMode ",e.testMode?"ON":"OFF"," ")}}let Je=class{constructor(e,t,n,i,r,s,o,a,l,c,d){this.cd=e,this.Activatedroute=t,this.utils=n,this.chaveMovelService=i,this.notis=r,this.webhooksService=s,this.flowsS=o,this.customizationService=a,this.customizationStoreService=l,this.deviceInfoService=c,this.dialog=d,this.data=null,this.disableActions=!1,this.step="created",this.clientEnviroment="belender",this.showCancelRequest=!1,this.loading=null,this.error=!1,this.testMode=!1,this.cntrlIsPressed=!1,this.shiftlIsPressed=!1,this.skipCreationOfRequest=!1,this.autoAcceptTerms=!1,this.lastThreeNumbersPhone=null,this.requestIDFromURL=!1,this.paramsSetted=!1,this.stopPropagationOfSuccess=!1,this.picturesTaken=[],this.disableURL=!1,this.selectedLanguage="es",this.isDni=!0,this.loadingRequestData=!1,this.env=w.N,this.intervalToAskBack=null,this.requestedFromDetail=!1,this.intervalCount=0,this.requestStatus="",this.currentHeight=0,this.isScaled=!1,this.flowName="ChaveMovel",localStorage.getItem("belender-language")&&(this.selectedLanguage=localStorage.getItem("belender-language"))}ngOnInit(){this.getWindowsScreenOrientation();const e=this;e.setWarningPortals(),this.loading="Obteniendo información de la solicitud",this.checkClientUrl(),this.userId=this.customizationStoreService.USER_ID,this.packId=this.customizationStoreService.PACK_ID,this.userId?this.setInitialData(this.userId):this.loading=null,"pro"!=w.N.env&&(x(document).keydown((function(t){16==t.which&&(this.shiftlIsPressed=!0),17==t.which&&(this.cntrlIsPressed=!0),84==t.which&&this.cntrlIsPressed&&this.shiftlIsPressed&&(e.testMode=!e.testMode,e.cd.markForCheck())})),x(document).keyup((function(e){16==e.which&&(this.shiftlIsPressed=!1),16==e.which&&(this.cntrlIsPressed=!1)})))}ngOnDestroy(){window.screen&&window.screen.orientation&&this.orientationChangeHandler&&window.screen.orientation.removeEventListener("change",this.orientationChangeHandler)}ngAfterViewChecked(){this.getWidgetCardHeight()}setInitialData(e){var t=this;return(0,g.Z)((function*(){const n=yield t.getFlow(e);if(t.data={config:t.customizationStoreService.FUNDER_CONFIG,styles:t.customizationStoreService.FUNDER_STYLES,[t.flowName]:n},!t.data.config||!t.data.config.funder_id)return t.notis.showAlert("Error!","No se ha configurado la customización del widget para este usuario","error"),t.loading=null,void t.cd.markForCheck();t.financiadorID=t.data.config.funder_id||"",t.disableURL=t.data.config.disableUrlWidget,t.validateRequestIdInUrl(),t.cd.markForCheck()}))()}getFlow(e){var t=this;return(0,g.Z)((function*(){return new Promise((n=>{t.customizationService.getCustomizationByFlow(e,t.flowName).then((e=>{e&&e.data&&n(e.data),n(null)}),(e=>{n(null)}))}))}))()}getWindowsScreenOrientation(){window.screen&&window.screen.orientation?(this.orientationChangeHandler=()=>{this.getWidgetCardHeight()},window.screen.orientation.addEventListener("change",this.orientationChangeHandler)):console.warn("Screen Orientation API not supported.")}getWidgetCardHeight(){let e=x("#widget-wrapper").height()||0;this.isScaled$=this.deviceInfoService.isScaled$.subscribe((t=>{this.isScaled=t,this.isScaled&&(e*=1.5)})),this.sendMessageToParent({type:"widgetHeight",data:e})}setRequestStatus(e){if(this.solicitud)this.solicitud.status_code=e;else{let t=new b.l;t.status_code=e,this.solicitud=t}this.setStatus()}checkClientUrl(){const e=window.location.href;this.clientEnviroment=this.getClientFromUrl(e)}getOTPMinLength(){return this.env?"dev"===this.env.env&&"belender"===this.clientEnviroment?6:"qa"===this.env.env||"dev"===this.env.env&&"opendata"===this.clientEnviroment?3:6:6}getClientFromUrl(e){return e.includes("opendata")?"opendata":"belender"}setWarningPortals(){this.flowsS.getFlows().then((e=>{e&&e.data&&e.data.length&&"OCCASIONAL_FAIL"==e.data.find((e=>"ChaveMovel"==e.name)).status&&(this.warningAlert="Estamos detectando errores ocasionales, si no puede completar su solicitud, inténtelo más tarde")})).catch((e=>{console.error(e)}))}validateRequestIdInUrl(){this.Activatedroute.queryParams.subscribe({next:e=>{e&&this.setParamsToRequest(e),e&&e.acceptTerms&&(this.autoAcceptTerms=!0),e&&e.request_id?(this.disableURL=!1,this.requestID=e.request_id,this.setFormFromVcCode(e.request_id,e),this.requestIDFromURL=!0):this.loading=null},error:()=>{this.loading=null}})}setParamsToRequest(e){this.solicitud||this.setRequestStatus("form"),e.success&&(this.stopPropagationOfSuccess=!0),(e.document_number||e.document)&&!this.solicitud.person_document_number&&(this.solicitud.person_document_number=e.document_number||e.document,this.requestIDFromURL=!0),(e.birth_date||e.birthday)&&!this.solicitud.birth_date&&(this.solicitud.birth_date=e.birth_date||e.birthday,this.requestIDFromURL=!0),(e.document_expiration_date||e.expiration)&&!this.solicitud.person_document_expiration_date&&(this.solicitud.person_document_expiration_date=e.document_expiration_date||e.expiration,this.requestIDFromURL=!0),(e.document_support||e.supportNumber)&&!this.solicitud.document_support&&(this.solicitud.document_support=e.document_support||e.supportNumber,this.requestIDFromURL=!0),e.email&&!this.solicitud.email&&(this.solicitud.email=e.email,this.requestIDFromURL=!0,this.paramsSetted=!0),this.paramsSetted=!0}setFormFromVcCode(e,t){var n=this;return(0,g.Z)((function*(){n.loading="Obteniendo datos de la solicitud...",n.loadingRequestData=!0,n.testMode?setTimeout((()=>{n.solicitud=S.VU.data,n.setRequestStatus(n.solicitud.status_code),n.setSubscriptionOfRequest(),n.loading=null,n.loadingRequestData=!1,n.skipCreationOfRequest=!0,n.autoAcceptTerms?n.acceptTerms():n.setParamsToRequest(t)}),4e3):n.chaveMovelService.getSolicitudByCode(e).then((e=>{e&&e.data?(n.solicitud=e.data,n.setRequestStatus(n.solicitud.status_code),n.setSubscriptionOfRequest(),n.loading=null,n.skipCreationOfRequest=n.solicitud&&n.solicitud.status_code&&"prerequest"!=n.solicitud.status_code,n.autoAcceptTerms?n.acceptTerms():n.setParamsToRequest(t)):n.loading=null,n.loadingRequestData=!1})).catch((e=>{n.loading=null,n.loadingRequestData=!1}))}))()}sendMessageToParent(e){if(e&&e.type&&"widgetHeight"===e.type){if(e.data===this.currentHeight)return;this.currentHeight=e.data}console.log("Message to parent:",e,this.currentHeight),window.top.postMessage(e,"*")}handlePusherNotification(e){if(e&&(this.sendMessageToParent({type:"websocket",data:e}),this.dataFromFirebase=e,e&&e.widget_url&&(this.widgetUrl=e.widget_url),e&&e.widget_url_boxed&&(this.widgetUrlBoxed=e.widget_url_boxed),this.dataFromFirebase)){if(this.dataFromFirebase.hasOwnProperty("match_phone")&&!this.dataFromFirebase.match_phone)return void this.handleBadPhone();this.dataFromFirebase.person_last_three_phone_number&&(this.lastThreeNumbersPhone=this.dataFromFirebase.person_last_three_phone_number),this.dataFromFirebase.status_code&&("consent_process_completed"===this.dataFromFirebase.status_code&&this.disconnectWebsocket(),this.setRequestStatus(this.dataFromFirebase.status_code),"terms_and_conditions"!=this.solicitud.status_code&&"saved_otp"!=this.solicitud.status_code&&setTimeout((()=>{this.loading=null,this.cd.markForCheck()}),500))}}handleBadPhone(){this.disconnectWebsocket(),this.loading="Validando datos, espere por favor...",this.chaveMovelService.noMatchPhone({request_id:this.solicitud&&this.solicitud.request_id?this.solicitud.request_id:this.requestID,user_id:this.userId}).then((e=>{setTimeout((()=>{this.solicitud||(this.solicitud=new b.l,this.setRequestStatus(this.solicitud.status_code)),e&&e.data&&(this.solicitud=e.data,this.setRequestStatus(this.solicitud.status_code)),this.loading=null}),3e3)})).catch((e=>{this.showAlert("Error!",e),setTimeout((()=>{this.solicitud||(this.solicitud=new b.l,this.setRequestStatus(this.solicitud.status_code)),this.setRequestStatus("failed_without_retry"),this.loading=null}),1e3)}))}setSubscriptionOfRequest(){if(this.socket)return;let e="wss://notifications.dev.belender.net";"qa"==w.N.env&&(e="wss://notifications.qa.belender.net"),"pro"==w.N.env&&(e="wss://notifications.belender.net"),w.N.notificationsBaseUrl&&(e=w.N.notificationsBaseUrl),this.socket=new WebSocket(`${e}?requests_id=${this.requestID}&user_id=${this.userId}`);var t=this;this.socket.onopen=function(e){console.log("Conexión establecida")},this.socket.onmessage=function(e){let n=JSON.parse(e.data);console.warn(n),n&&t.handlePusherNotification(n)},this.socket.onerror=function(e){console.log("WebSocket Error: "+e),console.error(e)},this.socket.onclose=function(e){console.log("Conexión cerrada")}}setIsDni(e){this.isDni=e}setSubscriptionOfRequestOld(){}sendNewData(e){this.loading="Enviando información..",this.chaveMovelService.fixData(this.requestID,e).then((e=>{e.status&&"error"==e.status?e.message&&(this.showAlert("Error!",e),this.loading=null):e&&"success"==e.status&&(this.sendMessageToParent({type:"response",data:e.data||e}),this.loading="Validando nuevos datos, espere por favor..",this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error)}))}showAlert(e,t){this.loading=null,this.notis.showAlert(e,t)}setNoService(e){this.loading="Realizando validaciones de usuario..",e.user_id=this.userId,e.package_id=this.packId,this.requestID&&(e.request_id=this.requestID),this.chaveMovelService.addSolicitud(e).then((e=>{e.data&&(this.requestID=e.data.request_id),this.chaveMovelService.setNoService({request_id:this.requestID}).then((()=>{this.setRequestStatus("no_service"),this.loading=null,this.cd.markForCheck()})).catch((e=>{this.setRequestStatus("no_service"),this.loading=null,this.cd.markForCheck()}))}))}validateRequest(e){e.user_id=this.userId,e.package_id=this.packId,this.gotoTerms(e)}parseErrorResponse(e){if(Array.isArray(e)){let t="";return e.forEach((e=>{t+=e+" "})),{title:"Error en algunos datos",description:t}}return"does not have chave movel service"==e.toLowerCase()?{title:"no-service",description:""}:"document number invalid."==e.toLowerCase()?{title:"Número de documento incorrecto!",description:"El número de documento ingresado es incorrecto, por favor ingrese otro"}:"incorrect support number"==e.toLowerCase()?{title:"Número de soporte incorrecto!",description:"El número de soporte ingresado es incorrecto, por favor ingrese otro"}:"incorrect date"==e.toLowerCase()?this.isDni?{title:"Fecha de vencimiento incorrecta!",description:"La fecha de vencimiento del DNI ingresado es incorrecta, por favor ingrese otra"}:{title:"Fecha de nacimiento incorrecta!",description:"La fecha de nacimiento del NIE ingresado es incorrecta, por favor ingrese otra"}:{title:"Error!",description:e}}gotoTerms(e){e.user_id=this.userId,e.package_id=this.packId,this.requestID&&(e.request_id=this.requestID),this.loading="Enviando datos..",this.testMode?setTimeout((()=>{this.solicitud=new b.l,this.setRequestStatus("waiting_otp_seguridad_social"),this.loading=null}),4e3):this.skipCreationOfRequest?(this.acceptTerms(),this.setSubscriptionOfRequest()):this.chaveMovelService.addSolicitud(e).then((t=>{t&&t.status&&"error"==t.status?t.message&&(this.solicitud=e,400==t.code&&"Does not have Pin service"==t.message?(t.data&&(this.requestID=t.data.request_id),this.chaveMovelService.setNoService({request_id:this.requestID}).then((()=>{this.setRequestStatus("no_service"),this.loading=null})).catch((e=>{this.setRequestStatus("no_service"),this.loading=null}))):400==t.code&&"Incorrect support number"==t.message?(this.showAlert("Error!","Número de soporte inválido!"),this.setRequestStatus("form")):400==t.code&&"Incorrect date"==t.message?(this.showAlert("Error!","Fecha incorrecta!"),this.setRequestStatus("form")):(this.setRequestStatus("form"),this.showAlert("Error!",t.message))):t&&t.status&&"success"==t.status?(this.requestID=t.data.request_id,this.solicitud=t.data,this.setRequestStatus(this.solicitud.status_code),this.setSubscriptionOfRequest(),this.sendMessageToParent({type:"response",data:t.data}),this.acceptTerms()):this.showAlert("Error!","Error desconocido: "+t)})).catch((e=>{e&&e.errorMessage&&this.showAlert("Error!",e.errorMessage)}))}acceptTerms(e=!0){let t={user_id:this.userId,request_id:this.requestID,terms_and_conditions:!0};e&&(this.loading="Validando datos, espere por favor.."),this.chaveMovelService.acceptTerms(t).then((e=>{e.status&&"error"==e.status?e.message&&"You have a request in progress"==e.message?location.pathname.indexOf("widget-boxed")>-1?location.assign(e.response.widget_url_boxed):location.assign(e.response.widget_url):e.message&&"Invalid request status: stand_by"==e.message?this.setRequestStatus("stand_by"):this.showAlert("Error!",e.message?e.message:e):e&&"success"==e.status&&(this.sendMessageToParent({type:"response",data:e.data||e}),this.setSubscriptionOfRequest(),this.setRequestStatus(e.data&&e.data.next_step_detail&&e.data.next_step_detail.portal&&"Seguridad Social"===e.data.next_step_detail.portal?"waiting_otp_seguridad_social":e.data&&e.data.next_step_detail&&e.data.next_step_detail.portal&&"AEAT"===e.data.next_step_detail.portal?"waiting_otp_aeat":e.data&&e.data.next_step_detail&&e.data.next_step_detail[0]&&e.data.next_step_detail[0].portal&&"Seguridad Social"===e.data.next_step_detail[0].portal?"waiting_otp_seguridad_social":e.data&&e.data.next_step_detail&&e.data.next_step_detail[0]&&e.data.next_step_detail[0].portal&&"AEAT"===e.data.next_step_detail[0].portal?"waiting_otp_aeat":e.data.status_code),this.loading=null,this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=null}))}requestOTP(e){this.loading="Enviando información..",this.chaveMovelService.sendOTP({user_id:this.userId,request_id:this.requestID,code:e.code},"qa"===w.N.env).then((e=>{e.status&&"error"==e.status?(this.showAlert("Error!",e.message&&"Invalid request status: waiting_login_seguridad_social"==e.message?"Todavía no has recibido el OTP. Inténtalo de nuevo cuando lo recibas":e.message?e.message:e),this.loading=null):e&&"success"==e.status?(this.handleRequestStatus(e.data||e),this.cd.markForCheck()):this.loading=null})).catch((e=>{this.showAlert("Error!",e&&e.error?e.error:e),this.loading=null}))}handleRequestStatus(e){let t=new b.l;e.consent_process_completed?(this.requestedFromDetail=!0,t.status_code="consent_process_completed",this.sendMessageToParent({type:"response",data:{status_message:"El proceso de consentimiento ha finalizado",widget_url:this.solicitud&&this.solicitud.widget_url?this.solicitud.widget_url:this.widgetUrl||"",status_code:"consent_process_completed",user_id:this.solicitud&&this.solicitud.user_id?this.solicitud.user_id:this.userId||"",funder_id:this.solicitud&&this.solicitud.funder_id?this.solicitud.funder_id:"",request_id:this.solicitud&&this.solicitud.request_id?this.solicitud.request_id:this.requestID||"",widget_url_boxed:this.solicitud&&this.solicitud.widget_url_boxed?this.solicitud.widget_url_boxed:this.widgetUrlBoxed||""}}),this.solicitud=t,setTimeout((()=>{this.disconnectWebsocket()}),3e3)):(this.otpComponent&&this.otpComponent.resetOtpNumber(),e.otp_status||e.next_step_detail?e.otp_status&&"VALID"===e.otp_status?Array.isArray(e.next_step_detail)?t.status_code="Seguridad Social"===e.next_step_detail[0].portal?"waiting_otp_seguridad_social":"AEAT"===e.next_step_detail[0].portal?"waiting_otp_aeat":e.status_code:Array.isArray(e.next_step_detail)||(t.status_code="Seguridad Social"===e.next_step_detail.portal?"waiting_otp_seguridad_social":"AEAT"===e.next_step_detail.portal?"waiting_otp_aeat":e.status_code):e.otp_status&&"INVALID"===e.otp_status&&(t.status_code=e.status_code,this.showAlert("Error!","Código inválido. Por favor, introduzca el código recibido por SMS")):(t.status_code="failed",this.showAlert("Error!","Código inválido. Por favor, introduzca el código recibido por SMS")),this.sendMessageToParent({type:"response",data:e})),this.solicitud=t,this.setRequestStatus(this.solicitud.status_code),this.loading=null}askToBack(){this.chaveMovelService.getSolicitudByCode(this.requestID).then((e=>{e&&e.data?(this.solicitud=e.data,this.setRequestStatus(this.solicitud.status_code),this.loading=null):this.loading=null})).catch((e=>{this.loading=null}))}gotoErrorPhone(){}setBirthDate(e){}setExpiration(e){}setSupportNumber(e){}resendOTP(e){let t={request_id:this.requestID,user_id:this.userId};this.loading="Reenviando OTP...",this.setSubscriptionOfRequest(),this.chaveMovelService.resendOTP(t).then((e=>{e&&e.data&&(this.solicitud=e.data,this.setRequestStatus(this.solicitud.status_code)),this.loading=null})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=null}))}retryRequest(e){let t={request_id:(this.solicitud&&this.solicitud.request_id?this.solicitud.request_id:this.requestID)||e,user_id:this.userId};this.loading="Reintentando enviar la solicitud...",this.setSubscriptionOfRequest(),this.chaveMovelService.retryRequest(t).then((e=>{e&&e.data&&(this.solicitud=e.data,this.setRequestStatus(this.solicitud.status_code)),this.loading=null})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=null}))}newRequest(e){this.setRequestStatus("created")}disconnectWebsocket(){this.socket&&this.socket.close()}initIntervalToAskBack(){!this.solicitud||!this.solicitud.request_id||(this.intervalToAskBack=setInterval((()=>{this.askDetailToBack(this.solicitud.request_id),this.intervalCount++,this.intervalCount>20&&this.stopInterval()}),5e3))}stopInterval(){this.intervalToAskBack&&clearInterval(this.intervalToAskBack)}askDetailToBack(e){let t=JSON.parse(JSON.stringify(this.solicitud.status_code));e||this.requestID?this.chaveMovelService.getSolicitudByCode(e).then((e=>{e&&e.data&&t!=e.data.status_code&&(this.solicitud=e.data,this.setRequestStatus(this.solicitud.status_code))})).catch((e=>{this.loading=null,this.loadingRequestData=!1})):this.stopInterval()}setStatus(){if(this.showCancelRequest=!0,this.solicitud){if(this.solicitud){let e=M[this.solicitud.status_code];e&&("success"===e&&this.funderConfig&&this.funderConfig.infiniteLoopInCompleted&&(this.loading=" "),("abandoned"===e||"failed"===e)&&(this.showCancelRequest=!1),this.requestStatus=e)}}else this.requestStatus="form";this.cd.markForCheck()}sendRetry(){}gotoTermsAndConditions(){this.dialog.open(I.L,{panelClass:"fullscreen-dialog",data:{flow:this.flowName}}).afterClosed().subscribe((e=>{e&&this.formComponent.setTermsCheck(!0)}))}pictureTaken(e){this.picturesTaken.push(e._imageAsDataUrl)}getIfShowLogo(){return("loading"!=this.requestStatus&&"success"!=this.requestStatus&&!this.loading||!this.funderConfig.infiniteLoopInCompleted)&&this.funderStyles?.withLogo}};Je.ɵfac=function(e){return new(e||Je)(k.ɵɵdirectiveInject(k.ChangeDetectorRef),k.ɵɵdirectiveInject(m.gz),k.ɵɵdirectiveInject(E.F),k.ɵɵdirectiveInject(O),k.ɵɵdirectiveInject(h.T),k.ɵɵdirectiveInject(c.t),k.ɵɵdirectiveInject(D.s),k.ɵɵdirectiveInject(d.w),k.ɵɵdirectiveInject(L.r),k.ɵɵdirectiveInject(A.H),k.ɵɵdirectiveInject(N.uw))},Je.ɵcmp=k.ɵɵdefineComponent({type:Je,selectors:[["belender-widget-chave-movel"]],viewQuery:function(e,t){if(1&e&&(k.ɵɵviewQuery(Ee,5),k.ɵɵviewQuery(Te,5),k.ɵɵviewQuery(Ee,5)),2&e){let e;k.ɵɵqueryRefresh(e=k.ɵɵloadQuery())&&(t.formComponent=e.first),k.ɵɵqueryRefresh(e=k.ɵɵloadQuery())&&(t.otpComponent=e.first),k.ɵɵqueryRefresh(e=k.ɵɵloadQuery())&&(t.theDiv=e.first)}},inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud"},features:[k.ɵɵProvidersFeature([{provide:v.o2,useValue:{appearance:"standard"}}])],decls:3,vars:3,consts:[["id","widget-wrapper","class","h-full widget-belender",4,"ngIf"],["class","loading-wrapper animated fadeIn",4,"ngIf"],[4,"ngIf"],["id","widget-wrapper",1,"h-full","widget-belender"],["class","flex justify-start px-4 py-3 items-center font-bold gap-3 text-md bg-amber-500/20 rounded-sm border border-amber-500 text-amber-500",4,"ngIf"],[3,"logoUrl",4,"ngIf"],["class","flex justify-center h-full min-h-[300px] items-center",4,"ngIf"],["class","animated fadeInRight",4,"ngIf"],[1,"flex","justify-start","px-4","py-3","items-center","font-bold","gap-3","text-md","bg-amber-500/20","rounded-sm","border","border-amber-500","text-amber-500"],["svgIcon","mat:warning"],[3,"logoUrl"],[1,"flex","justify-center","h-full","min-h-[300px]","items-center"],["color","accent","diameter","40","mode","indeterminate",1,"spinner",3,"value"],[3,"userId","flowName","requestIDFromURL","texts","data","solicitud","goToTerms","nextStep","isDni",4,"ngIf"],[3,"otpType","flowType","data","solicitud","minLength","lastThreeNumbersPhone","texts","resendOTP","errorPhone","nextStep",4,"ngIf"],[3,"data","packId","flowName","userId","requestID","texts",4,"ngIf"],[3,"data","currentRequest","newRequest",4,"ngIf"],[3,"data","texts","nextStep",4,"ngIf"],[3,"data","solicitud","texts","retryRequest","newRequest",4,"ngIf"],[3,"data","texts","solicitud","retryRequest",4,"ngIf"],[3,"texts","data",4,"ngIf"],["class","px-6 py-4 flex flex-col",4,"ngIf"],["flowType","ChaveMovel",3,"request_id","user_id","textColor","customText","updateStatusCode",4,"ngIf"],["class","subheading-1 p-4 custom-html",3,"color","innerHTML",4,"ngIf"],[3,"userId","flowName","requestIDFromURL","texts","data","solicitud","goToTerms","nextStep","isDni"],["formStep",""],[3,"otpType","flowType","data","solicitud","minLength","lastThreeNumbersPhone","texts","resendOTP","errorPhone","nextStep"],["otpStep",""],[3,"data","packId","flowName","userId","requestID","texts"],[3,"data","currentRequest","newRequest"],[3,"data","texts","nextStep"],[3,"data","solicitud","texts","retryRequest","newRequest"],[3,"data","texts","solicitud","retryRequest"],[3,"texts","data"],[1,"px-6","py-4","flex","flex-col"],[1,"title","m-0"],[1,"text-red-500"],[1,"subheading-1","pt-4"],["flowType","ChaveMovel",3,"request_id","user_id","textColor","customText","updateStatusCode"],[1,"subheading-1","p-4","custom-html",3,"innerHTML"],[1,"animated","fadeInRight"],[1,"text-red-500","title","m-0"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"text-blue-500","bg-blue-50","px-8",3,"click"],[1,"loading-wrapper","animated","fadeIn"],["color","accent","diameter","40","value","0","mode","indeterminate",1,"spinner"],[1,"mt-6","text-center","text-black",2,"color","black !important"],[1,"test-mode","px-10","py-2","bg-blue-500/10","text-blue-500","border-blue-500","border","rounded-md"]],template:function(e,t){1&e&&(k.ɵɵtemplate(0,Ke,8,11,"div",0),k.ɵɵtemplate(1,Qe,4,1,"div",1),k.ɵɵtemplate(2,Xe,3,1,"ng-container",2)),2&e&&(k.ɵɵproperty("ngIf",t.data&&!t.loading),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",(t.loading||"loading"===t.requestStatus)&&!t.error),k.ɵɵadvance(1),k.ɵɵproperty("ngIf",t.testMode))},dependencies:[i.O5,R.q,j.X,F.y,q.i,Y.Hw,V.lW,H.Ou,K,J,_e,ve,ye,xe,we,Ce,Se,ke,W.z],styles:[".widget-belender[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{min-height:360px}.card[_ngcontent-%COMP%]{transition:all .2s ease;overflow:hidden;width:500px;max-width:100%;margin:0 auto}.badge-table[_ngcontent-%COMP%]{max-width:140px!important;border-radius:5px!important;-webkit-border-radius:5px!important;-moz-border-radius:5px!important;-ms-border-radius:5px!important;-o-border-radius:5px!important}.btn-refresh[_ngcontent-%COMP%]{transform:translateY(2px)}.request-data-info[_ngcontent-%COMP%]{transition:all .5s ease!important}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.mat-flat-button.mat-primary.mat-button-disabled[_ngcontent-%COMP%]{background:red!important}button.mat-flat-button.text-green-500.bg-green-light.mat-button-disabled[_ngcontent-%COMP%]{background:orange!important}.test-mode[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px}.webcam-wrapper[_ngcontent-%COMP%]{position:relative}.webcam-overlay[_ngcontent-%COMP%]{position:absolute;z-index:99;width:500px;top:0;left:0;width:100%;height:100%;justify-content:center}.webcam-overlay[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%]{background:url(/assets/img/exclude.png);width:100%;height:100%;background-repeat:no-repeat;background-size:cover;opacity:.7;max-width:500px}.loading-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;top:0;left:0;background:#fff}"],data:{animation:[C.$]}}),Je=(0,_.gn)([(0,y.c)()],Je);const et=[{path:":idUser",component:Je},{path:":idUser/:packID",component:Je}];let tt=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=k.ɵɵdefineNgModule({type:e}),e.ɵinj=k.ɵɵdefineInjector({imports:[m.Bz.forChild(et),m.Bz,f.d8]}),e})();var nt=n(6981),it=n(1129),rt=n(9476),st=n(3295),ot=n(1145),at=n(3300),lt=n(865),ct=n(3033),dt=n(5028);let ut=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=k.ɵɵdefineNgModule({type:e}),e.ɵinj=k.ɵɵdefineInjector({providers:[O,l.o,d.w,c.t,h.T,p.t,{provide:u.Ad,useValue:"es-ES"}],imports:[tt,i.ez,r.G,s.J,o.FormsModule,o.ReactiveFormsModule,a.a,nt.x,it.n,rt.F,st.g,ot.j,at.C,Me.QA,lt.q,ct.d,dt.q]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[553],{6553:(e,t,n)=>{n.r(t),n.d(t,{WidgetModule:()=>U});var i=n(6895),r=n(9299),s=n(6e3),o=n(5469),a=n(4650);const l=[{path:"",component:o.B,children:[{path:"sms",loadChildren:()=>Promise.resolve().then(n.bind(n,3006)).then((e=>e.SmsModule))},{path:"SMS",loadChildren:()=>Promise.resolve().then(n.bind(n,3006)).then((e=>e.SmsModule))},{path:"clavepin",loadChildren:()=>Promise.resolve().then(n.bind(n,1916)).then((e=>e.PinModule))},{path:"chave-movel",loadChildren:()=>n.e(508).then(n.bind(n,5508)).then((e=>e.ChaveMovelModule))},{path:"chavemovel",loadChildren:()=>n.e(508).then(n.bind(n,5508)).then((e=>e.ChaveMovelModule))},{path:"SmsPin",loadChildren:()=>n.e(94).then(n.bind(n,2094)).then((e=>e.SmsPinModule))},{path:"smspin",loadChildren:()=>n.e(94).then(n.bind(n,2094)).then((e=>e.SmsPinModule))},{path:"VideoId",loadChildren:()=>Promise.resolve().then(n.bind(n,1724)).then((e=>e.VideoIdModule))},{path:"videoid",loadChildren:()=>Promise.resolve().then(n.bind(n,1724)).then((e=>e.VideoIdModule))},{path:"Presencial",loadChildren:()=>Promise.resolve().then(n.bind(n,8526)).then((e=>e.PersonalModule))},{path:"presencial",loadChildren:()=>Promise.resolve().then(n.bind(n,8526)).then((e=>e.PersonalModule))},{path:"knownclient",loadChildren:()=>Promise.resolve().then(n.bind(n,8526)).then((e=>e.PersonalModule))},{path:"client-cert",loadChildren:()=>Promise.resolve().then(n.bind(n,6281)).then((e=>e.ClientCertModule))},{path:"clientcertificate",loadChildren:()=>n.e(163).then(n.bind(n,4163)).then((e=>e.ClientCertModule))},{path:"digital-power",loadChildren:()=>n.e(883).then(n.bind(n,883)).then((e=>e.PowerModule))},{path:"digitalpower",loadChildren:()=>n.e(883).then(n.bind(n,883)).then((e=>e.PowerModule))},{path:"client-certificate",redirectTo:"clientcertificate"},{path:"client-cert-mock",loadChildren:()=>n.e(822).then(n.bind(n,3822)).then((e=>e.ClientCertModule))},{path:"poder-digital",loadChildren:()=>n.e(883).then(n.bind(n,883)).then((e=>e.PowerModule))},{path:"manual-step",loadChildren:()=>Promise.all([n.e(592),n.e(452)]).then(n.bind(n,6452)).then((e=>e.ManualModule))},{path:"manual",loadChildren:()=>Promise.all([n.e(592),n.e(378)]).then(n.bind(n,2378)).then((e=>e.ManualModule))}]}];let c=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a.ɵɵdefineNgModule({type:e}),e.ɵinj=a.ɵɵdefineInjector({imports:[r.Bz.forChild(l),r.Bz,s.d8]}),e})();var d=n(6383),u=n(5592),h=n(5601),p=n(3798),m=n(9391),f=n(182),g=n(7367),_=n(3238),v=n(5895),y=n(4246),b=n(3006),x=n(4006),w=n(9101),C=n(811),S=n(6709),M=n(9602),I=n(7392),k=n(4144),E=n(1561),T=n(8739),P=n(1572),O=n(1948),D=n(4385),L=n(6308),A=n(6257),N=n(7155),R=n(266),j=n(1916),F=n(9617),q=n(6981),Y=n(1724),V=n(8526),H=n(6281);let z=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a.ɵɵdefineNgModule({type:e}),e.ɵinj=a.ɵɵdefineInjector({imports:[i.ez,I.Ps]}),e})();var B=n(8962);let U=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a.ɵɵdefineNgModule({type:e}),e.ɵinj=a.ɵɵdefineInjector({providers:[h.M,m.o,g.w,f.t,F.U,v.T,y.t,{provide:_.Ad,useValue:"es-ES"}],imports:[i.ez,c,d.G,u.J,p.a,b.SmsModule,j.PinModule,Y.VideoIdModule,V.PersonalModule,H.ClientCertModule,T.TU,N.p0,L.JX,S.p9,I.Ps,w.ot,E.Tx,k.c,x.FormsModule,R.AV,x.ReactiveFormsModule,D.LD,C.vV,p.a,P.Cq,M.FA,_.XK,A.T5,O.Fk,q.x,z,B.A]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[822],{3822:(e,t,n)=>{n.r(t),n.d(t,{ClientCertModule:()=>We});var i=n(6895),r=n(6383),s=n(5592),o=n(8739),a=n(7155),l=n(6308),c=n(6709),d=n(7392),u=n(9101),h=n(1561),p=n(4006),m=n(266),f=n(4385),g=n(811),_=n(5601),v=n(3798),y=n(9391),b=n(1572),x=n(182),w=n(4144),C=n(7367),S=n(9602),M=n(3238),I=n(5895),k=n(6257),E=n(1948),T=n(4246),P=n(9299),O=n(6e3),D=n(5861),L=n(7582),A=n(9549),N=n(9933),R=n(5762),j=n(8259),F=n(2340),q=n(1363),Y=n(6830),V=n(4650),H=n(5089),z=n(5412),B=n(3731);function U(e,t){if(1&e&&(V.ɵɵelementStart(0,"span"),V.ɵɵtext(1),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}function W(e,t){if(1&e&&(V.ɵɵelementStart(0,"span"),V.ɵɵtext(1),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵtextInterpolate2("¿No has recibido el código en el teléfono acabado en ",e.lastNumberPhone,"? Solicítalo de nuevo en ",e.secsCount," segundos")}}const $=function(e,t,n){return{color:e,border:t,background:n}};function G(e,t){if(1&e&&(V.ɵɵelementContainerStart(0),V.ɵɵelementStart(1,"small",11),V.ɵɵtemplate(2,U,2,1,"span",5),V.ɵɵtemplate(3,W,2,2,"span",5),V.ɵɵelementEnd(),V.ɵɵelementContainerEnd()),2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵproperty("ngStyle",V.ɵɵpureFunction3(3,$,e.data.styles.colors.accentColor,"1px solid "+e.data.styles.colors.accentColor,e.data.styles.colors.accentBgColor)),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.lastNumberPhone),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",e.lastNumberPhone)}}function Z(e,t){1&e&&(V.ɵɵelementStart(0,"span"),V.ɵɵtext(1," ¿No has recibido el código en tu teléfono? "),V.ɵɵelementEnd())}function K(e,t){if(1&e&&(V.ɵɵelementStart(0,"span"),V.ɵɵtext(1),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵtextInterpolate1(" ¿No has recibido el código en el teléfono acabado en ",e.lastNumberPhone,"? ")}}const Q=function(e,t){return{color:e,background:t}};function X(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementContainerStart(0),V.ɵɵelementStart(1,"small",11),V.ɵɵtemplate(2,Z,2,0,"span",5),V.ɵɵtemplate(3,K,2,1,"span",5),V.ɵɵelementStart(4,"a",12),V.ɵɵlistener("click",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext();return V.ɵɵresetView(t.resendOTP())})),V.ɵɵtext(5,"Reenviar"),V.ɵɵelementEnd()(),V.ɵɵelementContainerEnd()}if(2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵproperty("ngStyle",V.ɵɵpureFunction3(4,$,e.data.styles.colors.dangerColor,"1px solid "+e.data.styles.colors.dangerColor,e.data.styles.colors.dangerBgColor)),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.lastNumberPhone),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",e.lastNumberPhone),V.ɵɵadvance(1),V.ɵɵproperty("ngStyle",V.ɵɵpureFunction2(8,Q,e.data.styles.colors.dangerTextButtonColor,e.data.styles.colors.dangerColor))}}let J=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.solucitudesService=n,this.activeRoute=i,this.next=new V.EventEmitter(null),this.errPhone=new V.EventEmitter(null),this.resendO=new V.EventEmitter(null),this.secsCount=60,this.lastNumberPhone="XXX"}ngOnInit(){this.form=this.fb.group({code1:[null,[p.Validators.required,p.Validators.maxLength(6),p.Validators.minLength(6)]]}),this.initSecsInterval(),this.activeRoute.queryParams.subscribe((e=>{e&&e.request_id&&(this.requestID=e.request_id)}),(e=>{console.error(e)})),this.solicitud&&this.solicitud.person_phone&&this.setPhone(this.solicitud.person_phone)}setPhone(e){let t="XXX";e&&(t=(""+e).slice(-3)),this.lastNumberPhone=t}initSecsInterval(){this.interv=setInterval((()=>{this.secsCount--,this.secsCount<=0&&this.finishSecsInterval()}),1e3)}finishSecsInterval(){this.interv&&clearInterval(this.interv)}nextStep(){let e={code:this.getCode()};this.next.emit(e)}getCode(){return this.form.get("code1").value}capturePasteEvent(e){return(0,D.Z)((function*(){}))()}errorStep(){this.errPhone.emit(!0)}setInputEvent(e){""!=e.target.value?j(e.target).next().focus():"Backspace"==e.code&&j(e.target).prev().focus()}resendOTP(){this.resendO.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(P.gz))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-otp-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep",errPhone:"errorPhone",resendO:"resendOTP"},decls:16,vars:20,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"title","py-2"],[4,"ngIf"],[1,"flex","gap-2","items-center","justify-start","w-full","max-w-[200px]"],["appearance","outline",1,"w-full","flex-1"],["tabindex","1","maxlength","6","minlength","1","formControlName","code1","type","text","matInput","",3,"change","keyup"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","next-button","mat-flat-button","","type","button",1,"px-8",3,"disabled","click"],[1,"info-time","w-fit",3,"ngStyle"],[1,"ml-4",3,"ngStyle","click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementStart(5,"div",4),V.ɵɵtemplate(6,G,4,7,"ng-container",5),V.ɵɵtemplate(7,X,6,11,"ng-container",5),V.ɵɵelementEnd(),V.ɵɵelementStart(8,"div",6)(9,"mat-form-field",7)(10,"mat-label"),V.ɵɵtext(11," Código OTP "),V.ɵɵelementEnd(),V.ɵɵelementStart(12,"input",8),V.ɵɵlistener("change",(function(e){return t.capturePasteEvent(e)}))("keyup",(function(e){return t.setInputEvent(e)})),V.ɵɵelementEnd()()()(),V.ɵɵelementStart(13,"div",9)(14,"button",10),V.ɵɵlistener("click",(function(){return t.nextStep()})),V.ɵɵtext(15,"Siguiente"),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵproperty("formGroup",t.form),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.otp.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,18,t.texts.otp.description||""),V.ɵɵsanitizeHtml),V.ɵɵadvance(3),V.ɵɵproperty("ngIf",t.secsCount&&t.secsCount>0),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!t.secsCount||t.secsCount<=0),V.ɵɵadvance(7),V.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),V.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,i.PC,u.lW,A.KE,A.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,B.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function ee(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",1),V.ɵɵelement(1,"div",2)(2,"div",3),V.ɵɵpipe(3,"safeHtml"),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",e.texts.success.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",e.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(3,8,e.texts.success.description||""),V.ɵɵsanitizeHtml)}}let te=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r}ngOnInit(){}save(){}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(y.o),V.ɵɵdirectiveInject(I.T))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-success-step"]],inputs:{data:"data",texts:"texts"},decls:1,vars:1,consts:[["class"," pt-4 pb-8 flex flex-col animated fadeIn",4,"ngIf"],[1,"pt-4","pb-8","flex","flex-col","animated","fadeIn"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&V.ɵɵtemplate(0,ee,4,10,"div",0),2&e&&V.ɵɵproperty("ngIf",!t.data.config.infiniteLoopInCompleted)},dependencies:[i.O5,B.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function ne(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",5)(1,"button",6),V.ɵɵlistener("click",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext();return V.ɵɵresetView(t.retry())})),V.ɵɵtext(2,"Intentarlo nuevamente"),V.ɵɵelementEnd()()}if(2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}function ie(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",5)(1,"button",6),V.ɵɵlistener("click",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext();return V.ɵɵresetView(t.newRequest())})),V.ɵɵtext(2,"Crear nueva solicitud"),V.ɵɵelementEnd()()}if(2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}let re=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryOp=new V.EventEmitter(null),this.newReq=new V.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryOp.emit(this.solicitud.request_id)}newRequest(){this.newReq.emit(this.solicitud.request_id)}getIfRetryIsAllowed(){return"failed_with_retry"==this.solicitud}getIfNewRequestIsAllowed(){return"failed_documents_downloaded"==this.solicitud}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(y.o),V.ɵɵdirectiveInject(I.T))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-fail-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{retryOp:"retry",newReq:"newRequest"},decls:7,vars:8,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"text-red-500","title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],["class","flex items-center justify-end gap-2 p-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"div",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementEnd(),V.ɵɵtemplate(5,ne,3,6,"div",4),V.ɵɵtemplate(6,ie,3,6,"div",4),V.ɵɵelementEnd()),2&e&&(V.ɵɵadvance(2),V.ɵɵproperty("innerHTML",t.texts.fail.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,6,t.texts.fail.description),V.ɵɵsanitizeHtml),V.ɵɵadvance(2),V.ɵɵproperty("ngIf",t.solicitud&&"failed_with_retry"==t.solicitud.status_code),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.solicitud&&"failed_documents_downloaded"==t.solicitud.status_code))},dependencies:[i.O5,u.lW,B.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();n(6866);var se=n(1763);const oe={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let ae=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.next=new V.EventEmitter(null),this.goTermsCert=new V.EventEmitter(null),this.acceptTerms=!1}ngOnInit(){this.setForm(this.solicitud?this.solicitud:null)}setForm(e){this.form=this.fb.group({name:[e&&e.person_name?e.person_name:null],lastname:[e&&e.person_last_name?e.person_last_name:null],dni:[(e?e.person_document_number||e.phone:null)||null]})}nextStep(){this.next.emit(!0)}gotoTermsAndConditionsCertificate(e){e.preventDefault(),e.stopPropagation(),this.goTermsCert.emit(!0)}setTerms(e){this.acceptTerms=e}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],inputs:{data:"data",flowName:"flowName",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep",goTermsCert:"goToTermsCertificate"},features:[V.ɵɵProvidersFeature([{provide:M.sG,useValue:oe},{provide:V.LOCALE_ID,useValue:"es-ES"}])],decls:16,vars:19,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"mt-3","flex","justify-start","items-center","w-full","flex-100"],[3,"color","changeCheckbox"],["target","_blank",1,"text-sm","hover:text-blue-500",3,"click"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"disabled","click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementEnd(),V.ɵɵelementStart(5,"div")(6,"div",4)(7,"belender-checkbox",5),V.ɵɵlistener("changeCheckbox",(function(e){return t.setTerms(e)})),V.ɵɵtext(8," He leído y acepto los "),V.ɵɵelementStart(9,"a",6),V.ɵɵlistener("click",(function(e){return t.gotoTermsAndConditionsCertificate(e)})),V.ɵɵelementStart(10,"u"),V.ɵɵtext(11,"términos y condiciones"),V.ɵɵelementEnd()(),V.ɵɵtext(12," para la emisión del certificado "),V.ɵɵelementEnd()()(),V.ɵɵelementStart(13,"div",7)(14,"button",8),V.ɵɵlistener("click",(function(){return t.nextStep()})),V.ɵɵtext(15,"Siguiente"),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵproperty("formGroup",t.form),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.form.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,17,t.texts.form.description||""),V.ɵɵsanitizeHtml),V.ɵɵadvance(4),V.ɵɵproperty("color",t.data.styles.colors.title),V.ɵɵadvance(7),V.ɵɵstyleProp("color",t.acceptTerms?t.data.styles.colors.btnText:"")("background",t.acceptTerms?t.data.styles.colors.btnBg:"")("border-radius",t.data.styles.btnRound+"px"),V.ɵɵproperty("disabled",!t.acceptTerms))},dependencies:[u.lW,p.ɵNgNoValidate,p.NgControlStatusGroup,p.FormGroupDirective,se.b,B.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();var le=n(5145);let ce=(()=>{class e{constructor(e){this.utils=e,this.status="",this.label="Cargando datos.."}ngOnInit(){this.data.config&&this.data.config.infiniteLoopInCompleted?this.label="":le.Z.forEach((e=>{e.text==this.status&&(this.label=e.label)}))}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(H.F))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-loading-step"]],inputs:{status:"status",data:"data"},decls:5,vars:1,consts:[[1,"fixed-content","h-full"],[1,"h-full","py-10","flex","flex-col","items-center"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"div",0)(1,"div",1),V.ɵɵelement(2,"mat-progress-spinner"),V.ɵɵelementStart(3,"p"),V.ɵɵtext(4),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵadvance(4),V.ɵɵtextInterpolate(t.label))},dependencies:[b.Ou],styles:[".content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),de=(()=>{class e{constructor(){}ngOnInit(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-no-service-step"]],inputs:{data:"data",texts:"texts"},decls:5,vars:10,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementEnd()()),2&e&&(V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.noService.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,8,t.texts.noService.description),V.ɵɵsanitizeHtml))},dependencies:[p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm,B.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),ue=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryOp=new V.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryOp.emit(this.solicitud.request_id)}getTextStatus(){switch(this.solicitud.status_code){case"abandoned_after_waiting_otp_seguridad_social":return"Abandonado después de esperar OTP de Seguridad Social";case"abandoned_after_invalid_otp_seguridad_social":return"Abandonado despues de OTP inválido en Seguridad Social";case"abandoned_after_invalid_otp_aeat":return"Abandonado despues de OTP inválido en AEAT";case"abandoned_after_waiting_otp_aeat":return"Abandonado después de esperar OTP de AEAT";default:return this.solicitud.status_code}}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.UntypedFormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(y.o),V.ɵɵdirectiveInject(I.T))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-abandoned-step"]],inputs:{solicitud:"solicitud",data:"data",texts:"texts"},outputs:{retryOp:"retry"},decls:10,vars:17,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-md","mb-2","mt-2"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"div",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementStart(5,"div",4),V.ɵɵtext(6),V.ɵɵelementEnd()(),V.ɵɵelementStart(7,"div",5)(8,"button",6),V.ɵɵlistener("click",(function(){return t.retry()})),V.ɵɵtext(9,"Intentarlo nuevamente"),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.abandoned.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,15,t.texts.abandoned.description),V.ɵɵsanitizeHtml),V.ɵɵadvance(3),V.ɵɵtextInterpolate1(" Estado: ",t.getTextStatus()," "),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW,B.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function he(e,t){return n=>{const i=n.controls[t];i.errors&&!i.errors.confirmedValidator||i.setErrors(n.controls[e].value!==i.value?{confirmedValidator:!0}:null)}}function pe(e,t){1&e&&(V.ɵɵelementStart(0,"mat-hint",12),V.ɵɵtext(1," La contraseña es requerida "),V.ɵɵelementEnd())}function me(e,t){1&e&&(V.ɵɵelementStart(0,"mat-hint",12),V.ɵɵtext(1," La contraseña debe tener al menos 8 carácteres "),V.ɵɵelementEnd())}function fe(e,t){1&e&&(V.ɵɵelementStart(0,"mat-hint",12),V.ɵɵtext(1," Es necesario repetir la contraseña "),V.ɵɵelementEnd())}function ge(e,t){1&e&&(V.ɵɵelementStart(0,"mat-hint",12),V.ɵɵtext(1," Las contraseñas deben coincidir "),V.ɵɵelementEnd())}function _e(e,t){1&e&&(V.ɵɵelementStart(0,"mat-hint",12),V.ɵɵtext(1," La contraseña debe tener al menos 8 carácteres "),V.ɵɵelementEnd())}const ve={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let ye=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.form=new p.FormGroup({}),this.next=new V.EventEmitter(null)}ngOnInit(){this.setForm()}get f(){return this.form.controls}submit(){this.nextStep()}setForm(){this.form=this.fb.group({password:["",[p.Validators.required]],confirm_password:["",[p.Validators.required]]},{validator:he("password","confirm_password")})}nextStep(){let e={password:this.form.get("password").value,phone:this.form.get("confirm_password").value};this.next.emit(e)}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.FormBuilder),V.ɵɵdirectiveInject(H.F))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-password-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep"},features:[V.ɵɵProvidersFeature([{provide:M.sG,useValue:ve},{provide:V.LOCALE_ID,useValue:"es-ES"}])],decls:22,vars:23,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"my-3","flex","flex-col","md:flex-row","flex-wrap","gap-2","md:justify-between"],["appearance","outline",1,"w-full","flex-1","belender-form-field"],["formControlName","password","minlength","8","type","password","matInput",""],["class","text-red-500",4,"ngIf"],["appearance","outline",1,"mb-4","w-full","flex-1","belender-form-field"],["formControlName","confirm_password","minlength","8","type","password","matInput",""],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"disabled","click"],[1,"text-red-500"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1),V.ɵɵelement(2,"div",2)(3,"div",3),V.ɵɵpipe(4,"safeHtml"),V.ɵɵelementEnd(),V.ɵɵelementStart(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),V.ɵɵtext(8,"Contraseña"),V.ɵɵelementEnd(),V.ɵɵelement(9,"input",6),V.ɵɵtemplate(10,pe,2,0,"mat-hint",7),V.ɵɵtemplate(11,me,2,0,"mat-hint",7),V.ɵɵelementEnd(),V.ɵɵelementStart(12,"mat-form-field",8)(13,"mat-label"),V.ɵɵtext(14,"Repite Contraseña"),V.ɵɵelementEnd(),V.ɵɵelement(15,"input",9),V.ɵɵtemplate(16,fe,2,0,"mat-hint",7),V.ɵɵtemplate(17,ge,2,0,"mat-hint",7),V.ɵɵtemplate(18,_e,2,0,"mat-hint",7),V.ɵɵelementEnd()(),V.ɵɵelementStart(19,"div",10)(20,"button",11),V.ɵɵlistener("click",(function(){return t.nextStep()})),V.ɵɵtext(21," Guardar "),V.ɵɵelementEnd()()()),2&e&&(V.ɵɵproperty("formGroup",t.form),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),V.ɵɵproperty("innerHTML",t.texts.password.title,V.ɵɵsanitizeHtml),V.ɵɵadvance(1),V.ɵɵstyleProp("color",t.data.styles.colors.text),V.ɵɵproperty("innerHTML",V.ɵɵpipeBind1(4,21,t.texts.password.description),V.ɵɵsanitizeHtml),V.ɵɵadvance(7),V.ɵɵproperty("ngIf",t.f.password.touched&&t.f.password.invalid&&t.f.password.errors.required),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.f.password.invalid&&t.f.password.errors.minlength),V.ɵɵadvance(5),V.ɵɵproperty("ngIf",t.f.confirm_password.touched&&t.f.confirm_password.touched&&t.f.confirm_password.invalid&&t.f.confirm_password.errors.required),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.f.confirm_password.touched&&t.f.confirm_password.touched&&t.f.confirm_password.invalid&&t.f.confirm_password.errors.confirmedValidator),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.f.confirm_password.invalid&&t.f.confirm_password.errors.minlength),V.ɵɵadvance(2),V.ɵɵstyleProp("color",t.form.invalid?"":t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),V.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,u.lW,A.KE,A.bx,A.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.FormGroupDirective,p.FormControlName,B.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),be=(()=>{class e{constructor(e,t,n){this.route=e,this.dialogRef=t,this.cd=n}ngOnInit(){}closeModal(){this.dialogRef.close()}accept(){this.dialogRef.close(!0)}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(P.F0),V.ɵɵdirectiveInject(z.so),V.ɵɵdirectiveInject(V.ChangeDetectorRef))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["vex-cert-modal"]],standalone:!0,features:[V.ɵɵStandaloneFeature],decls:27,vars:0,consts:[[1,"-m-6"],[1,"flex","items-center","justify-between","gap-4","px-6","py-3","border-b","border-divider"],[1,"text-xl","flex","items-center"],["type","button","mat-icon-button","",1,"flex-none","ltr:-mr-2","rtl:-ml-2","text-secondary",3,"click"],["svgIcon","mat:close"],[1,"modal-content","p-3"],[1,"table","border","w-full","border-slate-300"],[1,"head","w-full","flex","justify-start","bg-slate-100"],[1,"th","w-1/3","text-left","p-1","border","border-slate-300"],[1,"head","w-full","flex","justify-start"],[1,"footer","mt-4","gap-3","p-4","flex","justify-end"],["mat-flat-button","","type","button",1,"px-8",3,"click"],["color","primary","mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),V.ɵɵtext(3," Selecciona un certificado "),V.ɵɵelementEnd(),V.ɵɵelementStart(4,"button",3),V.ɵɵlistener("click",(function(){return t.closeModal()})),V.ɵɵelement(5,"mat-icon",4),V.ɵɵelementEnd()(),V.ɵɵelementStart(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8),V.ɵɵtext(10,"Asunto"),V.ɵɵelementEnd(),V.ɵɵelementStart(11,"div",8),V.ɵɵtext(12,"Emisor"),V.ɵɵelementEnd(),V.ɵɵelementStart(13,"div",8),V.ɵɵtext(14,"Número de serie"),V.ɵɵelementEnd()(),V.ɵɵelementStart(15,"div",9)(16,"div",8),V.ɵɵtext(17," CHECA OLIVARES ROGER "),V.ɵɵelementEnd(),V.ɵɵelementStart(18,"div",8),V.ɵɵtext(19," AC FNMT Usuarios "),V.ɵɵelementEnd(),V.ɵɵelementStart(20,"div",8),V.ɵɵtext(21," 65JH5J534HK565K676HK676J4K4J "),V.ɵɵelementEnd()()()(),V.ɵɵelementStart(22,"div",10)(23,"button",11),V.ɵɵlistener("click",(function(){return t.closeModal()})),V.ɵɵtext(24,"Cancelar"),V.ɵɵelementEnd(),V.ɵɵelementStart(25,"button",12),V.ɵɵlistener("click",(function(){return t.accept()})),V.ɵɵtext(26,"Aceptar"),V.ɵɵelementEnd()()())},dependencies:[i.ez,d.Ps,d.Hw,u.ot,u.lW,M.si,h.Tx],styles:[".modal-content[_ngcontent-%COMP%]{max-height:60vh;overflow-y:auto}.th[_ngcontent-%COMP%]{white-space:inherit;text-overflow:ellipsis;overflow:hidden}"]}),e})();const xe={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let we=(()=>{class e{constructor(e,t,n){this.fb=e,this.utils=t,this.dialog=n,this.form=new p.FormGroup({}),this.next=new V.EventEmitter(null),this.allGood=!1}ngOnInit(){this.setForm()}submit(){this.nextStep()}setForm(){}openModal(){const e=this;this.dialog.open(be,{panelClass:"vex-dialog-glossy",width:"100%",maxWidth:"600px"}).afterClosed().subscribe((t=>{t&&e.submit(),console.warn(t)}))}nextStep(){this.next.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(V.ɵɵdirectiveInject(p.FormBuilder),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(z.uw))},e.ɵcmp=V.ɵɵdefineComponent({type:e,selectors:[["belender-sign-cert-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep"},features:[V.ɵɵProvidersFeature([{provide:M.sG,useValue:xe},{provide:V.LOCALE_ID,useValue:"es-ES"}])],decls:125,vars:6,consts:[[1,"animated","fadeIn","fixed-content","px-2"],[1,"mb-3","flex","flex-col","gap-2","pdf-text","bg-slate-100/60","px-4","py-6","max-h-[300px]","overflow-y-auto","rounded-md"],[1,"pl-4"],[1,"mt-4","flex","justify-end"],["mat-flat-button","","type","button",1,"px-8",3,"click"]],template:function(e,t){1&e&&(V.ɵɵelementStart(0,"form",0)(1,"div",1)(2,"h1"),V.ɵɵtext(3,"AUTORIZACIÓN A OBTENER LA DOCUMENTACIÓN AUTOMÁTICAMENTE CON EL CERTIFICADO DIGITAL"),V.ɵɵelementEnd(),V.ɵɵelementStart(4,"p"),V.ɵɵtext(5,"Los presentes Términos y Condiciones (en adelante, los "),V.ɵɵelementStart(6,"b"),V.ɵɵtext(7,"“Términos y Condiciones”"),V.ɵɵelementEnd(),V.ɵɵtext(8," ) regulan, la descarga, acceso, navegación y uso de la plataforma propiedad de "),V.ɵɵelementStart(9,"b"),V.ɵɵtext(10,"BELENDER"),V.ɵɵelementEnd(),V.ɵɵtext(11," (en adelante, la "),V.ɵɵelementStart(12,"b"),V.ɵɵtext(13,"“Plataforma”"),V.ɵɵelementEnd(),V.ɵɵtext(14," ), la cual es titularidad de ALL4LEND S.L., con CIF B-67425769, con domicilio social en la Calle del Sol 19, Sant Andreu de la Barca, 08740, Barcelona, España. (en adelante, "),V.ɵɵelementStart(15,"b"),V.ɵɵtext(16,"“BELENDER”"),V.ɵɵelementEnd(),V.ɵɵtext(17," )."),V.ɵɵelementEnd(),V.ɵɵelementStart(18,"p"),V.ɵɵtext(19,"Los presentes Términos y Condiciones están dirigidos exclusivamente a los Usuarios registrados en la Plataforma y, en su caso, podrán ser complementados con las Condiciones Particulares aplicables en cada caso según se fijen en la Plataforma, así como con el Aviso Legal, la Política de Privacidad y cualquier otro documento que incluya BELENDER en la Plataforma."),V.ɵɵelementEnd(),V.ɵɵelementStart(20,"h2"),V.ɵɵtext(21,"1. OBJETO DE LA PLATAFORMA Y DESCRIPCIÓN DEL SERVICIO"),V.ɵɵelementEnd(),V.ɵɵelementStart(22,"p"),V.ɵɵtext(23,"BELENDER es una plataforma digital basada en la prestación de un servicio a entidades financieras por medio del cual recopila información, documentación e informes de clientes consumidores (en adelante, los “Usuarios”) que solicitan un préstamo o crédito y que son necesarios para la tramitación de su concesión por la propia entidad financiera, y ello mediante el acceso por parte de BELENDER, en nombre y por cuenta del propio Usuario, a sus portales personales de la Seguridad Social y de la AEAT, de cara a que el Usuario se ahorre toda esta gestión burocrática de solicitud de documentación a las administraciones públicas, tramitándolo directamente BELENDER con la propia entidad financiera. Este servicio es gratuito para el Usuario."),V.ɵɵelementEnd(),V.ɵɵelementStart(24,"p"),V.ɵɵtext(25,"La operativa de esta Plataforma se basa en que FINANCIADOR redirige al Usuario solicitante de un préstamo a la herramienta web de BELENDER. Ya en entorno BELENDER, el Usuario facilita su información personal, otorga el consentimiento legal al uso de la herramienta automática que se pone a su disposición y facilita un código OTP que recibirá de la Seguridad Social y/o AEAT para hacer uso de su sistema Clave PIN o su teléfono informado en la Seguridad Social. "),V.ɵɵelementEnd(),V.ɵɵelementStart(26,"p"),V.ɵɵtext(27,"En concreto, los documentos que se descargan son:"),V.ɵɵelementEnd(),V.ɵɵelementStart(28,"p"),V.ɵɵtext(29,"LISTAR DOCUMENTOS"),V.ɵɵelementEnd(),V.ɵɵelementStart(30,"h2"),V.ɵɵtext(31,"2. ACEPTACIÓN DE LOS TÉRMINOS Y CONDICIONES"),V.ɵɵelementEnd(),V.ɵɵelementStart(32,"p"),V.ɵɵtext(33,"Mediante la aceptación de los Términos y Condiciones, el Usuario se compromete a actuar en todo momento de conformidad con las disposiciones establecidas en el clausulado del presente texto legal. En caso de no estar de acuerdo con todo o parte de estos Términos y Condiciones, el Usuario debe abstenerse de utilizar la Plataforma y los servicios en ella ofrecidos por BELENDER."),V.ɵɵelementEnd(),V.ɵɵelementStart(34,"p"),V.ɵɵtext(35,"El servicio prestado en esta Plataforma se rige por: "),V.ɵɵelementEnd(),V.ɵɵelementStart(36,"ul",2)(37,"li"),V.ɵɵtext(38,"(i) estos Términos y Condiciones;"),V.ɵɵelementEnd(),V.ɵɵelementStart(39,"li"),V.ɵɵtext(40,"(ii) Condiciones Particulares que puedan publicarse en la Plataforma o que queden regulados y reflejados en el Sitio web;"),V.ɵɵelementEnd(),V.ɵɵelementStart(41,"li"),V.ɵɵtext(42,"(iii) las leyes vigentes y aplicables, regulaciones sectoriales y los criterios y prácticas generales."),V.ɵɵelementEnd()(),V.ɵɵelementStart(43,"p"),V.ɵɵtext(44,"Al aceptar los presentes Términos y Condiciones Generales, el usuario manifiesta ser mayor de 18 años y/o tener capacidad legal plena para entender y aceptar el contenido de estos Términos y Condiciones, eximiendo y manteniendo indemne a BELENDER de cualesquiera reclamaciones, denuncias o daños causados por el incumplimiento de esta condición, la cual se entiende como conditio sine qua non para el uso y aprovechamiento de los servicios ofrecidos por BELENDER en la misma. "),V.ɵɵelementEnd(),V.ɵɵelementStart(45,"h2"),V.ɵɵtext(46,"3. CESIÓN DE DATOS"),V.ɵɵelementEnd(),V.ɵɵelementStart(47,"p"),V.ɵɵtext(48,"El solicitante, mediante su autorización expresa, accede a utilizar el servicio de Belender para que le facilite una herramienta que automatiza la obtención de la Documentación ante la administración u organismo públicos competentes. Una vez obtenida, Belender facilitará la Documentación a FINANCIADOR con la exclusiva finalidad de que ésta con la finalidad de que ésta pueda realizar la evaluación de la solvencia de la operación de financiación solicitada por el Usuario y se pueda poner en contacto con usted para asesorarle al respecto."),V.ɵɵelementEnd(),V.ɵɵelementStart(49,"h2"),V.ɵɵtext(50,"4. OBLIGACIONES DE BELENDER"),V.ɵɵelementEnd(),V.ɵɵelementStart(51,"ul",2)(52,"li"),V.ɵɵtext(53,"Mediante estos Términos y Condiciones, BELENDER se compromete con los Usuarios a proporcionarles el servicio de la forma en la que se describe en los presentes Términos y Condiciones."),V.ɵɵelementEnd(),V.ɵɵelementStart(54,"li"),V.ɵɵtext(55,"Tratar con diligencia y absoluta confidencialidad la información y documentación a la que tenga acceso con motivo de la prestación de los servicios y solo para la correcta prestación de los mismos."),V.ɵɵelementEnd(),V.ɵɵelementStart(56,"li"),V.ɵɵtext(57,"Poner todos los medios para resolver a la mayor diligencia cualquier incidencia técnica que pudiera producirse en la Plataforma durante la prestación de los servicios, si bien no garantiza su continua disponibilidad de la misma por motivos ajenos a su voluntad y medios."),V.ɵɵelementEnd(),V.ɵɵelementStart(58,"li"),V.ɵɵtext(59,"Emplear toda la atención y profesionalidad que se consideren razonables para la prestación del servicio que se ofrece."),V.ɵɵelementEnd()(),V.ɵɵelementStart(60,"h2"),V.ɵɵtext(61,"5. OBLIGACIONES DE LOS USUARIOS"),V.ɵɵelementEnd(),V.ɵɵelementStart(62,"ul",2)(63,"li"),V.ɵɵtext(64,"Para participar en la Plataforma y beneficiarse del servicio ofrecido por BELENDER, los Usuarios deben leer y aceptar los presentes Términos y Condiciones, así como cualquier otra condición particular que resultare de aplicación a la presente relación contractual por BELENDER."),V.ɵɵelementEnd(),V.ɵɵelementStart(65,"li"),V.ɵɵtext(66,"Los Usuarios son exclusivamente responsables de garantizar la veracidad de los datos personales proporcionados en el momento de solicitud del servicio a BELENDER, de forma que tanto la identificación, como la prestación de los servicios por parte de BELENDER a través de la Plataforma se pueda llevar a cabo de forma correcta."),V.ɵɵelementEnd(),V.ɵɵelementStart(67,"li"),V.ɵɵtext(68,"Los Usuarios se comprometen a uso diligente y correcto de los servicios ofrecidos por BELENDER, asumiendo toda la responsabilidad que pudiera derivarse de un mal uso de los mismos."),V.ɵɵelementEnd()(),V.ɵɵelementStart(69,"h2"),V.ɵɵtext(70,"6. CONFIDENCIALIDAD"),V.ɵɵelementEnd(),V.ɵɵelementStart(71,"p"),V.ɵɵtext(72,"BELENDER se obligan a guardar secreto y confidencialidad sobre cuantos datos del Usuario le sean facilitados por la entidad bancaria, así como también sobre cuanta información y documentación BELENDER tenga acceso con motivo de la prestación de los servicios objeto de los presentes Términos y Condiciones."),V.ɵɵelementEnd(),V.ɵɵelementStart(73,"p"),V.ɵɵtext(74,"En este sentido, toda la información y documentación compartida con BELENDER con el objetivo de ejecutar la prestación de servicios será considerada confidencial, especialmente los datos de carácter personal de los Usuarios. "),V.ɵɵelementEnd(),V.ɵɵelementStart(75,"h2"),V.ɵɵtext(76,"7. PROTECCIÓN DE DATOS PERSONALES"),V.ɵɵelementEnd(),V.ɵɵelementStart(77,"p"),V.ɵɵtext(78,"Los Usuarios se comprometen a aceptar la Política de Privacidad con anterioridad a la prestación de los servicios por parte de BELENDER."),V.ɵɵelementEnd(),V.ɵɵelementStart(79,"p"),V.ɵɵtext(80,"All4Lend SL, con NIF B67425769 y domicilio en Barcelona, calle Sol 19 (0874), es el responsable del tratamiento de sus datos."),V.ɵɵelementEnd(),V.ɵɵelementStart(81,"p"),V.ɵɵtext(82,"Los Usuarios están informados de que sus datos de carácter personal se almacenan con arreglo a lo dispuesto en el Reglamento (UE) 2016/679, del Parlamento Europeo y del Consejo, de 27 de abril de 2016, relativo a las personas físicas en lo que respecta al tratamiento de datos personales y a la libre circulación de estos datos (en adelante, "),V.ɵɵelementStart(83,"b"),V.ɵɵtext(84,"RGPD"),V.ɵɵelementEnd(),V.ɵɵtext(85," ) y lo establecido en la normativa española vigente en esta materia."),V.ɵɵelementEnd(),V.ɵɵelementStart(86,"p"),V.ɵɵtext(87,"De acuerdo con lo establecido en el RGPD, los datos personales de los Usuarios serán incorporados a nuestro sistema de tratamiento de datos personales en base al consentimiento expreso del interesado y conservándose mientras se mantenga la misma, así como el tiempo necesario para el cumplimiento de responsabilidades por parte de BELENDER. "),V.ɵɵelementEnd(),V.ɵɵelementStart(88,"p"),V.ɵɵtext(89,"Tal y como se informa en el apartado 3, una vez recabados, sus datos serán cedidos a FINANCIADOR para la evaluación de la solvencia de la operación solicitada por usted. Una vez recibidos los datos por la Entidad financiera, la misma los tratará en calidad de responsable del tratamiento de los datos."),V.ɵɵelementEnd(),V.ɵɵelementStart(90,"p"),V.ɵɵtext(91,"BELENDER informa de la posibilidad que tienen los Usuarios de ejercer los siguientes derechos sobre sus datos personales: derecho de acceso, rectificación, supresión u olvido, limitación, oposición, portabilidad y a retirar el consentimiento prestado (sin perjuicio de la legitimad de los tratamientos realizados mientras se prestó dicho consentimiento), lo que también aparece definido y explicado con más detalle en la Política de Privacidad de BELENDER."),V.ɵɵelementEnd(),V.ɵɵelementStart(92,"p"),V.ɵɵtext(93,"Para ello podrá enviar un email a dpo@belender.eu acompañado de una fotocopia del DNI, o dirigir un escrito ejerciendo sus derechos a la siguiente dirección postal: la Calle del Sol 19, Sant Andreu de la Barca, 08740, Barcelona, España. Igualmente, los Usuarios podrán dirigir sus reclamaciones a la Agencia Española de Protección de Datos (https://www.aepd.es/es) si entienden que sus derechos no han sido atendidos correctamente."),V.ɵɵelementEnd(),V.ɵɵelementStart(94,"h2"),V.ɵɵtext(95,"8. PROPIEDAD INTELECTUAL E INDUSTRIAL"),V.ɵɵelementEnd(),V.ɵɵelementStart(96,"p"),V.ɵɵtext(97,"Mediante la aceptación de los presentes Términos y Condiciones, BELENDER manifiesta, y los Usuarios aceptan, que BELENDER es titular de todos los derechos de propiedad intelectual, industrial y cualesquiera otros existentes sobre la Plataforma, nombres de dominio y cualesquiera otros que se entiendan incluidos en la misma."),V.ɵɵelementEnd(),V.ɵɵelementStart(98,"p"),V.ɵɵtext(99,"En este sentido, BELENDER y los Usuarios manifiestan y reconocen que en ningún caso la prestación de los servicios aquí definidos se entenderá como una cesión, autorización, transferencia o licencia de los derechos de propiedad intelectual, industrial y de cualquier otro tipo de los que sea titular o cesionario BELENDER, siendo sólo posible, por parte de los Usuarios, la utilización de cualesquiera contenidos, marcas, nombres de dominio y signos distintivos en el más estricto ámbito del desarrollo de la presente relación contractual, y única y exclusivamente mientras dure la misma."),V.ɵɵelementEnd(),V.ɵɵelementStart(100,"p"),V.ɵɵtext(101,"Asimismo, los Usuarios tienen terminantemente prohibida la utilización, reproducción, copia, distribución, comunicación pública, transformación y/o cualquier otra explotación de, con carácter meramente enunciativo, pero no limitativo, el código fuente, código objeto, nombres de dominio, de parte o de totalidad de la Plataforma, así como, de forma meramente enunciativa, pero no limitativa, cualquier acto de ingeniería inversa respecto de la Plataforma y/o cualquiera de sus contenidos."),V.ɵɵelementEnd(),V.ɵɵelementStart(102,"h2"),V.ɵɵtext(103,"9. RESPONSABILIDAD"),V.ɵɵelementEnd(),V.ɵɵelementStart(104,"p"),V.ɵɵtext(105,"Los Usuarios mantendrán indemne a BELENDER en todo momento frente a cualquier reclamación, queja, sanción, multa o cualquier otra acción judicial y/o administrativa, pública y/o privada, que pueda suponer o haya supuesto un daño patrimonial o moral a BELENDER."),V.ɵɵelementEnd(),V.ɵɵelementStart(106,"p"),V.ɵɵtext(107,"En relación con lo anterior, los Usuarios responderán frente a BELENDER por cualquier incumplimiento o actuación realizada por los mismos contraviniendo los presentes Términos y Condiciones, la legislación aplicable en cualquier materia y cualesquiera condiciones particulares que pudieran existir y que sean aplicables a la presente relación contractual entre BELENDER y el Usuario."),V.ɵɵelementEnd(),V.ɵɵelementStart(108,"h2"),V.ɵɵtext(109,"10.MISCELÁNEA"),V.ɵɵelementEnd(),V.ɵɵelementStart(110,"p"),V.ɵɵtext(111,"En el caso de que cualquiera de las previsiones de estos Términos y Condiciones fuera considerada en todo o en parte contraria a la Ley o inejecutable, quedará eliminada de los mismos y, si ello fuera posible, se sustituirá por otra estipulación con similar efecto a la anulada, continuando en todo caso la validez del contrato en sus estipulaciones restantes, que no se verán afectadas por la nulidad parcial."),V.ɵɵelementEnd(),V.ɵɵelementStart(112,"p"),V.ɵɵtext(113,"Los presentes Términos y Condiciones están redactados en español, sin perjuicio de que se puedan traducir bajo determinadas condiciones a otros idiomas, como el inglés. Sin perjuicio de lo anterior, en caso de duda o conflicto entre la redacción de los Términos y Condiciones en la versión española y cualquier otro idioma, prevalecerá siempre la versión española."),V.ɵɵelementEnd(),V.ɵɵelementStart(114,"p"),V.ɵɵtext(115,"BELENDER se reserva el derecho a modificar la presentación, configuración y contenido de los presentes Términos y Condiciones, así como de la Plataforma, y/o las condiciones requeridas para su acceso y/o utilización, previa notificación por escrito a los Usuarios. El acceso y utilización de los contenidos y servicios tras la entrada en vigor de sus modificaciones o los cambios en las condiciones suponen la aceptación de las mismas."),V.ɵɵelementEnd(),V.ɵɵelementStart(116,"p"),V.ɵɵtext(117,"Los presentes Términos y Condiciones se regirán por la legislación española. En caso de litigio sobre la interpretación, ejecución o validez de estos Términos y Condiciones, serán competentes los Juzgados y Tribunales del territorio de residencia del Usuario."),V.ɵɵelementEnd(),V.ɵɵelementStart(118,"p"),V.ɵɵtext(119,"En virtud de lo dispuesto en el Reglamento (UE) nº 524/2013 del Parlamento Europeo y del Consejo, de 21 de mayo de 2013, relativo a la resolución de litigios en línea en materia de consumo, BELENDER también le informa que, en caso de controversia, los Usuarios residente de la Unión Europea podrán acudir a la “Plataforma Online de Resolución de Conflictos” que ha desarrollado la Comisión Europea, con el fin de intentar resolver extrajudicialmente cualquier controversia que se derive de la prestación de servicios por parte de BELENDER."),V.ɵɵelementEnd(),V.ɵɵelementStart(120,"p"),V.ɵɵtext(121,"Para a acceder a la “Plataforma Online de Resolución de Conflictos” puede hacerlo a través del siguiente enlace: http://ec.europa.eu/consumers/odr/ "),V.ɵɵelementEnd(),V.ɵɵelementStart(122,"div",3)(123,"button",4),V.ɵɵlistener("click",(function(){return t.openModal()})),V.ɵɵtext(124,"Firmar con certificado"),V.ɵɵelementEnd()()()()),2&e&&(V.ɵɵadvance(123),V.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW,p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.pdf-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-weight:700;font-size:17px!important;line-height:18px!important;margin-bottom:15px}.pdf-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:700;font-size:15px!important;margin-top:20px}"]}),e})();function Ce(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",7),V.ɵɵelement(1,"img",8),V.ɵɵelementEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("src",e.data.styles.logoUrl,V.ɵɵsanitizeUrl)}}function Se(e,t){if(1&e&&V.ɵɵelement(0,"belender-loading-step",18),2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("status",null==e.solicitud?null:e.solicitud.status_code)("data",e.data)}}function Me(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-form-step",19),V.ɵɵlistener("goToTerms",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext(3);return V.ɵɵresetView(t.gotoTermsAndConditions())}))("goToTermsCertificate",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext(3);return V.ɵɵresetView(t.gotoTermsAndConditionsCertificate())}))("nextStep",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.gotoPassword(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Ie(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-password-step",20),V.ɵɵlistener("nextStep",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.sendPassword(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function ke(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-sign-cert-step",20),V.ɵɵlistener("nextStep",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.sendCert(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Ee(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-otp-step",21),V.ɵɵlistener("resendOTP",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext(3);return V.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.requestOTP(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Te(e,t){if(1&e&&V.ɵɵelement(0,"belender-success-step",22),2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)}}function Pe(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-fail-step",23),V.ɵɵlistener("retry",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.retryRequest(t))}))("newRequest",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.newRequest(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Oe(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"belender-abandoned-step",24),V.ɵɵlistener("retry",(function(t){V.ɵɵrestoreView(e);const n=V.ɵɵnextContext(3);return V.ɵɵresetView(n.retryRequest(t))})),V.ɵɵelementEnd()}if(2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("solicitud",e.solicitud)("data",e.data)("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)}}function De(e,t){if(1&e&&V.ɵɵelement(0,"belender-no-service-step",25),2&e){const e=V.ɵɵnextContext(3);V.ɵɵproperty("texts",null==e.data[e.flowName]?null:e.data[e.flowName].texts)("data",e.data)}}function Le(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",26)(1,"div",27)(2,"h1",28),V.ɵɵtext(3,"No existe la solicitud"),V.ɵɵelementEnd()(),V.ɵɵelementStart(4,"div",29),V.ɵɵtext(5,"No existen solicitudes activas con el código requerido"),V.ɵɵelementEnd()()),2&e){const e=V.ɵɵnextContext(3);V.ɵɵadvance(4),V.ɵɵstyleProp("color",e.data.styles.colors.text)}}function Ae(e,t){if(1&e&&(V.ɵɵelementContainerStart(0),V.ɵɵtemplate(1,Se,1,2,"belender-loading-step",9),V.ɵɵtemplate(2,Me,1,3,"belender-form-step",10),V.ɵɵtemplate(3,Ie,1,3,"belender-password-step",11),V.ɵɵtemplate(4,ke,1,3,"belender-sign-cert-step",11),V.ɵɵtemplate(5,Ee,1,3,"belender-otp-step",12),V.ɵɵtemplate(6,Te,1,2,"belender-success-step",13),V.ɵɵtemplate(7,Pe,1,3,"belender-fail-step",14),V.ɵɵtemplate(8,Oe,1,3,"belender-abandoned-step",15),V.ɵɵtemplate(9,De,1,2,"belender-no-service-step",16),V.ɵɵtemplate(10,Le,6,2,"div",17),V.ɵɵelementContainerEnd()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("ngIf","loading"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","form"==e.getStatus()&&!e.loading),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","password"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","sign"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","otp"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","success"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","failed"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","abandoned"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","no-service"==e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf","no-exist"==e.getStatus())}}function Ne(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",30),V.ɵɵelement(1,"mat-progress-spinner",31),V.ɵɵelementStart(2,"p",32),V.ɵɵtext(3),V.ɵɵelementEnd()()),2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(1),V.ɵɵproperty("value",e.spinnerValue)("mode",e.spinnerMode),V.ɵɵadvance(2),V.ɵɵtextInterpolate(e.loading)}}function Re(e,t){if(1&e){const e=V.ɵɵgetCurrentView();V.ɵɵelementStart(0,"div",33)(1,"div",26)(2,"div",34),V.ɵɵtext(3,"Error!"),V.ɵɵelementEnd(),V.ɵɵelement(4,"div",35),V.ɵɵelementEnd(),V.ɵɵelementStart(5,"div",36)(6,"button",37),V.ɵɵlistener("click",(function(){V.ɵɵrestoreView(e);const t=V.ɵɵnextContext(2);return V.ɵɵresetView(t.error=!1)})),V.ɵɵtext(7,"Ingresar manualmente"),V.ɵɵelementEnd()()()}if(2&e){const e=V.ɵɵnextContext(2);V.ɵɵadvance(4),V.ɵɵstyleProp("color",e.data.styles.colors.text),V.ɵɵproperty("innerHTML",e.error,V.ɵɵsanitizeHtml)}}function je(e,t){if(1&e&&(V.ɵɵelementStart(0,"div",2)(1,"div",3),V.ɵɵtemplate(2,Ce,2,1,"div",4),V.ɵɵtemplate(3,Ae,11,10,"ng-container",1),V.ɵɵtemplate(4,Ne,4,3,"div",5),V.ɵɵtemplate(5,Re,8,3,"div",6),V.ɵɵelementEnd()()),2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(1),V.ɵɵstyleProp("background",e.data.styles.colors.background),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",e.data.styles.withLogo&&"loading"!=e.getStatus()),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.error),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",e.loading&&!e.error),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",!e.loading&&e.error)}}function Fe(e,t){if(1&e&&(V.ɵɵelementContainerStart(0),V.ɵɵelementStart(1,"div",38),V.ɵɵtext(2),V.ɵɵelementEnd(),V.ɵɵelementContainerEnd()),2&e){const e=V.ɵɵnextContext();V.ɵɵadvance(2),V.ɵɵtextInterpolate1("TestMode ",e.testMode?"ON":"OFF","")}}let qe=class{constructor(e,t,n,i,r,s,o,a){this.cd=e,this.Activatedroute=t,this.utils=n,this.solicitudesService=i,this.customizationService=r,this.notis=s,this.webhooksService=o,this.dialog=a,this.data=null,this.disableActions=!1,this.step="created",this.waitingTime=15,this.loading=null,this.error=!1,this.spinnerMode="indeterminate",this.spinnerValue=0,this.subscribed=!1,this.testMode=!1,this.cntrlIsPressed=!1,this.shiftlIsPressed=!1,this.skipCreationOfRequest=!1,this.autoAcceptTerms=!1,this.flowName="ClientCertificate"}ngOnInit(){const e=this;this.loading="Obteniendo información de la solicitud",this.Activatedroute.params.subscribe((e=>{this.utils.setLoading(!1),e&&e.idUser?(this.userId=e.idUser,this.setInitialData(this.userId)):this.loading=!1,e&&e.packID&&(this.packId=e.packID)}),(e=>{this.loading=!1})),"pro"!=F.N.env&&(j(document).keydown((function(t){16==t.which&&(this.shiftlIsPressed=!0),17==t.which&&(this.cntrlIsPressed=!0),84==t.which&&this.cntrlIsPressed&&this.shiftlIsPressed&&(e.testMode=!e.testMode,e.cd.markForCheck())})),j(document).keyup((function(e){16==e.which&&(this.shiftlIsPressed=!1),16==e.which&&(this.cntrlIsPressed=!1)})))}ngOnDestroy(){}sendMessageToParent(e){window.top.postMessage(e,"*")}setInitialData(e){this.customizationService.getCustomization(e).then((e=>{e&&(this.data=e,this.financiadorID=e.funder_id||"",this.validateRequestIdInUrl(),this.cd.markForCheck()),this.loading=!1}),(e=>{console.error(e),this.loading=!1}))}validateRequestIdInUrl(){this.Activatedroute.queryParams.subscribe((e=>{e&&e.acceptTerms&&(this.autoAcceptTerms=!0),e&&e.request_id?(this.requestID=e.request_id,this.setFormFromVcCode(e.request_id)):this.loading=!1}),(e=>{this.loading=!1}))}setFormFromVcCode(e){var t=this;return(0,D.Z)((function*(){t.loading="Obteniendo datos de la solicitud...",t.solicitudesService.getSolicitudByCode(e).then((e=>{e&&e.data?(t.solicitud=e.data,t.setSubscriptionOfRequest(),t.loading=!1,t.skipCreationOfRequest=!0,t.autoAcceptTerms&&t.gotoPassword()):t.loading=!1})).catch((e=>{t.loading=!1}))}))()}setSubscriptionOfRequest(){if(this.socket)return;let e="wss://notifications.dev.belender.net";"qa"==F.N.env&&(e="wss://notifications.qa.belender.net"),"pro"==F.N.env&&(e="wss://notifications.belender.net"),F.N.notificationsBaseUrl&&(e=F.N.notificationsBaseUrl),this.socket=new WebSocket(`${e}?requests_id=${this.requestID}&user_id=${this.userId}`);var t=this;this.socket.onopen=function(e){console.log("Conexión establecida")},this.socket.onmessage=function(e){let n=JSON.parse(e.data);console.warn(n),t.handlePusherNotification(n)},this.socket.onerror=function(e){console.log("WebSocket Error: "+e),console.error(e),t.setSubscriptionOfRequestOld()},this.socket.onclose=function(e){console.log("Conexión cerrada"),t.setSubscriptionOfRequestOld()}}handlePusherNotification(e){this.dataFromFirebase=e,this.dataFromFirebase&&this.dataFromFirebase.status_code&&(this.solicitud.status_code=this.dataFromFirebase.status_code,"invalid_otp_seguridad_social"==this.solicitud.status_code&&this.showAlert("Error!","Código inválido. Por favor, introduzca el código recibido por SMS"),"terms_and_conditions"!=this.solicitud.status_code&&setTimeout((()=>{this.loading=!1,this.cd.markForCheck()}),500))}resendOTP(e){let t={request_id:this.requestID,user_id:this.userId};this.loading="Reenviando OTP...",this.setSubscriptionOfRequest(),this.solicitudesService.resendOTP(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}gotoTerms(e){this.loading="Enviando datos..",e.package_id=this.packId,e.user_id=this.userId,this.testMode?setTimeout((()=>{this.solicitud=new R.l,this.solicitud.status_code="waiting_otp_seguridad_social",this.loading=!1}),4e3):this.skipCreationOfRequest?(this.gotoPassword(),this.setSubscriptionOfRequest()):this.solicitudesService.addSolicitud(e,this.packId,this.userId).then((t=>{t&&t.status&&"error"==t.status?(this.solicitud=e,t.message&&(400==t.code?"Birthdate incorrect"==t.message?(this.solicitud.status_code="form",this.showAlert("Error!","Fecha de nacimiento incorrecta")):(this.solicitud.status_code="no_service",this.loading=!1):(this.solicitud.status_code="form",this.showAlert("Error!",t.message)))):t&&t.status&&"success"==t.status?(this.requestID=t.data.request_id,this.solicitud=t.data,this.sendMessageToParent(t.data),this.gotoPassword()):this.showAlert("Error!","Error desconocido: "+t)})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}setSubscriptionOfRequestOld(){!this.financiadorID||!this.userId||!this.requestID||this.subscribed||(this.subscribed=!0,this.webhooksService.bindRequestChanges(this.financiadorID,this.userId,this.requestID),this.webhooksService.subscribeRequestChanges().subscribe((e=>{e&&this.handlePusherNotification(e)}),(e=>{this.loading=!1})))}sendNewData(e){this.loading="Enviando información..",this.solicitudesService.fixData(this.requestID,e).then((e=>{e.status&&"error"==e.status?e.message&&(this.showAlert("Error!",e),this.loading=!1):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.initWaitingForResponse("Validando nuevos datos, espere por favor.."),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}showAlert(e,t){this.loading=!1,this.notis.showAlert(e,t)}gotoPassword(e){this.loading="Iniciando el proceso de emisión de certificado..",setTimeout((()=>{this.solicitud=new R.l,this.loading=!1,this.solicitud.status_code="waiting_password"}),2e3)}requestOTP(e){this.loading="Enviando información..",setTimeout((()=>{this.solicitud=new R.l,this.solicitud.status_code="waiting_password",this.loading=!1}),2e3)}sendPassword(e){this.loading="Enviando información..",setTimeout((()=>{this.solicitud.status_code="sign_cert",this.loading=!1}),2e3)}initWaitingForResponse(e){this.loading=e||"Validando información, espere por favor..",setTimeout((()=>{this.loading&&this.askToBack()}),1e4)}askToBack(){this.solicitudesService.getSolicitudByCode(this.requestID).then((e=>{e&&e.data?(this.solicitud=e.data,this.loading=!1):this.loading=!1})).catch((e=>{this.loading=!1}))}gotoErrorPhone(){}setRequestStatus(e){this.solicitud.status_code=e}retryRequest(e){let t={request_id:e,user_id:this.userId};this.loading="Reintentando enviar la solicitud...",this.setSubscriptionOfRequest(),this.solicitudesService.retryRequest(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}sendCert(e){this.loading="Enviando certificado, espere por favor..",setTimeout((()=>{this.solicitud.status_code="all_documents_downloaded",this.loading=!1}),2e3)}newRequest(e){this.solicitud.status_code="created"}getStatus(){return!this.solicitud||this.solicitud&&("created"==this.solicitud.status_code||"form"==this.solicitud.status_code||"terms_and_conditions"==this.solicitud.status_code)?"form":this.solicitud&&("waiting_login_seguridad_social"==this.solicitud.status_code||"qa"!=F.N.env&&"saved_otp"==this.solicitud.status_code)?(this.loading="Estamos procesando su solicitud. Espere un momento por favor","loading"):!this.solicitud||"waiting_otp_seguridad_social"!=this.solicitud.status_code&&"invalid_otp_seguridad_social"!=this.solicitud.status_code?this.solicitud&&"waiting_password"==this.solicitud.status_code?"password":this.solicitud&&"sign_cert"==this.solicitud.status_code?"sign":!this.solicitud||"abandoned_after_bad_phone"!=this.solicitud.status_code&&"abandoned_after_invalid_otp_seguridad_social"!=this.solicitud.status_code&&"abandoned_after_waiting_otp_seguridad_social"!=this.solicitud.status_code?!this.solicitud||"all_documents_downloaded"!=this.solicitud.status_code&&"partial_documents_downloaded"!=this.solicitud.status_code&&"waiting_documents"!=this.solicitud.status_code?!this.solicitud||"bad_phone"!=this.solicitud.status_code&&"phone_not_exist_otp"!=this.solicitud.status_code?!this.solicitud||"failed_with_retry"!=this.solicitud.status_code&&"failed_without_retry"!=this.solicitud.status_code&&"failed_documents_downloaded"!=this.solicitud.status_code?this.solicitud&&"no_service"==this.solicitud.status_code?"no-service":"no-exist":"failed":"error-data":this.data.config&&this.data.config.infiniteLoopInCompleted?"loading":"success":"abandoned":"otp"}sendRetry(){}gotoTermsAndConditions(){this.dialog.open(Y.L,{panelClass:"fullscreen-dialog",data:{flow:"presencial"}})}gotoTermsAndConditionsCertificate(){this.dialog.open(q.v,{panelClass:"fullscreen-dialog",data:{flow:"presencial"}})}};qe.ɵfac=function(e){return new(e||qe)(V.ɵɵdirectiveInject(V.ChangeDetectorRef),V.ɵɵdirectiveInject(P.gz),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(C.w),V.ɵɵdirectiveInject(I.T),V.ɵɵdirectiveInject(x.t),V.ɵɵdirectiveInject(z.uw))},qe.ɵcmp=V.ɵɵdefineComponent({type:qe,selectors:[["belender-widget-client-cert"]],inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud"},features:[V.ɵɵProvidersFeature([{provide:A.o2,useValue:{appearance:"standard"}}])],decls:2,vars:2,consts:[["class","h-full widget-belender",4,"ngIf"],[4,"ngIf"],[1,"h-full","widget-belender"],[1,"h-full","w-full","flex-auto","p-0","md:p-3"],["class","img-wrapper p-6 flex justify-center items-center",4,"ngIf"],["class","loading-wrapper animated fadeIn",4,"ngIf"],["class","animated fadeInRight",4,"ngIf"],[1,"img-wrapper","p-6","flex","justify-center","items-center"],["alt","",1,"img-card",3,"src"],[3,"status","data",4,"ngIf"],[3,"data","texts","solicitud","goToTerms","goToTermsCertificate","nextStep",4,"ngIf"],[3,"data","texts","solicitud","nextStep",4,"ngIf"],[3,"data","texts","solicitud","resendOTP","errorPhone","nextStep",4,"ngIf"],[3,"data","texts",4,"ngIf"],[3,"data","texts","solicitud","retry","newRequest",4,"ngIf"],[3,"solicitud","data","texts","retry",4,"ngIf"],[3,"texts","data",4,"ngIf"],["class","px-6 py-4 flex flex-col",4,"ngIf"],[3,"status","data"],[3,"data","texts","solicitud","goToTerms","goToTermsCertificate","nextStep"],[3,"data","texts","solicitud","nextStep"],[3,"data","texts","solicitud","resendOTP","errorPhone","nextStep"],[3,"data","texts"],[3,"data","texts","solicitud","retry","newRequest"],[3,"solicitud","data","texts","retry"],[3,"texts","data"],[1,"px-6","py-4","flex","flex-col"],[1,"title","m-0"],[1,"text-red-500"],[1,"subheading-1","pt-4"],[1,"loading-wrapper","animated","fadeIn"],["color","accent","diameter","40",1,"spinner",3,"value","mode"],[1,"mt-6","text-center","text-black",2,"color","black !important"],[1,"animated","fadeInRight"],[1,"text-red-500","title","m-0"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"text-blue-500","bg-blue-50","px-8",3,"click"],[1,"test-mode","px-10","py-2","bg-blue-500/10","text-blue-500","border-blue-500","border","rounded-md"]],template:function(e,t){1&e&&(V.ɵɵtemplate(0,je,6,6,"div",0),V.ɵɵtemplate(1,Fe,3,1,"ng-container",1)),2&e&&(V.ɵɵproperty("ngIf",t.data),V.ɵɵadvance(1),V.ɵɵproperty("ngIf",t.testMode))},dependencies:[i.O5,u.lW,b.Ou,J,te,re,ae,ce,de,ue,ye,we],styles:[".widget-belender[_ngcontent-%COMP%]{position:relative}.widget-belender[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{min-height:360px}.widget-belender[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between}.badge-table[_ngcontent-%COMP%]{max-width:140px!important;border-radius:5px!important;-webkit-border-radius:5px!important;-moz-border-radius:5px!important;-ms-border-radius:5px!important;-o-border-radius:5px!important}.btn-refresh[_ngcontent-%COMP%]{transform:translateY(2px)}.request-data-info[_ngcontent-%COMP%]{transition:all .5s ease!important}.img-card[_ngcontent-%COMP%]{max-width:240px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.loading-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:absolute;top:0;left:0;background:#fff}.mat-flat-button.mat-primary.mat-button-disabled[_ngcontent-%COMP%]{background:red!important}button.mat-flat-button.text-green-500.bg-green-light.mat-button-disabled[_ngcontent-%COMP%]{background:orange!important}.test-mode[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px}"]}),qe=(0,L.gn)([(0,N.c)()],qe);const Ye=[{path:":idUser",component:qe},{path:":idUser/:packID",component:qe}];let Ve=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=V.ɵɵdefineNgModule({type:e}),e.ɵinj=V.ɵɵdefineInjector({imports:[P.Bz.forChild(Ye),P.Bz,O.d8]}),e})();var He=n(6981),ze=n(3848),Be=n(1129),Ue=n(969);let We=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=V.ɵɵdefineNgModule({type:e}),e.ɵinj=V.ɵɵdefineInjector({providers:[_.M,y.o,C.w,x.t,I.T,T.t,{provide:M.Ad,useValue:"es-ES"}],imports:[Ve,i.ez,r.G,s.J,o.TU,a.p0,l.JX,c.p9,d.Ps,u.ot,h.Tx,w.c,p.FormsModule,m.AV,p.ReactiveFormsModule,f.LD,g.vV,v.a,b.Cq,S.FA,M.XK,k.T5,E.Fk,He.x,ze.Nh,c.p9,Be.n,Ue.O]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[852],{7852:(e,t,n)=>{n.r(t),n.d(t,{WidgetBoxedLayoutModule:()=>H});var i=n(6895),r=n(9299),s=n(6e3),o=n(5469),a=n(4650);const l=[{path:"",component:o.B,children:[{path:"sms",loadChildren:()=>Promise.resolve().then(n.bind(n,3006)).then((e=>e.SmsModule))},{path:"SMS",loadChildren:()=>Promise.resolve().then(n.bind(n,3006)).then((e=>e.SmsModule))},{path:"clavepin",loadChildren:()=>Promise.resolve().then(n.bind(n,1916)).then((e=>e.PinModule))},{path:"ClavePIN",loadChildren:()=>Promise.resolve().then(n.bind(n,1916)).then((e=>e.PinModule))},{path:"ClavePin",loadChildren:()=>Promise.resolve().then(n.bind(n,1916)).then((e=>e.PinModule))},{path:"chave-movel",loadChildren:()=>n.e(508).then(n.bind(n,5508)).then((e=>e.ChaveMovelModule))},{path:"chavemovel",loadChildren:()=>n.e(508).then(n.bind(n,5508)).then((e=>e.ChaveMovelModule))},{path:"SmsPin",loadChildren:()=>n.e(94).then(n.bind(n,2094)).then((e=>e.SmsPinModule))},{path:"smspin",loadChildren:()=>n.e(94).then(n.bind(n,2094)).then((e=>e.SmsPinModule))},{path:"VideoId",loadChildren:()=>Promise.resolve().then(n.bind(n,1724)).then((e=>e.VideoIdModule))},{path:"videoid",loadChildren:()=>Promise.resolve().then(n.bind(n,1724)).then((e=>e.VideoIdModule))},{path:"Presencial",loadChildren:()=>Promise.resolve().then(n.bind(n,8526)).then((e=>e.PersonalModule))},{path:"presencial",loadChildren:()=>Promise.resolve().then(n.bind(n,8526)).then((e=>e.PersonalModule))},{path:"knownclient",loadChildren:()=>Promise.resolve().then(n.bind(n,8526)).then((e=>e.PersonalModule))},{path:"digital-power",loadChildren:()=>n.e(883).then(n.bind(n,883)).then((e=>e.PowerModule))},{path:"digitalpower",loadChildren:()=>n.e(883).then(n.bind(n,883)).then((e=>e.PowerModule))},{path:"client-cert",loadChildren:()=>n.e(281).then(n.bind(n,6281)).then((e=>e.ClientCertModule))},{path:"clientcertificate",loadChildren:()=>n.e(163).then(n.bind(n,4163)).then((e=>e.ClientCertModule))},{path:"client-certificate",redirectTo:"clientcertificate"},{path:"client-cert-mock",loadChildren:()=>n.e(822).then(n.bind(n,3822)).then((e=>e.ClientCertModule))},{path:"poder-digital",loadChildren:()=>n.e(883).then(n.bind(n,883)).then((e=>e.PowerModule))},{path:"manual-step",loadChildren:()=>Promise.all([n.e(592),n.e(452)]).then(n.bind(n,6452)).then((e=>e.ManualModule))},{path:"manual",loadChildren:()=>Promise.all([n.e(592),n.e(378)]).then(n.bind(n,2378)).then((e=>e.ManualModule))}]}];let c=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a.ɵɵdefineNgModule({type:e}),e.ɵinj=a.ɵɵdefineInjector({imports:[r.Bz.forChild(l),r.Bz,s.d8]}),e})();var d=n(6383),u=n(4006),h=n(9101),p=n(811),m=n(6709),f=n(3238),g=n(9602),_=n(7392),v=n(4144),y=n(1561),b=n(8739),x=n(1572),w=n(1948),C=n(4385),S=n(6308),M=n(6257),I=n(7155),k=n(266),E=n(5592),T=n(4246),P=n(8526),O=n(1916),D=n(3006),L=n(1724),A=n(6981),N=n(9391),R=n(7367),j=n(5895),F=n(9617),q=n(5601),Y=n(182),V=n(3798);let H=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a.ɵɵdefineNgModule({type:e}),e.ɵinj=a.ɵɵdefineInjector({providers:[q.M,N.o,R.w,Y.t,F.U,j.T,T.t,{provide:f.Ad,useValue:"es-ES"}],imports:[i.ez,c,d.G,E.J,V.a,D.SmsModule,O.PinModule,L.VideoIdModule,P.PersonalModule,b.TU,I.p0,S.JX,m.p9,_.Ps,h.ot,y.Tx,v.c,u.FormsModule,k.AV,u.ReactiveFormsModule,C.LD,p.vV,V.a,x.Cq,g.FA,f.XK,M.T5,w.Fk,A.x]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[883],{883:(e,t,n)=>{n.r(t),n.d(t,{PowerModule:()=>Qe});var i=n(6895),r=n(6383),s=n(5592),o=n(8739),a=n(7155),l=n(6308),c=n(6709),d=n(7392),u=n(9101),h=n(1561),p=n(4006),m=n(266),f=n(4385),g=n(811),_=n(5601),v=n(3798),y=n(9391),b=n(1572),x=n(182),w=n(4144),C=n(7367),S=n(9602),M=n(3238),I=n(5895),k=n(6257),E=n(1948),T=n(4246),P=n(9299),O=n(6e3),D=n(5861),L=n(7582),A=n(9549),N=n(9933),R=n(5762),j=n(8259),F=n(2340),q=n(6830),Y=n(4650),V=n(5089),H=n(5412),z=n(8008),B=n(3364),U=n(1760),W=n(4302),$=n(833);function G(e,t){if(1&e&&(Y.ɵɵelementStart(0,"span"),Y.ɵɵtext(1),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}function Z(e,t){if(1&e&&(Y.ɵɵelementStart(0,"span"),Y.ɵɵtext(1),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵtextInterpolate2("¿No has recibido el código en el teléfono acabado en ",e.lastNumberPhone,"? Solicítalo de nuevo en ",e.secsCount," segundos")}}function K(e,t){if(1&e&&(Y.ɵɵelementStart(0,"span"),Y.ɵɵtext(1),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵtextInterpolate1("¿No has recibido el código en tu teléfono? Solicítalo de nuevo en ",e.secsCount," segundos")}}const Q=function(e,t,n){return{color:e,border:t,background:n}};function X(e,t){if(1&e&&(Y.ɵɵelementContainerStart(0),Y.ɵɵelementStart(1,"small",11),Y.ɵɵtemplate(2,G,2,1,"span",5),Y.ɵɵtemplate(3,Z,2,2,"span",5),Y.ɵɵtemplate(4,K,2,1,"span",5),Y.ɵɵelementEnd(),Y.ɵɵelementContainerEnd()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵproperty("ngStyle",Y.ɵɵpureFunction3(4,Q,e.data.styles.colors.accentColor,"1px solid "+e.data.styles.colors.accentColor,e.data.styles.colors.accentBgColor)),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!e.lastNumberPhone),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",e.lastNumberPhone&&!e.data.config.noRetryInBadPhone),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",e.lastNumberPhone&&e.data.config.noRetryInBadPhone)}}function J(e,t){1&e&&(Y.ɵɵelementStart(0,"span"),Y.ɵɵtext(1," ¿No has recibido el código en tu teléfono? "),Y.ɵɵelementEnd())}function ee(e,t){if(1&e&&(Y.ɵɵelementStart(0,"span"),Y.ɵɵtext(1),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵtextInterpolate1(" ¿No has recibido el código en el teléfono acabado en ",e.lastNumberPhone,"? ")}}function te(e,t){1&e&&(Y.ɵɵelementStart(0,"span"),Y.ɵɵtext(1," ¿No has recibido el código en el teléfono? "),Y.ɵɵelementEnd())}const ne=function(e,t){return{color:e,background:t}};function ie(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementContainerStart(0),Y.ɵɵelementStart(1,"small",11),Y.ɵɵtemplate(2,J,2,0,"span",5),Y.ɵɵtemplate(3,ee,2,1,"span",5),Y.ɵɵtemplate(4,te,2,0,"span",5),Y.ɵɵelementStart(5,"a",12),Y.ɵɵlistener("click",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext();return Y.ɵɵresetView(t.resendOTP())})),Y.ɵɵtext(6,"Reenviar"),Y.ɵɵelementEnd()(),Y.ɵɵelementContainerEnd()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵproperty("ngStyle",Y.ɵɵpureFunction3(5,Q,e.data.styles.colors.dangerColor,"1px solid "+e.data.styles.colors.dangerColor,e.data.styles.colors.dangerBgColor)),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!e.lastNumberPhone),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",e.lastNumberPhone&&!e.data.config.noRetryInBadPhone),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",e.data.config.noRetryInBadPhone),Y.ɵɵadvance(1),Y.ɵɵproperty("ngStyle",Y.ɵɵpureFunction2(9,ne,e.data.styles.colors.dangerTextButtonColor,e.data.styles.colors.dangerColor))}}let re=(()=>{class e{constructor(e,t,n,i){this.fb=e,this.utils=t,this.solucitudesService=n,this.activeRoute=i,this.next=new Y.EventEmitter(null),this.errPhone=new Y.EventEmitter(null),this.resendO=new Y.EventEmitter(null),this.secsCount=60,this.lastNumberPhone="XXX"}ngOnInit(){this.form=this.fb.group({code1:[null,[p.Validators.required,p.Validators.maxLength(6),p.Validators.minLength(6)]]}),this.initSecsInterval(),this.activeRoute.queryParams.subscribe((e=>{e&&e.request_id&&(this.requestID=e.request_id)}),(e=>{console.error(e)})),this.solicitud&&this.solicitud.person_phone&&this.setPhone(this.solicitud.person_phone)}setPhone(e){let t="XXX";e&&(t=(""+e).slice(-3)),this.lastNumberPhone=t}initSecsInterval(){this.interv=setInterval((()=>{this.secsCount--,this.secsCount<=0&&this.finishSecsInterval()}),1e3)}finishSecsInterval(){this.interv&&clearInterval(this.interv)}nextStep(){let e={code:this.getCode()};this.next.emit(e)}getCode(){return this.form.get("code1").value}capturePasteEvent(e){return(0,D.Z)((function*(){}))()}errorStep(){this.errPhone.emit(!0)}setInputEvent(e){""!=e.target.value?j(e.target).next().focus():"Backspace"==e.code&&j(e.target).prev().focus()}resendOTP(){this.resendO.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(p.UntypedFormBuilder),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(_.M),Y.ɵɵdirectiveInject(P.gz))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-otp-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep",errPhone:"errorPhone",resendO:"resendOTP"},decls:17,vars:18,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"title","py-2"],[4,"ngIf"],[1,"flex","gap-2","items-center","justify-start","w-full","max-w-[200px]"],["appearance","outline",1,"w-full","flex-1"],["tabindex","1","maxlength","6","minlength","1","formControlName","code1","type","text","matInput","",3,"change","keyup"],[1,"flex","items-center","justify-end","gap-2","p-4"],["id","next-button","mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"],[1,"info-time","w-fit",3,"ngStyle"],[1,"ml-4",3,"ngStyle","click"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"form",0)(1,"div",1)(2,"div",2),Y.ɵɵtext(3," Introduce el código recibido por SMS "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(4,"div",3),Y.ɵɵtext(5," Has recibido un SMS procedente de EJEMPLO con un código de 6 dígitos. Por favor, introdúcelo a continuación. "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(6,"div",4),Y.ɵɵtemplate(7,X,5,8,"ng-container",5),Y.ɵɵtemplate(8,ie,7,12,"ng-container",5),Y.ɵɵelementEnd(),Y.ɵɵelementStart(9,"div",6)(10,"mat-form-field",7)(11,"mat-label"),Y.ɵɵtext(12," Código OTP "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(13,"input",8),Y.ɵɵlistener("change",(function(e){return t.capturePasteEvent(e)}))("keyup",(function(e){return t.setInputEvent(e)})),Y.ɵɵelementEnd()()()(),Y.ɵɵelementStart(14,"div",9)(15,"button",10),Y.ɵɵlistener("click",(function(){return t.nextStep()})),Y.ɵɵtext(16,"Siguiente"),Y.ɵɵelementEnd()()()),2&e&&(Y.ɵɵproperty("formGroup",t.form),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size","16px"),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.text)("font-size","14px"),Y.ɵɵadvance(3),Y.ɵɵproperty("ngIf",t.secsCount&&t.secsCount>0),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!t.secsCount||t.secsCount<=0),Y.ɵɵadvance(7),Y.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),Y.ɵɵproperty("disabled",t.form.invalid))},dependencies:[i.O5,i.PC,u.lW,A.KE,A.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();var se=n(3731);function oe(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",1),Y.ɵɵelement(1,"div",2)(2,"div",3),Y.ɵɵpipe(3,"safeHtml"),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size","16px"),Y.ɵɵproperty("innerHTML",e.texts.success.title,Y.ɵɵsanitizeHtml),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",e.data.styles.colors.text)("font-size","14px"),Y.ɵɵproperty("innerHTML",Y.ɵɵpipeBind1(3,10,e.texts.success.description||""),Y.ɵɵsanitizeHtml)}}let ae=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r}ngOnInit(){}save(){}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(p.UntypedFormBuilder),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(_.M),Y.ɵɵdirectiveInject(y.o),Y.ɵɵdirectiveInject(I.T))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-success-step"]],inputs:{data:"data",texts:"texts"},decls:1,vars:1,consts:[["class"," pt-4 pb-8 flex flex-col animated fadeIn",4,"ngIf"],[1,"pt-4","pb-8","flex","flex-col","animated","fadeIn"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&Y.ɵɵtemplate(0,oe,4,12,"div",0),2&e&&Y.ɵɵproperty("ngIf",!t.data.config.infiniteLoopInCompleted)},dependencies:[i.O5,se.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function le(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"div",5)(1,"button",6),Y.ɵɵlistener("click",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext();return Y.ɵɵresetView(t.retry())})),Y.ɵɵtext(2,"Intentarlo nuevamente"),Y.ɵɵelementEnd()()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}function ce(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"div",5)(1,"button",7),Y.ɵɵlistener("click",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext();return Y.ɵɵresetView(t.newRequest())})),Y.ɵɵtext(2,"Crear nueva solicitud"),Y.ɵɵelementEnd()()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}let de=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryOp=new Y.EventEmitter(null),this.newReq=new Y.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryOp.emit(this.solicitud.request_id)}newRequest(){this.newReq.emit(this.solicitud.request_id)}getIfRetryIsAllowed(){return"failed_with_retry"==this.solicitud}getIfNewRequestIsAllowed(){return"failed_documents_downloaded"==this.solicitud}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(p.UntypedFormBuilder),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(_.M),Y.ɵɵdirectiveInject(y.o),Y.ɵɵdirectiveInject(I.T))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-fail-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{retryOp:"retry",newReq:"newRequest"},decls:7,vars:8,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"text-red-500","title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],["class","flex items-center justify-end gap-2 p-4",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"div",0)(1,"div",1),Y.ɵɵelement(2,"div",2)(3,"div",3),Y.ɵɵpipe(4,"safeHtml"),Y.ɵɵelementEnd(),Y.ɵɵtemplate(5,le,3,6,"div",4),Y.ɵɵtemplate(6,ce,3,6,"div",4),Y.ɵɵelementEnd()),2&e&&(Y.ɵɵadvance(2),Y.ɵɵproperty("innerHTML",t.texts.fail.title,Y.ɵɵsanitizeHtml),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",t.data.styles.colors.text),Y.ɵɵproperty("innerHTML",Y.ɵɵpipeBind1(4,6,t.texts.fail.description),Y.ɵɵsanitizeHtml),Y.ɵɵadvance(2),Y.ɵɵproperty("ngIf",t.solicitud&&"failed_with_retry"==t.solicitud.status_code),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.solicitud&&"failed_documents_downloaded"==t.solicitud.status_code))},dependencies:[i.O5,u.lW,se.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();n(6866);var ue=n(1763);function he(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"div",12)(1,"belender-checkbox",8),Y.ɵɵlistener("changeCheckbox",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext();return Y.ɵɵresetView(n.setPower(t))})),Y.ɵɵtext(2," Consiento expresamente a la activación de un poder digital según las condiciones que pueden verse "),Y.ɵɵelementStart(3,"a",13),Y.ɵɵlistener("click",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext();return Y.ɵɵresetView(t.gotoPowerConditions())})),Y.ɵɵelementStart(4,"u"),Y.ɵɵtext(5,"aquí"),Y.ɵɵelementEnd()()()()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵproperty("color",e.data.styles.colors.title)}}const pe={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let me=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.next=new Y.EventEmitter(null),this.goPower=new Y.EventEmitter(null),this.acceptTerms=!1,this.activatePower=!1}ngOnInit(){}setPower(e){this.activatePower=e}gotoPowerConditions(){this.goPower.emit(!0)}nextStep(){this.next.emit(!0)}setTerms(e){this.acceptTerms=e}getIfValid(){return(this.solicitud&&this.solicitud.request_id?this.solicitud?.power_activate:this.data?.config.activatePower)?this.activatePower&&this.acceptTerms:this.acceptTerms}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(p.UntypedFormBuilder),Y.ɵɵdirectiveInject(V.F))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud",flowName:"flowName"},outputs:{next:"nextStep",goPower:"goToPower"},features:[Y.ɵɵProvidersFeature([{provide:M.sG,useValue:pe},{provide:Y.LOCALE_ID,useValue:"es-ES"}])],decls:136,vars:17,consts:[[1,"animated","fadeIn","fixed-content","px-2"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"mb-3","flex","flex-col","gap-2","pdf-text","bg-slate-100/60","px-4","py-6","max-h-[300px]","overflow-y-auto","rounded-md"],[1,"pl-4"],[1,"mb-3","flex","flex-col","md:flex-row","flex-wrap","gap-2","md:justify-between"],[1,"flex","justify-start","items-center","w-full","flex-100"],[3,"color","changeCheckbox"],["class","flex justify-between items-center w-full flex-100",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"],[1,"flex","justify-between","items-center","w-full","flex-100"],["target","_blank",1,"text-sm","hover:text-blue-500",3,"click"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"form",0)(1,"div",1)(2,"div",2),Y.ɵɵtext(3," Activar un poder digital "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(4,"div",3),Y.ɵɵtext(5," Vamos a emitir un poder digital a favor de EJEMPLO para poder obtener la documentación necesaria en solicitudes de financiación. Para poder actualizar tu información, siempre te volveremos a pedir el consentimiento. "),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(6,"div",4)(7,"h1"),Y.ɵɵtext(8,"OTORGAR UN PODER DIGITAL PARA OBTENER LA DOCUMENTACIÓN AUTOMÁTICAMENTE"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(9,"p"),Y.ɵɵtext(10,"Los presentes Términos y Condiciones (en adelante, los "),Y.ɵɵelementStart(11,"b"),Y.ɵɵtext(12,"“Términos y Condiciones”"),Y.ɵɵelementEnd(),Y.ɵɵtext(13," ) regulan, la descarga, acceso, navegación y uso de la plataforma propiedad de "),Y.ɵɵelementStart(14,"b"),Y.ɵɵtext(15,"BELENDER"),Y.ɵɵelementEnd(),Y.ɵɵtext(16," (en adelante, la "),Y.ɵɵelementStart(17,"b"),Y.ɵɵtext(18,"“Plataforma”"),Y.ɵɵelementEnd(),Y.ɵɵtext(19," ), la cual es titularidad de ALL4LEND S.L., con CIF B-67425769, con domicilio social en la Calle del Sol 19, Sant Andreu de la Barca, 08740, Barcelona, España. (en adelante, "),Y.ɵɵelementStart(20,"b"),Y.ɵɵtext(21,"“ BELENDER”"),Y.ɵɵelementEnd(),Y.ɵɵtext(22," ). Los presentes Términos y Condiciones están dirigidos exclusivamente a los Usuarios registrados en la Plataforma y, en su caso, podrán ser complementados con las Condiciones Particulares aplicables en cada caso según se fijen en la Plataforma, así como con el Aviso Legal, la Política de Privacidad y cualquier otro documento que incluya BELENDER en la Plataforma."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(23,"h2"),Y.ɵɵtext(24," 1. OBJETO DE LA PLATAFORMA Y DESCRIPCIÓN DEL SERVICIO"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(25,"p"),Y.ɵɵtext(26,"BELENDER es una plataforma digital basada en la prestación de un servicio a entidades financieras por medio del cual recopila información, documentación e informes de clientes consumidores (en adelante, los "),Y.ɵɵelementStart(27,"b"),Y.ɵɵtext(28,"“Usuarios”"),Y.ɵɵelementEnd(),Y.ɵɵtext(29," ) que solicitan un préstamo o crédito y que son necesarios para la tramitación de su concesión por la propia entidad financiera, y ello mediante el acceso por parte de BELENDER, en nombre y por cuenta del propio Usuario, a sus portales personales de la Seguridad Social y de la AEAT, de cara a que el Usuario se ahorre toda esta gestión burocrática de solicitud de documentación a las administraciones públicas, tramitándolo directamente BELENDER con la propia entidad financiera. Este servicio es gratuito para el Usuario."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(30,"p"),Y.ɵɵtext(31,"La operativa de esta Plataforma se basa en que FINANCIADOR redirige al Usuario solicitante de un préstamo a la herramienta web de BELENDER. Ya en entorno BELENDER, el Usuario facilita su información personal, otorga el consentimiento legal al uso de la herramienta automática que se pone a su disposición y facilita un código OTP que recibirá de la Seguridad Social y/o AEAT para hacer uso de su sistema Clave PIN o su teléfono informado en la Seguridad Social. "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(32,"p"),Y.ɵɵtext(33,"En concreto, los documentos que se descargan son:"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(34,"p"),Y.ɵɵtext(35," LISTAR DOCUMENTOS"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(36,"h2"),Y.ɵɵtext(37,"2. ACEPTACIÓN DE LOS TÉRMINOS Y CONDICIONES"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(38,"p"),Y.ɵɵtext(39,"Mediante la aceptación de los Términos y Condiciones, el Usuario se compromete a actuar en todo momento de conformidad con las disposiciones establecidas en el clausulado del presente texto legal. En caso de no estar de acuerdo con todo o parte de estos Términos y Condiciones, el Usuario debe abstenerse de utilizar la Plataforma y los servicios en ella ofrecidos por BELENDER."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(40,"p"),Y.ɵɵtext(41,"El servicio prestado en esta Plataforma se rige por: "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(42,"ul",5)(43,"li"),Y.ɵɵtext(44,"(i) estos Términos y Condiciones;"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(45,"li"),Y.ɵɵtext(46,"(ii) Condiciones Particulares que puedan publicarse en la Plataforma o que queden regulados y reflejados en el Sitio web;"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(47,"li"),Y.ɵɵtext(48,"(iii) las leyes vigentes y aplicables, regulaciones sectoriales y los criterios y prácticas generales."),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(49,"p"),Y.ɵɵtext(50,"Al aceptar los presentes Términos y Condiciones Generales, el usuario manifiesta ser mayor de 18 años y/o tener capacidad legal plena para entender y aceptar el contenido de estos Términos y Condiciones, eximiendo y manteniendo indemne a BELENDER de cualesquiera reclamaciones, denuncias o daños causados por el incumplimiento de esta condición, la cual se entiende como conditio sine qua non para el uso y aprovechamiento de los servicios ofrecidos por BELENDER en la misma. "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(51,"h2"),Y.ɵɵtext(52,"3. CESIÓN DE DATOS"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(53,"p"),Y.ɵɵtext(54," El solicitante, mediante su autorización expresa, accede a utilizar el servicio de Belender para que le facilite una herramienta que automatiza la obtención de la Documentación ante la administración u organismo públicos competentes. Una vez obtenida, Belender facilitará la Documentación a FINANCIADOR con la exclusiva finalidad de que ésta con la finalidad de que ésta pueda realizar la evaluación de la solvencia de la operación de financiación solicitada por el Usuario y se pueda poner en contacto con usted para asesorarle al respecto."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(55,"h2"),Y.ɵɵtext(56,"4. OBLIGACIONES DE BELENDER"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(57,"ul",5)(58,"li"),Y.ɵɵtext(59,"Mediante estos Términos y Condiciones, BELENDER se compromete con los Usuarios a proporcionarles el servicio de la forma en la que se describe en los presentes Términos y Condiciones."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(60,"li"),Y.ɵɵtext(61,"Tratar con diligencia y absoluta confidencialidad la información y documentación a la que tenga acceso con motivo de la prestación de los servicios y solo para la correcta prestación de los mismos."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(62,"li"),Y.ɵɵtext(63,"Poner todos los medios para resolver a la mayor diligencia cualquier incidencia técnica que pudiera producirse en la Plataforma durante la prestación de los servicios, si bien no garantiza su continua disponibilidad de la misma por motivos ajenos a su voluntad y medios."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(64,"li"),Y.ɵɵtext(65,"Emplear toda la atención y profesionalidad que se consideren razonables para la prestación del servicio que se ofrece."),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(66,"h2"),Y.ɵɵtext(67,"5. OBLIGACIONES DE LOS USUARIOS"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(68,"ul",5)(69,"li"),Y.ɵɵtext(70,"Para participar en la Plataforma y beneficiarse del servicio ofrecido por BELENDER, los Usuarios deben leer y aceptar los presentes Términos y Condiciones, así como cualquier otra condición particular que resultare de aplicación a la presente relación contractual por BELENDER."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(71,"li"),Y.ɵɵtext(72,"Los Usuarios son exclusivamente responsables de garantizar la veracidad de los datos personales proporcionados en el momento de solicitud del servicio a BELENDER, de forma que tanto la identificación, como la prestación de los servicios por parte de BELENDER a través de la Plataforma se pueda llevar a cabo de forma correcta."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(73,"li"),Y.ɵɵtext(74,"Los Usuarios se comprometen a uso diligente y correcto de los servicios ofrecidos por BELENDER, asumiendo toda la responsabilidad que pudiera derivarse de un mal uso de los mismos."),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(75,"h2"),Y.ɵɵtext(76," 6. CONFIDENCIALIDAD"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(77,"p"),Y.ɵɵtext(78,"BELENDER se obligan a guardar secreto y confidencialidad sobre cuantos datos del Usuario le sean facilitados por la entidad bancaria, así como también sobre cuanta información y documentación BELENDER tenga acceso con motivo de la prestación de los servicios objeto de los presentes Términos y Condiciones."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(79,"p"),Y.ɵɵtext(80,"En este sentido, toda la información y documentación compartida con BELENDER con el objetivo de ejecutar la prestación de servicios será considerada confidencial, especialmente los datos de carácter personal de los Usuarios."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(81,"h2"),Y.ɵɵtext(82,"7. PROTECCIÓN DE DATOS PERSONALES"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(83,"p"),Y.ɵɵtext(84,"Los Usuarios se comprometen a aceptar la Política de Privacidad con anterioridad a la prestación de los servicios por parte de BELENDER."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(85,"p"),Y.ɵɵtext(86,"All4Lend SL, con NIF B67425769 y domicilio en Barcelona, calle Sol 19 (0874), es el responsable del tratamiento de sus datos."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(87,"p"),Y.ɵɵtext(88,"Los Usuarios están informados de que sus datos de carácter personal se almacenan con arreglo a lo dispuesto en el Reglamento (UE) 2016/679, del Parlamento Europeo y del Consejo, de 27 de abril de 2016, relativo a las personas físicas en lo que respecta al tratamiento de datos personales y a la libre circulación de estos datos (en adelante, "),Y.ɵɵelementStart(89,"b"),Y.ɵɵtext(90,"RGPD"),Y.ɵɵelementEnd(),Y.ɵɵtext(91," ) y lo establecido en la normativa española vigente en esta materia."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(92,"p"),Y.ɵɵtext(93,"De acuerdo con lo establecido en el RGPD, los datos personales de los Usuarios serán incorporados a nuestro sistema de tratamiento de datos personales en base al consentimiento expreso del interesado y conservándose mientras se mantenga la misma, así como el tiempo necesario para el cumplimiento de responsabilidades por parte de BELENDER. "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(94,"p"),Y.ɵɵtext(95,"Tal y como se informa en el apartado 3, una vez recabados, sus datos serán cedidos a FINANCIADOR para la evaluación de la solvencia de la operación solicitada por usted. Una vez recibidos los datos por la Entidad financiera, la misma los tratará en calidad de responsable del tratamiento de los datos."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(96,"p"),Y.ɵɵtext(97,"BELENDER informa de la posibilidad que tienen los Usuarios de ejercer los siguientes derechos sobre sus datos personales: derecho de acceso, rectificación, supresión u olvido, limitación, oposición, portabilidad y a retirar el consentimiento prestado (sin perjuicio de la legitimad de los tratamientos realizados mientras se prestó dicho consentimiento), lo que también aparece definido y explicado con más detalle en la Política de Privacidad de BELENDER."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(98,"p"),Y.ɵɵtext(99,"Para ello podrá enviar un email a dpo@belender.eu acompañado de una fotocopia del DNI, o dirigir un escrito ejerciendo sus derechos a la siguiente dirección postal: la Calle del Sol 19, Sant Andreu de la Barca, 08740, Barcelona, España. Igualmente, los Usuarios podrán dirigir sus reclamaciones a la Agencia Española de Protección de Datos (https://www.aepd.es/es) si entienden que sus derechos no han sido atendidos correctamente."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(100,"h2"),Y.ɵɵtext(101,"8. PROPIEDAD INTELECTUAL E INDUSTRIAL"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(102,"p"),Y.ɵɵtext(103,"Mediante la aceptación de los presentes Términos y Condiciones, BELENDER manifiesta, y los Usuarios aceptan, que BELENDER es titular de todos los derechos de propiedad intelectual, industrial y cualesquiera otros existentes sobre la Plataforma, nombres de dominio y cualesquiera otros que se entiendan incluidos en la misma."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(104,"p"),Y.ɵɵtext(105,"En este sentido, BELENDER y los Usuarios manifiestan y reconocen que en ningún caso la prestación de los servicios aquí definidos se entenderá como una cesión, autorización, transferencia o licencia de los derechos de propiedad intelectual, industrial y de cualquier otro tipo de los que sea titular o cesionario BELENDER, siendo sólo posible, por parte de los Usuarios, la utilización de cualesquiera contenidos, marcas, nombres de dominio y signos distintivos en el más estricto ámbito del desarrollo de la presente relación contractual, y única y exclusivamente mientras dure la misma."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(106,"p"),Y.ɵɵtext(107,"Asimismo, los Usuarios tienen terminantemente prohibida la utilización, reproducción, copia, distribución, comunicación pública, transformación y/o cualquier otra explotación de, con carácter meramente enunciativo, pero no limitativo, el código fuente, código objeto, nombres de dominio, de parte o de totalidad de la Plataforma, así como, de forma meramente enunciativa, pero no limitativa, cualquier acto de ingeniería inversa respecto de la Plataforma y/o cualquiera de sus contenidos."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(108,"h2"),Y.ɵɵtext(109,"9. RESPONSABILIDAD"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(110,"p"),Y.ɵɵtext(111,"Los Usuarios mantendrán indemne a BELENDER en todo momento frente a cualquier reclamación, queja, sanción, multa o cualquier otra acción judicial y/o administrativa, pública y/o privada, que pueda suponer o haya supuesto un daño patrimonial o moral a BELENDER."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(112,"p"),Y.ɵɵtext(113,"En relación con lo anterior, los Usuarios responderán frente a BELENDER por cualquier incumplimiento o actuación realizada por los mismos contraviniendo los presentes Términos y Condiciones, la legislación aplicable en cualquier materia y cualesquiera condiciones particulares que pudieran existir y que sean aplicables a la presente relación contractual entre BELENDER y el Usuario."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(114,"h2"),Y.ɵɵtext(115,"10.MISCELÁNEA"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(116,"p"),Y.ɵɵtext(117,"En el caso de que cualquiera de las previsiones de estos Términos y Condiciones fuera considerada en todo o en parte contraria a la Ley o inejecutable, quedará eliminada de los mismos y, si ello fuera posible, se sustituirá por otra estipulación con similar efecto a la anulada, continuando en todo caso la validez del contrato en sus estipulaciones restantes, que no se verán afectadas por la nulidad parcial."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(118,"p"),Y.ɵɵtext(119,"Los presentes Términos y Condiciones están redactados en español, sin perjuicio de que se puedan traducir bajo determinadas condiciones a otros idiomas, como el inglés. Sin perjuicio de lo anterior, en caso de duda o conflicto entre la redacción de los Términos y Condiciones en la versión española y cualquier otro idioma, prevalecerá siempre la versión española."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(120,"p"),Y.ɵɵtext(121,"BELENDER se reserva el derecho a modificar la presentación, configuración y contenido de los presentes Términos y Condiciones, así como de la Plataforma, y/o las condiciones requeridas para su acceso y/o utilización, previa notificación por escrito a los Usuarios. El acceso y utilización de los contenidos y servicios tras la entrada en vigor de sus modificaciones o los cambios en las condiciones suponen la aceptación de las mismas."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(122,"p"),Y.ɵɵtext(123,"Los presentes Términos y Condiciones se regirán por la legislación española. En caso de litigio sobre la interpretación, ejecución o validez de estos Términos y Condiciones, serán competentes los Juzgados y Tribunales del territorio de residencia del Usuario."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(124,"p"),Y.ɵɵtext(125,"En virtud de lo dispuesto en el Reglamento (UE) nº 524/2013 del Parlamento Europeo y del Consejo, de 21 de mayo de 2013, relativo a la resolución de litigios en línea en materia de consumo, BELENDER también le informa que, en caso de controversia, los Usuarios residente de la Unión Europea podrán acudir a la “Plataforma Online de Resolución de Conflictos” que ha desarrollado la Comisión Europea, con el fin de intentar resolver extrajudicialmente cualquier controversia que se derive de la prestación de servicios por parte de BELENDER."),Y.ɵɵelementEnd(),Y.ɵɵelementStart(126,"p"),Y.ɵɵtext(127,"Para a acceder a la “Plataforma Online de Resolución de Conflictos” puede hacerlo a través del siguiente enlace: http://ec.europa.eu/consumers/odr/ "),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(128,"div",6)(129,"div",7)(130,"belender-checkbox",8),Y.ɵɵlistener("changeCheckbox",(function(e){return t.setTerms(e)})),Y.ɵɵtext(131," Acepto y firmo digitalmente el documento "),Y.ɵɵelementEnd()(),Y.ɵɵtemplate(132,he,6,1,"div",9),Y.ɵɵelementEnd(),Y.ɵɵelementStart(133,"div",10)(134,"button",11),Y.ɵɵlistener("click",(function(){return t.nextStep()})),Y.ɵɵtext(135,"Continuar"),Y.ɵɵelementEnd()()()),2&e&&(Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size","16px"),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.text)("font-size","14px"),Y.ɵɵadvance(126),Y.ɵɵproperty("color",t.data.styles.colors.title),Y.ɵɵadvance(2),Y.ɵɵproperty("ngIf",t.solicitud&&t.solicitud.request_id?null==t.solicitud?null:t.solicitud.power_activate:null==t.data?null:t.data.config.activatePower),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.getIfValid()?t.data.styles.colors.btnText:"")("background",t.getIfValid()?t.data.styles.colors.btnBg:"")("border-radius",t.data.styles.btnRound+"px"),Y.ɵɵproperty("disabled",!t.getIfValid()))},dependencies:[i.O5,u.lW,p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm,ue.b],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.dont-show-data[_ngcontent-%COMP%]{opacity:0!important;padding:0!important;overflow:hidden!important;height:0px!important;margin:0!important}.pdf-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-weight:700;font-size:17px!important;line-height:18px!important;margin-bottom:15px}.pdf-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:700;font-size:15px!important;margin-top:20px}"]}),e})(),fe=(()=>{class e{constructor(e,t,n){this.fb=e,this.utils=t,this.Activatedroute=n,this.next=new Y.EventEmitter(null),this.accept=!1}ngOnInit(){this.Activatedroute.queryParams.subscribe((e=>{this.setForm(e)}))}nextStep(){let e={phone:this.form.get("phone").value};this.next.emit(e)}setForm(e){this.form=this.fb.group({phone:["",p.Validators.required]}),this.solicitud&&"bad_phone"==this.solicitud.status_code&&this.form.controls.phone.markAsTouched()}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(p.UntypedFormBuilder),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(P.gz))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-error-form-step"]],inputs:{data:"data",flowName:"flowName",texts:"texts",mode:"mode",solicitud:"solicitud"},outputs:{next:"nextStep"},decls:13,vars:14,consts:[[1,"animated","fadeIn","fixed-content",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"mb-3","flex","flex-col","md:flex-row","flex-wrap","gap-2","md:justify-between"],["appearance","outline",1,"mb-4","w-full","flex-1"],["formControlName","phone","matInput",""],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"form",0)(1,"div",1)(2,"div",2),Y.ɵɵtext(3,"Error con el teléfono"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(4,"div",3),Y.ɵɵtext(5,"El teléfono ingresado no coincide con registrado en la Seguridad Social, por favor ingrese otro"),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(6,"div",4)(7,"mat-form-field",5)(8,"mat-label"),Y.ɵɵtext(9,"Teléfono"),Y.ɵɵelementEnd(),Y.ɵɵelement(10,"input",6),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(11,"div",7)(12,"button",8),Y.ɵɵlistener("click",(function(){return t.nextStep()})),Y.ɵɵelementEnd()()()),2&e&&(Y.ɵɵproperty("formGroup",t.form),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.text),Y.ɵɵadvance(8),Y.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),Y.ɵɵproperty("disabled",t.form.invalid))},dependencies:[u.lW,A.KE,A.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.FormGroupDirective,p.FormControlName],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();var ge=n(5145);let _e=(()=>{class e{constructor(e){this.utils=e,this.status="",this.loaderColor="red",this.label="Cargando datos.."}ngOnInit(){this.data.config&&this.data.config.infiniteLoopInCompleted?this.label="":ge.Z.forEach((e=>{e.text==this.status&&(this.label=e.label)}))}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(V.F))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-loading-step"]],inputs:{status:"status",loaderColor:"loaderColor",data:"data"},decls:3,vars:2,consts:[[1,"fixed-content","h-full","animated","fadeIn"],[1,"h-full","py-10","flex","flex-col","items-center","min-h-[300px]"],[3,"text","color"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"div",0)(1,"div",1),Y.ɵɵelement(2,"belender-spinner",2),Y.ɵɵelementEnd()()),2&e&&(Y.ɵɵadvance(2),Y.ɵɵproperty("text",t.label)("color",t.loaderColor))},dependencies:[z.O],styles:[".content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),ve=(()=>{class e{constructor(){}ngOnInit(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-no-service-step"]],inputs:{data:"data",texts:"texts"},decls:5,vars:10,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"form",0)(1,"div",1),Y.ɵɵelement(2,"div",2)(3,"div",3),Y.ɵɵpipe(4,"safeHtml"),Y.ɵɵelementEnd()()),2&e&&(Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),Y.ɵɵproperty("innerHTML",t.texts.noService.title,Y.ɵɵsanitizeHtml),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",t.data.styles.colors.text),Y.ɵɵproperty("innerHTML",Y.ɵɵpipeBind1(4,8,t.texts.noService.description),Y.ɵɵsanitizeHtml))},dependencies:[p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm,se.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),ye=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.retryOp=new Y.EventEmitter(null)}ngOnInit(){}save(){}retry(){this.retryOp.emit(this.solicitud.request_id)}getTextStatus(){switch(this.solicitud.status_code){case"abandoned_after_waiting_otp_seguridad_social":return"Abandonado después de esperar OTP de Seguridad Social";case"abandoned_after_invalid_otp_seguridad_social":return"Abandonado despues de OTP inválido en Seguridad Social";case"abandoned_after_invalid_otp_aeat":return"Abandonado despues de OTP inválido en AEAT";case"abandoned_after_waiting_otp_aeat":return"Abandonado después de esperar OTP de AEAT";default:return this.solicitud.status_code}}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(p.UntypedFormBuilder),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(_.M),Y.ɵɵdirectiveInject(y.o),Y.ɵɵdirectiveInject(I.T))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-abandoned-step"]],inputs:{solicitud:"solicitud",data:"data",texts:"texts"},outputs:{retryOp:"retry"},decls:10,vars:17,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-md","mb-2","mt-2"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"div",0)(1,"div",1),Y.ɵɵelement(2,"div",2)(3,"div",3),Y.ɵɵpipe(4,"safeHtml"),Y.ɵɵelementStart(5,"div",4),Y.ɵɵtext(6),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(7,"div",5)(8,"button",6),Y.ɵɵlistener("click",(function(){return t.retry()})),Y.ɵɵtext(9,"Intentarlo nuevamente"),Y.ɵɵelementEnd()()()),2&e&&(Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),Y.ɵɵproperty("innerHTML",t.texts.abandoned.title,Y.ɵɵsanitizeHtml),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",t.data.styles.colors.text),Y.ɵɵproperty("innerHTML",Y.ɵɵpipeBind1(4,15,t.texts.abandoned.description),Y.ɵɵsanitizeHtml),Y.ɵɵadvance(3),Y.ɵɵtextInterpolate1(" Estado: ",t.getTextStatus()," "),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW,se.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),be=(()=>{class e{constructor(e,t,n,i,r){this.fb=e,this.utils=t,this.solicitudesService=n,this.attachmentsService=i,this.notifications=r,this.nr=new Y.EventEmitter(null)}ngOnInit(){}newRequest(){this.nr.emit(!0)}gotoRequest(){location.assign(this.currentRequest.widget_url_boxed)}getStatus(){let e=ge.Z.find((e=>e.text==this.currentRequest.status_code));return e?e.label:"Estado desconocido"}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(p.UntypedFormBuilder),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(_.M),Y.ɵɵdirectiveInject(y.o),Y.ɵɵdirectiveInject(I.T))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-duplicated-request-step"]],inputs:{currentRequest:"currentRequest",data:"data",texts:"texts"},outputs:{nr:"newRequest"},decls:15,vars:15,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0"],[1,"subheading-1","pt-4"],[1,"flex","gap-2","justify-start","items-center","py-2"],[1,"w-fit","p-1","px-2","py-2","bg-orange-500/10","text-orange-500","border","border-orange-500","rounded-sm"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"px-8",3,"click"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"click"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),Y.ɵɵtext(3," Solicitud duplicada! "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(4,"div",3),Y.ɵɵtext(5," Ya existe una solicitud para este cliente. "),Y.ɵɵelementEnd(),Y.ɵɵelementStart(6,"div",4),Y.ɵɵtext(7," Estado de la solicitud actual: "),Y.ɵɵelementStart(8,"div",5),Y.ɵɵtext(9),Y.ɵɵelementEnd()()(),Y.ɵɵelementStart(10,"div",6)(11,"button",7),Y.ɵɵlistener("click",(function(){return t.newRequest()})),Y.ɵɵtext(12,"Nueva solicitud"),Y.ɵɵelementEnd(),Y.ɵɵelementStart(13,"button",8),Y.ɵɵlistener("click",(function(){return t.gotoRequest()})),Y.ɵɵtext(14,"Ir a la solicitud actual"),Y.ɵɵelementEnd()()()),2&e&&(Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.text),Y.ɵɵadvance(5),Y.ɵɵtextInterpolate1(" ",t.getStatus()," "),Y.ɵɵadvance(2),Y.ɵɵstyleProp("border-radius",t.data.styles.btnRound+"px"),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"))},dependencies:[u.lW],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}@media (min-width: 600px){.content[_ngcontent-%COMP%]{max-height:50vh}}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}"]}),e})();function xe(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"vex-power-cert",3),Y.ɵɵlistener("accept",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext();return Y.ɵɵresetView(t.acceptPowerCert())})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵproperty("hideButtons",!1)("flow","DigitalPower")("userId",e.userId)}}function we(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",8),Y.ɵɵelement(1,"img",9),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵproperty("src",e.data.styles.logoUrl,Y.ɵɵsanitizeUrl)}}function Ce(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-intro-step",22),Y.ɵɵlistener("gotoFlow",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(3);return Y.ɵɵresetView(t.goFlow())}))("gotoManual",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(3);return Y.ɵɵresetView(t.gotoManual())})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("data",e.data)}}function Se(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-manual-step",23),Y.ɵɵlistener("goBack",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(3);return Y.ɵɵresetView(t.gotoIntro())})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("data",e.data)("packId",e.packId)("userId",e.userId)}}function Me(e,t){if(1&e&&Y.ɵɵelement(0,"belender-loading-step",24),2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("status",null==e.solicitud?null:e.solicitud.status_code)("data",e.data)("loaderColor",e.data.styles.colors.title)}}function Ie(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-form-step",25),Y.ɵɵlistener("goToPower",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(3);return Y.ɵɵresetView(t.gotoPowerConditions())}))("goToPower",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(3);return Y.ɵɵresetView(t.gotoPowerConditions())}))("nextStep",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.gotoOtp(t))})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("data",e.data)("flowName",e.flowName)("texts",e.data[e.flowName].texts)("solicitud",e.solicitud)}}function ke(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-error-form-step",26),Y.ɵɵlistener("nextStep",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.sendNewData(t))})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("solicitud",e.solicitud)("data",e.data)("texts",e.data[e.flowName].texts)}}function Ee(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-abandoned-step",27),Y.ɵɵlistener("retry",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.retryRequest(t))})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("solicitud",e.solicitud)("data",e.data)("texts",e.data[e.flowName].texts)}}function Te(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-otp-step",28),Y.ɵɵlistener("resendOTP",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(3);return Y.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.requestOTP(t))})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Pe(e,t){if(1&e&&Y.ɵɵelement(0,"belender-success-step",29),2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)}}function Oe(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-duplicated-request-step",30),Y.ɵɵlistener("newRequest",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.newRequest(t))})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("data",e.data)("currentRequest",e.currentRequest)}}function De(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-fail-step",31),Y.ɵɵlistener("retry",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.retryRequest(t))}))("newRequest",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.newRequest(t))})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)("solicitud",e.solicitud)}}function Le(e,t){if(1&e&&Y.ɵɵelement(0,"belender-no-service-step",32),2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("texts",e.data[e.flowName].texts)("data",e.data)}}function Ae(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",33)(1,"div",34)(2,"h1",35),Y.ɵɵtext(3,"No existe la solicitud"),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(4,"div",36),Y.ɵɵtext(5,"No existen solicitudes activas con el código requerido"),Y.ɵɵelementEnd()()),2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵadvance(4),Y.ɵɵstyleProp("color",e.data.styles.colors.text)}}function Ne(e,t){if(1&e&&(Y.ɵɵelementContainerStart(0),Y.ɵɵtemplate(1,Ce,1,1,"belender-intro-step",10),Y.ɵɵtemplate(2,Se,1,3,"belender-manual-step",11),Y.ɵɵtemplate(3,Me,1,3,"belender-loading-step",12),Y.ɵɵtemplate(4,Ie,1,4,"belender-form-step",13),Y.ɵɵtemplate(5,ke,1,3,"belender-error-form-step",14),Y.ɵɵtemplate(6,Ee,1,3,"belender-abandoned-step",15),Y.ɵɵtemplate(7,Te,1,3,"belender-otp-step",16),Y.ɵɵtemplate(8,Pe,1,2,"belender-success-step",17),Y.ɵɵtemplate(9,Oe,1,2,"belender-duplicated-request-step",18),Y.ɵɵtemplate(10,De,1,3,"belender-fail-step",19),Y.ɵɵtemplate(11,Le,1,2,"belender-no-service-step",20),Y.ɵɵtemplate(12,Ae,6,2,"div",21),Y.ɵɵelementContainerEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","intro"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","manual"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","loading"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","form"==e.getStatus()&&!e.loading),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","error-data"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","abandoned"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","otp"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","success"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","duplicated"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","failed"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","no-service"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","no-exist"==e.getStatus())}}function Re(e,t){1&e&&Y.ɵɵelement(0,"belender-disabled-url")}function je(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",37),Y.ɵɵelement(1,"belender-spinner",38),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵpropertyInterpolate("text",e.loading),Y.ɵɵproperty("color",e.data.styles.colors.title)}}function Fe(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"div",39)(1,"div",33)(2,"div",40),Y.ɵɵtext(3,"Error!"),Y.ɵɵelementEnd(),Y.ɵɵelement(4,"div",41),Y.ɵɵelementEnd(),Y.ɵɵelementStart(5,"div",42)(6,"button",43),Y.ɵɵlistener("click",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(2);return Y.ɵɵresetView(t.error=!1)})),Y.ɵɵtext(7,"Ingresar manualmente"),Y.ɵɵelementEnd()()()}if(2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(4),Y.ɵɵstyleProp("color",e.data.styles.colors.text),Y.ɵɵproperty("innerHTML",e.error,Y.ɵɵsanitizeHtml)}}function qe(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",4)(1,"div"),Y.ɵɵtemplate(2,we,2,1,"div",5),Y.ɵɵtemplate(3,Ne,13,12,"ng-container",2),Y.ɵɵtemplate(4,Re,1,0,"belender-disabled-url",2),Y.ɵɵtemplate(5,je,2,2,"div",6),Y.ɵɵtemplate(6,Fe,8,3,"div",7),Y.ɵɵelementEnd()()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵclassMapInterpolate1("h-full w-full flex-auto p-0 md:p-3 ",e.data.styles.typography,""),Y.ɵɵstyleProp("background",e.data.styles.colors.background),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",e.data.styles.withLogo&&"loading"!=e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!e.error&&!e.disableURL),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!e.error&&e.disableURL),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",e.loading&&!e.error),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!e.loading&&e.error)}}function Ye(e,t){if(1&e&&(Y.ɵɵelementContainerStart(0),Y.ɵɵelementStart(1,"div",44),Y.ɵɵtext(2),Y.ɵɵelementEnd(),Y.ɵɵelementContainerEnd()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(2),Y.ɵɵtextInterpolate1("TestMode ",e.testMode?"ON":"OFF","")}}let Ve=class{constructor(e,t,n,i,r,s,o,a){this.cd=e,this.Activatedroute=t,this.utils=n,this.solicitudesService=i,this.customizationService=r,this.notis=s,this.webhooksService=o,this.dialog=a,this.data=null,this.disableActions=!1,this.step="created",this.waitingTime=15,this.loading=null,this.error=!1,this.spinnerMode="indeterminate",this.spinnerValue=0,this.subscribed=!1,this.testMode=!1,this.cntrlIsPressed=!1,this.shiftlIsPressed=!1,this.skipCreationOfRequest=!1,this.autoAcceptTerms=!1,this.introEnabled=!0,this.manual=!1,this.disableURL=!1,this.viewPowerTerms=!1,this.flowName="PowerActivate"}ngOnInit(){console.warn(this.solicitud);const e=this;this.loading="Obteniendo información de la solicitud",this.Activatedroute.params.subscribe((e=>{this.utils.setLoading(!1),e&&e.idUser?(this.userId=e.idUser,this.setInitialData(this.userId)):this.loading=!1,e&&e.packID&&(this.packId=e.packID)}),(e=>{this.loading=!1,this.utils.setLoading(!1)})),"pro"!=F.N.env&&(j(document).keydown((function(t){16==t.which&&(this.shiftlIsPressed=!0),17==t.which&&(this.cntrlIsPressed=!0),84==t.which&&this.cntrlIsPressed&&this.shiftlIsPressed&&(e.testMode=!e.testMode,e.cd.markForCheck())})),j(document).keyup((function(e){16==e.which&&(this.shiftlIsPressed=!1),16==e.which&&(this.cntrlIsPressed=!1)})))}ngOnDestroy(){}sendMessageToParent(e){window.top.postMessage(e,"*")}gotoPowerConditions(){this.viewPowerTerms=!0}setInitialData(e){this.customizationService.getCustomization(e).then((e=>{e?(this.data=e,this.disableURL=e.config.disableUrlWidget,this.financiadorID=e.funder_id||"",this.validateRequestIdInUrl(),this.introEnabled=this.data.config.introEnabled,this.cd.markForCheck()):this.loading=!1}),(e=>{console.error(e),this.loading=!1}))}validateRequestIdInUrl(){this.Activatedroute.queryParams.subscribe((e=>{e&&e.acceptTerms&&(this.autoAcceptTerms=!0),e&&e.request_id?(this.disableURL=!1,this.requestID=e.request_id,this.setFormFromVcCode(e.request_id)):this.loading=!1}),(e=>{this.loading=!1}))}setFormFromVcCode(e){var t=this;return(0,D.Z)((function*(){t.loading="Obteniendo datos de la solicitud...",t.solicitudesService.getSolicitudByCode(e).then((e=>{e&&e.data?(t.solicitud=e.data,t.setSubscriptionOfRequest(),t.loading=!1,t.skipCreationOfRequest=!0,t.autoAcceptTerms&&t.acceptTerms()):t.loading=!1})).catch((e=>{t.loading=!1}))}))()}handlePusherNotification(e){this.dataFromFirebase=e,this.dataFromFirebase&&this.dataFromFirebase.status_code&&(this.solicitud.status_code=this.dataFromFirebase.status_code,"invalid_otp_seguridad_social"==this.solicitud.status_code&&this.showAlert("Error!","Código inválido. Por favor, introduzca el código recibido por SMS"),"terms_and_conditions"!=this.solicitud.status_code&&setTimeout((()=>{this.loading=!1,this.cd.markForCheck()}),500))}resendOTP(e){let t={request_id:this.requestID,user_id:this.userId};this.loading="Reenviando OTP...",this.setSubscriptionOfRequest(),this.solicitudesService.resendOTP(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}gotoOtp(e){this.loading="Enviando datos..",setTimeout((()=>{this.solicitud=new R.l,this.solicitud.status_code="waiting_otp_seguridad_social",this.loading=!1}),4e3)}setSubscriptionOfRequest(){if(this.socket)return;const e=this;let t="wss://notifications.dev.belender.net";"qa"==F.N.env&&(t="wss://notifications.qa.belender.net"),"pro"==F.N.env&&(t="wss://notifications.belender.net"),F.N.notificationsBaseUrl&&(t=F.N.notificationsBaseUrl),this.socket=new WebSocket(`${t}?requests_id=${this.requestID}&user_id=${this.userId}`),this.socket.onopen=function(e){console.log("Conexión establecida")},this.socket.onmessage=function(t){let n=JSON.parse(t.data);console.warn("message from wss: ",n),e.handlePusherNotification(n)},this.socket.onerror=function(t){console.log("WebSocket Error: "+t),console.error(t),e.setSubscriptionOfRequestOld()},this.socket.onclose=function(t){console.log("Conexión cerrada"),e.setSubscriptionOfRequestOld()}}setSubscriptionOfRequestOld(){!this.financiadorID||!this.userId||!this.requestID||this.subscribed||(this.subscribed=!0,this.webhooksService.bindRequestChanges(this.financiadorID,this.userId,this.requestID),this.webhooksService.subscribeRequestChanges().subscribe((e=>{console.warn("from firebase: ",e),e&&this.handlePusherNotification(e)}),(e=>{this.loading=!1})))}sendNewData(e){this.loading="Enviando información..",this.solicitudesService.fixData(this.requestID,e).then((e=>{e.status&&"error"==e.status?e.message&&(this.showAlert("Error!",e),this.loading=!1):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.initWaitingForResponse("Validando nuevos datos, espere por favor.."),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}showAlert(e,t){this.loading=!1,this.notis.showAlert(e,t)}acceptTerms(){let e={request_id:this.requestID,user_id:this.userId,terms_and_conditions:!0};this.initWaitingForResponse("Validando datos y logueandose a Seguridad Social, espere por favor.."),this.solicitudesService.acceptTerms(e).then((e=>{e.status&&"error"==e.status?e.message&&"You have a request in progress"==e.message?location.pathname.indexOf("widget-boxed")>-1?location.assign(e.response.widget_url_boxed):location.assign(e.response.widget_url):this.showAlert("Error!",e.message?e.message:e):e&&"success"==e.status&&(this.sendMessageToParent(e.data||e),this.solicitud=e.data,this.setSubscriptionOfRequest(),this.cd.markForCheck())})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}requestOTP(e){this.loading="Enviando información..",setTimeout((()=>{this.solicitud=new R.l,this.solicitud.status_code="all_documents_downloaded",this.loading=!1}),2e3)}initWaitingForResponse(e){this.loading=e||"Validando información, espere por favor..",setTimeout((()=>{this.loading&&this.askToBack()}),1e4)}askToBack(){this.solicitudesService.getSolicitudByCode(this.requestID).then((e=>{e&&e.data?(this.solicitud=e.data,this.loading=!1):this.loading=!1})).catch((e=>{this.loading=!1}))}gotoErrorPhone(){}setRequestStatus(e){this.solicitud.status_code=e}retryRequest(e){let t={request_id:e,user_id:this.userId};this.loading="Reintentando enviar la solicitud...",this.setSubscriptionOfRequest(),this.solicitudesService.retryRequest(t).then((e=>{e&&e.data&&(this.solicitud=e.data),this.loading=!1})).catch((e=>{console.error(e),this.showAlert("Error!",e.message||e),this.loading=!1}))}newRequest(e){this.solicitud.status_code="created"}gotoManual(){this.manual=!0,this.cd.markForCheck()}gotoIntro(){this.manual=!1}goFlow(){this.introEnabled=!1}goIntro(){this.manual=!1,this.introEnabled=!0}getStatus(){return this.manual?"manual":this.introEnabled?"intro":!this.solicitud||this.solicitud&&("created"==this.solicitud.status_code||"form"==this.solicitud.status_code||"terms_and_conditions"==this.solicitud.status_code)?"form":this.solicitud&&"qa"!=F.N.env&&"saved_otp"==this.solicitud.status_code?(this.loading="Estamos procesando su solicitud. Espere un momento por favor","loading"):!this.solicitud||"waiting_otp_seguridad_social"!=this.solicitud.status_code&&"waiting_login_seguridad_social"!=this.solicitud.status_code&&"invalid_otp_seguridad_social"!=this.solicitud.status_code?!this.solicitud||"abandoned_after_bad_phone"!=this.solicitud.status_code&&"abandoned_after_invalid_otp_seguridad_social"!=this.solicitud.status_code&&"abandoned_after_terms_and_conditions"!=this.solicitud.status_code&&"abandoned_after_waiting_otp_seguridad_social"!=this.solicitud.status_code?!this.solicitud||"all_documents_downloaded"!=this.solicitud.status_code&&"partial_documents_downloaded"!=this.solicitud.status_code&&"waiting_documents"!=this.solicitud.status_code?!this.solicitud||"bad_phone"!=this.solicitud.status_code&&"phone_not_exist_otp"!=this.solicitud.status_code?!this.solicitud||"failed_with_retry"!=this.solicitud.status_code&&"failed_without_retry"!=this.solicitud.status_code&&"failed_documents_downloaded"!=this.solicitud.status_code?this.solicitud&&"no_service"==this.solicitud.status_code?"no-service":this.solicitud&&"duplicated"==this.solicitud.status_code?"duplicated":"no-exist":"failed":this.data.config.noRetryInBadPhone?"otp":"error-data":this.data.config&&this.data.config.infiniteLoopInCompleted?"loading":"success":"abandoned":"otp"}acceptPowerCert(){this.viewPowerTerms=!1}sendRetry(){}gotoTermsAndConditions(){this.dialog.open(q.L,{panelClass:"fullscreen-dialog",data:{flow:"sms"}})}};Ve.ɵfac=function(e){return new(e||Ve)(Y.ɵɵdirectiveInject(Y.ChangeDetectorRef),Y.ɵɵdirectiveInject(P.gz),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(_.M),Y.ɵɵdirectiveInject(C.w),Y.ɵɵdirectiveInject(I.T),Y.ɵɵdirectiveInject(x.t),Y.ɵɵdirectiveInject(H.uw))},Ve.ɵcmp=Y.ɵɵdefineComponent({type:Ve,selectors:[["belender-widget-power"]],inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud"},features:[Y.ɵɵProvidersFeature([{provide:A.o2,useValue:{appearance:"standard"}}])],decls:3,vars:3,consts:[[3,"hideButtons","flow","userId","accept",4,"ngIf"],["class","h-full widget-belender",4,"ngIf"],[4,"ngIf"],[3,"hideButtons","flow","userId","accept"],[1,"h-full","widget-belender"],["class","img-wrapper p-6 flex justify-center items-center",4,"ngIf"],["class","loading-wrapper animated fadeIn",4,"ngIf"],["class","animated fadeInRight",4,"ngIf"],[1,"img-wrapper","p-6","flex","justify-center","items-center"],["alt","",1,"img-card",3,"src"],["flow","SMS","class","h-full ",3,"data","gotoFlow","gotoManual",4,"ngIf"],["flow","SMS","class","h-full ",3,"data","packId","userId","goBack",4,"ngIf"],[3,"status","data","loaderColor",4,"ngIf"],[3,"data","flowName","texts","solicitud","goToPower","nextStep",4,"ngIf"],[3,"solicitud","data","texts","nextStep",4,"ngIf"],[3,"solicitud","data","texts","retry",4,"ngIf"],[3,"data","texts","solicitud","resendOTP","errorPhone","nextStep",4,"ngIf"],[3,"data","texts",4,"ngIf"],[3,"data","currentRequest","newRequest",4,"ngIf"],[3,"data","texts","solicitud","retry","newRequest",4,"ngIf"],[3,"texts","data",4,"ngIf"],["class","px-6 py-4 flex flex-col",4,"ngIf"],["flow","SMS",1,"h-full",3,"data","gotoFlow","gotoManual"],["flow","SMS",1,"h-full",3,"data","packId","userId","goBack"],[3,"status","data","loaderColor"],[3,"data","flowName","texts","solicitud","goToPower","nextStep"],[3,"solicitud","data","texts","nextStep"],[3,"solicitud","data","texts","retry"],[3,"data","texts","solicitud","resendOTP","errorPhone","nextStep"],[3,"data","texts"],[3,"data","currentRequest","newRequest"],[3,"data","texts","solicitud","retry","newRequest"],[3,"texts","data"],[1,"px-6","py-4","flex","flex-col"],[1,"title","m-0"],[1,"text-red-500"],[1,"subheading-1","pt-4"],[1,"loading-wrapper","animated","fadeIn"],[3,"text","color"],[1,"animated","fadeInRight"],[1,"text-red-500","title","m-0"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"flex","items-center","justify-end","gap-2","p-4"],["mat-flat-button","","type","button",1,"text-blue-500","bg-blue-50","px-8",3,"click"],[1,"test-mode","px-10","py-2","bg-blue-500/10","text-blue-500","border-blue-500","border","rounded-md"]],template:function(e,t){1&e&&(Y.ɵɵtemplate(0,xe,1,3,"vex-power-cert",0),Y.ɵɵtemplate(1,qe,7,10,"div",1),Y.ɵɵtemplate(2,Ye,3,1,"ng-container",2)),2&e&&(Y.ɵɵproperty("ngIf",t.viewPowerTerms),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.data),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.testMode))},dependencies:[i.O5,u.lW,z.O,B.R,U.u,W.q,$.L,re,ae,de,me,fe,_e,ve,ye,be],styles:[".widget-belender[_ngcontent-%COMP%]{position:relative}.widget-belender[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between}.badge-table[_ngcontent-%COMP%]{max-width:140px!important;border-radius:5px!important;-webkit-border-radius:5px!important;-moz-border-radius:5px!important;-ms-border-radius:5px!important;-o-border-radius:5px!important}.btn-refresh[_ngcontent-%COMP%]{transform:translateY(2px)}.request-data-info[_ngcontent-%COMP%]{transition:all .5s ease!important}.img-card[_ngcontent-%COMP%]{max-width:240px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.loading-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:absolute;top:0;left:0;background:#fff}.mat-flat-button.mat-primary.mat-button-disabled[_ngcontent-%COMP%]{background:red!important}button.mat-flat-button.text-green-500.bg-green-light.mat-button-disabled[_ngcontent-%COMP%]{background:orange!important}.test-mode[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px}"]}),Ve=(0,L.gn)([(0,N.c)()],Ve);const He=[{path:":idUser",component:Ve},{path:":idUser/:packID",component:Ve}];let ze=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=Y.ɵɵdefineNgModule({type:e}),e.ɵinj=Y.ɵɵdefineInjector({imports:[P.Bz.forChild(He),P.Bz,O.d8]}),e})();var Be=n(6981),Ue=n(1129),We=n(9476),$e=n(8962),Ge=n(3468),Ze=n(3300),Ke=n(2266);let Qe=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=Y.ɵɵdefineNgModule({type:e}),e.ɵinj=Y.ɵɵdefineInjector({providers:[_.M,y.o,C.w,x.t,I.T,T.t,{provide:M.Ad,useValue:"es-ES"}],imports:[ze,i.ez,r.G,s.J,o.TU,a.p0,l.JX,c.p9,d.Ps,u.ot,h.Tx,w.c,p.FormsModule,m.AV,p.ReactiveFormsModule,f.LD,g.vV,v.a,b.Cq,S.FA,M.XK,k.T5,E.Fk,Be.x,Ue.n,We.F,$e.A,Ge.f,Ze.C,Ke.L]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[94],{2094:(e,t,n)=>{n.r(t),n.d(t,{SmsPinModule:()=>Ge});var i=n(6895),r=n(6383),s=n(5592),o=n(8739),a=n(7155),l=n(6308),c=n(6709),d=n(7392),u=n(9101),h=n(1561),p=n(4006),m=n(266),f=n(4385),g=n(811),_=n(5601),v=n(3798),y=n(9391),b=n(1572),x=n(182),w=n(4144),C=n(7367),S=n(9602),M=n(3238),I=n(5895),k=n(6257),E=n(1948),T=n(4246),P=n(9299),O=n(6e3),D=n(5861),L=n(7582),A=n(9549),N=n(9933),R=n(8259),j=n(2340),F=n(6830),q=n(1931),Y=n(4650),V=n(5089),H=n(9617),z=n(7489),B=n(5412),U=n(8460),W=n(7308),$=n(920),G=n(8364),Z=n(4302),K=n(5439),Q=n.n(K),X=(n(6866),n(3755)),J=n(3746),ee=n(1763),te=n(7795),ne=n(5696),ie=n(3731);const re=["termsCheckbox"],se=["assignmentCheckbox"];function oe(e,t){if(1&e&&(Y.ɵɵelementStart(0,"p",18)(1,"b"),Y.ɵɵtext(2),Y.ɵɵelementEnd()()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(2),Y.ɵɵtextInterpolate1(" ",null==e.labels||null==e.labels.warnings?null:e.labels.warnings.needMoreData," ")}}function ae(e,t){if(1&e&&(Y.ɵɵelementStart(0,"mat-error"),Y.ɵɵtext(1),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵtextInterpolate1(" ",null==e.labels||null==e.labels.warnings?null:e.labels.warnings.invalidDni," ")}}const le=function(e){return{mask:e}};function ce(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"mat-form-field",6)(1,"mat-label"),Y.ɵɵtext(2),Y.ɵɵelementEnd(),Y.ɵɵelement(3,"input",19),Y.ɵɵelementStart(4,"mat-hint")(5,"a",20),Y.ɵɵlistener("click",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext();return Y.ɵɵresetView(n.gotoExpirationDate(t))})),Y.ɵɵelementStart(6,"u"),Y.ɵɵtext(7),Y.ɵɵelementEnd()()()()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵclassMapInterpolate1("",e.disabledInputs.expiration?"disabled-input":""," w-full flex-1 belender-form-field"),Y.ɵɵadvance(2),Y.ɵɵtextInterpolate1(" ",null==e.labels?null:e.labels.expiration,""),Y.ɵɵadvance(1),Y.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.expiration?-1:1),Y.ɵɵproperty("textMask",Y.ɵɵpureFunction1(7,le,e.datemask)),Y.ɵɵadvance(4),Y.ɵɵtextInterpolate(null==e.labels?null:e.labels.findExpiration)}}function de(e,t){if(1&e&&(Y.ɵɵelementStart(0,"mat-form-field",6)(1,"mat-label"),Y.ɵɵtext(2),Y.ɵɵelementEnd(),Y.ɵɵelement(3,"input",21),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵclassMapInterpolate1("",e.disabledInputs.birthday?"disabled-input":""," w-full flex-1 belender-form-field"),Y.ɵɵadvance(2),Y.ɵɵtextInterpolate1(" ",null==e.labels?null:e.labels.birthday," "),Y.ɵɵadvance(1),Y.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.birthday?-1:1),Y.ɵɵproperty("textMask",Y.ɵɵpureFunction1(6,le,e.datemask))}}function ue(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"mat-form-field",6)(1,"mat-label"),Y.ɵɵtext(2),Y.ɵɵelementEnd(),Y.ɵɵelement(3,"input",22),Y.ɵɵelementStart(4,"mat-hint")(5,"a",20),Y.ɵɵlistener("click",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext();return Y.ɵɵresetView(n.gotoSupportAclaration(t))})),Y.ɵɵelementStart(6,"u"),Y.ɵɵtext(7),Y.ɵɵelementEnd()()()()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵclassMapInterpolate1("",e.disabledInputs.supportNumber?"disabled-input":""," w-full flex-1 belender-form-field"),Y.ɵɵadvance(2),Y.ɵɵtextInterpolate(null==e.labels?null:e.labels.support),Y.ɵɵadvance(1),Y.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.supportNumber?-1:1),Y.ɵɵadvance(4),Y.ɵɵtextInterpolate(null==e.labels?null:e.labels.findExpiration)}}function he(e,t){if(1&e&&(Y.ɵɵelementStart(0,"mat-form-field",6)(1,"mat-label"),Y.ɵɵtext(2),Y.ɵɵelementEnd(),Y.ɵɵelement(3,"input",23),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵclassMapInterpolate1("",e.disabledInputs.phone?"disabled-input":""," w-full flex-1 belender-form-field"),Y.ɵɵadvance(2),Y.ɵɵtextInterpolate(null==e.labels?null:e.labels.phone),Y.ɵɵadvance(1),Y.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.phone?-1:1)}}function pe(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",24)(1,"mat-form-field",6)(2,"mat-label"),Y.ɵɵtext(3),Y.ɵɵelementEnd(),Y.ɵɵelement(4,"input",25),Y.ɵɵelementEnd()()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵclassMapInterpolate1("",e.disabledInputs.email?"disabled-input":""," w-full flex-1 belender-form-field"),Y.ɵɵadvance(2),Y.ɵɵtextInterpolate(null==e.labels?null:e.labels.email),Y.ɵɵadvance(1),Y.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.email?-1:1)}}function me(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"div",26)(1,"belender-checkbox",27,28),Y.ɵɵlistener("changeCheckbox",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext();return Y.ɵɵresetView(n.setTerms(t))})),Y.ɵɵelementStart(3,"belender-terms-and-policy-links",29),Y.ɵɵlistener("goToTerms",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext();return Y.ɵɵresetView(n.gotoTermsAndConditions(t))})),Y.ɵɵelementEnd()()()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵproperty("color",e.data.styles.colors.title),Y.ɵɵadvance(2),Y.ɵɵproperty("userId",e.userId)("showPolicyLink",null==e.data?null:e.data.config.showPolicyLink)("lang",e.lang)("firstSentence",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.firstSentence)("secondSentence",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.secondSentence)("thirdSentence",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.thirdSentence)("policyActionText",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.policyActionText)("termsActionText",null==e.data[e.flowName]||null==e.data[e.flowName].texts||null==e.data[e.flowName].texts.form?null:e.data[e.flowName].texts.form.termsActionText)("customTerms",e.data[e.flowName].customTerms)}}function fe(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"div",30)(1,"belender-checkbox",31,32),Y.ɵɵlistener("changeCheckbox",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext();return Y.ɵɵresetView(n.setAssignment(t))})),Y.ɵɵelement(3,"div",33),Y.ɵɵelementEnd()()}if(2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵproperty("color",e.data.styles.colors.title),Y.ɵɵadvance(2),Y.ɵɵproperty("innerHTML",null==e.data?null:e.data.config.dataAssignmentText,Y.ɵɵsanitizeHtml)}}function ge(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",34),Y.ɵɵelement(1,"mat-icon",35),Y.ɵɵtext(2),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(2),Y.ɵɵtextInterpolate1(" ",null==e.labels||null==e.labels.warnings?null:e.labels.warnings.haveToReadTerms," ")}}function _e(e,t){if(1&e&&(Y.ɵɵelement(0,"div",3),Y.ɵɵpipe(1,"safeHtml")),2&e){const e=Y.ɵɵnextContext();Y.ɵɵstyleProp("color",e.data.styles.colors.text),Y.ɵɵproperty("innerHTML",Y.ɵɵpipeBind1(1,3,(null==e.texts.form?null:e.texts.form.aditionalDescription)||""),Y.ɵɵsanitizeHtml)}}function ve(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",36),Y.ɵɵelement(1,"mat-progress-spinner",37),Y.ɵɵelementStart(2,"p",38),Y.ɵɵtext(3),Y.ɵɵelementEnd()()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(3),Y.ɵɵtextInterpolate1(" ",e.loading," ")}}const ye=function(e,t,n){return{"justify-start":e,"justify-center":t,"justify-end":n}},be={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let xe=(()=>{class e{constructor(e,t,n,i,r,s,o){this.fb=e,this.solicitudesService=t,this.notis=n,this.utils=i,this.pinService=r,this.cd=s,this.dialog=o,this.next=new Y.EventEmitter(null),this.goTerms=new Y.EventEmitter(null),this.acceptTerms=!1,this.step=0,this.assignment=!1,this.termsReaded=!1,this.isDni=!1,this.isNie=!1,this.disabledInputs={dni:!1,expiration:!1,birthday:!1,supportNumber:!1,email:!1,phone:!1},this.datemask=[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],this.mode="ClavePin"}ngOnInit(){this.setForm(this.solicitud?this.solicitud:null),this.form.get("dni")&&this.setRegex(this.form.get("dni").value)}setRegex(e){e&&(this.isDni=!!e.toUpperCase().match(/^(\d{8})([A-Z])$/),this.isNie=!!e.toUpperCase().match(/^[XYZ]\d{7,8}[A-Z]$/),this.errorDNI=this.isDni||this.isNie?null:"Debes ingresar un DNI o NIE válido!")}setNieFormValidators(){this.form.controls.support_number.setValidators([p.Validators.required]),this.form.controls.birth_date.setValidators([p.Validators.required]),this.form.controls.expired_date.clearValidators(),this.form.get("support_number").updateValueAndValidity(),this.form.get("birth_date").updateValueAndValidity(),this.form.get("expired_date").updateValueAndValidity()}setDniFormValidators(){this.form.controls.support_number.clearValidators(),this.form.controls.birth_date.setValidators([p.Validators.required]),this.form.controls.expired_date.setValidators([p.Validators.required]),this.form.get("support_number").updateValueAndValidity(),this.form.get("birth_date").updateValueAndValidity(),this.form.get("expired_date").updateValueAndValidity()}tabChanged(e){this.step=e}setForm(e){let t=e.document_expiration_date,n=e.birth_date;e.document_expiration_date?t=Q()(e.document_expiration_date).format("DD/MM/YYYY"):e.person_document_expiration_date&&(t=Q()(e.person_document_expiration_date).format("DD/MM/YYYY")),e.birthday?n=Q()(e.birthday).format("DD/MM/YYYY"):e.person_birth_date?n=Q()(e.person_birth_date).format("DD/MM/YYYY"):e.birth_date&&(n=Q()(e.birth_date).format("DD/MM/YYYY"));let i=e?e.person_document_number||e.document_number||e.dni:null,r=n||null,s=e?e.person_phone||e.phone:null,o=e?e.person_email||e.email:null,a=e?t:null,l=e?e.document_support:null;this.form=this.fb.group(this.data.config.followMail?{dni:[i||null,[p.Validators.required,p.Validators.maxLength(9),this.regexDNI()]],expired_date:[a||null],support_number:[l],type:["DNI"],person_phone:[s||""],email:[o],birth_date:[r]}:{dni:[i||null,[p.Validators.required,p.Validators.maxLength(9),this.regexDNI()]],expired_date:[a||null],support_number:[l],type:["DNI"],person_phone:[s||""],birth_date:[r]}),this.requestIDFromURL&&this.disableEnableInputs(i,r,a,l,s,o)}disableEnableInputs(e,t,n,i,r,s){this.disabledInputs={dni:e||!1,birthday:t||!1,expiration:n||!1,supportNumber:i||!1,email:s||!1,phone:r||!1}}regexDNI(){return e=>{const t=e.value;return t?(this.setRegex(t),this.isDni||this.isNie?null:{regexDNI:!0}):null}}validate(){"ClavePin"==this.mode&&this.checkPin(),"SMS"==this.mode&&this.checkSms()}checkPin(){this.loading=this.labels.loadings.sendingData,this.cd.markForCheck();let e=this.getFormObject();e.user_id=this.userId,e.package_id=this.pinPackID,this.pinService.checkService(e).then((e=>{e&&e.status&&"error"==e.status?e.message&&("Incorrect date"==e.message?(this.solicitud.status_code="form",this.showAlert(this.labels.warnings.error,this.labels.warnings.wrongDate)):400==e.code&&"Incorrect support number"==e.message?(this.showAlert(this.labels.warnings.error,this.labels.warnings.wrongSupport),this.solicitud.status_code="form"):400==e.code?this.checkIfHaveAllSmsData()?(this.mode="SMS",this.checkSms()):(this.mode="SMS",this.loading=null):(this.solicitud.status_code="form",this.showAlert("Error!",e.message))):e&&e.status&&"success"==e.status?this.nextStep():this.showAlert(this.labels.warnings.error,this.labels.warnings.unknownError+e),this.cd.markForCheck()})).catch((e=>{e&&e.error&&this.showAlert(this.labels.warnings.error,e.error),this.loading=null,this.cd.markForCheck()}))}checkIfHaveAllSmsData(){let e=this.form.get("dni")?this.form.get("dni").value:null,t=this.form.get("person_phone")?this.form.get("person_phone").value:null,n=this.form.get("birth_date")?this.form.get("birth_date").value:null,i=this.form.get("expired_date")?this.form.get("expired_date").value:null,r=this.form.get("support_number")?this.form.get("support_number").value:null;return this.isDni?e&&t&&i&&n:e&&t&&r&&n}checkSms(){this.loading=this.labels.loadings.checkingSms;let e=this.getFormObject();e.user_id=this.userId,e.package_id=this.smsPackID,this.solicitudesService.checkService(e).then((t=>{t&&t.status&&"error"==t.status?(this.solicitud=e,"Invalid birthdate format"==t.message||"Birthdate incorrect"==t.message?(this.solicitud.status_code="form",this.showAlert(this.labels.warnings.error,this.labels.warnings.wrongBirthday)):"Incorrect date"==t.message?(this.solicitud.status_code="form",this.showAlert(this.labels.warnings.error,this.labels.warnings.wrongDate)):t.message&&(400==t.code?this.showAlert(this.labels.warnings.error,this.labels.warnings.noSms,"error"):(this.solicitud.status_code="form",this.showAlert(this.labels.warnings.error,t.message)))):t&&t.status&&"success"==t.status?this.nextStep():this.showAlert(this.labels.warnings.error,this.labels.warnings.unknownError+t),this.loading=null,this.cd.markForCheck()})).catch((e=>{e&&e.error&&this.showAlert(this.labels.warnings.error,e.error),this.loading=!1,this.cd.markForCheck()}))}showAlert(e,t,n){this.loading=!1,this.notis.showAlert(e,t,n)}getFormObject(){let e={document_number:this.form.get("dni").value.toUpperCase(),check_legal:!0};return"SMS"==this.mode&&(e.phone=this.form.get("person_phone").value,e.birth_date=this.utils.formatDate(this.form.get("birth_date").value)),"ClavePin"==this.mode&&this.isDni&&(e.document_expiration_date=this.utils.formatDate(this.form.get("expired_date").value)),this.isDni||(e.document_support=this.form.get("support_number").value,e.birth_date=this.utils.formatDate(this.form.get("birth_date").value)),this.data&&this.data.config&&this.data.config.followMail&&(e.email_copy=this.form.get("email").value),e}nextStep(){let e=this.getFormObject();this.next.emit({request:e,mode:this.mode})}gotoTermsAndConditions(e){e.preventDefault(),e.stopPropagation(),this.termsReaded=!0,this.goTerms.emit(!0)}gotoSupportAclaration(e){e.preventDefault(),e.stopPropagation(),this.dialog.open(X.$,{panelClass:"fullscreen-dialog"})}gotoExpirationDate(e){e.preventDefault(),e.stopPropagation(),this.dialog.open(J.R,{panelClass:"fullscreen-dialog"})}setTermsCheck(e){this.checkComponent.checked=e,this.acceptTerms=e}setTerms(e){this.acceptTerms=e}setAssignment(e){this.assignment=e}getFormsValid(){let e=this.form&&this.form.get("support_number")?this.form.get("support_number").value:null;return!(this.isNie&&(!e||""==e))}validDocument(){if(this.isDni||this.isNie)return this.errorDNI=null,!0;this.errorDNI=this.labels.warnings.invalidNieOrDni}getAssignmentValidation(){return!(this.data.config.forceChecks&&!this.termsReaded)&&(!this.data.config.dataAssignmentCheck||this.assignment)}}return e.ɵfac=function(t){return new(t||e)(Y.ɵɵdirectiveInject(p.UntypedFormBuilder),Y.ɵɵdirectiveInject(_.M),Y.ɵɵdirectiveInject(I.T),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(z.v),Y.ɵɵdirectiveInject(Y.ChangeDetectorRef),Y.ɵɵdirectiveInject(B.uw))},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-form-smspin-step"]],viewQuery:function(e,t){if(1&e&&(Y.ɵɵviewQuery(re,5),Y.ɵɵviewQuery(se,5)),2&e){let e;Y.ɵɵqueryRefresh(e=Y.ɵɵloadQuery())&&(t.checkComponent=e.first),Y.ɵɵqueryRefresh(e=Y.ɵɵloadQuery())&&(t.assignmentCheckComponent=e.first)}},inputs:{data:"data",texts:"texts",solicitud:"solicitud",requestIDFromURL:"requestIDFromURL",pinPackID:"pinPackID",smsPackID:"smsPackID",userId:"userId",flowName:"flowName",labels:"labels",lang:"lang"},outputs:{next:"nextStep",goTerms:"goToTerms"},features:[Y.ɵɵProvidersFeature([{provide:M.sG,useValue:be},{provide:Y.LOCALE_ID,useValue:"es-ES"}])],decls:25,vars:41,consts:[[1,"animated","fadeIn","fixed-content","px-2",3,"formGroup"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4","custom-html",3,"innerHTML"],["class","mt-3 px-4 py-2 rounded-sm bg-orange-500/10 text-orange-500",4,"ngIf"],[1,"mb-3","pt-3","flex","relative","flex-col","md:flex-row","flex-wrap","gap-2","md:justify-between"],["appearance","outline"],["formControlName","dni","maxlength","9","matInput","",3,"tabindex"],[4,"ngIf"],["appearance","outline",3,"class",4,"ngIf"],["class","w-full",4,"ngIf"],["class","mt-6 flex justify-start items-center w-full",4,"ngIf"],["class","mt-6 flex justify-start items-center w-full flex-100",4,"ngIf"],["class","px-2 flex items-center gap-2 py-2 rounded-sm mt-3 bg-orange-500/10 text-orange-500",4,"ngIf"],[1,"flex","items-center","justify-end","gap-2","p-4",3,"ngClass"],["mat-flat-button","","type","button",1,"px-8","w-full","max-w-none","md:max-w-[220px]",3,"disabled","click"],["class","subheading-1 pt-4 custom-html",3,"color","innerHTML",4,"ngIf"],["class","loading-wrapper animated fadeIn",4,"ngIf"],[1,"mt-3","px-4","py-2","rounded-sm","bg-orange-500/10","text-orange-500"],["required","","formControlName","expired_date","type","text","matInput","",3,"tabindex","textMask"],["target","_blank",1,"text-sm","hover:text-blue-500","cursor-pointer",3,"click"],["formControlName","birth_date","type","text","matInput","",3,"tabindex","textMask"],["required","","maxlength","9","minlength","6","formControlName","support_number","matInput","",3,"tabindex"],["required","","formControlName","person_phone","placeholder","Ej: 123123123","minlength","9","maxlength","9","type","text","matInput","",3,"tabindex"],[1,"w-full"],["formControlName","email","required","","type","email","placeholder","Ingresa tu email","matInput","",3,"tabindex"],[1,"mt-6","flex","justify-start","items-center","w-full"],["id","termsCheckbox",3,"color","changeCheckbox"],["termsCheckbox",""],[3,"userId","showPolicyLink","lang","firstSentence","secondSentence","thirdSentence","policyActionText","termsActionText","customTerms","goToTerms"],[1,"mt-6","flex","justify-start","items-center","w-full","flex-100"],[3,"color","changeCheckbox"],["assignmentCheckbox",""],[1,"custom-html",3,"innerHTML"],[1,"px-2","flex","items-center","gap-2","py-2","rounded-sm","mt-3","bg-orange-500/10","text-orange-500"],["svgIcon","mat:warning",1,"text-xs","w-4","h-4"],[1,"loading-wrapper","animated","fadeIn"],["color","accent","diameter","40","value","0","mode","indeterminate",1,"spinner"],[1,"mt-6","text-center","text-black",2,"color","black !important"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"form",0)(1,"div",1),Y.ɵɵelement(2,"div",2)(3,"div",3),Y.ɵɵpipe(4,"safeHtml"),Y.ɵɵtemplate(5,oe,3,1,"p",4),Y.ɵɵelementEnd(),Y.ɵɵelementStart(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),Y.ɵɵtext(9),Y.ɵɵelementEnd(),Y.ɵɵelement(10,"input",7),Y.ɵɵtemplate(11,ae,2,1,"mat-error",8),Y.ɵɵelementEnd(),Y.ɵɵtemplate(12,ce,8,9,"mat-form-field",9),Y.ɵɵtemplate(13,de,4,8,"mat-form-field",9),Y.ɵɵtemplate(14,ue,8,6,"mat-form-field",9),Y.ɵɵtemplate(15,he,4,5,"mat-form-field",9),Y.ɵɵtemplate(16,pe,5,5,"div",10),Y.ɵɵelementEnd(),Y.ɵɵtemplate(17,me,4,10,"div",11),Y.ɵɵtemplate(18,fe,4,2,"div",12),Y.ɵɵtemplate(19,ge,3,1,"div",13),Y.ɵɵelementStart(20,"div",14)(21,"button",15),Y.ɵɵlistener("click",(function(){return t.validate()})),Y.ɵɵtext(22),Y.ɵɵelementEnd()(),Y.ɵɵtemplate(23,_e,2,5,"div",16),Y.ɵɵelementEnd(),Y.ɵɵtemplate(24,ve,4,1,"div",17)),2&e&&(Y.ɵɵproperty("formGroup",t.form),Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),Y.ɵɵproperty("innerHTML",t.texts.form.title,Y.ɵɵsanitizeHtml),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",t.data.styles.colors.text),Y.ɵɵproperty("innerHTML",Y.ɵɵpipeBind1(4,35,t.texts.form.description||""),Y.ɵɵsanitizeHtml),Y.ɵɵadvance(2),Y.ɵɵproperty("ngIf","SMS"==t.mode),Y.ɵɵadvance(2),Y.ɵɵclassMapInterpolate1("",t.disabledInputs.dni?"disabled-input":""," w-full flex-1 belender-form-field"),Y.ɵɵadvance(2),Y.ɵɵtextInterpolate(t.isDni?null==t.labels?null:t.labels.dni:t.isNie?null==t.labels?null:t.labels.nie:null==t.labels?null:t.labels.nieOrDni),Y.ɵɵadvance(1),Y.ɵɵpropertyInterpolate("tabindex",t.disabledInputs.dni?-1:1),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!t.isNie&&!t.isDni),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.isDni),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.isDni&&"SMS"==t.mode||t.isNie),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.isNie),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",(t.isNie||t.isDni)&&"SMS"==t.mode),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",(null==t.data||null==t.data.config?null:t.data.config.followMail)&&(t.isDni||t.isNie)),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","ClavePin"==t.mode),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",(null==t.data?null:t.data.config.dataAssignmentCheck)&&"ClavePin"==t.mode),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.data.config.forceChecks&&!t.termsReaded&&"ClavePin"==t.mode),Y.ɵɵadvance(1),Y.ɵɵproperty("ngClass",Y.ɵɵpureFunction3(37,ye,"left"===t.data.styles.alignButtons,"center"===t.data.styles.alignButtons,"right"===t.data.styles.alignButtons||!t.data.styles.alignButtons)),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",t.validDocument()&&!t.form.invalid&&t.acceptTerms&&t.getAssignmentValidation()?t.data.styles.colors.btnText:"")("background",t.validDocument()&&!t.form.invalid&&t.acceptTerms&&t.getAssignmentValidation()?t.data.styles.colors.btnBg:"")("border-radius",t.data.styles.btnRound+"px"),Y.ɵɵproperty("disabled",!t.validDocument()||t.form.invalid||!t.acceptTerms||!t.getAssignmentValidation()||t.loading),Y.ɵɵadvance(1),Y.ɵɵtextInterpolate1(" ",null==t.labels||null==t.labels.actions?null:t.labels.actions.continue," "),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",null==t.data[t.flowName]?null:t.data[t.flowName].showAditionalDescription),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.loading))},dependencies:[i.mk,i.O5,d.Hw,u.lW,A.TO,A.KE,A.bx,A.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.RequiredValidator,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,b.Ou,ee.b,te.hd,ne.T,ie.z],styles:[".members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{border:2px solid var(--background-foreground);box-sizing:border-box;height:36px;margin-right:-8px;margin-top:var(--padding-4);width:36px}.members[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:last-child{margin-right:0}.type-badge[_ngcontent-%COMP%]{border-radius:5px;min-width:64px}.labels[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:var(--border-radius);font:var(--font-caption);height:32px;line-height:32px;margin-top:var(--padding-4);min-width:100px;padding-left:var(--padding-8);padding-right:var(--padding-8);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.content[_ngcontent-%COMP%]{max-height:40vh}.status-section-wrapper[_ngcontent-%COMP%]{box-shadow:none;transition:all .3s ease;overflow:hidden;height:0;display:flex;align-items:center;padding:0}.status-section-wrapper.showing-status[_ngcontent-%COMP%]{padding:1.7rem .5rem 1.7rem 1.5rem;margin-top:0;height:40px;box-shadow:0 4px 6px #0000001a}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrum-content[_ngcontent-%COMP%]{height:auto;max-height:1000px;transition:all .3s ease;overflow:hidden!important}.scrum-content.hide-content[_ngcontent-%COMP%]{max-height:0px;transition:all .3s ease}.label-status[_ngcontent-%COMP%]{border-radius:7px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.hiden-input[_ngcontent-%COMP%]{height:0!important;max-height:0px!important;overflow:hidden!important;opacity:0!important}.loading-wrapper[_ngcontent-%COMP%]{width:100%;position:absolute;top:0;left:0;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(255,255,255,.6509803922)}"]}),e})(),we=(()=>{class e{constructor(){}ngOnInit(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=Y.ɵɵdefineComponent({type:e,selectors:[["belender-smspin-no-service-step"]],inputs:{data:"data",texts:"texts"},decls:5,vars:10,consts:[[1,"animated","fadeIn","fixed-content"],[1,"py-4","flex","flex-col"],[1,"title","m-0",3,"innerHTML"],[1,"subheading-1","pt-4",3,"innerHTML"]],template:function(e,t){1&e&&(Y.ɵɵelementStart(0,"form",0)(1,"div",1),Y.ɵɵelement(2,"div",2)(3,"div",3),Y.ɵɵpipe(4,"safeHtml"),Y.ɵɵelementEnd()()),2&e&&(Y.ɵɵadvance(2),Y.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),Y.ɵɵproperty("innerHTML",t.texts.fail.title,Y.ɵɵsanitizeHtml),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",t.data.styles.colors.text),Y.ɵɵproperty("innerHTML",Y.ɵɵpipeBind1(4,8,t.texts.fail.description),Y.ɵɵsanitizeHtml))},dependencies:[p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm,ie.z]}),e})();const Ce=["formStep"];function Se(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",7),Y.ɵɵelement(1,"img",8),Y.ɵɵelementEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵproperty("src",null==e.data||null==e.data.styles?null:e.data.styles.logoUrl,Y.ɵɵsanitizeUrl)}}function Me(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-form-smspin-step",12,13),Y.ɵɵlistener("nextStep",(function(t){Y.ɵɵrestoreView(e);const n=Y.ɵɵnextContext(3);return Y.ɵɵresetView(n.checkRequest(t))}))("goToTerms",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(3);return Y.ɵɵresetView(t.gotoTermsAndConditions())})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("requestIDFromURL",e.requestIDFromURL)("data",e.data)("lang",e.currentLang)("labels",e.labels)("userId",e.userId)("pinPackID",e.pinPackID)("smsPackID",e.smsPackID)("texts",e.data[e.flowName].texts)("flowName",e.flowName)("solicitud",e.solicitud)}}function Ie(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"belender-smspin-no-service-step",14),Y.ɵɵlistener("retry",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(3);return Y.ɵɵresetView(t.gotoForm())})),Y.ɵɵelementEnd()}if(2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵproperty("data",e.data)("texts",e.data[e.flowName].texts)}}function ke(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",15)(1,"div",16)(2,"h1",17),Y.ɵɵtext(3),Y.ɵɵelementEnd()(),Y.ɵɵelementStart(4,"div",18),Y.ɵɵtext(5),Y.ɵɵelementEnd()()),2&e){const e=Y.ɵɵnextContext(3);Y.ɵɵadvance(3),Y.ɵɵtextInterpolate(e.labels.warnings.requestNoExist),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",e.data.styles.colors.text),Y.ɵɵadvance(1),Y.ɵɵtextInterpolate(e.labels.warnings.noRequests)}}function Ee(e,t){if(1&e&&(Y.ɵɵelementContainerStart(0),Y.ɵɵtemplate(1,Me,2,10,"belender-form-smspin-step",9),Y.ɵɵtemplate(2,Ie,1,2,"belender-smspin-no-service-step",10),Y.ɵɵtemplate(3,ke,6,4,"div",11),Y.ɵɵelementContainerEnd()),2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","form"==e.getStatus()&&!e.loading),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","no-service"==e.getStatus()),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf","created"!=e.step)}}function Te(e,t){1&e&&Y.ɵɵelement(0,"belender-disabled-url")}const Pe=function(e,t,n){return{"justify-start":e,"justify-center":t,"justify-end":n}};function Oe(e,t){if(1&e){const e=Y.ɵɵgetCurrentView();Y.ɵɵelementStart(0,"div",19)(1,"div",15)(2,"div",20),Y.ɵɵtext(3),Y.ɵɵelementEnd(),Y.ɵɵelement(4,"div",21),Y.ɵɵelementEnd(),Y.ɵɵelementStart(5,"div",22)(6,"button",23),Y.ɵɵlistener("click",(function(){Y.ɵɵrestoreView(e);const t=Y.ɵɵnextContext(2);return Y.ɵɵresetView(t.error=!1)})),Y.ɵɵtext(7),Y.ɵɵelementEnd()()()}if(2&e){const e=Y.ɵɵnextContext(2);Y.ɵɵadvance(3),Y.ɵɵtextInterpolate(e.labels.warnings.error),Y.ɵɵadvance(1),Y.ɵɵstyleProp("color",e.data.styles.colors.text),Y.ɵɵproperty("innerHTML",e.error,Y.ɵɵsanitizeHtml),Y.ɵɵadvance(1),Y.ɵɵproperty("ngClass",Y.ɵɵpureFunction3(6,Pe,"left"===e.data.styles.alignButtons,"center"===e.data.styles.alignButtons,"right"===e.data.styles.alignButtons||!e.data.styles.alignButtons)),Y.ɵɵadvance(2),Y.ɵɵtextInterpolate1(" ",e.labels.manual," ")}}function De(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",3)(1,"div"),Y.ɵɵtemplate(2,Se,2,1,"div",4),Y.ɵɵtemplate(3,Ee,4,3,"ng-container",5),Y.ɵɵtemplate(4,Te,1,0,"belender-disabled-url",5),Y.ɵɵtemplate(5,Oe,8,10,"div",6),Y.ɵɵelementEnd()()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(1),Y.ɵɵclassMapInterpolate1("h-full w-full flex-auto p-0 md:p-3 ",null==e.data||null==e.data.styles?null:e.data.styles.typography,""),Y.ɵɵstyleProp("background",null==e.data||null==e.data.styles||null==e.data.styles.colors?null:e.data.styles.colors.background),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",null==e.data||null==e.data.styles?null:e.data.styles.withLogo),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!e.error&&!e.disableURL),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!e.error&&e.disableURL),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",!e.loading&&e.error)}}function Le(e,t){if(1&e&&(Y.ɵɵelementStart(0,"div",24),Y.ɵɵelement(1,"mat-progress-spinner",25),Y.ɵɵelementStart(2,"p",26),Y.ɵɵtext(3),Y.ɵɵelementEnd()()),2&e){const e=Y.ɵɵnextContext();Y.ɵɵadvance(3),Y.ɵɵtextInterpolate(e.loading)}}function Ae(e,t){if(1&e&&Y.ɵɵelement(0,"belender-widget-sms",27),2&e){const e=Y.ɵɵnextContext();Y.ɵɵproperty("solicitud",e.solicitud)}}function Ne(e,t){if(1&e&&Y.ɵɵelement(0,"belender-widget-pin",27),2&e){const e=Y.ɵɵnextContext();Y.ɵɵproperty("solicitud",e.solicitud)}}let Re=class{constructor(e,t,n,i,r,s,o,a,l,c,d){this.cd=e,this.Activatedroute=t,this.utils=n,this.solicitudesService=i,this.packagesService=r,this.customizationService=s,this.pinService=o,this.notis=a,this.dialog=l,this.customizationStoreService=c,this.translationService=d,this.data=null,this.disableActions=!1,this.step="created",this.loading=null,this.error=!1,this.waitingTime=15,this.spinnerMode="indeterminate",this.spinnerValue=0,this.mode="smspin",this.shortLinks={crg:"/widget-boxed/smspin/4bdaf3ac-f32b-402d-9e3b-656237ed6c5b/0ca83b8a-7a7c-4ece-b093-4576e3e58238/f44151b2-101c-4f1f-be20-21b74c13065f"},this.requestIDFromURL=!1,this.disableURL=!1,this.flowName="smspin",this.currentLang="",this.labels=q.S.es,this.introEnabled=!1,this.data||(this.loading="Obteniendo información de la solicitud",this.Activatedroute.paramMap.subscribe((e=>{console.error("params: ",e);let t=e.get("shortLink");e&&t&&this.shortLinks[t]?location.assign("https://widget.belender.net"+this.shortLinks[t]):e&&e.get("idUser")&&(this.financiadorID=e.get("idUser")),this.loading=!1}),(e=>{this.loading=!1})))}ngOnInit(){const e=this;this.loading="Obteniendo información de la solicitud",this.Activatedroute.params.subscribe((e=>{e&&e.smsPackID&&(this.smsPackID=e.smsPackID),e&&e.pinPackID&&(this.pinPackID=e.pinPackID),e&&e.idUser?(this.userId=e.idUser,this.initFunctions()):(this.loading=!1,this.utils.setLoading(!1))}),(e=>{this.loading=!1,this.utils.setLoading(!1)})),"pro"!=j.N.env&&(R(document).keydown((function(t){16==t.which&&(this.cntrlIsPressed=!0),84==t.which&&this.cntrlIsPressed&&(e.testMode=!e.testMode,e.cd.markForCheck())})),R(document).keyup((function(e){16==e.which&&(this.cntrlIsPressed=!1)})))}ngOnDestroy(){}getPackagesFromUser(e){this.packagesService.getPackagesByUserID(e).then((e=>{})).catch((e=>{console.error(e)}))}initFunctions(){var e=this;return(0,D.Z)((function*(){var t;e.Activatedroute.queryParams.subscribe((t=(0,D.Z)((function*(t){t.lang?(e.currentLang=t.lang,e.loading=e.translationService.getFirstLoading(e.currentLang),e.setTranslation()):e.loading=e.labels.loadings.gettingData,e.userId?e.setInitialData(e.userId):e.loading=null})),function(e){return t.apply(this,arguments)}))}))()}setInitialData(e){var t=this;return(0,D.Z)((function*(){const n=yield t.getFlow(e);if(t.data={config:t.customizationStoreService.FUNDER_CONFIG,styles:t.customizationStoreService.FUNDER_STYLES,[t.flowName]:n},!t.data.config||!t.data.config.funder_id)return t.showAlert(t.labels.warnings.error,t.labels.warnings.noCustomization,"error"),t.loading=null,void t.cd.markForCheck();t.financiadorID=t.data.config.funder_id||"",t.disableURL=t.data.config.disableUrlWidget,t.introEnabled=t.data.config.introEnabled,t.validateRequestIdInUrl(),t.loading=null,t.cd.markForCheck()}))()}setTranslation(){let e=this.translationService.getLabelsTranslated(this.currentLang);e&&(this.labels=e)}getFlow(e){var t=this;return(0,D.Z)((function*(){return new Promise((n=>{t.customizationService.getCustomizationByFlow(e,t.flowName,t.currentLang).then((e=>{e&&e.data&&n(e.data),n(null)}),(e=>{n(null)}))}))}))()}validateRequestIdInUrl(){this.Activatedroute.queryParams.subscribe((e=>{e&&this.setParamsToRequest(e),e&&e.request_id?(this.disableURL=!1,this.requestID=e.request_id,this.requestIDFromURL=!0,this.askBackIfAlreadyExist(e.request_id)):this.loading=!1}),(e=>{this.loading=!1}))}askBackIfAlreadyExist(e){this.loading="Comprobando si la solicitud ya existe...",this.solicitudesService.getSolicitudByCode(e).then((e=>{if(e&&e.data&&e.data.widget_url){let t=location.pathname,n=e.data.widget_url;t.indexOf("widget-boxed")>-1&&(n=e.data.widget_url_boxed),this.solicitud=e.data,this.loading=!1,n.indexOf("smspin")>-1?(this.solicitud=e.data,this.loading=!1):location.assign(n)}else this.loading=!1})).catch((e=>{console.error(e),this.loading=!1}))}setParamsToRequest(e){this.requestIDFromURL=!0,this.solicitud||(this.solicitud={status_code:"form"}),(e.document_number||e.document)&&!this.solicitud.person_document_number&&(this.solicitud.person_document_number=e.document_number||e.document),(e.birth_date||e.birthday||e.person_birth_date)&&!this.solicitud.birth_date&&(this.solicitud.birth_date=e.birth_date||e.birthday||e.person_birth_date),(e.document_expiration_date||e.expiration||e.person_document_expiration_date)&&!this.solicitud.document_expiration_date&&(this.solicitud.document_expiration_date=e.document_expiration_date||e.expiration||e.person_document_expiration_date),(e.document_support||e.supportNumber)&&!this.solicitud.document_support&&(this.solicitud.document_support=e.document_support||e.supportNumber),e.phone&&!this.solicitud.person_phone&&(this.solicitud.person_phone=e.phone),(e.email||e.person_email)&&!this.solicitud.person_email&&(this.solicitud.person_email=e.email)}gotoForm(){this.solicitud.status_code="created"}gotoStep(e){this.disableActions||this.cd.markForCheck()}checkRequest(e){let t=e.request,n=e.mode;t.user_id=this.userId,"ClavePin"==n&&(t.package_id=this.pinPackID,this.addPinRequest(t)),"SMS"==n&&(t.package_id=this.smsPackID,this.addSmsRequest(t))}addPinRequest(e){this.requestID&&(e.request_id=this.requestID),this.loading="Creando solicitud Clave PIN nueva..",this.pinService.addSolicitud(e).then((t=>{t&&t.status&&"error"==t.status?t.message&&(this.solicitud=e,400==t.code&&"Does not have Pin service"==t.message?(this.solicitud.status_code="no_service",this.loading=!1):"Incorrect date"==t.message?(this.showAlert("Error!","Fecha incorrecta!"),this.solicitud.status_code="form"):(this.showAlert("Error!","Error desconocido"),this.solicitud.status_code="form",this.showAlert("Error!",t.message))):t&&t.status&&"success"==t.status?(this.requestID=t.data.request_id,this.solicitud=t.data,location.pathname.indexOf("widget-boxed")>-1?location.assign(this.solicitud.widget_url_boxed+"&acceptTerms=true"||0):location.assign(this.solicitud.widget_url+"&acceptTerms=true"||0)):this.showAlert("Error!","Error desconocido: "+t),this.loading=null})).catch((e=>{console.error("respuesta desde pin service: ",e),e&&e.errorMessage&&this.showAlert("Error!",e.errorMessage),this.loading=null}))}addSmsRequest(e){this.loading="Creando solicitud SMS nueva..",this.requestID&&(e.request_id=this.requestID),this.solicitudesService.addSolicitud(e,this.smsPackID,this.userId).then((t=>{t&&t.status&&"error"==t.status?(this.solicitud=e,t.message&&(400==t.code?"Birthdate incorrect"==t.message?(this.solicitud.status_code="form",this.showAlert("Error!","Fecha de nacimiento incorrecta")):"Incorrect date"==t.message?(this.solicitud.status_code="form",this.showAlert("Error!","Fecha incorrecta")):(this.solicitud.status_code="no_service",this.loading=!1):(this.solicitud.status_code="form",this.showAlert("Error!",t.message)))):t&&t.status&&"success"==t.status?(this.requestID=t.data.request_id,this.solicitud=t.data,console.warn("data from back: ",t),location.pathname.indexOf("widget-boxed")>-1?location.assign(this.solicitud.widget_url_boxed+"&acceptTerms=true"||0):location.assign(this.solicitud.widget_url+"&acceptTerms=true"||0)):this.showAlert("Error!","Error desconocido: "+t)})).catch((e=>{e&&e.error&&this.showAlert("Error!",e.error),this.loading=!1}))}showAlert(e,t,n){this.loading=!1,this.notis.showAlert(e,t,n)}gotoTermsAndConditions(){this.dialog.open(F.L,{panelClass:"fullscreen-dialog",data:{flow:"smspin"}}).afterClosed().subscribe((e=>{e&&this.formComponent.setTermsCheck(!0)}))}getStatus(){return!this.solicitud||this.solicitud&&("created"==this.solicitud.status_code||"form"==this.solicitud.status_code||"terms_and_conditions"==this.solicitud.status_code||"prerequest"==this.solicitud.status_code)?"form":this.solicitud&&"no_service"==this.solicitud.status_code?"no-service":"no-exist"}};Re.ɵfac=function(e){return new(e||Re)(Y.ɵɵdirectiveInject(Y.ChangeDetectorRef),Y.ɵɵdirectiveInject(P.gz),Y.ɵɵdirectiveInject(V.F),Y.ɵɵdirectiveInject(_.M),Y.ɵɵdirectiveInject(H.U),Y.ɵɵdirectiveInject(C.w),Y.ɵɵdirectiveInject(z.v),Y.ɵɵdirectiveInject(I.T),Y.ɵɵdirectiveInject(B.uw),Y.ɵɵdirectiveInject(U.r),Y.ɵɵdirectiveInject(W.D))},Re.ɵcmp=Y.ɵɵdefineComponent({type:Re,selectors:[["belender-widget-sms-pin"]],viewQuery:function(e,t){if(1&e&&Y.ɵɵviewQuery(Ce,5),2&e){let e;Y.ɵɵqueryRefresh(e=Y.ɵɵloadQuery())&&(t.formComponent=e.first)}},inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud"},features:[Y.ɵɵProvidersFeature([{provide:A.o2,useValue:{appearance:"standard"}}])],decls:4,vars:4,consts:[["class","h-full widget-belender",4,"ngIf"],["class","loading-wrapper animated fadeIn",4,"ngIf"],[3,"solicitud",4,"ngIf"],[1,"h-full","widget-belender"],["class","img-wrapper p-6 flex justify-center items-center",4,"ngIf"],[4,"ngIf"],["class","animated fadeInRight",4,"ngIf"],[1,"img-wrapper","p-6","flex","justify-center","items-center"],["alt","",1,"img-card",3,"src"],[3,"requestIDFromURL","data","lang","labels","userId","pinPackID","smsPackID","texts","flowName","solicitud","nextStep","goToTerms",4,"ngIf"],[3,"data","texts","retry",4,"ngIf"],["class","px-6 py-4 flex flex-col",4,"ngIf"],[3,"requestIDFromURL","data","lang","labels","userId","pinPackID","smsPackID","texts","flowName","solicitud","nextStep","goToTerms"],["formStep",""],[3,"data","texts","retry"],[1,"px-6","py-4","flex","flex-col"],[1,"title","m-0"],[1,"text-red-500"],[1,"subheading-1","pt-4"],[1,"animated","fadeInRight"],[1,"text-red-500","title","m-0"],[1,"subheading-1","pt-4",3,"innerHTML"],[1,"flex","items-center","justify-end","gap-2","p-4",3,"ngClass"],["mat-flat-button","","type","button",1,"text-blue-500","bg-blue-50","px-8",3,"click"],[1,"loading-wrapper","animated","fadeIn"],["color","accent","diameter","40","value","0","mode","indeterminate",1,"spinner"],[1,"mt-6","text-center","text-black",2,"color","black !important"],[3,"solicitud"]],template:function(e,t){1&e&&(Y.ɵɵtemplate(0,De,6,9,"div",0),Y.ɵɵtemplate(1,Le,4,1,"div",1),Y.ɵɵtemplate(2,Ae,1,1,"belender-widget-sms",2),Y.ɵɵtemplate(3,Ne,1,1,"belender-widget-pin",2)),2&e&&(Y.ɵɵproperty("ngIf",t.data&&t.data.styles&&t.data.styles.colors&&"smspin"==t.mode),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.loading&&!t.error),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.data&&"SMS"==t.mode),Y.ɵɵadvance(1),Y.ɵɵproperty("ngIf",t.data&&"ClavePin"==t.mode))},dependencies:[i.mk,i.O5,u.lW,b.Ou,$.n,G.T,Z.q,xe,we],styles:[".card[_ngcontent-%COMP%]{transition:all .2s ease;overflow:hidden;width:500px;max-width:100%;margin:0 auto}.widget-belender[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between}.badge-table[_ngcontent-%COMP%]{max-width:140px!important;border-radius:5px!important;-webkit-border-radius:5px!important;-moz-border-radius:5px!important;-ms-border-radius:5px!important;-o-border-radius:5px!important}.btn-refresh[_ngcontent-%COMP%]{transform:translateY(2px)}.request-data-info[_ngcontent-%COMP%]{transition:all .5s ease!important}.img-card[_ngcontent-%COMP%]{max-width:240px}.title[_ngcontent-%COMP%]{font-size:16px}.subheading-1[_ngcontent-%COMP%]{font-size:12px}.loading-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center}.mat-flat-button.mat-primary.mat-button-disabled[_ngcontent-%COMP%]{background:red!important}button.mat-flat-button.text-green-500.bg-green-light.mat-button-disabled[_ngcontent-%COMP%]{background:orange!important}"]}),Re=(0,L.gn)([(0,N.c)()],Re);const je=[{path:":idUser/:pinPackID/:smsPackID",component:Re},{path:":shortLink",component:Re}];let Fe=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=Y.ɵɵdefineNgModule({type:e}),e.ɵinj=Y.ɵɵdefineInjector({imports:[P.Bz.forChild(je),P.Bz,O.d8]}),e})();var qe=n(1916),Ye=n(3006),Ve=n(6981),He=n(3848),ze=n(1129),Be=n(9476),Ue=n(3295),We=n(3300),$e=n(865);let Ge=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=Y.ɵɵdefineNgModule({type:e}),e.ɵinj=Y.ɵɵdefineInjector({providers:[_.M,y.o,C.w,x.t,I.T,T.t,{provide:M.Ad,useValue:"es-ES"}],imports:[Fe,i.ez,r.G,s.J,o.TU,a.p0,l.JX,c.p9,d.Ps,u.ot,h.Tx,w.c,p.FormsModule,m.AV,p.ReactiveFormsModule,f.LD,g.vV,v.a,b.Cq,S.FA,M.XK,k.T5,E.Fk,qe.PinModule,Ye.SmsModule,Ve.x,He.Nh,ze.n,Be.F,Ue.g,We.C,te.QA,$e.q]}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[592],{1888:(e,t,n)=>{n.d(t,{S:()=>c});var i=n(6197),r=n(2340),s=n(4650),o=n(5089),a=n(529),l=n(6554);let c=(()=>{class e{constructor(e,t,n){this.utils=e,this.http=t,this.localFetch=n,this.db=(0,i.N8)()}getAllDocumentsType(){return new Promise(((e,t)=>{this.localFetch.getFetch(r.N.baseUrl+"/type-documents").then((n=>{n?e(n):t(n)})).catch((e=>{t(e)}))}))}getDocumentPacks(e){return new Promise(((t,n)=>{this.localFetch.getFetch(r.N.baseUrl+"/funders/"+e+"/pack-documents").then((e=>{e?t(e):n(e)})).catch((e=>{n(e)}))}))}savePacks(e,t){return new Promise(((n,i)=>{this.http.post(r.N.baseUrl+"/funders/"+e+"/flows/pack-documents",t).subscribe((e=>{e?n(e):i(e)}),(e=>{i(e)}))}))}}return e.ɵfac=function(t){return new(t||e)(s.ɵɵinject(o.F),s.ɵɵinject(a.eN),s.ɵɵinject(l.r))},e.ɵprov=s.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()}}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[179],{9199:(e,t,n)=>{n.d(t,{d:()=>r});var i=n(4650);let r=(()=>{class e{constructor(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵdir=i.ɵɵdefineDirective({type:e,selectors:[["","vexPageLayoutContent",""],["vex-page-layout-content"]],hostAttrs:[1,"vex-page-layout-content"]}),e})()},2237:(e,t,n)=>{n.d(t,{w:()=>s});var i=n(4650);const r=["*"];let s=(()=>{class e{constructor(){this.mode="simple"}get isCard(){return"card"===this.mode}get isSimple(){return"simple"===this.mode}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i.ɵɵdefineComponent({type:e,selectors:[["vex-page-layout"]],hostAttrs:[1,"vex-page-layout"],hostVars:4,hostBindings:function(e,t){2&e&&i.ɵɵclassProp("vex-page-layout-card",t.isCard)("vex-page-layout-simple",t.isSimple)},inputs:{mode:"mode"},ngContentSelectors:r,decls:1,vars:0,template:function(e,t){1&e&&(i.ɵɵprojectionDef(),i.ɵɵprojection(0))},styles:[".vex-page-layout{display:block}.vex-page-layout-simple .vex-page-layout-content{padding-bottom:var(--padding-gutter);padding-top:var(--padding-gutter)}.vex-page-layout-card{padding-bottom:var(--padding)}.vex-page-layout-card .vex-page-layout-header{margin-bottom:calc(var(--page-layout-toolbar-height) * -1);padding-bottom:var(--page-layout-toolbar-height)}.vex-page-layout-card .vex-page-layout-content>*>.mat-tab-group .mat-tab-label,.vex-page-layout-card .vex-page-layout-content>.mat-tab-group .mat-tab-label{height:var(--page-layout-toolbar-height)}.vex-page-layout-card .vex-page-layout-content>*>.mat-tab-group .mat-tab-label.mat-tab-label-active,.vex-page-layout-card .vex-page-layout-content>.mat-tab-group .mat-tab-label.mat-tab-label-active{opacity:1}.vex-page-layout-header{align-items:center;background-color:rgba(var(--color-primary),.1);box-sizing:content-box!important;display:flex;flex-direction:row;height:calc(var(--page-layout-header-height) - var(--page-layout-toolbar-height));padding-left:var(--padding);padding-right:var(--padding);place-content:center flex-start}.vex-page-layout-content{box-sizing:border-box;display:block;padding-left:var(--padding-gutter);padding-right:var(--padding-gutter)}\n"],encapsulation:2}),e})()},6383:(e,t,n)=>{n.d(t,{G:()=>s});var i=n(6895),r=n(4650);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({imports:[i.ez]}),e})()},1207:(e,t,n)=>{n.d(t,{x:()=>_});var i=n(6895),r=n(9299),s=n(3267),o=n(3162),a=n(3762),l=n(5681),c=n(4650);let d=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({providers:[{provide:a.yK,useValue:{latencyThreshold:80}}],imports:[i.ez,o.Cv,a.sS,l.n]}),e})();var u=n(9101),h=n(7392),p=n(4006);let m=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,u.ot,h.Ps,p.ReactiveFormsModule]}),e})();var f=n(9549),g=n(4385);let _=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,r.Bz,s.SJ,d,m,g.LD,f.lN,p.FormsModule,p.ReactiveFormsModule]}),e})()},9331:(e,t,n)=>{n.d(t,{b:()=>it,db:()=>et});var i=n(1481),r=n(4650),s=n(9299),o=n(7582),a=n(9933),l=n(7403),c=n(5412),d=n(8460),u=n(6895),h=n(9101);function p(e,t){1&e&&(r.ɵɵelementStart(0,"div",8)(1,"h1"),r.ɵɵtext(2,"Política de privacidad"),r.ɵɵelementEnd(),r.ɵɵelementStart(3,"h2"),r.ɵɵtext(4,"1.- ¿Quién es el responsable del tratamiento de sus datos?"),r.ɵɵelementEnd(),r.ɵɵelementStart(5,"p"),r.ɵɵtext(6,"El responsable del tratamiento de sus datos personales es ALL4LEND S.L.,(en adelante, “BELENDER”), con N.I.F.: B-67425769 y domicilio social en Calle del Sol 19, Sant Andreu de la Barca, 08740, Barcelona, España."),r.ɵɵelementEnd(),r.ɵɵelementStart(7,"p"),r.ɵɵtext(8,"Le informamos que la titularidad de este Sitio Web (en adelante, el “Sitio Web”), es de BELENDER."),r.ɵɵelementEnd(),r.ɵɵelementStart(9,"p"),r.ɵɵtext(10,"El acceso y/o uso del Sitio Web, le atribuye la condición de Usuario (en adelante, el «Usuario»), e implica la aceptación, desde dicho acceso y/o uso, de la presente Política de Privacidad."),r.ɵɵelementEnd(),r.ɵɵelementStart(11,"p"),r.ɵɵtext(12),r.ɵɵelementEnd(),r.ɵɵelementStart(13,"h2"),r.ɵɵtext(14,"2.- ¿Por qué BELENDER está legitimado para llevar a cabo el tratamiento de datos?"),r.ɵɵelementEnd(),r.ɵɵelementStart(15,"p"),r.ɵɵtext(16,"BELENDER está legitimada para tratar sus datos para poder llevar a cabo la prestación de sus servicios."),r.ɵɵelementEnd(),r.ɵɵelementStart(17,"p"),r.ɵɵtext(18,"BELENDER se toma muy en serio la protección de su privacidad y de sus datos personales. Por lo tanto, su información personal se conserva de forma segura y se trata con el máximo cuidado."),r.ɵɵelementEnd(),r.ɵɵelementStart(19,"p"),r.ɵɵtext(20,"La presente Política de Privacidad regula el acceso y el uso al servicio (en adelante, el “Servicio”) que BELENDER pone a disposición del Usuario interesado en los servicios."),r.ɵɵelementEnd(),r.ɵɵelementStart(21,"p"),r.ɵɵtext(22,"En este sentido, las bases de legitimación utilizadas por BELENDER para el tratamiento de los datos de los Usuarios son:"),r.ɵɵelementEnd(),r.ɵɵelementStart(23,"ul")(24,"li"),r.ɵɵtext(25,"La ejecución de un contrato en el que el Usuario es parte."),r.ɵɵelementEnd(),r.ɵɵelementStart(26,"li"),r.ɵɵtext(27,"El consentimiento de los Usuarios al tratamiento de sus datos personales para las finalidades especificadas en cada caso."),r.ɵɵelementEnd()(),r.ɵɵelementStart(28,"h2"),r.ɵɵtext(29,"3.- ¿Cuáles son las finalidades del tratamiento de sus datos de carácter personal por parte de BELENDER?"),r.ɵɵelementEnd(),r.ɵɵelementStart(30,"p"),r.ɵɵtext(31,"Sus datos de carácter personal recabados por BELENDER podrán ser utilizados para las siguientes finalidades, según el consentimiento otorgado en el formulario de registro correspondiente:"),r.ɵɵelementEnd(),r.ɵɵelementStart(32,"p"),r.ɵɵtext(33,"La prestación de los servicios de BELENDER."),r.ɵɵelementEnd(),r.ɵɵelementStart(34,"p"),r.ɵɵtext(35,"Para la prestación del servicio demandado por el Usuario, BELENDER necesitará tratar datos personales obtenidos a partir de la información que el Usuario facilite a BELENDER"),r.ɵɵelementEnd(),r.ɵɵelementStart(36,"p"),r.ɵɵtext(37,"El envío de comunicaciones comerciales y/o Newsletter por parte de BELENDER:"),r.ɵɵelementEnd(),r.ɵɵelementStart(38,"p"),r.ɵɵtext(39,"Esta finalidad será el envío al usuario registrado, por carta, teléfono, correo electrónico, SMS/MMS, o por otros medios de comunicación electrónica equivalentes por parte de BELENDER de información y comunicaciones comerciales sobre los Servicios que puedan resultar de su interés."),r.ɵɵelementEnd(),r.ɵɵelementStart(40,"h2"),r.ɵɵtext(41,"4.- Veracidad de los datos facilitados por los Usuarios"),r.ɵɵelementEnd(),r.ɵɵelementStart(42,"p"),r.ɵɵtext(43,"El Usuario garantiza que los datos personales facilitados son veraces y se hace responsable de comunicar a BELENDER cualquier modificación de estos. El Usuario responderá, en cualquier caso, de la veracidad de los datos facilitados, reservándose BELENDER el derecho a excluir de los Servicios registrados a todo Usuario que haya facilitado datos falsos, sin perjuicio de las demás acciones que procedan en Derecho."),r.ɵɵelementEnd(),r.ɵɵelementStart(44,"h2"),r.ɵɵtext(45,"5.-Conservación de los datos"),r.ɵɵelementEnd(),r.ɵɵelementStart(46,"p"),r.ɵɵtext(47,"Los datos personales proporcionados se conservarán por parte de BELENDER mientras el Usuario no manifieste su voluntad de darse de baja de los servicios de BELENDER, y ello con la finalidad de recibir información sobre productos de BELENDER. Posteriormente, en caso de ser necesario, BELENDER mantendrá la información bloqueada los plazos legalmente establecidos."),r.ɵɵelementEnd(),r.ɵɵelementStart(48,"h2"),r.ɵɵtext(49,"6.- Derechos del Usuario en relación con sus datos"),r.ɵɵelementEnd(),r.ɵɵelementStart(50,"p"),r.ɵɵtext(51,"El Usuario tiene derecho a:"),r.ɵɵelementEnd(),r.ɵɵelementStart(52,"ul")(53,"li"),r.ɵɵtext(54,"Acceder a sus datos personales."),r.ɵɵelementEnd(),r.ɵɵelementStart(55,"li"),r.ɵɵtext(56,"Solicitar la rectificación de los datos inexactos"),r.ɵɵelementEnd(),r.ɵɵelementStart(57,"li"),r.ɵɵtext(58,"Solicitar su supresión."),r.ɵɵelementEnd(),r.ɵɵelementStart(59,"li"),r.ɵɵtext(60,"Solicitar la limitación del tratamiento de sus datos."),r.ɵɵelementEnd(),r.ɵɵelementStart(61,"li"),r.ɵɵtext(62,"Oponerse al tratamiento de sus datos."),r.ɵɵelementEnd(),r.ɵɵelementStart(63,"li"),r.ɵɵtext(64,"Solicitar su portabilidad."),r.ɵɵelementEnd(),r.ɵɵelementStart(65,"li"),r.ɵɵtext(66,"No ser objeto de decisiones individuales automatizadas."),r.ɵɵelementEnd()(),r.ɵɵelementStart(67,"p"),r.ɵɵtext(68),r.ɵɵelementEnd(),r.ɵɵelementStart(69,"p"),r.ɵɵtext(70,"El Usuario puede también enviar su petición por correo ordinario a la siguiente dirección:"),r.ɵɵelementEnd(),r.ɵɵelementStart(71,"div",9)(72,"p"),r.ɵɵtext(73,"ALL4LEND S.L."),r.ɵɵelementEnd(),r.ɵɵelementStart(74,"p"),r.ɵɵtext(75," N.I.F.: B-67425769"),r.ɵɵelementEnd(),r.ɵɵelementStart(76,"p"),r.ɵɵtext(77,"Calle del Sol 19, Sant Andreu de la Barca, 08740, Barcelona."),r.ɵɵelementEnd()(),r.ɵɵelementStart(78,"p"),r.ɵɵtext(79,"Sin perjuicio de cualquier otro recurso administrativo o acción judicial, el Usuario tendrá derecho a presentar una reclamación ante una Autoridad de Control, en particular en el Estado miembro en el que tenga su residencia habitual, lugar de trabajo o lugar de la supuesta infracción, en caso de que considere que el tratamiento de sus datos personales no es adecuado a la normativa, así como en el caso de no ver satisfecho el ejercicio de sus derechos. La autoridad de control ante la que se haya presentado la reclamación informará al reclamante sobre el curso y el resultado de la reclamación."),r.ɵɵelementEnd(),r.ɵɵelementStart(80,"h2"),r.ɵɵtext(81,"7.- Seguridad de los datos"),r.ɵɵelementEnd(),r.ɵɵelementStart(82,"p"),r.ɵɵtext(83,"La protección de la privacidad y los datos personales de los Usuarios es muy importante para BELENDER. Por lo tanto, BELENDER hace todo lo que está en su mano para impedir que sus datos se utilicen de forma inadecuada, permitiendo el acceso a los mismos únicamente a personal autorizado."),r.ɵɵelementEnd(),r.ɵɵelementStart(84,"p"),r.ɵɵtext(85,"BELENDER mantiene los niveles de seguridad de protección de datos personales conforme a la normativa aplicable y ha establecido todos los medios técnicos a su alcance para evitar la pérdida, mal uso, alteración, acceso no autorizado y robo de los datos que el Usuario facilite a través del Sitio Web sin perjuicio de informarle de que las medidas de seguridad en Internet no son inexpugnables."),r.ɵɵelementEnd(),r.ɵɵelementStart(86,"p"),r.ɵɵtext(87,"BELENDER se compromete a cumplir con el deber de secreto y confidencialidad respecto de los datos personales de acuerdo con la legislación aplicable, así como a conferirles un tratamiento seguro en las cesiones y transferencias internacionales de datos que, en su caso, puedan producirse."),r.ɵɵelementEnd(),r.ɵɵelementStart(88,"p"),r.ɵɵtext(89,"En aquellos servicios del Sitio Web que precisen registrarse como Usuario, se deberá elegir una contraseña. El Usuario es el responsable de mantener la confidencialidad de esta contraseña, así como de todas las actividades que ocurran en la sesión iniciada con su nombre y contraseña."),r.ɵɵelementEnd(),r.ɵɵelementStart(90,"p"),r.ɵɵtext(91,"El Usuario se compromete a notificar BELENDER a la mayor brevedad el uso no autorizado de su nombre de Usuario y/o contraseña o cualquier otro fallo en la seguridad. BELENDER no será responsable por los daños o pérdidas que se pudieran originar debido al no cumplimiento de esta obligación por parte del Usuario."),r.ɵɵelementEnd(),r.ɵɵelementStart(92,"h2"),r.ɵɵtext(93,"8.-Cambios"),r.ɵɵelementEnd(),r.ɵɵelementStart(94,"p"),r.ɵɵtext(95,"BELENDER se reserva el derecho de revisar su Política de Privacidad en el momento que considere oportuno. Por esta razón, le rogamos que compruebe de forma regular esta Política de Privacidad para leer la versión más reciente de la misma."),r.ɵɵelementEnd(),r.ɵɵelementStart(96,"p"),r.ɵɵtext(97,"No obstante, cualquier cambio que se produzca en la presente Política de Privacidad se comunicará al Usuario."),r.ɵɵelementEnd(),r.ɵɵelementStart(98,"h2"),r.ɵɵtext(99,"9.- Links a páginas web"),r.ɵɵelementEnd(),r.ɵɵelementStart(100,"p"),r.ɵɵtext(101,"EL Sitio Web de BELENDER podría contener links a páginas web de compañías y entidades de terceros. BELENDER no puede hacerse responsable de la forma en la que estas compañías tratan la protección de la privacidad y de los datos personales, por lo que le aconsejamos que lea detenidamente las declaraciones de Política de Privacidad de estas páginas web que no son propiedad de BELENDER con relación al uso, procesamiento y protección de datos personales."),r.ɵɵelementEnd(),r.ɵɵelementStart(102,"p"),r.ɵɵtext(103,"Las condiciones que ofrecen estas páginas web pueden no ser las mismas que las que ofrece BELENDER."),r.ɵɵelementEnd(),r.ɵɵelementStart(104,"h2"),r.ɵɵtext(105,"10.- Preguntas"),r.ɵɵelementEnd(),r.ɵɵelementStart(106,"p"),r.ɵɵtext(107),r.ɵɵelementEnd(),r.ɵɵelementStart(108,"h2"),r.ɵɵtext(109,"11.- Aceptación y Consentimiento."),r.ɵɵelementEnd(),r.ɵɵelementStart(110,"p"),r.ɵɵtext(111,"El Usuario declara haber sido informado de las condiciones sobre protección de datos personales, aceptando y consintiendo el tratamiento de estos por parte de BELENDER, en la forma y para las finalidades indicadas en la presente Política de Privacidad."),r.ɵɵelementEnd()()),2&e&&(r.ɵɵadvance(12),r.ɵɵtextInterpolate1("El Usuario podrá contactar con BELENDER en la siguiente dirección de correo electrónico: ","DPO@belender.eu",""),r.ɵɵadvance(56),r.ɵɵtextInterpolate1("El Usuario puede ejercer todos estos derechos a través de la siguiente dirección de email ","DPO@belender.eu"," indicando el motivo de su petición y aportando una copia de su D.N.I."),r.ɵɵadvance(39),r.ɵɵtextInterpolate1("Si tienen alguna pregunta sobre esta Política de Privacidad o el tratamiento de sus datos rogamos que se ponga en contacto con BELENDER mediante correo electrónico dirigido a la siguiente dirección de correo electrónico: ","DPO@belender.eu",""))}function m(e,t){if(1&e&&(r.ɵɵelementContainerStart(0),r.ɵɵelement(1,"div",10),r.ɵɵelementContainerEnd()),2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(1),r.ɵɵproperty("innerHTML",e.policy,r.ɵɵsanitizeHtml)}}function f(e,t){1&e&&(r.ɵɵelementStart(0,"div",11),r.ɵɵtext(1," Cargando políticas de privacidad "),r.ɵɵelementEnd())}let g=(()=>{class e{constructor(e,t){this.customizationStoreService=e,this.data=t,this.loading=!1,console.warn(this.data),this.customizationStoreService.getFunderStyles().subscribe((e=>{Object.keys(e).length>0&&(this.funderStyles=e)})),this.customizationStoreService.getFunderConfig().subscribe((e=>{Object.keys(e).length>0&&(this.funderConfig=e,this.setCustomization(this.funderConfig))}))}setCustomization(e){this.loading=!0,console.error(this.data),this.data&&this.data.flow&&this.data.allData&&this.data.allData[this.data.flow]&&this.data.allData[this.data.flow].texts&&this.data.allData[this.data.flow].texts.policy?this.policy=this.data.allData[this.data.flow].texts.policy:e&&e.policy&&(this.policy=e.policy),this.loading=!1}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵdirectiveInject(d.r),r.ɵɵdirectiveInject(c.WI))},e.ɵcmp=r.ɵɵdefineComponent({type:e,selectors:[["vex-policy"]],decls:10,vars:12,consts:[[1,"mat-typography"],[1,"p-[1rem]","flex","flex-col","items-center"],["class","w-full policy-page max-w-xl",4,"ngIf"],[4,"ngIf"],["class","w-full px-8 py-16 rounded-md bg-blue-500/20 text-blue-500 text-center",4,"ngIf"],["align","end"],["mat-flat-button","","mat-dialog-close","",1,"px-8","bg-slate-300/30"],["mat-flat-button","","type","button","cdkFocusInitial","",1,"px-8",3,"mat-dialog-close"],[1,"w-full","policy-page","max-w-xl"],[1,"p-3","rounded-md","mt-3","mb-3","bg-slate-100"],[1,"w-full","max-w-xl","policy-page",3,"innerHTML"],[1,"w-full","px-8","py-16","rounded-md","bg-blue-500/20","text-blue-500","text-center"]],template:function(e,t){1&e&&(r.ɵɵelementStart(0,"mat-dialog-content",0)(1,"div",1),r.ɵɵtemplate(2,p,112,3,"div",2),r.ɵɵtemplate(3,m,2,1,"ng-container",3),r.ɵɵtemplate(4,f,2,0,"div",4),r.ɵɵelementEnd()(),r.ɵɵelementStart(5,"mat-dialog-actions",5)(6,"button",6),r.ɵɵtext(7,"Cancelar"),r.ɵɵelementEnd(),r.ɵɵelementStart(8,"button",7),r.ɵɵtext(9,"Aceptar"),r.ɵɵelementEnd()()),2&e&&(r.ɵɵadvance(2),r.ɵɵproperty("ngIf",!t.policy&&!t.loading),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",t.policy&&!t.loading),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",t.loading),r.ɵɵadvance(2),r.ɵɵstyleProp("border-radius",t.funderStyles.btnRound+"px"),r.ɵɵadvance(2),r.ɵɵstyleProp("color",t.funderStyles.colors.btnText)("background",t.funderStyles.colors.btnBg)("border-radius",t.funderStyles.btnRound+"px"),r.ɵɵproperty("mat-dialog-close",!0))},dependencies:[u.O5,h.lW,c.ZT,c.xY,c.H8],styles:["h1[_ngcontent-%COMP%]{font-size:30px!important}h2[_ngcontent-%COMP%]{font-size:20px!important;margin-bottom:15px;margin-top:40px}ul[_ngcontent-%COMP%]{padding-left:20px;list-style:disc}p[_ngcontent-%COMP%]{margin:5px 0}"]}),e})();var _=n(9045),v=n(2237),y=n(9199);const b=["configpanel"],x=["widgetCard"];function w(e,t){if(1&e&&(r.ɵɵelementStart(0,"span"),r.ɵɵtext(1),r.ɵɵelementEnd()),2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(1),r.ɵɵtextInterpolate1("Copyright ©2023 ",e.copyrightName,"")}}function C(e,t){if(1&e){const e=r.ɵɵgetCurrentView();r.ɵɵelementStart(0,"div",9)(1,"div",10)(2,"a",11),r.ɵɵlistener("click",(function(t){r.ɵɵrestoreView(e);const n=r.ɵɵnextContext();return r.ɵɵresetView(n.gotoPolicy(t))})),r.ɵɵtext(3,"Política de privacidad"),r.ɵɵelementEnd()(),r.ɵɵelementStart(4,"div",12)(5,"a",11),r.ɵɵlistener("click",(function(t){r.ɵɵrestoreView(e);const n=r.ɵɵnextContext();return r.ɵɵresetView(n.gotoLegal(t))})),r.ɵɵtext(6," Aviso legal"),r.ɵɵelementEnd()()()}}function S(e,t){if(1&e){const e=r.ɵɵgetCurrentView();r.ɵɵelementStart(0,"div",9)(1,"div",12)(2,"a",11),r.ɵɵlistener("click",(function(t){r.ɵɵrestoreView(e);const n=r.ɵɵnextContext();return r.ɵɵresetView(n.gotoLegal(t))})),r.ɵɵtext(3," Aviso legal"),r.ɵɵelementEnd()()()}}let M=class{constructor(e,t){this.deviceInfoService=e,this.dialog=t,this.widgetHeight=0,this.copyrightName="",this.showCopyright=!1,this.isScaled=!1}ngOnInit(){this.getWindowsScreenOrientation(),this.copyrightName=function(){let e=window.location.hostname;return e.indexOf("belender.net")>-1?"Belender":(e.indexOf("bcds.net"),"")}()}ngOnDestroy(){window.screen&&window.screen.orientation&&this.orientationChangeHandler&&window.screen.orientation.removeEventListener("change",this.orientationChangeHandler)}ngDoCheck(){this.getWidgetCardHeight()}getWindowsScreenOrientation(){window.screen&&window.screen.orientation?(this.orientationChangeHandler=()=>{this.getWidgetCardHeight()},window.screen.orientation.addEventListener("change",this.orientationChangeHandler)):console.warn("Screen Orientation API not supported.")}getWidgetCardHeight(){this.widgetCard&&this.widgetHeight!=this.widgetCard.nativeElement.offsetHeight&&(this.widgetHeight=this.widgetCard.nativeElement.offsetHeight,this.isScaled$=this.deviceInfoService.isScaled$.subscribe((e=>{this.isScaled=e,this.isScaled&&(this.widgetHeight=1.5*this.widgetHeight)})),this.sendMessageToParent({type:"widgetHeight",data:this.widgetHeight}))}gotoPolicy(e){e.preventDefault(),e.stopPropagation(),this.dialog.open(g,{panelClass:"fullscreen-dialog"})}gotoLegal(e){e.preventDefault(),e.stopPropagation(),this.dialog.open(l.N,{panelClass:"fullscreen-dialog"})}sendMessageToParent(e){window.top.postMessage(e,"*")}};M.ɵfac=function(e){return new(e||M)(r.ɵɵdirectiveInject(_.H),r.ɵɵdirectiveInject(c.uw))},M.ɵcmp=r.ɵɵdefineComponent({type:M,selectors:[["vex-widget-boxed-layout"]],viewQuery:function(e,t){if(1&e&&(r.ɵɵviewQuery(b,7),r.ɵɵviewQuery(x,5)),2&e){let e;r.ɵɵqueryRefresh(e=r.ɵɵloadQuery())&&(t.configpanel=e.first),r.ɵɵqueryRefresh(e=r.ɵɵloadQuery())&&(t.widgetCard=e.first)}},decls:11,vars:3,consts:[[1,"content","belender-widget-wrapper","h-full","p-1","md:p-2"],[1,"card","rounded-none","h-fit","md:rounded-md","widget-boxed","p-0","shadow-none","md:shadow-md","mt-3","max-w-[726px]"],["widgetCard",""],[1,"belender-page-layout","h-full","p-0","md:p-4"],[1,"h-auto","overflow-y-visible","content-layout","overflow-x-hidden","content-widget","p-0","md:p-3"],[1,"footer","bg-slate-800","text-white","z-50","py-4","px-8","flex","flex-col","md:flex-row","justify-between","items-center"],[1,"copyright","mb-4","md:mb-0"],[4,"ngIf"],["class","links flex flex-col md:flex-row justify-end items-center",4,"ngIf"],[1,"links","flex","flex-col","md:flex-row","justify-end","items-center"],[1,"link","border-none","md:border-r-2","pr-0","md:pr-4"],["target","_blank",1,"text-sm","hover:text-green-500","cursor-pointer",3,"click"],[1,"link","pl-0","md:pl-4"]],template:function(e,t){1&e&&(r.ɵɵelementStart(0,"main",0)(1,"div",1,2)(3,"vex-page-layout",3)(4,"vex-page-layout-content",4),r.ɵɵelement(5,"router-outlet"),r.ɵɵelementEnd()()(),r.ɵɵelementStart(6,"div",5)(7,"div",6),r.ɵɵtemplate(8,w,2,1,"span",7),r.ɵɵelementEnd(),r.ɵɵtemplate(9,C,7,0,"div",8),r.ɵɵtemplate(10,S,4,0,"div",8),r.ɵɵelementEnd()()),2&e&&(r.ɵɵadvance(8),r.ɵɵproperty("ngIf",t.showCopyright),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",t.showCopyright),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",!t.showCopyright))},dependencies:[u.O5,s.lC,v.w,y.d],styles:[".card[_ngcontent-%COMP%]{margin:0 auto 70px;overflow:hidden;border-radius:20px;box-shadow:#0000001a 0 10px 50px}@media (min-width: 600px){.card[_ngcontent-%COMP%]{margin-top:30px!important}}@media (max-width: 600px){.card[_ngcontent-%COMP%]{border-radius:0}}.content[_ngcontent-%COMP%]{overflow:auto;padding-bottom:60px!important}@media (max-width: 992px){.content[_ngcontent-%COMP%]{padding-bottom:120px!important}}.footer[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;width:100%;box-shadow:0 -2px 2px #0000000d}"]}),M=(0,o.gn)([(0,a.c)()],M);var I=n(6e3),k=n(2567),E=n(2340),T=n(529);let P=(()=>{class e{constructor(e,t,n){this.routes=e,this.authS=t,this.http=n}login(e){return new Promise(((t,n)=>{e?this.http.post(E.N.baseUrl+"/login",e).subscribe((i=>{i&&i.status&&"success"==i.status?(localStorage.setItem("belender-user",JSON.stringify(e)),this.setUserData(i),t(i)):n(!1)}),(e=>{n(!1)})):n(!1)}))}setUserData(e){this.authS.setUserData(e.data),this.authS.setUserToken(e.token_type,e.access_token),this.authS.setUserId(e.data.user_id),this.authS.setFunderId(e.data.funder_id)}tryLocalLogin(){let e=localStorage.getItem("belender-user")?JSON.parse(localStorage.getItem("belender-user")):null;return this.login(e)}logout(){localStorage.removeItem("belender-user"),this.authS.setUserData(null),this.authS.setUserToken("",""),this.authS.setUserId(""),this.authS.setLogged(!1),this.routes.navigate(["login"])}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(s.F0),r.ɵɵinject(k.e),r.ɵɵinject(T.eN))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),O=(()=>{class e{constructor(e,t){this.auth=e,this.loginS=t}canActivate(){return new Promise(((e,t)=>{this.auth.isLogged()?e(!0):this.loginS.tryLocalLogin().then((t=>{e(!0)})).catch((e=>{location.assign(location.origin+"/login"),t(!1)}))}))}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(k.e),r.ɵɵinject(P))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac}),e})(),D=(()=>{class e{constructor(e,t){this.loginS=e,this.auth=t}canActivate(){return new Promise(((e,t)=>{this.auth.isLogged()?e(!0):this.loginS.tryLocalLogin().then((t=>{e(!0)})).catch((e=>{location.assign(location.origin+"/login"),t(!1)}))}))}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(P),r.ɵɵinject(k.e))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac}),e})();const L=[{path:"widget",loadChildren:()=>Promise.all([n.e(244),n.e(281),n.e(553)]).then(n.bind(n,6553)).then((e=>e.WidgetModule))},{path:"widget-boxed",component:M,children:[{path:"",loadChildren:()=>Promise.all([n.e(244),n.e(852)]).then(n.bind(n,7852)).then((e=>e.WidgetBoxedLayoutModule))}]}];let A=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[O,D],imports:[s.Bz.forRoot(L,{preloadingStrategy:I.tw,scrollPositionRestoration:"enabled",relativeLinkResolution:"corrected",anchorScrolling:"enabled"}),s.Bz,I.d8]}),e})();var N=n(7122);const R={blue:{light:"rgba(99, 102, 241, .1)",default:"rgb(99, 102, 241)",contrast:"rgb(255, 255, 255)"},gray:{light:"rgba(37, 37, 37, 0.1)",default:"rgb(37, 37, 37)",contrast:"rgb(255, 255, 255)"},red:{light:"rgba(244, 67, 54, 0.1)",default:"rgb(244, 67, 54)",contrast:"rgb(255, 255, 255)"},orange:{light:"rgba(255, 152, 0, 0.1)",default:"rgb(255, 152, 0)",contrast:"rgb(0, 0, 0)"},"deep-orange":{light:"rgba(255, 87, 34, 0.1)",default:"rgb(255, 87, 34)",contrast:"rgb(255, 255, 255)"},amber:{light:"rgba(255, 193, 7, 0.1)",default:"rgb(255, 193, 7)",contrast:"rgb(0, 0, 0)"},green:{light:"rgba(76, 175, 80, 0.1)",default:"rgb(76, 175, 80)",contrast:"rgb(255, 255, 255)"},teal:{light:"rgba(0, 150, 136, 0.1)",default:"rgb(0, 150, 136)",contrast:"rgb(255, 255, 255)"},cyan:{light:"rgba(0, 188, 212, 0.1)",default:"rgb(0, 188, 212)",contrast:"rgb(255, 255, 255)"},purple:{light:"rgba(156, 39, 176, 0.1)",default:"rgb(156, 39, 176)",contrast:"rgb(255, 255, 255)"},"deep-purple":{light:"rgba(103, 58, 183, 0.1)",default:"rgb(103, 58, 183)",contrast:"rgb(255, 255, 255)"},pink:{light:"rgba(233, 30, 99, 0.1)",default:"rgb(233, 30, 99)",contrast:"rgb(255, 255, 255)"}};var j=n(5861);function F(){return(F=(0,j.Z)((function*(){const e=H();return{user_agent:navigator.userAgent,ip:yield q(),browser:$(),device:W(),flowType:V(window.location.href),os:B(),os_version:U(),orientation:z(),isMobile:/Mobi|Android/i.test(navigator.userAgent),isDesktop:!/Mobi|Android/i.test(navigator.userAgent)&&!/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(navigator.userAgent.toLowerCase()),isTablet:/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(navigator.userAgent.toLowerCase()),screen:`{"width": ${e.width}, "height": ${e.height}}`}}))).apply(this,arguments)}function q(){return Y.apply(this,arguments)}function Y(){return(Y=(0,j.Z)((function*(){try{return(yield(yield fetch("https://api.ipify.org?format=json")).json()).ip}catch{return"Not available"}}))).apply(this,arguments)}function V(e){const t=e.split("/"),n=-1===t.indexOf("widget")?t.indexOf("widget-boxed"):t.indexOf("widget");return-1!==n&&n+1<t.length?t[n+1]:null}function H(){return{width:window.screen.width,height:window.screen.height}}function z(){return screen.orientation?screen.orientation.type:window.innerWidth>window.innerHeight?"landscape":"portrait"}function B(){const e=navigator.userAgent;let t="Unknow";return-1!==e.indexOf("Windows")?t="Windows":-1!==e.indexOf("Mac OS X")||-1!==e.indexOf("Macintosh")?t="macOS":-1!==e.indexOf("Linux")?t="Linux":-1!==e.indexOf("Android")?t="Android":-1!==e.indexOf("iOS")?t="iOS":-1!==e.indexOf("CrOS")?t="Chrome OS":-1!==e.indexOf("WinCE")&&(t="Windows CE"),t}function U(){const e=navigator.userAgent;let t="Unknow";if(-1!==e.indexOf("Windows NT 10.0"))t="Windows 10";else if(-1!==e.indexOf("Windows NT 6.3"))t="Windows 8.1";else if(-1!==e.indexOf("Windows NT 6.2"))t="Windows 8";else if(-1!==e.indexOf("Windows NT 6.1"))t="Windows 7";else if(-1!==e.indexOf("Windows NT 6.0"))t="Windows Vista";else if(-1!==e.indexOf("Windows NT 5.1"))t="Windows XP";else if(-1!==e.indexOf("Windows NT 5.0"))t="Windows 2000";else if(-1!==e.indexOf("Mac OS X 10_")){const n=e.match(/Mac OS X 10_([0-9_]+)/);t=n&&n[1]?"macOS "+n[1].replace(/_/g,"."):"macOS"}else if(-1!==e.indexOf("Linux"))t="Linux";else if(-1!==e.indexOf("Android")){const n=e.match(/Android ([0-9.]+)/);t=n&&n[1]?"Android "+n[1]:"Android"}else if(-1!==e.indexOf("iOS")||-1!==e.indexOf("Mac OS")){const n=e.match(/OS ([0-9_]+) like Mac OS X/);t=n&&n[1]?"iOS "+n[1].replace(/_/g,"."):"iOS"}return t}function W(){const e=navigator.userAgent;let t="Unknow";const n=[{pattern:/iPhone/i,model:"iPhone"},{pattern:/iPad/i,model:"iPad"},{pattern:/Android/i,model:"Android Device"},{pattern:/SamsungBrowser\/([0-9.]+)/i,model:"Samsung"},{pattern:/HuaweiBrowser\/([0-9.]+)/i,model:"Huawei"},{pattern:/OPR\/([0-9.]+).*Mobile/i,model:"Opera Mobile"},{pattern:/MiuiBrowser\/([0-9.]+)/i,model:"Xiaomi"},{pattern:/LG-?([A-Za-z0-9]+)/i,model:"LG"},{pattern:/HTC ([A-Za-z0-9]+)/i,model:"HTC"},{pattern:/Nexus ([0-9]+)/i,model:"Nexus"},{pattern:/Pixel ([0-9]+)/i,model:"Pixel"},{pattern:/Windows Phone ([\d.]+)/i,model:"Windows Phone"},{pattern:/Kindle Fire/i,model:"Kindle Fire"},{pattern:/Silk/i,model:"Amazon Silk"},{pattern:/Windows /i,model:"Desktop"}];for(const i of n)if(i.pattern.test(e)){const n=e.match(i.pattern);t=n&&n[1]?`${i.model} ${n[1]}`:i.model;break}return t}function $(){const e=navigator.userAgent;let t="Desconocido";return-1!==e.indexOf("Chrome")&&-1!==e.indexOf("Safari")?t="Chrome":-1!==e.indexOf("Firefox")?t="Firefox":-1!==e.indexOf("Safari")?t="Safari":-1!==e.indexOf("Edge")?t="Edge":-1!==e.indexOf("Opera")||-1!==e.indexOf("OPR/")?t="Opera":-1!==e.indexOf("Trident")&&(t="Internet Explorer"),t}var G=n(1135);function Z(e,t){const n=e=>e&&"object"==typeof e;return n(e)&&n(t)?(Object.keys(t).forEach((i=>{const r=e[i],s=t[i];e[i]=Array.isArray(r)&&Array.isArray(s)?r.concat(s):n(r)&&n(s)?Z(Object.assign({},r),s):s})),e):t}var K,Q=((K=Q||(Q={})).apollo="vex-layout-apollo",K.zeus="vex-layout-zeus",K.hermes="vex-layout-hermes",K.poseidon="vex-layout-poseidon",K.ares="vex-layout-ares",K.ikaros="vex-layout-ikaros",Q),X=(()=>{return(e=X||(X={})).light="vex-style-light",e.default="vex-style-default",e.dark="vex-style-dark",X;var e})();const J={id:Q.apollo,name:"Apollo",style:{colorScheme:X.default,colors:{primary:R.blue},borderRadius:{value:.25,unit:"rem"},button:{borderRadius:void 0}},direction:"ltr",imgSrc:"//vex-landing.visurel.com/assets/img/layouts/apollo.png",layout:"horizontal",boxed:!1,sidenav:{title:"Belender",imageUrl:"assets/img/demo/logo.svg",showCollapsePin:!0,user:{visible:!0},search:{visible:!0},state:"expanded"},toolbar:{fixed:!0,user:{visible:!0}},navbar:{position:"below-toolbar"},footer:{visible:!0,fixed:!0}},ee=[J,Z({...J},{id:Q.poseidon,name:"Poseidon",imgSrc:"//vex-landing.visurel.com/assets/img/layouts/poseidon.png",style:{borderRadius:{value:.5,unit:"rem"},button:{borderRadius:{value:9999,unit:"px"}}},sidenav:{user:{visible:!0},search:{visible:!0}},toolbar:{user:{visible:!1}},footer:{fixed:!1}}),Z({...J},{id:Q.hermes,name:"Hermes",imgSrc:"//vex-landing.visurel.com/assets/img/layouts/hermes.png",layout:"vertical",boxed:!0,sidenav:{user:{visible:!1},search:{visible:!1}},toolbar:{fixed:!1},footer:{fixed:!1}}),Z({...J},{id:Q.ares,name:"Ares",imgSrc:"//vex-landing.visurel.com/assets/img/layouts/ares.png",sidenav:{user:{visible:!1},search:{visible:!1}},toolbar:{fixed:!1},navbar:{position:"in-toolbar"},footer:{fixed:!1}}),Z({...J},{id:Q.zeus,name:"Zeus",imgSrc:"//vex-landing.visurel.com/assets/img/layouts/zeus.png",sidenav:{state:"collapsed"}}),Z({...J},{id:Q.ikaros,name:"Ikaros",imgSrc:"//vex-landing.visurel.com/assets/img/layouts/ikaros.png",layout:"vertical",boxed:!0,sidenav:{user:{visible:!1},search:{visible:!1}},toolbar:{fixed:!1},navbar:{position:"in-toolbar"},footer:{fixed:!1}})];var te=n(4004),ne=n(2289);let ie=(()=>{class e{constructor(e,t){this.router=e,this.breakpointObserver=t,this._quickpanelOpenSubject=new G.X(!1),this.quickpanelOpen$=this._quickpanelOpenSubject.asObservable(),this._sidenavOpenSubject=new G.X(!1),this.sidenavOpen$=this._sidenavOpenSubject.asObservable(),this._sidenavCollapsedSubject=new G.X(!1),this.sidenavCollapsed$=this._sidenavCollapsedSubject.asObservable(),this._sidenavCollapsedOpenSubject=new G.X(!1),this.sidenavCollapsedOpen$=this._sidenavCollapsedOpenSubject.asObservable(),this._configpanelOpenSubject=new G.X(!1),this.configpanelOpen$=this._configpanelOpenSubject.asObservable(),this._searchOpen=new G.X(!1),this.searchOpen$=this._searchOpen.asObservable(),this.isDesktop$=this.breakpointObserver.observe("(min-width: 1280px)").pipe((0,te.U)((e=>e.matches))),this.ltLg$=this.breakpointObserver.observe("(max-width: 1279px)").pipe((0,te.U)((e=>e.matches))),this.gtMd$=this.breakpointObserver.observe("(min-width: 960px)").pipe((0,te.U)((e=>e.matches))),this.ltMd$=this.breakpointObserver.observe("(max-width: 959px)").pipe((0,te.U)((e=>e.matches))),this.gtSm$=this.breakpointObserver.observe("(min-width: 600px)").pipe((0,te.U)((e=>e.matches))),this.isMobile$=this.breakpointObserver.observe("(max-width: 599px)").pipe((0,te.U)((e=>e.matches))),this.isLtLg=()=>this.breakpointObserver.isMatched("(max-width: 1279px)"),this.isMobile=()=>this.breakpointObserver.isMatched("(max-width: 599px)")}openQuickpanel(){this._quickpanelOpenSubject.next(!0)}closeQuickpanel(){this._quickpanelOpenSubject.next(!1)}openSidenav(){this._sidenavOpenSubject.next(!0)}closeSidenav(){this._sidenavOpenSubject.next(!1)}collapseSidenav(){this._sidenavCollapsedSubject.next(!0)}expandSidenav(){this._sidenavCollapsedSubject.next(!1)}collapseOpenSidenav(){this._sidenavCollapsedOpenSubject.next(!0)}collapseCloseSidenav(){this._sidenavCollapsedOpenSubject.next(!1)}openConfigpanel(){this._configpanelOpenSubject.next(!0)}closeConfigpanel(){this._configpanelOpenSubject.next(!1)}openSearch(){this._searchOpen.next(!0)}closeSearch(){this._searchOpen.next(!1)}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(s.F0),r.ɵɵinject(ne.Yg))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),re=(()=>{class e{constructor(e,t){this.document=e,this.layoutService=t,this.defaultConfig=Q.poseidon,this.configs=ee,this._configSubject=new G.X(this.configs.find((e=>e.id===this.defaultConfig))),this.config$=this._configSubject.asObservable(),this.config$.subscribe((e=>this._updateConfig(e)))}select(e){return this.config$.pipe((0,te.U)(e))}setConfig(e){const t=this.configs.find((t=>t.id===e));this._configSubject.next(t)}updateConfig(e){this._configSubject.next(Z({...this._configSubject.getValue()},e))}_updateConfig(e){this._setLayoutClass(e.id),this._setStyle(e.style),this._setDirection(e.direction),this._setSidenavState(e.sidenav.state),this._emitResize()}_setStyle(e){Object.values(X).filter((t=>t!==e.colorScheme)).forEach((e=>{this.document.body.classList.contains(e)&&this.document.body.classList.remove(e)})),this.document.body.classList.add(e.colorScheme),this.document.body.style.setProperty("--border-radius",`${e.borderRadius.value}${e.borderRadius.unit}`);const t=e.button.borderRadius??e.borderRadius;this.document.body.style.setProperty("--button-border-radius",`${t.value}${t.unit}`),this.document.body.style.setProperty("--color-primary",e.colors.primary.default.replace("rgb(","").replace(")","")),this.document.body.style.setProperty("--color-primary-contrast",e.colors.primary.contrast.replace("rgb(","").replace(")",""))}_emitResize(){window&&(window.dispatchEvent(new Event("resize")),setTimeout((()=>window.dispatchEvent(new Event("resize"))),200))}_setDirection(e){this.document.body.dir=e}_setSidenavState(e){"expanded"===e?this.layoutService.expandSidenav():this.layoutService.collapseSidenav()}_setLayoutClass(e){this.configs.forEach((e=>{this.document.body.classList.contains(e.id)&&this.document.body.classList.remove(e.id)})),this.document.body.classList.add(e)}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(u.K0),r.ɵɵinject(ie))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var se=n(7579);let oe=(()=>{class e{constructor(){this.items=[],this._openChangeSubject=new se.x,this.openChange$=this._openChangeSubject.asObservable()}triggerOpenChange(e){this._openChangeSubject.next(e)}isLink(e){return"link"===e.type}isDropdown(e){return"dropdown"===e.type}isSubheading(e){return"subheading"===e.type}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var ae=n(7392),le=n(5895),ce=n(7367),de=n(5089),ue=n(7308);let he=(()=>{class e{constructor(e,t,n){this.utils=e,this.http=t,this.notis=n,this.apiKey="c64f20df286ab488fb1c91a2ed3cf9ec",this.token="ATTA9ff959a5d74920c598df2c9fd30314e41a5894ad23049c639cc8bba2be531d38541FAF61",this.boardKey="63d3d226511802fc84ab6fb3",this.basicUrl="https://api.trello.com/1/",this.testUrl="https://docs.test.nb-ric.com/api/request/clave_pin/verify",this.personalUrl="https://docs.test.nb-ric.com/api/request/natural_person"}getTrelloCards(){return this.http.get(this.basicUrl+"boards/"+this.boardKey+"/cards?key="+this.apiKey+"&token="+this.token)}getInfoCard(e){return this.http.get(this.basicUrl+"lists/"+e+"?key="+this.apiKey+"&token="+this.token)}updateCard(e){return this.http.put(this.basicUrl+"cards/"+e.id+"?key="+this.apiKey+"&token="+this.token,e)}addCard(e){return this.http.post(this.basicUrl+"cards?idList="+e.idList+"&keepFromSource=all&key="+this.apiKey+"&token="+this.token,e)}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(de.F),r.ɵɵinject(T.eN),r.ɵɵinject(le.T))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var pe=n(182),me=n(1572);function fe(e,t){if(1&e&&(r.ɵɵelementStart(0,"div",2),r.ɵɵelement(1,"mat-progress-spinner",3),r.ɵɵelementStart(2,"p",4),r.ɵɵtext(3),r.ɵɵelementEnd()()),2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(3),r.ɵɵtextInterpolate(e.loading||e.systemLoading)}}function ge(e,t){if(1&e){const e=r.ɵɵgetCurrentView();r.ɵɵelementStart(0,"button",5),r.ɵɵlistener("click",(function(){r.ɵɵrestoreView(e);const t=r.ɵɵnextContext();return r.ɵɵresetView(t.toggleScale())})),r.ɵɵelement(1,"mat-icon",6),r.ɵɵelementEnd()}if(2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(1),r.ɵɵproperty("svgIcon",e.isScaled?"mat:zoom_out":"mat:zoom_in")}}let _e=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,d,u,h,p,m,f,g,_){this.configService=e,this.localeId=t,this.auth=n,this.navigationService=i,this.matIconRegistry=r,this.domSanitizer=s,this.notiService=o,this.customizationService=a,this.customizationStoreService=l,this.utils=c,this.cdRef=d,this.translateService=u,this.trelloService=h,this.webhooksService=p,this.router=m,this.deviceInfoService=f,this.route=g,this.renderer=_,this._isWebComponent=!1,this._userId=null,this._requestId=null,this._packageId=null,this._flowType=null,this._documentNumber=null,this._documentExpirationDate=null,this._documentSupport=null,this._phone=null,this._email=null,this._birthDate=null,this._urlPath=null,this.loading=!1,this.systemLoading=null,this.isScaled=!1,this.showScaleButton=!0,this.funderConfigLoaded=!1,this.funderStylesLoaded=!1,this.systemLoading="Cargando sistema",this.auth.bindUserData().subscribe((e=>{e&&(this.financiadorID=e.funder_id,this.userID=e.user_id,this.setSidenavItems(),this.bindFirebaseNotifications(e.funder_id)),this.systemLoading=null})),N.Zr.defaultLocale=this.localeId,this.matIconRegistry.addSvgIconResolver(((e,t)=>{switch(t){case"mat":return this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/img/icons/material-design-icons/two-tone/${e}.svg`);case"logo":return this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/img/icons/logos/${e}.svg`);case"flag":return this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/img/icons/flags/${e}.svg`)}}));const v=R.gray;let y=null;localStorage.getItem("belender-sidenav-closed")&&(y=JSON.parse(localStorage.getItem("belender-sidenav-closed"))?"collapsed":"expanded"),v&&this.configService.updateConfig({style:{colors:{primary:v}},sidenav:{state:y||"collapsed"}})}set isWebComponent(e){this._isWebComponent=e,console.log("isWebComponent received:",e)}get isWebComponent(){return this._isWebComponent}set userID(e){this._userId=e,console.log("userID received:",e)}get userID(){return this._userId}set requestId(e){this._requestId=e,console.log("requestId received:",e)}get requestId(){return this._requestId}set packageId(e){this._packageId=e,console.log("packageId received:",e)}get packageId(){return this._packageId}set flowType(e){this._flowType=e,console.log("flowType received:",e)}get flowType(){return this._flowType}set documentNumber(e){this._documentNumber=e,console.log("documentNumber received:",e)}get documentNumber(){return this._documentNumber}set documentExpirationDate(e){this._documentExpirationDate=e,console.log("documentExpirationDate received:",e)}get documentExpirationDate(){return this._documentExpirationDate}set documentSupport(e){this._documentSupport=e,console.log("documentSupport received:",e)}get documentSupport(){return this._documentSupport}set phone(e){this._phone=e,console.log("phone received:",e)}get phone(){return this._phone}set email(e){this._email=e,console.log("email received:",e)}get email(){return this._email}set birthDate(e){this._birthDate=e,console.log("birthDate received:",e)}get birthDate(){return this._birthDate}set urlPath(e){this._urlPath=e,console.log("urlPath received:",e)}get urlPath(){return this._urlPath}ngOnInit(){console.log("AppComponent initialized with encapsulation:",E.N.isWebComponent?"ShadowDom":"Emulated"),function(){return F.apply(this,arguments)}().then((e=>{this.deviceInfoService.setDeviceInfo(e)})),this.route.queryParams.subscribe((e=>{"true"===e.scaled&&(this.isScaled=!0,this.deviceInfoService.setScaled(this.isScaled),this.updateScale())})),window.location.href.indexOf("widget-boxed")>-1||(this.showScaleButton=!1)}ngAfterViewChecked(){this.utils.getLoading().subscribe((e=>{this.loading=e,this.cdRef.detectChanges()}));let e=function(){let e=window.location.hostname;return e.indexOf("belender.net")>-1?"Belender":e.indexOf("bcds.net")>-1?"BC Digital":"Belender"}();document.title=e}ngOnChanges(){this.isWebComponent&&this.setUrlPath()}setUrlPath(){if(0==this.urlPath?.length||!this.urlPath){const e=["/widget",this.flowType,this.userID,this.packageId],t={request_id:this.requestId,document_number:this.documentNumber,document_expiration_date:this.documentExpirationDate,document_support:this.documentSupport,phone:this.phone,email:this.email,birth_date:this.birthDate};Object.keys(t).forEach((e=>null==t[e]&&delete t[e]));const n=this.router.createUrlTree(e,{queryParams:t});this.urlPath=this.router.serializeUrl(n)}this.router.navigateByUrl(this.urlPath,{skipLocationChange:!0})}bindFirebaseNotifications(e){this.notiService.bindFunderNotifications(e)}toggleScale(){this.isScaled=!this.isScaled,this.deviceInfoService.setScaled(this.isScaled),this.updateScale()}updateScale(){const e=document.body;e&&(this.isScaled?this.renderer.addClass(e,"scaled"):this.renderer.removeClass(e,"scaled"))}setSidenavItems(){this.navigationService.items=[this.getRequestZone(),this.getConfigZone()]}getRequestZone(){return{type:"subheading",label:"SOLICITUDES",children:[{type:"link",label:this.translateService.data.sidenav.all_requests,route:"/solicitudes/all",icon:"mat:assignment"},{type:"link",label:this.translateService.data.sidenav.new_request,route:"/solicitudes/new",icon:"mat:add_circle",className:"text-purple-500"}]}}getWidgetItem(){return{type:"subheading",label:"Widget",children:[{type:"link",label:"Widget",route:"/widget-boxed/sms/"+this.userID+"/626bc43f-f0e2-464b-b550-b5cd3a8c24d4",icon:"mat:extension",target:"_blank"}]}}getConfigZone(){return{type:"subheading",label:this.translateService.data.sidenav.config,children:[{type:"link",label:this.translateService.data.sidenav.customization,route:"config/customization",icon:"mat:format_paint"}]}}getAdminZone(){let e={type:"subheading",hide:!0,label:"Admin config",children:[]};return"BackOffice"==this.auth.getUserRole()&&(e.hide=!1,e.children.push({type:"link",label:"Testing",route:"admin-config/test",icon:"mat:info"}),e.children.push({type:"link",label:"Files",route:"admin-config/files-table",icon:"mat:attachment"}),e.children.push({type:"link",label:"Users",route:"admin-config/users",icon:"mat:supervised_user_circle"})),e}getKycZone(){let e={type:"subheading",hide:!0,label:"KYC",children:[]};return"BackOffice"==this.auth.getUserRole()&&(e.hide=!1,e.children.push({type:"link",label:"Customizate",route:"kyc/custom",icon:"mat:info"},{type:"link",label:"Form",route:"kyc/form",icon:"mat:info"})),e}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵdirectiveInject(re),r.ɵɵdirectiveInject(r.LOCALE_ID),r.ɵɵdirectiveInject(k.e),r.ɵɵdirectiveInject(oe),r.ɵɵdirectiveInject(ae.jv),r.ɵɵdirectiveInject(i.DomSanitizer),r.ɵɵdirectiveInject(le.T),r.ɵɵdirectiveInject(ce.w),r.ɵɵdirectiveInject(d.r),r.ɵɵdirectiveInject(de.F),r.ɵɵdirectiveInject(r.ChangeDetectorRef),r.ɵɵdirectiveInject(ue.D),r.ɵɵdirectiveInject(he),r.ɵɵdirectiveInject(pe.t),r.ɵɵdirectiveInject(s.F0),r.ɵɵdirectiveInject(_.H),r.ɵɵdirectiveInject(s.gz),r.ɵɵdirectiveInject(r.Renderer2))},e.ɵcmp=r.ɵɵdefineComponent({type:e,selectors:[["vex-root"]],hostVars:4,hostBindings:function(e,t){2&e&&r.ɵɵstyleProp("position",t.isWebComponent?"relative":null)("display",t.isWebComponent?"block":null)},inputs:{isWebComponent:["is-web-component","isWebComponent"],userID:["user-id","userID"],requestId:["request-id","requestId"],packageId:["package-id","packageId"],flowType:["flow-type","flowType"],documentNumber:["document-number","documentNumber"],documentExpirationDate:["document-expiration-date","documentExpirationDate"],documentSupport:["document-support","documentSupport"],phone:"phone",email:"email",birthDate:["birth-date","birthDate"],urlPath:["url-path","urlPath"]},features:[r.ɵɵNgOnChangesFeature],decls:3,vars:2,consts:[["class","loading-wrapper animated fadeIn",4,"ngIf"],["class","toggle-scale-button","mat-icon-button","","aria-label","Zoom",3,"click",4,"ngIf"],[1,"loading-wrapper","animated","fadeIn"],["mode","indeterminate","color","primary"],[1,"mt-6","text-center","text-slate-800"],["mat-icon-button","","aria-label","Zoom",1,"toggle-scale-button",3,"click"],[3,"svgIcon"]],template:function(e,t){1&e&&(r.ɵɵelement(0,"router-outlet"),r.ɵɵtemplate(1,fe,4,1,"div",0),r.ɵɵtemplate(2,ge,2,1,"button",1)),2&e&&(r.ɵɵadvance(1),r.ɵɵproperty("ngIf",t.loading||t.systemLoading),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",t.showScaleButton))},dependencies:[u.O5,s.lC,me.Ou,ae.Hw],styles:[".loading-wrapper{position:absolute;top:0;width:100%;height:100%;background:white;z-index:9999999!important;display:flex;justify-content:center;align-items:center;flex-direction:column}.loading-wrapper p{padding:10px 30px;border-radius:100px}body{max-height:100vh;overflow-y:auto}.logo-belender{opacity:1;display:flex;align-items:center;justify-content:flex-start;height:100px;width:100px;zoom:.75;transform:translate(10px)}.curve-belender{opacity:1;border-right:20px solid #7BB062;height:100px;border-top:20px solid #7BB062;border-bottom:20px solid #7BB062;width:100px;border-radius:0 50px 50px 0;display:flex;align-items:center;justify-content:flex-start;animation:compressLogo 2s infinite}.dash-belender{height:18.5px;background:#7BB062;width:51px;position:relative;margin-left:-100px;animation:loopLogo 2s infinite}.img-logo{width:100px;position:absolute;left:calc(50% - 50px);top:calc(50% - 72px);opacity:.4;display:none}@keyframes loopLogo{0%{width:51px;background:#7BB062;transform:rotate(0);border-radius:0}50%{width:18px;background:#fff;transform:rotate(180deg);border-radius:10px}to{width:51px;background:#7BB062;transform:rotate(360deg);border-radius:0}}@keyframes compressLogo{0%{width:100px;transform:rotateY(0)}50%{width:70px}to{width:100px;transform:rotateY(360deg)}}@keyframes rotateLogo{0%{transform:rotateX(0)}to{transform:rotateX(360deg)}}.toggle-scale-button{position:fixed;z-index:20;top:5px;right:20px;padding:.5rem}@media (max-width: 767px){.toggle-scale-button{top:0;right:0}}.toggle-scale-button .mat-icon{width:40px;height:40px;border-radius:40px;background-color:#fff}\n"],encapsulation:3}),e})();var ve=n(1516),ye=n(1207),be=n(9549);let xe=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[{provide:be.o2,useValue:{appearance:"fill"}}],imports:[u.ez,ye.x,ye.x]}),e})();var we=n(7533),Ce=n(259),Se=n(7396),Me=n(7009),Ie=n(4006);let ke=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({imports:[u.ez,Ie.FormsModule,Ie.ReactiveFormsModule,be.lN,h.ot]}),e})();var Ee=n(3238),Te=n(2029),Pe=n(4468),Oe=n(7795),De=n(1452);const Le=[{path:"",component:l.N}];let Ae=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({imports:[s.Bz.forChild(Le),s.Bz,I.d8]}),e})();var Ne=n(6383),Re=n(5028);let je=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[ce.w],imports:[u.ez,Ae,we.q,me.Cq,Ne.G,Re.q]}),e})();const Fe=[{path:"",component:n(3755).$}];let qe=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({imports:[s.Bz.forChild(Fe),s.Bz,I.d8]}),e})();var Ye=n(7838);let Ve=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[ce.w],imports:[qe,we.q,me.Cq,Ne.G,Re.q,Ye.y]}),e})();const He=[{path:"",component:n(3746).R}];let ze=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({imports:[s.Bz.forChild(He),s.Bz,I.d8]}),e})();var Be=n(865);let Ue=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[ce.w],imports:[ze,we.q,me.Cq,Ne.G,Re.q,Ye.y,Be.q]}),e})();const We=[{path:"",component:g}];let $e=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({imports:[s.Bz.forChild(We),s.Bz,I.d8]}),e})(),Ge=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[ce.w],imports:[u.ez,$e,we.q,me.Cq,Ne.G,Re.q]}),e})();var Ze=n(1258),Ke=n(3295),Qe=n(8184);let Xe=(()=>{class e extends Qe.Xj{findHostElement(){let e=document.querySelector("belender-web-component");if(e)return e;const t=e=>{if(e.shadowRoot){const n=e.shadowRoot,i=n.querySelector("belender-web-component");if(i)return i;for(const e of Array.from(n.children)){const n=t(e);if(n)return n}}for(const n of Array.from(e.childNodes)){const e=t(n);if(e)return e}return null};return t(document.documentElement)}_createContainer(){const e=document.createElement("div");e.classList.add("cdk-overlay-container");const t=this.findHostElement();t?t.shadowRoot?(t.shadowRoot.appendChild(e),console.log("✅ Overlay inyectado en shadowRoot del WebComponent")):(t.appendChild(e),console.log("✅ Overlay inyectado dentro del WebComponent")):(document.body.appendChild(e),console.log("⚠️ No se encontró <belender-web-component>, usando <body>")),this._containerElement=e}}return e.ɵfac=function(){let t;return function(n){return(t||(t=r.ɵɵgetInheritedFactory(e)))(n||e)}}(),e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac}),e})();const Je=(0,Ce.ZF)({apiKey:"AIzaSyDy7m74amvuLzKW4sjEHAS8Epu4Q-UE9uk",authDomain:"belender-test.firebaseapp.com",projectId:"belender-test",storageBucket:"belender-test.appspot.com",messagingSenderId:"547098308614",appId:"1:547098308614:web:61ac7bd252b92a3854d387",databaseURL:"https://belender-test-default-rtdb.europe-west1.firebasedatabase.app/"}),et=(0,Se.ad)(Je);let tt=localStorage.getItem("belender-language");function nt(e){return()=>e.use(tt||"sp")}let it=(()=>{class e{constructor(e){if(this.injector=e,E.N.isWebComponent){console.log("📦 Generando BelenderWebComponent class...");const t=(0,De.iD)(_e,{injector:e});window.BelenderWebComponent=t}}ngDoBootstrap(){}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(r.Injector))},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[he,le.T,de.F,k.e,P,Te.F,ue.D,{provide:r.APP_INITIALIZER,useFactory:nt,deps:[ue.D],multi:!0},{provide:Ee.Ad,useValue:"es-ES"},{provide:Pe.gJ,useValue:{headless:!0}},{provide:Qe.Xj,useClass:Xe}],imports:[i.BrowserModule,A,ve.PW,T.JF,xe,we.q,me.Cq,Me.ZX,ke,Pe.FE.forRoot(),Oe.QA,ae.Ps,je,Ve,Ue,Ge,Ze.H,Ke.g]}),e})()},7533:(e,t,n)=>{n.d(t,{q:()=>q});var i=n(6895),r=n(1207),s=n(3683),o=n(9299),a=n(7392),l=n(3238),c=n(4650);let d=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,o.Bz,a.Ps,l.si]}),e})(),u=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez]}),e})();var h=n(9101);let p=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,l.si,o.Bz,a.Ps]}),e})();var m=n(5412),f=n(1561);let g=(()=>{class e{constructor(e,t,n){this.route=e,this.dialogRef=t,this.cd=n,this.searchedItems=[{label:"Tito Forns",path:"/solicitudes",section:"Todas las solicitudes",sectionIcon:"assigment"},{label:"Cosme Fulanito",path:"/solicitudes",section:"Todas las solicitudes",sectionIcon:"assigment"},{label:"Roger Olivares",path:"/solicitudes",section:"Todas las solicitudes",sectionIcon:"assigment"}],this.flow="SMS"}ngOnInit(){}gotoSection(e){this.route.navigate([e]),this.dialogRef.close()}setFlow(e){console.warn(e),this.flow=e,this.cd.markForCheck()}}return e.ɵfac=function(t){return new(t||e)(c.ɵɵdirectiveInject(o.F0),c.ɵɵdirectiveInject(m.so),c.ɵɵdirectiveInject(c.ChangeDetectorRef))},e.ɵcmp=c.ɵɵdefineComponent({type:e,selectors:[["vex-search-modal"]],standalone:!0,features:[c.ɵɵStandaloneFeature],decls:38,vars:2,consts:[[1,"-m-6"],[1,"flex","items-center","justify-between","gap-4","px-6","py-3","border-b","border-divider"],[1,"text-xl","flex","items-center"],["mat-button","","type","button",1,"p-0","text-purple-500","bg-purple-light","rounded-sm","ml-2",3,"matMenuTriggerFor"],[1,"flex","justify-between","items-center"],["svgIcon","mat:expand_more",1,"ml-4"],["type","button","mat-icon-button","",1,"flex-none","ltr:-mr-2","rtl:-ml-2","text-secondary"],["svgIcon","mat:settings"],[1,"flex","items-center","gap-4","px-6","py-3","border-b","border-divider"],["svgIcon","mat:badge",1,"text-secondary","flex-none"],["type","text","placeholder","Número de DNI o NIE",1,"font-medium","bg-transparent","outline-none","flex-auto","placeholder-secondary"],["svgIcon","mat:calendar_month",1,"text-secondary","flex-none"],["type","text","placeholder","Nacimiento (DD/MM/YYYY)",1,"font-medium","bg-transparent","outline-none","flex-auto","placeholder-secondary"],["svgIcon","mat:phone",1,"text-secondary","flex-none"],["type","text","placeholder","Teléfono",1,"font-medium","bg-transparent","outline-none","flex-auto","placeholder-secondary"],[1,"modal-content"],["cdkFocusInitial","","matRipple","",1,"px-2","py-3","hover:bg-hover","transition","duration-200","ease-out","flex","items-center","cursor-pointer","select-none",3,"click"],[1,"flex-auto","text-base","font-medium"],[1,"flex-none","text-md","text-secondary","font-medium","flex","items-center","gap-2"],["svgIcon","mat:chevron_right",1,"icon-sm","flex-none","mr-2","ml-2"],["xPosition","before","yPosition","below"],["flowMenu","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(c.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),c.ɵɵtext(3," Chequear si el usuario tiene flujo "),c.ɵɵelementStart(4,"button",3)(5,"span",4),c.ɵɵtext(6),c.ɵɵelement(7,"mat-icon",5),c.ɵɵelementEnd()()(),c.ɵɵelementStart(8,"button",6),c.ɵɵelement(9,"mat-icon",7),c.ɵɵelementEnd()(),c.ɵɵelementStart(10,"div",8),c.ɵɵelement(11,"mat-icon",9)(12,"input",10),c.ɵɵelementEnd(),c.ɵɵelementStart(13,"div",8),c.ɵɵelement(14,"mat-icon",11)(15,"input",12),c.ɵɵelementEnd(),c.ɵɵelementStart(16,"div",8),c.ɵɵelement(17,"mat-icon",13)(18,"input",14),c.ɵɵelementEnd(),c.ɵɵelementStart(19,"div",15)(20,"div",16),c.ɵɵlistener("click",(function(){return t.gotoSection("dfd")})),c.ɵɵelement(21,"div",17),c.ɵɵelementStart(22,"div",18)(23,"div")(24,"strong"),c.ɵɵtext(25,"Ver si tiene PIN"),c.ɵɵelementEnd()()(),c.ɵɵelement(26,"mat-icon",19),c.ɵɵelementEnd()()(),c.ɵɵelementStart(27,"mat-menu",20,21)(29,"button",22),c.ɵɵlistener("click",(function(){return t.setFlow("SMS")})),c.ɵɵelementStart(30,"span"),c.ɵɵtext(31,"SMS"),c.ɵɵelementEnd()(),c.ɵɵelementStart(32,"button",22),c.ɵɵlistener("click",(function(){return t.setFlow("PIN")})),c.ɵɵelementStart(33,"span"),c.ɵɵtext(34,"PIN"),c.ɵɵelementEnd()(),c.ɵɵelementStart(35,"button",22),c.ɵɵlistener("click",(function(){return t.setFlow("VIDEO")})),c.ɵɵelementStart(36,"span"),c.ɵɵtext(37,"VIDEO ID"),c.ɵɵelementEnd()()()),2&e){const e=c.ɵɵreference(28);c.ɵɵadvance(4),c.ɵɵproperty("matMenuTriggerFor",e),c.ɵɵadvance(2),c.ɵɵtextInterpolate1(" ",t.flow," ")}},dependencies:[i.ez,a.Ps,a.Hw,h.ot,h.lW,l.si,l.wG,f.Tx,f.VK,f.OP,f.p6],styles:[".modal-content[_ngcontent-%COMP%]{max-height:60vh;overflow-y:auto}"]}),e})(),_=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,s.g0,d,u,h.ot,a.Ps,m.Is,l.si,p,g]}),e})();var v=n(8184);let y=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,v.U8]}),e})();var b=n(3848);let x=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez]}),e})(),w=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,h.ot,a.Ps,y,b.Nh,f.Tx,x,o.Bz,l.si]}),e})();var C=n(266);let S=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,a.Ps,l.si,f.Tx,h.ot,x,o.Bz,C.AV]}),e})();var M=n(4144);let I=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,M.c,h.ot,a.Ps]}),e})(),k=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,f.Tx,a.Ps,o.Bz,l.si]}),e})(),E=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,l.si,f.Tx,a.Ps,o.Bz,k]}),e})(),T=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,h.ot,o.Bz,a.Ps]}),e})();var P=n(3798),O=n(7838);let D=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,h.ot,a.Ps,f.Tx,l.si,w,S,I,E,o.Bz,k,T,P.a,O.y]}),e})();var L=n(1948),A=n(455),N=n(2635),R=n(7314);let j=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,h.ot,a.Ps,L.Fk,A.rP,l.si,N.WG,R.KP]}),e})(),F=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez]}),e})(),q=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c.ɵɵdefineNgModule({type:e}),e.ɵinj=c.ɵɵdefineInjector({imports:[i.ez,r.x,_,D,j,F]}),e})()},3746:(e,t,n)=>{n.d(t,{R:()=>u});var i=n(4650),r=n(8460),s=n(9101),o=n(5412),a=n(6895);function l(e,t){1&e&&i.ɵɵelement(0,"div",4)}let c=(()=>{class e{constructor(){this.alt="",this.loaded=!1}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i.ɵɵdefineComponent({type:e,selectors:[["app-image-loader"]],inputs:{src:"src",alt:"alt"},decls:4,vars:5,consts:[[1,"img-wrapper","p-6","flex","justify-center","items-center"],["class","animated-bg h-full w-full",4,"ngIf"],[1,"img-card",3,"src","alt","load","error"],["img",""],[1,"animated-bg","h-full","w-full"]],template:function(e,t){1&e&&(i.ɵɵelementStart(0,"div",0),i.ɵɵtemplate(1,l,1,0,"div",1),i.ɵɵelementStart(2,"img",2,3),i.ɵɵlistener("load",(function(){return t.loaded=!0}))("error",(function(){return t.loaded=!0})),i.ɵɵelementEnd()()),2&e&&(i.ɵɵadvance(1),i.ɵɵproperty("ngIf",!t.loaded),i.ɵɵadvance(1),i.ɵɵclassProp("hidden",!t.loaded),i.ɵɵproperty("src",t.src,i.ɵɵsanitizeUrl)("alt",t.alt))},dependencies:[a.O5],styles:[".animated-bg[_ngcontent-%COMP%]{aspect-ratio:1/1;max-width:350px}"]}),e})();var d=n(9186);let u=(()=>{class e{constructor(e){this.customizationStoreService=e,this.funderStyles$=this.customizationStoreService.funderStyles$.subscribe((e=>{Object.keys(e).length>0&&(this.funderStyles=e)}))}}return e.ɵfac=function(t){return new(t||e)(i.ɵɵdirectiveInject(r.r))},e.ɵcmp=i.ɵɵdefineComponent({type:e,selectors:[["belender-expiration-date"]],decls:29,vars:18,consts:[[1,"mat-typography"],["id","support_number",1,"p-[1rem]","flex","flex-col","items-center"],[1,"text-3xl","mb-10"],[1,"section-document","max-w-3xl","card","p-6","mb-6"],[1,"flex","flex-col","md:flex-row"],[1,"img-wrapper","w-full"],["alt","Fecha vencimiento DNI",3,"src"],[1,"text-3xl","my-10",2,"text-align","center"],[1,"text-xl",2,"font-weight","bold"],["align","end"],["mat-flat-button","","mat-dialog-close","",1,"px-8","bg-slate-300/30"],["mat-flat-button","","type","button","cdkFocusInitial","",1,"px-8",3,"mat-dialog-close"]],template:function(e,t){1&e&&(i.ɵɵelementStart(0,"mat-dialog-content",0)(1,"div",1)(2,"h1",2),i.ɵɵtext(3,"¿Cómo saber mi fecha vencimiento?"),i.ɵɵelementEnd(),i.ɵɵelementStart(4,"div",3)(5,"div",4)(6,"div",5),i.ɵɵelement(7,"app-image-loader",6),i.ɵɵpipe(8,"assetUrl"),i.ɵɵelement(9,"br")(10,"app-image-loader",6),i.ɵɵpipe(11,"assetUrl"),i.ɵɵelementEnd()()(),i.ɵɵelementStart(12,"h1",7),i.ɵɵtext(13,"Y si mi DNI no tiene fecha de validez,"),i.ɵɵelement(14,"br"),i.ɵɵtext(15,"¿qué dato introduzco?"),i.ɵɵelementEnd(),i.ɵɵelementStart(16,"div",3)(17,"div",4)(18,"div",5)(19,"h2",8),i.ɵɵtext(20,"La fecha de expedición del DNI"),i.ɵɵelementEnd(),i.ɵɵelement(21,"br")(22,"app-image-loader",6),i.ɵɵpipe(23,"assetUrl"),i.ɵɵelementEnd()()()()(),i.ɵɵelementStart(24,"mat-dialog-actions",9)(25,"button",10),i.ɵɵtext(26,"Cerrar"),i.ɵɵelementEnd(),i.ɵɵelementStart(27,"button",11),i.ɵɵtext(28,"Aceptar"),i.ɵɵelementEnd()()),2&e&&(i.ɵɵadvance(7),i.ɵɵproperty("src",i.ɵɵpipeBind1(8,12,"img/illustrations/expiration-date-1.png")),i.ɵɵadvance(3),i.ɵɵproperty("src",i.ɵɵpipeBind1(11,14,"img/illustrations/expiration-date-2.png")),i.ɵɵadvance(12),i.ɵɵproperty("src",i.ɵɵpipeBind1(23,16,"img/illustrations/expiration-date-3.png")),i.ɵɵadvance(3),i.ɵɵstyleProp("border-radius",t.funderStyles.btnRound+"px"),i.ɵɵadvance(2),i.ɵɵstyleProp("color",t.funderStyles.colors.btnText)("background",t.funderStyles.colors.btnBg)("border-radius",t.funderStyles.btnRound+"px"),i.ɵɵproperty("mat-dialog-close",!0))},dependencies:[s.lW,o.ZT,o.xY,o.H8,c,d.z]}),e})()},7403:(e,t,n)=>{n.d(t,{N:()=>m});var i=n(5412),r=n(4650),s=n(8460),o=n(7308),a=n(6895),l=n(1572),c=n(9101);function d(e,t){1&e&&(r.ɵɵelementStart(0,"div",7)(1,"h1"),r.ɵɵtext(2,"Aviso legal"),r.ɵɵelementEnd(),r.ɵɵelementStart(3,"h2"),r.ɵɵtext(4,"1.- Derecho de la información"),r.ɵɵelementEnd(),r.ɵɵelementStart(5,"p"),r.ɵɵtext(6,"Le informamos que este sitio Web es titularidad de ALL4LEND S.L., (en adelante, “BELENDER”), con N.I.F.: B-67425769 y domicilio social en Calle del Sol 19, Sant Andreu de la Barca, 08740, Barcelona, España."),r.ɵɵelementEnd(),r.ɵɵelementStart(7,"p"),r.ɵɵtext(8,"El acceso y/o o uso del sitio web le atribuye la condición de usuario, y acepta, desde dicho acceso y/o uso, el presente Aviso Legal."),r.ɵɵelementEnd(),r.ɵɵelementStart(9,"p"),r.ɵɵtext(10),r.ɵɵelementEnd(),r.ɵɵelementStart(11,"h2"),r.ɵɵtext(12,"2.- Uso del sitio web"),r.ɵɵelementEnd(),r.ɵɵelementStart(13,"p"),r.ɵɵtext(14,"El Usuario asume la responsabilidad del uso del sitio web de BELENDER (en adelante, el “Sitio Web”). El Sitio Web puede proporcionar acceso a multitud de textos, gráficos, dibujos, diseños, fotografías, contenidos multimedia, e informaciones (en adelante, los «Contenidos») pertenecientes a BELENDER o a terceros a los que el Usuario puede tener acceso."),r.ɵɵelementEnd(),r.ɵɵelementStart(15,"p"),r.ɵɵtext(16,"El Usuario se compromete a hacer un uso adecuado de los Contenidos y Servicios ofrecidos a través del Sitio Web y con carácter enunciativo, pero no limitativo, a no emplearlos para:"),r.ɵɵelementEnd(),r.ɵɵelementStart(17,"ul")(18,"li"),r.ɵɵtext(19,"Incurrir en actividades ilícitas, ilegales o contrarias a la buena fe y al orden público."),r.ɵɵelementEnd(),r.ɵɵelementStart(20,"li"),r.ɵɵtext(21,"Provocar daños en los sistemas físicos y lógicos del Sitio Web de BELENDER, de sus proveedores o de terceras personas."),r.ɵɵelementEnd(),r.ɵɵelementStart(22,"li"),r.ɵɵtext(23,"Introducir o difundir en la red virus informáticos o cualesquiera otros sistemas físicos o lógicos que sean susceptibles de provocar los daños anteriormente mencionados."),r.ɵɵelementEnd(),r.ɵɵelementStart(24,"li"),r.ɵɵtext(25,"Intentar acceder, utilizar y/o manipular los datos de BELENDER terceros proveedores y otros usuarios."),r.ɵɵelementEnd(),r.ɵɵelementStart(26,"li"),r.ɵɵtext(27,"Reproducir o copiar, distribuir, permitir el acceso del público a través de cualquier modalidad de comunicación pública, transformar o modificar los Contenidos, a menos que se cuente con la autorización de BELENDER."),r.ɵɵelementEnd(),r.ɵɵelementStart(28,"li"),r.ɵɵtext(29,"Suprimir, ocultar o manipular los Contenidos sujetos a derechos de propiedad intelectual o industrial y demás datos identificativos de dichos derechos de BELENDER o de terceros incorporados a los Contenidos, así como los dispositivos técnicos de protección o cualesquiera mecanismos de información que puedan insertarse en los Contenidos."),r.ɵɵelementEnd()(),r.ɵɵelementStart(30,"p"),r.ɵɵtext(31,"BELENDER advierte de que los materiales contenidos en este sitio web han sido incluidos a mero título informativo, por lo que resultan insuficientes para tomar decisiones o asumir posiciones en un caso concreto."),r.ɵɵelementEnd(),r.ɵɵelementStart(32,"p"),r.ɵɵtext(33,"El Usuario debe tener en cuenta que los materiales contenidos en este sitio web pudieran no reflejar el estado legislativo o jurisprudencial más reciente sobre las cuestiones analizadas. Asimismo, estos materiales pueden ser modificados, desarrollados o actualizados sin notificación previa."),r.ɵɵelementEnd(),r.ɵɵelementStart(34,"p"),r.ɵɵtext(35,"BELENDER tendrá derecho a investigar y denunciar cualquiera de las conductas mencionadas de acuerdo con la Ley, así como a colaborar con las autoridades en la investigación de dichas actuaciones."),r.ɵɵelementEnd(),r.ɵɵelementStart(36,"p"),r.ɵɵtext(37,"BELENDER podrá suspender temporalmente y sin previo aviso, la accesibilidad al Sitio Web con motivo de operaciones de mantenimiento, reparación, actualización o mejora. No obstante, siempre que las circunstancias lo permitan, BELENDER comunicará al Usuario, con antelación suficiente, la fecha prevista para la suspensión de los Servicios. BELENDER no se responsabiliza del uso que los Usuarios puedan hacer de los Contenidos incluidos en el Sitio Web."),r.ɵɵelementEnd(),r.ɵɵelementStart(38,"h2"),r.ɵɵtext(39,"3.- Propiedad Intelectual e Industrial"),r.ɵɵelementEnd(),r.ɵɵelementStart(40,"p"),r.ɵɵtext(41,"Todos los derechos de propiedad intelectual del Contenido del Sitio Web y su diseño gráfico son propiedad exclusiva de BELENDER, o bien de un tercero que ha autorizado la utilización de estos, por lo que es a BELENDER a quien le corresponde el ejercicio exclusivo de los derechos de explotación de estos. Por ello y en virtud de lo dispuesto en la legislación aplicable en materia de Derechos de Propiedad Intelectual e Industrial."),r.ɵɵelementEnd(),r.ɵɵelementStart(42,"p"),r.ɵɵtext(43,"BELENDER no concede ninguna licencia o autorización de uso de ninguna clase sobre sus derechos de propiedad intelectual e industrial o sobre cualquier otra propiedad o derecho relacionado con el Sitio Web, los Servicios o los Contenidos de este."),r.ɵɵelementEnd(),r.ɵɵelementStart(44,"p"),r.ɵɵtext(45,"Se permite la reproducción y almacenamiento temporal de los contenidos del Sitio Web en tanto ello sea estrictamente necesario para el uso y visualización del Sitio Web desde un dispositivo personal."),r.ɵɵelementEnd(),r.ɵɵelementStart(46,"p"),r.ɵɵtext(47,"La legitimidad de los derechos de propiedad intelectual o industrial correspondientes a los Contenidos aportados por los usuarios es responsabilidad exclusiva de los mismos, por lo que el Usuario mantendrá indemne a BELENDER de cualquier reclamación de terceros derivada de la utilización ilícita de Contenidos en el Sitio Web."),r.ɵɵelementEnd(),r.ɵɵelementStart(48,"h2"),r.ɵɵtext(49,"4.- Responsabilidad y Garantías"),r.ɵɵelementEnd(),r.ɵɵelementStart(50,"p"),r.ɵɵtext(51,"BELENDER declara que ha adoptado las medidas necesarias que, dentro de sus posibilidades y el estado de la tecnología, permitan el correcto funcionamiento de su Sitio Web, así como la ausencia de virus y componentes dañinos. Sin embargo, BELENDER no puede hacerse responsable de:"),r.ɵɵelementEnd(),r.ɵɵelementStart(52,"ul")(53,"li"),r.ɵɵtext(54,"La continuidad y disponibilidad de los Contenidos y Servicios."),r.ɵɵelementEnd(),r.ɵɵelementStart(55,"li"),r.ɵɵtext(56,"La ausencia de errores en dichos Contenidos ni la corrección de cualquier defecto que pudiera ocurrir."),r.ɵɵelementEnd(),r.ɵɵelementStart(57,"li"),r.ɵɵtext(58,"La ausencia de virus y/o demás componentes dañinos."),r.ɵɵelementEnd(),r.ɵɵelementStart(59,"li"),r.ɵɵtext(60,"Los daños o perjuicios que cause cualquier persona que vulnere los sistemas de seguridad de BELENDER."),r.ɵɵelementEnd(),r.ɵɵelementStart(61,"li"),r.ɵɵtext(62,"Las aportaciones que se pueden encontrar en estas páginas se han realizado únicamente a título informativo. BELENDER no garantiza la integridad, exactitud y actualidad de sus contenidos."),r.ɵɵelementEnd()(),r.ɵɵelementStart(63,"p"),r.ɵɵtext(64,"BELENDER no asume ninguna responsabilidad sobre los enlaces a otras páginas web que se encuentren en el Sitio Web pudiendo dirigir al Usuario a otros sitios web sobre los que BELENDER no tiene ningún tipo de control, por lo que la inclusión de vínculos a otros sitios web no implica la aprobación de sus contenidos por parte de BELENDER ni la existencia de ningún tipo de asociación entre BELENDER y sus titulares. Por ello el Usuario accede bajo su exclusiva responsabilidad al Contenido y en las condiciones de uso que rijan en los mismos."),r.ɵɵelementEnd(),r.ɵɵelementStart(65,"h2"),r.ɵɵtext(66,"5.- Duración y modificación"),r.ɵɵelementEnd(),r.ɵɵelementStart(67,"p"),r.ɵɵtext(68,"El presente Aviso Legal estará vigente con carácter indefinido, pudiendo BELENDER efectuar cambios sobre las condiciones especificadas en el mismo, y que entrarán en vigor desde el momento de su publicación."),r.ɵɵelementEnd(),r.ɵɵelementStart(69,"p"),r.ɵɵtext(70,"BELENDER podrá suprimir, añadir o cambiar tanto los Contenidos como los Servicios que presta, así como también la forma en la que los mismos aparezcan localizados o presentados. Se entienden como vigentes, las condiciones que estén publicadas en el momento en el que el Usuario acceda al Sitio Web de BELENDER."),r.ɵɵelementEnd(),r.ɵɵelementStart(71,"p"),r.ɵɵtext(72,"El acceso y/o el uso del Sitio Web se entenderán como una aceptación por parte del Usuario del presente Aviso Legal y sus condiciones y, en su caso, los cambios efectuados en las mismas."),r.ɵɵelementEnd()()),2&e&&(r.ɵɵadvance(10),r.ɵɵtextInterpolate1("El usuario (en adelante, el “Usuario”) puede ponerse en contacto con BELENDER a través de la siguiente dirección de correo electrónico: ","dpo@belender.eu",""))}function u(e,t){if(1&e&&(r.ɵɵelementContainerStart(0),r.ɵɵelement(1,"div",8),r.ɵɵelementContainerEnd()),2&e){const e=r.ɵɵnextContext(2);r.ɵɵadvance(1),r.ɵɵproperty("innerHTML",e.legal,r.ɵɵsanitizeHtml)}}function h(e,t){1&e&&(r.ɵɵelementStart(0,"div",9),r.ɵɵelement(1,"mat-progress-spinner",10),r.ɵɵelementEnd())}function p(e,t){if(1&e&&(r.ɵɵelementContainerStart(0),r.ɵɵelementStart(1,"mat-dialog-content",1)(2,"div",2),r.ɵɵtemplate(3,d,73,1,"div",3),r.ɵɵtemplate(4,u,2,1,"ng-container",0),r.ɵɵtemplate(5,h,2,0,"div",4),r.ɵɵelementEnd()(),r.ɵɵelementStart(6,"mat-dialog-actions",5)(7,"button",6),r.ɵɵtext(8),r.ɵɵelementEnd()(),r.ɵɵelementContainerEnd()),2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(3),r.ɵɵproperty("ngIf",!e.legal&&!e.loading),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",e.legal&&!e.loading),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",e.loading),r.ɵɵadvance(2),r.ɵɵstyleProp("border-radius",e.funderStyles.btnRound+"px"),r.ɵɵadvance(1),r.ɵɵtextInterpolate1(" ",e.data&&e.data.lang&&e.closeLabel[e.data.lang]?e.closeLabel[e.data.lang]:"Cerrar"," ")}}let m=(()=>{class e{constructor(e,t,n){this.customizationStoreService=e,this.translationService=t,this.data=n,this.loading=!1,this.closeLabel={es:"Cerrar",en:"Close",it:"Vicino",fr:"Fermer",ca:"Tancar",de:"schließen",pt:"Fechar"}}ngOnInit(){console.warn(this.data.allData),this.customizationStoreService.getFunderStyles().subscribe((e=>{e&&Object.keys(e).length>0&&(this.funderStyles=e)})),this.customizationStoreService.getFunderConfig().subscribe((e=>{e&&Object.keys(e).length>0&&(this.funderConfig=e,this.setCustomization(this.funderConfig))}))}setCustomization(e){this.data&&this.data.flow&&this.data.allData&&this.data.allData[this.data.flow]&&this.data.allData[this.data.flow].texts&&this.data.allData[this.data.flow].texts.policy?this.legal=this.data.allData[this.data.flow].texts.policy:e&&e.policy&&(this.legal=e.policy),this.loading=!1}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵdirectiveInject(s.r),r.ɵɵdirectiveInject(o.D),r.ɵɵdirectiveInject(i.WI))},e.ɵcmp=r.ɵɵdefineComponent({type:e,selectors:[["vex-legal"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"mat-typography"],[1,"p-[1rem]","flex","flex-col","items-center"],["class","w-full max-w-xl",4,"ngIf"],["class","w-full px-8 py-16 flex justify-center items-center",4,"ngIf"],["align","end"],["mat-flat-button","","mat-dialog-close","",1,"px-8","bg-slate-300/30"],[1,"w-full","max-w-xl"],[1,"w-full","max-w-xl","policy-page",3,"innerHTML"],[1,"w-full","px-8","py-16","flex","justify-center","items-center"],["color","accent","diameter","40","value","0","mode","indeterminate",1,"spinner"]],template:function(e,t){1&e&&r.ɵɵtemplate(0,p,9,6,"ng-container",0),2&e&&r.ɵɵproperty("ngIf",t.funderStyles)},dependencies:[a.O5,l.Ou,c.lW,i.ZT,i.xY,i.H8],styles:["h1[_ngcontent-%COMP%]{font-size:30px}h2[_ngcontent-%COMP%]{font-size:20px!important;margin-bottom:15px;margin-top:40px}ul[_ngcontent-%COMP%]{padding-left:20px;list-style:disc}p[_ngcontent-%COMP%]{margin:5px 0}"]}),e})()},3755:(e,t,n)=>{n.d(t,{$:()=>d});var i=n(4650),r=n(8460),s=n(9101),o=n(5412),a=n(9186);function l(e,t){if(1&e&&(i.ɵɵelementStart(0,"button",13),i.ɵɵtext(1,"Cancelar"),i.ɵɵelementEnd()),2&e){const e=i.ɵɵnextContext();i.ɵɵstyleProp("border-radius",e.funderStyles.btnRound+"px")}}function c(e,t){if(1&e&&(i.ɵɵelementStart(0,"button",14),i.ɵɵtext(1,"Aceptar"),i.ɵɵelementEnd()),2&e){const e=i.ɵɵnextContext();i.ɵɵstyleProp("color",e.funderStyles.colors.btnText)("background",e.funderStyles.colors.btnBg)("border-radius",e.funderStyles.btnRound+"px"),i.ɵɵproperty("mat-dialog-close",!0)}}let d=(()=>{class e{constructor(e){this.customizationStoreService=e,this.loading=!0,this.customizationStoreService.getFunderStyles().subscribe((e=>{Object.keys(e).length>0&&(this.funderStyles=e)})),this.customizationStoreService.getFunderConfig().subscribe((e=>{Object.keys(e).length>0&&(this.funderConfig=e,this.setCustomization(this.funderConfig))}))}setCustomization(e){this.loading=!0,this.terms_and_conditions=e.texts_terms_and_conditions,this.loading=!1}}return e.ɵfac=function(t){return new(t||e)(i.ɵɵdirectiveInject(r.r))},e.ɵcmp=i.ɵɵdefineComponent({type:e,selectors:[["vex-support-number"]],decls:36,vars:14,consts:[[1,"mat-typography"],["id","support_number",1,"p-[1rem]","flex","flex-col","items-center"],[1,"text-3xl","mb-10"],[1,"section-document","max-w-3xl","card","p-6","mb-6"],[1,"flex","flex-col","md:flex-row"],[1,"img-wrapper","w-full","md:w-2/3"],["alt","Tarjeta de extranjero",3,"src"],[1,"text","p-1","w-full","md:w-1/3"],["alt","Permiso de residencia",3,"src"],["alt","Certificado Ciudadano UE",3,"src"],["align","end"],["class","px-8 bg-slate-300/30","mat-flat-button","","mat-dialog-close","",3,"border-radius",4,"ngIf"],["class","px-8","mat-flat-button","","type","button","cdkFocusInitial","",3,"color","background","border-radius","mat-dialog-close",4,"ngIf"],["mat-flat-button","","mat-dialog-close","",1,"px-8","bg-slate-300/30"],["mat-flat-button","","type","button","cdkFocusInitial","",1,"px-8",3,"mat-dialog-close"]],template:function(e,t){1&e&&(i.ɵɵelementStart(0,"mat-dialog-content",0)(1,"div",1)(2,"h1",2),i.ɵɵtext(3,"¿Cómo saber mi número de soporte?"),i.ɵɵelementEnd(),i.ɵɵelementStart(4,"div",3)(5,"h2"),i.ɵɵtext(6,"Tarjeta de extranjero"),i.ɵɵelementEnd(),i.ɵɵelementStart(7,"div",4)(8,"div",5),i.ɵɵelement(9,"img",6),i.ɵɵpipe(10,"assetUrl"),i.ɵɵelementEnd(),i.ɵɵelementStart(11,"div",7),i.ɵɵtext(12," 9 caracteres: una letra E seguida de 8 caracteres numéricos. En el caso de que el número de soporte que figura en su tarjeta tenga menos de 8 caracteres numéricos, ha de introducir tantos ceros como caracteres numéricos falten a continuación de la letra E. "),i.ɵɵelementEnd()()(),i.ɵɵelementStart(13,"div",3)(14,"h2"),i.ɵɵtext(15,"Permiso de residencia"),i.ɵɵelementEnd(),i.ɵɵelementStart(16,"div",4)(17,"div",5),i.ɵɵelement(18,"img",8),i.ɵɵpipe(19,"assetUrl"),i.ɵɵelementEnd(),i.ɵɵelementStart(20,"div",7),i.ɵɵtext(21," 9 caracteres: una letra E seguida de 8 caracteres numéricos. En el caso de que el número de soporte que figura en su tarjeta tenga menos de 8 caracteres numéricos, ha de introducir tantos ceros como caracteres numéricos falten a continuación de la letra E. "),i.ɵɵelementEnd()()(),i.ɵɵelementStart(22,"div",3)(23,"h2"),i.ɵɵtext(24,"Certificado Ciudadano UE"),i.ɵɵelementEnd(),i.ɵɵelementStart(25,"div",4)(26,"div",5),i.ɵɵelement(27,"img",9),i.ɵɵpipe(28,"assetUrl"),i.ɵɵelement(29,"img",9),i.ɵɵpipe(30,"assetUrl"),i.ɵɵelementEnd(),i.ɵɵelementStart(31,"div",7),i.ɵɵtext(32," El número de soporte a introducir ha de tener una longitud de 9 posiciones: una letra C seguida de 8 caracteres numéricos. En el caso de que el número de soporte que figura en tu certificado tenga menos de 8 caracteres numéricos, hay que introducir tantos ceros como caracteres numéricos falten a continuación de la letra C. "),i.ɵɵelementEnd()()()()(),i.ɵɵelementStart(33,"mat-dialog-actions",10),i.ɵɵtemplate(34,l,2,2,"button",11),i.ɵɵtemplate(35,c,2,7,"button",12),i.ɵɵelementEnd()),2&e&&(i.ɵɵadvance(9),i.ɵɵproperty("src",i.ɵɵpipeBind1(10,6,"img/illustrations/extranjeros.png"),i.ɵɵsanitizeUrl),i.ɵɵadvance(9),i.ɵɵproperty("src",i.ɵɵpipeBind1(19,8,"img/illustrations/residencia.png"),i.ɵɵsanitizeUrl),i.ɵɵadvance(9),i.ɵɵproperty("src",i.ɵɵpipeBind1(28,10,"img/illustrations/ciudadano.png"),i.ɵɵsanitizeUrl),i.ɵɵadvance(2),i.ɵɵproperty("src",i.ɵɵpipeBind1(30,12,"img/illustrations/ciudadano2.png"),i.ɵɵsanitizeUrl),i.ɵɵadvance(5),i.ɵɵproperty("ngIf",t.funderStyles),i.ɵɵadvance(1),i.ɵɵproperty("ngIf",t.funderStyles))},dependencies:[s.lW,o.ZT,o.xY,o.H8,a.z],styles:["h2[_ngcontent-%COMP%]{font-size:20px!important}"]}),e})()},1363:(e,t,n)=>{n.d(t,{v:()=>d});var i=n(5412),r=n(4650),s=n(7367),o=n(8460),a=n(6895),l=n(9101);function c(e,t){if(1&e&&(r.ɵɵelementContainerStart(0),r.ɵɵelementStart(1,"button",7),r.ɵɵtext(2,"Cancelar"),r.ɵɵelementEnd(),r.ɵɵelementStart(3,"button",8),r.ɵɵtext(4,"Aceptar"),r.ɵɵelementEnd(),r.ɵɵelementContainerEnd()),2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(1),r.ɵɵstyleProp("border-radius",e.funderStyles.btnRound+"px"),r.ɵɵadvance(2),r.ɵɵstyleProp("color",e.funderStyles.colors.btnText)("background",e.funderStyles.colors.btnBg)("border-radius",e.funderStyles.btnRound+"px"),r.ɵɵproperty("mat-dialog-close",!0)}}let d=(()=>{class e{constructor(e,t,n){this.customizationService=e,this.customizationStoreService=t,this.data=n,this.loading=!0,this.customizationStoreService.getFunderConfig().subscribe((e=>{Object.keys(e).length>0&&(this.funderConfig=e)})),this.customizationStoreService.getFunderStyles().subscribe((e=>{Object.keys(e).length>0&&(this.funderStyles=e)})),this.customizationStoreService.getUserID().subscribe((e=>{this.customizationService.getCustomizationByFlow(e,this.getParsedFlowName(this.data.flow)).then((e=>{this.flowConfig=e,this.setCustomization()}))}))}setCustomization(){this.loading=!0,this.terms_and_conditions=this.flowConfig&&this.flowConfig.terms_and_conditions?this.flowConfig.terms_and_conditions:'\n <div class="px-10 py-6 rounded-md text-center bg-orange-500/20 text-orange-600">\n <p>No hay términos y condiciones para este flujo </p> \n </div>',this.loading=!1}getParsedFlowName(e){switch(e){case"sms":case"Sms":return"SMS";case"clavepin":case"ClavePin":case"CLAVEPIN":return"ClavePin";case"videoid":return"VideoID";case"personal":case"presencial":case"client-cert":return"KnownClient";default:return e}}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵdirectiveInject(s.w),r.ɵɵdirectiveInject(o.r),r.ɵɵdirectiveInject(i.WI))},e.ɵcmp=r.ɵɵdefineComponent({type:e,selectors:[["vex-terms-cert"]],decls:35,vars:1,consts:[[1,"mat-typography"],[1,"p-[1rem]","flex","flex-col","items-center"],[1,"w-full","max-w-xl"],[1,"text-2xl","font-bold"],[1,"pt-3","font-bold","text-2xl"],["align","end"],[4,"ngIf"],["mat-flat-button","","mat-dialog-close","",1,"px-8","bg-slate-300/30"],["mat-flat-button","","type","button","cdkFocusInitial","",1,"px-8",3,"mat-dialog-close"]],template:function(e,t){1&e&&(r.ɵɵelementStart(0,"mat-dialog-content",0)(1,"div",1)(2,"div",2)(3,"h1",3),r.ɵɵtext(4,"HOJA DE ACEPTACIÓN DE CERTIFICADO ELECTRONICO CUALIFICADO RÉGIMEN OBLIGATORIO DE USO DEL CERTIFICADO ELECTRONICO: “CERTIFICADO DE PERSONA FÍSICA REPRESENTANTE DE EMPRESA EMITIDO EN SOFTWARE”"),r.ɵɵelementEnd(),r.ɵɵelementStart(5,"p"),r.ɵɵtext(6," a) Que existen unas condiciones generales del servicio incorporadas en el texto de divulgación del certificado o PDS, y una declaración de prácticas de certificación, que regulan la emisión y utilización del certificado electrónico emitido porvinCAsign, cuyo texto íntegro se puede consultar en la dirección de Internet, https://policy.vincasign.net. "),r.ɵɵelementEnd(),r.ɵɵelementStart(7,"p"),r.ɵɵtext(8," b) Que el certificado electrónico emitido y el resto de los elementos que forman parte de la identificación electrónica son únicos para cada usuario. El certificado debe ser protegido por un código secreto (PIN), que sólo conoce el titular y que le será entregado en el momento de la emisión del certificado. Para utilizar el certificado es imprescindible conocer este código. "),r.ɵɵelementEnd(),r.ɵɵelementStart(9,"p"),r.ɵɵtext(10," c) Que este certificado permite al titular del certificado generar firmas electrónicas e identificarse de forma electrónica en aquellos sistemas de información que soporten este tipo de autenticación. "),r.ɵɵelementEnd(),r.ɵɵelementStart(11,"p"),r.ɵɵtext(12," d) Que el FIRMANTE debe custodiar, de forma diligente, el PIN que permite utilizarlo, para evitar que otras personas puedan suplantar su identidad y firmar documentos en su nombre, o acceder a mensajes confidenciales o sistemas de información de acceso restringido. "),r.ɵɵelementEnd(),r.ɵɵelementStart(13,"p"),r.ɵɵtext(14," e) Que, si el FIRMANTE detecta cualquier indicio de que su identificación electrónica ha podido ser utilizada por otras personas, tendrá que suspender el uso del certificado y notificarlo inmediatamente al responsable del servicio de certificación del SUSCRIPTOR, o a vinCAsign, para pedir la revocación del certificado y, en su caso, la emisión de uno nuevo. "),r.ɵɵelementEnd(),r.ɵɵelementStart(15,"p"),r.ɵɵtext(16," f) Que ante cualquier necesidad de información adicional, respecto de la utilización de los certificados emitidos en nombre de vinCAsign, el FIRMANTE se podrá dirigir al SUSCRIPTOR, al responsable del servicio de certificación del SUSCRIPTOR, y/o a VINTEGRIS. "),r.ɵɵelementEnd(),r.ɵɵelementStart(17,"p"),r.ɵɵtext(18," g) Que con el fin de obtener los correspondientes certificados, y dentro del marco del Reglamento (UE) 2016/679 del Parlamento Europeo y del Consejo de 27 de abril de 2016 relativo a la protección de las personas físicas en lo que respecta al tratamiento de datos personales y a la libre circulación de estos datos y por el que se deroga la Directiva 95/46/CE (Reglamento general de protección de datos), el SUSCRIPTOR ha comunicado a vinCAsign los datos identificativos del FIRMANTE con el fin de emitir y gestionar el certificado corporativo de persona física emitido en software, en el ámbito de la relación de trabajo entre dicho FIRMANTE y el SUSCRIPTOR, todo ello a los efectos de lo previsto en el artículo 28 del Reglamento general de protección de datos. "),r.ɵɵelementEnd(),r.ɵɵelementStart(19,"p"),r.ɵɵtext(20," h) Que sabe que, en cumplimiento de lo establecido en los artículos 24.2 y 28 del Reglamento (UE) 910/2014 del Parlamento Europeo y del Consejo de 23 de julio de 2014, los datos contenidos en el certificado corporativo de persona física emitido en software están publicados en la página web de vinCAsign a efectos del Registro de Certificados y de las listas de revocación, toda vez que ha prestado su consentimiento durante el proceso de solicitud. "),r.ɵɵelementEnd(),r.ɵɵelementStart(21,"h1",4),r.ɵɵtext(22," ACTO DE ACEPTACIÓN DEL CERTIFICADO ELECTRÓNICO "),r.ɵɵelementEnd(),r.ɵɵelementStart(23,"p"),r.ɵɵtext(24," Firmo el presente documento para dejar constancia: "),r.ɵɵelementEnd(),r.ɵɵelementStart(25,"p"),r.ɵɵtext(26," Que ha sido informado del contenido del texto de divulgación del certificado o PDS, en el que se incluyen las condiciones generales del servicio aplicable al certificado corporativo de persona física emitido en software. "),r.ɵɵelementEnd(),r.ɵɵelementStart(27,"p"),r.ɵɵtext(28," Que ha sido informado del régimen obligatorio de uso del certificado emitido, sus condiciones de uso y sus responsabilidades. "),r.ɵɵelementEnd(),r.ɵɵelementStart(29,"p"),r.ɵɵtext(30," Que ha sido informado de las circunstancias relativas al tratamiento de sus datos personales para la correcta emisión y gestión del certificado que se emite. "),r.ɵɵelementEnd(),r.ɵɵelementStart(31,"p"),r.ɵɵtext(32," Firma de conformidad, en virtud de la cual ha leído y entiende las obligaciones y responsabilidades que asume. "),r.ɵɵelementEnd()()()(),r.ɵɵelementStart(33,"mat-dialog-actions",5),r.ɵɵtemplate(34,c,5,9,"ng-container",6),r.ɵɵelementEnd()),2&e&&(r.ɵɵadvance(34),r.ɵɵproperty("ngIf",t.funderStyles))},dependencies:[a.O5,l.lW,i.ZT,i.xY,i.H8],styles:["h1[_ngcontent-%COMP%]{font-size:20px!important;font-weight:700}h2[_ngcontent-%COMP%]{font-size:20px!important;font-weight:700;line-height:25px;margin:15px 0}p[_ngcontent-%COMP%]{margin:10px 0}.terms-page[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;background:white;z-index:9999999!important;height:100vh;max-height:100vh}"]}),e})()},1258:(e,t,n)=>{n.d(t,{H:()=>_});var i=n(9299),r=n(1363),s=n(6e3),o=n(4650);const a=[{path:":flow",component:r.v},{path:":flow/:idUser",component:r.v}];let l=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[i.Bz.forChild(a),i.Bz,s.d8]}),e})();var c=n(7533),d=n(1572),u=n(7367),h=n(6383),p=n(6895),m=n(4006),f=n(9101),g=n(5028);let _=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({providers:[u.w],imports:[l,c.q,d.Cq,h.G,p.ez,m.FormsModule,f.ot,g.q]}),e})()},6830:(e,t,n)=>{n.d(t,{L:()=>m});var i=n(5412),r=n(4650),s=n(7367),o=n(7308),a=n(8460),l=n(1572),c=n(6895),d=n(9101);function u(e,t){1&e&&(r.ɵɵelementStart(0,"div",7),r.ɵɵelement(1,"mat-progress-spinner",8),r.ɵɵelementEnd())}function h(e,t){if(1&e&&r.ɵɵelement(0,"div",9),2&e){const e=r.ɵɵnextContext();r.ɵɵproperty("innerHTML",e.texts.terms_and_conditions,r.ɵɵsanitizeHtml)}}function p(e,t){if(1&e&&(r.ɵɵelementContainerStart(0),r.ɵɵelementStart(1,"button",10),r.ɵɵtext(2),r.ɵɵelementEnd(),r.ɵɵelementStart(3,"button",11),r.ɵɵtext(4),r.ɵɵelementEnd(),r.ɵɵelementContainerEnd()),2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(1),r.ɵɵstyleProp("border-radius",e.funderStyles.btnRound+"px"),r.ɵɵadvance(1),r.ɵɵtextInterpolate(e.texts.cancel),r.ɵɵadvance(1),r.ɵɵstyleProp("color",null==e.funderStyles.colors?null:e.funderStyles.colors.btnText)("background",null==e.funderStyles.colors?null:e.funderStyles.colors.btnBg)("border-radius",e.funderStyles.btnRound+"px"),r.ɵɵproperty("mat-dialog-close",!0),r.ɵɵadvance(1),r.ɵɵtextInterpolate(e.texts.accept)}}let m=(()=>{class e{constructor(e,t,n,i){this.customizationService=e,this.translationService=t,this.customizationStoreService=n,this.data=i,this.loading=!0,this.texts={terms_and_conditions:"",cancel:"Cancelar",accept:"Aceptar"},this.buttonsText={it:{cancel:"Anulla",accept:"Accetta"},pt:{cancel:"Cancelar",accept:"Aceitar"},ca:{cancel:"Cancel·lar",accept:"Acceptar"},en:{cancel:"Cancel",accept:"Accept"},de:{cancel:"Abbrechen",accept:"Akzeptieren"},fr:{cancel:"Annuler",accept:"Accepter"}},this.customizationStoreService.getFunderStyles().subscribe((e=>{Object.keys(e).length>0&&(this.funderStyles=e)})),this.customizationStoreService.getFunderConfig().subscribe((e=>{Object.keys(e).length>0&&(this.funderConfig=e)})),this.data&&this.data.allData?(this.funderConfig=this.data.allData.config,this.funderStyles=this.data.allData.styles,this.flowConfig=this.data.allData[this.data.flow],console.error(this.flowConfig),this.setCustomization()):(this.loading=!0,this.customizationStoreService.getUserID().subscribe((e=>{this.customizationService.getCustomizationByFlow(e,this.getParsedFlowName(this.data.flow)).then((e=>{this.flowConfig=e.data,this.setCustomization()})).catch((e=>{this.loading=!1}))}),(e=>{this.loading=!1})))}parseButtons(e){this.buttonsText[e]&&(this.texts.accept=this.buttonsText[e].accept,this.texts.cancel=this.buttonsText[e].cancel)}setCustomization(){this.texts.terms_and_conditions=this.flowConfig&&this.flowConfig.texts&&this.flowConfig.texts.terms_and_conditions?this.flowConfig.texts.terms_and_conditions:this.flowConfig&&this.flowConfig.terms_and_conditions?this.flowConfig.terms_and_conditions:'\n <div class="px-10 py-6 rounded-md text-center bg-orange-500/20 text-orange-600">\n <p>No hay términos y condiciones para este flujo </p> \n </div>',this.data.lang&&this.parseButtons(this.data.lang),this.loading=!1}getParsedFlowName(e){switch(e){case"sms":case"Sms":return"SMS";case"clavepin":case"ClavePin":case"CLAVEPIN":return"ClavePin";case"videoid":return"VideoID";case"personal":case"presencial":case"client-cert":return"KnownClient";case"certificate":return"ClientCertificate";default:return e}}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵdirectiveInject(s.w),r.ɵɵdirectiveInject(o.D),r.ɵɵdirectiveInject(a.r),r.ɵɵdirectiveInject(i.WI))},e.ɵcmp=r.ɵɵdefineComponent({type:e,selectors:[["vex-terms"]],decls:7,vars:3,consts:[[1,"mat-typography"],["id","terms_and_conditions",1,"p-[1rem]","flex","flex-col","items-center"],[1,"w-full","max-w-xl"],["class","flex flex-col p-10 gap-2 items-center",4,"ngIf"],["class","max-w-xl overflow-y-auto",3,"innerHTML",4,"ngIf"],["align","end"],[4,"ngIf"],[1,"flex","flex-col","p-10","gap-2","items-center"],["diameter","30","mode","indeterminate","color","primary"],[1,"max-w-xl","overflow-y-auto",3,"innerHTML"],["mat-flat-button","","mat-dialog-close","",1,"px-8","bg-slate-300/30"],["mat-flat-button","","type","button","cdkFocusInitial","",1,"px-8",3,"mat-dialog-close"]],template:function(e,t){1&e&&(r.ɵɵelementStart(0,"mat-dialog-content",0)(1,"div",1)(2,"div",2),r.ɵɵtemplate(3,u,2,0,"div",3),r.ɵɵtemplate(4,h,1,1,"div",4),r.ɵɵelementEnd()()(),r.ɵɵelementStart(5,"mat-dialog-actions",5),r.ɵɵtemplate(6,p,5,11,"ng-container",6),r.ɵɵelementEnd()),2&e&&(r.ɵɵadvance(3),r.ɵɵproperty("ngIf",t.loading),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",!t.loading),r.ɵɵadvance(2),r.ɵɵproperty("ngIf",t.funderStyles&&!t.loading))},dependencies:[l.Ou,c.O5,d.lW,i.ZT,i.xY,i.H8],styles:["#terms_and_conditions[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:30px!important;font-weight:700}#terms_and_conditions[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:20px!important;font-weight:700;line-height:25px;margin:15px 0}#terms_and_conditions[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:10px 0}.terms-page[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;background:white;z-index:9999999!important;height:100vh;max-height:100vh}"]}),e})()},3295:(e,t,n)=>{n.d(t,{g:()=>_});var i=n(9299),r=n(6830),s=n(6e3),o=n(4650);const a=[{path:":flow",component:r.L},{path:":flow/:idUser",component:r.L}];let l=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[i.Bz.forChild(a),i.Bz,s.d8]}),e})();var c=n(7533),d=n(1572),u=n(7367),h=n(6383),p=n(6895),m=n(4006),f=n(9101),g=n(5028);let _=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({providers:[u.w],imports:[l,c.q,d.Cq,h.G,p.ez,m.FormsModule,f.ot,d.Cq,g.q]}),e})()},1931:(e,t,n)=>{n.d(t,{S:()=>i});const i={es:{nie:"NIE",dni:"DNI",nieOrDni:"DNI o NIE",birthday:"Fecha de nacimiento",expiration:"Fecha de vencimiento del DNI",support:"Código de soporte",phone:"Teléfono",email:"Email",inputEmail:"Ingresa tu email",findExpiration:"¿Dónde la encuentro?",send:"Enviar",unknownState:"Estado desconocido",manual:"Ingresar manualmente",warnings:{error:"Error!",invalidDni:"Debes ingresar un DNI válido!",invalidNie:"Debes ingresar un NIE válido!",invalidNieOrDni:"Debes ingresar un DNI o NIE válido!",errorSomeData:"Error en algunos datos",noPinService:"Sin servicio Clave PIN",noCustomization:"No se ha configurado la customización del widget para este usuario",ocassionalError:"Estamos detectando errores ocasionales, si no puede completar su solicitud, inténtelo más tarde",wrongDni:"Número de documento incorrecto",wrongDniDesc:"El número de documento ingresado es incorrecto, por favor ingrese otro",wrongDate:"Fecha incorrecta",wrongDateDesc:"La fecha de nacimiento es incorrecta. Revísalo, por favor",wrongSupport:"Número de soporte inválido!",inputSupport:"Por favor, introduce el código de soporte",unknownError:"Error desconocido: ",noSms:"Sin servicio SMS",noSmsDesc:"El usuario no tiene servicio de SMS, vamos a intentar ingresar por flujo Clave Pin, por favor, rellene los campos necesarios",noOtp:"Todavía no has recibido el OTP. Inténtalo de nuevo cuando lo recibas",wrongOtp:"Código inválido. Por favor, introduzca el código recibido por SMS",haveToReadTerms:"Debes leer los términos y condiciones para poder continuar",phoneError:"Error con el teléfono",dontHavePhone:"No tengo otro teléfono",badPhoneSS:"El teléfono ingresado no coincide con registrado en la Seguridad Social, por favor ingrese otro",wrongBirthday:"Fecha de nacimiento incorrecta",inputBirthDay:"Por favor, introduce la fecha de nacimiento",wrongExpiration:"Fecha de vencimiento incorrecta",inputExpiration:"Por favor, introduce la fecha de vencimiento del documento",duplicatedRequest:"Solicitud duplicada!",alreadyHaveRequest:"Ya existe una solicitud para este cliente.",currentRequestStatus:"Estado de la solicitud actual: ",requestNoExist:"No existe la solicitud",noRequests:"No existen solicitudes activas con el código requerido",needMoreData:"Necesitamos más datos para validar el acceso a las administraciones públicas"},abandoned:{afterWaitingOtpSS:"Abandonado después de esperar OTP de Seguridad Social",afterInvalidOtpSS:"Abandonado despues de OTP inválido en Seguridad Social",afterInvalidOtpAEAT:"Abandonado despues de OTP inválido en AEAT",afterWaitingOtpAEAT:"Abandonado después de esperar OTP de AEAT"},loadings:{gettingData:"Obteniendo datos de la solicitud...",resendingOtp:"Reenviando OTP...",sendingData:"Enviando datos..",validatingData:"Validando nuevos datos, espere por favor..",validatingAndLoginSS:"Validando datos y logueandose a Seguridad Social, espere por favor..",validatingAndLoginAEAT:"Validando datos y logueandose a AEAT, espere por favor..",resendingRequest:"Reintentando enviar la solicitud...",smsToPin:"Se ha detectado un número de teléfono incorrecto, vamos a probar por flujo Clave PIN",sendingNewPhone:"Enviando nuevo teléfono, aguarde por favor",validatingRequest:"Validando solicitud, espere por favor..",creatingRequest:"Creando solicitud, espere",cancelingRequest:"Cancelando solicitud...",checkingSms:"Verificando servicio SMS.."},actions:{continue:"Continuar",cancel:"Cancelar proceso",back:"Volver",send:"Enviar",retry:"Intentarlo nuevamente",resend:"Reenviar",next:"Siguiente",clickToFinish:"Haga click aquí para finalizar",newRequest:"Nueva solicitud",gotoCurrentRequest:"Ir a la solicitud actual"},otp:{requestingOtp:"Estamos solicitando el código. Por favor, espere un momento.",otpSentToNumber:"El código ha sido enviado al teléfono acabado en",requestingCode:"Estamos solicitando el código. Por favor, espere un momento.",noReceivedCode:"¿No has recibido el código en tu teléfono?",noReceivedCode2:"¿No has recibido el código en el teléfono acabado en",otpCode:"Código OTP (recibido por SMS)"}},en:{nie:"NIE",dni:"DNI",nieOrDni:"DNI or NIE",birthday:"Date of birth",expiration:"ID expiration date",support:"Support code",phone:"Phone",email:"Email",inputEmail:"Enter your email",findExpiration:"Where can I find it?",send:"Send",unknownState:"Unknown status",manual:"Enter manually",warnings:{error:"Error!",invalidDni:"You must enter a valid DNI!",invalidNie:"You must enter a valid NIE!",invalidNieOrDni:"You must enter a valid DNI or NIE!",errorSomeData:"Error in some data",noPinService:"No Clave PIN service",noCustomization:"The widget customization has not been configured for this user",ocassionalError:"We are detecting occasional errors; if you cannot complete your request, please try again later",wrongDni:"Incorrect document number",wrongDniDesc:"The entered document number is incorrect, please enter another one",wrongDate:"Incorrect date",wrongDateDesc:"The date of birth is incorrect. Please check it",wrongSupport:"Invalid support number!",inputSupport:"Please enter the support code",unknownError:"Unknown error: ",noSms:"No SMS service",noSmsDesc:"The user has no SMS service; we will try to access through the Clave PIN flow. Please fill in the required fields",noOtp:"You have not received the OTP yet. Try again when you receive it",wrongOtp:"Invalid code. Please enter the code received by SMS",haveToReadTerms:"You must read the terms and conditions to continue",phoneError:"Phone error",dontHavePhone:"I don’t have another phone",badPhoneSS:"The entered phone number does not match the one registered with Social Security, please enter another one",wrongBirthday:"Incorrect date of birth",inputBirthDay:"Please enter the date of birth",wrongExpiration:"Incorrect expiration date",inputExpiration:"Please enter the document expiration date",duplicatedRequest:"Duplicate request!",alreadyHaveRequest:"A request already exists for this client.",currentRequestStatus:"Current request status: ",requestNoExist:"The request does not exist",noRequests:"There are no active requests with the required code",needMoreData:"We need more data to validate access to public administrations"},abandoned:{afterWaitingOtpSS:"Abandoned after waiting for Social Security OTP",afterInvalidOtpSS:"Abandoned after invalid OTP in Social Security",afterInvalidOtpAEAT:"Abandoned after invalid OTP in AEAT",afterWaitingOtpAEAT:"Abandoned after waiting for AEAT OTP"},loadings:{gettingData:"Retrieving request data...",resendingOtp:"Resending OTP...",sendingData:"Sending data...",validatingData:"Validating new data, please wait...",validatingAndLoginSS:"Validating data and logging into Social Security, please wait...",validatingAndLoginAEAT:"Validating data and logging into AEAT, please wait...",resendingRequest:"Retrying to submit the request...",smsToPin:"An incorrect phone number was detected; we are going to try the Clave PIN flow",sendingNewPhone:"Sending new phone number, please wait",validatingRequest:"Validating request, please wait...",creatingRequest:"Creating request, please wait",cancelingRequest:"Cancelling request...",checkingSms:"Checking SMS service..."},actions:{continue:"Continue",cancel:"Cancel process",back:"Back",send:"Send",retry:"Try again",resend:"Resend",next:"Next",clickToFinish:"Click here to finish",newRequest:"New request",gotoCurrentRequest:"Go to current request"},otp:{requestingOtp:"We are requesting the code. Please wait a moment.",otpSentToNumber:"The code has been sent to the phone ending in",requestingCode:"We are requesting the code. Please wait a moment.",noReceivedCode:"Didn’t receive the code on your phone?",noReceivedCode2:"Didn’t receive the code on the phone ending in",otpCode:"OTP code (received by SMS)"}},ca:{nie:"NIE",dni:"DNI",nieOrDni:"DNI o NIE",birthday:"Data de naixement",expiration:"Data de caducitat del DNI",support:"Codi de suport",phone:"Telèfon",email:"Correu electrònic",inputEmail:"Introdueix el teu correu electrònic",findExpiration:"On la trobo?",send:"Enviar",unknownState:"Estat desconegut",manual:"Introduir manualment",warnings:{error:"Error!",invalidDni:"Has d'introduir un DNI vàlid!",invalidNie:"Has d'introduir un NIE vàlid!",invalidNieOrDni:"Has d'introduir un DNI o NIE vàlid!",errorSomeData:"Error en algunes dades",noPinService:"Sense servei Clave PIN",noCustomization:"No s'ha configurat la personalització del widget per a aquest usuari",ocassionalError:"Estem detectant errors ocasionals; si no pots completar la teva sol·licitud, torna-ho a intentar més tard",wrongDni:"Número de document incorrecte",wrongDniDesc:"El número de document introduït és incorrecte, si us plau, introdueix-ne un altre",wrongDate:"Data incorrecta",wrongDateDesc:"La data de naixement és incorrecta. Revisa-la, si us plau",wrongSupport:"Número de suport no vàlid!",inputSupport:"Si us plau, introdueix el codi de suport",unknownError:"Error desconegut: ",noSms:"Sense servei SMS",noSmsDesc:"L'usuari no té servei d'SMS; intentarem accedir pel flux Clave PIN. Si us plau, omple els camps necessaris",noOtp:"Encara no has rebut l’OTP. Torna-ho a intentar quan el rebis",wrongOtp:"Codi no vàlid. Si us plau, introdueix el codi rebut per SMS",haveToReadTerms:"Has de llegir els termes i condicions per poder continuar",phoneError:"Error amb el telèfon",dontHavePhone:"No tinc un altre telèfon",badPhoneSS:"El telèfon introduït no coincideix amb el registrat a la Seguretat Social, si us plau, introdueix-ne un altre",wrongBirthday:"Data de naixement incorrecta",inputBirthDay:"Si us plau, introdueix la data de naixement",wrongExpiration:"Data de caducitat incorrecta",inputExpiration:"Si us plau, introdueix la data de caducitat del document",duplicatedRequest:"Sol·licitud duplicada!",alreadyHaveRequest:"Ja existeix una sol·licitud per a aquest client.",currentRequestStatus:"Estat de la sol·licitud actual: ",requestNoExist:"La sol·licitud no existeix",noRequests:"No hi ha sol·licituds actives amb el codi requerit",needMoreData:"Necessitem més dades per validar l’accés a les administracions públiques"},abandoned:{afterWaitingOtpSS:"Abandonat després d’esperar l’OTP de la Seguretat Social",afterInvalidOtpSS:"Abandonat després d’un OTP no vàlid a la Seguretat Social",afterInvalidOtpAEAT:"Abandonat després d’un OTP no vàlid a l’AEAT",afterWaitingOtpAEAT:"Abandonat després d’esperar l’OTP de l’AEAT"},loadings:{gettingData:"Obtenint dades de la sol·licitud...",resendingOtp:"Reenviant l’OTP...",sendingData:"Enviant dades...",validatingData:"Validant dades noves, espera, si us plau...",validatingAndLoginSS:"Validant dades i iniciant sessió a la Seguretat Social, espera, si us plau...",validatingAndLoginAEAT:"Validant dades i iniciant sessió a l’AEAT, espera, si us plau...",resendingRequest:"Tornant a intentar enviar la sol·licitud...",smsToPin:"S’ha detectat un número de telèfon incorrecte; provarem el flux Clave PIN",sendingNewPhone:"Enviant el nou telèfon, espera, si us plau",validatingRequest:"Validant la sol·licitud, espera, si us plau...",creatingRequest:"Creant la sol·licitud, espera",cancelingRequest:"Cancel·lant la sol·licitud...",checkingSms:"Verificant el servei SMS..."},actions:{continue:"Continuar",cancel:"Cancel·lar el procés",back:"Tornar",send:"Enviar",retry:"Torna-ho a intentar",resend:"Reenviar",next:"Següent",clickToFinish:"Fes clic aquí per finalitzar",newRequest:"Nova sol·licitud",gotoCurrentRequest:"Anar a la sol·licitud actual"},otp:{requestingOtp:"Estem sol·licitant el codi. Si us plau, espera un moment.",otpSentToNumber:"El codi s’ha enviat al telèfon acabat en",requestingCode:"Estem sol·licitant el codi. Si us plau, espera un moment.",noReceivedCode:"No has rebut el codi al teu telèfon?",noReceivedCode2:"No has rebut el codi al telèfon acabat en",otpCode:"Codi OTP (rebut per SMS)"}},fr:{nie:"NIE",dni:"DNI",nieOrDni:"DNI ou NIE",birthday:"Date de naissance",expiration:"Date d'expiration du DNI",support:"Code de support",phone:"Téléphone",email:"E-mail",inputEmail:"Saisis ton e-mail",findExpiration:"Où la trouver ?",send:"Envoyer",unknownState:"Statut inconnu",manual:"Saisir manuellement",warnings:{error:"Erreur !",invalidDni:"Tu dois saisir un DNI valide !",invalidNie:"Tu dois saisir un NIE valide !",invalidNieOrDni:"Tu dois saisir un DNI ou NIE valide !",errorSomeData:"Erreur dans certaines données",noPinService:"Sans service Clave PIN",noCustomization:"La personnalisation du widget n'a pas été configurée pour cet utilisateur",ocassionalError:"Nous détectons des erreurs occasionnelles ; si tu ne peux pas compléter ta demande, réessaie plus tard",wrongDni:"Numéro de document incorrect",wrongDniDesc:"Le numéro de document saisi est incorrect, merci d’en saisir un autre",wrongDate:"Date incorrecte",wrongDateDesc:"La date de naissance est incorrecte. Vérifie-la, s’il te plaît",wrongSupport:"Numéro de support invalide !",inputSupport:"Merci de saisir le code de support",unknownError:"Erreur inconnue : ",noSms:"Sans service SMS",noSmsDesc:"L'utilisateur n'a pas de service SMS ; nous allons tenter d'accéder via le flux Clave PIN, merci de remplir les champs requis",noOtp:"Tu n'as pas encore reçu l'OTP. Réessaie quand tu l'auras reçu",wrongOtp:"Code invalide. Merci de saisir le code reçu par SMS",haveToReadTerms:"Tu dois lire les termes et conditions pour pouvoir continuer",phoneError:"Erreur avec le téléphone",dontHavePhone:"Je n'ai pas d'autre téléphone",badPhoneSS:"Le numéro de téléphone saisi ne correspond pas à celui enregistré à la Sécurité sociale, merci d'en saisir un autre",wrongBirthday:"Date de naissance incorrecte",inputBirthDay:"Merci de saisir la date de naissance",wrongExpiration:"Date d'expiration incorrecte",inputExpiration:"Merci de saisir la date d'expiration du document",duplicatedRequest:"Demande dupliquée !",alreadyHaveRequest:"Il existe déjà une demande pour ce client.",currentRequestStatus:"Statut actuel de la demande : ",requestNoExist:"La demande n'existe pas",noRequests:"Il n'y a pas de demandes actives avec le code requis",needMoreData:"Nous avons besoin de plus de données pour valider l'accès aux administrations publiques"},abandoned:{afterWaitingOtpSS:"Abandonné après avoir attendu l'OTP de la Sécurité sociale",afterInvalidOtpSS:"Abandonné après un OTP invalide à la Sécurité sociale",afterInvalidOtpAEAT:"Abandonné après un OTP invalide à l'AEAT",afterWaitingOtpAEAT:"Abandonné après avoir attendu l'OTP de l'AEAT"},loadings:{gettingData:"Récupération des données de la demande...",resendingOtp:"Renvoi de l'OTP...",sendingData:"Envoi des données...",validatingData:"Validation des nouvelles données, merci de patienter...",validatingAndLoginSS:"Validation des données et connexion à la Sécurité sociale, merci de patienter...",validatingAndLoginAEAT:"Validation des données et connexion à l'AEAT, merci de patienter...",resendingRequest:"Nouvelle tentative d'envoi de la demande...",smsToPin:"Un numéro de téléphone incorrect a été détecté ; nous allons essayer le flux Clave PIN",sendingNewPhone:"Envoi du nouveau numéro de téléphone, merci de patienter",validatingRequest:"Validation de la demande, merci de patienter...",creatingRequest:"Création de la demande, merci de patienter",cancelingRequest:"Annulation de la demande...",checkingSms:"Vérification du service SMS..."},actions:{continue:"Continuer",cancel:"Annuler le processus",back:"Retour",send:"Envoyer",retry:"Réessayer",resend:"Renvoyer",next:"Suivant",clickToFinish:"Clique ici pour terminer",newRequest:"Nouvelle demande",gotoCurrentRequest:"Aller à la demande actuelle"},otp:{requestingOtp:"Nous demandons le code. Merci de patienter un instant.",otpSentToNumber:"Le code a été envoyé au téléphone se terminant par",requestingCode:"Nous demandons le code. Merci de patienter un instant.",noReceivedCode:"Tu n'as pas reçu le code sur ton téléphone ?",noReceivedCode2:"Tu n'as pas reçu le code sur le téléphone se terminant par",otpCode:"Code OTP (reçu par SMS)"}},it:{nie:"NIE",dni:"DNI",nieOrDni:"DNI o NIE",birthday:"Data di nascita",expiration:"Data di scadenza del DNI",support:"Codice di supporto",phone:"Telefono",email:"Email",inputEmail:"Inserisci la tua email",findExpiration:"Dove la trovo?",send:"Invia",unknownState:"Stato sconosciuto",manual:"Inserisci manualmente",warnings:{error:"Errore!",invalidDni:"Devi inserire un DNI valido!",invalidNie:"Devi inserire un NIE valido!",invalidNieOrDni:"Devi inserire un DNI o NIE valido!",errorSomeData:"Errore in alcuni dati",noPinService:"Servizio Clave PIN non disponibile",noCustomization:"La personalizzazione del widget non è stata configurata per questo utente",ocassionalError:"Stiamo rilevando errori occasionali, se non riesci a completare la tua richiesta, riprova più tardi",wrongDni:"Numero di documento errato",wrongDniDesc:"Il numero di documento inserito è errato, inseriscine un altro per favore",wrongDate:"Data errata",wrongDateDesc:"La data di nascita è errata. Per favore, controllala",wrongSupport:"Codice di supporto non valido!",inputSupport:"Per favore, inserisci il codice di supporto",unknownError:"Errore sconosciuto: ",noSms:"Servizio SMS non disponibile",noSmsDesc:"L'utente non ha il servizio SMS, proveremo ad accedere tramite il flusso Clave PIN, per favore compila i campi necessari",noOtp:"Non hai ancora ricevuto l'OTP. Riprova quando lo ricevi",wrongOtp:"Codice non valido. Per favore, inserisci il codice ricevuto via SMS",haveToReadTerms:"Devi leggere i termini e le condizioni per poter continuare",phoneError:"Errore con il telefono",dontHavePhone:"Non ho un altro telefono",badPhoneSS:"Il telefono inserito non corrisponde a quello registrato presso la Sicurezza Sociale, inseriscine un altro per favore",wrongBirthday:"Data di nascita errata",inputBirthDay:"Per favore, inserisci la data di nascita",wrongExpiration:"Data di scadenza errata",inputExpiration:"Per favore, inserisci la data di scadenza del documento",duplicatedRequest:"Richiesta duplicata!",alreadyHaveRequest:"Esiste già una richiesta per questo cliente.",currentRequestStatus:"Stato della richiesta attuale: ",requestNoExist:"La richiesta non esiste",noRequests:"Non esistono richieste attive con il codice richiesto",needMoreData:"Abbiamo bisogno di più dati per convalidare l'accesso alle amministrazioni pubbliche"},abandoned:{afterWaitingOtpSS:"Abbandonato dopo aver atteso l'OTP della Sicurezza Sociale",afterInvalidOtpSS:"Abbandonato dopo OTP non valido nella Sicurezza Sociale",afterInvalidOtpAEAT:"Abbandonato dopo OTP non valido nell'AEAT",afterWaitingOtpAEAT:"Abbandonato dopo aver atteso l'OTP dell'AEAT"},loadings:{gettingData:"Recupero dei dati della richiesta...",resendingOtp:"Invio nuovamente l'OTP...",sendingData:"Invio dei dati...",validatingData:"Validazione dei nuovi dati, attendere per favore...",validatingAndLoginSS:"Validazione dei dati e accesso alla Sicurezza Sociale, attendere per favore...",validatingAndLoginAEAT:"Validazione dei dati e accesso all'AEAT, attendere per favore...",resendingRequest:"Nuovo tentativo di invio della richiesta...",smsToPin:"È stato rilevato un numero di telefono errato, proveremo tramite il flusso Clave PIN",sendingNewPhone:"Invio del nuovo telefono, attendere per favore",validatingRequest:"Validazione della richiesta, attendere per favore...",creatingRequest:"Creazione della richiesta, attendere per favore",cancelingRequest:"Annullamento della richiesta...",checkingSms:"Verifica del servizio SMS..."},actions:{continue:"Continua",cancel:"Annulla processo",back:"Indietro",send:"Invia",retry:"Riprova",resend:"Reinvia",next:"Avanti",clickToFinish:"Clicca qui per terminare",newRequest:"Nuova richiesta",gotoCurrentRequest:"Vai alla richiesta attuale"},otp:{requestingOtp:"Stiamo richiedendo il codice. Attendere un momento, per favore.",otpSentToNumber:"Il codice è stato inviato al telefono che termina con",requestingCode:"Stiamo richiedendo il codice. Attendere un momento, per favore.",noReceivedCode:"Non hai ricevuto il codice sul tuo telefono?",noReceivedCode2:"Non hai ricevuto il codice sul telefono che termina con",otpCode:"Codice OTP (ricevuto via SMS)"}},pt:{nie:"NIE",dni:"DNI",nieOrDni:"DNI ou NIE",birthday:"Data de nascimento",expiration:"Data de validade do DNI",support:"Código de suporte",phone:"Telefone",email:"E-mail",inputEmail:"Digite seu e-mail",findExpiration:"Onde encontro?",send:"Enviar",unknownState:"Estado desconhecido",manual:"Inserir manualmente",warnings:{error:"Erro!",invalidDni:"Você deve inserir um DNI válido!",invalidNie:"Você deve inserir um NIE válido!",invalidNieOrDni:"Você deve inserir um DNI ou NIE válido!",errorSomeData:"Erro em alguns dados",noPinService:"Sem serviço Clave PIN",noCustomization:"A personalização do widget não foi configurada para este usuário",ocassionalError:"Estamos detectando erros ocasionais; se não conseguir concluir sua solicitação, tente novamente mais tarde",wrongDni:"Número de documento incorreto",wrongDniDesc:"O número de documento informado está incorreto, insira outro por favor",wrongDate:"Data incorreta",wrongDateDesc:"A data de nascimento está incorreta. Verifique, por favor",wrongSupport:"Código de suporte inválido!",inputSupport:"Por favor, insira o código de suporte",unknownError:"Erro desconhecido: ",noSms:"Sem serviço SMS",noSmsDesc:"O usuário não possui serviço de SMS; vamos tentar entrar pelo fluxo Clave PIN, por favor preencha os campos necessários",noOtp:"Você ainda não recebeu o OTP. Tente novamente quando recebê-lo",wrongOtp:"Código inválido. Por favor, insira o código recebido por SMS",haveToReadTerms:"Você deve ler os termos e condições para continuar",phoneError:"Erro com o telefone",dontHavePhone:"Não tenho outro telefone",badPhoneSS:"O telefone informado não coincide com o registrado na Seguridade Social, por favor insira outro",wrongBirthday:"Data de nascimento incorreta",inputBirthDay:"Por favor, insira a data de nascimento",wrongExpiration:"Data de validade incorreta",inputExpiration:"Por favor, insira a data de validade do documento",duplicatedRequest:"Solicitação duplicada!",alreadyHaveRequest:"Já existe uma solicitação para este cliente.",currentRequestStatus:"Status da solicitação atual: ",requestNoExist:"A solicitação não existe",noRequests:"Não existem solicitações ativas com o código informado",needMoreData:"Precisamos de mais dados para validar o acesso às administrações públicas"},abandoned:{afterWaitingOtpSS:"Abandonado após aguardar o OTP da Seguridade Social",afterInvalidOtpSS:"Abandonado após OTP inválido na Seguridade Social",afterInvalidOtpAEAT:"Abandonado após OTP inválido na AEAT",afterWaitingOtpAEAT:"Abandonado após aguardar o OTP da AEAT"},loadings:{gettingData:"Obtendo dados da solicitação...",resendingOtp:"Reenviando OTP...",sendingData:"Enviando dados...",validatingData:"Validando novos dados, aguarde por favor...",validatingAndLoginSS:"Validando dados e acessando a Seguridade Social, aguarde por favor...",validatingAndLoginAEAT:"Validando dados e acessando a AEAT, aguarde por favor...",resendingRequest:"Tentando reenviar a solicitação...",smsToPin:"Detectamos um número de telefone incorreto, vamos tentar pelo fluxo Clave PIN",sendingNewPhone:"Enviando novo telefone, aguarde por favor",validatingRequest:"Validando solicitação, aguarde por favor...",creatingRequest:"Criando solicitação, aguarde por favor",cancelingRequest:"Cancelando solicitação...",checkingSms:"Verificando serviço SMS..."},actions:{continue:"Continuar",cancel:"Cancelar processo",back:"Voltar",send:"Enviar",retry:"Tentar novamente",resend:"Reenviar",next:"Seguinte",clickToFinish:"Clique aqui para finalizar",newRequest:"Nova solicitação",gotoCurrentRequest:"Ir para a solicitação atual"},otp:{requestingOtp:"Estamos solicitando o código. Por favor, aguarde um momento.",otpSentToNumber:"O código foi enviado para o telefone terminado em",requestingCode:"Estamos solicitando o código. Por favor, aguarde um momento.",noReceivedCode:"Não recebeu o código no seu telefone?",noReceivedCode2:"Não recebeu o código no telefone terminado em",otpCode:"Código OTP (recebido por SMS)"}},de:{nie:"NIE",dni:"DNI",nieOrDni:"DNI oder NIE",birthday:"Geburtsdatum",expiration:"Ablaufdatum des DNI",support:"Support-Code",phone:"Telefon",email:"E-Mail",inputEmail:"Gib deine E-Mail ein",findExpiration:"Wo finde ich ihn?",send:"Senden",unknownState:"Unbekannter Status",manual:"Manuell eingeben",warnings:{error:"Fehler!",invalidDni:"Du musst eine gültige DNI eingeben!",invalidNie:"Du musst eine gültige NIE eingeben!",invalidNieOrDni:"Du musst eine gültige DNI oder NIE eingeben!",errorSomeData:"Fehler in einigen Angaben",noPinService:"Kein Clave-PIN-Dienst",noCustomization:"Das Widget wurde für diesen Benutzer nicht konfiguriert",ocassionalError:"Wir stellen gelegentliche Fehler fest. Wenn du deine Anfrage nicht abschließen kannst, versuche es später erneut",wrongDni:"Dokumentennummer falsch",wrongDniDesc:"Die eingegebene Dokumentennummer ist falsch, bitte gib eine andere ein",wrongDate:"Datum falsch",wrongDateDesc:"Das Geburtsdatum ist falsch. Bitte überprüfe es",wrongSupport:"Support-Code ungültig!",inputSupport:"Bitte gib den Support-Code ein",unknownError:"Unbekannter Fehler: ",noSms:"Kein SMS-Dienst",noSmsDesc:"Der Benutzer hat keinen SMS-Dienst. Wir versuchen es über den Clave-PIN-Fluss. Bitte fülle die erforderlichen Felder aus",noOtp:"Du hast den OTP noch nicht erhalten. Versuche es erneut, wenn du ihn erhältst",wrongOtp:"Ungültiger Code. Bitte gib den per SMS erhaltenen Code ein",haveToReadTerms:"Du musst die Allgemeinen Geschäftsbedingungen lesen, um fortzufahren",phoneError:"Fehler mit dem Telefon",dontHavePhone:"Ich habe kein anderes Telefon",badPhoneSS:"Die eingegebene Telefonnummer stimmt nicht mit der bei der Sozialversicherung registrierten überein, bitte gib eine andere ein",wrongBirthday:"Geburtsdatum falsch",inputBirthDay:"Bitte gib das Geburtsdatum ein",wrongExpiration:"Ablaufdatum falsch",inputExpiration:"Bitte gib das Ablaufdatum des Dokuments ein",duplicatedRequest:"Doppelte Anfrage!",alreadyHaveRequest:"Es existiert bereits eine Anfrage für diesen Kunden.",currentRequestStatus:"Status der aktuellen Anfrage: ",requestNoExist:"Die Anfrage existiert nicht",noRequests:"Es gibt keine aktiven Anfragen mit dem angegebenen Code",needMoreData:"Wir benötigen weitere Daten, um den Zugang zu öffentlichen Verwaltungen zu prüfen"},abandoned:{afterWaitingOtpSS:"Abgebrochen nach Warten auf OTP der Sozialversicherung",afterInvalidOtpSS:"Abgebrochen nach ungültigem OTP bei der Sozialversicherung",afterInvalidOtpAEAT:"Abgebrochen nach ungültigem OTP bei der AEAT",afterWaitingOtpAEAT:"Abgebrochen nach Warten auf OTP der AEAT"},loadings:{gettingData:"Antragsdaten werden abgerufen...",resendingOtp:"OTP wird erneut gesendet...",sendingData:"Daten werden gesendet...",validatingData:"Neue Daten werden validiert, bitte warten...",validatingAndLoginSS:"Daten werden validiert und bei der Sozialversicherung angemeldet, bitte warten...",validatingAndLoginAEAT:"Daten werden validiert und bei der AEAT angemeldet, bitte warten...",resendingRequest:"Anfrage wird erneut gesendet...",smsToPin:"Es wurde eine falsche Telefonnummer erkannt, wir versuchen es über den Clave-PIN-Fluss",sendingNewPhone:"Neue Telefonnummer wird gesendet, bitte warten",validatingRequest:"Anfrage wird validiert, bitte warten...",creatingRequest:"Anfrage wird erstellt, bitte warten",cancelingRequest:"Anfrage wird storniert...",checkingSms:"SMS-Dienst wird überprüft..."},actions:{continue:"Weiter",cancel:"Prozess abbrechen",back:"Zurück",send:"Senden",retry:"Erneut versuchen",resend:"Erneut senden",next:"Weiter",clickToFinish:"Hier klicken, um abzuschließen",newRequest:"Neue Anfrage",gotoCurrentRequest:"Zur aktuellen Anfrage"},otp:{requestingOtp:"Wir fordern den Code an. Bitte einen Moment warten.",otpSentToNumber:"Der Code wurde an die Telefonnummer gesendet, die endet auf",requestingCode:"Wir fordern den Code an. Bitte einen Moment warten.",noReceivedCode:"Hast du den Code nicht auf deinem Telefon erhalten?",noReceivedCode2:"Hast du den Code nicht auf dem Telefon erhalten, das endet auf",otpCode:"OTP-Code (per SMS erhalten)"}}}},5028:(e,t,n)=>{n.d(t,{q:()=>C});var i=n(6895),r=n(1561),s=n(9101),o=n(811),a=n(6709),l=n(3238),c=n(9602),d=n(7392),u=n(4144),h=n(8739),p=n(1572),m=n(1948),f=n(4385),g=n(6308),_=n(6257),v=n(7155),y=n(266),b=n(7009),x=n(5412),w=n(4650);let C=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=w.ɵɵdefineNgModule({type:e}),e.ɵinj=w.ɵɵdefineInjector({imports:[i.ez,h.TU,v.p0,g.JX,a.p9,d.Ps,s.ot,r.Tx,u.c,y.AV,f.LD,o.vV,p.Cq,c.FA,l.XK,_.T5,m.Fk,b.ZX,x.Is,h.TU,v.p0,g.JX,a.p9,d.Ps,s.ot,r.Tx,u.c,y.AV,f.LD,o.vV,p.Cq,c.FA,l.XK,_.T5,m.Fk,b.ZX,x.Is]}),e})()},865:(e,t,n)=>{n.d(t,{q:()=>c});var i=n(6895),r=n(4006),s=n(6981),o=n(5028),a=n(2440),l=n(4650);let c=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=l.ɵɵdefineNgModule({type:e}),e.ɵinj=l.ɵɵdefineInjector({imports:[i.ez,s.x,o.q,r.FormsModule,r.ReactiveFormsModule,a.Xz]}),e})()},2340:(e,t,n)=>{n.d(t,{N:()=>i});const i={production:!1,env:"qa",baseUrl:"https://api.qa.belender.net",cdnImgBaseUrl:"https://widget.qa.belender.net/assets/img/",scraperMock:!0,notificationsBaseUrl:"wss://notifications.qa.belender.net",isWebComponent:!0}},4431:(e,t,n)=>{var i=n(5861),r=n(1481),s=n(4650),o=n(9331),a=n(2340);a.N.production&&(0,s.enableProdMode)(),a.N.isWebComponent?window.initBelenderComponent=(0,i.Z)((function*(){if(window.BelenderWebComponent)return window.BelenderWebComponent;yield r.platformBrowser().bootstrapModule(o.b);const e=window.BelenderWebComponent;if(!e)throw new Error("La clase BelenderWebComponent no fue generada por AppModule. Revisar la lógica de createCustomElement.");return e})):r.platformBrowser().bootstrapModule(o.b).catch((e=>console.error(e)))},7838:(e,t,n)=>{n.d(t,{y:()=>r});var i=n(4650);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i.ɵɵdefineNgModule({type:e}),e.ɵinj=i.ɵɵdefineInjector({}),e})()},9186:(e,t,n)=>{n.d(t,{z:()=>o});var i=n(4650),r=n(2340);let s=(()=>{class e{constructor(){this.cdnImgBaseUrl=r.N.cdnImgBaseUrl}getUrl(e){return e.startsWith("img/")?`${this.cdnImgBaseUrl}${e.replace(/^img\//,"")}`:`assets/${e}`}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),o=(()=>{class e{constructor(e){this.assets=e}transform(e){return this.assets.getUrl(e)}}return e.ɵfac=function(t){return new(t||e)(i.ɵɵdirectiveInject(s,16))},e.ɵpipe=i.ɵɵdefinePipe({name:"assetUrl",type:e,pure:!0}),e})()},6981:(e,t,n)=>{n.d(t,{x:()=>r});var i=n(4650);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i.ɵɵdefineNgModule({type:e}),e.ɵinj=i.ɵɵdefineInjector({}),e})()},2567:(e,t,n)=>{n.d(t,{e:()=>s});var i=n(1135),r=n(4650);let s=(()=>{class e{constructor(){this.bUserData=new i.X(null),this.logged=!1}setUserToken(e,t){this.userToken=e+" "+t}getUserToken(){return this.userToken}setUserData(e){this.userData=e,this.logged=!0,this.bUserData.next(e)}getUserData(){return this.userData}bindUserData(){return this.bUserData.asObservable()}setUserId(e){this.userId=e}getUserId(){return this.userId}setFunderId(e){this.financiadorID=e}getFunderId(){return this.financiadorID}isLogged(){return this.logged}setLogged(e){this.logged=e}getUserRole(){return this.userData.role}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},7367:(e,t,n)=>{n.d(t,{w:()=>h});var i=n(5861),r=n(6197),s=n(1135),o=n(2340),a=n(4650),l=n(5089),c=n(529),d=n(6554),u=n(7308);let h=(()=>{class e{constructor(e,t,n,i){this.utils=e,this.http=t,this.localFetch=n,this.translationService=i,this.db=(0,r.N8)(),this._custommization=new s.X(null)}bindCustomizationFromFirebase(e){const t=(0,r.iH)(this.db,`customization/${e}`);(0,r.jM)(t,(e=>{const t=e.val();this._custommization.next(t)}))}getCustomization(e,t){return new Promise(((n,i)=>{const r=this.getFunderStyles(e),s=this.getFunderConfig(e),a=this.getCustomizationByFlow(e,t);Promise.all([r,s,a]).then((e=>{console.log("promise all: ",e)})),this.http.get(o.N.baseUrl+"/users/"+e+"/customization").subscribe((e=>{e?n(e):i(e)}),(e=>{i(e)}))}))}getFunderConfig(e){return new Promise(((t,n)=>{this.http.get(o.N.baseUrl+"/users/"+e+"/customization/config").subscribe((e=>{e?t(e):n(e)}),(e=>{n(e)}))}))}getFunderStyles(e){return new Promise(((t,n)=>{this.http.get(o.N.baseUrl+"/users/"+e+"/customization/style").subscribe((e=>{e?t(e):n(e)}),(e=>{n(e)}))}))}getCustomizationByFlow(e,t,n){var r=this;return new Promise(((s,a)=>{let l=o.N.baseUrl+"/users/"+e+"/customization/flow/"+t;var c;t&&"smspin"===t&&(l=o.N.baseUrl+"/users/"+e+"/customization/"+t),this.http.get(l).subscribe((c=(0,i.Z)((function*(i){i?i.data&&n?r.translationService.getTraductionFromApi(e,t,n).then((e=>{e&&e.data&&e.data.texts&&(i.data.texts=e.data.texts),s(i)})).catch((()=>{s(i)})):s(i):a(i)})),function(e){return c.apply(this,arguments)}),(e=>{a(e)}))}))}subscribeCustomization(){return this._custommization.asObservable()}saveCustomization(e,t){const n=(0,r.N8)();return(0,r.t8)((0,r.iH)(n,"customization/"+e),t),new Promise(((n,i)=>{this.localFetch.postFetch(o.N.baseUrl+"/funders/"+e+"/customization",t).then((e=>{e?n(e):i(!1)})).catch((e=>{i(e)}))}))}}return e.ɵfac=function(t){return new(t||e)(a.ɵɵinject(l.F),a.ɵɵinject(c.eN),a.ɵɵinject(d.r),a.ɵɵinject(u.D))},e.ɵprov=a.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},8460:(e,t,n)=>{n.d(t,{r:()=>s});var i=n(1135),r=n(4650);let s=(()=>{class e{constructor(){this.funderConfig=new i.X({}),this.funderConfig$=this.funderConfig.asObservable(),this.funderStyles=new i.X({}),this.funderStyles$=this.funderStyles.asObservable(),this.userID=new i.X({}),this.userID$=this.userID.asObservable(),this.packID=new i.X({}),this.packID$=this.userID.asObservable()}setUserID(e){this.USER_ID=e,this.userID.next(e)}setPackID(e){this.PACK_ID=e,this.packID.next(e)}setFunderStyles(e){this.FUNDER_STYLES=e,this.funderStyles.next(e)}setFunderConfig(e){this.FUNDER_CONFIG=e,this.funderConfig.next(e)}getUserID(){return this.userID$}getPackID(){return this.packID$}getFunderConfig(){return this.funderConfig$}getFunderStyles(){return this.funderStyles$}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},9045:(e,t,n)=>{n.d(t,{H:()=>s});var i=n(1135),r=n(4650);let s=(()=>{class e{constructor(){this.deviceInfo=new i.X({}),this.deviceInfo$=this.deviceInfo.asObservable(),this.isScaled=new i.X(!1),this.isScaled$=this.isScaled.asObservable()}setDeviceInfo(e){this.deviceInfo.next(e)}setScaled(e){this.isScaled.next(e)}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},6554:(e,t,n)=>{n.d(t,{r:()=>a});var i=n(5861),r=n(4650),s=n(2567),o=n(2029);let a=(()=>{class e{constructor(e,t){this.auth=e,this.handleErrors=t}freeGetFetch(e){var t=this;return(0,i.Z)((function*(){const n=yield fetch(e);return t.handleErrors.handleResponse(n)}))()}postFile(e,t){var n=this;return(0,i.Z)((function*(){let i=n.auth.getUserToken();const r=yield fetch(e,{method:"POST",headers:{Authorization:i},body:t});return n.handleErrors.handleResponse(r)}))()}getFetch(e){var t=this;return(0,i.Z)((function*(){let n=t.auth.getUserToken();const i=yield fetch(e,{method:"GET",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{Authorization:n},referrerPolicy:"no-referrer"});return t.handleErrors.handleResponse(i)}))()}getFetchWhitoutToken(e){var t=this;return(0,i.Z)((function*(){const n=yield fetch(e,{method:"GET"});return t.handleErrors.handleResponse(n)}))()}postFetch(e,t){var n=this;return(0,i.Z)((function*(){let i=n.auth.getUserToken();const r=yield fetch(e,{method:"POST",headers:{Authorization:i,"Content-Type":"application/json"},body:JSON.stringify(t)});return n.handleErrors.handleResponse(r)}))()}postFetchWhitoutToken(e,t){var n=this;return(0,i.Z)((function*(){n.auth.getUserToken();const i=yield fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return n.handleErrors.handleResponse(i)}))()}putFetchWhitoutToken(e,t){var n=this;return(0,i.Z)((function*(){const i=yield fetch(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return n.handleErrors.handleResponse(i)}))()}putFetch(e,t){var n=this;return(0,i.Z)((function*(){let i=n.auth.getUserToken();const r=yield fetch(e,{method:"PUT",headers:{Authorization:i,"Content-Type":"application/json"},body:JSON.stringify(t)});return n.handleErrors.handleResponse(r)}))()}postFileFetchWhitoutToken(e,t){var n=this;return(0,i.Z)((function*(){const i=yield fetch(e,{method:"POST",body:t});return n.handleErrors.handleResponse(i)}))()}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(s.e),r.ɵɵinject(o.F))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},2029:(e,t,n)=>{n.d(t,{F:()=>s});var i=n(5861),r=n(4650);let s=(()=>{class e{constructor(){this.ErrorsMap={birth_day:{status:"error",message:"Fecha de nacimiento incorrecta",code:422},birth_date:{status:"error",message:"Fecha de nacimiento incorrecta",code:422},phone:{status:"error",message:"Teléfono incorrecto",code:422},document_number:{message:"Número de documento inválido",code:422,status:"error"},document_expiration_date:{message:"Fecha de vencimiento incorrecta",code:422,status:"error"},document_support:{message:"Número de documento inválido",code:422,status:"error"},request_id:{message:"El código de solicitud es inválido",code:422,status:"error"},generic:{status:"error",message:"Error desconocido",code:0},code:{status:"error",messages:{"The code must be 6 characters.":"El código debe ser de 6 dígitos","The code must be 3 characters.":"El código debe ser de 3 dígitos"},code:422}}}getError(e,t,n){let i=""+n;return this.ErrorsMap[e]&&this.ErrorsMap[e][t]&&this.ErrorsMap[e][t][i]?this.ErrorsMap[e][t][i]:this.getGenericMessage()}getGenericMessage(){var e=this;return(0,i.Z)((function*(){return e.ErrorsMap.generic}))()}handleResponse(e){var t=this;return(0,i.Z)((function*(){let n=yield e;if(n.status>=200&&n.status<300)return e.json();if(422==n.status){let n=yield e.json(),i="",r=Object.keys(n.message);return r&&r.length&&r.forEach((e=>{console.error(e),t.ErrorsMap[e]?t.ErrorsMap[e].message?i+=" "+t.ErrorsMap[e].message:t.ErrorsMap[e].messages&&(i+=" "+t.ErrorsMap[e].messages[n.message[e][0]]):i+=" "+n.message[e]})),{message:i||n.message,code:422,status:"error"}}{let i=yield e.json(),r=t.ErrorsMap.generic;return i.message&&(r.message=i.message),r.response=i,r.code=+n.status,console.error("response from back: ",r),r}}))()}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},5895:(e,t,n)=>{n.d(t,{T:()=>p});var i=n(5226),r=n.n(i),s=n(6197),o=n(1135),a=n(5412),l=n(4650),c=n(9101);let d=(()=>{class e{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){}onNoClick(){this.dialogRef.close()}}return e.ɵfac=function(t){return new(t||e)(l.ɵɵdirectiveInject(a.so),l.ɵɵdirectiveInject(a.WI))},e.ɵcmp=l.ɵɵdefineComponent({type:e,selectors:[["vex-dialog"]],decls:8,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"py-2"],["mat-dialog-actions","",1,"flex","justify-end","items-center","pt-3"],["mat-button","","cdkFocusInitial","",3,"click"]],template:function(e,t){1&e&&(l.ɵɵelementStart(0,"h1",0),l.ɵɵtext(1),l.ɵɵelementEnd(),l.ɵɵelementStart(2,"div",1)(3,"p"),l.ɵɵtext(4),l.ɵɵelementEnd()(),l.ɵɵelementStart(5,"div",2)(6,"button",3),l.ɵɵlistener("click",(function(){return t.onNoClick()})),l.ɵɵtext(7,"Cerrar"),l.ɵɵelementEnd()()),2&e&&(l.ɵɵadvance(1),l.ɵɵtextInterpolate(t.data.title),l.ɵɵadvance(3),l.ɵɵtextInterpolate(t.data.message))},dependencies:[c.lW],styles:["h1[_ngcontent-%COMP%]{font-size:20px}"]}),e})();var u=n(7009),h=n(8460);let p=(()=>{class e{constructor(e,t,n){this.snackBar=e,this.dialog=t,this.customizationStore=n,this._userNotifications=new o.X([]),this.countNotifications=0,this.userID="123"}showToast(e,t,n){this.snackBar.open(e||"I'm a notification!","Close",{duration:t||4e3,horizontalPosition:"right",verticalPosition:"top",panelClass:n||""})}showAlert(e,t,n,i){let s={title:e,text:t||"",showCancelButton:!!i,confirmButtonText:i&&i.okButtonLabel?i.okButtonLabel:"OK",cancelButtonText:i&&i.cancelButtonLabel?i.cancelButtonLabel:""};this.customizationStore.FUNDER_STYLES&&(n=this.getIconFromString(n)),this.isIcon(n)?s.icon=n||"info":s.imageUrl=n,r().fire(s).then((e=>{e.value?i&&i.okAction&&i.okAction():e.dismiss===r().DismissReason.cancel&&i&&i.cancelAction&&i.cancelAction()}))}getIconFromString(e){return e&&this.customizationStore&&this.customizationStore.FUNDER_STYLES?"success"==e?this.customizationStore.FUNDER_STYLES.successIcon||e:"error"==e?this.customizationStore.FUNDER_STYLES.errorIcon||e:"warning"==e?this.customizationStore.FUNDER_STYLES.warningIcon||e:"info"==e&&this.customizationStore.FUNDER_STYLES.infoIcon||e:"error"}isIcon(e){return!e||"success"==e||"error"==e||"warning"==e||"info"==e||"question"==e}showPrompt(e){return new Promise(((t,n)=>{r().fire({title:e,input:"text",inputAttributes:{autocapitalize:"off"},showCancelButton:!0,confirmButtonText:"Enviar",allowOutsideClick:!0}).then((e=>{e.isConfirmed?t(e.value):n(!1)}))}))}bindFunderNotifications(e){this.userID=e;const t=(0,s.N8)(),n=(0,s.iH)(t,`notifications/${e}`);(0,s.jM)(n,(e=>{let t=e.val(),n=t?this.convertObjectArrayToArray(t):[];t&&this.countNotifications<n.length&&this.showToast("Nueva notificacion",5e3,"info"),this.countNotifications=+n.length,this._userNotifications.next(n&&n.length?n.sort(((e,t)=>this.sortByDate(e,t))):[])}))}sortByDate(e,t){return+new Date(e.date).getTime()-+new Date(t.date).getTime()}convertObjectArrayToArray(e){return Object.keys(e).map((t=>{const n=e[t];return n.key=t,n}))}parseNotificationMap(e){}subscribeMyNotifications(){return this._userNotifications.asObservable()}markAsReaded(e){const t=(0,s.N8)();(0,s.t8)((0,s.iH)(t,`notifications/${this.userID}/${e}/readed`),!0)}openDialog(e){this.dialog.open(d,{data:e||null,width:"400px"}).afterClosed().subscribe((e=>{console.log("The dialog was closed")}))}deleteNotification(e){const t=(0,s.N8)();(0,s.t8)((0,s.iH)(t,`notifications/${this.userID}/${e}`),null).then((e=>{this.showToast("Notificación eliminada",4e3,"danger")}))}}return e.ɵfac=function(t){return new(t||e)(l.ɵɵinject(u.ux),l.ɵɵinject(a.uw),l.ɵɵinject(h.r))},e.ɵprov=l.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},7308:(e,t,n)=>{n.d(t,{D:()=>d});var i=n(5861),r=n(529),s=n(1135),o=n(1931),a=n(2340),l=n(4650),c=n(5895);let d=(()=>{class e{constructor(e,t){this.http=e,this.notis=t,this.data={},this.loadingData=new s.X(!1),this.openAiKey="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",this.availableLanguages={en:"inglés",ca:"catalán",pt:"portugués",de:"alemán",fr:"francés",it:"italiano"},this.loadersLanguage={en:"Retrieving data from the request...",ca:"Obtenint dades de la sol·licitud...",pt:"A recuperar dados da solicitação...",de:"Daten aus der Anfrage werden abgerufen …",fr:"Récupération des données de la requête...",it:"Recupero dei dati dalla richiesta..."}}getLoadingLanguage(){return this.loadingData.asObservable()}use(e){return this.loadingData.next(!0),new Promise((t=>{this.http.get(`./assets/lang/${e||"en"}.json`).subscribe((n=>{localStorage.setItem("belender-language",e),this.data=n||{},this.loadingData.next(!1),t(this.data)}),(e=>{this.data={},t(this.data)}))}))}getLabelsTranslated(e){return o.S&&o.S[e]?o.S[e]:o.S.es}getFirstLoading(e){return this.loadersLanguage[e]?this.loadersLanguage[e]:"Obteniendo datos de la solicitud..."}getLanguage(e){return this.availableLanguages[e]?this.availableLanguages[e]:null}getLanguageText(e){return this.availableLanguages[e]?this.availableLanguages[e]:e}getTraductionFromApi(e,t,n){var r=this;return(0,i.Z)((function*(){let s=`${a.N.baseUrl}/translate?user_id=${e}&language=${n}&flow_name=${t}`;return new Promise(((e,t)=>{var o;r.http.get(s).subscribe((o=(0,i.Z)((function*(i){i&&i?e(i):(r.notis.showToast("No existe una traducción para el idioma "+r.getLanguageText(n),5e3,"error"),t(i))})),function(e){return o.apply(this,arguments)}),(e=>{r.notis.showToast("No existe una traducción para el idioma "+r.getLanguageText(n),5e3,"error"),t(e)}))}))}))()}getTraduction(e,t){var n=this;return(0,i.Z)((function*(){const i=new r.WM({"Content-Type":"application/json",Authorization:`Bearer ${n.openAiKey}`});let s=n.getLanguage(t);const o={model:"gpt-4.1",messages:[{role:"user",content:`Te doy un objeto JSON. Devuélveme el mismo JSON pero con todos los valores de tipo string traducidos al ${s}. \n No modifiques las claves, la estructura ni los tipos (números, booleanos, null deben permanecer iguales). \n Conserva placeholders como {{name}} exactamente. No cambies etiquetas HTML ni markdown dentro de strings.\n Devuélvelo solamente como JSON válido sin texto adicional, no me pongas ni comillas al principio ni la palabra "json". JSON a traducir: ${JSON.stringify(e)}`}],temperature:0};return new Promise(((e,t)=>{s?n.http.post("https://api.openai.com/v1/chat/completions",o,{headers:i}).subscribe((t=>{if(t&&t.choices&&t.choices[0]&&t.choices[0].message&&t.choices[0].message.content)try{let n=JSON.parse(t.choices[0].message.content);console.warn(n),e(n)}catch{e(null)}else e(null)}),(e=>t(e))):e(null)}))}))()}}return e.ɵfac=function(t){return new(t||e)(l.ɵɵinject(r.eN),l.ɵɵinject(c.T))},e.ɵprov=l.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},5089:(e,t,n)=>{n.d(t,{F:()=>l});var i=n(1135),r=n(6418),s=n.n(r),o=n(4650);const a=new(s())("base36");let l=(()=>{class e{constructor(){this.loading=new i.X(!1),this.WarningsSpaces=new i.X(0)}setLoading(e){this.loading.next(e)}getLoading(){return this.loading.asObservable()}setWarningsSpaces(e){this.WarningsSpaces.next(e)}getWarningsSpaces(){return this.WarningsSpaces.asObservable()}uuidv4(){return a.encode(this.uuidv4Aux())}uuidv4Aux(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}formatDate(e){if(e){let t=e.split("/");return t[2]?t[2]+"-"+t[1]+"-"+t[0]:e}return e}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=o.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},182:(e,t,n)=>{n.d(t,{t:()=>o});var i=n(1135),r=n(6197),s=n(4650);let o=(()=>{class e{constructor(){this.db=(0,r.N8)(),this.exampleId="1mlh02m8ukjhqrz1837pbrpt4",this._userSolicitudes=new i.X(null),this.userId="taitoooooID",this._bindedRequest=new i.X(null),this._funderNotifications=new i.X(null)}testConnection(){const e=(0,r.iH)(this.db,"webhooks/solicitudes");(0,r.jM)(e,(e=>{e.val()}))}initBindSolicitudesWebhook(){const e=(0,r.N8)(),t=(0,r.iH)(e,"webhooks/solicitudes/"+this.userId);(0,r.yv)(t,(e=>{this._userSolicitudes.next(e.val())})),(0,r.Jr)(t,(e=>{this._userSolicitudes.next(e.val())})),(0,r.MQ)(t,(e=>{this._userSolicitudes.next(e.val())}))}bindSolicitudesChangesWebhook(){return this._userSolicitudes.asObservable()}setSolicitudChanges(e){const t=(0,r.N8)();(0,r.t8)((0,r.iH)(t,"webhooks/solicitudes/"+this.userId),{data:e})}saveSolicitud(e,t,n){const i=(0,r.N8)();return(0,r.t8)((0,r.iH)(i,`webhooks/${e}/${t}/${n.request_id}`),n)}bindRequestChanges(e,t,n){const i=(0,r.N8)(),s=(0,r.iH)(i,`webhooks/${e}/${t}/${n}`);(0,r.jM)(s,(e=>{this._bindedRequest.next(e.val())}))}subscribeRequestChanges(){return this._bindedRequest.asObservable()}subscribeFunderNotifications(){return this._funderNotifications.asObservable()}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=s.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},3798:(e,t,n)=>{n.d(t,{a:()=>r});var i=n(4650);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i.ɵɵdefineNgModule({type:e}),e.ɵinj=i.ɵɵdefineInjector({}),e})()},4468:(e,t,n)=>{n.d(t,{FE:()=>d,Kj:()=>c,gJ:()=>l});var i=n(5861),r=n(4650);const s="application/pdf",o=`data:${s};base64,`,a=new r.InjectionToken("autofirma.scripts"),l=new r.InjectionToken("autofirma.defaultParams");let c=(()=>{class e{constructor(e,t){this.__autofirma=e,this.__defaultParams=t,this.__autofirma.cargarAppAfirma()}requestPDFSignature(e,t){return this.requestSignature(e,"PAdES",t)}requestSignature(e,t,n){return this.__requestSignature(e,t,n)}__requestSignature(e,t,n){var r=this;return(0,i.Z)((function*(){r.__checkFileIsPDF(e);const s=yield r.__convertBinaryToBase64(e);return new Promise(((e,o)=>{var a;r.__autofirma.sign(s,"SHA512withRSA",t,r.__serializeParams(r.__mergeWithDefaults(n)),(a=(0,i.Z)((function*(t,n){try{const n=r.__convertBase64ToBinary(t);e(n)}catch(e){o(e)}})),function(e,t){return a.apply(this,arguments)}),((e,t)=>o(new Error(`${e}: ${t}`))))}))}))()}__checkFileIsPDF(e){if(e.type!==s)throw new Error("Invalid file type, PDF expected.")}__convertBinaryToBase64(e){return new Promise(((t,n)=>{const i=new FileReader;i.onloadend=()=>{t(i.result.split(",")[1])},i.readAsDataURL(e)}))}__convertBase64ToBinary(e){return fetch(o+e).then((e=>e.blob()))}__serializeParams(e){return e?Object.entries(e).map((e=>this.__serializeParam(e))).join("\n"):null}__serializeParam(e){const[t,n]=e;return"filters"===t?this.__serializeFilters(n):`${t}=${n}`}__serializeFilters(e,t="filters="){return Array.isArray(e)?e.map(((e,t)=>this.__serializeFilters(e,`filters.${t+1}=`))).join("\n"):t+Object.entries(e).map((e=>"disableopeningexternalstores"===e[0]?e[0]:`${e[0]}:${e[1]}`)).join(";")}__mergeWithDefaults(e){if(!this.__defaultParams)return e;if(!e)return this.__defaultParams;const t={...this.__defaultParams,...e},n=this.__mergeWithDefaultFilters(e.filters);return n&&(t.filters=n),t}__mergeWithDefaultFilters(e){if(!this.__defaultParams?.filters)return e;if(!e)return this.__defaultParams.filters;if(!Array.isArray(this.__defaultParams.filters)&&!Array.isArray(e))return{...this.__defaultParams.filters,...e};throw new Error("Array filters are not yet supported!")}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(a),r.ɵɵinject(l,8))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac}),e})(),d=(()=>{class e{static forRoot(){return{ngModule:e,providers:[{provide:a,useValue:AutoScript},c]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({}),e})()}},e=>{e.O(0,[736],(()=>e(e.s=4431))),e.O()}]),(self.webpackChunkvex=self.webpackChunkvex||[]).push([[429],{7435:(e,t,n)=>{n(8583)},8583:()=>{!function(e){const t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function i(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");const r=e.__Zone_symbol_prefix||"__zone_symbol__";function s(e){return r+e}const o=!0===e[s("forceDuplicateZoneCheck")];if(e.Zone){if(o||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let a=(()=>{class t{constructor(e,t){this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){if(e.Promise!==P.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=t.current;for(;e.parent;)e=e.parent;return e}static get current(){return D.zone}static get currentTask(){return L}static __load_patch(r,s,a=!1){if(P.hasOwnProperty(r)){if(!a&&o)throw Error("Already loaded patch: "+r)}else if(!e["__Zone_disable_"+r]){const o="Zone:"+r;n(o),P[r]=s(e,t,O),i(o,o)}}get parent(){return this._parent}get name(){return this._name}get(e){const t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const n=this._zoneDelegate.intercept(this,e,t),i=this;return function(){return i.runGuarded(n,this,arguments,t)}}run(e,t,n,i){D={parent:D,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,i)}finally{D=D.parent}}runGuarded(e,t=null,n,i){D={parent:D,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,i)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{D=D.parent}}runTask(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||b).name+"; Execution: "+this.name+")");if(e.state===x&&(e.type===T||e.type===E))return;const i=e.state!=S;i&&e._transitionTo(S,C),e.runCount++;const r=L;L=e,D={parent:D,zone:this};try{e.type==E&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{e.state!==x&&e.state!==I&&(e.type==T||e.data&&e.data.isPeriodic?i&&e._transitionTo(C,S):(e.runCount=0,this._updateTaskCount(e,-1),i&&e._transitionTo(x,S,x))),D=D.parent,L=r}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;t;){if(t===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);t=t.parent}}e._transitionTo(w,x);const t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(t){throw e._transitionTo(I,w,x),this._zoneDelegate.handleError(this,t),t}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==w&&e._transitionTo(C,w),e}scheduleMicroTask(e,t,n,i){return this.scheduleTask(new d(k,e,t,n,i,void 0))}scheduleMacroTask(e,t,n,i,r){return this.scheduleTask(new d(E,e,t,n,i,r))}scheduleEventTask(e,t,n,i,r){return this.scheduleTask(new d(T,e,t,n,i,r))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||b).name+"; Execution: "+this.name+")");e._transitionTo(M,C,S);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(I,M),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(x,M),e.runCount=0,e}_updateTaskCount(e,t){const n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(let i=0;i<n.length;i++)n[i]._updateTaskCount(e.type,t)}}return t.__symbol__=s,t})();const l={name:"",onHasTask:(e,t,n,i)=>e.hasTask(n,i),onScheduleTask:(e,t,n,i)=>e.scheduleTask(n,i),onInvokeTask:(e,t,n,i,r,s)=>e.invokeTask(n,i,r,s),onCancelTask:(e,t,n,i)=>e.cancelTask(n,i)};class c{constructor(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const i=n&&n.onHasTask;(i||t&&t._hasTaskZS)&&(this._hasTaskZS=i?n:l,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=l,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=l,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=l,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new a(e,t)}intercept(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}invoke(e,t,n,i,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,i,r):t.apply(n,i)}handleError(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}scheduleTask(e,t){let n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t),n||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=k)throw new Error("Task is missing scheduleFn.");v(t)}return n}invokeTask(e,t,n,i){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,i):t.callback.apply(n,i)}cancelTask(e,t){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(t){this.handleError(e,t)}}_updateTaskCount(e,t){const n=this._taskCounts,i=n[e],r=n[e]=i+t;if(r<0)throw new Error("More tasks executed then were scheduled.");0!=i&&0!=r||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}class d{constructor(t,n,i,r,s,o){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=n,this.data=r,this.scheduleFn=s,this.cancelFn=o,!i)throw new Error("callback is not defined");this.callback=i;const a=this;this.invoke=t===T&&r&&r.useG?d.invokeTask:function(){return d.invokeTask.call(e,a,this,arguments)}}static invokeTask(e,t,n){e||(e=this),A++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==A&&y(),A--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,w)}_transitionTo(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${t}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=e,e==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const u=s("setTimeout"),h=s("Promise"),p=s("then");let m,f=[],g=!1;function _(t){if(m||e[h]&&(m=e[h].resolve(0)),m){let e=m[p];e||(e=m.then),e.call(m,t)}else e[u](t,0)}function v(e){0===A&&0===f.length&&_(y),e&&f.push(e)}function y(){if(!g){for(g=!0;f.length;){const e=f;f=[];for(let t=0;t<e.length;t++){const n=e[t];try{n.zone.runTask(n,null,null)}catch(e){O.onUnhandledError(e)}}}O.microtaskDrainDone(),g=!1}}const b={name:"NO ZONE"},x="notScheduled",w="scheduling",C="scheduled",S="running",M="canceling",I="unknown",k="microTask",E="macroTask",T="eventTask",P={},O={symbol:s,currentZoneFrame:()=>D,onUnhandledError:N,microtaskDrainDone:N,scheduleMicroTask:v,showUncaughtError:()=>!a[s("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:N,patchMethod:()=>N,bindArguments:()=>[],patchThen:()=>N,patchMacroTask:()=>N,patchEventPrototype:()=>N,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>N,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>N,wrapWithCurrentZone:()=>N,filterProperties:()=>[],attachOriginToPatched:()=>N,_redefineProperty:()=>N,patchCallbacks:()=>N,nativeScheduleMicroTask:_};let D={parent:null,zone:new a(null,null)},L=null,A=0;function N(){}i("Zone","Zone"),e.Zone=a}(typeof window<"u"&&window||typeof self<"u"&&self||global);
|
|
961
961
|
/**
|
|
962
962
|
* @license
|
|
963
963
|
* Copyright Google LLC All Rights Reserved.
|