1 |
- {"version":3,"file":"federatedfilesharing-vue-settings-personal.js?v=460f87cfe98c94afc0d8","mappings":"6BAAIA,E,8TCkGJ,OACA,wBACA,YACA,aACA,sBACA,YACA,aACA,QACA,eAEA,YACA,aAEA,KAbA,WAcA,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,cACA,8BARA,0C,gLASA,EACA,KAXA,SAWA,GACA,sBACA,IC3K6L,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,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,oBAAoB,CAACE,MAAM,CAAC,MAAQN,EAAIO,EAAE,uBAAwB,mBAAmB,YAAcP,EAAIO,EAAE,uBAAwB,uNAAuN,UAAUP,EAAIQ,kBAAkB,CAACJ,EAAG,IAAI,CAACK,YAAY,iBAAiB,CAACT,EAAIU,GAAG,SAASV,EAAIW,GAAGX,EAAIO,EAAE,uBAAwB,6BAA6B,UAAUH,EAAG,SAAS,CAACE,MAAM,CAAC,GAAK,YA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mBrE,KAAO+D,EAAqBQ,KAAK,KAAMF,EAAmBrE,KAAKuE,KAAKF,G,IClDvFjE,EAAoBoE,QAAKjE,ECGzB,IAAIkE,EAAsBrE,EAAoBY,OAAET,EAAW,CAAC,OAAO,WAAa,OAAOH,EAAoB,MAAQ,IACnHqE,EAAsBrE,EAAoBY,EAAEyD,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?5cdb","webpack://nextcloud/./apps/federatedfilesharing/src/components/PersonalSettings.vue?80b9","webpack:///nextcloud/apps/federatedfilesharing/src/components/PersonalSettings.vue?vue&type=template&id=e3fb521a&scoped=true&","webpack:///nextcloud/apps/federatedfilesharing/src/main-personal.js","webpack:///nextcloud/apps/federatedfilesharing/src/components/PersonalSettings.vue?vue&type=style&index=0&id=e3fb521a&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\tv-tooltip=\"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 } 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'\nimport Tooltip from '@nextcloud/vue/dist/Directives/Tooltip'\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\tdirectives: {\n\t\tTooltip,\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\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=e3fb521a&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=e3fb521a&lang=scss&scoped=true&\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./PersonalSettings.vue?vue&type=template&id=e3fb521a&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=e3fb521a&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 \"e3fb521a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;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',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.copyLinkTooltip),expression:\"copyLinkTooltip\"}],ref:\"clipboard\",staticClass:\"clipboard\",attrs:{\"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)}\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-e3fb521a]{margin-top:.5rem}.social-button button[data-v-e3fb521a]{display:inline-flex;margin-left:.5rem;margin-top:1rem}.cloud-id-text[data-v-e3fb521a]{display:flex;align-items:center}.cloud-id-text button[data-v-e3fb521a]{display:inline-flex}pre[data-v-e3fb521a]{margin-top:0;white-space:pre-wrap}#cloudid[data-v-e3fb521a]{margin-left:.25rem}\", \"\",{\"version\":3,\"sources\":[\"webpack://./apps/federatedfilesharing/src/components/PersonalSettings.vue\"],\"names\":[],\"mappings\":\"AAiLA,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\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\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__(23105); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","component","_vm","this","_h","$createElement","_c","_self","attrs","t","docUrlFederated","staticClass","_v","_s","cloudId","directives","name","rawName","value","expression","ref","on","$event","preventDefault","copyCloudId","apply","arguments","scopedSlots","_u","key","fn","proxy","goTo","shareFacebookUrl","shareTwitterUrl","shareDiasporaUrl","showHtml","staticStyle","style","reference","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","nmd","paths","children","b","document","baseURI","self","location","href","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","forEach","bind","nc","__webpack_exports__"],"sourceRoot":""}
|