Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/local/lib/node_modules/homebridge-camera-ui/interface/js/ drwxr-xr-x | |
| Viewing file: Select action/file-type: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["notifications"],{"0e1b":function(e,t,i){var s={"./logo_transparent-256@blgray.png":"842d","./logo_transparent-256@blue.png":"612b","./logo_transparent-256@brown.png":"8dc7","./logo_transparent-256@gray.png":"4b5d","./logo_transparent-256@green.png":"c01a","./logo_transparent-256@orange.png":"79ca","./logo_transparent-256@pink.png":"7a4d","./logo_transparent-256@purple.png":"ec66"};function n(e){var t=o(e);return i(t)}function o(e){if(!i.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}n.keys=function(){return Object.keys(s)},n.resolve=o,e.exports=n,n.id="0e1b"},"0ef3":function(e,t,i){"use strict";i("ca2e")},"243a":function(e,t,i){"use strict";i("d355")},3835:function(e,t,i){"use strict";function s(e){if(Array.isArray(e))return e}i.d(t,"a",(function(){return a}));i("a4d3"),i("e01a"),i("d3b7"),i("d28b"),i("3ca3"),i("ddb0");function n(e,t){var i=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=i){var s,n,o=[],r=!0,a=!1;try{for(i=i.call(e);!(r=(s=i.next()).done);r=!0)if(o.push(s.value),t&&o.length===t)break}catch(c){a=!0,n=c}finally{try{r||null==i["return"]||i["return"]()}finally{if(a)throw n}}return o}}var o=i("06c5");function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){return s(e)||n(e,t)||Object(o["a"])(e,t)||r()}},"3ebf":function(e,t,i){},ca2e:function(e,t,i){},d355:function(e,t,i){},e975:function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("BackToTop"),i("Navbar",{attrs:{name:e.$t("notifications")}}),i("BreadcrumbFilter",{attrs:{active:!0,dataType:"notifications",showAllRemove:0!==e.notifications.length&&e.checkLevel("notifications:edit"),showFilterCameras:!0,showFilterDate:!0,showFilterLabelsFor:"notifications",showFilterRooms:!0,showFilterTypes:!0},on:{filter:e.filterNotifications,"remove-all":e.removeAll}}),i("main",{staticClass:"inner-container w-100 h-100vh-calc-filter pt-save footer-offset"},[e.loading?i("div",{staticClass:"container pt-3 d-flex flex-wrap justify-content-center align-content-center position-absolute-fullsize"},[i("b-spinner",{staticClass:"text-color-primary"})],1):i("div",{staticClass:"container pt-3"},[e._l(e.notifications,(function(t,s){return i("div",{key:t.id,staticClass:"overflow-show",attrs:{"data-id":t.id,"data-aos":"fade-up","data-aos-duration":"1000"}},[i("swipe-list",{ref:"list",refInFor:!0,attrs:{items:[t],"item-key":"id"},on:{active:function(t){return e.startSwipe(t)},closed:function(t){return e.closed(t)},rightRevealed:function(t){return e.rightRevealed(t)}},scopedSlots:e._u([{key:"default",fn:function(n){n.revealLeft,n.revealRight,n.close;return[t.recordStoring?i("b-link",{staticClass:"card",on:{click:function(t){e.index=s}}},[i("div",{staticClass:"col-10 p-0 flex-wrap justify-content-start align-content-center"},[i("div",{staticClass:"card-title"},[e._v(e._s(t.camera))]),i("div",{staticClass:"card-text"},[i("b",[e._v(e._s(e.$t("label"))+": ")]),e._v(e._s(t.label.toString()))]),i("div",{staticClass:"card-text"},[i("b",[e._v(e._s(e.$t("motion"))+": ")]),e._v(e._s(t.time))])]),i("div",{staticClass:"col-2 p-0 d-flex flex-wrap justify-content-end align-content-center"},[i("b-card-img-lazy",{staticClass:"notification-card object-fit",attrs:{src:"/files/"+("Video"===t.recordType?t.name+"@2.jpeg":t.fileName),"img-alt":t.name,right:"",height:"40",width:"40","blank-height":"40","blank-width":"40"},nativeOn:{error:function(t){return e.handleErrorImg.apply(null,arguments)}}})],1)]):i("div",{staticClass:"card"},[i("div",{staticClass:"col-10 p-0 flex-wrap justify-content-start align-content-center"},[i("div",{staticClass:"card-title"},[e._v(e._s(t.camera))]),i("div",{staticClass:"card-text"},[i("b",[e._v(e._s(e.$t("label"))+": ")]),e._v(e._s(t.label.toString()))]),i("div",{staticClass:"card-text"},[i("b",[e._v(e._s(e.$t("motion"))+": ")]),e._v(e._s(t.time))])])])]}},e.checkLevel("notifications:edit")?{key:"right",fn:function(){return[i("div",{staticClass:"swipeout-action",attrs:{title:"remove"}},[i("div",{staticClass:"swipe-remove d-flex flex-wrap justify-content-center align-content-center",attrs:{"data-remove-id":t.id}},[i("b-icon",{staticClass:"text-color-danger cursor-pointer",attrs:{icon:"trash-fill","aria-hidden":"true"},on:{click:function(i){return e.remove(t,s,i)}}})],1)])]},proxy:!0}:null],null,!0)})],1)})),i("CoolLightBox",{attrs:{items:e.images,index:e.index,closeOnClickOutsideMobile:!0,useZoomBar:!0},on:{close:function(t){e.index=null}}}),i("div",{attrs:{"data-aos":"fade-up","data-aos-duration":"1000"}},[i("infinite-loading",{attrs:{identifier:e.infiniteId},on:{infinite:e.infiniteHandler}},[i("div",{attrs:{slot:"spinner"},slot:"spinner"},[i("b-spinner",{staticClass:"text-color-primary"})],1),i("div",{attrs:{slot:"no-more"},slot:"no-more"},[e._v(e._s(e.$t("no_more_data")))]),i("div",{attrs:{slot:"no-results"},slot:"no-results"},[e._v(e._s(e.$t("no_results")))])])],1)],2)]),i("Footer")],1)},n=[],o=i("3835"),r=i("2909"),a=i("b85c"),c=i("1da1"),l=(i("96cf"),i("d3b7"),i("99af"),i("b0c0"),i("25f0"),i("4de4"),i("d81d"),i("ddb0"),i("caad"),i("2532"),i("0759")),d=i("7386"),h=i("5547"),u=(i("2223"),i("e166")),f=i.n(u);const v={};function m(e){return 0===e.button}function p(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]&&(e=e.changedTouches[0]),{top:e.clientY,left:e.clientX}}Object.defineProperty(v,"passive",{configurable:!0,get(){let e;try{const t=Object.defineProperty({},"passive",{get(){e={passive:!0}}});window.addEventListener("qtest",null,t),window.removeEventListener("qtest",null,t)}catch(t){}return v.passive=e,e},set(e){Object.defineProperty(this,"passive",{value:e})}});function g(e,t,i){const{target:s}=t;i.touchTargetObserver=new MutationObserver(()=>{!1===e.contains(s)&&i.end(t)}),i.touchTargetObserver.observe(e,{childList:!0,subtree:!0})}function _(e){void 0!==e.touchTargetObserver&&(e.touchTargetObserver.disconnect(),e.touchTargetObserver=void 0)}function b(e){const t=!0!==e.horizontal&&!0!==e.vertical,i={all:!0===t||!0===e.horizontal&&!0===e.vertical};return!0!==e.horizontal&&!0!==t||(i.horizontal=!0),!0!==e.vertical&&!0!==t||(i.vertical=!0),i}function y(e,t,i){const s=p(e);let n;const o=s.left-t.event.x,r=s.top-t.event.y,a=Math.abs(o),c=Math.abs(r);return n=t.direction.horizontal&&!t.direction.vertical?o<0?"left":"right":!t.direction.horizontal&&t.direction.vertical?r<0?"up":"down":a>=c?o<0?"left":"right":r<0?"up":"down",{evt:e,position:s,direction:n,isFirst:t.event.isFirst,isFinal:!0===i,isMouse:t.event.mouse,duration:(new Date).getTime()-t.event.time,distance:{x:a,y:c},offset:{x:o,y:r},delta:{x:s.left-t.event.lastX,y:s.top-t.event.lastY}}}function w(e,t){return!(!e.direction.horizontal||!e.direction.vertical)||(e.direction.horizontal&&!e.direction.vertical?Math.abs(t.delta.x)>0:!e.direction.horizontal&&e.direction.vertical?Math.abs(t.delta.y)>0:void 0)}var L={name:"touch-pan",bind(e,t){const i=!0===t.modifiers.mouse,s=!0!==t.modifiers.mouseMightPrevent&&!0!==t.modifiers.mousePrevent,n=void 0===v.passive||{passive:s,capture:!0},o=!0!==t.modifiers.mightPrevent&&!0!==t.modifiers.prevent,r=o?v.passive:null;function a(e,s){i&&s?(t.modifiers.mouseStop&&e.stopPropagation(),t.modifiers.mousePrevent&&e.preventDefault()):(t.modifiers.stop&&e.stopPropagation(),t.modifiers.prevent&&e.preventDefault())}const c={handler:t.value,direction:b(t.modifiers),mouseStart(e){m(e)&&(document.addEventListener("mousemove",c.move,n),document.addEventListener("mouseup",c.mouseEnd,n),c.start(e,!0))},mouseEnd(e){document.removeEventListener("mousemove",c.move,n),document.removeEventListener("mouseup",c.mouseEnd,n),c.end(e)},start(t,i){_(c),!0!==i&&g(e,t,c);const s=p(t);c.event={x:s.left,y:s.top,time:(new Date).getTime(),mouse:!0===i,detected:!1,abort:!1,isFirst:!0,isFinal:!1,lastX:s.left,lastY:s.top}},move(e){if(!c.event)return;if(!0===c.event.abort)return;if(!0===c.event.detected){a(e,c.event.mouse);const t=y(e,c,!1);return void(w(c,t)&&(c.handler(t),c.event.lastX=t.position.left,c.event.lastY=t.position.top,c.event.isFirst=!1))}const i=p(e),s=Math.abs(i.left-c.event.x),n=Math.abs(i.top-c.event.y);s!==n&&(c.event.detected=!0,!1!==c.direction.all||!1!==c.event.mouse&&!0===t.modifiers.mouseAllDir||(c.event.abort=c.direction.vertical?s>n:s<n),!0!==c.event.abort&&(document.documentElement.style.cursor="grabbing",document.body.classList.add("swipeout-no-pointer-events"),document.body.classList.add("swipeout-non-selectable")),c.move(e))},end(e){c.event&&(!0!==c.event.mouse&&_(c),document.documentElement.style.cursor="",document.body.classList.remove("swipeout-no-pointer-events"),document.body.classList.remove("swipeout-non-selectable"),!0!==c.event.abort&&!0===c.event.detected&&!0!==c.event.isFirst&&(a(e,c.event.mouse),c.handler(y(e,c,!0))))}};e.__qtouchpan&&(e.__qtouchpan_old=e.__qtouchpan),e.__qtouchpan=c,!0===i&&e.addEventListener("mousedown",c.mouseStart,n),e.addEventListener("touchstart",c.start,r),e.addEventListener("touchmove",c.move,r),e.addEventListener("touchcancel",c.end,r),e.addEventListener("touchend",c.end,r)},update(e,{oldValue:t,value:i,modifiers:s}){const n=e.__qtouchpan;t!==i&&(n.handler=i),s.horizontal===n.direction.horizontal&&s.vertical===n.direction.vertical||(n.direction=b(s))},unbind(e,t){const i=e.__qtouchpan_old||e.__qtouchpan;if(void 0!==i){_(i),document.documentElement.style.cursor="",document.body.classList.remove("swipeout-no-pointer-events"),document.body.classList.remove("swipeout-non-selectable");const s=!0===t.modifiers.mouse,n=!0!==t.modifiers.mouseMightPrevent&&!0!==t.modifiers.mousePrevent,o=void 0===v.passive||{passive:n,capture:!0},r=!0!==t.modifiers.mightPrevent&&!0!==t.modifiers.prevent,a=r?v.passive:null;!0===s&&(e.removeEventListener("mousedown",i.mouseStart,o),document.removeEventListener("mousemove",i.move,o),document.removeEventListener("mouseup",i.mouseEnd,o)),e.removeEventListener("touchstart",i.start,a),e.removeEventListener("touchmove",i.move,a),e.removeEventListener("touchcancel",i.end,a),e.removeEventListener("touchend",i.end,a),delete e[e.__qtouchpan_old?"__qtouchpan_old":"__qtouchpan"]}}};function $(e){return 0===e?"":`translate3d(${e}px, 0, 0)`}function x(e){return e?e.clientWidth:0}function R(e,t){return!e&&!t||e===t}var A={name:"SwipeOut",directives:{touchPan:L},props:{threshold:{type:Number,default:45},revealed:{type:[String,Boolean]},disabled:{type:Boolean,default:!1},passiveListeners:{type:Boolean,default:!1}},watch:{revealed(e){this.innerRevealed!==e&&this._reveal(e,!0)}},data(){return{innerRevealed:this.revealed||!1}},methods:{closeActions(){this.close()},close(){this._isActive||this._reveal(!1,!0)},revealLeft(){!this._isActive&&this.$refs.left&&this._reveal("left",!0)},revealRight(){!this._isActive&&this.$refs.right&&this._reveal("right",!0)},_distanceSwiped(){const e=this.$refs.content.getBoundingClientRect(),t=this.$el.getBoundingClientRect();return e.left-t.left-this.$el.clientLeft},_onPan(e){return this.disabled?null:e.isFirst?this._startListener(e):this._isActive?e.isFinal?this._stopListener(e):this._swipeListener(e):null},_startListener({distance:e}){this.$el.classList.add("swipeout--no-transition"),e.y<=5&&(this._leftActionsWidth=this.$refs.left?this.$refs.left.clientWidth:0,this._rightActionsWidth=this.$refs.right?this.$refs.right.clientWidth:0,this._startLeft=this._distanceSwiped(),this._isActive=!0,this.$emit("active",!0),clearTimeout(this._timer))},_swipeListener({offset:e}){const t=e.x+this._startLeft;return!this.$scopedSlots.left&&t>0||!this.$scopedSlots.right&&t<0?this._animateSlide(0):this._animateSlide(e.x+this._startLeft)},_stopListener({offset:e,distance:t}){this.$el.classList.remove("swipeout--no-transition"),this._isActive=!1,this.$emit("active",!1);const i=this._startLeft+e.x;return 0===this._startLeft&&Math.abs(i)<=this.threshold||t.x>=this.threshold&&(this._startLeft>0&&t.x<this._leftActionsWidth||this._startLeft<0&&t.x<this._rightActionsWidth)?this._reveal(!1):this._reveal(i>0?"left":"right")},_reveal(e,t){if(!this._isActive||!R(this.innerRevealed,e))return e&&!this.$refs[e]&&(e=!1),this.innerRevealed=e,this.$emit("update:revealed",e),e?"left"===e&&this.$refs.left?(this._leftActionsWidth=t?x(this.$refs.left):this._leftActionsWidth,this._animateSlide(this._leftActionsWidth),this.$emit("revealed",{side:"left",close:this.closeActions}),void this.$emit("leftRevealed",{close:this.closeActions})):void("right"===e&&this.$refs.right&&(this._rightActionsWidth=t?x(this.$refs.right):this._rightActionsWidth,this._animateSlide(-this._rightActionsWidth),this.$emit("revealed",{side:"right",close:this.closeActions}),this.$emit("rightRevealed",{close:this.closeActions}))):(this._animateSlide(0),void this.$emit("closed"))},_shiftLeftActions(e){if(!this.$scopedSlots.left)return;e<0&&(e=0);const t=this.$refs.left,i=this._leftActionsWidth,s=1-Math.min(e/i,1),n=Math.min(e,i),{children:o}=t,{length:r}=o;for(let a=0;a<r;a++){const e=o[a],t=i-e.offsetLeft-e.offsetWidth;e.style.transform=$(n+t*s),r>1&&(e.style.zIndex=""+(r-a))}},_shiftRightActions(e){if(!this.$scopedSlots.right)return;e>0&&(e=0);const t=this.$refs.right,i=this._rightActionsWidth,s=1+Math.max(e/i,-1),n=Math.max(e,-i),{children:o}=t;for(let r=0;r<o.length;r++){const e=o[r];e.style.transform=$(n-e.offsetLeft*s)}},_animateSlide(e){cancelAnimationFrame(this._frame),this._frame=requestAnimationFrame(()=>{this.$refs.content.style.transform=$(e),this._shiftLeftActions(e),this._shiftRightActions(e)})}},render(e){const t=[],{left:i,right:s,default:n}=this.$scopedSlots;return i&&t.push(e("div",{ref:"left",staticClass:"swipeout-left"},i({close:this.closeActions}))),s&&t.push(e("div",{ref:"right",staticClass:"swipeout-right"},s({close:this.closeActions}))),t.push(e("div",{ref:"content",staticClass:"swipeout-content",directives:this.disabled||!i&&!s?null:[{name:"touch-pan",value:this._onPan,modifiers:{horizontal:!0,mouse:!0,prevent:!this.passiveListeners,mousePrevent:!0}}]},n?n({revealLeft:this.revealLeft,revealRight:this.revealRight,disabled:this.disabled,close:this.closeActions,revealed:this.innerRevealed}):null)),e("div",{staticClass:"swipeout",class:{"swipeout--disabled":this.disabled}},t)},beforeDestroy(){clearTimeout(this._timer),cancelAnimationFrame(this._frame)}},S={name:"SwipeList",props:{items:{type:Array,required:!0},itemKey:{type:String},transitionKey:{type:String},threshold:{type:Number,default:45},revealed:{type:Object},disabled:{type:Boolean,default:!1},itemDisabled:{type:Function,default:()=>!1},passiveListeners:{type:Boolean,default:!1}},data(){return{innerRevealed:this.revealed||{},rev:this.items.map(()=>null)}},watch:{revealed(e){this.innerRevealed=e},items(){this._emitRevealed({})}},methods:{revealRight(e){this.$refs.items[e]&&this.$refs.items[e].revealRight()},revealLeft(e){this.$refs.items[e]&&this.$refs.items[e].revealLeft()},close(e){if(this.$refs.items){if(void 0===e)return this.$refs.items.forEach(e=>e.close());if(this.$refs.items[e])return this.$refs.items[e].close()}},isRevealed(e){return this.innerRevealed[e]||!1},closeActions(e){this.close(e)},_onReveal(e,t,i){this.$emit("revealed",{index:t,item:e,side:i.side,close:i.close}),this._emitRevealed({...this.innerRevealed,[t]:i.side})},_onClose(e,t){this.$emit("closed",{index:t,item:e});const{[t]:i,...s}=this.innerRevealed;this._emitRevealed(s)},_getItemKey(e,t){const i=this.itemKey||this.transitionKey;return void 0!==i?e[this.itemKey||this.transitionKey]:t},_emitRevealed(e){void 0===this.revealed?this.innerRevealed=e:this.$emit("update:revealed",e)},__renderItem(e,t,i){const{left:s,right:n,default:o}=this.$scopedSlots,r={};return s&&(r.left=({close:e})=>s({item:t,close:e,index:i})),n&&(r.right=({close:e})=>n({item:t,close:e,index:i})),r.default=({close:s,disabled:n,revealLeft:r,revealRight:a,revealed:c})=>e("div",{ref:"itemsContent",on:{click:()=>this.$emit("swipeout:click",t)}},o({item:t,index:i,close:s,disabled:n,revealed:c,revealLeft:r,revealRight:a})),e(A,{key:i,ref:"items",refInFor:!0,staticClass:"swipeout-list-item",props:{disabled:this.disabled||this.itemDisabled(t),threshold:this.threshold,revealed:this.innerRevealed[i],passiveListeners:this.passiveListeners},on:{revealed:e=>this._onReveal(t,i,e),leftRevealed:e=>this.$emit("leftRevealed",{index:i,item:t,close:e.close}),rightRevealed:e=>this.$emit("rightRevealed",{index:i,item:t,close:e.close}),closed:e=>this._onClose(t,i,e),active:e=>this.$emit("active",e)},scopedSlots:r})}},render(e){return e("div",{staticClass:"swipeout-list",class:{"swipeout--disabled":this.disabled}},this.items.map((t,i)=>this.__renderItem(e,t,i)))}},C=(i("3ebf"),i("9f6c")),E=i("b879"),k=i("294c"),O=i("076e"),j=i("9d8d"),q=function(e){return new Promise((function(t){return setTimeout(t,e)}))},F={name:"Notifications",components:{BackToTop:E["a"],BIcon:l["a"],BIconTrashFill:d["r"],BreadcrumbFilter:k["a"],CoolLightBox:h["a"],Footer:O["a"],InfiniteLoading:f.a,Navbar:j["a"],SwipeList:S,SwipeOut:A},data:function(){return{infiniteId:Date.now(),index:null,images:[],loading:!0,page:1,query:"",notifications:[]}},sockets:{notification:function(e){this.notifications.unshift(e),e.recordStoring&&this.images.unshift({title:"".concat(e.camera," - ").concat(e.time),src:"/files/".concat(e.fileName),thumb:"Video"===e.recordType?"/files/".concat(e.name,"@2.jpeg"):"/files/".concat(e.fileName)})}},computed:{currentUser:function(){return this.$store.state.auth.user}},mounted:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loading=!1,document.addEventListener("mousedown",e.close),document.addEventListener("touchstart",e.close);case 3:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){document.removeEventListener("mousedown",this.close),document.removeEventListener("touchstart",this.close)},methods:{close:function(e){if(!this.swipe&&"path"!==e.target.tagName&&"svg"!==e.target.tagName&&"g"!==e.target.tagName&&this.$refs.list)if(Array.isArray(this.$refs.list)){var t,i=Object(a["a"])(this.$refs.list);try{for(i.s();!(t=i.n()).done;){var s=t.value;s.closeActions()}}catch(n){i.e(n)}finally{i.f()}}else this.$refs.list.closeActions()},closed:function(e){var t=document.querySelector('div[data-remove-id="'+e.item.id+'"]');t&&t.classList.remove("showRemoveButton")},filterNotifications:function(e){e&&(this.loading=!0,this.notifications=[],this.page=1,this.query="",e.cameras&&e.cameras.length>0&&(this.query+="&cameras=".concat(e.cameras.toString())),e.labels&&e.labels.length>0&&(this.query+="&labels=".concat(e.labels.toString())),e.rooms&&e.rooms.length>0&&(this.query+="&rooms=".concat(e.rooms.toString())),e.types&&e.types.length>0&&(this.query+="&types=".concat(e.types.toString())),e.dateRange&&e.dateRange.start&&(this.query+="&from=".concat(e.dateRange.start)),e.dateRange&&e.dateRange.end&&(this.query+="&to=".concat(e.dateRange.end))),this.infiniteId=Date.now(),this.loading=!1},handleErrorImg:function(e){var t=localStorage.getItem("theme-color")||"pink";e.target.src=i("0e1b")("./logo_transparent-256@".concat(t,".png"))},infiniteHandler:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function i(){var s;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(i.prev=0,!t.checkLevel("notifications:access")){i.next=8;break}return i.next=4,Object(C["a"])("?page=".concat(t.page||1)+t.query);case 4:s=i.sent,s.data.result.length>0?(t.page+=1,t.notifications=[].concat(Object(r["a"])(t.notifications),Object(r["a"])(s.data.result)),t.images=t.notifications.map((function(e){if(e.recordStoring)return{title:"".concat(e.camera," - ").concat(e.time),src:"/files/".concat(e.fileName),thumb:"Video"===e.recordType?"/files/".concat(e.name,"@2.jpeg"):"/files/".concat(e.fileName)}})).filter((function(e){return e})),e.loaded()):e.complete(),i.next=10;break;case 8:t.$toast.error(t.$t("no_access")),e.complete();case 10:i.next=15;break;case 12:i.prev=12,i.t0=i["catch"](0),t.$toast.error(i.t0.message);case 15:case"end":return i.stop()}}),i,null,[[0,12]])})))()},remove:function(e,t){var i=this;return Object(c["a"])(regeneratorRuntime.mark((function s(){var n,r,c,l,d,h,u,f;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,Object(C["b"])(e.id);case 3:return n=document.querySelector('div[data-id="'+e.id+'"]'),n.dataset.aos="fade-right",n.dataset.aosDuration="500",n.classList.remove("aos-init"),n.classList.remove("aos-animate"),r=document.querySelector('div[data-remove-id="'+e.id+'"]'),r&&r.classList.add("hideRemoveButton"),s.next=12,q(500);case 12:i.$store.dispatch("notifications/decrease"),l=Object(a["a"])(i.images.entries());try{for(l.s();!(d=l.n()).done;)h=Object(o["a"])(d.value,2),u=h[0],f=h[1],f.src.includes(e.fileName)&&(c=u)}catch(v){l.e(v)}finally{l.f()}c&&i.$delete(i.images,c),i.$delete(i.notifications,t),0===i.notifications.length&&(i.infiniteId+=1),i.$toast.success("".concat(i.$t("notification")," ").concat(i.$t("removed"),"!")),s.next=24;break;case 21:s.prev=21,s.t0=s["catch"](0),i.$toast.error(s.t0.message);case 24:case"end":return s.stop()}}),s,null,[[0,21]])})))()},removeAll:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var i,s,n,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(C["c"])();case 3:i=document.querySelectorAll(".aos-animate"),s=Object(a["a"])(i);try{for(s.s();!(n=s.n()).done;)o=n.value,o.dataset.aos="fade-up",o.dataset.aosDuration="500",o.classList.remove("aos-init"),o.classList.remove("aos-animate")}catch(r){s.e(r)}finally{s.f()}return t.next=8,q(500);case 8:e.$store.dispatch("notifications/removeAll"),e.$toast.success(e.$t("all_notifications_removed")),e.notifications=[],e.images=[],t.next=17;break;case 14:t.prev=14,t.t0=t["catch"](0),e.$toast.error(t.t0.message);case 17:case"end":return t.stop()}}),t,null,[[0,14]])})))()},rightRevealed:function(e){this.swipe=!1;var t=document.querySelector('div[data-remove-id="'+e.item.id+'"]');t&&t.classList.add("showRemoveButton")},startSwipe:function(){this.swipe=!0}}},T=F,B=(i("0ef3"),i("243a"),i("2877")),I=Object(B["a"])(T,s,n,!1,null,"e6fefbc0",null);t["default"]=I.exports}}]); |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0047 ]-- |