PageSourceSearch

https://dashboard.route.com/assets/-page-CZaPQOhw.js

js route.com collected 2026-09-24 08:37:59 UTC 2,878 bytes, 12 lines download raw bytes

1import{cq as i,cQ as I,o as v}from"./index-cg8gw9xW.js";import{bH as E,bu as U,ba as z,cc as $,c0 as A,ab as N}from"./index-BKM6dmQa.js";import{J as V,I as H}from"./RouterProvider-CSvsxik1.js";import{d as M,e as Q,b as R,c as q,a as C,S as D}from"./section-YSvWS5QA.js";import{u as B,a as J}from"./tag-input-s0nvh9i7.js";import{S as L}from"./general-CagrlsW7.js";import{d as O,S as k}from"./shipping-form-Ff50U4Fz.js";import{t as w,f as G}from"./utils-DMpKQ1_3.js";import"./switch-25HiRgYQ.js";import"./calendar-Dd_sZ_L1.js";import"./button-group-ppkIJAEV.js";import"./shield-check-D_utsfQI.js";import"./alert-CESsYHJT.js";import"./select-hqXHF7N5.js";import"./chevron-up-H8N2vdlb.js";import"./tag-twPQ3Yzx.js";const K=E(U`
2  mutation UpdateShippingZone($shippingZoneInput: AdminShippingZoneUpdateType!) {
3    updateShippingZone(shippingZoneInput: $shippingZoneInput) {
4      userErrors {
5        message
6      }
7      shippingZones {
8        name
9      }
10    }
11  }
12`),ge=()=>{const e=z.c(30),{hasPendingTag:F,reportPendingTag:b}=B();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={from:"/_authenticated/settings/_layout/shipping/$id/"},e[0]=c):c=e[0];const{id:n}=V(c),x=H(),s=$();let l;if(e[1]!==n||e[2]!==s.data?.shippingZones){const Z=s.data?.shippingZones.find(T=>T.id===Number(n));l=Z?w(Z):void 0,e[1]=n,e[2]=s.data?.shippingZones,e[3]=l}else l=e[3];const j=l;let u;e[4]!==j?(u={defaultValues:O,values:j},e[4]=j,e[5]=u):u=e[5];const t=A(u);let d;e[6]!==x||e[7]!==s?(d={onSuccess:()=>{I.success("Shipping zone updated"),x({to:"/settings/shipping"}),s.refetch()},onError:W},e[6]=x,e[7]=s,e[8]=d):d=e[8];const y=K(d);let g;e[9]!==n||e[10]!==y?(g=Z=>y.mutateAsync({shippingZoneInput:{id:Number(n),input:G(Z)}}),e[9]=n,e[10]=y,e[11]=g):g=e[11];const _=g;let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=i.jsxs(M,{className:"flex-1",children:[i.jsx(Q,{children:"Edit Shipping Zone"}),i.jsx(R,{children:"Update shipping zone settings."})]}),e[12]=h):h=e[12];const P=t.formState.isSubmitting||!t.formState.isDirty&&!F;let o;e[13]!==P?(o=i.jsxs(q,{children:[h,i.jsx(C,{children:i.jsx(v,{form:"edit-shipping-zone-form",type:"submit",disabled:P,children:"Update Shipping Zone"})})]}),e[13]=P,e[14]=o):o=e[14];let p;e[15]!==t||e[16]!==_?(p=t.handleSubmit(_),e[15]=t,e[16]=_,e[17]=p):p=e[17];let f;e[18]===Symbol.for("react.memo_cache_sentinel")?(f=i.jsx(k,{}),e[18]=f):f=e[18];let a;e[19]!==b?(a=i.jsx(J,{value:b,children:f}),e[19]=b,e[20]=a):a=e[20];let r;e[21]!==a||e[22]!==p?(r=i.jsx("form",{onSubmit:p,id:"edit-shipping-zone-form",children:a}),e[21]=a,e[22]=p,e[23]=r):r=e[23];let m;e[24]!==r||e[25]!==o?(m=i.jsxs(D,{children:[o,r]}),e[24]=r,e[25]=o,e[26]=m):m=e[26];let S;return e[27]!==t||e[28]!==m?(S=i.jsx(N,{...t,children:m}),e[27]=t,e[28]=m,e[29]=S):S=e[29],S};function W(){I.error(`Failed to update shipping zone. Contact ${L}`)}export{ge as ShippingPage};

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.