1 |
- {"version":3,"file":"federatedfilesharing-vue-settings-personal.js?v=832fb62aeec002995188","mappings":"uBAAIA,E,4KCkGJ,MClG6L,EDkG7L,CACAC,KAAAA,mBACAC,WAAAA,CACAC,SAAAA,IACAC,kBAAAA,IACAC,QAAAA,EAAAA,EACAC,SAAAA,EAAAA,EACAC,IAAAA,EAAAA,QACAC,UAAAA,EAAAA,GAEAC,KAAAA,KACA,CACAC,OAAAA,EAAAA,EAAAA,GAAAA,uBAAAA,SACAC,WAAAA,EAAAA,EAAAA,GAAAA,uBAAAA,aACAC,UAAAA,EAAAA,EAAAA,GAAAA,uBAAAA,YACAC,WAAAA,EAAAA,EAAAA,GAAAA,uBAAAA,aACAC,SAAAA,EAAAA,EAAAA,GAAAA,uBAAAA,WACAC,iBAAAA,EAAAA,EAAAA,GAAAA,uBAAAA,mBACAC,UAAAA,EACAC,UAAAA,IAGAC,SAAAA,CACAC,iBACA,qGAAAC,IAAAA,KAAAA,WACA,EACAC,kBAAAA,IACA,mFAEAC,mBACA,0JACA,EACAC,kBACA,8FACA,EACAC,mBACA,gGACA,EACAC,mBACA,uEACA,EACAC,kBACA,iIACA,EACAC,YACA,8NACA,EACAC,WACA,yJACA,uCACAC,EAAAA,uBAAAA,+BAAAA,SAEA,EACAC,kBACA,+HACA,GAEAC,QAAAA,CACA,oBACA,2BAKA,4CACA,kBACAC,EAAAA,EAAAA,IAAAA,EAAAA,uBAAAA,YACA,mCANAC,EAAAA,EAAAA,IAAAA,EAAAA,uBAAAA,8BAOA,EACAC,KAAAA,GACAC,OAAAA,SAAAA,KAAAA,CACA,I,qIE9JIC,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,WCPlD,SAXgB,E,SAAA,GACd,GCTW,WAAkB,IAAIM,EAAIC,KAA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C1FU,EAAmBC,QAAQN,EAAqBO,KAAK,KAAM,IAC3DF,EAAmBjE,KAAO4D,EAAqBO,KAAK,KAAMF,EAAmBjE,KAAKmE,KAAKF,G,KClDvF7D,EAAoBgE,QAAK7D,ECGzB,IAAI8D,EAAsBjE,EAAoBS,OAAEN,EAAW,CAAC,OAAO,IAAOH,EAAoB,SAC9FiE,EAAsBjE,EAAoBS,EAAEwD,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?716f","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=5b277ff8&prod&lang=scss&scoped=true&","webpack:///nextcloud/webpack/bootstrap","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 = (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((key) => (__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.js'\nimport NcButton from '@nextcloud/vue/dist/Components/NcButton.js'\nimport Twitter from 'vue-material-design-icons/Twitter.vue'\nimport Facebook from 'vue-material-design-icons/Facebook.vue'\nimport Web from 'vue-material-design-icons/Web.vue'\nimport Clipboard from 'vue-material-design-icons/Clipboard.vue'\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=5b277ff8&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=5b277ff8&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=5b277ff8&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=5b277ff8&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 \"5b277ff8\",\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.vue'\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-5b277ff8]{margin-top:.5rem}.social-button button[data-v-5b277ff8]{display:inline-flex;margin-left:.5rem;margin-top:1rem}.cloud-id-text[data-v-5b277ff8]{display:flex;align-items:center}.cloud-id-text button[data-v-5b277ff8]{display:inline-flex}pre[data-v-5b277ff8]{margin-top:0;white-space:pre-wrap}#cloudid[data-v-5b277ff8]{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","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (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 = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (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 = (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 = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (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((id) => (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], () => (__webpack_require__(30157)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","name","components","NcButton","NcSettingsSection","Twitter","Facebook","Web","Clipboard","data","color","textColor","logoPath","reference","cloudId","docUrlFederated","showHtml","isCopied","computed","messageWithURL","url","messageWithoutURL","shareDiasporaUrl","shareTwitterUrl","shareFacebookUrl","logoPathAbsolute","backgroundStyle","linkStyle","htmlCode","t","copyLinkTooltip","methods","showSuccess","showError","goTo","window","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","_vm","this","_c","_self","attrs","staticClass","_v","_s","ref","on","$event","preventDefault","copyCloudId","apply","arguments","scopedSlots","_u","key","fn","proxy","staticStyle","style","_e","__webpack_nonce__","btoa","getRequestToken","Vue","PersonalSettings","$mount","___CSS_LOADER_EXPORT___","push","module","id","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","loaded","__webpack_modules__","call","m","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","obj","prop","prototype","hasOwnProperty","Symbol","toStringTag","value","nmd","paths","children","b","document","baseURI","self","location","href","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","forEach","bind","nc","__webpack_exports__"],"sourceRoot":""}
|