cft-builder 0.1.29 → 0.1.30
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.
package/dist/cft-builder.js
CHANGED
package/dist/cft-builder.umd.cjs
CHANGED
|
@@ -3521,7 +3521,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3521
3521
|
border-radius: 50%;
|
|
3522
3522
|
}
|
|
3523
3523
|
}
|
|
3524
|
-
`,g4=Bn.extend({defaultProps:{__TYPE:"Badge",__parentMetadata:null,value:null,severity:null,size:null,style:null,className:null,children:void 0},css:{classes:K1e,styles:X1e}});function ZF(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function R1e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ZF(Object(n),!0).forEach(function(r){JF(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ZF(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var m4=y.memo(y.forwardRef(function(t,e){var n=jn(),r=y.useContext(nr),i=g4.getProps(t,r),a=g4.setMetaData(R1e({props:i},i.__parentMetadata)),s=a.ptm,l=a.cx,c=a.isUnstyled;fi(g4.css.styles,c,{name:"badge"});var u=y.useRef(null);y.useImperativeHandle(e,function(){return{props:i,getElement:function(){return u.current}}});var d=n({ref:u,style:i.style,className:pt(i.className,l("root"))},g4.getOtherProps(i),s("root"));return y.createElement("span",d,i.value)}));m4.displayName="Badge";const G1e=t=>{var O,F,B,M;const{onHandleChange:e,types:n,type:r,fieldState:i,onHandleChangeLayoutSettings:a}=t,{media:s}=tn(),l=(O=s==null?void 0:s.image)!=null&&O.MediaImage?(F=s==null?void 0:s.image)==null?void 0:F.MediaImage:()=>o.jsx(o.Fragment,{}),c=(B=s==null?void 0:s.video)!=null&&B.MediaVideo?(M=s==null?void 0:s.video)==null?void 0:M.MediaVideo:()=>o.jsx(o.Fragment,{}),u=s!=null&&s.MediaUploadComponent?s==null?void 0:s.MediaUploadComponent:()=>o.jsx(o.Fragment,{}),d=s!=null&&s.getPaginatedMediaLibraryList?s==null?void 0:s.getPaginatedMediaLibraryList:()=>o.jsx(o.Fragment,{}),f=s!=null&&s.getPaginatedMediaLibraryListFromStore?s==null?void 0:s.getPaginatedMediaLibraryListFromStore:()=>o.jsx(o.Fragment,{}),h=s!=null&&s.MediaLibraryLoading?s==null?void 0:s.MediaLibraryLoading:()=>o.jsx(o.Fragment,{}),m=s!=null&&s.MediaLibraryPaginator?s==null?void 0:s.MediaLibraryPaginator:()=>o.jsx(o.Fragment,{}),g=s!=null&&s.updateMediaLibraryPaginationFilterSearch?s==null?void 0:s.updateMediaLibraryPaginationFilterSearch:()=>{},[v,A]=N.useState(null),[w,x]=N.useState(""),[S,E]=N.useState(!1),C=new Mb;N.useEffect(()=>{d(n)},[]);const _=()=>{g({filter:w,page:1,per_page:10,sort:"media_file.created_at|desc"})},T=H=>{console.log("onSelectMedia ",H),(H==null?void 0:H.url)!==null&&(i!=null&&i.isExternalSource?e("media_url",{key:1,language:"English",type:"english"},H==null?void 0:H.url):a("media_file_id",H==null?void 0:H.media_file_id),A(H))};return console.log("selectedVideoData",v),console.log("MediaLibraryLoading",h),console.log("!MediaLibraryLoading && selectedVideoData !== null ",!h&&v!==null),o.jsxs(o.Fragment,{children:[o.jsx(As,{maximizable:!0,header:"Upload Media",visible:S,style:{width:"50vw"},footer:()=>o.jsx(o.Fragment,{}),onHide:()=>E(!1),children:o.jsx(u,{})}),o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-7 ",children:[o.jsx("div",{className:"col-12 mb-5",children:o.jsxs("div",{className:"p-inputgroup",children:[o.jsx(gn,{placeholder:"Search media",onChange:H=>x(H.target.value)}),o.jsx(kt,{text:!0,icon:"pi pi-search",className:"p-button-info",onClick:()=>_()}),o.jsx(kt,{text:!0,icon:"pi pi-upload",className:"p-button-primary ml-2",label:"Upload Media",onClick:()=>{E(!0)}})]})}),o.jsx("div",{className:"grid ",children:(f==null?void 0:f.length)>0&&f.map((H,P)=>o.jsx("div",{onClick:()=>T(H),className:"col-12 md:col-6 lg:col-2 xl:col-2 border-bottom-1 surface-border md:border-bottom-none",children:o.jsxs("div",{className:"text-center",children:[o.jsxs("div",{className:"border-1 border-200 surface-50 flex align-items-center justify-content-center border-round mb-3 mx-auto",style:{width:"50px",height:"50px",position:"relative"},children:[(i==null?void 0:i.media_file_id)===(H==null?void 0:H.media_file_id)&&o.jsx(m4,{style:{position:"absolute",top:-20},value:"Selected"}),r==="image"&&o.jsx("i",{className:"pi pi-image",style:{fontSize:"2em"}}),r==="video"&&o.jsx("i",{className:"pi pi-video",style:{fontSize:"2em"}})]}),o.jsx("span",{className:"text-900 font-medium",children:H==null?void 0:H.filename})]})},`media-${P}`))}),o.jsx(m,{types:n})]}),o.jsx("div",{className:"col-5 pr-2",children:h===!1&&v!==null?o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[r==="video"&&o.jsxs(o.Fragment,{children:[(i==null?void 0:i.isExternalSource)===!0&&o.jsx("video",{src:v==null?void 0:v.url,width:"100%",controls:!0}),(i==null?void 0:i.isExternalSource)===!1&&o.jsx(c,{mediaId:v==null?void 0:v.media_file_id,alt:""})]}),r==="image"&&o.jsxs(o.Fragment,{children:[(i==null?void 0:i.isExternalSource)===!0&&o.jsx("img",{src:v==null?void 0:v.url,width:"100%"}),(i==null?void 0:i.isExternalSource)===!1&&o.jsx(l,{mediaId:v==null?void 0:v.media_file_id,style:{width:"100%"},alt:""})]}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Name"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:v==null?void 0:v.filename})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Base Name:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:v==null?void 0:v.basename})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Dir Name:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:v==null?void 0:v.dirname})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Size:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:C.formatBytes(v==null?void 0:v.size)})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Creation Date:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:Fn(v==null?void 0:v.created_at).format("Do MMM YYYY - HH:mm")})]})]})]}):o.jsx("div",{className:"surface-card p-4 shadow-2 border-round",children:o.jsx("p",{children:" Please select media to preview"})})})]})]})},W1e=t=>{var x;const{visibilty:e,field:n,closeSettingFieldSidebar:r,pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c}=t,[u,d]=N.useState(n),{fieldSettingUpdate:f,formBuilderSchemaLanguages:h,formBuilderPublishedStatus:m}=ln(),{updateGlobalToast:g}=tn(),v=(S,E,C)=>{d(_=>({..._,[S]:{..._[S],[E==null?void 0:E.type]:C}}))},A=()=>{f(i,a,s,l,c,u),g({showToast:!0,toastMessage:"Updated",toastDetail:"Video Updated",toastType:"success"})},w=(S,E)=>{d(C=>({...C,[S]:E}))};return console.log("fieldState",u),o.jsx(o.Fragment,{children:o.jsxs(Io,{visible:e,position:"left",style:{width:"80vw"},onHide:()=>r(),children:[o.jsxs("div",{className:"flex justify-content-between flex-wrap card-container ",children:[o.jsxs("div",{className:"flex align-items-center justify-content-center ",children:[" ",o.jsxs("h5",{children:[t==null?void 0:t.typeName," Settings - ",(x=n==null?void 0:n.label)==null?void 0:x.english," "]})," "]}),!m&&o.jsx("div",{className:"flex align-items-center justify-content-center",children:o.jsx(kt,{className:"mt-3",label:"Update",onClick:()=>A(),"aria-label":"Update"})})]}),o.jsxs(Ka,{children:[o.jsxs(hr,{header:"Video Url",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Or,{inputId:"isExternalSource",onChange:S=>{w("isExternalSource",S.checked||!1)},checked:(u==null?void 0:u.isExternalSource)||!1}),o.jsx("label",{htmlFor:"isExternalSource",children:"Use External Source"})]}),o.jsx(ao,{activeIndex:0,children:h!=null&&h.length?h.map((S,E)=>o.jsx(io,{tabIndex:E,header:S==null?void 0:S.language,children:o.jsx(H1e,{isExternalSource:(u==null?void 0:u.isExternalSource)||!1,field:n,fieldState:u,onHandleChange:v,language:S})},E)):""}),(u==null?void 0:u.isExternalSource)===!0?o.jsx(o.Fragment,{}):o.jsx(G1e,{fieldState:u,type:"video",types:["video/mp4"],onHandleChangeLayoutSettings:w,onHandleChange:v,onHandleSubmitTextUpdate:A,formBuilderSchemaLanguages:h})]}),o.jsx(hr,{header:"Duration",children:o.jsxs("div",{className:"field",children:[o.jsx("label",{className:"mr-2",children:"Video Duration "}),o.jsx(gn,{value:u==null?void 0:u.videoDuration,onChange:S=>{var E;w("videoDuration",(E=S==null?void 0:S.target)==null?void 0:E.value)}})]})})]})]})})};var I2;typeof window<"u"?I2=window:typeof Ni<"u"?I2=Ni:typeof self<"u"?I2=self:I2={};var v4=I2;const Ge=ms(v4),Q1e=D9(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var ek=typeof Ni<"u"?Ni:typeof window<"u"?window:{},J1e=Q1e,_2;typeof document<"u"?_2=document:(_2=ek["__GLOBAL_DOCUMENT_CACHE@4"],_2||(_2=ek["__GLOBAL_DOCUMENT_CACHE@4"]=J1e));var tk=_2;const Sn=ms(tk);var Lb={exports:{}};(function(t,e){function n(c){if(c&&typeof c=="object"){var u=c.which||c.keyCode||c.charCode;u&&(c=u)}if(typeof c=="number")return s[c];var d=String(c),f=r[d.toLowerCase()];if(f)return f;var f=i[d.toLowerCase()];if(f)return f;if(d.length===1)return d.charCodeAt(0)}n.isEventKey=function(u,d){if(u&&typeof u=="object"){var f=u.which||u.keyCode||u.charCode;if(f==null)return!1;if(typeof d=="string"){var h=r[d.toLowerCase()];if(h)return h===f;var h=i[d.toLowerCase()];if(h)return h===f}else if(typeof d=="number")return d===f;return!1}},e=t.exports=n;var r=e.code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=e.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
|
|
3524
|
+
`,g4=Bn.extend({defaultProps:{__TYPE:"Badge",__parentMetadata:null,value:null,severity:null,size:null,style:null,className:null,children:void 0},css:{classes:K1e,styles:X1e}});function ZF(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function R1e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ZF(Object(n),!0).forEach(function(r){JF(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ZF(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var m4=y.memo(y.forwardRef(function(t,e){var n=jn(),r=y.useContext(nr),i=g4.getProps(t,r),a=g4.setMetaData(R1e({props:i},i.__parentMetadata)),s=a.ptm,l=a.cx,c=a.isUnstyled;fi(g4.css.styles,c,{name:"badge"});var u=y.useRef(null);y.useImperativeHandle(e,function(){return{props:i,getElement:function(){return u.current}}});var d=n({ref:u,style:i.style,className:pt(i.className,l("root"))},g4.getOtherProps(i),s("root"));return y.createElement("span",d,i.value)}));m4.displayName="Badge";const G1e=t=>{var O,F,B,M;const{onHandleChange:e,types:n,type:r,fieldState:i,onHandleChangeLayoutSettings:a}=t,{media:s}=tn(),l=(O=s==null?void 0:s.image)!=null&&O.MediaImage?(F=s==null?void 0:s.image)==null?void 0:F.MediaImage:()=>o.jsx(o.Fragment,{}),c=(B=s==null?void 0:s.video)!=null&&B.MediaVideo?(M=s==null?void 0:s.video)==null?void 0:M.MediaVideo:()=>o.jsx(o.Fragment,{}),u=s!=null&&s.MediaUploadComponent?s==null?void 0:s.MediaUploadComponent:()=>o.jsx(o.Fragment,{}),d=s!=null&&s.getPaginatedMediaLibraryList?s==null?void 0:s.getPaginatedMediaLibraryList:()=>o.jsx(o.Fragment,{}),f=s!=null&&s.getPaginatedMediaLibraryListFromStore?s==null?void 0:s.getPaginatedMediaLibraryListFromStore:()=>o.jsx(o.Fragment,{}),h=s!=null&&s.MediaLibraryLoading?s==null?void 0:s.MediaLibraryLoading:!1,m=s!=null&&s.MediaLibraryPaginator?s==null?void 0:s.MediaLibraryPaginator:()=>o.jsx(o.Fragment,{}),g=s!=null&&s.updateMediaLibraryPaginationFilterSearch?s==null?void 0:s.updateMediaLibraryPaginationFilterSearch:()=>{},[v,A]=N.useState(null),[w,x]=N.useState(""),[S,E]=N.useState(!1),C=new Mb;N.useEffect(()=>{d(n)},[]);const _=()=>{g({filter:w,page:1,per_page:10,sort:"media_file.created_at|desc"})},T=H=>{console.log("onSelectMedia ",H),(H==null?void 0:H.url)!==null&&(i!=null&&i.isExternalSource?e("media_url",{key:1,language:"English",type:"english"},H==null?void 0:H.url):a("media_file_id",H==null?void 0:H.media_file_id),A(H))};return console.log("selectedVideoData",v),console.log("MediaLibraryLoading",h),console.log("!MediaLibraryLoading && selectedVideoData !== null ",!h&&v!==null),o.jsxs(o.Fragment,{children:[o.jsx(As,{maximizable:!0,header:"Upload Media",visible:S,style:{width:"50vw"},footer:()=>o.jsx(o.Fragment,{}),onHide:()=>E(!1),children:o.jsx(u,{})}),o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-7 ",children:[o.jsx("div",{className:"col-12 mb-5",children:o.jsxs("div",{className:"p-inputgroup",children:[o.jsx(gn,{placeholder:"Search media",onChange:H=>x(H.target.value)}),o.jsx(kt,{text:!0,icon:"pi pi-search",className:"p-button-info",onClick:()=>_()}),o.jsx(kt,{text:!0,icon:"pi pi-upload",className:"p-button-primary ml-2",label:"Upload Media",onClick:()=>{E(!0)}})]})}),o.jsx("div",{className:"grid ",children:(f==null?void 0:f.length)>0&&f.map((H,P)=>o.jsx("div",{onClick:()=>T(H),className:"col-12 md:col-6 lg:col-2 xl:col-2 border-bottom-1 surface-border md:border-bottom-none",children:o.jsxs("div",{className:"text-center",children:[o.jsxs("div",{className:"border-1 border-200 surface-50 flex align-items-center justify-content-center border-round mb-3 mx-auto",style:{width:"50px",height:"50px",position:"relative"},children:[(i==null?void 0:i.media_file_id)===(H==null?void 0:H.media_file_id)&&o.jsx(m4,{style:{position:"absolute",top:-20},value:"Selected"}),r==="image"&&o.jsx("i",{className:"pi pi-image",style:{fontSize:"2em"}}),r==="video"&&o.jsx("i",{className:"pi pi-video",style:{fontSize:"2em"}})]}),o.jsx("span",{className:"text-900 font-medium",children:H==null?void 0:H.filename})]})},`media-${P}`))}),o.jsx(m,{types:n})]}),o.jsx("div",{className:"col-5 pr-2",children:h===!1&&v!==null?o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[r==="video"&&o.jsxs(o.Fragment,{children:[(i==null?void 0:i.isExternalSource)===!0&&o.jsx("video",{src:v==null?void 0:v.url,width:"100%",controls:!0}),(i==null?void 0:i.isExternalSource)===!1&&o.jsx(c,{mediaId:v==null?void 0:v.media_file_id,alt:""})]}),r==="image"&&o.jsxs(o.Fragment,{children:[(i==null?void 0:i.isExternalSource)===!0&&o.jsx("img",{src:v==null?void 0:v.url,width:"100%"}),(i==null?void 0:i.isExternalSource)===!1&&o.jsx(l,{mediaId:v==null?void 0:v.media_file_id,style:{width:"100%"},alt:""})]}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Name"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:v==null?void 0:v.filename})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Base Name:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:v==null?void 0:v.basename})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Dir Name:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:v==null?void 0:v.dirname})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Size:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:C.formatBytes(v==null?void 0:v.size)})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Creation Date:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:Fn(v==null?void 0:v.created_at).format("Do MMM YYYY - HH:mm")})]})]})]}):o.jsx("div",{className:"surface-card p-4 shadow-2 border-round",children:o.jsx("p",{children:" Please select media to preview"})})})]})]})},W1e=t=>{var x;const{visibilty:e,field:n,closeSettingFieldSidebar:r,pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c}=t,[u,d]=N.useState(n),{fieldSettingUpdate:f,formBuilderSchemaLanguages:h,formBuilderPublishedStatus:m}=ln(),{updateGlobalToast:g}=tn(),v=(S,E,C)=>{d(_=>({..._,[S]:{..._[S],[E==null?void 0:E.type]:C}}))},A=()=>{f(i,a,s,l,c,u),g({showToast:!0,toastMessage:"Updated",toastDetail:"Video Updated",toastType:"success"})},w=(S,E)=>{d(C=>({...C,[S]:E}))};return console.log("fieldState",u),o.jsx(o.Fragment,{children:o.jsxs(Io,{visible:e,position:"left",style:{width:"80vw"},onHide:()=>r(),children:[o.jsxs("div",{className:"flex justify-content-between flex-wrap card-container ",children:[o.jsxs("div",{className:"flex align-items-center justify-content-center ",children:[" ",o.jsxs("h5",{children:[t==null?void 0:t.typeName," Settings - ",(x=n==null?void 0:n.label)==null?void 0:x.english," "]})," "]}),!m&&o.jsx("div",{className:"flex align-items-center justify-content-center",children:o.jsx(kt,{className:"mt-3",label:"Update",onClick:()=>A(),"aria-label":"Update"})})]}),o.jsxs(Ka,{children:[o.jsxs(hr,{header:"Video Url",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Or,{inputId:"isExternalSource",onChange:S=>{w("isExternalSource",S.checked||!1)},checked:(u==null?void 0:u.isExternalSource)||!1}),o.jsx("label",{htmlFor:"isExternalSource",children:"Use External Source"})]}),o.jsx(ao,{activeIndex:0,children:h!=null&&h.length?h.map((S,E)=>o.jsx(io,{tabIndex:E,header:S==null?void 0:S.language,children:o.jsx(H1e,{isExternalSource:(u==null?void 0:u.isExternalSource)||!1,field:n,fieldState:u,onHandleChange:v,language:S})},E)):""}),(u==null?void 0:u.isExternalSource)===!0?o.jsx(o.Fragment,{}):o.jsx(G1e,{fieldState:u,type:"video",types:["video/mp4"],onHandleChangeLayoutSettings:w,onHandleChange:v,onHandleSubmitTextUpdate:A,formBuilderSchemaLanguages:h})]}),o.jsx(hr,{header:"Duration",children:o.jsxs("div",{className:"field",children:[o.jsx("label",{className:"mr-2",children:"Video Duration "}),o.jsx(gn,{value:u==null?void 0:u.videoDuration,onChange:S=>{var E;w("videoDuration",(E=S==null?void 0:S.target)==null?void 0:E.value)}})]})})]})]})})};var I2;typeof window<"u"?I2=window:typeof Ni<"u"?I2=Ni:typeof self<"u"?I2=self:I2={};var v4=I2;const Ge=ms(v4),Q1e=D9(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var ek=typeof Ni<"u"?Ni:typeof window<"u"?window:{},J1e=Q1e,_2;typeof document<"u"?_2=document:(_2=ek["__GLOBAL_DOCUMENT_CACHE@4"],_2||(_2=ek["__GLOBAL_DOCUMENT_CACHE@4"]=J1e));var tk=_2;const Sn=ms(tk);var Lb={exports:{}};(function(t,e){function n(c){if(c&&typeof c=="object"){var u=c.which||c.keyCode||c.charCode;u&&(c=u)}if(typeof c=="number")return s[c];var d=String(c),f=r[d.toLowerCase()];if(f)return f;var f=i[d.toLowerCase()];if(f)return f;if(d.length===1)return d.charCodeAt(0)}n.isEventKey=function(u,d){if(u&&typeof u=="object"){var f=u.which||u.keyCode||u.charCode;if(f==null)return!1;if(typeof d=="string"){var h=r[d.toLowerCase()];if(h)return h===f;var h=i[d.toLowerCase()];if(h)return h===f}else if(typeof d=="number")return d===f;return!1}},e=t.exports=n;var r=e.code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=e.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
|
|
3525
3525
|
* Programatically add the following
|
|
3526
3526
|
*/for(a=97;a<123;a++)r[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)r[a-48]=a;for(a=1;a<13;a++)r["f"+a]=a+111;for(a=0;a<10;a++)r["numpad "+a]=a+96;var s=e.names=e.title={};for(a in r)s[r[a]]=a;for(var l in i)r[l]=i[l]})(Lb,Lb.exports);var Z1e=Lb.exports;const Mr=ms(Z1e);var efe=tfe;function tfe(t,e){var n,r=null;try{n=JSON.parse(t,e)}catch(i){r=i}return[r,n]}const nfe=ms(efe);var Bb={exports:{}};const rfe=D9(UX);var ife=sfe,afe=Object.prototype.toString;function sfe(t){if(!t)return!1;var e=afe.call(t);return e==="[object Function]"||typeof t=="function"&&e!=="[object RegExp]"||typeof window<"u"&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)}var ofe=v4,lfe=function(e,n){return n===void 0&&(n=!1),function(r,i,a){if(r){e(r);return}if(i.statusCode>=400&&i.statusCode<=599){var s=a;if(n)if(ofe.TextDecoder){var l=cfe(i.headers&&i.headers["content-type"]);try{s=new TextDecoder(l).decode(a)}catch{}}else s=String.fromCharCode.apply(null,new Uint8Array(a));e({cause:s});return}e(null,a)}};function cfe(t){return t===void 0&&(t=""),t.toLowerCase().split(";").reduce(function(e,n){var r=n.split("="),i=r[0],a=r[1];return i.trim()==="charset"?a.trim():e},"utf-8")}var ufe=lfe,nk=v4,dfe=rfe,ffe=ife;pu.httpHandler=ufe;/**
|
|
3527
3527
|
* @license
|
|
@@ -61931,7 +61931,7 @@ var che = function() {
|
|
|
61931
61931
|
theme: i.theme,
|
|
61932
61932
|
formats: i.formats
|
|
61933
61933
|
};
|
|
61934
|
-
che ? C(new Quill(d.current, M)) : import("./quill-
|
|
61934
|
+
che ? C(new Quill(d.current, M)) : import("./quill-DP0y9rjV.js").then(function(z) {
|
|
61935
61935
|
if (z && Te.isExist(d.current)) {
|
|
61936
61936
|
var k;
|
|
61937
61937
|
z.default ? k = new z.default(d.current, M) : k = new z(d.current, M), C(k);
|
|
@@ -67043,7 +67043,7 @@ const Whe = (t) => {
|
|
|
67043
67043
|
type: r,
|
|
67044
67044
|
fieldState: i,
|
|
67045
67045
|
onHandleChangeLayoutSettings: a
|
|
67046
|
-
} = t, { media: s } = nn(), o = (F = s == null ? void 0 : s.image) != null && F.MediaImage ? (N = s == null ? void 0 : s.image) == null ? void 0 : N.MediaImage : () => /* @__PURE__ */ c(Ee, {}), l = (L = s == null ? void 0 : s.video) != null && L.MediaVideo ? (M = s == null ? void 0 : s.video) == null ? void 0 : M.MediaVideo : () => /* @__PURE__ */ c(Ee, {}), u = s != null && s.MediaUploadComponent ? s == null ? void 0 : s.MediaUploadComponent : () => /* @__PURE__ */ c(Ee, {}), d = s != null && s.getPaginatedMediaLibraryList ? s == null ? void 0 : s.getPaginatedMediaLibraryList : () => /* @__PURE__ */ c(Ee, {}), f = s != null && s.getPaginatedMediaLibraryListFromStore ? s == null ? void 0 : s.getPaginatedMediaLibraryListFromStore : () => /* @__PURE__ */ c(Ee, {}), p = s != null && s.MediaLibraryLoading ? s == null ? void 0 : s.MediaLibraryLoading :
|
|
67046
|
+
} = t, { media: s } = nn(), o = (F = s == null ? void 0 : s.image) != null && F.MediaImage ? (N = s == null ? void 0 : s.image) == null ? void 0 : N.MediaImage : () => /* @__PURE__ */ c(Ee, {}), l = (L = s == null ? void 0 : s.video) != null && L.MediaVideo ? (M = s == null ? void 0 : s.video) == null ? void 0 : M.MediaVideo : () => /* @__PURE__ */ c(Ee, {}), u = s != null && s.MediaUploadComponent ? s == null ? void 0 : s.MediaUploadComponent : () => /* @__PURE__ */ c(Ee, {}), d = s != null && s.getPaginatedMediaLibraryList ? s == null ? void 0 : s.getPaginatedMediaLibraryList : () => /* @__PURE__ */ c(Ee, {}), f = s != null && s.getPaginatedMediaLibraryListFromStore ? s == null ? void 0 : s.getPaginatedMediaLibraryListFromStore : () => /* @__PURE__ */ c(Ee, {}), p = s != null && s.MediaLibraryLoading ? s == null ? void 0 : s.MediaLibraryLoading : !1, g = s != null && s.MediaLibraryPaginator ? s == null ? void 0 : s.MediaLibraryPaginator : () => /* @__PURE__ */ c(Ee, {}), m = s != null && s.updateMediaLibraryPaginationFilterSearch ? s == null ? void 0 : s.updateMediaLibraryPaginationFilterSearch : () => {
|
|
67047
67047
|
}, [v, A] = Ne(null), [w, S] = Ne(""), [x, E] = Ne(!1), C = new uA();
|
|
67048
67048
|
gn(() => {
|
|
67049
67049
|
d(n);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ml = Object.defineProperty;
|
|
2
2
|
var Dl = (n, t, e) => t in n ? Ml(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var T = (n, t, e) => (Dl(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { d as ti, i as Rr, a as Hi, b as Ul, e as Br, M as Pl, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as jl, n as Hl, o as Fi, p as $l, q as Fl, r as zl, s as Kl, t as ii, u as Gl, v as Vl, w as Ft, x as zi, y as xe } from "./main-
|
|
4
|
+
import { d as ti, i as Rr, a as Hi, b as Ul, e as Br, M as Pl, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as jl, n as Hl, o as Fi, p as $l, q as Fl, r as zl, s as Kl, t as ii, u as Gl, v as Vl, w as Ft, x as zi, y as xe } from "./main-ClYLRwqs.js";
|
|
5
5
|
function Ki(n) {
|
|
6
6
|
return n;
|
|
7
7
|
}
|