PageSourceSearch

https://refocus-awards.com/_next/static/chunks/325-ef9402645badc6f6.js

js refocus-awards.com collected 2026-10-02 07:01:08 UTC 8,402 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[325],{22238:function(e,n,t){var i=t(43692),r=t(5447),o=t(99728),a=t(2746),s=t(44453),l=t.n(s),c=t(8014),u=t(34237),d=t(21293),p=t(86584),x=t(77567),f=t(56168),h=t(42003),v=t(90319),m=t(14131),b=t(40137),g=t(60718);n.Z=function(e){var n,t,s=e.text,j=e.image,Z=e.onAdd,w=e.onRemove,C=e.placeholderProps,k=void 0===C?{}:C,y=e.previewProps,S=void 0===y?{}:y,D=e.hideIcon,I=void 0!==D&&D,z=e.hidePopup,O=void 0!==z&&z,R=(0,f.useState)(!1),P=R[0],_=R[1],T=(0,f.useCallback)(function(){var e=(0,i.Z)(l().mark((function e(n){var t,i,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,a.Z)(n,1),i=t[0],_(!0),e.prev=2,e.next=5,(0,v.Ix)(i);case 5:r=e.sent,Z(r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0);case 12:_(!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(n){return e.apply(this,arguments)}}(),[Z]),E=(0,h.uI)({onDrop:T,accept:v.KL.join(", "),noDrag:!0,maxSize:v.Tb}),F=E.getInputProps,W=E.open;return(null===j||void 0===j?void 0:j.url)?(0,c.jsxs)(u.kC,(0,o.Z)((0,r.Z)({position:"relative",h:"300px",border:"1px solid",borderColor:"base_2.2",borderRadius:"4px"},S),{children:[(0,c.jsxs)(u.xu,{m:"20px",position:"relative",width:"100%",children:[(0,c.jsx)(x.Z,{objectFit:"contain",src:(0,v.Jn)(null===j||void 0===j||null===(n=j.sizes)||void 0===n||null===(t=n.small)||void 0===t?void 0:t.url),layout:"fill",alt:j.name}),O?null:(0,c.jsx)(g.Z,{uploadId:j.id,button:(0,c.jsx)(p.hU,{"aria-label":"Edit Image",variant:"flat",icon:(0,c.jsx)(b.Z,{icon:"editicon",size:20,fill:"base.6"}),bg:"base.4",borderRadius:"15px",p:"0",minW:"0",minH:"0",w:"30px",height:"30px",as:"span"})})]}),(0,c.jsx)(u.kC,{align:"center",justify:"center",bg:"system.error",h:"40px",w:"40px",borderRadius:"50%",position:"absolute",top:"20px",right:"20px",cursor:"pointer",onClick:w,children:(0,c.jsx)(b.Z,{icon:"trashicon",size:20,fill:"base.6"})})]})):(0,c.jsx)(u.Kq,(0,o.Z)((0,r.Z)({h:"300px",dir:"column",spacing:"20px",align:"center",justify:"center",borderRadius:"4px",border:"1px solid",borderColor:"base_2.2",p:"30px"},k),{children:P?(0,c.jsx)(d.D8,{isIndeterminate:!0,color:"accent1.3"}):(0,c.jsxs)(c.Fragment,{children:[I?null:(0,c.jsx)(b.Z,{icon:"upload",size:50}),(0,c.jsx)(u.xv,{variant:"description",maxW:"300px",align:"center",children:s}),(0,c.jsx)(m.Z,{variant:"base.1.outline",size:"md",onClick:function(){return W()},children:"Upload Image"}),(0,c.jsx)("input",(0,r.Z)({},F()))]})}))}},60718:function(e,n,t){var i=t(43692),r=t(5447),o=t(44453),a=t.n(o),s=t(8014),l=t(97129),c=t(72263),u=t(29237),d=t(34237),p=t(33453),x=t(14970),f=t(56168),h=t(8403),v=t(49823),m=t(94644),b=t(14131),g=(0,m.Ry)({title:(0,m.Z_)().nullable()});n.Z=function(e){var n=e.uploadId,t=e.button,o=(0,l.qY)(),m=o.isOpen,j=o.onOpen,Z=o.onClose,w=(0,f.useState)(),C=w[0],k=w[1],y=(0,h.Z)({position:"top-right"}),S=function(e){var n="Something went wrong. Please try again.",t="error";200!==e&&201!==e||(n="Image credits have been updated.",t="success"),y({title:n,status:t})},D=function(){var e=(0,i.Z)(a().mark((function e(t){var i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.ZP)({path:"/api/uploads-update/".concat(n,"/"),method:"PATCH",body:{title:t.title||"",partial:!0}});case 2:i=e.sent,S(i.status),Z();case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),I=(0,f.useCallback)((0,i.Z)(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.ZP)({path:"/api/uploads/".concat(n,"/")});case 2:t=e.sent.data,k((null===t||void 0===t?void 0:t.title)||"");case 4:case"end":return e.stop()}}),e)}))),[n]);return(0,f.useEffect)((function(){I()}),[I]),n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b.Z,{variant:"flat",size:"sm",onClick:j,children:t}),(0,s.jsxs)(c.u_,{isOpen:m,onClose:Z,isCentered:!0,children:[(0,s.jsx)(c.ZA,{}),(0,s.jsx)(c.hz,{bg:"support1.4",borderRadius:"0",children:(0,s.jsx)(x.J9,{onSubmit:D,initialValues:{title:C},validationSchema:g,children:function(e){var n=e.isSubmitting;return(0,s.jsxs)(x.l0,{children:[(0,s.jsx)(c.fe,{children:(0,s.jsx)(p.Z,{name:"title",render:function(e){var n=e.field;return(0,s.jsx)(u.II,(0,r.Z)({maxLength:200,placeholder:"Image Credits"},n))}})}),(0,s.jsx)(c.mz,{children:(0,s.jsxs)(d.Kq,{direction:"row",spacing:"10px",children:[(0,s.jsx)(b.Z,{variant:"base.1.outline",size:"md",onClick:Z,children:"Cancel"}),(0,s.jsx)(b.Z,{isLoading:n,size:"md",type:"submit",children:"Save"})]})})]})}})})]})]}):null}}
1,5731:function(e,n,t){t.d(n,{V:function(){return m}});var i=t(43692),r=t(5447),o=t(99728),a=t(27427),s=t(44453),l=t.n(s),c=t(8014),u=t(72263),d=t(34237),p=t(23434),x=t(56168),f=t(21607),h=t(14131),v=function(e){return[{label:"Cancel",variant:"base.1.outline"},{label:"Delete",onClick:e,variant:"system.error.outline"}]},m=function(e){var n=e.title,t=void 0===n?"Are you sure?":n,i=e.body,o=void 0===i?"This action cannot be undone.":i,s=e.onDelete,l=(0,a.Z)(e,["title","body","onDelete"]);return(0,c.jsx)(b,(0,r.Z)({title:t,body:o,buttons:v(s)},l))},b=function(e){var n=e.title,t=void 0===n?"Are you sure?":n,s=e.body,v=e.maxW,m=void 0===v?"650px":v,b=e.open,g=e.setOpen,j=e.confirmDefault,Z=void 0!==j&&j,w=e.trigger,C=e.showOnce,k=e.buttons,y=(0,a.Z)(e,["title","body","maxW","open","setOpen","confirmDefault","trigger","showOnce","buttons"]),S=(0,x.useState)(!1),D=S[0],I=S[1],z=(0,x.useRef)(!1),O=(0,x.useState)(!1),R=O[0],P=O[1],_="undefined"!==typeof b?b:R,T="undefined"!==typeof g?g:P;(0,x.useEffect)((function(){return z.current=!0,function(){z.current=!1}}),[]);var E=(0,x.useRef)(null),F=(0,x.useRef)(null),W=(0,x.useCallback)((function(){return I((function(e){return!e}))}),[]);return(0,x.useEffect)((function(){if(C){var e=f.Z.getDataFromStorage(C);z.current&&I(!!e)}}),[C]),(0,c.jsxs)(c.Fragment,{children:[w&&w({setOpen:T}),(0,c.jsx)(u.aR,(0,o.Z)((0,r.Z)({isOpen:_,leastDestructiveRef:Z?F:E,onClose:function(){return T(!1)},isCentered:!0},y),{children:(0,c.jsx)(u.dh,{h:"100vh",w:"100vw",children:(0,c.jsxs)(u._T,{maxW:m,m:{base:"0 20px",md:"0 30px"},py:{base:"20px",md:"30px"},children:[(0,c.jsx)(u.fY,{fontSize:"lg",fontWeight:"bold",px:{base:"30px",md:"60px"},children:(0,c.jsx)(d.xv,{children:t})}),(0,c.jsx)(u.iP,{py:{base:"10px",md:"20px"},px:{base:"30px",md:"60px"},children:(0,c.jsx)(d.kC,{direction:"column",width:"100%",children:"string"===typeof s?(0,c.jsx)(d.xv,{variant:"description",mb:"10px",children:s}):s})}),k&&(0,c.jsx)(u.xo,{px:{base:"30px",md:"60px"},children:(0,c.jsxs)(d.kC,{direction:"column",w:"100%",children:[C?(0,c.jsx)(p.XZ,{mb:"20px",isChecked:D,onChange:W,w:{base:"100%",md:"auto"},saturate:"sm",children:(0,c.jsx)(d.xv,{variant:"description",children:"Do Not Show This Message Again"})}):null,(0,c.jsx)(d.kC,{gap:"10px",w:"100%",children:k.map((function(e,n){var t=e.label,s=e.onClick,u=(0,a.Z)(e,["label","onClick"]);return(0,c.jsx)(h.Z,(0,o.Z)((0,r.Z)({ref:0===n?F:E,onClick:(0,i.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!s){e.next=3;break}return e.next=3,s();case 3:0===n&&C&&D&&f.Z.saveDataToStorage(C,!0),T(!1);case 5:case"end":return e.stop()}}),e)}))),variant:0===n?"accent1.3.fill":"base.1.outline",size:"md",minW:"120px"},u),{children:t}),n)}))})]})})]})})}))]})};n.Z=b},62985:function(e,n,t){t.d(n,{Z:function(){return l}});var i=t(5447),r=t(99728),o=t(27427),a=t(8014),s=t(75274);function l(e,n){var t=n.title,l=n.header,c=(0,o.Z)(n,["title","header"]);return e.getLayout=function(e){var n="function"===typeof t?t(e.props):t;return(0,a.jsx)(s.Z,(0,r.Z)((0,i.Z)({title:n,header:l},c,e.props),{children:e}))},e}},21607:function(e,n,t){var i=t(62139),r=t(5447),o=new function e(){var n=this;(0,i.Z)(this,e),this.saveDataToStorage=function(e,t){var i;null===(i=n.window)||void 0===i||i.localStorage.setItem(e,JSON.stringify(t))},this.getDataFromStorage=function(e){var t,i=null===(t=n.window)||void 0===t?void 0:t.localStorage.getItem(e);return i?JSON.parse(i):null},this.updateDataInStorage=function(e,t){var i=n.getDataFromStorage(e),o=(0,r.Z)({},i,t);Object.keys(o).forEach((function(e){"string"!==typeof o[e]||o[e]||delete o[e]})),n.saveDataToStorage(e,(0,r.Z)({},o))},this.delete=function(e){var t;null===(t=n.window)||void 0===t||t.localStorage.removeItem(e)},this.window=window};n.Z=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.