PageSourceSearch

https://nearb.pl/app/8469.28ccee65ae7e6758ad06.js

js nearb.pl collected 2026-10-02 00:07:34 UTC 16,732 bytes, 1 lines download raw bytes

1(self.webpackChunkloocalio=self.webpackChunkloocalio||[]).push([[8469,4070],{94506:(e,t,r)=>{"use strict";r.d(t,{r:()=>f});var o=r(79765),i=r(46782),s=r(37716),n=r(46289),a=r(19657);const l=["*"];let f=(()=>{class e{constructor(e){this.platformService=e,this.platformWidth="xl",this.destroy$=new o.xQ}ngOnInit(){this.platformService.width$.pipe((0,i.R)(this.destroy$)).subscribe(e=>{this.platformWidth=e})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}isPlatformWidthDense(){return this.platformService.isWidth("lt-md",this.platformWidth)}}return e.\u0275fac=function(t){return new(t||e)(s.Y36(n.m))},e.\u0275cmp=s.Xpm({type:e,selectors:[["loc-card-crud"]],hostVars:2,hostBindings:function(e,t){2&e&&s.ekj("loc-card-crud--dense",t.isPlatformWidthDense())},inputs:{platformWidth:"platformWidth"},ngContentSelectors:l,decls:2,vars:0,template:function(e,t){1&e&&(s.F$t(),s.TgZ(0,"loc-list"),s.Hsn(1),s.qZA())},directives:[a.n],styles:[".loc-card-crud--dense[_nghost-%COMP%]     .loc-card-crud__container{max-width:100%;margin:0;border-radius:0;border:none;box-shadow:none}  .loc-card-crud__container{max-width:700px;margin:16px}  .loc-card-crud__container ion-card-content{padding:16px 0}  .loc-card-crud__container ion-searchbar{--box-shadow:none;--border-radius:6px;padding:16px}  .loc-card-crud__container ion-searchbar   .searchbar-input-container{border:1px solid #0000001a;border-radius:6px;box-shadow:none}  .loc-card-crud__header{--background:#00000005;--inner-padding-top:8px;--inner-padding-bottom:8px}  .loc-card-crud__header ion-label h2{font-weight:500}  .loc-card-crud__header ion-label p{opacity:.8;font-size:13px}"]}),e})()},21482:(e,t,r)=>{"use strict";r.d(t,{i:()=>n});var o=r(38583),i=r(22832),s=r(37716);let n=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=s.oAB({type:e}),e.\u0275inj=s.cJS({imports:[[o.ez,i.p]]}),e})()},19657:(e,t,r)=>{"use strict";r.d(t,{n:()=>s});var o=r(37716);const i=["*"];let s=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["loc-list"]],ngContentSelectors:i,decls:1,vars:0,template:function(e,t){1&e&&(o.F$t(),o.Hsn(0))},styles:["[_nghost-%COMP%]     mat-form-field:not(.mat-paginator-page-size-select){padding:0 16px;width:100%}[_nghost-%COMP%]     mat-form-field:not(.mat-paginator-page-size-select) .mat-form-field-suffix{top:0!important}[_nghost-%COMP%]     ion-item-divider{margin-bottom:20px;background-color:#00000008;text-transform:uppercase;font-size:13px;font-weight:500;letter-spacing:1px}[_nghost-%COMP%]     ion-item-divider ion-button[slot=end]{margin-right:16px}[_nghost-%COMP%]     ion-reorder[slot=start]{margin-right:20px}[_nghost-%COMP%]     ion-list ion-item ion-label h3{font-weight:500}[_nghost-%COMP%]     ion-list ion-item ion-label p{opacity:.8;font-size:13px}[_nghost-%COMP%]     .loc-list__actions{margin-bottom:20px;margin-top:10px}[_nghost-%COMP%]     .loc-list__block-button{margin-bottom:16px;padding-left:16px}[_nghost-%COMP%]     .loc-list__right-inline-button{margin-left:-14px;margin-top:-31px}"]}),e})()},22832:(e,t,r)=>{"use strict";r.d(t,{p:()=>s});var o=r(38583),i=r(37716);let s=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[o.ez]]}),e})()},19725:(e,t,r)=>{"use strict";r.d(t,{b:()=>p});var o=r(91841),i=r(93342),s=r(88002),n=r(74945),a=r(5304),l=r(92340),f=r(37716),c=r(38433),d=r(61343);let p=(()=>{class e{constructor(e,t,r){this.http=e,this.resourcesService=r,this.apiUrl=l.N.apiUrl,this.companiesUrl=this.apiUrl+"/companies",this.offersUrl=this.apiUrl+"/offers",this.myOffersUrl=this.apiUrl+"/me/offers",this.homeOffersUrl=this.apiUrl+"/home/offers",this.observedOfferUrl=this.apiUrl+"/me",this.handleError=t.createHandleError("OffersService")}observeOffer(e){return this.http.post(this.myOffersUrl+"/"+e.id+"/observe","").pipe((0,i.b)(e=>console.log(e)),(0,s.U)(e=>e.offer_observe),(0,n.X)(3),(0,a.K)(this.handleError("observeOffer",[])))}getMyObserveOffers(){return this.http.get(this.observedOfferUrl+"/observed/companies/offers").pipe((0,i.b)(e=>console.log(e)),(0,n.X)(3),(0,a.K)(this.handleError("getMyObserveOffers",[])))}getObserveOffer(e){return this.http.get(`${this.observedOfferUrl}/observed/offers`,{params:this.resourcesService.createHttpParams(e||null)}).pipe((0,i.b)(e=>console.log(e)),(0,n.X)(3),(0,a.K)(this.handleError("getObserveOffer",[])))}stopObserveOffer(e){return this.http.post(this.myOffersUrl+"/"+e+"/observe/stop","").pipe((0,i.b)(e=>console.log(e)),(0,s.U)(e=>e["stop-observe-offer"]),(0,n.X)(3),(0,a.K)(this.handleError("stopObserveOffer",[])))}
1getAllCompanyOffers(e="",t="asc",r=0,s=10){return this.http.get(`${this.offersUrl}`,{params:(new o.LE).set("filter",e).set("sort_order",t).set("page",r+1).set("page_size",s?s.toString():"")}).pipe((0,i.b)(e=>console.log(e)),(0,n.X)(3),(0,a.K)(this.handleError("getAllCompanyOffers",[])))}getRandomOffers(e=3){return this.http.get(`${this.offersUrl}/random`,{params:(new o.LE).set("number",e)}).pipe((0,i.b)(e=>console.log(e)),(0,n.X)(3),(0,a.K)(this.handleError("getRandomOffers",[])))}getCompanyOffers(e){return this.http.get(`${this.companiesUrl}/${e.id}/offers`).pipe((0,i.b)(e=>console.log(e)),(0,n.X)(3),(0,a.K)(this.handleError("getCompanyOffers",[])))}getCompanyOffer(e){return this.http.get(this.offersUrl+"/"+e).pipe((0,i.b)(e=>console.log(e)),(0,s.U)(e=>e.data),(0,n.X)(3),(0,a.K)(this.handleError("getCompanyOffer",[])))}getCompanyOfferBySlug(e){return this.http.get(this.offersUrl+"/"+e).pipe((0,i.b)(e=>console.log(e)),(0,s.U)(e=>e.data),(0,n.X)(3),(0,a.K)(this.handleError("getCompanyOfferBySlug",[])))}createCompanyOffer(e,t){const r=this.getOfferRequest(e,"create");return this.http.post(this.companiesUrl+"/"+t.id+"/offers",r).pipe((0,i.b)(e=>console.log(e)),(0,s.U)(e=>e.offer),(0,n.X)(3),(0,a.K)(this.handleError("createCompanyOffer",[])))}updateCompanyOffer(e){if(!e.id)return void console.error("Offers not updated. No offer ID defined.");const t=this.getOfferRequest(e,"update");return this.http.post(this.offersUrl+"/"+e.id+"?_method=PUT",t).pipe((0,i.b)(e=>console.log(e)),(0,s.U)(e=>e.offer),(0,n.X)(3),(0,a.K)(this.handleError("updateCompanyOffer",[])))}deleteCompanyOffer(e){return this.http.delete(`${this.offersUrl}/${e}`).pipe((0,i.b)(e=>console.log(e)),(0,n.X)(3),(0,a.K)(this.handleError("deleteCompanyOffer",[])))}getOfferRequest(e,t){const r={name:e.name?e.name:"",subtitle:e.subtitle?e.subtitle:"",description:e.description?e.description:"",description_short:e.description_short?e.description_short:"",date:e.date?e.date:"",time:e.time?e.time:"",duration:e.duration?e.duration:"",place:e.place?e.place:"",price:e.price?e.price:"",reservation:e.reservation?e.reservation:"",for:e.for?e.for:"",phone:e.phone?e.phone:""},o=new FormData;return Object.keys(r).forEach(e=>{o.append(e,r[e])}),e.imageFileName&&e.imageFile&&o.append("image",e.imageFile,e.imageFileName),o}getHomeOffers(){return this.http.get(this.homeOffersUrl).pipe((0,i.b)(e=>console.log(e)),(0,s.U)(e=>e.data),(0,n.X)(3),(0,a.K)(this.handleError("getHomeOffers",[])))}createHomeOffers(e,t){const r=this.getHomeOfferRequest(t);return this.http.post(this.homeOffersUrl+"/"+e.id,r).pipe((0,i.b)(e=>console.log(e)),(0,s.U)(e=>e.company),(0,n.X)(3),(0,a.K)(this.handleError("createHomeOffers",[])))}getHomeOfferRequest(e){return{home_order:e}}deleteHomeOffer(e){return this.http.delete(`${this.homeOffersUrl}/${e}`).pipe((0,i.b)(e=>console.log(e)),(0,n.X)(3),(0,a.K)(this.handleError("deleteHomeOffer",[])))}addImage(e,t){const r=new FormData;return r.set("name",t.name),r.append("image",t,t.name),this.http.post(`${this.offersUrl}/${e.id}/images`,r).pipe((0,i.b)(e=>console.log(e)),(0,s.U)(e=>e.data),(0,n.X)(3),(0,a.K)(this.handleError("addImage",[])))}deleteImage(e,t){return this.http.delete(`${this.offersUrl}/${e.id}/images/${t.id}`).pipe((0,i.b)(e=>console.log(e)),(0,n.X)(3),(0,a.K)(this.handleError("deleteImage",[])))}setImagesOrder(e,t){return this.http.post(`${this.offersUrl}/${e.id}/images/set_order`,{images:t}).pipe((0,i.b)(e=>console.log(e)),(0,n.X)(3),(0,a.K)(this.handleError("setImagesOrder",[])))}}return e.\u0275fac=function(t){return new(t||e)(f.LFG(o.eN),f.LFG(c.k),f.LFG(d.z))},e.\u0275prov=f.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},78469:(e,t,r)=>{"use strict";r.r(t),r.d(t,{HomePageOffersCrudPageModule:()=>S});var o=r(38583),i=r(3679),s=r(94490),n=r(63423),a=r(79765),l=r(35758),f=r(46782),c=r(39761),d=r(88002),p=r(37716),h=r(46289),m=r(19725),u=r(95038),g=r(83348),O=r(94506),b=r(35618),_=r(98295),Z=r(83166),v=r(21554),x=r(92406),y=r(72458);function U(e,t){if(1&e&&(p.TgZ(0,"mat-option",19),p._uU(1),p.qZA()),2&e){const e=t.$implicit;p.Q6J("value",e),p.xp6(1),p.Oqu(e.name)}
1}function A(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"ion-button",20),p.NdJ("click",function(){return p.CHM(e),p.oxw().toggleReorderGroup()}),p._UZ(1,"ion-icon",21),p._uU(2," Zmie\u0144 kolejno\u015b\u0107 "),p.qZA()}}function C(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"ion-button",22),p.NdJ("click",function(){return p.CHM(e),p.oxw().cancelReorder()}),p._UZ(1,"ion-icon",23),p._uU(2," Anuluj "),p.qZA()}}function w(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"ion-button",24),p.NdJ("click",function(){return p.CHM(e),p.oxw().saveReorder()}),p._UZ(1,"ion-icon",25),p._uU(2," Zapisz "),p.qZA()}}function q(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"ion-item"),p._UZ(1,"ion-reorder",0),p.TgZ(2,"ion-label"),p.TgZ(3,"h3"),p._uU(4),p.qZA(),p.qZA(),p.TgZ(5,"ion-button",28),p.NdJ("click",function(){const t=p.CHM(e).$implicit;return p.oxw(2).delete(t.id)}),p._UZ(6,"ion-icon",29),p.qZA(),p.qZA()}if(2&e){const e=t.$implicit;p.xp6(4),p.Oqu(e.name)}}function F(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"ion-reorder-group",26),p.NdJ("ionItemReorder",function(t){return p.CHM(e),p.oxw().doReorder(t)}),p.YNc(1,q,7,1,"ion-item",27),p.qZA()}if(2&e){const e=p.oxw();p.xp6(1),p.Q6J("ngForOf",e.homeOffers)}}function E(e,t){1&e&&(p.TgZ(0,"div",30),p._UZ(1,"ion-spinner",31),p.qZA())}const T=[{path:"",component:(()=>{class e{constructor(e,t,r,o,i){this.platformService=e,this.offersService=t,this.formBuilder=r,this.alertsService=o,this.loadingService=i,this.platformWidth="xl",this.destroy$=new a.xQ,this.isLoading=!1,this.reorderDisabled=!0}ngOnInit(){this.setupForm(),this.platformService.width$.pipe((0,f.R)(this.destroy$)).subscribe(e=>{this.platformWidth=e}),this.fetchData(),this.fetchOffers()}setupForm(){this.offerForm=this.formBuilder.group({offer:null})}displayOffer(e){return e&&e.name?e.name:""}_filterOffer(e){const t=e.toLowerCase();return this.offers.filter(e=>e.name.toLowerCase().includes(t))}fetchData(){this.offersService.getAllCompanyOffers("","",0,null).subscribe(e=>{this.offers=e.data,this.filteredOffers=this.offerForm.get("offer").valueChanges.pipe((0,c.O)(""),(0,d.U)(e=>"string"==typeof e?e:e.name),(0,d.U)(e=>e?this._filterOffer(e):this.offers.slice()))})}fetchOffers(){this.isLoading=!0,this.offersService.getHomeOffers().subscribe(e=>{this.homeOffers=e,this.isLoading=!1})}save(){if(null!==this.offerForm.value.offer){const e=this.offerForm.value.offer,t=this.homeOffers.length;console.log("length",t),this.isLoading=!0,this.offersService.createHomeOffers(e,t+1).subscribe(e=>{console.log(e),this.fetchOffers(),this.offerForm.get("offer").setValue("")})}}delete(e){this.alertsService.showDeleteAlert(()=>{this.isLoading=!0,this.offersService.deleteHomeOffer(e).subscribe(e=>{console.log(e),this.fetchOffers(),this.isLoading=!1})})}doReorder(e){this.homeOffers=e.detail.complete(this.homeOffers)}toggleReorderGroup(){this.reorderGroup.disabled=!this.reorderGroup.disabled,this.reorderDisabled=!this.reorderDisabled}cancelReorder(){this.fetchOffers(),this.reorderDisabled=!0}saveReorder(){this.isLoading=!0,this.reorderDisabled=!0,this.homeOffers.forEach((e,t)=>e.home_order=t+1);const e=[];this.homeOffers.forEach(t=>{console.log(t.name,t.home_order),e.push(this.offersService.createHomeOffers(t,t.home_order))}),(0,l.D)(...e).subscribe(e=>{console.log(e),this.fetchOffers()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}isPlatformWidthDense(){return this.platformService.isWidth("lt-md",this.platformWidth)}}return e.\u0275fac=function(t){return new(t||e)(p.Y36(h.m),p.Y36(m.b),p.Y36(i.qu),p.Y36(u.m),p.Y36(g.b))},e.\u0275cmp=p.Xpm({type:e,selectors:[["loc-home-page-offers-crud"]],viewQuery:function(e,t){if(1&e&&p.Gf(s.oz,5),2&e){let e;p.iGM(e=p.CRH())&&(t.reorderGroup=e.first)}},hostVars:2,hostBindings:function(e,t){2&e&&p.ekj("loc-home-page-offers-crud--dense",t.isPlatformWidthDense())},inputs:{platformWidth:"platformWidth"},decls:37,vars:15,consts:[["slot","start"],[1,"loc-card-crud__container"],["lines","full",1,"loc-card-crud__header"],[2,"padding-top","0"],["lines","full",1,"loc-card-crud__options",2,"padding-top","0",3,"formGroup"],[1,"loc-card-crud__autocomplete-conatiner",3,"fxLayout"],["appearance","outline"],["type","text","matInput","","formControlName","offer",3,"matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["fxLayoutAlign","center center"],["shape","round","size","default",3,"disabled","click"],["pxcIcon","mdi@plus","slot","start"],["fill","clear","shape","round","color","dark","slot","start",3,"click",4,"ngIf"],["fill","clear","shape","round","color","dark","slot","start","style","margin-right: 8px",3,"click",4,"ngIf"],["fill","solid","shape","round","color","primary","slot","start",3,"click",4,"ngIf"],[3,"ionItemReorder",4,"ngIf","ngIfElse"],["loadingTemplate",""],[3,"value"],["fill","clear","shape","round","color","dark","slot","start",3,"click"],["pxcIcon","mdi@sort-ascending","slot","start"],["fill","clear","shape","round","color","dark","slot","start",2,"margin-right","8px",3,"click"],["pxcIcon","mdi@close","slot","start"],["fill","solid","shape","round","color","primary","slot","start",3,"click"],["pxcIcon","mdi@content-save-outline","slot","start",2,"margin-left","2px"],[3,"ionItemReorder"],[4,"ngFor","ngForOf"],["fill","clear","color","dark",3,"click"],["pxcIcon","mdi@delete","slot","icon-only"],[1,"pxc-spinner"],["color","primary"]],template:function(e,t){if(1&e&&(p.TgZ(0,"ion-header"),p.TgZ(1,"ion-toolbar"),p.TgZ(2,"ion-buttons",0),p._UZ(3,"ion-menu-button"),p.qZA(),p.TgZ(4,"ion-title"),p._uU(5,"Oferty"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(6,"ion-content"),p.TgZ(7,"loc-card-crud"),p.TgZ(8,"ion-card",1),p.TgZ(9,"ion-item",2),p.TgZ(10,"ion-label"),p.TgZ(11,"h2"),p._uU(12,"Oferty"),p.qZA(),p.TgZ(13,"p"),p._uU(14,"Dodaj ofert\u0119"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(15,"ion-card-content",3),p.TgZ(16,"ion-list",4),p.TgZ(17,"div",5),p.TgZ(18,"mat-form-field",6),p.TgZ(19,"mat-label"),p._uU(20,"Oferty"),p.qZA(),p._UZ(21,"input",7),p.TgZ(22,"mat-autocomplete",8,9),p.YNc(24,U,2,2,"mat-option",10),p.ALo(25,"async"),p.qZA(),p.qZA(),p.TgZ(26,"div",11),p.TgZ(27,"ion-button",12),p.NdJ("click",function(){return t.save()}),p._UZ(28,"ion-icon",13),p._uU(29," Dodaj "),p.qZA(),p.qZA(),p.qZA(),p.TgZ(30,"ion-item"),p.YNc(31,A,3,0,"ion-button",14),p.YNc(32,C,3,0,"ion-button",15),p.YNc(33,w,3,0,"ion-button",16),p.qZA(),p.YNc(34,F,2,1,"ion-reorder-group",17),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.YNc(35,E,2,0,"ng-template",null,18,p.W1O)),2&e){const e=p.MAs(23),r=p.MAs(36);p.xp6(16),p.Q6J("formGroup",t.offerForm),p.xp6(1),p.Q6J("fxLayout",t.isPlatformWidthDense()?"column":"row"),p.xp6(4),p.Q6J("matAutocomplete",e),p.xp6(1),p.Q6J("displayWith",t.displayOffer),p.xp6(2),p.Q6J("ngForOf",p.lcZ(25,13,t.filteredOffers)),p.xp6(2),p.Udp("margin-right",t.isPlatformWidthDense()?"0":"16px"),p.xp6(1),p.Q6J("disabled",t.isLoading||!t.offerForm.value.offer),p.xp6(4),p.Q6J("ngIf",t.reorderDisabled),p.xp6(1),p.Q6J("ngIf",!t.reorderDisabled),p.xp6(1),p.Q6J("ngIf",!t.reorderDisabled),p.xp6(1),p.Q6J("ngIf",!t.isLoading)("ngIfElse",r)}},directives:[s.Gu,s.sr,s.Sm,s.fG,s.wd,s.W2,O.r,s.PM,s.Ie,s.Q$,s.FN,s.q_,i.JL,i.sg,b.xw,_.KE,_.hX,Z.Nt,i.Fj,v.ZL,i.JJ,i.u,v.XC,o.sg,b.Wh,s.YG,s.gu,x.a,o.O5,y.ey,s.oz,s.Nh,s.PQ],pipes:[o.Ov],styles:["[_nghost-%COMP%]   .pxc-spinner[_ngcontent-%COMP%]{position:relative;padding-top:20px}[_nghost-%COMP%]     .loc-card-crud__autocomplete-conatiner mat-form-field{margin:8px 0}[_nghost-%COMP%]     .loc-card-crud__autocomplete-conatiner mat-form-field .mat-form-field-wrapper{padding-bottom:0}"]}),e})()}];let $=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p.oAB({type:e}),e.\u0275inj=p.cJS({imports:[[n.Bz.forChild(T)],n.Bz]}),e})();
1var k=r(15566),I=r(21482),P=r(84419);let S=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p.oAB({type:e}),e.\u0275inj=p.cJS({imports:[[o.ez,i.u5,s.Pc,$,v.Bb,_.lN,Z.c,k.o9,i.UX,I.i,P.p]]}),e})()}}]);

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.