PageSourceSearch

https://app.withordersync.com/_next/static/chunks/pages/settings/locations-d6b3dbefa0622743.js

js withordersync.com collected 2026-10-07 00:00:49 UTC 18,490 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6382],{29470:(e,t,s)=>{"use strict";s.d(t,{C1:()=>w,bL:()=>b});var r=s(14232),l=s(10714),n=s(91844),a=s(33716),i=s(58162),d=s(61676),c=s(87552),o=s(96822),u=s(57797),h=s(37876),x="Checkbox",[m,j]=(0,n.A)(x),[f,p]=m(x);function y(e){let{__scopeCheckbox:t,checked:s,children:l,defaultChecked:n,disabled:a,form:d,name:c,onCheckedChange:o,required:u,value:m="on",internal_do_not_use_render:j}=e,[p,y]=(0,i.i)({prop:s,defaultProp:n??!1,onChange:o,caller:x}),[_,g]=r.useState(null),[b,v]=r.useState(null),w=r.useRef(!1),N=!_||!!d||!!_.closest("form"),k={checked:p,disabled:a,setChecked:y,control:_,setControl:g,name:c,form:d,value:m,hasConsumerStoppedPropagationRef:w,required:u,defaultChecked:!C(n)&&n,isFormControl:N,bubbleInput:b,setBubbleInput:v};return(0,h.jsx)(f,{scope:t,...k,children:"function"==typeof j?j(k):l})}var _="CheckboxTrigger",g=r.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:s,...n},i)=>{let{control:d,value:c,disabled:o,checked:x,required:m,setControl:j,setChecked:f,hasConsumerStoppedPropagationRef:y,isFormControl:g,bubbleInput:b}=p(_,e),v=(0,l.s)(i,j),w=r.useRef(x);return r.useEffect(()=>{let e=d?.form;if(e){let t=()=>f(w.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[d,f]),(0,h.jsx)(u.sG.button,{type:"button",role:"checkbox","aria-checked":C(x)?"mixed":x,"aria-required":m,"data-state":S(x),"data-disabled":o?"":void 0,disabled:o,value:c,...n,ref:v,onKeyDown:(0,a.mK)(t,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,a.mK)(s,e=>{f(e=>!!C(e)||!e),b&&g&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})})});g.displayName=_;var b=r.forwardRef((e,t)=>{let{__scopeCheckbox:s,name:r,checked:l,defaultChecked:n,required:a,disabled:i,value:d,onCheckedChange:c,form:o,...u}=e;return(0,h.jsx)(y,{__scopeCheckbox:s,checked:l,defaultChecked:n,disabled:i,required:a,onCheckedChange:c,name:r,form:o,value:d,internal_do_not_use_render:({isFormControl:e})=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(g,{...u,ref:t,__scopeCheckbox:s}),e&&(0,h.jsx)(k,{__scopeCheckbox:s})]})})});b.displayName=x;var v="CheckboxIndicator",w=r.forwardRef((e,t)=>{let{__scopeCheckbox:s,forceMount:r,...l}=e,n=p(v,s);return(0,h.jsx)(o.C,{present:r||C(n.checked)||!0===n.checked,children:(0,h.jsx)(u.sG.span,{"data-state":S(n.checked),"data-disabled":n.disabled?"":void 0,...l,ref:t,style:{pointerEvents:"none",...e.style}})})});w.displayName=v;var N="CheckboxBubbleInput",k=r.forwardRef(({__scopeCheckbox:e,...t},s)=>{let{control:n,hasConsumerStoppedPropagationRef:a,checked:i,defaultChecked:o,required:x,disabled:m,name:j,value:f,form:y,bubbleInput:_,setBubbleInput:g}=p(N,e),b=(0,l.s)(s,g),v=(0,d.Z)(i),w=(0,c.X)(n);r.useEffect(()=>{if(!_)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!a.current;if(v!==i&&e){let s=new Event("click",{bubbles:t});_.indeterminate=C(i),e.call(_,!C(i)&&i),_.dispatchEvent(s)}},[_,v,i,a]);let k=r.useRef(!C(i)&&i);return(0,h.jsx)(u.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??k.current,required:x,disabled:m,name:j,value:f,form:y,...t,tabIndex:-1,ref:b,style:{...t.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function C(e){return"indeterminate"===e}function S(e){return C(e)?"indeterminate":e?"checked":"unchecked"}k.displayName=N},62658:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>S});var r=s(37876),l=s(14232),n=s(88992),a=s(13810),i=s(60513),d=s(93221),c=s(12567),o=s(34379),u=s(96852),h=s(95860),x=s(59688),m=s(78885),j=s(62822),f=s(88327),p=s(6233),y=s(6782),_=s(68130),g=s(55913),b=s(47489),v=s(21346),w=s(89099),N=s(76852),k=s(56707);let C=i.Ik({name:i.Yj().min(1,"Name is required"),address_line1:i.Yj().min(1,"Address is required"),address_line2:i.Yj().optional(),city:i.Yj().min(1,"City is required"),state:i.Yj().min(1,"State is required"),postal_code:i.Yj().min(1,"Postal code is required"),country_code:i.Yj().optional(),is_default:i.zM().optional()});function S(e){var t;let{selectedRetailerId:s}=e,{userData:i,isLoading:S,isInternalUser:A}=(0,v.A)(),E=(0,w.useRouter)(),[R,L]=(0,l.useState)([]),[I,M]=(0,l.useState)(null),[B,D]=(0,l.useState)(!0),[F,z]=(0,l.useState)(!1),[P,T]=(0,l.useState)(!1),[Y,J]=(0,l.useState)(!1),[O,H]=(0,l.useState)(null),[$,q]=(0,l.useState)(null),[U,X]=(0,l.useState)(!1),G=s||(null==i?void 0:i.retailerId),K=null==i||null==(t=i.membership)?void 0:t.role,V="OWNER"===K||"ADMIN"===K,W=A||V,Q=(0,n.mN)({resolver:(0,a.u)(C),defaultValues:{name:"",address_line1:"",address_line2:"",city:"",state:"",postal_code:"",country_code:"US",is_default:!1}}),Z=(0,n.mN)({resolver:(0,a.u)(C),defaultValues:{name:"",address_line1:"",address_line2:"",city:"",state:"",postal_code:"",country_code:"US",is_default:!1}});(0,l.useEffect)(()=>{S||W||E.replace("/")},[S,W,E]),(0,l.useEffect)(()=>{G&&W&&ee()},[G,W]);let ee=async()=>
1{if(G)try{var e;D(!0);let[t,s]=await Promise.all([N.j.locations.getByRetailer(G),N.j.locations.getDefaultForRetailer(G)]),r=t.filter(e=>e.is_default),l=s.defaultLocation,n=null!=(e=null!=l?l:r[0])?e:null,a=[...t];n&&!a.some(e=>e.id===n.id)&&a.unshift(n),M(n),L(a)}catch(e){console.error("Error fetching locations:",e),x.oR.error("Failed to load locations")}finally{D(!1)}},et=e=>e.id===(null==I?void 0:I.id),es=async e=>{if(!G)return void x.oR.error("Missing retailer context");try{X(!0);let{data:t,error:s}=await k.N.from("retailers").select("parent_company_id").eq("id",G).maybeSingle();if(s)throw s;if(!(null==t?void 0:t.parent_company_id))throw Error("The selected retailer is missing its company assignment");let r=await N.j.locations.create({companyId:t.parent_company_id,retailerId:G,name:e.name,address_line1:e.address_line1,address_line2:e.address_line2||null,city:e.city,state:e.state,postal_code:e.postal_code,country_code:e.country_code||"US",is_default:!1});if(e.is_default&&!(null==r?void 0:r.id))throw Error("Location was created without an ID");if(e.is_default)try{await N.j.locations.setDefaultForRetailer(G,r.id)}catch(e){if(e.defaultLocationMayBeSet)throw e;try{await N.j.locations.delete(r.id)}catch(e){console.error("Failed to roll back location after default assignment failure:",e)}throw e}x.oR.success(e.is_default?"Location added and set as default":"Location added"),z(!1),Q.reset(),await ee()}catch(e){var t,s,r,l;console.error(e),x.oR.error(null!=(l=null!=(r=null==e?void 0:e.message)?r:null==e||null==(s=e.response)||null==(t=s.data)?void 0:t.message)?l:"Failed to add location")}finally{X(!1)}},er=async e=>{if(!O||!G)return;let t=et(O),s=V&&t&&!0!==e.is_default;try{X(!0),await N.j.locations.update(O.id,{name:e.name,address_line1:e.address_line1,address_line2:e.address_line2||null,city:e.city,state:e.state,postal_code:e.postal_code,country_code:e.country_code||"US",...s?{is_default:!1}:{}}),V&&e.is_default?await N.j.locations.setDefaultForRetailer(G,O.id):V&&t&&await N.j.locations.removeDefaultForRetailer(G),x.oR.success("Location updated"),T(!1),H(null),await ee()}catch(e){var r,l,n,a;console.error(e),x.oR.error(null!=(a=null!=(n=null==e||null==(l=e.response)||null==(r=l.data)?void 0:r.message)?n:null==e?void 0:e.message)?a:"Failed to update location")}finally{X(!1)}},el=async()=>{if($)try{X(!0),await N.j.locations.delete($.id),x.oR.success("Location deleted"),J(!1),q(null),await ee()}catch(r){var e,t,s;console.error(r),x.oR.error(null!=(s=null==r||null==(t=r.response)||null==(e=t.data)?void 0:e.message)?s:"Failed to delete location")}finally{X(!1)}};if(S)return(0,r.jsx)(_.C,{activeSection:"locations",children:(0,r.jsx)(p.R,{})});if(!W)return null;let en=function(e,t,s){let l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,r.jsx)(g.lV,{...e,children:(0,r.jsxs)("form",{onSubmit:e.handleSubmit(t),className:"space-y-4",children:[(0,r.jsx)(g.zB,{control:e.control,name:"name",render:e=>{let{field:t}=e;return(0,r.jsxs)(g.eI,{children:[(0,r.jsx)(g.lR,{children:"Location Name"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)(b.p,{placeholder:"Main Store",...t})}),(0,r.jsx)(g.C5,{})]})}}),(0,r.jsx)(g.zB,{control:e.control,name:"address_line1",render:e=>{let{field:t}=e;return(0,r.jsxs)(g.eI,{children:[(0,r.jsx)(g.lR,{children:"Address Line 1"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)(b.p,{placeholder:"123 Main St",...t})}),(0,r.jsx)(g.C5,{})]})}}),(0,r.jsx)(g.zB,{control:e.control,name:"address_line2",render:e=>{let{field:t}=e;return(0,r.jsxs)(g.eI,{children:[(0,r.jsx)(g.lR,{children:"Address Line 2"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)(b.p,{placeholder:"Suite 100",...t})}),(0,r.jsx)(g.C5,{})]})}}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsx)(g.zB,{control:e.control,name:"city",render:e=>{let{field:t}=e;return(0,r.jsxs)(g.eI,{children:[(0,r.jsx)(g.lR,{children:"City"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)(b.p,{placeholder:"New York",...t})}),(0,r.jsx)(g.C5,{})]})}}),(0,r.jsx)(g.zB,{control:e.control,name:"state",render:e=>{let{field:t}=e;return(0,r.jsxs)(g.eI,{children:[(0,r.jsx)(g.lR,{children:"State"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)(b.p,{placeholder:"NY",...t})}),(0,r.jsx)(g.C5,{})]})}})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsx)(g.zB,{control:e.control,name:"postal_code",render:e=>{let{field:t}=e;return(0,r.jsxs)(g.eI,{children:[(0,r.jsx)(g.lR,{children:"Postal Code"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)(b.p,{placeholder:"10001",...t})}),(0,r.jsx)(g.C5,{})]})}}),(0,r.jsx)(g.zB,{control:e.control,name:"country_code",render:e=>{let{field:t}=e;return(0,r.jsxs)(g.eI,{children:[(0,r.jsx)(g.lR,{children:"Country"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)(b.p,{placeholder:"US",...t})}),(0,r.jsx)(g.C5,{})]})}})]}),l&&(0,r.jsx)(g.zB,{control:e.control,name:"is_default",render:e=>{let{field:t}=e;return(0,r.jsxs)(g.eI,{className:"flex flex-row items-start gap-3 space-y-0 rounded-md border p-4",children:[(0,r.jsx)(g.MJ,{children:(0,r.jsx)(h.S,{checked:!0===t.value,onCheckedChange:e=>t.onChange(!0===e)})}),(0,r.jsxs)("div",{className:"space-y-1 leading-none",children:[(0,r.jsx)(g.lR,{children:"Set as default location"}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground",children:"This replaces the retailer's current default location."})]}),(0,r.jsx)(g.C5,{})]})}}),(0,r.jsx)(c.Es,{children:(0,r.jsx)(o.$,{type:"submit",disabled:U,children:U?"Saving...":s}
1)})]})})};return(0,r.jsxs)(_.C,{activeSection:"locations",children:[(0,r.jsxs)("div",{className:"w-full max-w-4xl space-y-6",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:"Locations"}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Manage your store locations and addresses."})]}),V&&(0,r.jsxs)(o.$,{onClick:()=>{Q.reset(),z(!0)},children:[(0,r.jsx)(j.A,{className:"h-4 w-4 mr-2"}),"Add Location"]})]}),B?(0,r.jsx)("div",{className:"border rounded-lg",children:(0,r.jsxs)(m.XI,{children:[(0,r.jsx)(m.A0,{children:(0,r.jsxs)(m.Hj,{children:[(0,r.jsx)(m.nd,{children:"Name"}),(0,r.jsx)(m.nd,{children:"Address"}),(0,r.jsx)(m.nd,{children:"City"}),(0,r.jsx)(m.nd,{children:"State"}),(0,r.jsx)(m.nd,{children:"Postal Code"}),(0,r.jsx)(m.nd,{className:"w-[50px]"})]})}),(0,r.jsx)(m.BF,{children:Array.from({length:6}).map((e,t)=>(0,r.jsxs)(m.Hj,{children:[(0,r.jsx)(m.nA,{children:(0,r.jsx)(y.E,{className:"h-4 w-32"})}),(0,r.jsx)(m.nA,{children:(0,r.jsx)(y.E,{className:"h-4 w-48"})}),(0,r.jsx)(m.nA,{children:(0,r.jsx)(y.E,{className:"h-4 w-24"})}),(0,r.jsx)(m.nA,{children:(0,r.jsx)(y.E,{className:"h-4 w-12"})}),(0,r.jsx)(m.nA,{children:(0,r.jsx)(y.E,{className:"h-4 w-16"})}),(0,r.jsx)(m.nA,{children:(0,r.jsx)(y.E,{className:"h-4 w-4"})})]},"loc-skel-".concat(t)))})]})}):0===R.length?(0,r.jsxs)("div",{className:"border rounded-lg p-12 text-center text-muted-foreground",children:["No locations yet. ",V?'Click "Add Location" to get started.':"Your company admin hasn't assigned a location to this retailer yet."]}):(0,r.jsx)("div",{className:"border rounded-lg",children:(0,r.jsxs)(m.XI,{children:[(0,r.jsx)(m.A0,{children:(0,r.jsxs)(m.Hj,{children:[(0,r.jsx)(m.nd,{children:"Name"}),(0,r.jsx)(m.nd,{children:"Address"}),(0,r.jsx)(m.nd,{children:"City"}),(0,r.jsx)(m.nd,{children:"State"}),(0,r.jsx)(m.nd,{children:"Postal Code"}),(0,r.jsx)(m.nd,{className:"w-[50px]"})]})}),(0,r.jsx)(m.BF,{children:R.map(e=>{let t=et(e);return(0,r.jsxs)(m.Hj,{className:t?"bg-muted/40":void 0,children:[(0,r.jsx)(m.nA,{className:"font-medium",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[e.name,t&&(0,r.jsx)(u.E,{variant:"default",children:"Default"})]})}),(0,r.jsxs)(m.nA,{children:[e.address_line1,e.address_line2?", ".concat(e.address_line2):""]}),(0,r.jsx)(m.nA,{children:e.city}),(0,r.jsx)(m.nA,{children:e.state}),(0,r.jsx)(m.nA,{children:e.postal_code}),(0,r.jsx)(m.nA,{children:(0,r.jsxs)(d.rI,{children:[(0,r.jsx)(d.ty,{asChild:!0,children:(0,r.jsx)(o.$,{variant:"ghost",size:"icon",className:"h-8 w-8",children:(0,r.jsx)(f.A,{className:"h-4 w-4"})})}),(0,r.jsxs)(d.SQ,{align:"end",children:[(0,r.jsx)(d._2,{onClick:()=>{H(e),Z.reset({name:e.name,address_line1:e.address_line1,address_line2:e.address_line2||"",city:e.city,state:e.state,postal_code:e.postal_code,country_code:e.country_code||"US",is_default:et(e)}),T(!0)},children:"Edit"}),!t&&(0,r.jsx)(d._2,{className:"text-destructive",onClick:()=>{q(e),J(!0)},children:"Delete"})]})]})})]},e.id)})})]})})]}),(0,r.jsx)(c.lG,{open:F,onOpenChange:z,children:(0,r.jsxs)(c.Cf,{className:"sm:max-w-[500px]",children:[(0,r.jsxs)(c.c7,{children:[(0,r.jsx)(c.L3,{children:"Add Location"}),(0,r.jsx)(c.rr,{children:"Add another location for this retailer and optionally set it as the default."})]}),en(Q,es,"Add Location",!0)]})}),(0,r.jsx)(c.lG,{open:P,onOpenChange:e=>{T(e),e||H(null)},children:(0,r.jsxs)(c.Cf,{className:"sm:max-w-[500px]",children:[(0,r.jsxs)(c.c7,{children:[(0,r.jsx)(c.L3,{children:"Edit Location"}),(0,r.jsx)(c.rr,{children:"Update this location and choose whether it is the retailer's default."})]}),en(Z,er,"Save Changes",V)]})}),(0,r.jsx)(c.lG,{open:Y,onOpenChange:e=>{J(e),e||q(null)},children:(0,r.jsxs)(c.Cf,{className:"sm:max-w-[400px]",children:[(0,r.jsxs)(c.c7,{children:[(0,r.jsx)(c.L3,{children:"Delete Location"}),(0,r.jsxs)(c.rr,{children:["Delete “",null==$?void 0:$.name,"”? This can't be undone."]})]}),(0,r.jsxs)(c.Es,{children:[(0,r.jsx)(o.$,{variant:"outline",onClick:()=>J(!1),children:"Cancel"}),(0,r.jsx)(o.$,{variant:"destructive",onClick:el,disabled:U,children:U?"Deleting...":"Delete"})]})]})})]})}},68130:(e,t,s)=>{"use strict";s.d(t,{C:()=>a});var r=s(37876),l=s(79926),n=s(68112);function a(e){let{activeSection:t,children:s}=e;return(0,r.jsx)(n.Bc,{children:(0,r.jsxs)("div",{className:"flex flex-col min-h-0",children:[(0,r.jsx)(l.l,{position:"bottom-right"}),(0,r.jsx)("main",{className:"flex-1 flex flex-col items-center justify-start py-12 px-8",children:s})]})})}},78885:(e,t,s)=>{"use strict";s.d(t,{A0:()=>a,BF:()=>i,Hj:()=>d,XI:()=>n,nA:()=>o,nd:()=>c});var r=s(37876);s(14232);var l=s(21257);function n(e){let{className:t,...s}=e;return(0,r.jsx)("table",{"data-slot":"table",className:(0,l.cn)("w-full caption-bottom text-sm",t),...s})}function a(e){let{className:t,...s}=e;return(0,r.jsx)("thead",{"data-slot":"table-header",className:(0,l.cn)("sticky top-0 z-[1] bg-background [&_tr]:border-b",t),...s})}function i(e){let{className:t,...s}=e;return(0,r.jsx)("tbody",{"data-slot":"table-body",className:(0,l.cn)("[&_tr:last-child]:border-0",t),...s})}function d(e){let{className:t,...s}=e;return(0,r.jsx)("tr",{"data-slot":"table-row",className:(0,l.cn)("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",t),...s})}function c(e){let{className:t,...s}=e;return(0,r.jsx)("th",{"data-slot":"table-head",className:(0,l.cn)("text-foreground h-10 px-1 sm:px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] min-w-0",t),...s})}function o(e){let{className:t,...s}=e;return(0,r.jsx)("td",{"data-slot":"table-cell",className:(0,l.cn)("p-1 sm:p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] min-w-0",t),...s})}},79926:(e,t,s)=>{"use strict";s.d(t,{l:()=>c});var r=s(37876),l=s(14232),n=(e,t,s,r,l,n,a,i)=>{let d=document.documentElement,c=["light","dark"];function o(t){var s;
1(Array.isArray(e)?e:[e]).forEach(e=>{let s="class"===e,r=s&&n?l.map(e=>n[e]||e):l;s?(d.classList.remove(...r),d.classList.add(n&&n[t]?n[t]:t)):d.setAttribute(e,t)}),s=t,i&&c.includes(s)&&(d.style.colorScheme=s)}if(r)o(r);else try{let e=localStorage.getItem(t)||s,r=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;o(r)}catch(e){}},a=l.createContext(void 0),i={setTheme:e=>{},themes:[]};l.memo(({forcedTheme:e,storageKey:t,attribute:s,enableSystem:r,enableColorScheme:a,defaultTheme:i,value:d,themes:c,nonce:o,scriptProps:u})=>{let h=JSON.stringify([s,t,i,e,c,d,r,a]).slice(1,-1);return l.createElement("script",{...u,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?o:"",dangerouslySetInnerHTML:{__html:`(${n.toString()})(${h})`}})});var d=s(59688);let c=e=>{let{...t}=e,{theme:s="system"}=(()=>{var e;return null!=(e=l.useContext(a))?e:i})();return(0,r.jsx)(d.l$,{theme:s,className:"toaster group",position:"top-right",...t})}},88327:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(9028).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},95860:(e,t,s)=>{"use strict";s.d(t,{S:()=>d});var r=s(37876),l=s(14232),n=s(29470),a=s(86904),i=s(21257);let d=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,r.jsx)(n.bL,{ref:t,className:(0,i.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...l,children:(0,r.jsx)(n.C1,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,r.jsx)(a.A,{className:"h-4 w-4"})})})});d.displayName=n.bL.displayName},96380:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/locations",function(){return s(62658)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=96380)),_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.