| Server IP : 193.86.120.172 / Your IP : 216.73.216.67 Web Server : Apache/2.4.63 (Unix) System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64 User : kubec ( 1026) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /volume1/@appstore/SynologyPhotos/ui/ |
Upload File : |
(self.webpackChunkFotoPhotoRequestReactLibrary=self.webpackChunkFotoPhotoRequestReactLibrary||[]).push([["62"],{5741:function(e){let n=async(e,n)=>{if(navigator.platform.includes("Mac")){if(navigator.userAgentData){if((await navigator.userAgentData.getHighEntropyValues(["architecture"])).architecture.includes("arm"))return o(e,n,"arm")}else if(document){let t=document.createElement("canvas").getContext("webgl"),a=t.getExtension("WEBGL_debug_renderer_info"),i=a&&t.getParameter(a.UNMASKED_RENDERER_WEBGL)||"";if(i.match(/Apple/)&&!i.match(/Apple GPU/))return o(e,n,"arm")}return o(e,n,"x86")}return t(e,n)},t=(e,n)=>{let t=new URLSearchParams;return t.append("type","Installer"),t.append("os","Windows"),t.append("file_type","exe"),`${e}/${n}?${t.toString()}`},o=(e,n,t)=>{let o=new URLSearchParams;return o.append("type","Installer"),o.append("os","Mac"),"arm"===t?o.append("file_type","apple-silicon"):o.append("file_type","intel-based"),`${e}/${n}?${o.toString()}`};e.exports=n,e.exports.getDesktopUtilityDownloadLink=n,e.exports.getWinDesktopUtilityDownloadLink=t,e.exports.getMacDesktopUtilityDownloadLinkByArch=o},8261:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ee}});var o=t(6150),a=t(4460),i=t(8395),l=t(5697),r=t.n(l),c=t(7294),s=t(7019),d=t(5593),m=t(1611),p=t(7276),u=t(4184),f=t.n(u),g=function(){return c.createElement("div",{className:"synofoto-loading-animation","data-testid":"loading-animation"},c.createElement("div",{className:"synofoto-css-loading-animation"}))},h=t(9905),E=function(e){var n=e.message;return c.createElement("div",{className:"synofoto-loading-ct"},c.createElement(g,null),n)};E.propTypes={message:r().string},E.defaultProps={message:(0,h.n6)("app","processing")};var _=t(6904),y=t(1403),v=t(9219),x=t(9113),w={cancelText:r().string,className:r().string,confirmDisabled:r().bool,confirmText:r().string,headerRightContent:r().node,content:r().node,handleCancel:r().func,handleConfirm:r().func,handleKeyDown:r().func,handleClose:r().func,isOpen:r().bool,isResizeable:r().bool,shouldCloseOnEsc:r().bool,showCancel:r().bool,showClose:r().bool,showConfirm:r().bool,title:r().string,footerMessage:r().element,showLoadingBox:r().bool,contentPadding:r().oneOf([_.k3.ALL,_.k3.TOP_AND_BOTTOM,_.k3.NONE]).isRequired},N={cancelText:(0,h.n6)("action","cancel"),className:"",confirmDisabled:!1,confirmText:(0,h.n6)("action","ok"),headerRightContent:null,content:null,handleCancel:void 0,handleConfirm:void 0,handleClose:void 0,handleKeyDown:void 0,isOpen:!1,isResizeable:!1,shouldCloseOnEsc:!1,showCancel:!1,showClose:!0,showConfirm:!0,title:"",footerMessage:null,showLoadingBox:!1},C=function(e){var n=e.cancelText,t=e.className,o=e.confirmDisabled,a=e.confirmText,i=e.headerRightContent,l=e.content,r=e.footerMessage,s=e.handleCancel,d=e.handleConfirm,m=e.handleClose,p=e.handleKeyDown,u=e.isOpen,g=e.isResizeable,h=e.shouldCloseOnEsc,w=e.showCancel,N=e.showClose,C=e.showConfirm,D=e.title,O=e.showLoadingBox,A=e.contentPadding,b=O?c.createElement("div",{className:"synofoto-general-dialog-loading-box"},c.createElement("div",{className:"synofoto-loading-box"},c.createElement(E,null))):null,R=f()("synofoto-general-dialog-content",{"synofoto-dialog-content-padding-all":A===_.k3.ALL,"synofoto-dialog-content-padding-top-and-bottom":A===_.k3.TOP_AND_BOTTOM});return c.createElement(c.Fragment,null,c.createElement(y.Z,{onKeyDown:function(e){if(e.key===_.VD.ESC){if(m){m();return}s()}p&&p(e)}}),c.createElement(v.Z,{isOpen:u,isResizeable:g,title:D,className:"".concat(t," synofoto-general-dialog"),headerRightContent:i,shouldCloseOnEsc:h,showCloseButton:N,closeButtonHandler:m||s},b,c.createElement("div",{className:O?"synofoto-general-dialog-mask show-mask":"synofoto-general-dialog-mask"},c.createElement("div",{className:R},l),c.createElement("div",{className:"synofoto-general-dialog-footer"},c.createElement("div",{className:"footer-message-wrapper"},r),w&&c.createElement(x.Z,{text:n,handler:s,color:_.rp.GREY,shape:_.jL.OVAL}),C&&c.createElement(x.Z,{text:a,handler:d,color:_.rp.MAIN,shape:_.jL.OVAL,disabled:o})))))};function D(e){var n=e.className,t=e.text;return c.createElement("div",{className:"synofoto-note ".concat(n),role:"note"},c.createElement("span",{className:"synofoto-note__note"},(0,h.n6)("app","note")),t)}C.propTypes=w,C.defaultProps=N,D.propTypes={className:r().string,text:r().string.isRequired},D.defaultProps={className:""};var O=t(5316),A=t(8323),b=t(4599),R=t(3604),T=t(5741),L=t(9232),k=t(7050),I=t(5210),S=function(e,n){return n?"synofoto-wrap-with-actions-".concat(e):"synofoto-not-wrap-actions-".concat(e)},P=function(e,n){return/<b>.*?<\/b>/.test(e)?c.createElement(p.Z,{key:S(n,!1),text:e}):e},Z=function(e,n){var t=(0,I._)(e.matchAll(/{(\d+)}([^{}]+){\d+}/g)),o=e.split(/{\d+}[^{}]+{\d+}/),a=[];return 0===t.length?a.push(P(e,0)):(t.forEach(function(e,t){var i=e[2],l=n[parseInt(e[1],10)/2];if(a.push(P(o[t],t)),"function"===l.type){var r=l.function?l.function:function(){};a.push(c.createElement("button",{key:S(t,!0),className:"synofoto-wrap-action-button",type:"button",onClick:r},P(i,t)));return}if("url"===l.type){var s=l.url?l.url:"",d=(0,b.l)("{0}".concat(i,"{1}"),[{url:s,target:"_self"}]);a.push(c.createElement(p.Z,{key:S(t,!0),text:d}));return}a.push(P(i,t))}),a.push(P(o[o.length-1],o.length-1))),a},U=(0,t(5853).Ky)({DownloadPcClient:"DOWNLOAD_PC_CLIENT"}),B=t(5943),G=t(2916),M=function(){return c.createElement("div",{className:"synofoto-external-convert-intro-option-item-action-ready"},c.createElement("div",{className:"icon-ready"}),(0,h.n6)("common","ready"))},X=function(){return(0,G.Nt)()&&localStorage.getItem("clientSiteUrl")?localStorage.getItem("clientSiteUrl"):s.SynoAutoUpdateUrl},F=function(){var e=X();return(0,T.getWinDesktopUtilityDownloadLink)(e,_.Ey)},V=function(){var e=X();return{macIntelPcClientDownloadLink:(0,T.getMacDesktopUtilityDownloadLinkByArch)(e,_.Ey,"x86"),macArmPcClientDownloadLink:(0,T.getMacDesktopUtilityDownloadLinkByArch)(e,_.Ey,"arm")}},W=function(e,n){return{type:"function",function:function(){n({type:U.DownloadPcClient,url:e})}}},K=function(e,n,t,o,a,i,l){var r=null;if(n)r=M();else{var d=a?(0,h.n6)("warning","refresh_for_extension_and_reupload_title"):(0,h.n6)("warning","refresh_for_extension_title"),m=a?(0,h.n6)("warning","refresh_for_extension_and_reupload_desc"):(0,h.n6)("warning","refresh_for_extension_desc"),u=c.createElement(p.Z,{text:m}),f=[{type:"function",function:function(){window.open((0,B.G6)()?_.X3.SAFARI:(0,B.vU)()?_.X3.FIREFOX:(0,B.tN)()?_.X3.EDGE:(0,B.i7)()?_.X3.CHROME:(0,B.eE)()?_.X3.SAFARI:_.X3.EDGE,"_blank"),(0,L.Z)(u,{title:d,confirmText:(0,h.n6)("action","proceed"),confirmHandler:function(){window.location.reload()}})}}];r=Z((0,h.n6)("action","install_embedded_url"),f)}var g=null;if(n){if(o&&t){if(i)g=M();else{var E,y="support-partial-codecs-hint",v=(0,B.eE)()?null:c.createElement(c.Fragment,null,c.createElement("div",{className:"synofoto-external-convert-intro-hint synofoto__".concat(l),"data-tooltip-html":(0,b.Z)((0,h.n6)("common","support_partial_codecs_tooltip"),s.PcClientSettingsCodecProtocol),"data-tooltip-id":y}),c.createElement(k.Z,{className:"synofoto-external-convert-intro-support-partial-codecs-tip",tipId:y,place:"right",type:_.sZ.WHITE_TIP}));g=c.createElement("div",{className:"synofoto-external-convert-intro-support-partial-codecs"},(E=(0,h.n6)("common","support_partial_codecs"),c.createElement("div",{className:"action-text","data-tooltip-id":_.ZP.GLOBAL_TOOLTIP_ID,"data-tooltip-content":E},E)),v)}}else if(o&&!t)g=Z((0,h.n6)("action","open_client"),[{type:"url",url:s.PcClientProtocol}]);else if(!o&&!t){if((0,B.eE)()){var x=V(),w=x.macIntelPcClientDownloadLink,N=x.macArmPcClientDownloadLink,C=[W(w,e),W(N,e)];g=Z((0,h.n6)("action","install_for_chips_embedded_url"),C)}else{var D=[W(F(),e)];g=Z((0,h.n6)("action","install_embedded_url"),D)}}}else g=(0,h.n6)("warning","install_extension_first");return{extensionItems:r,clientItems:g}},$=function(e){var n=e.dispatch,t=e.extensionEnabled,o=e.clientEnabled,a=e.clientInstalled,i=e.isUpload;return K(n,t,o,a,void 0!==i&&i,e.allCodecsSupported,e.theme)},q=t(7484),z=t.n(q),H=t(178),j=t.n(H),Y=t(7524);z().extend(j());var J=function(e){var n=e.title,t=e.items,o=e.theme,a=t.map(function(e,n){var t=n>0?"synofoto-border-top":"";return c.createElement(c.Fragment,{key:"external-convert-intro-option-item-".concat(n)},c.createElement("div",{className:"synofoto-external-convert-intro-option-item-image-wrapper ".concat(t)},c.createElement("div",{className:"synofoto-external-convert-intro-option-item-image icon-".concat(e.icon," synofoto__").concat(o)})),c.createElement("div",{className:"synofoto-external-convert-intro-option-item-title ".concat(t)},"".concat(n+1,". ").concat(e.title)),c.createElement("div",{className:"synofoto-external-convert-intro-option-item-action ".concat(t)},e.action))});return c.createElement(c.Fragment,null,c.createElement("div",{className:"synofoto-external-convert-intro-option-title"},n),a)},Q=function(e){var n,t,l,r,s=e.title,u=e.description,f=e.handleApply,g=e.handleCancel,E=e.handleClose,y=e.isOpen,v=e.confirmText,x=e.cancelText,w=e.showDontShowAgain,N=e.type,b=(0,d.I0)(),T=(0,a._)((0,c.useState)(!1),2),L=T[0],k=T[1],I=(0,d.v9)(R.Z.getBrowserExtensionEnabled),S=(0,d.v9)(R.Z.getPcClientEnabled),P=(0,d.v9)(R.Z.getPcClientInstalled),Z=(0,d.v9)(R.Z.getAllCodecsSupported),U=(0,O.Z)();return c.createElement(C,{isOpen:y,className:"synofoto-external-convert-intro-dialog",handleConfirm:function(){return(0,o._)(function(){return(0,i.Jh)(this,function(e){return f({dontShowAgain:w?L:void 0}),[2]})})()},handleCancel:function(){g({dontShowAgain:w?L:void 0})},handleClose:function(){E({dontShowAgain:w?L:void 0})},cancelText:x,confirmText:v,showCancel:""!==x,content:c.createElement("div",{className:"synofoto-external-convert-intro-content"},c.createElement("div",{className:"synofoto-external-convert-intro-title"},s),c.createElement(p.Z,{className:"synofoto-external-convert-intro-description",text:u}),c.createElement("div",{className:"synofoto-external-convert-intro-options"},c.createElement("div",{className:"synofoto-external-convert-intro-option","data-testid":"synofoto-external-convert-intro-option"},(n=[],l=(t=$({dispatch:b,extensionEnabled:I,clientEnabled:S,clientInstalled:P,isUpload:N===_.iR.EXTERNAL_CONVERT_INTRO_DIALOG_UPLOAD,allCodecsSupported:Z,theme:U})).extensionItems,r=t.clientItems,l&&n.push({title:(0,h.n6)("common","image_assistant_extension"),action:l,icon:"extension"}),r&&n.push({title:(0,h.n6)("common","image_assistant_client"),action:r,icon:"client"}),J({title:(0,h.n6)("warning","download_tools"),items:n,theme:U}))),function(){if(!(!I&&(0,B.i7)()&&("chs"===SYNO.SDS.Session.lang||"Beijing"===Y.Z.getStore().getState().getIn(["userInfo","profile","timezone"],""))))return null;var e=(0,B.eE)()?"Safari":"Edge";return c.createElement(D,{className:"synofoto-external-convert-intro-chrome-extension-note",text:(0,A.Z)((0,h.n6)("warning","chrome_extension_unavailable_warning"),e)})}(),w&&c.createElement(m.Z,{className:"synofoto-external-convert-intro-dont-show-again",labelText:(0,h.n6)("action","dont_show_again"),checked:L,onChange:function(){return k(!L)}}))),contentPadding:_.k3.NONE})};Q.propTypes={handleApply:r().func,handleCancel:r().func,handleClose:r().func,isOpen:r().bool.isRequired,confirmText:r().string,showDontShowAgain:r().bool,cancelText:r().string,title:r().string,description:r().string,type:r().oneOf([_.iR.EXTERNAL_CONVERT_INTRO_DIALOG_BROWSE,_.iR.EXTERNAL_CONVERT_INTRO_DIALOG_UPLOAD,_.iR.EXTERNAL_CONVERT_INTRO_DIALOG_VIDEO])},Q.defaultProps={handleApply:function(){},handleCancel:function(){},handleClose:function(){},cancelText:"",confirmText:(0,h.n6)("action","finish"),showDontShowAgain:!1,title:(0,h.n6)("warning","external_convert_intro_title"),description:(0,b.l)((0,h.n6)("warning","external_convert_intro_desc_embedded_url"),[{url:s.SynoDocsLinks.AutoConvertExtensionAndDesktopApp,target:"_blank",color:"var(--color-link-tier2)"}]),type:_.iR.EXTERNAL_CONVERT_INTRO_DIALOG_BROWSE};var ee=Q}}]);