1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9709],{17394:function(e,s,a){a.r(s),a.d(s,{articleDefaultValues:function(){return A},articleValidateSchema:function(){return y.x},default:function(){return G}});var l=a(57437),t=a(2265),i=a(28811),r=a.n(i),n=a(2890),d=a.n(n),c=a(95279),o=a(5925),m=a(87649),u=a(61865),h=a(89701),p=a(6734),x=a(72990),f=a(76446),b=a(67602),j=a(65125),v=a(14277),g=a(78191);var w=e=>{let{data:s}=e;var a;const[i,r]=(0,t.useState)(!1),[n,w]=(0,t.useState)(!1),{quill:N,quillRef:k}=(0,f.p)(n?j.q_:null);(0,t.useLayoutEffect)((()=>{w(!0)}),[]),(0,t.useEffect)((()=>{N&&(0,b.y)(N)}),[N]),(0,t.useEffect)((()=>{N&&(N.on("text-change",(()=>{_("content",N.root.innerHTML,{shouldValidate:!0,shouldTouch:!0})})),N.clipboard.dangerouslyPasteHTML((null===s||void 0===s?void 0:s.content)||""))}),[N,s]);const[P,S]=(0,t.useState)(null),[L,B]=(0,t.useState)(!1),E=y.x,{formState:G,handleSubmit:V,reset:C,watch:Z,setValue:_}=(0,u.cI)({mode:"onSubmit",defaultValues:A,resolver:(0,h.X)(E)}),{errors:q,isLoading:D,isSubmitting:F}=G,{...M}=Z(),R=D||F||i,T=async e=>{e.type="about";const s=await p.Z.createArticle(e);s.error&&o.Am.error(s.error)},U=(0,t.useCallback)(d().debounce((()=>{V(T)()}),2e3),[V]),H=D||F||L;return(0,t.useLayoutEffect)((()=>{C(s?d().cloneDeep(s):d().cloneDeep(A))}),[s]),(0,t.useEffect)((()=>{U()}),[M.content,M.imageFile]),(0,l.jsx)("div",{className:"w-full",children:(0,l.jsxs)("div",{className:"flex flex-col flex-wrap",children:[(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsx)("p",{className:"w-full text-lg font-semibold",children:"Sustainability"}),(0,l.jsx)("div",{ref:k,className:"mb-2 min-h-[10vh]"}),(0,l.jsx)("p",{className:"text-error",children:null===q||void 0===q||null===(a=q.content)||void 0===a?void 0:a.message}),R?(0,l.jsx)("div",{className:"absolute bottom-2 right-2 flex h-10 w-10 items-center justify-center",children:(0,l.jsx)(g.Z,{})}):(0,l.jsx)("div",{className:"absolute bottom-2 right-2 flex h-10 w-10 items-center justify-center",children:(0,l.jsx)(v.Z,{})})]}),(0,l.jsxs)("div",{className:"mt-4 w-full",children:[(0,l.jsx)("input",{type:"file",accept:".pdf",onChange:e=>{const s=e.target.files[0];if("application/pdf"===s.type||"pdf"===s.name.split(".").pop().toLowerCase())try{const e=URL.createObjectURL(s);S(e),(async e=>{B(!0);const s=await c.Z.uploadFile(e);if(B(!1),s.error)return void o.Am.error(s.error);_("image",s),o.Am.success("Upload file success")})(s)}catch(a){o.Am.error(a)}else o.Am.error("Invalid file type")},className:"input input-bordered mt-2 w-full rounded-md py-2"}),(0,l.jsx)("div",{className:"mt-2 h-[600px] w-full",children:H?(0,l.jsx)(m.Z,{}):(0,l.jsx)("iframe",{src:P||(0,x.qm)(M.image),className:"h-full w-full"})})]})]})})},y=a(92161);const N=r()((()=>Promise.all([a.e(6950),a.e(1275),a.e(9751)]).then(a.bind(a,93269))),{loadableGenerated:{webpack:()=>[93269]},ssr:!1}),k=r()((()=>Promise.all([a.e(6950),a.e(1275),a.e(6134)]).then(a.bind(a,81455))),{loadableGenerated:{webpack:()=>[81455]},ssr:!1}),P=r()((()=>Promise.all([a.e(6950),a.e(1275),a.e(4205)]).then(a.bind(a,75289))),{loadableGenerated:{webpack:()=>[75289]},ssr:!1}),S=r()((()=>Promise.all([a.e(6950),a.e(3688),a.e(4798)]).then(a.bind(a,63688))),{loadableGenerated:{webpack:()=>[63688]},ssr:!1}),L=r()((()=>Promise.all([a.e(6950),a.e(1275),a.e(7217)]).then(a.bind(a,31214))),{loadableGenerated:{webpack:()=>[31214]},ssr:!1}),B=r()((()=>Promise.all([a.e(6950),a.e(1275),a.e(5164)]).then(a.bind(a,54179))),{loadableGenerated:{webpack:()=>[54179]},ssr:!1}),E=r()((()=>Promise.all([a.e(6950),a.e(1275),a.e(1734)]).then(a.bind(a,66037))),{loadableGenerated:{webpack:()=>[66037]},ssr:!1}),A={slug:"",title:"",category:0,meta:"",content:"",image:"",sort:0,published:!1,imageFile:null};var G=e=>{const{whoWeAre:s,ourVision:i,ourValue:r,leadership:n,code:d,ourMission:c,businessPhilosophy:o,ourLeadershipPhilosophy:m}=e,[u,h]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{h(!0),Promise.all([a.e(1275),a.e(9601)]).then(a.t.bind(a,29601,23))}),[]),u?(0,l.jsx)("form",{className:"relative w-full rounded-lg ",children:(0,l.jsxs)("div",{className:"grid w-full grid-cols-6 gap-2",children:[(0,l.jsx)("div",{className:"col-span-6 ",style:{marginBottom:30},children:(0,l.jsx)("div",{className:"rounded-md bg-white px-4 py-4",children:(0,l.jsx)(k,{data:s})})}),(0,l.jsx)("div",{className:"col-span-6",style:{marginBottom:30},children:(0,l.jsx)("div",{className:"rounded-md bg-white px-4 py-4",children:(0,l.jsx)(N,{data:i})})}),(0,l.jsx)("div",{className:"col-span-6",style:{marginBottom:30},children:(0,l.jsx)("div",{className:"rounded-md bg-white px-4 py-4",children:(0,l.jsx)(P,{data:r})})}),(0,l.jsx)("div",{className:"col-span-6",style:{marginBottom:30},children:(0,l.jsx)("div",{className:"rounded-md bg-white px-4 py-4",children:(0,l.jsx)(L,{data:c})})}),(0,l.jsx)("div",{className:"col-span-6",style:{marginBottom:30},children:(0,l.jsx)("div",{className:"rounded-md bg-white px-4 py-4",children:(0,l.jsx)(B,{data:o})})}),(0,l.jsx)("div",{className:"col-span-6",style:{marginBottom:30},children:(0,l.jsx)("div",{className:"rounded-md bg-white px-4 py-4",children:(0,l.jsx)(E,{data:m})})}),(0,l.jsx)("div",{className:"col-span-6",style:{marginBottom:30},children:(0,l.jsx)("div",{className:"rounded-md bg-white px-4 py-4",children:(0,l.jsx)(S,{data:n})})}),(0,l.jsx)("div",{className:"col-span-6",style:{marginBottom:30},children:(0,l.jsx)("div",{className:"rounded-md bg-white px-4 py-4",children:(0,l.jsx)(w,{data:d})})})]})}):null}}}]);
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.