PageSourceSearch

https://seedlang.com/assets/sentence_breakdown-0iwf4k11.js

js seedlang.com collected 2026-10-04 00:32:42 UTC 6,735 bytes, 81 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`b118a3387c06afdf625a4e3c513ea6a95901cac8`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`9d4f2c20-a0b6-403e-9403-b578565b4088`,e._sentryDebugIdIdentifier=`sentry-dbid-9d4f2c20-a0b6-403e-9403-b578565b4088`)}catch{}})();import{o as e}from"./chunk-BBRjo-9F.js";import{t}from"./react-CgWhlUet.js";import{t as n}from"./lodash-fRxZxyr8.js";import{t as r}from"./dist-DVwav7_F.js";import{t as i}from"./mobxreact.esm--Z-zxU5E.js";import{t as a}from"./dist-YdAS1Ajj.js";import{t as o}from"./emotion-styled.browser.esm-4FI-bo8L.js";import{t as s}from"./jsx-runtime-CLsEzmKX.js";import{t as c}from"./fa_warning-DYIF-Eok.js";import{t as l}from"./in_place_text_input-Bfa3KZIW.js";var u=s(),d=e(t()),f=a(),p=r(),m=n(),h,g=o.span`
2  font-size: ${e=>e.fontSize};
3  line-height: ${e=>e.lineHeight};
4  margin-right: ${e=>e.marginRight};
5  margin-left: ${e=>e.marginLeft};
6  padding: ${e=>e.padding};
7  padding-bottom: ${e=>e.borderBottom?`3px`:void 0};
8  cursor: ${e=>e.disableOnClick?`default`:e.selectable||e.showUnderline?`pointer`:`default`};
9  display: inline-flex;
10  align-items: center;
11  position: relative;
12  ${e=>e.borderBottom&&`
13    &::after {
14      content: '';
15      position: absolute;
16      bottom: 0;
17      left: ${e.borderBottomStyle===`dotted`?`2px`:`0px`};
18      right: ${e.borderBottomStyle===`dotted`?`2px`:`0px`};
19      display: block;
20      border-bottom: ${e.borderBottom};
21      transition: opacity 0.15s ease-in-out;
22    }
23  `}
24  ${e=>!e.disableOnClick&&(e.selectable||e.showUnderline)&&`
25    &:active {
26      transform: scale(0.98);
27    }
28  `}
29  input {
30    text-align: center;
31    border-radius: 5px;
32    font-size: 18px;
33    padding: 4px 5px;
34    height: 34px;
35    margin: 2px 0;
36    border: ${e=>e.inputFocused&&!e.inputBackground?`2px solid #333`:`2px solid rgba(255, 255, 255, 0)`};
37    background: ${e=>e.inputBackground};
38    color: ${e=>e.inputBackground?`#fbfbfb`:`#333`};
39    cursor: ${e=>e.inputBackground?`pointer`:`default`};
40  }
41`,_=o.div`
42  position: absolute;
43  top: 2px;
44  left: -8px;
45  right: -8px;
46  bottom: 2px;
47  background: ${e=>e.background};
48  border-radius: 4px;
49  z-index: 0;
50`,v=o.div`
51  z-index: 1;
52`,y=o.div`
53  background: white;
54  border: 2px solid #FFF;
55  border-radius: 5px;
56  height: 38px;
57  width: ${e=>e.width};
58`,b=o.div`
59  height: ${e=>e.height};
60  width: ${e=>e.width};
61  border-bottom: 2px solid ${e=>e.color||`#333`};
62`,x=i(h=class extends d.Component{render(){return this.props.wordText?(0,u.jsxs)(g,{padding:`0 ${(0,p.pixify)(this.props.paddingHorizontal)}`,marginRight:this.props.wordText&&(0,m.last)(this.props.wordText)===`'`?`0px`:(0,p.pixify)(this.props.marginRight),marginLeft:this.props.marginLeft,fontSize:(0,p.pixify)(this.props.fontSize),lineHeight:(0,p.pixify)(this.props.lineHeight),borderBottom:this.props.borderBottom,borderBottomStyle:this.props.borderBottomStyle,selectable:this.props.selectable,showUnderline:this.props.showUnderline,onClick:()=>this.props.onClick(this.props.wordAssociation),inputFocused:this.props.inputFocused,inputBackground:this.props.inputBackground,disableOnClick:this.props.disableOnClick,children:[this.props.highlightBackgroun
62d&&(0,u.jsx)(_,{background:this.props.highlightBackground}),!this.props.textInput&&!this.props.showTextInput&&!this.props.showGapUnderline&&this.props.wordText&&(0,u.jsx)(v,{children:this.props.wordText.normalize(`NFC`)}),this.props.showGapUnderline&&(0,u.jsx)(b,{color:this.props.color,height:(0,p.pixify)(this.props.fontSize||20),width:(0,p.pixify)(this.props.wordText?this.props.wordText.length*20:70)}),this.props.textInput&&this.props.hideTextInput&&(0,u.jsx)(y,{width:(0,p.pixify)(40+this.props.inputWordLength*10)}),this.props.showTextInput&&(0,u.jsx)(l,{refs:`input`,style:{width:40+this.props.inputWordLength*10},disabled:this.props.disableInput,caretPosition:this.props.wordAssociation?.id===this.props.focusedWordAssociationId?this.props.caretPosition:null,id:this.props.wordAssociation?.id,submitOnEnter:!0,tabIndex:this.props.index+1,onSubmit:this.props.onSubmit,readOnly:this.props.inputCorrect||this.props.inputIncorrect,value:this.props.inputIncorrect||this.props.inputCorrect?this.props.wordText:this.props.inputValue,onFocus:()=>this.props.onInputFocus(this.props.wordAssociation?.id),onChange:e=>this.props.onInputChange(e,this.props.wordAssociation?.id),focusOnMount:this.props.inputFocused})]}):(0,u.jsx)(`span`,{})}})||h,S=(0,f.SentenceBreakdownItemWrapper)(x),C,w,T=o.div`
63  width: ${e=>(0,p.pixify)(e.width)};
64  position: relative;
65  display: flex;
66  flex-wrap: wrap;
67  cursor: ${e=>e.cursor};
68  margin: ${e=>e.margin};
69  pointer-events: ${e=>e.pointerEvents};
70  justify-content: ${e=>e.center?`center`:`left`};
71  .fa-warning {
72    display: absolute;
73    top: 0;
74    right: 0;
75  }
76`,E=o.span`
77  display: inline-flex;
78  align-items: center;
79  margin-bottom: 3px;
80`,D=i(C=(w=class extends d.Component{render(){return(0,u.jsxs)(T,{pointerEvents:this.props.pointerEvents,cursor:this.props.cursor,center:this.props.center,margin:!this.props.margin&&this.props.center?`0 -10px 0 0`:this.props.margin,width:this.props.width,children:[(0,p.isPresent)(this.props.wordAssociations)&&this.props.wordAssociations.map((e,t)=>(0,u.jsxs)(E,{children:[(e.precedingPunctuation||e.punctuation&&this.props.sentence?.rightToLeftLanguage)&&(0,u.jsx)(S,{...this.props,wordText:e.punctuation&&this.props.sentence?.rightToLeftLanguage?e.punctuation:e.precedingPunctuation,marginRight:this.props.sentence.languageId===`FR`&&(0,m.last)(e.precedingPunctuation)===`«`?`3px`:`0px`,showTransparentUnderline:!0}),this.props.wordAssociations[t-1]?.targetText?.endsWith(`'`)&&(0,u.jsx)(S,{...this.props,wordAssociation:this.props.wordAssociations[t-1],index:t-1,onSubmit:this.props.onSubmit,onClick:this.props.onClick}),!e.targetText?.endsWith(`'`)&&(0,u.jsx)(S,{...this.props,wordAssociation:e,index:t,onSubmit:this.props.onSubmit,onClick:this.props.onClick}),e.punctuation&&!this.props.sentence.rightToLeftLanguage&&(0,u.jsx)(S,{...this.props,wordText:e.punctuation,marginRight:e.punctuation===`-`?`0px`:(0,p.pixify)(this.props.marginRight),marginLeft:this.props.sentence.languageId===`FR`&&[`?`,`!`,`:`,`»`].includes(e.punctuation[0])?`3px`:0,showTransparentUnderline:!0})]},e.id)),(this.props.alertOnNoSelections&&!this.props.sentence.hasSelections||this.props.alertOnNoHighlightWordAssociationIds&&(0,p.isBlank)(this.props.highlightWordAssociationIds))&&(0,u.jsx)(c,{})]})}},w.defaultProps={width:`100%`},w))||C,O=(0,f.SentenceBreakdownWrapper)(D);export{O as t};
81//# sourceMappingURL=sentence_breakdown-0iwf4k11.js.map

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.