PageSourceSearch

https://magicstudio.com/_next/static/chunks/6713-0f058687121b3d1e.js

js magicstudio.com collected 2026-09-24 18:25:51 UTC 13,463 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6713,7370,1628],{6702:function(e,t,r){var a=r(5328).w_;e.exports.e=function(e){return a({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"desc",attr:{},child:[]},{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M5 12l5 5l10 -10"}}]})(e)}},4005:function(e,t,r){var a=r(5328).w_;e.exports.U=function(e){return a({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"desc",attr:{},child:[]},{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M4 5h7"}},{tag:"path",attr:{d:"M9 3v2c0 4.418 -2.239 8 -5 8"}},{tag:"path",attr:{d:"M5 9c-.003 2.144 2.952 3.908 6.7 4"}},{tag:"path",attr:{d:"M12 20l4 -9l4 9"}},{tag:"path",attr:{d:"M19.1 18h-6.2"}}]})(e)}},24335:function(e,t){"use strict";t.Z=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},41189:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var a=r(20550),n=r(2081),o=r(51403),s=r(16660),l=r(34166),i=r(88026),c=r(94511),d=r(95855),m=r(65718),x=r(9669),h=r.n(x),u=r(18895),f=r(43857);function p(e){var t=(0,f.Z)().t,r=(0,s.useRef)(null);(0,l.Z)(r,e.setIsModalOpen);var x,p=(0,s.useState)(""),g=p[0],b=p[1],_=(0,s.useState)("Male"),O=_[0],N=_[1],E=(0,s.useState)(!1),T=E[0],v=E[1],j=function(e){N(e.target.value)},w=(x=(0,a.Z)(function(e,t){var r,a;return(0,n.__generator)(this,function(r){switch(r.label){case 0:if(console.log(e),v(!0),!localStorage.getItem("access-token"))return h().push("/photobooth"),[2];return[4,(0,u.Q1)(e,t)];case 1:if((a=r.sent()).error)return console.log(a.error),v(!1),[2];return console.log(a.data),h().push("/photobooth/profiles/".concat(a.data.subject.id)),v(!1),[2]}})}),function(e,t){return x.apply(this,arguments)});return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"".concat(e.isModalOpen?"block":"hidden"," transition-opacity ease-linear overflow-y-auto overflow-x-hidden w-full h-full inset-0 fixed z-40 bg-neutral-900 bg-opacity-90"),children:(0,o.jsx)("div",{className:"h-full md:h-modal transition-transform relative z-50 w-auto max-w-3xl md:my-8 mx-auto flex items-center",children:(0,o.jsxs)("div",{ref:r,className:"relative max-h-full bg-white overflow-hidden bg-clip-padding shadow-lg rounded-lg w-full flex flex-col justify-start items-center",children:[(0,o.jsx)("div",{className:(0,i.Z)("bg-gradient-to-r from-".concat(e.app,"-gradient-start to-").concat(e.app,"-gradient-end h-2 w-full"))}),(0,o.jsxs)("div",{className:"overflow-y-auto scrollbar-hide px-4 py-8 md:py-12 flex flex-col items-center w-full",children:[(0,o.jsx)("div",{className:"absolute top-4 right-4 md:top-8 md:right-8 p-2 cursor-pointer hover:bg-neutral-100 rounded-lg",onClick:function(){return e.setIsModalOpen(!1)},children:(0,o.jsx)(c.F,{className:"text-primary text-2xl"})}),(0,o.jsxs)("div",{className:"w-full overflow-y-auto overflow-x-hidden max-w-xl mx-auto",children:[(0,o.jsx)("div",{className:"text-left md:text-center",children:(0,o.jsx)(d.aC,{text:t("photo-booth:EDITOR_PROFILE_INITIATE_MODAL_TITLE")})}),(0,o.jsxs)("div",{className:"mt-4 md:mt-8",children:[(0,o.jsx)("p",{className:"text-sm md:text-base antialiased font-medium text-primary",children:t("photo-booth:EDITOR_PROFILE_INITIATE_MODAL_NAME_TITLE")}),(0,o.jsx)("input",{type:"text",className:"mt-4 border border-neutral-300 focus:shadow-portraitmaker-gradient-end/50 focus:border-portraitmaker-gradient-end outline-none w-full text-primary font-light text-xs md:text-sm py-3 px-4 rounded-lg resize-none",placeholder:t("photo-booth:EDITOR_PROFILE_INITIATE_MODAL_NAME_PLACEHOLDER"),onChange:function(e){b(e.target.value)},required:!0}),(0,o.jsxs)("div",{className:"my-8",children:[(0,o.jsx)("p",{className:"text-sm md:text-base antialiased font-medium text-primary",children:t("photo-booth:EDITOR_PROFILE_INITIATE_MODAL_GENDER_TITLE")}),(0,o.jsxs)("form",{className:"mt-4 text-primary font-normal antialiased flex items-center",children:[(0,o.jsxs)("label",{className:"cursor-pointer text-xs md:text-sm flex items-center",children:[(0,o.jsx)("input",{type:"radio",value:"Male",checked:"Male"===O,onChange:j,className:"mr-2 accent-portraitmaker-gradient-end cursor-pointer"}),t("photo-booth:EDITOR_PROFILE_INITIATE_MODAL_GENDER_MASCULINE")]}),(0,o.jsxs)("label",{className:"cursor-pointer ml-8 text-xs md:text-sm flex items-center",children:[(0,o.jsx)("input",{type:"radio",value:"Female",checked:"Female"===O,onChange:j,className:"mr-2 accent-portraitmaker-gradient-end cursor-pointer"}),t("photo-booth:EDITOR_PROFILE_INITIATE_MODAL_GENDER_FEMININE")]}),(0,o.jsxs)("label",{className:"cursor-pointer ml-8 text-xs md:text-sm flex items-center",children:[(0,o.jsx)("input",{type:"radio",value:"Other",checked:"Other"===O,onChange:j,className:"mr-2 accent-portraitmaker-gradient-end cursor-pointer"}),t("photo-booth:EDITOR_PROFILE_INITIATE_MODAL_GENDER_OTHER")]})]})]}),T?(0,o.jsx)(m.PrimaryButton,{text:"Loading...",disabled:!0}):(0,o.jsx)(m.PrimaryButton,{text:t("photo-booth:EDITOR_PROFILE_INITIATE_MODAL_CTA"),onClick:function(){return w(g,O)}})]})]})]})]})})})})}},1628:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u}});var a=r(51403),n=r(9669),o=r.n(n),s=r(16660);r(62799);var l=r(34166),i=r(6702),c=r(4005),d=r(388),m=function(e){var t=(0,n.useRouter)(),r=(0,s.use
1State)(!1),o=r[0],m=r[1],x=(0,s.useState)("en"),h=x[0],u=x[1];(0,s.useEffect)(function(){u(t.locale)},[t]);var f=(0,s.useRef)(null);(0,l.Z)(f,m);var p=function(e){document.cookie="NEXT_LOCALE=".concat(e,"; max-age=315360000; path=/")};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"relative antialiased",ref:f,children:[(0,a.jsxs)("button",{className:"text-xs md:text-sm border border-white text-white font-medium antialiased rounded-lg py-2.5 md:py-3 px-6 md:px-8 hover:bg-white hover:text-primary flex items-center",onClick:function(){return m(!o)},children:[(0,a.jsx)(c.U,{className:"mr-2 text-sm md:text-xl"}),"Site Language:"," ",d.Et&&d.Et.find(function(e){return e.languageCode===h}).language,(0,a.jsx)("i",{className:"".concat(o?"rotate-0":"-rotate-180"," transition transform duration-300 ease-in-out isax isax-arrow-down-1 text-sm md:text-base ml-2")})]}),(0,a.jsx)("div",{className:"".concat(o?"flex flex-col":"hidden"," absolute right-0 bottom-full mb-2 w-full bg-white rounded-lg z-20 shadow overflow-scroll scrollbar-hide"),style:{maxHeight:"min(calc(100vh - 6rem), 20rem)"},children:d.Et&&d.Et.map(function(e,r){return(0,a.jsxs)("button",{className:"".concat(h===e.languageCode?"bg-primary text-white":"text-primary hover:bg-neutral-100"," flex items-center justify-between py-3 px-4 text-xs font-normal"),onClick:function(){u(e.languageCode),p(e.languageCode),t.push(t.pathname,t.asPath,{locale:e.languageCode}),m(!1)},children:[e.language,(0,a.jsx)(i.e,{className:"".concat(h===e.languageCode?"block":"hidden"," text-white")})]},r)})})]})})},x=r(43857),h=r(84613),u=function(){var e=(0,x.Z)("common"),t=e.t;return e.lang,(0,a.jsx)("footer",{className:"px-4 py-16 bg-primary",children:(0,a.jsxs)("div",{className:"w-full max-w-7xl mx-auto",children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8",children:[(0,a.jsxs)("div",{className:"antialiased text-white flex flex-col",children:[(0,a.jsx)("p",{className:"font-semibold text-sm md:text-base mb-2.5",children:t("FOOTER_ABOUT_TITLE")}),(0,a.jsx)("a",{href:"https://buttondown.email/magicstudio",target:"_blank",rel:"noopener noreferrer",className:"font-light text-xs md:text-sm py-1.5",children:t("FOOTER_ABOUT_STORY")}),(0,a.jsx)("a",{href:"https://magicstudio.notion.site/The-Handbook-70cd395b4d6e4e50af33d1a64c45dd8b",target:"_blank",rel:"noopener noreferrer",className:"font-light text-xs md:text-sm py-1.5",children:t("FOOTER_ABOUT_HANDBOOK")}),(0,a.jsx)("a",{href:"https://magicstudio.com/blog/",target:"_blank",rel:"noopener noreferrer",className:"font-light text-xs md:text-sm py-1.5",children:"Blog"})]}),(0,a.jsxs)("div",{className:"antialiased text-white flex flex-col",children:[(0,a.jsx)("p",{className:"font-semibold text-sm md:text-base mb-2.5",children:t("FOOTER_TOOLS_TITLE")}),(0,a.jsx)("a",{href:"/headshots/",target:"_blank",rel:"noopener noreferrer",className:"font-light text-xs md:text-sm py-1.5",children:t("FOOTER_TOOLS_IH")}),(0,a.jsx)("a",{href:"https://magicstudio.com/ai-image-generator/",target:"_blank",rel:"noopener noreferrer",className:"font-light text-xs md:text-sm py-1.5",children:t("FOOTER_TOOLS_IM")}),(0,a.jsx)("a",{href:"https://magicstudio.com/magiceraser/",target:"_blank",rel:"noopener noreferrer",className:"font-light text-xs md:text-sm py-1.5",children:t("FOOTER_TOOLS_ME")}),(0,a.jsx)("a",{href:"https://magicstudio.com/background-remover/",target:"_blank",rel:"noopener noreferrer",className:"font-light text-xs md:text-sm py-1.5",children:t("FOOTER_TOOLS_BE")}),(0,a.jsx)("a",{href:"https://magicstudio.com/backgroundblur/",target:"_blank",rel:"noopener noreferrer",className:"font-light text-xs md:text-sm py-1.5",children:t("FOOTER_TOOLS_BB")})]}),(0,a.jsxs)("div",{className:"antialiased text-white flex flex-col",children:[(0,a.jsx)("p",{className:"font-semibold text-sm md:text-base mb-2.5",children:t("FOOTER_CONNECT_TITLE")}),(0,a.jsx)("a",{href:"https://twitter.com/MagicStudio",target:"_blank",rel:"noopener noreferrer",className:"font-light text-xs md:text-sm py-1.5",children:t("FOOTER_CONNECT_TWITTER")}),(0,a.jsx)("a",{href:"https://www.linkedin.com/company/magicstudiohq",target:"_blank",rel:"noopener noreferrer",className:"font-light text-xs md:text-sm py-1.5",children:t("FOOTER_CONNECT_LINKEDIN")}),(0,a.jsx)("a",{href:"https://www.facebook.com/groups/productphotos/",target:"_blank",rel:"noopener noreferrer",className:"font-light text-xs md:text-sm py-1.5",children:t("FOOTER_CONNECT_FACEBOOK_GROUP")})]}),(0,a.jsxs)("div",{className:"antialiased text-white flex flex-col",children:[(0,a.jsx)("p",{className:"font-semibold text-sm md:text-base mb-2.5",children:t("FOOTER_LEGAL_TITLE")}),(0,a.jsx)("a",{href:"https://magicstudio.com/privacy-policy/",target:"_blank",rel:"noopener noreferrer",className:"font-light text-xs md:text-sm py-1.5",children:t("FOOTER_LEGAL_PRIVACY")}),(0,a.jsx)("a",{href:"https://magicstudio.com/terms-of-service/",target:"_blank",rel:"noopener noreferrer",className:"font-light text-xs md:text-sm py-1.5",children:t("FOOTER_LEGAL_TERMS")})]})]}),(0,a.jsx)("div",{className:"border-t border-slate-800 my-8"}),(0,a.jsxs)("div",{className:"flex flex-row items-start justify-between",children:[(0,a.jsxs)("div",{className:"cursor-pointer flex flex-col",onClick:function(){return o().push(h.uV)},children:[(0,a.jsx)("div",{className:"hidden sm:block h-9",children:(0,a.jsx)("img",{src:"/images/studio-logo-white.svg",alt:"logo",className:"w-auto h-full",loading:"lazy"})}),(0,a.jsx)("div",{className:"sm:hidden block h-9",children:(0,a.jsx)("img",{src:"/images/studio-logo-white.svg",alt:"logo",className:"w-auto h-full",loading:"lazy"})}),(0,a.jsx)("p",{className:"hidden sm:block mt-4 text-xs md:text-xs text-white font-normal antialiased max-w-[10rem] sm:max-w-none opacity-40",children:t("FOOTER_COPYRIGHT")})]}),(0,a.jsx)(m,{})]}),(0,a.jsx)("p",{className:"block sm:hidden mt-6 text-xs md:text-xs text-white font-normal antialiased opacity-40 text-center",children:t("FOOTER_COPYRIGHT")})]})})}},24058:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var a=r(16660),n=r(54962),o=r(72568);function s(e){let{size:t=80,color:r="black",lineWeight:o=5,speed:s=1.75}=e;return(0,n.Z)("LineWobble","size",t,"number"),(0,n.Z)("LineWobble","color",r,"string"),(0,n.Z)("LineWobble","speed",s,"number"),(0,n.Z)("LineWobble","lineWeight",o,"number"),a.createElement("div",{className:"LineWobble-module_container__IkLcd",style:{"--uib-size":t+"px","--uib-color":r,"--uib-line-weight":o+"px","--uib-speed":s+"s"}})}(0,o.s)('.LineWobble-module_container__IkLcd{align-items:center;border-radius:calc(var(--uib-line-weight)/2);display:flex;height:var(--uib-line-weight);justify-content:center;overflow:hidden;position:relative;transform:translateZ(0);width:var(--uib-size)}.LineWobble-module_container__IkLcd:before{background-color:var(--uib-color);content:"";height:100%;left:0;opacity:.1;position:absolute;top:0;width:100%}.LineWobble-module_container__IkLcd:after{animation:LineWobble-module_wobble__XpxDM var(--uib-speed) ease-in-out infinite;background-color:var(--uib-color);border-radius:calc(var(--uib-line-weight)/2);content:"";height:100%;transform:translateX(-95%);width:100%}@keyframes LineWobble-module_wobble__XpxDM{0%,to{transform:translateX(-95%)}50%{transform:translateX(95%)}}')},54962:function(e,t,r){"use strict";function a(e,t,r,a){if(typeof r!==a)throw TypeError(`Invalid prop '${t}' of type '${typeof r}' supplied to '${e}', expected '${a}'.`)}r.d(t,{Z:function(){return a}})},72568:function(e,t,r){"use strict";function a(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===r&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}r.d(t,{s:function(){return a}})}}]);

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.