PageSourceSearch

https://dietly.pl/_next/static/chunks/pages/ocen-zamowienie-f4162c8db81861ab.js

js dietly.pl collected 2026-10-02 06:22:53 UTC 31,685 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9760],{4345:(e,a,t)=>{"use strict";t.d(a,{T:()=>s});var l=t(37876);t(14232);var i=t(6164);let s=e=>{let{containerClass:a,countLetter:t,disabled:s,error:n,id:r,inputClass:o,label:c,labelLink:d,minCounterLength:C,name:m,onChange:u,placeholder:p,required:h,value:y,...j}=e,x=(0,i.F)("",{"has-error":!!n,"is-disabled":!!s,"is-required":!!h});return(0,l.jsx)("div",{className:(0,i.F)("",{["".concat(a)]:!!a}),children:(0,l.jsxs)("div",{className:(0,i.F)("form-input",{["".concat(o)]:!!o,["".concat(x)]:!!x}),children:[(0,l.jsxs)("div",{className:"input-label",children:[(0,l.jsx)("label",{className:x,htmlFor:r,children:c}),d&&d]}),(0,l.jsx)("textarea",{className:x,disabled:s,id:r,name:m,onChange:u,placeholder:p,value:y,...j}),t&&C&&(0,l.jsxs)("div",{className:"body-m spacer-top-8",style:{color:String(y).length>=C?"#28A75D":""},children:[String(y).length," / ",C]}),(0,l.jsx)("div",{className:"input-hint",children:n&&n})]})})}},5156:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var l=t(37876),i=t(52276),s=t(84371),n=t(6164);let r=e=>{let{containerClass:a,onClick:t,width:r}=e,o=[1,2,3,4,5];return(0,l.jsxs)("div",{className:(0,n.F)("star-rating",{["".concat(a)]:!!a}),children:[(0,l.jsx)("div",{className:"star-rating-top",style:{width:r+"%"},children:o.map(e=>(0,l.jsx)(s.gc,{icon:i.yy,onClick:()=>t&&t(e)},e))}),(0,l.jsx)("div",{className:"star-rating-bottom",children:o.map(e=>(0,l.jsx)(s.gc,{icon:i.yy,onClick:()=>t&&t(e)},e))})]})}},14667:(e,a,t)=>{"use strict";t.r(a),t.d(a,{__N_SSP:()=>F,default:()=>P});var l=t(37876),i=t(14232),s=t(25815),n=t(80744),r=t(70420),o=t(5156),c=t(4345),d=t(72271);let C=e=>{let{scoreAesthetics:a,scoreDelivery:t,scoreIngredientsQuality:l,scorePackaging:i,scoreTaste:s,scoreVariety:n}=e;return(a+t+l+i+s+n)/6};var m=t(29392),u=t(44517),p=t(84371),h=t(59012),y=t(2571),j=t(53735);let{getFeedbackDataWithToken:x}=t(9379).a.injectEndpoints({endpoints:e=>({getFeedbackDataWithToken:e.query({query:e=>({method:"GET",url:"/open/feedback-token-data",params:{token:e}}),keepUnusedDataFor:3600})}),overrideExisting:!0}).endpoints;var v=t(17271),g=t(8825),f=t(43062),w=t(6164),b=t(69505),k=t(65626),N=t(54587),L=t.n(N),z=t(48230),M=t.n(z);let R=e=>{var a;let{token:t}=e,[N,z]=(0,i.useState)(!1),[R,F]=(0,i.useState)({generalScore:5,scoreAesthetics:5,scoreDelivery:5,scoreIngredientsQuality:5,scorePackaging:5,scoreTaste:5,scoreVariety:5}),[P,H]=(0,i.useState)(""),[_,D]=(0,i.useState)(!0),[S,A]=(0,i.useState)([]),{data:T}=(0,h.G)(e=>x.select(t)(e)),{data:Z}=(0,j.vY)(),{cateringFullName:E,cateringLoyaltyProgramEnabled:V,cateringVisibleInDietly:G,diets:I,orderId:B}=T||{},{scoreAesthetics:O,scoreDelivery:Q,scoreIngredientsQuality:U,scorePackaging:q,scoreTaste:W,scoreVariety:$}=R,J={orderId:B,scoreAesthetics:O,scoreDelivery:Q,scoreIngredientsQuality:U,scorePackaging:q,scoreTaste:W,scoreVariety:$,text:P,visible:_,attachments:S},K=(O+W+U+q+$+Q)/6,Y={eventCategory:"Ecommerce",eventAction:"orderFeedback",pageType:"/ocen-zamowienie"},[X,{isLoading:ee}]=(0,m.EJ)(),ea=async(e,a)=>{try{let t=await X({body:a,token:e}).unwrap();(0,f.l)("Dziękujemy za ocenę zam\xf3wienia.",g.l.Success),z(!0),(0,y.pY)({ecommerce:t,...Y})}catch(e){console.error("Cannot post feedback. Error message: ".concat(e))}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(v.A,{}),(0,l.jsx)("section",{className:"container",children:N?(0,l.jsxs)(k.P.div,{animate:"visible",className:"order-feedback-success",initial:"hidden",variants:{hidden:{scale:.8,opacity:0}
1,visible:{scale:1,opacity:1,transition:{delay:.1}}},children:[(0,l.jsx)(L(),{alt:"Kochamy Dietly",className:"order-feedback-success__image",src:"/WeLoveDietly.png"}),(0,l.jsx)("p",{className:"label-l font-size-20 spacer-bottom-40",children:"Dziękujemy za ocenę cateringu na Dietly"}),(0,l.jsx)("p",{className:"body-l spacer-bottom-40",children:"Dzięki Twoim opiniom wyb\xf3r cateringu może być jeszcze prostszy. Nieważne, czy jest to ocena bardzo dobra, czy trochę gorsza. Najważniejsze, że prawdziwa! Bo na Dietly, wszystkie opinie pochodzą ze zweryfikowanych zam\xf3wień i na tej wiarygodności zależy nam najbardziej."}),P.length>=100&&V&&G&&(0,l.jsxs)("div",{className:"order-feedback-success__points-info",children:[(0,l.jsx)(d.A,{color:"#10B133"}),(0,l.jsx)("p",{children:"Przyznaliśmy Ci 100 punkt\xf3w lojalnościowych za podzielenie się dłuższą opinią. Znajdziesz je w Twojej skarbonce w panelu Dietly."})]}),(0,l.jsx)(M(),{href:"/",children:(0,l.jsx)(s.default,{colorBlank:!0,label:"Wr\xf3ć na stonę gł\xf3wną"})})]}):(0,l.jsxs)("div",{className:"order-feedback",children:[(0,l.jsxs)("div",{className:"max-width-500",children:[(0,l.jsxs)("h1",{className:"h100 spacer-bottom-40",children:["Jak oceniasz zam\xf3wienie w cateringu"," ",(0,l.jsx)("span",{className:"color-primary",children:E}),"?"]}),(0,l.jsx)("div",{className:"order-feedback__box",children:null==I?void 0:I.map(e=>(0,l.jsxs)("div",{className:"order-feedback__order",children:[(0,l.jsx)(L(),{alt:null==e?void 0:e.dietName,src:(null==e?void 0:e.dietImageUrl)||(0,b.F)(null==e?void 0:e.dietTagId,Z)}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"label-m spacer-bottom-4",children:null==e?void 0:e.dietName}),(0,l.jsxs)("p",{className:"body-s",children:[null==e?void 0:e.dietOptionName," • ",null==e?void 0:e.calories," kcal"]})]})]},null==e?void 0:e.dietId))}),(0,l.jsx)("p",{className:"body-l spacer-bottom-24",children:"Twoja opinia jest dla nas ważna! Każdego dnia staramy się doskonalić nasze usługi i dania, dlatego będzie nam niezwykle miło, jeśli napiszesz kilka sł\xf3w o tym, jak nam idzie!"}),(0,l.jsxs)("div",{className:"order-feedback__general-rating",children:[(0,l.jsx)(o.A,{containerClass:"large",onClick:e=>((e,a)=>a({generalScore:e,scoreAesthetics:e,scoreDelivery:e,scoreIngredientsQuality:e,scorePackaging:e,scoreTaste:e,scoreVariety:e}))(e,F),width:20*C(R)}),(0,l.jsx)("span",{className:"h200 spacer-left-16",children:null==(a=C(R))?void 0:a.toFixed(1)})]}),(0,l.jsx)("p",{className:"body-l spacer-bottom-24",children:"Oceń każdy element zam\xf3wienia oddzielnie, abyśmy mogli zapewnić Ci jak najwyższą jakość naszych usług."}),(0,l.jsxs)("div",{className:"order-feedback__detailed-rating",children:[(0,l.jsxs)("div",{className:"display-flex align-items-center justify-content-space-between spacer-bottom-16",children:[(0,l.jsx)("div",{className:"label-l",children:"Smak potraw"}),(0,l.jsx)(o.A,{onClick:e=>F({...R,scoreTaste:e}),width:20*W})]}),(0,l.jsxs)("div",{className:"display-flex align-items-center justify-content-space-between spacer-bottom-16",children:[(0,l.jsx)("div",{className:"label-l",children:"Estetyka posiłku"}),(0,l.jsx)(o.A,{onClick:e=>F({...R,scoreAesthetics:e}),width:20*O})]}),(0,l.jsxs)("div",{className:"display-flex align-items-center justify-content-space-between spacer-bottom-16",children:[(0,l.jsx)("div",{className:"label-l",children:"Spos\xf3b pakowania"}),(0,l.jsx)(o.A,{onClick:e=>F({...R,scorePackaging:e}),width:20*q})]}),(0,l.jsxs)("div",{className:"display-flex align-items-center justify-content-space-between spacer-bottom-16",children:[(0,l.jsx)("div",{className:"label-l",children:"Jakość składnik\xf3w"}),(0,l.jsx)(o.A,{onClick:e=>F({...R,scoreIngredientsQuality:e}),width:20*U})]}),(0,l.jsxs)("div",{className:"display-flex align-items-center justify-content-space-between spacer-bottom-16",children:[(0,l.jsx)("div",{className:"label-l",children:"Dostawa"}),(0,l.jsx)(o.A,{onClick:e=>F({...R,scoreDelivery:e}),width:20*Q})]}),(0,l.jsxs)("div",{className:"display-flex align-items-center justify-content-space-between",children:[(0,l.jsx)("div",{className:"label-l",children:"R\xf3żnorodność"}),(0,l.jsx)(o.A,{onClick:e=>F({...R,scoreVariety:e}),width:20*$})]})]}),(0,l.jsxs)("div",{className:"order-feedback__textarea-container",children:[(0,l.jsx)(c.T,{containerClass:"spacer-bottom-32",countLetter:K<4,id:"feedbackText",label:"Dodaj komentarz",minCounterLength:120,name:"feedbackText",onCh
1ange:e=>{H(e.target.value)},placeholder:"Napisz coś od siebie",value:P}),V&&G&&(0,l.jsxs)("div",{className:"order-feedback__tooltip",children:[(0,l.jsx)(d.A,{color:P.length>=100?"#10B133":"#1B42B2"}),(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)("p",{className:(0,w.F)("color-primary label-l spacer-bottom-8",{"color-success":P.length>=100}),children:"Punkty lojalnościowe za opinię"}),(0,l.jsx)("p",{className:"body-m color-gray-600",children:P.length>=100?(0,l.jsxs)(l.Fragment,{children:["Dziękujemy za wyrażenie swojej opinii. Po zapisaniu oceny, otrzymasz"," ",(0,l.jsx)("span",{className:"font-weight-500",children:"100 punkt\xf3w"})," ","lojalnościowych w Twoim panelu."]}):(0,l.jsxs)(l.Fragment,{children:["Dodaj jeszcze"," ",(0,l.jsxs)("span",{className:"font-weight-500",children:[100-P.length," znak\xf3w"]}),", aby otrzymać"," ",(0,l.jsx)("span",{className:"font-weight-500",children:"100 punkt\xf3w"})," ","lojalnościowych."]})})]})]})]}),(0,l.jsx)(r.B,{accept:".jpeg, .jpg, .png, .gif",maxFiles:3,maxSize:5,multiple:!0,onChange:e=>{A(e)},value:S||[]}),(0,l.jsx)(n.S,{checked:_,containerClass:"spacer-bottom-40",id:"visible",label:"Dodaj opinię do Dietly.pl",onChange:()=>D(!_)}),(0,l.jsx)(s.default,{colorPrimary:!0,icon:ee&&(0,l.jsx)(p.gc,{icon:u.VNe,spin:!0}),label:"Zapisz ocenę",onClick:async()=>{await ea(t,J)},sizeMedium:!0})]}),(0,l.jsx)(L(),{alt:"Wsp\xf3łpraca",className:"order-feedback__image",src:"/Collaboration.png"})]})})]})};var F=!0;let P=e=>{let{token:a}=e;return(0,l.jsx)(R,{token:a})}},17271:(e,a,t)=>{"use strict";t.d(a,{A:()=>o});var l=t(37876),i=t(77328),s=t.n(i),n=t(89099),r=t(35162);let o=e=>{let{hrefToMainPage:a=!1,isChooseDiet:t=!1}=e,i=(0,n.useRouter)();return(0,l.jsx)(s(),{children:(0,l.jsx)("link",{href:a?(0,r.$z)(i.asPath):t?(0,r.A_)(i.asPath):(0,r.$i)(i.asPath),rel:"canonical"})})}},29392:(e,a,t)=>{"use strict";t.d(a,{EJ:()=>C,HE:()=>c,Kd:()=>u,ck:()=>m,iN:()=>d});var l=t(9836),i=t(64609),s=t(9379),n=t(97720);let r=e=>{let a=new FormData;return Object.keys(e).forEach(t=>{if("attachments"===t&&Array.isArray(e.attachments)){if(e.attachments.length>0&&e[t]){var l;null==(l=e[t])||l.forEach(e=>{a.append("attachments",e)})}}else a.append(t,e[t])}),a},o=s.a.injectEndpoints({endpoints:e=>({postAddFeedbackWithToken:e.mutation({query:e=>{let{body:a,token:t}=e;return{method:"POST",url:"open/add-feedback",body:r(a),params:{token:t}}},async onQueryStarted(e,a){let{body:t}=e,{dispatch:s,getState:n,queryFulfilled:r}=a;try{let e={page:n().centrum.history.page},{data:a}=await r;a&&"feedbackId"in a&&s(o.util.updateQueryData("getCentrumHistory",e,e=>{let s=(0,i.ss)(e),n=(0,l.mP)(s,{...t,feedbackId:a.feedbackId});Object.assign(e,n)}))}catch(e){console.error("Error: ",e)}}}),postCustomerFeedback:e.mutation({query:e=>{let{body:a,companyId:t}=e;return{method:"POST",url:"company/customer/v2/feedback",headers:{"company-id":t},body:r(a)}},async onQueryStarted(e,a){let{body:t}=e,{dispatch:s,getState:n,queryFulfilled:r}=a;try{let e={page:n().centrum.history.page},{data:a}=await r;a&&"feedbackId"in a&&s(o.util.updateQueryData("getCentrumHistory",e,e=>{let s=(0,i.ss)(e),n=(0,l.mP)(s,{...t,feedbackId:a.feedbackId});Object.assign(e,n)}))}catch(e){console.error("Error: ",e)}},invalidatesTags:(e,a)=>a?[]:[n.F.CustomerOrderActiveId,n.F.GetProfileLoyaltyProgramSum,n.F.GetProfileLoyaltyProgramCompanies,n.F.GetLoyaltyPointsHistory]}),patchCustomerFeedback:e.mutation({query:e=>{let{body:a,companyId:t}=e;return{method:"PATCH",url:"company/customer/v2/feedback",headers:{"company-id":t},body:r(a)}},async onQueryStarted(e,a){let{body:t}=e,{dispatch:s,getState:n,queryFulfilled:r}=a,c={page:n().centrum.history.page},d=s(o.util.updateQueryData("getCentrumHistory",c,e=>{let a=(0,i.ss)(e);Object.assign(e,(0,l.j4)(a,t))}));try{await r}catch(e){d.undo()}},invalidatesTags:(e,a)=>a?[]:[n.F.CustomerOrderActiveId,n.F.GetProfileLoyaltyProgramSum,n.F.GetProfileLoyaltyProgramCompanies,n.F.GetLoyaltyPointsHistory]}),deleteMealReview:e.mutation({query:e=>{let{companyId:a,menuMealId:t}=e;return{method:"DELETE",url:"company/customer/review/".concat(t),headers:{"company-id":a}}},invalidatesTags:(e,a)=>a?[]:[n.F.GetProfileLoyaltyProgramSum,n.F.GetProfileLoyaltyProgramCompanies,n.F.GetLoyaltyPointsHistory],async onQueryStarted(e,a){let{companyId:t,deliveryId:l,menuMealId:s}=e,{dispatch:n,queryFulfilled:r}=a,c=n(o.util.updateQueryData("getGeneralMenusDelivery",{companyId:t,deliveryId:l},e=>{let a=(0,i.ss)(e);return{...a,deliveryMenuMeal:a.deliveryMenuMeal.map(e=>e.menuMealId===s?{...e,review:{...e.review,deleted:!0}
1}:e)}}));try{await r}catch(e){c.undo()}}}),postMealReview:e.mutation({query:e=>{let{body:a,companyId:t}=e;return{method:"POST",url:"company/customer/review",headers:{"company-id":t},body:a}},invalidatesTags:(e,a)=>a?[]:[n.F.GetProfileLoyaltyProgramSum,n.F.GetProfileLoyaltyProgramCompanies,n.F.GetLoyaltyPointsHistory],async onQueryStarted(e,a){let{body:t,companyId:l,deliveryId:s}=e,{dispatch:n,queryFulfilled:r}=a,{reviewId:{menuMealId:c},score:d,text:C}=t,m=n(o.util.updateQueryData("getGeneralMenusDelivery",{companyId:l,deliveryId:s},e=>{let a=(0,i.ss)(e);return{...a,deliveryMenuMeal:a.deliveryMenuMeal.map(e=>e.menuMealId===c?{...e,review:{...e.review,deleted:!1,score:d,text:C}}:e)}}));try{await r}catch(e){m.undo()}}})})}),{useDeleteMealReviewMutation:c,usePatchCustomerFeedbackMutation:d,usePostAddFeedbackWithTokenMutation:C,usePostCustomerFeedbackMutation:m,usePostMealReviewMutation:u}=o},35162:(e,a,t)=>{"use strict";t.d(a,{$i:()=>l,$z:()=>i,A_:()=>s,KF:()=>n});let l=e=>{let a=new URL(e,"https://dietly.pl");return"".concat(a.origin).concat(a.pathname)},i=e=>new URL(e,"https://dietly.pl").origin,s=e=>{let a=new URL(e,"https://dietly.pl"),t=a.search.includes("konfigurator"),l=a.search.includes("nowe-zamowienie"),i="".concat(t||l?"?":"").concat(t?"konfigurator":"").concat(l?"nowe-zamowienie":"");return"".concat(a.origin).concat(a.pathname).concat(i)},n=e=>{let a=new URL(e,"https://dietly.pl");return(a.pathname.endsWith("/0")||a.pathname.endsWith("/1"))&&(a.pathname=a.pathname.slice(0,-2)),"".concat(a.origin).concat(a.pathname)}},46089:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/ocen-zamowienie",function(){return t(14667)}])},53735:(e,a,t)=>{"use strict";t.d(a,{GH:()=>s,vY:()=>i});var l=t(9379);t(65364).env.SERVER_URL;let{useGetDietTagInfoAllQuery:i,useGetDietTagInfoQuery:s}=l.a.injectEndpoints({endpoints:e=>({getDietTagInfoAll:e.query({query:()=>({method:"GET",url:"/open/diet-tag-info/all"}),keepUnusedDataFor:3600,transformResponse:e=>e.sort((e,a)=>e.name.localeCompare(a.name))}),getDietTagInfo:e.query({query:e=>{let{dietTagId:a}=e;return{method:"GET",url:"/open/diet-tag-info",params:{dietTagId:a}}},keepUnusedDataFor:3600})})})},70420:(e,a,t)=>{"use strict";t.d(a,{B:()=>p});var l=t(37876),i=t(14232),s=t(25815);let n=e=>{let{color:a="#06257F",height:t="24",width:i="24"}=e;return(0,l.jsx)("svg",{fill:"none",height:t,viewBox:"0 0 24 24",width:i,xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M19 10C18.7348 10 18.4804 10.1054 18.2929 10.2929C18.1054 10.4804 18 10.7348 18 11V14.38L16.52 12.9C15.9974 12.3815 15.2911 12.0906 14.555 12.0906C13.8189 12.0906 13.1126 12.3815 12.59 12.9L11.89 13.61L9.41 11.12C8.88742 10.6015 8.18113 10.3106 7.445 10.3106C6.70887 10.3106 6.00258 10.6015 5.48 11.12L4 12.61V7C4 6.73478 4.10536 6.48043 4.29289 6.29289C4.48043 6.10536 4.73478 6 5 6H13C13.2652 6 13.5196 5.89464 13.7071 5.70711C13.8946 5.51957 14 5.26522 14 5C14 4.73478 13.8946 4.48043 13.7071 4.29289C13.5196 4.10536 13.2652 4 13 4H5C4.20435 4 3.44129 4.31607 2.87868 4.87868C2.31607 5.44129 2 6.20435 2 7V19.22C2.00264 19.9565 2.29637 20.6621 2.81715 21.1828C3.33794 21.7036 4.04351 21.9974 4.78 22H17.22C17.491 21.9978 17.7603 21.9574 18.02 21.88C18.5974 21.718 19.1058 21.3711 19.4671 20.8924C19.8283 20.4137 20.0226 19.8297 20.02 19.23V11C20.02 10.867 19.9935 10.7353 19.942 10.6126C19.8905 10.49 19.8151 10.3789 19.7201 10.2857C19.6251 10.1926 19.5125 10.1194 19.3888 10.0703C19.2652 10.0212 19.133 9.99734 19 10ZM5 20C4.73478 20 4.48043 19.8946 4.29289 19.7071C4.10536 19.5196 4 19.2652 4 19V15.43L6.89 12.54C7.03615 12.3947 7.23389 12.3131 7.44 12.3131C7.64611 12.3131 7.84385 12.3947 7.99 12.54L15.46 20H5ZM18 19C17.9936 19.1936 17.931 19.3812 17.82 19.54L13.3 15L14.01 14.3C14.0817 14.2268 14.1673 14.1687 14.2617 14.129C14.3561 14.0893 14.4576 14.0689 14.56 14.0689C14.6624 14.0689 14.7639 14.0893 14.8583 14.129C14.9527 14.1687 15.0383 14.2268 15.11 14.3L18 17.21V19ZM21 4H20V3C20 2.73478 19.8946 2.48043 19.7071 2.29289C19.5196 2.10536 19.2652 2 19 2C18.7348 2 18.4804 2.10536 18.2929 2.29289C18.1054 2.48043 18 2.73478 18 3V4H17C16.7348 4 16.4804 4.10536 16.2929 4.29289C16.1054 4.48043 16 4.73478 16 5C16 5.26522 16.1054 5.51957 16.2929 5.70711C16.4804 5.89464 16.7348 6 17 6H18V7C18 7.26522 18.1054 7.51957 18.2929 7.70711C18.4804 7.89464 18.7348 8 19 8C19.2652 8 19.5196 7.89464 19.7071 7.70711C19.8946 7.51957 20 7.26522 20 7V6H21C21.2652 6 21.5196 5.89464 21.7071 5.70711C21.8946 5.51957 22 5.26522 22 5C22 4.73478 21.8946 4.48043 21.7071 4.29289C21.5196 4.10536 21.2652 4 21 4Z",fill:a})})},r=e=>{let{className:a="fill-white",height:t=10,width:i=10}=e;return(0,l.jsx)("svg",{className:a,fill:"none",height:t,viewBox:"0 0 10 10",width:i,xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M9.26758 2H7.26758V1.5C7.26758 1.10218 7.
110954 0.720644 6.82824 0.43934C6.54693 0.158035 6.1654 0 5.76758 0H4.76758C4.36975 0 3.98822 0.158035 3.70692 0.43934C3.42561 0.720644 3.26758 1.10218 3.26758 1.5V2H1.26758C1.13497 2 1.00779 2.05268 0.914025 2.14645C0.820257 2.24021 0.767578 2.36739 0.767578 2.5C0.767578 2.63261 0.820257 2.75979 0.914025 2.85355C1.00779 2.94732 1.13497 3 1.26758 3H1.76758V8.5C1.76758 8.89782 1.92561 9.27936 2.20692 9.56066C2.48822 9.84196 2.86975 10 3.26758 10H7.26758C7.6654 10 8.04693 9.84196 8.32824 9.56066C8.60954 9.27936 8.76758 8.89782 8.76758 8.5V3H9.26758C9.40019 3 9.52736 2.94732 9.62113 2.85355C9.7149 2.75979 9.76758 2.63261 9.76758 2.5C9.76758 2.36739 9.7149 2.24021 9.62113 2.14645C9.52736 2.05268 9.40019 2 9.26758 2ZM4.26758 1.5C4.26758 1.36739 4.32026 1.24021 4.41402 1.14645C4.50779 1.05268 4.63497 1 4.76758 1H5.76758C5.90019 1 6.02736 1.05268 6.12113 1.14645C6.2149 1.24021 6.26758 1.36739 6.26758 1.5V2H4.26758V1.5ZM7.76758 8.5C7.76758 8.63261 7.7149 8.75979 7.62113 8.85355C7.52736 8.94732 7.40019 9 7.26758 9H3.26758C3.13497 9 3.00779 8.94732 2.91402 8.85355C2.82026 8.75979 2.76758 8.63261 2.76758 8.5V3H7.76758V8.5Z"})})};var o=t(8825),c=t(43062),d=t(75784),C=t(65626),m=t(54587),u=t.n(m);let p=e=>{let{accept:a,maxFiles:t=1,maxSize:m=5,multiple:p=!1,onChange:h,value:y=[]}=e,[j,x]=(0,i.useState)(y),v=(0,i.useRef)(null),g=j.length===t,f=(0,i.useMemo)(()=>Array.from(new Set(null==a?void 0:a.split(",").map(e=>e.trim().replace(/\.jpeg$/i,".jpg").toUpperCase()))).join(", "),[a]);return(0,l.jsxs)("div",{className:"flex flex-col justify-center gap-6",children:[(0,l.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,l.jsx)(s.default,{colorBlank:!0,containerClass:"!text-primary-500",disabled:g,icon:(0,l.jsx)(n,{color:g?"#8FA1B2":"#06257F"}),label:"Dodaj zdjęcia",onClick:()=>{v.current&&v.current.click()}}),(0,l.jsx)("input",{accept:a,className:"hidden",id:"imageUpload",multiple:p,onChange:e=>{if(e.target.files){let a=t-j.length;if(a<=0)return;let l=Array.from(e.target.files).slice(0,a),i=l.filter(e=>e.size<=1048576*m);l.length-i.length>0&&(0,c.l)("Nie możesz dodać plik\xf3w większych niż ".concat(m," MB."),o.l.Error);let s=[...j,...i];x(s),v.current&&(v.current.value=""),h&&h(s)}},ref:v,type:"file"}),(0,l.jsxs)("p",{className:"body-s text-gray-500",children:["Maksymalnie ",t," zdjęcia o rozmiarze do ",m," MB (łącznie max 12 MB). Akceptujemy formaty ",f]})]}),(0,l.jsx)("div",{className:"flex flex-row items-center",children:(0,l.jsx)(d.N,{children:j.map((e,a)=>(0,l.jsxs)(C.P.div,{animate:{opacity:1},className:"relative mr-1.5 rounded-lg border border-gray-200 p-1",exit:{opacity:0},initial:{opacity:0}
1,layout:!0,transition:{duration:.2},children:[(0,l.jsx)(u(),{alt:"Preview",className:"h-24 w-24 rounded-lg object-contain",height:92,src:URL.createObjectURL(e),width:92}),(0,l.jsx)(s.default,{containerClass:"!absolute top-0 right-0 flex justify-center items-center !w-6 !h-6 !p-0 !bg-white !rounded-full hover:!bg-gray-200",icon:(0,l.jsx)(r,{className:"fill-error-700",height:12,width:12}),onClick:()=>(e=>{let a=j.filter((a,t)=>t!==e);x(a),v.current&&(v.current.value=""),h&&h(a)})(a)})]},e.name))})})]})}},72271:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var l=t(37876);let i=e=>{let{className:a,color:t="#06257F",height:i=61,width:s=61}=e;return(0,l.jsxs)("svg",{className:a,fill:"none",height:i,viewBox:"0 0 61 61",width:s,xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{clipRule:"evenodd",d:"M54.7031 34.8759C54.6111 34.8829 54.5241 34.9039 54.4301 34.9039C52.4981 34.9039 50.9301 33.3369 50.9301 31.4039C50.9301 29.9299 51.8431 28.6749 53.1321 28.1589C51.2311 23.0689 47.6051 19.2629 43.0581 16.8679C43.0541 16.8669 43.0501 16.8659 43.0461 16.8649C42.4021 18.4199 41.4381 19.8089 40.2211 20.9349C35.5601 18.4819 29.8711 18.7049 25.3921 21.5859C23.6001 20.1979 22.2411 18.2899 21.5141 16.0939C21.4901 16.0349 21.4591 15.9819 21.4391 15.9199C20.0001 16.3699 18.7361 16.8139 17.9221 17.1539C13.7291 15.4509 10.8021 14.7159 8.23906 14.9999C7.87406 15.0399 7.80506 15.5269 8.13606 15.6859C10.4671 16.8079 10.8751 19.7779 11.9221 21.9999C8.87906 24.9329 8.58006 27.0629 8.04406 30.9039H5.91406C3.04406 30.9039 1.91406 33.2299 1.91406 36.0999V39.7069C1.91406 42.5769 3.04406 44.9039 5.91406 44.9039H7.22706C10.2091 53.5769 20.6801 58.2189 31.6641 58.2189C45.0571 58.2189 54.9311 50.5019 54.9311 38.9039C54.9311 37.5059 54.8501 3
16.1659 54.7031 34.8759Z",fill:"white",fillRule:"evenodd"}),(0,l.jsx)("path",{clipRule:"evenodd",d:"M17.9214 16.0755C18.7584 15.7465 19.8925 15.3557 21.1406 14.9654L22.0865 14.6696L22.3831 15.5889L22.3894 15.6024L22.4024 15.6301C22.4123 15.6515 22.426 15.6817 22.4404 15.717L22.4529 15.7479L22.4634 15.7795C23.0548 17.5661 24.1035 19.1428 25.4799 20.3608C29.9445 17.7767 35.3982 17.5588 40.0264 19.722C40.9095 18.7897 41.6211 17.692 42.1222 16.4822L42.4521 15.6856L43.4175 15.9269L43.5241 15.9831C48.2688 18.4822 52.0745 22.469 54.0689 27.809L54.4107 28.7241L53.5037 29.0872C52.5784 29.4576 51.9301 30.3554 51.9301 31.4038C51.9301 32.7795 53.0422 33.8959 54.4154 33.9038C54.4192 33.9033 54.4248 33.9026 54.4324 33.9016L54.4625 33.8974L54.505 33.8916C54.5367 33.8875 54.5791 33.8824 54.6272 33.8787L55.5876 33.8056L55.6966 34.7626C55.8478 36.0892 55.9311 37.467 55.9311 38.9038C55.9311 45.0119 53.3207 50.1221 48.952 53.6855C44.5988 57.2362 38.5458 59.2188 31.6641 59.2188C20.787 59.2188 10.0133 54.7349 6.53034 45.9038H5.91406C4.16315 45.9038 2.84727 45.1706 2.01159 43.9449C1.21376 42.7748 0.914062 41.2488 0.914062 39.7068V36.0998C0.914062 34.5578 1.21375 33.0321 2.01165 31.8621C2.84742 30.6367 4.16333 29.9038 5.91406 29.9038H7.17498C7.39462 28.3754 7.62667 27.028 8.10771 25.7573C8.62925 24.3796 9.42614 23.1277 10.7325 21.7745C10.5682 21.3727 10.4192 20.9659 10.2771 20.5763L10.2559 20.518C10.0386 19.9221 9.83527 19.3645 9.59924 18.842C9.11185 17.7631 8.55423 16.9969 7.70235 16.5869C7.10708 16.3005 6.85814 15.6919 6.93714 15.1531C7.01745 14.6054 7.44723 14.081 8.1294 14.0059C10.8714 13.7021 13.8947 14.4665 17.9214 16.0755ZM10.1426 15.972C10.7016 16.5919 11.1024 17.3114 11.4219 18.0186C11.6895 18.6111 11.9159 19.2321 12.1258 19.808C12.1359 19.8358 12.146 19.8634 12.1561 19.891C12.38 20.5051 12.5872 21.0654 12.8267 21.5736L13.1323 22.2222L12.616 22.7198C11.1787 24.1052 10.4379 25.2508 9.97817 26.4654C9.50337 27.7196 9.30639 29.0934 9.03447 31.042L8.91421 31.9038H5.91406C4.7948 31.9038 4.1107 32.334 3.66397 32.989C3.17937 33.6996 2.91406 34.7718 2.91406 36.0998V39.7068C2.91406 41.0348 3.17937 42.1074 3.66404 42.8182C4.11085 43.4736 4.79497 43.9038 5.91406 43.9038H7.94069L8.17273 44.5787C10.9469 52.6472 20.8468 57.2188 31.6641 57.2188C38.1753 57.2188 43.7558 55.3429 47.6879 52.1357C51.6044 48.941 53.9311 44.3937 53.9311 38.9038C53.9311 37.8565 53.8843 36.8431 53.7975 35.8597C51.6126 35.5521 49.9301 33.6745 49.9301 31.4038C49.9301 29.8648 50.7031 28.5144 51.8756 27.7053C50.1384 23.5979 47.1829 20.4221 43.4991 18.2575C42.8325 19.5384 41.9544 20.6935 40.9002 21.6688L40.3811 22.1491L39.7553 21.8198C35.4119 19.5339 30.1076 19.7417 25.933 22.4269L25.3385 22.8093L24.7797 22.3764C23.0389 21.028 21.675 19.2296 20.841 17.1613C19.7994 17.5029 18.9129 17.8237 18.3075 18.0766L17.9274 18.2353L17.5458 18.0803C14.404 16.8043 12.0806 16.1219 10.1426 15.972Z",fill:t,fillRule:"evenodd"}),(0,l.jsx)("path",{clipRule:"evenodd",d:"M15.4219 27.9023C14.5939 27.9023 13.9219 28.5739 13.9219 29.4023C13.9219 30.2301 14.5942 30.9023 15.4219 30.9023C16.2503 30.9023 16.9219 30.2303 16.9219 29.4023C16.9219 28.5736 16.2506 27.9023 15.4219 27.9023ZM11.9219 29.4023C11.9219 27.4688 13.4899 25.9023 15.4219 25.9023C17.3552 25.9023 18.9219 27.4691 18.9219 29.4023C18.9219 31.3344 17.3554 32.9023 15.4219 32.9023C13.4896 32.9023 11.9219 31.3346 11.9219 29.4023Z",fill:t,fillRule:"evenodd"}),(0,l.jsx)("path",{clipRule:"evenodd",d:"M59.9297 31.9023C60.4819 31.9023 60.9297 32.3501 60.9297 32.9023C60.9297 36.2174 58.2462 38.9023 54.9307 38.9023C54.3784 38.9023 53.9307 38.4546 53.9307 37.9023C53.9307 37.3501 54.3784 36.9023 54.9307 36.9023C57.1411 36.9023 58.9297 35.1133 58.9297 32.9023C58.9297 32.3501 59.3774 31.9023 59.9297 31.9023Z",fill:t,fillRule:"evenodd"}),(0,l.jsx)("path",{clipRule:"evenodd",d:"M53.9307 27.9023C53.9307 27.3501 54.3784 26.9023 54.9307 26.9023C58.2461 26.9023 60.9297 29.5862 60.9297 32.9023C60.9297 33.4546 60.4819 33.9023 59.9297 33.9023C59.3774 33.9023 58.9297 33.4546 58.9297 32.9023C58.9297 30.6905 57.1412 28.9023 54.9307 28.9023C54.3784 28.9023 53.9307 28.4546 53.9307 27.9023Z",fill:t,fillRule:"evenodd"}
1),(0,l.jsx)("path",{clipRule:"evenodd",d:"M54.4297 28.9023C53.049 28.9023 51.9297 30.0216 51.9297 31.4023C51.9297 32.7831 53.049 33.9023 54.4297 33.9023C55.8108 33.9023 56.9307 32.7827 56.9307 31.4023C56.9307 30.022 55.8108 28.9023 54.4297 28.9023ZM49.9297 31.4023C49.9297 28.9171 51.9444 26.9023 54.4297 26.9023C56.9146 26.9023 58.9307 28.9167 58.9307 31.4023C58.9307 33.888 56.9146 35.9023 54.4297 35.9023C51.9444 35.9023 49.9297 33.8876 49.9297 31.4023Z",fill:t,fillRule:"evenodd"}),(0,l.jsx)("path",{clipRule:"evenodd",d:"M57.4925 24.9889C57.9966 24.7632 58.5882 24.9889 58.8139 25.4929C59.6091 27.2686 59.662 29.3691 58.7838 31.2793C58.5532 31.7811 57.9594 32.0009 57.4576 31.7702C56.9558 31.5395 56.736 30.9457 56.9667 30.4439C57.5945 29.0781 57.5574 27.5806 56.9886 26.3103C56.7629 25.8063 56.9885 25.2147 57.4925 24.9889Z",fill:t,fillRule:"evenodd"}),(0,l.jsx)("path",{clipRule:"evenodd",d:"M43.0847 24.2752C37.7083 18.8979 29.0065 18.8978 23.629 24.2753C23.2385 24.6658 22.6053 24.6658 22.2148 24.2753C21.8242 23.8848 21.8242 23.2516 22.2148 22.8611C28.3733 16.7026 38.3415 16.7025 44.499 22.8611C44.8895 23.2517 44.8895 23.8849 44.4989 24.2754C44.1084 24.6658 43.4752 24.6658 43.0847 24.2752Z",fill:t,fillRule:"evenodd"}),(0,l.jsx)("path",{clipRule:"evenodd",d:"M25.3919 21.586C29.8709 18.705 35.5599 18.482 40.2209 20.935C42.4919 18.834 43.9219 15.838 43.9219 12.5C43.9219 6.149 38.7739 1 32.4219 1C26.0709 1 20.9219 6.149 20.9219 12.5C20.9219 16.2 22.6769 19.483 25.3919 21.586Z",fill:"white",fillRule:"evenodd"}),(0,l.jsx)("path",{clipRule:"evenodd",d:"M19.9219 12.5C19.9219 5.59672 25.5186 0 32.4219 0C39.3262 0 44.9219 5.59677 44.9219 12.5C44.9219 16.1308 43.365 19.3885 40.9 21.669L40.3809 22.1493L39.7552 21.8199C35.4117 19.5341 30.1074 19.7419 25.9329 22.427L25.3383 22.8094L24.7795 22.3766C21.8323 20.0937 19.9219 16.5246 19.9219 12.5ZM32.4219 2C26.6232 2 21.9219 6.70128 21.9219 12.5C21.9219 15.6311 23.2983 18.4365 25.4793 20.3613C29.9442 17.7768 35.3985 17.5588 40.0269 19.7225C41.8197 17.8383 42.9219 15.3007 42.9219 12.5C42.9219 6.70123 38.2215 2 32.4219 2Z",fill:t,fillRule:"evenodd"}),(0,l.jsx)("path",{clipRule:"evenodd",d:"M37.429 17.4816C38.887 16.1326 39.805 14.2096 39.805 12.0666C39.805 7.98859 36.5 4.68359 32.422 4.68359C28.345 4.68359 25.04 7.98859 25.04 12.0666C25.04 14.4416 26.166 16.5496 27.909 17.8996",fill:"white",fillRule:"evenodd"}),(0,l.jsx)("path",{clipRule:"evenodd",d:"M24.04 12.0666C24.04 7.4364 27.7927 3.68359 32.422 3.68359C37.0523 3.68359 40.805 7.43631 40.805 12.0666C40.805 14.5024 39.7601 16.6872 38.1082 18.2156C37.7028 18.5907 37.0701 18.5661 36.695 18.1607C36.32 17.7553 36.3445 17.1227 36.7499 16.7476C38.014 15.578 38.805 13.9168 38.805 12.0666C38.805 8.54088 35.9478 5.68359 32.422 5.68359C28.8974 5.68359 26.04 8.54079 26.04 12.0666C26.04 14.1173 27.0108 15.939 28.5214 17.109C28.958 17.4472 29.0378 18.0753 28.6996 18.5119C28.3614 18.9486 27.7333 19.0284 27.2967 18.6902C25.3213 17.1602 24.04 14.7659 24.04 12.0666Z",fill:t,fillRule:"evenodd"}),(0,l.jsx)("path",{clipRule:"evenodd",d:"M50.6493 50.6445C48.2353 53.4345 44.9113 55.5555 40.9473 56.8315L41.2433 57.8165C41.4533 58.5185 42.0993 58.9985 42.8313 58.9985H48.8483C51.1663 58.9985 52.7883 56.7065 52.0173 54.5195L50.6493 50.6445Z",fill:"white",fillRule:"evenodd"}),(0,l.jsx)("path",{clipRule:"evenodd",d:"M51.0189 48.6914L52.9599 54.1894C53.9602 57.0267 51.8561 60.0013 48.848 60.0013H42.831C41.6581 60.0013 40.6222 59.2323 40.2851 58.1067C40.2851 58.1064 40.2852 58.1069 40.2851 58.1067L39.707 56.1829L40.6405 55.8824C44.4529 54.6553 47.6133 52.6275 49.8927 49.993L51.0189 48.6914ZM42.1817 57.4685L42.201 57.5327C42.2842 57.8107 42.5401 58.0013 42.831 58.0013H48.848C50.4757 58.0013 51.6154 56.3919 51.074 54.8552C51.0739 54.8551 51.074 54.8554 51.074 54.8552L50.251 52.524C48.0567 54.6564 45.3177 56.3297 42.1817 57.4685Z",fill:t,fillRule:"evenodd"}),(0,l.jsx)("path",{clipRule:"evenodd",d:"M10.8783 50.7568L9.26432 54.7908C8.45832 56.8068 9.94332 58.9998 12.1143 58.9998H18.8543C19.2933 58.9998 19.6883 58.7328 19.8513 58.3248L20.5763 56.5108C16.7473 55.2588 13.3733 53.3348 10.8783 50.7568Z",fill:"white",fillRule:"evenodd"}),(0,l.jsx)("path",{clipRule:"evenodd",d:"M10.5233 48.9521L11.5969 50.0614C13.9537 52.4966 17.1744 54.3464 20.8871 55.5604L21.9007 55.8918L20.78 58.6959C20.7799 58.6959 20.78 58.6958 20.78 58.6959C20.4649 59.4843 19.7017 59.9999 18.8543 59.9999H12.1143C9.2359 59.9999 7.2672 57.0925 8.33579 54.4196L10.5233 48.9521ZM11.2578 52.5005L10.1929 55.1621C10.1928 55.1622 10.1929 55.162 10.1929 55.1621C9.64967 56.5212 10.6508 57.9999 12.1143 57.9999H18.8543C18.885 57.9999 18.9117 57.9814 18.9227 57.9539L19.2586 57.1133C16.2362 56.0107 13.4936 54.4754 11.2578 52.5005Z",fill:t,fillRule:"evenodd"}),(0,l.jsx)("path",{clipRule:"evenodd",d:"M19.2909 51.575C19.5144 51.07 20.105 50.8418 20.61 51.0653C24.177 52.6439 27.9465 53.4256 32.8363 53.0034C33.3866 52.9559 33.8711 53.3635 33.9186 53.9137C33.9661 54.464 33.5586 54.9485 33.0083 54.996C27.7742 55.4479 23.6677 54.6056 19.8006 52.8942C19.2956 52.6707 19.0674 52.0801 19.2909 51.575Z",fill:t,fillRule:"evenodd"})]})}},80744:(e,a,t)=>{"use strict";t.d(a,{S:()=>s});
1var l=t(37876),i=t(6164);let s=e=>{let{checked:a,containerClass:t,disabled:s=!1,id:n,label:r,labelClass:o="",name:c,onChange:d,readOnly:C,value:m}=e,u=null==n?void 0:n.toString();return(0,l.jsxs)("div",{className:(0,i.F)("checkbox",{["".concat(t)]:!!t}),children:[(0,l.jsx)("input",{checked:a,className:(0,i.F)("before:!h-[12px] before:!w-[6px]",{checkbox__disabled:s}),disabled:s,id:u,name:c,onChange:d,readOnly:C,type:"checkbox",value:m}),(0,l.jsx)("label",{className:o||"label-checkbox !text-[17px]",htmlFor:u,id:u,children:r})]})}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=46089)),_N_E=e.O()}]);

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.