federatedfilesharing-vue-settings-personal.js.map 31 KB

1
  1. {"version":3,"file":"federatedfilesharing-vue-settings-personal.js?v=5f6a2ebbe08a2d6eb7fe","mappings":"6BAAIA,E,2SCkGJ,OACA,wBACA,YACA,aACA,sBACA,YACA,aACA,cACA,eAEA,KAVA,WAWA,OACA,sDACA,8DACA,4DACA,8DACA,0DACA,0EACA,YACA,YAEA,EACA,UACA,eADA,WAEA,yHACA,EACA,kBAJA,WAKA,yFACA,EACA,iBAPA,WAQA,0JACA,EACA,gBAVA,WAWA,8FACA,EACA,iBAbA,WAcA,gGACA,EACA,iBAhBA,WAiBA,uEACA,EACA,gBAnBA,WAoBA,iIACA,EACA,UAtBA,WAuBA,8NACA,EACA,SAzBA,WA0BA,yJACA,eADA,wBAEA,wDAFA,SAIA,EACA,gBA/BA,WAgCA,+HACA,GAEA,SACA,YADA,WACA,I,EAAA,c,EAAA,yHACA,oBADA,uBAGA,gEAHA,0CAMA,yCANA,OAOA,eACA,6CACA,8BATA,0C,gLAUA,EACA,KAZA,SAYA,GACA,sBACA,ICzK6L,I,iICWzLC,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKJ,KAAW,YAAiB,WALlD,ICbIM,GAAY,E,SAAA,GACd,GCTW,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,oBAAoB,CAACE,MAAM,CAAC,MAAQJ,EAAIK,EAAE,uBAAwB,mBAAmB,YAAcL,EAAIK,EAAE,uBAAwB,uNAAuN,UAAUL,EAAIM,kBAAkB,CAACJ,EAAG,IAAI,CAACK,YAAY,iBAAiB,CAACP,EAAIQ,GAAG,SAASR,EAAIS,GAAGT,EAAIK,EAAE,uBAAwB,6BAA6B,UAAUH,EAAG,SAAS,CAACE,MAAM,CAAC,G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,KAAK,KAAMF,EAAmBtE,KAAKwE,KAAKF,G,IClDvFlE,EAAoBqE,QAAKlE,ECGzB,IAAImE,EAAsBtE,EAAoBY,OAAET,EAAW,CAAC,OAAO,WAAa,OAAOH,EAAoB,MAAQ,IACnHsE,EAAsBtE,EAAoBY,EAAE0D,E","sources":["webpack:///nextcloud/webpack/runtime/chunk loaded","webpack:///nextcloud/apps/federatedfilesharing/src/components/PersonalSettings.vue","webpack:///nextcloud/apps/federatedfilesharing/src/components/PersonalSettings.vue?vue&type=script&lang=js&","webpack://nextcloud/./apps/federatedfilesharing/src/components/PersonalSettings.vue?7c19","webpack://nextcloud/./apps/federatedfilesharing/src/components/PersonalSettings.vue?80b9","webpack://nextcloud/./apps/federatedfilesharing/src/components/PersonalSettings.vue?2cda","webpack:///nextcloud/apps/federatedfilesharing/src/main-personal.js","webpack:///nextcloud/apps/federatedfilesharing/src/components/PersonalSettings.vue?vue&type=style&index=0&id=356b343c&prod&lang=scss&scoped=true&","webpack:///nextcloud/webpack/bootstrap","webpack:///nextcloud/webpack/runtime/amd define","webpack:///nextcloud/webpack/runtime/amd options","webpack:///nextcloud/webpack/runtime/compat get default export","webpack:///nextcloud/webpack/runtime/define property getters","webpack:///nextcloud/webpack/runtime/global","webpack:///nextcloud/webpack/runtime/hasOwnProperty shorthand","webpack:///nextcloud/webpack/runtime/make namespace object","webpack:///nextcloud/webpack/runtime/node module decorator","webpack:///nextcloud/webpack/runtime/runtimeId","webpack:///nextcloud/webpack/runtime/jsonp chunk loading","webpack:///nextcloud/webpack/runtime/nonce","webpack:///nextcloud/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","<!--\nSPDX-FileLicenseText: 2022 Carl Schwan <carl@carlschwan.eu>\nSPDX-License-Identifier: AGPL-3.0-or-later\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as\npublished by the Free Software Foundation, either version 3 of the\nLicense, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with this program. If not, see <http://www.gnu.org/licenses/>.\n-->\n\n<template>\n\t<NcSettingsSection :title=\"t('federatedfilesharing', 'Federated Cloud')\"\n\t\t:description=\"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')\"\n\t\t:doc-url=\"docUrlFederated\">\n\t\t<p class=\"cloud-id-text\">\n\t\t\t{{ t('federatedfilesharing', 'Your Federated Cloud ID:') }}\n\t\t\t<strong id=\"cloudid\">{{ cloudId }}</strong>\n\t\t\t<NcButton ref=\"clipboard\"\n\t\t\t\t:title=\"copyLinkTooltip\"\n\t\t\t\t:aria-label=\"copyLinkTooltip\"\n\t\t\t\tclass=\"clipboard\"\n\t\t\t\ttype=\"tertiary-no-background\"\n\t\t\t\t@click.prevent=\"copyCloudId\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Clipboard :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t</NcButton>\n\t\t</p>\n\n\t\t<p class=\"social-button\">\n\t\t\t{{ t('federatedfilesharing', 'Share it so your friends can share files with you:') }}<br>\n\t\t\t<NcButton @click=\"goTo(shareFacebookUrl)\">\n\t\t\t\t{{ t('federatedfilesharing', 'Facebook') }}\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Facebook :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t</NcButton>\n\t\t\t<NcButton @click=\"goTo(shareTwitterUrl)\">\n\t\t\t\t{{ t('federatedfilesharing', 'Twitter') }}\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Twitter :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t</NcButton>\n\t\t\t<NcButton @click=\"goTo(shareDiasporaUrl)\">\n\t\t\t\t{{ t('federatedfilesharing', 'Diaspora') }}\n\t\t\t\t<template #icon>\n\t\t\t\t\t<svg width=\"20\"\n\t\t\t\t\t\theight=\"20\"\n\t\t\t\t\t\tviewBox=\"-10 -5 1034 1034\"\n\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"><path 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\" /></svg>\n\t\t\t\t</template>\n\t\t\t</NcButton>\n\t\t\t<NcButton @click=\"showHtml = !showHtml\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Web :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('federatedfilesharing', 'Add to your website') }}\n\t\t\t</NcButton>\n\t\t</p>\n\n\t\t<template v-if=\"showHtml\">\n\t\t\t<p style=\"margin: 10px 0\">\n\t\t\t\t<a target=\"_blank\"\n\t\t\t\t\trel=\"noreferrer noopener\"\n\t\t\t\t\t:href=\"reference\"\n\t\t\t\t\t:style=\"backgroundStyle\">\n\t\t\t\t\t<span :style=\"linkStyle\" />\n\t\t\t\t\t{{ t('federatedfilesharing', 'Share with me via Nextcloud') }}\n\t\t\t\t</a>\n\t\t\t</p>\n\n\t\t\t<p>\n\t\t\t\t{{ t('federatedfilesharing', 'HTML Code:') }}\n\t\t\t\t<br>\n\t\t\t\t<pre>{{ htmlCode }}</pre>\n\t\t\t</p>\n\t\t</template>\n\t</NcSettingsSection>\n</template>\n\n<script>\nimport { showError, showSuccess } from '@nextcloud/dialogs'\nimport { loadState } from '@nextcloud/initial-state'\nimport NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection'\nimport NcButton from '@nextcloud/vue/dist/Components/NcButton'\nimport Twitter from 'vue-material-design-icons/Twitter'\nimport Facebook from 'vue-material-design-icons/Facebook'\nimport Web from 'vue-material-design-icons/Web'\nimport Clipboard from 'vue-material-design-icons/Clipboard'\n\nexport default {\n\tname: 'PersonalSettings',\n\tcomponents: {\n\t\tNcButton,\n\t\tNcSettingsSection,\n\t\tTwitter,\n\t\tFacebook,\n\t\tWeb,\n\t\tClipboard,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tcolor: loadState('federatedfilesharing', 'color'),\n\t\t\ttextColor: loadState('federatedfilesharing', 'textColor'),\n\t\t\tlogoPath: loadState('federatedfilesharing', 'logoPath'),\n\t\t\treference: loadState('federatedfilesharing', 'reference'),\n\t\t\tcloudId: loadState('federatedfilesharing', 'cloudId'),\n\t\t\tdocUrlFederated: loadState('federatedfilesharing', 'docUrlFederated'),\n\t\t\tshowHtml: false,\n\t\t\tisCopied: false,\n\t\t}\n\t},\n\tcomputed: {\n\t\tmessageWithURL() {\n\t\t\treturn t('federatedfilesharing', 'Share with me through my #Nextcloud Federated Cloud ID, see {url}', { url: this.reference })\n\t\t},\n\t\tmessageWithoutURL() {\n\t\t\treturn t('federatedfilesharing', 'Share with me through my #Nextcloud Federated Cloud ID')\n\t\t},\n\t\tshareDiasporaUrl() {\n\t\t\treturn `https://share.diasporafoundation.org/?title=${encodeURIComponent(this.messageWithoutURL)}&url=${encodeURIComponent(this.reference)}`\n\t\t},\n\t\tshareTwitterUrl() {\n\t\t\treturn `https://twitter.com/intent/tweet?text=${encodeURIComponent(this.messageWithURL)}`\n\t\t},\n\t\tshareFacebookUrl() {\n\t\t\treturn `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(this.reference)}`\n\t\t},\n\t\tlogoPathAbsolute() {\n\t\t\treturn window.location.protocol + '//' + window.location.host + this.logoPath\n\t\t},\n\t\tbackgroundStyle() {\n\t\t\treturn `padding:10px;background-color:${this.color};color:${this.textColor};border-radius:3px;padding-left:4px;`\n\t\t},\n\t\tlinkStyle() {\n\t\t\treturn `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;`\n\t\t},\n\t\thtmlCode() {\n\t\t\treturn `<a target=\"_blank\" rel=\"noreferrer noopener\" href=\"${this.reference}\" style=\"${this.backgroundStyle}\">\n\t<span style=\"${this.linkStyle}\"></span>\n\t${t('federatedfilesharing', 'Share with me via Nextcloud')}\n</a>`\n\t\t},\n\t\tcopyLinkTooltip() {\n\t\t\treturn this.isCopied ? t('federatedfilesharing', 'Cloud ID copied to the clipboard') : t('federatedfilesharing', 'Copy to clipboard')\n\t\t},\n\t},\n\tmethods: {\n\t\tasync copyCloudId() {\n\t\t\tif (!navigator.clipboard) {\n\t\t\t\t// Clipboard API not available\n\t\t\t\tshowError(t('federatedfilesharing', 'Clipboard is not available'))\n\t\t\t\treturn\n\t\t\t}\n\t\t\tawait navigator.clipboard.writeText(this.cloudId)\n\t\t\tthis.isCopied = true\n\t\t\tshowSuccess(t('federatedfilesharing', 'Copied!'))\n\t\t\tthis.$refs.clipboard.$el.focus()\n\t\t},\n\t\tgoTo(url) {\n\t\t\twindow.location.href = url\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n\t.social-button {\n\t\tmargin-top: 0.5rem;\n\t\tbutton {\n\t\t\tdisplay: inline-flex;\n\t\t\tmargin-left: 0.5rem;\n\t\t\tmargin-top: 1rem;\n\t\t}\n\t}\n\t.cloud-id-text {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tbutton {\n\t\t\tdisplay: inline-flex;\n\t\t}\n\t}\n\tpre {\n\t\tmargin-top: 0;\n\t\twhite-space: pre-wrap;\n\t}\n\t#cloudid {\n\t\tmargin-left: 0.25rem;\n\t}\n</style>\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PersonalSettings.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PersonalSettings.vue?vue&type=script&lang=js&\"","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PersonalSettings.vue?vue&type=style&index=0&id=356b343c&prod&lang=scss&scoped=true&\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PersonalSettings.vue?vue&type=style&index=0&id=356b343c&prod&lang=scss&scoped=true&\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./PersonalSettings.vue?vue&type=template&id=356b343c&scoped=true&\"\nimport script from \"./PersonalSettings.vue?vue&type=script&lang=js&\"\nexport * from \"./PersonalSettings.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PersonalSettings.vue?vue&type=style&index=0&id=356b343c&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"356b343c\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('NcSettingsSection',{attrs:{\"title\":_vm.t('federatedfilesharing', 'Federated Cloud'),\"description\":_vm.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\":_vm.docUrlFederated}},[_c('p',{staticClass:\"cloud-id-text\"},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.t('federatedfilesharing', 'Your Federated Cloud ID:'))+\"\\n\\t\\t\"),_c('strong',{attrs:{\"id\":\"cloudid\"}},[_vm._v(_vm._s(_vm.cloudId))]),_vm._v(\" \"),_c('NcButton',{ref:\"clipboard\",staticClass:\"clipboard\",attrs:{\"title\":_vm.copyLinkTooltip,\"aria-label\":_vm.copyLinkTooltip,\"type\":\"tertiary-no-background\"},on:{\"click\":function($event){$event.preventDefault();return _vm.copyCloudId.apply(null, arguments)}},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('Clipboard',{attrs:{\"size\":20}})]},proxy:true}])})],1),_vm._v(\" \"),_c('p',{staticClass:\"social-button\"},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.t('federatedfilesharing', 'Share it so your friends can share files with you:'))),_c('br'),_vm._v(\" \"),_c('NcButton',{on:{\"click\":function($event){return _vm.goTo(_vm.shareFacebookUrl)}},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('Facebook',{attrs:{\"size\":20}})]},proxy:true}])},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('federatedfilesharing', 'Facebook'))+\"\\n\\t\\t\\t\")]),_vm._v(\" \"),_c('NcButton',{on:{\"click\":function($event){return _vm.goTo(_vm.shareTwitterUrl)}},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('Twitter',{attrs:{\"size\":20}})]},proxy:true}])},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('federatedfilesharing', 'Twitter'))+\"\\n\\t\\t\\t\")]),_vm._v(\" \"),_c('NcButton',{on:{\"click\":function($event){return _vm.goTo(_vm.shareDiasporaUrl)}},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('svg',{attrs:{\"width\":\"20\",\"height\":\"20\",\"viewBox\":\"-10 -5 1034 1034\",\"xmlns\":\"http://www.w3.org/2000/svg\"}},[_c('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:true}])},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('federatedfilesharing', 'Diaspora'))+\"\\n\\t\\t\\t\")]),_vm._v(\" \"),_c('NcButton',{on:{\"click\":function($event){_vm.showHtml = !_vm.showHtml}},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('Web',{attrs:{\"size\":20}})]},proxy:true}])},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('federatedfilesharing', 'Add to your website'))+\"\\n\\t\\t\")])],1),_vm._v(\" \"),(_vm.showHtml)?[_c('p',{staticStyle:{\"margin\":\"10px 0\"}},[_c('a',{style:(_vm.backgroundStyle),attrs:{\"target\":\"_blank\",\"rel\":\"noreferrer noopener\",\"href\":_vm.reference}},[_c('span',{style:(_vm.linkStyle)}),_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.t('federatedfilesharing', 'Share with me via Nextcloud'))+\"\\n\\t\\t\\t\")])]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('federatedfilesharing', 'HTML Code:'))+\"\\n\\t\\t\\t\"),_c('br'),_vm._v(\" \"),_c('pre',[_vm._v(_vm._s(_vm.htmlCode))])])]:_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/**\n * SPDX-FileLicenseText: 2022 Carl Schwan <carl@carlschwan.eu>\n * SPDX-License-Identifier: AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport Vue from 'vue'\nimport { getRequestToken } from '@nextcloud/auth'\nimport { translate as t } from '@nextcloud/l10n'\nimport '@nextcloud/dialogs/dist/index.css'\n\nimport PersonalSettings from './components/PersonalSettings'\n\n__webpack_nonce__ = btoa(getRequestToken())\n\nVue.mixin({\n\tmethods: {\n\t\tt,\n\t},\n})\n\nconst PersonalSettingsView = Vue.extend(PersonalSettings)\nnew PersonalSettingsView().$mount('#vue-personal-federated')\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".social-button[data-v-356b343c]{margin-top:.5rem}.social-button button[data-v-356b343c]{display:inline-flex;margin-left:.5rem;margin-top:1rem}.cloud-id-text[data-v-356b343c]{display:flex;align-items:center}.cloud-id-text button[data-v-356b343c]{display:inline-flex}pre[data-v-356b343c]{margin-top:0;white-space:pre-wrap}#cloudid[data-v-356b343c]{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,CAGF,gCACC,YAAA,CACA,kBAAA,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}\\n.cloud-id-text {\\n\\tdisplay: flex;\\n\\talign-items: center;\\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\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdD = function () {\n\tthrow new Error('define cannot be used indirect');\n};","__webpack_require__.amdO = {};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.j = 5855;","__webpack_require__.b = document.baseURI || self.location.href;\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t5855: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunknextcloud\"] = self[\"webpackChunknextcloud\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [7874], function() { return __webpack_require__(32722); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","component","_vm","this","_c","_self","attrs","t","docUrlFederated","staticClass","_v","_s","cloudId","ref","copyLinkTooltip","on","$event","preventDefault","copyCloudId","apply","arguments","scopedSlots","_u","key","fn","proxy","goTo","shareFacebookUrl","shareTwitterUrl","shareDiasporaUrl","showHtml","staticStyle","style","backgroundStyle","reference","linkStyle","htmlCode","_e","__webpack_nonce__","btoa","getRequestToken","Vue","methods","PersonalSettings","$mount","___CSS_LOADER_EXPORT___","push","module","id","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","loaded","__webpack_modules__","call","m","amdD","Error","amdO","O","result","chunkIds","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","g","globalThis","Function","e","window","obj","prop","prototype","hasOwnProperty","Symbol","toStringTag","value","nmd","paths","children","b","document","baseURI","self","location","href","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","forEach","bind","nc","__webpack_exports__"],"sourceRoot":""}