HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/www/common.56bb4be30c3479f6.js
(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2076],{74544:(L,O,n)=>{"use strict";n.d(O,{l:()=>f});var f=function(t){return t.LANDSCAPE="landscape",t.LANDSCAPE_PRIMARY="landscape-primary",t.LANDSCAPE_SECONDARY="landscape-secondary",t.PORTRAIT="portrait",t.PORTRAIT_PRIMARY="portrait-primary",t.PORTRAIT_SECONDARY="portrait-secondary",t}(f||{})},47118:(L,O,n)=>{"use strict";n.d(O,{Z:()=>d,l:()=>t.l});var f=n(22126),t=n(74544);const d=(0,f.F3)("ScreenOrientation",{web:()=>n.e(6348).then(n.bind(n,26348)).then(P=>new P.ScreenOrientationWeb)})},53090:(L,O,n)=>{"use strict";n.d(O,{c:()=>P});var f=n(29814),t=n(95480),d=n(53847);const P=(i,e)=>{let o,r;const E=(g,u,c)=>{if(typeof document>"u")return;const h=document.elementFromPoint(g,u);h&&e(h)?h!==o&&(s(),p(h,c)):s()},p=(g,u)=>{o=g,r||(r=o);const c=o;(0,f.c)(()=>c.classList.add("ion-activated")),u()},s=(g=!1)=>{if(!o)return;const u=o;(0,f.c)(()=>u.classList.remove("ion-activated")),g&&r!==o&&o.click(),o=void 0};return(0,d.createGesture)({el:i,gestureName:"buttonActiveDrag",threshold:0,onStart:g=>E(g.currentX,g.currentY,t.a),onMove:g=>E(g.currentX,g.currentY,t.b),onEnd:()=>{s(!0),(0,t.h)(),r=void 0}})}},73888:(L,O,n)=>{"use strict";n.d(O,{g:()=>f});const f=(e,o,r,E,p)=>d(e[1],o[1],r[1],E[1],p).map(s=>t(e[0],o[0],r[0],E[0],s)),t=(e,o,r,E,p)=>p*(3*o*Math.pow(p-1,2)+p*(-3*r*p+3*r+E*p))-e*Math.pow(p-1,3),d=(e,o,r,E,p)=>i((E-=p)-3*(r-=p)+3*(o-=p)-(e-=p),3*r-6*o+3*e,3*o-3*e,e).filter(g=>g>=0&&g<=1),i=(e,o,r,E)=>{if(0===e)return((e,o,r)=>{const E=o*o-4*e*r;return E<0?[]:[(-o+Math.sqrt(E))/(2*e),(-o-Math.sqrt(E))/(2*e)]})(o,r,E);const p=(3*(r/=e)-(o/=e)*o)/3,s=(2*o*o*o-9*o*r+27*(E/=e))/27;if(0===p)return[Math.pow(-s,1/3)];if(0===s)return[Math.sqrt(-p),-Math.sqrt(-p)];const g=Math.pow(s/2,2)+Math.pow(p/3,3);if(0===g)return[Math.pow(s/2,.5)-o/3];if(g>0)return[Math.pow(-s/2+Math.sqrt(g),1/3)-Math.pow(s/2+Math.sqrt(g),1/3)-o/3];const u=Math.sqrt(Math.pow(-p/3,3)),c=Math.acos(-s/(2*Math.sqrt(Math.pow(-p/3,3)))),h=2*Math.pow(u,1/3);return[h*Math.cos(c/3)-o/3,h*Math.cos((c+2*Math.PI)/3)-o/3,h*Math.cos((c+4*Math.PI)/3)-o/3]}},9404:(L,O,n)=>{"use strict";n.d(O,{i:()=>f});const f=t=>t&&""!==t.dir?"rtl"===t.dir.toLowerCase():"rtl"===document?.dir.toLowerCase()},7572:(L,O,n)=>{"use strict";n.r(O),n.d(O,{startFocusVisible:()=>P});const f="ion-focused",d=["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp","Home","End"],P=i=>{let e=[],o=!0;const r=i?i.shadowRoot:document,E=i||document.body,p=m=>{e.forEach(l=>l.classList.remove(f)),m.forEach(l=>l.classList.add(f)),e=m},s=()=>{o=!1,p([])},g=m=>{o=d.includes(m.key),o||p([])},u=m=>{if(o&&void 0!==m.composedPath){const l=m.composedPath().filter(_=>!!_.classList&&_.classList.contains("ion-focusable"));p(l)}},c=()=>{r.activeElement===E&&p([])};return r.addEventListener("keydown",g),r.addEventListener("focusin",u),r.addEventListener("focusout",c),r.addEventListener("touchstart",s),r.addEventListener("mousedown",s),{destroy:()=>{r.removeEventListener("keydown",g),r.removeEventListener("focusin",u),r.removeEventListener("focusout",c),r.removeEventListener("touchstart",s),r.removeEventListener("mousedown",s)},setFocus:p}}},9626:(L,O,n)=>{"use strict";n.d(O,{C:()=>i,a:()=>d,d:()=>P});var f=n(73308),t=n(46184);const d=function(){var e=(0,f.A)(function*(o,r,E,p,s,g){var u;if(o)return o.attachViewToDom(r,E,s,p);if(!(g||"string"==typeof E||E instanceof HTMLElement))throw new Error("framework delegate is missing");const c="string"==typeof E?null===(u=r.ownerDocument)||void 0===u?void 0:u.createElement(E):E;return p&&p.forEach(h=>c.classList.add(h)),s&&Object.assign(c,s),r.appendChild(c),yield new Promise(h=>(0,t.c)(c,h)),c});return function(r,E,p,s,g,u){return e.apply(this,arguments)}}(),P=(e,o)=>{if(o){if(e)return e.removeViewFromDom(o.parentElement,o);o.remove()}return Promise.resolve()},i=()=>{let e,o;return{attachViewToDom:function(){var p=(0,f.A)(function*(s,g,u={},c=[]){var h,m;if(e=s,g){const _="string"==typeof g?null===(h=e.ownerDocument)||void 0===h?void 0:h.createElement(g):g;c.forEach(a=>_.classList.add(a)),Object.assign(_,u),e.appendChild(_),yield new Promise(a=>(0,t.c)(_,a))}else if(e.children.length>0&&!e.children[0].classList.contains("ion-delegate-host")){const a=null===(m=e.ownerDocument)||void 0===m?void 0:m.createElement("div");a.classList.add("ion-delegate-host"),c.forEach(v=>a.classList.add(v)),a.append(...e.children),e.appendChild(a)}const l=document.querySelector("ion-app")||document.body;return o=document.createComment("ionic teleport"),e.parentNode.insertBefore(o,e),l.appendChild(e),e});return function(g,u){return p.apply(this,arguments)}}(),removeViewFromDom:()=>(e&&o&&(o.parentNode.insertBefore(e,o),o.remove()),Promise.resolve())}}},95480:(L,O,n)=>{"use strict";n.d(O,{a:()=>P,b:()=>i,c:()=>d,d:()=>o,h:()=>e});const f={getEngine(){var r;const E=window;return E.TapticEngine||(null===(r=E.Capacitor)||void 0===r?void 0:r.isPluginAvailable("Haptics"))&&E.Capacitor.Plugins.Haptics},available(){var r;const E=window;return!!this.getEngine()&&("web"!==(null===(r=E.Capacitor)||void 0===r?void 0:r.getPlatform())||typeof navigator<"u"&&void 0!==navigator.vibrate)},isCordova:()=>!!window.TapticEngine,isCapacitor:()=>!!window.Capacitor,impact(r){const E=this.getEngine();if(!E)return;const p=this.isCapacitor()?r.style.toUpperCase():r.style;E.impact({style:p})},notification(r){const E=this.getEngine();if(!E)return;const p=this.isCapacitor()?r.style.toUpperCase():r.style;E.notification({style:p})},selection(){this.impact({style:"light"})},selectionStart(){const r=this.getEngine();r&&(this.isCapacitor()?r.selectionStart():r.gestureSelectionStart())},selectionChanged(){const r=this.getEngine();r&&(this.isCapacitor()?r.selectionChanged():r.gestureSelectionChanged())},selectionEnd(){const r=this.getEngine();r&&(this.isCapacitor()?r.selectionEnd():r.gestureSelectionEnd())}},t=()=>f.available(),d=()=>{t()&&f.selection()},P=()=>{t()&&f.selectionStart()},i=()=>{t()&&f.selectionChanged()},e=()=>{t()&&f.selectionEnd()},o=r=>{t()&&f.impact(r)}},89979:(L,O,n)=>{"use strict";n.d(O,{a:()=>f,b:()=>g,c:()=>o,d:()=>u,e:()=>D,f:()=>e,g:()=>c,h:()=>d,i:()=>t,j:()=>a,k:()=>v,l:()=>r,m:()=>p,n:()=>h,o:()=>E,p:()=>i,q:()=>P,r:()=>_,s:()=>M,t:()=>s,u:()=>m,v:()=>l});const f="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='square' stroke-miterlimit='10' stroke-width='48' d='M244 400L100 256l144-144M120 256h292' class='ionicon-fill-none'/></svg>",t="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 268l144 144 144-144M256 392V100' class='ionicon-fill-none'/></svg>",d="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M368 64L144 256l224 192V64z'/></svg>",P="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M64 144l192 224 192-224H64z'/></svg>",i="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M448 368L256 144 64 368h384z'/></svg>",e="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M416 128L192 384l-96-96' class='ionicon-fill-none ionicon-stroke-width'/></svg>",o="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M328 112L184 256l144 144' class='ionicon-fill-none'/></svg>",r="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 184l144 144 144-144' class='ionicon-fill-none'/></svg>",E="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M184 112l144 144-144 144' class='ionicon-fill-none'/></svg>",p="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M184 112l144 144-144 144' class='ionicon-fill-none'/></svg>",s="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z'/></svg>",g="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm75.31 260.69a16 16 0 11-22.62 22.62L256 278.63l-52.69 52.68a16 16 0 01-22.62-22.62L233.37 256l-52.68-52.69a16 16 0 0122.62-22.62L256 233.37l52.69-52.68a16 16 0 0122.62 22.62L278.63 256z'/></svg>",u="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M400 145.49L366.51 112 256 222.51 145.49 112 112 145.49 222.51 256 112 366.51 145.49 400 256 289.49 366.51 400 400 366.51 289.49 256 400 145.49z'/></svg>",c="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><circle cx='256' cy='256' r='192' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",h="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><circle cx='256' cy='256' r='48'/><circle cx='416' cy='256' r='48'/><circle cx='96' cy='256' r='48'/></svg>",m="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-miterlimit='10' d='M80 160h352M80 256h352M80 352h352' class='ionicon-fill-none ionicon-stroke-width'/></svg>",l="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M64 384h384v-42.67H64zm0-106.67h384v-42.66H64zM64 128v42.67h384V128z'/></svg>",_="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M400 256H112' class='ionicon-fill-none ionicon-stroke-width'/></svg>",a="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M96 256h320M96 176h320M96 336h320' class='ionicon-fill-none ionicon-stroke-width'/></svg>",v="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='square' stroke-linejoin='round' stroke-width='44' d='M118 304h276M118 208h276' class='ionicon-fill-none'/></svg>",M="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M338.29 338.29L448 448' class='ionicon-fill-none ionicon-stroke-width'/></svg>",D="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M464 428L339.92 303.9a160.48 160.48 0 0030.72-94.58C370.64 120.37 298.27 48 209.32 48S48 120.37 48 209.32s72.37 161.32 161.32 161.32a160.48 160.48 0 0094.58-30.72L428 464zM209.32 319.69a110.38 110.38 0 11110.37-110.37 110.5 110.5 0 01-110.37 110.37z'/></svg>"},98717:(L,O,n)=>{"use strict";n.d(O,{I:()=>i,a:()=>p,b:()=>e,c:()=>u,d:()=>h,f:()=>s,g:()=>E,i:()=>r,p:()=>c,r:()=>m,s:()=>g});var f=n(73308),t=n(46184),d=n(14561);const i="ion-content",e=".ion-content-scroll-host",o=`${i}, ${e}`,r=l=>"ION-CONTENT"===l.tagName,E=function(){var l=(0,f.A)(function*(_){return r(_)?(yield new Promise(a=>(0,t.c)(_,a)),_.getScrollElement()):_});return function(a){return l.apply(this,arguments)}}(),p=l=>l.querySelector(e)||l.querySelector(o),s=l=>l.closest(o),g=(l,_)=>r(l)?l.scrollToTop(_):Promise.resolve(l.scrollTo({top:0,left:0,behavior:_>0?"smooth":"auto"})),u=(l,_,a,v)=>r(l)?l.scrollByPoint(_,a,v):Promise.resolve(l.scrollBy({top:a,left:_,behavior:v>0?"smooth":"auto"})),c=l=>(0,d.a)(l,i),h=l=>{if(r(l)){const a=l.scrollY;return l.scrollY=!1,a}return l.style.setProperty("overflow","hidden"),!0},m=(l,_)=>{r(l)?l.scrollY=_:l.style.removeProperty("overflow")}},81843:(L,O,n)=>{"use strict";n.r(O),n.d(O,{KEYBOARD_DID_CLOSE:()=>t,KEYBOARD_DID_OPEN:()=>f,copyVisualViewport:()=>_,keyboardDidClose:()=>c,keyboardDidOpen:()=>g,keyboardDidResize:()=>u,resetKeyboardAssist:()=>o,setKeyboardClose:()=>s,setKeyboardOpen:()=>p,startKeyboardAssist:()=>r,trackViewportChanges:()=>l});const f="ionKeyboardDidShow",t="ionKeyboardDidHide";let P={},i={},e=!1;const o=()=>{P={},i={},e=!1},r=a=>{E(a),a.visualViewport&&(i=_(a.visualViewport),a.visualViewport.onresize=()=>{l(a),g()||u(a)?p(a):c(a)&&s(a)})},E=a=>{a.addEventListener("keyboardDidShow",v=>p(a,v)),a.addEventListener("keyboardDidHide",()=>s(a))},p=(a,v)=>{h(a,v),e=!0},s=a=>{m(a),e=!1},g=()=>!e&&P.width===i.width&&(P.height-i.height)*i.scale>150,u=a=>e&&!c(a),c=a=>e&&i.height===a.innerHeight,h=(a,v)=>{const D=new CustomEvent(f,{detail:{keyboardHeight:v?v.keyboardHeight:a.innerHeight-i.height}});a.dispatchEvent(D)},m=a=>{const v=new CustomEvent(t);a.dispatchEvent(v)},l=a=>{P=Object.assign({},i),i=_(a.visualViewport)},_=a=>({width:Math.round(a.width),height:Math.round(a.height),offsetTop:a.offsetTop,offsetLeft:a.offsetLeft,pageTop:a.pageTop,pageLeft:a.pageLeft,scale:a.scale})},36664:(L,O,n)=>{"use strict";n.d(O,{c:()=>t});var f=n(94706);const t=d=>{let P,i,e;const o=()=>{P=()=>{e=!0,d&&d(!0)},i=()=>{e=!1,d&&d(!1)},null==f.w||f.w.addEventListener("keyboardWillShow",P),null==f.w||f.w.addEventListener("keyboardWillHide",i)};return o(),{init:o,destroy:()=>{null==f.w||f.w.removeEventListener("keyboardWillShow",P),null==f.w||f.w.removeEventListener("keyboardWillHide",i),P=i=void 0},isKeyboardVisible:()=>e}}},58121:(L,O,n)=>{"use strict";n.d(O,{S:()=>t});const t={bubbles:{dur:1e3,circles:9,fn:(d,P,i)=>{const e=d*P/i-d+"ms",o=2*Math.PI*P/i;return{r:5,style:{top:9*Math.sin(o)+"px",left:9*Math.cos(o)+"px","animation-delay":e}}}},circles:{dur:1e3,circles:8,fn:(d,P,i)=>{const e=P/i,o=d*e-d+"ms",r=2*Math.PI*e;return{r:5,style:{top:9*Math.sin(r)+"px",left:9*Math.cos(r)+"px","animation-delay":o}}}},circular:{dur:1400,elmDuration:!0,circles:1,fn:()=>({r:20,cx:48,cy:48,fill:"none",viewBox:"24 24 48 48",transform:"translate(0,0)",style:{}})},crescent:{dur:750,circles:1,fn:()=>({r:26,style:{}})},dots:{dur:750,circles:3,fn:(d,P)=>({r:6,style:{left:9-9*P+"px","animation-delay":-110*P+"ms"}})},lines:{dur:1e3,lines:8,fn:(d,P,i)=>({y1:14,y2:26,style:{transform:`rotate(${360/i*P+(P<i/2?180:-180)}deg)`,"animation-delay":d*P/i-d+"ms"}})},"lines-small":{dur:1e3,lines:8,fn:(d,P,i)=>({y1:12,y2:20,style:{transform:`rotate(${360/i*P+(P<i/2?180:-180)}deg)`,"animation-delay":d*P/i-d+"ms"}})},"lines-sharp":{dur:1e3,lines:12,fn:(d,P,i)=>({y1:17,y2:29,style:{transform:`rotate(${30*P+(P<6?180:-180)}deg)`,"animation-delay":d*P/i-d+"ms"}})},"lines-sharp-small":{dur:1e3,lines:12,fn:(d,P,i)=>({y1:12,y2:20,style:{transform:`rotate(${30*P+(P<6?180:-180)}deg)`,"animation-delay":d*P/i-d+"ms"}})}}},16481:(L,O,n)=>{"use strict";n.r(O),n.d(O,{createSwipeBackGesture:()=>i});var f=n(46184),t=n(9404),d=n(53847);n(45995);const i=(e,o,r,E,p)=>{const s=e.ownerDocument.defaultView;let g=(0,t.i)(e);const c=a=>g?-a.deltaX:a.deltaX;return(0,d.createGesture)({el:e,gestureName:"goback-swipe",gesturePriority:40,threshold:10,canStart:a=>(g=(0,t.i)(e),(a=>{const{startX:M}=a;return g?M>=s.innerWidth-50:M<=50})(a)&&o()),onStart:r,onMove:a=>{const M=c(a)/s.innerWidth;E(M)},onEnd:a=>{const v=c(a),M=s.innerWidth,D=v/M,T=(a=>g?-a.velocityX:a.velocityX)(a),C=T>=0&&(T>.2||v>M/2),y=(C?1-D:D)*M;let A=0;if(y>5){const S=y/Math.abs(T);A=Math.min(S,540)}p(C,D<=0?.01:(0,f.l)(0,D,.9999),A)}})}},36839:(L,O,n)=>{var f,t,P;P=function(){var c,h,d=document,P=d.getElementsByTagName("head")[0],e=!1,o="push",r="readyState",E="onreadystatechange",p={},s={},g={},u={};function m(v,M){for(var D=0,T=v.length;D<T;++D)if(!M(v[D]))return e;return 1}function l(v,M){m(v,function(D){return M(D),1})}function _(v,M,D){v=v[o]?v:[v];var T=M&&M.call,I=T?M:D,C=T?v.join(""):M,R=v.length;function y(S){return S.call?S():p[S]}function A(){if(! --R)for(var S in p[C]=1,I&&I(),g)m(S.split("|"),y)&&!l(g[S],y)&&(g[S]=[])}return setTimeout(function(){l(v,function S(B,j){return null===B?A():(!j&&!/^https?:\/\//.test(B)&&c&&(B=-1===B.indexOf(".js")?c+B+".js":c+B),u[B]?(C&&(s[C]=1),2==u[B]?A():setTimeout(function(){S(B,!0)},0)):(u[B]=1,C&&(s[C]=1),void a(B,A)))})},0),_}function a(v,M){var T,D=d.createElement("script");D.onload=D.onerror=D[E]=function(){D[r]&&!/^c|loade/.test(D[r])||T||(D.onload=D[E]=null,T=1,u[v]=2,M())},D.async=1,D.src=h?v+(-1===v.indexOf("?")?"?":"&")+h:v,P.insertBefore(D,P.lastChild)}return _.get=a,_.order=function(v,M,D){!function T(I){I=v.shift(),v.length?_(I,T):_(I,M,D)}()},_.path=function(v){c=v},_.urlArgs=function(v){h=v},_.ready=function(v,M,D){var I,T=[];return!l(v=v[o]?v:[v],function(I){p[I]||T[o](I)})&&m(v,function(I){return p[I]})?M():(I=v.join("|"),g[I]=g[I]||[],g[I][o](M),D&&D(T)),_},_.done=function(v){_([null],v)},_},L.exports?L.exports=P():void 0!==(t="function"==typeof(f=P)?f.call(O,n,O,L):f)&&(L.exports=t)},31379:(L,O,n)=>{"use strict";n.d(O,{a:()=>P});var f=n(77897),t=n(2978);const d=["*"];let P=(()=>{class i{constructor(){this.showPassword=!1}ngOnInit(){}toggleShow(){this.showPassword=!this.showPassword,this.input.type=this.showPassword?"text":"password"}static#t=this.\u0275fac=function(r){return new(r||i)};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["app-show-hide-password"]],contentQueries:function(r,E,p){if(1&r&&t.wni(p,f.$w,5),2&r){let s;t.mGM(s=t.lsd())&&(E.input=s.first)}},ngContentSelectors:d,decls:4,vars:2,consts:[[1,"type-toggle",3,"click"],["name","eye-off-outline",1,"show-option",3,"hidden"],["name","eye-outline",1,"hide-option",3,"hidden"]],template:function(r,E){1&r&&(t.NAR(),t.SdG(0),t.j41(1,"a",0),t.bIt("click",function(){return E.toggleShow()}),t.nrm(2,"ion-icon",1)(3,"ion-icon",2),t.k0s()),2&r&&(t.R7$(2),t.Y8G("hidden",E.showPassword),t.R7$(1),t.Y8G("hidden",!E.showPassword))},dependencies:[f.iq],styles:["[_nghost-%COMP%]{display:flex;width:100%;align-items:center}[_nghost-%COMP%]   .type-toggle[_ngcontent-%COMP%]{padding-inline-start:.5rem}[_nghost-%COMP%]   .type-toggle[_ngcontent-%COMP%]   .show-option[_ngcontent-%COMP%], [_nghost-%COMP%]   .type-toggle[_ngcontent-%COMP%]   .hide-option[_ngcontent-%COMP%]{font-size:1.2rem;display:block}[_nghost-%COMP%]   .type-toggle[_ngcontent-%COMP%]   .show-option[_ngcontent-%COMP%]:not(ion-icon), [_nghost-%COMP%]   .type-toggle[_ngcontent-%COMP%]   .hide-option[_ngcontent-%COMP%]:not(ion-icon){text-transform:uppercase;font-size:1rem}"]})}return i})()},26169:(L,O,n)=>{"use strict";n.d(O,{i:()=>p});var f=n(73308),t=n(2978),d=n(22882),P=n(54171),i=n(57992),e=n(77897),o=n(37222),r=n(56261),E=n(13797);let p=(()=>{class s{constructor(u,c,h,m){this.translateService=u,this.utilsService=c,this.academyService=h,this.modalCtrl=m,this.document={name:""}}ngOnInit(){}saveFile(u){this.file=u,this.document.link=u}setDate(u){this.date=u}uploadSupport(u){var c=this;let h=u.value;h.file=this.file,h.payment_date=this.date,h.purchase_id=this.payment.id,this.validateData(h)&&this.utilsService.presentLoading(this.translateService.instant("all.loading")).then(()=>{this.academyService.uploadTournamentPaymentSupport(h).then(function(){var m=(0,f.A)(function*(l){l.r&&(c.utilsService.presentToast(4e3,"success","top",l.m),c.cancel(!1)),c.utilsService.dismissLoading()});return function(l){return m.apply(this,arguments)}}(),m=>{console.log("error enrollmentAcademy: ",m),this.utilsService.dismissLoading()})})}validateData(u){return u.file?u.payment_date?!!u.reference||(this.showWarning("REFERENCE_REQUIRED"),!1):(this.showWarning("PAYMENT_DATE_REQUIRED"),!1):(this.showWarning("SUPPORT_FILE_REQUIRED"),!1)}showWarning(u){this.utilsService.presentToast(3e3,"warning","top",this.translateService.instant(u))}cancel(u,c){this.modalCtrl.dismiss({status:u,valueOrder:c})}static#t=this.\u0275fac=function(c){return new(c||s)(t.rXU(d.c$),t.rXU(P.T),t.rXU(i.k),t.rXU(e.W3))};static#e=this.\u0275cmp=t.VBU({type:s,selectors:[["app-academy-tournament-payment-support"]],decls:35,vars:16,consts:[[1,"responsive-text"],["slot","end"],["strong","","color","light",3,"click"],["size","6","offset","3"],[3,"document","file"],[3,"ngSubmit"],["form","ngForm"],["position","stacked",1,"form-field-label"],["lines","none",1,"inputBorderRadius","ion-margin-bottom"],[2,"width","100%",3,"date"],["type","text","placeholder","","ngModel","","name","reference","required","","maxlength","191",1,"ion-text-center"],["reference","ngModel"],["lines","none",1,"inputBorderRadius"],["type","text","placeholder","","ngModel","","name","comment","required","","maxlength","191",1,"ion-text-center"],["comment","ngModel"],["type","submit","color","primary","shape","round","expand","block","fill","solid",1,"ion-margin"]],template:function(c,h){if(1&c){const m=t.RV6();t.j41(0,"ion-header")(1,"ion-toolbar")(2,"ion-title",0),t.EFF(3,"Soporte de pago"),t.k0s(),t.j41(4,"ion-buttons",1)(5,"ion-button",2),t.bIt("click",function(){return h.cancel(!1)}),t.EFF(6),t.nI1(7,"translate"),t.k0s()()()(),t.j41(8,"ion-content")(9,"ion-grid")(10,"ion-row")(11,"ion-col",3)(12,"app-upload-file",4),t.bIt("file",function(_){return h.saveFile(_)}),t.k0s()()()(),t.j41(13,"form",5,6),t.bIt("ngSubmit",function(){t.eBV(m);const _=t.sdS(14);return t.Njj(h.uploadSupport(_))}),t.j41(15,"ion-label",7),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.j41(18,"ion-item",8)(19,"app-date-picker",9),t.bIt("date",function(_){return h.setDate(_)}),t.k0s()(),t.j41(20,"ion-label",7),t.EFF(21),t.nI1(22,"translate"),t.k0s(),t.j41(23,"ion-item",8),t.nrm(24,"ion-input",10,11),t.k0s(),t.j41(26,"ion-label",7),t.EFF(27),t.nI1(28,"translate"),t.k0s(),t.j41(29,"ion-item",12),t.nrm(30,"ion-input",13,14),t.k0s(),t.j41(32,"ion-button",15),t.EFF(33),t.nI1(34,"translate"),t.k0s()()()}2&c&&(t.R7$(6),t.JRh(t.bMT(7,6,"all.close")),t.R7$(6),t.Y8G("document",h.document),t.R7$(4),t.JRh(t.bMT(17,8,"PAYMENT_DATE")),t.R7$(5),t.JRh(t.bMT(22,10,"PAYMENT_REFERENCE")),t.R7$(6),t.JRh(t.bMT(28,12,"COMMENT")),t.R7$(6),t.SpI(" ",t.bMT(34,14,"UPLOAD_SUPORT")," "))},dependencies:[o.qT,o.BC,o.cb,o.YS,o.tU,o.vS,o.cV,e.Jm,e.QW,e.hU,e.W9,e.lO,e.eU,e.$w,e.uz,e.he,e.ln,e.BC,e.ai,e.Gw,r.I,E.V,d.D9]})}return s})()},62725:(L,O,n)=>{"use strict";n.d(O,{A:()=>I});var f=n(73308),t=n(2978),d=n(54171),P=n(22882),i=n(57992),e=n(69942),o=n(77897),r=n(56610),E=n(37222),p=n(53468),s=n(60822);function g(C,R){if(1&C&&t.nrm(0,"img",12),2&C){const y=t.XpG().$implicit;t.FS9("alt",y.name),t.FS9("src",y.image,t.B4B)}}function u(C,R){if(1&C&&t.nrm(0,"img",13),2&C){const y=t.XpG().$implicit;t.FS9("alt",y.name)}}function c(C,R){if(1&C&&(t.j41(0,"ion-label")(1,"del"),t.EFF(2),t.nI1(3,"formatCurrency"),t.k0s(),t.j41(4,"span",14),t.EFF(5),t.nI1(6,"formatCurrency"),t.k0s()()),2&C){const y=t.XpG().$implicit,A=t.XpG();t.R7$(2),t.JRh(t.i5U(3,2,y.price,A.currency)),t.R7$(3),t.JRh(t.i5U(6,5,y.price*(1-y.discount/100),A.currency))}}function h(C,R){if(1&C&&(t.j41(0,"ion-label",15),t.EFF(1),t.nI1(2,"formatCurrency"),t.k0s()),2&C){const y=t.XpG().$implicit,A=t.XpG();t.R7$(1),t.SpI(" ",t.i5U(2,1,y.price,A.currency)," ")}}function m(C,R){if(1&C&&(t.j41(0,"ion-label"),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"date"),t.nI1(4,"dateFormat"),t.nI1(5,"translate"),t.nI1(6,"date"),t.nI1(7,"dateFormat"),t.k0s()),2&C){const y=t.XpG().$implicit;t.R7$(1),t.LHq(" ",t.bMT(2,4,"ACADEMY_TOURNAMENT_PAYMENTS.LABEL_EVENT_DATE"),": ",t.i5U(3,6,t.bMT(4,9,y.start_date),"dd-MM-yyyy, h:mm a")," ",t.bMT(5,11,"ACADEMY_TOURNAMENT_PAYMENTS.LABEL_EVENT_DATE_TO")," ",t.i5U(6,13,t.bMT(7,16,y.end_date),"dd-MM-yyyy, h:mm a")," ")}}function l(C,R){if(1&C&&(t.j41(0,"ion-label"),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"date"),t.nI1(4,"dateFormat"),t.k0s()),2&C){const y=t.XpG().$implicit;t.R7$(1),t.Lme(" ",t.bMT(2,2,"ACADEMY_TOURNAMENT_PAYMENTS.LABEL_EXPIRES"),": ",t.i5U(3,4,t.bMT(4,7,y.payday_limit),"dd-MM-yyyy, h:mm a")," ")}}function _(C,R){if(1&C&&(t.j41(0,"ion-label"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&C){const y=t.XpG().$implicit;t.R7$(1),t.Lme("",t.bMT(2,2,"ACADEMY_TOURNAMENT_PAYMENTS.LABEL_DESCRIPTION"),": ",y.description,"")}}function a(C,R){if(1&C&&(t.j41(0,"ion-label"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&C){const y=t.XpG().$implicit;t.R7$(1),t.Lme("",t.bMT(2,2,"ACADEMY_TOURNAMENT_PAYMENTS.LABEL_TYPE"),": ",y.type,"")}}function v(C,R){if(1&C&&(t.j41(0,"ion-select-option",20)(1,"p"),t.EFF(2),t.k0s()()),2&C){const y=R.$implicit;t.Y8G("value",y.id),t.R7$(2),t.JRh(y.name)}}function M(C,R){if(1&C){const y=t.RV6();t.j41(0,"ion-item",16)(1,"ion-label",17),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"translate"),t.k0s(),t.j41(5,"ion-select",18),t.bIt("ngModelChange",function(S){t.eBV(y);const B=t.XpG().$implicit;return t.Njj(B.paymentsAmount=S)}),t.nI1(6,"translate"),t.nI1(7,"translate"),t.nI1(8,"translate"),t.DNE(9,v,3,2,"ion-select-option",19),t.k0s()()}if(2&C){const y=t.XpG().$implicit;t.Y8G("disabled",1===y.installments.length),t.R7$(2),t.Lme("",t.bMT(3,8,"ACADEMY_TOURNAMENT_PAYMENTS.LABEL_SELECT_PAYMENT_INSTALLMENTS")," (",t.bMT(4,10,"REQUIRED"),")"),t.R7$(3),t.FS9("placeholder",t.bMT(6,12,"TEXT_OK_SELECT")),t.FS9("okText",t.bMT(7,14,"TEXT_OK_SELECT")),t.FS9("cancelText",t.bMT(8,16,"TEXT_CANCEL_SELECT")),t.Y8G("ngModel",y.paymentsAmount),t.R7$(4),t.Y8G("ngForOf",y.installments)}}function D(C,R){if(1&C){const y=t.RV6();t.j41(0,"ion-button",21),t.bIt("click",function(){t.eBV(y);const S=t.XpG().$implicit,B=t.XpG();return t.Njj(B.registerTournament(S.id,S.paymentsAmount))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&C&&(t.R7$(1),t.SpI(" ",t.bMT(2,1,"ACADEMY_TOURNAMENT_PAYMENTS.GENERATE_NEW_PAYMENT")," "))}function T(C,R){if(1&C&&(t.j41(0,"ion-card",4),t.DNE(1,g,1,2,"img",5),t.DNE(2,u,1,1,"img",6),t.j41(3,"ion-card-header")(4,"ion-card-title"),t.EFF(5),t.k0s(),t.j41(6,"ion-card-subtitle"),t.DNE(7,c,7,8,"ion-label",7),t.DNE(8,h,3,4,"ion-label",8),t.k0s()(),t.j41(9,"ion-card-content",9),t.DNE(10,m,8,18,"ion-label",7),t.DNE(11,l,5,9,"ion-label",7),t.DNE(12,_,3,4,"ion-label",7),t.DNE(13,a,3,4,"ion-label",7),t.j41(14,"ion-label"),t.EFF(15),t.nI1(16,"translate"),t.k0s()(),t.DNE(17,M,10,18,"ion-item",10),t.DNE(18,D,3,3,"ion-button",11),t.k0s()),2&C){const y=R.$implicit;t.Y8G("disabled",!y.available),t.R7$(1),t.Y8G("ngIf",y.image),t.R7$(1),t.Y8G("ngIf",!y.image),t.R7$(3),t.JRh(y.name),t.R7$(2),t.Y8G("ngIf",y.discount),t.R7$(1),t.Y8G("ngIf",!y.discount),t.R7$(2),t.Y8G("ngIf",y.start_date),t.R7$(1),t.Y8G("ngIf",y.payday_limit),t.R7$(1),t.Y8G("ngIf",y.description),t.R7$(1),t.Y8G("ngIf",y.type),t.R7$(2),t.Lme("",t.bMT(16,14,"ACADEMY_TOURNAMENT_PAYMENTS.LABEL_PAYMENT_INSTALLMENTS"),": ",y.payment_installments?"max. "+y.payment_installments:"NO",""),t.R7$(2),t.Y8G("ngIf",y.installments.length),t.R7$(1),t.Y8G("ngIf",y.id)}}let I=(()=>{class C{constructor(y,A,S,B,j){this.utilsService=y,this.translateService=A,this.academyService=S,this.corporateIdentityService=B,this.modalCtrl=j,this.tournaments=[],this.currency=this.corporateIdentityService.getCurrency()}ngOnInit(){this.loadInit()}cancel(y){this.modalCtrl.dismiss(y)}loadInit(y=0){setTimeout(()=>new Promise((A,S)=>{this.utilsService.presentLoading(this.translateService.instant("all.loading")).then(()=>{Promise.all([this.getTournaments()]).then(()=>{this.utilsService.dismissLoading(),A(!1)}).catch(B=>{this.utilsService.dismissLoading(),console.log("Error loadInit AcademySchedulesPage",B),S(B)})})}),y)}getTournaments(){var y=this;return(0,f.A)(function*(){(yield y.academyService.getAcademyTournaments(y.academyUserId)).subscribe(A=>{A.forEach(S=>{let B=[];B.push({id:0,name:y.translateService.instant("ACADEMY_TOURNAMENT_PAYMENTS.LABEL_SINGLE_PAYMENT")}),S.payment_installments&&S.payment_installments>1&&B.push({id:S.payment_installments,name:y.translateService.instant("ACADEMY_TOURNAMENT_PAYMENTS.LABEL_MORE_PAYMENT",{quota:S.payment_installments})}),S.installments=B,1===S.installments.length&&(S.paymentsAmount=0),y.tournaments.push(S)})},A=>{console.log("error",A)})})()}registerTournament(y,A){var S=this;if(null==A)return void this.utilsService.presentAlertInfo("\xa1Alerta!","",this.translateService.instant("ACADEMY_TOURNAMENT_PAYMENTS.LABEL_SELECT_PAYMENT_INSTALLMENTS_REQUIRED"));0==A&&(A=null);let B={academyUserId:this.academyUserId,academyTournamentId:y,paymentsAmount:A};this.utilsService.presentLoading(this.translateService.instant("all.creating")).then((0,f.A)(function*(){(yield S.academyService.createTournamentPayment(B)).subscribe(j=>{S.utilsService.presentToast(4e3,"success","top",j.m),S.utilsService.dismissLoading(),S.cancel(!0)},j=>{S.utilsService.dismissLoading(),console.log("error createTournamentPayment",j)})}))}static#t=this.\u0275fac=function(A){return new(A||C)(t.rXU(d.T),t.rXU(P.c$),t.rXU(i.k),t.rXU(e.r),t.rXU(o.W3))};static#e=this.\u0275cmp=t.VBU({type:C,selectors:[["app-academy-tournament-registration"]],decls:13,vars:7,consts:[[1,"responsive-text"],["slot","end"],["strong","","color","light",3,"click"],[3,"disabled",4,"ngFor","ngForOf"],[3,"disabled"],[3,"alt","src",4,"ngIf"],["src","https://ionicframework.com/docs/img/demos/card-media.png",3,"alt",4,"ngIf"],[4,"ngIf"],["class","price",4,"ngIf"],[1,"cardContent"],["class","inputBorderRadius ion-margin-bottom","lines","none",3,"disabled",4,"ngIf"],["type","submit","color","primary","shape","round","expand","block","fill","solid","class","ion-margin",3,"click",4,"ngIf"],[3,"alt","src"],["src","https://ionicframework.com/docs/img/demos/card-media.png",3,"alt"],[1,"discountedPrice"],[1,"price"],["lines","none",1,"inputBorderRadius","ion-margin-bottom",3,"disabled"],["position","stacked"],["interface","popover","name","tournament.paymentsAmount","required","",1,"ion-text-center","placeholder-select",3,"placeholder","okText","cancelText","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["type","submit","color","primary","shape","round","expand","block","fill","solid",1,"ion-margin",3,"click"]],template:function(A,S){1&A&&(t.j41(0,"ion-header")(1,"ion-toolbar")(2,"ion-title",0),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"ion-buttons",1)(6,"ion-button",2),t.bIt("click",function(){return S.cancel(!1)}),t.EFF(7),t.nI1(8,"translate"),t.k0s()()()(),t.j41(9,"ion-content")(10,"ion-grid")(11,"ion-row"),t.DNE(12,T,19,16,"ion-card",3),t.k0s()()()),2&A&&(t.R7$(3),t.JRh(t.bMT(4,3,"ACADEMY_TOURNAMENT_PAYMENTS.GENERATE_NEW_PAYMENT")),t.R7$(4),t.JRh(t.bMT(8,5,"all.close")),t.R7$(5),t.Y8G("ngForOf",S.tournaments))},dependencies:[r.Sq,r.bT,E.BC,E.YS,E.vS,o.Jm,o.QW,o.b_,o.I9,o.ME,o.HW,o.tN,o.W9,o.lO,o.eU,o.uz,o.he,o.ln,o.Nm,o.Ip,o.BC,o.ai,o.Je,r.vh,P.D9,p.a,s.P],styles:[".cardContent[_ngcontent-%COMP%]{display:flex;flex-flow:column;font-size:min(3vw,12px)}.discountedPrice[_ngcontent-%COMP%]{color:var(--ion-color-primary);margin-left:10px;font-size:min(4vw,16px)}.price[_ngcontent-%COMP%]{color:var(--ion-color-primary);font-size:min(4vw,16px)}"]})}return C})()},63490:(L,O,n)=>{"use strict";n.r(O),n.d(O,{BookcasePageModule:()=>h});var f=n(56610),t=n(37222),d=n(77897),P=n(36075),i=n(73308),e=n(2978),o=n(76098),r=n(1519),E=n(57291),p=n(88885);function s(m,l){if(1&m&&(e.j41(0,"div"),e.nrm(1,"iframe",2),e.k0s()),2&m){const _=l.$implicit,a=e.XpG();e.R7$(1),e.FS9("width",a.width),e.FS9("height",a.height),e.Y8G("src",a.sanitizer(_.link),e.f$h)}}const u=[{path:"",component:(()=>{class m{constructor(_,a,v,M,D){this.platform=_,this.dom=a,this.commsService=v,this.storage=M,this.parameterService=D}ionViewWillEnter(){this.platform.ready().then(_=>{this.width=this.platform.width(),this.height=this.platform.height()-50})}ngOnInit(){this.getBookcase()}sanitizer(_){return this.dom.bypassSecurityTrustResourceUrl(_)}getBookcase(){var _=this;this.storage.get("token").then(function(){var a=(0,i.A)(function*(v){v&&(yield _.commsService.getBookcase(v.access_token)).subscribe(M=>{_.listBookcase=M},M=>{console.log("error GetBookcase",M)})});return function(v){return a.apply(this,arguments)}}())}static#t=this.\u0275fac=function(a){return new(a||m)(e.rXU(d.OD),e.rXU(o.up),e.rXU(r.p),e.rXU(E.n),e.rXU(p.f))};static#e=this.\u0275cmp=e.VBU({type:m,selectors:[["app-bookcase"]],decls:2,vars:2,consts:[[3,"fullscreen"],[4,"ngFor","ngForOf"],["seamless","seamless","scrolling","yes","frameborder","0","allowtransparency","true","allowfullscreen","",3,"width","height","src"]],template:function(a,v){1&a&&(e.j41(0,"ion-content",0),e.DNE(1,s,2,3,"div",1),e.k0s()),2&a&&(e.Y8G("fullscreen",!0),e.R7$(1),e.Y8G("ngForOf",v.listBookcase))},dependencies:[f.Sq,d.W9],styles:[".full[_ngcontent-%COMP%]{width:100%;height:100%!important}"]})}return m})()}];let c=(()=>{class m{static#t=this.\u0275fac=function(a){return new(a||m)};static#e=this.\u0275mod=e.$C({type:m});static#n=this.\u0275inj=e.G2t({imports:[P.iI.forChild(u),P.iI]})}return m})(),h=(()=>{class m{static#t=this.\u0275fac=function(a){return new(a||m)};static#e=this.\u0275mod=e.$C({type:m});static#n=this.\u0275inj=e.G2t({imports:[f.MD,t.YN,d.bv,c]})}return m})()},97322:(L,O,n)=>{"use strict";n.r(O),n.d(O,{BusinessDirectoryTabMapPageModule:()=>h});var f=n(56610),t=n(37222),d=n(77897),P=n(36075),i=n(73308),e=n(2978),o=n(58025),r=n(73012),E=n(22882),p=n(26811);const g=[{path:"",component:(()=>{class m{constructor(_,a,v,M){this.tabService=_,this.alertController=a,this.businessService=v,this.translateService=M,this.showingAlert=!1}ngOnInit(){}goBack(_){var a=this;return(0,i.A)(function*(){a.showingAlert||(a.showingAlert=!0,a.alert=yield a.alertController.create({message:a.translateService.instant("LOCATION_REQUIRED"),backdropDismiss:!1,buttons:[{text:a.translateService.instant("ACCEPT"),handler:()=>{a.showingAlert=!1,a.tabService.changeTabInContainerPage("list")}}]}),yield a.alert.present())})()}static#t=this.\u0275fac=function(a){return new(a||m)(e.rXU(o.r),e.rXU(d.hG),e.rXU(r.u),e.rXU(E.c$))};static#e=this.\u0275cmp=e.VBU({type:m,selectors:[["app-business-directory-tab-map"]],decls:2,vars:2,consts:[[3,"businesses","centerFirstMarker","errorGettingLocation"]],template:function(a,v){1&a&&(e.j41(0,"ion-content")(1,"app-map",0),e.bIt("errorGettingLocation",function(D){return v.goBack(D)}),e.k0s()()),2&a&&(e.R7$(1),e.Y8G("businesses",v.businessService.businesses)("centerFirstMarker",!0))},dependencies:[d.W9,p.i]})}return m})()}];let u=(()=>{class m{static#t=this.\u0275fac=function(a){return new(a||m)};static#e=this.\u0275mod=e.$C({type:m});static#n=this.\u0275inj=e.G2t({imports:[P.iI.forChild(g),P.iI]})}return m})();var c=n(55553);let h=(()=>{class m{static#t=this.\u0275fac=function(a){return new(a||m)};static#e=this.\u0275mod=e.$C({type:m});static#n=this.\u0275inj=e.G2t({imports:[f.MD,t.YN,d.bv,u,c.h]})}return m})()},27207:(L,O,n)=>{"use strict";n.d(O,{x:()=>p});var f=n(73308),t=n(2978),d=n(77897),P=n(25668),i=n(54171),e=n(22882),o=n(7125),r=n(1587),E=n(30537);let p=(()=>{class s{constructor(u,c,h,m,l,_,a){this.modalCtrl=u,this.termProvider=c,this.utilsService=h,this.translateService=m,this.cityProvider=l,this.platform=_,this.dataPolicyService=a,this.loadingTerm=!0}ngOnInit(){var u=this;setTimeout(()=>{u.utilsService.dismissLoading()},5e3)}ionViewDidEnter(){this.subscription=this.platform.backButton.subscribeWithPriority(9999,()=>{})}ionViewWillLeave(){this.subscription.unsubscribe()}loadComplete(u){this.utilsService.dismissLoading(),this.numPages=u._pdfInfo.numPages}pageRendered(u){this.pageNumber=u.pageNumber,this.pageNumber==this.numPages&&(this.loadingTerm=!1)}accepted(u,c){var h=this;let m={accepted:!0,id:u},l="term"==c?this.termProvider:this.dataPolicyService;this.utilsService.presentLoading(this.translateService.instant("all.saving")).then(()=>{l.accept(m).then(function(){var _=(0,f.A)(function*(a){a.r&&(h.utilsService.presentToast(4e3,"success","top",a.m),h.cancel()),h.utilsService.dismissLoading()});return function(a){return _.apply(this,arguments)}}(),_=>{this.utilsService.dismissLoading(),console.log("Error accepted",_)})})}cancel(){this.modalCtrl.dismiss()}static#t=this.\u0275fac=function(c){return new(c||s)(t.rXU(d.W3),t.rXU(P.U),t.rXU(i.T),t.rXU(e.c$),t.rXU(o.h),t.rXU(d.OD),t.rXU(r.k))};static#e=this.\u0275cmp=t.VBU({type:s,selectors:[["app-modal-term"]],decls:11,vars:6,consts:[[1,"ion-no-border"],["color","primary"],[1,"responsive-text",2,"display","contents"],[1,"content"],[2,"width","100%","height","100%",3,"src","render-text","original-size","after-load-complete","page-rendered"],[1,"ion-text-center"],["size","default",3,"disabled","click"]],template:function(c,h){1&c&&(t.j41(0,"ion-header",0)(1,"ion-toolbar",1)(2,"ion-title",2),t.EFF(3),t.k0s()()(),t.j41(4,"ion-content",3)(5,"pdf-viewer",4),t.bIt("after-load-complete",function(l){return h.loadComplete(l)})("page-rendered",function(l){return h.pageRendered(l)}),t.k0s()(),t.j41(6,"ion-footer")(7,"ion-item")(8,"ion-label",5)(9,"ion-button",6),t.bIt("click",function(){return h.accepted(h.term.id,h.typeDocument)}),t.EFF(10),t.k0s()()()()),2&c&&(t.R7$(3),t.JRh(h.title),t.R7$(2),t.Y8G("src",h.term.url)("render-text",!0)("original-size",!1),t.R7$(4),t.Y8G("disabled",h.loadingTerm),t.R7$(1),t.JRh(h.buttonText))},dependencies:[d.Jm,d.W9,d.M0,d.eU,d.uz,d.he,d.BC,d.ai,E.c6],styles:["ion-content[_ngcontent-%COMP%]{scrollbar-width:none!important}.content[_ngcontent-%COMP%]::-webkit-scrollbar{display:none;overflow:hidden}"]})}return s})()},94751:(L,O,n)=>{"use strict";n.r(O),n.d(O,{NewsPageModule:()=>v});var f=n(56610),t=n(37222),d=n(77897),P=n(36075),i=n(2978),e=n(26173),o=n(29885),r=n(46868),E=n(18674),p=n(54171),s=n(26409),g=n(88885),u=n(22882);function c(M,D){1&M&&(i.j41(0,"p",11),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&M&&(i.R7$(1),i.JRh(i.bMT(2,1,"NEW_NEWS")))}function h(M,D){if(1&M&&i.nrm(0,"ion-card-content",12),2&M){const T=i.XpG().$implicit;i.Y8G("innerHTML",T.description,i.npT)}}function m(M,D){if(1&M){const T=i.RV6();i.j41(0,"ion-card",6),i.bIt("click",function(){const R=i.eBV(T).$implicit,y=i.XpG();return i.Njj(y.toggleDetails(R))}),i.DNE(1,c,3,3,"p",7),i.nrm(2,"img",8),i.j41(3,"ion-card-header")(4,"ion-card-subtitle"),i.EFF(5),i.k0s(),i.j41(6,"ion-card-subtitle"),i.EFF(7),i.k0s(),i.j41(8,"ion-card-title"),i.EFF(9),i.k0s(),i.j41(10,"ion-card-subtitle"),i.EFF(11,"Ver mas..."),i.k0s(),i.nrm(12,"ion-icon",9),i.k0s(),i.DNE(13,h,1,1,"ion-card-content",10),i.k0s()}if(2&M){const T=D.$implicit;i.R7$(1),i.Y8G("ngIf",T.new),i.R7$(1),i.FS9("src",T.imgUrl,i.B4B),i.R7$(3),i.JRh(T.category),i.R7$(2),i.JRh(T.publicationDate),i.R7$(2),i.JRh(T.title),i.R7$(3),i.Y8G("name",T.icon),i.R7$(1),i.Y8G("ngIf",T.showDetails)}}const _=[{path:"",component:(()=>{class M{constructor(T,I,C,R,y,A,S){this.homeProvider=T,this.userProvider=I,this.cartProvider=C,this.orderProvider=R,this.utilsService=y,this.http=A,this.parameterService=S,this.arr=[],this.targetUrl="https://dimoficial.com/feed/eclectica104_rss"}ngOnInit(){this.loadXML()}loadXML(){this.http.get(this.targetUrl,{responseType:"text"}).subscribe(T=>{let I=(new DOMParser).parseFromString(T,"text/xml");this.news=this.xmlToJson(I);for(let C in this.news.rss.channel.item){let R=this.news.rss.channel.item[C],y=R.pubDate,A=y.substring(0,4)+"/"+y.substring(4,6)+"/"+y.substring(6,8)+"  "+y.substring(8,10)+":"+y.substring(10,12)+":"+y.substring(12,14),S=this.utilsService.getWeeksDiff(new Date(A),new Date);this.arr.push({imgUrl:R.imgUrl,category:R.category,title:R.title,description:R.description.substring(0,R.description.indexOf("<p>La entrada <a rel=")),publicationDate:A,showDetails:!1,icon:"add-circle",new:0==S})}})}xmlToJson(T){let I={};if(1==T.nodeType){if(T.attributes.length>0){I["@attributes"]={};for(let R=0;R<T.attributes.length;R++){let y=T.attributes.item(R);I["@attributes"][y.nodeName]=y.nodeValue}}}else 3==T.nodeType&&(I=T.nodeValue);let C=[].slice.call(T.childNodes).filter(function(R){return 3===R.nodeType});if(T.hasChildNodes()&&T.childNodes.length===C.length)I=[].slice.call(T.childNodes).reduce(function(R,y){return R+y.nodeValue},"");else if(T.hasChildNodes())for(let R=0;R<T.childNodes.length;R++){let y=T.childNodes.item(R),A=y.nodeName;if(typeof I[A]>"u")I[A]=this.xmlToJson(y);else{if(typeof I[A].push>"u"){let S=I[A];I[A]=[],I[A].push(S)}I[A].push(this.xmlToJson(y))}}return I}toggleDetails(T){T.showDetails?(T.showDetails=!1,T.icon="add-circle"):(T.showDetails=!0,T.icon="close-circle")}static#t=this.\u0275fac=function(I){return new(I||M)(i.rXU(e.X),i.rXU(o.D),i.rXU(r.m),i.rXU(E.Q),i.rXU(p.T),i.rXU(s.Qq),i.rXU(g.f))};static#e=this.\u0275cmp=i.VBU({type:M,selectors:[["app-news"]],decls:9,vars:4,consts:[[1,"ion-no-border"],["slot","start"],[1,"ion-text-center"],["padding",""],[2,"margin-top","8px"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["class","newNews",4,"ngIf"],["onerror","this.style.display='none'","clas","imgnew",3,"src"],["color","primary","item-right","",3,"name"],[3,"innerHTML",4,"ngIf"],[1,"newNews"],[3,"innerHTML"]],template:function(I,C){1&I&&(i.j41(0,"ion-header",0)(1,"ion-toolbar"),i.nrm(2,"ion-back-button",1),i.j41(3,"ion-title",2),i.EFF(4),i.nI1(5,"translate"),i.k0s()()(),i.j41(6,"ion-content",3)(7,"div",4),i.DNE(8,m,14,7,"ion-card",5),i.k0s()()),2&I&&(i.R7$(4),i.JRh(i.bMT(5,2,"TITLE_HOME_NEWS")),i.R7$(4),i.Y8G("ngForOf",C.arr))},dependencies:[f.Sq,f.bT,d.el,d.b_,d.I9,d.ME,d.HW,d.tN,d.W9,d.eU,d.iq,d.BC,d.ai,d.tY,u.D9],styles:[".subtitle[_ngcontent-%COMP%]{font-size:x-large;font-weight:bolder}.imgnew[_ngcontent-%COMP%]{width:100%}ion-list[_ngcontent-%COMP%]{background-color:transparent}ion-icon[_ngcontent-%COMP%]{font-size:40px;position:relative;left:0 0/100% 100% no-repeat}.newNews[_ngcontent-%COMP%]{position:absolute;width:78px;background-color:var(--ion-color-primary);color:#fff;font-weight:700;padding:0 5px;text-transform:uppercase;text-align:center;box-shadow:1px 2px 2px 1px gray;border-bottom-right-radius:5px}"]})}return M})()}];let a=(()=>{class M{static#t=this.\u0275fac=function(I){return new(I||M)};static#e=this.\u0275mod=i.$C({type:M});static#n=this.\u0275inj=i.G2t({imports:[P.iI.forChild(_),P.iI]})}return M})(),v=(()=>{class M{static#t=this.\u0275fac=function(I){return new(I||M)};static#e=this.\u0275mod=i.$C({type:M});static#n=this.\u0275inj=i.G2t({imports:[f.MD,t.YN,d.bv,a,u.h.forChild()]})}return M})()},63162:(L,O,n)=>{"use strict";n.r(O),n.d(O,{RadioPageModule:()=>m});var f=n(56610),t=n(37222),d=n(77897),P=n(36075),i=n(73308),e=n(2978),o=n(76098),r=n(1519),E=n(57291),p=n(88885),s=n(22882);function g(l,_){if(1&l&&(e.j41(0,"div",5),e.nrm(1,"iframe",6),e.k0s()),2&l){const a=_.$implicit,v=e.XpG();e.R7$(1),e.Y8G("src",v.sanitizer(a.link),e.f$h)}}const c=[{path:"",component:(()=>{class l{constructor(a,v,M,D){this.dom=a,this.commsService=v,this.storage=M,this.parameterService=D}ngOnInit(){this.getRadio()}getRadio(){var a=this;this.storage.get("token").then(function(){var v=(0,i.A)(function*(M){M&&(yield a.commsService.getRadio(M.access_token)).subscribe(D=>{let T=Object.values(D);T=T.slice().reverse(),a.episodes=T},D=>{console.log("error GetRadio",D)})});return function(M){return v.apply(this,arguments)}}())}sanitizer(a){return this.dom.bypassSecurityTrustResourceUrl(a)}static#t=this.\u0275fac=function(v){return new(v||l)(e.rXU(o.up),e.rXU(r.p),e.rXU(E.n),e.rXU(p.f))};static#e=this.\u0275cmp=e.VBU({type:l,selectors:[["app-radio"]],decls:8,vars:5,consts:[[1,"ion-no-border"],["slot","start"],[1,"ion-text-center"],["padding","",3,"fullscreen"],["class","radio",4,"ngFor","ngForOf"],[1,"radio"],["width","100%","height","232","frameborder","0","allowfullscreen","",3,"src"]],template:function(v,M){1&v&&(e.j41(0,"ion-header",0)(1,"ion-toolbar"),e.nrm(2,"ion-back-button",1),e.j41(3,"ion-title",2),e.EFF(4),e.nI1(5,"translate"),e.k0s()()(),e.j41(6,"ion-content",3),e.DNE(7,g,2,1,"div",4),e.k0s()),2&v&&(e.R7$(4),e.JRh(e.bMT(5,3,"LABEL_TTITLE_3")),e.R7$(2),e.Y8G("fullscreen",!0),e.R7$(1),e.Y8G("ngForOf",M.episodes))},dependencies:[f.Sq,d.el,d.W9,d.eU,d.BC,d.ai,d.tY,s.D9],styles:[".radio[_ngcontent-%COMP%]{padding:20px 10px 0}"]})}return l})()}];let h=(()=>{class l{static#t=this.\u0275fac=function(v){return new(v||l)};static#e=this.\u0275mod=e.$C({type:l});static#n=this.\u0275inj=e.G2t({imports:[P.iI.forChild(c),P.iI]})}return l})(),m=(()=>{class l{static#t=this.\u0275fac=function(v){return new(v||l)};static#e=this.\u0275mod=e.$C({type:l});static#n=this.\u0275inj=e.G2t({imports:[f.MD,t.YN,d.bv,h,s.h.forChild()]})}return l})()},86302:(L,O,n)=>{"use strict";n.r(O),n.d(O,{SearchPageModule:()=>D});var f=n(56610),t=n(77897),d=n(22882),P=n(36075),i=n(73308),e=n(2978),o=n(57291),r=n(3366);let E=(()=>{class T{constructor(C){this.api=C}getSearchProducts(C,R,y,A,S){return this.api.post("product/searchbar/list/"+A,{value_search:C,offset:R,take:y},S)}static#t=this.\u0275fac=function(R){return new(R||T)(e.KVO(r.G))};static#e=this.\u0275prov=e.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})();var p=n(46868),s=n(7125),g=n(99657),u=n(70047);const c=["search"];function h(T,I){1&T&&e.nrm(0,"img",10)}function m(T,I){1&T&&(e.j41(0,"div",11),e.nrm(1,"img",12),e.j41(2,"p"),e.EFF(3,"No hay resultados"),e.k0s()())}function l(T,I){1&T&&(e.j41(0,"span",13),e.nrm(1,"ion-spinner",14),e.k0s())}const a=[{path:"",component:(()=>{class T{constructor(C,R,y,A,S,B){this.storage=C,this.modalCtrl=R,this.searchProvider=y,this.cartProvider=A,this.cityProvider=S,this.analyticsFacebookService=B,this.listProducts=[],this.offset=0,this.take=10,this.statusSearch=!1,this.statusNoResults=!1,this.listProductsChanged=0,this.productsCartActive=0}ngOnInit(){}ionViewWillEnter(){this.listProducts=[],this.valueSearch="",this.offset=0,this.search.setFocus()}getProducts(C){if(this.listProducts=[],this.valueSearch=C.detail.value,this.offset=0,this.statusNoResults=!1,this.activeInfinite&&this.activeInfinite.enable(!0),!this.valueSearch||!this.valueSearch.trim())return this.valueSearch="",void(this.statusSearch=!1);this.valueSearch.trim().length<3||(this.statusSearch=!0,this.listProductsSearch(this.valueSearch.trim(),this.offset,this.take))}listProductsSearch(C,R,y,A){var S=this;this.storage.get("token").then(function(){var B=(0,i.A)(function*(j){j&&(yield S.searchProvider.getSearchProducts(C,R,y,S.cartProvider.storeType,j.access_token)).subscribe(b=>{if(S.statusSearch=!1,"success"==b.status){var U={};if(U.SEARCH_STRING=C,U.SUCCESS=b.products.length?1:0,S.analyticsFacebookService.createLogEvent("EVENT_NAME_SEARCHED",U,null),b.products.length)for(let w=0;w<b.products.length;w++)S.listProducts.find(N=>N.id===b.products[w].id)||S.listProducts.push(b.products[w]);S.listProducts.length?S.statusNoResults=!1:(S.listProducts=[],S.statusNoResults=!0),S.cartProvider.productsCart.length&&S.productsCartActive++,A&&(A.complete(),S.activeInfinite=A,S.offset>S.listProducts.length&&A.enable(!1))}},b=>{S.statusSearch=!1,console.log("error searchProvider: ",b)})});return function(j){return B.apply(this,arguments)}}())}moreProducts(C){this.listProducts.length&&this.listProducts.length>=this.offset&&(this.valueSearch||this.valueSearch.trim()&&this.valueSearch.trim().length>=3)?(this.offset+=10,this.listProductsSearch(this.valueSearch,this.offset,this.take,C)):C.enable(!1)}static#t=this.\u0275fac=function(R){return new(R||T)(e.rXU(o.n),e.rXU(t.W3),e.rXU(E),e.rXU(p.m),e.rXU(s.h),e.rXU(g.I))};static#e=this.\u0275cmp=e.VBU({type:T,selectors:[["page-search"]],viewQuery:function(R,y){if(1&R&&e.GBs(c,5),2&R){let A;e.mGM(A=e.lsd())&&(y.search=A.first)}},decls:15,vars:10,consts:[[1,"ion-no-border"],["slot","start"],["color","light","debounce","2000","animated","true",3,"placeholder","ionChange"],["search",""],["src","../../assets/img/search.png","class","imageSearchProduct",4,"ngIf"],["class","ion-text-center textNoResults textTittle",4,"ngIf"],[3,"listProducts"],[3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["class","spanSpinner",4,"ngIf"],["src","../../assets/img/search.png",1,"imageSearchProduct"],[1,"ion-text-center","textNoResults","textTittle"],["src","../../assets/img/search.png",1,"imageNoResults"],[1,"spanSpinner"],["name","lines"]],template:function(R,y){1&R&&(e.j41(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-buttons",1),e.nrm(3,"ion-back-button"),e.k0s(),e.j41(4,"ion-searchbar",2,3),e.bIt("ionChange",function(S){return y.getProducts(S)}),e.nI1(6,"translate"),e.k0s()()(),e.j41(7,"ion-content"),e.DNE(8,h,1,0,"img",4),e.DNE(9,m,4,0,"div",5),e.nrm(10,"app-product-list",6),e.j41(11,"ion-infinite-scroll",7),e.bIt("ionInfinite",function(S){return y.moreProducts(S)}),e.nrm(12,"ion-infinite-scroll-content",8),e.nI1(13,"translate"),e.k0s(),e.DNE(14,l,2,0,"span",9),e.k0s()),2&R&&(e.R7$(4),e.FS9("placeholder",e.bMT(6,6,"SEARCH_PLACEHOLDER")),e.R7$(4),e.Y8G("ngIf",!y.statusSearch&&0==y.listProducts.length&&!y.statusNoResults),e.R7$(1),e.Y8G("ngIf",y.statusNoResults&&""!=y.valueSearch&&0==y.listProducts.length),e.R7$(1),e.Y8G("listProducts",y.listProducts),e.R7$(2),e.FS9("loadingText",e.bMT(13,8,"LOADING_MORE_PRODUCTS")),e.R7$(2),e.Y8G("ngIf",y.statusSearch))},dependencies:[f.bT,t.el,t.QW,t.W9,t.eU,t.Ax,t.Hp,t.S1,t.w2,t.ai,t.Gw,t.tY,u.t,d.D9],styles:[".imageSearchProduct[_ngcontent-%COMP%]{display:block!important;margin:50% auto 0!important;width:50%}ion-spinner[_ngcontent-%COMP%]{width:25%;height:25%;stroke:#444;fill:#222;top:-35%}.spanSpinner[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;width:100%;height:100%}.item-md.item-block[_ngcontent-%COMP%]   .item-inner[_ngcontent-%COMP%]{padding-right:0!important}.textNoResults[_ngcontent-%COMP%]{margin-top:50%;font-size:15px;font-style:oblique}.imageNoResults[_ngcontent-%COMP%]{max-width:40px}ion-toolbar.sc-ion-searchbar-ios-h[_ngcontent-%COMP%], ion-toolbar[_ngcontent-%COMP%]   .sc-ion-searchbar-ios-h[_ngcontent-%COMP%]{padding-top:2px!important}"]})}return T})()}];let v=(()=>{class T{static#t=this.\u0275fac=function(R){return new(R||T)};static#e=this.\u0275mod=e.$C({type:T});static#n=this.\u0275inj=e.G2t({imports:[P.iI.forChild(a),P.iI]})}return T})();var M=n(55553);let D=(()=>{class T{static#t=this.\u0275fac=function(R){return new(R||T)};static#e=this.\u0275mod=e.$C({type:T});static#n=this.\u0275inj=e.G2t({imports:[f.MD,t.bv,d.h.forChild(),v,M.h]})}return T})()},81143:(L,O,n)=>{"use strict";n.r(O),n.d(O,{ShopifyPageModule:()=>u});var f=n(56610),t=n(37222),d=n(77897),P=n(36075),i=n(2978),e=n(22882),o=n(7125),r=n(76098);const E=["iframe"],s=[{path:"",component:(()=>{class c{constructor(m,l,_){this.translateService=m,this.cityProvider=l,this.dom=_,this.goBackCount=0}ngOnInit(){}sanitizer(m){return this.dom.bypassSecurityTrustResourceUrl(m)}close(){}static#t=this.\u0275fac=function(l){return new(l||c)(i.rXU(e.c$),i.rXU(o.h),i.rXU(r.up))};static#e=this.\u0275cmp=i.VBU({type:c,selectors:[["app-shopify"]],viewQuery:function(l,_){if(1&l&&i.GBs(E,5),2&l){let a;i.mGM(a=i.lsd())&&(_.iframe=a.first)}},decls:10,vars:4,consts:[[1,"ion-no-border"],["slot","start",3,"click"],["slot","icon-only","name","arrow-back-outline"],[1,"ion-text-center"],["id","iframeShop","width","100%","height","100%","seamless","seamless","scrolling","yes","frameborder","0","allowtransparency","true","allowfullscreen","",3,"src"],["iframe",""]],template:function(l,_){1&l&&(i.j41(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-buttons",1),i.bIt("click",function(){return _.close()}),i.nrm(3,"ion-icon",2),i.k0s(),i.j41(4,"ion-title",3),i.EFF(5),i.nI1(6,"translate"),i.k0s()()(),i.j41(7,"ion-content"),i.nrm(8,"iframe",4,5),i.k0s()),2&l&&(i.R7$(5),i.JRh(i.bMT(6,2,"SHOP")),i.R7$(3),i.Y8G("src",_.sanitizer(_.cityProvider._urlAdmin+"/shopify/show"),i.f$h))},dependencies:[d.QW,d.W9,d.eU,d.iq,d.BC,d.ai,e.D9]})}return c})()}];let g=(()=>{class c{static#t=this.\u0275fac=function(l){return new(l||c)};static#e=this.\u0275mod=i.$C({type:c});static#n=this.\u0275inj=i.G2t({imports:[P.iI.forChild(s),P.iI]})}return c})(),u=(()=>{class c{static#t=this.\u0275fac=function(l){return new(l||c)};static#e=this.\u0275mod=i.$C({type:c});static#n=this.\u0275inj=i.G2t({imports:[f.MD,t.YN,d.bv,g,e.h.forChild()]})}return c})()},27308:(L,O,n)=>{"use strict";n.r(O),n.d(O,{TiktokPageModule:()=>c});var f=n(56610),t=n(37222),d=n(77897),P=n(36075),i=n(73308),e=n(36839),o=n(2978),r=n(1519),E=n(57291);function p(h,m){1&h&&(o.j41(0,"ion-card")(1,"ion-card-content")(2,"blockquote",1),o.nrm(3,"section"),o.k0s()()())}const g=[{path:"",component:(()=>{class h{constructor(l,_){this.commsService=l,this.storage=_}ngOnInit(){(0,e.get)("assets/js/embed_v0.0.8.js",()=>{}),this.getTiktok()}getTiktok(){var l=this;this.storage.get("token").then(function(){var _=(0,i.A)(function*(a){a&&(yield l.commsService.getTiktok(a.access_token)).subscribe(v=>{l.videost=v},v=>{console.log("error GetBookcase",v)})});return function(a){return _.apply(this,arguments)}}())}static#t=this.\u0275fac=function(_){return new(_||h)(o.rXU(r.p),o.rXU(E.n))};static#e=this.\u0275cmp=o.VBU({type:h,selectors:[["app-tiktok"]],decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["cite","tt.video","data-video-id","tt.code",1,"tiktok-embed",2,"width","100%","min-width","325px"]],template:function(_,a){1&_&&(o.j41(0,"ion-content"),o.DNE(1,p,4,0,"ion-card",0),o.k0s()),2&_&&(o.R7$(1),o.Y8G("ngForOf",a.videost))},dependencies:[f.Sq,d.b_,d.I9,d.W9]})}return h})()}];let u=(()=>{class h{static#t=this.\u0275fac=function(_){return new(_||h)};static#e=this.\u0275mod=o.$C({type:h});static#n=this.\u0275inj=o.G2t({imports:[P.iI.forChild(g),P.iI]})}return h})(),c=(()=>{class h{static#t=this.\u0275fac=function(_){return new(_||h)};static#e=this.\u0275mod=o.$C({type:h});static#n=this.\u0275inj=o.G2t({imports:[f.MD,t.YN,d.bv,u]})}return h})()},13453:(L,O,n)=>{"use strict";n.r(O),n.d(O,{TrendsPageModule:()=>m});var f=n(56610),t=n(77897),d=n(22882),P=n(36075),i=n(73308),e=n(2978),o=n(57291),r=n(26173),E=n(46868),p=n(54171),s=n(70047);const u=[{path:"",component:(()=>{class l{constructor(a,v,M,D,T){this.storage=a,this.homeProvider=v,this.cartProvider=M,this.utilsService=D,this.translate=T,this.offset=0,this.take=10,this.listProducts=[],this.listProductsChanged=0,this.productsCartActive=0}ngOnInit(){this.productsTrends(this.offset,this.take)}toggleInfiniteScroll(){this.infiniteScroll.disabled=!this.infiniteScroll.disabled}productsTrends(a,v,M){var D=this;this.storage.get("token").then(T=>{T&&this.utilsService.presentLoading(this.translate.instant("all.loading")).then((0,i.A)(function*(){(yield D.homeProvider.getProductsTrends(a,v,D.cartProvider.storeType,T.access_token)).subscribe(I=>{if(console.log("data products trends",I),I.status="success"){for(let C=0;C<I.listProducts.length;C++)D.listProducts.push(I.listProducts[C].products);D.cartProvider.productsCart.length&&D.productsCartActive++,D.utilsService.dismissLoading(),M&&(M.target.complete(),D.offset>D.listProducts.length&&!D.infiniteScroll.disabled&&D.toggleInfiniteScroll())}},I=>{console.log("error productsTrends: ",I),D.utilsService.dismissLoading()})}))})}moreProducts(a){this.offset+=10,this.productsTrends(this.offset,this.take,a)}static#t=this.\u0275fac=function(v){return new(v||l)(e.rXU(o.n),e.rXU(r.X),e.rXU(E.m),e.rXU(p.T),e.rXU(d.c$))};static#e=this.\u0275cmp=e.VBU({type:l,selectors:[["page-trends"]],viewQuery:function(v,M){if(1&v&&e.GBs(t.Ax,5),2&v){let D;e.mGM(D=e.lsd())&&(M.infiniteScroll=D.first)}},decls:12,vars:7,consts:[[1,"ion-no-border"],["slot","start"],[1,"ion-text-center"],[3,"listProducts"],[3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"]],template:function(v,M){1&v&&(e.j41(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-buttons",1),e.nrm(3,"ion-back-button"),e.k0s(),e.j41(4,"ion-title",2),e.EFF(5),e.nI1(6,"translate"),e.k0s()()(),e.j41(7,"ion-content"),e.nrm(8,"app-product-list",3),e.j41(9,"ion-infinite-scroll",4),e.bIt("ionInfinite",function(T){return M.moreProducts(T)}),e.nrm(10,"ion-infinite-scroll-content",5),e.nI1(11,"translate"),e.k0s()()),2&v&&(e.R7$(5),e.JRh(e.bMT(6,3,"TRENDS_TITLE")),e.R7$(3),e.Y8G("listProducts",M.listProducts),e.R7$(2),e.FS9("loadingText",e.bMT(11,5,"LOADING_MORE_PRODUCTS")))},dependencies:[t.el,t.QW,t.W9,t.eU,t.Ax,t.Hp,t.BC,t.ai,t.tY,s.t,d.D9]})}return l})()}];let c=(()=>{class l{static#t=this.\u0275fac=function(v){return new(v||l)};static#e=this.\u0275mod=e.$C({type:l});static#n=this.\u0275inj=e.G2t({imports:[P.iI.forChild(u),P.iI]})}return l})();var h=n(55553);let m=(()=>{class l{static#t=this.\u0275fac=function(v){return new(v||l)};static#e=this.\u0275mod=e.$C({type:l});static#n=this.\u0275inj=e.G2t({imports:[f.MD,t.bv,d.h.forChild(),c,h.h]})}return l})()},3843:(L,O,n)=>{"use strict";n.r(O),n.d(O,{WalletPageModule:()=>j});var f=n(56610),t=n(37222),d=n(22882),P=n(55553),i=n(77897),e=n(36075),o=n(73308),r=n(22126);class E extends r.E_{write(U){var w=this;return(0,o.A)(function*(){if(typeof navigator>"u"||!navigator.clipboard)throw w.unavailable("Clipboard API not available in this browser");if(void 0!==U.string)yield w.writeText(U.string);else if(U.url)yield w.writeText(U.url);else{if(!U.image)throw new Error("Nothing to write");if(!(typeof ClipboardItem<"u"))throw w.unavailable("Writing images to the clipboard is not supported in this browser");try{const x=yield(yield fetch(U.image)).blob(),N=new ClipboardItem({[x.type]:x});yield navigator.clipboard.write([N])}catch{throw new Error("Failed to write image")}}})()}read(){var U=this;return(0,o.A)(function*(){if(typeof navigator>"u"||!navigator.clipboard)throw U.unavailable("Clipboard API not available in this browser");if(!(typeof ClipboardItem<"u"))return U.readText();try{const w=yield navigator.clipboard.read(),x=w[0].types[0],N=yield w[0].getType(x);return{value:yield U._getBlobData(N,x),type:x}}catch{return U.readText()}})()}readText(){var U=this;return(0,o.A)(function*(){if(typeof navigator>"u"||!navigator.clipboard||!navigator.clipboard.readText)throw U.unavailable("Reading from clipboard not supported in this browser");return{value:yield navigator.clipboard.readText(),type:"text/plain"}})()}writeText(U){var w=this;return(0,o.A)(function*(){if(typeof navigator>"u"||!navigator.clipboard||!navigator.clipboard.writeText)throw w.unavailable("Writting to clipboard not supported in this browser");yield navigator.clipboard.writeText(U)})()}_getBlobData(U,w){return new Promise((x,N)=>{const F=new FileReader;w.includes("image")?F.readAsDataURL(U):F.readAsText(U),F.onloadend=()=>{x(F.result)},F.onerror=$=>{N($)}})}}const p=(0,r.F3)("Clipboard",{web:()=>new E});var s=n(2978),g=n(57291),u=n(54171),c=n(3366),h=n(26409);let m=(()=>{class b{constructor(w,x){this.api=w,this.http=x}getCoupons(w){return this.api.get("wallet/coupons",w)}static#t=this.\u0275fac=function(x){return new(x||b)(s.KVO(c.G),s.KVO(h.Qq))};static#e=this.\u0275prov=s.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})();var l=n(7125),_=n(81337),a=n(67433);function v(b,U){1&b&&s.nrm(0,"app-skeleton-progress",7),2&b&&s.Y8G("iscard",!0)("islist",!1)}function M(b,U){if(1&b&&s.nrm(0,"app-empty-component",8),2&b){const w=s.XpG();s.Y8G("emptySettingsSlide",w.emptySettingsSlide)}}function D(b,U){if(1&b){const w=s.RV6();s.j41(0,"div",26)(1,"span",27)(2,"span",28),s.bIt("click",function(){s.eBV(w);const N=s.XpG(2).$implicit,F=s.XpG(3);return s.Njj(F.openTermsSI(N.link))}),s.EFF(3),s.nI1(4,"translate"),s.k0s()()()}2&b&&(s.R7$(3),s.JRh(s.bMT(4,1,"TERMS_AND_CONDITIONS_2")))}function T(b,U){if(1&b){const w=s.RV6();s.j41(0,"div",29)(1,"ion-button",30),s.bIt("click",function(){s.eBV(w);const N=s.XpG(2).$implicit,F=s.XpG(3);return s.Njj(F.openLinkRedeem(N.link_redeem))}),s.EFF(2),s.nI1(3,"translate"),s.k0s()()}2&b&&(s.R7$(2),s.SpI(" ",s.bMT(3,1,"REDEEM_COUPON")," "))}function I(b,U){if(1&b){const w=s.RV6();s.j41(0,"ion-card",13),s.nrm(1,"img",14),s.j41(2,"div",15),s.nrm(3,"ion-label",16),s.k0s(),s.j41(4,"div",17)(5,"ion-item",18)(6,"div",19)(7,"ion-label",20),s.EFF(8),s.nI1(9,"translate"),s.k0s(),s.j41(10,"ion-button",21),s.bIt("click",function(){s.eBV(w);const N=s.XpG().$implicit,F=s.XpG(3);return s.Njj(F.getCouponCode(N.code_coupon))}),s.nrm(11,"ion-icon",22),s.k0s()()()(),s.DNE(12,D,5,3,"div",23),s.nrm(13,"hr",24),s.DNE(14,T,4,3,"div",25),s.k0s()}if(2&b){const w=s.XpG().$implicit,x=s.XpG(3);s.R7$(1),s.FCK("src","",x.cityProvider._urlGallery,"coupons/",w.coupon_image,"",s.B4B),s.R7$(2),s.Y8G("innerHTML",w.message,s.npT),s.R7$(5),s.Lme("",s.bMT(9,7,"COUPON_CODE"),": ",w.code_coupon,""),s.R7$(4),s.Y8G("ngIf",w.link&&""!=w.link),s.R7$(2),s.Y8G("ngIf",w.link_redeem)}}function C(b,U){if(1&b&&(s.qex(0),s.DNE(1,I,15,9,"ion-card",12),s.bVm()),2&b){const w=U.$implicit,x=s.XpG(3);s.R7$(1),s.Y8G("ngIf",x.validateCoupon(w))}}function R(b,U){if(1&b&&(s.j41(0,"div"),s.DNE(1,C,2,1,"ng-container",11),s.k0s()),2&b){const w=s.XpG(2);s.R7$(1),s.Y8G("ngForOf",w.coupons)}}function y(b,U){if(1&b&&(s.j41(0,"div",9),s.DNE(1,R,2,1,"div",10),s.k0s()),2&b){const w=s.XpG();s.Y8G("ngSwitch",w.wallet),s.R7$(1),s.Y8G("ngSwitchCase","coupons")}}const S=[{path:"",component:(()=>{class b{constructor(w,x,N,F,$){this.storage=w,this.utilsService=x,this.walletService=N,this.translateService=F,this.cityProvider=$,this.wallet="coupons",this.isSubscriber=!1}ngOnInit(){this.storage.get("infoUser").then(w=>{w&&1==w.is_subscriber&&(this.isSubscriber=!0)}),this.emptySettingsSlide={showImage:!1,urlImage:"",showText:!0,text:this.translateService.instant("NOT_WALLET")},this.getCoupons()}validateCoupon(w){let x=!0;return w.isSubscriber&&!this.isSubscriber&&(x=!1),x}getCoupons(){var w=this;this.storage.get("token").then(function(){var x=(0,o.A)(function*(N){N&&(yield w.walletService.getCoupons(N.access_token)).subscribe(F=>{w.coupons||(w.coupons=[]),w.coupons.push(...F)},F=>{w.coupons=null,console.log("error getCoupons: ",F)})});return function(N){return x.apply(this,arguments)}}())}getCouponCode(w){p.write({string:w}),this.utilsService.presentToast(3e3,"success","top",this.translateService.instant("COPY_COUPON",{code:w}))}openTermsSI(w){this.utilsService.openLink(w)}openLinkRedeem(w){this.utilsService.openLink(w)}static#t=this.\u0275fac=function(x){return new(x||b)(s.rXU(g.n),s.rXU(u.T),s.rXU(m),s.rXU(d.c$),s.rXU(l.h))};static#e=this.\u0275cmp=s.VBU({type:b,selectors:[["app-wallet"]],decls:10,vars:6,consts:[[1,"ion-no-border"],["slot","start"],[1,"ion-text-center"],["padding",""],[3,"iscard","islist",4,"ngIf"],[3,"emptySettingsSlide",4,"ngIf"],[3,"ngSwitch",4,"ngIf"],[3,"iscard","islist"],[3,"emptySettingsSlide"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngFor","ngForOf"],["class","h-214",4,"ngIf"],[1,"h-214"],["alt","ballot",1,"image_wallet",3,"src"],[1,"promotionalText"],[1,"promotionalText",3,"innerHTML"],[1,"couponSection"],["lines","none",1,"couponItem"],[1,"couponContainer"],[1,"couponLabel"],["fill","clear","size","small",1,"copyButton",3,"click"],["name","copy-outline"],["class","contentTerms",4,"ngIf"],[1,"lineSeparator"],["class","redeemButton",4,"ngIf"],[1,"contentTerms"],[1,"terms"],[1,"openTerms",3,"click"],[1,"redeemButton"],["color","primary","fill","solid","size","small",1,"ion-text-end",3,"click"]],template:function(x,N){1&x&&(s.j41(0,"ion-header",0)(1,"ion-toolbar"),s.nrm(2,"ion-back-button",1),s.j41(3,"ion-title",2),s.EFF(4),s.nI1(5,"translate"),s.k0s()()(),s.j41(6,"ion-content",3),s.DNE(7,v,1,2,"app-skeleton-progress",4),s.DNE(8,M,1,1,"app-empty-component",5),s.DNE(9,y,2,2,"div",6),s.k0s()),2&x&&(s.R7$(4),s.JRh(s.bMT(5,4,"TITLE_MY_WALLET")),s.R7$(3),s.Y8G("ngIf",!N.coupons),s.R7$(1),s.Y8G("ngIf",N.coupons&&!N.coupons.length),s.R7$(1),s.Y8G("ngIf",N.coupons&&N.coupons.length))},dependencies:[f.Sq,f.bT,f.ux,f.e1,i.el,i.Jm,i.b_,i.W9,i.eU,i.iq,i.uz,i.he,i.BC,i.ai,i.tY,_.O,a.E,d.D9],styles:[".image_wallet[_ngcontent-%COMP%]{width:100%;height:175px}.h-214[_ngcontent-%COMP%]{height:auto;position:relative}.openTerms[_ngcontent-%COMP%]{text-decoration:underline;color:var(--ion-color-primary)}.terms[_ngcontent-%COMP%]{font-size:15px}.copyCoupon[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 10px}.contentTerms[_ngcontent-%COMP%]{display:flex;margin-left:5%;align-items:center}.lineSeparator[_ngcontent-%COMP%]{width:88%;margin:10px 5%;border-top:1px solid #ccc}.redeemButton[_ngcontent-%COMP%]{margin:10px;text-align:right}.ion-text-end[_ngcontent-%COMP%]{margin-right:5%}.promotionalText[_ngcontent-%COMP%]{font-size:15px;font-weight:700;text-align:left;display:flex;flex-flow:column;margin:0 10px}.couponContainer[_ngcontent-%COMP%]{display:flex;align-items:center}.copyButton[_ngcontent-%COMP%]{margin-left:10px}"]})}return b})()}];let B=(()=>{class b{static#t=this.\u0275fac=function(x){return new(x||b)};static#e=this.\u0275mod=s.$C({type:b});static#n=this.\u0275inj=s.G2t({imports:[e.iI.forChild(S),e.iI]})}return b})(),j=(()=>{class b{static#t=this.\u0275fac=function(x){return new(x||b)};static#e=this.\u0275mod=s.$C({type:b});static#n=this.\u0275inj=s.G2t({imports:[f.MD,t.YN,i.bv,B,d.h.forChild(),P.h]})}return b})()},1587:(L,O,n)=>{"use strict";n.d(O,{k:()=>E});var f=n(73308),t=n(27207),d=n(2978),P=n(54171),i=n(22882),e=n(3366),o=n(57291),r=n(77897);let E=(()=>{class p{constructor(g,u,c,h,m,l){this.utilsService=g,this.translate=u,this.api=c,this.storage=h,this.modalController=m,this.translateService=l}get(){var g=this;return(0,f.A)(function*(){return new Promise((u,c)=>{g.utilsService.presentLoading(g.translate.instant("all.loading")).then((0,f.A)(function*(){(yield g.api.getFree("data_policy/get")).subscribe(h=>{g.utilsService.dismissLoading(),u(h)},h=>{g.utilsService.dismissLoading(),console.error("Erro provider dorsalList",h),c(h)})}))})})()}validate(){var g=this;this.storage.get("token").then(function(){var u=(0,f.A)(function*(c){c&&(yield g.api.get("data_policy/validate",c.access_token)).subscribe(h=>{h.length&&h.forEach(m=>{g.presentModal(m)})},h=>{console.log("Error validateTerms",h)})});return function(c){return u.apply(this,arguments)}}()).catch(u=>{console.log("Error storage token",u)})}presentModal(g){var u=this;return(0,f.A)(function*(){const c=yield u.modalController.create({component:t.x,showBackdrop:!1,swipeToClose:!1,componentProps:{term:g,title:u.translateService.instant("NEW_DATA_POLICY"),buttonText:u.translateService.instant("ACCEPT_DATA_POLICY"),typeDocument:"data_policy"}});return c.onDidDismiss().then(h=>{u.validate()}),yield c.present()})()}accept(g){var u=this;return new Promise(function(){var c=(0,f.A)(function*(h,m){(yield u.api.post("data_policy/accept",g,yield u.utilsService.getAccessToken())).subscribe(l=>{h(l)},l=>{m(l),console.error("Error acceptTerms",l)})});return function(h,m){return c.apply(this,arguments)}}())}static#t=this.\u0275fac=function(u){return new(u||p)(d.KVO(P.T),d.KVO(i.c$),d.KVO(e.G),d.KVO(o.n),d.KVO(r.W3),d.KVO(i.c$))};static#e=this.\u0275prov=d.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},7438:(L,O,n)=>{"use strict";n.d(O,{C:()=>P});var f=n(73308),t=n(2978),d=n(3366);let P=(()=>{class i{constructor(o){this.api=o}getMemberships(){var o=this;return(0,f.A)(function*(){return o.api.get("memberships")})()}getMembership(o){return this.api.get(`memberships/${o}`)}membershipSubscribe(o){return this.api.post(`memberships/${o}/subscribe`,{})}static#t=this.\u0275fac=function(r){return new(r||i)(t.KVO(d.G))};static#e=this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},24884:(L,O,n)=>{"use strict";n.d(O,{q:()=>i});var f=n(73308),t=n(2978),d=n(3366),P=n(57291);let i=(()=>{class e{constructor(r,E){this.api=r,this.storage=E,this.currentPositions=[],this._urlGallery=""}getAllCategories(){var r=this;return new Promise((E,p)=>{this.storage.get("token").then(function(){var s=(0,f.A)(function*(g){g&&(yield r.api.get("teams/categories",g.access_token)).subscribe(c=>{"success"==c.status&&(r.allCategories=c.categories),E(c)},c=>{console.error("Error getAllCategories",c),p(c)})});return function(g){return s.apply(this,arguments)}}())})}getAllPositions(){var r=this;return new Promise((E,p)=>{this.storage.get("token").then(function(){var s=(0,f.A)(function*(g){g&&(yield r.api.get("teams/positions",g.access_token)).subscribe(c=>{"success"==c.status&&(r.allPositions=c.positions,r.currentPositions=c.positions),E(c)},c=>{console.error("Error getAllPositions",c),p(c)})});return function(g){return s.apply(this,arguments)}}())})}getAllPlayers(){var r=this;return new Promise((E,p)=>{this.storage.get("token").then(function(){var s=(0,f.A)(function*(g){g&&(yield r.api.get("teams/players",g.access_token)).subscribe(c=>{"success"==c.status&&(r.allPlayers=c.players),E(c)},c=>{console.error("Error getAllPlayers",c),p(c)})});return function(g){return s.apply(this,arguments)}}())})}getInfoHost(){this.storage.get("infoHost").then(r=>{this._urlGallery=r.url_gallery})}static#t=this.\u0275fac=function(E){return new(E||e)(t.KVO(d.G),t.KVO(P.n))};static#e=this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()},80931:(L,O,n)=>{"use strict";n.d(O,{B:()=>o});var f=n(73308),t=n(2978),d=n(3366),P=n(54171),i=n(22882),e=n(57291);let o=(()=>{class r{constructor(p,s,g,u){this.apiService=p,this.utilsService=s,this.translate=g,this.storage=u}getRequests(p,s){var g=this;return new Promise((u,c)=>{this.storage.get("token").then(function(){var h=(0,f.A)(function*(m){(yield g.apiService.get("requests/user/external_app/"+p+"/"+s,m.access_token)).subscribe(l=>{u(l)},l=>{g.utilsService.presentToast(3e3,"danger","top",g.translate.instant("all.error_request")),console.log("error findPatient: ",l),c(l)})});return function(m){return h.apply(this,arguments)}}())})}getForm(p){var s=this;return new Promise((g,u)=>{this.storage.get("token").then(function(){var c=(0,f.A)(function*(h){(yield s.apiService.get("requests/info_form/"+p,h.access_token)).subscribe(m=>{g(m)},m=>{s.utilsService.presentToast(3e3,"danger","top",s.translate.instant("all.error_request")),console.log("error getForm: ",m),u(m)})});return function(h){return c.apply(this,arguments)}}())})}getOptionsSelects(p){var s=this;return new Promise((g,u)=>{this.storage.get("token").then(function(){var c=(0,f.A)(function*(h){(yield s.apiService.get(p,h.access_token)).subscribe(m=>{m.status?g(m):u(m)},m=>{console.log("error get getOptionsSelects: ",m),u(m)})});return function(h){return c.apply(this,arguments)}}())})}createRequest(p){var s=this;return new Promise((g,u)=>{this.utilsService.presentLoading(this.translate.instant("all.creating")).then(()=>{this.storage.get("token").then(function(){var c=(0,f.A)(function*(h){(yield s.apiService.post("create_request",p,h.access_token)).subscribe(m=>{s.utilsService.dismissLoading(),s.utilsService.presentToast(3e3,m.status?"success":"danger","top",m.message),g(m)},m=>{s.utilsService.dismissLoading(),s.utilsService.presentToast(3e3,"danger","top",s.translate.instant("all.error_request")),console.log("error createRequest: ",m),u(m)})});return function(h){return c.apply(this,arguments)}}())})})}getPolls(){var p=this;return new Promise((s,g)=>{this.utilsService.presentLoading(this.translate.instant("all.creating")),this.storage.get("token").then(function(){var u=(0,f.A)(function*(c){(yield p.apiService.post("requests/forms",{show_in_setting:!0},c.access_token)).subscribe(m=>{p.utilsService.dismissLoading(),s(m)},m=>{p.utilsService.dismissLoading(),p.utilsService.presentToast(3e3,"danger","top",p.translate.instant("all.error_request")),console.log("error findPatient: ",m),g(m)})});return function(c){return u.apply(this,arguments)}}())})}static#t=this.\u0275fac=function(s){return new(s||r)(t.KVO(d.G),t.KVO(P.T),t.KVO(i.c$),t.KVO(e.n))};static#e=this.\u0275prov=t.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})()},35981:(L,O,n)=>{"use strict";n.d(O,{z:()=>i});var f=n(73308),t=n(2978),d=n(3366),P=n(54171);let i=(()=>{class e{constructor(r,E){this.api=r,this.utilsService=E,this.sections=[],this.sectionName=""}getSections(){var r=this;return(0,f.A)(function*(){return new Promise(function(){var E=(0,f.A)(function*(p,s){(yield r.api.get("section/get",yield r.utilsService.getAccessToken())).subscribe({next:u=>{r.sections=u.data,p(u)},error:u=>{s(u)}})});return function(p,s){return E.apply(this,arguments)}}())})()}validateSection(r){return this.getSection(r)??!1}getSection(r){return this.sections.filter(E=>E.name===r)[0]}static#t=this.\u0275fac=function(E){return new(E||e)(t.KVO(d.G),t.KVO(P.T))};static#e=this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()},25668:(L,O,n)=>{"use strict";n.d(O,{U:()=>E});var f=n(73308),t=n(27207),d=n(2978),P=n(3366),i=n(57291),e=n(54171),o=n(77897),r=n(22882);let E=(()=>{class p{constructor(g,u,c,h,m){this.api=g,this.storage=u,this.utilsService=c,this.modalController=h,this.translateService=m}validateTerms(){var g=this;this.storage.get("token").then(function(){var u=(0,f.A)(function*(c){c&&(yield g.api.get("term/validate",c.access_token)).subscribe(h=>{g.term=h,g.term.length&&g.term.forEach(m=>{g.presentModal(m)})},h=>{console.log("Error validateTerms",h)})});return function(c){return u.apply(this,arguments)}}()).catch(u=>{console.log("Error storage token",u)})}presentModal(g){var u=this;return(0,f.A)(function*(){const c=yield u.modalController.create({component:t.x,showBackdrop:!1,swipeToClose:!1,componentProps:{term:g,title:u.translateService.instant("all.new_terms"),buttonText:u.translateService.instant("all.accept_terms"),typeDocument:"term"}});return c.onDidDismiss().then(h=>{u.validateTerms()}),yield c.present()})()}accept(g){var u=this;return new Promise(function(){var c=(0,f.A)(function*(h,m){(yield u.api.post("term/accept",g,yield u.utilsService.getAccessToken())).subscribe(l=>{h(l)},l=>{m(l),console.error("Error acceptTerms",l)})});return function(h,m){return c.apply(this,arguments)}}())}static#t=this.\u0275fac=function(u){return new(u||p)(d.KVO(P.G),d.KVO(i.n),d.KVO(e.T),d.KVO(o.W3),d.KVO(r.c$))};static#e=this.\u0275prov=d.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()}}]);