-
Notifications
You must be signed in to change notification settings - Fork 0
/
8658.6f65f189.iframe.bundle.js
1 lines (1 loc) · 16.6 KB
/
8658.6f65f189.iframe.bundle.js
1
"use strict";(self.webpackChunk_leather_io_ui=self.webpackChunk_leather_io_ui||[]).push([[8658],{"../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]._alkscmzuz263wxxdb3utgmzii4/node_modules/@radix-ui/react-accordion/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{UC:()=>$1bf158f521e1b1b4$export$7c6e2c02157bb7d2,Y9:()=>$1bf158f521e1b1b4$export$8b251419efc915eb,q7:()=>$1bf158f521e1b1b4$export$6d08773d2e66f8f2,bL:()=>$1bf158f521e1b1b4$export$be92b6f5f03c0fe9,l9:()=>$1bf158f521e1b1b4$export$41fb9f06171c75f4});var esm_extends=__webpack_require__("../../node_modules/.pnpm/@[email protected]/node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),dist=__webpack_require__("../../node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@radix-ui/react-context/dist/index.mjs"),react_collection_dist=__webpack_require__("../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]_s5ea4qejjnve37kxbr3xbca2xy/node_modules/@radix-ui/react-collection/dist/index.mjs"),react_compose_refs_dist=__webpack_require__("../../node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@radix-ui/react-compose-refs/dist/index.mjs"),primitive_dist=__webpack_require__("../../node_modules/.pnpm/@[email protected]/node_modules/@radix-ui/primitive/dist/index.mjs"),react_use_controllable_state_dist=__webpack_require__("../../node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"),react_primitive_dist=__webpack_require__("../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]._q2hdzynczbqlprxkwgklkdriia/node_modules/@radix-ui/react-primitive/dist/index.mjs"),react_use_layout_effect_dist=__webpack_require__("../../node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"),react_presence_dist=__webpack_require__("../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@radix-ui/react-presence/dist/index.mjs"),react_id_dist=__webpack_require__("../../node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@radix-ui/react-id/dist/index.mjs");const[$409067139f391064$var$createCollapsibleContext,$409067139f391064$export$952b32dcbe73087a]=(0,dist.A)("Collapsible"),[$409067139f391064$var$CollapsibleProvider,$409067139f391064$var$useCollapsibleContext]=$409067139f391064$var$createCollapsibleContext("Collapsible"),$409067139f391064$export$6eb0f7ddcda6131f=(0,react.forwardRef)(((props,forwardedRef)=>{const{__scopeCollapsible,open:openProp,defaultOpen,disabled,onOpenChange,...collapsibleProps}=props,[open=!1,setOpen]=(0,react_use_controllable_state_dist.i)({prop:openProp,defaultProp:defaultOpen,onChange:onOpenChange});return(0,react.createElement)($409067139f391064$var$CollapsibleProvider,{scope:__scopeCollapsible,disabled,contentId:(0,react_id_dist.B)(),open,onOpenToggle:(0,react.useCallback)((()=>setOpen((prevOpen=>!prevOpen))),[setOpen])},(0,react.createElement)(react_primitive_dist.sG.div,(0,esm_extends.A)({"data-state":$409067139f391064$var$getState(open),"data-disabled":disabled?"":void 0},collapsibleProps,{ref:forwardedRef})))})),$409067139f391064$export$c135dce7b15bbbdc=(0,react.forwardRef)(((props,forwardedRef)=>{const{__scopeCollapsible,...triggerProps}=props,context=$409067139f391064$var$useCollapsibleContext("CollapsibleTrigger",__scopeCollapsible);return(0,react.createElement)(react_primitive_dist.sG.button,(0,esm_extends.A)({type:"button","aria-controls":context.contentId,"aria-expanded":context.open||!1,"data-state":$409067139f391064$var$getState(context.open),"data-disabled":context.disabled?"":void 0,disabled:context.disabled},triggerProps,{ref:forwardedRef,onClick:(0,primitive_dist.m)(props.onClick,context.onOpenToggle)}))})),$409067139f391064$export$aadde00976f34151=(0,react.forwardRef)(((props,forwardedRef)=>{const{forceMount,...contentProps}=props,context=$409067139f391064$var$useCollapsibleContext("CollapsibleContent",props.__scopeCollapsible);return(0,react.createElement)(react_presence_dist.C,{present:forceMount||context.open},(({present})=>(0,react.createElement)($409067139f391064$var$CollapsibleContentImpl,(0,esm_extends.A)({},contentProps,{ref:forwardedRef,present}))))})),$409067139f391064$var$CollapsibleContentImpl=(0,react.forwardRef)(((props,forwardedRef)=>{const{__scopeCollapsible,present,children,...contentProps}=props,context=$409067139f391064$var$useCollapsibleContext("CollapsibleContent",__scopeCollapsible),[isPresent,setIsPresent]=(0,react.useState)(present),ref=(0,react.useRef)(null),composedRefs=(0,react_compose_refs_dist.s)(forwardedRef,ref),heightRef=(0,react.useRef)(0),height=heightRef.current,widthRef=(0,react.useRef)(0),width=widthRef.current,isOpen=context.open||isPresent,isMountAnimationPreventedRef=(0,react.useRef)(isOpen),originalStylesRef=(0,react.useRef)();return(0,react.useEffect)((()=>{const rAF=requestAnimationFrame((()=>isMountAnimationPreventedRef.current=!1));return()=>cancelAnimationFrame(rAF)}),[]),(0,react_use_layout_effect_dist.N)((()=>{const node=ref.current;if(node){originalStylesRef.current=originalStylesRef.current||{transitionDuration:node.style.transitionDuration,animationName:node.style.animationName},node.style.transitionDuration="0s",node.style.animationName="none";const rect=node.getBoundingClientRect();heightRef.current=rect.height,widthRef.current=rect.width,isMountAnimationPreventedRef.current||(node.style.transitionDuration=originalStylesRef.current.transitionDuration,node.style.animationName=originalStylesRef.current.animationName),setIsPresent(present)}}),[context.open,present]),(0,react.createElement)(react_primitive_dist.sG.div,(0,esm_extends.A)({"data-state":$409067139f391064$var$getState(context.open),"data-disabled":context.disabled?"":void 0,id:context.contentId,hidden:!isOpen},contentProps,{ref:composedRefs,style:{"--radix-collapsible-content-height":height?`${height}px`:void 0,"--radix-collapsible-content-width":width?`${width}px`:void 0,...props.style}}),isOpen&&children)}));function $409067139f391064$var$getState(open){return open?"open":"closed"}const $409067139f391064$export$be92b6f5f03c0fe9=$409067139f391064$export$6eb0f7ddcda6131f,$409067139f391064$export$41fb9f06171c75f4=$409067139f391064$export$c135dce7b15bbbdc,$409067139f391064$export$7c6e2c02157bb7d2=$409067139f391064$export$aadde00976f34151;var react_direction_dist=__webpack_require__("../../node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@radix-ui/react-direction/dist/index.mjs");const $1bf158f521e1b1b4$var$ACCORDION_KEYS=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[$1bf158f521e1b1b4$var$Collection,$1bf158f521e1b1b4$var$useCollection,$1bf158f521e1b1b4$var$createCollectionScope]=(0,react_collection_dist.N)("Accordion"),[$1bf158f521e1b1b4$var$createAccordionContext,$1bf158f521e1b1b4$export$9748edc328a73be1]=(0,dist.A)("Accordion",[$1bf158f521e1b1b4$var$createCollectionScope,$409067139f391064$export$952b32dcbe73087a]),$1bf158f521e1b1b4$var$useCollapsibleScope=$409067139f391064$export$952b32dcbe73087a(),$1bf158f521e1b1b4$export$a766cd26d0d69044=react.forwardRef(((props,forwardedRef)=>{const{type,...accordionProps}=props,singleProps=accordionProps,multipleProps=accordionProps;return react.createElement($1bf158f521e1b1b4$var$Collection.Provider,{scope:props.__scopeAccordion},"multiple"===type?react.createElement($1bf158f521e1b1b4$var$AccordionImplMultiple,(0,esm_extends.A)({},multipleProps,{ref:forwardedRef})):react.createElement($1bf158f521e1b1b4$var$AccordionImplSingle,(0,esm_extends.A)({},singleProps,{ref:forwardedRef})))}));$1bf158f521e1b1b4$export$a766cd26d0d69044.propTypes={type(props){const value=props.value||props.defaultValue;return props.type&&!["single","multiple"].includes(props.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===props.type&&"string"==typeof value?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===props.type&&Array.isArray(value)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[$1bf158f521e1b1b4$var$AccordionValueProvider,$1bf158f521e1b1b4$var$useAccordionValueContext]=$1bf158f521e1b1b4$var$createAccordionContext("Accordion"),[$1bf158f521e1b1b4$var$AccordionCollapsibleProvider,$1bf158f521e1b1b4$var$useAccordionCollapsibleContext]=$1bf158f521e1b1b4$var$createAccordionContext("Accordion",{collapsible:!1}),$1bf158f521e1b1b4$var$AccordionImplSingle=react.forwardRef(((props,forwardedRef)=>{const{value:valueProp,defaultValue,onValueChange=()=>{},collapsible=!1,...accordionSingleProps}=props,[value,setValue]=(0,react_use_controllable_state_dist.i)({prop:valueProp,defaultProp:defaultValue,onChange:onValueChange});return react.createElement($1bf158f521e1b1b4$var$AccordionValueProvider,{scope:props.__scopeAccordion,value:value?[value]:[],onItemOpen:setValue,onItemClose:react.useCallback((()=>collapsible&&setValue("")),[collapsible,setValue])},react.createElement($1bf158f521e1b1b4$var$AccordionCollapsibleProvider,{scope:props.__scopeAccordion,collapsible},react.createElement($1bf158f521e1b1b4$var$AccordionImpl,(0,esm_extends.A)({},accordionSingleProps,{ref:forwardedRef}))))})),$1bf158f521e1b1b4$var$AccordionImplMultiple=react.forwardRef(((props,forwardedRef)=>{const{value:valueProp,defaultValue,onValueChange=()=>{},...accordionMultipleProps}=props,[value1=[],setValue]=(0,react_use_controllable_state_dist.i)({prop:valueProp,defaultProp:defaultValue,onChange:onValueChange}),handleItemOpen=react.useCallback((itemValue=>setValue(((prevValue=[])=>[...prevValue,itemValue]))),[setValue]),handleItemClose=react.useCallback((itemValue=>setValue(((prevValue=[])=>prevValue.filter((value=>value!==itemValue))))),[setValue]);return react.createElement($1bf158f521e1b1b4$var$AccordionValueProvider,{scope:props.__scopeAccordion,value:value1,onItemOpen:handleItemOpen,onItemClose:handleItemClose},react.createElement($1bf158f521e1b1b4$var$AccordionCollapsibleProvider,{scope:props.__scopeAccordion,collapsible:!0},react.createElement($1bf158f521e1b1b4$var$AccordionImpl,(0,esm_extends.A)({},accordionMultipleProps,{ref:forwardedRef}))))})),[$1bf158f521e1b1b4$var$AccordionImplProvider,$1bf158f521e1b1b4$var$useAccordionContext]=$1bf158f521e1b1b4$var$createAccordionContext("Accordion"),$1bf158f521e1b1b4$var$AccordionImpl=react.forwardRef(((props,forwardedRef)=>{const{__scopeAccordion,disabled,dir,orientation="vertical",...accordionProps}=props,accordionRef=react.useRef(null),composedRefs=(0,react_compose_refs_dist.s)(accordionRef,forwardedRef),getItems=$1bf158f521e1b1b4$var$useCollection(__scopeAccordion),isDirectionLTR="ltr"===(0,react_direction_dist.jH)(dir),handleKeyDown=(0,primitive_dist.m)(props.onKeyDown,(event=>{var _triggerCollection$cl;if(!$1bf158f521e1b1b4$var$ACCORDION_KEYS.includes(event.key))return;const target=event.target,triggerCollection=getItems().filter((item=>{var _item$ref$current;return!(null!==(_item$ref$current=item.ref.current)&&void 0!==_item$ref$current&&_item$ref$current.disabled)})),triggerIndex=triggerCollection.findIndex((item=>item.ref.current===target)),triggerCount=triggerCollection.length;if(-1===triggerIndex)return;event.preventDefault();let nextIndex=triggerIndex;const endIndex=triggerCount-1,moveNext=()=>{nextIndex=triggerIndex+1,nextIndex>endIndex&&(nextIndex=0)},movePrev=()=>{nextIndex=triggerIndex-1,nextIndex<0&&(nextIndex=endIndex)};switch(event.key){case"Home":nextIndex=0;break;case"End":nextIndex=endIndex;break;case"ArrowRight":"horizontal"===orientation&&(isDirectionLTR?moveNext():movePrev());break;case"ArrowDown":"vertical"===orientation&&moveNext();break;case"ArrowLeft":"horizontal"===orientation&&(isDirectionLTR?movePrev():moveNext());break;case"ArrowUp":"vertical"===orientation&&movePrev()}null===(_triggerCollection$cl=triggerCollection[nextIndex%triggerCount].ref.current)||void 0===_triggerCollection$cl||_triggerCollection$cl.focus()}));return react.createElement($1bf158f521e1b1b4$var$AccordionImplProvider,{scope:__scopeAccordion,disabled,direction:dir,orientation},react.createElement($1bf158f521e1b1b4$var$Collection.Slot,{scope:__scopeAccordion},react.createElement(react_primitive_dist.sG.div,(0,esm_extends.A)({},accordionProps,{"data-orientation":orientation,ref:composedRefs,onKeyDown:disabled?void 0:handleKeyDown}))))})),[$1bf158f521e1b1b4$var$AccordionItemProvider,$1bf158f521e1b1b4$var$useAccordionItemContext]=$1bf158f521e1b1b4$var$createAccordionContext("AccordionItem"),$1bf158f521e1b1b4$export$d99097c13d4dac9f=react.forwardRef(((props,forwardedRef)=>{const{__scopeAccordion,value,...accordionItemProps}=props,accordionContext=$1bf158f521e1b1b4$var$useAccordionContext("AccordionItem",__scopeAccordion),valueContext=$1bf158f521e1b1b4$var$useAccordionValueContext("AccordionItem",__scopeAccordion),collapsibleScope=$1bf158f521e1b1b4$var$useCollapsibleScope(__scopeAccordion),triggerId=(0,react_id_dist.B)(),open1=value&&valueContext.value.includes(value)||!1,disabled=accordionContext.disabled||props.disabled;return react.createElement($1bf158f521e1b1b4$var$AccordionItemProvider,{scope:__scopeAccordion,open:open1,disabled,triggerId},react.createElement($409067139f391064$export$be92b6f5f03c0fe9,(0,esm_extends.A)({"data-orientation":accordionContext.orientation,"data-state":$1bf158f521e1b1b4$var$getState(open1)},collapsibleScope,accordionItemProps,{ref:forwardedRef,disabled,open:open1,onOpenChange:open=>{open?valueContext.onItemOpen(value):valueContext.onItemClose(value)}})))})),$1bf158f521e1b1b4$export$5e3e5deaaf81ee41=react.forwardRef(((props,forwardedRef)=>{const{__scopeAccordion,...headerProps}=props,accordionContext=$1bf158f521e1b1b4$var$useAccordionContext("Accordion",__scopeAccordion),itemContext=$1bf158f521e1b1b4$var$useAccordionItemContext("AccordionHeader",__scopeAccordion);return react.createElement(react_primitive_dist.sG.h3,(0,esm_extends.A)({"data-orientation":accordionContext.orientation,"data-state":$1bf158f521e1b1b4$var$getState(itemContext.open),"data-disabled":itemContext.disabled?"":void 0},headerProps,{ref:forwardedRef}))})),$1bf158f521e1b1b4$export$94e939b1f85bdd73=react.forwardRef(((props,forwardedRef)=>{const{__scopeAccordion,...triggerProps}=props,accordionContext=$1bf158f521e1b1b4$var$useAccordionContext("Accordion",__scopeAccordion),itemContext=$1bf158f521e1b1b4$var$useAccordionItemContext("AccordionTrigger",__scopeAccordion),collapsibleContext=$1bf158f521e1b1b4$var$useAccordionCollapsibleContext("AccordionTrigger",__scopeAccordion),collapsibleScope=$1bf158f521e1b1b4$var$useCollapsibleScope(__scopeAccordion);return react.createElement($1bf158f521e1b1b4$var$Collection.ItemSlot,{scope:__scopeAccordion},react.createElement($409067139f391064$export$41fb9f06171c75f4,(0,esm_extends.A)({"aria-disabled":itemContext.open&&!collapsibleContext.collapsible||void 0,"data-orientation":accordionContext.orientation,id:itemContext.triggerId},collapsibleScope,triggerProps,{ref:forwardedRef})))})),$1bf158f521e1b1b4$export$985b9a77379b54a0=react.forwardRef(((props,forwardedRef)=>{const{__scopeAccordion,...contentProps}=props,accordionContext=$1bf158f521e1b1b4$var$useAccordionContext("Accordion",__scopeAccordion),itemContext=$1bf158f521e1b1b4$var$useAccordionItemContext("AccordionContent",__scopeAccordion),collapsibleScope=$1bf158f521e1b1b4$var$useCollapsibleScope(__scopeAccordion);return react.createElement($409067139f391064$export$7c6e2c02157bb7d2,(0,esm_extends.A)({role:"region","aria-labelledby":itemContext.triggerId,"data-orientation":accordionContext.orientation},collapsibleScope,contentProps,{ref:forwardedRef,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...props.style}}))}));function $1bf158f521e1b1b4$var$getState(open){return open?"open":"closed"}const $1bf158f521e1b1b4$export$be92b6f5f03c0fe9=$1bf158f521e1b1b4$export$a766cd26d0d69044,$1bf158f521e1b1b4$export$6d08773d2e66f8f2=$1bf158f521e1b1b4$export$d99097c13d4dac9f,$1bf158f521e1b1b4$export$8b251419efc915eb=$1bf158f521e1b1b4$export$5e3e5deaaf81ee41,$1bf158f521e1b1b4$export$41fb9f06171c75f4=$1bf158f521e1b1b4$export$94e939b1f85bdd73,$1bf158f521e1b1b4$export$7c6e2c02157bb7d2=$1bf158f521e1b1b4$export$985b9a77379b54a0}}]);