1import{j as t}from"./index-DYSxZb0c.js";import{D as c,a as d,b as p}from"./DialogTitle-BdTAtlsk.js";import{D as u,a as f}from"./DialogContentText-VbR22gKF.js";import{a}from"./Button-cOKPiu6O.js";import{r as m}from"./components-t_mF0GA0.js";/** 2 * @remix-run/server-runtime v2.17.4 3 * 4 * Copyright (c) Remix Software Inc. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE.md file in the root directory of this source tree. 8 * 9 * @license MIT 10 */const l=(e,r=302)=>m(e,r);function g({watchOfferId:e,open:r,handleClose:n}){return t.jsxs(c,{open:r,onClose:()=>n(),PaperProps:{component:"form",onSubmit:async s=>{s.preventDefault();try{const o=await fetch(`/api/watch-offers/${e}`,{method:"DELETE"});if(o.ok)n({isSuccess:!0});else{const i=await o.json();n({isSuccess:!1,error:i.errorMessage||"Chyba pÅi mazánà sledovánà nabÃdky"})}}catch{n({isSuccess:!1,error:"Chyba pÅi mazánà sledovánà nabÃdky"})}}},children:[t.jsx(d,{children:"Opravdu si pÅejete odstranit sledovánà této nabÃdky?"}),t.jsx(p,{sx:{display:"flex",flexDirection:"column",gap:2,width:"100%"},children:t.jsxs(u,{children:["Pokud tuto nabÃdku pÅestanete sledovat, nedostanete žádné upozornÄnà pokud se zmÄnà ",t.jsx("b",{children:"cena"})," této nabÃdky nebo bude tato nabÃdka ",t.jsx("b",{children:"odstranÄna"}),"."]})}),t.jsxs(f,{sx:{pb:3,px:3},children:[t.jsx(a,{onClick:()=>n(),children:"ZavÅÃt"}),t.jsx(a,{variant:"contained",type:"submit",children:"Odstranit"})]})]})}function k(e){const{pathname:r,search:n}=new URL(e.url);return r+n}function y(e,r){if(e.status===401)throw l(`/prihlasit?redirectAfter=${encodeURIComponent(r)}`)}export{g as R,k as g,y as t};
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.