aboutsummaryrefslogtreecommitdiffstats
path: root/dist/federatedfilesharing-vue-settings-personal.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/federatedfilesharing-vue-settings-personal.js')
-rw-r--r--dist/federatedfilesharing-vue-settings-personal.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/dist/federatedfilesharing-vue-settings-personal.js b/dist/federatedfilesharing-vue-settings-personal.js
index 3176cfd2323..9f16085fd5e 100644
--- a/dist/federatedfilesharing-vue-settings-personal.js
+++ b/dist/federatedfilesharing-vue-settings-personal.js
@@ -1,3 +1,2 @@
-/*! For license information please see federatedfilesharing-vue-settings-personal.js.license?v=98c39032739285cb02c2 */
-(()=>{"use strict";var e,r,n,i={40205:(e,r,n)=>{var i=n(85471),o=n(21777),a=n(53334),l=n(85168),s=n(38613),c=n(88837),d=n(9518);const u={name:"TwitterIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var p=n(14486);const f=(0,p.A)(u,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon twitter-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:"M22.46,6C21.69,6.35 20.86,6.58 20,6.69C20.88,6.16 21.56,5.32 21.88,4.31C21.05,4.81 20.13,5.16 19.16,5.36C18.37,4.5 17.26,4 16,4C13.65,4 11.73,5.92 11.73,8.29C11.73,8.63 11.77,8.96 11.84,9.27C8.28,9.09 5.11,7.38 3,4.79C2.63,5.42 2.42,6.16 2.42,6.94C2.42,8.43 3.17,9.75 4.33,10.5C3.62,10.5 2.96,10.3 2.38,10C2.38,10 2.38,10 2.38,10.03C2.38,12.11 3.86,13.85 5.82,14.24C5.46,14.34 5.08,14.39 4.69,14.39C4.42,14.39 4.15,14.36 3.89,14.31C4.43,16 6,17.26 7.89,17.29C6.43,18.45 4.58,19.13 2.56,19.13C2.22,19.13 1.88,19.11 1.54,19.07C3.44,20.29 5.7,21 8.12,21C16,21 20.33,14.46 20.33,8.79C20.33,8.6 20.33,8.42 20.32,8.23C21.16,7.63 21.88,6.87 22.46,6Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports,h={name:"FacebookIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},C=(0,p.A)(h,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon facebook-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 2.04C6.5 2.04 2 6.53 2 12.06C2 17.06 5.66 21.21 10.44 21.96V14.96H7.9V12.06H10.44V9.85C10.44 7.34 11.93 5.96 14.22 5.96C15.31 5.96 16.45 6.15 16.45 6.15V8.62H15.19C13.95 8.62 13.56 9.39 13.56 10.18V12.06H16.34L15.89 14.96H13.56V21.96A10 10 0 0 0 22 12.06C22 6.53 17.5 2.04 12 2.04Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports,g={name:"WebIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},m=(0,p.A)(g,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon web-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:"M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 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()])])])}),[],!1,null,null,null).exports,b={name:"ClipboardIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},v=(0,p.A)(b,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon clipboard-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,3H14.82C14.4,1.84 13.3,1 12,1C10.7,1 9.6,1.84 9.18,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M12,3A1,1 0 0,1 13,4A1,1 0 0,1 12,5A1,1 0 0,1 11,4A1,1 0 0,1 12,3"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports,A={name:"PersonalSettings",components:{NcButton:d.A,NcSettingsSection:c.A,Twitter:f,Facebook:C,Web:m,Clipboard:v},data:()=>({color:(0,s.C)("federatedfilesharing","color"),textColor:(0,s.C)("federatedfilesharing","textColor"),logoPath:(0,s.C)("federatedfilesharing","logoPath"),reference:(0,s.C)("federatedfilesharing","reference"),cloudId:(0,s.C)("federatedfilesharing","cloudId"),docUrlFederated:(0,s.C)("federatedfilesharing","docUrlFederated"),showHtml:!1,isCopied:!1}),computed:{messageWithURL(){return t("federatedfilesharing","Share with me through my #Nextcloud Federated Cloud ID, see {url}",{url:this.reference})},messageWithoutURL:()=>t("federatedfilesharing","Share with me through my #Nextcloud Federated Cloud ID"),shareDiasporaUrl(){return"https://share.diasporafoundation.org/?title=".concat(encodeURIComponent(this.messageWithoutURL),"&url=").concat(encodeURIComponent(this.reference))},shareTwitterUrl(){return"https://twitter.com/intent/tweet?text=".concat(encodeURIComponent(this.messageWithURL))},shareFacebookUrl(){return"https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(this.reference))},logoPathAbsolute(){return window.location.protocol+"//"+window.location.host+this.logoPath},backgroundStyle(){return"padding:10px;background-color:".concat(this.color,";color:").concat(this.textColor,";border-radius:3px;padding-left:4px;")},linkStyle(){return"background-image:url(".concat(this.logoPathAbsolute,");width:50px;height:30px;position:relative;top:8px;background-size:contain;display:inline-block;background-repeat:no-repeat; background-position: center center;")},htmlCode(){return'<a target="_blank" rel="noreferrer noopener" href="'.concat(this.reference,'" style="').concat(this.backgroundStyle,'">\n\t<span style="').concat(this.linkStyle,'"></span>\n\t').concat(t("federatedfilesharing","Share with me via Nextcloud"),"\n</a>")},copyLinkTooltip(){return this.isCopied?t("federatedfilesharing","Cloud ID copied to the clipboard"):t("federatedfilesharing","Copy to clipboard")}},methods:{async copyCloudId(){navigator.clipboard?(await navigator.clipboard.writeText(this.cloudId),this.isCopied=!0,(0,l.Te)(t("federatedfilesharing","Copied!")),this.$refs.clipboard.$el.focus()):(0,l.Qg)(t("federatedfilesharing","Clipboard is not available"))},goTo(t){window.location.href=t}}};var y=n(85072),_=n.n(y),w=n(97825),k=n.n(w),x=n(77659),S=n.n(x),T=n(55056),H=n.n(T),B=n(10540),I=n.n(B),M=n(41113),N=n.n(M),z=n(88858),U={};U.styleTagTransform=N(),U.setAttributes=H(),U.insert=S().bind(null,"head"),U.domAPI=k(),U.insertStyleElement=I(),_()(z.A,U),z.A&&z.A.locals&&z.A.locals;const F=(0,p.A)(A,(function(){var t=this,e=t._self._c;return e("NcSettingsSection",{attrs:{name:t.t("federatedfilesharing","Federated Cloud"),description:t.t("federatedfilesharing","You can share with anyone who uses a Nextcloud server or other Open Cloud Mesh (OCM) compatible servers and services! Just put their Federated Cloud ID in the share dialog. It looks like person@cloud.example.com"),"doc-url":t.docUrlFederated}},[e("p",{staticClass:"cloud-id-text"},[t._v("\n\t\t"+t._s(t.t("federatedfilesharing","Your Federated Cloud ID:"))+"\n\t\t"),e("strong",{attrs:{id:"cloudid"}},[t._v(t._s(t.cloudId))]),t._v(" "),e("NcButton",{ref:"clipboard",staticClass:"clipboard",attrs:{title:t.copyLinkTooltip,"aria-label":t.copyLinkTooltip,type:"tertiary-no-background"},on:{click:function(e){return e.preventDefault(),t.copyCloudId.apply(null,arguments)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Clipboard",{attrs:{size:20}})]},proxy:!0}])})],1),t._v(" "),e("p",{staticClass:"social-button"},[t._v("\n\t\t"+t._s(t.t("federatedfilesharing","Share it so your friends can share files with you:"))),e("br"),t._v(" "),e("NcButton",{on:{click:function(e){return t.goTo(t.shareFacebookUrl)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Facebook",{attrs:{size:20}})]},proxy:!0}])},[t._v("\n\t\t\t"+t._s(t.t("federatedfilesharing","Facebook"))+"\n\t\t\t")]),t._v(" "),e("NcButton",{on:{click:function(e){return t.goTo(t.shareTwitterUrl)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Twitter",{attrs:{size:20}})]},proxy:!0}])},[t._v("\n\t\t\t"+t._s(t.t("federatedfilesharing","Twitter"))+"\n\t\t\t")]),t._v(" "),e("NcButton",{on:{click:function(e){return t.goTo(t.shareDiasporaUrl)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("svg",{attrs:{width:"20",height:"20",viewBox:"-10 -5 1034 1034",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{fill:"currentColor",d:"M502 197q-96 0-96.5 1.5t-1.5 137-1.5 138-2 2.5T266 432.5 132.5 390t-30 94T74 578l232 77q21 8 21 10t-79.5 117.5T168 899t79.5 56.5T328 1011t81-110 82-110 41 55l83 115q43 60 44 60t79.5-58 79-59-76-112.5-76-113.5T795 632.5t129.5-44-28-94T867 400t-128 42-128.5 43-2.5-7.5-1-38.5l-3-108q-4-133-5-133.5t-97-.5z"}})])]},proxy:!0}])},[t._v("\n\t\t\t"+t._s(t.t("federatedfilesharing","Diaspora"))+"\n\t\t\t")]),t._v(" "),e("NcButton",{staticClass:"social-button__website-button",on:{click:function(e){t.showHtml=!t.showHtml}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Web",{attrs:{size:20}})]},proxy:!0}])},[t._v("\n\t\t\t"+t._s(t.t("federatedfilesharing","Add to your website"))+"\n\t\t")])],1),t._v(" "),t.showHtml?[e("p",{staticStyle:{margin:"10px 0"}},[e("a",{style:t.backgroundStyle,attrs:{target:"_blank",rel:"noreferrer noopener",href:t.reference}},[e("span",{style:t.linkStyle}),t._v("\n\t\t\t\t"+t._s(t.t("federatedfilesharing","Share with me via Nextcloud"))+"\n\t\t\t")])]),t._v(" "),e("p",[t._v("\n\t\t\t"+t._s(t.t("federatedfilesharing","HTML Code:"))+"\n\t\t\t"),e("br"),t._v(" "),e("pre",[t._v(t._s(t.htmlCode))])])]:t._e()],2)}),[],!1,null,"4431f6bc",null).exports;n.nc=btoa((0,o.do)()),i.Ay.mixin({methods:{t:a.Tl}}),(new(i.Ay.extend(F))).$mount("#vue-personal-federated")},88858:(t,e,r)=>{r.d(e,{A:()=>l});var n=r(71354),i=r.n(n),o=r(76314),a=r.n(o)()(i());a.push([t.id,".social-button[data-v-4431f6bc]{margin-top:.5rem}.social-button button[data-v-4431f6bc]{display:inline-flex;margin-left:.5rem;margin-top:1rem}.social-button__website-button[data-v-4431f6bc]{width:min(100%,400px) !important}.cloud-id-text[data-v-4431f6bc]{display:flex;align-items:center;flex-wrap:wrap}.cloud-id-text button[data-v-4431f6bc]{display:inline-flex}pre[data-v-4431f6bc]{margin-top:0;white-space:pre-wrap}#cloudid[data-v-4431f6bc]{margin-left:.25rem}","",{version:3,sources:["webpack://./apps/federatedfilesharing/src/components/PersonalSettings.vue"],names:[],mappings:"AACA,gCACC,gBAAA,CACA,uCACC,mBAAA,CACA,iBAAA,CACA,eAAA,CAED,gDACC,gCAAA,CAGF,gCACC,YAAA,CACA,kBAAA,CACA,cAAA,CACA,uCACC,mBAAA,CAGF,qBACC,YAAA,CACA,oBAAA,CAED,0BACC,kBAAA",sourcesContent:["\n.social-button {\n\tmargin-top: 0.5rem;\n\tbutton {\n\t\tdisplay: inline-flex;\n\t\tmargin-left: 0.5rem;\n\t\tmargin-top: 1rem;\n\t}\n\t&__website-button {\n\t\twidth: min(100%, 400px) !important;\n\t}\n}\n.cloud-id-text {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-wrap: wrap;\n\tbutton {\n\t\tdisplay: inline-flex;\n\t}\n}\npre {\n\tmargin-top: 0;\n\twhite-space: pre-wrap;\n}\n#cloudid {\n\tmargin-left: 0.25rem;\n}\n"],sourceRoot:""}]);const l=a}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={id:t,loaded:!1,exports:{}};return i[t].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=i,e=[],a.O=(t,r,n,i)=>{if(!r){var o=1/0;for(d=0;d<e.length;d++){r=e[d][0],n=e[d][1],i=e[d][2];for(var l=!0,s=0;s<r.length;s++)(!1&i||o>=i)&&Object.keys(a.O).every((t=>a.O[t](r[s])))?r.splice(s--,1):(l=!1,i<o&&(o=i));if(l){e.splice(d--,1);var c=n();void 0!==c&&(t=c)}}return t}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[r,n,i]},a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.f={},a.e=t=>Promise.all(Object.keys(a.f).reduce(((e,r)=>(a.f[r](t,e),e)),[])),a.u=t=>t+"-"+t+".js?v="+{1110:"a5d6e6f59aa058840a1e",5455:"3ac95a973131d586425e"}[t],a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r={},n="nextcloud:",a.l=(t,e,i,o)=>{if(r[t])r[t].push(e);else{var l,s;if(void 0!==i)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==n+i){l=u;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.setAttribute("data-webpack",n+i),l.src=t),r[t]=[e];var p=(e,n)=>{l.onerror=l.onload=null,clearTimeout(f);var i=r[t];if(delete r[t],l.parentNode&&l.parentNode.removeChild(l),i&&i.forEach((t=>t(n))),e)return e(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),s&&document.head.appendChild(l)}},a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),a.j=7949,(()=>{var t;a.g.importScripts&&(t=a.g.location+"");var e=a.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=r[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=t})(),(()=>{a.b=document.baseURI||self.location.href;var t={7949:0};a.f.j=(e,r)=>{var n=a.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else{var i=new Promise(((r,i)=>n=t[e]=[r,i]));r.push(n[2]=i);var o=a.p+a.u(e),l=new Error;a.l(o,(r=>{if(a.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;l.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",l.name="ChunkLoadError",l.type=i,l.request=o,n[1](l)}}),"chunk-"+e,e)}},a.O.j=e=>0===t[e];var e=(e,r)=>{var n,i,o=r[0],l=r[1],s=r[2],c=0;if(o.some((e=>0!==t[e]))){for(n in l)a.o(l,n)&&(a.m[n]=l[n]);if(s)var d=s(a)}for(e&&e(r);c<o.length;c++)i=o[c],a.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return a.O(d)},r=self.webpackChunknextcloud=self.webpackChunknextcloud||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})(),a.nc=void 0;var l=a.O(void 0,[4208],(()=>a(40205)));l=a.O(l)})();
-//# sourceMappingURL=federatedfilesharing-vue-settings-personal.js.map?v=98c39032739285cb02c2 \ No newline at end of file
+(()=>{"use strict";var e,t,r,o={83498:(e,t,r)=>{r.d(t,{A:()=>s});var o=r(71354),n=r.n(o),i=r(76314),a=r.n(i)()(n());a.push([e.id,".social-button[data-v-295ec9c5]{margin-top:.5rem}.social-button button[data-v-295ec9c5],.social-button a[data-v-295ec9c5]{display:inline-flex;margin-inline-start:.5rem;margin-top:1rem}.social-button__website-button[data-v-295ec9c5]{width:min(100%,400px) !important}.social-button__icon[data-v-295ec9c5]{height:20px;width:20px;filter:var(--background-invert-if-dark)}.social-button__icon--bright[data-v-295ec9c5]{filter:var(--background-invert-if-bright)}.federated-cloud__cloud-id[data-v-295ec9c5]{max-width:300px}pre[data-v-295ec9c5]{margin-top:0;white-space:pre-wrap}","",{version:3,sources:["webpack://./apps/federatedfilesharing/src/components/PersonalSettings.vue"],names:[],mappings:"AACA,gCACC,gBAAA,CAEA,yEACC,mBAAA,CACA,yBAAA,CACA,eAAA,CAGD,gDACC,gCAAA,CAGD,sCACC,WAAA,CACA,UAAA,CACA,uCAAA,CAEA,8CAEC,yCAAA,CAKH,4CACC,eAAA,CAGD,qBACC,YAAA,CACA,oBAAA",sourcesContent:["\n.social-button {\n\tmargin-top: 0.5rem;\n\n\tbutton, a {\n\t\tdisplay: inline-flex;\n\t\tmargin-inline-start: 0.5rem;\n\t\tmargin-top: 1rem;\n\t}\n\n\t&__website-button {\n\t\twidth: min(100%, 400px) !important;\n\t}\n\n\t&__icon {\n\t\theight: 20px;\n\t\twidth: 20px;\n\t\tfilter: var(--background-invert-if-dark);\n\n\t\t&--bright {\n\t\t\t// Some logos like the Facebook logo have bright color schema\n\t\t\tfilter: var(--background-invert-if-bright);\n\t\t}\n\t}\n}\n\n.federated-cloud__cloud-id {\n\tmax-width: 300px;\n}\n\npre {\n\tmargin-top: 0;\n\twhite-space: pre-wrap;\n}\n"],sourceRoot:""}]);const s=a},95073:(e,t,r)=>{var o=r(85471),n=r(21777),i=r(53334),a=r(85168),s=r(81222),l=r(63814),c=r(88837),d=r(97012),u=r(16879);const h={name:"WebIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var p=r(14486);const f=(0,p.A)(h,(function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon web-icon",attrs:{"aria-hidden":e.title?null:"true","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:"M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])}),[],!1,null,null,null).exports;var g=r(54373),C=r(31773);const b={name:"PersonalSettings",components:{NcButton:d.A,NcInputField:u.A,NcSettingsSection:c.A,IconCheck:g.A,IconClipboard:C.A,IconWeb:f},setup:()=>({t:i.t,cloudId:(0,s.C)("federatedfilesharing","cloudId"),reference:(0,s.C)("federatedfilesharing","reference"),urlFacebookIcon:(0,l.d0)("core","facebook"),urlMastodonIcon:(0,l.d0)("core","mastodon"),urlBlueSkyIcon:(0,l.d0)("core","bluesky"),urlXIcon:(0,l.d0)("core","x")}),data:()=>({color:(0,s.C)("federatedfilesharing","color"),textColor:(0,s.C)("federatedfilesharing","textColor"),logoPath:(0,s.C)("federatedfilesharing","logoPath"),docUrlFederated:(0,s.C)("federatedfilesharing","docUrlFederated"),showHtml:!1,isCopied:!1}),computed:{messageWithURL(){return(0,i.t)("federatedfilesharing","Share with me through my #Nextcloud Federated Cloud ID, see {url}",{url:this.reference})},messageWithoutURL:()=>(0,i.t)("federatedfilesharing","Share with me through my #Nextcloud Federated Cloud ID"),shareMastodonUrl(){return`https://mastodon.social/?text=${encodeURIComponent(this.messageWithoutURL)}&url=${encodeURIComponent(this.reference)}`},shareXUrl(){return`https://x.com/intent/tweet?text=${encodeURIComponent(this.messageWithURL)}`},shareFacebookUrl(){return`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(this.reference)}`},shareBlueSkyUrl(){return`https://bsky.app/intent/compose?text=${encodeURIComponent(this.messageWithURL)}`},logoPathAbsolute(){return window.location.protocol+"//"+window.location.host+this.logoPath},backgroundStyle(){return`padding:10px;background-color:${this.color};color:${this.textColor};border-radius:3px;padding-inline-start:4px;`},linkStyle(){return`background-image:url(${this.logoPathAbsolute});width:50px;height:30px;position:relative;top:8px;background-size:contain;display:inline-block;background-repeat:no-repeat; background-position: center center;`},htmlCode(){return`<a target="_blank" rel="noreferrer noopener" href="${this.reference}" style="${this.backgroundStyle}">\n\t<span style="${this.linkStyle}"></span>\n\t${(0,i.t)("federatedfilesharing","Share with me via Nextcloud")}\n</a>`},copyLinkTooltip(){return this.isCopied?(0,i.t)("federatedfilesharing","Cloud ID copied"):(0,i.t)("federatedfilesharing","Copy")}},methods:{async copyCloudId(){try{await navigator.clipboard.writeText(this.cloudId),(0,a.Te)((0,i.t)("federatedfilesharing","Cloud ID copied"))}catch(e){window.prompt((0,i.t)("federatedfilesharing","Clipboard not available. Please copy the cloud ID manually."),this.reference)}this.isCopied=!0,(0,a.Te)((0,i.t)("federatedfilesharing","Copied!")),setTimeout((()=>{this.isCopied=!1}),2e3)},goTo(e){window.location.href=e}}};var m=r(85072),v=r.n(m),A=r(97825),y=r.n(A),_=r(77659),k=r.n(_),w=r(55056),x=r.n(w),S=r(10540),I=r.n(S),U=r(41113),T=r.n(U),M=r(83498),N={};N.styleTagTransform=T(),N.setAttributes=x(),N.insert=k().bind(null,"head"),N.domAPI=y(),N.insertStyleElement=I(),v()(M.A,N),M.A&&M.A.locals&&M.A.locals;const B=(0,p.A)(b,(function(){var e=this,t=e._self._c;return t("NcSettingsSection",{attrs:{name:e.t("federatedfilesharing","Federated Cloud"),description:e.t("federatedfilesharing","You can share with anyone who uses a Nextcloud server or other Open Cloud Mesh (OCM) compatible servers and services! Just put their Federated Cloud ID in the share dialog. It looks like person@cloud.example.com"),"doc-url":e.docUrlFederated}},[t("NcInputField",{staticClass:"federated-cloud__cloud-id",attrs:{readonly:"",label:e.t("federatedfilesharing","Your Federated Cloud ID"),value:e.cloudId,success:e.isCopied,"show-trailing-button":"","trailing-button-label":e.copyLinkTooltip},on:{"trailing-button-click":e.copyCloudId},scopedSlots:e._u([{key:"trailing-button-icon",fn:function(){return[e.isCopied?t("IconCheck",{attrs:{size:20,"fill-color":"var(--color-success)"}}):t("IconClipboard",{attrs:{size:20}})]},proxy:!0}])}),e._v(" "),t("p",{staticClass:"social-button"},[e._v("\n\t\t"+e._s(e.t("federatedfilesharing","Share it so your friends can share files with you:"))),t("br"),e._v(" "),t("NcButton",{attrs:{href:e.shareFacebookUrl},scopedSlots:e._u([{key:"icon",fn:function(){return[t("img",{staticClass:"social-button__icon social-button__icon--bright",attrs:{src:e.urlFacebookIcon}})]},proxy:!0}])},[e._v("\n\t\t\t"+e._s(e.t("federatedfilesharing","Facebook"))+"\n\t\t\t")]),e._v(" "),t("NcButton",{attrs:{"aria-label":e.t("federatedfilesharing","X (formerly Twitter)"),href:e.shareXUrl},scopedSlots:e._u([{key:"icon",fn:function(){return[t("img",{staticClass:"social-button__icon",attrs:{src:e.urlXIcon}})]},proxy:!0}])},[e._v("\n\t\t\t"+e._s(e.t("federatedfilesharing","formerly Twitter"))+"\n\t\t\t")]),e._v(" "),t("NcButton",{attrs:{href:e.shareMastodonUrl},scopedSlots:e._u([{key:"icon",fn:function(){return[t("img",{staticClass:"social-button__icon",attrs:{src:e.urlMastodonIcon}})]},proxy:!0}])},[e._v("\n\t\t\t"+e._s(e.t("federatedfilesharing","Mastodon"))+"\n\t\t\t")]),e._v(" "),t("NcButton",{attrs:{href:e.shareBlueSkyUrl},scopedSlots:e._u([{key:"icon",fn:function(){return[t("img",{staticClass:"social-button__icon",attrs:{src:e.urlBlueSkyIcon}})]},proxy:!0}])},[e._v("\n\t\t\t"+e._s(e.t("federatedfilesharing","Bluesky"))+"\n\t\t\t")]),e._v(" "),t("NcButton",{staticClass:"social-button__website-button",on:{click:function(t){e.showHtml=!e.showHtml}},scopedSlots:e._u([{key:"icon",fn:function(){return[t("IconWeb",{attrs:{size:20}})]},proxy:!0}])},[e._v("\n\t\t\t"+e._s(e.t("federatedfilesharing","Add to your website"))+"\n\t\t")])],1),e._v(" "),e.showHtml?[t("p",{staticStyle:{margin:"10px 0"}},[t("a",{style:e.backgroundStyle,attrs:{target:"_blank",rel:"noreferrer noopener",href:e.reference}},[t("span",{style:e.linkStyle}),e._v("\n\t\t\t\t"+e._s(e.t("federatedfilesharing","Share with me via Nextcloud"))+"\n\t\t\t")])]),e._v(" "),t("p",[e._v("\n\t\t\t"+e._s(e.t("federatedfilesharing","HTML Code:"))+"\n\t\t\t"),t("br"),e._v(" "),t("pre",[e._v(e._s(e.htmlCode))])])]:e._e()],2)}),[],!1,null,"295ec9c5",null).exports;r.nc=(0,n.aV)(),o.Ay.mixin({methods:{t:i.Tl}}),(new(o.Ay.extend(B))).$mount("#vue-personal-federated")}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={id:e,loaded:!1,exports:{}};return o[e].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}i.m=o,e=[],i.O=(t,r,o,n)=>{if(!r){var a=1/0;for(d=0;d<e.length;d++){r=e[d][0],o=e[d][1],n=e[d][2];for(var s=!0,l=0;l<r.length;l++)(!1&n||a>=n)&&Object.keys(i.O).every((e=>i.O[e](r[l])))?r.splice(l--,1):(s=!1,n<a&&(a=n));if(s){e.splice(d--,1);var c=o();void 0!==c&&(t=c)}}return t}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[r,o,n]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,r)=>(i.f[r](e,t),t)),[])),i.u=e=>e+"-"+e+".js?v="+{640:"ce8e671e5f815db1f8e8",3580:"6c010e0aed50d3c00035",5771:"a4e2a98efcfb7393c5bd",5810:"e0ecfcd31fb108c51bfd"}[e],i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},r="nextcloud:",i.l=(e,o,n,a)=>{if(t[e])t[e].push(o);else{var s,l;if(void 0!==n)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==r+n){s=u;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",r+n),s.src=e),t[e]=[o];var h=(r,o)=>{s.onerror=s.onload=null,clearTimeout(p);var n=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(o))),r)return r(o)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=7949,(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=r[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{i.b=document.baseURI||self.location.href;var e={7949:0};i.f.j=(t,r)=>{var o=i.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var n=new Promise(((r,n)=>o=e[t]=[r,n]));r.push(o[2]=n);var a=i.p+i.u(t),s=new Error;i.l(a,(r=>{if(i.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+n+": "+a+")",s.name="ChunkLoadError",s.type=n,s.request=a,o[1](s)}}),"chunk-"+t,t)}},i.O.j=t=>0===e[t];var t=(t,r)=>{var o,n,a=r[0],s=r[1],l=r[2],c=0;if(a.some((t=>0!==e[t]))){for(o in s)i.o(s,o)&&(i.m[o]=s[o]);if(l)var d=l(i)}for(t&&t(r);c<a.length;c++)n=a[c],i.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return i.O(d)},r=self.webpackChunknextcloud=self.webpackChunknextcloud||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),i.nc=void 0;var a=i.O(void 0,[4208],(()=>i(95073)));a=i.O(a)})();
+//# sourceMappingURL=federatedfilesharing-vue-settings-personal.js.map?v=73a9717c83e594f468c3 \ No newline at end of file