PageSourceSearch

https://refocus-awards.com/_next/static/chunks/3517-88b2ab6a12e3ef89.js

js refocus-awards.com collected 2026-10-02 07:01:15 UTC 28,628 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3517],{13252:function(e,r,n){n.d(r,{Z:function(){return f}});var t=n(35589),a=n(56168),o=n(85435),i=n(57705),s=n(31036),u=n(54170),c=n(34124),l=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,t=String(e).toLowerCase(),a=String(n.getOptionValue(r)).toLowerCase(),o=String(n.getOptionLabel(r)).toLowerCase();return a===t||o===t},p={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,r,n,t){return!(!e||r.some((function(r){return d(e,r,t)}))||n.some((function(r){return d(e,r,t)})))},getNewOptionData:function(e,r){return{label:r,value:e,__isNew__:!0}}};n(34323);var f=(0,a.forwardRef)((function(e,r){var n=function(e){var r=e.allowCreateWhileLoading,n=void 0!==r&&r,t=e.createOptionPosition,i=void 0===t?"last":t,d=e.formatCreateLabel,f=void 0===d?p.formatCreateLabel:d,m=e.isValidNewOption,b=void 0===m?p.isValidNewOption:m,x=e.getNewOptionData,h=void 0===x?p.getNewOptionData:x,v=e.onCreateOption,g=e.options,y=void 0===g?[]:g,Z=e.onChange,w=(0,c.Z)(e,l),C=w.getOptionValue,k=void 0===C?o.g:C,_=w.getOptionLabel,j=void 0===_?o.a:_,P=w.inputValue,S=w.isLoading,O=w.isMulti,T=w.value,R=w.name,E=(0,a.useMemo)((function(){return b(P,(0,s.I)(T),y,{getOptionValue:k,getOptionLabel:j})?h(P,f(P)):void 0}),[f,h,j,k,P,b,y,T]),L=(0,a.useMemo)((function(){return!n&&S||!E?y:"first"===i?[E].c
1oncat((0,u.Z)(y)):[].concat((0,u.Z)(y),[E])}),[n,i,S,E,y]),I=(0,a.useCallback)((function(e,r){if("select-option"!==r.action)return Z(e,r);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==E)Z(e,r);else if(v)v(P);else{var t=h(P,P),a={action:"create-option",name:R,option:t};Z((0,s.D)(O,[].concat((0,u.Z)((0,s.I)(T)),[t]),t),a)}}),[h,P,O,R,E,v,Z,T]);return(0,s.a)((0,s.a)({},w),{},{options:L,onChange:I})}((0,i.u)(e));return a.createElement(o.S,(0,t.Z)({ref:r},n))}))},43517:function(e,r,n){n.d(r,{Z:function(){return U}});var t=n(43692),a=n(5447),o=n(99728),i=n(44453),s=n.n(i),u=n(8014),c=n(34237),l=n(81771),d=n(92118),p=n(17305),f=n(98421),m=n(8403),b=n(49823),x=n(77736),h=n(14131),v=n(47011),g=n(14970),y=n(2612),Z=n(75332),w=n(56168),C=n(94644),k=n(37824),_=function(e){var r=e.value,n=e.onChange,t=e.options,a=(0,w.useMemo)((function(){return t.sort((function(e,r){return e.credits-r.credits})).map((function(e){return{label:e.name,value:e.slug}}))}),[t]);return(0,u.jsxs)(c.kC,{direction:"column",mb:"60px",children:[(0,u.jsx)(c.xv,{variant:"subtitleSpacedOutL",mb:"15px",children:"Bundle"}),(0,u.jsx)(k.Z,{isMulti:!1,variant:"underlined",placeholder:"Select a bundle",borderColor:"base_2.2",value:a.find((function(e){return e.value===(null===r||void 0===r?void 0:r.value)})),onChange:function(e){return n(e)},options:a})]})},j=n(33453),P=n(24113),S=function(){return(0,u.jsxs)(c.kC,{direction:"column",children:[(0,u.jsx)(c.xv,{ml:0,mr:"auto",variant:"subtitleSpacedOutL",mb:"30px",children:"Account Details"}),(0,u.jsxs)(c.kC,{gap:"20px",mb:"20px",direction:{base:"column",md:"row"},children:[(0,u.jsx)(j.Z,{name:"first_name",render:function(e){var r=e.field;return(0,u.jsx)(P.Z,(0,a.Z)({placeholder:"First Name *"},r))}}),(0,u.jsx)(j.Z,{name:"last_name",render:function(e){var r=e.field;return(0,u.jsx)(P.Z,(0,a.Z)({placeholder:"Last Name *"},r))}})]}),(0,u.jsx)(j.Z,{name:"email",render:function(e){var r=e.field;return(0,u.jsx)(P.Z,(0,a.Z)({placeholder:"Email *",type:"email"},r))}}),(0,u.jsxs)(c.kC,{gap:"20px",mt:"20px",direction:{base:"column",md:"row"},children:[(0,u.jsx)(j.Z,{name:"password1",render:function(e){var r=e.field;return(0,u.jsx)(P.Z,(0,o.Z)((0,a.Z)({},r),{type:"password",placeholder:"Password",autoComplete:"new-password"}))}}),(0,u.jsx)(j.Z,{name:"password2",render:function(e){var r=e.field;return(0,u.jsx)(P.Z,(0,o.Z)((0,a.Z)({},r),{type:"password",placeholder:"Confirm password",autoComplete:"new-password"}))}})]})]})},O=n(4822),T="Any credits you purchase via bundles get automatically added to your account. Please note that your credits will be available for submitting your work(s) into any ".concat(O.tV," contest during the calendar year you purchased them."),R=function(e){var r=e.bundle,n=((null===r||void 0===r?void 0:r.entry_level)||"").split("_").map((function(e){return(0,y.capitalize)(e)})).join("-");return r?(0,u.jsxs)(c.kC,{maxW:{base:"100%",lg:"500px"},position:{base:"relative",md:"sticky"},flex:{base:"initial",md:1},top:"0px",p:{base:"40px 20px",md:"40px 60px",lg:"40px 60px 40px 95px"},direction:"column",h:{base:"auto",md:"100%"},overflow:{base:void 0,md:"scroll"},overflowX:{base:void 0,md:"hidden"},gap:"20px",borderLeftWidth:{base:"0px",md:"1px"},borderTop:{base:"1px",md:"0px"},borderColor:"base_2.4",children:[(0,u.jsx)(c.xv,{variant:"numeralsXS",children:"Bundle Info: "}),(0,u.jsxs)(c.kC,{justify:"space-between",mb:"20px",align:"center",userSelect:"none",children:[(0,u.jsxs)(c.xv,{variant:"fieldsDescription",children:[r.credits," ","Credit".concat(r.credits>1?"s":"")," (",n,")"]}),(0,u.jsx)(c.xv,{variant:"numeralsTiny",children:"$".concat((r.price/100).toFixed(2))})]}),(0,u.jsxs)(c.kC,{justify:"space-between",pt:"20px",borderTopWidth:"1px",borderTopColor:"base.1",children:[(0,u.jsx)(c.xv,{variant:"numeralsM",children:"Total"}),(0,u.jsx)(c.xv,{variant:"numeralsM",children:"$".concat((r.price/100).toFixed(2))})]}),(0,u.jsxs)(c.kC,{p:"20px",bg:"base_2.4",gap:"8px",direction:"column",borderRadius:"6px",children:[(0,u.jsx)(c.xv,{variant:"numeralsXS",children:"Before You Purchase:"}),(0,u.jsx)(c.xv,{variant:"description",children:T})]})]}):null},E=n(832),L=n(63024),I=n.n(L),z=n(65090),M=n(17325),D={termsOfUse:!1},N=(0,C.Ry)({termsOfUse:(0,C.O7)().oneOf([!0],"Must Accept Terms and Conditions")}),B=function(){var e=(0,t.Z)(s().mark((function e(r){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.ZP)({path:"/api/validate-registration/",method:"POST",body:{email:r}});case 2:return n=e.sent,e.abrupt("return",n.status!==f.RS.HTTP_200_OK);case 4:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),V=(0,y.debounce)((function(e,r){B(e).then(r)}),500),A=(0,C.Z_)().test("email_async_validation","Invalid email",function(){var e=(0,t.Z)(s().mark((function e(r,n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt("return",n.createError({message:"Required"}));case 2:if(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)){e.next=5;break}return e.abrupt("return",n.createError({message:"Invalid email"}));case 5:return e.abrupt("return",new Promise((function(e){V(r,(function(r){e(!r||n.createError({message:"Email is already taken, please use a different email address."}))}))})));case 6:case"end":return e.stop()}}),e)})));return function(r,n){return e.apply(this,arguments)}}()),F=function(e){var r=+(0,M.Wy)(e.price);E.ZP.clearEcommerce(),E.ZP.event(E.tz.ADD_PAYMENT_INFO,{entry_level:e.entry_level,entry_type:e.entry_type,image_categories:null,discount_type:null,discount_code:null,ecommerce:{currency:"USD",value:r,items:[{item_id:e.slug,item_name:e.name,item_category:"bundle",price:r,quantity:1}]}}),E.ZP.clearEcommerce()},H=function(e){var r=+(0,M.Wy)(e.price);E.ZP.clearEcommerce(),E.ZP.event(E.tz.INITIATE_CHECKOUT,{entry_level:e.entry_level,entry_type:e.entry_type,image_categories:null,discount_type:null,discount_code:null,ecommerce:{currency:"USD",value:r,items:[{item_id:e.slug,item_name:e.name,item_category:"bundle",price:r,quantity:1}]}}),E.ZP.clearEcommerce()},U=function(e){var r=e.contest,n=e.bundle,i=e.bundles,y=(0,v.L)().user,k=y,j=(0,m.Z)({position:"top-right"}),P=(0,Z.useRouter)(),O="dynamic"===P.query.bundle_slug,T=(0,w.useState)(n),L=T[0],M=T[1],B=(0,w.useState)(null),V=B[0],U=B[1],q=(0,w.useMemo)((function(){return i.map((function(e){return(0,o.Z)((0,a.Z)({},e),{name:"".concat(e.name," (").concat((0,z.k4)(e.entry_level),")")})}))}),[i]),W=(0,w.useMemo)((function(){return O&&P.query.submission?"".concat(f.dq.EDIT_SUBMISSION,"/").concat(P.query.submission):f.dq.BUNDLE_THANK_YOU}),[O,P.query.submission]),K=(0,w.useState)(null),Y=K[0],G=K[1],X=(0,w.useState)(null),$=X[0],J=X[1],Q=(0,w.useState)("stripe"),ee=Q[0],re=Q[1],ne=(0,w.useState)(!1),te=ne[0],ae=ne[1],oe=(0,w.useState)(!1),ie=
1oe[0],se=oe[1],ue=(0,w.useState)(null),ce=ue[0],le=ue[1],de=(0,w.useRef)(!1),pe=(0,w.useRef)(!1),fe=(0,w.useRef)(null),me=(0,w.useCallback)((0,t.Z)(s().mark((function e(){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(L&&!de.current){e.next=2;break}return e.abrupt("return");case 2:return de.current=!0,e.next=5,d.Z.bundles.artist.getPaymentIntent(L.slug);case 5:r=e.sent.data,G(r);case 7:case"end":return e.stop()}}),e)}))),[L]),be=(0,w.useCallback)((0,t.Z)(s().mark((function e(){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(L&&!pe.current){e.next=2;break}return e.abrupt("return");case 2:return pe.current=!0,e.next=5,d.Z.bundles.artist.getPaypalOrder(L.slug);case 5:r=e.sent.data,J(r);case 7:case"end":return e.stop()}}),e)}))),[L]),xe=(0,w.useCallback)(function(){var e=(0,t.Z)(s().mark((function e(r){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(re(r),se(!1),"stripe"!==r){e.next=7;break}return e.next=5,me();case 5:e.next=9;break;case 7:return e.next=9,be();case 9:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),[me,be]),he=function(e){j({title:"Error",description:e.message,status:"error"}),ce&&d.Z.bundles.artist.deleteOrder(ce)},ve=(0,w.useMemo)((function(){return k?N:N.concat((0,C.Ry)({email:A,password1:p.Pg,password2:p.$W,first_name:(0,C.Z_)().required("Required"),last_name:(0,C.Z_)().required("Required")}))}),[k]);(0,w.useEffect)((function(){de.current=!1,pe.current=!1,G(null),J(null),re("stripe"),se(!1),me()}),[L,me]);var ge=(0,w.useRef)(!1);(0,w.useEffect)((function(){!ge.current&&L&&(ge.current=!0,H(L))}),[L]);var ye,Ze=function(e){ae(e.complete)},we=(0,w.useMemo)((function(){var e=(0,a.Z)({},D);return k||(e.email="",e.password1="",e.password2="",e.first_name="",e.last_name=""),e}),[k]),Ce=(0,w.useCallback)((function(){j({title:"Error",description:"Something went wrong with the payment",status:"error"})}),[j]),ke=function(){var e=(0,t.Z)(s().mark((function e(n){var t,a,o,i,u,c,l,p,m,x,h,v,g;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(L){e.next=3;break}return e.abrupt("return");case 3:if("stripe"!==ee||Y){e.next=6;break}return Ce(),e.abrupt("return");case 6:if("paypal"!==ee||$){e.next=9;break}return Ce(),e.abrupt("return");case 9:if(k){e.next=38;break}return a=n.first_name,o=n.last_name,i=n.email,e.next=15,(0,b.ZP)({path:"/api/users/signup/",method:"POST",returnErrors:!0,body:{first_name:a,last_name:o,email:i.trim().toLocaleLowerCase(),password:n.password1,accepted_tos:n.termsOfUse}});case 15:if(e.sent.status!==f.RS.HTTP_201_CREATED){e.next=36;break}return E.ZP.user({email:i,first_name:a,last_name:o}),e.next=20,new Promise((function(e){return setTimeout(e,100)}));case 20:return E.ZP.event(E.tz.REGISTER,{location:"page"}),e.next=23,I().request({url:"/api/login",method:"POST",data:{email:i,password:n.password1}}).catch((function(e){return e.response}));case 23:if(u=e.sent,c=u.status,l=u.data,c===f.RS.HTTP_200_OK){e.next=33;break}return p=l.detail||f.FI,E.ZP.event(E.tz.TRACKED_ERROR,{error_message:p}),j({status:"error",title:p}),e.abrupt("return");case 33:E.ZP.event(E.tz.LOGIN,{location:"after_register"});case 34:e.next=38;break;case 36:return j({status:"error",title:f.FI}),e.abrupt("return");case 38:return m={bundle:L.slug,payment_provider:ee,contest:r.id},"paypal"===ee?m.paypal_order_id=$.order_id:m.payment_id=Y.id,e.next=42,d.Z.bundles.artist.createOrder(m);case 42:if(x=e.sent,h=x.status,v=x.data){e.next=48;break}return Ce(),e.abrupt("return");case 48:if("INVALID_STAGE"!==(null===(t=v)||void 0===t?void 0:t.reason)){e.next=51;break}return j({title:"Contest Closed",description:"Entries are no longer being accepted for this contest.",status:"error"}),e.abrupt("return");case 51:if(h!==f.RS.HTTP_201_CREATED){e.next=57;break}return F(L),"paypal"===ee&&(null===$||void 0===$?void 0:$.approval_url)?window.location.href=$.approval_url:(le(null!==(g=v.payment_id)&&void 0!==g?g:null),fe.current&&fe.current.submit()),e.abrupt("return");case 57:Ce();case 58:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}();return L||O?(0,u.jsx)(g.J9,{onSubmit:ke,initialValues:we,validationSchema:ve,children:function(e){var r=e.isSubmitting,t=e.handleSubmit;return(0,u.jsxs)(c.kC,{h:"100%",direction:"column",position:"relative",overflow:"hidden",justify:"space-between",children:[(0,u.jsxs)(c.kC,{justify:"space-between",overflow:"scroll",overflowX:"hidden",flex:1,direction:{base:"column",md:"row"},children:[(0,u.jsx)(c.kC,{flex:{base:"initial",md:1},position:"relative",p:{base:"40px 20px 0",md:"20px",lg:"40px 135px 40px 60px"},children:(0,u.jsxs)(c.kC,{w:"100%",direction:"column",gap:"60px",maxW:{base
1:"none",lg:"1000px"},children:[i.length>0?(0,u.jsx)(_,{value:V,onChange:function(e){U(e);var r=q.find((function(r){return r.slug===(null===e||void 0===e?void 0:e.value)}));M(r||null)},options:q}):null,(Y||"paypal"===ee)&&L?(0,u.jsx)(x.Z,{secret:null!==(ye=null===Y||void 0===Y?void 0:Y.client_secret)&&void 0!==ye?ye:null,onChange:Ze,onError:he,onReady:function(){return se(!0)},successUrl:W,formRef:fe,amount:null===n||void 0===n?void 0:n.price,paymentProvider:ee,onPaymentProviderChange:xe}):null,(ie||"paypal"===ee)&&L?(0,u.jsxs)(u.Fragment,{children:[y?null:(0,u.jsx)(S,{}),(0,u.jsx)(l.j,{mb:"30px"})]}):null]})}),(0,u.jsx)(R,{bundle:L})]}),(0,u.jsx)(c.kC,{w:"100%",p:{base:"18px",md:"18px 60px"},borderTop:"1px solid",borderColor:"base_2.4",justify:"flex-end",children:(0,u.jsx)(h.Z,{isDisabled:"paypal"!==ee&&!te,isLoading:r,type:"submit",size:"md",onClick:function(){return t()},children:"Complete Payment"})})]})}}):(0,u.jsx)("span",{children:"Something went wrong fetching the bundle"})}},77736:function(e,r,n){n.d(r,{Z:function(){return j}});var t=n(5447),a=n(27427),o=n(2746),i=n(8014),s=n(3933),u=n(12374),c=n(12048),l=n(34237),d=n(43692),p=n(44453),f=n.n(p),m=n(14970),b=n(56168),x=n(8403),h=n(14131),v=n(832),g=n(17325),y=n(52970),Z=function(e){var r=e.onChange,n=e.onError,t=e.onReady,a=e.successUrl,o=e.amount,u=e.formRef,c=(0,m.u6)().setSubmitting,l=(0,x.Z)(),p=(0,s.MD)(),Z=(0,s.lq)(),w=(0,b.useRef)(null),C=(0,y.Sx)({base:"mobile",md:"tablet",lg:"desktop"}),k=(0,b.useCallback)(function(){var e=(0,d.Z)(f().mark((function e(r){var t;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.preventDefault(),p&&Z&&a){e.next=3;break}return e.abrupt("return");case 3:return c(!0),e.next=6,p.confirmPayment({elements:Z,confirmParams:{return_url:"".concat(window.location.origin).concat(a)}});case 6:t=e.sent,c(!1),t.error&&(n?(n(t.error),v.ZP.event(v.tz.CHECKOUT_ERROR,{error_type:t.error.code,amount:o?(0,g.Wy)(o):void 0,device:C})):l({status:"error",title:t.error.message}));case 9:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),[o,C,Z,n,c,p,a,l]),_=(0,b.useCallback)((function(){setTimeout((function(){w.current&&w.current.click()}))}),[]);return(0,b.useEffect)((function(){u.current={submit:_}}),[u,_]),(0,i.jsxs)("form",{onSubmit:k,children:[(0,i.jsx)(s.Hn,{options:{layout:"tabs"},onChange:function(e){r&&r(e)},onReady:t}),(0,i.jsx)(h.Z,{display:"none",ref:w,mt:"20px",size:"md",type:"submit",className:"payment-submit",children:"Submit"})]})},w=function(){return(0,i.jsx)("svg",{style:{flexShrink:0},fill:"#6d6e78",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 40",role:"presentation",width:"42",height:"42",children:(0,i.jsx)("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M0 8a4 4 0 014-4h30a4 4 0 014 4v8a1 1 0 11-2 0v-4a2 2 0 00-2-2H4a2 2 0 00-2 2v20a2 2 0 002 2h30a2 2 0 002-2v-6a1 1 0 112 0v6a4 4 0 01-4 4H4a4 4 0 01-4-4V8zm4 0a1 1 0 100-2 1 1 0 000 2zm3 0a1 1 0 100-2 1 1 0 000 2zm4-1a1 1 0 11-2 0 1 1 0 012 0zm29.992 9.409L44.583 20H29a1 1 0 100 2h15.583l-3.591 3.591a1 1 0 101.415 1.416l5.3-5.3a1 1 0 000-1.414l-5.3-5.3a1 1 0 10-1.415 1.416z"})})},C=function(){return(0,i.jsx)("svg",{role:"presentation",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",width:"16",viewBox:"0 0 16 16",children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2H0zm0 2v6a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6H0zm3 5a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2H4a1 1 0 0 1-1-1z",clipRule:"evenodd"})})},k=function(e){var r=e.size,n=void 0===r?24:r;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,viewBox:"0 0 154.728 190.5",children:(0,i.jsxs)("g",{transform:"translate(898.192 276.071)",children:[(0,i.jsx)("path",{clipPath:"none",d:"M-837.663-237.968a5.49 5.49 0 0 0-5.423 4.633l-9.013 57.15-8.281 52.514-.005.044.01-.044 8.281-52.514c.421-2.669 2.719-4.633 5.42-4.633h26.404c26.573 0 49.127-19.387 53.246-45.658.314-1.996.482-3.973.52-5.924v-.003h-.003c-6.753-3.543-14.683-5.565-23.372-5.565z",fill:"#001c64"}),(0,i.jsx)("path",{clipPath:"none",d:"M-766.506-232.402c-.037 1.951-.207 3.93-.52 5.926-4.119 26.271-26.673 45.658
1-53.246 45.658h-26.404c-2.701 0-4.999 1.964-5.42 4.633l-8.281 52.514-5.197 32.947a4.46 4.46 0 0 0 4.405 5.153h28.66a5.49 5.49 0 0 0 5.423-4.633l7.55-47.881c.423-2.669 2.722-4.636 5.423-4.636h16.876c26.573 0 49.124-19.386 53.243-45.655 2.924-18.649-6.46-35.614-22.511-44.026z",fill:"#0070e0"}),(0,i.jsx)("path",{clipPath:"none",d:"M-870.225-276.071a5.49 5.49 0 0 0-5.423 4.636l-22.489 142.608a4.46 4.46 0 0 0 4.405 5.156h33.351l8.281-52.514 9.013-57.15a5.49 5.49 0 0 1 5.423-4.633h47.782c8.691 0 16.621 2.025 23.375 5.563.46-23.917-19.275-43.666-46.412-43.666z",fill:"#003087"})]})})},_=(0,u.J)("pk_live_51KCVrAAXaLvjGkwYesBAyLNaS2SZrRg5UEFSp10kuawLDrPjpIg0MLkEbF6Z06oz6bH6tuw3KhMFBmcvhc8twUOO007gSOc4lH"),j=function(e){var r=e.secret,n=e.formRef,u=e.paymentProvider,d=e.onPaymentProviderChange,p=(0,a.Z)(e,["secret","formRef","paymentProvider","onPaymentProviderChange"]),f=(0,o.Z)((0,c.rd)(["base.1","support1.4","base_2.2"]),3),m=function(e){var r=e.text,n=e.bg,t=e.border;return{theme:"flat",labels:"floating",variables:{fontLineHeight:"1.5",borderRadius:"0px",colorBackground:n,colorPrimaryText:r,colorPrimary:r,colorIconTab:r,colorIconTabSelected:r,focusBoxShadow:"none",focusOutline:"none",spacingGridRow:"20px",spacingGridColumn:"20px"},rules:{".Block":{backgroundColor:"transparent",boxShadow:"none",padding:"0",border:"none"},".Input":{borderBottom:"1px solid ".concat(t),borderRadius:"0",fontSize:"16px",letterSpacing:"0.05em",fontWeight:"500",padding:"10px 0",backgroundColor:"transparent",boxShadow:"none"},".Input:focus":{outline:"none",boxShadow:"none",borderBottomColor:r},".Input--invalid":{boxShadow:"none",outline:"none",borderBottomColor:"var(--colorError)"},".Tab":{border:"1px solid ".concat(t),backgroundColor:"transparent",boxShadow:"none",outline:"none",borderRadius:"0"},".TabLabel":{color:r},".TabIcon":{fill:r},".Tab--selected, .Tab--selected:focus, .Tab--selected:hover":{backgroundColor:"transparent",border:"1px solid ".concat(r),boxShadow:"none",outline:"none"},".TabLabel--selected":{color:r},".TabIcon--selected":{fill:r}}}}({text:f[0],bg:f[1],border:f[2]}),b=!!d;return r||"paypal"===u?(0,i.jsxs)(l.xu,{children:[(0,i.jsxs)(l.kC,{align:"center",justify:"space-between",mb:"30px",gap:"10px",children:[(0,i.jsx)(l.xv,{variant:"subtitleSpacedOutL",children:"Payment Details"}),b?(0,i.jsx)(h.Z,{onClick:function(){return d("paypal"===u?"stripe":"paypal")},leftIcon:"paypal"!==u?(0,i.jsx)(k,{size:14}):(0,i.jsx)(C,{}),size:"sm",variant:"base.1.outline",children:"paypal"===u?"Other Payment Methods":"Pay with PayPal"}):null]}),"paypal"===u?(0,i.jsxs)(l.kC,{direction:"column",children:[(0,i.jsx)(k,{size:26}),(0,i.jsx)(l.xv,{my:3,pb:3,w:"full",borderBottom:"1px solid #f0e8df",children:"PayPal selected."}),(0,i.jsxs)(l.kC,{align:"center",gap:4,children:[(0,i.jsx)(w,{}),(0,i.jsx)(l.xv,{fontSize:"14px",color:"#6d6e78",children:"After submission, you will be redirected to PayPal to securely complete next steps."})]})]}):(0,i.jsx)(s.eK,{stripe:_,options:{clientSecret:r,appearance:m},children:(0,i.jsx)(Z,(0,t.Z)({formRef:n},p))},r)]}):null}},37824:function(e,r,n){var t=n(43692),a=n(5447),o=n(99728),i=n(27427),s=n(2746),u=n(44453),c=n.n(u),l=n(8014),d=n(53437),p=n(34237),f=n(89464),m=n(12048),b=n(53872),x=n(13252),h=n(56168);r.Z=function(e){var r=e.creatable,n=e.containerProps,u=e.placeholderProps,v=e.onCreate,g=e.variant,y=void 0===g?"underlined":g,Z=e.color,w=void 0===Z?"base.6":Z,C=e.borderColor,k=void 0===C?"base.6":C,_=(0,i.Z)(e,["creatable","containerProps","placeholderProps","onCreate","variant","color","borderColor"]),j=(0,h.useState)(!1),P=j[0],S=j[1],O=(0,s.Z)((0,m.tk)(["base_2.2","base.1","base_2.5","base.2","support2.2","base.6",w,k]),8),T=O[0],R=O[1],E=O[2],L=O[3],I=O[4],z=O[5],M=O[6],D=O[7],N=(0,d.Fg)().fonts,B=function(e){return{underlined:{border:"none",borderBottom:"1px solid ".concat(e),borderRadius:0,paddingTop:19,paddingBottom:10},outlined:{border:"1px solid ".concat(e),borderRadius:8,paddingTop:5,paddingBottom:5,paddingLeft:15}}}(D)[y],V=(0,h.useMemo)((function(){return{container:function(e,r){return(0,o.Z)((0,a.Z)({},e),{position:"relative","& + .multi-placeholder":{opacity:r.hasValue?1:0,transform:r.hasValue?"translateY(0px)":"translateY(5px)"}})},menu:function(e){return(0,o.Z)((0,a.Z)({},e),{margin:0,zIndex:10,borderRadius:0,backgroundColor:E})},menuList:function(e){return(0,o.Z)((0,a.Z)({},e),{padding:0})},option:function(e,r){return(0,o.Z)((0,a.Z)({},e,b.ZP.fieldsTitleL),{fontFamily:N.body,color:r.isFocused?z:R,backgroundColor:r.isFocused?L:E,padding:"10px 20px",cursor:"pointer","&:hover":{backgroundColor:L,color:z}})},noOptionsMessage:function(e){return(0,o.Z)((0,a.Z)({},e,b.ZP.fieldsTitleL),{fontFamily:N.body,color:R})},placeholder:function(e){return(0,o.Z)((0,a.Z)({},e,b.ZP.fieldsTitleL),{fontFamily:N.body,margin:0,color:T})},control:function(e){return(0,o.Z)((0,a.Z)((0,o.Z)((0,a.Z)({},e),{boxShadow:"none",color:M,backgroundColor:"transparent",borderBottomColor:T}),B),{"&:hover":{borderColor:D}})},valueContainer:function(e){return(0,o.Z)((0,a.Z)({},e),{paddingLeft:0,paddingRight:0,margin:0})},multiValue:function(e){return(0,o.Z)((0,a.Z)({},e),{backgroundColor:I})},multiValueLabel:function(e){return(0,o.Z)((0,a.Z)({},e,b.ZP.fieldsDescription),{fontWeight:500,fontFamily:N.body,paddingLeft:8,paddingRight:0,paddingTop:4,paddingBottom:4,color:R})},multiValueRemove:function(e){return(0,o.Z)((0,a.Z)({},e),{color:R,padding:"4px 8px","&:hover":{backgroundColor:"transparent"}})},input:function(e){return(0,o.Z)((0,a.Z)({},e,b.ZP.fieldsInputValue),{fontFamily:N.body,fontWeight:500,margin:0,color:M})},indicatorSeparator:function(e){return(0,o.Z)((0,a.Z)({},e),{backgroundColor:D})},dropdownIndicator:function(e){return(0,o.Z)((0,a.Z)({},e),{color:D})}}}),[E,N.body,z,R,L,T,M,B,D,I]),A=(0,h.useCallback)(function(){var e=(0,t.Z)(c().mark((function e(r){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!v){e.next=5;break}return S(!0),e.next=4,v(r);case 4:S(!1);case 5:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),[v]);return(0,l.jsxs)(p.xu,(0,o.Z)((0,a.Z)({position:"relative"}
1,n),{children:[r?(0,l.jsx)(x.Z,(0,o.Z)((0,a.Z)({},_),{isClearable:!0,isDisabled:P,isLoading:P,onCreateOption:A,styles:V})):(0,l.jsx)(f.ZP,(0,o.Z)((0,a.Z)({},_),{styles:V})),_.placeholder&&(0,l.jsx)(p.xv,(0,o.Z)((0,a.Z)({variant:"fieldsTitleS",className:"multi-placeholder",color:"base_2.2",opacity:"1",transform:"translateY(0px)",transition:"opacity .1s linear, transform .1s linear",position:"absolute",top:"0",left:"0",pointerEvents:"none"},u),{children:_.placeholder}))]}))}},81771:function(e,r,n){n.d(r,{j:function(){return m}});var t=n(5447),a=n(99728),o=n(27427),i=n(2746),s=n(8014),u=n(34237),c=n(78846),l=n(14970),d=n(56168),p=n(98421),f=function(e){var r=e.isChecked,n=e.onChange,i=e.error,l=(0,o.Z)(e,["isChecked","onChange","error"]),f=(0,d.useRef)(null);return(0,d.useEffect)((function(){i&&f.current&&f.current.scrollIntoView({behavior:"smooth",block:"center"})}),[i]),(0,s.jsxs)(u.xu,(0,a.Z)((0,t.Z)({ref:f},l),{children:[(0,s.jsx)(c.Z,{isChecked:r,onChange:n,label:(0,s.jsxs)(u.xv,{variant:"description",children:["I agree to the"," ",(0,s.jsx)("a",{target:"_blank",href:p.p.TERMS,rel:"noreferrer",children:(0,s.jsx)("u",{children:"Competition and Website Terms of Use"})})]})}),i&&(0,s.jsx)(u.xv,{variant:"description",color:"red.500",mt:"8px",children:"Must Accept Terms and Conditions"})]}))},m=function(e){var r=(0,i.Z)((0,l.U$)("termsOfUse"),3),n=r[0],a=r[1],o=r[2];return(0,s.jsx)(f,(0,t.Z)({isChecked:n.value,onChange:function(){return o.setValue(!n.value)},error:!(!a.error||!a.touched)},e))};r.Z=f},92118:function(e,r,n){n.d(r,{Z:function(){return u}});var t=n(43692),a=n(44453),o=n.n(a),i=n(49823),s={create:function(){var e=(0,t.Z)(o().mark((function e(r){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.ZP)({method:"POST",path:"/api/admin/bundles/",body:r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),update:function(){var e=(0,t.Z)(o().mark((function e(r){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.ZP)({method:"PATCH",path:"/api/admin/bundles/".concat(r.id,"/"),body:r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),get:function(){var e=(0,t.Z)(o().mark((function e(r){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.ZP)({path:"/admin/bundles/".concat(r)});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),artist:{get:function(){var e=(0,t.Z)(o().mark((function e(r,n){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.ZP)({path:"/api/artist/bundles/".concat(r,"/")},n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(r,n){return e.apply(this,arguments)}}(),getPaymentIntent:function(){var e=(0,t.Z)(o().mark((function e(r){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.ZP)({path:"/api/artist/bundles/".concat(r,"/payment-intent/")});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),getPaypalOrder:function(){var e=(0,t.Z)(o().mark((function e(r){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.ZP)({method:"POST",path:"/api/artist/bundles/".concat(r,"/create-paypal-order/")});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),getOrder:function(){var e=(0,t.Z)(o().mark((function e(r,n){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.ZP)({path:"/api/artist/bundle-orders/".concat(r,"/")},n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(r,n){return e.apply(this,arguments)}}(),getOrderByPaypalId:function(){var e=(0,t.Z)(o().mark((function e(r,n){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.ZP)({path:"/api/artist/bundle-orders/by-paypal-order/".concat(r,"/")},n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(r,n){return e.apply(this,arguments)}}(),createOrder:function(){var e=(0,t.Z)(o().mark((function e(r){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.ZP)({method:"POST",path:"/api/artist/bundle-orders/",body:r,returnErrors:!0});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),deleteOrder:function(){var e=(0,t.Z)(o().mark((function e(r){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.ZP)({method:"DELETE",path:"/api/artist/bundle-orders/".concat(r,"/")});case 2:return n=e.sent.status,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}()}},u={bundles:s}}}]);

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.