You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
8.9 KiB

  1. /*! For license information please see core-unsupported-browser.js.LICENSE.txt */
  2. !function(){var t,n,e,r={77095:function(t,n,e){"use strict";var r,o=e(79753),i=e(20144),u=e(81655),s=e(31e3),a=e.n(s),c=e(77727),l=e.n(c),p=((0,u.ZI)({allowHigherVersions:!0,browsers:l()}),a()(l())),d=(0,e(62556).getBuilder)("core").clearOnLogout().persist().build(),f=e(45994),v=e(17499),b=null===(r=(0,f.ts)())?(0,v.IY)().setApp("core").build():(0,v.IY)().setApp("core").setUid(r.uid).build(),A=(e(48764).Buffer,"unsupported-browser-ignore"),w=((0,o.generateUrl)("/unsupported"),d.getItem(A),e(9944)),m=e(10861),g=e.n(m),y=e(93455),h=e.n(y),_=e(97859),C=e(48764).Buffer;function x(t,n,e,r,o,i,u){try{var s=t[i](u),a=s.value}catch(t){return void e(t)}s.done?n(a):Promise.resolve(a).then(r,o)}function O(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}b.debug("Supported browsers",{supportedBrowsers:p});var B={name:"UnsupportedBrowser",components:{Web:_.Z,NcButton:g(),NcEmptyContent:h()},data:function(){return{agents:{}}},computed:{isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},filteredSupportedBrowsers:function(){var t=this;return p.filter((function(n){return!!n&&(t.isMobile?t.isMobileBrowser(n):!t.isMobileBrowser(n))}))},formattedBrowsersList:function(){var t=this,n={};return this.filteredSupportedBrowsers.forEach((function(t){var e,r,o=(e=t.split(" "),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,u,s=[],a=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;a=!1}else for(;!(a=(r=i.call(e)).done)&&(s.push(r.value),s.length!==n);a=!0);}catch(t){c=!0,o=t}finally{try{if(!a&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(c)throw o}}return s}}(e,r)||function(t,n){if(t){if("string"==typeof t)return O(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?O(t,n):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],u=o[1];(!n[i]||n[i]<parseFloat(u,10))&&(n[i]=parseFloat(u,10))})),Object.keys(n).map((function(e){var r,o;if(null===(r=t.agents[e])||void 0===r||!r.browser)return null;var i=n[e],u=null===(o=t.agents[e])||void 0===o?void 0:o.browser;return t.t("core","{name} version {version} and above",{name:u,version:i})})).filter((function(t){return null!==t}))}},beforeMount:function(){var t,n=this;return(t=regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.e(7874).then(e.t.bind(e,90614,19));case 2:r=t.sent,o=r.agents,n.agents=o;case 5:case"end":return t.stop()}}),t)})),function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function u(t){x(i,r,o,u,s,"next",t)}function s(t){x(i,r,o,u,s,"throw",t)}u(void 0)}))})()},methods:{t:w.translate,n:w.translatePlural,forceBrowsing:function(){d.setItem(A,!0);var t=new URLSearchParams(window.location.search);if(t.has("redirect_url")){var n=C.from(t.get("redirect_url"),"base64").toString()||"/";window.location=n}else window.location=(0,o.generateUrl)("/")},isMobileBrowser:function(t){return(t=t.toLowerCase()).includes("and_")||t.includes("android")||t.includes("ios_")||t.includes("mobile")||t.includes("_mob")||t.includes("samsung")}}},j=B,S=e(93379),P=e.n(S),k=e(7795),I=e.n(k),M=e(90569),U=e.n(M),T=e(3565),Z=e.n(T),E=e(19216),R=e.n(E),$=e(44589),D=e.n($),F=e(35438),L={};L.styleTagTransform=D(),L.setAttributes=Z(),L.insert=U().bind(null,"head"),L.domAPI=I(),L.insertStyleElement=R(),P()(F.Z,L),F.Z&&F.Z.locals&&F.Z.locals;var N=(0,e(51900).Z)(j,(function(){var t=this,n=t._self._c;return n("div",{staticClass:"content-unsupported-browser guest-box"},[n("NcEmptyContent",{scopedSlots:t._u([{key:"icon",fn:function(){retur
  3. //# sourceMappingURL=core-unsupported-browser.js.map?v=851bac68e1cb89deccd7