PageSourceSearch

https://moviesaints.com/_next/static/chunks/8959.1494a71716a58eee.js

js moviesaints.com collected 2026-09-24 18:37:46 UTC 9,902 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8959],{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",u=e.controllClass?e.controllClass:"",d=e.otherClass?e.otherClass:{};e.formatOptionLabel&&e.formatOptionLabel;let p=e.defaultValue?e.defaultValue:"",m=e.isDisabled?e.isDisabled:"",h=!!e.isMulti&&e.isMulti,x=e.onChange;e.onChangeParams;let[g,f]=(0,r.useState)(""),j=e.options||{},b=e.className||"light-select",v=e.returnType||"string",w=e.classNamePrefix||"light-select",N=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(!h)return{value:p,label:p};{let e=p.split(","),t=[];return e.map(e=>{t.push({value:e,label:e})}),t}}function T(e){x&&(e?"object"==v?x(e):h?x(e.map(e=>e.value).join(",")):x(e.value):x(null))}function V(){let e="!rounded-lg";u?(u.includes("!min-h-[")||(e+=" !min-h-[46px]"),e=e+" "+u):e+=" !min-h-[46px]";let t={control:t=>e};return d&&Object.assign(t,d),t}return(0,r.useEffect)(()=>{C(!0)},[]),S?(0,l.jsxs)(l.Fragment,{children:["remote"==o&&(0,l.jsx)(n.Z,{isMulti:h,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:b,classNames:V(),classNamePrefix:w,name:N,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:j,placeholder:c,className:b,classNames:V(),classNamePrefix:w,onChange:T,defaultValue:Z(),isDisabled:m,name:N,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),u=a.n(c),d=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,h]=(0,n.useState)(String),x=e.onChange,g=e.text,f=e.smallText?e.smallText:"",j=e.disabled,b=void 0===e.preview||e.preview,v=void 0!==e.multiple&&e.multiple,w=void 0!==e.isRequired&&e.isRequired,N=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*N&&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*N?F(t):S("File size exceeds the allowed limit of "+N+"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),u().ajax({url:l,dataType:"text",cache:!1,contentType:!1,processData:!1,data:t,type:"post",success:function(e){let t=u().parseJSON(e),a=t.url?t.url:d.Z.getLocalStorage(t.path);p(a),x({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:j,...k()}),c&&b&&(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||!b)&&(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",w&&(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})]})}},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),u=a(65725);a(2121);var d=a(76338),p=a.n(d),m=a(5943),h=a.n(m),x=a(69491);
1function g(e){let[t,a]=(0,n.useState)(!1),[d,m]=(0,n.useState)(Object),[g,f]=(0,n.useState)("Upload"),[j,b]=(0,n.useState)(e.defaultValue?s.Z.s3_file_url+e.defaultValue:""),[v,w]=(0,n.useState)(!1),[N,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:"",z=void 0!==e.isRequired&&e.isRequired,[L,P]=(0,n.useState)(!0),{getRootProps:R,getInputProps:U}=(0,u.uI)({accept:{"image/jpeg":[".jpg",".jpeg"],"image/png":[".png"],"image/gif":[".gif"]},noDrag:!0,onDrop:e=>{m(e[0]),f("Change"),C(!0),P(!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:[j&&Z&&(0,l.jsx)("img",{src:j,alt:"Uploaded image preview",className:"h-full w-full"}),(!j||!Z)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.G,{icon:r.cf$,className:"text-2xl"}),(0,l.jsxs)("p",{children:[V,z&&(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:[N&&!S&&(0,l.jsx)("img",{src:N,alt:"Selected image preview",className:"mb-[20px] inline-block h-[300px]"}),!N&&!S&&"square"==D&&(0,l.jsx)("img",{src:"/noProfilePic.jpg",alt:"Default square placeholder",className:"mb-[20px] inline-block h-[300px]"}),!N&&!S&&"horizontal"==D&&(0,l.jsx)("img",{src:"/profileLandscapePoster.jpg",alt:"Default horizontal placeholder",className:"mb-[20px] inline-block h-[300px]"}),!N&&!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=d.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],d.name);m(t),y(URL.createObjectURL(t)),C(!1),F(null),P(!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",d),(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),h().ajax({url:l,dataType:"text",cache:!1,contentType:!1,processData:!1,data:e,type:"post",success:function(e){let t=h().parseJSON(e),l=t.url?t.url:x.Z.getLocalStorage(t.path);b(l),y(""),a(!1),O({path:t.path,name:t.name,url:l})}}))},disabled:L,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.