ziya 0.1.49__py3-none-any.whl → 0.1.50__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ziya might be problematic. Click here for more details.
- app/agents/.agent.py.swp +0 -0
- app/agents/agent.py +315 -113
- app/agents/models.py +439 -0
- app/agents/prompts.py +32 -4
- app/main.py +70 -7
- app/server.py +403 -14
- app/utils/code_util.py +641 -215
- pyproject.toml +2 -3
- templates/asset-manifest.json +18 -20
- templates/index.html +1 -1
- templates/static/css/{main.87f30840.css → main.2bddf34e.css} +2 -2
- templates/static/css/main.2bddf34e.css.map +1 -0
- templates/static/js/46907.90c6a4f3.chunk.js +2 -0
- templates/static/js/46907.90c6a4f3.chunk.js.map +1 -0
- templates/static/js/56122.1d6a5c10.chunk.js +3 -0
- templates/static/js/56122.1d6a5c10.chunk.js.LICENSE.txt +9 -0
- templates/static/js/56122.1d6a5c10.chunk.js.map +1 -0
- templates/static/js/83953.61a908f4.chunk.js +3 -0
- templates/static/js/83953.61a908f4.chunk.js.map +1 -0
- templates/static/js/88261.1e90079d.chunk.js +3 -0
- templates/static/js/88261.1e90079d.chunk.js.map +1 -0
- templates/static/js/{96603.863a8f96.chunk.js → 96603.18c5d644.chunk.js} +2 -2
- templates/static/js/{96603.863a8f96.chunk.js.map → 96603.18c5d644.chunk.js.map} +1 -1
- templates/static/js/{97902.75670155.chunk.js → 97902.d1e262d6.chunk.js} +3 -3
- templates/static/js/{97902.75670155.chunk.js.map → 97902.d1e262d6.chunk.js.map} +1 -1
- templates/static/js/main.9b2b2b57.js +3 -0
- templates/static/js/{main.ee8b3c96.js.LICENSE.txt → main.9b2b2b57.js.LICENSE.txt} +8 -2
- templates/static/js/main.9b2b2b57.js.map +1 -0
- {ziya-0.1.49.dist-info → ziya-0.1.50.dist-info}/METADATA +4 -5
- {ziya-0.1.49.dist-info → ziya-0.1.50.dist-info}/RECORD +36 -35
- templates/static/css/main.87f30840.css.map +0 -1
- templates/static/js/23416.c33f07ab.chunk.js +0 -3
- templates/static/js/23416.c33f07ab.chunk.js.map +0 -1
- templates/static/js/3799.fedb612f.chunk.js +0 -2
- templates/static/js/3799.fedb612f.chunk.js.map +0 -1
- templates/static/js/46907.4a730107.chunk.js +0 -2
- templates/static/js/46907.4a730107.chunk.js.map +0 -1
- templates/static/js/64754.cf383335.chunk.js +0 -2
- templates/static/js/64754.cf383335.chunk.js.map +0 -1
- templates/static/js/88261.33450351.chunk.js +0 -3
- templates/static/js/88261.33450351.chunk.js.map +0 -1
- templates/static/js/main.ee8b3c96.js +0 -3
- templates/static/js/main.ee8b3c96.js.map +0 -1
- /templates/static/js/{23416.c33f07ab.chunk.js.LICENSE.txt → 83953.61a908f4.chunk.js.LICENSE.txt} +0 -0
- /templates/static/js/{88261.33450351.chunk.js.LICENSE.txt → 88261.1e90079d.chunk.js.LICENSE.txt} +0 -0
- /templates/static/js/{97902.75670155.chunk.js.LICENSE.txt → 97902.d1e262d6.chunk.js.LICENSE.txt} +0 -0
- {ziya-0.1.49.dist-info → ziya-0.1.50.dist-info}/LICENSE +0 -0
- {ziya-0.1.49.dist-info → ziya-0.1.50.dist-info}/WHEEL +0 -0
- {ziya-0.1.49.dist-info → ziya-0.1.50.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see 88261.1e90079d.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[88261],{88261:(e,n,s)=>{s.r(n),s.d(n,{default:()=>S});var t=s(65043),a=s(78626),r=s(89379),o=s(82137),i=s(36011),l=s(41982),c=s(6051),d=s(4015),g=s(97606),h=s(57721),m=s(53727),v=s(58168);const u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};var p=s(22172),x=function(e,n){return t.createElement(p.A,(0,v.A)({},e,{ref:n,icon:u}))};const y=t.forwardRef(x);var f=s(63390),C=s(67407),j=s(70579);const A=e=>{let{index:n}=e;const{currentMessages:s,currentConversationId:v,addMessageToConversation:u,setIsStreaming:p,setConversations:x,streamingConversations:A,addStreamingConversation:b,setStreamedContentMap:w,removeStreamingConversation:k}=(0,a.v)(),[z,I]=(0,t.useState)(!1),[S,M]=(0,t.useState)(s[n].content),{checkedKeys:R}=(0,i.X)(),{TextArea:V}=l.A;return(0,j.jsx)("div",{children:z?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(V,{style:{width:"38vw",height:"100px"},value:S,onChange:e=>M(e.target.value)}),(0,j.jsxs)(c.A,{style:{marginTop:"8px"},children:[(0,j.jsx)(d.Ay,{icon:(0,j.jsx)(m.A,{}),onClick:()=>{I(!1),M(s[n].content)},size:"small",children:"Cancel"}),(0,j.jsx)(d.Ay,{icon:(0,j.jsx)(y,{}),onClick:()=>{x((e=>e.map((e=>{if(e.id===v){const s=e.messages.map(((e,s)=>s===n?(0,r.A)((0,r.A)({},e),{},{content:S,_timestamp:Date.now()}):e));return(0,r.A)((0,r.A)({},e),{},{messages:s,_version:Date.now()})}return e})))),I(!1)},size:"small",children:"Save"}),(0,j.jsx)(d.Ay,{icon:(0,j.jsx)(f.A,{}),onClick:async()=>{I(!1),w(new Map);const e=s.slice(0,n+1);e[n]=(0,r.A)((0,r.A)({},e[n]),{},{content:S,_timestamp:Date.now()}),x((n=>n.map((n=>n.id===v?(0,r.A)((0,r.A)({},n),{},{messages:e}):n)))),b(v);try{const e=await(0,o.f)(v,S,A.has(v),s,w,p,(0,h.F)(R),u,k);if(e){u({content:e,role:"assistant"},v)}}catch(t){console.error("Error sending message:",t),k(v)}finally{p(!1)}},size:"small",type:"primary",children:"Submit"})]})]}):(0,j.jsx)(g.A,{title:"Edit",children:(0,j.jsx)(d.Ay,{icon:(0,j.jsx)(C.A,{}),onClick:()=>{I(!0)}})})})};var b=s(91686);const w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};var k=function(e,n){return t.createElement(p.A,(0,v.A)({},e,{ref:n,icon:w}))};const z=t.forwardRef(k),I=t.lazy((()=>Promise.all([s.e(53653),s.e(79218),s.e(96603),s.e(83953),s.e(46907),s.e(18884)]).then(s.bind(s,46907)))),S=(0,t.memo)((e=>{let{enableCodeApply:n}=e;const{currentMessages:s,isTopToBottom:r,isLoadingConversation:l,addStreamingConversation:c,streamingConversations:m,currentConversationId:v,setIsStreaming:u,setStreamedContentMap:p,addMessageToConversation:x,removeStreamingConversation:y}=(0,a.v)(),{checkedKeys:f}=(0,i.X)(),C=(0,t.useRef)(!0),w=r?s:[...s].reverse(),k=(0,t.useRef)(0);(0,t.useEffect)((()=>{console.debug("Conversation messages updated:",{messageCount:s.length,previousCount:k.current,isVisible:C.current,displayOrder:r?"top-down":"bottom-up"}),s.length!==k.current&&(k.current=s.length,console.log("Rendered ".concat(s.length," messages")));const e=new IntersectionObserver((e=>{e.forEach((e=>{C.current=e.isIntersecting,console.debug("Conversation visibility changed:",{isVisible:e.isIntersecting,messageCount:s.length})}))}),{threshold:.1});return()=>e.disconnect()}),[s.length]);const S=l?s.length>0?"Loading messages (".concat(s.length," loaded)..."):"Loading conversation...":"",M=l&&s.length>0,R=l&&0===s.length,V=e=>(e=>{const n=s[e],t=e===s.length-1,a=e+1,r=a<s.length?s[a]:null,o=a<s.length;return"human"===(null===n||void 0===n?void 0:n.role)&&!m.has(v)&&(t||o&&"assistant"!==(null===r||void 0===r?void 0:r.role))})(e)?(0,j.jsx)(g.A,{title:"The AI response may have failed. Click to retry.",children:(0,j.jsx)(d.Ay,{icon:(0,j.jsx)(z,{}),type:"primary",size:"small",onClick:async()=>{const n=s[e];c(v);try{await(0,o.f)(v,n.content,m.has(v),s,p,u,(0,h.F)(f),x,y)}catch(t){y(v),console.error("Error retrying message:",t)}},children:"Retry AI Response"})}):null;return(0,j.jsxs)("div",{style:{position:"relative"},children:[R&&(0,j.jsx)("div",{style:{position:"fixed",top:"var(--header-height)",left:"var(--folder-panel-width)",right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},children:(0,j.jsx)(b.A,{size:"large",tip:S})}),(0,j.jsxs)("div",{style:{opacity:l?.5:1,minHeight:"50px"},className:"conversation-messages-container",children:[M&&(0,j.jsxs)("div",{style:{position:"sticky",top:0,backgroundColor:"rgba(0, 0, 0, 0.7)",color:"#fff",padding:"8px 16px",borderRadius:"4px",margin:"8px 0",display:"flex",alignItems:"center",gap:"8px",zIndex:1e3},children:[(0,j.jsx)(b.A,{size:"small"}),(0,j.jsx)("span",{children:S})]}),w.map(((e,a)=>{w.length;const o=r?a:s.length-1-a,i=o+1,l=i<s.length,c=l?s[i]:null,d="human"===e.role&&!m.has(v)&&(o===s.length-1||l&&"assistant"!==(null===c||void 0===c?void 0:c.role));return(0,j.jsxs)("div",{className:"message ".concat(e.role).concat(d?" needs-response":""),children:["human"===e.role?(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,j.jsx)("div",{className:"message-sender",children:"You:"}),(0,j.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[d&&V(o),(0,j.jsx)(A,{index:r?a:s.length-1-a})]})]}):(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,j.jsx)("div",{className:"message-sender",children:"AI:"}),V(o)]}),(0,j.jsx)("div",{className:"message-content",children:(0,j.jsx)(t.Suspense,{fallback:(0,j.jsx)("div",{children:"Loading content..."}),children:(0,j.jsx)(I,{markdown:e.content,enableCodeApply:n})})})]},a)}))]})]})}))}}]);
|
|
3
|
+
//# sourceMappingURL=88261.1e90079d.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/88261.1e90079d.chunk.js","mappings":";0QAEA,QADmB,CAAE,KAAQ,CAAE,IAAO,MAAO,MAAS,CAAE,QAAW,gBAAiB,UAAa,SAAW,SAAY,CAAC,CAAE,IAAO,OAAQ,MAAS,CAAE,EAAK,qbAAyb,KAAQ,OAAQ,MAAS,2BCMxmBA,EAAe,SAAsBC,EAAOC,GAC9C,OAAoBC,EAAAA,cAAoBC,EAAAA,GAAUC,EAAAA,EAAAA,GAAS,CAAC,EAAGJ,EAAO,CACpEC,IAAKA,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AAjC,OAAa7C,EAAIgB,MAAI6B,OAC1ByC,EACM,kBACA,IACP9G,SAAA,CAEO,UAAbwB,EAAIgB,MACDvC,EAAAA,EAAAA,MAAA,OAAKE,MAAO,CAAC2F,QAAS,OAAQC,eAAgB,iBAAiB/F,SAAA,EAC3DD,EAAAA,EAAAA,KAAA,OAAKuG,UAAU,iBAAgBtG,SAAC,UAC5DC,EAAAA,EAAAA,MAAA,OAAKE,MAAO,CAAE2F,QAAS,OAAQa,IAAK,OAAQ3G,SAAA,CACX8G,GAAiB7B,EAAkB2B,IACpC7G,EAAAA,EAAAA,KAACvB,EAAW,CAACE,MAAO2E,EAAgB3E,EAAQC,EAAgBoF,OAAS,EAAIrF,WAIjFuB,EAAAA,EAAAA,MAAA,OAAKE,MAAO,CAAC2F,QAAS,OAAQC,eAAgB,iBAAiB/F,SAAA,EAC3DD,EAAAA,EAAAA,KAAA,OAAKuG,UAAU,iBAAgBtG,SAAC,QACpDiF,EAAkB2B,OAGN7G,EAAAA,EAAAA,KAAA,OAAKuG,UAAU,kBAAiBtG,UAC5BD,EAAAA,EAAAA,KAACgH,EAAAA,SAAQ,CAACC,UAAUjH,EAAAA,EAAAA,KAAA,OAAAC,SAAK,uBAAyBA,UAC9CD,EAAAA,EAAAA,KAACmD,EAAgB,CACb+D,SAAUzF,EAAI9B,QACd0D,gBAAiBA,UAzBpB1E,EA6BP,SAGZ","sources":["../node_modules/@ant-design/icons-svg/es/asn/SaveOutlined.js","../node_modules/@ant-design/icons/es/icons/SaveOutlined.js","components/EditSection.tsx","../node_modules/@ant-design/icons-svg/es/asn/RedoOutlined.js","../node_modules/@ant-design/icons/es/icons/RedoOutlined.js","components/Conversation.tsx"],"sourcesContent":["// This icon file is generated automatically.\nvar SaveOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z\" } }] }, \"name\": \"save\", \"theme\": \"outlined\" };\nexport default SaveOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport SaveOutlinedSvg from \"@ant-design/icons-svg/es/asn/SaveOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar SaveOutlined = function SaveOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: SaveOutlinedSvg\n }));\n};\n\n/** */\nvar RefIcon = /*#__PURE__*/React.forwardRef(SaveOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'SaveOutlined';\n}\nexport default RefIcon;","import React, {useState} from \"react\";\nimport {useChatContext} from '../context/ChatContext';\nimport {sendPayload} from \"../apis/chatApi\";\nimport {Message} from \"../utils/types\";\nimport {useFolderContext} from \"../context/FolderContext\";\nimport {Button, Tooltip, Input, Space} from \"antd\";\nimport { convertKeysToStrings } from '../utils/types';\nimport {EditOutlined, CheckOutlined, CloseOutlined, SaveOutlined} from \"@ant-design/icons\";\n\ninterface EditSectionProps {\n index: number;\n}\n\nexport const EditSection: React.FC<EditSectionProps> = ({index}) => {\n const {\n currentMessages,\n currentConversationId,\n addMessageToConversation,\n setIsStreaming,\n\tsetConversations,\n streamingConversations,\n\taddStreamingConversation,\n\tsetStreamedContentMap,\n\tremoveStreamingConversation\n } = useChatContext();\n \n const [isEditing, setIsEditing] = useState(false);\n const [editedMessage, setEditedMessage] = useState(currentMessages[index].content);\n const {checkedKeys} = useFolderContext();\n const {TextArea} = Input;\n\n const handleEdit = () => {\n setIsEditing(true);\n };\n \n const handleSave = () => {\n // Update the conversation in the context with the edited message\n setConversations(prev => prev.map(conv => {\n if (conv.id === currentConversationId) {\n const updatedMessages = conv.messages.map((msg, i) => {\n if (i === index) {\n return {\n ...msg,\n content: editedMessage,\n _timestamp: Date.now() // Update timestamp to mark as modified\n };\n }\n return msg;\n });\n return { ...conv, messages: updatedMessages, _version: Date.now() };\n }\n return conv;\n }));\n setIsEditing(false);\n };\n\n const handleCancel = () => {\n setIsEditing(false);\n setEditedMessage(currentMessages[index].content);\n };\n\n const handleSubmit = async () => {\n setIsEditing(false);\n\n\t// Clear any existing streamed content\n setStreamedContentMap(new Map());\n\n\t// Create truncated message array up to and including edited message\n const truncatedMessages = currentMessages.slice(0, index + 1);\n\n // Update the edited message\n truncatedMessages[index] = {\n ...truncatedMessages[index],\n content: editedMessage,\n _timestamp: Date.now()\n };\n // Set conversation to just the truncated messages\n setConversations(prev => prev.map(conv =>\n conv.id === currentConversationId\n ? { ...conv, messages: truncatedMessages }\n : conv\n ));\n\n\taddStreamingConversation(currentConversationId);\n try {\n const result = await sendPayload(\n currentConversationId,\n editedMessage,\n\t\tstreamingConversations.has(currentConversationId),\n\t\tcurrentMessages,\n setStreamedContentMap,\n setIsStreaming,\n convertKeysToStrings(checkedKeys),\n\t\taddMessageToConversation,\n\t\tremoveStreamingConversation\n );\n\n // Get the final streamed content\n const finalContent = result;\n\n if (finalContent) {\n const newAIMessage: Message = {\n content: finalContent,\n role: 'assistant'\n };\n addMessageToConversation(newAIMessage, currentConversationId);\n }\n } catch (error) {\n console.error('Error sending message:', error);\n removeStreamingConversation(currentConversationId);\n \t} finally {\n setIsStreaming(false);\n }\n };\n\n return (\n <div>\n {isEditing ? (\n <>\n <TextArea\n style={{width: '38vw', height: '100px'}}\n value={editedMessage}\n onChange={(e) => setEditedMessage(e.target.value)}\n />\n <Space style={{ marginTop: '8px' }}>\n <Button icon={<CloseOutlined />} onClick={handleCancel} size=\"small\">\n Cancel\n </Button>\n <Button icon={<SaveOutlined />} onClick={handleSave} size=\"small\">\n Save\n </Button>\n <Button icon={<CheckOutlined />} onClick={handleSubmit} size=\"small\" type=\"primary\">\n Submit\n </Button>\n </Space>\n </>\n ) : (\n <Tooltip title=\"Edit\">\n <Button icon={<EditOutlined/>} onClick={handleEdit}/>\n </Tooltip>\n )}\n </div>\n );\n}\n\n","// This icon file is generated automatically.\nvar RedoOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z\" } }] }, \"name\": \"redo\", \"theme\": \"outlined\" };\nexport default RedoOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport RedoOutlinedSvg from \"@ant-design/icons-svg/es/asn/RedoOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar RedoOutlined = function RedoOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: RedoOutlinedSvg\n }));\n};\n\n/** */\nvar RefIcon = /*#__PURE__*/React.forwardRef(RedoOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'RedoOutlined';\n}\nexport default RefIcon;","import React, {useEffect, useRef, Suspense, memo} from \"react\";\nimport {useChatContext} from '../context/ChatContext';\nimport {EditSection} from \"./EditSection\";\nimport {Space, Spin, Button, Tooltip} from 'antd';\nimport {LoadingOutlined, RobotOutlined, RedoOutlined} from \"@ant-design/icons\";\nimport {sendPayload} from \"../apis/chatApi\";\nimport {useFolderContext} from \"../context/FolderContext\";\nimport {convertKeysToStrings} from \"../utils/types\";\n\n// Lazy load the MarkdownRenderer\nconst MarkdownRenderer = React.lazy(() => import(\"./MarkdownRenderer\"));\n\ninterface ConversationProps {\n enableCodeApply: boolean;\n}\n\nconst Conversation: React.FC<ConversationProps> = memo(({ enableCodeApply }) => {\n const {currentMessages, \n\t isTopToBottom, \n\t isLoadingConversation,\n\t addStreamingConversation,\n\t streamingConversations,\n currentConversationId,\n\t setIsStreaming,\n setStreamedContentMap,\n addMessageToConversation,\n removeStreamingConversation\n } = useChatContext();\n \n const {checkedKeys} = useFolderContext();\n const visibilityRef = useRef<boolean>(true);\n // Sort messages to maintain order\n const displayMessages = isTopToBottom ? currentMessages : [...currentMessages].reverse();\n\n // Keep track of rendered messages for performance monitoring\n const renderedCountRef = useRef(0);\n\n useEffect(() => {\n console.debug('Conversation messages updated:', {\n messageCount: currentMessages.length,\n previousCount: renderedCountRef.current,\n isVisible: visibilityRef.current,\n displayOrder: isTopToBottom ? 'top-down' : 'bottom-up'\n });\n\n if (currentMessages.length !== renderedCountRef.current) {\n renderedCountRef.current = currentMessages.length;\n console.log(`Rendered ${currentMessages.length} messages`);\n }\n\n // Set up visibility observer\n const observer = new IntersectionObserver(\n (entries) => {\n entries.forEach(entry => {\n visibilityRef.current = entry.isIntersecting;\n console.debug('Conversation visibility changed:', {\n isVisible: entry.isIntersecting,\n messageCount: currentMessages.length\n });\n });\n },\n { threshold: 0.1 }\n );\n\n return () => observer.disconnect();\n }, [currentMessages.length]);\n\n // Loading indicator text based on progress\n const loadingText = isLoadingConversation \n ? currentMessages.length > 0\n ? `Loading messages (${currentMessages.length} loaded)...`\n : 'Loading conversation...'\n : '';\n\n // Progressive loading indicator\n const showProgressiveLoading = isLoadingConversation && currentMessages.length > 0;\n\n // Track whether we're in the initial loading state\n const isInitialLoading = isLoadingConversation && currentMessages.length === 0;\n\n // Function to determine if we need to show the retry button\n const shouldShowRetry = (index: number) => {\n\tconst message = currentMessages[index];\n const isLastMessage = index === currentMessages.length - 1;\n const nextIndex = index + 1;\n const nextMessage = nextIndex < currentMessages.length ? currentMessages[nextIndex] : null;\n const hasNextMessage = nextIndex < currentMessages.length;\n\n // Show retry if this is a human message and either:\n // 1. It's the last message, or\n // 2. The next message isn't from the assistant\n return message?.role === 'human' &&\n !streamingConversations.has(currentConversationId) &&\n (isLastMessage || \n (hasNextMessage && nextMessage?.role !== 'assistant'));\n };\n\n // Render retry button with explanation\n const renderRetryButton = (index: number) => {\n if (!shouldShowRetry(index)) return null;\n\n return (\n <Tooltip title=\"The AI response may have failed. Click to retry.\">\n <Button\n icon={<RedoOutlined />}\n type=\"primary\"\n size=\"small\"\n\t\t onClick={async () => {\n const message = currentMessages[index];\n\t\t\taddStreamingConversation(currentConversationId);\n\t\t\ttry {\n await sendPayload(\n currentConversationId,\n message.content,\n\t\t\t\tstreamingConversations.has(currentConversationId),\n currentMessages,\n setStreamedContentMap,\n setIsStreaming,\n convertKeysToStrings(checkedKeys),\n addMessageToConversation,\n removeStreamingConversation\n );\n } catch (error) {\n\t\t\t removeStreamingConversation(currentConversationId);\n console.error('Error retrying message:', error);\n }\n }}\n >\n Retry AI Response\n </Button>\n </Tooltip>\n );\n };\n return (\n <div style={{ position: 'relative' }}>\n {isInitialLoading && (\n <div style={{\n position: 'fixed',\n top: 'var(--header-height)',\n left: 'var(--folder-panel-width)',\n right: 0,\n bottom: 0,\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n zIndex: 1000\n }}>\n <Spin size=\"large\" tip={loadingText} />\n </div>\n )}\n <div \n style={{ \n opacity: isLoadingConversation ? 0.5 : 1,\n minHeight: '50px' // Ensure visibility detection\n }}\n className=\"conversation-messages-container\"\n >\n {showProgressiveLoading && (\n <div style={{\n position: 'sticky',\n top: 0,\n backgroundColor: 'rgba(0, 0, 0, 0.7)',\n color: '#fff',\n padding: '8px 16px',\n borderRadius: '4px',\n margin: '8px 0',\n display: 'flex',\n alignItems: 'center',\n gap: '8px',\n zIndex: 1000\n }}>\n <Spin size=\"small\" />\n <span>{loadingText}</span>\n </div>\n )}\n\t\t {displayMessages.map((msg, index) => {\n const isLastMessage = index === displayMessages.length - 1;\n\t\t // Convert display index to actual index for bottom-up mode\n const actualIndex = isTopToBottom ? index : currentMessages.length - 1 - index;\n const nextActualIndex = actualIndex + 1;\n const hasNextMessage = nextActualIndex < currentMessages.length;\n const nextMessage = hasNextMessage ? currentMessages[nextActualIndex] : null;\n const needsResponse = msg.role === 'human' &&\n !streamingConversations.has(currentConversationId) &&\n\t\t\t\t\t(actualIndex === currentMessages.length - 1 ||\n (hasNextMessage && nextMessage?.role !== 'assistant'));\n\n\t\t return <div\n key={index}\n className={`message ${msg.role}${\n needsResponse\n ? ' needs-response'\n : ''\n }`}\n >\n {msg.role === 'human' ? (\n <div style={{display: 'flex', justifyContent: 'space-between'}}>\n <div className=\"message-sender\">You:</div>\n\t\t\t\t<div style={{ display: 'flex', gap: '8px' }}>\n {needsResponse && renderRetryButton(actualIndex)}\n <EditSection index={isTopToBottom ? index : currentMessages.length - 1 - index}/>\n </div>\n </div>\n ) : (\n <div style={{display: 'flex', justifyContent: 'space-between'}}>\n <div className=\"message-sender\">AI:</div>\n\t\t\t {renderRetryButton(actualIndex)}\n </div>\n )}\n <div className=\"message-content\">\n <Suspense fallback={<div>Loading content...</div>}>\n <MarkdownRenderer \n markdown={msg.content} \n enableCodeApply={enableCodeApply}\n />\n </Suspense>\n </div>\n </div>;\n })}\n </div>\n </div>\n );\n}); \n\nexport default Conversation;\n"],"names":["SaveOutlined","props","ref","React","AntdIcon","_extends","icon","SaveOutlinedSvg","EditSection","_ref","index","currentMessages","currentConversationId","addMessageToConversation","setIsStreaming","setConversations","streamingConversations","addStreamingConversation","setStreamedContentMap","removeStreamingConversation","useChatContext","isEditing","setIsEditing","useState","editedMessage","setEditedMessage","content","checkedKeys","useFolderContext","TextArea","Input","_jsx","children","_jsxs","_Fragment","style","width","height","value","onChange","e","target","Space","marginTop","Button","CloseOutlined","onClick","handleCancel","size","handleSave","prev","map","conv","id","updatedMessages","messages","msg","i","_objectSpread","_timestamp","Date","now","_version","CheckOutlined","async","Map","truncatedMessages","slice","result","sendPayload","has","convertKeysToStrings","role","error","console","type","Tooltip","title","EditOutlined","handleEdit","RedoOutlined","RedoOutlinedSvg","MarkdownRenderer","memo","enableCodeApply","isTopToBottom","isLoadingConversation","visibilityRef","useRef","displayMessages","reverse","renderedCountRef","useEffect","debug","messageCount","length","previousCount","current","isVisible","displayOrder","log","concat","observer","IntersectionObserver","entries","forEach","entry","isIntersecting","threshold","disconnect","loadingText","showProgressiveLoading","isInitialLoading","renderRetryButton","message","isLastMessage","nextIndex","nextMessage","hasNextMessage","shouldShowRetry","position","top","left","right","bottom","backgroundColor","display","justifyContent","alignItems","zIndex","Spin","tip","opacity","minHeight","className","color","padding","borderRadius","margin","gap","actualIndex","nextActualIndex","needsResponse","Suspense","fallback","markdown"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[96603],{88042:(e,o,t)=>{t.d(o,{A:()=>a});var n=t(65043),r=t(45818);function a(e){const o=n.useRef(null),t=()=>{r.A.cancel(o.current),o.current=null};return[()=>{t(),o.current=(0,r.A)((()=>{o.current=null}))},n=>{o.current&&(n.stopPropagation(),t()),null===e||void 0===e||e(n)}]}},96603:(e,o,t)=>{t.d(o,{Ay:()=>W});var n=t(65043),r=t(98139),a=t.n(r),l=t(28678),i=t(48060),c=t(35296),d=t(78887),s=t(89122);const u=n.createContext(null),b=u.Provider,p=u,g=n.createContext(null),h=g.Provider;var f=t(79688),v=t(13758),C=t(12366),k=t(37489),m=t(88042),S=t(78440),y=t(11250),x=t(43944),w=t(94414),E=t(78855),O=t(78446);const A=e=>{const{componentCls:o,antCls:t}=e,n="".concat(o,"-group");return{[n]:Object.assign(Object.assign({},(0,w.dF)(e)),{display:"inline-block",fontSize:0,["&".concat(n,"-rtl")]:{direction:"rtl"},["&".concat(n,"-block")]:{display:"flex"},["".concat(t,"-badge ").concat(t,"-badge-count")]:{zIndex:1},["> ".concat(t,"-badge:not(:first-child) > ").concat(t,"-button-wrapper")]:{borderInlineStart:"none"}})}},B=e=>{const{componentCls:o,wrapperMarginInlineEnd:t,colorPrimary:n,radioSize:r,motionDurationSlow:a,motionDurationMid:l,motionEaseInOutCirc:i,colorBgContainer:c,colorBorder:d,lineWidth:s,colorBgContainerDisabled:u,colorTextDisabled:b,paddingXS:p,dotColorDisabled:g,lineType:h,radioColor:f,radioBgColor:v,calc:C}=e,k="".concat(o,"-inner"),m=C(r).sub(C(4).mul(2)),S=C(1).mul(r).equal({unit:!0});return{["".concat(o,"-wrapper")]:Object.assign(Object.assign({},(0,w.dF)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:t,cursor:"pointer",["&".concat(o,"-wrapper-rtl")]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},["".concat(o,"-checked::after")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:"".concat((0,x.zA)(s)," ").concat(h," ").concat(n),borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[o]:Object.assign(Object.assign({},(0,w.dF)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),["".concat(o,"-wrapper:hover &,\n &:hover ").concat(k)]:{borderColor:n},["".concat(o,"-input:focus-visible + ").concat(k)]:Object.assign({},(0,w.jk)(e)),["".concat(o,":hover::after, ").concat(o,"-wrapper:hover &::after")]:{visibility:"visible"},["".concat(o,"-inner")]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:S,height:S,marginBlockStart:C(1).mul(r).div(-2).equal({unit:!0}),marginInlineStart:C(1).mul(r).div(-2).equal({unit:!0}),backgroundColor:f,borderBlockStart:0,borderInlineStart:0,borderRadius:S,transform:"scale(0)",opacity:0,transition:"all ".concat(a," ").concat(i),content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:S,height:S,backgroundColor:c,borderColor:d,borderStyle:"solid",borderWidth:s,borderRadius:"50%",transition:"all ".concat(l)},["".concat(o,"-input")]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},["".concat(o,"-checked")]:{[k]:{borderColor:n,backgroundColor:v,"&::after":{transform:"scale(".concat(e.calc(e.dotSize).div(r).equal(),")"),opacity:1,transition:"all ".concat(a," ").concat(i)}}},["".concat(o,"-disabled")]:{cursor:"not-allowed",[k]:{backgroundColor:u,borderColor:d,cursor:"not-allowed","&::after":{backgroundColor:g}},["".concat(o,"-input")]:{cursor:"not-allowed"},["".concat(o,"-disabled + span")]:{color:b,cursor:"not-allowed"},["&".concat(o,"-checked")]:{[k]:{"&::after":{transform:"scale(".concat(C(m).div(r).equal(),")")}}}},["span".concat(o," + *")]:{paddingInlineStart:p,paddingInlineEnd:p}})}},I=e=>{const{buttonColor:o,controlHeight:t,componentCls:n,lineWidth:r,lineType:a,colorBorder:l,motionDurationSlow:i,motionDurationMid:c,buttonPaddingInline:d,fontSize:s,buttonBg:u,fontSizeLG:b,controlHeightLG:p,controlHeightSM:g,paddingXS:h,borderRadius:f,borderRadiusSM:v,borderRadiusLG:C,buttonCheckedBg:k,buttonSolidCheckedColor:m,colorTextDisabled:S,colorBgContainerDisabled:y,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:O,colorPrimary:A,colorPrimaryHover:B,colorPrimaryActive:I,buttonSolidCheckedBg:R,buttonSolidCheckedHoverBg:z,buttonSolidCheckedActiveBg:j,calc:P}=e;return{["".concat(n,"-button-wrapper")]:{position:"relative",display:"inline-block",height:t,margin:0,paddingInline:d,paddingBlock:0,color:o,fontSize:s,lineHeight:(0,x.zA)(P(t).sub(P(r).mul(2)).equal()),background:u,border:"".concat((0,x.zA)(r)," ").concat(a," ").concat(l),borderBlockStartWidth:P(r).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:["color ".concat(c),"background ".concat(c),"box-shadow ".concat(c)].join(","),a:{color:o},["> ".concat(n,"-button")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:P(r).mul(-1).equal(),insetInlineStart:P(r).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:l,transition:"background-color ".concat(i),content:'""'}},"&:first-child":{borderInlineStart:"".concat((0,x.zA)(r)," ").concat(a," ").concat(l),borderStartStartRadius:f,borderEndStartRadius:f},"&:last-child":{borderStartEndRadius:f,borderEndEndRadius:f},"&:first-child:last-child":{borderRadius:f},["".concat(n,"-group-large &")]:{height:p,fontSize:b,lineHeight:(0,x.zA)(P(p).sub(P(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},["".concat(n,"-group-small &")]:{height:g,paddingInline:P(h).sub(r).equal(),paddingBlock:0,lineHeight:(0,x.zA)(P(g).sub(P(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:A},"&:has(:focus-visible)":Object.assign({},(0,w.jk)(e)),["".concat(n,"-inner, input[type='checkbox'], input[type='radio']")]:{width:0,height:0,opacity:0,pointerEvents:"none"},["&-checked:not(".concat(n,"-button-wrapper-disabled)")]:{zIndex:1,color:A,background:k,borderColor:A,"&::before":{backgroundColor:A},"&:first-child":{borderColor:A},"&:hover":{color:B,borderColor:B,"&::before":{backgroundColor:B}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},["".concat(n,"-group-solid &-checked:not(").concat(n,"-button-wrapper-disabled)")]:{color:m,background:R,borderColor:R,"&:hover":{color:m,background:z,borderColor:z},"&:active":{color:m,background:j,borderColor:j}},"&-disabled":{color:S,backgroundColor:y,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:y,borderColor:l}},["&-disabled".concat(n,"-button-wrapper-checked")]:{color:O,backgroundColor:E,borderColor:l,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},R=(0,E.OF)("Radio",(e=>{const{controlOutline:o,controlOutlineWidth:t}=e,n="0 0 0 ".concat((0,x.zA)(t)," ").concat(o),r=n,a=(0,O.oX)(e,{radioFocusShadow:n,radioButtonFocusShadow:r});return[A(a),B(a),I(a)]}),(e=>{const{wireframe:o,padding:t,marginXS:n,lineWidth:r,fontSizeLG:a,colorText:l,colorBgContainer:i,colorTextDisabled:c,controlItemBgActiveDisabled:d,colorTextLightSolid:s,colorPrimary:u,colorPrimaryHover:b,colorPrimaryActive:p,colorWhite:g}=e;return{radioSize:a,dotSize:o?a-8:a-2*(4+r),dotColorDisabled:c,buttonSolidCheckedColor:s,buttonSolidCheckedBg:u,buttonSolidCheckedHoverBg:b,buttonSolidCheckedActiveBg:p,buttonBg:i,buttonCheckedBg:i,buttonColor:l,buttonCheckedBgDisabled:d,buttonCheckedColorDisabled:c,buttonPaddingInline:t-r,wrapperMarginInlineEnd:n,radioColor:o?u:g,radioBgColor:o?i:u}}),{unitless:{radioSize:!0,dotSize:!0}});var z=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)o.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(t[n[r]]=e[n[r]])}return t};const j=(e,o)=>{var t,r;const l=n.useContext(p),i=n.useContext(g),{getPrefixCls:s,direction:u,radio:b}=n.useContext(c.QO),h=n.useRef(null),x=(0,v.K4)(o,h),{isFormItemInput:w}=n.useContext(y.$W);const E=o=>{var t,n;null===(t=e.onChange)||void 0===t||t.call(e,o),null===(n=null===l||void 0===l?void 0:l.onChange)||void 0===n||n.call(l,o)},{prefixCls:O,className:A,rootClassName:B,children:I,style:j,title:P}=e,D=z(e,["prefixCls","className","rootClassName","children","style","title"]),N=s("radio",O),M="button"===((null===l||void 0===l?void 0:l.optionType)||i),q=M?"".concat(N,"-button"):N,T=(0,d.A)(N),[H,W,F]=R(N,T),L=Object.assign({},D),G=n.useContext(S.A);l&&(L.name=l.name,L.onChange=E,L.checked=e.value===l.value,L.disabled=null!==(t=L.disabled)&&void 0!==t?t:l.disabled),L.disabled=null!==(r=L.disabled)&&void 0!==r?r:G;const X=a()("".concat(q,"-wrapper"),{["".concat(q,"-wrapper-checked")]:L.checked,["".concat(q,"-wrapper-disabled")]:L.disabled,["".concat(q,"-wrapper-rtl")]:"rtl"===u,["".concat(q,"-wrapper-in-form-item")]:w,["".concat(q,"-wrapper-block")]:!!(null===l||void 0===l?void 0:l.block)},null===b||void 0===b?void 0:b.className,A,B,W,F,T),[Q,_]=(0,m.A)(L.onClick);return H(n.createElement(C.A,{component:"Radio",disabled:L.disabled},n.createElement("label",{className:X,style:Object.assign(Object.assign({},null===b||void 0===b?void 0:b.style),j),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:P,onClick:Q},n.createElement(f.A,Object.assign({},L,{className:a()(L.className,{[k.D]:!M}),type:"radio",prefixCls:q,ref:x,onClick:_})),void 0!==I?n.createElement("span",null,I):null)))};const P=n.forwardRef(j),D=n.forwardRef(((e,o)=>{const{getPrefixCls:t,direction:r}=n.useContext(c.QO),{prefixCls:u,className:p,rootClassName:g,options:h,buttonStyle:f="outline",disabled:v,children:C,size:k,style:m,id:S,optionType:y,name:x,defaultValue:w,value:E,block:O=!1,onChange:A,onMouseEnter:B,onMouseLeave:I,onFocus:z,onBlur:j}=e,[D,N]=(0,l.A)(w,{value:E}),M=n.useCallback((o=>{const t=D,n=o.target.value;"value"in e||N(n),n!==t&&(null===A||void 0===A||A(o))}),[D,N,A]),q=t("radio",u),T="".concat(q,"-group"),H=(0,d.A)(q),[W,F,L]=R(q,H);let G=C;h&&h.length>0&&(G=h.map((e=>"string"===typeof e||"number"===typeof e?n.createElement(P,{key:e.toString(),prefixCls:q,disabled:v,value:e,checked:D===e},e):n.createElement(P,{key:"radio-group-value-options-".concat(e.value),prefixCls:q,disabled:e.disabled||v,value:e.value,checked:D===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const X=(0,s.A)(k),Q=a()(T,"".concat(T,"-").concat(f),{["".concat(T,"-").concat(X)]:X,["".concat(T,"-rtl")]:"rtl"===r,["".concat(T,"-block")]:O},p,g,F,L,H),_=n.useMemo((()=>({onChange:M,value:D,disabled:v,name:x,optionType:y,block:O})),[M,D,v,x,y,O]);return W(n.createElement("div",Object.assign({},(0,i.A)(e,{aria:!0,data:!0}),{className:Q,style:m,onMouseEnter:B,onMouseLeave:I,onFocus:z,onBlur:j,id:S,ref:o}),n.createElement(b,{value:_},G)))})),N=n.memo(D);var M=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)o.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(t[n[r]]=e[n[r]])}return t};const q=(e,o)=>{const{getPrefixCls:t}=n.useContext(c.QO),{prefixCls:r}=e,a=M(e,["prefixCls"]),l=t("radio",r);return n.createElement(h,{value:"button"},n.createElement(P,Object.assign({prefixCls:l},a,{type:"radio",ref:o})))},T=n.forwardRef(q),H=P;H.Button=T,H.Group=N,H.__ANT_RADIO=!0;const W=H},79688:(e,o,t)=>{t.d(o,{A:()=>p});var n=t(58168),r=t(89379),a=t(64467),l=t(5544),i=t(53986),c=t(98139),d=t.n(c),s=t(28678),u=t(65043),b=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"];const p=(0,u.forwardRef)((function(e,o){var t=e.prefixCls,c=void 0===t?"rc-checkbox":t,p=e.className,g=e.style,h=e.checked,f=e.disabled,v=e.defaultChecked,C=void 0!==v&&v,k=e.type,m=void 0===k?"checkbox":k,S=e.title,y=e.onChange,x=(0,i.A)(e,b),w=(0,u.useRef)(null),E=(0,u.useRef)(null),O=(0,s.A)(C,{value:h}),A=(0,l.A)(O,2),B=A[0],I=A[1];(0,u.useImperativeHandle)(o,(function(){return{focus:function(e){var o;null===(o=w.current)||void 0===o||o.focus(e)},blur:function(){var e;null===(e=w.current)||void 0===e||e.blur()},input:w.current,nativeElement:E.current}}));var R=d()(c,p,(0,a.A)((0,a.A)({},"".concat(c,"-checked"),B),"".concat(c,"-disabled"),f));return u.createElement("span",{className:R,title:S,style:g,ref:E},u.createElement("input",(0,n.A)({},x,{className:"".concat(c,"-input"),ref:w,onChange:function(o){f||("checked"in e||I(o.target.checked),null===y||void 0===y||y({target:(0,r.A)((0,r.A)({},e),{},{type:m,checked:o.target.checked}),stopPropagation:function(){o.stopPropagation()},preventDefault:function(){o.preventDefault()},nativeEvent:o.nativeEvent}))},disabled:f,checked:!!B,type:m})),u.createElement("span",{className:"".concat(c,"-inner")}))}))}}]);
|
|
2
|
-
//# sourceMappingURL=96603.
|
|
1
|
+
"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[96603],{88042:(e,o,t)=>{t.d(o,{A:()=>a});var n=t(65043),r=t(45818);function a(e){const o=n.useRef(null),t=()=>{r.A.cancel(o.current),o.current=null};return[()=>{t(),o.current=(0,r.A)((()=>{o.current=null}))},n=>{o.current&&(n.stopPropagation(),t()),null===e||void 0===e||e(n)}]}},96603:(e,o,t)=>{t.d(o,{Ay:()=>W});var n=t(65043),r=t(98139),a=t.n(r),l=t(28678),i=t(48060),c=t(35296),d=t(78887),s=t(89122);const u=n.createContext(null),b=u.Provider,p=u,g=n.createContext(null),h=g.Provider;var f=t(79688),v=t(13758),C=t(12366),k=t(37489),m=t(88042),S=t(78440),y=t(16436),x=t(43944),w=t(94414),E=t(78855),O=t(78446);const A=e=>{const{componentCls:o,antCls:t}=e,n="".concat(o,"-group");return{[n]:Object.assign(Object.assign({},(0,w.dF)(e)),{display:"inline-block",fontSize:0,["&".concat(n,"-rtl")]:{direction:"rtl"},["&".concat(n,"-block")]:{display:"flex"},["".concat(t,"-badge ").concat(t,"-badge-count")]:{zIndex:1},["> ".concat(t,"-badge:not(:first-child) > ").concat(t,"-button-wrapper")]:{borderInlineStart:"none"}})}},B=e=>{const{componentCls:o,wrapperMarginInlineEnd:t,colorPrimary:n,radioSize:r,motionDurationSlow:a,motionDurationMid:l,motionEaseInOutCirc:i,colorBgContainer:c,colorBorder:d,lineWidth:s,colorBgContainerDisabled:u,colorTextDisabled:b,paddingXS:p,dotColorDisabled:g,lineType:h,radioColor:f,radioBgColor:v,calc:C}=e,k="".concat(o,"-inner"),m=C(r).sub(C(4).mul(2)),S=C(1).mul(r).equal({unit:!0});return{["".concat(o,"-wrapper")]:Object.assign(Object.assign({},(0,w.dF)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:t,cursor:"pointer",["&".concat(o,"-wrapper-rtl")]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},["".concat(o,"-checked::after")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:"".concat((0,x.zA)(s)," ").concat(h," ").concat(n),borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[o]:Object.assign(Object.assign({},(0,w.dF)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),["".concat(o,"-wrapper:hover &,\n &:hover ").concat(k)]:{borderColor:n},["".concat(o,"-input:focus-visible + ").concat(k)]:Object.assign({},(0,w.jk)(e)),["".concat(o,":hover::after, ").concat(o,"-wrapper:hover &::after")]:{visibility:"visible"},["".concat(o,"-inner")]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:S,height:S,marginBlockStart:C(1).mul(r).div(-2).equal({unit:!0}),marginInlineStart:C(1).mul(r).div(-2).equal({unit:!0}),backgroundColor:f,borderBlockStart:0,borderInlineStart:0,borderRadius:S,transform:"scale(0)",opacity:0,transition:"all ".concat(a," ").concat(i),content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:S,height:S,backgroundColor:c,borderColor:d,borderStyle:"solid",borderWidth:s,borderRadius:"50%",transition:"all ".concat(l)},["".concat(o,"-input")]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},["".concat(o,"-checked")]:{[k]:{borderColor:n,backgroundColor:v,"&::after":{transform:"scale(".concat(e.calc(e.dotSize).div(r).equal(),")"),opacity:1,transition:"all ".concat(a," ").concat(i)}}},["".concat(o,"-disabled")]:{cursor:"not-allowed",[k]:{backgroundColor:u,borderColor:d,cursor:"not-allowed","&::after":{backgroundColor:g}},["".concat(o,"-input")]:{cursor:"not-allowed"},["".concat(o,"-disabled + span")]:{color:b,cursor:"not-allowed"},["&".concat(o,"-checked")]:{[k]:{"&::after":{transform:"scale(".concat(C(m).div(r).equal(),")")}}}},["span".concat(o," + *")]:{paddingInlineStart:p,paddingInlineEnd:p}})}},I=e=>{const{buttonColor:o,controlHeight:t,componentCls:n,lineWidth:r,lineType:a,colorBorder:l,motionDurationSlow:i,motionDurationMid:c,buttonPaddingInline:d,fontSize:s,buttonBg:u,fontSizeLG:b,controlHeightLG:p,controlHeightSM:g,paddingXS:h,borderRadius:f,borderRadiusSM:v,borderRadiusLG:C,buttonCheckedBg:k,buttonSolidCheckedColor:m,colorTextDisabled:S,colorBgContainerDisabled:y,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:O,colorPrimary:A,colorPrimaryHover:B,colorPrimaryActive:I,buttonSolidCheckedBg:R,buttonSolidCheckedHoverBg:z,buttonSolidCheckedActiveBg:j,calc:P}=e;return{["".concat(n,"-button-wrapper")]:{position:"relative",display:"inline-block",height:t,margin:0,paddingInline:d,paddingBlock:0,color:o,fontSize:s,lineHeight:(0,x.zA)(P(t).sub(P(r).mul(2)).equal()),background:u,border:"".concat((0,x.zA)(r)," ").concat(a," ").concat(l),borderBlockStartWidth:P(r).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:["color ".concat(c),"background ".concat(c),"box-shadow ".concat(c)].join(","),a:{color:o},["> ".concat(n,"-button")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:P(r).mul(-1).equal(),insetInlineStart:P(r).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:l,transition:"background-color ".concat(i),content:'""'}},"&:first-child":{borderInlineStart:"".concat((0,x.zA)(r)," ").concat(a," ").concat(l),borderStartStartRadius:f,borderEndStartRadius:f},"&:last-child":{borderStartEndRadius:f,borderEndEndRadius:f},"&:first-child:last-child":{borderRadius:f},["".concat(n,"-group-large &")]:{height:p,fontSize:b,lineHeight:(0,x.zA)(P(p).sub(P(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},["".concat(n,"-group-small &")]:{height:g,paddingInline:P(h).sub(r).equal(),paddingBlock:0,lineHeight:(0,x.zA)(P(g).sub(P(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:A},"&:has(:focus-visible)":Object.assign({},(0,w.jk)(e)),["".concat(n,"-inner, input[type='checkbox'], input[type='radio']")]:{width:0,height:0,opacity:0,pointerEvents:"none"},["&-checked:not(".concat(n,"-button-wrapper-disabled)")]:{zIndex:1,color:A,background:k,borderColor:A,"&::before":{backgroundColor:A},"&:first-child":{borderColor:A},"&:hover":{color:B,borderColor:B,"&::before":{backgroundColor:B}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},["".concat(n,"-group-solid &-checked:not(").concat(n,"-button-wrapper-disabled)")]:{color:m,background:R,borderColor:R,"&:hover":{color:m,background:z,borderColor:z},"&:active":{color:m,background:j,borderColor:j}},"&-disabled":{color:S,backgroundColor:y,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:y,borderColor:l}},["&-disabled".concat(n,"-button-wrapper-checked")]:{color:O,backgroundColor:E,borderColor:l,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},R=(0,E.OF)("Radio",(e=>{const{controlOutline:o,controlOutlineWidth:t}=e,n="0 0 0 ".concat((0,x.zA)(t)," ").concat(o),r=n,a=(0,O.oX)(e,{radioFocusShadow:n,radioButtonFocusShadow:r});return[A(a),B(a),I(a)]}),(e=>{const{wireframe:o,padding:t,marginXS:n,lineWidth:r,fontSizeLG:a,colorText:l,colorBgContainer:i,colorTextDisabled:c,controlItemBgActiveDisabled:d,colorTextLightSolid:s,colorPrimary:u,colorPrimaryHover:b,colorPrimaryActive:p,colorWhite:g}=e;return{radioSize:a,dotSize:o?a-8:a-2*(4+r),dotColorDisabled:c,buttonSolidCheckedColor:s,buttonSolidCheckedBg:u,buttonSolidCheckedHoverBg:b,buttonSolidCheckedActiveBg:p,buttonBg:i,buttonCheckedBg:i,buttonColor:l,buttonCheckedBgDisabled:d,buttonCheckedColorDisabled:c,buttonPaddingInline:t-r,wrapperMarginInlineEnd:n,radioColor:o?u:g,radioBgColor:o?i:u}}),{unitless:{radioSize:!0,dotSize:!0}});var z=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)o.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(t[n[r]]=e[n[r]])}return t};const j=(e,o)=>{var t,r;const l=n.useContext(p),i=n.useContext(g),{getPrefixCls:s,direction:u,radio:b}=n.useContext(c.QO),h=n.useRef(null),x=(0,v.K4)(o,h),{isFormItemInput:w}=n.useContext(y.$W);const E=o=>{var t,n;null===(t=e.onChange)||void 0===t||t.call(e,o),null===(n=null===l||void 0===l?void 0:l.onChange)||void 0===n||n.call(l,o)},{prefixCls:O,className:A,rootClassName:B,children:I,style:j,title:P}=e,D=z(e,["prefixCls","className","rootClassName","children","style","title"]),N=s("radio",O),M="button"===((null===l||void 0===l?void 0:l.optionType)||i),q=M?"".concat(N,"-button"):N,T=(0,d.A)(N),[H,W,F]=R(N,T),L=Object.assign({},D),G=n.useContext(S.A);l&&(L.name=l.name,L.onChange=E,L.checked=e.value===l.value,L.disabled=null!==(t=L.disabled)&&void 0!==t?t:l.disabled),L.disabled=null!==(r=L.disabled)&&void 0!==r?r:G;const X=a()("".concat(q,"-wrapper"),{["".concat(q,"-wrapper-checked")]:L.checked,["".concat(q,"-wrapper-disabled")]:L.disabled,["".concat(q,"-wrapper-rtl")]:"rtl"===u,["".concat(q,"-wrapper-in-form-item")]:w,["".concat(q,"-wrapper-block")]:!!(null===l||void 0===l?void 0:l.block)},null===b||void 0===b?void 0:b.className,A,B,W,F,T),[Q,_]=(0,m.A)(L.onClick);return H(n.createElement(C.A,{component:"Radio",disabled:L.disabled},n.createElement("label",{className:X,style:Object.assign(Object.assign({},null===b||void 0===b?void 0:b.style),j),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:P,onClick:Q},n.createElement(f.A,Object.assign({},L,{className:a()(L.className,{[k.D]:!M}),type:"radio",prefixCls:q,ref:x,onClick:_})),void 0!==I?n.createElement("span",null,I):null)))};const P=n.forwardRef(j),D=n.forwardRef(((e,o)=>{const{getPrefixCls:t,direction:r}=n.useContext(c.QO),{prefixCls:u,className:p,rootClassName:g,options:h,buttonStyle:f="outline",disabled:v,children:C,size:k,style:m,id:S,optionType:y,name:x,defaultValue:w,value:E,block:O=!1,onChange:A,onMouseEnter:B,onMouseLeave:I,onFocus:z,onBlur:j}=e,[D,N]=(0,l.A)(w,{value:E}),M=n.useCallback((o=>{const t=D,n=o.target.value;"value"in e||N(n),n!==t&&(null===A||void 0===A||A(o))}),[D,N,A]),q=t("radio",u),T="".concat(q,"-group"),H=(0,d.A)(q),[W,F,L]=R(q,H);let G=C;h&&h.length>0&&(G=h.map((e=>"string"===typeof e||"number"===typeof e?n.createElement(P,{key:e.toString(),prefixCls:q,disabled:v,value:e,checked:D===e},e):n.createElement(P,{key:"radio-group-value-options-".concat(e.value),prefixCls:q,disabled:e.disabled||v,value:e.value,checked:D===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const X=(0,s.A)(k),Q=a()(T,"".concat(T,"-").concat(f),{["".concat(T,"-").concat(X)]:X,["".concat(T,"-rtl")]:"rtl"===r,["".concat(T,"-block")]:O},p,g,F,L,H),_=n.useMemo((()=>({onChange:M,value:D,disabled:v,name:x,optionType:y,block:O})),[M,D,v,x,y,O]);return W(n.createElement("div",Object.assign({},(0,i.A)(e,{aria:!0,data:!0}),{className:Q,style:m,onMouseEnter:B,onMouseLeave:I,onFocus:z,onBlur:j,id:S,ref:o}),n.createElement(b,{value:_},G)))})),N=n.memo(D);var M=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)o.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(t[n[r]]=e[n[r]])}return t};const q=(e,o)=>{const{getPrefixCls:t}=n.useContext(c.QO),{prefixCls:r}=e,a=M(e,["prefixCls"]),l=t("radio",r);return n.createElement(h,{value:"button"},n.createElement(P,Object.assign({prefixCls:l},a,{type:"radio",ref:o})))},T=n.forwardRef(q),H=P;H.Button=T,H.Group=N,H.__ANT_RADIO=!0;const W=H},79688:(e,o,t)=>{t.d(o,{A:()=>p});var n=t(58168),r=t(89379),a=t(64467),l=t(5544),i=t(53986),c=t(98139),d=t.n(c),s=t(28678),u=t(65043),b=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"];const p=(0,u.forwardRef)((function(e,o){var t=e.prefixCls,c=void 0===t?"rc-checkbox":t,p=e.className,g=e.style,h=e.checked,f=e.disabled,v=e.defaultChecked,C=void 0!==v&&v,k=e.type,m=void 0===k?"checkbox":k,S=e.title,y=e.onChange,x=(0,i.A)(e,b),w=(0,u.useRef)(null),E=(0,u.useRef)(null),O=(0,s.A)(C,{value:h}),A=(0,l.A)(O,2),B=A[0],I=A[1];(0,u.useImperativeHandle)(o,(function(){return{focus:function(e){var o;null===(o=w.current)||void 0===o||o.focus(e)},blur:function(){var e;null===(e=w.current)||void 0===e||e.blur()},input:w.current,nativeElement:E.current}}));var R=d()(c,p,(0,a.A)((0,a.A)({},"".concat(c,"-checked"),B),"".concat(c,"-disabled"),f));return u.createElement("span",{className:R,title:S,style:g,ref:E},u.createElement("input",(0,n.A)({},x,{className:"".concat(c,"-input"),ref:w,onChange:function(o){f||("checked"in e||I(o.target.checked),null===y||void 0===y||y({target:(0,r.A)((0,r.A)({},e),{},{type:m,checked:o.target.checked}),stopPropagation:function(){o.stopPropagation()},preventDefault:function(){o.preventDefault()},nativeEvent:o.nativeEvent}))},disabled:f,checked:!!B,type:m})),u.createElement("span",{className:"".concat(c,"-inner")}))}))}}]);
|
|
2
|
+
//# sourceMappingURL=96603.18c5d644.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/96603.863a8f96.chunk.js","mappings":"iJAOe,SAASA,EAAcC,GACpC,MAAMC,EAAoBC,EAAAA,OAAa,MACjCC,EAAYA,KAChBC,EAAAA,EAAIC,OAAOJ,EAAkBK,SAC7BL,EAAkBK,QAAU,IAAI,EAelC,MAAO,CAbcC,KACnBJ,IACAF,EAAkBK,SAAUF,EAAAA,EAAAA,IAAI,KAC9BH,EAAkBK,QAAU,IAAI,GAChC,EAEiBE,IACfP,EAAkBK,UACpBE,EAAEC,kBACFN,KAEqB,OAAvBH,QAAsD,IAAvBA,GAAyCA,EAAmBQ,EAAE,EAGjG,C,8HC1BA,MAAME,EAAiCR,EAAAA,cAAoB,MAC9CS,EAA4BD,EAAkBE,SAC3D,IACaC,EAAsCX,EAAAA,cAAoB,MAC1DY,EAAiCD,EAAuBD,S,6HCArE,MAAMG,EAAqBC,IACzB,MAAM,aACJC,EAAY,OACZC,GACEF,EACEG,EAAiB,GAAHC,OAAMH,EAAY,UACtC,MAA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,QAChBkQ,cAAeZ,EAAUtP,QAE7B,IACA,IAAImO,EAAcvC,IAAWxB,EAAWE,GAAW6F,EAAAA,EAAAA,IAAgBA,EAAAA,EAAAA,GAAgB,CAAC,EAAG,GAAGrP,OAAOsJ,EAAW,YAAasF,GAAW,GAAG5O,OAAOsJ,EAAW,aAAckB,IAsBvK,OAAoB1L,EAAAA,cAAoB,OAAQ,CAC9C0K,UAAW6D,EACXzD,MAAOA,EACPD,MAAOA,EACPnB,IAAKgG,GACS1P,EAAAA,cAAoB,SAASwQ,EAAAA,EAAAA,GAAS,CAAC,EAAGlB,EAAY,CACpE5E,UAAW,GAAGxJ,OAAOsJ,EAAW,UAChCd,IAAK8F,EACLjF,SA7BiB,SAAsBjK,GACnCoL,IAGE,YAAajC,GACjBsG,EAAYzP,EAAEsN,OAAO/B,SAEV,OAAbtB,QAAkC,IAAbA,GAAuBA,EAAS,CACnDqD,QAAQ6C,EAAAA,EAAAA,IAAcA,EAAAA,EAAAA,GAAc,CAAC,EAAGhH,GAAQ,CAAC,EAAG,CAClDiD,KAAMA,EACNb,QAASvL,EAAEsN,OAAO/B,UAEpBtL,gBAAiB,WACfD,EAAEC,iBACJ,EACAmQ,eAAgB,WACdpQ,EAAEoQ,gBACJ,EACAC,YAAarQ,EAAEqQ,cAEnB,EAUEjF,SAAUA,EACVG,UAAWiE,EACXpD,KAAMA,KACU1M,EAAAA,cAAoB,OAAQ,CAC5C0K,UAAW,GAAGxJ,OAAOsJ,EAAW,YAEpC,G","sources":["../node_modules/antd/es/checkbox/useBubbleLock.js","../node_modules/antd/es/radio/context.js","../node_modules/antd/es/radio/style/index.js","../node_modules/antd/es/radio/radio.js","../node_modules/antd/es/radio/group.js","../node_modules/antd/es/radio/radioButton.js","../node_modules/antd/es/radio/index.js","../node_modules/rc-checkbox/es/index.js"],"sourcesContent":["import React from 'react';\nimport raf from \"rc-util/es/raf\";\n/**\n * When click on the label,\n * the event will be stopped to prevent the label from being clicked twice.\n * label click -> input click -> label click again\n */\nexport default function useBubbleLock(onOriginInputClick) {\n const labelClickLockRef = React.useRef(null);\n const clearLock = () => {\n raf.cancel(labelClickLockRef.current);\n labelClickLockRef.current = null;\n };\n const onLabelClick = () => {\n clearLock();\n labelClickLockRef.current = raf(() => {\n labelClickLockRef.current = null;\n });\n };\n const onInputClick = e => {\n if (labelClickLockRef.current) {\n e.stopPropagation();\n clearLock();\n }\n onOriginInputClick === null || onOriginInputClick === void 0 ? void 0 : onOriginInputClick(e);\n };\n return [onLabelClick, onInputClick];\n}","import * as React from 'react';\nconst RadioGroupContext = /*#__PURE__*/React.createContext(null);\nexport const RadioGroupContextProvider = RadioGroupContext.Provider;\nexport default RadioGroupContext;\nexport const RadioOptionTypeContext = /*#__PURE__*/React.createContext(null);\nexport const RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;","import { unit } from '@ant-design/cssinjs';\nimport { genFocusOutline, resetComponent } from '../../style';\nimport { genStyleHooks, mergeToken } from '../../theme/internal';\n// ============================== Styles ==============================\n// styles from RadioGroup only\nconst getGroupRadioStyle = token => {\n const {\n componentCls,\n antCls\n } = token;\n const groupPrefixCls = `${componentCls}-group`;\n return {\n [groupPrefixCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n display: 'inline-block',\n fontSize: 0,\n // RTL\n [`&${groupPrefixCls}-rtl`]: {\n direction: 'rtl'\n },\n [`&${groupPrefixCls}-block`]: {\n display: 'flex'\n },\n [`${antCls}-badge ${antCls}-badge-count`]: {\n zIndex: 1\n },\n [`> ${antCls}-badge:not(:first-child) > ${antCls}-button-wrapper`]: {\n borderInlineStart: 'none'\n }\n })\n };\n};\n// Styles from radio-wrapper\nconst getRadioBasicStyle = token => {\n const {\n componentCls,\n wrapperMarginInlineEnd,\n colorPrimary,\n radioSize,\n motionDurationSlow,\n motionDurationMid,\n motionEaseInOutCirc,\n colorBgContainer,\n colorBorder,\n lineWidth,\n colorBgContainerDisabled,\n colorTextDisabled,\n paddingXS,\n dotColorDisabled,\n lineType,\n radioColor,\n radioBgColor,\n calc\n } = token;\n const radioInnerPrefixCls = `${componentCls}-inner`;\n const dotPadding = 4;\n const radioDotDisabledSize = calc(radioSize).sub(calc(dotPadding).mul(2));\n const radioSizeCalc = calc(1).mul(radioSize).equal({\n unit: true\n });\n return {\n [`${componentCls}-wrapper`]: Object.assign(Object.assign({}, resetComponent(token)), {\n display: 'inline-flex',\n alignItems: 'baseline',\n marginInlineStart: 0,\n marginInlineEnd: wrapperMarginInlineEnd,\n cursor: 'pointer',\n // RTL\n [`&${componentCls}-wrapper-rtl`]: {\n direction: 'rtl'\n },\n '&-disabled': {\n cursor: 'not-allowed',\n color: token.colorTextDisabled\n },\n '&::after': {\n display: 'inline-block',\n width: 0,\n overflow: 'hidden',\n content: '\"\\\\a0\"'\n },\n '&-block': {\n flex: 1,\n justifyContent: 'center'\n },\n // hashId 在 wrapper 上,只能铺平\n [`${componentCls}-checked::after`]: {\n position: 'absolute',\n insetBlockStart: 0,\n insetInlineStart: 0,\n width: '100%',\n height: '100%',\n border: `${unit(lineWidth)} ${lineType} ${colorPrimary}`,\n borderRadius: '50%',\n visibility: 'hidden',\n opacity: 0,\n content: '\"\"'\n },\n [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n position: 'relative',\n display: 'inline-block',\n outline: 'none',\n cursor: 'pointer',\n alignSelf: 'center',\n borderRadius: '50%'\n }),\n [`${componentCls}-wrapper:hover &,\n &:hover ${radioInnerPrefixCls}`]: {\n borderColor: colorPrimary\n },\n [`${componentCls}-input:focus-visible + ${radioInnerPrefixCls}`]: Object.assign({}, genFocusOutline(token)),\n [`${componentCls}:hover::after, ${componentCls}-wrapper:hover &::after`]: {\n visibility: 'visible'\n },\n [`${componentCls}-inner`]: {\n '&::after': {\n boxSizing: 'border-box',\n position: 'absolute',\n insetBlockStart: '50%',\n insetInlineStart: '50%',\n display: 'block',\n width: radioSizeCalc,\n height: radioSizeCalc,\n marginBlockStart: calc(1).mul(radioSize).div(-2).equal({\n unit: true\n }),\n marginInlineStart: calc(1).mul(radioSize).div(-2).equal({\n unit: true\n }),\n backgroundColor: radioColor,\n borderBlockStart: 0,\n borderInlineStart: 0,\n borderRadius: radioSizeCalc,\n transform: 'scale(0)',\n opacity: 0,\n transition: `all ${motionDurationSlow} ${motionEaseInOutCirc}`,\n content: '\"\"'\n },\n boxSizing: 'border-box',\n position: 'relative',\n insetBlockStart: 0,\n insetInlineStart: 0,\n display: 'block',\n width: radioSizeCalc,\n height: radioSizeCalc,\n backgroundColor: colorBgContainer,\n borderColor: colorBorder,\n borderStyle: 'solid',\n borderWidth: lineWidth,\n borderRadius: '50%',\n transition: `all ${motionDurationMid}`\n },\n [`${componentCls}-input`]: {\n position: 'absolute',\n inset: 0,\n zIndex: 1,\n cursor: 'pointer',\n opacity: 0\n },\n // 选中状态\n [`${componentCls}-checked`]: {\n [radioInnerPrefixCls]: {\n borderColor: colorPrimary,\n backgroundColor: radioBgColor,\n '&::after': {\n transform: `scale(${token.calc(token.dotSize).div(radioSize).equal()})`,\n opacity: 1,\n transition: `all ${motionDurationSlow} ${motionEaseInOutCirc}`\n }\n }\n },\n [`${componentCls}-disabled`]: {\n cursor: 'not-allowed',\n [radioInnerPrefixCls]: {\n backgroundColor: colorBgContainerDisabled,\n borderColor: colorBorder,\n cursor: 'not-allowed',\n '&::after': {\n backgroundColor: dotColorDisabled\n }\n },\n [`${componentCls}-input`]: {\n cursor: 'not-allowed'\n },\n [`${componentCls}-disabled + span`]: {\n color: colorTextDisabled,\n cursor: 'not-allowed'\n },\n [`&${componentCls}-checked`]: {\n [radioInnerPrefixCls]: {\n '&::after': {\n transform: `scale(${calc(radioDotDisabledSize).div(radioSize).equal()})`\n }\n }\n }\n },\n [`span${componentCls} + *`]: {\n paddingInlineStart: paddingXS,\n paddingInlineEnd: paddingXS\n }\n })\n };\n};\n// Styles from radio-button\nconst getRadioButtonStyle = token => {\n const {\n buttonColor,\n controlHeight,\n componentCls,\n lineWidth,\n lineType,\n colorBorder,\n motionDurationSlow,\n motionDurationMid,\n buttonPaddingInline,\n fontSize,\n buttonBg,\n fontSizeLG,\n controlHeightLG,\n controlHeightSM,\n paddingXS,\n borderRadius,\n borderRadiusSM,\n borderRadiusLG,\n buttonCheckedBg,\n buttonSolidCheckedColor,\n colorTextDisabled,\n colorBgContainerDisabled,\n buttonCheckedBgDisabled,\n buttonCheckedColorDisabled,\n colorPrimary,\n colorPrimaryHover,\n colorPrimaryActive,\n buttonSolidCheckedBg,\n buttonSolidCheckedHoverBg,\n buttonSolidCheckedActiveBg,\n calc\n } = token;\n return {\n [`${componentCls}-button-wrapper`]: {\n position: 'relative',\n display: 'inline-block',\n height: controlHeight,\n margin: 0,\n paddingInline: buttonPaddingInline,\n paddingBlock: 0,\n color: buttonColor,\n fontSize,\n lineHeight: unit(calc(controlHeight).sub(calc(lineWidth).mul(2)).equal()),\n background: buttonBg,\n border: `${unit(lineWidth)} ${lineType} ${colorBorder}`,\n // strange align fix for chrome but works\n // https://gw.alipayobjects.com/zos/rmsportal/VFTfKXJuogBAXcvfAUWJ.gif\n borderBlockStartWidth: calc(lineWidth).add(0.02).equal(),\n borderInlineStartWidth: 0,\n borderInlineEndWidth: lineWidth,\n cursor: 'pointer',\n transition: [`color ${motionDurationMid}`, `background ${motionDurationMid}`, `box-shadow ${motionDurationMid}`].join(','),\n a: {\n color: buttonColor\n },\n [`> ${componentCls}-button`]: {\n position: 'absolute',\n insetBlockStart: 0,\n insetInlineStart: 0,\n zIndex: -1,\n width: '100%',\n height: '100%'\n },\n '&:not(:first-child)': {\n '&::before': {\n position: 'absolute',\n insetBlockStart: calc(lineWidth).mul(-1).equal(),\n insetInlineStart: calc(lineWidth).mul(-1).equal(),\n display: 'block',\n boxSizing: 'content-box',\n width: 1,\n height: '100%',\n paddingBlock: lineWidth,\n paddingInline: 0,\n backgroundColor: colorBorder,\n transition: `background-color ${motionDurationSlow}`,\n content: '\"\"'\n }\n },\n '&:first-child': {\n borderInlineStart: `${unit(lineWidth)} ${lineType} ${colorBorder}`,\n borderStartStartRadius: borderRadius,\n borderEndStartRadius: borderRadius\n },\n '&:last-child': {\n borderStartEndRadius: borderRadius,\n borderEndEndRadius: borderRadius\n },\n '&:first-child:last-child': {\n borderRadius\n },\n [`${componentCls}-group-large &`]: {\n height: controlHeightLG,\n fontSize: fontSizeLG,\n lineHeight: unit(calc(controlHeightLG).sub(calc(lineWidth).mul(2)).equal()),\n '&:first-child': {\n borderStartStartRadius: borderRadiusLG,\n borderEndStartRadius: borderRadiusLG\n },\n '&:last-child': {\n borderStartEndRadius: borderRadiusLG,\n borderEndEndRadius: borderRadiusLG\n }\n },\n [`${componentCls}-group-small &`]: {\n height: controlHeightSM,\n paddingInline: calc(paddingXS).sub(lineWidth).equal(),\n paddingBlock: 0,\n lineHeight: unit(calc(controlHeightSM).sub(calc(lineWidth).mul(2)).equal()),\n '&:first-child': {\n borderStartStartRadius: borderRadiusSM,\n borderEndStartRadius: borderRadiusSM\n },\n '&:last-child': {\n borderStartEndRadius: borderRadiusSM,\n borderEndEndRadius: borderRadiusSM\n }\n },\n '&:hover': {\n position: 'relative',\n color: colorPrimary\n },\n '&:has(:focus-visible)': Object.assign({}, genFocusOutline(token)),\n [`${componentCls}-inner, input[type='checkbox'], input[type='radio']`]: {\n width: 0,\n height: 0,\n opacity: 0,\n pointerEvents: 'none'\n },\n [`&-checked:not(${componentCls}-button-wrapper-disabled)`]: {\n zIndex: 1,\n color: colorPrimary,\n background: buttonCheckedBg,\n borderColor: colorPrimary,\n '&::before': {\n backgroundColor: colorPrimary\n },\n '&:first-child': {\n borderColor: colorPrimary\n },\n '&:hover': {\n color: colorPrimaryHover,\n borderColor: colorPrimaryHover,\n '&::before': {\n backgroundColor: colorPrimaryHover\n }\n },\n '&:active': {\n color: colorPrimaryActive,\n borderColor: colorPrimaryActive,\n '&::before': {\n backgroundColor: colorPrimaryActive\n }\n }\n },\n [`${componentCls}-group-solid &-checked:not(${componentCls}-button-wrapper-disabled)`]: {\n color: buttonSolidCheckedColor,\n background: buttonSolidCheckedBg,\n borderColor: buttonSolidCheckedBg,\n '&:hover': {\n color: buttonSolidCheckedColor,\n background: buttonSolidCheckedHoverBg,\n borderColor: buttonSolidCheckedHoverBg\n },\n '&:active': {\n color: buttonSolidCheckedColor,\n background: buttonSolidCheckedActiveBg,\n borderColor: buttonSolidCheckedActiveBg\n }\n },\n '&-disabled': {\n color: colorTextDisabled,\n backgroundColor: colorBgContainerDisabled,\n borderColor: colorBorder,\n cursor: 'not-allowed',\n '&:first-child, &:hover': {\n color: colorTextDisabled,\n backgroundColor: colorBgContainerDisabled,\n borderColor: colorBorder\n }\n },\n [`&-disabled${componentCls}-button-wrapper-checked`]: {\n color: buttonCheckedColorDisabled,\n backgroundColor: buttonCheckedBgDisabled,\n borderColor: colorBorder,\n boxShadow: 'none'\n },\n '&-block': {\n flex: 1,\n textAlign: 'center'\n }\n }\n };\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = token => {\n const {\n wireframe,\n padding,\n marginXS,\n lineWidth,\n fontSizeLG,\n colorText,\n colorBgContainer,\n colorTextDisabled,\n controlItemBgActiveDisabled,\n colorTextLightSolid,\n colorPrimary,\n colorPrimaryHover,\n colorPrimaryActive,\n colorWhite\n } = token;\n const dotPadding = 4; // Fixed value\n const radioSize = fontSizeLG;\n const radioDotSize = wireframe ? radioSize - dotPadding * 2 : radioSize - (dotPadding + lineWidth) * 2;\n return {\n // Radio\n radioSize,\n dotSize: radioDotSize,\n dotColorDisabled: colorTextDisabled,\n // Radio buttons\n buttonSolidCheckedColor: colorTextLightSolid,\n buttonSolidCheckedBg: colorPrimary,\n buttonSolidCheckedHoverBg: colorPrimaryHover,\n buttonSolidCheckedActiveBg: colorPrimaryActive,\n buttonBg: colorBgContainer,\n buttonCheckedBg: colorBgContainer,\n buttonColor: colorText,\n buttonCheckedBgDisabled: controlItemBgActiveDisabled,\n buttonCheckedColorDisabled: colorTextDisabled,\n buttonPaddingInline: padding - lineWidth,\n wrapperMarginInlineEnd: marginXS,\n // internal\n radioColor: wireframe ? colorPrimary : colorWhite,\n radioBgColor: wireframe ? colorBgContainer : colorPrimary\n };\n};\nexport default genStyleHooks('Radio', token => {\n const {\n controlOutline,\n controlOutlineWidth\n } = token;\n const radioFocusShadow = `0 0 0 ${unit(controlOutlineWidth)} ${controlOutline}`;\n const radioButtonFocusShadow = radioFocusShadow;\n const radioToken = mergeToken(token, {\n radioFocusShadow,\n radioButtonFocusShadow\n });\n return [getGroupRadioStyle(radioToken), getRadioBasicStyle(radioToken), getRadioButtonStyle(radioToken)];\n}, prepareComponentToken, {\n unitless: {\n radioSize: true,\n dotSize: true\n }\n});","\"use client\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport RcCheckbox from 'rc-checkbox';\nimport { composeRef } from \"rc-util/es/ref\";\nimport { devUseWarning } from '../_util/warning';\nimport Wave from '../_util/wave';\nimport { TARGET_CLS } from '../_util/wave/interface';\nimport useBubbleLock from '../checkbox/useBubbleLock';\nimport { ConfigContext } from '../config-provider';\nimport DisabledContext from '../config-provider/DisabledContext';\nimport useCSSVarCls from '../config-provider/hooks/useCSSVarCls';\nimport { FormItemInputContext } from '../form/context';\nimport RadioGroupContext, { RadioOptionTypeContext } from './context';\nimport useStyle from './style';\nconst InternalRadio = (props, ref) => {\n var _a, _b;\n const groupContext = React.useContext(RadioGroupContext);\n const radioOptionTypeContext = React.useContext(RadioOptionTypeContext);\n const {\n getPrefixCls,\n direction,\n radio\n } = React.useContext(ConfigContext);\n const innerRef = React.useRef(null);\n const mergedRef = composeRef(ref, innerRef);\n const {\n isFormItemInput\n } = React.useContext(FormItemInputContext);\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('Radio');\n process.env.NODE_ENV !== \"production\" ? warning(!('optionType' in props), 'usage', '`optionType` is only support in Radio.Group.') : void 0;\n }\n const onChange = e => {\n var _a, _b;\n (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, e);\n (_b = groupContext === null || groupContext === void 0 ? void 0 : groupContext.onChange) === null || _b === void 0 ? void 0 : _b.call(groupContext, e);\n };\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n children,\n style,\n title\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"className\", \"rootClassName\", \"children\", \"style\", \"title\"]);\n const radioPrefixCls = getPrefixCls('radio', customizePrefixCls);\n const isButtonType = ((groupContext === null || groupContext === void 0 ? void 0 : groupContext.optionType) || radioOptionTypeContext) === 'button';\n const prefixCls = isButtonType ? `${radioPrefixCls}-button` : radioPrefixCls;\n // Style\n const rootCls = useCSSVarCls(radioPrefixCls);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(radioPrefixCls, rootCls);\n const radioProps = Object.assign({}, restProps);\n // ===================== Disabled =====================\n const disabled = React.useContext(DisabledContext);\n if (groupContext) {\n radioProps.name = groupContext.name;\n radioProps.onChange = onChange;\n radioProps.checked = props.value === groupContext.value;\n radioProps.disabled = (_a = radioProps.disabled) !== null && _a !== void 0 ? _a : groupContext.disabled;\n }\n radioProps.disabled = (_b = radioProps.disabled) !== null && _b !== void 0 ? _b : disabled;\n const wrapperClassString = classNames(`${prefixCls}-wrapper`, {\n [`${prefixCls}-wrapper-checked`]: radioProps.checked,\n [`${prefixCls}-wrapper-disabled`]: radioProps.disabled,\n [`${prefixCls}-wrapper-rtl`]: direction === 'rtl',\n [`${prefixCls}-wrapper-in-form-item`]: isFormItemInput,\n [`${prefixCls}-wrapper-block`]: !!(groupContext === null || groupContext === void 0 ? void 0 : groupContext.block)\n }, radio === null || radio === void 0 ? void 0 : radio.className, className, rootClassName, hashId, cssVarCls, rootCls);\n // ============================ Event Lock ============================\n const [onLabelClick, onInputClick] = useBubbleLock(radioProps.onClick);\n // ============================== Render ==============================\n return wrapCSSVar(/*#__PURE__*/React.createElement(Wave, {\n component: \"Radio\",\n disabled: radioProps.disabled\n }, /*#__PURE__*/React.createElement(\"label\", {\n className: wrapperClassString,\n style: Object.assign(Object.assign({}, radio === null || radio === void 0 ? void 0 : radio.style), style),\n onMouseEnter: props.onMouseEnter,\n onMouseLeave: props.onMouseLeave,\n title: title,\n onClick: onLabelClick\n }, /*#__PURE__*/React.createElement(RcCheckbox, Object.assign({}, radioProps, {\n className: classNames(radioProps.className, {\n [TARGET_CLS]: !isButtonType\n }),\n type: \"radio\",\n prefixCls: prefixCls,\n ref: mergedRef,\n onClick: onInputClick\n })), children !== undefined ? /*#__PURE__*/React.createElement(\"span\", null, children) : null)));\n};\nconst Radio = /*#__PURE__*/React.forwardRef(InternalRadio);\nif (process.env.NODE_ENV !== 'production') {\n Radio.displayName = 'Radio';\n}\nexport default Radio;","\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport pickAttrs from \"rc-util/es/pickAttrs\";\nimport { ConfigContext } from '../config-provider';\nimport useCSSVarCls from '../config-provider/hooks/useCSSVarCls';\nimport useSize from '../config-provider/hooks/useSize';\nimport { RadioGroupContextProvider } from './context';\nimport Radio from './radio';\nimport useStyle from './style';\nconst RadioGroup = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n options,\n buttonStyle = 'outline',\n disabled,\n children,\n size: customizeSize,\n style,\n id,\n optionType,\n name,\n defaultValue,\n value: customizedValue,\n block = false,\n onChange,\n onMouseEnter,\n onMouseLeave,\n onFocus,\n onBlur\n } = props;\n const [value, setValue] = useMergedState(defaultValue, {\n value: customizedValue\n });\n const onRadioChange = React.useCallback(event => {\n const lastValue = value;\n const val = event.target.value;\n if (!('value' in props)) {\n setValue(val);\n }\n if (val !== lastValue) {\n onChange === null || onChange === void 0 ? void 0 : onChange(event);\n }\n }, [value, setValue, onChange]);\n const prefixCls = getPrefixCls('radio', customizePrefixCls);\n const groupPrefixCls = `${prefixCls}-group`;\n // Style\n const rootCls = useCSSVarCls(prefixCls);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls, rootCls);\n let childrenToRender = children;\n // 如果存在 options, 优先使用\n if (options && options.length > 0) {\n childrenToRender = options.map(option => {\n if (typeof option === 'string' || typeof option === 'number') {\n // 此处类型自动推导为 string\n return /*#__PURE__*/React.createElement(Radio, {\n key: option.toString(),\n prefixCls: prefixCls,\n disabled: disabled,\n value: option,\n checked: value === option\n }, option);\n }\n // 此处类型自动推导为 { label: string value: string }\n return /*#__PURE__*/React.createElement(Radio, {\n key: `radio-group-value-options-${option.value}`,\n prefixCls: prefixCls,\n disabled: option.disabled || disabled,\n value: option.value,\n checked: value === option.value,\n title: option.title,\n style: option.style,\n id: option.id,\n required: option.required\n }, option.label);\n });\n }\n const mergedSize = useSize(customizeSize);\n const classString = classNames(groupPrefixCls, `${groupPrefixCls}-${buttonStyle}`, {\n [`${groupPrefixCls}-${mergedSize}`]: mergedSize,\n [`${groupPrefixCls}-rtl`]: direction === 'rtl',\n [`${groupPrefixCls}-block`]: block\n }, className, rootClassName, hashId, cssVarCls, rootCls);\n const memoizedValue = React.useMemo(() => ({\n onChange: onRadioChange,\n value,\n disabled,\n name,\n optionType,\n block\n }), [onRadioChange, value, disabled, name, optionType, block]);\n return wrapCSSVar(/*#__PURE__*/React.createElement(\"div\", Object.assign({}, pickAttrs(props, {\n aria: true,\n data: true\n }), {\n className: classString,\n style: style,\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave,\n onFocus: onFocus,\n onBlur: onBlur,\n id: id,\n ref: ref\n }), /*#__PURE__*/React.createElement(RadioGroupContextProvider, {\n value: memoizedValue\n }, childrenToRender)));\n});\nexport default /*#__PURE__*/React.memo(RadioGroup);","\"use client\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport { RadioOptionTypeContextProvider } from './context';\nimport Radio from './radio';\nconst RadioButton = (props, ref) => {\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const {\n prefixCls: customizePrefixCls\n } = props,\n radioProps = __rest(props, [\"prefixCls\"]);\n const prefixCls = getPrefixCls('radio', customizePrefixCls);\n return /*#__PURE__*/React.createElement(RadioOptionTypeContextProvider, {\n value: \"button\"\n }, /*#__PURE__*/React.createElement(Radio, Object.assign({\n prefixCls: prefixCls\n }, radioProps, {\n type: \"radio\",\n ref: ref\n })));\n};\nexport default /*#__PURE__*/React.forwardRef(RadioButton);","\"use client\";\n\nimport Group from './group';\nimport InternalRadio from './radio';\nimport Button from './radioButton';\nexport { Button, Group };\nconst Radio = InternalRadio;\nRadio.Button = Button;\nRadio.Group = Group;\nRadio.__ANT_RADIO = true;\nexport default Radio;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"checked\", \"disabled\", \"defaultChecked\", \"type\", \"title\", \"onChange\"];\nimport classNames from 'classnames';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport * as React from 'react';\nimport { forwardRef, useImperativeHandle, useRef } from 'react';\nexport var Checkbox = /*#__PURE__*/forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'rc-checkbox' : _props$prefixCls,\n className = props.className,\n style = props.style,\n checked = props.checked,\n disabled = props.disabled,\n _props$defaultChecked = props.defaultChecked,\n defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked,\n _props$type = props.type,\n type = _props$type === void 0 ? 'checkbox' : _props$type,\n title = props.title,\n onChange = props.onChange,\n inputProps = _objectWithoutProperties(props, _excluded);\n var inputRef = useRef(null);\n var holderRef = useRef(null);\n var _useMergedState = useMergedState(defaultChecked, {\n value: checked\n }),\n _useMergedState2 = _slicedToArray(_useMergedState, 2),\n rawValue = _useMergedState2[0],\n setRawValue = _useMergedState2[1];\n useImperativeHandle(ref, function () {\n return {\n focus: function focus(options) {\n var _inputRef$current;\n (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus(options);\n },\n blur: function blur() {\n var _inputRef$current2;\n (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.blur();\n },\n input: inputRef.current,\n nativeElement: holderRef.current\n };\n });\n var classString = classNames(prefixCls, className, _defineProperty(_defineProperty({}, \"\".concat(prefixCls, \"-checked\"), rawValue), \"\".concat(prefixCls, \"-disabled\"), disabled));\n var handleChange = function handleChange(e) {\n if (disabled) {\n return;\n }\n if (!('checked' in props)) {\n setRawValue(e.target.checked);\n }\n onChange === null || onChange === void 0 || onChange({\n target: _objectSpread(_objectSpread({}, props), {}, {\n type: type,\n checked: e.target.checked\n }),\n stopPropagation: function stopPropagation() {\n e.stopPropagation();\n },\n preventDefault: function preventDefault() {\n e.preventDefault();\n },\n nativeEvent: e.nativeEvent\n });\n };\n return /*#__PURE__*/React.createElement(\"span\", {\n className: classString,\n title: title,\n style: style,\n ref: holderRef\n }, /*#__PURE__*/React.createElement(\"input\", _extends({}, inputProps, {\n className: \"\".concat(prefixCls, \"-input\"),\n ref: inputRef,\n onChange: handleChange,\n disabled: disabled,\n checked: !!rawValue,\n type: type\n })), /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-inner\")\n }));\n});\nexport default Checkbox;"],"names":["useBubbleLock","onOriginInputClick","labelClickLockRef","React","clearLock","raf","cancel","current","onLabelClick","e","stopPropagation","RadioGroupContext","RadioGroupContextProvider","Provider","RadioOptionTypeContext","RadioOptionTypeContextProvider","getGroupRadioStyle","token","componentCls","antCls","groupPrefixCls","concat","Object","assign","resetComponent","display","fontSize","direction","zIndex","borderInlineStart","getRadioBasicStyle","wrapperMarginInlineEnd","colorPrimary","radioSize","motionDurationSlow","motionDurationMid","motionEaseInOutCirc","colorBgContainer","colorBorder","lineWidth","colorBgContainerDisabled","colorTextDisabled","paddingXS","dotColorDisabled","lineType","radioColor","radioBgColor","calc","radioInnerPrefixCls","radioDotDisabledSize","sub","mul","radioSizeCalc","equal","unit","alignItems","marginInlineStart","marginInlineEnd","cursor","color","width","overflow","content","flex","justifyContent","position","insetBlockStart","insetInlineStart","height","border","borderRadius","visibility","opacity","outline","alignSelf","borderColor","genFocusOutline","boxSizing","marginBlockStart","div","backgroundColor","borderBlockStart","transform","transition","borderStyle","borderWidth","inset","dotSize","paddingInlineStart","paddingInlineEnd","getRadioButtonStyle","buttonColor","controlHeight","buttonPaddingInline","buttonBg","fontSizeLG","controlHeightLG","controlHeightSM","borderRadiusSM","borderRadiusLG","buttonCheckedBg","buttonSolidCheckedColor","buttonCheckedBgDisabled","buttonCheckedColorDisabled","colorPrimaryHover","colorPrimaryActive","buttonSolidCheckedBg","buttonSolidCheckedHoverBg","buttonSolidCheckedActiveBg","margin","paddingInline","paddingBlock","lineHeight","background","borderBlockStartWidth","add","borderInlineStartWidth","borderInlineEndWidth","join","a","borderStartStartRadius","borderEndStartRadius","borderStartEndRadius","borderEndEndRadius","pointerEvents","boxShadow","textAlign","genStyleHooks","controlOutline","controlOutlineWidth","radioFocusShadow","radioButtonFocusShadow","radioToken","mergeToken","wireframe","padding","marginXS","colorText","controlItemBgActiveDisabled","colorTextLightSolid","colorWhite","dotPadding","unitless","__rest","s","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","InternalRadio","props","ref","_a","_b","groupContext","radioOptionTypeContext","getPrefixCls","radio","ConfigContext","innerRef","mergedRef","composeRef","isFormItemInput","FormItemInputContext","onChange","prefixCls","customizePrefixCls","className","rootClassName","children","style","title","restProps","radioPrefixCls","isButtonType","optionType","rootCls","useCSSVarCls","wrapCSSVar","hashId","cssVarCls","useStyle","radioProps","disabled","DisabledContext","name","checked","value","wrapperClassString","classNames","block","onInputClick","onClick","Wave","component","onMouseEnter","onMouseLeave","RcCheckbox","TARGET_CLS","type","undefined","RadioGroup","options","buttonStyle","size","customizeSize","id","defaultValue","customizedValue","onFocus","onBlur","setValue","useMergedState","onRadioChange","event","lastValue","val","target","childrenToRender","map","option","Radio","key","toString","required","label","mergedSize","useSize","classString","memoizedValue","pickAttrs","aria","data","RadioButton","Button","Group","__ANT_RADIO","_excluded","forwardRef","_props$prefixCls","_props$defaultChecked","defaultChecked","_props$type","inputProps","_objectWithoutProperties","inputRef","useRef","holderRef","_useMergedState","_useMergedState2","_slicedToArray","rawValue","setRawValue","useImperativeHandle","focus","_inputRef$current","blur","_inputRef$current2","input","nativeElement","_defineProperty","_extends","_objectSpread","preventDefault","nativeEvent"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/96603.18c5d644.chunk.js","mappings":"iJAOe,SAASA,EAAcC,GACpC,MAAMC,EAAoBC,EAAAA,OAAa,MACjCC,EAAYA,KAChBC,EAAAA,EAAIC,OAAOJ,EAAkBK,SAC7BL,EAAkBK,QAAU,IAAI,EAelC,MAAO,CAbcC,KACnBJ,IACAF,EAAkBK,SAAUF,EAAAA,EAAA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KACU1M,EAAAA,cAAoB,OAAQ,CAC5C0K,UAAW,GAAGxJ,OAAOsJ,EAAW,YAEpC,G","sources":["../node_modules/antd/es/checkbox/useBubbleLock.js","../node_modules/antd/es/radio/context.js","../node_modules/antd/es/radio/style/index.js","../node_modules/antd/es/radio/radio.js","../node_modules/antd/es/radio/group.js","../node_modules/antd/es/radio/radioButton.js","../node_modules/antd/es/radio/index.js","../node_modules/rc-checkbox/es/index.js"],"sourcesContent":["import React from 'react';\nimport raf from \"rc-util/es/raf\";\n/**\n * When click on the label,\n * the event will be stopped to prevent the label from being clicked twice.\n * label click -> input click -> label click again\n */\nexport default function useBubbleLock(onOriginInputClick) {\n const labelClickLockRef = React.useRef(null);\n const clearLock = () => {\n raf.cancel(labelClickLockRef.current);\n labelClickLockRef.current = null;\n };\n const onLabelClick = () => {\n clearLock();\n labelClickLockRef.current = raf(() => {\n labelClickLockRef.current = null;\n });\n };\n const onInputClick = e => {\n if (labelClickLockRef.current) {\n e.stopPropagation();\n clearLock();\n }\n onOriginInputClick === null || onOriginInputClick === void 0 ? void 0 : onOriginInputClick(e);\n };\n return [onLabelClick, onInputClick];\n}","import * as React from 'react';\nconst RadioGroupContext = /*#__PURE__*/React.createContext(null);\nexport const RadioGroupContextProvider = RadioGroupContext.Provider;\nexport default RadioGroupContext;\nexport const RadioOptionTypeContext = /*#__PURE__*/React.createContext(null);\nexport const RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;","import { unit } from '@ant-design/cssinjs';\nimport { genFocusOutline, resetComponent } from '../../style';\nimport { genStyleHooks, mergeToken } from '../../theme/internal';\n// ============================== Styles ==============================\n// styles from RadioGroup only\nconst getGroupRadioStyle = token => {\n const {\n componentCls,\n antCls\n } = token;\n const groupPrefixCls = `${componentCls}-group`;\n return {\n [groupPrefixCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n display: 'inline-block',\n fontSize: 0,\n // RTL\n [`&${groupPrefixCls}-rtl`]: {\n direction: 'rtl'\n },\n [`&${groupPrefixCls}-block`]: {\n display: 'flex'\n },\n [`${antCls}-badge ${antCls}-badge-count`]: {\n zIndex: 1\n },\n [`> ${antCls}-badge:not(:first-child) > ${antCls}-button-wrapper`]: {\n borderInlineStart: 'none'\n }\n })\n };\n};\n// Styles from radio-wrapper\nconst getRadioBasicStyle = token => {\n const {\n componentCls,\n wrapperMarginInlineEnd,\n colorPrimary,\n radioSize,\n motionDurationSlow,\n motionDurationMid,\n motionEaseInOutCirc,\n colorBgContainer,\n colorBorder,\n lineWidth,\n colorBgContainerDisabled,\n colorTextDisabled,\n paddingXS,\n dotColorDisabled,\n lineType,\n radioColor,\n radioBgColor,\n calc\n } = token;\n const radioInnerPrefixCls = `${componentCls}-inner`;\n const dotPadding = 4;\n const radioDotDisabledSize = calc(radioSize).sub(calc(dotPadding).mul(2));\n const radioSizeCalc = calc(1).mul(radioSize).equal({\n unit: true\n });\n return {\n [`${componentCls}-wrapper`]: Object.assign(Object.assign({}, resetComponent(token)), {\n display: 'inline-flex',\n alignItems: 'baseline',\n marginInlineStart: 0,\n marginInlineEnd: wrapperMarginInlineEnd,\n cursor: 'pointer',\n // RTL\n [`&${componentCls}-wrapper-rtl`]: {\n direction: 'rtl'\n },\n '&-disabled': {\n cursor: 'not-allowed',\n color: token.colorTextDisabled\n },\n '&::after': {\n display: 'inline-block',\n width: 0,\n overflow: 'hidden',\n content: '\"\\\\a0\"'\n },\n '&-block': {\n flex: 1,\n justifyContent: 'center'\n },\n // hashId 在 wrapper 上,只能铺平\n [`${componentCls}-checked::after`]: {\n position: 'absolute',\n insetBlockStart: 0,\n insetInlineStart: 0,\n width: '100%',\n height: '100%',\n border: `${unit(lineWidth)} ${lineType} ${colorPrimary}`,\n borderRadius: '50%',\n visibility: 'hidden',\n opacity: 0,\n content: '\"\"'\n },\n [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n position: 'relative',\n display: 'inline-block',\n outline: 'none',\n cursor: 'pointer',\n alignSelf: 'center',\n borderRadius: '50%'\n }),\n [`${componentCls}-wrapper:hover &,\n &:hover ${radioInnerPrefixCls}`]: {\n borderColor: colorPrimary\n },\n [`${componentCls}-input:focus-visible + ${radioInnerPrefixCls}`]: Object.assign({}, genFocusOutline(token)),\n [`${componentCls}:hover::after, ${componentCls}-wrapper:hover &::after`]: {\n visibility: 'visible'\n },\n [`${componentCls}-inner`]: {\n '&::after': {\n boxSizing: 'border-box',\n position: 'absolute',\n insetBlockStart: '50%',\n insetInlineStart: '50%',\n display: 'block',\n width: radioSizeCalc,\n height: radioSizeCalc,\n marginBlockStart: calc(1).mul(radioSize).div(-2).equal({\n unit: true\n }),\n marginInlineStart: calc(1).mul(radioSize).div(-2).equal({\n unit: true\n }),\n backgroundColor: radioColor,\n borderBlockStart: 0,\n borderInlineStart: 0,\n borderRadius: radioSizeCalc,\n transform: 'scale(0)',\n opacity: 0,\n transition: `all ${motionDurationSlow} ${motionEaseInOutCirc}`,\n content: '\"\"'\n },\n boxSizing: 'border-box',\n position: 'relative',\n insetBlockStart: 0,\n insetInlineStart: 0,\n display: 'block',\n width: radioSizeCalc,\n height: radioSizeCalc,\n backgroundColor: colorBgContainer,\n borderColor: colorBorder,\n borderStyle: 'solid',\n borderWidth: lineWidth,\n borderRadius: '50%',\n transition: `all ${motionDurationMid}`\n },\n [`${componentCls}-input`]: {\n position: 'absolute',\n inset: 0,\n zIndex: 1,\n cursor: 'pointer',\n opacity: 0\n },\n // 选中状态\n [`${componentCls}-checked`]: {\n [radioInnerPrefixCls]: {\n borderColor: colorPrimary,\n backgroundColor: radioBgColor,\n '&::after': {\n transform: `scale(${token.calc(token.dotSize).div(radioSize).equal()})`,\n opacity: 1,\n transition: `all ${motionDurationSlow} ${motionEaseInOutCirc}`\n }\n }\n },\n [`${componentCls}-disabled`]: {\n cursor: 'not-allowed',\n [radioInnerPrefixCls]: {\n backgroundColor: colorBgContainerDisabled,\n borderColor: colorBorder,\n cursor: 'not-allowed',\n '&::after': {\n backgroundColor: dotColorDisabled\n }\n },\n [`${componentCls}-input`]: {\n cursor: 'not-allowed'\n },\n [`${componentCls}-disabled + span`]: {\n color: colorTextDisabled,\n cursor: 'not-allowed'\n },\n [`&${componentCls}-checked`]: {\n [radioInnerPrefixCls]: {\n '&::after': {\n transform: `scale(${calc(radioDotDisabledSize).div(radioSize).equal()})`\n }\n }\n }\n },\n [`span${componentCls} + *`]: {\n paddingInlineStart: paddingXS,\n paddingInlineEnd: paddingXS\n }\n })\n };\n};\n// Styles from radio-button\nconst getRadioButtonStyle = token => {\n const {\n buttonColor,\n controlHeight,\n componentCls,\n lineWidth,\n lineType,\n colorBorder,\n motionDurationSlow,\n motionDurationMid,\n buttonPaddingInline,\n fontSize,\n buttonBg,\n fontSizeLG,\n controlHeightLG,\n controlHeightSM,\n paddingXS,\n borderRadius,\n borderRadiusSM,\n borderRadiusLG,\n buttonCheckedBg,\n buttonSolidCheckedColor,\n colorTextDisabled,\n colorBgContainerDisabled,\n buttonCheckedBgDisabled,\n buttonCheckedColorDisabled,\n colorPrimary,\n colorPrimaryHover,\n colorPrimaryActive,\n buttonSolidCheckedBg,\n buttonSolidCheckedHoverBg,\n buttonSolidCheckedActiveBg,\n calc\n } = token;\n return {\n [`${componentCls}-button-wrapper`]: {\n position: 'relative',\n display: 'inline-block',\n height: controlHeight,\n margin: 0,\n paddingInline: buttonPaddingInline,\n paddingBlock: 0,\n color: buttonColor,\n fontSize,\n lineHeight: unit(calc(controlHeight).sub(calc(lineWidth).mul(2)).equal()),\n background: buttonBg,\n border: `${unit(lineWidth)} ${lineType} ${colorBorder}`,\n // strange align fix for chrome but works\n // https://gw.alipayobjects.com/zos/rmsportal/VFTfKXJuogBAXcvfAUWJ.gif\n borderBlockStartWidth: calc(lineWidth).add(0.02).equal(),\n borderInlineStartWidth: 0,\n borderInlineEndWidth: lineWidth,\n cursor: 'pointer',\n transition: [`color ${motionDurationMid}`, `background ${motionDurationMid}`, `box-shadow ${motionDurationMid}`].join(','),\n a: {\n color: buttonColor\n },\n [`> ${componentCls}-button`]: {\n position: 'absolute',\n insetBlockStart: 0,\n insetInlineStart: 0,\n zIndex: -1,\n width: '100%',\n height: '100%'\n },\n '&:not(:first-child)': {\n '&::before': {\n position: 'absolute',\n insetBlockStart: calc(lineWidth).mul(-1).equal(),\n insetInlineStart: calc(lineWidth).mul(-1).equal(),\n display: 'block',\n boxSizing: 'content-box',\n width: 1,\n height: '100%',\n paddingBlock: lineWidth,\n paddingInline: 0,\n backgroundColor: colorBorder,\n transition: `background-color ${motionDurationSlow}`,\n content: '\"\"'\n }\n },\n '&:first-child': {\n borderInlineStart: `${unit(lineWidth)} ${lineType} ${colorBorder}`,\n borderStartStartRadius: borderRadius,\n borderEndStartRadius: borderRadius\n },\n '&:last-child': {\n borderStartEndRadius: borderRadius,\n borderEndEndRadius: borderRadius\n },\n '&:first-child:last-child': {\n borderRadius\n },\n [`${componentCls}-group-large &`]: {\n height: controlHeightLG,\n fontSize: fontSizeLG,\n lineHeight: unit(calc(controlHeightLG).sub(calc(lineWidth).mul(2)).equal()),\n '&:first-child': {\n borderStartStartRadius: borderRadiusLG,\n borderEndStartRadius: borderRadiusLG\n },\n '&:last-child': {\n borderStartEndRadius: borderRadiusLG,\n borderEndEndRadius: borderRadiusLG\n }\n },\n [`${componentCls}-group-small &`]: {\n height: controlHeightSM,\n paddingInline: calc(paddingXS).sub(lineWidth).equal(),\n paddingBlock: 0,\n lineHeight: unit(calc(controlHeightSM).sub(calc(lineWidth).mul(2)).equal()),\n '&:first-child': {\n borderStartStartRadius: borderRadiusSM,\n borderEndStartRadius: borderRadiusSM\n },\n '&:last-child': {\n borderStartEndRadius: borderRadiusSM,\n borderEndEndRadius: borderRadiusSM\n }\n },\n '&:hover': {\n position: 'relative',\n color: colorPrimary\n },\n '&:has(:focus-visible)': Object.assign({}, genFocusOutline(token)),\n [`${componentCls}-inner, input[type='checkbox'], input[type='radio']`]: {\n width: 0,\n height: 0,\n opacity: 0,\n pointerEvents: 'none'\n },\n [`&-checked:not(${componentCls}-button-wrapper-disabled)`]: {\n zIndex: 1,\n color: colorPrimary,\n background: buttonCheckedBg,\n borderColor: colorPrimary,\n '&::before': {\n backgroundColor: colorPrimary\n },\n '&:first-child': {\n borderColor: colorPrimary\n },\n '&:hover': {\n color: colorPrimaryHover,\n borderColor: colorPrimaryHover,\n '&::before': {\n backgroundColor: colorPrimaryHover\n }\n },\n '&:active': {\n color: colorPrimaryActive,\n borderColor: colorPrimaryActive,\n '&::before': {\n backgroundColor: colorPrimaryActive\n }\n }\n },\n [`${componentCls}-group-solid &-checked:not(${componentCls}-button-wrapper-disabled)`]: {\n color: buttonSolidCheckedColor,\n background: buttonSolidCheckedBg,\n borderColor: buttonSolidCheckedBg,\n '&:hover': {\n color: buttonSolidCheckedColor,\n background: buttonSolidCheckedHoverBg,\n borderColor: buttonSolidCheckedHoverBg\n },\n '&:active': {\n color: buttonSolidCheckedColor,\n background: buttonSolidCheckedActiveBg,\n borderColor: buttonSolidCheckedActiveBg\n }\n },\n '&-disabled': {\n color: colorTextDisabled,\n backgroundColor: colorBgContainerDisabled,\n borderColor: colorBorder,\n cursor: 'not-allowed',\n '&:first-child, &:hover': {\n color: colorTextDisabled,\n backgroundColor: colorBgContainerDisabled,\n borderColor: colorBorder\n }\n },\n [`&-disabled${componentCls}-button-wrapper-checked`]: {\n color: buttonCheckedColorDisabled,\n backgroundColor: buttonCheckedBgDisabled,\n borderColor: colorBorder,\n boxShadow: 'none'\n },\n '&-block': {\n flex: 1,\n textAlign: 'center'\n }\n }\n };\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = token => {\n const {\n wireframe,\n padding,\n marginXS,\n lineWidth,\n fontSizeLG,\n colorText,\n colorBgContainer,\n colorTextDisabled,\n controlItemBgActiveDisabled,\n colorTextLightSolid,\n colorPrimary,\n colorPrimaryHover,\n colorPrimaryActive,\n colorWhite\n } = token;\n const dotPadding = 4; // Fixed value\n const radioSize = fontSizeLG;\n const radioDotSize = wireframe ? radioSize - dotPadding * 2 : radioSize - (dotPadding + lineWidth) * 2;\n return {\n // Radio\n radioSize,\n dotSize: radioDotSize,\n dotColorDisabled: colorTextDisabled,\n // Radio buttons\n buttonSolidCheckedColor: colorTextLightSolid,\n buttonSolidCheckedBg: colorPrimary,\n buttonSolidCheckedHoverBg: colorPrimaryHover,\n buttonSolidCheckedActiveBg: colorPrimaryActive,\n buttonBg: colorBgContainer,\n buttonCheckedBg: colorBgContainer,\n buttonColor: colorText,\n buttonCheckedBgDisabled: controlItemBgActiveDisabled,\n buttonCheckedColorDisabled: colorTextDisabled,\n buttonPaddingInline: padding - lineWidth,\n wrapperMarginInlineEnd: marginXS,\n // internal\n radioColor: wireframe ? colorPrimary : colorWhite,\n radioBgColor: wireframe ? colorBgContainer : colorPrimary\n };\n};\nexport default genStyleHooks('Radio', token => {\n const {\n controlOutline,\n controlOutlineWidth\n } = token;\n const radioFocusShadow = `0 0 0 ${unit(controlOutlineWidth)} ${controlOutline}`;\n const radioButtonFocusShadow = radioFocusShadow;\n const radioToken = mergeToken(token, {\n radioFocusShadow,\n radioButtonFocusShadow\n });\n return [getGroupRadioStyle(radioToken), getRadioBasicStyle(radioToken), getRadioButtonStyle(radioToken)];\n}, prepareComponentToken, {\n unitless: {\n radioSize: true,\n dotSize: true\n }\n});","\"use client\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport RcCheckbox from 'rc-checkbox';\nimport { composeRef } from \"rc-util/es/ref\";\nimport { devUseWarning } from '../_util/warning';\nimport Wave from '../_util/wave';\nimport { TARGET_CLS } from '../_util/wave/interface';\nimport useBubbleLock from '../checkbox/useBubbleLock';\nimport { ConfigContext } from '../config-provider';\nimport DisabledContext from '../config-provider/DisabledContext';\nimport useCSSVarCls from '../config-provider/hooks/useCSSVarCls';\nimport { FormItemInputContext } from '../form/context';\nimport RadioGroupContext, { RadioOptionTypeContext } from './context';\nimport useStyle from './style';\nconst InternalRadio = (props, ref) => {\n var _a, _b;\n const groupContext = React.useContext(RadioGroupContext);\n const radioOptionTypeContext = React.useContext(RadioOptionTypeContext);\n const {\n getPrefixCls,\n direction,\n radio\n } = React.useContext(ConfigContext);\n const innerRef = React.useRef(null);\n const mergedRef = composeRef(ref, innerRef);\n const {\n isFormItemInput\n } = React.useContext(FormItemInputContext);\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('Radio');\n process.env.NODE_ENV !== \"production\" ? warning(!('optionType' in props), 'usage', '`optionType` is only support in Radio.Group.') : void 0;\n }\n const onChange = e => {\n var _a, _b;\n (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, e);\n (_b = groupContext === null || groupContext === void 0 ? void 0 : groupContext.onChange) === null || _b === void 0 ? void 0 : _b.call(groupContext, e);\n };\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n children,\n style,\n title\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"className\", \"rootClassName\", \"children\", \"style\", \"title\"]);\n const radioPrefixCls = getPrefixCls('radio', customizePrefixCls);\n const isButtonType = ((groupContext === null || groupContext === void 0 ? void 0 : groupContext.optionType) || radioOptionTypeContext) === 'button';\n const prefixCls = isButtonType ? `${radioPrefixCls}-button` : radioPrefixCls;\n // Style\n const rootCls = useCSSVarCls(radioPrefixCls);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(radioPrefixCls, rootCls);\n const radioProps = Object.assign({}, restProps);\n // ===================== Disabled =====================\n const disabled = React.useContext(DisabledContext);\n if (groupContext) {\n radioProps.name = groupContext.name;\n radioProps.onChange = onChange;\n radioProps.checked = props.value === groupContext.value;\n radioProps.disabled = (_a = radioProps.disabled) !== null && _a !== void 0 ? _a : groupContext.disabled;\n }\n radioProps.disabled = (_b = radioProps.disabled) !== null && _b !== void 0 ? _b : disabled;\n const wrapperClassString = classNames(`${prefixCls}-wrapper`, {\n [`${prefixCls}-wrapper-checked`]: radioProps.checked,\n [`${prefixCls}-wrapper-disabled`]: radioProps.disabled,\n [`${prefixCls}-wrapper-rtl`]: direction === 'rtl',\n [`${prefixCls}-wrapper-in-form-item`]: isFormItemInput,\n [`${prefixCls}-wrapper-block`]: !!(groupContext === null || groupContext === void 0 ? void 0 : groupContext.block)\n }, radio === null || radio === void 0 ? void 0 : radio.className, className, rootClassName, hashId, cssVarCls, rootCls);\n // ============================ Event Lock ============================\n const [onLabelClick, onInputClick] = useBubbleLock(radioProps.onClick);\n // ============================== Render ==============================\n return wrapCSSVar(/*#__PURE__*/React.createElement(Wave, {\n component: \"Radio\",\n disabled: radioProps.disabled\n }, /*#__PURE__*/React.createElement(\"label\", {\n className: wrapperClassString,\n style: Object.assign(Object.assign({}, radio === null || radio === void 0 ? void 0 : radio.style), style),\n onMouseEnter: props.onMouseEnter,\n onMouseLeave: props.onMouseLeave,\n title: title,\n onClick: onLabelClick\n }, /*#__PURE__*/React.createElement(RcCheckbox, Object.assign({}, radioProps, {\n className: classNames(radioProps.className, {\n [TARGET_CLS]: !isButtonType\n }),\n type: \"radio\",\n prefixCls: prefixCls,\n ref: mergedRef,\n onClick: onInputClick\n })), children !== undefined ? /*#__PURE__*/React.createElement(\"span\", null, children) : null)));\n};\nconst Radio = /*#__PURE__*/React.forwardRef(InternalRadio);\nif (process.env.NODE_ENV !== 'production') {\n Radio.displayName = 'Radio';\n}\nexport default Radio;","\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport pickAttrs from \"rc-util/es/pickAttrs\";\nimport { ConfigContext } from '../config-provider';\nimport useCSSVarCls from '../config-provider/hooks/useCSSVarCls';\nimport useSize from '../config-provider/hooks/useSize';\nimport { RadioGroupContextProvider } from './context';\nimport Radio from './radio';\nimport useStyle from './style';\nconst RadioGroup = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n options,\n buttonStyle = 'outline',\n disabled,\n children,\n size: customizeSize,\n style,\n id,\n optionType,\n name,\n defaultValue,\n value: customizedValue,\n block = false,\n onChange,\n onMouseEnter,\n onMouseLeave,\n onFocus,\n onBlur\n } = props;\n const [value, setValue] = useMergedState(defaultValue, {\n value: customizedValue\n });\n const onRadioChange = React.useCallback(event => {\n const lastValue = value;\n const val = event.target.value;\n if (!('value' in props)) {\n setValue(val);\n }\n if (val !== lastValue) {\n onChange === null || onChange === void 0 ? void 0 : onChange(event);\n }\n }, [value, setValue, onChange]);\n const prefixCls = getPrefixCls('radio', customizePrefixCls);\n const groupPrefixCls = `${prefixCls}-group`;\n // Style\n const rootCls = useCSSVarCls(prefixCls);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls, rootCls);\n let childrenToRender = children;\n // 如果存在 options, 优先使用\n if (options && options.length > 0) {\n childrenToRender = options.map(option => {\n if (typeof option === 'string' || typeof option === 'number') {\n // 此处类型自动推导为 string\n return /*#__PURE__*/React.createElement(Radio, {\n key: option.toString(),\n prefixCls: prefixCls,\n disabled: disabled,\n value: option,\n checked: value === option\n }, option);\n }\n // 此处类型自动推导为 { label: string value: string }\n return /*#__PURE__*/React.createElement(Radio, {\n key: `radio-group-value-options-${option.value}`,\n prefixCls: prefixCls,\n disabled: option.disabled || disabled,\n value: option.value,\n checked: value === option.value,\n title: option.title,\n style: option.style,\n id: option.id,\n required: option.required\n }, option.label);\n });\n }\n const mergedSize = useSize(customizeSize);\n const classString = classNames(groupPrefixCls, `${groupPrefixCls}-${buttonStyle}`, {\n [`${groupPrefixCls}-${mergedSize}`]: mergedSize,\n [`${groupPrefixCls}-rtl`]: direction === 'rtl',\n [`${groupPrefixCls}-block`]: block\n }, className, rootClassName, hashId, cssVarCls, rootCls);\n const memoizedValue = React.useMemo(() => ({\n onChange: onRadioChange,\n value,\n disabled,\n name,\n optionType,\n block\n }), [onRadioChange, value, disabled, name, optionType, block]);\n return wrapCSSVar(/*#__PURE__*/React.createElement(\"div\", Object.assign({}, pickAttrs(props, {\n aria: true,\n data: true\n }), {\n className: classString,\n style: style,\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave,\n onFocus: onFocus,\n onBlur: onBlur,\n id: id,\n ref: ref\n }), /*#__PURE__*/React.createElement(RadioGroupContextProvider, {\n value: memoizedValue\n }, childrenToRender)));\n});\nexport default /*#__PURE__*/React.memo(RadioGroup);","\"use client\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport { RadioOptionTypeContextProvider } from './context';\nimport Radio from './radio';\nconst RadioButton = (props, ref) => {\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const {\n prefixCls: customizePrefixCls\n } = props,\n radioProps = __rest(props, [\"prefixCls\"]);\n const prefixCls = getPrefixCls('radio', customizePrefixCls);\n return /*#__PURE__*/React.createElement(RadioOptionTypeContextProvider, {\n value: \"button\"\n }, /*#__PURE__*/React.createElement(Radio, Object.assign({\n prefixCls: prefixCls\n }, radioProps, {\n type: \"radio\",\n ref: ref\n })));\n};\nexport default /*#__PURE__*/React.forwardRef(RadioButton);","\"use client\";\n\nimport Group from './group';\nimport InternalRadio from './radio';\nimport Button from './radioButton';\nexport { Button, Group };\nconst Radio = InternalRadio;\nRadio.Button = Button;\nRadio.Group = Group;\nRadio.__ANT_RADIO = true;\nexport default Radio;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"checked\", \"disabled\", \"defaultChecked\", \"type\", \"title\", \"onChange\"];\nimport classNames from 'classnames';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport * as React from 'react';\nimport { forwardRef, useImperativeHandle, useRef } from 'react';\nexport var Checkbox = /*#__PURE__*/forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'rc-checkbox' : _props$prefixCls,\n className = props.className,\n style = props.style,\n checked = props.checked,\n disabled = props.disabled,\n _props$defaultChecked = props.defaultChecked,\n defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked,\n _props$type = props.type,\n type = _props$type === void 0 ? 'checkbox' : _props$type,\n title = props.title,\n onChange = props.onChange,\n inputProps = _objectWithoutProperties(props, _excluded);\n var inputRef = useRef(null);\n var holderRef = useRef(null);\n var _useMergedState = useMergedState(defaultChecked, {\n value: checked\n }),\n _useMergedState2 = _slicedToArray(_useMergedState, 2),\n rawValue = _useMergedState2[0],\n setRawValue = _useMergedState2[1];\n useImperativeHandle(ref, function () {\n return {\n focus: function focus(options) {\n var _inputRef$current;\n (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus(options);\n },\n blur: function blur() {\n var _inputRef$current2;\n (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.blur();\n },\n input: inputRef.current,\n nativeElement: holderRef.current\n };\n });\n var classString = classNames(prefixCls, className, _defineProperty(_defineProperty({}, \"\".concat(prefixCls, \"-checked\"), rawValue), \"\".concat(prefixCls, \"-disabled\"), disabled));\n var handleChange = function handleChange(e) {\n if (disabled) {\n return;\n }\n if (!('checked' in props)) {\n setRawValue(e.target.checked);\n }\n onChange === null || onChange === void 0 || onChange({\n target: _objectSpread(_objectSpread({}, props), {}, {\n type: type,\n checked: e.target.checked\n }),\n stopPropagation: function stopPropagation() {\n e.stopPropagation();\n },\n preventDefault: function preventDefault() {\n e.preventDefault();\n },\n nativeEvent: e.nativeEvent\n });\n };\n return /*#__PURE__*/React.createElement(\"span\", {\n className: classString,\n title: title,\n style: style,\n ref: holderRef\n }, /*#__PURE__*/React.createElement(\"input\", _extends({}, inputProps, {\n className: \"\".concat(prefixCls, \"-input\"),\n ref: inputRef,\n onChange: handleChange,\n disabled: disabled,\n checked: !!rawValue,\n type: type\n })), /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-inner\")\n }));\n});\nexport default Checkbox;"],"names":["useBubbleLock","onOriginInputClick","labelClickLockRef","React","clearLock","raf","cancel","current","onLabelClick","e","stopPropagation","RadioGroupContext","RadioGroupContextProvider","Provider","RadioOptionTypeContext","RadioOptionTypeContextProvider","getGroupRadioStyle","token","componentCls","antCls","groupPrefixCls","concat","Object","assign","resetComponent","display","fontSize","direction","zIndex","borderInlineStart","getRadioBasicStyle","wrapperMarginInlineEnd","colorPrimary","radioSize","motionDurationSlow","motionDurationMid","motionEaseInOutCirc","colorBgContainer","colorBorder","lineWidth","colorBgContainerDisabled","colorTextDisabled","paddingXS","dotColorDisabled","lineType","radioColor","radioBgColor","calc","radioInnerPrefixCls","radioDotDisabledSize","sub","mul","radioSizeCalc","equal","unit","alignItems","marginInlineStart","marginInlineEnd","cursor","color","width","overflow","content","flex","justifyContent","position","insetBlockStart","insetInlineStart","height","border","borderRadius","visibility","opacity","outline","alignSelf","borderColor","genFocusOutline","boxSizing","marginBlockStart","div","backgroundColor","borderBlockStart","transform","transition","borderStyle","borderWidth","inset","dotSize","paddingInlineStart","paddingInlineEnd","getRadioButtonStyle","buttonColor","controlHeight","buttonPaddingInline","buttonBg","fontSizeLG","controlHeightLG","controlHeightSM","borderRadiusSM","borderRadiusLG","buttonCheckedBg","buttonSolidCheckedColor","buttonCheckedBgDisabled","buttonCheckedColorDisabled","colorPrimaryHover","colorPrimaryActive","buttonSolidCheckedBg","buttonSolidCheckedHoverBg","buttonSolidCheckedActiveBg","margin","paddingInline","paddingBlock","lineHeight","background","borderBlockStartWidth","add","borderInlineStartWidth","borderInlineEndWidth","join","a","borderStartStartRadius","borderEndStartRadius","borderStartEndRadius","borderEndEndRadius","pointerEvents","boxShadow","textAlign","genStyleHooks","controlOutline","controlOutlineWidth","radioFocusShadow","radioButtonFocusShadow","radioToken","mergeToken","wireframe","padding","marginXS","colorText","controlItemBgActiveDisabled","colorTextLightSolid","colorWhite","dotPadding","unitless","__rest","s","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","InternalRadio","props","ref","_a","_b","groupContext","radioOptionTypeContext","getPrefixCls","radio","ConfigContext","innerRef","mergedRef","composeRef","isFormItemInput","FormItemInputContext","onChange","prefixCls","customizePrefixCls","className","rootClassName","children","style","title","restProps","radioPrefixCls","isButtonType","optionType","rootCls","useCSSVarCls","wrapCSSVar","hashId","cssVarCls","useStyle","radioProps","disabled","DisabledContext","name","checked","value","wrapperClassString","classNames","block","onInputClick","onClick","Wave","component","onMouseEnter","onMouseLeave","RcCheckbox","TARGET_CLS","type","undefined","RadioGroup","options","buttonStyle","size","customizeSize","id","defaultValue","customizedValue","onFocus","onBlur","setValue","useMergedState","onRadioChange","event","lastValue","val","target","childrenToRender","map","option","Radio","key","toString","required","label","mergedSize","useSize","classString","memoizedValue","pickAttrs","aria","data","RadioButton","Button","Group","__ANT_RADIO","_excluded","forwardRef","_props$prefixCls","_props$defaultChecked","defaultChecked","_props$type","inputProps","_objectWithoutProperties","inputRef","useRef","holderRef","_useMergedState","_useMergedState2","_slicedToArray","rawValue","setRawValue","useImperativeHandle","focus","_inputRef$current","blur","_inputRef$current2","input","nativeElement","_defineProperty","_extends","_objectSpread","preventDefault","nativeEvent"],"sourceRoot":""}
|