1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9135],{45908:function(e,t,a){a.d(t,{Z:function(){return o}});var l=a(57437),s=a(36979),n=a(17810),i=a(40586),r=a(2265);function o(e){var t;let a=e.table?e.table:"",o=e.type?e.type:"remote";e.defaultOptions&&e.defaultOptions;let c=e.placeholder?e.placeholder:"Select",d=e.controllClass?e.controllClass:"",u=e.otherClass?e.otherClass:{};e.formatOptionLabel&&e.formatOptionLabel;let p=e.defaultValue?e.defaultValue:"",m=e.isDisabled?e.isDisabled:"",x=!!e.isMulti&&e.isMulti,h=e.onChange;e.onChangeParams;let[g,f]=(0,r.useState)(""),b=e.options||{},j=e.className||"light-select",v=e.returnType||"string",N=e.classNamePrefix||"light-select",w=e.name||"",y=e.value,[S,C]=(0,r.useState)(!1),k=e.loadParams?e.loadParams:{},[F,O]=(0,r.useState)(""),D=null!==(t=e.minSearchLength)&&void 0!==t?t:["movie","ss_video"].includes(a)?2:0;function Z(){if(!p)return"";if("string"!=typeof p&&!(p instanceof String))return p;if(!x)return{value:p,label:p};{let e=p.split(","),t=[];return e.map(e=>{t.push({value:e,label:e})}),t}}function T(e){h&&(e?"object"==v?h(e):x?h(e.map(e=>e.value).join(",")):h(e.value):h(null))}function V(){let e="!rounded-lg";d?(d.includes("!min-h-[")||(e+=" !min-h-[46px]"),e=e+" "+d):e+=" !min-h-[46px]";let t={control:t=>e};return u&&Object.assign(t,u),t}return(0,r.useEffect)(()=>{C(!0)},[]),S?(0,l.jsxs)(l.Fragment,{children:["remote"==o&&(0,l.jsx)(n.Z,{isMulti:x,loadOptions:e=>(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return i.Z.post({url:"dropdown/"+a,data:{str:e,data:k}}).then(e=>e)})(e),defaultOptions:!0,placeholder:c,className:j,classNames:V(),classNamePrefix:N,name:w,defaultValue:Z(),isDisabled:m,onChange:T,onInputChange:function(e){return O(e),e},isClearable:!0,backspaceRemovesValue:!0,noOptionsMessage:function(){return"remote"==o&&D>0&&F.length>0&&F.length<D?"Type at least ".concat(D," characters"):"No options"},value:y}),"select"==o&&(0,l.jsx)(s.ZP,{options:b,placeholder:c,className:j,classNames:V(),classNamePrefix:N,onChange:T,defaultValue:Z(),isDisabled:m,name:w,isClearable:!0,backspaceRemovesValue:!0,value:y})]}):null}},61406:function(e,t,a){a.d(t,{Z:function(){return p}});var l=a(57437),s=a(23563),n=a(2265),i=a(51268),r=a(35217),o=a(65725);a(2121);var c=a(5943),d=a.n(c),u=a(69491);function p(e){let[t,a]=(0,n.useState)(Object),[c,p]=(0,n.useState)(e.defaultValue?s.Z.s3_file_url+e.defaultValue:""),[m,x]=(0,n.useState)(String),h=e.onChange,g=e.text,f=e.smallText?e.smallText:"",b=e.disabled,j=void 0===e.preview||e.preview,v=void 0!==e.multiple&&e.multiple,N=void 0!==e.isRequired&&e.isRequired,w=e.maxSize?e.maxSize:2,[y,S]=(0,n.useState)(String),{getRootProps:C,getInputProps:k}=(0,o.uI)({accept:{"image/jpeg":[".jpg",".jpeg"],"image/png":[".png"],"image/gif":[".gif"]},noDrag:!0,onDrop:(e,t)=>{if(S(""),v)e.map((e,t)=>{e.size<=1048576*w&&F(e)});else if(t.length&&t[0].errors.length)"file-invalid-type"==t[0].errors[0].code&&S("Invalid file type");else{let t=e[0];t.size<=1048576*w?F(t):S("File size exceeds the allowed limit of "+w+"MB")}}});function F(e){var t=new FormData;t.append("file",e);let a=window.location.host;a.indexOf(":")>-1&&(a=a.trim().substring(0,a.trim().indexOf(":")));let l=s.Z.api_url+"upload";"prod"==s.Z.app_env&&(l="https://"+a+"/"+l),d().ajax({url:l,dataType:"text",cache:!1,contentType:!1,processData:!1,data:t,type:"post",success:function(e){let t=d().parseJSON(e),a=t.url?t.url:u.Z.getLocalStorage(t.path);p(a),h({path:t.path,name:t.name,url:a})}})}return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{...C({className:"w-full h-full border border-dashed border-blue-500 text-center content-center rounded-lg cursor-pointer mb-[5px]"}),children:[(0,l.jsx)("input",{disabled:b,...k()}),c&&j&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("img",{src:c,alt:"Uploaded image preview",className:"max-h-full max-w-full m-auto"})}),(!c||!j)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.G,{icon:r.cf$,className:"text-2xl"}),(0,l.jsxs)("p",{children:[g||"Upload Files",N&&(0,l.jsx)("span",{className:"text-red-500",children:"*"})]}),f&&(0,l.jsx)("p",{className:"text-sm",children:f})]})]}),y&&(0,l.jsx)("p",{className:"text-xs text-red-500",children:y})]})}},16415:function(e,t,a){a.d(t,{Z:function(){return s}});var l=a(57437);
1function s(e){let{contactEmail:t}=e;return(0,l.jsxs)("div",{className:"max-w-[700px] m-auto p-[25px] rounded-lg border border-amber-300 bg-amber-50 text-center",children:[(0,l.jsx)("p",{className:"text-xl font-semibold mb-[10px]",children:"More Information Needed"}),(0,l.jsxs)("p",{className:"mb-[10px]",children:["An email has been sent to you from ",t," or [email protected]. Please reply to that email or ",(0,l.jsx)("a",{href:"mailto:".concat(t),className:"text-blue-500 underline",children:"contact support"}),"."]})]})}},10574:function(e,t,a){a.d(t,{Z:function(){return g}});var l=a(57437),s=a(23563),n=a(2265),i=a(51268),r=a(35217),o=a(33044),c=a(46624),d=a(65725);a(2121);var u=a(76338),p=a.n(u),m=a(5943),x=a.n(m),h=a(69491);function g(e){let[t,a]=(0,n.useState)(!1),[u,m]=(0,n.useState)(Object),[g,f]=(0,n.useState)("Upload"),[b,j]=(0,n.useState)(e.defaultValue?s.Z.s3_file_url+e.defaultValue:""),[v,N]=(0,n.useState)(!1),[w,y]=(0,n.useState)(String),[S,C]=(0,n.useState)(!1),[k,F]=(0,n.useState)(null),O=e.onChange,D=e.type?e.type:"square",Z=void 0===e.preview||e.preview;void 0!==e.multiple&&e.multiple;let T=!!e.disabled&&e.disabled,V=e.text||"Upload Files",_=e.smallText?e.smallText:"",P=void 0!==e.isRequired&&e.isRequired,[z,L]=(0,n.useState)(!0),{getRootProps:R,getInputProps:U}=(0,d.uI)({accept:{"image/jpeg":[".jpg",".jpeg"],"image/png":[".png"],"image/gif":[".gif"]},noDrag:!0,onDrop:e=>{m(e[0]),f("Change"),C(!0),L(!0),null!==k&&(k.destroy(),F(null)),setTimeout(()=>{let t=document.getElementById("cropper"),a={type:D};"square"==D?(a.width=250,a.height=250):"horizontal"==D?(a.width=445,a.height=250):"vertical"==D&&(a.width=169,a.height=250);let l=new(p())(t,{viewport:a,showZoomer:!1});var s=new FileReader;s.readAsDataURL(e[0]),s.onload=()=>{l.bind({url:s.result})},F(l)},500)}});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"w-full h-full border border-dashed border-blue-500 text-center content-center rounded-lg cursor-pointer",onClick:()=>!T&&a(!0),children:[b&&Z&&(0,l.jsx)("img",{src:b,alt:"Uploaded image preview",className:"h-full w-full"}),(!b||!Z)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.G,{icon:r.cf$,className:"text-2xl"}),(0,l.jsxs)("p",{children:[V,P&&(0,l.jsx)("span",{className:"text-red-500",children:"*"})]}),_&&(0,l.jsx)("p",{className:"text-sm",children:_})]})]}),(0,l.jsx)(o.u,{show:t,as:n.Fragment,children:(0,l.jsxs)(c.V,{onClose:()=>a(!1),children:[(0,l.jsx)(o.u.Child,{className:"fixed inset-0 z-[99999] bg-black bg-opacity-50 transition-opacity",enter:"transition ease-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition ease-out duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0","aria-hidden":"true"}),(0,l.jsx)(o.u.Child,{className:"fixed inset-0 z-[99999] flex p-6",enter:"transition ease-out duration-300",enterFrom:"opacity-0 scale-75",enterTo:"opacity-100 scale-100",leave:"transition ease-out duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-75",children:(0,l.jsx)("div",{className:"max-w-[100%] lg:max-w-5xl mx-auto h-full flex items-center",children:(0,l.jsxs)(c.V.Panel,{className:"w-[700px] max-h-full rounded-3xl shadow-2xl bg-white overflow-auto",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between p-4 lg:p-5 border-b rounded-t",children:[(0,l.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:"Upload Image"}),(0,l.jsxs)("button",{type:"button",className:"end-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center",onClick:()=>a(!1),children:[(0,l.jsx)("svg",{className:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14",children:(0,l.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})}),(0,l.jsx)("span",{className:"sr-only",children:"Close modal"})]})]}),(0,l.jsxs)("div",{className:"p-4 lg:p-5 text-center",children:[w&&!S&&(0,l.jsx)("img",{src:w,alt:"Selected image preview",className:"mb-[20px] inline-block h-[300px]"}),!w&&!S&&"square"==D&&(0,l.jsx)("img",{src:"/noProfilePic.jpg",alt:"Default square placeholder",className:"mb-[20px] inline-block h-[300px]"}),!w&&!S&&"horizontal"==D&&(0,l.jsx)("img",{src:"/profileLandscapePoster.jpg",alt:"Default horizontal placeholder",className:"mb-[20px] inline-block h-[300px]"}),!w&&!S&&"vertical"==D&&(0,l.jsx)("img",{src:"/profileVerticalPoster.jpg",alt:"Default vertical placeholder",className:"mb-[20px] inline-block h-[300px]"}),S&&(0,l.jsx)("div",{id:"cropper",className:"!h-[300px] mb-[20px]"}),(0,l.jsxs)("p",{className:"text-center",children:[(0,l.jsxs)("div",{...R({className:"btn inline-block"}),children:[(0,l.jsx)("input",{...U()}),g]}),k&&(0,l.jsx)("button",{className:"btn ml-[15px]",onClick:()=>(function(){if(null!==k){let e=u.name.split(".").pop();"jpg"==e&&(e="jpeg"),k.result({format:e,type:"blob",size:"original",quality:.8}).then(function(e){let t=new File([e],u.name);m(t),y(URL.createObjectURL(t)),C(!1),F(null),L(!1)})}})(),children:"Done"})]}
1),k&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"text-center mt-[10px]",children:"Use mouse wheel to zoom in/out."}),(0,l.jsx)("p",{className:"text-center",children:"Click Done before Saving."})]})]}),(0,l.jsx)("div",{className:"p-4 lg:p-5 text-right border-t",children:(0,l.jsx)("p",{children:(0,l.jsx)("button",{className:"btn",onClick:()=>{var e;let t,l;return(e=new FormData).append("file",u),(t=window.location.host).indexOf(":")>-1&&(t=t.trim().substring(0,t.trim().indexOf(":"))),l=s.Z.api_url+"upload",void("prod"==s.Z.app_env&&(l="https://"+t+"/"+l),x().ajax({url:l,dataType:"text",cache:!1,contentType:!1,processData:!1,data:e,type:"post",success:function(e){let t=x().parseJSON(e),l=t.url?t.url:h.Z.getLocalStorage(t.path);j(l),y(""),a(!1),O({path:t.path,name:t.name,url:l})}}))},disabled:z,children:"SAVE"})})})]})})})]})})]})}},69491:function(e,t,a){var l=a(23563);let s={};s.getLocalStorage=e=>{let t=window.location.host;return t.indexOf(":")>-1&&(t=t.trim().substring(0,t.trim().indexOf(":"))),"https://"+t+"/"+l.Z.local_storage+e},t.Z=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.