| @@ -1,5 +1,5 @@ | ||
| 1 | -var SL=Object.defineProperty;var Tm=r=>{throw TypeError(r)};var xL=(r,e,t)=>e in r?SL(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Rr=(r,e,t)=>xL(r,typeof e!="symbol"?e+"":e,t),Cm=(r,e,t)=>e.has(r)||Tm("Cannot "+t);var Gl=(r,e,t)=>(Cm(r,e,"read from private field"),t?t.call(r):e.get(r)),Am=(r,e,t)=>e.has(r)?Tm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),Dm=(r,e,t,a)=>(Cm(r,e,"write to private field"),a?a.call(r,t):e.set(r,t),t);import{h as wr,i as pg,I as df,u as za,e as fe,a as De,w as Tr,r as Ha,o as Jt,d as xe,F as As,g as Uu,n as gf,t as Ds,W as bL,f as Nw,L as wL,v as Bw,b as Yu,k as TL,x as CL,U as AL,m as Mm,c as Vw,q as DL,G as ML,J as LL}from"./vue.esm-bundler.js?ver=1.6.6";import{t as pe,A as IL}from"./Translator.js?ver=1.6.6";import{C as PL}from"./index4.js?ver=1.6.6";import{I as EL}from"./IconButton.js?ver=1.6.6";import{_ as yf}from"./DynamicIcon.js?ver=1.6.6";import{ad as RL}from"./index.js?ver=1.6.6";import"./Rest.js?ver=1.6.6";import{A as kL}from"./Arr.js?ver=1.6.6";import{F as OL,a as NL}from"./Badge.js?ver=1.6.6";import{S as BL}from"./common.js?ver=1.6.6";import{g as VL,d as Yt}from"./dayjs.min.js?ver=1.6.6";const zL={class:"el_pop_data_group"},FL={class:"el_pop_data_headings"},GL=["data-item_index","onClick"],HL={class:"el_pop_data_body"},WL=["onClick"],UL=Object.assign({name:"InputPopoverDropdownExtended"},{__name:"input-popover-dropdown",props:{data:[Array,Object],close_on_insert:{type:Boolean,default(){return!0}},btnType:{type:String,default(){return"success"}},btnSize:{type:String,default:""},plain:{type:Boolean,default(){return!1}},placement:{type:String,default:"top"}},emits:["command"],setup(r,{emit:e}){const t=r,a=wr(),n=wr(!1),i=wr(""),o=e,s=wr(""),l=()=>{n.value=!1},u=h=>{o("command",h),t.close_on_insert&&(n.value=!1)},f=h=>{if(!i.value.trim())return h;const v=i.value.toLowerCase().trim(),c={};return Object.entries(h).forEach(([p,d])=>{(d.toLowerCase().includes(v)||p.toLowerCase().includes(v))&&(c[p]=d)}),c};return pg(()=>{s.value=Object.keys(t.data)[0]}),(h,v)=>{const c=Ha("el-input"),p=Ha("el-button"),d=Ha("el-popover");return df((Jt(),fe("div",null,[De(d,{ref_key:"popoverRef",ref:a,placement:r.placement,width:500,trigger:"click","popper-class":"fct-input-dropdown-popover-wrap","show-arrow":!0,visible:n.value,teleported:!1},{reference:Tr(()=>[De(p,{onClick:v[1]||(v[1]=g=>n.value=!n.value),class:"editor-add-shortcode",type:r.btnType,plain:r.plain,size:r.btnSize},{default:Tr(()=>v[2]||(v[2]=[Nw(" {{:}} ",-1)])),_:1,__:[2]},8,["type","plain","size"])]),default:Tr(()=>[xe("div",zL,[xe("div",FL,[xe("ul",null,[(Jt(!0),fe(As,null,Uu(r.data,(g,y)=>(Jt(),fe("li",{key:y,"data-item_index":y,class:gf(s.value==y?"item_selected":""),onClick:m=>s.value=y},Ds(g.title),11,GL))),128))])]),xe("div",HL,[De(c,{modelValue:i.value,"onUpdate:modelValue":v[0]||(v[0]=g=>i.value=g),class:"sticky top-0 bg-white dark:bg-primary-600",placeholder:za(pe)("Search"),clearable:""},null,8,["modelValue","placeholder"]),(Jt(!0),fe(As,null,Uu(r.data,(g,y)=>df((Jt(),fe("ul",{key:y,class:gf("el_pop_body_item_"+y)},[(Jt(!0),fe(As,null,Uu(f(g.shortcodes),(m,_,S)=>(Jt(),fe("li",{onClick:x=>u(_),key:S},[xe("span",null,Ds(m),1),xe("span",null,Ds(_),1)],8,WL))),128))],2)),[[bL,s.value==y]])),128))])])]),_:1},8,["placement","visible"])])),[[za(PL),l]])}}});function YL(){const r=`${fluentCartRestVars.rest.url}/upload-editor-file`,e=window.fluentCartRestVars.rest.nonce,t=wL({uploadingFile:!1,uploadProgress:0});let a=null,n;function i(f){a=f,a.on("paste",function(h){const v=h.clipboardData.files[0];v&&(h.preventDefault(),o(v))})}function o(f){f!==null&&(t.uploadingFile=!0,t.uploadProgress=0,s(u(f)))}function s(f){jQuery.ajax({type:"POST",url:r,data:f,contentType:!1,processData:!1,xhr:function(){return n=new window.XMLHttpRequest,n.upload.addEventListener("progress",function(h){h.lengthComputable&&(t.uploadProgress=h.loaded/h.total*100)},!1),n},error:()=>{t.uploadingFile=!1,t.uploadProgress=0},success:h=>{if(h){let v=` <img src="${h.url}" alt="${h.title}" width="300" height="200" class="alignnone size-medium wp-image-${h.id}"/> `;a.insertContent(v)}t.uploadingFile=!1,t.uploadProgress=0}})}function l(){n!=null&&(n.abort(),n=null)}function u(f){const h=new FormData;return h.append("file",f),h.append("X-WP-Nonce",e),h}return{state:t,init:i,cancelUploading:l}}function $L(){let r,e,t,a;function n(f,h,v){r=f;let c=jQuery(`#${h}`);if(a=v??250,e=jQuery(c).parents()[0],jQuery(e).css({resize:"vertical","overflow-y":"auto","min-height":`${a}px`,height:`${a}px`}),!r||!r.contentAreaContainer){setTimeout(()=>n(f,h,v),100);return}o(),l(e)}function i(){const f=e.offsetHeight,h=jQuery(e).find(".mce-toolbar-grp").outerHeight(!0)||0,v=jQuery(e).find(".mce-statusbar").outerHeight(!0)||0,c=h+v+10,p=f-c;return Math.max(a-c,p)}function o(){if(!r||!r.contentAreaContainer)return;const f=i(),h=r.contentAreaContainer.offsetHeight;Math.abs(f-h)>2&&(r.contentAreaContainer.style.height=`${f}px`,r.theme&&r.theme.resizeTo&&r.theme.resizeTo(null,f)),f+s()<a&&jQuery(e).css("height",`${a}px`)}function s(){const f=jQuery(e).find(".mce-toolbar-grp").outerHeight(!0)||0,h=jQuery(e).find(".mce-statusbar").outerHeight(!0)||0;return f+h+10}function l(f){t=new ResizeObserver(()=>{o()}),t.observe(f)}function u(){t&&e&&t.unobserve(e)}return{init:n,destroy:u}}const XL={key:0},y9={__name:"MediaButton",props:{multiple:!1,iconMode:!1,attachments:{type:Array,default:()=>[]},title:{default:pe("Add Media")},action_title:{default:pe("Use This Media")},icon:{default:"GalleryAdd"}},emits:["onMediaSelected"],setup(r,{expose:e,emit:t}){const a=r;let n=[],i=null;const o=t,s=()=>{i!=null&&i.open()};e({openMediaFrame:s}),pg(()=>{!typeof window.wp.media!=="function"&&(wp.media.view.Modal=wp.media.view.Modal.extend({className:"wp-fluent-media-modal"}),u(),i=window.wp.media({title:pe("Select or Upload Media"),button:{text:a.action_title},library:{type:"image"},multiple:a.multiple?"add":!1,is_button:a.is_button}),f(),h(),v())});const l=c=>/^\d+$/.test(c),u=()=>{n=[],Array.isArray(a.attachments)&&a.attachments.length>0&&Object.values(a.attachments).forEach((c,p)=>{l(c.id)&&n.push(c.id)})},f=()=>{i.on("toolbar:create:select",function(c){c.view=new window.wp.media.view.Toolbar.Select({text:a.action_title,controller:i})})},h=()=>{i.on("open",function(){let c=i.state().get("selection");n.forEach(function(p){let d=window.wp.media.attachment(p);d&&c.add(d)})})},v=()=>{i.on("select",function(){const c=i.state().get("selection").toJSON();o("onMediaSelected",c)})};return Bw(()=>a.attachments,(c,p)=>{u()}),(c,p)=>r.iconMode?(Jt(),fe("div",{key:1,onClick:s},[De(yf,{name:"Edit"})])):(Jt(),fe("div",{key:0,class:"fct-media-button",onClick:s},[De(yf,{name:r.icon},null,8,["name"]),r.title?(Jt(),fe("span",XL,Ds(r.title),1)):Yu("",!0)]))}},ZL={"bg-neutral-lite":"#F6F7FA",neutral:{50:"#F8F9FC",100:"#EEEFF1",200:"#DADDE7",300:"#F1F2F8",400:"#E8EAF1",500:"#E3E6EF",600:"#DEE1EB",700:"#CDD0DA",800:"#C9CBCF",900:"#A0A1A7",1e3:"#868A98",1100:"#666978",1200:"#1B1F35"},secondary:{25:"#F8F5FE",50:"#F0ECFD",100:"#E1D8FB",200:"#C4B1F7",300:"#A68AF3",400:"#8963EF",500:"#6B3CEB",600:"#6036D4",700:"#5630BC",800:"#4B2AA5"},gray:{25:"#F9FAFB",50:"#F5F6F7",100:"#EAECF0",200:"#D6DAE1",300:"#C1C7D1",400:"#ADB5C2",500:"#98A2B3",600:"#8E99AA",700:"#808B9C",800:"#758195",outline:"#D6DAE1",divider:"#EAECF0",neutral:"#FAFAFA","alpha-16":"#98A2B329"},blue:{25:"#F2F9FE",50:"#E6F2FE",100:"#CCE5FD",200:"#99CBFA",300:"#67B2F8",400:"#3498F5",500:"#017EF3",600:"#0171DB",700:"#0165C2",800:"#0158AA","alpha-16":"#017EF329"},primary:{25:"#F0F0F1",50:"#D9DADC",100:"#C0C2C4",200:"#8D9095",300:"#5A5F66",400:"#2C3C4E",500:"#253241",600:"#1C2732",700:"#151D26",800:"#11171D"},success:{25:"#F3FAF8",50:"#E8F5F1",100:"#D1EAE4",200:"#A3D6C9",300:"#74C1AD",400:"#46AD92",500:"#189877",600:"#16896B",700:"#137A5F",800:"#116A53","alpha-16":"#18987729"},warning:{25:"#FFF9F3",50:"#FEF4E6",100:"#FDE8CD",200:"#FBD29C",300:"#F9BB6A",400:"#F7A539",500:"#F58E07",600:"#DC8006",700:"#C47206",800:"#AC6305","alpha-16":"#F58E0729",dark:"#71330A",base:"#FA7319",light:"#FFD9C0",lighter:"#FFF3EB","dark-dark":"#FFA468","base-dark":"#E16614","light-dark":"#FA73193D","lighter-dark":"#FA731929"},red:{25:"#FDF5F3",50:"#FCEBE6",100:"#F8D6CE",200:"#F1AE9D",300:"#EB856B",400:"#E45D3A",500:"#F04438",600:"#C72F08",700:"#B12A07",800:"#9B2406","alpha-16":"#F0443829"},dark:{25:"#F0F0F1",50:"#D9DADC",100:"#C0C2C4",200:"#8D9095",300:"#5A5F66",400:"#2C3C4E",500:"#253241",600:"#1C2732",700:"#151D26",800:"#11171D"},system:{dark:"#2F3448",mid:"#565865","dark-light":"#696778",light:"#9D9FAC"},report:{royal_blue:"#4D6EF5",medium_turquoise:"#33D3BB",hot_pink:"#FB4BA3",deep_sky_blue:"#47C2FF",medium_slate_blue:"#855EF8",golden_rod:"#F6B51E",sea_green:"#23A682",coral:"#FF8447",purple:"#8C71F6",cyan_blue:"#B8D4E7",cyan_blue_dark:"#9EC2DE",light_gray:"#EAF0F4",light_gray_cyan_blue:"#A7C1D2",light_gray_blue:"#E3E9F5",dark_blue:"#1436FF",dark_purple:"#6733FC",blue:"#6895FF",dark_cyan_blue_16:"#47C2FF29",dark_cyan_blue_24:"#47C2FF3D",dark_cyan_blue_36:"#47c2ff66",dark_cyan_blue_40:"#47C2FF66",purple_dark_mode:"#9175FF",blue_dark_mode:"#6F8CFF"},information:{dark:"#122368",base:"#335CFF",light:"#C0D5FF",lighter:"#EBF1FF","dark-dark":"#6895FF","base-dark":"#335CFF","light-dark":"#476CFF3D","lighter-dark":"#476CFF29"},feature:{dark:"#351A75",base:"#7D52F4",light:"#CAC0FF",lighter:"#EFEBFF","dark-dark":"#8C71F6","base-dark":"#7D52F4","light-dark":"#784DEF3D","lighter-dark":"#784DEF29"},highlighted:{dark:"#68123D",base:"#FB4BA3",light:"#FFC0DF",lighter:"#FFEBF4","dark-dark":"#FF68B3","base-dark":"#FB4BA3","light-dark":"#FB4BA33D","lighter-dark":"#FB4BA329"}};var ri;const Wt=class Wt{static get colors(){return ZL}static getSystemTheme(){return window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?this.MODE_DARK:this.MODE_LIGHT}static getCurrentTheme(){return[this.MODE_LIGHT,this.MODE_DARK,this.MODE_SYSTEM].includes(this.getSavedTheme())?this.getSavedTheme().toString():this.MODE_SYSTEM}static getSavedTheme(){const e=localStorage.getItem(this.STORAGE_KEY);if(e)return e;const t=localStorage.getItem(this.LEGACY_STORAGE_KEY);return t?(localStorage.setItem(this.STORAGE_KEY,t),localStorage.removeItem(this.LEGACY_STORAGE_KEY),t):null}static isDark(){return this.isSystem()?this.getSystemTheme()===this.MODE_DARK:this.getCurrentTheme()===this.MODE_DARK}static isLight(){return this.isSystem()?this.getSystemTheme()===this.MODE_LIGHT:this.getCurrentTheme()===this.MODE_LIGHT}static isSystem(){return this.getCurrentTheme().startsWith(this.MODE_SYSTEM)}static toggle(){const e=this.isLight()?this.MODE_DARK:this.MODE_LIGHT;return this.apply(e),e}static apply(e,t={},a=!0){const n=e;e===this.MODE_SYSTEM&&(e=this.getSystemTheme()),document.documentElement.classList.remove(this.DARK_CLASS);const i=[document.querySelector("#wpbody-content"),document.querySelector(".wp-toolbar"),document.body,document.querySelector("#wpfooter")].filter(Boolean);e===this.MODE_DARK?i.forEach(o=>o.classList.add(this.DARK_CLASS)):i.forEach(o=>o.classList.remove(this.DARK_CLASS)),n===Wt.MODE_SYSTEM?this.saveThemePreference(`${n}:${e}`):this.saveThemePreference(n),document.documentElement.setAttribute("data-fct-theme",n),this.dispatchThemeChangeEvent(e,t),a&&Gl(Wt,ri)&&Gl(Wt,ri).postMessage({mode:n})}static dispatchThemeChangeEvent(e,t){t.theme=e,window.dispatchEvent(new CustomEvent(this.THEME_CHANGE_EVENT,{detail:t}))}static isAdminBarEnabled(){return kL.get(window,"fluentCartAdminApp.is_admin_bar_showing",!1)}static saveThemePreference(e){localStorage.setItem(this.STORAGE_KEY,e),localStorage.removeItem(this.LEGACY_STORAGE_KEY)}static addDarkClass(e){e&&this.isDark()&&e.classList.add(this.DARK_CLASS)}static removeDarkClass(e){e&&e.classList.remove(this.DARK_CLASS)}static toggleDarkClass(e){e&&e.classList.toggle(this.DARK_CLASS)}listenForThemeChange(){window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{Wt.isSystem()&&Wt.apply(Wt.MODE_SYSTEM)})}init(){this.listenForThemeChange(),Wt.apply(Wt.getCurrentTheme(),{},!1)}};ri=new WeakMap,Rr(Wt,"MODE_LIGHT","light"),Rr(Wt,"MODE_DARK","dark"),Rr(Wt,"MODE_SYSTEM","system"),Rr(Wt,"DARK_CLASS","fluent_theme_dark"),Rr(Wt,"THEME_CHANGE_EVENT","onFluentCartThemeChange"),Rr(Wt,"THEME_TOGGLE_EVENT","changeFluentCartTheme"),Rr(Wt,"STORAGE_KEY","fluent_theme_mode"),Rr(Wt,"LEGACY_STORAGE_KEY","fcart_admin_theme"),Rr(Wt,"THEME_CHANNEL","fluent_theme_changed"),Am(Wt,ri,null),typeof BroadcastChannel<"u"&&(Dm(Wt,ri,new BroadcastChannel(Wt.THEME_CHANNEL+":"+window.location.origin)),Gl(Wt,ri).onmessage=function(e){e.data&&e.data.mode&&Wt.apply(e.data.mode,{},!1)});let mf=Wt;new mf().init();const qL=["innerHTML"],KL={class:"relative w-full"},QL={class:"top-1 absolute w-[calc(100%-128px)] left-0 flex gap-2 justify-between pb-0 z-[9]"},jL={key:0,class:"flex gap-2 flex-row"},JL={class:"fct-add-shortcode-button-wrap"},tI={class:"flex gap-2 items-center ml-auto"},eI={key:0,class:"w-full"},rI={class:"custom-wp-editor-wrapper"},aI=["id","value"],nI={key:0},iI={key:1},m9={__name:"WpEditor",props:{editor_id:{type:String,default(){return"wp_editor_"+Date.now()+parseInt((Math.random()*1e3).toString())}},shortCodes:{default:{}},buttons:{default:{}},templates:{default:{}},emailTemplateEditor:!1,height:{type:Number,default(){return 250}},modelValue:{type:String,default:""}},emits:["update","onEditorReady","getTemplate"],setup(r,{expose:e,emit:t}){TL().ctx;const a=wr(!1),n=wr(null);wr(null);const{state:i,init:o,cancelUploading:s}=YL(),{init:l}=$L(),u=r,f=wr(u.modelValue.length),h=wr(u.modelValue),v=wr();pg(function(){window.wp.editor&&(a.value=!0,CL(function(){setTimeout(function(){y(),window.addEventListener("onFluentCartThemeChange",A=>{y()},!1)},200)}))});const c=t,p=()=>{n.value!==null?n.value.setContent(""):(h.value="",f.value=0)},d=T=>{const A=T||"";n.value!==null?n.value.setContent(A):(h.value=A,f.value=A.length)},g=T=>{if(n.value!==null)n.value.setContent(n.value.getContent()+T);else{const A=u.modelValue.slice(0,f.value),M=u.modelValue.slice(f.value,h.value.length);h.value=A+T+M,f.value+=T.length}};e({clear:p,setContent:g,resetContent:d});const y=()=>{wp.editor.remove(u.editor_id),typeof window.wp.media=="function"&&(wp.media.view.Modal=wp.media.view.Modal.extend({className:"wp-fluent-media-modal"})),wp.editor.initialize(u.editor_id,{mediaButtons:!0,tinymce:{plugins:"fullscreen,lists,link",content_style:mf.isDark()?"*{color:white;} body { background: #11171d; }":"",toolbar1:"formatselect,table,bold,italic,bullist,numlist,link,blockquote,alignleft,aligncenter,alignright,underline,strikethrough,forecolor,removeformat,codeformat,outdent,indent,undo,redo,mediaButton",setup(T){setTimeout(()=>{n.value=T,T.on("ObjectResized",function(I){m()}),T.on("OpenWindow",I=>{const P=I.win.$el;P&&setTimeout(()=>{P.addClass("fluent-cart")})}),jQuery(".wp-media-buttons").css("display","none"),l(T,u.editor_id,u.height),o(T);let A=jQuery(`#${u.editor_id}`);const M=jQuery(A).parents()[0];let L=jQuery(M).find(".ed_button.button.button-small");jQuery(L).click(function(){setTimeout(function(){g(jQuery("#"+u.editor_id).val()),m();const I=jQuery("#wp-link-wrap");I.is(":visible")&&I.addClass("fluent-cart")},100)})},100),c("onEditorReady",T),T.on("input cut paste ExecCommand",function(A,M){m()}),T.on("keyup",A=>{(A.key==="Backspace"||A.key==="Delete"||A.key==="x"&&(A.ctrlKey||A.metaKey))&&T.getContent().trim()===""&&m()}),T.addButton("mediaButton",{icon:"image",tooltip:pe("Insert Media"),onclick:()=>{jQuery(".button.insert-media.add_media").click()}})}},quicktags:!0})},m=()=>{let T=wp.editor.getContent(u.editor_id);c("update",T)},_=T=>{if(n.value!==null)n.value.insertContent(T);else{const A=u.modelValue.slice(0,f.value),M=u.modelValue.slice(f.value,h.value.length);h.value=A+T+M,f.value+=T.length}},S=wr(!1);let x="";const b=()=>{C(),S.value=!0},w=()=>{const T=jQuery(".wp_vue_editor_plain").prop("selectionStart");T.value=T},C=()=>{a.value?x=wp.editor.getContent(u.editor_id):x=h.value,x=x.trim(),x||(x=pe("Nothing to preview"))};return Bw(h,async(T,A)=>{v.value=T,c("update",T)}),(T,A)=>{const M=Ha("el-dialog"),L=Ha("el-tooltip"),I=Ha("el-progress"),P=Ha("el-icon"),E=Ha("el-button"),R=AL("loading");return Jt(),fe(As,null,[De(M,{modelValue:S.value,"onUpdate:modelValue":A[0]||(A[0]=N=>S.value=N),title:T.$t("Preview")},{default:Tr(()=>[xe("div",{innerHTML:za(x)},null,8,qL)]),_:1},8,["modelValue","title"]),xe("div",KL,[xe("div",QL,[Object.keys(r.shortCodes).length?(Jt(),fe("div",jL,[xe("div",JL,[De(UL,{data:r.shortCodes,onCommand:_,btnType:"info",btnSize:"small",plain:""},{default:Tr(()=>[Nw(Ds(T.$t("Add ShortCodes")),1)]),_:1},8,["data"])]),Mm(T.$slots,"action")])):Yu("",!0),xe("div",tI,[n.value!==null?(Jt(),Vw(L,{key:0,effect:"dark",content:T.$t("Preview Template"),placement:"top","popper-class":"fct-tooltip"},{default:Tr(()=>[De(EL,{bg:"white",onClick:DL(b,["prevent"]),tag:"button",size:"small"},{default:Tr(()=>[De(yf,{name:"Eye"})]),_:1})]),_:1},8,["content"])):Yu("",!0),Mm(T.$slots,"reset_template")])]),xe("div",null,[a.value?(Jt(),fe("div",eI,[xe("div",{class:gf(n.value===null?"opacity-0 ":""),style:ML({"min-height":r.height})},[df((Jt(),fe("div",rI,[xe("div",null,[xe("textarea",{onInput:A[1]||(A[1]=()=>{m()}),class:"wp_vue_editor test",id:r.editor_id,value:r.modelValue},null,40,aI)])])),[[R,za(i).uploadingFile]]),za(i).uploadingFile?(Jt(),fe("div",nI,[De(I,{"text-inside":!0,"stroke-width":20,percentage:za(i).uploadProgress},null,8,["percentage"]),De(E,{onClick:A[2]||(A[2]=N=>{za(s)()})},{default:Tr(()=>[De(P,null,{default:Tr(()=>[De(za(RL))]),_:1})]),_:1})])):Yu("",!0)],6)])):(Jt(),fe("div",iI,[df(xe("textarea",{class:"wp_vue_editor wp_vue_editor_plain",onClick:w,"onUpdate:modelValue":A[3]||(A[3]=N=>h.value=N)},null,512),[[LL,h.value]])]))])])],64)}}};/*! ***************************************************************************** | |
| 1 | +var SL=Object.defineProperty;var Tm=r=>{throw TypeError(r)};var xL=(r,e,t)=>e in r?SL(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Rr=(r,e,t)=>xL(r,typeof e!="symbol"?e+"":e,t),Cm=(r,e,t)=>e.has(r)||Tm("Cannot "+t);var Gl=(r,e,t)=>(Cm(r,e,"read from private field"),t?t.call(r):e.get(r)),Am=(r,e,t)=>e.has(r)?Tm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),Dm=(r,e,t,a)=>(Cm(r,e,"write to private field"),a?a.call(r,t):e.set(r,t),t);import{h as wr,i as pg,I as df,u as za,e as fe,a as De,w as Tr,r as Ha,o as Jt,d as xe,F as As,g as Uu,n as gf,t as Ds,W as bL,f as Nw,L as wL,v as Bw,b as Yu,k as TL,x as CL,U as AL,m as Mm,c as Vw,q as DL,G as ML,J as LL}from"./vue.esm-bundler.js?ver=1.6.5";import{t as pe,A as IL}from"./Translator.js?ver=1.6.5";import{C as PL}from"./index4.js?ver=1.6.5";import{I as EL}from"./IconButton.js?ver=1.6.5";import{_ as yf}from"./DynamicIcon.js?ver=1.6.5";import{ad as RL}from"./index.js?ver=1.6.5";import"./Rest.js?ver=1.6.5";import{A as kL}from"./Arr.js?ver=1.6.5";import{F as OL,a as NL}from"./Badge.js?ver=1.6.5";import{S as BL}from"./common.js?ver=1.6.5";import{g as VL,d as Yt}from"./dayjs.min.js?ver=1.6.5";const zL={class:"el_pop_data_group"},FL={class:"el_pop_data_headings"},GL=["data-item_index","onClick"],HL={class:"el_pop_data_body"},WL=["onClick"],UL=Object.assign({name:"InputPopoverDropdownExtended"},{__name:"input-popover-dropdown",props:{data:[Array,Object],close_on_insert:{type:Boolean,default(){return!0}},btnType:{type:String,default(){return"success"}},btnSize:{type:String,default:""},plain:{type:Boolean,default(){return!1}},placement:{type:String,default:"top"}},emits:["command"],setup(r,{emit:e}){const t=r,a=wr(),n=wr(!1),i=wr(""),o=e,s=wr(""),l=()=>{n.value=!1},u=h=>{o("command",h),t.close_on_insert&&(n.value=!1)},f=h=>{if(!i.value.trim())return h;const v=i.value.toLowerCase().trim(),c={};return Object.entries(h).forEach(([p,d])=>{(d.toLowerCase().includes(v)||p.toLowerCase().includes(v))&&(c[p]=d)}),c};return pg(()=>{s.value=Object.keys(t.data)[0]}),(h,v)=>{const c=Ha("el-input"),p=Ha("el-button"),d=Ha("el-popover");return df((Jt(),fe("div",null,[De(d,{ref_key:"popoverRef",ref:a,placement:r.placement,width:500,trigger:"click","popper-class":"fct-input-dropdown-popover-wrap","show-arrow":!0,visible:n.value,teleported:!1},{reference:Tr(()=>[De(p,{onClick:v[1]||(v[1]=g=>n.value=!n.value),class:"editor-add-shortcode",type:r.btnType,plain:r.plain,size:r.btnSize},{default:Tr(()=>v[2]||(v[2]=[Nw(" {{:}} ",-1)])),_:1,__:[2]},8,["type","plain","size"])]),default:Tr(()=>[xe("div",zL,[xe("div",FL,[xe("ul",null,[(Jt(!0),fe(As,null,Uu(r.data,(g,y)=>(Jt(),fe("li",{key:y,"data-item_index":y,class:gf(s.value==y?"item_selected":""),onClick:m=>s.value=y},Ds(g.title),11,GL))),128))])]),xe("div",HL,[De(c,{modelValue:i.value,"onUpdate:modelValue":v[0]||(v[0]=g=>i.value=g),class:"sticky top-0 bg-white dark:bg-primary-600",placeholder:za(pe)("Search"),clearable:""},null,8,["modelValue","placeholder"]),(Jt(!0),fe(As,null,Uu(r.data,(g,y)=>df((Jt(),fe("ul",{key:y,class:gf("el_pop_body_item_"+y)},[(Jt(!0),fe(As,null,Uu(f(g.shortcodes),(m,_,S)=>(Jt(),fe("li",{onClick:x=>u(_),key:S},[xe("span",null,Ds(m),1),xe("span",null,Ds(_),1)],8,WL))),128))],2)),[[bL,s.value==y]])),128))])])]),_:1},8,["placement","visible"])])),[[za(PL),l]])}}});function YL(){const r=`${fluentCartRestVars.rest.url}/upload-editor-file`,e=window.fluentCartRestVars.rest.nonce,t=wL({uploadingFile:!1,uploadProgress:0});let a=null,n;function i(f){a=f,a.on("paste",function(h){const v=h.clipboardData.files[0];v&&(h.preventDefault(),o(v))})}function o(f){f!==null&&(t.uploadingFile=!0,t.uploadProgress=0,s(u(f)))}function s(f){jQuery.ajax({type:"POST",url:r,data:f,contentType:!1,processData:!1,xhr:function(){return n=new window.XMLHttpRequest,n.upload.addEventListener("progress",function(h){h.lengthComputable&&(t.uploadProgress=h.loaded/h.total*100)},!1),n},error:()=>{t.uploadingFile=!1,t.uploadProgress=0},success:h=>{if(h){let v=` <img src="${h.url}" alt="${h.title}" width="300" height="200" class="alignnone size-medium wp-image-${h.id}"/> `;a.insertContent(v)}t.uploadingFile=!1,t.uploadProgress=0}})}function l(){n!=null&&(n.abort(),n=null)}function u(f){const h=new FormData;return h.append("file",f),h.append("X-WP-Nonce",e),h}return{state:t,init:i,cancelUploading:l}}function $L(){let r,e,t,a;function n(f,h,v){r=f;let c=jQuery(`#${h}`);if(a=v??250,e=jQuery(c).parents()[0],jQuery(e).css({resize:"vertical","overflow-y":"auto","min-height":`${a}px`,height:`${a}px`}),!r||!r.contentAreaContainer){setTimeout(()=>n(f,h,v),100);return}o(),l(e)}function i(){const f=e.offsetHeight,h=jQuery(e).find(".mce-toolbar-grp").outerHeight(!0)||0,v=jQuery(e).find(".mce-statusbar").outerHeight(!0)||0,c=h+v+10,p=f-c;return Math.max(a-c,p)}function o(){if(!r||!r.contentAreaContainer)return;const f=i(),h=r.contentAreaContainer.offsetHeight;Math.abs(f-h)>2&&(r.contentAreaContainer.style.height=`${f}px`,r.theme&&r.theme.resizeTo&&r.theme.resizeTo(null,f)),f+s()<a&&jQuery(e).css("height",`${a}px`)}function s(){const f=jQuery(e).find(".mce-toolbar-grp").outerHeight(!0)||0,h=jQuery(e).find(".mce-statusbar").outerHeight(!0)||0;return f+h+10}function l(f){t=new ResizeObserver(()=>{o()}),t.observe(f)}function u(){t&&e&&t.unobserve(e)}return{init:n,destroy:u}}const XL={key:0},y9={__name:"MediaButton",props:{multiple:!1,iconMode:!1,attachments:{type:Array,default:()=>[]},title:{default:pe("Add Media")},action_title:{default:pe("Use This Media")},icon:{default:"GalleryAdd"}},emits:["onMediaSelected"],setup(r,{expose:e,emit:t}){const a=r;let n=[],i=null;const o=t,s=()=>{i!=null&&i.open()};e({openMediaFrame:s}),pg(()=>{!typeof window.wp.media!=="function"&&(wp.media.view.Modal=wp.media.view.Modal.extend({className:"wp-fluent-media-modal"}),u(),i=window.wp.media({title:pe("Select or Upload Media"),button:{text:a.action_title},library:{type:"image"},multiple:a.multiple?"add":!1,is_button:a.is_button}),f(),h(),v())});const l=c=>/^\d+$/.test(c),u=()=>{n=[],Array.isArray(a.attachments)&&a.attachments.length>0&&Object.values(a.attachments).forEach((c,p)=>{l(c.id)&&n.push(c.id)})},f=()=>{i.on("toolbar:create:select",function(c){c.view=new window.wp.media.view.Toolbar.Select({text:a.action_title,controller:i})})},h=()=>{i.on("open",function(){let c=i.state().get("selection");n.forEach(function(p){let d=window.wp.media.attachment(p);d&&c.add(d)})})},v=()=>{i.on("select",function(){const c=i.state().get("selection").toJSON();o("onMediaSelected",c)})};return Bw(()=>a.attachments,(c,p)=>{u()}),(c,p)=>r.iconMode?(Jt(),fe("div",{key:1,onClick:s},[De(yf,{name:"Edit"})])):(Jt(),fe("div",{key:0,class:"fct-media-button",onClick:s},[De(yf,{name:r.icon},null,8,["name"]),r.title?(Jt(),fe("span",XL,Ds(r.title),1)):Yu("",!0)]))}},ZL={"bg-neutral-lite":"#F6F7FA",neutral:{50:"#F8F9FC",100:"#EEEFF1",200:"#DADDE7",300:"#F1F2F8",400:"#E8EAF1",500:"#E3E6EF",600:"#DEE1EB",700:"#CDD0DA",800:"#C9CBCF",900:"#A0A1A7",1e3:"#868A98",1100:"#666978",1200:"#1B1F35"},secondary:{25:"#F8F5FE",50:"#F0ECFD",100:"#E1D8FB",200:"#C4B1F7",300:"#A68AF3",400:"#8963EF",500:"#6B3CEB",600:"#6036D4",700:"#5630BC",800:"#4B2AA5"},gray:{25:"#F9FAFB",50:"#F5F6F7",100:"#EAECF0",200:"#D6DAE1",300:"#C1C7D1",400:"#ADB5C2",500:"#98A2B3",600:"#8E99AA",700:"#808B9C",800:"#758195",outline:"#D6DAE1",divider:"#EAECF0",neutral:"#FAFAFA","alpha-16":"#98A2B329"},blue:{25:"#F2F9FE",50:"#E6F2FE",100:"#CCE5FD",200:"#99CBFA",300:"#67B2F8",400:"#3498F5",500:"#017EF3",600:"#0171DB",700:"#0165C2",800:"#0158AA","alpha-16":"#017EF329"},primary:{25:"#F0F0F1",50:"#D9DADC",100:"#C0C2C4",200:"#8D9095",300:"#5A5F66",400:"#2C3C4E",500:"#253241",600:"#1C2732",700:"#151D26",800:"#11171D"},success:{25:"#F3FAF8",50:"#E8F5F1",100:"#D1EAE4",200:"#A3D6C9",300:"#74C1AD",400:"#46AD92",500:"#189877",600:"#16896B",700:"#137A5F",800:"#116A53","alpha-16":"#18987729"},warning:{25:"#FFF9F3",50:"#FEF4E6",100:"#FDE8CD",200:"#FBD29C",300:"#F9BB6A",400:"#F7A539",500:"#F58E07",600:"#DC8006",700:"#C47206",800:"#AC6305","alpha-16":"#F58E0729",dark:"#71330A",base:"#FA7319",light:"#FFD9C0",lighter:"#FFF3EB","dark-dark":"#FFA468","base-dark":"#E16614","light-dark":"#FA73193D","lighter-dark":"#FA731929"},red:{25:"#FDF5F3",50:"#FCEBE6",100:"#F8D6CE",200:"#F1AE9D",300:"#EB856B",400:"#E45D3A",500:"#F04438",600:"#C72F08",700:"#B12A07",800:"#9B2406","alpha-16":"#F0443829"},dark:{25:"#F0F0F1",50:"#D9DADC",100:"#C0C2C4",200:"#8D9095",300:"#5A5F66",400:"#2C3C4E",500:"#253241",600:"#1C2732",700:"#151D26",800:"#11171D"},system:{dark:"#2F3448",mid:"#565865","dark-light":"#696778",light:"#9D9FAC"},report:{royal_blue:"#4D6EF5",medium_turquoise:"#33D3BB",hot_pink:"#FB4BA3",deep_sky_blue:"#47C2FF",medium_slate_blue:"#855EF8",golden_rod:"#F6B51E",sea_green:"#23A682",coral:"#FF8447",purple:"#8C71F6",cyan_blue:"#B8D4E7",cyan_blue_dark:"#9EC2DE",light_gray:"#EAF0F4",light_gray_cyan_blue:"#A7C1D2",light_gray_blue:"#E3E9F5",dark_blue:"#1436FF",dark_purple:"#6733FC",blue:"#6895FF",dark_cyan_blue_16:"#47C2FF29",dark_cyan_blue_24:"#47C2FF3D",dark_cyan_blue_36:"#47c2ff66",dark_cyan_blue_40:"#47C2FF66",purple_dark_mode:"#9175FF",blue_dark_mode:"#6F8CFF"},information:{dark:"#122368",base:"#335CFF",light:"#C0D5FF",lighter:"#EBF1FF","dark-dark":"#6895FF","base-dark":"#335CFF","light-dark":"#476CFF3D","lighter-dark":"#476CFF29"},feature:{dark:"#351A75",base:"#7D52F4",light:"#CAC0FF",lighter:"#EFEBFF","dark-dark":"#8C71F6","base-dark":"#7D52F4","light-dark":"#784DEF3D","lighter-dark":"#784DEF29"},highlighted:{dark:"#68123D",base:"#FB4BA3",light:"#FFC0DF",lighter:"#FFEBF4","dark-dark":"#FF68B3","base-dark":"#FB4BA3","light-dark":"#FB4BA33D","lighter-dark":"#FB4BA329"}};var ri;const Wt=class Wt{static get colors(){return ZL}static getSystemTheme(){return window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?this.MODE_DARK:this.MODE_LIGHT}static getCurrentTheme(){return[this.MODE_LIGHT,this.MODE_DARK,this.MODE_SYSTEM].includes(this.getSavedTheme())?this.getSavedTheme().toString():this.MODE_SYSTEM}static getSavedTheme(){const e=localStorage.getItem(this.STORAGE_KEY);if(e)return e;const t=localStorage.getItem(this.LEGACY_STORAGE_KEY);return t?(localStorage.setItem(this.STORAGE_KEY,t),localStorage.removeItem(this.LEGACY_STORAGE_KEY),t):null}static isDark(){return this.isSystem()?this.getSystemTheme()===this.MODE_DARK:this.getCurrentTheme()===this.MODE_DARK}static isLight(){return this.isSystem()?this.getSystemTheme()===this.MODE_LIGHT:this.getCurrentTheme()===this.MODE_LIGHT}static isSystem(){return this.getCurrentTheme().startsWith(this.MODE_SYSTEM)}static toggle(){const e=this.isLight()?this.MODE_DARK:this.MODE_LIGHT;return this.apply(e),e}static apply(e,t={},a=!0){const n=e;e===this.MODE_SYSTEM&&(e=this.getSystemTheme()),document.documentElement.classList.remove(this.DARK_CLASS);const i=[document.querySelector("#wpbody-content"),document.querySelector(".wp-toolbar"),document.body,document.querySelector("#wpfooter")].filter(Boolean);e===this.MODE_DARK?i.forEach(o=>o.classList.add(this.DARK_CLASS)):i.forEach(o=>o.classList.remove(this.DARK_CLASS)),n===Wt.MODE_SYSTEM?this.saveThemePreference(`${n}:${e}`):this.saveThemePreference(n),document.documentElement.setAttribute("data-fct-theme",n),this.dispatchThemeChangeEvent(e,t),a&&Gl(Wt,ri)&&Gl(Wt,ri).postMessage({mode:n})}static dispatchThemeChangeEvent(e,t){t.theme=e,window.dispatchEvent(new CustomEvent(this.THEME_CHANGE_EVENT,{detail:t}))}static isAdminBarEnabled(){return kL.get(window,"fluentCartAdminApp.is_admin_bar_showing",!1)}static saveThemePreference(e){localStorage.setItem(this.STORAGE_KEY,e),localStorage.removeItem(this.LEGACY_STORAGE_KEY)}static addDarkClass(e){e&&this.isDark()&&e.classList.add(this.DARK_CLASS)}static removeDarkClass(e){e&&e.classList.remove(this.DARK_CLASS)}static toggleDarkClass(e){e&&e.classList.toggle(this.DARK_CLASS)}listenForThemeChange(){window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{Wt.isSystem()&&Wt.apply(Wt.MODE_SYSTEM)})}init(){this.listenForThemeChange(),Wt.apply(Wt.getCurrentTheme(),{},!1)}};ri=new WeakMap,Rr(Wt,"MODE_LIGHT","light"),Rr(Wt,"MODE_DARK","dark"),Rr(Wt,"MODE_SYSTEM","system"),Rr(Wt,"DARK_CLASS","fluent_theme_dark"),Rr(Wt,"THEME_CHANGE_EVENT","onFluentCartThemeChange"),Rr(Wt,"THEME_TOGGLE_EVENT","changeFluentCartTheme"),Rr(Wt,"STORAGE_KEY","fluent_theme_mode"),Rr(Wt,"LEGACY_STORAGE_KEY","fcart_admin_theme"),Rr(Wt,"THEME_CHANNEL","fluent_theme_changed"),Am(Wt,ri,null),typeof BroadcastChannel<"u"&&(Dm(Wt,ri,new BroadcastChannel(Wt.THEME_CHANNEL+":"+window.location.origin)),Gl(Wt,ri).onmessage=function(e){e.data&&e.data.mode&&Wt.apply(e.data.mode,{},!1)});let mf=Wt;new mf().init();const qL=["innerHTML"],KL={class:"relative w-full"},QL={class:"top-1 absolute w-[calc(100%-128px)] left-0 flex gap-2 justify-between pb-0 z-[9]"},jL={key:0,class:"flex gap-2 flex-row"},JL={class:"fct-add-shortcode-button-wrap"},tI={class:"flex gap-2 items-center ml-auto"},eI={key:0,class:"w-full"},rI={class:"custom-wp-editor-wrapper"},aI=["id","value"],nI={key:0},iI={key:1},m9={__name:"WpEditor",props:{editor_id:{type:String,default(){return"wp_editor_"+Date.now()+parseInt((Math.random()*1e3).toString())}},shortCodes:{default:{}},buttons:{default:{}},templates:{default:{}},emailTemplateEditor:!1,height:{type:Number,default(){return 250}},modelValue:{type:String,default:""}},emits:["update","onEditorReady","getTemplate"],setup(r,{expose:e,emit:t}){TL().ctx;const a=wr(!1),n=wr(null);wr(null);const{state:i,init:o,cancelUploading:s}=YL(),{init:l}=$L(),u=r,f=wr(u.modelValue.length),h=wr(u.modelValue),v=wr();pg(function(){window.wp.editor&&(a.value=!0,CL(function(){setTimeout(function(){y(),window.addEventListener("onFluentCartThemeChange",A=>{y()},!1)},200)}))});const c=t,p=()=>{n.value!==null?n.value.setContent(""):(h.value="",f.value=0)},d=T=>{const A=T||"";n.value!==null?n.value.setContent(A):(h.value=A,f.value=A.length)},g=T=>{if(n.value!==null)n.value.setContent(n.value.getContent()+T);else{const A=u.modelValue.slice(0,f.value),M=u.modelValue.slice(f.value,h.value.length);h.value=A+T+M,f.value+=T.length}};e({clear:p,setContent:g,resetContent:d});const y=()=>{wp.editor.remove(u.editor_id),typeof window.wp.media=="function"&&(wp.media.view.Modal=wp.media.view.Modal.extend({className:"wp-fluent-media-modal"})),wp.editor.initialize(u.editor_id,{mediaButtons:!0,tinymce:{plugins:"fullscreen,lists,link",content_style:mf.isDark()?"*{color:white;} body { background: #11171d; }":"",toolbar1:"formatselect,table,bold,italic,bullist,numlist,link,blockquote,alignleft,aligncenter,alignright,underline,strikethrough,forecolor,removeformat,codeformat,outdent,indent,undo,redo,mediaButton",setup(T){setTimeout(()=>{n.value=T,T.on("ObjectResized",function(I){m()}),T.on("OpenWindow",I=>{const P=I.win.$el;P&&setTimeout(()=>{P.addClass("fluent-cart")})}),jQuery(".wp-media-buttons").css("display","none"),l(T,u.editor_id,u.height),o(T);let A=jQuery(`#${u.editor_id}`);const M=jQuery(A).parents()[0];let L=jQuery(M).find(".ed_button.button.button-small");jQuery(L).click(function(){setTimeout(function(){g(jQuery("#"+u.editor_id).val()),m();const I=jQuery("#wp-link-wrap");I.is(":visible")&&I.addClass("fluent-cart")},100)})},100),c("onEditorReady",T),T.on("input cut paste ExecCommand",function(A,M){m()}),T.on("keyup",A=>{(A.key==="Backspace"||A.key==="Delete"||A.key==="x"&&(A.ctrlKey||A.metaKey))&&T.getContent().trim()===""&&m()}),T.addButton("mediaButton",{icon:"image",tooltip:pe("Insert Media"),onclick:()=>{jQuery(".button.insert-media.add_media").click()}})}},quicktags:!0})},m=()=>{let T=wp.editor.getContent(u.editor_id);c("update",T)},_=T=>{if(n.value!==null)n.value.insertContent(T);else{const A=u.modelValue.slice(0,f.value),M=u.modelValue.slice(f.value,h.value.length);h.value=A+T+M,f.value+=T.length}},S=wr(!1);let x="";const b=()=>{C(),S.value=!0},w=()=>{const T=jQuery(".wp_vue_editor_plain").prop("selectionStart");T.value=T},C=()=>{a.value?x=wp.editor.getContent(u.editor_id):x=h.value,x=x.trim(),x||(x=pe("Nothing to preview"))};return Bw(h,async(T,A)=>{v.value=T,c("update",T)}),(T,A)=>{const M=Ha("el-dialog"),L=Ha("el-tooltip"),I=Ha("el-progress"),P=Ha("el-icon"),E=Ha("el-button"),R=AL("loading");return Jt(),fe(As,null,[De(M,{modelValue:S.value,"onUpdate:modelValue":A[0]||(A[0]=N=>S.value=N),title:T.$t("Preview")},{default:Tr(()=>[xe("div",{innerHTML:za(x)},null,8,qL)]),_:1},8,["modelValue","title"]),xe("div",KL,[xe("div",QL,[Object.keys(r.shortCodes).length?(Jt(),fe("div",jL,[xe("div",JL,[De(UL,{data:r.shortCodes,onCommand:_,btnType:"info",btnSize:"small",plain:""},{default:Tr(()=>[Nw(Ds(T.$t("Add ShortCodes")),1)]),_:1},8,["data"])]),Mm(T.$slots,"action")])):Yu("",!0),xe("div",tI,[n.value!==null?(Jt(),Vw(L,{key:0,effect:"dark",content:T.$t("Preview Template"),placement:"top","popper-class":"fct-tooltip"},{default:Tr(()=>[De(EL,{bg:"white",onClick:DL(b,["prevent"]),tag:"button",size:"small"},{default:Tr(()=>[De(yf,{name:"Eye"})]),_:1})]),_:1},8,["content"])):Yu("",!0),Mm(T.$slots,"reset_template")])]),xe("div",null,[a.value?(Jt(),fe("div",eI,[xe("div",{class:gf(n.value===null?"opacity-0 ":""),style:ML({"min-height":r.height})},[df((Jt(),fe("div",rI,[xe("div",null,[xe("textarea",{onInput:A[1]||(A[1]=()=>{m()}),class:"wp_vue_editor test",id:r.editor_id,value:r.modelValue},null,40,aI)])])),[[R,za(i).uploadingFile]]),za(i).uploadingFile?(Jt(),fe("div",nI,[De(I,{"text-inside":!0,"stroke-width":20,percentage:za(i).uploadProgress},null,8,["percentage"]),De(E,{onClick:A[2]||(A[2]=N=>{za(s)()})},{default:Tr(()=>[De(P,null,{default:Tr(()=>[De(za(RL))]),_:1})]),_:1})])):Yu("",!0)],6)])):(Jt(),fe("div",iI,[df(xe("textarea",{class:"wp_vue_editor wp_vue_editor_plain",onClick:w,"onUpdate:modelValue":A[3]||(A[3]=N=>h.value=N)},null,512),[[LL,h.value]])]))])])],64)}}};/*! ***************************************************************************** | |
| 2 | 2 | Copyright (c) Microsoft Corporation. |
| 3 | 3 | |
| 4 | 4 | Permission to use, copy, modify, and/or distribute this software for any |
| 5 | 5 | purpose with or without fee is hereby granted. |