PageSourceSearch

https://smartbox-app.pl/static/js/index-CR2q5Ar2.js

js smartbox-app.pl collected 2026-10-02 00:04:08 UTC 19,057 bytes, 1 lines download raw bytes

1import{k as P,l as S,A as x,C as l,P as V,I as z,n as u,o as j,j as e,c as T,h as d,b as m,p as _,q as R,r as B,t as O,v as Q,w as J,x as U,S as p,T as v,_ as r,u as W,y as X,z as Y,D as e1,N as a1,L as s1,e as t1,E as o1,G as A,J as g,K as M,M as i1,O as n1,i as l1,Q as r1,R as c1}from"./index-BSr7ls1f.js";import{I as h1,M as d1}from"./IsCustomEmail-Ts6Z_yhD.js";import{i as L}from"./account-confirmation-C1PxtMEH.js";import{b as f1}from"./activate-account-url-CTQXfLAw.js";import{r as C}from"./recharts-tCXQl-pd.js";import"./pdfjs-BXl3LOEh.js";import"./react-id-swiper-D3i2O4Xz.js";import"./react-moveable-DdmZB1CI.js";import"./isLength-CCLb_-gp.js";class b extends Error{constructor(s,t){super(String(s)),this.errorCode=s,this.payload=t,this.name="LoginMutationError"}}const p1=()=>{const a=P();return S({mutationKey:["login"],mutationFn:async s=>{const t=await new Promise((i,o)=>{x.callFetch("post",`auth/login${l.isNativePlatform()?"?source=mobile":""}`,n=>i(n),n=>o(new b(n.error_code,n.payload)),s,void 0,!0)});return t&&l.isNativePlatform()&&await V.set({key:"smst_token",value:t.accessToken}),t},onSuccess:()=>{a.invalidateQueries({queryKey:["my-details"]})}})},I=()=>{const a=P();return S({mutationKey:["social-login"],mutationFn:async s=>{const t=await x.callFetch("post","auth/social-login",null,null,s);return t&&l.isNativePlatform()&&await V.set({key:"smst_token",value:t.accessToken}),t},onSuccess:()=>{a.invalidateQueries({queryKey:["my-details"]})}})};var u1=Object.defineProperty,N=(a,s,t,i)=>{for(var o=void 0,n=a.length-1,f;n>=0;n--)(f=a[n])&&(o=f(s,t,o)||o);return o&&u1(s,t,o),o};class y{email;pwd}N([h1({message:u.incorrect_email}),z({message:u.field_required})],y.prototype,"email");N([z({message:u.field_required}),d1(8,{message:u.min_chars(8)})],y.prototype,"pwd");const m1=d(m)({backgroundColor:"#4267b2",color:_("#4267b2"),"&:hover":{backgroundColor:R(.2,"#4267b2"),color:_("#4267b2")}}),x1=()=>{const{tenant:a}=j(),{mutate:s,isPending:t}=I();if(!a||!["testowa","sbox","aplikacja","citybox24","superbox","moibox","rentbox","tyskiemagazyny","kielceboxy","jumbostorage","twojemagazyny24","hdboxpl","tubox","mojschowek","boxymagazynowe","easybox","mojmagazyn","megabox","krakbox","przechowajto","szuflandia","wlasnybox","nidobox","biastorage","twojbox","osiedle","s3box","test"].includes(a.identifier))return null;const i=async()=>{if(l.isNativePlatform()){const o=await B.login({provider:"facebook",options:{permissions:["email","public_profile"],limitedLogin:!0}});o.result.accessToken?.token?s({provider:"facebook",token:o.result.accessToken?.token,tenant:a.identifier}):o.result.idToken&&s({provider:"facebook-jwt",token:o.result.idToken,tenant:a.identifier})}else window.open(`${x.url}auth/facebook?tenantId=${a.identifier}`)};return e.jsxs(e.Fragment,{children:[t?e.jsx(T,{halfTransparent:!0,overlay:!0}):null,e.jsx(m1,{type:"button",size:"large",disabled:t,iconLeft:e.jsx("span",{className:"fa fa-facebook"}),onClick:i,text:"application.sign_in_fb"})]})},g1=d(m)({backgroundColor:"#fff",color:"#000","&:hover":{color:"#000",backgroundColor:O(.2,"#fff")}}),v1=()=>{const{tenant:a}=j(),{mutate:s,isPending:t}=I();if(!a||!["testowa","sbox","aplikacja","citybox24","superbox","moibox","rentbox","tyskiemagazyny","kielceboxy","jumbostorage","twojemagazyny24","hdboxpl","tubox","mojschowek","boxymagazynowe","easybox","mojmagazyn","megabox","krakbox","przechowajto","szuflandia","wlasnybox","nidobox","biastorage","twojbox","osiedle","s3box","test"].includes(a.identifier))return null;const i=async()=>{if(l.isNativePlatform()){const o=await B.login({provider:"google",options:{scopes:["email"]}});"idToken"in o.result&&o.result.idToken&&s({provider:"google",token:o.result.idToken,tenant:a.identifier})}else window.open(`${x.url}auth/google?tenantId=${a.identifier}`)};return e.jsxs(e.Fragment,{children:[t?e.jsx(T,{halfTransparent:!0,overlay:!0}):null,e.jsx(g1,{type:"button",size:"large",disabled:t,disabled:t,iconLeft:e.jsx("span",{className:"fa fa-google"}),onClick:i,text:"application.sign_in_google"})]})},b1=({height:a=40})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 119.66407 40",height:a,style:{width:"auto",display:"block"}
1,"aria-hidden":!0,children:[e.jsx("title",{children:"Download_on_the_App_Store_Badge_PL_RGB_blk_100317"}),e.jsxs("g",{children:[e.jsxs("g",{children:[e.jsxs("g",{children:[e.jsx("path",{d:"M110.13477,0H9.53468c-.3667,0-.729,0-1.09473.002-.30615.002-.60986.00781-.91895.0127A13.21476,13.21476,0,0,0,5.5171.19141a6.66509,6.66509,0,0,0-1.90088.627A6.43779,6.43779,0,0,0,1.99757,1.99707,6.25844,6.25844,0,0,0,.81935,3.61816a6.60119,6.60119,0,0,0-.625,1.90332,12.993,12.993,0,0,0-.1792,2.002C.00587,7.83008.00489,8.1377,0,8.44434V31.5586c.00489.3105.00587.6113.01515.9219a12.99232,12.99232,0,0,0,.1792,2.0019,6.58756,6.58756,0,0,0,.625,1.9043A6.20778,6.20778,0,0,0,1.99757,38.001a6.27445,6.27445,0,0,0,1.61865,1.1787,6.70082,6.70082,0,0,0,1.90088.6308,13.45514,13.45514,0,0,0,2.0039.1768c.30909.0068.6128.0107.91895.0107C8.80567,40,9.168,40,9.53468,40H110.13477c.3594,0,.7246,0,1.084-.002.3047,0,.6172-.0039.9219-.0107a13.279,13.279,0,0,0,2-.1768,6.80432,6.80432,0,0,0,1.9082-.6308,6.27742,6.27742,0,0,0,1.6172-1.1787,6.39482,6.39482,0,0,0,1.1816-1.6143,6.60413,6.60413,0,0,0,.6191-1.9043,13.50643,13.50643,0,0,0,.1856-2.0019c.0039-.3106.0039-.6114.0039-.9219.0078-.3633.0078-.7246.0078-1.0938V9.53613c0-.36621,0-.72949-.0078-1.09179,0-.30664,0-.61426-.0039-.9209a13.5071,13.5071,0,0,0-.1856-2.002,6.6177,6.6177,0,0,0-.6191-1.90332,6.46619,6.46619,0,0,0-2.7988-2.7998,6.76754,6.76754,0,0,0-1.9082-.627,13.04394,13.04394,0,0,0-2-.17676c-.3047-.00488-.6172-.01074-.9219-.01269-.3594-.002-.7246-.002-1.084-.002Z",fill:"#a6a6a6"}),e.jsx("path",{d:"M8.44483,39.125c-.30468,0-.602-.0039-.90429-.0107a12.68714,12.68714,0,0,1-1.86914-.1631,5.88381,5.88381,0,0,1-1.65674-.5479,5.40573,5.40573,0,0,1-1.397-1.0166,5.32082,5.32082,0,0,1-1.02051-1.3965,5.72186,5.72186,0,0,1-.543-1.6572,12.41351,12.41351,0,0,1-.1665-1.875c-.00634-.2109-.01464-.9131-.01464-.9131V8.44434S.88185,7.75293.8877,7.5498a12.37039,12.37039,0,0,1,.16553-1.87207,5.7555,5.7555,0,0,1,.54346-1.6621A5.37349,5.37349,0,0,1,2.61183,2.61768,5.56543,5.56543,0,0,1,4.01417,1.59521a5.82309,5.82309,0,0,1,1.65332-.54394A12.58589,12.58589,0,0,1,7.543.88721L8.44532.875H111.21387l.9131.0127a12.38493,12.38493,0,0,1,1.8584.16259,5.93833,5.93833,0,0,1,1.6709.54785,5.59374,5.59374,0,0,1,2.415,2.41993,5.76267,5.76267,0,0,1,.5352,1.64892,12.995,12.995,0,0,1,.1738,1.88721c.0029.2832.0029.5874.0029.89014.0079.375.0079.73193.0079,1.09179V30.4648c0,.3633,0,.7178-.0079,1.0752,0,.3252,0,.6231-.0039.9297a12.73126,12.73126,0,0,1-.1709,1.8535,5.739,5.739,0,0,1-.54,1.67,5.48029,5.48029,0,0,1-1.0156,1.3857,5.4129,5.4129,0,0,1-1.3994,1.0225,5.86168,5.86168,0,0,1-1.668.5498,12.54218,12.54218,0,0,1-1.8692.1631c-.2929.0068-.5996.0107-.8974.0107l-1.084.002Z"})]}),e.jsxs("g",{id:"_Group_","data-name":"<Group>",children:[e.jsx("g",{id:"_Group_2","data-name":"<Group>",children:e.jsxs("g",{id:"_Group_3","data-name":"<Group>",children:[e.jsx("path",{id:"_Path_","data-name":"<Path>",d:"M24.76888,20.30068a4.94881,4.94881,0,0,1,2.35656-4.15206,5.06566,5.06566,0,0,0-3.99116-2.15768c-1.67924-.17626-3.30719,1.00483-4.1629,1.00483-.87227,0-2.18977-.98733-3.6085-.95814a5.31529,5.31529,0,0,0-4.47292,2.72787c-1.934,3.34842-.49141,8.26947,1.3612,10.97608.9269,1.32535,2.01018,2.8058,3.42763,2.7533,1.38706-.05753,1.9051-.88448,3.5794-.88448,1.65876,0,2.14479.88448,3.591.8511,1.48838-.02416,2.42613-1.33124,3.32051-2.66914a10.962,10.962,0,0,0,1.51842-3.09251A4.78205,4.78205,0,0,1,24.76888,20.30068Z",fill:"#fff"}),e.jsx("path",{id:"_Path_2","data-name":"<Path>",d:"M22.03725,12.21089a4.87248,4.87248,0,0,0,1.11452-3.49062,4.95746,4.95746,0,0,0-3.20758,1.65961,4.63634,4.63634,0,0,0-1.14371,3.36139A4.09905,4.09905,0,0,0,22.03725,12.21089Z",fill:"#fff"})]})}),e.jsxs("g",{children:[e.jsx("path",{d:"M42.30227,27.13965h-4.7334l-1.13672,3.35645H34.42727l4.4834-12.418h2.083l4.4834,12.418H43.438ZM38.0591,25.59082h3.752l-1.84961-5.44727h-.05176Z",fill:"#fff"}),e.jsx("path",{d:"M55.15969,25.96973c0,2.81348-1.50586,4.62109-3.77832,4.62109a3.0693,3.0693,0,0,1-2.84863-1.584h-.043v4.48438h-1.8584V21.44238H48.4302v1.50586h.03418a3.21162,3.21162,0,0,1,2.88281-1.60059C53.645,21.34766,55.15969,23.16406,55.15969,25.96973Zm-1.91016,0c0-1.833-.94727-3.03809-2.39258-3.03809-1.41992,0-2.375,1.23047-2.375,3.03809,0,1.82422.95508,3.0459,2.375,3.0459C52.30227,29.01563,53.24953,27.81934,53.24953,25.96973Z",fill:"#fff"}),e.jsx("path",{d:"M65.12453,25.96973c0,2.81348-1.50586,4.62109-3.77832,4.62109a3.0693,3.0693,0,0,1-2.84863-1.584h-.043v4.48438h-1.8584V21.44238H58.395v1.50586h.03418A3.21162,3.21162,0,0,1,61.312,21.34766C63.60988,21.34766,65.12453,23.16406,65.12453,25.96973Zm-1.91016,0c0-1.833-.94727-3.03809-2.39258-3.03809-1.41992,0-2.375,1.23047-2.375,3.03809,0,1.82422.95508,3.0459,2.375,3.0459C62.26711,29.01563,63.21438,27.81934,63.21438,25.96973Z",fill:"#fff"}),e.jsx("path",{d:"M71.71047,27.03613c.1377,1.23145,1.334,2.04,2.96875,2.04,1.56641,0,2.69336-.80859,2.69336-1.9
11895,0-.96387-.67969-1.541-2.28906-1.93652l-1.60937-.3877c-2.28027-.55078-3.33887-1.61719-3.33887-3.34766,0-2.14258,1.86719-3.61426,4.51855-3.61426,2.624,0,4.42285,1.47168,4.4834,3.61426h-1.876c-.1123-1.23926-1.13672-1.9873-2.63379-1.9873s-2.52148.75684-2.52148,1.8584c0,.87793.6543,1.39453,2.25488,1.79l1.36816.33594c2.54785.60254,3.60645,1.626,3.60645,3.44238,0,2.32324-1.85059,3.77832-4.79395,3.77832-2.75391,0-4.61328-1.4209-4.7334-3.667Z",fill:"#fff"}),e.jsx("path",{d:"M83.34621,19.2998v2.14258h1.72168v1.47168H83.34621v4.99121c0,.77539.34473,1.13672,1.10156,1.13672a5.80752,5.80752,0,0,0,.61133-.043v1.46289a5.10351,5.10351,0,0,1-1.03223.08594c-1.833,0-2.54785-.68848-2.54785-2.44434V22.91406H80.16262V21.44238H81.479V19.2998Z",fill:"#fff"}),e.jsx("path",{d:"M86.065,25.96973c0-2.84863,1.67773-4.63867,4.29395-4.63867,2.625,0,4.29492,1.79,4.29492,4.63867,0,2.85645-1.66113,4.63867-4.29492,4.63867C87.72609,30.6084,86.065,28.82617,86.065,25.96973Zm6.69531,0c0-1.9541-.89551-3.10742-2.40137-3.10742s-2.40039,1.16211-2.40039,3.10742c0,1.96191.89453,3.10645,2.40039,3.10645S92.76027,27.93164,92.76027,25.96973Z",fill:"#fff"}),e.jsx("path",{d:"M96.18606,21.44238h1.77246v1.541h.043a2.1594,2.1594,0,0,1,2.17773-1.63574,2.86616,2.86616,0,0,1,.63672.06934v1.73828a2.59794,2.59794,0,0,0-.835-.1123,1.87264,1.87264,0,0,0-1.93652,2.083v5.37012h-1.8584Z",fill:"#fff"}),e.jsx("path",{d:"M109.3843,27.83691c-.25,1.64355-1.85059,2.77148-3.89844,2.77148-2.63379,0-4.26855-1.76465-4.26855-4.5957,0-2.83984,1.64355-4.68164,4.19043-4.68164,2.50488,0,4.08008,1.7207,4.08008,4.46582v.63672h-6.39453v.1123a2.358,2.358,0,0,0,2.43555,2.56445,2.04834,2.04834,0,0,0,2.09082-1.27344Zm-6.28223-2.70215h4.52637a2.1773,2.1773,0,0,0-2.2207-2.29785A2.292,2.292,0,0,0,103.10207,25.13477Z",fill:"#fff"})]})]})]}),e.jsx("g",{id:"_Group_4","data-name":"<Group>",children:e.jsxs("g",{children:[e.jsx("path",{d:"M38.00783,8.731a1.88248,1.88248,0,0,1,1.96777,1.98877A1.89587,1.89587,0,0,1,37.97854,12.688H36.59768v2.00977h-.92676V8.731Zm-1.41016,3.14258h1.166c.79785,0,1.26563-.41357,1.26563-1.15381,0-.75684-.45117-1.17041-1.26562-1.17041h-1.166Z",fill:"#fff"}),e.jsx("path",{d:"M40.84182,12.44434a2.13323,2.13323,0,1,1,4.24707,0,2.13358,2.13358,0,1,1-4.24707,0Zm3.333,0c0-.97607-.43848-1.54687-1.208-1.54687-.77246,0-1.207.5708-1.207,1.54688,0,.98389.43457,1.55029,1.207,1.55029C43.73635,13.99463,44.17482,13.42432,44.17482,12.44434Z",fill:"#fff"}),e.jsx("path",{d:"M47.24416,13.98633h-.06641v.71143h-.85547V8.437H47.211v2.47314h.07031a1.49512,1.49512,0,0,1,1.38574-.79c1.14063,0,1.86035.89307,1.86035,2.32422,0,1.42627-.72363,2.32764-1.86035,2.32764A1.55886,1.55886,0,0,1,47.24416,13.98633Zm-.0498-1.53809c.00488.94287.46777,1.52588,1.21582,1.52588.75293,0,1.20313-.57471,1.20313-1.52979,0-.94727-.4502-1.52588-1.20312-1.52588C47.666,10.91846,47.19924,11.50537,47.19436,12.44824Z",fill:"#fff"}),e.jsx("path",{d:"M51.60451,8.86328a.57572.57572,0,1,1,.5752.5415A.54735.54735,0,0,1,51.60451,8.86328Zm.13184,1.33154h.88574v4.50293h-.88574Z",fill:"#fff"}),e.jsx("path",{d:"M57.8633,13.48193a1.828,1.828,0,0,1-1.95117,1.30273,2.04531,2.04531,0,0,1-2.08008-2.32422,2.07685,2.07685,0,0,1,2.07617-2.35254c1.25293,0,2.00879.856,2.00879,2.27V12.688H54.73732v.0498a1.1902,1.1902,0,0,0,1.19922,1.29,1.07934,1.07934,0,0,0,1.07129-.5459Zm-3.126-1.45117h2.27441a1.08647,1.08647,0,0,0-1.1084-1.1665A1.15162,1.15162,0,0,0,54.73732,12.03076Z",fill:"#fff"}),e.jsx("path",{d:"M59.11037,10.19482h.85547v.69043h.06641a1.22092,1.22092,0,0,1,1.21582-.76514,1.86836,1.86836,0,0,1,.39648.03711v.877a2.43442,2.43442,0,0,0-.49609-.05371A1.05507,1.05507,0,0,0,59.999,12.03906v2.65869h-.88867Z",fill:"#fff"}),e.jsx("path",{d:"M62.52346,14.09424,65,11.01758v-.07031h-2.46v-.75244H66.063v.64893L63.63967,13.875v.07031H66.0884v.75244H62.52346Z",fill:"#fff"}),e.jsx("path",{d:"M74.47023,14.69775h-.92187l-.93066-3.31641h-.07031l-.92676,3.31641h-.91309l-1.24121-4.50293h.90137l.80664,3.436h.06641l.92578-3.436h.85254l.92578,3.436h.07031l.80273-3.436h.88867Z",fill:"#fff"})]})})]})]}),j1=({height:a=40})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 239.5 70.9",height:a,style:{width:"auto",display:"block"}
1,"aria-hidden":!0,children:[e.jsx("rect",{x:"0.2",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l5.7-7.6zm7.1 7.6 5.7-7.6v-1.8h-7.5v1.7h5.5l-5.8 7.6v1.8h7.8v-1.7h-5.7z"})]}),y1=d("div")(({theme:a})=>({display:"flex",flexWrap:"wrap",gap:a.spacing*4,justifyContent:"center",alignItems:"center"})),H=d("a")({display:"inline-flex",lineHeight:0});d("img")({height:40,width:"auto"});const k1=({tenant:a})=>{if(l.isNativePlatform())return null;const s=Q();if(!s)return null;const t=s==="android"&&J(a),i=s==="ios"&&U(a),{mobileAppAndroidLink:o,mobileAppIosLink:n}=a;return!t&&!i?null:e.jsxs(p,{align:"center",children:[e.jsx(v,{children:r("auth.mobile_app_heading")}),e.jsxs(y1,{children:[t?e.jsx(H,{href:o,target:"_blank",rel:"noopener noreferrer","aria-label":r("auth.mobile_app_android"),children:e.jsx(j1,{})}):null,i?e.jsx(H,{href:n,target:"_blank",rel:"noopener noreferrer","aria-label":r("auth.mobile_app_ios"),children:e.jsx(b1,{})}):null]})]})},S1=()=>{const a=W(),{tenant:s}=j(),[t,i]=C.useState(!1),{mutate:o,isPending:n}=p1(),f=async()=>{if(!l.isNativePlatform())return!1;const{platform:c}=await c1.getInfo();return c==="ios"},F=async()=>{if(await f()){i(!1);return}i(!0)};C.useEffect(()=>{F()},[]);const{handleSubmit:G,register:k,formState:{errors:w,isValid:E}}=X({mode:"onSubmit",resolver:Y(new y)}),$=c=>{if(!E||!s)return;const D=c.email.trim(),K=L(s);o({...c,email:D},{onError:h=>{if(h instanceof b&&h.errorCode===n1.FirstActiveUser&&K){const Z=h.payload;Z?.activationToken&&l1.push(f1(Z.activationToken));return}h instanceof b&&a(r1(h.errorCode))}})};if(!s)return null;const q=L(s);return e.jsx(e1,{bg:!0,children:e.jsxs(a1,{children:[e.jsx(s1,{}),e.jsxs(t1,{children:[e.jsxs(o1,{onSubmit:G($),children:[e.jsxs(p,{children:[e.jsx(A,{label:"auth.email",placeholder:"auth.email_placeholder",error:w.email?.message,...k("email")}),e.jsx(A,{label:"auth.password",type:"password",placeholder:"auth.password_placeholder",error:w.pwd?.message,...k("pwd")})]}),e.jsxs(p,{variant:"transparent",align:"center",children:[e.jsx(m,{text:"application.login",size:"large",type:"submit",disabled:n}),t?e.jsxs(e.Fragment,{children:[e.jsx(x1,{}),e.jsx(v1,{})]}):null,e.jsx(m,{variant:"secondary",text:"application.register",size:"large",to:g(s.slides.length>0?"/welcome":"/register")})]})]}),e.jsx(k1,{tenant:s}),e.jsxs(p,{align:"center",children:[e.jsxs(v,{children:[r("application.forgotPass")," ",e.jsx(M,{to:g("/restore-pass"),children:r("application.clickHere")})]}),q?null:e.jsx(v,{children:e.jsx(M,{to:g("/resend-activation-link"),children:r("application.noActivationEmail")})}),e.jsx(i1,{variant:"secondary"})]})]})]})})};export{S1 as Login};

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.