1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34977],{32518:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r={...a(80419).A,banner:"Free Express Shipping Worldwide \uD83C\uDF0E",flag:"/_next/static/media/au.c1096b16.svg"}},36173:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(33736),s=a(48810),n=a(57940);let i={common:a(32518).A},l=e=>(0,r.jsx)(s.A.Provider,{value:{lang:"en-AU",slug:"au",countryCode:"AU",name:"Australia",region:"Asia Pacific",t:(0,s.P)(i)},children:(0,r.jsx)(n.default,{...e})})},57940:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>c});var r=a(33736),s=a(35445),n=a(7400),i=a(70873),l=a(76769);function c(e){let{quoteId:t,initialValue:a}=e,c=n.F.useUtils(),o=n.F.quote.updateEnquiry.useMutation({onSuccess:async()=>{await c.quote.getById2.invalidate(),s.oR.success("Successfully updated project name")},onError:e=>{(0,i.Cp)(e),s.oR.error("Failed to update project name. Please try again.")}}),u=async e=>{await o.mutateAsync({id:t,enquiry:{projectName:e}})};return(0,r.jsx)(l.default,{value:a||"",onSave:u,placeholder:"Add project name..."})}},76769:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>o});var r=a(33736),s=a(91844),n=a(99746),i=a(35445),l=a(70873),c=a(22595);function o(e){let{value:t,onSave:a,placeholder:o="Enter value..."}
1=e,[u,d]=(0,s.useState)(!1),[p,m]=(0,s.useState)(t),[x,g]=(0,s.useState)(!1),h=(0,s.useRef)(null),y=()=>{m(t),d(!0),setTimeout(()=>{h.current?.focus(),h.current?.select()},0)},f=()=>{d(!1),m(t)},v=async()=>{if(p===t)return void d(!1);g(!0);try{await a(p),d(!1)}catch(e){(0,l.Cp)(e),i.oR.error("Failed to update value. Please try again.")}finally{g(!1)}};return u?(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)("input",{ref:h,type:"text",className:"form-input rounded-md text-sm border-gray-300 flex-grow max-w-md",value:p,onChange:e=>m(e.target.value),onKeyDown:e=>{"Enter"===e.key?v():"Escape"===e.key&&f()},placeholder:o,disabled:x}),(0,r.jsx)("button",{onClick:()=>void v(),className:"p-1 bg-green-100 text-green-700 rounded-sm hover:bg-green-200",disabled:x,title:"Save",children:x?(0,r.jsxs)("svg",{className:"animate-spin h-4 w-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,r.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):(0,r.jsx)(n.CMH,{className:"h-4 w-4"})}),(0,r.jsx)("button",{onClick:f,className:"p-1 bg-red-100 text-red-700 rounded-sm hover:bg-red-200",disabled:x,title:"Cancel",children:(0,r.jsx)(n.QCr,{className:"h-4 w-4"})})]}):(0,r.jsxs)("div",{className:"flex items-center group cursor-pointer",onClick:e=>{e.stopPropagation(),y()},title:"Click to edit",children:[(0,r.jsx)("span",{className:(0,c.cx)("mr-2",{"text-gray-400":!t}),children:t||o}),(0,r.jsx)(n.Mbp,{className:"h-4 w-4 text-gray-400 opacity-0 group-hover:opacity-100 transition-opacity"})]})}},77973:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/au/admin/orders/[id]/project-name-field",function(){return a(36173)}])}},e=>{var t=t=>e(e.s=t);e.O(0,[97119,35445,90636,46593,38792],()=>t(77973)),_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.