PageSourceSearch

https://print64.de:8443/cp/javascript/components/pages/OdbcAddPage.js?c21c1b02566b79fff56c

js print64.de collected 2026-10-03 18:44:37 UTC 6,363 bytes, 2 lines download raw bytes

1(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/OdbcAddPage"],{1526(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>d});var t=i(396),a=i(715),o=i(397);const d=({onClose:e,isOpen:n=!0,closeOnFormSuccess:i=!0,closeUrl:d="..",form:r,...s})=>{const c=(0,a.useNavigate)(),[l,u]=(0,t.useState)(n),m=(0,t.useRef)(null),f=(0,t.useCallback)((...n)=>{const i=e??(()=>c(d,{preventScrollReset:!0}));u(!1),m.current=setTimeout(()=>{i(...n),m.current=null},300)},[d,c,e]);(0,t.useEffect)(()=>()=>{m.current&&clearTimeout(m.current)},[]),(0,t.useEffect)(()=>{n?m.current&&clearTimeout(m.current):u(n)},[n]);const p=(0,t.useMemo)(()=>{if(r&&i){if((0,t.isValidElement)(r))return(0,t.cloneElement)(r,{onSuccess:(...e)=>{r.props.onSuccess?.(...e),f()}});if("object"==typeof r)return{...r,onSuccess:(...e)=>{r.onSuccess?.(...e),f()}}}return r},[i,f,r]);return(0,t.jsx)(o.Drawer,{...s,form:p,onClose:f,isOpen:l})}},2844(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>D});var t=i(396),a=i(787),o=i.n(a),d=i(715
1),r=i(741),s=i(810),c=i(95),l=i(397),u=i(1526),m=i(1371),f=i(785),p=i(2840),v=i(1256),b=i.n(v),k=i(2845),S=i.n(k);const g=c.Locale.getTranslate("components.pages.OdbcAdd"),h=(e,n)=>e[`BIT_${n}`]??[],O=({domainId:e,drivers:n})=>{const i=(0,r.useApolloClient)(),a=(0,d.useNavigate)(),o=(0,l.useTranslate)("components.pages.OdbcAdd"),[c,v]=(0,t.useState)({name:"",description:"",bit:64,driver:h(n,64)[0]}),k=h(n,c.bit),[O]=(0,s.useMutation)(S(),{update(e){(0,p.evictOdbcDsnConnectionsCache)(e)},onCompleted({addOdbcDsnConnection:{connection:e}}){i.writeQuery({query:b(),data:{connection:e},variables:{id:e.id}}),a(`../${(0,f.getId)(e.id)}/edit`)}});return(0,t.jsx)(u.default,{isOpen:!0,"data-type":"add-odbc",title:(0,t.jsx)(g,{content:"title"}),size:"xs",closeOnFormSuccess:!1,form:(0,t.jsxs)(m.default,{values:c,onFieldChange:(e,i)=>{v(t=>{if("bit"===e){const e=Number(i);return{...t,bit:e,driver:h(n,e)[0]}}return(0,l.setIn)(t,e,i)})},onSubmit:n=>({domainId:e??null,...n}),mutation:O,applyButton:!1,submitButton:{children:(0,t.jsx)(g,{content:"submit"}),"data-type":"odbc-dsn-create-button"},vertical:!0,children:[(0,t.jsx)(l.FormFieldText,{name:"name",label:(0,t.jsx)(g,{content:"nameLabel"}),required:!0,autoFocus:!0,inputProps:{maxLength:"32"}}),(0,t.jsx)(l.FormFieldText,{name:"description",label:(0,t.jsx)(g,{content:"descriptionLabel"}),inputProps:{maxLength:"32"}}),(0,t.jsxs)(l.FormFieldSelect,{label:(0,t.jsx)(g,{content:"platform"}),name:"bit",children:[(0,t.jsx)("option",{value:32,"data-cy":32,children:o("bitValue",{bit:32})}),(0,t.jsx)("option",{value:64,"data-cy":64,children:o("bitValue",{bit:64})})]}),(0,t.jsx)(l.FormFieldSelect,{label:(0,t.jsx)(g,{content:"driver"}),name:"driver",children:k.map(e=>(0,t.jsx)("option",{value:e,"data-cy":e,children:e},e))})]})})};O.propTypes={domainId:o().string,drivers:o().shape({BIT_32:o().arrayOf(o().string).isRequired,BIT_64:o().arrayOf(o().string).isRequired}).isRequired};const D=O},2843(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>t.default});var t=i(2844)},2840(e,n,i){"use strict";i.r(n),i.d(n,{evictOdbcDsnConnectionsCache:()=>t});const t=e=>{e.evict({id:e.identify({__typename:"Server"}),fieldName:"odbcDsnConnections"}),Object.values(e.extract()).filter(({__typename:e})=>"Domain"===e).map(n=>e.evict({id:e.identify(n),fieldName:"odbcDsnConnections"}))}},2845(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddOdbcDsnConnection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddOdbcDsnConnectionInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addOdbcDsnConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"domain"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"DomainSubscriptionOdbcLimitFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"connection"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OdbcEditFragment"},directives:[]}]}}]}}]}}],loc:{start:0,end:380}};t.loc.source={body:'#import "queries/OdbcEditFragment.graphql"\n#import "queries/DomainSubscriptionOdbcLimitFragment.graphql"\n\nmutation AddOdbcDsnConnection($input: AddOdbcDsnConnectionInput!) {\n    addOdbcDsnConnection(input: $input) {\n        domain {\n            id\n            ...DomainSubscriptionOdbcLimitFragment\n        }\n        connection {\n            ...OdbcEditFragment\n        }\n    }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)})}function d(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){d(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){d(e,n)}),e.definitions&&e.definitions.forEach(function(e){d(e,n)})}t.definitions=t.definitions.concat(o(i(1257).definitions)),t.definitions=t.definitions.concat(o(i(1292).definitions));var r={};function s(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}t.definitions.forEach(function(e){if(e.name){var n=new Set;d(e,n),r[e.name.value]=n}}),e.exports=t,e.exports.AddOdbcDsnConnection=function(e,n){var i={kind:e.kind,definitions:[s(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var t=r[n]||new Set,a=new Set,o=new Set;for(t.forEach(function(e){o.add(e)});o.size>0;){var d=o;o=new Set,d.forEach(function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach(function(e){o.add(e)}))})}return a.forEach(function(n){var t=s(e,n);t&&i.definitions.push(t)}),i}(t,"AddOdbcDsnConnection")}}]);
2//# sourceMappingURL=OdbcAddPage.js.map?c21c1b02566b79fff56c

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.