PageSourceSearch

https://www.delaval.com/assets/EditPen-BuSPcSrP.js

js delaval.com collected 2026-10-02 03:35:33 UTC 4,371 bytes, 1 lines download raw bytes

1import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{d as t}from"./useMarkets-BtFYuEiQ.js";import{A as n,Bn as r,Fn as i,Ln as a,Tt as o,_n as s,in as c,j as ee,wt as te,yn as l}from"./ui-vendor-DjPL_jpu.js";import{t as u}from"./useTranslation-C-D45Aag.js";import{E as ne,T as re,h as ie,l as d,o as f}from"./index-j8Rgow4h.js";import{t as ae}from"./Close-CqMUbjoX.js";import{t as p}from"./Pen-D6oUskqM.js";var m=a(),h=e(r(),1),g=i(),_=e=>{let r=(0,m.c)(58),{shippingAddressId:i,streetAddress:a,zipCode:l,city:p}=e,{classes:_}=oe(),{t:v}=u(),y=t(se),{data:b,refetch:x}=re(),S=ne(),[C,w]=(0,h.useState)(!1);b?.sapCustomerNumber;let T;bb0:{let e=b?.sapCustomerNumber;if(!i||!e){T=!1;break bb0}T=i===e}let E=T,D;r[0]!==S||r[1]!==y||r[2]!==x?(D=async(e,t)=>{e.stopPropagation();try{await S.mutateAsync(t),await x(),w(!1)}catch{S.error&&y({message:S.error.toString(),type:`error`})}},r[0]=S,r[1]=y,r[2]=x,r[3]=D):D=r[3];let O=D,k;r[4]===Symbol.for(`react.memo_cache_sentinel`)?(k=e=>{e&&typeof e==`object`&&`stopPropagation`in e&&typeof e.stopPropagation==`function`&&e.stopPropagation(),w(!1)},r[4]=k):k=r[4];let ce=k,A;r[5]===Symbol.for(`react.memo_cache_sentinel`)?(A=e=>{e.stopPropagation(),w(!0)},r[5]=A):A=r[5];let le=A,j;r[6]===Symbol.for(`react.memo_cache_sentinel`)?(j={display:`flex`,justifyContent:`space-between`,alignItems:`center`},r[6]=j):j=r[6];let M;r[7]===Symbol.for(`react.memo_cache_sentinel`)?(M={overflow:`hidden`,textOverflow:`ellipsis`},r[7]=M):M=r[7];let N=`${a}, ${l} ${p}`,P;r[8]===N?P=r[9]:(P=(0,g.jsx)(f,{sx:M,textWrap:`nowrap`,children:N}),r[8]=N,r[9]=P);let F;r[10]!==_.removeIcon||r[11]!==E?(F=!E&&(0,g.jsx)(c,{id:`removeIcon`,onClick:e=>{le(e)},className:_.removeIcon,children:(0,g.jsx)(ae,{})}),r[10]=_.removeIcon,r[11]=E,r[12]=F):F=r[12];let I;r[13]!==P||r[14]!==F?(I=(0,g.jsxs)(s,{sx:j,children:[P,F]}),r[13]=P,r[14]=F,r[15]=I):I=r[15];let L;r[16]===v?L=r[17]:(L=v(`account.delete_shipping_address_title`),r[16]=v,r[17]=L);let R;r[18]===L?R=r[19]:(R=(0,g.jsx)(n,{id:`alert-dialog-title`,children:(0,g.jsx)(f,{bold:!0,children:L})}),r[18]=L,r[19]=R);let z;r[20]===v?z=r[21]:(z=v(`account.delete_shipping_address_preamble`),r[20]=v,r[21]=z);let B;r[22]===v?B=r[23]:(B=v(`checkout.add_new_shipping_address_label`),r[22]=v,r[23]=B);let V=`${z} ${B}`,H;r[24]===V?H=r[25]:(H=(0,g.jsx)(f,{children:V}),r[24]=V,r[25]=H);let U;r[26]===S.error?U=r[27]:(U=S.error&&(0,g.jsx)(f,{children:String(S.error)}),r[26]=S.error,r[27]=U);let W;r[28]!==H||r[29]!==U?(W=(0,g.jsxs)(te,{children:[H,U]}),r[28]=H,r[29]=U,r[30]=W):W=r[30];let ue=_.button,G;r[31]===Symbol.for(`react.memo_cache_sentinel`)?(G=()=>w(!1),r[31]=G):G=r[31];let K;r[32]===v?K=r[33]:(K=v(`account.delete_shipping_address_button_cancel`),r[32]=v,r[33]=K);let q;r[34]!==_.button||r[35]!==K?(q=(0,g.jsx)(d,{className:ue,onClick:G,variant:`secondary`,children:K}),r[34]=_.button,r[35]=K,r[36]=q):q=r[36];let J;r[37]!==O||r[38]!==i?(J=e=>{O(e,i)},r[37]=O,r[38]=i,r[39]=J):J=r[39];let Y;r[40]!==S.isPending||r[41]!==v?(Y=S.isPending?(0,g.jsx)(ie,{}):v(`account.delete_shipping_address_button_yes`),r[40]=S.isPending,r[41]=v,r[42]=Y):Y=r[42];let X;r[43]!==_.button||r[44]!==J||r[45]!==Y?(X=(0,g.jsx)(d,{className:_.button,variant:`secondary`,onClick:J,children:Y}),r[43]=_.button,r[44]=J,r[45]=Y,r[46]=X):X=r[46];let Z;r[47]!==q||r[48]!==X?(Z=(0,g.jsxs)(ee,{children:[q,X]}),r[47]=q,r[48]=X,r[49]=Z):Z=r[49];let Q;r[50]!==C||r[51]!==R||r[52]!==W||r[53]!==Z?(Q=(0,g.jsxs)(o,{open:C,onClose:ce,children:[R,W,Z]}),r[50]=C,r[51]=R,r[52]=W,r[53]=Z,r[54]=Q):Q=r[54];let $;return r[55]!==I||r[56]!==Q?($=(0,g.jsxs)(g.Fragment,{children:[I,Q]}),r[55]=I,r[56]=Q,r[57]=$):$=r[57],$},oe=l()(({spacing:e,common:{themeColors:t}})=>({removeIcon:{position:`absolute`,right:8,zIndex:1,padding:e(.5),"&:hover":{backgroundColor:t.lightGray,borderRadius:`50%`}},button:{height:45,width:120}}));function se(e){return e.openSnackbar}var v=e=>{let t=(0,m.c)(7),{onClick:n}=e,{classes:r}=y(),{t:i}=u(),a=r.editButton,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,g.jsx)(p,{}),t[0]=o):o=t[0];let s;t[1]===i?s=t[2]:(s=i(`common.edit`),t[1]=i,t[2]=s);let c;return t[3]!==r.editButton||t[4]!==n||t[5]!==s?(c=(0,g.jsx)(d,{className:a,variant:`text`,startIcon:o,onClick:n,children:s}),t[3]=r.editButton,t[4]=n,t[5]=s,t[6]=c):c=t[6],c},y=l()(({spacing:e})=>({editButton:{paddingLeft:e(5)}}));export{_ as n,v 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.