PageSourceSearch

https://semopenalex.org/assets/ontodia-selection-ef288929b679fe583175-bundle.js

js semopenalex.org collected 2026-10-02 07:26:11 UTC 9,640 bytes, 1 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[45758,50081,86818],{4417(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},15547(e,t,o){var n=o(31601),r=o(76314)(n);r.push([e.id,"/*\n * Copyright (C) 2015-2026, metaphacts GmbH\n */\n.Selection--selectionTools {\n  position: absolute;\n  top: -32px;\n  left: 0;\n  display: flex;\n  align-items: center;\n  border: 1px solid #F4DDC9;\n  background: #FFFFFF;\n  height: 32px;\n  gap: 8px;\n  padding: 8px;\n}\n\n.Selection--selectionTool {\n  background-color: transparent;\n  border: 0 none;\n  cursor: pointer;\n  outline: none;\n  padding: 0;\n  pointer-events: auto;\n  font-size: 16px;\n  opacity: 1;\n  color: var(--mp-color-dark-500);\n}\n\n.Selection--selectionTool:disabled {\n  cursor: not-allowed;\n  opacity: 0.2;\n}",""]),r.locals={selectionTools:"Selection--selectionTools",selectionTool:"Selection--selectionTool"},e.exports=r},17143(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateItem=void 0;const n=o(47397),r=o(82329),s=o(29093),a=o(58215),i=o(78025),l=o(30524),c=o(59459),p=o(94155);class u extends s.Component{static contextType=i.TemplateContext;compilation=a.Cancellation.cancelled;constructor(e){super(e),this.state={renderedTemplate:null}}componentDidMount(){this.compileTemplate(this.props)}UNSAFE_componentWillReceiveProps(e){if(!d(e.template,this.props.template)){const{compiledTemplate:n}=this.state;n&&(t=e.template,o=this.props.template,t===o||t.source===o.source)?this.renderTemplate(e,n):this.compileTemplate(e)}var t,o}shouldComponentUpdate(e,t){return!(d(this.props.template,e.template)&&m(this.props.componentProps,e.componentProps)&&this.props.componentMapper===e.componentMapper&&m(this.state,t))}componentWillUnmount(){this.compilation.cancelAll()}render(){if(this.state.error)return s.createElement(p.ErrorNotification,{errorMessage:this.state.error});const{componentProps:e,componentMapper:t,children:o}=this.props,{renderedTemplate:r}=this.state,a=(i=r,Array.isArray(i)?0===i.length?null:i.length>1?i:i[0]:i);var i;let l;e&&!e?.testid?.endsWith("-template")&&(e.testid=`${e?.testid}-template`),l="string"==typeof a?s.createElement("span",null,a):Array.isArray(a)?a:a?s.cloneElement(a,{...e,...a.props,className:n(e?.className??"",a.props.className),children:a.props.children}):null,l&&t&&(l=t(l));const c=Array.isArray(l)?s.createElement(s.Fragment,{},...l):l;return o?s.createElement(s.Fragment,null,c,o):c}compileTemplate(e){this.compilation.cancelAll();const t=e.template.source;if(t)if("string"==typeof t){const{localScope:o}=this.context;this.compilation=new a.Cancellation,this.compilation.map(o.prepare(t)).observe({value:t=>this.renderTemplate(e,t),error:e=>this.setState({compiledTemplate:void 0,error:e})})}else this.renderTemplate(e,t);else this.renderTemplate(e,c.TemplateScope.emptyTemplate())}renderTemplate(e,t){const{dataContext:o}=this.context,n=(0,c.mergeInContextOverride)(o,e.template.options);try{const e=(0,l.renderCompiledTemplate)(t,n);this.setState({compiledTemplate:t,renderedTemplate:e,error:void 0})}catch(e){this.setState({compiledTemplate:t,renderedTemplate:void 0,error:e})}}}function d(e,t){return e===t||e.source===t.source&&(0,r.isEqual)(e.options,t.options)}function m(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||"object"!=typeof t)return!1;for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&(!Object.prototype.hasOwnProperty.call(t,o)||!Object.is(e[o],t[o])))return!1;for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&!Object.prototype.hasOwnProperty.call(e,o))return!1;return!0}t.TemplateItem=u},23506(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>_});var n=o(85072),r=o.n(n),s=o(97825),a=o.n(s),i=o(77659),l=o.n(i),c=o(55056),p=o.n(c),u=o(10540),d=o.n(u),m=o(41113),h=o.n(m),f=o(15547),g=o.n(f),v={};for(const e in f)"default"!==e&&(v[e]=()=>f[e]);o.d(t,v);var y={};y.styleTagTransform=h(),y.setAttributes=p(),y.insert=l().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=d();var b=r()(g(),y);
1if(!g().locals||e.hot.invalidate){var T=!g().locals,C=T?f:g().locals;e.hot.accept(15547,t=>{f=o(15547),g=o.n(f),function(e,t,o){if(!e&&t||e&&!t)return!1;var n;for(n in e)if((!o||"default"!==n)&&e[n]!==t[n])return!1;for(n in t)if(!(o&&"default"===n||e[n]))return!1;return!0}(C,T?f:g().locals,T)?(C=T?f:g().locals,b(g())):e.hot.invalidate()})}e.hot.dispose(function(){b()});const _=g()&&g().locals?g().locals:void 0},23804(e,t,o){e.exports=o(16293)(8970)},65793(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Selection=void 0;const n=o(28854);Object.defineProperty(t,"Selection",{enumerable:!0,get:function(){return n.Selection}});const r=o(29093),s=o(78025),a=o(70796),i=o(61763),l=o(93333),c=o(56416),p=o(23586),u=o(85066),d=o(23506);function m(e){const t=r.useContext(a.EventContext),o=r.useContext(s.TemplateContext),i=r.useContext(c.OntodiaContext),l=r.useContext(n.WorkspaceContext);return r.createElement(h,{...e,events:t,templateContext:o,ontodiaContext:i,ontodiaWorkspace:l})}function h(e){const[t,o]=r.useState();return r.useEffect(()=>{(function(e){const{events:t,templateContext:o,ontodiaContext:s,ontodiaWorkspace:a}=e,l=e.haloTemplate??`\n    <div className='${d.default.selectionTools}'>\n      <button name='remove'\n        className='${d.default.selectionTool} material-symbols-outlined'\n        title='Remove nodes from the diagram'\n      >close</button>\n      <button name='zoomToFit'\n        className='${d.default.selectionTool} material-symbols-outlined'\n        title='Fit nodes to screen'\n      >zoom_out_map</button>\n      <button name='group'\n        className='${d.default.selectionTool} material-symbols-outlined'\n        title='{{#if hasGroups}}Cannot create nested groups{{else}}Group nodes{{/if}}'\n        disabled='{{pass-value hasGroups}}'\n      >crop_free</button>\n    </div>\n  `;return o.localScope.prepare(l).map(e=>o=>{const l=r.useContext(n.CanvasContext),c={...o};return r.createElement(u.TemplateItem,{template:{source:e,options:c},componentMapper:e=>(0,p.mapSelectionTemplateComponent)(e,{events:t,ontodiaContext:s,workspace:a,canvasCommands:l.canvas.getCommands(),shouldMapTemplateElement:i.shouldMapTemplateElement,canvas:l.canvas})})})})(e).observe({value:e=>{o(()=>e)}})},[]),r.createElement(n.Selection,{...e},t?r.createElement(t):null)}t.default=m,(0,l.defineWidgetStatics)(m,{attachment:n.WidgetAttachment.OverElements,defaultWidgetId:"selectionHalo"})},67873(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeyedBufferPool=void 0;const n=o(74344);t.KeyedBufferPool=class{cancellation;onLoad;onCompleted;activeCount=0;_targets;_result;_error;loadingTargets=n.Set();constructor(e,t,o,n){this.cancellation=t,this.onLoad=o,this.onCompleted=n,this._targets=e.keySeq().toSet(),this._result=e}get targets(){return this._targets}get result(){return this._result}get error(){return this._error}get loading(){return this.activeCount>0}put(e){this._targets=this._targets.merge(e.keySeq()),this._result=this._result.merge(e)}load(e){0!==e.size&&(this.activeCount++,this._targets=this._targets.merge(e),this.loadingTargets=this.loadingTargets.merge(e),this.cancellation.map(this.onLoad(e)).observe({value:e=>{this._result=this._result.merge(e)},error:e=>{this._error=e},end:()=>{if(this.activeCount--,0===this.activeCount&&!this.cancellation.aborted){const e=this.loadingTargets;this.loadingTargets=n.Set(),this.onCompleted(e)}}}))}}},72273(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseResourceService=void 0;const n=o(74344),r=o(38774),s=o(26742),a=o(58215),i=o(76516),l=o(76573);function c(e){return e&&e.repository?e.repository:"default"}t.BaseResourceService=class{serviceUrl;pools=new Map;constructor(e){this.serviceUrl=e}getPool(e,t){const o=function(e,t){let o=e?.repository??"default";t?.type&&(o+=`-${t.type}-${t.identifier?t.identifier:"no_identifier"}`);return o}(e,t),n=c(e);return this.pools.has(o)||this.pools.set(o,new i.BatchedPool({fetch:e=>this.fetchResources(e.toArray(),n,t)})),this.pools.get(o)}getResource(e,t,o){return this.getPool(t,o).query(e.value)}getResources(e,t,o){if(0===e.length)return r.constant(n.Map());const s=this.getPool(t,o);if(e.length>=s.batchSize){const r=c(t);return this.fetchResources(e.map(e=>e.value),r,o).map(t=>n.Map().withMutations(o=>{for(const n of e)o.set(n,t.get(n.value))}))}const a=e.map(e=>this.getResource(e,t,o).map(t=>[e,t]));return r.combine(a).map(n.Map).toProperty()}createRequest(e,t,o){const n=(0,l.post)(this.serviceUrl).send(e).query({repository:t}).type("application/json").accept("application/json");return(0,s.applyApplicationContextParameters)(n,o)}fetchResources(e,t,o){const r=this.createRequest(e,t,o);return(0,a.requestAsProperty)(r).map(e=>{const t=e.body;return n.Map(t)})}}},85066(e,t,o){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});o(27527).__exportStar(o(17143),t)},94155(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearNotifications=t.removeNotification=t.addNotification=void 0;const n=o(27527);var r=o(80477);Object.defineProperty(t,"addNotification",{enumerable:!0,get:function(){return r.addNotification}}),Object.defineProperty(t,"removeNotification",{enumerable:!0,get:function(){return r.removeNotification}}),Object.defineProperty(t,"clearNotifications",{enumerable:!0,get:function(){return r.clearNotifications}}),n.__exportStar(o(18642),t),n.__exportStar(o(38091),t)}}]);

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.