%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/passwords/js/Static/
Upload File :
Create Path :
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/passwords/js/Static/1939.847e296ace148b357eff.js

/*! For license information please see 1939.847e296ace148b357eff.js.LICENSE.txt */
(self.webpackChunkncpasswords=self.webpackChunkncpasswords||[]).push([[1939],{80588:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a});const a={}},24448:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a});const a={}},40283:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a});const a={}},36303:(t,e,i)=>{var a=i(80588);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[t.id,a,""]]),a.locals&&(t.exports=a.locals),(0,i(70534).A)("718c0d6e",a,!1,{})},9925:(t,e,i)=>{var a=i(24448);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[t.id,a,""]]),a.locals&&(t.exports=a.locals),(0,i(70534).A)("c77eac80",a,!1,{})},55378:(t,e,i)=>{var a=i(40283);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[t.id,a,""]]),a.locals&&(t.exports=a.locals),(0,i(70534).A)("5e11ac20",a,!1,{})},57229:(t,e,i)=>{"use strict";i.d(e,{A:()=>l}),i(9925);var a=i(3490);const s={name:"NcAppSidebarTab",inject:["registerTab","unregisterTab","getActiveTab","isTablistShown"],props:{id:{type:String,required:!0},name:{type:String,required:!0},icon:{type:String,default:""},order:{type:Number,default:0}},emits:["bottom-reached","scroll"],expose:["id","name","icon","order","renderIcon"],computed:{isActive(){return this.getActiveTab()===this.id}},created(){this.registerTab(this)},beforeDestroy(){this.unregisterTab(this.id)},methods:{onScroll(t){this.$el.scrollHeight-this.$el.scrollTop===this.$el.clientHeight&&this.$emit("bottom-reached",t),this.$emit("scroll",t)},renderIcon(){var t,e;return null==(e=(t=this.$scopedSlots).icon)?void 0:e.call(t)}}};var n=function(){var t=this,e=t._self._c;return e("section",{staticClass:"app-sidebar__tab",class:{"app-sidebar__tab--active":t.isActive},attrs:{id:"tab-".concat(t.id),"aria-hidden":!t.isActive,"aria-label":t.isTablistShown()?void 0:t.name,"aria-labelledby":t.isTablistShown()?"tab-button-".concat(t.id):void 0,tabindex:t.isTablistShown()?0:-1,role:t.isTablistShown()?"tabpanel":void 0},on:{scroll:t.onScroll}},[e("h3",{staticClass:"hidden-visually"},[t._v(" "+t._s(t.name)+" ")]),t._t("default")],2)},r=[];const l=(0,a.n)(s,n,r,!1,null,"ef10d14f",null,null).exports},42892:(t,e,i)=>{"use strict";i.d(e,{u:()=>a});const a={inserted(t){t.focus()}}},65842:(t,e,i)=>{"use strict";i.d(e,{u:()=>s});var a=i(17062);const s=function(t,e){var i;!0===(null==(i=e.value)?void 0:i.linkify)&&(t.innerHTML=(0,a.L)(e.value.text))}},17062:(t,e,i)=>{"use strict";i.d(e,{L:()=>s});var a=i(22792);const s=t=>(0,a.A)(t,{defaultProtocol:"https",target:"_blank",className:"external linkified",attributes:{rel:"nofollow noopener noreferrer"}})},34845:(t,e,i)=>{"use strict";i.d(e,{N:()=>K}),i(36303);var a=i(23610),s=i(38868),n=i(3490),r=i(92470),l=i(18126),o=i(74095),c=i(51025),u=i(42892),d=i(65842),p=(i(77965),i(53429)),h=i(26862),b=i(19724),f=i(71543),m=i(66816),y=i(14634),v=i(55042),g=i(2078),_=i(2508);const k={name:"NcAppSidebarTabs",components:{NcCheckboxRadioSwitch:s.N,NcVNodes:a.A},provide(){return{registerTab:this.registerTab,unregisterTab:this.unregisterTab,getActiveTab:()=>this.activeTab,isTablistShown:()=>this.hasMultipleTabs}},props:{active:{type:String,default:""}},emits:["update:active"],data:()=>({tabs:[],activeTab:""}),computed:{hasMultipleTabs(){return this.tabs.length>1},currentTabIndex(){return this.tabs.findIndex((t=>t.id===this.activeTab))}},watch:{active(t){t!==this.activeTab&&this.updateActive()}},methods:{setActive(t){this.activeTab=t,this.$emit("update:active",this.activeTab)},focusPreviousTab(){this.currentTabIndex>0&&this.setActive(this.tabs[this.currentTabIndex-1].id),this.focusActiveTab()},focusNextTab(){this.currentTabIndex<this.tabs.length-1&&this.setActive(this.tabs[this.currentTabIndex+1].id),this.focusActiveTab()},focusFirstTab(){this.setActive(this.tabs[0].id),this.focusActiveTab()},focusLastTab(){this.setActive(this.tabs[this.tabs.length-1].id),this.focusActiveTab()},focusActiveTab(){this.$el.querySelector("#tab-button-".concat(this.activeTab)).focus()},focusActiveTabContent(){this.$el.querySelector("#tab-"+this.activeTab).focus()},updateActive(){this.activeTab=this.active&&this.tabs.some((t=>t.id===this.active))?this.active:this.tabs.length>0?this.tabs[0].id:""},registerTab(t){this.tabs.push(t),this.tabs.sort(((t,e)=>t.order===e.order?OC.Util.naturalSortCompare(t.name,e.name):t.order-e.order)),this.updateActive()},unregisterTab(t){const e=this.tabs.findIndex((e=>e.id===t));-1!==e&&this.tabs.splice(e,1),this.activeTab===t&&this.updateActive()}}};var C=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-sidebar-tabs"},[t.hasMultipleTabs?e("div",{staticClass:"app-sidebar-tabs__nav",attrs:{role:"tablist"},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),e.stopPropagation(),t.focusPreviousTab.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),e.stopPropagation(),t.focusNextTab.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),e.stopPropagation(),t.focusActiveTabContent.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"home",void 0,e.key,void 0)||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),e.stopPropagation(),t.focusFirstTab.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"end",void 0,e.key,void 0)||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),e.stopPropagation(),t.focusLastTab.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"page-up",void 0,e.key,void 0)||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),e.stopPropagation(),t.focusFirstTab.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"page-down",void 0,e.key,void 0)||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),e.stopPropagation(),t.focusLastTab.apply(null,arguments))}]}},t._l(t.tabs,(function(i){return e("NcCheckboxRadioSwitch",{key:i.id,staticClass:"app-sidebar-tabs__tab",class:{active:i.id===t.activeTab},attrs:{"aria-controls":"tab-".concat(i.id),"aria-selected":String(t.activeTab===i.id),"button-variant":!0,checked:t.activeTab===i.id,"wrapper-id":"tab-button-".concat(i.id),tabindex:t.activeTab===i.id?0:-1,"button-variant-grouped":"horizontal",role:"tab",type:"button"},on:{"update:checked":function(e){return t.setActive(i.id)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcVNodes",{attrs:{vnodes:i.renderIcon()}},[e("span",{staticClass:"app-sidebar-tabs__tab-icon",class:i.icon})])]},proxy:!0}],null,!0)},[e("span",{staticClass:"app-sidebar-tabs__tab-caption"},[t._v(" "+t._s(i.name)+" ")])])})),1):t._e(),e("div",{staticClass:"app-sidebar-tabs__content",class:{"app-sidebar-tabs__content--multiple":t.hasMultipleTabs}},[t._t("default")],2)])},T=[];const x=(0,n.n)(k,C,T,!1,null,"2ae00fba",null,null).exports;(0,f.r)(f.G);const S={name:"StarIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var A=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon star-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:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},w=[];const N=(0,n.n)(S,A,w,!1,null,null,null,null).exports,$={name:"StarOutlineIcon",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 star-outline-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:"M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},B=[];const z=(0,n.n)($,L,B,!1,null,null,null,null).exports,E={name:"NcAppSidebar",components:{NcActions:r.N,NcAppSidebarTabs:x,ArrowRight:m.A,NcButton:o.default,NcLoadingIcon:l.A,NcEmptyContent:c.A,Close:y.C,Star:N,StarOutline:z},directives:{focus:u.u,linkify:d.u,ClickOutside:v.z0,Tooltip:_.yw},props:{active:{type:String,default:""},name:{type:String,default:"",required:!0},nameEditable:{type:Boolean,default:!1},namePlaceholder:{type:String,default:""},subname:{type:String,default:""},subtitle:{type:String,default:""},background:{type:String,default:""},starred:{type:Boolean,default:null},starLoading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},empty:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},linkifyName:{type:Boolean,default:!1},title:{type:String,default:""}},emits:["close","closing","closed","opening","opened","figure-click","update:starred","update:nameEditable","update:name","update:active","submit-name","dismiss-editing"],setup:()=>({uid:(0,h.G)(),isMobile:(0,p.F)()}),data(){return{changeNameTranslated:(0,f.a)("Change name"),closeTranslated:(0,f.a)("Close sidebar"),favoriteTranslated:(0,f.a)("Favorite"),isStarred:this.starred,focusTrap:null,elementToReturnFocus:null}},computed:{canStar(){return null!==this.isStarred},hasFigure(){return this.$slots.header||this.background},hasFigureClickListener(){return this.$listeners["figure-click"]}},watch:{starred(){this.isStarred=this.starred},isMobile(){this.toggleFocusTrap()}},created(){this.preserveElementToReturnFocus()},mounted(){this.elementToReturnFocus&&this.focus(),this.toggleFocusTrap()},beforeDestroy(){var t;this.$emit("closed"),null==(t=this.focusTrap)||t.deactivate()},methods:{preserveElementToReturnFocus(){if(document.activeElement&&document.activeElement!==document.body&&(this.elementToReturnFocus=document.activeElement,"menuitem"===this.elementToReturnFocus.getAttribute("role"))){const t=this.elementToReturnFocus.closest('[role="menu"]');if(t){const e=document.querySelector('[aria-controls="'.concat(t.id,'"]'));this.elementToReturnFocus=e}}},initFocusTrap(){var t;this.focusTrap||(this.focusTrap=(0,g.K)([this.$refs.sidebar,document.querySelector("#header"),null==(t=document.querySelector('[aria-controls="app-navigation-vue"]'))?void 0:t.parentElement],{allowOutsideClick:!0,fallbackFocus:this.$refs.closeButton,trapStack:(0,b.g)(),escapeDeactivates:!1}))},toggleFocusTrap(){var t;this.isMobile?(this.initFocusTrap(),this.focusTrap.activate()):null==(t=this.focusTrap)||t.deactivate()},onKeydownEsc(t){this.isMobile&&(t.stopPropagation(),this.closeSidebar())},onBeforeEnter(t){this.$emit("opening",t)},onAfterEnter(t){this.$emit("opened",t)},onBeforeLeave(t){this.$emit("closing",t)},onAfterLeave(t){var e;this.$emit("closed",t),null==(e=this.elementToReturnFocus)||e.focus({focusVisible:!0}),this.elementToReturnFocus=null},closeSidebar(t){this.$emit("close",t)},onFigureClick(t){this.$emit("figure-click",t)},toggleStarred(){this.isStarred=!this.isStarred,this.$emit("update:starred",this.isStarred)},editName(){this.$emit("update:nameEditable",!0),this.nameEditable&&this.$nextTick((()=>this.$refs.nameInput.focus()))},focus(){this.$refs.header.focus()},focusActiveTabContent(){this.preserveElementToReturnFocus(),this.$refs.tabs.focusActiveTabContent()},onNameInput(t){this.$emit("update:name",t.target.value)},onSubmitName(t){this.$emit("update:nameEditable",!1),this.$emit("submit-name",t)},onDismissEditing(){this.$emit("update:nameEditable",!1),this.$emit("dismiss-editing")},onUpdateActive(t){this.$emit("update:active",t)}}};var I=function(){var t=this,e=t._self._c;return e("transition",{attrs:{appear:"",name:"slide-right"},on:{"before-enter":t.onBeforeEnter,"after-enter":t.onAfterEnter,"before-leave":t.onBeforeLeave,"after-leave":t.onAfterLeave}},[e("aside",{ref:"sidebar",staticClass:"app-sidebar",attrs:{id:"app-sidebar-vue","aria-labelledby":"app-sidebar-vue-".concat(t.uid,"__header")},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onKeydownEsc.apply(null,arguments)}}},[e("header",{staticClass:"app-sidebar-header",class:{"app-sidebar-header--with-figure":t.hasFigure,"app-sidebar-header--compact":t.compact}},[e("div",{staticClass:"app-sidebar-header__info"},[t.hasFigure&&!t.empty?e("div",{staticClass:"app-sidebar-header__figure",class:{"app-sidebar-header__figure--with-action":t.hasFigureClickListener},style:{backgroundImage:"url(".concat(t.background,")")},attrs:{tabindex:"0"},on:{click:t.onFigureClick,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onFigureClick.apply(null,arguments)}}},[t._t("header")],2):t._e(),t.empty?t._e():e("div",{staticClass:"app-sidebar-header__desc",class:{"app-sidebar-header__desc--with-tertiary-action":t.canStar||t.$slots["tertiary-actions"],"app-sidebar-header__desc--editable":t.nameEditable&&!t.subname,"app-sidebar-header__desc--with-subname--editable":t.nameEditable&&t.subname,"app-sidebar-header__desc--without-actions":!t.$slots["secondary-actions"]}},[t.canStar||t.$slots["tertiary-actions"]?e("div",{staticClass:"app-sidebar-header__tertiary-actions"},[t._t("tertiary-actions",(function(){return[t.canStar?e("NcButton",{staticClass:"app-sidebar-header__star",attrs:{"aria-label":t.favoriteTranslated,pressed:t.isStarred,type:"secondary"},on:{click:function(e){return e.preventDefault(),t.toggleStarred.apply(null,arguments)}},scopedSlots:t._u([{key:"icon",fn:function(){return[t.starLoading?e("NcLoadingIcon"):t.isStarred?e("Star",{attrs:{size:20}}):e("StarOutline",{attrs:{size:20}})]},proxy:!0}],null,!1,2575459756)}):t._e()]}))],2):t._e(),e("div",{staticClass:"app-sidebar-header__name-container"},[e("div",{staticClass:"app-sidebar-header__mainname-container"},[e("h2",{directives:[{name:"show",rawName:"v-show",value:!t.nameEditable,expression:"!nameEditable"},{name:"linkify",rawName:"v-linkify",value:{text:t.name,linkify:t.linkifyName},expression:"{text: name, linkify: linkifyName}"}],ref:"header",staticClass:"app-sidebar-header__mainname",attrs:{id:"app-sidebar-vue-".concat(t.uid,"__header"),"aria-label":t.title,title:t.title,tabindex:t.nameEditable?0:-1},on:{click:function(e){return e.target!==e.currentTarget?null:t.editName.apply(null,arguments)}}},[t._v(" "+t._s(t.name)+" ")]),t.nameEditable?[e("form",{directives:[{name:"click-outside",rawName:"v-click-outside",value:()=>t.onSubmitName(),expression:"() => onSubmitName()"}],staticClass:"app-sidebar-header__mainname-form",on:{submit:function(e){return e.preventDefault(),t.onSubmitName.apply(null,arguments)}}},[e("input",{directives:[{name:"focus",rawName:"v-focus"}],ref:"nameInput",staticClass:"app-sidebar-header__mainname-input",attrs:{type:"text",placeholder:t.namePlaceholder},domProps:{value:t.name},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.stopPropagation(),t.onDismissEditing.apply(null,arguments))},input:t.onNameInput}}),e("NcButton",{attrs:{type:"tertiary-no-background","aria-label":t.changeNameTranslated,"native-type":"submit"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("ArrowRight",{attrs:{size:20}})]},proxy:!0}],null,!1,1252225425)})],1)]:t._e(),t.$slots["secondary-actions"]?e("NcActions",{staticClass:"app-sidebar-header__menu",attrs:{"force-menu":t.forceMenu}},[t._t("secondary-actions")],2):t._e()],2),""!==t.subname.trim()||t.$slots.subname?e("p",{staticClass:"app-sidebar-header__subname",attrs:{title:t.subtitle||void 0}},[t._t("subname",(function(){return[t._v(" "+t._s(t.subname)+" ")]}))],2):t._e()])])]),e("NcButton",{ref:"closeButton",staticClass:"app-sidebar__close",attrs:{title:t.closeTranslated,"aria-label":t.closeTranslated,type:"tertiary"},on:{click:function(e){return e.preventDefault(),t.closeSidebar.apply(null,arguments)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Close",{attrs:{size:20}})]},proxy:!0}])}),t.$slots.description&&!t.empty?e("div",{staticClass:"app-sidebar-header__description"},[t._t("description")],2):t._e()],1),e("NcAppSidebarTabs",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],ref:"tabs",attrs:{active:t.active},on:{"update:active":t.onUpdateActive}},[t._t("default")],2),t.loading?e("NcEmptyContent",{scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcLoadingIcon",{attrs:{size:64}})]},proxy:!0}],null,!1,826850984)}):t._e()],1)])},M=[];const K=(0,n.n)(E,I,M,!1,null,"c5e2ec68",null,null).exports},38868:(t,e,i)=>{"use strict";i.d(e,{N:()=>Z});var a=i(3490),s=i(18126),n=(i(92208),i(26862)),r=i(71543);const l={name:"CheckboxBlankOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var o=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon checkbox-blank-outline-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,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},c=[];const u=(0,a.n)(l,o,c,!1,null,null,null,null).exports,d={name:"MinusBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var p=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon minus-box-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:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},h=[];const b=(0,a.n)(d,p,h,!1,null,null,null,null).exports,f={name:"CheckboxMarkedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var m=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon checkbox-marked-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:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},y=[];const v=(0,a.n)(f,m,y,!1,null,null,null,null).exports,g={name:"RadioboxMarkedIcon",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 radiobox-marked-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:"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},k=[];const C=(0,a.n)(g,_,k,!1,null,null,null,null).exports,T={name:"RadioboxBlankIcon",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 radiobox-blank-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:"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},S=[];const A=(0,a.n)(T,x,S,!1,null,null,null,null).exports,w={name:"ToggleSwitchOffIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var N=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon toggle-switch-off-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:"M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M7,15A3,3 0 0,1 4,12A3,3 0 0,1 7,9A3,3 0 0,1 10,12A3,3 0 0,1 7,15Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},$=[];const L=(0,a.n)(w,N,$,!1,null,null,null,null).exports,B={name:"ToggleSwitchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var z=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon toggle-switch-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:"M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M17,15A3,3 0 0,1 14,12A3,3 0 0,1 17,9A3,3 0 0,1 20,12A3,3 0 0,1 17,15Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},E=[];const I=(0,a.n)(B,z,E,!1,null,null,null,null).exports,M="checkbox",K="radio",F="switch",V="button",O={name:"NcCheckboxContent",components:{NcLoadingIcon:s.A},props:{id:{type:String,default:null},iconClass:{type:[String,Object],default:null},textClass:{type:[String,Object],default:null},type:{type:String,default:"checkbox",validator:t=>[M,K,F,V].includes(t)},buttonVariant:{type:Boolean,default:!1},isChecked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:Number,default:24}},computed:{isButtonType(){return this.type===V},checkboxRadioIconElement(){return this.type===K?this.isChecked?C:A:this.type===F?this.isChecked?I:L:this.indeterminate?b:this.isChecked?v:u}}};var R=function(){var t=this,e=t._self._c;return e("span",{staticClass:"checkbox-content",class:{["checkbox-content-"+t.type]:!0,"checkbox-content--button-variant":t.buttonVariant,"checkbox-content--has-text":!!t.$slots.default},attrs:{id:t.isButtonType?void 0:"".concat(t.id,"-label")}},[e("span",{class:{"checkbox-content__icon":!0,"checkbox-content__icon--checked":t.isChecked,[t.iconClass]:!0},attrs:{"aria-hidden":!0,inert:""}},[t._t("icon",(function(){return[t.loading?e("NcLoadingIcon"):t.buttonVariant?t._e():e(t.checkboxRadioIconElement,{tag:"component",attrs:{size:t.size}})]}),{checked:t.isChecked,loading:t.loading})],2),t.$slots.default?e("span",{class:["checkbox-content__text",t.textClass]},[t._t("default")],2):t._e()])},H=[];const P={name:"NcCheckboxRadioSwitch",components:{NcCheckboxContent:(0,a.n)(O,R,H,!1,null,"2672ad1a",null,null).exports},props:{id:{type:String,default:()=>"checkbox-radio-switch-"+(0,n.G)(),validator:t=>""!==t.trim()},wrapperId:{type:String,default:null},name:{type:String,default:null},ariaLabel:{type:String,default:""},type:{type:String,default:"checkbox",validator:t=>[M,K,F,V].includes(t)},buttonVariant:{type:Boolean,default:!1},buttonVariantGrouped:{type:String,default:"no",validator:t=>["no","vertical","horizontal"].includes(t)},checked:{type:[Boolean,Array,String],default:!1},value:{type:String,default:null},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},required:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},wrapperElement:{type:String,default:null}},emits:["update:checked"],computed:{isButtonType(){return this.type===V},computedWrapperElement(){return this.isButtonType?"button":null!==this.wrapperElement?this.wrapperElement:"span"},listeners(){return this.isButtonType?{click:this.onToggle}:{change:this.onToggle}},size(){return this.type===F?36:24},cssVars(){return{"--icon-size":this.size+"px","--icon-height":(this.type===F?16:this.size)+"px"}},inputType(){return[M,K,V].includes(this.type)?this.type:M},isChecked(){return null!==this.value?Array.isArray(this.checked)?[...this.checked].indexOf(this.value)>-1:this.checked===this.value:!0===this.checked},hasIndeterminate(){return[M,K].includes(this.inputType)}},mounted(){if(this.name&&this.type===M&&!Array.isArray(this.checked))throw new Error("When using groups of checkboxes, the updated value will be an array.");if(this.name&&this.type===F)throw new Error("Switches are not made to be used for data sets. Please use checkboxes instead.");if("boolean"!=typeof this.checked&&this.type===F)throw new Error("Switches can only be used with boolean as checked prop.")},methods:{t:r.a,n:r.L,onToggle(){if(this.disabled)return;if(this.type===K)return void this.$emit("update:checked",this.value);if(this.type===F)return void this.$emit("update:checked",!this.isChecked);if("boolean"==typeof this.checked)return void this.$emit("update:checked",!this.checked);const t=this.getInputsSet().filter((t=>t.checked)).map((t=>t.value));t.includes(this.value)?this.$emit("update:checked",t.filter((t=>t!==this.value))):this.$emit("update:checked",[...t,this.value])},getInputsSet(){return[...document.getElementsByName(this.name)]}}};var D=function(){var t=this,e=t._self._c;return e(t.computedWrapperElement,t._g({tag:"component",staticClass:"checkbox-radio-switch",class:{["checkbox-radio-switch-"+t.type]:t.type,"checkbox-radio-switch--checked":t.isChecked,"checkbox-radio-switch--disabled":t.disabled,"checkbox-radio-switch--indeterminate":!!t.hasIndeterminate&&t.indeterminate,"checkbox-radio-switch--button-variant":t.buttonVariant,"checkbox-radio-switch--button-variant-v-grouped":t.buttonVariant&&"vertical"===t.buttonVariantGrouped,"checkbox-radio-switch--button-variant-h-grouped":t.buttonVariant&&"horizontal"===t.buttonVariantGrouped,"button-vue":t.isButtonType},style:t.cssVars,attrs:{id:t.wrapperId,"aria-label":t.isButtonType&&t.ariaLabel?t.ariaLabel:void 0,type:t.isButtonType?"button":null}},t.isButtonType?t.listeners:null),[t.isButtonType?t._e():e("input",t._g({staticClass:"checkbox-radio-switch__input",attrs:{id:t.id,"aria-labelledby":t.isButtonType||t.ariaLabel?null:"".concat(t.id,"-label"),"aria-label":t.ariaLabel||void 0,disabled:t.disabled,type:t.inputType,required:t.required,name:t.name},domProps:{value:t.value,checked:t.isChecked,indeterminate:t.hasIndeterminate?t.indeterminate:null}},t.listeners)),e("NcCheckboxContent",{staticClass:"checkbox-radio-switch__content",attrs:{id:t.id,"icon-class":"checkbox-radio-switch__icon","text-class":"checkbox-radio-switch__text",type:t.type,indeterminate:!!t.hasIndeterminate&&t.indeterminate,"button-variant":t.buttonVariant,"is-checked":t.isChecked,loading:t.loading,size:t.size},nativeOn:{click:function(e){return t.onToggle.apply(null,arguments)}},scopedSlots:t._u([{key:"icon",fn:function(){return[t._t("icon")]},proxy:!0}],null,!0)},[t._t("default")],2)],1)},q=[];const Z=(0,a.n)(P,D,q,!1,null,"2603be83",null,null).exports},92208:(t,e,i)=>{"use strict";i(55378),(0,i(71543).r)()}}]);

Zerion Mini Shell 1.0