%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/passwords/js/Static/ |
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/passwords/js/Static/6874.f30da14400218f9f688c.js |
/*! For license information please see 6874.f30da14400218f9f688c.js.LICENSE.txt */ (self.webpackChunkncpasswords=self.webpackChunkncpasswords||[]).push([[6874],{6089:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});const i={}},42508:(t,e,s)=>{var i=s(6089);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,s(70534).A)("7d7bbe40",i,!1,{})},94493:(t,e,s)=>{"use strict";s.d(e,{A:()=>P}),s(42508);var i=s(2421),a=s(19724),l=s(71543),n=s(26862),o=s(92470),r=s(74095),c=(s(77965),s(3490)),u=s(84396),d=s(14634),h=s(2078),p=s(13073),m=s(2508);function f(t,e){let s,i,a,l=e;this.start=function(){a=!0,i=new Date,s=setTimeout(t,l)},this.pause=function(){a=!1,clearTimeout(s),l-=new Date-i},this.clear=function(){a=!1,clearTimeout(s),l=0},this.getTimeLeft=function(){return a&&(this.pause(),this.start()),l},this.getStateRunning=function(){return a},this.start()}(0,l.r)(l.E,l.D);const y={name:"ChevronLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var v=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon chevron-left-icon",attrs:{"aria-hidden":!t.title||null,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},w=[];const g=(0,c.n)(y,v,w,!1,null,null,null,null).exports,C={name:"PauseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var _=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon pause-icon",attrs:{"aria-hidden":!t.title||null,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M14,19H18V5H14M6,19H10V5H6V19Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},b=[];const k=(0,c.n)(C,_,b,!1,null,null,null,null).exports,S={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var x=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon play-icon",attrs:{"aria-hidden":!t.title||null,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M8,5.14V19.14L19,12.14L8,5.14Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},T=[];const L=(0,c.n)(S,x,T,!1,null,null,null,null).exports,N={name:"NcModal",components:{NcActions:o.N,ChevronLeft:g,ChevronRight:u.C,Close:d.C,Pause:k,Play:L,NcButton:r.default},directives:{tooltip:m.yw},props:{name:{type:String,default:""},hasPrevious:{type:Boolean,default:!1},hasNext:{type:Boolean,default:!1},outTransition:{type:Boolean,default:!1},enableSlideshow:{type:Boolean,default:!1},slideshowDelay:{type:Number,default:5e3},slideshowPaused:{type:Boolean,default:!1},enableSwipe:{type:Boolean,default:!0},spreadNavigation:{type:Boolean,default:!1},size:{type:String,default:"normal",validator:t=>["small","normal","large","full"].includes(t)},canClose:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},container:{type:[String,null],default:"body"},closeButtonContained:{type:Boolean,default:!0},additionalTrapElements:{type:Array,default:()=>[]},inlineActions:{type:Number,default:0},show:{type:Boolean,default:void 0},setReturnFocus:{default:void 0,type:[HTMLElement,SVGElement,String,Boolean]}},emits:["previous","next","close","update:show"],data:()=>({mc:null,playing:!1,slideshowTimeout:null,iconSize:24,focusTrap:null,randId:(0,n.G)(),internalShow:!0}),computed:{showModal(){return void 0===this.show?this.internalShow:this.show},modalTransitionName(){return"modal-".concat(this.outTransition?"out":"in")},playPauseName(){return this.playing?(0,l.a)("Pause slideshow"):(0,l.a)("Start slideshow")},cssVariables(){return{"--slideshow-duration":this.slideshowDelay+"ms","--icon-size":this.iconSize+"px"}},closeButtonAriaLabel:()=>(0,l.a)("Close"),prevButtonAriaLabel:()=>(0,l.a)("Previous"),nextButtonAriaLabel:()=>(0,l.a)("Next")},watch:{slideshowPaused(t){this.slideshowTimeout&&(t?this.slideshowTimeout.pause():this.slideshowTimeout.start())},additionalTrapElements(t){if(this.focusTrap){const e=this.$refs.mask;this.focusTrap.updateContainerElements([e,...t])}}},beforeMount(){window.addEventListener("keydown",this.handleKeydown)},beforeDestroy(){window.removeEventListener("keydown",this.handleKeydown),this.mc.stop()},mounted(){this.useFocusTrap(),this.mc=(0,p.o__)(this.$refs.mask,{onSwipeEnd:this.handleSwipe}),this.container&&("body"===this.container?document.body.insertBefore(this.$el,document.body.lastChild):document.querySelector(this.container).appendChild(this.$el))},destroyed(){this.clearFocusTrap(),this.$el.remove()},methods:{t:l.a,previous(t){this.hasPrevious&&(t&&this.resetSlideshow(),this.$emit("previous",t))},next(t){this.hasNext&&(t&&this.resetSlideshow(),this.$emit("next",t))},close(t){this.canClose&&(this.internalShow=!1,this.$emit("update:show",!1),setTimeout((()=>{this.$emit("close",t)}),300))},handleClickModalWrapper(t){this.closeOnClickOutside&&this.close(t)},handleKeydown(t){if("Escape"===t.key){const e=(0,a.g)();return e.length>0&&e[e.length-1]!==this.focusTrap?void 0:this.close(t)}const e={ArrowLeft:this.previous,ArrowRight:this.next};if(e[t.key])return document.activeElement&&!this.$el.contains(document.activeElement)?void 0:e[t.key](t)},handleSwipe(t,e){this.enableSwipe&&("left"===e?this.next(t):"right"===e&&this.previous(t))},togglePlayPause(){this.playing=!this.playing,this.playing?this.handleSlideshow():this.clearSlideshowTimeout()},resetSlideshow(){this.playing=!this.playing,this.clearSlideshowTimeout(),this.$nextTick((function(){this.togglePlayPause()}))},handleSlideshow(){this.playing=!0,this.hasNext?this.slideshowTimeout=new f((()=>{this.next(),this.handleSlideshow()}),this.slideshowDelay):(this.playing=!1,this.clearSlideshowTimeout())},clearSlideshowTimeout(){this.slideshowTimeout&&this.slideshowTimeout.clear()},async useFocusTrap(){if(!this.showModal||this.focusTrap)return;const t=this.$refs.mask;await this.$nextTick();const e={allowOutsideClick:!0,fallbackFocus:t,trapStack:(0,a.g)(),escapeDeactivates:!1,setReturnFocus:this.setReturnFocus};this.focusTrap=(0,h.K)([t,...this.additionalTrapElements],e),this.focusTrap.activate()},clearFocusTrap(){var t;this.focusTrap&&(null==(t=this.focusTrap)||t.deactivate(),this.focusTrap=null)}}};var B=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"fade",appear:""},on:{"after-enter":t.useFocusTrap,"before-leave":t.clearFocusTrap}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.showModal,expression:"showModal"}],ref:"mask",staticClass:"modal-mask",class:{"modal-mask--dark":t.dark||!t.closeButtonContained||t.hasPrevious||t.hasNext},style:t.cssVariables,attrs:{role:"dialog","aria-modal":"true","aria-labelledby":"modal-name-"+t.randId,"aria-describedby":"modal-description-"+t.randId,tabindex:"-1"}},[e("transition",{attrs:{name:"fade-visibility",appear:""}},[e("div",{staticClass:"modal-header"},[""!==t.name.trim()?e("h2",{staticClass:"modal-name",attrs:{id:"modal-name-"+t.randId}},[t._v(" "+t._s(t.name)+" ")]):t._e(),e("div",{staticClass:"icons-menu"},[t.hasNext&&t.enableSlideshow?e("button",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:t.playPauseName,expression:"playPauseName",modifiers:{auto:!0}}],staticClass:"play-pause-icons",class:{"play-pause-icons--paused":t.slideshowPaused},attrs:{type:"button"},on:{click:t.togglePlayPause}},[t.playing?e("Pause",{staticClass:"play-pause-icons__pause",attrs:{size:t.iconSize}}):e("Play",{staticClass:"play-pause-icons__play",attrs:{size:t.iconSize}}),e("span",{staticClass:"hidden-visually"},[t._v(" "+t._s(t.playPauseName)+" ")]),t.playing?e("svg",{staticClass:"progress-ring",attrs:{height:"50",width:"50"}},[e("circle",{staticClass:"progress-ring__circle",attrs:{stroke:"white","stroke-width":"2",fill:"transparent",r:"15",cx:"25",cy:"25"}})]):t._e()],1):t._e(),e("NcActions",{staticClass:"header-actions",attrs:{inline:t.inlineActions}},[t._t("actions")],2),t.canClose&&!t.closeButtonContained?e("NcButton",{staticClass:"header-close",attrs:{"aria-label":t.closeButtonAriaLabel,type:"tertiary"},on:{click:t.close},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Close",{attrs:{size:t.iconSize}})]},proxy:!0}],null,!1,1841713362)}):t._e()],1)])]),e("transition",{attrs:{name:t.modalTransitionName,appear:""}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.showModal,expression:"showModal"}],staticClass:"modal-wrapper",class:["modal-wrapper--".concat(t.size),{"modal-wrapper--spread-navigation":t.spreadNavigation}],on:{mousedown:function(e){return e.target!==e.currentTarget?null:t.handleClickModalWrapper.apply(null,arguments)}}},[e("transition",{attrs:{name:"fade-visibility",appear:""}},[e("NcButton",{directives:[{name:"show",rawName:"v-show",value:t.hasPrevious,expression:"hasPrevious"}],staticClass:"prev",attrs:{type:"tertiary-no-background","aria-label":t.prevButtonAriaLabel},on:{click:t.previous},scopedSlots:t._u([{key:"icon",fn:function(){return[e("ChevronLeft",{attrs:{size:40}})]},proxy:!0}])})],1),e("div",{staticClass:"modal-container",attrs:{id:"modal-description-"+t.randId}},[t.canClose&&t.closeButtonContained?e("NcButton",{staticClass:"modal-container__close",attrs:{type:"tertiary","aria-label":t.closeButtonAriaLabel},on:{click:t.close},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Close",{attrs:{size:20}})]},proxy:!0}],null,!1,2121748766)}):t._e(),e("div",{staticClass:"modal-container__content"},[t._t("default")],2)],1),e("transition",{attrs:{name:"fade-visibility",appear:""}},[e("NcButton",{directives:[{name:"show",rawName:"v-show",value:t.hasNext,expression:"hasNext"}],staticClass:"next",attrs:{type:"tertiary-no-background","aria-label":t.nextButtonAriaLabel},on:{click:t.next},scopedSlots:t._u([{key:"icon",fn:function(){return[e("ChevronRight",{attrs:{size:40}})]},proxy:!0}])})],1)],1)])],1)])},z=[];const P=(0,c.n)(N,B,z,!1,null,"1ea9d450",null,null).exports;(0,i.S)(P)},84396:(t,e,s)=>{"use strict";s.d(e,{C:()=>o});var i=s(3490);const a={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var l=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon chevron-right-icon",attrs:{"aria-hidden":!t.title||null,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},n=[];const o=(0,i.n)(a,l,n,!1,null,null,null,null).exports},14634:(t,e,s)=>{"use strict";s.d(e,{C:()=>o});var i=s(3490);const a={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var l=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon close-icon",attrs:{"aria-hidden":!t.title||null,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},n=[];const o=(0,i.n)(a,l,n,!1,null,null,null,null).exports},2421:(t,e,s)=>{"use strict";s.d(e,{S:()=>i});const i=t=>{t.mounted?Array.isArray(t.mounted)||(t.mounted=[t.mounted]):t.mounted=[],t.mounted.push((function(){this.$el.setAttribute("data-v-c8b37f5","")}))}}}]);