12 |
- "use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[6075],{74159:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(71354),c=i.n(n),l=i(76314),a=i.n(l)()(c());a.push([e.id,".node-picker__wrapper[data-v-f85db9fe]:not(:last-of-type) {\n border-bottom: 1px solid var(--color-border);\n}\n.node-picker[data-v-f85db9fe] {\n display: flex;\n align-items: center;\n height: 64px;\n}\n.node-picker__icon[data-v-f85db9fe],\n.node-picker__preview[data-v-f85db9fe] {\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-f85db9fe] {\n color: var(--color-text-maxcontrast);\n}\n.node-picker__icon.folder-icon[data-v-f85db9fe] {\n color: var(--color-primary-element);\n}\n.node-picker__preview[data-v-f85db9fe] {\n overflow: hidden;\n border-radius: calc(var(--border-radius) * 2);\n background-position: center;\n background-size: cover;\n}\n.node-picker__desc[data-v-f85db9fe] {\n display: flex;\n flex-direction: column;\n}\n.node-picker__desc span[data-v-f85db9fe] {\n white-space: nowrap;\n}\n[data-v-12c4204f] .modal-container__content {\n display: flex;\n overflow: visible;\n flex-direction: column;\n}\n.conflict-picker[data-v-12c4204f] {\n --margin: 36px;\n --secondary-margin: 18px;\n}\n.conflict-picker__header[data-v-12c4204f] {\n position: sticky;\n z-index: 10;\n top: 0;\n padding: 0 var(--margin);\n padding-bottom: var(--secondary-margin);\n}\n.conflict-picker__form[data-v-12c4204f] {\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-12c4204f] {\n display: grid;\n width: 100%;\n margin-top: calc(var(--secondary-margin) * 1.5);\n padding-bottom: var(--secondary-margin);\n grid-template-columns: 1fr 1fr;\n}\n.conflict-picker fieldset[data-v-12c4204f] legend {\n display: flex;\n align-items: center;\n width: 100%;\n margin-bottom: calc(var(--secondary-margin) / 2);\n}\n.conflict-picker fieldset.conflict-picker__all[data-v-12c4204f] {\n position: sticky;\n top: 0;\n margin: 0;\n padding: var(--secondary-margin) 0;\n background-image:\n linear-gradient(\n to top,\n transparent,\n var(--color-main-background-blur) 10%,\n var(--color-main-background) 15%);\n}\n.conflict-picker fieldset.conflict-picker__all + fieldset[data-v-12c4204f] {\n margin-top: 0;\n}\n.conflict-picker fieldset.conflict-picker__all[data-v-12c4204f] label {\n font-weight: 700;\n}\n.conflict-picker .button-vue--disabled[data-v-12c4204f] {\n cursor: default;\n opacity: .5;\n filter: saturate(.7);\n}\n.conflict-picker[data-v-12c4204f] .dialog__actions {\n width: auto;\n margin-inline: 12px;\n}\n.conflict-picker[data-v-12c4204f] .dialog__actions span.dialog__actions-separator {\n margin-left: auto;\n}\n@media screen and (max-width: 768px) {\n .conflict-picker[data-v-12c4204f] {\n --margin: var(--secondary-margin) !important;\n }\n .conflict-picker__description[data-v-12c4204f] {\n display: none !important;\n }\n .conflict-picker fieldset[data-v-12c4204f] {\n grid-template-columns: 1fr !important;\n }\n .conflict-picker fieldset.conflict-picker__all[data-v-12c4204f] {\n position: static;\n }\n}\n@media screen and (max-width: 512px) {\n .conflict-picker[data-v-12c4204f] .dialog__actions {\n flex-wrap: wrap;\n }\n .conflict-picker[data-v-12c4204f] .dialog__actions span.dialog__actions-separator {\n width: 100%;\n }\n}\n","",{version:3,sources:["webpack://./node_modules/@nextcloud/upload/dist/assets/ConflictPicker-BVcoqXxT.css"],names:[],mappings:"AAAA;EACE,4CAA4C;AAC9C;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,YAAY;AACd;AACA;;EAEE,YAAY;EACZ,WAAW;EACX,iCAAiC;EACjC,cAAc;EACd,cAAc;AAChB;AACA;EACE,oCAAoC;AACtC;AACA;EACE,mCAAmC;AACrC;AACA;EACE,gBAAgB;EAChB,6CAA6C;EAC7C,2BAA2B;EAC3B,sBAAsB;AACxB;AACA;EACE,aAAa;EACb,sBAAsB;AACxB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,iBAAiB;EACjB,sBAAsB;AACxB;AACA;EACE,cAAc;EACd,wBAAwB;AAC1B;AACA;EACE,gBAAgB;EAChB,WAAW;EACX,MAAM;EACN,wBAAwB;EACxB,uCAAuC;AACzC;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,wBAAwB;EACxB,8CAA8C;AAChD;AACA;EACE,aAAa;EACb,WAAW;EACX,+CAA+C;EAC/C,uCAAuC;EACvC,8BAA8B;AAChC;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,WAAW;EACX,gDAAgD;AAClD;AACA;EACE,gBAAgB;EAChB,MAAM;EACN,SAAS;EACT,kCAAkC;EAClC;;;;;uCAKqC;AACvC;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,WAAW;EACX,oBAAoB;AACtB;AACA;EACE,WAAW;EACX,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;AACA;EACE;IACE,4CAA4C;EAC9C;EACA;IACE,wBAAwB;EAC1B;EACA;IACE,qCAAqC;EACvC;EACA;IACE,gBAAgB;EAClB;AACF;AACA;EACE;IACE,eAAe;EACjB;EACA;IACE,WAAW;EACb;AACF",sourcesContent:[".node-picker__wrapper[data-v-f85db9fe]:not(:last-of-type) {\n border-bottom: 1px solid var(--color-border);\n}\n.node-picker[data-v-f85db9fe] {\n display: flex;\n align-items: center;\n height: 64px;\n}\n.node-picker__icon[data-v-f85db9fe],\n.node-picker__preview[data-v-f85db9fe] {\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-f85db9fe] {\n color: var(--color-text-maxcontrast);\n}\n.node-picker__icon.folder-icon[data-v-f85db9fe] {\n color: var(--color-primary-element);\n}\n.node-picker__preview[data-v-f85db9fe] {\n overflow: hidden;\n border-radius: calc(var(--border-radius) * 2);\n background-position: center;\n background-size: cover;\n}\n.node-picker__desc[data-v-f85db9fe] {\n display: flex;\n flex-direction: column;\n}\n.node-picker__desc span[data-v-f85db9fe] {\n white-space: nowrap;\n}\n[data-v-12c4204f] .modal-container__content {\n display: flex;\n overflow: visible;\n flex-direction: column;\n}\n.conflict-picker[data-v-12c4204f] {\n --margin: 36px;\n --secondary-margin: 18px;\n}\n.conflict-picker__header[data-v-12c4204f] {\n position: sticky;\n z-index: 10;\n top: 0;\n padding: 0 var(--margin);\n padding-bottom: var(--secondary-margin);\n}\n.conflict-picker__form[data-v-12c4204f] {\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-12c4204f] {\n display: grid;\n width: 100%;\n margin-top: calc(var(--secondary-margin) * 1.5);\n padding-bottom: var(--secondary-margin);\n grid-template-columns: 1fr 1fr;\n}\n.conflict-picker fieldset[data-v-12c4204f] legend {\n display: flex;\n align-items: center;\n width: 100%;\n margin-bottom: calc(var(--secondary-margin) / 2);\n}\n.conflict-picker fieldset.conflict-picker__all[data-v-12c4204f] {\n position: sticky;\n top: 0;\n margin: 0;\n padding: var(--secondary-margin) 0;\n background-image:\n linear-gradient(\n to top,\n transparent,\n var(--color-main-background-blur) 10%,\n var(--color-main-background) 15%);\n}\n.conflict-picker fieldset.conflict-picker__all + fieldset[data-v-12c4204f] {\n margin-top: 0;\n}\n.conflict-picker fieldset.conflict-picker__all[data-v-12c4204f] label {\n font-weight: 700;\n}\n.conflict-picker .button-vue--disabled[data-v-12c4204f] {\n cursor: default;\n opacity: .5;\n filter: saturate(.7);\n}\n.conflict-picker[data-v-12c4204f] .dialog__actions {\n width: auto;\n margin-inline: 12px;\n}\n.conflict-picker[data-v-12c4204f] .dialog__actions span.dialog__actions-separator {\n margin-left: auto;\n}\n@media screen and (max-width: 768px) {\n .conflict-picker[data-v-12c4204f] {\n --margin: var(--secondary-margin) !important;\n }\n .conflict-picker__description[data-v-12c4204f] {\n display: none !important;\n }\n .conflict-picker fieldset[data-v-12c4204f] {\n grid-template-columns: 1fr !important;\n }\n .conflict-picker fieldset.conflict-picker__all[data-v-12c4204f] {\n position: static;\n }\n}\n@media screen and (max-width: 512px) {\n .conflict-picker[data-v-12c4204f] .dialog__actions {\n flex-wrap: wrap;\n }\n .conflict-picker[data-v-12c4204f] .dialog__actions span.dialog__actions-separator {\n width: 100%;\n }\n}\n"],sourceRoot:""}]);const s=a},56075:(e,t,i)=>{i.r(t),i.d(t,{default:()=>J});var n=i(85072),c=i.n(n),l=i(97825),a=i.n(l),s=i(77659),o=i.n(s),r=i(55056),d=i.n(r),f=i(10540),p=i.n(f),A=i(41113),m=i.n(A),u=i(74159),h={};h.styleTagTransform=m(),h.setAttributes=d(),h.insert=o().bind(null,"head"),h.domAPI=a(),h.insertStyleElement=p(),c()(u.A,h),u.A&&u.A.locals&&u.A.locals;var g=i(43627),C=i(85471),_=i(35810),v=i(85168),k=i(41261),b=i(32073),w=i(94219),y=i(9518),S=i(88164),x=i(4604);const E={name:"ArrowRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var B=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon arrow-right-icon",attrs:{"aria-hidden":!e.title||null,"aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},N=[];const z=(0,k.n)(E,B,N,!1,null,null,null,null).exports,L={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var P=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon close-icon",attrs:{"aria-hidden":!e.title||null,"aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("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"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},F=[];const I=(0,k.n)(L,P,F,!1,null,null,null,null).exports,M={name:"FileIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var $=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon file-icon",attrs:{"aria-hidden":!e.title||null,"aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("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?t("title",[e._v(e._s(e.title))]):e._e()])])])},O=[];const W=(0,k.n)(M,$,O,!1,null,null,null,null).exports,q={name:"FolderIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var R=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon folder-icon",attrs:{"aria-hidden":!e.title||null,"aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("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?t("title",[e._v(e._s(e.title))]):e._e()])])])},U=[];const V=(0,k.n)(q,R,U,!1,null,null,null,null).exports,D=(0,C.pM)({name:"NodesPicker",components:{FileSvg:W,FolderSvg:V,NcCheckboxRadioSwitch:b.A,NcDateTime:x.A},props:{incoming:{type:[File,Object],required:!0},existing:{type:Object,required:!0},newSelected:{type:Array,required:!0},oldSelected:{type:Array,required:!0}},data:()=>({asyncPreview:null}),computed:{isEnoughSelected(){return this.isChecked(this.incoming,this.newSelected)||this.isChecked(this.existing,this.oldSelected)},incomingPreview(){return this.asyncPreview?this.asyncPreview:this.previewUrl(this.incoming)},existingPreview(){return this.previewUrl(this.existing)},incomingLastModified(){return this.lastModified(this.incoming)},existingLastModified(){return this.lastModified(this.existing)}},methods:{lastModified:e=>(e instanceof File?new Date(e.lastModified):e.mtime)??null,size:e=>e.size?(0,_.v7)(e.size,!0):(0,k.t)("Unknown size"),previewUrl(e){if(e instanceof File)this.previewImage(e).then((e=>{this.asyncPreview=e}));else{if(e.type===_.pt.Folder)return null;try{const t=e.attributes.previewUrl||(0,S.Jv)("/core/preview?fileId={fileid}",{fileid:e.fileid}),i=new URL(window.location.origin+t);return i.searchParams.set("x",64..toString()),i.searchParams.set("y",64..toString()),i.searchParams.set("mimeFallback","true"),i.href}catch{return null}}},isFolder:e=>e.type===_.pt.Folder||"httpd/unix-directory"===e.type,isChecked:(e,t)=>t.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((t=>{if(e.type.startsWith("image/")){const i=new FileReader;i.onload=async i=>{const n=i?.target?.result;if(n instanceof ArrayBuffer){const i=new Blob([n],{type:e.type}),c=URL.createObjectURL(i);t(c)}else t(null)},i.readAsArrayBuffer(e)}})),t:k.t}});var T=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("fieldset",{staticClass:"node-picker__wrapper",attrs:{"data-cy-conflict-picker-fieldset":e.existing.basename}},[t("legend",[e._v(e._s(e.existing.basename))]),t("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}},[t("span",{staticClass:"node-picker node-picker--incoming"},[e.incomingPreview?t("img",{staticClass:"node-picker__preview",attrs:{src:e.incomingPreview,alt:e.t("Preview image"),loading:"lazy"}}):[e.isFolder(e.existing)?t("FolderSvg",{staticClass:"node-picker__icon",attrs:{size:48}}):t("FileSvg",{staticClass:"node-picker__icon",attrs:{size:48}})],t("span",{staticClass:"node-picker__desc"},[t("span",{staticClass:"node-picker__name"},[e._v(e._s(e.t("New version")))]),e.incomingLastModified?t("NcDateTime",{staticClass:"node-picker__mtime",attrs:{timestamp:e.incomingLastModified,"relative-time":!1,format:{timeStyle:"short",dateStyle:"medium"}}}):t("span",{staticClass:"node-picker__mtime"},[e._v(" "+e._s(e.t("Last modified date unknown"))+" ")]),t("span",{staticClass:"node-picker__size"},[e._v(e._s(e.size(e.incoming)))])],1)],2)]),t("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}},[t("span",{staticClass:"node-picker node-picker--existing"},[e.existingPreview?t("img",{staticClass:"node-picker__preview",attrs:{src:e.existingPreview,alt:e.t("Preview image"),loading:"lazy"}}):[e.isFolder(e.existing)?t("FolderSvg",{staticClass:"node-picker__icon",attrs:{size:48}}):t("FileSvg",{staticClass:"node-picker__icon",attrs:{size:48}})],t("span",{staticClass:"node-picker__desc"},[t("span",{staticClass:"node-picker__name"},[e._v(e._s(e.t("Existing version")))]),e.existingLastModified?t("NcDateTime",{staticClass:"node-picker__mtime",attrs:{timestamp:e.existingLastModified,"relative-time":!1,format:{timeStyle:"short",dateStyle:"medium"}}}):t("span",{staticClass:"node-picker__mtime"},[e._v(" "+e._s(e.t("Last modified date unknown"))+" ")]),t("span",{staticClass:"node-picker__size"},[e._v(e._s(e.size(e.existing)))])],1)],2)])],1)},j=[];const H=(0,k.n)(D,T,j,!1,null,"f85db9fe",null,null).exports,X=(0,C.pM)({name:"ConflictPicker",components:{ArrowRight:z,Close:I,NcButton:y.A,NcCheckboxRadioSwitch:b.A,NcDialog:w.A,NodesPicker:H},props:{dirname:{type:String,default:""},content:{type:Array,required:!0},conflicts:{type:Array,required:!0}},emits:["cancel","submit"],data:()=>({files:[],opened:!0,blockedTitle:(0,k.t)("You need to select at least one version of each file to continue."),newSelected:[],oldSelected:[]}),computed:{name(){return""!==this?.dirname?.trim?.()?(0,k.a)("{count} file conflict in {dirname}","{count} file conflicts in {dirname}",this.conflicts.length,{count:this.conflicts.length,dirname:this.dirname}):(0,k.a)("{count} file conflict","{count} files conflict",this.conflicts.length,{count:this.conflicts.length})},skipButtonLabel(){return(0,k.a)("Skip this 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 t=e instanceof File?e.name:e.basename;return this.content.find((e=>e.basename===t))})).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}k.l.debug("ConflictPicker initialised",{files:this.files,conflicts:this.conflicts,content:this.content})},methods:{onCancel(e){this.opened=!1,this.$emit("cancel",e)},onSkip(){k.l.debug("Conflict skipped. Ignoring all conflicting files"),this.opened=!1,this.$emit("submit",{selected:[],renamed:[]})},onSubmit(){if(!this.isEnoughSelected)return this.scrollValidityInputIntoView(),this.$refs.form.reportValidity(),void(0,v.Qg)(this.blockedTitle);const e=this.oldSelected.map((e=>e.basename)),t=this.content.map((e=>e.basename)),i=[],n=this.newSelected.filter((t=>{const i=t instanceof File?t.name:t.basename;return e.includes(i)}));n.length>0&&n.forEach((e=>{const n=e instanceof File?e.name:e.basename,c=this.getUniqueName(n,t);if(e instanceof File)return Object.defineProperty(e,"name",{value:c}),void i.push(e);e.rename(c),i.push(e)}));const c=this.newSelected.filter((t=>{const i=t instanceof File?t.name:t.basename;return!e.includes(i)&&!n.includes(t)}));k.l.debug("Conflict resolved",{selected:c,renamed:i}),this.opened=!1,this.$emit("submit",{selected:c,renamed:i})},getUniqueName(e,t){let i=e,n=1;for(;t.includes(i);){const t=(0,g.extname)(e);i=`${(0,g.basename)(e,t)} (${n++})${t}`}return i},scrollValidityInputIntoView(){const e='.checkbox-radio-switch input[type="checkbox"]';[...this.$el.querySelectorAll(e)].forEach((e=>e?.setCustomValidity?.("")));const t=this.$el.querySelector(e+":invalid");t&&(t.setCustomValidity(this.blockedTitle),t.scrollIntoView({behavior:"instant",block:"center"}))},onSelectAllNew(e){e?(k.l.debug("Selected all new files"),this.newSelected=this.conflicts):(k.l.debug("Cleared new selection"),this.newSelected=[])},onSelectAllOld(e){e?(k.l.debug("Selected all existing files"),this.oldSelected=this.files):(k.l.debug("Cleared old selection"),this.oldSelected=[])},t:k.t}});var Y=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("NcDialog",{staticClass:"conflict-picker",attrs:{"data-cy-conflict-picker":"","close-on-click-outside":!1,"can-close":!0,show:e.opened,name:e.name,size:"large"},on:{closing:e.onCancel},scopedSlots:e._u([{key:"actions",fn:function(){return[t("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},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Close",{attrs:{size:20}})]},proxy:!0}])},[e._v(" "+e._s(e.t("Cancel"))+" ")]),t("span",{staticClass:"dialog__actions-separator"}),t("NcButton",{attrs:{"aria-label":e.skipButtonLabel,"data-cy-conflict-picker-skip":""},on:{click:e.onSkip},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Close",{attrs:{size:20}})]},proxy:!0}])},[e._v(" "+e._s(e.skipButtonLabel)+" ")]),t("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(t){return t.stopPropagation(),t.preventDefault(),e.onSubmit.apply(null,arguments)}},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ArrowRight",{attrs:{size:20}})]},proxy:!0}])},[e._v(" "+e._s(e.t("Continue"))+" ")])]},proxy:!0}])},[t("div",{staticClass:"conflict-picker__header"},[t("p",{staticClass:"conflict-picker__description",attrs:{id:"conflict-picker-description"}},[e._v(" "+e._s(e.t("Which files do you want to keep?"))),t("br"),e._v(" "+e._s(e.t("If you select both versions, the copied file will have a number added to its name."))),t("br"),e._v(" "+e._s(e.t("When an incoming folder is selected, any conflicting files within it will also be overwritten."))+" ")])]),t("form",{ref:"form",staticClass:"conflict-picker__form",attrs:{"aria-labelledby":"conflict-picker-description","data-cy-conflict-picker-form":""},on:{submit:function(t){return t.preventDefault(),t.stopPropagation(),e.onSubmit.apply(null,arguments)}}},[t("fieldset",{staticClass:"conflict-picker__all",attrs:{"data-cy-conflict-picker-fieldset":"all"}},[t("legend",{staticClass:"hidden-visually"},[e._v(" "+e._s(e.t("Select all checkboxes"))+" ")]),t("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("Select all new files"))+" ")]),t("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("Select all existing files"))+" ")])],1),e._l(e.files,(function(i,n){return t("NodesPicker",{key:i.fileid,ref:"nodesPicker",refInFor:!0,attrs:{incoming:e.conflicts[n],existing:e.files[n],"new-selected":e.newSelected,"old-selected":e.oldSelected},on:{"update:newSelected":function(t){e.newSelected=t},"update:new-selected":function(t){e.newSelected=t},"update:oldSelected":function(t){e.oldSelected=t},"update:old-selected":function(t){e.oldSelected=t}}})}))],2)])},Z=[];const J=(0,k.n)(X,Y,Z,!1,null,"12c4204f",null,null).exports}}]);
- //# sourceMappingURL=6075-6075.js.map?v=f8e1d39004c19c13e598
|