1(this.webpackJsonpsaraswatifilms=this.webpackJsonpsaraswatifilms||[]).push([[10],{170:function(e,t,a){"use strict";var n=a(171),r=a(172),l=a(195),i=a(194),o=a(0),c=a.n(o),s=a(173);t.a=function(e,t){return function(a){Object(l.a)(u,a);var o=Object(i.a)(u);function u(e){var a;return Object(n.a)(this,u),(a=o.call(this,e)).search=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=a.state,n=t.dbTable,r=n.table,l=n.limit,i=n.offset,o=n.searchIn,c=t.filterData;a.setState({searchString:e});var s=a.db.fetch(r);e&&o&&o.length>0&&(s=s.search(e,o)),c.value&&c.value.length&&(s=s.filter(c.key,c.value));var u=s.total(),m=s.limit(l,i).values();a.setState({data:m,total:u})},a.onFilter=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=a.state,r=n.dbTable,l=r.table,i=r.offset,o=r.limit,c=r.searchIn,s=n.searchString;a.setState({filterData:{key:e,value:t||""}});var u=a.db.fetch(l);t&&t.length&&(u=u.filter(e,t)),s&&(u=u.search(s,c));var m=u.total(),d=u.limit(o,i).values();a.setState({data:d,total:m})},a.nextPage=function(){var e=a.state,t=e.dbTable,n=t.table,r=t.limit,l=t.searchIn,i=e.data,o=e.searchString,c=e.filterData,s=a.db.fetch(n);c.value&&c.value.length&&(s=s.filter(c.key,c.value)),o&&l&&l.length>0&&(s=s.search(o,l));var u=s.limit(r,i.length).values(),m=i.concat(u);a.setState({data:m})},a.state={dbTable:t,data:[],total:0,searchString:"",filterData:{key:"",value:""}},a.db=new s.a(t.table),a}return Object(r.a)(u,[{key:"componentDidMount",value:function(){var e=this.state.dbTable,t=e.table,a=e.limit,n=e.offset,r=this.db.fetch(t).limit(a,n).values(),l=this.db.fetch(t).total();this.setState({data:r,total:l})}},{key:"render",value:function(){var t=this.state,a=t.data,n=t.total;return c.a.createElement(e,Object.assign({},this.props,{records:a,total:n,nextPage:this.nextPage,onSearch:this.search,onFilter:this.onFilter}))}}]),u}(c.a.PureComponent)}},178:function(e,t,a){"use strict";var n=a(0),r=a.n(n),l=a(140),i=a(418),o=a(102),c=Object(l.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",flexWrap:"wrap",listStyle:"none",padding:e.spacing(.5),margin:0},chip:{margin:e.spacing(.5)}}})),s=function(e){var t=e.items,a=e.size,n=c();return t.length?r.a.createElement(o.a,{component:"ul",className:n.root,elevation:0},t.map((function(e){return r.a.createElement("li",{key:e},r.a.createElement(i.a,{label:e,size:a,className:n.chip}))}))):null};s.defaultProps={size:"small"},t.a=s},208:function(e,t,a){"use strict";var n=a(35),r=a(0),l=a.n(r),i=a(440),o=a(441),c=a(250),s=a.n(c),u=a(143),m=a(39),d=a(148),p=a(140),h=Object(p.a)((function(e){var t,a;return{root:Object(n.a)({position:"relative",padding:"64px 0"},e.breakpoints.down("md"),{padding:"32px 0"}),colorDiv:function(e){return{background:e.bg,position:"absolute",width:"100%",height:"50%",top:0}},detailsCard:(t={margin:"0 auto",position:"relative"},Object(n.a)(t,e.breakpoints.up("md"),{width:"80%",maxWidth:"960px"}),Object(n.a)(t,e.breakpoints.down("md"),{width:"90%"}),Object(n.a)(t,e.breakpoints.down("sm"),{width:"calc(100% - 60px)"}),t),iframe:(a={},Object(n.a)(a,e.breakpoints.up("md"),{minHeight:"380px"}),Object(n.a)(a,e.breakpoints.only("sm"),{minHeight:"380px"}),Object(n.a)(a,e.breakpoints.down("sm"),{height:"100%"}),a)}})),f=function(e){var t=e.open,a=e.title,n=e.src,r=e.onClose,c=h(),p=n.includes("autoplay")?n:"".concat(n,"?autoplay=1");return console.log(p),l.a.createElement(i.a,{fullWidth:!0,maxWidth:"md",open:t,onClose:r,"aria-labelledby":"max-width-dialog-title",className:"mui-dialog auto-height iframe-within"},l.a.createElement(o.a,null,l.a.createElement(d.a,{className:"flex-x justify-space-between px--2"},l.a.createElement(m.a,{variant:"h6"},a),l.a.createElement(u.a,{edge:"start",color:"inherit",onClick:r,"aria-label":"close"},l.a.createElement(s.a,null))),n?l.a.createElement("iframe",{src:p,className:c.iframe,height:"100%",width:"100%",frameBorder:"0",webkitallowfullscreen:"true",mozallowfullscreen:"true",allowFullScreen:!0,title:"some",seamless:!0,scrolling:"no",allow:"autoplay; encrypted-media"}):"Opps Video file not found"))};f.defaultProps={open:!1,src:null,title:"No Title"},t.a=f},457:function(e,t,a){"use strict";a.r(t);var n=a(66),r=a(35),l=a(0),i=a.n(l),o=a(170),c=a(208),s=a(12),u=a(362),m=a(102),d=a(39),p=a(140),h=a(189),f=a.n(h),b=a(443),g=a(251),v=a.n(g),y=a(210),E=a(361),x=a(360),w=a(442),j=a(211),O=a(137),k=a(253),S=a.n(k),N=a(178),C=a(57),P=function(e){var t,a,n=e.item,r=e.hasReadMore,l=e.onPlayVideo,o=e.goTo,c=e.pageRoute,s=n.id,u=n.title,m=n.subtitle,p=n.introduction,h=n.media.content,f=h.id,b=h.src,g=h.thumb,k=h.provider,P=n.categories,M=Object(C.a)(p),R=M.length>460?v()(M,{length:457,separator:""}):p;switch(k){case"youtube":t=b||"https://www.youtube.com/embed/".concat(f),a=g||"https://img.youtube.com/vi/".concat(f,"/0.jpg");break;default:t=b,a=g}return i.a.createElement(y.a,{className:"mb--8 base-media-card"},i.a.createElement("div",{className:"media-section"},i.a.createElement(x.a,{onClick:function(){return l({open:!0,title:u,src:t})}},i.a.createElement(E.a,{component:"img",alt:u,image:a,title:u,className:"video-thumb-img"}),i.a.createElement("div",{className:"play-btn grey"},i.a.createElement(S.a,{color:"secondary"})))),i.a.createElement(j.a,null,i.a.createElement(d.a,{component:"h5",variant:"h5",onClick:r?function(){return o("/".concat(c,"/").concat(s))}:function(){}},i.a.createElement("span",{className:"cursor-pointer"},u)),m&&i.a.createElement(d.a,{variant:"subtitle1",color:"textSecondary"},m),i.a.createElement(N.a,{items:P}),i.a.createElement("div",{className:"mt--2 html-container"},i.a.createElement(d.a,{variant:"body1",color:"textSecondary",paragraph:!1,component:"div",className:"truncate",dangerouslySetInnerHTML:{__html:R}}))),r&&i.a.createElement(w.a,{className:"mb--3"},i.a.createElement(O.a,{variant:"contained",color:"primary",onClick:function(){return o("/".concat(c,"/").concat(s))}},"Read More")))};P.defaultProps={hasReadMore:!1,item:{id:null,title:null,subtitle:null,createBy:null,introduction:"",media:{type:"",content:{id:null,provider:null,src:"",thumb:"",placeholderThumb:""}},categories:[]}};var M=P,R=Object(p.a)((function(e){return{root:{flexGrow:1},paginationStyle:{width:"100%",display:"flex",flexDirection:"row",justifyContent:"center",margin:"10px 0"}}})),T=function(e){var t=e.history,a=(e.withSearch,e.pageRoute),n=e.hasReadMore,r=e.items,l=e.onPlayVideo,o=e.loading,c=e.onLoadMore,s=e.hasMore,p=R(),h=function(e){t.push(e)};return i.a.createElement("div",{className:p.root}
1,r.length?i.a.createElement("div",{className:"col-list"},r.length&&r.map((function(e){return i.a.createElement(M,{key:e.id,item:e,pageRoute:a,hasReadMore:n,onPlayVideo:l,goTo:h})}))):i.a.createElement(m.a,{elevation:3,className:"pa--8"},i.a.createElement(d.a,{component:"h5",variant:"h5"},i.a.createElement("span",null,"No Records found"))),s&&i.a.createElement("div",{className:"flex-x center pb--5"},i.a.createElement(u.a,{size:"small",color:"primary","aria-label":"Load More",disabled:o,onClick:function(){s&&c()}},o?i.a.createElement(b.a,null):i.a.createElement(f.a,{color:"secondary"}))))};T.defaultProps={history:null,withSearch:!1,items:[],loading:!1,hasMore:!0,hasReadMore:!1};var D=Object(s.f)(T),I=a(454),F=a(456),W=a(44),B=a(410),L=a.n(B),z=a(460),V=a(143),H=a(412),A=a.n(H),J=Object(p.a)((function(e){return{root:Object(r.a)({padding:"2px 4px",display:"flex",alignItems:"center"},e.breakpoints.down("sm"),{width:"100%"}),input:{marginLeft:e.spacing(1),flex:1},iconButton:{padding:10},divider:{height:28,margin:4}}})),_=function(e){var t=e.onSearch,a=e.className,n=J(),r=L()((function(e){t(e)}),300);return i.a.createElement(m.a,{className:"".concat(n.root," ").concat(a)},i.a.createElement(V.a,{className:n.iconButton,"aria-label":"search",disabled:!0},i.a.createElement(A.a,null)),i.a.createElement(z.a,{className:n.input,placeholder:"Search",inputProps:{"aria-label":"Search"},onChange:function(e){return r(e.target.value)}}))};_.defaultProps={className:""};var G=_,q={open:!1,src:null,title:null},K=Object(p.a)((function(e){return{pageFilter:Object(r.a)({display:"flex",flexDirection:"row",padding:"0 20px",flexWrap:"wrap",justifyContent:"flex-end"},e.breakpoints.down("sm"),{flexDirection:"column",justifyContent:"flex-start"}),Autocomplete:Object(r.a)({minWidth:"180px",marginBottom:"16px"},e.breakpoints.down("sm"),{width:"100%"}),SearchInput:Object(r.a)({minWidth:"200px",marginRight:"12px",marginBottom:"16px"},e.breakpoints.down("sm"),{width:"100%"})}})),Q=function(e){var t=e.records,a=e.total,r=e.nextPage,o=e.onSearch,s=e.onFilter,u=K(),m=Object(l.useState)(q),d=Object(n.a)(m,2),p=d[0],h=d[1],f=t.length<a;return i.a.createElement("div",{className:"pt--8 px--4"},p.open&&i.a.createElement(c.a,Object.assign({},p,{onClose:function(){return h(q)}})),i.a.createElement("div",{className:u.pageFilter},i.a.createElement(G,{onSearch:o,className:u.SearchInput}),i.a.createElement(F.a,{id:"shortfilm-categories-filter",options:W.c,getOptionLabel:function(e){return e},onChange:function(e,t){s("categories",t)},className:u.Autocomplete,renderInput:function(e){return i.a.createElement(I.a,Object.assign({},e,{variant:"filled",label:"Categories",placeholder:"Categories"}))}})),i.a.createElement(D,{pageRoute:"media-weediya",items:t,hasMore:f,onPlayVideo:h,onLoadMore:r,withSearch:!0}))};Q.defaultProps={records:[],nextPage:function(){},onSearch:function(){},onFilter:function(){},PropTypes:0};t.default=Object(o.a)(Q,{table:"shortfilms",limit:12,offset:0,searchIn:["title","categories"]})}}]); 2//# sourceMappingURL=10.52d09fb2.chunk.js.map
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.