diff options
Diffstat (limited to 'dist/federatedfilesharing-vue-settings-personal.js')
-rw-r--r-- | dist/federatedfilesharing-vue-settings-personal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/federatedfilesharing-vue-settings-personal.js b/dist/federatedfilesharing-vue-settings-personal.js index c4d9c7ec1b7..e5d27411b5e 100644 --- a/dist/federatedfilesharing-vue-settings-personal.js +++ b/dist/federatedfilesharing-vue-settings-personal.js @@ -1,2 +1,2 @@ -(()=>{"use strict";var e,t,r,o={68228:(e,t,r)=>{r.d(t,{A:()=>l});var o=r(71354),n=r.n(o),a=r(76314),i=r.n(a)()(n());i.push([e.id,".social-button[data-v-d9b7da9a]{margin-top:.5rem}.social-button button[data-v-d9b7da9a]{display:inline-flex;margin-inline-start:.5rem;margin-top:1rem}.social-button__website-button[data-v-d9b7da9a]{width:min(100%,400px) !important}.social-button__icon[data-v-d9b7da9a]{height:20px;width:20px;filter:var(--background-invert-if-dark)}.social-button__icon--bright[data-v-d9b7da9a]{filter:var(--background-invert-if-bright)}.federated-cloud__cloud-id[data-v-d9b7da9a]{max-width:300px}pre[data-v-d9b7da9a]{margin-top:0;white-space:pre-wrap}","",{version:3,sources:["webpack://./apps/federatedfilesharing/src/components/PersonalSettings.vue"],names:[],mappings:"AACA,gCACC,gBAAA,CAEA,uCACC,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 {\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 l=i},87196:(e,t,r)=>{var o=r(85471),n=r(21777),a=r(53334),i=r(85168),l=r(32981),s=r(63814),d=r(88837),c=r(97012),u=r(16879);const p={name:"WebIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var h=r(14486);const f=(0,h.A)(p,(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),b=r(31773);const C={name:"PersonalSettings",components:{NcButton:c.A,NcInputField:u.A,NcSettingsSection:d.A,IconCheck:g.A,IconClipboard:b.A,IconWeb:f},setup:()=>({t:a.t,cloudId:(0,l.C)("federatedfilesharing","cloudId"),reference:(0,l.C)("federatedfilesharing","reference"),urlFacebookIcon:(0,s.d0)("core","facebook"),urlMastodonIcon:(0,s.d0)("core","mastodon"),urlXIcon:(0,s.d0)("core","x")}),data:()=>({color:(0,l.C)("federatedfilesharing","color"),textColor:(0,l.C)("federatedfilesharing","textColor"),logoPath:(0,l.C)("federatedfilesharing","logoPath"),docUrlFederated:(0,l.C)("federatedfilesharing","docUrlFederated"),showHtml:!1,isCopied:!1}),computed:{messageWithURL(){return(0,a.t)("federatedfilesharing","Share with me through my #Nextcloud Federated Cloud ID, see {url}",{url:this.reference})},messageWithoutURL:()=>(0,a.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)}`},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,a.t)("federatedfilesharing","Share with me via Nextcloud")}\n</a>`},copyLinkTooltip(){return this.isCopied?(0,a.t)("federatedfilesharing","Cloud ID copied to the clipboard"):(0,a.t)("federatedfilesharing","Copy to clipboard")}},methods:{async copyCloudId(){try{await navigator.clipboard.writeText(this.cloudId),(0,i.Te)((0,a.t)("federatedfilesharing","Cloud ID copied to the clipboard"))}catch(e){window.prompt((0,a.t)("federatedfilesharing","Clipboard not available. Please copy the cloud ID manually."),this.reference)}this.isCopied=!0,(0,i.Te)((0,a.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),w=r.n(_),k=r(55056),x=r.n(k),S=r(10540),I=r.n(S),T=r(41113),M=r.n(T),N=r(68228),U={};U.styleTagTransform=M(),U.setAttributes=x(),U.insert=w().bind(null,"head"),U.domAPI=y(),U.insertStyleElement=I(),v()(N.A,U),N.A&&N.A.locals&&N.A.locals;const F=(0,h.A)(C,(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",{on:{click:function(t){return e.goTo(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)")},on:{click:function(t){return e.goTo(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",{on:{click:function(t){return e.goTo(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",{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,"d9b7da9a",null).exports;r.nc=(0,n.aV)(),o.Ay.mixin({methods:{t:a.Tl}}),(new(o.Ay.extend(F))).$mount("#vue-personal-federated")}},n={};function a(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,a),r.loaded=!0,r.exports}a.m=o,e=[],a.O=(t,r,o,n)=>{if(!r){var i=1/0;for(c=0;c<e.length;c++){r=e[c][0],o=e[c][1],n=e[c][2];for(var l=!0,s=0;s<r.length;s++)(!1&n||i>=n)&&Object.keys(a.O).every((e=>a.O[e](r[s])))?r.splice(s--,1):(l=!1,n<i&&(i=n));if(l){e.splice(c--,1);var d=o();void 0!==d&&(t=d)}}return t}n=n||0;for(var c=e.length;c>0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[r,o,n]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>e+"-"+e+".js?v="+{640:"b2fa23a809053c6305c5",5771:"a4e2a98efcfb7393c5bd",5810:"e0ecfcd31fb108c51bfd",7432:"1f201e1e5efef3bbb343"}[e],a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},r="nextcloud:",a.l=(e,o,n,i)=>{if(t[e])t[e].push(o);else{var l,s;if(void 0!==n)for(var d=document.getElementsByTagName("script"),c=0;c<d.length;c++){var u=d[c];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==r+n){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",r+n),l.src=e),t[e]=[o];var p=(r,o)=>{l.onerror=l.onload=null,clearTimeout(h);var n=t[e];if(delete t[e],l.parentNode&&l.parentNode.removeChild(l),n&&n.forEach((e=>e(o))),r)return r(o)},h=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=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=7949,(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.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(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{a.b=document.baseURI||self.location.href;var e={7949:0};a.f.j=(t,r)=>{var o=a.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 i=a.p+a.u(t),l=new Error;a.l(i,(r=>{if(a.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var n=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+n+": "+i+")",l.name="ChunkLoadError",l.type=n,l.request=i,o[1](l)}}),"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,r)=>{var o,n,i=r[0],l=r[1],s=r[2],d=0;if(i.some((t=>0!==e[t]))){for(o in l)a.o(l,o)&&(a.m[o]=l[o]);if(s)var c=s(a)}for(t&&t(r);d<i.length;d++)n=i[d],a.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return a.O(c)},r=self.webpackChunknextcloud=self.webpackChunknextcloud||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),a.nc=void 0;var i=a.O(void 0,[4208],(()=>a(87196)));i=a.O(i)})(); -//# sourceMappingURL=federatedfilesharing-vue-settings-personal.js.map?v=c35f4977d50efcaaf340
\ No newline at end of file +(()=>{"use strict";var t,e,r,o={40567:(t,e,r)=>{r.d(e,{A:()=>s});var o=r(71354),n=r.n(o),i=r(76314),a=r.n(i)()(n());a.push([t.id,".social-button[data-v-1fb843f8]{margin-top:.5rem}.social-button button[data-v-1fb843f8],.social-button a[data-v-1fb843f8]{display:inline-flex;margin-inline-start:.5rem;margin-top:1rem}.social-button__website-button[data-v-1fb843f8]{width:min(100%,400px) !important}.social-button__icon[data-v-1fb843f8]{height:20px;width:20px;filter:var(--background-invert-if-dark)}.social-button__icon--bright[data-v-1fb843f8]{filter:var(--background-invert-if-bright)}.federated-cloud__cloud-id[data-v-1fb843f8]{max-width:300px}pre[data-v-1fb843f8]{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},84220:(t,e,r)=>{var o=r(85471),n=r(21777),i=r(53334),a=r(85168),s=r(32981),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 t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon web-icon",attrs:{"aria-hidden":t.title?null:"true","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;var g=r(54373),b=r(31773);const C={name:"PersonalSettings",components:{NcButton:d.A,NcInputField:u.A,NcSettingsSection:c.A,IconCheck:g.A,IconClipboard:b.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 to the clipboard"):(0,i.t)("federatedfilesharing","Copy to clipboard")}},methods:{async copyCloudId(){try{await navigator.clipboard.writeText(this.cloudId),(0,a.Te)((0,i.t)("federatedfilesharing","Cloud ID copied to the clipboard"))}catch(t){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(t){window.location.href=t}}};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(40567),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)(C,(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("NcInputField",{staticClass:"federated-cloud__cloud-id",attrs:{readonly:"",label:t.t("federatedfilesharing","Your Federated Cloud ID"),value:t.cloudId,success:t.isCopied,"show-trailing-button":"","trailing-button-label":t.copyLinkTooltip},on:{"trailing-button-click":t.copyCloudId},scopedSlots:t._u([{key:"trailing-button-icon",fn:function(){return[t.isCopied?e("IconCheck",{attrs:{size:20,"fill-color":"var(--color-success)"}}):e("IconClipboard",{attrs:{size:20}})]},proxy:!0}])}),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",{attrs:{href:t.shareFacebookUrl},scopedSlots:t._u([{key:"icon",fn:function(){return[e("img",{staticClass:"social-button__icon social-button__icon--bright",attrs:{src:t.urlFacebookIcon}})]},proxy:!0}])},[t._v("\n\t\t\t"+t._s(t.t("federatedfilesharing","Facebook"))+"\n\t\t\t")]),t._v(" "),e("NcButton",{attrs:{"aria-label":t.t("federatedfilesharing","X (formerly Twitter)"),href:t.shareXUrl},scopedSlots:t._u([{key:"icon",fn:function(){return[e("img",{staticClass:"social-button__icon",attrs:{src:t.urlXIcon}})]},proxy:!0}])},[t._v("\n\t\t\t"+t._s(t.t("federatedfilesharing","formerly Twitter"))+"\n\t\t\t")]),t._v(" "),e("NcButton",{attrs:{href:t.shareMastodonUrl},scopedSlots:t._u([{key:"icon",fn:function(){return[e("img",{staticClass:"social-button__icon",attrs:{src:t.urlMastodonIcon}})]},proxy:!0}])},[t._v("\n\t\t\t"+t._s(t.t("federatedfilesharing","Mastodon"))+"\n\t\t\t")]),t._v(" "),e("NcButton",{attrs:{href:t.shareBlueSkyUrl},scopedSlots:t._u([{key:"icon",fn:function(){return[e("img",{staticClass:"social-button__icon",attrs:{src:t.urlBlueSkyIcon}})]},proxy:!0}])},[t._v("\n\t\t\t"+t._s(t.t("federatedfilesharing","Bluesky"))+"\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("IconWeb",{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,"1fb843f8",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(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={id:t,loaded:!1,exports:{}};return o[t].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}i.m=o,t=[],i.O=(e,r,o,n)=>{if(!r){var a=1/0;for(d=0;d<t.length;d++){r=t[d][0],o=t[d][1],n=t[d][2];for(var s=!0,l=0;l<r.length;l++)(!1&n||a>=n)&&Object.keys(i.O).every((t=>i.O[t](r[l])))?r.splice(l--,1):(s=!1,n<a&&(a=n));if(s){t.splice(d--,1);var c=o();void 0!==c&&(e=c)}}return e}n=n||0;for(var d=t.length;d>0&&t[d-1][2]>n;d--)t[d]=t[d-1];t[d]=[r,o,n]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.f={},i.e=t=>Promise.all(Object.keys(i.f).reduce(((e,r)=>(i.f[r](t,e),e)),[])),i.u=t=>t+"-"+t+".js?v="+{640:"b2fa23a809053c6305c5",5771:"a4e2a98efcfb7393c5bd",5810:"e0ecfcd31fb108c51bfd",7432:"1f201e1e5efef3bbb343"}[t],i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),e={},r="nextcloud:",i.l=(t,o,n,a)=>{if(e[t])e[t].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")==t||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=t),e[t]=[o];var h=(r,o)=>{s.onerror=s.onload=null,clearTimeout(p);var n=e[t];if(delete e[t],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((t=>t(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=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),i.j=7949,(()=>{var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!t||!/^http(s?):/.test(t));)t=r[o--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t})(),(()=>{i.b=document.baseURI||self.location.href;var t={7949:0};i.f.j=(e,r)=>{var o=i.o(t,e)?t[e]:void 0;if(0!==o)if(o)r.push(o[2]);else{var n=new Promise(((r,n)=>o=t[e]=[r,n]));r.push(o[2]=n);var a=i.p+i.u(e),s=new Error;i.l(a,(r=>{if(i.o(t,e)&&(0!==(o=t[e])&&(t[e]=void 0),o)){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",s.name="ChunkLoadError",s.type=n,s.request=a,o[1](s)}}),"chunk-"+e,e)}},i.O.j=e=>0===t[e];var e=(e,r)=>{var o,n,a=r[0],s=r[1],l=r[2],c=0;if(a.some((e=>0!==t[e]))){for(o in s)i.o(s,o)&&(i.m[o]=s[o]);if(l)var d=l(i)}for(e&&e(r);c<a.length;c++)n=a[c],i.o(t,n)&&t[n]&&t[n][0](),t[n]=0;return i.O(d)},r=self.webpackChunknextcloud=self.webpackChunknextcloud||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})(),i.nc=void 0;var a=i.O(void 0,[4208],(()=>i(84220)));a=i.O(a)})(); +//# sourceMappingURL=federatedfilesharing-vue-settings-personal.js.map?v=a7386d61eaceba7a2a12
\ No newline at end of file |