1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[277],{880:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile",function(){return r(3376)}])},4616:function(e,t,r){"use strict";var n=r(5893),i=r(2175);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){o(e,t,r[t])}))}return e}function s(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a=[],o=!0,l=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);o=!0);}catch(s){l=!0,i=s}finally{try{o||null==r.return||r.return()}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.Z=function(e){var t=e.label,r=e.labelClassName,a=e.required,o=s(e,["label","labelClassName","required"]),u=c((0,i.U$)(o),2),d=u[0],f=u[1];return(0,n.jsxs)("div",{children:[null!=t&&(0,n.jsxs)("label",{className:r,htmlFor:o.id||o.name,children:[t," ",a?(0,n.jsx)("span",{className:"text-red-main",children:"*"}):""]}),(0,n.jsx)("input",l({},d,o)),f.touched&&f.error?(0,n.jsx)("div",{className:"text-red-main",children:f.error}):null]})}},9718:function(e,t,r){"use strict";var n=r(5893),i=r(4561);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.Z=function(e){return(0,n.jsxs)(i.ZP,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){a(e,t,r[t])}))}return e}({speed:2,width:340,height:84,viewBox:"0 0 340 84",backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb"},e,{children:[(0,n.jsx)("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"67",height:"11"}),(0,n.jsx)("rect",{x:"76",y:"0",rx:"3",ry:"3",width:"140",height:"11"}),(0,n.jsx)("rect",{x:"127",y:"48",rx:"3",ry:"3",width:"53",height:"11"}),(0,n.jsx)("rect",{x:"187",y:"48",rx:"3",ry:"3",width:"72",height:"11"}),(0,n.jsx)("rect",{x:"18",y:"48",rx:"3",ry:"3",width:"100",height:"11"}),(0,n.jsx)("rect",{x:"0",y:"71",rx:"3",ry:"3",width:"37",height:"11"}),(0,n.jsx)("rect",{x:"18",y:"23",rx:"3",ry:"3",width:"140",height:"11"}),(0,n.jsx)("rect",{x:"166",y:"23",rx:"3",ry:"3",width:"173",height:"11"})]}))}},3376:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return w}});var n=r(4051),i=r.n(n),a=r(5893),o=r(4231),l=r(1954),s=r(3299),c=r(5675),u=r(1163),d=r(3440),f=r(9718),m=r(4616),h=r(7294),p=r(2175),y=r(6501);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(c){return void r(c)}l.done?t(s):Promise.resolve(s).then(n,i)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a=[],o=!0,l=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);o=!0);}catch(s){l=!0,i=s}finally{try{o||null==r.return||r.return()}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var g="block w-full mt-2 px-4 py-3 border border-white/15 bg-white/5 text-white placeholder-white/30 rounded-lg focus:border-cyan-main focus:ring-1 focus:ring-cyan-main/30 focus:bg-white/10 transition-colors";function w(){var e,t,r,n,d,b,w,j=(0,u.useRouter)(),O=(0,h.useState)(!1),N=O[0],k=O[1],P=(0,s.useSession)(),E=P.data;if("loading"===P.status)return(0,a.jsx)("div",{className:"flex justify-center items-center py-40",children:(0,a.jsx)(f.Z,{uniqueKey:"loader"})});var S,C,Z,_,A=function(){var e,t=(e=i().mark((function e(t){var r,n,a,o,l,s,c,u,d,f;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!0),r=y.ZP.loading("Loading..."),e.next=4,fetch("".concat("https://admin.festivalfilm.id/api","/user/edit"),{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(E.accessToken)}});case 4:if(!(n=e.sent).ok){e.next=37;break}return e.next=8,n.json();case 8:if("error"!==(a=e.sent).status){e.next=34;break}if(!a.hasOwnProperty("errors")){e.next=30;break}for(o=!0,l=!1,s=void 0,e.prev=12,c=Object.entries(a.errors)[Symbol.iterator]();!(o=(u=c.next()).done);o=!0)(d=v(u.value,2))[0],f=d[1],y.ZP.error("".concat(f));e.next=20;break;case 16:e.prev=16,e.t0=e.catch(12),l=!0,s=e.t0;case 20:e.prev=20,e.prev=21,o||null==c.return||c.return();case 23:if(e.prev=23,!l){e.next=26;break}throw s;case 26:return e.finish(23);case 27:return e.finish(20);case 28:e.next=31;break;case 30:y.ZP.error(a.message);case 31:y.ZP.dismiss(r),e.next=35;break;case 34:y.ZP.dismiss(r),y.ZP.success("Sukses!");case 35:e.next=38;break;case 37:y.ZP.dismiss(r),y.ZP.error(n.statusText);case 38:k(!1);case 39:case"end":return e.stop()}}),e,null,[[12,16,20,28],[21,,23,27]])})),function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){x(a,n,i,o,l,"next",e)}function l(e){x(a,n,i,o,l,"throw",e)}o(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{className:"relative py-20 lg:py-32 -mt-20 ffi-hero ffi-hero--glow overflow-hidden",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/40 to-black/70"}),(0,a.jsxs)("div",{className:"max-w-xl mx-auto px-4 space-y-10 relative",children:[(0,a.jsxs)("button",{type:"button",className:"inline-flex items-center gap-2 text-white/70 hover:text-white transition-colors",onClick:function(){return j.back()},children:[(0,a.jsx)(l.JO,{icon:"heroicons-solid:arrow-circle-left",className:"h-8 w-8"}),(0,a.jsx)("span",{className:"text-base font-medium",children:"Kembali"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-5",children:[(0,a.jsx)("div",{className:"relative w-20 h-20 flex-shrink-0",children:(0,a.jsx)(c.default,{src:(null===(e=E.user)||void 0===e?void 0:e.image)||"/img/logo/logo-h.png",alt:null===(t=E.user)||void 0===t?void 0:t.name,layout:"fill",objectFit:"cover",className:"rounded-full ring-2 ring-white/20",unoptimized:!0})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"font-serif font-bold text-2xl lg:text-3xl text-white mb-3",children:null===(r=E.user)||void 0===r?void 0:r.name}),(0,a.jsx)("button",{type:"button",className:"ffi-btn--outline text-sm py-1.5 px-5",onClick:function(){return(0,s.signOut)()},children:"Logout"})]})]}),(0,a.jsx)(p.J9,{initialValues:{name:null!==(S=null===(n=E.user)||void 0===n?void 0:n.name)&&void 0!==S?S:"",email:null!==(C=null===(d=E.user)||void 0===d?void 0:d.email)&&void 0!==C?C:"",phone:null!==(Z=null===(b=E.user)||void 0===b?void 0:b.phone)&&void 0!==Z?Z:"",profession:null!==(_=null===(w=E.user)||void 0===w?void 0:w.profession)&&void 0!==_?_:""},validationSchema:o.Ry({name:o.Z_().required("Nama wajib diisi"),email:o.Z_().required("Email"),phone:o.Z_().required("Nomor Telepon wajib diisi"),profession:o.Z_().required("Profesi wajib diisi")}),onSubmit:function(e,t){var r=t.setSubmitting;r(!0),A(e),r(!1)},children:function(e){return(0,a.jsxs)("form",{onSubmit:e.handleSubmit,className:"space-y-6",children:[(0,a.jsxs)("div",{className:"ffi-glass-strong rounded-2xl p-6 lg:p-8 space-y-5",children:[(0,a.jsx)(m.Z,{required:!0,label:"Nama",labelClassName:"text-white/70 text-sm font-medium",name:"name",type:"text",className:g,placeholder:"Nama lengkap"}),(0,a.jsx)(m.Z,{required:!0,label:"Email",labelClassName:"text-white/70 text-sm font-medium",name:"email",type:"email",className:g,placeholder:"Alamat email"}),(0,a.jsx)(m.Z,{required:!0,label:"Nomor Telepon",labelClassName:"text-white/70 text-sm font-medium",name:"phone",type:"text",className:g,placeholder:"08xxxxxxxxxx"}),(0,a.jsx)(m.Z,{required:!0,label:"Profesi",labelClassName:"text-white/70 text-sm font-medium",name:"profession",type:"text",className:g,placeholder:"Contoh: Sutradara, Produser"})]}),(0,a.jsx)("button",{type:"submit",disabled:N,className:"ffi-btn w-full justify-center py-3 text-base disabled:opacity-60 disabled:cursor-not-allowed",children:"Simpan Perubahan"})]})}})]})]}),(0,a.jsx)(y.x7,{})]})}w.auth={redirect:"/pendaftaran-film"},w.getLayout=function(e){return(0,a.jsx)(d.Z,{title:"Profil",children:e})}},4561:function(e,t,r){"use strict";var n=r(7294),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};var a=function(e){var t=e.animate,r=void 0===t||t,a=e.animateBegin,o=e.backgroundColor,l=void 0===o?"#f5f6f7":o,s=e.backgroundOpacity,c=void 0===s?1:s,u=e.baseUrl,d=void 0===u?"":u,f=e.children,m=e.foregroundColor,h=void 0===m?"#eee":m,p=e.foregroundOpacity,y=void 0===p?1:p,b=e.gradientRatio,x=void 0===b?2:b,v=e.gradientDirection,g=void 0===v?"left-right":v,w=e.uniqueKey,j=e.interval,O=void 0===j?.25:j,N=e.rtl,k=void 0!==N&&N,P=e.speed,E=void 0===P?1.2:P,S=e.style,C=void 0===S?{}:S,Z=e.title,_=void 0===Z?"Loading...":Z,A=e.beforeMask,T=void 0===A?null:A,q=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,["animate","animateBegin","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","gradientDirection","uniqueKey","interval","rtl","speed","style","title","beforeMask"]),I=w||Math.random().toString(36).substring(6),B=I+"-diff",M=I+"-animated-diff",U=I+"-aria",D=k?{transform:"scaleX(-1)"}:null,K="0; "+O+"; 1",L=E+"s",R="top-bottom"===g?"rotate(90)":void 0;return(0,n.createElement)("svg",i({"aria-labelledby":U,role:"img",style:i(i({},C),D)},q),_?(0,n.createElement)("title",{id:U},_):null,T&&(0,n.isValidElement)(T)?T:null,(0,n.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+d+"#"+B+")",style:{fill:"url("+d+"#"+M+")"}}),(0,n.createElement)("defs",null,(0,n.createElement)("clipPath",{id:B},f),(0,n.createElement)("linearGradient",{id:M,gradientTransform:R},(0,n.createElement)("stop",{offset:"0%",stopColor:l,stopOpacity:c},r&&(0,n.createElement)("animate",{attributeName:"offset",values:-x+"; "+-x+";
1 1",keyTimes:K,dur:L,repeatCount:"indefinite",begin:a})),(0,n.createElement)("stop",{offset:"50%",stopColor:h,stopOpacity:y},r&&(0,n.createElement)("animate",{attributeName:"offset",values:-x/2+"; "+-x/2+"; "+(1+x/2),keyTimes:K,dur:L,repeatCount:"indefinite",begin:a})),(0,n.createElement)("stop",{offset:"100%",stopColor:l,stopOpacity:c},r&&(0,n.createElement)("animate",{attributeName:"offset",values:"0; 0; "+(1+x),keyTimes:K,dur:L,repeatCount:"indefinite",begin:a})))))},o=function(e){return e.children?(0,n.createElement)(a,i({},e)):(0,n.createElement)(l,i({},e))},l=function(e){return(0,n.createElement)(o,i({viewBox:"0 0 476 124"},e),(0,n.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),(0,n.createElement)("circle",{cx:"20",cy:"20",r:"20"}))};t.ZP=o}},function(e){e.O(0,[5602,5870,2633,3440,9774,2888,179],(function(){return t=880,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.