1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="abb90484-a85b-57da-a821-73f25121a70c")}catch(e){}}(); 3(self.webpackChunkclient_panel=self.webpackChunkclient_panel||[]).push([[1496],{26503:(A,O,t)=>{t.d(O,{h:()=>C});var h=t(33134),v=t(18424),e=t(5342),y=t(70271),l=t(61318),f=t(59452),n=t(76957);const I="fragment PAYMENT_BILLING_MODEL on ContractorBillingModel {\n id\n contractorPaymentMethod {\n name\n type\n config {\n expireMonth\n expireYear\n logoUrl\n mask\n }\n removedAt\n }\n summary {\n amount\n finalAmount\n service {\n type\n website {\n id\n name\n }\n }\n }\n period\n status\n createdAt\n failedPaymentAttemptsCount\n totalAmount\n totalFinalAmount\n totalFinalGrossAmount\n}\n";var a=t(85240),T=t(10546);let C=(()=>{class d{constructor(o){this.graphqlService=o}addCard(o,s,m,c,M){return(0,e.s)(this.graphqlService.mutation(v.y.GatewayApi,"mutation PANEL_ADD_CARD($name: String, $mask: String!, $token: String!, $contractorId: Int, $redirectUrl: String) {\n contractor(id: $contractorId) {\n payment {\n addCard(name: $name, mask: $mask, token: $token, redirectUrl: $redirectUrl) {\n ...RESULT_MODEL\n }\n }\n }\n}\n"+h,{name:o,mask:s,token:m,redirectUrl:c,contractorId:M}).pipe((0,y.T)(S=>S.contractor.payment.addCard)))}editCard(o,s,m){return(0,e.s)(this.graphqlService.mutation(v.y.GatewayApi,"mutation PANEL_EDIT_CARD($contractorId: Int, $id: Int!, $isPreferredPayment: Boolean, $name: String) {\n contractor(id: $contractorId) {\n payment {\n contractorPaymentMethod(id: $id) {\n update(isPreferredPayment: $isPreferredPayment, name: $name) {\n ...RESULT_MODEL\n }\n }\n }\n }\n}\n"+h,{id:o,contractorId:s,isPreferredPayment:m.isPreferredPayment,name:m.name}).pipe((0,y.T)(M=>M.contractor.payment.contractorPaymentMethod.update)))}removeCard(o,s){return(0,e.s)(this.graphqlService.mutation(v.y.GatewayApi,"mutation PANEL_REMOVE_CARD($contractorId: Int, $id: Int!) {\n contractor(id: $contractorId) {\n payment {\n contractorPaymentMethod(id: $id) {\n remove {\n ...RESULT_MODEL\n }\n }\n }\n }\n}\n"+h,{id:o,contractorId:s}).pipe((0,y.T)(c=>c.contractor.payment.contractorPaymentMethod.remove)))}getPaymentMethods(o,s){return this.graphqlService.query(v.y.GatewayApi,"query PANEL_GET_CONTRACTOR_PAYMENT_METHODS($contractorId: Int!, $sort: [SortItem!], $limit: Int, $offset: Int) {\n contractor(id: $contractorId) {\n payment {\n contractorPaymentMethods(sort: $sort, limit: $limit, offset: $offset) {\n items {\n id\n name\n type\n config {\n brand\n expireMonth\n expireYear\n logoUrl\n mask\n }\n states\n status\n services {\n type\n website {\n id\n name\n }\n }\n isPreferredPayment\n createdAt\n modifiedAt\n }\n pageInfo {\n count\n }\n }\n }\n }\n}\n",{contractorId:o,...s}).pipe((0,y.T)(c=>({items:c?.contractor.payment.contractorPaymentMethods.items,count:c?.contractor.payment.contractorPaymentMethods.pageInfo.count??0})),(0,l.W)(()=>(0,f.of)({items:[],count:0})))}getPaymentBillings(o,s){return this.graphqlService.query(v.y.GatewayApi,"query PANEL_GET_CONTRACTOR_BILLINGS($contractorId: Int!, $paymentMethodType: ContractorPaymentMethodType, $filters: [FilterItem!], $offset: Int, $limit: Int!, $sort: [SortItem!]) {\n contractor(id: $contractorId) {\n payment {\n contractorBillings(paymentMethodType: $paymentMethodType, filters: $filters, offset: $offset, limit: $limit, sort: $sort) {\n items {\n ...PAYMENT_BILLING_MODEL\n }\n pageInfo {\n count\n }\n }\n }\n }\n}
3\n"+I,{contractorId:o,...s,paymentMethodType:n.J.CARD}).pipe((0,y.T)(c=>({items:c?.contractor.payment.contractorBillings.items,count:c?.contractor.payment.contractorBillings.pageInfo.count??0})),(0,l.W)(()=>(0,f.of)({items:[],count:0})))}getPaymentBilling(o,s){return this.graphqlService.query(v.y.GatewayApi,"query PANEL_GET_BILLING($contractorId: Int!, $id: Int!) {\n contractor(id: $contractorId) {\n payment {\n contractorBilling(id: $id) {\n ...PAYMENT_BILLING_MODEL\n }\n }\n }\n}\n"+I,{contractorId:s,id:o}).pipe((0,y.T)(c=>c?.contractor.payment.contractorBilling),(0,l.W)(()=>(0,f.of)(null)))}getPaymentBonuses(o,s){return this.graphqlService.query(v.y.GatewayApi,"query PANEL_GET_CONTRACTOR_BONUSES($contractorId: Int!, $filters: [FilterItemV3!], $offset: Int, $limit: Int!, $sort: [SortItem!]) {\n contractor(id: $contractorId) {\n payment {\n bonuses(filters: $filters, offset: $offset, limit: $limit, sort: $sort) {\n items {\n ...PAYMENT_BONUS_MODEL\n }\n pageInfo {\n count\n }\n }\n }\n }\n}\nfragment PAYMENT_BONUS_MODEL on BonusModel {\n id\n name\n amount\n amountUsed\n services\n entityType\n entityId\n createdAt\n modifiedAt\n modifiedBy\n}\n",{contractorId:o,...s}).pipe((0,y.T)(c=>({items:c?.contractor.payment.bonuses.items,count:c?.contractor.payment.bonuses.pageInfo.count??0})),(0,l.W)(()=>(0,f.of)({items:[],count:0})))}static{this.\u0275fac=function(s){return new(s||d)(a.KVO(T.P))}}static{this.\u0275prov=a.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}}return d})()},41496:(A,O,t)=>{t.d(O,{P:()=>C});var _=t(93683),P=t(73326),p=t(19999),h=t(36647),v=t(70271),e=t(86301),y=t(27265),l=t(13710),f=t(13217),n=t(12481),r=t(85422),u=t(94863),E=t(26503),I=t(10796),i=t(13088);function g(d,D){if(1&d&&n.nrm(0,"app-service-lead-component",2),2&d){const o=n.XpG();n.Y8G("data",o.performanceEasyService)}}function a(d,D){if(1&d&&(n.j41(0,"div",1),n.nVh(1,g,1,1,"app-service-lead-component",2),n.nrm(2,"app-service-lead-component",2),n.k0s()),2&d){const o=D;n.AVh("services--single",!o.performanceEasyService),n.R7$(),n.vxM(o.performanceEasyService?1:-1),n.R7$(),n.Y8G("data",o.otherServices)}}function T(d,D){1&d&&n.nrm(0,"app-loader")}let C=(()=>{class d{constructor(o,s,m,c){this.router=o,this.serviceInteractionsService=s,this.paymentService=m,this.websiteContext=c,this.servicesLead={performanceEasyService:{img:"assets/protected/images/service-lead/perfoeasy.svg",name:"Seller",label:"BETA",description:"Zmaksymalizuj sprzeda\u017c w sklepie i nie tra\u0107 czasu na manualn\u0105 obs\u0142ug\u0119 dzia\u0142a\u0144 reklamowych",lead:"Polecane dla efektywnego zwi\u0119kszenia sprzeda\u017cy",list:[{label:"<strong>Prosta konfiguracja.</strong> Nasze AI stworzy za Ciebie reklamy i zoptymalizuje ich wy\u015bwietlanie"},{label:"<strong>Rozliczenie za efekt.</strong> P\u0142acisz tylko za osi\u0105gni\u0119te wyniki"},{label:"<strong>Zasi\u0119g.</strong> Nasze serwisy docieraj\u0105 do ponad 22 mln internaut\xf3w"}],actions:[{label:"Wybierz",color:"primary",onClick:()=>this.serviceInteractionsService.rightPanelClick({title:"Seller",module:()=>Promise.all([t.e(7781),t.e(6769),t.e(3471),t.e(6829),t.e(4441),t.e(3231),t.e(3517),t.e(2076),t.e(2564)]).then(t.bind(t,93517)).then(M=>M.PerfoeasyCreatorModule),redirectOnSuccess:"client/services/seller"})}]},otherServices:{img:"assets/protected/images/service-lead/other-services.svg",name:"Wybierz us\u0142ugi dla siebie",description:"Pozyskaj nowych klient\xf3w, zwi\u0119ksz sprzeda\u017c lub rozpoznawalno\u015b\u0107 marki albo poka\u017c klientom, \u017ce Twoja firma jest godna zaufania.",lead:"Sprawd\u017a nasze rozwi\u0105zania",list:[l.C0.SKAPIEC,l.C0.LAMODA,l.C0.OPINEO,l.C0.VIDEO_ADS,l.C0.MAILING,l.C0.MAILING_INBOX,l.C0.RETAIL_MEDIA].map(M=>({label:(0,f.p9)(M),serviceType:M})),actions:[{label:"Sprawd\u017a us\u0142ugi",color:"primary",onClick:()=>this.router.navigate(["/client/services/list"])}]}},this.viewModel$=(0,p.z)([this.websiteContext.getSelectedWebsite(),this.websiteContext.getSelectedWebsiteAvailableServices()]).pipe((0,h.n)(([M,$])=>this.paymentService.getPaymentMethods(M.contractorId).pipe((0,v.T)(()=>(!1===$.includes(l.C0.PERFORMANCE_EASY)&&delete this.servicesLead.performanceEasyService,this.servicesLead.otherServices.list=this.servicesLead.otherServices.list.filter(S=>
3!S.serviceType||$.includes(S.serviceType)),this.servicesLead)))),(0,e.t)(1))}static{this.\u0275fac=function(s){return new(s||d)(n.rXU(r.Ix),n.rXU(u.U),n.rXU(E.h),n.rXU(I.U9))}}static{this.\u0275cmp=n.VBU({type:d,selectors:[["app-service-crossroad"]],decls:3,vars:3,consts:[[1,"services",3,"services--single"],[1,"services"],[1,"services__item",3,"data"]],template:function(s,m){if(1&s&&(n.nVh(0,a,3,4,"div",0),n.nI1(1,"async"),n.vZN(2,T,1,0,"app-loader")),2&s){let c;n.vxM((c=n.bMT(1,1,m.viewModel$))?0:2,c)}},dependencies:[_.MD,P.n,y.q,i.V,_.Jj],styles:[".services[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding:1.5rem 0!important}.services__item[_ngcontent-%COMP%]{width:50%;padding-left:3rem;padding-right:0}@media (max-width: 1919px){.services__item[_ngcontent-%COMP%]{padding-left:1.5rem;padding-right:0}}.services__item[_ngcontent-%COMP%]:first-child{padding-right:3rem;padding-left:0;border-right:.0625rem solid #bdbdbd}@media (max-width: 1919px){.services__item[_ngcontent-%COMP%]:first-child{padding-right:1.5rem;padding-left:0}}.services--single[_ngcontent-%COMP%]{justify-content:center}.services--single[_ngcontent-%COMP%] .services__item[_ngcontent-%COMP%]{width:50%;padding-left:0;padding-right:0;border-right:none}"],changeDetection:0})}}return d})()},73326:(A,O,t)=>{t.d(O,{n:()=>I});var _=t(37580),P=t(27265),p=t(24074),h=t(84175),v=t(85240),e=t(12481),y=t(49710);const l=(i,g)=>g.label;function f(i,g){if(1&i&&(e.j41(0,"label"),e.EFF(1),e.k0s()),2&i){const a=e.XpG();e.R7$(),e.JRh(a.data().label)}}function n(i,g){if(1&i&&e.nrm(0,"img",3),2&i){const a=e.XpG().$implicit;e.Y8G("src",a.img,e.B4B)("alt",a.label)}}function r(i,g){if(1&i&&(e.j41(0,"li")(1,"div",9),e.EFF(2),e.k0s(),e.nVh(3,n,1,2,"img",3),e.k0s()),2&i){const a=g.$implicit;e.R7$(),e.Y8G("innerHTML",a.label,e.npT),e.R7$(),e.JRh(a.label),e.R7$(),e.vxM(a.img?3:-1)}}function u(i,g){if(1&i&&(e.j41(0,"div",7),e.EFF(1),e.k0s(),e.j41(2,"ul",8),e.Z7z(3,r,4,3,"li",null,l),e.k0s()),2&i){const a=e.XpG();e.R7$(),e.JRh(a.data().lead),e.R7$(2),e.Dyx(a.data().list)}}function E(i,g){if(1&i){const a=e.RV6();e.j41(0,"span",6)(1,"button",10),e.bIt("click",function(){const C=v.eBV(a).$implicit;return v.Njj(C.onClick())}),e.j41(2,"span",11),e.EFF(3),e.j41(4,"mat-icon"),e.EFF(5,"arrow_forward"),e.k0s()()()()}if(2&i){const a=g.$implicit;e.Y8G("matTooltip",a.tooltip??""),e.R7$(),e.Y8G("disabled",a.disabled),e.R7$(2),e.SpI(" ",a.label," ")}}let I=(()=>{class i{constructor(){this.data=_.hFB.required()}static{this.\u0275fac=function(T){return new(T||i)}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-service-lead-component"]],inputs:{data:[1,"data"]},decls:13,vars:6,consts:[[1,"service-lead"],[1,"service-lead__label-rapper"],[1,"service-lead__img"],[3,"src","alt"],[1,"service-lead__title"],[1,"service-lead__actions"],[3,"matTooltip"],[1,"service-lead__lead"],[1,"service-lead__list"],[3,"innerHTML"],["mat-flat-button","","color","primary",3,"click","disabled"],[1,"with-suffix-icon"]],template:function(T,C){1&T&&(e.j41(0,"div",0)(1,"div",1),e.nVh(2,f,2,1,"label"),e.k0s(),e.j41(3,"div",2),e.nrm(4,"img",3),e.k0s(),e.j41(5,"div",4),e.EFF(6),e.k0s(),e.j41(7,"p"),e.EFF(8),e.k0s(),e.nVh(9,u,5,1),e.j41(10,"div",5),e.Z7z(11,E,6,3,"span",6,l),e.k0s()()),2&T&&(e.R7$(2),e.vxM(C.data().label?2:-1),e.R7$(2),e.Y8G("src",C.data().img,e.B4B)("alt",C.data().name),e.R7$(2),e.JRh(C.data().name),e.R7$(2),e.JRh(C.data().description),e.R7$(),e.vxM(C.data().list.length>0?9:-1),e.R7$(2),e.Dyx(C.data().actions))},dependencies:[P.q,y.oV,p.m_,p.An,h.Hl,h.$z],styles:[".service-lead[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.service-lead__label-rapper[_ngcontent-%COMP%]{height:1.75rem}.service-lead__label-rapper[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{background:#117e63;padding:.25rem .375rem;color:#fff;text-transform:uppercase}.service-lead__img[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;max-height:25.625rem;min-height:10rem;margin-bottom:1.5rem}.service-lead__img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;max-height:100%}.service-lead__title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:400;line-height:2rem;letter-spacing:.015625rem;text-align:left;padding-bottom:.25rem}.service-lead[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:1rem}.service-lead__lead[_ngcontent-%COMP%]{font-size:.875rem;font-weight:700;line-height:1.375rem;letter-spacing:.00625rem;text-align:left}.service-lead__list[_ngcontent-%COMP%]{padding-left:0;padding-bottom:0;margin-bottom:.5rem}.service-lead__list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{align-items:center;background:url(/assets/protected/images/icons/check.svg) no-repeat .375rem .375rem transparent;display:flex;list-style-type:none;letter-spacing:.00625rem;padding-left:2.5rem;line-height:1.375rem}.service-lead__list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-left:.5rem;max-height:1.4375rem}.service-lead__actions[_ngcontent-%COMP%]{display:flex;margin-top:auto;margin-bottom:1.5rem}"],changeDetection:0})}}return i})()},76957:(A,O,t)=>{t.d(O,{J:()=>_,t:()=>P});var _=function(p){return p.CARD="CARD",p.TRANSFER="TRANSFER",p}(_||{}),P=function(p){return p.CREATING="CREATING",p.ACTIVE="ACTIVE",p.INACTIVE="INACTIVE",p}
3(P||{})},94863:(A,O,t)=>{t.d(O,{U:()=>l});var _=t(12481),P=t(59452),p=t(70271),h=t(85240),v=t(85422),e=t(27265),y=t(35073);let l=(()=>{class f{constructor(r,u,E){this.router=r,this.rightPanelService=u,this.dialogService=E}rightPanelClick(r){const u=new _.bkB,E=new _.bkB;let I=!1;const i=this.rightPanelService.open({class:r.class??"",title:r.title,entryContext:r.entryContext??null,managed:!1,outputs:{onCreated:u,onSaveDraft:E},module:r.module,beforeClose:g=>g.form.pristine?(0,P.of)(g.form.pristine):I?(0,P.of)(!0):this.dialogService.openConfirmDialog({width:r?.confirmDialogSettings?.width||400,title:r?.confirmDialogSettings?.title||"Potwierdzenie",message:r?.confirmDialogSettings?.message||"Czy na pewno chcesz zamkn\u0105\u0107 formularz?",buttonAccept:r?.confirmDialogSettings?.buttonAccept||"Tak",buttonCancel:r?.confirmDialogSettings?.buttonCancel||"Nie"}).afterClosed().pipe((0,p.T)(a=>!!a))});u.subscribe(()=>{r.redirectOnSuccess&&this.router.navigate([r.redirectOnSuccess]),i.close(),u.unsubscribe()}),E.subscribe(()=>{I=!0,r.redirectOnSaveDraft&&this.router.navigate([r.redirectOnSaveDraft]),r.closeOnSaveDraft&&(i.close(),E.unsubscribe())})}static{this.\u0275fac=function(u){return new(u||f)(h.KVO(v.Ix),h.KVO(e._S),h.KVO(y.o))}}static{this.\u0275prov=h.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})()}}]); 4//# sourceMappingURL=1496.5e93b2fe047333fd.js.map 5//# debugId=abb90484-a85b-57da-a821-73f25121a70c
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.