widget-web-component 1.0.18-dev.20250923-0249 → 1.0.18-dev.20250929-2309

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.
Files changed (3) hide show
  1. package/README.md +18 -5
  2. package/index.js +14 -2
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -635,7 +635,7 @@ n(5439).defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_
635
635
  //! moment.js locale configuration
636
636
  n(5439).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 年"}})},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 kt(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,k={};function I(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),k[e]||(C(t),k[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={},R={};function N(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(R[e]=r),t&&(R[t[0]]=function(){return O(r.apply(this,arguments),t[1],t[2])}),n&&(R[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=Y(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]=R[i[t]]?R[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 Y(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 q={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?q[e]||q[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?/,J=/\d\d\d\d\d\d?/,X=/\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}N("Y",0,0,(function(){var e=this.year();return e<=9999?O(e,4):"+"+e})),N(0,["YY",2],0,(function(){return this.year()%100})),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(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},N("M",["MM",2],"Mo",(function(){return this.month()+1})),N("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),N("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 ke="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ie="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 Re(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 Ne(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+Ne(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 Ye(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+qe(r=e.year()-1,t,n):o>qe(e.year(),t,n)?(i=o-qe(e.year(),t,n),r=e.year()+1):(r=e.year(),i=o),{week:i,year:r}}function qe(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))}N("w",["ww",2],"wo","week"),N("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)})),N("d",0,"do","day"),N("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),N("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),N("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),N("e",0,0,"weekday"),N("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){N(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Je(e,t){return t._meridiemParse}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Ke),N("k",["kk",2],0,(function(){return this.hours()||24})),N("hmm",0,0,(function(){return""+Ke.apply(this)+O(this.minutes(),2)})),N("hmmss",0,0,(function(){return""+Ke.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)})),N("Hmm",0,0,(function(){return""+this.hours()+O(this.minutes(),2)})),N("Hmmss",0,0,(function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)})),Qe("a",!0),Qe("A",!1),ce("a",Je),ce("A",Je),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",J),ce("Hmm",Q),ce("Hmmss",J),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 Xe,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:ke,monthsShort:Ie,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=Xe._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))?Xe=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Xe._abbr}function lt(e,t){if(null!==t){var n,i=tt;if(t.abbr=e,null!=nt[e])I("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 Xe;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 Xe}(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),Ie.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=Ne.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],Ye(It(),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=Ye(It(),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>qe(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=Ne(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?Ne:Re).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=Y(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),R[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 kt(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 It(e,t,n,i){return kt(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=It.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=It.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 It();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 Rt(e,t){N(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)}))}Rt("Z",":"),Rt("ZZ",""),ce("Z",se),ce("ZZ",se),fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=jt(se,e)}));var Nt=/([\+\-]|\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(Nt)||["-",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():It(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):It(e).local()}function Yt(e){return-Math.round(e._d.getTimezoneOffset())}function qt(){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}}(It(s.from),It(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)&&(I(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 Jt(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 Xt(e,t){if(e.date()<t.date())return-Xt(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){N(0,[e,e.length],0,t)}function pn(e,t,n,i,r){var s;return null==e?Ye(this,i,r).year:(t>(s=qe(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=Ne(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("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)})),N(0,["gg",2],0,(function(){return this.weekYear()%100})),N(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)})),N("Q",0,"Qo","quarter"),ce("Q",U),fe("Q",(function(e,t){t[1]=3*(pe(e)-1)})),N("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);N("DDD",["DDDD",3],"DDDo","dayOfYear"),ce("DDD",X),ce("DDDD",$),fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=pe(e)})),N("m",["mm",2],0,"minute"),ce("m",K,le),ce("mm",K,W),fe(["m","mm"],4);var gn=we("Minutes",!1);N("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(N("S",0,0,(function(){return~~(this.millisecond()/100)})),N(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),N(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),N(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),N(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),N(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),N(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ce("S",X,U),ce("SS",X,W),ce("SSS",X,$),_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),N("z",0,0,"zoneAbbr"),N("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):Jt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||It(),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,It(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=Xt(this,i)/12;break;case"month":s=Xt(this,i);break;case"quarter":s=Xt(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()||It(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},xn.fromNow=function(e){return this.from(It(),e)},xn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||It(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},xn.toNow=function(e){return this.to(It(),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:It(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:It(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:It(e),s=w(t)?t:It(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:It(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=Ye(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},xn.weeksInYear=function(){var e=this.localeData()._week;return qe(this.year(),e.dow,e.doy)},xn.weeksInWeekYear=function(){var e=this.localeData()._week;return qe(this.weekYear(),e.dow,e.doy)},xn.isoWeeksInYear=function(){return qe(this.year(),1,4)},xn.isoWeeksInISOWeekYear=function(){return qe(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=Yt(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:Yt(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(Yt(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?It(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=qt,xn.isUTC=qt,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):It(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 kn(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 Ye(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 In=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"),Rn=Dn("m"),Nn=Dn("h"),jn=Dn("d"),Fn=Dn("w"),Yn=Dn("M"),qn=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,Jn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Xn(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;
637
637
  //! moment.js
638
- return ii.isValid=function(){return this._isValid},ii.abs=function(){var e=this._data;return this._milliseconds=In(this._milliseconds),this._days=In(this._days),this._months=In(this._months),e.milliseconds=In(e.milliseconds),e.seconds=In(e.seconds),e.minutes=In(e.minutes),e.hours=In(e.hours),e.months=In(e.months),e.years=In(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=Rn,ii.asHours=Nn,ii.asDays=jn,ii.asWeeks=Fn,ii.asMonths=Yn,ii.asQuarters=qn,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=Jn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(s=Object.assign({},Jn,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,Xn.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,N("X",0,0,"unix"),N("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=It,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 It(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 kn(e,t,n,"weekdays")},r.parseZone=function(){return It.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 kn(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 kn(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!==Jn[e]&&(void 0===t?Jn[e]:(Jn[e]=t,"s"===e&&(Jn.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),k=n(5895),I=n(6257),E=n(1948),T=n(4246),P=n(9299),O=n(6e3),D=n(5861),L=n(7582),A=n(9549),R=n(9933),N=n(5762),j=n(8259),F=n(2340),Y=n(1363),q=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 J=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,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,J,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,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,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(k.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(k.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",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(k.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 ke=(()=>{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 Ie(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)("texts",null==e.data.Certificado?null:e.data.Certificado.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.Certificado?null:e.data.Certificado.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.Certificado?null:e.data.Certificado.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.Certificado?null:e.data.Certificado.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.Certificado?null:e.data.Certificado.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.Certificado?null:e.data.Certificado.texts)}}function Re(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.Certificado?null:e.data.Certificado.texts)("data",e.data)}}function Ne(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,4,"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,Re,1,2,"belender-no-service-step",16),V.ɵɵtemplate(9,Ne,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 Ye(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 qe(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,Ie,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,Ye,4,3,"div",5),V.ɵɵtemplate(6,qe,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}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 N.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 N.l,this.loading=!1,this.solicitud.status_code="waiting_password"}),2e3)}requestOTP(e){this.loading="Enviando información..",setTimeout((()=>{this.solicitud=new N.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(q.L,{panelClass:"fullscreen-dialog",data:{flow:"presencial"}})}gotoTermsAndConditionsCertificate(){this.dialog.open(Y.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(k.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","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","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,ke],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,R.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,k.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,I.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),k=n(6257),I=n(1948),E=n(4246),T=n(7489),P=n(6981),O=n(3848),D=n(1129),L=n(9476),A=n(9299),R=n(6e3),N=n(5861),j=n(7582),F=n(9549),Y=n(9933),q=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 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.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}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.ɵɵ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,J,2,1,"span",5),B.ɵɵtemplate(3,X,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,N.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,N.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 ke=(()=>{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 Ie=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(Ie.U))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],inputs:{data:"data",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})(),Re=(()=>{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(Ie.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 Ne=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 Ye(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 qe(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",8),B.ɵɵtemplate(1,Ye,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(Ie.U),B.ɵɵdirectiveInject(Ne.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,qe,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",19),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",20),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.Manual?e.data.Manual.texts:e.data.ClavePIN.texts)("data",e.data)}}function We(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-form-step",21),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.Manual?e.data.Manual.texts:e.data.ClavePIN.texts)("userId",e.userId)("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",21),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.Manual?e.data.Manual.texts:e.data.ClavePIN.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",22),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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.texts)}}function Ze(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-otp-aeat-step",22),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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.texts)}}function Ke(e,t){if(1&e&&B.ɵɵelement(0,"belender-success-step",23),2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("texts",e.data.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.texts)}}function Qe(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-duplicated-request-step",24),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 Je(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-fail-step",25),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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.texts)}}function Xe(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-abandoned-step",26),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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.texts)("solicitud",e.solicitud)}}function et(e,t){if(1&e&&B.ɵɵelement(0,"belender-no-service-step",27),2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("texts",e.data.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.texts)("data",e.data)}}function tt(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",28)(1,"div",29)(2,"h1",30),B.ɵɵtext(3,"No existe la solicitud"),B.ɵɵelementEnd()(),B.ɵɵelementStart(4,"div",31),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,5,"belender-form-step",11),B.ɵɵtemplate(4,$e,1,5,"belender-manual-form-step",11),B.ɵɵtemplate(5,Ge,1,4,"belender-otp-ss-step",12),B.ɵɵtemplate(6,Ze,1,4,"belender-otp-aeat-step",12),B.ɵɵtemplate(7,Ke,1,2,"belender-success-step",13),B.ɵɵtemplate(8,Qe,1,2,"belender-duplicated-request-step",14),B.ɵɵtemplate(9,Je,1,3,"belender-fail-step",15),B.ɵɵtemplate(10,Xe,1,3,"belender-abandoned-step",16),B.ɵɵtemplate(11,et,1,2,"belender-no-service-step",17),B.ɵɵtemplate(12,tt,6,2,"div",18),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",32),B.ɵɵelement(1,"belender-spinner",33),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",34)(1,"div",28)(2,"div",35),B.ɵɵtext(3,"Error!"),B.ɵɵelementEnd(),B.ɵɵelement(4,"div",36),B.ɵɵelementEnd(),B.ɵɵelementStart(5,"div",37)(6,"button",38),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",39),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.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,N.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 q.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"},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","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","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,ke,Te,Oe,De,Le,Ae,Re,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,Y.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,R.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,k.T5,I.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),k=n(6257),I=n(1948),E=n(4246),T=n(7489),P=n(6981),O=n(3848),D=n(1129),L=n(9476),A=n(9299),R=n(6e3),N=n(5861),j=n(7582),F=n(9549),Y=n(9933),q=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 J(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 X(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,N.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,J,1,5,"div",2),B.ɵɵtemplate(3,X,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,N.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 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.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 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.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,ke,3,6,"div",4),B.ɵɵtemplate(6,Ie,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({}),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(Te.U))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],inputs:{data:"data",solicitud:"solicitud",flow:"flow",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 Re=n(5145);let Ne=(()=>{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="":Re.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})(),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.nr=new B.EventEmitter(null)}ngOnInit(){}newRequest(){this.nr.emit(!0)}gotoRequest(){location.assign(this.currentRequest.widget_url_boxed)}getStatus(){let e=Re.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 qe(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.Manual?e.data.Manual.texts:e.data.ClavePIN.texts)("userId",e.userId)("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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.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,5,"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 Je(e,t){1&e&&B.ɵɵelement(0,"belender-disabled-url")}function Xe(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,qe,2,1,"div",4),B.ɵɵtemplate(3,Qe,11,10,"ng-container",1),B.ɵɵtemplate(4,Je,1,0,"belender-disabled-url",1),B.ɵɵtemplate(5,Xe,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.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,N.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 q.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"},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","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","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,Ne,je,Fe,Ye],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,Y.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,R.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,k.T5,I.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 k=n(6830),I=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)(I.ɵɵinject(E.F),I.ɵɵinject(T.eN),I.ɵɵinject(P.r))},e.ɵprov=I.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var D=n(5206),L=n(8460),A=n(9045),R=n(5412),N=n(4302),j=n(3046),F=n(9112),Y=n(9382),q=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&&I.ɵɵelement(0,"widget-documents",6),2&e){const e=I.ɵɵnextContext(2);I.ɵɵproperty("userId",e.userId)("packId",e.packId)("requestID",e.requestID)}}function G(e,t){if(1&e&&(I.ɵɵelementStart(0,"div",2),I.ɵɵelement(1,"div",3)(2,"div",4),I.ɵɵpipe(3,"safeHtml"),I.ɵɵtemplate(4,$,1,3,"widget-documents",5),I.ɵɵelementEnd()),2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(1),I.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),I.ɵɵproperty("innerHTML",e.texts.success.title,I.ɵɵsanitizeHtml),I.ɵɵadvance(1),I.ɵɵstyleProp("color",e.data.styles.colors.text),I.ɵɵproperty("innerHTML",I.ɵɵpipeBind1(3,9,e.texts.success.description||""),I.ɵɵsanitizeHtml),I.ɵɵadvance(2),I.ɵɵproperty("ngIf",e.showDocuments)}}function Z(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"div",7)(1,"button",8),I.ɵɵlistener("click",(function(){I.ɵɵrestoreView(e);const t=I.ɵɵnextContext();return I.ɵɵresetView(t.gotoRedirect())})),I.ɵɵtext(2),I.ɵɵelementEnd()()}if(2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(1),I.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px"),I.ɵɵadvance(1),I.ɵɵtextInterpolate1(" ",e.data.ClavePin.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.ChaveMovel&&this.data.ChaveMovel.enableUrlCallBack&&this.data.ChaveMovel.automaticRedirectCallBack&&this.data.ChaveMovel.callBackUrl?setTimeout((()=>{location.assign(this.data.ChaveMovel.callBackUrl)}),2e3):this.data.ChaveMovel.showDocumentsOnSuccess&&(this.showDocuments=!0)}save(){}gotoRedirect(){this.data.ClavePin.enableUrlCallBack&&this.data.ClavePin.callBackUrl&&location.assign(this.data.ClavePin.callBackUrl)}}return e.ɵfac=function(t){return new(t||e)(I.ɵɵdirectiveInject(o.FormBuilder),I.ɵɵdirectiveInject(E.F),I.ɵɵdirectiveInject(z.M),I.ɵɵdirectiveInject(B.U),I.ɵɵdirectiveInject(I.ChangeDetectorRef))},e.ɵcmp=I.ɵɵdefineComponent({type:e,selectors:[["belender-success-step"]],inputs:{data:"data",texts:"texts",packId:"packId",requestID:"requestID",userId:"userId"},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&&(I.ɵɵtemplate(0,G,5,11,"div",0),I.ɵɵtemplate(1,Z,3,7,"div",1)),2&e&&(I.ɵɵproperty("ngIf",!t.data.config.infiniteLoopInCompleted),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",t.data.ClavePin.enableUrlCallBack&&!t.data.SMS.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=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"div",5)(1,"button",6),I.ɵɵlistener("click",(function(){I.ɵɵrestoreView(e);const t=I.ɵɵnextContext();return I.ɵɵresetView(t.retry())})),I.ɵɵtext(2,"Intentarlo nuevamente"),I.ɵɵelementEnd()()}if(2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(1),I.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}function J(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"div",5)(1,"button",7),I.ɵɵlistener("click",(function(){I.ɵɵrestoreView(e);const t=I.ɵɵnextContext();return I.ɵɵresetView(t.newRequest())})),I.ɵɵtext(2,"Crear Nueva Solicitud"),I.ɵɵelementEnd()()}if(2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(1),I.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}let X=(()=>{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 I.EventEmitter(null),this.newR=new I.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)(I.ɵɵdirectiveInject(o.UntypedFormBuilder),I.ɵɵdirectiveInject(E.F),I.ɵɵdirectiveInject(z.M),I.ɵɵdirectiveInject(l.o),I.ɵɵdirectiveInject(h.T))},e.ɵcmp=I.ɵɵ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&&(I.ɵɵelementStart(0,"div",0)(1,"div",1),I.ɵɵelement(2,"div",2)(3,"div",3),I.ɵɵpipe(4,"safeHtml"),I.ɵɵelementEnd(),I.ɵɵtemplate(5,Q,3,6,"div",4),I.ɵɵtemplate(6,J,3,6,"div",4),I.ɵɵelementEnd()),2&e&&(I.ɵɵadvance(2),I.ɵɵproperty("innerHTML",t.texts.fail.title,I.ɵɵsanitizeHtml),I.ɵɵadvance(1),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵproperty("innerHTML",I.ɵɵpipeBind1(4,6,t.texts.fail.description),I.ɵɵsanitizeHtml),I.ɵɵadvance(2),I.ɵɵproperty("ngIf",t.solicitud&&"failed_with_retry"==t.solicitud.status_code),I.ɵɵadvance(1),I.ɵɵ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&&(I.ɵɵelementStart(0,"mat-error"),I.ɵɵtext(1," Deve introduzir uma Cartão de Cidadão ou NIF válido! "),I.ɵɵelementEnd())}function le(e,t){1&e&&(I.ɵɵelementStart(0,"mat-error"),I.ɵɵtext(1," Deve introduzir um número de telefone válido de 9 dígitos! "),I.ɵɵelementEnd())}function ce(e,t){1&e&&(I.ɵɵelementStart(0,"mat-error"),I.ɵɵtext(1," O número de telefone é obrigatório! "),I.ɵɵelementEnd())}function de(e,t){1&e&&(I.ɵɵelementStart(0,"mat-error"),I.ɵɵtext(1," Deve introduzir uma Palavra Passe válida! "),I.ɵɵelementEnd())}function ue(e,t){if(1&e&&(I.ɵɵelementStart(0,"div",18)(1,"mat-form-field",6)(2,"mat-label"),I.ɵɵtext(3,"Email"),I.ɵɵelementEnd(),I.ɵɵelement(4,"input",19),I.ɵɵelementEnd()()),2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(1),I.ɵɵclassMapInterpolate1("",e.disabledInputs.email?"disabled-input":""," w-full flex-1 belender-form-field"),I.ɵɵadvance(3),I.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.email?-1:1)}}function he(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"div",20)(1,"belender-checkbox",21,22),I.ɵɵlistener("changeCheckbox",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext();return I.ɵɵresetView(n.setTerms(t))})),I.ɵɵelementStart(3,"belender-terms-and-policy-links",23),I.ɵɵlistener("goToTerms",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext();return I.ɵɵresetView(n.gotoTermsAndConditions(t))})),I.ɵɵelementEnd()()()}if(2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(1),I.ɵɵproperty("color",e.data.styles.colors.title),I.ɵɵadvance(2),I.ɵɵproperty("userId",e.userId)("showPolicyLink",null==e.data?null:e.data.config.showPolicyLink)("firstSentence",null==e.data.ChaveMovel||null==e.data.ChaveMovel.texts||null==e.data.ChaveMovel.texts.form?null:e.data.ChaveMovel.texts.form.firstSentence)("secondSentence",null==e.data.ChaveMovel||null==e.data.ChaveMovel.texts||null==e.data.ChaveMovel.texts.form?null:e.data.ChaveMovel.texts.form.secondSentence)("thirdSentence",null==e.data.ChaveMovel||null==e.data.ChaveMovel.texts||null==e.data.ChaveMovel.texts.form?null:e.data.ChaveMovel.texts.form.thirdSentence)("policyActionText",null==e.data.ChaveMovel||null==e.data.ChaveMovel.texts||null==e.data.ChaveMovel.texts.form?null:e.data.ChaveMovel.texts.form.policyActionText)("termsActionText",null==e.data.ChaveMovel||null==e.data.ChaveMovel.texts||null==e.data.ChaveMovel.texts.form?null:e.data.ChaveMovel.texts.form.termsActionText)("customTerms",e.data.ChaveMovel.customTerms)}}function pe(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"div",20)(1,"belender-checkbox",24,25),I.ɵɵlistener("changeCheckbox",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext();return I.ɵɵresetView(n.setAssignment(t))})),I.ɵɵelement(3,"div",26),I.ɵɵelementEnd()()}if(2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(1),I.ɵɵproperty("color",e.data.styles.colors.title),I.ɵɵadvance(2),I.ɵɵproperty("innerHTML",null==e.data?null:e.data.config.dataAssignmentText,I.ɵɵsanitizeHtml)}}function me(e,t){1&e&&(I.ɵɵelementStart(0,"div",27),I.ɵɵelement(1,"mat-icon",28),I.ɵɵtext(2," Deve ler os termos e condições para continuar. "),I.ɵɵ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 I.EventEmitter(null),this.esDNI=new I.EventEmitter(null),this.goTerms=new I.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)(I.ɵɵdirectiveInject(o.UntypedFormBuilder),I.ɵɵdirectiveInject(E.F),I.ɵɵdirectiveInject(I.ChangeDetectorRef),I.ɵɵdirectiveInject(p.t),I.ɵɵdirectiveInject(R.uw))},e.ɵcmp=I.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],viewQuery:function(e,t){if(1&e&&(I.ɵɵviewQuery(se,5),I.ɵɵviewQuery(oe,5)),2&e){let e;I.ɵɵqueryRefresh(e=I.ɵɵloadQuery())&&(t.checkComponent=e.first),I.ɵɵqueryRefresh(e=I.ɵɵloadQuery())&&(t.assignmentCheckComponent=e.first)}},inputs:{userId:"userId",data:"data",texts:"texts",solicitud:"solicitud",requestIDFromURL:"requestIDFromURL"},outputs:{next:"nextStep",esDNI:"isDni",goTerms:"goToTerms"},features:[I.ɵɵProvidersFeature([{provide:u.sG,useValue:ge},{provide:I.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&&(I.ɵɵelementStart(0,"form",0)(1,"div",1),I.ɵɵelement(2,"div",2)(3,"div",3),I.ɵɵpipe(4,"safeHtml"),I.ɵɵelementEnd(),I.ɵɵelementStart(5,"div",4)(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),I.ɵɵtext(9,"Cartão de Cidadão ou NIF"),I.ɵɵelementEnd(),I.ɵɵelement(10,"input",7),I.ɵɵtemplate(11,ae,2,0,"mat-error",8),I.ɵɵelementEnd(),I.ɵɵelementStart(12,"mat-form-field",6)(13,"mat-label"),I.ɵɵtext(14,"Telefone (sem prefixo)"),I.ɵɵelementEnd(),I.ɵɵelement(15,"input",9),I.ɵɵtemplate(16,le,2,0,"mat-error",8),I.ɵɵtemplate(17,ce,2,0,"mat-error",8),I.ɵɵelementEnd(),I.ɵɵelementStart(18,"div",10)(19,"mat-form-field",11)(20,"mat-label"),I.ɵɵtext(21,"Palavra Passe"),I.ɵɵelementEnd(),I.ɵɵelement(22,"input",12),I.ɵɵtemplate(23,de,2,0,"mat-error",8),I.ɵɵelementEnd()(),I.ɵɵtemplate(24,ue,5,4,"div",13),I.ɵɵelementEnd()(),I.ɵɵtemplate(25,he,4,9,"div",14),I.ɵɵtemplate(26,pe,4,2,"div",14),I.ɵɵtemplate(27,me,3,0,"div",15),I.ɵɵelementStart(28,"div",16)(29,"button",17),I.ɵɵlistener("click",(function(){return t.nextStep()})),I.ɵɵtext(30," Continuar "),I.ɵɵelementEnd()()()),2&e&&(I.ɵɵproperty("formGroup",t.form),I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),I.ɵɵproperty("innerHTML",t.texts.form.title,I.ɵɵsanitizeHtml),I.ɵɵadvance(1),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵproperty("innerHTML",I.ɵɵpipeBind1(4,33,t.texts.form.description||""),I.ɵɵsanitizeHtml),I.ɵɵadvance(2),I.ɵɵproperty("ngClass",I.ɵɵpureFunction1(35,fe,t.data.config.dontShowDataInTerms&&t.solicitud&&t.solicitud.status_code&&"terms_and_conditions"===t.solicitud.status_code)),I.ɵɵadvance(2),I.ɵɵclassMapInterpolate1("",t.disabledInputs.dni?"disabled-input":""," w-full flex-1 belender-form-field"),I.ɵɵadvance(3),I.ɵɵpropertyInterpolate("tabindex",t.disabledInputs.dni?-1:1),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",!t.isNie&&!t.isDni),I.ɵɵadvance(1),I.ɵɵclassMapInterpolate1("",t.disabledInputs.phone?"disabled-input":""," w-full flex-1 belender-form-field"),I.ɵɵadvance(3),I.ɵɵpropertyInterpolate("tabindex",t.disabledInputs.phone?-1:1),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",t.form.get("person_phone").hasError("minlength")||t.form.get("person_phone").hasError("maxlength")),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",t.form.get("person_phone").hasError("required")),I.ɵɵadvance(6),I.ɵɵproperty("ngIf",t.form.get("palavra_passe").hasError("required")),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",null==t.data||null==t.data.config?null:t.data.config.followMail),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",!t.data.config.hideCheckLegal),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",null==t.data?null:t.data.config.dataAssignmentCheck),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",t.data.config.forceChecks&&!t.termsReaded),I.ɵɵadvance(2),I.ɵɵ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"),I.ɵɵ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,q.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=I.ɵɵ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&&(I.ɵɵelementStart(0,"form",0)(1,"div",1),I.ɵɵelement(2,"div",2)(3,"div",3),I.ɵɵpipe(4,"safeHtml"),I.ɵɵelementEnd()()),2&e&&(I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),I.ɵɵproperty("innerHTML",t.texts.noService.title,I.ɵɵsanitizeHtml),I.ɵɵadvance(1),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵproperty("innerHTML",I.ɵɵpipeBind1(4,8,t.texts.noService.description),I.ɵɵ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 I.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)(I.ɵɵdirectiveInject(o.UntypedFormBuilder),I.ɵɵdirectiveInject(E.F),I.ɵɵdirectiveInject(z.M),I.ɵɵdirectiveInject(l.o),I.ɵɵdirectiveInject(h.T))},e.ɵcmp=I.ɵɵ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&&(I.ɵɵelementStart(0,"div",0)(1,"div",1),I.ɵɵelement(2,"div",2)(3,"div",3),I.ɵɵpipe(4,"safeHtml"),I.ɵɵelementStart(5,"div",4),I.ɵɵtext(6),I.ɵɵelementEnd()(),I.ɵɵelementStart(7,"div",5)(8,"button",6),I.ɵɵlistener("click",(function(){return t.retry()})),I.ɵɵtext(9,"Intentarlo nuevamente"),I.ɵɵelementEnd()()()),2&e&&(I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),I.ɵɵproperty("innerHTML",t.texts.abandoned.title,I.ɵɵsanitizeHtml),I.ɵɵadvance(1),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵproperty("innerHTML",I.ɵɵpipeBind1(4,15,t.texts.abandoned.description),I.ɵɵsanitizeHtml),I.ɵɵadvance(3),I.ɵɵtextInterpolate1(" ",t.getTextStatus()," "),I.ɵɵadvance(2),I.ɵɵ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 I.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)(I.ɵɵdirectiveInject(o.UntypedFormBuilder),I.ɵɵdirectiveInject(E.F),I.ɵɵdirectiveInject(z.M),I.ɵɵdirectiveInject(l.o),I.ɵɵdirectiveInject(h.T))},e.ɵcmp=I.ɵɵ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&&(I.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),I.ɵɵtext(3," Solicitud duplicada! "),I.ɵɵelementEnd(),I.ɵɵelementStart(4,"div",3),I.ɵɵtext(5," Ya existe una solicitud para este cliente. "),I.ɵɵelementEnd(),I.ɵɵelementStart(6,"div",4),I.ɵɵtext(7," Estado de la solicitud actual: "),I.ɵɵelementStart(8,"div",5),I.ɵɵtext(9),I.ɵɵelementEnd()()(),I.ɵɵelementStart(10,"div",6)(11,"button",7),I.ɵɵlistener("click",(function(){return t.newRequest()})),I.ɵɵtext(12,"Nueva solicitud"),I.ɵɵelementEnd(),I.ɵɵelementStart(13,"button",8),I.ɵɵlistener("click",(function(){return t.gotoRequest()})),I.ɵɵtext(14,"Ir a la solicitud actual"),I.ɵɵelementEnd()()()),2&e&&(I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵadvance(5),I.ɵɵtextInterpolate1(" ",t.getStatus()," "),I.ɵɵadvance(2),I.ɵɵstyleProp("border-radius",t.data.styles.btnRound+"px"),I.ɵɵadvance(2),I.ɵɵ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=I.ɵɵ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&&(I.ɵɵelementStart(0,"form",0)(1,"div",1),I.ɵɵelement(2,"div",2)(3,"div",3),I.ɵɵpipe(4,"safeHtml"),I.ɵɵelementEnd()()),2&e&&(I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.standby?t.texts.standby.titleSize+"px":"20px"),I.ɵɵproperty("innerHTML",t.texts.standby?t.texts.standby.title:"Solicitud en Stand By",I.ɵɵsanitizeHtml),I.ɵɵadvance(1),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵproperty("innerHTML",t.texts.standby?t.texts.standby.description:I.ɵɵpipeBind1(4,8,"Descripcion del estado Stand By"),I.ɵɵ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 I.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)(I.ɵɵdirectiveInject(o.UntypedFormBuilder),I.ɵɵdirectiveInject(E.F))},e.ɵcmp=I.ɵɵ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&&(I.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),I.ɵɵtext(3," Fecha de vencimiento incorrecta "),I.ɵɵelementEnd(),I.ɵɵelementStart(4,"div",3),I.ɵɵtext(5," Por favor, introduce la fecha de vencimiento del documento "),I.ɵɵelementEnd(),I.ɵɵelementStart(6,"form",4)(7,"mat-form-field",5)(8,"mat-label"),I.ɵɵtext(9,"Fecha de vencimiento del DNI"),I.ɵɵelementEnd(),I.ɵɵelement(10,"input",6),I.ɵɵelementStart(11,"mat-hint"),I.ɵɵtext(12,"DD/MM/YYYY"),I.ɵɵelementEnd()()()(),I.ɵɵelementStart(13,"div",7)(14,"button",8),I.ɵɵlistener("click",(function(){return t.next()})),I.ɵɵtext(15," Enviar "),I.ɵɵelementEnd()()()),2&e&&(I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵadvance(2),I.ɵɵproperty("formGroup",t.form),I.ɵɵadvance(8),I.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),I.ɵɵ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 I.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)(I.ɵɵdirectiveInject(o.UntypedFormBuilder),I.ɵɵdirectiveInject(E.F))},e.ɵcmp=I.ɵɵ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&&(I.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),I.ɵɵtext(3," Código de soporte inválido "),I.ɵɵelementEnd(),I.ɵɵelementStart(4,"div",3),I.ɵɵtext(5," Por favor, introduce el código de soporte "),I.ɵɵelementEnd(),I.ɵɵelementStart(6,"form",4)(7,"mat-form-field",5)(8,"mat-label"),I.ɵɵtext(9,"Número de soporte"),I.ɵɵelementEnd(),I.ɵɵelement(10,"input",6),I.ɵɵelementEnd()()(),I.ɵɵelementStart(11,"div",7)(12,"button",8),I.ɵɵlistener("click",(function(){return t.next()})),I.ɵɵtext(13," Enviar "),I.ɵɵelementEnd()()()),2&e&&(I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵadvance(2),I.ɵɵproperty("formGroup",t.form),I.ɵɵadvance(6),I.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),I.ɵɵ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 ke=function(e){return{mask:e}};let Ie=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.loading=null,this.nextStep=new I.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)(I.ɵɵdirectiveInject(o.UntypedFormBuilder),I.ɵɵdirectiveInject(E.F))},e.ɵcmp=I.ɵɵ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&&(I.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),I.ɵɵtext(3," Fecha de nacimiento incorrecta "),I.ɵɵelementEnd(),I.ɵɵelementStart(4,"div",3),I.ɵɵtext(5," Por favor, introduce la fecha de nacimiento "),I.ɵɵelementEnd(),I.ɵɵelementStart(6,"form",4)(7,"mat-form-field",5)(8,"mat-label"),I.ɵɵtext(9,"Fecha de nacimiento"),I.ɵɵelementEnd(),I.ɵɵelement(10,"input",6),I.ɵɵelementStart(11,"mat-hint"),I.ɵɵtext(12,"DD/MM/YYYY"),I.ɵɵelementEnd()()()(),I.ɵɵelementStart(13,"div",7)(14,"button",8),I.ɵɵlistener("click",(function(){return t.next()})),I.ɵɵtext(15," Enviar "),I.ɵɵelementEnd()()()),2&e&&(I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵadvance(2),I.ɵɵproperty("formGroup",t.form),I.ɵɵadvance(4),I.ɵɵproperty("textMask",I.ɵɵpureFunction1(15,ke,t.datemask)),I.ɵɵadvance(4),I.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),I.ɵɵ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&&(I.ɵɵelementStart(0,"div",8),I.ɵɵelement(1,"mat-icon",9),I.ɵɵtext(2),I.ɵɵelementEnd()),2&e){const e=I.ɵɵnextContext(2);I.ɵɵproperty("@fadeInUp",void 0),I.ɵɵadvance(2),I.ɵɵtextInterpolate1(" ",e.warningAlert," ")}}function Oe(e,t){if(1&e&&I.ɵɵelement(0,"belender-widget-logo",10),2&e){const e=I.ɵɵnextContext(2);I.ɵɵproperty("logoUrl",null==e.data.styles?null:e.data.styles.logoUrl)}}function De(e,t){1&e&&(I.ɵɵelementStart(0,"div",11),I.ɵɵelement(1,"mat-progress-spinner",12),I.ɵɵelementEnd()),2&e&&(I.ɵɵadvance(1),I.ɵɵproperty("value",0))}function Le(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-form-step",24,25),I.ɵɵlistener("goToTerms",(function(){I.ɵɵrestoreView(e);const t=I.ɵɵnextContext(3);return I.ɵɵresetView(t.gotoTermsAndConditions())}))("nextStep",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.validateRequest(t))}))("isDni",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.setIsDni(t))})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("userId",e.userId)("requestIDFromURL",e.requestIDFromURL)("texts",e.data.ChaveMovel.texts)("data",e.data)("solicitud",e.solicitud)}}function Ae(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-shared-otp-step",26,27),I.ɵɵlistener("resendOTP",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){I.ɵɵrestoreView(e);const t=I.ɵɵnextContext(3);return I.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.requestOTP(t))})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("otpType","otp_irs"==e.requestStatus?"otpIRS":"otpSSD")("flowType","ChaveMovel")("data",e.data)("solicitud",e.solicitud)("minLength",6)("lastThreeNumbersPhone",e.lastThreeNumbersPhone)("texts",e.data.ChaveMovel.texts)}}function Re(e,t){if(1&e&&I.ɵɵelement(0,"belender-success-step",28),2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("data",e.data)("packId",e.packId)("userId",e.userId)("requestID",e.requestID)("texts",e.data.ChaveMovel.texts)}}function Ne(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-duplicated-request-step",29),I.ɵɵlistener("newRequest",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.newRequest(t))})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("data",e.data)("currentRequest",e.currentRequest)}}function je(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-error-birthday-step",30),I.ɵɵlistener("nextStep",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.setBirthDate(t))})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("data",e.data)("texts",e.data.SMS.texts)}}function Fe(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-error-expiration-step",30),I.ɵɵlistener("nextStep",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.setExpiration(t))})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("data",e.data)("texts",e.data.SMS.texts)}}function Ye(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-error-support-number-step",30),I.ɵɵlistener("nextStep",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.setSupportNumber(t))})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("data",e.data)("texts",e.data.ChaveMovel.texts)}}function qe(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-fail-step",31),I.ɵɵlistener("retryRequest",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.retryRequest(t))}))("newRequest",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.newRequest(t))})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("data",e.data)("solicitud",e.solicitud)("texts",e.data.ChaveMovel.texts)}}function Ve(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-abandoned-step",32),I.ɵɵlistener("retryRequest",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.retryRequest(t))})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("data",e.data)("texts",e.data.ChaveMovel.texts)("solicitud",e.solicitud)}}function He(e,t){if(1&e&&I.ɵɵelement(0,"belender-no-service-step",33),2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("texts",e.data.ChaveMovel.texts)("data",e.data)}}function ze(e,t){if(1&e&&I.ɵɵelement(0,"belender-standby-step",33),2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("texts",e.data.ChaveMovel.texts)("data",e.data)}}function Be(e,t){if(1&e&&(I.ɵɵelementStart(0,"div",34)(1,"div",35)(2,"h1",36),I.ɵɵtext(3,"No existe la solicitud"),I.ɵɵelementEnd()(),I.ɵɵelementStart(4,"div",37),I.ɵɵtext(5," No existen solicitudes activas con el código requerido "),I.ɵɵelementEnd()()),2&e){const e=I.ɵɵnextContext(3);I.ɵɵadvance(4),I.ɵɵstyleProp("color",e.data.styles.colors.text)}}function Ue(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-cancel-request",38),I.ɵɵlistener("updateStatusCode",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.solicitud.status_code=t)})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵ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&&(I.ɵɵelement(0,"div",39),I.ɵɵpipe(1,"safeHtml")),2&e){const e=I.ɵɵnextContext(3);I.ɵɵstyleProp("color",e.data.styles.colors.text),I.ɵɵproperty("innerHTML",e.data.ChaveMovel?null==e.data.ChaveMovel.texts.form?null:e.data.ChaveMovel.texts.form.aditionalDescription:I.ɵɵpipeBind1(1,3,(null==e.data.ChaveMovel.texts.form?null:e.data.ChaveMovel.texts.form.aditionalDescription)||""),I.ɵɵsanitizeHtml)}}function $e(e,t){if(1&e&&(I.ɵɵelementContainerStart(0),I.ɵɵtemplate(1,Le,2,5,"belender-form-step",13),I.ɵɵtemplate(2,Ae,2,7,"belender-shared-otp-step",14),I.ɵɵtemplate(3,Re,1,5,"belender-success-step",15),I.ɵɵtemplate(4,Ne,1,2,"belender-duplicated-request-step",16),I.ɵɵtemplate(5,je,1,2,"belender-error-birthday-step",17),I.ɵɵtemplate(6,Fe,1,2,"belender-error-expiration-step",17),I.ɵɵtemplate(7,Ye,1,2,"belender-error-support-number-step",17),I.ɵɵtemplate(8,qe,1,3,"belender-fail-step",18),I.ɵɵtemplate(9,Ve,1,3,"belender-abandoned-step",19),I.ɵɵtemplate(10,He,1,2,"belender-no-service-step",20),I.ɵɵtemplate(11,ze,1,2,"belender-standby-step",20),I.ɵɵtemplate(12,Be,6,2,"div",21),I.ɵɵtemplate(13,Ue,1,4,"belender-cancel-request",22),I.ɵɵtemplate(14,We,2,5,"div",23),I.ɵɵelementContainerEnd()),2&e){const e=I.ɵɵnextContext(2);I.ɵɵadvance(1),I.ɵɵproperty("ngIf","form"==e.requestStatus&&!e.loadingRequestData),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","otp_irs"==e.requestStatus||"otp_ssd"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","success"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","duplicated"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","error-birth-date"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","error-expiration-date"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","error-support-number"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","failed"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","abandoned"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","no-service"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","standby"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","created"!=e.step),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",e.showCancelRequest&&e.data.config.cancelRequest),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",null==e.data.ChaveMovel?null:e.data.ChaveMovel.showAditionalDescription)}}function Ge(e,t){1&e&&I.ɵɵelement(0,"belender-disabled-url")}function Ze(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"div",40)(1,"div",34)(2,"div",41),I.ɵɵtext(3,"Error!"),I.ɵɵelementEnd(),I.ɵɵelement(4,"div",42),I.ɵɵelementEnd(),I.ɵɵelementStart(5,"div",43)(6,"button",44),I.ɵɵlistener("click",(function(){I.ɵɵrestoreView(e);const t=I.ɵɵnextContext(2);return I.ɵɵresetView(t.error=!1)})),I.ɵɵtext(7," Ingresar manualmente "),I.ɵɵelementEnd()()()}if(2&e){const e=I.ɵɵnextContext(2);I.ɵɵadvance(4),I.ɵɵstyleProp("color",e.data.styles.colors.text),I.ɵɵproperty("innerHTML",e.error,I.ɵɵsanitizeHtml)}}function Ke(e,t){if(1&e&&(I.ɵɵelementStart(0,"div",3)(1,"div"),I.ɵɵtemplate(2,Pe,3,2,"div",4),I.ɵɵtemplate(3,Oe,1,1,"belender-widget-logo",5),I.ɵɵtemplate(4,De,2,1,"div",6),I.ɵɵtemplate(5,$e,15,14,"ng-container",2),I.ɵɵtemplate(6,Ge,1,0,"belender-disabled-url",2),I.ɵɵtemplate(7,Ze,8,3,"div",7),I.ɵɵelementEnd()()),2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(1),I.ɵɵclassMapInterpolate1("h-full w-full relative flex-auto p-0 md:p-3 ",e.data.config.typography,""),I.ɵɵstyleProp("background",e.data.styles.colors.background),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",e.warningAlert&&"success"!=e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",e.getIfShowLogo()),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",e.data.config.infiniteLoopInCompleted&&"loading"===e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",!e.error&&!e.disableURL),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",!e.error&&e.disableURL),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",!e.loading&&e.error)}}function Qe(e,t){if(1&e&&(I.ɵɵelementStart(0,"div",45),I.ɵɵelement(1,"mat-progress-spinner",46),I.ɵɵelementStart(2,"p",47),I.ɵɵtext(3),I.ɵɵelementEnd()()),2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(3),I.ɵɵtextInterpolate1(" ",e.loading," ")}}function Je(e,t){if(1&e&&(I.ɵɵelementContainerStart(0),I.ɵɵelementStart(1,"div",48),I.ɵɵtext(2),I.ɵɵelementEnd(),I.ɵɵelementContainerEnd()),2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(2),I.ɵɵtextInterpolate1(" TestMode ",e.testMode?"ON":"OFF"," ")}}let Xe=class{constructor(e,t,n,i,r,s,o,a,l,c){this.cd=e,this.Activatedroute=t,this.utils=n,this.chaveMovelService=i,this.notis=r,this.webhooksService=s,this.flowsS=o,this.customizationStoreService=a,this.deviceInfoService=l,this.dialog=c,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,localStorage.getItem("belender-language")&&(this.selectedLanguage=localStorage.getItem("belender-language")),this.customizationData$=this.customizationStoreService.customizationData$.subscribe((e=>{Object.keys(e).length>0&&this.setInitialData(e)}))}ngOnInit(){this.getWindowsScreenOrientation();const e=this;e.setWarningPortals(),this.loading="Obteniendo información de la solicitud",this.checkClientUrl(),this.Activatedroute.params.subscribe({next:e=>{e&&e.idUser?this.userId=e.idUser:this.loading=null,e&&e.packID&&(this.packId=e.packID),this.utils.setLoading(!1)},error:()=>{this.loading=null,this.utils.setLoading(!1)}}),"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()}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)}))}setInitialData(e){e?(this.data=e,this.financiadorID=this.data?.funder_id||"",this.disableURL=this.data?.config?.disableUrlWidget,this.validateRequestIdInUrl(),this.cd.markForCheck()):this.loading=null}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.data.ChaveMovel.showDocumentsOnSuccess&&!this.intervalToAskBack&&this.initIntervalToAskBack()):(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.data.config&&this.data.config.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(k.L,{panelClass:"fullscreen-dialog",data:{flow:"ChaveMovel"}}).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.data.config.infiniteLoopInCompleted)&&this.data.styles?.withLogo}};Xe.ɵfac=function(e){return new(e||Xe)(I.ɵɵdirectiveInject(I.ChangeDetectorRef),I.ɵɵdirectiveInject(m.gz),I.ɵɵdirectiveInject(E.F),I.ɵɵdirectiveInject(O),I.ɵɵdirectiveInject(h.T),I.ɵɵdirectiveInject(c.t),I.ɵɵdirectiveInject(D.s),I.ɵɵdirectiveInject(L.r),I.ɵɵdirectiveInject(A.H),I.ɵɵdirectiveInject(R.uw))},Xe.ɵcmp=I.ɵɵdefineComponent({type:Xe,selectors:[["belender-widget-chave-movel"]],viewQuery:function(e,t){if(1&e&&(I.ɵɵviewQuery(Ee,5),I.ɵɵviewQuery(Te,5),I.ɵɵviewQuery(Ee,5)),2&e){let e;I.ɵɵqueryRefresh(e=I.ɵɵloadQuery())&&(t.formComponent=e.first),I.ɵɵqueryRefresh(e=I.ɵɵloadQuery())&&(t.otpComponent=e.first),I.ɵɵqueryRefresh(e=I.ɵɵloadQuery())&&(t.theDiv=e.first)}},inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud"},features:[I.ɵɵ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","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","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","requestIDFromURL","texts","data","solicitud","goToTerms","nextStep","isDni"],["formStep",""],[3,"otpType","flowType","data","solicitud","minLength","lastThreeNumbersPhone","texts","resendOTP","errorPhone","nextStep"],["otpStep",""],[3,"data","packId","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&&(I.ɵɵtemplate(0,Ke,8,11,"div",0),I.ɵɵtemplate(1,Qe,4,1,"div",1),I.ɵɵtemplate(2,Je,3,1,"ng-container",2)),2&e&&(I.ɵɵproperty("ngIf",t.data&&!t.loading),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",(t.loading||"loading"===t.requestStatus)&&!t.error),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",t.testMode))},dependencies:[i.O5,N.q,j.X,F.y,Y.i,q.Hw,V.lW,H.Ou,K,X,_e,ve,ye,xe,we,Ce,Se,Ie,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.$]}}),Xe=(0,_.gn)([(0,y.c)()],Xe);const et=[{path:":idUser",component:Xe},{path:":idUser/:packID",component:Xe}];let tt=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=I.ɵɵdefineNgModule({type:e}),e.ɵinj=I.ɵɵ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=I.ɵɵdefineNgModule({type:e}),e.ɵinj=I.ɵɵ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:"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:"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),k=n(7392),I=n(4144),E=n(1561),T=n(8739),P=n(1572),O=n(1948),D=n(4385),L=n(6308),A=n(6257),R=n(7155),N=n(266),j=n(1916),F=n(9617),Y=n(6981),q=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,k.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,q.VideoIdModule,V.PersonalModule,H.ClientCertModule,T.TU,R.p0,L.JX,S.p9,k.Ps,w.ot,E.Tx,I.c,x.FormsModule,N.AV,x.ReactiveFormsModule,D.LD,C.vV,p.a,P.Cq,M.FA,_.XK,A.T5,O.Fk,Y.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),k=n(5895),I=n(6257),E=n(1948),T=n(4246),P=n(9299),O=n(6e3),D=n(5861),L=n(7582),A=n(9549),R=n(9933),N=n(5762),j=n(8259),F=n(2340),Y=n(1363),q=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 J(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 X=(()=>{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,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,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(k.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(k.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",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(k.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.presencial?null:e.data.presencial.texts)("solicitud",e.solicitud)}}function ke(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.presencial?null:e.data.presencial.texts)("solicitud",e.solicitud)}}function Ie(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.presencial?null:e.data.presencial.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.presencial?null:e.data.presencial.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.presencial?null:e.data.presencial.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.presencial?null:e.data.presencial.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.presencial?null:e.data.presencial.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.presencial?null:e.data.presencial.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,ke,1,3,"belender-password-step",11),V.ɵɵtemplate(4,Ie,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 Re(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 Ne(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,Re,4,3,"div",5),V.ɵɵtemplate(5,Ne,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 Ye=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}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 N.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 N.l,this.loading=!1,this.solicitud.status_code="waiting_password"}),2e3)}requestOTP(e){this.loading="Enviando información..",setTimeout((()=>{this.solicitud=new N.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(q.L,{panelClass:"fullscreen-dialog",data:{flow:"presencial"}})}gotoTermsAndConditionsCertificate(){this.dialog.open(Y.v,{panelClass:"fullscreen-dialog",data:{flow:"presencial"}})}};Ye.ɵfac=function(e){return new(e||Ye)(V.ɵɵdirectiveInject(V.ChangeDetectorRef),V.ɵɵdirectiveInject(P.gz),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(C.w),V.ɵɵdirectiveInject(k.T),V.ɵɵdirectiveInject(x.t),V.ɵɵdirectiveInject(z.uw))},Ye.ɵcmp=V.ɵɵdefineComponent({type:Ye,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,X,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}"]}),Ye=(0,L.gn)([(0,R.c)()],Ye);const qe=[{path:":idUser",component:Ye},{path:":idUser/:packID",component:Ye}];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(qe),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,k.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,I.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),k=n(7155),I=n(266),E=n(5592),T=n(4246),P=n(8526),O=n(1916),D=n(3006),L=n(1724),A=n(6981),R=n(9391),N=n(7367),j=n(5895),F=n(9617),Y=n(5601),q=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:[Y.M,R.o,N.w,q.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,k.p0,S.JX,m.p9,_.Ps,h.ot,y.Tx,v.c,u.FormsModule,I.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),k=n(5895),I=n(6257),E=n(1948),T=n(4246),P=n(9299),O=n(6e3),D=n(5861),L=n(7582),A=n(9549),R=n(9933),N=n(5762),j=n(8259),F=n(2340),Y=n(6830),q=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&&(q.ɵɵelementStart(0,"span"),q.ɵɵtext(1),q.ɵɵelementEnd()),2&e){const e=q.ɵɵnextContext(2);q.ɵɵadvance(1),q.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}function Z(e,t){if(1&e&&(q.ɵɵelementStart(0,"span"),q.ɵɵtext(1),q.ɵɵelementEnd()),2&e){const e=q.ɵɵnextContext(2);q.ɵɵadvance(1),q.ɵɵ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&&(q.ɵɵelementStart(0,"span"),q.ɵɵtext(1),q.ɵɵelementEnd()),2&e){const e=q.ɵɵnextContext(2);q.ɵɵadvance(1),q.ɵɵ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 J(e,t){if(1&e&&(q.ɵɵelementContainerStart(0),q.ɵɵelementStart(1,"small",11),q.ɵɵtemplate(2,G,2,1,"span",5),q.ɵɵtemplate(3,Z,2,2,"span",5),q.ɵɵtemplate(4,K,2,1,"span",5),q.ɵɵelementEnd(),q.ɵɵelementContainerEnd()),2&e){const e=q.ɵɵnextContext();q.ɵɵadvance(1),q.ɵɵproperty("ngStyle",q.ɵɵpureFunction3(4,Q,e.data.styles.colors.accentColor,"1px solid "+e.data.styles.colors.accentColor,e.data.styles.colors.accentBgColor)),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",!e.lastNumberPhone),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",e.lastNumberPhone&&!e.data.config.noRetryInBadPhone),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",e.lastNumberPhone&&e.data.config.noRetryInBadPhone)}}function X(e,t){1&e&&(q.ɵɵelementStart(0,"span"),q.ɵɵtext(1," ¿No has recibido el código en tu teléfono? "),q.ɵɵelementEnd())}function ee(e,t){if(1&e&&(q.ɵɵelementStart(0,"span"),q.ɵɵtext(1),q.ɵɵelementEnd()),2&e){const e=q.ɵɵnextContext(2);q.ɵɵadvance(1),q.ɵɵtextInterpolate1(" ¿No has recibido el código en el teléfono acabado en ",e.lastNumberPhone,"? ")}}function te(e,t){1&e&&(q.ɵɵelementStart(0,"span"),q.ɵɵtext(1," ¿No has recibido el código en el teléfono? "),q.ɵɵelementEnd())}const ne=function(e,t){return{color:e,background:t}};function ie(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementContainerStart(0),q.ɵɵelementStart(1,"small",11),q.ɵɵtemplate(2,X,2,0,"span",5),q.ɵɵtemplate(3,ee,2,1,"span",5),q.ɵɵtemplate(4,te,2,0,"span",5),q.ɵɵelementStart(5,"a",12),q.ɵɵlistener("click",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext();return q.ɵɵresetView(t.resendOTP())})),q.ɵɵtext(6,"Reenviar"),q.ɵɵelementEnd()(),q.ɵɵelementContainerEnd()}if(2&e){const e=q.ɵɵnextContext();q.ɵɵadvance(1),q.ɵɵproperty("ngStyle",q.ɵɵpureFunction3(5,Q,e.data.styles.colors.dangerColor,"1px solid "+e.data.styles.colors.dangerColor,e.data.styles.colors.dangerBgColor)),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",!e.lastNumberPhone),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",e.lastNumberPhone&&!e.data.config.noRetryInBadPhone),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",e.data.config.noRetryInBadPhone),q.ɵɵadvance(1),q.ɵɵproperty("ngStyle",q.ɵɵ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 q.EventEmitter(null),this.errPhone=new q.EventEmitter(null),this.resendO=new q.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)(q.ɵɵdirectiveInject(p.UntypedFormBuilder),q.ɵɵdirectiveInject(V.F),q.ɵɵdirectiveInject(_.M),q.ɵɵdirectiveInject(P.gz))},e.ɵcmp=q.ɵɵ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&&(q.ɵɵelementStart(0,"form",0)(1,"div",1)(2,"div",2),q.ɵɵtext(3," Introduce el código recibido por SMS "),q.ɵɵelementEnd(),q.ɵɵelementStart(4,"div",3),q.ɵɵtext(5," Has recibido un SMS procedente de EJEMPLO con un código de 6 dígitos. Por favor, introdúcelo a continuación. "),q.ɵɵelementEnd(),q.ɵɵelementStart(6,"div",4),q.ɵɵtemplate(7,J,5,8,"ng-container",5),q.ɵɵtemplate(8,ie,7,12,"ng-container",5),q.ɵɵelementEnd(),q.ɵɵelementStart(9,"div",6)(10,"mat-form-field",7)(11,"mat-label"),q.ɵɵtext(12," Código OTP "),q.ɵɵelementEnd(),q.ɵɵelementStart(13,"input",8),q.ɵɵlistener("change",(function(e){return t.capturePasteEvent(e)}))("keyup",(function(e){return t.setInputEvent(e)})),q.ɵɵelementEnd()()()(),q.ɵɵelementStart(14,"div",9)(15,"button",10),q.ɵɵlistener("click",(function(){return t.nextStep()})),q.ɵɵtext(16,"Siguiente"),q.ɵɵelementEnd()()()),2&e&&(q.ɵɵproperty("formGroup",t.form),q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size","16px"),q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.text)("font-size","14px"),q.ɵɵadvance(3),q.ɵɵproperty("ngIf",t.secsCount&&t.secsCount>0),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",!t.secsCount||t.secsCount<=0),q.ɵɵadvance(7),q.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),q.ɵɵ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&&(q.ɵɵelementStart(0,"div",1),q.ɵɵelement(1,"div",2)(2,"div",3),q.ɵɵpipe(3,"safeHtml"),q.ɵɵelementEnd()),2&e){const e=q.ɵɵnextContext();q.ɵɵadvance(1),q.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size","16px"),q.ɵɵproperty("innerHTML",e.texts.success.title,q.ɵɵsanitizeHtml),q.ɵɵadvance(1),q.ɵɵstyleProp("color",e.data.styles.colors.text)("font-size","14px"),q.ɵɵproperty("innerHTML",q.ɵɵpipeBind1(3,10,e.texts.success.description||""),q.ɵɵ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)(q.ɵɵdirectiveInject(p.UntypedFormBuilder),q.ɵɵdirectiveInject(V.F),q.ɵɵdirectiveInject(_.M),q.ɵɵdirectiveInject(y.o),q.ɵɵdirectiveInject(k.T))},e.ɵcmp=q.ɵɵ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&&q.ɵɵtemplate(0,oe,4,12,"div",0),2&e&&q.ɵɵ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=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"div",5)(1,"button",6),q.ɵɵlistener("click",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext();return q.ɵɵresetView(t.retry())})),q.ɵɵtext(2,"Intentarlo nuevamente"),q.ɵɵelementEnd()()}if(2&e){const e=q.ɵɵnextContext();q.ɵɵadvance(1),q.ɵɵ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=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"div",5)(1,"button",7),q.ɵɵlistener("click",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext();return q.ɵɵresetView(t.newRequest())})),q.ɵɵtext(2,"Crear nueva solicitud"),q.ɵɵelementEnd()()}if(2&e){const e=q.ɵɵnextContext();q.ɵɵadvance(1),q.ɵɵ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 q.EventEmitter(null),this.newReq=new q.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)(q.ɵɵdirectiveInject(p.UntypedFormBuilder),q.ɵɵdirectiveInject(V.F),q.ɵɵdirectiveInject(_.M),q.ɵɵdirectiveInject(y.o),q.ɵɵdirectiveInject(k.T))},e.ɵcmp=q.ɵɵ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&&(q.ɵɵelementStart(0,"div",0)(1,"div",1),q.ɵɵelement(2,"div",2)(3,"div",3),q.ɵɵpipe(4,"safeHtml"),q.ɵɵelementEnd(),q.ɵɵtemplate(5,le,3,6,"div",4),q.ɵɵtemplate(6,ce,3,6,"div",4),q.ɵɵelementEnd()),2&e&&(q.ɵɵadvance(2),q.ɵɵproperty("innerHTML",t.texts.fail.title,q.ɵɵsanitizeHtml),q.ɵɵadvance(1),q.ɵɵstyleProp("color",t.data.styles.colors.text),q.ɵɵproperty("innerHTML",q.ɵɵpipeBind1(4,6,t.texts.fail.description),q.ɵɵsanitizeHtml),q.ɵɵadvance(2),q.ɵɵproperty("ngIf",t.solicitud&&"failed_with_retry"==t.solicitud.status_code),q.ɵɵadvance(1),q.ɵɵ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=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"div",12)(1,"belender-checkbox",8),q.ɵɵlistener("changeCheckbox",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext();return q.ɵɵresetView(n.setPower(t))})),q.ɵɵtext(2," Consiento expresamente a la activación de un poder digital según las condiciones que pueden verse "),q.ɵɵelementStart(3,"a",13),q.ɵɵlistener("click",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext();return q.ɵɵresetView(t.gotoPowerConditions())})),q.ɵɵelementStart(4,"u"),q.ɵɵtext(5,"aquí"),q.ɵɵelementEnd()()()()}if(2&e){const e=q.ɵɵnextContext();q.ɵɵadvance(1),q.ɵɵ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 q.EventEmitter(null),this.goPower=new q.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)(q.ɵɵdirectiveInject(p.UntypedFormBuilder),q.ɵɵdirectiveInject(V.F))},e.ɵcmp=q.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep",goPower:"goToPower"},features:[q.ɵɵProvidersFeature([{provide:M.sG,useValue:pe},{provide:q.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&&(q.ɵɵelementStart(0,"form",0)(1,"div",1)(2,"div",2),q.ɵɵtext(3," Activar un poder digital "),q.ɵɵelementEnd(),q.ɵɵelementStart(4,"div",3),q.ɵɵ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. "),q.ɵɵelementEnd()(),q.ɵɵelementStart(6,"div",4)(7,"h1"),q.ɵɵtext(8,"OTORGAR UN PODER DIGITAL PARA OBTENER LA DOCUMENTACIÓN AUTOMÁTICAMENTE"),q.ɵɵelementEnd(),q.ɵɵelementStart(9,"p"),q.ɵɵtext(10,"Los presentes Términos y Condiciones (en adelante, los "),q.ɵɵelementStart(11,"b"),q.ɵɵtext(12,"“Términos y Condiciones”"),q.ɵɵelementEnd(),q.ɵɵtext(13," ) regulan, la descarga, acceso, navegación y uso de la plataforma propiedad de "),q.ɵɵelementStart(14,"b"),q.ɵɵtext(15,"BELENDER"),q.ɵɵelementEnd(),q.ɵɵtext(16," (en adelante, la "),q.ɵɵelementStart(17,"b"),q.ɵɵtext(18,"“Plataforma”"),q.ɵɵelementEnd(),q.ɵɵ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, "),q.ɵɵelementStart(20,"b"),q.ɵɵtext(21,"“ BELENDER”"),q.ɵɵelementEnd(),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(23,"h2"),q.ɵɵtext(24," 1. OBJETO DE LA PLATAFORMA Y DESCRIPCIÓN DEL SERVICIO"),q.ɵɵelementEnd(),q.ɵɵelementStart(25,"p"),q.ɵɵ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 "),q.ɵɵelementStart(27,"b"),q.ɵɵtext(28,"“Usuarios”"),q.ɵɵelementEnd(),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(30,"p"),q.ɵɵ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. "),q.ɵɵelementEnd(),q.ɵɵelementStart(32,"p"),q.ɵɵtext(33,"En concreto, los documentos que se descargan son:"),q.ɵɵelementEnd(),q.ɵɵelementStart(34,"p"),q.ɵɵtext(35," LISTAR DOCUMENTOS"),q.ɵɵelementEnd(),q.ɵɵelementStart(36,"h2"),q.ɵɵtext(37,"2. ACEPTACIÓN DE LOS TÉRMINOS Y CONDICIONES"),q.ɵɵelementEnd(),q.ɵɵelementStart(38,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(40,"p"),q.ɵɵtext(41,"El servicio prestado en esta Plataforma se rige por: "),q.ɵɵelementEnd(),q.ɵɵelementStart(42,"ul",5)(43,"li"),q.ɵɵtext(44,"(i) estos Términos y Condiciones;"),q.ɵɵelementEnd(),q.ɵɵelementStart(45,"li"),q.ɵɵtext(46,"(ii) Condiciones Particulares que puedan publicarse en la Plataforma o que queden regulados y reflejados en el Sitio web;"),q.ɵɵelementEnd(),q.ɵɵelementStart(47,"li"),q.ɵɵtext(48,"(iii) las leyes vigentes y aplicables, regulaciones sectoriales y los criterios y prácticas generales."),q.ɵɵelementEnd()(),q.ɵɵelementStart(49,"p"),q.ɵɵ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. "),q.ɵɵelementEnd(),q.ɵɵelementStart(51,"h2"),q.ɵɵtext(52,"3. CESIÓN DE DATOS"),q.ɵɵelementEnd(),q.ɵɵelementStart(53,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(55,"h2"),q.ɵɵtext(56,"4. OBLIGACIONES DE BELENDER"),q.ɵɵelementEnd(),q.ɵɵelementStart(57,"ul",5)(58,"li"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(60,"li"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(62,"li"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(64,"li"),q.ɵɵtext(65,"Emplear toda la atención y profesionalidad que se consideren razonables para la prestación del servicio que se ofrece."),q.ɵɵelementEnd()(),q.ɵɵelementStart(66,"h2"),q.ɵɵtext(67,"5. OBLIGACIONES DE LOS USUARIOS"),q.ɵɵelementEnd(),q.ɵɵelementStart(68,"ul",5)(69,"li"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(71,"li"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(73,"li"),q.ɵɵ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."),q.ɵɵelementEnd()(),q.ɵɵelementStart(75,"h2"),q.ɵɵtext(76," 6. CONFIDENCIALIDAD"),q.ɵɵelementEnd(),q.ɵɵelementStart(77,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(79,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(81,"h2"),q.ɵɵtext(82,"7. PROTECCIÓN DE DATOS PERSONALES"),q.ɵɵelementEnd(),q.ɵɵelementStart(83,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(85,"p"),q.ɵɵtext(86,"All4Lend SL, con NIF B67425769 y domicilio en Barcelona, calle Sol 19 (0874), es el responsable del tratamiento de sus datos."),q.ɵɵelementEnd(),q.ɵɵelementStart(87,"p"),q.ɵɵ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, "),q.ɵɵelementStart(89,"b"),q.ɵɵtext(90,"RGPD"),q.ɵɵelementEnd(),q.ɵɵtext(91," ) y lo establecido en la normativa española vigente en esta materia."),q.ɵɵelementEnd(),q.ɵɵelementStart(92,"p"),q.ɵɵ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. "),q.ɵɵelementEnd(),q.ɵɵelementStart(94,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(96,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(98,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(100,"h2"),q.ɵɵtext(101,"8. PROPIEDAD INTELECTUAL E INDUSTRIAL"),q.ɵɵelementEnd(),q.ɵɵelementStart(102,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(104,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(106,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(108,"h2"),q.ɵɵtext(109,"9. RESPONSABILIDAD"),q.ɵɵelementEnd(),q.ɵɵelementStart(110,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(112,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(114,"h2"),q.ɵɵtext(115,"10.MISCELÁNEA"),q.ɵɵelementEnd(),q.ɵɵelementStart(116,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(118,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(120,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(122,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(124,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(126,"p"),q.ɵɵ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/ "),q.ɵɵelementEnd()(),q.ɵɵelementStart(128,"div",6)(129,"div",7)(130,"belender-checkbox",8),q.ɵɵlistener("changeCheckbox",(function(e){return t.setTerms(e)})),q.ɵɵtext(131," Acepto y firmo digitalmente el documento "),q.ɵɵelementEnd()(),q.ɵɵtemplate(132,he,6,1,"div",9),q.ɵɵelementEnd(),q.ɵɵelementStart(133,"div",10)(134,"button",11),q.ɵɵlistener("click",(function(){return t.nextStep()})),q.ɵɵtext(135,"Continuar"),q.ɵɵelementEnd()()()),2&e&&(q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size","16px"),q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.text)("font-size","14px"),q.ɵɵadvance(126),q.ɵɵproperty("color",t.data.styles.colors.title),q.ɵɵadvance(2),q.ɵɵproperty("ngIf",t.solicitud&&t.solicitud.request_id?null==t.solicitud?null:t.solicitud.power_activate:null==t.data?null:t.data.config.activatePower),q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.getIfValid()?t.data.styles.colors.btnText:"")("background",t.getIfValid()?t.data.styles.colors.btnBg:"")("border-radius",t.data.styles.btnRound+"px"),q.ɵɵ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 q.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)(q.ɵɵdirectiveInject(p.UntypedFormBuilder),q.ɵɵdirectiveInject(V.F),q.ɵɵdirectiveInject(P.gz))},e.ɵcmp=q.ɵɵdefineComponent({type:e,selectors:[["belender-error-form-step"]],inputs:{data:"data",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&&(q.ɵɵelementStart(0,"form",0)(1,"div",1)(2,"div",2),q.ɵɵtext(3,"Error con el teléfono"),q.ɵɵelementEnd(),q.ɵɵelementStart(4,"div",3),q.ɵɵtext(5,"El teléfono ingresado no coincide con registrado en la Seguridad Social, por favor ingrese otro"),q.ɵɵelementEnd()(),q.ɵɵelementStart(6,"div",4)(7,"mat-form-field",5)(8,"mat-label"),q.ɵɵtext(9,"Telefono"),q.ɵɵelementEnd(),q.ɵɵelement(10,"input",6),q.ɵɵelementEnd()(),q.ɵɵelementStart(11,"div",7)(12,"button",8),q.ɵɵlistener("click",(function(){return t.nextStep()})),q.ɵɵelementEnd()()()),2&e&&(q.ɵɵproperty("formGroup",t.form),q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.text),q.ɵɵadvance(8),q.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),q.ɵɵ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)(q.ɵɵdirectiveInject(V.F))},e.ɵcmp=q.ɵɵ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&&(q.ɵɵelementStart(0,"div",0)(1,"div",1),q.ɵɵelement(2,"belender-spinner",2),q.ɵɵelementEnd()()),2&e&&(q.ɵɵadvance(2),q.ɵɵ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=q.ɵɵ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&&(q.ɵɵelementStart(0,"form",0)(1,"div",1),q.ɵɵelement(2,"div",2)(3,"div",3),q.ɵɵpipe(4,"safeHtml"),q.ɵɵelementEnd()()),2&e&&(q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),q.ɵɵproperty("innerHTML",t.texts.noService.title,q.ɵɵsanitizeHtml),q.ɵɵadvance(1),q.ɵɵstyleProp("color",t.data.styles.colors.text),q.ɵɵproperty("innerHTML",q.ɵɵpipeBind1(4,8,t.texts.noService.description),q.ɵɵ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 q.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)(q.ɵɵdirectiveInject(p.UntypedFormBuilder),q.ɵɵdirectiveInject(V.F),q.ɵɵdirectiveInject(_.M),q.ɵɵdirectiveInject(y.o),q.ɵɵdirectiveInject(k.T))},e.ɵcmp=q.ɵɵ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&&(q.ɵɵelementStart(0,"div",0)(1,"div",1),q.ɵɵelement(2,"div",2)(3,"div",3),q.ɵɵpipe(4,"safeHtml"),q.ɵɵelementStart(5,"div",4),q.ɵɵtext(6),q.ɵɵelementEnd()(),q.ɵɵelementStart(7,"div",5)(8,"button",6),q.ɵɵlistener("click",(function(){return t.retry()})),q.ɵɵtext(9,"Intentarlo nuevamente"),q.ɵɵelementEnd()()()),2&e&&(q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),q.ɵɵproperty("innerHTML",t.texts.abandoned.title,q.ɵɵsanitizeHtml),q.ɵɵadvance(1),q.ɵɵstyleProp("color",t.data.styles.colors.text),q.ɵɵproperty("innerHTML",q.ɵɵpipeBind1(4,15,t.texts.abandoned.description),q.ɵɵsanitizeHtml),q.ɵɵadvance(3),q.ɵɵtextInterpolate1(" Estado: ",t.getTextStatus()," "),q.ɵɵadvance(2),q.ɵɵ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 q.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)(q.ɵɵdirectiveInject(p.UntypedFormBuilder),q.ɵɵdirectiveInject(V.F),q.ɵɵdirectiveInject(_.M),q.ɵɵdirectiveInject(y.o),q.ɵɵdirectiveInject(k.T))},e.ɵcmp=q.ɵɵ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&&(q.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),q.ɵɵtext(3," Solicitud duplicada! "),q.ɵɵelementEnd(),q.ɵɵelementStart(4,"div",3),q.ɵɵtext(5," Ya existe una solicitud para este cliente. "),q.ɵɵelementEnd(),q.ɵɵelementStart(6,"div",4),q.ɵɵtext(7," Estado de la solicitud actual: "),q.ɵɵelementStart(8,"div",5),q.ɵɵtext(9),q.ɵɵelementEnd()()(),q.ɵɵelementStart(10,"div",6)(11,"button",7),q.ɵɵlistener("click",(function(){return t.newRequest()})),q.ɵɵtext(12,"Nueva solicitud"),q.ɵɵelementEnd(),q.ɵɵelementStart(13,"button",8),q.ɵɵlistener("click",(function(){return t.gotoRequest()})),q.ɵɵtext(14,"Ir a la solicitud actual"),q.ɵɵelementEnd()()()),2&e&&(q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.text),q.ɵɵadvance(5),q.ɵɵtextInterpolate1(" ",t.getStatus()," "),q.ɵɵadvance(2),q.ɵɵstyleProp("border-radius",t.data.styles.btnRound+"px"),q.ɵɵadvance(2),q.ɵɵ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=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"vex-power-cert",3),q.ɵɵlistener("accept",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext();return q.ɵɵresetView(t.acceptPowerCert())})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext();q.ɵɵproperty("hideButtons",!1)("flow","DigitalPower")("userId",e.userId)}}function we(e,t){if(1&e&&(q.ɵɵelementStart(0,"div",8),q.ɵɵelement(1,"img",9),q.ɵɵelementEnd()),2&e){const e=q.ɵɵnextContext(2);q.ɵɵadvance(1),q.ɵɵproperty("src",e.data.styles.logoUrl,q.ɵɵsanitizeUrl)}}function Ce(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"belender-intro-step",22),q.ɵɵlistener("gotoFlow",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext(3);return q.ɵɵresetView(t.goFlow())}))("gotoManual",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext(3);return q.ɵɵresetView(t.gotoManual())})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("data",e.data)}}function Se(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"belender-manual-step",23),q.ɵɵlistener("goBack",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext(3);return q.ɵɵresetView(t.gotoIntro())})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("data",e.data)("packId",e.packId)("userId",e.userId)}}function Me(e,t){if(1&e&&q.ɵɵelement(0,"belender-loading-step",24),2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("status",null==e.solicitud?null:e.solicitud.status_code)("data",e.data)("loaderColor",e.data.styles.colors.title)}}function ke(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"belender-form-step",25),q.ɵɵlistener("goToPower",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext(3);return q.ɵɵresetView(t.gotoPowerConditions())}))("nextStep",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext(3);return q.ɵɵresetView(n.gotoOtp(t))})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("data",e.data)("texts",e.data.SMS.texts)("solicitud",e.solicitud)}}function Ie(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"belender-error-form-step",26),q.ɵɵlistener("nextStep",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext(3);return q.ɵɵresetView(n.sendNewData(t))})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("solicitud",e.solicitud)("data",e.data)("texts",e.data.SMS.texts)}}function Ee(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"belender-abandoned-step",27),q.ɵɵlistener("retry",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext(3);return q.ɵɵresetView(n.retryRequest(t))})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("solicitud",e.solicitud)("data",e.data)("texts",e.data.SMS.texts)}}function Te(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"belender-otp-step",28),q.ɵɵlistener("resendOTP",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext(3);return q.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext(3);return q.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext(3);return q.ɵɵresetView(n.requestOTP(t))})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("data",e.data)("texts",e.data.SMS.texts)("solicitud",e.solicitud)}}function Pe(e,t){if(1&e&&q.ɵɵelement(0,"belender-success-step",29),2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("data",e.data)("texts",e.data.SMS.texts)}}function Oe(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"belender-duplicated-request-step",30),q.ɵɵlistener("newRequest",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext(3);return q.ɵɵresetView(n.newRequest(t))})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("data",e.data)("currentRequest",e.currentRequest)}}function De(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"belender-fail-step",31),q.ɵɵlistener("retry",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext(3);return q.ɵɵresetView(n.retryRequest(t))}))("newRequest",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext(3);return q.ɵɵresetView(n.newRequest(t))})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("data",e.data)("texts",e.data.SMS.texts)("solicitud",e.solicitud)}}function Le(e,t){if(1&e&&q.ɵɵelement(0,"belender-no-service-step",32),2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("texts",e.data.SMS.texts)("data",e.data)}}function Ae(e,t){if(1&e&&(q.ɵɵelementStart(0,"div",33)(1,"div",34)(2,"h1",35),q.ɵɵtext(3,"No existe la solicitud"),q.ɵɵelementEnd()(),q.ɵɵelementStart(4,"div",36),q.ɵɵtext(5,"No existen solicitudes activas con el código requerido"),q.ɵɵelementEnd()()),2&e){const e=q.ɵɵnextContext(3);q.ɵɵadvance(4),q.ɵɵstyleProp("color",e.data.styles.colors.text)}}function Re(e,t){if(1&e&&(q.ɵɵelementContainerStart(0),q.ɵɵtemplate(1,Ce,1,1,"belender-intro-step",10),q.ɵɵtemplate(2,Se,1,3,"belender-manual-step",11),q.ɵɵtemplate(3,Me,1,3,"belender-loading-step",12),q.ɵɵtemplate(4,ke,1,3,"belender-form-step",13),q.ɵɵtemplate(5,Ie,1,3,"belender-error-form-step",14),q.ɵɵtemplate(6,Ee,1,3,"belender-abandoned-step",15),q.ɵɵtemplate(7,Te,1,3,"belender-otp-step",16),q.ɵɵtemplate(8,Pe,1,2,"belender-success-step",17),q.ɵɵtemplate(9,Oe,1,2,"belender-duplicated-request-step",18),q.ɵɵtemplate(10,De,1,3,"belender-fail-step",19),q.ɵɵtemplate(11,Le,1,2,"belender-no-service-step",20),q.ɵɵtemplate(12,Ae,6,2,"div",21),q.ɵɵelementContainerEnd()),2&e){const e=q.ɵɵnextContext(2);q.ɵɵadvance(1),q.ɵɵproperty("ngIf","intro"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","manual"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","loading"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","form"==e.getStatus()&&!e.loading),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","error-data"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","abandoned"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","otp"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","success"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","duplicated"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","failed"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","no-service"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","no-exist"==e.getStatus())}}function Ne(e,t){1&e&&q.ɵɵelement(0,"belender-disabled-url")}function je(e,t){if(1&e&&(q.ɵɵelementStart(0,"div",37),q.ɵɵelement(1,"belender-spinner",38),q.ɵɵelementEnd()),2&e){const e=q.ɵɵnextContext(2);q.ɵɵadvance(1),q.ɵɵpropertyInterpolate("text",e.loading),q.ɵɵproperty("color",e.data.styles.colors.title)}}function Fe(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"div",39)(1,"div",33)(2,"div",40),q.ɵɵtext(3,"Error!"),q.ɵɵelementEnd(),q.ɵɵelement(4,"div",41),q.ɵɵelementEnd(),q.ɵɵelementStart(5,"div",42)(6,"button",43),q.ɵɵlistener("click",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext(2);return q.ɵɵresetView(t.error=!1)})),q.ɵɵtext(7,"Ingresar manualmente"),q.ɵɵelementEnd()()()}if(2&e){const e=q.ɵɵnextContext(2);q.ɵɵadvance(4),q.ɵɵstyleProp("color",e.data.styles.colors.text),q.ɵɵproperty("innerHTML",e.error,q.ɵɵsanitizeHtml)}}function Ye(e,t){if(1&e&&(q.ɵɵelementStart(0,"div",4)(1,"div"),q.ɵɵtemplate(2,we,2,1,"div",5),q.ɵɵtemplate(3,Re,13,12,"ng-container",2),q.ɵɵtemplate(4,Ne,1,0,"belender-disabled-url",2),q.ɵɵtemplate(5,je,2,2,"div",6),q.ɵɵtemplate(6,Fe,8,3,"div",7),q.ɵɵelementEnd()()),2&e){const e=q.ɵɵnextContext();q.ɵɵadvance(1),q.ɵɵclassMapInterpolate1("h-full w-full flex-auto p-0 md:p-3 ",e.data.config.typography,""),q.ɵɵstyleProp("background",e.data.styles.colors.background),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",e.data.styles.withLogo&&"loading"!=e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",!e.error&&!e.disableURL),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",!e.error&&e.disableURL),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",e.loading&&!e.error),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",!e.loading&&e.error)}}function qe(e,t){if(1&e&&(q.ɵɵelementContainerStart(0),q.ɵɵelementStart(1,"div",44),q.ɵɵtext(2),q.ɵɵelementEnd(),q.ɵɵelementContainerEnd()),2&e){const e=q.ɵɵnextContext();q.ɵɵadvance(2),q.ɵɵ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}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 N.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 N.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(Y.L,{panelClass:"fullscreen-dialog",data:{flow:"sms"}})}};Ve.ɵfac=function(e){return new(e||Ve)(q.ɵɵdirectiveInject(q.ChangeDetectorRef),q.ɵɵdirectiveInject(P.gz),q.ɵɵdirectiveInject(V.F),q.ɵɵdirectiveInject(_.M),q.ɵɵdirectiveInject(C.w),q.ɵɵdirectiveInject(k.T),q.ɵɵdirectiveInject(x.t),q.ɵɵdirectiveInject(H.uw))},Ve.ɵcmp=q.ɵɵdefineComponent({type:Ve,selectors:[["belender-widget-power"]],inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud"},features:[q.ɵɵ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","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","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&&(q.ɵɵtemplate(0,xe,1,3,"vex-power-cert",0),q.ɵɵtemplate(1,Ye,7,10,"div",1),q.ɵɵtemplate(2,qe,3,1,"ng-container",2)),2&e&&(q.ɵɵproperty("ngIf",t.viewPowerTerms),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",t.data),q.ɵɵadvance(1),q.ɵɵ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,R.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=q.ɵɵdefineNgModule({type:e}),e.ɵinj=q.ɵɵ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=q.ɵɵdefineNgModule({type:e}),e.ɵinj=q.ɵɵdefineInjector({providers:[_.M,y.o,C.w,x.t,k.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,I.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:()=>He});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),k=n(5895),I=n(6257),E=n(1948),T=n(4246),P=n(9299),O=n(6e3),D=n(7582),L=n(9549),A=n(9933),R=n(8259),N=n(2340),j=n(6830),F=n(4650),Y=n(5089),q=n(9617),V=n(7489),H=n(5412),z=n(920),B=n(8364),U=n(4302),W=n(5439),$=n.n(W),G=(n(6866),n(3755)),Z=n(3746),K=n(1763),Q=n(7795),J=n(5696),X=n(3731);const ee=["termsCheckbox"],te=["assignmentCheckbox"];function ne(e,t){1&e&&(F.ɵɵelementStart(0,"p",18)(1,"b"),F.ɵɵtext(2," Necesitamos más datos para validar el acceso a las administraciones públicas"),F.ɵɵelementEnd()())}function ie(e,t){1&e&&(F.ɵɵelementStart(0,"mat-error"),F.ɵɵtext(1," Debes ingresar un DNI o NIE válido! "),F.ɵɵelementEnd())}const re=function(e){return{mask:e}};function se(e,t){if(1&e){const e=F.ɵɵgetCurrentView();F.ɵɵelementStart(0,"mat-form-field",6)(1,"mat-label"),F.ɵɵtext(2," Fecha de vencimiento del DNI "),F.ɵɵelementEnd(),F.ɵɵelement(3,"input",19),F.ɵɵelementStart(4,"mat-hint")(5,"a",20),F.ɵɵlistener("click",(function(t){F.ɵɵrestoreView(e);const n=F.ɵɵnextContext();return F.ɵɵresetView(n.gotoExpirationDate(t))})),F.ɵɵelementStart(6,"u"),F.ɵɵtext(7,"¿Donde la encuentro?"),F.ɵɵelementEnd()()()()}if(2&e){const e=F.ɵɵnextContext();F.ɵɵclassMapInterpolate1("",e.disabledInputs.expiration?"disabled-input":""," w-full flex-1 belender-form-field"),F.ɵɵadvance(3),F.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.expiration?-1:1),F.ɵɵproperty("textMask",F.ɵɵpureFunction1(5,re,e.datemask))}}function oe(e,t){if(1&e&&(F.ɵɵelementStart(0,"mat-form-field",6)(1,"mat-label"),F.ɵɵtext(2," Fecha de nacimiento "),F.ɵɵelementEnd(),F.ɵɵelement(3,"input",21),F.ɵɵelementEnd()),2&e){const e=F.ɵɵnextContext();F.ɵɵclassMapInterpolate1("",e.disabledInputs.birthday?"disabled-input":""," w-full flex-1 belender-form-field"),F.ɵɵadvance(3),F.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.birthday?-1:1),F.ɵɵproperty("textMask",F.ɵɵpureFunction1(5,re,e.datemask))}}function ae(e,t){if(1&e){const e=F.ɵɵgetCurrentView();F.ɵɵelementStart(0,"mat-form-field",6)(1,"mat-label"),F.ɵɵtext(2,"Número de soporte"),F.ɵɵelementEnd(),F.ɵɵelement(3,"input",22),F.ɵɵelementStart(4,"mat-hint")(5,"a",20),F.ɵɵlistener("click",(function(t){F.ɵɵrestoreView(e);const n=F.ɵɵnextContext();return F.ɵɵresetView(n.gotoSupportAclaration(t))})),F.ɵɵelementStart(6,"u"),F.ɵɵtext(7,"¿Donde lo encuentro?"),F.ɵɵelementEnd()()()()}if(2&e){const e=F.ɵɵnextContext();F.ɵɵclassMapInterpolate1("",e.disabledInputs.supportNumber?"disabled-input":""," w-full flex-1 belender-form-field"),F.ɵɵadvance(3),F.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.supportNumber?-1:1)}}function le(e,t){if(1&e&&(F.ɵɵelementStart(0,"mat-form-field",6)(1,"mat-label"),F.ɵɵtext(2,"Telefono"),F.ɵɵelementEnd(),F.ɵɵelement(3,"input",23),F.ɵɵelementEnd()),2&e){const e=F.ɵɵnextContext();F.ɵɵclassMapInterpolate1("",e.disabledInputs.phone?"disabled-input":""," w-full flex-1 belender-form-field"),F.ɵɵadvance(3),F.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.phone?-1:1)}}function ce(e,t){if(1&e&&(F.ɵɵelementStart(0,"div",24)(1,"mat-form-field",6)(2,"mat-label"),F.ɵɵtext(3,"Email"),F.ɵɵelementEnd(),F.ɵɵelement(4,"input",25),F.ɵɵelementEnd()()),2&e){const e=F.ɵɵnextContext();F.ɵɵadvance(1),F.ɵɵclassMapInterpolate1("",e.disabledInputs.email?"disabled-input":""," w-full flex-1 belender-form-field"),F.ɵɵadvance(3),F.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.email?-1:1)}}function de(e,t){if(1&e){const e=F.ɵɵgetCurrentView();F.ɵɵelementStart(0,"div",26)(1,"belender-checkbox",27,28),F.ɵɵlistener("changeCheckbox",(function(t){F.ɵɵrestoreView(e);const n=F.ɵɵnextContext();return F.ɵɵresetView(n.setTerms(t))})),F.ɵɵelementStart(3,"belender-terms-and-policy-links",29),F.ɵɵlistener("goToTerms",(function(t){F.ɵɵrestoreView(e);const n=F.ɵɵnextContext();return F.ɵɵresetView(n.gotoTermsAndConditions(t))})),F.ɵɵelementEnd()()()}if(2&e){const e=F.ɵɵnextContext();F.ɵɵadvance(1),F.ɵɵproperty("color",e.data.styles.colors.title),F.ɵɵadvance(2),F.ɵɵproperty("userId",e.userId)("showPolicyLink",null==e.data?null:e.data.config.showPolicyLink)("firstSentence",null==e.data.ClavePin||null==e.data.ClavePin.texts||null==e.data.ClavePin.texts.form?null:e.data.ClavePin.texts.form.firstSentence)("secondSentence",null==e.data.ClavePin||null==e.data.ClavePin.texts||null==e.data.ClavePin.texts.form?null:e.data.ClavePin.texts.form.secondSentence)("thirdSentence",null==e.data.ClavePin||null==e.data.ClavePin.texts||null==e.data.ClavePin.texts.form?null:e.data.ClavePin.texts.form.thirdSentence)("policyActionText",null==e.data.ClavePin||null==e.data.ClavePin.texts||null==e.data.ClavePin.texts.form?null:e.data.ClavePin.texts.form.policyActionText)("termsActionText",null==e.data.ClavePin||null==e.data.ClavePin.texts||null==e.data.ClavePin.texts.form?null:e.data.ClavePin.texts.form.termsActionText)("customTerms",e.data.ClavePin.customTerms)}}function ue(e,t){if(1&e){const e=F.ɵɵgetCurrentView();F.ɵɵelementStart(0,"div",30)(1,"belender-checkbox",31,32),F.ɵɵlistener("changeCheckbox",(function(t){F.ɵɵrestoreView(e);const n=F.ɵɵnextContext();return F.ɵɵresetView(n.setAssignment(t))})),F.ɵɵelement(3,"div",33),F.ɵɵelementEnd()()}if(2&e){const e=F.ɵɵnextContext();F.ɵɵadvance(1),F.ɵɵproperty("color",e.data.styles.colors.title),F.ɵɵadvance(2),F.ɵɵproperty("innerHTML",null==e.data?null:e.data.config.dataAssignmentText,F.ɵɵsanitizeHtml)}}function he(e,t){1&e&&(F.ɵɵelementStart(0,"div",34),F.ɵɵelement(1,"mat-icon",35),F.ɵɵtext(2," Debes leer los términos y condiciones para poder continuar "),F.ɵɵelementEnd())}function pe(e,t){if(1&e&&(F.ɵɵelement(0,"div",3),F.ɵɵpipe(1,"safeHtml")),2&e){const e=F.ɵɵnextContext();F.ɵɵstyleProp("color",e.data.styles.colors.text),F.ɵɵproperty("innerHTML",F.ɵɵpipeBind1(1,3,(null==e.texts.form?null:e.texts.form.aditionalDescription)||""),F.ɵɵsanitizeHtml)}}function me(e,t){if(1&e&&(F.ɵɵelementStart(0,"div",36),F.ɵɵelement(1,"mat-progress-spinner",37),F.ɵɵelementStart(2,"p",38),F.ɵɵtext(3),F.ɵɵelementEnd()()),2&e){const e=F.ɵɵnextContext();F.ɵɵadvance(3),F.ɵɵtextInterpolate1(" ",e.loading," ")}}const fe={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let ge=(()=>{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 F.EventEmitter(null),this.goTerms=new F.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=$()(e.document_expiration_date).format("DD/MM/YYYY"):e.person_document_expiration_date&&(t=$()(e.person_document_expiration_date).format("DD/MM/YYYY")),e.birthday?n=$()(e.birthday).format("DD/MM/YYYY"):e.person_birth_date?n=$()(e.person_birth_date).format("DD/MM/YYYY"):e.birth_date&&(n=$()(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="Enviando datos..",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("Error!","Fecha incorrecta!")):400==e.code&&"Incorrect support number"==e.message?(this.showAlert("Error!","Número de soporte inválido!"),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("Error!","Error desconocido: "+e),this.cd.markForCheck()})).catch((e=>{e&&e.error&&this.showAlert("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="Comprobando SMS..";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("Error!","Fecha de nacimiento incorrecta!")):"Incorrect date"==t.message?(this.solicitud.status_code="form",this.showAlert("Error!","Fecha incorrecta!")):t.message&&(400==t.code?this.showAlert("SMS","El usuario no tiene habilitado el servicio SMS, no se podra realizar la solicitud","error"):(this.solicitud.status_code="form",this.showAlert("Error!",t.message)))):t&&t.status&&"success"==t.status?this.nextStep():this.showAlert("Error!","Error desconocido: "+t),this.loading=null,this.cd.markForCheck()})).catch((e=>{e&&e.error&&this.showAlert("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(G.$,{panelClass:"fullscreen-dialog"})}gotoExpirationDate(e){e.preventDefault(),e.stopPropagation(),this.dialog.open(Z.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="Debes ingresar un DNI o NIE válido!"}getAssignmentValidation(){return!(this.data.config.forceChecks&&!this.termsReaded)&&(!this.data.config.dataAssignmentCheck||this.assignment)}}return e.ɵfac=function(t){return new(t||e)(F.ɵɵdirectiveInject(p.UntypedFormBuilder),F.ɵɵdirectiveInject(_.M),F.ɵɵdirectiveInject(k.T),F.ɵɵdirectiveInject(Y.F),F.ɵɵdirectiveInject(V.v),F.ɵɵdirectiveInject(F.ChangeDetectorRef),F.ɵɵdirectiveInject(H.uw))},e.ɵcmp=F.ɵɵdefineComponent({type:e,selectors:[["belender-form-smspin-step"]],viewQuery:function(e,t){if(1&e&&(F.ɵɵviewQuery(ee,5),F.ɵɵviewQuery(te,5)),2&e){let e;F.ɵɵqueryRefresh(e=F.ɵɵloadQuery())&&(t.checkComponent=e.first),F.ɵɵqueryRefresh(e=F.ɵɵloadQuery())&&(t.assignmentCheckComponent=e.first)}},inputs:{data:"data",texts:"texts",solicitud:"solicitud",requestIDFromURL:"requestIDFromURL",pinPackID:"pinPackID",smsPackID:"smsPackID",userId:"userId"},outputs:{next:"nextStep",goTerms:"goToTerms"},features:[F.ɵɵProvidersFeature([{provide:M.sG,useValue:fe},{provide:F.LOCALE_ID,useValue:"es-ES"}])],decls:25,vars:35,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"],["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","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&&(F.ɵɵelementStart(0,"form",0)(1,"div",1),F.ɵɵelement(2,"div",2)(3,"div",3),F.ɵɵpipe(4,"safeHtml"),F.ɵɵtemplate(5,ne,3,0,"p",4),F.ɵɵelementEnd(),F.ɵɵelementStart(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),F.ɵɵtext(9),F.ɵɵelementEnd(),F.ɵɵelement(10,"input",7),F.ɵɵtemplate(11,ie,2,0,"mat-error",8),F.ɵɵelementEnd(),F.ɵɵtemplate(12,se,8,7,"mat-form-field",9),F.ɵɵtemplate(13,oe,4,7,"mat-form-field",9),F.ɵɵtemplate(14,ae,8,4,"mat-form-field",9),F.ɵɵtemplate(15,le,4,4,"mat-form-field",9),F.ɵɵtemplate(16,ce,5,4,"div",10),F.ɵɵelementEnd(),F.ɵɵtemplate(17,de,4,9,"div",11),F.ɵɵtemplate(18,ue,4,2,"div",12),F.ɵɵtemplate(19,he,3,0,"div",13),F.ɵɵelementStart(20,"div",14)(21,"button",15),F.ɵɵlistener("click",(function(){return t.validate()})),F.ɵɵtext(22," Continuar "),F.ɵɵelementEnd()(),F.ɵɵtemplate(23,pe,2,5,"div",16),F.ɵɵelementEnd(),F.ɵɵtemplate(24,me,4,1,"div",17)),2&e&&(F.ɵɵproperty("formGroup",t.form),F.ɵɵadvance(2),F.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),F.ɵɵproperty("innerHTML",t.texts.form.title,F.ɵɵsanitizeHtml),F.ɵɵadvance(1),F.ɵɵstyleProp("color",t.data.styles.colors.text),F.ɵɵproperty("innerHTML",F.ɵɵpipeBind1(4,33,t.texts.form.description||""),F.ɵɵsanitizeHtml),F.ɵɵadvance(2),F.ɵɵproperty("ngIf","SMS"==t.mode),F.ɵɵadvance(2),F.ɵɵclassMapInterpolate1("",t.disabledInputs.dni?"disabled-input":""," w-full flex-1 belender-form-field"),F.ɵɵadvance(2),F.ɵɵtextInterpolate(t.isDni?"DNI":t.isNie?"NIE":"DNI o NIE"),F.ɵɵadvance(1),F.ɵɵpropertyInterpolate("tabindex",t.disabledInputs.dni?-1:1),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",!t.isNie&&!t.isDni),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",t.isDni),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",t.isDni&&"SMS"==t.mode||t.isNie),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",t.isNie),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",(t.isNie||t.isDni)&&"SMS"==t.mode),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",(null==t.data||null==t.data.config?null:t.data.config.followMail)&&(t.isDni||t.isNie)),F.ɵɵadvance(1),F.ɵɵproperty("ngIf","ClavePin"==t.mode),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",(null==t.data?null:t.data.config.dataAssignmentCheck)&&"ClavePin"==t.mode),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",t.data.config.forceChecks&&!t.termsReaded&&"ClavePin"==t.mode),F.ɵɵadvance(2),F.ɵɵ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"),F.ɵɵproperty("disabled",!t.validDocument()||t.form.invalid||!t.acceptTerms||!t.getAssignmentValidation()||t.loading),F.ɵɵadvance(2),F.ɵɵproperty("ngIf",null==t.data.smspin?null:t.data.smspin.showAditionalDescription),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",t.loading))},dependencies:[i.O5,d.Hw,u.lW,L.TO,L.KE,L.bx,L.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.RequiredValidator,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,b.Ou,K.b,Q.hd,J.T,X.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})(),_e=(()=>{class e{constructor(){}ngOnInit(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=F.ɵɵ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&&(F.ɵɵelementStart(0,"form",0)(1,"div",1),F.ɵɵelement(2,"div",2)(3,"div",3),F.ɵɵpipe(4,"safeHtml"),F.ɵɵelementEnd()()),2&e&&(F.ɵɵadvance(2),F.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),F.ɵɵproperty("innerHTML",t.texts.fail.title,F.ɵɵsanitizeHtml),F.ɵɵadvance(1),F.ɵɵstyleProp("color",t.data.styles.colors.text),F.ɵɵproperty("innerHTML",F.ɵɵpipeBind1(4,8,t.texts.fail.description),F.ɵɵsanitizeHtml))},dependencies:[p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm,X.z]}),e})();const ve=["formStep"];function ye(e,t){if(1&e&&(F.ɵɵelementStart(0,"div",7),F.ɵɵelement(1,"img",8),F.ɵɵelementEnd()),2&e){const e=F.ɵɵnextContext(2);F.ɵɵadvance(1),F.ɵɵproperty("src",e.data.styles.logoUrl,F.ɵɵsanitizeUrl)}}function be(e,t){if(1&e){const e=F.ɵɵgetCurrentView();F.ɵɵelementStart(0,"belender-form-smspin-step",12,13),F.ɵɵlistener("nextStep",(function(t){F.ɵɵrestoreView(e);const n=F.ɵɵnextContext(3);return F.ɵɵresetView(n.checkRequest(t))}))("goToTerms",(function(){F.ɵɵrestoreView(e);const t=F.ɵɵnextContext(3);return F.ɵɵresetView(t.gotoTermsAndConditions())})),F.ɵɵelementEnd()}if(2&e){const e=F.ɵɵnextContext(3);F.ɵɵproperty("requestIDFromURL",e.requestIDFromURL)("data",e.data)("userId",e.userId)("pinPackID",e.pinPackID)("smsPackID",e.smsPackID)("texts",e.data.smspin.texts)("solicitud",e.solicitud)}}function xe(e,t){if(1&e){const e=F.ɵɵgetCurrentView();F.ɵɵelementStart(0,"belender-smspin-no-service-step",14),F.ɵɵlistener("retry",(function(){F.ɵɵrestoreView(e);const t=F.ɵɵnextContext(3);return F.ɵɵresetView(t.gotoForm())})),F.ɵɵelementEnd()}if(2&e){const e=F.ɵɵnextContext(3);F.ɵɵproperty("data",e.data)("texts",e.data.smspin.texts)}}function we(e,t){if(1&e&&(F.ɵɵelementStart(0,"div",15)(1,"div",16)(2,"h1",17),F.ɵɵtext(3,"No existe la solicitud"),F.ɵɵelementEnd()(),F.ɵɵelementStart(4,"div",18),F.ɵɵtext(5,"No existen solicitudes activas con el código requerido"),F.ɵɵelementEnd()()),2&e){const e=F.ɵɵnextContext(3);F.ɵɵadvance(4),F.ɵɵstyleProp("color",e.data.styles.colors.text)}}function Ce(e,t){if(1&e&&(F.ɵɵelementContainerStart(0),F.ɵɵtemplate(1,be,2,7,"belender-form-smspin-step",9),F.ɵɵtemplate(2,xe,1,2,"belender-smspin-no-service-step",10),F.ɵɵtemplate(3,we,6,2,"div",11),F.ɵɵelementContainerEnd()),2&e){const e=F.ɵɵnextContext(2);F.ɵɵadvance(1),F.ɵɵproperty("ngIf","form"==e.getStatus()&&!e.loading),F.ɵɵadvance(1),F.ɵɵproperty("ngIf","no-service"==e.getStatus()),F.ɵɵadvance(1),F.ɵɵproperty("ngIf","created"!=e.step)}}function Se(e,t){1&e&&F.ɵɵelement(0,"belender-disabled-url")}function Me(e,t){if(1&e&&(F.ɵɵelementStart(0,"div",19),F.ɵɵelement(1,"mat-progress-spinner",20),F.ɵɵelementStart(2,"p",21),F.ɵɵtext(3),F.ɵɵelementEnd()()),2&e){const e=F.ɵɵnextContext(2);F.ɵɵadvance(3),F.ɵɵtextInterpolate(e.loading)}}function ke(e,t){if(1&e){const e=F.ɵɵgetCurrentView();F.ɵɵelementStart(0,"div",22)(1,"div",15)(2,"div",23),F.ɵɵtext(3,"Error!"),F.ɵɵelementEnd(),F.ɵɵelement(4,"div",24),F.ɵɵelementEnd(),F.ɵɵelementStart(5,"div",25)(6,"button",26),F.ɵɵlistener("click",(function(){F.ɵɵrestoreView(e);const t=F.ɵɵnextContext(2);return F.ɵɵresetView(t.error=!1)})),F.ɵɵtext(7,"Ingresar manualmente"),F.ɵɵelementEnd()()()}if(2&e){const e=F.ɵɵnextContext(2);F.ɵɵadvance(4),F.ɵɵstyleProp("color",e.data.styles.colors.text),F.ɵɵproperty("innerHTML",e.error,F.ɵɵsanitizeHtml)}}function Ie(e,t){if(1&e&&(F.ɵɵelementStart(0,"div",2)(1,"div"),F.ɵɵtemplate(2,ye,2,1,"div",3),F.ɵɵtemplate(3,Ce,4,3,"ng-container",4),F.ɵɵtemplate(4,Se,1,0,"belender-disabled-url",4),F.ɵɵtemplate(5,Me,4,1,"div",5),F.ɵɵtemplate(6,ke,8,3,"div",6),F.ɵɵelementEnd()()),2&e){const e=F.ɵɵnextContext();F.ɵɵadvance(1),F.ɵɵclassMapInterpolate1("h-full w-full flex-auto p-0 md:p-3 ",e.data.config.typography,""),F.ɵɵstyleProp("background",e.data.styles.colors.background),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",e.data.styles.withLogo),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",!e.error&&!e.disableURL),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",!e.error&&e.disableURL),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",e.loading&&!e.error),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",!e.loading&&e.error)}}function Ee(e,t){if(1&e&&F.ɵɵelement(0,"belender-widget-sms",27),2&e){const e=F.ɵɵnextContext();F.ɵɵproperty("solicitud",e.solicitud)}}function Te(e,t){if(1&e&&F.ɵɵelement(0,"belender-widget-pin",27),2&e){const e=F.ɵɵnextContext();F.ɵɵproperty("solicitud",e.solicitud)}}let Pe=class{constructor(e,t,n,i,r,s,o,a,l){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.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.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.setInitialData(this.userId)):(this.loading=!1,this.utils.setLoading(!1))}),(e=>{this.loading=!1,this.utils.setLoading(!1)})),"pro"!=N.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)}))}setInitialData(e){this.customizationService.getCustomization(e).then((e=>{e&&(this.data=e.data||e,this.disableURL=e.config.disableUrlWidget,this.validateRequestIdInUrl(),this.utils.setLoading(!1),this.cd.markForCheck())}),(e=>{console.error(e),this.utils.setLoading(!1)}))}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(j.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"}};Pe.ɵfac=function(e){return new(e||Pe)(F.ɵɵdirectiveInject(F.ChangeDetectorRef),F.ɵɵdirectiveInject(P.gz),F.ɵɵdirectiveInject(Y.F),F.ɵɵdirectiveInject(_.M),F.ɵɵdirectiveInject(q.U),F.ɵɵdirectiveInject(C.w),F.ɵɵdirectiveInject(V.v),F.ɵɵdirectiveInject(k.T),F.ɵɵdirectiveInject(H.uw))},Pe.ɵcmp=F.ɵɵdefineComponent({type:Pe,selectors:[["belender-widget-sms-pin"]],viewQuery:function(e,t){if(1&e&&F.ɵɵviewQuery(ve,5),2&e){let e;F.ɵɵqueryRefresh(e=F.ɵɵloadQuery())&&(t.formComponent=e.first)}},inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud"},features:[F.ɵɵProvidersFeature([{provide:L.o2,useValue:{appearance:"standard"}}])],decls:3,vars:3,consts:[["class","h-full widget-belender",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","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,"requestIDFromURL","data","userId","pinPackID","smsPackID","texts","solicitud","nextStep","goToTerms",4,"ngIf"],[3,"data","texts","retry",4,"ngIf"],["class","px-6 py-4 flex flex-col",4,"ngIf"],[3,"requestIDFromURL","data","userId","pinPackID","smsPackID","texts","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,"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,"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"],[3,"solicitud"]],template:function(e,t){1&e&&(F.ɵɵtemplate(0,Ie,7,10,"div",0),F.ɵɵtemplate(1,Ee,1,1,"belender-widget-sms",1),F.ɵɵtemplate(2,Te,1,1,"belender-widget-pin",1)),2&e&&(F.ɵɵproperty("ngIf",t.data&&"smspin"==t.mode),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",t.data&&"SMS"==t.mode),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",t.data&&"ClavePin"==t.mode))},dependencies:[i.O5,u.lW,b.Ou,z.n,B.T,U.q,ge,_e],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}"]}),Pe=(0,D.gn)([(0,A.c)()],Pe);const Oe=[{path:":idUser/:pinPackID/:smsPackID",component:Pe},{path:":shortLink",component:Pe}];let De=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=F.ɵɵdefineNgModule({type:e}),e.ɵinj=F.ɵɵdefineInjector({imports:[P.Bz.forChild(Oe),P.Bz,O.d8]}),e})();var Le=n(1916),Ae=n(3006),Re=n(6981),Ne=n(3848),je=n(1129),Fe=n(9476),Ye=n(3295),qe=n(3300),Ve=n(865);let He=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=F.ɵɵdefineNgModule({type:e}),e.ɵinj=F.ɵɵdefineInjector({providers:[_.M,y.o,C.w,x.t,k.T,T.t,{provide:M.Ad,useValue:"es-ES"}],imports:[De,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,I.T5,E.Fk,Le.PinModule,Ae.SmsModule,Re.x,Ne.Nh,je.n,Fe.F,Ye.g,qe.C,Q.QA,Ve.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})()},3612:(e,t,n)=>{n.d(t,{b9:()=>rt,db:()=>tt});var i=n(1481),r=n(4650),s=n(9299),o=n(7582),a=n(9933),l=n(7403),c=n(8460),d=n(6895),u=n(9101),h=n(5412);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){this.customizationStoreService=e,this.loading=!1,this.customizationData$=this.customizationStoreService.customizationData$.subscribe((e=>{this.customizationData=e,Object.keys(e).length>0&&this.setCustomization(this.customizationData)}))}setCustomization(e){this.loading=!0,e&&e.policy&&(this.policy=e.policy),this.loading=!1}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵdirectiveInject(c.r))},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.customizationData.styles.btnRound+"px"),r.ɵɵadvance(2),r.ɵɵstyleProp("color",t.customizationData.styles.colors.btnText)("background",t.customizationData.styles.colors.btnBg)("border-radius",t.customizationData.styles.btnRound+"px"),r.ɵɵproperty("mat-dialog-close",!0))},dependencies:[d.O5,u.lW,h.ZT,h.xY,h.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(7367),v=n(9045),y=n(2237),b=n(9199);const x=["configpanel"],w=["widgetCard"];function C(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 S(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(2);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(2);return r.ɵɵresetView(n.gotoLegal(t))})),r.ɵɵtext(6," Aviso legal"),r.ɵɵelementEnd()()()}}function M(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(2);return r.ɵɵresetView(n.gotoLegal(t))})),r.ɵɵtext(3," Aviso legal"),r.ɵɵelementEnd()()()}}function k(e,t){if(1&e&&(r.ɵɵelementContainerStart(0),r.ɵɵtemplate(1,S,7,0,"div",8),r.ɵɵtemplate(2,M,4,0,"div",8),r.ɵɵelementContainerEnd()),2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(1),r.ɵɵproperty("ngIf",e.showCopyright),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",!e.showCopyright)}}let I=class{constructor(e,t,n,i,r){this.customizationService=e,this.customizationStoreService=t,this.router=n,this.deviceInfoService=i,this.dialog=r,this.widgetHeight=0,this.copyrightName="",this.showCopyright=!1,this.loadingCustomization=!0,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"),"")}();let e=this.router.url.split("/");this.userId=e.length&&e.some((e=>"smspin"===e))?e&&e.length&&e[e.length-3]?e[e.length-3]:"":e&&e.length&&e[e.length-2]?e[e.length-2]:"",this.userId?this.setCustomization():(this.showCopyright=!0,this.loadingCustomization=!1)}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}))}setCustomization(){this.loadingCustomization=!0,this.customizationService.getCustomization(this.userId).then((e=>{this.customizationData=e,this.customizationStoreService.setCustomizationDataValue(this.customizationData),this.showCopyright=!this.customizationData||!this.customizationData.policy,this.loadingCustomization=!1})).catch((e=>{this.showCopyright=!0,this.loadingCustomization=!1}))}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,"*")}};I.ɵfac=function(e){return new(e||I)(r.ɵɵdirectiveInject(_.w),r.ɵɵdirectiveInject(c.r),r.ɵɵdirectiveInject(s.F0),r.ɵɵdirectiveInject(v.H),r.ɵɵdirectiveInject(h.uw))},I.ɵcmp=r.ɵɵdefineComponent({type:I,selectors:[["vex-widget-boxed-layout"]],viewQuery:function(e,t){if(1&e&&(r.ɵɵviewQuery(x,7),r.ɵɵviewQuery(w,5)),2&e){let e;r.ɵɵqueryRefresh(e=r.ɵɵloadQuery())&&(t.configpanel=e.first),r.ɵɵqueryRefresh(e=r.ɵɵloadQuery())&&(t.widgetCard=e.first)}},decls:10,vars:2,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,C,2,1,"span",7),r.ɵɵelementEnd(),r.ɵɵtemplate(9,k,3,2,"ng-container",7),r.ɵɵelementEnd()()),2&e&&(r.ɵɵadvance(8),r.ɵɵproperty("ngIf",t.showCopyright),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",!t.loadingCustomization))},dependencies:[d.O5,s.lC,y.w,b.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}"]}),I=(0,o.gn)([(0,a.c)()],I);var E=n(6e3),T=n(2567),P=n(2340),O=n(529);let D=(()=>{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(P.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(T.e),r.ɵɵinject(O.eN))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),L=(()=>{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(T.e),r.ɵɵinject(D))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac}),e})(),A=(()=>{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(D),r.ɵɵinject(T.e))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac}),e})();const R=[{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:I,children:[{path:"",loadChildren:()=>Promise.all([n.e(244),n.e(852)]).then(n.bind(n,7852)).then((e=>e.WidgetBoxedLayoutModule))}]}];let N=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[L,A],imports:[s.Bz.forRoot(R,{preloadingStrategy:E.tw,scrollPositionRestoration:"enabled",relativeLinkResolution:"corrected",anchorScrolling:"enabled"}),s.Bz,E.d8]}),e})();var j=n(7122);const F={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 Y=n(5861);function q(){return(q=(0,Y.Z)((function*(){const e=B();return{user_agent:navigator.userAgent,ip:yield V(),browser:Z(),device:G(),flowType:z(window.location.href),os:W(),os_version:$(),orientation:U(),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 V(){return H.apply(this,arguments)}function H(){return(H=(0,Y.Z)((function*(){try{return(yield(yield fetch("https://api.ipify.org?format=json")).json()).ip}catch{return"Not available"}}))).apply(this,arguments)}function z(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 B(){return{width:window.screen.width,height:window.screen.height}}function U(){return screen.orientation?screen.orientation.type:window.innerWidth>window.innerHeight?"landscape":"portrait"}function W(){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 $(){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 G(){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 Z(){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 K=n(1135);function Q(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)?Q(Object.assign({},r),s):s})),e):t}var J,X=((J=X||(X={})).apollo="vex-layout-apollo",J.zeus="vex-layout-zeus",J.hermes="vex-layout-hermes",J.poseidon="vex-layout-poseidon",J.ares="vex-layout-ares",J.ikaros="vex-layout-ikaros",X),ee=(()=>{return(e=ee||(ee={})).light="vex-style-light",e.default="vex-style-default",e.dark="vex-style-dark",ee;var e})();const te={id:X.apollo,name:"Apollo",style:{colorScheme:ee.default,colors:{primary:F.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}},ne=[te,Q({...te},{id:X.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}}),Q({...te},{id:X.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}}),Q({...te},{id:X.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}}),Q({...te},{id:X.zeus,name:"Zeus",imgSrc:"//vex-landing.visurel.com/assets/img/layouts/zeus.png",sidenav:{state:"collapsed"}}),Q({...te},{id:X.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 ie=n(4004),re=n(2289);let se=(()=>{class e{constructor(e,t){this.router=e,this.breakpointObserver=t,this._quickpanelOpenSubject=new K.X(!1),this.quickpanelOpen$=this._quickpanelOpenSubject.asObservable(),this._sidenavOpenSubject=new K.X(!1),this.sidenavOpen$=this._sidenavOpenSubject.asObservable(),this._sidenavCollapsedSubject=new K.X(!1),this.sidenavCollapsed$=this._sidenavCollapsedSubject.asObservable(),this._sidenavCollapsedOpenSubject=new K.X(!1),this.sidenavCollapsedOpen$=this._sidenavCollapsedOpenSubject.asObservable(),this._configpanelOpenSubject=new K.X(!1),this.configpanelOpen$=this._configpanelOpenSubject.asObservable(),this._searchOpen=new K.X(!1),this.searchOpen$=this._searchOpen.asObservable(),this.isDesktop$=this.breakpointObserver.observe("(min-width: 1280px)").pipe((0,ie.U)((e=>e.matches))),this.ltLg$=this.breakpointObserver.observe("(max-width: 1279px)").pipe((0,ie.U)((e=>e.matches))),this.gtMd$=this.breakpointObserver.observe("(min-width: 960px)").pipe((0,ie.U)((e=>e.matches))),this.ltMd$=this.breakpointObserver.observe("(max-width: 959px)").pipe((0,ie.U)((e=>e.matches))),this.gtSm$=this.breakpointObserver.observe("(min-width: 600px)").pipe((0,ie.U)((e=>e.matches))),this.isMobile$=this.breakpointObserver.observe("(max-width: 599px)").pipe((0,ie.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(re.Yg))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),oe=(()=>{class e{constructor(e,t){this.document=e,this.layoutService=t,this.defaultConfig=X.poseidon,this.configs=ne,this._configSubject=new K.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,ie.U)(e))}setConfig(e){const t=this.configs.find((t=>t.id===e));this._configSubject.next(t)}updateConfig(e){this._configSubject.next(Q({...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(ee).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(d.K0),r.ɵɵinject(se))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var ae=n(7579);let le=(()=>{class e{constructor(){this.items=[],this._openChangeSubject=new ae.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 ce=n(7392),de=n(5895),ue=n(5089);let he=(()=>{class e{constructor(e){this.http=e,this.data={},this.loadingData=new K.X(!1)}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)}))}))}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(O.eN))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),pe=(()=>{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(ue.F),r.ɵɵinject(O.eN),r.ɵɵinject(de.T))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var me=n(182),fe=n(1572);function ge(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 _e(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 ve=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,d,u,h,p,m,f){this.configService=e,this.localeId=t,this.auth=n,this.navigationService=i,this.matIconRegistry=r,this.domSanitizer=s,this.notiService=o,this.utils=a,this.cdRef=l,this.translateService=c,this.trelloService=d,this.webhooksService=u,this.router=h,this.deviceInfoService=p,this.route=m,this.renderer=f,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.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})),j.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 g=F.gray;let _=null;localStorage.getItem("belender-sidenav-closed")&&(_=JSON.parse(localStorage.getItem("belender-sidenav-closed"))?"collapsed":"expanded"),g&&this.configService.updateConfig({style:{colors:{primary:g}},sidenav:{state:_||"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:",P.N.isWebComponent?"ShadowDom":"Emulated"),function(){return q.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(oe),r.ɵɵdirectiveInject(r.LOCALE_ID),r.ɵɵdirectiveInject(T.e),r.ɵɵdirectiveInject(le),r.ɵɵdirectiveInject(ce.jv),r.ɵɵdirectiveInject(i.DomSanitizer),r.ɵɵdirectiveInject(de.T),r.ɵɵdirectiveInject(ue.F),r.ɵɵdirectiveInject(r.ChangeDetectorRef),r.ɵɵdirectiveInject(he),r.ɵɵdirectiveInject(pe),r.ɵɵdirectiveInject(me.t),r.ɵɵdirectiveInject(s.F0),r.ɵɵdirectiveInject(v.H),r.ɵɵdirectiveInject(s.gz),r.ɵɵdirectiveInject(r.Renderer2))},e.ɵcmp=r.ɵɵdefineComponent({type:e,selectors:[["vex-root"]],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,ge,4,1,"div",0),r.ɵɵtemplate(2,_e,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:[d.O5,s.lC,fe.Ou,ce.Hw],styles:[":host{position:relative;display:block}.loading-wrapper{position:fixed;top:0;width:100vw;height:100vh;background:white;z-index:9999999!important;display:flex;justify-content:center;align-items:center;flex-direction:column}body{max-height:100vh;overflow-y:auto}.loading-wrapper p{padding:10px 30px;border-radius:100px}.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 ye=n(1516),be=n(1207),xe=n(9549);let we=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[{provide:xe.o2,useValue:{appearance:"fill"}}],imports:[d.ez,be.x,be.x]}),e})();var Ce=n(7533),Se=n(259),Me=n(7396),ke=n(7009),Ie=n(4006);let Ee=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({imports:[d.ez,Ie.FormsModule,Ie.ReactiveFormsModule,xe.lN,u.ot]}),e})();var Te=n(3238),Pe=n(2029),Oe=n(7717),De=n(7795),Le=n(1452);const Ae=[{path:"",component:l.N}];let Re=(()=>{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(Ae),s.Bz,E.d8]}),e})();var Ne=n(6383),je=n(5028);let Fe=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[_.w],imports:[d.ez,Re,Ce.q,fe.Cq,Ne.G,je.q]}),e})();const Ye=[{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(Ye),s.Bz,E.d8]}),e})();var Ve=n(7838);let He=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[_.w],imports:[qe,Ce.q,fe.Cq,Ne.G,je.q,Ve.y]}),e})();const ze=[{path:"",component:n(3746).R}];let Be=(()=>{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(ze),s.Bz,E.d8]}),e})();var Ue=n(865);let We=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[_.w],imports:[Be,Ce.q,fe.Cq,Ne.G,je.q,Ve.y,Ue.q]}),e})();const $e=[{path:"",component:g}];let Ge=(()=>{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($e),s.Bz,E.d8]}),e})(),Ze=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[_.w],imports:[d.ez,Ge,Ce.q,fe.Cq,Ne.G,je.q]}),e})();var Ke=n(1258),Qe=n(3295),Je=n(8184);let Xe=(()=>{class e extends Je.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 et=(0,Se.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/"}),tt=(0,Me.ad)(et);let nt=localStorage.getItem("belender-language");function it(e){return()=>e.use(nt||"sp")}let rt=(()=>{class e{constructor(e){if(this.injector=e,P.N.isWebComponent){console.log("📦 Registrando <belender-web-component>...");const t=(0,Le.iD)(ve,{injector:e});customElements.get("belender-web-component")||customElements.define("belender-web-component",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:[pe,de.T,ue.F,T.e,D,Pe.F,he,{provide:r.APP_INITIALIZER,useFactory:it,deps:[he],multi:!0},{provide:Te.Ad,useValue:"es-ES"},{provide:Oe.gJ,useValue:{headless:!0}},{provide:Je.Xj,useClass:Xe}],imports:[i.BrowserModule,N,ye.PW,O.JF,we,Ce.q,fe.Cq,ke.ZX,Ee,Oe.FE.forRoot(),De.QA,ce.Ps,Fe,He,We,Ze,Ke.H,Qe.g]}),e})()},7533:(e,t,n)=>{n.d(t,{q:()=>Y});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","Telefono",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 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,M.c,h.ot,a.Ps]}),e})(),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,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,I]}),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,k,E,o.Bz,I,T,P.a,O.y]}),e})();var L=n(1948),A=n(455),R=n(2635),N=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,R.WG,N.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})(),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,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.customizationData$=this.customizationStoreService.customizationData$.subscribe((e=>{Object.keys(e).length>0&&(this.customizationData=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:27,vars:11,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"]],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()()),2&e&&(i.ɵɵadvance(7),i.ɵɵproperty("src",i.ɵɵpipeBind1(8,5,"img/illustrations/expiration-date-1.png")),i.ɵɵadvance(3),i.ɵɵproperty("src",i.ɵɵpipeBind1(11,7,"img/illustrations/expiration-date-2.png")),i.ɵɵadvance(12),i.ɵɵproperty("src",i.ɵɵpipeBind1(23,9,"img/illustrations/expiration-date-3.png")),i.ɵɵadvance(3),i.ɵɵstyleProp("border-radius",t.customizationData.styles.btnRound+"px"))},dependencies:[s.lW,o.ZT,o.xY,o.H8,c,d.z]}),e})()},7403:(e,t,n)=>{n.d(t,{N:()=>h});var i=n(4650),r=n(8460),s=n(6895),o=n(9101),a=n(5412);function l(e,t){1&e&&(i.ɵɵelementStart(0,"div",7)(1,"h1"),i.ɵɵtext(2,"Aviso legal"),i.ɵɵelementEnd(),i.ɵɵelementStart(3,"h2"),i.ɵɵtext(4,"1.- Derecho de la información"),i.ɵɵelementEnd(),i.ɵɵelementStart(5,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(7,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(9,"p"),i.ɵɵtext(10),i.ɵɵelementEnd(),i.ɵɵelementStart(11,"h2"),i.ɵɵtext(12,"2.- Uso del sitio web"),i.ɵɵelementEnd(),i.ɵɵelementStart(13,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(15,"p"),i.ɵɵ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:"),i.ɵɵelementEnd(),i.ɵɵelementStart(17,"ul")(18,"li"),i.ɵɵtext(19,"Incurrir en actividades ilícitas, ilegales o contrarias a la buena fe y al orden público."),i.ɵɵelementEnd(),i.ɵɵelementStart(20,"li"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(22,"li"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(24,"li"),i.ɵɵtext(25,"Intentar acceder, utilizar y/o manipular los datos de BELENDER terceros proveedores y otros usuarios."),i.ɵɵelementEnd(),i.ɵɵelementStart(26,"li"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(28,"li"),i.ɵɵ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."),i.ɵɵelementEnd()(),i.ɵɵelementStart(30,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(32,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(34,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(36,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(38,"h2"),i.ɵɵtext(39,"3.- Propiedad Intelectual e Industrial"),i.ɵɵelementEnd(),i.ɵɵelementStart(40,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(42,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(44,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(46,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(48,"h2"),i.ɵɵtext(49,"4.- Responsabilidad y Garantías"),i.ɵɵelementEnd(),i.ɵɵelementStart(50,"p"),i.ɵɵ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:"),i.ɵɵelementEnd(),i.ɵɵelementStart(52,"ul")(53,"li"),i.ɵɵtext(54,"La continuidad y disponibilidad de los Contenidos y Servicios."),i.ɵɵelementEnd(),i.ɵɵelementStart(55,"li"),i.ɵɵtext(56,"La ausencia de errores en dichos Contenidos ni la corrección de cualquier defecto que pudiera ocurrir."),i.ɵɵelementEnd(),i.ɵɵelementStart(57,"li"),i.ɵɵtext(58,"La ausencia de virus y/o demás componentes dañinos."),i.ɵɵelementEnd(),i.ɵɵelementStart(59,"li"),i.ɵɵtext(60,"Los daños o perjuicios que cause cualquier persona que vulnere los sistemas de seguridad de BELENDER."),i.ɵɵelementEnd(),i.ɵɵelementStart(61,"li"),i.ɵɵ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."),i.ɵɵelementEnd()(),i.ɵɵelementStart(63,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(65,"h2"),i.ɵɵtext(66,"5.- Duración y modificación"),i.ɵɵelementEnd(),i.ɵɵelementStart(67,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(69,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(71,"p"),i.ɵɵ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."),i.ɵɵelementEnd()()),2&e&&(i.ɵɵadvance(10),i.ɵɵ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 c(e,t){if(1&e&&(i.ɵɵelementContainerStart(0),i.ɵɵelement(1,"div",8),i.ɵɵelementContainerEnd()),2&e){const e=i.ɵɵnextContext(2);i.ɵɵadvance(1),i.ɵɵproperty("innerHTML",e.legal,i.ɵɵsanitizeHtml)}}function d(e,t){1&e&&(i.ɵɵelementStart(0,"div",9),i.ɵɵtext(1," Cargando aviso legal "),i.ɵɵelementEnd())}function u(e,t){if(1&e&&(i.ɵɵelementContainerStart(0),i.ɵɵelementStart(1,"mat-dialog-content",1)(2,"div",2),i.ɵɵtemplate(3,l,73,1,"div",3),i.ɵɵtemplate(4,c,2,1,"ng-container",0),i.ɵɵtemplate(5,d,2,0,"div",4),i.ɵɵelementEnd()(),i.ɵɵelementStart(6,"mat-dialog-actions",5)(7,"button",6),i.ɵɵtext(8,"Cerrar"),i.ɵɵelementEnd()(),i.ɵɵelementContainerEnd()),2&e){const e=i.ɵɵnextContext();i.ɵɵadvance(3),i.ɵɵproperty("ngIf",!e.legal&&!e.loading),i.ɵɵadvance(1),i.ɵɵproperty("ngIf",e.legal&&!e.loading),i.ɵɵadvance(1),i.ɵɵproperty("ngIf",e.loading),i.ɵɵadvance(2),i.ɵɵstyleProp("border-radius",e.customizationData.styles.btnRound+"px")}}let h=(()=>{class e{constructor(e){this.customizationStoreService=e,this.loading=!1}ngOnInit(){this.customizationData$=this.customizationStoreService.customizationData$.subscribe((e=>{e&&Object.keys(e).length>0&&(this.customizationData=e,this.setCustomization(this.customizationData))}))}setCustomization(e){this.loading=!0,e&&e.policy&&(this.legal=e.policy),this.loading=!1}}return e.ɵfac=function(t){return new(t||e)(i.ɵɵdirectiveInject(r.r))},e.ɵcmp=i.ɵɵ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 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"],[1,"w-full","max-w-xl"],[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&&i.ɵɵtemplate(0,u,9,5,"ng-container",0),2&e&&i.ɵɵproperty("ngIf",t.customizationData)},dependencies:[s.O5,o.lW,a.ZT,a.xY,a.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,{$:()=>l});var i=n(4650),r=n(8460),s=n(9101),o=n(5412),a=n(9186);let l=(()=>{class e{constructor(e){this.customizationStoreService=e,this.loading=!0,this.customizationData$=this.customizationStoreService.customizationData$.subscribe((e=>{this.customizationData=e,Object.keys(e).length>0&&this.setCustomization(this.customizationData)}))}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:38,vars:21,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"],["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)(34,"button",11),i.ɵɵtext(35,"Cancelar"),i.ɵɵelementEnd(),i.ɵɵelementStart(36,"button",12),i.ɵɵtext(37,"Aceptar"),i.ɵɵelementEnd()()),2&e&&(i.ɵɵadvance(9),i.ɵɵproperty("src",i.ɵɵpipeBind1(10,13,"img/illustrations/extranjeros.png"),i.ɵɵsanitizeUrl),i.ɵɵadvance(9),i.ɵɵproperty("src",i.ɵɵpipeBind1(19,15,"img/illustrations/residencia.png"),i.ɵɵsanitizeUrl),i.ɵɵadvance(9),i.ɵɵproperty("src",i.ɵɵpipeBind1(28,17,"img/illustrations/ciudadano.png"),i.ɵɵsanitizeUrl),i.ɵɵadvance(2),i.ɵɵproperty("src",i.ɵɵpipeBind1(30,19,"img/illustrations/ciudadano2.png"),i.ɵɵsanitizeUrl),i.ɵɵadvance(5),i.ɵɵstyleProp("border-radius",t.customizationData.styles.btnRound+"px"),i.ɵɵadvance(2),i.ɵɵstyleProp("color",t.customizationData.styles.colors.btnText)("background",t.customizationData.styles.colors.btnBg)("border-radius",t.customizationData.styles.btnRound+"px"),i.ɵɵproperty("mat-dialog-close",!0))},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:()=>c});var i=n(5412),r=n(4650),s=n(8460),o=n(6895),a=n(9101);function l(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.customizationData.styles.btnRound+"px"),r.ɵɵadvance(2),r.ɵɵstyleProp("color",e.customizationData.styles.colors.btnText)("background",e.customizationData.styles.colors.btnBg)("border-radius",e.customizationData.styles.btnRound+"px"),r.ɵɵproperty("mat-dialog-close",!0)}}let c=(()=>{class e{constructor(e,t){this.customizationStoreService=e,this.data=t,this.loading=!0,this.customizationData$=this.customizationStoreService.customizationData$.subscribe((e=>{this.customizationData=e,Object.keys(e).length>0&&this.setCustomization(this.customizationData)}))}setCustomization(e){this.loading=!0,this.flowName=this.getParsedFlowName(this.data.flow),console.warn(e,this.flowName),this.terms_and_conditions=e[this.flowName]&&e[this.flowName].terms_and_conditions?e[this.flowName].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 el flujo <b>${this.flowName}</b></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.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,l,5,9,"ng-container",6),r.ɵɵelementEnd()),2&e&&(r.ɵɵadvance(34),r.ɵɵproperty("ngIf",t.customizationData))},dependencies:[o.O5,a.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:()=>u});var i=n(5412),r=n(4650),s=n(8460),o=n(1572),a=n(6895),l=n(9101);function c(e,t){1&e&&(r.ɵɵelementStart(0,"div",7),r.ɵɵelement(1,"mat-progress-spinner",8),r.ɵɵelementStart(2,"p",9),r.ɵɵtext(3,"Cargando términos.."),r.ɵɵelementEnd()())}function d(e,t){if(1&e&&(r.ɵɵelementContainerStart(0),r.ɵɵelementStart(1,"button",10),r.ɵɵtext(2,"Cancelar"),r.ɵɵelementEnd(),r.ɵɵelementStart(3,"button",11),r.ɵɵtext(4,"Aceptar"),r.ɵɵelementEnd(),r.ɵɵelementContainerEnd()),2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(1),r.ɵɵstyleProp("border-radius",(null==e.customizationData||null==e.customizationData.styles?null:e.customizationData.styles.btnRound)+"px"),r.ɵɵadvance(2),r.ɵɵstyleProp("color",null==e.customizationData||null==e.customizationData.styles||null==e.customizationData.styles.colors?null:e.customizationData.styles.colors.btnText)("background",null==e.customizationData||null==e.customizationData.styles||null==e.customizationData.styles.colors?null:e.customizationData.styles.colors.btnBg)("border-radius",(null==e.customizationData||null==e.customizationData.styles?null:e.customizationData.styles.btnRound)+"px"),r.ɵɵproperty("mat-dialog-close",!0)}}let u=(()=>{class e{constructor(e,t){this.customizationStoreService=e,this.data=t,this.loading=!0,this.customizationData$=this.customizationStoreService.customizationData$.subscribe((e=>{console.warn(e),this.customizationData=e,Object.keys(e).length>0&&this.setCustomization(this.customizationData)}))}setCustomization(e){this.loading=!0,this.flowName=this.getParsedFlowName(this.data.flow),console.warn(e,this.flowName),this.terms_and_conditions=e[this.flowName]&&e[this.flowName].terms_and_conditions?e[this.flowName].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 el flujo <b>${this.flowName}</b></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";case"certificate":return"ClientCertificate";default:return e}}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵdirectiveInject(s.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"],[1,"max-w-xl","overflow-y-auto",3,"innerHTML"],["align","end"],[4,"ngIf"],[1,"flex","flex-col","p-10","gap-2","items-center"],["diameter","30","mode","indeterminate","color","primary"],[1,"mt-6","text-center","text-slate-800"],["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,c,4,0,"div",3),r.ɵɵelement(4,"div",4),r.ɵɵelementEnd()()(),r.ɵɵelementStart(5,"mat-dialog-actions",5),r.ɵɵtemplate(6,d,5,9,"ng-container",6),r.ɵɵelementEnd()),2&e&&(r.ɵɵadvance(3),r.ɵɵproperty("ngIf",t.loading),r.ɵɵadvance(1),r.ɵɵproperty("innerHTML",t.terms_and_conditions,r.ɵɵsanitizeHtml),r.ɵɵadvance(2),r.ɵɵproperty("ngIf",t.customizationData))},dependencies:[o.Ou,a.O5,l.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})()},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(1481),r=n(4650),s=n(3612);n(2340).N.production&&(0,r.enableProdMode)(),i.platformBrowser().bootstrapModule(s.b9).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:()=>d});var i=n(6197),r=n(1135),s=n(2340),o=n(4650),a=n(5089),l=n(529),c=n(6554);let d=(()=>{class e{constructor(e,t,n){this.utils=e,this.http=t,this.localFetch=n,this.db=(0,i.N8)(),this._custommization=new r.X(null)}bindCustomizationFromFirebase(e){const t=(0,i.iH)(this.db,`customization/${e}`);(0,i.jM)(t,(e=>{const t=e.val();this._custommization.next(t)}))}getCustomization(e){return new Promise(((t,n)=>{this.http.get(s.N.baseUrl+"/users/"+e+"/customization").subscribe((e=>{e?t(e):n(e)}),(e=>{n(e)}))}))}subscribeCustomization(){return this._custommization.asObservable()}saveCustomization(e,t,n){const r=(0,i.N8)();return(0,i.t8)((0,i.iH)(r,"customization/"+e),t),new Promise(((n,i)=>{this.localFetch.postFetch(s.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)(o.ɵɵinject(a.F),o.ɵɵinject(l.eN),o.ɵɵinject(c.r))},e.ɵprov=o.ɵɵ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.customizationData=new i.X({}),this.customizationData$=this.customizationData.asObservable()}setCustomizationDataValue(e){this.customizationData.next(e)}}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:()=>h});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);let h=(()=>{class e{constructor(e,t){this.snackBar=e,this.dialog=t,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){r().fire({title:e,text:t||"",icon:n||"info",showCancelButton:!!i,confirmButtonText:i&&i.okButtonLabel?i.okButtonLabel:"OK",cancelButtonText:i&&i.cancelButtonLabel?i.cancelButtonLabel:""}).then((e=>{e.value?i&&i.okAction&&i.okAction():e.dismiss===r().DismissReason.cancel&&i&&i.cancelAction&&i.cancelAction()}))}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))},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})()}},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!==k&&(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(k,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(I,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(k,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!=I)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",k="unknown",I="microTask",E="macroTask",T="eventTask",P={},O={symbol:s,currentZoneFrame:()=>D,onUnhandledError:R,microtaskDrainDone:R,scheduleMicroTask:v,showUncaughtError:()=>!a[s("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:R,patchMethod:()=>R,bindArguments:()=>[],patchThen:()=>R,patchMacroTask:()=>R,patchEventPrototype:()=>R,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>R,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>R,wrapWithCurrentZone:()=>R,filterProperties:()=>[],attachOriginToPatched:()=>R,_redefineProperty:()=>R,patchCallbacks:()=>R,nativeScheduleMicroTask:_};let D={parent:null,zone:new a(null,null)},L=null,A=0;function R(){}i("Zone","Zone"),e.Zone=a}(typeof window<"u"&&window||typeof self<"u"&&self||global);
638
+ return ii.isValid=function(){return this._isValid},ii.abs=function(){var e=this._data;return this._milliseconds=In(this._milliseconds),this._days=In(this._days),this._months=In(this._months),e.milliseconds=In(e.milliseconds),e.seconds=In(e.seconds),e.minutes=In(e.minutes),e.hours=In(e.hours),e.months=In(e.months),e.years=In(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=Rn,ii.asHours=Nn,ii.asDays=jn,ii.asWeeks=Fn,ii.asMonths=Yn,ii.asQuarters=qn,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=Jn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(s=Object.assign({},Jn,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,Xn.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,N("X",0,0,"unix"),N("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=It,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 It(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 kn(e,t,n,"weekdays")},r.parseZone=function(){return It.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 kn(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 kn(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!==Jn[e]&&(void 0===t?Jn[e]:(Jn[e]=t,"s"===e&&(Jn.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),k=n(5895),I=n(6257),E=n(1948),T=n(4246),P=n(9299),O=n(6e3),D=n(5861),L=n(7582),A=n(9549),R=n(9933),N=n(5762),j=n(8259),F=n(2340),Y=n(1363),q=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 J=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,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,J,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,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,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(k.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(k.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",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(k.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 ke=(()=>{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 Ie(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)("texts",null==e.data.Certificado?null:e.data.Certificado.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.Certificado?null:e.data.Certificado.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.Certificado?null:e.data.Certificado.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.Certificado?null:e.data.Certificado.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.Certificado?null:e.data.Certificado.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.Certificado?null:e.data.Certificado.texts)}}function Re(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.Certificado?null:e.data.Certificado.texts)("data",e.data)}}function Ne(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,4,"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,Re,1,2,"belender-no-service-step",16),V.ɵɵtemplate(9,Ne,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 Ye(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 qe(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,Ie,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,Ye,4,3,"div",5),V.ɵɵtemplate(6,qe,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}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 N.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 N.l,this.loading=!1,this.solicitud.status_code="waiting_password"}),2e3)}requestOTP(e){this.loading="Enviando información..",setTimeout((()=>{this.solicitud=new N.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(q.L,{panelClass:"fullscreen-dialog",data:{flow:"presencial"}})}gotoTermsAndConditionsCertificate(){this.dialog.open(Y.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(k.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","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","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,ke],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,R.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,k.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,I.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),k=n(6257),I=n(1948),E=n(4246),T=n(7489),P=n(6981),O=n(3848),D=n(1129),L=n(9476),A=n(9299),R=n(6e3),N=n(5861),j=n(7582),F=n(9549),Y=n(9933),q=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 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.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}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.ɵɵ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,J,2,1,"span",5),B.ɵɵtemplate(3,X,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,N.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,N.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 ke=(()=>{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 Ie=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(Ie.U))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],inputs:{data:"data",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})(),Re=(()=>{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(Ie.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 Ne=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 Ye(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 qe(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",8),B.ɵɵtemplate(1,Ye,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(Ie.U),B.ɵɵdirectiveInject(Ne.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,qe,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",19),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",20),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.Manual?e.data.Manual.texts:e.data.ClavePIN.texts)("data",e.data)}}function We(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-form-step",21),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.Manual?e.data.Manual.texts:e.data.ClavePIN.texts)("userId",e.userId)("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",21),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.Manual?e.data.Manual.texts:e.data.ClavePIN.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",22),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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.texts)}}function Ze(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-otp-aeat-step",22),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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.texts)}}function Ke(e,t){if(1&e&&B.ɵɵelement(0,"belender-success-step",23),2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("data",e.data)("texts",e.data.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.texts)}}function Qe(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-duplicated-request-step",24),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 Je(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-fail-step",25),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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.texts)}}function Xe(e,t){if(1&e){const e=B.ɵɵgetCurrentView();B.ɵɵelementStart(0,"belender-abandoned-step",26),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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.texts)("solicitud",e.solicitud)}}function et(e,t){if(1&e&&B.ɵɵelement(0,"belender-no-service-step",27),2&e){const e=B.ɵɵnextContext(3);B.ɵɵproperty("texts",e.data.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.texts)("data",e.data)}}function tt(e,t){if(1&e&&(B.ɵɵelementStart(0,"div",28)(1,"div",29)(2,"h1",30),B.ɵɵtext(3,"No existe la solicitud"),B.ɵɵelementEnd()(),B.ɵɵelementStart(4,"div",31),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,5,"belender-form-step",11),B.ɵɵtemplate(4,$e,1,5,"belender-manual-form-step",11),B.ɵɵtemplate(5,Ge,1,4,"belender-otp-ss-step",12),B.ɵɵtemplate(6,Ze,1,4,"belender-otp-aeat-step",12),B.ɵɵtemplate(7,Ke,1,2,"belender-success-step",13),B.ɵɵtemplate(8,Qe,1,2,"belender-duplicated-request-step",14),B.ɵɵtemplate(9,Je,1,3,"belender-fail-step",15),B.ɵɵtemplate(10,Xe,1,3,"belender-abandoned-step",16),B.ɵɵtemplate(11,et,1,2,"belender-no-service-step",17),B.ɵɵtemplate(12,tt,6,2,"div",18),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",32),B.ɵɵelement(1,"belender-spinner",33),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",34)(1,"div",28)(2,"div",35),B.ɵɵtext(3,"Error!"),B.ɵɵelementEnd(),B.ɵɵelement(4,"div",36),B.ɵɵelementEnd(),B.ɵɵelementStart(5,"div",37)(6,"button",38),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",39),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.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,N.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 q.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"},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","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","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,ke,Te,Oe,De,Le,Ae,Re,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,Y.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,R.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,k.T5,I.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),k=n(6257),I=n(1948),E=n(4246),T=n(7489),P=n(6981),O=n(3848),D=n(1129),L=n(9476),A=n(9299),R=n(6e3),N=n(5861),j=n(7582),F=n(9549),Y=n(9933),q=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 J(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 X(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,N.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,J,1,5,"div",2),B.ɵɵtemplate(3,X,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,N.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 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.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 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.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,ke,3,6,"div",4),B.ɵɵtemplate(6,Ie,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({}),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(Te.U))},e.ɵcmp=B.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],inputs:{data:"data",solicitud:"solicitud",flow:"flow",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 Re=n(5145);let Ne=(()=>{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="":Re.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})(),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.nr=new B.EventEmitter(null)}ngOnInit(){}newRequest(){this.nr.emit(!0)}gotoRequest(){location.assign(this.currentRequest.widget_url_boxed)}getStatus(){let e=Re.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 qe(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.Manual?e.data.Manual.texts:e.data.ClavePIN.texts)("userId",e.userId)("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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.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.ClavePin?e.data.ClavePin.texts:e.data.ClavePIN.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,5,"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 Je(e,t){1&e&&B.ɵɵelement(0,"belender-disabled-url")}function Xe(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,qe,2,1,"div",4),B.ɵɵtemplate(3,Qe,11,10,"ng-container",1),B.ɵɵtemplate(4,Je,1,0,"belender-disabled-url",1),B.ɵɵtemplate(5,Xe,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.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,N.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 q.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"},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","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","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,Ne,je,Fe,Ye],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,Y.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,R.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,k.T5,I.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 k=n(6830),I=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)(I.ɵɵinject(E.F),I.ɵɵinject(T.eN),I.ɵɵinject(P.r))},e.ɵprov=I.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var D=n(5206),L=n(8460),A=n(9045),R=n(5412),N=n(4302),j=n(3046),F=n(9112),Y=n(9382),q=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&&I.ɵɵelement(0,"widget-documents",6),2&e){const e=I.ɵɵnextContext(2);I.ɵɵproperty("userId",e.userId)("packId",e.packId)("requestID",e.requestID)}}function G(e,t){if(1&e&&(I.ɵɵelementStart(0,"div",2),I.ɵɵelement(1,"div",3)(2,"div",4),I.ɵɵpipe(3,"safeHtml"),I.ɵɵtemplate(4,$,1,3,"widget-documents",5),I.ɵɵelementEnd()),2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(1),I.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size",e.texts.form.titleSize+"px"),I.ɵɵproperty("innerHTML",e.texts.success.title,I.ɵɵsanitizeHtml),I.ɵɵadvance(1),I.ɵɵstyleProp("color",e.data.styles.colors.text),I.ɵɵproperty("innerHTML",I.ɵɵpipeBind1(3,9,e.texts.success.description||""),I.ɵɵsanitizeHtml),I.ɵɵadvance(2),I.ɵɵproperty("ngIf",e.showDocuments)}}function Z(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"div",7)(1,"button",8),I.ɵɵlistener("click",(function(){I.ɵɵrestoreView(e);const t=I.ɵɵnextContext();return I.ɵɵresetView(t.gotoRedirect())})),I.ɵɵtext(2),I.ɵɵelementEnd()()}if(2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(1),I.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px"),I.ɵɵadvance(1),I.ɵɵtextInterpolate1(" ",e.data.ClavePin.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.ChaveMovel&&this.data.ChaveMovel.enableUrlCallBack&&this.data.ChaveMovel.automaticRedirectCallBack&&this.data.ChaveMovel.callBackUrl?setTimeout((()=>{location.assign(this.data.ChaveMovel.callBackUrl)}),2e3):this.data.ChaveMovel.showDocumentsOnSuccess&&(this.showDocuments=!0)}save(){}gotoRedirect(){this.data.ClavePin.enableUrlCallBack&&this.data.ClavePin.callBackUrl&&location.assign(this.data.ClavePin.callBackUrl)}}return e.ɵfac=function(t){return new(t||e)(I.ɵɵdirectiveInject(o.FormBuilder),I.ɵɵdirectiveInject(E.F),I.ɵɵdirectiveInject(z.M),I.ɵɵdirectiveInject(B.U),I.ɵɵdirectiveInject(I.ChangeDetectorRef))},e.ɵcmp=I.ɵɵdefineComponent({type:e,selectors:[["belender-success-step"]],inputs:{data:"data",texts:"texts",packId:"packId",requestID:"requestID",userId:"userId"},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&&(I.ɵɵtemplate(0,G,5,11,"div",0),I.ɵɵtemplate(1,Z,3,7,"div",1)),2&e&&(I.ɵɵproperty("ngIf",!t.data.config.infiniteLoopInCompleted),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",t.data.ClavePin.enableUrlCallBack&&!t.data.SMS.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=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"div",5)(1,"button",6),I.ɵɵlistener("click",(function(){I.ɵɵrestoreView(e);const t=I.ɵɵnextContext();return I.ɵɵresetView(t.retry())})),I.ɵɵtext(2,"Intentarlo nuevamente"),I.ɵɵelementEnd()()}if(2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(1),I.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}function J(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"div",5)(1,"button",7),I.ɵɵlistener("click",(function(){I.ɵɵrestoreView(e);const t=I.ɵɵnextContext();return I.ɵɵresetView(t.newRequest())})),I.ɵɵtext(2,"Crear Nueva Solicitud"),I.ɵɵelementEnd()()}if(2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(1),I.ɵɵstyleProp("color",e.data.styles.colors.btnText)("background",e.data.styles.colors.btnBg)("border-radius",e.data.styles.btnRound+"px")}}let X=(()=>{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 I.EventEmitter(null),this.newR=new I.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)(I.ɵɵdirectiveInject(o.UntypedFormBuilder),I.ɵɵdirectiveInject(E.F),I.ɵɵdirectiveInject(z.M),I.ɵɵdirectiveInject(l.o),I.ɵɵdirectiveInject(h.T))},e.ɵcmp=I.ɵɵ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&&(I.ɵɵelementStart(0,"div",0)(1,"div",1),I.ɵɵelement(2,"div",2)(3,"div",3),I.ɵɵpipe(4,"safeHtml"),I.ɵɵelementEnd(),I.ɵɵtemplate(5,Q,3,6,"div",4),I.ɵɵtemplate(6,J,3,6,"div",4),I.ɵɵelementEnd()),2&e&&(I.ɵɵadvance(2),I.ɵɵproperty("innerHTML",t.texts.fail.title,I.ɵɵsanitizeHtml),I.ɵɵadvance(1),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵproperty("innerHTML",I.ɵɵpipeBind1(4,6,t.texts.fail.description),I.ɵɵsanitizeHtml),I.ɵɵadvance(2),I.ɵɵproperty("ngIf",t.solicitud&&"failed_with_retry"==t.solicitud.status_code),I.ɵɵadvance(1),I.ɵɵ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&&(I.ɵɵelementStart(0,"mat-error"),I.ɵɵtext(1," Deve introduzir uma Cartão de Cidadão ou NIF válido! "),I.ɵɵelementEnd())}function le(e,t){1&e&&(I.ɵɵelementStart(0,"mat-error"),I.ɵɵtext(1," Deve introduzir um número de telefone válido de 9 dígitos! "),I.ɵɵelementEnd())}function ce(e,t){1&e&&(I.ɵɵelementStart(0,"mat-error"),I.ɵɵtext(1," O número de telefone é obrigatório! "),I.ɵɵelementEnd())}function de(e,t){1&e&&(I.ɵɵelementStart(0,"mat-error"),I.ɵɵtext(1," Deve introduzir uma Palavra Passe válida! "),I.ɵɵelementEnd())}function ue(e,t){if(1&e&&(I.ɵɵelementStart(0,"div",18)(1,"mat-form-field",6)(2,"mat-label"),I.ɵɵtext(3,"Email"),I.ɵɵelementEnd(),I.ɵɵelement(4,"input",19),I.ɵɵelementEnd()()),2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(1),I.ɵɵclassMapInterpolate1("",e.disabledInputs.email?"disabled-input":""," w-full flex-1 belender-form-field"),I.ɵɵadvance(3),I.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.email?-1:1)}}function he(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"div",20)(1,"belender-checkbox",21,22),I.ɵɵlistener("changeCheckbox",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext();return I.ɵɵresetView(n.setTerms(t))})),I.ɵɵelementStart(3,"belender-terms-and-policy-links",23),I.ɵɵlistener("goToTerms",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext();return I.ɵɵresetView(n.gotoTermsAndConditions(t))})),I.ɵɵelementEnd()()()}if(2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(1),I.ɵɵproperty("color",e.data.styles.colors.title),I.ɵɵadvance(2),I.ɵɵproperty("userId",e.userId)("showPolicyLink",null==e.data?null:e.data.config.showPolicyLink)("firstSentence",null==e.data.ChaveMovel||null==e.data.ChaveMovel.texts||null==e.data.ChaveMovel.texts.form?null:e.data.ChaveMovel.texts.form.firstSentence)("secondSentence",null==e.data.ChaveMovel||null==e.data.ChaveMovel.texts||null==e.data.ChaveMovel.texts.form?null:e.data.ChaveMovel.texts.form.secondSentence)("thirdSentence",null==e.data.ChaveMovel||null==e.data.ChaveMovel.texts||null==e.data.ChaveMovel.texts.form?null:e.data.ChaveMovel.texts.form.thirdSentence)("policyActionText",null==e.data.ChaveMovel||null==e.data.ChaveMovel.texts||null==e.data.ChaveMovel.texts.form?null:e.data.ChaveMovel.texts.form.policyActionText)("termsActionText",null==e.data.ChaveMovel||null==e.data.ChaveMovel.texts||null==e.data.ChaveMovel.texts.form?null:e.data.ChaveMovel.texts.form.termsActionText)("customTerms",e.data.ChaveMovel.customTerms)}}function pe(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"div",20)(1,"belender-checkbox",24,25),I.ɵɵlistener("changeCheckbox",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext();return I.ɵɵresetView(n.setAssignment(t))})),I.ɵɵelement(3,"div",26),I.ɵɵelementEnd()()}if(2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(1),I.ɵɵproperty("color",e.data.styles.colors.title),I.ɵɵadvance(2),I.ɵɵproperty("innerHTML",null==e.data?null:e.data.config.dataAssignmentText,I.ɵɵsanitizeHtml)}}function me(e,t){1&e&&(I.ɵɵelementStart(0,"div",27),I.ɵɵelement(1,"mat-icon",28),I.ɵɵtext(2," Deve ler os termos e condições para continuar. "),I.ɵɵ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 I.EventEmitter(null),this.esDNI=new I.EventEmitter(null),this.goTerms=new I.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)(I.ɵɵdirectiveInject(o.UntypedFormBuilder),I.ɵɵdirectiveInject(E.F),I.ɵɵdirectiveInject(I.ChangeDetectorRef),I.ɵɵdirectiveInject(p.t),I.ɵɵdirectiveInject(R.uw))},e.ɵcmp=I.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],viewQuery:function(e,t){if(1&e&&(I.ɵɵviewQuery(se,5),I.ɵɵviewQuery(oe,5)),2&e){let e;I.ɵɵqueryRefresh(e=I.ɵɵloadQuery())&&(t.checkComponent=e.first),I.ɵɵqueryRefresh(e=I.ɵɵloadQuery())&&(t.assignmentCheckComponent=e.first)}},inputs:{userId:"userId",data:"data",texts:"texts",solicitud:"solicitud",requestIDFromURL:"requestIDFromURL"},outputs:{next:"nextStep",esDNI:"isDni",goTerms:"goToTerms"},features:[I.ɵɵProvidersFeature([{provide:u.sG,useValue:ge},{provide:I.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&&(I.ɵɵelementStart(0,"form",0)(1,"div",1),I.ɵɵelement(2,"div",2)(3,"div",3),I.ɵɵpipe(4,"safeHtml"),I.ɵɵelementEnd(),I.ɵɵelementStart(5,"div",4)(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),I.ɵɵtext(9,"Cartão de Cidadão ou NIF"),I.ɵɵelementEnd(),I.ɵɵelement(10,"input",7),I.ɵɵtemplate(11,ae,2,0,"mat-error",8),I.ɵɵelementEnd(),I.ɵɵelementStart(12,"mat-form-field",6)(13,"mat-label"),I.ɵɵtext(14,"Telefone (sem prefixo)"),I.ɵɵelementEnd(),I.ɵɵelement(15,"input",9),I.ɵɵtemplate(16,le,2,0,"mat-error",8),I.ɵɵtemplate(17,ce,2,0,"mat-error",8),I.ɵɵelementEnd(),I.ɵɵelementStart(18,"div",10)(19,"mat-form-field",11)(20,"mat-label"),I.ɵɵtext(21,"Palavra Passe"),I.ɵɵelementEnd(),I.ɵɵelement(22,"input",12),I.ɵɵtemplate(23,de,2,0,"mat-error",8),I.ɵɵelementEnd()(),I.ɵɵtemplate(24,ue,5,4,"div",13),I.ɵɵelementEnd()(),I.ɵɵtemplate(25,he,4,9,"div",14),I.ɵɵtemplate(26,pe,4,2,"div",14),I.ɵɵtemplate(27,me,3,0,"div",15),I.ɵɵelementStart(28,"div",16)(29,"button",17),I.ɵɵlistener("click",(function(){return t.nextStep()})),I.ɵɵtext(30," Continuar "),I.ɵɵelementEnd()()()),2&e&&(I.ɵɵproperty("formGroup",t.form),I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),I.ɵɵproperty("innerHTML",t.texts.form.title,I.ɵɵsanitizeHtml),I.ɵɵadvance(1),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵproperty("innerHTML",I.ɵɵpipeBind1(4,33,t.texts.form.description||""),I.ɵɵsanitizeHtml),I.ɵɵadvance(2),I.ɵɵproperty("ngClass",I.ɵɵpureFunction1(35,fe,t.data.config.dontShowDataInTerms&&t.solicitud&&t.solicitud.status_code&&"terms_and_conditions"===t.solicitud.status_code)),I.ɵɵadvance(2),I.ɵɵclassMapInterpolate1("",t.disabledInputs.dni?"disabled-input":""," w-full flex-1 belender-form-field"),I.ɵɵadvance(3),I.ɵɵpropertyInterpolate("tabindex",t.disabledInputs.dni?-1:1),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",!t.isNie&&!t.isDni),I.ɵɵadvance(1),I.ɵɵclassMapInterpolate1("",t.disabledInputs.phone?"disabled-input":""," w-full flex-1 belender-form-field"),I.ɵɵadvance(3),I.ɵɵpropertyInterpolate("tabindex",t.disabledInputs.phone?-1:1),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",t.form.get("person_phone").hasError("minlength")||t.form.get("person_phone").hasError("maxlength")),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",t.form.get("person_phone").hasError("required")),I.ɵɵadvance(6),I.ɵɵproperty("ngIf",t.form.get("palavra_passe").hasError("required")),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",null==t.data||null==t.data.config?null:t.data.config.followMail),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",!t.data.config.hideCheckLegal),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",null==t.data?null:t.data.config.dataAssignmentCheck),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",t.data.config.forceChecks&&!t.termsReaded),I.ɵɵadvance(2),I.ɵɵ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"),I.ɵɵ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,q.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=I.ɵɵ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&&(I.ɵɵelementStart(0,"form",0)(1,"div",1),I.ɵɵelement(2,"div",2)(3,"div",3),I.ɵɵpipe(4,"safeHtml"),I.ɵɵelementEnd()()),2&e&&(I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),I.ɵɵproperty("innerHTML",t.texts.noService.title,I.ɵɵsanitizeHtml),I.ɵɵadvance(1),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵproperty("innerHTML",I.ɵɵpipeBind1(4,8,t.texts.noService.description),I.ɵɵ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 I.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)(I.ɵɵdirectiveInject(o.UntypedFormBuilder),I.ɵɵdirectiveInject(E.F),I.ɵɵdirectiveInject(z.M),I.ɵɵdirectiveInject(l.o),I.ɵɵdirectiveInject(h.T))},e.ɵcmp=I.ɵɵ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&&(I.ɵɵelementStart(0,"div",0)(1,"div",1),I.ɵɵelement(2,"div",2)(3,"div",3),I.ɵɵpipe(4,"safeHtml"),I.ɵɵelementStart(5,"div",4),I.ɵɵtext(6),I.ɵɵelementEnd()(),I.ɵɵelementStart(7,"div",5)(8,"button",6),I.ɵɵlistener("click",(function(){return t.retry()})),I.ɵɵtext(9,"Intentarlo nuevamente"),I.ɵɵelementEnd()()()),2&e&&(I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),I.ɵɵproperty("innerHTML",t.texts.abandoned.title,I.ɵɵsanitizeHtml),I.ɵɵadvance(1),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵproperty("innerHTML",I.ɵɵpipeBind1(4,15,t.texts.abandoned.description),I.ɵɵsanitizeHtml),I.ɵɵadvance(3),I.ɵɵtextInterpolate1(" ",t.getTextStatus()," "),I.ɵɵadvance(2),I.ɵɵ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 I.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)(I.ɵɵdirectiveInject(o.UntypedFormBuilder),I.ɵɵdirectiveInject(E.F),I.ɵɵdirectiveInject(z.M),I.ɵɵdirectiveInject(l.o),I.ɵɵdirectiveInject(h.T))},e.ɵcmp=I.ɵɵ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&&(I.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),I.ɵɵtext(3," Solicitud duplicada! "),I.ɵɵelementEnd(),I.ɵɵelementStart(4,"div",3),I.ɵɵtext(5," Ya existe una solicitud para este cliente. "),I.ɵɵelementEnd(),I.ɵɵelementStart(6,"div",4),I.ɵɵtext(7," Estado de la solicitud actual: "),I.ɵɵelementStart(8,"div",5),I.ɵɵtext(9),I.ɵɵelementEnd()()(),I.ɵɵelementStart(10,"div",6)(11,"button",7),I.ɵɵlistener("click",(function(){return t.newRequest()})),I.ɵɵtext(12,"Nueva solicitud"),I.ɵɵelementEnd(),I.ɵɵelementStart(13,"button",8),I.ɵɵlistener("click",(function(){return t.gotoRequest()})),I.ɵɵtext(14,"Ir a la solicitud actual"),I.ɵɵelementEnd()()()),2&e&&(I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵadvance(5),I.ɵɵtextInterpolate1(" ",t.getStatus()," "),I.ɵɵadvance(2),I.ɵɵstyleProp("border-radius",t.data.styles.btnRound+"px"),I.ɵɵadvance(2),I.ɵɵ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=I.ɵɵ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&&(I.ɵɵelementStart(0,"form",0)(1,"div",1),I.ɵɵelement(2,"div",2)(3,"div",3),I.ɵɵpipe(4,"safeHtml"),I.ɵɵelementEnd()()),2&e&&(I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.standby?t.texts.standby.titleSize+"px":"20px"),I.ɵɵproperty("innerHTML",t.texts.standby?t.texts.standby.title:"Solicitud en Stand By",I.ɵɵsanitizeHtml),I.ɵɵadvance(1),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵproperty("innerHTML",t.texts.standby?t.texts.standby.description:I.ɵɵpipeBind1(4,8,"Descripcion del estado Stand By"),I.ɵɵ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 I.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)(I.ɵɵdirectiveInject(o.UntypedFormBuilder),I.ɵɵdirectiveInject(E.F))},e.ɵcmp=I.ɵɵ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&&(I.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),I.ɵɵtext(3," Fecha de vencimiento incorrecta "),I.ɵɵelementEnd(),I.ɵɵelementStart(4,"div",3),I.ɵɵtext(5," Por favor, introduce la fecha de vencimiento del documento "),I.ɵɵelementEnd(),I.ɵɵelementStart(6,"form",4)(7,"mat-form-field",5)(8,"mat-label"),I.ɵɵtext(9,"Fecha de vencimiento del DNI"),I.ɵɵelementEnd(),I.ɵɵelement(10,"input",6),I.ɵɵelementStart(11,"mat-hint"),I.ɵɵtext(12,"DD/MM/YYYY"),I.ɵɵelementEnd()()()(),I.ɵɵelementStart(13,"div",7)(14,"button",8),I.ɵɵlistener("click",(function(){return t.next()})),I.ɵɵtext(15," Enviar "),I.ɵɵelementEnd()()()),2&e&&(I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵadvance(2),I.ɵɵproperty("formGroup",t.form),I.ɵɵadvance(8),I.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),I.ɵɵ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 I.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)(I.ɵɵdirectiveInject(o.UntypedFormBuilder),I.ɵɵdirectiveInject(E.F))},e.ɵcmp=I.ɵɵ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&&(I.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),I.ɵɵtext(3," Código de soporte inválido "),I.ɵɵelementEnd(),I.ɵɵelementStart(4,"div",3),I.ɵɵtext(5," Por favor, introduce el código de soporte "),I.ɵɵelementEnd(),I.ɵɵelementStart(6,"form",4)(7,"mat-form-field",5)(8,"mat-label"),I.ɵɵtext(9,"Número de soporte"),I.ɵɵelementEnd(),I.ɵɵelement(10,"input",6),I.ɵɵelementEnd()()(),I.ɵɵelementStart(11,"div",7)(12,"button",8),I.ɵɵlistener("click",(function(){return t.next()})),I.ɵɵtext(13," Enviar "),I.ɵɵelementEnd()()()),2&e&&(I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵadvance(2),I.ɵɵproperty("formGroup",t.form),I.ɵɵadvance(6),I.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),I.ɵɵ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 ke=function(e){return{mask:e}};let Ie=(()=>{class e{constructor(e,t){this.fb=e,this.utils=t,this.loading=null,this.nextStep=new I.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)(I.ɵɵdirectiveInject(o.UntypedFormBuilder),I.ɵɵdirectiveInject(E.F))},e.ɵcmp=I.ɵɵ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&&(I.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),I.ɵɵtext(3," Fecha de nacimiento incorrecta "),I.ɵɵelementEnd(),I.ɵɵelementStart(4,"div",3),I.ɵɵtext(5," Por favor, introduce la fecha de nacimiento "),I.ɵɵelementEnd(),I.ɵɵelementStart(6,"form",4)(7,"mat-form-field",5)(8,"mat-label"),I.ɵɵtext(9,"Fecha de nacimiento"),I.ɵɵelementEnd(),I.ɵɵelement(10,"input",6),I.ɵɵelementStart(11,"mat-hint"),I.ɵɵtext(12,"DD/MM/YYYY"),I.ɵɵelementEnd()()()(),I.ɵɵelementStart(13,"div",7)(14,"button",8),I.ɵɵlistener("click",(function(){return t.next()})),I.ɵɵtext(15," Enviar "),I.ɵɵelementEnd()()()),2&e&&(I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),I.ɵɵadvance(2),I.ɵɵstyleProp("color",t.data.styles.colors.text),I.ɵɵadvance(2),I.ɵɵproperty("formGroup",t.form),I.ɵɵadvance(4),I.ɵɵproperty("textMask",I.ɵɵpureFunction1(15,ke,t.datemask)),I.ɵɵadvance(4),I.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),I.ɵɵ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&&(I.ɵɵelementStart(0,"div",8),I.ɵɵelement(1,"mat-icon",9),I.ɵɵtext(2),I.ɵɵelementEnd()),2&e){const e=I.ɵɵnextContext(2);I.ɵɵproperty("@fadeInUp",void 0),I.ɵɵadvance(2),I.ɵɵtextInterpolate1(" ",e.warningAlert," ")}}function Oe(e,t){if(1&e&&I.ɵɵelement(0,"belender-widget-logo",10),2&e){const e=I.ɵɵnextContext(2);I.ɵɵproperty("logoUrl",null==e.data.styles?null:e.data.styles.logoUrl)}}function De(e,t){1&e&&(I.ɵɵelementStart(0,"div",11),I.ɵɵelement(1,"mat-progress-spinner",12),I.ɵɵelementEnd()),2&e&&(I.ɵɵadvance(1),I.ɵɵproperty("value",0))}function Le(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-form-step",24,25),I.ɵɵlistener("goToTerms",(function(){I.ɵɵrestoreView(e);const t=I.ɵɵnextContext(3);return I.ɵɵresetView(t.gotoTermsAndConditions())}))("nextStep",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.validateRequest(t))}))("isDni",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.setIsDni(t))})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("userId",e.userId)("requestIDFromURL",e.requestIDFromURL)("texts",e.data.ChaveMovel.texts)("data",e.data)("solicitud",e.solicitud)}}function Ae(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-shared-otp-step",26,27),I.ɵɵlistener("resendOTP",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){I.ɵɵrestoreView(e);const t=I.ɵɵnextContext(3);return I.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.requestOTP(t))})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("otpType","otp_irs"==e.requestStatus?"otpIRS":"otpSSD")("flowType","ChaveMovel")("data",e.data)("solicitud",e.solicitud)("minLength",6)("lastThreeNumbersPhone",e.lastThreeNumbersPhone)("texts",e.data.ChaveMovel.texts)}}function Re(e,t){if(1&e&&I.ɵɵelement(0,"belender-success-step",28),2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("data",e.data)("packId",e.packId)("userId",e.userId)("requestID",e.requestID)("texts",e.data.ChaveMovel.texts)}}function Ne(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-duplicated-request-step",29),I.ɵɵlistener("newRequest",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.newRequest(t))})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("data",e.data)("currentRequest",e.currentRequest)}}function je(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-error-birthday-step",30),I.ɵɵlistener("nextStep",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.setBirthDate(t))})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("data",e.data)("texts",e.data.SMS.texts)}}function Fe(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-error-expiration-step",30),I.ɵɵlistener("nextStep",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.setExpiration(t))})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("data",e.data)("texts",e.data.SMS.texts)}}function Ye(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-error-support-number-step",30),I.ɵɵlistener("nextStep",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.setSupportNumber(t))})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("data",e.data)("texts",e.data.ChaveMovel.texts)}}function qe(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-fail-step",31),I.ɵɵlistener("retryRequest",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.retryRequest(t))}))("newRequest",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.newRequest(t))})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("data",e.data)("solicitud",e.solicitud)("texts",e.data.ChaveMovel.texts)}}function Ve(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-abandoned-step",32),I.ɵɵlistener("retryRequest",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.retryRequest(t))})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("data",e.data)("texts",e.data.ChaveMovel.texts)("solicitud",e.solicitud)}}function He(e,t){if(1&e&&I.ɵɵelement(0,"belender-no-service-step",33),2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("texts",e.data.ChaveMovel.texts)("data",e.data)}}function ze(e,t){if(1&e&&I.ɵɵelement(0,"belender-standby-step",33),2&e){const e=I.ɵɵnextContext(3);I.ɵɵproperty("texts",e.data.ChaveMovel.texts)("data",e.data)}}function Be(e,t){if(1&e&&(I.ɵɵelementStart(0,"div",34)(1,"div",35)(2,"h1",36),I.ɵɵtext(3,"No existe la solicitud"),I.ɵɵelementEnd()(),I.ɵɵelementStart(4,"div",37),I.ɵɵtext(5," No existen solicitudes activas con el código requerido "),I.ɵɵelementEnd()()),2&e){const e=I.ɵɵnextContext(3);I.ɵɵadvance(4),I.ɵɵstyleProp("color",e.data.styles.colors.text)}}function Ue(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"belender-cancel-request",38),I.ɵɵlistener("updateStatusCode",(function(t){I.ɵɵrestoreView(e);const n=I.ɵɵnextContext(3);return I.ɵɵresetView(n.solicitud.status_code=t)})),I.ɵɵelementEnd()}if(2&e){const e=I.ɵɵnextContext(3);I.ɵɵ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&&(I.ɵɵelement(0,"div",39),I.ɵɵpipe(1,"safeHtml")),2&e){const e=I.ɵɵnextContext(3);I.ɵɵstyleProp("color",e.data.styles.colors.text),I.ɵɵproperty("innerHTML",e.data.ChaveMovel?null==e.data.ChaveMovel.texts.form?null:e.data.ChaveMovel.texts.form.aditionalDescription:I.ɵɵpipeBind1(1,3,(null==e.data.ChaveMovel.texts.form?null:e.data.ChaveMovel.texts.form.aditionalDescription)||""),I.ɵɵsanitizeHtml)}}function $e(e,t){if(1&e&&(I.ɵɵelementContainerStart(0),I.ɵɵtemplate(1,Le,2,5,"belender-form-step",13),I.ɵɵtemplate(2,Ae,2,7,"belender-shared-otp-step",14),I.ɵɵtemplate(3,Re,1,5,"belender-success-step",15),I.ɵɵtemplate(4,Ne,1,2,"belender-duplicated-request-step",16),I.ɵɵtemplate(5,je,1,2,"belender-error-birthday-step",17),I.ɵɵtemplate(6,Fe,1,2,"belender-error-expiration-step",17),I.ɵɵtemplate(7,Ye,1,2,"belender-error-support-number-step",17),I.ɵɵtemplate(8,qe,1,3,"belender-fail-step",18),I.ɵɵtemplate(9,Ve,1,3,"belender-abandoned-step",19),I.ɵɵtemplate(10,He,1,2,"belender-no-service-step",20),I.ɵɵtemplate(11,ze,1,2,"belender-standby-step",20),I.ɵɵtemplate(12,Be,6,2,"div",21),I.ɵɵtemplate(13,Ue,1,4,"belender-cancel-request",22),I.ɵɵtemplate(14,We,2,5,"div",23),I.ɵɵelementContainerEnd()),2&e){const e=I.ɵɵnextContext(2);I.ɵɵadvance(1),I.ɵɵproperty("ngIf","form"==e.requestStatus&&!e.loadingRequestData),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","otp_irs"==e.requestStatus||"otp_ssd"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","success"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","duplicated"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","error-birth-date"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","error-expiration-date"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","error-support-number"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","failed"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","abandoned"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","no-service"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","standby"==e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf","created"!=e.step),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",e.showCancelRequest&&e.data.config.cancelRequest),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",null==e.data.ChaveMovel?null:e.data.ChaveMovel.showAditionalDescription)}}function Ge(e,t){1&e&&I.ɵɵelement(0,"belender-disabled-url")}function Ze(e,t){if(1&e){const e=I.ɵɵgetCurrentView();I.ɵɵelementStart(0,"div",40)(1,"div",34)(2,"div",41),I.ɵɵtext(3,"Error!"),I.ɵɵelementEnd(),I.ɵɵelement(4,"div",42),I.ɵɵelementEnd(),I.ɵɵelementStart(5,"div",43)(6,"button",44),I.ɵɵlistener("click",(function(){I.ɵɵrestoreView(e);const t=I.ɵɵnextContext(2);return I.ɵɵresetView(t.error=!1)})),I.ɵɵtext(7," Ingresar manualmente "),I.ɵɵelementEnd()()()}if(2&e){const e=I.ɵɵnextContext(2);I.ɵɵadvance(4),I.ɵɵstyleProp("color",e.data.styles.colors.text),I.ɵɵproperty("innerHTML",e.error,I.ɵɵsanitizeHtml)}}function Ke(e,t){if(1&e&&(I.ɵɵelementStart(0,"div",3)(1,"div"),I.ɵɵtemplate(2,Pe,3,2,"div",4),I.ɵɵtemplate(3,Oe,1,1,"belender-widget-logo",5),I.ɵɵtemplate(4,De,2,1,"div",6),I.ɵɵtemplate(5,$e,15,14,"ng-container",2),I.ɵɵtemplate(6,Ge,1,0,"belender-disabled-url",2),I.ɵɵtemplate(7,Ze,8,3,"div",7),I.ɵɵelementEnd()()),2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(1),I.ɵɵclassMapInterpolate1("h-full w-full relative flex-auto p-0 md:p-3 ",e.data.config.typography,""),I.ɵɵstyleProp("background",e.data.styles.colors.background),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",e.warningAlert&&"success"!=e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",e.getIfShowLogo()),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",e.data.config.infiniteLoopInCompleted&&"loading"===e.requestStatus),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",!e.error&&!e.disableURL),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",!e.error&&e.disableURL),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",!e.loading&&e.error)}}function Qe(e,t){if(1&e&&(I.ɵɵelementStart(0,"div",45),I.ɵɵelement(1,"mat-progress-spinner",46),I.ɵɵelementStart(2,"p",47),I.ɵɵtext(3),I.ɵɵelementEnd()()),2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(3),I.ɵɵtextInterpolate1(" ",e.loading," ")}}function Je(e,t){if(1&e&&(I.ɵɵelementContainerStart(0),I.ɵɵelementStart(1,"div",48),I.ɵɵtext(2),I.ɵɵelementEnd(),I.ɵɵelementContainerEnd()),2&e){const e=I.ɵɵnextContext();I.ɵɵadvance(2),I.ɵɵtextInterpolate1(" TestMode ",e.testMode?"ON":"OFF"," ")}}let Xe=class{constructor(e,t,n,i,r,s,o,a,l,c){this.cd=e,this.Activatedroute=t,this.utils=n,this.chaveMovelService=i,this.notis=r,this.webhooksService=s,this.flowsS=o,this.customizationStoreService=a,this.deviceInfoService=l,this.dialog=c,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,localStorage.getItem("belender-language")&&(this.selectedLanguage=localStorage.getItem("belender-language")),this.customizationData$=this.customizationStoreService.customizationData$.subscribe((e=>{Object.keys(e).length>0&&this.setInitialData(e)}))}ngOnInit(){this.getWindowsScreenOrientation();const e=this;e.setWarningPortals(),this.loading="Obteniendo información de la solicitud",this.checkClientUrl(),this.Activatedroute.params.subscribe({next:e=>{e&&e.idUser?this.userId=e.idUser:this.loading=null,e&&e.packID&&(this.packId=e.packID),this.utils.setLoading(!1)},error:()=>{this.loading=null,this.utils.setLoading(!1)}}),"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()}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)}))}setInitialData(e){e?(this.data=e,this.financiadorID=this.data?.funder_id||"",this.disableURL=this.data?.config?.disableUrlWidget,this.validateRequestIdInUrl(),this.cd.markForCheck()):this.loading=null}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.data.ChaveMovel.showDocumentsOnSuccess&&!this.intervalToAskBack&&this.initIntervalToAskBack()):(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.data.config&&this.data.config.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(k.L,{panelClass:"fullscreen-dialog",data:{flow:"ChaveMovel"}}).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.data.config.infiniteLoopInCompleted)&&this.data.styles?.withLogo}};Xe.ɵfac=function(e){return new(e||Xe)(I.ɵɵdirectiveInject(I.ChangeDetectorRef),I.ɵɵdirectiveInject(m.gz),I.ɵɵdirectiveInject(E.F),I.ɵɵdirectiveInject(O),I.ɵɵdirectiveInject(h.T),I.ɵɵdirectiveInject(c.t),I.ɵɵdirectiveInject(D.s),I.ɵɵdirectiveInject(L.r),I.ɵɵdirectiveInject(A.H),I.ɵɵdirectiveInject(R.uw))},Xe.ɵcmp=I.ɵɵdefineComponent({type:Xe,selectors:[["belender-widget-chave-movel"]],viewQuery:function(e,t){if(1&e&&(I.ɵɵviewQuery(Ee,5),I.ɵɵviewQuery(Te,5),I.ɵɵviewQuery(Ee,5)),2&e){let e;I.ɵɵqueryRefresh(e=I.ɵɵloadQuery())&&(t.formComponent=e.first),I.ɵɵqueryRefresh(e=I.ɵɵloadQuery())&&(t.otpComponent=e.first),I.ɵɵqueryRefresh(e=I.ɵɵloadQuery())&&(t.theDiv=e.first)}},inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud"},features:[I.ɵɵ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","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","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","requestIDFromURL","texts","data","solicitud","goToTerms","nextStep","isDni"],["formStep",""],[3,"otpType","flowType","data","solicitud","minLength","lastThreeNumbersPhone","texts","resendOTP","errorPhone","nextStep"],["otpStep",""],[3,"data","packId","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&&(I.ɵɵtemplate(0,Ke,8,11,"div",0),I.ɵɵtemplate(1,Qe,4,1,"div",1),I.ɵɵtemplate(2,Je,3,1,"ng-container",2)),2&e&&(I.ɵɵproperty("ngIf",t.data&&!t.loading),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",(t.loading||"loading"===t.requestStatus)&&!t.error),I.ɵɵadvance(1),I.ɵɵproperty("ngIf",t.testMode))},dependencies:[i.O5,N.q,j.X,F.y,Y.i,q.Hw,V.lW,H.Ou,K,X,_e,ve,ye,xe,we,Ce,Se,Ie,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.$]}}),Xe=(0,_.gn)([(0,y.c)()],Xe);const et=[{path:":idUser",component:Xe},{path:":idUser/:packID",component:Xe}];let tt=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=I.ɵɵdefineNgModule({type:e}),e.ɵinj=I.ɵɵ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=I.ɵɵdefineNgModule({type:e}),e.ɵinj=I.ɵɵ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:"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:"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),k=n(7392),I=n(4144),E=n(1561),T=n(8739),P=n(1572),O=n(1948),D=n(4385),L=n(6308),A=n(6257),R=n(7155),N=n(266),j=n(1916),F=n(9617),Y=n(6981),q=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,k.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,q.VideoIdModule,V.PersonalModule,H.ClientCertModule,T.TU,R.p0,L.JX,S.p9,k.Ps,w.ot,E.Tx,I.c,x.FormsModule,N.AV,x.ReactiveFormsModule,D.LD,C.vV,p.a,P.Cq,M.FA,_.XK,A.T5,O.Fk,Y.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),k=n(5895),I=n(6257),E=n(1948),T=n(4246),P=n(9299),O=n(6e3),D=n(5861),L=n(7582),A=n(9549),R=n(9933),N=n(5762),j=n(8259),F=n(2340),Y=n(1363),q=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 J(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 X=(()=>{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,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,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(k.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(k.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",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(k.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.presencial?null:e.data.presencial.texts)("solicitud",e.solicitud)}}function ke(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.presencial?null:e.data.presencial.texts)("solicitud",e.solicitud)}}function Ie(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.presencial?null:e.data.presencial.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.presencial?null:e.data.presencial.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.presencial?null:e.data.presencial.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.presencial?null:e.data.presencial.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.presencial?null:e.data.presencial.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.presencial?null:e.data.presencial.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,ke,1,3,"belender-password-step",11),V.ɵɵtemplate(4,Ie,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 Re(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 Ne(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,Re,4,3,"div",5),V.ɵɵtemplate(5,Ne,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 Ye=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}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 N.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 N.l,this.loading=!1,this.solicitud.status_code="waiting_password"}),2e3)}requestOTP(e){this.loading="Enviando información..",setTimeout((()=>{this.solicitud=new N.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(q.L,{panelClass:"fullscreen-dialog",data:{flow:"presencial"}})}gotoTermsAndConditionsCertificate(){this.dialog.open(Y.v,{panelClass:"fullscreen-dialog",data:{flow:"presencial"}})}};Ye.ɵfac=function(e){return new(e||Ye)(V.ɵɵdirectiveInject(V.ChangeDetectorRef),V.ɵɵdirectiveInject(P.gz),V.ɵɵdirectiveInject(H.F),V.ɵɵdirectiveInject(_.M),V.ɵɵdirectiveInject(C.w),V.ɵɵdirectiveInject(k.T),V.ɵɵdirectiveInject(x.t),V.ɵɵdirectiveInject(z.uw))},Ye.ɵcmp=V.ɵɵdefineComponent({type:Ye,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,X,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}"]}),Ye=(0,L.gn)([(0,R.c)()],Ye);const qe=[{path:":idUser",component:Ye},{path:":idUser/:packID",component:Ye}];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(qe),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,k.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,I.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),k=n(7155),I=n(266),E=n(5592),T=n(4246),P=n(8526),O=n(1916),D=n(3006),L=n(1724),A=n(6981),R=n(9391),N=n(7367),j=n(5895),F=n(9617),Y=n(5601),q=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:[Y.M,R.o,N.w,q.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,k.p0,S.JX,m.p9,_.Ps,h.ot,y.Tx,v.c,u.FormsModule,I.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),k=n(5895),I=n(6257),E=n(1948),T=n(4246),P=n(9299),O=n(6e3),D=n(5861),L=n(7582),A=n(9549),R=n(9933),N=n(5762),j=n(8259),F=n(2340),Y=n(6830),q=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&&(q.ɵɵelementStart(0,"span"),q.ɵɵtext(1),q.ɵɵelementEnd()),2&e){const e=q.ɵɵnextContext(2);q.ɵɵadvance(1),q.ɵɵtextInterpolate1("¿No has recibido el código? Solicítalo de nuevo en ",e.secsCount," segundos")}}function Z(e,t){if(1&e&&(q.ɵɵelementStart(0,"span"),q.ɵɵtext(1),q.ɵɵelementEnd()),2&e){const e=q.ɵɵnextContext(2);q.ɵɵadvance(1),q.ɵɵ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&&(q.ɵɵelementStart(0,"span"),q.ɵɵtext(1),q.ɵɵelementEnd()),2&e){const e=q.ɵɵnextContext(2);q.ɵɵadvance(1),q.ɵɵ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 J(e,t){if(1&e&&(q.ɵɵelementContainerStart(0),q.ɵɵelementStart(1,"small",11),q.ɵɵtemplate(2,G,2,1,"span",5),q.ɵɵtemplate(3,Z,2,2,"span",5),q.ɵɵtemplate(4,K,2,1,"span",5),q.ɵɵelementEnd(),q.ɵɵelementContainerEnd()),2&e){const e=q.ɵɵnextContext();q.ɵɵadvance(1),q.ɵɵproperty("ngStyle",q.ɵɵpureFunction3(4,Q,e.data.styles.colors.accentColor,"1px solid "+e.data.styles.colors.accentColor,e.data.styles.colors.accentBgColor)),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",!e.lastNumberPhone),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",e.lastNumberPhone&&!e.data.config.noRetryInBadPhone),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",e.lastNumberPhone&&e.data.config.noRetryInBadPhone)}}function X(e,t){1&e&&(q.ɵɵelementStart(0,"span"),q.ɵɵtext(1," ¿No has recibido el código en tu teléfono? "),q.ɵɵelementEnd())}function ee(e,t){if(1&e&&(q.ɵɵelementStart(0,"span"),q.ɵɵtext(1),q.ɵɵelementEnd()),2&e){const e=q.ɵɵnextContext(2);q.ɵɵadvance(1),q.ɵɵtextInterpolate1(" ¿No has recibido el código en el teléfono acabado en ",e.lastNumberPhone,"? ")}}function te(e,t){1&e&&(q.ɵɵelementStart(0,"span"),q.ɵɵtext(1," ¿No has recibido el código en el teléfono? "),q.ɵɵelementEnd())}const ne=function(e,t){return{color:e,background:t}};function ie(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementContainerStart(0),q.ɵɵelementStart(1,"small",11),q.ɵɵtemplate(2,X,2,0,"span",5),q.ɵɵtemplate(3,ee,2,1,"span",5),q.ɵɵtemplate(4,te,2,0,"span",5),q.ɵɵelementStart(5,"a",12),q.ɵɵlistener("click",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext();return q.ɵɵresetView(t.resendOTP())})),q.ɵɵtext(6,"Reenviar"),q.ɵɵelementEnd()(),q.ɵɵelementContainerEnd()}if(2&e){const e=q.ɵɵnextContext();q.ɵɵadvance(1),q.ɵɵproperty("ngStyle",q.ɵɵpureFunction3(5,Q,e.data.styles.colors.dangerColor,"1px solid "+e.data.styles.colors.dangerColor,e.data.styles.colors.dangerBgColor)),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",!e.lastNumberPhone),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",e.lastNumberPhone&&!e.data.config.noRetryInBadPhone),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",e.data.config.noRetryInBadPhone),q.ɵɵadvance(1),q.ɵɵproperty("ngStyle",q.ɵɵ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 q.EventEmitter(null),this.errPhone=new q.EventEmitter(null),this.resendO=new q.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)(q.ɵɵdirectiveInject(p.UntypedFormBuilder),q.ɵɵdirectiveInject(V.F),q.ɵɵdirectiveInject(_.M),q.ɵɵdirectiveInject(P.gz))},e.ɵcmp=q.ɵɵ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&&(q.ɵɵelementStart(0,"form",0)(1,"div",1)(2,"div",2),q.ɵɵtext(3," Introduce el código recibido por SMS "),q.ɵɵelementEnd(),q.ɵɵelementStart(4,"div",3),q.ɵɵtext(5," Has recibido un SMS procedente de EJEMPLO con un código de 6 dígitos. Por favor, introdúcelo a continuación. "),q.ɵɵelementEnd(),q.ɵɵelementStart(6,"div",4),q.ɵɵtemplate(7,J,5,8,"ng-container",5),q.ɵɵtemplate(8,ie,7,12,"ng-container",5),q.ɵɵelementEnd(),q.ɵɵelementStart(9,"div",6)(10,"mat-form-field",7)(11,"mat-label"),q.ɵɵtext(12," Código OTP "),q.ɵɵelementEnd(),q.ɵɵelementStart(13,"input",8),q.ɵɵlistener("change",(function(e){return t.capturePasteEvent(e)}))("keyup",(function(e){return t.setInputEvent(e)})),q.ɵɵelementEnd()()()(),q.ɵɵelementStart(14,"div",9)(15,"button",10),q.ɵɵlistener("click",(function(){return t.nextStep()})),q.ɵɵtext(16,"Siguiente"),q.ɵɵelementEnd()()()),2&e&&(q.ɵɵproperty("formGroup",t.form),q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size","16px"),q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.text)("font-size","14px"),q.ɵɵadvance(3),q.ɵɵproperty("ngIf",t.secsCount&&t.secsCount>0),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",!t.secsCount||t.secsCount<=0),q.ɵɵadvance(7),q.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),q.ɵɵ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&&(q.ɵɵelementStart(0,"div",1),q.ɵɵelement(1,"div",2)(2,"div",3),q.ɵɵpipe(3,"safeHtml"),q.ɵɵelementEnd()),2&e){const e=q.ɵɵnextContext();q.ɵɵadvance(1),q.ɵɵstyleProp("color",e.data.styles.colors.title)("font-size","16px"),q.ɵɵproperty("innerHTML",e.texts.success.title,q.ɵɵsanitizeHtml),q.ɵɵadvance(1),q.ɵɵstyleProp("color",e.data.styles.colors.text)("font-size","14px"),q.ɵɵproperty("innerHTML",q.ɵɵpipeBind1(3,10,e.texts.success.description||""),q.ɵɵ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)(q.ɵɵdirectiveInject(p.UntypedFormBuilder),q.ɵɵdirectiveInject(V.F),q.ɵɵdirectiveInject(_.M),q.ɵɵdirectiveInject(y.o),q.ɵɵdirectiveInject(k.T))},e.ɵcmp=q.ɵɵ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&&q.ɵɵtemplate(0,oe,4,12,"div",0),2&e&&q.ɵɵ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=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"div",5)(1,"button",6),q.ɵɵlistener("click",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext();return q.ɵɵresetView(t.retry())})),q.ɵɵtext(2,"Intentarlo nuevamente"),q.ɵɵelementEnd()()}if(2&e){const e=q.ɵɵnextContext();q.ɵɵadvance(1),q.ɵɵ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=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"div",5)(1,"button",7),q.ɵɵlistener("click",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext();return q.ɵɵresetView(t.newRequest())})),q.ɵɵtext(2,"Crear nueva solicitud"),q.ɵɵelementEnd()()}if(2&e){const e=q.ɵɵnextContext();q.ɵɵadvance(1),q.ɵɵ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 q.EventEmitter(null),this.newReq=new q.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)(q.ɵɵdirectiveInject(p.UntypedFormBuilder),q.ɵɵdirectiveInject(V.F),q.ɵɵdirectiveInject(_.M),q.ɵɵdirectiveInject(y.o),q.ɵɵdirectiveInject(k.T))},e.ɵcmp=q.ɵɵ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&&(q.ɵɵelementStart(0,"div",0)(1,"div",1),q.ɵɵelement(2,"div",2)(3,"div",3),q.ɵɵpipe(4,"safeHtml"),q.ɵɵelementEnd(),q.ɵɵtemplate(5,le,3,6,"div",4),q.ɵɵtemplate(6,ce,3,6,"div",4),q.ɵɵelementEnd()),2&e&&(q.ɵɵadvance(2),q.ɵɵproperty("innerHTML",t.texts.fail.title,q.ɵɵsanitizeHtml),q.ɵɵadvance(1),q.ɵɵstyleProp("color",t.data.styles.colors.text),q.ɵɵproperty("innerHTML",q.ɵɵpipeBind1(4,6,t.texts.fail.description),q.ɵɵsanitizeHtml),q.ɵɵadvance(2),q.ɵɵproperty("ngIf",t.solicitud&&"failed_with_retry"==t.solicitud.status_code),q.ɵɵadvance(1),q.ɵɵ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=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"div",12)(1,"belender-checkbox",8),q.ɵɵlistener("changeCheckbox",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext();return q.ɵɵresetView(n.setPower(t))})),q.ɵɵtext(2," Consiento expresamente a la activación de un poder digital según las condiciones que pueden verse "),q.ɵɵelementStart(3,"a",13),q.ɵɵlistener("click",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext();return q.ɵɵresetView(t.gotoPowerConditions())})),q.ɵɵelementStart(4,"u"),q.ɵɵtext(5,"aquí"),q.ɵɵelementEnd()()()()}if(2&e){const e=q.ɵɵnextContext();q.ɵɵadvance(1),q.ɵɵ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 q.EventEmitter(null),this.goPower=new q.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)(q.ɵɵdirectiveInject(p.UntypedFormBuilder),q.ɵɵdirectiveInject(V.F))},e.ɵcmp=q.ɵɵdefineComponent({type:e,selectors:[["belender-form-step"]],inputs:{data:"data",texts:"texts",solicitud:"solicitud"},outputs:{next:"nextStep",goPower:"goToPower"},features:[q.ɵɵProvidersFeature([{provide:M.sG,useValue:pe},{provide:q.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&&(q.ɵɵelementStart(0,"form",0)(1,"div",1)(2,"div",2),q.ɵɵtext(3," Activar un poder digital "),q.ɵɵelementEnd(),q.ɵɵelementStart(4,"div",3),q.ɵɵ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. "),q.ɵɵelementEnd()(),q.ɵɵelementStart(6,"div",4)(7,"h1"),q.ɵɵtext(8,"OTORGAR UN PODER DIGITAL PARA OBTENER LA DOCUMENTACIÓN AUTOMÁTICAMENTE"),q.ɵɵelementEnd(),q.ɵɵelementStart(9,"p"),q.ɵɵtext(10,"Los presentes Términos y Condiciones (en adelante, los "),q.ɵɵelementStart(11,"b"),q.ɵɵtext(12,"“Términos y Condiciones”"),q.ɵɵelementEnd(),q.ɵɵtext(13," ) regulan, la descarga, acceso, navegación y uso de la plataforma propiedad de "),q.ɵɵelementStart(14,"b"),q.ɵɵtext(15,"BELENDER"),q.ɵɵelementEnd(),q.ɵɵtext(16," (en adelante, la "),q.ɵɵelementStart(17,"b"),q.ɵɵtext(18,"“Plataforma”"),q.ɵɵelementEnd(),q.ɵɵ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, "),q.ɵɵelementStart(20,"b"),q.ɵɵtext(21,"“ BELENDER”"),q.ɵɵelementEnd(),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(23,"h2"),q.ɵɵtext(24," 1. OBJETO DE LA PLATAFORMA Y DESCRIPCIÓN DEL SERVICIO"),q.ɵɵelementEnd(),q.ɵɵelementStart(25,"p"),q.ɵɵ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 "),q.ɵɵelementStart(27,"b"),q.ɵɵtext(28,"“Usuarios”"),q.ɵɵelementEnd(),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(30,"p"),q.ɵɵ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. "),q.ɵɵelementEnd(),q.ɵɵelementStart(32,"p"),q.ɵɵtext(33,"En concreto, los documentos que se descargan son:"),q.ɵɵelementEnd(),q.ɵɵelementStart(34,"p"),q.ɵɵtext(35," LISTAR DOCUMENTOS"),q.ɵɵelementEnd(),q.ɵɵelementStart(36,"h2"),q.ɵɵtext(37,"2. ACEPTACIÓN DE LOS TÉRMINOS Y CONDICIONES"),q.ɵɵelementEnd(),q.ɵɵelementStart(38,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(40,"p"),q.ɵɵtext(41,"El servicio prestado en esta Plataforma se rige por: "),q.ɵɵelementEnd(),q.ɵɵelementStart(42,"ul",5)(43,"li"),q.ɵɵtext(44,"(i) estos Términos y Condiciones;"),q.ɵɵelementEnd(),q.ɵɵelementStart(45,"li"),q.ɵɵtext(46,"(ii) Condiciones Particulares que puedan publicarse en la Plataforma o que queden regulados y reflejados en el Sitio web;"),q.ɵɵelementEnd(),q.ɵɵelementStart(47,"li"),q.ɵɵtext(48,"(iii) las leyes vigentes y aplicables, regulaciones sectoriales y los criterios y prácticas generales."),q.ɵɵelementEnd()(),q.ɵɵelementStart(49,"p"),q.ɵɵ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. "),q.ɵɵelementEnd(),q.ɵɵelementStart(51,"h2"),q.ɵɵtext(52,"3. CESIÓN DE DATOS"),q.ɵɵelementEnd(),q.ɵɵelementStart(53,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(55,"h2"),q.ɵɵtext(56,"4. OBLIGACIONES DE BELENDER"),q.ɵɵelementEnd(),q.ɵɵelementStart(57,"ul",5)(58,"li"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(60,"li"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(62,"li"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(64,"li"),q.ɵɵtext(65,"Emplear toda la atención y profesionalidad que se consideren razonables para la prestación del servicio que se ofrece."),q.ɵɵelementEnd()(),q.ɵɵelementStart(66,"h2"),q.ɵɵtext(67,"5. OBLIGACIONES DE LOS USUARIOS"),q.ɵɵelementEnd(),q.ɵɵelementStart(68,"ul",5)(69,"li"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(71,"li"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(73,"li"),q.ɵɵ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."),q.ɵɵelementEnd()(),q.ɵɵelementStart(75,"h2"),q.ɵɵtext(76," 6. CONFIDENCIALIDAD"),q.ɵɵelementEnd(),q.ɵɵelementStart(77,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(79,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(81,"h2"),q.ɵɵtext(82,"7. PROTECCIÓN DE DATOS PERSONALES"),q.ɵɵelementEnd(),q.ɵɵelementStart(83,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(85,"p"),q.ɵɵtext(86,"All4Lend SL, con NIF B67425769 y domicilio en Barcelona, calle Sol 19 (0874), es el responsable del tratamiento de sus datos."),q.ɵɵelementEnd(),q.ɵɵelementStart(87,"p"),q.ɵɵ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, "),q.ɵɵelementStart(89,"b"),q.ɵɵtext(90,"RGPD"),q.ɵɵelementEnd(),q.ɵɵtext(91," ) y lo establecido en la normativa española vigente en esta materia."),q.ɵɵelementEnd(),q.ɵɵelementStart(92,"p"),q.ɵɵ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. "),q.ɵɵelementEnd(),q.ɵɵelementStart(94,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(96,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(98,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(100,"h2"),q.ɵɵtext(101,"8. PROPIEDAD INTELECTUAL E INDUSTRIAL"),q.ɵɵelementEnd(),q.ɵɵelementStart(102,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(104,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(106,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(108,"h2"),q.ɵɵtext(109,"9. RESPONSABILIDAD"),q.ɵɵelementEnd(),q.ɵɵelementStart(110,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(112,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(114,"h2"),q.ɵɵtext(115,"10.MISCELÁNEA"),q.ɵɵelementEnd(),q.ɵɵelementStart(116,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(118,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(120,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(122,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(124,"p"),q.ɵɵ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."),q.ɵɵelementEnd(),q.ɵɵelementStart(126,"p"),q.ɵɵ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/ "),q.ɵɵelementEnd()(),q.ɵɵelementStart(128,"div",6)(129,"div",7)(130,"belender-checkbox",8),q.ɵɵlistener("changeCheckbox",(function(e){return t.setTerms(e)})),q.ɵɵtext(131," Acepto y firmo digitalmente el documento "),q.ɵɵelementEnd()(),q.ɵɵtemplate(132,he,6,1,"div",9),q.ɵɵelementEnd(),q.ɵɵelementStart(133,"div",10)(134,"button",11),q.ɵɵlistener("click",(function(){return t.nextStep()})),q.ɵɵtext(135,"Continuar"),q.ɵɵelementEnd()()()),2&e&&(q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size","16px"),q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.text)("font-size","14px"),q.ɵɵadvance(126),q.ɵɵproperty("color",t.data.styles.colors.title),q.ɵɵadvance(2),q.ɵɵproperty("ngIf",t.solicitud&&t.solicitud.request_id?null==t.solicitud?null:t.solicitud.power_activate:null==t.data?null:t.data.config.activatePower),q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.getIfValid()?t.data.styles.colors.btnText:"")("background",t.getIfValid()?t.data.styles.colors.btnBg:"")("border-radius",t.data.styles.btnRound+"px"),q.ɵɵ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 q.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)(q.ɵɵdirectiveInject(p.UntypedFormBuilder),q.ɵɵdirectiveInject(V.F),q.ɵɵdirectiveInject(P.gz))},e.ɵcmp=q.ɵɵdefineComponent({type:e,selectors:[["belender-error-form-step"]],inputs:{data:"data",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&&(q.ɵɵelementStart(0,"form",0)(1,"div",1)(2,"div",2),q.ɵɵtext(3,"Error con el teléfono"),q.ɵɵelementEnd(),q.ɵɵelementStart(4,"div",3),q.ɵɵtext(5,"El teléfono ingresado no coincide con registrado en la Seguridad Social, por favor ingrese otro"),q.ɵɵelementEnd()(),q.ɵɵelementStart(6,"div",4)(7,"mat-form-field",5)(8,"mat-label"),q.ɵɵtext(9,"Telefono"),q.ɵɵelementEnd(),q.ɵɵelement(10,"input",6),q.ɵɵelementEnd()(),q.ɵɵelementStart(11,"div",7)(12,"button",8),q.ɵɵlistener("click",(function(){return t.nextStep()})),q.ɵɵelementEnd()()()),2&e&&(q.ɵɵproperty("formGroup",t.form),q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.text),q.ɵɵadvance(8),q.ɵɵstyleProp("color",t.data.styles.colors.btnText)("background",t.form.invalid?"":t.data.styles.colors.btnBg)("border-radius",t.data.styles.btnRound+"px"),q.ɵɵ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)(q.ɵɵdirectiveInject(V.F))},e.ɵcmp=q.ɵɵ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&&(q.ɵɵelementStart(0,"div",0)(1,"div",1),q.ɵɵelement(2,"belender-spinner",2),q.ɵɵelementEnd()()),2&e&&(q.ɵɵadvance(2),q.ɵɵ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=q.ɵɵ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&&(q.ɵɵelementStart(0,"form",0)(1,"div",1),q.ɵɵelement(2,"div",2)(3,"div",3),q.ɵɵpipe(4,"safeHtml"),q.ɵɵelementEnd()()),2&e&&(q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),q.ɵɵproperty("innerHTML",t.texts.noService.title,q.ɵɵsanitizeHtml),q.ɵɵadvance(1),q.ɵɵstyleProp("color",t.data.styles.colors.text),q.ɵɵproperty("innerHTML",q.ɵɵpipeBind1(4,8,t.texts.noService.description),q.ɵɵ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 q.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)(q.ɵɵdirectiveInject(p.UntypedFormBuilder),q.ɵɵdirectiveInject(V.F),q.ɵɵdirectiveInject(_.M),q.ɵɵdirectiveInject(y.o),q.ɵɵdirectiveInject(k.T))},e.ɵcmp=q.ɵɵ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&&(q.ɵɵelementStart(0,"div",0)(1,"div",1),q.ɵɵelement(2,"div",2)(3,"div",3),q.ɵɵpipe(4,"safeHtml"),q.ɵɵelementStart(5,"div",4),q.ɵɵtext(6),q.ɵɵelementEnd()(),q.ɵɵelementStart(7,"div",5)(8,"button",6),q.ɵɵlistener("click",(function(){return t.retry()})),q.ɵɵtext(9,"Intentarlo nuevamente"),q.ɵɵelementEnd()()()),2&e&&(q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),q.ɵɵproperty("innerHTML",t.texts.abandoned.title,q.ɵɵsanitizeHtml),q.ɵɵadvance(1),q.ɵɵstyleProp("color",t.data.styles.colors.text),q.ɵɵproperty("innerHTML",q.ɵɵpipeBind1(4,15,t.texts.abandoned.description),q.ɵɵsanitizeHtml),q.ɵɵadvance(3),q.ɵɵtextInterpolate1(" Estado: ",t.getTextStatus()," "),q.ɵɵadvance(2),q.ɵɵ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 q.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)(q.ɵɵdirectiveInject(p.UntypedFormBuilder),q.ɵɵdirectiveInject(V.F),q.ɵɵdirectiveInject(_.M),q.ɵɵdirectiveInject(y.o),q.ɵɵdirectiveInject(k.T))},e.ɵcmp=q.ɵɵ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&&(q.ɵɵelementStart(0,"div",0)(1,"div",1)(2,"div",2),q.ɵɵtext(3," Solicitud duplicada! "),q.ɵɵelementEnd(),q.ɵɵelementStart(4,"div",3),q.ɵɵtext(5," Ya existe una solicitud para este cliente. "),q.ɵɵelementEnd(),q.ɵɵelementStart(6,"div",4),q.ɵɵtext(7," Estado de la solicitud actual: "),q.ɵɵelementStart(8,"div",5),q.ɵɵtext(9),q.ɵɵelementEnd()()(),q.ɵɵelementStart(10,"div",6)(11,"button",7),q.ɵɵlistener("click",(function(){return t.newRequest()})),q.ɵɵtext(12,"Nueva solicitud"),q.ɵɵelementEnd(),q.ɵɵelementStart(13,"button",8),q.ɵɵlistener("click",(function(){return t.gotoRequest()})),q.ɵɵtext(14,"Ir a la solicitud actual"),q.ɵɵelementEnd()()()),2&e&&(q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),q.ɵɵadvance(2),q.ɵɵstyleProp("color",t.data.styles.colors.text),q.ɵɵadvance(5),q.ɵɵtextInterpolate1(" ",t.getStatus()," "),q.ɵɵadvance(2),q.ɵɵstyleProp("border-radius",t.data.styles.btnRound+"px"),q.ɵɵadvance(2),q.ɵɵ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=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"vex-power-cert",3),q.ɵɵlistener("accept",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext();return q.ɵɵresetView(t.acceptPowerCert())})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext();q.ɵɵproperty("hideButtons",!1)("flow","DigitalPower")("userId",e.userId)}}function we(e,t){if(1&e&&(q.ɵɵelementStart(0,"div",8),q.ɵɵelement(1,"img",9),q.ɵɵelementEnd()),2&e){const e=q.ɵɵnextContext(2);q.ɵɵadvance(1),q.ɵɵproperty("src",e.data.styles.logoUrl,q.ɵɵsanitizeUrl)}}function Ce(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"belender-intro-step",22),q.ɵɵlistener("gotoFlow",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext(3);return q.ɵɵresetView(t.goFlow())}))("gotoManual",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext(3);return q.ɵɵresetView(t.gotoManual())})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("data",e.data)}}function Se(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"belender-manual-step",23),q.ɵɵlistener("goBack",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext(3);return q.ɵɵresetView(t.gotoIntro())})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("data",e.data)("packId",e.packId)("userId",e.userId)}}function Me(e,t){if(1&e&&q.ɵɵelement(0,"belender-loading-step",24),2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("status",null==e.solicitud?null:e.solicitud.status_code)("data",e.data)("loaderColor",e.data.styles.colors.title)}}function ke(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"belender-form-step",25),q.ɵɵlistener("goToPower",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext(3);return q.ɵɵresetView(t.gotoPowerConditions())}))("nextStep",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext(3);return q.ɵɵresetView(n.gotoOtp(t))})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("data",e.data)("texts",e.data.SMS.texts)("solicitud",e.solicitud)}}function Ie(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"belender-error-form-step",26),q.ɵɵlistener("nextStep",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext(3);return q.ɵɵresetView(n.sendNewData(t))})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("solicitud",e.solicitud)("data",e.data)("texts",e.data.SMS.texts)}}function Ee(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"belender-abandoned-step",27),q.ɵɵlistener("retry",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext(3);return q.ɵɵresetView(n.retryRequest(t))})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("solicitud",e.solicitud)("data",e.data)("texts",e.data.SMS.texts)}}function Te(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"belender-otp-step",28),q.ɵɵlistener("resendOTP",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext(3);return q.ɵɵresetView(n.resendOTP(t))}))("errorPhone",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext(3);return q.ɵɵresetView(t.setRequestStatus("failed_login_otp"))}))("nextStep",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext(3);return q.ɵɵresetView(n.requestOTP(t))})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("data",e.data)("texts",e.data.SMS.texts)("solicitud",e.solicitud)}}function Pe(e,t){if(1&e&&q.ɵɵelement(0,"belender-success-step",29),2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("data",e.data)("texts",e.data.SMS.texts)}}function Oe(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"belender-duplicated-request-step",30),q.ɵɵlistener("newRequest",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext(3);return q.ɵɵresetView(n.newRequest(t))})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("data",e.data)("currentRequest",e.currentRequest)}}function De(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"belender-fail-step",31),q.ɵɵlistener("retry",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext(3);return q.ɵɵresetView(n.retryRequest(t))}))("newRequest",(function(t){q.ɵɵrestoreView(e);const n=q.ɵɵnextContext(3);return q.ɵɵresetView(n.newRequest(t))})),q.ɵɵelementEnd()}if(2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("data",e.data)("texts",e.data.SMS.texts)("solicitud",e.solicitud)}}function Le(e,t){if(1&e&&q.ɵɵelement(0,"belender-no-service-step",32),2&e){const e=q.ɵɵnextContext(3);q.ɵɵproperty("texts",e.data.SMS.texts)("data",e.data)}}function Ae(e,t){if(1&e&&(q.ɵɵelementStart(0,"div",33)(1,"div",34)(2,"h1",35),q.ɵɵtext(3,"No existe la solicitud"),q.ɵɵelementEnd()(),q.ɵɵelementStart(4,"div",36),q.ɵɵtext(5,"No existen solicitudes activas con el código requerido"),q.ɵɵelementEnd()()),2&e){const e=q.ɵɵnextContext(3);q.ɵɵadvance(4),q.ɵɵstyleProp("color",e.data.styles.colors.text)}}function Re(e,t){if(1&e&&(q.ɵɵelementContainerStart(0),q.ɵɵtemplate(1,Ce,1,1,"belender-intro-step",10),q.ɵɵtemplate(2,Se,1,3,"belender-manual-step",11),q.ɵɵtemplate(3,Me,1,3,"belender-loading-step",12),q.ɵɵtemplate(4,ke,1,3,"belender-form-step",13),q.ɵɵtemplate(5,Ie,1,3,"belender-error-form-step",14),q.ɵɵtemplate(6,Ee,1,3,"belender-abandoned-step",15),q.ɵɵtemplate(7,Te,1,3,"belender-otp-step",16),q.ɵɵtemplate(8,Pe,1,2,"belender-success-step",17),q.ɵɵtemplate(9,Oe,1,2,"belender-duplicated-request-step",18),q.ɵɵtemplate(10,De,1,3,"belender-fail-step",19),q.ɵɵtemplate(11,Le,1,2,"belender-no-service-step",20),q.ɵɵtemplate(12,Ae,6,2,"div",21),q.ɵɵelementContainerEnd()),2&e){const e=q.ɵɵnextContext(2);q.ɵɵadvance(1),q.ɵɵproperty("ngIf","intro"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","manual"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","loading"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","form"==e.getStatus()&&!e.loading),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","error-data"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","abandoned"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","otp"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","success"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","duplicated"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","failed"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","no-service"==e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf","no-exist"==e.getStatus())}}function Ne(e,t){1&e&&q.ɵɵelement(0,"belender-disabled-url")}function je(e,t){if(1&e&&(q.ɵɵelementStart(0,"div",37),q.ɵɵelement(1,"belender-spinner",38),q.ɵɵelementEnd()),2&e){const e=q.ɵɵnextContext(2);q.ɵɵadvance(1),q.ɵɵpropertyInterpolate("text",e.loading),q.ɵɵproperty("color",e.data.styles.colors.title)}}function Fe(e,t){if(1&e){const e=q.ɵɵgetCurrentView();q.ɵɵelementStart(0,"div",39)(1,"div",33)(2,"div",40),q.ɵɵtext(3,"Error!"),q.ɵɵelementEnd(),q.ɵɵelement(4,"div",41),q.ɵɵelementEnd(),q.ɵɵelementStart(5,"div",42)(6,"button",43),q.ɵɵlistener("click",(function(){q.ɵɵrestoreView(e);const t=q.ɵɵnextContext(2);return q.ɵɵresetView(t.error=!1)})),q.ɵɵtext(7,"Ingresar manualmente"),q.ɵɵelementEnd()()()}if(2&e){const e=q.ɵɵnextContext(2);q.ɵɵadvance(4),q.ɵɵstyleProp("color",e.data.styles.colors.text),q.ɵɵproperty("innerHTML",e.error,q.ɵɵsanitizeHtml)}}function Ye(e,t){if(1&e&&(q.ɵɵelementStart(0,"div",4)(1,"div"),q.ɵɵtemplate(2,we,2,1,"div",5),q.ɵɵtemplate(3,Re,13,12,"ng-container",2),q.ɵɵtemplate(4,Ne,1,0,"belender-disabled-url",2),q.ɵɵtemplate(5,je,2,2,"div",6),q.ɵɵtemplate(6,Fe,8,3,"div",7),q.ɵɵelementEnd()()),2&e){const e=q.ɵɵnextContext();q.ɵɵadvance(1),q.ɵɵclassMapInterpolate1("h-full w-full flex-auto p-0 md:p-3 ",e.data.config.typography,""),q.ɵɵstyleProp("background",e.data.styles.colors.background),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",e.data.styles.withLogo&&"loading"!=e.getStatus()),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",!e.error&&!e.disableURL),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",!e.error&&e.disableURL),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",e.loading&&!e.error),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",!e.loading&&e.error)}}function qe(e,t){if(1&e&&(q.ɵɵelementContainerStart(0),q.ɵɵelementStart(1,"div",44),q.ɵɵtext(2),q.ɵɵelementEnd(),q.ɵɵelementContainerEnd()),2&e){const e=q.ɵɵnextContext();q.ɵɵadvance(2),q.ɵɵ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}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 N.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 N.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(Y.L,{panelClass:"fullscreen-dialog",data:{flow:"sms"}})}};Ve.ɵfac=function(e){return new(e||Ve)(q.ɵɵdirectiveInject(q.ChangeDetectorRef),q.ɵɵdirectiveInject(P.gz),q.ɵɵdirectiveInject(V.F),q.ɵɵdirectiveInject(_.M),q.ɵɵdirectiveInject(C.w),q.ɵɵdirectiveInject(k.T),q.ɵɵdirectiveInject(x.t),q.ɵɵdirectiveInject(H.uw))},Ve.ɵcmp=q.ɵɵdefineComponent({type:Ve,selectors:[["belender-widget-power"]],inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud"},features:[q.ɵɵ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","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","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&&(q.ɵɵtemplate(0,xe,1,3,"vex-power-cert",0),q.ɵɵtemplate(1,Ye,7,10,"div",1),q.ɵɵtemplate(2,qe,3,1,"ng-container",2)),2&e&&(q.ɵɵproperty("ngIf",t.viewPowerTerms),q.ɵɵadvance(1),q.ɵɵproperty("ngIf",t.data),q.ɵɵadvance(1),q.ɵɵ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,R.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=q.ɵɵdefineNgModule({type:e}),e.ɵinj=q.ɵɵ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=q.ɵɵdefineNgModule({type:e}),e.ɵinj=q.ɵɵdefineInjector({providers:[_.M,y.o,C.w,x.t,k.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,I.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:()=>He});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),k=n(5895),I=n(6257),E=n(1948),T=n(4246),P=n(9299),O=n(6e3),D=n(7582),L=n(9549),A=n(9933),R=n(8259),N=n(2340),j=n(6830),F=n(4650),Y=n(5089),q=n(9617),V=n(7489),H=n(5412),z=n(920),B=n(8364),U=n(4302),W=n(5439),$=n.n(W),G=(n(6866),n(3755)),Z=n(3746),K=n(1763),Q=n(7795),J=n(5696),X=n(3731);const ee=["termsCheckbox"],te=["assignmentCheckbox"];function ne(e,t){1&e&&(F.ɵɵelementStart(0,"p",18)(1,"b"),F.ɵɵtext(2," Necesitamos más datos para validar el acceso a las administraciones públicas"),F.ɵɵelementEnd()())}function ie(e,t){1&e&&(F.ɵɵelementStart(0,"mat-error"),F.ɵɵtext(1," Debes ingresar un DNI o NIE válido! "),F.ɵɵelementEnd())}const re=function(e){return{mask:e}};function se(e,t){if(1&e){const e=F.ɵɵgetCurrentView();F.ɵɵelementStart(0,"mat-form-field",6)(1,"mat-label"),F.ɵɵtext(2," Fecha de vencimiento del DNI "),F.ɵɵelementEnd(),F.ɵɵelement(3,"input",19),F.ɵɵelementStart(4,"mat-hint")(5,"a",20),F.ɵɵlistener("click",(function(t){F.ɵɵrestoreView(e);const n=F.ɵɵnextContext();return F.ɵɵresetView(n.gotoExpirationDate(t))})),F.ɵɵelementStart(6,"u"),F.ɵɵtext(7,"¿Donde la encuentro?"),F.ɵɵelementEnd()()()()}if(2&e){const e=F.ɵɵnextContext();F.ɵɵclassMapInterpolate1("",e.disabledInputs.expiration?"disabled-input":""," w-full flex-1 belender-form-field"),F.ɵɵadvance(3),F.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.expiration?-1:1),F.ɵɵproperty("textMask",F.ɵɵpureFunction1(5,re,e.datemask))}}function oe(e,t){if(1&e&&(F.ɵɵelementStart(0,"mat-form-field",6)(1,"mat-label"),F.ɵɵtext(2," Fecha de nacimiento "),F.ɵɵelementEnd(),F.ɵɵelement(3,"input",21),F.ɵɵelementEnd()),2&e){const e=F.ɵɵnextContext();F.ɵɵclassMapInterpolate1("",e.disabledInputs.birthday?"disabled-input":""," w-full flex-1 belender-form-field"),F.ɵɵadvance(3),F.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.birthday?-1:1),F.ɵɵproperty("textMask",F.ɵɵpureFunction1(5,re,e.datemask))}}function ae(e,t){if(1&e){const e=F.ɵɵgetCurrentView();F.ɵɵelementStart(0,"mat-form-field",6)(1,"mat-label"),F.ɵɵtext(2,"Número de soporte"),F.ɵɵelementEnd(),F.ɵɵelement(3,"input",22),F.ɵɵelementStart(4,"mat-hint")(5,"a",20),F.ɵɵlistener("click",(function(t){F.ɵɵrestoreView(e);const n=F.ɵɵnextContext();return F.ɵɵresetView(n.gotoSupportAclaration(t))})),F.ɵɵelementStart(6,"u"),F.ɵɵtext(7,"¿Donde lo encuentro?"),F.ɵɵelementEnd()()()()}if(2&e){const e=F.ɵɵnextContext();F.ɵɵclassMapInterpolate1("",e.disabledInputs.supportNumber?"disabled-input":""," w-full flex-1 belender-form-field"),F.ɵɵadvance(3),F.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.supportNumber?-1:1)}}function le(e,t){if(1&e&&(F.ɵɵelementStart(0,"mat-form-field",6)(1,"mat-label"),F.ɵɵtext(2,"Telefono"),F.ɵɵelementEnd(),F.ɵɵelement(3,"input",23),F.ɵɵelementEnd()),2&e){const e=F.ɵɵnextContext();F.ɵɵclassMapInterpolate1("",e.disabledInputs.phone?"disabled-input":""," w-full flex-1 belender-form-field"),F.ɵɵadvance(3),F.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.phone?-1:1)}}function ce(e,t){if(1&e&&(F.ɵɵelementStart(0,"div",24)(1,"mat-form-field",6)(2,"mat-label"),F.ɵɵtext(3,"Email"),F.ɵɵelementEnd(),F.ɵɵelement(4,"input",25),F.ɵɵelementEnd()()),2&e){const e=F.ɵɵnextContext();F.ɵɵadvance(1),F.ɵɵclassMapInterpolate1("",e.disabledInputs.email?"disabled-input":""," w-full flex-1 belender-form-field"),F.ɵɵadvance(3),F.ɵɵpropertyInterpolate("tabindex",e.disabledInputs.email?-1:1)}}function de(e,t){if(1&e){const e=F.ɵɵgetCurrentView();F.ɵɵelementStart(0,"div",26)(1,"belender-checkbox",27,28),F.ɵɵlistener("changeCheckbox",(function(t){F.ɵɵrestoreView(e);const n=F.ɵɵnextContext();return F.ɵɵresetView(n.setTerms(t))})),F.ɵɵelementStart(3,"belender-terms-and-policy-links",29),F.ɵɵlistener("goToTerms",(function(t){F.ɵɵrestoreView(e);const n=F.ɵɵnextContext();return F.ɵɵresetView(n.gotoTermsAndConditions(t))})),F.ɵɵelementEnd()()()}if(2&e){const e=F.ɵɵnextContext();F.ɵɵadvance(1),F.ɵɵproperty("color",e.data.styles.colors.title),F.ɵɵadvance(2),F.ɵɵproperty("userId",e.userId)("showPolicyLink",null==e.data?null:e.data.config.showPolicyLink)("firstSentence",null==e.data.ClavePin||null==e.data.ClavePin.texts||null==e.data.ClavePin.texts.form?null:e.data.ClavePin.texts.form.firstSentence)("secondSentence",null==e.data.ClavePin||null==e.data.ClavePin.texts||null==e.data.ClavePin.texts.form?null:e.data.ClavePin.texts.form.secondSentence)("thirdSentence",null==e.data.ClavePin||null==e.data.ClavePin.texts||null==e.data.ClavePin.texts.form?null:e.data.ClavePin.texts.form.thirdSentence)("policyActionText",null==e.data.ClavePin||null==e.data.ClavePin.texts||null==e.data.ClavePin.texts.form?null:e.data.ClavePin.texts.form.policyActionText)("termsActionText",null==e.data.ClavePin||null==e.data.ClavePin.texts||null==e.data.ClavePin.texts.form?null:e.data.ClavePin.texts.form.termsActionText)("customTerms",e.data.ClavePin.customTerms)}}function ue(e,t){if(1&e){const e=F.ɵɵgetCurrentView();F.ɵɵelementStart(0,"div",30)(1,"belender-checkbox",31,32),F.ɵɵlistener("changeCheckbox",(function(t){F.ɵɵrestoreView(e);const n=F.ɵɵnextContext();return F.ɵɵresetView(n.setAssignment(t))})),F.ɵɵelement(3,"div",33),F.ɵɵelementEnd()()}if(2&e){const e=F.ɵɵnextContext();F.ɵɵadvance(1),F.ɵɵproperty("color",e.data.styles.colors.title),F.ɵɵadvance(2),F.ɵɵproperty("innerHTML",null==e.data?null:e.data.config.dataAssignmentText,F.ɵɵsanitizeHtml)}}function he(e,t){1&e&&(F.ɵɵelementStart(0,"div",34),F.ɵɵelement(1,"mat-icon",35),F.ɵɵtext(2," Debes leer los términos y condiciones para poder continuar "),F.ɵɵelementEnd())}function pe(e,t){if(1&e&&(F.ɵɵelement(0,"div",3),F.ɵɵpipe(1,"safeHtml")),2&e){const e=F.ɵɵnextContext();F.ɵɵstyleProp("color",e.data.styles.colors.text),F.ɵɵproperty("innerHTML",F.ɵɵpipeBind1(1,3,(null==e.texts.form?null:e.texts.form.aditionalDescription)||""),F.ɵɵsanitizeHtml)}}function me(e,t){if(1&e&&(F.ɵɵelementStart(0,"div",36),F.ɵɵelement(1,"mat-progress-spinner",37),F.ɵɵelementStart(2,"p",38),F.ɵɵtext(3),F.ɵɵelementEnd()()),2&e){const e=F.ɵɵnextContext();F.ɵɵadvance(3),F.ɵɵtextInterpolate1(" ",e.loading," ")}}const fe={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let ge=(()=>{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 F.EventEmitter(null),this.goTerms=new F.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=$()(e.document_expiration_date).format("DD/MM/YYYY"):e.person_document_expiration_date&&(t=$()(e.person_document_expiration_date).format("DD/MM/YYYY")),e.birthday?n=$()(e.birthday).format("DD/MM/YYYY"):e.person_birth_date?n=$()(e.person_birth_date).format("DD/MM/YYYY"):e.birth_date&&(n=$()(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="Enviando datos..",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("Error!","Fecha incorrecta!")):400==e.code&&"Incorrect support number"==e.message?(this.showAlert("Error!","Número de soporte inválido!"),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("Error!","Error desconocido: "+e),this.cd.markForCheck()})).catch((e=>{e&&e.error&&this.showAlert("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="Comprobando SMS..";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("Error!","Fecha de nacimiento incorrecta!")):"Incorrect date"==t.message?(this.solicitud.status_code="form",this.showAlert("Error!","Fecha incorrecta!")):t.message&&(400==t.code?this.showAlert("SMS","El usuario no tiene habilitado el servicio SMS, no se podra realizar la solicitud","error"):(this.solicitud.status_code="form",this.showAlert("Error!",t.message)))):t&&t.status&&"success"==t.status?this.nextStep():this.showAlert("Error!","Error desconocido: "+t),this.loading=null,this.cd.markForCheck()})).catch((e=>{e&&e.error&&this.showAlert("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(G.$,{panelClass:"fullscreen-dialog"})}gotoExpirationDate(e){e.preventDefault(),e.stopPropagation(),this.dialog.open(Z.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="Debes ingresar un DNI o NIE válido!"}getAssignmentValidation(){return!(this.data.config.forceChecks&&!this.termsReaded)&&(!this.data.config.dataAssignmentCheck||this.assignment)}}return e.ɵfac=function(t){return new(t||e)(F.ɵɵdirectiveInject(p.UntypedFormBuilder),F.ɵɵdirectiveInject(_.M),F.ɵɵdirectiveInject(k.T),F.ɵɵdirectiveInject(Y.F),F.ɵɵdirectiveInject(V.v),F.ɵɵdirectiveInject(F.ChangeDetectorRef),F.ɵɵdirectiveInject(H.uw))},e.ɵcmp=F.ɵɵdefineComponent({type:e,selectors:[["belender-form-smspin-step"]],viewQuery:function(e,t){if(1&e&&(F.ɵɵviewQuery(ee,5),F.ɵɵviewQuery(te,5)),2&e){let e;F.ɵɵqueryRefresh(e=F.ɵɵloadQuery())&&(t.checkComponent=e.first),F.ɵɵqueryRefresh(e=F.ɵɵloadQuery())&&(t.assignmentCheckComponent=e.first)}},inputs:{data:"data",texts:"texts",solicitud:"solicitud",requestIDFromURL:"requestIDFromURL",pinPackID:"pinPackID",smsPackID:"smsPackID",userId:"userId"},outputs:{next:"nextStep",goTerms:"goToTerms"},features:[F.ɵɵProvidersFeature([{provide:M.sG,useValue:fe},{provide:F.LOCALE_ID,useValue:"es-ES"}])],decls:25,vars:35,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"],["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","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&&(F.ɵɵelementStart(0,"form",0)(1,"div",1),F.ɵɵelement(2,"div",2)(3,"div",3),F.ɵɵpipe(4,"safeHtml"),F.ɵɵtemplate(5,ne,3,0,"p",4),F.ɵɵelementEnd(),F.ɵɵelementStart(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),F.ɵɵtext(9),F.ɵɵelementEnd(),F.ɵɵelement(10,"input",7),F.ɵɵtemplate(11,ie,2,0,"mat-error",8),F.ɵɵelementEnd(),F.ɵɵtemplate(12,se,8,7,"mat-form-field",9),F.ɵɵtemplate(13,oe,4,7,"mat-form-field",9),F.ɵɵtemplate(14,ae,8,4,"mat-form-field",9),F.ɵɵtemplate(15,le,4,4,"mat-form-field",9),F.ɵɵtemplate(16,ce,5,4,"div",10),F.ɵɵelementEnd(),F.ɵɵtemplate(17,de,4,9,"div",11),F.ɵɵtemplate(18,ue,4,2,"div",12),F.ɵɵtemplate(19,he,3,0,"div",13),F.ɵɵelementStart(20,"div",14)(21,"button",15),F.ɵɵlistener("click",(function(){return t.validate()})),F.ɵɵtext(22," Continuar "),F.ɵɵelementEnd()(),F.ɵɵtemplate(23,pe,2,5,"div",16),F.ɵɵelementEnd(),F.ɵɵtemplate(24,me,4,1,"div",17)),2&e&&(F.ɵɵproperty("formGroup",t.form),F.ɵɵadvance(2),F.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),F.ɵɵproperty("innerHTML",t.texts.form.title,F.ɵɵsanitizeHtml),F.ɵɵadvance(1),F.ɵɵstyleProp("color",t.data.styles.colors.text),F.ɵɵproperty("innerHTML",F.ɵɵpipeBind1(4,33,t.texts.form.description||""),F.ɵɵsanitizeHtml),F.ɵɵadvance(2),F.ɵɵproperty("ngIf","SMS"==t.mode),F.ɵɵadvance(2),F.ɵɵclassMapInterpolate1("",t.disabledInputs.dni?"disabled-input":""," w-full flex-1 belender-form-field"),F.ɵɵadvance(2),F.ɵɵtextInterpolate(t.isDni?"DNI":t.isNie?"NIE":"DNI o NIE"),F.ɵɵadvance(1),F.ɵɵpropertyInterpolate("tabindex",t.disabledInputs.dni?-1:1),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",!t.isNie&&!t.isDni),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",t.isDni),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",t.isDni&&"SMS"==t.mode||t.isNie),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",t.isNie),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",(t.isNie||t.isDni)&&"SMS"==t.mode),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",(null==t.data||null==t.data.config?null:t.data.config.followMail)&&(t.isDni||t.isNie)),F.ɵɵadvance(1),F.ɵɵproperty("ngIf","ClavePin"==t.mode),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",(null==t.data?null:t.data.config.dataAssignmentCheck)&&"ClavePin"==t.mode),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",t.data.config.forceChecks&&!t.termsReaded&&"ClavePin"==t.mode),F.ɵɵadvance(2),F.ɵɵ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"),F.ɵɵproperty("disabled",!t.validDocument()||t.form.invalid||!t.acceptTerms||!t.getAssignmentValidation()||t.loading),F.ɵɵadvance(2),F.ɵɵproperty("ngIf",null==t.data.smspin?null:t.data.smspin.showAditionalDescription),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",t.loading))},dependencies:[i.O5,d.Hw,u.lW,L.TO,L.KE,L.bx,L.hX,w.Nt,p.ɵNgNoValidate,p.DefaultValueAccessor,p.NgControlStatus,p.NgControlStatusGroup,p.RequiredValidator,p.MinLengthValidator,p.MaxLengthValidator,p.FormGroupDirective,p.FormControlName,b.Ou,K.b,Q.hd,J.T,X.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})(),_e=(()=>{class e{constructor(){}ngOnInit(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=F.ɵɵ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&&(F.ɵɵelementStart(0,"form",0)(1,"div",1),F.ɵɵelement(2,"div",2)(3,"div",3),F.ɵɵpipe(4,"safeHtml"),F.ɵɵelementEnd()()),2&e&&(F.ɵɵadvance(2),F.ɵɵstyleProp("color",t.data.styles.colors.title)("font-size",t.texts.form.titleSize+"px"),F.ɵɵproperty("innerHTML",t.texts.fail.title,F.ɵɵsanitizeHtml),F.ɵɵadvance(1),F.ɵɵstyleProp("color",t.data.styles.colors.text),F.ɵɵproperty("innerHTML",F.ɵɵpipeBind1(4,8,t.texts.fail.description),F.ɵɵsanitizeHtml))},dependencies:[p.ɵNgNoValidate,p.NgControlStatusGroup,p.NgForm,X.z]}),e})();const ve=["formStep"];function ye(e,t){if(1&e&&(F.ɵɵelementStart(0,"div",7),F.ɵɵelement(1,"img",8),F.ɵɵelementEnd()),2&e){const e=F.ɵɵnextContext(2);F.ɵɵadvance(1),F.ɵɵproperty("src",e.data.styles.logoUrl,F.ɵɵsanitizeUrl)}}function be(e,t){if(1&e){const e=F.ɵɵgetCurrentView();F.ɵɵelementStart(0,"belender-form-smspin-step",12,13),F.ɵɵlistener("nextStep",(function(t){F.ɵɵrestoreView(e);const n=F.ɵɵnextContext(3);return F.ɵɵresetView(n.checkRequest(t))}))("goToTerms",(function(){F.ɵɵrestoreView(e);const t=F.ɵɵnextContext(3);return F.ɵɵresetView(t.gotoTermsAndConditions())})),F.ɵɵelementEnd()}if(2&e){const e=F.ɵɵnextContext(3);F.ɵɵproperty("requestIDFromURL",e.requestIDFromURL)("data",e.data)("userId",e.userId)("pinPackID",e.pinPackID)("smsPackID",e.smsPackID)("texts",e.data.smspin.texts)("solicitud",e.solicitud)}}function xe(e,t){if(1&e){const e=F.ɵɵgetCurrentView();F.ɵɵelementStart(0,"belender-smspin-no-service-step",14),F.ɵɵlistener("retry",(function(){F.ɵɵrestoreView(e);const t=F.ɵɵnextContext(3);return F.ɵɵresetView(t.gotoForm())})),F.ɵɵelementEnd()}if(2&e){const e=F.ɵɵnextContext(3);F.ɵɵproperty("data",e.data)("texts",e.data.smspin.texts)}}function we(e,t){if(1&e&&(F.ɵɵelementStart(0,"div",15)(1,"div",16)(2,"h1",17),F.ɵɵtext(3,"No existe la solicitud"),F.ɵɵelementEnd()(),F.ɵɵelementStart(4,"div",18),F.ɵɵtext(5,"No existen solicitudes activas con el código requerido"),F.ɵɵelementEnd()()),2&e){const e=F.ɵɵnextContext(3);F.ɵɵadvance(4),F.ɵɵstyleProp("color",e.data.styles.colors.text)}}function Ce(e,t){if(1&e&&(F.ɵɵelementContainerStart(0),F.ɵɵtemplate(1,be,2,7,"belender-form-smspin-step",9),F.ɵɵtemplate(2,xe,1,2,"belender-smspin-no-service-step",10),F.ɵɵtemplate(3,we,6,2,"div",11),F.ɵɵelementContainerEnd()),2&e){const e=F.ɵɵnextContext(2);F.ɵɵadvance(1),F.ɵɵproperty("ngIf","form"==e.getStatus()&&!e.loading),F.ɵɵadvance(1),F.ɵɵproperty("ngIf","no-service"==e.getStatus()),F.ɵɵadvance(1),F.ɵɵproperty("ngIf","created"!=e.step)}}function Se(e,t){1&e&&F.ɵɵelement(0,"belender-disabled-url")}function Me(e,t){if(1&e&&(F.ɵɵelementStart(0,"div",19),F.ɵɵelement(1,"mat-progress-spinner",20),F.ɵɵelementStart(2,"p",21),F.ɵɵtext(3),F.ɵɵelementEnd()()),2&e){const e=F.ɵɵnextContext(2);F.ɵɵadvance(3),F.ɵɵtextInterpolate(e.loading)}}function ke(e,t){if(1&e){const e=F.ɵɵgetCurrentView();F.ɵɵelementStart(0,"div",22)(1,"div",15)(2,"div",23),F.ɵɵtext(3,"Error!"),F.ɵɵelementEnd(),F.ɵɵelement(4,"div",24),F.ɵɵelementEnd(),F.ɵɵelementStart(5,"div",25)(6,"button",26),F.ɵɵlistener("click",(function(){F.ɵɵrestoreView(e);const t=F.ɵɵnextContext(2);return F.ɵɵresetView(t.error=!1)})),F.ɵɵtext(7,"Ingresar manualmente"),F.ɵɵelementEnd()()()}if(2&e){const e=F.ɵɵnextContext(2);F.ɵɵadvance(4),F.ɵɵstyleProp("color",e.data.styles.colors.text),F.ɵɵproperty("innerHTML",e.error,F.ɵɵsanitizeHtml)}}function Ie(e,t){if(1&e&&(F.ɵɵelementStart(0,"div",2)(1,"div"),F.ɵɵtemplate(2,ye,2,1,"div",3),F.ɵɵtemplate(3,Ce,4,3,"ng-container",4),F.ɵɵtemplate(4,Se,1,0,"belender-disabled-url",4),F.ɵɵtemplate(5,Me,4,1,"div",5),F.ɵɵtemplate(6,ke,8,3,"div",6),F.ɵɵelementEnd()()),2&e){const e=F.ɵɵnextContext();F.ɵɵadvance(1),F.ɵɵclassMapInterpolate1("h-full w-full flex-auto p-0 md:p-3 ",e.data.config.typography,""),F.ɵɵstyleProp("background",e.data.styles.colors.background),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",e.data.styles.withLogo),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",!e.error&&!e.disableURL),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",!e.error&&e.disableURL),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",e.loading&&!e.error),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",!e.loading&&e.error)}}function Ee(e,t){if(1&e&&F.ɵɵelement(0,"belender-widget-sms",27),2&e){const e=F.ɵɵnextContext();F.ɵɵproperty("solicitud",e.solicitud)}}function Te(e,t){if(1&e&&F.ɵɵelement(0,"belender-widget-pin",27),2&e){const e=F.ɵɵnextContext();F.ɵɵproperty("solicitud",e.solicitud)}}let Pe=class{constructor(e,t,n,i,r,s,o,a,l){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.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.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.setInitialData(this.userId)):(this.loading=!1,this.utils.setLoading(!1))}),(e=>{this.loading=!1,this.utils.setLoading(!1)})),"pro"!=N.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)}))}setInitialData(e){this.customizationService.getCustomization(e).then((e=>{e&&(this.data=e.data||e,this.disableURL=e.config.disableUrlWidget,this.validateRequestIdInUrl(),this.utils.setLoading(!1),this.cd.markForCheck())}),(e=>{console.error(e),this.utils.setLoading(!1)}))}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(j.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"}};Pe.ɵfac=function(e){return new(e||Pe)(F.ɵɵdirectiveInject(F.ChangeDetectorRef),F.ɵɵdirectiveInject(P.gz),F.ɵɵdirectiveInject(Y.F),F.ɵɵdirectiveInject(_.M),F.ɵɵdirectiveInject(q.U),F.ɵɵdirectiveInject(C.w),F.ɵɵdirectiveInject(V.v),F.ɵɵdirectiveInject(k.T),F.ɵɵdirectiveInject(H.uw))},Pe.ɵcmp=F.ɵɵdefineComponent({type:Pe,selectors:[["belender-widget-sms-pin"]],viewQuery:function(e,t){if(1&e&&F.ɵɵviewQuery(ve,5),2&e){let e;F.ɵɵqueryRefresh(e=F.ɵɵloadQuery())&&(t.formComponent=e.first)}},inputs:{data:"data",disableActions:"disableActions",step:"step",financiadorID:"financiadorID",solicitud:"solicitud"},features:[F.ɵɵProvidersFeature([{provide:L.o2,useValue:{appearance:"standard"}}])],decls:3,vars:3,consts:[["class","h-full widget-belender",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","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,"requestIDFromURL","data","userId","pinPackID","smsPackID","texts","solicitud","nextStep","goToTerms",4,"ngIf"],[3,"data","texts","retry",4,"ngIf"],["class","px-6 py-4 flex flex-col",4,"ngIf"],[3,"requestIDFromURL","data","userId","pinPackID","smsPackID","texts","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,"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,"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"],[3,"solicitud"]],template:function(e,t){1&e&&(F.ɵɵtemplate(0,Ie,7,10,"div",0),F.ɵɵtemplate(1,Ee,1,1,"belender-widget-sms",1),F.ɵɵtemplate(2,Te,1,1,"belender-widget-pin",1)),2&e&&(F.ɵɵproperty("ngIf",t.data&&"smspin"==t.mode),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",t.data&&"SMS"==t.mode),F.ɵɵadvance(1),F.ɵɵproperty("ngIf",t.data&&"ClavePin"==t.mode))},dependencies:[i.O5,u.lW,b.Ou,z.n,B.T,U.q,ge,_e],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}"]}),Pe=(0,D.gn)([(0,A.c)()],Pe);const Oe=[{path:":idUser/:pinPackID/:smsPackID",component:Pe},{path:":shortLink",component:Pe}];let De=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=F.ɵɵdefineNgModule({type:e}),e.ɵinj=F.ɵɵdefineInjector({imports:[P.Bz.forChild(Oe),P.Bz,O.d8]}),e})();var Le=n(1916),Ae=n(3006),Re=n(6981),Ne=n(3848),je=n(1129),Fe=n(9476),Ye=n(3295),qe=n(3300),Ve=n(865);let He=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=F.ɵɵdefineNgModule({type:e}),e.ɵinj=F.ɵɵdefineInjector({providers:[_.M,y.o,C.w,x.t,k.T,T.t,{provide:M.Ad,useValue:"es-ES"}],imports:[De,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,I.T5,E.Fk,Le.PinModule,Ae.SmsModule,Re.x,Ne.Nh,je.n,Fe.F,Ye.g,qe.C,Q.QA,Ve.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})()},3612:(e,t,n)=>{n.d(t,{b:()=>rt,db:()=>tt});var i=n(1481),r=n(4650),s=n(9299),o=n(7582),a=n(9933),l=n(7403),c=n(8460),d=n(6895),u=n(9101),h=n(5412);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){this.customizationStoreService=e,this.loading=!1,this.customizationData$=this.customizationStoreService.customizationData$.subscribe((e=>{this.customizationData=e,Object.keys(e).length>0&&this.setCustomization(this.customizationData)}))}setCustomization(e){this.loading=!0,e&&e.policy&&(this.policy=e.policy),this.loading=!1}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵdirectiveInject(c.r))},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.customizationData.styles.btnRound+"px"),r.ɵɵadvance(2),r.ɵɵstyleProp("color",t.customizationData.styles.colors.btnText)("background",t.customizationData.styles.colors.btnBg)("border-radius",t.customizationData.styles.btnRound+"px"),r.ɵɵproperty("mat-dialog-close",!0))},dependencies:[d.O5,u.lW,h.ZT,h.xY,h.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(7367),v=n(9045),y=n(2237),b=n(9199);const x=["configpanel"],w=["widgetCard"];function C(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 S(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(2);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(2);return r.ɵɵresetView(n.gotoLegal(t))})),r.ɵɵtext(6," Aviso legal"),r.ɵɵelementEnd()()()}}function M(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(2);return r.ɵɵresetView(n.gotoLegal(t))})),r.ɵɵtext(3," Aviso legal"),r.ɵɵelementEnd()()()}}function k(e,t){if(1&e&&(r.ɵɵelementContainerStart(0),r.ɵɵtemplate(1,S,7,0,"div",8),r.ɵɵtemplate(2,M,4,0,"div",8),r.ɵɵelementContainerEnd()),2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(1),r.ɵɵproperty("ngIf",e.showCopyright),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",!e.showCopyright)}}let I=class{constructor(e,t,n,i,r){this.customizationService=e,this.customizationStoreService=t,this.router=n,this.deviceInfoService=i,this.dialog=r,this.widgetHeight=0,this.copyrightName="",this.showCopyright=!1,this.loadingCustomization=!0,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"),"")}();let e=this.router.url.split("/");this.userId=e.length&&e.some((e=>"smspin"===e))?e&&e.length&&e[e.length-3]?e[e.length-3]:"":e&&e.length&&e[e.length-2]?e[e.length-2]:"",this.userId?this.setCustomization():(this.showCopyright=!0,this.loadingCustomization=!1)}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}))}setCustomization(){this.loadingCustomization=!0,this.customizationService.getCustomization(this.userId).then((e=>{this.customizationData=e,this.customizationStoreService.setCustomizationDataValue(this.customizationData),this.showCopyright=!this.customizationData||!this.customizationData.policy,this.loadingCustomization=!1})).catch((e=>{this.showCopyright=!0,this.loadingCustomization=!1}))}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,"*")}};I.ɵfac=function(e){return new(e||I)(r.ɵɵdirectiveInject(_.w),r.ɵɵdirectiveInject(c.r),r.ɵɵdirectiveInject(s.F0),r.ɵɵdirectiveInject(v.H),r.ɵɵdirectiveInject(h.uw))},I.ɵcmp=r.ɵɵdefineComponent({type:I,selectors:[["vex-widget-boxed-layout"]],viewQuery:function(e,t){if(1&e&&(r.ɵɵviewQuery(x,7),r.ɵɵviewQuery(w,5)),2&e){let e;r.ɵɵqueryRefresh(e=r.ɵɵloadQuery())&&(t.configpanel=e.first),r.ɵɵqueryRefresh(e=r.ɵɵloadQuery())&&(t.widgetCard=e.first)}},decls:10,vars:2,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,C,2,1,"span",7),r.ɵɵelementEnd(),r.ɵɵtemplate(9,k,3,2,"ng-container",7),r.ɵɵelementEnd()()),2&e&&(r.ɵɵadvance(8),r.ɵɵproperty("ngIf",t.showCopyright),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",!t.loadingCustomization))},dependencies:[d.O5,s.lC,y.w,b.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}"]}),I=(0,o.gn)([(0,a.c)()],I);var E=n(6e3),T=n(2567),P=n(2340),O=n(529);let D=(()=>{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(P.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(T.e),r.ɵɵinject(O.eN))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),L=(()=>{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(T.e),r.ɵɵinject(D))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac}),e})(),A=(()=>{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(D),r.ɵɵinject(T.e))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac}),e})();const R=[{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:I,children:[{path:"",loadChildren:()=>Promise.all([n.e(244),n.e(852)]).then(n.bind(n,7852)).then((e=>e.WidgetBoxedLayoutModule))}]}];let N=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[L,A],imports:[s.Bz.forRoot(R,{preloadingStrategy:E.tw,scrollPositionRestoration:"enabled",relativeLinkResolution:"corrected",anchorScrolling:"enabled"}),s.Bz,E.d8]}),e})();var j=n(7122);const F={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 Y=n(5861);function q(){return(q=(0,Y.Z)((function*(){const e=B();return{user_agent:navigator.userAgent,ip:yield V(),browser:Z(),device:G(),flowType:z(window.location.href),os:W(),os_version:$(),orientation:U(),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 V(){return H.apply(this,arguments)}function H(){return(H=(0,Y.Z)((function*(){try{return(yield(yield fetch("https://api.ipify.org?format=json")).json()).ip}catch{return"Not available"}}))).apply(this,arguments)}function z(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 B(){return{width:window.screen.width,height:window.screen.height}}function U(){return screen.orientation?screen.orientation.type:window.innerWidth>window.innerHeight?"landscape":"portrait"}function W(){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 $(){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 G(){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 Z(){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 K=n(1135);function Q(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)?Q(Object.assign({},r),s):s})),e):t}var J,X=((J=X||(X={})).apollo="vex-layout-apollo",J.zeus="vex-layout-zeus",J.hermes="vex-layout-hermes",J.poseidon="vex-layout-poseidon",J.ares="vex-layout-ares",J.ikaros="vex-layout-ikaros",X),ee=(()=>{return(e=ee||(ee={})).light="vex-style-light",e.default="vex-style-default",e.dark="vex-style-dark",ee;var e})();const te={id:X.apollo,name:"Apollo",style:{colorScheme:ee.default,colors:{primary:F.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}},ne=[te,Q({...te},{id:X.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}}),Q({...te},{id:X.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}}),Q({...te},{id:X.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}}),Q({...te},{id:X.zeus,name:"Zeus",imgSrc:"//vex-landing.visurel.com/assets/img/layouts/zeus.png",sidenav:{state:"collapsed"}}),Q({...te},{id:X.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 ie=n(4004),re=n(2289);let se=(()=>{class e{constructor(e,t){this.router=e,this.breakpointObserver=t,this._quickpanelOpenSubject=new K.X(!1),this.quickpanelOpen$=this._quickpanelOpenSubject.asObservable(),this._sidenavOpenSubject=new K.X(!1),this.sidenavOpen$=this._sidenavOpenSubject.asObservable(),this._sidenavCollapsedSubject=new K.X(!1),this.sidenavCollapsed$=this._sidenavCollapsedSubject.asObservable(),this._sidenavCollapsedOpenSubject=new K.X(!1),this.sidenavCollapsedOpen$=this._sidenavCollapsedOpenSubject.asObservable(),this._configpanelOpenSubject=new K.X(!1),this.configpanelOpen$=this._configpanelOpenSubject.asObservable(),this._searchOpen=new K.X(!1),this.searchOpen$=this._searchOpen.asObservable(),this.isDesktop$=this.breakpointObserver.observe("(min-width: 1280px)").pipe((0,ie.U)((e=>e.matches))),this.ltLg$=this.breakpointObserver.observe("(max-width: 1279px)").pipe((0,ie.U)((e=>e.matches))),this.gtMd$=this.breakpointObserver.observe("(min-width: 960px)").pipe((0,ie.U)((e=>e.matches))),this.ltMd$=this.breakpointObserver.observe("(max-width: 959px)").pipe((0,ie.U)((e=>e.matches))),this.gtSm$=this.breakpointObserver.observe("(min-width: 600px)").pipe((0,ie.U)((e=>e.matches))),this.isMobile$=this.breakpointObserver.observe("(max-width: 599px)").pipe((0,ie.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(re.Yg))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),oe=(()=>{class e{constructor(e,t){this.document=e,this.layoutService=t,this.defaultConfig=X.poseidon,this.configs=ne,this._configSubject=new K.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,ie.U)(e))}setConfig(e){const t=this.configs.find((t=>t.id===e));this._configSubject.next(t)}updateConfig(e){this._configSubject.next(Q({...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(ee).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(d.K0),r.ɵɵinject(se))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var ae=n(7579);let le=(()=>{class e{constructor(){this.items=[],this._openChangeSubject=new ae.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 ce=n(7392),de=n(5895),ue=n(5089);let he=(()=>{class e{constructor(e){this.http=e,this.data={},this.loadingData=new K.X(!1)}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)}))}))}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵinject(O.eN))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),pe=(()=>{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(ue.F),r.ɵɵinject(O.eN),r.ɵɵinject(de.T))},e.ɵprov=r.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var me=n(182),fe=n(1572);function ge(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 _e(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 ve=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,d,u,h,p,m,f){this.configService=e,this.localeId=t,this.auth=n,this.navigationService=i,this.matIconRegistry=r,this.domSanitizer=s,this.notiService=o,this.utils=a,this.cdRef=l,this.translateService=c,this.trelloService=d,this.webhooksService=u,this.router=h,this.deviceInfoService=p,this.route=m,this.renderer=f,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.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})),j.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 g=F.gray;let _=null;localStorage.getItem("belender-sidenav-closed")&&(_=JSON.parse(localStorage.getItem("belender-sidenav-closed"))?"collapsed":"expanded"),g&&this.configService.updateConfig({style:{colors:{primary:g}},sidenav:{state:_||"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:",P.N.isWebComponent?"ShadowDom":"Emulated"),function(){return q.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(oe),r.ɵɵdirectiveInject(r.LOCALE_ID),r.ɵɵdirectiveInject(T.e),r.ɵɵdirectiveInject(le),r.ɵɵdirectiveInject(ce.jv),r.ɵɵdirectiveInject(i.DomSanitizer),r.ɵɵdirectiveInject(de.T),r.ɵɵdirectiveInject(ue.F),r.ɵɵdirectiveInject(r.ChangeDetectorRef),r.ɵɵdirectiveInject(he),r.ɵɵdirectiveInject(pe),r.ɵɵdirectiveInject(me.t),r.ɵɵdirectiveInject(s.F0),r.ɵɵdirectiveInject(v.H),r.ɵɵdirectiveInject(s.gz),r.ɵɵdirectiveInject(r.Renderer2))},e.ɵcmp=r.ɵɵdefineComponent({type:e,selectors:[["vex-root"]],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,ge,4,1,"div",0),r.ɵɵtemplate(2,_e,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:[d.O5,s.lC,fe.Ou,ce.Hw],styles:[":host{position:relative;display:block}.loading-wrapper{position:fixed;top:0;width:100vw;height:100vh;background:white;z-index:9999999!important;display:flex;justify-content:center;align-items:center;flex-direction:column}body{max-height:100vh;overflow-y:auto}.loading-wrapper p{padding:10px 30px;border-radius:100px}.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 ye=n(1516),be=n(1207),xe=n(9549);let we=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[{provide:xe.o2,useValue:{appearance:"fill"}}],imports:[d.ez,be.x,be.x]}),e})();var Ce=n(7533),Se=n(259),Me=n(7396),ke=n(7009),Ie=n(4006);let Ee=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({imports:[d.ez,Ie.FormsModule,Ie.ReactiveFormsModule,xe.lN,u.ot]}),e})();var Te=n(3238),Pe=n(2029),Oe=n(7717),De=n(7795),Le=n(1452);const Ae=[{path:"",component:l.N}];let Re=(()=>{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(Ae),s.Bz,E.d8]}),e})();var Ne=n(6383),je=n(5028);let Fe=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[_.w],imports:[d.ez,Re,Ce.q,fe.Cq,Ne.G,je.q]}),e})();const Ye=[{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(Ye),s.Bz,E.d8]}),e})();var Ve=n(7838);let He=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[_.w],imports:[qe,Ce.q,fe.Cq,Ne.G,je.q,Ve.y]}),e})();const ze=[{path:"",component:n(3746).R}];let Be=(()=>{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(ze),s.Bz,E.d8]}),e})();var Ue=n(865);let We=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[_.w],imports:[Be,Ce.q,fe.Cq,Ne.G,je.q,Ve.y,Ue.q]}),e})();const $e=[{path:"",component:g}];let Ge=(()=>{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($e),s.Bz,E.d8]}),e})(),Ze=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r.ɵɵdefineNgModule({type:e}),e.ɵinj=r.ɵɵdefineInjector({providers:[_.w],imports:[d.ez,Ge,Ce.q,fe.Cq,Ne.G,je.q]}),e})();var Ke=n(1258),Qe=n(3295),Je=n(8184);let Xe=(()=>{class e extends Je.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 et=(0,Se.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/"}),tt=(0,Me.ad)(et);let nt=localStorage.getItem("belender-language");function it(e){return()=>e.use(nt||"sp")}let rt=(()=>{class e{constructor(e){if(this.injector=e,P.N.isWebComponent){console.log("📦 Generando BelenderWebComponent class...");const t=(0,Le.iD)(ve,{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:[pe,de.T,ue.F,T.e,D,Pe.F,he,{provide:r.APP_INITIALIZER,useFactory:it,deps:[he],multi:!0},{provide:Te.Ad,useValue:"es-ES"},{provide:Oe.gJ,useValue:{headless:!0}},{provide:Je.Xj,useClass:Xe}],imports:[i.BrowserModule,N,ye.PW,O.JF,we,Ce.q,fe.Cq,ke.ZX,Ee,Oe.FE.forRoot(),De.QA,ce.Ps,Fe,He,We,Ze,Ke.H,Qe.g]}),e})()},7533:(e,t,n)=>{n.d(t,{q:()=>Y});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","Telefono",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 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,M.c,h.ot,a.Ps]}),e})(),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,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,I]}),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,k,E,o.Bz,I,T,P.a,O.y]}),e})();var L=n(1948),A=n(455),R=n(2635),N=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,R.WG,N.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})(),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,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.customizationData$=this.customizationStoreService.customizationData$.subscribe((e=>{Object.keys(e).length>0&&(this.customizationData=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:27,vars:11,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"]],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()()),2&e&&(i.ɵɵadvance(7),i.ɵɵproperty("src",i.ɵɵpipeBind1(8,5,"img/illustrations/expiration-date-1.png")),i.ɵɵadvance(3),i.ɵɵproperty("src",i.ɵɵpipeBind1(11,7,"img/illustrations/expiration-date-2.png")),i.ɵɵadvance(12),i.ɵɵproperty("src",i.ɵɵpipeBind1(23,9,"img/illustrations/expiration-date-3.png")),i.ɵɵadvance(3),i.ɵɵstyleProp("border-radius",t.customizationData.styles.btnRound+"px"))},dependencies:[s.lW,o.ZT,o.xY,o.H8,c,d.z]}),e})()},7403:(e,t,n)=>{n.d(t,{N:()=>h});var i=n(4650),r=n(8460),s=n(6895),o=n(9101),a=n(5412);function l(e,t){1&e&&(i.ɵɵelementStart(0,"div",7)(1,"h1"),i.ɵɵtext(2,"Aviso legal"),i.ɵɵelementEnd(),i.ɵɵelementStart(3,"h2"),i.ɵɵtext(4,"1.- Derecho de la información"),i.ɵɵelementEnd(),i.ɵɵelementStart(5,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(7,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(9,"p"),i.ɵɵtext(10),i.ɵɵelementEnd(),i.ɵɵelementStart(11,"h2"),i.ɵɵtext(12,"2.- Uso del sitio web"),i.ɵɵelementEnd(),i.ɵɵelementStart(13,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(15,"p"),i.ɵɵ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:"),i.ɵɵelementEnd(),i.ɵɵelementStart(17,"ul")(18,"li"),i.ɵɵtext(19,"Incurrir en actividades ilícitas, ilegales o contrarias a la buena fe y al orden público."),i.ɵɵelementEnd(),i.ɵɵelementStart(20,"li"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(22,"li"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(24,"li"),i.ɵɵtext(25,"Intentar acceder, utilizar y/o manipular los datos de BELENDER terceros proveedores y otros usuarios."),i.ɵɵelementEnd(),i.ɵɵelementStart(26,"li"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(28,"li"),i.ɵɵ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."),i.ɵɵelementEnd()(),i.ɵɵelementStart(30,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(32,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(34,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(36,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(38,"h2"),i.ɵɵtext(39,"3.- Propiedad Intelectual e Industrial"),i.ɵɵelementEnd(),i.ɵɵelementStart(40,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(42,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(44,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(46,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(48,"h2"),i.ɵɵtext(49,"4.- Responsabilidad y Garantías"),i.ɵɵelementEnd(),i.ɵɵelementStart(50,"p"),i.ɵɵ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:"),i.ɵɵelementEnd(),i.ɵɵelementStart(52,"ul")(53,"li"),i.ɵɵtext(54,"La continuidad y disponibilidad de los Contenidos y Servicios."),i.ɵɵelementEnd(),i.ɵɵelementStart(55,"li"),i.ɵɵtext(56,"La ausencia de errores en dichos Contenidos ni la corrección de cualquier defecto que pudiera ocurrir."),i.ɵɵelementEnd(),i.ɵɵelementStart(57,"li"),i.ɵɵtext(58,"La ausencia de virus y/o demás componentes dañinos."),i.ɵɵelementEnd(),i.ɵɵelementStart(59,"li"),i.ɵɵtext(60,"Los daños o perjuicios que cause cualquier persona que vulnere los sistemas de seguridad de BELENDER."),i.ɵɵelementEnd(),i.ɵɵelementStart(61,"li"),i.ɵɵ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."),i.ɵɵelementEnd()(),i.ɵɵelementStart(63,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(65,"h2"),i.ɵɵtext(66,"5.- Duración y modificación"),i.ɵɵelementEnd(),i.ɵɵelementStart(67,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(69,"p"),i.ɵɵ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."),i.ɵɵelementEnd(),i.ɵɵelementStart(71,"p"),i.ɵɵ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."),i.ɵɵelementEnd()()),2&e&&(i.ɵɵadvance(10),i.ɵɵ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 c(e,t){if(1&e&&(i.ɵɵelementContainerStart(0),i.ɵɵelement(1,"div",8),i.ɵɵelementContainerEnd()),2&e){const e=i.ɵɵnextContext(2);i.ɵɵadvance(1),i.ɵɵproperty("innerHTML",e.legal,i.ɵɵsanitizeHtml)}}function d(e,t){1&e&&(i.ɵɵelementStart(0,"div",9),i.ɵɵtext(1," Cargando aviso legal "),i.ɵɵelementEnd())}function u(e,t){if(1&e&&(i.ɵɵelementContainerStart(0),i.ɵɵelementStart(1,"mat-dialog-content",1)(2,"div",2),i.ɵɵtemplate(3,l,73,1,"div",3),i.ɵɵtemplate(4,c,2,1,"ng-container",0),i.ɵɵtemplate(5,d,2,0,"div",4),i.ɵɵelementEnd()(),i.ɵɵelementStart(6,"mat-dialog-actions",5)(7,"button",6),i.ɵɵtext(8,"Cerrar"),i.ɵɵelementEnd()(),i.ɵɵelementContainerEnd()),2&e){const e=i.ɵɵnextContext();i.ɵɵadvance(3),i.ɵɵproperty("ngIf",!e.legal&&!e.loading),i.ɵɵadvance(1),i.ɵɵproperty("ngIf",e.legal&&!e.loading),i.ɵɵadvance(1),i.ɵɵproperty("ngIf",e.loading),i.ɵɵadvance(2),i.ɵɵstyleProp("border-radius",e.customizationData.styles.btnRound+"px")}}let h=(()=>{class e{constructor(e){this.customizationStoreService=e,this.loading=!1}ngOnInit(){this.customizationData$=this.customizationStoreService.customizationData$.subscribe((e=>{e&&Object.keys(e).length>0&&(this.customizationData=e,this.setCustomization(this.customizationData))}))}setCustomization(e){this.loading=!0,e&&e.policy&&(this.legal=e.policy),this.loading=!1}}return e.ɵfac=function(t){return new(t||e)(i.ɵɵdirectiveInject(r.r))},e.ɵcmp=i.ɵɵ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 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"],[1,"w-full","max-w-xl"],[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&&i.ɵɵtemplate(0,u,9,5,"ng-container",0),2&e&&i.ɵɵproperty("ngIf",t.customizationData)},dependencies:[s.O5,o.lW,a.ZT,a.xY,a.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,{$:()=>l});var i=n(4650),r=n(8460),s=n(9101),o=n(5412),a=n(9186);let l=(()=>{class e{constructor(e){this.customizationStoreService=e,this.loading=!0,this.customizationData$=this.customizationStoreService.customizationData$.subscribe((e=>{this.customizationData=e,Object.keys(e).length>0&&this.setCustomization(this.customizationData)}))}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:38,vars:21,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"],["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)(34,"button",11),i.ɵɵtext(35,"Cancelar"),i.ɵɵelementEnd(),i.ɵɵelementStart(36,"button",12),i.ɵɵtext(37,"Aceptar"),i.ɵɵelementEnd()()),2&e&&(i.ɵɵadvance(9),i.ɵɵproperty("src",i.ɵɵpipeBind1(10,13,"img/illustrations/extranjeros.png"),i.ɵɵsanitizeUrl),i.ɵɵadvance(9),i.ɵɵproperty("src",i.ɵɵpipeBind1(19,15,"img/illustrations/residencia.png"),i.ɵɵsanitizeUrl),i.ɵɵadvance(9),i.ɵɵproperty("src",i.ɵɵpipeBind1(28,17,"img/illustrations/ciudadano.png"),i.ɵɵsanitizeUrl),i.ɵɵadvance(2),i.ɵɵproperty("src",i.ɵɵpipeBind1(30,19,"img/illustrations/ciudadano2.png"),i.ɵɵsanitizeUrl),i.ɵɵadvance(5),i.ɵɵstyleProp("border-radius",t.customizationData.styles.btnRound+"px"),i.ɵɵadvance(2),i.ɵɵstyleProp("color",t.customizationData.styles.colors.btnText)("background",t.customizationData.styles.colors.btnBg)("border-radius",t.customizationData.styles.btnRound+"px"),i.ɵɵproperty("mat-dialog-close",!0))},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:()=>c});var i=n(5412),r=n(4650),s=n(8460),o=n(6895),a=n(9101);function l(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.customizationData.styles.btnRound+"px"),r.ɵɵadvance(2),r.ɵɵstyleProp("color",e.customizationData.styles.colors.btnText)("background",e.customizationData.styles.colors.btnBg)("border-radius",e.customizationData.styles.btnRound+"px"),r.ɵɵproperty("mat-dialog-close",!0)}}let c=(()=>{class e{constructor(e,t){this.customizationStoreService=e,this.data=t,this.loading=!0,this.customizationData$=this.customizationStoreService.customizationData$.subscribe((e=>{this.customizationData=e,Object.keys(e).length>0&&this.setCustomization(this.customizationData)}))}setCustomization(e){this.loading=!0,this.flowName=this.getParsedFlowName(this.data.flow),console.warn(e,this.flowName),this.terms_and_conditions=e[this.flowName]&&e[this.flowName].terms_and_conditions?e[this.flowName].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 el flujo <b>${this.flowName}</b></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.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,l,5,9,"ng-container",6),r.ɵɵelementEnd()),2&e&&(r.ɵɵadvance(34),r.ɵɵproperty("ngIf",t.customizationData))},dependencies:[o.O5,a.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:()=>u});var i=n(5412),r=n(4650),s=n(8460),o=n(1572),a=n(6895),l=n(9101);function c(e,t){1&e&&(r.ɵɵelementStart(0,"div",7),r.ɵɵelement(1,"mat-progress-spinner",8),r.ɵɵelementStart(2,"p",9),r.ɵɵtext(3,"Cargando términos.."),r.ɵɵelementEnd()())}function d(e,t){if(1&e&&(r.ɵɵelementContainerStart(0),r.ɵɵelementStart(1,"button",10),r.ɵɵtext(2,"Cancelar"),r.ɵɵelementEnd(),r.ɵɵelementStart(3,"button",11),r.ɵɵtext(4,"Aceptar"),r.ɵɵelementEnd(),r.ɵɵelementContainerEnd()),2&e){const e=r.ɵɵnextContext();r.ɵɵadvance(1),r.ɵɵstyleProp("border-radius",(null==e.customizationData||null==e.customizationData.styles?null:e.customizationData.styles.btnRound)+"px"),r.ɵɵadvance(2),r.ɵɵstyleProp("color",null==e.customizationData||null==e.customizationData.styles||null==e.customizationData.styles.colors?null:e.customizationData.styles.colors.btnText)("background",null==e.customizationData||null==e.customizationData.styles||null==e.customizationData.styles.colors?null:e.customizationData.styles.colors.btnBg)("border-radius",(null==e.customizationData||null==e.customizationData.styles?null:e.customizationData.styles.btnRound)+"px"),r.ɵɵproperty("mat-dialog-close",!0)}}let u=(()=>{class e{constructor(e,t){this.customizationStoreService=e,this.data=t,this.loading=!0,this.customizationData$=this.customizationStoreService.customizationData$.subscribe((e=>{console.warn(e),this.customizationData=e,Object.keys(e).length>0&&this.setCustomization(this.customizationData)}))}setCustomization(e){this.loading=!0,this.flowName=this.getParsedFlowName(this.data.flow),console.warn(e,this.flowName),this.terms_and_conditions=e[this.flowName]&&e[this.flowName].terms_and_conditions?e[this.flowName].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 el flujo <b>${this.flowName}</b></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";case"certificate":return"ClientCertificate";default:return e}}}return e.ɵfac=function(t){return new(t||e)(r.ɵɵdirectiveInject(s.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"],[1,"max-w-xl","overflow-y-auto",3,"innerHTML"],["align","end"],[4,"ngIf"],[1,"flex","flex-col","p-10","gap-2","items-center"],["diameter","30","mode","indeterminate","color","primary"],[1,"mt-6","text-center","text-slate-800"],["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,c,4,0,"div",3),r.ɵɵelement(4,"div",4),r.ɵɵelementEnd()()(),r.ɵɵelementStart(5,"mat-dialog-actions",5),r.ɵɵtemplate(6,d,5,9,"ng-container",6),r.ɵɵelementEnd()),2&e&&(r.ɵɵadvance(3),r.ɵɵproperty("ngIf",t.loading),r.ɵɵadvance(1),r.ɵɵproperty("innerHTML",t.terms_and_conditions,r.ɵɵsanitizeHtml),r.ɵɵadvance(2),r.ɵɵproperty("ngIf",t.customizationData))},dependencies:[o.Ou,a.O5,l.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})()},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(3612),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:()=>d});var i=n(6197),r=n(1135),s=n(2340),o=n(4650),a=n(5089),l=n(529),c=n(6554);let d=(()=>{class e{constructor(e,t,n){this.utils=e,this.http=t,this.localFetch=n,this.db=(0,i.N8)(),this._custommization=new r.X(null)}bindCustomizationFromFirebase(e){const t=(0,i.iH)(this.db,`customization/${e}`);(0,i.jM)(t,(e=>{const t=e.val();this._custommization.next(t)}))}getCustomization(e){return new Promise(((t,n)=>{this.http.get(s.N.baseUrl+"/users/"+e+"/customization").subscribe((e=>{e?t(e):n(e)}),(e=>{n(e)}))}))}subscribeCustomization(){return this._custommization.asObservable()}saveCustomization(e,t,n){const r=(0,i.N8)();return(0,i.t8)((0,i.iH)(r,"customization/"+e),t),new Promise(((n,i)=>{this.localFetch.postFetch(s.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)(o.ɵɵinject(a.F),o.ɵɵinject(l.eN),o.ɵɵinject(c.r))},e.ɵprov=o.ɵɵ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.customizationData=new i.X({}),this.customizationData$=this.customizationData.asObservable()}setCustomizationDataValue(e){this.customizationData.next(e)}}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:()=>h});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);let h=(()=>{class e{constructor(e,t){this.snackBar=e,this.dialog=t,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){r().fire({title:e,text:t||"",icon:n||"info",showCancelButton:!!i,confirmButtonText:i&&i.okButtonLabel?i.okButtonLabel:"OK",cancelButtonText:i&&i.cancelButtonLabel?i.cancelButtonLabel:""}).then((e=>{e.value?i&&i.okAction&&i.okAction():e.dismiss===r().DismissReason.cancel&&i&&i.cancelAction&&i.cancelAction()}))}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))},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})()}},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!==k&&(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(k,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(I,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(k,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!=I)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",k="unknown",I="microTask",E="macroTask",T="eventTask",P={},O={symbol:s,currentZoneFrame:()=>D,onUnhandledError:R,microtaskDrainDone:R,scheduleMicroTask:v,showUncaughtError:()=>!a[s("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:R,patchMethod:()=>R,bindArguments:()=>[],patchThen:()=>R,patchMacroTask:()=>R,patchEventPrototype:()=>R,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>R,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>R,wrapWithCurrentZone:()=>R,filterProperties:()=>[],attachOriginToPatched:()=>R,_redefineProperty:()=>R,patchCallbacks:()=>R,nativeScheduleMicroTask:_};let D={parent:null,zone:new a(null,null)},L=null,A=0;function R(){}i("Zone","Zone"),e.Zone=a}(typeof window<"u"&&window||typeof self<"u"&&self||global);
639
639
  /**
640
640
  * @license
641
641
  * Copyright Google LLC All Rights Reserved.
@@ -9003,4 +9003,16 @@ class{constructor(){this.changes=new qs((e=>e.toString()),((e,t)=>e.isEqual(t)))
9003
9003
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9004
9004
  * See the License for the specific language governing permissions and
9005
9005
  * limitations under the License.
9006
- */(u,e,n))},error:t[a+1],complete:t[a+2]};else{const n=zc(e,$c);u=zc(n.firestore,Jc),h=n._query;const i=new Dd(u);d={next:e=>{t[a]&&t[a](new Pd(u,i,n,e))},error:t[a+1],complete:t[a+2]},function(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new ji(Ni.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(e._query)}return function(e,t,n,i){const s=new kc(i),o=new Zl(t,s,n);return e.asyncQueue.enqueueAndForget((0,r.Z)((function*(){return function(e,t){return Bl.apply(this,arguments)}(yield jc(e),o)}))),()=>{s.Dc(),e.asyncQueue.enqueueAndForget((0,r.Z)((function*(){return function(e,t){return Ul.apply(this,arguments)}(yield jc(e),o)})))}}(function(e){return e._firestoreClient||ed(e),e._firestoreClient.verifyNotTerminated(),e._firestoreClient}(u),h,c,d)}!function(e,t=!0){ki=s.Jn,(0,s.Xd)(new o.wA("firestore",((e,{instanceIdentifier:n,options:i})=>{const r=e.getProvider("app").getImmediate(),s=new Jc(new Hi(e.getProvider("auth-internal")),new Wi(e.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new ji(Ni.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Lr(e.options.projectId,t)}(r,n),r);return i=Object.assign({useFetchStreams:t},i),s._setSettings(i),s}),"PUBLIC").setMultipleInstances(!0)),(0,s.KN)(Si,"3.13.0",e),(0,s.KN)(Si,"3.13.0","esm2017")}()},2440:(e,t,n)=>{n.d(t,{Xz:()=>u,df:()=>d});var i=n(4650),r=n(4006),s=n(6895);function o(e,t){if(1&e){const e=i.ɵɵgetCurrentView();i.ɵɵelementStart(0,"input",3,4),i.ɵɵlistener("paste",(function(t){i.ɵɵrestoreView(e);const n=i.ɵɵnextContext(2);return i.ɵɵresetView(n.handlePaste(t))}))("keyup",(function(t){const n=i.ɵɵrestoreView(e).index,r=i.ɵɵnextContext(2);return i.ɵɵresetView(r.onKeyUp(t,n))}))("input",(function(t){i.ɵɵrestoreView(e);const n=i.ɵɵnextContext(2);return i.ɵɵresetView(n.onInput(t))}))("keydown",(function(t){const n=i.ɵɵrestoreView(e).index,r=i.ɵɵnextContext(2);return i.ɵɵresetView(r.onKeyDown(t,n))})),i.ɵɵelementEnd()}if(2&e){const e=t.$implicit,n=t.index,r=i.ɵɵnextContext(2);i.ɵɵclassMapInterpolate1("otp-input ",r.config.inputClass,""),i.ɵɵproperty("pattern",r.config.allowNumbersOnly?"\\d*":"")("type",r.inputType)("placeholder",(null==r.config?null:r.config.placeholder)||"")("ngStyle",r.config.inputStyles)("formControl",r.otpForm.controls[e])("id",r.getBoxId(n))}}function a(e,t){if(1&e&&(i.ɵɵelementStart(0,"div",1),i.ɵɵtemplate(1,o,2,9,"input",2),i.ɵɵpipe(2,"keys"),i.ɵɵelementEnd()),2&e){const e=i.ɵɵnextContext();i.ɵɵclassMapInterpolate1("ng-otp-input-wrapper wrapper ",e.config.containerClass,""),i.ɵɵpropertyInterpolate1("id","c_",e.componentKey,""),i.ɵɵproperty("ngStyle",e.config.containerStyles),i.ɵɵadvance(1),i.ɵɵproperty("ngForOf",i.ɵɵpipeBind1(2,6,null==e.otpForm?null:e.otpForm.controls))}}class l{static ifTab(e){return this.ifKey(e,"Tab")}static ifDelete(e){return this.ifKey(e,"Delete;Del")}static ifBackspace(e){return this.ifKey(e,"Backspace")}static ifRightArrow(e){return this.ifKey(e,"ArrowRight;Right")}static ifLeftArrow(e){return this.ifKey(e,"ArrowLeft;Left")}static ifSpacebar(e){return this.ifKey(e,"Spacebar; ")}static ifKey(e,t){return t.split(";").some((t=>t===e.key))}}let c=(()=>{class e{transform(e){return Object.keys(e)}}return e.ɵfac=function(t){return new(t||e)},e.ɵpipe=i.ɵɵdefinePipe({name:"keys",type:e,pure:!0}),e})(),d=(()=>{class e{constructor(e,t){this.keysPipe=e,this.document=t,this.config={length:4},this.onInputChange=new i.EventEmitter,this.inputControls=new Array(this.config.length),this.componentKey=Math.random().toString(36).substring(2)+(new Date).getTime().toString(36)}get inputType(){return this.config?.isPasswordInput?"password":this.config?.allowNumbersOnly?"tel":"text"}ngOnInit(){this.otpForm=new r.FormGroup({});for(let e=0;e<this.config.length;e++)this.otpForm.addControl(this.getControlName(e),new r.FormControl);this.otpForm.valueChanges.subscribe((e=>{this.keysPipe.transform(this.otpForm.controls).forEach((e=>{var t=this.otpForm.controls[e].value;t&&t.length>1&&(t.length>=this.config.length?this.setValue(t):this.rebuildValue())}))}))}ngAfterViewInit(){if(!this.config.disableAutoFocus){const e=this.document.getElementById(`c_${this.componentKey}`);if(e){const t=e.getElementsByClassName("otp-input")[0];t&&t.focus&&t.focus()}}}getControlName(e){return`ctrl_${e}`}onKeyDown(e,t){const n=this.getBoxId(t-1),i=this.getBoxId(t);return l.ifSpacebar(e)?(e.preventDefault(),!1):l.ifBackspace(e)?(e.target.value?this.clearInput(i,t):(this.clearInput(n,t-1),this.setSelected(n)),void this.rebuildValue()):void 0}onInput(e){if(this.config.allowNumbersOnly&&!this.validateNumber(this.currentVal?`${this.currentVal}${e.target.value}`:e.target.value))return e.target.value="",e.stopPropagation(),void e.preventDefault()}onKeyUp(e,t){l.ifTab(e)&&(t-=1);const n=this.getBoxId(t+1),i=this.getBoxId(t-1),r=this.getBoxId(t);return l.ifRightArrow(e)?(e.preventDefault(),void this.setSelected(n)):l.ifLeftArrow(e)?(e.preventDefault(),void this.setSelected(i)):l.ifDelete(e)?(e.target.value?this.clearInput(r,t):(this.clearInput(i,t-1),this.setSelected(i)),void this.rebuildValue()):void(!e.target.value||(this.ifValidKeyCode(e)&&this.setSelected(n),this.rebuildValue()))}validateNumber(e){return e&&/^[0-9]+$/.test(e)}getBoxId(e){return`otp_${e}_${this.componentKey}`}clearInput(e,t){let n=this.getControlName(t);this.otpForm.controls[n]?.setValue(null);const i=this.document.getElementById(e);i&&i instanceof HTMLInputElement&&(i.value=null)}setSelected(e){this.focusTo(e);const t=this.document.getElementById(e);t&&t.setSelectionRange&&setTimeout((()=>{t.setSelectionRange(0,1)}),0)}ifValidKeyCode(e){const t=e.key;return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)||/[a-zA-Z0-9-_]/.test(t)}focusTo(e){const t=this.document.getElementById(e);t&&t.focus()}setValue(e){if(!this.config.allowNumbersOnly||!isNaN(e)){if(this.otpForm.reset(),!e)return void this.rebuildValue();if(e=e.toString().replace(/\s/g,""),Array.from(e).forEach(((e,t)=>{this.otpForm.get(this.getControlName(t))&&this.otpForm.get(this.getControlName(t)).setValue(e)})),!this.config.disableAutoFocus){const n=this.document.getElementById(`c_${this.componentKey}`);var t=e.length<this.config.length?e.length:this.config.length-1;let i=n.getElementsByClassName("otp-input")[t];i&&i.focus&&i.focus()}this.rebuildValue()}}rebuildValue(){let e="";this.keysPipe.transform(this.otpForm.controls).forEach((t=>{if(this.otpForm.controls[t].value){let n=this.otpForm.controls[t].value,i=n.length>1,r=!this.config.allowNumbersOnly&&this.config.letterCase&&("upper"==this.config.letterCase.toLocaleLowerCase()||"lower"==this.config.letterCase.toLocaleLowerCase());n=n[0];let s=r?"upper"==this.config.letterCase.toLocaleLowerCase()?n.toUpperCase():n.toLowerCase():n;r&&s==n?r=!1:n=s,e+=n,(i||r)&&this.otpForm.controls[t].setValue(n)}})),this.formCtrl?.setValue&&this.formCtrl.setValue(e),this.onInputChange.emit(e),this.currentVal=e}handlePaste(e){let t=e.clipboardData||window.clipboardData;if(t)var n=t.getData("Text");e.stopPropagation(),e.preventDefault(),n&&(!this.config.allowNumbersOnly||this.validateNumber(n))&&this.setValue(n)}}return e.ɵfac=function(t){return new(t||e)(i.ɵɵdirectiveInject(c),i.ɵɵdirectiveInject(s.K0))},e.ɵcmp=i.ɵɵdefineComponent({type:e,selectors:[["ng-otp-input"]],inputs:{config:"config",formCtrl:"formCtrl"},outputs:{onInputChange:"onInputChange"},decls:1,vars:1,consts:[[3,"class","id","ngStyle",4,"ngIf"],[3,"id","ngStyle"],["autocomplete","one-time-code",3,"pattern","type","placeholder","ngStyle","class","formControl","id","paste","keyup","input","keydown",4,"ngFor","ngForOf"],["autocomplete","one-time-code",3,"pattern","type","placeholder","ngStyle","formControl","id","paste","keyup","input","keydown"],["inp",""]],template:function(e,t){1&e&&i.ɵɵtemplate(0,a,3,8,"div",0),2&e&&i.ɵɵproperty("ngIf",null==t.otpForm?null:t.otpForm.controls)},dependencies:[s.O5,s.PC,s.sg,r.DefaultValueAccessor,r.PatternValidator,r.NgControlStatus,r.FormControlDirective,c],styles:[".otp-input[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:4px;border:solid 1px #c5c5c5;text-align:center;font-size:32px}.ng-otp-input-wrapper[_ngcontent-%COMP%] .otp-input[_ngcontent-%COMP%]:not(:last-child){margin-right:8px}@media screen and (max-width: 767px){.otp-input[_ngcontent-%COMP%]{width:40px;font-size:24px;height:40px}}@media screen and (max-width: 420px){.otp-input[_ngcontent-%COMP%]{width:30px;font-size:18px;height:30px}}"]}),e})(),u=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i.ɵɵdefineNgModule({type:e}),e.ɵinj=i.ɵɵdefineInjector({providers:[c],imports:[[s.ez,r.FormsModule,r.ReactiveFormsModule]]}),e})()},7717:(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})()},5861:(e,t,n)=>{function i(e,t,n,i,r,s,o){try{var a=e[s](o),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,s){var o=e.apply(t,n);function a(e){i(o,r,s,a,l,"next",e)}function l(e){i(o,r,s,a,l,"throw",e)}a(void 0)}))}}n.d(t,{Z:()=>r})},7582:(e,t,n)=>{function i(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function r(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{l(i.next(e))}catch(e){s(e)}}function a(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(o,a)}l((i=i.apply(e,t||[])).next())}))}function s(e){return this instanceof s?(this.v=e,this):new s(e)}function o(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",(function(e){return function(t){return Promise.resolve(t).then(e,d)}})),i[Symbol.asyncIterator]=function(){return this},i;function a(e,t){r[e]&&(i[e]=function(t){return new Promise((function(n,i){o.push([e,t,n,i])>1||l(e,t)}))},t&&(i[e]=t(i[e])))}function l(e,t){try{!function(e){e.value instanceof s?Promise.resolve(e.value.v).then(c,d):u(o[0][2],e)}(r[e](t))}catch(e){u(o[0][3],e)}}function c(e){l("next",e)}function d(e){l("throw",e)}function u(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}}function a(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){!function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}(i,r,(t=e[n](t)).done,t.value)}))}}}n.d(t,{FC:()=>o,KL:()=>a,gn:()=>i,mG:()=>r,qq:()=>s}),"function"==typeof SuppressedError&&SuppressedError}}]);
9006
+ */(u,e,n))},error:t[a+1],complete:t[a+2]};else{const n=zc(e,$c);u=zc(n.firestore,Jc),h=n._query;const i=new Dd(u);d={next:e=>{t[a]&&t[a](new Pd(u,i,n,e))},error:t[a+1],complete:t[a+2]},function(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new ji(Ni.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(e._query)}return function(e,t,n,i){const s=new kc(i),o=new Zl(t,s,n);return e.asyncQueue.enqueueAndForget((0,r.Z)((function*(){return function(e,t){return Bl.apply(this,arguments)}(yield jc(e),o)}))),()=>{s.Dc(),e.asyncQueue.enqueueAndForget((0,r.Z)((function*(){return function(e,t){return Ul.apply(this,arguments)}(yield jc(e),o)})))}}(function(e){return e._firestoreClient||ed(e),e._firestoreClient.verifyNotTerminated(),e._firestoreClient}(u),h,c,d)}!function(e,t=!0){ki=s.Jn,(0,s.Xd)(new o.wA("firestore",((e,{instanceIdentifier:n,options:i})=>{const r=e.getProvider("app").getImmediate(),s=new Jc(new Hi(e.getProvider("auth-internal")),new Wi(e.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new ji(Ni.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Lr(e.options.projectId,t)}(r,n),r);return i=Object.assign({useFetchStreams:t},i),s._setSettings(i),s}),"PUBLIC").setMultipleInstances(!0)),(0,s.KN)(Si,"3.13.0",e),(0,s.KN)(Si,"3.13.0","esm2017")}()},2440:(e,t,n)=>{n.d(t,{Xz:()=>u,df:()=>d});var i=n(4650),r=n(4006),s=n(6895);function o(e,t){if(1&e){const e=i.ɵɵgetCurrentView();i.ɵɵelementStart(0,"input",3,4),i.ɵɵlistener("paste",(function(t){i.ɵɵrestoreView(e);const n=i.ɵɵnextContext(2);return i.ɵɵresetView(n.handlePaste(t))}))("keyup",(function(t){const n=i.ɵɵrestoreView(e).index,r=i.ɵɵnextContext(2);return i.ɵɵresetView(r.onKeyUp(t,n))}))("input",(function(t){i.ɵɵrestoreView(e);const n=i.ɵɵnextContext(2);return i.ɵɵresetView(n.onInput(t))}))("keydown",(function(t){const n=i.ɵɵrestoreView(e).index,r=i.ɵɵnextContext(2);return i.ɵɵresetView(r.onKeyDown(t,n))})),i.ɵɵelementEnd()}if(2&e){const e=t.$implicit,n=t.index,r=i.ɵɵnextContext(2);i.ɵɵclassMapInterpolate1("otp-input ",r.config.inputClass,""),i.ɵɵproperty("pattern",r.config.allowNumbersOnly?"\\d*":"")("type",r.inputType)("placeholder",(null==r.config?null:r.config.placeholder)||"")("ngStyle",r.config.inputStyles)("formControl",r.otpForm.controls[e])("id",r.getBoxId(n))}}function a(e,t){if(1&e&&(i.ɵɵelementStart(0,"div",1),i.ɵɵtemplate(1,o,2,9,"input",2),i.ɵɵpipe(2,"keys"),i.ɵɵelementEnd()),2&e){const e=i.ɵɵnextContext();i.ɵɵclassMapInterpolate1("ng-otp-input-wrapper wrapper ",e.config.containerClass,""),i.ɵɵpropertyInterpolate1("id","c_",e.componentKey,""),i.ɵɵproperty("ngStyle",e.config.containerStyles),i.ɵɵadvance(1),i.ɵɵproperty("ngForOf",i.ɵɵpipeBind1(2,6,null==e.otpForm?null:e.otpForm.controls))}}class l{static ifTab(e){return this.ifKey(e,"Tab")}static ifDelete(e){return this.ifKey(e,"Delete;Del")}static ifBackspace(e){return this.ifKey(e,"Backspace")}static ifRightArrow(e){return this.ifKey(e,"ArrowRight;Right")}static ifLeftArrow(e){return this.ifKey(e,"ArrowLeft;Left")}static ifSpacebar(e){return this.ifKey(e,"Spacebar; ")}static ifKey(e,t){return t.split(";").some((t=>t===e.key))}}let c=(()=>{class e{transform(e){return Object.keys(e)}}return e.ɵfac=function(t){return new(t||e)},e.ɵpipe=i.ɵɵdefinePipe({name:"keys",type:e,pure:!0}),e})(),d=(()=>{class e{constructor(e,t){this.keysPipe=e,this.document=t,this.config={length:4},this.onInputChange=new i.EventEmitter,this.inputControls=new Array(this.config.length),this.componentKey=Math.random().toString(36).substring(2)+(new Date).getTime().toString(36)}get inputType(){return this.config?.isPasswordInput?"password":this.config?.allowNumbersOnly?"tel":"text"}ngOnInit(){this.otpForm=new r.FormGroup({});for(let e=0;e<this.config.length;e++)this.otpForm.addControl(this.getControlName(e),new r.FormControl);this.otpForm.valueChanges.subscribe((e=>{this.keysPipe.transform(this.otpForm.controls).forEach((e=>{var t=this.otpForm.controls[e].value;t&&t.length>1&&(t.length>=this.config.length?this.setValue(t):this.rebuildValue())}))}))}ngAfterViewInit(){if(!this.config.disableAutoFocus){const e=this.document.getElementById(`c_${this.componentKey}`);if(e){const t=e.getElementsByClassName("otp-input")[0];t&&t.focus&&t.focus()}}}getControlName(e){return`ctrl_${e}`}onKeyDown(e,t){const n=this.getBoxId(t-1),i=this.getBoxId(t);return l.ifSpacebar(e)?(e.preventDefault(),!1):l.ifBackspace(e)?(e.target.value?this.clearInput(i,t):(this.clearInput(n,t-1),this.setSelected(n)),void this.rebuildValue()):void 0}onInput(e){if(this.config.allowNumbersOnly&&!this.validateNumber(this.currentVal?`${this.currentVal}${e.target.value}`:e.target.value))return e.target.value="",e.stopPropagation(),void e.preventDefault()}onKeyUp(e,t){l.ifTab(e)&&(t-=1);const n=this.getBoxId(t+1),i=this.getBoxId(t-1),r=this.getBoxId(t);return l.ifRightArrow(e)?(e.preventDefault(),void this.setSelected(n)):l.ifLeftArrow(e)?(e.preventDefault(),void this.setSelected(i)):l.ifDelete(e)?(e.target.value?this.clearInput(r,t):(this.clearInput(i,t-1),this.setSelected(i)),void this.rebuildValue()):void(!e.target.value||(this.ifValidKeyCode(e)&&this.setSelected(n),this.rebuildValue()))}validateNumber(e){return e&&/^[0-9]+$/.test(e)}getBoxId(e){return`otp_${e}_${this.componentKey}`}clearInput(e,t){let n=this.getControlName(t);this.otpForm.controls[n]?.setValue(null);const i=this.document.getElementById(e);i&&i instanceof HTMLInputElement&&(i.value=null)}setSelected(e){this.focusTo(e);const t=this.document.getElementById(e);t&&t.setSelectionRange&&setTimeout((()=>{t.setSelectionRange(0,1)}),0)}ifValidKeyCode(e){const t=e.key;return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)||/[a-zA-Z0-9-_]/.test(t)}focusTo(e){const t=this.document.getElementById(e);t&&t.focus()}setValue(e){if(!this.config.allowNumbersOnly||!isNaN(e)){if(this.otpForm.reset(),!e)return void this.rebuildValue();if(e=e.toString().replace(/\s/g,""),Array.from(e).forEach(((e,t)=>{this.otpForm.get(this.getControlName(t))&&this.otpForm.get(this.getControlName(t)).setValue(e)})),!this.config.disableAutoFocus){const n=this.document.getElementById(`c_${this.componentKey}`);var t=e.length<this.config.length?e.length:this.config.length-1;let i=n.getElementsByClassName("otp-input")[t];i&&i.focus&&i.focus()}this.rebuildValue()}}rebuildValue(){let e="";this.keysPipe.transform(this.otpForm.controls).forEach((t=>{if(this.otpForm.controls[t].value){let n=this.otpForm.controls[t].value,i=n.length>1,r=!this.config.allowNumbersOnly&&this.config.letterCase&&("upper"==this.config.letterCase.toLocaleLowerCase()||"lower"==this.config.letterCase.toLocaleLowerCase());n=n[0];let s=r?"upper"==this.config.letterCase.toLocaleLowerCase()?n.toUpperCase():n.toLowerCase():n;r&&s==n?r=!1:n=s,e+=n,(i||r)&&this.otpForm.controls[t].setValue(n)}})),this.formCtrl?.setValue&&this.formCtrl.setValue(e),this.onInputChange.emit(e),this.currentVal=e}handlePaste(e){let t=e.clipboardData||window.clipboardData;if(t)var n=t.getData("Text");e.stopPropagation(),e.preventDefault(),n&&(!this.config.allowNumbersOnly||this.validateNumber(n))&&this.setValue(n)}}return e.ɵfac=function(t){return new(t||e)(i.ɵɵdirectiveInject(c),i.ɵɵdirectiveInject(s.K0))},e.ɵcmp=i.ɵɵdefineComponent({type:e,selectors:[["ng-otp-input"]],inputs:{config:"config",formCtrl:"formCtrl"},outputs:{onInputChange:"onInputChange"},decls:1,vars:1,consts:[[3,"class","id","ngStyle",4,"ngIf"],[3,"id","ngStyle"],["autocomplete","one-time-code",3,"pattern","type","placeholder","ngStyle","class","formControl","id","paste","keyup","input","keydown",4,"ngFor","ngForOf"],["autocomplete","one-time-code",3,"pattern","type","placeholder","ngStyle","formControl","id","paste","keyup","input","keydown"],["inp",""]],template:function(e,t){1&e&&i.ɵɵtemplate(0,a,3,8,"div",0),2&e&&i.ɵɵproperty("ngIf",null==t.otpForm?null:t.otpForm.controls)},dependencies:[s.O5,s.PC,s.sg,r.DefaultValueAccessor,r.PatternValidator,r.NgControlStatus,r.FormControlDirective,c],styles:[".otp-input[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:4px;border:solid 1px #c5c5c5;text-align:center;font-size:32px}.ng-otp-input-wrapper[_ngcontent-%COMP%] .otp-input[_ngcontent-%COMP%]:not(:last-child){margin-right:8px}@media screen and (max-width: 767px){.otp-input[_ngcontent-%COMP%]{width:40px;font-size:24px;height:40px}}@media screen and (max-width: 420px){.otp-input[_ngcontent-%COMP%]{width:30px;font-size:18px;height:30px}}"]}),e})(),u=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i.ɵɵdefineNgModule({type:e}),e.ɵinj=i.ɵɵdefineInjector({providers:[c],imports:[[s.ez,r.FormsModule,r.ReactiveFormsModule]]}),e})()},7717:(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})()},5861:(e,t,n)=>{function i(e,t,n,i,r,s,o){try{var a=e[s](o),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,s){var o=e.apply(t,n);function a(e){i(o,r,s,a,l,"next",e)}function l(e){i(o,r,s,a,l,"throw",e)}a(void 0)}))}}n.d(t,{Z:()=>r})},7582:(e,t,n)=>{function i(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function r(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{l(i.next(e))}catch(e){s(e)}}function a(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(o,a)}l((i=i.apply(e,t||[])).next())}))}function s(e){return this instanceof s?(this.v=e,this):new s(e)}function o(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",(function(e){return function(t){return Promise.resolve(t).then(e,d)}})),i[Symbol.asyncIterator]=function(){return this},i;function a(e,t){r[e]&&(i[e]=function(t){return new Promise((function(n,i){o.push([e,t,n,i])>1||l(e,t)}))},t&&(i[e]=t(i[e])))}function l(e,t){try{!function(e){e.value instanceof s?Promise.resolve(e.value.v).then(c,d):u(o[0][2],e)}(r[e](t))}catch(e){u(o[0][3],e)}}function c(e){l("next",e)}function d(e){l("throw",e)}function u(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}}function a(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){!function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}(i,r,(t=e[n](t)).done,t.value)}))}}}n.d(t,{FC:()=>o,KL:()=>a,gn:()=>i,mG:()=>r,qq:()=>s}),"function"==typeof SuppressedError&&SuppressedError}}]);
9007
+ // Accede a la función que inicia el bootstrap y devuelve la clase.
9008
+ export const initBelenderComponent = window.initBelenderComponent;
9009
+
9010
+ // Exportamos una clase dummy que cumple con el requerimiento de formato
9011
+ // y redirige al init. Esto es solo una alternativa, pero es más limpio
9012
+ // usar la función init en el cliente.
9013
+ // Si el cliente insiste en importar la CLASE directamente, usamos esta:
9014
+ export const BelenderWebComponent = window.BelenderWebComponent || (() => {
9015
+ console.warn("La clase BelenderWebComponent no ha sido inicializada. Debe ejecutar initBelenderComponent().");
9016
+ return HTMLElement;
9017
+ })();
9018
+