PageSourceSearch

https://cloud.rohitpai.co.uk/dist/3462-3462.js?v=80282b94e1980e01e226

js rohitpai.co.uk collected 2026-09-25 22:49:55 UTC 26,236 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunknextcloud_ui_legacy||=[]).push([[3462],{79150(e,i,t){var n=t(71354),a=t.n(n),l=t(76314),c=t.n(l)()(a());c.push([e.id,".node-picker[data-v-7a2b1a1d] {\n  display: flex;\n  align-items: center;\n  height: 64px;\n}\n.node-picker__icon[data-v-7a2b1a1d], .node-picker__preview[data-v-7a2b1a1d] {\n  height: 64px;\n  width: 64px;\n  margin: 0 var(--secondary-margin);\n  display: block;\n  flex: 0 0 64px;\n}\n.node-picker__icon[data-v-7a2b1a1d] {\n  color: var(--color-text-maxcontrast);\n}\n.node-picker__icon.folder-icon[data-v-7a2b1a1d] {\n  color: var(--color-primary-element);\n}\n.node-picker__preview[data-v-7a2b1a1d] {\n  overflow: hidden;\n  border-radius: calc(var(--border-radius) * 2);\n  object-fit: cover;\n}\n.node-picker__desc[data-v-7a2b1a1d] {\n  display: flex;\n  flex-direction: column;\n  min-width: 0;\n}\n.node-picker__desc span[data-v-7a2b1a1d] {\n  white-space: nowrap;\n}\n.node-picker__value--bold[data-v-7a2b1a1d] {\n  font-weight: bold;\n}.node-picker__wrapper[data-v-dcd77f87]:not(:last-of-type) {\n  border-bottom: 1px solid var(--color-border);\n}\n.node-picker__arrow[data-v-dcd77f87] {\n  justify-self: center;\n  color: var(--color-text-maxcontrast);\n}\n[dir=rtl] .node-picker__arrow[data-v-dcd77f87] {\n  transform: scaleX(-1);\n}[data-v-4a4bdd42] .modal-container__content {\n  display: flex;\n  overflow: visible;\n  flex-direction: column;\n}\n.conflict-picker[data-v-4a4bdd42] {\n  --margin: 36px;\n  --secondary-margin: 18px;\n  --arrow-column: 44px;\n}\n.conflict-picker__header[data-v-4a4bdd42] {\n  position: sticky;\n  z-index: 10;\n  top: 0;\n  padding: 0 var(--margin);\n  padding-bottom: var(--secondary-margin);\n  background-color: var(--color-main-background);\n}\n.conflict-picker__form[data-v-4a4bdd42] {\n  position: relative;\n  overflow: auto;\n  padding: 0 var(--margin);\n  margin-top: calc(-1 * var(--secondary-margin));\n}\n.conflict-picker fieldset[data-v-4a4bdd42] {\n  display: grid;\n  align-items: center;\n  width: 100%;\n  margin-top: calc(var(--secondary-margin) * 1.5);\n  padding-bottom: var(--secondary-margin);\n  grid-template-columns: 1fr var(--arrow-column) 1fr;\n}\n.conflict-picker fieldset[data-v-4a4bdd42] legend {\n  display: flex;\n  align-items: center;\n  grid-column: 1/-1;\n  width: 100%;\n  margin-bottom: calc(var(--secondary-margin) / 2);\n  font-weight: bold;\n}\n.conflict-picker fieldset.conflict-picker__all[data-v-4a4bdd42] {\n  position: sticky;\n  top: 0;\n  margin: 0;\n  padding: var(--secondary-margin) 0;\n  background-image: linear-gradient(to top, transparent, var(--color-main-background-blur) 10%, var(--color-main-background) 15%);\n}\n.conflict-picker fieldset.conflict-picker__all + fieldset[data-v-4a4bdd42] {\n  margin-top: 0;\n}\n.conflict-picker fieldset.conflict-picker__all[data-v-4a4bdd42] label {\n  font-weight: bold;\n}\n.conflict-picker .button-vue--disabled[data-v-4a4bdd42] {\n  cursor: default;\n  opacity: 0.5;\n  filter: saturate(0.7);\n}\n.conflict-picker[data-v-4a4bdd42] .dialog__actions {\n  width: auto;\n  margin-inline: 12px;\n  margin-block-end: calc(var(--default-grid-baseline) * 6);\n}\n.conflict-picker[data-v-4a4bdd42] .dialog__actions span.dialog__actions-separator {\n  margin-left: auto;\n}\n@media screen and (max-width: 768px) {\n.conflict-picker[data-v-4a4bdd42] {\n    --margin: var(--secondary-margin) !important;\n}\n.conflict-picker__description[data-v-4a4bdd42] {\n    display: none !important;\n}\n.conflict-picker fieldset[data-v-4a4bdd42] {\n    grid-template-columns: 1fr !important;\n}\n.conflict-picker fieldset.conflict-picker__all[data-v-4a4bdd42] {\n    position: static;\n}\n.conflict-picker[data-v-4a4bdd42] .node-picker__arrow {\n    display: none;\n}\n}\n@media screen and (max-width: 512px) {\n.conflict-picker[data-v-4a4bdd42] .dialog__actions {\n    flex-wrap: wrap;\n}\n.conflict-picker[data-v-4a4bdd42] .dialog__actions span.dialog__actions-separator {\n    width: 100%;\n}\n}","",{version:3,sources:["webpack://./node_modules/@nextcloud/upload/dist/assets/ConflictPicker-Bf00u2Pe.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,mBAAmB;EACnB,YAAY;AACd;AACA;EACE,YAAY;EACZ,WAAW;EACX,iCAAiC;EACjC,cAAc;EACd,cAAc;AAChB;AACA;EACE,oCAAoC;AACtC;AACA;EACE,mCAAmC;AACrC;AACA;EACE,gBAAgB;EAChB,6CAA6C;EAC7C,iBAAiB;AACnB;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,YAAY;AACd;AACA;EACE,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB,CAAC;EACC,4CAA4C;AAC9C;AACA;EACE,oBAAoB;EACpB,oCAAoC;AACtC;AACA;EACE,qBAAqB;AACvB,CAAC;EACC,aAAa;EACb,iBAAiB;EACjB,sBAAsB;AACxB;AACA;EACE,cAAc;EACd,wBAAwB;EACxB,oBAAoB;AACtB;AACA;EACE,gBAAgB;EAChB,WAAW;EACX,MAAM;EACN,wBAAwB;EACxB,uCAAuC;EACvC,8CAA8C;AAChD;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,wBAAwB;EACxB,8CAA8C;AAChD;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,WAAW;EACX,+CAA+C;EAC/C,uCAAuC;EACvC,kDAAkD;AACpD;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,iBAAiB;EACjB,WAAW;EACX,gDAAgD;EAChD,iBAAiB;AACnB;AACA;EACE,gBAAgB;EAChB,MAAM;EACN,SAAS;EACT,kCAAkC;EAClC,+HAA+H;AACjI;AACA;EACE,aAAa;AACf;AACA;EACE,iBAAiB;AACnB;AACA;EACE,eAAe;EACf,YAAY;EACZ,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,wDAAwD;AAC1D;AACA;EACE,iBAAiB;AACnB;AACA;AACA;IACI,4CAA4C;AAChD;AACA;IACI,wBAAwB;AAC5B;AACA;IACI,qCAAqC;AACzC;AACA;IACI,gBAAgB;AACpB;AACA;IACI,aAAa;AACjB;AACA;AACA;AACA;IACI,eAAe;AACnB;AACA;IACI,WAAW;AACf;
1AACA",sourcesContent:[".node-picker[data-v-7a2b1a1d] {\n  display: flex;\n  align-items: center;\n  height: 64px;\n}\n.node-picker__icon[data-v-7a2b1a1d], .node-picker__preview[data-v-7a2b1a1d] {\n  height: 64px;\n  width: 64px;\n  margin: 0 var(--secondary-margin);\n  display: block;\n  flex: 0 0 64px;\n}\n.node-picker__icon[data-v-7a2b1a1d] {\n  color: var(--color-text-maxcontrast);\n}\n.node-picker__icon.folder-icon[data-v-7a2b1a1d] {\n  color: var(--color-primary-element);\n}\n.node-picker__preview[data-v-7a2b1a1d] {\n  overflow: hidden;\n  border-radius: calc(var(--border-radius) * 2);\n  object-fit: cover;\n}\n.node-picker__desc[data-v-7a2b1a1d] {\n  display: flex;\n  flex-direction: column;\n  min-width: 0;\n}\n.node-picker__desc span[data-v-7a2b1a1d] {\n  white-space: nowrap;\n}\n.node-picker__value--bold[data-v-7a2b1a1d] {\n  font-weight: bold;\n}.node-picker__wrapper[data-v-dcd77f87]:not(:last-of-type) {\n  border-bottom: 1px solid var(--color-border);\n}\n.node-picker__arrow[data-v-dcd77f87] {\n  justify-self: center;\n  color: var(--color-text-maxcontrast);\n}\n[dir=rtl] .node-picker__arrow[data-v-dcd77f87] {\n  transform: scaleX(-1);\n}[data-v-4a4bdd42] .modal-container__content {\n  display: flex;\n  overflow: visible;\n  flex-direction: column;\n}\n.conflict-picker[data-v-4a4bdd42] {\n  --margin: 36px;\n  --secondary-margin: 18px;\n  --arrow-column: 44px;\n}\n.conflict-picker__header[data-v-4a4bdd42] {\n  position: sticky;\n  z-index: 10;\n  top: 0;\n  padding: 0 var(--margin);\n  padding-bottom: var(--secondary-margin);\n  background-color: var(--color-main-background);\n}\n.conflict-picker__form[data-v-4a4bdd42] {\n  position: relative;\n  overflow: auto;\n  padding: 0 var(--margin);\n  margin-top: calc(-1 * var(--secondary-margin));\n}\n.conflict-picker fieldset[data-v-4a4bdd42] {\n  display: grid;\n  align-items: center;\n  width: 100%;\n  margin-top: calc(var(--secondary-margin) * 1.5);\n  padding-bottom: var(--secondary-margin);\n  grid-template-columns: 1fr var(--arrow-column) 1fr;\n}\n.conflict-picker fieldset[data-v-4a4bdd42] legend {\n  display: flex;\n  align-items: center;\n  grid-column: 1/-1;\n  width: 100%;\n  margin-bottom: calc(var(--secondary-margin) / 2);\n  font-weight: bold;\n}\n.conflict-picker fieldset.conflict-picker__all[data-v-4a4bdd42] {\n  position: sticky;\n  top: 0;\n  margin: 0;\n  padding: var(--secondary-margin) 0;\n  background-image: linear-gradient(to top, transparent, var(--color-main-background-blur) 10%, var(--color-main-background) 15%);\n}\n.conflict-picker fieldset.conflict-picker__all + fieldset[data-v-4a4bdd42] {\n  margin-top: 0;\n}\n.conflict-picker fieldset.conflict-picker__all[data-v-4a4bdd42] label {\n  font-weight: bold;\n}\n.conflict-picker .button-vue--disabled[data-v-4a4bdd42] {\n  cursor: default;\n  opacity: 0.5;\n  filter: saturate(0.7);\n}\n.conflict-picker[data-v-4a4bdd42] .dialog__actions {\n  width: auto;\n  margin-inline: 12px;\n  margin-block-end: calc(var(--default-grid-baseline) * 6);\n}\n.conflict-picker[data-v-4a4bdd42] .dialog__actions span.dialog__actions-separator {\n  margin-left: auto;\n}\n@media screen and (max-width: 768px) {\n.conflict-picker[data-v-4a4bdd42] {\n    --margin: var(--secondary-margin) !important;\n}\n.conflict-picker__description[data-v-4a4bdd42] {\n    display: none !important;\n}\n.conflict-picker fieldset[data-v-4a4bdd42] {\n    grid-template-columns: 1fr !important;\n}\n.conflict-picker fieldset.conflict-picker__all[data-v-4a4bdd42] {\n    position: static;\n}\n.conflict-picker[data-v-4a4bdd42] .node-picker__arrow {\n    display: none;\n}\n}\n@media screen and (max-width: 512px) {\n.conflict-picker[data-v-4a4bdd42] .dialog__actions {\n    flex-wrap: wrap;\n}\n.conflict-picker[data-v-4a4bdd42] .dialog__actions span.dialog__actions-separator {\n    width: 100%;\n}\n}"],sourceRoot:""}]);const o=c;t.d(i,["A",0,o])},23462(e,i,t){t.r(i),t.d(i,{default:()=>K});var n=t(85072),a=t.n(n),l=t(97825),c=t.n(l),o=t(77659),r=t.n(o),s=t(55056),d=t.n(s),p=t(10540),A=t.n(p),f=t(41113),m=t.n(f),g=t(79150),h={};h.styleTagTransform=m(),h.setAttributes=d(),h.insert=r().bind(null,"head"),h.domAPI=c(),h.insertStyleElement=A(),a()(g.A,h),g.A&&g.A.locals&&g.A.locals;var u=t(85471),C=t(95674),v=t(36289),b=t(71225),_=t(72424),k=t(32073),w=t(94219),y=t(74095),S=t(63814),x=t(4604);const B={name:"ArrowRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var E=function(){var e=this,i=e._self._c;return i("span",e._b({staticClass:"material-design-icon arrow-right-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[i("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z"}}
1,[e.title?i("title",[e._v(e._s(e.title))]):e._e()])])])},N=[];const z=(0,_.n)(B,E,N,!1,null,null).exports,P={name:"FileIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var F=function(){var e=this,i=e._self._c;return i("span",e._b({staticClass:"material-design-icon file-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[i("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6Z"}},[e.title?i("title",[e._v(e._s(e.title))]):e._e()])])])},I=[];const L=(0,_.n)(P,F,I,!1,null,null).exports,M={name:"FolderIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var D=function(){var e=this,i=e._self._c;return i("span",e._b({staticClass:"material-design-icon folder-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[i("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z"}},[e.title?i("title",[e._v(e._s(e.title))]):e._e()])])])},R=[];const O=(0,_.n)(M,D,R,!1,null,null).exports,q=(0,u.pM)({name:"NodePickerCard",components:{FileSvg:L,FolderSvg:O,NcDateTime:x.A},props:{preview:{type:String,default:null},mtime:{type:Date,default:null},size:{type:Number,default:null},isFolder:{type:Boolean,default:!1},label:{type:String,required:!0},boldDate:{type:Boolean,default:!1},boldSize:{type:Boolean,default:!1}},data:()=>({previewFailed:!1}),computed:{showPreview(){return!!this.preview&&!this.previewFailed},formattedSize(){return this.size?(0,v.v7)(this.size,!0):(0,_.t)("Unknown size")}},watch:{preview(){this.previewFailed=!1}},methods:{t:_.t}});var $=function(){var e=this,i=e._self._c;return e._self._setupProxy,i("span",{staticClass:"node-picker"},[e.showPreview?i("img",{staticClass:"node-picker__preview",attrs:{src:e.preview,alt:"",loading:"lazy"},on:{error:function(i){e.previewFailed=!0}}}):[e.isFolder?i("FolderSvg",{staticClass:"node-picker__icon",attrs:{size:48}}):i("FileSvg",{staticClass:"node-picker__icon",attrs:{size:48}})],i("span",{staticClass:"node-picker__desc"},[e.mtime?i("NcDateTime",{staticClass:"node-picker__mtime",class:{"node-picker__value--bold":e.boldDate},attrs:{timestamp:e.mtime,"relative-time":!1,format:{timeStyle:"short",dateStyle:"medium"}}}):i("span",{staticClass:"node-picker__mtime"},[e._v(" "+e._s(e.t("Last modified date unknown"))+" ")]),i("span",{staticClass:"node-picker__size",class:{"node-picker__value--bold":e.boldSize}},[e._v(" "+e._s(e.formattedSize)+" ")]),i("span",{staticClass:"hidden-visually"},[e._v(e._s(e.label))])],1)],2)},U=[];const W=(0,_.n)(q,$,U,!1,null,"7a2b1a1d").exports,T=(0,u.pM)({name:"NodesPicker",components:{ArrowRight:z,NcCheckboxRadioSwitch:k.A,NodePickerCard:W},props:{incoming:{type:[File,Object],required:!0},existing:{type:Object,required:!0},newSelected:{type:Array,required:!0},oldSelected:{type:Array,required:!0},isSingle:{type:Boolean,default:!1}},data:()=>({asyncPreview:null,incomingFile:null}),computed:{isEnoughSelected(){return this.isChecked(this.incoming,this.newSelected)||this.isChecked(this.existing,this.oldSelected)},incomingPreview(){return this.incomingFile?this.previewUrl(this.incomingFile)??this.asyncPreview:null},incomingLastModified(){return this.incomingFile?this.lastModified(this.incomingFile):null},incomingSize(){return this.incomingFile?.size??null},existingPreview(){return this.previewUrl(this.existing)},existingLastModified(){return this.lastModified(this.existing)},existingSize(){return this.existing.size??null},incomingNewer(){return this.isBigger(this.incomingLastModified?.getTime(),this.existingLastModified?.getTime())},existingNewer(){return this.isBigger(this.existingLastModified?.getTime(),this.incomingLastModified?.getTime())},incomingLarger(){return this.isBigger(this.incomingSize,this.existingSize)},existingLarger(){return this.isBigger(this.existingSize,this.incomingSize)}},watch:{incoming:{immediate:!0,async handler(){this.incoming instanceof File?this.incomingFile=this.incoming:(0,_.a)(this.incoming)?this.incomingFile=await new Promise((e,i)=>this.incoming.file(e,i)):this.incomingFile=null}}},methods:{isBigger:(e,i)=>!(!e||!i)&&e>i,lastModified:e=>(e instanceof File?new Date(e.lastModified):e.mtime)??null,previewUrl(e){if(e instanceof File)return this.previewImage(e).then(e=>{this.asyncPreview=e}),null;if(e.type===v.pt.Folder)return null;try{const i=e.attributes.previewUrl||(0,S.Jv)("/core/preview?fileId={fileid}
1",{fileid:e.fileid}),t=new URL(window.location.origin+i);t.searchParams.set("x",64..toString()),t.searchParams.set("y",64..toString()),t.searchParams.set("mimeFallback","true");const n=e.attributes?.etag||"";return t.searchParams.set("v",n.slice(0,6)),t.href}catch(e){return null}},isFolder:e=>(0,_.i)(e)?e.isDirectory:e.type===v.pt.Folder||"httpd/unix-directory"===e.type,isChecked:(e,i)=>i.includes(e),onUpdateIncomingChecked(e){e?this.$emit("update:newSelected",[this.incoming,...this.newSelected]):this.$emit("update:newSelected",this.newSelected.filter(e=>e!==this.incoming))},onUpdateExistingChecked(e){e?this.$emit("update:oldSelected",[this.existing,...this.oldSelected]):this.$emit("update:oldSelected",this.oldSelected.filter(e=>e!==this.existing))},previewImage:async e=>new Promise(i=>{if(e instanceof File&&e.type.startsWith("image/")){const t=new FileReader;t.onload=async t=>{const n=t?.target?.result;if(n instanceof ArrayBuffer){const t=new Blob([n],{type:e.type}),a=URL.createObjectURL(t);return void i(a)}i(null)},t.readAsArrayBuffer(e)}else i(null)}),t:_.t}});var V=function(){var e=this,i=e._self._c;return e._self._setupProxy,i("fieldset",{staticClass:"node-picker__wrapper",attrs:{"data-cy-conflict-picker-fieldset":e.existing.basename}},[i("legend",[e._v(e._s(e.existing.basename))]),e.isSingle?i("NodePickerCard",{attrs:{preview:e.existingPreview,mtime:e.existingLastModified,size:e.existingSize,"is-folder":e.isFolder(e.existing),label:e.t("Existing version"),"bold-date":e.existingNewer,"bold-size":e.existingLarger}}):i("NcCheckboxRadioSwitch",{attrs:{checked:e.isChecked(e.existing,e.oldSelected),required:!e.isEnoughSelected,"data-cy-conflict-picker-input-existing":e.existing.basename},on:{"update:checked":e.onUpdateExistingChecked}},[i("NodePickerCard",{attrs:{preview:e.existingPreview,mtime:e.existingLastModified,size:e.existingSize,"is-folder":e.isFolder(e.existing),label:e.t("Existing version"),"bold-date":e.existingNewer,"bold-size":e.existingLarger}})],1),i("ArrowRight",{staticClass:"node-picker__arrow",attrs:{size:20}}),e.isSingle?i("NodePickerCard",{attrs:{preview:e.incomingPreview,mtime:e.incomingLastModified,size:e.incomingSize,"is-folder":e.isFolder(e.incoming),label:e.t("New version"),"bold-date":e.incomingNewer,"bold-size":e.incomingLarger}}):i("NcCheckboxRadioSwitch",{attrs:{checked:e.isChecked(e.incoming,e.newSelected),required:!e.isEnoughSelected,"data-cy-conflict-picker-input-incoming":e.existing.basename},on:{"update:checked":e.onUpdateIncomingChecked}},[i("NodePickerCard",{attrs:{preview:e.incomingPreview,mtime:e.incomingLastModified,size:e.incomingSize,"is-folder":e.isFolder(e.incoming),label:e.t("New version"),"bold-date":e.incomingNewer,"bold-size":e.incomingLarger}})],1)],1)},j=[];const H=(0,_.n)(T,V,j,!1,null,"dcd77f87").exports,Y=(0,u.pM)({name:"ConflictPicker",components:{ArrowRight:z,NcButton:y.A,NcCheckboxRadioSwitch:k.A,NcDialog:w.A,NodesPicker:H},props:{dirname:{type:String,default:""},content:{type:Array,required:!0},conflicts:{type:Array,required:!0},recursiveUpload:{type:Boolean,default:!1}},emits:["cancel","submit"],setup:()=>({blockedTitle:(0,_.t)("You need to select at least one version of each file to continue.")}),data:()=>({files:[],opened:!0,newSelected:[],oldSelected:[]}),computed:{name(){return this.isSingle?(0,_.t)("Select file to keep"):(0,_.t)("Select files to keep")},isSingle(){return 1===this.conflicts.length},folderName(){return(0,b.P8)(this.dirname??"")||(0,_.t)("All files")},descriptionParts(){const e=this.isSingle?(0,_.t)("An item with the same name already exists in {dirname}."):(0,_.t)("Items with the same name already exist in {dirname}, select which to keep."),[i,t=""]=e.split("{dirname}");return{before:i,after:t}},skipButtonLabel(){return(0,_.b)("Skip {count} file","Skip {count} files",this.conflicts.length,{count:this.conflicts.length})},selectAllNewBind(){const e=this.isNoneNewSelected||this.isSomeNewSelected?this.t("Select all"):this.t("Unselect all");return{"aria-label":e,checked:this.isAllNewSelected,indeterminate:this.isSomeNewSelected,title:e}},isAllNewSelected(){return this.newSelected.length===this.conflicts.length},isNoneNewSelected(){return 0===this.newSelected.length},isSomeNewSelected(){return!this.isAllNewSelected&&!this.isNoneNewSelected},selectAllOldBind(){const e=this.isNoneOldSelected||this.isSomeOldSelected?this.t("Select all"):this.t("Unselect all");return{"aria-label":e,checked:this.isAllOldSelected,indeterminate:this.isSomeOldSelected,title:e}},isAllOldSelected(){return this.oldSelected.length===this.files.length},isNoneOldSelected(){return 0===this.oldSelected.length},isSomeOldSelected(){return!this.isAllOldSelected&&!this.isNoneOldSelected},isEnoughSelected(){return!(!this.isAllOldSelected&&!this.isAllNewSelected)||this.$refs?.nodesPicker?.every?.(e=>e.isEnoughSelected)}},mounted(){if(this.files=this.conflicts.map(e=>{const i=e instanceof File||(0,_.i)(e)?e.name:e.basename;return this.content.find(e=>e.basename===i)}
1).filter(Boolean),0===this.conflicts.length||0===this.files.length){const e=new Error("ConflictPicker: files and conflicts must not be empty");throw this.onCancel(e),e}if(this.conflicts.length!==this.files.length){const e=new Error("ConflictPicker: files and conflicts must have the same length. Make sure you filter out non conflicting files from the conflicts array.");throw this.onCancel(e),e}this.newSelected=this.conflicts,_.l.debug("ConflictPicker initialised",{files:this.files,conflicts:this.conflicts,content:this.content})},methods:{onCancel(e){this.opened=!1,this.$emit("cancel",e)},onSkip(){_.l.debug("Conflict skipped. Ignoring all conflicting files"),this.opened=!1,this.$emit("submit",{selected:[],renamed:[]})},onReplace(){this.newSelected=this.conflicts,this.oldSelected=[],this.onSubmit()},onKeepBoth(){this.newSelected=this.conflicts,this.oldSelected=this.files,this.onSubmit()},onSubmit(){if(!this.isEnoughSelected)return this.scrollValidityInputIntoView(),this.$refs.form.reportValidity(),void(0,C.Qg)(this.blockedTitle);const e=this.oldSelected.map(e=>e.basename),i=this.content.map(e=>e.basename),t=[],n=this.newSelected.filter(i=>{const t=i instanceof File||(0,_.i)(i)?i.name:i.basename;return e.includes(t)});n.length>0&&n.forEach(e=>{const n=e instanceof File||(0,_.i)(e)?e.name:e.basename,a=(0,v.E6)(n,i);if(e instanceof File||(0,_.i)(e))return Object.defineProperty(e,"name",{value:a}),void t.push(e);e.rename(a),t.push(e)});const a=this.newSelected.filter(i=>{const t=i instanceof File||(0,_.i)(i)?i.name:i.basename;return!e.includes(t)&&!n.includes(i)});_.l.debug("Conflict resolved",{selected:a,renamed:t}),this.opened=!1,this.$emit("submit",{selected:a,renamed:t})},scrollValidityInputIntoView(){const e='.checkbox-radio-switch input[type="checkbox"]';
1Array.from(this.$el.querySelectorAll(e)).forEach(e=>e?.setCustomValidity?.(""));const i=this.$el.querySelector(e+":invalid");i&&(i.setCustomValidity(this.blockedTitle),i.scrollIntoView({behavior:"instant",block:"center"}))},onSelectAllNew(e){e?(_.l.debug("Selected all new files"),this.newSelected=this.conflicts):(_.l.debug("Cleared new selection"),this.newSelected=[])},onSelectAllOld(e){e?(_.l.debug("Selected all existing files"),this.oldSelected=this.files):(_.l.debug("Cleared old selection"),this.oldSelected=[])},t:_.t}});var X=function(){var e=this,i=e._self._c;return e._self._setupProxy,i("NcDialog",{staticClass:"conflict-picker",attrs:{"can-close":"","data-cy-conflict-picker":"","close-on-click-outside":!1,show:e.opened,name:e.name,size:"large"},on:{closing:e.onCancel},scopedSlots:e._u([{key:"actions",fn:function(){return[i("NcButton",{attrs:{"aria-label":e.t("Cancel"),title:e.t("Cancel the entire operation"),"data-cy-conflict-picker-cancel":"",type:"tertiary"},on:{click:e.onCancel}},[e._v(" "+e._s(e.t("Cancel"))+" ")]),i("span",{staticClass:"dialog__actions-separator"}),e.isSingle?[i("NcButton",{attrs:{"aria-label":e.t("Keep both"),"data-cy-conflict-picker-keep-both":"",type:"secondary"},on:{click:e.onKeepBoth}},[e._v(" "+e._s(e.t("Keep both"))+" ")]),i("NcButton",{attrs:{"aria-label":e.t("Replace"),"data-cy-conflict-picker-submit":"",type:"primary"},on:{click:e.onReplace}},[e._v(" "+e._s(e.t("Replace"))+" ")])]:[i("NcButton",{attrs:{"aria-label":e.skipButtonLabel,"data-cy-conflict-picker-skip":""},on:{click:e.onSkip}},[e._v(" "+e._s(e.skipButtonLabel)+" ")]),i("NcButton",{class:{"button-vue--disabled":!e.isEnoughSelected},attrs:{"aria-label":e.t("Continue"),title:e.isEnoughSelected?"":e.blockedTitle,"data-cy-conflict-picker-submit":"","native-type":"submit",type:"primary"},on:{click:function(i){return i.stopPropagation(),i.preventDefault(),e.onSubmit.apply(null,arguments)}},scopedSlots:e._u([{key:"icon",fn:function(){return[i("ArrowRight",{attrs:{size:20}})]},proxy:!0}])},[e._v(" "+e._s(e.t("Continue"))+" ")])]]},proxy:!0}])},[i("div",{staticClass:"conflict-picker__header"},[i("p",{staticClass:"conflict-picker__description",attrs:{id:"conflict-picker-description"}},[e._v(" "+e._s(e.descriptionParts.before)),i("strong",[e._v(e._s(e.folderName))]),e._v(e._s(e.descriptionParts.after)),i("br"),e.isSingle?e._e():[e._v(" "+e._s(e.t("Existing files and folders will be deleted if not selected. If both are chosen, they will be renamed."))),i("br")],e.recursiveUpload?[e._v(" "+e._s(e.t("When a new folder is selected, the content is written into the existing folder and a recursive conflict resolution is performed."))+" ")]:[e._v(" "+e._s(e.t("When a new folder is selected, any conflicting files within it will also be over
1written."))+" ")]],2)]),i("form",{ref:"form",staticClass:"conflict-picker__form",attrs:{"aria-labelledby":"conflict-picker-description","data-cy-conflict-picker-form":""},on:{submit:function(i){return i.preventDefault(),i.stopPropagation(),e.onSubmit.apply(null,arguments)}}},[e.isSingle?e._e():i("fieldset",{staticClass:"conflict-picker__all",attrs:{"data-cy-conflict-picker-fieldset":"all"}},[i("legend",{staticClass:"hidden-visually"},[e._v(" "+e._s(e.t("Select all checkboxes"))+" ")]),i("NcCheckboxRadioSwitch",e._b({attrs:{"data-cy-conflict-picker-input-existing":"all"},on:{"update:checked":e.onSelectAllOld}},"NcCheckboxRadioSwitch",e.selectAllOldBind,!1),[e._v(" "+e._s(e.t("Existing files"))+" ")]),i("span"),i("NcCheckboxRadioSwitch",e._b({attrs:{"data-cy-conflict-picker-input-incoming":"all"},on:{"update:checked":e.onSelectAllNew}},"NcCheckboxRadioSwitch",e.selectAllNewBind,!1),[e._v(" "+e._s(e.t("New files"))+" ")])],1),e._l(e.files,function(t,n){return i("NodesPicker",{key:t.fileid,ref:"nodesPicker",refInFor:!0,attrs:{incoming:e.conflicts[n],existing:e.files[n],"is-single":e.isSingle,"new-selected":e.newSelected,"old-selected":e.oldSelected},on:{"update:newSelected":function(i){e.newSelected=i},"update:new-selected":function(i){e.newSelected=i},"update:oldSelected":function(i){e.oldSelected=i},"update:old-selected":function(i){e.oldSelected=i}}})})],2)])},Z=[];const K=(0,_.n)(Y,X,Z,!1,null,"4a4bdd42").exports}}]);
2//# sourceMappingURL=3462-3462.js.map?v=80282b94e1980e01e226

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.