1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{71711:function(e,t,a){"use strict";var r,l,s=a(30112);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}t.Z=function(e){return s.createElement("svg",n({viewBox:"0 0 49 68",fill:"inherit","aria-labelledby":"title desc"},e),r||(r=s.createElement("path",{d:"M31.462 30.178c3.301-2.73 4.764-18.868 6.193-24.669 1.43-5.8 7.34-5.507 7.34-5.507s-1.534 2.671-.909 4.664C44.712 6.659 49 8.44 49 8.44l-.925 2.438s-1.93-.247-3.08 2.052c-1.15 2.298.739 25.058.739 25.058s-6.907 13.623-6.907 19.374c0 5.752 2.723 10.572 2.723 10.572h-3.82s-5.605-6.67-6.754-10.002c-1.15-3.333-.69-6.666-.69-6.666s-6.091-.345-11.493 0c-5.401.345-9.004 4.988-9.654 7.585-.65 2.598-.92 9.083-.92 9.083H5.2C3.361 62.26 1.9 60.227 2.693 57.362c2.194-7.935 1.763-12.436 1.255-14.44C3.44 40.917 0 39.168 0 39.168c1.685-3.433 3.405-5.083 10.803-5.255 7.398-.172 17.357-1.004 20.658-3.735z"})),l||(l=s.createElement("path",{d:"M12.25 57.03s.78 7.223 4.927 10.904h3.554c-3.554-4.026-3.941-14.519-3.941-14.519-1.808.589-4.31 2.696-4.54 3.615z"})))}},57709:function(e,t,a){Promise.resolve().then(a.t.bind(a,19464,23)),Promise.resolve().then(a.bind(a,32950)),Promise.resolve().then(a.bind(a,38684)),Promise.resolve().then(a.bind(a,21997)),Promise.resolve().then(a.bind(a,71797)),Promise.resolve().then(a.bind(a,22671)),Promise.resolve().then(a.bind(a,20129)),Promise.resolve().then(a.bind(a,96141)),Promise.resolve().then(a.bind(a,64552)),Promise.resolve().then(a.bind(a,54902)),Promise.resolve().then(a.t.bind(a,31146,23)),Promise.resolve().then(a.bind(a,52299)),Promise.resolve().then(a.bind(a,54403)),Promise.resolve().then(a.t.bind(a,27123,23))},32950:function(e,t,a){"use strict";a.d(t,{AppNavBar:function(){return X}});var r,l,s,n,o=a(28117),i=JSON.parse('{"navigationBar":"Master","navItem":[{"label":"TinaCMS","items":[{"label":"Home","href":"/tinacms"},{"label":"Docs for TinaCMS","href":"/docs"},{"label":"Videos","href":"https://www.youtube.com/c/tinacms"},{"label":"Showcase","href":"/showcase"},{"label":"What\'s New in TinaCMS","href":"/whats-new/tinacms"},{"label":"Versions","href":"/versions"}],"_template":"groupOfStringItems"},{"label":"TinaDocs","items":[{"label":"Home","href":"/tinadocs"},{"label":"Docs for TinaDocs","href":"/tinadocs/docs"}],"_template":"groupOfStringItems"},{"label":"TinaCloud","items":[{"label":"Pricing","href":"/pricing"},{"label":"Enterprise","href":"/enterprise"},{"label":"Quickstart ","href":"https://app.tina.io/quickstart"},{"label":"What\'s New in TinaCloud","href":"/whats-new/tinacloud"}],"_template":"groupOfStringItems"},{"label":"Editorial Workflow","href":"/editorial-workflow","_template":"stringItem"},{"label":"Community","items":[{"label":"Events","href":"/events"},{"label":"Partners","href":"/partners"},{"label":"Certifications","href":"/certifications"},{"label":"Awesome TinaCMS","href":"https://github.com/tinacms/awesome-tinacms"},{"label":"Discord","href":"https://discord.com/invite/zumN63Ybpf"},{"label":"Support","href":"/docs/support"},{"label":"Forum","href":"https://github.com/tinacms/tinacms/discussions"},{"label":"Roadmap","href":"/roadmap"}],"_template":"groupOfStringItems"},{"label":"About","items":[{"label":"About TinaCMS","href":"/about"},{"label":"Compare TinaCMS","href":"/compare-tina"},{"label":"Blog","href":"/blog"},{"label":"Examples","href":"/examples"},{"label":"Contact Us","href":"","modal":"ContactForm"}],"_template":"groupOfStringItems"}]}'),c=JSON.parse('{"navigationBar":"Master","navItem":[{"label":"TinaCMS","items":[{"label":"é¦é¡µ","href":"/tinacms","external":false},{"label":"TinaCMS ææ¡£","href":"/docs","external":false},{"label":"è§é¢","href":"https://www.youtube.com/c/tinacms","external":true},{"label":"æ¡ä¾å±ç¤º","href":"/showcase","external":false},{"label":"TinaCMS ææ°å¨æ","href":"/whats-new/tinacms","external":false},{"label":"çæ¬å表","href":"/versions","external":false}],"_template":"groupOfStringItems"},{"label":"TinaDocs","items":[{"label":"é¦é¡µ","href":"/tinadocs","external":false},{"label":"TinaDocs ææ¡£","href":"/tinadocs/docs","external":false}],"_template":"groupOfStringItems"},{"label":"TinaCloud","items":[{"label":"å®ä»·","href":"/pricing","external":false},{"label":"ä¼ä¸ç","href":"/enterprise","external":false},{"label":"å¿«éå¼å§","href":"https://app.tina.io/quickstart","external":true},{"label":"TinaCloud ææ°å¨æ","href":"/whats-new/tinacloud","external":false}],"_template":"groupOfStringItems"},{"label":"ç¼è¾å·¥ä½æµ","href":"/editorial-workflow","external":false,"_template":"stringItem"},{"label":"社åº","items":[{"label":"æ´»å¨","href":"/events","external":false},{"label":"åä½ä¼ä¼´","href":"/partners","external":false},{"label":"认è¯","href":"/certifications","external":false},{"label":"Awesome TinaCMS","href":"https://github.com/tinacms/awesome-tinacms","external":true},{"label":"Discord","href":"https://discord.com/invite/zumN63Ybpf","external":true},{"label":"ææ¯æ¯æ","href":"/docs/support","external":false},{"label":"论å","href":"https://github.com/tinacms/tinacms/discussions","external":true},{"label":"产å路线","href":"/roadmap","external":false}],"_template":"groupOfStringItems"},{"label":"å
³äº","items":[{"label":"å
³äº Tina","href":"/about","external":false},{"label":"产å对æ¯","href":"/compare-tina","external":false},{"label":"å客","href":"/blog","external":false},{"label":"示ä¾","href":"/examples","external":false},{"label":"èç³»æä»¬","href":"/","modal":"ContactForm"}],"_template":"groupOfStringItems"}]}'),d=a(30112);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}var m=function(e){return d.createElement("svg",u({width:160,height:45,viewBox:"0 0 712 199",fill:"none"},e),l||(l=d.createElement("path",{d:"M669.255 187c-29.85 0-42.15-16.35-42.15-45s12.3-45 42.15-45c29.7 0 42 16.35 42 45s-12.3 45-42 45zm0-69c-11.25 0-16.05 6.9-16.05 24s4.8 24 16.05 24c11.1 0 15.9-6.9 15.9-24s-4.8-24-15.9-24zM577.424 67.9h29.4v21.9h-29.4V67.9zm-13.35 54.3V100h42.6v84h-27.3v-61.8h-15.3zM517.117 159.1h28.8V184h-28.8v-24.9zM464.954 171.25h-1.5c-4.35 8.1-14.7 14.85-27.45 14.85-18.75 0-28.35-9.3-28.35-23.85 0-14.4 8.55-22.8 24.45-25.35l23.7-3.75c5.25-.9 6.6-3.75 6.6-6.3v-1.65c0-3.75-2.7-8.4-11.7-8.4-7.65 0-12.15 3.45-12.6 9.3h-26.1c1.05-16.95 12.6-29.1 37.5-29.1 26.1 0 39 10.5 39 27.3v37.8h9.45V184h-33v-12.75zm-2.55-19.95v-7.05h-1.5c-1.5 1.65-3.6 2.85-6.9 3.6l-11.1 2.7c-4.95 1.2-7.35 4.05-7.35 8.7 0 5.55 3.6 8.4 10.8 8.4 10.65 0 16.05-7.35 16.05-16.35zM331.016 111.1h2.7c2.7-8.4 8.55-14.1 25.05-14.1 17.25 0 30.3 8.4 30.3 28.8V184h-27.3v-50.1c0-9.15-5.1-13.35-13.5-13.35-9.45 0-14.7 4.65-14.7 16.05V184h-27.3v-84h24.75v11.1zM251.936 67.9h29.4v21.9h-29.4V67.9zm-13.35 54.3V100h42.6v84h-27.3v-61.8h-15.3zM224.5 100v22.2h-21.3v31.5c0 7.05 2.55 9.75 11.7 9.75 3.15 0 7.05-.3 10.8-.6v21.9c-4.05.9-10.
165 1.95-18.9 1.95-26.1 0-30.9-15-30.9-26.55V122.2h-13.5V100h13.5V86.65l25.8-11.85h1.5V100h21.3zM92.458 88.135c9.703-7.975 14.002-55.105 18.202-72.046C114.86-.85 132.23.007 132.23.007s-4.509 7.8-2.67 13.62c1.839 5.82 14.44 11.022 14.44 11.022l-2.718 7.12s-5.675-.721-9.052 5.992 4.231 72.5 4.231 72.5-22.357 40.467-22.357 57.264c0 16.797 8.001 30.875 8.001 30.875h-11.227s-16.47-19.477-19.847-29.211c-3.378-9.734-2.027-19.468-2.027-19.468s-17.901-1.007-33.775 0c-15.874 1.007-26.46 14.568-28.371 22.153-1.91 7.586-2.702 26.526-2.702 26.526h-8.877c-5.403-16.57-9.694-22.508-7.366-30.875 6.448-23.174 5.181-36.318 3.688-42.173C10.108 119.498 0 114.388 0 114.388c4.952-10.025 10.006-14.842 31.747-15.345 21.742-.502 51.009-2.933 60.711-10.908z",fill:"#EC4815"})),s||(s=d.createElement("path",{d:"M34.33 166.555s2.294 21.095 14.48 31.845h10.444c-10.443-11.757-11.582-42.403-11.582-42.403-5.312 1.719-12.666 7.872-13.341 10.558z",fill:"#EC4815"})))};a(27123);var h=a(33141),p=a(56385),x=a(46479),f=a(85354),b=a(84837),g=a(71717),w=a(88799),v=a(71561),j=a(48520),y=a(93462),N=a(88400),C=a(21809),k=a(14140),S=a(95818),_=a(65249),z=a(71711);let M=()=>{let e=window.localStorage.getItem("tinacms-auth");if(!e)return!1;try{let t=JSON.parse(e);return"object"==typeof t&&null!==t&&"access_token"in t&&!!t.access_token}catch(e){return!1}};var E=()=>{let{edit:e}=(0,_.i)(),t=(0,b.usePathname)(),[a,r]=(0,g.useState)(!1);return((0,g.useEffect)(()=>{r(!e&&M())},[e]),a)?(0,o.jsxs)("a",{href:"/admin/index.html#/~".concat(t),className:"flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full bg-orange-500 px-3 py-1.5 text-sm font-semibold text-white shadow-sm transition-colors hover:bg-orange-600",children:[(0,o.jsx)(z.Z,{className:"h-5 w-auto fill-white"}),"Edit âï¸"]}):null},T=a(25546),L=a(54566);let V=(0,p.default)(()=>a.e(1247).then(a.bind(a,21247)).then(e=>e.DemoForm),{loadableGenerated:{webpack:()=>[21247]},ssr:!1}),I=(0,p.default)(()=>a.e(2247).then(a.bind(a,42247)).then(e=>e.EmailForm),{loadableGenerated:{webpack:()=>[42247]},ssr:!1}),O=(0,p.default)(()=>a.e(5224).then(a.bind(a,25224)),{loadableGenerated:{webpack:()=>[25224]},ssr:!1});(r=n||(n={})).White="white",r.Blue="blue",r.Orange="orange",r.Seafoam="seafoam",r.Ghost="ghost";let A=e=>{let{className:t}=e;return(0,o.jsx)(x.default,{src:"/flags/en.png",alt:"English Flag",width:20,height:12,className:t})},F=e=>{let{className:t}=e;return(0,o.jsx)(x.default,{src:"/flags/zh.png",alt:"Chinese Flag",width:20,height:12,className:t})},H="modalButton",P="stringItem",Z="groupOfStringItems",q="GitHubStarButton",D={MdEmail:y.ixJ,FaCalendarDay:v.S08},R=()=>(0,o.jsx)(w.rpH,{className:"text-blue-200 text-sm inline ml-1"}),W=()=>(0,o.jsx)("svg",{className:"w-5 h-5 mr-2",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})});function B(e){return e._template===H}function G(e){return e._template===q}function J(e){return e.map(e=>B(e)||e._template===P||e._template===Z||G(e)||"doubleNavItemDropDown"===e._template?e:(console.warn("Unknown nav item template: ".concat(e._template,". Falling back to string item.")),{_template:P,label:e.label,href:e.href||"/"}))}let Q="flex items-center py-2 text-blue-700 hover:text-blue-500 transition ease-out duration-150 drop-shadow-sm text-base font-medium",U=e=>{let{navItems:t,openModal:a,selectedFlag:r,starCount:l}=e,[s,n]=(0,g.useState)(!1),[i,c]=(0,g.useState)(null),d=()=>{let e=!s;n(e),document.body.style.overflow=e?"hidden":"auto",e||c(null)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("nav",{"aria-label":"Mobile navigation",className:"fixed top-0 right-0 h-full w-[300px] bg-linear-to-t from-blue-50 to-white shadow-2xl z-50 transition ease-out duration-200 ".concat(s?"translate-x-0":"translate-x-full"," "),children:[(0,o.jsxs)("button",{type:"button",className:"absolute top-20 left-0 -translate-x-full transition duration-150 ease-out rounded-l-full flex items-center font-ibm-plex whitespace-nowrap leading-tight hover:shadow active:shadow-none text-orange-500 hover:text-orange-400 border border-gray-100/60 bg-linear-to-br from-white to-gray-50 pr-3 pl-4 pt-[8px] pb-[6px] text-sm font-medium cursor-pointer",onClick:d,children:[(0,o.jsx)(w.ib2,{className:"h-6 w-auto transition ease-out duration-200 ".concat(s?"opacity-0":"opacity-100")}),(0,o.jsx)(j.QAE,{className:"absolute h-6 w-auto transition ease-out duration-150 ".concat(s?"opacity-100":"opacity-0")})]}),(0,o.jsxs)("div",{className:"h-full w-full absolute overflow-y-auto",children:[(0,o.jsxs)("div",{className:"flex py-4 px-6 relative z-20 justify-between items-center",children:[(0,o.jsx)("div",{className:"pb-4 pt-2",children:(0,o.jsx)(f.default,{href:"/",children:(0,o.jsx)(m,{className:"flex items-center h-auto fill-orange-500"})})}),(0,o.jsxs)("div",{className:"flex items-center gap-3",children:[(0,o.jsx)("button",{type:"button",className:"outline-hidden hover:animate-jelly duration-600",onClick:()=>a("LanguageSelect"),children:"en"===r?(0,o.jsx)(A,{className:"w-8 h-8"}):(0,o.jsx)(F,{className:"w-8 h-8"})}),(0,o.jsx)(E,{})]})]}),(0,o.jsxs)(T.Qj,{link:"https://app.tina.io",color:"blue",size:"medium",className:"cursor-pointer outline-hidden mx-6 justify-center",children:[" ","My TinaCloud"]}),(0,o.jsx)("ul",{className:"flex flex-col py-4 px-6 relative z-20",children:t.map((e,t)=>(function(e,t){let{index:a,starCount:r,closeMenu:l,openDropdown:s,setOpenDropdown:n,openM
1odal:i}=t,c="mobile-".concat(a,"-").concat(e.label),d=s===c;switch(e._template){case Z:return(0,o.jsxs)("li",{className:"group ".concat(Q," flex flex-col items-start text-lg"),children:[(0,o.jsxs)("button",{type:"button",className:"flex items-center cursor-pointer",onClick:()=>n(d?null:c),children:[e.label,(0,o.jsx)(w.OrA,{className:"w-4 h-4 ml-0.5 transition-transform duration-200 ".concat(d?"rotate-180":"")})]}),(0,o.jsx)("ul",{className:"flex flex-col pl-4 overflow-hidden transition-all duration-200 ease-in-out ".concat(d?"max-h-96 opacity-100 mt-2":"max-h-0 opacity-0"),children:e.items.map((e,t)=>(0,o.jsx)("li",{children:e.modal?(0,o.jsx)("button",{type:"button",onClick:()=>{n(null),l(),i(e.modal)},className:"py-2 px-2 flex items-center text-gray-600 hover:text-blue-500 w-full text-left cursor-pointer",children:e.label}):(0,o.jsxs)(f.default,{href:e.href,prefetch:(0,S.U)(e.href),target:e.external?"_blank":"_self",rel:e.external?"noopener noreferrer":void 0,onClick:()=>{n(null),l()},className:"py-2 px-2 flex items-center text-gray-600 hover:text-blue-500",children:[e.label,e.href.startsWith("https://")&&(0,o.jsx)(R,{})]})},"".concat(a,"-").concat(t,"-").concat(e.modal||e.href)))})]},"".concat(a,"-").concat(e.label));case P:return(0,o.jsx)("li",{className:"group ".concat(Q),children:(0,o.jsx)(f.default,{href:e.href,target:e.external?"_blank":"_self",className:"py-2",onClick:l,children:e.label})},"".concat(a,"-").concat(e.href));case q:return(0,o.jsx)("li",{className:"group ".concat(Q," py-2 flex items-center"),children:(0,o.jsx)(f.default,{href:"https://github.com/".concat(e.owner,"/").concat(e.repo),target:"_blank",rel:"noopener noreferrer",className:"flex items-center",onClick:l,children:(0,o.jsxs)("span",{className:"flex items-center",children:[(0,o.jsx)(W,{}),r>0&&(0,o.jsx)("span",{className:"text-sm font-medium",children:r.toLocaleString()})]})})},"".concat(a,"-").concat(e.owner,"-").concat(e.repo));default:return null}})(e,{index:t,starCount:l,openDropdown:i,setOpenDropdown:c,closeMenu:d,openModal:a}))})]})]}),(0,o.jsx)("div",{className:"fixed top-0 left-0 w-full h-full bg-gray-900/70 z-30 ".concat(s?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:d}),(0,o.jsx)(f.default,{href:"/",children:(0,o.jsx)(m,{className:"flex items-center h-auto fill-orange-500"})}),(0,o.jsx)("div",{className:"flex space-x-2 gap-2 cursor-pointer",children:t.filter(e=>e._template===H).map((e,t)=>B(e)&&(0,o.jsxs)(T.zx,{color:e.color,size:"extraSmall",onClick:()=>a(e.modal),children:[e.icon2&&D[e.icon2]&&(0,o.jsx)("span",{className:"mr-2",children:D[e.icon2]({className:"w-5 h-5"})}),e.label]},"".concat(t,"-").concat(e.modal)))})]})},Y=e=>{let{navItems:t,openModal:a,selectedFlag:r,starCount:l,openDropdown:s,openDropdownMenu:n,closeDropdownMenu:i,setOpenDropdown:c,pathName:d}=e;return(0,o.jsxs)("nav",{className:"w-full max-w-7xl mx-auto flex items-center justify-between",children:[(0,o.jsx)(f.default,{href:"/",children:(0,o.jsx)(m,{className:"flex items-center h-auto fill-orange-500"})}),(0,o.jsx)("ul",{className:"flex gap-4 items-end justify-center mt-2",children:t.map((e,t)=>(function(e,t,a){let{index:r,openModal:l,openDropdown:s,openDropdownMenu:n,closeDropdownMenu:i,setOpenDropdown:c,starCount:d}=a;switch(e._template){case H:return(0,o.jsx)("li",{className:"group ".concat(Q),children:(0,o.jsxs)(T.zx,{color:e.color,size:"small",onClick:()=>l(e.modal),children:[e.icon2&&D[e.icon2]&&(0,o.jsx)("span",{className:"mr-2",children:D[e.icon2]({className:"w-5 h-5"})}),e.label]})},"".concat(r,"-").concat(e.modal));case P:return(0,o.jsx)("li",{className:"group ".concat(Q," border-blue-500"),children:(0,o.jsx)(f.default,{href:e.href,target:e.external?"_blank":"_self",rel:e.external?"noopener noreferrer":void 0,className:"",children:e.label})},"".concat(r,"-").concat(e.href));case Z:return(0,o.jsxs)("li",{className:"relative group ".concat(Q," w-fit ").concat(e.items.some(e=>e.href===t)?"bg-[#ECF7F8]":"bg-transparent"," transition-all duration-300 ease-out hover:bg-[#ECF7F8] rounded-xl pl-3 pr-2 cursor-pointer"),onMouseLeave:i,children:[(0,o.jsxs)("button",{type:"button",className:"flex items-center justify-center group cursor-pointer",onMouseEnter:t=>n("".concat(r,"-").concat(e.label),t),onClick:t=>n("".concat(r,"-").concat(e.label),t),children:[e.label,(0,o.jsx)(w.OrA,{className:"w-4 h-4 ml-0.5"})]}),(0,o.jsx)("div",{className:"absolute left-0 top-full h-5 min-w-full","aria-hidden":!0}),(0,o.jsx)("ul",{className:"absolute -left-[10px] top-full min-w-full mt-5 w-max bg-[#ECF7F8] shadow-lg rounded-xl p-2 transition-opacity duration-200 ease-in-out ".concat(s==="".concat(r,"-").concat(e.label)?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),children:e.items.map((e,t)=>(0,o.jsx)("li",{children:e.modal?(0,o.jsx)("button",{type:"button",onClick:()=>{c(null),l(e.modal)},className:"touch-manipulation py-2 px-2 flex items-center group hover:bg-white/60 rounded-md transition duration-150 ease-out text-gray-600 hover:text-blue-500
1w-full text-left cursor-pointer",children:e.label}):(0,o.jsxs)(f.default,{href:e.href,prefetch:(0,S.U)(e.href),target:e.href.startsWith("https")?"_blank":void 0,rel:e.href.startsWith("https")?"noopener noreferrer":void 0,onClick:()=>{c(null)},className:"touch-manipulation py-2 px-2 flex items-center group hover:bg-white/60 rounded-md transition duration-150 ease-out text-gray-600 hover:text-blue-500",children:[e.label,e.href.startsWith("https")&&(0,o.jsx)(w.rpH,{className:"text-blue-200 text-sm group-hover:text-blue-400 inline ml-1"})]})},"".concat(r,"-").concat(t,"-").concat(e.modal||e.href)))})]},"".concat(r,"-").concat(e.label));case q:return(0,o.jsx)("li",{className:"group ".concat(Q," py-2 flex items-center"),children:(0,o.jsx)(f.default,{href:"https://github.com/".concat(e.owner,"/").concat(e.repo),target:"_blank",rel:"noopener noreferrer",className:"flex items-center",children:(0,o.jsxs)("span",{className:"flex items-center",children:[(0,o.jsx)(W,{}),d>0&&(0,o.jsx)("span",{className:"text-sm font-medium",children:d.toLocaleString()})]})})},"".concat(r,"-").concat(e.owner,"-").concat(e.repo));default:return null}})(e,d,{index:t,openModal:a,openDropdown:s,openDropdownMenu:n,closeDropdownMenu:i,setOpenDropdown:c,starCount:l}))}),(0,o.jsxs)("li",{className:"flex items-center gap-4",children:[(0,o.jsxs)(T.Qj,{link:"https://app.tina.io",color:"blue",size:"medium",className:"cursor-pointer outline-hidden",children:[" ","My TinaCloud"]}),(0,o.jsx)("button",{type:"button",className:"cursor-pointer outline-hidden hover:animate-jelly duration-600",onClick:()=>a("LanguageSelect"),children:"en"===r?(0,o.jsx)(A,{className:"w-8 h-8"}):(0,o.jsx)(F,{className:"w-8 h-8"})}),(0,o.jsx)(E,{})]})]})};function X(e){let{sticky:t=!0}=e,[a,r]=(0,g.useState)(!1),[l,s]=(0,g.useState)(null),[n,d]=(0,g.useState)(0),[u,m]=(0,g.useState)(h.ZW),[p,x]=(0,g.useState)(null),[f,w]=(0,g.useState)(Array.isArray(i.navItem)?J(i.navItem):[]),v=(0,g.useRef)(null),j=(0,b.useRouter)(),y=(0,b.usePathname)();(0,g.useEffect)(()=>{if(!t)return;let e=()=>{v.current&&r(window.scrollY>50)};return window.addEventListener("scroll",e,{passive:!0}),()=>{window.removeEventListener("scroll",e)}},[t]);let S=e=>s(e),_=()=>s(null);return(0,g.useEffect)(()=>{m((0,k.Su)(window.location.host)||(0,k.zo)(y)?h.Qv.ZH:h.Qv.EN)},[y]),(0,g.useEffect)(()=>{w(u===h.Qv.ZH?c&&Array.isArray(c.navItem)?J(c.navItem):[]:i&&Array.isArray(i.navItem)?J(i.navItem):[])},[u]),(0,g.useEffect)(()=>{(async()=>{let e=f.find(e=>e._template===q);e&&G(e)&&d(await (0,C.Z)(e.owner,e.repo))})()},[f]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("header",{ref:v,className:"relative w-full",children:[(0,o.jsx)("div",{className:"flex xl:hidden w-full py-4 pl-4 pr-18 items-center justify-between gap-6",children:(0,o.jsx)(U,{navItems:f,openModal:S,selectedFlag:u,starCount:n})}),(0,o.jsx)("div",{className:"absolute ".concat(a&&t?"xl:fixed shadow-sm bg-linear-to-r from-[rgba(216,251,248,0.6)] to-[rgba(215,233,255,0.6)] backdrop-blur-sm animate-slide-in top-0 p-4":"translate-y-2 px-4 pt-4 pb-6"," z-40 w-full lg:px-10 hidden xl:flex items-center justify-between"),children:(0,o.jsx)(Y,{navItems:f,openModal:S,selectedFlag:u,starCount:n,openDropdown:p,openDropdownMenu:(e,t)=>{t&&(t.stopPropagation(),t.preventDefault()),x(e)},closeDropdownMenu:()=>{x(null)},setOpenDropdown:x,pathName:y})})]}),(0,o.jsx)(N.Vq,{open:"BookDemo"===l,onOpenChange:e=>!e&&_(),children:(0,o.jsx)(N.cZ,{className:"max-w-5xl w-[90vw]",children:(0,o.jsx)(V,{})})}),(0,o.jsx)(N.Vq,{open:"EmailForm"===l,onOpenChange:e=>!e&&_(),children:(0,o.jsx)(N.cZ,{className:"max-w-5xl w-[90vw]",children:(0,o.jsx)(I,{isFooter:!1})})}),(0,o.jsx)(N.Vq,{open:"ContactForm"===l,onOpenChange:e=>!e&&_(),children:(0,o.jsx)(N.cZ,{className:"!max-w-2xl w-[90vw] !max-h-[90vh] !p-0 !duration-0",children:(0,o.jsx)(L.t,{})})}),(0,o.jsx)(N.Vq,{open:"LanguageSelect"===l,onOpenChange:e=>!e&&_(),children:(0,o.jsx)(N.cZ,{className:"sm:max-w-md",children:(0,o.jsx)(O,{onLanguageSelect:e=>{(function(e){h.RF.includes(e)||(console.warn("Attempted to save unsupported locale: ".concat(e)),e=h.ZW);let t=new Date;t.setFullYear(t.getFullYear()+1),document.cookie="NEXT_LOCALE=".concat(e,"; expires=").concat(t.toUTCString(),"; path=/; SameSite=Lax")})(e),m(e),_();let t=(0,k.JD)(y)||"/",a=(0,k.TO)(e),r=window.location.host;if(!((0,k.Su)(r)||(0,k.UI)(r))){let a=e===h.Qv.ZH;j.push(a?"/zh".concat("/"===t?"":t)||0:t);return}window.location.href="".concat(a).concat(t)},currentLanguage:u})})})]})}},38684:function(e,t,a){"use strict";a.d(t,{CloudBanner:function(){return c}});var r=a(28117),l=a(85354),s=a(71717),n=a(71561),o=a(21809);a(27123);let i=e=>"".concat((100*Math.round(e/100)/1e3).toFixed(1),"k");
1function c(){let[e,t]=(0,s.useState)(0);return(0,s.useEffect)(()=>{(async()=>{t(await (0,o.Z)("tinacms","tinacms"))})()},[]),(0,r.jsx)("div",{className:" relative z-10 w-full flex flex-col items-center justify-center py-3 px-4 text-base leading-[1.2] bg-[linear-gradient(90deg,white,#f2fdfc_33.3%,#e6faf8_100%)] shadow-[0_0_8px_2px_rgba(0,0,0,0.03)] border-b border-[#d1faf6] text-(--color-tina-blue) lg:flex-row lg:pl-8 lg:pr-10 ",children:(0,r.jsx)("div",{className:" flex items-center mt-[0.3rem] mb-2 lg:mb-0 ",children:(0,r.jsxs)(l.default,{className:"pr-2 text-slate-700 hover:text-slate-950 transition-colors duration-200 flex items-center gap-1 ",href:"https://github.com/tinacms/tinacms",target:"_blank",rel:"noopener noreferrer",children:["Loving Tina?"," ",(0,r.jsx)(n.QJe,{className:"ml-1 "})," ","us on GitHub",(0,r.jsxs)("span",{className:"flex items-center",children:[(0,r.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})}),(0,r.jsx)("span",{className:"text-sm font-medium ml-1",children:i(e)})]})]})})})}},21997:function(e,t,a){"use strict";var r=a(28117),l=a(89424),s=a(85354),n=a(71717);t.default=()=>{let[e,t]=(0,n.useState)(!1),[a,o]=(0,n.useState)(!1),[i,c]=(0,n.useState)(()=>{let e=l.Z.get("consentGiven");return e?JSON.parse(e):{ad_storage:!1,ad_personalization:!1,analytics_storage:!1,ad_user_data:!1}});(0,n.useEffect)(()=>{l.Z.get("consentGiven")||t(!0)},[]);let d=e=>{c({...i,[e.target.name]:e.target.checked})},u=(0,n.useCallback)(()=>{o(!1),t(!0)},[]);return(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&u()};if(a)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[a,u]),(0,r.jsxs)(r.Fragment,{children:[e&&(0,r.jsxs)("div",{className:"fixed flex flex-col gap-4 bottom-0 w-full z-50 bg-linear-to-br from-orange-400 to-orange-600 text-white p-6 text-center justify-center items-center",children:[(0,r.jsxs)("p",{className:"pb-2",children:["We use cookies to improve your experience. By continuing, you accept our"," ",(0,r.jsx)(s.default,{href:"/privacy-notice",className:"text-white underline",children:"cookie policy"}),"."]}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("button",{type:"button",onClick:()=>{let e={ad_storage:!0,ad_personalization:!0,analytics_storage:!0,ad_user_data:!0};l.Z.set("consentGiven",JSON.stringify(e),{expires:365}),c(e),t(!1)},className:"font-ibm-plex text-sm mx-2 px-6 py-2 bg-white text-[#ea6d43] rounded-3xl hover:bg-gray-200 cursor-pointer",children:"Accept All"}),(0,r.jsx)("button",{type:"button",onClick:()=>{l.Z.set("consentGiven",JSON.stringify({ad_storage:!1,ad_personalization:!1,analytics_storage:!1,ad_user_data:!1}),{expires:365}),t(!1)},className:"mx-2 px-6 py-2 font-ibm-plex text-sm border-2 border-white rounded-3xl hover:bg-orange-600 cursor-pointer",children:"Reject All"})]}),(0,r.jsx)("button",{type:"button",className:"underline font-ibm-plex text-sm cursor-pointer",onClick:()=>{o(!0),t(!1)},children:"Manage cookies"})]}),a&&(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:e=>{e.target===e.currentTarget&&u()},children:(0,r.jsxs)("div",{className:"bg-white p-10 rounded-lg w-11/12 sm:w-96 md:w-2/3 lg:w-1/3",children:[(0,r.jsx)("h2",{className:"text-xl md:text-xl lg:text-3xl text-orange-600 font-ibm-plex mb-4 text-center",children:"Customize your Consent Preferences"}),(0,r.jsx)("div",{className:"lg:flex lg:justify-center lg:ml-auto lg:mr-auto",children:(0,r.jsxs)("ul",{className:"p-3 space-y-1 text-sm text-gray-700",children:[(0,r.jsx)("li",{children:(0,r.jsx)("div",{className:"flex p-2 rounded",children:(0,r.jsxs)("label",{className:"inline-flex items-center w-full cursor-pointer",children:[(0,r.jsx)("input",{type:"checkbox",name:"ad_storage",checked:i.ad_storage,onChange:d,className:"sr-only peer"}),(0,r.jsx)("div",{className:"relative w-9 h-5 bg-gray-200 peer-focus:outline-hidden peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:rtl:after:translate-x-[-100%] peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:bg-orange-600"}),(0,r.jsx)("span",{className:"ms-3 font-semibold text-sm",children:"Ad Storage"})]})})}),(0,r.jsx)("li",{children:(0,r.jsx)("div",{className:"flex p-2 rounded",children:(0,r.jsxs)("label",{className:"inline-flex items-center w-full cursor-pointer",children:[(0,r.jsx)("input",{type:"checkbox",name:"ad_personalization",checked:i.ad_personalization,onChange:d,className:"sr-only peer"}),(0,r.jsx)("div",{className:"relative w-9 h-5 bg-gray-200 peer-focus:outline-hidden peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:rtl:after:translate-x-[-100%] peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:bg-orange-600"}),(0,r.jsx)("span",{className:"ms-3 font-semibold text-sm",children:"Ad Personalization"})]})})}),(0,r.jsx)("li",{children:(0,r.jsx)("div",{className:"flex p-2 rounded",children:(0,r.jsxs)("label",{className:"inline-flex items-center w-full cursor-pointer",children:[(0,r.jsx)("input",{type:"checkbox",name:"analytics_storage",checked:i.analytics_storage,onChange:d,className:"sr-only peer"}),(0,r.jsx)("div",{className:"relative w-9 h-5 bg-gray-200 peer-focus:outline-hidden peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:rtl:after:translate-x-[-100%] peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:bg-orange-600"}),(0,r.jsx)("span",{className:"ms-3 font-semibold text-sm",children:"Analytics Storage"})]})})}),(0,r.jsx)("li",{children:(0,r.jsx)("div",{className:"flex p-2 rounded",children:(0,r.jsxs)("label",{className:"inline-flex items-center w-full cursor-pointer",children:[(0,r.jsx)("input",{type:"checkbox",name:"ad_user_data",checked:i.ad_user_data,onChange:d,className:"sr-only peer"}),(0,r.jsx)("div",{className:"relative w-9 h-5 bg-gray-200 peer-focus:outline-hidden peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:rtl:after:translate-x-[-100%] peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:bg-orange-600"}),(0,r.jsx)("span",{className:"ms-3 font-semibold text-sm",children:"Ad User Data"})]})})})]})}),(0,r.jsxs)("div",{className:"flex gap-3 justify-center mt-4",children:[(0,r.jsx)("button",{type:"button",onClick:u,className:"px-4 py-2 border-2 border-orange-600 text-orange-600 font-ibm-plex rounded-3xl hover:bg-orange-50",children:"Cancel"}),(0,r.jsx)("button",{type:"button",onClick:()=>{l.Z.set("consentGiven",JSON.stringify(i),{expires:365}),o(!1)},className:"px-4 py-2 bg-orange-600 text-white font-ibm-plex rounded-3xl hover:bg-orange-700",children:"Save my Preferences"})]})]})})]})}},22671:function(e,t,a){"use strict";a.d(t,{LanguageSupportAlert:function(){return f}});var r=a(28117),l=a(65505),s=a(42334),n=a(33141),o=a(84837),i=a(71717),c=a(4847),d=a(49279),u=a(1742);let m=(0,d.j)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),h=i.forwardRef((e,t)=>
1{let{className:a,variant:l,...s}=e;return(0,r.jsx)("div",{ref:t,role:"alert",className:(0,u.cn)(m({variant:l}),a),...s})});h.displayName="Alert";let p=i.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("h5",{ref:t,className:(0,u.cn)("mb-1 font-medium leading-none tracking-tight",a),...l})});p.displayName="AlertTitle";let x=i.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("div",{ref:t,className:(0,u.cn)("text-sm [&_p]:leading-relaxed",a),...l})});function f(){let[e,t]=(0,i.useState)(!1),a=(0,o.usePathname)(),d=(0,i.useRef)(""),u=e=>!!e&&Object.values(n.Qv).some(t=>e==="/".concat(t)||e.startsWith("/".concat(t,"/"))),m=e=>e?e.startsWith("/blog")?"blog":e.startsWith("/whats-new")?"whats-new":"pages":"pages";return((0,i.useEffect)(()=>{let e=d.current;d.current=a,(async()=>{if(u(e)&&!u(a)){let e=m(a);t(!await (0,c.g)(e,a))}else t(!1)})()},[a,m,u]),e)?(0,r.jsx)("div",{className:"fixed bottom-3 left-3 z-50 max-w-md",children:(0,r.jsxs)(h,{variant:"default",className:"bg-yellow-100 border-yellow-400 text-yellow-800 cursor-pointer transition-opacity relative pr-8",children:[(0,r.jsx)(l.Z,{className:"h-4 w-4 text-yellow-600"}),(0,r.jsxs)(p,{className:"font-medium mb-3",children:[(0,r.jsx)("span",{className:"mr-2",children:"è¦å"}),(0,r.jsx)("span",{children:"Warning"})]}),(0,r.jsxs)(x,{children:[(0,r.jsx)("p",{className:"mb-1",children:"å½å页é¢ä»
æ¯æè±æçæ¬ã"}),(0,r.jsx)("p",{children:"Current page only supports English version."})]}),(0,r.jsx)("button",{type:"button",className:"absolute top-2 right-2 rounded-full hover:bg-yellow-200 flex items-center justify-center",onClick:e=>{e.stopPropagation(),t(!1)},"aria-label":"Close",style:{padding:2},children:(0,r.jsx)(s.Z,{className:"h-4 w-4 text-yellow-600"})})]})}):null}x.displayName="AlertDescription"},71797:function(e,t,a){"use strict";a.d(t,{Footer:function(){return _}});var r=a(28117),l=a(85354),s=a(84837),n=a(71717),o=a(88400);a(27123);var i=a(14140),c=a(7294),d=a(54566),u=a(39213);let m=[{header:"产å",footerItem:[{href:"/showcase",label:"æ¡ä¾å±ç¤º"},{href:"https://app.tina.io",label:"TinaCloud"},{href:"/docs",label:"产åä»ç»"},{href:"/docs/product-tour",label:"å·¥ä½åç"},{label:"产å路线",href:"/roadmap"}]},{header:"èµæº",footerItem:[{label:"å客",href:"/blog"},{label:"示ä¾",href:"/examples"},{label:"产å对æ¯",href:"/compare-tina"},{label:"ææ¯æ¯æ",href:"/docs/support"},{href:"/media",label:"åªä½èµæº"}]},{label:"",footerItem:[{label:"ææ°å¨æ",items:[{href:"/whats-new/tinacms",label:"TinaCMS"},{href:"/whats-new/tinacloud",label:"TinaCloud"}]},{label:"åºç¨åºæ¯",items:[{href:"/agencies",label:"å¼åæºæ"},{href:"/documentation",label:"ææ¡£ç®¡ç"},{href:"/cms-for-teams",label:"å¢éåä½"},{href:"/jamstack-cms",label:"Jamstack CMS"}]},{label:"æ ¸å¿ä¼å¿",items:[{href:"/mdx-cms",label:"MDXæ¯æ"},{href:"/markdown-cms",label:"Markdownæ¯æ"},{href:"/git-cms",label:"Gitéæ"},{href:"/editorial-workflow",label:"ç¼è¾å·¥ä½æµ"},{href:"/flexible-cms",label:"é«åº¦å®å¶"},{href:"/seo",label:"SEOä¼å"}]},{label:"éææ¹æ¡",items:[{href:"/astro",label:"Astro"},{href:"/hugo-cms",label:"Hugo"},{href:"/nextjs-cms",label:"NextJS"},{href:"/jekyll-cms",label:"Jekyll"}]}]}],h=[{href:"/security",label:"å®å
¨æ¿ç"},{href:"/telemetry",label:"弿ºé¥æµ"},{href:"/terms-of-service",label:"æå¡æ¡æ¬¾"},{href:"/privacy-notice",label:"éç§å£°æ"},{href:"https://github.com/tinacms/tinacms/blob/master/LICENSE",label:"弿ºè®¸å¯"},{href:"/docs/support",label:"ææ¯æ¯æ"}];var p=a(46479);let x=e=>{let{socialLinks:t}=e;return(0,r.jsx)("div",{className:"flex flex-wrap lg:flex-nowrap justify-center md:justify-start md:ml-5 lg:items-start gap-6 drop-shadow-sm lg:ml-0 !items-center",children:t.map((e,t)=>"WeChat"===e.label?(0,r.jsx)(f,{socialLink:e},"wechat"):(0,r.jsx)(b,{link:e.href,children:(0,r.jsx)(p.default,{src:e.image,alt:e.label,width:14,height:14,className:"w-6 h-auto"})},e.href))})},f=e=>{let{socialLink:t}=e;return(0,r.jsxs)("div",{className:"relative group",children:[(0,r.jsx)("button",{className:"transition ease-out duration-150 opacity-80 hover:opacity-100 flex items-center gap-2 font-ibm-plex cursor-pointer","aria-label":"WeChat QR Code",type:"button",children:(0,r.jsx)(p.default,{src:t.image,alt:t.label,width:14,height:14,className:"w-6 h-auto"})}),(0,r.jsxs)("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-3 hidden group-hover:block z-50 w-max",children:[(0,r.jsx)("div",{className:"bg-white rounded-lg py-2 px-0.5 shadow-xl border border-gray-100",children:(0,r.jsx)(p.default,{src:"/WeChat-QRcode.jpg",alt:"WeChat QR Code",width:200,height:200,priority:!0,className:"block w-[200px] h-[200px]"})}),(0,r.jsx)("div",{className:"w-3 h-3 bg-white border-b border-r border-gray-100 rotate-45 mx-auto -mt-1.5 shadow-sm"})]})]})},b=e=>{let{link:t,children:a}=e;return(0,r.jsx)("a",{className:"transition ease-out duration-150 opacity-80 hover:opacity-100 flex items-center gap-2 font-ibm-plex",href:t||"",target:"_blank",rel:"noopener noreferrer",children:a})};var g=a(67269),w=a(48520),v=a(31496),j=a(92496);let y=e=>{let{props:t}=e,{label:a}
1=t,[l,s]=(0,n.useState)({firstName:"",lastName:"",email:"",notes:""}),[o,i]=(0,n.useState)(!1),[c,d]=(0,n.useState)({text:"",type:""}),u=e=>{let{name:t,value:a}=e.target;s(e=>({...e,[t]:a}))},m=async e=>{e.preventDefault(),i(!0),d({text:"",type:""});try{let e=await (0,j.N)(l.email,l.firstName,l.lastName,l.notes);"success"===e.result?(d({text:"You've been added to the llama list!",type:"success"}),s({firstName:"",lastName:"",email:"",notes:""})):e.message.includes("400")?d({text:"You're already in our herd!",type:"warning"}):d({text:"There was an error. Please try again.",type:"error"})}catch(e){console.error("Error submitting form:",e),d({text:"There was an error. Please try again.",type:"error"})}finally{i(!1)}};return(0,r.jsx)("div",{className:"flex flex-col mt-4 md:mt-0",children:(0,r.jsxs)("form",{className:"flex flex-col text-left gap-1.5 items-start w-full",onSubmit:m,children:[(0,r.jsx)("h2",{className:" md:text-xl font-ibm-plex text-white",children:"Join the Herd!"}),(0,r.jsx)("p",{className:"text-sm text-white/80 pb-1.5",children:"Join our coding community for the latest tips and news."}),(0,r.jsxs)("div",{className:"flex flex-col gap-2.5 w-full",children:[(0,r.jsxs)("div",{className:"flex gap-2.5",children:[(0,r.jsx)("input",{className:"w-full px-2 py-2 text-sm text-white border rounded-sm border-white placeholder:!text-white/70 bg-white/10",placeholder:"First name",name:"firstName",type:"text",autoComplete:"given-name",value:l.firstName,onChange:u,required:!0,disabled:o}),(0,r.jsx)("input",{className:"w-full px-2 py-2 text-sm bg-white/10 text-white border rounded-sm border-white placeholder:!text-white/70",placeholder:"Last name",name:"lastName",type:"text",autoComplete:"family-name",value:l.lastName,onChange:u,required:!0,disabled:o})]}),(0,r.jsx)("input",{className:"w-full px-2 py-2 text-sm bg-white/10 text-white border rounded-sm border-white placeholder:!text-white/70",placeholder:"Email",name:"email",type:"email",autoComplete:"email",value:l.email,onChange:u,required:!0,disabled:o}),(0,r.jsx)("textarea",{className:"w-full px-2 py-2 text-sm bg-white/10 text-white border rounded-sm border-white placeholder:!text-white/70",placeholder:"Notes",name:"notes",autoComplete:"off",rows:2,value:l.notes,onChange:u,disabled:o}),c.text&&(0,r.jsxs)("p",{className:"text-xs flex items-center gap-1 ".concat("success"===c.type?"text-green-300":(c.type,"text-white")),children:["success"===c.type&&(0,r.jsx)(v.jbV,{className:"w-3 h-3"}),"warning"===c.type&&(0,r.jsx)(w.SVk,{className:"w-3 h-3"}),"error"===c.type&&(0,r.jsx)(g.sQZ,{className:"w-3 h-3"}),c.text]}),(0,r.jsx)("div",{className:"flex justify-center pt-1",children:(0,r.jsx)("button",{type:"submit",className:"px-2 py-2 text-sm w-full bg-white text-orange-600 font-ibm-plex shadow-xl hover:bg-white/80 transition-colors duration-200 rounded-full cursor-pointer",disabled:o,children:o?"Subscribe...":a})})]})]})})},N="inline-block drop-shadow-sm relative opacity-90 hover:opacity-100 text-white uppercase text-lg lg:text-xl font-ibm-plex transition duration-150 ease-out hover:-translate-y-px hover:drop-shadow-[0_0_6px_rgba(255,255,255,0.5)] active:translate-y-px hover:-translate-x-px active:translate-x-px",C=n.memo(e=>{let{item:t}=e,[a,l]=n.useState(!1);return(0,r.jsxs)("details",{className:"".concat(N," cursor-pointer"),onClick:()=>l(!a),children:[(0,r.jsx)("summary",{className:"hover:-translate-y-px hover:drop-shadow-[0_0_6px_rgba(255,255,255,0.5)] active:translate-y-px hover:-translate-x-px active:translate-x-px hover:opacity-100 cursor-pointer",children:t.label}),(0,r.jsx)("div",{className:"p-4",children:t.items.map((e,t)=>(0,r.jsx)("div",{children:(0,r.jsx)(u._i,{href:e.href||"",passHref:!0,children:(0,r.jsx)("div",{className:"hover:-translate-y-px hover:drop-shadow-[0_0_6px_rgba(255,255,255,0.5)] active:translate-y-px hover:-translate-x-px active:translate-x-px hover:opacity-100 cursor-pointer",children:e.label})})},e.id||e.href||e.label||"sub-item-".concat(t)))})]})});C.displayName="LinkGroup";let k=n.memo(e=>{let{item:t}=e,{href:a,label:l}=t;return(0,r.jsx)(u._i,{href:a||"",passHref:!0,children:(0,r.jsx)("div",{className:N,children:l})})});k.displayName="LinkItem";let S=n.memo(e=>{let{link:t,label:a}=e;return(0,r.jsx)(l.default,{href:t||"",className:"transition ease-out duration-150 hover:drop-shadow-[0_0_6px_rgba(255,255,255,0.5)] hover:opacity-100 opacity-70 whitespace-nowrap",passHref:!0,children:a})});function _(e){let{footerData:t}
1=e,a=(0,s.usePathname)(),[l,u]=(0,n.useState)(!1),[p,f]=(0,n.useState)(!1);(0,n.useEffect)(()=>{u((0,i.Su)(window.location.host)||(0,i.zo)(null!=a?a:""))},[a]);let{socialLinks:b,currentFooterNav:g,currentFooterLinks:w,modalButton:v}=(0,n.useMemo)(()=>{let e=t.Column4.footerItem.filter(e=>"socialLink"===e._template)||[];return{socialLinks:e,currentFooterNav:l?m:[t.Column1,t.Column2,t.Column3],currentFooterLinks:l?h:t.Column4.footerItem.filter(e=>"stringItem"===e._template),modalButton:t.Column4.footerItem.find(e=>"modalButton"===e._template)}},[t,l]);return(0,r.jsxs)("footer",{children:[(0,r.jsxs)("div",{className:"bg-[url('/svg/orange-bg.svg')] bg-cover bg-center",children:[v&&"modalButton"===v._template&&(0,r.jsx)("div",{className:"px-6 md:mx-auto max-w-7xl w-full pt-8 pb-6 lg:hidden",children:(0,r.jsx)(y,{props:v})}),(0,r.jsx)("div",{className:"px-6 md:mx-auto max-w-7xl w-full py-8 lg:py-16 lg:px-8",children:(0,r.jsxs)("div",{className:"flex flex-row gap-6",children:[(0,r.jsx)("div",{className:"hidden md:block max-w-[15%] flex-1 drop-shadow-sm",children:(0,r.jsx)(c.A,{color:"white"})}),(0,r.jsxs)("div",{className:"flex-1 grid grid-cols-2 py-2 lg:py-0 md:grid-cols-2 lg:grid-cols-4 gap-6 md:gap-4",children:[g.map((e,t)=>{let{header:a,footerItem:l}=e;return(0,r.jsxs)("div",{className:"flex flex-col items-stretch justify-start gap-2",children:[(0,r.jsx)("p",{className:"uppercase text-orange-300/70 text-xs font-semibold tracking-wider -mt-1",children:a}),l.map((e,t)=>"modalButton"===e._template?(0,r.jsx)("button",{type:"button",onClick:()=>f(!0),className:"".concat(N," cursor-pointer bg-transparent border-none p-0 m-0 text-left appearance-none"),children:e.label},"modal-button-".concat(e.label,"-").concat(t)):e.items?(0,r.jsx)(C,{item:e},"link-group-".concat(e.label,"-").concat(t)):(0,r.jsx)(k,{item:e},"link-item-".concat(e.label,"-").concat(t)))]},"footer-nav-".concat(a,"-").concat(e.id))}),v&&"modalButton"===v._template&&(0,r.jsx)("div",{className:"hidden lg:block",children:(0,r.jsx)(y,{props:v})}),(0,r.jsx)("div",{className:"flex items-end justify-end md:hidden",children:(0,r.jsx)("div",{className:"w-12 drop-shadow-sm",children:(0,r.jsx)(c.A,{color:"white"})})})]})]})}),(0,r.jsxs)("div",{className:"max-w-7xl mx-auto flex flex-col items-center lg:flex-row lg:justify-between w-full lg:items-start py-8 gap-6 px-6 lg:px-8 text-white",children:[(0,r.jsx)(x,{socialLinks:b}),(0,r.jsxs)("div",{className:"flex drop-shadow-sm flex-wrap justify-center gap-x-6 gap-y-2 lg:justify-end",children:[(0,r.jsx)("div",{className:"flex flex-wrap justify-center gap-x-6 gap-y-2",children:w.map((e,t)=>{let{id:a,href:l,label:s}=e;return(0,r.jsx)(S,{link:l||"",label:s},"footer-link-".concat(a||t))})}),l&&(0,r.jsx)("div",{children:(0,r.jsxs)("p",{children:["ç½ç«å¤æ¡å·:"," ",(0,r.jsx)("a",{href:"https://beian.miit.gov.cn/#/Integrated/index",target:"_blank",rel:"noopener noreferrer",className:"transition-all duration-200 hover:underline hover:opacity-100 opacity-80",children:"æµICPå¤20009588å·-8"})]})})]})]})]}),(0,r.jsx)(o.Vq,{open:p,onOpenChange:f,children:(0,r.jsx)(o.cZ,{className:"!max-w-2xl w-[90vw] !max-h-[90vh] !p-0 !duration-0",children:(0,r.jsx)(d.t,{})})}),(0,r.jsxs)("div",{className:"group relative flex flex-wrap items-center justify-center gap-x-4 gap-y-2 overflow-hidden px-8 py-6 md:px-48 md:justify-between",style:{backgroundImage:"linear-gradient(to right, #CC4141 0%, #000000 100%)"},children:[(0,r.jsx)("div",{className:"absolute inset-0 z-[1] origin-left scale-x-50 transition-transform duration-1000 ease-in-out group-hover:scale-x-100",style:{backgroundImage:"linear-gradient(to right, #CC4141 0%, rgba(204,65,65,0) 100%)"}}),(0,r.jsxs)("a",{href:"https://www.ssw.com.au",target:"_blank",rel:"noopener noreferrer",className:"relative z-10 flex flex-wrap items-center justify-center gap-x-1.5 gap-y-1 text-center md:justify-start md:text-left text-white text-sm md:text-base font-bold no-underline hover:no-underline",children:["TinaCMS is actively developed by",(0,r.jsxs)("svg",{viewBox:"0 0 90 60",fill:"white",xmlns:"http://www.w3.org/2000/svg",className:"inline-block h-[2em] w-auto",role:"img","aria-label":"SSW",children:[(0,r.jsx)("title",{children:"SSW"}),(0,r.jsx)("path",{d:"M80.009 17.1911C75.893 12.4661 69.545 9.43706 62.43 9.43706C55.42 9.43706 49.1639 12.3691 45.049 16.9611C49.15 10.7141 56.1169 6.50906 64.0859 6.21606C64.3089 6.22406 64.5439 6.22906 64.7979 6.24306C65.0999 6.25606 65.42 6.30006 65.773 6.33206C66.467 6.40806 67.247 6.54606 68.08 6.74806C68.902 6.97906 69.795 7.25006 70.68 7.67106C71.565 8.08306 72.4559 8.59806 73.3259 9.21606C74.1919 9.83306 75.0259 10.5401 75.8499 11.3171C76.6629 12.0721 77.3889 12.9221 78.0479 13.8401C78.3759 14.2951 78.6899 14.7701 78.9789 15.2451C79.2699 15.7261 79.5239 16.1951 79.7839 16.7141C79.8589 16.8721 79.932 17.0291 80.009 17.1911Z"}),(0,r.jsx)("path",{d:"M82.773 45.8201C78.41 50.7071 72.056 53.7831 64.986 53.7831C56.634 53.7831 49.292 49.4961 45.036 43.0081C49.154 47.6081 55.415 50.5471 62.423 50.5471C67.872 50.5471 72.861 48.7741 76.757 45.8221H82.774L82.773 45.8201Z"}),(0,r.jsx)("path",{d:"M88.809 29.9932V30.0932H84.041C84.031 29.9002 84.016 29.6832 84.009 29.4362C83.952 28.4152 83.882 26.9562 83.669 25.1912C83.445 23.4382 83.086 21.3652 82.313 19.2582C81.928 18.1982 81.453 17.1532 80.864 16.1182C80.589 15.6352 80.266 15.1132 79.932 14.6312C79.604 14.1392 79.251 13.6632 78.875 13.2032C78.139 12.2852 77.305 11.4172 76.409 10.6752C75.54 9.93915 74.621 9.24515 73.689 8.66115C72.755 8.07215 71.798 7.59315 70.861 7.22215C69.929 6.84015 69.005 6.61215 68.148 6.42415C68.017 6.40015 67.878 6.37915 67.75 6.35815C79.607 7.72815 88.809 17.7842 88.809 29.9932Z"}),(0,r.jsx)("path",{d:"M20.436 30.6051C19.81 29.5661 18.809 28.6991 17.429 27.9981C16.056 27.2921 13.774 26.6021 10.595 25.9151C9.308 25.6481 8.494 25.3531 8.148 25.0511C7.8 24.7461 7.62 24.4101 7.62 24.0331C7.62 23.5231 7.833 23.0861 8.263 22.7261C8.691 22.3681 9.33 22.1881 10.175 22.1881C11.201 22.1881 12.007 22.4271 12.594 22.9091C13.175 23.3921 13.561 24.1661 13.741 25.2251L20.606 24.8211C20.303 22.3801 19.362 20.5991 17.783 19.4781C16.203 18.3571 13.909 17.7971 10.897 17.7971C8.445 17.7971 6.512 18.1111 5.108 18.7261C3.696 19.3391 2.64 20.1891 1.941 21.2631C1.24 22.3401 0.887 23.4831 0.887 24.6941C0.887 26.5371 1.575 28.0501 2.949 29.2431C4.305 30.4321 6.584 31.3871 9.775 32.1011C11.729 32.5291 12.971 32.9881 13.504 33.4671C14.042 33.9471 14.307 34.4921 14.307 35.1091C14.307 35.7481 14.028 36.3181 13.463 36.8011C12.903 37.2871 12.114 37.4261 11.077 37.4261C9.687 37.4261 8.597 37.0561 7.849 36.1011C7.384 35.5171 7.084 34.6581 6.93 33.5351L0 33.9671C0.207 36.3401 1.082 38.3011 2.621 39.8461C4.166 41.3891 6.939 42.1601 10.943 42.1601C13.225 42.1601 15.119 41.8341 16.618 41.1701C18.115 40.5141 19.283 39.5491 20.118 38.2701C20.953 36.9981 21.374 35.6061 21.374 34.0921C21.376 32.8071 21.062 31.6461 20.436 30.6051Z"}),(0,r.jsx)("path",{d:"M43.824 34.121C43.824 35.601 43.426 36.959 42.622 38.217C42.604 38.242 42.587 38.272 42.57 38.299C42.442 38.496 42.305 38.684 42.154 38.863C41.365 39.865 40.33 40.644 39.066 41.201C37.569 41.859 35.677 42.185 33.393 42.185C29.382 42.185 26.614 41.416 25.068 39.869C23.526 38.33 22.654 36.369 22.448 33.992L29.373 33.558C29.522 34.681 29.832 35.537 30.29 36.129C31.041 37.078 32.114 37.449 33.512 37.449C34.545 37.449 35.343 37.311 35.908 36.824C36.465 36.336 36.754 35.772 36.754 35.131C36.754 34.519 36.483 33.972 35.948 33.49C35.412 33.008 34.174 32.552 32.222 32.121C29.028 31.404 26.749 30.449 25.392 29.263C24.023 28.075 23.334 26.558 23.334 24.717C23.334 23.507 23.685 22.363 24.388 21.286C25.091 20.208 26.142 19.364 27.554 18.745C28.967 18.125 30.895 17.824 33.347 17.824C36.358 17.824 38.657 18.382 40.234 19.5C40.949 20.005 41.536 20.651 41.986 21.433C42.15 21.707 42.295 22.004 42.419 22.315C42.727 23.057 42.938 23.902 43.049 24.841L41.699 24.918L40.627 24.983L36.189 25.241C36.004 24.181 35.624 23.411 35.045 22.925C34.458 22.449 33.651 22.204 32.628 22.204C31.779 22.204 31.145 22.384 30.714 22.745C30.285 23.1 30.071 23.537 30.071 24.057C30.071 24.426 30.241 24.762 30.597 25.063C30.94 25.376 31.753 25.665 33.043 25.93C36.221 26.619 38.501 27.314 39.877 28.014C39.936 28.044 39.993 28.075 40.048 28.105C40.463 28.327 40.845 28.563 41.188 28.816C41.909 29.349 42.474 29.949 42.883 30.622C43.51 31.668 43.824 32.83 43.824 34.121Z"}),(0,r.jsx)("path",{d:"M76.701 18.229L71.514 41.781H64.365L60.234 26.951L56.124 41.781H48.984L43.896 18.918V18.916L43.803 18.491L43.743 18.229H50.656L53.145 31.412L56.791 18.229H63.675L67.331 31.395L69.826 18.229H76.701Z"}),(0,r.jsx)("path",{d:"M90.014 31.332H84.012V37.336H90.014V31.332Z"}),(0,r.jsx)("path",{d:"M82.77 31.332H76.766V37.336H82.77V31.332Z"}),(0,r.jsx)("path",{d:"M90.014 38.5762H84.012V44.5822H90.014V38.5762Z"}),(0,r.jsx)("path",{d:"M82.77 38.5762H76.766V44.5822H82.77V38.5822Z"})]}),(0,r.jsx)("span",{className:"-ml-1",children:", "}),"Australia's leading software consultants."]}),(0,r.jsxs)("p",{className:"relative z-10 text-center md:text-left text-white/65 text-sm md:text-base font-bold",children:["\xa9 TinaCMS 2019â",new Date().getFullYear()]})]})]})}S.displayName="FooterLink"},7294:function(e,t,a){"use strict";a.d(t,{A:function(){return o}});var r,l=a(28117),s=a(85354);a(71717);var n=a(71711);let o=e=>{let{link:t="/",className:a="",children:r=null,color:o="white"}=e;return(0,l.jsx)(s.default,{href:t,className:a,children:(0,l.jsxs)("span",{className:"flex items-center",children:[(0,l.jsx)(n.Z,{className:"".concat(r?"w-8":"w-16"," h-auto ").concat("orange"===o?"fill-orange-500":"fill-white")}),r&&(0,l.jsxs)("span",{className:"text-2xl leading-tight mt-2.5 ml-2 font-ibm-plex ".concat("orange"===o?"text-orange-500":"text-white"),children:[r," TinaCMS"]})]})})};var i=a(46976),c=a(30112);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}var u=function(e){return c.createElement("svg",d({viewBox:"0 0 89 23",fill:"inherit"},e),r||(r=c.createElement("path",{d:"M0 .195V5.05h6.519V23h6.551V5.05h6.519V.195H0zM39.423 23v-4.854h-5.202V5.05h5.202V.195H22.468V5.05h5.201v13.096h-5.201V23h16.955zM57.672 13.227c-.263-.978-.889-2.346-1.613-3.454L50.232.195h-6.025V23H50.1v-8.438c0-1.433-.066-2.932-.198-4.17h.593c.46 1.27 1.02 2.411 1.58 3.29L57.903 23h6.09V.195H58.1v8.601c0 1.499.066 3.062.165 4.43h-.593zM89 23V9.35L81.395 0h-4.181l-7.638 9.35V23h6.288v-4.528h6.848V23H89zm-6.025-12.282v3.16H75.6v-3.16l3.392-4.496h.592l3.391 4.496z"})))};(0,i.ZP)(e=>{let{...t}=e;return(0,l.jsx)("a",{href:"/",...t,children:(0,l.jsx)("span",{className:"logo-wrapper",children:(0,l.jsx)(u,{})})})}).withConfig({componentId:"sc-db246097-0"})(["text-decoration:none;.logo-wrapper{display:block;margin:0;font-size:1rem;}svg{height:35px;width:auto;fill:inherit;}"])},54566:function(e,t,a){"use strict";a.d(t,{t:function(){return y}});var r=a(28117),l=a(83398),s=a(46479),n=a(71717),o=a(88799),i=a(67269),c=a(48520),d=a(31496),u=a(4205),m=a(6393),h=a(92496),p=a(39213);let x=["Sole developer","Agency"],f=["1-5","6-20","21-50","50+"],b=["Full-time","Part-time","Project-based"],g=e=>{let{name:t,placeholder:a,options:s,value:n,onChange:o,required:i,disabled:c}=e;return(0,r.jsxs)("div",{className:"relative w-full",children:[(0,r.jsxs)("select",{name:t,required:i,value:n,onChange:o,disabled:c,
1className:"flex h-10 w-full appearance-none rounded-[5px] border-0 bg-white bg-none pl-4 pr-10 text-base font-ibm-plex shadow-input transition-shadow duration-[85ms] ease-out hover:shadow-input-hover focus:shadow-input-focus outline-none ring-0 disabled:cursor-not-allowed disabled:opacity-50 ".concat(n?"text-[var(--color-secondary)]":"text-gray-400"),children:[(0,r.jsx)("option",{value:"",disabled:!0,children:a}),s.map(e=>(0,r.jsx)("option",{value:e,className:"text-[var(--color-secondary)]",children:e},e))]}),(0,r.jsx)(l.Z,{className:"pointer-events-none absolute right-4 top-1/2 h-4 w-4 -translate-y-1/2 opacity-50"})]})},w={contact:{heading:"Contact Us",intro:"Have a question or want to learn more about TinaCMS? Fill out the form below and we'll get back to you.",messagePlaceholder:"Message *",submitLabel:"Send",showNewsletter:!0},partner:{heading:"Become a Partner",intro:"Tell us about yourself and the work you do. We'll be in touch about joining the TinaCMS partner program.",messagePlaceholder:"Tell us about your work *",submitLabel:"Apply",inquiryType:"Partner application",showNewsletter:!1}},v=["Conference","Google","Referral","Social Media","Other"],j={firstName:"",lastName:"",email:"",phone:"",company:"",partnerType:"",portfolioUrl:"",agencySize:"",availability:"",tinaExperience:"",referralSource:"",message:"",subscribeNewsletter:!1},y=e=>{let{variant:t="contact"}=e,a=w[t],[l,y]=(0,n.useState)(j),N="Agency"===l.partnerType,C="Sole developer"===l.partnerType,k="partner"===t?N?"Agency name *":"Company (optional)":"Company",S=N?"Tell us about your agency *":a.messagePlaceholder,_=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l.email),[z,M]=(0,n.useState)(!1),[E,T]=(0,n.use
1State)({text:"",type:""}),[L,V]=(0,n.useState)(!1),I=async e=>{e.preventDefault(),M(!0),T({text:"",type:""});try{(await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l,inquiryType:a.inquiryType})})).ok?(l.subscribeNewsletter&&await (0,h.N)(l.email,l.firstName,l.lastName),T({text:"Thanks for reaching out! We'll be in touch soon.",type:"success"}),y(j)):T({text:"",type:"error"})}catch(e){console.error("Error submitting contact form:",e),T({text:"",type:"error"})}finally{M(!1)}},O=e=>{let{name:t,value:a}=e.target;y(e=>({...e,[t]:a}))},A=e=>{let{name:t,value:a}=e.target,r=a.trim();!r||/^[a-z][a-z0-9+.-]*:\/\//i.test(r)||y(e=>({...e,[t]:"https://".concat(r)}))};return(0,r.jsxs)("form",{id:"contact-form",onSubmit:I,className:"flex flex-col justify-center px-6 pt-6 pb-8 sm:px-8 sm:pt-8 sm:pb-10 gap-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(s.default,{src:"/img/brand-assets/llama.svg",alt:"Tina llama",width:48,height:48,className:"w-12 h-12"}),(0,r.jsx)("h2",{className:"inline-block m-0 md:text-4xl font-ibm-plex text-2xl lg:text-3xl lg:leading-tight bg-linear-to-br from-orange-400 via-orange-500 to-orange-600 bg-clip-text text-transparent",children:a.heading})]}),(0,r.jsx)("p",{className:"text-left w-full",children:a.intro}),E.type&&(0,r.jsxs)("div",{className:"font-ibm-plex text-sm flex items-center gap-2 ".concat("success"===E.type?"text-green-500":"warning"===E.type?"text-orange-500":"text-red-500"),children:["success"===E.type&&(0,r.jsx)(d.jbV,{}),"warning"===E.type&&(0,r.jsx)(c.SVk,{}),"error"===E.type&&(0,r.jsx)(i.sQZ,{className:"shrink-0"}),"error"===E.type?(0,r.jsxs)("span",{children:["There was an error with the form. Please email us directly at"," ",(0,r.jsx)("span",{className:"text-black font-semibold",children:"[email protected]"}),(0,r.jsx)("button",{type:"button",onClick:()=>{navigator.clipboard.writeText("[email protected]"),V(!0),setTimeout(()=>V(!1),2e3)},className:"ml-1 align-middle inline-flex items-center text-gray-500 hover:text-black transition-colors",title:"Copy email address",children:L?(0,r.jsx)(d.jbV,{className:"text-green-500 w-4 h-4"}):(0,r.jsx)(o.LhG,{className:"w-3.5 h-3.5"})})]}):(0,r.jsx)("span",{children:E.text})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row w-full",children:[(0,r.jsx)(u.I,{placeholder:"First name *",name:"firstName",type:"text",value:l.firstName,onChange:O,disabled:z,required:!0,className:"w-full"}),(0,r.jsx)(u.I,{placeholder:"Last name *",name:"lastName",type:"text",value:l.lastName,onChange:O,disabled:z,required:!0,className:"w-full"})]}),(0,r.jsx)(u.I,{placeholder:"Email *",name:"email",type:"email",pattern:"[^\\s@]+@[^\\s@]+\\.[^\\s@]+",title:"Enter a valid email address, e.g. [email protected]",value:l.email,onChange:O,disabled:z,required:!0,className:"w-full"}),(0,r.jsx)(u.I,{placeholder:"Phone number",name:"phone",type:"tel",value:l.phone,onChange:O,disabled:z,className:"w-full"}),(0,r.jsx)(u.I,{placeholder:k,name:"company",type:"text",value:l.company,onChange:O,disabled:z,required:N,className:"w-full"}),"partner"===t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g,{name:"partnerType",required:!0,placeholder:"Are you a sole developer or an agency? *",options:x,value:l.partnerType,onChange:e=>y(t=>({...t,partnerType:e.target.value,agencySize:"",availability:""})),disabled:z}),N&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.I,{placeholder:"Agency website *",name:"portfolioUrl",type:"url",value:l.portfolioUrl,onChange:O,onBlur:A,disabled:z,required:!0,className:"w-full"}),(0,r.jsx)(g,{name:"agencySize",required:!0,placeholder:"How many developers on your team? *",options:f,value:l.agencySize,onChange:O,disabled:z})]}),C&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.I,{placeholder:"Portfolio, GitHub, or website *",name:"portfolioUrl",type:"url",value:l.portfolioUrl,onChange:O,onBlur:A,disabled:z,required:!0,className:"w-full"}),(0,r.jsx)(g,{name:"availability",required:!0,placeholder:"What's your availability? *",options:b,value:l.availability,onChange:O,disabled:z})]}),(0,r.jsx)(m.g,{placeholder:"How much have you worked with TinaCMS before? *",name:"tinaExperience",rows:3,value:l.tinaExperience,onChange:O,disabled:z,required:!0,className:"w-full resize-y"})]}),(0,r.jsx)(g,{name:"referralSource",placeholder:"How did you hear about us?",options:v,value:l.referralSource,onCh
1ange:O,disabled:z}),(0,r.jsx)(m.g,{placeholder:S,name:"message",rows:4,value:l.message,onChange:O,disabled:z,required:!0,className:"w-full min-h-[100px] resize-y"}),a.showNewsletter&&(0,r.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer select-none",children:[(0,r.jsx)("input",{type:"checkbox",checked:l.subscribeNewsletter,onChange:e=>y(t=>({...t,subscribeNewsletter:e.target.checked})),disabled:z,className:"w-4 h-4 rounded border-gray-300 text-orange-500 focus:ring-orange-500 cursor-pointer"}),(0,r.jsx)("span",{className:"text-sm text-gray-600",children:"Subscribe to the TinaCMS newsletter"})]}),(0,r.jsx)("div",{className:"w-full flex justify-end",children:(0,r.jsx)(p.zx,{type:"submit",color:"orange",disabled:z||!_,className:"px-6 py-2.5",children:z?"Sending...":a.submitLabel})})]})}},20129:function(e,t,a){"use strict";a.d(t,{default:function(){return o}});var r=a(28117),l=a(84837),s=a(71717),n=a(46976);function o(e){let{children:t}=e,[a]=(0,s.useState)(()=>new n.qH);return(0,l.useServerInsertedHTML)(()=>{let e=a.getStyleElement();return a.instance.clearTag(),(0,r.jsx)(r.Fragment,{children:e})}),(0,r.jsx)(r.Fragment,{children:t})}},33141:function(e,t,a){"use strict";var r,l;a.d(t,{Qv:function(){return r},RF:function(){return s},ZW:function(){return n}}),a(91375),a(14140),(l=r||(r={})).EN="en",l.ZH="zh";let s=["en","zh"],n="en"},88400:function(e,t,a){"use strict";a.d(t,{Vq:function(){return i},cZ:function(){return u}});var r=a(28117),l=a(75625),s=a(42334),n=a(71717),o=a(1742);let i=l.fC;l.xz;let c=l.h_;l.x8;let d=n.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(l.aV,{ref:t,className:(0,o.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...s})});d.displayName=l.aV.displayName;let u=n.forwardRef((e,t)=>{let{className:a,children:n,...i}=e;return(0,r.jsxs)(c,{children:[(0,r.jsx)(d,{}),(0,r.jsxs)(l.VY,{ref:t,className:(0,o.cn)("fixed left-[50%] top-[50%] w-auto lg:w-full z-50 grid !max-w-5xl max-h-3/4 lg:max-h-50vh overflow-y-auto overflow-x-hidden !mx-auto translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...i,children:[n,(0,r.jsxs)(l.x8,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,r.jsx)(s.Z,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=l.VY.displayName,n.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(l.Dx,{ref:t,className:(0,o.cn)("text-lg font-semibold leading-none tracking-tight",a),...s})}).displayName=l.Dx.displayName,n.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(l.dk,{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",a),...s})}).displayName=l.dk.displayName},4205:function(e,t,a){"use strict";a.d(t,{I:function(){return n}});var r=a(28117),l=a(71717),s=a(1742);let n=l.forwardRef((e,t)=>{let{className:a,type:l,...n}=e;return(0,r.jsx)("input",{type:l,className:(0,s.cn)("flex h-10 w-full rounded-[5px] border-0 bg-white px-4 text-base font-ibm-plex text-[var(--color-secondary)] shadow-input transition-shadow duration-[85ms] ease-out placeholder:text-gray-400 hover:shadow-input-hover focus:shadow-input-focus outline-none ring-0 disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...n})});n.displayName="Input"},6393:function(e,t,a){"use strict";a.d(t,{g:function(){return n}});var r=a(28117),l=a(71717),s=a(1742);let n=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("textarea",{className:(0,s.cn)("flex min-h-[60px] w-full rounded-[5px] border-0 bg-white px-4 py-3 text-base font-ibm-plex text-[var(--color-secondary)] shadow-input transition-shadow duration-[85ms] ease-out placeholder:text-gray-400 hover:shadow-input-hover focus:shadow-input-focus outline-none ring-0 disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...l})});n.displayName="Textarea"},21809:function(e,t,a){"use strict";async function r(e,t){try{let a=await fetch("/api/githubstar?owner=".concat(e,"&repo=").concat(t));if(!a.ok)throw Error("API error: ".concat(a.status));return(await a.json()).stars}catch(e){return console.error("Error fetching GitHub stars:",e),0}}a.d(t,{Z:function(){return r}})},4847:function(e,t,a){"use strict";a.d(t,{g:function(){return r}}),a(38817);var r=(0,a(24621).$)("d5c3cb3dec5edad7ed9459509b02a2c11182aa9b")},92496:function(e,t,a){"use strict";a.d(t,{N:function(){return l}});var r=a(61362);async function l(e,t,a,l){if(!(0,r.G)(e))return{result:"error",message:"The email you entered is not valid."};let s={};t&&(s.FNAME=t),a&&(s.LNAME=a),l&&(s.MMERGE13=l);try{let t=await fetch("/api/mailchimp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email_address:e,status:"subscribed",merge_fields:s,note:l})}),a=await t.json();if(!t.ok)throw Error(a.message||"Failed to add email to the list.");return{result:"success",message:"Email successfully added to the list."}}catch(e){return{result:"error",message:e.message||"Failed to add email to the list."}}}},19464:function(){},27123:function(){}},function(e){e.O(0,[2334,3851,8014,4822,4277,9016,4687,2567,7003,6303,5803,6479,76,5636,4982,8778,9213,8060,2959,1744],function(){return e(e.s=57709)}),_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.