avo 2.9.1.pre5 → 2.9.1.pre6
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -1
- data/app/assets/builds/avo.css +28 -0
- data/app/assets/builds/avo.js +1 -1
- data/app/assets/builds/avo.js.map +2 -2
- data/app/components/avo/actions_component.rb +6 -2
- data/app/components/avo/fields/common/key_value_component.html.erb +2 -2
- data/app/components/avo/fields/common/single_file_viewer_component.rb +1 -1
- data/app/components/avo/index/ordering/button_component.rb +5 -13
- data/app/components/avo/index/resource_controls_component.html.erb +2 -2
- data/app/components/avo/index/resource_controls_component.rb +5 -1
- data/app/components/avo/views/resource_index_component.rb +2 -2
- data/app/controllers/avo/application_controller.rb +24 -3
- data/app/javascript/avo.js +5 -1
- data/app/javascript/js/controllers/tabs_controller.js +80 -0
- data/app/views/avo/partials/_javascript.html.erb +1 -1
- data/config/routes.rb +1 -1
- data/lib/avo/app.rb +9 -2
- data/lib/avo/base_card.rb +1 -7
- data/lib/avo/dashboards/base_dashboard.rb +1 -1
- data/lib/avo/fields/has_base_field.rb +3 -1
- data/lib/avo/fields/has_one_field.rb +4 -1
- data/lib/avo/menu/builder.rb +1 -1
- data/lib/avo/services/uri_service.rb +71 -0
- data/lib/avo/version.rb +1 -1
- data/lib/avo.rb +1 -0
- data/public/avo-assets/avo.js +1 -1
- data/public/avo-assets/avo.js.map +2 -2
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba9d821289fe3059e6cfc94bfe52b16ccb574f58be2bf4ab8fa850e9ceb55a02
|
|
4
|
+
data.tar.gz: 03253b9ba8afce580db6405eda3c2e2eb509ad4ff9f759063e8289850d6bf836
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e5aec93412bbac8df6f67295f85125eee7df648c3d506dfaa46db99798293e8b126e14d56acd0a09bec7036afce715670791ec405e89a73ea420034129e8dab
|
|
7
|
+
data.tar.gz: 470b9bd9e5b7dbeab74a5309ad10ec858e1278c0478c58ad8e1cdfba63533fc05409096b4cb02e5c857875e06d5b5d31e30d49cb2f96bcbfa7795099ac3ee1a8
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
avo (2.9.1.
|
|
4
|
+
avo (2.9.1.pre6)
|
|
5
5
|
active_link_to
|
|
6
6
|
addressable
|
|
7
7
|
breadcrumbs_on_rails
|
|
@@ -252,6 +252,8 @@ GEM
|
|
|
252
252
|
nokogiri (1.13.4)
|
|
253
253
|
mini_portile2 (~> 2.8.0)
|
|
254
254
|
racc (~> 1.4)
|
|
255
|
+
nokogiri (1.13.4-x86_64-linux)
|
|
256
|
+
racc (~> 1.4)
|
|
255
257
|
orm_adapter (0.5.0)
|
|
256
258
|
pagy (5.10.1)
|
|
257
259
|
activesupport
|
data/app/assets/builds/avo.css
CHANGED
|
@@ -6354,6 +6354,16 @@ trix-editor .attachment__metadata .attachment__size {
|
|
|
6354
6354
|
margin-bottom:0px
|
|
6355
6355
|
}
|
|
6356
6356
|
|
|
6357
|
+
.-mx-2{
|
|
6358
|
+
margin-left:-0.5rem;
|
|
6359
|
+
margin-right:-0.5rem
|
|
6360
|
+
}
|
|
6361
|
+
|
|
6362
|
+
.-my-2{
|
|
6363
|
+
margin-top:-0.5rem;
|
|
6364
|
+
margin-bottom:-0.5rem
|
|
6365
|
+
}
|
|
6366
|
+
|
|
6357
6367
|
.mx-6{
|
|
6358
6368
|
margin-left:1.5rem;
|
|
6359
6369
|
margin-right:1.5rem
|
|
@@ -6479,6 +6489,10 @@ trix-editor .attachment__metadata .attachment__size {
|
|
|
6479
6489
|
margin-top:0px
|
|
6480
6490
|
}
|
|
6481
6491
|
|
|
6492
|
+
.-mb-8{
|
|
6493
|
+
margin-bottom:-2rem
|
|
6494
|
+
}
|
|
6495
|
+
|
|
6482
6496
|
.mr-px{
|
|
6483
6497
|
margin-right:1px
|
|
6484
6498
|
}
|
|
@@ -8885,6 +8899,16 @@ trix-editor {
|
|
|
8885
8899
|
}
|
|
8886
8900
|
|
|
8887
8901
|
@media (min-width: 1024px){
|
|
8902
|
+
.lg\:-mx-4{
|
|
8903
|
+
margin-left:-1rem;
|
|
8904
|
+
margin-right:-1rem
|
|
8905
|
+
}
|
|
8906
|
+
|
|
8907
|
+
.lg\:-my-4{
|
|
8908
|
+
margin-top:-1rem;
|
|
8909
|
+
margin-bottom:-1rem
|
|
8910
|
+
}
|
|
8911
|
+
|
|
8888
8912
|
.lg\:flex{
|
|
8889
8913
|
display:flex
|
|
8890
8914
|
}
|
|
@@ -8927,6 +8951,10 @@ trix-editor {
|
|
|
8927
8951
|
padding:1.5rem
|
|
8928
8952
|
}
|
|
8929
8953
|
|
|
8954
|
+
.lg\:p-4{
|
|
8955
|
+
padding:1rem
|
|
8956
|
+
}
|
|
8957
|
+
|
|
8930
8958
|
.lg\:px-8{
|
|
8931
8959
|
padding-left:2rem;
|
|
8932
8960
|
padding-right:2rem
|
data/app/assets/builds/avo.js
CHANGED
|
@@ -413,7 +413,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
413
413
|
%t [data-trix-cursor-target=right] {
|
|
414
414
|
vertical-align: bottom !important;
|
|
415
415
|
margin-right: -1px !important;
|
|
416
|
-
}`,trixId:{get:function(){return this.hasAttribute("trix-id")?this.getAttribute("trix-id"):(this.setAttribute("trix-id",++T),this.trixId)}},labels:{get:function(){var D,M,P;return M=[],this.id&&this.ownerDocument&&M.push.apply(M,this.ownerDocument.querySelectorAll("label[for='"+this.id+"']")),(D=i(this,{matchingSelector:"label"}))&&((P=D.control)===this||P===null)&&M.push(D),M}},toolbarElement:{get:function(){var D,M,P;return this.hasAttribute("toolbar")?(M=this.ownerDocument)!=null?M.getElementById(this.getAttribute("toolbar")):void 0:this.parentNode?(P="trix-toolbar-"+this.trixId,this.setAttribute("toolbar",P),D=s("trix-toolbar",{id:P}),this.parentNode.insertBefore(D,this),D):void 0}},inputElement:{get:function(){var D,M,P;return this.hasAttribute("input")?(P=this.ownerDocument)!=null?P.getElementById(this.getAttribute("input")):void 0:this.parentNode?(M="trix-input-"+this.trixId,this.setAttribute("input",M),D=s("input",{type:"hidden",id:M}),this.parentNode.insertBefore(D,this.nextElementSibling),D):void 0}},editor:{get:function(){var D;return(D=this.editorController)!=null?D.editor:void 0}},name:{get:function(){var D;return(D=this.inputElement)!=null?D.name:void 0}},value:{get:function(){var D;return(D=this.inputElement)!=null?D.value:void 0},set:function(D){var M;return this.defaultValue=D,(M=this.editor)!=null?M.loadHTML(this.defaultValue):void 0}},notify:function(D,M){return this.editorController?u("trix-"+D,{onElement:this,attributes:M}):void 0},setInputElementValue:function(D){var M;return(M=this.inputElement)!=null?M.value=D:void 0},initialize:function(){return this.hasAttribute("data-trix-internal")?void 0:(k(this),f(this),w(this))},connect:function(){return this.hasAttribute("data-trix-internal")?void 0:(this.editorController||(u("trix-before-initialize",{onElement:this}),this.editorController=new e.EditorController({editorElement:this,html:this.defaultValue=this.value}),requestAnimationFrame(function(D){return function(){return u("trix-initialize",{onElement:D})}}(this))),this.editorController.registerSelectionManager(),this.registerResetListener(),this.registerClickListener(),p(this))},disconnect:function(){var D;return(D=this.editorController)!=null&&D.unregisterSelectionManager(),this.unregisterResetListener(),this.unregisterClickListener()},registerResetListener:function(){return this.resetListener=this.resetBubbled.bind(this),window.addEventListener("reset",this.resetListener,!1)},unregisterResetListener:function(){return window.removeEventListener("reset",this.resetListener,!1)},registerClickListener:function(){return this.clickListener=this.clickBubbled.bind(this),window.addEventListener("click",this.clickListener,!1)},unregisterClickListener:function(){return window.removeEventListener("click",this.clickListener,!1)},resetBubbled:function(D){var M;if(!D.defaultPrevented&&D.target===((M=this.inputElement)!=null?M.form:void 0))return this.reset()},clickBubbled:function(D){var M;if(!(D.defaultPrevented||this.contains(D.target)||!(M=i(D.target,{matchingSelector:"label"}))||c.call(this.labels,M)<0))return this.focus()},reset:function(){return this.value=this.defaultValue}}}())}.call(this),function(){}.call(this)}).call(this),typeof Ch=="object"&&Ch.exports?Ch.exports=e:typeof define=="function"&&define.amd&&define(e)}.call(Eh)});var ZMt,yC,$fe=se(()=>{ZMt=Vr(Vfe());Nr();Qg();yC=class extends At{get resourceId(){return this.controllerTarget.dataset.resourceId}get resourceName(){return this.controllerTarget.dataset.resourceName}get attachmentKey(){return this.controllerTarget.dataset.attachmentKey}get attachmentsDisabled(){return fo(this.controllerTarget.dataset.attachmentsDisabled)}get hideAttachmentFilename(){return fo(this.controllerTarget.dataset.hideAttachmentFilename)}get hideAttachmentFilesize(){return fo(this.controllerTarget.dataset.hideAttachmentFilesize)}get hideAttachmentUrl(){return fo(this.controllerTarget.dataset.hideAttachmentUrl)}get uploadUrl(){return`${window.location.origin}${window.Avo.configuration.root_path}/avo_api/resources/${this.resourceName}/${this.resourceId}/attachments`}connect(){this.attachmentsDisabled&&this.controllerTarget.querySelector(".trix-button-group--file-tools").remove(),window.addEventListener("trix-file-accept",t=>{if(t.target===this.editorTarget){if(this.attachmentsDisabled){t.preventDefault(),window.toastr.warning("This field has attachments disabled.");return}if(this.resourceId===""){t.preventDefault(),window.toastr.warning("You can't upload files into the Trix editor until you save the resource.");return}this.attachmentKey===""&&(t.preventDefault(),window.toastr.warning("You haven't set an <a href='https://google.com' class='!text-blue-700 underline'>attachment_key</a> to this Trix field."))}}),window.addEventListener("trix-attachment-add",t=>{t.target===this.editorTarget&&t.attachment.file&&this.uploadFileAttachment(t.attachment)})}uploadFileAttachment(t){this.uploadFile(t.file,e=>t.setUploadProgress(e),e=>t.setAttributes(e))}uploadFile(t,e,r){let n=this.createFormData(t),i=new XMLHttpRequest;i.open("POST",this.uploadUrl,!0),i.setRequestHeader("X-CSRF-Token",document.querySelector('meta[name="csrf-token"]').content),i.upload.addEventListener("progress",o=>{let a=o.loaded/o.total*100;e(a)}),i.addEventListener("load",()=>{if(i.status===200){let o;try{o=JSON.parse(i.response)}catch(s){o={}}let a={url:o.url,href:o.href};this.hideAttachmentFilename&&(a.filename=null),this.hideAttachmentFilesize&&(a.filesize=null),this.hideAttachmentUrl&&(a.href=null),r(a)}}),i.send(n)}createFormData(t){let e=new FormData;return e.append("Content-Type",t.type),e.append("file",t),e.append("filename",t.name),e.append("attachment_key",this.attachmentKey),e}};Ct(yC,"targets",["editor","controller"])});var Yfe=se(()=>{wre();_re();Mre();Ire();Lre();jre();Gne();Xne();Qne();goe();em();moe();voe();yoe();boe();xoe();woe();_oe();Soe();koe();Eoe();lse();use();cse();Ece();Ace();Tce();yfe();Cfe();Afe();Tfe();Ufe();$fe();xr.register("action",m1);xr.register("actions-picker",n0);xr.register("attachments",_1);xr.register("boolean-filter",T1);xr.register("copy-to-clipboard",rq);xr.register("dashboard-card",L1);xr.register("filter",Ca);xr.register("hidden-input",rE);xr.register("item-select-all",nE);xr.register("item-selector",iE);xr.register("loading-button",eF);xr.register("menu",aE);xr.register("mobile",sE);xr.register("modal",lE);xr.register("multiple-select-filter",uE);xr.register("per-page",cE);xr.register("resource-edit",w0);xr.register("resource-index",oF);xr.register("resource-show",aF);xr.register("search",qE);xr.register("select",FE);xr.register("select-filter",NE);xr.register("tags-field",dC);xr.register("text-filter",hC);xr.register("tippy",pC);xr.register("toggle-panel",vC);xr.register("belongs-to-field",S1);xr.register("code-field",I1);xr.register("date-field",tE);xr.register("key-value",oE);xr.register("simple-mde",fC);xr.register("trix-field",yC)});var Trt=Z(Qfe=>{var qIt=Vr(JG()),FIt=Vr(eX()),Kfe=Vr(rX()),Gfe=Vr(aL());CL();var Xfe=Vr(JX());nP();zte();Hte();Yfe();Xfe.default.start();window.Turbolinks=Vd;var bC=null;Gfe.bind("r r r",()=>{bC=document.scrollingElement.scrollTop,Vd.visit(window.location.href,{action:"replace"})});function Art(){window.navigator.userAgent.indexOf("Mac OS X")?(document.body.classList.add("os-mac"),document.body.classList.remove("os-pc")):(document.body.classList.add("os-pc"),document.body.classList.remove("os-mac"))}function rN(){$S('[data-tippy="tooltip"]',{theme:"light",content(t){let e=t.getAttribute("title");return t.removeAttribute("title"),t.removeAttribute("data-tippy"),e}})}window.initTippy=rN;Kfe.start();document.addEventListener("turbo:load",()=>{document.body.classList.remove("turbo-loading"),rN(),Art(),bC&&setTimeout(()=>{document.scrollingElement.scrollTo(0,bC),bC=0},50)});document.addEventListener("turbo:frame-load",()=>{rN()});document.addEventListener("turbo:before-fetch-response",t=>jN(Qfe,null,function*(){if(t.detail.fetchResponse.response.status===500){let{id:
|
|
416
|
+
}`,trixId:{get:function(){return this.hasAttribute("trix-id")?this.getAttribute("trix-id"):(this.setAttribute("trix-id",++T),this.trixId)}},labels:{get:function(){var D,M,P;return M=[],this.id&&this.ownerDocument&&M.push.apply(M,this.ownerDocument.querySelectorAll("label[for='"+this.id+"']")),(D=i(this,{matchingSelector:"label"}))&&((P=D.control)===this||P===null)&&M.push(D),M}},toolbarElement:{get:function(){var D,M,P;return this.hasAttribute("toolbar")?(M=this.ownerDocument)!=null?M.getElementById(this.getAttribute("toolbar")):void 0:this.parentNode?(P="trix-toolbar-"+this.trixId,this.setAttribute("toolbar",P),D=s("trix-toolbar",{id:P}),this.parentNode.insertBefore(D,this),D):void 0}},inputElement:{get:function(){var D,M,P;return this.hasAttribute("input")?(P=this.ownerDocument)!=null?P.getElementById(this.getAttribute("input")):void 0:this.parentNode?(M="trix-input-"+this.trixId,this.setAttribute("input",M),D=s("input",{type:"hidden",id:M}),this.parentNode.insertBefore(D,this.nextElementSibling),D):void 0}},editor:{get:function(){var D;return(D=this.editorController)!=null?D.editor:void 0}},name:{get:function(){var D;return(D=this.inputElement)!=null?D.name:void 0}},value:{get:function(){var D;return(D=this.inputElement)!=null?D.value:void 0},set:function(D){var M;return this.defaultValue=D,(M=this.editor)!=null?M.loadHTML(this.defaultValue):void 0}},notify:function(D,M){return this.editorController?u("trix-"+D,{onElement:this,attributes:M}):void 0},setInputElementValue:function(D){var M;return(M=this.inputElement)!=null?M.value=D:void 0},initialize:function(){return this.hasAttribute("data-trix-internal")?void 0:(k(this),f(this),w(this))},connect:function(){return this.hasAttribute("data-trix-internal")?void 0:(this.editorController||(u("trix-before-initialize",{onElement:this}),this.editorController=new e.EditorController({editorElement:this,html:this.defaultValue=this.value}),requestAnimationFrame(function(D){return function(){return u("trix-initialize",{onElement:D})}}(this))),this.editorController.registerSelectionManager(),this.registerResetListener(),this.registerClickListener(),p(this))},disconnect:function(){var D;return(D=this.editorController)!=null&&D.unregisterSelectionManager(),this.unregisterResetListener(),this.unregisterClickListener()},registerResetListener:function(){return this.resetListener=this.resetBubbled.bind(this),window.addEventListener("reset",this.resetListener,!1)},unregisterResetListener:function(){return window.removeEventListener("reset",this.resetListener,!1)},registerClickListener:function(){return this.clickListener=this.clickBubbled.bind(this),window.addEventListener("click",this.clickListener,!1)},unregisterClickListener:function(){return window.removeEventListener("click",this.clickListener,!1)},resetBubbled:function(D){var M;if(!D.defaultPrevented&&D.target===((M=this.inputElement)!=null?M.form:void 0))return this.reset()},clickBubbled:function(D){var M;if(!(D.defaultPrevented||this.contains(D.target)||!(M=i(D.target,{matchingSelector:"label"}))||c.call(this.labels,M)<0))return this.focus()},reset:function(){return this.value=this.defaultValue}}}())}.call(this),function(){}.call(this)}).call(this),typeof Ch=="object"&&Ch.exports?Ch.exports=e:typeof define=="function"&&define.amd&&define(e)}.call(Eh)});var ZMt,yC,$fe=se(()=>{ZMt=Vr(Vfe());Nr();Qg();yC=class extends At{get resourceId(){return this.controllerTarget.dataset.resourceId}get resourceName(){return this.controllerTarget.dataset.resourceName}get attachmentKey(){return this.controllerTarget.dataset.attachmentKey}get attachmentsDisabled(){return fo(this.controllerTarget.dataset.attachmentsDisabled)}get hideAttachmentFilename(){return fo(this.controllerTarget.dataset.hideAttachmentFilename)}get hideAttachmentFilesize(){return fo(this.controllerTarget.dataset.hideAttachmentFilesize)}get hideAttachmentUrl(){return fo(this.controllerTarget.dataset.hideAttachmentUrl)}get uploadUrl(){return`${window.location.origin}${window.Avo.configuration.root_path}/avo_api/resources/${this.resourceName}/${this.resourceId}/attachments`}connect(){this.attachmentsDisabled&&this.controllerTarget.querySelector(".trix-button-group--file-tools").remove(),window.addEventListener("trix-file-accept",t=>{if(t.target===this.editorTarget){if(this.attachmentsDisabled){t.preventDefault(),window.toastr.warning("This field has attachments disabled.");return}if(this.resourceId===""){t.preventDefault(),window.toastr.warning("You can't upload files into the Trix editor until you save the resource.");return}this.attachmentKey===""&&(t.preventDefault(),window.toastr.warning("You haven't set an <a href='https://google.com' class='!text-blue-700 underline'>attachment_key</a> to this Trix field."))}}),window.addEventListener("trix-attachment-add",t=>{t.target===this.editorTarget&&t.attachment.file&&this.uploadFileAttachment(t.attachment)})}uploadFileAttachment(t){this.uploadFile(t.file,e=>t.setUploadProgress(e),e=>t.setAttributes(e))}uploadFile(t,e,r){let n=this.createFormData(t),i=new XMLHttpRequest;i.open("POST",this.uploadUrl,!0),i.setRequestHeader("X-CSRF-Token",document.querySelector('meta[name="csrf-token"]').content),i.upload.addEventListener("progress",o=>{let a=o.loaded/o.total*100;e(a)}),i.addEventListener("load",()=>{if(i.status===200){let o;try{o=JSON.parse(i.response)}catch(s){o={}}let a={url:o.url,href:o.href};this.hideAttachmentFilename&&(a.filename=null),this.hideAttachmentFilesize&&(a.filesize=null),this.hideAttachmentUrl&&(a.href=null),r(a)}}),i.send(n)}createFormData(t){let e=new FormData;return e.append("Content-Type",t.type),e.append("file",t),e.append("filename",t.name),e.append("attachment_key",this.attachmentKey),e}};Ct(yC,"targets",["editor","controller"])});var Yfe=se(()=>{wre();_re();Mre();Ire();Lre();jre();Gne();Xne();Qne();goe();em();moe();voe();yoe();boe();xoe();woe();_oe();Soe();koe();Eoe();lse();use();cse();Ece();Ace();Tce();yfe();Cfe();Afe();Tfe();Ufe();$fe();xr.register("action",m1);xr.register("actions-picker",n0);xr.register("attachments",_1);xr.register("boolean-filter",T1);xr.register("copy-to-clipboard",rq);xr.register("dashboard-card",L1);xr.register("filter",Ca);xr.register("hidden-input",rE);xr.register("item-select-all",nE);xr.register("item-selector",iE);xr.register("loading-button",eF);xr.register("menu",aE);xr.register("mobile",sE);xr.register("modal",lE);xr.register("multiple-select-filter",uE);xr.register("per-page",cE);xr.register("resource-edit",w0);xr.register("resource-index",oF);xr.register("resource-show",aF);xr.register("search",qE);xr.register("select",FE);xr.register("select-filter",NE);xr.register("tags-field",dC);xr.register("text-filter",hC);xr.register("tippy",pC);xr.register("toggle-panel",vC);xr.register("belongs-to-field",S1);xr.register("code-field",I1);xr.register("date-field",tE);xr.register("key-value",oE);xr.register("simple-mde",fC);xr.register("trix-field",yC)});var Trt=Z(Qfe=>{var qIt=Vr(JG()),FIt=Vr(eX()),Kfe=Vr(rX()),Gfe=Vr(aL());CL();var Xfe=Vr(JX());nP();zte();Hte();Yfe();Xfe.default.start();window.Turbolinks=Vd;var bC=null;Gfe.bind("r r r",()=>{bC=document.scrollingElement.scrollTop,Vd.visit(window.location.href,{action:"replace"})});function Art(){window.navigator.userAgent.indexOf("Mac OS X")?(document.body.classList.add("os-mac"),document.body.classList.remove("os-pc")):(document.body.classList.add("os-pc"),document.body.classList.remove("os-mac"))}function rN(){$S('[data-tippy="tooltip"]',{theme:"light",content(t){let e=t.getAttribute("title");return t.removeAttribute("title"),t.removeAttribute("data-tippy"),e}})}window.initTippy=rN;Kfe.start();document.addEventListener("turbo:load",()=>{document.body.classList.remove("turbo-loading"),rN(),Art(),bC&&setTimeout(()=>{document.scrollingElement.scrollTo(0,bC),bC=0},50)});document.addEventListener("turbo:frame-load",()=>{rN()});document.addEventListener("turbo:before-fetch-response",t=>jN(Qfe,null,function*(){var e,r,n;if(t.detail.fetchResponse.response.status===500){let{id:i,src:o}=t.target;(n=(r=(e=t.detail.fetchResponse)==null?void 0:e.response)==null?void 0:r.url)!=null&&n.includes("/failed_to_load")||(t.target.src=`${window.Avo.configuration.root_path}/failed_to_load?turbo_frame=${i}&src=${o}`)}}));document.addEventListener("turbo:visit",()=>document.body.classList.add("turbo-loading"));document.addEventListener("turbo:submit-start",()=>document.body.classList.add("turbo-loading"));document.addEventListener("turbo:submit-end",()=>document.body.classList.remove("turbo-loading"));document.addEventListener("turbo:before-cache",()=>{document.querySelectorAll("[data-turbo-remove-before-cache]").forEach(t=>t.remove())});window.Avo=window.Avo||{configuration:{}};window.Avo.menus={resetCollapsedState(){Array.from(document.querySelectorAll("[data-menu-key-param]")).map(t=>t.getAttribute("data-menu-key-param")).filter(Boolean).forEach(t=>{window.localStorage.removeItem(t)})}}});Trt();})();
|
|
417
417
|
/*!
|
|
418
418
|
* @kurkle/color v0.1.9
|
|
419
419
|
* https://github.com/kurkle/color#readme
|