PageSourceSearch

https://my.designermindset.net/packs/js/1467-73efb8696e35a857.chunk.js

js designermindset.net collected 2026-10-07 22:59:03 UTC 8,210 bytes, 2 lines download raw bytes

1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[1467],{630351(e,t,n){n.d(t,{T:()=>C});var r=n(391426),o=n(974618),a=n(231127),l=n(529648),s=n(982349),i=n(568316),c=n(244704),u=n(49078),p=n(933578),f=n(417980);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=[{label:(0,f.t)("settings.spaces.chat_export.option_1"),value:"month"},{label:(0,f.t)("settings.spaces.chat_export.option_2"),value:"quarter"},{label:(0,f.t)("settings.spaces.chat_export.option_3"),value:"year"},{label:(0,f.t)("settings.spaces.chat_export.option_4"),value:"all"}],h="".concat((0,f.t)("settings.spaces.chat_export.time_frame"),":"),b=function(e){var t,n,o=e.open,b=e.onOpenChange,y=e.onConfirm,x=function(e){if(Array.isArray(e))return e}(t=(0,p.useState)("month"))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(t=r.next()).done)&&(o.push(t.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw n}}return o}}(t)||function(e){if(e){if("string"==typeof e)return m(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return m(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),v=x[0],j=x[1],g=(0,a.T)("circle_v4_form_elements_enabled"),w=d.map(function(e){return{value:e.value,label:e.label}}),O=null!=(n=w.find(function(e){return e.value===v}))?n:w[0];return o?(0,r.jsx)(c.a.Root,{open:o,size:"md",onOpenChange:b,children:(0,r.jsxs)(c.a.Content,{children:[(0,r.jsx)(c.a.Header,{title:(0,f.t)("settings.spaces.chat_export.confirm"),showCloseButton:!0}),(0,r.jsxs)(c.a.Body,{children:[g?(0,r.jsx)(u.t,{options:w,value:O,onValueChange:function(e){e&&j(e.value)},label:h,className:"mb-2"}):(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(i.o.LabelMd,{weight:"medium",children:h}),(0,r.jsx)(l.ms,{onChange:j,options:d,size:"full",className:"border-secondary bg-primary mb-2 w-full rounded-md border",buttonWrapperClassName:"flex flex-col w-full",linkType:"button",menuWrapperClassName:"!px-0",menuItemsClassName:"!p-2",popperOptions:{modifiers:[{name:"offset",options:{offset:[0,4]}},s.w]},button:(0,r.jsx)(l.ms.ActiveLabelButton,{className:"flex w-full items-center justify-between px-3",options:d,activeOptionValue:v})})]}),(0,r.jsx)(i.o.LabelXs,{color:"text-tertiary",weight:"normal",children:(0,f.t)("settings.spaces.chat_export.download_notification")})]}),(0,r.jsx)(c.a.Footer,{secondaryAction:{label:(0,f.t)("cancel"),onClick:function(){b(!1)}},primaryAction:{label:(0,f.t)("confirm"),onClick:function(){b(!1),y(v)}}})]})}):null},y=n(737225),x=n(605274),v=n(387099);function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var g=function(e){var t,n=e.onConfirm,a=(0,o.hS)(),c=function(e){if(Array.isArray(e))return e}(t=(0,p.useState)("month"))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(t=r.next()).done)&&(o.push(t.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw n}}return o}}(t)||function(e){if(e){if("string"==typeof e)return j(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return j(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),u=c[0],m=c[1],d=(0,y.X9)().contentPortalElement,h=(0,x.wf)(),b=[{label:(0,f.t)("settings.spaces.chat_export.option_1"),value:"month"},{label:(0,f.t)("settings.spaces.chat_export.option_2"),value:"quarter"},{label:(0,f.t)("settings.spaces.chat_export.option_3"),value:"year"},{label:(0,f.t)("settings.spaces.chat_export.option_4"),value:"all"}],g=function(){a.hide()};return(0,r.jsxs)(y.aF,{isOpen:a.visible,onClose:g,children:[(0,r.jsx)(y.aF.Overlay,{}),(0,r.jsxs)(y.aF.Content,{size:"lg",className:"gap-3 md:max-w-[571px]",children:[(0,r.jsxs)(y.aF.Header,{children:[(0,r.jsx)(y.aF.Title,{children:(0,r.jsx)(i.o.TitleMd,{children:(0,f.t)("settings.spaces.chat_export.confirm")})}),(0,r.jsx)(y.aF.HeaderActions,{children:(0,r.jsx)(y.aF.CloseButton,{onClick:g})})]}),(0,r.jsx)(y.aF.Body,{className:"!py-0 px-8",id:"chat-export-confirm-modal",children:(0,r.jsx)("div",{className:"space-y-4",children:(0,r.jsxs)("div",{className:"space-y-2 md:w-[507px]",children:[(0,r.jsxs)(i.o.LabelMd,{weight:"medium",children:[(0,f.t)("settings.spaces.chat_export.time_frame"),":"]}),(0,r.jsx)(l.ms,{onChange:m,options:b,size:"full",className:"border-secondary bg-primary w-full rounded-md border",buttonWrapperClassName:"flex flex-col w-full",linkType:"button",menuWrapperClassName:"!px-0",menuItemsClassName:"!p-2",popperOptions:{modifiers:[{name:"offset",options:{offset:[0,4]}},{name:"zIndex",enabled:h,phase:"write",fn:function(e){var t=e.state;t.styles.popper&&(t.styles.popper.zIndex="1100")}},s.w]},appendTo:h?null!=d?d:document.body:void 0,button:(0,r.jsx)(l.ms.ActiveLabelButton,{className:"flex w-full items-center justify-between px-3",options:b,activeOptionValue:u})}),(0,r.jsx)(i.o.LabelXs,{color:"text-tertiary",weight:"normal",children:(0,f.t)("settings.spaces.chat_export.download_notification")})]})})}),(0,r.jsx)(y.aF.Footer,{className:"px-8 py-4",children:(0,r.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,r.jsx)(v.$,{type:"button",variant:"secondary",onClick:g,large:!0,children:(0,f.t)("cancel")}),(0,r.jsx)(v.$,{type:"button",variant:"circle",onClick:function(){a.hide(),n(u)},large:!0,children:(0,f.t)("confirm")})]})})]})]})};function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var O=o.PT.create(function(e){return(0,r.jsx)(g,w({},e))}),_=o.PT.create(function(e){var t,n,a=(0,o.hS)();return(0,r.jsx)(b,(t=w({},e),n=n={open:a.visible,onOpenChange:function(e){e||a.hide()}},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}
1)(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))}),C=function(){var e=(0,a.T)("circle_v4_modals_enabled");return(0,o.hS)(e?_:O)}},434536(e,t,n){var r=n(391426),o=n(973646),a=n(529648),l=n(981416),s=n(570310),i=n(373863),c=n(898666),u=function(e){var t=e.label,n=e.options,u=e.dataTestId,p=e.children,f=(0,i.P)(),m=(0,l.Q)().shouldShowTrialBanner;return(0,r.jsx)(a.ms,{appendTo:null!=f?f:void 0,direction:"bottom-end",menuWrapperClassName:"!mt-2",buttonClassName:"flex items-center h-9 w-9 flex justify-center !rounded-lg transition-colors duration-200 hover:bg-tertiary focus-visible:outline-secondary focus-visible:rounded-lg focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:bg-tertiary",menuItemsClassName:(0,s.x)("overflow-y-auto",m?"max-h-[calc(100vh-12rem)]":"max-h-[calc(100vh-8rem)]"),button:(0,r.jsx)(c.$,{content:t,children:(0,r.jsx)("span",{className:"flex items-center p-1",children:(0,r.jsx)(o.In,{className:"text-default !h-6 !w-6",type:"20-menu-dots-horizontal",size:20,"aria-label":t})})}),options:n,dataTestId:u,children:p})};n.d(t,{$:()=>u})}}]);
2//# sourceMappingURL=/packs/js/1467-73efb8696e35a857.chunk.js.map

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