change
This commit is contained in:
1 parent
514c3ac3f6
commit
8c7d6421f5
2288 files changed
+712
-73769
No files matched your search
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"gallery.js","sourceRoot":"","sources":["gallery.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAi7BhB;AAj7BD,WAAU,OAAO;IACb,IAAiB,IAAI,CA+6BpB;IA/6BD,WAAiB,IAAI;QACjB,IAAiB,cAAc,CA66B9B;QA76BD,WAAiB,cAAc;YAC3B,IAAiB,MAAM,CA26BtB;YA36BD,WAAiB,MAAM;gBACnB,IAAiB,UAAU,CAy6B1B;gBAz6BD,WAAiB,UAAU;oBACvB,MAAa,OAAQ,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa;wBAqB5D;4BACI,KAAK,EAAE,CAAC;4BArBZ,aAAQ,GAAG,EAAE,CAAC;4BACd,eAAU,GAAG,EAAE,CAAC;4BAChB,oBAAe,GAAG,EAAE,CAAC;4BACrB,qBAAgB,GAAG,EAAE,CAAC;4BACtB,sBAAiB,GAAQ,EAAE,CAAC;4BAC5B,iBAAY,GAAG,EAAE,CAAC;4BAClB,aAAQ,GAAQ,EAAE,CAAC;4BACnB,gBAAW,GAAG,CAAC,CAAC;4BAChB,aAAQ,GAAQ,EAAE,CAAC;4BAEnB,oBAAe,GAAe,EAAE,CAAC;4BAEjC,WAAM,GAAQ,EAAE,CAAC;4BACjB,cAAS,GAAY,KAAK,CAAC;4BAE3B,UAAK,GAAY,KAAK,CAAC;4BACvB,cAAS,GAAY,KAAK,CAAC;4BAC3B,oBAAe,GAAQ,IAAI,CAAC;4BAgV5B,qBAAgB,GAAG,CAAC,CAAC,EAAE,EAAE;gCAErB,IAAI,QAAQ,GAAG,IAAI,CAAC;gCAEpB,IAAI,CAAC,CAAC,uBAAuB,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;oCAChD,CAAC,CAAC,wBAAwB,CAAC,CAAC,WAAW,CAAC,QAAQ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,CAAC,CAAC,0BAA0B,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;gCACtC,IAAI,IAAI,CAAC,KAAK,EAAE;oCAEZ,IAAI,WAAW,GAAG,CAAC,CAAC,uBAAuB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;oCAC3E,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC,oDAAoD,EAAE;wCACjH,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;oCAC7F,CAAC,CAAC,CAAC;iCACN;qCAAM;oCACH,IAAI,YAAY,GAAG,CAAC,CAAC,uBAAuB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;oCACpF,IAAI,YAAY,GAAG,CAAC,CAAC,uBAAuB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;oCACpF,IAAI,WAAW,GAAG,CAAC,CAAC,uBAAuB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;oCAG/E,IAAI,CAAC,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;wCACvC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC,oDAAoD,EAAE,cAAc,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,QAAQ,EAAE,CAALine truncated
|
||||
@@ -1,133 +0,0 @@
|
||||
var Bizgaze;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){let i;(function(t){class i extends Unibase.Platform.Core.BaseComponent{constructor(){super();this.filePath=[];this.documentId=[];this.hashMapFilePath={};this.galleryCurrentId="";this.displayFileTypeEl="";this.fileTypeDate=[];this.statusid="";this.galleryPage=0;this.carousel="";this.inputParameters=[];this.elName="";this.isPlaying=!1;this.isDoc=!1;this.isDocCall=!1;this.reportIdGallery=null;this.nextClickHandler=()=>{let n=this;if($(".carousel-item.active").next().length===1){$(".carousel-control-prev").removeClass("d-none");$(".carousel-item.active").next().next().length===0&&(n.isDocCall||$("._bizgaze_popup_container").length!==1?$(".carousel-control-next").addClass("d-none"):n.loadMoreGallery());let t=$(".carousel-item.active").next().find("img").attr("data-bannerliked");t=="false"||t==""||t==null||t=="undefined"?$(".modelgallery").removeClass("fa fa-heart text-danger").addClass("icon-heart"):$(".modelgallery").removeClass("icon-heart").addClass("fa fa-heart text-danger")}};this.navigationhelper=Unibase.Platform.Helpers.NavigationHelper.Instance()}cssFiles(){return[]}jsFiles(){return["apps/communications/events/managers/gallerymanager.js","apps/communications/events/components/shareimage.js"]}load(){let n=this;n.displayImages();n.isDocCall&&this.displayFileType();let i=$("#div_App_DefaultWidget").find(".biz-header-main-text").text();$("#imagegalleryheading").text(i);let t=Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds[Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds.length-1];$(`#${t}`).find(".carousel-control-prev").click(this.prevClickHandler);$(`#${t}`).find(".carousel-control-next").click(this.nextClickHandler);$("#modellikebtn").click(function(){let t=$(".carousel-item.active").find("img").attr("data-bannerfileid"),i=$("#modellikebtn").find("i").hasClass("icon-heart");i==!0?n.likePhoto(t,!0):n.likePhoto(t,!1)});$(".carousel").on("slide.bs.carousel",function(){n.isPlaying&&$(".carousel-item.active").next().length>0&&($(".carousel-control-prev").removeClass("d-none"),$(".carousel-item.active").next().next().length==0&&$(".carousel-control-next").addClass("d-none"))});$("#btn_autoplay").click(function(t){n.isPlaying=!0;$(t.target).find(".fa-pause").length!=0?($(t.target).find(".fa-pause").removeClass("fa-pause").addClass("fa-play"),$(".carousel").carousel("pause"),n.isPlaying=!1):($(".carousel").carousel("cycle"),$(t.target).find(".fa-play").removeClass("fa-play").addClass("fa-pause"))});$("#galleryimagedownloadbtn").click(()=>{if(this.isDoc){let n=$(".carousel-item.active").find("img").attr("data-liid");Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("platform/controls/filedragndrop/w_documentfiles.js",function(){Unibase.Platform.Forms.Components.DocumentFiles.Instance().downloadDocument(n)})}else{let t=$(".carousel-item.active").find("img").attr("data-bannerfileid"),i=$(".carousel-item.active").find("img").attr("data-bannerenable"),r=$(".carousel-item.active").find("img").attr("data-idnumber");$("#modellikebtn").hasClass("d-none")?Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("platform/controls/filedragndrop/w_documentfiles.js",function(){Unibase.Platform.Forms.Components.DocumentFiles.Instance().downloadDocument(r)}):i=="true"&&n.downloadImage(t)}});$("#shareimggallery").click(function(){let t=$(".carousel-item.active").find("img").attr("data-liId"),i=$(".carousel-item.active").find("img").attr("data-documentfileidimg");n.shareImage(i,t)})}prevClickHandler(){if($(".carousel-item.active").prev().length===1){$(".carousel-control-next").removeClass("d-none");$(".carousel-item.active").prev().prev().length===0&&$(".carousel-control-prev").addClass("d-none");let n=$(".carousel-item.active").prev().find("img").attr("data-bannerliked");n=="false"||n==""||n==null||n=="undefined"?$(".modelgallery").removeClass("fa fa-heart text-danger").addClass("icon-heart"):$(".modelgallery").removeClass("icon-heart").addClass("fa fa-heart text-danger")}}loadMoreGallery(){let n=this;var i="",r="",u=Unibase.Platform.Helpers.NavigationHelper.commonFilter_FromDate,f=Unibase.Platform.Helpers.NavigationHelper.commonFilter_ToDate;u!=null&&f!=null?(i=u.toString(),r=f.toString()):(i=Unibase.Platform.Helpers.DateTimeHelper.Instance().formatLocalDateformat(new Date(Unibase.Platform.Helpers.DateTimeHelper.Instance().currentDate()),"YYYY/MM/DD"),r=Unibase.Platform.Helpers.DateTimeHelper.Instance().formatLocalDateformat(new Date(Unibase.Platform.Helpers.DateTimeHelper.Instance().currentDate()),"YYYY/MM/DD"));let e=Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds[Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds.length-2];n.reportIdGallery=$(`#${e}`).find("#hf_ReportId").val();let o={ReportId:Number(n.reportIdGallery),page:n.galleryPage,Filter:[],InputParameters:n.inputParameters,pageSize:5,SearchTerm:null,FilterId:0,DateFilter:[],IsEnableCount:!0,DisplayModeTypeId:1,FromDate:i,ToLine truncated
|
||||
<img data-bannerenable="${o}" class="mh-100 mw-100 w-100" data-liId="${i}" src="${e}" data-bannerfileid="${+i}" data-bannerliked="${s}" alt="image not found" onerror="ReloadImage(event)" style="
|
||||
padding-top: 5vh;
|
||||
" data-dynamic="1" data-loaded="0">
|
||||
</div>`),$(".carousel-inner").css("padding",0)):f==="video"?$(".carousel-inner").append(` <div style="max-height: ${u}px !important" class=" carousel-item "><video muted data-bannerenable="${o}" data-bannerfileid="${+i}" data-bannerliked="${s}" data-liId="${i}" playsinline src="${e}" type="video/mp4" onerror="sanitizeURL(event)" data-dynamic="1" data-loaded="0" class=" mh-100 mw-100" controls autoplay loop webkit-playsinline webkitRequestFullscreen msRequestFullscreen style="object-fit: cover;"></video></div>`):f==="img"&&$(".carousel-inner").append(`<div style="text-align:center;" class="carousel-item" >
|
||||
<img style="
|
||||
height: auto !important;
|
||||
max-height: 80vh !important;
|
||||
margin-top: 5vh;
|
||||
" class="d-block mh-100 mw-100 ml-auto mr-auto" data-liId="${i}" data-bannerenable="${o}" data-bannerfileid="${+i}" data-bannerliked="${s}" src="${e}" alt="image not found" onerror="ReloadImage(event)" data-dynamic="1" data-loaded="0"">
|
||||
</div>`));n.isDoc&&(c?(t.documenttypename==="png"||t.documenttypename==="jpg"||t.documenttypename==="jpeg"?$(".carousel-inner").append(`<div style="max-height: ${u}px !important" class="carousel-item ">
|
||||
<img class="mh-100 mw-100 w-100" data-liId="${t.documentfileid}" data-idnumber="${t.documentfileid}" src="${t.documentfilepath}" alt="image not found" onerror="ReloadImage(event)" style="
|
||||
padding-top: 5vh;
|
||||
" data-dynamic="1" data-loaded="0">
|
||||
</div>`):(t.documenttypename==="pdf"||t.documenttypename==="word"||t.documenttypename==="excel"||t.fileType!="removeme")&&$(".carousel-inner").append(`<div style="max-height: ${u}px !important" class="carousel-item ">
|
||||
<img class="mh-100 mw-100 w-100" data-liId="${t.documentfileid}" data-idnumber="${t.documentfileid}" src="/tenants/themes/compact/imgs/pdfimgdoc.png" alt="${t.documenttypename}" onerror="ReloadImage(event)" style="
|
||||
padding-top: 5vh;
|
||||
" data-dynamic="1" data-loaded="0">
|
||||
</div>`),$(".carousel-inner").css("padding",0)):t.documenttypename==="png"||t.documenttypename==="jpg"||t.documenttypename==="jpeg"||t.fileType==="svg"?$(".carousel-inner").append(`<div style="text-align:center;" class="carousel-item">
|
||||
<img style="
|
||||
height: auto !important;
|
||||
max-height: 80vh !important;
|
||||
margin-top: 5vh;
|
||||
" class="d-block mh-100 mw-100 ml-auto mr-auto" data-liId="${t.documentfileid}" data-idnumber="${t.documentfileid}" src="${t.documentfilepath}" alt="image not found" onerror="ReloadImage(event)" data-dynamic="1" data-loaded="0">
|
||||
</div>`):(t.documenttypename==="pdf"||t.documenttypename==="word"||t.documenttypename==="excel"||t.fileType!="removeme")&&$(".carousel-inner").append(`<div style="text-align:center;" class="carousel-item">
|
||||
<img style="
|
||||
height: auto !important;
|
||||
max-height: 80vh !important;
|
||||
margin-top: 5vh;
|
||||
width:100px;
|
||||
" class="d-block mh-100 mw-100 ml-auto mr-auto" data-liId="${t.documentfileid}" data-idnumber="${t.documentfileid}" src="/tenants/themes/compact/imgs/pdfimgdoc.png" alt="image not found" onerror="ReloadImage(event)" data-dynamic="1" data-loaded="0">
|
||||
</div>`));$(".carousel-control-next").removeClass("d-none")});n.galleryPage++});let t=$(".carousel-item.active").next().find("img").attr("data-bannerliked");t=="false"||t==""||t==null||t=="undefined"?$(".modelgallery").removeClass("fa fa-heart text-danger").addClass("icon-heart"):$(".modelgallery").removeClass("icon-heart").addClass("fa fa-heart text-danger")}init(){}html(n){return`
|
||||
<div id="img-modal" class="modal-content h-100">
|
||||
|
||||
<div class="modal-header pa-10"> <strong class="modal-title biz-highlight-bg-color" id="imagegalleryheading">Gallery</strong>
|
||||
<div class="d-flex align-items-center justify-content-between">
|
||||
|
||||
<div> <button type="button"
|
||||
id="btn_autoplay"
|
||||
class="btn btn-icon btn-icon-circle btn-warning btn-icon-style-3" ><span style="pointer-events:none" class="btn-icon-wrap"><i class="fa fa-play"></i></span></button> <button id="shareimggallery" class="btn btn-icon btn-icon-circle btn-warning btn-icon-style-3" href="javascript:;"
|
||||
"><span class="btn-icon-wrap"><i class="fa fa-share-alt"></i></span></button> <button
|
||||
class="btn btn-icon btn-icon-circle btn-success btn-icon-style-3" id="galleryimagedownloadbtn" href="javascript:;"><span
|
||||
class="btn-icon-wrap"><i class="fa fa-download"></i></span></button> </div>
|
||||
</div>
|
||||
<div id="divEditFiltersErrMsg" class="form-error-message"></div>
|
||||
</div>
|
||||
<div class="modal-body simple-scroll-bar edit-filters-body py-0 bg-cyan-light-5">
|
||||
<div class="d-flex" id="galleryheightmodel" style="gap: 10px;align-items: center;height:80vh">
|
||||
<a style="opacity: 1; width:20px; " class="carousel-control-prev d-none position-static" href="#carouselExampleControls" role="button"
|
||||
data-slide="prev"> <span style="background-image: none;" class="carousel-control-prev-icon"
|
||||
aria-hidden="true"> <i class="fa fa-angle-double-left " style=" color: black; font-size: 34px; "></i>
|
||||
</span> <span class="preImgHandler sr-only">Previous</span> </a>
|
||||
<div class="card bg-transparent border-0 shadow-none" id="staticFiltersCard" style="
|
||||
flex-grow: 1;
|
||||
">
|
||||
<div id="carouselExampleControls" data-interval="2000" class="carousel slide-fade" data-ride="carousel">
|
||||
<div class="carousel-inner " style="padding:0px 100px "> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a style="opacity: 1;width: 20px;" class="carousel-control-next position-static" href="#carouselExampleControls" role="button"
|
||||
data-slide="next"> <span style="background-image: none;" class="carousel-control-next-icon"
|
||||
aria-hidden="true"> <i class="fa fa-angle-double-right" style=" color: black; font-size: 34px;"></i>
|
||||
</span> <span class="sr-only ">Next</span> </a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer pa-10"> <button type="button"
|
||||
onclick="Unibase.Platform.Helpers.NavigationHelper.Instance().closePopUp()" id="btn_CloseForm_${n}"
|
||||
class="btn btn-light btn-sm mr-auto">Close</button>
|
||||
|
||||
<div> <button id="modellikebtn" class="btn btn-icon btn-icon-circle btn-liked btn-danger btn-icon-style-3"
|
||||
href="javascript:;"><span class="btn-icon-wrap"><i class="modelgallery icon-heart"></i></span></button> <a
|
||||
class="badge badge-soft-info badge-pill align-items-center justify-content-center biz-highlight-text-color"
|
||||
href="javascript:;" onclick="">1235 <i class="fa fa-thumbs-up ml-1"></i></a> </div>
|
||||
</div>
|
||||
</div>`}openModalFile(n){this.galleryPage=2;this.elName=".documenttypegapCustom";let t=this;t.isDocCall=!0;this.displayFileTypeEl=n;let r=Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds[Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds.length-1];this.isDoc=!0;t.fileTypeDate=[];let i="";i=$("._bizgaze_popup_container").length===0?`.documenttypegapCustom`:`._bizgaze_popup_container .documenttypegapCustom`;$(i).each(function(n,i){let r=$(i).find("[data-filetype]").val();r=`${r}`.toLowerCase();let u=$(`#list-group-item-${$(i).find("[data-documentfileidCus]").val()}`).find("[data-documentfilepath]").val(),f=$(i).find("[data-documentfileidCus]").val();t.fileTypeDate.push({id:f,fileType:r,documentfilepath:u,dataIdNumber:$(i).find("[data-documentfileidCus]").val()})})}displayFileType(){let n=this,i=Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds[Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds.length-1];this.isDoc&&($("#shareimggallery").addClass("d-none"),$("#modellikebtn").addClass("d-none"),$(".fa-thumbs-up").parent().addClass("d-none"));let r=screen.height,u=$(`#${i}`).find(".modal-header").first().outerHeight(!0),f=$(`#${i}`).find(".modal-footer").first().outerHeight(!0),t=r-(u+f);$(".carousel-inner").html("");n.fileTypeDate.forEach(function(i){let r="";n.displayFileTypeEl==+i.id&&(r="active");let u=navigator.userAgent,f=/android|iphone|kindle|ipad/i.test(u);f?(i.fileType==="png"||i.fileType==="jpg"||i.fileType==="jpeg"?$(".carousel-inner").append(`<div style="max-height: ${t}px !important" class="carousel-item ${r} ">
|
||||
<img class="mh-100 mw-100 w-100" data-liId="${i.dataIdNumber}" data-idnumber="${i.dataIdNumber}" src="${i.documentfilepath}" alt="image not found" onerror="ReloadImage(event)" style="
|
||||
padding-top: 5vh;
|
||||
" data-dynamic="1" data-loaded="0">
|
||||
</div>`):i.fileType==="mp4"?$(".carousel-inner").append(`<div style="max-height: ${t}px !important" class="carousel-item ${r} ">
|
||||
<video class="d-block mh-100 mw-100 ml-auto mr-auto" data-liId="${i.id}" data-idnumber="${i.dataIdNumber}" alt="image not found" onerror="ReloadImage(event)" data-dynamic="1" data-loaded="0" controls > <source src="${i.documentfilepath.replace("~/","")}" type="video/mp4">
|
||||
|
||||
Your browser does not support the video tag.
|
||||
</video>
|
||||
</div>`):i.fileType==="txt"||i.fileType==="pdf"?$(".carousel-inner").append(`<div style="max-height: ${t}px !important" class="carousel-item ${r} ">
|
||||
<iframe src='${i.documentfilepath.replace("~/","")}' title="W3Schools Free Online Web Tutorials"></iframe>
|
||||
</div>`):(i.fileType==="pdf"||i.fileType==="word"||i.fileType==="excel"||i.fileType!="removeme")&&$(".carousel-inner").append(`<div data-pathsrc="${i.documentfilepath}" style="max-height: ${t}px !important" class="carousel-item ${r} ">
|
||||
<img class="mh-100 mw-100 w-100" data-liId="${i.dataIdNumber}" data-idnumber="${i.dataIdNumber}" src="/tenants/themes/compact/imgs/pdfimgdoc.png" alt="image not found" onerror="ReloadImage(event)" style="
|
||||
padding-top: 5vh;
|
||||
" data-dynamic="1" data-loaded="0">
|
||||
</div>`),$(".carousel-inner").css("padding",0)):i.fileType==="png"||i.fileType==="jpg"||i.fileType==="jpeg"||i.fileType==="svg"?$(".carousel-inner").append(`<div style="text-align:center;" class="carousel-item ${r}">
|
||||
<img style="
|
||||
height: auto !important;
|
||||
max-height: 80vh !important;
|
||||
margin-top: 5vh;
|
||||
" class="d-block mh-100 mw-100 ml-auto mr-auto" data-liId="${i.id}" data-idnumber="${i.dataIdNumber}" src="${i.documentfilepath}" alt="image not found" onerror="ReloadImage(event)" data-dynamic="1" data-loaded="0">
|
||||
</div>`):i.fileType==="mp4"?$(".carousel-inner").append(`<div style="text-align:center;" class="carousel-item ${r}">
|
||||
<video style="
|
||||
height: auto !important;
|
||||
max-height: 80vh !important;
|
||||
margin-top: 5vh;
|
||||
|
||||
" class="d-block mh-100 mw-100 ml-auto mr-auto" data-liId="${i.id}" data-idnumber="${i.dataIdNumber}" alt="image not found" onerror="ReloadImage(event)" data-dynamic="1" data-loaded="0" controls > <source src="${i.documentfilepath.replace("~/","")}" type="video/mp4">
|
||||
|
||||
Your browser does not support the video tag.
|
||||
</video>
|
||||
</div>`):i.fileType==="txt"||i.fileType==="pdf"?$(".carousel-inner").append(`<div style="text-align:center;" data-pathsrc="${i.documentfilepath}" class="carousel-item ${r}">
|
||||
|
||||
<iframe style="
|
||||
|
||||
height: 80vh !important;
|
||||
margin-top: 5vh;
|
||||
width:100%;
|
||||
" src='${i.documentfilepath.replace("~/","")}' title="W3Schools Free Online Web Tutorials"></iframe>
|
||||
|
||||
</div>`):(i.fileType==="word"||i.fileType==="excel"||i.fileType!="removeme")&&$(".carousel-inner").append(`<div style="text-align:center;" data-pathsrc="${i.documentfilepath}" class="carousel-item ${r}">
|
||||
<img style="
|
||||
height: auto !important;
|
||||
max-height: 80vh !important;
|
||||
margin-top: 5vh;
|
||||
width:100px;
|
||||
" class="d-block mh-100 mw-100 ml-auto mr-auto" data-liId="${i.id}" data-idnumber="${i.dataIdNumber}" src="/tenants/themes/compact/imgs/pdfimgdoc.png" alt="image not found" onerror="ReloadImage(event)" data-dynamic="1" data-loaded="0">
|
||||
</div>`)});$(".carousel").carousel({interval:2e3,wrap:!1});$(".carousel").carousel("pause");$(".carousel-item.active").next().length===0?$("._bizgaze_popup_container").length===1&&($(".carousel-control-next").addClass("d-none"),n.loadMoreGallery()):$(".carousel-control-next").removeClass("d-none");$(".carousel-item.active").prev().length===0?$(".carousel-control-prev").addClass("d-none"):$(".carousel-control-prev").removeClass("d-none");n.isDocCall=!1}filePathPush(n){let t=this;this.galleryCurrentId=n;let r=Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds[0];t.galleryPage=2;t.elName=`.banner-media`;t.filePath=[];let i="";i=$("._bizgaze_popup_container").length===0?`.banner-media`:`._bizgaze_popup_container .banner-media`;$(i).each(function(n,i){let u="",f="",r=$(i).parents(".gallery-list").attr("data-documentfileidimg");r==""&&(r=$(i).parents(".gallery-list").attr("data-otherid"));let e=$(i).parents(".gallery-list").attr("id");e=e.replace(/list-group-item-/g,"");let o=$(i).parents(".gallery-list").find(".bannerfileid").val(),s=$(i).parents(".gallery-list").find(".bannerliked").val(),h=$(i).parents(".gallery-list").find(".enabledownload").val();$(this).find("img").length===1?(f="img",u=$(this).find("img").attr("src")):$(this).find("video").length===1&&(f="video",u=$(this).find("video").attr("src"));t.hashMapFilePath[r]||(t.hashMapFilePath[r]=!0);t.filePath.push({fileType:f,file:u,id:r,bannerfileid:o,bannerliked:s,liId:e,bannerenable:h})})}displayImages(){let n=this,i=Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds[Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds.length-1];$(".carousel-inner").html("");let r=screen.height,u=$(`#${i}`).find(".modal-header").first().outerHeight(!0),f=$(`#${i}`).find(".modal-footer").first().outerHeight(!0),t=r-(u+f);this.filePath.forEach(function(i){let r="";n.galleryCurrentId==i.id&&(r="active",i.bannerliked=="false"||i.bannerliked==""||i.bannerliked==null||i.bannerliked=="undefined"?$(".modelgallery").removeClass("fa fa-heart text-danger").addClass("icon-heart"):$(".modelgallery").removeClass("icon-heart").addClass("fa fa-heart text-danger"),i.bannerenable=="false"&&$("#galleryimagedownloadbtn").addClass("d-none"));let u=navigator.userAgent,f=/android|iphone|kindle|ipad/i.test(u);f?(i.fileType==="video"?$(".carousel-inner").append(` <div style="max-height: ${t}px !important" class="h-100 carousel-item ${r}"><video playsinline muted data-bannerenable="${i.bannerenable}" src="${i.file}" type="video/mp4" data-liId="${i.liId}" data-bannerfileid="${i.bannerfileid}" data-bannerliked="${i.bannerliked}" onerror="sanitizeURL(event)" data-dynamic="1" data-loaded="0" class="mh-100 mw-100 w-100" controls autoplay loop webkit-playsinline webkitRequestFullscreen msRequestFullscreen style="object-fit: cover; padding-top:5vh;"></video></div>`):i.fileType==="img"&&$(".carousel-inner").append(`<div style="max-height: ${t}px !important" class="carousel-item ${r} ">
|
||||
<img data-bannerenable="${i.bannerenable}" class="mh-100 mw-100 w-100" data-liId="${i.liId}" src="${i.file}" data-bannerfileid="${i.bannerfileid}" data-bannerliked="${i.bannerliked}" alt="image not found" onerror="ReloadImage(event)" style="
|
||||
padding-top: 5vh;
|
||||
" data-dynamic="1" data-loaded="0">
|
||||
</div>`),$(".carousel-inner").css("padding",0)):i.fileType==="video"?$(".carousel-inner").append(` <div style="max-height: ${t}px !important" class=" carousel-item ${r}"><video muted data-bannerenable="${i.bannerenable}" data-bannerfileid="${i.bannerfileid}" data-bannerliked="${i.bannerliked}" data-liId="${i.liId}" playsinline src="${i.file}" type="video/mp4" onerror="sanitizeURL(event)" data-dynamic="1" data-loaded="0" class=" mh-100 mw-100" controls autoplay loop webkit-playsinline webkitRequestFullscreen msRequestFullscreen style="object-fit: cover;"></video></div>`):i.fileType==="img"&&$(".carousel-inner").append(`<div style="text-align:center;" class="carousel-item ${r}">
|
||||
<img style="
|
||||
height: auto !important;
|
||||
max-height: 80vh !important;
|
||||
margin-top: 5vh;
|
||||
" class="d-block mh-100 mw-100 ml-auto mr-auto" data-liId="${i.liId}" data-bannerenable="${i.bannerenable}" data-bannerfileid="${i.bannerfileid}" data-bannerliked="${i.bannerliked}" src="${i.file}" alt="image not found" onerror="ReloadImage(event)" data-dynamic="1" data-loaded="0"">
|
||||
</div>`)});$(".carousel").carousel({wrap:!1});$(".carousel").carousel("pause");$(".carousel-item.active").next().length===0?n.isDoc||$("._bizgaze_popup_container").length!==1?$(".carousel-control-next").addClass("d-none"):n.loadMoreGallery():$(".carousel-control-next").removeClass("d-none");$(".carousel-item.active").prev().length===0?$(".carousel-control-prev").addClass("d-none"):$(".carousel-control-prev").removeClass("d-none")}likePhoto(t,i){if(t!=0){var r={PhotoId:Number(t),LikedBy:Unibase.Platform.Membership.Infos.Identity.currentUser.userId,Liked:i};Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/communications/events/managers/gallerymanager.js",function(){n.Apps.Communications.Events.Managers.GalleryManager.Instance().changephotplike(r).then(n=>{n.result!=null&&(n.result.Liked?($("gallery_liked_"+n.result.PhotoId).closest(".gallery-list").addClass("liked-image"),$("#gallery_liked_"+n.result.PhotoId).removeClass("icon-heart").addClass("fa fa-heart text-danger"),$(`[data-documentfileidimg="${n.result.PhotoId}"]`).find(".bannerliked").attr("value","true"),$("#modellikebtn").find("i").removeClass("icon-heart").addClass("fa fa-heart text-danger")):($("#gallery_liked_"+n.result.PhotoId).removeClass("fa fa-heart text-danger").addClass("icon-heart"),$(`[data-documentfileidimg="${n.result.PhotoId}"]`).find(".bannerliked").attr("value","false"),$("#modellikebtn").find("i").removeClass("fa fa-heart text-danger").addClass("icon-heart")))})})}}downloadImage(n,t){if(t){Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("platform/controls/ filedragndrop/w_documentfiles.js",function(){Unibase.Platform.Forms.Components.DocumentFiles.Instance().downloadDocument(n)});return}Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("platform/controls/filedragndrop/w_documentfiles.js",function(){Unibase.Platform.Forms.Components.DocumentFiles.Instance().downloadDocument(n)})}shareImage(t,i){var r=this;r.documentfileId=t;r.galleryId=i;Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/communications/events/components/shareimage.js",function(){var t=new n.Apps.Communications.Events.Components.ShareImage;r.navigationHelper.popup(0,"",t,null,Unibase.Platform.Helpers.Size.Large)})}deleteImage(n,t){var i=this;i.documentfileId=n;i.galleryId=t;bootbox.confirm("Are you sure?",function(t){t&&i.fileCacheHelper.loadJsFile("platform/files/managers/filemanager.js",function(){var t,i;Unibase.Platform.Files.Managers.FileManager.Instance().deleteDocumentFile(n).then(function(t){t.message=="File Deleted Successfully"&&$('.photoidCustom[data-documentfileidimg="'+n+'"]').remove()});t=Unibase.Themes.Compact.Components.Details.Instance();t._recordId=Unibase.Themes.Providers.DetailHelper.recordId;t._installedAppId=Unibase.Themes.Providers.DetailHelper.installedAppId;t._containerId=$("._bizgaze_detail_container:visible").attr("id");i=t;t.loadPortlets(i)})})}importPortability(n){var t=this;$(".sp_widget_create_"+n+"").find("#LinkButton").click(function(){Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("platform/portability/components/portability.js",function(){let u=Unibase.Themes.Providers.DetailHelper.installedAppId;var r=eval("Unibase.Platform.Portability.Components.ImportAndExport.Instance()"),n=r,i=r;i!==null&&i!==undefined&&(i.appSettings.InstalledAppId=u);n!=null&&n!=undefined&&t.navigationhelper.popup(0,"",n,function(){},Unibase.Platform.Helpers.Size.Large)})})}predictedimages(){var t=Unibase.Themes.Providers.Detail_Settings.instance.InputParameters.find(n=>n.Key.endsWith("eventid")).Value;this.navigationhelper.showLoading();Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/communications/events/managers/gallerymanager.js",function(){bootbox.alert("Face Detection Initiated !<br> Sit back and relax",function(){bootbox.alert("You will receive a notification once Face Recognition is completed.!<br>Sit back and relax !",function(){n.Apps.Communications.Events.Managers.GalleryManager.Instance().predictedImages().then(n=>{n==="ALL MATCH FOUND"?(this.navigationhelper.hideLoading(),bootbox.alert("Sucess")):this.navigationhelper.hideLoading()})})})})}eventWisePrediction(t){var i=this;i.eventid=t;Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/communications/events/managers/gallerymanager.js",function(){bootbox.alert("The prediction has started",function(){n.Apps.Communications.Events.Managers.GalleryManager.Instance().eventWisePredictedImages(t).then(n=>{n==="ALL MATCH FOUND"?(i.navigationhelper=Unibase.Platform.Helpers.NavigationHelper.Instance(),i.navigationhelper.hideLoading(),bootbox.alert("Sucess"),$("#widgetconfig_Predict").show()):(i.navigationhelper.hideLoading(),$("#widgetconfig_Predict").show())})})})}aprovedImage(t,i){var r=this;r.documentfileId=t;r.statusid=i;r.fileCacheHelper.loadJsFile("apps/communications/events/managers/gallerymanager.js",function(){var r,u;n.Apps.Communications.Events.ManageLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"shareimage.js","sourceRoot":"","sources":["shareimage.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CA8JhB;AA9JD,WAAU,OAAO;IACb,IAAiB,IAAI,CA4JpB;IA5JD,WAAiB,IAAI;QACjB,IAAiB,cAAc,CA0J9B;QA1JD,WAAiB,cAAc;YAC3B,IAAiB,MAAM,CAwJtB;YAxJD,WAAiB,MAAM;gBACnB,IAAiB,UAAU,CAsJ1B;gBAtJD,WAAiB,UAAU;oBACvB,MAAa,UAAW,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa;wBAK/D;4BACI,KAAK,EAAE,CAAC;4BAJZ,YAAO,GAAG,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;4BAC3E,eAAU,GAAG,EAAE,CAAC;4BAChB,eAAU,GAAW,EAAE,CAAC;4BAGpB,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ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C,EA9JS,OAAO,KAAP,OAAO,QA8JhB"}
|
||||
@@ -1,30 +0,0 @@
|
||||
var Bizgaze;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){let i;(function(t){class i extends Unibase.Platform.Core.BaseComponent{constructor(){super();this.gallery=n.Apps.Communications.Events.Components.Gallery.Instance();this.guestArray=[];this.currentImg="";this.navigationhelper=Unibase.Platform.Helpers.NavigationHelper.Instance()}cssFiles(){return[]}jsFiles(){return["apps/communications/events/managers/gallerymanager.js"]}html(){return`<div class="modal-header pa-10">
|
||||
<strong class="modal-title biz-highlight-bg-color">Share Images</strong>
|
||||
<div id="divShareImageErrMsg" class="form-error-message"></div>
|
||||
</div>
|
||||
<div data-simplebar class="simple-scroll-bar modal-body">
|
||||
<!--<div class="card" id="Share-Guest-photo">
|
||||
<div class="card-header">Select Guest To Share</div>
|
||||
<div class="card-body">
|
||||
<select id="guestsMultiSelect" class="form-control guest-multiselect"></select>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="card" id="Share-Guest-photo">
|
||||
<div class="card-header">Select Apps To Share</div>
|
||||
<div class="card-body">
|
||||
<a href="https://www.facebook.com/sharer/sharer.php?u=" " target="_blank" class="btn btn-rounded mr-10 font-20 text-white shareEventFacebook" style="background-color:#1DA1F2;" title="facebook"> <i class="fa fa-facebook"></i></a>
|
||||
<a href="https://twitter.com/intent/tweet?
|
||||
url=@Url.Encode(Request.Url.ToString())&text=@Url.Encode(Title)" target="_blank" class="shareEventTwitter btn btn-rounded mr-10 font-20 text-white" style="background-color:#1DA1F2;" title="Tweet" >
|
||||
<i class="fa fa-twitter"></i>
|
||||
</a>
|
||||
<a href="https://api.whatsapp.com/send/?text="
|
||||
" target="_blank" class="btn btn-rounded mr-10 font-20 text-white shareEventWhatsapp " style="background-color:#25D366;" >
|
||||
<i class="fa fa-whatsapp"></i>
|
||||
</a>
|
||||
<a href="https://www.linkedin.com/sharing/share-offsite/?url=" " target="_blank" class="btn btn-rounded mr-10 font-20 text-white shareEventLinkedin" style="background-color:#1DA1F2;" title="linkedin"> <i class="fa fa-linkedin"></i></a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="modal-footer pa-10">
|
||||
<a href="javascript:;" id="shareImageCloseBtn" class="btn btn-light btn-sm mr-auto">Close</a>
|
||||
<a href="javascript:;" class="btn btn-icon btn-icon-circle btn-primary btn-icon-style-2 btn-rounded" id="shareImages"><span class="btn-icon-wrap"><i class="fa fa-paper-plane"></i></span></a>
|
||||
</div>-->`}load(){var t=this;n.Apps.Communications.Events.Managers.GalleryManager.Instance().getGuestUsers().then(n=>{t.guestArray=n.result;const i=[];n.result.forEach(function(n){i.push({id:n.guestid,text:n.guestname})});$("#guestsMultiSelect").select2({placeholder:"Select Guests",multiple:!0,data:i})});$("#shareImages").click(function(n){n.preventDefault();t.shareImage(t.gallery.documentfileId,t.gallery.galleryId)});let r=window.location.origin;let i=r+$(`[data-documentfileidimg="${n.Apps.Communications.Events.Components.Gallery.Instance().documentfileId}"]`).find(".biz-bannerimg").attr("src");$(".shareEventFacebook").attr("href",`https://www.facebook.com/sharer/sharer.php?u=${i}`);$(".shareEventTwitter").attr("href",`http://twitter.com/share?text=&url=${i}`);$(".shareEventWhatsapp").attr("href",`https://api.whatsapp.com/send/?text=${i}`);$(".shareEventLinkedin").attr("href",`https://www.linkedin.com/sharing/share-offsite/?url==${i}`);$("#shareImageCloseBtn").click(function(){t.navigationHelper.closePopUp()})}shareImage(t,i){let r=$("#guestsMultiSelect").val();if(r=r.map(Number),r.length>0){var u={UserIds:r,ImageId:t,GalleryId:i};n.Apps.Communications.Events.Managers.GalleryManager.Instance().shareImage(u).then(n=>{n.status==Unibase.Data.Status.Error?MessageHelper.Instance().showError(n.message,"divShareImageErrMsg"):(MessageHelper.Instance().showSuccess(n.message,"divShareImageErrMsg"),Unibase.Platform.Helpers.NavigationHelper.Instance().closePopUp())})}else MessageHelper.Instance().showError("Select Atleast One User","divShareImageErrMsg")}static Instance(){return this.instance===undefined&&(this.instance=new i),this.instance}}t.ShareImage=i})(i=t.Components||(t.Components={}))})(i=t.Events||(t.Events={}))})(i=t.Communications||(t.Communications={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
Reference in new issue
Block a user