export const __webpack_esm_id__=32401;export const __webpack_esm_ids__=[32401];export const __webpack_esm_modules__={32401(e,t,n){n.d(t,{Wz:()=>u,p$:()=>c,qC:()=>d});var o=n(12454),r=n(88338),s=n(79069),i=n(11310),a=n(9297);const d=(e,t,n)=>{if(!e)return;const s=new r.jv;return s.id=e.id||t.id,s.name=e.name||t.name,s.repositoryId=e.repositoryId||t.repositoryId,s.model=e.model||t.model,s.contextSize=e.contextSize||t.contextSize,s.contextSizeCopy=t.contextSize,s.temperature.value=void 0!==e.temperature?e.temperature:t.temperature,s.topP.value=void 0!==e.topP?e.topP:t.topP,s.seed=e.seed||t.seed,s.instructions=l(e.instructions,t.instructions),m(s,n,t.assistantExtractionMethods,e.assistantExtractionMethods),function(e,t,n){if(!e)return;const s=e.map(n=>{const s={method:n.method||t.method,expanded:n.expanded||t.expanded};return n.method!==o.eA.IRI_DISCOVERY_SEARCH&&n.method!==o.eA.AUTOCOMPLETE_IRI_DISCOVERY_SEARCH||(s.selected=e.some(e=>e.method===n.method)),n.method===o.eA.AUTOCOMPLETE_IRI_DISCOVERY_SEARCH&&(s.maxNumberOfResultsPerCall=n._maxNumberOfResultsPerCall||t.maxNumberOfResultsPerCall),new r.B1(s)});n.additionalExtractionMethods.setAdditionalExtractionMethod(s)}(e.additionalExtractionMethods,t.additionalExtractionMethods,s),s},l=(e,t)=>{if(!e&&!t)return;const n=e&&e.systemInstruction||t.systemInstruction,o=e&&e.userInstruction||t.userInstruction;return new r.ce({systemInstruction:n,userInstruction:o,defaultSystemInstruction:t.systemInstruction,defaultUserInstruction:t.userInstruction})},m=(e,t,n,o=[])=>{const i=n.filter(e=>!o.some(t=>t.method===e.method)),d=n.find(e=>"sparql_search"===e.method);[...o,...i].forEach(n=>{const i=o.some(e=>e.method===n.method);let l="";i&&"sparql_search"===n.method&&(a.A1.CREATE===t?l="":n.sparqlQuery?l="sparqlQuery":n.ontologyGraph&&(l="ontologyGraph"));const m=t===a.A1.EDIT||t===a.A1.CLONE,c=new r.sH({selected:m&&i,method:n.method,sparqlOption:l,ontologyGraph:n.ontologyGraph||d.ontologyGraph,addMissingNamespaces:n.addMissingNamespaces,sparqlQuery:new s.T8({value:n.sparqlQuery||d.sparqlQuery,minLength:1,maxLength:2380}),connectorType:n.connectorType,connectorFields:n.connectorFields,selectedConnectorField:n.connectorFields[0],similarityIndex:n.similarityIndex,similarityIndexThreshold:n.similarityIndexThreshold&&new s.U0({value:n.similarityIndexThreshold,minValue:0,maxValue:1,step:.1}),maxNumberOfTriplesPerCall:0===n.maxNumberOfTriplesPerCall?null:n.maxNumberOfTriplesPerCall,queryTemplate:n.queryTemplate&&new s.T8({value:n.queryTemplate,minLength:1,maxLength:2380}),retrievalConnectorInstance:n.retrievalConnectorInstance});e.assistantExtractionMethods.setExtractionMethod(c)})},c=(e,t)=>{if(!e)return new o.Ff;const n=e.map(e=>u(e,t));return new o.Ff(n)},u=(e,t)=>{if(!e)return;const n=(0,i.A)();return new o.TI({id:e.id,name:e.name,repositoryId:e.repositoryId,isRepositoryDeleted:!t.includes(e.repositoryId),model:e.model,contextSize:"openai-assistants"===e.api?null:e.contextSize,temperature:e.temperature,topP:e.topP,seed:e.seed,instructions:x(e.instructions),assistantExtractionMethods:p(e.assistantExtractionMethods),additionalExtractionMethods:I(e.additionalExtractionMethods),compatibility:e.compatibility},n)},p=e=>{if(e)return e.map(e=>h(e))},h=e=>{if(e)return new o.WJ({method:e.method,ontologyGraph:e.ontologyGraph,addMissingNamespaces:e.addMissingNamespaces,sparqlQuery:e.sparqlQuery,similarityIndex:e.similarityIndex,connectorFields:e.connectorFields,connectorType:e.connectorType,similarityIndexThreshold:e.similarityIndexThreshold,maxNumberOfTriplesPerCall:e.maxNumberOfTriplesPerCall,queryTemplate:e.queryTemplate,retrievalConnectorInstance:e.retrievalConnectorInstance})},I=e=>{if(e)return e.map(e=>y(e))},y=e=>{if(e)return e.method===o.eA.AUTOCOMPLETE_IRI_DISCOVERY_SEARCH?new o.zn({method:e.method,maxNumberOfResultsPerCall:e.limit||0}):e.method===o.eA.IRI_DISCOVERY_SEARCH?new o.zn({method:e.method}):void 0},x=e=>{if(e)return new o.Sk({systemInstruction:e.systemInstruction,userInstruction:e.userInstruction})}}};
//# sourceMappingURL=32401.b1b8c30a388e1754bd16.bundle.js.map