1(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3631],{11187:(M,h,t)=>{"use strict";t.d(h,{t:()=>m.t});var m=t(20113)},14740:(M,h,t)=>{"use strict";t.d(h,{c:()=>_});var m=t(72200),r=t(49189),n=t(35375),e=t(21867),s=t(62470),i=t(73664),o=t(2615);t(20113);let _=(()=>{class l{static \u0275fac=function(p){return new(p||l)};static \u0275mod=i.$C({type:l});static \u0275inj=o.G2t({imports:[m.MD,r.G,n.J,e.v,s.k]})}return l})()},20113:(M,h,t)=>{"use strict";t.d(h,{t:()=>f});var m=t(69915),r=t(60152),n=t(25615),e=t(73664),s=t(75281),i=t(91029),o=t(89792),a=t(19735);function _(p,O){1&p&&e.nrm(0,"app-clupik-state-bar",1)}function l(p,O){1&p&&e.nrm(0,"app-clupik-state-bar",2)}function E(p,O){1&p&&e.nrm(0,"app-clupik-state-bar",3)}let f=(()=>{class p{appService;modalController;router;clubsService;globalVars;isStore=!1;error=!1;title="";data;constructor(P,c,u,d,C){this.appService=P,this.modalController=c,this.router=u,this.clubsService=d,this.globalVars=C}ngOnInit(){this.title=this.data.title||"",this.isStore="store"===this.data.type,this.error="error"===this.data.type}confirm(){this.modalController.dismiss({acc:!0})}deny(){this.modalController.dismiss({acc:!1})}config(){this.modalController.dismiss(),this.router.navigate(["/"+this.clubsService.getLanguageInUseCode()+"/admin/settings/web"])}close(){this.modalController.dismiss({acc:!1})}static \u0275fac=function(c){return new(c||p)(e.rXU(m.d),e.rXU(s.ModalController),e.rXU(i.Ix),e.rXU(r.X),e.rXU(n.Y))};static \u0275cmp=e.VBU({type:p,selectors:[["app-confirm-shop-accounting"]],inputs:{data:"data"},standalone:!1,decls:4,vars:9,consts:[["secondaryButtonValue","global.common.cancel",3,"mainAction","secondaryAction","modalTitle","mainButtonValue","mainButtonDisabled","hasSecondaryButton","secondaryButtonDisabled","showDivider"],["state","warning","mainTitle","module.settings.home_first","subtitle","module.settings.home_second"],["state","info","mainTitle","module.settings.store_first","subtitle","module.settings.store_second"],["state","info","mainTitle","module.settings.acc_first","subtitle","module.settings.acc_second"]],template:function(c,u){1&c&&(e.j41(0,"app-clupik-modal",0),e.bIt("mainAction",function(){return u.error?u.config():u.confirm()})("secondaryAction",function(){return u.deny()}),e.nVh(1,_,1,0,"app-clupik-state-bar",1),e.nVh(2,l,1,0,"app-clupik-state-bar",2),e.nVh(3,E,1,0,"app-clupik-state-bar",3),e.k0s()),2&c&&(e.Y8G("modalTitle",u.title)("mainButtonValue",u.error?"Ir a configuraci\xf3n web":u.isStore?"global.button.activate":"global.common.disable")("mainButtonDisabled",!1)("hasSecondaryButton",!u.error)("secondaryButtonDisabled",!1)("showDivider",!0),e.R7$(),e.vxM(u.error?1:-1),e.R7$(),e.vxM(u.isStore&&!u.error?2:-1),e.R7$(),e.vxM(u.isStore||u.error?-1:3))},dependencies:[o.a,a.$],styles:[".clupik-text-body-normal[_ngcontent-%COMP%]{margin-bottom:12px}"]})}return p})()},28993:(M,h,t)=>{"use strict";t.d(h,{N:()=>i});var m=t(72200),r=t(49189),n=t(62470),e=t(73664),s=t(2615);let i=(()=>{class o{static \u0275fac=function(l){return new(l||o)};static \u0275mod=e.$C({type:o});static \u0275inj=s.G2t({imports:[m.MD,r.G,n.k]})}return o})()},39235:(M,h)=>{var t=function(m,r){if(!(this instanceof t))return new t(m,r);this.INITIALIZING=-1,this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,this.url=m,this.headers=(r=r||{}).headers||{},this.payload=void 0!==r.payload?r.payload:"",this.method=r.method||this.payload&&"POST"||"GET",this.withCredentials=!!r.withCredentials,this.FIELD_SEPARATOR=":",this.listeners={},this.xhr=null,this.readyState=this.INITIALIZING,this.progress=0,this.chunk="",this.addEventListener=function(n,e){void 0===this.listeners[n]&&(this.listeners[n]=[]),-1===this.listeners[n].indexOf(e)&&this.listeners[n].push(e)},this.removeEventListener=function(n,e){if(void 0!==this.listeners[n]){var s=[];this.listeners[n].forEach(function(i){i!==e&&s.push(i)}),0===s.length?delete this.listeners[n]:this.listeners[n]=s}},this.dispatchEvent=function(n){if(!n)return!0;n.source=this;var e="on"+n.type;return(!this.hasOwnProperty(e)||(this[e].call(this,n),!n.defaultPrevented))&&(!this.listeners[n.type]||this.listeners[n.type].every(function(s){return s(n),!n.defaultPrevented}))},this._setReadyState=function(n){var e=new CustomEvent("readystatechange");e.readyState=n,this.readyState=n,this.dispatchEvent(e)},this._onStreamFailure=function(n){var e=new CustomEvent("error");e.data=n.currentTarget.response,this.dispatchEvent(e),this.close()},this._onStreamAbort=function(n){this.dispatchEvent(new CustomEvent("abort")),this.close()},this._onStreamProgress=function(n){if(this.xhr){if(200!==this.xhr.status)return void this._onStreamFailure(n);this.readyState==this.CONNECTING&&(this.dispatchEvent(new CustomEvent("open")),this._setReadyState(this.OP
1EN));var e=this.xhr.responseText.substring(this.progress);this.progress+=e.length,e.split(/(\r\n|\r|\n){2}/g).forEach(function(s){0===s.trim().length?(this.dispatchEvent(this._parseEventChunk(this.chunk.trim())),this.chunk=""):this.chunk+=s}.bind(this))}},this._onStreamLoaded=function(n){this._onStreamProgress(n),this.dispatchEvent(this._parseEventChunk(this.chunk)),this.chunk=""},this._parseEventChunk=function(n){if(!n||0===n.length)return null;var e={id:null,retry:null,data:"",event:"message"};n.split(/\n|\r\n|\r/).forEach(function(i){var o=(i=i.trimRight()).indexOf(this.FIELD_SEPARATOR);if(!(o<=0)){var a=i.substring(0,o);if(a in e){var _=i.substring(o+1).trimLeft();"data"===a?e[a]+=_:e[a]=_}}}.bind(this));var s=new CustomEvent(e.event);return s.data=e.data,s.id=e.id,s},this._checkStreamClosed=function(){this.xhr&&this.xhr.readyState===XMLHttpRequest.DONE&&this._setReadyState(this.CLOSED)},this.stream=function(){for(var n in this._setReadyState(this.CONNECTING),this.xhr=new XMLHttpRequest,this.xhr.addEventListener("progress",this._onStreamProgress.bind(this)),this.xhr.addEventListener("load",this._onStreamLoaded.bind(this)),this.xhr.addEventListener("readystatechange",this._checkStreamClosed.bind(this)),this.xhr.addEventListener("error",this._onStreamFailure.bind(this)),this.xhr.addEventListener("abort",this._onStreamAbort.bind(this)),this.xhr.open(this.method,this.url),this.headers)this.xhr.setRequestHeader(n,this.headers[n]);this.xhr.withCredentials=this.withCredentials,this.xhr.send(this.payload)},this.close=function(){this.readyState!==this.CLOSED&&(this.xhr.abort(),this.xhr=null,this._setReadyState(this.CLOSED))}};h.y=t},48013:(M,h,t)=>{"use strict";t.d(h,{f:()=>e});var m=t(71985),r=t(39235),n=t(2615);let e=(()=>{class s{eventSource;constructor(){}getEventSourceWithPost(o,a){return this.buildEventSource(o,"POST",a)}getEventSourceWithGet(o,a){return this.buildEventSource(o,"GET",a)}buildEventSource(o,a,_){const l=this.buildOptions(a,_);return this.eventSource=new r.y(o,l),this.eventSource}closeEventSource(){this.eventSource&&this.eventSource.close()}buildOptions(o,a){const _=JSON.parse(localStorage.getItem("currentUser")).token;return{payload:a,method:o,headers:""!==_?{Authorization:_}:""}}getServerSentEvent(o,a="GET",_=null){return new m.c(l=>{let E;E="GET"===a?this.getEventSourceWithGet(o,_):this.getEventSourceWithPost(o,_),E.stream(),E.onmessage=f=>{l.next(f)},E.onerror=f=>{l.error(f)}})}static \u0275fac=function(a){return new(a||s)};static \u0275prov=n.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})()},78385:(M,h,t)=>{"use strict";t.d(h,{P:()=>l});var m=t(72200),r=t(49189),n=t(19348),e=t(49699),s=t(10971),i=t(62470),o=t(7030),a=t(73664),_=t(2615);let l=(()=>{class E{static \u0275fac=function(O){return new(O||E)};static \u0275mod=a.$C({type:E});static \u0275inj=_.G2t({imports:[m.MD,r.G,n.x,e.C,s.m,i.k,o.g]})}return E})()},81214:(M,h,t)=>{"use strict";t.d(h,{e:()=>P});var m=t(69915),r=t(60152),n=t(48013),e=t(45312),s=t(73664),i=t(89417),o=t(75281),a=t(89902),_=t(90852),l=t(5900),E=t(19735),f=t(69415);function p(c,u){if(1&c&&s.nrm(0,"app-empty-space",1),2&c){const d=s.XpG();s.Y8G("textArray",d.textArray)("svgImage","mail-sent")("isMedium",!0)("noButton",!0)}}function O(c,u){if(1&c&&(s.nrm(0,"app-form-section",2)(1,"app-form-separator",3),s.j41(2,"form",4),s.nrm(3,"app-input",5),s.k0s()),2&c){const d=s.XpG();s.Y8G("mainTitle","Primera activaci\xf3n web")("description","Vas a activar el m\xf3dulo web por primera vez. Puedes importar un contenido de prueba que te ayude a familiarizarte con la herramienta. La web se activar\xe1 como borrador (solo visible para administradores y editores). Cuando tengas el contenido preparado podr\xe1s publicarlo y compartirlo con todos tus visitantes"),s.R7$(2),s.Y8G("formGroup",d.form),s.R7$(),s.Y8G("options",d.options)}}let P=(()=>{class c{fb;modalCtrl;appService;sseService;clubService;form;textArray=["module.settings.wait_title","module.settings.wait_desc"];options=[{id:!0,value:!0,name:"module.settings.import",description:"module.settings.import_desc",current:!0,icon:"",allowed:!0},{id:!1,value:!1,name:"module.settings.no_import",description:"module.settings.no_import_desc",current:!1,icon:"",allowed:!0}];success=!1;constructor(d,C,v,D,g){this.fb=d,this.modalCtrl=C,this.appService=v,this.sseService=D,this.clubService=g}ngOnInit(){this.form=this.fb.group({import:[!0]})}cancel(){this.modalCtrl.dismiss()}save(){this.form.value.import?(this.success=!0,this.createContent()):this.modalCtrl.dismiss(this.form.value)}createContent(){return this.sseService.getServerSentEvent(e.c.api.URL+"/organization/"+this.clubService.getClubId()+"/only_contents?publications=true&modules=true&pages=true&menu=true&banners=true&sponsors=true&shop=true","GET",{}).subscribe({next:d=>{d.data&&"done"===JSON.parse(d.data)&&(this.appService.broadcast("changeImages",{}),this.sseService.closeEventSource(),this.modalCtrl.dismiss(this.form.value))},error:d=>{console.error("sse error",d)}})}static \u0275fac=function(C){return new(C||c)(s.rXU(i.ok),s.rXU(o.ModalController),s.rXU(m.d),s.rXU(n.f),s.rXU(r.X))};static \u0275cmp=s.VBU({type:c,selectors:[["app-activate-web-modal"]],standalone:!1,decls:3,vars:5,consts:[[3,"mainAction","secondaryAction","modalTitle","mainButtonValue","secondaryButtonValue","hasSecondaryButton"],[3,"textArray","svgImage","isMedium","noButton"],[3,"mainTitle","description"],[1,"divi
1der-line-sm"],[3,"formGroup"],["type","radiobutton","formControlName","import",3,"options"]],template:function(C,v){1&C&&(s.j41(0,"app-clupik-modal",0),s.bIt("mainAction",function(){return v.success?v.cancel():v.save()})("secondaryAction",function(){return v.cancel()}),s.nVh(1,p,1,4,"app-empty-space",1)(2,O,4,4),s.k0s()),2&C&&(s.Y8G("modalTitle","module.dashboard.web_activate")("mainButtonValue",v.success?"global.common.close":"global.common.save")("secondaryButtonValue","global.button.cancel")("hasSecondaryButton",!v.success),s.R7$(),s.vxM(v.success?1:2))},dependencies:[i.qT,i.BC,i.cb,i.j4,i.JD,a.S,_.n,l.t,E.$,f.p],encapsulation:2})}return c})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.